shaka-player 3.0.14 → 3.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AUTHORS +2 -0
- package/CHANGELOG.md +39 -0
- package/CONTRIBUTORS +2 -0
- package/build/generateExterns.js +1 -1
- package/demo/common/assets.js +1 -1
- package/dist/controls.css +1 -1
- package/dist/demo.compiled.debug.js +1 -1
- package/dist/demo.compiled.js +1 -1
- package/dist/deps.js +1 -1
- package/dist/locales.js +34 -34
- package/dist/receiver.compiled.debug.js +1 -1
- package/dist/receiver.compiled.js +1 -1
- package/dist/shaka-player.compiled.d.ts +1 -1
- package/dist/shaka-player.compiled.debug.d.ts +1 -1
- package/dist/shaka-player.compiled.debug.externs.js +1 -1
- package/dist/shaka-player.compiled.debug.js +181 -178
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.externs.js +1 -1
- package/dist/shaka-player.compiled.js +688 -686
- package/dist/shaka-player.compiled.map +3 -3
- package/dist/shaka-player.ui.d.ts +1 -1
- package/dist/shaka-player.ui.debug.d.ts +1 -1
- package/dist/shaka-player.ui.debug.externs.js +3 -3
- package/dist/shaka-player.ui.debug.js +169 -166
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.externs.js +3 -3
- package/dist/shaka-player.ui.js +815 -813
- package/dist/shaka-player.ui.map +4 -4
- package/docs/tutorials/fairplay.md +1 -1
- package/karma.conf.js +1 -0
- package/lib/ads/client_side_ad_manager.js +46 -86
- package/lib/ads/server_side_ad_manager.js +7 -10
- package/lib/cast/cast_proxy.js +3 -2
- package/lib/cast/cast_receiver.js +6 -2
- package/lib/cast/cast_sender.js +2 -2
- package/lib/dash/dash_parser.js +52 -0
- package/lib/dash/segment_list.js +1 -1
- package/lib/dash/segment_template.js +1 -1
- package/lib/hls/hls_parser.js +25 -10
- package/lib/media/drm_engine.js +7 -0
- package/lib/media/gap_jumping_controller.js +4 -2
- package/lib/media/streaming_engine.js +2 -1
- package/lib/net/networking_engine.js +2 -1
- package/lib/player.js +18 -17
- package/lib/polyfill/patchedmediakeys_apple.js +4 -4
- package/lib/polyfill/patchedmediakeys_ms.js +4 -4
- package/lib/polyfill/patchedmediakeys_webkit.js +4 -4
- package/lib/text/mp4_ttml_parser.js +3 -0
- package/lib/text/ttml_text_parser.js +5 -0
- package/lib/text/ui_text_displayer.js +6 -1
- package/lib/util/fake_event.js +53 -7
- package/lib/util/periods.js +4 -1
- package/package.json +1 -1
- package/test/cast/cast_proxy_unit.js +12 -6
- package/test/cast/cast_utils_unit.js +1 -1
- package/test/dash/dash_parser_manifest_unit.js +73 -0
- package/test/hls/hls_parser_unit.js +5 -1
- package/test/media/drm_engine_unit.js +43 -0
- package/test/player_integration.js +38 -0
- package/test/test/assets/3675/chunk-stream0-00001.m4s +0 -0
- package/test/test/assets/3675/chunk-stream0-00002.m4s +0 -0
- package/test/test/assets/3675/chunk-stream0-00003.m4s +0 -0
- package/test/test/assets/3675/chunk-stream0-00004.m4s +0 -0
- package/test/test/assets/3675/chunk-stream0-00005.m4s +0 -0
- package/test/test/assets/3675/chunk-stream0-00006.m4s +0 -0
- package/test/test/assets/3675/chunk-stream0-00007.m4s +0 -0
- package/test/test/assets/3675/dash_0.mpd +30 -0
- package/test/test/assets/3675/dash_1.mpd +30 -0
- package/test/test/assets/3675/dash_2.mpd +30 -0
- package/test/test/assets/3675/dash_3.mpd +30 -0
- package/test/test/assets/3675/dash_4.mpd +30 -0
- package/test/test/assets/3675/dash_5.mpd +26 -0
- package/test/test/assets/3675/init-stream0.m4s +0 -0
- package/test/test/util/fake_ad_manager.js +1 -1
- package/test/text/ttml_text_parser_unit.js +9 -0
- package/test/text/ui_text_displayer_unit.js +18 -0
- package/test/ui/localization_unit.js +15 -14
- package/ui/cast_button.js +2 -3
- package/ui/controls.js +4 -6
- package/ui/locales/ru.json +6 -6
- package/ui/localization.js +28 -51
- package/ui/pip_button.js +2 -3
package/dist/shaka-player.ui.js
CHANGED
|
@@ -16,756 +16,758 @@ ea("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(v
|
|
|
16
16
|
function r(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function ia(a){if(!(a instanceof Array)){a=r(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ja="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ka;
|
|
17
17
|
if("function"==typeof Object.setPrototypeOf)ka=Object.setPrototypeOf;else{var la;a:{var ma={a:!0},na={};try{na.__proto__=ma;la=na.a;break a}catch(a){}la=!1}ka=la?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var oa=ka;
|
|
18
18
|
function pa(a,b){a.prototype=ja(b.prototype);a.prototype.constructor=a;if(oa)oa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.$g=b.prototype}function qa(){this.A=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.u=0;this.D=this.i=null}function ra(a){if(a.A)throw new TypeError("Generator is already running");a.A=!0}qa.prototype.B=function(a){this.h=a};
|
|
19
|
-
function sa(a,b){a.i={
|
|
20
|
-
function wa(a,b){var c=a.D.splice(0)[0];(c=a.i=a.i||c)?c.
|
|
19
|
+
function sa(a,b){a.i={ye:b,Fe:!0};a.g=a.u||a.j}qa.prototype["return"]=function(a){this.i={"return":a};this.g=this.j};function t(a,b,c){a.g=c;return{value:b}}qa.prototype.C=function(a){this.g=a};function x(a){a.g=0}function y(a,b,c){a.u=b;void 0!=c&&(a.j=c)}function ta(a){a.u=0;a.j=2}function ua(a,b){a.g=b;a.u=0}function C(a){a.u=0;var b=a.i.ye;a.i=null;return b}function va(a){a.D=[a.i];a.u=0;a.j=0}
|
|
20
|
+
function wa(a,b){var c=a.D.splice(0)[0];(c=a.i=a.i||c)?c.Fe?a.g=a.u||a.j:void 0!=c.C&&a.j<c.C?(a.g=c.C,a.i=null):a.g=a.j:a.g=b}function xa(a){this.g=new qa;this.h=a}function ya(a,b){ra(a.g);var c=a.g.l;if(c)return za(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g["return"]);a.g["return"](b);return Aa(a)}
|
|
21
21
|
function za(a,b,c,d){try{var e=b.call(a.g.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.A=!1,e;var f=e.value}catch(g){return a.g.l=null,sa(a.g,g),Aa(a)}a.g.l=null;d.call(a.g,f);return Aa(a)}
|
|
22
|
-
function Aa(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.A=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,sa(a.g,c)}a.g.A=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.
|
|
22
|
+
function Aa(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.A=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,sa(a.g,c)}a.g.A=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.Fe)throw b.ye;return{value:b["return"],done:!0}}return{value:void 0,done:!0}}
|
|
23
23
|
function Ba(a){this.next=function(b){ra(a.g);a.g.l?b=za(a,a.g.l.next,b,a.g.B):(a.g.B(b),b=Aa(a));return b};this["throw"]=function(b){ra(a.g);a.g.l?b=za(a,a.g.l["throw"],b,a.g.B):(sa(a.g,b),b=Aa(a));return b};this["return"]=function(b){return ya(a,b)};this[Symbol.iterator]=function(){return this}}function Ca(a,b){var c=new Ba(new xa(b));oa&&a.prototype&&oa(c,a.prototype);return c}
|
|
24
|
-
function
|
|
24
|
+
function Ea(a){function b(d){return a.next(d)}function c(d){return a["throw"](d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})}function H(a){return Ea(new Ba(new xa(a)))}
|
|
25
25
|
ea("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.A=!1;var h=this.j();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.g=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.h=function(g){if(null==this.g){this.g=[];var h=this;this.i(function(){h.l()})}this.g.push(g)};var e=da.setTimeout;c.prototype.i=function(g){e(g,0)};c.prototype.l=function(){for(;this.g&&this.g.length;){var g=this.g;this.g=[];for(var h=0;h<g.length;++h){var k=
|
|
26
26
|
g[h];g[h]=null;try{k()}catch(l){this.j(l)}}}this.g=null};c.prototype.j=function(g){this.i(function(){throw g;})};b.prototype.j=function(){function g(l){return function(m){k||(k=!0,l.call(h,m))}}var h=this,k=!1;return{resolve:g(this.K),reject:g(this.l)}};b.prototype.K=function(g){if(g===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.P(g);else{a:switch(typeof g){case "object":var h=null!=g;break a;case "function":h=!0;break a;default:h=!1}h?this.J(g):this.u(g)}};
|
|
27
|
-
b.prototype.J=function(g){var h=void 0;try{h=g.then}catch(k){this.l(k);return}"function"==typeof h?this.
|
|
27
|
+
b.prototype.J=function(g){var h=void 0;try{h=g.then}catch(k){this.l(k);return}"function"==typeof h?this.S(h,g):this.u(g)};b.prototype.l=function(g){this.B(2,g)};b.prototype.u=function(g){this.B(1,g)};b.prototype.B=function(g,h){if(0!=this.h)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.h);this.h=g;this.i=h;2===this.h&&this.N();this.D()};b.prototype.N=function(){var g=this;e(function(){if(g.H()){var h=da.console;"undefined"!==typeof h&&h.error(g.i)}},1)};b.prototype.H=
|
|
28
28
|
function(){if(this.A)return!1;var g=da.CustomEvent,h=da.Event,k=da.dispatchEvent;if("undefined"===typeof k)return!0;"function"===typeof g?g=new g("unhandledrejection",{cancelable:!0}):"function"===typeof h?g=new h("unhandledrejection",{cancelable:!0}):(g=da.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.i;return k(g)};b.prototype.D=function(){if(null!=this.g){for(var g=0;g<this.g.length;++g)f.h(this.g[g]);this.g=null}};var f=new c;
|
|
29
|
-
b.prototype.P=function(g){var h=this.j();g.
|
|
30
|
-
break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.A=!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=r(g),m=l.next();!m.done;m=l.next())d(m.value).
|
|
31
|
-
while(!k.done)})};return b});function
|
|
32
|
-
ea("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=r(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}function c(){}function d(k){var l=typeof k;return"object"===l&&null!==k||"function"===l}function e(k){if(!
|
|
33
|
-
m=new a([[k,2],[l,3]]);if(2!=m.get(k)||3!=m.get(l))return!1;m["delete"](k);m.set(l,4);return!m.has(k)&&4==m.get(l)}catch(n){return!1}}())return a;var g="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var h=0;b.prototype.set=function(k,l){if(!d(k))throw Error("Invalid WeakMap key");e(k);if(!
|
|
34
|
-
|
|
35
|
-
ea("Map",function(a){function b(){var h={};return h.
|
|
36
|
-
list:m,index:-1,
|
|
37
|
-
"t"!=m.value[1]||!l.next().done?!1:!0}catch(n){return!1}}())return a;var f=new WeakMap;e.prototype.set=function(h,k){h=0===h?0:h;var l=d(this,h);l.list||(l.list=this.h[l.id]=[]);l.
|
|
38
|
-
h.
|
|
39
|
-
m;!(m=l.next()).done;)m=m.value,h.call(k,m[1],m[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var g=0;return e});
|
|
29
|
+
b.prototype.P=function(g){var h=this.j();g.Vc(h.resolve,h.reject)};b.prototype.S=function(g,h){var k=this.j();try{g.call(h,k.resolve,k.reject)}catch(l){k.reject(l)}};b.prototype.then=function(g,h){function k(q,u){return"function"==typeof q?function(v){try{l(q(v))}catch(A){m(A)}}:u}var l,m,n=new b(function(q,u){l=q;m=u});this.Vc(k(g,l),k(h,m));return n};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.Vc=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);
|
|
30
|
+
break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.A=!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=r(g),m=l.next();!m.done;m=l.next())d(m.value).Vc(h,k)})};b.all=function(g){var h=r(g),k=h.next();return k.done?d([]):new b(function(l,m){function n(v){return function(A){q[v]=A;u--;0==u&&l(q)}}var q=[],u=0;do q.push(void 0),u++,d(k.value).Vc(n(q.length-1),m),k=h.next();
|
|
31
|
+
while(!k.done)})};return b});function Fa(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
|
|
32
|
+
ea("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=r(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}function c(){}function d(k){var l=typeof k;return"object"===l&&null!==k||"function"===l}function e(k){if(!Fa(k,g)){var l=new c;ba(k,g,{value:l})}}function f(k){var l=Object[k];l&&(Object[k]=function(m){if(m instanceof c)return m;Object.isExtensible(m)&&e(m);return l(m)})}if(function(){if(!a||!Object.seal)return!1;try{var k=Object.seal({}),l=Object.seal({}),
|
|
33
|
+
m=new a([[k,2],[l,3]]);if(2!=m.get(k)||3!=m.get(l))return!1;m["delete"](k);m.set(l,4);return!m.has(k)&&4==m.get(l)}catch(n){return!1}}())return a;var g="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var h=0;b.prototype.set=function(k,l){if(!d(k))throw Error("Invalid WeakMap key");e(k);if(!Fa(k,g))throw Error("WeakMap key fail: "+k);k[g][this.g]=l;return this};b.prototype.get=function(k){return d(k)&&Fa(k,g)?k[g][this.g]:void 0};b.prototype.has=function(k){return d(k)&&
|
|
34
|
+
Fa(k,g)&&Fa(k[g],this.g)};b.prototype["delete"]=function(k){return d(k)&&Fa(k,g)&&Fa(k[g],this.g)?delete k[g][this.g]:!1};return b});
|
|
35
|
+
ea("Map",function(a){function b(){var h={};return h.gb=h.next=h.head=h}function c(h,k){var l=h.g;return fa(function(){if(l){for(;l.head!=h.g;)l=l.gb;for(;l.next!=l.head;)return l=l.next,{done:!1,value:k(l)};l=null}return{done:!0,value:void 0}})}function d(h,k){var l=k&&typeof k;"object"==l||"function"==l?f.has(k)?l=f.get(k):(l=""+ ++g,f.set(k,l)):l="p_"+k;var m=h.h[l];if(m&&Fa(h.h,l))for(var n=0;n<m.length;n++){var q=m[n];if(k!==k&&q.key!==q.key||k===q.key)return{id:l,list:m,index:n,va:q}}return{id:l,
|
|
36
|
+
list:m,index:-1,va:void 0}}function e(h){this.h={};this.g=b();this.size=0;if(h){h=r(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var h=Object.seal({x:4}),k=new a(r([[h,"s"]]));if("s"!=k.get(h)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var l=k.entries(),m=l.next();if(m.done||m.value[0]!=h||"s"!=m.value[1])return!1;m=l.next();return m.done||4!=m.value[0].x||
|
|
37
|
+
"t"!=m.value[1]||!l.next().done?!1:!0}catch(n){return!1}}())return a;var f=new WeakMap;e.prototype.set=function(h,k){h=0===h?0:h;var l=d(this,h);l.list||(l.list=this.h[l.id]=[]);l.va?l.va.value=k:(l.va={next:this.g,gb:this.g.gb,head:this.g,key:h,value:k},l.list.push(l.va),this.g.gb.next=l.va,this.g.gb=l.va,this.size++);return this};e.prototype["delete"]=function(h){h=d(this,h);return h.va&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.h[h.id],h.va.gb.next=h.va.next,h.va.next.gb=h.va.gb,
|
|
38
|
+
h.va.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.gb=b();this.size=0};e.prototype.has=function(h){return!!d(this,h).va};e.prototype.get=function(h){return(h=d(this,h).va)&&h.value};e.prototype.entries=function(){return c(this,function(h){return[h.key,h.value]})};e.prototype.keys=function(){return c(this,function(h){return h.key})};e.prototype.values=function(){return c(this,function(h){return h.value})};e.prototype.forEach=function(h,k){for(var l=this.entries(),
|
|
39
|
+
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 Ga(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}ea("Array.prototype.keys",function(a){return a?a:function(){return Ga(this,function(b){return b})}});
|
|
40
40
|
ea("Set",function(a){function b(c){this.g=new Map;if(c){c=r(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(r([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||
|
|
41
41
|
f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype["delete"]=function(c){c=this.g["delete"](c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return this.g.values()};b.prototype.keys=b.prototype.values;
|
|
42
|
-
b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});function
|
|
43
|
-
|
|
44
|
-
ea("Array.prototype.
|
|
45
|
-
|
|
46
|
-
ea("
|
|
47
|
-
ea("
|
|
48
|
-
|
|
42
|
+
b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});ea("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(h){return h};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});
|
|
43
|
+
function Ha(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{sa:e,bf:f}}return{sa:-1,bf:void 0}}ea("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ha(this,b,c).sa}});ea("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;})})}});
|
|
44
|
+
ea("Array.prototype.find",function(a){return a?a:function(b,c){return Ha(this,b,c).bf}});function Ia(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""}
|
|
45
|
+
ea("String.prototype.startsWith",function(a){return a?a:function(b,c){for(var d=Ia(this,b,"startsWith"),e=d.length,f=b.length,g=Math.max(0,Math.min(c|0,d.length)),h=0;h<f&&g<e;)if(d[g++]!=b[h++])return!1;return h>=f}});ea("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
|
|
46
|
+
ea("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length,f=c||0;for(0>f&&(f=Math.max(f+e,0));f<e;f++){var g=d[f];if(g===b||Object.is(g,b))return!0}return!1}});ea("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ia(this,b,"includes").indexOf(b,c||0)}});ea("Array.prototype.values",function(a){return a?a:function(){return Ga(this,function(b,c){return c})}});
|
|
47
|
+
ea("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});var Ja="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Fa(d,e)&&(a[e]=d[e])}return a};ea("Object.assign",function(a){return a||Ja});ea("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Fa(b,d)&&c.push(b[d]);return c}});var Ka=this||self;
|
|
48
|
+
function L(a,b){var c=a.split("."),d=Ka;c[0]in d||"undefined"==typeof d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}:d[e]=b};/*
|
|
49
49
|
@license
|
|
50
50
|
Shaka Player
|
|
51
51
|
Copyright 2016 Google LLC
|
|
52
52
|
SPDX-License-Identifier: Apache-2.0
|
|
53
53
|
*/
|
|
54
|
-
function
|
|
55
|
-
|
|
56
|
-
var
|
|
54
|
+
function M(a,b){if(b)if(b instanceof Map)for(var c=r(b.keys()),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(this,d,{value:b.get(d),writable:!0,enumerable:!0});else for(c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.g=!1}
|
|
55
|
+
function La(a){var b=new M(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}M.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};M.prototype.stopImmediatePropagation=function(){this.g=!0};M.prototype.stopPropagation=function(){};L("shaka.util.FakeEvent",M);function Ma(){}function Na(){}function Oa(){}function Pa(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];Qa.has(a)||(Qa.add(a),Oa.apply(Ma,ia(c)))}function Ra(){}function Sa(){}function Ta(){}var Qa=new Set;if(window.console&&window.console.log.bind){var Ua={},Va=(Ua[1]=console.error.bind(console),Ua[2]=console.warn.bind(console),Ua[3]=console.info.bind(console),Ua[4]=console.log.bind(console),Ua[5]=console.debug.bind(console),Ua[6]=console.debug.bind(console),Ua);Oa=Va[2];Na=Va[1]};function Wa(){this.g={}}Wa.prototype.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};Wa.prototype.get=function(a){return(a=this.g[a])?a.slice():null};Wa.prototype.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};function Xa(a,b){for(var c in a.g)b(c,a.g[c])}Wa.prototype.size=function(){return Object.keys(this.g).length};function $a(){this.Ed=new Wa;this.Sc=this}$a.prototype.addEventListener=function(a,b){this.Ed.push(a,b)};$a.prototype.removeEventListener=function(a,b){this.Ed.remove(a,b)};$a.prototype.dispatchEvent=function(a){var b=this.Ed.get(a.type)||[];b=r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.Sc;a.currentTarget=this.Sc;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};function ab(a,b){for(var c=[],d=r(a),e=d.next();!e.done;e=d.next())c.push(b(e.value));return c}function bb(a,b){for(var c=r(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0}function cb(a,b){for(var c=r(a),d=c.next();!d.done;d=c.next())if(b(d.value))return!0;return!1}function db(a,b){for(var c=[],d=r(a),e=d.next();!e.done;e=d.next())e=e.value,b(e)&&c.push(e);return c}
|
|
56
|
+
var fb=function eb(a){var c;return Ca(eb,function(d){1==d.g&&(c=0);if(3!=d.g)return c<a?t(d,c,3):d.C(0);c++;return d.C(2)})},hb=function gb(a){var c,d,e,f,g,h;return Ca(gb,function(k){1==k.g&&(c=-1,e=d=void 0,f=r(a),g=f.next());if(5!=k.g){if(g.done)return-1==c?k.C(0):t(k,{sa:c,ag:d,item:e,next:void 0},0);h=g.value;return 0<=c?t(k,{sa:c,item:e,ag:d,next:h},5):k.C(5)}c++;d=e;e=h;g=f.next();return k.C(2)})};/*
|
|
57
57
|
@license
|
|
58
58
|
Copyright 2008 The Closure Library Authors
|
|
59
59
|
SPDX-License-Identifier: Apache-2.0
|
|
60
60
|
*/
|
|
61
|
-
var
|
|
61
|
+
var ib=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;/*
|
|
62
62
|
@license
|
|
63
63
|
Copyright 2006 The Closure Library Authors
|
|
64
64
|
SPDX-License-Identifier: Apache-2.0
|
|
65
65
|
*/
|
|
66
|
-
function
|
|
67
|
-
p.toString=function(){var a=[],b=this.
|
|
68
|
-
p.resolve=function(a){var b=this.clone();"data"===b.
|
|
69
|
-
h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.
|
|
70
|
-
function
|
|
71
|
-
p.add=function(a,b){if(!this.
|
|
72
|
-
p.toString=function(){if(this.g)return this.g;if(!this.
|
|
73
|
-
var
|
|
74
|
-
function
|
|
75
|
-
function
|
|
76
|
-
var
|
|
66
|
+
function kb(a){var b;a instanceof kb?(lb(this,a.Ra),this.Lb=a.Lb,this.Ua=a.Ua,mb(this,a.ec),this.Ia=a.Ia,nb(this,a.g.clone()),this.yb=a.yb):a&&(b=String(a).match(ib))?(lb(this,b[1]||"",!0),this.Lb=ob(b[2]||""),this.Ua=ob(b[3]||"",!0),mb(this,b[4]),this.Ia=ob(b[5]||"",!0),nb(this,b[6]||"",!0),this.yb=ob(b[7]||"")):this.g=new pb(null)}p=kb.prototype;p.Ra="";p.Lb="";p.Ua="";p.ec=null;p.Ia="";p.yb="";
|
|
67
|
+
p.toString=function(){var a=[],b=this.Ra;b&&a.push(qb(b,rb,!0),":");if(b=this.Ua){a.push("//");var c=this.Lb;c&&a.push(qb(c,rb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.ec;null!=b&&a.push(":",String(b))}if(b=this.Ia)this.Ua&&"/"!=b.charAt(0)&&a.push("/"),a.push(qb(b,"/"==b.charAt(0)?sb:tb,!0));(b=this.g.toString())&&a.push("?",b);(b=this.yb)&&a.push("#",qb(b,ub));return a.join("")};
|
|
68
|
+
p.resolve=function(a){var b=this.clone();"data"===b.Ra&&(b=new kb);var c=!!a.Ra;c?lb(b,a.Ra):c=!!a.Lb;c?b.Lb=a.Lb:c=!!a.Ua;c?b.Ua=a.Ua:c=null!=a.ec;var d=a.Ia;if(c)mb(b,a.ec);else if(c=!!a.Ia){if("/"!=d.charAt(0))if(this.Ua&&!this.Ia)d="/"+d;else{var e=b.Ia.lastIndexOf("/");-1!=e&&(d=b.Ia.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):".."==
|
|
69
|
+
h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.Ia=d:c=""!==a.g.toString();c?nb(b,a.g.clone()):c=!!a.yb;c&&(b.yb=a.yb);return b};p.clone=function(){return new kb(this)};function lb(a,b,c){a.Ra=c?ob(b,!0):b;a.Ra&&(a.Ra=a.Ra.replace(/:$/,""))}function mb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.ec=b}else a.ec=null}function nb(a,b,c){b instanceof pb?a.g=b:(c||(b=qb(b,vb)),a.g=new pb(b))}
|
|
70
|
+
function ob(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function qb(a,b,c){return null!=a?(a=encodeURI(a).replace(b,wb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function wb(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var rb=/[#\/\?@]/g,tb=/[#\?:]/g,sb=/[#\?]/g,vb=/[#\?@]/g,ub=/#/g;function pb(a){this.g=a||null}p=pb.prototype;p.Fa=null;p.Xc=null;
|
|
71
|
+
p.add=function(a,b){if(!this.Fa&&(this.Fa={},this.Xc=0,this.g))for(var c=this.g.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f=null;if(0<=e){var g=c[d].substring(0,e);f=c[d].substring(e+1)}else g=c[d];g=decodeURIComponent(g.replace(/\+/g," "));f=f||"";this.add(g,decodeURIComponent(f.replace(/\+/g," ")))}this.g=null;(c=this.Fa.hasOwnProperty(a)&&this.Fa[a])||(this.Fa[a]=c=[]);c.push(b);this.Xc++;return this};
|
|
72
|
+
p.toString=function(){if(this.g)return this.g;if(!this.Fa)return"";var a=[],b;for(b in this.Fa)for(var c=encodeURIComponent(b),d=this.Fa[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="="+encodeURIComponent(d[e]));a.push(f)}return this.g=a.join("&")};p.clone=function(){var a=new pb;a.g=this.g;if(this.Fa){var b={},c;for(c in this.Fa)b[c]=this.Fa[c].concat();a.Fa=b;a.Xc=this.Xc}return a};function xb(a,b){this.g=a;this.h=b}xb.prototype.toString=function(){return"v"+this.g+"."+this.h};function yb(a,b){var c=new xb(4,0),d=zb,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function Ab(a,b,c,d){Oa([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function Bb(a,b,c,d){Na([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(""))}var zb=null;function Cb(a,b){return a.concat(b)}function Db(){}function Eb(a){return null!=a}function Fb(a){var b=Object.create(a.prototype||Object.prototype);try{var c=a.call(b);c||(yb("Factories requiring new","Factories should be plain functions"),c=b)}catch(d){yb("Factories requiring new","Factories should be plain functions"),c=new a}return c};function Gb(a,b){if(0==b.length)return a;var c=b.map(function(d){return new kb(d)});return a.map(function(d){return new kb(d)}).map(function(d){return c.map(function(e){return d.resolve(e)})}).reduce(Cb,[]).map(function(d){return d.toString()})}function Hb(a,b){return{keySystem:a,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:b||[],keyIds:new Set}}
|
|
73
|
+
var Ib={bb:"video",tb:"audio",ya:"text",Gg:"image",yg:"application"};function Jb(a,b){a=Mb(a);b=Mb(b);return a.split("-")[0]==b.split("-")[0]}function Nb(a,b){a=Mb(a);b=Mb(b);var c=a.split("-"),d=b.split("-");return c[0]==d[0]&&1==c.length&&2==d.length}function Ob(a,b){a=Mb(a);b=Mb(b);var c=a.split("-"),d=b.split("-");return 2==c.length&&2==d.length&&c[0]==d[0]}function Mb(a){var b=a.split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Pb.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a}function Qb(a,b){a=Mb(a);b=Mb(b);return b==a?4:Nb(b,a)?3:Ob(b,a)?2:Nb(a,b)?1:0}
|
|
74
|
+
function Rb(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=Pb.get(a)||a}function Sb(a){return a.language?Mb(a.language):a.audio&&a.audio.language?Mb(a.audio.language):a.video&&a.video.language?Mb(a.video.language):"und"}
|
|
75
|
+
function Tb(a,b){for(var c=Mb(a),d=new Set,e=r(b),f=e.next();!f.done;f=e.next())d.add(Mb(f.value));e=r(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,f==c)return f;e=r(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,Nb(f,c))return f;e=r(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,Ob(f,c))return f;d=r(d);for(f=d.next();!f.done;f=d.next())if(f=f.value,Nb(c,f))return f;return null}
|
|
76
|
+
var Pb=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",
|
|
77
77
|
"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",
|
|
78
78
|
"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",
|
|
79
79
|
"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",
|
|
80
80
|
"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",
|
|
81
|
-
"vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function
|
|
82
|
-
p.
|
|
83
|
-
p.
|
|
84
|
-
function
|
|
85
|
-
b.get(h.value))&&c.push(h);c.reverse();a.j.clear();b=r(c);for(h=b.next();!h.done;h=b.next())h.value.forEach(function(l,m){a.j.set(m,l)});b=a.j.keys();e=new Set;c=r(a.h);for(h=c.next();!h.done;h=c.next())h=a.i.get(h.value)||new Map,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
function
|
|
89
|
-
|
|
81
|
+
"vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function Ub(a){this.l=Mb(a);this.j=new Map;this.h=new Set;this.i=new Map;this.g=new $a}p=Ub.prototype;p.addEventListener=function(a,b,c){this.g.addEventListener(a,b,c)};p.removeEventListener=function(a,b,c){this.g.removeEventListener(a,b,c||void 0)};p.dispatchEvent=function(a){return this.g.dispatchEvent(a)};
|
|
82
|
+
p.se=function(a){var b=this;this.h.clear();a=r(a);for(var c=a.next();!c.done;c=a.next())this.h.add(Mb(c.value));Vb(this);a=db(this.h,function(d){return!b.i.has(d)});a.length&&this.g.dispatchEvent(new M("unknown-locales",(new Map).set("locales",a)));a=db(this.h,function(d){return b.i.has(d)});a=(new Map).set("locales",a.length?a:[this.l]);this.g.dispatchEvent(new M("locale-changed",a))};
|
|
83
|
+
p.ha=function(a,b,c){a=Mb(a);void 0===c&&(c=Wb);var d=this.i.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=Wb||d.set(f,e)});this.i.set(a,d);Vb(this);this.g.dispatchEvent(new M("locale-updated"));return this};p.jg=function(a){for(var b=r(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};p.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.g.dispatchEvent(new M("unknown-localization",a));return""};
|
|
84
|
+
function Vb(a){for(var b=a.i,c=a.l,d=a.h,e=new Set,f={},g=r(d),h=g.next();!h.done;f={Qb:f.Qb},h=g.next()){f.Qb=h.value;e.add(f.Qb);e.add(Rb(f.Qb));h=db(b.keys(),function(l){return function(m){var n=l.Qb,q=Rb(m),u=Rb(n);return m!=q&&n!=u&&q==u}}(f));h.sort();var k=r(h);for(h=k.next();!h.done;h=k.next())e.add(h.value);h=db(b.keys(),function(l){return function(m){return Rb(m)==l.Qb}}(f));h.sort();k=r(h);for(h=k.next();!h.done;h=k.next())e.add(h.value)}e.add(c);c=[];e=r(e);for(h=e.next();!h.done;h=e.next())(h=
|
|
85
|
+
b.get(h.value))&&c.push(h);c.reverse();a.j.clear();b=r(c);for(h=b.next();!h.done;h=b.next())h.value.forEach(function(l,m){a.j.set(m,l)});b=a.j.keys();e=new Set;c=r(a.h);for(h=c.next();!h.done;h=c.next())h=a.i.get(h.value)||new Map,Xb(h,b,e);0<e.size&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.g.dispatchEvent(new M("missing-localizations",d)))}function Xb(a,b,c){b=r(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d)}L("shaka.ui.Localization",Ub);
|
|
86
|
+
Ub.prototype.resolve=Ub.prototype.resolve;Ub.prototype.resolveDictionary=Ub.prototype.jg;Ub.prototype.insert=Ub.prototype.ha;Ub.prototype.changeLocale=Ub.prototype.se;Ub.prototype.dispatchEvent=Ub.prototype.dispatchEvent;Ub.prototype.removeEventListener=Ub.prototype.removeEventListener;Ub.prototype.addEventListener=Ub.prototype.addEventListener;var Wb=1;Ub.ConflictResolution={USE_OLD:0,USE_NEW:Wb};Ub.UNKNOWN_LOCALES="unknown-locales";Ub.UNKNOWN_LOCALIZATION="unknown-localization";
|
|
87
|
+
Ub.MISSING_LOCALIZATIONS="missing-localizations";Ub.LOCALE_CHANGED="locale-changed";Ub.LOCALE_UPDATED="locale-updated";function Yb(a){this.i=Math.exp(Math.log(.5)/a);this.h=this.g=0}function Zb(a,b,c){var d=Math.pow(a.i,b);c=c*(1-d)+d*a.g;isNaN(c)||(a.g=c,a.h+=b)}function $b(a){return a.g/(1-Math.pow(a.i,a.h))};function ac(){this.h=new Yb(2);this.i=new Yb(5);this.g=0}ac.prototype.getBandwidthEstimate=function(a){return 128E3>this.g?a:Math.min($b(this.h),$b(this.i))};function bc(){}function cc(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(dc(a)==dc(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;for(var c=ec(a),d=ec(b),e=r(fb(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!=d[f])return!1;return!0}function dc(a){return a instanceof ArrayBuffer?a:a.buffer}function fc(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
|
|
88
|
+
function ec(a,b,c){c=void 0===c?Infinity:c;return gc(a,void 0===b?0:b,c,Uint8Array)}function hc(a,b,c){c=void 0===c?Infinity:c;return gc(a,void 0===b?0:b,c,DataView)}function gc(a,b,c,d){var e=(a.byteOffset||0)+a.byteLength;b=Math.max(0,Math.min((a.byteOffset||0)+b,e));return new d(dc(a),b,Math.min(b+Math.max(c,0),e)-b)}L("shaka.util.BufferUtils",bc);bc.toDataView=hc;bc.toUint8=ec;bc.toArrayBuffer=fc;bc.equal=cc;function N(a,b,c,d){for(var e=[],f=3;f<arguments.length;++f)e[f-3]=arguments[f];this.severity=a;this.category=b;this.code=c;this.data=e;this.handled=!1}N.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};L("shaka.util.Error",N);N.Severity={RECOVERABLE:1,CRITICAL:2};N.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
|
|
89
|
+
N.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,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,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,
|
|
90
90
|
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,
|
|
91
91
|
CONTENT_TRANSFORMATION_FAILED:3019,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,
|
|
92
92
|
HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_MASTER_PLAYLIST_NOT_PROVIDED:4022,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,HLS_COULD_NOT_PARSE_SEGMENT_START_TIME:4030,CONTENT_UNSUPPORTED_BY_BROWSER:4032,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4033,HLS_AES_128_ENCRYPTION_NOT_SUPPORTED:4034,HLS_INTERNAL_SKIP_STREAM:4035,NO_VARIANTS:4036,PERIOD_FLATTENING_FAILED:4037,
|
|
93
93
|
INCONSISTENT_DRM_ACROSS_PERIODS:4038,HLS_VARIABLE_NOT_FOUND:4039,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,
|
|
94
94
|
SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,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,
|
|
95
|
-
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,CS_IMA_SDK_MISSING:1E4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004};function
|
|
96
|
-
function
|
|
97
|
-
function
|
|
98
|
-
|
|
99
|
-
function
|
|
100
|
-
function
|
|
101
|
-
|
|
102
|
-
function
|
|
103
|
-
function
|
|
104
|
-
O.prototype.tickNow=O.prototype.
|
|
105
|
-
function
|
|
106
|
-
function
|
|
107
|
-
|
|
108
|
-
function
|
|
109
|
-
function
|
|
110
|
-
function
|
|
111
|
-
p.request=function(a,b){var c=this,d=new
|
|
112
|
-
var l=0;f.promise.then(function(){l=Date.now()},function(){});var m=g.
|
|
113
|
-
function
|
|
114
|
-
function
|
|
115
|
-
if(1010==q.code)throw f;if(1==q.severity){var u=new
|
|
116
|
-
function
|
|
117
|
-
|
|
118
|
-
function
|
|
119
|
-
p.
|
|
120
|
-
|
|
121
|
-
function
|
|
122
|
-
var
|
|
123
|
-
function
|
|
124
|
-
function
|
|
125
|
-
function
|
|
126
|
-
function
|
|
127
|
-
b);if(!d.size)return a.N=!0,Promise.resolve();d=
|
|
128
|
-
|
|
129
|
-
return t(e,c,2)}
|
|
130
|
-
function
|
|
131
|
-
function
|
|
132
|
-
|
|
133
|
-
function
|
|
134
|
-
distinctiveIdentifier:"optional",persistentState:f,sessionTypes:g,label:e.keySystem,drmInfos:[]});c=r(b);for(e=c.next();!e.done;e=c.next())for(e=e.value,f=r([e.audio,e.video]),e=f.next();!e.done;e=f.next())if(g=e.value){var h=
|
|
135
|
-
m.distinctiveIdentifierRequired&&(e.distinctiveIdentifier="required");m.persistentStateRequired&&(e.persistentState="required");m="audio"==g.type?m.audioRobustness:m.videoRobustness;var n={robustness:m||"",contentType:h};"audio"==g.type?e.audioCapabilities.push(n):e.videoCapabilities.push(n);k&&(m={robustness:m||"",contentType:k},"audio"==g.type?e.audioCapabilities.push(m):e.videoCapabilities.push(m))}}return d}function
|
|
136
|
-
function
|
|
137
|
-
if(u!=k){
|
|
138
|
-
a.B.add(F.contentType.toLowerCase());a.i=
|
|
139
|
-
function
|
|
95
|
+
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,CS_IMA_SDK_MISSING:1E4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004};function ic(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}ic.prototype.resolve=function(){};ic.prototype.reject=function(){};function jc(a){this.h=a;this.g=void 0}jc.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function kc(){}function lc(a){if(!a)return"";a=ec(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));a=mc(a);a=escape(a);try{return decodeURIComponent(a)}catch(b){throw new N(2,2,2004);}}function nc(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new N(2,2,2004);var d=Math.floor(a.byteLength/2);c=new Uint16Array(d);a=hc(a);d=r(fb(d));for(var e=d.next();!e.done;e=d.next())e=e.value,c[e]=a.getUint16(2*e,b);return mc(c)}
|
|
96
|
+
function oc(a){function b(d){return c.byteLength<=d||32<=c[d]&&126>=c[d]}if(!a)return"";var c=ec(a);if(239==c[0]&&187==c[1]&&191==c[2])return lc(c);if(254==c[0]&&255==c[1])return nc(c.subarray(2),!1);if(255==c[0]&&254==c[1])return nc(c.subarray(2),!0);if(0==c[0]&&0==c[2])return nc(a,!1);if(0==c[1]&&0==c[3])return nc(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return lc(a);throw new N(2,2,2003);}
|
|
97
|
+
function pc(a){a=encodeURIComponent(a);var b=unescape(a);a=new Uint8Array(b.length);b=r(hb(b));for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.sa]=c.item.charCodeAt(0);return fc(a)}function qc(a,b){for(var c=new ArrayBuffer(2*a.length),d=new DataView(c),e=r(hb(a)),f=e.next();!f.done;f=e.next())f=f.value,d.setUint16(2*f.sa,f.item.charCodeAt(0),b);return c}function mc(a){return rc.value()(a)}L("shaka.util.StringUtils",kc);kc.resetFromCharCode=function(){rc.g=void 0};kc.toUTF16=qc;kc.toUTF8=pc;
|
|
98
|
+
kc.fromBytesAutoDetect=oc;kc.fromUTF16=nc;kc.fromUTF8=lc;var rc=new jc(function(){function a(c){try{var d=new Uint8Array(c);return 0<String.fromCharCode.apply(null,d).length}catch(e){return!1}}for(var b={jb:65536};0<b.jb;b={jb:b.jb},b.jb/=2)if(a(b.jb))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.jb)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.jb));return e}}(b);return null});function sc(){}function tc(a){a=mc(ec(a));return btoa(a)}function uc(a,b){b=void 0==b?!0:b;var c=tc(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")}function vc(a){var b=window.atob(a.replace(/-/g,"+").replace(/_/g,"/"));a=new Uint8Array(b.length);b=r(hb(b));for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.sa]=c.item.charCodeAt(0);return a}
|
|
99
|
+
function wc(a){var b=a.length/2,c=new Uint8Array(b);b=r(fb(b));for(var d=b.next();!d.done;d=b.next())d=d.value,c[d]=window.parseInt(a.substr(2*d,2),16);return c}function xc(a){var b=ec(a);a="";b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c=c.toString(16),1==c.length&&(c="0"+c),a+=c;return a}
|
|
100
|
+
function yc(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];var d=0,e=r(b);for(c=e.next();!c.done;c=e.next())d+=c.value.byteLength;d=new Uint8Array(d);e=0;b=r(b);for(c=b.next();!c.done;c=b.next())c=c.value,d.set(ec(c),e),e+=c.byteLength;return d}L("shaka.util.Uint8ArrayUtils",sc);sc.concat=yc;sc.toHex=xc;sc.fromHex=wc;sc.fromBase64=vc;sc.toBase64=uc;sc.toStandardBase64=tc;
|
|
101
|
+
sc.equal=function(a,b){yb("shaka.util.Uint8ArrayUtils.equal","Please use shaka.util.BufferUtils.equal instead.");return cc(a,b)};function zc(){var a=this;this.g=new muxjs.mp4.Transmuxer({keepOriginalTimestamps:!0});this.h=null;this.u=[];this.j=[];this.i=[];this.l=!1;this.g.on("data",function(b){a.j=b.captions;a.i=b.metadata;a.u.push(yc(b.initSegment,b.data))});this.g.on("done",function(){var b={data:yc.apply(sc,ia(a.u)),captions:a.j,metadata:a.i};a.h.resolve(b);a.l=!1})}zc.prototype.destroy=function(){this.g.dispose();this.g=null;return Promise.resolve()};
|
|
102
|
+
function Ac(a,b){if(!window.muxjs||"mp2t"!=a.toLowerCase().split(";")[0].split("/")[1])return!1;if(b)return MediaSource.isTypeSupported(Bc(b,a));var c=Bc("audio",a),d=Bc("video",a);return MediaSource.isTypeSupported(c)||MediaSource.isTypeSupported(d)}
|
|
103
|
+
function Bc(a,b){var c=b.replace(/mp2t/i,"mp4");"audio"==a&&(c=c.replace("video","audio"));var d=/avc1\.(66|77|100)\.(\d+)/.exec(c);if(d){var e="avc1.",f=d[1],g=Number(d[2]);e=("66"==f?e+"4200":"77"==f?e+"4d00":e+"6400")+(g>>4).toString(16);e+=(g&15).toString(16);c=c.replace(d[0],e)}return c}function Cc(a,b){a.l=!0;a.h=new ic;a.u=[];a.j=[];a.i=[];var c=ec(b);a.g.push(c);a.g.flush();a.l&&a.h.reject(new N(2,3,3018));return a.h};function Dc(a){this.h=a;this.g=null}Dc.prototype.V=function(a){var b=this;this.stop();var c=!0,d=null;this.g=function(){window.clearTimeout(d);c=!1};d=window.setTimeout(function(){c&&b.h()},1E3*a);return this};Dc.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function O(a){this.h=a;this.g=null}O.prototype.Ba=function(){this.stop();this.h();return this};O.prototype.V=function(a){var b=this;this.stop();this.g=(new Dc(function(){b.h()})).V(a);return this};O.prototype.ia=function(a){var b=this;this.stop();this.g=(new Dc(function(){b.g.V(a);b.h()})).V(a);return this};O.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};L("shaka.util.Timer",O);O.prototype.stop=O.prototype.stop;O.prototype.tickEvery=O.prototype.ia;O.prototype.tickAfter=O.prototype.V;
|
|
104
|
+
O.prototype.tickNow=O.prototype.Ba;function Ec(a,b){var c=Fc();this.l=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.A=null==a.fuzzFactor?c.fuzzFactor:a.fuzzFactor;this.u=null==a.backoffFactor?c.backoffFactor:a.backoffFactor;this.g=0;this.h=this.j;if(this.i=void 0===b?!1:b)this.g=1}
|
|
105
|
+
function Gc(a){var b,c;return H(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new N(2,7,1010);b=a.g;a.g++;if(0==b)return d["return"]();c=a.h*(1+(2*Math.random()-1)*a.A);return t(d,new Promise(function(e){(new O(e)).V(c/1E3)}),2)}a.h*=a.u;x(d)})}function Fc(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0}};function Hc(a,b){this.promise=a;this.i=b;this.g=!1}function Ic(a){return new Hc(Promise.reject(a),function(){return Promise.resolve()})}function Jc(){var a=Promise.reject(new N(2,7,7001));a["catch"](function(){});return new Hc(a,function(){return Promise.resolve()})}function Kc(a){return new Hc(Promise.resolve(a),function(){return Promise.resolve()})}function Lc(a){return new Hc(a,function(){return a["catch"](function(){})})}Hc.prototype.abort=function(){this.g=!0;return this.i()};
|
|
106
|
+
function Mc(a){return new Hc(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}Hc.prototype["finally"]=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
|
|
107
|
+
Hc.prototype.ma=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=Nc(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new ic,g=new N(2,7,7001);this.promise.then(c(!0),c(!1));return new Hc(f,function(){return d()})};
|
|
108
|
+
function Nc(a,b,c){try{var d=a(b);if(d&&d.promise&&d.abort)return c.resolve(d.promise),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){},function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}}L("shaka.util.AbortableOperation",Hc);Hc.prototype.chain=Hc.prototype.ma;Hc.prototype["finally"]=Hc.prototype["finally"];Hc.all=Mc;Hc.prototype.abort=Hc.prototype.abort;Hc.notAbortable=Lc;Hc.completed=Kc;Hc.aborted=Jc;Hc.failed=Ic;function Oc(a){function b(d){switch(typeof d){case "undefined":case "boolean":case "number":case "string":case "symbol":case "function":return d;default:if(!d||d.buffer&&d.buffer.constructor==ArrayBuffer)return d;if(c.has(d))return null;var e=d.constructor==Array;if(d.constructor!=Object&&!e)return null;c.add(d);var f=e?[]:{},g;for(g in d)f[g]=b(d[g]);e&&(f.length=d.length);return f}}var c=new Set;return b(a)}function Pc(a){var b={},c;for(c in a)b[c]=a[c];return b};function Qc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function Rc(a,b){var c=a.indexOf(b);-1<c&&a.splice(c,1)}function Sc(a,b,c){c||(c=Qc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=r(a);for(var e=a.next();!e.done;d={vd:d.vd},e=a.next()){d.vd=e.value;e=b.findIndex(function(f){return function(g){return c(f.vd,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
|
|
109
|
+
function Tc(a,b,c){c||(c=Qc);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 Uc(){this.g=[]}function Vc(a,b){a.g.push(b["finally"](function(){Rc(a.g,b)}))}Uc.prototype.destroy=function(){for(var a=[],b=r(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise["catch"](function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function Wc(a){$a.call(this);this.i=!1;this.l=new Uc;this.g=new Set;this.h=new Set;this.j=a||null}pa(Wc,$a);function Xc(a,b,c){c=c||Yc;var d=Zc[a];if(!d||c>=d.priority)Zc[a]={priority:c,$f:b}}p=Wc.prototype;p.cg=function(a){this.g.add(a)};p.ug=function(a){this.g["delete"](a)};p.jf=function(){this.g.clear()};p.dg=function(a){this.h.add(a)};p.vg=function(a){this.h["delete"](a)};p.kf=function(){this.h.clear()};
|
|
110
|
+
function $c(a,b){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null}}p.destroy=function(){this.i=!0;this.g.clear();this.h.clear();return this.l.destroy()};
|
|
111
|
+
p.request=function(a,b){var c=this,d=new bd;if(this.i){var e=Promise.reject(new N(2,7,7001));e["catch"](function(){});return new cd(e,function(){return Promise.resolve()},d)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?Oc(b.retryParameters):Fc();b.uris=Oc(b.uris);e=dd(this,a,b);var f=e.ma(function(){return ed(c,a,b,new Ec(b.retryParameters,!1),0,null,d)}),g=f.ma(function(n){return fd(c,a,n)}),h=Date.now(),k=0;e.promise.then(function(){k=Date.now()-h},function(){});
|
|
112
|
+
var l=0;f.promise.then(function(){l=Date.now()},function(){});var m=g.ma(function(n){var q=Date.now()-l,u=n.response;u.timeMs+=k;u.timeMs+=q;n.Qf||!c.j||u.fromCache||a!=gd||c.j(u.timeMs,u.data.byteLength);return u},function(n){n&&(n.severity=2);throw n;});e=new cd(m.promise,function(){return m.abort()},d);Vc(this.l,e);return e};
|
|
113
|
+
function dd(a,b,c){var d=Kc(void 0),e={};a=r(a.g);for(var f=a.next();!f.done;e={zd:e.zd},f=a.next())e.zd=f.value,d=d.ma(function(g){return function(){c.body&&(c.body=fc(c.body));return g.zd(b,c)}}(e));return d.ma(void 0,function(g){if(g instanceof N&&7001==g.code)throw g;throw new N(2,1,1006,g);})}
|
|
114
|
+
function ed(a,b,c,d,e,f,g){var h=new kb(c.uris[e]),k=h.Ra,l=!1;k||(k=location.protocol,k=k.slice(0,-1),lb(h,k),c.uris[e]=h.toString());k=k.toLowerCase();var m=(k=Zc[k])?k.$f:null;if(!m)return Ic(new N(2,1,1E3,h));var n;return Lc(Gc(d)).ma(function(){if(a.i)return Jc();n=Date.now();return m(c.uris[e],c,b,function(q,u,v){a.j&&b==gd&&(a.j(q,u),l=!0,g.g=v)})}).ma(function(q){void 0==q.timeMs&&(q.timeMs=Date.now()-n);return{response:q,Qf:l}},function(q){if(a.i)return Jc();if(q instanceof N){if(7001==q.code)throw q;
|
|
115
|
+
if(1010==q.code)throw f;if(1==q.severity){var u=(new Map).set("error",q);u=new M("retry",u);a.dispatchEvent(u);e=(e+1)%c.uris.length;return ed(a,b,c,d,e,q,g)}}throw q;})}
|
|
116
|
+
function fd(a,b,c){var d=Kc(void 0),e={};a=r(a.h);for(var f=a.next();!f.done;e={Bd:e.Bd},f=a.next())e.Bd=f.value,d=d.ma(function(g){return function(){var h=c.response;h.data&&(h.data=fc(h.data));return g.Bd(b,h)}}(e));return d.ma(function(){return c},function(g){var h=2;if(g instanceof N){if(7001==g.code)throw g;h=g.severity}throw new N(h,1,1007,g);})}L("shaka.net.NetworkingEngine",Wc);Wc.prototype.request=Wc.prototype.request;Wc.prototype.destroy=Wc.prototype.destroy;Wc.makeRequest=$c;
|
|
117
|
+
Wc.defaultRetryParameters=function(){return Fc()};Wc.prototype.clearAllResponseFilters=Wc.prototype.kf;Wc.prototype.unregisterResponseFilter=Wc.prototype.vg;Wc.prototype.registerResponseFilter=Wc.prototype.dg;Wc.prototype.clearAllRequestFilters=Wc.prototype.jf;Wc.prototype.unregisterRequestFilter=Wc.prototype.ug;Wc.prototype.registerRequestFilter=Wc.prototype.cg;Wc.unregisterScheme=function(a){delete Zc[a]};Wc.registerScheme=Xc;function bd(){this.g=0}Wc.NumBytesRemainingClass=bd;
|
|
118
|
+
function cd(a,b,c){Hc.call(this,a,b);this.h=c}pa(cd,Hc);Wc.PendingRequest=cd;var gd=1;Wc.RequestType={MANIFEST:0,SEGMENT:gd,LICENSE:2,APP:3,TIMING:4};var Yc=3;Wc.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:Yc};var Zc={};function hd(a){this.g=!1;this.h=new ic;this.i=a}hd.prototype.destroy=function(){var a=this;if(this.g)return this.h;this.g=!0;return this.i().then(function(){a.h.resolve()},function(){a.h.resolve()})};function id(a,b){if(a.g){if(b instanceof N&&7003==b.code)throw b;throw new N(2,7,7003,b);}};function jd(){this.g=new Wa}p=jd.prototype;p.release=function(){this.Jb();this.g=null};p.m=function(a,b,c,d){this.g&&(a=new kd(a,b,c,d),this.g.push(b,a))};p.Ga=function(a,b,c,d){function e(g){f.Ja(a,b,e);c(g)}var f=this;this.m(a,b,e,d)};p.Ja=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=r(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.Ja(),this.g.remove(b,e))}};
|
|
119
|
+
p.Jb=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,ia(a.g[c]));a=r(b);for(b=a.next();!b.done;b=a.next())b.value.Ja();this.g.g={}}};L("shaka.util.EventManager",jd);jd.prototype.removeAll=jd.prototype.Jb;jd.prototype.unlisten=jd.prototype.Ja;jd.prototype.listenOnce=jd.prototype.Ga;jd.prototype.listen=jd.prototype.m;jd.prototype.release=jd.prototype.release;function kd(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=ld(a,d);this.target.addEventListener(b,c,this.g)}
|
|
120
|
+
kd.prototype.Ja=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function ld(a,b){if(void 0==b)return!1;if("boolean"==typeof b)return b;var c=new Set(["passive","capture"]);Object.keys(b).filter(function(d){return!c.has(d)});return md(a)?b:b.capture||!1}
|
|
121
|
+
function md(a){var b=nd;if(void 0==b){b=!1;try{var c={},d={get:function(){b=!0;return!1}};Object.defineProperty(c,"passive",d);Object.defineProperty(c,"capture",d);d=function(){};a.addEventListener("test",d,c);a.removeEventListener("test",d,c)}catch(e){b=!1}nd=b}return b||!1}var nd=void 0;function od(){}function pd(a){a=oc(a);return(new kb(a)).Ua}function qd(a,b,c){function d(h){hc(f).setUint32(g,h.byteLength,!0);g+=4;f.set(ec(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new N(2,6,6015);var e;"string"==typeof b?e=qc(b,!0):e=b;a=oc(a);a=qc(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}L("shaka.util.FairPlayUtils",od);od.initDataTransform=qd;od.defaultGetContentId=pd;function rd(a){for(var b=new Map,c=r(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function sd(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function td(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;for(var c=r(a),d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;if(!b.has(d))return!1;d=b.get(d);if(d!=e||void 0==d)return!1}return!0};function ud(a,b){var c=a;b&&(c+='; codecs="'+b+'"');return c}function vd(a){var b=[a.mimeType];wd.forEach(function(c,d){var e=a[d];e&&b.push(c+'="'+e+'"')});return b.join(";")}function xd(a){a=a.split(".");var b=a[0];a.pop();return b}function yd(a){a=a.split(/ *; */);a.shift();return(a=a.find(function(b){return b.startsWith("codecs=")}))?a.split("=")[1].replace(/^"|"$/g,""):""}
|
|
122
|
+
var wd=(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");function zd(){return window.MediaSource&&MediaSource.isTypeSupported?!0:!1}function Ad(a){return""!=Bd().canPlayType(a)}function Cd(){return Dd("Tizen")}function Ed(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Cd()}function Fd(){if(!Ed())return null;var a=navigator.userAgent.match(/Version\/(\d+)/);return a?parseInt(a[1],10):(a=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(a[1],10):null}function Dd(a){return(navigator.userAgent||"").includes(a)}
|
|
123
|
+
function Bd(){if(Gd)return Gd;Hd||(Hd=new O(function(){Gd=null}));(Gd=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(Gd=document.createElement("video"));Hd.V(1);return Gd}var Hd=null,Gd=null;function Id(a,b){var c=this;b=void 0===b?1:b;this.G=a;this.B=new Set;this.g=this.u=null;this.N=!1;this.J=0;this.i=null;this.h=new jd;this.j=new Map;this.D=[];this.A=new ic;this.v=null;this.l=function(d){c.A.reject(d);a.onError(d)};this.ba=new Map;this.X=new Map;this.S=new O(function(){return Jd(c)});this.H=!1;this.K=[];this.P=!1;this.aa=(new O(function(){Kd(c)})).ia(b);this.A["catch"](function(){});this.M=new hd(function(){return Ld(c)})}Id.prototype.destroy=function(){return this.M.destroy()};
|
|
124
|
+
function Ld(a){return H(function(b){switch(b.g){case 1:return a.h.release(),a.h=null,a.A.reject(),a.aa.stop(),a.aa=null,a.S.stop(),a.S=null,t(b,Md(a),2);case 2:if(!a.g){b.C(3);break}y(b,4);return t(b,a.g.setMediaKeys(null),6);case 6:ua(b,5);break;case 4:C(b);case 5:a.g=null;case 3:a.i=null,a.B.clear(),a.u=null,a.D=[],a.v=null,a.l=function(){},a.G=null,x(b)}})}Id.prototype.configure=function(a){this.v=a};function Nd(a,b,c){a.D=[];a.H=c;return Od(a,b)}
|
|
125
|
+
function Pd(a,b,c){a.D=c;a.H=0<c.length;return Od(a,b)}function Qd(a,b,c,d,e,f){var g=new Map;e={audioCapabilities:e,videoCapabilities:f,distinctiveIdentifier:"optional",persistentState:"required",sessionTypes:["persistent-license"],label:b};e.drmInfos=[{keySystem:b,licenseServerUri:c,distinctiveIdentifierRequired:!1,persistentStateRequired:!0,audioRobustness:"",videoRobustness:"",serverCertificate:d,initData:null,keyIds:null}];g.set(b,e);return Rd(a,g)}
|
|
126
|
+
function Od(a,b){var c=Sd(a);if(c)for(var d=r(b),e=d.next();!e.done;e=d.next())e=e.value,e.video&&(e.video.drmInfos=[c]),e.audio&&(e.audio.drmInfos=[c]);c=b.some(function(g){return g.video&&g.video.drmInfos.length||g.audio&&g.audio.drmInfos.length?!0:!1});c||(d=rd(a.v.servers),Td(b,d));d=r(b);for(e=d.next();!e.done;e=d.next()){e=e.value;e=r((e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]));for(var f=e.next();!f.done;f=e.next())Ud(f.value,rd(a.v.servers),rd(a.v.advanced||{}))}d=Vd(a,
|
|
127
|
+
b);if(!d.size)return a.N=!0,Promise.resolve();d=Rd(a,d);return c?d:d["catch"](function(){})}
|
|
128
|
+
Id.prototype.qc=function(a){var b=this,c,d;return H(function(e){if(1==e.g){if(!b.u)return b.h.Ga(a,"encrypted",function(){b.l(new N(2,6,6010))}),e["return"]();b.g=a;b.h.Ga(b.g,"play",function(){for(var f=r(b.K),g=f.next();!g.done;g=f.next())Xd(b,g.value);b.P=!0;b.K=[]});"webkitCurrentPlaybackTargetIsWireless"in b.g&&b.h.m(b.g,"webkitcurrentplaybacktargetiswirelesschanged",function(){return Md(b)});c=b.g.setMediaKeys(b.u);c=c["catch"](function(f){return Promise.reject(new N(2,6,6003,f.message))});
|
|
129
|
+
return t(e,c,2)}id(b.M);Yd(b);b.i.initData.length||b.D.length||(d=function(f){return Zd(b,f.initDataType,ec(f.initData))},b.h.m(b.g,"encrypted",d));x(e)})};function $d(a){var b;return H(function(c){if(1==c.g){if(!(a.u&&a.i&&a.i.serverCertificate&&a.i.serverCertificate.length))return c.C(0);y(c,3);return t(c,a.u.setServerCertificate(a.i.serverCertificate),5)}if(3!=c.g)return ua(c,0);b=C(c);throw new N(2,6,6004,b.message);})}
|
|
130
|
+
function ae(a,b){var c,d,e;return H(function(f){if(1==f.g)return t(f,be(a,b),2);if(3!=f.g){c=f.h;if(!c)return f["return"]();d=[];if(e=a.j.get(c))e.Za=new ic,d.push(e.Za);d.push(c.remove());return t(f,Promise.all(d),3)}a.j["delete"](c);x(f)})}function Yd(a){for(var b=(a.i?a.i.initData:[])||[],c=r(b),d=c.next();!d.done;d=c.next())d=d.value,Zd(a,d.initDataType,d.initData);c=r(a.D);for(d=c.next();!d.done;d=c.next())be(a,d.value);b.length||a.D.length||a.A.resolve();return a.A}
|
|
131
|
+
function Zd(a,b,c){var d=a.j.values();d=r(d);for(var e=d.next();!e.done;e=d.next())if(cc(c,e.value.initData)&&!Dd("Tizen 2"))return;ce(a,b,c)}function de(a){return a?a.keySystem:""}function ee(a,b){if(navigator.userAgent.match(/Edge\//))return!0;b=b.toLowerCase();if(Cd()&&b.includes('codecs="ac-3"')){var c=b.replace("ac-3","ec-3");return a.B.has(b)||a.B.has(c)}return a.B.has(b)}function fe(a){a=a.j.keys();a=ab(a,function(b){return b.sessionId});return Array.from(a)}
|
|
132
|
+
Id.prototype.uc=function(){var a=Infinity,b=this.j.keys();b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a};
|
|
133
|
+
function Vd(a,b){for(var c=new Set,d=r(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=r((e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]));for(e=f.next();!e.done;e=f.next())c.add(e.value)}d=r(c);for(e=d.next();!e.done;e=d.next())Ud(e.value,rd(a.v.servers),rd(a.v.advanced||{}));f=a.H?"required":"optional";var g=a.H?["persistent-license"]:["temporary"];d=new Map;c=r(c);for(e=c.next();!e.done;e=c.next())e=e.value,d.set(e.keySystem,{initDataTypes:["cenc"],audioCapabilities:[],videoCapabilities:[],
|
|
134
|
+
distinctiveIdentifier:"optional",persistentState:f,sessionTypes:g,label:e.keySystem,drmInfos:[]});c=r(b);for(e=c.next();!e.done;e=c.next())for(e=e.value,f=r([e.audio,e.video]),e=f.next();!e.done;e=f.next())if(g=e.value){var h=ge(g),k=null;"ac-3"==g.codecs.toLowerCase()&&Cd()&&(k=ge(g,"ec-3"));var l=r(g.drmInfos);for(e=l.next();!e.done;e=l.next()){var m=e.value;e=d.get(m.keySystem);e.drmInfos.push(m);m.initData&&m.initData.length&&(e.initDataTypes=[].concat(ia(new Set(m.initData.map(function(q){return q.initDataType})))));
|
|
135
|
+
m.distinctiveIdentifierRequired&&(e.distinctiveIdentifier="required");m.persistentStateRequired&&(e.persistentState="required");m="audio"==g.type?m.audioRobustness:m.videoRobustness;var n={robustness:m||"",contentType:h};"audio"==g.type?e.audioCapabilities.push(n):e.videoCapabilities.push(n);k&&(m={robustness:m||"",contentType:k},"audio"==g.type?e.audioCapabilities.push(m):e.videoCapabilities.push(m))}}return d}function ge(a,b){var c=ud(a.mimeType,b||a.codecs);return Ac(c)?Bc(a.type,c):c}
|
|
136
|
+
function Rd(a,b){var c,d,e,f,g,h,k,l,m,n,q,u,v,A,w,z,D,B,E,F,I,G;return H(function(J){switch(J.g){case 1:if(1==b.size&&b.has(""))throw new N(2,6,6E3);c=r(b.values());for(d=c.next();!d.done;d=c.next())e=d.value,0==e.audioCapabilities.length&&delete e.audioCapabilities,0==e.videoCapabilities.length&&delete e.videoCapabilities;g=r([!0,!1]);h=g.next();case 2:if(h.done){J.C(4);break}k=h.value;l=r(b.keys());m=l.next();case 5:if(m.done){J.C(7);break}n=m.value;q=b.get(n);u=q.drmInfos.some(function(K){return!!K.licenseServerUri});
|
|
137
|
+
if(u!=k){J.C(6);break}y(J,8);return t(J,navigator.requestMediaKeySystemAccess(n,[q]),10);case 10:f=J.h;J.C(7);break;case 8:C(J);case 9:id(a.M);case 6:m=l.next();J.C(5);break;case 7:if(f){J.C(4);break}h=g.next();J.C(2);break;case 4:if(!f)throw new N(2,6,6001);id(a.M);y(J,11);a.B.clear();v=f.getConfiguration();A=v.audioCapabilities||[];w=v.videoCapabilities||[];z=r(A);for(D=z.next();!D.done;D=z.next())B=D.value,a.B.add(B.contentType.toLowerCase());E=r(w);for(D=E.next();!D.done;D=E.next())F=D.value,
|
|
138
|
+
a.B.add(F.contentType.toLowerCase());a.i=he(f.keySystem,b.get(f.keySystem));if(!a.i.licenseServerUri)throw new N(2,6,6012,a.i.keySystem);return t(J,f.createMediaKeys(),13);case 13:return I=J.h,id(a.M),a.u=I,a.N=!0,t(J,$d(a),14);case 14:id(a.M);ua(J,0);break;case 11:G=C(J);id(a.M,G);a.i=null;a.B.clear();if(G instanceof N)throw G;throw new N(2,6,6002,G.message);}})}
|
|
139
|
+
function Sd(a){a=rd(a.v.clearKeys);if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=wc(f),h=wc(e);g={kty:"oct",kid:uc(g,!1),k:uc(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:ec(pc(d)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
|
|
140
140
|
initData:d,keyIds:new Set(c)}}
|
|
141
|
-
function
|
|
142
|
-
a.l(new
|
|
143
|
-
function
|
|
144
|
-
c)["catch"](function(e){if(!a.M.g){a.j["delete"](d);var f=e.errorCode;if(f&&f.systemCode){var g=f.systemCode;0>g&&(g+=Math.pow(2,32));g="0x"+g.toString(16)}a.l(new
|
|
145
|
-
function
|
|
146
|
-
|
|
147
|
-
A=new O(function(){d.loaded=!0;
|
|
148
|
-
function
|
|
149
|
-
function
|
|
150
|
-
(e=!0);k=
|
|
151
|
-
function
|
|
152
|
-
return
|
|
153
|
-
function
|
|
154
|
-
function
|
|
155
|
-
function
|
|
156
|
-
|
|
157
|
-
function
|
|
158
|
-
function
|
|
159
|
-
function
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
(a
|
|
163
|
-
|
|
164
|
-
p.
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
function
|
|
168
|
-
function
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
function
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
function
|
|
179
|
-
|
|
180
|
-
function
|
|
181
|
-
|
|
141
|
+
function be(a,b){var c,d,e,f,g;return H(function(h){switch(h.g){case 1:try{c=a.u.createSession("persistent-license")}catch(k){return d=new N(2,6,6005,k.message),a.l(d),h["return"](Promise.reject(d))}a.h.m(c,"message",function(k){a.g&&a.v.delayLicenseRequestUntilPlayed&&a.g.paused&&!a.P?a.K.push(k):Xd(a,k)});a.h.m(c,"keystatuseschange",function(k){return ie(a,k)});e={initData:null,loaded:!1,Sd:Infinity,Za:null};a.j.set(c,e);y(h,2);return t(h,c.load(b),4);case 4:f=h.h;id(a.M);if(!f)return a.j["delete"](c),
|
|
142
|
+
a.l(new N(2,6,6013)),h["return"](Promise.resolve());e.loaded=!0;je(a)&&a.A.resolve();return h["return"](c);case 2:g=C(h),id(a.M,g),a.j["delete"](c),a.l(new N(2,6,6005,g.message));case 3:return h["return"](Promise.resolve())}})}
|
|
143
|
+
function ce(a,b,c){try{var d=a.H?a.u.createSession("persistent-license"):a.u.createSession()}catch(e){a.l(new N(2,6,6005,e.message));return}a.h.m(d,"message",function(e){a.g&&a.v.delayLicenseRequestUntilPlayed&&a.g.paused&&!a.P?a.K.push(e):Xd(a,e)});a.h.m(d,"keystatuseschange",function(e){return ie(a,e)});a.j.set(d,{initData:c,loaded:!1,Sd:Infinity,Za:null});try{c=a.v.initDataTransform(c,b,a.i)}catch(e){b=e;e instanceof N||(b=new N(2,6,6016,e));a.l(b);return}a.v.logLicenseExchange&&uc(c);d.generateRequest(b,
|
|
144
|
+
c)["catch"](function(e){if(!a.M.g){a.j["delete"](d);var f=e.errorCode;if(f&&f.systemCode){var g=f.systemCode;0>g&&(g+=Math.pow(2,32));g="0x"+g.toString(16)}a.l(new N(2,6,6006,e.message,e,g))}})}function ke(a,b,c){"skd"==b&&(b=c.serverCertificate,c=pd(a),a=qd(a,c,b));return a}
|
|
145
|
+
function Xd(a,b){var c,d,e,f,g,h,k,l,m,n,q,u,v,A;H(function(w){switch(w.g){case 1:return c=b.target,a.v.logLicenseExchange&&uc(b.message),d=a.j.get(c),e=a.i.licenseServerUri,f=a.v.advanced[a.i.keySystem],"individualization-request"==b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer),g=$c([e],a.v.retryParameters),g.body=b.message,g.method="POST",g.licenseRequestType=b.messageType,g.sessionId=c.sessionId,"com.microsoft.playready"!=a.i.keySystem&&"com.chromecast.playready"!=a.i.keySystem||
|
|
146
|
+
le(g),h=Date.now(),y(w,2),l=a.G.bc.request(2,g),t(w,l.promise,4);case 4:k=w.h;ua(w,3);break;case 2:return m=C(w),n=new N(2,6,6007,m),a.l(n),d&&d.Za&&d.Za.reject(n),w["return"]();case 3:if(a.M.g)return w["return"]();a.J+=(Date.now()-h)/1E3;a.v.logLicenseExchange&&uc(k.data);y(w,5);return t(w,c.update(k.data),7);case 7:ua(w,6);break;case 5:return q=C(w),u=new N(2,6,6008,q.message),a.l(u),d&&d.Za&&d.Za.reject(u),w["return"]();case 6:v=new M("drmsessionupdate"),a.G.onEvent(v),d&&(d.Za&&d.Za.resolve(),
|
|
147
|
+
A=new O(function(){d.loaded=!0;je(a)&&a.A.resolve()}),A.V(me)),x(w)}})}
|
|
148
|
+
function le(a){var b=nc(a.body,!0,!0);if(b.includes("PlayReadyKeyMessage")){b=(new DOMParser).parseFromString(b,"application/xml");for(var c=r(b.getElementsByTagName("HttpHeader")),d=c.next();!d.done;d=c.next())d=d.value,a.headers[d.getElementsByTagName("name")[0].textContent]=d.getElementsByTagName("value")[0].textContent;a.body=vc(b.getElementsByTagName("Challenge")[0].textContent)}else a.headers["Content-Type"]="text/xml; charset=utf-8"}
|
|
149
|
+
function ie(a,b){var c=b.target,d=a.j.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if("string"==typeof h){var k=h;h=g;g=k}if("com.microsoft.playready"==a.i.keySystem&&16==h.byteLength&&(Dd("Trident/")||navigator.userAgent.match(/Edge?\//))){k=hc(h);var l=k.getUint32(0,!0),m=k.getUint16(4,!0),n=k.getUint16(6,!0);k.setUint32(0,l,!1);k.setUint16(4,m,!1);k.setUint16(6,n,!1)}"com.microsoft.playready"==a.i.keySystem&&"status-pending"==g&&(g="usable");"status-pending"!=g&&(d.loaded=!0);"expired"==g&&
|
|
150
|
+
(e=!0);k=xc(h);a.ba.set(k,g)});var f=c.expiration-Date.now();(0>f||e&&1E3>f)&&d&&!d.Za&&(a.j["delete"](c),c.close()["catch"](function(){}));je(a)&&(a.A.resolve(),a.S.V(ne))}function Jd(a){var b=a.ba,c=a.X;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.l(new N(2,6,6014));a.G.gd(sd(c))}
|
|
151
|
+
function oe(){var a,b,c,d,e,f,g,h;return H(function(k){return 1==k.g?(a="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.apple.fps.3_0 com.apple.fps.2_0 com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" "),b=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],c={initDataTypes:["cenc"],videoCapabilities:b},d={videoCapabilities:b,persistentState:"required",sessionTypes:["persistent-license"]},e=[d,c],f=new Map,g=function(l){var m,n,q;
|
|
152
|
+
return H(function(u){switch(u.g){case 1:return y(u,2),t(u,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=u.h,q=(n=m.getConfiguration().sessionTypes)?n.includes("persistent-license"):!1,Dd("Tizen 3")&&(q=!1),f.set(l,{persistentState:q}),t(u,m.createMediaKeys(),5);case 5:ua(u,0);break;case 2:C(u),f.set(l,null),x(u)}})},h=a.map(function(l){return g(l)}),t(k,Promise.all(h),2)):k["return"](sd(f))})}
|
|
153
|
+
function pe(a){var b;return H(function(c){if(1==c.g)return b=new Promise(function(d,e){(new O(e)).V(qe)}),y(c,2),t(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return ua(c,0);C(c);x(c)})}function Md(a){var b;return H(function(c){b=Array.from(a.j.keys());a.j.clear();return t(c,Promise.all(b.map(function(d){return H(function(e){if(1==e.g)return y(e,2),t(e,pe(d),4);if(2!=e.g)return ua(e,0);C(e);x(e)})})),0)})}
|
|
154
|
+
function re(a,b){var c=b.audio,d=b.video;if(c&&c.encrypted){var e=ge(c);if(!ee(a,e))return!1}if(d&&d.encrypted&&(e=ge(d),!ee(a,e)))return!1;var f=de(a.i);c=(d?d.drmInfos:[]).concat(c?c.drmInfos:[]);return 0==c.length||c.some(function(g){return g.keySystem==f})}
|
|
155
|
+
function se(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=r(a),e=d.next();!e.done;e=d.next()){e=e.value;for(var f={},g=r(b),h=g.next();!h.done;f={Qa:f.Qa},h=g.next())if(h=h.value,e.keySystem==h.keySystem){f.Qa=[];f.Qa=f.Qa.concat(e.initData||[]);f.Qa=f.Qa.concat(h.initData||[]);f.Qa=f.Qa.filter(function(k){return function(l,m){return void 0===l.keyId||m===k.Qa.findIndex(function(n){return n.keyId===l.keyId})}}(f));g=e.keyIds&&h.keyIds?new Set([].concat(ia(e.keyIds),ia(h.keyIds))):
|
|
156
|
+
e.keyIds||h.keyIds;c.push({keySystem:e.keySystem,licenseServerUri:e.licenseServerUri||h.licenseServerUri,distinctiveIdentifierRequired:e.distinctiveIdentifierRequired||h.distinctiveIdentifierRequired,persistentStateRequired:e.persistentStateRequired||h.persistentStateRequired,videoRobustness:e.videoRobustness||h.videoRobustness,audioRobustness:e.audioRobustness||h.audioRobustness,serverCertificate:e.serverCertificate||h.serverCertificate,initData:f.Qa,keyIds:g});break}}return c}
|
|
157
|
+
function Kd(a){a.j.forEach(function(b,c){var d=b.Sd,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.G.onExpirationUpdated(c.sessionId,e),b.Sd=e)})}function je(a){a=a.j.values();return bb(a,function(b){return b.loaded})}
|
|
158
|
+
function Td(a,b){var c=[];b.forEach(function(f,g){c.push({keySystem:g,licenseServerUri:f,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:new Set})});for(var d=r(a),e=d.next();!e.done;e=d.next())e=e.value,e.video&&(e.video.drmInfos=c),e.audio&&(e.audio.drmInfos=c)}
|
|
159
|
+
function he(a,b){var c=[],d=[],e=[],f=new Set;te(b.drmInfos,c,d,e,f);return{keySystem:a,licenseServerUri:c[0],distinctiveIdentifierRequired:"required"==b.distinctiveIdentifier,persistentStateRequired:"required"==b.persistentState,audioRobustness:(b.audioCapabilities?b.audioCapabilities[0].robustness:"")||"",videoRobustness:(b.videoCapabilities?b.videoCapabilities[0].robustness:"")||"",serverCertificate:d[0],initData:e,keyIds:f}}
|
|
160
|
+
function te(a,b,c,d,e){var f={};a=r(a);for(var g=a.next();!g.done;f={Ka:f.Ka},g=a.next()){f.Ka=g.value;b.includes(f.Ka.licenseServerUri)||b.push(f.Ka.licenseServerUri);f.Ka.serverCertificate&&(c.some(function(l){return function(m){return cc(m,l.Ka.serverCertificate)}}(f))||c.push(f.Ka.serverCertificate));if(f.Ka.initData){g={};for(var h=r(f.Ka.initData),k=h.next();!k.done;g={Oc:g.Oc},k=h.next())g.Oc=k.value,d.some(function(l){return function(m){var n=l.Oc;return m.keyId&&m.keyId==n.keyId?!0:m.initDataType==
|
|
161
|
+
n.initDataType&&cc(m.initData,n.initData)}}(g))||d.push(g.Oc)}if(f.Ka.keyIds)for(g=r(f.Ka.keyIds),h=g.next();!h.done;h=g.next())e.add(h.value)}}
|
|
162
|
+
function Ud(a,b,c){if(a.keySystem&&("org.w3.clearkey"!=a.keySystem||!a.licenseServerUri)){b.size&&(b=b.get(a.keySystem)||"",a.licenseServerUri=b);a.keyIds||(a.keyIds=new Set);if(c=c.get(a.keySystem))a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness),a.audioRobustness||(a.audioRobustness=c.audioRobustness),a.serverCertificate||
|
|
163
|
+
(a.serverCertificate=c.serverCertificate);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==a.keySystem&&(a.keySystem="com.chromecast.playready")}}var qe=1,me=5,ne=.5,ue=new jc(function(){return fc(new Uint8Array([0]))});function ve(a,b){this.Y=hc(a);this.g=b==we;this.L=0}p=ve.prototype;p.Va=function(){return this.L<this.Y.byteLength};p.If=function(){return this.L};p.xf=function(){return this.Y.byteLength};p.Oa=function(){try{var a=this.Y.getUint8(this.L);this.L+=1;return a}catch(b){throw xe();}};p.Ic=function(){try{var a=this.Y.getUint16(this.L,this.g);this.L+=2;return a}catch(b){throw xe();}};p.T=function(){try{var a=this.Y.getUint32(this.L,this.g);this.L+=4;return a}catch(b){throw xe();}};
|
|
164
|
+
p.Oe=function(){try{var a=this.Y.getInt32(this.L,this.g);this.L+=4;return a}catch(b){throw xe();}};p.Ib=function(){try{if(this.g){var a=this.Y.getUint32(this.L,!0);var b=this.Y.getUint32(this.L+4,!0)}else b=this.Y.getUint32(this.L,!1),a=this.Y.getUint32(this.L+4,!1)}catch(c){throw xe();}if(2097151<b)throw new N(2,3,3001);this.L+=8;return b*Math.pow(2,32)+a};p.Hb=function(a){if(this.L+a>this.Y.byteLength)throw xe();var b=ec(this.Y,this.L,a);this.L+=a;return b};
|
|
165
|
+
p.skip=function(a){if(this.L+a>this.Y.byteLength)throw xe();this.L+=a};p.Qe=function(a){if(this.L<a)throw xe();this.L-=a};p.seek=function(a){if(0>a||a>this.Y.byteLength)throw xe();this.L=a};p.Hc=function(){for(var a=this.L;this.Va()&&0!=this.Y.getUint8(this.L);)this.L+=1;a=ec(this.Y,a,this.L-a);this.L+=1;return lc(a)};function xe(){return new N(2,3,3E3)}L("shaka.util.DataViewReader",ve);ve.prototype.readTerminatedString=ve.prototype.Hc;ve.prototype.seek=ve.prototype.seek;ve.prototype.rewind=ve.prototype.Qe;
|
|
166
|
+
ve.prototype.skip=ve.prototype.skip;ve.prototype.readBytes=ve.prototype.Hb;ve.prototype.readUint64=ve.prototype.Ib;ve.prototype.readInt32=ve.prototype.Oe;ve.prototype.readUint32=ve.prototype.T;ve.prototype.readUint16=ve.prototype.Ic;ve.prototype.readUint8=ve.prototype.Oa;ve.prototype.getLength=ve.prototype.xf;ve.prototype.getPosition=ve.prototype.If;ve.prototype.hasMoreData=ve.prototype.Va;var we=1;ve.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:we};function ye(){this.i=[];this.h=[];this.g=!1}p=ye.prototype;p.box=function(a,b){var c=ze(a);this.i[c]=Ae;this.h[c]=b;return this};p.ea=function(a,b){var c=ze(a);this.i[c]=Be;this.h[c]=b;return this};p.stop=function(){this.g=!0};p.parse=function(a,b){var c=new ve(a,0);for(this.g=!1;c.Va()&&!this.g;)this.jd(0,c,b)};
|
|
167
|
+
p.jd=function(a,b,c){var d=b.L,e=b.T(),f=b.T(),g=!1;switch(e){case 0:e=b.Y.byteLength-d;break;case 1:e=b.Ib(),g=!0}var h=this.h[f];if(h){var k=null,l=null;this.i[f]==Be&&(l=b.T(),k=l>>>24,l&=16777215);f=d+e;c&&f>b.Y.byteLength&&(f=b.Y.byteLength);f-=b.L;b=0<f?b.Hb(f):new Uint8Array(0);b=new ve(b,0);h({parser:this,partialOkay:c||!1,version:k,flags:l,reader:b,size:e,start:d+a,has64BitSize:g})}else b.skip(Math.min(d+e-b.L,b.Y.byteLength-b.L))};
|
|
168
|
+
function Ce(a){for(var b=De(a);a.reader.Va()&&!a.parser.g;)a.parser.jd(a.start+b,a.reader,a.partialOkay)}function Ee(a){var b=De(a),c=a.reader.T();c=r(fb(c));for(var d=c.next();!d.done&&(a.parser.jd(a.start+b,a.reader,a.partialOkay),!a.parser.g);d=c.next());}function Fe(a){return function(b){a(b.reader.Hb(b.reader.Y.byteLength-b.reader.L))}}function ze(a){var b=0;a=r(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}
|
|
169
|
+
function Ge(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function De(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}L("shaka.util.Mp4Parser",ye);ye.headerSize=De;ye.typeToString=Ge;ye.allData=Fe;ye.sampleDescription=Ee;ye.children=Ce;ye.prototype.parseNext=ye.prototype.jd;ye.prototype.parse=ye.prototype.parse;ye.prototype.stop=ye.prototype.stop;ye.prototype.fullBox=ye.prototype.ea;ye.prototype.box=ye.prototype.box;var Ae=0,Be=1;function He(a){function b(){d=!0}function c(l){f.push(l);Ce(l)}a=ec(a);var d=!1,e,f=[],g=[];(new ye).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).ea("stsd",function(l){e=l;f.push(l);Ee(l)}).ea("encv",b).ea("enca",b).ea("avc1",function(l){g.push({box:l,Ec:1701733238})}).ea("avc3",function(l){g.push({box:l,Ec:1701733238})}).ea("ac-3",function(l){g.push({box:l,Ec:1701733217})}).ea("ec-3",function(l){g.push({box:l,Ec:1701733217})}).ea("mp4a",function(l){g.push({box:l,Ec:1701733217})}).parse(a);
|
|
170
|
+
if(d)return a;if(0==g.length||!e)throw Ta(xc(a)),new N(2,3,3019);g.reverse();for(var h=r(g),k=h.next();!k.done;k=h.next())k=k.value,a=Ie(a,e,k.box,f,k.Ec);return a}
|
|
171
|
+
function Ie(a,b,c,d,e){var f=Je.value(),g=a.subarray(c.start,c.start+c.size),h=hc(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=hc(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);Ke(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=Dd("Xbox One")?c.start:c.start+c.size;f=a.subarray(c);e.set(a.subarray(0,c));e.set(k,c);e.set(f,c+k.byteLength);a=r(d);for(d=a.next();!d.done;d=a.next())d=d.value,Ke(e,d.start,d.size+k.byteLength);k=hc(e,b.start);b=De(b);
|
|
172
|
+
a=k.getUint32(b);k.setUint32(b,a+1);return e}function Ke(a,b,c){a=hc(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}var Je=new jc(function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])});function Le(){this.g=new muxjs.mp4.CaptionParser;this.l=[];this.j={}}Le.prototype.init=function(a){var b=muxjs.mp4.probe;a=ec(a);this.l=b.videoTrackIds(a);this.j=b.timescale(a);this.g.init()};Le.prototype.i=function(a,b){var c=ec(a);(c=this.g.parse(c,this.l,this.j))&&c.captions&&b(c.captions);this.g.clearParsedCaptions()};Le.prototype.h=function(){this.g.resetCaptionStream()};function Me(){}Me.prototype.init=function(){};Me.prototype.i=function(){};Me.prototype.h=function(){};function Ne(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Oe(a,b,c){c=void 0===c?0:c;return!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0)||b>a.end(a.length-1)?!1:b+c>=a.start(0)}function Pe(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;for(var c=0,d=r(Qe(a)),e=d.next();!e.done;e=d.next()){var f=e.value;e=f.start;f=f.end;f>b&&(c+=f-Math.max(e,b))}return c}
|
|
173
|
+
function Re(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;var c=navigator.userAgent.match(/Edge\//)||Dd("Trident/")||Cd()||Dd("CrKey")?.5:.1,d=Qe(a).findIndex(function(e,f,g){return e.start>b&&(0==f||g[f-1].end-b<=c)});return 0<=d?d:null}function Qe(a){if(!a)return[];for(var b=[],c=r(fb(a.length)),d=c.next();!d.done;d=c.next())d=d.value,b.push({start:a.start(d),end:a.end(d)});return b};function Se(a,b,c){this.startTime=a;this.direction=Te;this.endTime=b;this.payload=c;this.region=new Ue;this.position=null;this.positionAlign=Ve;this.size=0;this.textAlign=We;this.writingMode=Xe;this.lineInterpretation=Ye;this.line=null;this.lineHeight="";this.lineAlign=Ze;this.displayAlign=$e;this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=af;this.fontStyle=bf;this.linePadding=this.letterSpacing=this.fontFamily="";this.opacity=1;this.textDecoration=
|
|
174
|
+
[];this.wrapLine=!0;this.id="";this.nestedCues=[];this.spacer=!1;this.cellResolution={columns:32,rows:15}}Se.prototype.clone=function(){var a=new Se(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
|
|
175
|
+
function cf(a,b){if(a.startTime!=b.startTime||a.endTime!=b.endTime||a.payload!=b.payload)return!1;for(var c in a)if("startTime"!=c&&"endTime"!=c&&"payload"!=c)if("nestedCues"==c){if(!Tc(a.nestedCues,b.nestedCues,cf))return!1}else if("region"==c||"cellResolution"==c)for(var d in a[c]){if(a[c][d]!=b[c][d])return!1}else if(Array.isArray(a[c])){if(!Tc(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}L("shaka.text.Cue",Se);var Ve="auto";
|
|
176
|
+
Se.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:Ve};var We="center",df={LEFT:"left",RIGHT:"right",CENTER:We,START:"start",END:"end"};Se.textAlign=df;var $e="after",ef={BEFORE:"before",CENTER:"center",AFTER:$e};Se.displayAlign=ef;var Te="ltr";Se.direction={HORIZONTAL_LEFT_TO_RIGHT:Te,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var Xe="horizontal-tb";Se.writingMode={HORIZONTAL_TOP_TO_BOTTOM:Xe,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var Ye=0;
|
|
177
|
+
Se.lineInterpretation={LINE_NUMBER:Ye,PERCENTAGE:1};var Ze="start",ff={CENTER:"center",START:Ze,END:"end"};Se.lineAlign=ff;var af=400;Se.fontWeight={NORMAL:af,BOLD:700};var bf="normal",gf={NORMAL:bf,ITALIC:"italic",OBLIQUE:"oblique"};Se.fontStyle=gf;Se.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};
|
|
178
|
+
function Ue(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=hf;this.scroll=jf}L("shaka.text.CueRegion",Ue);var hf=1;Ue.units={PX:0,PERCENTAGE:hf,LINES:2};var jf="";Ue.scrollMode={NONE:jf,UP:"up"};function kf(a){this.B=null;this.i=a;this.j=this.D=0;this.l=Infinity;this.h=this.g=null;this.A="";this.u=new Map}function lf(a){return mf[a]||window.muxjs&&"application/cea-608"==a?!0:!1}kf.prototype.destroy=function(){this.i=this.B=null;this.u.clear();return Promise.resolve()};
|
|
179
|
+
function nf(a,b,c,d){var e,f,g;return H(function(h){if(1==h.g)return t(h,Promise.resolve(),2);if(!a.B||!a.i)return h["return"]();if(null==c||null==d)return a.B.parseInit(ec(b)),h["return"]();e={periodStart:a.D,segmentStart:c,segmentEnd:d};f=a.B.parseMedia(ec(b),e);g=f.filter(function(k){return k.startTime>=a.j&&k.startTime<a.l});a.i.append(g);null==a.g&&(a.g=Math.max(c,a.j));a.h=Math.min(d,a.l);x(h)})}
|
|
180
|
+
kf.prototype.remove=function(a,b){var c=this;return H(function(d){if(1==d.g)return t(d,Promise.resolve(),2);!c.i||!c.i.remove(a,b)||null==c.g||b<=c.g||a>=c.h||(a<=c.g&&b>=c.h?c.g=c.h=null:a<=c.g&&b<c.h?c.g=b:a>c.g&&b>=c.h&&(c.h=a));x(d)})};function pf(a,b,c){a.j=b;a.l=c}function qf(a,b,c){a.A=b;if(b=a.u.get(b))for(var d=r(b.keys()),e=d.next();!e.done;e=d.next())(e=b.get(e.value).filter(function(f){return f.endTime<=c}))&&a.i.append(e)}
|
|
181
|
+
function rf(a,b,c,d,e){var f=c+" "+d,g=new Map;b=r(b);for(var h=b.next();!h.done;h=b.next()){var k=h.value;h=k.stream;g.has(h)||g.set(h,new Map);g.get(h).has(f)||g.get(h).set(f,[]);k.startTime+=e;k.endTime+=e;k.startTime>=a.j&&k.startTime<a.l&&(k=new Se(k.startTime,k.endTime,k.text),g.get(h).get(f).push(k),h==a.A&&a.i.append([k]))}e=r(g.keys());for(f=e.next();!f.done;f=e.next())for(f=f.value,a.u.has(f)||a.u.set(f,new Map),b=r(g.get(f).keys()),h=b.next();!h.done;h=b.next())h=h.value,k=g.get(f).get(h),
|
|
182
|
+
a.u.get(f).set(h,k);a.g=null==a.g?Math.max(c,a.j):Math.min(a.g,Math.max(c,a.j));a.h=Math.max(a.h,Math.min(d,a.l))}L("shaka.text.TextEngine",kf);kf.prototype.destroy=kf.prototype.destroy;kf.unregisterParser=function(a){delete mf[a]};kf.registerParser=function(a,b){mf[a]=b};var mf={};function sf(a,b,c,d){var e=this;this.g=a;this.u=c;this.j={};this.K={};this.i=null;this.N=d||function(){};this.l={};this.h=new jd;this.B={};this.D=b;this.H=new ic;this.A=tf(this,this.H);this.M=new hd(function(){return uf(e)});this.J=""}function tf(a,b){var c=new MediaSource;a.h.Ga(c,"sourceopen",function(){URL.revokeObjectURL(a.J);b.resolve()});a.J=vf(c);a.g.src=a.J;return c}function wf(a){var b=ud(a.mimeType,a.codecs),c=vd(a);return lf(b)||MediaSource.isTypeSupported(c)||Ac(b,a.type)}p=sf.prototype;
|
|
182
183
|
p.destroy=function(){return this.M.destroy()};
|
|
183
|
-
function
|
|
184
|
+
function uf(a){var b,c,d,e,f,g,h,k;return H(function(l){if(1==l.g){b=[];for(c in a.l)for(d=a.l[c],e=d[0],a.l[c]=d.slice(0,1),e&&b.push(e.p["catch"](Db)),f=r(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new N(2,7,7003,void 0));a.i&&b.push(a.i.destroy());a.u&&b.push(a.u.destroy());for(k in a.B)b.push(a.B[k].destroy());return t(l,Promise.all(b),2)}a.h&&(a.h.release(),a.h=null);a.g&&(a.g.removeAttribute("src"),a.g.load(),a.g=null);a.A=null;a.i=null;a.u=null;a.j={};a.B={};a.D=null;a.l=
|
|
184
185
|
{};x(l)})}
|
|
185
|
-
p.init=function(a,b){var c=this,d,e,f,g,h,k,l;return
|
|
186
|
-
c.j[e.
|
|
187
|
-
function
|
|
188
|
-
function
|
|
189
|
-
a.N(h.metadata,k,e));h.captions&&h.captions.length&&(l=a.j[g
|
|
190
|
-
function
|
|
191
|
-
function
|
|
192
|
-
p.endOfStream=function(a){var b=this;return
|
|
193
|
-
function
|
|
194
|
-
function
|
|
195
|
-
function
|
|
196
|
-
function
|
|
197
|
-
function
|
|
198
|
-
function
|
|
199
|
-
function
|
|
186
|
+
p.init=function(a,b){var c=this,d,e,f,g,h,k,l;return H(function(m){if(1==m.g)return d=Ib,t(m,c.H,2);e={};f=r(a.keys());for(g=f.next();!g.done;e={Ca:e.Ca},g=f.next())e.Ca=g.value,h=a.get(e.Ca),k=ud(h.mimeType,h.codecs),e.Ca==d.ya?xf(c,k):(!b&&MediaSource.isTypeSupported(k)||!Ac(k,e.Ca)||(c.B[e.Ca]=new zc,k=Bc(e.Ca,k)),l=c.A.addSourceBuffer(k),c.h.m(l,"error",function(n){return function(){c.l[n.Ca][0].p.reject(new N(2,3,3014,c.g.error?c.g.error.code:0))}}(e)),c.h.m(l,"updateend",function(n){return function(){return yf(c,n.Ca)}}(e)),
|
|
187
|
+
c.j[e.Ca]=l,c.K[e.Ca]=k,c.l[e.Ca]=[]);x(m)})};function xf(a,b){a.i||(a.i=new kf(a.u));"application/cea-608"!=b&&(a.i.B=Fb(mf[b]))}function zf(a){return a.A?"ended"==a.A.readyState:!0}function Af(a,b){if("text"==b)var c=a.i.g;else c=Bf(a,b),c=!c||1==c.length&&1E-6>c.end(0)-c.start(0)?null:1==c.length&&0>c.start(0)?0:c.length?c.start(0):null;return c}function Cf(a,b){return"text"==b?a.i.h:Ne(Bf(a,b))}
|
|
188
|
+
function Df(a,b,c){if("text"==b)return a=a.i,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=Bf(a,b);return Pe(a,c)}p.Zc=function(){var a={total:Qe(this.g.buffered),audio:Qe(Bf(this,"audio")),video:Qe(Bf(this,"video")),text:[]};if(this.i){var b=this.i.g,c=this.i.h;null!=b&&null!=c&&a.text.push({start:b,end:c})}return a};function Bf(a,b){try{return a.j[b].buffered}catch(c){return null}}
|
|
189
|
+
function Ef(a,b,c,d,e,f){var g,h,k,l,m;return H(function(n){if(1==n.g){g=Ib;if(b==g.ya)return t(n,nf(a.i,c,d,e),0);if(a.B[b])return t(n,Cc(a.B[b],c),10);if(f&&window.muxjs)return a.i||xf(a,"text/vtt"),null==d&&null==e?a.D.init(c):a.D.i(c,function(q){q.length&&rf(a.i,q,d,e,a.j[g.bb].timestampOffset)}),c=Ff(a,c,d,b),t(n,Gf(a,b,function(){a.j[b].appendBuffer(c)}),0);c=Ff(a,c,d,b);return t(n,Gf(a,b,function(){a.j[b].appendBuffer(c)}),0)}h=n.h;a.i||xf(a,"text/vtt");h.metadata&&(k=a.j[b].timestampOffset,
|
|
190
|
+
a.N(h.metadata,k,e));h.captions&&h.captions.length&&(l=a.j[g.bb].timestampOffset,rf(a.i,h.captions,d,e,l));m=h.data;m=Ff(a,m,d,b);return t(n,Gf(a,b,function(){a.j[b].appendBuffer(m)}),0)})}function Hf(a,b){var c=Cf(a,"video")||0;qf(a.i,b,c)}function If(a){a.i&&qf(a.i,"",0)}p.remove=function(a,b,c){var d=this,e;return H(function(f){e=Ib;return a==e.ya?t(f,d.i.remove(b,c),0):t(f,Gf(d,a,function(){c<=b?yf(d,a):d.j[a].remove(b,c)}),0)})};
|
|
191
|
+
function Jf(a,b){var c;return H(function(d){c=Ib;return b==c.ya?a.i?t(d,a.i.remove(0,Infinity),0):d["return"]():t(d,Gf(a,b,function(){var e=a.A.duration;0>=e?yf(a,b):a.j[b].remove(0,e)}),0)})}p.flush=function(a){var b=this,c;return H(function(d){c=Ib;return a==c.ya?d["return"]():t(d,Gf(b,a,function(){b.g.currentTime-=.001;yf(b,a)}),0)})};
|
|
192
|
+
function Kf(a,b,c,d,e){var f;return H(function(g){f=Ib;return b==f.ya?(a.i.D=c,pf(a.i,d,e),g["return"]()):t(g,Promise.all([Gf(a,b,function(){var h=a.j[b].appendWindowStart,k=a.j[b].appendWindowEnd;a.j[b].abort();a.j[b].appendWindowStart=h;a.j[b].appendWindowEnd=k;yf(a,b)}),Gf(a,b,function(){var h=c;0>h&&(h+=.001);a.j[b].timestampOffset=h;yf(a,b)}),Gf(a,b,function(){a.j[b].appendWindowStart=0;a.j[b].appendWindowEnd=e;a.j[b].appendWindowStart=d;yf(a,b)})]),0)})}
|
|
193
|
+
p.endOfStream=function(a){var b=this;return H(function(c){return t(c,Lf(b,function(){zf(b)||(a?b.A.endOfStream(a):b.A.endOfStream())}),0)})};p.Ya=function(a){var b=this;return H(function(c){return t(c,Lf(b,function(){b.A.duration=a}),0)})};p.getDuration=function(){return this.A.duration};function yf(a,b){var c=a.l[b][0];c&&(c.p.resolve(),Mf(a,b))}function Gf(a,b,c){id(a.M);c={start:c,p:new ic};a.l[b].push(c);1==a.l[b].length&&Nf(a,b);return c.p}
|
|
194
|
+
function Lf(a,b){var c,d,e,f,g,h;return H(function(k){switch(k.g){case 1:id(a.M);c=[];d={};for(e in a.j)d.lc=new ic,f={start:function(l){return function(){return l.lc.resolve()}}(d),p:d.lc},a.l[e].push(f),c.push(d.lc),1==a.l[e].length&&f.start(),d={lc:d.lc};y(k,2);return t(k,Promise.all(c),4);case 4:ua(k,3);break;case 2:throw g=C(k),g;case 3:try{b()}catch(l){throw new N(2,3,3015,l);}finally{for(h in a.j)Mf(a,h)}x(k)}})}function Mf(a,b){a.l[b].shift();Nf(a,b)}
|
|
195
|
+
function Nf(a,b){var c=a.l[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new N(2,3,3017,b)):c.p.reject(new N(2,3,3015,d)),Mf(a,b)}}function Ff(a,b,c,d){var e=a.g.mediaKeys;null==c&&e&&(Cd()||Dd("Xbox One"))&&"mp4"==a.K[d].split(";")[0].split("/")[1]&&(b=He(b));return b}var vf=window.URL.createObjectURL;function Of(a,b){var c=Pf(a.variants,b);c=Qf(c);c=Rf(c);var d=Sf(c);a.variants=a.variants.filter(function(e){return Tf(e)==d?!0:!1})}function Qf(a){var b=new Wa;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=Tf(c);b.push(d,c)}return b}
|
|
196
|
+
function Rf(a){var b=0,c=new Map,d=a.size();Xa(a,function(e,f){for(var g=r(f),h=g.next();!h.done;h=g.next()){h=h.value;var k=h.video;if(k&&k.width&&k.height){k=k.width*k.height*(k.frameRate||1);c.has(k)||c.set(k,new Wa);var l=c.get(k);l.push(e,h);l.size()===d&&(b=Math.max(b,k))}}});return b?c.get(b):a}function Sf(a){var b="",c=Infinity;Xa(a,function(d,e){for(var f=0,g=0,h=r(e),k=h.next();!k.done;k=h.next())f+=k.value.bandwidth||0,++g;f/=g;f<c&&(b=d,c=f)});return b}
|
|
197
|
+
function Tf(a){var b="";a.video&&(b=xd(a.video.codecs));var c="";a.audio&&(c=xd(a.audio.codecs));return b+"-"+c}
|
|
198
|
+
function Uf(a,b,c){function d(f,g,h){return f>=g&&f<=h}var e=a.video;return e&&e.width&&e.height&&(!d(e.width,b.minWidth,Math.min(b.maxWidth,c.width))||!d(e.height,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))||a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0}
|
|
199
|
+
function Vf(a,b,c){c.variants=c.variants.filter(function(d){if(a&&a.N&&!re(a,d))return!1;var e=d.audio;d=d.video;return e&&!wf(e)||d&&!wf(d)||Dd("Xbox One")&&d&&(d.width&&1920<d.width||d.height&&1080<d.height)&&d.codecs.includes("avc1.")||e&&b&&b.audio&&!Wf(e,b.audio)||d&&b&&b.video&&!Wf(d,b.video)?!1:!0});c.textStreams=c.textStreams.filter(function(d){return lf(ud(d.mimeType,d.codecs))})}function Wf(a,b){return a.mimeType!=b.mimeType||a.codecs.split(".")[0]!=b.codecs.split(".")[0]?!1:!0}
|
|
200
|
+
function Xf(a){var b=a.audio,c=a.video,d=b?b.codecs:null,e=c?c.codecs:null,f=[];e&&f.push(e);d&&f.push(d);var g=[];c&&g.push(c.mimeType);b&&g.push(b.mimeType);g=g[0]||null;var h=[];b&&h.push(b.kind);c&&h.push(c.kind);h=h[0]||null;var k=new Set;if(b)for(var l=r(b.roles),m=l.next();!m.done;m=l.next())k.add(m.value);if(c)for(l=r(c.roles),m=l.next();!m.done;m=l.next())k.add(m.value);a={id:a.id,active:!1,type:"variant",bandwidth:a.bandwidth,language:a.language,label:null,kind:h,width:null,height:null,
|
|
200
201
|
frameRate:null,pixelAspectRatio:null,mimeType:g,codecs:f.join(", "),audioCodec:d,videoCodec:e,primary:a.primary,roles:Array.from(k),audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null};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=
|
|
201
202
|
c.bandwidth||null);b&&(a.audioId=b.id,a.originalAudioId=b.originalId,a.channelsCount=b.channelsCount,a.audioSamplingRate=b.audioSamplingRate,a.audioBandwidth=b.bandwidth||null,a.label=b.label,a.audioRoles=b.roles);return a}
|
|
202
|
-
function
|
|
203
|
-
function
|
|
204
|
-
function
|
|
205
|
-
function
|
|
206
|
-
function
|
|
207
|
-
function
|
|
208
|
-
function
|
|
209
|
-
p.chooseVariant=function(){var a=
|
|
210
|
-
p.enable=function(){this.i=!0};p.disable=function(){this.i=!1};p.segmentDownloaded=function(a,b){var c=this.h;if(!(16E3>b)){var d=8E3*b/a,e=a/1E3;c.g+=b;
|
|
211
|
-
p.setVariants=function(a){this.g=a};p.playbackRateChanged=function(a){this.l=a};p.configure=function(a){this.v=a};function
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
function
|
|
215
|
-
|
|
216
|
-
function
|
|
217
|
-
function
|
|
218
|
-
|
|
219
|
-
function
|
|
220
|
-
|
|
221
|
-
p.
|
|
222
|
-
p.
|
|
223
|
-
p.
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
function
|
|
227
|
-
d>=a.D.
|
|
228
|
-
function
|
|
229
|
-
function
|
|
230
|
-
function
|
|
231
|
-
l-3);h<k&&(h=
|
|
232
|
-
function
|
|
233
|
-
function
|
|
234
|
-
p.find=function(a){for(var b=this.
|
|
235
|
-
p.
|
|
236
|
-
p.
|
|
237
|
-
p.
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
p.clone=function(){var a=new
|
|
241
|
-
p.
|
|
242
|
-
function
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
function
|
|
246
|
-
function
|
|
247
|
-
function
|
|
248
|
-
function
|
|
249
|
-
k<(g||0)-f-Math.max(a.F.minBufferTime||0,a.v.rebufferingGoal)||b.
|
|
250
|
-
function
|
|
251
|
-
(m=
|
|
252
|
-
|
|
253
|
-
8);case 8:return h["return"]();case 7:f=Array.from(b.g.values());if(!b.u||!f.every(function(k){return k.endOfStream})){h.C(0);break}return t(h,b.G.
|
|
254
|
-
function
|
|
255
|
-
g=r(g);for(var h=g.next();!h.done;h=g.next())h=h.value,
|
|
256
|
-
function
|
|
257
|
-
function
|
|
258
|
-
if(a.l)return q["return"]();b.
|
|
259
|
-
function
|
|
260
|
-
case 4:return n=v.h,
|
|
261
|
-
function
|
|
262
|
-
k=k.reader.
|
|
263
|
-
function
|
|
264
|
-
function
|
|
265
|
-
function
|
|
266
|
-
function
|
|
267
|
-
function
|
|
268
|
-
function
|
|
269
|
-
function
|
|
270
|
-
p.append=function(a){function b(g){return g.spacer?"\n":g.nestedCues.length?g.nestedCues.map(b).join(""):g.payload}var c=a.map(function(g){if(g.nestedCues.length){var h=g.clone();h.nestedCues=[];h.payload=b(g);return h}return g}),d=[];a=this.g.cues?Array.from(this.g.cues):[];var e={};c=r(c);for(var f=c.next();!f.done;e={
|
|
271
|
-
d.push(f);a=d.slice().sort(function(g,h){return g.startTime!=h.startTime?g.startTime-h.startTime:g.endTime!=h.endTime?g.endTime-h.startTime:"line"in VTTCue.prototype?d.indexOf(h)-d.indexOf(g):d.indexOf(g)-d.indexOf(h)});a=r(a);for(e=a.next();!e.done;e=a.next())this.g.addCue(e.value)};p.destroy=function(){this.g&&(
|
|
203
|
+
function Yf(a){return{id:a.id,active:!1,type:"text",bandwidth:0,language:a.language,label:a.label,kind:a.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,mimeType:a.mimeType,codecs:a.codecs||null,audioCodec:null,videoCodec:null,primary:a.primary,roles:a.roles,audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:a.originalId}}
|
|
204
|
+
function Zf(a){a.__shaka_id||(a.__shaka_id=$f++);return a.__shaka_id}function ag(a){var b=bg(a);b.active=a.enabled;b.type="variant";b.originalAudioId=a.id;"main"==a.kind&&(b.primary=!0);a.kind&&(b.roles=[a.kind],b.audioRoles=[a.kind]);return b}
|
|
205
|
+
function bg(a){return{id:Zf(a),active:!1,type:"",bandwidth:0,language:Mb(a.language),label:a.label,kind:a.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,mimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null}}
|
|
206
|
+
function cg(a){return a.allowedByApplication&&a.allowedByKeySystem}function dg(a){return a.filter(function(b){return cg(b)})}
|
|
207
|
+
function Pf(a,b){var c=a.filter(function(g){return g.audio&&g.audio.channelsCount}),d=new Map;c=r(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=e.audio.channelsCount;d.has(f)||d.set(f,[]);d.get(f).push(e)}c=Array.from(d.keys());if(0==c.length)return a;e=c.filter(function(g){return g<=b});return e.length?d.get(Math.max.apply(Math,ia(e))):d.get(Math.min.apply(Math,ia(c)))}
|
|
208
|
+
function eg(a,b,c){var d=a,e=a.filter(function(h){return h.primary});e.length&&(d=e);var f=d.length?d[0].language:"";d=d.filter(function(h){return h.language==f});if(b){var g=Tb(Mb(b),a.map(function(h){return h.language}));g&&(d=a.filter(function(h){return Mb(h.language)==g}))}if(c){if(a=fg(d,c),a.length)return a}else if(a=d.filter(function(h){return 0==h.roles.length}),a.length)return a;a=d.map(function(h){return h.roles}).reduce(Cb,[]);return a.length?fg(d,a[0]):d}
|
|
209
|
+
function fg(a,b){return a.filter(function(c){return c.roles.includes(b)})}var $f=0;function gg(){this.u=null;this.i=!1;this.h=new ac;this.g=[];this.l=1;this.A=!1;this.v=this.j=null}p=gg.prototype;p.stop=function(){this.u=null;this.i=!1;this.g=[];this.l=1;this.j=null};p.init=function(a){this.u=a};
|
|
210
|
+
p.chooseVariant=function(){var a=hg(this.v.restrictions,this.g),b=this.h.getBandwidthEstimate(this.v.defaultBandwidthEstimate);this.g.length&&!a.length&&(a=hg(null,this.g),a=[a[0]]);var c=a[0]||null;a=r(hb(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.item;var f=isNaN(this.l)?1:Math.abs(this.l);e=f*(e.next||{bandwidth:Infinity}).bandwidth/this.v.bandwidthUpgradeTarget;b>=f*d.bandwidth/this.v.bandwidthDowngradeTarget&&b<=e&&(c=d)}this.j=Date.now();return c};
|
|
211
|
+
p.enable=function(){this.i=!0};p.disable=function(){this.i=!1};p.segmentDownloaded=function(a,b){var c=this.h;if(!(16E3>b)){var d=8E3*b/a,e=a/1E3;c.g+=b;Zb(c.h,e,d);Zb(c.i,e,d)}if(null!=this.j&&this.i)a:{if(!this.A){if(!(128E3<=this.h.g))break a;this.A=!0}else if(Date.now()-this.j<1E3*this.v.switchInterval)break a;c=this.chooseVariant();this.h.getBandwidthEstimate(this.v.defaultBandwidthEstimate);c&&this.u(c)}};p.getBandwidthEstimate=function(){return this.h.getBandwidthEstimate(this.v.defaultBandwidthEstimate)};
|
|
212
|
+
p.setVariants=function(a){this.g=a};p.playbackRateChanged=function(a){this.l=a};p.configure=function(a){this.v=a};function hg(a,b){a&&(b=b.filter(function(c){return Uf(c,a,{width:Infinity,height:Infinity})}));return b.sort(function(c,d){return c.bandwidth-d.bandwidth})}L("shaka.abr.SimpleAbrManager",gg);gg.prototype.configure=gg.prototype.configure;gg.prototype.playbackRateChanged=gg.prototype.playbackRateChanged;gg.prototype.setVariants=gg.prototype.setVariants;
|
|
213
|
+
gg.prototype.getBandwidthEstimate=gg.prototype.getBandwidthEstimate;gg.prototype.segmentDownloaded=gg.prototype.segmentDownloaded;gg.prototype.disable=gg.prototype.disable;gg.prototype.enable=gg.prototype.enable;gg.prototype.chooseVariant=gg.prototype.chooseVariant;gg.prototype.init=gg.prototype.init;gg.prototype.stop=gg.prototype.stop;function ig(a,b){this.h=a;this.g=new Set([a]);b=b||[];for(var c=r(b),d=c.next();!d.done;d=c.next())this.add(d.value)}ig.prototype.add=function(a){return jg(this.h,a)?(this.g.add(a),!0):!1};function jg(a,b){var c;if(!(c=!!a.audio!=!!b.audio||!!a.video!=!!b.video||a.language!=b.language)&&(c=a.audio&&b.audio)){c=a.audio;var d=b.audio;c=!(c.channelsCount==d.channelsCount&&kg(c,d)&&lg(c.roles,d.roles))}!c&&(c=a.video&&b.video)&&(c=a.video,d=b.video,c=!(kg(c,d)&&lg(c.roles,d.roles)));return c?!1:!0}
|
|
214
|
+
ig.prototype.values=function(){return this.g.values()};function kg(a,b){if(a.mimeType!=b.mimeType)return!1;var c=a.codecs.split(",").map(function(g){return xd(g)}),d=b.codecs.split(",").map(function(g){return xd(g)});if(c.length!=d.length)return!1;c.sort();d.sort();for(var e=r(fb(c.length)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!=d[f])return!1;return!0}
|
|
215
|
+
function lg(a,b){var c=new Set(a),d=new Set(b);c["delete"]("main");d["delete"]("main");if(c.size!=d.size)return!1;c=r(c);for(var e=c.next();!e.done;e=c.next())if(!d.has(e.value))return!1;return!0};function mg(a){this.g=a;this.h=new ng(a.language,"",a.audio&&a.audio.channelsCount?a.audio.channelsCount:0,"")}mg.prototype.create=function(a){var b=this,c=a.filter(function(d){return jg(b.g,d)});return c.length?new ig(c[0],c):this.h.create(a)};function ng(a,b,c,d){this.i=a;this.j=b;this.g=c;this.h=void 0===d?"":d}
|
|
216
|
+
ng.prototype.create=function(a){var b=[];b=og(a,this.i);var c=a.filter(function(d){return d.primary});b=b.length?b:c.length?c:a;a=pg(b,this.j);a.length&&(b=a);this.g&&(a=Pf(b,this.g),a.length&&(b=a));this.h&&(a=qg(b,this.h),a.length&&(b=a));a=new ig(b[0]);b=r(b);for(c=b.next();!c.done;c=b.next())c=c.value,jg(a.h,c)&&a.add(c);return a};function og(a,b){var c=Mb(b),d=Tb(c,a.map(function(e){return Sb(e)}));return d?a.filter(function(e){return d==Sb(e)}):[]}
|
|
217
|
+
function pg(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.includes(b):0==c.audio.roles.length:!1})}function qg(a,b){return a.filter(function(c){return c.audio?c.audio.label.toLowerCase()==b.toLowerCase():!1})};function rg(){this.g=sg;this.h=(new Map).set(sg,2).set(tg,1)}function ug(a,b,c){a.h.set(sg,c).set(tg,b)}var tg=0,sg=1;function vg(){}function wg(a,b,c,d){var e,f,g,h;return H(function(k){if(1==k.g){if(d&&(e=xg[d.toLowerCase()]))return k["return"](e);if(f=yg(a))if(g=zg[f])return k["return"](g);return d?k.C(2):t(k,Ag(a,b,c),3)}if(2!=k.g&&(d=k.h)&&(h=xg[d]))return k["return"](h);throw new N(2,4,4E3,a);})}
|
|
218
|
+
function Ag(a,b,c){var d,e,f;return H(function(g){if(1==g.g)return d=$c([a],c),d.method="HEAD",t(g,b.request(0,d).promise,2);e=g.h;f=e.headers["content-type"];return g["return"](f?f.toLowerCase().split(";").shift():"")})}function yg(a){a=(new kb(a)).Ia.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()}L("shaka.media.ManifestParser",vg);vg.unregisterParserByMime=function(a){delete xg[a]};vg.registerParserByMime=function(a,b){xg[a]=b};
|
|
219
|
+
vg.registerParserByExtension=function(a,b){zg[a]=b};var xg={},zg={};function Bg(a,b,c){this.Ma=a;this.h=b;this.g=c}Bg.prototype.yc=function(){return this.h};Bg.prototype.tc=function(){return this.g};function Cg(a,b){return a&&b?a.yc()==b.yc()&&a.tc()==b.tc()&&Tc(a.Ma(),b.Ma()):a==b}L("shaka.media.InitSegmentReference",Bg);Bg.prototype.getEndByte=Bg.prototype.tc;Bg.prototype.getStartByte=Bg.prototype.yc;
|
|
220
|
+
function Dg(a,b,c,d,e,f,g,h,k){this.startTime=a;this.endTime=b;this.j=c;this.h=d;this.g=e;this.i=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k}p=Dg.prototype;p.Ma=function(){return this.j()};p.Lf=function(){return this.startTime};p.wf=function(){return this.endTime};p.yc=function(){return this.h};p.tc=function(){return this.g};L("shaka.media.SegmentReference",Dg);Dg.prototype.getEndByte=Dg.prototype.tc;Dg.prototype.getStartByte=Dg.prototype.yc;Dg.prototype.getEndTime=Dg.prototype.wf;
|
|
221
|
+
Dg.prototype.getStartTime=Dg.prototype.Lf;Dg.prototype.getUris=Dg.prototype.Ma;function Q(a,b,c){this.j=a;this.kd=b;this.u=this.l=Infinity;this.g=1;this.h=this.i=null;this.A=0;this.B=!0;this.D=0;this.H=void 0===c?!0:c}p=Q.prototype;p.getDuration=function(){return this.l};p.Ef=function(){return this.g};p.Ya=function(a){this.l=a};p.Jf=function(){return this.j};p.Te=function(a){this.A=a};p.Lc=function(a){this.B=a};p.ce=function(a){this.u=a};p.pg=function(a){this.kd=a};p.vf=function(){return this.kd};
|
|
222
|
+
p.cc=function(a){if(0!=a.length){var b=a[a.length-1].endTime;this.Qd(a[0].startTime);this.g=a.reduce(function(c,d){return Math.max(c,d.endTime-d.startTime)},this.g);this.h=Math.max(this.h,b);null!=this.j&&this.H&&(this.j=(Date.now()+this.A)/1E3-this.h-this.g)}};p.Qd=function(a){this.i=null==this.i?a:Math.min(this.i,a)};p.Pd=function(a){this.g=Math.max(this.g,a)};p.offset=function(a){null!=this.i&&(this.i+=a);null!=this.h&&(this.h+=a)};p.W=function(){return Infinity==this.l&&!this.B};
|
|
223
|
+
p.Db=function(){return Infinity!=this.l&&!this.B};p.fb=function(){return Math.max(this.D,this.pb()-this.u)};p.We=function(a){this.D=a};p.pb=function(){return this.W()||this.Db()?Math.min(Math.max(0,(Date.now()+this.A)/1E3-this.g-this.j),this.l):this.h||this.l};p.xc=function(a){var b=Math.max(this.i,this.D);return Infinity==this.u?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.pb()-this.u+a,this.eb()))};p.Zb=function(){return this.xc(0)};
|
|
224
|
+
p.eb=function(){return Math.max(0,this.pb()-(this.W()||this.Db()?this.kd:0))};p.$e=function(){return null==this.j||null!=this.h&&this.H?!1:!0};L("shaka.media.PresentationTimeline",Q);Q.prototype.usingPresentationStartTime=Q.prototype.$e;Q.prototype.getSeekRangeEnd=Q.prototype.eb;Q.prototype.getSeekRangeStart=Q.prototype.Zb;Q.prototype.getSafeSeekRangeStart=Q.prototype.xc;Q.prototype.getSegmentAvailabilityEnd=Q.prototype.pb;Q.prototype.setUserSeekStart=Q.prototype.We;
|
|
225
|
+
Q.prototype.getSegmentAvailabilityStart=Q.prototype.fb;Q.prototype.isInProgress=Q.prototype.Db;Q.prototype.isLive=Q.prototype.W;Q.prototype.offset=Q.prototype.offset;Q.prototype.notifyMaxSegmentDuration=Q.prototype.Pd;Q.prototype.notifyMinSegmentStartTime=Q.prototype.Qd;Q.prototype.notifySegments=Q.prototype.cc;Q.prototype.getDelay=Q.prototype.vf;Q.prototype.setDelay=Q.prototype.pg;Q.prototype.setSegmentAvailabilityDuration=Q.prototype.ce;Q.prototype.setStatic=Q.prototype.Lc;
|
|
226
|
+
Q.prototype.setClockOffset=Q.prototype.Te;Q.prototype.getPresentationStartTime=Q.prototype.Jf;Q.prototype.setDuration=Q.prototype.Ya;Q.prototype.getMaxSegmentDuration=Q.prototype.Ef;Q.prototype.getDuration=Q.prototype.getDuration;function Eg(a,b){this.j=a;this.u=Fg(a);this.g=a.g.currentTime;this.l=Date.now()/1E3;this.h=!1;this.A=b;this.i=function(){}}Eg.prototype.release=function(){this.j=null;this.i=function(){}};function Gg(a,b){a.i=b}function Hg(a){this.g=a}function Fg(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=r(Qe(a.g.buffered));for(var c=a.next();!c.done;c=a.next())if(c=c.value,!(b<c.start-.1||b>c.end-.5)){b=!0;break a}b=!1}return b};function Ig(a,b,c,d,e){var f=this;this.g=a;this.D=b;this.v=c;this.B=e;this.h=new jd;this.A=!1;this.H=a.readyState;this.j=!1;this.i=d;this.u=!1;this.h.m(a,"waiting",function(){return Jg(f)});this.l=(new O(function(){Jg(f)})).ia(.25)}Ig.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.l&&(this.l.stop(),this.l=null);this.i&&(this.i.release(),this.i=null);this.g=this.D=this.B=null};Ig.prototype.Td=function(){this.u=!0;Jg(this)};
|
|
227
|
+
function Jg(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.A)return}else a.A=!1;if(!a.g.paused||0==a.g.currentTime&&(a.g.autoplay||0!=a.g.currentTime)){a.g.readyState!=a.H&&(a.j=!1,a.H=a.g.readyState);var b;if(!(b=!a.i)){b=a.i;var c=b.j,d=Fg(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.u!=d)b.l=f,b.g=e,b.u=d,b.h=!1;e=f-b.l;if(d=e>=b.A&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime;b=!d}if(b){e=a.v.smallGapLimit;var g=a.g.currentTime;b=a.g.buffered;c=Re(b,g);if(!(null==c||0==c&&!a.u||(d=b.start(c),
|
|
228
|
+
d>=a.D.eb()))){var h=d-g;e=h<=e;f=!1;.001>h||(e||a.j||(a.j=!0,g=(new Map).set("currentTime",g).set("gapSize",h),g=new M("largegap",g),g.cancelable=!0,a.B(g),a.v.jumpLargeGaps&&!g.defaultPrevented&&(f=!0)),!e&&!f)||(0!=c&&b.end(c-1),a.g.currentTime=d)}}}}};function Kg(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Lg.value().get(b),c.Ga(a,b,d))}var Lg=new jc(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function Mg(a,b,c){var d=this;this.g=a;this.l=b;this.j=c;this.u=!1;this.h=new jd;this.i=new Ng(a);Kg(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Og(d,d.j)})}Mg.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.i&&(this.i.release(),this.i=null);this.l=function(){};this.g=null};function Pg(a){return a.u?a.g.currentTime:a.j}function Qg(a,b){0<a.g.readyState?Rg(a.i,b):Kg(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){Og(a,a.j)})}
|
|
229
|
+
function Og(a,b){.001>Math.abs(a.g.currentTime-b)?Sg(a):(a.h.Ga(a.g,"seeking",function(){Sg(a)}),Rg(a.i,0==a.g.currentTime?b:a.g.currentTime))}function Sg(a){a.u=!0;a.h.m(a.g,"seeking",function(){return a.l()})}function Ng(a){var b=this;this.h=a;this.u=10;this.l=this.j=this.i=0;this.g=new O(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}Ng.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};
|
|
230
|
+
function Rg(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.u;a.h.currentTime=b;a.g.ia(.1)};function Tg(a){function b(){null==c.i||0==c.i?c.j=!0:(c.h.Ga(c.g,"seeking",function(){c.j=!0}),c.g.currentTime=Math.max(0,c.g.currentTime+c.i))}var c=this;this.g=a;this.j=!1;this.i=null;this.h=new jd;Kg(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.h,function(){b()})}Tg.prototype.release=function(){this.h&&(this.h.release(),this.h=null);this.g=null};Tg.prototype.B=function(a){this.i=this.j?this.i:a};Tg.prototype.l=function(){return(this.j?this.g.currentTime:this.i)||0};Tg.prototype.H=function(){};
|
|
231
|
+
function Ug(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.J=b.minBufferTime||0;this.v=c;this.D=e;this.A=null;this.j=new Ig(a,b.presentationTimeline,c,Vg(a,c),f);this.h=new Mg(a,function(){a:{var h=g.j;h.A=!0;h.u=!1;h.j=!1;var k=Pg(g.h);h=Wg(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.A||g.A<k-1)){g.A=k;Qg(g.h,h);h=void 0;break a}g.D();h=void 0}return h},Xg(this,d));this.u=(new O(function(){if(0!=g.i.readyState&&!g.i.paused){var h=Pg(g.h),k=g.g.Zb(),l=g.g.eb();3>l-k&&(k=
|
|
232
|
+
l-3);h<k&&(h=Wg(g,h),g.i.currentTime=h)}})).ia(.25)}Ug.prototype.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.u&&(this.u.stop(),this.u=null);this.i=this.h=this.g=this.v=null;this.D=function(){}};Ug.prototype.B=function(a){Qg(this.h,a)};Ug.prototype.l=function(){var a=Pg(this.h);return 0<this.i.readyState&&!this.i.paused?Yg(this,a):a};
|
|
233
|
+
function Xg(a,b){null==b?b=Infinity>a.g.getDuration()?a.g.Zb():a.g.eb():0>b&&(b=a.g.eb()+b);return Zg(a,Yg(a,b))}Ug.prototype.H=function(){this.j.Td()};function Zg(a,b){var c=a.g.getDuration();return b>=c?c-a.v.durationBackoff:b}function Wg(a,b){var c=Math.max(a.J,a.v.rebufferingGoal),d=a.v.safeSeekOffset,e=a.g.Zb(),f=a.g.eb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.xc(c),k=a.g.xc(d);c=a.g.xc(c+d);return b>=g?Zg(a,b):b>f?f:b<e?Oe(a.i.buffered,k)?k:c:b>=h||Oe(a.i.buffered,b)?b:c}
|
|
234
|
+
function Yg(a,b){var c=a.g.Zb();if(b<c)return c;c=a.g.eb();return b>c?c:b}function Vg(a,b){if(!b.stallEnabled)return null;var c=b.stallSkip,d=new Eg(new Hg(a),b.stallThreshold);Gg(d,function(){c?a.currentTime+=c:(a.pause(),a.play())});return d};function R(a){this.R=a;this.g=null;this.h=0;this.i=!1}p=R.prototype;p.destroy=function(){yb("shaka.media.SegmentIndex","Please use release() instead of destroy().");this.release();return Promise.resolve()};p.release=function(){this.i||(this.R=[],this.g&&this.g.stop(),this.g=null)};p.Vf=function(){this.i=!0};
|
|
235
|
+
p.find=function(a){for(var b=this.R.length-1,c=b;0<=c;--c){var d=this.R[c],e=c<b?this.R[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.h}return this.R.length&&a<this.R[0].startTime?this.h:null};p.get=function(a){if(0==this.R.length)return null;a-=this.h;return 0>a||a>=this.R.length?null:this.R[a]};p.offset=function(a){if(!this.i)for(var b=r(this.R),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.timestampOffset+=a};
|
|
236
|
+
p.ed=function(a){!this.i&&a.length&&(this.R=this.R.filter(function(b){return b.startTime<a[0].startTime}),this.R.push.apply(this.R,ia(a)))};p.ac=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.R.length||d.endTime>c.R[0].startTime)});this.ed(a);this.xb(b)};p.xb=function(a){if(!this.i){var b=this.R.length;this.R=this.R.filter(function(c){return c.endTime>a});this.h+=b-this.R.length}};
|
|
237
|
+
p.ob=function(a,b,c){c=void 0===c?!1:c;if(!this.i){for(;this.R.length;)if(this.R[this.R.length-1].startTime>=b)this.R.pop();else break;for(;this.R.length;)if(this.R[0].endTime<=a)this.R.shift(),c||this.h++;else break;0!=this.R.length&&(a=this.R[this.R.length-1],this.R[this.R.length-1]=new Dg(a.startTime,b,a.j,a.h,a.g,a.i,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd))}};
|
|
238
|
+
p.pd=function(a,b){var c=this;this.i||(this.g&&this.g.stop(),this.g=new O(function(){var d=b();d?c.R.push.apply(c.R,ia(d)):(c.g.stop(),c.g=null)}),this.g.ia(a))};R.prototype[Symbol.iterator]=function(){return this.Xb(0)};R.prototype.Xb=function(a){a=this.find(a);return null==a?null:new $g(this,a)};function ah(a,b,c){return new R([new Dg(a,a+b,function(){return c},0,null,null,a,a,a+b)])}L("shaka.media.SegmentIndex",R);R.forSingleSegment=ah;R.prototype.getIteratorForTime=R.prototype.Xb;
|
|
239
|
+
R.prototype.updateEvery=R.prototype.pd;R.prototype.fit=R.prototype.ob;R.prototype.evict=R.prototype.xb;R.prototype.mergeAndEvict=R.prototype.ac;R.prototype.merge=R.prototype.ed;R.prototype.offset=R.prototype.offset;R.prototype.get=R.prototype.get;R.prototype.find=R.prototype.find;R.prototype.markImmutable=R.prototype.Vf;R.prototype.release=R.prototype.release;R.prototype.destroy=R.prototype.destroy;function $g(a,b){this.h=a;this.g=b}
|
|
240
|
+
$g.prototype.seek=function(a){this.g=(a=this.h.Xb(a))?a.g:Number.MAX_VALUE;return this.next().value};$g.prototype.current=function(){return this.h.get(this.g-1)};$g.prototype.next=function(){var a=this.h.get(this.g++);return{value:a,done:!a}};L("shaka.media.SegmentIterator",$g);$g.prototype.next=$g.prototype.next;$g.prototype.current=$g.prototype.current;$g.prototype.seek=$g.prototype.seek;function bh(){R.call(this,[]);this.j=[]}pa(bh,R);p=bh.prototype;
|
|
241
|
+
p.clone=function(){var a=new bh;a.j=this.j.slice();return a};p.release=function(){for(var a=r(this.j),b=a.next();!b.done;b=a.next())b.value.release();this.j=[]};p.find=function(a){for(var b=0,c=r(this.j),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.h+d.R.length}return null};p.get=function(a){for(var b=0,c=r(this.j),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.h+d.R.length}return null};p.offset=function(){};p.ed=function(){};
|
|
242
|
+
p.xb=function(){};p.ac=function(){};p.ob=function(){};p.pd=function(){};L("shaka.media.MetaSegmentIndex",bh);bh.prototype.updateEvery=bh.prototype.pd;bh.prototype.fit=bh.prototype.ob;bh.prototype.mergeAndEvict=bh.prototype.ac;bh.prototype.evict=bh.prototype.xb;bh.prototype.merge=bh.prototype.ed;bh.prototype.offset=bh.prototype.offset;bh.prototype.get=bh.prototype.get;bh.prototype.find=bh.prototype.find;bh.prototype.release=bh.prototype.release;function ch(a){var b=this;this.g=a;this.j=!1;this.i=this.g.cd();this.h=new O(function(){b.g.Je(.25*b.i)})}ch.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};ch.prototype.set=function(a){this.i=a;dh(this)};ch.prototype.$c=function(){return this.g.$c()};function dh(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.cd()!=b&&a.g.ae(b);return}catch(c){}a.h.ia(.25);0!=a.g.cd()&&a.g.ae(0)};function eh(a){var b=this;this.h=a;this.g=new Set;this.i=(new O(function(){fh(b,!1)})).ia(.25)}eh.prototype.release=function(){this.i.stop();for(var a=r(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};
|
|
243
|
+
function fh(a,b){for(var c=r(a.g),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=a.h.currentTime,f=b,g=r(d.l.g),h=g.next();!h.done;h=g.next()){h=h.value;var k=d.j.get(h),l=e<h.startTime?gh:e>h.endTime?hh:ih;d.j.set(h,l);for(var m=r(d.u),n=m.next();!n.done;n=m.next())n=n.value,n.Ob==k&&n.Nb==l&&n.Cb(h,f)}}};function jh(a){var b=this;this.h=function(){};this.g=new Set;this.j=a;this.i=(new O(function(){for(var c=b.j(),d=r(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&b.g["delete"](e)})).ia(2)}jh.prototype.release=function(){this.h=function(){};this.g.clear();this.i.stop()};function kh(a,b){a.h=b};function lh(a){var b=this;this.l=a;this.j=new Map;this.g=function(){};this.h=function(){};this.i=function(){};this.u=[{Ob:null,Nb:ih,Cb:function(c,d){return b.g(c,d)}},{Ob:gh,Nb:ih,Cb:function(c,d){return b.g(c,d)}},{Ob:hh,Nb:ih,Cb:function(c,d){return b.g(c,d)}},{Ob:ih,Nb:gh,Cb:function(c,d){return b.h(c,d)}},{Ob:ih,Nb:hh,Cb:function(c,d){return b.h(c,d)}},{Ob:gh,Nb:hh,Cb:function(c,d){return b.i(c,d)}},{Ob:hh,Nb:gh,Cb:function(c,d){return b.i(c,d)}}]}
|
|
244
|
+
lh.prototype.release=function(){this.l=null;this.j.clear();this.g=function(){};this.h=function(){};this.i=function(){}};function mh(a,b,c,d){a.g=b;a.h=c;a.i=d}var gh=1,ih=2,hh=3;function nh(a,b,c,d){a=$c(a,d);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function oh(a,b){var c=this;this.G=b;this.F=a;this.v=null;this.j=1;this.i=this.h=null;this.g=new Map;this.u=!1;this.A=null;this.l=!1;this.M=new hd(function(){return ph(c)})}oh.prototype.destroy=function(){return this.M.destroy()};function ph(a){var b,c,d,e;return H(function(f){if(1==f.g){b=[];c=r(a.g.values());for(d=c.next();!d.done;d=c.next())e=d.value,qh(e),b.push(rh(e));return t(f,Promise.all(b),2)}a.g.clear();a.G=null;a.F=null;a.v=null;x(f)})}
|
|
245
|
+
oh.prototype.configure=function(a){this.v=a;this.A=new Ec({maxAttempts:Math.max(a.retryParameters.maxAttempts,2),baseDelay:a.retryParameters.baseDelay,backoffFactor:a.retryParameters.backoffFactor,fuzzFactor:a.retryParameters.fuzzFactor,timeout:0},!0)};oh.prototype.start=function(){var a=this;return H(function(b){if(1==b.g)return t(b,sh(a),2);id(a.M);a.u=!0;x(b)})};
|
|
246
|
+
function th(a,b){var c,d,e,f,g,h;H(function(k){switch(k.g){case 1:return c=Ib,y(k,2),t(k,Jf(a.G.U,c.ya),4);case 4:ua(k,3);break;case 2:if(d=C(k),a.G)a.G.onError(d);case 3:e=ud(b.mimeType,b.codecs);xf(a.G.U,e);f=a.G.U.u;if(g=f.isTextVisible()||a.v.alwaysStreamText)h=uh(b),a.g.set(c.ya,h),vh(a,h,0);x(k)}})}function zh(a){var b=a.g.get("text");b&&(qh(b),rh(b)["catch"](function(){}),a.g["delete"]("text"));a.i=null}
|
|
247
|
+
function Ah(a,b){var c=a.g.get("video");if(c){var d=c.stream;if(d)if(b){var e=d.trickModeVideo;e&&!c.Kb&&(Bh(a,e,!1,0,!1),c.Kb=d)}else if(d=c.Kb)c.Kb=null,Bh(a,d,!0,0,!1)}}function Ch(a,b,c,d,e){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;a.h=b;a.u&&(b.video&&Bh(a,b.video,c,d,e),b.audio&&Bh(a,b.audio,c,d,e))}function Dh(a,b){a.i=b;a.u&&Bh(a,b,!0,0,!1)}
|
|
248
|
+
function Bh(a,b,c,d,e){var f=a.g.get(b.type);f||"text"!=b.type?f&&(f.Kb&&(b.trickModeVideo?(f.Kb=b,b=b.trickModeVideo):f.Kb=null),f.stream!=b||e)&&("text"==b.type&&xf(a.G.U,ud(b.mimeType,b.codecs)),f.stream=b,f.oa=null,c&&(f.rc?f.sd=!0:f.qb?(f.Mb=!0,f.Wc=d,f.sd=!0):(qh(f),Eh(a,f,!0,d)["catch"](function(g){if(a.G)a.G.onError(g)}))),Fh(a,f)["catch"](function(g){if(a.G)a.G.onError(g)})):th(a,b)}
|
|
249
|
+
function Fh(a,b){var c,d;return H(function(e){if(1==e.g){if(!b.Ha)return e["return"]();c=b.stream;d=b.Ha;return c.segmentIndex?e.C(2):t(e,c.createSegmentIndex(),2)}if(b.Ha!=d||b.stream!=c)return e["return"]();var f=a.G.bd();var g=Cf(a.G.U,b.type),h=b.stream.segmentIndex.find(b.Na?b.Na.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.g?k.g-k.h:null:null;k&&!h&&(h=(k.endTime-k.startTime)*(b.stream.bandwidth||0)/8);h?((k=k.i)&&(h+=(k.g?k.g-k.h:null)||0),k=a.G.getBandwidthEstimate(),f=8*h/
|
|
250
|
+
k<(g||0)-f-Math.max(a.F.minBufferTime||0,a.v.rebufferingGoal)||b.Ha.h.g>h?!0:!1):f=!1;f&&b.Ha.abort();x(e)})}function Gh(a,b){b.rc||b.Mb||(b.qb?(b.Mb=!0,b.Wc=0):null==Af(a.G.U,b.type)?null==b.ib&&vh(a,b,0):(qh(b),Eh(a,b,!1,0)["catch"](function(c){if(a.G)a.G.onError(c)})))}
|
|
251
|
+
function sh(a){var b,c,d,e,f,g,h,k,l,m;return H(function(n){if(1==n.g){b=Ib;if(!a.h)throw new N(2,5,5006);c=new Map;d=new Set;a.h.audio&&(c.set(b.tb,a.h.audio),d.add(a.h.audio));a.h.video&&(c.set(b.bb,a.h.video),d.add(a.h.video));a.i&&(c.set(b.ya,a.i),d.add(a.i));e=a.G.U;f=a.v.forceTransmuxTS;return t(n,e.init(c,f),2)}id(a.M);var q=a.F.presentationTimeline.getDuration();Infinity>q?a.G.U.Ya(q):a.G.U.Ya(Math.pow(2,32));g=r(c.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=c.get(k),a.g.has(k)||
|
|
252
|
+
(m=uh(l),a.g.set(k,m),vh(a,m,0));x(n)})}function uh(a){return{stream:a,type:a.type,oa:null,Na:null,dd:null,Md:null,Ld:null,Kd:null,Kb:null,endOfStream:!1,qb:!1,ib:null,Mb:!1,Wc:0,sd:!1,rc:!1,Vd:!1,Ac:!1,Ha:null}}
|
|
253
|
+
oh.prototype.Fc=function(a){var b=this,c,d,e,f,g;return H(function(h){switch(h.g){case 1:id(b.M);if(a.qb||null==a.ib||a.rc)return h["return"]();a.ib=null;if(!a.Mb){h.C(2);break}return t(h,Eh(b,a,a.sd,a.Wc),3);case 3:return h["return"]();case 2:if(a.stream.segmentIndex){h.C(4);break}c=a.stream;return t(h,a.stream.createSegmentIndex(),5);case 5:if(c!=a.stream)return null==a.ib&&vh(b,a,0),h["return"]();case 4:y(h,6);d=Hh(b,a);null!=d&&(vh(b,a,d),a.Ac=!1);ua(h,7);break;case 6:return e=C(h),t(h,Ih(b,e),
|
|
254
|
+
8);case 8:return h["return"]();case 7:f=Array.from(b.g.values());if(!b.u||!f.every(function(k){return k.endOfStream})){h.C(0);break}return t(h,b.G.U.endOfStream(),10);case 10:id(b.M),g=b.G.U.getDuration(),0!=g&&g<b.F.presentationTimeline.getDuration()&&b.F.presentationTimeline.Ya(g),x(h)}})};
|
|
255
|
+
function Hh(a,b){if(Jh(b))return Hf(a.G.U,b.stream.originalId||""),null;"text"==b.type&&If(a.G.U);var c=a.G.bd(),d=b.Na?b.Na.endTime:c,e=Df(a.G.U,b.type,c),f=Math.max(a.F.minBufferTime||0,a.v.rebufferingGoal,a.v.bufferingGoal)*a.j;if(d>=a.F.presentationTimeline.getDuration())return b.endOfStream=!0,"video"==b.type&&(c=a.g.get("text"))&&Jh(c)&&(c.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return.5;e=Cf(a.G.U,b.type);e=Kh(a,b,c,e);if(!e||!Lh(a,e))return 1;f=Infinity;var g=Array.from(a.g.values());
|
|
256
|
+
g=r(g);for(var h=g.next();!h.done;h=g.next())h=h.value,Jh(h)||h.oa&&!h.oa.current()||(f=Math.min(f,h.Na?h.Na.endTime:c));if(d>=f+a.F.presentationTimeline.g)return 1;Mh(a,b,c,e)["catch"](function(){});return null}
|
|
257
|
+
function Kh(a,b,c,d){if(b.oa)return b.oa.current();if(b.Na||d)return b.oa=b.stream.segmentIndex.Xb(b.Na?b.Na.endTime:d),b.oa&&b.oa.next().value;b.oa=b.stream.segmentIndex.Xb(Math.max(c-a.v.inaccurateManifestTolerance,0));d=b.oa&&b.oa.next().value;d&&Lh(a,d)||(b.oa=b.stream.segmentIndex.Xb(c),d=b.oa&&b.oa.next().value);return d}function Lh(a,b){var c=a.F.presentationTimeline,d=c.pb();return b.endTime<c.fb()||b.startTime>d?!1:!0}
|
|
258
|
+
function Mh(a,b,c,d){var e,f,g,h,k,l,m,n;return H(function(q){switch(q.g){case 1:return e=Ib,f=b.stream,g=b.oa,b.qb=!0,y(q,2),t(q,Nh(a,b,d),4);case 4:id(a.M);if(a.l)return q["return"]();h=Oh(a,b,d);return t(q,h,5);case 5:return k=q.h,id(a.M),a.l?q["return"]():b.Mb?(b.qb=!1,vh(a,b,0),q["return"]()):t(q,Ph(a,b,c,f,d,k),6);case 6:id(a.M);if(a.l)return q["return"]();b.Na=d;g.next();b.qb=!1;b.Vd=!1;l=a.G.U.Zc();m=l[b.type];JSON.stringify(m);b.Mb||a.G.Td();vh(a,b,0);ua(q,0);break;case 2:n=C(q);id(a.M,n);
|
|
259
|
+
if(a.l)return q["return"]();b.qb=!1;if(7001==n.code)b.qb=!1,b.ib=null,vh(a,b,0),q.C(0);else if(b.type==e.ya&&a.v.ignoreTextStreamFailures)a.g["delete"](e.ya),q.C(0);else if(3017==n.code)Qh(a,b,n),q.C(0);else return b.Ac=!0,n.severity=2,t(q,Ih(a,n),0)}})}function Qh(a,b,c){if(!Array.from(a.g.values()).some(function(e){return e!=b&&e.Vd})){var d=Math.round(100*a.j);if(20<d)a.j-=.2;else if(4<d)a.j-=.04;else{b.Ac=!0;a.l=!0;a.G.onError(c);return}b.Vd=!0}vh(a,b,4)}
|
|
260
|
+
function Nh(a,b,c){var d,e,f,g,h,k,l;return H(function(m){d=[];e=Math.max(0,c.appendWindowStart-.1);f=c.appendWindowEnd+.01;g=c.timestampOffset;if(g!=b.Md||e!=b.Ld||f!=b.Kd)h=function(){var n;return H(function(q){if(1==q.g)return y(q,2),b.Ld=e,b.Kd=f,b.Md=g,t(q,Kf(a.G.U,b.type,g,e,f),4);if(2!=q.g)return ua(q,0);n=C(q);b.Ld=null;b.Kd=null;b.Md=null;throw n;})},d.push(h());!Cg(c.i,b.dd)&&(b.dd=c.i)&&(k=Oh(a,b,c.i),l=function(){var n,q,u;return H(function(v){switch(v.g){case 1:return y(v,2),t(v,k,4);
|
|
261
|
+
case 4:return n=v.h,id(a.M),q=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,t(v,Ef(a.G.U,b.type,n,null,null,q),5);case 5:ua(v,0);break;case 2:throw u=C(v),b.dd=null,u;}})},d.push(l()));return t(m,Promise.all(d),0)})}
|
|
262
|
+
function Ph(a,b,c,d,e,f){var g;return H(function(h){if(1==h.g)return g=d.closedCaptions&&0<d.closedCaptions.size,null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length&&(new ye).ea("emsg",function(k){var l=d.emsgSchemeIdUris;if(0===k.version){var m=k.reader.Hc();var n=k.reader.Hc();var q=k.reader.T();var u=k.reader.T();var v=k.reader.T();var A=k.reader.T();var w=e.startTime+u/q}else q=k.reader.T(),w=k.reader.Ib()/q+e.timestampOffset,u=w-e.startTime,v=k.reader.T(),A=k.reader.T(),m=k.reader.Hc(),n=k.reader.Hc();
|
|
263
|
+
k=k.reader.Hb(k.reader.Y.byteLength-k.reader.L);l.includes(m)&&("urn:mpeg:dash:event:2012"==m?a.G.Zf():(l=(new Map).set("detail",{startTime:w,endTime:w+v/q,schemeIdUri:m,value:n,timescale:q,presentationTimeDelta:u,eventDuration:v,id:A,messageData:k}),l=new M(Rh,l),a.G.onEvent(l)))}).parse(f),t(h,Sh(a,b,c),2);if(3!=h.g)return id(a.M),t(h,Ef(a.G.U,b.type,f,e.startTime,e.endTime,g),3);id(a.M);x(h)})}
|
|
264
|
+
function Sh(a,b,c){var d,e,f,g;return H(function(h){if(1==h.g){d=Math.max(a.v.bufferBehind,a.F.presentationTimeline.g);e=Af(a.G.U,b.type);if(null==e)return h["return"]();f=c-e;g=f-d;return.01>=g?h["return"]():t(h,a.G.U.remove(b.type,e,e+g),2)}id(a.M);x(h)})}function Jh(a){return a&&"text"==a.type&&"application/cea-608"==a.stream.mimeType}
|
|
265
|
+
function Oh(a,b,c){var d,e,f,g;return H(function(h){if(1==h.g)return d=gd,e=nh(c.Ma(),c.h,c.g,a.v.retryParameters),f=a.G.bc.request(d,e),b.Ha=f,t(h,f.promise,2);g=h.h;b.Ha=null;return h["return"](g.data)})}
|
|
266
|
+
function Eh(a,b,c,d){var e,f;return H(function(g){if(1==g.g)return b.Mb=!1,b.sd=!1,b.Wc=0,b.rc=!0,b.Na=null,b.dd=null,b.oa=null,d?(e=a.G.bd(),f=a.G.U.getDuration(),t(g,a.G.U.remove(b.type,e+d,f),3)):t(g,Jf(a.G.U,b.type),4);if(3!=g.g)return id(a.M),c?t(g,a.G.U.flush(b.type),3):g.C(3);id(a.M);b.rc=!1;b.endOfStream=!1;vh(a,b,0);x(g)})}
|
|
267
|
+
function vh(a,b,c){var d=b.type;if("text"!=d||a.g.has(d))b.ib=(new Dc(function(){var e;return H(function(f){if(1==f.g)return y(f,2),t(f,a.Fc(b),4);if(2!=f.g)return ua(f,0);e=C(f);if(a.G)a.G.onError(e);x(f)})})).V(c)}function qh(a){null!=a.ib&&(a.ib.stop(),a.ib=null)}function rh(a){return H(function(b){return a.Ha?t(b,a.Ha.abort(),0):b.C(0)})}function Ih(a,b){return H(function(c){if(1==c.g)return t(c,Gc(a.A),2);id(a.M);a.G.onError(b);b.handled||a.v.failureCallback(b);x(c)})};function Th(a,b){var c=Uh(),d=this;this.j=b;this.i=a;this.l=c;this.A=null;this.u=[];this.h=this.g=null;this.B=Promise.resolve().then(function(){return Vh(d)});this.M=new hd(function(){return Wh(d)})}Th.prototype.destroy=function(){return this.M.destroy()};function Wh(a){var b,c,d;return H(function(e){if(1==e.g)return a.h&&a.h.abort(),Xh(a),t(e,a.B,2);a.g&&a.g.Wa.Gb();b=r(a.u);for(c=b.next();!c.done;c=b.next())d=c.value,d.Wa.Gb();a.g=null;a.u=[];a.j=null;x(e)})}
|
|
268
|
+
function Yh(a,b){var c={dc:function(){},fd:function(){},Gb:function(){},onError:function(){},hd:function(){},Zg:function(){}};a.u.push({create:b,Wa:c});a.h&&a.h.abort();Xh(a);return c}
|
|
269
|
+
function Vh(a){return H(function(b){if(a.M.g)b=b.C(0);else{if(0==a.u.length||a.g&&!a.g.Bb)var c=!1;else{a.g&&(a.g.Wa.Gb(),a.g=null);c=a.u.shift();var d=c.create(a.l);d?(c.Wa.dc(),a.g={node:d.node,payload:d.payload,Bb:d.Bb,Wa:c.Wa}):c.Wa.hd();c=!0}c?c=Promise.resolve():a.g?c=Zh(a):(a.j.Yf(a.i),a.A=new ic,c=a.A);b=t(b,c,1)}return b})}
|
|
270
|
+
function Zh(a){var b,c;return H(function(d){switch(d.g){case 1:return a.i=a.j.Gf(a.i,a.l,a.g.node,a.g.payload),y(d,2),a.h=a.j.mf(a.i,a.l,a.g.payload),t(d,a.h.promise,4);case 4:a.h=null;a.i==a.g.node&&(a.g.Wa.fd(),a.g=null);ua(d,0);break;case 2:b=C(d);if(7001==b.code)a.g.Wa.Gb();else a.g.Wa.onError(b);a.g=null;a.h=null;c=a;return t(d,a.j.handleError(a.l,b),5);case 5:c.i=d.h,x(d)}})}function Xh(a){a.A&&(a.A.resolve(),a.A=null)};function $h(a){this.g=null;for(var b=r(Array.from(a.textTracks)),c=b.next();!c.done;c=b.next())c=c.value,c.mode="disabled","Shaka Player TextTrack"==c.label&&(this.g=c);this.g||(this.g=a.addTextTrack("subtitles","Shaka Player TextTrack"));this.g.mode="hidden"}p=$h.prototype;p.remove=function(a,b){if(!this.g)return!1;ai(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
|
|
271
|
+
p.append=function(a){function b(g){return g.spacer?"\n":g.nestedCues.length?g.nestedCues.map(b).join(""):g.payload}var c=a.map(function(g){if(g.nestedCues.length){var h=g.clone();h.nestedCues=[];h.payload=b(g);return h}return g}),d=[];a=this.g.cues?Array.from(this.g.cues):[];var e={};c=r(c);for(var f=c.next();!f.done;e={Pb:e.Pb},f=c.next())e.Pb=f.value,a.some(function(g){return function(h){return h.startTime==g.Pb.startTime&&h.endTime==g.Pb.endTime&&h.text==g.Pb.payload?!0:!1}}(e))||(f=bi(e.Pb))&&
|
|
272
|
+
d.push(f);a=d.slice().sort(function(g,h){return g.startTime!=h.startTime?g.startTime-h.startTime:g.endTime!=h.endTime?g.endTime-h.startTime:"line"in VTTCue.prototype?d.indexOf(h)-d.indexOf(g):d.indexOf(g)-d.indexOf(h)});a=r(a);for(e=a.next();!e.done;e=a.next())this.g.addCue(e.value)};p.destroy=function(){this.g&&(ai(this.g,function(){return!0}),this.g.mode="disabled");this.g=null;return Promise.resolve()};p.isTextVisible=function(){return"showing"==this.g.mode};
|
|
272
273
|
p.setTextVisibility=function(a){this.g.mode=a?"showing":"hidden"};
|
|
273
|
-
function
|
|
274
|
-
function
|
|
275
|
-
!0)}),this.u.observe(this.i))}p=
|
|
276
|
-
p.remove=function(a,b){if(!this.i)return!1;this.
|
|
277
|
-
function
|
|
278
|
-
h.endTime-k.endTime});e=r(e);for(f=e.next();!f.done;f=e.next())
|
|
279
|
-
function
|
|
280
|
-
""==c.backgroundColor&&(e.backgroundColor="transparent")),c.backgroundImage&&c.region&&(b=c.region.widthUnits==
|
|
281
|
-
c.fontFamily,e.fontWeight=c.fontWeight.toString(),e.fontStyle=c.fontStyle,e.letterSpacing=c.letterSpacing,e.fontSize=
|
|
282
|
-
|
|
283
|
-
e.writingMode=c.writingMode,"writingMode"in document.documentElement.style&&e.writingMode==c.writingMode||(e.webkitWritingMode=c.writingMode),c.size&&(c.writingMode==
|
|
284
|
-
function
|
|
285
|
-
|
|
286
|
-
function
|
|
287
|
-
k),g=!1)}return g}function
|
|
288
|
-
function
|
|
289
|
-
ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1E3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1},hls:{ignoreTextStreamFailures:!1,useFullSegmentsForStartTime:!1}},e={retryParameters:
|
|
290
|
-
stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2};if(
|
|
274
|
+
function bi(a){if(a.startTime>=a.endTime)return null;var b=new VTTCue(a.startTime,a.endTime,a.payload);b.lineAlign=a.lineAlign;b.positionAlign=a.positionAlign;a.size&&(b.size=a.size);try{b.align=a.textAlign}catch(c){}"center"==a.textAlign&&"center"!=b.align&&(b.align="middle");"vertical-lr"==a.writingMode?b.vertical="lr":"vertical-rl"==a.writingMode&&(b.vertical="rl");1==a.lineInterpretation&&(b.snapToLines=!1);null!=a.line&&(b.line=a.line);null!=a.position&&(b.position=a.position);return b}
|
|
275
|
+
function ai(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=r(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}L("shaka.text.SimpleTextDisplayer",$h);$h.prototype.setTextVisibility=$h.prototype.setTextVisibility;$h.prototype.isTextVisible=$h.prototype.isTextVisible;$h.prototype.destroy=$h.prototype.destroy;$h.prototype.append=$h.prototype.append;$h.prototype.remove=$h.prototype.remove;function ci(){}function S(a){return document.createElement(a)}function di(){return document.createElement("button")}function ei(a){for(;a.firstChild;)a.removeChild(a.firstChild)}L("shaka.util.Dom",ci);ci.removeAllChildren=ei;function fi(a,b){var c=this;this.B=!1;this.j=[];this.g=a;this.A=b;this.i=S("div");this.i.classList.add("shaka-text-container");this.i.style.textAlign="center";this.i.style.display="flex";this.i.style.flexDirection="column";this.i.style.alignItems="center";this.i.style.justifyContent="flex-end";this.A.appendChild(this.i);this.D=(new O(function(){gi(c)})).ia(.25);this.l=new Map;this.h=new jd;this.h.m(document,"fullscreenchange",function(){gi(c,!0)});this.u=null;"ResizeObserver"in window&&(this.u=new ResizeObserver(function(){gi(c,
|
|
276
|
+
!0)}),this.u.observe(this.i))}p=fi.prototype;p.append=function(a){var b=[].concat(ia(this.j)),c={};a=r(a);for(var d=a.next();!d.done;c={Mc:c.Mc},d=a.next())c.Mc=d.value,b.some(function(e){return function(f){return cf(f,e.Mc)}}(c))||this.j.push(c.Mc);gi(this)};p.destroy=function(){this.A.removeChild(this.i);this.i=null;this.B=!1;this.j=[];this.D&&this.D.stop();this.l.clear();this.h&&(this.h.release(),this.h=null);this.u&&(this.u.disconnect(),this.u=null)};
|
|
277
|
+
p.remove=function(a,b){if(!this.i)return!1;var c=this.j.length;this.j=this.j.filter(function(d){return d.startTime<a||d.endTime>=b});gi(this,c>this.j.length);return!0};p.isTextVisible=function(){return this.B};p.setTextVisibility=function(a){this.B=a};
|
|
278
|
+
function gi(a,b){function c(h){return a.j.includes(h)&&a.B&&h.startTime<=d&&h.endTime>d}b=void 0===b?!1:b;for(var d=a.g.currentTime,e=r(a.l.keys()),f=e.next();!f.done;f=e.next())if(f=f.value,!c(f)||b){var g=a.l.get(f);a.i.removeChild(g);a.l["delete"](f)}e=new Set(a.l.values());f=r(Array.from(a.i.childNodes));for(g=f.next();!g.done;g=f.next())g=g.value,e.has(g)||a.i.removeChild(g);e=a.j.filter(function(h){return c(h)&&!a.l.has(h)}).sort(function(h,k){return h.startTime!=k.startTime?h.startTime-k.startTime:
|
|
279
|
+
h.endTime-k.endTime});e=r(e);for(f=e.next();!f.done;f=e.next())hi(a,a.i,f.value)}function ii(a,b,c,d){var e=S("span");d&&e.classList.add("shaka-nested-cue");ji(a,e,c,!0);b.appendChild(e);return e}function hi(a,b,c){if(c.nestedCues.length){var d=S("p");d.style.width="100%";ji(a,d,c,!1);for(var e=0;e<c.nestedCues.length;e++)ii(a,d,c.nestedCues[e],!0);b.appendChild(d);a.l.set(c,d)}else a.l.set(c,ii(a,b,c,!1))}
|
|
280
|
+
function ji(a,b,c,d){var e=b.style,f=0==c.nestedCues.length;c.spacer?(e.flexBasis="100%",e.height="0"):(e.whiteSpace="pre-line",b.textContent=c.payload,f&&(e.backgroundColor=c.backgroundColor),e.border=c.border,e.color=c.color,e.direction=c.direction,e.opacity=c.opacity,e.paddingLeft=ki(c.linePadding,c,a.A),e.paddingRight=ki(c.linePadding,c,a.A),c.backgroundImage&&(e.backgroundImage="url('"+c.backgroundImage+"')",e.backgroundRepeat="no-repeat",e.backgroundSize="contain",e.backgroundPosition="center",
|
|
281
|
+
""==c.backgroundColor&&(e.backgroundColor="transparent")),c.backgroundImage&&c.region&&(b=c.region.widthUnits==hf?"%":"px",e.height=c.region.height+(c.region.heightUnits==hf?"%":"px"),e.width=c.region.width+b),e.justifyContent="before"==c.displayAlign?"flex-start":"center"==c.displayAlign?"center":"flex-end",f?e.display="inline-block":(e.display="flex",e.flexDirection="row",e.flexWrap="wrap",e.margin="0",e.alignItems=e.justifyContent,e.justifyContent="center"),d&&(e.maxWidth="100%"),e.fontFamily=
|
|
282
|
+
c.fontFamily,e.fontWeight=c.fontWeight.toString(),e.fontStyle=c.fontStyle,e.letterSpacing=c.letterSpacing,e.fontSize=ki(c.fontSize,c,a.A),c.line?1==c.lineInterpretation&&(e.position="absolute",c.writingMode==Xe?c.lineAlign==Ze?e.top=c.line+"%":"end"==c.lineAlign&&(e.bottom=c.line+"%"):"vertical-lr"==c.writingMode?c.lineAlign==Ze?e.left=c.line+"%":"end"==c.lineAlign&&(e.right=c.line+"%"):c.lineAlign==Ze?e.right=c.line+"%":"end"==c.lineAlign&&(e.left=c.line+"%")):c.region&&c.region.id&&!f&&(a=c.region.widthUnits==
|
|
283
|
+
hf?"%":"px",d=c.region.viewportAnchorUnits==hf?"%":"px",e.height=c.region.height+(c.region.heightUnits==hf?"%":"px"),e.width=c.region.width+a,e.position="absolute",e.top=c.region.viewportAnchorY+d,e.left=c.region.viewportAnchorX+d),e.lineHeight=c.lineHeight,c.position&&(c.writingMode==Xe?e.paddingLeft=c.position:e.paddingTop=c.position),"line-left"==c.positionAlign?e.cssFloat="left":"line-right"==c.positionAlign&&(e.cssFloat="right"),e.textAlign=c.textAlign,e.textDecoration=c.textDecoration.join(" "),
|
|
284
|
+
e.writingMode=c.writingMode,"writingMode"in document.documentElement.style&&e.writingMode==c.writingMode||(e.webkitWritingMode=c.writingMode),c.size&&(c.writingMode==Xe?e.width=c.size+"%":e.height=c.size+"%"))}
|
|
285
|
+
function ki(a,b,c){var d=(d=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(d[1]),sg:d[2]}:null;if(!d)return a;var e=d.value;switch(d.sg){case "%":return e/100*c.clientHeight/b.cellResolution.rows+"px";case "c":return c.clientHeight*e/b.cellResolution.rows+"px";default:return a}}L("shaka.text.UITextDisplayer",fi);fi.prototype.setTextVisibility=fi.prototype.setTextVisibility;fi.prototype.isTextVisible=fi.prototype.isTextVisible;fi.prototype.remove=fi.prototype.remove;
|
|
286
|
+
fi.prototype.destroy=fi.prototype.destroy;fi.prototype.append=fi.prototype.append;function li(){}
|
|
287
|
+
function mi(a,b,c,d,e){var f=e in d,g=!0,h;for(h in b){var k=e+"."+h,l=f?d[e]:c[h];f||h in c?void 0===b[h]?void 0===l||f?delete a[h]:a[h]=Oc(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=Oc(l)),k=mi(a[h],b[h],l,d,k),g=g&&k):typeof b[h]!=typeof l||null==b[h]||"function"!=typeof b[h]&&b[h].constructor!=l.constructor?(Na("Invalid config, wrong type for "+k),g=!1):("function"==typeof c[h]&&c[h].length!=b[h].length&&Oa("Unexpected number of arguments for "+k),a[h]=b[h]):(Na("Invalid config, unrecognized key "+
|
|
288
|
+
k),g=!1)}return g}function ni(a,b){for(var c={},d=c,e=0,f=0;;){e=a.indexOf(".",e);if(0>e)break;if(0==e||"\\"!=a[e-1])f=a.substring(f,e).replace(/\\\./g,"."),d[f]={},d=d[f],f=e+1;e+=1}d[a.substring(f).replace(/\\\./g,".")]=b;return c}L("shaka.util.ConfigUtils",li);li.convertToConfigObject=ni;li.mergeConfigObjects=mi;function oi(){}
|
|
289
|
+
function pi(){var a=1E6,b=Infinity;navigator.connection&&(navigator.connection.downlink&&(a=1E6*navigator.connection.downlink),navigator.connection.saveData&&(b=360));var c={retryParameters:Fc(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:ke,logLicenseExchange:!1,updateExpirationTime:1},d={retryParameters:Fc(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,defaultPresentationDelay:0,dash:{clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,
|
|
290
|
+
ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1E3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1},hls:{ignoreTextStreamFailures:!1,useFullSegmentsForStartTime:!1}},e={retryParameters:Fc(),failureCallback:function(h){return[h]},rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,smallGapLimit:.5,jumpLargeGaps:!1,durationBackoff:1,forceTransmuxTS:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,
|
|
291
|
+
stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2};if(Dd("Web0S")||Cd()||Dd("CrKey"))e.stallSkip=0;var f={trackSelectionCallback:function(h){return H(function(k){return k["return"](h)})},progressCallback:function(h,k){return[h,k]},usePersistentLicense:!0},g={drm:c,manifest:d,streaming:e,offline:f,abrFactory:function(){return new gg},abr:{enabled:!0,defaultBandwidthEstimate:a,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:Infinity,
|
|
291
292
|
minHeight:0,maxHeight:b,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity}},preferredAudioLanguage:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:Infinity,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity},playRangeStart:0,playRangeEnd:Infinity,textDisplayFactory:function(){return null}};
|
|
292
|
-
f.trackSelectionCallback=function(h){return
|
|
293
|
-
function
|
|
294
|
-
2);d.sort(function(h,k){return h.bandwidth-k.bandwidth});c.push(d[g])}d=r(a);for(g=d.next();!g.done;g=d.next())g=g.value,"text"==g.type&&c.push(g);return c}
|
|
295
|
-
function
|
|
296
|
-
|
|
297
|
-
c.g=null;e=Promise.resolve();return
|
|
298
|
-
e==c.
|
|
299
|
-
f.g?t(f,
|
|
300
|
-
p.destroy=function(){var a=this,b;return
|
|
301
|
-
x(c)}})};function
|
|
302
|
-
p.
|
|
303
|
-
p.
|
|
304
|
-
p.load=function(a,b,c){var d=this;if(this.u==
|
|
293
|
+
f.trackSelectionCallback=function(h){return H(function(k){return k["return"](qi(h,g.preferredAudioLanguage))})};return g}function ri(a,b,c){var d={".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",serverCertificate:new Uint8Array(0),individualizationServer:""}};return mi(a,b,c||pi(),d,"")}
|
|
294
|
+
function qi(a,b){var c=a.filter(function(h){return"variant"==h.type}),d=[],e=Tb(b,c.map(function(h){return h.language}));e&&(d=c.filter(function(h){return Mb(h.language)==e}));0==d.length&&(d=c.filter(function(h){return h.primary}));0==d.length&&(c.map(function(h){return h.language}),d=c);var f=d.filter(function(h){return h.height&&480>=h.height});f.length&&(f.sort(function(h,k){return k.height-h.height}),d=f.filter(function(h){return h.height==f[0].height}));c=[];if(d.length){var g=Math.floor(d.length/
|
|
295
|
+
2);d.sort(function(h,k){return h.bandwidth-k.bandwidth});c.push(d[g])}d=r(a);for(g=d.next();!g.done;g=d.next())g=g.value,"text"==g.type&&c.push(g);return c}L("shaka.util.PlayerConfiguration",oi);oi.mergeConfigObjects=ri;function si(){this.g=null;this.h=[]}function ti(a,b){if(null==a.g)a.g={timestamp:Date.now()/1E3,state:b,duration:0};else{var c=Date.now()/1E3;a.g.duration=c-a.g.timestamp;a.g.state!=b&&(a.h.push(a.g),a.g={timestamp:c,state:b,duration:0})}}function ui(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);for(var d=r(a.h),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state==b?e.duration:0;return c}
|
|
296
|
+
function vi(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=r(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function wi(){this.i=this.h=null;this.g=[]}function xi(a,b,c){a.h!=b&&(a.h=b,a.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}))}function yi(a,b,c){a.i!=b&&(a.i=b,a.g.push({timestamp:Date.now()/1E3,id:b.id,type:"text",fromAdaptation:c,bandwidth:null}))};function zi(){this.u=this.A=this.J=this.D=this.l=this.i=this.H=this.j=this.K=this.N=this.P=this.B=this.S=NaN;this.h=new si;this.g=new wi};function U(a,b){$a.call(this);var c=this;this.u=Ai;this.$a=this.g=null;this.X=!1;this.h=new jd;this.ub=this.A=this.Sa=this.F=this.kb=this.B=this.i=this.mb=this.J=this.ab=this.H=this.ua=this.D=this.K=this.l=this.Z=null;this.Ke=1E9;this.v=Bi(this);this.Hd={width:Infinity,height:Infinity};this.j=null;this.ba=new ng(this.v.preferredAudioLanguage,this.v.preferredVariantRole,this.v.preferredAudioChannelCount);this.ka=this.v.preferredTextLanguage;this.Ta=this.v.preferredTextRole;this.sb=[];b&&b(this);this.Z=
|
|
297
|
+
Ci(this);this.N=null;Di&&(this.N=Fb(Di));this.h.m(window,"online",function(){c.Wd()});this.Ea={name:"detach"};this.cb={name:"attach"};this.S={name:"unload"};this.Jd={name:"manifest-parser"};this.Gd={name:"manifest"};this.ra={name:"media-source"};this.vb={name:"drm-engine"};this.P={name:"load"};this.Nd={name:"src-equals-drm-engine"};this.Da={name:"src-equals"};var d=new Map;d.set(this.cb,function(e,f){return Lc(Ei(c,e,f))});d.set(this.Ea,function(e){e.I&&(c.h.Ja(e.I,"error"),e.I=null);c.N&&c.N.release();
|
|
298
|
+
c.g=null;e=Promise.resolve();return Lc(e)});d.set(this.S,function(e){return Lc(Fi(c,e))});d.set(this.ra,function(e){e=Gi(c,e);return Lc(e)});d.set(this.Jd,function(e,f){var g=Hi(c,e,f);return Lc(g)});d.set(this.Gd,function(e){return Ii(c,e)});d.set(this.vb,function(e){e=Ji(c,e);return Lc(e)});d.set(this.P,function(e,f){return Lc(Ki(c,e,f))});d.set(this.Nd,function(e,f){var g=Li(c,e,f);return Lc(g)});d.set(this.Da,function(e,f){return Mi(c,e,f)});this.aa=new Th(this.Ea,{Gf:function(e,f,g,h){var k=
|
|
299
|
+
null;e==c.Ea&&(k=g==c.Ea?c.Ea:c.cb);e==c.cb&&(k=g==c.Ea||f.I!=h.I?c.Ea:g==c.cb?c.cb:g==c.ra||g==c.P?c.ra:g==c.Da?c.Nd:null);e==c.ra&&(k=g==c.P&&f.I==h.I?c.Jd:c.S);e==c.Jd&&(k=Ni(c.P,c.Gd,c.S,g,f,h));e==c.Gd&&(k=Ni(c.P,c.vb,c.S,g,f,h));e==c.vb&&(k=Ni(c.P,c.P,c.S,g,f,h));e==c.Nd&&(k=g==c.Da&&f.I==h.I?c.Da:c.S);if(e==c.P||e==c.Da)k=c.S;e==c.S&&(k=h.I&&f.I==h.I?c.cb:c.Ea);return k},mf:function(e,f,g){c.dispatchEvent(Oi(Pi,(new Map).set("state",e.name)));return d.get(e)(f,g)},handleError:function(e){return H(function(f){return 1==
|
|
300
|
+
f.g?t(f,Fi(c,e),2):f["return"](e.I?c.cb:c.Ea)})},Yf:function(e){c.dispatchEvent(Oi(Qi,(new Map).set("state",e.name)))}});a&&this.qc(a,!0)}pa(U,$a);function Oi(a,b){return new M(a,b)}p=U.prototype;
|
|
301
|
+
p.destroy=function(){var a=this,b;return H(function(c){switch(c.g){case 1:if(a.u==Ri)return c["return"]();a.u=Ri;b=Yh(a.aa,function(){return{node:a.Ea,payload:Uh(),Bb:!1}});return t(c,new Promise(function(d){b.dc=function(){};b.fd=function(){d()};b.Gb=function(){d()};b.onError=function(){d()};b.hd=function(){d()}}),2);case 2:return t(c,a.aa.destroy(),3);case 3:a.h&&(a.h.release(),a.h=null);a.ub=null;a.A=null;a.v=null;a.j=null;a.$a=null;if(!a.Z){c.C(0);break}return t(c,a.Z.destroy(),5);case 5:a.Z=
|
|
302
|
+
null,x(c)}})};function Si(){if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach))return!1;var a=Fd();return a&&12>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:zd()?!0:Ad("application/x-mpegurl")}
|
|
303
|
+
p.qc=function(a,b){b=void 0===b?!0:b;if(this.u==Ri)return Promise.reject(Ti());var c=Uh();c.I=a;zd()||(b=!1);var d=b?this.ra:this.cb,e=Yh(this.aa,function(){return{node:d,payload:c,Bb:!1}});e.dc=function(){};return Ui(e)};p.detach=function(){var a=this;if(this.u==Ri)return Promise.reject(Ti());var b=Yh(this.aa,function(){return{node:a.Ea,payload:Uh(),Bb:!1}});b.dc=function(){};return Ui(b)};
|
|
304
|
+
p.me=function(a){var b=this;a=void 0===a?!0:a;if(this.u==Ri)return Promise.reject(Ti());zd()||(a=!1);var c=Uh(),d=Yh(this.aa,function(e){var f=e.I&&a?b.ra:e.I?b.cb:b.Ea;c.I=e.I;return{node:f,payload:c,Bb:!1}});d.dc=function(){};return Ui(d)};
|
|
305
|
+
p.load=function(a,b,c){var d=this;if(this.u==Ri)return Promise.reject(Ti());this.dispatchEvent(Oi(Vi));var e=Uh();e.uri=a;e.ge=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=Wi(this,e)?this.Da:this.P,g=Yh(this.aa,function(h){if(null==h.I)return null;e.I=h.I;return{node:f,payload:e,Bb:!0}});this.j=new zi;g.dc=function(){};return new Promise(function(h,k){g.hd=function(){return k(new N(2,7,7002))};g.fd=function(){h();d.dispatchEvent(Oi(Xi))};g.Gb=function(){return k(Ti())};g.onError=
|
|
305
306
|
function(l){return k(l)}})};
|
|
306
|
-
function
|
|
307
|
-
function
|
|
308
|
-
function
|
|
309
|
-
case 3:if(!a.A){n.C(5);break}return t(n,a.A.stop(),5);case 5:if(!a.i){n.C(7);break}return t(n,a.i.destroy(),8);case 8:a.i=null;case 7:a.H&&(a.H.release(),a.H=null);a.D&&(a.D.release(),a.D=null);if(!a.K){n.C(9);break}return t(n,a.K.destroy(),10);case 10:a.K=null;case 9:if(a.N)a.N.onAssetUnload();if(!b.I||!b.I.src){n.C(11);break}return t(n,new Promise(function(q){return(new O(q)).
|
|
310
|
-
null;case 13:a.
|
|
311
|
-
function
|
|
312
|
-
function
|
|
313
|
-
function
|
|
314
|
-
l;break a}k=null}null==k&&(h.g.add(g),h.h(g))},onEvent:function(g){return a.dispatchEvent(g)},onError:function(g){return
|
|
315
|
-
function
|
|
316
|
-
function
|
|
317
|
-
(
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
function
|
|
321
|
-
"video/mp4",codecs:c.mimeType?
|
|
322
|
-
function
|
|
323
|
-
function(){a.j.j=Date.now()/1E3-c.
|
|
324
|
-
var e=new
|
|
325
|
-
e.resolve());a.h.
|
|
326
|
-
function
|
|
327
|
-
function
|
|
328
|
-
function
|
|
329
|
-
function
|
|
330
|
-
function
|
|
331
|
-
function
|
|
332
|
-
p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=
|
|
333
|
-
function
|
|
334
|
-
a.v.abr.enabled?a.A.enable():a.A.disable(),
|
|
335
|
-
p.
|
|
336
|
-
p.
|
|
337
|
-
p.
|
|
338
|
-
p.
|
|
339
|
-
p.
|
|
340
|
-
p.
|
|
341
|
-
p.
|
|
342
|
-
b=c.find(function(e){return e.enabled});c=r(c);for(d=c.next();!d.done;d=c.next())d=d.value,
|
|
343
|
-
p.
|
|
344
|
-
c=
|
|
345
|
-
p.
|
|
346
|
-
p.
|
|
347
|
-
function
|
|
348
|
-
p.
|
|
349
|
-
p.
|
|
350
|
-
p.
|
|
351
|
-
p.getStats=function(){if(this.u!=
|
|
352
|
-
b.N=c;this.j.K=Number(a.corruptedVideoFrames)}this.l?(a=this.l,a=a.J?a.J:NaN):a=NaN;this.j.l=a;if(this.u==
|
|
353
|
-
d.j,l=d.H,m=d.i,n=
|
|
354
|
-
maxSegmentDuration:w,stateHistory:z,switchHistory:
|
|
355
|
-
p.addTextTrack=function(a,b,c,d,e,f){if(this.u==
|
|
356
|
-
audioSamplingRate:null,closedCaptions:null};this.F.textStreams.push(a);
|
|
357
|
-
p.
|
|
358
|
-
function
|
|
359
|
-
function
|
|
307
|
+
function Wi(a,b){if(!zd())return!0;var c=b.mimeType,d=b.uri||"";c||(c={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mpd:"application/dash+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav"}[yg(d)]);return c?""==(b.I||Bd()).canPlayType(c)?!1:zd()&&(c in xg||yg(d)in zg)?Ed()&&a.v.streaming.useNativeHlsOnSafari:!0:
|
|
308
|
+
!1}function Ei(a,b,c){null==b.I&&(b.I=c.I,a.h.m(b.I,"error",function(){var d=Yi(a);d&&Zi(a,d)}));a.g=b.I;return Promise.resolve()}
|
|
309
|
+
function Fi(a,b){var c,d,e,f,g,h,k,l,m;return H(function(n){switch(n.g){case 1:return a.u!=Ri&&(a.u=Ai),c=a.sb.map(function(q){return q()}),a.sb=[],t(n,Promise.all(c),2);case 2:a.dispatchEvent(Oi($i));b.mimeType=null;b.startTime=null;b.uri=null;b.I&&(a.h.Ja(b.I,"loadedmetadata"),a.h.Ja(b.I,"playing"),a.h.Ja(b.I,"pause"),a.h.Ja(b.I,"ended"),a.h.Ja(b.I,"ratechange"));a.ua&&(a.ua.release(),a.ua=null);a.ab&&(a.ab.stop(),a.ab=null);if(!a.B){n.C(3);break}return t(n,a.B.stop(),4);case 4:a.B=null,a.kb=null;
|
|
310
|
+
case 3:if(!a.A){n.C(5);break}return t(n,a.A.stop(),5);case 5:if(!a.i){n.C(7);break}return t(n,a.i.destroy(),8);case 8:a.i=null;case 7:a.H&&(a.H.release(),a.H=null);a.D&&(a.D.release(),a.D=null);if(!a.K){n.C(9);break}return t(n,a.K.destroy(),10);case 10:a.K=null;case 9:if(a.N)a.N.onAssetUnload();if(!b.I||!b.I.src){n.C(11);break}return t(n,new Promise(function(q){return(new O(q)).V(.1)}),12);case 12:b.I.removeAttribute("src"),b.I.load();case 11:if(!a.l){n.C(13);break}return t(n,a.l.destroy(),14);case 14:a.l=
|
|
311
|
+
null;case 13:a.Sa=null;a.J=null;if(a.F){d=r(a.F.variants);for(e=d.next();!e.done;e=d.next())for(f=e.value,g=r([f.audio,f.video]),h=g.next();!h.done;h=g.next())(k=h.value)&&k.segmentIndex&&k.segmentIndex.release();l=r(a.F.textStreams);for(h=l.next();!h.done;h=l.next())m=h.value,m.segmentIndex&&m.segmentIndex.release()}a.F=null;a.j=new zi;a.Tb=null;aj(a);x(n)}})}
|
|
312
|
+
function Gi(a,b){var c,d,e,f;return H(function(g){if(1==g.g)return c=window.muxjs?new Le:new Me,d=a.v.textDisplayFactory,e=Fb(d),a.Tb=d,f=bj(b.I,c,e,function(h,k,l){h=r(h);for(var m=h.next();!m.done;m=h.next())if(m=m.value,m.data&&m.cueTime&&m.frames){for(var n=m.cueTime+k,q=l,u=r(m.frames),v=u.next();!v.done;v=u.next())cj(a,n,q,"ID3",v.value);if(a.N)a.N.onHlsTimedMetadata(m,n)}}),t(g,f.H,2);a.K=f;x(g)})}
|
|
313
|
+
function Hi(a,b,c){var d,e,f,g;return H(function(h){if(1==h.g)return b.mimeType=c.mimeType,b.uri=c.uri,d=b.uri,e=a.Z,a.Sa=d,f=a,t(h,wg(d,e,a.v.manifest.retryParameters,b.mimeType),2);f.kb=h.h;a.B=Fb(a.kb);g=Oc(a.v.manifest);c.I&&"AUDIO"===c.I.nodeName&&(g.disableVideo=!0);a.B.configure(g);x(h)})}
|
|
314
|
+
function Ii(a,b){var c=b.uri,d=a.Z;a.mb=new jh(function(){return a.Pa()});kh(a.mb,function(g){dj(a,ej,g);if(a.N)a.N.onDashTimedMetadata(g)});var e={networkingEngine:d,filter:function(g){return H(function(h){return h["return"](a.Ub(g))})},makeTextStreamsForClosedCaptions:function(g){return fj(a,g)},onTimelineRegionAdded:function(g){var h=a.mb;a:{var k=r(h.g);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.schemeIdUri==g.schemeIdUri&&l.id==g.id&&l.startTime==g.startTime&&l.endTime==g.endTime){k=
|
|
315
|
+
l;break a}k=null}null==k&&(h.g.add(g),h.h(g))},onEvent:function(g){return a.dispatchEvent(g)},onError:function(g){return Zi(a,g)}},f=Date.now()/1E3;return new Hc(function(){var g,h,k,l;return H(function(m){if(1==m.g)return g=a,t(m,a.B.start(c,e),2);g.F=m.h;h=Oi(gj);a.dispatchEvent(h);if(0==a.F.variants.length)throw new N(2,4,4036);hj(a.F);k=Date.now()/1E3;l=k-f;a.j.H=l;x(m)})}(),function(){return a.B.stop()})}
|
|
316
|
+
function Ji(a,b){var c,d;return H(function(e){if(1==e.g)return c=Date.now()/1E3,d=!0,a.l=ij(a,{bc:a.Z,onError:function(f){Zi(a,f)},gd:function(f){jj(a,f)},onExpirationUpdated:function(f,g){kj(a,f,g)},onEvent:function(f){a.dispatchEvent(f);f.type==lj&&d&&(d=!1,a.j.i=Date.now()/1E3-c)}}),a.l.configure(a.v.drm),t(e,Pd(a.l,a.F.variants,a.F.offlineSessionIds),2);if(3!=e.g)return t(e,a.l.qc(b.I),3);a.Ub(a.F);x(e)})}
|
|
317
|
+
function Ki(a,b,c){var d,e,f,g,h,k,l,m,n,q,u,v;return H(function(A){switch(A.g){case 1:b.startTime=c.startTime;d=b.I;e=b.uri;a.Sa=e;a.H=new ch({cd:function(){return b.I.playbackRate},$c:function(){return b.I.defaultPlaybackRate},ae:function(w){b.I.playbackRate=w},Je:function(w){b.I.currentTime+=w}});f=function(){return mj(a)};g=function(){return nj(a)};a.h.m(d,"playing",f);a.h.m(d,"pause",f);a.h.m(d,"ended",f);a.h.m(d,"ratechange",g);h=a.v.abrFactory;a.A&&a.ub==h||(a.ub=h,a.A=Fb(h),"function"!=typeof a.A.playbackRateChanged&&
|
|
318
|
+
(yb("AbrManager","Please use an AbrManager with playbackRateChanged function."),a.A.playbackRateChanged=function(){}),a.A.configure(a.v.abr));a.ba=new ng(a.v.preferredAudioLanguage,a.v.preferredVariantRole,a.v.preferredAudioChannelCount);a.ka=a.v.preferredTextLanguage;a.Ta=a.v.preferredTextRole;oj(a.F.presentationTimeline,a.v.playRangeStart,a.v.playRangeEnd);a.A.init(function(w,z,D){z=void 0===z?!1:z;D=void 0===D?0:D;a.i&&w!=a.i.h&&(xi(a.j.g,w,!0),Ch(a.i,w,z,D),pj(a))});a.D=qj(a,b.startTime);a.ua=
|
|
319
|
+
rj(a);k=Math.max(a.F.minBufferTime,a.v.streaming.rebufferingGoal);sj(a,k);Of(a.F,a.v.preferredAudioChannelCount);a.i=tj(a);a.i.configure(a.v.streaming);a.u=uj;a.dispatchEvent(Oi(vj));l=null;if(m=a.Ab().find(function(w){return w.active})){A.C(2);break}l=wj(a)?a.A.chooseVariant():null;xi(a.j.g,l,!0);Ch(a.i,l,!1,0);if(!a.v.streaming.startAtSegmentBoundary){A.C(3);break}n=a.D.l();return t(A,xj(l,n),4);case 4:q=A.h,a.D.B(q);case 3:pj(a);case 2:return u=a.zb().find(function(w){return w.active}),u||((v=
|
|
320
|
+
eg(a.F.textStreams,a.ka,a.Ta)[0]||null)&&yi(a.j.g,v,!0),l&&(v?(l.audio&&yj(a,l.audio,v)&&(a.X=!0),a.X&&a.K.u.setTextVisibility(!0),zj(a)):a.X=!1),v&&(a.v.streaming.alwaysStreamText||a.Fb())&&Dh(a.i,v)),t(A,a.i.start(),5);case 5:a.v.abr.enabled&&(a.A.enable(),Aj(a)),a.Ub(a.F),Bj(a),wj(a),a.F.variants.some(function(w){return w.primary}),a.h.Ga(d,"loadedmetadata",function(){a.j.j=Date.now()/1E3-c.ge}),x(A)}})}
|
|
321
|
+
function Li(a,b,c){var d,e,f,g;return H(function(h){return 1==h.g?(d=Ib,e=Date.now()/1E3,f=!0,a.l=ij(a,{bc:a.Z,onError:function(k){Zi(a,k)},gd:function(k){jj(a,k)},onExpirationUpdated:function(k,l){kj(a,k,l)},onEvent:function(k){a.dispatchEvent(k);k.type==lj&&f&&(f=!1,a.j.i=Date.now()/1E3-e)}}),a.l.configure(a.v.drm),g={id:0,language:"und",primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:c.mimeType?c.mimeType.split(";")[0]:
|
|
322
|
+
"video/mp4",codecs:c.mimeType?yd(c.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.bb,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,audioSamplingRate:null,closedCaptions:null},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0},t(h,Pd(a.l,[g],[]),2)):t(h,a.l.qc(b.I),0)})}
|
|
323
|
+
function Mi(a,b,c){function d(){return mj(a)}b.uri=c.uri;b.startTime=c.startTime;a.Sa=b.uri;a.D=new Tg(b.I);null!=b.startTime&&a.D.B(b.startTime);a.H=new ch({cd:function(){return b.I.playbackRate},$c:function(){return b.I.defaultPlaybackRate},ae:function(g){b.I.playbackRate=g},Je:function(g){b.I.currentTime+=g}});sj(a,a.v.streaming.rebufferingGoal);a.h.m(b.I,"playing",d);a.h.m(b.I,"pause",d);a.h.m(b.I,"ended",d);a.h.m(b.I,"ratechange",function(){return nj(a)});"none"!=a.g.preload&&a.h.Ga(a.g,"loadedmetadata",
|
|
324
|
+
function(){a.j.j=Date.now()/1E3-c.ge});a.g.audioTracks&&(a.h.m(a.g.audioTracks,"addtrack",function(){return Bj(a)}),a.h.m(a.g.audioTracks,"removetrack",function(){return Bj(a)}),a.h.m(a.g.audioTracks,"change",function(){return Bj(a)}));a.g.textTracks&&(a.h.m(a.g.textTracks,"addtrack",function(g){Bj(a);Cj(a,g)}),a.h.m(a.g.textTracks,"removetrack",function(){return Bj(a)}),a.h.m(a.g.textTracks,"change",function(){return Bj(a)}));b.I.src=b.uri;(Cd()||Dd("Web0S"))&&b.I.load();a.u=Dj;a.dispatchEvent(Oi(vj));
|
|
325
|
+
var e=new ic;Kg(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){e.resolve()});var f=!1;a.sb.push(function(){f=!0});Kg(a.g,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){var g;return H(function(h){if(1==h.g){if(f)return h["return"]();Ej(a);g=Fj(a);return g.find(function(k){return"disabled"!=k.mode})?h.C(2):t(h,new Promise(function(k){a.h.Ga(a.g.textTracks,"change",k);(new O(k)).V(1)}),2)}if(f)return h["return"]();Gj(a);x(h)})});a.g.error?e.reject(Yi(a)):"none"==a.g.preload&&(Oa('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.'),
|
|
326
|
+
e.resolve());a.h.Ga(a.g,"error",function(){e.reject(Yi(a))});return new Hc(e,function(){e.reject(new N(2,7,7001));return Promise.resolve()})}function Ej(a){var b=a.v.preferredAudioLanguage;if(""!=b){a.nd(b);var c=a.v.preferredVariantRole;""!=c&&a.nd(b,c)}}function Gj(a){var b=a.v.preferredTextLanguage;if(""!=b){a.od(b);var c=a.v.preferredTextRole;""!=c&&a.od(b,c)}}
|
|
327
|
+
function Cj(a,b){var c=b.track;"metadata"==c.kind&&(c.mode="hidden",a.h.m(c,"cuechange",function(){if(c.activeCues)for(var d=r(c.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,cj(a,e.startTime,e.endTime,e.type,e.value),a.N)a.N.onCueMetadataChange(e.value)}),(new O(function(){var d=Hj(a);d=r(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).Ba().V(.5))}
|
|
328
|
+
function cj(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(Oi(Ij,b))}function hj(a){function b(c){return c.video&&c.audio||c.video&&c.video.codecs.includes(",")}a.variants.some(b)&&(a.variants=a.variants.filter(b))}function ij(a,b){return new Id(b,a.v.drm.updateExpirationTime)}function Ci(a){return new Wc(function(b,c){a.A&&a.A.segmentDownloaded(b,c)})}
|
|
329
|
+
function qj(a,b){return new Ug(a.g,a.F,a.v.streaming,b,function(){a.ua&&fh(a.ua,!0);if(a.i)for(var c=a.i,d=c.G.bd(),e=c.v.smallGapLimit,f=r(c.g.keys()),g=f.next();!g.done;g=f.next()){g=g.value;var h=c.g.get(g);h.oa=null;var k=c.G.U;"text"==g?(k=k.i,k=null==k.g||null==k.h?!1:d>=k.g&&d<k.h):(k=Bf(k,g),k=Oe(k,d,e));k||(null!=Cf(c.G.U,g)&&Gh(c,h),h.Ha&&(h.Ha.abort(),h.Ha=null),"text"===g&&c.G.U.D.h())}a.J&&Jj(a)},function(c){return a.dispatchEvent(c)})}
|
|
330
|
+
function rj(a){var b=new lh(a.mb);mh(b,function(d){dj(a,Kj,d)},function(d){dj(a,Lj,d)},function(d,e){e||(dj(a,Kj,d),dj(a,Lj,d))});var c=new eh(a.g);c.g.add(b);return c}function sj(a,b){a.J=new rg;a.J.g=tg;ug(a.J,b,Math.min(.5,b/2));aj(a);a.ab=(new O(function(){Jj(a)})).ia(.25)}
|
|
331
|
+
function Jj(a){switch(a.u){case Dj:if(a.g.ended)var b=!0;else{var c=Ne(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case uj:a:if(a.g.ended||zf(a.K))b=!0;else{if(a.F.presentationTimeline.W()){c=a.F.presentationTimeline.pb();var d=Ne(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Pe(a.g.buffered,a.g.currentTime);c=a.J;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?sg:tg;c.g=d;b!=d&&aj(a)}function bj(a,b,c,d){return new sf(a,b,c,d)}
|
|
332
|
+
function tj(a){return new oh(a.F,{bd:function(){return a.D.l()},getBandwidthEstimate:function(){return a.A.getBandwidthEstimate()},U:a.K,bc:a.Z,onError:function(b){return Zi(a,b)},onEvent:function(b){return a.dispatchEvent(b)},Zf:function(){a.B&&a.B.update&&a.B.update()},Td:function(){a.D&&a.D.H();Jj(a)}})}
|
|
333
|
+
p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=ni(a,b));a.manifest&&a.manifest.dash&&"defaultPresentationDelay"in a.manifest.dash&&(yb("manifest.dash.defaultPresentationDelay configuration","Please Use manifest.defaultPresentationDelay instead."),a.manifest.defaultPresentationDelay=a.manifest.dash.defaultPresentationDelay,delete a.manifest.dash.defaultPresentationDelay);var c=ri(this.v,a,Bi(this));Mj(this);return c};
|
|
334
|
+
function Mj(a){if(a.B){var b=Oc(a.v.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.B.configure(b)}a.l&&a.l.configure(a.v.drm);if(a.i){a.i.configure(a.v.streaming);try{a.Ub(a.F)}catch(f){Zi(a,f)}a.A&&wj(a);b=a.i.h;!b||b.allowedByApplication&&b.allowedByKeySystem||Nj(a)}if(a.K&&(b=a.v.textDisplayFactory,a.Tb!=b)){var c=Fb(b),d=a.K,e=d.u;d.u=c;e&&(c.setTextVisibility(e.isTextVisible()),e.destroy());d.i&&(d.i.i=c);a.Tb=b;a.i&&(b=a.i,(c=b.g.get("text"))&&Bh(b,c.stream,!0,0,!0))}a.A&&(a.A.configure(a.v.abr),
|
|
335
|
+
a.v.abr.enabled?a.A.enable():a.A.disable(),Aj(a));a.J&&(b=a.v.streaming.rebufferingGoal,a.F&&(b=Math.max(b,a.F.minBufferTime)),ug(a.J,b,Math.min(.5,b/2)))}p.getConfiguration=function(){var a=Bi(this);ri(a,this.v,Bi(this));return a};p.ig=function(){for(var a in this.v)delete this.v[a];ri(this.v,Bi(this),Bi(this));Mj(this)};p.yf=function(){return this.u};p.Ff=function(){return this.g};p.vc=function(){return this.Z};p.Fd=function(){return this.Sa};
|
|
336
|
+
p.Yc=function(){Pa("getAdManager","Shaka Player's ad features are currently in BETA and are NOT yet covered by semantic versioning compatibility guarantees. The API may change at any time!");return this.N};p.W=function(){return this.F?this.F.presentationTimeline.W():this.g&&this.g.src?Infinity==this.g.duration:!1};p.Db=function(){return this.F?this.F.presentationTimeline.Db():!1};
|
|
337
|
+
p.Ee=function(){if(this.F){var a=this.F.variants;return a.length?!a[0].video:!1}return this.g&&this.g.src?this.g.videoTracks?0==this.g.videoTracks.length:0==this.g.videoHeight:!1};p.Pa=function(){if(this.F){var a=this.F.presentationTimeline;return{start:a.Zb(),end:a.eb()}}return this.g&&this.g.src&&(a=this.g.seekable,a.length)?{start:a.start(0),end:a.end(a.length-1)}:{start:0,end:0}};p.keySystem=function(){return de(this.drmInfo())};p.drmInfo=function(){return this.l?this.l.i:null};
|
|
338
|
+
p.uc=function(){return this.l?this.l.uc():Infinity};p.Dc=function(){return this.J?this.J.g==tg:!1};p.wc=function(){return this.g?this.H?this.H.i:1:0};p.le=function(a){0==a?Oa("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.H.set(a),this.u==uj&&(this.A.playbackRateChanged(a),Ah(this.i,1<Math.abs(a))))};p.qe=function(){var a=this.H.$c();this.u==Dj&&this.H.set(a);this.u==uj&&(this.H.set(a),this.A.playbackRateChanged(a),Ah(this.i,!1))};
|
|
339
|
+
p.Ab=function(){if(this.F){for(var a=this.i?this.i.h:null,b=[],c=0,d=r(this.F.variants),e=d.next();!e.done;e=d.next())if(e=e.value,cg(e)){var f=Xf(e);f.active=e==a;f.active||1==c||null==a||e.video!=a.video||e.audio!=a.audio||(f.active=!0);f.active&&c++;b.push(f)}return b}return this.g&&this.g.audioTracks?Array.from(this.g.audioTracks).map(function(g){return ag(g)}):[]};
|
|
340
|
+
p.zb=function(){if(this.F){for(var a=this.i?this.i.i:null,b=[],c=r(this.F.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=Yf(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?Fj(this).map(function(f){var g=bg(f);g.active="disabled"!=f.mode;g.type="text";g.originalTextId=f.id;"captions"==f.kind&&(g.mimeType="application/cea-608");f.kind&&(g.roles=[f.kind]);return g}):[]};
|
|
341
|
+
p.Se=function(a){if(this.F&&this.i){var b=this.F.textStreams.find(function(d){return d.id==a.id});b&&b!=this.i.i&&(yi(this.j.g,b,!1),Dh(this.i,b),Oj(this),this.ka=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=Fj(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Zf(c)==a.id?c.mode=this.X?"showing":"hidden":c.mode="disabled";Oj(this)}};
|
|
342
|
+
p.Xd=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?0:c;if(this.F&&this.i){this.v.abr.enabled&&Oa("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");var d=this.F.variants.find(function(e){return e.id==a.id});d&&cg(d)&&(d==this.i.h?b&&Ch(this.i,d,b,c,!0):(xi(this.j.g,d,!1),Ch(this.i,d,b,c),Pj(this),this.ba=new mg(d),wj(this)))}else if(this.g&&this.g.audioTracks){c=Array.from(this.g.audioTracks);
|
|
343
|
+
b=c.find(function(e){return e.enabled});c=r(c);for(d=c.next();!d.done;d=c.next())d=d.value,Zf(d)==a.id&&(d.enabled=!0,d.id!==b.id&&(b.enabled=!1));Pj(this)}};p.pf=function(){return Qj(this.Ab())};p.Of=function(){return Qj(this.zb())};p.nf=function(){return Array.from(Rj(this.Ab()))};p.Nf=function(){return Array.from(Rj(this.zb()))};
|
|
344
|
+
p.nd=function(a,b){if(this.F&&this.D){this.ba=new ng(a,b||"",0,"");if(!this.v.abr.enabled){var c=function(k,l){return k.video||l.video?k.video&&l.video?Math.abs((k.video.height||0)-(l.video.height||0))+Math.abs((k.video.width||0)-(l.video.width||0)):Infinity:0},d=this.i.h,e=this.ba.create(this.F.variants),f=null;e=r(e.values());for(var g=e.next();!g.done;g=e.next())if(g=g.value,!f||c(f,d)>c(g,d))f=g;if(f){c=Xf(f);this.Xd(c,!0);return}}Nj(this)}else if(this.g&&this.g.audioTracks){e=Array.from(this.g.audioTracks);
|
|
345
|
+
c=Mb(a);f=d=null;e=r(e);for(g=e.next();!g.done;g=e.next()){g=g.value;var h=ag(g);Mb(h.language)==c&&(d=g,b?h.roles.includes(b)&&(f=g):0==h.roles.length&&(f=g))}f?(f.enabled=!0,Pj(this)):d&&(d.enabled=!0,Pj(this))}};
|
|
346
|
+
p.od=function(a,b){if(this.F&&this.D){this.ka=a;this.Ta=b||"";var c=eg(this.F.textStreams,this.ka,this.Ta)[0]||null;c&&c!=this.i.i&&(yi(this.j.g,c,!1),this.v.streaming.alwaysStreamText||this.Fb())&&(Dh(this.i,c),Oj(this))}else{var d=Mb(a);(c=this.zb().find(function(e){return Mb(e.language)==d&&(!b||e.roles.includes(b))}))&&this.Se(c)}};
|
|
347
|
+
p.kg=function(a){if(this.F&&this.D){for(var b=null,c=r(this.F.variants),d=c.next();!d.done;d=c.next())if(d=d.value,d.audio.label==a){b=d;break}null!=b&&(this.ba=new ng(b.language,"",0,a),Nj(this))}};p.Fb=function(){var a=this.X;return this.K?this.K.u.isTextVisible():this.g&&this.g.src&&this.g.textTracks?Fj(this).some(function(b){return"showing"==b.mode}):a};
|
|
348
|
+
function Fj(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function Hj(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"==b.kind})}
|
|
349
|
+
p.ee=function(a){a=!!a;if(this.X!=a){this.X=a;if(this.u==uj)this.K.u.setTextVisibility(a),this.v.streaming.alwaysStreamText||(a?this.i.i||(a=eg(this.F.textStreams,this.ka,this.Ta),0<a.length&&(Dh(this.i,a[0]),Oj(this))):zh(this.i));else if(this.g&&this.g.src&&this.g.textTracks){var b=Fj(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}zj(this)}};
|
|
350
|
+
p.Hf=function(){if(!this.W())return null;var a=this.aa.l,b=0;if(this.D)b=this.D.l();else if(a){if(null==a.startTime)return new Date;b=a.startTime}return this.F?new Date(1E3*(this.F.presentationTimeline.j+b)):this.g&&this.g.getStartDate?(a=this.g.getStartDate(),isNaN(a.getTime())?null:new Date(a.getTime()+1E3*b)):null};
|
|
351
|
+
p.Be=function(){if(!this.W())return null;if(this.F)return new Date(1E3*this.F.presentationTimeline.j);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};p.Zc=function(){if(this.u==uj)return this.K.Zc();var a={total:[],audio:[],video:[],text:[]};this.u==Dj&&(a.total=Qe(this.g.buffered));return a};
|
|
352
|
+
p.getStats=function(){if(this.u!=uj&&this.u!=Dj)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,estimatedBandwidth:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,switchHistory:[],stateHistory:[]};mj(this);var a=this.g;if(a.getVideoPlaybackQuality){a=a.getVideoPlaybackQuality();var b=this.j,c=Number(a.totalVideoFrames);b.P=Number(a.droppedVideoFrames);
|
|
353
|
+
b.N=c;this.j.K=Number(a.corruptedVideoFrames)}this.l?(a=this.l,a=a.J?a.J:NaN):a=NaN;this.j.l=a;if(this.u==uj){if(a=this.i.h)this.j.A=(this.H?this.H.i:1)*a.bandwidth;a&&a.video&&(b=this.j,c=a.video.height||NaN,b.S=a.video.width||NaN,b.B=c);this.W()&&(a=this.Be().valueOf()+1E3*this.Pa().end,this.j.D=(Date.now()-a)/1E3);this.F&&this.F.presentationTimeline&&(this.j.J=this.F.presentationTimeline.g);a=this.A.getBandwidthEstimate();this.j.u=a}var d=this.j;a=d.S;b=d.B;c=d.A;var e=d.N,f=d.P,g=d.K,h=d.u,k=
|
|
354
|
+
d.j,l=d.H,m=d.i,n=ui(d.h,"playing"),q=ui(d.h,"paused"),u=ui(d.h,"buffering"),v=d.l,A=d.D,w=d.J,z=vi(d.h),D=[];d=r(d.g.g);for(var B=d.next();!B.done;B=d.next())B=B.value,D.push({timestamp:B.timestamp,id:B.id,type:B.type,fromAdaptation:B.fromAdaptation,bandwidth:B.bandwidth});return{width:a,height:b,streamBandwidth:c,decodedFrames:e,droppedFrames:f,corruptedFrames:g,estimatedBandwidth:h,loadLatency:k,manifestTimeSeconds:l,drmTimeSeconds:m,playTime:n,pauseTime:q,bufferingTime:u,licenseTime:v,liveLatency:A,
|
|
355
|
+
maxSegmentDuration:w,stateHistory:z,switchHistory:D}};
|
|
356
|
+
p.addTextTrack=function(a,b,c,d,e,f){if(this.u==Dj)throw Error("State error!");if(this.u!=uj)throw Error("State error!");var g=this.F.presentationTimeline.getDuration();if(Infinity==g)throw new N(1,4,4033);a={id:this.Ke++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:ah(0,g,[a]),mimeType:d,codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:"text",primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,
|
|
357
|
+
audioSamplingRate:null,closedCaptions:null};this.F.textStreams.push(a);Bj(this);return Yf(a)};p.$d=function(a,b){this.Hd.width=a;this.Hd.height=b};p.Wd=function(){if(this.u==uj){var a=this.i;if(a.M.g)a=!1;else if(a.l)a=!1;else{for(var b=r(a.g.values()),c=b.next();!c.done;c=b.next())c=c.value,c.Ac&&(c.Ac=!1,vh(a,c,.1));a=!0}}else a=!1;return a};
|
|
358
|
+
p.Cf=function(){Oa("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.F};p.Df=function(){return this.kb};
|
|
359
|
+
function Bi(a){var b=pi();b.streaming.failureCallback=function(c){var d=[1001,1002,1003];a.W()&&d.includes(c.code)&&(c.severity=1,a.Wd())};b.textDisplayFactory=function(){return a.$a?new fi(a.g,a.$a):new $h(a.g)};return b}p.fe=function(a){this.$a=a};
|
|
360
|
+
function fj(a,b){for(var c=new Set,d=r(b.textStreams),e=d.next();!e.done;e=d.next())e=e.value,"application/cea-608"==e.mimeType&&c.add(e.originalId);d=r(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=r(e.closedCaptions.keys()),g=f.next();!g.done;g=f.next())if(g=g.value,!c.has(g)){var h=new bh;h={id:a.Ke++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:h,mimeType:"application/cea-608",codecs:"",kind:"caption",encrypted:!1,
|
|
360
361
|
drmInfos:[],keyIds:new Set,language:e.closedCaptions.get(g),label:null,type:"text",primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:e.roles,channelsCount:null,audioSamplingRate:null,closedCaptions:null};b.textStreams.push(h);c.add(g)}}
|
|
361
|
-
p.
|
|
362
|
-
d.next())if(e=e.value,e.keySystem==b.keySystem)for(e=r(e.initData||[]),f=e.next();!f.done;f=e.next())f=f.value,
|
|
363
|
-
function
|
|
364
|
-
function
|
|
365
|
-
function
|
|
366
|
-
function
|
|
367
|
-
function
|
|
368
|
-
function
|
|
369
|
-
(e=!0)}}}e&&
|
|
370
|
-
function
|
|
371
|
-
missingKeys:Array.from(g),restrictedKeyStatuses:Array.from(h)},new
|
|
372
|
-
function
|
|
373
|
-
function
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
for(k=n.next();!k.done;k=n.next())k=k.value,h[k]=
|
|
380
|
-
var
|
|
381
|
-
|
|
362
|
+
p.Ub=function(a){Vf(this.l,this.i?this.i.h:null,a);if(!a.variants.some(cg))throw new N(2,4,4032);for(var b=this.v.restrictions,c=this.Hd,d=!1,e=r(a.variants),f=e.next();!f.done;f=e.next()){f=f.value;var g=f.allowedByApplication;f.allowedByApplication=Uf(f,b,c);g!=f.allowedByApplication&&(d=!0)}d&&this.i&&Bj(this);if((b=this.l?this.l.i:null)&&this.l.u)for(c=r(a.variants),d=c.next();!d.done;d=c.next())for(d=d.value,d=r((d.video?d.video.drmInfos:[]).concat(d.audio?d.audio.drmInfos:[])),e=d.next();!e.done;e=
|
|
363
|
+
d.next())if(e=e.value,e.keySystem==b.keySystem)for(e=r(e.initData||[]),f=e.next();!f.done;f=e.next())f=f.value,Zd(this.l,f.initDataType,f.initData);Sj(this,a)};
|
|
364
|
+
function xj(a,b){var c,d,e,f,g;return H(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n;return H(function(q){if(1==q.g)return k?t(q,k.createSegmentIndex(),2):q["return"](null);m=k.segmentIndex[Symbol.iterator]().seek(l);if(!m)return q["return"](null);n=m.startTime;return q["return"](n)})},t(h,e(c,b),2);if(3!=h.g)return f=h.h,t(h,e(d,b),3);g=h.h;return null!=g&&null!=f?h["return"](Math.max(g,f)):null!=g?h["return"](g):null!=f?h["return"](f):h["return"](b)})}
|
|
365
|
+
function aj(a){var b=a.Dc();if(a.j&&a.J&&a.D){var c=a.H;c.j=b;dh(c);mj(a)}b=(new Map).set("buffering",b);a.dispatchEvent(Oi(Tj,b))}function nj(a){var b=a.g.playbackRate;0!=b&&(a.H&&a.H.set(b),b=Oi(Uj),a.dispatchEvent(b))}function mj(a){if(a.j&&a.J){var b=a.j.h;a.J.g==tg?ti(b,"buffering"):a.g.paused?ti(b,"paused"):a.g.ended?ti(b,"ended"):ti(b,"playing")}}
|
|
366
|
+
function wj(a){try{Sj(a,a.F)}catch(c){return Zi(a,c),!1}var b=a.F.variants.filter(function(c){return cg(c)});b=a.ba.create(b);a.A.setVariants(Array.from(b.values()));return!0}function Nj(a){var b;if(b=wj(a)?a.A.chooseVariant():null){if(b==a.i.h)return;xi(a.j.g,b,!0);Ch(a.i,b,!0,0);Pj(a)}pj(a)}function yj(a,b,c){a=Mb(a.v.preferredTextLanguage);b=Mb(b.language);c=Mb(c.language);return Jb(c,a)&&!Jb(b,c)}function pj(a){var b=Oi(Vj);Wj(a,b)}function Bj(a){var b=Oi(Xj);Wj(a,b)}
|
|
367
|
+
function Pj(a){var b=Oi(Yj);Wj(a,b)}function Oj(a){var b=Oi(Zj);Wj(a,b)}function zj(a){var b=Oi(ak);Wj(a,b)}function Aj(a){var b=(new Map).set("newStatus",a.v.abr.enabled);Wj(a,Oi(bk,b))}function Zi(a,b){if(a.u!=Ri){var c=Oi(ck,(new Map).set("detail",b));a.dispatchEvent(c);c.defaultPrevented&&(b.handled=!0)}}function dj(a,b,c){c=(new Map).set("detail",{schemeIdUri:c.schemeIdUri,value:c.value,startTime:c.startTime,endTime:c.endTime,id:c.id,eventElement:c.eventElement});a.dispatchEvent(Oi(b,c))}
|
|
368
|
+
function Yi(a){if(!a.g.error)return null;var b=a.g.error.code;if(1==b)return null;var c=a.g.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new N(2,3,3016,b,c,a.g.error.message)}
|
|
369
|
+
function jj(a,b){if(a.i){var c=Object.keys(b),d=1==c.length&&"00"==c[0],e=!1;if(c.length){c=r(a.F.variants);for(var f=c.next();!f.done;f=c.next()){f=f.value;var g=[];f.audio&&g.push(f.audio);f.video&&g.push(f.video);g=r(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;h=f.allowedByKeySystem;if(k.keyIds.size){f.allowedByKeySystem=!0;k=r(k.keyIds);for(var l=k.next();!l.done;l=k.next())l=l.value,l=b[d?"00":l],f.allowedByKeySystem=f.allowedByKeySystem&&!!l&&!dk.includes(l)}h!=f.allowedByKeySystem&&
|
|
370
|
+
(e=!0)}}}e&&wj(a);(d=a.i.h)&&!d.allowedByKeySystem&&Nj(a);e&&Bj(a)}}function kj(a,b,c){if(a.B&&a.B.onExpirationUpdated)a.B.onExpirationUpdated(b,c);b=Oi(ek);a.dispatchEvent(b)}function oj(a,b,c){0<b&&(a.W()||a.We(b));b=a.getDuration();c<b&&(a.W()||a.Ya(c))}
|
|
371
|
+
function Sj(a,b){var c=a.l?sd(a.l.X):{},d=Object.keys(c);d=d.length&&"00"==d[0];for(var e=!1,f=!1,g=new Set,h=new Set,k=r(b.variants),l=k.next();!l.done;l=k.next()){l=l.value;var m=[];l.audio&&m.push(l.audio);l.video&&m.push(l.video);m=r(m);for(var n=m.next();!n.done;n=m.next())if(n=n.value,n.keyIds.size){n=r(n.keyIds);for(var q=n.next();!q.done;q=n.next()){q=q.value;var u=c[d?"00":q];u?dk.includes(u)&&h.add(u):g.add(q)}}l.allowedByApplication?l.allowedByKeySystem&&(e=!0):f=!0}if(!e)throw c={hasAppRestrictions:f,
|
|
372
|
+
missingKeys:Array.from(g),restrictedKeyStatuses:Array.from(h)},new N(2,4,4012,c);}function Wj(a,b){H(function(c){if(1==c.g)return t(c,Promise.resolve(),2);a.u!=Ri&&a.dispatchEvent(b);x(c)})}function Rj(a){var b=new Set;a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(Mb(c.language)):b.add("und");return b}
|
|
373
|
+
function Qj(a){var b=new Map;a=r(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c="und";var e=[];d.language&&(c=Mb(d.language));"variant"==d.type?e=d.audioRoles:e=d.roles;e&&e.length||(e=[""]);b.has(c)||b.set(c,new Set);d=r(e);for(e=d.next();!e.done;e=d.next())e=e.value,b.get(c).add(e)}var f=[];b.forEach(function(g,h){for(var k=r(g),l=k.next();!l.done;l=k.next())f.push({language:h,role:l.value})});return f}function Ti(){return new N(2,7,7E3)}
|
|
374
|
+
function Ni(a,b,c,d,e,f){return d==a&&e.I==f.I&&e.uri==f.uri&&e.mimeType==f.mimeType?b:c}function Uh(){return{I:null,mimeType:null,startTime:null,ge:NaN,uri:null}}function Ui(a){return new Promise(function(b,c){a.Gb=function(){return c(Ti())};a.fd=function(){return b()};a.onError=function(d){return c(d)};a.hd=function(){return c(Ti())}})}L("shaka.Player",U);U.prototype.setVideoContainer=U.prototype.fe;U.prototype.getManifestParserFactory=U.prototype.Df;U.prototype.getManifest=U.prototype.Cf;
|
|
375
|
+
U.prototype.retryStreaming=U.prototype.Wd;U.prototype.setMaxHardwareResolution=U.prototype.$d;U.prototype.addTextTrack=U.prototype.addTextTrack;U.prototype.getStats=U.prototype.getStats;U.prototype.getBufferedInfo=U.prototype.Zc;U.prototype.getPresentationStartTimeAsDate=U.prototype.Be;U.prototype.getPlayheadTimeAsDate=U.prototype.Hf;U.prototype.setTextTrackVisibility=U.prototype.ee;U.prototype.isTextTrackVisible=U.prototype.Fb;U.prototype.selectVariantsByLabel=U.prototype.kg;
|
|
376
|
+
U.prototype.selectTextLanguage=U.prototype.od;U.prototype.selectAudioLanguage=U.prototype.nd;U.prototype.getTextLanguages=U.prototype.Nf;U.prototype.getAudioLanguages=U.prototype.nf;U.prototype.getTextLanguagesAndRoles=U.prototype.Of;U.prototype.getAudioLanguagesAndRoles=U.prototype.pf;U.prototype.selectVariantTrack=U.prototype.Xd;U.prototype.selectTextTrack=U.prototype.Se;U.prototype.getTextTracks=U.prototype.zb;U.prototype.getVariantTracks=U.prototype.Ab;U.prototype.cancelTrickPlay=U.prototype.qe;
|
|
377
|
+
U.prototype.trickPlay=U.prototype.le;U.prototype.getPlaybackRate=U.prototype.wc;U.prototype.isBuffering=U.prototype.Dc;U.prototype.getExpiration=U.prototype.uc;U.prototype.drmInfo=U.prototype.drmInfo;U.prototype.keySystem=U.prototype.keySystem;U.prototype.seekRange=U.prototype.Pa;U.prototype.isAudioOnly=U.prototype.Ee;U.prototype.isInProgress=U.prototype.Db;U.prototype.isLive=U.prototype.W;U.prototype.getAdManager=U.prototype.Yc;U.prototype.getAssetUri=U.prototype.Fd;
|
|
378
|
+
U.prototype.getNetworkingEngine=U.prototype.vc;U.prototype.getMediaElement=U.prototype.Ff;U.prototype.getLoadMode=U.prototype.yf;U.prototype.resetConfiguration=U.prototype.ig;U.prototype.getConfiguration=U.prototype.getConfiguration;U.prototype.configure=U.prototype.configure;U.prototype.load=U.prototype.load;U.prototype.unload=U.prototype.me;U.prototype.detach=U.prototype.detach;U.prototype.attach=U.prototype.qc;
|
|
379
|
+
U.probeSupport=function(){var a,b,c,d,e,f;return H(function(g){if(1==g.g)return t(g,oe(),2);a=g.h;var h={};if(zd()){for(var k in xg)h[k]=!0;for(var l in zg)h[l]=!0}k={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};l=r(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var m=l.next();!m.done;m=l.next())m=m.value,h[m]=zd()?!!xg[m]:Ad(m);for(var n in k)h[n]=zd()?!!zg[n]:Ad(k[n]);b=h;h={};n=r('video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="opus",audio/mp4; codecs="flac",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(","));
|
|
380
|
+
for(k=n.next();!k.done;k=n.next())k=k.value,h[k]=zd()?lf(k)?!0:MediaSource.isTypeSupported(k)||Ac(k):Ad(k),l=k.split(";")[0],h[l]=h[l]||h[k];c=h;d={manifest:b,media:c,drm:a};e=fk;for(f in e)d[f]=e[f]();return g["return"](d)})};U.isBrowserSupported=Si;U.setAdManagerFactory=function(a){Di=a};U.registerSupportPlugin=function(a,b){fk[a]=b};U.prototype.destroy=U.prototype.destroy;
|
|
381
|
+
var bk="abrstatuschanged",Vj="adaptation",Tj="buffering",lj="drmsessionupdate",Rh="emsg",ck="error",ek="expirationupdated",Xi="loaded",Vi="loading",gj="manifestparsed",Ij="metadata",Pi="onstatechange",Qi="onstateidle",Uj="ratechange",vj="streaming",Zj="textchanged",ak="texttrackvisibility",ej="timelineregionadded",Kj="timelineregionenter",Lj="timelineregionexit",Xj="trackschanged",$i="unloading",Yj="variantchanged",gk={zg:bk,Ag:Vj,Bg:Tj,Cg:lj,Eg:Rh,Error:ck,Fg:ek,Hg:"largegap",Ig:Xi,Jg:Vi,Kg:gj,Metadata:Ij,
|
|
382
|
+
Lg:Pi,Mg:Qi,Ng:Uj,Og:vj,Pg:Zj,Qg:ak,Rg:ej,Sg:Kj,Tg:Lj,Ug:Xj,Vg:$i,Wg:Yj},Ri=0,Ai=1,uj=2,Dj=3;U.LoadMode={DESTROYED:Ri,NOT_LOADED:Ai,MEDIA_SOURCE:uj,SRC_EQUALS:Dj};U.version="v3.0.15";var hk=["3","0"];zb=new function(a){this.g=a;this.i=Ab;this.h=Bb}(new xb(Number(hk[0]),Number(hk[1])));var dk=["output-restricted","internal-error"],fk={},Di=null;function ik(){this.h=[];this.j=this.i=this.g=0};function V(a,b){var c=this;this.i=a;this.g=b;this.j=!1;this.l=this.g.getVolume();this.h=new jd;this.h.m(this.g,google.ima.AdEvent.Type.PAUSED,function(){c.j=!0});this.h.m(this.g,google.ima.AdEvent.Type.RESUMED,function(){c.j=!1})}p=V.prototype;p.getDuration=function(){return this.i.getDuration()};p.getMinSuggestedDuration=function(){return this.i.getMinSuggestedDuration()};p.getRemainingTime=function(){return this.g.getRemainingTime()};p.isPaused=function(){return this.j};
|
|
382
383
|
p.isSkippable=function(){return 0<=this.i.getSkipTimeOffset()};p.getTimeUntilSkippable=function(){var a=this.i.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};p.canSkipNow=function(){return this.g.getAdSkippableState()};p.skip=function(){return this.g.skip()};p.pause=function(){return this.g.pause()};p.play=function(){return this.g.resume()};p.getVolume=function(){return this.g.getVolume()};p.setVolume=function(a){return this.g.setVolume(a)};p.isMuted=function(){return 0==this.g.getVolume()};
|
|
383
|
-
p.resize=function(a,b){this.g.resize(a,b,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};p.setMuted=function(a){a?(this.l=this.getVolume(),this.setVolume(0)):this.setVolume(this.l)};p.getSequenceLength=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getTotalAds()};p.getPositionInSequence=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getAdPosition()};p.release=function(){this.g=this.i=null};
|
|
384
|
+
p.resize=function(a,b){this.g.resize(a,b,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};p.setMuted=function(a){a?(this.l=this.getVolume(),this.setVolume(0)):this.setVolume(this.l)};p.getSequenceLength=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getTotalAds()};p.getPositionInSequence=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getAdPosition()};p.release=function(){this.g=this.i=null};L("shaka.ads.ClientSideAd",V);
|
|
384
385
|
V.prototype.release=V.prototype.release;V.prototype.getPositionInSequence=V.prototype.getPositionInSequence;V.prototype.getSequenceLength=V.prototype.getSequenceLength;V.prototype.setMuted=V.prototype.setMuted;V.prototype.resize=V.prototype.resize;V.prototype.isMuted=V.prototype.isMuted;V.prototype.setVolume=V.prototype.setVolume;V.prototype.getVolume=V.prototype.getVolume;V.prototype.play=V.prototype.play;V.prototype.pause=V.prototype.pause;V.prototype.skip=V.prototype.skip;
|
|
385
|
-
V.prototype.canSkipNow=V.prototype.canSkipNow;V.prototype.getTimeUntilSkippable=V.prototype.getTimeUntilSkippable;V.prototype.isSkippable=V.prototype.isSkippable;V.prototype.isPaused=V.prototype.isPaused;V.prototype.getRemainingTime=V.prototype.getRemainingTime;V.prototype.getMinSuggestedDuration=V.prototype.getMinSuggestedDuration;V.prototype.getDuration=V.prototype.getDuration;function
|
|
386
|
-
function(f){
|
|
387
|
-
function
|
|
388
|
-
a.g.offsetHeight,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in window&&(a.B=new ResizeObserver(function(){a.i.resize(a.g.offsetWidth,a.g.offsetHeight,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.B.observe(a.g)),a.i.start()}catch(f){
|
|
389
|
-
function
|
|
390
|
-
{
|
|
391
|
-
|
|
392
|
-
google.ima.AdEvent.Type.
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
function nk(a,b){a.j(new L("ad-stopped",{originalEvent:b}));a.u.removeAttribute("ad-active");a.g.play()};function rk(a,b){this.i=a;this.h=null;this.g=b}p=rk.prototype;p.getDuration=function(){return this.h?this.h.duration:-1};p.getMinSuggestedDuration=function(){return this.getDuration()};p.getRemainingTime=function(){return this.h?this.h.duration-this.h.currentTime:-1};p.isPaused=function(){return this.g.paused};p.isSkippable=function(){return this.i.isSkippable()};p.getTimeUntilSkippable=function(){var a=this.i.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};
|
|
386
|
+
V.prototype.canSkipNow=V.prototype.canSkipNow;V.prototype.getTimeUntilSkippable=V.prototype.getTimeUntilSkippable;V.prototype.isSkippable=V.prototype.isSkippable;V.prototype.isPaused=V.prototype.isPaused;V.prototype.getRemainingTime=V.prototype.getRemainingTime;V.prototype.getMinSuggestedDuration=V.prototype.getMinSuggestedDuration;V.prototype.getDuration=V.prototype.getDuration;function jk(a,b,c,d){var e=this;this.u=a;this.g=b;this.B=null;this.D=NaN;this.j=d;this.A=null;this.h=new jd;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.u,this.g);a.initialize();this.l=new google.ima.AdsLoader(a);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v3.0.15");this.i=null;this.h.Ga(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){kk(e,f)});this.h.m(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,
|
|
387
|
+
function(f){lk(e,f)});this.g.onended=function(){e.l.contentComplete()}}jk.prototype.stop=function(){this.i&&this.i.stop();this.u&&ei(this.u)};jk.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.i&&this.i.destroy();this.l.destroy()};function lk(a,b){b.getError();mk(a,null);a.j(new M("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
|
|
388
|
+
function kk(a,b){a.j(new M("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.D)));a.i=b.getAdsManager(a.g);a.j(new M("ima-ad-manager-loaded",(new Map).set("imaAdManager",a.i)));var c=a.i.getCuePoints();if(c.length){var d=[];c=r(c);for(var e=c.next();!e.done;e=c.next())d.push(new nk(e.value));a.j(new M("ad-cue-points-changed",(new Map).set("cuepoints",d)))}ok(a);try{a.i.init(a.g.offsetWidth,a.g.offsetHeight,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),
|
|
389
|
+
a.h.m(a.g,"loadeddata",function(){a.i.resize(a.g.offsetWidth,a.g.offsetHeight,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in window&&(a.B=new ResizeObserver(function(){a.i.resize(a.g.offsetWidth,a.g.offsetHeight,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.B.observe(a.g)),a.i.start()}catch(f){mk(a,null)}}
|
|
390
|
+
function ok(a){function b(c,d){var e=(new Map).set("originalEvent",c);a.j(new M(d,e))}a.h.m(a.i,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){lk(a,c)});a.h.m(a.i,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){pk(a,c)});a.h.m(a.i,google.ima.AdEvent.Type.STARTED,function(c){pk(a,c)});a.h.m(a.i,google.ima.AdEvent.Type.FIRST_QUARTILE,function(c){b(c,"ad-first-quartile")});a.h.m(a.i,google.ima.AdEvent.Type.MIDPOINT,function(c){b(c,"ad-midpoint")});a.h.m(a.i,google.ima.AdEvent.Type.THIRD_QUARTILE,
|
|
391
|
+
function(c){b(c,"ad-third-quartile")});a.h.m(a.i,google.ima.AdEvent.Type.COMPLETE,function(c){b(c,"ad-complete")});a.h.m(a.i,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(c){mk(a,c)});a.h.m(a.i,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){mk(a,c)});a.h.m(a.i,google.ima.AdEvent.Type.SKIPPED,function(c){b(c,"ad-skipped")});a.h.m(a.i,google.ima.AdEvent.Type.VOLUME_CHANGED,function(c){b(c,"ad-volume-changed")});a.h.m(a.i,google.ima.AdEvent.Type.VOLUME_MUTED,function(c){b(c,"ad-muted")});
|
|
392
|
+
a.h.m(a.i,google.ima.AdEvent.Type.PAUSED,function(c){a.A.j=!0;b(c,"ad-paused")});a.h.m(a.i,google.ima.AdEvent.Type.RESUMED,function(c){a.A.j=!1;b(c,"ad-resumed")});a.h.m(a.i,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(c){b(c,"ad-skip-state-changed")});a.h.m(a.i,google.ima.AdEvent.Type.CLICK,function(c){b(c,"ad-clicked")});a.h.m(a.i,google.ima.AdEvent.Type.AD_PROGRESS,function(c){b(c,"ad-progress")});a.h.m(a.i,google.ima.AdEvent.Type.AD_BUFFERING,function(c){b(c,"ad-buffering")});a.h.m(a.i,
|
|
393
|
+
google.ima.AdEvent.Type.IMPRESSION,function(c){b(c,"ad-impression")});a.h.m(a.i,google.ima.AdEvent.Type.DURATION_CHANGE,function(c){b(c,"ad-duration-changed")});a.h.m(a.i,google.ima.AdEvent.Type.USER_CLOSE,function(c){b(c,"ad-closed")});a.h.m(a.i,google.ima.AdEvent.Type.LOADED,function(c){b(c,"ad-loaded")});a.h.m(a.i,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){b(c,"all-ads-completed")});a.h.m(a.i,google.ima.AdEvent.Type.LINEAR_CHANGED,function(c){b(c,"ad-linear-changed")});a.h.m(a.i,google.ima.AdEvent.Type.AD_METADATA,
|
|
394
|
+
function(c){b(c,"ad-metadata")});a.h.m(a.i,google.ima.AdEvent.Type.LOG,function(c){b(c,"ad-recoverable-error")});a.h.m(a.i,google.ima.AdEvent.Type.AD_BREAK_READY,function(c){b(c,"ad-break-ready")});a.h.m(a.i,google.ima.AdEvent.Type.INTERACTION,function(c){b(c,"ad-interaction")})}function pk(a,b){var c=b.getAd();a.A=new V(c,a.i);c=(new Map).set("ad",a.A).set("sdkAdObject",c).set("originalEvent",b);a.j(new M("ad-started",c));a.u.setAttribute("ad-active","true");a.g.pause()}
|
|
395
|
+
function mk(a,b){a.j(new M("ad-stopped",(new Map).set("originalEvent",b)));a.u.removeAttribute("ad-active");a.g.play()};function qk(a,b){this.i=a;this.h=null;this.g=b}p=qk.prototype;p.getDuration=function(){return this.h?this.h.duration:-1};p.getMinSuggestedDuration=function(){return this.getDuration()};p.getRemainingTime=function(){return this.h?this.h.duration-this.h.currentTime:-1};p.isPaused=function(){return this.g.paused};p.isSkippable=function(){return this.i.isSkippable()};p.getTimeUntilSkippable=function(){var a=this.i.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};
|
|
396
396
|
p.canSkipNow=function(){return 0==this.getTimeUntilSkippable()};p.skip=function(){this.g.currentTime+=this.getRemainingTime()};p.pause=function(){return this.g.pause()};p.play=function(){return this.g.play()};p.getVolume=function(){return this.g.volume};p.setVolume=function(a){this.g.volume=a};p.isMuted=function(){return this.g.muted};p.resize=function(){};p.setMuted=function(a){this.g.muted=a};p.getSequenceLength=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getTotalAds()};
|
|
397
|
-
p.getPositionInSequence=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getAdPosition()};p.release=function(){this.g=this.h=this.i=null};
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
e.l.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.l=null});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.u=new
|
|
401
|
-
e.A&&e.A>f&&(e.g.currentTime=e.A,e.A=null)});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(f){e.D=f.getStreamData().adProgressData;e.u&&(e.u.h=e.D)});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){e.j(new
|
|
402
|
-
this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.j(new
|
|
403
|
-
|
|
404
|
-
function
|
|
405
|
-
p.release=function(){this.h&&(this.h.release(),this.h=null);this.g&&(this.g.release(),this.g=null)};p.onAssetUnload=function(){this.h&&this.h.stop();this.g&&this.g.stop();this.dispatchEvent(new
|
|
406
|
-
p.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new
|
|
407
|
-
p.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new
|
|
408
|
-
(c.J=!0),c.l=new
|
|
409
|
-
p.getStats=function(){var a=this.j;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};p.onDashTimedMetadata=function(a){if(this.g&&"urn:google:dai:2018"==a.schemeIdUri){var b=a.schemeIdUri,c=a.eventElement?a.eventElement.getAttribute("messageData"):null;this.g.i.processMetadata(b,c,a.startTime)}};p.onHlsTimedMetadata=function(a,b){this.g&&this.g.i.processMetadata("ID3",a.data,b)};p.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};
|
|
397
|
+
p.getPositionInSequence=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getAdPosition()};p.release=function(){this.g=this.h=this.i=null};L("shaka.ads.ServerSideAd",qk);qk.prototype.release=qk.prototype.release;qk.prototype.getPositionInSequence=qk.prototype.getPositionInSequence;qk.prototype.getSequenceLength=qk.prototype.getSequenceLength;qk.prototype.setMuted=qk.prototype.setMuted;qk.prototype.resize=qk.prototype.resize;qk.prototype.isMuted=qk.prototype.isMuted;
|
|
398
|
+
qk.prototype.setVolume=qk.prototype.setVolume;qk.prototype.getVolume=qk.prototype.getVolume;qk.prototype.play=qk.prototype.play;qk.prototype.pause=qk.prototype.pause;qk.prototype.skip=qk.prototype.skip;qk.prototype.canSkipNow=qk.prototype.canSkipNow;qk.prototype.getTimeUntilSkippable=qk.prototype.getTimeUntilSkippable;qk.prototype.isSkippable=qk.prototype.isSkippable;qk.prototype.isPaused=qk.prototype.isPaused;qk.prototype.getRemainingTime=qk.prototype.getRemainingTime;
|
|
399
|
+
qk.prototype.getMinSuggestedDuration=qk.prototype.getMinSuggestedDuration;qk.prototype.getDuration=qk.prototype.getDuration;function rk(a,b,c,d){var e=this;this.B=a;this.g=b;this.l=null;this.K=NaN;this.j=d;this.J=!1;this.D=this.u=this.A=null;this.H="";this.h=new jd;a=new google.ima.dai.api.UiSettings;a.setLocale(c);this.i=new google.ima.dai.api.StreamManager(this.g,this.B,a);this.j(new M("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.i)));this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){sk(e,f)});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.H.length?e.l.resolve(e.H):
|
|
400
|
+
e.l.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.l=null});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.u=new qk(f,e.g);e.D&&(e.u.h=e.D);e.j(new M("ad-started",(new Map).set("ad",e.u)));e.B.setAttribute("ad-active","true")});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){e.B.removeAttribute("ad-active");
|
|
401
|
+
var f=e.g.currentTime;e.A&&e.A>f&&(e.g.currentTime=e.A,e.A=null)});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(f){e.D=f.getStreamData().adProgressData;e.u&&(e.u.h=e.D)});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){e.j(new M("ad-first-quartile"))});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){e.j(new M("ad-midpoint"))});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){e.j(new M("ad-third-quartile"))});
|
|
402
|
+
this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.j(new M("ad-complete"));e.j(new M("ad-stopped"));e.B.removeAttribute("ad-active");e.u=null});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){e.j(new M("ad-skipped"));e.j(new M("ad-stopped"))});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(f){var g=f.getStreamData();f=[];g=r(g.cuepoints);for(var h=g.next();!h.done;h=g.next())h=h.value,f.push(new nk(h.start,h.end));e.j(new M("ad-cue-points-changed",
|
|
403
|
+
(new Map).set("cuepoints",f)))})}rk.prototype.stop=function(){this.H="";this.A=null};rk.prototype.release=function(){this.stop();this.h&&this.h.release()};rk.prototype.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.i.onTimedMetadata(b)}};
|
|
404
|
+
function sk(a,b){a.j(new M("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.K)));var c=b.getStreamData().url;a.l.resolve(c);a.l=null;a.J||a.h.m(a.g,"seeked",function(){var d=a.g.currentTime;if(0!=d){a.i.streamTimeForContentTime(d);var e=a.i.previousCuePointForStreamTime(d);e&&!e.played&&(a.A=d,a.g.currentTime=e.start)}})};function W(){$a.call(this);this.g=this.h=null;this.j=new ik;this.i=navigator.language}pa(W,$a);p=W.prototype;p.setLocale=function(a){this.i=a};p.initClientSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new N(2,10,1E4);this.h&&this.h.release();this.h=new jk(a,b,this.i,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.j.h.push(d.loadTime);break;case "ad-started":c.j.g++;break;case "ad-complete":c.j.i++;break;case "ad-skipped":c.j.j++}c.dispatchEvent(d)})};
|
|
405
|
+
p.release=function(){this.h&&(this.h.release(),this.h=null);this.g&&(this.g.release(),this.g=null)};p.onAssetUnload=function(){this.h&&this.h.stop();this.g&&this.g.stop();this.dispatchEvent(new M("ad-stopped"));this.j=new ik};p.requestClientSideAds=function(a){if(!this.h)throw new N(1,10,10001);var b=this.h;b.D=Date.now()/1E3;b.l.requestAds(a)};
|
|
406
|
+
p.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new N(2,10,10002);this.g&&this.g.release();this.g=new rk(a,b,this.i,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.j.h.push(d.loadTime);break;case "ad-started":c.j.g++;break;case "ad-complete":c.j.i++;break;case "ad-skipped":c.j.j++}c.dispatchEvent(d)})};
|
|
407
|
+
p.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new N(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Oa('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v3.0.15";c=this.g;var d=b;c.l?c=Promise.reject(new N(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
|
|
408
|
+
(c.J=!0),c.l=new ic,c.i.requestStream(a),c.H=d||"",c.K=Date.now()/1E3,c=c.l);return c};p.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new N(1,10,10003);(a.mpt||a.mpv)&&Oa('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v3.0.15";this.g.i.replaceAdTagParameters(a)};
|
|
409
|
+
p.getStats=function(){var a=this.j;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};p.onDashTimedMetadata=function(a){if(this.g&&"urn:google:dai:2018"==a.schemeIdUri){var b=a.schemeIdUri,c=a.eventElement?a.eventElement.getAttribute("messageData"):null;this.g.i.processMetadata(b,c,a.startTime)}};p.onHlsTimedMetadata=function(a,b){this.g&&this.g.i.processMetadata("ID3",a.data,b)};p.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};L("shaka.ads.AdManager",W);
|
|
410
410
|
W.prototype.onCueMetadataChange=W.prototype.onCueMetadataChange;W.prototype.onHlsTimedMetadata=W.prototype.onHlsTimedMetadata;W.prototype.onDashTimedMetadata=W.prototype.onDashTimedMetadata;W.prototype.getStats=W.prototype.getStats;W.prototype.replaceServerSideAdTagParameters=W.prototype.replaceServerSideAdTagParameters;W.prototype.requestServerSideStream=W.prototype.requestServerSideStream;W.prototype.initServerSide=W.prototype.initServerSide;W.prototype.requestClientSideAds=W.prototype.requestClientSideAds;
|
|
411
|
-
W.prototype.onAssetUnload=W.prototype.onAssetUnload;W.prototype.release=W.prototype.release;W.prototype.initClientSide=W.prototype.initClientSide;W.prototype.setLocale=W.prototype.setLocale;function
|
|
411
|
+
W.prototype.onAssetUnload=W.prototype.onAssetUnload;W.prototype.release=W.prototype.release;W.prototype.initClientSide=W.prototype.initClientSide;W.prototype.setLocale=W.prototype.setLocale;function nk(a,b){this.start=a;this.end=void 0===b?null:b}W.ADS_LOADED="ads-loaded";W.AD_STARTED="ad-started";W.AD_FIRST_QUARTILE="ad-first-quartile";W.AD_MIDPOINT="ad-midpoint";W.AD_THIRD_QUARTILE="ad-third-quartile";W.AD_COMPLETE="ad-complete";W.AD_STOPPED="ad-stopped";W.AD_SKIPPED="ad-skipped";
|
|
412
412
|
W.AD_VOLUME_CHANGED="ad-volume-changed";W.AD_MUTED="ad-muted";W.AD_PAUSED="ad-paused";W.AD_RESUMED="ad-resumed";W.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";W.CUEPOINTS_CHANGED="ad-cue-points-changed";W.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";W.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";W.AD_CLICKED="ad-clicked";W.AD_PROGRESS="ad-progress";W.AD_BUFFERING="ad-buffering";W.AD_IMPRESSION="ad-impression";W.AD_DURATION_CHANGED="ad-duration-changed";W.AD_CLOSED="ad-closed";
|
|
413
|
-
W.AD_LOADED="ad-loaded";W.ALL_ADS_COMPLETED="all-ads-completed";W.AD_LINEAR_CHANGED="ad-linear-changed";W.AD_METADATA="ad-metadata";W.AD_RECOVERABLE_ERROR="ad-recoverable-error";W.AD_BREAK_READY="ad-break-ready";W.AD_INTERACTION="ad-interaction";
|
|
414
|
-
TimeRanges)for(f={__type__:"TimeRanges",length:c.length,start:[],end:[]},d=r(
|
|
415
|
-
function
|
|
416
|
-
function
|
|
417
|
-
var
|
|
418
|
-
isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10},
|
|
419
|
-
"unload"];function
|
|
420
|
-
l.
|
|
421
|
-
p.init=function(){if(this.N.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.u=!0;this.j.
|
|
422
|
-
a):
|
|
423
|
-
p.cast=function(a){var b=this;return
|
|
424
|
-
p.get=function(a,b){var c=this;if("video"==a){if(
|
|
425
|
-
[a,b].concat(ia(e)))};if(
|
|
426
|
-
function
|
|
427
|
-
function
|
|
428
|
-
function
|
|
429
|
-
p.destroy=function(a){a&&this.g.
|
|
430
|
-
p.cast=function(){var a=this,b;return
|
|
431
|
-
p.
|
|
432
|
-
function
|
|
433
|
-
|
|
434
|
-
function
|
|
435
|
-
function
|
|
436
|
-
function
|
|
437
|
-
function
|
|
438
|
-
h.next();!k.done;k=h.next()){var l=k.value;k=l[1];l=a.g.get("player",l[0])();a.i[k](l)}a.j.autoplay=f;e&&a.j.play()}},function(h){h=new
|
|
439
|
-
function
|
|
440
|
-
function
|
|
441
|
-
if(a.g.
|
|
442
|
-
|
|
443
|
-
p.
|
|
444
|
-
p.destroy=function(){var a=this,b,c;return
|
|
445
|
-
function
|
|
446
|
-
e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return
|
|
447
|
-
!1;
|
|
448
|
-
function
|
|
449
|
-
function
|
|
450
|
-
b.manifest&&(a.g.play(),
|
|
451
|
-
function
|
|
452
|
-
function
|
|
453
|
-
function
|
|
454
|
-
c.methodName;"player"==d&&"load"==e&&(a.u=0,a.H=!1);var g=c.id,h=b.senderId;f=a.P[d];c=f[e].apply(f,c.args);"player"==d&&"load"==e&&(c=c.then(function(){a.D=!0}));c.then(function(){return
|
|
455
|
-
function
|
|
456
|
-
null!=e&&(a.g.muted=e);f==a.g.volume&&g==a.g.muted||
|
|
457
|
-
function
|
|
458
|
-
|
|
459
|
-
function
|
|
460
|
-
function
|
|
461
|
-
function
|
|
462
|
-
function
|
|
463
|
-
function
|
|
464
|
-
for(var h=f.next();!h.done;h=f.next())h.value.keyId=g}return{
|
|
465
|
-
function
|
|
466
|
-
function
|
|
467
|
-
function
|
|
468
|
-
null;g=
|
|
469
|
-
function
|
|
470
|
-
var
|
|
471
|
-
"":""}).set("com.microsoft.playready",function(a){a=
|
|
413
|
+
W.AD_LOADED="ad-loaded";W.ALL_ADS_COMPLETED="all-ads-completed";W.AD_LINEAR_CHANGED="ad-linear-changed";W.AD_METADATA="ad-metadata";W.AD_RECOVERABLE_ERROR="ad-recoverable-error";W.AD_BREAK_READY="ad-break-ready";W.AD_INTERACTION="ad-interaction";Di=function(){return new W};function tk(a){return JSON.stringify(a,function(b,c){if("function"!=typeof c){if(c instanceof Event||c instanceof M){var d={};for(f in c){var e=c[f];e&&"object"==typeof e?"detail"==f&&(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);e=r(Object.getOwnPropertyNames(c));for(d=e.next();!d.done;d=e.next())f.add(d.value);e={};f=r(f);for(d=f.next();!d.done;d=f.next())d=d.value,e[d]=c[d];f={__type__:"Error",contents:e}}else if(c instanceof
|
|
414
|
+
TimeRanges)for(f={__type__:"TimeRanges",length:c.length,start:[],end:[]},d=r(Qe(c)),e=d.next();!e.done;e=d.next()){e=e.value;var g=e.end;f.start.push(e.start);f.end.push(g)}else f=c instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(c)}:"number"==typeof c?isNaN(c)?"NaN":isFinite(c)?c:0>c?"-Infinity":"Infinity":c;return f}})}
|
|
415
|
+
function uk(a){return JSON.parse(a,function(b,c){if("NaN"==c)var d=NaN;else if("-Infinity"==c)d=-Infinity;else if("Infinity"==c)d=Infinity;else if(c&&"object"==typeof c&&"TimeRanges"==c.__type__)d=vk(c);else if(c&&"object"==typeof c&&"Uint8Array"==c.__type__)d=new Uint8Array(c.entries);else if(c&&"object"==typeof c&&"Error"==c.__type__){d=c.contents;var e=Error(d.message),f;for(f in d)e[f]=d[f];d=e}else d=c;return d})}
|
|
416
|
+
function vk(a){return{length:a.length,start:function(b){return a.start[b]},end:function(b){return a.end[b]}}}
|
|
417
|
+
var wk="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),xk="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),yk=["loop","playbackRate"],zk=["pause","play"],Ak={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferedInfo:2,getConfiguration:2,getExpiration:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getTextTracks:2,getStats:5,getVariantTracks:2,isAudioOnly:10,
|
|
418
|
+
isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10},Bk={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},Ck=[["getConfiguration","configure"]],Dk=[["isTextTrackVisible","setTextTrackVisibility"]],Ek="addTextTrack cancelTrickPlay configure resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay".split(" "),Fk=["attach","detach","load",
|
|
419
|
+
"unload"];function Gk(a,b,c,d,e,f){var g=this;this.N=a;this.j=new O(b);this.aa=c;this.D=!1;this.B=d;this.K=e;this.S=f;this.h=this.u=!1;this.X="";this.A=null;this.H=function(){return Hk(g)};this.J=function(h,k){var l=uk(k);switch(l.type){case "event":var m=l.targetName;l=La(l.event);g.B(m,l);break;case "update":m=l.update;for(var n in m){l=g.g[n]||{};for(var q in m[n])l[q]=m[n][q]}g.D&&(g.aa(),g.D=!1);break;case "asyncComplete":if(n=l.id,l=l.error,q=g.i[n],delete g.i[n],q)if(l){n=new N(l.severity,l.category,
|
|
420
|
+
l.code);for(m in l)n[m]=l[m];q.reject(n)}else q.resolve()}};this.g={video:{},player:{}};this.P=0;this.i={};this.l=null;Ik.add(this)}p=Gk.prototype;p.destroy=function(){Ik["delete"](this);Jk(this);Kk&&Lk(this);this.j&&(this.j.stop(),this.j=null);this.K=this.B=null;this.h=this.u=!1;this.J=this.H=this.l=this.i=this.g=this.A=null;return Promise.resolve()};p.na=function(){return this.h};p.ld=function(){return this.X};
|
|
421
|
+
p.init=function(){if(this.N.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.u=!0;this.j.Ba();var a=new chrome.cast.SessionRequest(this.N);a=new chrome.cast.ApiConfig(a,function(b){for(var c=r(Ik),d=c.next();!d.done;d=c.next())Mk(d.value,b)},function(b){for(var c=r(Ik),d=c.next();!d.done;d=c.next())d=d.value,Nk="available"==b,d.j.Ba()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});Nk&&this.j.V(Ok);(a=Kk)&&a.status!=chrome.cast.SessionStatus.STOPPED?Mk(this,
|
|
422
|
+
a):Kk=null}else window.__onGCastApiAvailable||(window.__onGCastApiAvailable=Pk),window.__onGCastApiAvailable!=Pk&&Oa("A global Cast SDK hook is already installed! Shaka Player will be unable to receive a notification when the Cast SDK is ready.")};p.Yd=function(a){this.A=a;this.h&&Qk(this,{type:"appData",appData:this.A})};
|
|
423
|
+
p.cast=function(a){var b=this;return H(function(c){if(!b.u)throw new N(1,8,8E3);if(!Nk)throw new N(1,8,8001);if(b.h)throw new N(1,8,8002);b.l=new ic;chrome.cast.requestSession(function(d){return Rk(b,a,d)},function(d){return Sk(b,d)});return t(c,b.l,0)})};function Tk(a){if(a.h){var b=a.S();chrome.cast.requestSession(function(c){return Rk(a,b,c)},function(c){return Sk(a,c)})}}p.Vb=function(){if(this.h){Jk(this);if(Kk){Lk(this);try{Kk.stop(function(){},function(){})}catch(a){}Kk=null}Hk(this)}};
|
|
424
|
+
p.get=function(a,b){var c=this;if("video"==a){if(zk.includes(b))return function(d){for(var e=[],f=0;f<arguments.length;++f)e[f]=arguments[f];return c.Pe.apply(c,[a,b].concat(ia(e)))}}else if("player"==a){if(Bk[b]&&!this.get("player","isLive")())return function(){};if(Ek.includes(b))return function(d){for(var e=[],f=0;f<arguments.length;++f)e[f]=arguments[f];return c.Pe.apply(c,[a,b].concat(ia(e)))};if(Fk.includes(b))return function(d){for(var e=[],f=0;f<arguments.length;++f)e[f]=arguments[f];return c.fg.apply(c,
|
|
425
|
+
[a,b].concat(ia(e)))};if(Ak[b])return function(){return c.g[a][b]}}return this.g[a][b]};p.set=function(a,b,c){this.g[a][b]=c;Qk(this,{type:"set",targetName:a,property:b,value:c})};function Rk(a,b,c){Kk=c;c.addUpdateListener(a.H);c.addMessageListener("urn:x-cast:com.google.shaka.v2",a.J);Hk(a);Qk(a,{type:"init",initState:b,appData:a.A});a.l.resolve()}
|
|
426
|
+
function Sk(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 N(2,8,c,b))}p.Pe=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];Qk(this,{type:"call",targetName:a,methodName:b,args:d})};p.fg=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];e=new ic;var f=this.P.toString();this.P++;this.i[f]=e;try{Qk(this,{type:"asyncCall",targetName:a,methodName:b,args:d,id:f})}catch(g){e.reject(g)}return e};
|
|
427
|
+
function Mk(a,b){var c=a.S();a.l=new ic;a.D=!0;Rk(a,c,b)}function Lk(a){var b=Kk;b.removeUpdateListener(a.H);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.J)}function Hk(a){var b=Kk?"connected"==Kk.status:!1;if(a.h&&!b){a.K();for(var c in a.g)a.g[c]={};Jk(a)}a.h=b;a.X=b?Kk.receiver.friendlyName:"";a.j.Ba()}function Jk(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new N(1,7,7E3))}}
|
|
428
|
+
function Qk(a,b){var c=tk(b),d=Kk;try{d.sendMessage("urn:x-cast:com.google.shaka.v2",c,function(){},Ra)}catch(e){throw c=new N(2,8,8005,e),d=new M("error",(new Map).set("detail",c)),a.B("player",d),a.Vb(),c;}}var Ok=.02,Nk=!1,Kk=null,Ik=new Set;function Pk(a){if(a){a=r(Ik);for(var b=a.next();!b.done;b=a.next())b.value.init()}};function Uk(a,b,c){$a.call(this);var d=this;this.j=a;this.i=b;this.h=this.A=this.l=this.B=this.u=null;this.H=c;this.D=new Map;this.g=new Gk(c,function(){return Vk(d)},function(){return Wk(d)},function(e,f){return Xk(d,e,f)},function(){return Yk(d)},function(){return Zk(d)});$k(this)}pa(Uk,$a);p=Uk.prototype;
|
|
429
|
+
p.destroy=function(a){a&&this.g.Vb();this.h&&(this.h.release(),this.h=null);a=[];this.i&&(a.push(this.i.destroy()),this.i=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.B=this.u=this.j=null;return Promise.all(a)};p.zc=function(){return this.u};p.Yb=function(){return this.B};p.pe=function(){return this.g.u&&Nk};p.na=function(){return this.g.na()};p.ld=function(){return this.g.ld()};
|
|
430
|
+
p.cast=function(){var a=this,b;return H(function(c){return 1==c.g?(b=Zk(a),t(c,a.g.cast(b),2)):a.i?t(c,a.i.me(),0):c["return"]()})};p.Yd=function(a){this.g.Yd(a)};p.Ye=function(){Tk(this.g)};p.Vb=function(){this.g.Vb()};
|
|
431
|
+
p.ue=function(a){var b=this;return H(function(c){if(1==c.g){if(a==b.H)return c["return"]();b.H=a;b.g.Vb();return t(c,b.g.destroy(),2)}b.g=null;b.g=new Gk(a,function(){return Vk(b)},function(){return Wk(b)},function(d,e){return Xk(b,d,e)},function(){return Yk(b)},function(){return Zk(b)});b.g.init();x(c)})};
|
|
432
|
+
function $k(a){a.g.init();a.h=new jd;for(var b=r(wk),c=b.next();!c.done;c=b.next())a.h.m(a.j,c.value,function(f){a.g.na()||(f=La(f),a.l.dispatchEvent(f))});for(var d in gk)a.h.m(a.i,gk[d],function(f){a.g.na()||a.A.dispatchEvent(f)});a.u={};b={};for(var e in a.j)b.hc=e,Object.defineProperty(a.u,b.hc,{configurable:!1,enumerable:!0,get:function(f){return function(){return al(a,f.hc)}}(b),set:function(f){return function(g){var h=f.hc;a.g.na()?a.g.set("video",h,g):a.j[h]=g}}(b)}),b={hc:b.hc};a.B={};bl(a,
|
|
433
|
+
function(f){Object.defineProperty(a.B,f,{configurable:!1,enumerable:!0,get:function(){return cl(a,f)}})});dl(a);a.l=new $a;a.l.Sc=a.u;a.A=new $a;a.A.Sc=a.B}function dl(a){var b=new Map;bl(a,function(c,d){if(b.has(d)){var e=b.get(d);c.length<e.length?a.D.set(c,e):a.D.set(e,c)}else b.set(d,c)})}
|
|
434
|
+
function bl(a,b){function c(l){return"constructor"==l||"function"!=typeof d[l]?!1:!e.has(l)}var d=a.i,e=new Set;for(f in d)c(f)&&(e.add(f),b(f,d[f]));var f=Object.getPrototypeOf(d);for(var g=Object.getPrototypeOf({});f&&f!=g;){for(var h=r(Object.getOwnPropertyNames(f)),k=h.next();!k.done;k=h.next())k=k.value,c(k)&&(e.add(k),b(k,d[k]));f=Object.getPrototypeOf(f)}}
|
|
435
|
+
function Zk(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.i.Fd(),startTime:null};a.j.pause();for(var c=r(yk),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=r(Ck);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}c=r(Dk);for(d=c.next();!d.done;d=c.next())e=d.value,d=e[1],e=a.i[e[0]](),b.playerAfterLoad[d]=e;return b}function Vk(a){var b=new M("caststatuschanged");a.dispatchEvent(b)}
|
|
436
|
+
function Wk(a){var b=new M(a.u.paused?"pause":"play");a.l.dispatchEvent(b)}
|
|
437
|
+
function Yk(a){for(var b=r(Ck),c=b.next();!c.done;c=b.next()){var d=c.value;c=d[1];d=a.g.get("player",d[0])();a.i[c](d)}var e=a.g.get("player","getAssetUri")();c=a.g.get("video","ended");b=Promise.resolve();var f=a.j.autoplay;d=null;c||(d=a.g.get("video","currentTime"));e&&(a.j.autoplay=!1,b=a.i.load(e,d));var g={};c=r(yk);for(d=c.next();!d.done;d=c.next())d=d.value,g[d]=a.g.get("video",d);b.then(function(){if(a.j){for(var h=r(yk),k=h.next();!k.done;k=h.next())k=k.value,a.j[k]=g[k];h=r(Dk);for(k=
|
|
438
|
+
h.next();!k.done;k=h.next()){var l=k.value;k=l[1];l=a.g.get("player",l[0])();a.i[k](l)}a.j.autoplay=f;e&&a.j.play()}},function(h){h=(new Map).set("detail",h);h=new M(ck,h);a.i.dispatchEvent(h)})}
|
|
439
|
+
function al(a,b){if("addEventListener"==b)return function(d,e,f){return a.l.addEventListener(d,e,f)};if("removeEventListener"==b)return function(d,e,f){return a.l.removeEventListener(d,e,f)};if(a.g.na()&&0==Object.keys(a.g.g.video).length){var c=a.j[b];if("function"!=typeof c)return c}return a.g.na()?a.g.get("video",b):(c=a.j[b],"function"==typeof c&&(c=c.bind(a.j)),c)}
|
|
440
|
+
function cl(a,b){a.D.has(b)&&(b=a.D.get(b));if("addEventListener"==b)return function(c,d,e){return a.A.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.A.removeEventListener(c,d,e)};if("getMediaElement"==b)return function(){return a.u};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.i.vc()};if("getAdManager"==b)return function(){return a.i.Yc()};if("setVideoContainer"==b)return function(c){return a.i.fe(c)};
|
|
441
|
+
if(a.g.na()){if("getManifest"==b||"drmInfo"==b)return function(){Oa(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Oa(b+"() does not work while casting!");return Promise.resolve()}}return a.g.na()&&0==Object.keys(a.g.g.video).length&&Ak[b]||!a.g.na()?a.i[b].bind(a.i):a.g.get("player",b)}function Xk(a,b,c){a.g.na()&&("video"==b?a.l.dispatchEvent(c):"player"==b&&a.A.dispatchEvent(c))}L("shaka.cast.CastProxy",Uk);Uk.prototype.changeReceiverId=Uk.prototype.ue;
|
|
442
|
+
Uk.prototype.forceDisconnect=Uk.prototype.Vb;Uk.prototype.suggestDisconnect=Uk.prototype.Ye;Uk.prototype.setAppData=Uk.prototype.Yd;Uk.prototype.cast=Uk.prototype.cast;Uk.prototype.receiverName=Uk.prototype.ld;Uk.prototype.isCasting=Uk.prototype.na;Uk.prototype.canCast=Uk.prototype.pe;Uk.prototype.getPlayer=Uk.prototype.Yb;Uk.prototype.getVideo=Uk.prototype.zc;Uk.prototype.destroy=Uk.prototype.destroy;function el(a,b,c,d){$a.call(this);var e=this;this.g=a;this.i=b;this.h=new jd;this.P={video:a,player:b};this.J=c||function(){};this.S=d||function(f){return f};this.j=null;this.K=!1;this.A=!0;this.u=0;this.H=!1;this.D=!0;this.B=this.l=null;this.N=new O(function(){fl(e)});gl(this)}pa(el,$a);p=el.prototype;p.isConnected=function(){return this.K};p.Sf=function(){return this.A};p.ng=function(a){this.j=a};p.lf=function(){this.j=null};
|
|
443
|
+
p.og=function(a){this.j||(this.j={metadataType:cast.receiver.media.MetadataType.GENERIC});this.j.title=a};p.mg=function(a){this.j||(this.j={metadataType:cast.receiver.media.MetadataType.GENERIC});this.j.images=[{url:a}]};p.lg=function(a){this.j||(this.j={});this.j.artist=a;this.j.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
|
|
444
|
+
p.destroy=function(){var a=this,b,c;return H(function(d){if(1==d.g)return a.h&&(a.h.release(),a.h=null),b=[],a.i&&(b.push(a.i.destroy()),a.i=null),a.N&&(a.N.stop(),a.N=null),a.g=null,a.P=null,a.J=null,a.K=!1,a.A=!0,a.l=null,a.B=null,t(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();x(d)})};
|
|
445
|
+
function gl(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return hl(a)};b.onSenderDisconnected=function(){return hl(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&il(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);il(a,{type:"event",targetName:"video",event:{type:"volumechange"}},a.l)};a.B=b.getCastMessageBus("urn:x-cast:com.google.cast.media");a.B.onMessage=function(e){return jl(a,
|
|
446
|
+
e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return kl(a,e)};b.start();b=r(wk);for(var c=b.next();!c.done;c=b.next())a.h.m(a.g,c.value,function(e){return ll(a,"video",e)});for(var d in gk)a.h.m(a.i,gk[d],function(e){return ll(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.i.$d(3840,2160):a.i.$d(1920,1080);a.h.m(a.g,"loadeddata",function(){a.H=!0});a.h.m(a.i,"loading",function(){a.A=
|
|
447
|
+
!1;ml(a)});a.h.m(a.g,"playing",function(){a.A=!1;ml(a)});a.h.m(a.g,"pause",function(){ml(a)});a.h.m(a.i,"unloading",function(){a.A=!0;ml(a)});a.h.m(a.g,"ended",function(){(new O(function(){a.g&&a.g.ended&&(a.A=!0,ml(a))})).V(nl)})}function hl(a){a.u=0;a.D=!0;a.K=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;ml(a)}
|
|
448
|
+
function ml(a){var b;H(function(c){if(1==c.g)return t(c,Promise.resolve(),2);if(!a.i)return c["return"]();b=new M("caststatuschanged");a.dispatchEvent(b);ol(a)||pl(a);x(c)})}
|
|
449
|
+
function ql(a,b,c){var d,e,f,g,h,k,l,m,n,q,u;H(function(v){switch(v.g){case 1:for(d in b.player)e=b.player[d],a.i[d](e);a.J(c);f=a.g.autoplay;return b.manifest?(a.g.autoplay=!1,y(v,5),t(v,a.i.load(b.manifest,b.startTime),7)):t(v,Promise.resolve(),3);case 7:ua(v,3);break;case 5:return g=C(v),h=ck,k=(new Map).set("detail",g),l=new M(h,k),a.i&&a.i.dispatchEvent(l),v["return"]();case 3:if(!a.i)return v["return"]();for(m in b.video)n=b.video[m],a.g[m]=n;for(q in b.playerAfterLoad)u=b.playerAfterLoad[q],
|
|
450
|
+
a.i[q](u);a.g.autoplay=f;b.manifest&&(a.g.play(),pl(a));x(v)}})}function ll(a,b,c){a.i&&(fl(a),il(a,{type:"event",targetName:b,event:c},a.l))}
|
|
451
|
+
function fl(a){a.N.V(rl);for(var b={video:{},player:{}},c=r(xk),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.g[d];if(a.i.W())for(var e in Bk)0==a.u%Bk[e]&&(b.player[e]=a.i[e]());for(var f in Ak)0==a.u%Ak[f]&&(b.player[f]=a.i[f]());if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;a.H&&(a.u+=1);il(a,{type:"update",update:b},a.l);ol(a)}function ol(a){return a.D&&(a.g.duration||a.i.W())?(sl(a),a.D=!1,!0):!1}
|
|
452
|
+
function sl(a,b){var c={contentId:a.i.Fd(),streamType:a.i.W()?"LIVE":"BUFFERED",contentType:""};a.i.W()||(c.duration=a.g.duration);a.j&&(c.metadata=a.j);pl(a,void 0===b?0:b,c)}
|
|
453
|
+
function kl(a,b){var c=uk(b.data);switch(c.type){case "init":a.u=0;a.H=!1;a.D=!0;ql(a,c.initState,c.appData);fl(a);break;case "appData":a.J(c.appData);break;case "set":var d=c.targetName,e=c.property;c=c.value;if("video"==d){var f=cast.receiver.CastReceiverManager.getInstance();if("volume"==e){f.setSystemVolumeLevel(c);break}else if("muted"==e){f.setSystemVolumeMuted(c);break}}a.P[d][e]=c;break;case "call":d=a.P[c.targetName];d[c.methodName].apply(d,c.args);break;case "asyncCall":d=c.targetName;e=
|
|
454
|
+
c.methodName;"player"==d&&"load"==e&&(a.u=0,a.H=!1);var g=c.id,h=b.senderId;f=a.P[d];c=f[e].apply(f,c.args);"player"==d&&"load"==e&&(c=c.then(function(){a.D=!0}));c.then(function(){return tl(a,h,g,null)},function(k){return tl(a,h,g,k)})}}
|
|
455
|
+
function jl(a,b){var c=uk(b.data);switch(c.type){case "PLAY":a.g.play();pl(a);break;case "PAUSE":a.g.pause();pl(a);break;case "SEEK":var d=c.currentTime,e=c.resumeState;null!=d&&(a.g.currentTime=Number(d));e&&"PLAYBACK_START"==e?(a.g.play(),pl(a)):e&&"PLAYBACK_PAUSE"==e&&(a.g.pause(),pl(a));break;case "STOP":a.i.me().then(function(){a.i&&pl(a)});break;case "GET_STATUS":sl(a,Number(c.requestId));break;case "VOLUME":e=c.volume;d=e.level;e=e.muted;var f=a.g.volume,g=a.g.muted;null!=d&&(a.g.volume=Number(d));
|
|
456
|
+
null!=e&&(a.g.muted=e);f==a.g.volume&&g==a.g.muted||pl(a);break;case "LOAD":a.u=0;a.H=!1;a.D=!1;d=c.media;e=c.currentTime;f=a.S(d.contentId);g=c.autoplay||!0;a.J(d.customData);g&&(a.g.autoplay=!0);a.i.load(f,e).then(function(){a.i&&sl(a)})["catch"](function(h){var k="LOAD_FAILED";7==h.category&&7E3==h.code&&(k="LOAD_CANCELLED");il(a,{requestId:Number(c.requestId),type:k},a.B)});break;default:il(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.B)}}
|
|
457
|
+
function tl(a,b,c,d){a.i&&il(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function il(a,b,c,d){a.K&&(a=tk(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function pl(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.A?ul:a.i.Dc()?vl:a.g.paused?wl:xl,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);il(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.B)}
|
|
458
|
+
L("shaka.cast.CastReceiver",el);el.prototype.destroy=el.prototype.destroy;el.prototype.setContentArtist=el.prototype.lg;el.prototype.setContentImage=el.prototype.mg;el.prototype.setContentTitle=el.prototype.og;el.prototype.clearContentMetadata=el.prototype.lf;el.prototype.setContentMetadata=el.prototype.ng;el.prototype.isIdle=el.prototype.Sf;el.prototype.isConnected=el.prototype.isConnected;var rl=.5,nl=5,ul="IDLE",xl="PLAYING",vl="BUFFERING",wl="PAUSED";function yl(a){var b=this;this.g=[];this.h=[];this.data=[];(new ye).box("moov",Ce).ea("pssh",function(c){if(!(1<c.version)){var d=ec(c.reader.Y,-12,c.size);b.data.push(d);b.g.push(xc(c.reader.Hb(16)));if(0<c.version){d=c.reader.T();d=r(fb(d));for(var e=d.next();!e.done;e=d.next())e=xc(c.reader.Hb(16)),b.h.push(e)}}}).parse(a)}
|
|
459
|
+
function zl(a){if(!a)return a;var b=new yl(a);if(1>=b.data.length)return a;a=[];var c={};b=r(b.data);for(var d=b.next();!d.done;c={Nc:c.Nc},d=b.next())c.Nc=d.value,a.some(function(e){return function(f){return cc(f,e.Nc)}}(c))||a.push(c.Nc);return yc.apply(sc,ia(a))};function Al(a,b){var c=Bl(a,b);return 1!=c.length?null:c[0]}function Cl(a,b,c){a=Dl(a,b,c);return 1!=a.length?null:a[0]}function Bl(a,b){return Array.from(a.childNodes).filter(function(c){return c instanceof Element&&c.tagName==b})}function Dl(a,b,c){return Array.from(a.childNodes).filter(function(d){return d instanceof Element&&d.localName==c&&d.namespaceURI==b})}function El(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null}
|
|
460
|
+
function Fl(a){return Array.from(a.childNodes).every(function(b){return b.nodeType==Node.TEXT_NODE||b.nodeType==Node.CDATA_SECTION_NODE})?a.textContent.trim():null}function Gl(a,b,c,d){d=void 0===d?null:d;var e=null;a=a.getAttribute(b);null!=a&&(e=c(a));return null==e?d:e}function Hl(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:Math.floor(a/1E3)}
|
|
461
|
+
function Il(a){if(!a)return null;a=/^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$/.exec(a);if(!a)return null;a=31536E3*Number(a[1]||null)+2592E3*Number(a[2]||null)+86400*Number(a[3]||null)+3600*Number(a[4]||null)+60*Number(a[5]||null)+Number(a[6]||null);return isFinite(a)?a:null}function Jl(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}
|
|
462
|
+
function Kl(a){a=Number(a);return 0===a%1?a:null}function Ll(a){a=Number(a);return 0===a%1&&0<a?a:null}function Ml(a){a=Number(a);return 0===a%1&&0<=a?a:null}function Nl(a){var b;a=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(a)?null:a}function Ol(a,b){var c=new DOMParser,d=null,e=null;try{e=c.parseFromString(a,"text/xml")}catch(f){}e&&e.documentElement.tagName==b&&(d=e.documentElement);return d&&0<d.getElementsByTagName("parsererror").length?null:d}
|
|
463
|
+
function Pl(a,b){try{var c=lc(a);return Ol(c,b)}catch(d){return null}};function Ql(a,b){var c=Rl(a),d=null,e=[],f=[],g=new Set(c.map(function(k){return k.keyId}));g["delete"](null);if(1<g.size)throw new N(2,4,4010);b||(f=c.filter(function(k){return"urn:mpeg:dash:mp4protection:2011"==k.Re?(d=k.init||d,!1):!0}),f.length&&(e=Sl(d,f),0==e.length&&(e=[Hb("",d)])));if(c.length&&(b||!f.length))for(e=[],c=r(Tl.values()),f=c.next();!f.done;f=c.next())f=f.value,"org.w3.clearkey"!=f&&e.push(Hb(f,d));if(g=Array.from(g)[0]||null)for(c=r(e),f=c.next();!f.done;f=c.next()){f=r(f.value.initData);
|
|
464
|
+
for(var h=f.next();!h.done;h=f.next())h.value.keyId=g}return{we:g,Xg:d,drmInfos:e,ze:!0}}function Ul(a,b,c){var d=Ql(a,c);if(b.ze){a=1==b.drmInfos.length&&!b.drmInfos[0].keySystem;c=0==d.drmInfos.length;if(0==b.drmInfos.length||a&&!c)b.drmInfos=d.drmInfos;b.ze=!1}else if(0<d.drmInfos.length&&(b.drmInfos=b.drmInfos.filter(function(e){return d.drmInfos.some(function(f){return f.keySystem==e.keySystem})}),0==b.drmInfos.length))throw new N(2,4,4008);return d.we||b.we}
|
|
465
|
+
function Vl(a){var b=0,c=hc(a),d=c.getUint32(b,!0);if(d!=a.byteLength)return[];a:{a=b+6;for(b=[];a<c.byteLength-1;){d=c.getUint16(a,!0);a+=2;var e=c.getUint16(a,!0);a+=2;if(0!=(e&1)||e+a>c.byteLength){c=[];break a}var f=ec(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}
|
|
466
|
+
function Wl(a){a=r(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next()){b=r(b.value.childNodes);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c instanceof Element&&"LA_URL"==c.tagName)return c.textContent}return""}
|
|
467
|
+
function Sl(a,b){for(var c=[],d=r(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=Tl.get(e.Re);if(f){var g;if(g=Cl(e.node,"urn:microsoft:playready","pro")){g=vc(g.textContent);var h=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),k=g.length,l=h.length+16+k,m=new Uint8Array(l),n=hc(m),q=0;n.setUint32(q,l);q+=4;n.setUint32(q,1886614376);q+=4;n.setUint32(q,0);q+=4;m.set(h,q);q+=h.length;n.setUint32(q,k);q+=4;m.set(g,q);g=[{initData:m,initDataType:"cenc",keyId:e.keyId}]}else g=
|
|
468
|
+
null;g=Hb(f,e.init||a||g);if(f=Xl.get(f))g.licenseServerUri=f(e);c.push(g)}}return c}function Rl(a){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())(c=Yl(c.value))&&b.push(c);return b}
|
|
469
|
+
function Yl(a){var b=a.getAttribute("schemeIdUri"),c=El(a,"urn:mpeg:cenc:2013","default_KID"),d=Dl(a,"urn:mpeg:cenc:2013","pssh").map(Fl);if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new N(2,4,4009);var e=[];try{e=d.map(function(f){return{initDataType:"cenc",initData:vc(f),keyId:null}})}catch(f){throw new N(2,4,4007);}return{node:a,Re:b,keyId:c,init:0<e.length?e:null}}
|
|
470
|
+
var Tl=(new Map).set("urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b","org.w3.clearkey").set("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine.alpha").set("urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95","com.microsoft.playready").set("urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95","com.microsoft.playready").set("urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb","com.adobe.primetime"),Xl=(new Map).set("com.widevine.alpha",function(a){return(a=Cl(a.node,"urn:microsoft","laurl"))?a.getAttribute("licenseUrl")||
|
|
471
|
+
"":""}).set("com.microsoft.playready",function(a){a=Cl(a.node,"urn:microsoft:playready","pro");if(!a)return"";a=vc(a.textContent);a=Vl(a).filter(function(b){return 1===b.type})[0];if(!a)return"";a=nc(a.value,!0);return(a=Ol(a,"WRMHEADER"))?Wl(a):""});function Zl(a,b,c,d,e){var f={RepresentationID:b,Number:c,Bandwidth:d,Time:e};return a.replace(/\$(RepresentationID|Number|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,function(g,h,k,l){if("$$"==g)return"$";var m=f[h];if(null==m)return g;"RepresentationID"==h&&k&&(k=void 0);"Time"==h&&(m=Math.round(m));switch(l){case void 0:case "d":case "i":case "u":g=m.toString();break;case "o":g=m.toString(8);break;case "x":g=m.toString(16);break;case "X":g=m.toString(16).toUpperCase();break;default:g=m.toString()}k=
|
|
472
472
|
window.parseInt(k,10)||1;return Array(Math.max(0,k-g.length)+1).join("0")+g})}
|
|
473
|
-
function
|
|
474
|
-
v)if(u){u=
|
|
475
|
-
function
|
|
476
|
-
function
|
|
477
|
-
for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;n.childNodes.length;){var q=n.childNodes[0];n.removeChild(q);a.appendChild(q)}n=r(Array.from(n.attributes));for(q=n.next();!q.done;q=n.next())a.setAttributeNode(q.value.cloneNode(!1));return
|
|
478
|
-
function
|
|
479
|
-
function
|
|
480
|
-
return h};function
|
|
481
|
-
function
|
|
482
|
-
b);a.g.skip(b);return new
|
|
483
|
-
function
|
|
484
|
-
function
|
|
485
|
-
function
|
|
486
|
-
function
|
|
487
|
-
|
|
488
|
-
u=new
|
|
489
|
-
Infinity,d);return{
|
|
490
|
-
function
|
|
491
|
-
function
|
|
492
|
-
q,!0),l.
|
|
493
|
-
function
|
|
494
|
-
function
|
|
495
|
-
w=a.bandwidth||null,z=a.O.id,
|
|
496
|
-
function
|
|
497
|
-
function
|
|
498
|
-
function
|
|
499
|
-
r(v);for(w=A.next();!w.done;w=A.next())z=w.value,z.push(
|
|
500
|
-
0)+(
|
|
501
|
-
function
|
|
502
|
-
function
|
|
503
|
-
function
|
|
504
|
-
function
|
|
505
|
-
width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],channelsCount:null,audioSamplingRate:null,closedCaptions:null});return t(
|
|
506
|
-
u.next())A=v.value,A.variantIds=[n++];return
|
|
507
|
-
function
|
|
508
|
-
z.next();ha.C(6);break}I=F.value;return t(ha
|
|
509
|
-
function
|
|
510
|
-
function
|
|
511
|
-
function
|
|
512
|
-
function
|
|
513
|
-
(a.closedCaptions=new Map);c=r(b.closedCaptions);for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}}a.segmentIndex.
|
|
514
|
-
function
|
|
515
|
-
function
|
|
516
|
-
function
|
|
517
|
-
function
|
|
518
|
-
d=
|
|
519
|
-
function
|
|
520
|
-
function
|
|
521
|
-
a.mimeType||c.codecs!=a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0}function
|
|
522
|
-
function
|
|
523
|
-
p.stop=function(){for(var a=r(Object.values(this.
|
|
524
|
-
function
|
|
525
|
-
function
|
|
526
|
-
function
|
|
527
|
-
v=
|
|
528
|
-
|
|
529
|
-
(
|
|
530
|
-
|
|
531
|
-
c=r(c);for(e=c.next();!e.done;e=c.next())
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
return
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
function
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
function
|
|
548
|
-
case
|
|
549
|
-
case
|
|
550
|
-
|
|
551
|
-
function
|
|
552
|
-
|
|
553
|
-
function
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
p.
|
|
559
|
-
function
|
|
560
|
-
function
|
|
561
|
-
|
|
562
|
-
k=Math.min(k,q.
|
|
563
|
-
|
|
564
|
-
function
|
|
565
|
-
r(
|
|
566
|
-
function
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
function
|
|
572
|
-
function
|
|
473
|
+
function $l(a,b){var c=am(a,b,"timescale"),d=1;c&&(d=Ll(c)||1);c=am(a,b,"duration");(c=Ll(c||""))&&(c/=d);var e=am(a,b,"startNumber"),f=Number(am(a,b,"presentationTimeOffset"))||0,g=Ml(e||"");if(null==e||null==g)g=1;var h=bm(a,b,"SegmentTimeline");e=null;if(h){e=d;var k=a.$.duration||Infinity,l=Bl(h,"S");h=[];var m=-f;l=r(hb(l));for(var n=l.next();!n.done;n=l.next()){n=n.value;var q=n.item,u=n.next,v=Gl(q,"t",Ml);n=Gl(q,"d",Ml);var A=Gl(q,"r",Kl);null!=v&&(v-=f);if(!n)break;q=null!=v?v:m;v=A||0;if(0>
|
|
474
|
+
v)if(u){u=Gl(u,"t",Ml);if(null==u)break;else if(q>=u)break;v=Math.ceil((u-q)/n)-1}else{if(Infinity==k)break;else if(q/e>=k)break;v=Math.ceil((k*e-q)/n)-1}0<h.length&&q!=m&&(h[h.length-1].end=q/e);u=r(fb(v+1));for(v=u.next();!v.done;v=u.next())m=q+n,h.push({start:q/e,end:m/e,wg:q}),q=m}e=h}return{timescale:d,xa:c,fc:g,hb:f/d||0,oe:f,timeline:e}}function am(a,b,c){return[b(a.O),b(a.za),b(a.wa)].filter(Eb).map(function(d){return d.getAttribute(c)}).reduce(function(d,e){return d||e})}
|
|
475
|
+
function bm(a,b,c){return[b(a.O),b(a.za),b(a.wa)].filter(Eb).map(function(d){return Al(d,c)}).reduce(function(d,e){return d||e})}
|
|
476
|
+
function cm(a,b,c,d,e,f){for(var g=El(a,"http://www.w3.org/1999/xlink","href"),h=El(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=r(Array.from(a.attributes)),l=k.next();!l.done;l=k.next())l=l.value,"http://www.w3.org/1999/xlink"==l.namespaceURI&&a.removeAttributeNS(l.namespaceURI,l.localName);if(5<=f)return Ic(new N(2,4,4028));if("onLoad"!=h)return Ic(new N(2,4,4027));var m=Gb([d],[g]);return e.request(0,$c(m,b)).ma(function(n){n=Pl(n.data,a.tagName);if(!n)return Ic(new N(2,4,4001,g));
|
|
477
|
+
for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;n.childNodes.length;){var q=n.childNodes[0];n.removeChild(q);a.appendChild(q)}n=r(Array.from(n.attributes));for(q=n.next();!q.done;q=n.next())a.setAttributeNode(q.value.cloneNode(!1));return dm(a,b,c,m[0],e,f+1)})}
|
|
478
|
+
function dm(a,b,c,d,e,f){f=void 0===f?0:f;if(El(a,"http://www.w3.org/1999/xlink","href")){var g=cm(a,b,c,d,e,f);c&&(g=g.ma(void 0,function(){return dm(a,b,c,d,e,f)}));return g}g=[];for(var h=r(Array.from(a.childNodes)),k=h.next();!k.done;k=h.next())k=k.value,k instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==El(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(dm(k,b,c,d,e,f)));return Mc(g).ma(function(){return a})};function em(a,b,c,d,e,f,g){var h,k=(new ye).ea("sidx",function(l){h=fm(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new N(2,3,3004);}
|
|
479
|
+
function fm(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.T();if(0==k)throw new N(2,3,3005);if(0==g.version){var l=g.reader.T();var m=g.reader.T()}else l=g.reader.Ib(),m=g.reader.Ib();g.reader.skip(2);var n=g.reader.Ic();a=a+g.size+m;n=r(fb(n));for(m=n.next();!m.done;m=n.next()){var q=g.reader.T();m=(q&2147483648)>>>31;q&=2147483647;var u=g.reader.T();g.reader.skip(4);if(1==m)throw new N(2,3,3006);h.push(new Dg(l/k+c,(l+u)/k+c,function(){return f},a,a+q-1,b,c,d,e));l+=u;a+=q}g.parser.stop();
|
|
480
|
+
return h};function gm(a){this.h=hc(a);this.g=new ve(this.h,0)}gm.prototype.Va=function(){return this.g.Va()};
|
|
481
|
+
function hm(a){var b=im(a);if(7<b.length)throw new N(2,3,3002);var c=0;b=r(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=im(a);a:{d=r(jm);for(var e=d.next();!e.done;e=d.next())if(cc(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.L;else{if(8==b.length&&b[1]&224)throw new N(2,3,3001);d=0;e=r(hb(b));for(var f=e.next();!f.done;f=e.next()){f=f.value;var g=f.item;d=0==f.sa?g&(1<<8-b.length)-1:256*d+g}b=d}b=a.g.L+b<=a.h.byteLength?b:a.h.byteLength-a.g.L;d=hc(a.h,a.g.L,
|
|
482
|
+
b);a.g.skip(b);return new km(c,d)}function im(a){var b=a.g.L,c=a.g.Oa();if(0==c)throw new N(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return ec(a.h,b,c)}var jm=[[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 km(a,b){this.id=a;this.g=b}
|
|
483
|
+
function lm(a){if(8<a.g.byteLength)throw new N(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new N(2,3,3001);for(var b=0,c=r(fb(a.g.byteLength)),d=c.next();!d.done;d=c.next())d=a.g.getUint8(d.value),b=256*b+d;return b};function mm(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new gm(a.g);for(var n=null,q=null;a.Va();){var u=hm(a);if(187==u.id){var v=nm(u);v&&(u=c*v.xg,v=b+v.eg,null!=n&&m.push(new Dg(n+g,u+g,l,q,v-1,f,g,h,k)),n=u,q=v)}}null!=n&&m.push(new Dg(n+g,d+g,l,q,null,f,g,h,k));return m}
|
|
484
|
+
function nm(a){var b=new gm(a.g);a=hm(b);if(179!=a.id)throw new N(2,3,3013);a=lm(a);b=hm(b);if(183!=b.id)throw new N(2,3,3012);b=new gm(b.g);for(var c=0;b.Va();){var d=hm(b);if(241==d.id){c=lm(d);break}}return{xg:a,eg:c}};function om(a,b){var c=bm(a,b,"Initialization");if(!c)return null;var d=a.O.La,e=c.getAttribute("sourceURL");e&&(d=Gb(a.O.La,[e]));e=0;var f=null;if(c=Gl(c,"range",Jl))e=c.start,f=c.end;return new Bg(function(){return d},e,f)}
|
|
485
|
+
function pm(a,b){var c=Number(am(a,qm,"presentationTimeOffset"))||0,d=am(a,qm,"timescale"),e=1;d&&(e=Ll(d)||1);var f=c/e||0,g=om(a,qm);rm(a,g);var h=Pc(a);return{Wb:function(){var k=bm(h,qm,"RepresentationIndex"),l=h.O.La;k&&(k=k.getAttribute("sourceURL"))&&(l=Gb(h.O.La,[k]));k=sm(h);return tm(h,b,g,l,k.start,k.end,f)}}}
|
|
486
|
+
function tm(a,b,c,d,e,f,g){var h,k,l,m,n,q,u,v,A,w,z,D,B,E,F;return H(function(I){var G;if(1==I.g)return h=a.presentationTimeline,k=!a.wb||!a.$.Ge,l=a.$.start,m=a.$.duration,n=a.O.mimeType.split("/")[1],q=b,u=null,v=[q(d,e,f),"webm"==n?q(c.Ma(),c.h,c.g):null],q=null,t(I,Promise.all(v),2);A=I.h;w=A[0];z=A[1]||null;D=null;B=l-g;E=l;F=m?l+m:Infinity;if("mp4"==n)var J=em(w,e,d,c,B,E,F);else{J=new gm(z);if(440786851!=hm(J).id)throw new N(2,3,3008);var K=hm(J);if(408125543!=K.id)throw new N(2,3,3009);J=
|
|
487
|
+
K.g.byteOffset;K=new gm(K.g);for(G=null;K.Va();){var P=hm(K);if(357149030==P.id){G=P;break}}if(!G)throw new N(2,3,3010);G=new gm(G.g);P=1E6;for(K=null;G.Va();){var T=hm(G);if(2807729==T.id)P=lm(T);else if(17545==T.id)if(4==T.g.byteLength)K=T.g.getFloat32(0);else if(8==T.g.byteLength)K=T.g.getFloat64(0);else throw new N(2,3,3003);}if(null==K)throw new N(2,3,3011);G=P/1E9;G={rg:G,duration:K*G};K=G.rg;G=G.duration;P=hm(new gm(w));if(475249515!=P.id)throw new N(2,3,3007);J=mm(P,J,K,G,d,c,B,E,F)}D=J;h.cc(D);
|
|
488
|
+
u=new R(D);k&&u.ob(E,F,!0);return I["return"](u)})}function qm(a){return a.Jc}function sm(a){var b=bm(a,qm,"RepresentationIndex");a=am(a,qm,"indexRange");a=Jl(a||"");b&&(a=Gl(b,"range",Jl,a));return a}function rm(a,b){um(a,b);if(!sm(a))throw new N(2,4,4002);}function um(a,b){var c=a.O.mimeType.split("/")[1];if("text"!=a.O.contentType&&"mp4"!=c&&"webm"!=c)throw new N(2,4,4006);if("webm"==c&&!b)throw new N(2,4,4005);};function vm(a,b){var c=om(a,wm),d=xm(a);if(!d.xa&&!d.timeline&&1<d.$b.length)throw new N(2,4,4002);if(!d.xa&&!a.$.duration&&!d.timeline&&1==d.$b.length)throw new N(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new N(2,4,4002);var e=null,f=null;a.wa.id&&a.O.id&&(f=a.wa.id+","+a.O.id,e=b[f]);c=ym(a.$.start,a.$.duration,a.O.La,d,c);d=!e;e?e.ac(c,a.presentationTimeline.fb()):(e=new R(c),f&&a.wb&&(b[f]=e));a.presentationTimeline.cc(c);a.wb&&a.$.Ge||e.ob(a.$.start,a.$.duration?a.$.start+a.$.duration:
|
|
489
|
+
Infinity,d);return{Wb:function(){return Promise.resolve(e)}}}function wm(a){return a.rb}function xm(a){var b=zm(a);a=$l(a,wm);var c=a.fc;0==c&&(c=1);var d=0;a.xa?d=a.xa*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{xa:a.xa,startTime:d,fc:c,hb:a.hb,timeline:a.timeline,$b:b}}
|
|
490
|
+
function ym(a,b,c,d,e){var f=d.$b.length;d.timeline&&d.timeline.length!=d.$b.length&&(f=Math.min(d.timeline.length,d.$b.length));var g=a-d.hb,h=b?a+b:Infinity,k=[],l=d.startTime,m={};f=r(fb(f));for(var n=f.next();!n.done;m={xd:m.xd},n=f.next()){n=n.value;var q=d.$b[n];m.xd=Gb(c,[q.Xf]);var u=void 0;u=null!=d.xa?l+d.xa:d.timeline?d.timeline[n].end:l+b;k.push(new Dg(a+l,a+u,function(v){return function(){return v.xd}}(m),q.start,q.end,e,g,a,h));l=u}return k}
|
|
491
|
+
function zm(a){return[a.O.rb,a.za.rb,a.wa.rb].filter(Eb).map(function(b){return Bl(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.De&&(a.De=!0);var c=b.getAttribute("media");b=Gl(b,"mediaRange",Jl,{start:0,end:null});return{Xf:c,start:b.start,end:b.end}})};function Am(a,b,c,d,e,f){var g=Bm(a),h=Cm(a);Dm(h);var k=Pc(a);if(h.Cc)return um(a,g),{Wb:function(){var v=Zl(h.Cc,k.O.id,null,k.bandwidth||null,null);v=Gb(k.O.La,[v]);return tm(k,b,g,v,0,null,h.hb)}};if(h.xa)return d||(a.presentationTimeline.Pd(h.xa),a.presentationTimeline.Qd(a.$.start)),{Wb:function(){return Em(k,h,e,g,f)}};var l=null;d=null;a.wa.id&&a.O.id&&(d=a.wa.id+","+a.O.id,l=c[d]);var m=Fm(k,h,g),n=a.$.start,q=a.$.duration?a.$.start+a.$.duration:Infinity,u=Infinity!=q;l?(u&&(new R(m)).ob(n,
|
|
492
|
+
q,!0),l.ac(m,a.presentationTimeline.fb())):(l=new R(m),d&&a.wb&&(c[d]=l));a.presentationTimeline.cc(m);u&&l.ob(n,q);return{Wb:function(){return Promise.resolve(l)}}}function Gm(a){return a.Kc}function Cm(a){var b=$l(a,Gm),c=am(a,Gm,"media");a=am(a,Gm,"index");return{xa:b.xa,timescale:b.timescale,fc:b.fc,hb:b.hb,oe:b.oe,timeline:b.timeline,Od:c,Cc:a}}
|
|
493
|
+
function Dm(a){var b=a.Cc?1:0;b+=a.timeline?1:0;b+=a.xa?1:0;if(0==b)throw new N(2,4,4002);1!=b&&(a.Cc&&(a.timeline=null),a.xa=null);if(!a.Cc&&!a.Od)throw new N(2,4,4002);}
|
|
494
|
+
function Em(a,b,c,d,e){function f(K){var P=(K-u)*q,T=P+b.hb;P+=l;var Da=Math.min(P+q,h());return new Dg(P,Da,function(){var ha=Zl(A,z,K,w,T*v);return Gb(D,[ha])},0,null,d,B,l,h())}function g(){var K=[Math.max(k.fb(),l),Math.min(k.pb(),h())].map(function(P){return P-l});return[Math.ceil(K[0]/q),Math.ceil(K[1]/q)-1].map(function(P){return P+u})}function h(){var K=null!=m&&e[m]||n;return K?l+K:Infinity}var k=a.presentationTimeline,l=a.$.start,m=a.wa.id,n=a.$.duration,q=b.xa,u=b.fc,v=b.timescale,A=b.Od,
|
|
495
|
+
w=a.bandwidth||null,z=a.O.id,D=a.O.La,B=l-b.hb,E=g();a=a.wb?Math.max(E[0],E[1]-c+1):E[0];E=E[1];c=[];for(var F=a;F<=E;++F){var I=f(F);c.push(I)}var G=new R(c);c=k.pb()<h();F=k.W();if(c||F){var J=Math.max(a,E+1);G.pd(q,function(){var K=k.fb();G.xb(K);var P=r(g());P.next();P=P.next().value;for(var T=[];J<=P;){var Da=f(J);T.push(Da);J++}return K>h()&&!T.length?null:T})}return Promise.resolve(G)}
|
|
496
|
+
function Fm(a,b,c){var d=a.$.start,e=a.$.duration,f=d-b.hb;e=e?d+e:Infinity;for(var g=[],h={},k=r(hb(b.timeline)),l=k.next();!l.done;h={wd:h.wd,yd:h.yd,Cd:h.Cd,td:h.td,Dd:h.Dd,ud:h.ud},l=k.next()){l=l.value;var m=l.item,n=m.start,q=m.wg;m=m.end;h.Cd=l.sa+b.fc;h.Dd=q+b.oe;h.yd=a.O.id;h.td=a.bandwidth||null;h.wd=b.Od;h.ud=a.O.La;g.push(new Dg(d+n,d+m,function(u){return function(){var v=Zl(u.wd,u.yd,u.Cd,u.td||null,u.Dd);return Gb(u.ud,[v]).map(function(A){return A.toString()})}}(h),0,null,c,f,d,e))}return g}
|
|
497
|
+
function Bm(a){var b=am(a,Gm,"initialization");if(!b)return null;var c=a.O.id,d=a.bandwidth||null,e=a.O.La;return new Bg(function(){var f=Zl(b,c,null,d,null);return Gb(e,[f])},0,null)};function Hm(){this.j=[];this.g=[];this.h=[];this.i=[];this.l=new Set}Hm.prototype.release=function(){for(var a=r(this.g.concat(this.h,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.g=[];this.h=[];this.i=[];this.j=[]};
|
|
498
|
+
function Im(a,b,c){var d,e,f,g,h,k,l,m,n,q,u,v,A,w,z,D,B,E,F,I,G,J,K,P,T,Da,ha,jb,Kb,ad;return H(function(Ya){switch(Ya.g){case 1:d=Ib;Jm(b);Km(b);Lm(b);if(!c&&1==b.length){e=b[0];a.g=e.Uc;a.h=e.rd;a.i=e.textStreams;Ya.C(2);break}f=-1;g=r(hb(b));for(h=g.next();!h.done;h=g.next())l=k=h.value,m=l.sa,n=l.item,a.l.has(n.id)||(a.l.add(n.id),-1==f&&(f=m));if(-1==f)return Ya["return"]();q=b.map(function(Lb){return Lb.Uc});u=b.map(function(Lb){return Lb.rd});v=b.map(function(Lb){return Lb.textStreams});A=
|
|
499
|
+
r(v);for(w=A.next();!w.done;w=A.next())z=w.value,z.push(Mm());return t(Ya,Nm(a.g,q,f,Om,Pm),3);case 3:return t(Ya,Nm(a.h,u,f,Om,Pm),4);case 4:return t(Ya,Nm(a.i,v,f,Om,Pm),2);case 2:D=0;B=[];if(a.h.length&&a.g.length)for(K=r(a.g),P=K.next();!P.done;P=K.next())for(T=P.value,Da=r(a.h),ha=Da.next();!ha.done;ha=Da.next())jb=ha.value,Kb=se(T.drmInfos,jb.drmInfos),T.drmInfos.length&&jb.drmInfos.length&&!Kb.length||(ad=D++,B.push({id:ad,language:T.language,primary:T.primary,audio:T,video:jb,bandwidth:(T.bandwidth||
|
|
500
|
+
0)+(jb.bandwidth||0),drmInfos:Kb,allowedByApplication:!0,allowedByKeySystem:!0}));else for(E=a.h.concat(a.g),F=r(E),I=F.next();!I.done;I=F.next())G=I.value,J=D++,B.push({id:J,language:G.language,primary:G.primary,audio:G.type==d.tb?G:null,video:G.type==d.bb?G:null,bandwidth:G.bandwidth||0,drmInfos:G.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0});a.j=B;x(Ya)}})}
|
|
501
|
+
function Jm(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.Uc),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.channelsCount==h.channelsCount&&e.language==h.language&&e.bandwidth==h.bandwidth&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&Sc(e.roles,h.roles)&&e.audioSamplingRate==h.audioSamplingRate&&e.primary==h.primary&&(f=!0);f||c.push(e)}b.Uc=c}}
|
|
502
|
+
function Lm(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.textStreams),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.language==h.language&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&Sc(e.roles,h.roles)&&(f=!0);f||c.push(e)}b.textStreams=c}}
|
|
503
|
+
function Km(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.rd),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.width==h.width&&e.frameRate==h.frameRate&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.label==h.label&&Sc(e.roles,h.roles)&&td(e.closedCaptions,h.closedCaptions)&&e.bandwidth==h.bandwidth&&(f=!0);f||c.push(e)}b.rd=c}}
|
|
504
|
+
function Wm(a){var b,c,d,e,f,g,h,k,l,m,n,q,u,v,A,w,z,D,B,E,F,I;return H(function(G){switch(G.g){case 1:b=Ib;if(1==a.length)return G["return"](a[0]);c=a.map(function(J){return J.filter(function(K){return K.type==b.tb})});d=a.map(function(J){return J.filter(function(K){return K.type==b.bb})});e=a.map(function(J){return J.filter(function(K){return K.type==b.ya})});f=r(e);for(g=f.next();!g.done;g=f.next())h=g.value,h.push({id:0,originalId:"",primary:!1,type:"text",mimeType:"",codecs:"",language:"",label:null,
|
|
505
|
+
width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],channelsCount:null,audioSamplingRate:null,closedCaptions:null});return t(G,Nm([],c,0,Xm,Ym),2);case 2:return k=G.h,t(G,Nm([],d,0,Xm,Ym),3);case 3:return l=G.h,t(G,Nm([],e,0,Xm,Ym),4);case 4:m=G.h;n=0;if(l.length&&k.length)for(w=r(k),z=w.next();!z.done;z=w.next())for(D=z.value,B=r(l),E=B.next();!E.done;E=B.next())F=E.value,I=n++,F.variantIds.push(I),D.variantIds.push(I);else for(q=l.concat(k),u=r(q),v=u.next();!v.done;v=
|
|
506
|
+
u.next())A=v.value,A.variantIds=[n++];return G["return"](l.concat(k).concat(m))}})}
|
|
507
|
+
function Nm(a,b,c,d,e){var f,g,h,k,l,m,n,q,u,v,A,w,z,D,B,E,F,I,G,J,K,P,T,Da;return H(function(ha){switch(ha.g){case 1:f=Ib;g=[];h=r(hb(b));for(k=h.next();!k.done;k=h.next())m=l=k.value,n=m.sa,q=m.item,n>=c?g.push(new Set(q)):g.push(new Set);u=r(a);v=u.next();case 2:if(v.done){ha.C(4);break}A=v.value;return t(ha,Zm(A,b,c,e,g),5);case 5:w=ha.h;if(!w)throw new N(2,4,4037);v=u.next();ha.C(2);break;case 4:z=r(g),D=z.next();case 6:if(D.done){ha.C(8);break}B=D.value;E=r(B);F=E.next();case 9:if(F.done){D=
|
|
508
|
+
z.next();ha.C(6);break}I=F.value;return t(ha,$m(I,b,d,e,g),12);case 12:(G=ha.h)&&a.push(G);F=E.next();ha.C(9);break;case 8:J=r(g);for(D=J.next();!D.done;D=J.next())for(K=D.value,P={},T=r(K),F=T.next();!F.done;P={Rb:P.Rb},F=T.next())if(P.Rb=F.value,P.Rb.type!=f.ya||P.Rb.language)if(Da=a.some(function(jb){return function(Kb){return Kb.mimeType==jb.Rb.mimeType&&xd(Kb.codecs)==xd(jb.Rb.codecs)}}(P)))throw new N(2,4,4037);return ha["return"](a)}})}
|
|
509
|
+
function Zm(a,b,c,d,e){var f;return H(function(g){if(1==g.g)return(f=an(b,a))?t(g,bn(f),2):g["return"](!1);cn(a,f,c,d,e);return g["return"](!0)})}function bn(a){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.push(c.createSegmentIndex()),c.trickModeVideo&&!c.trickModeVideo.segmentIndex&&b.push(c.trickModeVideo.createSegmentIndex());return Promise.all(b)}
|
|
510
|
+
function $m(a,b,c,d,e){var f,g;return H(function(h){if(1==h.g)return f=c(a),(g=an(b,f))?f.createSegmentIndex?t(h,bn(g),2):h.C(2):h["return"](null);cn(f,g,0,d,e);return h["return"](f)})}function cn(a,b,c,d,e){b=r(hb(b));for(var f=b.next();!f.done;f=b.next()){var g=f.value;f=g.sa;g=g.item;if(f>=c){d(a,g);var h=!0;"audio"==a.type&&0==Qb(a.language,g.language)&&(h=!1);h&&e[f]["delete"](g)}}}
|
|
511
|
+
function Om(a){a=Object.assign({},a);a.originalId=null;a.createSegmentIndex=function(){return Promise.resolve()};a.segmentIndex=new bh;a.emsgSchemeIdUris=[];a.keyIds=new Set;a.closedCaptions=null;a.trickModeVideo=null;return a}function Xm(a){a=Object.assign({},a);a.keyIds=new Set;a.segments=[];a.variantIds=[];a.closedCaptions=null;return a}
|
|
512
|
+
function Pm(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));b.emsgSchemeIdUris&&(a.emsgSchemeIdUris=Array.from(new Set(a.emsgSchemeIdUris.concat(b.emsgSchemeIdUris))));var c=b.keyIds;c=new Set([].concat(ia(a.keyIds),ia(c)));a.keyIds=c;null==a.originalId?a.originalId=b.originalId:a.originalId+=","+(b.originalId||"");c=se(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!c.length)throw new N(2,4,4038);a.drmInfos=c;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions){a.closedCaptions||
|
|
513
|
+
(a.closedCaptions=new Map);c=r(b.closedCaptions);for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}}a.segmentIndex.j.push(b.segmentIndex);b.trickModeVideo?(a.trickModeVideo||(a.trickModeVideo=Om(b.trickModeVideo),a.trickModeVideo.segmentIndex=a.segmentIndex.clone()),Pm(a.trickModeVideo,b.trickModeVideo)):a.trickModeVideo&&Pm(a.trickModeVideo,b)}
|
|
514
|
+
function Ym(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));var c=b.keyIds;c=new Set([].concat(ia(a.keyIds),ia(c)));a.keyIds=c;a.encrypted=a.encrypted&&b.encrypted;a.segments.push.apply(a.segments,ia(b.segments));if(b.closedCaptions){a.closedCaptions||(a.closedCaptions=new Map);c=r(b.closedCaptions);for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}}}
|
|
515
|
+
function an(a,b){for(var c=[],d=r(a),e=d.next();!e.done;e=d.next()){var f=b,g={audio:dn,video:dn,text:en}[f.type],h={audio:fn,video:gn,text:hn}[f.type],k=null;e=r(e.value);for(var l=e.next();!l.done;l=e.next())l=l.value,!g(f,l)||k&&!h(f,k,l)||(k=l);f=k;if(!f)return null;c.push(f)}return c}function dn(a,b){var c;if(!(c=b.mimeType!=a.mimeType||xd(b.codecs)!=xd(a.codecs))&&(c=a.drmInfos)){c=a.drmInfos;var d=b.drmInfos;c=!(c.length&&d.length?0<se(c,d).length:1)}return c?!1:!0}
|
|
516
|
+
function en(a,b){return a.language?b.language?0==Qb(a.language,b.language)||b.kind!=a.kind?!1:!0:!0:!1}
|
|
517
|
+
function fn(a,b,c){if(a.id==c.id)return!0;var d=Qb(a.language,b.language),e=Qb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;if(a.roles.length)return d=b.roles.filter(function(f){return a.roles.includes(f)}),e=c.roles.filter(function(f){return a.roles.includes(f)}),e.length>d.length?!0:e.length<d.length?!1:c.roles.length<b.roles.length;if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1;
|
|
518
|
+
d=jn(a.channelsCount,b.channelsCount,c.channelsCount);if(d==kn)return!0;if(d==ln)return!1;d=jn(a.audioSamplingRate,b.audioSamplingRate,c.audioSamplingRate);return d==kn?!0:d==ln?!1:a.bandwidth&&mn(a.bandwidth,b.bandwidth,c.bandwidth)==kn?!0:!1}
|
|
519
|
+
function gn(a,b,c){if(a.id==c.id)return!0;var d=jn(a.width*a.height,b.width*b.height,c.width*c.height);if(d==kn)return!0;if(d==ln)return!1;if(a.frameRate){d=jn(a.frameRate,b.frameRate,c.frameRate);if(d==kn)return!0;if(d==ln)return!1}return a.bandwidth&&mn(a.bandwidth,b.bandwidth,c.bandwidth)==kn?!0:!1}
|
|
520
|
+
function hn(a,b,c){if(a.id==c.id)return!0;var d=Qb(a.language,b.language),e=Qb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;if(a.roles.length){d=b.roles.filter(function(f){return a.roles.includes(f)});e=c.roles.filter(function(f){return a.roles.includes(f)});if(e.length>d.length)return!0;if(e.length<d.length)return!1}else{if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1}return c.mimeType!=
|
|
521
|
+
a.mimeType||c.codecs!=a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0}function Mm(){return{id:0,originalId:"",createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new R([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",label:null,type:"text",primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,audioSamplingRate:null,closedCaptions:null}}
|
|
522
|
+
function jn(a,b,c){if(b==a&&a!=c)return ln;if(c==a&&a!=b)return kn;if(b>a){if(c<=a||c-a<b-a)return kn;if(c-a>b-a)return ln}else{if(c>a)return ln;if(a-c<a-b)return kn;if(a-c>a-b)return ln}return nn}function mn(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?kn:b<a?ln:nn}var kn=1,nn=0,ln=-1;function on(){var a=this;this.G=this.v=null;this.h=[];this.F=null;this.B=1;this.l={};this.J={};this.g=new Hm;this.A=0;this.D=new Yb(5);this.u=new O(function(){a.Fc()});this.i=new Uc;this.j=null;this.H=[]}p=on.prototype;p.configure=function(a){this.v=a};p.start=function(a,b){var c=this,d;return H(function(e){if(1==e.g)return c.h=[a],c.G=b,t(e,pn(c),2);d=e.h;c.G&&qn(c,d);if(!c.G)throw new N(2,7,7001);return e["return"](c.F)})};
|
|
523
|
+
p.stop=function(){for(var a=r(Object.values(this.l)),b=a.next();!b.done;b=a.next())b.value.release();this.g&&this.g.release();this.v=this.G=null;this.h=[];this.F=null;this.l={};this.g=null;null!=this.u&&(this.u.stop(),this.u=null);return this.i.destroy()};p.update=function(){var a=this,b;return H(function(c){if(1==c.g)return y(c,2),t(c,pn(a),4);if(2!=c.g)return ua(c,0);b=C(c);if(!a.G||!b)return c["return"]();a.G.onError(b);x(c)})};p.onExpirationUpdated=function(){};
|
|
524
|
+
function pn(a){var b,c,d,e,f,g,h;return H(function(k){if(1==k.g)return b=$c(a.h,a.v.retryParameters),c=a.G.networkingEngine,d=Date.now(),e=c.request(0,b),Vc(a.i,e),t(k,e.promise,2);if(3!=k.g){f=k.h;if(!a.G)return k["return"](0);f.uri&&!a.h.includes(f.uri)&&a.h.unshift(f.uri);return t(k,rn(a,f.data,f.uri),3)}g=Date.now();h=(g-d)/1E3;Zb(a.D,1,h);return k["return"](h)})}
|
|
525
|
+
function rn(a,b,c){var d,e,f,g;return H(function(h){if(1==h.g){d=Pl(b,"MPD");if(!d)throw new N(2,4,4001,c);e=a.v.dash.xlinkFailGracefully;f=dm(d,a.v.retryParameters,e,c,a.G.networkingEngine);Vc(a.i,f);return t(h,f.promise,2)}g=h.h;return h["return"](sn(a,g,c))})}
|
|
526
|
+
function sn(a,b,c){var d,e,f,g,h,k,l,m,n,q,u,v,A,w,z,D,B,E,F,I,G,J,K,P,T,Da;return H(function(ha){switch(ha.g){case 1:d=[c];e=Bl(b,"Location").map(Fl).filter(Eb);0<e.length&&(f=Gb(d,e),d=a.h=f);g=Bl(b,"BaseURL").map(Fl);h=Gb(d,g);k=a.v.dash.ignoreMinBufferTime;l=0;k||(l=Gl(b,"minBufferTime",Il)||0);a.A=Gl(b,"minimumUpdatePeriod",Il,-1);m=Gl(b,"availabilityStartTime",Hl);n=Gl(b,"timeShiftBufferDepth",Il);q=a.v.dash.ignoreSuggestedPresentationDelay;u=null;q||(u=Gl(b,"suggestedPresentationDelay",Il));
|
|
527
|
+
v=Gl(b,"maxSegmentDuration",Il);A=b.getAttribute("type")||"static";if(a.F)for(w=a.F.presentationTimeline,z=r(Object.values(a.l)),D=z.next();!D.done;D=z.next())B=D.value,B.xb(w.fb());else E=a.v.defaultPresentationDelay||1.5*l,F=null!=u?u:E,w=new Q(m,F,a.v.dash.autoCorrectDrift);I={wb:"static"!=A,presentationTimeline:w,wa:null,$:null,za:null,O:null,bandwidth:0,De:!1};G=tn(a,I,h,b);J=G.duration;K=G.periods;w.Lc("static"==A);"static"!=A&&G.xe||w.Ya(J||Infinity);(P=w.W())&&!isNaN(a.v.availabilityWindowOverride)&&
|
|
528
|
+
(n=a.v.availabilityWindowOverride);null==n&&(n=Infinity);w.ce(n);w.Pd(v||1);return t(ha,Im(a.g,K,I.wb),2);case 2:if(a.F){a.F.variants=a.g.j;a.F.textStreams=a.g.i.slice();ha.C(3);break}a.F={presentationTimeline:w,variants:a.g.j,textStreams:a.g.i.slice(),offlineSessionIds:[],minBufferTime:l||0};if(!w.$e()){ha.C(3);break}T=Bl(b,"UTCTiming");return t(ha,un(a,h,T),5);case 5:Da=ha.h;if(!a.G)return ha["return"]();w.Te(Da);case 3:return a.G.makeTextStreamsForClosedCaptions(a.F),t(ha,a.G.filter(a.F),0)}})}
|
|
529
|
+
function tn(a,b,c,d){var e=Gl(d,"mediaPresentationDuration",Il),f=[],g=0;d=Bl(d,"Period");for(var h=r(hb(d)),k=h.next();!k.done;k=h.next()){var l=k.value;k=l.sa;var m=l.item,n=l.next;l=Gl(m,"start",Il,g);var q=m.id,u=Gl(m,"duration",Il),v=null;if(n){var A=Gl(n,"start",Il);null!=A&&(v=A-l)}else null!=e&&(v=e-l);null==v&&(v=u);if(!(null!==a.j&&null!==q&&null!==l&&l<a.j)||a.H.includes(q)||k+1==d.length){null!==l&&(null===a.j||l>a.j)&&(a.j=l);g=vn(a,b,c,{start:l,duration:v,node:m,Ge:null==v||!n});f.push(g);
|
|
530
|
+
b.wa.id&&v&&(a.J[b.wa.id]=v);if(null==v){g=null;break}g=l+v}}a.H=f.map(function(w){return w.id});return null!=e?{periods:f,duration:e,xe:!1}:{periods:f,duration:g,xe:!0}}
|
|
531
|
+
function vn(a,b,c,d){b.wa=wn(d.node,null,c);b.$=d;b.wa.id||(b.wa.id="__shaka_period_"+d.start);c=Bl(d.node,"EventStream");c=r(c);for(var e=c.next();!e.done;e=c.next())xn(a,d.start,d.duration,e.value);c=Bl(d.node,"AdaptationSet").map(function(m){return yn(a,b,m)}).filter(Eb);if(b.wb){d=[];e=r(c);for(var f=e.next();!f.done;f=e.next()){f=r(f.value.hg);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new N(2,4,4018);}d=c.filter(function(m){return!m.ke});c=c.filter(function(m){return m.ke});
|
|
532
|
+
c=r(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.ke.split(" ");g=r(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=r(k.streams);for(var l=k.next();!l.done;h={Rc:h.Rc},l=k.next())h.Rc=l.value,h.Rc.trickModeVideo=e.streams.find(function(m){return function(n){return xd(m.Rc.codecs)==xd(n.codecs)}}(h))}}}e=a.v.disableAudio?[]:zn(d,"audio");f=a.v.disableVideo?[]:zn(d,"video");c=a.v.disableText?[]:zn(d,"text");if(!f.length&&!e.length)throw new N(2,4,4004);d=[];
|
|
533
|
+
e=r(e);for(g=e.next();!g.done;g=e.next())d.push.apply(d,ia(g.value.streams));e=[];f=r(f);for(g=f.next();!g.done;g=f.next())e.push.apply(e,ia(g.value.streams));f=[];c=r(c);for(g=c.next();!g.done;g=c.next())f.push.apply(f,ia(g.value.streams));return{id:b.wa.id,Uc:d,rd:e,textStreams:f}}function zn(a,b){return a.filter(function(c){return c.contentType==b})}
|
|
534
|
+
function yn(a,b,c){b.za=wn(c,b.wa,null);if("image"==b.za.contentType)return null;var d=!1,e=Bl(c,"Role"),f=e.map(function(B){return B.getAttribute("value")}).filter(Eb),g=void 0,h="text"==b.za.contentType;h&&(g="subtitle");e=r(e);for(var k=e.next();!k.done;k=e.next()){k=k.value;var l=k.getAttribute("schemeIdUri");if(null==l||"urn:mpeg:dash:role:2011"==l)switch(k=k.getAttribute("value"),k){case "main":d=!0;break;case "caption":case "subtitle":g=k}}l=Bl(c,"EssentialProperty");e=null;k=!1;l=r(l);for(var m=
|
|
535
|
+
l.next();!m.done;m=l.next())m=m.value,"http://dashif.org/guidelines/trickmode"==m.getAttribute("schemeIdUri")?e=m.getAttribute("value"):k=!0;l=Bl(c,"Accessibility");var n=new Map;l=r(l);for(m=l.next();!m.done;m=l.next()){var q=m.value;m=q.getAttribute("schemeIdUri");q=q.getAttribute("value");if("urn:scte:dash:cc:cea-608:2015"==m||"urn:scte:dash:cc:cea-708:2015"==m)if(m=1,null!=q){q=r(q.split(";"));for(var u=q.next();!u.done;u=q.next()){var v=u.value,A=u=void 0;v.includes("=")?(v=v.split("="),u=v[0].startsWith("CC")?
|
|
536
|
+
v[0]:"CC"+v[0],A=v[1].split(",")[0].split(":").pop()):(u="CC"+m,m+=2,A=v);n.set(u,Mb(A))}}else n.set("CC1","und");else"urn:mpeg:dash:role:2011"==m&&null!=q&&(f.push(q),"captions"==q&&(g="caption"))}if(k)return null;k=Bl(c,"ContentProtection");var w=Ql(k,a.v.dash.ignoreDrmInfo),z=Mb(c.getAttribute("lang")||"und"),D=c.getAttribute("label");(k=Bl(c,"Label"))&&k.length&&(k=k[0],k.textContent&&(D=k.textContent));k=Bl(c,"Representation");c=k.map(function(B){return An(a,b,w,g,z,D,d,f,n,B)}).filter(function(B){return!!B});
|
|
537
|
+
if(0==c.length){if(a.v.dash.ignoreEmptyAdaptationSet||h)return null;throw new N(2,4,4003);}if(!b.za.contentType||"application"==b.za.contentType)for(b.za.contentType=Bn(c[0].mimeType,c[0].codecs),h=r(c),l=h.next();!l.done;l=h.next())l.value.type=b.za.contentType;h=r(c);for(l=h.next();!l.done;l=h.next())for(l=l.value,m=r(w.drmInfos),q=m.next();!q.done;q=m.next())q=q.value,q.keyIds=q.keyIds&&l.keyIds?new Set([].concat(ia(q.keyIds),ia(l.keyIds))):q.keyIds||l.keyIds;h=k.map(function(B){return B.getAttribute("id")}).filter(Eb);
|
|
538
|
+
return{id:b.za.id||"__fake__"+a.B++,contentType:b.za.contentType,language:z,Yg:d,streams:c,drmInfos:w.drmInfos,ke:e,hg:h}}
|
|
539
|
+
function An(a,b,c,d,e,f,g,h,k,l){b.O=wn(l,b.za,null);if(!Cn(b.O))return null;var m=b.$.start;b.bandwidth=Gl(l,"bandwidth",Ll)||0;var n=b.O.contentType;n="text"==n||"application"==n;try{var q=function(z,D,B){return Dn(a,z,D,B)};if(b.O.Jc)var u=pm(b,q);else if(b.O.rb)u=vm(b,a.l);else if(b.O.Kc)u=Am(b,q,a.l,!!a.F,a.v.dash.initialSegmentLimit,a.J);else{var v=b.O.La,A=b.$.duration||0;u={Wb:function(){return Promise.resolve(ah(m,A,v))}}}}catch(z){if(n&&4002==z.code)return null;throw z;}n=Bl(l,"ContentProtection");
|
|
540
|
+
n=Ul(n,c,a.v.dash.ignoreDrmInfo);n=new Set(n?[n]:[]);Bl(l,"SupplementalProperty").some(function(z){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==z.getAttribute("schemeIdUri")&&"JOC"==z.getAttribute("value")})&&(b.O.mimeType="audio/eac3-joc");var w={id:a.B++,originalId:b.O.id,createSegmentIndex:function(){var z;return H(function(D){if(1==D.g){if(w.segmentIndex)return D.C(0);z=w;return t(D,u.Wb(),3)}z.segmentIndex=D.h;x(D)})},segmentIndex:null,mimeType:b.O.mimeType,codecs:b.O.codecs,frameRate:b.O.frameRate,
|
|
541
|
+
pixelAspectRatio:b.O.pixelAspectRatio,bandwidth:b.bandwidth,width:b.O.width,height:b.O.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:n,language:e,label:f,type:b.za.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.O.emsgSchemeIdUris,roles:h,channelsCount:b.O.Rd,audioSamplingRate:b.O.audioSamplingRate,closedCaptions:k};return w}
|
|
542
|
+
p.Fc=function(){var a=this,b,c;return H(function(d){switch(d.g){case 1:return b=0,y(d,2),t(d,pn(a),4);case 4:b=d.h;ua(d,3);break;case 2:c=C(d),a.G&&(c.severity=1,a.G.onError(c));case 3:if(!a.G)return d["return"]();qn(a,b);x(d)}})};function qn(a,b){0>a.A||a.u.V(Math.max(3,a.A-b,$b(a.D)))}
|
|
543
|
+
function wn(a,b,c){b=b||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Rd:null,audioSamplingRate:null};c=c||b.La;var d=Bl(a,"BaseURL").map(Fl),e=a.getAttribute("contentType")||b.contentType,f=a.getAttribute("mimeType")||b.mimeType,g=a.getAttribute("codecs")||b.codecs,h=Gl(a,"frameRate",Nl)||b.frameRate,k=a.getAttribute("sar")||b.pixelAspectRatio,l=Bl(a,"InbandEventStream"),m=b.emsgSchemeIdUris.slice();l=r(l);for(var n=l.next();!n.done;n=l.next())n=
|
|
544
|
+
n.value.getAttribute("schemeIdUri"),m.includes(n)||m.push(n);l=Bl(a,"AudioChannelConfiguration");l=En(l)||b.Rd;n=Gl(a,"audioSamplingRate",Ml)||b.audioSamplingRate;e||(e=Bn(f,g));return{La:Gb(c,d),Jc:Al(a,"SegmentBase")||b.Jc,rb:Al(a,"SegmentList")||b.rb,Kc:Al(a,"SegmentTemplate")||b.Kc,width:Gl(a,"width",Ml)||b.width,height:Gl(a,"height",Ml)||b.height,contentType:e,mimeType:f,codecs:g,frameRate:h,pixelAspectRatio:k,emsgSchemeIdUris:m,id:a.getAttribute("id"),Rd:l,audioSamplingRate:n}}
|
|
545
|
+
function En(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(b=c.getAttribute("schemeIdUri"))if(c=c.getAttribute("value"))switch(b){case "urn:mpeg:dash:outputChannelPositionList:2012":return c.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(c,10);if(!b)continue;return b;case "tag:dolby.com,2014:dash:audio_channel_configuration:2011":case "urn:dolby:dash:audio_channel_configuration:2011":if(b=
|
|
546
|
+
parseInt(c,16)){for(a=0;b;)b&1&&++a,b>>=1;return a}}}return null}function Cn(a){var b=a.Jc?1:0;b+=a.rb?1:0;b+=a.Kc?1:0;if(0==b)return"text"==a.contentType||"application"==a.contentType?!0:!1;1!=b&&(a.Jc&&(a.rb=null),a.Kc=null);return!0}
|
|
547
|
+
function Fn(a,b,c,d){var e,f,g,h,k,l;return H(function(m){if(1==m.g)return e=Gb(b,[c]),f=$c(e,a.v.retryParameters),f.method=d,g=a.G.networkingEngine.request(4,f),Vc(a.i,g),t(m,g.promise,2);h=m.h;if("HEAD"==d){if(!h.headers||!h.headers.date)return m["return"](0);k=h.headers.date}else k=lc(h.data);l=Date.parse(k);return isNaN(l)?m["return"](0):m["return"](l-Date.now())})}
|
|
548
|
+
function un(a,b,c){var d,e,f,g,h,k,l,m;return H(function(n){switch(n.g){case 1:d=c.map(function(q){return{scheme:q.getAttribute("schemeIdUri"),value:q.getAttribute("value")}}),e=a.v.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=r(d),g=f.next();case 2:if(g.done){n.C(4);break}h=g.value;y(n,5);k=h.scheme;l=h.value;switch(k){case "urn:mpeg:dash:utc:http-head:2014":case "urn:mpeg:dash:utc:http-head:2012":return n.C(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.C(8);
|
|
549
|
+
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":Oa("NTP UTCTiming scheme is not supported");break;default:Oa("Unrecognized scheme in UTCTiming element",k)}n.C(9);break;case 7:return t(n,Fn(a,b,l,"HEAD"),10);case 10:return n["return"](n.h);case 8:return t(n,Fn(a,b,l,"GET"),11);case 11:return n["return"](n.h);
|
|
550
|
+
case 9:ua(n,3);break;case 5:C(n);case 3:g=f.next();n.C(2);break;case 4:return Oa("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n["return"](0)}})}
|
|
551
|
+
function xn(a,b,c,d){var e=d.getAttribute("schemeIdUri")||"",f=d.getAttribute("value")||"",g=Gl(d,"timescale",Ml)||1;d=r(Bl(d,"Event"));for(var h=d.next();!h.done;h=d.next()){h=h.value;var k=Gl(h,"presentationTime",Ml)||0,l=Gl(h,"duration",Ml)||0;k=k/g+b;l=k+l/g;null!=c&&(k=Math.min(k,b+c),l=Math.min(l,b+c));h={schemeIdUri:e,value:f,startTime:k,endTime:l,id:h.getAttribute("id")||"",eventElement:h};a.G.onTimelineRegionAdded(h)}}
|
|
552
|
+
function Dn(a,b,c,d){var e,f,g,h,k;return H(function(l){if(1==l.g)return e=gd,f=nh(b,c,d,a.v.retryParameters),g=a.G.networkingEngine,h=g.request(e,f),Vc(a.i,h),t(l,h.promise,2);k=l.h;return l["return"](k.data)})}function Bn(a,b){return lf(ud(a,b))?"text":a.split("/")[0]}L("shaka.dash.DashParser",on);zg.mpd=function(){return new on};xg["application/dash+xml"]=function(){return new on};xg["video/vnd.mpeg.dash.mpd"]=function(){return new on};function Gn(a,b,c,d){this.g=a;this.type=b;this.qa=c;this.segments=d||null}function Hn(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}Hn.prototype.toString=function(){function a(d){return d.name+"="+(isNaN(Number(d.value))?'"'+d.value+'"':d.value)}var b="#"+this.name,c=this.g?this.g.map(a):[];this.value&&c.unshift(this.value);0<c.length&&(b+=":"+c.join(","));return b};
|
|
553
|
+
Hn.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function In(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function Jn(a,b){var c=a.getAttribute(b);if(!c)throw new N(2,4,4023,b);return c.value}function Kn(a,b){this.qa=b;this.g=a}function Ln(a,b){this.name=a;this.value=b};function Mn(a,b){return a.filter(function(c){return c.name==b})}function Nn(a,b){return a.filter(function(c){return Jn(c,"TYPE")==b})}function On(a,b){var c=Mn(a,b);return c.length?c[0]:null}function Pn(a,b,c){c=void 0===c?0:c;return(a=On(a,b))?Number(a.value):c};function Qn(a){this.h=a;this.g=0}function Rn(a){Sn(a,/[ \t]+/gm)}function Sn(a,b){b.lastIndex=a.g;var c=b.exec(a.h);c=null==c?null:{position:c.index,length:c[0].length,results:c};if(a.g==a.h.length||null==c||c.position!=a.g)return null;a.g+=c.length;return c.results}function Tn(a){return a.g==a.h.length?null:(a=Sn(a,/[^ \t\n]*/gm))?a[0]:null};function Un(){this.g=0}
|
|
554
|
+
function Vn(a,b,c){b=lc(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var d=b.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(d[0]))throw new N(2,4,4015);b=0;for(var e=!0,f=r(d),g=f.next();!g.done;g=f.next())if(g=g.value,/^#(?!EXT)/m.test(g)||e)e=!1;else if(g=Wn(a.g++,g),--a.g,Xn.includes(g.name)){b=1;break}else"EXT-X-STREAM-INF"==g.name&&(e=!0);f=[];e=!0;g=r(hb(d));for(var h=g.next();!h.done;h=g.next()){var k=h.value;h=k.sa;var l=k.item;k=k.next;if(/^#(?!EXT)/m.test(l)||e)e=!1;else{l=Wn(a.g++,
|
|
555
|
+
l);if(Yn.includes(l.name)){if(1!=b)throw new N(2,4,4017);l=d.splice(h,d.length-h);d=c;e=[];g=[];h=null;l=r(l);for(k=l.next();!k.done;k=l.next())k=k.value,/^(#EXT)/.test(k)?(k=Wn(a.g++,k),Xn.includes(k.name)?f.push(k):"EXT-X-MAP"==k.name?h=k:g.push(k)):/^#(?!EXT)/m.test(k)||(k=Gb([d],[k.trim()])[0],h&&g.push(h),e.push(new Kn(k,g)),g=[]);return new Gn(c,b,f,e)}f.push(l);"EXT-X-STREAM-INF"==l.name&&(l.g.push(new Ln("URI",k)),e=!0)}}return new Gn(c,b,f)}
|
|
556
|
+
function Wn(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new N(2,4,4016,b);var d=c[1],e=c[2];c=[];var f;if(e){e=new Qn(e);var g;(g=Sn(e,/^([^,=]+)(?:,|$)/g))&&(f=g[1]);for(var h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=Sn(e,h);)c.push(new Ln(g[1],g[2]||g[3]))}return new Hn(a,d,c,f)}var Xn="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST".split(" "),Yn="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function Zn(){}function $n(a){try{var b=ao(a);return Kc({uri:a,Me:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return Ic(c)}}function ao(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new N(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new N(2,1,1004,a);var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"==b[b.length-1]&&(d=!0,b.pop());var e;d?e=vc(a):e=pc(a);return{data:e,contentType:c}}
|
|
557
|
+
L("shaka.net.DataUriPlugin",Zn);Zn.parse=$n;Xc("data",$n);function bo(){var a=this;this.v=this.G=null;this.ra=1;this.A=new Map;this.l=new Map;this.ka=new Set;this.h=new Map;this.g=null;this.S="";this.N=new Un;this.ba=0;this.u=new O(function(){a.Fc()});this.i=co;this.F=null;this.X=0;this.aa=Infinity;this.B=new Uc;this.K=[];this.H=new Map;this.ua=!1;this.j=new Map;this.J=null;this.P=new Map;this.D=new Map}p=bo.prototype;p.configure=function(a){this.v=a};
|
|
558
|
+
p.start=function(a,b){var c=this,d,e;return H(function(f){if(1==f.g)return c.G=b,t(f,eo(c,$c([a],c.v.retryParameters),0),2);if(3!=f.g)return d=f.h,c.S=d.uri,t(f,fo(c,d.data),3);e=c.ba;0<e&&c.u.V(e);return f["return"](c.F)})};p.stop=function(){this.u&&(this.u.stop(),this.u=null);var a=[];this.B&&(a.push(this.B.destroy()),this.B=null);this.v=this.G=null;this.ka.clear();this.F=null;this.h.clear();this.l.clear();this.j.clear();this.A.clear();return Promise.all(a)};
|
|
559
|
+
p.update=function(){var a=this,b,c,d;return H(function(e){if(1==e.g){if(a.i==co)return e["return"]();b=[];a.J=null;c=Array.from(a.h.values());return c.length?t(e,go(a,c[0]),2):e.C(2)}for(d=1;d<c.length;d++)b.push(go(a,c[d]));return t(e,Promise.all(b),0)})};
|
|
560
|
+
function go(a,b){var c,d,e,f,g,h,k,l,m,n;return H(function(q){if(1==q.g)return c=ho,d=b.ef,t(q,eo(a,$c([d],a.v.retryParameters),0),2);if(3!=q.g){e=q.h;f=Vn(a.N,e.data,e.uri);if(1!=f.type)throw new N(2,4,4017);g=Mn(f.qa,"EXT-X-DEFINE");h=io(a,g);k=b.stream;return t(q,jo(a,b.qd,f,k.mimeType,b.He,h),3)}l=q.h;k.segmentIndex.ac(l,a.g.fb());l.length&&k.segmentIndex.xb(l[0].startTime);m=l[l.length-1];if(n=On(f.qa,"EXT-X-ENDLIST"))ko(a,c.df),a.g.Ya(m.endTime);x(q)})}p.onExpirationUpdated=function(){};
|
|
561
|
+
function fo(a,b){var c,d,e,f,g,h,k,l,m,n,q,u,v,A,w,z,D,B,E,F,I,G,J,K;return H(function(P){switch(P.g){case 1:c=Vn(a.N,b,a.S);if(0!=c.type)throw new N(2,4,4022);d=Mn(c.qa,"EXT-X-DEFINE");lo(a,d);e=Mn(c.qa,"EXT-X-MEDIA");f=Mn(c.qa,"EXT-X-STREAM-INF");mo(a,f);return t(P,no(a,e),2);case 2:return oo(a,e),t(P,po(a,f),3);case 3:return g=P.h,t(P,qo(a,e),4);case 4:h=P.h;if(!a.G)throw new N(2,7,7001);if(a.ua&&0==g.length)throw new N(2,4,4034);l=k=Infinity;m=r(a.h.values());for(n=m.next();!n.done;n=m.next())q=
|
|
562
|
+
n.value,k=Math.min(k,q.Ie),"text"!=q.stream.type&&(l=Math.min(l,q.Wf-q.Ie));a.i!=co?(a.g=new Q(0,a.v.defaultPresentationDelay||3*a.X),a.g.Lc(!1)):(a.g=new Q(null,0),a.g.Lc(!0));ro(a);if(a.i!=co)a.ba=a.aa,u=ho,a.i==u.cf&&(v=a.g.kd,isNaN(a.v.availabilityWindowOverride)||(v=a.v.availabilityWindowOverride),a.g.ce(v));else for(a.g.Ya(l),a.g.offset(-k),A=r(a.h.values()),n=A.next();!n.done;n=A.next())w=n.value,w.stream.segmentIndex.offset(-k),w.stream.segmentIndex.ob(0,l);a.K=[];z=[];D=r(g);for(B=D.next();!B.done;B=
|
|
563
|
+
D.next())for(E=B.value,F=r([E.video,E.audio]),I=F.next();!I.done;I=F.next())(G=I.value)&&z.push(G);return t(P,Promise.all(z.map(function(T){return H(function(Da){return t(Da,T.createSegmentIndex(),0)})})),5);case 5:J=r(z);for(I=J.next();!I.done;I=J.next())K=I.value,a.K.push(K.segmentIndex.R);ro(a);a.F={presentationTimeline:a.g,variants:g,textStreams:h,offlineSessionIds:[],minBufferTime:0};a.G.makeTextStreamsForClosedCaptions(a.F);return t(P,a.G.filter(a.F),0)}})}
|
|
564
|
+
function lo(a,b){for(var c=r(b),d=c.next();!d.done;d=c.next()){var e=d.value;d=In(e,"NAME");e=In(e,"VALUE");d&&e&&(a.A.has(d)||a.A.set(d,e))}}function io(a,b){for(var c=new Map,d=r(b),e=d.next();!e.done;e=d.next()){var f=e.value;e=In(f,"NAME");var g=In(f,"VALUE");f=In(f,"IMPORT");e&&g&&c.set(e,g);f&&(e=a.A.get(f))&&c.set(f,e)}return c}
|
|
565
|
+
function mo(a,b){for(var c=r(b),d=c.next();!d.done;d=c.next()){var e=d.value,f=In(e,"AUDIO");d=In(e,"VIDEO");var g=In(e,"SUBTITLES");e=so(a,e);if(g){var h=to("text",e);a.j.set(g,h);Rc(e,h)}f&&(g=uo("audio",e),a.j.set(f,g));d&&(f=uo("video",e),a.j.set(d,f))}}
|
|
566
|
+
function qo(a,b){var c,d,e,f,g,h,k,l,m,n,q,u;return H(function(v){if(1==v.g)return c=Nn(b,"SUBTITLES"),d=c.map(function(A){var w,z,D;return H(function(B){if(1==B.g){if(w=a.v.disableText)return B["return"](null);y(B,2);return t(B,vo(a,A),4)}if(2!=B.g)return z=B.h,B["return"](z.stream);D=C(B);if(a.v.hls.ignoreTextStreamFailures)return B["return"](null);throw D;})}),t(v,Promise.all(d),2);e=v.h;f=r(c);for(g=f.next();!g.done;g=f.next())if(h=g.value,k=Jn(h,"GROUP-ID"),l=a.j.get(k))if(m=a.l.get(k))for(n=
|
|
567
|
+
r(m),q=n.next();!q.done;q=n.next())u=q.value,u.stream.codecs=l;return v["return"](e.filter(function(A){return A}))})}function no(a,b){var c;return H(function(d){if(1==d.g)return b=b.filter(function(e){var f=In(e,"URI")||"";return"SUBTITLES"!=In(e,"TYPE")&&""!=f}),b.length?t(d,vo(a,b[0]),2):d.C(2);c=b.slice(1).map(function(e){return vo(a,e)});return t(d,Promise.all(c),0)})}
|
|
568
|
+
function po(a,b){var c,d,e;return H(function(f){if(1==f.g)return c=b.map(function(g){var h,k,l,m,n,q,u;return H(function(v){if(1==v.g)return h=In(g,"FRAME-RATE"),k=Number(In(g,"AVERAGE-BANDWIDTH"))||Number(Jn(g,"BANDWIDTH")),l=In(g,"RESOLUTION"),m=r(l?l.split("x"):[null,null]),n=m.next().value,q=m.next().value,t(v,wo(a,g),2);if(u=v.h){for(var A=v["return"],w=u.audio,z=u.video,D=r(z),B=D.next();!B.done;B=D.next())if(B=B.value.stream)B.width=Number(n)||void 0,B.height=Number(q)||void 0,B.frameRate=
|
|
569
|
+
Number(h)||void 0;D=a.v.disableAudio;if(!w.length||D)w=[null];D=a.v.disableVideo;if(!z.length||D)z=[null];D=[];w=r(w);for(B=w.next();!B.done;B=w.next()){B=B.value;for(var E=r(z),F=E.next();!F.done;F=E.next()){var I=F.value;F=B?B.stream:null;var G=I?I.stream:null,J=B?B.stream.drmInfos:null,K=I?I.stream.drmInfos:null;I=(I?I.qd:"")+" - "+(B?B.qd:"");F&&G&&J.length&&K.length&&!(0<se(J,K).length)||a.ka.has(I)||(F={id:a.ra++,language:F?F.language:"und",primary:!!F&&F.primary||!!G&&G.primary,audio:F,video:G,
|
|
570
|
+
bandwidth:k,allowedByApplication:!0,allowedByKeySystem:!0},D.push(F),a.ka.add(I))}}v=A.call(v,D)}else v=v["return"]([]);return v})}),t(f,Promise.all(c),2);d=f.h;e=d.reduce(Cb,[]);e=e.filter(function(g){return null!=g});return f["return"](e)})}
|
|
571
|
+
function wo(a,b){var c,d,e,f,g,h,k,l,m,n,q,u,v,A;return H(function(w){if(1==w.g)return c=Ib,d=so(a,b),e=In(b,"AUDIO"),f=In(b,"VIDEO"),h=(g=e||f)&&a.l.has(g)?a.l.get(g):[],k={audio:e?h:[],video:f?h:[]},m=!1,n=Jn(b,"URI"),q=k.audio.find(function(z){return z&&z.qd==n}),u=to(c.bb,d),(v=to(c.tb,d))&&!u?l=c.tb:!h.length&&v&&u?(l=c.bb,d=[[u,v].join()]):k.audio.length&&q?(l=c.tb,m=!0):l=k.video.length?c.tb:c.bb,m?w.C(2):t(w,xo(a,b,d,l),3);2!=w.g&&(A=w.h);if(A)k[A.stream.type]=[A];else if(null===A)return w["return"](null);
|
|
572
|
+
yo(k);return w["return"](k)})}function so(a,b){var c=[];a.v.disableVideo||c.push("avc1.42E01E");a.v.disableAudio||c.push("mp4a.40.2");var d=In(b,"CODECS",c.join(",")).split(/\s*,\s*/);c=new Set;var e=[];d=r(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=xd(f);c.has(g)||(e.push(f),c.add(g))}return e}function zo(a){a=In(a,"LANGUAGE")||"und";return Mb(a)}
|
|
573
|
+
function yo(a){a=r(a.audio.concat(a.video));for(var b=a.next();!b.done;b=a.next())if(b=b.value){var c=b.stream.codecs.split(",");c=c.filter(function(d){return"mp4a.40.34"!=d});b.stream.codecs=c.join(",")}}function oo(a,b){var c=Nn(b,"CLOSED-CAPTIONS");c=r(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;d=zo(e);var f=Jn(e,"GROUP-ID");e=Jn(e,"INSTREAM-ID");a.H.get(f)||a.H.set(f,new Map);a.H.get(f).set(e,d)}}
|
|
574
|
+
function vo(a,b){var c,d,e,f,g,h,k,l,m,n,q;return H(function(u){if(1==u.g){c=Jn(b,"GROUP-ID");d="";var v=Jn(b,"TYPE").toLowerCase();"subtitles"==v&&(v="text");e=v;"text"!=e&&c&&a.j.has(c)&&(d=a.j.get(c));f=Ao(Jn(b,"URI"),a.A);if(a.h.has(f))return u["return"](a.h.get(f));g=zo(b);h=In(b,"NAME");k=In(b,"DEFAULT");l="YES"==k;"audio"==e?v=(v=In(b,"CHANNELS"))?parseInt(v.split("/")[0],10):null:v=null;m=v;n=In(b,"CHARACTERISTICS");return t(u,Bo(a,f,d,e,g,l,h,m,null,n),2)}q=u.h;a.l.has(c)?a.l.get(c).push(q):
|
|
573
575
|
a.l.set(c,[q]);if(null==q)return u["return"](null);if(a.h.has(f))return u["return"](a.h.get(f));a.h.set(f,q);return u["return"](q)})}
|
|
574
|
-
function
|
|
575
|
-
function
|
|
576
|
-
I.value,
|
|
577
|
-
|
|
578
|
-
width:void 0,height:void 0,bandwidth:void 0,roles:
|
|
579
|
-
function
|
|
580
|
-
function
|
|
581
|
-
function
|
|
582
|
-
break}B=
|
|
583
|
-
function
|
|
584
|
-
function
|
|
585
|
-
e.uris[0]);return t(k,
|
|
586
|
-
function
|
|
587
|
-
w.h,u=q[0],v=q[1]||q[0],w["return"](
|
|
588
|
-
function
|
|
589
|
-
function
|
|
590
|
-
var l=f.
|
|
591
|
-
function
|
|
592
|
-
function
|
|
593
|
-
function
|
|
594
|
-
|
|
595
|
-
var
|
|
596
|
-
cmfv:"video/mp4",ts:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",vtt:"text/vtt",ttml:"application/ttml+xml"}},
|
|
597
|
-
return b}},
|
|
598
|
-
function
|
|
599
|
-
v-l),m=l,n=
|
|
600
|
-
function
|
|
601
|
-
function
|
|
602
|
-
c);k(A)}catch(w){l(w)}};e.onerror=function(n){l(new
|
|
603
|
-
|
|
604
|
-
function
|
|
605
|
-
function
|
|
606
|
-
function
|
|
607
|
-
p.updateManifestExpiration=function(a,b){var c=
|
|
608
|
-
p.getAllManifests=function(){var a=this,b,c;return
|
|
609
|
-
p.add=function(a,b){var c=this,d,e,f,g,h,k,l;return
|
|
610
|
-
function
|
|
611
|
-
function
|
|
612
|
-
|
|
613
|
-
function
|
|
614
|
-
function
|
|
615
|
-
function
|
|
616
|
-
|
|
617
|
-
function
|
|
618
|
-
function
|
|
619
|
-
initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e}}),variantIds:a.variantIds,roles:[],audioSamplingRate:null,channelsCount:null,closedCaptions:null}}
|
|
620
|
-
function
|
|
621
|
-
f=r(b),d=f.next();!d.done;d=f.next())d.value.variantIds.push(e);if(a.length&&b.length)for(b=r(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=r(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function
|
|
622
|
-
|
|
576
|
+
function xo(a,b,c,d){var e,f,g,h;return H(function(k){if(1==k.g){e=Ao(Jn(b,"URI"),a.A);if(a.h.has(e))return k["return"](a.h.get(e));var l=In(b,"CLOSED-CAPTIONS");f="video"==d&&l&&"NONE"!=l?a.H.get(l):null;g=uo(d,c);return t(k,Bo(a,e,g,d,"und",!1,null,null,f,null),2)}h=k.h;if(null==h)return k["return"](null);if(a.h.has(e))return k["return"](a.h.get(e));a.h.set(e,h);return k["return"](h)})}
|
|
577
|
+
function Bo(a,b,c,d,e,f,g,h,k,l){var m,n,q,u,v,A,w,z,D,B,E,F,I,G,J,K,P,T,Da,ha,jb,Kb,ad,Ya,Lb,Wd,wh,Qm,Rm,Sm,Tm,xh,yh,of,Um,Vm;return H(function(Za){switch(Za.g){case 1:return m=Gb([a.S],[b])[0],t(Za,eo(a,$c([m],a.v.retryParameters),0),2);case 2:n=Za.h;m=n.uri;q=Vn(a.N,n.data,m);if(1!=q.type)throw new N(2,4,4017);u=[];if(q.segments)for(v=r(q.segments),A=v.next();!A.done;A=v.next())w=A.value,z=Mn(w.qa,"EXT-X-KEY"),u.push.apply(u,ia(z));D=!1;B=[];E=new Set;F=r(u);for(I=F.next();!I.done;I=F.next())if(G=
|
|
578
|
+
I.value,J=Jn(G,"METHOD"),"NONE"!=J){D=!0;if("AES-128"==J)return a.ua=!0,Za["return"](null);K=Jn(G,"KEYFORMAT");if(T=(P=Co[K])?P(G):null){if(T.keyIds)for(Da=r(T.keyIds),ha=Da.next();!ha.done;ha=Da.next())jb=ha.value,E.add(jb);B.push(T)}}if(D&&!B.length)throw new N(2,4,4026);Kb=Mn(q.qa,"EXT-X-DEFINE");ad=io(a,Kb);Do(a,q);return t(Za,Eo(a,d,c,q,ad),3);case 3:return Ya=Za.h,Fo.includes(Ya)&&(c=""),Lb=new Map,y(Za,4),t(Za,jo(a,b,q,Ya,Lb,ad),6);case 6:Wd=Za.h;ua(Za,5);break;case 4:wh=C(Za);if(4035==wh.code)return Oa("Skipping unsupported HLS stream",
|
|
579
|
+
Ya,b),Za["return"](null);throw wh;case 5:Qm=Wd[0].startTime;Rm=Wd[Wd.length-1].endTime;Sm=new R(Wd);Tm="text"==d?"subtitle":void 0;xh=[];if(l)for(yh=r(l.split(",")),of=yh.next();!of.done;of=yh.next())Um=of.value,xh.push(Um);Vm={id:a.ra++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Sm,mimeType:Ya,codecs:c,kind:Tm,encrypted:D,drmInfos:B,keyIds:E,language:e,label:g,type:d,primary:f,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,
|
|
580
|
+
width:void 0,height:void 0,bandwidth:void 0,roles:xh,channelsCount:h,audioSamplingRate:null,closedCaptions:k};return Za["return"]({stream:Vm,qd:b,ef:m,Ie:Qm,Wf:Rm,He:Lb})}})}function Do(a,b){var c=On(b.qa,"EXT-X-PLAYLIST-TYPE"),d=On(b.qa,"EXT-X-ENDLIST");d=c&&"VOD"==c.value||d;c=c&&"EVENT"==c.value&&!d;c=!d&&!c;d?ko(a,co):(c?ko(a,Go):ko(a,Ho),d=Io(b.qa,"EXT-X-TARGETDURATION"),d=Number(d.value),a.X=Math.max(d,a.X),a.aa=Math.min(d,a.aa))}
|
|
581
|
+
function Jo(a,b,c,d){c=On(c,"EXT-X-MAP");if(!c)return null;var e=Jn(c,"URI");d=Ao(Gb([b],[e])[0],d);b=[d,In(c,"BYTERANGE","")].join("-");a.P.has(b)||(c=Ko(d,c),a.P.set(b,c));return a.P.get(b)}function Ko(a,b){var c=0,d=null,e=In(b,"BYTERANGE");e&&(c=e.split("@"),d=Number(c[0]),c=Number(c[1]),d=c+d-1);return new Bg(function(){return[a]},c,d)}
|
|
582
|
+
function Lo(a,b,c,d,e,f){var g=c.qa,h=Ao(c.g,f);c=Io(g,"EXTINF").value.split(",");c=d+Number(c[0]);f=0;var k=null;if(g=On(g,"EXT-X-BYTERANGE"))f=g.value.split("@"),g=Number(f[0]),f=f[1]?Number(f[1]):b.g+1,k=f+g-1;return new Dg(d,c,function(){return[h]},f,k,a,e,0,Infinity)}function ro(a){if(a.g){for(var b=r(a.K),c=b.next();!c.done;c=b.next())a.g.cc(c.value);a.K=[]}}
|
|
583
|
+
function jo(a,b,c,d,e,f){var g,h,k,l,m,n,q,u,v,A,w,z,D,B,E,F,I,G,J,K,P;return H(function(T){switch(T.g){case 1:g=c.segments;k=Pn(c.qa,"EXT-X-MEDIA-SEQUENCE",0);if(a.i!=co&&e.has(k)){l=e.get(k);T.C(2);break}if(null!=a.J){T.C(3);break}h=Jo(a,c.g,g[0].qa,f);m=a;return t(T,Mo(a,b,h,d,k,!1,g[0],f),4);case 4:m.J=T.h;case 3:l=a.J;case 2:n=g[0].g,Sa(n.split("/").pop()),q=Pn(c.qa,"EXT-X-DISCONTINUITY-SEQUENCE"),u=a.D.get(q)||0,v=[],A=function(Da){return hb(Da)},w=r(A(g)),z=w.next();case 5:if(z.done){T.C(7);
|
|
584
|
+
break}B=D=z.value;E=B.sa;F=B.item;I=v[v.length-1];G=0==E?l:I.endTime;J=k+E;e.set(J,G);h=Jo(a,c.g,F.qa,f);K=On(F.qa,"EXT-X-DISCONTINUITY");if(!K){T.C(8);break}q++;return t(T,No(a,q,b,h,d,J,F,f,G),9);case 9:u=T.h;case 8:P=Lo(h,I,F,G,u,f);v.push(P);z=w.next();T.C(5);break;case 7:return T["return"](v)}})}
|
|
585
|
+
function No(a,b,c,d,e,f,g,h,k){var l,m;return H(function(n){if(1==n.g)return l=0,a.D.has(b)?(l=a.D.get(b),n.C(2)):t(n,Mo(a,c,d,e,f,!0,g,h),3);2!=n.g&&(m=n.h,l=k-m,a.D.set(b,l));return n["return"](l)})}
|
|
586
|
+
function Oo(a,b){var c,d,e,f,g,h;return H(function(k){switch(k.g){case 1:c=gd;d=nh(b.Ma(),b.h,b.g,a.v.retryParameters);if(a.v.hls.useFullSegmentsForStartTime)return k["return"](eo(a,d,c));e=nh(b.Ma(),b.h,b.h+2048-1,a.v.retryParameters);y(k,2);return t(k,eo(a,e,c),4);case 4:return f=k.h,k["return"](f);case 2:g=C(k);if(7001==g.code)throw g;Oa("Unable to fetch a partial HLS segment! Falling back to a full segment request, which is expensive! Your server should support Range requests and CORS preflights.",
|
|
587
|
+
e.uris[0]);return t(k,eo(a,d,c),5);case 5:return h=k.h,k["return"](h)}})}
|
|
588
|
+
function Mo(a,b,c,d,e,f,g,h){var k,l,m,n,q,u,v,A;return H(function(w){switch(w.g){case 1:k=Lo(c,null,g,0,0,h);if(a.F&&!f&&(l=a.h.get(b),m=l.He.get(e),void 0!=m))return w["return"](m);d=d.toLowerCase();if(Fo.includes(d))throw Oa("Raw formats are not yet supported. Skipping "+d),new N(1,4,4035);if("video/webm"==d)throw Oa("WebM in HLS is not yet supported. Skipping."),new N(1,4,4035);if("video/mp4"!=d&&"audio/mp4"!=d){w.C(2);break}n=[Oo(a,k)];c&&n.push(Oo(a,c));return t(w,Promise.all(n),3);case 3:return q=
|
|
589
|
+
w.h,u=q[0],v=q[1]||q[0],w["return"](Po(b,u.uri,u.data,v.data));case 2:if("video/mp2t"!=d){w.C(4);break}return t(w,Oo(a,k),5);case 5:return A=w.h,w["return"](Qo(b,A.uri,A.data));case 4:throw new N(2,4,4030,b);}})}
|
|
590
|
+
function Po(a,b,c,d){var e=0;(new ye).box("moov",Ce).box("trak",Ce).box("mdia",Ce).ea("mdhd",function(h){h.reader.skip(0==h.version?8:16);e=h.reader.T();h.parser.stop()}).parse(d,!0);if(!e)throw new N(2,4,4030,a,b);var f=0,g=!1;(new ye).box("moof",Ce).box("traf",Ce).ea("tfdt",function(h){f=(0==h.version?h.reader.T():h.reader.Ib())/e;g=!0;h.parser.stop()}).parse(c,!0);if(!g)throw new N(2,4,4030,a,b);return f}
|
|
591
|
+
function Qo(a,b,c){function d(){f.seek(g+188);h=f.Oa();71!=h&&(f.seek(g+192),h=f.Oa());71!=h&&(f.seek(g+204),h=f.Oa());71!=h&&e();f.Qe(1)}function e(){throw new N(2,4,4030,a,b);}var f=new ve(c,0),g=0,h=0;for(c=Math.min(f.Y.byteLength-188,940);;){g=f.L;h=f.Oa();if(71!=h){if(0<c){--c;continue}e()}c=0;var k=f.Ic();if(8191==(k&8191))d();else if(k&16384)if(k=(f.Oa()&48)>>4,0!=k&&2!=k||e(),3==k&&(k=f.Oa(),f.skip(k)),1!=f.T()>>8)d();else{f.skip(3);c=f.Oa()>>6;0!=c&&1!=c||e();0==f.Oa()&&e();c=f.Oa();k=f.Ic();
|
|
592
|
+
var l=f.Ic();return(1073741824*((c&14)>>1)+((k&65534)<<14|(l&65534)>>1))/9E4}else d()}}function uo(a,b){if(1==b.length)return b[0];var c=to(a,b);if(null!=c)return c;throw new N(2,4,4025,b);}function to(a,b){for(var c=r(Ro[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=r(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return"text"==a?"":null}
|
|
593
|
+
function Ao(a,b){var c=String(a).replace(/%7B/g,"{").replace(/%7D/g,"}"),d=c.match(/{\$\w*}/g);if(d){d=r(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=e.slice(2,e.length-1),g=b.get(f);if(g)c=c.replace(e,g);else throw new N(2,4,4039,f);}}return c}
|
|
594
|
+
function Eo(a,b,c,d,e){var f,g,h,k,l,m,n,q,u,v,A;return H(function(w){if(1==w.g){f=Ib;g=gd;h=Ao(d.segments[0].g,e);k=new kb(h);l=k.Ia.split(".").pop();m=So[b];if(n=m[l])return w["return"](n);if(b==f.ya)return c&&"vtt"!=c&&"wvtt"!=c?w["return"]("application/mp4"):w["return"]("text/vtt");q=$c([h],a.v.retryParameters);q.method="HEAD";return t(w,eo(a,q,g),2)}u=w.h;v=u.headers["content-type"];return v?w["return"](v.split(";")[0]):(A=m.mp4,w["return"](A))})}
|
|
595
|
+
function Io(a,b){var c=On(a,b);if(!c)throw new N(2,4,4024,b);return c}p.Fc=function(){var a=this,b,c;return H(function(d){if(1==d.g){if(!a.G)return d["return"]();y(d,2);return t(d,a.update(),4)}if(2!=d.g)return b=a.ba,a.u.V(b),ua(d,0);c=C(d);if(!a.G)return d["return"]();c.severity=1;a.G.onError(c);a.u.V(.1);x(d)})};function ko(a,b){a.i=b;a.g&&a.g.Lc(a.i==co);a.i!=co||a.u.stop()}function eo(a,b,c){if(!a.B)throw new N(2,7,7001);b=a.G.networkingEngine.request(c,b);Vc(a.B,b);return b.promise}
|
|
596
|
+
L("shaka.hls.HlsParser",bo);
|
|
597
|
+
var Ro={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]},Fo=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"],So={audio:{mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},video:{mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",
|
|
598
|
+
cmfv:"video/mp4",ts:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",vtt:"text/vtt",ttml:"application/ttml+xml"}},Co={"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=Jn(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;b=Jn(a,"URI");b=ao(b);b=ec(b.data);b=Hb("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=In(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);
|
|
599
|
+
return b}},co="VOD",Ho="EVENT",Go="LIVE",ho={df:co,Dg:Ho,cf:Go};zg.m3u8=function(){return new bo};xg["application/x-mpegurl"]=function(){return new bo};xg["application/vnd.apple.mpegurl"]=function(){return new bo};function To(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,Me:d,data:b,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=oc(b)}catch(g){}throw new N(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function Uo(){}function Vo(a,b,c,d){var e=new Wo;rd(b.headers).forEach(function(k,l){e.append(l,k)});var f=new Xo,g={re:!1,Ze:!1};a=Yo(a,c,{body:b.body||void 0,headers:e,method:b.method,signal:f.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},g,d);a=new Hc(a,function(){g.re=!0;f.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var h=new O(function(){g.Ze=!0;f.abort()});h.V(b/1E3);a["finally"](function(){h.stop()})}return a}
|
|
600
|
+
function Yo(a,b,c,d,e){var f,g,h,k,l,m,n,q,u,v,A,w,z,D;return H(function(B){switch(B.g){case 1:return f=Zo,g=$o,m=l=0,n=Date.now(),y(B,2),t(B,f(a,c),4);case 4:return h=B.h,q=h.clone().body.getReader(),v=(u=h.headers.get("Content-Length"))?parseInt(u,10):0,A=function(E){function F(){var I,G;return H(function(J){switch(J.g){case 1:return y(J,2),t(J,q.read(),4);case 4:I=J.h;ua(J,3);break;case 2:return C(J),J["return"]();case 3:I.done||(l+=I.value.byteLength);G=Date.now();if(100<G-n||I.done)e(G-n,l-m,
|
|
601
|
+
v-l),m=l,n=G;I.done?E.close():(E.enqueue(I.value),F());x(J)}})}F()},new g({start:A}),t(B,h.arrayBuffer(),5);case 5:k=B.h;ua(B,3);break;case 2:w=C(B);if(d.re)throw new N(1,1,7001,a,b);if(d.Ze)throw new N(1,1,1003,a,b);throw new N(1,1,1002,a,w,b);case 3:return z={},D=h.headers,D.forEach(function(E,F){z[F.trim()]=E}),B["return"](To(z,k,h.status,a,h.url,b))}})}
|
|
602
|
+
function ap(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;return!(!window.fetch||!window.AbortController)}L("shaka.net.HttpFetchPlugin",Uo);Uo.isSupported=ap;Uo.parse=Vo;var Zo=window.fetch,Xo=window.AbortController,$o=window.ReadableStream,Wo=window.Headers;ap()&&(Xc("http",Vo,2),Xc("https",Vo,2));function bp(){}
|
|
603
|
+
function cp(a,b,c,d){var e=new dp,f=Date.now(),g=0,h=new Promise(function(k,l){e.open(b.method,a,!0);e.responseType="arraybuffer";e.timeout=b.retryParameters.timeout;e.withCredentials=b.allowCrossSiteCredentials;e.onabort=function(){l(new N(1,1,7001,a,c))};e.onload=function(n){n=n.target;var q=n.getAllResponseHeaders().trim().split("\r\n"),u={};q=r(q);for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),u[v[0].toLowerCase()]=v.slice(1).join(": ");try{var A=To(u,n.response,n.status,a,n.responseURL,
|
|
604
|
+
c);k(A)}catch(w){l(w)}};e.onerror=function(n){l(new N(1,1,1002,a,n,c))};e.ontimeout=function(){l(new N(1,1,1003,a,c))};e.onprogress=function(n){var q=Date.now();if(100<q-f||n.lengthComputable&&n.loaded==n.total)d(q-f,n.loaded-g,n.total-n.loaded),g=n.loaded,f=q};for(var m in b.headers)e.setRequestHeader(m.toLowerCase(),b.headers[m]);e.send(b.body)});return new Hc(h,function(){e.abort();return Promise.resolve()})}L("shaka.net.HttpXHRPlugin",bp);bp.parse=cp;var dp=window.XMLHttpRequest;
|
|
605
|
+
Xc("http",cp,1);Xc("https",cp,1);function ep(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function fp(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}ep.prototype.close=function(a,b){if(this.g.has(a)){var c=this.g.get(a);this.g["delete"](a);this.j+=c;this.h+=b}};function gp(a){var b=this;this.Z=a;this.g=new Map;this.M=new hd(function(){return hp(b)["catch"](function(){})});this.h=[];this.Ne=function(){};this.Le=function(){};this.pc=new ep}gp.prototype.destroy=function(){return this.M.destroy()};function ip(a,b,c){a.Ne=b;a.Le=c}function hp(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
|
|
606
|
+
function jp(a,b,c,d,e,f){id(a.M);var g=fp(a.pc,d);d=(a.g.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,q,u;return H(function(v){if(1==v.g)return t(v,kp(a,c),2);h=v.h;if(a.M.g)throw new N(2,9,7001);if(e)for(m in k=ec(h),l=new yl(k),l.data)n=Number(m),q=l.data[n],u=l.g[n],a.Le(q,u);a.pc.close(g,h.byteLength);var A=a.pc;a.Ne(0==A.i?0:A.j/A.i,a.pc.h);return v["return"](f(h))})});a.g.set(b,d);return d}
|
|
607
|
+
function lp(a,b,c){id(a.M);var d=(a.g.get(b)||Promise.resolve()).then(function(){return H(function(e){return t(e,c(),0)})});a.g.set(b,d)}function mp(a){return H(function(b){return 1==b.g?t(b,Promise.all(a.g.values()),2):b["return"](a.pc.h)})}function kp(a,b){var c,d,e,f;return H(function(g){if(1==g.g)return c=gd,d=a.Z.request(c,b),e=function(){return d.abort()},a.h.push(e),t(g,d.promise,2);f=g.h;Rc(a.h,e);return g["return"](f.data)})};function np(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new ic;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}np.prototype.abort=function(){var a=this;return H(function(b){if(1==b.g){try{a.i.abort()}catch(c){}y(b,2);return t(b,a.g,4)}if(2!=b.g)return ua(b,0);C(b);x(b)})};
|
|
608
|
+
function op(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return H(function(g){if(1==g.g){if(null==e.result)return c(),g["return"]();f=e.result;return t(g,b(f.key,f.value,f),2)}f["continue"]();x(g)})}})}np.prototype.store=function(){return this.h};np.prototype.promise=function(){return this.g};function pp(a){this.h=a;this.g=[]}pp.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function qp(a,b){return rp(a,b,"readwrite")}function rp(a,b,c){c=a.h.transaction([b],c);var d=new np(c,b);a.g.push(d);d.promise().then(function(){Rc(a.g,d)},function(){Rc(a.g,d)});return d};function sp(a,b,c){this.g=new pp(a);this.i=b;this.h=c}p=sp.prototype;p.destroy=function(){return this.g.destroy()};p.hasFixedKeySpace=function(){return!0};p.addSegments=function(){return tp(this.i)};p.removeSegments=function(a,b){return up(this,this.i,a,b)};p.getSegments=function(a){var b=this,c;return H(function(d){if(1==d.g)return t(d,vp(b,b.i,a),2);c=d.h;return d["return"](c.map(function(e){return b.ve(e)}))})};p.addManifests=function(){return tp(this.h)};
|
|
609
|
+
p.updateManifestExpiration=function(a,b){var c=qp(this.g,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()};p.removeManifests=function(a,b){return up(this,this.h,a,b)};p.getManifests=function(a){var b=this,c;return H(function(d){if(1==d.g)return t(d,vp(b,b.h,a),2);c=d.h;return d["return"](Promise.all(c.map(function(e){return b.sc(e)})))})};
|
|
610
|
+
p.getAllManifests=function(){var a=this,b,c;return H(function(d){return 1==d.g?(b=rp(a.g,a.h,"readonly"),c=new Map,t(d,op(b,function(e,f){var g;return H(function(h){if(1==h.g)return t(h,a.sc(f),2);g=h.h;c.set(e,g);x(h)})}),2)):3!=d.g?t(d,b.promise(),3):d["return"](c)})};p.ve=function(a){return a};p.sc=function(a){return Promise.resolve(a)};function tp(a){return Promise.reject(new N(2,9,9011,"Cannot add new value to "+a))}
|
|
611
|
+
p.add=function(a,b){var c=this,d,e,f,g,h,k,l;return H(function(m){if(1==m.g){d=qp(c.g,a);e=d.store();f=[];g={};h=r(b);for(k=h.next();!k.done;g={Qc:g.Qc},k=h.next())l=k.value,g.Qc=e.add(l),g.Qc.onsuccess=function(n){return function(){f.push(n.Qc.result)}}(g);return t(m,d.promise(),2)}return m["return"](f)})};
|
|
612
|
+
function up(a,b,c,d){a=qp(a.g,b);b=a.store();var e={};c=r(c);for(var f=c.next();!f.done;e={Pc:e.Pc},f=c.next())e.Pc=f.value,b["delete"](e.Pc).onsuccess=function(g){return function(){return d(g.Pc)}}(e);return a.promise()}
|
|
613
|
+
function vp(a,b,c){var d,e,f,g,h,k,l;return H(function(m){if(1==m.g){d=rp(a.g,b,"readonly");e=d.store();f={};g=[];h={};k=r(c);for(l=k.next();!l.done;h={mc:h.mc,ic:h.ic},l=k.next())h.ic=l.value,h.mc=e.get(h.ic),h.mc.onsuccess=function(n){return function(){void 0==n.mc.result&&g.push(n.ic);f[n.ic]=n.mc.result}}(h);return t(m,d.promise(),2)}if(g.length)throw new N(2,9,9012,"Could not find values for "+g);return m["return"](c.map(function(n){return f[n]}))})};function wp(a){this.g=new pp(a)}wp.prototype.destroy=function(){return this.g.destroy()};wp.prototype.getAll=function(){var a=this,b,c;return H(function(d){return 1==d.g?(b=rp(a.g,"session-ids","readonly"),c=[],t(d,op(b,function(e,f){c.push(f)}),2)):3!=d.g?t(d,b.promise(),3):d["return"](c)})};wp.prototype.add=function(a){var b=qp(this.g,"session-ids"),c=b.store();a=r(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()};
|
|
614
|
+
wp.prototype.remove=function(a){var b=this,c;return H(function(d){return 1==d.g?(c=qp(b.g,"session-ids"),t(d,op(c,function(e,f,g){a.includes(f.sessionId)&&g["delete"]()}),2)):t(d,c.promise(),0)})};function xp(){this.g=new Map}xp.prototype.destroy=function(){for(var a=[],b=r(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};xp.prototype.init=function(){var a=this;yp.forEach(function(e,f){var g=e();g&&a.g.set(f,g)});for(var b=[],c=r(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)};
|
|
615
|
+
function zp(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Xa:d,Aa:f},Aa:e})})});if(b)return b;throw new N(2,9,9013,"Could not find a cell that supports add-operations");}function Ap(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Xa:d,Aa:f},e)})})}
|
|
616
|
+
function Bp(a,b,c){a=a.g.get(b);if(!a)throw new N(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new N(2,9,9013,"Could not find cell with name "+c);return b}function Cp(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function Dp(a){var b=Array.from(a.g.keys());if(!b.length)throw new N(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()}
|
|
617
|
+
function Ep(a){var b,c,d;return H(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=yp,d.forEach(function(f){(f=f())&&b.push(f)})),t(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.C(0):t(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function Fp(a,b){yp.set(a,b)}L("shaka.offline.StorageMuxer",xp);xp.unregister=function(a){yp["delete"](a)};xp.register=Fp;xp.prototype.destroy=xp.prototype.destroy;var yp=new Map;function Gp(){sp.apply(this,arguments)}pa(Gp,sp);Gp.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return H(function(g){d=qp(c.g,c.h);e=d.store();f=new ic;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new N(2,9,9012,"Could not find values for "+a))};return t(g,Promise.all([d.promise(),f]),0)})};
|
|
618
|
+
Gp.prototype.sc=function(a){var b,c,d,e,f,g;return H(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c)d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime,e=d-a.periods[c].startTime,f=Hp(a.periods[c],e),b.push(f);return t(h,Wm(b),2)}g=h.h;return h["return"]({creationTime:0,originalManifestUri:a.originalManifestUri,duration:a.duration,size:a.size,expiration:null==a.expiration?Infinity:a.expiration,streams:g,sessionIds:a.sessionIds,drmInfo:a.drmInfo,appMetadata:a.appMetadata})})};
|
|
619
|
+
function Hp(a,b){Ip(a);for(var c=r(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return Jp(e,a.startTime,b)})}
|
|
620
|
+
function Jp(a,b,c){var d=a.initSegmentUri?Kp(a.initSegmentUri):null,e=b+a.presentationTimeOffset,f=b+c;return{id:a.id,originalId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:void 0,kind:a.kind,language:a.language,label:a.label,width:a.width,height:a.height,initSegmentKey:d,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(g){var h=Kp(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,dataKey:h,
|
|
621
|
+
initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e}}),variantIds:a.variantIds,roles:[],audioSamplingRate:null,channelsCount:null,closedCaptions:null}}Gp.prototype.ve=function(a){return{data:a.data}};function Kp(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 N(2,9,9004,"Could not parse uri "+a);}
|
|
622
|
+
function Ip(a){var b=a.streams.filter(function(h){return"audio"==h.contentType});a=a.streams.filter(function(h){return"video"==h.contentType});if(!b.every(function(h){return h.variantIds})||!a.every(function(h){return h.variantIds})){for(var c=r(b),d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=r(a);for(d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=0;if(a.length&&!b.length){var e=c++,f=r(a);for(d=f.next();!d.done;d=f.next())d.value.variantIds.push(e)}if(!a.length&&b.length)for(e=c++,
|
|
623
|
+
f=r(b),d=f.next();!d.done;d=f.next())d.value.variantIds.push(e);if(a.length&&b.length)for(b=r(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=r(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function Lp(){sp.apply(this,arguments)}pa(Lp,sp);
|
|
624
|
+
Lp.prototype.sc=function(a){var b,c,d,e,f,g;return H(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c){d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime;e=d-a.periods[c].startTime;for(var k=a.periods[c],l=[],m=r(k.streams),n=m.next();!n.done;n=m.next())n=n.value,0!=n.variantIds.length&&l.push(Mp(n,k.startTime,k.startTime+e));f=l;b.push(f)}return t(h,Wm(b),2)}g=h.h;return h["return"]({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==
|
|
623
625
|
a.expiration?Infinity:a.expiration,originalManifestUri:a.originalManifestUri,sessionIds:a.sessionIds,size:a.size,streams:g})})};
|
|
624
|
-
function
|
|
625
|
-
dataKey:d.dataKey}}),variantIds:a.variantIds,roles:[],audioSamplingRate:null,channelsCount:null,closedCaptions:null}};function
|
|
626
|
-
p.init=function(){var a=this,b=new
|
|
627
|
-
e=e.contains("manifest-v5")&&e.contains("segment-v5")?new
|
|
628
|
-
p.destroy=function(){var a=this;return
|
|
626
|
+
function Mp(a,b,c){return{id:a.id,originalId:a.originalId,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:a.pixelAspectRatio,kind:a.kind,language:a.language,label:a.label,width:a.width,height:a.height,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(d){return{startTime:b+d.startTime,endTime:b+d.endTime,initSegmentKey:a.initSegmentKey,appendWindowStart:b,appendWindowEnd:c,timestampOffset:b-a.presentationTimeOffset,
|
|
627
|
+
dataKey:d.dataKey}}),variantIds:a.variantIds,roles:[],audioSamplingRate:null,channelsCount:null,closedCaptions:null}};function Np(){sp.apply(this,arguments)}pa(Np,sp);Np.prototype.hasFixedKeySpace=function(){return!1};Np.prototype.addSegments=function(a){return this.add(this.i,a)};Np.prototype.addManifests=function(a){return this.add(this.h,a)};Np.prototype.sc=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function Op(){this.u=this.j=this.i=this.h=this.g=this.l=null}p=Op.prototype;
|
|
628
|
+
p.init=function(){var a=this,b=new ic,c=window.indexedDB.open("shaka_offline_db",5);c.onsuccess=function(){var d=c.result;a.l=d;var e=d.objectStoreNames;e=e.contains("manifest")&&e.contains("segment")?new Gp(d,"segment","manifest"):null;a.g=e;e=d.objectStoreNames;e=e.contains("manifest-v2")&&e.contains("segment-v2")?new Lp(d,"segment-v2","manifest-v2"):null;a.h=e;e=d.objectStoreNames;e=e.contains("manifest-v3")&&e.contains("segment-v3")?new Lp(d,"segment-v3","manifest-v3"):null;a.i=e;e=d.objectStoreNames;
|
|
629
|
+
e=e.contains("manifest-v5")&&e.contains("segment-v5")?new Np(d,"segment-v5","manifest-v5"):null;a.j=e;d=d.objectStoreNames.contains("session-ids")?new wp(d):null;a.u=d;b.resolve()};c.onupgradeneeded=function(){for(var d=c.result,e=r(["segment-v5","manifest-v5","session-ids"]),f=e.next();!f.done;f=e.next())f=f.value,d.objectStoreNames.contains(f)||d.createObjectStore(f,{autoIncrement:!0})};c.onerror=function(d){b.reject(new N(2,9,9001,c.error));d.preventDefault()};return b};
|
|
630
|
+
p.destroy=function(){var a=this;return H(function(b){switch(b.g){case 1:if(!a.g){b.C(2);break}return t(b,a.g.destroy(),2);case 2:if(!a.h){b.C(4);break}return t(b,a.h.destroy(),4);case 4:if(!a.i){b.C(6);break}return t(b,a.i.destroy(),6);case 6:if(!a.j){b.C(8);break}return t(b,a.j.destroy(),8);case 8:if(!a.u){b.C(10);break}return t(b,a.u.destroy(),10);case 10:a.l&&a.l.close(),x(b)}})};
|
|
629
631
|
p.getCells=function(){var a=new Map;this.g&&a.set("v1",this.g);this.h&&a.set("v2",this.h);this.i&&a.set("v3",this.i);this.j&&a.set("v5",this.j);return a};p.getEmeSessionCell=function(){return this.u};
|
|
630
|
-
p.erase=function(){var a=this;return
|
|
631
|
-
function
|
|
632
|
-
function
|
|
633
|
-
function
|
|
632
|
+
p.erase=function(){var a=this;return H(function(b){switch(b.g){case 1:if(!a.g){b.C(2);break}return t(b,a.g.destroy(),2);case 2:if(!a.h){b.C(4);break}return t(b,a.h.destroy(),4);case 4:if(!a.i){b.C(6);break}return t(b,a.i.destroy(),6);case 6:if(!a.j){b.C(8);break}return t(b,a.j.destroy(),8);case 8:return a.l&&a.l.close(),t(b,Pp(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,t(b,a.init(),0)}})};
|
|
633
|
+
function Pp(){var a=new ic,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new N(2,9,9001,b.error));c.preventDefault()};return a}Fp("idb",function(){return Dd("CrKey")||!window.indexedDB?null:new Op});function Qp(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}Qp.prototype.Xa=function(){return this.i};Qp.prototype.Aa=function(){return this.h};Qp.prototype.key=function(){return this.l};Qp.prototype.toString=function(){return this.j};
|
|
634
|
+
function Rp(a){a=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(a);if(null==a)return null;var b=a[1];if("manifest"!=b&&"segment"!=b)return null;var c=a[2];if(!c)return null;var d=a[3];return d&&null!=b?new Qp(b,c,d,Number(a[4])):null};function Sp(a,b){this.h=a;this.g=b}
|
|
635
|
+
function Tp(a,b){var c=new Q(null,0);c.Ya(b.duration);var d=b.streams.filter(function(k){return"audio"==k.type}),e=b.streams.filter(function(k){return"video"==k.type});d=Up(a,d,e,c);e=b.streams.filter(function(k){return"text"==k.type}).map(function(k){return Vp(a,k,c)});var f=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var g=r(d.values()),h=g.next();!h.done;h=g.next())h=h.value,h.audio&&h.audio.encrypted&&(h.audio.drmInfos=f),h.video&&h.video.encrypted&&(h.video.drmInfos=f);return{presentationTimeline:c,
|
|
634
636
|
minBufferTime:2,offlineSessionIds:b.sessionIds,variants:Array.from(d.values()),textStreams:e}}
|
|
635
|
-
function
|
|
636
|
-
g=
|
|
637
|
-
function
|
|
638
|
-
roles:b.roles,channelsCount:b.channelsCount,audioSamplingRate:b.audioSamplingRate,closedCaptions:b.closedCaptions}}function
|
|
639
|
-
p.start=function(a,b){var c=this,d,e,f,g,h,k,l;return
|
|
640
|
-
p.update=function(){};p.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return
|
|
641
|
-
|
|
642
|
-
function
|
|
643
|
-
function
|
|
644
|
-
9);case 9:return f["return"]([]);case 7:return e=[],t(f,Promise.all(c.sessionIds.map(function(g){return
|
|
645
|
-
function
|
|
646
|
-
function
|
|
647
|
-
4);case 4:b.v=null,b.
|
|
648
|
-
p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=
|
|
649
|
-
p.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new
|
|
650
|
-
return g.promise.then(h)};return
|
|
651
|
-
function
|
|
652
|
-
h,n,b,c,e,f),11);case 11:u=z.h;
|
|
653
|
-
p.
|
|
654
|
-
"text"==z.type&&v.add(z.id);a.variants=a.variants.filter(function(B){return u.has(B.id)});a.textStreams=a.textStreams.filter(function(B){return v.has(B.id)});
|
|
655
|
-
function
|
|
656
|
-
I.initData.length})}),v=q&&!u,A=null,v&&(w=c.i,A=
|
|
657
|
-
function
|
|
658
|
-
function
|
|
659
|
-
function
|
|
660
|
-
function
|
|
661
|
-
p.list=function(){return
|
|
662
|
-
function
|
|
663
|
-
function
|
|
664
|
-
function
|
|
665
|
-
q.next())u=u.value,v=
|
|
666
|
-
function
|
|
667
|
-
function(n){var q=
|
|
668
|
-
function
|
|
669
|
-
function
|
|
670
|
-
function
|
|
671
|
-
function
|
|
672
|
-
function
|
|
673
|
-
function
|
|
674
|
-
function
|
|
675
|
-
|
|
676
|
-
var
|
|
677
|
-
function
|
|
678
|
-
Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",
|
|
679
|
-
function
|
|
680
|
-
function
|
|
681
|
-
function
|
|
682
|
-
function
|
|
683
|
-
function
|
|
637
|
+
function Up(a,b,c,d){for(var e=new Set,f=r(b),g=f.next();!g.done;g=f.next()){var h=r(g.value.variantIds);for(g=h.next();!g.done;g=h.next())e.add(g.value)}f=r(c);for(g=f.next();!g.done;g=f.next())for(h=r(g.value.variantIds),g=h.next();!g.done;g=h.next())e.add(g.value);f=new Map;e=r(e);for(g=e.next();!g.done;g=e.next())g=g.value,f.set(g,{id:g,language:"",primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0});b=r(b);for(e=b.next();!e.done;e=b.next())for(e=e.value,
|
|
638
|
+
g=Vp(a,e,d),h=r(e.variantIds),e=h.next();!e.done;e=h.next())e=f.get(e.value),e.language=g.language,e.primary=e.primary||g.primary,e.audio=g;c=r(c);for(b=c.next();!b.done;b=c.next())for(e=b.value,b=Vp(a,e,d),g=r(e.variantIds),e=g.next();!e.done;e=g.next())e=f.get(e.value),e.primary=e.primary||b.primary,e.video=b;return f}
|
|
639
|
+
function Vp(a,b,c){var d=b.segments.map(function(e){return Wp(a,e)});c.cc(d);return{id:b.id,originalId:b.originalId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new R(d),mimeType:b.mimeType,codecs:b.codecs,width:b.width||void 0,height:b.height||void 0,frameRate:b.frameRate,pixelAspectRatio:b.pixelAspectRatio,kind:b.kind,encrypted:b.encrypted,drmInfos:[],keyIds:b.keyIds,language:b.language,label:b.label,type:b.type,primary:b.primary,trickModeVideo:null,emsgSchemeIdUris:null,
|
|
640
|
+
roles:b.roles,channelsCount:b.channelsCount,audioSamplingRate:b.audioSamplingRate,closedCaptions:b.closedCaptions}}function Wp(a,b){var c=new Qp("segment",a.h,a.g,b.dataKey);return new Dg(b.startTime,b.endTime,function(){return[c.toString()]},0,null,null!=b.initSegmentKey?Xp(a,b.initSegmentKey):null,b.timestampOffset,b.appendWindowStart,b.appendWindowEnd)}function Xp(a,b){var c=new Qp("segment",a.h,a.g,b);return new Bg(function(){return[c.toString()]},0,null)};function Yp(){this.g=null}p=Yp.prototype;p.configure=function(){};
|
|
641
|
+
p.start=function(a,b){var c=this,d,e,f,g,h,k,l;return H(function(m){switch(m.g){case 1:d=Rp(a);c.g=d;if(null==d||"manifest"!=d.g)throw new N(2,1,9004,a);e=new xp;ta(m);return t(m,e.init(),4);case 4:return t(m,Bp(e,d.Xa(),d.Aa()),5);case 5:return f=m.h,t(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new Sp(d.Xa(),d.Aa()),l=Tp(k,h),b.makeTextStreamsForClosedCaptions(l),m["return"](l);case 2:return va(m),t(m,e.destroy(),7);case 7:wa(m,0)}})};p.stop=function(){return Promise.resolve()};
|
|
642
|
+
p.update=function(){};p.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return H(function(m){switch(m.g){case 1:return d=c.g,e=new xp,y(m,2,3),t(m,e.init(),5);case 5:return t(m,Bp(e,d.Xa(),d.Aa()),6);case 6:return f=m.h,t(m,f.getManifests([d.key()]),7);case 7:g=m.h;h=g[0];k=h.sessionIds.includes(a);l=void 0==h.expiration||h.expiration>b;if(!k||!l){m.C(3);break}return t(m,f.updateManifestExpiration(d.key(),b),3);case 3:return va(m),t(m,e.destroy(),10);case 10:wa(m,0);break;case 2:C(m),m.C(3)}})};
|
|
643
|
+
xg["application/x-offline-manifest"]=function(){return new Yp};function Zp(){}function $p(a){var b=Rp(a);b&&"manifest"==b.g?(a={uri:a,Me:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=Kc(a)):a=b&&"segment"==b.g?aq(b.key(),b):Ic(new N(2,1,9004,a));return a}
|
|
644
|
+
function aq(a,b){var c=new xp;return Kc(void 0).ma(function(){return c.init()}).ma(function(){return Bp(c,b.Xa(),b.Aa())}).ma(function(d){return d.getSegments([b.key()])}).ma(function(d){return{uri:b,data:d[0].data,headers:{}}})["finally"](function(){return c.destroy()})}L("shaka.offline.OfflineScheme",Zp);Zp.plugin=$p;Xc("offline",$p);function bq(a,b,c){var d,e,f,g,h,k;return H(function(l){switch(l.g){case 1:d=[];for(var m=[],n=r(c),q=n.next();!q.done;q=n.next()){q=q.value;for(var u=!1,v=r(m),A=v.next();!A.done;A=v.next())if(A=A.value,cq(A.info,q)){A.sessionIds.push(q.sessionId);u=!0;break}u||m.push({info:q,sessionIds:[q.sessionId]})}e=r(m);f=e.next();case 2:if(f.done){l.C(4);break}g=f.value;h=dq(a,b,g);return t(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.C(2);break;case 4:return l["return"](d)}})}
|
|
645
|
+
function dq(a,b,c){var d,e;return H(function(f){switch(f.g){case 1:return d=new Id({bc:b,onError:function(){},gd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),y(f,2),d.configure(a),t(f,Qd(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:ua(f,3);break;case 2:return C(f),t(f,d.destroy(),5);case 5:return f["return"]([]);case 3:return y(f,6),t(f,$d(d),8);case 8:ua(f,7);break;case 6:return C(f),t(f,d.destroy(),
|
|
646
|
+
9);case 9:return f["return"]([]);case 7:return e=[],t(f,Promise.all(c.sessionIds.map(function(g){return H(function(h){if(1==h.g)return y(h,2),t(h,ae(d,g),4);if(2!=h.g)return e.push(g),ua(h,0);C(h);x(h)})})),10);case 10:return t(f,d.destroy(),11);case 11:return f["return"](e)}})}
|
|
647
|
+
function cq(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&Sc(a.audioCapabilities,b.audioCapabilities,c)&&Sc(a.videoCapabilities,b.videoCapabilities,c)};function eq(a,b,c){var d=b.presentationTimeline.getDuration();b=fq(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c}}function gq(a,b){var c=Tp(new Sp(a.Xa(),a.Aa()),b),d=b.appMetadata||{};c=fq(c);return{offlineUri:a.toString(),originalManifestUri:b.originalManifestUri,duration:b.duration,size:b.size,expiration:b.expiration,tracks:c,appMetadata:d}}
|
|
648
|
+
function fq(a){var b=[],c=dg(a.variants);c=r(c);for(var d=c.next();!d.done;d=c.next())b.push(Xf(d.value));a=r(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(Yf(c.value));return b};function hq(){this.g={}}function iq(a,b,c){c=c.endTime-c.startTime;return jq(a,b)*c}function jq(a,b){var c=a.g[b];null==c&&(c=0);return c};function kq(a,b,c){a.variants=a.variants.filter(function(d){return Uf(d,b,c)})}function lq(a){a.variants=a.variants.filter(function(b){var c=!0;b.audio&&(c=c&&wf(b.audio));b.video&&(c=c&&wf(b.video));return c})}function mq(a,b){a.variants=a.variants.filter(function(c){return re(b,c)})};function nq(a){var b=this;if(a&&a.constructor!=U)throw new N(2,9,9008);this.Z=this.v=null;a?(this.v=a.v,this.Z=a.vc()):(this.v=pi(),this.Z=new Wc);this.md=[];this.Gc=[];this.Ud=[];var c=!a;this.M=new hd(function(){var d,e,f,g,h;return H(function(k){switch(k.g){case 1:return t(k,Promise.all(b.Ud.map(function(l){return hp(l)})),2);case 2:d=function(){};e=[];f=r(b.Gc);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return t(k,Promise.all(e),3);case 3:if(!c){k.C(4);break}return t(k,b.Z.destroy(),
|
|
649
|
+
4);case 4:b.v=null,b.Z=null,x(k)}})})}function oq(){if(zd())a:{var a=r(yp.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}p=nq.prototype;p.destroy=function(){return this.M.destroy()};
|
|
650
|
+
p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=ni(a,b));a.manifest&&a.manifest.dash&&"defaultPresentationDelay"in a.manifest.dash&&(yb("manifest.dash.defaultPresentationDelay configuration","Please Use manifest.defaultPresentationDelay instead."),a.manifest.defaultPresentationDelay=a.manifest.dash.defaultPresentationDelay,delete a.manifest.dash.defaultPresentationDelay);return ri(this.v,a)};p.getConfiguration=function(){var a=pi();ri(a,this.v,pi());return a};p.vc=function(){return this.Z};
|
|
651
|
+
p.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new gp(this.Z);this.Ud.push(f);b=pq(this,a,b||{},function(){var h;return H(function(k){if(1==k.g)return t(k,wg(a,d.Z,e.manifest.retryParameters,c||null),2);h=k.h;return k["return"](Fb(h))})},e,f);var g=new Hc(b,function(){return hp(f)});g["finally"](function(){Rc(d.Ud,f)});g.then=function(h){yb("shaka.offline.Storage.store.then","Storage operations now return a shaka.util.AbortableOperation, rather than a promise. Please update to conform to this new API; you can use the |chain| method instead.");
|
|
652
|
+
return g.promise.then(h)};return qq(this,g)};p.Mf=function(){yb("shaka.offline.Storage.getStoreInProgress","Multiple concurrent downloads are now supported.");return!1};
|
|
653
|
+
function pq(a,b,c,d,e,f){var g,h,k,l,m,n,q,u,v,A,w;return H(function(z){switch(z.g){case 1:return rq(),h=g=null,k=new xp,m=l=null,y(z,2,3),t(z,d(),5);case 5:return g=z.h,t(z,sq(a,b,g,e),6);case 6:n=z.h;tq(a);q=!n.presentationTimeline.W()&&!n.presentationTimeline.Db();if(!q)throw new N(2,9,9005,b);return t(z,uq(a,n,function(D){m=m||D},e),7);case 7:h=z.h;tq(a);if(m)throw m;return t(z,a.Ub(n,h,e),8);case 8:return t(z,k.init(),9);case 9:return tq(a),t(z,zp(k),10);case 10:return l=z.h,tq(a),t(z,vq(a,l.Aa,
|
|
654
|
+
h,n,b,c,e,f),11);case 11:u=z.h;tq(a);if(m)throw m;return t(z,l.Aa.addManifests([u]),12);case 12:return v=z.h,tq(a),A=new Qp("manifest",l.path.Xa,l.path.Aa,v[0]),z["return"](gq(A,u));case 3:return va(z),a.md=[],t(z,k.destroy(),13);case 13:if(!g){z.C(14);break}return t(z,g.stop(),14);case 14:if(!h){z.C(16);break}return t(z,h.destroy(),16);case 16:wa(z,0);break;case 2:w=C(z);if(!l){z.C(18);break}return t(z,l.Aa.removeSegments(a.md,function(){}),18);case 18:throw m||w;}})}
|
|
655
|
+
p.Ub=function(a,b,c){var d,e,f,g,h,k,l,m,n,q,u,v,A,w,z;return H(function(D){if(1==D.g){d={width:Infinity,height:Infinity};kq(a,c.restrictions,d);lq(a);mq(a,b);e=[];f=c.preferredAudioChannelCount;Of(a,f);g=r(a.variants);for(h=g.next();!h.done;h=g.next())k=h.value,e.push(Xf(k));l=r(a.textStreams);for(m=l.next();!m.done;m=l.next())n=m.value,e.push(Yf(n));return t(D,c.offline.trackSelectionCallback(e),2)}q=D.h;u=new Set;v=new Set;A=r(q);for(w=A.next();!w.done;w=A.next())z=w.value,"variant"==z.type&&u.add(z.id),
|
|
656
|
+
"text"==z.type&&v.add(z.id);a.variants=a.variants.filter(function(B){return u.has(B.id)});a.textStreams=a.textStreams.filter(function(B){return v.has(B.id)});wq(a);x(D)})};
|
|
657
|
+
function vq(a,b,c,d,e,f,g,h){var k,l,m,n,q,u,v,A,w,z,D,B;return H(function(E){switch(E.g){case 1:return k=eq(e,d,f),l=g.offline.progressCallback,m=function(F,I){k.size=I;l(k,F)},n=function(F,I){v&&g.offline.usePersistentLicense&&A==I&&Zd(c,"cenc",F)},ip(h,m,n),q=d.variants.some(function(F){var I=F.audio&&F.audio.encrypted;return F.video&&F.video.encrypted||I}),u=d.variants.some(function(F){return(F.video?F.video.drmInfos:[]).concat(F.audio?F.audio.drmInfos:[]).some(function(I){return I.initData&&
|
|
658
|
+
I.initData.length})}),v=q&&!u,A=null,v&&(w=c.i,A=xq.get(w.keySystem)),ta(E),D=z=yq(a,h,b,c,d,e,f,g),t(E,mp(h),4);case 4:D.size=E.h;z.expiration=c.uc();B=fe(c);z.sessionIds=g.offline.usePersistentLicense?B:[];if(q&&g.offline.usePersistentLicense&&!B.length)throw new N(2,9,9007);return E["return"](z);case 2:return va(E),t(E,h.destroy(),5);case 5:wa(E,0)}})}p.remove=function(a){return zq(this,Aq(this,a))};
|
|
659
|
+
function Aq(a,b){var c,d,e,f,g,h;return H(function(k){switch(k.g){case 1:rq();c=Rp(b);if(null==c||"manifest"!=c.g)throw new N(2,9,9004,b);d=c;e=new xp;ta(k);return t(k,e.init(),4);case 4:return t(k,Bp(e,d.Xa(),d.Aa()),5);case 5:return f=k.h,t(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],t(k,Promise.all([Bq(a,h,e),Cq(f,d,h)]),2);case 2:return va(k),t(k,e.destroy(),8);case 8:wa(k,0)}})}
|
|
660
|
+
function Dq(a,b){for(var c=[],d=r(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:ud(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:ud(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function Bq(a,b,c){return H(function(d){return t(d,Eq(a.Z,a.v.drm,c,b),0)})}
|
|
661
|
+
function Cq(a,b,c){function d(){}var e=Fq(c);gq(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}p.gg=function(){return zq(this,Gq(this))};
|
|
662
|
+
function Gq(a){var b,c,d,e,f,g,h,k,l,m;return H(function(n){switch(n.g){case 1:return rq(),b=a.Z,c=a.v.drm,d=new xp,e=!1,ta(n),t(n,d.init(),4);case 4:f=[],Cp(d,function(q){return f.push(q)}),g=r(f),h=g.next();case 5:if(h.done){n.C(2);break}k=h.value;return t(n,k.getAll(),8);case 8:return l=n.h,t(n,bq(c,b,l),9);case 9:return m=n.h,t(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.C(5);break;case 2:return va(n),t(n,d.destroy(),11);case 11:wa(n,3);break;case 3:return n["return"](!e)}})}
|
|
663
|
+
p.list=function(){return zq(this,Hq())};function Hq(){var a,b,c;return H(function(d){switch(d.g){case 1:return rq(),a=[],b=new xp,ta(d),t(d,b.init(),4);case 4:return c=Promise.resolve(),Ap(b,function(e,f){c=c.then(function(){var g;return H(function(h){if(1==h.g)return t(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){var m=gq(new Qp("manifest",e.Xa,e.Aa,l),k);a.push(m)});x(h)})})}),t(d,c,2);case 2:return va(d),t(d,b.destroy(),6);case 6:wa(d,3);break;case 3:return d["return"](a)}})}
|
|
664
|
+
function sq(a,b,c,d){var e,f,g,h,k;return H(function(l){if(1==l.g)return e=null,f=a.Z,g={networkingEngine:f,filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(m){e=m}},c.configure(d.manifest),tq(a),t(l,c.start(b,g),2);if(3!=l.g)return h=l.h,tq(a),k=Iq(h),t(l,Promise.all(ab(k,function(m){return m.createSegmentIndex()})),3);tq(a);if(e)throw e;return l["return"](h)})}
|
|
665
|
+
function uq(a,b,c,d){var e;return H(function(f){switch(f.g){case 1:return e=new Id({bc:a.Z,onError:c,gd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),t(f,Nd(e,b.variants,d.offline.usePersistentLicense),2);case 2:return t(f,$d(e),3);case 3:return t(f,Yd(e),4);case 4:return f["return"](e)}})}
|
|
666
|
+
function yq(a,b,c,d,e,f,g,h){for(var k=new hq,l=r(e.variants),m=l.next();!m.done;m=l.next()){var n=k;m=m.value;var q=m.audio,u=m.video;q&&!u&&(n.g[q.id]=q.bandwidth||m.bandwidth);!q&&u&&(n.g[u.id]=u.bandwidth||m.bandwidth);if(q&&u){var v=q.bandwidth||393216,A=u.bandwidth||m.bandwidth-v;0>=A&&(A=m.bandwidth);n.g[q.id]=v;n.g[u.id]=A}}l=r(e.textStreams);for(n=l.next();!n.done;n=l.next())k.g[n.value.id]=52;n=new Map;n.set(null,Promise.resolve(null));m=new Map;q=Iq(e);l=new Map;q=r(q);for(u=q.next();!u.done;u=
|
|
667
|
+
q.next())u=u.value,v=Jq(a,b,c,k,e,u,h,n,m),l.set(u.id,v);a=r(e.variants);for(m=a.next();!m.done;m=a.next())b=m.value,b.audio&&l.get(b.audio.id).variantIds.push(b.id),b.video&&l.get(b.video.id).variantIds.push(b.id);a=Array.from(l.values());h=h.offline.usePersistentLicense;(b=d.i)&&h&&(b.initData=[]);return{creationTime:Date.now(),originalManifestUri:f,duration:e.presentationTimeline.getDuration(),size:0,expiration:d.uc(),streams:a,sessionIds:h?fe(d):[],drmInfo:b,appMetadata:g}}
|
|
668
|
+
function Jq(a,b,c,d,e,f,g,h,k){var l={id:f.id,originalId:f.originalId,primary:f.primary,type:f.type,mimeType:f.mimeType,codecs:f.codecs,frameRate:f.frameRate,pixelAspectRatio:f.pixelAspectRatio,kind:f.kind,language:f.language,label:f.label,width:f.width||null,height:f.height||null,encrypted:f.encrypted,keyIds:f.keyIds,segments:[],variantIds:[],roles:f.roles,channelsCount:f.channelsCount,audioSamplingRate:f.audioSamplingRate,closedCaptions:f.closedCaptions},m=f.id;Kq(f,e.presentationTimeline.fb(),
|
|
669
|
+
function(n){var q=Lq(a,b,m,f.id,c,d,n.i,g,h),u=Mq(a,b,m,f.id,c,d,n,g,k);lp(b,m,function(){var v,A;return H(function(w){if(1==w.g)return t(w,q,2);if(3!=w.g)return v=w.h,t(w,u,3);A=w.h;l.segments.push({initSegmentKey:v,startTime:n.startTime,endTime:n.endTime,appendWindowStart:n.appendWindowStart,appendWindowEnd:n.appendWindowEnd,timestampOffset:n.timestampOffset,dataKey:A});x(w)})})});return l}
|
|
670
|
+
function Lq(a,b,c,d,e,f,g,h,k){if(k.has(g))return k.get(g);h=nh(g.Ma(),g.h,g.g,h.streaming.retryParameters);b=jp(b,c,h,.5*jq(f,d),!0,function(l){var m;return H(function(n){if(1==n.g)return t(n,e.addSegments([{data:l}]),2);m=n.h;a.md.push(m[0]);return n["return"](m[0])})});k.set(g,b);return b}
|
|
671
|
+
function Mq(a,b,c,d,e,f,g,h,k){var l=[g.Ma()[0],g.h,g.g].join("-");if(k.has(l))return k.get(l);h=nh(g.Ma(),g.h,g.g,h.streaming.retryParameters);b=jp(b,c,h,iq(f,d,g),!1,function(m){var n;return H(function(q){if(1==q.g)return t(q,e.addSegments([{data:m}]),2);n=q.h;a.md.push(n[0]);return q["return"](n[0])})});k.set(l,b);return b}function Kq(a,b,c){b=a.segmentIndex.find(b);if(null!=b)for(var d=a.segmentIndex.get(b);d;)c(d),d=a.segmentIndex.get(++b)}function tq(a){if(a.M.g)throw new N(2,9,7001);}
|
|
672
|
+
function rq(){if(!oq())throw new N(2,9,9E3);}function zq(a,b){return H(function(c){if(1==c.g)return a.Gc.push(b),ta(c),t(c,b,4);if(2!=c.g)return c["return"](c.h);va(c);Rc(a.Gc,b);return wa(c,0)})}function qq(a,b){var c=b.promise;a.Gc.push(c);return b["finally"](function(){Rc(a.Gc,c)})}
|
|
673
|
+
function Fq(a){var b=[];a=r(a.streams);for(var c=a.next();!c.done;c=a.next()){c=r(c.value.segments);for(var d=c.next();!d.done;d=c.next())d=d.value,null!=d.initSegmentKey&&b.push(d.initSegmentKey),b.push(d.dataKey)}return b}
|
|
674
|
+
function Eq(a,b,c,d){var e,f,g;return H(function(h){if(1==h.g){if(!d.drmInfo)return h["return"]();e=Dp(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:Dq(d,!1),videoCapabilities:Dq(d,!0)}});return t(h,bq(b,a,f),2)}return 3!=h.g?(g=h.h,t(h,e.remove(g),3)):t(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
|
|
675
|
+
function Iq(a){for(var b=new Set,c=r(a.textStreams),d=c.next();!d.done;d=c.next())b.add(d.value);a=r(a.variants);for(c=a.next();!c.done;c=a.next())c=c.value,c.audio&&b.add(c.audio),c.video&&b.add(c.video);return b}
|
|
676
|
+
function wq(a){a.variants.map(function(f){return f.video});var b=new Set(a.variants.map(function(f){return f.audio}));a=a.textStreams;for(var c=r(b),d=c.next();!d.done;d=c.next()){d=r(b);for(var e=d.next();!e.done;e=d.next());}b=r(a);for(c=b.next();!c.done;c=b.next())for(c=r(a),d=c.next();!d.done;d=c.next());}L("shaka.offline.Storage",nq);nq.deleteAll=function(){var a;return H(function(b){return 1==b.g?(a=new xp,ta(b),t(b,Ep(a),2)):5!=b.g?(va(b),t(b,a.destroy(),5)):wa(b,0)})};nq.prototype.list=nq.prototype.list;
|
|
677
|
+
nq.prototype.removeEmeSessions=nq.prototype.gg;nq.prototype.remove=nq.prototype.remove;nq.prototype.getStoreInProgress=nq.prototype.Mf;nq.prototype.store=nq.prototype.store;nq.prototype.getNetworkingEngine=nq.prototype.vc;nq.prototype.getConfiguration=nq.prototype.getConfiguration;nq.prototype.configure=nq.prototype.configure;nq.prototype.destroy=nq.prototype.destroy;nq.support=oq;
|
|
678
|
+
var xq=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb");fk.offline=oq;function Nq(){}function Oq(){for(var a=r(Pq),b=a.next();!b.done;b=a.next()){b=b.value;try{b.hf()}catch(c){Oa("Error installing polyfill!",c)}}}function Qq(a,b){for(var c={priority:b||0,hf:a},d=r(hb(Pq)),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.sa;if(e.item.priority<c.priority){Pq.splice(f,0,c);return}}Pq.push(c)}L("shaka.polyfill",Nq);Nq.register=Qq;Nq.installAll=Oq;var Pq=[];function Rq(){}function Sq(){Tq()}Nq.EncryptionScheme=Rq;Rq.install=Sq;Qq(Sq,-1);function Uq(){}
|
|
679
|
+
function Vq(){if(window.Document){var a=Element.prototype;a.requestFullscreen=a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||a.webkitRequestFullscreen;a=Document.prototype;a.exitFullscreen=a.exitFullscreen||a.mozCancelFullScreen||a.msExitFullscreen||a.webkitCancelFullScreen;"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement}}),
|
|
680
|
+
Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Wq);document.addEventListener("webkitfullscreenerror",Wq);document.addEventListener("mozfullscreenchange",Wq);document.addEventListener("mozfullscreenerror",Wq);document.addEventListener("MSFullscreenChange",Wq);document.addEventListener("MSFullscreenError",Wq)}}
|
|
681
|
+
function Wq(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if("function"===typeof Event)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)}Nq.Fullscreen=Uq;Uq.install=Vq;Qq(Vq);function Xq(a,b,c){if("input"==a)switch(this.type){case "range":a="change"}HTMLInputElement.prototype.originalAddEventListener.call(this,a,b,c)}Qq(function(){Dd("Trident/")&&!HTMLInputElement.prototype.originalAddEventListener&&(HTMLInputElement.prototype.originalAddEventListener=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=Xq)});Qq(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});function Yq(){}function Zq(){}Nq.MathRound=Yq;Yq.install=Zq;Qq(Zq);function $q(){}function ar(){var a=Fd();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?br():a?(cr(),12>=a?(dr(),er()):dr()):(Dd("Tizen 2")||Dd("Tizen 3")||Dd("Tizen 4"))&&fr())}function dr(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(b){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];c=a.apply(this,c);c.abort=function(){};return c}}
|
|
682
|
+
function er(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}function cr(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"mp2t"==b.split(/ *; */)[0].split("/")[1].toLowerCase()?!1:a(b)}}function fr(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"opus"!=xd(b)&&a(b)}}
|
|
683
|
+
function br(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */);c.shift();return c.some(function(d){return d.startsWith("codecs=")})?cast.__platform__.canDisplayType(b):a(b)}}Nq.MediaSource=$q;$q.install=ar;Qq(ar);function gr(){}function hr(){window.HTMLVideoElement&&window.WebKitMediaKeys&&(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=ir,window.MediaKeys=jr,window.MediaKeySystemAccess=kr,navigator.requestMediaKeySystemAccess=lr)}function lr(a,b){try{var c=new kr(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}
|
|
684
|
+
function ir(a){var b=this.mediaKeys;b&&b!=a&&mr(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?mr(a,this):Promise.resolve()}function nr(a){a=ec(a.initData);if(hc(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=nc(a.subarray(4),!0);a=pc(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=fc(a);this.dispatchEvent(b)}Nq.PatchedMediaKeysApple=gr;gr.install=hr;
|
|
685
|
+
function kr(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(var c=r(b),d=c.next();!d.done;d=c.next()){var e=d.value;if("required"==e.persistentState)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:e.initDataTypes,sessionTypes:["temporary"],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=r(e.audioCapabilities),k=h.next();!k.done;k=h.next())k=k.value,k.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
|
|
684
686
|
k.contentType.split(";")[0])&&(d.audioCapabilities.push(k),g=!0));if(e.videoCapabilities)for(e=r(e.videoCapabilities),k=e.next();!k.done;k=e.next())h=k.value,h.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,h.contentType.split(";")[0])&&(d.videoCapabilities.push(h),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));d=g?d:null}if(d){this.g=d;return}}c=Error("Unsupported keySystem");c.name="NotSupportedError";c.code=DOMException.NOT_SUPPORTED_ERR;throw c;}
|
|
685
|
-
|
|
686
|
-
function
|
|
687
|
-
p.generateRequest=function(a,b){var c=this;this.g=new
|
|
688
|
-
e.errorCode=c.j.error;if(null!=c.g)c.g.reject(e),c.g=null;else if(null!=c.i)c.i.reject(e),c.i=null;else switch(c.j.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:
|
|
689
|
-
p.close=function(){try{this.j.close(),this.closed.resolve(),this.h.
|
|
690
|
-
p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=
|
|
691
|
-
function
|
|
692
|
-
function
|
|
687
|
+
kr.prototype.createMediaKeys=function(){var a=new jr(this.keySystem);return Promise.resolve(a)};kr.prototype.getConfiguration=function(){return this.g};function jr(a){this.g=new WebKitMediaKeys(a);this.h=new jd}jr.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new or(this.g,a)};jr.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
|
|
688
|
+
function mr(a,b){a.h.Jb();if(!b)return Promise.resolve();a.h.m(b,"webkitneedkey",nr);try{return Kg(b,HTMLMediaElement.HAVE_METADATA,a.h,function(){b.webkitSetMediaKeys(a.g)}),Promise.resolve()}catch(c){return Promise.reject(c)}}function or(a){$a.call(this);this.j=null;this.l=a;this.i=this.g=null;this.h=new jd;this.sessionId="";this.expiration=NaN;this.closed=new ic;this.keyStatuses=new pr}pa(or,$a);p=or.prototype;
|
|
689
|
+
p.generateRequest=function(a,b){var c=this;this.g=new ic;try{var d=this.l.createSession("video/mp4",ec(b));this.j=d;this.sessionId=d.sessionId||"";this.h.m(this.j,"webkitkeymessage",function(e){c.g&&(c.g.resolve(),c.g=null);e=(new Map).set("messageType",void 0==c.keyStatuses.g?"license-request":"license-renewal").set("message",fc(e.message));e=new M("message",e);c.dispatchEvent(e)});this.h.m(d,"webkitkeyadded",function(){c.i&&(qr(c,"usable"),c.i.resolve(),c.i=null)});this.h.m(d,"webkitkeyerror",function(){var e=
|
|
690
|
+
Error("EME PatchedMediaKeysApple key error");e.errorCode=c.j.error;if(null!=c.g)c.g.reject(e),c.g=null;else if(null!=c.i)c.i.reject(e),c.i=null;else switch(c.j.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:qr(c,"output-not-allowed");break;default:qr(c,"internal-error")}});qr(this,"status-pending")}catch(e){this.g.reject(e)}return this.g};p.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
|
|
691
|
+
p.update=function(a){this.i=new ic;try{this.j.update(ec(a))}catch(b){this.i.reject(b)}return this.i};p.close=function(){try{this.j.close(),this.closed.resolve(),this.h.Jb()}catch(a){this.closed.reject(a)}return this.closed};p.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function qr(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new M("keystatuseschange");a.dispatchEvent(c)}
|
|
692
|
+
function pr(){this.size=0;this.g=void 0}p=pr.prototype;p.forEach=function(a){this.g&&a(this.g,ue.value())};p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=ue.value();return this.g&&cc(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};Qq(hr);function rr(){}function sr(){!window.HTMLVideoElement||!window.MSMediaKeys||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,window.MediaKeys=tr,window.MediaKeySystemAccess=ur,navigator.requestMediaKeySystemAccess=vr,HTMLMediaElement.prototype.setMediaKeys=wr)}function vr(a,b){try{var c=new ur(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}
|
|
693
|
+
function xr(a){if(a.initData){var b=document.createEvent("CustomEvent");b.initCustomEvent("encrypted",!1,!1,null);b.initDataType="cenc";b.initData=fc(zl(a.initData));this.dispatchEvent(b)}}Nq.PatchedMediaKeysMs=rr;rr.install=sr;
|
|
694
|
+
function ur(a,b){this.keySystem=a;for(var c=!1,d=r(b),e=d.next();!e.done;e=d.next()){e=e.value;var f={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:e.initDataTypes,sessionTypes:["temporary"],label:e.label},g=!1;if(e.audioCapabilities)for(var h=r(e.audioCapabilities),k=h.next();!k.done;k=h.next())k=k.value,k.contentType&&(g=!0,MSMediaKeys.isTypeSupported(this.keySystem,k.contentType.split(";")[0])&&(f.audioCapabilities.push(k),c=
|
|
693
695
|
!0));if(e.videoCapabilities)for(h=r(e.videoCapabilities),k=h.next();!k.done;k=h.next())k=k.value,k.contentType&&(g=!0,MSMediaKeys.isTypeSupported(this.keySystem,k.contentType.split(";")[0])&&(f.videoCapabilities.push(k),c=!0));g||(c=MSMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));"required"==e.persistentState&&(c=!1);if(c){this.g=f;return}}c=Error("Unsupported keySystem");c.name="NotSupportedError";c.code=DOMException.NOT_SUPPORTED_ERR;throw c;}
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
function
|
|
697
|
-
p.generateRequest=function(a,b){var c=this;this.g=new
|
|
698
|
-
d.errorCode=c.j.error;if(null!=c.g)c.g.reject(d),c.g=null;else if(null!=c.i)c.i.reject(d),c.i=null;else switch(c.j.error.code){case MSMediaKeyError.MS_MEDIA_KEYERR_OUTPUT:case MSMediaKeyError.MS_MEDIA_KEYERR_HARDWARECHANGE:
|
|
699
|
-
p.close=function(){try{this.j.close(),this.closed.resolve(),this.h.
|
|
700
|
-
p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=
|
|
701
|
-
function
|
|
702
|
-
function
|
|
703
|
-
function
|
|
696
|
+
ur.prototype.createMediaKeys=function(){var a=new tr(this.keySystem);return Promise.resolve(a)};ur.prototype.getConfiguration=function(){return this.g};function wr(a){var b=this.mediaKeys;b&&b!=a&&yr(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?yr(a,this):Promise.resolve()}function tr(a){this.g=new MSMediaKeys(a);this.h=new jd}
|
|
697
|
+
tr.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new zr(this.g,a)};tr.prototype.setServerCertificate=function(){return Promise.resolve(!1)};function yr(a,b){a.h.Jb();if(!b)return Promise.resolve();a.h.m(b,"msneedkey",xr);try{return Kg(b,HTMLMediaElement.HAVE_METADATA,a.h,function(){b.msSetMediaKeys(a.g)}),Promise.resolve()}catch(c){return Promise.reject(c)}}
|
|
698
|
+
function zr(a){$a.call(this);this.j=null;this.l=a;this.i=this.g=null;this.h=new jd;this.sessionId="";this.expiration=NaN;this.closed=new ic;this.keyStatuses=new Ar}pa(zr,$a);p=zr.prototype;
|
|
699
|
+
p.generateRequest=function(a,b){var c=this;this.g=new ic;try{this.j=this.l.createSession("video/mp4",ec(b),null),this.h.m(this.j,"mskeymessage",function(d){c.g&&(c.g.resolve(),c.g=null);d=(new Map).set("messageType",void 0==c.keyStatuses.g?"license-request":"license-renewal").set("message",fc(d.message));d=new M("message",d);c.dispatchEvent(d)}),this.h.m(this.j,"mskeyadded",function(){c.g?(Br(c,"usable"),c.g.resolve(),c.g=null):c.i&&(Br(c,"usable"),c.i.resolve(),c.i=null)}),this.h.m(this.j,"mskeyerror",
|
|
700
|
+
function(){var d=Error("EME PatchedMediaKeysMs key error");d.errorCode=c.j.error;if(null!=c.g)c.g.reject(d),c.g=null;else if(null!=c.i)c.i.reject(d),c.i=null;else switch(c.j.error.code){case MSMediaKeyError.MS_MEDIA_KEYERR_OUTPUT:case MSMediaKeyError.MS_MEDIA_KEYERR_HARDWARECHANGE:Br(c,"output-not-allowed");break;default:Br(c,"internal-error")}}),Br(this,"status-pending")}catch(d){this.g.reject(d)}return this.g};p.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
|
|
701
|
+
p.update=function(a){this.i=new ic;try{this.j.update(ec(a))}catch(b){this.i.reject(b)}return this.i};p.close=function(){try{this.j.close(),this.closed.resolve(),this.h.Jb()}catch(a){this.closed.reject(a)}return this.closed};p.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function Br(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new M("keystatuseschange");a.dispatchEvent(c)}
|
|
702
|
+
function Ar(){this.size=0;this.g=void 0}p=Ar.prototype;p.forEach=function(a){this.g&&a(this.g,ue.value())};p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=ue.value();return this.g&&cc(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};Qq(sr);function Cr(){}function Dr(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=Er,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Fr,window.MediaKeys=Gr,window.MediaKeySystemAccess=Hr)}function Er(){return Promise.reject(Error("The key system specified is not supported."))}
|
|
703
|
+
function Fr(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}Nq.PatchedMediaKeysNop=Cr;Cr.install=Dr;function Gr(){throw new TypeError("Illegal constructor.");}Gr.prototype.createSession=function(){};Gr.prototype.setServerCertificate=function(){};function Hr(){this.keySystem="";throw new TypeError("Illegal constructor.");}Hr.prototype.getConfiguration=function(){};Hr.prototype.createMediaKeys=function(){};Qq(Dr,-10);function Ir(){}function Jr(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)Kr="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=Lr;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=Mr;window.MediaKeys=Nr;window.MediaKeySystemAccess=Or}}
|
|
704
|
+
function Pr(a){var b=Kr;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function Lr(a,b){try{var c=new Or(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function Mr(a){var b=this.mediaKeys;b&&b!=a&&Qr(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&Qr(a,this);return Promise.resolve()}Nq.PatchedMediaKeysWebkit=Ir;Ir.install=Jr;
|
|
705
|
+
function Or(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");for(var f=r(b),g=f.next();!g.done;g=f.next()){g=g.value;var h={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:g.initDataTypes,sessionTypes:["temporary"],label:g.label},k=!1;if(g.audioCapabilities)for(var l=r(g.audioCapabilities),
|
|
704
706
|
m=l.next();!m.done;m=l.next())m=m.value,m.contentType&&(k=!0,e.canPlayType(m.contentType.split(";")[0],this.g)&&(h.audioCapabilities.push(m),d=!0));if(g.videoCapabilities)for(l=r(g.videoCapabilities),m=l.next();!m.done;m=l.next())m=m.value,m.contentType&&(k=!0,e.canPlayType(m.contentType,this.g)&&(h.videoCapabilities.push(m),d=!0));k||(d=e.canPlayType("video/mp4",this.g)||e.canPlayType("video/webm",this.g));"required"==g.persistentState&&(c?(h.persistentState="required",h.sessionTypes=["persistent-license"]):
|
|
705
|
-
d=!1);if(d){this.h=h;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";c=Error(c);c.name="NotSupportedError";c.code=DOMException.NOT_SUPPORTED_ERR;throw c;}
|
|
706
|
-
function
|
|
707
|
-
"usable"),d.g&&d.g.resolve(),d.g=null}),a.h.m(b,c+"keyerror",function(d){var e=
|
|
708
|
-
function
|
|
709
|
-
p.handleError=function(a){var b=Error("EME v0.1b key error"),c=a.errorCode;c.systemCode=a.systemCode;b.errorCode=c;!a.sessionId&&this.h?(45==a.systemCode&&(b.message="Unsupported session type."),this.h.reject(b),this.h=null):a.sessionId&&this.g?(this.g.reject(b),this.g=null):(b=a.systemCode,a.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?
|
|
710
|
-
function
|
|
711
|
-
function
|
|
712
|
-
function
|
|
713
|
-
p.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=
|
|
714
|
-
p.has=function(a){var b=
|
|
715
|
-
function
|
|
716
|
-
function
|
|
717
|
-
function
|
|
718
|
-
|
|
719
|
-
var l=
|
|
720
|
-
k=
|
|
721
|
-
w?
|
|
722
|
-
function
|
|
723
|
-
function
|
|
724
|
-
function
|
|
725
|
-
2,2001);m=k&&null==m?0:m+b;n=k&&null==n?0:n+b;q="";k=[];if(Array.from(a.childNodes).some(function(w){return w.nodeType==Node.TEXT_NODE&&/\S+/.test(w.textContent)}))q=
|
|
726
|
-
A})[0]}d=
|
|
727
|
-
function
|
|
728
|
-
f;if(f=
|
|
729
|
-
"PNG"==f&&"Base64"==g&&d&&(a.backgroundImage="data:image/png;base64,"+d)}(d=
|
|
730
|
-
function
|
|
731
|
-
a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&
|
|
732
|
-
function
|
|
733
|
-
function
|
|
734
|
-
function
|
|
735
|
-
function
|
|
736
|
-
var
|
|
737
|
-
{left:"line-left",center:"center",right:"line-right"};
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
[];e=r(d[0].split("\n"));for(var g=e.next();!g.done;g=e.next())if(g=g.value,/^Region:/.test(g)){g=new
|
|
741
|
-
(l.viewportAnchorX=Number(k[1]),l.viewportAnchorY=Number(k[2])):/^scroll=up$/.exec(m)&&(l.scroll="up");
|
|
742
|
-
|
|
743
|
-
function
|
|
744
|
-
b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=
|
|
745
|
-
function
|
|
746
|
-
|
|
747
|
-
sampleSize:null,
|
|
748
|
-
f.push(z))}while(u.sampleSize&&w<u.sampleSize)}return f.filter(
|
|
749
|
-
|
|
707
|
+
d=!1);if(d){this.h=h;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";c=Error(c);c.name="NotSupportedError";c.code=DOMException.NOT_SUPPORTED_ERR;throw c;}Or.prototype.createMediaKeys=function(){var a=new Nr(this.g);return Promise.resolve(a)};Or.prototype.getConfiguration=function(){return this.h};function Nr(a){this.l=a;this.g=null;this.h=new jd;this.i=[];this.j=new Map}
|
|
708
|
+
function Qr(a,b){a.g=b;a.h.Jb();var c=Kr;b&&(a.h.m(b,c+"needkey",function(d){var e=document.createEvent("CustomEvent");e.initCustomEvent("encrypted",!1,!1,null);e.initDataType="cenc";e.initData=fc(d.initData);a.g.dispatchEvent(e)}),a.h.m(b,c+"keymessage",function(d){var e=Rr(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.g?"licenserequest":"licenserenewal").set("message",d.message),d=new M("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.h.m(b,c+"keyadded",
|
|
709
|
+
function(d){if(d=Rr(a,d.sessionId))Sr(d,"usable"),d.g&&d.g.resolve(),d.g=null}),a.h.m(b,c+"keyerror",function(d){var e=Rr(a,d.sessionId);e&&e.handleError(d)}))}Nr.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a&&"persistent-license"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");var b=this.g||document.createElement("video");b.src||(b.src="about:blank");a=new Tr(b,this.l,a);this.i.push(a);return a};Nr.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
|
|
710
|
+
function Rr(a,b){var c=a.j.get(b);return c?c:(c=a.i.shift())?(c.sessionId=b,a.j.set(b,c),c):null}function Tr(a,b,c){$a.call(this);this.j=a;this.u=!1;this.g=this.h=null;this.i=b;this.l=c;this.sessionId="";this.expiration=NaN;this.closed=new ic;this.keyStatuses=new Ur}pa(Tr,$a);p=Tr.prototype;
|
|
711
|
+
p.handleError=function(a){var b=Error("EME v0.1b key error"),c=a.errorCode;c.systemCode=a.systemCode;b.errorCode=c;!a.sessionId&&this.h?(45==a.systemCode&&(b.message="Unsupported session type."),this.h.reject(b),this.h=null):a.sessionId&&this.g?(this.g.reject(b),this.g=null):(b=a.systemCode,a.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?Sr(this,"output-restricted"):1==b?Sr(this,"expired"):Sr(this,"internal-error"))};
|
|
712
|
+
function Vr(a,b,c){if(a.u)return Promise.reject(Error("The session is already initialized."));a.u=!0;try{if("persistent-license"==a.l)if(c)var d=ec(pc("LOAD_SESSION|"+c));else{var e=pc("PERSISTENT|");d=yc(e,b)}else d=ec(b)}catch(g){return Promise.reject(g)}a.h=new ic;var f=Pr("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new O(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).V(.01)}return a.h}
|
|
713
|
+
function Wr(a,b,c){if(a.g)a.g.then(function(){return Wr(a,b,c)})["catch"](function(){return Wr(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=lc(c);var e=JSON.parse(d);"oct"!=e.keys[0].kty&&(a.g.reject(Error("Response is not a valid JSON Web Key Set.")),a.g=null);d=vc(e.keys[0].k);e=vc(e.keys[0].kid)}else d=ec(c),e=null;var f=Pr("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
|
|
714
|
+
function Sr(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new M("keystatuseschange");a.dispatchEvent(c)}p.generateRequest=function(a,b){return Vr(this,b,null)};p.load=function(a){return"persistent-license"==this.l?Vr(this,null,a):Promise.reject(Error("Not a persistent session."))};p.update=function(a){var b=new ic;Wr(this,b,a);return b};
|
|
715
|
+
p.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=Pr("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};p.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function Ur(){this.size=0;this.g=void 0}p=Ur.prototype;p.forEach=function(a){this.g&&a(this.g,ue.value())};p.get=function(a){if(this.has(a))return this.g};
|
|
716
|
+
p.has=function(a){var b=ue.value();return this.g&&cc(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};var Kr="";Qq(Jr);function Xr(){}function Yr(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Zr,Object.defineProperty(a,"disablePictureInPicture",{get:$r,set:as,enumerable:!0,configurable:!0}),document.exitPictureInPicture=bs,document.addEventListener("webkitpresentationmodechanged",cs,!0))}}
|
|
717
|
+
function cs(a){a=a.target;if("picture-in-picture"==a.webkitPresentationMode){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement==a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)}
|
|
718
|
+
function Zr(){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 bs(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
|
|
719
|
+
function $r(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function as(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}Nq.PiPWebkit=Xr;Xr.install=Yr;Qq(Yr);function ds(){}function es(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b["catch"](function(){});return b}}}Nq.VideoPlayPromise=ds;ds.install=es;Qq(es);function fs(){}function gs(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=hs)}}function hs(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}Nq.VideoPlaybackQuality=fs;fs.install=gs;Qq(gs);function is(){}function js(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=ks;else if(6==b)a=ls;else{try{var c=!!ks(1,2,"")}catch(d){c=!1}c&&(a=ks)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function ks(a,b,c){return new window.TextTrackCue(a,b,c)}function ls(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}Nq.VTTCue=is;is.install=js;Qq(js);function ms(){}ms.prototype.parseInit=function(){};
|
|
720
|
+
ms.prototype.parseMedia=function(a,b){var c=lc(a),d=[],e=new DOMParser,f=null;if(""==c)return d;try{f=e.parseFromString(c,"text/xml")}catch(B){throw new N(2,2,2005,"Failed to parse TTML.");}if(f){if(c=f.getElementsByTagName("parsererror")[0])throw new N(2,2,2005,c.textContent);if(e=f.getElementsByTagName("tt")[0]){var g=El(e,"http://www.w3.org/ns/ttml#parameter","frameRate");var h=El(e,"http://www.w3.org/ns/ttml#parameter","subFrameRate");var k=El(e,"http://www.w3.org/ns/ttml#parameter","frameRateMultiplier");
|
|
721
|
+
var l=El(e,"http://www.w3.org/ns/ttml#parameter","tickRate");var m=El(e,"http://www.w3.org/ns/ttml#parameter","cellResolution");f=e.getAttribute("xml:space")||"default";c=El(e,"http://www.w3.org/ns/ttml#styling","extent")}else throw new N(2,2,2005,"TTML does not contain <tt> tag.");if("default"!=f&&"preserve"!=f)throw new N(2,2,2005,"Invalid xml:space value: "+f);f="default"==f;g=new ns(g,h,k,l);m=m?(m=/^(\d+) (\d+)$/.exec(m))?{columns:parseInt(m[1],10),rows:parseInt(m[2],10)}:null:null;h=os(e.getElementsByTagName("metadata")[0]);
|
|
722
|
+
k=os(e.getElementsByTagName("styling")[0]);l=os(e.getElementsByTagName("layout")[0]);for(var n=[],q=r(l),u=q.next();!u.done;u=q.next()){var v=u.value,A=c;u=new Ue;var w=v.getAttribute("xml:id");if(w){u.id=w;w=null;A&&(w=ps.exec(A)||qs.exec(A));A=w?Number(w[1]):null;w=w?Number(w[2]):null;var z,D;if(z=rs(v,k,"extent"))z=(D=ps.exec(z))||qs.exec(z),null!=z&&(u.width=null!=A?100*Number(z[1])/A:Number(z[1]),u.height=null!=w?100*Number(z[2])/w:Number(z[2]),u.widthUnits=D||null!=A?hf:0,u.heightUnits=D||null!=
|
|
723
|
+
w?hf:0);if(v=rs(v,k,"origin"))z=(D=ps.exec(v))||qs.exec(v),null!=z&&(u.viewportAnchorX=null!=A?100*Number(z[1])/A:Number(z[1]),u.viewportAnchorY=null!=w?100*Number(z[2])/w:Number(z[2]),u.viewportAnchorUnits=D||null!=A?hf:0)}else u=null;u&&n.push(u)}c=ss(e.getElementsByTagName("body")[0]);c=r(c);for(e=c.next();!e.done;e=c.next())(e=ts(e.value,b.periodStart,g,h,k,l,n,f,!1,m))&&d.push(e)}return d};
|
|
724
|
+
function os(a){var b=[];if(!a)return b;for(var c=r(a.childNodes),d=c.next();!d.done;d=c.next())d=d.value,d.nodeType==Node.ELEMENT_NODE&&"br"!==d.nodeName&&(d=os(d),b=b.concat(d));b.length||b.push(a);return b}function ss(a){if(!a)return[];var b=[];a=r(a.childNodes);for(var c=a.next();!c.done;c=a.next())c=c.value,c instanceof Element&&(c.hasAttribute("begin")?b.push(c):b=b.concat(ss(c)));return b}
|
|
725
|
+
function us(a,b){for(var c="",d=r(a.childNodes),e=d.next();!e.done;e=d.next())e=e.value,"br"==e.nodeName&&a.childNodes[0]!==e?c+="\n":e.childNodes&&0<e.childNodes.length?c+=us(e,b):b?(e=e.textContent.trim(),e=e.replace(/\s+/g," "),c+=e):c+=e.textContent;return c}
|
|
726
|
+
function ts(a,b,c,d,e,f,g,h,k,l){if(k&&"br"==a.nodeName)return a=new Se(0,0,""),a.spacer=!0,a;var m=/^[\s\n]*$/.test(a.textContent),n=a.nodeType==Node.ELEMENT_NODE&&!a.hasAttribute("begin")&&!a.hasAttribute("end");if(a.nodeType==Node.COMMENT_NODE||a.nodeType!=Node.ELEMENT_NODE||n&&m||n&&!k)return null;h="default"==(a.getAttribute("xml:space")||(h?"default":"preserve"));m=vs(a.getAttribute("begin"),c);n=vs(a.getAttribute("end"),c);var q=vs(a.getAttribute("dur"),c);null==n&&null!=q&&(n=m+q);if(!k&&
|
|
727
|
+
(null==m||null==n))throw new N(2,2,2001);m=k&&null==m?0:m+b;n=k&&null==n?0:n+b;q="";k=[];if(Array.from(a.childNodes).some(function(w){return w.nodeType==Node.TEXT_NODE&&/\S+/.test(w.textContent)}))q=us(a,h);else for(var u=r(a.childNodes),v=u.next();!v.done;v=u.next())if(v=ts(v.value,b,c,d,e,f,g,h,!0,l))v.startTime=v.startTime||m,v.endTime=v.endTime||n,k.push(v);b=new Se(m,n,q);b.nestedCues=k;l&&(b.cellResolution=l);if((f=ws(a,"region",f,"")[0])&&f.getAttribute("xml:id")){var A=f.getAttribute("xml:id");
|
|
728
|
+
b.region=g.filter(function(w){return w.id==A})[0]}d=ws(a,"backgroundImage",d,"#","http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt")[0];xs(b,a,f,d,e);return b}
|
|
729
|
+
function xs(a,b,c,d,e){"rtl"==ys(b,c,e,"direction")&&(a.direction="rtl");var f=ys(b,c,e,"writingMode");"tb"==f||"tblr"==f?a.writingMode="vertical-lr":"tbrl"==f?a.writingMode="vertical-rl":"rltb"==f||"rl"==f?a.direction="rtl":f&&(a.direction=Te);(f=ys(b,c,e,"textAlign"))?(a.positionAlign=zs[f],a.lineAlign=As[f],a.textAlign=df[f.toUpperCase()]):a.textAlign="start";if(f=ys(b,c,e,"displayAlign"))a.displayAlign=ef[f.toUpperCase()];if(f=ys(b,c,e,"color"))a.color=f;if(f=ys(b,c,e,"backgroundColor"))a.backgroundColor=
|
|
730
|
+
f;if(f=ys(b,c,e,"border"))a.border=f;if(f=ys(b,c,e,"fontFamily"))a.fontFamily=f;(f=ys(b,c,e,"fontWeight"))&&"bold"==f&&(a.fontWeight=700);(f=ys(b,c,e,"wrapOption"))&&"noWrap"==f&&(a.wrapLine=!1);(f=ys(b,c,e,"lineHeight"))&&f.match(Bs)&&(a.lineHeight=f);(f=ys(b,c,e,"fontSize"))&&(f.match(Bs)||f.match(Cs))&&(a.fontSize=f);if(f=ys(b,c,e,"fontStyle"))a.fontStyle=gf[f.toUpperCase()];if(d){f=d.getAttribute("imageType")||d.getAttribute("imagetype");var g=d.getAttribute("encoding");d=d.textContent.trim();
|
|
731
|
+
"PNG"==f&&"Base64"==g&&d&&(a.backgroundImage="data:image/png;base64,"+d)}(d=ys(b,c,e,"letterSpacing"))&&d.match(Bs)&&(a.letterSpacing=d);(d=ys(b,c,e,"linePadding"))&&d.match(Bs)&&(a.linePadding=d);if(d=ys(b,c,e,"opacity"))a.opacity=parseFloat(d);(c=rs(c,e,"textDecoration"))&&Ds(a,c);(b=Es(b,e,"textDecoration"))&&Ds(a,b)}
|
|
732
|
+
function Ds(a,b){for(var c=r(b.split(" ")),d=c.next();!d.done;d=c.next())switch(d.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&Rc(a.textDecoration,"underline");break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&Rc(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
|
|
733
|
+
a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&Rc(a.textDecoration,"overline")}}function ys(a,b,c,d){return(a=Es(a,c,d))?a:rs(b,c,d)}function rs(a,b,c){if(!a)return null;var d=os(a);d=r(d);for(var e=d.next();!e.done;e=d.next())if(e=El(e.value,"http://www.w3.org/ns/ttml#styling",c))return e;return Fs(a,b,c)}function Es(a,b,c){var d=El(a,"http://www.w3.org/ns/ttml#styling",c);return d?d:Fs(a,b,c)}
|
|
734
|
+
function Fs(a,b,c){a=ws(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=El(a[e],"urn:ebu:tt:style",c);f||(f=El(a[e],"http://www.w3.org/ns/ttml#styling",c));f||(f=Es(a[e],b,c));f&&(d=f)}return d}
|
|
735
|
+
function ws(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;g&&!(a=e?El(g,e,b):g.getAttribute(b))&&(g=g.parentNode,g instanceof Element););if(b=a)for(b=r(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=r(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.getAttribute("xml:id")==e){f.push(g);break}return f}
|
|
736
|
+
function vs(a,b){var c=null;if(Gs.test(a)){c=Gs.exec(a);var d=Number(c[1]),e=Number(c[2]),f=Number(c[3]),g=Number(c[4]);g+=(Number(c[5])||0)/b.h;f+=g/b.frameRate;c=f+60*e+3600*d}else Hs.test(a)?c=Is(Hs,a):Js.test(a)?c=Is(Js,a):Ks.test(a)?(c=Ks.exec(a),c=Number(c[1])/b.frameRate):Ls.test(a)?(c=Ls.exec(a),c=Number(c[1])/b.g):Ms.test(a)&&(c=Is(Ms,a));return c}
|
|
737
|
+
function Is(a,b){var c=a.exec(b);return null==c||""==c[0]?null:(Number(c[4])||0)/1E3+(Number(c[3])||0)+60*(Number(c[2])||0)+3600*(Number(c[1])||0)}L("shaka.text.TtmlTextParser",ms);ms.prototype.parseMedia=ms.prototype.parseMedia;ms.prototype.parseInit=ms.prototype.parseInit;function ns(a,b,c,d){this.frameRate=Number(a)||30;this.h=Number(b)||1;this.g=Number(d);0==this.g&&(this.g=a?this.frameRate*this.h:1);c&&(a=/^(\d+) (\d+)$/g.exec(c))&&(this.frameRate*=Number(a[1])/Number(a[2]))}
|
|
738
|
+
var ps=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,Cs=/^(\d{1,2}(?:\.\d+)?|100)%$/,Bs=/^(\d+px|\d+em|\d*\.?\d+c)$/,qs=/^(\d+)px (\d+)px$/,Gs=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Hs=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,Js=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,Ks=/^(\d*(?:\.\d*)?)f$/,Ls=/^(\d*(?:\.\d*)?)t$/,Ms=/^(?:(\d*(?:\.\d*)?)h)?(?:(\d*(?:\.\d*)?)m)?(?:(\d*(?:\.\d*)?)s)?(?:(\d*(?:\.\d*)?)ms)?$/,As={left:Ze,center:"center",right:"end",start:Ze,end:"end"},zs=
|
|
739
|
+
{left:"line-left",center:"center",right:"line-right"};mf["application/ttml+xml"]=function(){return new ms};function Ns(){this.B=new ms}Ns.prototype.parseInit=function(a){var b=!1;(new ye).box("moov",Ce).box("trak",Ce).box("mdia",Ce).box("minf",Ce).box("stbl",Ce).ea("stsd",Ee).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new N(2,2,2007);};Ns.prototype.parseMedia=function(a,b){var c=this,d=!1,e=[];(new ye).box("mdat",Fe(function(f){d=!0;e=e.concat(c.B.parseMedia(f,b))})).parse(a,!1);if(!d)throw new N(2,2,2007);return e};L("shaka.text.Mp4TtmlParser",Ns);Ns.prototype.parseMedia=Ns.prototype.parseMedia;
|
|
740
|
+
Ns.prototype.parseInit=Ns.prototype.parseInit;mf['application/mp4; codecs="stpp"']=function(){return new Ns};mf['application/mp4; codecs="stpp.ttml"']=function(){return new Ns};mf['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new Ns};mf['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new Ns};function Os(){}Os.prototype.parseInit=function(){};
|
|
741
|
+
Os.prototype.parseMedia=function(a,b){var c=lc(a);c=c.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var d=c.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(d[0]))throw new N(2,2,2E3);c=b.periodStart;if(d[0].includes("X-TIMESTAMP-MAP")){var e=d[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),f=d[0].match(/MPEGTS:(\d+)/m);if(e&&f){c=Ps(new Qn(e[1]));if(null==c)throw new N(2,2,2E3);f=Number(f[1]);for(e=b.segmentStart;95443.7176888889<=e;)e-=95443.7176888889,f+=8589934592;c=b.periodStart+f/9E4-c}}f=
|
|
742
|
+
[];e=r(d[0].split("\n"));for(var g=e.next();!g.done;g=e.next())if(g=g.value,/^Region:/.test(g)){g=new Qn(g);var h=new Ue;Tn(g);Rn(g);for(var k=Tn(g);k;){var l=h,m=k;(k=/^id=(.*)$/.exec(m))?l.id=k[1]:(k=/^width=(\d{1,2}|100)%$/.exec(m))?l.width=Number(k[1]):(k=/^lines=(\d+)$/.exec(m))?(l.height=Number(k[1]),l.heightUnits=2):(k=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(m))?(l.regionAnchorX=Number(k[1]),l.regionAnchorY=Number(k[2])):(k=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(m))?
|
|
743
|
+
(l.viewportAnchorX=Number(k[1]),l.viewportAnchorY=Number(k[2])):/^scroll=up$/.exec(m)&&(l.scroll="up");Rn(g);k=Tn(g)}f.push(h)}e=[];d=r(d.slice(1));for(g=d.next();!g.done;g=d.next()){l=g.value.split("\n");k=c;if(1==l.length&&!l[0]||/^NOTE($|[ \t])/.test(l[0])||"STYLE"==l[0])g=null;else{g=null;l[0].includes("--\x3e")||(g=l[0],l.splice(0,1));h=new Qn(l[0]);m=Ps(h);var n=Sn(h,/[ \t]+--\x3e[ \t]+/g),q=Ps(h);if(null==m||null==n||null==q)throw new N(2,2,2001);l=new Se(m+k,q+k,l.slice(1).join("\n").trim());
|
|
744
|
+
Rn(h);for(k=Tn(h);k;)Qs(l,k,f),Rn(h),k=Tn(h);null!=g&&(l.id=g);g=l}g&&e.push(g)}return e};
|
|
745
|
+
function Qs(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=We:a.textAlign=df[b.toUpperCase()];else if(d=/^vertical:(lr|rl)$/.exec(b))a.writingMode="lr"==d[1]?"vertical-lr":"vertical-rl";else if(d=/^size:([\d.]+)%$/.exec(b))a.size=Number(d[1]);else if(d=/^position:([\d.]+)%(?:,(line-left|line-right|center|start|end))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==b||"end"==
|
|
746
|
+
b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=Rs(c,d[1]))a.region=b}else if(c=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=1,a.line=Number(c[1]),c[2]&&(a.lineAlign=ff[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=Ye,a.line=Number(c[1]),c[2]&&(a.lineAlign=ff[c[2].toUpperCase()])}function Rs(a,b){var c=a.filter(function(d){return d.id==b});return c.length?c[0]:null}
|
|
747
|
+
function Ps(a){a=Sn(a,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}L("shaka.text.VttTextParser",Os);Os.prototype.parseMedia=Os.prototype.parseMedia;Os.prototype.parseInit=Os.prototype.parseInit;mf["text/vtt"]=function(){return new Os};mf['text/vtt; codecs="vtt"']=function(){return new Os};mf['text/vtt; codecs="wvtt"']=function(){return new Os};function Ss(){this.g=null}Ss.prototype.parseInit=function(a){var b=this,c=!1;(new ye).box("moov",Ce).box("trak",Ce).box("mdia",Ce).ea("mdhd",function(d){0==d.version?(d.reader.skip(4),d.reader.skip(4),b.g=d.reader.T(),d.reader.skip(4)):(d.reader.skip(8),d.reader.skip(8),b.g=d.reader.T(),d.reader.skip(8));d.reader.skip(4)}).box("minf",Ce).box("stbl",Ce).ea("stsd",Ee).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new N(2,2,2008);if(!c)throw new N(2,2,2008);};
|
|
748
|
+
Ss.prototype.parseMedia=function(a,b){if(!this.g)throw new N(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new ye).box("moof",Ce).box("traf",Ce).ea("tfdt",function(E){g=!0;c=0==E.version?E.reader.T():E.reader.Ib()}).ea("tfhd",function(E){var F=E.flags;E=E.reader;E.skip(4);F&1&&E.skip(8);F&2&&E.skip(4);l=F&8?E.T():null}).ea("trun",function(E){h=!0;var F=E.version,I=E.flags;E=E.reader;var G=E.T();I&1&&E.skip(4);I&4&&E.skip(4);var J=[];G=r(fb(G));for(var K=G.next();!K.done;K=G.next())K={duration:null,
|
|
749
|
+
sampleSize:null,ie:null},I&256&&(K.duration=E.T()),I&512&&(K.sampleSize=E.T()),I&1024&&E.skip(4),I&2048&&(K.ie=0==F?E.T():E.Oe()),J.push(K);d=J}).box("mdat",Fe(function(E){k=!0;e=E})).parse(a,!1);if(!k&&!g&&!h)throw new N(2,2,2008);for(var m=c,n=new ve(e,0),q=r(d),u=q.next();!u.done;u=q.next()){u=u.value;var v=u.duration||l,A=u.ie?c+u.ie:m;m=A+(v||0);var w=0;do{var z=n.T();w+=z;var D=n.T(),B=null;"vttc"==Ge(D)?8<z&&(B=n.Hb(z-8)):n.skip(z-8);v&&B&&(z=Ts(B,b.periodStart+A/this.g,b.periodStart+m/this.g),
|
|
750
|
+
f.push(z))}while(u.sampleSize&&w<u.sampleSize)}return f.filter(Eb)};function Ts(a,b,c){var d,e,f;(new ye).box("payl",Fe(function(g){d=lc(g)})).box("iden",Fe(function(g){e=lc(g)})).box("sttg",Fe(function(g){f=lc(g)})).parse(a);return d?Us(d,e,f,b,c):null}function Us(a,b,c,d,e){a=new Se(d,e,a);b&&(a.id=b);if(c)for(b=new Qn(c),c=Tn(b);c;)Qs(a,c,[]),Rn(b),c=Tn(b);return a}L("shaka.text.Mp4VttParser",Ss);Ss.prototype.parseMedia=Ss.prototype.parseMedia;Ss.prototype.parseInit=Ss.prototype.parseInit;
|
|
751
|
+
mf['application/mp4; codecs="wvtt"']=function(){return new Ss};/*
|
|
750
752
|
@license
|
|
751
753
|
EME Encryption Scheme Polyfill
|
|
752
754
|
Copyright 2019 Google LLC
|
|
753
755
|
SPDX-License-Identifier: Apache-2.0
|
|
754
756
|
*/
|
|
755
|
-
function
|
|
756
|
-
function
|
|
757
|
+
function Vs(){}var Ws;function Xs(){Ws?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(Ws=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=Ys):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
|
|
758
|
+
function Ys(a,b){var c=this,d;return H(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),t(e,Ws.call(c,a,b),2);d=e.h;if(Zs(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=Ws,e["return"](d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=$s;return e["return"]($s.call(c,
|
|
757
759
|
a,b))})}
|
|
758
|
-
function
|
|
759
|
-
n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return t(u,
|
|
760
|
-
function
|
|
761
|
-
function
|
|
762
|
-
navigator.mediaCapabilities.decodingInfo=
|
|
763
|
-
function
|
|
764
|
-
new
|
|
765
|
-
v);l=q;m=k;return t(n,navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[l]),5);case 5:m.keySystemAccess=n.h;case 3:return n["return"](k)}})}
|
|
766
|
-
|
|
767
|
-
function
|
|
768
|
-
function
|
|
760
|
+
function $s(a,b){var c=this,d,e,f,g,h,k,l,m,n,q;return H(function(u){if(1==u.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=at(a);e=[];f=r(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=bt(h.videoCapabilities,d),l=bt(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."),
|
|
761
|
+
n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return t(u,Ws.call(c,a,e),2)}q=u.h;return u["return"](new ct(q,d))})}function bt(a,b){return a?a.filter(function(c){return!c.encryptionScheme||c.encryptionScheme==b}):a}L("EmeEncryptionSchemePolyfill",Vs);Vs.install=Xs;function dt(){}var et;
|
|
762
|
+
function ft(){et?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(et=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=gt):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
|
|
763
|
+
function gt(a){var b=this,c,d;return H(function(e){if(1==e.g)return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),t(e,et.call(b,a),2);c=e.h;if(!a.keySystemConfiguration)return e["return"](c);if((d=c.keySystemAccess)&&Zs(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=et,e["return"](c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
|
|
764
|
+
navigator.mediaCapabilities.decodingInfo=ht;return e["return"](ht.call(b,a))})}
|
|
765
|
+
function ht(a){var b=this,c,d,e,f,g,h,k,l,m;return H(function(n){switch(n.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),c=null,a.keySystemConfiguration&&(d=a.keySystemConfiguration,e=d.keySystem,f=d.audio&&d.audio.encryptionScheme,g=d.video&&d.video.encryptionScheme,c=at(e),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},f&&f!=c||g&&g!=c)?n["return"](h):t(n,et.call(b,a),2);case 2:k=n.h;if(k.keySystemAccess){k.keySystemAccess=
|
|
766
|
+
new ct(k.keySystemAccess,c);n.C(3);break}if(!a.keySystemConfiguration){n.C(3);break}var q=a.keySystemConfiguration,u=[],v=[];q.audio&&u.push({robustness:q.audio.robustness||"",contentType:a.audio.contentType});q.video&&v.push({robustness:q.video.robustness||"",contentType:a.video.contentType});q={initDataTypes:q.initDataType?[q.initDataType]:[],distinctiveIdentifier:q.distinctiveIdentifier,persistentState:q.persistentState,sessionTypes:q.sessionTypes};u.length&&(q.audioCapabilities=u);v.length&&(q.videoCapabilities=
|
|
767
|
+
v);l=q;m=k;return t(n,navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[l]),5);case 5:m.keySystemAccess=n.h;case 3:return n["return"](k)}})}L("McEncryptionSchemePolyfill",dt);dt.install=ft;function ct(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem}
|
|
768
|
+
ct.prototype.getConfiguration=function(){var a=this.h.getConfiguration();if(a.videoCapabilities)for(var b=r(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;if(a.audioCapabilities)for(b=r(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;return a};ct.prototype.createMediaKeys=function(){return this.h.createMediaKeys()};
|
|
769
|
+
function at(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||a.startsWith("com.adobe")||a.startsWith("org.w3"))return"cenc";if(a.startsWith("com.apple"))return"cbcs-1-9";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function Zs(a){a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&void 0!==a.encryptionScheme?!0:!1}function it(){}
|
|
770
|
+
function Tq(){Xs();ft()}L("EncryptionSchemePolyfills",it);it.install=Tq;"undefined"!==typeof module&&module.exports&&(module.exports=it);/*
|
|
769
771
|
@license
|
|
770
772
|
Copyright 2013 Ali Al Dallal
|
|
771
773
|
|
|
@@ -789,7 +791,7 @@ function Oq(){Ss();at()}J("EncryptionSchemePolyfills",dt);dt.install=Oq;"undefin
|
|
|
789
791
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
790
792
|
SOFTWARE.
|
|
791
793
|
*/
|
|
792
|
-
for(var
|
|
794
|
+
for(var jt={ach:{o:"Lwo",s:"Acholi"},ady:{o:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",s:"Adyghe"},af:{o:"Afrikaans",s:"Afrikaans"},"af-NA":{o:"Afrikaans (Namibia)",s:"Afrikaans (Namibia)"},"af-ZA":{o:"Afrikaans (South Africa)",s:"Afrikaans (South Africa)"},ak:{o:"T\u0255\u0265i",s:"Akan"},ar:{o:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",s:"Arabic"},"ar-AR":{o:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",s:"Arabic"},"ar-MA":{o:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",s:"Arabic (Morocco)"},
|
|
793
795
|
"ar-SA":{o:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 (\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629)",s:"Arabic (Saudi Arabia)"},"ay-BO":{o:"Aymar aru",s:"Aymara"},az:{o:"Az\u0259rbaycan dili",s:"Azerbaijani"},"az-AZ":{o:"Az\u0259rbaycan dili",s:"Azerbaijani"},"be-BY":{o:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",s:"Belarusian"},bg:{o:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",s:"Bulgarian"},"bg-BG":{o:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",
|
|
794
796
|
s:"Bulgarian"},bn:{o:"\u09ac\u09be\u0982\u09b2\u09be",s:"Bengali"},"bn-IN":{o:"\u09ac\u09be\u0982\u09b2\u09be (\u09ad\u09be\u09b0\u09a4)",s:"Bengali (India)"},"bn-BD":{o:"\u09ac\u09be\u0982\u09b2\u09be(\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)",s:"Bengali (Bangladesh)"},"bs-BA":{o:"Bosanski",s:"Bosnian"},ca:{o:"Catal\u00e0",s:"Catalan"},"ca-ES":{o:"Catal\u00e0",s:"Catalan"},cak:{o:"Maya Kaqchikel",s:"Kaqchikel"},"ck-US":{o:"\u13e3\u13b3\u13a9 (tsalagi)",s:"Cherokee"},cs:{o:"\u010ce\u0161tina",
|
|
795
797
|
s:"Czech"},"cs-CZ":{o:"\u010ce\u0161tina",s:"Czech"},cy:{o:"Cymraeg",s:"Welsh"},"cy-GB":{o:"Cymraeg",s:"Welsh"},da:{o:"Dansk",s:"Danish"},"da-DK":{o:"Dansk",s:"Danish"},de:{o:"Deutsch",s:"German"},"de-AT":{o:"Deutsch (\u00d6sterreich)",s:"German (Austria)"},"de-DE":{o:"Deutsch (Deutschland)",s:"German (Germany)"},"de-CH":{o:"Deutsch (Schweiz)",s:"German (Switzerland)"},dsb:{o:"Dolnoserb\u0161\u0107ina",s:"Lower Sorbian"},el:{o:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",s:"Greek"},"el-GR":{o:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",
|
|
@@ -810,164 +812,164 @@ s:"Slovak"},"sk-SK":{o:"Sloven\u010dina (Slovakia)",s:"Slovak (Slovakia)"},sl:{o
|
|
|
810
812
|
sw:{o:"Kiswahili",s:"Swahili"},"sw-KE":{o:"Kiswahili",s:"Swahili (Kenya)"},ta:{o:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",s:"Tamil"},"ta-IN":{o:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",s:"Tamil"},te:{o:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",s:"Telugu"},"te-IN":{o:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",s:"Telugu"},tg:{o:"\u0437\u0430\u0431\u043e\u0301\u043d\u0438 \u0442\u043e\u04b7\u0438\u043a\u04e3\u0301",s:"Tajik"},"tg-TJ":{o:"\u0442\u043e\u04b7\u0438\u043a\u04e3",s:"Tajik"},th:{o:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22",
|
|
811
813
|
s:"Thai"},"th-TH":{o:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",s:"Thai (Thailand)"},tl:{o:"Filipino",s:"Filipino"},"tl-PH":{o:"Filipino",s:"Filipino"},tlh:{o:"tlhIngan-Hol",s:"Klingon"},tr:{o:"T\u00fcrk\u00e7e",s:"Turkish"},"tr-TR":{o:"T\u00fcrk\u00e7e",s:"Turkish"},"tt-RU":{o:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",s:"Tatar"},uk:{o:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",s:"Ukrainian"},"uk-UA":{o:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",
|
|
812
814
|
s:"Ukrainian"},ur:{o:"\u0627\u0631\u062f\u0648",s:"Urdu"},"ur-PK":{o:"\u0627\u0631\u062f\u0648",s:"Urdu"},uz:{o:"O'zbek",s:"Uzbek"},"uz-UZ":{o:"O'zbek",s:"Uzbek"},vi:{o:"Ti\u1ebfng Vi\u1ec7t",s:"Vietnamese"},"vi-VN":{o:"Ti\u1ebfng Vi\u1ec7t",s:"Vietnamese"},"xh-ZA":{o:"isiXhosa",s:"Xhosa"},yi:{o:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",s:"Yiddish"},"yi-DE":{o:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)",s:"Yiddish (German)"},zh:{o:"\u4e2d\u6587",s:"Chinese"},"zh-HANS":{o:"\u4e2d\u6587\u7b80\u4f53",
|
|
813
|
-
s:"Chinese Simplified"},"zh-HANT":{o:"\u4e2d\u6587\u7e41\u9ad4",s:"Chinese Traditional"},"zh-CN":{o:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",s:"Chinese Simplified (China)"},"zh-HK":{o:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",s:"Chinese Traditional (Hong Kong)"},"zh-SG":{o:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",s:"Chinese Simplified (Singapore)"},"zh-TW":{o:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",s:"Chinese Traditional (Taiwan)"},"zu-ZA":{o:"isiZulu",s:"Zulu"}},
|
|
814
|
-
|
|
815
|
-
X.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};
|
|
816
|
-
function
|
|
817
|
-
""))});this.eventManager.m(this.localization,"locale-updated",function(){});this.eventManager.m(this.localization,"locale-changed",function(){});this.eventManager.m(this.adManager,"ad-started",function(){c.g.
|
|
818
|
-
"ad-stopped",function(){c.h.textContent="";Y(c.g,!1)});this.ad&&
|
|
819
|
-
c.h()});this.eventManager.m(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.m(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.m(this.button,"click",function(){c.ad?
|
|
820
|
-
this.parent.appendChild(this.container);this.eventManager.m(this.bar,"mousedown",function(){e.controls.
|
|
821
|
-
"mouseup",function(){e.g&&(e.g=!1,e.onChangeEnd())})}pa(
|
|
822
|
-
p.setValue=function(a){this.g||(this.bar.value=a)};function
|
|
823
|
-
|
|
824
|
-
"locale-changed",function(){return
|
|
825
|
-
|
|
826
|
-
function
|
|
815
|
+
s:"Chinese Simplified"},"zh-HANT":{o:"\u4e2d\u6587\u7e41\u9ad4",s:"Chinese Traditional"},"zh-CN":{o:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",s:"Chinese Simplified (China)"},"zh-HK":{o:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",s:"Chinese Traditional (Hong Kong)"},"zh-SG":{o:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",s:"Chinese Simplified (Singapore)"},"zh-TW":{o:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",s:"Chinese Traditional (Taiwan)"},"zu-ZA":{o:"isiZulu",s:"Zulu"}},kt=r(Object.keys(jt)),lt=kt.next();!lt.done;lt=
|
|
816
|
+
kt.next()){var mt=lt.value;jt[mt.toLowerCase()]=jt[mt]};function X(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new jd;this.localization=this.controls.$a;this.player=this.controls.Yb();this.video=this.controls.zc();this.adManager=this.player.Yc();this.ad=b.getAd();this.eventManager.m(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.m(this.adManager,"ad-stopped",function(){c.ad=null})}
|
|
817
|
+
X.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};L("shaka.ui.Element",X);X.prototype.release=X.prototype.release;function nt(a){return ot(a,"shaka-back-to-overflow-button")}function ot(a,b){var c=a.getElementsByClassName(b);return c.length?c[0]:null}function pt(a){a&&(a=ot(a,"shaka-chosen-item"))&&a.parentElement.focus()}function qt(){var a=S("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.setAttribute("aria-hidden","true");return a}function Y(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
|
|
818
|
+
function rt(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60),e=Math.floor(a%60);10>e&&(e="0"+e);e=d+":"+e;b&&(10>d&&(e="0"+e),e=c+":"+e);return e};function st(a,b){X.call(this,a,b);var c=this;this.i=S("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=S("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new O(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=rt(e-d,!1)+" / "+rt(e,!1),1<c.ad.getSequenceLength()?c.h.textContent=d:(e=c.localization.resolve("AD_TIME"),c.h.textContent=e.replace("[AD_TIME]",d))):(c.g.stop(),c.h.textContent=
|
|
819
|
+
""))});this.eventManager.m(this.localization,"locale-updated",function(){});this.eventManager.m(this.localization,"locale-changed",function(){});this.eventManager.m(this.adManager,"ad-started",function(){c.g.Ba();c.g.ia(.5)});this.eventManager.m(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.Ba(),this.g.ia(.5))}pa(st,X);st.prototype.release=function(){this.g.stop();this.g=null;X.prototype.release.call(this)};L("shaka.ui.AdCounter",st);function tt(a,b){X.call(this,a,b);var c=this;this.g=S("div");this.g.classList.add("shaka-ad-position");Y(this.g,!1);this.parent.appendChild(this.g);this.h=S("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.m(this.localization,"locale-updated",function(){c.ad&&ut(c)});this.eventManager.m(this.localization,"locale-changed",function(){c.ad&&ut(c)});this.eventManager.m(this.adManager,"ad-started",function(){ut(c)});this.eventManager.m(this.adManager,
|
|
820
|
+
"ad-stopped",function(){c.h.textContent="";Y(c.g,!1)});this.ad&&ut(this)}pa(tt,X);function ut(a){var b=a.ad.getSequenceLength();if(1<b){var c=a.ad.getPositionInSequence();a.h.textContent=a.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(c)).replace("[NUM_ADS]",String(b));Y(a.g,!0)}}L("shaka.ui.AdPosition",tt);function vt(a,b){X.call(this,a,b);var c=this;this.button=di();this.parent.appendChild(this.button);this.eventManager.m(this.localization,"locale-updated",function(){c.g()});this.eventManager.m(this.localization,"locale-changed",function(){c.g()});this.eventManager.m(this.video,"play",function(){c.g();c.h()});this.eventManager.m(this.video,"pause",function(){c.g();c.h()});this.eventManager.m(this.video,"seeking",function(){c.g();c.h()});this.eventManager.m(this.adManager,"ad-paused",function(){c.g();
|
|
821
|
+
c.h()});this.eventManager.m(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.m(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.m(this.button,"click",function(){c.ad?wt(c.controls):xt(c.controls)});this.ad&&(this.g(),this.h())}pa(vt,X);vt.prototype.isPaused=function(){if(this.ad)var a=this.ad.isPaused();else a=this.controls,a=a.g.paused&&!a.ba;return a};vt.prototype.g=function(){};vt.prototype.h=function(){};L("shaka.ui.PlayButton",vt);function yt(a,b){vt.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}pa(yt,vt);yt.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};yt.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};L("shaka.ui.BigPlayButton",yt);function zt(a,b,c,d){X.call(this,a,b);var e=this;this.container=S("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,ia(c));this.g=!1;this.bar=document.createElement("input");this.l=new O(function(){e.onChangeEnd();e.g=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,ia(d));this.bar.type="range";this.bar.step="any";this.bar.min="0";this.bar.max="1";this.bar.value="0";this.container.appendChild(this.bar);
|
|
822
|
+
this.parent.appendChild(this.container);this.eventManager.m(this.bar,"mousedown",function(){e.controls.Eb()&&(e.g=!0,e.onChangeStart())});this.eventManager.m(this.bar,"touchstart",function(f){e.controls.Eb()&&(e.g=!0,At(e,f),e.onChangeStart())});this.eventManager.m(this.bar,"input",function(){e.onChange()});this.eventManager.m(this.bar,"touchmove",function(f){e.g&&(At(e,f),e.onChange())});this.eventManager.m(this.bar,"touchend",function(f){e.g&&(e.g=!1,At(e,f),e.onChangeEnd())});this.eventManager.m(this.bar,
|
|
823
|
+
"mouseup",function(){e.g&&(e.g=!1,e.onChangeEnd())})}pa(zt,X);p=zt.prototype;p.release=function(){this.l&&(this.l.stop(),this.l=null);X.prototype.release.call(this)};p.setRange=function(a,b){this.bar.min=a;this.bar.max=b};p.onChangeStart=function(){};p.onChange=function(){};p.onChangeEnd=function(){};p.changeTo=function(a){this.g||(this.g=!0,this.onChangeStart());var b=parseFloat(this.bar.min),c=parseFloat(this.bar.max);this.bar.value=a>c?c:a<b?b:a;this.onChange();this.l.V(.5)};p.getValue=function(){return parseFloat(this.bar.value)};
|
|
824
|
+
p.setValue=function(a){this.g||(this.bar.value=a)};function At(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect(),e=parseFloat(a.bar.min),f=parseFloat(a.bar.max);c=e+(f-e)/d.width*(c.clientX-d.left);c<e?c=e:c>f&&(c=f);a.bar.value=c}L("shaka.ui.RangeElement",zt);zt.prototype.setValue=zt.prototype.setValue;zt.prototype.getValue=zt.prototype.getValue;zt.prototype.changeTo=zt.prototype.changeTo;zt.prototype.onChangeEnd=zt.prototype.onChangeEnd;zt.prototype.onChange=zt.prototype.onChange;
|
|
825
|
+
zt.prototype.onChangeStart=zt.prototype.onChangeStart;zt.prototype.setRange=zt.prototype.setRange;function Bt(a,b){zt.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.j=S("div");this.j.classList.add("shaka-ad-markers");this.container.insertBefore(this.j,this.container.childNodes[0]);this.v=this.controls.v;this.h=new O(function(){c.video.currentTime=c.getValue()});this.u=new O(function(){Ct(c)});this.A=!1;this.i=[];this.eventManager.m(this.localization,"locale-updated",function(){return Dt(c)});this.eventManager.m(this.localization,
|
|
826
|
+
"locale-changed",function(){return Dt(c)});this.eventManager.m(this.adManager,"ad-started",function(){Y(c.container,!1)});this.eventManager.m(this.adManager,"ad-stopped",function(){Et(c)&&Y(c.container,!0)});this.eventManager.m(this.adManager,"ad-cue-points-changed",function(d){c.i=d.cuepoints;Ft(c)});this.eventManager.m(this.player,"unloading",function(){c.i=[];Ft(c)});this.setValue(this.video.currentTime);Gt(this);Dt(this);this.ad&&Y(this.container,!1)}pa(Bt,zt);
|
|
827
|
+
Bt.prototype.release=function(){this.h&&(this.h.stop(),this.h=null,this.u.stop(),this.u=null);zt.prototype.release.call(this)};Bt.prototype.onChangeStart=function(){this.A=!this.video.paused;this.controls.be(!0);this.video.pause()};Bt.prototype.onChange=function(){this.video.duration&&(Gt(this),this.h.V(.125))};Bt.prototype.onChangeEnd=function(){this.h.Ba();this.controls.be(!1);this.A&&this.video.play()};
|
|
828
|
+
function Gt(a){var b=a.v.seekBarColors,c=a.getValue(),d=a.video.buffered.length,e=d?a.video.buffered.start(0):0,f=d?a.video.buffered.end(d-1):0,g=a.player.Pa(),h=g.end-g.start;a.setRange(g.start,g.end);Et(a)?(Y(a.container,!0),0==d?a.container.style.background=b.base:(d=(Math.max(e,g.start)-g.start)/h||0,f=(Math.min(f,g.end)-g.start)/h||0,c=(Math.min(Math.max(c,g.start),g.end)-g.start)/h||0,a.container.style.background="linear-gradient("+["to right",(a.v.showUnbufferedStart?b.base:b.played)+" "+100*
|
|
827
829
|
d+"%",b.played+" "+100*d+"%",b.played+" "+100*c+"%",b.buffered+" "+100*c+"%",b.buffered+" "+100*f+"%",b.base+" "+100*f+"%"].join()+")")):Y(a.container,!1)}
|
|
828
|
-
function
|
|
829
|
-
100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.j.style.background="linear-gradient("+d.join(",")+")"}else a.j.style.background="transparent"}function
|
|
830
|
-
|
|
831
|
-
p.destroy=function(){var a=this;return
|
|
832
|
-
null;case 6:a.D=null,a.B=null,a.g=null,a
|
|
833
|
-
p.configure=function(a){this.v=a;this.A.
|
|
834
|
-
p.
|
|
835
|
-
p.
|
|
836
|
-
p.
|
|
837
|
-
p.
|
|
838
|
-
function
|
|
839
|
-
"svg");b.setAttribute("class","shaka-spinner-svg");b.setAttribute("viewBox","0 0 30 30");c.appendChild(b);c=document.createElementNS("http://www.w3.org/2000/svg","circle");c.setAttribute("class","shaka-spinner-path");c.setAttribute("cx","15");c.setAttribute("cy","15");c.setAttribute("r","14.5");c.setAttribute("fill","none");c.setAttribute("stroke-width","1");c.setAttribute("stroke-miterlimit","10");b.appendChild(c)}a.
|
|
840
|
-
|
|
841
|
-
function
|
|
842
|
-
function
|
|
843
|
-
function
|
|
844
|
-
"Please update UI elements to have a release() method."),b.
|
|
845
|
-
function
|
|
846
|
-
a.h.m(a.A,"caststatuschanged",function(){
|
|
847
|
-
case "End":a.l&&
|
|
848
|
-
function
|
|
849
|
-
function
|
|
850
|
-
function
|
|
851
|
-
p.
|
|
852
|
-
function
|
|
853
|
-
function
|
|
854
|
-
function
|
|
855
|
-
function
|
|
830
|
+
function Ct(a){if(a.i.length){for(var b=a.player.Pa(),c=b.end-b.start,d=["to right"],e=[],f=a.v.seekBarColors.adBreaks,g=!1,h=r(a.i),k=h.next();!k.done;k=h.next())if(k=k.value,-1!=k.start||k.end||(g=!0),k.start>=b.start&&k.start<b.end&&!(k.end&&k.end>b.end)){var l=(k.start-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}b=r(e);for(k=b.next();!k.done;k=b.next())c=k.value,d.push("transparent "+100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+
|
|
831
|
+
100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.j.style.background="linear-gradient("+d.join(",")+")"}else a.j.style.background="transparent"}function Ft(a){Ct(a);var b=a.player.Pa();b=b.end-b.start;a.player.W()&&5<b&&a.u.ia(1)}function Et(a){var b=a.player.Pa();b=b.end-b.start;return a.player.W()&&5>b?!1:null==a.ad}function Dt(a){a.bar.setAttribute("aria-label",a.localization.resolve("SEEK"))}L("shaka.ui.SeekBar",Bt);function Z(a,b,c,d){$a.call(this);var e=this;this.X=!0;this.v=d;this.A=new Uk(c,a,this.v.castReceiverAppId);this.mb=!0;this.g=this.A.zc();this.B=c;this.D=this.A.Yb();this.Sa=a;this.j=b;this.kb=this.D.Yc();this.l=this.u=null;this.ba=!1;this.H=[];this.Tb=[];this.vb=!1;this.ka=new O(function(){e.j.style.cursor="none";e.vb=!1;Ht(e)});this.ua=new O(function(){e.i.removeAttribute("shown");e.J.V(2)});this.J=new O(function(){for(var f=r(e.H),g=f.next();!g.done;g=f.next())Y(g.value,!1)});this.ab=new O(function(){e.Eb()&&
|
|
832
|
+
It(e)});this.K=null;this.S=[];this.$a=Jt();this.h=new jd;this.configure(this.v);Kt(this);this.Da=new Set;Lt(this);this.ab.ia(.125);this.h.m(this.$a,"locale-changed",function(f){e.kb.setLocale(f.locales[0])})}pa(Z,$a);p=Z.prototype;
|
|
833
|
+
p.destroy=function(){var a=this;return H(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.B){b.C(2);break}return t(b,document.exitPictureInPicture(),2);case 2:a.h&&(a.h.release(),a.h=null);a.ka&&(a.ka.stop(),a.ka=null);a.ua&&(a.ua.stop(),a.ua=null);a.J&&(a.J.stop(),a.J=null);a.ab&&(a.ab.stop(),a.ab=null);Mt(a);a.i&&(a.j.removeChild(a.i),a.i=null);if(!a.A){b.C(4);break}return t(b,a.A.destroy(),5);case 5:a.A=null;case 4:if(!a.Sa){b.C(6);break}return t(b,a.Sa.destroy(),7);case 7:a.Sa=
|
|
834
|
+
null;case 6:a.D=null,a.B=null,a.g=null,a.$a=null,a.Da.clear(),x(b)}})};function Mt(a){for(var b=r(a.S),c=b.next();!c.done;c=b.next())c.value.release();a.S=[]}function Nt(a,b){Ot.set(a,b)}p.gf=function(a){this.mb=a;Lt(this)};p.Uf=function(){Pt(this)};
|
|
835
|
+
p.configure=function(a){this.v=a;this.A.ue(a.castReceiverAppId);this.l&&(this.l=null);this.sb&&(this.sb=null);this.i?(ei(this.i),Mt(this)):(Qt(this),this.aa=S("div"),this.aa.classList.add("shaka-client-side-ad-container"),Y(this.aa,!1),this.j.appendChild(this.aa));Rt(this);Pt(this);a=r(this.j.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.h.m(b,"click",c);this.h.m(b,"dblclick",c)}};
|
|
836
|
+
p.Zd=function(a){(this.X=a)?(this.j.setAttribute("shaka-controls","true"),this.B.tabIndex=-1,this.B.controls=!1):this.j.removeAttribute("shaka-controls");Pt(this)};p.Ue=function(a){this.B.controls=a;this.B.tabIndex=a?0:-1;a&&this.Zd(!1)};p.getAd=function(){return this.u};p.qf=function(){return this.A};p.Bf=function(){return this.$a};p.Pf=function(){return this.j};p.zc=function(){return this.g};p.Af=function(){return this.B};p.Yb=function(){return this.D};p.zf=function(){return this.Sa};p.uf=function(){return this.i};
|
|
837
|
+
p.Kf=function(){return this.ub};p.rf=function(){return this.aa};p.sf=function(){return this.v};p.Tf=function(){return this.ba};p.be=function(a){this.ba=a};p.Rf=function(){return this.mb};p.Ae=function(){return this.l?this.l.getValue():this.g.currentTime};p.Ve=function(a){this.K=a};p.Tc=function(){return this.H.some(function(a){return!a.classList.contains("shaka-hidden")})};p.Bc=function(){this.J.Ba()};
|
|
838
|
+
p.je=function(){var a=this,b;return H(function(c){switch(c.g){case 1:if(document.fullscreenElement)return t(c,document.exitFullscreen(),0);y(c,4);if(!document.pictureInPictureElement){c.C(6);break}return t(c,document.exitPictureInPicture(),6);case 6:return t(c,a.j.requestFullscreen({navigationUI:"hide"}),8);case 8:ua(c,0);break;case 4:b=C(c),a.dispatchEvent(new M("error",(new Map).set("detail",b))),c.C(0)}})};p.Xe=function(){Y(this.N,!0);Y(this.aa,!0);this.i.setAttribute("ad-active","true")};
|
|
839
|
+
p.Ce=function(){Y(this.N,!1);Y(this.aa,!1);this.i.removeAttribute("ad-active")};function xt(a){a.X&&a.g.duration&&(a.D.qe(),a.g.paused&&!a.ba?a.g.play():a.g.pause())}function wt(a){a.u&&a.u.isPaused()?a.u.play():a.u&&a.u.pause()}
|
|
840
|
+
function Rt(a){a.j.classList.add("shaka-video-container");a.B.classList.add("shaka-video");var b=S("div");b.classList.add("shaka-scrim-container");a.i.appendChild(b);a.v.addBigPlayButton&&(b=S("div"),b.classList.add("shaka-play-button-container"),a.i.appendChild(b),a.sb=new yt(b,a),a.S.push(a.sb));if(!a.ra){a.ra=S("div");a.ra.classList.add("shaka-spinner-container");a.j.appendChild(a.ra);var c=S("div");c.classList.add("shaka-spinner");a.ra.appendChild(c);b=document.createElementNS("http://www.w3.org/2000/svg",
|
|
841
|
+
"svg");b.setAttribute("class","shaka-spinner-svg");b.setAttribute("viewBox","0 0 30 30");c.appendChild(b);c=document.createElementNS("http://www.w3.org/2000/svg","circle");c.setAttribute("class","shaka-spinner-path");c.setAttribute("cx","15");c.setAttribute("cy","15");c.setAttribute("r","14.5");c.setAttribute("fill","none");c.setAttribute("stroke-width","1");c.setAttribute("stroke-miterlimit","10");b.appendChild(c)}a.ub=S("div");a.ub.classList.add("shaka-server-side-ad-container");a.i.appendChild(a.ub);
|
|
842
|
+
St(a);a.H=Array.from(a.j.getElementsByClassName("shaka-settings-menu"));a.H.push.apply(a.H,ia(Array.from(a.j.getElementsByClassName("shaka-overflow-menu"))));if(a.v.addSeekBar)a.l=new Bt(a.P,a),a.S.push(a.l);else for(b=r(a.H),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.Tb=Array.from(a.j.getElementsByClassName("shaka-show-controls-on-mouse-over"))}
|
|
843
|
+
function Qt(a){a.i=S("div");a.i.classList.add("shaka-controls-container");a.j.appendChild(a.i);a.j.setAttribute("shaka-controls","true");a.h.m(a.i,"touchstart",function(b){a.g.duration&&(a.Eb()?a.K=Date.now():(Tt(a,b),b.preventDefault()))},{passive:!1});a.h.m(a.i,"click",function(){a.X&&(a.Tc()?a.J.Ba():a.u?wt(a):xt(a))});a.h.m(a.i,"dblclick",function(){a.v.doubleClickForFullscreen&&document.fullscreenEnabled&&a.je()})}
|
|
844
|
+
function Ut(a){a.N=S("div");a.N.classList.add("shaka-ad-controls");Y(a.N,null!=a.u);a.P.appendChild(a.N);var b=new tt(a.N,a);a.S.push(b);b=new st(a.N,a);a.S.push(b)}
|
|
845
|
+
function St(a){a.P=S("div");a.P.classList.add("shaka-bottom-controls");a.P.classList.add("shaka-no-propagation");a.i.appendChild(a.P);a.h.m(a.P,"click",function(){a.Bc()});Ut(a);a.Ta=S("div");a.Ta.classList.add("shaka-controls-button-panel");a.Ta.classList.add("shaka-show-controls-on-mouse-over");a.P.appendChild(a.Ta);for(var b={},c=r(a.v.controlPanelElements),d=c.next();!d.done;b={jc:b.jc},d=c.next())d=d.value,Ot.get(d)?(d=Ot.get(d).create(a.Ta,a),"function"!=typeof d.release&&(yb("shaka.extern.IUIElement",
|
|
846
|
+
"Please update UI elements to have a release() method."),b.jc=d,b.jc.release=function(e){return function(){e.jc.destroy&&e.jc.destroy()}}(b)),a.S.push(d)):Oa("Unrecognized control panel element requested:",d)}
|
|
847
|
+
function Kt(a){a.h.m(a.D,"buffering",function(){a.X&&Y(a.ra,a.D.Dc())});a.X&&Y(a.ra,a.D.Dc());a.h.m(window,"keydown",function(b){Vt(a,b)});a.h.m(window,"click",function(){return a.Bc()});a.h.m(a.g,"play",function(){Pt(a)});a.h.m(a.g,"pause",function(){Pt(a)});a.h.m(a.g,"ended",function(){Pt(a)});a.h.m(a.j,"mousemove",function(b){Tt(a,b)});a.h.m(a.j,"touchmove",function(b){Tt(a,b)},{passive:!0});a.h.m(a.j,"touchend",function(b){Tt(a,b)},{passive:!0});a.h.m(a.j,"mouseleave",function(){a.K||a.ka.Ba()});
|
|
848
|
+
a.h.m(a.A,"caststatuschanged",function(){Lt(a)});a.h.m(a.j,"keydown",function(b){var c=document.activeElement,d=c&&c.classList?c.classList.contains("shaka-volume-bar"):!1,e=c&&c.classList&&c.classList.contains("shaka-seek-bar");a.i.contains(c)&&Tt(a,b);if(a.v.enableKeyboardPlaybackControls)switch(b.key){case "ArrowLeft":a.l&&!d&&(b.preventDefault(),Wt(a,a.l.getValue()-5));break;case "ArrowRight":a.l&&!d&&(b.preventDefault(),Wt(a,a.l.getValue()+5));break;case "Home":a.l&&Wt(a,a.D.Pa().start);break;
|
|
849
|
+
case "End":a.l&&Wt(a,a.D.Pa().end);break;case " ":e&&(a.u?wt(a):xt(a))}});a.h.m(a.j,"keyup",function(b){a.Da["delete"](b.key)});a.h.m(a.kb,"ad-started",function(b){a.u=b.ad;a.Xe()});a.h.m(a.kb,"ad-stopped",function(){a.u=null;a.Ce()});screen.orientation&&a.h.m(screen.orientation,"change",function(){return H(function(b){return t(b,Xt(a),0)})});a.h.m(document,"fullscreenchange",function(){a.u&&a.u.resize(a.B.offsetWidth,a.B.offsetHeight)})}
|
|
850
|
+
function Xt(a){return H(function(b){return a.g&&0!=a.g.readyState&&!a.A.na()&&a.v.enableFullscreenOnRotation?screen.orientation.type.includes("landscape")&&!document.fullscreenElement?t(b,a.j.requestFullscreen({navigationUI:"hide"}),0):screen.orientation.type.includes("portrait")&&document.fullscreenElement?t(b,document.exitFullscreen(),0):b.C(0):b["return"]()})}
|
|
851
|
+
function Tt(a,b){"mousemove"==b.type&&(a.i.classList.remove("shaka-keyboard-navigation"),Ht(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.K=Date.now():a.K+1E3<Date.now()&&(a.K=null);a.K&&"mousemove"==b.type||(a.j.style.cursor="",a.vb=!0,a.J.stop(),a.Eb()||(It(a),Ht(a)),a.ka.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.K||a.ka.V(3))}function Yt(a){return window.matchMedia("hover: hover").matches?a.Tb.some(function(b){return b.matches(":hover")}):!1}
|
|
852
|
+
function Ht(a){var b=a.u?a.u.isPaused():!1,c=a.g.paused&&!a.ba,d=a.i.classList.contains("shaka-keyboard-navigation");b||!a.u&&c||a.vb||d||Yt(a)?(It(a),a.i.setAttribute("shown","true"),a.ua.stop()):a.ua.V(a.v.fadeDelay)}function Lt(a){var b=a.A.na();a.dispatchEvent(new M("caststatuschanged",(new Map).set("newStatus",b)));b?a.i.setAttribute("casting","true"):a.i.removeAttribute("casting")}function Pt(a){a.g.ended&&!a.g.paused&&a.g.pause();Ht(a)}
|
|
853
|
+
p.Eb=function(){return this.X?null!=this.i.getAttribute("shown")||null!=this.i.getAttribute("casting"):!1};function Wt(a,b){a.l.changeTo(b);a.Eb()&&It(a)}
|
|
854
|
+
function It(a){if(a.l)if(a.l.setValue(a.g.currentTime),Gt(a.l),a.l.container.classList.contains("shaka-hidden")){var b=r(a.H);for(c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position")}else{b=r(a.H);for(var c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position")}a.dispatchEvent(new M("timeandseekrangeupdated"))}
|
|
855
|
+
function Vt(a,b){a.Da.add(b.key);var c=a.Tc();"Tab"==b.key&&(a.i.classList.add("shaka-keyboard-navigation"),Ht(a),a.h.m(window,"mousedown",function(){a.h.Ja(window,"mousedown")}));"Escape"==b.key&&a.J.Ba();c&&a.Da.has("Tab")&&Zt(a,b)}
|
|
856
|
+
function Zt(a,b){var c=a.H.filter(function(f){return!f.classList.contains("shaka-hidden")});if(c.length){var d=c[0];if(d.childNodes.length){for(c=d.firstElementChild;c&&c.classList.contains("shaka-hidden");)c=c.nextElementSibling;for(d=d.lastElementChild;d&&d.classList.contains("shaka-hidden");)d=d.previousElementSibling;var e=document.activeElement;a.Da.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
|
|
857
|
+
function Jt(){var a=new Ub("en");a.ha("ar",new Map([["AD_DURATION","\u0645\u062f\u0629 \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["AD_PROGRESS","\u0627\u0644\u0625\u0639\u0644\u0627\u0646 [AD_ON] \u0645\u0646 [NUM_ADS]"],["AD_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],
|
|
856
858
|
["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"],
|
|
857
859
|
["EXIT_PICTURE_IN_PICTURE",'\u0627\u0644\u062e\u0631\u0648\u062c \u0645\u0646 \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],["FAST_FORWARD","\u062a\u0642\u062f\u064a\u0645 \u0633\u0631\u064a\u0639"],["FULL_SCREEN","\u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["LANGUAGE","\u0627\u0644\u0644\u063a\u0629"],["LIVE","\u0645\u0628\u0627\u0634\u0631"],["LOOP","\u062a\u0643\u0631\u0627\u0631"],["MORE_SETTINGS","\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0625\u0639\u062f\u0627\u062f\u0627\u062a"],
|
|
858
860
|
["MULTIPLE_LANGUAGES","\u0644\u063a\u0627\u062a \u0645\u062a\u0639\u062f\u062f\u0629"],["MUTE","\u0643\u062a\u0645 \u0627\u0644\u0635\u0648\u062a"],["NOT_APPLICABLE","\u063a\u064a\u0631 \u0633\u0627\u0631\u064d"],["OFF","\u0625\u064a\u0642\u0627\u0641"],["ON","\u062a\u0634\u063a\u064a\u0644"],["PAUSE","\u0625\u064a\u0642\u0627\u0641 \u0645\u0624\u0642\u062a"],["PICTURE_IN_PICTURE","\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0627\u0644\u0646\u0627\u0641\u0630\u0629"],["PLAY","\u0627\u0644\u062a\u0634\u063a\u064a\u0644"],
|
|
859
861
|
["PLAYBACK_RATE","\u0633\u0631\u0639\u0629 \u0627\u0644\u062a\u0634\u063a\u064a\u0644"],["RESOLUTION","\u062f\u0631\u062c\u0629 \u0627\u0644\u062f\u0642\u0629"],["REWIND","\u062a\u0631\u062c\u064a\u0639"],["SEEK","\u0627\u0644\u0628\u062d\u062b \u0628\u0627\u0644\u062a\u0645\u0631\u064a\u0631"],["SKIP_AD","\u062a\u062e\u0637\u0651\u064a \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["SKIP_TO_LIVE","\u0627\u0644\u0627\u0646\u062a\u0642\u0627\u0644 \u0625\u0644\u0649 \u0628\u062b \u0645\u0628\u0627\u0634\u0631"],
|
|
860
|
-
["UNDETERMINED_LANGUAGE","\u063a\u064a\u0631 \u0645\u062d\u062f\u062f"],["UNMUTE","\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0635\u0648\u062a"],["UNRECOGNIZED_LANGUAGE","\u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641"],["VOLUME","\u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0648\u062a"]]));a.
|
|
862
|
+
["UNDETERMINED_LANGUAGE","\u063a\u064a\u0631 \u0645\u062d\u062f\u062f"],["UNMUTE","\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0635\u0648\u062a"],["UNRECOGNIZED_LANGUAGE","\u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641"],["VOLUME","\u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0648\u062a"]]));a.ha("de",new Map([["AD_DURATION","Dauer der Werbeanzeige"],["AD_PROGRESS","Werbung\u00a0[AD_ON] von\u00a0[NUM_ADS]"],["AD_TIME","Werbeanzeige: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Zur\u00fcck"],
|
|
861
863
|
["CAPTIONS","Untertitel"],["CAST","Streamen..."],["ENTER_LOOP_MODE","In Endlosschleife spielen"],["ENTER_PICTURE_IN_PICTURE","Bild-im-Bild-Modus aktivieren"],["EXIT_FULL_SCREEN","Vollbildmodus beenden"],["EXIT_LOOP_MODE","Endlosschleife stoppen"],["EXIT_PICTURE_IN_PICTURE","Bild-im-Bild-Modus beenden"],["FAST_FORWARD","Vorspulen"],["FULL_SCREEN","Vollbildmodus"],["LANGUAGE","Sprache"],["LIVE","Live"],["LOOP","Schleife"],["MORE_SETTINGS","Weitere Einstellungen"],["MULTIPLE_LANGUAGES","Mehrere Sprachen"],
|
|
862
864
|
["MUTE","Stummschalten"],["NOT_APPLICABLE","Nicht zutreffend"],["OFF","Aus"],["ON","Ein"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Bild im Bild"],["PLAY","Wiedergabe"],["PLAYBACK_RATE","Geschwindigkeit"],["RESOLUTION","Aufl\u00f6sung"],["REWIND","Zur\u00fcckspulen"],["SEEK","Suche"],["SKIP_AD","\u00dcberspringen"],["SKIP_TO_LIVE","Zum Live-Videostream wechseln"],["UNDETERMINED_LANGUAGE","Unbestimmt"],["UNMUTE","Stummschaltung aufheben"],["UNRECOGNIZED_LANGUAGE","Unbekannt"],["VOLUME","Lautst\u00e4rke"]]));
|
|
863
|
-
a.
|
|
865
|
+
a.ha("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter Picture-in-Picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit Picture-in-Picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],
|
|
864
866
|
["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["REPLAY","Replay"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip Ad"],["SKIP_TO_LIVE","Skip ahead to live"],["UNDETERMINED_LANGUAGE","Undetermined"],
|
|
865
|
-
["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.
|
|
867
|
+
["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.ha("en-GB",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["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",
|
|
866
868
|
"Exit picture-in-picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip ad"],["SKIP_TO_LIVE",
|
|
867
|
-
"Skip ahead to live"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]]));a.
|
|
869
|
+
"Skip ahead to live"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]]));a.ha("es",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Enviar..."],["ENTER_LOOP_MODE","Reproducir en bucle el v\u00eddeo actual"],["ENTER_PICTURE_IN_PICTURE","Activar el modo imagen en imagen"],
|
|
868
870
|
["EXIT_FULL_SCREEN","Salir del modo de pantalla completa"],["EXIT_LOOP_MODE","Dejar de reproducir en bucle el v\u00eddeo actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo imagen en imagen"],["FAST_FORWARD","Avanzar r\u00e1pidamente"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Reproducir en bucle"],["MORE_SETTINGS","M\u00e1s ajustes"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],
|
|
869
|
-
["ON","Activado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Imagen en imagen"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Rebobinar"],["SEEK","Buscar"],["SKIP_AD","Saltar anuncio"],["SKIP_TO_LIVE","Ir al v\u00eddeo en directo"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.
|
|
871
|
+
["ON","Activado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Imagen en imagen"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Rebobinar"],["SEEK","Buscar"],["SKIP_AD","Saltar anuncio"],["SKIP_TO_LIVE","Ir al v\u00eddeo en directo"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.ha("es-419",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],
|
|
870
872
|
["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Transmitir..."],["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"],
|
|
871
873
|
["FAST_FORWARD","Avanzar"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Repetir indefinidamente"],["MORE_SETTINGS","M\u00e1s opciones de configuraci\u00f3n"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Detener"],["PICTURE_IN_PICTURE","Pantalla en pantalla"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["RESOLUTION","Resoluci\u00f3n"],
|
|
872
|
-
["REWIND","Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],["SKIP_TO_LIVE","Adelantar hasta la transmisi\u00f3n en vivo"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.
|
|
874
|
+
["REWIND","Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],["SKIP_TO_LIVE","Adelantar hasta la transmisi\u00f3n en vivo"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.ha("fr",new Map([["AD_DURATION","Dur\u00e9e de l'annonce"],["AD_PROGRESS","Annonce\u00a0[AD_ON] sur\u00a0[NUM_ADS]"],["AD_TIME","Annonce\u00a0: [AD_TIME]"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["CAPTIONS","Sous-titres"],
|
|
873
875
|
["CAST","Caster\u2026"],["ENTER_LOOP_MODE","Lire en boucle la vid\u00e9o en cours"],["ENTER_PICTURE_IN_PICTURE","Utiliser le mode Picture-in-Picture"],["EXIT_FULL_SCREEN","Quitter le mode plein \u00e9cran"],["EXIT_LOOP_MODE","Arr\u00eater la lecture en boucle de la vid\u00e9o en cours"],["EXIT_PICTURE_IN_PICTURE","Quitter le mode\u00a0PIP (Picture-in-picture)"],["FAST_FORWARD","Avance rapide"],["FULL_SCREEN","Plein \u00e9cran"],["LANGUAGE","Langue"],["LIVE","En direct"],["LOOP","R\u00e9p\u00e9ter"],
|
|
874
876
|
["MORE_SETTINGS","Plus de param\u00e8tres"],["MULTIPLE_LANGUAGES","Plusieurs langues"],["MUTE","Couper le son"],["NOT_APPLICABLE","Non applicable"],["OFF","D\u00e9sactiv\u00e9e"],["ON","Activ\u00e9e"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Visionner"],["PLAYBACK_RATE","Vitesse de lecture"],["RESOLUTION","R\u00e9solution"],["REWIND","Retour arri\u00e8re"],["SEEK","Chercher"],["SKIP_AD","Passer l'annonce"],["SKIP_TO_LIVE","Acc\u00e9der \u00e0 la partie la plus r\u00e9cente du direct"],
|
|
875
|
-
["UNDETERMINED_LANGUAGE","Langue ind\u00e9termin\u00e9e"],["UNMUTE","R\u00e9activer le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]]));a.
|
|
877
|
+
["UNDETERMINED_LANGUAGE","Langue ind\u00e9termin\u00e9e"],["UNMUTE","R\u00e9activer le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]]));a.ha("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_TIME","Annuncio: [AD_TIME]"],["AUTO_QUALITY","Automatica"],["BACK","Indietro"],["CAPTIONS","Sottotitoli"],["CAST","Trasmetti..."],["ENTER_LOOP_MODE","Riproduci in loop il video corrente"],["ENTER_PICTURE_IN_PICTURE","Attiva Picture in picture"],
|
|
876
878
|
["EXIT_FULL_SCREEN","Esci da schermo intero"],["EXIT_LOOP_MODE","Interrompi riproduzione in loop del video corrente"],["EXIT_PICTURE_IN_PICTURE","Esci da Picture in picture"],["FAST_FORWARD","Avanti veloce"],["FULL_SCREEN","Schermo intero"],["LANGUAGE","Lingua"],["LIVE","Dal vivo"],["LOOP","Riproduci in loop"],["MORE_SETTINGS","Altre impostazioni"],["MULTIPLE_LANGUAGES","Pi\u00f9 lingue"],["MUTE","Disattiva audio"],["NOT_APPLICABLE","Non applicabile"],["OFF","Disattivo"],["ON","Attivo"],["PAUSE",
|
|
877
|
-
"Metti in pausa"],["PICTURE_IN_PICTURE","Picture in picture"],["PLAY","Riproduci"],["PLAYBACK_RATE","Velocit\u00e0 di riproduzione"],["RESOLUTION","Risoluzione"],["REWIND","Riavvolgi"],["SEEK","Cerca"],["SKIP_AD","Salta annuncio"],["SKIP_TO_LIVE","Passa alla trasmissione dal vivo"],["UNDETERMINED_LANGUAGE","Indeterminata"],["UNMUTE","Riattiva audio"],["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.
|
|
879
|
+
"Metti in pausa"],["PICTURE_IN_PICTURE","Picture in picture"],["PLAY","Riproduci"],["PLAYBACK_RATE","Velocit\u00e0 di riproduzione"],["RESOLUTION","Risoluzione"],["REWIND","Riavvolgi"],["SEEK","Cerca"],["SKIP_AD","Salta annuncio"],["SKIP_TO_LIVE","Passa alla trasmissione dal vivo"],["UNDETERMINED_LANGUAGE","Indeterminata"],["UNMUTE","Riattiva audio"],["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.ha("ja",new Map([["AD_DURATION","\u5e83\u544a\u518d\u751f\u6642\u9593"],["AD_PROGRESS",
|
|
878
880
|
"[AD_ON] \u756a\u76ee\u306e\u5e83\u544a\uff08\u5168 [NUM_ADS] \u500b\uff09"],["AD_TIME","\u5e83\u544a: [AD_TIME]"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u623b\u308b"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u30ad\u30e3\u30b9\u30c8..."],["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"],
|
|
879
881
|
["EXIT_LOOP_MODE","\u73fe\u5728\u306e\u52d5\u753b\u306e\u30eb\u30fc\u30d7\u518d\u751f\u3092\u505c\u6b62"],["EXIT_PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc\u3092\u7d42\u4e86"],["FAST_FORWARD","\u65e9\u9001\u308a"],["FULL_SCREEN","\u5168\u753b\u9762\u8868\u793a"],["LANGUAGE","\u8a00\u8a9e"],["LIVE","\u30e9\u30a4\u30d6"],["LOOP","\u30eb\u30fc\u30d7"],["MORE_SETTINGS","\u8a73\u7d30\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u8a00\u8a9e"],["MUTE",
|
|
880
882
|
"\u30df\u30e5\u30fc\u30c8"],["NOT_APPLICABLE","\u8a72\u5f53\u306a\u3057"],["OFF","\u30aa\u30d5"],["ON","\u30aa\u30f3"],["PAUSE","\u4e00\u6642\u505c\u6b62"],["PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc"],["PLAY","\u518d\u751f"],["PLAYBACK_RATE","\u518d\u751f\u901f\u5ea6"],["RESOLUTION","\u89e3\u50cf\u5ea6"],["REWIND","\u5dfb\u304d\u623b\u3057"],["SEEK","\u30b7\u30fc\u30af\u518d\u751f"],["SKIP_AD","\u5e83\u544a\u3092\u30b9\u30ad\u30c3\u30d7"],["SKIP_TO_LIVE",
|
|
881
|
-
"\u30e9\u30a4\u30d6\u914d\u4fe1\u307e\u3067\u30b9\u30ad\u30c3\u30d7"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u30df\u30e5\u30fc\u30c8\u3092\u89e3\u9664"],["UNRECOGNIZED_LANGUAGE","\u4e0d\u660e"],["VOLUME","\u97f3\u91cf"]]));a.
|
|
883
|
+
"\u30e9\u30a4\u30d6\u914d\u4fe1\u307e\u3067\u30b9\u30ad\u30c3\u30d7"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u30df\u30e5\u30fc\u30c8\u3092\u89e3\u9664"],["UNRECOGNIZED_LANGUAGE","\u4e0d\u660e"],["VOLUME","\u97f3\u91cf"]]));a.ha("ko",new Map([["AD_DURATION","\uad11\uace0 \uae30\uac04"],["AD_PROGRESS","\uad11\uace0 [AD_ON]/[NUM_ADS]"],["AD_TIME","\uad11\uace0: [AD_TIME]"],["AUTO_QUALITY","\uc790\ub3d9"],["BACK","\ub4a4\ub85c"],["CAPTIONS","\uc790\ub9c9"],["CAST","\uc804\uc1a1..."],["ENTER_LOOP_MODE",
|
|
882
884
|
"\ud604\uc7ac \ub3d9\uc601\uc0c1 \ubc18\ubcf5 \uc7ac\uc0dd"],["ENTER_PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc \uc2dc\uc791"],["EXIT_FULL_SCREEN","\uc804\uccb4\ud654\uba74 \ub2eb\uae30"],["EXIT_LOOP_MODE","\ud604\uc7ac \ub3d9\uc601\uc0c1 \ubc18\ubcf5 \uc7ac\uc0dd \uc911\uc9c0"],["EXIT_PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc \uc885\ub8cc"],["FAST_FORWARD","\ube68\ub9ac \uac10\uae30"],["FULL_SCREEN","\uc804\uccb4\ud654\uba74"],["LANGUAGE","\uc5b8\uc5b4"],["LIVE","\uc2e4\uc2dc\uac04"],["LOOP","\ubc18\ubcf5 \uc7ac\uc0dd"],
|
|
883
885
|
["MORE_SETTINGS","\uc124\uc815 \ub354\ubcf4\uae30"],["MULTIPLE_LANGUAGES","\uc5ec\ub7ec \uc5b8\uc5b4"],["MUTE","\uc74c\uc18c\uac70"],["NOT_APPLICABLE","\ud574\ub2f9 \uc0ac\ud56d \uc5c6\uc74c"],["OFF","\uc0ac\uc6a9 \uc548\ud568"],["ON","\uc0ac\uc6a9"],["PAUSE","\uc77c\uc2dc\uc911\uc9c0"],["PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc"],["PLAY","\uc7ac\uc0dd"],["PLAYBACK_RATE","\uc7ac\uc0dd \uc18d\ub3c4"],["RESOLUTION","\ud574\uc0c1\ub3c4"],["REWIND","\ub418\uac10\uae30"],["SEEK","\ucc3e\uae30"],["SKIP_AD",
|
|
884
|
-
"\uad11\uace0 \uac74\ub108\ub6f0\uae30"],["SKIP_TO_LIVE","\ub77c\uc774\ube0c \ub3d9\uc601\uc0c1\uc73c\ub85c \uac74\ub108\ub6f0\uae30"],["UNDETERMINED_LANGUAGE","\ubbf8\uc815"],["UNMUTE","\uc74c\uc18c\uac70 \ud574\uc81c"],["UNRECOGNIZED_LANGUAGE","\uc54c \uc218 \uc5c6\uc74c"],["VOLUME","\ubcfc\ub968"]]));a.
|
|
886
|
+
"\uad11\uace0 \uac74\ub108\ub6f0\uae30"],["SKIP_TO_LIVE","\ub77c\uc774\ube0c \ub3d9\uc601\uc0c1\uc73c\ub85c \uac74\ub108\ub6f0\uae30"],["UNDETERMINED_LANGUAGE","\ubbf8\uc815"],["UNMUTE","\uc74c\uc18c\uac70 \ud574\uc81c"],["UNRECOGNIZED_LANGUAGE","\uc54c \uc218 \uc5c6\uc74c"],["VOLUME","\ubcfc\ub968"]]));a.ha("nl",new Map([["AD_DURATION","Advertentieduur"],["AD_PROGRESS","Advertentie [AD_ON] van [NUM_ADS]"],["AD_TIME","Advertentie: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Terug"],["CAPTIONS",
|
|
885
887
|
"Ondertiteling"],["CAST","Casten..."],["ENTER_LOOP_MODE","De huidige video lussen"],["ENTER_PICTURE_IN_PICTURE","Scherm-in-scherm openen"],["EXIT_FULL_SCREEN","Volledig scherm sluiten"],["EXIT_LOOP_MODE","De huidige video niet meer lussen"],["EXIT_PICTURE_IN_PICTURE","Scherm-in-scherm afsluiten"],["FAST_FORWARD","Vooruitspoelen"],["FULL_SCREEN","Volledig scherm"],["LANGUAGE","Taal"],["LIVE","Live"],["LOOP","Lussen"],["MORE_SETTINGS","Meer instellingen"],["MULTIPLE_LANGUAGES","Meerdere talen"],["MUTE",
|
|
886
|
-
"Dempen"],["NOT_APPLICABLE","Niet van toepassing"],["OFF","Uit"],["ON","Aan"],["PAUSE","Onderbreken"],["PICTURE_IN_PICTURE","Scherm-in-scherm"],["PLAY","Afspelen"],["PLAYBACK_RATE","Afspeelsnelheid"],["RESOLUTION","Resolutie"],["REWIND","Terugspoelen"],["SEEK","Zoeken"],["SKIP_AD","Advertentie overslaan"],["SKIP_TO_LIVE","Doorgaan naar live"],["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.
|
|
888
|
+
"Dempen"],["NOT_APPLICABLE","Niet van toepassing"],["OFF","Uit"],["ON","Aan"],["PAUSE","Onderbreken"],["PICTURE_IN_PICTURE","Scherm-in-scherm"],["PLAY","Afspelen"],["PLAYBACK_RATE","Afspeelsnelheid"],["RESOLUTION","Resolutie"],["REWIND","Terugspoelen"],["SEEK","Zoeken"],["SKIP_AD","Advertentie overslaan"],["SKIP_TO_LIVE","Doorgaan naar live"],["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.ha("pl",new Map([["AD_DURATION",
|
|
887
889
|
"Czas trwania reklamy"],["AD_PROGRESS","Reklama\u00a0[AD_ON] z\u00a0[NUM_ADS]"],["AD_TIME","Reklama: [AD_TIME]"],["AUTO_QUALITY","Automatycznie"],["BACK","Wstecz"],["CAPTIONS","Napisy"],["CAST","Przesy\u0142aj..."],["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"],
|
|
888
890
|
["EXIT_PICTURE_IN_PICTURE","Wy\u0142\u0105cz tryb obrazu w\u00a0obrazie"],["FAST_FORWARD","Przewi\u0144 do przodu"],["FULL_SCREEN","Pe\u0142ny ekran"],["LANGUAGE","J\u0119zyk"],["LIVE","Na \u017cywo"],["LOOP","Odtwarzaj w\u00a0p\u0119tli"],["MORE_SETTINGS","Wi\u0119cej ustawie\u0144"],["MULTIPLE_LANGUAGES","Wiele j\u0119zyk\u00f3w"],["MUTE","Wycisz"],["NOT_APPLICABLE","Nie dotyczy"],["OFF","Wy\u0142\u0105czone"],["ON","W\u0142\u0105czone"],["PAUSE","Wstrzymaj"],["PICTURE_IN_PICTURE","Obraz w\u00a0obrazie"],
|
|
889
|
-
["PLAY","Odtw\u00f3rz"],["PLAYBACK_RATE","Szybko\u015b\u0107 odtwarzania"],["RESOLUTION","Rozdzielczo\u015b\u0107"],["REWIND","Przewi\u0144 do ty\u0142u"],["SEEK","Szukaj"],["SKIP_AD","Pomi\u0144 reklam\u0119"],["SKIP_TO_LIVE","Przejd\u017a do transmisji na \u017cywo"],["UNDETERMINED_LANGUAGE","Nie okre\u015blono"],["UNMUTE","Wy\u0142\u0105cz wyciszenie"],["UNRECOGNIZED_LANGUAGE","Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.
|
|
891
|
+
["PLAY","Odtw\u00f3rz"],["PLAYBACK_RATE","Szybko\u015b\u0107 odtwarzania"],["RESOLUTION","Rozdzielczo\u015b\u0107"],["REWIND","Przewi\u0144 do ty\u0142u"],["SEEK","Szukaj"],["SKIP_AD","Pomi\u0144 reklam\u0119"],["SKIP_TO_LIVE","Przejd\u017a do transmisji na \u017cywo"],["UNDETERMINED_LANGUAGE","Nie okre\u015blono"],["UNMUTE","Wy\u0142\u0105cz wyciszenie"],["UNRECOGNIZED_LANGUAGE","Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.ha("pt-BR",new Map([["AD_DURATION","Dura\u00e7\u00e3o do an\u00fancio"],
|
|
890
892
|
["AD_PROGRESS","An\u00fancio [AD_ON] de [NUM_ADS]"],["AD_TIME","An\u00fancio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tica"],["BACK","Voltar"],["CAPTIONS","Legendas"],["CAST","Transmitir..."],["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"],
|
|
891
893
|
["FULL_SCREEN","Tela cheia"],["LANGUAGE","Idioma"],["LIVE","Ao vivo"],["LOOP","Repetir"],["MORE_SETTINGS","Mais defini\u00e7\u00f5es"],["MULTIPLE_LANGUAGES","V\u00e1rios idiomas"],["MUTE","Desativar som"],["NOT_APPLICABLE","N\u00e3o relevante"],["OFF","Desativado"],["ON","Ativado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Reproduzir"],["PLAYBACK_RATE","Velocidade da reprodu\u00e7\u00e3o"],["RESOLUTION","Resolu\u00e7\u00e3o"],["REWIND","Retroceder"],["SEEK","Procurar"],
|
|
892
|
-
["SKIP_AD","Pular an\u00fancio"],["SKIP_TO_LIVE","Pular para transmiss\u00e3o ao vivo"],["UNDETERMINED_LANGUAGE","Indeterminado"],["UNMUTE","Ativar som"],["UNRECOGNIZED_LANGUAGE","N\u00e3o reconhecido"],["VOLUME","Volume"]]));a.
|
|
893
|
-
["AD_TIME","\
|
|
894
|
+
["SKIP_AD","Pular an\u00fancio"],["SKIP_TO_LIVE","Pular para transmiss\u00e3o ao vivo"],["UNDETERMINED_LANGUAGE","Indeterminado"],["UNMUTE","Ativar som"],["UNRECOGNIZED_LANGUAGE","N\u00e3o reconhecido"],["VOLUME","Volume"]]));a.ha("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]"],
|
|
895
|
+
["AD_TIME","\u0420\u0435\u043a\u043b\u0430\u043c\u0430: [AD_TIME]"],["AUTO_QUALITY","\u0410\u0432\u0442\u043e"],["BACK","\u041d\u0430\u0437\u0430\u0434"],["CAPTIONS","\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b"],["CAST","\u0422\u0440\u0430\u043d\u0441\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c..."],["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"'],
|
|
894
896
|
["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"'],
|
|
895
897
|
["FAST_FORWARD","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0430 \u0432\u043f\u0435\u0440\u0435\u0434"],["FULL_SCREEN","\u041f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c"],["LANGUAGE","\u042f\u0437\u044b\u043a"],["LIVE","\u041f\u0440\u044f\u043c\u043e\u0439 \u044d\u0444\u0438\u0440"],["LOOP","\u0417\u0430\u0446\u0438\u043a\u043b\u0438\u0442\u044c"],["MORE_SETTINGS","\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438"],
|
|
896
|
-
["MULTIPLE_LANGUAGES","\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f\u0437\u044b\u043a\u043e\u0432"],["MUTE","\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["NOT_APPLICABLE","\u041d\u0435\u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e"],["OFF","\u0412\u043a\u043b
|
|
898
|
+
["MULTIPLE_LANGUAGES","\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f\u0437\u044b\u043a\u043e\u0432"],["MUTE","\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["NOT_APPLICABLE","\u041d\u0435\u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e"],["OFF","\u0412\u044b\u043a\u043b."],["ON","\u0412\u043a\u043b."],["PAUSE","\u041f\u0430\u0443\u0437\u0430"],["PICTURE_IN_PICTURE","\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"],
|
|
897
899
|
["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"],["RESOLUTION","\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435"],["REWIND","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u0430\u0442\u044c \u043d\u0430\u0437\u0430\u0434"],["SEEK","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0430"],["SKIP_AD",
|
|
898
900
|
"\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c"],["SKIP_TO_LIVE","\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043f\u0440\u044f\u043c\u043e\u0439 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438"],["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"],
|
|
899
|
-
["VOLUME","\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"]]));a.
|
|
901
|
+
["VOLUME","\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"]]));a.ha("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_TIME","\u0e42\u0e06\u0e29\u0e13\u0e32: [AD_TIME]"],["AUTO_QUALITY","\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34"],["BACK","\u0e01\u0e25\u0e31\u0e1a"],["CAPTIONS","\u0e04\u0e33\u0e1a\u0e23\u0e23\u0e22\u0e32\u0e22"],
|
|
900
902
|
["CAST","\u0e41\u0e04\u0e2a\u0e15\u0e4c..."],["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"],
|
|
901
903
|
["EXIT_LOOP_MODE","\u0e2b\u0e22\u0e38\u0e14\u0e27\u0e19\u0e0b\u0e49\u0e33\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19"],["EXIT_PICTURE_IN_PICTURE","\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],["FAST_FORWARD","\u0e01\u0e23\u0e2d\u0e44\u0e1b\u0e02\u0e49\u0e32\u0e07\u0e2b\u0e19\u0e49\u0e32"],["FULL_SCREEN","\u0e40\u0e15\u0e47\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d"],
|
|
902
904
|
["LANGUAGE","\u0e20\u0e32\u0e29\u0e32"],["LIVE","\u0e2a\u0e14"],["LOOP","\u0e25\u0e39\u0e1b"],["MORE_SETTINGS","\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21"],["MULTIPLE_LANGUAGES","\u0e2b\u0e25\u0e32\u0e22\u0e20\u0e32\u0e29\u0e32"],["MUTE","\u0e1b\u0e34\u0e14\u0e40\u0e2a\u0e35\u0e22\u0e07"],["NOT_APPLICABLE","\u0e44\u0e21\u0e48\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e02\u0e49\u0e2d\u0e07"],["OFF","\u0e1b\u0e34\u0e14"],["ON","\u0e40\u0e1b\u0e34\u0e14"],
|
|
903
905
|
["PAUSE","\u0e2b\u0e22\u0e38\u0e14\u0e0a\u0e31\u0e48\u0e27\u0e04\u0e23\u0e32\u0e27"],["PICTURE_IN_PICTURE","\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],["PLAY","\u0e40\u0e25\u0e48\u0e19"],["PLAYBACK_RATE","\u0e04\u0e27\u0e32\u0e21\u0e40\u0e23\u0e47\u0e27\u0e43\u0e19\u0e01\u0e32\u0e23\u0e40\u0e25\u0e48\u0e19"],["RESOLUTION","\u0e04\u0e27\u0e32\u0e21\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14"],["REWIND","\u0e01\u0e23\u0e2d\u0e01\u0e25\u0e31\u0e1a"],
|
|
904
906
|
["SEEK","\u0e04\u0e49\u0e19\u0e2b\u0e32"],["SKIP_AD","\u0e02\u0e49\u0e32\u0e21\u0e42\u0e06\u0e29\u0e13\u0e32"],["SKIP_TO_LIVE","\u0e02\u0e49\u0e32\u0e21\u0e44\u0e1b\u0e17\u0e35\u0e48\u0e01\u0e32\u0e23\u0e16\u0e48\u0e32\u0e22\u0e17\u0e2d\u0e14\u0e2a\u0e14"],["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"],
|
|
905
|
-
["VOLUME","\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e40\u0e2a\u0e35\u0e22\u0e07"]]));a.
|
|
907
|
+
["VOLUME","\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e40\u0e2a\u0e35\u0e22\u0e07"]]));a.ha("tr",new Map([["AD_DURATION","Reklam s\u00fcresi"],["AD_PROGRESS","[AD_ON]/[NUM_ADS] reklam"],["AD_TIME","Reklam: [AD_TIME]"],["AUTO_QUALITY","Otomatik"],["BACK","Geri"],["CAPTIONS","Altyaz\u0131lar"],["CAST","Yay\u0131nla..."],["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",
|
|
906
908
|
"Mevcut videonun d\u00f6ng\u00fcs\u00fcn\u00fc durdur"],["EXIT_PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencereden \u00c7\u0131k"],["FAST_FORWARD","\u0130leri sar"],["FULL_SCREEN","Tam ekran"],["LANGUAGE","Dil"],["LIVE","Canl\u0131"],["LOOP","D\u00f6ng\u00fc"],["MORE_SETTINGS","Daha fazla ayar"],["MULTIPLE_LANGUAGES","Birden \u00e7ok dil"],["MUTE","Sesi kapat"],["NOT_APPLICABLE","Ge\u00e7erli de\u011fil"],["OFF","Kapal\u0131"],["ON","A\u00e7\u0131k"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE",
|
|
907
|
-
"Pencere \u0130\u00e7inde Pencere"],["PLAY","Oynat"],["PLAYBACK_RATE","\u00c7alma h\u0131z\u0131"],["RESOLUTION","\u00c7\u00f6z\u00fcn\u00fcrl\u00fck"],["REWIND","Geri sar"],["SEEK","Ara"],["SKIP_AD","Reklam\u0131 Atla"],["SKIP_TO_LIVE","Canl\u0131 yay\u0131na atla"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi a\u00e7"],["UNRECOGNIZED_LANGUAGE","Tan\u0131nmayan"],["VOLUME","Ses"]]));a.
|
|
909
|
+
"Pencere \u0130\u00e7inde Pencere"],["PLAY","Oynat"],["PLAYBACK_RATE","\u00c7alma h\u0131z\u0131"],["RESOLUTION","\u00c7\u00f6z\u00fcn\u00fcrl\u00fck"],["REWIND","Geri sar"],["SEEK","Ara"],["SKIP_AD","Reklam\u0131 Atla"],["SKIP_TO_LIVE","Canl\u0131 yay\u0131na atla"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi a\u00e7"],["UNRECOGNIZED_LANGUAGE","Tan\u0131nmayan"],["VOLUME","Ses"]]));a.ha("zh",new Map([["AD_DURATION","\u5e7f\u544a\u6301\u7eed\u65f6\u95f4"],["AD_PROGRESS","\u5e7f\u544a [AD_ON]/[NUM_ADS]"],
|
|
908
910
|
["AD_TIME","\u5e7f\u544a\uff1a[AD_TIME]"],["AUTO_QUALITY","\u81ea\u52a8"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u5c04\u2026"],["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"],
|
|
909
911
|
["FAST_FORWARD","\u5feb\u8fdb"],["FULL_SCREEN","\u5168\u5c4f"],["LANGUAGE","\u8bed\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u73af\u64ad\u653e"],["MORE_SETTINGS","\u66f4\u591a\u8bbe\u7f6e"],["MULTIPLE_LANGUAGES","\u591a\u79cd\u8bed\u8a00"],["MUTE","\u9759\u97f3"],["NOT_APPLICABLE","\u4e0d\u9002\u7528"],["OFF","\u5173\u95ed"],["ON","\u5f00\u542f"],["PAUSE","\u6682\u505c"],["PICTURE_IN_PICTURE","\u753b\u4e2d\u753b"],["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["RESOLUTION",
|
|
910
|
-
"\u5206\u8fa8\u7387"],["REWIND","\u5feb\u9000"],["SEEK","\u8fdb\u5ea6"],["SKIP_AD","\u8df3\u8fc7\u5e7f\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u672a\u786e\u5b9a"],["UNMUTE","\u53d6\u6d88\u9759\u97f3"],["UNRECOGNIZED_LANGUAGE","\u65e0\u6cd5\u8bc6\u522b"],["VOLUME","\u97f3\u91cf"]]));a.
|
|
912
|
+
"\u5206\u8fa8\u7387"],["REWIND","\u5feb\u9000"],["SEEK","\u8fdb\u5ea6"],["SKIP_AD","\u8df3\u8fc7\u5e7f\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u672a\u786e\u5b9a"],["UNMUTE","\u53d6\u6d88\u9759\u97f3"],["UNRECOGNIZED_LANGUAGE","\u65e0\u6cd5\u8bc6\u522b"],["VOLUME","\u97f3\u91cf"]]));a.ha("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],["AD_TIME","\u5ee3\u544a\uff1a[AD_TIME]"],["AUTO_QUALITY",
|
|
911
913
|
"\u81ea\u52d5"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u653e..."],["ENTER_LOOP_MODE","\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["ENTER_PICTURE_IN_PICTURE","\u9032\u5165\u5b50\u6bcd\u756b\u9762"],["EXIT_FULL_SCREEN","\u9000\u51fa\u5168\u87a2\u5e55\u6a21\u5f0f"],["EXIT_LOOP_MODE","\u505c\u6b62\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["EXIT_PICTURE_IN_PICTURE","\u96e2\u958b\u5b50\u6bcd\u756b\u9762"],["FAST_FORWARD","\u5feb\u8f49"],["FULL_SCREEN",
|
|
912
914
|
"\u5168\u87a2\u5e55"],["LANGUAGE","\u8a9e\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u74b0\u64ad\u653e"],["MORE_SETTINGS","\u986f\u793a\u66f4\u591a\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u7a2e\u8a9e\u8a00"],["MUTE","\u975c\u97f3"],["NOT_APPLICABLE","\u4e0d\u9069\u7528"],["OFF","\u95dc\u9589"],["ON","\u958b\u555f"],["PAUSE","\u66ab\u505c"],["PICTURE_IN_PICTURE","\u5b50\u6bcd\u756b\u9762"],["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["RESOLUTION","\u89e3\u6790\u5ea6"],
|
|
913
|
-
["REWIND","\u5012\u8f49"],["SEEK","\u641c\u5c0b"],["SKIP_AD","\u7565\u904e\u5ee3\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],["VOLUME","\u97f3\u91cf"]]));a.
|
|
914
|
-
Z.prototype.toggleFullScreen=Z.prototype.
|
|
915
|
-
Z.prototype.getControlsContainer=Z.prototype.
|
|
916
|
-
Z.prototype.loadComplete=Z.prototype.
|
|
917
|
-
p.getConfiguration=function(){var a=
|
|
918
|
-
function
|
|
919
|
-
level:"rgb(255, 255, 255)"},trackLabelFormat:
|
|
920
|
-
function
|
|
921
|
-
case 4:if(k.done){u.C(2);break}l=k.value;if(l.ui){u.C(5);break}m=null;n=r(b);for(d=n.next();!d.done;d=n.next())if(q=d.value,q.parentElement==l){m=q;break}m||(m=document.createElement("video"),m.setAttribute("playsinline",""),l.appendChild(m));y(u,7);return t(u,
|
|
922
|
-
function
|
|
923
|
-
function
|
|
924
|
-
k=h.next();case 2:if(k.done){m.C(0);break}l=k.value;y(m,5);return t(m,d.g.
|
|
925
|
-
|
|
926
|
-
var u=k(n.
|
|
927
|
-
b.appendChild(A)}}}function
|
|
928
|
-
this.j.appendChild(this.g);
|
|
929
|
-
!1)});this.eventManager.m(this.adManager,"ad-stopped",function(){Y(c.h,!0)});this.eventManager.m(this.controls,"submenuopen",function(){Y(c.g,!1)});this.eventManager.m(this.g,"touchstart",function(f){c.controls.
|
|
930
|
-
function
|
|
931
|
-
function
|
|
932
|
-
function
|
|
933
|
-
function
|
|
934
|
-
|
|
935
|
-
pa(
|
|
936
|
-
function
|
|
937
|
-
|
|
938
|
-
function
|
|
939
|
-
function
|
|
940
|
-
function
|
|
941
|
-
c.controls.
|
|
942
|
-
this.eventManager.m(this.localization,"locale-updated",function(){
|
|
943
|
-
function
|
|
944
|
-
function(){
|
|
945
|
-
function
|
|
946
|
-
this.g.appendChild(d);
|
|
915
|
+
["REWIND","\u5012\u8f49"],["SEEK","\u641c\u5c0b"],["SKIP_AD","\u7565\u904e\u5ee3\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],["VOLUME","\u97f3\u91cf"]]));a.se(navigator.languages||[]);return a}L("shaka.ui.Controls",Z);Z.prototype.isOpaque=Z.prototype.Eb;Z.prototype.hideAdUI=Z.prototype.Ce;Z.prototype.showAdUI=Z.prototype.Xe;
|
|
916
|
+
Z.prototype.toggleFullScreen=Z.prototype.je;Z.prototype.hideSettingsMenus=Z.prototype.Bc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.Tc;Z.prototype.setLastTouchEventTime=Z.prototype.Ve;Z.prototype.getDisplayTime=Z.prototype.Ae;Z.prototype.isCastAllowed=Z.prototype.Rf;Z.prototype.setSeeking=Z.prototype.be;Z.prototype.isSeeking=Z.prototype.Tf;Z.prototype.getConfig=Z.prototype.sf;Z.prototype.getClientSideAdContainer=Z.prototype.rf;Z.prototype.getServerSideAdContainer=Z.prototype.Kf;
|
|
917
|
+
Z.prototype.getControlsContainer=Z.prototype.uf;Z.prototype.getLocalPlayer=Z.prototype.zf;Z.prototype.getPlayer=Z.prototype.Yb;Z.prototype.getLocalVideo=Z.prototype.Af;Z.prototype.getVideo=Z.prototype.zc;Z.prototype.getVideoContainer=Z.prototype.Pf;Z.prototype.getLocalization=Z.prototype.Bf;Z.prototype.getCastProxy=Z.prototype.qf;Z.prototype.getAd=Z.prototype.getAd;Z.prototype.setEnabledNativeControls=Z.prototype.Ue;Z.prototype.setEnabledShakaControls=Z.prototype.Zd;Z.prototype.configure=Z.prototype.configure;
|
|
918
|
+
Z.prototype.loadComplete=Z.prototype.Uf;Z.prototype.allowCast=Z.prototype.gf;Z.registerElement=Nt;Z.prototype.destroy=Z.prototype.destroy;var Ot=new Map;function $t(a,b,c){this.h=a;this.v=au(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.Id()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,this.v);this.configure({});c.controls||a.fe(b);b.ui=this;c.ui=this}p=$t.prototype;p.destroy=function(){var a=this;return H(function(b){if(1==b.g)return a.g?t(b,a.g.destroy(),2):b.C(2);if(4!=b.g)return a.g=null,a.h?t(b,a.h.destroy(),4):b.C(4);a.h=null;x(b)})};p.Id=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Ed()&&1<navigator.maxTouchPoints};
|
|
919
|
+
p.getConfiguration=function(){var a=au(this);mi(a,this.v,au(this),{},"");return a};p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=ni(a,b));mi(this.v,a,au(this),{},"");this.v.castReceiverAppId&&!this.v.overflowMenuButtons.includes("cast")&&this.v.overflowMenuButtons.push("cast");this.g.configure(this.v);this.g.dispatchEvent(new M("uiupdated"))};p.tf=function(){return this.g};p.qg=function(a){this.g.Zd(a)};
|
|
920
|
+
function au(a){var b={controlPanelElements:"play_pause time_and_duration spacer mute volume fullscreen overflow_menu".split(" "),overflowMenuButtons:"captions quality language picture_in_picture cast playback_rate".split(" "),addSeekBar:!0,addBigPlayButton:!1,castReceiverAppId:"",clearBufferOnQualityChange:!0,showUnbufferedStart:!1,seekBarColors:{base:"rgba(255, 255, 255, 0.3)",buffered:"rgba(255, 255, 255, 0.54)",played:"rgb(255, 255, 255)",adBreaks:"rgb(255, 204, 0)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",
|
|
921
|
+
level:"rgb(255, 255, 255)"},trackLabelFormat:bu,fadeDelay:0,doubleClickForFullscreen:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0};a.Id()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
|
|
922
|
+
function cu(){var a,b,c,d,e,f,g,h,k,l,m,n,q;return H(function(u){switch(u.g){case 1:Oq();if(!Si())return du("shaka-ui-load-failed",eu),u["return"]();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");if(!b.length&&!a.length){u.C(2);break}if(b.length&&!a.length){c=r(b);for(d=c.next();!d.done;d=c.next())e=d.value,e.ui||(f=document.createElement("div"),g=e.parentElement,g.replaceChild(f,e),f.appendChild(e),fu(f,e));u.C(2);break}h=r(a);k=h.next();
|
|
923
|
+
case 4:if(k.done){u.C(2);break}l=k.value;if(l.ui){u.C(5);break}m=null;n=r(b);for(d=n.next();!d.done;d=n.next())if(q=d.value,q.parentElement==l){m=q;break}m||(m=document.createElement("video"),m.setAttribute("playsinline",""),l.appendChild(m));y(u,7);return t(u,fu(l,m),9);case 9:ua(u,5);break;case 7:return C(u),du("shaka-ui-load-failed",gu),u["return"]();case 5:k=h.next();u.C(4);break;case 2:du("shaka-ui-loaded"),x(u)}})}
|
|
924
|
+
function du(a,b){var c=document.createEvent("CustomEvent"),d=null;void 0!=b&&(d={reasonCode:b});c.initCustomEvent(a,!1,!1,d);document.dispatchEvent(c)}
|
|
925
|
+
function fu(a,b){var c,d,e,f,g,h,k,l;return H(function(m){switch(m.g){case 1:c=new U(b);d=new $t(c,a,b);e="";a.dataset&&a.dataset.shakaPlayerCastReceiverId?e=a.dataset.shakaPlayerCastReceiverId:b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(e=b.dataset.shakaPlayerCastReceiverId);e.length&&d.configure({castReceiverAppId:e});b.controls&&d.g.Ue(!0);if(f=b.getAttribute("src"))g=document.createElement("source"),g.setAttribute("src",f),b.appendChild(g),b.removeAttribute("src");h=r(b.querySelectorAll("source"));
|
|
926
|
+
k=h.next();case 2:if(k.done){m.C(0);break}l=k.value;y(m,5);return t(m,d.g.Yb().load(l.getAttribute("src")),7);case 7:m.C(0);break;case 5:C(m);case 3:k=h.next(),m.C(2)}})}L("shaka.ui.Overlay",$t);$t.prototype.setEnabled=$t.prototype.qg;$t.prototype.getControls=$t.prototype.tf;$t.prototype.configure=$t.prototype.configure;$t.prototype.getConfiguration=$t.prototype.getConfiguration;$t.prototype.isMobile=$t.prototype.Id;$t.prototype.destroy=$t.prototype.destroy;var bu=0;
|
|
927
|
+
$t.TrackLabelFormat={LANGUAGE:bu,ROLE:1,LANGUAGE_ROLE:2};var eu=0,gu=1;$t.FailReasonCode={NO_BROWSER_SUPPORT:eu,PLAYER_FAILED_TO_LOAD:gu};"complete"==document.readyState?H(function(a){if(1==a.g)return t(a,Promise.resolve(),2);cu();x(a)}):window.addEventListener("load",cu);function hu(a,b,c,d,e,f,g){function h(z,D){return z+": "+D}function k(z){return"variant"==z.type?z.audioRoles?z.audioRoles.join(", "):void 0:z.roles.join(", ")}var l=a.filter(function(z){return 1==z.active})[0],m=nt(b);ei(b);b.appendChild(m);m=new Map;for(var n=r(a),q=n.next();!q.done;q=n.next())q=q.value,m.has(q.language)||m.set(q.language,new Set),m.get(q.language).add(k(q));m=new Set;l=l?h(l.language,k(l)):"";n={};a=r(a);for(q=a.next();!q.done;n={Sb:n.Sb},q=a.next()){n.Sb=q.value;q=n.Sb.language;
|
|
928
|
+
var u=k(n.Sb),v=h(q,u);if(!m.has(v)){m.add(v);var A=di();A.addEventListener("click",function(z){return function(){c(z.Sb)}}(n));var w=S("span");A.appendChild(w);w.textContent=iu(q,f);switch(g){case 1:u?w.textContent=u:(Oa("Track #"+n.Sb.id+" does not have a role, but the UI is configured to only show role."),w.textContent="?");break;case 2:u&&(w.textContent+=": "+u)}d&&v==l&&(A.appendChild(qt()),w.classList.add("shaka-chosen-item"),A.setAttribute("aria-selected","true"),e.textContent=w.textContent);
|
|
929
|
+
b.appendChild(A)}}}function iu(a,b){if(!a&&!b)return"";switch(a){case "mul":return b.resolve("MULTIPLE_LANGUAGES");case "und":return b.resolve("UNDETERMINED_LANGUAGE");case "zxx":return b.resolve("NOT_APPLICABLE")}var c=Rb(a);return a in jt?jt[a].o:c in jt?jt[c].o+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function ju(a,b){X.call(this,a,b);var c=this;this.v=this.controls.v;this.j=this.controls.i;this.i=[];this.h=di();this.h.classList.add("shaka-overflow-menu-button");this.h.classList.add("shaka-no-propagation");this.h.classList.add("material-icons-round");this.h.textContent="more_vert";this.parent.appendChild(this.h);this.g=S("div");this.g.classList.add("shaka-overflow-menu");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-show-controls-on-mouse-over");this.g.classList.add("shaka-hidden");
|
|
930
|
+
this.j.appendChild(this.g);ku(this);for(var d=r(this.controls.j.getElementsByClassName("shaka-back-to-overflow-button")),e=d.next();!e.done;e=d.next())this.eventManager.m(e.value,"click",function(){c.controls.Bc();Y(c.g,!0);c.g.childNodes.length&&c.g.childNodes[0].focus();Ht(c.controls)});this.eventManager.m(this.localization,"locale-updated",function(){lu(c)});this.eventManager.m(this.localization,"locale-changed",function(){lu(c)});this.eventManager.m(this.adManager,"ad-started",function(){Y(c.h,
|
|
931
|
+
!1)});this.eventManager.m(this.adManager,"ad-stopped",function(){Y(c.h,!0)});this.eventManager.m(this.controls,"submenuopen",function(){Y(c.g,!1)});this.eventManager.m(this.g,"touchstart",function(f){c.controls.Ve(Date.now());f.stopPropagation()});this.eventManager.m(this.h,"click",function(){mu(c)});lu(this);this.ad&&Y(this.h,!1)}pa(ju,X);ju.prototype.release=function(){this.j=null;for(var a=r(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];X.prototype.release.call(this)};
|
|
932
|
+
function nu(a,b){ou.set(a,b)}function ku(a){for(var b=r(a.v.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,ou.get(c)?(c=ou.get(c),a.i.push(c.create(a.g,a.controls))):Oa("Unrecognized overflow menu element requested:",c)}function mu(a){if(a.controls.Tc())a.controls.Bc();else{Y(a.g,!0);Ht(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};cb(a.g.childNodes,b)&&db(a.g.childNodes,b)[0].focus()}}
|
|
933
|
+
function lu(a){a.h.setAttribute("aria-label",a.localization.resolve("MORE_SETTINGS"))}L("shaka.ui.OverflowMenu",ju);ju.registerElement=nu;function pu(){}pu.prototype.create=function(a,b){return new ju(a,b)};Nt("overflow_menu",new pu);var ou=new Map;function qu(a,b,c){X.call(this,a,b);var d=this;ru(this,c);su(this);this.eventManager.m(this.button,"click",function(){d.controls.dispatchEvent(new M("submenuopen"));Y(d.menu,!0);pt(d.menu)})}pa(qu,X);
|
|
934
|
+
function ru(a,b){a.button=di();a.icon=S("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);var c=S("label");c.classList.add("shaka-overflow-button-label");a.nameSpan=S("span");c.appendChild(a.nameSpan);a.currentSelection=S("span");a.currentSelection.classList.add("shaka-current-selection-span");c.appendChild(a.currentSelection);a.button.appendChild(c);a.parent.appendChild(a.button)}
|
|
935
|
+
function su(a){a.menu=S("div");a.menu.classList.add("shaka-no-propagation");a.menu.classList.add("shaka-show-controls-on-mouse-over");a.menu.classList.add("shaka-settings-menu");a.menu.classList.add("shaka-hidden");a.backButton=di();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);var b=S("i");b.classList.add("material-icons-round");b.textContent="arrow_back";a.backButton.appendChild(b);a.backSpan=S("span");a.backButton.appendChild(a.backSpan);a.controls.i.appendChild(a.menu)}
|
|
936
|
+
L("shaka.ui.SettingsMenu",qu);function tu(a,b){qu.call(this,a,b,"language");var c=this;this.button.classList.add("shaka-language-button");this.menu.classList.add("shaka-audio-languages");this.eventManager.m(this.localization,"locale-updated",function(){uu(c)});this.eventManager.m(this.localization,"locale-changed",function(){uu(c)});this.eventManager.m(this.player,"trackschanged",function(){var d=0<c.player.Ab().length;Y(c.button,d);vu(c)});this.eventManager.m(this.player,"variantchanged",function(){vu(c)});uu(this);vu(this)}
|
|
937
|
+
pa(tu,qu);function vu(a){var b=a.player.Ab();hu(b,a.menu,function(c){a.player.nd(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.v.trackLabelFormat);pt(a.menu);a.controls.dispatchEvent(new M("languageselectionupdated"))}
|
|
938
|
+
function uu(a){a.backButton.setAttribute("aria-label",a.localization.resolve("BACK"));a.button.setAttribute("aria-label",a.localization.resolve("LANGUAGE"));a.nameSpan.textContent=a.localization.resolve("LANGUAGE");a.backSpan.textContent=a.localization.resolve("LANGUAGE")}L("shaka.ui.AudioLanguageSelection",tu);function wu(){}wu.prototype.create=function(a,b){return new tu(a,b)};nu("language",new wu);function xu(a,b){X.call(this,a,b);var c=this;this.h=this.controls.A;this.g=di();this.g.classList.add("shaka-cast-button");this.g.setAttribute("aria-pressed","false");this.i=S("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);var d=S("label");d.classList.add("shaka-overflow-button-label");this.l=S("span");d.appendChild(this.l);this.j=S("span");this.j.classList.add("shaka-current-selection-span");d.appendChild(this.j);this.g.appendChild(d);this.parent.appendChild(this.g);
|
|
939
|
+
yu(this);zu(this);this.eventManager.m(this.localization,"locale-updated",function(){yu(c)});this.eventManager.m(this.localization,"locale-changed",function(){yu(c)});this.eventManager.m(this.g,"click",function(){Au(c)});this.eventManager.m(this.controls,"caststatuschanged",function(){zu(c)})}pa(xu,X);
|
|
940
|
+
function Au(a){var b;H(function(c){if(1==c.g){if(a.h.na())return a.h.Ye(),c.C(0);y(c,3);a.g.disabled=!0;return t(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,ua(c,0);b=C(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new M("error",(new Map).set("detail",b)));x(c)})}function zu(a){var b=a.h.pe()&&a.controls.mb,c=a.h.na();Y(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(c?a.g.setAttribute("aria-pressed","true"):a.g.setAttribute("aria-pressed","false"));Bu(a)}
|
|
941
|
+
function Bu(a){a.j.textContent=a.h.na()?a.h.ld():a.localization.resolve("OFF")}function yu(a){a.g.setAttribute("aria-label",a.localization.resolve("CAST"));a.l.textContent=a.localization.resolve("CAST");Bu(a)}L("shaka.ui.CastButton",xu);function Cu(){}Cu.prototype.create=function(a,b){return new xu(a,b)};nu("cast",new Cu);function Du(a,b){X.call(this,a,b);var c=this;this.g=di();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-fast-forward-button");this.g.textContent="fast_forward";this.parent.appendChild(this.g);Eu(this);this.eventManager.m(this.localization,"locale-updated",function(){Eu(c)});this.eventManager.m(this.localization,"locale-changed",function(){Eu(c)});this.eventManager.m(this.g,"click",function(){if(c.video.duration){var d=c.player.wc();c.player.le(0>d||4<d?1:2*d)}})}pa(Du,X);
|
|
942
|
+
function Eu(a){a.g.setAttribute("aria-label",a.localization.resolve("FAST_FORWARD"))}L("shaka.ui.FastForwardButton",Du);function Fu(){}Fu.prototype.create=function(a,b){return new Du(a,b)};Nt("fast_forward",new Fu);function Gu(a,b){X.call(this,a,b);var c=this;this.g=di();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");document.fullscreenEnabled||this.g.classList.add("shaka-hidden");this.g.textContent="fullscreen";this.parent.appendChild(this.g);Hu(this);this.eventManager.m(this.localization,"locale-updated",function(){Hu(c)});this.eventManager.m(this.localization,"locale-changed",function(){Hu(c)});this.eventManager.m(this.g,"click",function(){return H(function(d){return t(d,
|
|
943
|
+
c.controls.je(),0)})});this.eventManager.m(document,"fullscreenchange",function(){c.g.textContent=document.fullscreenElement?"fullscreen_exit":"fullscreen";Hu(c)})}pa(Gu,X);function Hu(a){a.g.setAttribute("aria-label",a.localization.resolve(document.fullscreenElement?"EXIT_FULL_SCREEN":"FULL_SCREEN"))}L("shaka.ui.FullscreenButton",Gu);function Iu(){}Iu.prototype.create=function(a,b){return new Gu(a,b)};Nt("fullscreen",new Iu);function Ju(a,b){X.call(this,a,b);var c=this;this.g=di();this.g.classList.add("shaka-loop-button");this.j=S("i");this.j.classList.add("material-icons-round");this.j.textContent="loop";this.g.appendChild(this.j);var d=S("label");d.classList.add("shaka-overflow-button-label");this.l=S("span");this.l.textContent=this.localization.resolve("LOOP");d.appendChild(this.l);this.i=S("span");this.i.classList.add("shaka-current-selection-span");d.appendChild(this.i);this.g.appendChild(d);Ku(this);this.parent.appendChild(this.g);
|
|
944
|
+
this.eventManager.m(this.localization,"locale-updated",function(){Ku(c)});this.eventManager.m(this.localization,"locale-changed",function(){Ku(c)});this.eventManager.m(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.Ba();c.h.ia(1)});this.u=this.video.loop;this.h=new O(function(){c.u!=c.video.loop&&(Ku(c),c.u=c.video.loop)});this.h.ia(1)}pa(Ju,X);Ju.prototype.release=function(){this.h.stop();this.h=null;X.prototype.release.call(this)};
|
|
945
|
+
function Ku(a){a.l.textContent=a.localization.resolve("LOOP");a.i.textContent=a.localization.resolve(a.video.loop?"ON":"OFF");a.g.setAttribute("aria-label",a.localization.resolve(a.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE"))}L("shaka.ui.LoopButton",Ju);function Lu(){}Lu.prototype.create=function(a,b){return new Ju(a,b)};nu("loop",new Lu);function Mu(a,b){X.call(this,a,b);var c=this;this.g=di();this.g.classList.add("shaka-mute-button");this.g.classList.add("material-icons-round");this.parent.appendChild(this.g);Nu(this);Ou(this);this.eventManager.m(this.localization,"locale-updated",function(){Nu(c)});this.eventManager.m(this.localization,"locale-changed",function(){Nu(c)});this.eventManager.m(this.g,"click",function(){c.ad?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});this.eventManager.m(this.video,"volumechange",
|
|
946
|
+
function(){Nu(c);Ou(c)});this.eventManager.m(this.adManager,"ad-volume-changed",function(){Nu(c);Ou(c)});this.eventManager.m(this.adManager,"ad-muted",function(){Nu(c);Ou(c)});this.eventManager.m(this.adManager,"ad-stopped",function(){c.ad=null;Nu(c);Ou(c)})}pa(Mu,X);function Nu(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.setAttribute("aria-label",a.localization.resolve(b))}
|
|
947
|
+
function Ou(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}L("shaka.ui.MuteButton",Mu);function Pu(){}Pu.prototype.create=function(a,b){return new Mu(a,b)};Nt("mute",new Pu);function Qu(a,b){X.call(this,a,b);var c=this;this.l=this.controls.B;this.g=di();this.g.classList.add("shaka-pip-button");this.i=S("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);var d=S("label");d.classList.add("shaka-overflow-button-label");this.j=S("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");d.appendChild(this.j);this.h=S("span");this.h.classList.add("shaka-current-selection-span");d.appendChild(this.h);
|
|
948
|
+
this.g.appendChild(d);Ru(this);this.parent.appendChild(this.g);document.pictureInPictureEnabled&&!this.video.disablePictureInPicture||Y(this.g,!1);this.eventManager.m(this.localization,"locale-updated",function(){Ru(c)});this.eventManager.m(this.localization,"locale-changed",function(){Ru(c)});this.eventManager.m(this.g,"click",function(){Su(c)});this.eventManager.m(this.l,"enterpictureinpicture",function(){c.i.textContent="branding_watermark";c.g.setAttribute("aria-label",c.localization.resolve("EXIT_PICTURE_IN_PICTURE"));
|
|
947
949
|
c.h.textContent=c.localization.resolve("ON")});this.eventManager.m(this.l,"leavepictureinpicture",function(){c.i.textContent="picture_in_picture_alt";c.g.setAttribute("aria-label",c.localization.resolve("ENTER_PICTURE_IN_PICTURE"));c.h.textContent=c.localization.resolve("OFF")});this.eventManager.m(this.controls,"caststatuschanged",function(e){e.newStatus?document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&Y(c.g,!1):document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&
|
|
948
|
-
Y(c.g,!0)});this.eventManager.m(this.player,"trackschanged",function(){
|
|
949
|
-
function
|
|
950
|
-
function
|
|
951
|
-
|
|
952
|
-
function
|
|
953
|
-
function
|
|
954
|
-
!1):(
|
|
955
|
-
|
|
956
|
-
function
|
|
957
|
-
{
|
|
958
|
-
a.eventManager.m(e,"click",function(){a.player.configure({abr:{enabled:!0}})
|
|
959
|
-
function
|
|
960
|
-
function
|
|
961
|
-
function
|
|
962
|
-
d:(c.i.stop(),Y(c.h,!1))});this.eventManager.m(this.localization,"locale-updated",function(){
|
|
963
|
-
"click",function(){c.ad.skip()});this.ad&&
|
|
964
|
-
|
|
965
|
-
function(){
|
|
966
|
-
function
|
|
967
|
-
function
|
|
968
|
-
a.controls.dispatchEvent(new
|
|
969
|
-
function
|
|
970
|
-
this.eventManager.m(this.localization,"locale-changed",function(){return
|
|
971
|
-
function
|
|
950
|
+
Y(c.g,!0)});this.eventManager.m(this.player,"trackschanged",function(){Tu(c)})}pa(Qu,X);function Su(a){var b;H(function(c){if(1==c.g)return y(c,2),document.pictureInPictureElement?t(c,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),t(c,a.video.requestPictureInPicture(),5));if(2!=c.g)return ua(c,0);b=C(c);a.controls.dispatchEvent(new M("error",(new Map).set("detail",b)));x(c)})}
|
|
951
|
+
function Ru(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");a.g.setAttribute("aria-label",a.localization.resolve(document.pictureInPictureElement?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE"));a.h.textContent=a.localization.resolve(document.pictureInPictureElement?"ON":"OFF")}
|
|
952
|
+
function Tu(a){H(function(b){if(!document.pictureInPictureEnabled||a.video.disablePictureInPicture)return Y(a.g,!1),b.C(0);if(!a.player||!a.player.Ee())return Y(a.g,!0),b.C(0);Y(a.g,!1);return document.pictureInPictureElement?t(b,document.exitPictureInPicture(),0):b.C(0)})}L("shaka.ui.PipButton",Qu);function Uu(){}Uu.prototype.create=function(a,b){return new Qu(a,b)};nu("picture_in_picture",new Uu);function Vu(a,b){qu.call(this,a,b,"slow_motion_video");var c=this;this.button.classList.add("shaka-playbackrate-button");this.menu.classList.add("shaka-playback-rates");this.eventManager.m(this.localization,"locale-updated",function(){Wu(c)});this.eventManager.m(this.localization,"locale-changed",function(){Wu(c)});this.eventManager.m(this.player,"ratechange",function(){Xu(c,c.player.wc())});this.g=new Map([["0.5x",.5],["0.75x",.75],["1x",1],["1.25x",1.25],["1.5x",1.5],["1.75x",1.75],["2x",2]]);Wu(this);
|
|
953
|
+
Yu(this);Xu(this,this.player.wc())}pa(Vu,qu);function Wu(a){a.backButton.setAttribute("aria-label",a.localization.resolve("BACK"));a.button.setAttribute("aria-label",a.localization.resolve("PLAYBACK_RATE"));a.nameSpan.textContent=a.localization.resolve("PLAYBACK_RATE");a.backSpan.textContent=a.localization.resolve("PLAYBACK_RATE")}
|
|
954
|
+
function Xu(a,b){var c=ot(a.menu,"material-icons-round shaka-chosen-item");if(c){var d=c.parentElement;d.removeAttribute("aria-selected");d.getElementsByTagName("span")[0].classList.remove("shaka-chosen-item");d.removeChild(c)}if(c=Array.from(a.menu.querySelectorAll("span")).find(function(e){return a.g.get(e.textContent)==b}))d=c.parentElement,d.appendChild(qt()),d.setAttribute("aria-selected","true"),c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x"}
|
|
955
|
+
function Yu(a){for(var b={},c=r(a.g.keys()),d=c.next();!d.done;b={kc:b.kc},d=c.next()){b.kc=d.value;d=di();var e=S("span");e.textContent=b.kc;d.appendChild(e);a.eventManager.m(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.kc);a.video.defaultPlaybackRate=a.g.get(f.kc)}}(b));a.menu.appendChild(d)}pt(a.menu)}L("shaka.ui.PlaybackRateSelection",Vu);function Zu(){}Zu.prototype.create=function(a,b){return new Vu(a,b)};nu("playback_rate",new Zu);function $u(a,b){X.call(this,a,b);var c=this;this.g=di();this.g.classList.add("shaka-current-time");av(this,"0:00");this.parent.appendChild(this.g);this.eventManager.m(this.g,"click",function(){c.player.W()&&(c.video.currentTime=c.player.Pa().end)});this.eventManager.m(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.ba,e=c.controls.Ae(),f=c.video.duration,g=c.player.Pa(),h=g.end-g.start;c.player.W()?(e=Math.max(0,Math.floor(g.end-e)),f=3600<=h,1<=e||d?(av(c,"- "+rt(e,f)),c.g.disabled=
|
|
956
|
+
!1):(av(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=f,e=rt(e,d),f&&(e+=" / "+rt(f,d)),av(c,e),c.g.disabled=!0)});this.eventManager.m(this.player,"trackschanged",function(){c.player.W()&&c.g.setAttribute("aria-label",c.localization.resolve("SKIP_TO_LIVE"))})}pa($u,X);function av(a,b){b!=a.g.textContent&&(a.g.textContent=b)}L("shaka.ui.PresentationTimeTracker",$u);function bv(){}bv.prototype.create=function(a,b){return new $u(a,b)};Nt("time_and_duration",new bv);function cv(a,b){qu.call(this,a,b,"settings");var c=this;this.button.classList.add("shaka-resolution-button");this.menu.classList.add("shaka-resolutions");this.eventManager.m(this.localization,"locale-updated",function(){dv(c)});this.eventManager.m(this.localization,"locale-changed",function(){dv(c)});this.eventManager.m(this.player,"variantchanged",function(){ev(c)});this.eventManager.m(this.player,"trackschanged",function(){ev(c)});this.eventManager.m(this.player,"abrstatuschanged",function(){ev(c)});
|
|
957
|
+
ev(this);dv(this)}pa(cv,qu);
|
|
958
|
+
function ev(a){var b=a.player.Ab();if(b.length&&!b[0].height)Y(a.menu,!1),Y(a.button,!1);else{Y(a.button,!0);b.sort(function(k,l){return l.height-k.height});var c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){return k.language==c.language&&k.channelsCount==c.channelsCount}));b=b.filter(function(k,l){return b.findIndex(function(m){return m.height==k.height})==l});var d=nt(a.menu);ei(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;for(var e={},f=r(b),g=f.next();!g.done;e=
|
|
959
|
+
{nc:e.nc},g=f.next()){e.nc=g.value;g=di();g.classList.add("explicit-resolution");a.eventManager.m(g,"click",function(k){return function(){var l=k.nc;a.player.configure({abr:{enabled:!1}});a.player.Xd(l,a.controls.v.clearBufferOnQualityChange)}}(e));var h=S("span");h.textContent=e.nc.height+"p";g.appendChild(h);d||e.nc!=c||(g.setAttribute("aria-selected","true"),g.appendChild(qt()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=di();e.classList.add("shaka-enable-abr-button");
|
|
960
|
+
a.eventManager.m(e,"click",function(){a.player.configure({abr:{enabled:!0}});ev(a)});a.g=S("span");a.g.classList.add("shaka-auto-span");a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.setAttribute("aria-selected","true"),e.appendChild(qt()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.menu.appendChild(e);pt(a.menu);a.controls.dispatchEvent(new M("resolutionselectionupdated"))}}
|
|
961
|
+
function dv(a){a.button.setAttribute("aria-label",a.localization.resolve("RESOLUTION"));a.backButton.setAttribute("aria-label",a.localization.resolve("RESOLUTION"));a.backSpan.textContent=a.localization.resolve("RESOLUTION");a.nameSpan.textContent=a.localization.resolve("RESOLUTION");a.g.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}L("shaka.ui.ResolutionSelection",cv);
|
|
962
|
+
function fv(){}fv.prototype.create=function(a,b){return new cv(a,b)};nu("quality",new fv);function gv(a,b){X.call(this,a,b);var c=this;this.g=di();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-rewind-button");this.g.textContent="fast_rewind";this.parent.appendChild(this.g);hv(this);this.eventManager.m(this.localization,"locale-updated",function(){hv(c)});this.eventManager.m(this.localization,"locale-changed",function(){hv(c)});this.eventManager.m(this.g,"click",function(){if(c.video.duration){var d=c.player.wc();c.player.le(0<d||-4>d?-1:2*d)}})}pa(gv,X);
|
|
963
|
+
function hv(a){a.g.setAttribute("aria-label",a.localization.resolve("REWIND"))}L("shaka.ui.RewindButton",gv);function iv(){}iv.prototype.create=function(a,b){return new gv(a,b)};Nt("rewind",new iv);function jv(a,b){X.call(this,a,b);var c=this;this.j=S("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=S("div");this.h.classList.add("shaka-skip-ad-counter");Y(this.h,!1);this.j.appendChild(this.h);this.g=di();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;Y(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);kv(this);this.i=new O(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
|
|
964
|
+
d:(c.i.stop(),Y(c.h,!1))});this.eventManager.m(this.localization,"locale-updated",function(){kv(c)});this.eventManager.m(this.localization,"locale-changed",function(){kv(c)});this.eventManager.m(this.adManager,"ad-started",function(){lv(c)});this.eventManager.m(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),Y(c.h,!1))});this.eventManager.m(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;Y(c.g,!1);Y(c.h,!1)});this.eventManager.m(this.g,
|
|
965
|
+
"click",function(){c.ad.skip()});this.ad&&lv(this)}pa(jv,X);jv.prototype.release=function(){this.i.stop();this.i=null;X.prototype.release.call(this)};function kv(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function lv(a){a.ad.isSkippable()&&(Y(a.g,!0),Y(a.h,!0),a.h.textContent="",a.i.Ba(),a.i.ia(.5))}L("shaka.ui.SkipAdButton",jv);function mv(a,b){vt.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.h();this.g()}pa(mv,vt);mv.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"};mv.prototype.g=function(){if(this.video.ended)this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)}};
|
|
966
|
+
L("shaka.ui.SmallPlayButton",mv);function nv(){}nv.prototype.create=function(a,b){return new mv(a,b)};Nt("play_pause",new nv);function ov(a,b){X.call(this,a,b);var c=S("div");c.classList.add("shaka-spacer");c.setAttribute("aria-hidden",!0);this.parent.appendChild(c)}pa(ov,X);L("shaka.ui.Spacer",ov);function pv(){}pv.prototype.create=function(a,b){return new ov(a,b)};Nt("spacer",new pv);function qv(a,b){qu.call(this,a,b,"closed_caption");var c=this;this.button.classList.add("shaka-caption-button");this.menu.classList.add("shaka-text-languages");this.player&&this.player.Fb()?this.button.setAttribute("aria-pressed","true"):this.button.setAttribute("aria-pressed","false");rv(this);this.eventManager.m(this.localization,"locale-updated",function(){sv(c);tv(c)});this.eventManager.m(this.localization,"locale-changed",function(){sv(c);tv(c)});this.eventManager.m(this.player,"texttrackvisibility",
|
|
967
|
+
function(){uv(c)});this.eventManager.m(this.player,"textchanged",function(){tv(c)});this.eventManager.m(this.player,"trackschanged",function(){vv(c)});uv(this);sv(this);tv(this);vv(this)}pa(qv,qu);function rv(a){var b=di();b.setAttribute("aria-selected","true");a.menu.appendChild(b);b.appendChild(qt());a.g=S("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
|
|
968
|
+
function uv(a){a.player.Fb()?(a.icon.classList.add("shaka-captions-on"),a.icon.classList.remove("shaka-captions-off"),a.button.setAttribute("aria-pressed","true")):(a.icon.classList.add("shaka-captions-off"),a.icon.classList.remove("shaka-captions-on"),a.button.setAttribute("aria-pressed","false"));a.controls.dispatchEvent(new M("captionselectionupdated"))}
|
|
969
|
+
function tv(a){var b=a.player.zb();hu(b,a.menu,function(c){return wv(a,c)},a.player.Fb(),a.currentSelection,a.localization,a.controls.v.trackLabelFormat);b=di();b.classList.add("shaka-turn-captions-off-button");a.eventManager.m(b,"click",function(){a.player.ee(!1);tv(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Fb()||(b.setAttribute("aria-selected","true"),b.appendChild(qt()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));pt(a.menu);
|
|
970
|
+
a.controls.dispatchEvent(new M("captionselectionupdated"))}function wv(a,b){return H(function(c){a.player.od(b.language,b.roles[0]);return t(c,a.player.ee(!0),0)})}function sv(a){a.button.setAttribute("aria-label",a.localization.resolve("CAPTIONS"));a.backButton.setAttribute("aria-label",a.localization.resolve("BACK"));a.nameSpan.textContent=a.localization.resolve("CAPTIONS");a.backSpan.textContent=a.localization.resolve("CAPTIONS");a.g.textContent=a.localization.resolve("OFF")}
|
|
971
|
+
function vv(a){var b=0<a.player.zb().length;Y(a.button,b);tv(a)}L("shaka.ui.TextSelection",qv);function xv(){}xv.prototype.create=function(a,b){return new qv(a,b)};nu("captions",new xv);function yv(a,b){zt.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.v=this.controls.v;this.eventManager.m(this.video,"volumechange",function(){return zv(c)});this.eventManager.m(this.adManager,"ad-volume-changed",function(){return Av(c)});this.eventManager.m(this.adManager,"ad-muted",function(){return Av(c)});this.eventManager.m(this.adManager,"ad-stopped",function(){return zv(c)});this.eventManager.m(this.localization,"locale-updated",function(){return Bv(c)});
|
|
972
|
+
this.eventManager.m(this.localization,"locale-changed",function(){return Bv(c)});zv(this);Bv(this);if(this.ad)this.onChange()}pa(yv,zt);yv.prototype.onChange=function(){this.ad?this.ad.setVolume(this.getValue()):(this.video.volume=this.getValue(),this.video.muted=0==this.video.volume?!0:!1)};function zv(a){a.video.muted?a.setValue(0):a.setValue(a.video.volume);Cv(a)}function Av(a){var b=a.ad.getVolume();a.setValue(b);Cv(a)}
|
|
973
|
+
function Cv(a){var b=a.v.volumeBarColors,c=["to right"];c.push(b.level+100*a.getValue()+"%");c.push(b.base+100*a.getValue()+"%");c.push(b.base+"100%");a.container.style.background="linear-gradient("+c.join(",")+")"}function Bv(a){a.bar.setAttribute("aria-label",a.localization.resolve("VOLUME"))}L("shaka.ui.VolumeBar",yv);function Dv(){}Dv.prototype.create=function(a,b){return new yv(a,b)};Nt("volume",new Dv);}).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})();
|
|
972
974
|
|
|
973
975
|
//# sourceMappingURL=shaka-player.ui.map
|