shaka-player 4.3.9 → 4.3.10
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/.github/workflows/build-and-test.yaml +11 -18
- package/.github/workflows/compute-incremental-coverage.py +3 -0
- package/.github/workflows/selenium-lab-tests.yaml +45 -10
- package/CHANGELOG.md +10 -0
- package/demo/common/assets.js +59 -25
- package/demo/main.js +5 -0
- package/dist/demo.compiled.debug.js +15 -13
- package/dist/demo.compiled.debug.map +3 -3
- package/dist/demo.compiled.js +15 -13
- package/dist/demo.compiled.map +3 -3
- package/dist/locales.js +32 -32
- package/dist/receiver.compiled.debug.js +13 -11
- package/dist/receiver.compiled.debug.map +3 -3
- package/dist/receiver.compiled.js +13 -11
- package/dist/receiver.compiled.map +3 -3
- package/dist/shaka-player.compiled.debug.js +7 -6
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.js +68 -68
- package/dist/shaka-player.compiled.map +2 -2
- package/dist/shaka-player.ui.debug.js +15 -13
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.js +78 -78
- package/dist/shaka-player.ui.map +2 -2
- package/karma.conf.js +2 -0
- package/lib/ads/client_side_ad_manager.js +14 -2
- package/lib/player.js +1 -1
- package/lib/util/platform.js +8 -0
- package/package.json +2 -2
- package/test/player_integration.js +4 -1
- package/test/test/util/ui_utils.js +5 -1
- package/ui/externs/ui.js +2 -2
- package/ui/seek_bar.js +7 -1
package/dist/shaka-player.ui.js
CHANGED
|
@@ -37,10 +37,10 @@ while(!k.done)})};return b});function Ha(a,b){return Object.prototype.hasOwnProp
|
|
|
37
37
|
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(!Ha(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({}),
|
|
38
38
|
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(p){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(!Ha(k,g))throw Error("WeakMap key fail: "+k);k[g][this.g]=l;return this};b.prototype.get=function(k){return d(k)&&Ha(k,g)?k[g][this.g]:void 0};b.prototype.has=function(k){return d(k)&&Ha(k,
|
|
39
39
|
g)&&Ha(k[g],this.g)};b.prototype.delete=function(k){return d(k)&&Ha(k,g)&&Ha(k[g],this.g)?delete k[g][this.g]:!1};return b});
|
|
40
|
-
ea("Map",function(a){function b(){var h={};return h.ob=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.ob;for(;l.next!=l.head;)return l=l.next,{done:!1,value:k(l)};l=null}return{done:!0,value:void 0}})}function d(h,k){var l=k&&typeof k;"object"==l||"function"==l?f.has(k)?l=f.get(k):(l=""+ ++g,f.set(k,l)):l="p_"+k;var m=h.h[l];if(m&&Ha(h.h,l))for(h=0;h<m.length;h++){var p=m[h];if(k!==k&&p.key!==p.key||k===p.key)return{id:l,list:m,index:h,
|
|
41
|
-
list:m,index:-1,
|
|
42
|
-
"t"!=m.value[1]||!l.next().done?!1:!0}catch(p){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.
|
|
43
|
-
h.
|
|
40
|
+
ea("Map",function(a){function b(){var h={};return h.ob=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.ob;for(;l.next!=l.head;)return l=l.next,{done:!1,value:k(l)};l=null}return{done:!0,value:void 0}})}function d(h,k){var l=k&&typeof k;"object"==l||"function"==l?f.has(k)?l=f.get(k):(l=""+ ++g,f.set(k,l)):l="p_"+k;var m=h.h[l];if(m&&Ha(h.h,l))for(h=0;h<m.length;h++){var p=m[h];if(k!==k&&p.key!==p.key||k===p.key)return{id:l,list:m,index:h,xa:p}}return{id:l,
|
|
41
|
+
list:m,index:-1,xa: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||
|
|
42
|
+
"t"!=m.value[1]||!l.next().done?!1:!0}catch(p){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.xa?l.xa.value=k:(l.xa={next:this.g,ob:this.g.ob,head:this.g,key:h,value:k},l.list.push(l.xa),this.g.ob.next=l.xa,this.g.ob=l.xa,this.size++);return this};e.prototype.delete=function(h){h=d(this,h);return h.xa&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.h[h.id],h.xa.ob.next=h.xa.next,h.xa.next.ob=h.xa.ob,
|
|
43
|
+
h.xa.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.ob=b();this.size=0};e.prototype.has=function(h){return!!d(this,h).xa};e.prototype.get=function(h){return(h=d(this,h).xa)&&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(),
|
|
44
44
|
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 Ia(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 Ia(this,function(b){return b})}});
|
|
45
45
|
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||
|
|
46
46
|
f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype.delete=function(c){c=this.g.delete(c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return this.g.values()};b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=
|
|
@@ -55,8 +55,8 @@ ea("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infi
|
|
|
55
55
|
function I(a,b){a=a.split(".");var c=Na;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};function L(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}
|
|
56
56
|
function Pa(a){var b=new L(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}L.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};L.prototype.stopImmediatePropagation=function(){this.g=!0};L.prototype.stopPropagation=function(){};I("shaka.util.FakeEvent",L);
|
|
57
57
|
var Qa={Yh:"abrstatuschanged",Zh:"adaptation",$h:"buffering",ci:"downloadfailed",di:"downloadheadersreceived",ei:"drmsessionupdate",ni:"emsg",Pi:"prft",Error:"error",oi:"expirationupdated",si:"gapjumped",xi:"loaded",zi:"loading",Ei:"manifestparsed",Fi:"mediaqualitychanged",Metadata:"metadata",Ji:"onstatechange",Ki:"onstateidle",Ui:"ratechange",$i:"segmentappended",aj:"sessiondata",bj:"stalldetected",cj:"streaming",dj:"textchanged",ej:"texttrackvisibility",fj:"timelineregionadded",gj:"timelineregionenter",
|
|
58
|
-
hj:"timelineregionexit",ij:"trackschanged",nj:"unloading",pj:"variantchanged"};function Ra(){}function Ta(){}function Ua(){}function Wa(a){var b=Ga.apply(1,arguments);Xa.has(a)||(Xa.add(a),Ua.apply(Ra,ha(b)))}function Ya(){}function Za(){}function $a(){}function ab(){}var Xa=new Set;window.console&&(Ua=function(){return console.warn.apply(console,ha(Ga.apply(0,arguments)))},Ta=function(){console.error.apply(console,ha(Ga.apply(0,arguments)))});function bb(){this.g={}}q=bb.prototype;q.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};q.get=function(a){return(a=this.g[a])?a.slice():null};q.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};q.forEach=function(a){for(var b in this.g)a(b,this.g[b])};q.size=function(){return Object.keys(this.g).length};q.keys=function(){return Object.keys(this.g)};function db(){this.
|
|
59
|
-
db.prototype.release=function(){this.
|
|
58
|
+
hj:"timelineregionexit",ij:"trackschanged",nj:"unloading",pj:"variantchanged"};function Ra(){}function Ta(){}function Ua(){}function Wa(a){var b=Ga.apply(1,arguments);Xa.has(a)||(Xa.add(a),Ua.apply(Ra,ha(b)))}function Ya(){}function Za(){}function $a(){}function ab(){}var Xa=new Set;window.console&&(Ua=function(){return console.warn.apply(console,ha(Ga.apply(0,arguments)))},Ta=function(){console.error.apply(console,ha(Ga.apply(0,arguments)))});function bb(){this.g={}}q=bb.prototype;q.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};q.get=function(a){return(a=this.g[a])?a.slice():null};q.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};q.forEach=function(a){for(var b in this.g)a(b,this.g[b])};q.size=function(){return Object.keys(this.g).length};q.keys=function(){return Object.keys(this.g)};function db(){this.sa=new bb;this.Id=this}db.prototype.addEventListener=function(a,b){this.sa&&this.sa.push(a,b)};db.prototype.removeEventListener=function(a,b){this.sa&&this.sa.remove(a,b)};db.prototype.dispatchEvent=function(a){if(!this.sa)return!0;var b=this.sa.get(a.type)||[],c=this.sa.get("All");c&&(b=b.concat(c));b=r(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.Id;a.currentTarget=this.Id;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
|
|
59
|
+
db.prototype.release=function(){this.sa=null};function eb(a,b){var c=[];a=r(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c}function fb(a,b){a=r(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0}function gb(a,b){a=r(a);for(var c=a.next();!c.done;c=a.next())if(b(c.value))return!0;return!1}function hb(a,b){var c=[];a=r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b(d)&&c.push(d);return c};/*
|
|
60
60
|
@license
|
|
61
61
|
Copyright 2008 The Closure Library Authors
|
|
62
62
|
SPDX-License-Identifier: Apache-2.0
|
|
@@ -96,8 +96,8 @@ q.zf=function(a){var b=this;this.g.clear();a=r(a);for(var c=a.next();!c.done;c=a
|
|
|
96
96
|
q.ha=function(a,b,c){a=Kb(a);void 0===c&&(c=Wb);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=Wb||d.set(f,e)});this.h.set(a,d);Ub(this);this.dispatchEvent(new L("locale-updated"));return this};q.Fh=function(a){for(var b=r(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};q.resolve=function(a){var b=this.i.get(a);if(b)return b;a=(new Map).set("locales",Array.from(this.g)).set("missing",a);this.dispatchEvent(new L("unknown-localization",a));return""};
|
|
97
97
|
function Ub(a){for(var b=a.h,c=a.j,d=a.g,e=new Set,f={},g=r(d),h=g.next();!h.done;f={Yb:f.Yb},h=g.next()){f.Yb=h.value;e.add(f.Yb);e.add(Pb(f.Yb));h=hb(b.keys(),function(l){return function(m){return Ob(m,l.Yb)}}(f));h.sort();var k=r(h);for(h=k.next();!h.done;h=k.next())e.add(h.value);h=hb(b.keys(),function(l){return function(m){return Pb(m)==l.Yb}}(f));h.sort();k=r(h);for(h=k.next();!h.done;h=k.next())e.add(h.value)}e.add(c);c=[];e=r(e);for(h=e.next();!h.done;h=e.next())(h=b.get(h.value))&&c.push(h);
|
|
98
98
|
c.reverse();a.i.clear();b=r(c);for(h=b.next();!h.done;h=b.next())h.value.forEach(function(l,m){a.i.set(m,l)});b=a.i.keys();e=new Set;c=r(a.g);for(h=c.next();!h.done;h=c.next())h=a.h.get(h.value)||new Map,Xb(h,b,e);0<e.size&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.dispatchEvent(new L("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)}I("shaka.ui.Localization",Tb);Tb.prototype.resolve=Tb.prototype.resolve;
|
|
99
|
-
Tb.prototype.resolveDictionary=Tb.prototype.Fh;Tb.prototype.insert=Tb.prototype.ha;Tb.prototype.changeLocale=Tb.prototype.zf;Tb.prototype.release=Tb.prototype.release;var Wb=1;Tb.ConflictResolution={USE_OLD:0,USE_NEW:Wb};Tb.UNKNOWN_LOCALES="unknown-locales";Tb.UNKNOWN_LOCALIZATION="unknown-localization";Tb.MISSING_LOCALIZATIONS="missing-localizations";Tb.LOCALE_CHANGED="locale-changed";Tb.LOCALE_UPDATED="locale-updated";var Yb={
|
|
100
|
-
|
|
99
|
+
Tb.prototype.resolveDictionary=Tb.prototype.Fh;Tb.prototype.insert=Tb.prototype.ha;Tb.prototype.changeLocale=Tb.prototype.zf;Tb.prototype.release=Tb.prototype.release;var Wb=1;Tb.ConflictResolution={USE_OLD:0,USE_NEW:Wb};Tb.UNKNOWN_LOCALES="unknown-locales";Tb.UNKNOWN_LOCALIZATION="unknown-localization";Tb.MISSING_LOCALIZATIONS="missing-localizations";Tb.LOCALE_CHANGED="locale-changed";Tb.LOCALE_UPDATED="locale-updated";var Yb={Hi:"OFF",gi:"ENTER_LOOP_MODE",Uh:"AIRPLAY",Zi:"STATISTICS",Si:"RESOLUTION",Bi:"MORE_SETTINGS",Di:"MUTE",Wh:"AUTO_QUALITY",jg:"SUBTITLE_FORCED",AD_PROGRESS:"AD_PROGRESS",bi:"CAST",BACK:"BACK",li:"EXIT_LOOP_MODE",mj:"UNRECOGNIZED_LANGUAGE",oj:"VOLUME",ig:"LIVE",Oi:"PLAYBACK_RATE",ri:"FULL_SCREEN",Mi:"PICTURE_IN_PICTURE",Th:"AD_TIME",wi:"LOOP",Gi:"NOT_APPLICABLE",ti:"LANGUAGE",ii:"ENTER_PICTURE_IN_PICTURE",mi:"EXIT_PICTURE_IN_PICTURE",kj:"UNDETERMINED_LANGUAGE",Xi:"SKIP_TO_LIVE",Ci:"MULTIPLE_LANGUAGES",
|
|
100
|
+
lj:"UNMUTE",Vi:"SEEK",Sh:"AD_DURATION",ai:"CAPTIONS",Ni:"PLAY",Ri:"REPLAY",ki:"EXIT_FULL_SCREEN",Ii:"ON",Ti:"REWIND",pi:"FAST_FORWARD",Li:"PAUSE",Wi:"SKIP_AD",Qi:"QUALITY"};function Zb(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}Zb.prototype.sample=function(a,b){var c=Math.pow(this.g,a);b=b*(1-c)+c*this.h;isNaN(b)||(this.h=b,this.i+=a)};function $b(a){return a.h/(1-Math.pow(a.g,a.i))};function ac(){this.h=new Zb(2);this.j=new Zb(5);this.g=0;this.i=128E3;this.l=16E3}ac.prototype.configure=function(a){this.i=a.minTotalBytes;this.l=a.minBytes;this.h.g=Math.exp(Math.log(.5)/a.fastHalfLife);this.j.g=Math.exp(Math.log(.5)/a.slowHalfLife)};ac.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a;a/=1E3;this.g+=b;this.h.sample(a,c);this.j.sample(a,c)}};ac.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min($b(this.h),$b(this.j))};function bc(a){if(cc.has(a))return cc.get(a);var b=MediaSource.isTypeSupported(a);cc.set(a,b);return b}var cc=new Map;function dc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function ec(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function fc(a,b,c){c||(c=dc);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}
|
|
101
101
|
function gc(a,b,c){c||(c=dc);if(a.length!=b.length)return!1;for(var d=0;d<a.length;d++)if(!c(a[d],b[d]))return!1;return!0};function hc(a,b,c){this.startTime=a;this.direction=ic;this.endTime=b;this.payload=c;this.region=new jc;this.position=null;this.positionAlign=lc;this.size=0;this.textAlign=mc;this.writingMode=nc;this.lineInterpretation=oc;this.line=null;this.lineHeight="";this.lineAlign=pc;this.displayAlign=qc;this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.textShadow=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=rc;this.fontStyle=sc;this.linePadding=this.letterSpacing=
|
|
102
102
|
this.fontFamily="";this.opacity=1;this.textDecoration=[];this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.cellResolution={columns:32,rows:15}}hc.prototype.clone=function(){var a=new hc(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
|
|
103
103
|
function tc(a,b){if(a.startTime!=b.startTime||a.endTime!=b.endTime||a.payload!=b.payload)return!1;for(var c in a)if("startTime"!=c&&"endTime"!=c&&"payload"!=c)if("nestedCues"==c){if(!gc(a.nestedCues,b.nestedCues,tc))return!1}else if("region"==c||"cellResolution"==c)for(var d in a[c]){if(a[c][d]!=b[c][d])return!1}else if(Array.isArray(a[c])){if(!gc(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}I("shaka.text.Cue",hc);var lc="auto";
|
|
@@ -105,7 +105,7 @@ hc.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:lc};v
|
|
|
105
105
|
hc.lineInterpretation={LINE_NUMBER:oc,PERCENTAGE:1};var pc="start",wc={CENTER:"center",START:pc,END:"end"};hc.lineAlign=wc;var xc={white:"#FFF",lime:"#0F0",cyan:"#0FF",red:"#F00",yellow:"#FF0",magenta:"#F0F",blue:"#00F",black:"#000"};hc.defaultTextColor=xc;var yc={bg_white:"#FFF",bg_lime:"#0F0",bg_cyan:"#0FF",bg_red:"#F00",bg_yellow:"#FF0",bg_magenta:"#F0F",bg_blue:"#00F",bg_black:"#000"};hc.defaultTextBackgroundColor=yc;var rc=400;hc.fontWeight={NORMAL:rc,BOLD:700};
|
|
106
106
|
var sc="normal",zc={NORMAL:sc,ITALIC:"italic",OBLIQUE:"oblique"};hc.fontStyle=zc;hc.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};function jc(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Ac;this.scroll=Bc}I("shaka.text.CueRegion",jc);var Ac=1;jc.units={PX:0,PERCENTAGE:Ac,LINES:2};var Bc="";jc.scrollMode={NONE:Bc,UP:"up"};function Cc(){}function Dc(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(Ec(a)==Ec(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;var c=Fc(a);b=Fc(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])return!1;return!0}function Ec(a){return a instanceof ArrayBuffer?a:a.buffer}function Gc(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
|
|
107
107
|
function Fc(a,b,c){c=void 0===c?Infinity:c;return Hc(a,void 0===b?0:b,c,Uint8Array)}function Ic(a,b,c){c=void 0===c?Infinity:c;return Hc(a,void 0===b?0:b,c,DataView)}function Hc(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(Ec(a),b,Math.min(b+Math.max(c,0),e)-b)}I("shaka.util.BufferUtils",Cc);Cc.toDataView=Ic;Cc.toUint8=Fc;Cc.toArrayBuffer=Gc;Cc.equal=Dc;function Jc(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}Jc.prototype.resolve=function(){};Jc.prototype.reject=function(){};function Kc(a){this.h=a;this.g=void 0}Kc.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Lc(a){this.h=a;this.g=null}Lc.prototype.R=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};Lc.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function N(a){this.h=a;this.g=null}N.prototype.Aa=function(){this.stop();this.h();return this};N.prototype.R=function(a){var b=this;this.stop();this.g=(new Lc(function(){b.h()})).R(a);return this};N.prototype.ka=function(a){var b=this;this.stop();this.g=(new Lc(function(){b.g.R(a);b.h()})).R(a);return this};N.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};I("shaka.util.Timer",N);N.prototype.stop=N.prototype.stop;N.prototype.tickEvery=N.prototype.ka;N.prototype.tickAfter=N.prototype.R;
|
|
108
|
-
N.prototype.tickNow=N.prototype.Aa;function Mc(){return window.MediaSource&&MediaSource.isTypeSupported?!0:!1}function Nc(a){return""!=Oc().canPlayType(a)}function Pc(){return navigator.userAgent.match(/Edge?\//)?!0:!1}function Qc(){return Rc("Xbox One")}function Sc(){return Rc("Tizen")}function Tc(){return Rc("Web0S")&&Rc("Chrome/38.0.2125.122 Safari/537.36")}function Uc(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Sc()&&!Rc("PC=EOS")&&!Rc("VirginMedia")&&!Vc()&&!Rc("AFT")}
|
|
108
|
+
N.prototype.tickNow=N.prototype.Aa;function Mc(){return window.MediaSource&&MediaSource.isTypeSupported?!0:!1}function Nc(a){return""!=Oc().canPlayType(a)}function Pc(){return navigator.userAgent.match(/Edge?\//)?!0:!1}function Qc(){return Rc("Xbox One")}function Sc(){return Rc("Tizen")}function Tc(){return Rc("Web0S")&&Rc("Chrome/38.0.2125.122 Safari/537.36")}function Uc(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Sc()&&!Rc("PC=EOS")&&!Rc("VirginMedia")&&!Rc("SOPOpenBrowser")&&!Vc()&&!Rc("AFT")}
|
|
109
109
|
function Vc(){return Rc("PlayStation 4")}function Wc(){if(!Uc())return null;var a=navigator.userAgent.match(/Version\/(\d+)/);return a?parseInt(a[1],10):(a=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(a[1],10):null}function Rc(a){return(navigator.userAgent||"").includes(a)}function Oc(){if(Xc)return Xc;Yc||(Yc=new N(function(){Xc=null}));(Xc=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(Xc=document.createElement("video"));Yc.R(1);return Xc}
|
|
110
110
|
var Yc=null,Xc=null;function Zc(){}
|
|
111
111
|
function $c(a){if(!a)return"";a=Fc(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if(window.TextDecoder&&!Vc())return a=(new TextDecoder).decode(a),a.includes("\ufffd")&&Ta('Decoded string contains an "unknown character" codepoint. That probably means the UTF8 encoding was incorrect!'),a;for(var b="",c=0;c<a.length;++c){var d=65533;0==(a[c]&128)?d=a[c]:a.length>=c+2&&192==(a[c]&224)&&128==(a[c+1]&192)?(d=(a[c]&31)<<6|a[c+1]&63,c+=1):a.length>=c+3&&224==(a[c]&240)&&128==(a[c+1]&192)&&128==
|
|
@@ -181,15 +181,15 @@ if(!p)return x;var C=c.retryParameters.connectionTimeout;C&&(n=new N(function(){
|
|
|
181
181
|
c.uris[e],b));if(x instanceof M){if(7001==x.code)throw x;if(1010==x.code)throw f;if(1==x.severity)return C=(new Map).set("error",x),C=new L("retry",C),a.dispatchEvent(C),e=(e+1)%c.uris.length,rf(a,b,c,d,e,x,g)}throw x;})}
|
|
182
182
|
function sf(a,b,c){var d=af(void 0),e={};a=r(a.h);for(var f=a.next();!f.done;e={be:e.be},f=a.next())e.be=f.value,d=d.ma(function(g){return function(){var h=c.response;h.data&&(h.data=Gc(h.data));return g.be(b,h)}}(e));return d.ma(function(){return c},function(g){var h=2;if(g instanceof M){if(7001==g.code)throw g;h=g.severity}throw new M(h,1,1007,g);})}I("shaka.net.NetworkingEngine",jf);jf.prototype.request=jf.prototype.request;jf.prototype.destroy=jf.prototype.destroy;jf.makeRequest=nf;
|
|
183
183
|
jf.defaultRetryParameters=function(){return We()};jf.prototype.clearAllResponseFilters=jf.prototype.sg;jf.prototype.unregisterResponseFilter=jf.prototype.Oh;jf.prototype.registerResponseFilter=jf.prototype.yh;jf.prototype.clearAllRequestFilters=jf.prototype.rg;jf.prototype.unregisterRequestFilter=jf.prototype.Nh;jf.prototype.registerRequestFilter=jf.prototype.xh;jf.unregisterScheme=function(a){delete mf[a]};jf.registerScheme=kf;jf.prototype.setForceHTTPS=jf.prototype.Qe;function of(){this.g=0}
|
|
184
|
-
jf.NumBytesRemainingClass=of;function pf(a,b,c){Ye.call(this,a,b);this.h=c}pa(pf,Ye);jf.PendingRequest=pf;var tf=1;jf.RequestType={MANIFEST:0,SEGMENT:tf,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6};var lf=3;jf.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:lf};var mf={};function uf(a){this.g=!1;this.h=new Jc;this.i=a}uf.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 vf(a,b){if(a.g){if(b instanceof M&&7003==b.code)throw b;throw new M(2,7,7003,b);}};function wf(){this.g=new bb}q=wf.prototype;q.release=function(){this.Sb();this.g=null};q.o=function(a,b,c,d){this.g&&(a=new xf(a,b,c,d),this.g.push(b,a))};q.
|
|
185
|
-
q.Sb=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,ha(a.g[c]));a=r(b);for(b=a.next();!b.done;b=a.next())b.value.rc();this.g.g={}}};I("shaka.util.EventManager",wf);wf.prototype.removeAll=wf.prototype.Sb;wf.prototype.unlisten=wf.prototype.rc;wf.prototype.listenOnce=wf.prototype.
|
|
184
|
+
jf.NumBytesRemainingClass=of;function pf(a,b,c){Ye.call(this,a,b);this.h=c}pa(pf,Ye);jf.PendingRequest=pf;var tf=1;jf.RequestType={MANIFEST:0,SEGMENT:tf,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6};var lf=3;jf.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:lf};var mf={};function uf(a){this.g=!1;this.h=new Jc;this.i=a}uf.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 vf(a,b){if(a.g){if(b instanceof M&&7003==b.code)throw b;throw new M(2,7,7003,b);}};function wf(){this.g=new bb}q=wf.prototype;q.release=function(){this.Sb();this.g=null};q.o=function(a,b,c,d){this.g&&(a=new xf(a,b,c,d),this.g.push(b,a))};q.ra=function(a,b,c,d){function e(g){f.rc(a,b,e);c(g)}var f=this;this.o(a,b,e,d)};q.rc=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.rc(),this.g.remove(b,e))}};
|
|
185
|
+
q.Sb=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,ha(a.g[c]));a=r(b);for(b=a.next();!b.done;b=a.next())b.value.rc();this.g.g={}}};I("shaka.util.EventManager",wf);wf.prototype.removeAll=wf.prototype.Sb;wf.prototype.unlisten=wf.prototype.rc;wf.prototype.listenOnce=wf.prototype.ra;wf.prototype.listen=wf.prototype.o;wf.prototype.release=wf.prototype.release;function xf(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=yf(a,d);this.target.addEventListener(b,c,this.g)}
|
|
186
186
|
xf.prototype.rc=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function yf(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 zf(a)?b:b.capture||!1}
|
|
187
|
-
function zf(a){var b=Af;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}Af=b}return b||!1}var Af=void 0;function Bf(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 Cf(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function Df(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;a=r(a);for(var c=a.next();!c.done;c=a.next()){var d=r(c.value);c=d.next().value;d=d.next().value;if(!b.has(c))return!1;c=b.get(c);if(c!=d||void 0==c)return!1}return!0};function Ef(a,b){this.W=Ic(a);this.h=b==Ff;this.g=0}q=Ef.prototype;q.
|
|
187
|
+
function zf(a){var b=Af;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}Af=b}return b||!1}var Af=void 0;function Bf(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 Cf(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function Df(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;a=r(a);for(var c=a.next();!c.done;c=a.next()){var d=r(c.value);c=d.next().value;d=d.next().value;if(!b.has(c))return!1;c=b.get(c);if(c!=d||void 0==c)return!1}return!0};function Ef(a,b){this.W=Ic(a);this.h=b==Ff;this.g=0}q=Ef.prototype;q.ya=function(){return this.g<this.W.byteLength};q.na=function(){return this.g};q.Lg=function(){return this.W.byteLength};q.pb=function(){try{var a=this.W.getUint8(this.g);this.g+=1;return a}catch(b){throw Gf();}};q.Ge=function(){try{var a=this.W.getUint16(this.g,this.h);this.g+=2;return a}catch(b){throw Gf();}};q.O=function(){try{var a=this.W.getUint32(this.g,this.h);this.g+=4;return a}catch(b){throw Gf();}};
|
|
188
188
|
q.Sf=function(){try{var a=this.W.getInt32(this.g,this.h);this.g+=4;return a}catch(b){throw Gf();}};q.Cb=function(){try{if(this.h){var a=this.W.getUint32(this.g,!0);var b=this.W.getUint32(this.g+4,!0)}else b=this.W.getUint32(this.g,!1),a=this.W.getUint32(this.g+4,!1)}catch(c){throw Gf();}if(2097151<b)throw new M(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};q.Bb=function(a){if(this.g+a>this.W.byteLength)throw Gf();var b=Fc(this.W,this.g,a);this.g+=a;return b};
|
|
189
|
-
q.skip=function(a){if(this.g+a>this.W.byteLength)throw Gf();this.g+=a};q.Gh=function(a){if(this.g<a)throw Gf();this.g-=a};q.seek=function(a){if(0>a||a>this.W.byteLength)throw Gf();this.g=a};q.Wc=function(){for(var a=this.g;this.
|
|
190
|
-
Ef.prototype.skip=Ef.prototype.skip;Ef.prototype.readBytes=Ef.prototype.Bb;Ef.prototype.readUint64=Ef.prototype.Cb;Ef.prototype.readInt32=Ef.prototype.Sf;Ef.prototype.readUint32=Ef.prototype.O;Ef.prototype.readUint16=Ef.prototype.Ge;Ef.prototype.readUint8=Ef.prototype.pb;Ef.prototype.getLength=Ef.prototype.Lg;Ef.prototype.getPosition=Ef.prototype.na;Ef.prototype.hasMoreData=Ef.prototype.
|
|
189
|
+
q.skip=function(a){if(this.g+a>this.W.byteLength)throw Gf();this.g+=a};q.Gh=function(a){if(this.g<a)throw Gf();this.g-=a};q.seek=function(a){if(0>a||a>this.W.byteLength)throw Gf();this.g=a};q.Wc=function(){for(var a=this.g;this.ya()&&0!=this.W.getUint8(this.g);)this.g+=1;a=Fc(this.W,a,this.g-a);this.g+=1;return $c(a)};function Gf(){return new M(2,3,3E3)}I("shaka.util.DataViewReader",Ef);Ef.prototype.readTerminatedString=Ef.prototype.Wc;Ef.prototype.seek=Ef.prototype.seek;Ef.prototype.rewind=Ef.prototype.Gh;
|
|
190
|
+
Ef.prototype.skip=Ef.prototype.skip;Ef.prototype.readBytes=Ef.prototype.Bb;Ef.prototype.readUint64=Ef.prototype.Cb;Ef.prototype.readInt32=Ef.prototype.Sf;Ef.prototype.readUint32=Ef.prototype.O;Ef.prototype.readUint16=Ef.prototype.Ge;Ef.prototype.readUint8=Ef.prototype.pb;Ef.prototype.getLength=Ef.prototype.Lg;Ef.prototype.getPosition=Ef.prototype.na;Ef.prototype.hasMoreData=Ef.prototype.ya;var Ff=1;Ef.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Ff};function Hf(){this.i=[];this.h=[];this.g=!1}q=Hf.prototype;q.box=function(a,b){a=If(a);this.i[a]=Jf;this.h[a]=b;return this};q.U=function(a,b){a=If(a);this.i[a]=Kf;this.h[a]=b;return this};q.stop=function(){this.g=!0};q.parse=function(a,b,c){a=new Ef(a,0);for(this.g=!1;a.ya()&&!this.g;)this.Uc(0,a,b,c)};
|
|
191
191
|
q.Uc=function(a,b,c,d){var e=b.na();if(d&&e+8>b.W.byteLength)this.g=!0;else{var f=b.O(),g=b.O(),h=Lf(g),k=!1;switch(f){case 0:f=b.W.byteLength-e;break;case 1:if(d&&b.na()+8>b.W.byteLength){this.g=!0;return}f=b.Cb();k=!0}var l=this.h[g];if(l){var m=null,p=null;if(this.i[g]==Kf){if(d&&b.na()+4>b.W.byteLength){this.g=!0;return}p=b.O();m=p>>>24;p&=16777215}g=e+f;c&&g>b.W.byteLength&&(g=b.W.byteLength);d&&g>b.W.byteLength?this.g=!0:(d=g-b.na(),b=0<d?b.Bb(d):new Uint8Array(0),b=new Ef(b,0),l({name:h,parser:this,
|
|
192
|
-
partialOkay:c||!1,version:m,flags:p,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.na(),b.W.byteLength-b.na()))}};function Mf(a){for(var b=Nf(a);a.reader.
|
|
192
|
+
partialOkay:c||!1,version:m,flags:p,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.na(),b.W.byteLength-b.na()))}};function Mf(a){for(var b=Nf(a);a.reader.ya()&&!a.parser.g;)a.parser.Uc(a.start+b,a.reader,a.partialOkay)}function Of(a){for(var b=Nf(a),c=a.reader.O(),d=0;d<c&&(a.parser.Uc(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function Pf(a){var b=Nf(a);for(a.reader.skip(78);a.reader.ya()&&!a.parser.g;)a.parser.Uc(a.start+b,a.reader,a.partialOkay)}
|
|
193
193
|
function Qf(a){return function(b){a(b.reader.Bb(b.reader.W.byteLength-b.reader.na()))}}function If(a){var b=0;a=r(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function Lf(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function Nf(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}I("shaka.util.Mp4Parser",Hf);Hf.headerSize=Nf;Hf.typeToString=Lf;Hf.allData=Qf;Hf.visualSampleEntry=Pf;Hf.sampleDescription=Of;Hf.children=Mf;
|
|
194
194
|
Hf.prototype.parseNext=Hf.prototype.Uc;Hf.prototype.parse=Hf.prototype.parse;Hf.prototype.stop=Hf.prototype.stop;Hf.prototype.fullBox=Hf.prototype.U;Hf.prototype.box=Hf.prototype.box;var Jf=0,Kf=1;function Rf(a){var b=this;this.g=[];this.h=[];this.data=[];(new Hf).box("moov",Mf).box("moof",Mf).U("pssh",function(c){if(!(1<c.version)){var d=Fc(c.reader.W,-12,c.size);b.data.push(d);b.g.push(kd(c.reader.Bb(16)));if(0<c.version){d=c.reader.O();for(var e=0;e<d;e++){var f=kd(c.reader.Bb(16));b.h.push(f)}}}}).parse(a)}
|
|
195
195
|
function Sf(a,b,c,d){var e=a.length,f=b.length+16+e;0<d&&(f+=4+16*c.size);var g=new Uint8Array(f),h=Ic(g),k=0;h.setUint32(k,f);k+=4;h.setUint32(k,1886614376);k+=4;1>d?h.setUint32(k,0):h.setUint32(k,16777216);k+=4;g.set(b,k);k+=b.length;if(0<d)for(h.setUint32(k,c.size),k+=4,b=r(c),c=b.next();!c.done;c=b.next())c=jd(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};function Tf(a,b){a=Uf(a,b);return 1!=a.length?null:a[0]}function Vf(a,b,c){a=Wf(a,b,c);return 1!=a.length?null:a[0]}function Uf(a,b){var c=[];a=r(a.childNodes);for(var d=a.next();!d.done;d=a.next())d=d.value,d instanceof Element&&d.tagName==b&&c.push(d);return c}function Xf(a){return Array.from(a.childNodes).filter(function(b){return b instanceof Element})}
|
|
@@ -198,14 +198,14 @@ function ag(a){return a.nodeType==Node.TEXT_NODE||a.nodeType==Node.CDATA_SECTION
|
|
|
198
198
|
function dg(a){if(!a)return null;a=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$").exec(a);if(!a)return null;a=31536E3*Number(a[1]||null)+2592E3*Number(a[2]||null)+86400*Number(a[3]||null)+3600*Number(a[4]||null)+60*Number(a[5]||null)+Number(a[6]||null);return isFinite(a)?a:null}
|
|
199
199
|
function eg(a){var b=/([0-9]+)-([0-9]+)/.exec(a);if(!b)return null;a=Number(b[1]);if(!isFinite(a))return null;b=Number(b[2]);return isFinite(b)?{start:a,end:b}:null}function fg(a){a=Number(a);return 0===a%1?a:null}function gg(a){a=Number(a);return 0===a%1&&0<a?a:null}function hg(a){a=Number(a);return 0===a%1&&0<=a?a:null}function ig(a){a=Number(a);return isNaN(a)?null:a}function jg(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c}
|
|
200
200
|
function kg(a,b){var c=new DOMParser,d=lg.value()(a);a=null;try{a=c.parseFromString(d,"text/xml")}catch(e){return null}c=a.documentElement;if(!c||c.getElementsByTagName("parsererror").length||c.tagName!=b)return null;for(b=document.createNodeIterator(a,NodeFilter.SHOW_ALL);a=b.nextNode();)if(a instanceof HTMLElement||a instanceof SVGElement)return null;return c}function mg(a,b){try{var c=$c(a);return kg(c,b)}catch(d){return null}}
|
|
201
|
-
var lg=new Kc(function(){if("undefined"!==typeof trustedTypes){var a=trustedTypes.createPolicy("shaka-player#xml",{createHTML:function(b){return b}});return function(b){return a.createHTML(b)}}return function(b){return b}});function ng(a,b){var c=this;b=void 0===b?1:b;this.G=a;this.I=new Set;this.l=this.C=null;this.aa=this.Z=!1;this.J=0;this.g=null;this.B=new wf;this.i=new Map;this.F=[];this.s=new Jc;this.h=null;this.m=function(d){c.s.reject(d);a.onError(d)};this.ba=new Map;this.$=new Map;this.V=new N(function(){return og(c)});this.N=!1;this.M=[];this.P=!1;this.
|
|
202
|
-
q.destroy=function(){return this.j.destroy()};function qg(a){return F(function(b){switch(b.g){case 1:return a.B.release(),a.B=null,a.s.reject(),a.
|
|
201
|
+
var lg=new Kc(function(){if("undefined"!==typeof trustedTypes){var a=trustedTypes.createPolicy("shaka-player#xml",{createHTML:function(b){return b}});return function(b){return a.createHTML(b)}}return function(b){return b}});function ng(a,b){var c=this;b=void 0===b?1:b;this.G=a;this.I=new Set;this.l=this.C=null;this.aa=this.Z=!1;this.J=0;this.g=null;this.B=new wf;this.i=new Map;this.F=[];this.s=new Jc;this.h=null;this.m=function(d){c.s.reject(d);a.onError(d)};this.ba=new Map;this.$=new Map;this.V=new N(function(){return og(c)});this.N=!1;this.M=[];this.P=!1;this.sa=(new N(function(){pg(c)})).ka(b);this.s.catch(function(){});this.j=new uf(function(){return qg(c)});this.X=!1;this.K=this.H=null}q=ng.prototype;
|
|
202
|
+
q.destroy=function(){return this.j.destroy()};function qg(a){return F(function(b){switch(b.g){case 1:return a.B.release(),a.B=null,a.s.reject(),a.sa.stop(),a.sa=null,a.V.stop(),a.V=null,u(b,rg(a),2);case 2:if(!a.l){b.D(3);break}D(b,4);return u(b,a.l.setMediaKeys(null),6);case 6:va(b,5);break;case 4:wa(b);case 5:a.l=null;case 3:a.g=null,a.I.clear(),a.C=null,a.F=[],a.h=null,a.m=function(){},a.G=null,a.X=!1,a.H=null,B(b)}})}q.configure=function(a){this.h=a};
|
|
203
203
|
function sg(a,b,c){a.aa=!0;a.F=[];a.N=c;return tg(a,b)}function ug(a,b,c){a.F=c;a.N=0<c.length;return tg(a,b)}
|
|
204
204
|
function vg(a,b,c,d,e,f){var g=new Map;e={audioCapabilities:e,videoCapabilities:f,distinctiveIdentifier:"optional",persistentState:"required",sessionTypes:["persistent-license"],label:b};e.drmInfos=[{keySystem:b,licenseServerUri:c,distinctiveIdentifierRequired:!1,persistentStateRequired:!0,audioRobustness:"",videoRobustness:"",serverCertificate:d,serverCertificateUri:"",initData:null,keyIds:null}];g.set(b,e);return wg(a,g,[])}
|
|
205
205
|
function tg(a,b){var c,d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,C;return F(function(z){if(1==z.g){if(c=xg(a))for(d=r(b),e=d.next();!e.done;e=d.next())f=e.value,f.video&&(f.video.drmInfos=[c]),f.audio&&(f.audio.drmInfos=[c]);g=b.some(function(A){return A.video&&A.video.drmInfos.length||A.audio&&A.audio.drmInfos.length?!0:!1});g||(h=Bf(a.h.servers),yg(b,h));k=new Set;l=r(b);for(e=l.next();!e.done;e=l.next())for(m=e.value,p=zg(m),n=r(p),t=n.next();!t.done;t=n.next())v=t.value,k.add(v);y=r(k);for(t=y.next();!t.done;t=
|
|
206
206
|
y.next())w=t.value,Ag(w,Bf(a.h.servers),Bf(a.h.advanced||{}),a.h.keySystemsMapping);return u(z,de(b,a.N,a.X),2)}x=g||Object.keys(a.h.servers).length;if(!x)return a.Z=!0,z.return(Promise.resolve());C=wg(a,void 0,b);return z.return(g?C:C.catch(function(){}))})}
|
|
207
207
|
function Bg(a){var b;return F(function(c){switch(c.g){case 1:if(a.l.mediaKeys)return c.return();if(!a.H){c.D(2);break}return u(c,a.H,3);case 3:return vf(a.j),c.return();case 2:return D(c,4),a.H=a.l.setMediaKeys(a.C),u(c,a.H,6);case 6:va(c,5);break;case 4:b=wa(c),a.m(new M(2,6,6003,b.message));case 5:vf(a.j),B(c)}})}function Cg(a,b){return F(function(c){if(1==c.g)return u(c,Bg(a),2);Dg(a,b.initDataType,Fc(b.initData));B(c)})}
|
|
208
|
-
q.Cc=function(a){var b=this;return F(function(c){if(1==c.g){if(!b.C)return b.B.
|
|
208
|
+
q.Cc=function(a){var b=this;return F(function(c){if(1==c.g){if(!b.C)return b.B.ra(a,"encrypted",function(){b.m(new M(2,6,6010))}),c.return();b.l=a;b.B.ra(b.l,"play",function(){for(var d=r(b.M),e=d.next();!e.done;e=d.next())Eg(b,e.value);b.P=!0;b.M=[]});"webkitCurrentPlaybackTargetIsWireless"in b.l&&b.B.o(b.l,"webkitcurrentplaybacktargetiswirelesschanged",function(){return rg(b)});b.K=b.g?b.g.initData.find(function(d){return 0<d.initData.length})||null:null;return b.K||"com.apple.fps"!==b.g.keySystem||
|
|
209
209
|
b.F.length?u(c,Bg(b),2):c.D(2)}Fg(b);b.K||b.F.length||b.h.parseInbandPsshEnabled||b.B.o(b.l,"encrypted",function(d){return Cg(b,d)});B(c)})};
|
|
210
210
|
function Gg(a){var b,c,d,e,f;return F(function(g){switch(g.g){case 1:if(!a.C||!a.g)return g.return();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.D(2);break}b=nf([a.g.serverCertificateUri],a.h.retryParameters);D(g,3);c=a.G.Pb.request(5,b);return u(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=Fc(d.data);va(g,4);break;case 3:throw e=wa(g),new M(2,6,6017,e);case 4:if(a.j.g)return g.return();case 2:if(!a.g.serverCertificate||!a.g.serverCertificate.length)return g.return();
|
|
211
211
|
D(g,6);return u(g,a.C.setServerCertificate(a.g.serverCertificate),8);case 8:va(g,0);break;case 6:throw f=wa(g),new M(2,6,6004,f.message);}})}function Hg(a,b){var c,d,e;return F(function(f){if(1==f.g)return u(f,Ig(a,b),2);if(3!=f.g){c=f.h;if(!c)return f.return();d=[];if(e=a.i.get(c))e.cb=new Jc,d.push(e.cb);d.push(c.remove());return u(f,Promise.all(d),3)}a.i.delete(c);B(f)})}
|
|
@@ -254,7 +254,7 @@ var rh=0,th=1,vh=2,xh=3,sh=new Map([[39,"\u2019"],[42,"\u00e1"],[92,"\u00e9"],[9
|
|
|
254
254
|
[35,"\u00da"],[36,"\u00dc"],[37,"\u00fc"],[38,"\u2018"],[39,"\u00a1"],[40,"*"],[41,"'"],[42,"\u2500"],[43,"\u00a9"],[44,"\u2120"],[45,"\u00b7"],[46,"\u201c"],[47,"\u201d"],[48,"\u00c0"],[49,"\u00c2"],[50,"\u00c7"],[51,"\u00c8"],[52,"\u00ca"],[53,"\u00cb"],[54,"\u00eb"],[55,"\u00ce"],[56,"\u00cf"],[57,"\u00ef"],[58,"\u00d4"],[59,"\u00d9"],[60,"\u00f9"],[61,"\u00db"],[62,"\u00ab"],[63,"\u00bb"]]),yh=new Map([[32,"\u00c3"],[33,"\u00e3"],[34,"\u00cd"],[35,"\u00cc"],[36,"\u00ec"],[37,"\u00d2"],[38,"\u00f2"],
|
|
255
255
|
[39,"\u00d5"],[40,"\u00f5"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"\u00c4"],[49,"\u00e4"],[50,"\u00d6"],[51,"\u00f6"],[52,"\u00df"],[53,"\u00a5"],[54,"\u00a4"],[55,"\u2502"],[56,"\u00c5"],[57,"\u00e5"],[58,"\u00d8"],[59,"\u00f8"],[60,"\u250c"],[61,"\u2510"],[62,"\u2514"],[63,"\u2518"]]);function Ah(a,b){this.h=Bh;this.s=new mh(a,b);this.i=new mh(a,b);this.l=new mh(a,b);this.g=this.i;this.j=0;this.m=null}function Ch(a,b,c){a.g=a.i;var d=a.g,e=null;a.h!==Dh&&a.h!==Eh&&(e=oh(d,a.j,c),c=a.i,c.g=0<c.h?c.h:0,ph(c,0,15),c=a.l,c.g=0<c.h?c.h:0,ph(c,0,15),d.g=15);a.h=Dh;d.h=b;return e}function Fh(a){a.h=Gh;a.g=a.l;a.g.h=0}function Hh(a){Wa("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.s;a.h=Eh}
|
|
256
256
|
var Bh=0,Gh=1,Dh=3,Eh=4,Ih="black green blue cyan red yellow magenta black".split(" "),Jh="white green blue cyan red yellow magenta white_italics".split(" ");function Kh(){this.l=!1;this.F=this.H=0;this.G=Lh;this.i=[];this.g=this.h=this.j=0;this.C=this.s=!1;this.B="white";this.m="black";Mh(this)}function Mh(a){a.i=[];for(var b=0;16>b;b++)a.i.push(Nh())}function Nh(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function Oh(a,b){Ph(a)&&(a.i[a.h][a.g]=new lh(b,a.C,a.s,a.m,a.B),a.g++)}function Ph(a){var b=a.g<a.F&&0<=a.g;return a.h<a.H&&0<=a.h&&b}Kh.prototype.isVisible=function(){return this.l};
|
|
257
|
-
function Qh(a,b,c){var d=new hc(a.j,b,"");d.textAlign=a.G===Rh?"left":a.G===Sh?"right":mc;if(c=ih(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var Rh=0,Sh=1,Lh=2;function Th(){this.i=[];this.h=null;this.g=0}function Uh(a,b){3===b.type?(a.g=2*(b.value&63)-1,a.h=[]):a.h&&(0<a.g&&(a.h.push(b),a.g--),0===a.g&&(a.i.push(new Vh(a.h)),a.h=null,a.g=0))}function Vh(a){this.g=0;this.h=a}Vh.prototype.
|
|
257
|
+
function Qh(a,b,c){var d=new hc(a.j,b,"");d.textAlign=a.G===Rh?"left":a.G===Sh?"right":mc;if(c=ih(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var Rh=0,Sh=1,Lh=2;function Th(){this.i=[];this.h=null;this.g=0}function Uh(a,b){3===b.type?(a.g=2*(b.value&63)-1,a.h=[]):a.h&&(0<a.g&&(a.h.push(b),a.g--),0===a.g&&(a.i.push(new Vh(a.h)),a.h=null,a.g=0))}function Vh(a){this.g=0;this.h=a}Vh.prototype.ya=function(){return this.g<this.h.length};Vh.prototype.na=function(){return this.g};function Wh(a){if(!a.ya())throw new M(2,2,3E3);return a.h[a.g++]}Vh.prototype.skip=function(a){if(this.g+a>this.h.length)throw new M(2,2,3E3);this.g+=a};function Xh(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
|
|
258
258
|
function Yh(a,b,c,d){if(128<=c&&135>=c)d=c&7,a.h[d]&&(a.g=a.h[d]);else{if(136===c){c=Wh(b).value;b=null;c=r(Zh(a,c));for(var e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=Qh(e,d,a.i)),Mh(e);return b}if(137===c)for(b=Wh(b).value,b=r(Zh(a,b)),c=b.next();!c.done;c=b.next())c=a.h[c.value],c.isVisible()||(c.j=d),c.l=!0;else{if(138===c){c=Wh(b).value;b=null;c=r(Zh(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=Qh(e,d,a.i)),e.l=!1;return b}if(139===c){c=Wh(b).value;
|
|
259
259
|
b=null;c=r(Zh(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=Qh(e,d,a.i):e.j=d,e.l=!e.l;return b}if(140===c)return b=Wh(b).value,$h(a,b,d);if(143===c)return d=$h(a,255,d),ai(a),d;if(144===c)b.skip(1),d=Wh(b).value,a.g&&(a.g.s=0<(d&128),a.g.C=0<(d&64));else if(145===c)d=Wh(b).value,c=Wh(b).value,b.skip(1),a.g&&(b=bi((c&48)>>4,(c&12)>>2,c&3),a.g.B=bi((d&48)>>4,(d&12)>>2,d&3),a.g.m=b);else if(146===c)d=Wh(b).value,b=Wh(b).value,a.g&&(a=a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),
|
|
260
260
|
b.skip(1),d=Wh(b).value,b.skip(1),a.g&&(a.g.G=d&3);else if(152<=c&&159>=c){c=(c&15)-8;e=null!==a.h[c];if(!e){var f=new Kh;f.j=d;a.h[c]=f}d=Wh(b).value;Wh(b);Wh(b);f=Wh(b).value;var g=Wh(b).value;b=Wh(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.C=!1,b.s=!1,b.B="white",b.m="black");b=a.h[c];b.l=0<(d&32);b.H=(f&15)+1;b.F=(g&63)+1;a.g=a.h[c]}}}return null}function Zh(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;return c}
|
|
@@ -265,7 +265,7 @@ function hi(a,b){var c=b.type;if(16===(b.Oa&112)){var d=b.Oa>>3&1;0===c?a.m=d:a.
|
|
|
265
265
|
a=1===(a&1);if(c.h!==Eh){e=c.g;if(c.h===Dh&&b!==e.g){var g=1+b-e.h;zh(e,g,1+e.g-e.h,e.h);ph(e,0,g-1);ph(e,b+1,15-b)}e.g=b;c.g.m=a;c.g.j=f;c.g.l=d;c.g.s="black"}}else if(17===(d&247)&&32===(a&240))c.g.m=!1,c.g.j=!1,c.g.l="white",qh(c.g,rh,32),d=!1,b=Jh[(a&14)>>1],"white_italics"===b&&(b="white",d=!0),c.g.m=1===(a&1),c.g.j=d,c.g.l=b;else if(16===(d&247)&&32===(a&240)||23===(d&247)&&45===(a&255))b="black",0===(d&7)&&(b=Ih[(a&14)>>1]),c.g.s=b;else if(17===(d&247)&&48===(a&240))qh(c.g,th,a);else if(18===
|
|
266
266
|
(d&246)&&32===(a&224))qh(c.g,d&1?xh:vh,a);else if(20===(d&246)&&32===(a&240)){a=b.pts;d=null;switch(b.hb){case 32:Fh(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=Ch(c,2,a);break;case 38:d=Ch(c,3,a);break;case 39:d=Ch(c,4,a);break;case 40:qh(c.g,rh,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.j=a;break;case 42:nh(c.s);Hh(c);break;case 43:Hh(c);break;case 44:b=c.i;d=null;c.h!==Eh&&(d=oh(b,c.j,a));ph(b,0,15);break;case 45:b=c.g;c.h!==Dh?d=null:(d=oh(b,c.j,a),f=b.g-b.h+1,zh(b,f-1,f,b.h),ph(b,0,
|
|
267
267
|
f-1),ph(b,b.g,15-b.g),c.j=a);break;case 46:ph(c.l,0,15);break;case 47:b=null,c.h!==Eh&&(b=oh(c.i,c.j,a)),d=c.l,c.l=c.i,c.i=d,Fh(c),c.j=a,d=b}a=d;break a}a=null}else d=b.hb,qh(c.g,rh,b.Oa),qh(c.g,rh,d);return a}
|
|
268
|
-
function ii(a,b){var c=[];try{for(;b.
|
|
268
|
+
function ii(a,b){var c=[];try{for(;b.ya();){var d=Wh(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=Wh(b).value&63);if(0!=e){a.j.has(e)||a.j.set(e,new Xh(e));for(var g=a.j.get(e),h=b.na();b.na()-h<f;){e=b;var k=Wh(e),l=k.value,m=k.pts;if(16===l){var p=Wh(e);l=l<<16|p.value}if(0<=l&&31>=l){var n=m;if(g.g){var t=g.g;e=null;switch(l){case 8:!Ph(t)||0>=t.g&&0>=t.h||(0>=t.g?(t.g=t.F-1,t.h--):t.g--,t.i[t.h][t.g]=null);break;case 13:t.isVisible()&&(e=Qh(t,n,g.i));if(t.h+1>=t.H){n=t;for(var v=0,y=1;16>y;y++,
|
|
269
269
|
v++)n.i[v]=n.i[y];for(y=0;1>y;y++,v++)n.i[v]=Nh()}else t.h++;t.g=0;break;case 14:t.isVisible()&&(e=Qh(t,n,g.i));t.i[t.h]=Nh();t.g=0;break;case 12:t.isVisible()&&(e=Qh(t,n,g.i)),Mh(t),n=t,n.h=0,n.g=0}var w=e}else w=null}else if(128<=l&&159>=l)w=Yh(g,e,l,m);else{if(4096<=l&&4127>=l)n=l&255,8<=n&&15>=n?e.skip(1):16<=n&&23>=n?e.skip(2):24<=n&&31>=n&&e.skip(3);else if(4224<=l&&4255>=l)n=l&255,128<=n&&135>=n?e.skip(4):136<=n&&143>=n&&e.skip(5);else if(32<=l&&127>=l)e=l,g.g&&(127===e?Oh(g.g,"\u266a"):Oh(g.g,
|
|
270
270
|
String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&Oh(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(di.has(e)){var x=di.get(e);Oh(g.g,x)}else Oh(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?Oh(g.g,"_"):Oh(g.g,"[CC]"));w=null}(e=w)&&c.push(e)}}}}catch(C){if(C instanceof M&&3E3===C.code)Wa("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw C;}return c}function ji(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b};function ki(){}ki.prototype.init=function(){};ki.prototype.parse=function(){return[]};function li(a){for(var b=[],c=a,d=a=0;d<c.length;)2==a&&3==c[d]?(a=0,c=[].concat(ha(c)),c.splice(d,1),c=new Uint8Array(c)):0==c[d]?a++:a=0,d++;a=c;for(d=0;d<a.length;){for(c=0;255==a[d];)c+=255,d++;c+=a[d++];for(var e=0;255==a[d];)e+=255,d++;e+=a[d++];4==c&&b.push(a.subarray(d,d+e));d+=e}return b};function mi(a,b){var c=null,d=null,e=null,f=a.O();b&1&&(e=a.Cb());b&2&&a.skip(4);b&8&&(c=a.O());b&16&&(d=a.O());return{trackId:f,Ef:c,xg:d,qj:e}}function ni(a,b){return{uf:1==b?a.Cb():a.O()}}function oi(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));return{timescale:a.O()}}
|
|
271
271
|
function pi(a,b,c){var d=a.O(),e=[],f=null;c&1&&(f=a.O());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={Je:null,sampleSize:null,Md:null};c&256&&(h.Je=a.O());c&512&&(h.sampleSize=a.O());c&1024&&a.skip(4);c&2048&&(h.Md=0==b?a.O():a.Sf());e.push(h)}return{wj:d,Uf:e,wg:f}};function qi(){this.j=new Map;this.i=this.h=0;this.g=ri}
|
|
@@ -273,7 +273,7 @@ qi.prototype.init=function(a){function b(f){f=f.name;f in si&&(c.g=si[f])}var c=
|
|
|
273
273
|
b).box("hvc1",b).box("dvh1",b).box("dvhe",b).box("encv",Pf).box("sinf",Mf).box("frma",function(f){f=f.reader.O();f=Lf(f);f in si&&(c.g=si[f])}).parse(a,!0);if(!d.length||!e.length||d.length!=e.length)throw new M(2,2,2010);this.g==ri&&Ua("Unable to determine bitstream format for CEA parsing!");d.forEach(function(f,g){c.j.set(f,e[g])})};
|
|
274
274
|
qi.prototype.parse=function(a){var b=this;if(this.g==ri)return[];var c=[],d=this.h,e=this.i,f=0,g=[],h=null,k=9E4;(new Hf).box("moof",function(l){f=l.start;g=[];Mf(l)}).box("traf",Mf).U("trun",function(l){l=pi(l.reader,l.version,l.flags);g.push(l)}).U("tfhd",function(l){l=mi(l.reader,l.flags);d=l.Ef||b.h;e=l.xg||b.i;l=l.trackId;b.j.has(l)&&(k=b.j.get(l))}).U("tfdt",function(l){h=ni(l.reader,l.version).uf}).box("mdat",function(l){if(null===h)throw Ua("Unable to find base media decode time for CEA captions!"),
|
|
275
275
|
new M(2,2,2010);ti(b,l.reader,h,k,d,e,f-l.start-8,g,c)}).parse(a,!1);return c};
|
|
276
|
-
function ti(a,b,c,d,e,f,g,h,k){var l=0,m=f,p=h.map(function(v){return v.Uf});p=[].concat.apply([],ha(p));p.length&&(m=p[0].sampleSize||f);for(b.skip(g+h[0].wg);b.
|
|
276
|
+
function ti(a,b,c,d,e,f,g,h,k){var l=0,m=f,p=h.map(function(v){return v.Uf});p=[].concat.apply([],ha(p));p.length&&(m=p[0].sampleSize||f);for(b.skip(g+h[0].wg);b.ya();){g=b.O();var n=b.pb(),t=null;t=!1;h=1;switch(a.g){case ui:t=n&31;t=6==t;break;case vi:h=2;b.skip(1);t=n>>1&63;t=39==t||40==t;break;default:return}if(t)for(n=0,l<p.length&&(n=p[l].Md||0),n=(c+n)/d,h=r(li(b.Bb(g-h))),t=h.next();!t.done;t=h.next())k.push({uh:t.value,pts:n});else try{b.skip(g-h)}catch(v){break}m-=g+4;0==m&&(c=l<p.length?
|
|
277
277
|
c+(p[l].Je||e):c+e,l++,l<p.length?m=p[l].sampleSize||f:m=f)}}var ri=0,ui=1,vi=2,si={avc1:ui,avc3:ui,hev1:vi,hvc1:vi,dvh1:vi,dvhe:vi};function wi(a){this.h=new ki;a.includes("video/mp4")&&(this.h=new qi);this.g=new ei}wi.prototype.init=function(a){this.h.init(a)};
|
|
278
278
|
function xi(a,b){b=a.h.parse(b);b=r(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Fc(d.uh);if(0<e.length&&(c=a.g,d=d.pts,e=new Ef(e,0),181===e.pb()&&49===e.Ge()&&1195456820===e.O()&&3===e.pb())){var f=e.pb();if(0!==(f&64)){f&=31;e.skip(1);for(var g=0;g<f;g++){var h=e.pb(),k=(h&4)>>2,l=e.pb(),m=e.pb();k&&(h&=3,0===h||1===h?c.h.push({pts:d,type:h,Oa:l,hb:m,order:c.h.length}):(c.g.push({pts:d,type:h,value:l,order:c.g.length}),c.g.push({pts:d,type:2,value:m,order:c.g.length})))}}}}return gi(a.g)}
|
|
279
279
|
;function yi(a,b,c,d,e){this.Pa=a;this.Ta=b;this.Ca=c;this.ze=void 0===d?null:d;this.timescale=e}yi.prototype.Kc=function(){return this.Ta};yi.prototype.Gc=function(){return this.Ca};function zi(a,b){return a&&b?a.Kc()==b.Kc()&&a.Gc()==b.Gc()&&gc(a.Pa(),b.Pa()):a==b}I("shaka.media.InitSegmentReference",yi);yi.prototype.getEndByte=yi.prototype.Gc;yi.prototype.getStartByte=yi.prototype.Kc;
|
|
@@ -298,7 +298,7 @@ Ni.prototype.parse=function(a){if(564>a.length)return this;for(var b=Math.max(0,
|
|
|
298
298
|
a.subarray(h,e+188);null==this.m&&(h=Pi(f))&&null!=h.pts&&(this.m=h.pts/9E4);this.F.push(f);break;case this.g:f=a.subarray(h,e+188);null==this.h&&(h=Pi(f))&&null!=h.pts&&(this.h=h.pts/9E4);this.C.push(f);break;case this.j:this.i.push(a.subarray(h,e+188));break;default:d=!0}}return this};
|
|
299
299
|
function Pi(a){if(1!==(a[0]<<16|a[1]<<8|a[2]))return null;var b={data:new Uint8Array(0),vj:6+(a[4]<<8|a[5]),pts:null,dts:null},c=a[7];c&192&&(b.pts=536870912*(a[9]&14)+4194304*(a[10]&255)+16384*(a[11]&254)+128*(a[12]&255)+(a[13]&254)/2,b.dts=b.pts,c&64&&(b.dts=536870912*(a[14]&14)+4194304*(a[15]&255)+16384*(a[16]&254)+128*(a[17]&255)+(a[18]&254)/2));b.data=a.subarray(9+a[8]);return b}
|
|
300
300
|
function Qi(a){for(var b=[],c=new Uint8Array(0),d=a.i.length-1;0<=d;d--){c=ld(a.i[d],c);var e=Pi(c);e&&(b.unshift({cueTime:e.pts?e.pts/9E4:null,data:e.data,frames:Mi(e.data),dts:e.dts,pts:e.pts}),c=new Uint8Array(0))}return b}Ni.prototype.getStartTime=function(){return{audio:this.h,video:this.m}};function Oi(a){for(var b=Math.min(1E3,a.length-564),c=0;c<b;){if(71===a[c]&&71===a[c+188]&&71===a[c+376])return c;c++}return-1}I("shaka.util.TsParser",Ni);function Ri(a,b,c){this.g=null;this.i=-1;this.j=a;this.h=b;this.l=c;"undefined"===typeof libDPIModule&&Ua("Could not Find LCEVC Library dependencies on this page");"undefined"===typeof LcevcDil?Ua("Could not Find LCEVC Library on this page"):LcevcDil.SupportObject.SupportStatus||Ua(LcevcDil.SupportObject.SupportError);"undefined"!==typeof LcevcDil&&"undefined"!==typeof libDPIModule&&this.h instanceof HTMLCanvasElement&&LcevcDil.SupportObject.SupportStatus&&!this.g&&LcevcDil.SupportObject.webGLSupport(this.h)&&
|
|
301
|
-
(this.h.classList.remove("shaka-hidden"),this.g=new LcevcDil.LcevcDil(this.j,this.h,this.l))}Ri.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function Si(a,b){var c=Ti;switch(b.mimeType){case "video/webm":c=Ui;break;case "video/mp4":c=Vi}a.g&&(a.i=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(c))}I("shaka.lcevc.Dil",Ri);Ri.prototype.release=Ri.prototype.release;var Ti=0,Ui=1,Vi=2;function Wi(a,b,c,d){var e=this;this.l=a;this.I=null;this.m=b;this.h={};this.M={};this.P={};this.g=null;this.J=!1;this.V=c||function(){};this.H=d||null;this.i={};this.C=new wf;this.s={};this.B=null;this.K=new Jc;this.N="";this.j=Xi(this,this.K);this.G=new uf(function(){return Yi(e)});this.F=!1;this.X=new Jc}function Xi(a,b){var c=new MediaSource;a.C.
|
|
301
|
+
(this.h.classList.remove("shaka-hidden"),this.g=new LcevcDil.LcevcDil(this.j,this.h,this.l))}Ri.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function Si(a,b){var c=Ti;switch(b.mimeType){case "video/webm":c=Ui;break;case "video/mp4":c=Vi}a.g&&(a.i=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(c))}I("shaka.lcevc.Dil",Ri);Ri.prototype.release=Ri.prototype.release;var Ti=0,Ui=1,Vi=2;function Wi(a,b,c,d){var e=this;this.l=a;this.I=null;this.m=b;this.h={};this.M={};this.P={};this.g=null;this.J=!1;this.V=c||function(){};this.H=d||null;this.i={};this.C=new wf;this.s={};this.B=null;this.K=new Jc;this.N="";this.j=Xi(this,this.K);this.G=new uf(function(){return Yi(e)});this.F=!1;this.X=new Jc}function Xi(a,b){var c=new MediaSource;a.C.ra(c,"sourceopen",function(){URL.revokeObjectURL(a.N);b.resolve()});a.N=Zi(c);a.l.src=a.N;return c}q=Wi.prototype;q.destroy=function(){return this.G.destroy()};
|
|
302
302
|
function Yi(a){var b,c,d,e,f,g,h,k;return F(function(l){if(1==l.g){b=[];for(c in a.i)for(d=a.i[c],e=d[0],a.i[c]=d.slice(0,1),e&&b.push(e.p.catch(zb)),f=r(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new M(2,7,7003,void 0));a.g&&b.push(a.g.destroy());a.m&&b.push(a.m.destroy());for(k in a.s)b.push(a.s[k].destroy());return u(l,Promise.all(b),2)}a.C&&(a.C.release(),a.C=null);a.l&&(a.l.removeAttribute("src"),a.l.load(),a.l=null);a.I=null;a.j=null;a.g=null;a.m=null;a.h={};a.s={};a.B=null;
|
|
303
303
|
a.i={};a.H=null;B(l)})}
|
|
304
304
|
q.init=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m,p;return F(function(n){if(1==n.g)return e=Hb,u(n,d.K,2);d.F=c;f={};g=r(a.keys());for(h=g.next();!h.done;f={Ea:f.Ea},h=g.next())if(f.Ea=h.value,k=a.get(f.Ea),l=wd(k.mimeType,k.codecs),f.Ea==e.ea)$i(d,l,c,k.external);else{!b&&bc(l)||!qd(l,f.Ea)||(d.s[f.Ea]=new pd(l),l=td(f.Ea,l));m=l+d.I.sourceBufferExtraFeatures;vf(d.G);p=void 0;try{p=d.j.addSourceBuffer(m)}catch(t){throw new M(2,3,3015,t,"The mediaSource_ status was"+d.j.readyState+
|
|
@@ -323,9 +323,9 @@ P.prototype.getSeekRangeEnd=P.prototype.jb;P.prototype.getSeekRangeStart=P.proto
|
|
|
323
323
|
P.prototype.lockStartTime=P.prototype.ye;P.prototype.notifySegments=P.prototype.mc;P.prototype.getDelay=P.prototype.Ig;P.prototype.setDelay=P.prototype.Xf;P.prototype.setSegmentAvailabilityDuration=P.prototype.Ue;P.prototype.setStatic=P.prototype.bd;P.prototype.setClockOffset=P.prototype.Wf;P.prototype.getPresentationStartTime=P.prototype.Vg;P.prototype.setDuration=P.prototype.Sa;P.prototype.setPresentationStartTime=P.prototype.$f;P.prototype.getMaxSegmentDuration=P.prototype.Rg;
|
|
324
324
|
P.prototype.getDuration=P.prototype.getDuration;function xj(a,b,c){this.l=c;this.j=a;this.B=yj(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.s=0;this.C=b;this.i=function(){}}xj.prototype.release=function(){this.l=this.j=null;this.i=function(){}};function zj(a,b){a.i=b}function Aj(a){this.g=a}function yj(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(Hi(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 Bj(a,b,c,d,e){var f=this;this.B=e;this.g=a;this.C=b;this.H=c;this.l=new wf;this.j=!1;this.G=a.readyState;this.F=this.i=0;this.h=d;this.s=!1;this.l.o(a,"waiting",function(){return Cj(f)});this.m=(new N(function(){Cj(f)})).ka(.25)}Bj.prototype.release=function(){this.l&&(this.l.release(),this.l=null);null!=this.m&&(this.m.stop(),this.m=null);this.h&&(this.h.release(),this.h=null);this.g=this.C=this.B=null};Bj.prototype.Fe=function(){this.s=!0;Cj(this)};
|
|
325
325
|
function Cj(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.j)return}else a.j=!1;if(!a.g.paused||a.g.currentTime==a.i&&(a.g.autoplay||a.g.currentTime!=a.i)){a.g.readyState!=a.G&&(a.G=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.j,d=yj(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.B!=d)b.m=f,b.g=e,b.B=d,b.h=!1;e=f-b.m;if(d=e>=b.C&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.s++,b.l(new L("stalldetected"));b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=Ii(c,b,a.H.gapDetectionThreshold),null==
|
|
326
|
-
d||0==d&&!a.s||(e=c.start(d),e>=a.C.jb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.i&&(a.i=e),a.F++,a.B(new L("gapjumped")))))}}};function Dj(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Ej.value().get(b),c.
|
|
327
|
-
function Hj(a,b){.001>Math.abs(a.g.currentTime-b)?Lj(a):(a.h.
|
|
328
|
-
function Kj(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.ka(.1)};function Mj(a){this.g=a;this.j=!1;this.h=null;this.i=new wf}q=Mj.prototype;q.je=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.
|
|
326
|
+
d||0==d&&!a.s||(e=c.start(d),e>=a.C.jb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.i&&(a.i=e),a.F++,a.B(new L("gapjumped")))))}}};function Dj(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Ej.value().get(b),c.ra(a,b,d))}var Ej=new Kc(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function Fj(a,b,c,d){var e=this;this.g=a;this.l=b;this.s=c;this.j=d;this.m=!1;this.h=new wf;this.i=new Gj(a);Dj(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Hj(e,e.j)})}Fj.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 Ij(a){return a.m?a.g.currentTime:a.j}function Jj(a,b){0<a.g.readyState?Kj(a.i,b):Dj(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){Hj(a,a.j)})}
|
|
327
|
+
function Hj(a,b){.001>Math.abs(a.g.currentTime-b)?Lj(a):(a.h.ra(a.g,"seeking",function(){Lj(a)}),Kj(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function Lj(a){a.m=!0;a.h.o(a.g,"seeking",function(){return a.l()});a.s(a.g.currentTime)}function Gj(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new N(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}Gj.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};
|
|
328
|
+
function Kj(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.ka(.1)};function Mj(a){this.g=a;this.j=!1;this.h=null;this.i=new wf}q=Mj.prototype;q.je=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.ra(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;Dj(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};q.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};q.ke=function(a){this.h=this.j?this.h:a};q.ld=function(){return(this.j?this.g.currentTime:this.h)||0};q.qf=function(){return 0};
|
|
329
329
|
q.pf=function(){return 0};q.Rf=function(){};
|
|
330
330
|
function Nj(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.F=b.minBufferTime||0;this.l=c;this.C=e;this.B=null;this.s=Oj(a,c,f);this.j=new Bj(a,b.presentationTimeline,c,this.s,f);this.h=new Fj(a,function(){a:{var h=g.j;h.j=!0;h.s=!1;var k=Ij(g.h);h=Pj(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.B||g.B<k-1)){g.B=k;Jj(g.h,h);h=void 0;break a}g.C();h=void 0}return h},function(h){var k=g.j;k.g.seeking&&!k.j&&(k.j=!0,k.i=h)},Qj(this,d));this.m=new N(function(){if(0!=g.i.readyState&&
|
|
331
331
|
!g.i.paused){var h=Ij(g.h),k=g.g.ec(),l=g.g.jb();3>l-k&&(k=l-3);h<k&&(h=Pj(g,h),g.i.currentTime=h)}})}q=Nj.prototype;q.je=function(){this.m.ka(.25)};q.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.C=function(){}};q.ke=function(a){Jj(this.h,a)};q.ld=function(){var a=Ij(this.h);return 0<this.i.readyState&&!this.i.paused?Rj(this,a):a};q.qf=function(){return this.s?this.s.s:0};
|
|
@@ -422,49 +422,49 @@ minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth
|
|
|
422
422
|
function Rl(a,b,c){var d={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:""}};return Il(a,b,c||Pl(),d,"")}
|
|
423
423
|
function Ql(a,b){var c=a.filter(function(g){return"variant"==g.type}),d=[],e=Sb(b,c.map(function(g){return g.language}));e&&(d=c.filter(function(g){return Kb(g.language)==e}));0==d.length&&(d=c.filter(function(g){return g.primary}));0==d.length&&(c.map(function(g){return g.language}),d=c);var f=d.filter(function(g){return g.height&&480>=g.height});f.length&&(f.sort(function(g,h){return h.height-g.height}),d=f.filter(function(g){return g.height==f[0].height}));b=[];d.length&&(c=Math.floor(d.length/
|
|
424
424
|
2),d.sort(function(g,h){return g.bandwidth-h.bandwidth}),b.push(d[c]));a=r(a);for(d=a.next();!d.done;d=a.next())d=d.value,d.type!=Gb&&"image"!=d.type||b.push(d);return b}I("shaka.util.PlayerConfiguration",Ol);Ol.mergeConfigObjects=Rl;Ol.createDefault=Pl;function Sl(){this.g=null;this.h=[]}function Tl(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 Ul(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=r(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}
|
|
425
|
-
function Vl(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 Wl(){this.i=this.h=null;this.g=[]}function Xl(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 Yl(){this.C=this.F=this.I=this.G=this.B=this.j=this.H=this.m=this.i=this.N=this.P=this.J=this.K=this.M=this.l=this.s=NaN;this.g=new Sl;this.h=new Wl};function S(a,b){db.call(this);var c=this;this.l=Zl;this.Cd=this.g=null;this.$=!1;this.Jd=new wf;this.gb=new wf;this.C=new wf;this.fb=this.i=this.Ld=this.K=this.j=this.ba=this.M=this.nf=this.V=this.
|
|
425
|
+
function Vl(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 Wl(){this.i=this.h=null;this.g=[]}function Xl(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 Yl(){this.C=this.F=this.I=this.G=this.B=this.j=this.H=this.m=this.i=this.N=this.P=this.J=this.K=this.M=this.l=this.s=NaN;this.g=new Sl;this.h=new Wl};function S(a,b){db.call(this);var c=this;this.l=Zl;this.Cd=this.g=null;this.$=!1;this.Jd=new wf;this.gb=new wf;this.C=new wf;this.fb=this.i=this.Ld=this.K=this.j=this.ba=this.M=this.nf=this.V=this.ua=this.N=this.Ed=this.J=this.Za=this.F=this.I=this.m=this.H=null;this.Oc=!1;this.cf=this.B=null;this.kf=1E9;this.h=$l(this);this.Rc={width:Infinity,height:Infinity};this.s=null;this.La=new Ne(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount);this.Xa=this.h.preferredTextLanguage;
|
|
426
426
|
this.Lc=this.h.preferredTextRole;this.Fc=this.h.preferForcedSubs;this.vb=[];this.Sc=null;b&&b(this);this.H=am(this);this.H.Qe(this.h.streaming.forceHTTPS);this.G=null;bm&&(this.G=bm());this.Jd.o(window,"online",function(){c.Ie()});this.P={name:"detach"};this.X={name:"attach"};this.aa={name:"unload"};this.lf={name:"manifest-parser"};this.jf={name:"manifest"};this.Ya={name:"media-source"};this.gf={name:"drm-engine"};this.Z={name:"load"};this.ie={name:"src-equals-drm-engine"};this.$a={name:"src-equals"};
|
|
427
427
|
var d=new Map;d.set(this.X,function(e,f){return bf(cm(c,e,f))});d.set(this.P,function(e){e.mediaElement&&(c.gb.Sb(),e.mediaElement=null);c.G&&c.G.release();c.g=null;e=Promise.resolve();return bf(e)});d.set(this.aa,function(e){return bf(dm(c,e))});d.set(this.Ya,function(e){e=em(c,e);return bf(e)});d.set(this.lf,function(e,f){e=fm(c,e,f);return bf(e)});d.set(this.jf,function(e){return gm(c,e)});d.set(this.gf,function(e){e=hm(c,e);return bf(e)});d.set(this.Z,function(e,f){return bf(im(c,e,f))});d.set(this.ie,
|
|
428
|
-
function(e,f){e=jm(c,e,f);return bf(e)});d.set(this.$a,function(e,f){return km(c,e,f)});this.
|
|
428
|
+
function(e,f){e=jm(c,e,f);return bf(e)});d.set(this.$a,function(e,f){return km(c,e,f)});this.va=new Qk(this.P,{Tg:function(e,f,g,h){var k=null;e==c.P&&(k=g==c.P?c.P:c.X);e==c.X&&(k=g==c.P||f.mediaElement!=h.mediaElement?c.P:g==c.X?c.X:g==c.Ya||g==c.Z?c.Ya:g==c.$a?c.ie:null);e==c.Ya&&(k=g==c.Z&&f.mediaElement==h.mediaElement?c.lf:c.aa);e==c.lf&&(k=lm(c.Z,c.jf,c.aa,g,f,h));e==c.jf&&(k=lm(c.Z,c.gf,c.aa,g,f,h));e==c.gf&&(k=lm(c.Z,c.Z,c.aa,g,f,h));e==c.ie&&(k=g==c.$a&&f.mediaElement==h.mediaElement?c.$a:
|
|
429
429
|
c.aa);if(e==c.Z||e==c.$a)k=c.aa;e==c.aa&&(k=h.mediaElement&&f.mediaElement==h.mediaElement?c.X:c.P);return k},yg:function(e,f,g){c.dispatchEvent(mm("onstatechange",(new Map).set("state",e.name)));return d.get(e)(f,g)},handleError:function(e){return F(function(f){return 1==f.g?u(f,dm(c,e),2):f.return(e.mediaElement?c.X:c.P)})},ph:function(e){c.dispatchEvent(mm("onstateidle",(new Map).set("state",e.name)))}});this.mf=new N(function(){Yd(c.i.variants,c.h.restrictions,c.Rc)&&nm(c)});a&&this.Cc(a,!0)}
|
|
430
430
|
pa(S,db);function om(a){null!=a.M&&(a.M.release(),a.M=null)}function pm(a,b){if(b.lcevc.enabled){var c=a.Qa();c&&c[0]&&c[0].videoMimeType==qm.ts&&(Pc()||navigator.userAgent.match(/Edge\//))&&(b.streaming.forceTransmux||Ua("LCEVC Warning: For MPEG-2 TS decoding the config.streaming.forceTransmux must be enabled."));om(a);null==a.M&&(a.M=new Ri(a.g,a.nf,b.lcevc),a.I&&(a.I.H=a.M))}else om(a)}function mm(a,b){return new L(a,b)}q=S.prototype;
|
|
431
|
-
q.destroy=function(){var a=this,b;return F(function(c){switch(c.g){case 1:if(a.l==rm)return c.return();om(a);a.l=rm;b=Vk(a.
|
|
431
|
+
q.destroy=function(){var a=this,b;return F(function(c){switch(c.g){case 1:if(a.l==rm)return c.return();om(a);a.l=rm;b=Vk(a.va,function(){return{node:a.P,payload:Rk(),Jb:!1}});return u(c,new Promise(function(d){b.nc=function(){};b.Fd=function(){d()};b.Rb=function(){d()};b.onError=function(){d()};b.Hd=function(){d()}}),2);case 2:return u(c,a.va.destroy(),3);case 3:a.Jd&&(a.Jd.release(),a.Jd=null);a.gb&&(a.gb.release(),a.gb=null);a.C&&(a.C.release(),a.C=null);a.cf=null;a.h=null;a.s=null;a.Cd=null;a.V=
|
|
432
432
|
null;if(!a.H){c.D(4);break}return u(c,a.H.destroy(),5);case 5:a.H=null;case 4:a.B&&(a.B.release(),a.B=null),db.prototype.release.call(a),B(c)}})};
|
|
433
433
|
function sm(){window.Promise||Ua("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||Rc("Trident/"))return!1;var a=Wc();return a&&13>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:Mc()?!0:Nc("application/x-mpegurl")}
|
|
434
|
-
q.Cc=function(a,b){b=void 0===b?!0:b;if(this.l==rm)return Promise.reject(tm());var c=Rk();c.mediaElement=a;Mc()||(b=!1);var d=b?this.Ya:this.X;a=Vk(this.
|
|
435
|
-
q.df=function(a){var b=this;a=void 0===a?!0:a;if(this.l==rm)return Promise.reject(tm());this.Oc=!1;Mc()||(a=!1);om(this);var c=Rk(),d=Vk(this.
|
|
436
|
-
q.load=function(a,b,c){var d=this;this.Sc=null;this.Oc=!1;if(this.l==rm)return Promise.reject(tm());this.dispatchEvent(mm("loading"));var e=Rk();e.uri=a;e.Od=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=vm(this,e)?this.$a:this.Z,g=Vk(this.
|
|
434
|
+
q.Cc=function(a,b){b=void 0===b?!0:b;if(this.l==rm)return Promise.reject(tm());var c=Rk();c.mediaElement=a;Mc()||(b=!1);var d=b?this.Ya:this.X;a=Vk(this.va,function(){return{node:d,payload:c,Jb:!1}});a.nc=function(){};return um(a)};q.tf=function(a){this.nf=a};q.detach=function(){var a=this;if(this.l==rm)return Promise.reject(tm());var b=Vk(this.va,function(){return{node:a.P,payload:Rk(),Jb:!1}});b.nc=function(){};return um(b)};
|
|
435
|
+
q.df=function(a){var b=this;a=void 0===a?!0:a;if(this.l==rm)return Promise.reject(tm());this.Oc=!1;Mc()||(a=!1);om(this);var c=Rk(),d=Vk(this.va,function(e){var f=e.mediaElement&&a?b.Ya:e.mediaElement?b.X:b.P;c.mediaElement=e.mediaElement;return{node:f,payload:c,Jb:!1}});d.nc=function(){};return um(d)};q.Rh=function(a){this.Sc=a};
|
|
436
|
+
q.load=function(a,b,c){var d=this;this.Sc=null;this.Oc=!1;if(this.l==rm)return Promise.reject(tm());this.dispatchEvent(mm("loading"));var e=Rk();e.uri=a;e.Od=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=vm(this,e)?this.$a:this.Z,g=Vk(this.va,function(h){if(null==h.mediaElement)return null;e.mediaElement=h.mediaElement;return{node:f,payload:e,Jb:!0}});this.s=new Yl;this.V=wm(this);g.nc=function(){};return new Promise(function(h,k){g.Hd=function(){return k(new M(2,7,7002))};g.Fd=
|
|
437
437
|
function(){h();d.dispatchEvent(mm("loaded"))};g.Rb=function(){return k(tm())};g.onError=function(l){return k(l)}})};function vm(a,b){if(!Mc())return!0;var c=b.mimeType,d=b.uri||"";c||(c=bh(d),c=qm[c]);if(c){if(""==(b.mediaElement||Oc()).canPlayType(c))return!1;if(!Mc()||!(c in ah||bh(d)in ch)||("application/x-mpegurl"===c||"application/vnd.apple.mpegurl"===c)&&a.h.streaming.preferNativeHls)return!0;if(Uc())return a.h.streaming.useNativeHlsOnSafari}return!1}
|
|
438
438
|
function cm(a,b,c){null==b.mediaElement&&(b.mediaElement=c.mediaElement,a.gb.o(b.mediaElement,"error",function(){var d=xm(a);d&&ym(a,d)}));a.g=b.mediaElement;return Promise.resolve()}
|
|
439
|
-
function dm(a,b){var c,d,e,f,g,h,k,l,m;return F(function(p){switch(p.g){case 1:return a.l!=rm&&(a.l=Zl),c=a.vb.map(function(n){return n()}),a.vb=[],u(p,Promise.all(c),2);case 2:a.dispatchEvent(mm("unloading"));b.mimeType=null;b.startTime=null;b.uri=null;a.
|
|
439
|
+
function dm(a,b){var c,d,e,f,g,h,k,l,m;return F(function(p){switch(p.g){case 1:return a.l!=rm&&(a.l=Zl),c=a.vb.map(function(n){return n()}),a.vb=[],u(p,Promise.all(c),2);case 2:a.dispatchEvent(mm("unloading"));b.mimeType=null;b.startTime=null;b.uri=null;a.ua&&(a.ua.release(),a.ua=null);b.mediaElement&&a.C.Sb();a.mf.stop();a.Za&&(a.Za.release(),a.Za=null);a.Ed&&(a.Ed.stop(),a.Ed=null);if(!a.K){p.D(3);break}return u(p,a.K.stop(),4);case 4:a.K=null,a.Ld=null;case 3:if(!a.B){p.D(5);break}return u(p,a.B.stop(),
|
|
440
440
|
5);case 5:if(!a.j){p.D(7);break}return u(p,a.j.destroy(),8);case 8:a.j=null;case 7:a.J&&(a.J.release(),a.J=null);a.F&&(a.F.release(),a.F=null);if(!a.I){p.D(9);break}return u(p,a.I.destroy(),10);case 10:a.I=null;case 9:if(a.G)a.G.onAssetUnload();if(!b.mediaElement||!b.mediaElement.src){p.D(11);break}return u(p,new Promise(function(n){return(new N(n)).R(.1)}),12);case 12:for(b.mediaElement.removeAttribute("src"),b.mediaElement.load();b.mediaElement.lastChild;)b.mediaElement.removeChild(b.mediaElement.firstChild);
|
|
441
441
|
case 11:if(!a.m){p.D(13);break}return u(p,a.m.destroy(),14);case 14:a.m=null;case 13:a.fb=null;a.N=null;if(a.i){d=r(a.i.variants);for(e=d.next();!e.done;e=d.next())for(f=e.value,g=r([f.audio,f.video]),h=g.next();!h.done;h=g.next())(k=h.value)&&k.segmentIndex&&k.segmentIndex.release();l=r(a.i.textStreams);for(h=l.next();!h.done;h=l.next())m=h.value,m.segmentIndex&&m.segmentIndex.release()}a.i=null;a.s=new Yl;a.hf=null;zm(a);B(p)}})}
|
|
442
442
|
function em(a,b){var c,d,e,f,g;return F(function(h){if(1==h.g)return c=a.h.textDisplayFactory,d=c(),a.hf=c,e=Am(b.mediaElement,d,function(k,l,m){Bm(a,k,l,m)},a.M),e.configure(a.h.mediaSource),f=a.h.manifest,g=f.segmentRelativeVttTiming,e.J=g,u(h,e.K,2);a.I=e;B(h)})}
|
|
443
443
|
function fm(a,b,c){var d,e,f,g;return F(function(h){if(1==h.g)return b.mimeType=c.mimeType,b.uri=c.uri,d=b.uri,e=a.H,a.fb=d,f=a,u(h,$g(d,e,a.h.manifest.retryParameters,b.mimeType),2);f.Ld=h.h;a.K=a.Ld();g=ef(a.h.manifest);c.mediaElement&&"AUDIO"===c.mediaElement.nodeName&&(g.disableVideo=!0);a.K.configure(g);B(h)})}
|
|
444
|
-
function gm(a,b){var c=b.uri;b=a.H;a.
|
|
444
|
+
function gm(a,b){var c=b.uri;b=a.H;a.ua=new gk(function(){return a.Ja()});a.ua.addEventListener("regionadd",function(f){f=f.region;Cm(a,"timelineregionadded",f);if(a.G)a.G.onDashTimedMetadata(f)});a.ba=null;a.h.streaming.observeQualityChanges&&(a.ba=new ck(function(){return a.ib()}),a.ba.addEventListener("qualitychange",function(f){var g=f.quality;f=f.position;g=(new Map).set("mediaQuality",{bandwidth:g.bandwidth,audioSamplingRate:g.audioSamplingRate,codecs:g.codecs,contentType:g.contentType,frameRate:g.frameRate,
|
|
445
445
|
height:g.height,mimeType:g.mimeType,channelsCount:g.channelsCount,pixelAspectRatio:g.pixelAspectRatio,width:g.width}).set("position",f);a.dispatchEvent(mm("mediaqualitychanged",g))}));var d={networkingEngine:b,modifyManifestRequest:function(f,g){var h=a.V;try{h.g.enabled&&(h.s=g.format,yl(h,f,{ot:Bl,su:!h.i}))}catch(k){Wa("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",k)}},modifySegmentRequest:function(f,g){ol(a.V,f,g)},filter:function(f){return Dm(a,f)},makeTextStreamsForClosedCaptions:function(f){return Em(a,
|
|
446
|
-
f)},onTimelineRegionAdded:function(f){var g=a.
|
|
446
|
+
f)},onTimelineRegionAdded:function(f){var g=a.ua;a:{var h=r(g.g);for(var k=h.next();!k.done;k=h.next())if(k=k.value,k.schemeIdUri==f.schemeIdUri&&k.id==f.id&&k.startTime==f.startTime&&k.endTime==f.endTime){h=k;break a}h=null}null==h&&(g.g.add(f),f=new L("regionadd",new Map([["region",f]])),g.dispatchEvent(f))},onEvent:function(f){return a.dispatchEvent(f)},onError:function(f){return ym(a,f)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},
|
|
447
447
|
enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",!0)},updateDuration:function(){a.j&&a.j.updateDuration()},newDrmInfo:function(f){var g=a.m?a.m.g:null;g&&a.m.C&&Fm(a,g.keySystem,f)}},e=Date.now()/1E3;return new Ye(function(){var f,g,h,k;return F(function(l){if(1==l.g)return f=a,u(l,a.K.start(c,d),2);f.i=l.h;g=mm("manifestparsed");a.dispatchEvent(g);if(0==a.i.variants.length)throw new M(2,4,4036);Gm(a.i);h=Date.now()/1E3;k=h-e;a.s.H=k;B(l)})}(),function(){return a.K.stop()})}
|
|
448
448
|
function hm(a,b){var c,d;return F(function(e){return 1==e.g?(c=Date.now()/1E3,d=!0,a.m=Hm(a,{Pb:a.H,onError:function(f){ym(a,f)},Gd:function(f){Im(a,f)},onExpirationUpdated:function(f,g){Jm(a,f,g)},onEvent:function(f){a.dispatchEvent(f);"drmsessionupdate"==f.type&&d&&(d=!1,a.s.j=Date.now()/1E3-c,a.M&&(f=a.M,f.g&&f.h.classList.add("shaka-hidden")))}}),a.m.configure(a.h.drm),u(e,ug(a.m,a.i.variants,a.i.offlineSessionIds),2)):3!=e.g?u(e,a.m.Cc(b.mediaElement),3):u(e,Dm(a,a.i),0)})}
|
|
449
449
|
function im(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,C,z;return F(function(A){switch(A.g){case 1:b.startTime=c.startTime;null!=a.Sc&&(b.startTime=a.Sc,a.Sc=null);d=b.mediaElement;e=b.uri;a.fb=e;a.J=new Yj({xd:function(){return d.playbackRate},ud:function(){return d.defaultPlaybackRate},Se:function(E){d.playbackRate=E},Qf:function(E){d.currentTime+=E}});f=function(){return Km(a)};g=function(){return Lm(a)};a.C.o(d,"playing",f);a.C.o(d,"pause",f);a.C.o(d,"ended",f);a.C.o(d,"ratechange",g);pm(a,a.h);
|
|
450
450
|
h=a.h.abrFactory;a.B&&a.cf==h||(a.cf=h,a.B=h(),"function"!=typeof a.B.setMediaElement&&(Ee("AbrManager","Please use an AbrManager with setMediaElement function."),a.B.setMediaElement=function(){}),a.B.configure(a.h.abr));a.La=new Ne(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount);a.Xa=a.h.preferredTextLanguage;a.Lc=a.h.preferredTextRole;a.Fc=a.h.preferForcedSubs;Mm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.B.init(function(E,G,H){a.j&&E!=a.j.l&&
|
|
451
451
|
Nm(a,E,!0,void 0===G?!1:G,void 0===H?0:H)});a.B.setMediaElement(d);Kd(a.i,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredAudioChannelCount,a.h.preferredDecodingAttributes);a.j=Om(a);a.j.configure(a.h.streaming);a.l=Pm;d.textTracks&&a.C.o(d.textTracks,"addtrack",function(E){if(E.track)switch(E=E.track,E.kind){case "chapters":Qm(a,E)}});a.dispatchEvent(mm("streaming"));k=null;(l=a.j.l)||(k=nm(a));m=[];p=l||k;n=r([p.video,p.audio]);for(t=n.next();!t.done;t=n.next())(v=t.value)&&!v.segmentIndex&&
|
|
452
452
|
m.push(v.createSegmentIndex());if(!(0<m.length)){A.D(2);break}return u(A,Promise.all(m),2);case 2:Mm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.F=Rm(a,b.startTime);a.Za=Sm(a,b.Od);y=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);Tm(a,y);if(l){A.D(4);break}Nm(a,k,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){A.D(4);break}w=a.F.ld();return u(A,Um(k,w),6);case 6:x=A.h,a.F.ke(x);case 4:return a.F.je(),C=a.zb().find(function(E){return E.active}),C||((z=we(a.i.textStreams,
|
|
453
|
-
a.Xa,a.Lc,a.Fc)[0]||null)&&Xl(a.s.h,z,!0),k&&(z?(k.audio&&Vm(a,k.audio,z)&&(a.$=!0),a.$&&a.I.m.setTextVisibility(!0),Wm(a)):a.$=!1),z&&(a.h.streaming.alwaysStreamText||a.Nb())&&zk(a.j,z)),u(A,a.j.start(),7);case 7:a.h.abr.enabled&&(a.B.enable(),Xm(a)),ae(a.j?a.j.l:null,a.i),Ym(a.i),Zm(a),$m(a),a.i.variants.some(function(E){return E.primary}),a.Oc=!0,a.C.
|
|
453
|
+
a.Xa,a.Lc,a.Fc)[0]||null)&&Xl(a.s.h,z,!0),k&&(z?(k.audio&&Vm(a,k.audio,z)&&(a.$=!0),a.$&&a.I.m.setTextVisibility(!0),Wm(a)):a.$=!1),z&&(a.h.streaming.alwaysStreamText||a.Nb())&&zk(a.j,z)),u(A,a.j.start(),7);case 7:a.h.abr.enabled&&(a.B.enable(),Xm(a)),ae(a.j?a.j.l:null,a.i),Ym(a.i),Zm(a),$m(a),a.i.variants.some(function(E){return E.primary}),a.Oc=!0,a.C.ra(d,"loadedmetadata",function(){a.s.m=Date.now()/1E3-c.Od}),B(A)}})}
|
|
454
454
|
function jm(a,b,c){var d,e,f,g,h,k,l;return F(function(m){return 1==m.g?(d=Hb,e=Date.now()/1E3,f=!0,a.m=Hm(a,{Pb:a.H,onError:function(p){ym(a,p)},Gd:function(p){Im(a,p)},onExpirationUpdated:function(p,n){Jm(a,p,n)},onEvent:function(p){a.dispatchEvent(p);"drmsessionupdate"==p.type&&f&&(f=!1,a.s.j=Date.now()/1E3-e)}}),a.m.configure(a.h.drm),g=c.uri||"",h=bh(g),k=qm[h],"application/x-mpegurl"==k&&Uc()&&(k="application/vnd.apple.mpegurl"),k||(k="video/mp4"),l={id:0,language:"und",disabledUntilTime:0,
|
|
455
455
|
primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:c.mimeType?c.mimeType.split(";")[0]:k,codecs:c.mimeType?Ad(c.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.Ma,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!1},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,
|
|
456
456
|
decodingInfos:[]},a.m.X=!0,u(m,ug(a.m,[l],[]),2)):u(m,a.m.Cc(b.mediaElement),0)})}
|
|
457
457
|
function km(a,b,c){function d(){return Km(a)}b.uri=c.uri;b.startTime=c.startTime;a.fb=b.uri;var e=b.mediaElement;a.F=new Mj(e);var f=!1;a.vb.push(function(){f=!0});null!=b.startTime&&a.F.ke(b.startTime);a.J=new Yj({xd:function(){return e.playbackRate},ud:function(){return e.defaultPlaybackRate},Se:function(k){e.playbackRate=k},Qf:function(k){e.currentTime+=k}});Tm(a,a.h.streaming.rebufferingGoal);a.C.o(e,"playing",d);a.C.o(e,"pause",d);a.C.o(e,"ended",d);a.C.o(e,"ratechange",function(){return Lm(a)});
|
|
458
|
-
"none"!=e.preload&&a.C.
|
|
459
|
-
a.C.o(e.textTracks,"change",function(){return Zm(a)}));var g=bh(b.uri);e.src=zl(a.V,b.uri,qm[g]);(Sc()||Rc("Web0S"))&&e.load();a.l=bn;a.dispatchEvent(mm("streaming"));var h=new Jc;Dj(e,HTMLMediaElement.HAVE_METADATA,a.C,function(){a.F.je();h.resolve()});Dj(e,HTMLMediaElement.HAVE_CURRENT_DATA,a.C,function(){var k;return F(function(l){if(1==l.g)return cn(a),k=dn(a),k.find(function(m){return"disabled"!=m.mode})?(0<k.length&&(a.$=!0),l.D(2)):u(l,new Promise(function(m){a.C.
|
|
460
|
-
(new N(m)).R(1)}),2);if(f)return l.return();en(a);B(l)})});e.error?h.reject(xm(a)):"none"==e.preload&&(Ua('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),h.resolve());a.C.
|
|
458
|
+
"none"!=e.preload&&a.C.ra(e,"loadedmetadata",function(){a.s.m=Date.now()/1E3-c.Od});e.audioTracks&&(a.C.o(e.audioTracks,"addtrack",function(){return Zm(a)}),a.C.o(e.audioTracks,"removetrack",function(){return Zm(a)}),a.C.o(e.audioTracks,"change",function(){return Zm(a)}));e.textTracks&&(a.C.o(e.textTracks,"addtrack",function(k){if(k.track)switch(k=k.track,k.kind){case "metadata":an(a,k);break;case "chapters":Qm(a,k);break;default:Zm(a)}}),a.C.o(e.textTracks,"removetrack",function(){return Zm(a)}),
|
|
459
|
+
a.C.o(e.textTracks,"change",function(){return Zm(a)}));var g=bh(b.uri);e.src=zl(a.V,b.uri,qm[g]);(Sc()||Rc("Web0S"))&&e.load();a.l=bn;a.dispatchEvent(mm("streaming"));var h=new Jc;Dj(e,HTMLMediaElement.HAVE_METADATA,a.C,function(){a.F.je();h.resolve()});Dj(e,HTMLMediaElement.HAVE_CURRENT_DATA,a.C,function(){var k;return F(function(l){if(1==l.g)return cn(a),k=dn(a),k.find(function(m){return"disabled"!=m.mode})?(0<k.length&&(a.$=!0),l.D(2)):u(l,new Promise(function(m){a.C.ra(e.textTracks,"change",m);
|
|
460
|
+
(new N(m)).R(1)}),2);if(f)return l.return();en(a);B(l)})});e.error?h.reject(xm(a)):"none"==e.preload&&(Ua('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),h.resolve());a.C.ra(e,"error",function(){h.reject(xm(a))});return(new Ye(h,function(){h.reject(new M(2,7,7001));return Promise.resolve()})).ma(function(){a.Oc=
|
|
461
461
|
!0})}function cn(a){var b=a.h.preferredAudioLanguage;if(""!=b){a.Nd(b);var c=a.h.preferredVariantRole;""!=c&&a.Nd(b,c)}}function en(a){var b=a.h.preferredTextLanguage,c=a.h.preferForcedSubs;if(""!=b){a.Le(b,"",c);var d=a.h.preferredTextRole;""!=d&&a.Le(b,d,c)}}
|
|
462
462
|
function an(a,b){if("metadata"==b.kind){b.mode="hidden";a.C.o(b,"cuechange",function(){if(b.activeCues)for(var d=r(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,fn(a,e.startTime,e.endTime,e.type,e.value),a.G)a.G.onCueMetadataChange(e.value)});var c=(new N(function(){var d=gn(a);d=r(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).Aa().R(.5);a.vb.push(function(){c.stop()})}}
|
|
463
463
|
function Bm(a,b,c,d){b=r(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,e.data&&e.cueTime&&e.frames){var f=e.cueTime+c,g=d;g&&f>g&&(g=f);for(var h=r(e.frames),k=h.next();!k.done;k=h.next())fn(a,f,g,"org.id3",k.value);if(a.G)a.G.onHlsTimedMetadata(e,f)}}function fn(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(mm("metadata",b))}
|
|
464
464
|
function Qm(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new N(function(){b.mode="hidden"})).Aa().R(.5);a.vb.push(function(){c.stop()})}}function Gm(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 Hm(a,b){return new ng(b,a.h.drm.updateExpirationTime)}
|
|
465
465
|
function am(a){return new jf(function(b,c){a.B&&a.B.segmentDownloaded(b,c)},function(b,c,d){b=(new Map).set("headers",b).set("request",c).set("requestType",d);a.dispatchEvent(mm("downloadheadersreceived",b))},function(b,c,d,e){b=(new Map).set("request",b).set("error",c).set("httpResponseCode",d).set("aborted",e);a.dispatchEvent(mm("downloadfailed",b))})}
|
|
466
466
|
function Rm(a,b){return new Nj(a.g,a.i,a.h.streaming,b,function(){a.Za&&bk(a.Za,!0);a.j&&a.j.Yc();a.N&&hn(a)},function(c){return a.dispatchEvent(c)})}
|
|
467
|
-
function Sm(a,b){b=new hk(a.
|
|
467
|
+
function Sm(a,b){b=new hk(a.ua,a.S()||0<b);b.addEventListener("enter",function(d){Cm(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){Cm(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(Cm(a,"timelineregionenter",e),Cm(a,"timelineregionexit",e))});var c=new ak(a.g);c.g.add(b);a.ba&&c.g.add(a.ba);return c}function Tm(a,b){a.N=new Re;a.N.g=Te;Ue(a.N,b,Math.min(.5,b/2));zm(a);a.Ed=(new N(function(){hn(a)})).ka(.25)}
|
|
468
468
|
function hn(a){switch(a.l){case bn:if(a.g.ended)var b=!0;else{var c=Ei(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case Pm:a:if(a.g.ended||bj(a.I))b=!0;else{if(a.i.presentationTimeline.S()){c=a.i.presentationTimeline.Ib();var d=Ei(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Gi(a.g.buffered,a.g.currentTime);c=a.N;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?Se:Te;c.g=d;b!=d&&zm(a)}function Am(a,b,c,d){return new Wi(a,b,c,d)}
|
|
469
469
|
function wm(a){return new nl({getBandwidthEstimate:function(){return a.B?a.B.getBandwidthEstimate():NaN},ib:function(){return a.ib()},getCurrentTime:function(){return a.g?a.g.currentTime:0},Qa:function(){return a.Qa()},yb:function(){return a.yb()},S:function(){return a.S()}},a.h.cmcd)}
|
|
470
470
|
function Om(a){return new nk(a.i,{wd:function(){return a.F?a.F.ld():0},getBandwidthEstimate:function(){return a.B.getBandwidthEstimate()},modifySegmentRequest:function(b,c){ol(a.V,b,c)},T:a.I,Pb:a.H,onError:function(b){return ym(a,b)},onEvent:function(b){return a.dispatchEvent(b)},rh:function(){a.K&&a.K.update&&a.K.update()},Fe:function(b,c,d){a.F&&a.F.Rf();hn(a);b=(new Map).set("start",b).set("end",c).set("contentType",d);a.dispatchEvent(mm("segmentappended",b))},qh:function(b,c){(c=c.ze)&&a.ba&&
|
|
@@ -492,7 +492,7 @@ q.Nb=function(){var a=this.$;return this.I?this.I.m.isTextVisible():this.g&&this
|
|
|
492
492
|
q.Dg=function(a){var b=Kb(a),c=qn(this).filter(function(h){return Kb(h.language)==b});if(!c||!c.length)return[];a=[];var d=new Set;c=r(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.cues){e=r(e.cues);for(var f=e.next();!f.done;f=e.next()){var g=f.value;(f=g.id)&&""!=f||(f=g.startTime+"-"+g.endTime+"-"+g.text);g={id:f,title:g.text,startTime:g.startTime,endTime:g.endTime};d.has(f)||(a.push(g),d.add(f))}}return a};
|
|
493
493
|
function dn(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function gn(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"==b.kind})}function qn(a){return Array.from(a.g.textTracks).filter(function(b){return"chapters"==b.kind})}
|
|
494
494
|
q.Ve=function(a){a=!!a;if(this.$!=a){this.$=a;if(this.l==Pm)this.I.m.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.s||(a=we(this.i.textStreams,this.Xa,this.Lc,this.Fc),0<a.length&&(zk(this.j,a[0]),mn(this))):vk(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=dn(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")}Wm(this)}};
|
|
495
|
-
q.Ug=function(){if(!this.S())return null;var a=this.
|
|
495
|
+
q.Ug=function(){if(!this.S())return null;var a=this.va.l,b=0;if(this.F)b=this.F.ld();else if(a){if(null==a.startTime)return new Date;b=a.startTime}return this.i?new Date(1E3*(this.i.presentationTimeline.i+b)):this.g&&this.g.getStartDate?(a=this.g.getStartDate(),isNaN(a.getTime())?null:new Date(a.getTime()+1E3*b)):null};
|
|
496
496
|
q.Kf=function(){if(!this.S())return null;if(this.i)return new Date(1E3*this.i.presentationTimeline.i);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};q.ib=function(){if(this.l==Pm)return this.I.ib();var a={total:[],audio:[],video:[],text:[]};this.l==bn&&(a.total=Hi(this.g.buffered));return a};
|
|
497
497
|
q.getStats=function(){if(this.l!=Pm&&this.l!=bn)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,stallsDetected:NaN,gapsJumped:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,switchHistory:[],stateHistory:[]};Km(this);var a=this.g,b=a.currentTime/a.duration;if(!isNaN(b)){var c=this.s;b=
|
|
498
498
|
Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.F&&(this.s.N=this.F.pf(),this.s.P=this.F.qf());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.s;var d=Number(c.totalVideoFrames);b.M=Number(c.droppedVideoFrames);b.K=d;this.s.J=Number(c.corruptedVideoFrames)}this.m?(c=this.m,c=c.J?c.J:NaN):c=NaN;this.s.B=c;if(this.l==Pm){if(c=this.j.l)this.s.F=(this.J?this.J.i:1)*c.bandwidth;c&&c.video&&(b=this.s,d=c.video.height||NaN,b.s=c.video.width||NaN,b.l=d);this.S()&&(c=this.Kf().valueOf()+
|
|
@@ -504,7 +504,7 @@ emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:n
|
|
|
504
504
|
q.ng=function(a,b){var c=this,d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,C;return F(function(z){switch(z.g){case 1:if(c.l!=Pm&&c.l!=bn)throw new M(1,7,7004);if(c.l==bn)throw new M(1,2,2016);if(b){z.D(2);break}return u(z,rn(c,a),3);case 3:b=z.h;case 2:if("text/vtt"!=b)throw new M(1,2,2017,a);d=Hb;e=c.i.presentationTimeline.getDuration();if(Infinity==e)throw new M(1,4,4045);return u(z,tn(c,a,c.H,c.h.streaming.retryParameters),4);case 4:f=z.h;g=Dd[b];if(!g)throw new M(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0,
|
|
505
505
|
segmentEnd:e,vttOffset:0};l=Fc(f);m=h.parseMedia(l,k);p=[];n={};t=r(m);for(v=t.next();!v.done;n={vc:n.vc},v=t.next())y=v.value,n.vc=Bb([a],[y.payload])[0],w=new Ai(y.startTime,y.endTime,function(A){return function(){return[A.vc]}}(n),0,null,null,0,0,Infinity),n.vc.includes("#xywh")&&(x=n.vc.split("#xywh=")[1].split(","),4===x.length&&w.ag({height:parseInt(x[3],10),positionX:parseInt(x[0],10),positionY:parseInt(x[1],10),width:parseInt(x[2],10)})),p.push(w);C={id:c.kf++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},
|
|
506
506
|
segmentIndex:new Tj(p),mimeType:b||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.Bc,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",external:!0};c.i.imageStreams.push(C);Zm(c);return z.return(oe(C))}})};
|
|
507
|
-
q.lg=function(a,b,c){var d=this,e,f,g,h;return F(function(k){switch(k.g){case 1:if(d.l!=Pm&&d.l!=bn)throw new M(1,7,7004);if(c){k.D(2);break}return u(k,rn(d,a),3);case 3:c=k.h;case 2:e=[];if(d.G)try{e=d.G.getServerSideCuePoints()}catch(l){}return u(k,sn(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.If();h=g.find(function(l){return l.language==b});if(!h){k.D(5);break}return u(k,new Promise(function(l,m){d.C.
|
|
507
|
+
q.lg=function(a,b,c){var d=this,e,f,g,h;return F(function(k){switch(k.g){case 1:if(d.l!=Pm&&d.l!=bn)throw new M(1,7,7004);if(c){k.D(2);break}return u(k,rn(d,a),3);case 3:c=k.h;case 2:e=[];if(d.G)try{e=d.G.getServerSideCuePoints()}catch(l){}return u(k,sn(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.If();h=g.find(function(l){return l.language==b});if(!h){k.D(5);break}return u(k,new Promise(function(l,m){d.C.ra(f,"load",l);d.C.ra(f,"error",function(){m(new M(1,2,2015))})}),6);case 6:return k.return(h);
|
|
508
508
|
case 5:throw new M(1,2,2012);}})};function rn(a,b){var c,d;return F(function(e){switch(e.g){case 1:c=bh(b);if(d=vn[c])return e.return(d);D(e,2);return u(e,dh(b,a.H,a.h.streaming.retryParameters),4);case 4:d=e.h;va(e,3);break;case 2:wa(e);case 3:if(d)return e.return(d);throw new M(1,2,2011,c);}})}
|
|
509
509
|
function sn(a,b,c,d,e,f,g){var h,k,l,m;return F(function(p){if(1==p.g)return"text/vtt"!=e||g.length?u(p,tn(a,b,a.H,a.h.streaming.retryParameters),3):p.D(2);2!=p.g&&(h=p.h,k=un(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=Zi(l),e="text/vtt");m=document.createElement("track");var n=a.V,t=b;try{if(n.g.enabled){var v=Al(n);v.ot=Gl;v.su=!0;var y=Cl(v);var w=Dl(t,y)}else w=t}catch(x){Wa("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",x),w=t}m.src=w;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")||
|
|
510
510
|
a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return p.return(m)})}function tn(a,b,c,d){var e,f,g;return F(function(h){if(1==h.g){e=tf;f=nf([b],d);f.method="GET";var k=a.V;try{k.g.enabled&&yl(k,f,{ot:Gl,su:!0})}catch(l){Wa("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return u(h,c.request(e,f).promise,2)}g=h.h;return h.return(g.data)})}
|
|
@@ -537,7 +537,7 @@ S.prototype.getExpiration=S.prototype.Hc;S.prototype.drmInfo=S.prototype.drmInfo
|
|
|
537
537
|
S.prototype.getLoadMode=S.prototype.pe;S.prototype.resetConfiguration=S.prototype.Eh;S.prototype.getBufferFullness=S.prototype.Bg;S.prototype.getConfiguration=S.prototype.getConfiguration;S.prototype.configure=S.prototype.configure;S.prototype.load=S.prototype.load;S.prototype.updateStartTime=S.prototype.Rh;S.prototype.unload=S.prototype.df;S.prototype.detach=S.prototype.detach;S.prototype.attachCanvas=S.prototype.tf;S.prototype.attach=S.prototype.Cc;
|
|
538
538
|
S.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return F(function(h){if(1==h.g)return b={},a?u(h,Ug(),3):h.D(2);2!=h.g&&(b=h.h);var k={};if(Mc()){for(var l in ah)k[l]=!0;for(var m in ch)k[m]=!0}l={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};m=r(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var p=m.next();!p.done;p=m.next())p=p.value,k[p]=Mc()?!!ah[p]:Nc(p);for(var n in l)k[n]=
|
|
539
539
|
Mc()?!!ch[n]:Nc(l[n]);c=k;n='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",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(ha(hj));
|
|
540
|
-
k={};n=r(n);for(l=n.next();!l.done;l=n.next())l=l.value,k[l]=Mc()?Cd(l)?!0:bc(l)||qd(l):Nc(l),m=l.split(";")[0],k[m]=k[m]||k[l];d=k;e={manifest:c,media:d,drm:b};f=Cn;for(g in f)e[g]=f[g]();return h.return(e)})};S.isBrowserSupported=sm;S.setAdManagerFactory=function(a){bm=a};S.registerSupportPlugin=function(a,b){Cn[a]=b};S.prototype.destroy=S.prototype.destroy;var rm=0,Zl=1,Pm=2,bn=3;S.LoadMode={DESTROYED:rm,NOT_LOADED:Zl,MEDIA_SOURCE:Pm,SRC_EQUALS:bn};S.version="v4.3.
|
|
540
|
+
k={};n=r(n);for(l=n.next();!l.done;l=n.next())l=l.value,k[l]=Mc()?Cd(l)?!0:bc(l)||qd(l):Nc(l),m=l.split(";")[0],k[m]=k[m]||k[l];d=k;e={manifest:c,media:d,drm:b};f=Cn;for(g in f)e[g]=f[g]();return h.return(e)})};S.isBrowserSupported=sm;S.setAdManagerFactory=function(a){bm=a};S.registerSupportPlugin=function(a,b){Cn[a]=b};S.prototype.destroy=S.prototype.destroy;var rm=0,Zl=1,Pm=2,bn=3;S.LoadMode={DESTROYED:rm,NOT_LOADED:Zl,MEDIA_SOURCE:Pm,SRC_EQUALS:bn};S.version="v4.3.10";var Dn=["4","3"];
|
|
541
541
|
Fe=new function(a){this.g=a;this.i=Ge;this.h=He}(new De(Number(Dn[0]),Number(Dn[1])));
|
|
542
542
|
var Bn=["output-restricted","internal-error"],Cn={},bm=null,qm={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"},vn={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",
|
|
543
543
|
ssa:"text/x-ssa",ass:"text/x-ssa"};function En(){this.h=[];this.j=this.i=this.g=0};function Fn(a,b,c){var d=this;this.h=a;this.g=b;this.m=c;this.i=!1;this.l=this.g.getVolume();this.j=new wf;this.j.o(this.g,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.j.o(this.g,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}q=Fn.prototype;q.getDuration=function(){return this.h.getDuration()};q.getMinSuggestedDuration=function(){return this.h.getMinSuggestedDuration()};q.getRemainingTime=function(){return this.g.getRemainingTime()};q.isPaused=function(){return this.i};
|
|
@@ -545,11 +545,11 @@ q.isSkippable=function(){return 0<=this.h.getSkipTimeOffset()};q.getTimeUntilSki
|
|
|
545
545
|
q.isLinear=function(){return this.h.isLinear()};q.resize=function(a,b){var c=!1,d=this.m;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.g.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};q.setMuted=function(a){a?(this.l=this.getVolume(),this.setVolume(0)):this.setVolume(this.l)};q.getSequenceLength=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getTotalAds()};
|
|
546
546
|
q.getPositionInSequence=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getAdPosition()};q.getTitle=function(){return this.h.getTitle()};q.getDescription=function(){return this.h.getDescription()};q.release=function(){this.g=this.h=null};I("shaka.ads.ClientSideAd",Fn);Fn.prototype.release=Fn.prototype.release;Fn.prototype.getDescription=Fn.prototype.getDescription;Fn.prototype.getTitle=Fn.prototype.getTitle;Fn.prototype.getPositionInSequence=Fn.prototype.getPositionInSequence;
|
|
547
547
|
Fn.prototype.getSequenceLength=Fn.prototype.getSequenceLength;Fn.prototype.setMuted=Fn.prototype.setMuted;Fn.prototype.resize=Fn.prototype.resize;Fn.prototype.isLinear=Fn.prototype.isLinear;Fn.prototype.isMuted=Fn.prototype.isMuted;Fn.prototype.setVolume=Fn.prototype.setVolume;Fn.prototype.getVolume=Fn.prototype.getVolume;Fn.prototype.play=Fn.prototype.play;Fn.prototype.pause=Fn.prototype.pause;Fn.prototype.skip=Fn.prototype.skip;Fn.prototype.canSkipNow=Fn.prototype.canSkipNow;
|
|
548
|
-
Fn.prototype.getTimeUntilSkippable=Fn.prototype.getTimeUntilSkippable;Fn.prototype.isSkippable=Fn.prototype.isSkippable;Fn.prototype.isPaused=Fn.prototype.isPaused;Fn.prototype.getRemainingTime=Fn.prototype.getRemainingTime;Fn.prototype.getMinSuggestedDuration=Fn.prototype.getMinSuggestedDuration;Fn.prototype.getDuration=Fn.prototype.getDuration;function Gn(a,b,c,d){var e=this;this.s=a;this.i=b;this.B=null;this.
|
|
549
|
-
function(f){In(e,f)});this.h.o(this.i,"ended",function(){e.m.contentComplete()})}Gn.prototype.stop=function(){this.g&&this.g.stop();this.s&&dl(this.s)};Gn.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy()};function In(a,b){b.getError();Jn(a,null);a.l(new L("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
|
|
550
|
-
function Hn(a,b){a.l(new L("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.
|
|
551
|
-
function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Ln(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in window?(a.B=new ResizeObserver(function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Ln(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.B.observe(a.i)):a.h.o(document,"fullscreenchange",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Ln(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.h.
|
|
552
|
-
null)}}function Ln(a){if(document.fullscreenEnabled)return!!document.fullscreenElement;a=a.i;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1}
|
|
548
|
+
Fn.prototype.getTimeUntilSkippable=Fn.prototype.getTimeUntilSkippable;Fn.prototype.isSkippable=Fn.prototype.isSkippable;Fn.prototype.isPaused=Fn.prototype.isPaused;Fn.prototype.getRemainingTime=Fn.prototype.getRemainingTime;Fn.prototype.getMinSuggestedDuration=Fn.prototype.getMinSuggestedDuration;Fn.prototype.getDuration=Fn.prototype.getDuration;function Gn(a,b,c,d){var e=this;this.s=a;this.i=b;this.C=!1;this.B=null;this.F=NaN;this.l=d;this.j=null;this.h=new wf;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.s,this.i);a.initialize();this.m=new google.ima.AdsLoader(a);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.3.10");this.g=null;this.h.ra(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){Hn(e,f)});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,
|
|
549
|
+
function(f){In(e,f)});this.h.o(this.i,"ended",function(){e.m.contentComplete()});this.h.ra(this.i,"play",function(){e.C=!0})}Gn.prototype.stop=function(){this.g&&this.g.stop();this.s&&dl(this.s)};Gn.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy()};function In(a,b){b.getError();Jn(a,null);a.l(new L("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
|
|
550
|
+
function Hn(a,b){a.l(new L("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.F)));a.g=b.getAdsManager(a.i);a.l(new L("ima-ad-manager-loaded",(new Map).set("imaAdManager",a.g)));var c=a.g.getCuePoints();if(c.length){b=[];c=r(c);for(var d=c.next();!d.done;d=c.next())b.push({start:d.value,end:null});a.l(new L("ad-cue-points-changed",(new Map).set("cuepoints",b)))}Kn(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight,Ln(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),a.h.o(a.i,"loadeddata",
|
|
551
|
+
function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Ln(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in window?(a.B=new ResizeObserver(function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Ln(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.B.observe(a.i)):a.h.o(document,"fullscreenchange",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Ln(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.C?a.g.start():a.h.ra(a.i,"play",
|
|
552
|
+
function(){a.C=!0;a.g.start()})}catch(e){Jn(a,null)}}function Ln(a){if(document.fullscreenEnabled)return!!document.fullscreenElement;a=a.i;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1}
|
|
553
553
|
function Kn(a){function b(c,d){c=(new Map).set("originalEvent",c);a.l(new L(d,c))}a.h.o(a.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){In(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){Mn(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.STARTED,function(c){Mn(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.FIRST_QUARTILE,function(c){b(c,"ad-first-quartile")});a.h.o(a.g,google.ima.AdEvent.Type.MIDPOINT,function(c){b(c,"ad-midpoint")});a.h.o(a.g,google.ima.AdEvent.Type.THIRD_QUARTILE,
|
|
554
554
|
function(c){b(c,"ad-third-quartile")});a.h.o(a.g,google.ima.AdEvent.Type.COMPLETE,function(c){b(c,"ad-complete")});a.h.o(a.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(c){Jn(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){Jn(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.SKIPPED,function(c){b(c,"ad-skipped")});a.h.o(a.g,google.ima.AdEvent.Type.VOLUME_CHANGED,function(c){b(c,"ad-volume-changed")});a.h.o(a.g,google.ima.AdEvent.Type.VOLUME_MUTED,function(c){b(c,"ad-muted")});
|
|
555
555
|
a.h.o(a.g,google.ima.AdEvent.Type.PAUSED,function(c){a.j&&(a.j.i=!0,b(c,"ad-paused"))});a.h.o(a.g,google.ima.AdEvent.Type.RESUMED,function(c){a.j&&(a.j.i=!1,b(c,"ad-resumed"))});a.h.o(a.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(c){a.j&&b(c,"ad-skip-state-changed")});a.h.o(a.g,google.ima.AdEvent.Type.CLICK,function(c){b(c,"ad-clicked")});a.h.o(a.g,google.ima.AdEvent.Type.AD_PROGRESS,function(c){b(c,"ad-progress")});a.h.o(a.g,google.ima.AdEvent.Type.AD_BUFFERING,function(c){b(c,"ad-buffering")});
|
|
@@ -566,10 +566,10 @@ var f=e.l.currentTime;e.s&&e.s>f&&(e.l.currentTime=e.s,e.s=null)});this.h.o(this
|
|
|
566
566
|
this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.i(new L("ad-complete"));e.i(new L("ad-stopped"));e.B.removeAttribute("ad-active");e.m=null});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){e.i(new L("ad-skipped"));e.i(new L("ad-stopped"))});this.h.o(this.g,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({start:h.start,end:h.end});e.G=
|
|
567
567
|
f;e.i(new L("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}On.prototype.stop=function(){this.F="";this.s=null;this.G=[]};On.prototype.release=function(){this.stop();this.h&&this.h.release()};On.prototype.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.g.onTimedMetadata(b)}};
|
|
568
568
|
function Pn(a,b){a.i(new L("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.I)));b=b.getStreamData().url;a.j.resolve(b);a.j=null;a.H||a.h.o(a.l,"seeked",function(){var c=a.l.currentTime;if(0!=c){a.g.streamTimeForContentTime(c);var d=a.g.previousCuePointForStreamTime(c);d&&!d.played&&(a.s=c,a.l.currentTime=d.start)}})};function T(){db.call(this);this.g=this.i=null;this.h=new En;this.j=navigator.language}pa(T,db);q=T.prototype;q.setLocale=function(a){this.j=a};q.initClientSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new M(2,10,1E4);this.i&&this.i.release();this.i=new Gn(a,b,this.j,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.h.h.push(d.loadTime);break;case "ad-started":c.h.g++;break;case "ad-complete":c.h.i++;break;case "ad-skipped":c.h.j++}c.dispatchEvent(d)})};
|
|
569
|
-
q.release=function(){this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);db.prototype.release.call(this)};q.onAssetUnload=function(){this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new L("ad-stopped"));this.h=new En};q.requestClientSideAds=function(a){if(!this.i)throw new M(1,10,10001);var b=this.i;b.
|
|
569
|
+
q.release=function(){this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);db.prototype.release.call(this)};q.onAssetUnload=function(){this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new L("ad-stopped"));this.h=new En};q.requestClientSideAds=function(a){if(!this.i)throw new M(1,10,10001);var b=this.i;b.F=Date.now()/1E3;b.m.requestAds(a)};
|
|
570
570
|
q.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new M(2,10,10002);this.g&&this.g.release();this.g=new On(a,b,this.j,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.h.h.push(d.loadTime);break;case "ad-started":c.h.g++;break;case "ad-complete":c.h.i++;break;case "ad-skipped":c.h.j++}c.dispatchEvent(d)})};
|
|
571
|
-
q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new M(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ua('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.3.
|
|
572
|
-
(c.H=!0),c.j=new Jc,c.g.requestStream(a),c.F=b||"",c.I=Date.now()/1E3,a=c.j);return a};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new M(1,10,10003);(a.mpt||a.mpv)&&Ua('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v4.3.
|
|
571
|
+
q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new M(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ua('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.3.10";c=this.g;c.j?a=Promise.reject(new M(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
|
|
572
|
+
(c.H=!0),c.j=new Jc,c.g.requestStream(a),c.F=b||"",c.I=Date.now()/1E3,a=c.j);return a};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new M(1,10,10003);(a.mpt||a.mpv)&&Ua('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v4.3.10";this.g.g.replaceAdTagParameters(a)};q.getServerSideCuePoints=function(){if(!this.g)throw new M(1,10,10003);return this.g.G};
|
|
573
573
|
q.getStats=function(){var a=this.h;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};q.onDashTimedMetadata=function(a){if(this.g&&"urn:google:dai:2018"==a.schemeIdUri){var b=a.schemeIdUri,c=a.eventElement?a.eventElement.getAttribute("messageData"):null;this.g.g.processMetadata(b,c,a.startTime)}};q.onHlsTimedMetadata=function(a,b){this.g&&this.g.g.processMetadata("ID3",a.data,b)};q.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};I("shaka.ads.AdManager",T);
|
|
574
574
|
T.prototype.onCueMetadataChange=T.prototype.onCueMetadataChange;T.prototype.onHlsTimedMetadata=T.prototype.onHlsTimedMetadata;T.prototype.onDashTimedMetadata=T.prototype.onDashTimedMetadata;T.prototype.getStats=T.prototype.getStats;T.prototype.getServerSideCuePoints=T.prototype.getServerSideCuePoints;T.prototype.replaceServerSideAdTagParameters=T.prototype.replaceServerSideAdTagParameters;T.prototype.requestServerSideStream=T.prototype.requestServerSideStream;T.prototype.initServerSide=T.prototype.initServerSide;
|
|
575
575
|
T.prototype.requestClientSideAds=T.prototype.requestClientSideAds;T.prototype.onAssetUnload=T.prototype.onAssetUnload;T.prototype.release=T.prototype.release;T.prototype.initClientSide=T.prototype.initClientSide;T.prototype.setLocale=T.prototype.setLocale;T.ADS_LOADED="ads-loaded";T.AD_STARTED="ad-started";T.AD_FIRST_QUARTILE="ad-first-quartile";T.AD_MIDPOINT="ad-midpoint";T.AD_THIRD_QUARTILE="ad-third-quartile";T.AD_COMPLETE="ad-complete";T.AD_STOPPED="ad-stopped";T.AD_SKIPPED="ad-skipped";
|
|
@@ -630,24 +630,24 @@ function gp(a){var b=a.getAttribute("schemeIdUri"),c=Yf(a,"urn:mpeg:cenc:2013","
|
|
|
630
630
|
var ep=1,fp=(new Map).set("com.widevine.alpha",function(a){return(a=Vf(a.node,"urn:microsoft","laurl"))?a.getAttribute("licenseUrl")||"":""}).set("com.microsoft.playready",dp).set("com.microsoft.playready.recommendation",dp).set("com.microsoft.playready.software",dp).set("com.microsoft.playready.hardware",dp).set("org.w3.clearkey",function(a){return(a=Vf(a.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===a.getAttribute("Lic_type")&&a.textContent?a.textContent:""});function hp(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=
|
|
631
631
|
window.parseInt(k,10)||1;return Array(Math.max(0,k-g.length)+1).join("0")+g})}
|
|
632
632
|
function ip(a,b){var c=jp(a,b,"timescale"),d=1;c&&(d=gg(c)||1);var e=jp(a,b,"duration");c=gg(e||"");"image"==a.L.contentType&&(c=ig(e||""));c&&(c/=d);var f=jp(a,b,"startNumber");e=Number(jp(a,b,"presentationTimeOffset"))||0;var g=hg(f||"");if(null==f||null==g)g=1;f=kp(a,b,"SegmentTimeline");b=null;if(f){b=d;a=a.Y.duration||Infinity;f=Uf(f,"S");for(var h=[],k=-e,l=0;l<f.length;++l){var m=f[l],p=f[l+1],n=bg(m,"t",hg),t=bg(m,"d",hg);m=bg(m,"r",fg);null!=n&&(n-=e);if(!t)break;n=null!=n?n:k;m=m||0;if(0>
|
|
633
|
-
m)if(p){p=bg(p,"t",hg);if(null==p)break;else if(n>=p)break;m=Math.ceil((p-n)/t)-1}else{if(Infinity==a)break;else if(n/b>=a)break;m=Math.ceil((a*b-n)/t)-1}0<h.length&&n!=k&&(h[h.length-1].end=n/b);for(p=0;p<=m;++p)k=n+t,h.push({start:n/b,end:k/b,Ph:n}),n=k}b=h}return{timescale:d,za:c,qc:g,qb:e/d||0,ef:e,timeline:b}}function jp(a,b,c){return[b(a.L),b(a.
|
|
634
|
-
function kp(a,b,c){return[b(a.L),b(a.
|
|
633
|
+
m)if(p){p=bg(p,"t",hg);if(null==p)break;else if(n>=p)break;m=Math.ceil((p-n)/t)-1}else{if(Infinity==a)break;else if(n/b>=a)break;m=Math.ceil((a*b-n)/t)-1}0<h.length&&n!=k&&(h[h.length-1].end=n/b);for(p=0;p<=m;++p)k=n+t,h.push({start:n/b,end:k/b,Ph:n}),n=k}b=h}return{timescale:d,za:c,qc:g,qb:e/d||0,ef:e,timeline:b}}function jp(a,b,c){return[b(a.L),b(a.wa),b(a.qa)].filter(Ab).map(function(d){return d.getAttribute(c)}).reduce(function(d,e){return d||e})}
|
|
634
|
+
function kp(a,b,c){return[b(a.L),b(a.wa),b(a.qa)].filter(Ab).map(function(d){return Tf(d,c)}).reduce(function(d,e){return d||e})}
|
|
635
635
|
function lp(a,b,c,d,e,f){for(var g=Yf(a,"http://www.w3.org/1999/xlink","href"),h=Yf(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 Ze(new M(2,4,4028));if("onLoad"!=h)return Ze(new M(2,4,4027));var m=Bb([d],[g]);return e.request(0,nf(m,b)).ma(function(p){p=mg(p.data,a.tagName);if(!p)return Ze(new M(2,4,4001,g));
|
|
636
636
|
for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;p.childNodes.length;){var n=p.childNodes[0];p.removeChild(n);a.appendChild(n)}p=r(Array.from(p.attributes));for(n=p.next();!n.done;n=p.next())a.setAttributeNode(n.value.cloneNode(!1));return mp(a,b,c,m[0],e,f+1)})}
|
|
637
637
|
function mp(a,b,c,d,e,f){f=void 0===f?0:f;if(Yf(a,"http://www.w3.org/1999/xlink","href")){var g=lp(a,b,c,d,e,f);c&&(g=g.ma(void 0,function(){return mp(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"==Yf(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(mp(k,b,c,d,e,f)));return cf(g).ma(function(){return a})};function np(a,b,c,d,e,f,g){var h,k=(new Hf).U("sidx",function(l){h=op(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new M(2,3,3004);}
|
|
638
|
-
function op(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.O();if(0==k)throw new M(2,3,3005);if(0==g.version){var l=g.reader.O();var m=g.reader.O()}else l=g.reader.Cb(),m=g.reader.Cb();g.reader.skip(2);var p=g.reader.Ge();a=a+g.size+m;for(m=0;m<p;m++){var n=g.reader.O(),t=(n&2147483648)>>>31;n&=2147483647;var v=g.reader.O();g.reader.skip(4);if(1==t)throw new M(2,3,3006);h.push(new Ai(l/k+c,(l+v)/k+c,function(){return f},a,a+n-1,b,c,d,e));l+=v;a+=n}g.parser.stop();return h};function pp(a){this.h=Ic(a);this.g=new Ef(this.h,0)}pp.prototype.
|
|
638
|
+
function op(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.O();if(0==k)throw new M(2,3,3005);if(0==g.version){var l=g.reader.O();var m=g.reader.O()}else l=g.reader.Cb(),m=g.reader.Cb();g.reader.skip(2);var p=g.reader.Ge();a=a+g.size+m;for(m=0;m<p;m++){var n=g.reader.O(),t=(n&2147483648)>>>31;n&=2147483647;var v=g.reader.O();g.reader.skip(4);if(1==t)throw new M(2,3,3006);h.push(new Ai(l/k+c,(l+v)/k+c,function(){return f},a,a+n-1,b,c,d,e));l+=v;a+=n}g.parser.stop();return h};function pp(a){this.h=Ic(a);this.g=new Ef(this.h,0)}pp.prototype.ya=function(){return this.g.ya()};
|
|
639
639
|
function qp(a){var b=rp(a);if(7<b.length)throw new M(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=rp(a);a:{d=r(sp);for(var e=d.next();!e.done;e=d.next())if(Dc(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.na();else{if(8==b.length&&b[1]&224)throw new M(2,3,3001);for(e=d=0;e<b.length;e++){var f=b[e];d=0==e?f&(1<<8-b.length)-1:256*d+f}b=d}b=a.g.na()+b<=a.h.byteLength?b:a.h.byteLength-a.g.na();d=Ic(a.h,a.g.na(),b);a.g.skip(b);return new tp(c,
|
|
640
640
|
d)}function rp(a){var b=a.g.na(),c=a.g.pb();if(0==c)throw new M(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Fc(a.h,b,c)}var sp=[[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 tp(a,b){this.id=a;this.g=b}
|
|
641
|
-
function up(a){if(8<a.g.byteLength)throw new M(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new M(2,3,3001);for(var b=0,c=0;c<a.g.byteLength;c++){var d=a.g.getUint8(c);b=256*b+d}return b};function vp(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new pp(a.g);for(var p=null,n=null;a.
|
|
642
|
-
function wp(a){var b=new pp(a.g);a=qp(b);if(179!=a.id)throw new M(2,3,3013);a=up(a);b=qp(b);if(183!=b.id)throw new M(2,3,3012);b=new pp(b.g);for(var c=0;b.
|
|
641
|
+
function up(a){if(8<a.g.byteLength)throw new M(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new M(2,3,3001);for(var b=0,c=0;c<a.g.byteLength;c++){var d=a.g.getUint8(c);b=256*b+d}return b};function vp(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new pp(a.g);for(var p=null,n=null;a.ya();){var t=qp(a);if(187==t.id){var v=wp(t);v&&(t=c*v.Qh,v=b+v.Ah,null!=p&&m.push(new Ai(p+g,t+g,l,n,v-1,f,g,h,k)),p=t,n=v)}}null!=p&&m.push(new Ai(p+g,d+g,l,n,null,f,g,h,k));return m}
|
|
642
|
+
function wp(a){var b=new pp(a.g);a=qp(b);if(179!=a.id)throw new M(2,3,3013);a=up(a);b=qp(b);if(183!=b.id)throw new M(2,3,3012);b=new pp(b.g);for(var c=0;b.ya();){var d=qp(b);if(241==d.id){c=up(d);break}}return{Qh:a,Ah:c}};function xp(a,b){b=kp(a,b,"Initialization");if(!b)return null;var c=a.L.Na,d=b.getAttribute("sourceURL");d&&(c=Bb(a.L.Na,[d]));d=0;var e=null;if(b=bg(b,"range",eg))d=b.start,e=b.end;return new yi(function(){return c},d,e,yp(a))}
|
|
643
643
|
function zp(a,b){var c=Number(jp(a,Ap,"presentationTimeOffset"))||0,d=jp(a,Ap,"timescale"),e=1;d&&(e=gg(d)||1);var f=c/e||0,g=xp(a,Ap);Bp(a,g);var h=ff(a);return{bc:function(){var k=kp(h,Ap,"RepresentationIndex");var l=h.L.Na;k&&(k=k.getAttribute("sourceURL"))&&(l=Bb(h.L.Na,[k]));k=Cp(h);return Dp(h,b,g,l,k.start,k.end,f)}}}
|
|
644
644
|
function Dp(a,b,c,d,e,f,g){var h,k,l,m,p,n,t,v,y,w,x,C,z,A,E;return F(function(G){if(1==G.g)return h=a.presentationTimeline,k=!a.wb||!a.Y.re,l=a.Y.start,m=a.Y.duration,p=a.L.mimeType.split("/")[1],n=b,t=null,v=[n(d,e,f),"webm"==p?n(c.Pa(),c.Ta,c.Ca):null],n=null,u(G,Promise.all(v),2);y=G.h;w=y[0];x=y[1]||null;C=null;z=l-g;A=l;E=m?l+m:Infinity;if("mp4"==p)var H=np(w,e,d,c,z,A,E);else{H=new pp(x);if(440786851!=qp(H).id)throw new M(2,3,3008);var J=qp(H);if(408125543!=J.id)throw new M(2,3,3009);H=J.g.byteOffset;
|
|
645
|
-
J=new pp(J.g);for(var K=null;J.
|
|
645
|
+
J=new pp(J.g);for(var K=null;J.ya();){var Q=qp(J);if(357149030==Q.id){K=Q;break}}if(!K)throw new M(2,3,3010);K=new pp(K.g);Q=1E6;for(J=null;K.ya();){var V=qp(K);if(2807729==V.id)Q=up(V);else if(17545==V.id)if(4==V.g.byteLength)J=V.g.getFloat32(0);else if(8==V.g.byteLength)J=V.g.getFloat64(0);else throw new M(2,3,3003);}if(null==J)throw new M(2,3,3011);K=Q/1E9;J*=K;Q=qp(new pp(w));if(475249515!=Q.id)throw new M(2,3,3007);H=vp(Q,H,K,J,d,c,z,A,E)}C=H;h.mc(C);t=new Tj(C);k&&t.xb(A,E,!0);return G.return(t)})}
|
|
646
646
|
function Ap(a){return a.Zc}function Cp(a){var b=kp(a,Ap,"RepresentationIndex");a=jp(a,Ap,"indexRange");a=eg(a||"");b&&(a=bg(b,"range",eg,a));return a}function Bp(a,b){Ep(a,b);if(!Cp(a))throw new M(2,4,4002);}function Ep(a,b){var c=a.L.mimeType.split("/")[1];if(a.L.contentType!=Gb&&"mp4"!=c&&"webm"!=c)throw new M(2,4,4006);if("webm"==c&&!b)throw new M(2,4,4005);}
|
|
647
647
|
function yp(a){var b=a.L;return{bandwidth:a.bandwidth,audioSamplingRate:b.audioSamplingRate,codecs:b.codecs,contentType:b.contentType,frameRate:b.frameRate||null,height:b.height||null,mimeType:b.mimeType,channelsCount:b.Dd,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function Fp(a,b){var c=xp(a,Gp),d=Hp(a);if(!d.za&&!d.timeline&&1<d.kc.length)throw new M(2,4,4002);if(!d.za&&!a.Y.duration&&!d.timeline&&1==d.kc.length)throw new M(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new M(2,4,4002);var e=null,f=null;a.qa.id&&a.L.id&&(f=b[a.qa.id+","+a.L.id])&&(e=f.segmentIndex);var g=Ip(a.Y.start,a.Y.duration,a.L.Na,d,c);b=!e;e?e.lc(g,a.presentationTimeline.kb()):e=new Tj(g);a.presentationTimeline.mc(g);a.wb&&a.Y.re||e.xb(a.Y.start,a.Y.duration?a.Y.start+a.Y.duration:
|
|
648
648
|
Infinity,b);f&&(f.segmentIndex=e);return{bc:function(){e&&0!=e.g.length||e.Tc(g);return Promise.resolve(e)}}}function Gp(a){return a.Db}function Hp(a){var b=Jp(a);a=ip(a,Gp);var c=a.qc;0==c&&(c=1);var d=0;a.za?d=a.za*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{za:a.za,startTime:d,qc:c,qb:a.qb,timeline:a.timeline,kc:b}}
|
|
649
649
|
function Ip(a,b,c,d,e){var f=d.kc.length;d.timeline&&d.timeline.length!=d.kc.length&&(f=Math.min(d.timeline.length,d.kc.length));for(var g=a-d.qb,h=b?a+b:Infinity,k=[],l=d.startTime,m={},p=0;p<f;m={Xd:m.Xd},p++){var n=d.kc[p];m.Xd=Bb(c,[n.oh]);var t=void 0;t=null!=d.za?l+d.za:d.timeline?d.timeline[p].end:l+b;k.push(new Ai(a+l,a+t,function(v){return function(){return v.Xd}}(m),n.start,n.end,e,g,a,h));l=t}return k}
|
|
650
|
-
function Jp(a){return[a.L.Db,a.
|
|
650
|
+
function Jp(a){return[a.L.Db,a.wa.Db,a.qa.Db].filter(Ab).map(function(b){return Uf(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.Nf&&(a.Nf=!0);var c=b.getAttribute("media");b=bg(b,"mediaRange",eg,{start:0,end:null});return{oh:c,start:b.start,end:b.end}})};function Kp(a,b,c,d,e,f){var g=Mp(a),h=Np(a);Op(h);var k=ff(a);if(h.Pc)return Ep(a,g),{bc:function(){var t=hp(h.Pc,k.L.id,null,k.bandwidth||null,null);t=Bb(k.L.Na,[t]);return Dp(k,b,g,t,0,null,h.qb)}};if(h.za)return d||"image"===a.wa.contentType||(a.presentationTimeline.Ce(h.za),a.presentationTimeline.De(a.Y.start)),{bc:function(){return Pp(k,h,e,g,f)}};var l=null;d=d=null;a.qa.id&&a.L.id&&(d=a.qa.id+","+a.L.id,d=c[d])&&(l=d.segmentIndex);var m=Qp(k,h,g);c=a.Y.start;var p=a.Y.duration?a.Y.start+a.Y.duration:
|
|
651
651
|
Infinity,n=!(a.wb&&a.Y.re);l?(n&&(new Tj(m)).xb(c,p,!0),l.lc(m,a.presentationTimeline.kb())):l=new Tj(m);a.presentationTimeline.mc(m);n&&l.xb(c,p);d&&a.wb&&(d.segmentIndex=l);return{bc:function(){l&&0!=l.g.length||l.Tc(m);return Promise.resolve(l)}}}function Rp(a){return a.$c}function Np(a){var b=ip(a,Rp),c=jp(a,Rp,"media");a=jp(a,Rp,"index");return{za:b.za,timescale:b.timescale,qc:b.qc,qb:b.qb,ef:b.ef,timeline:b.timeline,Ae:c,Pc:a}}
|
|
652
652
|
function Op(a){var b=a.Pc?1:0;b+=a.timeline?1:0;b+=a.za?1:0;if(0==b)throw new M(2,4,4002);1!=b&&(a.Pc&&(a.timeline=null),a.za=null);if(!a.Pc&&!a.Ae)throw new M(2,4,4002);}
|
|
653
653
|
function Pp(a,b,c,d,e){function f(K){var Q=(K-t)*n,V=Q+b.qb,U=Q+l;Q=U+n;var ia=Math.min(Q,h());U=new Ai(U,ia,function(){var O=hp(y,x,K,w,V*v);return Bb(C,[O])},0,null,d,z,l,h());U.l=Q;return U}function g(){var K=[Math.max(k.kb(),l),Math.min(k.Ib(),h())].map(function(Q){return Q-l});return[Math.ceil(K[0]/n),Math.ceil(K[1]/n)-1].map(function(Q){return Q+t})}function h(){var K=null!=m&&e[m]||p;return K?l+K:Infinity}var k=a.presentationTimeline,l=a.Y.start,m=a.qa.id,p=a.Y.duration,n=b.za,t=b.qc,v=b.timescale,
|
|
@@ -687,7 +687,7 @@ function yq(a){var b,c,d,e,f,g,h;return F(function(k){if(1==k.g)return b=nf(a.m,
|
|
|
687
687
|
function Aq(a,b,c){var d,e,f,g,h;return F(function(k){if(1==k.g){d=mg(b,"MPD");if(!d)throw new M(2,4,4001,c);if(e=a.g.dash.disableXlinkProcessing)return k.return(Bq(a,d,c));f=a.g.dash.xlinkFailGracefully;g=mp(d,a.g.retryParameters,f,c,a.h.networkingEngine);hf(a.s,g);return u(k,g.promise,2)}h=k.h;return k.return(Bq(a,h,c))})}
|
|
688
688
|
function Bq(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,C,z,A,E,G,H,J,K,Q,V,U,ia,O,qa,Ka,Ca,Va;return F(function(Oa){switch(Oa.g){case 1:(d=a.g.dash.manifestPreprocessor)&&d(b);e=[c];f=Uf(b,"Location").map($f).filter(Ab);0<f.length&&(g=Bb(e,f),e=a.m=g);h=Uf(b,"BaseURL");k=h.map($f);l=Bb(e,k);m=0;h&&h.length&&(m=bg(h[0],"availabilityTimeOffset",ig)||0);p=a.g.dash.ignoreMinBufferTime;n=0;p||(n=bg(b,"minBufferTime",dg)||0);a.H=bg(b,"minimumUpdatePeriod",dg,-1);t=bg(b,"availabilityStartTime",cg);v=bg(b,
|
|
689
689
|
"timeShiftBufferDepth",dg);y=a.g.dash.ignoreSuggestedPresentationDelay;w=null;y||(w=bg(b,"suggestedPresentationDelay",dg));x=a.g.dash.ignoreMaxSegmentDuration;C=null;x||(C=bg(b,"maxSegmentDuration",dg));z=b.getAttribute("type")||"static";if(a.i)for(A=a.i.presentationTimeline,E=r(Object.values(a.l)),G=E.next();!G.done;G=E.next())H=G.value,H.segmentIndex&&H.segmentIndex.Gb(A.kb());else J=a.g.defaultPresentationDelay||1.5*n,K=null!=w?w:J,A=new P(t,K,a.g.dash.autoCorrectDrift);A.bd("static"==z);(Q=A.S())&&
|
|
690
|
-
!isNaN(a.g.availabilityWindowOverride)&&(v=a.g.availabilityWindowOverride);null==v&&(v=Infinity);A.Ue(v);V=b.getAttribute("profiles")||"";U={wb:"static"!=z,presentationTimeline:A,qa:null,Y:null,
|
|
690
|
+
!isNaN(a.g.availabilityWindowOverride)&&(v=a.g.availabilityWindowOverride);null==v&&(v=Infinity);A.Ue(v);V=b.getAttribute("profiles")||"";U={wb:"static"!=z,presentationTimeline:A,qa:null,Y:null,wa:null,L:null,bandwidth:0,Nf:!1,$b:m,profiles:V.split(",")};ia=Cq(a,U,l,b);O=ia.duration;qa=ia.periods;"static"!=z&&ia.Ff||A.Sa(O||Infinity);a.C&&!a.F&&(Ka=a.h.isAutoLowLatencyMode())&&(a.h.enableLowLatencyMode(),a.F=a.h.isLowLatencyMode());a.F?A.Vf(a.C):a.C&&Ua("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");
|
|
691
691
|
A.Ce(C||1);return u(Oa,Tp(a.j,qa,U.wb),2);case 2:if(a.i){a.i.variants=a.j.l;a.i.textStreams=a.j.j.slice();a.i.imageStreams=a.j.i;a.h.filter(a.i);Oa.D(3);break}a.i={presentationTimeline:A,variants:a.j.l,textStreams:a.j.j.slice(),imageStreams:a.j.i,offlineSessionIds:[],minBufferTime:n||0,sequenceMode:a.g.dash.sequenceMode};if(!A.gg()){Oa.D(4);break}Ca=Uf(b,"UTCTiming");return u(Oa,Dq(a,l,Ca),5);case 5:Va=Oa.h;if(!a.h)return Oa.return();A.Wf(Va);case 4:A.ye();case 3:a.h.makeTextStreamsForClosedCaptions(a.i),
|
|
692
692
|
B(Oa)}})}
|
|
693
693
|
function Cq(a,b,c,d){var e=bg(d,"mediaPresentationDuration",dg),f=[],g=0;d=Uf(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=bg(k,"start",dg,g),p=k.id,n=bg(k,"duration",dg),t=null;if(l){var v=bg(l,"start",dg);null!=v&&(t=v-m)}else null!=e&&(t=e-m);null==t&&(t=n);if(!(null!==a.B&&null!==p&&null!==m&&m<a.B)||a.K.includes(p)||h+1==d.length){null!==m&&(null===a.B||m>a.B)&&(a.B=m);g=Eq(a,b,c,{start:m,duration:t,node:k,re:null==t||!l});f.push(g);b.qa.id&&t&&(a.M[b.qa.id]=t);if(null==t){g=
|
|
@@ -696,16 +696,16 @@ function Eq(a,b,c,d){b.qa=Fq(d.node,null,c);b.Y=d;b.qa.$b=b.$b;b.qa.id||(b.qa.id
|
|
|
696
696
|
}d=c.filter(function(m){return!m.$e});c=c.filter(function(m){return m.$e});c=r(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.$e.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={jd:h.jd},l=k.next())h.jd=l.value,h.jd.trickModeVideo=e.streams.find(function(m){return function(p){return yd(m.jd.codecs)==yd(p.codecs)}}(h))}}}e=a.g.disableAudio?[]:Iq(d,"audio");g=a.g.disableVideo?[]:Iq(d,"video");f=a.g.disableText?
|
|
697
697
|
[]:Iq(d,Gb);c=a.g.disableThumbnails?[]:Iq(d,"image");if(!g.length&&!e.length)throw new M(2,4,4004);d=[];e=r(e);for(h=e.next();!h.done;h=e.next())d.push.apply(d,ha(h.value.streams));e=[];g=r(g);for(h=g.next();!h.done;h=g.next())e.push.apply(e,ha(h.value.streams));g=[];f=r(f);for(h=f.next();!h.done;h=f.next())g.push.apply(g,ha(h.value.streams));f=[];c=r(c);for(h=c.next();!h.done;h=c.next())f.push.apply(f,ha(h.value.streams));return{id:b.qa.id,od:d,Qd:e,textStreams:g,imageStreams:f}}
|
|
698
698
|
function Iq(a,b){return a.filter(function(c){return c.contentType==b})}
|
|
699
|
-
function Hq(a,b,c){function d(G){switch(G){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.
|
|
699
|
+
function Hq(a,b,c){function d(G){switch(G){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.wa=Fq(c,b.qa,null);var e=!1,f=Uf(c,"Role"),g=f.map(function(G){return G.getAttribute("value")}).filter(Ab),h=void 0,k=b.wa.contentType==Gb;k&&(h="subtitle");f=r(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=l.getAttribute("schemeIdUri");if(null==m||"urn:mpeg:dash:role:2011"==m)switch(l=l.getAttribute("value"),l){case "main":e=!0;break;case "caption":case "subtitle":h=
|
|
700
700
|
l}}var p;m=Uf(c,"EssentialProperty");f=null;l=!1;m=r(m);for(var n=m.next();!n.done;n=m.next()){n=n.value;var t=n.getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==t?f=n.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==t?p=d(parseInt(n.getAttribute("value"),10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"!=t&&"urn:mpeg:mpegB:cicp:MatrixCoefficients"!=t&&(l=!0)}m=Uf(c,"SupplementalProperty");m=r(m);for(n=m.next();!n.done;n=m.next())n=n.value,"urn:mpeg:mpegB:cicp:TransferCharacteristics"==
|
|
701
701
|
n.getAttribute("schemeIdUri")&&(p=d(parseInt(n.getAttribute("value"),10)));m=Uf(c,"Accessibility");var v=new Map;m=r(m);for(n=m.next();!n.done;n=m.next())if(t=n.value,n=t.getAttribute("schemeIdUri"),t=t.getAttribute("value"),"urn:scte:dash:cc:cea-608:2015"==n)if(n=1,null!=t){t=t.split(";");for(var y=r(t),w=y.next();!w.done;w=y.next()){var x=w.value,C=w=void 0;x.includes("=")?(x=x.split("="),w=x[0].startsWith("CC")?x[0]:"CC"+x[0],C=x[1]||"und"):(w="CC"+n,2==t.length?n+=2:n++,C=x);v.set(w,Kb(C))}}else v.set("CC1",
|
|
702
702
|
"und");else if("urn:scte:dash:cc:cea-708:2015"==n)if(n=1,null!=t)for(t=r(t.split(";")),w=t.next();!w.done;w=t.next())w=w.value,x=y=void 0,w.includes("=")?(w=w.split("="),y="svc"+w[0],x=w[1].split(",")[0].split(":").pop()):(y="svc"+n,n++,x=w),v.set(y,Kb(x));else v.set("svc1","und");else"urn:mpeg:dash:role:2011"==n&&null!=t&&(g.push(t),"captions"==t&&(h="caption"));if(l)return null;l=Uf(c,"ContentProtection");var z=Yo(l,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),A=Kb(c.getAttribute("lang")||"und"),
|
|
703
|
-
E=c.getAttribute("label");(l=Uf(c,"Label"))&&l.length&&(l=l[0],l.textContent&&(E=l.textContent));l=Uf(c,"Representation");c=l.map(function(G){if(G=Jq(a,b,z,h,A,E,e,g,v,G))G.hdr=G.hdr||p;return G}).filter(function(G){return!!G});if(0==c.length){f="image"==b.
|
|
704
|
-
b.
|
|
705
|
-
function Jq(a,b,c,d,e,f,g,h,k,l){b.L=Fq(l,b.
|
|
703
|
+
E=c.getAttribute("label");(l=Uf(c,"Label"))&&l.length&&(l=l[0],l.textContent&&(E=l.textContent));l=Uf(c,"Representation");c=l.map(function(G){if(G=Jq(a,b,z,h,A,E,e,g,v,G))G.hdr=G.hdr||p;return G}).filter(function(G){return!!G});if(0==c.length){f="image"==b.wa.contentType;if(a.g.dash.ignoreEmptyAdaptationSet||k||f)return null;throw new M(2,4,4003);}if(!b.wa.contentType||"application"==b.wa.contentType)for(b.wa.contentType=Kq(c[0].mimeType,c[0].codecs),k=r(c),m=k.next();!m.done;m=k.next())m.value.type=
|
|
704
|
+
b.wa.contentType;k=r(c);for(m=k.next();!m.done;m=k.next())for(m=m.value,n=r(z.drmInfos),t=n.next();!t.done;t=n.next())t=t.value,t.keyIds=t.keyIds&&m.keyIds?new Set([].concat(ha(t.keyIds),ha(m.keyIds))):t.keyIds||m.keyIds;k=l.map(function(G){return G.getAttribute("id")}).filter(Ab);return{id:b.wa.id||"__fake__"+a.I++,contentType:b.wa.contentType,language:A,sj:e,streams:c,drmInfos:z.drmInfos,$e:f,Dh:k}}
|
|
705
|
+
function Jq(a,b,c,d,e,f,g,h,k,l){b.L=Fq(l,b.wa,null);a.C=Math.min(a.C,b.L.$b);if(!Lq(b.L))return null;var m=b.Y.start;b.bandwidth=bg(l,"bandwidth",gg)||0;var p=b.L.contentType,n=p==Gb||"application"==p;p="image"==p;try{var t=function(G,H,J){return Mq(a,G,H,J)};if(b.L.Zc)var v=zp(b,t);else if(b.L.Db)v=Fp(b,a.l);else if(b.L.$c)v=Kp(b,t,a.l,!!a.i,a.g.dash.initialSegmentLimit,a.M);else{var y=b.L.Na,w=b.Y.duration||0;v={bc:function(){return Promise.resolve(Wj(m,w,y))}}}}catch(G){if((n||p)&&4002==G.code)return null;
|
|
706
706
|
throw G;}t=Uf(l,"ContentProtection");t=ap(t,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);t=new Set(t?[t]:[]);var x=!1;Uf(l,"SupplementalProperty").some(function(G){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==G.getAttribute("schemeIdUri")&&"JOC"==G.getAttribute("value")})&&(x=!0);var C=!1;n&&(C=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var z;if(p&&((l=Uf(l,"EssentialProperty").find(function(G){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(G.getAttribute("schemeIdUri"))}))&&
|
|
707
707
|
(z=l.getAttribute("value")),!z))return null;var A;l=b.L.codecs;b.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(l.includes("hvc1.2.4.L153.B0")||l.includes("hev1.2.4.L153.B0"))&&(A="PQ");l=b.L.id?b.qa.id+","+b.L.id:"";var E=l&&a.l[l]?a.l[l]:{id:a.I++,originalId:b.L.id,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){E.segmentIndex&&(E.segmentIndex.release(),E.segmentIndex=null)},segmentIndex:null,mimeType:b.L.mimeType,codecs:b.L.codecs,
|
|
708
|
-
frameRate:b.L.frameRate,pixelAspectRatio:b.L.pixelAspectRatio,bandwidth:b.bandwidth,width:b.L.width,height:b.L.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:t,language:e,label:f,type:b.
|
|
708
|
+
frameRate:b.L.frameRate,pixelAspectRatio:b.L.pixelAspectRatio,bandwidth:b.bandwidth,width:b.L.width,height:b.L.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:t,language:e,label:f,type:b.wa.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.L.emsgSchemeIdUris,roles:h,forced:C,channelsCount:b.L.Dd,audioSamplingRate:b.L.audioSamplingRate,spatialAudio:x,closedCaptions:k,hdr:A,tilesLayout:z,matchedStreams:[],external:!1};E.createSegmentIndex=function(){var G;return F(function(H){if(1==
|
|
709
709
|
H.g){if(E.segmentIndex)return H.D(0);G=E;return u(H,v.bc(),3)}G.segmentIndex=H.h;B(H)})};l&&b.wb&&!a.l[l]&&(a.l[l]=E);return E}function xq(a){var b,c;F(function(d){switch(d.g){case 1:return b=0,D(d,2),u(d,yq(a),4);case 4:b=d.h;va(d,3);break;case 2:c=wa(d),a.h&&(c.severity=1,a.h.onError(c));case 3:if(!a.h)return d.return();zq(a,b);B(d)}})}function zq(a,b){0>a.H||a.G.R(Math.max(3,a.H-b,$b(a.J)))}
|
|
710
710
|
function Fq(a,b,c){b=b||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Dd:null,audioSamplingRate:null,$b:0};c=c||b.Na;var d=Uf(a,"BaseURL"),e=d.map($f),f=a.getAttribute("contentType")||b.contentType,g=a.getAttribute("mimeType")||b.mimeType,h=a.getAttribute("codecs")||b.codecs,k=bg(a,"frameRate",jg)||b.frameRate,l=a.getAttribute("sar")||b.pixelAspectRatio,m=Uf(a,"InbandEventStream"),p=b.emsgSchemeIdUris.slice();m=r(m);for(var n=m.next();!n.done;n=
|
|
711
711
|
m.next())n=n.value.getAttribute("schemeIdUri"),p.includes(n)||p.push(n);m=Uf(a,"AudioChannelConfiguration");m=Nq(m)||b.Dd;n=bg(a,"audioSamplingRate",hg)||b.audioSamplingRate;f||(f=Kq(g,h));var t=Tf(a,"SegmentBase"),v=Tf(a,"SegmentTemplate"),y=t?bg(t,"availabilityTimeOffset",ig)||0:0,w=v?bg(v,"availabilityTimeOffset",ig)||0:0;d=d&&d.length?bg(d[0],"availabilityTimeOffset",ig)||0:0;d=b.$b+d+y+w;return{Na:Bb(c,e),Zc:t||b.Zc,Db:Tf(a,"SegmentList")||b.Db,$c:v||b.$c,width:bg(a,"width",hg)||b.width,height:bg(a,
|
|
@@ -723,7 +723,7 @@ function dr(a,b,c){b=$c(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var d
|
|
|
723
723
|
var l=d.splice(g,d.length-g);d=c;e=[];g=[];k=[];h=null;l=r(l);for(var m=l.next();!m.done;m=l.next())m=m.value,/^(#EXT)/.test(m)?(m=er(a,m),fr.includes(m.name)?f.push(m):"EXT-X-MAP"==m.name?h=m:"EXT-X-PART"==m.name?k.push(m):"EXT-X-PRELOAD-HINT"==m.name?"PART"==W(m,"TYPE")?null!=W(m,"BYTERANGE-START")?null!=W(m,"BYTERANGE-LENGTH")&&k.push(m):k.push(m):"MAP"==W(m,"TYPE")&&(m.name="EXT-X-MAP",h=m):g.push(m)):/^#(?!EXT)/m.test(m)||(m=Yq(d,m.trim()),h&&g.push(h),e.push(new Sq(m,g,k)),g=[],k=[]);k.length&&
|
|
724
724
|
(h&&g.push(h),e.push(new Sq("",g,k)));return new Pq(c,b,f,e)}f.push(h);"EXT-X-STREAM-INF"==h.name&&(h.g.push(new Tq("URI",k)),e=!0)}}return new Pq(c,b,f)}function er(a,b){a=a.g++;var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new M(2,4,4016,b);b=c[1];var d=c[2];c=[];var e;if(d){d=new Zq(d);var f;(f=ar(d,/^([^,=]+)(?:,|$)/g))&&(e=f[1]);for(var g=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;f=ar(d,g);)c.push(new Tq(f[1],f[2]||f[3])),$q(d)}return new Qq(a,b,c,e)}
|
|
725
725
|
var fr="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP EXT-X-PART-INF".split(" "),gr="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function hr(){}function ir(a){try{var b=jr(a);return af({uri:a,originalUri:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return Ze(c)}}
|
|
726
|
-
function jr(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new M(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new M(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=id(a):e=dd(a);return{data:e,contentType:c}}I("shaka.net.DataUriPlugin",hr);hr.parse=ir;kf("data",ir);function kr(){var a=this;this.g=this.i=null;this.
|
|
726
|
+
function jr(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new M(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new M(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=id(a):e=dd(a);return{data:e,contentType:c}}I("shaka.net.DataUriPlugin",hr);hr.parse=ir;kf("data",ir);function kr(){var a=this;this.g=this.i=null;this.ua=1;this.s=new Map;this.C=new Map;this.H=new Map;this.H.set("video",new Map);this.H.set("audio",new Map);this.H.set(Gb,new Map);this.H.set("image",new Map);this.ba=new Set;this.h=new Map;this.j=null;this.N="";this.X=new cr;this.P=0;this.F=-1;this.J=Infinity;this.va=!1;this.m=new N(function(){lr(a)});this.aa=mr;this.G=null;this.$=0;this.K=Infinity;this.V=this.sa=0;this.I=new gf;this.M=new Map;this.B=new Map;this.Z=new Map;this.l=!1}q=kr.prototype;
|
|
727
727
|
q.configure=function(a){this.g=a};q.start=function(a,b){var c=this,d;return F(function(e){return 1==e.g?(c.i=b,c.l=b.isLowLatencyMode(),u(e,nr(c,a),2)):3!=e.g?(d=e.h,c.N=d.uri,u(e,or(c,d.data,a),3)):e.return(c.G)})};q.stop=function(){this.m&&(this.m.stop(),this.m=null);var a=[];this.I&&(a.push(this.I.destroy()),this.I=null);this.g=this.i=null;this.ba.clear();this.G=null;this.h.clear();this.C.clear();this.B.clear();this.s.clear();return Promise.all(a)};
|
|
728
728
|
q.update=function(){var a=this,b,c,d,e,f,g,h,k,l;return F(function(m){if(1==m.g){if(!pr(a))return m.return();b=[];c=Array.from(a.h.values());d=c.filter(function(p){return p.stream.segmentIndex});e=r(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(qr(a,g));return u(m,Promise.all(b),2)}rr(a,d.map(function(p){return p.stream}));h=d.some(function(p){return 0==p.Mc});d.length&&!h&&(k=sr,tr(a,k.kg),l=d.map(function(p){return p.mb}),a.j.Sa(Math.min.apply(Math,ha(l))),a.i.updateDuration());h&&ur(a);
|
|
729
729
|
B(m)})};function vr(a,b){return pr(a)?a.H.get(b.type):b.Bd}
|
|
@@ -744,7 +744,7 @@ function Lr(a,b){var c,d;return F(function(e){if(1==e.g)return c=b.map(function(
|
|
|
744
744
|
function Hr(a,b){b=b.filter(function(d){var e=W(d,"URI")||"";return"SUBTITLES"!=W(d,"TYPE")&&""!=e});b=r(b);for(var c=b.next();!c.done;c=b.next())Qr(a,c.value)}
|
|
745
745
|
function Jr(a,b,c){var d=[],e=new Set;if(0<c.length){c=r(c);for(var f=c.next();!f.done;f=c.next()){f=f.value;var g=Rq(f,"METHOD");if("NONE"!=g&&"AES-128"!=g&&(g=W(f,"KEYFORMAT")||"identity",f=(g=Ur[g])?g(f,""):null)){if(f.keyIds){g=r(f.keyIds);for(var h=g.next();!h.done;h=g.next())e.add(h.value)}d.push(f)}}}b=b.map(function(k){var l=W(k,"FRAME-RATE"),m=Number(W(k,"AVERAGE-BANDWIDTH"))||Number(Rq(k,"BANDWIDTH")),p=W(k,"RESOLUTION");p=r(p?p.split("x"):[null,null]);var n=p.next().value,t=p.next().value,
|
|
746
746
|
v=W(k,"VIDEO-RANGE");k=Vr(a,k);p=k.audio;k=k.video;for(var y=r(k),w=y.next();!w.done;w=y.next())if(w=w.value.stream)w.width=Number(n)||void 0,w.height=Number(t)||void 0,w.frameRate=Number(l)||void 0,w.hdr=v||void 0;l=a.g.disableAudio;if(!p.length||l)p=[null];l=a.g.disableVideo;if(!k.length||l)k=[null];l=[];p=r(p);for(n=p.next();!n.done;n=p.next())for(n=n.value,t=r(k),v=t.next();!v.done;v=t.next()){var x=v.value;if(v=n?n.stream:null)v.drmInfos=d,v.keyIds=e;if(y=x?x.stream:null)y.drmInfos=d,y.keyIds=
|
|
747
|
-
e;w=n?n.stream.drmInfos:null;var C=x?x.stream.drmInfos:null;x=(x?x.cd:"")+" - "+(n?n.cd:"");v&&y&&w.length&&C.length&&!(0<Xg(w,C).length)||a.ba.has(x)||(v={id:a.
|
|
747
|
+
e;w=n?n.stream.drmInfos:null;var C=x?x.stream.drmInfos:null;x=(x?x.cd:"")+" - "+(n?n.cd:"");v&&y&&w.length&&C.length&&!(0<Xg(w,C).length)||a.ba.has(x)||(v={id:a.ua++,language:v?v.language:"und",primary:!!v&&v.primary||!!y&&y.primary,audio:v,video:y,bandwidth:m,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},l.push(v),a.ba.add(x))}return l}).reduce(xb,[]);return b=b.filter(function(k){return null!=k})}
|
|
748
748
|
function Vr(a,b){var c=Gr(a,b),d=W(b,"AUDIO"),e=W(b,"VIDEO"),f=d||e;f=f&&a.C.has(f)?a.C.get(f):[];d={audio:d?f:[],video:e?f:[]};e=!1;var g=Rq(b,"URI"),h=d.audio.find(function(m){return m&&m.cd==g}),k=Eb("video",c),l=Eb("audio",c);l&&!k?f="audio":!f.length&&l&&k?(f="video",c=[[k,l].join()]):d.audio.length&&h?(f="audio",e=!0):f=d.video.length&&!d.audio.length?"audio":"video";e||(a=Wr(a,b,c,f),d[a.stream.type]=[a]);return d}
|
|
749
749
|
function Gr(a,b){var c=[];a.g.disableVideo||c.push(a.g.hls.defaultVideoCodec);a.g.disableAudio||c.push(a.g.hls.defaultAudioCodec);c=W(b,"CODECS",c.join(",")).split(/\s*,\s*/);a=new Set;b=[];c=r(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=zd(d)[0];a.has(e)||(b.push(d),a.add(e))}return b}function Ir(a){a=W(a,"LANGUAGE")||"und";return Kb(a)}
|
|
750
750
|
function Qr(a,b){var c=Rq(b,"GROUP-ID"),d="",e=Rq(b,"TYPE").toLowerCase();"subtitles"==e&&(e=Gb);var f=e;f==Gb?d=W(b,"CODECS")||"":c&&a.B.has(c)&&(d=a.B.get(c));e=Xr(Rq(b,"URI"),a.s);if(a.h.has(e))return a.h.get(e);var g=Ir(b),h=W(b,"NAME"),k="YES"==W(b,"DEFAULT");var l="audio"==f?(l=W(b,"CHANNELS"))?parseInt(l.split("/")[0],10):null:null;var m="audio"==f?(m=W(b,"CHANNELS"))?m.includes("/JOC"):!1:!1;var p=W(b,"CHARACTERISTICS");b="YES"==W(b,"FORCED");d=Yr(a,e,d,f,g,k,h,l,null,p,b,m);a.C.has(c)?a.C.get(c).push(d):
|
|
@@ -752,22 +752,22 @@ a.C.set(c,[d]);if(a.h.has(e))return a.h.get(e);a.h.set(e,d);return d}
|
|
|
752
752
|
function Tr(a,b){var c,d,e,f,g,h,k,l,m,p;return F(function(n){if(1==n.g){c=Xr(Rq(b,"URI"),a.s);d=W(b,"CODECS","jpeg")||"";if(a.h.has(c))return n.return(a.h.get(c));e=Ir(b);f=W(b,"NAME");g=W(b,"CHARACTERISTICS");h=Yr(a,c,d,"image",e,!1,f,null,null,g,!1,!1);return a.h.has(c)?n.return(a.h.get(c)):(k=W(b,"RESOLUTION"))?u(n,h.stream.createSegmentIndex(),3):n.D(2)}2!=n.g&&(l=h.stream.segmentIndex.get(0),m=l.tilesLayout)&&(h.stream.width=Number(k.split("x")[0])*Number(m.split("x")[0]),h.stream.height=Number(k.split("x")[1])*
|
|
753
753
|
Number(m.split("x")[1]));if(p=W(b,"BANDWIDTH"))h.stream.bandwidth=Number(p);a.h.set(c,h);return n.return(h)})}function Wr(a,b,c,d){var e=Xr(Rq(b,"URI"),a.s);if(a.h.has(e))return a.h.get(e);b=W(b,"CLOSED-CAPTIONS");b="video"==d&&b&&"NONE"!=b?a.M.get(b):null;c=Db(d,c);d=Yr(a,e,c,d,"und",!1,null,null,b,null,!1,!1);if(a.h.has(e))return a.h.get(e);a.h.set(e,d);return d}
|
|
754
754
|
function Yr(a,b,c,d,e,f,g,h,k,l,m,p){function n(C){var z,A,E,G,H,J,K,Q,V,U,ia,O,qa,Ka;return F(function(Ca){if(1==Ca.g)return u(Ca,nr(a,y.md),2);if(3!=Ca.g){z=Ca.h;if(C.aborted)return Ca.return();A=z.uri;E=dr(a.X,z.data,A);G=pr(a);return u(Ca,Fr(a,E,b,A,c,d,e,f,g,h,k,l,m,p),3)}H=Ca.h;if(C.aborted)return Ca.return();J=H.stream;pr(a)&&!G&&Mr(a);y.md=A;y.Ob=H.Ob;y.mb=H.mb;y.qd=H.qd;y.Mc=H.Mc;y.Bd=H.Bd;y.xe=!0;v.segmentIndex=J.segmentIndex;v.encrypted=J.encrypted;v.drmInfos=J.drmInfos;v.keyIds=J.keyIds;
|
|
755
|
-
v.mimeType=J.mimeType;hj.includes(v.mimeType)&&(v.codecs="");v.drmInfos.length&&a.i.newDrmInfo(v);K=Hb;if(d==K.Ma||d==K.kd)for(Q=r(a.h.values()),V=Q.next();!V.done;V=Q.next())U=V.value,U.xe||U.type!=d||(U.stream.mimeType=J.mimeType,hj.includes(U.stream.mimeType)&&(U.stream.codecs=""));d==K.ea&&(ia=J.segmentIndex.get(0))&&ia.h&&(v.mimeType="application/mp4");Zr(a)&&(a.
|
|
755
|
+
v.mimeType=J.mimeType;hj.includes(v.mimeType)&&(v.codecs="");v.drmInfos.length&&a.i.newDrmInfo(v);K=Hb;if(d==K.Ma||d==K.kd)for(Q=r(a.h.values()),V=Q.next();!V.done;V=Q.next())U=V.value,U.xe||U.type!=d||(U.stream.mimeType=J.mimeType,hj.includes(U.stream.mimeType)&&(U.stream.codecs=""));d==K.ea&&(ia=J.segmentIndex.get(0))&&ia.h&&(v.mimeType="application/mp4");Zr(a)&&(a.va?Nr(a,[y]):(a.va=!0,O=Array.from(a.h.values()),qa=O.filter(function(Va){return Va.stream.segmentIndex}),Nr(a,qa),ur(a),Ka=a.P,0<Ka&&
|
|
756
756
|
a.m.R(Ka)));B(Ca)})}var t=Yq(a.N,b),v=$r(a,c,d,e,f,g,h,k,l,m,p);hj.includes(v.mimeType)&&(v.codecs="");var y={stream:v,type:d,cd:b,md:t,Ob:0,mb:0,Bd:new Map,qd:!1,Mc:!1,me:-1,xe:!1},w=null,x=new AbortController;v.createSegmentIndex=function(){if(w)return w;x=new AbortController;return w=new Promise(function(C){C(n(x.signal))})};v.closeSegmentIndex=function(){w&&!v.segmentIndex&&x.abort();v.segmentIndex&&(v.segmentIndex.release(),v.segmentIndex=null);w=null};return y}
|
|
757
757
|
function Pr(a){var b=Infinity;a=r(a.h.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.stream.segmentIndex&&"text"!=c.stream.type&&(b=Math.min(b,c.mb));return b}function rr(a,b){var c=[];b=r(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&Uj(d.segmentIndex,function(e){c.push(e)});a.j.mc(c)}
|
|
758
758
|
function Nr(a,b){if(!pr(a))for(var c=Pr(a),d=r(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.xb(0,c);c=r(b);for(e=c.next();!e.done;e=c.next())e=e.value.stream,hj.includes(e.mimeType)&&(e.codecs="");rr(a,b.map(function(f){return f.stream}));a.g.hls.ignoreManifestProgramDateTime?zr(a,b):Br(a,b)}
|
|
759
759
|
function Zr(a){if(!a.G)return!1;var b=[],c=[];a=r(a.G.variants);for(var d=a.next();!d.done;d=a.next())d=d.value,d.video&&b.push(d.video),d.audio&&c.push(d.audio);return 0<b.length&&!b.some(function(e){return e.segmentIndex})||0<c.length&&!c.some(function(e){return e.segmentIndex})?!1:!0}
|
|
760
760
|
function Fr(a,b,c,d,e,f,g,h,k,l,m,p,n,t,v){var y,w,x,C,z,A,E,G,H,J,K,Q,V,U,ia,O;return F(function(qa){if(1==qa.g){if(1!=b.type)throw new M(2,4,4017);y=Uq(b.g,"EXT-X-DEFINE");w=wr(a,y);as(a,b);return v?qa.D(2):u(qa,bs(a,f,e,b,w),3)}2!=qa.g&&(v=qa.h);x=xr(b,v);C=x.drmInfos;z=x.keyIds;A=x.encrypted;E=x.og;if(A&&!C.length&&!E)throw new M(2,4,4026);G=pr(a)?a.H.get(f):new Map;H=a.l;J=yr(a,b,f,G,w);H!=a.l&&as(a,b);K=J[0].startTime;Q=J[J.length-1].endTime;V=new Tj(J);ia=(U=Wq(b.g,"EXT-X-SERVER-CONTROL"))?
|
|
761
761
|
null!=U.getAttribute("CAN-SKIP-UNTIL"):!1;O=$r(a,e,f,g,h,k,l,m,p,n,t);O.segmentIndex=V;O.encrypted=A;O.drmInfos=C;O.keyIds=z;O.mimeType=v;return qa.return({stream:O,type:f,cd:c,md:d,Ob:K,mb:Q,qd:ia,Mc:!1,me:-1,Bd:G,xe:!1})})}
|
|
762
|
-
function $r(a,b,c,d,e,f,g,h,k,l,m){var p=Rr(c,b)||Sr(c),n=[];if(k){k=r(k.split(","));for(var t=k.next();!t.done;t=k.next())n.push(t.value)}k=c==Gb?"subtitle":void 0;n.length||"subtitle"!==k||n.push("subtitle");return{id:a.
|
|
762
|
+
function $r(a,b,c,d,e,f,g,h,k,l,m){var p=Rr(c,b)||Sr(c),n=[];if(k){k=r(k.split(","));for(var t=k.next();!t.done;t=k.next())n.push(t.value)}k=c==Gb?"subtitle":void 0;n.length||"subtitle"!==k||n.push("subtitle");return{id:a.ua++,originalId:f,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:p,codecs:b,kind:k,encrypted:!1,drmInfos:[],keyIds:new Set,language:d,label:f,type:c,primary:e,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,
|
|
763
763
|
height:void 0,bandwidth:void 0,roles:n,forced:l,channelsCount:g,audioSamplingRate:null,spatialAudio:m,closedCaptions:h,hdr:void 0,tilesLayout:void 0,external:!1}}
|
|
764
764
|
function xr(a,b){var c=[];if(a.segments){a=r(a.segments);for(var d=a.next();!d.done;d=a.next())d=Uq(d.value.g,"EXT-X-KEY"),c.push.apply(c,ha(d))}d=a=!1;var e=[],f=new Set;c=r(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=Rq(g,"METHOD");if("NONE"!=h)if(a=!0,"AES-128"==h)d=!0;else if(h=W(g,"KEYFORMAT")||"identity",g=(h=Ur[h])?h(g,b):null){if(g.keyIds){h=r(g.keyIds);for(var k=h.next();!k.done;k=h.next())f.add(k.value)}e.push(g)}}return{drmInfos:e,keyIds:f,encrypted:a,og:d}}
|
|
765
765
|
function cs(a,b,c){if(!window.crypto||!window.crypto.subtle)throw Ua("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new M(2,4,4042);var d=0,e=W(b,"IV","");if(e){var f=jd(e.substr(2));if(16!=f.byteLength)throw new M(2,4,4043);}else d=Xq(c.g,"EXT-X-MEDIA-SEQUENCE");b=Yq(c.h,Rq(b,"URI"));var g=nf([b],a.g.retryParameters),h={method:"AES-128",iv:f,firstMediaSequenceNumber:d,fetchKey:function(){var k,l,m;return F(function(p){if(1==p.g)return u(p,
|
|
766
766
|
ds(a,g,6),2);if(3!=p.g){k=p.h;if(!k.data||16!=k.data.byteLength)throw new M(2,4,4044);l={name:"AES-CBC"};m=h;return u(p,window.crypto.subtle.importKey("raw",k.data,l,!0,["decrypt"]),3)}m.cryptoKey=p.h;h.fetchKey=void 0;B(p)})}};return h}
|
|
767
|
-
function as(a,b){var c=Wq(b.g,"EXT-X-PLAYLIST-TYPE"),d=Wq(b.g,"EXT-X-ENDLIST");d=c&&"VOD"==c.value||d;c=c&&"EVENT"==c.value&&!d;c=!d&&!c;if(d)tr(a,mr);else{c?tr(a,Or):tr(a,es);d=Wq(b.g,"EXT-X-TARGETDURATION");if(!d)throw new M(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);c=Wq(b.g,"EXT-X-PART-INF");a.l&&c?(a.
|
|
767
|
+
function as(a,b){var c=Wq(b.g,"EXT-X-PLAYLIST-TYPE"),d=Wq(b.g,"EXT-X-ENDLIST");d=c&&"VOD"==c.value||d;c=c&&"EVENT"==c.value&&!d;c=!d&&!c;if(d)tr(a,mr);else{c?tr(a,Or):tr(a,es);d=Wq(b.g,"EXT-X-TARGETDURATION");if(!d)throw new M(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);c=Wq(b.g,"EXT-X-PART-INF");a.l&&c?(a.sa=Number(Rq(c,"PART-TARGET")),a.K=Math.min(a.sa,a.K),b=Wq(b.g,"EXT-X-SERVER-CONTROL"),a.V=b?Number(Rq(b,"PART-HOLD-BACK")):0):a.K=Math.min(d,a.K);a.$=Math.max(d,a.$)}}
|
|
768
768
|
function Mr(a){var b=a.g.defaultPresentationDelay?a.g.defaultPresentationDelay:a.V?a.V:a.$*a.g.hls.liveSegmentsDelay;a.j.$f(0);a.j.Xf(b);a.j.bd(!1)}function fs(a,b,c,d){c=Wq(c,"EXT-X-MAP");if(!c)return null;var e=Rq(c,"URI");d=Xr(Yq(b,e),d);b=[d,W(c,"BYTERANGE","")].join("-");a.Z.has(b)||(c=gs(d,c),a.Z.set(b,c));return a.Z.get(b)}function gs(a,b){var c=0,d=null;if(b=W(b,"BYTERANGE"))c=b.split("@"),d=Number(c[0]),c=Number(c[1]),d=c+d-1;return new yi(function(){return[a]},c,d)}
|
|
769
769
|
function hs(a,b,c,d,e,f,g,h,k,l){var m=d.g,p=Xr(d.i,f),n=Wq(m,"EXTINF"),t=0;f=0;var v=null;d.h.length&&!a.l&&Ua("Low-latency HLS live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");var y=null;if(!a.g.hls.ignoreManifestProgramDateTime){var w=Wq(m,"EXT-X-PROGRAM-DATE-TIME");w&&w.value&&(y=cg(w.value))}w=Bi;Wq(m,"EXT-X-GAP")&&(w=2);if(!n){if(0==d.h.length)throw new M(2,4,
|
|
770
|
-
4024,"EXTINF");if(!a.l)return null}var x=[];if(a.l){t={};for(var C=0;C<d.h.length;t={Yd:t.Yd},C++){var z=d.h[C],A=0==C?c:x[x.length-1],E=0==C?e:A.endTime,G=Number(W(z,"DURATION"))||a.
|
|
770
|
+
4024,"EXTINF");if(!a.l)return null}var x=[];if(a.l){t={};for(var C=0;C<d.h.length;t={Yd:t.Yd},C++){var z=d.h[C],A=0==C?c:x[x.length-1],E=0==C?e:A.endTime,G=Number(W(z,"DURATION"))||a.sa;if(G){G=E+G;var H=0,J=null;"EXT-X-PRELOAD-HINT"==z.name?H=(H=W(z,"BYTERANGE-START"))?Number(H):0:(H=W(z,"BYTERANGE"),J=r(is(A,H)),H=J.next().value,J=J.next().value);if(A=W(z,"URI"))t.Yd=Yq(g,A),A=Bi,"YES"==W(z,"GAP")&&(A=2),E=new Ai(E,G,function(K){return function(){return[K.Yd]}}(t),H,J,b,0,0,Infinity,[],"",null,
|
|
771
771
|
null,A),"EXT-X-PRELOAD-HINT"==z.name&&E.Pf(),x.push(E)}}}if(n){a=Number(n.value.split(",")[0]);if(0==a)return null;t=e+a}else t=x[x.length-1].endTime;(a=Wq(m,"EXT-X-BYTERANGE"))?(v=r(is(c,a.value)),f=v.next().value,v=v.next().value):x.length&&(f=x[0].Ta,v=x[x.length-1].Ca);c="";a=null;"image"==h&&(c="1x1",h=Wq(m,"EXT-X-TILES"))&&(c=Rq(h,"LAYOUT"),(h=W(h,"DURATION"))&&(a=Number(h)));return new Ai(e,t,function(){return p.length?[p]:[]},f,v,b,k,0,Infinity,x,c,a,y,w,l)}
|
|
772
772
|
function is(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.Ca+1,d=c+b-1);return[c,d]}
|
|
773
773
|
function yr(a,b,c,d,e){var f=b.segments,g=void 0,h=Xq(b.g,"EXT-X-DISCONTINUITY-SEQUENCE"),k=Xq(b.g,"EXT-X-MEDIA-SEQUENCE"),l=Wq(b.g,"EXT-X-SKIP");l=l?Number(W(l,"SKIPPED-SEGMENTS")):0;var m=k+l,p=0;pr(a)&&d.has(m)&&(p=d.get(m));for(var n=[],t=null,v=p,y=0;y<f.length;y++){var w=f[y],x=0==y?p:t.endTime;m=k+l+y;Wq(w.g,"EXT-X-DISCONTINUITY")&&(h++,v=x);var C=r(w.g);for(var z=C.next();!z.done;z=C.next())z=z.value,"EXT-X-KEY"==z.name&&("AES-128"==Rq(z,"METHOD")?g=cs(a,z,b):g=void 0);d.set(m,x);C=fs(a,b.h,
|
|
@@ -1028,7 +1028,7 @@ sw:{u:"Kiswahili",A:"Swahili"},"sw-KE":{u:"Kiswahili",A:"Swahili (Kenya)"},ta:{u
|
|
|
1028
1028
|
A:"Thai"},"th-TH":{u:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",A:"Thai (Thailand)"},tl:{u:"Filipino",A:"Filipino"},"tl-PH":{u:"Filipino",A:"Filipino"},tlh:{u:"tlhIngan-Hol",A:"Klingon"},tr:{u:"T\u00fcrk\u00e7e",A:"Turkish"},"tr-TR":{u:"T\u00fcrk\u00e7e",A:"Turkish"},"tt-RU":{u:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",A:"Tatar"},uk:{u:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",A:"Ukrainian"},"uk-UA":{u:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",
|
|
1029
1029
|
A:"Ukrainian"},ur:{u:"\u0627\u0631\u062f\u0648",A:"Urdu"},"ur-PK":{u:"\u0627\u0631\u062f\u0648",A:"Urdu"},uz:{u:"O'zbek",A:"Uzbek"},"uz-UZ":{u:"O'zbek",A:"Uzbek"},vi:{u:"Ti\u1ebfng Vi\u1ec7t",A:"Vietnamese"},"vi-VN":{u:"Ti\u1ebfng Vi\u1ec7t",A:"Vietnamese"},"xh-ZA":{u:"isiXhosa",A:"Xhosa"},yi:{u:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",A:"Yiddish"},"yi-DE":{u:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)",A:"Yiddish (German)"},zh:{u:"\u4e2d\u6587",A:"Chinese"},"zh-HANS":{u:"\u4e2d\u6587\u7b80\u4f53",
|
|
1030
1030
|
A:"Chinese Simplified"},"zh-HANT":{u:"\u4e2d\u6587\u7e41\u9ad4",A:"Chinese Traditional"},"zh-CN":{u:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",A:"Chinese Simplified (China)"},"zh-HK":{u:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",A:"Chinese Traditional (Hong Kong)"},"zh-SG":{u:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",A:"Chinese Simplified (Singapore)"},"zh-TW":{u:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",A:"Chinese Traditional (Taiwan)"},"zu-ZA":{u:"isiZulu",A:"Zulu"}},xx=r(Object.keys(wx)),yx=xx.next();!yx.done;yx=
|
|
1031
|
-
xx.next()){var zx=yx.value;wx[zx.toLowerCase()]=wx[zx]};function X(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new wf;this.localization=this.controls.
|
|
1031
|
+
xx.next()){var zx=yx.value;wx[zx.toLowerCase()]=wx[zx]};function X(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new wf;this.localization=this.controls.va;this.player=this.controls.dc();this.video=this.controls.Ab();this.adManager=this.player.td();this.ad=b.getAd();this.eventManager.o(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null})}
|
|
1032
1032
|
X.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};I("shaka.ui.Element",X);X.prototype.release=X.prototype.release;function Ax(a){return Bx(a,"shaka-back-to-overflow-button")}function Bx(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function Cx(a){a&&(a=Bx(a,"shaka-chosen-item"))&&a.parentElement.focus()}function Dx(){var a=R("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function Y(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
|
|
1033
1033
|
function Ex(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60);a=Math.floor(a%60);10>a&&(a="0"+a);a=d+":"+a;b&&(10>d&&(a="0"+a),a=c+":"+a);return a};function Fx(a,b){X.call(this,a,b);var c=this;this.i=R("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=R("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new N(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=Ex(e-d,!1)+" / "+Ex(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=
|
|
1034
1034
|
""))});this.eventManager.o(this.localization,"locale-updated",function(){});this.eventManager.o(this.localization,"locale-changed",function(){});this.eventManager.o(this.adManager,"ad-started",function(){c.g.Aa();c.g.ka(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.Aa(),this.g.ka(.5))}pa(Fx,X);Fx.prototype.release=function(){this.g.stop();this.g=null;X.prototype.release.call(this)};I("shaka.ui.AdCounter",Fx);function Gx(a,b){X.call(this,a,b);var c=this;this.g=R("div");this.g.classList.add("shaka-ad-position");Y(this.g,!1);this.parent.appendChild(this.g);this.h=R("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.o(this.localization,"locale-updated",function(){c.ad&&Hx(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&Hx(c)});this.eventManager.o(this.adManager,"ad-started",function(){Hx(c)});this.eventManager.o(this.adManager,
|
|
@@ -1041,20 +1041,20 @@ this.parent.appendChild(this.container);this.eventManager.o(this.bar,"mousedown"
|
|
|
1041
1041
|
"mouseup",function(){e.g&&(e.g=!1,e.onChangeEnd())});this.eventManager.o(this.bar,"contextmenu",function(f){f.preventDefault();f.stopPropagation()})}pa(Qx,X);q=Qx.prototype;q.release=function(){this.l&&(this.l.stop(),this.l=null);X.prototype.release.call(this)};q.setRange=function(a,b){this.bar.min=a;this.bar.max=b};q.onChangeStart=function(){};q.onChange=function(){};q.onChangeEnd=function(){};
|
|
1042
1042
|
q.changeTo=function(a){this.g||(this.g=!0,this.onChangeStart());var b=parseFloat(this.bar.min),c=parseFloat(this.bar.max);this.bar.value=a>c?c:a<b?b:a;this.onChange();this.l.R(.5)};q.getValue=function(){return parseFloat(this.bar.value)};q.setValue=function(a){this.g||(this.bar.value=a)};
|
|
1043
1043
|
function Rx(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect();b=parseFloat(a.bar.min);var e=parseFloat(a.bar.max);c=b+(e-b)/d.width*(c.clientX-d.left);c<b?c=b:c>e&&(c=e);a.bar.value=c}I("shaka.ui.RangeElement",Qx);Qx.prototype.setValue=Qx.prototype.setValue;Qx.prototype.getValue=Qx.prototype.getValue;Qx.prototype.changeTo=Qx.prototype.changeTo;Qx.prototype.onChangeEnd=Qx.prototype.onChangeEnd;Qx.prototype.onChange=Qx.prototype.onChange;Qx.prototype.onChangeStart=Qx.prototype.onChangeStart;
|
|
1044
|
-
Qx.prototype.setRange=Qx.prototype.setRange;function Sx(a,b){Qx.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.j=R("div");this.j.classList.add("shaka-ad-markers");this.container.insertBefore(this.j,this.container.childNodes[0]);this.m=this.controls.i;this.h=new N(function(){c.
|
|
1045
|
-
"locale-changed",function(){return Ux(c)});this.eventManager.o(this.adManager,"ad-started",function(){Vx(c)||Y(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){Vx(c)&&Y(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.i=d.cuepoints;Wx(c)});this.eventManager.o(this.player,"unloading",function(){c.i=[];Wx(c)});this.setValue(this.video.currentTime);this.update();Ux(this);
|
|
1046
|
-
q.release=function(){this.h&&(this.h.stop(),this.h=null,this.s.stop(),this.s=null);Qx.prototype.release.call(this)};q.onChangeStart=function(){this.B=!this.video.paused;this.controls.Te(!0);this.video.pause()};q.onChange=function(){this.video.duration&&(this.update(),this.h.R(.125))};q.onChangeEnd=function(){this.h.Aa();this.controls.Te(!1);this.B&&this.video.play()};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
|
|
1044
|
+
Qx.prototype.setRange=Qx.prototype.setRange;function Sx(a,b){Qx.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.j=R("div");this.j.classList.add("shaka-ad-markers");this.container.insertBefore(this.j,this.container.childNodes[0]);this.m=this.controls.i;this.h=new N(function(){var d=c.getValue();c.player.S()||d==c.video.duration&&(d-=.001);c.video.currentTime=d});this.s=new N(function(){Tx(c)});this.B=!1;this.i=[];this.eventManager.o(this.localization,"locale-updated",
|
|
1045
|
+
function(){return Ux(c)});this.eventManager.o(this.localization,"locale-changed",function(){return Ux(c)});this.eventManager.o(this.adManager,"ad-started",function(){Vx(c)||Y(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){Vx(c)&&Y(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.i=d.cuepoints;Wx(c)});this.eventManager.o(this.player,"unloading",function(){c.i=[];Wx(c)});this.setValue(this.video.currentTime);this.update();Ux(this);
|
|
1046
|
+
this.ad&&Y(this.container,!1)}pa(Sx,Qx);q=Sx.prototype;q.release=function(){this.h&&(this.h.stop(),this.h=null,this.s.stop(),this.s=null);Qx.prototype.release.call(this)};q.onChangeStart=function(){this.B=!this.video.paused;this.controls.Te(!0);this.video.pause()};q.onChange=function(){this.video.duration&&(this.update(),this.h.R(.125))};q.onChangeEnd=function(){this.h.Aa();this.controls.Te(!1);this.B&&this.video.play()};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
|
|
1047
1047
|
q.update=function(){var a=this.m.seekBarColors,b=this.getValue(),c=this.video.buffered.length,d=c?this.video.buffered.start(0):0,e=c?this.video.buffered.end(c-1):0,f=this.player.Ja(),g=f.end-f.start;this.setRange(f.start,f.end);Vx(this)?(Y(this.container,!0),0==c?this.container.style.background=a.base:(c=(Math.max(d,f.start)-f.start)/g||0,e=(Math.min(e,f.end)-f.start)/g||0,b=(Math.min(Math.max(b,f.start),f.end)-f.start)/g||0,this.container.style.background="linear-gradient("+["to right",(this.m.showUnbufferedStart?
|
|
1048
1048
|
a.base:a.played)+" "+100*c+"%",a.played+" "+100*c+"%",a.played+" "+100*b+"%",a.buffered+" "+100*b+"%",a.buffered+" "+100*e+"%",a.base+" "+100*e+"%"].join()+")")):Y(this.container,!1)};
|
|
1049
1049
|
function Tx(a){if(a.i.length){for(var b=a.player.Ja(),c=b.end-b.start,d=["to right"],e=[],f=a.m.seekBarColors.adBreaks,g=!1,h=r(a.i),k=h.next();!k.done;k=h.next())if(k=k.value,-1!=k.start||k.end||(g=!0),k.start>=b.start&&k.start<b.end&&!(k.end&&k.end>b.end)){var l=(k.start-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}b=r(e);for(k=b.next();!k.done;k=b.next())c=k.value,d.push("transparent "+100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+
|
|
1050
1050
|
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 Wx(a){Tx(a);var b=a.player.Ja();b=b.end-b.start;a.player.S()&&5<b&&a.s.ka(1)}function Vx(a){var b=a.player.Ja();b=b.end-b.start;return a.player.S()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function Ux(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}I("shaka.ui.SeekBar",Sx);function Xx(){}
|
|
1051
|
-
Xx.prototype.create=function(a,b){return new Sx(a,b)};Sx.Factory=Xx;function Z(a,b,c,d){db.call(this);var e=this;this.P=!0;this.i=d;this.C=new to(c,a,this.i.castReceiverAppId,this.i.castAndroidReceiverCompatible);this.Za=!0;this.s=this.C.Ab();this.B=c;this.F=this.C.dc();this.
|
|
1052
|
-
!1)});this.La=new N(function(){e.Mb()&&Zx(e)});this.J=null;this.H=[];this.
|
|
1053
|
-
q.destroy=function(){var a=this;return F(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.B){b.D(2);break}return u(b,document.exitPictureInPicture(),2);case 2:a.h&&(a.h.release(),a.h=null);a.Z&&(a.Z.stop(),a.Z=null);a.aa&&(a.aa.stop(),a.aa=null);a.I&&(a.I.stop(),a.I=null);a.La&&(a.La.stop(),a.La=null);cy(a);a.g&&(a.j.removeChild(a.g),a.g=null);if(!a.C){b.D(4);break}return u(b,a.C.destroy(),5);case 5:a.C=null;case 4:if(!a.
|
|
1054
|
-
null;case 6:a.F=null,a.B=null,a.s=null,a.
|
|
1051
|
+
Xx.prototype.create=function(a,b){return new Sx(a,b)};Sx.Factory=Xx;function Z(a,b,c,d){db.call(this);var e=this;this.P=!0;this.i=d;this.C=new to(c,a,this.i.castReceiverAppId,this.i.castAndroidReceiverCompatible);this.Za=!0;this.s=this.C.Ab();this.B=c;this.F=this.C.dc();this.ua=a;this.j=b;this.Xa=this.F.td();this.l=this.m=null;this.X=!1;this.G=[];this.vb=[];this.gb=!1;this.Z=new N(function(){e.j.style.cursor="none";e.gb=!1;Yx(e)});this.aa=new N(function(){e.g.removeAttribute("shown");e.I.R(2)});this.I=new N(function(){for(var f=r(e.G),g=f.next();!g.done;g=f.next())Y(g.value,
|
|
1052
|
+
!1)});this.La=new N(function(){e.Mb()&&Zx(e)});this.J=null;this.H=[];this.va=$x();this.h=new wf;this.configure(this.i);ay(this);this.ba=new Set;by(this);this.La.ka(.125);this.h.o(this.va,"locale-changed",function(f){e.Xa.setLocale(f.locales[0])})}pa(Z,db);q=Z.prototype;
|
|
1053
|
+
q.destroy=function(){var a=this;return F(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.B){b.D(2);break}return u(b,document.exitPictureInPicture(),2);case 2:a.h&&(a.h.release(),a.h=null);a.Z&&(a.Z.stop(),a.Z=null);a.aa&&(a.aa.stop(),a.aa=null);a.I&&(a.I.stop(),a.I=null);a.La&&(a.La.stop(),a.La=null);cy(a);a.g&&(a.j.removeChild(a.g),a.g=null);if(!a.C){b.D(4);break}return u(b,a.C.destroy(),5);case 5:a.C=null;case 4:if(!a.ua){b.D(6);break}return u(b,a.ua.destroy(),7);case 7:a.ua=
|
|
1054
|
+
null;case 6:a.F=null,a.B=null,a.s=null,a.va=null,a.ba.clear(),db.prototype.release.call(a),B(b)}})};function cy(a){for(var b=r(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function dy(a,b){ey.set(a,b)}q.pg=function(a){this.Za=a;by(this)};q.kh=function(){Yx(this)};
|
|
1055
1055
|
q.configure=function(a){this.i=a;this.C.Af(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.l&&(this.l=null);this.fb&&(this.fb=null);this.Ya&&(this.Ya=null);this.g?(dl(this.g),cy(this)):(fy(this),gy(this));this.j.classList.add("shaka-video-container");this.B.classList.add("shaka-video");hy(this);this.i.addBigPlayButton&&iy(this);this.i.customContextMenu&&(this.Ya=new Mx(this.V,this),this.H.push(this.Ya));this.$||jy(this);this.$a=R("div");this.$a.classList.add("shaka-server-side-ad-container");
|
|
1056
1056
|
this.g.appendChild(this.$a);ky(this);this.G=Array.from(this.j.getElementsByClassName("shaka-settings-menu"));this.G.push.apply(this.G,ha(Array.from(this.j.getElementsByClassName("shaka-overflow-menu"))));ly(this);this.vb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));Yx(this);a=r(this.j.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.h.o(b,"click",c);this.h.o(b,"dblclick",
|
|
1057
|
-
c)}};q.Pe=function(a){(this.P=a)?(this.j.setAttribute("shaka-controls","true"),this.B.tabIndex=-1,this.B.controls=!1):this.j.removeAttribute("shaka-controls");Yx(this)};q.Yf=function(a){this.B.controls=a;this.B.tabIndex=a?0:-1;a&&this.Pe(!1)};q.getAd=function(){return this.m};q.Cg=function(){return this.C};q.Og=function(){return this.
|
|
1057
|
+
c)}};q.Pe=function(a){(this.P=a)?(this.j.setAttribute("shaka-controls","true"),this.B.tabIndex=-1,this.B.controls=!1):this.j.removeAttribute("shaka-controls");Yx(this)};q.Yf=function(a){this.B.controls=a;this.B.tabIndex=a?0:-1;a&&this.Pe(!1)};q.getAd=function(){return this.m};q.Cg=function(){return this.C};q.Og=function(){return this.va};q.dh=function(){return this.j};q.Ab=function(){return this.s};q.Ng=function(){return this.B};q.dc=function(){return this.F};q.Mg=function(){return this.ua};
|
|
1058
1058
|
q.Hg=function(){return this.g};q.Wg=function(){return this.$a};q.Eg=function(){return this.N};q.Fg=function(){return this.i};q.jh=function(){return this.X};q.Te=function(a){this.X=a};q.gh=function(){return this.Za};q.Jf=function(){return this.l?this.l.getValue():this.s.currentTime};q.Zf=function(a){this.J=a};q.nd=function(){return this.G.some(function(a){return!a.classList.contains("shaka-hidden")})};q.hc=function(){this.I.Aa()};
|
|
1059
1059
|
q.yd=function(){return document.fullscreenEnabled||this.B.webkitSupportsFullscreen?!0:!1};q.jc=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.B;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
|
|
1060
1060
|
function my(a){var b,c;return F(function(d){switch(d.g){case 1:D(d,2);if(!document.fullscreenEnabled){b=a.B;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();d.D(4);break}if(!document.pictureInPictureElement){d.D(5);break}return u(d,document.exitPictureInPicture(),5);case 5:return u(d,a.j.requestFullscreen({navigationUI:"hide"}),7);case 7:if(!a.i.forceLandscapeOnFullscreen||!screen.orientation){d.D(4);break}D(d,9);return u(d,screen.orientation.lock("landscape"),11);case 11:va(d,4,2);break;case 9:wa(d,
|