shaka-player 4.9.16 → 4.9.17
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/dist/deps.js +2 -2
- package/dist/locales.js +33 -33
- package/dist/shaka-player.compiled.debug.js +18 -17
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.js +222 -221
- package/dist/shaka-player.compiled.map +3 -3
- package/dist/shaka-player.ui.debug.js +29 -27
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.js +284 -282
- package/dist/shaka-player.ui.map +3 -3
- package/lib/cea/cea608_memory.js +14 -2
- package/lib/media/media_source_engine.js +24 -4
- package/lib/player.js +1 -1
- package/lib/text/simple_text_displayer.js +1 -71
- package/lib/text/text_utils.js +81 -0
- package/package.json +1 -1
- package/ui/resolution_selection.js +35 -20
package/dist/shaka-player.ui.js
CHANGED
|
@@ -57,8 +57,8 @@ function P(a,b){a=a.split(".");var c=Ra;a[0]in c||"undefined"==typeof c.execScri
|
|
|
57
57
|
function Sa(){}function Ta(){};function S(a,b){if(b)if(b instanceof Map)for(var c=t(b.keys()),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(this,d,{value:b.get(d),writable:!0,enumerable:!0});else for(c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.g=!1}
|
|
58
58
|
function Ua(a){var b=new S(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}S.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};S.prototype.stopImmediatePropagation=function(){this.g=!0};S.prototype.stopPropagation=function(){};P("shaka.util.FakeEvent",S);
|
|
59
59
|
var Va={Kk:"abrstatuschanged",Lk:"adaptation",Mk:"buffering",Nk:"complete",Ok:"downloadfailed",Pk:"downloadheadersreceived",Qk:"drmsessionupdate",Sk:"emsg",ol:"prft",Error:"error",Tk:"expirationupdated",Uk:"firstquartile",Vk:"gapjumped",Yk:"keystatuschanged",$k:"loaded",al:"loading",fl:"manifestparsed",hl:"manifestupdated",il:"mediaqualitychanged",Metadata:"metadata",jl:"midpoint",kl:"nospatialvideoinfo",ll:"onstatechange",rl:"ratechange",ul:"segmentappended",vl:"sessiondata",wl:"spatialvideoinfo",
|
|
60
|
-
xl:"stalldetected",yl:"started",zl:"statechanged",Al:"streaming",Bl:"textchanged",Cl:"texttrackvisibility",Dl:"thirdquartile",El:"timelineregionadded",Fl:"timelineregionenter",Gl:"timelineregionexit",Hl:"trackschanged",Jl:"unloading",Ll:"variantchanged"};function Wa(){}function Xa(){}function Ya(){}function Za(a){var b=Ka.apply(1,arguments);ab.has(a)||(ab.add(a),Ya.apply(Wa,x(b)))}function bb(){}function cb(){}function eb(){}var ab=new Set;window.console&&(Ya=function(){return console.warn.apply(console,x(Ka.apply(0,arguments)))},Xa=function(){console.error.apply(console,x(Ka.apply(0,arguments)))});function fb(){this.g={}}q=fb.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 gb(){this.
|
|
61
|
-
gb.prototype.release=function(){this.
|
|
60
|
+
xl:"stalldetected",yl:"started",zl:"statechanged",Al:"streaming",Bl:"textchanged",Cl:"texttrackvisibility",Dl:"thirdquartile",El:"timelineregionadded",Fl:"timelineregionenter",Gl:"timelineregionexit",Hl:"trackschanged",Jl:"unloading",Ll:"variantchanged"};function Wa(){}function Xa(){}function Ya(){}function Za(a){var b=Ka.apply(1,arguments);ab.has(a)||(ab.add(a),Ya.apply(Wa,x(b)))}function bb(){}function cb(){}function eb(){}var ab=new Set;window.console&&(Ya=function(){return console.warn.apply(console,x(Ka.apply(0,arguments)))},Xa=function(){console.error.apply(console,x(Ka.apply(0,arguments)))});function fb(){this.g={}}q=fb.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 gb(){this.Aa=new fb;this.vf=this}gb.prototype.addEventListener=function(a,b){this.Aa&&this.Aa.push(a,b)};gb.prototype.removeEventListener=function(a,b){this.Aa&&this.Aa.remove(a,b)};gb.prototype.dispatchEvent=function(a){if(!this.Aa)return!0;var b=this.Aa.get(a.type)||[],c=this.Aa.get("All");c&&(b=b.concat(c));b=t(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.vf;a.currentTarget=this.vf;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
|
|
61
|
+
gb.prototype.release=function(){this.Aa=null};function hb(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c}function ib(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0}function jb(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(b(c.value))return!0;return!1}function kb(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b(d)&&c.push(d);return c};/*
|
|
62
62
|
@license
|
|
63
63
|
Copyright 2008 The Closure Library Authors
|
|
64
64
|
SPDX-License-Identifier: Apache-2.0
|
|
@@ -89,8 +89,8 @@ CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9E3,INDEXED_DB_ERROR:90
|
|
|
89
89
|
CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004,MT_AD_MANAGER_NOT_INITIALIZED:10005};function Nb(a){this.h=a;this.g=void 0}Nb.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Ob(a,b){return a.length&&b.length&&a!==b?0<Pb(a,b).length:!0}
|
|
90
90
|
function Pb(a,b){if(!a.length)return b;if(!b.length)return a;var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.keySystem==f.keySystem){e=new Map;for(var g=t((d.initData||[]).concat(f.initData||[])),h=g.next();!h.done;h=g.next())h=h.value,e.set(h.keyId,h);e=Array.from(e.values());g=d.keyIds&&f.keyIds?new Set([].concat(x(d.keyIds),x(f.keyIds))):d.keyIds||f.keyIds;c.push({keySystem:d.keySystem,licenseServerUri:d.licenseServerUri||
|
|
91
91
|
f.licenseServerUri,distinctiveIdentifierRequired:d.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:d.persistentStateRequired||f.persistentStateRequired,videoRobustness:d.videoRobustness||f.videoRobustness,audioRobustness:d.audioRobustness||f.audioRobustness,serverCertificate:d.serverCertificate||f.serverCertificate,serverCertificateUri:d.serverCertificateUri||f.serverCertificateUri,initData:e,keyIds:g});break}}return c}
|
|
92
|
-
function Qb(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}var Rb=new Nb(function(){return Ib(new Uint8Array([0]))}),Sb=new Map;function Tb(a){this.h=a;this.g=null}Tb.prototype.V=function(a){var b=this;this.stop();var c=!0,d=null;this.g=function(){window.clearTimeout(d);c=!1};d=window.setTimeout(function(){c&&b.h()},1E3*a);return this};Tb.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function Ub(a){this.h=a;this.g=null}Ub.prototype.
|
|
93
|
-
Ub.prototype.tickAfter=Ub.prototype.V;Ub.prototype.tickNow=Ub.prototype.
|
|
92
|
+
function Qb(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}var Rb=new Nb(function(){return Ib(new Uint8Array([0]))}),Sb=new Map;function Tb(a){this.h=a;this.g=null}Tb.prototype.V=function(a){var b=this;this.stop();var c=!0,d=null;this.g=function(){window.clearTimeout(d);c=!1};d=window.setTimeout(function(){c&&b.h()},1E3*a);return this};Tb.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function Ub(a){this.h=a;this.g=null}Ub.prototype.Pa=function(){this.stop();this.h();return this};Ub.prototype.V=function(a){var b=this;this.stop();this.g=(new Tb(function(){b.h()})).V(a);return this};Ub.prototype.za=function(a){var b=this;this.stop();this.g=(new Tb(function(){b.g.V(a);b.h()})).V(a);return this};Ub.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};P("shaka.util.Timer",Ub);Ub.prototype.stop=Ub.prototype.stop;Ub.prototype.tickEvery=Ub.prototype.za;
|
|
93
|
+
Ub.prototype.tickAfter=Ub.prototype.V;Ub.prototype.tickNow=Ub.prototype.Pa;function Vb(){var a=window.ManagedMediaSource||window.MediaSource;return a&&a.isTypeSupported?!0:!1}function Wb(a){return""!=Xb().canPlayType(a)}function Yb(){return navigator.userAgent.match(/Edge?\//)?!0:!1}function Zb(){return $b("Xbox One")}function ac(){return $b("Tizen")}function bc(){return $b("Tizen 3")}function cc(){return $b("Tizen 2")}function dc(){return $b("Web0S")}function ec(){return dc()&&38===fc()}function gc(){return $b("CrKey")}
|
|
94
94
|
function fc(){if(!$b("Chrome")||navigator.userAgent.match(/Edge\//))return null;var a=navigator.userAgent.match(/Chrome\/(\d+)/);return a?parseInt(a[1],10):null}function hc(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!ac()&&!$b("PC=EOS")&&!$b("PC=APL")&&!$b("VirginMedia")&&!ic()&&!jc()&&!$b("AFT")&&!$b("WPE")&&!$b("DT_STB_BCM")}function kc(){return $b("PlayStation 5")}function jc(){return $b("PlayStation 4")}function lc(){return $b("Hisense")||$b("VIDAA")}
|
|
95
95
|
function ic(){return $b("SOPOpenBrowser")}function mc(){if(!hc())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 nc(){return navigator.userAgentData&&navigator.userAgentData.platform?"windows"==navigator.userAgentData.platform.toLowerCase():navigator.platform?navigator.platform.toLowerCase().includes("windows"):!1}function oc(){return $b("Android")}
|
|
96
96
|
function pc(){return ac()||dc()||Zb()||jc()||kc()||$b("AFT")||$b("PC=EOS")||$b("PC=APL")||$b("VirginMedia")||ic()||$b("WPE")||gc()||lc()||$b("DT_STB_BCM")?!0:!1}function $b(a){return(navigator.userAgent||"").includes(a)}function Xb(){if(qc)return qc;sc||(sc=new Ub(function(){qc=null}));(qc=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(qc=document.createElement("video"));sc.V(1);return qc}
|
|
@@ -112,7 +112,7 @@ function Jc(a){var b=Gb(a);a="";b=t(b);for(var c=b.next();!c.done;c=b.next())c=c
|
|
|
112
112
|
function Mc(a,b,c){return{keySystem:a,encryptionScheme:b,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:c||[],keyIds:new Set}}
|
|
113
113
|
function Nc(a,b){b=void 0===b?"cenc":b;var c=[],d=[],e=[];a.forEach(function(g,h){var k=h;22!=k.length&&(k=Gc(Ic(h),!1));var l=g;22!=l.length&&(l=Gc(Ic(g),!1));g={kty:"oct",kid:k,k:l};c.push(g);d.push(g.kid);e.push(h)});a=JSON.stringify({keys:c});var f=JSON.stringify({kids:d});f=[{initData:Gb(Ac(f)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",encryptionScheme:b,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,
|
|
114
114
|
audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:f,keyIds:new Set(e)}}function Oc(a,b){if(1==b.length)return b[0];a=Pc(a,b);if(null!=a)return a;throw new U(2,4,4025,b);}function Pc(a,b){for(var c=t(Qc[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==Sc?"":null}
|
|
115
|
-
function Tc(a,b){var c=[];a=t(Qc[a]);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())f=f.value,d.test(f.trim())&&c.push(f.trim())}return c}var Sc="text",Uc={ra:"video",aa:"audio",
|
|
115
|
+
function Tc(a,b){var c=[];a=t(Qc[a]);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())f=f.value,d.test(f.trim())&&c.push(f.trim())}return c}var Sc="text",Uc={ra:"video",aa:"audio",Ga:Sc,Of:"image",Ik:"application"},Qc={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4/,/^dts[cex]$/,/^iamf/,/^mhm[12]/],video:[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/,/^dva/,/^dav/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Vc(){}function Wc(a,b){a=Xc(a);b=Xc(b);return a.split("-")[0]==b.split("-")[0]}function Yc(a,b){a=Xc(a);b=Xc(b);a=a.split("-");b=b.split("-");return a[0]==b[0]&&1==a.length&&2==b.length}function Zc(a,b){a=Xc(a);b=Xc(b);a=a.split("-");b=b.split("-");return 2==a.length&&2==b.length&&a[0]==b[0]}
|
|
116
116
|
function Xc(a){a=t(a.split("-x-"));var b=a.next().value;b=void 0===b?"":b;a=a.next().value;a=void 0===a?"":a;var c=t(b.split("-"));b=c.next().value;b=void 0===b?"":b;c=c.next().value;c=void 0===c?"":c;a=a?"x-"+a:"";b=b.toLowerCase();b=$c.get(b)||b;c=c.toUpperCase();return(c?b+"-"+c:b)+(a?"-"+a:"")}function bd(a,b){var c=dd(a),d=dd(b);return a!=c&&b!=d&&c==d}function ed(a,b){a=Xc(a);b=Xc(b);return b==a?4:Yc(b,a)?3:Zc(b,a)?2:Yc(a,b)?1:0}
|
|
117
117
|
function dd(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=$c.get(a)||a}function fd(a){return a.language?Xc(a.language):a.audio&&a.audio.language?Xc(a.audio.language):a.video&&a.video.language?Xc(a.video.language):"und"}
|
|
118
118
|
function gd(a,b){a=Xc(a);var c=new Set,d=t(b);for(b=d.next();!b.done;b=d.next())c.add(Xc(b.value));d=t(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,b==a)return b;d=t(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,Yc(b,a))return b;d=t(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,Zc(b,a))return b;c=t(c);for(b=c.next();!b.done;b=c.next())if(b=b.value,Yc(a,b))return b;return null}P("shaka.util.LanguageUtils",Vc);Vc.findClosestLocale=gd;Vc.getLocaleForVariant=fd;
|
|
@@ -124,13 +124,13 @@ var $c=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"]
|
|
|
124
124
|
"sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie",
|
|
125
125
|
"vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function hd(a){gb.call(this);this.j=Xc(a);this.i=new Map;this.g=new Set;this.h=new Map}na(hd,gb);q=hd.prototype;q.release=function(){gb.prototype.release.call(this)};
|
|
126
126
|
q.vh=function(a){var b=this;this.g.clear();a=t(a);for(var c=a.next();!c.done;c=a.next())this.g.add(Xc(c.value));id(this);a=kb(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new S("unknown-locales",(new Map).set("locales",a)));a=kb(this.g,function(d){return b.h.has(d)});a=(new Map).set("locales",a.length?a:[this.j]);this.dispatchEvent(new S("locale-changed",a))};
|
|
127
|
-
q.
|
|
127
|
+
q.Ka=function(a,b,c){a=Xc(a);void 0===c&&(c=jd);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=jd||d.set(f,e)});this.h.set(a,d);id(this);this.dispatchEvent(new S("locale-updated"));return this};q.ik=function(a){for(var b=t(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};q.resolve=function(a){var b=this.i.get(a);if(b)return b;a=(new Map).set("locales",Array.from(this.g)).set("missing",a);this.dispatchEvent(new S("unknown-localization",a));return""};
|
|
128
128
|
q.Zi=function(){return this.g};
|
|
129
129
|
function id(a){for(var b=a.h,c=a.j,d=a.g,e=new Set,f={},g=t(d),h=g.next();!h.done;f={Tc:f.Tc},h=g.next()){f.Tc=h.value;e.add(f.Tc);e.add(dd(f.Tc));h=kb(b.keys(),function(l){return function(m){return bd(m,l.Tc)}}(f));h.sort();var k=t(h);for(h=k.next();!h.done;h=k.next())e.add(h.value);h=kb(b.keys(),function(l){return function(m){return dd(m)==l.Tc}}(f));h.sort();k=t(h);for(h=k.next();!h.done;h=k.next())e.add(h.value)}e.add(c);c=[];e=t(e);for(h=e.next();!h.done;h=e.next())(h=b.get(h.value))&&c.push(h);
|
|
130
130
|
c.reverse();a.i.clear();b=t(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=t(a.g);for(h=c.next();!h.done;h=c.next())h=a.h.get(h.value)||new Map,kd(h,b,e);0<e.size&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.dispatchEvent(new S("missing-localizations",d)))}function kd(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d)}P("shaka.ui.Localization",hd);hd.prototype.getCurrentLocales=hd.prototype.Zi;
|
|
131
|
-
hd.prototype.resolve=hd.prototype.resolve;hd.prototype.resolveDictionary=hd.prototype.ik;hd.prototype.insert=hd.prototype.
|
|
132
|
-
q.qb=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,x(a.g[c]));a=t(b);for(b=a.next();!b.done;b=a.next())b.value.
|
|
133
|
-
pd.prototype.
|
|
131
|
+
hd.prototype.resolve=hd.prototype.resolve;hd.prototype.resolveDictionary=hd.prototype.ik;hd.prototype.insert=hd.prototype.Ka;hd.prototype.changeLocale=hd.prototype.vh;hd.prototype.release=hd.prototype.release;var jd=1;hd.ConflictResolution={USE_OLD:0,USE_NEW:jd};hd.UNKNOWN_LOCALES="unknown-locales";hd.UNKNOWN_LOCALIZATION="unknown-localization";hd.MISSING_LOCALIZATIONS="missing-localizations";hd.LOCALE_CHANGED="locale-changed";hd.LOCALE_UPDATED="locale-updated";function ld(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}ld.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 md(a){return a.h/(1-Math.pow(a.g,a.i))};function nd(){this.h=new ld(2);this.j=new ld(5);this.g=0;this.i=128E3;this.l=16E3}nd.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)};nd.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)}};nd.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(md(this.h),md(this.j))};function od(){this.g=new fb}q=od.prototype;q.release=function(){this.qb();this.g=null};q.s=function(a,b,c,d){this.g&&(a=new pd(a,b,c,d),this.g.push(b,a))};q.oa=function(a,b,c,d){function e(g){f.Xa(a,b,e);c(g)}var f=this;this.s(a,b,e,d)};q.Xa=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=t(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.Xa(),this.g.remove(b,e))}};
|
|
132
|
+
q.qb=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,x(a.g[c]));a=t(b);for(b=a.next();!b.done;b=a.next())b.value.Xa();this.g.g={}}};P("shaka.util.EventManager",od);od.prototype.removeAll=od.prototype.qb;od.prototype.unlisten=od.prototype.Xa;od.prototype.listenOnce=od.prototype.oa;od.prototype.listen=od.prototype.s;od.prototype.release=od.prototype.release;function pd(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=qd(a,d);this.target.addEventListener(b,c,this.g)}
|
|
133
|
+
pd.prototype.Xa=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function qd(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 rd(a)?b:b.capture||!1}
|
|
134
134
|
function rd(a){var b=sd;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}sd=b}return b||!1}var sd=void 0;function td(a){if(ud.has(a))return ud.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);ud.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),ud.set(a,b),b):!1}function vd(){return!!window.SourceBuffer&&!!SourceBuffer.prototype&&!!SourceBuffer.prototype.changeType}var ud=new Map;function wd(a,b){this.g=a;this.h=b}wd.prototype.toString=function(){return"v"+this.g+"."+this.h};function xd(a,b){var c=new wd(5,0),d=yd,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function zd(a,b,c,d){Ya([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function Ad(a,b,c,d){Xa([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(" "))}var yd=null;function Bd(){}Bd.prototype.extract=function(){};Bd.prototype.decode=function(){return[]};Bd.prototype.clear=function(){};Bd.prototype.getStreams=function(){return[]};function Cd(){}Cd.prototype.init=function(){};Cd.prototype.parse=function(){return[]};function Dd(){}Dd.prototype.init=function(){};Dd.prototype.i=function(){};Dd.prototype.g=function(){};Dd.prototype.j=function(){};P("shaka.media.IClosedCaptionParser",Dd);function Ed(a){this.l=new Cd;if(a=Hd[a.toLowerCase()])this.l=a();this.h=new Bd;if(a=Jd)this.h=a()}Ed.prototype.init=function(a,b){void 0!==b&&b||(this.g(),this.l.init(a))};Ed.prototype.i=function(a){a=this.l.parse(a);a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=Gb(b.packet);0<c.length&&this.h.extract(c,b.pts)}return this.h.decode()};
|
|
135
135
|
Ed.prototype.g=function(){this.h.clear()};Ed.prototype.j=function(){return this.h.getStreams()};P("shaka.media.ClosedCaptionParser",Ed);Ed.findDecoder=function(){return Jd};Ed.unregisterDecoder=function(){Jd=null};Ed.registerDecoder=function(a){Jd=a};Ed.findParser=function(a){return Hd[a]};Ed.unregisterParser=function(a){delete Hd[a]};Ed.registerParser=function(a,b){Hd[a]=b};var Hd={},Jd=null;function Kd(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Ld;this.scroll=Md}P("shaka.text.CueRegion",Kd);var Ld=1;Kd.units={PX:0,PERCENTAGE:Ld,LINES:2};var Md="";Kd.scrollMode={NONE:Md,UP:"up"};function Nd(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function Od(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function Pd(a,b,c){c||(c=Nd);if(a.length!=b.length)return!1;b=b.slice();var d={};a=t(a);for(var e=a.next();!e.done;d={Bf:d.Bf},e=a.next()){d.Bf=e.value;e=b.findIndex(function(f){return function(g){return c(f.Bf,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
|
|
136
136
|
function Qd(a,b,c){c||(c=Nd);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 Rd(a,b,c){this.startTime=a;this.endTime=b;this.payload=c;this.region=new Kd;this.position=null;this.positionAlign=Sd;this.size=0;this.textAlign=Td;this.direction=Ud;this.writingMode=Vd;this.lineInterpretation=Wd;this.line=null;this.lineHeight="";this.lineAlign=Xd;this.displayAlign=Yd;this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=ae;this.fontStyle=be;this.linePadding=this.letterSpacing=this.fontFamily="";this.opacity=1;this.textCombineUpright=
|
|
@@ -206,26 +206,26 @@ function Xf(a,b){b=Xc(b);var c=gd(b,a.map(function(d){return fd(d)}));return c?a
|
|
|
206
206
|
function ag(a,b){return a.filter(function(c){return c.audio&&c.audio.channelsCount&&c.audio.channelsCount!=b?!1:!0})}function $f(a,b){"AUTO"==b&&(b=window.matchMedia("(color-gamut: p3)").matches?"PQ":"SDR");return a.filter(function(c){return c.video&&c.video.hdr&&c.video.hdr!=b?!1:!0})}function Zf(a,b){return a.filter(function(c){return c.video&&c.video.videoLayout&&c.video.videoLayout!=b?!1:!0})}function dg(a,b){return a.filter(function(c){return c.audio&&c.audio.spatialAudio!=b?!1:!0})};function eg(){this.g=fg;this.i=(new Map).set(fg,2).set(gg,1);this.h=0}function hg(a,b,c){a.i.set(fg,c).set(gg,b)}var gg=0,fg=1;function ig(a,b){var c=jg();this.l=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.o=null==a.fuzzFactor?c.fuzzFactor:a.fuzzFactor;this.m=null==a.backoffFactor?c.backoffFactor:a.backoffFactor;this.g=0;this.h=this.j;if(this.i=void 0===b?!1:b)this.g=1}
|
|
207
207
|
function kg(a){var b,c;return O(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new U(2,7,1010);b=a.g;a.g++;if(0==b)return d.return();c=a.h*(1+(2*Math.random()-1)*a.o);return E(d,new Promise(function(e){(new Ub(e)).V(c/1E3)}),2)}a.h*=a.m;F(d)})}function jg(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function lg(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}lg.prototype.resolve=function(){};lg.prototype.reject=function(){};function mg(a,b){this.promise=a;this.i=b;this.g=!1}function ng(a){return new mg(Promise.reject(a),function(){return Promise.resolve()})}function og(){var a=Promise.reject(new U(2,7,7001));a.catch(function(){});return new mg(a,function(){return Promise.resolve()})}function pg(a){return new mg(Promise.resolve(a),function(){return Promise.resolve()})}function qg(a){return new mg(a,function(){return a.catch(function(){})})}mg.prototype.abort=function(){this.g=!0;return this.i()};
|
|
208
208
|
function rg(a){return new mg(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}mg.prototype.finally=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
|
|
209
|
-
mg.prototype.
|
|
210
|
-
function sg(a,b,c){try{var d=a(b);if(d&&d.promise&&d.abort)return c.resolve(d.promise),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){},function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}}P("shaka.util.AbortableOperation",mg);mg.prototype.chain=mg.prototype.
|
|
209
|
+
mg.prototype.Qa=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=sg(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new lg,g=new U(2,7,7001);this.promise.then(c(!0),c(!1));return new mg(f,function(){return d()})};
|
|
210
|
+
function sg(a,b,c){try{var d=a(b);if(d&&d.promise&&d.abort)return c.resolve(d.promise),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){},function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}}P("shaka.util.AbortableOperation",mg);mg.prototype.chain=mg.prototype.Qa;mg.prototype["finally"]=mg.prototype.finally;mg.all=rg;mg.prototype.abort=mg.prototype.abort;mg.notAbortable=qg;mg.completed=pg;mg.aborted=og;mg.failed=ng;function tg(){this.g=[]}function ug(a,b){a.g.push(b.finally(function(){Od(a.g,b)}))}tg.prototype.destroy=function(){for(var a=[],b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise.catch(function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function vg(a,b,c,d,e,f){gb.call(this);this.i=!1;this.m=new tg;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.A=c||null;this.F=d||null;this.H=e||null;this.G=f||null;this.o=this.u=!1}na(vg,gb);q=vg.prototype;q.Zg=function(a){this.u=a};q.$g=function(a){this.o=a};function wg(a,b,c,d){c=c||xg;var e=yg[a];if(!e||c>=e.priority)yg[a]={priority:c,ef:b,Xj:void 0===d?!1:d}}
|
|
211
211
|
function zg(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())b.g.add(d.value);a=t(a.h);for(d=a.next();!d.done;d=a.next())b.h.add(d.value)}q.$j=function(a){this.g.add(a)};q.Dk=function(a){this.g.delete(a)};q.Li=function(){this.g.clear()};q.bk=function(a){this.h.add(a)};q.Ek=function(a){this.h.delete(a)};q.Mi=function(){this.h.clear()};
|
|
212
212
|
function Ag(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===c?null:c}}q.destroy=function(){this.i=!0;this.g.clear();this.h.clear();gb.prototype.release.call(this);return this.m.destroy()};
|
|
213
|
-
q.request=function(a,b,c){var d=this,e=new Bg;if(this.i){var f=Promise.reject(new U(2,7,7001));f.catch(function(){});return new Cg(f,function(){return Promise.resolve()},e)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?Xe(b.retryParameters):jg();b.uris=Xe(b.uris);f=Dg(this,a,b,c);var g=f.
|
|
214
|
-
var m=0;g.promise.then(function(){m=Date.now()},function(){});var n=h.
|
|
215
|
-
function Dg(a,b,c,d){function e(h){f=f.
|
|
216
|
-
function Eg(a,b,c,d,e,f,g,h){a.u&&(c.uris[f]=c.uris[f].replace("https://","http://"));a.o&&(c.uris[f]=c.uris[f].replace("http://","https://"));0<f&&a.H&&a.H(b,d,c.uris[f],c.uris[f-1]);var k=new mb(c.uris[f]),l=k.Sb,m=!1;l||(l=location.protocol,l=l.slice(0,-1),nb(k,l),c.uris[f]=k.toString());l=l.toLowerCase();var n=(l=yg[l])?l.ef:null;if(!n)return ng(new U(2,1,1E3,k));var p=l.Xj,r=null,u=null,v=!1,w=!1,A;return qg(kg(e)).
|
|
217
|
-
var C=n(c.uris[f],c,b,function(D,K,G){r&&r.stop();u&&u.V(B/1E3);a.l&&b==Gg&&(z++,c.packetNumber=z,a.l(D,K,Hg(d),c),m=!0,h.g=G)},function(D){a.j&&a.j(D,c,b);w=!0;c.timeToFirstByte=Date.now()-c.requestStartTime});if(!p)return C;var y=c.retryParameters.connectionTimeout;y&&(r=new Ub(function(){v=!0;C.abort()}),r.V(y/1E3));var B=c.retryParameters.stallTimeout;B&&(u=new Ub(function(){v=!0;C.abort()}));return C}).
|
|
213
|
+
q.request=function(a,b,c){var d=this,e=new Bg;if(this.i){var f=Promise.reject(new U(2,7,7001));f.catch(function(){});return new Cg(f,function(){return Promise.resolve()},e)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?Xe(b.retryParameters):jg();b.uris=Xe(b.uris);f=Dg(this,a,b,c);var g=f.Qa(function(){return Eg(d,a,b,c,new ig(b.retryParameters,!1),0,null,e)}),h=g.Qa(function(p){return Fg(d,a,p,c)}),k=Date.now(),l=0;f.promise.then(function(){l=Date.now()-k},function(){});
|
|
214
|
+
var m=0;g.promise.then(function(){m=Date.now()},function(){});var n=h.Qa(function(p){var r=Date.now()-m,u=p.response;u.timeMs+=l;u.timeMs+=r;p.Bj||!d.l||u.fromCache||"HEAD"==b.method||a!=Gg||d.l(u.timeMs,u.data.byteLength,Hg(c));d.G&&d.G(a,u,c);return u},function(p){p&&(p.severity=2);throw p;});f=new Cg(n.promise,function(){return n.abort()},e);ug(this.m,f);return f};
|
|
215
|
+
function Dg(a,b,c,d){function e(h){f=f.Qa(function(){c.body&&(c.body=Ib(c.body));return h(b,c,d)})}var f=pg(void 0);a.F&&e(a.F);a=t(a.g);for(var g=a.next();!g.done;g=a.next())e(g.value);return f.Qa(void 0,function(h){if(h instanceof U&&7001==h.code)throw h;throw new U(2,1,1006,h);})}
|
|
216
|
+
function Eg(a,b,c,d,e,f,g,h){a.u&&(c.uris[f]=c.uris[f].replace("https://","http://"));a.o&&(c.uris[f]=c.uris[f].replace("http://","https://"));0<f&&a.H&&a.H(b,d,c.uris[f],c.uris[f-1]);var k=new mb(c.uris[f]),l=k.Sb,m=!1;l||(l=location.protocol,l=l.slice(0,-1),nb(k,l),c.uris[f]=k.toString());l=l.toLowerCase();var n=(l=yg[l])?l.ef:null;if(!n)return ng(new U(2,1,1E3,k));var p=l.Xj,r=null,u=null,v=!1,w=!1,A;return qg(kg(e)).Qa(function(){if(a.i)return og();A=Date.now();var z=0;c.requestStartTime=Date.now();
|
|
217
|
+
var C=n(c.uris[f],c,b,function(D,K,G){r&&r.stop();u&&u.V(B/1E3);a.l&&b==Gg&&(z++,c.packetNumber=z,a.l(D,K,Hg(d),c),m=!0,h.g=G)},function(D){a.j&&a.j(D,c,b);w=!0;c.timeToFirstByte=Date.now()-c.requestStartTime});if(!p)return C;var y=c.retryParameters.connectionTimeout;y&&(r=new Ub(function(){v=!0;C.abort()}),r.V(y/1E3));var B=c.retryParameters.stallTimeout;B&&(u=new Ub(function(){v=!0;C.abort()}));return C}).Qa(function(z){r&&r.stop();u&&u.stop();void 0==z.timeMs&&(z.timeMs=Date.now()-A);var C={response:z,
|
|
218
218
|
Bj:m};!w&&a.j&&a.j(z.headers,c,b);return C},function(z){r&&r.stop();u&&u.stop();if(a.A){var C=null,y=0;z instanceof U&&(C=z,1001==z.code&&(y=z.data[1]));a.A(c,C,y,v)}if(a.i)return og();v&&(z=new U(1,1,1003,c.uris[f],b));if(z instanceof U){if(7001==z.code)throw z;if(1010==z.code)throw g;if(1==z.severity)return C=(new Map).set("error",z),C=new S("retry",C),a.dispatchEvent(C),f=(f+1)%c.uris.length,Eg(a,b,c,d,e,f,z,h)}throw z;})}
|
|
219
|
-
function Fg(a,b,c,d){var e=pg(void 0),f={};a=t(a.h);for(var g=a.next();!g.done;f={Ff:f.Ff},g=a.next())f.Ff=g.value,e=e.
|
|
219
|
+
function Fg(a,b,c,d){var e=pg(void 0),f={};a=t(a.h);for(var g=a.next();!g.done;f={Ff:f.Ff},g=a.next())f.Ff=g.value,e=e.Qa(function(h){return function(){var k=c.response;k.data&&(k.data=Ib(k.data));return h.Ff(b,k,d)}}(f));return e.Qa(function(){return c},function(h){var k=2;if(h instanceof U){if(7001==h.code)throw h;k=h.severity}throw new U(k,1,1007,h);})}function Hg(a){if(a){var b=a.segment;a=a.stream;if(b&&a&&a.fastSwitching&&b.fe)return!1}return!0}P("shaka.net.NetworkingEngine",vg);
|
|
220
220
|
vg.prototype.request=vg.prototype.request;vg.prototype.destroy=vg.prototype.destroy;vg.makeRequest=Ag;vg.defaultRetryParameters=function(){return jg()};vg.prototype.clearAllResponseFilters=vg.prototype.Mi;vg.prototype.unregisterResponseFilter=vg.prototype.Ek;vg.prototype.registerResponseFilter=vg.prototype.bk;vg.prototype.clearAllRequestFilters=vg.prototype.Li;vg.prototype.unregisterRequestFilter=vg.prototype.Dk;vg.prototype.registerRequestFilter=vg.prototype.$j;vg.unregisterScheme=function(a){delete yg[a]};
|
|
221
221
|
vg.registerScheme=wg;vg.prototype.setForceHTTPS=vg.prototype.$g;vg.prototype.setForceHTTP=vg.prototype.Zg;function Bg(){this.g=0}vg.NumBytesRemainingClass=Bg;function Cg(a,b,c){mg.call(this,a,b);this.h=c}na(Cg,mg);vg.PendingRequest=Cg;var Gg=1;vg.RequestType={MANIFEST:0,SEGMENT:Gg,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8};vg.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5};var xg=3;
|
|
222
|
-
vg.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:xg};var yg={};function Ig(a){this.g=!1;this.h=new lg;this.i=a}Ig.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 Jg(a,b){if(a.g){if(b instanceof U&&7003==b.code)throw b;throw new U(2,7,7003,b);}};function Kg(a){for(var b=new Map,c=t(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function Lg(a){var b={};a.forEach(function(c,d){b[d]=c});return b};function Mg(a,b){this.h=Lb(a);this.i=b==Ng;this.g=0}q=Mg.prototype;q.
|
|
222
|
+
vg.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:xg};var yg={};function Ig(a){this.g=!1;this.h=new lg;this.i=a}Ig.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 Jg(a,b){if(a.g){if(b instanceof U&&7003==b.code)throw b;throw new U(2,7,7003,b);}};function Kg(a){for(var b=new Map,c=t(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function Lg(a){var b={};a.forEach(function(c,d){b[d]=c});return b};function Mg(a,b){this.h=Lb(a);this.i=b==Ng;this.g=0}q=Mg.prototype;q.Ca=function(){return this.g<this.h.byteLength};q.Ja=function(){return this.g};q.getLength=function(){return this.h.byteLength};q.X=function(){try{var a=this.h.getUint8(this.g);this.g+=1;return a}catch(b){throw Og();}};q.wa=function(){try{var a=this.h.getUint16(this.g,this.i);this.g+=2;return a}catch(b){throw Og();}};q.T=function(){try{var a=this.h.getUint32(this.g,this.i);this.g+=4;return a}catch(b){throw Og();}};
|
|
223
223
|
q.Xh=function(){try{var a=this.h.getInt32(this.g,this.i);this.g+=4;return a}catch(b){throw Og();}};q.md=function(){try{if(this.i){var a=this.h.getUint32(this.g,!0);var b=this.h.getUint32(this.g+4,!0)}else b=this.h.getUint32(this.g,!1),a=this.h.getUint32(this.g+4,!1)}catch(c){throw Og();}if(2097151<b)throw new U(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};q.Hb=function(a){if(this.g+a>this.h.byteLength)throw Og();var b=Gb(this.h,this.g,a);this.g+=a;return b};
|
|
224
|
-
q.skip=function(a){if(this.g+a>this.h.byteLength)throw Og();this.g+=a};q.jk=function(a){if(this.g<a)throw Og();this.g-=a};q.seek=function(a){if(0>a||a>this.h.byteLength)throw Og();this.g=a};q.Ic=function(){for(var a=this.g;this.
|
|
225
|
-
Mg.prototype.skip=Mg.prototype.skip;Mg.prototype.readBytes=Mg.prototype.Hb;Mg.prototype.readUint64=Mg.prototype.md;Mg.prototype.readInt32=Mg.prototype.Xh;Mg.prototype.readUint32=Mg.prototype.T;Mg.prototype.readUint16=Mg.prototype.wa;Mg.prototype.readUint8=Mg.prototype.X;Mg.prototype.getLength=Mg.prototype.getLength;Mg.prototype.getPosition=Mg.prototype.
|
|
226
|
-
q.kd=function(a,b,c,d){var e=b.
|
|
227
|
-
partialOkay:c||!1,version:m,flags:n,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.
|
|
228
|
-
function Yg(a){var b=Vg(a);a.reader.skip(8);var c=a.reader.wa();a.reader.skip(6);2==c?a.reader.skip(48):a.reader.skip(12);for(1==c&&a.reader.skip(16);a.reader.
|
|
224
|
+
q.skip=function(a){if(this.g+a>this.h.byteLength)throw Og();this.g+=a};q.jk=function(a){if(this.g<a)throw Og();this.g-=a};q.seek=function(a){if(0>a||a>this.h.byteLength)throw Og();this.g=a};q.Ic=function(){for(var a=this.g;this.Ca()&&0!=this.h.getUint8(this.g);)this.g+=1;a=Gb(this.h,a,this.g-a);this.g+=1;return wc(a)};function Og(){return new U(2,3,3E3)}P("shaka.util.DataViewReader",Mg);Mg.prototype.readTerminatedString=Mg.prototype.Ic;Mg.prototype.seek=Mg.prototype.seek;Mg.prototype.rewind=Mg.prototype.jk;
|
|
225
|
+
Mg.prototype.skip=Mg.prototype.skip;Mg.prototype.readBytes=Mg.prototype.Hb;Mg.prototype.readUint64=Mg.prototype.md;Mg.prototype.readInt32=Mg.prototype.Xh;Mg.prototype.readUint32=Mg.prototype.T;Mg.prototype.readUint16=Mg.prototype.wa;Mg.prototype.readUint8=Mg.prototype.X;Mg.prototype.getLength=Mg.prototype.getLength;Mg.prototype.getPosition=Mg.prototype.Ja;Mg.prototype.hasMoreData=Mg.prototype.Ca;var Ng=1;Mg.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Ng};function Pg(){this.i=[];this.h=[];this.g=!1}q=Pg.prototype;q.box=function(a,b){a=Qg(a);this.i[a]=Rg;this.h[a]=b;return this};q.W=function(a,b){a=Qg(a);this.i[a]=Sg;this.h[a]=b;return this};q.stop=function(){this.g=!0};q.parse=function(a,b,c){a=new Mg(a,0);for(this.g=!1;a.Ca()&&!this.g;)this.kd(0,a,b,c)};
|
|
226
|
+
q.kd=function(a,b,c,d){var e=b.Ja();if(d&&e+8>b.getLength())this.g=!0;else{var f=b.T(),g=b.T(),h=Tg(g),k=!1;switch(f){case 0:f=b.getLength()-e;break;case 1:if(d&&b.Ja()+8>b.getLength()){this.g=!0;return}f=b.md();k=!0}var l=this.h[g];if(l){var m=null,n=null;if(this.i[g]==Sg){if(d&&b.Ja()+4>b.getLength()){this.g=!0;return}n=b.T();m=n>>>24;n&=16777215}g=e+f;c&&g>b.getLength()&&(g=b.getLength());d&&g>b.getLength()?this.g=!0:(d=g-b.Ja(),b=0<d?b.Hb(d):new Uint8Array(0),b=new Mg(b,0),l({name:h,parser:this,
|
|
227
|
+
partialOkay:c||!1,version:m,flags:n,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.Ja(),b.getLength()-b.Ja()))}};function Ug(a){for(var b=Vg(a);a.reader.Ca()&&!a.parser.g;)a.parser.kd(a.start+b,a.reader,a.partialOkay)}function Wg(a){for(var b=Vg(a),c=a.reader.T(),d=0;d<c&&(a.parser.kd(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function Xg(a){var b=Vg(a);for(a.reader.skip(78);a.reader.Ca()&&!a.parser.g;)a.parser.kd(a.start+b,a.reader,a.partialOkay)}
|
|
228
|
+
function Yg(a){var b=Vg(a);a.reader.skip(8);var c=a.reader.wa();a.reader.skip(6);2==c?a.reader.skip(48):a.reader.skip(12);for(1==c&&a.reader.skip(16);a.reader.Ca()&&!a.parser.g;)a.parser.kd(a.start+b,a.reader,a.partialOkay)}function Zg(a){return function(b){a(b.reader.Hb(b.reader.getLength()-b.reader.Ja()))}}function Qg(a){var b=0;a=t(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function Tg(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}
|
|
229
229
|
function Vg(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}P("shaka.util.Mp4Parser",Pg);Pg.headerSize=Vg;Pg.typeToString=Tg;Pg.allData=Zg;Pg.audioSampleEntry=Yg;Pg.visualSampleEntry=Xg;Pg.sampleDescription=Wg;Pg.children=Ug;Pg.prototype.parseNext=Pg.prototype.kd;Pg.prototype.parse=Pg.prototype.parse;Pg.prototype.stop=Pg.prototype.stop;Pg.prototype.fullBox=Pg.prototype.W;Pg.prototype.box=Pg.prototype.box;var Rg=0,Sg=1;function $g(a){var b=this;this.g=[];this.h=[];this.data=[];(new Pg).box("moov",Ug).box("moof",Ug).W("pssh",function(c){if(!(1<c.version)){var d=Gb(c.reader.h,-12,c.size);b.data.push(d);b.g.push(Jc(c.reader.Hb(16)));if(0<c.version){d=c.reader.T();for(var e=0;e<d;e++){var f=Jc(c.reader.Hb(16));b.h.push(f)}}}}).parse(a)}
|
|
230
230
|
function ah(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=Lb(g),k=0;h.setUint32(k,f);k+=4;h.setUint32(k,1886614376);k+=4;1>d?h.setUint32(k,0):h.setUint32(k,16777216);k+=4;g.set(b,k);k+=b.length;if(0<d)for(h.setUint32(k,c.size),k+=4,b=t(c),c=b.next();!c.done;c=b.next())c=Ic(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};/*
|
|
231
231
|
@license
|
|
@@ -247,7 +247,7 @@ function Eh(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2
|
|
|
247
247
|
function Fh(a){var b=[];a=Dc(a).split(/\/+(?=(?:[^'"]*['"][^'"]*['"])*[^'"]*$)/);a=t(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.match(/^([\w]+)/);if(d){var e=c.match(/(@id='(.*?)')/),f=c.match(/\[(\d+)\]/);b.push({name:d[0],id:e?e[0].match(/'(.*?)'/)[0].replace(/'/gm,""):null,position:f?Number(f[1])-1:null,ec:c.split("/@")[1]||null})}else c.startsWith("@")&&b.length&&(b[b.length-1].ec=c.slice(1))}return b}
|
|
248
248
|
function Gh(a,b){var c=Fh(b.attributes.sel||"");if(c.length){var d=c[c.length-1],e=b.attributes.pos||null;c=d.position;null===c?c="prepend"===e?0:a.length:"prepend"===e?--c:"after"===e&&++c;e=b.tagName;(d=d.ec)?Hh(a[c],e,d,mh(b)||""):("remove"!==e&&"replace"!==e||a.splice(c,1),"add"!==e&&"replace"!==e||a.splice.apply(a,[c,0].concat(x(b.children))))}}function Hh(a,b,c,d){if("remove"===b)delete a.attributes[c];else if("add"===b||"replace"===b)a.attributes[c]=d}
|
|
249
249
|
function Ih(a,b,c){b=void 0===b?!0:b;c=void 0===c?!0:c;var d=document.createElement(a.tagName),e;for(e in a.attributes)d.setAttribute(e,a.attributes[e]);b&&a.parent&&"?xml"!=a.parent.tagName&&Ih(a.parent,!0,!1).appendChild(d);if(c)for(a=t(a.children),b=a.next();!b.done;b=a.next())b=b.value,c=void 0,"string"==typeof b?c=new Text(b):c=Ih(b,!1,!0),d.appendChild(c);return d}var hh=new Map([]);function Jh(a){var b=this;this.G=a;this.J=new Set;this.m=this.u=null;this.ha=this.ba=!1;this.K=0;this.g=null;this.F=new od;this.i=new Map;this.A=new Map;this.l=new lg;this.h=null;this.o=function(c){2==c.severity&&b.l.reject(c);a.onError(c)};this.Z=new Map;this.ea=new Map;this.N=new Ub(function(){return Kh(b)});this.R=!1;this.O=[];this.S=!1;this.L=new Ub(function(){Lh(b)});this.l.catch(function(){});this.j=new Ig(function(){return Mh(b)});this.$=!1;this.H=this.I=null}q=Jh.prototype;q.destroy=function(){return this.j.destroy()};
|
|
250
|
-
function Mh(a){return O(function(b){switch(b.g){case 1:return a.F.release(),a.F=null,a.l.reject(),a.L.stop(),a.L=null,a.N.stop(),a.N=null,E(b,Nh(a),2);case 2:if(!a.m){b.B(3);break}ta(b,4);return E(b,a.m.setMediaKeys(null),6);case 6:va(b,5);break;case 4:wa(b);case 5:a.m=null;case 3:a.g=null,a.J.clear(),a.u=null,a.A=new Map,a.h=null,a.o=function(){},a.G=null,a.$=!1,a.I=null,F(b)}})}q.configure=function(a){this.h=a;this.L&&this.L.
|
|
250
|
+
function Mh(a){return O(function(b){switch(b.g){case 1:return a.F.release(),a.F=null,a.l.reject(),a.L.stop(),a.L=null,a.N.stop(),a.N=null,E(b,Nh(a),2);case 2:if(!a.m){b.B(3);break}ta(b,4);return E(b,a.m.setMediaKeys(null),6);case 6:va(b,5);break;case 4:wa(b);case 5:a.m=null;case 3:a.g=null,a.J.clear(),a.u=null,a.A=new Map,a.h=null,a.o=function(){},a.G=null,a.$=!1,a.I=null,F(b)}})}q.configure=function(a){this.h=a;this.L&&this.L.za(this.h.updateExpirationTime)};
|
|
251
251
|
function Oh(a,b,c){a.ha=!0;a.A=new Map;a.R=c;return Ph(a,b)}function Qh(a,b,c){a.A=new Map;c=t(c);for(var d=c.next();!d.done;d=c.next())a.A.set(d.value,{initData:null,initDataType:null});c=t(a.h.persistentSessionsMetadata);for(d=c.next();!d.done;d=c.next())d=d.value,a.A.set(d.sessionId,{initData:d.initData,initDataType:d.initDataType});a.R=0<a.A.size;return Ph(a,b)}
|
|
252
252
|
function Rh(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 Sh(a,g,[])}
|
|
253
253
|
function Ph(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,A,z;return O(function(C){if(1==C.g){if(c=Th(a))for(d=t(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(y){return y.video&&y.video.drmInfos.length||y.audio&&y.audio.drmInfos.length?!0:!1});g||(h=Kg(a.h.servers),Uh(b,h));k=new Set;l=t(b);for(e=l.next();!e.done;e=l.next())for(m=e.value,n=Vh(m),p=t(n),r=p.next();!r.done;r=p.next())u=r.value,k.add(u);v=t(k);for(r=v.next();!r.done;r=
|
|
@@ -290,8 +290,8 @@ J,"")),v.push(n(D,null,"",J));return E(I,Promise.all(v),2)}return I.return(Lg(k)
|
|
|
290
290
|
function Nh(a){var b;return O(function(c){b=Array.from(a.i.entries());a.i.clear();return E(c,Promise.all(b.map(function(d){d=t(d);var e=d.next().value,f=d.next().value;return O(function(g){if(1==g.g)return ta(g,2),a.ha||a.A.has(e.sessionId)||"persistent-license"!==f.type||a.h.persistentSessionOnlinePlayback?E(g,ri(e),5):E(g,e.remove(),5);if(2!=g.g)return va(g,0);wa(g);F(g)})})),0)})}function Vh(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}
|
|
291
291
|
function Lh(a){a.i.forEach(function(b,c){var d=b.Lg,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.G.onExpirationUpdated(c.sessionId,e),b.Lg=e)})}function fi(a){a=a.i.values();return ib(a,function(b){return b.loaded})}function ei(a){for(var b=t(a.g&&a.g.keyIds||new Set([])),c=b.next();!c.done;c=b.next())if("usable"!==a.Z.get(c.value))return!1;return!0}
|
|
292
292
|
function Uh(a,b){var c=[];b.forEach(function(d,e){c.push({keySystem:e,licenseServerUri:d,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})});a=t(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.video&&(b.video.drmInfos=c),b.audio&&(b.audio.drmInfos=c)}
|
|
293
|
-
function ki(a,b,c,d,e,f,g){var h=[],k={};a=t(a);for(var l=a.next();!l.done;k={
|
|
294
|
-
(d.some(function(p){return function(r){return Eb(r,p.
|
|
293
|
+
function ki(a,b,c,d,e,f,g){var h=[],k={};a=t(a);for(var l=a.next();!l.done;k={Fa:k.Fa},l=a.next()){k.Fa=l.value;b.includes(k.Fa.encryptionScheme)||b.push(k.Fa.encryptionScheme);"org.w3.clearkey"==k.Fa.keySystem&&k.Fa.licenseServerUri.startsWith("data:application/json;base64,")?h.includes(k.Fa.licenseServerUri)||h.push(k.Fa.licenseServerUri):c.includes(k.Fa.licenseServerUri)||c.push(k.Fa.licenseServerUri);e.includes(k.Fa.serverCertificateUri)||e.push(k.Fa.serverCertificateUri);k.Fa.serverCertificate&&
|
|
294
|
+
(d.some(function(p){return function(r){return Eb(r,p.Fa.serverCertificate)}}(k))||d.push(k.Fa.serverCertificate));if(k.Fa.initData){l={};for(var m=t(k.Fa.initData),n=m.next();!n.done;l={se:l.se},n=m.next())l.se=n.value,f.some(function(p){return function(r){var u=p.se;return r.keyId&&r.keyId==u.keyId?!0:r.initDataType==u.initDataType&&Eb(r.initData,u.initData)}}(l))||f.push(l.se)}if(k.Fa.keyIds)for(l=t(k.Fa.keyIds),m=l.next();!m.done;m=l.next())g.add(m.value)}if(1==h.length)c.push(h[0]);else if(0<
|
|
295
295
|
h.length){b=[];h=t(h);for(d=h.next();!d.done;d=h.next())d=window.atob(d.value.split("data:application/json;base64,").pop()),d=JSON.parse(d),b.push.apply(b,x(d.keys));h=JSON.stringify({keys:b});c.push("data:application/json;base64,"+window.btoa(h))}}
|
|
296
296
|
function Wh(a,b,c,d){var e=a.keySystem;if(e&&("org.w3.clearkey"!=e||!a.licenseServerUri)){b.size&&(b=b.get(e)||"",a.licenseServerUri=b);a.keyIds||(a.keyIds=new Set);if(c=c.get(e))a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness),a.audioRobustness||(a.audioRobustness=c.audioRobustness),a.serverCertificate||(a.serverCertificate=
|
|
297
297
|
c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertificateUri||(a.serverCertificateUri=c.serverCertificateUri);d[e]&&(a.keySystem=d[e]);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==e&&(a.keySystem="com.chromecast.playready")}}var si=1,ni=5,pi=.5;/*
|
|
@@ -307,10 +307,10 @@ missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new U(2,4,4012,a)
|
|
|
307
307
|
function(m){k.push({box:m,zb:1701733238})}).W("avc1",function(m){k.push({box:m,zb:1701733238})}).W("avc3",function(m){k.push({box:m,zb:1701733238})}).W("ac-3",function(m){k.push({box:m,zb:1701733217})}).W("ec-3",function(m){k.push({box:m,zb:1701733217})}).W("ac-4",function(m){k.push({box:m,zb:1701733217})}).W("mp4a",function(m){k.push({box:m,zb:1701733217})}).parse(a);if(f)return a;if(0==k.length||!g)throw eb(Jc(a)),new U(2,3,3019,b);k.reverse();b=t(k);for(var l=b.next();!l.done;l=b.next())l=l.value,
|
|
308
308
|
e=Di(e,g,l.box,h,l.zb);return Yb()&&nc()?(b=new Uint8Array(a.byteLength+e.byteLength),b.set(e),b.set(a,e.byteLength),b):e}
|
|
309
309
|
function Di(a,b,c,d,e){var f=Ei.value(),g=a.subarray(c.start,c.start+c.size),h=Lb(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=Lb(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);Fi(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=Zb()||Yb()?c.start:c.start+c.size;f=a.subarray(c);e.set(a.subarray(0,c));e.set(k,c);e.set(f,c+k.byteLength);a=t(d);for(d=a.next();!d.done;d=a.next())d=d.value,Fi(e,d.start,d.size+k.byteLength);k=Lb(e,b.start);b=Vg(b);
|
|
310
|
-
a=k.getUint32(b);k.setUint32(b,a+1);return e}function Fi(a,b,c){a=Lb(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}var Ei=new Nb(function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])});function Gi(a,b,c,d,e,f,g){this.P=a;this.
|
|
310
|
+
a=k.getUint32(b);k.setUint32(b,a+1);return e}function Fi(a,b,c){a=Lb(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}var Ei=new Nb(function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])});function Gi(a,b,c,d,e,f,g){this.P=a;this.Wa=b;this.Da=c;this.Ig=void 0===d?null:d;this.timescale=void 0===e?null:e;this.g=void 0===f?null:f;this.aesKey=void 0===g?null:g;this.mimeType=this.codecs=null}Gi.prototype.Pb=function(){return this.Wa};Gi.prototype.Nb=function(){return this.Da};Gi.prototype.Sd=function(){return this.g};function Hi(a,b){return a===b?!0:a&&b?a.Pb()==b.Pb()&&a.Nb()==b.Nb()&&Qd(a.P().sort(),b.P().sort())&&Eb(a.Sd(),b.Sd()):a==b}P("shaka.media.InitSegmentReference",Gi);
|
|
311
311
|
Gi.prototype.getEndByte=Gi.prototype.Nb;Gi.prototype.getStartByte=Gi.prototype.Pb;
|
|
312
|
-
function Ii(a,b,c,d,e,f,g,h,k,l,m,n,p,r,u,v){l=void 0===l?[]:l;r=void 0===r?Ji:r;this.startTime=a;this.i=this.endTime=b;this.G=c;this.
|
|
313
|
-
a.next())b.value.Sh();this.o&&this.g.length&&this.g[this.g.length-1].Rh();this.F=this.mimeType=this.codecs=null}q=Ii.prototype;q.P=function(){return this.G()};q.getStartTime=function(){return this.startTime};q.aj=function(){return this.endTime};q.Pb=function(){return this.
|
|
312
|
+
function Ii(a,b,c,d,e,f,g,h,k,l,m,n,p,r,u,v){l=void 0===l?[]:l;r=void 0===r?Ji:r;this.startTime=a;this.i=this.endTime=b;this.G=c;this.Wa=d;this.Da=e;this.sa=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.g=l;this.tilesLayout=void 0===m?"":m;this.A=void 0===n?null:n;this.h=void 0===p?null:p;this.status=r;this.preload=!1;this.l=!0;this.m=!1;this.aesKey=void 0===u?null:u;this.u=null;this.j=0;this.o=void 0===v?!1:v;this.Te=this.fe=!1;a=t(this.g);for(b=a.next();!b.done;b=
|
|
313
|
+
a.next())b.value.Sh();this.o&&this.g.length&&this.g[this.g.length-1].Rh();this.F=this.mimeType=this.codecs=null}q=Ii.prototype;q.P=function(){return this.G()};q.getStartTime=function(){return this.startTime};q.aj=function(){return this.endTime};q.Pb=function(){return this.Wa};q.Nb=function(){return this.Da};q.uj=function(){return this.tilesLayout};q.tj=function(){return this.A};q.zc=function(){return this.status};q.Rj=function(){this.status=Ki};q.Hg=function(){this.preload=!0};q.Jj=function(){return this.preload};
|
|
314
314
|
q.Ve=function(){this.l=!1};q.Gj=function(){return this.l};q.Sh=function(){this.fe=!0};q.Ij=function(){return this.fe};q.Rh=function(){this.Te=!0};q.Hj=function(){return this.Te};q.Qh=function(){this.m=!0};q.Cj=function(){return this.m};q.ji=function(a){this.u=a};q.sj=function(){return this.u};q.offset=function(a){this.startTime+=a;this.endTime+=a;this.i+=a;for(var b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.i+=a};
|
|
315
315
|
q.fh=function(a){null==this.h?Xa("Sync attempted without sync time!"):(a=this.h-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};q.zk=function(a){this.F=a};q.Sd=function(){return this.F};function Li(a,b){a.sa=b;a=t(a.g);for(var c=a.next();!c.done;c=a.next())Li(c.value,b)}P("shaka.media.SegmentReference",Ii);Ii.prototype.getSegmentData=Ii.prototype.Sd;Ii.prototype.setSegmentData=Ii.prototype.zk;Ii.prototype.syncAgainst=Ii.prototype.fh;Ii.prototype.offset=Ii.prototype.offset;
|
|
316
316
|
Ii.prototype.getThumbnailSprite=Ii.prototype.sj;Ii.prototype.setThumbnailSprite=Ii.prototype.ji;Ii.prototype.hasByterangeOptimization=Ii.prototype.Cj;Ii.prototype.markAsByterangeOptimization=Ii.prototype.Qh;Ii.prototype.isLastPartial=Ii.prototype.Hj;Ii.prototype.markAsLastPartial=Ii.prototype.Rh;Ii.prototype.isPartial=Ii.prototype.Ij;Ii.prototype.markAsPartial=Ii.prototype.Sh;Ii.prototype.isIndependent=Ii.prototype.Gj;Ii.prototype.markAsNonIndependent=Ii.prototype.Ve;Ii.prototype.isPreload=Ii.prototype.Jj;
|
|
@@ -368,38 +368,38 @@ function zj(a){var b={height:null,width:null,cb:null};a=a.Oe();if(!a.length)retu
|
|
|
368
368
|
a.toString(16).toUpperCase());b.cb=e;return b}function yj(a,b){var c=1;for(a>b&&(c=-1);4294967296<Math.abs(b-a);)a+=8589934592*c;return a}function Cj(a){return 0>wj(a)?!1:!0}function wj(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}P("shaka.util.TsParser",vj);vj.syncOffset=wj;vj.probe=Cj;vj.prototype.getVideoInfo=vj.prototype.wg;vj.prototype.getVideoResolution=vj.prototype.zj;vj.prototype.getVideoNalus=vj.prototype.Oe;
|
|
369
369
|
vj.prototype.getCodecs=vj.prototype.Od;vj.prototype.getStartTime=vj.prototype.getStartTime;vj.prototype.getVideoData=vj.prototype.bd;vj.prototype.getAudioData=vj.prototype.fc;vj.prototype.getMetadata=vj.prototype.getMetadata;vj.prototype.parseNalus=vj.prototype.Og;vj.prototype.parseAvcNalus=vj.prototype.Wj;vj.prototype.parse=vj.prototype.parse;vj.prototype.clearData=vj.prototype.clearData;vj.Timescale=9E4;var Bj=[100,110,122,244,44,83,86,118,128,138,139,134];function Dj(a,b,c){this.g=null;this.o=-1;this.l=a;this.i=b;this.m=c;this.j=!1;a:{"undefined"===typeof libDPIModule&&Ya("Could not find LCEVC Library dependencies on this page");if("undefined"!==typeof LCEVCdec)this.h=LCEVCdec;else if("undefined"!==typeof LcevcDil)this.h=LcevcDil,this.j=!0,xd("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{Ya("Could not find LCEVC Library on this page");a=!1;break a}"undefined"===typeof this.h.SupportObject?(Ya("Could not find LCEVC Library on this page"),
|
|
370
370
|
a=!1):(this.h.SupportObject.SupportStatus||Ya(this.h.SupportObject.SupportError),a="undefined"!==typeof this.h&&"undefined"!==typeof libDPIModule&&this.i instanceof HTMLCanvasElement&&this.h.SupportObject.SupportStatus)}a&&!this.g&&this.h.SupportObject.webGLSupport(this.i)&&(this.i.classList.remove("shaka-hidden"),this.g=this.j?new this.h.LcevcDil(this.l,this.i,this.m):new this.h.LCEVCdec(this.l,this.i,this.m))}function Ej(a){a.g&&a.i.classList.add("shaka-hidden")}
|
|
371
|
-
Dj.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function Fj(a,b,c){var d=Gj,e=Hj;switch(b.mimeType){case "video/webm":d=Ij;break;case "video/mp4":d=Jj}switch(c){case "DASH":e=Kj;break;case "HLS":e=Lj}a.g&&(a.o=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(d),a.j||a.g.setStreamingFormat(e))}P("shaka.lcevc.Dec",Dj);Dj.prototype.release=Dj.prototype.release;var Gj=0,Ij=1,Jj=2,Lj=0,Kj=1,Hj=-1;function Mj(a,b,c,d){var e=this;this.i=a;this.ba=c;this.A=null;this.H=b;this.h={};this.I={};this.
|
|
372
|
-
function Nj(a,b){if(window.ManagedMediaSource){a.i.disableRemotePlayback=!0;var c=new ManagedMediaSource;a.u.s(c,"startstreaming",function(){a.
|
|
373
|
-
function Qj(a,b){var c,d,e,f,g,h,k,l,m,n,p;return O(function(r){if(1==r.g)return a.createSegmentIndex?E(r,a.createSegmentIndex(),2):r.B(2);if(!a.segmentIndex)return r.return(!1);if(0==a.segmentIndex.getNumReferences())return r.return(!0);c=Uc;d=new Set;e=t(a.segmentIndex);for(f=e.next();!f.done;f=e.next())if(g=f.value,h=g.mimeType||a.mimeType||"",k=g.codecs||a.codecs||"",l=h+":"+k,!d.has(l))if(d.add(l),b==c.
|
|
371
|
+
Dj.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function Fj(a,b,c){var d=Gj,e=Hj;switch(b.mimeType){case "video/webm":d=Ij;break;case "video/mp4":d=Jj}switch(c){case "DASH":e=Kj;break;case "HLS":e=Lj}a.g&&(a.o=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(d),a.j||a.g.setStreamingFormat(e))}P("shaka.lcevc.Dec",Dj);Dj.prototype.release=Dj.prototype.release;var Gj=0,Ij=1,Jj=2,Lj=0,Kj=1,Hj=-1;function Mj(a,b,c,d){var e=this;this.i=a;this.ba=c;this.A=null;this.H=b;this.h={};this.I={};this.Ea={};this.g=null;this.ha=!1;this.Z=d||null;this.j={};this.u=new od;this.o={};this.J=null;this.N=new lg;this.O="";this.qa=!1;this.l=Nj(this,this.N);this.G=!1;this.K=new Ig(function(){return Oj(e)});this.F=!1;this.$="UNKNOWN";this.Ha=this.Na=!1;this.Ba=new lg;this.m=!1;this.xa=!0;this.ma=this.R=this.na=this.S=this.L=this.ea=null;this.Aa=new lg}
|
|
372
|
+
function Nj(a,b){if(window.ManagedMediaSource){a.i.disableRemotePlayback=!0;var c=new ManagedMediaSource;a.u.s(c,"startstreaming",function(){a.xa=!0});a.u.s(c,"endstreaming",function(){a.xa=!1});a.u.oa(c,"sourceopen",function(){URL.revokeObjectURL(a.O);b.resolve()});a.u.oa(a.i,"playing",function(){a.qa=!0});a.O=Pj(c);a.i.src=a.O;return c}c=new MediaSource;a.u.oa(c,"sourceopen",function(){URL.revokeObjectURL(a.O);b.resolve()});a.u.oa(a.i,"playing",function(){a.qa=!0});a.O=Pj(c);a.i.src=a.O;return c}
|
|
373
|
+
function Qj(a,b){var c,d,e,f,g,h,k,l,m,n,p;return O(function(r){if(1==r.g)return a.createSegmentIndex?E(r,a.createSegmentIndex(),2):r.B(2);if(!a.segmentIndex)return r.return(!1);if(0==a.segmentIndex.getNumReferences())return r.return(!0);c=Uc;d=new Set;e=t(a.segmentIndex);for(f=e.next();!f.done;f=e.next())if(g=f.value,h=g.mimeType||a.mimeType||"",k=g.codecs||a.codecs||"",l=h+":"+k,!d.has(l))if(d.add(l),b==c.Ga){if(m=te(h,k),!Ne(m))return r.return(!1)}else if(b==c.ra?k=mf(k):b==c.aa&&(k=nf(k,h)),n=
|
|
374
374
|
xe(a,h,k),p=ve(h,k),!td(n)&&!ne(p))return r.return(!1);return r.return(!0)})}q=Mj.prototype;q.destroy=function(){return this.K.destroy()};
|
|
375
375
|
function Oj(a){var b,c,d,e,f,g,h,k;return O(function(l){if(1==l.g){b=[];for(c in a.j)for(d=a.j[c],e=d[0],a.j[c]=d.slice(0,1),e&&b.push(e.p.catch(Ve)),f=t(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new U(2,7,7003,void 0));a.g&&b.push(a.g.destroy());a.H&&b.push(a.H.destroy());for(k in a.o)b.push(a.o[k].destroy());return E(l,Promise.all(b),2)}a.u&&(a.u.release(),a.u=null);a.i&&(a.i.removeAttribute("src"),a.i.load(),a.i=null);a.A=null;a.l=null;a.g=null;a.H=null;a.h={};a.o={};a.J=null;
|
|
376
|
-
a.j={};a.Z=null;a.L=null;a.ba=null;F(l)})}q.init=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?"UNKNOWN":c;d=void 0===d?!1:d;var e=this,f,g,h,k,l;return O(function(m){switch(m.g){case 1:return f=Uc,E(m,e.N,2);case 2:e.F=b,e.$=c,e.
|
|
377
|
-
function Rj(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,v;return O(function(w){switch(w.g){case 1:return e=Uc,f=Sa,g=Ta,E(w,Qj(c,b),2);case 2:g.call(f,w.h,"Type negotiation should happen before MediaSourceEngine.init!");h=te(c.mimeType,d);if(b==e.
|
|
378
|
-
Rj(a,e.ra,c,n),7);case 7:return w.return();case 5:if(p=ne(l))r=p(),a.o[b]=r,h=r.convertCodecs(b,l);case 4:u=h+a.A.addExtraFeaturesToSourceBuffer(h);Jg(a.K);try{v=a.l.addSourceBuffer(u)}catch(A){throw new U(2,3,3015,A,"The mediaSource_ status was "+a.l.readyState+" expected 'open'",null);}a.F&&(v.mode=Tj);a.u.s(v,"error",function(){var A=a.j[b][0];A.p.reject(new U(2,3,3014,a.i.error?a.i.error.code:0,A.uri))});a.u.s(v,"updateend",function(){return Uj(a,b)});a.h[b]=v;a.I[b]=h;a.
|
|
376
|
+
a.j={};a.Z=null;a.L=null;a.ba=null;F(l)})}q.init=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?"UNKNOWN":c;d=void 0===d?!1:d;var e=this,f,g,h,k,l;return O(function(m){switch(m.g){case 1:return f=Uc,E(m,e.N,2);case 2:e.F=b,e.$=c,e.Na=d,e.Ha=!e.F&&"HLS"==e.$&&!e.Na,e.L=null,g=t(a.keys()),h=g.next();case 3:if(h.done){m.B(0);break}k=h.value;l=a.get(k);return E(m,Rj(e,k,l,l.codecs),6);case 6:e.m?(e.j[f.aa]=[],e.j[f.ra]=[]):e.j[k]=[],h=g.next(),m.B(3)}})};
|
|
377
|
+
function Rj(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,v;return O(function(w){switch(w.g){case 1:return e=Uc,f=Sa,g=Ta,E(w,Qj(c,b),2);case 2:g.call(f,w.h,"Type negotiation should happen before MediaSourceEngine.init!");h=te(c.mimeType,d);if(b==e.Ga){Sj(a,h,a.F,c.external);w.B(0);break}k=a.A.forceTransmux;if(!td(h)||!a.F&&ue.includes(h))k=!0;l=ve(c.mimeType,d);if(!k){w.B(4);break}m=Pc(e.aa,(d||"").split(","));n=Pc(e.ra,(d||"").split(","));if(!m||!n){w.B(5);break}a.m=!0;return E(w,Rj(a,e.aa,c,m),6);case 6:return E(w,
|
|
378
|
+
Rj(a,e.ra,c,n),7);case 7:return w.return();case 5:if(p=ne(l))r=p(),a.o[b]=r,h=r.convertCodecs(b,l);case 4:u=h+a.A.addExtraFeaturesToSourceBuffer(h);Jg(a.K);try{v=a.l.addSourceBuffer(u)}catch(A){throw new U(2,3,3015,A,"The mediaSource_ status was "+a.l.readyState+" expected 'open'",null);}a.F&&(v.mode=Tj);a.u.s(v,"error",function(){var A=a.j[b][0];A.p.reject(new U(2,3,3014,a.i.error?a.i.error.code:0,A.uri))});a.u.s(v,"updateend",function(){return Uj(a,b)});a.h[b]=v;a.I[b]=h;a.Ea[b]=!!c.drmInfos.length;
|
|
379
379
|
F(w)}})}q.configure=function(a){this.A=a;this.g&&(this.g.A=a.modifyCueCallback)};
|
|
380
380
|
function Sj(a,b,c,d){a.g||(a.g=new Me(a.H),a.g&&(a.g.A=a.A.modifyCueCallback));var e=a.g;d=d||a.ha;a=a.$;"application/cea-608"==b||"application/cea-708"==b?e.i=null:(e.i=(0,Oe[b])(),e.i.setSequenceMode?e.i.setSequenceMode(c):xd("Text parsers w/ setSequenceMode",'Text parsers should have a "setSequenceMode" method!'),e.i.setManifestType?e.i.setManifestType(a):xd("Text parsers w/ setManifestType",'Text parsers should have a "setManifestType" method!'),e.F=d)}
|
|
381
381
|
function Vj(a){return a.G?!1:a.l?"ended"==a.l.readyState:!0}function Wj(a,b){a.G||!Object.keys(a.h).length?a=null:b==Sc?a=a.g.g:(a=Xj(a,b),a=!a||Mi(a)?null:1==a.length&&0>a.start(0)?0:a.length?a.start(0):null);return a}function Yj(a,b){return a.G?null:b==Sc?a.g.h:Ni(Xj(a,b))}function Zj(a,b,c){if(a.G)return 0;if(b==Sc)return a=a.g,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=Xj(a,b);return Pi(a,c)}
|
|
382
382
|
q.Mb=function(){var a={total:this.G?[]:Qi(this.i.buffered),audio:this.G?[]:Qi(Xj(this,"audio")),video:this.G?[]:Qi(Xj(this,"video")),text:[]};if(this.g){var b=this.g.g,c=this.g.h;null!=b&&null!=c&&a.text.push({start:b,end:c})}return a};function Xj(a,b){try{return a.h[b].buffered}catch(c){return null}}
|
|
383
383
|
function hk(a,b,c,d,e,f){var g=null,h=Gb(c);if(ue.includes(e))f=Xi(h),f.length&&d&&((b=f.find(function(n){return"com.apple.streaming.transportStreamTimestamp"===n.description}))&&b.data&&(g=Math.round(b.data)/1E3),a.ba.cf([{cueTime:d.startTime,data:h,frames:f,dts:d.startTime,pts:d.startTime}],0,d.endTime));else if(e.includes("/mp4")&&d&&0==d.timestampOffset&&d.sa&&d.sa.timescale){var k=d.sa.timescale;if(!isNaN(k)){var l=0,m=!1;(new Pg).box("moof",Ug).box("traf",Ug).W("tfdt",function(n){l=$i(n.reader,
|
|
384
384
|
n.version).baseMediaDecodeTime/k;m=!0;n.parser.stop()}).parse(c,!0);m&&(g=l)}}else e.includes("/mp4")||e.includes("/webm")||!Cj(h)||(a.L?a.L.clearData():a.L=new vj,h=a.L.parse(h),b=h.getStartTime(b),null!=b&&(g=b),h=h.getMetadata(),h.length&&a.ba.cf(h,f,d?d.endTime:null));return g}
|
|
385
|
-
function ik(a,b,c,d,e,f,g,h,k,l){g=void 0===g?!1:g;h=void 0===h?!1:h;k=void 0===k?!1:k;l=void 0===l?!1:l;var m,n,p,r,u,v,w,A,z,C,y,B,D,K;return O(function(G){switch(G.g){case 1:m=Uc;if(b!=m.
|
|
386
|
-
case 6:if(!a.h[b])return G.return();p=a.h[b].timestampOffset;r=a.I[b];a.o[b]&&(r=a.o[b].getOriginalMimeType());d&&(u=hk(a,b,c,d,r,p),null!=u&&(null==a.S&&b==m.ra&&(a.S=u,null!=a.R&&(v=a.S-a.R,a.
|
|
387
|
-
(a.g||Sj(a,"application/cea-608",a.F,!1),a.J||(y=r.split(";",1)[0],a.J=new Ed(y)),d?(B=a.J.i(c),B.length&&Te(a.g,B,d.startTime,d.endTime,p)):a.J.init(c,h));if(!a.o[b]){G.B(9);break}return E(G,a.o[b].transmux(c,e,d,a.l.duration,b),10);case 10:c=G.h;case 9:c=mk(a,c,d?d.startTime:null,b,d?d.P()[0]:null);if(!d||!a.F||b==m.
|
|
388
|
-
b,function(){return kk(a,b)},null),jk(a,b,function(){return lk(a,b,D)},null);case 11:return E(G,jk(a,b,function(){var J=c;if("video"==b&&a.Z){var I=a.Z;I.g&&I.g.appendBuffer(J,"video",I.o,-p)}a.h[b].appendBuffer(J)},d?d.P()[0]:null),15);case 15:F(G)}})}function nk(a,b){var c=Yj(a,"video")||0;Re(a.g,b,c)}function ok(a){a.g&&Re(a.g,"",0)}
|
|
389
|
-
q.remove=function(a,b,c){var d=this,e;return O(function(f){return 1==f.g?(e=Uc,a==e.
|
|
390
|
-
q.flush=function(a){var b=this,c;return O(function(d){return 1==d.g?(c=Uc,a==c.
|
|
391
|
-
function rk(a,b,c,d,e,f,g,h,k){var l,m,n;return O(function(p){if(1==p.g){l=Uc;if(b==l.
|
|
385
|
+
function ik(a,b,c,d,e,f,g,h,k,l){g=void 0===g?!1:g;h=void 0===h?!1:h;k=void 0===k?!1:k;l=void 0===l?!1:l;var m,n,p,r,u,v,w,A,z,C,y,B,D,K;return O(function(G){switch(G.g){case 1:m=Uc;if(b!=m.Ga){G.B(2);break}if(!a.F){G.B(3);break}return E(G,a.Ba,4);case 4:n=G.h,a.g.u=n;case 3:return E(G,Pe(a.g,c,d?d.startTime:null,d?d.endTime:null,d?d.P()[0]:null),5);case 5:return G.return();case 2:if(l||!a.m){G.B(6);break}return E(G,ik(a,m.aa,c,d,e,f,g,h,k,!0),7);case 7:return E(G,ik(a,m.ra,c,d,e,f,g,h,k,!0),8);case 8:return G.return();
|
|
386
|
+
case 6:if(!a.h[b])return G.return();p=a.h[b].timestampOffset;r=a.I[b];a.o[b]&&(r=a.o[b].getOriginalMimeType());d&&(u=hk(a,b,c,d,r,p),null!=u&&(null==a.S&&b==m.ra&&(a.S=u,a.na=d.startTime,null!=a.R&&(v=0,a.na==a.ma&&(v=a.S-a.R),a.Aa.resolve(v))),null==a.R&&b==m.aa&&(a.R=u,a.ma=d.startTime,null!=a.S&&(w=0,a.na==a.ma&&(w=a.S-a.R),a.Aa.resolve(w))),A=d.startTime-u,z=Math.abs(p-A),(.001<=z||g||h)&&(!k||0<A||!p)&&(p=A,a.Ha&&(jk(a,b,function(){return kk(a,b)},null),jk(a,b,function(){return lk(a,b,p)},null))),
|
|
387
|
+
C=b==m.ra||!(m.ra in a.h),a.F&&C&&a.Ba.resolve(p)));f&&b==m.ra&&(a.g||Sj(a,"application/cea-608",a.F,!1),a.J||(y=r.split(";",1)[0],a.J=new Ed(y)),d?(B=a.J.i(c),B.length&&Te(a.g,B,d.startTime,d.endTime,p)):a.J.init(c,h));if(!a.o[b]){G.B(9);break}return E(G,a.o[b].transmux(c,e,d,a.l.duration,b),10);case 10:c=G.h;case 9:c=mk(a,c,d?d.startTime:null,b,d?d.P()[0]:null);if(!d||!a.F||b==m.Ga){G.B(11);break}if(!g&&!h){G.B(11);break}D=d.startTime;if("HLS"!=a.$||a.m||b!=m.aa||!a.h[m.ra]){G.B(13);break}return E(G,
|
|
388
|
+
a.Aa,14);case 14:K=G.h,.1<Math.abs(K)&&(D-=K);case 13:jk(a,b,function(){return kk(a,b)},null),jk(a,b,function(){return lk(a,b,D)},null);case 11:return E(G,jk(a,b,function(){var J=c;if("video"==b&&a.Z){var I=a.Z;I.g&&I.g.appendBuffer(J,"video",I.o,-p)}a.h[b].appendBuffer(J)},d?d.P()[0]:null),15);case 15:F(G)}})}function nk(a,b){var c=Yj(a,"video")||0;Re(a.g,b,c)}function ok(a){a.g&&Re(a.g,"",0)}
|
|
389
|
+
q.remove=function(a,b,c){var d=this,e;return O(function(f){return 1==f.g?(e=Uc,a==e.Ga?E(f,d.g.remove(b,c),0):E(f,jk(d,a,function(){return pk(d,a,b,c)},null),4)):d.m?E(f,jk(d,e.aa,function(){return pk(d,e.aa,b,c)},null),0):f.B(0)})};function qk(a,b){var c;return O(function(d){return 1==d.g?(c=Uc,b==c.Ga?a.g?E(d,a.g.remove(0,Infinity),0):d.return():E(d,jk(a,b,function(){return pk(a,b,0,a.l.duration)},null),4)):a.m?E(d,jk(a,c.aa,function(){return pk(a,c.aa,0,a.l.duration)},null),0):d.B(0)})}
|
|
390
|
+
q.flush=function(a){var b=this,c;return O(function(d){return 1==d.g?(c=Uc,a==c.Ga?d.return():E(d,jk(b,a,function(){b.i.currentTime-=.001;Uj(b,a)},null),2)):b.m?E(d,jk(b,c.aa,function(){var e=c.aa;b.i.currentTime-=.001;Uj(b,e)},null),0):d.B(0)})};
|
|
391
|
+
function rk(a,b,c,d,e,f,g,h,k){var l,m,n;return O(function(p){if(1==p.g){l=Uc;if(b==l.Ga)return f||(a.g.u=c),Qe(a.g,d,e),p.return();m=[];return E(p,sk(a,b,g,h,k),2)}n=p.h;n||(m.push(jk(a,b,function(){return kk(a,b)},null)),a.m&&m.push(jk(a,l.aa,function(){return kk(a,l.aa)},null)));f||(m.push(jk(a,b,function(){return lk(a,b,c)},null)),a.m&&m.push(jk(a,l.aa,function(){return lk(a,l.aa,c)},null)));m.push(jk(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=
|
|
392
392
|
d;Uj(a,b)},null));a.m&&m.push(jk(a,l.aa,function(){var r=l.aa;a.h[r].appendWindowStart=0;a.h[r].appendWindowEnd=e;a.h[r].appendWindowStart=d;Uj(a,r)},null));return E(p,Promise.all(m),0)})}
|
|
393
|
-
function tk(a,b,c){var d;return O(function(e){if(1==e.g){d=Uc;if(b==d.
|
|
393
|
+
function tk(a,b,c){var d;return O(function(e){if(1==e.g){d=Uc;if(b==d.Ga)return e.return();b==d.ra&&(a.Ba=new lg);jk(a,b,function(){return kk(a,b)},null);a.m&&jk(a,d.aa,function(){return kk(a,d.aa)},null);return E(e,jk(a,b,function(){return lk(a,b,c)},null),2)}return a.m?E(e,jk(a,d.aa,function(){return lk(a,d.aa,c)},null),0):e.B(0)})}q.endOfStream=function(a){var b=this;return O(function(c){return E(c,uk(b,function(){Vj(b)||"closed"===b.l.readyState||(a?b.l.endOfStream(a):b.l.endOfStream())}),0)})};
|
|
394
394
|
q.sb=function(a){var b=this;return O(function(c){return E(c,uk(b,function(){if(a<b.l.duration)for(var d in b.h){var e={start:function(){},p:new lg,uri:null};b.j[d].unshift(e)}b.l.duration=a;b.ea=a}),0)})};q.getDuration=function(){return this.l.duration};function pk(a,b,c,d){d<=c?Uj(a,b):a.h[b].remove(c,d)}function kk(a,b){var c=a.h[b].appendWindowStart,d=a.h[b].appendWindowEnd;a.h[b].abort();a.h[b].appendWindowStart=c;a.h[b].appendWindowEnd=d;Uj(a,b)}
|
|
395
395
|
function lk(a,b,c){0>c&&(c+=.001);a.h[b].timestampOffset=c;Uj(a,b)}function Uj(a,b){if(!a.G){var c=a.j[b][0];c&&(c.p.resolve(),vk(a,b))}}function jk(a,b,c,d){Jg(a.K);c={start:c,p:new lg,uri:d};a.j[b].push(c);1==a.j[b].length&&wk(a,b);return c.p}
|
|
396
396
|
function uk(a,b){var c,d,e,f,g,h,k;return O(function(l){switch(l.g){case 1:Jg(a.K);c=[];d={};for(e in a.h)d.zd=new lg,f={start:function(m){return function(){return m.zd.resolve()}}(d),p:d.zd,uri:null},a.j[e].push(f),c.push(d.zd),1==a.j[e].length&&f.start(),d={zd:d.zd};ta(l,2);return E(l,Promise.all(c),4);case 4:va(l,3);break;case 2:throw g=wa(l),g;case 3:return ta(l,5,6),E(l,b(),6);case 6:xa(l);for(h in a.h)vk(a,h);ya(l,0);break;case 5:throw k=wa(l),new U(2,3,3015,k,a.i.error||"No error in the media element",
|
|
397
|
-
null);}})}function vk(a,b){a.j[b].shift();wk(a,b)}function wk(a,b){var c=a.j[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new U(2,3,3017,b)):c.p.reject(new U(2,3,3015,d,a.i.error||"No error in the media element",c.uri)),vk(a,b)}}function mk(a,b,c,d,e){var f=null==c,g=a.
|
|
397
|
+
null);}})}function vk(a,b){a.j[b].shift();wk(a,b)}function wk(a,b){var c=a.j[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new U(2,3,3017,b)):c.p.reject(new U(2,3,3015,d,a.i.error||"No error in the media element",c.uri)),vk(a,b)}}function mk(a,b,c,d,e){var f=null==c,g=a.Ea[d];c=a.ba.dj();if(f=a.A.insertFakeEncryptionInInit&&f&&g)c=Qb(c),f=ac()||Zb()||ic()||Yb()&&nc()&&c;f&&"mp4"==Ee(a.I[d])&&(b=Ci(b,e));return b}
|
|
398
398
|
function xk(a,b,c,d){return jk(a,b,function(){b!==Sc&&(vd()&&(a.o[b]&&(a.o[b].destroy(),delete a.o[b]),d&&(a.o[b]=d),a.h[b].changeType(c+a.A.addExtraFeaturesToSourceBuffer(c)),a.I[b]=c),Uj(a,b))},null)}
|
|
399
|
-
function yk(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,A,z,C,y,B,D,K,G,J;return O(function(I){switch(I.g){case 1:c=Uc;a.G=!0;a.m=!1;d=a.i.currentTime;e=a.i.autoplay;f=a.i.paused;a.
|
|
400
|
-
Promise.all(g),4);case 4:return a.o={},a.h={},w=a.l.duration,a.N=new lg,a.l=Nj(a,a.N),E(I,a.N,5);case 5:!isNaN(w)&&w?a.l.duration=w:!isNaN(a.ea)&&a.ea&&(a.l.duration=a.ea),A=new lg,z=a.l.sourceBuffers,C=b.size,y=0,B=function(){y++;y===C&&(A.resolve(),a.u.
|
|
399
|
+
function yk(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,A,z,C,y,B,D,K,G,J;return O(function(I){switch(I.g){case 1:c=Uc;a.G=!0;a.m=!1;d=a.i.currentTime;e=a.i.autoplay;f=a.i.paused;a.qa&&(a.i.autoplay=!1);ua(I,2);a.u.qb();g=[];for(h in a.o)g.push(a.o[h].destroy());for(k in a.j)for(l=a.j[k],m=l[0],a.j[k]=l.slice(0,1),m&&g.push(m.p.catch(Ve)),n=t(l.slice(1)),p=n.next();!p.done;p=n.next())r=p.value,r.p.reject(new U(2,7,7003,void 0));for(u in a.h){v=a.h[u];try{a.l.removeSourceBuffer(v)}catch(H){}}return E(I,
|
|
400
|
+
Promise.all(g),4);case 4:return a.o={},a.h={},w=a.l.duration,a.N=new lg,a.l=Nj(a,a.N),E(I,a.N,5);case 5:!isNaN(w)&&w?a.l.duration=w:!isNaN(a.ea)&&a.ea&&(a.l.duration=a.ea),A=new lg,z=a.l.sourceBuffers,C=b.size,y=0,B=function(){y++;y===C&&(A.resolve(),a.u.Xa(z,"addsourcebuffer",B))},a.u.s(z,"addsourcebuffer",B),D=t(b.keys()),K=D.next();case 6:if(K.done)return a.i.currentTime=d,E(I,A,2);G=K.value;J=b.get(G);return E(I,Rj(a,G,J,J.codecs),9);case 9:a.m?(a.j[c.aa]=[],a.j[c.ra]=[]):a.j[G]=[];K=D.next();
|
|
401
401
|
I.B(6);break;case 2:xa(I),a.G=!1,Jg(a.K),a.u.oa(a.i,"canplaythrough",function(){a.K.g||(a.i.autoplay=e,f||a.i.play())}),ya(I,0)}})}function zk(a,b){return uk(a,function(){return yk(a,b)})}
|
|
402
|
-
function sk(a,b,c,d,e){var f,g,h,k,l,m,n,p,r,u,v,w,A,z,C;return O(function(y){if(1==y.g){f=Uc;if(b==f.
|
|
402
|
+
function sk(a,b,c,d,e){var f,g,h,k,l,m,n,p,r,u,v,w,A,z,C;return O(function(y){if(1==y.g){f=Uc;if(b==f.Ga)return y.return(!1);g=Ie(Ke(a.I[b]));h=Je(a.I[b]);l=!1;m=te(c,d);n=a.A.forceTransmux;if(!td(m)||!a.F&&ue.includes(m))n=!0;n&&(p=ve(c,d),r=ne(p))&&(k=r(),u=Pc(f.aa,(d||"").split(",")),v=Pc(f.ra,(d||"").split(",")),u&&v?(l=!0,w=v,b==f.aa&&(w=u),m=k.convertCodecs(b,ve(c,w))):m=k.convertCodecs(b,p));A=Ie(Ke(m));z=Je(m);if(g===A&&h===z)return y.return(!1);C=!0;if(a.m||l&&k&&!a.o[b])C=!1;if(C&&"smooth"===
|
|
403
403
|
a.A.codecSwitchingStrategy&&vd())return E(y,xk(a,b,m,k),3);k&&k.destroy();return E(y,zk(a,e),3)}return y.return(!0)})}function Ak(a,b,c,d){if(b==Sc)var e=!1;else{e=Ie(Ke(a.I[b]));var f=Je(a.I[b]),g=te(c,d),h=a.A.forceTransmux;if(!td(g)||!a.F&&ue.includes(g))h=!0;c=ve(c,d);h&&(h=ne(c))&&(h=h(),g=h.convertCodecs(b,c),h.destroy());b=Ie(Ke(g));g=Je(g);e=e!==b||f!==g}return e?"smooth"!==a.A.codecSwitchingStrategy||!vd()||a.m:!1}var Pj=window.URL.createObjectURL,Tj="sequence";function Bk(a,b,c){this.i=a;this.u=b;this.m=this.j=Infinity;this.g=1;this.h=this.l=null;this.A=0;this.H=!0;this.I=0;this.G=void 0===c?!0:c;this.J=0;this.o=!1;this.F=a}q=Bk.prototype;q.getDuration=function(){return this.j};q.ij=function(){return this.g};q.ii=function(a){this.i=a};q.sb=function(a){this.j=a};q.mj=function(){return this.i};q.ci=function(a){this.A=a};q.Lc=function(a){this.H=a};q.nf=function(a){this.m=a};q.Ne=function(){return this.m};q.Xg=function(a){this.u=a};q.$i=function(){return this.u};
|
|
404
404
|
q.Vh=function(a,b){if(0!=a.length){var c=a[a.length-1].end+b;this.$e(a[0].start+b);this.g=a.reduce(function(d,e){return Math.max(d,e.end-e.start)},this.g);this.h=Math.max(this.h,c);null!=this.i&&this.G&&!this.o&&(this.i=(Date.now()+this.A)/1E3-this.h-this.g)}};
|
|
405
405
|
q.ce=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.A)/1E3;a=t(a);for(var e=a.next();!e.done;e=a.next())e=e.value,d<e.startTime||(b=Math.min(b,e.startTime),c=Math.max(c,e.endTime),this.g=Math.max(this.g,e.endTime-e.startTime));this.$e(b);this.h=Math.max(this.h,c);null!=this.i&&this.G&&!this.o&&(this.i=d-this.h-this.g)}};q.Ue=function(){this.o=!0};q.Lj=function(){return this.o};q.ei=function(a){this.F=a};q.cj=function(){return this.F};
|
|
@@ -408,59 +408,59 @@ q.ic=function(){return this.U()||this.Ec()?Math.min(Math.max(0,(Date.now()+this.
|
|
|
408
408
|
q.bi=function(a){this.J=a};P("shaka.media.PresentationTimeline",Bk);Bk.prototype.setAvailabilityTimeOffset=Bk.prototype.bi;Bk.prototype.usingPresentationStartTime=Bk.prototype.si;Bk.prototype.getSeekRangeEnd=Bk.prototype.Ob;Bk.prototype.getSeekRangeStart=Bk.prototype.yc;Bk.prototype.getSafeSeekRangeStart=Bk.prototype.Rd;Bk.prototype.getSegmentAvailabilityEnd=Bk.prototype.ic;Bk.prototype.setUserSeekStart=Bk.prototype.li;Bk.prototype.getSegmentAvailabilityStart=Bk.prototype.Cb;
|
|
409
409
|
Bk.prototype.isInProgress=Bk.prototype.Ec;Bk.prototype.isLive=Bk.prototype.U;Bk.prototype.offset=Bk.prototype.offset;Bk.prototype.notifyMaxSegmentDuration=Bk.prototype.Jg;Bk.prototype.notifyMinSegmentStartTime=Bk.prototype.$e;Bk.prototype.getInitialProgramDateTime=Bk.prototype.cj;Bk.prototype.setInitialProgramDateTime=Bk.prototype.ei;Bk.prototype.isStartTimeLocked=Bk.prototype.Lj;Bk.prototype.lockStartTime=Bk.prototype.Ue;Bk.prototype.notifySegments=Bk.prototype.ce;Bk.prototype.notifyTimeRange=Bk.prototype.Vh;
|
|
410
410
|
Bk.prototype.getDelay=Bk.prototype.$i;Bk.prototype.setDelay=Bk.prototype.Xg;Bk.prototype.getSegmentAvailabilityDuration=Bk.prototype.Ne;Bk.prototype.setSegmentAvailabilityDuration=Bk.prototype.nf;Bk.prototype.setStatic=Bk.prototype.Lc;Bk.prototype.setClockOffset=Bk.prototype.ci;Bk.prototype.getPresentationStartTime=Bk.prototype.mj;Bk.prototype.setDuration=Bk.prototype.sb;Bk.prototype.setPresentationStartTime=Bk.prototype.ii;Bk.prototype.getMaxSegmentDuration=Bk.prototype.ij;
|
|
411
|
-
Bk.prototype.getDuration=Bk.prototype.getDuration;function Ck(a,b,c){this.j=c;this.l=a;this.u=Dk(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.o=0;this.A=b;this.i=function(){}}Ck.prototype.release=function(){this.j=this.l=null;this.i=function(){}};function Ek(a,b){a.i=b}function Fk(a){this.g=a}function Dk(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(Qi(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 Gk(a,b,c,d,e){var f=this;this.A=e;this.g=a;this.F=b;this.u=c;this.l=new od;this.j=!1;this.H=a.readyState;this.G=this.i=0;this.h=d;this.o=!1;this.l.s(a,"waiting",function(){return Hk(f)});this.m=(new Ub(function(){Hk(f)})).
|
|
411
|
+
Bk.prototype.getDuration=Bk.prototype.getDuration;function Ck(a,b,c){this.j=c;this.l=a;this.u=Dk(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.o=0;this.A=b;this.i=function(){}}Ck.prototype.release=function(){this.j=this.l=null;this.i=function(){}};function Ek(a,b){a.i=b}function Fk(a){this.g=a}function Dk(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(Qi(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 Gk(a,b,c,d,e){var f=this;this.A=e;this.g=a;this.F=b;this.u=c;this.l=new od;this.j=!1;this.H=a.readyState;this.G=this.i=0;this.h=d;this.o=!1;this.l.s(a,"waiting",function(){return Hk(f)});this.m=(new Ub(function(){Hk(f)})).za(this.u.gapJumpTimerTime)}Gk.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.F=this.A=null};Gk.prototype.Mg=function(){this.o=!0;Hk(this)};
|
|
412
412
|
function Hk(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.H&&(a.H=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.l,d=Dk(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.u!=d)b.m=f,b.g=e,b.u=d,b.h=!1;e=f-b.m;if(d=e>=b.A&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.o++,b.j(new S("stalldetected"));b=!d}if(b&&(b=a.g.currentTime,c=a.g.buffered,d=Ri(c,b,a.u.gapDetectionThreshold),
|
|
413
413
|
null!=d&&(0!=d||a.o))){e=c.start(d);if(navigator.userAgent.match(/Edge\//)||Zb())e=Math.ceil(100*(e+.01))/100;e>=a.F.Ob()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.i&&(a.i=e),a.G++,a.A(new S("gapjumped")))}}}};function Ik(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Jk.value().get(b),c.oa(a,b,d))}var Jk=new Nb(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function Kk(a,b,c,d){var e=this;this.g=a;this.m=b;this.u=c;this.l=null;this.j=function(){null==e.l&&(e.l=d());return e.l};this.o=!1;this.h=new od;this.i=new Lk(a);Ik(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Mk(e,e.j())})}Kk.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.i&&(this.i.release(),this.i=null);this.m=function(){};this.g=null};function Nk(a){return a.o?a.g.currentTime:a.j()}
|
|
414
414
|
function Ok(a,b){0<a.g.readyState?Pk(a.i,b):Ik(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){Mk(a,a.j())})}function Mk(a,b){.001>Math.abs(a.g.currentTime-b)?Qk(a):(a.h.oa(a.g,"seeking",function(){Qk(a)}),Pk(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function Qk(a){a.o=!0;a.h.s(a.g,"seeking",function(){return a.m()});a.u(a.g.currentTime)}
|
|
415
|
-
function Lk(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new Ub(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}Lk.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};function Pk(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.
|
|
415
|
+
function Lk(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new Ub(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}Lk.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};function Pk(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.za(.1)};function Rk(a){this.h=a;this.j=!1;this.g=null;this.i=new od}q=Rk.prototype;q.Pf=function(){function a(){if(null==b.g||0==b.g&&Infinity!=b.h.duration)b.j=!0;else{var c=b.h.currentTime,d=b.g;0>b.g&&(d=Math.max(0,c+b.g));c!=d?(b.i.oa(b.h,"seeking",function(){b.j=!0}),b.h.currentTime=d):b.j=!0}}var b=this;Ik(this.h,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};q.release=function(){this.i&&(this.i.release(),this.i=null);this.h=null};q.Qf=function(a){this.g=this.j?this.g:a};
|
|
416
416
|
q.Ae=function(){return(this.j?this.h.currentTime:this.g)||0};q.oh=function(){return 0};q.nh=function(){return 0};q.Uh=function(){};
|
|
417
417
|
function Sk(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.A=e;this.u=null;this.o=Tk(a,c,f);this.j=new Gk(a,b.presentationTimeline,c,this.o,f);this.h=new Kk(a,function(){a:{var h=g.j;h.j=!0;h.o=!1;var k=Nk(g.h);h=Uk(g,k);if(.001<Math.abs(h-k)){k=!1;if(!gc()||gc()&&oc())k=!0;else{var l=Date.now()/1E3;if(!g.u||g.u<l-1)g.u=l,k=!0}if(k){Ok(g.h,h);h=void 0;break a}}g.A();h=void 0}return h},function(h){var k=g.j;k.g.seeking&&!k.j&&(k.j=!0,k.i=h)},
|
|
418
|
-
function(){var h=d;null==h?h=Infinity>g.g.getDuration()?g.g.yc():g.g.Ob():0>h&&(h=g.g.Ob()+h);return Vk(g,Wk(g,h))});this.m=new Ub(function(){if(0!=g.i.readyState&&!g.i.paused){var h=Nk(g.h),k=g.g.yc(),l=g.g.Ob();3>l-k&&(k=l-3);h<k&&(h=Uk(g,h),g.i.currentTime=h)}})}q=Sk.prototype;q.Pf=function(){this.m.
|
|
418
|
+
function(){var h=d;null==h?h=Infinity>g.g.getDuration()?g.g.yc():g.g.Ob():0>h&&(h=g.g.Ob()+h);return Vk(g,Wk(g,h))});this.m=new Ub(function(){if(0!=g.i.readyState&&!g.i.paused){var h=Nk(g.h),k=g.g.yc(),l=g.g.Ob();3>l-k&&(k=l-3);h<k&&(h=Uk(g,h),g.i.currentTime=h)}})}q=Sk.prototype;q.Pf=function(){this.m.za(.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.A=function(){}};
|
|
419
419
|
q.Qf=function(a){Ok(this.h,a)};q.Ae=function(){var a=Nk(this.h);return 0<this.i.readyState&&!this.i.paused?Wk(this,a):a};q.oh=function(){return this.o?this.o.o:0};q.nh=function(){return this.j.G};q.Uh=function(){this.j.Mg()};function Vk(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}
|
|
420
420
|
function Uk(a,b){var c=Math.max(a.F,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.yc(),f=a.g.Ob(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Rd(c),k=a.g.Rd(d);c=a.g.Rd(c+d);return b>=g?Vk(a,b):b>f?f:b<e?Oi(a.i.buffered,k)?k:c:b>=h||Oi(a.i.buffered,b)?b:c}function Wk(a,b){var c=a.g.yc();if(b<c)return c;a=a.g.Ob();return b>a?a:b}
|
|
421
421
|
function Tk(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new Ck(new Fk(a),b.stallThreshold,c);Ek(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function Xk(a){this.g=a;this.m=null;this.j=0;this.o=!1}q=Xk.prototype;q.getNumReferences=function(){return this.g.length};q.getNumEvicted=function(){return this.j};q.release=function(){this.o||(this.g=[],this.m&&this.m.stop(),this.m=null)};q.Sj=function(){this.o=!0};q.Xc=function(a){for(var b=t(this.g),c=b.next();!c.done;c=b.next())a(c.value)};
|
|
422
422
|
q.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c<b?this.g[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.j}return this.g.length&&a<this.g[0].startTime?this.j:null};q.get=function(a){if(0==this.g.length)return null;a-=this.j;return 0>a||a>=this.g.length?null:this.g[a]};q.offset=function(a){if(!this.o)for(var b=t(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)};
|
|
423
423
|
q.Xe=function(a){if(!this.o&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.g.push.apply(this.g,x(a))}};q.ae=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.g.length||d.endTime>c.g[0].startTime)});this.Xe(a);this.eb(b)};q.eb=function(a){if(!this.o){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.j+=b-this.g.length}};
|
|
424
|
-
q.Wc=function(a,b,c){c=void 0===c?!1:c;if(!this.o){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.j++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],b=new Ii(a.startTime,b,a.G,a.
|
|
425
|
-
q.tf=function(a,b){var c=this;this.o||(this.m&&this.m.stop(),this.m=new Ub(function(){var d=b();d?c.g.push.apply(c.g,x(d)):(c.m.stop(),c.m=null)}),this.m.
|
|
424
|
+
q.Wc=function(a,b,c){c=void 0===c?!1:c;if(!this.o){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.j++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],b=new Ii(a.startTime,b,a.G,a.Wa,a.Da,a.sa,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.g,a.tilesLayout,a.A,a.h,a.status,a.aesKey),b.mimeType=a.mimeType,b.codecs=a.codecs,b.j=a.j,this.g[this.g.length-1]=b)}};
|
|
425
|
+
q.tf=function(a,b){var c=this;this.o||(this.m&&this.m.stop(),this.m=new Ub(function(){var d=b();d?c.g.push.apply(c.g,x(d)):(c.m.stop(),c.m=null)}),this.m.za(a))};Xk.prototype[Symbol.iterator]=function(){return this.Wb(0)};
|
|
426
426
|
Xk.prototype.Wb=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.find(a);if(null==d)return null;var e=this.get(d);c?d++:d--;var f=-1;if(e&&0<e.g.length)for(var g=e.g.length-1;0<=g;--g){var h=e.g[g];if(a>=h.startTime&&a<h.endTime){if(!b){for(;g&&!h.l;)g--,h=e.g[g];if(!h.l)return Xa("No independent partial segment found!"),null}c?d--:d++;f=g-1;break}}return new Yk(this,d,f,c)};function Zk(a,b,c){a=new Ii(a,a+b,function(){return c},0,null,null,a,a,a+b);return new Xk([a])}
|
|
427
427
|
P("shaka.media.SegmentIndex",Xk);Xk.forSingleSegment=Zk;Xk.prototype.getIteratorForTime=Xk.prototype.Wb;Xk.prototype.updateEvery=Xk.prototype.tf;Xk.prototype.fit=Xk.prototype.Wc;Xk.prototype.evict=Xk.prototype.eb;Xk.prototype.mergeAndEvict=Xk.prototype.ae;Xk.prototype.offset=Xk.prototype.offset;Xk.prototype.get=Xk.prototype.get;Xk.prototype.find=Xk.prototype.find;Xk.prototype.markImmutable=Xk.prototype.Sj;Xk.prototype.release=Xk.prototype.release;Xk.prototype.getNumEvicted=Xk.prototype.getNumEvicted;
|
|
428
428
|
Xk.prototype.getNumReferences=Xk.prototype.getNumReferences;function Yk(a,b,c,d){this.i=a;this.h=b;this.g=c;this.reverse=d}Yk.prototype.pd=function(a){this.reverse=a};Yk.prototype.Oi=function(){return this.h};Yk.prototype.current=function(){var a=this.i.get(this.h);a&&0<a.g.length&&a.o&&this.g>=a.g.length&&(this.h++,this.g=0,a=this.i.get(this.h));return a&&0<a.g.length?a.g[this.g]:a};
|
|
429
429
|
Yk.prototype.next=function(){var a=this.i.get(this.h);this.reverse?a&&0<a.g.length?(this.g--,0>this.g&&(this.h--,this.g=(a=this.i.get(this.h))&&0<a.g.length?a.g.length-1:0)):(this.h--,this.g=0):a&&0<a.g.length?(this.g++,a.o&&this.g==a.g.length&&(this.h++,this.g=0)):(this.h++,this.g=0);a=this.current();return{value:a,done:!a}};P("shaka.media.SegmentIterator",Yk);Yk.prototype.next=Yk.prototype.next;Yk.prototype.current=Yk.prototype.current;Yk.prototype.currentPosition=Yk.prototype.Oi;
|
|
430
430
|
Yk.prototype.setReverse=Yk.prototype.pd;function $k(){Xk.call(this,[]);this.h=[]}na($k,Xk);q=$k.prototype;q.clone=function(){var a=new $k;a.h=this.h.slice();return a};q.release=function(){for(var a=t(this.h),b=a.next();!b.done;b=a.next())b.value.release();this.h=[]};q.Xc=function(a){for(var b=t(this.h),c=b.next();!c.done;c=b.next())c.value.Xc(a)};q.find=function(a){for(var b=0,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.getNumEvicted()+d.getNumReferences()}return null};
|
|
431
431
|
q.get=function(a){for(var b=0,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;e=d.getNumReferences();b+=d.getNumEvicted()+e}return null};q.offset=function(){};q.Xe=function(){};q.eb=function(){};q.ae=function(){};q.Wc=function(){};q.tf=function(){};P("shaka.media.MetaSegmentIndex",$k);$k.prototype.updateEvery=$k.prototype.tf;$k.prototype.fit=$k.prototype.Wc;$k.prototype.mergeAndEvict=$k.prototype.ae;$k.prototype.evict=$k.prototype.eb;$k.prototype.merge=$k.prototype.Xe;
|
|
432
|
-
$k.prototype.offset=$k.prototype.offset;$k.prototype.get=$k.prototype.get;$k.prototype.find=$k.prototype.find;$k.prototype.forEachTopLevelReference=$k.prototype.Xc;$k.prototype.release=$k.prototype.release;function al(a){var b=this;this.g=a;this.j=!1;this.i=this.g.Me();this.h=new Ub(function(){b.g.Th(.25*b.i)})}al.prototype.release=function(){this.set(this.xc());this.h&&(this.h.stop(),this.h=null);this.g=null};al.prototype.set=function(a){this.i=a;bl(this)};al.prototype.xc=function(){return this.g.xc()};function bl(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.Me()!=b&&a.g.ah(b);return}catch(c){}a.h.
|
|
432
|
+
$k.prototype.offset=$k.prototype.offset;$k.prototype.get=$k.prototype.get;$k.prototype.find=$k.prototype.find;$k.prototype.forEachTopLevelReference=$k.prototype.Xc;$k.prototype.release=$k.prototype.release;function al(a){var b=this;this.g=a;this.j=!1;this.i=this.g.Me();this.h=new Ub(function(){b.g.Th(.25*b.i)})}al.prototype.release=function(){this.set(this.xc());this.h&&(this.h.stop(),this.h=null);this.g=null};al.prototype.set=function(a){this.i=a;bl(this)};al.prototype.xc=function(){return this.g.xc()};function bl(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.Me()!=b&&a.g.ah(b);return}catch(c){}a.h.za(.25);0!=a.g.Me()&&a.g.ah(0)};function cl(a){var b=this;this.h=a;this.g=new Set;this.i=(new Ub(function(){dl(b,!1)})).za(.25)}cl.prototype.release=function(){this.i.stop();for(var a=t(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function dl(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function el(){this.g=null;this.h=[]}function fl(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=t(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}function gl(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=t(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function hl(){this.i=this.h=null;this.g=[]}function il(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 jl(){this.Be=this.A=this.F=this.I=this.G=this.u=this.j=this.H=this.m=this.i=this.N=this.O=this.J=this.K=this.L=this.l=this.o=NaN;this.g=new el;this.h=new hl};function kl(a,b,c,d){this.m=a;this.i=b;this.l=c;this.h=new Map;this.j=new Map;this.g=null;this.o=d}function ll(a,b){a.l=b;a=t(a.h.values());for(var c=a.next();!c.done;c=a.next())c.value.g=b}
|
|
433
433
|
function ml(a,b,c){c=void 0===c?!1:c;if(a.i.segmentIndex&&(a.g||(a.g=a.i.segmentIndex.Wb(b,!0,a.o)),a.g)){for(c&&a.g.next();a.h.size<a.m;){b=a.g.next().value;if(!b)break;c=!0;b.preload&&null!=b.Da&&(c=!1);2==b.zc()&&(c=!1);c&&b.sa&&nl(a,b.sa);c&&!a.h.has(b)&&(c=new ol(a.l),pl(c,b,a.i),a.h.set(b,c));if(a.i.fastSwitching&&b.fe&&b.Te)break}ql(a)}}function nl(a,b){if(a.i.segmentIndex&&!Array.from(a.j.keys()).some(function(d){return Hi(d,b)})){var c=new ol(a.l);pl(c,b,a.i);a.j.set(b,c)}}
|
|
434
434
|
function rl(a,b){b=t(b.keys());for(var c=b.next();!c.done;c=b.next())(c=c.value)&&sl(a,c)}function tl(a){rl(a,a.h);rl(a,a.j);a.g=null}kl.prototype.eb=function(a,b){b=void 0===b?!1:b;for(var c=t(this.h.keys()),d=c.next();!d.done;d=c.next())d=d.value,a>d.endTime&&sl(this,d);b&&ql(this)};kl.prototype.pd=function(a){this.o=a;this.g&&this.g.pd(a)};
|
|
435
435
|
function ql(a){for(var b=Array.from(a.h.keys()),c={},d=t(a.j.keys()),e=d.next();!e.done;c={ue:c.ue},e=d.next())c.ue=e.value,b.some(function(f){return function(g){return Hi(g.sa,f.ue)}}(c))||sl(a,c.ue)}function ul(a,b){a.m=b;for(var c=Array.from(a.h.keys());c.length>b;){var d=c.pop();d&&sl(a,d)}ql(a)}function vl(a,b){b&&b!==a.i&&(tl(a),a.i=b)}function sl(a,b){var c=a.h;b instanceof Gi&&(c=a.j);a=c.get(b);c.delete(b);a&&a.abort()}function ol(a){this.g=a;this.df=this.eh=null}
|
|
436
|
-
function pl(a,b,c){var d=new Uint8Array(0);a.df=a.g(b,c,function(e){return O(function(f){if(1==f.g)return 0<d.byteLength?d=Kc(d,e):d=e,a.eh?E(f,a.eh(d),3):f.B(0);d=new Uint8Array(0);F(f)})})}ol.prototype.abort=function(){this.df&&this.df.abort()};function wl(a){gb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new Ub(function(){for(var c=b.i(),d=t(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new S("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).
|
|
436
|
+
function pl(a,b,c){var d=new Uint8Array(0);a.df=a.g(b,c,function(e){return O(function(f){if(1==f.g)return 0<d.byteLength?d=Kc(d,e):d=e,a.eh?E(f,a.eh(d),3):f.B(0);d=new Uint8Array(0);F(f)})})}ol.prototype.abort=function(){this.df&&this.df.abort()};function wl(a){gb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new Ub(function(){for(var c=b.i(),d=t(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new S("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).za(2)}na(wl,gb);wl.prototype.release=function(){this.g.clear();this.h.stop();gb.prototype.release.call(this)};function xl(a){gb.call(this);this.g=new Map;this.h=a}na(xl,gb);xl.prototype.release=function(){this.g.clear();gb.prototype.release.call(this)};function yl(a,b){var c=a.g.get(b);c||(c={je:[],yh:null,contentType:b},a.g.set(b,c));return c}function zl(a,b,c){var d=yl(a,b.contentType);Al(a,d);a={Ig:b,position:c};d=d.je;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
|
|
437
437
|
xl.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.je;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.Ig;break a}}d=null}if(e=d)e=c.yh,e=!(e===d||e&&d&&e.bandwidth==d.bandwidth&&e.audioSamplingRate==d.audioSamplingRate&&e.codecs==d.codecs&&e.contentType==d.contentType&&e.frameRate==d.frameRate&&e.height==d.height&&e.mimeType==d.mimeType&&e.channelsCount==d.channelsCount&&e.pixelAspectRatio==d.pixelAspectRatio&&e.width==d.width);
|
|
438
438
|
if(e)a:{e=a;f=d.contentType;if((f=this.h()[f])&&0<f.length){var g=f[f.length-1].end;if(e>=f[0].start&&e<g){e=!0;break a}}e=!1}e&&(c.yh=d,JSON.stringify(d),c=new S("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function Al(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.je;b.je=e.filter(function(f,g){return f.position<=c&&g+1<e.length&&e[g+1].position<=c||f.position>=d?!1:!0})}else b.je=[]};function Bl(a,b,c,d,e){a=Ag(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function Cl(a,b){var c=this;this.g=b;this.m=a;this.h=null;this.F=1;this.u=this.j=null;this.J=0;this.H=!1;this.i=new Map;this.G=!1;this.K=null;this.A=!1;this.l=new Ig(function(){return Dl(c)});this.L=Date.now()/1E3;this.o=new Map;this.I={projection:null,hfov:null};this.O=0;this.N=Infinity}q=Cl.prototype;q.destroy=function(){return this.l.destroy()};
|
|
439
439
|
function Dl(a){var b,c,d,e,f,g,h;return O(function(k){if(1==k.g){b=[];c=t(a.i.values());for(d=c.next();!d.done;d=c.next())e=d.value,El(e),b.push(Fl(e)),e.Y&&(tl(e.Y),e.Y=null);f=t(a.o.values());for(g=f.next();!g.done;g=f.next())h=g.value,tl(h);return E(k,Promise.all(b),2)}a.i.clear();a.o.clear();a.g=null;a.m=null;a.h=null;F(k)})}
|
|
440
440
|
q.configure=function(a){this.h=a;this.K=new ig({maxAttempts:Math.max(a.retryParameters.maxAttempts,2),baseDelay:a.retryParameters.baseDelay,backoffFactor:a.retryParameters.backoffFactor,fuzzFactor:a.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0);if(a.disableAudioPrefetch){var b=this.i.get("audio");b&&b.Y&&(tl(b.Y),b.Y=null);b=t(this.o.keys());for(var c=b.next();!c.done;c=b.next())c=c.value,tl(this.o.get(c)),this.o.delete(c)}a.disableTextPrefetch&&(b=this.i.get(Sc))&&
|
|
441
441
|
b.Y&&(tl(b.Y),b.Y=null);a.disableVideoPrefetch&&(b=this.i.get("video"))&&b.Y&&(tl(b.Y),b.Y=null);b=t(this.i.keys());for(c=b.next();!c.done;c=b.next())c=this.i.get(c.value),c.Y?(ul(c.Y,a.segmentPrefetchLimit),0<a.segmentPrefetchLimit||(tl(c.Y),c.Y=null)):0<a.segmentPrefetchLimit&&(c.Y=Gl(this,c.stream));a.disableAudioPrefetch||Hl(this)};function Il(a,b,c){a.m.presentationTimeline.U()||(a.O=b,a.N=c)}
|
|
442
|
-
q.start=function(a){var b=this;return O(function(c){if(1==c.g)return E(c,Jl(b,a||new Map),2);Jg(b.l);b.G=!0;F(c)})};function Kl(a,b){var c,d,e,f,g,h,k;O(function(l){switch(l.g){case 1:return c=Uc,a.J++,d=a.J,ta(l,2),E(l,qk(a.g.ka,c.
|
|
443
|
-
function Nl(a){var b=a.i.get(Sc);b&&(El(b),Fl(b).catch(function(){}),a.i.delete(Sc));a.u=null}function Ol(a,b){for(var c=0>a.g.
|
|
442
|
+
q.start=function(a){var b=this;return O(function(c){if(1==c.g)return E(c,Jl(b,a||new Map),2);Jg(b.l);b.G=!0;F(c)})};function Kl(a,b){var c,d,e,f,g,h,k;O(function(l){switch(l.g){case 1:return c=Uc,a.J++,d=a.J,ta(l,2),E(l,qk(a.g.ka,c.Ga),4);case 4:va(l,3);break;case 2:if(e=wa(l),a.g)a.g.onError(e);case 3:f=te(b.mimeType,b.codecs),Sj(a.g.ka,f,a.m.sequenceMode,b.external),g=a.g.ka.H,(h=g.isTextVisible()||a.h.alwaysStreamText)&&a.J==d&&(k=Ll(a,b),a.i.set(c.Ga,k),Ml(a,k,0)),F(l)}})}
|
|
443
|
+
function Nl(a){var b=a.i.get(Sc);b&&(El(b),Fl(b).catch(function(){}),a.i.delete(Sc));a.u=null}function Ol(a,b){for(var c=0>a.g.Ra(),d=t(a.i.values()),e=d.next();!e.done;e=d.next())e=e.value,e.ua&&e.ua.pd(c),e.Y&&e.Y.pd(c);d=t(a.o.values());for(e=d.next();!e.done;e=d.next())e.value.pd(c);if(c=a.i.get("video"))if(d=c.stream)if(b)(b=d.trickModeVideo)&&!c.Kc&&(Pl(a,b,!1,0,!1),c.Kc=d);else if(b=c.Kc)c.Kc=null,Pl(a,b,!0,0,!1)}
|
|
444
444
|
function Ql(a,b,c,d,e,f){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;f=void 0===f?!1:f;a.j=b;a.G&&(b.video&&Pl(a,b.video,c,d,e,f),b.audio&&Pl(a,b.audio,c,d,e,f))}function Rl(a,b){O(function(c){if(1==c.g)return a.u=b,a.G?b.segmentIndex?c.B(2):E(c,b.createSegmentIndex(),2):c.return();Pl(a,b,!0,0,!1);F(c)})}
|
|
445
445
|
function Pl(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=Sc?g&&(g.Kc&&(b.trickModeVideo?(g.Kc=b,b=b.trickModeVideo):g.Kc=null),g.stream!=b||e)&&(a.o.has(b)?g.Y=a.o.get(b):g.Y&&vl(g.Y,b),b.type==Sc&&(e=te(b.mimeType,b.codecs),Sj(a.g.ka,e,a.m.sequenceMode,b.external)),a.o.has(g.stream)||g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.ua=null,g.ph=!!f,c?g.Kd?g.wf=!0:g.fb?(g.nc=!0,g.Fe=d,g.wf=!0):(El(g),Sl(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)})):g.fb||g.Jb||Ml(a,g,
|
|
446
446
|
0),Tl(a,g).catch(function(h){if(a.g)a.g.onError(h)})):Kl(a,b)}
|
|
447
|
-
function Tl(a,b){var c,d;return O(function(e){if(1==e.g){if(!b.Ab)return e.return();c=b.stream;d=b.Ab;return c.segmentIndex?e.B(2):E(e,c.createSegmentIndex(),2)}if(b.Ab!=d||b.stream!=c)return e.return();var f=a.g.Le();var g=Yj(a.g.ka,b.type),h=b.stream.segmentIndex.find(b.ob?b.ob.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.Da?k.Da-k.
|
|
447
|
+
function Tl(a,b){var c,d;return O(function(e){if(1==e.g){if(!b.Ab)return e.return();c=b.stream;d=b.Ab;return c.segmentIndex?e.B(2):E(e,c.createSegmentIndex(),2)}if(b.Ab!=d||b.stream!=c)return e.return();var f=a.g.Le();var g=Yj(a.g.ka,b.type),h=b.stream.segmentIndex.find(b.ob?b.ob.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.Da?k.Da-k.Wa:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.sa)&&(h+=(k.Da?k.Da-k.Wa:null)||0),k=a.g.getBandwidthEstimate(),
|
|
448
448
|
f=8*h/k<(g||0)-f-Math.max(a.m.minBufferTime||0,a.h.rebufferingGoal)||b.Ab.h.g>h?!0:!1):f=!1;f&&b.Ab.abort();F(e)})}
|
|
449
449
|
q.ke=function(){if(this.g)for(var a=this.g.Le(),b=t(this.i.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.i.get(d);var e=this.g.ka;e.G?e=!1:d==Sc?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=Xj(e,d),e=Oi(e,a));if(!e){c.Y&&(c.Y.g=null);if("audio"===c.type){e=t(this.o.values());for(var f=e.next();!f.done;f=e.next())f.value.g=null}c.ua=null;(null!=Yj(this.g.ka,d)||c.fb)&&Ul(this,c);c.Ab&&(c.Ab.abort(),c.Ab=null);d===Sc&&(d=this.g.ka,d.J&&d.J.g());c.ke=!0}}};
|
|
450
450
|
function Ul(a,b){b.Kd||b.nc||(b.fb?(b.nc=!0,b.Fe=0):null==Wj(a.g.ka,b.type)?null==b.Jb&&Ml(a,b,0):(El(b),Sl(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
|
|
451
|
-
function Jl(a,b){var c,d,e,f,g,h,k,l,m,n;return O(function(p){if(1==p.g){c=Uc;if(!a.j)throw new U(2,5,5006);d=new Map;e=new Set;a.j.audio&&(d.set(c.aa,a.j.audio),e.add(a.j.audio));a.j.video&&(d.set(c.ra,a.j.video),e.add(a.j.video));a.u&&(d.set(c.
|
|
451
|
+
function Jl(a,b){var c,d,e,f,g,h,k,l,m,n;return O(function(p){if(1==p.g){c=Uc;if(!a.j)throw new U(2,5,5006);d=new Map;e=new Set;a.j.audio&&(d.set(c.aa,a.j.audio),e.add(a.j.audio));a.j.video&&(d.set(c.ra,a.j.video),e.add(a.j.video));a.u&&(d.set(c.Ga,a.u),e.add(a.u));f=a.g.ka;return E(p,f.init(d,a.m.sequenceMode,a.m.type,a.m.ignoreManifestTimestampsInSegmentsMode),2)}Jg(a.l);a.updateDuration();g=t(d.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=d.get(k),a.i.has(k)||(m=Ll(a,l),b.has(l.id)&&(n=
|
|
452
452
|
b.get(l.id),ll(n,function(r,u,v){return Vl(r,u,v||null,a.h.retryParameters,a.g.Zb)}),m.Y=n),a.i.set(k,m),Ml(a,m,0));F(p)})}function Ll(a,b){return{stream:b,type:b.type,ua:null,Y:Gl(a,b),ob:null,fd:null,Fg:null,Dg:null,Cg:null,Kc:null,endOfStream:!1,fb:!1,Jb:null,nc:!1,Fe:0,wf:!1,Kd:!1,ke:!0,Qg:!1,Ud:!1,Ab:null}}
|
|
453
|
-
function Gl(a,b){if("video"===b.type&&a.h.disableVideoPrefetch||"audio"===b.type&&a.h.disableAudioPrefetch||b.type===Sc&&("application/cea-608"==b.mimeType||"application/cea-708"==b.mimeType)||b.type===Sc&&a.h.disableTextPrefetch)return null;if(a.o.has(b))return a.o.get(b);var c=a.i.get(b.type);return(c=c&&c.Y)&&b===c.i?c:0<a.h.segmentPrefetchLimit?new kl(a.h.segmentPrefetchLimit,b,function(d,e,f){return Vl(d,e,f||null,a.h.retryParameters,a.g.Zb)},0>a.g.
|
|
453
|
+
function Gl(a,b){if("video"===b.type&&a.h.disableVideoPrefetch||"audio"===b.type&&a.h.disableAudioPrefetch||b.type===Sc&&("application/cea-608"==b.mimeType||"application/cea-708"==b.mimeType)||b.type===Sc&&a.h.disableTextPrefetch)return null;if(a.o.has(b))return a.o.get(b);var c=a.i.get(b.type);return(c=c&&c.Y)&&b===c.i?c:0<a.h.segmentPrefetchLimit?new kl(a.h.segmentPrefetchLimit,b,function(d,e,f){return Vl(d,e,f||null,a.h.retryParameters,a.g.Zb)},0>a.g.Ra()):null}
|
|
454
454
|
function Hl(a){for(var b=a.h.segmentPrefetchLimit,c=a.h.prefetchAudioLanguages,d={},e=t(a.m.variants),f=e.next();!f.done;d={gb:d.gb},f=e.next())if(d.gb=f.value,d.gb.audio)if(a.o.has(d.gb.audio)){if(f=a.o.get(d.gb.audio),ul(f,b),!(0<b&&c.some(function(h){return function(k){return Wc(h.gb.audio.language,k)}}(d)))){var g=a.i.get(d.gb.audio.type);f!==(g&&g.Y)&&tl(f);a.o.delete(d.gb.audio)}}else 0>=b||!c.some(function(h){return function(k){return Wc(h.gb.audio.language,k)}}(d))||!(f=Gl(a,d.gb.audio))||
|
|
455
455
|
(d.gb.audio.segmentIndex||d.gb.audio.createSegmentIndex(),a.o.set(d.gb.audio,f))}q.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.ka.sb(a):this.g.ka.sb(this.h.infiniteLiveStreamDuration?Infinity:Math.pow(2,32))};
|
|
456
456
|
function Wl(a,b){var c,d,e,f,g;return O(function(h){switch(h.g){case 1:Jg(a.l);if(b.fb||null==b.Jb||b.Kd)return h.return();b.Jb=null;if(!b.nc){h.B(2);break}return E(h,Sl(a,b,b.wf,b.Fe),3);case 3:return h.return();case 2:if(b.stream.segmentIndex){h.B(4);break}c=b.stream;return E(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.fb||b.Jb||Ml(a,b,0),h.return();case 4:ta(h,6);d=Xl(a,b);null!=d&&(Ml(a,b,d),b.Ud=!1);va(h,7);break;case 6:return e=
|
|
457
457
|
wa(h),E(h,Yl(a,b,e),8);case 8:return h.return();case 7:f=Array.from(a.i.values());if(!a.G||!f.every(function(k){return k.endOfStream})){h.B(0);break}return E(h,a.g.ka.endOfStream(),10);case 10:Jg(a.l),g=a.g.ka.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.sb(g),F(h)}})}
|
|
458
|
-
function Xl(a,b){if(Zl(b))return nk(a.g.ka,b.stream.originalId||""),null;b.type==Sc&&ok(a.g.ka);if(!a.g.ka.
|
|
458
|
+
function Xl(a,b){if(Zl(b))return nk(a.g.ka,b.stream.originalId||""),null;b.type==Sc&&ok(a.g.ka);if(!a.g.ka.xa&&b.type!=Sc)return a.h.updateIntervalSeconds/2;var c=a.g.Le();if("audio"===b.type)for(var d=t(a.o.keys()),e=d.next();!e.done;e=d.next())e=a.o.get(e.value),e.eb(c,!0),ml(e,c);d=b.ob?b.ob.endTime:c;e=Zj(a.g.ka,b.type,c);var f=Math.max(1,Math.max(a.m.minBufferTime||0,a.h.rebufferingGoal,a.h.bufferingGoal)*a.F),g=a.m.presentationTimeline.getDuration()-d,h=Yj(a.g.ka,b.type);if(1E-6>g&&h)return b.endOfStream=
|
|
459
459
|
!0,"video"==b.type&&(a=a.i.get(Sc))&&Zl(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.h.updateIntervalSeconds/2;e=$l(a,b,c,h);if(!e)return a.h.updateIntervalSeconds;f=Infinity;g=Array.from(a.i.values());g=t(g);for(h=g.next();!h.done;h=g.next())h=h.value,Zl(h)||h.ua&&!h.ua.current()||(f=Math.min(f,h.ob?h.ob.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.h.updateIntervalSeconds;b.Y&&b.ua&&!a.o.has(b.stream)&&(b.Y.eb(e.startTime),ml(b.Y,e.startTime));am(a,b,c,e).catch(function(){});
|
|
460
|
-
return null}function $l(a,b,c,d){if(b.ua)return b.ua.current();if(b.ob||d)return b.ua=b.stream.segmentIndex.Wb(b.ob?b.ob.endTime:d,!1,0>a.g.
|
|
460
|
+
return null}function $l(a,b,c,d){if(b.ua)return b.ua.current();if(b.ob||d)return b.ua=b.stream.segmentIndex.Wb(b.ob?b.ob.endTime:d,!1,0>a.g.Ra()),b.ua&&b.ua.next().value;d=a.h.inaccurateManifestTolerance;var e=Math.max(c-d,0);a=0>a.g.Ra();var f=null;d&&(b.ua=b.stream.segmentIndex.Wb(e,!1,a),f=b.ua&&b.ua.next().value);f||(b.ua=b.stream.segmentIndex.Wb(c,!1,a),f=b.ua&&b.ua.next().value);return f}
|
|
461
461
|
function am(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,v,w,A,z,C;return O(function(y){switch(y.g){case 1:e=Uc;f=b.stream;g=b.ua;b.fb=!0;ta(y,2);if(2==d.zc())throw new U(1,1,1011);return E(y,bm(a,b,d),4);case 4:Jg(a.l);if(a.A)return y.return();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.h.lowLatencyMode&&k&&h&&("HLS"!=a.m.type||d.m))return n=new Uint8Array(0),r=p=!1,v=function(B){var D,K,G,J;return O(function(I){switch(I.g){case 1:if(p)return I.return();r=!0;Jg(a.l);if(a.A)return I.return();
|
|
462
462
|
ta(I,2);n=cm(n,B);D=!1;K=0;(new Pg).box("mdat",function(H){K=H.size+H.start;D=!0}).parse(n,!1,!0);if(!D){I.B(4);break}G=n.subarray(0,K);n=n.subarray(K);return E(I,dm(a,b,c,f,d,G,!0),5);case 5:b.Y&&b.ua&&ml(b.Y,d.startTime,!0);case 4:va(I,0);break;case 2:u=J=wa(I),F(I)}})},E(y,em(a,b,d,v),9);l=em(a,b,d);return E(y,l,7);case 7:m=y.h;Jg(a.l);if(a.A)return y.return();Jg(a.l);return b.nc?(b.fb=!1,Ml(a,b,0),y.return()):E(y,dm(a,b,c,f,d,m),6);case 9:w=y.h;if(u)throw u;if(r){y.B(10);break}p=!0;Jg(a.l);return a.A?
|
|
463
|
-
y.return():b.nc?(b.fb=!1,Ml(a,b,0),y.return()):E(y,dm(a,b,c,f,d,w),10);case 10:b.Y&&b.ua&&ml(b.Y,d.startTime,!0);case 6:Jg(a.l);if(a.A)return y.return();b.ob=d;g.next();b.fb=!1;b.Qg=!1;A=a.g.ka.Mb();z=A[b.type];cb(JSON.stringify(z));b.nc||a.g.Mg(d,b.stream);Ml(a,b,0);va(y,0);break;case 2:C=wa(y);Jg(a.l,C);if(a.A)return y.return();b.fb=!1;if(7001==C.code)b.fb=!1,El(b),Ml(a,b,0),y.B(0);else if(b.type==e.
|
|
463
|
+
y.return():b.nc?(b.fb=!1,Ml(a,b,0),y.return()):E(y,dm(a,b,c,f,d,w),10);case 10:b.Y&&b.ua&&ml(b.Y,d.startTime,!0);case 6:Jg(a.l);if(a.A)return y.return();b.ob=d;g.next();b.fb=!1;b.Qg=!1;A=a.g.ka.Mb();z=A[b.type];cb(JSON.stringify(z));b.nc||a.g.Mg(d,b.stream);Ml(a,b,0);va(y,0);break;case 2:C=wa(y);Jg(a.l,C);if(a.A)return y.return();b.fb=!1;if(7001==C.code)b.fb=!1,El(b),Ml(a,b,0),y.B(0);else if(b.type==e.Ga&&a.h.ignoreTextStreamFailures)a.i.delete(e.Ga),y.B(0);else if(3017==C.code)fm(a,b,C),y.B(0);else return b.Ud=
|
|
464
464
|
!0,1==C.category&&b.Y&&sl(b.Y,d),C.severity=2,E(y,Yl(a,b,C),0)}})}function gm(a,b,c){var d,e,f,g,h;return O(function(k){if(1==k.g)return d=b,d.cryptoKey?k.B(2):E(k,d.fetchKey(),3);e=d.iv;if(!e)for(e=Gb(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;"CBC"==b.blockCipherMode?h={name:"AES-CBC",iv:e}:h={name:"AES-CTR",counter:e,length:64};return k.return(window.crypto.subtle.decrypt(h,d.cryptoKey,a))})}
|
|
465
465
|
function cm(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}function fm(a,b,c){if(!Array.from(a.i.values()).some(function(e){return e!=b&&e.Qg})){if(0<a.h.maxDisabledTime&&a.g.He(b.stream,a.h.maxDisabledTime))return;var d=Math.round(100*a.F);if(20<d)a.F-=.2;else if(4<d)a.F-=.04;else{b.Ud=!0;a.A=!0;a.g.onError(c);return}b.Qg=!0}Ml(a,b,4)}
|
|
466
466
|
function bm(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v;return O(function(w){switch(w.g){case 1:d=Uc;e=[];f=Math.max(0,Math.max(c.appendWindowStart,a.O)-.1);g=Math.min(c.appendWindowEnd,a.N)+.01;h=Ie(b.stream.codecs);k=Je(b.stream.mimeType);l=c.timestampOffset;if(l==b.Fg&&f==b.Dg&&g==b.Cg&&h==b.Eg&&k==b.Oh){w.B(2);break}m=b.Eg&&b.Oh&&Ak(a.g.ka,b.type,k,h);if(!m){w.B(3);break}n=null;b.type===d.ra?n=a.i.get(d.aa):b.type===d.aa&&(n=a.i.get(d.ra));if(!n){w.B(3);break}return E(w,Fl(n).catch(function(){}),5);
|
|
@@ -469,12 +469,12 @@ b,c.sa),u=function(){var A,z,C,y,B,D,K;return O(function(G){switch(G.g){case 1:r
|
|
|
469
469
|
Xg).box("hev1",Xg).box("hvc1",Xg).box("dvav",Xg).box("dva1",Xg).box("dvh1",Xg).box("dvhe",Xg).box("vexu",Ug).box("proj",Ug).W("prji",function(J){J=J.reader.Ic();y.projection=J}).box("hfov",function(J){J=J.reader.T()/1E3;y.hfov=J}).parse(A),hm(a,y),C.has(b.type)?c.sa.timescale=C.get(b.type):null!=z&&(c.sa.timescale=z),D=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,E(G,a.g.sh(b.type,A),5);case 5:return E(G,ik(a.g.ka,b.type,A,null,b.stream,D),6);case 6:va(G,0);break;case 2:throw K=wa(G),b.fd=
|
|
470
470
|
null,K;}})},a.g.Uj(c.startTime,c.sa),e.push(u()))),a.m.sequenceMode&&(v=b.ob?b.ob.j:null,c.j!=v&&e.push(tk(a.g.ka,b.type,c.startTime))),E(w,Promise.all(e),0)}})}
|
|
471
471
|
function dm(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h,k,l,m,n,p;return O(function(r){switch(r.g){case 1:h=d.closedCaptions&&0<d.closedCaptions.size;l=null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.h.dispatchAllEmsgBoxes;m=a.h.parsePrftBox&&!a.H;if(l||m)k=new Pg;l&&k.W("emsg",function(u){var v=d.emsgSchemeIdUris;if(0===u.version){var w=u.reader.Ic();var A=u.reader.Ic();var z=u.reader.T();var C=u.reader.T();var y=u.reader.T();var B=u.reader.T();var D=e.startTime+C/z}else z=u.reader.T(),D=u.reader.md()/
|
|
472
|
-
z+e.timestampOffset,C=D-e.startTime,y=u.reader.T(),B=u.reader.T(),w=u.reader.Ic(),A=u.reader.Ic();u=u.reader.Hb(u.reader.getLength()-u.reader.
|
|
472
|
+
z+e.timestampOffset,C=D-e.startTime,y=u.reader.T(),B=u.reader.T(),w=u.reader.Ic(),A=u.reader.Ic();u=u.reader.Hb(u.reader.getLength()-u.reader.Ja());if(v&&v.includes(w)||a.h.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==w?a.g.Vj():(v=(new Map).set("detail",{startTime:D,endTime:D+y/z,schemeIdUri:w,value:A,timescale:z,presentationTimeDelta:C,eventDuration:y,id:B,messageData:u}),v=new S("emsg",v),v.cancelable=!0,a.g.onEvent(v),v.defaultPrevented||"https://aomedia.org/emsg/ID3"!=w&&"https://developer.apple.com/streaming/emsg-id3"!=
|
|
473
473
|
w||(w=Xi(u),w.length&&e&&a.g.cf([{cueTime:e.startTime,data:u,frames:w,dts:e.startTime,pts:e.startTime}],0,e.endTime)))});m&&k.W("prft",function(u){if(!a.H&&e.sa.timescale){var v=u.reader,w=u.version;v.T();u=v.T();var A=v.T();u=1E3*u+A/Math.pow(2,32)*1E3;0===w?v=v.T():(w=v.T(),v=v.T(),v=w*Math.pow(2,32)+v);u=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+u)).getTime();v=(new Map).set("detail",{wallClockTime:u,programStartDate:new Date(u-v/e.sa.timescale*1E3)});v=new S("prft",v);a.g.onEvent(v);
|
|
474
474
|
a.H=!0}});(l||m)&&k.parse(f);return E(r,im(a,b,c),2);case 2:return Jg(a.l),n=b.ke,b.ke=!1,p=b.ph,b.ph=!1,E(r,a.g.sh(b.type,f),3);case 3:return E(r,ik(a.g.ka,b.type,f,e,d,h,n,p,g),4);case 4:Jg(a.l),F(r)}})}function im(a,b,c){var d,e,f,g;return O(function(h){if(1==h.g){d=Math.max(a.h.bufferBehind,a.m.presentationTimeline.g);e=Wj(a.g.ka,b.type);if(null==e)return h.return();f=c-e;g=f-d;return g<=a.h.evictionGoal?h.return():E(h,a.g.ka.remove(b.type,e,e+g),2)}Jg(a.l);F(h)})}
|
|
475
475
|
function Zl(a){return a&&a.type==Sc&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
|
|
476
476
|
function em(a,b,c,d){var e,f,g,h,k;return O(function(l){switch(l.g){case 1:if(e=c.Sd())return l.return(e);f=null;if(b.Y){var m=b.Y,n=m.h;c instanceof Gi&&(n=m.j);n.has(c)?(m=n.get(c),d&&(m.eh=d),f=m.df):f=null}f||(f=Vl(c,b.stream,d||null,a.h.retryParameters,a.g.Zb));g=0;b.ua&&(g=b.ua.h);b.Ab=f;return E(l,f.promise,2);case 2:h=l.h;b.Ab=null;k=h.data;if(!c.aesKey){l.B(3);break}return E(l,gm(k,c.aesKey,g),4);case 4:k=l.h;case 3:return l.return(k)}})}
|
|
477
|
-
function Vl(a,b,c,d,e){var f=a instanceof Ii?a:void 0,g=f?1:0;a=Bl(a.P(),a.
|
|
477
|
+
function Vl(a,b,c,d,e){var f=a instanceof Ii?a:void 0,g=f?1:0;a=Bl(a.P(),a.Wa,a.Da,d,c);a.contentType=b.type;return e.request(Gg,a,{type:g,stream:b,segment:f})}
|
|
478
478
|
function Sl(a,b,c,d){var e,f;return O(function(g){if(1==g.g)return b.nc=!1,b.wf=!1,b.Fe=0,b.Kd=!0,b.ob=null,b.ua=null,b.Y&&!a.o.has(b.stream)&&tl(b.Y),d?(e=a.g.Le(),f=a.g.ka.getDuration(),E(g,a.g.ka.remove(b.type,e+d,f),3)):E(g,qk(a.g.ka,b.type),4);if(3!=g.g)return Jg(a.l),c?E(g,a.g.ka.flush(b.type),3):g.B(3);Jg(a.l);b.Kd=!1;b.endOfStream=!1;b.fb||b.Jb||Ml(a,b,0);F(g)})}
|
|
479
479
|
function Ml(a,b,c){var d=b.type;if(d!=Sc||a.i.has(d))b.Jb=(new Tb(function(){var e;return O(function(f){if(1==f.g)return ta(f,2),E(f,Wl(a,b),4);if(2!=f.g)return va(f,0);e=wa(f);if(a.g)a.g.onError(e);F(f)})})).V(c)}function El(a){null!=a.Jb&&(a.Jb.stop(),a.Jb=null)}function Fl(a){return O(function(b){return a.Ab?E(b,a.Ab.abort(),0):b.B(0)})}
|
|
480
480
|
function Yl(a,b,c){var d;return O(function(e){if(1==e.g)return E(e,kg(a.K),2);Jg(a.l);d=0===a.h.maxDisabledTime&&1011==c.code?1:a.h.maxDisabledTime;1===c.category&&0<d&&(c.handled=a.g.He(b.stream,d),c.handled&&(c.severity=1));if(!c.handled||1011!=c.code)a.g.onError(c);c.handled||a.h.failureCallback(c);F(e)})}
|
|
@@ -502,16 +502,16 @@ preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredA
|
|
|
502
502
|
playRangeStart:0,playRangeEnd:Infinity,textDisplayer:{captionsUpdatePeriod:.25},textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",rtpSafetyFactor:5,useHeaders:!1,includeKeys:[]},cmsd:{enabled:!0,applyMaximumSuggestedBitrate:!0,estimatedThroughputWeightRatio:.5},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1},ads:{customPlayheadTracker:g,skipPlayDetection:h,supportsMultipleMediaElements:k}};f.trackSelectionCallback=function(m){return O(function(n){return n.return(ym(m,
|
|
503
503
|
l.preferredAudioLanguage,l.preferredVideoHdrLevel))})};return l}function zm(a,b,c){var d={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:"",headers:{}}};return lm(a,b,c||vm(),d,"")}
|
|
504
504
|
function ym(a,b,c){var d=c;"AUTO"==d&&(d=window.matchMedia("(color-gamut: p3)").matches?"PQ":"SDR");var e=a.filter(function(h){return"variant"!=h.type||h.hdr&&h.hdr!=d?!1:!0});c=[];var f=gd(b,e.map(function(h){return h.language}));f&&(c=e.filter(function(h){return Xc(h.language)==f}));0==c.length&&(c=e.filter(function(h){return h.primary}));0==c.length&&(e.map(function(h){return h.language}),c=e);var g=c.filter(function(h){return h.height&&480>=h.height});g.length&&(g.sort(function(h,k){return k.height-
|
|
505
|
-
h.height}),c=g.filter(function(h){return h.height==g[0].height}));b=[];c.length&&(e=Math.floor(c.length/2),c.sort(function(h,k){return h.bandwidth-k.bandwidth}),b.push(c[e]));a=t(a);for(c=a.next();!c.done;c=a.next())c=c.value,c.type!=Sc&&"image"!=c.type||b.push(c);return b}function wm(a){return nm([a],a)}function xm(a){return nm([a],a)}P("shaka.util.PlayerConfiguration",um);um.mergeConfigObjects=zm;um.createDefault=vm;function Am(a,b,c,d,e){gb.call(this);this.L=a;this.R=b;this.
|
|
505
|
+
h.height}),c=g.filter(function(h){return h.height==g[0].height}));b=[];c.length&&(e=Math.floor(c.length/2),c.sort(function(h,k){return h.bandwidth-k.bandwidth}),b.push(c[e]));a=t(a);for(c=a.next();!c.done;c=a.next())c=c.value,c.type!=Sc&&"image"!=c.type||b.push(c);return b}function wm(a){return nm([a],a)}function xm(a){return nm([a],a)}P("shaka.util.PlayerConfiguration",um);um.mergeConfigObjects=zm;um.createDefault=vm;function Am(a,b,c,d,e){gb.call(this);this.L=a;this.R=b;this.xa=e.networkingEngine;this.S=d;this.o=null;this.jb=c;this.qa=0;this.Na=e.Vc;this.F=e.Pj;this.Za=e.Qj;this.g=e.config;this.j=this.G=this.h=null;this.ea=!1;this.H=e.Zj;this.ma=!1;this.l=null;this.ba=!1;this.i=this.A=null;this.$=!1;this.K=new Map;this.na=!1;this.Ba=e.Yj;this.Z=new jl;this.m=new lg;this.N=null;this.u=!1;this.Ea=e.Ji;this.ha=null;this.Ha=e.Ii;this.O=!1;this.J=[];this.I=[]}na(Am,gb);
|
|
506
506
|
function Bm(a,b,c){(a=b?a.I:a.J)?a.push(c):c()}function Cm(a){if(a.I)for(var b=t(a.I),c=b.next();!c.done;c=b.next())c=c.value,c();a.I=null}function Dm(a,b){a.N=b;a.O=!0;if(a.J){b=t(a.J);for(var c=b.next();!c.done;c=b.next())c=c.value,c()}a.J=null}q=Am.prototype;q.getStartTime=function(){return this.S};q.Zc=function(){return this.L};q.rg=function(){return this.h};function Em(a){a.$=!0;return a.i}function Fm(a){a.ea=!0;return a.j}function Gm(a){a.ma=!0;return a.H}q.getStats=function(){return this.Z};
|
|
507
507
|
function Hm(a){a.ba=!0;return a.l}function Im(a){a.na=!0;return a.K}
|
|
508
508
|
q.start=function(){var a=this;(function(){var b;return O(function(c){switch(c.g){case 1:return E(c,Promise.resolve(),2);case 2:return ta(c,3),E(c,Jm(a),5);case 5:return Km(a),E(c,Lm(a),6);case 6:Km(a);a.o||(a.o=new Wf(a.g.preferredAudioLanguage,a.g.preferredVariantRole,a.g.preferredAudioChannelCount,a.g.preferredVideoHdrLevel,a.g.preferSpatialAudio,a.g.preferredVideoLayout,a.g.preferredAudioLabel,a.g.preferredVideoLabel,a.g.mediaSource.codecSwitchingStrategy,a.g.manifest.dash.enableAudioGroups));
|
|
509
|
-
if(a.
|
|
509
|
+
if(a.Ha){var d=a.g.abrFactory;a.A=d;a.i=d();a.i.configure(a.g.abr)}if(a.Ea){d=a.h.presentationTimeline.U();var e=Ff(a.h.variants);e=a.o.create(e);a.i.configure(a.g.abr);a.i.setVariants(Array.from(e.values()));if(e=a.i.chooseVariant(!0))a.ha=e,e.video&&Mm(a,e.video,d),e.audio&&Mm(a,e.audio,d)}return E(c,void 0,7);case 7:Km(a);a.m.resolve();va(c,0);break;case 3:b=wa(c),a.m.reject(b),F(c)}})})()};q.dispatchEvent=function(a){return this.N?this.N.dispatchEvent(a):gb.prototype.dispatchEvent.call(this,a)};
|
|
510
510
|
q.onError=function(a){2===a.severity&&(this.m.reject(a),this.destroy());var b=(new Map).set("detail",a);b=new S("error",b);this.dispatchEvent(b);b.defaultPrevented&&(a.handled=!0)};function Km(a){if(a.u)throw new U(2,7,7003);}function Nm(a,b){a.dispatchEvent(new S("onstatechange",(new Map).set("state",b)))}
|
|
511
511
|
function Jm(a){var b,c,d,e,f;return O(function(g){if(1==g.g){Nm(a,"manifest-parser");a.j||(a.G=Ai(a.L,a.R),a.j=a.G(),a.j.configure(a.g.manifest));b=Date.now()/1E3;Nm(a,"manifest");if(a.h)return g.B(2);c=a;return E(g,a.j.start(a.L,a.Za),3)}2!=g.g&&(c.h=g.h);d=new S("manifestparsed",void 0);a.dispatchEvent(d);if(0==a.h.variants.length)throw new U(2,4,4036);Om(a.h);e=Date.now()/1E3;f=e-b;a.Z.H=f;F(g)})}
|
|
512
|
-
function Lm(a){var b,c,d,e,f;return O(function(g){switch(g.g){case 1:Nm(a,"drm-engine");a.qa=Date.now()/1E3;a.l=a.
|
|
512
|
+
function Lm(a){var b,c,d,e,f;return O(function(g){switch(g.g){case 1:Nm(a,"drm-engine");a.qa=Date.now()/1E3;a.l=a.Na();a.F.g=a.l;a.l.configure(a.g.drm);var h=a.F;b=df(a.h.variants,h.h.restrictions,h.i);if(!b){g.B(2);break}c=new S("trackschanged",void 0);return E(g,Promise.resolve(),3);case 3:Km(a),a.dispatchEvent(c);case 2:return d=Ff(a.h.variants),E(g,Qh(a.l,d,a.h.offlineSessionIds),4);case 4:return Km(a),E(g,ui(a.F,a.h),5);case 5:e=g.h;if(!e){g.B(0);break}f=new S("trackschanged",void 0);return E(g,
|
|
513
513
|
Promise.resolve(),7);case 7:a.dispatchEvent(f),F(g)}})}q.configure=function(a,b){a=mm(a,b);zm(this.g,a)};q.getConfiguration=function(){return Xe(this.g)};
|
|
514
|
-
function Mm(a,b,c){var d,e,f,g,h;O(function(k){if(1==k.g)return d=a.g.streaming.segmentPrefetchLimit||2,e=new kl(d,b,function(l,m,n){return Vl(l,m,n||null,a.g.streaming.retryParameters,a.
|
|
514
|
+
function Mm(a,b,c){var d,e,f,g,h;O(function(k){if(1==k.g)return d=a.g.streaming.segmentPrefetchLimit||2,e=new kl(d,b,function(l,m,n){return Vl(l,m,n||null,a.g.streaming.retryParameters,a.xa)},!1),a.K.set(b.id,e),E(k,b.createSegmentIndex(),2);f=a.S||0;(h=(g=b.segmentIndex.Wb(f))?g.current():null)||(h=b.segmentIndex.get(0));h&&(c?h.sa&&nl(e,h.sa):ml(e,h.startTime));F(k)})}q.Hk=function(){return this.m};
|
|
515
515
|
q.destroy=function(){var a=this,b,c,d;return O(function(e){switch(e.g){case 1:a.u=!0;if(!a.j||a.ea){e.B(2);break}return E(e,a.j.stop(),2);case 2:if(!a.i||a.$){e.B(4);break}return E(e,a.i.stop(),4);case 4:a.H&&!a.ma&&a.H.release();if(!a.l||a.ba){e.B(6);break}return E(e,a.l.destroy(),6);case 6:if(0<a.K.size&&!a.na)for(b=t(a.K.values()),c=b.next();!c.done;c=b.next())d=c.value,tl(d);F(e)}})};
|
|
516
516
|
function Om(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))}P("shaka.media.PreloadManager",Am);Am.prototype.destroy=Am.prototype.destroy;Am.prototype.waitForFinish=Am.prototype.Hk;function Pm(a,b){gb.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{Qc:null,Pc:Qm,Dc:function(d,e){return Rm(c,"enter",d,e)}},{Qc:Sm,Pc:Qm,Dc:function(d,e){return Rm(c,"enter",d,e)}},{Qc:Tm,Pc:Qm,Dc:function(d,e){return Rm(c,"enter",d,e)}},{Qc:Qm,Pc:Sm,Dc:function(d,e){return Rm(c,"exit",d,e)}},{Qc:Qm,Pc:Tm,Dc:function(d,e){return Rm(c,"exit",d,e)}},{Qc:Sm,Pc:Tm,Dc:function(d,e){return Rm(c,"skip",d,e)}},{Qc:Tm,Pc:Sm,Dc:function(d,e){return Rm(c,"skip",d,e)}}];this.h=new od;this.h.s(this.i,
|
|
517
517
|
"regionremove",function(d){c.g.delete(d.region)})}na(Pm,gb);Pm.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;gb.prototype.release.call(this)};Pm.prototype.j=function(a,b){if(!this.l||0!=a){this.l=!1;for(var c=t(this.i.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?Sm:a>d.endTime?Tm:Qm;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.Qc==e&&h.Pc==f&&h.Dc(d,b)}}};
|
|
@@ -521,12 +521,13 @@ var Vm={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"
|
|
|
521
521
|
return"<"+h+(void 0===k?"":k)+">"+g+"</"+h+">"},a.payload)}
|
|
522
522
|
function Xm(a){a=a.toLowerCase();var b=a.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i);b?a="#"+(parseInt(b[1],10)|256).toString(16).slice(1)+(parseInt(b[2],10)|256).toString(16).slice(1)+(parseInt(b[3],10)|256).toString(16).slice(1):a.startsWith("#")&&7<a.length&&(a=a.slice(0,7));switch(a){case "white":case "#fff":case "#ffffff":return"white";case "lime":case "#0f0":case "#00ff00":return"lime";case "cyan":case "#0ff":case "#00ffff":return"cyan";case "red":case "#f00":case "#ff0000":return"red";
|
|
523
523
|
case "yellow":case "#ff0":case "#ffff00":return"yellow";case "magenta":case "#f0f":case "#ff00ff":return"magenta";case "blue":case "#00f":case "#0000ff":return"blue";case "black":case "#000":case "#000000":return"black"}return null}function Ym(a,b){var c=[];a=t(Zm(a));for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.isContainer)c.push.apply(c,x(Ym(d.nestedCues,d)));else{var e=d.clone();e.nestedCues=[];e.payload=Wm(d,b);c.push(e)}return c}
|
|
524
|
-
function Zm(a){var b=[],c={};a=t(a);for(var d=a.next();!d.done;c={qe:c.qe},d=a.next())c.qe=d.value,b.some(function(e){return function(f){return de(e.qe,f)}}(c))||b.push(c.qe);return b}
|
|
525
|
-
|
|
526
|
-
c.
|
|
527
|
-
function
|
|
528
|
-
|
|
529
|
-
c.
|
|
524
|
+
function Zm(a){var b=[],c={};a=t(a);for(var d=a.next();!d.done;c={qe:c.qe},d=a.next())c.qe=d.value,b.some(function(e){return function(f){return de(e.qe,f)}}(c))||b.push(c.qe);return b}
|
|
525
|
+
function $m(a){function b(d){for(var e=5381,f=d.length;f;)e=33*e^d.charCodeAt(--f);return(e>>>0).toString()}if(a.startTime>=a.endTime)return null;var c=new VTTCue(a.startTime,a.endTime,a.payload);c.id=b(a.startTime.toString())+b(a.endTime.toString())+b(a.payload);c.lineAlign=a.lineAlign;c.positionAlign=a.positionAlign;a.size&&(c.size=a.size);try{c.align=a.textAlign}catch(d){}"center"==a.textAlign&&"center"!=c.align&&(c.align="middle");"vertical-lr"==a.writingMode?c.vertical="lr":"vertical-rl"==a.writingMode&&
|
|
526
|
+
(c.vertical="rl");1==a.lineInterpretation&&(c.snapToLines=!1);null!=a.line&&(c.line=a.line);null!=a.position&&(c.position=a.position);return c};function an(a,b){this.g=null;for(var c=t(Array.from(a.textTracks)),d=c.next();!d.done;d=c.next())d=d.value,"metadata"!==d.kind&&"chapters"!==d.kind&&(d.mode="disabled",d.label==b&&(this.g=d));this.g||(this.g=a.addTextTrack("subtitles",b));this.g.mode="hidden"}q=an.prototype;q.configure=function(){};q.remove=function(a,b){if(!this.g)return!1;bn(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
|
|
527
|
+
q.append=function(a){var b=Ym(a),c=[];a=this.g.cues?Array.from(this.g.cues):[];var d={};b=t(b);for(var e=b.next();!e.done;d={Sc:d.Sc},e=b.next())d.Sc=e.value,a.some(function(f){return function(g){return g.startTime==f.Sc.startTime&&g.endTime==f.Sc.endTime&&g.text==f.Sc.payload?!0:!1}}(d))||(e=$m(d.Sc))&&c.push(e);a=c.slice().sort(function(f,g){return f.startTime!=g.startTime?f.startTime-g.startTime:f.endTime!=g.endTime?f.endTime-g.startTime:"line"in VTTCue.prototype?c.indexOf(g)-c.indexOf(f):c.indexOf(f)-
|
|
528
|
+
c.indexOf(g)});a=t(a);for(d=a.next();!d.done;d=a.next())this.g.addCue(d.value)};q.destroy=function(){this.g&&(bn(this.g,function(){return!0}),this.g.mode="disabled");this.g=null;return Promise.resolve()};q.isTextVisible=function(){return"showing"==this.g.mode};q.setTextVisibility=function(a){this.g.mode=a?"showing":"hidden"};
|
|
529
|
+
function bn(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=t(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}P("shaka.text.SimpleTextDisplayer",an);an.prototype.setTextVisibility=an.prototype.setTextVisibility;an.prototype.isTextVisible=an.prototype.isTextVisible;an.prototype.destroy=an.prototype.destroy;an.prototype.append=an.prototype.append;an.prototype.remove=an.prototype.remove;an.prototype.configure=an.prototype.configure;function cn(){}q=cn.prototype;q.configure=function(){};q.remove=function(){};q.append=function(){};q.destroy=function(){};q.isTextVisible=function(){return!1};q.setTextVisibility=function(){};P("shaka.text.StubTextDisplayer",cn);cn.prototype.setTextVisibility=cn.prototype.setTextVisibility;cn.prototype.isTextVisible=cn.prototype.isTextVisible;cn.prototype.destroy=cn.prototype.destroy;cn.prototype.append=cn.prototype.append;cn.prototype.remove=cn.prototype.remove;cn.prototype.configure=cn.prototype.configure;function dn(){}function W(a){return document.createElement(a)}function en(){var a=document.createElement("button");a.setAttribute("type","button");return a}function fn(a){for(;a.firstChild;)a.removeChild(a.firstChild)}P("shaka.util.Dom",dn);dn.removeAllChildren=fn;function gn(a,b,c){var d=this;this.m=!1;this.h=[];this.A=a;this.u=b;this.l=null;this.g=W("div");this.g.classList.add("shaka-text-container");this.g.style.textAlign="center";this.g.style.display="flex";this.g.style.flexDirection="column";this.g.style.alignItems="center";this.g.style.justifyContent="flex-end";this.u.appendChild(this.g);c&&c.captionsUpdatePeriod||xd("UITextDisplayer w/ config","Please migrate to initializing UITextDisplayer with a config.");this.G=(new Ub(function(){d.A.paused||hn(d)})).za(c&&
|
|
530
|
+
c.captionsUpdatePeriod?c.captionsUpdatePeriod:.25);this.i=new Map;this.j=new od;this.j.s(document,"fullscreenchange",function(){hn(d,!0)});this.j.s(this.A,"seeking",function(){hn(d,!0)});this.j.s(this.A,"resize",function(){var e=d.A,f=e.videoWidth;e=e.videoHeight;f&&e?d.l=f/e:d.l=null});this.o=null;"ResizeObserver"in window&&(this.o=new ResizeObserver(function(){hn(d,!0)}),this.o.observe(this.g));this.F=new Map}q=gn.prototype;q.configure=function(a){this.G&&this.G.za(a.captionsUpdatePeriod)};
|
|
530
531
|
q.append=function(a){var b=[].concat(x(this.h)),c={};a=t(Zm(a));for(var d=a.next();!d.done;c={re:c.re},d=a.next())c.re=d.value,b.some(function(e){return function(f){return de(f,e.re)}}(c))||this.h.push(c.re);hn(this)};q.destroy=function(){if(!this.g)return Promise.resolve();this.u.removeChild(this.g);this.g=null;this.m=!1;this.h=[];this.G&&this.G.stop();this.i.clear();this.j&&(this.j.release(),this.j=null);this.o&&(this.o.disconnect(),this.o=null);return Promise.resolve()};
|
|
531
532
|
q.remove=function(a,b){if(!this.g)return!1;var c=this.h.length;this.h=this.h.filter(function(d){return d.startTime<a||d.endTime>=b});hn(this,c>this.h.length);return!0};q.isTextVisible=function(){return this.m};q.setTextVisibility=function(a){this.m=a};function jn(a,b){for(;null!=b;){if(b==a.g)return!0;b=b.parentElement}return!1}
|
|
532
533
|
function kn(a,b,c,d,e){var f=!1,g=[],h=[];b=t(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.i.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.zi:null;l&&(g.push(l.Zf),l.Jc&&g.push(l.Jc),m||(f=!0,a.i.delete(k),l=null));m&&(h.push(k),l?jn(a,n)||(f=!0):(ln(a,k,e),l=a.i.get(k),n=l.zi,f=!0));0<k.nestedCues.length&&n&&kn(a,k.nestedCues,n,d,e);e.pop()}if(f){d=t(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(p,r){return p.startTime!=
|
|
@@ -545,53 +546,53 @@ gn.prototype.isTextVisible=gn.prototype.isTextVisible;gn.prototype.remove=gn.pro
|
|
|
545
546
|
break;case "right":g.push("align:right");break;case Td:g.push("align:middle");break;case "start":g.push("align:start");break;case "end":g.push("align:end")}switch(f.writingMode){case "vertical-lr":g.push("vertical:lr");break;case "vertical-rl":g.push("vertical:rl")}return g.length?" "+g.join(" "):""}(e)+"\n",a+=e.payload+"\n\n";return a}P("shaka.text.WebVttGenerator",function(){});function rn(a,b){this.h=a;this.g=b;this.m=void 0;this.i=!1;this.l=!0;this.j=!1}rn.prototype.configure=function(a){this.g=a};function sn(a){a.i=!1;a.l=!0;a.j=!1}
|
|
546
547
|
function tn(a,b,c){try{if(!a.g.enabled)return b;var d=un(a);a:{switch(c.toLowerCase()){case "audio/mp4":case "audio/webm":case "audio/ogg":case "audio/mpeg":case "audio/aac":case "audio/flac":case "audio/wav":var e=vn;break a;case "video/webm":case "video/mp4":case "video/mpeg":case "video/mp2t":e=wn;break a;case "application/x-mpegurl":case "application/vnd.apple.mpegurl":case "application/dash+xml":case "video/vnd.mpeg.dash.mpd":case "application/vnd.ms-sstr+xml":e=xn;break a}e=void 0}d.ot=e;d.su=
|
|
547
548
|
!0;var f=yn(d);return zn(b,f)}catch(g){return Za("CMCD_SRC_ERROR","Could not generate src CMCD data.",g),b}}function un(a){a.g.sessionId||(a.g.sessionId=window.crypto.randomUUID());return{v:1,sf:a.m,sid:a.g.sessionId,cid:a.g.contentId,mtp:a.h.getBandwidthEstimate()/1E3}}
|
|
548
|
-
function An(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled){Object.assign(c,un(a));c.pr=a.h.
|
|
549
|
+
function An(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled){Object.assign(c,un(a));c.pr=a.h.Ra();var e=c.ot===Bn||c.ot===wn;a.j&&e&&(c.bs=!0,c.su=!0,a.j=!1);null==c.su&&(c.su=a.l);a=Cn(a,c);if(d)d=Dn(a),Object.keys(d).length&&Object.assign(b.headers,d);else{var f=yn(a);f&&(b.uris=b.uris.map(function(g){return zn(g,f)}))}}}function Cn(a,b){var c=a.g.includeKeys;return c.length?Object.keys(b).reduce(function(d,e){c.includes(e)&&(d[e]=b[e]);return d},{}):b}
|
|
549
550
|
function En(a){if(0===a.type)return Fn;if(a=a.stream){var b=a.type;if("video"==b)return a.codecs&&a.codecs.includes(",")?wn:Bn;if("audio"==b)return vn;if("text"==b)return"application/mp4"===a.mimeType?Gn:Hn}}function In(a,b){b=a.h.Mb()[b];if(!b.length)return NaN;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):NaN}
|
|
550
551
|
function Jn(a,b){b=a.h.Mb()[b];if(!b.length)return 0;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):0}function Kn(a,b){var c=a.h.Db();if(!c.length)return NaN;a=c[0];c=t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,"variant"===d.type&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case Bn:return a.videoBandwidth||NaN;case vn:return a.audioBandwidth||NaN;default:return a.bandwidth}}
|
|
551
552
|
function yn(a){function b(n){return 100*c(n/100)}function c(n){return Math.round(n)}function d(n){return!Number.isNaN(n)&&null!=n&&""!==n&&!1!==n}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(n){return encodeURIComponent(n)},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=t(g);for(var h=g.next();!h.done;h=g.next()){h=h.value;var k=a[h];if(d(k)&&("v"!==h||1!==k)&&("pr"!=h||1!==k)){var l=f[h];l&&(k=l(k));l=typeof k;var m=void 0;m="string"===l&&"ot"!==h&&"sf"!==h&&"st"!==h?h+"="+JSON.stringify(k):"boolean"===
|
|
552
553
|
l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function Dn(a){var b=Object.keys(a),c={},d=["Object","Request","Session","Status"],e=[{},{},{},{}],f={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3};b=t(b);for(var g=b.next();!g.done;g=b.next())g=g.value,e[null!=f[g]?f[g]:1][g]=a[g];for(a=0;a<e.length;a++)(f=yn(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
|
|
553
554
|
function zn(a,b){if(!b||a.includes("offline:"))return a;a=new mb(a);a.g.set("CMCD",b);return a.toString()}var xn="m",vn="a",Bn="v",wn="av",Fn="i",Hn="c",Gn="tt";P("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",Bi:"s",OTHER:"o"});function Ln(a){this.h=a;this.g=null}q=Ln.prototype;q.configure=function(a){this.h=a};q.Ih=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(Mn)?1E3*this.g.get(Mn):null};q.Hh=function(){return this.h.enabled&&this.g&&this.g.has(Nn)?1E3*this.g.get(Nn):null};q.nj=function(){return this.h.enabled&&this.g&&this.g.has(ao)?this.g.get(ao):null};q.oj=function(){return this.h.enabled&&this.g&&this.g.has(bo)?this.g.get(bo):null};
|
|
554
555
|
q.getBandwidthEstimate=function(a){var b=this.Hh();if(!b)return a;var c=this.h.estimatedThroughputWeightRatio;return 0<c&&1>=c?a*(1-c)+b*c:a};function co(a){return a?"false"===a.toLowerCase()?!1:/^[-0-9]/.test(a)?parseInt(a,10):a.replace(/["]+/g,""):!0}P("shaka.util.CmsdManager",Ln);Ln.prototype.getBandwidthEstimate=Ln.prototype.getBandwidthEstimate;Ln.prototype.getRoundTripTime=Ln.prototype.oj;Ln.prototype.getResponseDelay=Ln.prototype.nj;Ln.prototype.getEstimatedThroughput=Ln.prototype.Hh;
|
|
555
|
-
Ln.prototype.getMaxBitrate=Ln.prototype.Ih;var Nn="etp",Mn="mb",ao="rd",bo="rtt";function eo(){this.g=null;this.h=[]}function fo(a,b){return O(function(c){if(1==c.g)return a.g?E(c,new Promise(function(d){return a.h.push(d)}),2):c.B(2);a.g=b;F(c)})}eo.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null};function X(a,b){gb.call(this);var c=this;this.l=go;this.jf=this.h=null;this.ea=!1;this.xf=new od;this.Gc=new od;this.m=new od;this.
|
|
556
|
-
this.Jf=[];this.u=null;this.
|
|
556
|
+
Ln.prototype.getMaxBitrate=Ln.prototype.Ih;var Nn="etp",Mn="mb",ao="rd",bo="rtt";function eo(){this.g=null;this.h=[]}function fo(a,b){return O(function(c){if(1==c.g)return a.g?E(c,new Promise(function(d){return a.h.push(d)}),2):c.B(2);a.g=b;F(c)})}eo.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null};function X(a,b){gb.call(this);var c=this;this.l=go;this.jf=this.h=null;this.ea=!1;this.xf=new od;this.Gc=new od;this.m=new od;this.Ba=new od;this.Cc=new od;this.G=this.H=this.F=this.I=null;this.yf=0;this.S=new eo;this.ha=this.lh=this.Z=this.i=this.Ha=this.K=this.j=this.jb=this.L=this.mh=this.$=this.O=this.Ac=this.N=this.rf=this.J=this.Za=null;this.Na=!1;this.qa=this.o=null;this.Lf=1E9;this.ie=[];this.R=NaN;this.g=ho(this);this.ba={width:Infinity,height:Infinity};this.gf=new ti(this.g,this.ba,null);
|
|
557
|
+
this.Jf=[];this.u=null;this.xa=new Wf(this.g.preferredAudioLanguage,this.g.preferredVariantRole,this.g.preferredAudioChannelCount,this.g.preferredVideoHdrLevel,this.g.preferSpatialAudio,this.g.preferredVideoLayout,this.g.preferredAudioLabel,this.g.preferredVideoLabel,this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups);this.Ea=this.g.preferredTextLanguage;this.ee=this.g.preferredTextRole;this.be=this.g.preferForcedSubs;this.$d=[];b&&b(this);this.O=io(this);this.$=new Ln(this.g.cmsd);
|
|
557
558
|
this.I=jo(this);this.I.Zg(this.g.streaming.forceHTTP);this.I.$g(this.g.streaming.forceHTTPS);this.Nf=this.ma=this.A=null;this.Mf=new Ub(function(){return O(function(d){if(1==d.g)return c.ma?E(d,c.tc(c.Nf,!0),3):d.B(0);if(4!=d.g)return E(d,c.load(c.ma),4);c.Nf.play();c.ma=null;F(d)})});ko&&(this.A=ko(),this.A.configure(this.g.ads),this.Cc.s(this.A,"ad-started",function(d){var e,f,g;return O(function(h){if(1==h.g){if(c.g.ads.supportsMultipleMediaElements)return h.return();e=d.originalEvent;if(!e)return h.return();
|
|
558
559
|
f=google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED;if(e.type!=f)return h.return();c.Mf.stop();if(c.ma)return h.B(0);c.Nf=c.h;g=c;return E(h,c.Bh(!0),3)}g.ma=h.h;F(h)})}),this.Cc.s(this.A,"ad-stopped",function(d){c.g.ads.supportsMultipleMediaElements||(d=d.originalEvent)&&d.type==google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED&&c.Mf.V(.1)}));this.xf.s(window,"online",function(){lo(c);c.Rg()});this.uf=new Ub(function(){return mo(c)});this.na=null;a&&(xd("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),
|
|
559
560
|
this.tc(a,!0))}na(X,gb);function no(a){null!=a.L&&(Ej(a.L),a.L.release(),a.L=null)}function oo(a,b){b.lcevc.enabled?(no(a),null==a.L&&(a.L=new Dj(a.h,a.mh,b.lcevc),a.H&&(a.H.Z=a.L))):no(a)}function po(a,b){return new S(a,b)}q=X.prototype;
|
|
560
|
-
q.destroy=function(){var a=this,b,c,d,e,f;return O(function(g){switch(g.g){case 1:if(a.l==qo)return g.return();no(a);b=a.detach();a.l=qo;return E(g,b,2);case 2:c=[];d=t(a.Jf);for(e=d.next();!e.done;e=d.next())f=e.value,f.u||c.push(f.destroy());a.Jf=[];return E(g,Promise.all(c),3);case 3:a.xf&&(a.xf.release(),a.xf=null);a.Gc&&(a.Gc.release(),a.Gc=null);a.m&&(a.m.release(),a.m=null);a.
|
|
561
|
+
q.destroy=function(){var a=this,b,c,d,e,f;return O(function(g){switch(g.g){case 1:if(a.l==qo)return g.return();no(a);b=a.detach();a.l=qo;return E(g,b,2);case 2:c=[];d=t(a.Jf);for(e=d.next();!e.done;e=d.next())f=e.value,f.u||c.push(f.destroy());a.Jf=[];return E(g,Promise.all(c),3);case 3:a.xf&&(a.xf.release(),a.xf=null);a.Gc&&(a.Gc.release(),a.Gc=null);a.m&&(a.m.release(),a.m=null);a.Ba&&(a.Ba.release(),a.Ba=null);a.Cc&&(a.Cc.release(),a.Cc=null);a.qa=null;a.g=null;a.u=null;a.jf=null;a.O=null;a.$=
|
|
561
562
|
null;if(!a.I){g.B(4);break}return E(g,a.I.destroy(),5);case 5:a.I=null;case 4:a.o&&(a.o.release(),a.o=null),gb.prototype.release.call(a),F(g)}})};
|
|
562
563
|
function ro(){window.Promise||Ya("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||$b("Trident/"))return!1;var a=mc();return a&&9>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:Vb()?!0:Wb("application/x-mpegurl")}function so(a,b){a.dispatchEvent(po("onstatechange",(new Map).set("state",b)))}
|
|
563
564
|
q.tc=function(a,b){b=void 0===b?!0:b;var c=this,d,e,f;return O(function(g){switch(g.g){case 1:if(c.l==qo)throw new U(2,7,7E3);d=c.h&&c.h==a;if(!c.h||c.h==a){g.B(2);break}return E(g,c.detach(),2);case 2:return E(g,to(c,"attach"),4);case 4:if(g.h)return g.return();ta(g,5,6);d||(so(c,"attach"),e=function(){var h=uo(c);h&&vo(c,h)},c.Gc.s(a,"error",e),c.h=a);if(!b||!Vb()||c.H){g.B(6);break}return E(g,wo(c),6);case 6:xa(g);c.S.release();ya(g,0);break;case 5:return f=wa(g),E(g,c.detach(),10);case 10:throw f;
|
|
564
565
|
}})};q.qh=function(a){this.mh=a};q.detach=function(a){a=void 0===a?!1:a;var b=this;return O(function(c){if(1==c.g){if(b.l==qo)throw new U(2,7,7E3);return E(c,b.Nc(!1,a),2)}if(3!=c.g)return E(c,to(b,"detach"),3);if(c.h)return c.return();try{b.h&&(b.Gc.qb(),b.h=null),so(b,"detach"),b.A&&!a&&b.A.release()}finally{b.S.release()}F(c)})};function to(a,b){var c;return O(function(d){return 1==d.g?(c=++a.yf,E(d,fo(a.S,b),2)):c!=a.yf?(a.S.release(),d.return(!0)):d.return(!1)})}
|
|
565
|
-
q.Nc=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d,e,f,g,h,k,l,m,n;return O(function(p){switch(p.g){case 1:return c.l!=qo&&(c.l=go),E(p,to(c,"unload"),2);case 2:if(p.h)return p.return();ua(p,3);c.
|
|
566
|
-
if(!c.K){p.B(6);break}return E(p,c.K.stop(),7);case 7:c.K=null,c.
|
|
566
|
+
q.Nc=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d,e,f,g,h,k,l,m,n;return O(function(p){switch(p.g){case 1:return c.l!=qo&&(c.l=go),E(p,to(c,"unload"),2);case 2:if(p.h)return p.return();ua(p,3);c.Na=!1;so(c,"unload");a&&!Vb()&&(a=!1);no(c);d=c.$d.map(function(r){return r()});c.$d=[];return E(p,Promise.all(d),5);case 5:c.dispatchEvent(po("unloading"));c.Ac&&(c.Ac.release(),c.Ac=null);c.h&&(c.m.qb(),c.Ba.qb());c.uf.stop();c.Za&&(c.Za.release(),c.Za=null);c.rf&&(c.rf.stop(),c.rf=null);
|
|
567
|
+
if(!c.K){p.B(6);break}return E(p,c.K.stop(),7);case 7:c.K=null,c.Ha=null;case 6:if(!c.o){p.B(8);break}return E(p,c.o.stop(),8);case 8:if(!c.j){p.B(10);break}return E(p,c.j.destroy(),11);case 11:c.j=null;case 10:c.J&&(c.J.release(),c.J=null);c.G&&(c.G.release(),c.G=null);if(!tc("webkit")||!c.F){p.B(12);break}return E(p,c.F.destroy(),13);case 13:c.F=null;case 12:if(!c.H){p.B(14);break}return E(p,c.H.destroy(),15);case 15:c.H=null;case 14:if(c.A&&!b)c.A.onAssetUnload();c.ma&&!b&&(c.ma.destroy(),c.ma=
|
|
567
568
|
null);b||c.Mf.stop();c.O&&sn(c.O);c.$&&(c.$.g=null);c.h&&fn(c.h);if(!c.h||!c.h.src){p.B(16);break}return E(p,new Promise(function(r){return(new Ub(r)).V(.1)}),17);case 17:c.h.removeAttribute("src"),c.h.load();case 16:if(!c.F){p.B(18);break}return E(p,c.F.destroy(),19);case 19:c.F=null;case 18:c.na&&c.Z!=c.na.Zc()&&(c.na.u||c.na.destroy(),c.na=null);c.Z=null;c.lh=null;c.N=null;if(c.i){e=t(c.i.variants);for(f=e.next();!f.done;f=e.next())for(g=f.value,h=t([g.audio,g.video]),k=h.next();!k.done;k=h.next())(l=
|
|
568
569
|
k.value)&&l.segmentIndex&&l.segmentIndex.release();m=t(c.i.textStreams);for(k=m.next();!k.done;k=m.next())n=k.value,n.segmentIndex&&n.segmentIndex.release()}c.g.streaming.clearDecodingCache&&(qf={},Sb.clear());c.i=null;c.u=new jl;c.Kf=null;c.ie=[];c.R=NaN;xo(c);case 3:xa(p);c.S.release();ya(p,4);break;case 4:if(a&&Vb()&&!c.H)return E(p,wo(c),0);p.B(0)}})};q.Gk=function(a){this.ha=a};
|
|
569
570
|
q.load=function(a,b,c){b=void 0===b?null:b;var d=this,e,f,g,h,k,l,m,n,p,r,u,v,w;return O(function(A){switch(A.g){case 1:if(d.l==qo)throw new U(2,7,7E3);e=null;f="";a instanceof Am?(e=a,f=e.Zc()||""):f=a||"";return E(A,fo(d.S,"load"),2);case 2:d.S.release();if(!d.h)throw new U(2,7,7002);if(!d.Z){A.B(3);break}d.Z=f;return E(A,d.Nc(!1),3);case 3:g=++d.yf;h=function(){return O(function(z){if(1==z.g)return d.yf==g?z.B(0):e?E(z,e.destroy(),3):z.B(3);throw new U(2,7,7E3);})};k=function(z,C){return O(function(y){switch(y.g){case 1:return ua(y,
|
|
570
|
-
2),E(y,fo(d.S,C),4);case 4:return E(y,h(),5);case 5:return E(y,z(),6);case 6:return E(y,h(),7);case 7:e&&d.g&&(e.g=d.g);case 2:xa(y),d.S.release(),ya(y,0)}})};ta(A,5,6);null==b&&e&&(b=e.getStartTime());d.ha=b;d.
|
|
571
|
+
2),E(y,fo(d.S,C),4);case 4:return E(y,h(),5);case 5:return E(y,z(),6);case 6:return E(y,h(),7);case 7:e&&d.g&&(e.g=d.g);case 2:xa(y),d.S.release(),ya(y,0)}})};ta(A,5,6);null==b&&e&&(b=e.getStartTime());d.ha=b;d.Na=!1;d.dispatchEvent(po("loading"));if(e){c=e.R;A.B(8);break}if(c){A.B(8);break}return E(A,k(function(){return O(function(z){if(1==z.g)return E(z,yo(d,f),2);c=z.h;F(z)})},"guessMimeType_"),8);case 8:l=!!e;if(e){Dm(e,d);d.u=e.getStats();A.B(11);break}return E(A,zo(d,f,b,c,!0),12);case 12:(e=
|
|
571
572
|
A.h)?(Dm(e,d),d.u=e.getStats(),e.start(),e.m.catch(function(){})):d.u=new jl;case 11:m=!e;n=e?e.jb:Date.now()/1E3;d.u=e?e.getStats():new jl;d.Z=f;d.lh=c||null;if(m)return E(A,k(function(){return O(function(z){return E(z,Ao(d,c),0)})},"initializeSrcEqualsDrmInner_"),20);if(d.H){A.B(15);break}return E(A,k(function(){return O(function(z){return E(z,wo(d),0)})},"initializeMediaSourceEngineInner_"),15);case 15:return E(A,k(function(){return O(function(z){return E(z,e.m,0)})},"waitForFinish"),17);case 17:d.g=
|
|
572
|
-
e.getConfiguration();d.gf=e.F;d.
|
|
573
|
+
e.getConfiguration();d.gf=e.F;d.Ha=e.G;d.K=Fm(e);d.Ac=Gm(e);d.jb=e.Ba;d.i=e.rg();if(p=e.o)d.xa=p;l&&d.h&&"AUDIO"===d.h.nodeName&&(Bo(d),d.configure("manifest.disableVideo",!0));d.F=Hm(e);return E(A,k(function(){return O(function(z){return E(z,d.F.tc(d.h),0)})},"drmEngine_.attach"),18);case 18:return!(r=e.A)||d.qa&&d.qa==r||(d.o=Em(e),d.qa=e.A,"function"!=typeof d.o.setMediaElement&&(xd("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),d.o.setMediaElement=
|
|
573
574
|
function(){}),"function"!=typeof d.o.setCmsdManager&&(xd("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),d.o.setCmsdManager=function(){}),"function"!=typeof d.o.trySuggestStreams&&(xd("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),d.o.trySuggestStreams=function(){})),u=Im(e),v=e.ha,E(A,k(function(){return O(function(z){return E(z,Co(d,n,v,u),0)})},"loadInner_"),19);case 19:Cm(e);A.B(14);break;case 20:return E(A,
|
|
574
575
|
k(function(){return O(function(z){return E(z,Do(d,n,c),0)})},"srcEqualsInner_"),14);case 14:d.dispatchEvent(po("loaded"));case 6:xa(A);if(!e){A.B(22);break}return E(A,e.destroy(),22);case 22:d.na=null;ya(A,0);break;case 5:w=wa(A);if(7E3==w.code){A.B(24);break}return E(A,d.Nc(!1),24);case 24:throw w;}})};
|
|
575
576
|
function Bo(a){for(var b=t(a.i.variants),c=b.next();!c.done;c=b.next())c=c.value,c.video&&(c.video.closeSegmentIndex(),c.video=null),c.bandwidth=c.audio&&c.audio.bandwidth?c.audio.bandwidth:0;a.i.variants=a.i.variants.filter(function(d){return d.audio})}q.Ck=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d;return O(function(e){return 1==e.g?E(e,Eo(c),2):3!=e.g?(d=e.h,E(e,c.Nc(a,b),3)):e.return(d)})};
|
|
576
577
|
q.Bh=function(a){a=void 0===a?!1:a;var b=this,c;return O(function(d){return 1==d.g?E(d,Eo(b),2):3!=d.g?(c=d.h,E(d,b.detach(a),3)):d.return(c)})};
|
|
577
|
-
function Eo(a){var b,c,d;return O(function(e){if(1==e.g){b=null;if(!(a.i&&a.K&&a.
|
|
578
|
+
function Eo(a){var b,c,d;return O(function(e){if(1==e.g){b=null;if(!(a.i&&a.K&&a.Ha&&a.Z))return e.B(2);c=a.h.currentTime;a.U()&&(c=null);d=Date.now()/1E3;return E(e,Fo(a,a.Z,c,a.lh,d,!0,!1,!1),3)}if(2!=e.g){var f=b=e.h,g=a.K,h=a.Ha;f.h=a.i;f.j=g;f.G=h;f=b;g=a.qa;f.i=a.o;f.A=g;b.o=a.xa;b.start();a.i=null;a.K=null;a.Ha=null;a.o=null;a.qa=null}return e.return(b)})}
|
|
578
579
|
q.preload=function(a,b,c){b=void 0===b?null:b;var d=this,e;return O(function(f){if(1==f.g)return E(f,zo(d,a,b,c),2);(e=f.h)?e.start():vo(d,new U(2,7,7005));return f.return(e)})};function zo(a,b,c,d,e){e=void 0===e?!1:e;var f,g,h,k;return O(function(l){if(1==l.g)return f=Date.now()/1E3,d?l.B(2):E(l,yo(a,b),3);2!=l.g&&(d=l.h);if(g=Go(a,d))return l.return(null);h=!1;k=!0;e&&(a.o&&a.qa==a.g.abrFactory&&(k=!1),a.h&&"AUDIO"===a.h.nodeName&&(h=!0));return l.return(Fo(a,b,c,d||null,f,!e,h,k))})}
|
|
579
580
|
function Fo(a,b,c,d,e,f,g,h){f=void 0===f?!0:f;g=void 0===g?!1:g;h=void 0===h?!0:h;var k,l,m,n,p,r,u,v,w,A,z,C,y,B,D;return O(function(K){if(1==K.g)return k=null,l=Xe(a.g),g&&(l.manifest.disableVideo=!0),m=function(){return k.O&&k.u?null:k},n=function(){return m()?m().getConfiguration():a.g},p=function(G,J){m()?k.configure(G,J):a.configure(G,J)},Infinity!=a.ba.width||Infinity!=a.ba.height?K.B(2):E(K,uc(),3);2!=K.g&&(r=K.h,a.ba.width=r.width,a.ba.height=r.height);u=new ti(l,a.ba,null);v={networkingEngine:a.I,
|
|
580
581
|
filter:function(G){var J,I;return O(function(H){if(1==H.g)return E(H,ui(u,G),2);if(4!=H.g){J=H.h;if(!J)return H.B(0);I=po("trackschanged");return E(H,Promise.resolve(),4)}k.dispatchEvent(I);F(H)})},makeTextStreamsForClosedCaptions:function(G){return Ho(a,G)},onTimelineRegionAdded:function(G){var J=k.H;a:{var I=t(J.g);for(var H=I.next();!H.done;H=I.next())if(H=H.value,H.schemeIdUri==G.schemeIdUri&&H.id==G.id&&H.startTime==G.startTime&&H.endTime==G.endTime){I=H;break a}I=null}null==I&&(J.g.add(G),G=
|
|
581
582
|
new S("regionadd",new Map([["region",G]])),J.dispatchEvent(G))},onEvent:function(G){return k.dispatchEvent(G)},onError:function(G){return k.onError(G)},isLowLatencyMode:function(){return n().streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return n().streaming.autoLowLatencyMode},enableLowLatencyMode:function(){p("streaming.lowLatencyMode",!0)},updateDuration:function(){a.j&&k.O&&a.j.updateDuration()},newDrmInfo:function(G){var J=k.l,I=J?J.g:null;I&&J.u&&wi(u,I.keySystem,G)},onManifestUpdated:function(){var G=
|
|
582
|
-
(new Map).set("isLive",a.U());k.dispatchEvent(po("manifestupdated",G));Bm(k,!1,function(){if(a.A)a.A.onManifestUpdated(a.U())})},getBandwidthEstimate:function(){return a.o.getBandwidthEstimate()}};w=new wl(function(){return a.
|
|
583
|
+
(new Map).set("isLive",a.U());k.dispatchEvent(po("manifestupdated",G));Bm(k,!1,function(){if(a.A)a.A.onManifestUpdated(a.U())})},getBandwidthEstimate:function(){return a.o.getBandwidthEstimate()}};w=new wl(function(){return a.Ta()});w.addEventListener("regionadd",function(G){var J=G.region;Io(a,"timelineregionadded",J,k);Bm(k,!1,function(){if(a.A)a.A.onDashTimedMetadata(J)})});A=null;l.streaming.observeQualityChanges&&(A=new xl(function(){return a.Mb()}),A.addEventListener("qualitychange",function(G){var J=
|
|
583
584
|
G.quality;G=G.position;J=(new Map).set("mediaQuality",{bandwidth:J.bandwidth,audioSamplingRate:J.audioSamplingRate,codecs:J.codecs,contentType:J.contentType,frameRate:J.frameRate,height:J.height,mimeType:J.mimeType,channelsCount:J.channelsCount,pixelAspectRatio:J.pixelAspectRatio,width:J.width}).set("position",G);a.dispatchEvent(po("mediaqualitychanged",J))}));z=!0;C={Zb:a.I,onError:function(G){return k.onError(G)},bf:function(G){Bm(k,!0,function(){a:{var J=G,I=po("keystatuschanged");a.dispatchEvent(I);
|
|
584
585
|
var H=Object.keys(J);1==H.length&&""==H[0]&&(H=["00"],J={"00":J[""]});I=1==H.length&&"00"==H[0];var N=!1;if(H.length){H=t(a.i.variants);for(var L=H.next();!L.done;L=H.next()){L=L.value;var M=[];L.audio&&M.push(L.audio);L.video&&M.push(L.video);M=t(M);for(var Q=M.next();!Q.done;Q=M.next()){var T=Q.value;Q=L.allowedByKeySystem;if(T.keyIds.size){L.allowedByKeySystem=!0;T=t(T.keyIds);for(var R=T.next();!R.done;R=T.next())if(R=R.value,(R=J[I?"00":R])||a.F.H)L.allowedByKeySystem=L.allowedByKeySystem&&!!R&&
|
|
585
586
|
!yi.includes(R)}Q!=L.allowedByKeySystem&&(N=!0)}}}if(N&&(Jo(a),!Ko(a)))break a;(J=a.j.j)&&!J.allowedByKeySystem&&Lo(a)}})},onExpirationUpdated:function(G,J){var I=po("expirationupdated");k.dispatchEvent(I);if((I=k.j)&&I.onExpirationUpdated)I.onExpirationUpdated(G,J)},onEvent:function(G){k.dispatchEvent(G);"drmsessionupdate"==G.type&&z&&(z=!1,G=Date.now()/1E3-k.qa,(a.u||k.getStats()).j=G,a.L&&Ej(a.L))}};y=jo(a,m);zg(a.I,y);B=function(){return a.Vc(C)};D={config:l,Qj:v,Zj:w,Yj:A,Vc:B,Pj:u,networkingEngine:y,
|
|
586
587
|
Ji:f,Ii:h};k=new Am(b,d,e,c,D);a.Jf.push(k);return K.return(k)})}function yo(a,b){var c,d;return O(function(e){if(1==e.g)return c=a.g.manifest.retryParameters,E(e,Um(b,a.I,c),2);d=e.h;"application/x-mpegurl"==d&&hc()&&(d="application/vnd.apple.mpegurl");return e.return(d)})}
|
|
587
588
|
function Go(a,b){if(!Vb())return!0;if(b){if(""==(a.h||Xb()).canPlayType(b))return!1;if(!(Vb()&&b in Bi))return!0;if(Le(b)){if(a.g.streaming.preferNativeHls)return!0;if(hc()&&(a.g.drm.servers["com.apple.fps"]||a.g.drm.servers["com.apple.fps.1_0"]))return a.g.streaming.useNativeHlsForFairPlay;if(hc())return a.g.streaming.useNativeHlsOnSafari}}return!1}
|
|
588
589
|
function wo(a){var b,c,d,e,f;return O(function(g){if(1==g.g)return so(a,"media-source"),b=a.g.textDisplayFactory,c=b(),c.configure?c.configure(a.g.textDisplayer):xd("Text displayer w/ configure",'Text displayer should have a "configure" method!'),a.Kf=b,d=Mo(a.h,c,{dj:function(){return a.keySystem()},cf:function(h,k,l){No(a,h,k,l)}},a.L),d.configure(a.g.mediaSource),e=a.g.manifest,f=e.segmentRelativeVttTiming,d.ha=f,E(g,d.N,2);a.H=d;F(g)})}
|
|
589
|
-
function Co(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,v,w,A,z,C,y,B,D,K,G,J;return O(function(I){switch(I.g){case 1:so(a,"load");e=a.h;a.J=new al({Me:function(){return e.playbackRate},xc:function(){return e.defaultPlaybackRate},ah:function(H){e.playbackRate=H},Th:function(H){e.currentTime+=H}});f=function(){return Oo(a)};g=function(){return Po(a)};a.m.s(e,"playing",f);a.m.s(e,"pause",f);a.m.s(e,"ended",f);a.m.s(e,"ratechange",g);oo(a,a.g);a.
|
|
590
|
+
function Co(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,v,w,A,z,C,y,B,D,K,G,J;return O(function(I){switch(I.g){case 1:so(a,"load");e=a.h;a.J=new al({Me:function(){return e.playbackRate},xc:function(){return e.defaultPlaybackRate},ah:function(H){e.playbackRate=H},Th:function(H){e.currentTime+=H}});f=function(){return Oo(a)};g=function(){return Po(a)};a.m.s(e,"playing",f);a.m.s(e,"pause",f);a.m.s(e,"ended",f);a.m.s(e,"ratechange",g);oo(a,a.g);a.Ea=a.g.preferredTextLanguage;a.ee=a.g.preferredTextRole;a.be=a.g.preferForcedSubs;
|
|
590
591
|
Qo(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd);a.o.init(function(H,N,L){a.i&&a.j&&H!=a.j.j&&Ro(a,H,!0,void 0===N?!1:N,void 0===L?0:L)});a.o.setMediaElement(e);a.o.setCmsdManager(a.$);a.j=So(a);a.j.configure(a.g.streaming);a.l=To;e.textTracks&&a.m.s(e.textTracks,"addtrack",function(H){if(H.track)switch(H=H.track,H.kind){case "chapters":Uo(a,H)}});a.dispatchEvent(po("streaming"));h=c;(k=a.j.j)||h||(h=Vo(a,!0));l=[];m=k||h;n=t([m.video,m.audio]);for(p=n.next();!p.done;p=n.next())(r=
|
|
591
592
|
p.value)&&!r.segmentIndex&&l.push(r.createSegmentIndex());if(!(0<l.length)){I.B(2);break}return E(I,Promise.all(l),2);case 2:if(a.K&&a.K.onInitialVariantChosen)a.K.onInitialVariantChosen(m);Qo(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd);Il(a.j,a.g.playRangeStart,a.g.playRangeEnd);u=function(H){a.G=Wo(a,H);a.Za=Xo(a,H);Yo(a,e,Math.max(a.i.minBufferTime,a.g.streaming.rebufferingGoal))};a.g.streaming.startAtSegmentBoundary||u(a.ha);if(k){I.B(4);break}if(!a.g.streaming.startAtSegmentBoundary){I.B(5);
|
|
592
|
-
break}v=a.i.presentationTimeline;w=a.ha||a.h.currentTime;A=v.yc();z=v.Ob();w<A?w=A:w>z&&(w=z);return E(I,Zo(h,w),6);case 6:C=I.h,u(C);case 5:Ro(a,h,!0,!1,0);case 4:return a.G.Pf(),y=a.jc().find(function(H){return H.active}),y||((B=Gf(a.i.textStreams,a.
|
|
593
|
+
break}v=a.i.presentationTimeline;w=a.ha||a.h.currentTime;A=v.yc();z=v.Ob();w<A?w=A:w>z&&(w=z);return E(I,Zo(h,w),6);case 6:C=I.h,u(C);case 5:Ro(a,h,!0,!1,0);case 4:return a.G.Pf(),y=a.jc().find(function(H){return H.active}),y||((B=Gf(a.i.textStreams,a.Ea,a.ee,a.be)[0]||null)&&il(a.u.h,B,!0),h&&(B?($o(a,h.audio,B)&&(a.ea=!0),a.ea&&a.H.H.setTextVisibility(!0),ap(a)):a.ea=!1),B&&(a.g.streaming.alwaysStreamText||a.Fc())&&Rl(a.j,B)),E(I,a.j.start(d),7);case 7:a.g.abr.enabled&&(a.o.enable(),bp(a));Jo(a);
|
|
593
594
|
Ko(a);a.i.variants.some(function(H){return H.primary});if((D=a.U())&&(a.g.streaming.liveSync||a.i.serviceDescription||a.g.streaming.liveSyncPanicMode)||a.g.streaming.vodDynamicPlaybackRate)K=function(){return cp(a)},a.m.s(e,"timeupdate",K);D||(G=function(){return dp(a)},a.m.s(e,"timeupdate",G),dp(a),a.i.nextUrl&&(0<a.g.streaming.preloadNextUrlWindow&&(J=function(){var H,N;return O(function(L){if(1==L.g){H=a.h.duration-a.h.currentTime;if(isNaN(H)||!(H<=a.g.streaming.preloadNextUrlWindow))return L.B(0);
|
|
594
|
-
a.m.
|
|
595
|
+
a.m.Xa(e,"timeupdate",J);N=a;return E(L,a.preload(a.i.nextUrl),4)}N.na=L.h;F(L)})},a.m.s(e,"timeupdate",J)),a.m.s(e,"ended",function(){a.load(a.na||a.i.nextUrl)})));if(a.A)a.A.onManifestUpdated(D);a.Na=!0;a.m.oa(e,"loadedmetadata",function(){a.u.m=Date.now()/1E3-b});F(I)}})}
|
|
595
596
|
function Ao(a,b){var c,d,e,f,g;return O(function(h){return 1==h.g?(c=Uc,d=Date.now()/1E3,e=!0,a.F=a.Vc({Zb:a.I,onError:function(k){vo(a,k)},bf:function(){},onExpirationUpdated:function(){var k=po("expirationupdated");a.dispatchEvent(k)},onEvent:function(k){a.dispatchEvent(k);"drmsessionupdate"==k.type&&e&&(e=!1,a.u.j=Date.now()/1E3-d)}}),a.F.configure(a.g.drm),f={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},
|
|
596
597
|
g={id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:b?Je(b):"",codecs:b?Ke(b):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:c.ra,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set},g.fullMimeTypes.add(te(g.mimeType,
|
|
597
598
|
g.codecs)),b.startsWith("audio/")?(g.type=c.aa,f.audio=g):f.video=g,a.F.$=!0,E(h,Qh(a.F,[f],[]),2)):E(h,a.F.tc(a.h),0)})}
|
|
@@ -599,22 +600,22 @@ function Do(a,b,c){var d,e,f,g,h,k,l,m,n,p,r;return O(function(u){if(1==u.g)retu
|
|
|
599
600
|
"ratechange",h),"none"!=d.preload&&a.m.oa(d,"loadedmetadata",function(){a.u.m=Date.now()/1E3-b}),d.audioTracks&&(a.m.s(d.audioTracks,"addtrack",function(){return Jo(a)}),a.m.s(d.audioTracks,"removetrack",function(){return Jo(a)}),a.m.s(d.audioTracks,"change",function(){return Jo(a)})),d.textTracks&&(a.m.s(d.textTracks,"addtrack",function(v){if(v.track)switch(v=v.track,v.kind){case "metadata":ep(a,v);break;case "chapters":Uo(a,v);break;default:Jo(a)}}),a.m.s(d.textTracks,"removetrack",function(){return Jo(a)}),
|
|
600
601
|
a.m.s(d.textTracks,"change",function(){return Jo(a)})),d.src=tn(a.O,a.Z,c),(ac()||dc())&&d.load(),"none"!=d.preload&&!d.autoplay&&Le(c)&&mc()&&d.load(),a.l=fp,a.dispatchEvent(po("streaming")),k=new lg,Ik(d,HTMLMediaElement.HAVE_METADATA,a.m,function(){a.G.Pf();k.resolve()}),Ik(d,HTMLMediaElement.HAVE_CURRENT_DATA,a.m,function(){var v;return O(function(w){if(1==w.g)return gp(a),v=hp(a),v.find(function(A){return"disabled"!=A.mode})?(0<v.length&&(a.ea=!0),w.B(2)):E(w,new Promise(function(A){a.m.oa(d.textTracks,
|
|
601
602
|
"change",A);(new Ub(A)).V(1)}),2);if(e)return w.return();ip(a);F(w)})}),d.error?k.reject(uo(a)):"none"==d.preload&&(Ya('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.'),k.resolve()),a.m.oa(d,"error",function(){k.reject(uo(a))}),l=new Promise(function(v,w){(new Ub(w)).V(a.g.streaming.loadTimeout)}),E(u,Promise.race([k,
|
|
602
|
-
l]),2);if((m=a.U())&&(a.g.streaming.liveSync||a.g.streaming.liveSyncPanicMode)||a.g.streaming.vodDynamicPlaybackRate)n=function(){return cp(a)},a.m.s(d,"timeupdate",n);m||(p=function(){return dp(a)},a.m.s(d,"timeupdate",p),dp(a));a.A&&(a.A.onManifestUpdated(m),m&&(r=a.
|
|
603
|
+
l]),2);if((m=a.U())&&(a.g.streaming.liveSync||a.g.streaming.liveSyncPanicMode)||a.g.streaming.vodDynamicPlaybackRate)n=function(){return cp(a)},a.m.s(d,"timeupdate",n);m||(p=function(){return dp(a)},a.m.s(d,"timeupdate",p),dp(a));a.A&&(a.A.onManifestUpdated(m),m&&(r=a.Ta().end,a.m.s(d,"progress",function(){var v=a.Ta().end;r!=v&&(a.A.onManifestUpdated(a.U()),r=v)})));a.Na=!0;F(u)})}function gp(a){var b=a.g.preferredAudioLanguage;""!=b&&a.lf(b,a.g.preferredVariantRole)}
|
|
603
604
|
function ip(a){var b=a.g.preferredTextLanguage;""!=b&&a.Ug(b,a.g.preferredTextRole,a.g.preferForcedSubs)}
|
|
604
|
-
function ep(a,b){if("metadata"==b.kind){b.mode="hidden";a.m.s(b,"cuechange",function(){if(b.activeCues)for(var d=t(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,jp(a,e.startTime,e.endTime,e.type,e.value),a.A)a.A.onCueMetadataChange(e.value)});var c=(new Ub(function(){var d=kp(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).
|
|
605
|
+
function ep(a,b){if("metadata"==b.kind){b.mode="hidden";a.m.s(b,"cuechange",function(){if(b.activeCues)for(var d=t(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,jp(a,e.startTime,e.endTime,e.type,e.value),a.A)a.A.onCueMetadataChange(e.value)});var c=(new Ub(function(){var d=kp(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).Pa().V(.5);a.$d.push(function(){c.stop()})}}
|
|
605
606
|
function No(a,b,c,d){b=t(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=t(e.frames),k=h.next();!k.done;k=h.next())jp(a,f,g,"org.id3",k.value);if(a.A)a.A.onHlsTimedMetadata(e,f)}}function jp(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(po("metadata",b))}
|
|
606
|
-
function Uo(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new Ub(function(){b.mode="hidden"})).
|
|
607
|
+
function Uo(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new Ub(function(){b.mode="hidden"})).Pa().V(.5);a.$d.push(function(){c.stop()})}}q.dk=function(){for(var a=this.S;a.g;)a.release()};q.Vc=function(a){return new Jh(a)};
|
|
607
608
|
function jo(a,b){function c(e){b()?b().dispatchEvent(e):a.dispatchEvent(e)}function d(e){b()?Bm(b(),!0,e):e()}b||(b=function(){return null});return new vg(function(e,f,g,h){var k=b()?b().i:a.o;k&&k.segmentDownloaded(e,f,g,h)},function(e,f,g){f=(new Map).set("headers",e).set("request",f).set("requestType",g);c(po("downloadheadersreceived",f));d(function(){if(a.$){var h=a.$;if(h.h.enabled){var k=e["cmsd-static"];if(k)try{var l=new Map,m=k.split(",");for(k=0;k<m.length;k++){var n=m[k].split("=");l.set(n[0],
|
|
608
609
|
co(n[1]))}}catch(w){}if(l=e["cmsd-dynamic"]){try{var p=new Map,r=l.split(";");for(l=1;l<r.length;l++){var u=r[l].split("=");p.set(u[0],co(u[1]))}var v=p}catch(w){v=null}v&&(h.g=v)}}}})},function(e,f,g,h){e=(new Map).set("request",e).set("error",f).set("httpResponseCode",g).set("aborted",h);c(po("downloadfailed",e))},function(e,f,g){d(function(){var h=a.O,k=g;k=void 0===k?{}:k;if(h.g.enabled)if("HEAD"===f.method)An(h,f);else switch(e){case 0:try{if(h.g.enabled){if(k.type){a:{switch(k.type){case 4:var l=
|
|
609
|
-
"d";break a;case 3:case 2:l="h";break a;case 5:l="s";break a}l=void 0}h.m=l}An(h,f,{ot:xn,su:!h.i})}}catch(M){Za("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",M)}break;case Gg:try{if(h.g.enabled){var m=k.segment;l=0;m&&(l=m.endTime-m.startTime);var n={d:1E3*l,st:h.h.U()?"l":"v"};n.ot=En(k);var p=n.ot===Bn||n.ot===vn||n.ot===wn||n.ot===Gn,r=k.stream;if(r){var u=h.h.
|
|
610
|
-
if(r.segmentIndex&&m){var w=r.segmentIndex.Wb(m.endTime,!0,0>u);if(w){var A=w.next().value;if(A&&A!=m){if(!Qd(m.P(),A.P())){var z=A.P()[0],C=f.uris[0],y=new URL(z),B=new URL(C);if(y.origin!==B.origin)var D=z;else{for(var K=y.pathname.split("/").slice(1),G=B.pathname.split("/").slice(1,-1);K[0]===G[0];)K.shift(),G.shift();for(;G.length;)G.shift(),K.unshift("..");D=K.join("/")}n.nor=D}if((A.
|
|
610
|
+
"d";break a;case 3:case 2:l="h";break a;case 5:l="s";break a}l=void 0}h.m=l}An(h,f,{ot:xn,su:!h.i})}}catch(M){Za("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",M)}break;case Gg:try{if(h.g.enabled){var m=k.segment;l=0;m&&(l=m.endTime-m.startTime);var n={d:1E3*l,st:h.h.U()?"l":"v"};n.ot=En(k);var p=n.ot===Bn||n.ot===vn||n.ot===wn||n.ot===Gn,r=k.stream;if(r){var u=h.h.Ra();if(p&&(n.bl=In(h,r.type),n.ot!==Gn)){var v=Jn(h,r.type);n.dl=u?v/Math.abs(u):v}r.bandwidth&&(n.br=r.bandwidth/1E3);
|
|
611
|
+
if(r.segmentIndex&&m){var w=r.segmentIndex.Wb(m.endTime,!0,0>u);if(w){var A=w.next().value;if(A&&A!=m){if(!Qd(m.P(),A.P())){var z=A.P()[0],C=f.uris[0],y=new URL(z),B=new URL(C);if(y.origin!==B.origin)var D=z;else{for(var K=y.pathname.split("/").slice(1),G=B.pathname.split("/").slice(1,-1);K[0]===G[0];)K.shift(),G.shift();for(;G.length;)G.shift(),K.unshift("..");D=K.join("/")}n.nor=D}if((A.Wa||A.Da)&&(m.Wa!=A.Wa||m.Da!=A.Da)){var J=A.Wa+"-";A.Da&&(J+=A.Da);n.nrr=J}}}var I=h.h.Ra()||1,H=Jn(h,r.type)||
|
|
611
612
|
500,N=r.bandwidth;var L=N?N*(m.endTime-m.startTime)/1E3/(H/I/1E3)*h.g.rtpSafetyFactor:NaN;isNaN(L)||(n.rtp=L)}}p&&n.ot!==Gn&&(n.tb=Kn(h,n.ot)/1E3);An(h,f,n)}}catch(M){Za("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",M)}break;case 2:case 5:case 6:An(h,f,{ot:"k"});break;case 4:An(h,f,{ot:"o"})}})},function(e,f,g,h){(e=b()?b().j:a.K)&&e.banLocation&&e.banLocation(h)},function(e,f){f.data&&(e=f.data.byteLength,f=b()?b().getStats():a.u)&&(f.Be=isNaN(f.Be)?e:f.Be+e)})}
|
|
612
613
|
function Wo(a,b){return new Sk(a.h,a.i,a.g.streaming,b,function(){a.Za&&dl(a.Za,!0);a.j&&a.j.ke();a.N&&lp(a)},function(c){return a.dispatchEvent(c)})}
|
|
613
614
|
function Xo(a,b){b=new Pm(a.Ac,a.U()||0<b);b.addEventListener("enter",function(d){Io(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){Io(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(Io(a,"timelineregionenter",e),Io(a,"timelineregionexit",e))});var c=new cl(a.h);c.g.add(b);a.jb&&c.g.add(a.jb);return c}
|
|
614
|
-
function Yo(a,b,c){a.N=new eg;a.N.g=gg;hg(a.N,c,Math.min(.5,c/2));xo(a);a.rf=(new Ub(function(){lp(a)})).
|
|
615
|
+
function Yo(a,b,c){a.N=new eg;a.N.g=gg;hg(a.N,c,Math.min(.5,c/2));xo(a);a.rf=(new Ub(function(){lp(a)})).za(.25);a.m.s(b,"waiting",function(){return lp(a)});a.m.s(b,"stalled",function(){return lp(a)});a.m.s(b,"canplaythrough",function(){return lp(a)});a.m.s(b,"progress",function(){return lp(a)})}
|
|
615
616
|
function lp(a){switch(a.l){case fp:if(a.h.ended)var b=!0;else{var c=Ni(a.h.buffered);b=null!=c&&c>=a.h.duration-1}break;case To:a:if(a.h.ended||Vj(a.H))b=!0;else{if(a.i.presentationTimeline.U()){c=a.i.presentationTimeline.ic();var d=Ni(a.h.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Pi(a.h.buffered,a.h.currentTime);c=a.N;var e=b,f=c.i.get(c.g);b=c.g;d=e||d>=f?fg:gg;c.g=d;(b=b!=d)&&d===fg&&(c.h=Date.now());b&&xo(a)}function Mo(a,b,c,d){return new Mj(a,b,c,d)}
|
|
616
|
-
function io(a){return new rn({getBandwidthEstimate:function(){return a.o?a.o.getBandwidthEstimate():NaN},Mb:function(){return a.Mb()},getCurrentTime:function(){return a.h?a.h.currentTime:0},
|
|
617
|
-
function So(a){return new Cl(a.i,{Le:function(){return a.G?a.G.Ae():0},getBandwidthEstimate:function(){return a.o.getBandwidthEstimate()},
|
|
617
|
+
function io(a){return new rn({getBandwidthEstimate:function(){return a.o?a.o.getBandwidthEstimate():NaN},Mb:function(){return a.Mb()},getCurrentTime:function(){return a.h?a.h.currentTime:0},Ra:function(){return a.Ra()},hc:function(){return a.hc()},Db:function(){return a.Db()},U:function(){return a.U()}},a.g.cmcd)}
|
|
618
|
+
function So(a){return new Cl(a.i,{Le:function(){return a.G?a.G.Ae():0},getBandwidthEstimate:function(){return a.o.getBandwidthEstimate()},Ra:function(){return a.Ra()},ka:a.H,Zb:a.I,onError:function(b){return vo(a,b)},onEvent:function(b){return a.dispatchEvent(b)},Vj:function(){a.K&&a.K.update&&a.K.update()},Mg:function(b,c){var d=b.startTime,e=b.endTime,f=c.type,g=c.codecs.includes(",");if(a.G){a.G.Uh();var h=Wj(a.H,f);!a.U()&&a.h.paused&&null!=h&&0<h&&a.G.Ae()<h&&a.G.Qf(h)}lp(a);d=(new Map).set("start",
|
|
618
619
|
d).set("end",e).set("contentType",f).set("isMuxed",g);a.dispatchEvent(po("segmentappended",d));a.o&&c.fastSwitching&&b.fe&&b.Te&&a.o.trySuggestStreams()},Uj:function(b,c){(c=c.Ig)&&a.jb&&zl(a.jb,c,b)},sh:function(b,c){var d=a.F;if(d.h.parseInbandPsshEnabled&&!d.H&&["audio","video"].includes(b)){c=new $g(Gb(c));var e=0,f=t(c.data);for(b=f.next();!b.done;b=f.next())e+=b.value.length;if(0==e)d=Promise.resolve();else{e=new Uint8Array(e);f=0;c=t(c.data);for(b=c.next();!b.done;b=c.next())b=b.value,e.set(b,
|
|
619
620
|
f),f+=b.length;Zh(d,"cenc",e);d=d.l}}else d=Promise.resolve();return d},cf:function(b,c,d){No(a,b,c,d)},He:function(b,c){return a.He(b,c)}})}
|
|
620
621
|
q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=mm(a,b));a.streaming&&"forceTransmuxTS"in a.streaming&&(xd("streaming.forceTransmuxTS configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmuxTS,delete a.streaming.forceTransmuxTS);a.streaming&&"forceTransmux"in a.streaming&&(xd("streaming.forceTransmux configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmux,delete a.streaming.forceTransmux);
|
|
@@ -625,28 +626,28 @@ a.streaming.retryParameters.baseDelay&&(a.streaming.retryParameters.baseDelay=10
|
|
|
625
626
|
function mp(a){a.gf=new ti(a.g,a.ba,a.F);if(a.K){var b=Xe(a.g.manifest);a.h&&"AUDIO"===a.h.nodeName&&(b.disableVideo=!0);a.K.configure(b)}a.F&&a.F.configure(a.g.drm);if(a.j){a.j.configure(a.g.streaming);try{a.l!=qo&&vi(a.gf,a.i)&&Jo(a)}catch(f){vo(a,f)}a.o&&Ko(a);b=a.j.j;!b||b.allowedByApplication&&b.allowedByKeySystem||Lo(a)}a.I&&(a.I.Zg(a.g.streaming.forceHTTP),a.I.$g(a.g.streaming.forceHTTPS));if(a.H)if(a.H.configure(a.g.mediaSource),a.H.ha=a.g.manifest.segmentRelativeVttTiming,b=a.g.textDisplayFactory,
|
|
626
627
|
a.Kf!=b){var c=b();c.configure?c.configure(a.g.textDisplayer):xd("Text displayer w/ configure",'Text displayer should have a "configure" method!');var d=a.H,e=d.H;d.H=c;e&&(c.setTextVisibility(e.isTextVisible()),e.destroy());d.g&&(d.g.j=c);a.Kf=b;a.j&&(b=a.j,(c=b.i.get(Sc))&&Pl(b,c.stream,!0,0,!0))}else b=a.H.H,b.configure&&b.configure(a.g.textDisplayer);a.o&&(a.o.configure(a.g.abr),a.g.abr.enabled?a.o.enable():a.o.disable(),bp(a));a.N&&(b=a.g.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),
|
|
627
628
|
hg(a.N,b,Math.min(.5,b/2)));a.i&&Qo(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd);a.A&&a.A.configure(a.g.ads);a.O&&a.O.configure(a.g.cmcd);a.$&&a.$.configure(a.g.cmsd)}q.getConfiguration=function(){var a=ho(this);zm(a,this.g,ho(this));return a};q.kj=function(){var a=ho(this);zm(a,this.g,ho(this));return om(this.g,ho(this))};
|
|
628
|
-
q.Fh=function(){if(this.h){var a=this.h.buffered.length;a=a?this.h.buffered.end(a-1):0;var b=this.getConfiguration().streaming.bufferingGoal;b=Math.min(this.h.currentTime+b,this.
|
|
629
|
+
q.Fh=function(){if(this.h){var a=this.h.buffered.length;a=a?this.h.buffered.end(a-1):0;var b=this.getConfiguration().streaming.bufferingGoal;b=Math.min(this.h.currentTime+b,this.Ta().end);if(a>=b)return 1;if(!(a<=this.h.currentTime)&&a<b)return(a-this.h.currentTime)/(b-this.h.currentTime)}return 0};q.hk=function(){for(var a in this.g)delete this.g[a];zm(this.g,ho(this),ho(this));mp(this)};q.Qd=function(){return this.l};q.sg=function(){return this.i?this.i.type:null};q.jj=function(){return this.h};
|
|
629
630
|
q.hc=function(){return this.I};q.Zc=function(){return this.Z};q.Ie=function(){return this.A?this.A:null};q.U=function(){return this.i?this.i.presentationTimeline.U():this.h&&this.h.src?Infinity==this.h.duration:!1};q.Ec=function(){return this.i?this.i.presentationTimeline.Ec():!1};q.dd=function(){if(this.i){var a=this.i.variants;return a.length?!a[0].video:!1}return this.h&&this.h.src?this.h.videoTracks?0==this.h.videoTracks.length:0==this.h.videoHeight:!1};
|
|
630
|
-
q.
|
|
631
|
-
q.pg=function(){return this.F?this.F.pg():[]};q.Ke=function(){return this.F?this.F.Ke():{}};q.Wd=function(){return this.N?this.N.g==gg:!1};q.
|
|
632
|
-
q.Mc=function(a){var b=this;0==a?Ya("A trick play rate of 0 is unsupported!"):(this.
|
|
633
|
-
q.Uc=function(){var a=this.J.xc();this.l==fp&&this.J.set(a);this.l==To&&(this.J.set(a),this.o.playbackRateChanged(a),Ol(this.j,!1));this.
|
|
631
|
+
q.Ta=function(){if(this.i){if(!this.Na&&"HLS"==this.i.type)return{start:0,end:0};var a=this.i.presentationTimeline;return{start:a.yc(),end:a.Ob()}}return this.h&&this.h.src&&(a=this.h.seekable,a.length)?{start:a.start(0),end:a.end(a.length-1)}:{start:0,end:0}};q.Aj=function(){this.U()&&(this.h.currentTime=this.Ta().end)};q.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};q.drmInfo=function(){return this.F?this.F.g:null};q.Pd=function(){return this.F?this.F.Pd():Infinity};
|
|
632
|
+
q.pg=function(){return this.F?this.F.pg():[]};q.Ke=function(){return this.F?this.F.Ke():{}};q.Wd=function(){return this.N?this.N.g==gg:!1};q.Ra=function(){return this.h?this.J?this.J.i:1:0};
|
|
633
|
+
q.Mc=function(a){var b=this;0==a?Ya("A trick play rate of 0 is unsupported!"):(this.Ba.qb(),this.h.paused&&this.h.play(),this.J.set(a),this.l==To&&(this.o.playbackRateChanged(a),Ol(this.j,1<Math.abs(a))),this.U()&&this.Ba.s(this.h,"timeupdate",function(){var c=b.h.currentTime,d=b.Ta(),e=b.g.streaming.safeSeekOffset;0<a?Math.floor(c)>=Math.floor(d.end)&&b.Uc():Math.floor(c)<=Math.floor(d.start+e)&&b.Uc()}))};
|
|
634
|
+
q.Uc=function(){var a=this.J.xc();this.l==fp&&this.J.set(a);this.l==To&&(this.J.set(a),this.o.playbackRateChanged(a),Ol(this.j,!1));this.Ba.qb()};
|
|
634
635
|
q.Db=function(){if(this.i){for(var a=this.j?this.j.j:null,b=[],c=0,d=t(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,Ef(e)){var f=wf(e);f.active=e==a;f.active||1==c||null==a||e.video!=a.video||e.audio!=a.audio||(f.active=!0);f.active&&c++;b.push(f)}return b}return this.h&&this.h.audioTracks?Array.from(this.h.audioTracks).map(function(g){return Df(g)}):[]};
|
|
635
636
|
q.jc=function(){if(this.i){for(var a=this.j?this.j.u:null,b=[],c=t(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=xf(d);e.active=d==a;b.push(e)}return b}return this.h&&this.h.src&&this.h.textTracks?hp(this).map(function(f){return Bf(f)}):[]};q.Je=function(){var a=this.ie;this.i&&(a=this.i.imageStreams);return a.map(function(b){return yf(b)})};
|
|
636
637
|
q.Qi=function(a){var b=this,c,d,e,f;return O(function(g){if(1==g.g){if(b.l!=To&&b.l!=fp)return g.return(null);c=b.ie;b.i&&(c=b.i.imageStreams);return(d=c.find(function(h){return h.id==a}))?d.segmentIndex?g.B(2):E(g,d.createSegmentIndex(),2):g.return(null)}if(4!=g.g)return e=[],d.segmentIndex.Xc(function(h){var k=np(h.tilesLayout||d.tilesLayout);if(k){k=k.rows*k.uc;for(var l=h.i-h.startTime,m=0;m<k;m++)e.push(b.vg(a,h.startTime+l*m/k))}}),E(g,Promise.all(e),4);f=g.h;return g.return(f.filter(function(h){return h}))})};
|
|
637
638
|
function np(a){return a?(a=/(\d+)x(\d+)/.exec(a))?{uc:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}
|
|
638
639
|
q.vg=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,r,u,v,w,A,z,C,y;return O(function(B){if(1==B.g){if(c.l!=To&&c.l!=fp)return B.return(null);d=c.ie;c.i&&(d=c.i.imageStreams);return(e=d.find(function(D){return D.id==a}))?e.segmentIndex?B.B(2):E(B,e.createSegmentIndex(),2):B.return(null)}f=e.segmentIndex.find(b);if(null==f)return B.return(null);g=e.segmentIndex.get(f);h=np(g.tilesLayout||e.tilesLayout);if(!h)return B.return(null);k=e.width||0;l=e.height||0;m=k/h.uc;n=l/h.rows;p=h.uc*h.rows;r=g.i-g.startTime;
|
|
639
640
|
u=g.A||r/p;v=g.startTime;A=w=0;1<p&&(z=Math.floor((b-g.startTime)/u),v=g.startTime+z*u,w=z%h.uc*m,A=Math.floor(z/h.uc)*n);C=!1;if(y=g.u)C=!0,n=y.height,w=y.positionX,A=y.positionY,m=y.width;return B.return({segment:g,imageHeight:l,imageWidth:k,height:n,positionX:w,positionY:A,startTime:v,duration:u,uris:g.P(),width:m,sprite:C})})};
|
|
640
|
-
q.Vg=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.u&&(il(this.u.h,b,!1),Rl(this.j,b),op(this),this.
|
|
641
|
-
q.mf=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?0:c;if(this.i&&this.j){var d=this.i.variants.find(function(f){return f.id==a.id});if(d&&Ef(d)){var e=this.j.j;this.g.abr.enabled&&(e.video!=d.video||e.audio&&d.audio&&e.audio.language==d.audio.language&&e.audio.channelsCount==d.audio.channelsCount)&&Ya("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");Ro(this,d,!1,b,c);this.
|
|
641
|
+
q.Vg=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.u&&(il(this.u.h,b,!1),Rl(this.j,b),op(this),this.Ea=b.language)}else if(this.h&&this.h.src&&this.h.textTracks){b=hp(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,zf(c)==a.id?c.mode=this.ea?"showing":"hidden":c.mode="disabled";op(this)}};
|
|
642
|
+
q.mf=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?0:c;if(this.i&&this.j){var d=this.i.variants.find(function(f){return f.id==a.id});if(d&&Ef(d)){var e=this.j.j;this.g.abr.enabled&&(e.video!=d.video||e.audio&&d.audio&&e.audio.language==d.audio.language&&e.audio.channelsCount==d.audio.channelsCount)&&Ya("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");Ro(this,d,!1,b,c);this.xa=new Vf(d,
|
|
642
643
|
this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups);Ko(this)}}else if(this.h&&this.h.audioTracks)for(b=Array.from(this.h.audioTracks),b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,zf(c)==a.id){pp(this,c);break}};q.Si=function(){return qp(this.Db())};q.rj=function(){return qp(this.jc())};q.Ri=function(){return Array.from(rp(this.Db()))};q.qj=function(){return Array.from(rp(this.jc()))};
|
|
643
|
-
q.lf=function(a,b,c,d){c=void 0===c?0:c;d=void 0===d?0:d;if(this.i&&this.G){this.
|
|
644
|
-
b))c=f;c!=b&&(c?(a=wf(c),this.mf(a,!0,d)):Lo(this))}else this.h&&this.h.audioTracks&&(d=Gf(this.Db(),a,b||"",!1)[0])&&this.mf(d)};q.Ug=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.G){if(this.
|
|
645
|
-
q.qk=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?0:c;if(this.i&&this.G){for(var d=null,e=t(this.i.variants),f=e.next();!f.done;f=e.next())if(f=f.value,f.audio.label==a){d=f;break}null!=d&&(this.
|
|
644
|
+
q.lf=function(a,b,c,d){c=void 0===c?0:c;d=void 0===d?0:d;if(this.i&&this.G){this.xa=new Wf(a,b||"",c,"",!1,"","","",this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups);a=function(g,h){return g.video||h.video?g.video&&h.video?Math.abs((g.video.height||0)-(h.video.height||0))+Math.abs((g.video.width||0)-(h.video.width||0)):Infinity:0};b=this.j.j;var e=this.xa.create(this.i.variants);c=null;e=t(e.values());for(var f=e.next();!f.done;f=e.next())if(f=f.value,!c||a(c,b)>a(f,
|
|
645
|
+
b))c=f;c!=b&&(c?(a=wf(c),this.mf(a,!0,d)):Lo(this))}else this.h&&this.h.audioTracks&&(d=Gf(this.Db(),a,b||"",!1)[0])&&this.mf(d)};q.Ug=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.G){if(this.Ea=a,this.ee=b||"",this.be=c,(a=Gf(this.i.textStreams,this.Ea,this.ee,this.be)[0]||null)&&a!=this.j.u&&(il(this.u.h,a,!1),this.g.streaming.alwaysStreamText||this.Fc()))Rl(this.j,a),op(this)}else(a=Gf(this.jc(),a,b||"",c)[0])&&this.Vg(a)};
|
|
646
|
+
q.qk=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?0:c;if(this.i&&this.G){for(var d=null,e=t(this.i.variants),f=e.next();!f.done;f=e.next())if(f=f.value,f.audio.label==a){d=f;break}null!=d&&(this.xa=new Wf(d.language,"",0,"",!1,"",a,"",this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups),Lo(this,b,c))}else if(this.h&&this.h.audioTracks){c=Array.from(this.h.audioTracks);b=null;c=t(c);for(d=c.next();!d.done;d=c.next())d=d.value,d.label==a&&(b=d);b&&pp(this,b)}};
|
|
646
647
|
q.Fc=function(){var a=this.ea;return this.H&&this.l==To?this.H.H.isTextVisible():this.h&&this.h.src&&this.h.textTracks?hp(this).some(function(b){return"showing"==b.mode}):a};q.Gh=function(){return this.h&&this.h.src&&this.h.textTracks?sp(this).map(function(a){return Bf(a)}):[]};
|
|
647
648
|
q.Ui=function(a){if(!this.h||!this.h.src||!this.h.textTracks)return[];var b=Xc(a),c=sp(this).filter(function(h){return Xc(h.language)==b});if(!c||!c.length)return[];a=[];var d=new Set;c=t(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.cues){e=t(e.cues);for(var f=e.next();!f.done;f=e.next()){var g=f.value;(f=g.id)&&""!=f||(f=g.startTime+"-"+g.endTime+"-"+g.text);g={id:f,title:g.text,startTime:g.startTime,endTime:g.endTime};d.has(f)||(a.push(g),d.add(f))}}return a};
|
|
648
649
|
function hp(a){return Array.from(a.h.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function kp(a){return Array.from(a.h.textTracks).filter(function(b){return"metadata"==b.kind})}function sp(a){return Array.from(a.h.textTracks).filter(function(b){return"chapters"==b.kind})}
|
|
649
|
-
q.pf=function(a){a=!!a;if(this.ea!=a){this.ea=a;if(this.l==To)this.H.H.setTextVisibility(a),this.g.streaming.alwaysStreamText||(a?this.j.u||(a=Gf(this.i.textStreams,this.
|
|
650
|
+
q.pf=function(a){a=!!a;if(this.ea!=a){this.ea=a;if(this.l==To)this.H.H.setTextVisibility(a),this.g.streaming.alwaysStreamText||(a?this.j.u||(a=Gf(this.i.textStreams,this.Ea,this.ee,this.be),0<a.length&&(Rl(this.j,a[0]),op(this))):Nl(this.j));else if(this.h&&this.h.src&&this.h.textTracks){var b=hp(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}ap(this)}};
|
|
650
651
|
q.lj=function(){if(this.G)var a=this.G.Ae();else{if(null==this.ha)return new Date;a=this.ha}if(this.i){var b=this.i.presentationTimeline;return new Date(1E3*((b.F||b.i)+a))}return this.h&&this.h.getStartDate?(b=this.h.getStartDate(),isNaN(b.getTime())?null:new Date(b.getTime()+1E3*a)):null};q.Jh=function(){if(this.i){var a=this.i.presentationTimeline;return new Date(1E3*(a.F||a.i))}return this.h&&this.h.getStartDate?(a=this.h.getStartDate(),isNaN(a.getTime())?null:a):null};
|
|
651
652
|
q.Ne=function(){return this.U()?this.i?this.i.presentationTimeline.Ne():null:null};q.Mb=function(){if(this.l==To)return this.H.Mb();var a={total:[],audio:[],video:[],text:[]};this.l==fp&&(a.total=Qi(this.h.buffered));return a};
|
|
652
653
|
q.getStats=function(){if(this.l!=To&&this.l!=fp)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,bytesDownloaded:NaN,switchHistory:[],stateHistory:[]};Oo(this);var a=this.h,b=a.currentTime/a.duration;if(!isNaN(b)&&
|
|
@@ -656,7 +657,7 @@ f.I,y=f.Be,B=gl(f.g),D=[];f=t(f.h.g);for(var K=f.next();!K.done;K=f.next())K=K.v
|
|
|
656
657
|
stateHistory:B,switchHistory:D}};
|
|
657
658
|
q.Ei=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,p,r,u,v,w,A,z,C;return O(function(y){switch(y.g){case 1:if(h.l!=To&&h.l!=fp)throw new U(1,7,7004);"subtitles"!=c&&"captions"!=c&&Ya("Using a kind value different of `subtitles` or `captions` can cause unwanted issues.");if(d){y.B(2);break}return E(y,tp(h,a),3);case 3:d=y.h;case 2:k=[];h.A&&(k=h.A.getCuePoints());if(h.l!=fp){y.B(4);break}g&&(c="forced");return E(y,up(h,a,b,c,d,f||"",k),5);case 5:l=Xc(b);m=h.jc();if(n=m.find(function(B){return Xc(B.language)==
|
|
658
659
|
l&&B.label==(f||"")&&B.kind==c}))return Jo(h),y.return(n);throw new U(1,2,2012);case 4:p=Uc;r=h.h.duration;h.i&&(r=h.i.presentationTimeline.getDuration());if(Infinity==r)throw new U(1,4,4033);if(!k.length){y.B(6);break}return E(y,vp(h,a,h.I,h.g.streaming.retryParameters),7);case 7:u=y.h,v=wp(h,u,d,k),w=new Blob([v],{type:"text/vtt"}),a=Pj(w),d="text/vtt";case 6:A={id:h.Lf++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Zk(0,r,[a]),mimeType:d||"",
|
|
659
|
-
codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,originalLanguage:b,label:f||null,type:p.
|
|
660
|
+
codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,originalLanguage:b,label:f||null,type:p.Ga,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([te(d||"",e||"")])};z=te(A.mimeType,A.codecs);C=Ne(z);if(!C)throw new U(2,2,2014,d);h.i.textStreams.push(A);Jo(h);return y.return(xf(A))}})};
|
|
660
661
|
q.Fi=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,r,u,v,w,A,z;return O(function(C){switch(C.g){case 1:if(c.l!=To&&c.l!=fp)throw new U(1,7,7004);if(b){C.B(2);break}return E(C,tp(c,a),3);case 3:b=C.h;case 2:if("text/vtt"!=b)throw new U(1,2,2017,a);d=Uc;e=c.h.duration;c.i&&(e=c.i.presentationTimeline.getDuration());if(Infinity==e)throw new U(1,4,4045);return E(C,vp(c,a,c.I,c.g.streaming.retryParameters),4);case 4:f=C.h;g=Oe[b];if(!g)throw new U(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0,segmentEnd:e,
|
|
661
662
|
vttOffset:0};l=Gb(f);m=h.parseMedia(l,k,a);n=[];p={};r=t(m);for(u=r.next();!u.done;p={Gd:p.Gd,qc:p.qc},u=r.next())p.qc=u.value,p.Gd=null,v=function(y){return function(){null==y.Gd&&(y.Gd=Lc([a],[y.qc.payload]));return y.Gd||[]}}(p),w=new Ii(p.qc.startTime,p.qc.endTime,v,0,null,null,0,0,Infinity),p.qc.payload.includes("#xywh")&&(A=p.qc.payload.split("#xywh=")[1].split(","),4===A.length&&w.ji({height:parseInt(A[3],10),positionX:parseInt(A[0],10),positionY:parseInt(A[1],10),width:parseInt(A[2],10)})),
|
|
662
663
|
n.push(w);z={id:c.Lf++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Xk(n),mimeType:b||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:d.Of,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([te(b||
|
|
@@ -666,44 +667,44 @@ q.Di=function(a,b,c){var d=this,e,f,g,h;return O(function(k){switch(k.g){case 1:
|
|
|
666
667
|
function up(a,b,c,d,e,f,g){var h,k,l,m;return O(function(n){if(1==n.g)return"text/vtt"!=e||g.length?E(n,vp(a,b,a.I,a.g.streaming.retryParameters),3):n.B(2);2!=n.g&&(h=n.h,k=wp(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=Pj(l),e="text/vtt");m=document.createElement("track");var p=a.O,r=b;try{if(p.g.enabled){var u=un(p);u.ot=Hn;u.su=!0;var v=yn(u);var w=zn(r,v)}else w=r}catch(A){Za("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",A),w=r}m.src=w;m.label=f;m.kind=d;m.srclang=c;a.h.getAttribute("crossorigin")||
|
|
667
668
|
a.h.setAttribute("crossorigin","anonymous");a.h.appendChild(m);return n.return(m)})}function vp(a,b,c,d){var e,f,g;return O(function(h){if(1==h.g){e=Gg;f=Ag([b],d);f.method="GET";var k=a.O;try{k.g.enabled&&An(k,f,{ot:Hn,su:!0})}catch(l){Za("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return E(h,c.request(e,f).promise,2)}g=h.h;return h.return(g.data)})}
|
|
668
669
|
function wp(a,b,c,d){var e=Oe[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.h.duration,vttOffset:0},b=Gb(b),b=c.parseMedia(b,a,null),qn(b,d);throw new U(2,2,2014,c);}q.yk=function(a,b){this.ba.width=a;this.ba.height=b};q.Rg=function(a){if(this.l==To){var b=this.j;a=void 0===a?.1:a;if(b.l.g)b=!1;else if(b.A)b=!1;else{for(var c=t(b.i.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.Ud||d.fb||d.Jb||(d.Ud=!1,Ml(b,d,a));b=!0}}else b=!1;return b};
|
|
669
|
-
q.rg=function(){Ya("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees. It may change at any time! Please consider filing a feature request for whatever you use getManifest() for.");return this.i};q.hj=function(){return this.
|
|
670
|
-
function ho(a){var b=vm();b.streaming.failureCallback=function(c){if(a.U()){var d=null;1001==c.code||1002==c.code?(d=1,a.g.streaming.lowLatencyMode&&(d=.1)):1003==c.code&&(d=.1);null!=d&&(c.severity=1,a.Rg(d))}};b.textDisplayFactory=function(){if(a.jf){var c=a.getConfiguration();return new gn(a.h,a.jf,c.textDisplayer)}return HTMLMediaElement.prototype.addTextTrack?new
|
|
670
|
+
q.rg=function(){Ya("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees. It may change at any time! Please consider filing a feature request for whatever you use getManifest() for.");return this.i};q.hj=function(){return this.Ha};
|
|
671
|
+
function ho(a){var b=vm();b.streaming.failureCallback=function(c){if(a.U()){var d=null;1001==c.code||1002==c.code?(d=1,a.g.streaming.lowLatencyMode&&(d=.1)):1003==c.code&&(d=.1);null!=d&&(c.severity=1,a.Rg(d))}};b.textDisplayFactory=function(){if(a.jf){var c=a.getConfiguration();return new gn(a.h,a.jf,c.textDisplayer)}return HTMLMediaElement.prototype.addTextTrack?new an(a.h,"Shaka Player TextTrack"):new cn};return b}q.dh=function(a){this.jf=a};
|
|
671
672
|
function Ho(a,b){for(var c=new Set,d=t(b.textStreams),e=d.next();!e.done;e=d.next())e=e.value,"application/cea-608"!=e.mimeType&&"application/cea-708"!=e.mimeType||c.add(e.originalId);d=t(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=t(e.closedCaptions.keys()),g=f.next();!g.done;g=f.next())if(g=g.value,!c.has(g)){var h=g.startsWith("CC")?"application/cea-608":"application/cea-708",k=new $k,l=e.closedCaptions.get(g);h={id:a.Lf++,originalId:g,groupId:null,
|
|
672
673
|
createSegmentIndex:function(){return Promise.resolve()},segmentIndex:k,mimeType:h,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:l,originalLanguage:l,label:null,type:Sc,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:e.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set([te(h,"")])};b.textStreams.push(h);c.add(g)}}
|
|
673
674
|
function Zo(a,b){var c,d,e,f,g;return O(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n,p;return O(function(r){if(1==r.g)return k?E(r,k.createSegmentIndex(),2):r.return(null);n=(m=k.segmentIndex.Wb(l))?m.next().value:null;if(!n)return r.return(null);p=n.startTime;return r.return(p)})},E(h,e(c,b),2);if(3!=h.g)return f=h.h,E(h,e(d,b),3);g=h.h;return null!=g&&null!=f?h.return(Math.max(g,f)):null!=g?h.return(g):null!=f?h.return(f):h.return(b)})}
|
|
674
675
|
function xo(a){var b=a.Wd();if(a.u&&a.N&&a.G){var c=a.J;c.j=b;bl(c);a.O&&(c=a.O,b||c.i||(c.i=!0),c.i&&b&&(c.j=!0),c.l=b);Oo(a)}b=(new Map).set("buffering",b);a.dispatchEvent(po("buffering",b))}function Po(a){var b=a.h.playbackRate;0!=b&&(a.J&&a.J.set(b),b=po("ratechange"),a.dispatchEvent(b))}
|
|
675
676
|
function Oo(a){if(a.u&&a.N){var b=a.u.g,c="playing";a.N.g==gg?c="buffering":a.h.paused?c="paused":a.h.ended&&(c="ended");var d=c;if(null==b.g)b.g={timestamp:Date.now()/1E3,state:d,duration:0},b=!0;else{var e=Date.now()/1E3;b.g.duration=e-b.g.timestamp;b.g.state==d?b=!1:(b.h.push(b.g),b.g={timestamp:e,state:d,duration:0},b=!0)}b&&(c=(new Map).set("newstate",c),a.dispatchEvent(po("statechanged",c)))}}
|
|
676
|
-
function cp(a){var b=a.h.playbackRate,c=a.U();if(a.g.streaming.vodDynamicPlaybackRate&&!c){var d=a.g.streaming.vodDynamicPlaybackRateLowBufferRate,e=a.Fh();e<=a.g.streaming.vodDynamicPlaybackRateBufferRatio?b!=d&&a.Mc(d):1==e&&b!==a.J.xc()&&a.Uc()}if(c&&(e=a.
|
|
677
|
+
function cp(a){var b=a.h.playbackRate,c=a.U();if(a.g.streaming.vodDynamicPlaybackRate&&!c){var d=a.g.streaming.vodDynamicPlaybackRateLowBufferRate,e=a.Fh();e<=a.g.streaming.vodDynamicPlaybackRateBufferRatio?b!=d&&a.Mc(d):1==e&&b!==a.J.xc()&&a.Uc()}if(c&&(e=a.Ta(),Number.isFinite(e.end)&&!(a.h.currentTime<e.start))){if(a.g.streaming.liveSync){var f=a.g.streaming.liveSyncMaxLatency;var g=a.g.streaming.liveSyncPlaybackRate}else a.i&&a.i.serviceDescription&&(f=a.g.streaming.liveSyncMaxLatency,null!=a.i.serviceDescription.targetLatency?
|
|
677
678
|
f=a.i.serviceDescription.targetLatency+a.g.streaming.liveSyncTargetLatencyTolerance:null!=a.i.serviceDescription.maxLatency&&(f=a.i.serviceDescription.maxLatency),g=a.i.serviceDescription.maxPlaybackRate||a.g.streaming.liveSyncPlaybackRate);if(a.g.streaming.liveSync){var h=a.g.streaming.liveSyncMinLatency;var k=a.g.streaming.liveSyncMinPlaybackRate}else a.i&&a.i.serviceDescription&&(h=a.g.streaming.liveSyncMinLatency,null!=a.i.serviceDescription.targetLatency?h=a.i.serviceDescription.targetLatency-
|
|
678
679
|
a.g.streaming.liveSyncTargetLatencyTolerance:null!=a.i.serviceDescription.minLatency&&(h=a.i.serviceDescription.minLatency),k=a.i.serviceDescription.minPlaybackRate||a.g.streaming.liveSyncMinPlaybackRate);c=e.end-a.h.currentTime;d=0;if(a.l==fp){var l=a.h.buffered;0<l.length&&(d=l.end(l.length-1),d=Math.max(g,d-e.end))}e=a.g.streaming.liveSyncPanicMode;l=1E3*a.g.streaming.liveSyncPanicThreshold;var m=Date.now()-a.N.h;e&&!k&&(k=a.g.streaming.liveSyncMinPlaybackRate);e&&k&&m<=l?b!=k&&a.Mc(k):f&&g&&c-
|
|
679
680
|
d>f?b!=g&&a.Mc(g):h&&k&&c-d<h?b!=k&&a.Mc(k):b!==a.J.xc()&&a.Uc()}}function dp(a){if(a.h){var b=!1,c=a.h.currentTime/a.h.duration;isNaN(c)||(c=Math.round(100*c),isNaN(a.R)?(a.R=c,b=!0):(c=Math.max(a.R,c),a.R!=c&&(a.R=c,b=!0)));if(b){var d;0==a.R?d=po("started"):25==a.R?d=po("firstquartile"):50==a.R?d=po("midpoint"):75==a.R?d=po("thirdquartile"):100==a.R&&(d=po("complete"));d&&a.dispatchEvent(d)}}}
|
|
680
|
-
function Ko(a){try{xi(a.gf,a.i)}catch(c){return vo(a,c),!1}var b=Ff(a.i.variants);b=a.
|
|
681
|
+
function Ko(a){try{xi(a.gf,a.i)}catch(c){return vo(a,c),!1}var b=Ff(a.i.variants);b=a.xa.create(b);a.o.setVariants(Array.from(b.values()));return!0}function Vo(a,b){b=void 0===b?!1:b;return Ko(a)?a.o.chooseVariant(b):null}
|
|
681
682
|
function mo(a){function b(g){var h="";g.video&&(h+="video:"+g.video.id);g.audio&&(h=h+(h?"&":"")+("audio:"+g.audio.id));return h}for(var c=Date.now()/1E3,d=!1,e=t(a.i.variants),f=e.next();!f.done;f=e.next())f=f.value,0<f.disabledUntilTime&&f.disabledUntilTime<=c&&(f.disabledUntilTime=0,d=!0,eb("Re-enabled variant with "+b(f)));a.i.variants.every(function(g){return 0===g.disabledUntilTime})&&a.uf.stop();d&&Lo(a,!1,void 0,!1,!1)}
|
|
682
683
|
function Lo(a,b,c,d,e){b=void 0===b?!0:b;c=void 0===c?0:c;d=void 0===d?!1:d;e=void 0===e?!0:e;var f=Vo(a);f&&Ro(a,f,e,b,c,d)}function Ro(a,b,c,d,e,f){f=void 0===f?!1:f;var g=a.j.j;if(b==g)d&&Ql(a.j,b,d,e,!0);else{var h=a.u.h;h.h!=b&&(h.h=b,h.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));Ql(a.j,b,d,e,f,c);d=null;g&&(d=wf(g));b=wf(b);c?(c=(new Map).set("oldTrack",d).set("newTrack",b),a.L&&Fj(a.L,b,a.sg()),c=po("adaptation",c),xp(a,c)):yp(a,d,b)}}
|
|
683
684
|
function pp(a,b){var c=Array.from(a.h.audioTracks).find(function(d){return d.enabled});b.enabled=!0;c&&(b.id!==c.id&&(c.enabled=!1),c=Df(c),b=Df(b),yp(a,c,b))}function $o(a,b,c){if(0==a.g.autoShowText)return!1;if(1==a.g.autoShowText)return!0;var d=Xc(a.g.preferredTextLanguage);c=Xc(c.language);if(2==a.g.autoShowText)return Wc(c,d);if(3==a.g.autoShowText){if(!b)return!1;a=Xc(b.language);return Wc(c,d)&&!Wc(a,c)}Ya("Invalid autoShowText setting!");return!1}
|
|
684
685
|
function Jo(a){var b=po("trackschanged");xp(a,b)}function yp(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);a.L&&Fj(a.L,c,a.sg());c=po("variantchanged",b);xp(a,c)}function op(a){var b=po("textchanged");xp(a,b)}function ap(a){var b=po("texttrackvisibility");xp(a,b)}function bp(a){a.g.abr.enabled||lo(a);var b=(new Map).set("newStatus",a.g.abr.enabled);xp(a,po("abrstatuschanged",b))}
|
|
685
686
|
function lo(a,b){b=void 0===b?!0:b;if(a.l==To){a.uf.stop();for(var c=t(a.i.variants),d=c.next();!d.done;d=c.next())d.value.disabledUntilTime=0;b&&Ko(a)}}
|
|
686
|
-
q.He=function(a,b){if(!this.g.abr.enabled||this.l===qo||!navigator.onLine)return!1;if(this.i.variants.some(function(f){return(f=f[a.type])&&f.id!==a.id?"audio"==a.type?a.language===f.language:!0:!1})){for(var c=t(this.i.variants),d=c.next();!d.done;d=c.next()){d=d.value;var e=d[a.type];e&&e.id===a.id&&(d.disabledUntilTime=Date.now()/1E3+b)}this.uf.
|
|
687
|
-
function vo(a,b){var c,d,e;return O(function(f){switch(f.g){case 1:if(a.l==qo)return f.return();c=!0;if(!(a.
|
|
687
|
+
q.He=function(a,b){if(!this.g.abr.enabled||this.l===qo||!navigator.onLine)return!1;if(this.i.variants.some(function(f){return(f=f[a.type])&&f.id!==a.id?"audio"==a.type?a.language===f.language:!0:!1})){for(var c=t(this.i.variants),d=c.next();!d.done;d=c.next()){d=d.value;var e=d[a.type];e&&e.id===a.id&&(d.disabledUntilTime=Date.now()/1E3+b)}this.uf.za(1);b=this.Mb().video.reduce(function(f,g){return f+g.end-g.start},0);Lo(this,!1,b,!0,!1);return!0}return!1};
|
|
688
|
+
function vo(a,b){var c,d,e;return O(function(f){switch(f.g){case 1:if(a.l==qo)return f.return();c=!0;if(!(a.Na&&a.i&&a.j)||3016!=b.code&&3014!=b.code&&3015!=b.code&&3018!=b.code){f.B(2);break}ta(f,3);return E(f,jm(a.j),5);case 5:d=f.h;c=!d;va(f,2);break;case 3:wa(f),c=!0;case 2:if(!c)return f.return();2===b.severity&&lo(a,!1);e=po("error",(new Map).set("detail",b));a.dispatchEvent(e);e.defaultPrevented&&(b.handled=!0);F(f)}})}
|
|
688
689
|
function Io(a,b,c,d){d=void 0===d?a:d;a=(new Map).set("detail",{schemeIdUri:c.schemeIdUri,value:c.value,startTime:c.startTime,endTime:c.endTime,id:c.id,eventElement:c.eventElement,eventNode:c.eventNode});d.dispatchEvent(po(b,a))}function uo(a){if(!a.h.error)return null;var b=a.h.error.code;if(1==b)return null;var c=a.h.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new U(2,3,3016,b,c,a.h.error.message)}
|
|
689
690
|
function Qo(a,b,c){0<b&&(a.U()||a.li(b));b=a.getDuration();c<b&&(a.U()||a.sb(c))}function xp(a,b){O(function(c){if(1==c.g)return E(c,Promise.resolve(),2);a.l!=qo&&a.dispatchEvent(b);F(c)})}function rp(a){var b=new Set;a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(Xc(c.language)):b.add("und");return b}
|
|
690
691
|
function qp(a){var b=new Map,c=new Map;a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="und",f=[];d.language&&(e=Xc(d.language));"variant"==d.type?f=d.audioRoles:f=d.roles;f&&f.length||(f=[""]);b.has(e)||b.set(e,new Set);f=t(f);for(var g=f.next();!g.done;g=f.next())g=g.value,b.get(e).add(g),d.label&&(c.has(e)||c.set(e,new Map),c.get(e).set(g,d.label))}var h=[];b.forEach(function(k,l){k=t(k);for(var m=k.next();!m.done;m=k.next()){m=m.value;var n=null;c.has(l)&&c.get(l).has(m)&&(n=c.get(l).get(m));
|
|
691
692
|
h.push({language:l,role:m,label:n})}});return h}P("shaka.Player",X);X.prototype.setVideoContainer=X.prototype.dh;X.prototype.getManifestParserFactory=X.prototype.hj;X.prototype.getManifest=X.prototype.rg;X.prototype.retryStreaming=X.prototype.Rg;X.prototype.setMaxHardwareResolution=X.prototype.yk;X.prototype.addChaptersTrack=X.prototype.Di;X.prototype.addThumbnailsTrack=X.prototype.Fi;X.prototype.addTextTrackAsync=X.prototype.Ei;X.prototype.getStats=X.prototype.getStats;
|
|
692
693
|
X.prototype.getBufferedInfo=X.prototype.Mb;X.prototype.getSegmentAvailabilityDuration=X.prototype.Ne;X.prototype.getPresentationStartTimeAsDate=X.prototype.Jh;X.prototype.getPlayheadTimeAsDate=X.prototype.lj;X.prototype.setTextTrackVisibility=X.prototype.pf;X.prototype.getChapters=X.prototype.Ui;X.prototype.getChaptersTracks=X.prototype.Gh;X.prototype.isTextTrackVisible=X.prototype.Fc;X.prototype.selectVariantsByLabel=X.prototype.qk;X.prototype.selectTextLanguage=X.prototype.Ug;
|
|
693
694
|
X.prototype.selectAudioLanguage=X.prototype.lf;X.prototype.getTextLanguages=X.prototype.qj;X.prototype.getAudioLanguages=X.prototype.Ri;X.prototype.getTextLanguagesAndRoles=X.prototype.rj;X.prototype.getAudioLanguagesAndRoles=X.prototype.Si;X.prototype.selectVariantTrack=X.prototype.mf;X.prototype.selectTextTrack=X.prototype.Vg;X.prototype.getThumbnails=X.prototype.vg;X.prototype.getAllThumbnails=X.prototype.Qi;X.prototype.getImageTracks=X.prototype.Je;X.prototype.getTextTracks=X.prototype.jc;
|
|
694
|
-
X.prototype.getVariantTracks=X.prototype.Db;X.prototype.cancelTrickPlay=X.prototype.Uc;X.prototype.trickPlay=X.prototype.Mc;X.prototype.getPlaybackRate=X.prototype.
|
|
695
|
+
X.prototype.getVariantTracks=X.prototype.Db;X.prototype.cancelTrickPlay=X.prototype.Uc;X.prototype.trickPlay=X.prototype.Mc;X.prototype.getPlaybackRate=X.prototype.Ra;X.prototype.isBuffering=X.prototype.Wd;X.prototype.getKeyStatuses=X.prototype.Ke;X.prototype.getActiveSessionsMetadata=X.prototype.pg;X.prototype.getExpiration=X.prototype.Pd;X.prototype.drmInfo=X.prototype.drmInfo;X.prototype.keySystem=X.prototype.keySystem;X.prototype.goToLive=X.prototype.Aj;X.prototype.seekRange=X.prototype.Ta;
|
|
695
696
|
X.prototype.isAudioOnly=X.prototype.dd;X.prototype.isInProgress=X.prototype.Ec;X.prototype.isLive=X.prototype.U;X.prototype.getAdManager=X.prototype.Ie;X.prototype.getAssetUri=X.prototype.Zc;X.prototype.getNetworkingEngine=X.prototype.hc;X.prototype.getMediaElement=X.prototype.jj;X.prototype.getManifestType=X.prototype.sg;X.prototype.getLoadMode=X.prototype.Qd;X.prototype.resetConfiguration=X.prototype.hk;X.prototype.getBufferFullness=X.prototype.Fh;X.prototype.getNonDefaultConfiguration=X.prototype.kj;
|
|
696
697
|
X.prototype.getConfiguration=X.prototype.getConfiguration;X.prototype.configure=X.prototype.configure;X.prototype.releaseAllMutexes=X.prototype.dk;X.prototype.preload=X.prototype.preload;X.prototype.detachAndSavePreload=X.prototype.Bh;X.prototype.unloadAndSavePreload=X.prototype.Ck;X.prototype.load=X.prototype.load;X.prototype.updateStartTime=X.prototype.Gk;X.prototype.unload=X.prototype.Nc;X.prototype.detach=X.prototype.detach;X.prototype.attachCanvas=X.prototype.qh;X.prototype.attach=X.prototype.tc;
|
|
697
698
|
X.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g,h;return O(function(k){switch(k.g){case 1:b={};if(!a){k.B(2);break}return E(k,qi(),3);case 3:b=k.h;case 2:var l={};if(Vb())for(var m in Bi)l[m]=!0;m=t(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var n=m.next();!n.done;n=m.next())n=n.value,l[n]=Vb()?!!Bi[n]:Wb(n);c=l;m='video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",video/mp4; codecs="dvh1.20.01",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="ac-4.02.01.01",audio/mp4; codecs="opus",audio/mp4; codecs="flac",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(x(ue));
|
|
698
699
|
l={};m=t(m);for(n=m.next();!n.done;n=m.next()){n=n.value;l[n]=Ne(n)?!0:Vb()?td(n)||(ne(n)?!0:!1):Wb(n);var p=n.split(";")[0];l[p]=l[p]||l[n]}d=l;return E(k,uc(),4);case 4:e=k.h;f={manifest:c,media:d,drm:b,hardwareResolution:e};g=zp;for(h in g)f[h]=g[h]();return k.return(f)}})};X.isBrowserSupported=ro;X.setAdManagerFactory=function(a){ko=a};X.registerSupportPlugin=function(a,b){zp[a]=b};X.prototype.destroy=X.prototype.destroy;var qo=0,go=1,To=2,fp=3;
|
|
699
|
-
X.LoadMode={DESTROYED:qo,NOT_LOADED:go,MEDIA_SOURCE:To,SRC_EQUALS:fp};X.version="v4.9.
|
|
700
|
+
X.LoadMode={DESTROYED:qo,NOT_LOADED:go,MEDIA_SOURCE:To,SRC_EQUALS:fp};X.version="v4.9.17";var Ap=["4","9"];yd=new function(a){this.g=a;this.i=zd;this.h=Ad}(new wd(Number(Ap[0]),Number(Ap[1])));var zp={},ko=null;function Bp(){this.h=[];this.j=this.i=this.g=0};function Cp(a,b,c){var d=this;this.g=a;this.h=b;this.j=c;this.i=!1;this.l=this.h.getVolume();this.m=new od;this.m.s(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.m.s(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}q=Cp.prototype;q.getDuration=function(){return this.g.getDuration()};q.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};q.getRemainingTime=function(){return this.h.getRemainingTime()};q.isPaused=function(){return this.i};
|
|
700
701
|
q.isSkippable=function(){return 0<=this.g.getSkipTimeOffset()};q.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};q.canSkipNow=function(){return this.h.getAdSkippableState()};q.skip=function(){return this.h.skip()};q.pause=function(){return this.h.pause()};q.play=function(){return this.h.resume()};q.getVolume=function(){return this.h.getVolume()};q.setVolume=function(a){this.j.volume=a;return this.h.setVolume(a)};
|
|
701
702
|
q.isMuted=function(){return 0==this.h.getVolume()};q.isLinear=function(){return this.g.isLinear()};q.resize=function(a,b){var c=!1,d=this.j;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.h.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};q.setMuted=function(a){(this.j.muted=a)?(this.l=this.getVolume(),this.h.setVolume(0)):this.h.setVolume(this.l)};
|
|
702
703
|
q.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds()};q.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getAdPosition()};q.getTitle=function(){return this.g.getTitle()};q.getDescription=function(){return this.g.getDescription()};q.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate()};q.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};q.getVastMediaWidth=function(){return this.g.getVastMediaWidth()};
|
|
703
704
|
q.getAdId=function(){return this.g.getAdId()};q.getCreativeAdId=function(){return this.g.getCreativeAdId()};q.getAdvertiserName=function(){return this.g.getAdvertiserName()};q.getMediaUrl=function(){return this.g.getMediaUrl()};q.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset()};q.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex()};q.release=function(){this.h=this.g=null};P("shaka.ads.ClientSideAd",Cp);Cp.prototype.release=Cp.prototype.release;
|
|
704
705
|
Cp.prototype.getPodIndex=Cp.prototype.getPodIndex;Cp.prototype.getTimeOffset=Cp.prototype.getTimeOffset;Cp.prototype.getMediaUrl=Cp.prototype.getMediaUrl;Cp.prototype.getAdvertiserName=Cp.prototype.getAdvertiserName;Cp.prototype.getCreativeAdId=Cp.prototype.getCreativeAdId;Cp.prototype.getAdId=Cp.prototype.getAdId;Cp.prototype.getVastMediaWidth=Cp.prototype.getVastMediaWidth;Cp.prototype.getVastMediaHeight=Cp.prototype.getVastMediaHeight;Cp.prototype.getVastMediaBitrate=Cp.prototype.getVastMediaBitrate;
|
|
705
706
|
Cp.prototype.getDescription=Cp.prototype.getDescription;Cp.prototype.getTitle=Cp.prototype.getTitle;Cp.prototype.getPositionInSequence=Cp.prototype.getPositionInSequence;Cp.prototype.getSequenceLength=Cp.prototype.getSequenceLength;Cp.prototype.setMuted=Cp.prototype.setMuted;Cp.prototype.resize=Cp.prototype.resize;Cp.prototype.isLinear=Cp.prototype.isLinear;Cp.prototype.isMuted=Cp.prototype.isMuted;Cp.prototype.setVolume=Cp.prototype.setVolume;Cp.prototype.getVolume=Cp.prototype.getVolume;
|
|
706
|
-
Cp.prototype.play=Cp.prototype.play;Cp.prototype.pause=Cp.prototype.pause;Cp.prototype.skip=Cp.prototype.skip;Cp.prototype.canSkipNow=Cp.prototype.canSkipNow;Cp.prototype.getTimeUntilSkippable=Cp.prototype.getTimeUntilSkippable;Cp.prototype.isSkippable=Cp.prototype.isSkippable;Cp.prototype.isPaused=Cp.prototype.isPaused;Cp.prototype.getRemainingTime=Cp.prototype.getRemainingTime;Cp.prototype.getMinSuggestedDuration=Cp.prototype.getMinSuggestedDuration;Cp.prototype.getDuration=Cp.prototype.getDuration;function Dp(a,b,c,d,e){var f=this;this.o=a;this.i=b;this.H=!1;this.A=this.u=null;this.I=NaN;this.m=e;this.j=null;this.h=new od;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.G=new google.ima.AdDisplayContainer(this.o,this.i);this.G.initialize();this.l=new google.ima.AdsLoader(this.G);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v4.9.
|
|
707
|
+
Cp.prototype.play=Cp.prototype.play;Cp.prototype.pause=Cp.prototype.pause;Cp.prototype.skip=Cp.prototype.skip;Cp.prototype.canSkipNow=Cp.prototype.canSkipNow;Cp.prototype.getTimeUntilSkippable=Cp.prototype.getTimeUntilSkippable;Cp.prototype.isSkippable=Cp.prototype.isSkippable;Cp.prototype.isPaused=Cp.prototype.isPaused;Cp.prototype.getRemainingTime=Cp.prototype.getRemainingTime;Cp.prototype.getMinSuggestedDuration=Cp.prototype.getMinSuggestedDuration;Cp.prototype.getDuration=Cp.prototype.getDuration;function Dp(a,b,c,d,e){var f=this;this.o=a;this.i=b;this.H=!1;this.A=this.u=null;this.I=NaN;this.m=e;this.j=null;this.h=new od;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.G=new google.ima.AdDisplayContainer(this.o,this.i);this.G.initialize();this.l=new google.ima.AdsLoader(this.G);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v4.9.17");this.g=null;this.F=d||new google.ima.AdsRenderingSettings;this.h.s(this.l,
|
|
707
708
|
google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(g){Ep(f,g)});this.h.s(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){Fp(f,g)});this.h.s(this.i,"ended",function(){f.l.contentComplete()});this.h.oa(this.i,"play",function(){f.H=!0})}Dp.prototype.configure=function(a){this.u=a};Dp.prototype.stop=function(){this.g&&this.g.stop();this.o&&fn(this.o)};
|
|
708
709
|
Dp.prototype.release=function(){this.stop();this.A&&this.A.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.l.destroy();this.G.destroy()};function Fp(a,b){b.getError();b=(new Map).set("originalEvent",b);a.m(new S("ad-error",b));Gp(a,null);a.m(new S("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
|
|
709
710
|
function Ep(a,b){a.m(new S("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.I)));if(a.u.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.F);a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume);a.h.s(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.s(a.i,"volumechange",function(){a.j&&(a.j.setVolume(a.i.volume),a.i.muted&&a.j.setMuted(!0))})}else a.g=b.getAdsManager(a.i,a.F);a.m(new S("ima-ad-manager-loaded",(new Map).set("imaAdManager",
|
|
@@ -722,7 +723,7 @@ q.getVolume=function(){return this.g.volume};q.setVolume=function(a){this.g.volu
|
|
|
722
723
|
q.getVastMediaWidth=function(){return 0};q.getAdId=function(){return this.h.adId};q.getCreativeAdId=function(){return this.h.creativeId};q.getAdvertiserName=function(){return""};q.getMediaUrl=function(){return null};q.getTimeOffset=function(){return 0};q.getPodIndex=function(){return 0};q.release=function(){this.l=this.i=this.g=this.h=null};P("shaka.ads.MediaTailorAd",Op);Op.prototype.release=Op.prototype.release;Op.prototype.getPodIndex=Op.prototype.getPodIndex;Op.prototype.getTimeOffset=Op.prototype.getTimeOffset;
|
|
723
724
|
Op.prototype.getMediaUrl=Op.prototype.getMediaUrl;Op.prototype.getAdvertiserName=Op.prototype.getAdvertiserName;Op.prototype.getCreativeAdId=Op.prototype.getCreativeAdId;Op.prototype.getAdId=Op.prototype.getAdId;Op.prototype.getVastMediaWidth=Op.prototype.getVastMediaWidth;Op.prototype.getVastMediaHeight=Op.prototype.getVastMediaHeight;Op.prototype.getVastMediaBitrate=Op.prototype.getVastMediaBitrate;Op.prototype.getDescription=Op.prototype.getDescription;Op.prototype.getTitle=Op.prototype.getTitle;
|
|
724
725
|
Op.prototype.getPositionInSequence=Op.prototype.getPositionInSequence;Op.prototype.getSequenceLength=Op.prototype.getSequenceLength;Op.prototype.setMuted=Op.prototype.setMuted;Op.prototype.resize=Op.prototype.resize;Op.prototype.isLinear=Op.prototype.isLinear;Op.prototype.isMuted=Op.prototype.isMuted;Op.prototype.setVolume=Op.prototype.setVolume;Op.prototype.getVolume=Op.prototype.getVolume;Op.prototype.play=Op.prototype.play;Op.prototype.pause=Op.prototype.pause;Op.prototype.skip=Op.prototype.skip;
|
|
725
|
-
Op.prototype.canSkipNow=Op.prototype.canSkipNow;Op.prototype.getTimeUntilSkippable=Op.prototype.getTimeUntilSkippable;Op.prototype.isSkippable=Op.prototype.isSkippable;Op.prototype.isPaused=Op.prototype.isPaused;Op.prototype.getRemainingTime=Op.prototype.getRemainingTime;Op.prototype.getMinSuggestedDuration=Op.prototype.getMinSuggestedDuration;Op.prototype.getDuration=Op.prototype.getDuration;var Pp=/(?:(\d{1,}):)?(\d{2}):(\d{2})((\.(\d{1,3})))?/g;function Qp(a,b,c,d){this.F=a;this.L=b;this.h=c;this.l=null;this.S=NaN;this.i=d;this.K=!1;this.A=null;this.j=[];this.O=[];this.N=this.G=this.g=null;this.H=new Map;this.m=[];this.u=[];this.I="";this.R=!0;this.J="";this.o=new od}Qp.prototype.stop=function(){for(var a=t(this.m),b=a.next();!b.done;b=a.next())b=b.value,this.o.
|
|
726
|
+
Op.prototype.canSkipNow=Op.prototype.canSkipNow;Op.prototype.getTimeUntilSkippable=Op.prototype.getTimeUntilSkippable;Op.prototype.isSkippable=Op.prototype.isSkippable;Op.prototype.isPaused=Op.prototype.isPaused;Op.prototype.getRemainingTime=Op.prototype.getRemainingTime;Op.prototype.getMinSuggestedDuration=Op.prototype.getMinSuggestedDuration;Op.prototype.getDuration=Op.prototype.getDuration;var Pp=/(?:(\d{1,}):)?(\d{2}):(\d{2})((\.(\d{1,3})))?/g;function Qp(a,b,c,d){this.F=a;this.L=b;this.h=c;this.l=null;this.S=NaN;this.i=d;this.K=!1;this.A=null;this.j=[];this.O=[];this.N=this.G=this.g=null;this.H=new Map;this.m=[];this.u=[];this.I="";this.R=!0;this.J="";this.o=new od}Qp.prototype.stop=function(){for(var a=t(this.m),b=a.next();!b.done;b=a.next())b=b.value,this.o.Xa(b.target,b.type,b.listener);Rp(this);this.m=[];this.u=[];this.I="";this.R=!0;this.J="";this.A=null;this.j=[];this.O=[];this.H.clear()};
|
|
726
727
|
Qp.prototype.release=function(){this.stop();this.o&&this.o.release()};Qp.prototype.onManifestUpdated=function(a){this.K=a;""!=this.I&&(Sp(this,this.I,this.R),this.R=!1)};Qp.prototype.getCuePoints=function(){for(var a=[],b=t(this.j),c=b.next();!c.done;c=b.next()){c=t(c.value.ads);for(var d=c.next();!d.done;d=c.next())d=d.value,a.push({start:d.startTimeInSeconds,end:d.startTimeInSeconds+d.durationInSeconds})}return a};
|
|
727
728
|
function Tp(a,b,c){var d,e,f,g,h,k,l,m,n,p,r;O(function(u){if(1==u.g)return d=Ag([b],jg()),d.method="POST",c&&(e=JSON.stringify(c),d.body=Ac(e)),f=a.L.request(7,d),ta(u,2),E(u,f.promise,4);if(2!=u.g){g=u.h;h=wc(g.data);k=JSON.parse(h);if(k.manifestUrl&&k.trackingUrl)l=new mb(b),m=new mb(k.trackingUrl),a.I=l.resolve(m).toString(),n=Date.now()/1E3,p=n-a.S,a.i(new S("ads-loaded",(new Map).set("loadTime",p))),r=new mb(k.manifestUrl),a.l.resolve(l.resolve(r).toString()),a.l=null;else throw Error("Insufficient data from MediaTailor.");
|
|
728
729
|
return va(u,0)}wa(u);if(!a.J.length)return a.l.reject("MediaTailor request returned an error and there was no backup asset uri provided."),a.l=null,u.return();a.l.resolve(a.J);a.l=null;F(u)})}
|
|
@@ -735,7 +736,7 @@ function Xp(a){if(a.h.duration&&(a.g||a.j.length)){var b=a.h.currentTime,c=!1;if
|
|
|
735
736
|
e=a.g.getDuration();a.g.canSkipNow()&&0<d&&0<e&&Zp(a,"skipStateChanged");0<e&&(0>=d||d>e)&&Rp(a)}if(!a.g||!a.g.isLinear()){a:for(d=t(a.j),e=d.next();!e.done;e=d.next()){e=e.value;if(a.g&&a.g.isLinear())break;for(f=0;f<e.ads.length;f++){var g=e.ads[f],h=g.startTimeInSeconds+g.durationInSeconds;if(g.startTimeInSeconds<=b&&h>b){if(a.O.includes(g.adId)){if(a.h.ended)continue;a.h.currentTime=h;break a}Rp(a);a.N=e;a.g=new Op(g,f+1,e.ads.length,!0,a.h);a.G=g;0===f&&Zp(a,"breakStart");$p(a);break}}}if(!a.g)for(d=
|
|
736
737
|
t(a.j),e=d.next();!e.done;e=d.next()){e=e.value;if(a.g)break;for(f=0;f<e.nonLinearAdsList.length;f++)if(g=e.nonLinearAdsList[f],g.nonLinearAdList.length){h=e.startTimeInSeconds;var k=a.H.get(Wp(g.nonLinearAdList[0]));if(h<=b&&k&&k.length){Rp(a);h=a;k=t(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.data.source.length){var m=document.createElement("img");m.src=l.data.source[0].url;m.style.top=(l.placeholder.top||0)+"%";m.style.height=100-(l.placeholder.top||0)+"%";m.style.left=(l.placeholder.left||
|
|
737
738
|
0)+"%";m.style.maxWidth=100-(l.placeholder.left||0)+"%";m.style.objectFit="contain";m.style.position="absolute";h.F.appendChild(m)}a.N=e;a.g=new Op(g,f+1,e.ads.length,!1,a.h);a.G=g;0===f&&Zp(a,"breakStart");$p(a);break}}}c&&!a.g&&(b=a.h.currentTime,a.A&&a.A>b&&(a.h.currentTime=a.A),a.A=null)}}}
|
|
738
|
-
function Rp(a){if(a.g){for(;a.F.lastChild;)a.F.removeChild(a.F.firstChild);a.K||a.O.push(a.G.adId);var b=a.g.m;(void 0===b?0:b)?Zp(a,"skip"):Zp(a,"complete");b=t(a.m);for(var c=b.next();!c.done;c=b.next())c=c.value,a.o.
|
|
739
|
+
function Rp(a){if(a.g){for(;a.F.lastChild;)a.F.removeChild(a.F.firstChild);a.K||a.O.push(a.G.adId);var b=a.g.m;(void 0===b?0:b)?Zp(a,"skip"):Zp(a,"complete");b=t(a.m);for(var c=b.next();!c.done;c=b.next())c=c.value,a.o.Xa(c.target,c.type,c.listener);a.m=[];a.u=[];b=a.g.getPositionInSequence();c=a.g.getSequenceLength();b===c&&Zp(a,"breakEnd");a.g=null;a.G=null;a.N=null}}
|
|
739
740
|
function $p(a){var b=!1;a.h.paused?b=!0:(Zp(a,"impression"),Zp(a,"start"));a.m.push({target:a.h,type:"volumechange",listener:function(){a.h.muted&&Zp(a,"mute")}});a.m.push({target:a.h,type:"volumechange",listener:function(){a.h.muted||Zp(a,"unmute")}});a.m.push({target:a.h,type:"play",listener:function(){b?(Zp(a,"impression"),Zp(a,"start"),b=!1):Zp(a,"resume")}});a.m.push({target:a.h,type:"pause",listener:function(){Zp(a,"pause")}});for(var c=t(a.m),d=c.next();!d.done;d=c.next())d=d.value,a.o.s(d.target,
|
|
740
741
|
d.type,d.listener)}
|
|
741
742
|
function Zp(a,b){var c=a.G.trackingEvents.find(function(e){return e.eventType==b});c||(c=a.N.adBreakTrackingEvents.find(function(e){return e.eventType==b}));if(c){c=t(c.beaconUrls);for(var d=c.next();!d.done;d=c.next())(d=d.value)&&""!=d&&(d=Ag([d],jg()),d.method="POST",a.L.request(7,d))}switch(b){case "impression":a.i(new S("ad-impression"));break;case "start":a.i(new S("ad-started",(new Map).set("ad",a.g)));break;case "mute":a.i(new S("ad-muted"));break;case "unmute":a.i(new S("ad-volume-changed"));break;
|
|
@@ -755,8 +756,8 @@ function cq(a,b){a.i(new S("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-
|
|
|
755
756
|
q.release=function(){this.i&&(this.i.release(),this.i=null);this.h&&(this.h.release(),this.h=null);this.g&&(this.g.release(),this.g=null);gb.prototype.release.call(this)};q.onAssetUnload=function(){this.i&&this.i.stop();this.h&&this.h.stop();this.g&&this.g.stop();this.dispatchEvent(new S("ad-stopped"));this.j=new Bp};q.requestClientSideAds=function(a){if(!this.i)throw new U(1,10,10001);var b=this.i;b.g&&b.g.destroy();b.l&&b.l.contentComplete();b.I=Date.now()/1E3;b.l.requestAds(a)};
|
|
756
757
|
q.updateClientSideAdsRenderingSettings=function(a){if(!this.i)throw new U(1,10,10001);var b=this.i;b.F=a;b.g&&b.g.updateAdsRenderingSettings(b.F)};q.initMediaTailor=function(a,b,c){var d=this;this.h&&this.h.release();this.h=new Qp(a,b,c,function(e){return eq(d,e)})};q.requestMediaTailorStream=function(a,b,c){if(!this.h)throw new U(1,10,10005);var d=this.h;c=void 0===c?"":c;d.l?a=Promise.reject(new U(1,10,10004)):(d.l=new lg,Tp(d,a,b),d.J=c||"",d.S=Date.now()/1E3,a=d.l);return a};
|
|
757
758
|
q.addMediaTailorTrackingUrl=function(a){if(!this.h)throw new U(1,10,10005);var b=this.h;b.I=a;b.i(new S("ads-loaded",(new Map).set("loadTime",0)))};q.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new U(2,10,10002);this.g&&this.g.release();this.g=new bq(a,b,this.m,function(d){return eq(c,d)});this.g.configure(this.l)};
|
|
758
|
-
q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new U(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ya('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.9.
|
|
759
|
-
(c.I=!0),c.j=new lg,c.g.requestStream(a),c.F=b||"",c.H=Date.now()/1E3,a=c.j);return a};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new U(1,10,10003);(a.mpt||a.mpv)&&Ya('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.9.
|
|
759
|
+
q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new U(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ya('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.9.17";c=this.g;c.j?a=Promise.reject(new U(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
|
|
760
|
+
(c.I=!0),c.j=new lg,c.g.requestStream(a),c.F=b||"",c.H=Date.now()/1E3,a=c.j);return a};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new U(1,10,10003);(a.mpt||a.mpv)&&Ya('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.9.17";this.g.g.replaceAdTagParameters(a)};
|
|
760
761
|
q.getServerSideCuePoints=function(){xd("AdManager.getServerSideCuePoints","Please use getCuePoints function.");return this.getCuePoints()};q.getCuePoints=function(){var a=[];this.g&&(a=a.concat(this.g.getCuePoints()));this.h&&(a=a.concat(this.h.getCuePoints()));return a};q.getStats=function(){var a=this.j;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};q.onManifestUpdated=function(a){if(this.h)this.h.onManifestUpdated(a)};
|
|
761
762
|
q.onDashTimedMetadata=function(a){this.g&&"urn:google:dai:2018"==a.schemeIdUri&&this.g.g.processMetadata(a.schemeIdUri,a.eventNode?a.eventNode.attributes.messageData:null,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)};
|
|
762
763
|
function eq(a,b){if(b&&b.type)switch(b.type){case "ads-loaded":a.j.h.push(b.loadTime);break;case "ad-started":a.j.g++;break;case "ad-complete":a.j.i++;break;case "ad-skipped":a.j.j++}a.dispatchEvent(b)}P("shaka.ads.AdManager",dq);dq.prototype.onCueMetadataChange=dq.prototype.onCueMetadataChange;dq.prototype.onHlsTimedMetadata=dq.prototype.onHlsTimedMetadata;dq.prototype.onDashTimedMetadata=dq.prototype.onDashTimedMetadata;dq.prototype.onManifestUpdated=dq.prototype.onManifestUpdated;
|
|
@@ -771,29 +772,29 @@ function hq(a){return{length:a.length,start:function(b){return a.start[b]},end:f
|
|
|
771
772
|
var iq="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),jq="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),kq=["loop","playbackRate"],lq=["pause","play"],mq={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getImageTracks:2,getThumbnails:2,
|
|
772
773
|
isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10,getManifestType:10},nq={getConfiguration:4,getStats:5,getTextTracks:2,getVariantTracks:2},oq={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20,getSegmentAvailabilityDuration:20},pq=[["getConfiguration","configure"]],qq=[["isTextTrackVisible","setTextTrackVisibility"]],rq="addChaptersTrack addTextTrackAsync addThumbnailsTrack cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),
|
|
773
774
|
sq=["attach","attachCanvas","detach","load","unload"];function tq(a,b,c,d,e,f,g){var h=this;this.I=a;this.L=g;this.l=new Ub(b);this.N=c;this.u=!1;this.A=d;this.H=e;this.O=f;this.h=this.m=!1;this.K="";this.o=null;this.F=function(){return uq(h)};this.G=function(k,l){k=gq(l);switch(k.type){case "event":var m=k.targetName,n=Ua(k.event);h.A(m,n);break;case "update":m=k.update;for(n in m){k=h.g[n]||{};for(var p in m[n])k[p]=m[n][p]}h.u&&(h.N(),h.u=!1);break;case "asyncComplete":if(n=k.id,p=k.error,k=h.i[n],delete h.i[n],k)if(p){n=new U(p.severity,p.category,
|
|
774
|
-
p.code);for(m in p)n[m]=p[m];k.reject(n)}else k.resolve()}};this.g={video:{},player:{}};this.J=0;this.i={};this.j=null;vq.add(this)}q=tq.prototype;q.destroy=function(){vq.delete(this);wq(this);xq&&yq(this);this.l&&(this.l.stop(),this.l=null);this.H=this.A=null;this.h=this.m=!1;this.G=this.F=this.j=this.i=this.g=this.o=null;return Promise.resolve()};q.
|
|
775
|
-
q.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.l.
|
|
775
|
+
p.code);for(m in p)n[m]=p[m];k.reject(n)}else k.resolve()}};this.g={video:{},player:{}};this.J=0;this.i={};this.j=null;vq.add(this)}q=tq.prototype;q.destroy=function(){vq.delete(this);wq(this);xq&&yq(this);this.l&&(this.l.stop(),this.l=null);this.H=this.A=null;this.h=this.m=!1;this.G=this.F=this.j=this.i=this.g=this.o=null;return Promise.resolve()};q.Oa=function(){return this.h};q.hf=function(){return this.K};
|
|
776
|
+
q.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.l.Pa();var a=new chrome.cast.SessionRequest(this.I,[],null,this.L,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=t(vq),d=c.next();!d.done;d=c.next()){d=d.value;var e=b;d.j=new lg;d.u=!0;zq(d,e)}},function(b){for(var c=t(vq),d=c.next();!d.done;d=c.next())d=d.value,Aq="available"==b,d.l.Pa()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});Aq&&this.l.V(Bq);(a=xq)&&
|
|
776
777
|
a.status!=chrome.cast.SessionStatus.STOPPED?(this.j=new lg,this.u=!0,zq(this,a)):xq=null}else window.__onGCastApiAvailable!==Cq&&(Dq=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=Cq)};q.Wg=function(a){this.o=a;this.h&&Eq(this,{type:"appData",appData:this.o})};
|
|
777
778
|
q.cast=function(){var a=this;return O(function(b){if(!a.m)throw new U(1,8,8E3);if(!Aq)throw new U(1,8,8001);if(a.h)throw new U(1,8,8002);a.j=new lg;chrome.cast.requestSession(function(c){return zq(a,c)},function(c){return Fq(a,c)});return E(b,a.j,0)})};function Gq(a){a.h&&chrome.cast.requestSession(function(b){return zq(a,b)},function(b){return Fq(a,b)})}q.Yc=function(){if(this.h){wq(this);if(xq){yq(this);try{xq.stop(function(){},function(){})}catch(a){}xq=null}uq(this)}};
|
|
778
779
|
q.get=function(a,b){var c=this;if("video"==a){if(lq.includes(b))return function(){return c.Zh.apply(c,[a,b].concat(x(Ka.apply(0,arguments))))}}else if("player"==a){if(oq[b]&&!this.get("player","isLive")())return function(){};if(rq.includes(b))return function(){return c.Zh.apply(c,[a,b].concat(x(Ka.apply(0,arguments))))};if(sq.includes(b))return function(){return c.ek.apply(c,[a,b].concat(x(Ka.apply(0,arguments))))};if(mq[b]||nq[b])return function(){return c.g[a][b]}}return this.g[a][b]};
|
|
779
780
|
q.set=function(a,b,c){this.g[a][b]=c;Eq(this,{type:"set",targetName:a,property:b,value:c})};function zq(a,b){var c=a.O();xq=b;b.addUpdateListener(a.F);b.addMessageListener("urn:x-cast:com.google.shaka.v2",a.G);uq(a);Eq(a,{type:"init",initState:c,appData:a.o});a.j.resolve()}function Fq(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.j.reject(new U(2,8,c,b))}
|
|
780
781
|
q.Zh=function(a,b){Eq(this,{type:"call",targetName:a,methodName:b,args:Ka.apply(2,arguments)})};q.ek=function(a,b){var c=Ka.apply(2,arguments),d=new lg,e=this.J.toString();this.J++;this.i[e]=d;try{Eq(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function yq(a){var b=xq;b.removeUpdateListener(a.F);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G)}
|
|
781
|
-
function uq(a){var b=xq?"connected"==xq.status:!1;if(a.h&&!b){a.H();for(var c in a.g)a.g[c]={};wq(a)}a.h=b;a.K=b?xq.receiver.friendlyName:"";a.l.
|
|
782
|
+
function uq(a){var b=xq?"connected"==xq.status:!1;if(a.h&&!b){a.H();for(var c in a.g)a.g[c]={};wq(a)}a.h=b;a.K=b?xq.receiver.friendlyName:"";a.l.Pa()}function wq(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new U(1,7,7E3))}}function Eq(a,b){b=fq(b);var c=xq;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},bb)}catch(d){throw b=new U(2,8,8005,d),c=new S("error",(new Map).set("detail",b)),a.A("player",c),a.Yc(),b;}}var Bq=.02,Aq=!1,xq=null,Dq=null,vq=new Set;
|
|
782
783
|
function Cq(a){Dq?window.__onGCastApiAvailable=Dq:delete window.__onGCastApiAvailable;Dq=null;if(a)for(var b=t(vq),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function Hq(a,b,c,d){d=void 0===d?!1:d;gb.call(this);var e=this;this.i=a;this.h=b;this.m=this.o=this.j=this.u=this.l=null;this.G=c;this.F=d;this.A=new Map;this.g=new tq(c,function(){return Iq(e)},function(){return Jq(e)},function(f,g){return Kq(e,f,g)},function(){return Lq(e)},function(){return Mq(e)},d);Nq(this)}na(Hq,gb);q=Hq.prototype;
|
|
783
|
-
q.destroy=function(a){a&&this.g.Yc();this.m&&(this.m.release(),this.m=null);a=[];this.h&&(a.push(this.h.destroy()),this.h=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.u=this.l=this.i=null;gb.prototype.release.call(this);return Promise.all(a)};q.kc=function(){return this.l};q.$c=function(){return this.u};q.Uf=function(){return this.g.m&&Aq};q.
|
|
784
|
+
q.destroy=function(a){a&&this.g.Yc();this.m&&(this.m.release(),this.m=null);a=[];this.h&&(a.push(this.h.destroy()),this.h=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.u=this.l=this.i=null;gb.prototype.release.call(this);return Promise.all(a)};q.kc=function(){return this.l};q.$c=function(){return this.u};q.Uf=function(){return this.g.m&&Aq};q.Oa=function(){return this.g.Oa()};q.hf=function(){return this.g.hf()};
|
|
784
785
|
q.cast=function(){var a=this;return O(function(b){return 1==b.g?E(b,a.g.cast(),2):a.h?E(b,a.h.Nc(),0):b.return()})};q.Wg=function(a){this.g.Wg(a)};q.ni=function(){Gq(this.g)};q.Yc=function(){this.g.Yc()};
|
|
785
786
|
q.wh=function(a,b){b=void 0===b?!1:b;var c=this;return O(function(d){if(1==d.g){if(a==c.G&&b==c.F)return d.return();c.G=a;c.F=b;c.g.Yc();return E(d,c.g.destroy(),2)}c.g=null;c.g=new tq(a,function(){return Iq(c)},function(){return Jq(c)},function(e,f){return Kq(c,e,f)},function(){return Lq(c)},function(){return Mq(c)},b);c.g.init();F(d)})};
|
|
786
|
-
function Nq(a){a.g.init();a.m=new od;for(var b=t(iq),c=b.next();!c.done;c=b.next())a.m.s(a.i,c.value,function(f){a.g.
|
|
787
|
+
function Nq(a){a.g.init();a.m=new od;for(var b=t(iq),c=b.next();!c.done;c=b.next())a.m.s(a.i,c.value,function(f){a.g.Oa()||(f=Ua(f),a.j.dispatchEvent(f))});for(var d in Va)a.m.s(a.h,Va[d],function(f){a.g.Oa()||a.o.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.wd=e,Object.defineProperty(a.l,b.wd,{configurable:!1,enumerable:!0,get:function(f){return function(){return Oq(a,f.wd)}}(b),set:function(f){return function(g){var h=f.wd;a.g.Oa()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={wd:b.wd};a.u={};Pq(a,
|
|
787
788
|
function(f){Object.defineProperty(a.u,f,{configurable:!1,enumerable:!0,get:function(){return Qq(a,f)}})});Rq(a);a.j=new gb;a.j.vf=a.l;a.o=new gb;a.o.vf=a.u}function Rq(a){var b=new Map;Pq(a,function(c,d){b.has(d)?(d=b.get(d),c.length<d.length?a.A.set(c,d):a.A.set(d,c)):b.set(d,c)})}
|
|
788
789
|
function Pq(a,b){function c(k){return"constructor"==k||"function"!=typeof d[k]?!1:!e.has(k)}var d=a.h,e=new Set,f;for(f in d)c(f)&&(e.add(f),b(f,d[f]));a=Object.getPrototypeOf(d);for(f=Object.getPrototypeOf({});a&&a!=f;){for(var g=t(Object.getOwnPropertyNames(a)),h=g.next();!h.done;h=g.next())h=h.value,c(h)&&(e.add(h),b(h,d[h]));a=Object.getPrototypeOf(a)}}
|
|
789
790
|
function Mq(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.Zc(),startTime:null};a.i.pause();for(var c=t(kq),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.i[d];a.i.ended||(b.startTime=a.i.currentTime);c=t(pq);for(d=c.next();!d.done;d=c.next()){var e=d.value;d=e[1];e=a.h[e[0]]();b.player[d]=e}c=t(qq);for(d=c.next();!d.done;d=c.next())e=d.value,d=e[1],e=a.h[e[0]](),b.playerAfterLoad[d]=e;return b}function Iq(a){var b=new S("caststatuschanged");a.dispatchEvent(b)}
|
|
790
791
|
function Jq(a){var b=new S(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
|
|
791
792
|
function Lq(a){for(var b=t(pq),c=b.next();!c.done;c=b.next()){var d=c.value;c=d[1];d=a.g.get("player",d[0])();a.h[c](d)}var e=a.g.get("player","getAssetUri")();d=a.g.get("video","ended");b=Promise.resolve();var f=a.i.autoplay;c=null;d||(c=a.g.get("video","currentTime"));var g;(d=a.g.get("player","getTextTracks")())&&d.length&&(g=d.find(function(l){return l.active}));var h=a.g.get("player","isTextTrackVisible")();e&&(a.i.autoplay=!1,b=a.h.load(e,c));var k={};c=t(kq);for(d=c.next();!d.done;d=c.next())d=
|
|
792
793
|
d.value,k[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var l=t(kq),m=l.next();!m.done;m=l.next())m=m.value,a.i[m]=k[m];l=t(qq);for(m=l.next();!m.done;m=l.next()){var n=m.value;m=n[1];n=a.g.get("player",n[0])();a.h[m](n)}a.h.pf(h);g&&a.h.Ug(g.language,g.roles,g.forced);a.i.autoplay=f;e&&a.i.play()}},function(l){l=(new Map).set("detail",l);l=new S("error",l);a.h.dispatchEvent(l)})}
|
|
793
|
-
function Oq(a,b){if("addEventListener"==b)return function(d,e,f){return a.j.addEventListener(d,e,f)};if("removeEventListener"==b)return function(d,e,f){return a.j.removeEventListener(d,e,f)};if(a.g.
|
|
794
|
+
function Oq(a,b){if("addEventListener"==b)return function(d,e,f){return a.j.addEventListener(d,e,f)};if("removeEventListener"==b)return function(d,e,f){return a.j.removeEventListener(d,e,f)};if(a.g.Oa()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.Oa()?a.g.get("video",b):(b=a.i[b],"function"==typeof b&&(b=b.bind(a.i)),b)}
|
|
794
795
|
function Qq(a,b){a.A.has(b)&&(b=a.A.get(b));if("addEventListener"==b)return function(c,d,e){return a.o.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.o.removeEventListener(c,d,e)};if("getMediaElement"==b)return function(){return a.l};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.h.hc()};if("getDrmEngine"==b)return function(){return a.h.F};if("getAdManager"==b)return function(){return a.h.Ie()};
|
|
795
|
-
if("setVideoContainer"==b)return function(c){return a.h.dh(c)};if(a.g.
|
|
796
|
-
function Kq(a,b,c){a.g.
|
|
796
|
+
if("setVideoContainer"==b)return function(c){return a.h.dh(c)};if(a.g.Oa()){if("getManifest"==b||"drmInfo"==b)return function(){Ya(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Ya(b+"() does not work while casting!");return Promise.resolve()}}return a.g.Oa()&&0==Object.keys(a.g.g.video).length&&(mq[b]||nq[b])||!a.g.Oa()?a.h[b].bind(a.h):a.g.get("player",b)}
|
|
797
|
+
function Kq(a,b,c){a.g.Oa()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.o.dispatchEvent(c))}P("shaka.cast.CastProxy",Hq);Hq.prototype.changeReceiverId=Hq.prototype.wh;Hq.prototype.forceDisconnect=Hq.prototype.Yc;Hq.prototype.suggestDisconnect=Hq.prototype.ni;Hq.prototype.setAppData=Hq.prototype.Wg;Hq.prototype.cast=Hq.prototype.cast;Hq.prototype.receiverName=Hq.prototype.hf;Hq.prototype.isCasting=Hq.prototype.Oa;Hq.prototype.canCast=Hq.prototype.Uf;Hq.prototype.getPlayer=Hq.prototype.$c;
|
|
797
798
|
Hq.prototype.getVideo=Hq.prototype.kc;Hq.prototype.destroy=Hq.prototype.destroy;function Sq(a,b,c,d){gb.call(this);var e=this;this.g=a;this.h=b;this.j=new od;this.J={video:a,player:b};this.G=c||function(){};this.K=d||function(f){return f};this.i=null;this.H=!1;this.o=!0;this.m=0;this.F=!1;this.A=!0;this.u=this.l=null;this.I=new Ub(function(){Tq(e)});Uq(this)}na(Sq,gb);q=Sq.prototype;q.isConnected=function(){return this.H};q.Fj=function(){return this.o};q.vk=function(a){this.i=a};q.Ni=function(){this.i=null};
|
|
798
799
|
q.wk=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};q.tk=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};q.rk=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
|
|
799
800
|
q.destroy=function(){var a=this,b,c;return O(function(d){if(1==d.g)return a.j&&(a.j.release(),a.j=null),b=[],a.h&&(b.push(a.h.destroy()),a.h=null),a.I&&(a.I.stop(),a.I=null),a.g=null,a.J=null,a.G=null,a.H=!1,a.o=!0,a.l=null,a.u=null,gb.prototype.release.call(a),E(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();F(d)})};
|
|
@@ -811,14 +812,14 @@ null!=d&&(a.g.muted=d);e==a.g.volume&&f==a.g.muted||cr(a);break;case "LOAD":a.m=
|
|
|
811
812
|
function gr(a,b,c,d){a.h&&Wq(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function Wq(a,b,c,d){a.H&&(a=fq(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function cr(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.o?hr:a.h.Wd()?ir:a.g.paused?jr:kr,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);Wq(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.u)}
|
|
812
813
|
P("shaka.cast.CastReceiver",Sq);Sq.prototype.destroy=Sq.prototype.destroy;Sq.prototype.setContentArtist=Sq.prototype.rk;Sq.prototype.setContentImage=Sq.prototype.tk;Sq.prototype.setContentTitle=Sq.prototype.wk;Sq.prototype.clearContentMetadata=Sq.prototype.Ni;Sq.prototype.setContentMetadata=Sq.prototype.vk;Sq.prototype.isIdle=Sq.prototype.Fj;Sq.prototype.isConnected=Sq.prototype.isConnected;var er=.5,ar=5,hr="IDLE",kr="PLAYING",ir="BUFFERING",jr="PAUSED";function lr(a,b,c,d,e){if(d>=e)return null;for(var f=-1,g=-1,h=0;h<c.length;h++)if(c[h].some(function(y){return null!=y&&""!=y.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(y){return null!=y&&""!=y.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",n=mr(d,e,h,k,l,m);f<=g;f++){for(var p=c[f],r=-1,u=-1,v=0;v<p.length;v++)if(null!=p[v]&&""!==p[v].g.trim()){r=v;break}for(v=p.length-1;0<=v;v--)if(null!=p[v]&&""!==p[v].g.trim()){u=v;break}if(-1===
|
|
813
814
|
r||-1===u)p=nr(d,e),a.nestedCues.push(p);else{for(;r<=u;r++)if(v=p[r]){var w=v.l,A=v.i,z=v.j,C=v.h;if(w!=h||A!=k||z!=l||C!=m)n.payload&&a.nestedCues.push(n),n=mr(d,e,w,A,z,C),h=w,k=A,l=z,m=C;n.payload+=v.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=nr(d,e),a.nestedCues.push(n));n=mr(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}
|
|
814
|
-
function mr(a,b,c,d,e,f){a=new Rd(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function nr(a,b){a=new Rd(a,b,"");a.lineBreak=!0;return a}function or(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function pr(a,b){this.i=[];this.g=1;this.h=0;this.A=a;this.u=b;this.j=this.m=!1;this.l="white";this.o="black";qr(this)}function rr(a,b,c){var d="CC"+((a.A<<1|a.u)+1),e=new Rd(b,c,"");e.lineInterpretation=1;var f=sr.get(a.g);f&&(e.line=f);
|
|
815
|
+
function mr(a,b,c,d,e,f){a=new Rd(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function nr(a,b){a=new Rd(a,b,"");a.lineBreak=!0;return a}function or(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function pr(a,b){this.i=[];this.g=1;this.h=0;this.A=a;this.u=b;this.j=this.m=!1;this.l="white";this.o="black";qr(this)}function rr(a,b,c){var d="CC"+((a.A<<1|a.u)+1),e=new Rd(b,c,"");e.lineInterpretation=1;var f=sr.get(a.g);f&&(e.line=f);(b=lr(e,d,a.i,b,c))&&15<a.g+b.cue.nestedCues.length-3&&(f=sr.get(a.g+3-b.cue.nestedCues.length))&&(e.line=f);return b}function qr(a){tr(a,0,15);a.g=1}
|
|
815
816
|
function ur(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case vr:d=wr.has(c)?wr.get(c):String.fromCharCode(c);break;case xr:d=yr.get(c);break;case zr:a.i[a.g].pop();d=Ar.get(c);break;case Br:a.i[a.g].pop(),d=Cr.get(c)}d&&a.i[a.g].push(new or(d,a.m,a.j,a.o,a.l))}}function Dr(a,b,c,d){if(!(0>c||0>b))if(b>=c)for(--d;0<=d;d--)a.i[b+d]=a.i[c+d].map(function(f){return f});else for(var e=0;e<d;e++)a.i[b+e]=a.i[c+e].map(function(f){return f})}function tr(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]}
|
|
816
817
|
var vr=0,xr=1,zr=2,Br=3,wr=new Map([[39,"\u2019"],[42,"\u00e1"],[92,"\u00e9"],[92,"\u00e9"],[94,"\u00ed"],[95,"\u00f3"],[96,"\u00fa"],[123,"\u00e7"],[124,"\u00f7"],[125,"\u00d1"],[126,"\u00f1"],[127,"\u2588"]]),yr=new Map([[48,"\u00ae"],[49,"\u00b0"],[50,"\u00bd"],[51,"\u00bf"],[52,"\u2122"],[53,"\u00a2"],[54,"\u00a3"],[55,"\u266a"],[56,"\u00e0"],[57," "],[58,"\u00e8"],[59,"\u00e2"],[60,"\u00ea"],[61,"\u00ee"],[62,"\u00f4"],[63,"\u00fb"]]),Ar=new Map([[32,"\u00c1"],[33,"\u00c9"],[34,"\u00d3"],[35,
|
|
817
818
|
"\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"]]),Cr=new Map([[32,"\u00c3"],[33,"\u00e3"],[34,"\u00cd"],[35,"\u00cc"],[36,"\u00ec"],[37,"\u00d2"],[38,"\u00f2"],
|
|
818
819
|
[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"]]),sr=new Map([[1,10],[2,15.33],[3,20.66],[4,26],[5,31.33],[6,36.66],[7,42],[8,47.33],[9,52.66],[10,58],[11,63.33],[12,68.66],[13,74],[14,79.33],[15,84.66]]);function Er(a,b){this.h=Fr;this.o=new pr(a,b);this.i=new pr(a,b);this.g=this.j=new pr(a,b);this.l=0;this.m=null}function Gr(a,b,c){a.g=a.i;var d=a.g,e=null;a.h!==Hr&&a.h!==Ir&&(e=rr(d,a.l,c),c=a.i,c.g=0<c.h?c.h:0,tr(c,0,15),c=a.j,c.g=0<c.h?c.h:0,tr(c,0,15),d.g=15);a.h=Hr;d.h=b;return e}function Jr(a){a.h=Kr;a.g=a.j;a.g.h=0}function Lr(a){Za("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.o;a.h=Ir}
|
|
819
820
|
var Fr=0,Kr=1,Hr=3,Ir=4,Mr="black green blue cyan red yellow magenta black".split(" "),Nr="white green blue cyan red yellow magenta white_italics".split(" ");function Or(a,b){this.K=b;this.O=a;this.L=this.l=!1;this.m=this.o=this.I=this.N=this.J=0;this.H=Pr;this.i=[];this.g=this.h=this.j=0;this.G=this.A=!1;this.F="white";this.u="black";Qr(this)}function Qr(a){a.i=[];for(var b=0;16>b;b++)a.i.push(Rr())}function Rr(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function Sr(a,b){Tr(a)&&(a.i[a.h][a.g]=new or(b,a.G,a.A,a.u,a.F),a.g++)}function Tr(a){var b=a.g<a.m&&0<=a.g;return a.h<a.o&&0<=a.h&&b}Or.prototype.isVisible=function(){return this.l};
|
|
820
821
|
function Ur(a,b,c){var d=new Rd(a.j,b,"");d.textAlign=a.H===Vr?"left":a.H===Wr?"right":Td;var e=d.region;a.K&&(e.id+="svc"+a.K);e.id+="win"+a.O;e.height=a.o;e.width=a.m;e.heightUnits=2;e.widthUnits=2;e.viewportAnchorX=a.J;e.viewportAnchorY=a.N;e.viewportAnchorUnits=a.L?Ld:2;switch(a.I){case Xr:e.regionAnchorX=0;e.regionAnchorY=0;break;case Yr:e.regionAnchorX=50;e.regionAnchorY=0;break;case Zr:e.regionAnchorX=100;e.regionAnchorY=0;break;case $r:e.regionAnchorX=0;e.regionAnchorY=50;break;case as:e.regionAnchorX=
|
|
821
|
-
50;e.regionAnchorY=50;break;case bs:e.regionAnchorX=100;e.regionAnchorY=50;break;case cs:e.regionAnchorX=0;e.regionAnchorY=100;break;case ds:e.regionAnchorX=50;e.regionAnchorY=100;break;case es:e.regionAnchorX=100,e.regionAnchorY=100}if(c=lr(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var Vr=0,Wr=1,Pr=2,Xr=0,Yr=1,Zr=2,$r=3,as=4,bs=5,cs=6,ds=7,es=8;function fs(){this.i=[];this.h=null;this.g=0}function gs(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 hs(a.h)),a.h=null,a.g=0))}function hs(a){this.g=0;this.h=a}hs.prototype.
|
|
822
|
+
50;e.regionAnchorY=50;break;case bs:e.regionAnchorX=100;e.regionAnchorY=50;break;case cs:e.regionAnchorX=0;e.regionAnchorY=100;break;case ds:e.regionAnchorX=50;e.regionAnchorY=100;break;case es:e.regionAnchorX=100,e.regionAnchorY=100}if(c=lr(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var Vr=0,Wr=1,Pr=2,Xr=0,Yr=1,Zr=2,$r=3,as=4,bs=5,cs=6,ds=7,es=8;function fs(){this.i=[];this.h=null;this.g=0}function gs(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 hs(a.h)),a.h=null,a.g=0))}function hs(a){this.g=0;this.h=a}hs.prototype.Ca=function(){return this.g<this.h.length};hs.prototype.Ja=function(){return this.g};function is(a){if(!a.Ca())throw new U(2,2,3E3);return a.h[a.g++]}hs.prototype.skip=function(a){if(this.g+a>this.h.length)throw new U(2,2,3E3);this.g+=a};function js(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
|
|
822
823
|
function ks(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=is(b).value;b=null;c=t(ls(a,c));for(var e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=Ur(e,d,a.i)),Qr(e);return b}if(137===c)for(b=is(b).value,b=t(ls(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=is(b).value;b=null;c=t(ls(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=Ur(e,d,a.i)),e.l=!1;return b}if(139===c){c=is(b).value;
|
|
823
824
|
b=null;c=t(ls(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=Ur(e,d,a.i):e.j=d,e.l=!e.l;return b}if(140===c)return b=is(b).value,ms(a,b,d);if(143===c)return d=ms(a,255,d),ns(a),d;if(144===c)b.skip(1),d=is(b).value,a.g&&(a.g.A=0<(d&128),a.g.G=0<(d&64));else if(145===c)d=is(b).value,c=is(b).value,b.skip(1),a.g&&(b=os((c&48)>>4,(c&12)>>2,c&3),a.g.F=os((d&48)>>4,(d&12)>>2,d&3),a.g.u=b);else if(146===c)d=is(b).value,b=is(b).value,a.g&&(a=a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),
|
|
824
825
|
b.skip(1),d=is(b).value,b.skip(1),a.g&&(a.g.H=d&3);else if(152<=c&&159>=c){c=(c&15)-8;e=null!==a.h[c];if(!e){var f=new Or(c,a.i);f.j=d;a.h[c]=f}d=is(b).value;f=is(b).value;var g=is(b).value,h=is(b).value,k=is(b).value;b=is(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.G=!1,b.A=!1,b.F="white",b.u="black");b=a.h[c];b.l=0<(d&32);b.N=f&127;b.J=g;b.I=(h&240)>>4;b.L=0<(f&128);b.o=(h&15)+1;b.m=(k&63)+1;a.g=a.h[c]}}}return null}
|
|
@@ -831,15 +832,15 @@ function ts(a,b){var c=b.type;if(16===(b.vb&112)){var d=b.vb>>3&1;0===c?a.o=d:a.
|
|
|
831
832
|
"white";e=!1;7>f?d=Nr[f]:7===f&&(e=!0);a=1===(a&1);c.h!==Ir&&(f=c.g,c.h===Hr&&b!==f.g&&(c=1+b-f.h,Dr(f,c,1+f.g-f.h,f.h),tr(f,0,c-1),tr(f,b+1,15-b)),f.g=b,f.m=a,f.j=e,f.l=d,f.o="black")}else if(17===(d&247)&&32===(a&240))c.g.m=!1,c.g.j=!1,c.g.l="white",ur(c.g,vr,32),d=!1,b=Nr[(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=Mr[(a&14)>>1]),c.g.o=b;else if(17===(d&247)&&48===(a&240))ur(c.g,
|
|
832
833
|
xr,a);else if(18===(d&246)&&32===(a&224))ur(c.g,d&1?Br:zr,a);else if(20===(d&246)&&32===(a&240)){a=b.pts;d=null;switch(b.Ub){case 32:Jr(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=Gr(c,2,a);break;case 38:d=Gr(c,3,a);break;case 39:d=Gr(c,4,a);break;case 40:ur(c.g,vr,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.l=a;break;case 42:qr(c.o);Lr(c);break;case 43:Lr(c);break;case 44:b=c.i;d=null;c.h!==Ir&&(d=rr(b,c.l,a));tr(b,0,15);break;case 45:b=c.g;c.h!==Hr?d=null:(d=rr(b,c.l,a),e=b.g-b.h+1,Dr(b,
|
|
833
834
|
e-1,e,b.h),tr(b,0,e-1),tr(b,b.g,15-b.g),c.l=a);break;case 46:tr(c.j,0,15);break;case 47:b=null,c.h!==Ir&&(b=rr(c.i,c.l,a)),d=c.j,c.j=c.i,c.i=d,Jr(c),c.l=a,d=b}e=d;break a}e=null}else a=b.Ub,ur(c.g,vr,b.vb),ur(c.g,vr,a);return e}
|
|
834
|
-
function us(a,b){var c=[];try{for(;b.
|
|
835
|
+
function us(a,b){var c=[];try{for(;b.Ca();){var d=is(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=is(b).value&63);if(0!=e){a.A.add("svc"+e);a.j.has(e)||a.j.set(e,new js(e));for(var g=a.j.get(e),h=b.Ja();b.Ja()-h<f;){e=b;var k=is(e),l=k.value,m=k.pts;if(16===l){var n=is(e);l=l<<16|n.value}if(0<=l&&31>=l){var p=m;if(g.g){var r=g.g;e=null;switch(l){case 8:!Tr(r)||0>=r.g&&0>=r.h||(0>=r.g?(r.g=r.m-1,r.h--):r.g--,r.i[r.h][r.g]=null);break;case 13:r.isVisible()&&(e=Ur(r,p,g.i));if(r.h+1>=r.o){p=r;for(var u=
|
|
835
836
|
0,v=1;16>v;v++,u++)p.i[u]=p.i[v];for(v=0;1>v;v++,u++)p.i[u]=Rr()}else r.h++;r.g=0;break;case 14:r.isVisible()&&(e=Ur(r,p,g.i));r.i[r.h]=Rr();r.g=0;break;case 12:r.isVisible()&&(e=Ur(r,p,g.i)),Qr(r),p=r,p.h=0,p.g=0}var w=e}else w=null}else if(128<=l&&159>=l)w=ks(g,e,l,m);else{if(4096<=l&&4127>=l)p=l&255,8<=p&&15>=p?e.skip(1):16<=p&&23>=p?e.skip(2):24<=p&&31>=p&&e.skip(3);else if(4224<=l&&4255>=l)p=l&255,128<=p&&135>=p?e.skip(4):136<=p&&143>=p&&e.skip(5);else if(32<=l&&127>=l)e=l,g.g&&(127===e?Sr(g.g,
|
|
836
837
|
"\u266a"):Sr(g.g,String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&Sr(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(qs.has(e)){var A=qs.get(e);Sr(g.g,A)}else Sr(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?Sr(g.g,"_"):Sr(g.g,"[CC]"));w=null}(e=w)&&c.push(e)}}}}catch(z){if(z instanceof U&&3E3===z.code)Za("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw z;}return c}function vs(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b}
|
|
837
838
|
rs.prototype.getStreams=function(){return Array.from(this.A)};P("shaka.cea.CeaDecoder",rs);Jd=function(){return new rs};function ws(a){for(var b=[],c=a,d=a=0;d<c.length;)2==a&&3==c[d]?(a=0,c=[].concat(x(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 xs(){this.j=new Map;this.i=this.h=0;this.g=ys}
|
|
838
839
|
xs.prototype.init=function(a){function b(f){f=f.name;f in zs&&(c.g=zs[f])}var c=this,d=[],e=[];(new Pg).box("moov",Ug).box("mvex",Ug).W("trex",function(f){var g=f.reader;g.skip(4);g.skip(4);f=g.T();g=g.T();c.h=f;c.i=g}).box("trak",Ug).W("tkhd",function(f){var g=f.reader;f=f.version;1==f?(g.skip(8),g.skip(8)):(g.skip(4),g.skip(4));var h=g.T();1==f?g.skip(8):g.skip(4);g.skip(4);g.skip(8);g.skip(2);g.skip(2);g.skip(2);g.skip(2);g.skip(36);g.wa();g.wa();g.wa();g.wa();d.push(h)}).box("mdia",Ug).W("mdhd",
|
|
839
840
|
function(f){f=aj(f.reader,f.version);e.push(f.timescale)}).box("minf",Ug).box("stbl",Ug).W("stsd",Wg).box("avc1",b).box("avc3",b).box("hev1",b).box("hvc1",b).box("dvav",b).box("dva1",b).box("dvh1",b).box("dvhe",b).box("encv",Xg).box("sinf",Ug).box("frma",function(f){f=dj(f.reader).cb;f in zs&&(c.g=zs[f])}).parse(a,!0);if(!d.length||!e.length||d.length!=e.length)throw new U(2,2,2010);this.g==ys&&Ya("Unable to determine bitstream format for CEA parsing!");d.forEach(function(f,g){c.j.set(f,e[g])})};
|
|
840
841
|
xs.prototype.parse=function(a){var b=this;if(this.g==ys)return[];var c=[],d=0,e=[];(new Pg).box("moof",function(f){d=f.start;e=[];Ug(f)}).box("traf",function(f){e.push({baseMediaDecodeTime:null,Nd:b.h,Ge:b.i,Wh:[],timescale:9E4});Ug(f)}).W("trun",function(f){var g=e[e.length-1];f=bj(f.reader,f.version,f.flags);g.Wh.push(f)}).W("tfhd",function(f){var g=e[e.length-1];f=Zi(f.reader,f.flags);g.Nd=f.Nd||b.h;g.Ge=f.Ge||b.i;f=f.trackId;b.j.has(f)&&(g.timescale=b.j.get(f))}).W("tfdt",function(f){var g=e[e.length-
|
|
841
|
-
1];f=$i(f.reader,f.version);g.baseMediaDecodeTime=f.baseMediaDecodeTime}).box("mdat",function(f){for(var g=d-f.start-8,h=f.reader.
|
|
842
|
-
function As(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(u){return u.$h});n=[].concat.apply([],x(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].Pi);b.
|
|
842
|
+
1];f=$i(f.reader,f.version);g.baseMediaDecodeTime=f.baseMediaDecodeTime}).box("mdat",function(f){for(var g=d-f.start-8,h=f.reader.Ja(),k=t(e),l=k.next();!l.done;l=k.next()){l=l.value;if(null===l.baseMediaDecodeTime)throw Ya("Unable to find base media decode time for CEA captions!"),new U(2,2,2010);f.reader.seek(h);As(b,f.reader,l.baseMediaDecodeTime,l.timescale,l.Nd,l.Ge,g,l.Wh,c)}}).parse(a,!1);return c};
|
|
843
|
+
function As(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(u){return u.$h});n=[].concat.apply([],x(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].Pi);b.Ca();){g=b.T();var p=b.X(),r=null;r=!1;h=1;switch(a.g){case Bs:r=p&31;r=6==r;break;case Cs:h=2;b.skip(1);r=p>>1&63;r=39==r||40==r;break;default:return}if(r)for(p=0,l<n.length&&(p=n[l].kf||0),p=(c+p)/d,h=t(ws(b.Hb(g-h))),r=h.next();!r.done;r=h.next())k.push({packet:r.value,pts:p});else try{b.skip(g-h)}catch(u){break}m-=g+4;0==m&&(c=l<n.length?
|
|
843
844
|
c+(n[l].Sg||e):c+e,l++,l<n.length?m=n[l].sampleSize||f:m=f)}}P("shaka.cea.Mp4CeaParser",xs);var ys=0,Bs=1,Cs=2,zs={avc1:Bs,avc3:Bs,hev1:Cs,hvc1:Cs,dvav:Bs,dva1:Bs,dvh1:Cs,dvhe:Cs};Hd["video/mp4"]=function(){return new xs};function Ds(){this.g=null}Ds.prototype.init=function(){};Ds.prototype.parse=function(a){this.g?this.g.clearData():this.g=new vj;var b=[];a=Gb(a);if(!Cj(a))return b;a=this.g.parse(a);var c=a.Od(),d=a.Oe();a=[];switch(c.video){case "avc":a.push(6);break;case "hvc":a.push(39),a.push(40)}if(!a.length)return b;c=t(d);for(d=c.next();!d.done;d=c.next())if(d=d.value,a.includes(d.type)&&null!=d.time)for(var e=t(ws(d.data)),f=e.next();!f.done;f=e.next())b.push({packet:f.value,pts:d.time});return b};
|
|
844
845
|
P("shaka.cea.TsCeaParser",Ds);Hd["video/mp2t"]=function(){return new Ds};function Es(a,b,c){var d=Fs(a),e=null;a=[];var f=[],g=null,h=new Set(d.map(function(l){return l.keyId}));h.delete(null);var k="cenc";if(1<h.size)throw new U(2,4,4010);if(!b){f=d.filter(function(l){return"urn:mpeg:dash:sea:2012"==l.nd});if(1<f.length)throw new U(2,4,4050);f.length&&(g=Gs(f[0]));(f=d.find(function(l){return"urn:mpeg:dash:mp4protection:2011"==l.nd}))&&f.encryptionScheme&&(k=f.encryptionScheme);f=d.filter(function(l){return"urn:mpeg:dash:mp4protection:2011"==l.nd?(e=l.init||e,!1):"urn:mpeg:dash:sea:2012"!=
|
|
845
846
|
l.nd});f.length&&(a=Hs(e,k,f,c,h),0==a.length&&(a=[Mc("",k,e)]))}if(d.length&&!g&&(b||!f.length))for(a=[],b=t(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Mc(c,k,e));if(h=Array.from(h)[0]||null)for(k=t(a),b=k.next();!b.done;b=k.next())for(b=t(b.value.initData),c=b.next();!c.done;c=b.next())c.value.keyId=h;return{Ah:h,Nl:e,drmInfos:a,Rf:g,Eh:!0}}
|
|
@@ -855,30 +856,30 @@ var Ms=1,Ns=(new Map).set("com.widevine.alpha",function(a){var b=ph(a.node,"http
|
|
|
855
856
|
"Laurl"))&&"EME-1.0"===a.attributes.Lic_type&&a&&(a=lh(a))?a:""});function Ps(a,b,c,d,e,f){var g={RepresentationID:b,Number:c,SubNumber:d,Bandwidth:e,Time:f};return a.replace(/\$(RepresentationID|Number|SubNumber|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,function(h,k,l,m){if("$$"==h)return"$";var n=g[k];if(null==n)return h;"RepresentationID"==k&&l&&(l=void 0);"Time"==k&&"bigint"!=typeof n&&(.2<=Math.abs(n-Math.round(n))&&Ya("Calculated $Time$ values must be close to integers"),n=Math.round(n));switch(m){case void 0:case "d":case "i":case "u":h=n.toString();
|
|
856
857
|
break;case "o":h=n.toString(8);break;case "x":h=n.toString(16);break;case "X":h=n.toString(16).toUpperCase();break;default:h=n.toString()}l=window.parseInt(l,10)||1;return Array(Math.max(0,l-h.length)+1).join("0")+h})}
|
|
857
858
|
function Qs(a,b){var c=Rs(a,b,"timescale"),d=1;c&&(d=Ah(c)||1);c=Rs(a,b,"duration");(c=Ah(c||""))&&(c/=d);var e=Rs(a,b,"startNumber"),f=Number(Rs(a,b,"presentationTimeOffset"))||0,g=Bh(e||"");if(null==e||null==g)g=1;e=null;if(b=Ss(a,b,"SegmentTimeline")){b=kh(b,"S");e=d;a=a.va.duration||Infinity;for(var h=g,k=[],l=-f,m=0;m<b.length;++m){var n=b[m],p=b[m+1],r=th(n,"t",Bh),u=th(n,"d",Bh),v=th(n,"r",zh);n=th(n,"k",zh)||0;null!=r&&(r-=f);if(u){r=null!=r?r:l;v=v||0;if(0>v)if(p){p=th(p,"t",Bh);if(null==
|
|
858
|
-
p)break;else if(r>=p)break;v=Math.ceil((p-r)/u)-1}else{if(Infinity==a)break;else if(r/e>=a)break;v=Math.ceil((a*e-r)/u)-1}0<k.length&&r!=l&&(k[k.length-1].end=r/e);for(p=0;p<=v;++p)l=r+u,k.push({start:r/e,end:l/e,kh:r,Rb:n,pk:k.length+h}),r=l}}e=k}return{timescale:d,bb:c,le:g,ac:f/d||0,jh:f,timeline:e}}function Ts(a,b){return[b(a.M),b(a.
|
|
859
|
+
p)break;else if(r>=p)break;v=Math.ceil((p-r)/u)-1}else{if(Infinity==a)break;else if(r/e>=a)break;v=Math.ceil((a*e-r)/u)-1}0<k.length&&r!=l&&(k[k.length-1].end=r/e);for(p=0;p<=v;++p)l=r+u,k.push({start:r/e,end:l/e,kh:r,Rb:n,pk:k.length+h}),r=l}}e=k}return{timescale:d,bb:c,le:g,ac:f/d||0,jh:f,timeline:e}}function Ts(a,b){return[b(a.M),b(a.Ia),b(a.La)].filter(We)}function Rs(a,b,c){b=Ts(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=d.value.attributes[c]);d=b.next());return a}
|
|
859
860
|
function Ss(a,b,c){b=Ts(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=oh(d.value,c));d=b.next());return a}
|
|
860
|
-
function Us(a,b,c,d,e,f){for(var g=uh(a,"http://www.w3.org/1999/xlink","href"),h=uh(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=t(Object.keys(a.attributes)),l=k.next();!l.done;l=k.next()){l=l.value;var m=l.split(":"),n=gh("http://www.w3.org/1999/xlink");m[0]==n&&delete a.attributes[l]}if(5<=f)return ng(new U(2,4,4028));if("onLoad"!=h)return ng(new U(2,4,4027));var p=Lc([d],[g]);return e.request(0,Ag(p,b)).
|
|
861
|
+
function Us(a,b,c,d,e,f){for(var g=uh(a,"http://www.w3.org/1999/xlink","href"),h=uh(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=t(Object.keys(a.attributes)),l=k.next();!l.done;l=k.next()){l=l.value;var m=l.split(":"),n=gh("http://www.w3.org/1999/xlink");m[0]==n&&delete a.attributes[l]}if(5<=f)return ng(new U(2,4,4028));if("onLoad"!=h)return ng(new U(2,4,4027));var p=Lc([d],[g]);return e.request(0,Ag(p,b)).Qa(function(r){r=bh(r.data,a.tagName);if(!r)return ng(new U(2,4,4001,g));for(a.children=
|
|
861
862
|
[];r.children.length;){var u=r.children.shift();u.tagName&&(u.parent=a);a.children.push(u)}u=t(Object.keys(r.attributes));for(var v=u.next();!v.done;v=u.next())v=v.value,a.attributes[v]=r.attributes[v];return Vs(a,b,c,p[0],e,f+1)})}
|
|
862
|
-
function Vs(a,b,c,d,e,f){f=void 0===f?0:f;if(uh(a,"http://www.w3.org/1999/xlink","href")){var g=Us(a,b,c,d,e,f);c&&(g=g.
|
|
863
|
+
function Vs(a,b,c,d,e,f){f=void 0===f?0:f;if(uh(a,"http://www.w3.org/1999/xlink","href")){var g=Us(a,b,c,d,e,f);c&&(g=g.Qa(void 0,function(){return Vs(a,b,c,d,e,f)}));return g}g=[];for(var h={},k=t(jh(a)),l=k.next();!l.done;h={Rc:h.Rc},l=k.next())h.Rc=l.value,"urn:mpeg:dash:resolve-to-zero:2013"==uh(h.Rc,"http://www.w3.org/1999/xlink","href")?a.children=a.children.filter(function(m){return function(n){return n!==m.Rc}}(h)):"SegmentTimeline"!=h.Rc.tagName&&g.push(Vs(h.Rc,b,c,d,e,f));return rg(g).Qa(function(){return a})}
|
|
863
864
|
;function Ws(a,b,c,d,e,f,g){var h,k=(new Pg).W("sidx",function(l){h=Xs(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new U(2,3,3004);}
|
|
864
|
-
function Xs(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.T();if(0==k)throw new U(2,3,3005);if(0==g.version){var l=g.reader.T();var m=g.reader.T()}else l=g.reader.md(),m=g.reader.md();g.reader.skip(2);var n=g.reader.wa();a=a+g.size+m;for(m=0;m<n;m++){var p=g.reader.T(),r=(p&2147483648)>>>31;p&=2147483647;var u=g.reader.T();g.reader.skip(4);if(1==r)throw new U(2,3,3006);h.push(new Ii(l/k+c,(l+u)/k+c,function(){return f},a,a+p-1,b,c,d,e));l+=u;a+=p}g.parser.stop();return h};function Ys(a){this.h=Lb(a);this.g=new Mg(this.h,0)}Ys.prototype.
|
|
865
|
-
function Zs(a){var b=$s(a);if(7<b.length)throw new U(2,3,3002);var c=0;b=t(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=$s(a);a:{d=t(at);for(var e=d.next();!e.done;e=d.next())if(Eb(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.
|
|
866
|
-
d)}function $s(a){var b=a.g.
|
|
867
|
-
function ct(a){if(8<a.g.byteLength)throw new U(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new U(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 dt(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new Ys(a.g);for(var n=null,p=null;a.
|
|
868
|
-
function et(a){var b=new Ys(a.g);a=Zs(b);if(179!=a.id)throw new U(2,3,3013);a=ct(a);b=Zs(b);if(183!=b.id)throw new U(2,3,3012);b=new Ys(b.g);for(var c=0;b.
|
|
869
|
-
function ht(a,b,c){var d=Number(Rs(a,it,"presentationTimeOffset"))||0,e=Rs(a,it,"timescale"),f=1;e&&(f=Ah(e)||1);var g=d/f||0,h=ft(a,it,c);jt(a,h);var k=Ye(a);return{wc:function(){var l=Ss(k,it,"RepresentationIndex");var m=k.M.
|
|
870
|
-
function lt(a,b,c,d,e,f,g){var h,k,l,m,n,p,r,u,v,w,A,z,C,y,B,D,K,G;return O(function(J){if(1==J.g)return h=a.presentationTimeline,k=!a.Lb||!a.va.Zd,l=a.va.start,m=a.va.duration,n=a.M.mimeType.split("/")[1],p=b,r=null,u=[p(d,e,f,!1),"webm"==n?p(c.P(),c.
|
|
871
|
-
3,3009);I=H.g.byteOffset;H=new Ys(H.g);for(var N=null;H.
|
|
865
|
+
function Xs(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.T();if(0==k)throw new U(2,3,3005);if(0==g.version){var l=g.reader.T();var m=g.reader.T()}else l=g.reader.md(),m=g.reader.md();g.reader.skip(2);var n=g.reader.wa();a=a+g.size+m;for(m=0;m<n;m++){var p=g.reader.T(),r=(p&2147483648)>>>31;p&=2147483647;var u=g.reader.T();g.reader.skip(4);if(1==r)throw new U(2,3,3006);h.push(new Ii(l/k+c,(l+u)/k+c,function(){return f},a,a+p-1,b,c,d,e));l+=u;a+=p}g.parser.stop();return h};function Ys(a){this.h=Lb(a);this.g=new Mg(this.h,0)}Ys.prototype.Ca=function(){return this.g.Ca()};
|
|
866
|
+
function Zs(a){var b=$s(a);if(7<b.length)throw new U(2,3,3002);var c=0;b=t(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=$s(a);a:{d=t(at);for(var e=d.next();!e.done;e=d.next())if(Eb(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.Ja();else{if(8==b.length&&b[1]&224)throw new U(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.Ja()+b<=a.h.byteLength?b:a.h.byteLength-a.g.Ja();d=Lb(a.h,a.g.Ja(),b);a.g.skip(b);return new bt(c,
|
|
867
|
+
d)}function $s(a){var b=a.g.Ja(),c=a.g.X();if(0==c)throw new U(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Gb(a.h,b,c)}var at=[[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 bt(a,b){this.id=a;this.g=b}
|
|
868
|
+
function ct(a){if(8<a.g.byteLength)throw new U(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new U(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 dt(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new Ys(a.g);for(var n=null,p=null;a.Ca();){var r=Zs(a);if(187==r.id){var u=et(r);u&&(r=c*u.Fk,u=b+u.ck,null!=n&&m.push(new Ii(n+g,r+g,l,p,u-1,f,g,h,k)),n=r,p=u)}}null!=n&&m.push(new Ii(n+g,d+g,l,p,null,f,g,h,k));return m}
|
|
869
|
+
function et(a){var b=new Ys(a.g);a=Zs(b);if(179!=a.id)throw new U(2,3,3013);a=ct(a);b=Zs(b);if(183!=b.id)throw new U(2,3,3012);b=new Ys(b.g);for(var c=0;b.Ca();){var d=Zs(b);if(241==d.id){c=ct(d);break}}return{Fk:a,ck:c}};function ft(a,b,c){b=Ss(a,b,"Initialization");if(!b)return null;var d=a.M.Va(),e=b.attributes.sourceURL;e&&(d=Lc(d,[Dc(e)]));e=0;var f=null;if(b=th(b,"range",yh))e=b.start,f=b.end;c=new Gi(function(){return d},e,f,gt(a),null,null,c);c.codecs=a.M.codecs;c.mimeType=a.M.mimeType;return c}
|
|
870
|
+
function ht(a,b,c){var d=Number(Rs(a,it,"presentationTimeOffset"))||0,e=Rs(a,it,"timescale"),f=1;e&&(f=Ah(e)||1);var g=d/f||0,h=ft(a,it,c);jt(a,h);var k=Ye(a);return{wc:function(){var l=Ss(k,it,"RepresentationIndex");var m=k.M.Va();l&&(l=Dc(l.attributes.sourceURL))&&(m=Lc(m,[l]));l=kt(k);return lt(k,b,h,m,l.start,l.end,g)}}}
|
|
871
|
+
function lt(a,b,c,d,e,f,g){var h,k,l,m,n,p,r,u,v,w,A,z,C,y,B,D,K,G;return O(function(J){if(1==J.g)return h=a.presentationTimeline,k=!a.Lb||!a.va.Zd,l=a.va.start,m=a.va.duration,n=a.M.mimeType.split("/")[1],p=b,r=null,u=[p(d,e,f,!1),"webm"==n?p(c.P(),c.Wa,c.Da,!0):null],p=null,E(J,Promise.all(u),2);v=J.h;w=v[0];A=v[1]||null;z=null;C=l-g;y=l;B=m?l+m:Infinity;if("mp4"==n)var I=Ws(w,e,d,c,C,y,B);else{I=new Ys(A);if(440786851!=Zs(I).id)throw new U(2,3,3008);var H=Zs(I);if(408125543!=H.id)throw new U(2,
|
|
872
|
+
3,3009);I=H.g.byteOffset;H=new Ys(H.g);for(var N=null;H.Ca();){var L=Zs(H);if(357149030==L.id){N=L;break}}if(!N)throw new U(2,3,3010);N=new Ys(N.g);L=1E6;for(H=null;N.Ca();){var M=Zs(N);if(2807729==M.id)L=ct(M);else if(17545==M.id)if(4==M.g.byteLength)H=M.g.getFloat32(0);else if(8==M.g.byteLength)H=M.g.getFloat64(0);else throw new U(2,3,3003);}if(null==H)throw new U(2,3,3011);N=L/1E9;H*=N;L=Zs(new Ys(w));if(475249515!=L.id)throw new U(2,3,3007);I=dt(L,I,N,H,d,c,C,y,B)}z=I;D=t(z);for(K=D.next();!K.done;K=
|
|
872
873
|
D.next())G=K.value,G.codecs=a.M.codecs,G.mimeType=a.M.mimeType;h.ce(z);r=new Xk(z);k&&r.Wc(y,B,!0);return J.return(r)})}function it(a){return a.od}function kt(a){var b=Ss(a,it,"RepresentationIndex");a=Rs(a,it,"indexRange");a=yh(a||"");b&&(a=th(b,"range",yh,a));return a}function jt(a,b){mt(a,b);if(!kt(a))throw new U(2,4,4002);}function mt(a,b){var c=a.M.mimeType.split("/")[1];if(a.M.contentType!=Sc&&"mp4"!=c&&"webm"!=c)throw new U(2,4,4006);if("webm"==c&&!b)throw new U(2,4,4005);}
|
|
873
|
-
function gt(a){var b=a.M;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.jd,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function nt(a,b,c){var d=ft(a,ot,c),e=pt(a);if(!e.bb&&!e.timeline&&1<e.gd.length)throw new U(2,4,4002);if(!e.bb&&!a.va.duration&&!e.timeline&&1==e.gd.length)throw new U(2,4,4002);if(e.timeline&&0==e.timeline.length)throw new U(2,4,4002);var f=null,g=null;a.
|
|
874
|
+
function gt(a){var b=a.M;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.jd,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function nt(a,b,c){var d=ft(a,ot,c),e=pt(a);if(!e.bb&&!e.timeline&&1<e.gd.length)throw new U(2,4,4002);if(!e.bb&&!a.va.duration&&!e.timeline&&1==e.gd.length)throw new U(2,4,4002);if(e.timeline&&0==e.timeline.length)throw new U(2,4,4002);var f=null,g=null;a.La.id&&a.M.id&&(g=b[a.La.id+","+a.M.id])&&(f=g.segmentIndex);var h=qt(a.va.start,a.va.duration,a.M.Va,e,d,c,a.M.mimeType,a.M.codecs);b=!f;f?f.ae(h,a.presentationTimeline.Cb()):f=new Xk(h);a.presentationTimeline.ce(h);a.Lb&&a.va.Zd||f.Wc(a.va.start,
|
|
874
875
|
a.va.duration?a.va.start+a.va.duration:Infinity,b);g&&(g.segmentIndex=f);return{wc:function(){f&&0!=f.getNumReferences()||f.Xe(h);return Promise.resolve(f)}}}function ot(a){return a.bc}function pt(a){var b=rt(a);a=Qs(a,ot);var c=a.le;0==c&&(c=1);var d=0;a.bb?d=a.bb*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{bb:a.bb,startTime:d,le:c,ac:a.ac,timeline:a.timeline,gd:b}}
|
|
875
876
|
function qt(a,b,c,d,e,f,g,h){var k=d.gd.length;d.timeline&&d.timeline.length!=d.gd.length&&(k=Math.min(d.timeline.length,d.gd.length));for(var l=a-d.ac,m=b?a+b:Infinity,n=[],p=d.startTime,r={},u=0;u<k;r={Hd:r.Hd,Cd:r.Cd},u++){r.Cd=d.gd[u];var v=p;p=void 0;p=null!=d.bb?v+d.bb:d.timeline?d.timeline[u].end:v+b;r.Hd=null;v=new Ii(a+v,a+p,function(w){return function(){null==w.Hd&&(w.Hd=Lc(c(),[w.Cd.Tj]));return w.Hd}}(r),r.Cd.start,r.Cd.end,e,l,a,m,[],"",null,null,Ji,f);v.codecs=h;v.mimeType=g;n.push(v)}return n}
|
|
876
|
-
function rt(a){return[a.M.bc,a.
|
|
877
|
-
(p=d.segmentIndex);var r=a.va.start,u=a.va.duration?r+a.va.duration:Infinity,v=!(a.Lb&&a.va.Zd);p?(c=p,yt(c,m,r,u,v,l),c.eb(a.presentationTimeline.Cb())):p=new zt(m,a.M.id,a.bandwidth,a.M.
|
|
877
|
+
function rt(a){return[a.M.bc,a.Ia.bc,a.La.bc].filter(We).map(function(b){return kh(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.attributes.indexRange&&!a.Ag&&(a.Ag=!0);var c=Dc(b.attributes.media);b=th(b,"mediaRange",yh,{start:0,end:null});return{Tj:c,start:b.start,end:b.end}})};function st(a,b,c,d,e,f,g,h,k){k||a.M.cd||(a.M.cd=Rs(a,tt,"initialization"));var l=a.M.cd?ut(a,g):null,m=vt(a);wt(m);var n=Ye(a);if(m.Vd)return mt(a,l),{wc:function(){var w=Ps(m.Vd,n.M.id,null,null,n.bandwidth||null,null);w=Lc(n.M.Va(),[w]);return lt(n,b,l,w,0,null,m.ac)}};if(m.bb)return d||"image"===a.Ia.contentType||(a.presentationTimeline.Jg(m.bb),a.presentationTimeline.$e(a.va.start)),{wc:function(){return xt(n,m,e,l,f,g,h)}};var p=null;d=d=null;a.La.id&&a.M.id&&(d=a.La.id+","+a.M.id,d=c[d])&&
|
|
878
|
+
(p=d.segmentIndex);var r=a.va.start,u=a.va.duration?r+a.va.duration:Infinity,v=!(a.Lb&&a.va.Zd);p?(c=p,yt(c,m,r,u,v,l),c.eb(a.presentationTimeline.Cb())):p=new zt(m,a.M.id,a.bandwidth,a.M.Va,r,u,l,v,g,a.M.Tg);m.timeline&&"image"!==a.Ia.contentType&&a.presentationTimeline.Vh(m.timeline,r);d&&a.Lb&&(d.segmentIndex=p);return{wc:function(){p instanceof zt&&0==p.getNumReferences()&&yt(p,m,r,u,v,l);return Promise.resolve(p)}}}function tt(a){return a.mc}
|
|
878
879
|
function vt(a){var b=Qs(a,tt),c=Rs(a,tt,"media"),d=Rs(a,tt,"index");return{bb:b.bb,timescale:b.timescale,le:b.le,ac:b.ac,jh:b.jh,timeline:b.timeline,hd:c&&Dc(c),Vd:d,mimeType:a.M.mimeType,codecs:a.M.codecs}}function wt(a){var b=a.Vd?1:0;b+=a.timeline?1:0;b+=a.bb?1:0;if(0==b)throw new U(2,4,4002);1!=b&&(a.Vd&&(a.timeline=null),a.bb=null);if(!a.Vd&&!a.hd)throw new U(2,4,4002);}
|
|
879
880
|
function xt(a,b,c,d,e,f,g){function h(H){var N=(H-v)*u,L=N+b.ac,M=N+n;N=M+u;var Q=Math.min(N,l());M=new Ii(M,Q,function(){var T=L*w;"BigInt"in window&&T>Number.MAX_SAFE_INTEGER&&(T=BigInt(L)*BigInt(w));T=Ps(A,C,H,null,z,T);return Lc(y(),[T])},0,null,d,B,n,l(),[],"",null,null,Ji,f);M.codecs=a.M.codecs;M.mimeType=a.M.mimeType;M.i=N;return M}function k(){var H=[Math.max(m.Cb(),n),Math.min(m.ic(),l())].map(function(N){return N-n});H=[Math.ceil(H[0]/u),Math.ceil(H[1]/u)-1];a.M.Ya&&H[1]++;return H.map(function(N){return N+
|
|
880
|
-
v})}function l(){var H=null!=p&&e[p]||r;return H?n+H:Infinity}var m=a.presentationTimeline,n=a.va.start,p=a.
|
|
881
|
-
h(I);L.push(M);I++}return H>l()&&!L.length?null:L})}return Promise.resolve(J)}function ut(a,b){var c=a.M.cd;c||(c=Rs(a,tt,"initialization"));if(!c)return null;c=Dc(c);var d=a.M.id,e=a.bandwidth||null,f=a.M.
|
|
881
|
+
v})}function l(){var H=null!=p&&e[p]||r;return H?n+H:Infinity}var m=a.presentationTimeline,n=a.va.start,p=a.La.id,r=a.va.duration,u=b.bb,v=b.le,w=b.timescale,A=b.hd,z=a.bandwidth||null,C=a.M.id,y=a.M.Va,B=n-b.ac,D=k();c=a.Lb?Math.max(D[0],D[1]-c+1):D[0];g=g||D[1];D=[];for(var K=c;K<=g;++K){var G=h(K);D.push(G)}var J=new Xk(D);D=m.ic()<l();K=m.U();if(D||K){var I=Math.max(c,g+1);c=u;a.M.Ya&&(c=.1);J.tf(c,function(){var H=m.Cb();J.eb(H);var N=t(k());N.next();N=N.next().value;for(var L=[];I<=N;){var M=
|
|
882
|
+
h(I);L.push(M);I++}return H>l()&&!L.length?null:L})}return Promise.resolve(J)}function ut(a,b){var c=a.M.cd;c||(c=Rs(a,tt,"initialization"));if(!c)return null;c=Dc(c);var d=a.M.id,e=a.bandwidth||null,f=a.M.Va;b=new Gi(function(){var g=Ps(c,d,null,null,e,null);return Lc(f(),[g])},0,null,gt(a),null,null,b);b.codecs=a.M.codecs;b.mimeType=a.M.mimeType;return b}
|
|
882
883
|
function zt(a,b,c,d,e,f,g,h,k,l){Xk.call(this,[]);this.h=a;this.H=b;this.F=c;this.G=d;this.i=e;this.l=f;this.u=g;this.A=k;this.I=l;h&&At(this)}na(zt,Xk);q=zt.prototype;q.getNumReferences=function(){return this.h?this.h.timeline.length:0};q.release=function(){Xk.prototype.release.call(this);this.h=null};
|
|
883
884
|
q.eb=function(a){if(this.h){for(var b=0,c=this.h.timeline,d=0;d<c.length;d+=1)if(c[d].end+this.i<=a)b+=1;else break;0<b&&(this.h.timeline=c.slice(b),this.g.length>=b&&(this.g=this.g.slice(b)),this.j+=b,0===this.getNumReferences()&&this.release())}};
|
|
884
885
|
function yt(a,b,c,d,e,f){Bt(a,f);if(a.h){c=a.h.timeline;a.h.hd=b.hd;if(c.length){var g=c[c.length-1];b=b.timeline.filter(function(h){return h.start>=g.end})}else b=b.timeline.slice();0<b.length&&a.h.timeline.push.apply(a.h.timeline,x(b));a.l!==d&&(a.l=d)}else a.h=b,a.i=c,a.l=d;e&&At(a)}function Bt(a,b){if(a.u!==b){a.u=b;a=t(a.g);for(var c=a.next();!c.done;c=a.next())(c=c.value)&&Li(c,b)}}
|
|
@@ -886,12 +887,12 @@ function At(a){if(!a.o){for(var b=a.h.timeline;b.length;)if(b[b.length-1].start>
|
|
|
886
887
|
q.get=function(a){var b=this;a-=this.j;if(0>a||a>=this.getNumReferences()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.hd,e=this.h.timeline[a],f=e.pk,g=this.h.jh+e.kh;c=this.i-this.h.ac;var h=this.i+e.end,k=h;a===this.getNumReferences()-1&&Infinity!==this.l&&(k=this.l);for(var l=this.h.codecs,m=this.h.mimeType,n=[],p=(e.end-e.start)/e.Rb,r={},u=0;u<e.Rb;r={Ed:r.Ed,Hf:r.Hf},u++){var v=e.start+p*u,w=v+p;r.Hf=u+1;r.Ed=null;v=new Ii(this.i+v,this.i+w,function(A){return function(){if(!b.h)return[];
|
|
887
888
|
null==A.Ed&&(A.Ed=Ct(b.h.hd,b.H,f,b.F,g,A.Hf,b.G));return A.Ed}}(r),0,null,this.u,c,this.i,this.l,[],"",null,null,Ji,this.A);v.codecs=l;v.mimeType=m;0==this.I?0<u&&v.Ve():0!=u%this.I&&v.Ve();n.push(v)}c=new Ii(this.i+e.start,k,function(){return 0<e.Rb?[]:Ct(d,b.H,f,b.F,g,null,b.G)},0,null,this.u,c,this.i,this.l,n,"",null,null,Ji,this.A,0<e.Rb);c.codecs=l;c.mimeType=m;c.i=h;this.g[a]=c}return c};
|
|
888
889
|
function Ct(a,b,c,d,e,f,g){a=Ps(a,b,c,f,d||null,e);return Lc(g(),[a]).map(function(h){return h.toString()})};function Dt(a){var b=Je(a),c=b.split("/")[0];a=Ke(a);return{type:c,mimeType:b,codecs:a,language:null,height:null,width:null,channelCount:null,sampleRate:null,closedCaptions:new Map,oe:null,colorGamut:null}}
|
|
889
|
-
function Et(a,b){function c(y){w=y.name;var B=y.reader;B.skip(24);var D=B.wa(),K=B.wa();B.skip(50);n=String(D);m=String(K);y.reader.
|
|
890
|
-
k=!0;break;case "mp4a":f.push("mp4a.40.2");h=!0;break;case "ac-3":case "ec-3":case "ac-4":case "opus":case "flac":f.push(y),h=!0}}var f=[],g=[],h=!1,k=!1,l=null,m=null,n=null,p=null,r=null,u=null,v=null,w;(new Pg).box("moov",Ug).box("trak",Ug).box("mdia",Ug).W("mdhd",function(y){l=aj(y.reader,y.version).language}).box("minf",Ug).box("stbl",Ug).W("stsd",Wg).box("mp4a",function(y){var B=cj(y.reader);p=B.channelCount;r=B.sampleRate;y.reader.
|
|
891
|
-
"mp4a",D,K;y.
|
|
890
|
+
function Et(a,b){function c(y){w=y.name;var B=y.reader;B.skip(24);var D=B.wa(),K=B.wa();B.skip(50);n=String(D);m=String(K);y.reader.Ca()&&Ug(y)}function d(y){var B=cj(y.reader);p=B.channelCount;r=B.sampleRate;e(y.name)}function e(y){y=y.toLowerCase();switch(y){case "avc1":case "avc3":g.push(y+".42E01E");k=!0;break;case "hev1":case "hvc1":g.push(y+".1.6.L93.90");k=!0;break;case "dvh1":case "dvhe":g.push(y+".05.04");k=!0;break;case "vp09":g.push(y+".00.10.08");k=!0;break;case "av01":g.push(y+".0.01M.08");
|
|
891
|
+
k=!0;break;case "mp4a":f.push("mp4a.40.2");h=!0;break;case "ac-3":case "ec-3":case "ac-4":case "opus":case "flac":f.push(y),h=!0}}var f=[],g=[],h=!1,k=!1,l=null,m=null,n=null,p=null,r=null,u=null,v=null,w;(new Pg).box("moov",Ug).box("trak",Ug).box("mdia",Ug).W("mdhd",function(y){l=aj(y.reader,y.version).language}).box("minf",Ug).box("stbl",Ug).W("stsd",Wg).box("mp4a",function(y){var B=cj(y.reader);p=B.channelCount;r=B.sampleRate;y.reader.Ca()?Ug(y):e(y.name)}).box("esds",function(y){y=y.reader;for(var B=
|
|
892
|
+
"mp4a",D,K;y.Ca();){D=y.X();for(var G=y.X();G&128;)G=y.X();if(3==D)y.wa(),G=y.X(),G&128&&y.wa(),G&64&&y.skip(y.X()),G&32&&y.wa();else if(4==D)K=y.X(),y.skip(12);else if(5==D)break}K&&(B+="."+fj(K),5==D&&y.Ca()&&(D=y.X(),K=(D&248)>>3,31===K&&y.Ca()&&(K=32+((D&7)<<3)+((y.X()&224)>>5)),B+="."+K));f.push(B);h=!0}).box("ac-3",d).box("ec-3",d).box("ac-4",d).box("Opus",d).box("fLaC",d).box("avc1",c).box("avc3",c).box("hev1",c).box("hvc1",c).box("dva1",c).box("dvav",c).box("dvh1",c).box("dvhe",c).box("vp09",
|
|
892
893
|
c).box("av01",c).box("avcC",function(y){var B=w||"";switch(w){case "dvav":B="avc3";break;case "dva1":B="avc1"}y=y.reader;y.skip(1);y=B+"."+fj(y.X())+fj(y.X())+fj(y.X());g.push(y);k=!0}).box("hvcC",function(y){var B=w||"";switch(w){case "dvh1":B="hvc1";break;case "dvhe":B="hev1"}var D=y.reader;D.skip(1);y=D.X();var K=["","A","B","C"][y>>6],G=y&31,J=D.T(),I=(y&32)>>5?"H":"L";y=[D.X(),D.X(),D.X(),D.X(),D.X(),D.X()];D=D.X();for(var H=0,N=0;32>N;N++){H|=J&1;if(31==N)break;H<<=1;J>>=1}B=B+("."+K+G)+("."+
|
|
893
894
|
fj(H,!0));B+="."+I+D;K="";for(G=y.length;G--;)if((I=y[G])||K)K="."+I.toString(16).toUpperCase()+K;B+=K;g.push(B);k=!0}).box("dvcC",function(y){var B=w||"";switch(w){case "hvc1":B="dvh1";break;case "hev1":B="dvhe";break;case "avc1":B="dva1";break;case "avc3":B="dvav"}var D=y.reader;D.skip(2);y=D.X();D=D.X();g.push(B+"."+gj(y>>1&127)+"."+gj(y<<5&32|D>>3&31));k=!0}).W("vpcC",function(y){var B=w||"",D=y.reader;y=D.X();var K=D.X();D=D.X()>>4&15;g.push(B+"."+gj(y)+"."+gj(K)+"."+gj(D));k=!0}).box("av1C",
|
|
894
|
-
function(y){var B=w||"",D=y.reader;D.skip(1);y=D.X();D=D.X();var K=y>>>5,G=(D&64)>>6;g.push(B+"."+K+"."+gj(y&31)+(D>>>7?"H":"M")+"."+gj(2===K&&G?(D&32)>>5?12:10:G?10:8)+"."+((D&16)>>4)+"."+((D&8)>>3)+((D&4)>>2)+(D&3)+"."+gj(1)+"."+gj(1)+"."+gj(1)+".0");k=!0}).box("enca",Yg).box("encv",Xg).box("sinf",Ug).box("frma",function(y){y=dj(y.reader).cb;e(y)}).box("colr",function(y){g=g.map(function(K){if(K.startsWith("av01.")){var G=y.reader,J=G.
|
|
895
|
+
function(y){var B=w||"",D=y.reader;D.skip(1);y=D.X();D=D.X();var K=y>>>5,G=(D&64)>>6;g.push(B+"."+K+"."+gj(y&31)+(D>>>7?"H":"M")+"."+gj(2===K&&G?(D&32)>>5?12:10:G?10:8)+"."+((D&16)>>4)+"."+((D&8)>>3)+((D&4)>>2)+(D&3)+"."+gj(1)+"."+gj(1)+"."+gj(1)+".0");k=!0}).box("enca",Yg).box("encv",Xg).box("sinf",Ug).box("frma",function(y){y=dj(y.reader).cb;e(y)}).box("colr",function(y){g=g.map(function(K){if(K.startsWith("av01.")){var G=y.reader,J=G.Ja(),I=G.Hb(4);var H=String.fromCharCode(I[0]);H+=String.fromCharCode(I[1]);
|
|
895
896
|
H+=String.fromCharCode(I[2]);H+=String.fromCharCode(I[3]);if("nclx"===H){I=G.wa();H=G.wa();var N=G.wa(),L=G.X()>>7,M=K.split(".");10==M.length&&(M[6]=gj(I),M[7]=gj(H),M[8]=gj(N),M[9]=String(L),K=M.join("."))}G.seek(J)}return K});var B=ej(y.reader),D=B.colorGamut;u=B.oe;v=D}).parse(a||b,!0);if(!f.length&&!g.length)return null;var A=h&&!k,z=new Map;if(k){var C=new Ed("video/mp4");a&&C.init(a);C.i(b);a=t(C.j());for(b=a.next();!b.done;b=a.next())b=b.value,z.set(b,b);C.g()}return{type:A?"audio":"video",
|
|
896
897
|
mimeType:A?"audio/mp4":"video/mp4",codecs:Ft(f.concat(g)).join(", "),language:l,height:m,width:n,channelCount:p,sampleRate:r,closedCaptions:z,oe:u,colorGamut:v}}function Ft(a){var b=new Set,c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=Ie(d);b.has(e)||(c.push(d),b.add(e))}b=Tc("audio",c);d=Tc("video",c);a=Tc(Sc,c);d=Gt(d);b=b.concat(d).concat(a);return c.length&&!b.length?c:b}
|
|
897
898
|
function Gt(a){if(1>=a.length)return a;var b=a.find(function(c){return c.startsWith("dvh1.")||c.startsWith("dvhe.")||c.startsWith("dav1.")});return b?td('video/mp4; codecs="'+b+'"')?[b]:a.filter(function(c){return c!=b}):a}function Ht(a){var b=null;(new Pg).box("moov",Ug).box("trak",Ug).box("mdia",Ug).box("minf",Ug).box("stbl",Ug).W("stsd",Wg).box("encv",Xg).box("enca",Yg).box("sinf",Ug).box("schi",Ug).W("tenc",function(c){c=c.reader;c.X();c.X();c.X();c.X();b=Jc(c.Hb(16))}).parse(a,!0);return b};function It(a){this.o=null;this.A=a;this.I=new tg;this.i=[];this.h=null;this.m=[];this.F=null;this.H=[];this.G=300;this.l=new Map;this.j=new Map;this.g=null;this.u="UNKNOWN"}It.prototype.configure=function(a){this.o=a};It.prototype.destroy=function(){this.A=this.o=null;this.i=[];this.h=null;this.m=[];this.H=[];this.l.clear();null!=this.g&&(this.g.stop(),this.g=null);return this.I.destroy()};It.prototype.setManifestType=function(a){this.u=a};
|
|
@@ -904,8 +905,8 @@ function Pt(a,b){var c=[],d=[],e=[],f=[];a=t(a);for(var g=a.next();!g.done;g=a.n
|
|
|
904
905
|
q.Xf=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m,n,p,r,u,v,w,A,z,C,y,B,D,K,G,J,I,H,N,L,M,Q,T,R;return O(function(ra){if(1==ra.g){e=Uc;if(!b&&1==a.length)return f=Pt(a,!1),g=f.rh,h=f.wi,k=f.oi,l=f.Mh,d.h=Array.from(g[0].values()),d.g=Array.from(h[0].values()),d.l=Array.from(k[0].values()),d.i=Array.from(l[0].values()),ra.B(2);m=c?d.m.size:0;n=-1;for(p=0;p<a.length;p++)r=a[p],d.m.has(r.id)||(d.m.add(r.id),-1==n&&(n=p));if(-1==n)return ra.return();u=Pt(a,!0);v=u.rh;w=u.wi;A=u.oi;z=u.Mh;
|
|
905
906
|
return E(ra,Promise.all([Vt(d,d.h,v,n,Wt,Xt,m),Vt(d,d.g,w,n,Wt,Xt,m),Vt(d,d.l,A,n,Wt,Xt,m),Vt(d,d.i,z,n,Wt,Xt,m)]),2)}C=0;y=[];if(d.g.length&&d.h.length)for(I=t(d.h),H=I.next();!H.done;H=I.next())for(N=H.value,L=t(d.g),M=L.next();!M.done;M=L.next())Q=M.value,T=Pb(N.drmInfos,Q.drmInfos),N.drmInfos.length&&Q.drmInfos.length&&!T.length||(R=C++,y.push({id:R,language:N.language,disabledUntilTime:0,primary:N.primary,audio:N,video:Q,bandwidth:(N.bandwidth||0)+(Q.bandwidth||0),drmInfos:T,allowedByApplication:!0,
|
|
906
907
|
allowedByKeySystem:!0,decodingInfos:[]}));else for(B=d.g.length?d.g:d.h,D=t(B),K=D.next();!K.done;K=D.next())G=K.value,J=C++,y.push({id:J,language:G.language,disabledUntilTime:0,primary:G.primary,audio:G.type==e.aa?G:null,video:G.type==e.ra?G:null,bandwidth:G.bandwidth||0,drmInfos:G.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});d.j=y;F(ra)})};
|
|
907
|
-
function Yt(a){var b,c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,A,z,C,y,B,D,K,G,J,I,H,N,L,M;return O(function(Q){switch(Q.g){case 1:b=Uc;if(1==a.length)return Q.return(a[0]);c=a.map(function(T){return new Map(T.filter(function(R){return R.type===b.aa}).map(function(R){return[Qt(R),R]}))});d=a.map(function(T){return new Map(T.filter(function(R){return R.type===b.ra}).map(function(R){return[Rt(R),R]}))});e=a.map(function(T){return new Map(T.filter(function(R){return R.type===b.
|
|
908
|
-
R]}))});f=a.map(function(T){return new Map(T.filter(function(R){return R.type===b.Of}).map(function(R){return[Tt(R),R]}))});g=t(e);for(h=g.next();!h.done;h=g.next())k=h.value,l=Zt(b.
|
|
908
|
+
function Yt(a){var b,c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,A,z,C,y,B,D,K,G,J,I,H,N,L,M;return O(function(Q){switch(Q.g){case 1:b=Uc;if(1==a.length)return Q.return(a[0]);c=a.map(function(T){return new Map(T.filter(function(R){return R.type===b.aa}).map(function(R){return[Qt(R),R]}))});d=a.map(function(T){return new Map(T.filter(function(R){return R.type===b.ra}).map(function(R){return[Rt(R),R]}))});e=a.map(function(T){return new Map(T.filter(function(R){return R.type===b.Ga}).map(function(R){return[St(R),
|
|
909
|
+
R]}))});f=a.map(function(T){return new Map(T.filter(function(R){return R.type===b.Of}).map(function(R){return[Tt(R),R]}))});g=t(e);for(h=g.next();!h.done;h=g.next())k=h.value,l=Zt(b.Ga),k.set(St(l),l);m=t(f);for(n=m.next();!n.done;n=m.next())p=n.value,r=Zt(b.Of),p.set(Tt(r),r);u=new Ot;return E(Q,Vt(u,[],c,0,$t,au,0),2);case 2:return v=Q.h,E(Q,Vt(u,[],d,0,$t,au,0),3);case 3:return w=Q.h,E(Q,Vt(u,[],e,0,$t,au,0),4);case 4:return A=Q.h,E(Q,Vt(u,[],f,0,$t,au,0),5);case 5:z=Q.h;C=0;if(w.length&&v.length)for(G=
|
|
909
910
|
t(v),J=G.next();!J.done;J=G.next())for(I=J.value,H=t(w),N=H.next();!N.done;N=H.next())L=N.value,M=C++,L.variantIds.push(M),I.variantIds.push(M);else for(y=w.concat(v),B=t(y),D=B.next();!D.done;D=B.next())K=D.value,K.variantIds=[C++];return Q.return(w.concat(v).concat(A).concat(z))}})}
|
|
910
911
|
function Vt(a,b,c,d,e,f,g){var h,k,l,m,n,p,r,u,v,w,A,z,C,y,B,D,K,G;return O(function(J){switch(J.g){case 1:h=[];for(k=0;k<c.length;k++)k>=d?h.push(new Set(c[k].values())):h.push(new Set);l=t(b);m=l.next();case 2:if(m.done){J.B(4);break}n=m.value;return E(J,bu(a,n,c,d,f,h,g),5);case 5:p=J.h;if(!p)throw new U(2,4,4037);m=l.next();J.B(2);break;case 4:r=t(h);for(u=r.next();!u.done;u=r.next())for(v=u.value,w=t(v),A=w.next();!A.done;A=w.next())z=A.value,(C=cu(a,z,c,e,f,h))&&b.push(C);y=t(h);for(u=y.next();!u.done;u=
|
|
911
912
|
y.next())for(B=u.value,D={},K=t(B),A=K.next();!A.done;D={ze:D.ze},A=K.next())if(D.ze=A.value,!du(D.ze)&&(G=b.some(function(I){return function(H){return eu(a,I.ze,H)}}(D))))throw new U(2,4,4037);return J.return(b)}})}function bu(a,b,c,d,e,f,g){return O(function(h){if(1==h.g)return fu(a,c,b,0<g),b.matchedStreams?b.segmentIndex?E(h,gu(b,d+g),2):h.B(2):h.return(!1);hu(b,d,e,f,g);return h.return(!0)})}
|
|
@@ -930,9 +931,9 @@ function Ut(a){return{id:0,originalId:"",groupId:null,createSegmentIndex:functio
|
|
|
930
931
|
function ru(a,b,c){if(b==a&&a!=c)return tu;if(c==a&&a!=b)return su;if(b>a){if(c<=a||c-a<b-a)return su;if(c-a>b-a)return tu}else{if(c>a)return tu;if(a-c<a-b)return su;if(a-c>a-b)return tu}return vu}function uu(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?su:b<a?tu:vu}function du(a){switch(a.type){case Sc:return!a.language;case "image":return!a.tilesLayout;default:return!1}}
|
|
931
932
|
function Rt(a){return JSON.stringify([a.fastSwitching,a.width,a.frameRate,a.codecs,a.mimeType,a.label,a.roles,a.closedCaptions?Array.from(a.closedCaptions.entries()):null,a.bandwidth])}function Qt(a){return JSON.stringify([a.fastSwitching,a.channelsCount,a.language,a.bandwidth,a.label,a.codecs,a.mimeType,a.roles,a.audioSamplingRate,a.primary])}function St(a){return JSON.stringify([a.language,a.label,a.codecs,a.mimeType,a.bandwidth,a.roles])}
|
|
932
933
|
function Tt(a){return JSON.stringify([a.width,a.codecs,a.mimeType])}P("shaka.util.PeriodCombiner",Ot);Ot.prototype.setUseStreamOnce=Ot.prototype.ki;Ot.prototype.setAllowMultiTypeVariants=Ot.prototype.ai;Ot.prototype.combinePeriods=Ot.prototype.Xf;Ot.prototype.getImageStreams=Ot.prototype.bj;Ot.prototype.getTextStreams=Ot.prototype.ug;Ot.prototype.getVariants=Ot.prototype.xj;var su=1,vu=0,tu=-1,qu=new Map;function wu(a,b){var c=new DOMParser,d=xu.value()(a);a=null;try{a=c.parseFromString(d,"text/xml")}catch(e){return null}c=a.documentElement;if(!c||c.getElementsByTagName("parsererror").length||c.tagName!=b)return null;if(!("createNodeIterator"in document))return c;for(b=document.createNodeIterator(a,NodeFilter.SHOW_ALL);a=b.nextNode();)if(a instanceof HTMLElement||a instanceof SVGElement)return null;return c}function yu(a,b){try{var c=zc(a);return wu(c,b)}catch(d){return null}}
|
|
933
|
-
var xu=new Nb(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 zu(){var a=this;this.i=this.g=null;this.A=[];this.l=null;this.R=1;this.F=[];this.j={Ze:"",type:"",profiles:[],Yb:null,Ya:0,
|
|
934
|
-
q.configure=function(a){var b=this.i&&a.dash.updatePeriod!=this.g.dash.updatePeriod&&0<=a.dash.updatePeriod;this.g=a;b&&this.l&&this.l.presentationTimeline.U()&&this.I.
|
|
935
|
-
q.stop=function(){for(var a=t(Object.values(this.u)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.m&&this.m.release();this.g=this.i=null;this.A=[];this.l=null;this.u={};this.o.clear();this.j={Ze:"",type:"",profiles:[],Yb:null,Ya:0,
|
|
934
|
+
var xu=new Nb(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 zu(){var a=this;this.i=this.g=null;this.A=[];this.l=null;this.R=1;this.F=[];this.j={Ze:"",type:"",profiles:[],Yb:null,Ya:0,Va:null,ge:0};this.o=new Map;this.u={};this.N={};this.m=new Ot;this.H=0;this.O=new ld(5);this.I=new Ub(function(){Au(a)});this.L=new tg;this.J=null;this.S=[];this.K=Infinity;this.G=!1;this.h=null}q=zu.prototype;
|
|
935
|
+
q.configure=function(a){var b=this.i&&a.dash.updatePeriod!=this.g.dash.updatePeriod&&0<=a.dash.updatePeriod;this.g=a;b&&this.l&&this.l.presentationTimeline.U()&&this.I.Pa();this.h&&this.h.configure(this.g);this.m&&(this.m.ai(this.g.dash.multiTypeVariantsAllowed&&vd()),this.m.ki(this.g.dash.useStreamOnceInPeriodFlattening))};q.start=function(a,b){var c=this,d;return O(function(e){if(1==e.g)return c.G=b.isLowLatencyMode(),c.A=[a],c.i=b,E(e,Bu(c),2);d=e.h;c.i&&Cu(c,d);if(!c.i)throw new U(2,7,7001);return e.return(c.l)})};
|
|
936
|
+
q.stop=function(){for(var a=t(Object.values(this.u)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.m&&this.m.release();this.g=this.i=null;this.A=[];this.l=null;this.u={};this.o.clear();this.j={Ze:"",type:"",profiles:[],Yb:null,Ya:0,Va:null,ge:0};this.m=null;null!=this.I&&(this.I.stop(),this.I=null);this.h&&this.h.destroy();return this.L.destroy()};
|
|
936
937
|
q.update=function(){var a=this,b;return O(function(c){if(1==c.g)return ta(c,2),E(c,Bu(a),4);if(2!=c.g)return va(c,0);b=wa(c);if(!a.i||!b)return c.return();a.i.onError(b);F(c)})};q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(a){if(this.l&&this.l.presentationTimeline.U()){var b=a.video||a.audio;if(b&&b.segmentIndex){a=this.l.presentationTimeline.ic();var c=b.segmentIndex.find(a);null!=c&&(b=b.segmentIndex.get(c))&&(this.H=b.endTime-a,Cu(this,0))}}};
|
|
937
938
|
q.banLocation=function(a){this.h&&this.h.banLocation(a)};
|
|
938
939
|
function Bu(a){var b,c,d,e,f,g,h,k,l;return O(function(m){if(1==m.g)return b="MPD",c=Du(a),d=a.A,c.length?(d=c,b="Patch"):1<a.A.length&&a.h&&(e=Nt(a.h,"Location",!0),e.length&&(d=e)),f=Ag(d,a.g.retryParameters),g=Date.now(),E(m,Eu(a,f,0,{type:4}),2);if(3!=m.g){h=m.h;if(!a.i)return m.return(0);h.uri&&h.uri!=h.originalUri&&!a.A.includes(h.uri)&&a.A.unshift(h.uri);return E(m,Fu(a,h.data,h.uri,b),3)}k=Date.now();l=(k-g)/1E3;a.O.sample(1,l);return m.return(l)})}
|
|
@@ -940,43 +941,43 @@ function Fu(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u;return O(function(v){if(1==v.g){e
|
|
|
940
941
|
p=a.g.dash.xlinkFailGracefully;r=Vs(k,a.g.retryParameters,p,c,a.i.networkingEngine);ug(a.L,r);return E(v,r.promise,2)}u=v.h;return v.return(Hu(a,u,c))})}
|
|
941
942
|
function Hu(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,A,z,C,y,B,D,K,G,J,I,H,N,L,M,Q,T,R,ra,sa,Ca,Ea,Ia,Pa,Ja,db,Fa,$a,xb,ad,ye,Fd,Rc,ze,Ae,Be,Gd,oj,dh,pj,qj,eh,Ce;return O(function(rc){switch(rc.g){case 1:a.h&&a.h.l.clear();d=[c];e=[];f=new Map;g=kh(b,"Location");h=t(g);for(k=h.next();!k.done;k=h.next())if(l=k.value,m=l.attributes.serviceLocation,n=mh(l))p=Lc(d,[n])[0],m&&(a.h?Mt(a.h,"Location",m,p):f.set(m,p)),e.push(p);a.h?(r=Nt(a.h,"Location",!0),0<r.length&&(d=a.A=r)):e.length&&(d=a.A=e);a.j.Ze=
|
|
942
943
|
b.attributes.id||"";a.j.ge=th(b,"publishTime",wh)||0;a.F=kh(b,"PatchLocation");u=Promise.resolve();if((v=oh(b,"ContentSteering"))&&a.i){w=v.attributes.defaultServiceLocation;if(a.h)a.h.i=d,a.h.h=w;else if(a.h=new It(a.i),a.h.configure(a.g),a.h.setManifestType("DASH"),a.h.i=d,a.h.h=w,A=mh(v))(z=th(v,"queryBeforeStart",Dh,!1))?u=Jt(a.h,A):Jt(a.h,A);C=t(f.keys());for(y=C.next();!y.done;y=C.next())B=y.value,D=f.get(B),Mt(a.h,"Location",B,D)}K=kh(b,"BaseURL");J=!1;if(a.h)for(I=t(K),H=I.next();!H.done;H=
|
|
943
|
-
I.next())N=H.value,L=N.attributes.serviceLocation,M=mh(N),L&&M&&(Mt(a.h,"BaseURL",L,M),J=!0);J&&a.h||(Q=K.map(mh),G=Lc(d,Q));T=function(){return a.h&&J?Nt(a.h,"BaseURL"):G?G:[]};a.j.
|
|
944
|
+
I.next())N=H.value,L=N.attributes.serviceLocation,M=mh(N),L&&M&&(Mt(a.h,"BaseURL",L,M),J=!0);J&&a.h||(Q=K.map(mh),G=Lc(d,Q));T=function(){return a.h&&J?Nt(a.h,"BaseURL"):G?G:[]};a.j.Va=T;R=0;K&&K.length&&(R=th(K[0],"availabilityTimeOffset",Ch)||0);a.j.Ya=R;ra=a.g.dash.ignoreMinBufferTime;sa=0;ra||(sa=th(b,"minBufferTime",xh)||0);a.H=th(b,"minimumUpdatePeriod",xh,-1);Ca=th(b,"availabilityStartTime",wh);Ea=th(b,"timeShiftBufferDepth",xh);Ia=a.g.dash.ignoreSuggestedPresentationDelay;Pa=null;Ia||(Pa=
|
|
944
945
|
th(b,"suggestedPresentationDelay",xh));Ja=a.g.dash.ignoreMaxSegmentDuration;db=null;Ja||(db=th(b,"maxSegmentDuration",xh));Fa=b.attributes.type||"static";a.j.type=Fa;if(a.l)for($a=a.l.presentationTimeline,xb=t(Object.values(a.u)),ad=xb.next();!ad.done;ad=xb.next())ye=ad.value,ye.segmentIndex&&ye.segmentIndex.eb($a.Cb());else Fd=a.g.defaultPresentationDelay||1.5*sa,Rc=null!=Pa?Pa:Fd,$a=new Bk(Ca,Rc,a.g.dash.autoCorrectDrift);$a.Lc("static"==Fa);(ze=$a.U())&&!isNaN(a.g.availabilityWindowOverride)&&
|
|
945
|
-
(Ea=a.g.availabilityWindowOverride);null==Ea&&(Ea=Infinity);$a.nf(Ea);Ae=b.attributes.profiles||"";a.j.profiles=Ae.split(",");Be={Lb:"static"!=Fa,presentationTimeline:$a,
|
|
946
|
+
(Ea=a.g.availabilityWindowOverride);null==Ea&&(Ea=Infinity);$a.nf(Ea);Ae=b.attributes.profiles||"";a.j.profiles=Ae.split(",");Be={Lb:"static"!=Fa,presentationTimeline:$a,La:null,va:null,Ia:null,M:null,bandwidth:0,Ag:!1,Ya:R,Yb:null,profiles:Ae.split(",")};Gd=Iu(a,Be,T,b);oj=Gd.duration;dh=Gd.periods;"static"!=Fa&&Gd.Ch||$a.sb(oj||Infinity);a.K&&!a.G&&(pj=a.i.isAutoLowLatencyMode())&&(a.i.enableLowLatencyMode(),a.G=a.i.isLowLatencyMode());a.G?$a.bi(a.K):a.K&&Ya("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.");
|
|
946
947
|
$a.Jg(db||1);return E(rc,u,2);case 2:return a.G&&(sa=0,qj=null!=Pa?Pa:a.g.defaultPresentationDelay,$a.Xg(qj)),a.l?E(rc,Ju(a,Gd.periods,!1),4):E(rc,a.m.Xf(dh,Be.Lb),6);case 6:a.l={presentationTimeline:$a,variants:a.m.j,textStreams:a.m.ug(),imageStreams:a.m.i,offlineSessionIds:[],minBufferTime:sa||0,sequenceMode:a.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:Ku(b),nextUrl:Lu(b)};if(!$a.si()){rc.B(7);break}eh=kh(b,"UTCTiming");return E(rc,Mu(a,T,eh),8);
|
|
947
948
|
case 8:Ce=rc.h;if(!a.i)return rc.return();$a.ci(Ce);case 7:$a.Ue();case 4:a.i.makeTextStreamsForClosedCaptions(a.l),F(rc)}})}function Ju(a,b,c){var d;return O(function(e){if(1==e.g)return E(e,a.m.Xf(b,!0,c),2);a.l.variants=a.m.j;d=a.m.ug();0<d.length&&(a.l.textStreams=d);a.l.imageStreams=a.m.i;a.i.filter(a.l);F(e)})}
|
|
948
949
|
function Gu(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,A,z,C,y,B,D,K,G,J,I;return O(function(H){if(1==H.g){c=b.attributes.mpdId;d=th(b,"originalPublishTime",wh);if(!c||c!==a.j.Ze||d!==a.j.ge)throw a.F=[],new U(1,4,4052);e=[];f=[];g=new Set;h=t(jh(b));for(k=h.next();!k.done;k=h.next())if(l=k.value,m=Fh(l.attributes.sel||""),n=m[m.length-1],p=mh(l)||"","MPD"===n.name)if("mediaPresentationDuration"===n.ec){r=mh(l)||"";var N=xh(r);if(null!=N){a.j.Yb=N;for(var L=t(a.o.values()),M=L.next();!M.done;M=L.next())M.value.Yb=
|
|
949
950
|
N}}else if("type"===n.ec){a.l.presentationTimeline.Lc("static"==p);a.j.type=p;N=t(a.o.values());for(L=N.next();!L.done;L=N.next())L.value.Lb="dynamic"==p;"static"==p&&(a.H=-1)}else"publishTime"===n.ec?a.j.ge=wh(p)||0:null===n.ec&&"add"===l.tagName&&f.push(l);else if("PatchLocation"===n.name)Gh(a.F,l);else if("Period"===n.name)if("add"===l.tagName)f.push(l);else{if("remove"===l.tagName&&n.id)for(N=n.id,L=t(a.o.keys()),M=L.next();!M.done;M=L.next())if(M=M.value,M.startsWith(N)){var Q=a.o.get(M);Ss(Q,
|
|
950
951
|
tt,"SegmentTimeline").children=[];Nu(a,M);a.o.delete(M)}}else if("SegmentTemplate"===n.name){L=Fh(l.attributes.sel||"");N=L[L.length-1];if(N.ec){L=Ou(a,L);M=mh(l)||"";Q=t(L);for(var T=Q.next();!T.done;T=Q.next())T=a.o.get(T.value),Hh(T.M.mc,l.tagName,N.ec,M);N=L}else N=[];u=N;v=t(u);for(w=v.next();!w.done;w=v.next())A=w.value,g.add(A)}else if("SegmentTimeline"===n.name||"S"===n.name){N=Fh(l.attributes.sel||"");N=Ou(a,N);L=t(N);for(M=L.next();!M.done;M=L.next())M=a.o.get(M.value),M=Ss(M,tt,"SegmentTimeline"),
|
|
951
|
-
Q=kh(M,"S"),Gh(Q,l),M.children=Q;z=N;C=t(z);for(w=C.next();!w.done;w=C.next())y=w.value,g.add(y)}B=t(g);for(w=B.next();!w.done;w=B.next())D=w.value,Nu(a,D);K=t(f);for(G=K.next();!G.done;G=K.next())J=G.value,e.push.apply(e,x(Iu(a,{Lb:"dynamic"==a.j.type,presentationTimeline:a.l.presentationTimeline,
|
|
952
|
-
Infinity));F(H)})}function Ou(a,b){var c="",d="",e="";b=t(b);for(var f=b.next();!f.done;f=b.next())f=f.value,"Period"===f.name?c=f.id:"AdaptationSet"===f.name?d=f.id:"Representation"===f.name&&(e=f.id);b=[];if(e)b.push(c+","+e);else for(a=t(a.o.values()),e=a.next();!e.done;e=a.next())e=e.value,e.
|
|
952
|
+
Q=kh(M,"S"),Gh(Q,l),M.children=Q;z=N;C=t(z);for(w=C.next();!w.done;w=C.next())y=w.value,g.add(y)}B=t(g);for(w=B.next();!w.done;w=B.next())D=w.value,Nu(a,D);K=t(f);for(G=K.next();!G.done;G=K.next())J=G.value,e.push.apply(e,x(Iu(a,{Lb:"dynamic"==a.j.type,presentationTimeline:a.l.presentationTimeline,La:null,va:null,Ia:null,M:null,bandwidth:0,Ag:!1,Ya:a.j.Ya,profiles:a.j.profiles,Yb:a.j.Yb},a.j.Va,J).periods));return e.length?E(H,Ju(a,e,!0),2):H.B(2)}"static"==a.j.type&&(I=a.j.Yb,a.l.presentationTimeline.sb(I||
|
|
953
|
+
Infinity));F(H)})}function Ou(a,b){var c="",d="",e="";b=t(b);for(var f=b.next();!f.done;f=b.next())f=f.value,"Period"===f.name?c=f.id:"AdaptationSet"===f.name?d=f.id:"Representation"===f.name&&(e=f.id);b=[];if(e)b.push(c+","+e);else for(a=t(a.o.values()),e=a.next();!e.done;e=a.next())e=e.value,e.La.id===c&&e.Ia.id===d&&e.M.id&&b.push(c+","+e.M.id);return b}
|
|
953
954
|
function Nu(a,b){var c=a.o.get(b),d=a.u[b];d.segmentIndex&&d.segmentIndex.eb(a.l.presentationTimeline.Cb());try{var e=st(c,function(f,g,h,k){return Pu(a,f,g,h,k)},a.u,!0,a.g.dash.initialSegmentLimit,a.N,c.M.aesKey,null,!0);d.createSegmentIndex=function(){var f;return O(function(g){if(1==g.g){if(d.segmentIndex)return g.B(0);f=d;return E(g,e.wc(),3)}f.segmentIndex=g.h;F(g)})}}catch(f){if(b=c.M.contentType,b!=Sc&&"application"!=b&&"image"!=b||4002!=f.code)throw f;}}
|
|
954
955
|
function Ku(a){var b=oh(a,"ServiceDescription");if(!b)return null;a=oh(b,"Latency");b=oh(b,"PlaybackRate");if(!a&&!b)return null;var c={};a&&("target"in a.attributes&&(c.targetLatency=parseInt(a.attributes.target,10)/1E3),"max"in a.attributes&&(c.maxLatency=parseInt(a.attributes.max,10)/1E3),"min"in a.attributes&&(c.minLatency=parseInt(a.attributes.min,10)/1E3));b&&("max"in b.attributes&&(c.maxPlaybackRate=parseFloat(b.attributes.max)),"min"in b.attributes&&(c.minPlaybackRate=parseFloat(b.attributes.min)));
|
|
955
956
|
return c}function Lu(a){a=kh(a,"SupplementalProperty");if(!a.length)return null;a=t(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,"urn:mpeg:dash:chaining:2016"==b.attributes.schemeIdUri)return b.attributes.value;return null}
|
|
956
|
-
function Iu(a,b,c,d){var e=b.Yb;e||(e=th(d,"mediaPresentationDuration",xh),a.j.Yb=e);var f=[],g=0;d=kh(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=th(k,"start",xh,g),n=k.attributes.id,p=th(k,"duration",xh),r=null;if(l){var u=th(l,"start",xh);null!=u&&(r=u-m)}else null!=e&&(r=e-m);null==r&&(r=p);if(!(null!==a.J&&null!==n&&null!==m&&m<a.J)||a.S.includes(n)||h+1==d.length){null!==m&&(null===a.J||m>a.J)&&(a.J=m);g=Qu(a,b,c,{start:m,duration:r,node:k,Zd:null==r||!l});f.push(g);b.
|
|
957
|
-
r&&(a.N[b.
|
|
958
|
-
function Qu(a,b,c,d){b.
|
|
957
|
+
function Iu(a,b,c,d){var e=b.Yb;e||(e=th(d,"mediaPresentationDuration",xh),a.j.Yb=e);var f=[],g=0;d=kh(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=th(k,"start",xh,g),n=k.attributes.id,p=th(k,"duration",xh),r=null;if(l){var u=th(l,"start",xh);null!=u&&(r=u-m)}else null!=e&&(r=e-m);null==r&&(r=p);if(!(null!==a.J&&null!==n&&null!==m&&m<a.J)||a.S.includes(n)||h+1==d.length){null!==m&&(null===a.J||m>a.J)&&(a.J=m);g=Qu(a,b,c,{start:m,duration:r,node:k,Zd:null==r||!l});f.push(g);b.La.id&&
|
|
958
|
+
r&&(a.N[b.La.id]=r);if(null==r){g=null;break}g=m+r}}a.S=f.map(function(v){return v.id});return null!=e?{periods:f,duration:e,Ch:!1}:{periods:f,duration:g,Ch:!0}}
|
|
959
|
+
function Qu(a,b,c,d){b.La=Ru(a,d.node,null,c);b.va=d;b.La.Ya=b.Ya;b.La.id||(b.La.id="__shaka_period_"+d.start);var e=kh(d.node,"EventStream");c=b.presentationTimeline.Cb();e=t(e);for(var f=e.next();!f.done;f=e.next())Su(a,d.start,d.duration,f.value,c);c=kh(d.node,"AdaptationSet").map(function(m){return Tu(a,b,m)}).filter(We);if(b.Lb){d=[];e=t(c);for(f=e.next();!f.done;f=e.next()){f=t(f.value.gk);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new U(2,4,4018);
|
|
959
960
|
}d=c.filter(function(m){return!m.ih});c=c.filter(function(m){return m.ih});c=t(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.ih.split(" ");g=t(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=t(k.streams);for(var l=k.next();!l.done;h={ye:h.ye},l=k.next())h.ye=l.value,h.ye.trickModeVideo=e.streams.find(function(m){return function(n){return Ge(m.ye.codecs)==Ge(n.codecs)}}(h))}}}c=Uu(a.g.disableAudio,d,"audio");e=Uu(a.g.disableVideo,d,"video");f=Uu(a.g.disableText,
|
|
960
|
-
d,Sc);d=Uu(a.g.disableThumbnails,d,"image");if(0===e.length&&0===c.length)throw new U(2,4,4004);return{id:b.
|
|
961
|
-
function Tu(a,b,c){function d(H){switch(H){case 1:case 5:case 6:case 7:return"srgb";case 9:return"rec2020";case 11:case 12:return"p3"}}function e(H){switch(H){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.
|
|
961
|
+
d,Sc);d=Uu(a.g.disableThumbnails,d,"image");if(0===e.length&&0===c.length)throw new U(2,4,4004);return{id:b.La.id,audioStreams:c,videoStreams:e,textStreams:f,imageStreams:d}}function Uu(a,b,c){return a||!b.length?[]:b.reduce(function(d,e){if(e.contentType!=c)return d;d.push.apply(d,x(e.streams));return d},[])}
|
|
962
|
+
function Tu(a,b,c){function d(H){switch(H){case 1:case 5:case 6:case 7:return"srgb";case 9:return"rec2020";case 11:case 12:return"p3"}}function e(H){switch(H){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.Ia=Ru(a,c,b.La,null);var f=!1,g=kh(c,"Role"),h=g.map(function(H){return H.attributes.value}).filter(We),k=void 0,l=b.Ia.contentType==Sc;l&&(k="subtitle");g=t(g);for(var m=g.next();!m.done;m=g.next()){m=m.value;var n=m.attributes.schemeIdUri;if(null==
|
|
962
963
|
n||"urn:mpeg:dash:role:2011"==n)switch(m=m.attributes.value,m){case "main":f=!0;break;case "caption":case "subtitle":k=m}}var p,r;n=kh(c,"EssentialProperty");g=null;var u=!1;m=!1;n=t(n);for(var v=n.next();!v.done;v=n.next()){v=v.value;var w=v.attributes.schemeIdUri;"http://dashif.org/guidelines/trickmode"==w?g=v.attributes.value:"urn:mpeg:mpegB:cicp:TransferCharacteristics"==w?p=e(parseInt(v.attributes.value,10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"==w?r=d(parseInt(v.attributes.value,10)):"urn:mpeg:mpegB:cicp:MatrixCoefficients"!=
|
|
963
964
|
w&&("urn:mpeg:dash:ssr:2023"==w&&a.g.dash.enableFastSwitching?u=!0:m=!0)}var A=null;n=kh(c,"SupplementalProperty");n=t(n);for(v=n.next();!v.done;v=n.next())v=v.value,w=v.attributes.schemeIdUri,"http://dashif.org/guidelines/last-segment-number"==w?A=parseInt(v.attributes.value,10)-1:"urn:mpeg:mpegB:cicp:TransferCharacteristics"==w?p=e(parseInt(v.attributes.value,10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"==w&&(r=d(parseInt(v.attributes.value,10)));n=kh(c,"Accessibility");var z=new Map,C;n=t(n);for(v=
|
|
964
965
|
n.next();!v.done;v=n.next())if(w=v.value,v=w.attributes.schemeIdUri,w=w.attributes.value,"urn:scte:dash:cc:cea-608:2015"==v)if(v=1,null!=w){w=w.split(";");for(var y=t(w),B=y.next();!B.done;B=y.next()){var D=B.value,K=B=void 0;D.includes("=")?(D=D.split("="),B=D[0].startsWith("CC")?D[0]:"CC"+D[0],K=D[1]||"und"):(B="CC"+v,2==w.length?v+=2:v++,K=D);z.set(B,Xc(K))}}else z.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==v)if(v=1,null!=w)for(w=t(w.split(";")),B=w.next();!B.done;B=w.next())B=B.value,
|
|
965
|
-
D=y=void 0,B.includes("=")?(B=B.split("="),y="svc"+B[0],D=B[1].split(",")[0].split(":").pop()):(y="svc"+v,v++,D=B),z.set(y,Xc(D));else z.set("svc1","und");else"urn:mpeg:dash:role:2011"==v?null!=w&&(h.push(w),"captions"==w&&(k="caption")):"urn:tva:metadata:cs:AudioPurposeCS:2007"==v&&("1"==w?C="visually impaired":"2"==w&&(C="hard of hearing"));if(m)return null;m=kh(c,"ContentProtection");var G=Es(m,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),J=Xc(b.
|
|
966
|
-
kh(c,"Label"))&&m.length&&(m=lh(m[0]))&&(I=m);m=kh(c,"Representation");c=m.map(function(H){if(H=Vu(a,b,G,k,J,I,f,h,z,H,C,A))H.hdr=H.hdr||p,H.colorGamut=H.colorGamut||r,H.fastSwitching=u;return H}).filter(function(H){return!!H});if(0==c.length){g="image"==b.
|
|
967
|
-
b.
|
|
968
|
-
function Vu(a,b,c,d,e,f,g,h,k,l,m,n){b.M=Ru(a,l,b.
|
|
969
|
-
16!=I.data.byteLength)throw new U(2,4,4049);H={name:"AES-CBC"};N=w;return E(L,window.crypto.subtle.importKey("raw",I.data,H,!0,["decrypt"]),3)}N.cryptoKey=L.h;w.fetchKey=void 0;F(L)})}}}b.M.aesKey=w;A=function(I,H,N,L){return Pu(a,I,H,N,L)};if(b.M.od)var y=ht(b,A,w);else if(b.M.bc)y=nt(b,a.u,w);else if(b.M.mc)y=st(b,A,a.u,!!a.l,a.g.dash.initialSegmentLimit,a.N,w,n,!1);else{var B=b.va.duration||0,D=b.M.
|
|
966
|
+
D=y=void 0,B.includes("=")?(B=B.split("="),y="svc"+B[0],D=B[1].split(",")[0].split(":").pop()):(y="svc"+v,v++,D=B),z.set(y,Xc(D));else z.set("svc1","und");else"urn:mpeg:dash:role:2011"==v?null!=w&&(h.push(w),"captions"==w&&(k="caption")):"urn:tva:metadata:cs:AudioPurposeCS:2007"==v&&("1"==w?C="visually impaired":"2"==w&&(C="hard of hearing"));if(m)return null;m=kh(c,"ContentProtection");var G=Es(m,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),J=Xc(b.Ia.language||"und"),I=c.attributes.label;(m=
|
|
967
|
+
kh(c,"Label"))&&m.length&&(m=lh(m[0]))&&(I=m);m=kh(c,"Representation");c=m.map(function(H){if(H=Vu(a,b,G,k,J,I,f,h,z,H,C,A))H.hdr=H.hdr||p,H.colorGamut=H.colorGamut||r,H.fastSwitching=u;return H}).filter(function(H){return!!H});if(0==c.length){g="image"==b.Ia.contentType;if(a.g.dash.ignoreEmptyAdaptationSet||l||g)return null;throw new U(2,4,4003);}if(!b.Ia.contentType||"application"==b.Ia.contentType)for(b.Ia.contentType=Wu(c[0].mimeType,c[0].codecs),l=t(c),v=l.next();!v.done;v=l.next())v.value.type=
|
|
968
|
+
b.Ia.contentType;l=b.Ia.id||"__fake__"+a.R++;n=t(c);for(v=n.next();!v.done;v=n.next()){v=v.value;w=t(G.drmInfos);for(y=w.next();!y.done;y=w.next())y=y.value,y.keyIds=y.keyIds&&v.keyIds?new Set([].concat(x(y.keyIds),x(v.keyIds))):y.keyIds||v.keyIds;a.g.dash.enableAudioGroups&&(v.groupId=l)}m=m.map(function(H){return H.attributes.id}).filter(We);return{id:l,contentType:b.Ia.contentType,language:J,Ol:f,streams:c,drmInfos:G.drmInfos,ih:g,gk:m}}
|
|
969
|
+
function Vu(a,b,c,d,e,f,g,h,k,l,m,n){b.M=Ru(a,l,b.Ia,null);var p=b.M.id;a.K=Math.min(a.K,b.M.Ya);if(!Xu(b.M))return null;var r=b.va.start;b.bandwidth=th(l,"bandwidth",Ah)||0;var u=b.M.contentType,v=u==Sc||"application"==u;u="image"==u;try{var w=void 0;if(c.Rf){var A=b.M.Va,z=Lc(A(),[c.Rf.Mj]),C=Ag(z,a.g.retryParameters);w={bitsKey:128,blockCipherMode:"CBC",iv:c.Rf.iv,firstMediaSequenceNumber:0,fetchKey:function(){var I,H,N;return O(function(L){if(1==L.g)return E(L,Eu(a,C,6),2);if(3!=L.g){I=L.h;if(!I.data||
|
|
970
|
+
16!=I.data.byteLength)throw new U(2,4,4049);H={name:"AES-CBC"};N=w;return E(L,window.crypto.subtle.importKey("raw",I.data,H,!0,["decrypt"]),3)}N.cryptoKey=L.h;w.fetchKey=void 0;F(L)})}}}b.M.aesKey=w;A=function(I,H,N,L){return Pu(a,I,H,N,L)};if(b.M.od)var y=ht(b,A,w);else if(b.M.bc)y=nt(b,a.u,w);else if(b.M.mc)y=st(b,A,a.u,!!a.l,a.g.dash.initialSegmentLimit,a.N,w,n,!1);else{var B=b.va.duration||0,D=b.M.Va;y={wc:function(){var I=Zk(r,B,D());I.Xc(function(H){H.mimeType=b.M.mimeType;H.codecs=b.M.codecs});
|
|
970
971
|
return Promise.resolve(I)}}}}catch(I){if((v||u)&&4002==I.code)return null;throw I;}n=kh(l,"ContentProtection");n=Is(n,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);n=new Set(n?[n]:[]);A=!1;kh(l,"SupplementalProperty").some(function(I){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==I.attributes.schemeIdUri&&"JOC"==I.attributes.value})&&(A=!0);z=!1;v&&(z=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var K;if(u&&((l=kh(l,"EssentialProperty").find(function(I){return["http://dashif.org/thumbnail_tile",
|
|
971
|
-
"http://dashif.org/guidelines/thumbnail_tile"].includes(I.attributes.schemeIdUri)}))&&(K=l.attributes.value),!K))return null;var G;l=b.M.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"))&&(G="PQ");v=b.M.id?b.
|
|
972
|
-
(J.segmentIndex.release(),J.segmentIndex=null)},segmentIndex:null,mimeType:b.M.mimeType,codecs:l,frameRate:b.M.frameRate,pixelAspectRatio:b.M.pixelAspectRatio,bandwidth:b.bandwidth,width:b.M.width,height:b.M.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:n,language:e,originalLanguage:b.
|
|
972
|
+
"http://dashif.org/guidelines/thumbnail_tile"].includes(I.attributes.schemeIdUri)}))&&(K=l.attributes.value),!K))return null;var G;l=b.M.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"))&&(G="PQ");v=b.M.id?b.La.id+","+b.M.id:"";a.F.length&&p&&a.o.set(b.La.id+","+p,Yu(b));var J=v&&a.u[v]?a.u[v]:{id:a.R++,originalId:b.M.id,groupId:null,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){J.segmentIndex&&
|
|
973
|
+
(J.segmentIndex.release(),J.segmentIndex=null)},segmentIndex:null,mimeType:b.M.mimeType,codecs:l,frameRate:b.M.frameRate,pixelAspectRatio:b.M.pixelAspectRatio,bandwidth:b.bandwidth,width:b.M.width,height:b.M.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:n,language:e,originalLanguage:b.Ia.language,label:f,type:b.Ia.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.M.emsgSchemeIdUris,roles:h,forced:z,channelsCount:b.M.jd,audioSamplingRate:b.M.audioSamplingRate,spatialAudio:A,
|
|
973
974
|
closedCaptions:k,hdr:G,colorGamut:void 0,videoLayout:void 0,tilesLayout:K,accessibilityPurpose:m,external:!1,fastSwitching:!1,fullMimeTypes:new Set([te(b.M.mimeType,b.M.codecs)])};J.createSegmentIndex=function(){var I;return O(function(H){if(1==H.g){if(J.segmentIndex)return H.B(0);I=J;return E(H,y.wc(),3)}I.segmentIndex=H.h;F(H)})};v&&b.Lb&&!a.u[v]&&(a.u[v]=J);return J}
|
|
974
|
-
function Yu(a){for(var b={},c=t(Object.keys(a)),d=c.next();!d.done;d=c.next())if(d=d.value,["period","adaptationSet","representation"].includes(d)){var e=a[d];b[d]={od:null,bc:null,mc:e.mc,
|
|
975
|
+
function Yu(a){for(var b={},c=t(Object.keys(a)),d=c.next();!d.done;d=c.next())if(d=d.value,["period","adaptationSet","representation"].includes(d)){var e=a[d];b[d]={od:null,bc:null,mc:e.mc,Va:e.Va,width:e.width,height:e.height,contentType:e.contentType,mimeType:e.mimeType,language:e.language,codecs:e.codecs,frameRate:e.frameRate,pixelAspectRatio:e.pixelAspectRatio,emsgSchemeIdUris:e.emsgSchemeIdUris,id:e.id,jd:e.jd,audioSamplingRate:e.audioSamplingRate,Ya:e.Ya,cd:e.cd}}else"periodInfo"==d?(e=a[d],
|
|
975
976
|
b[d]={start:e.start,duration:e.duration,node:null,Zd:e.Zd}):b[d]=a[d];return b}function Au(a){var b,c;O(function(d){switch(d.g){case 1:return b=0,ta(d,2),E(d,Bu(a),4);case 4:b=d.h;va(d,3);break;case 2:if(c=wa(d),a.i){if(a.g.raiseFatalErrorOnManifestUpdateRequestFailure)return a.i.onError(c),d.return();c.severity=1;a.i.onError(c)}case 3:if(!a.i)return d.return();a.i.onManifestUpdated();Cu(a,b);F(d)}})}
|
|
976
977
|
function Cu(a,b){if(!(0>a.H)){var c=a.H;0<=a.g.dash.updatePeriod&&(c=a.g.dash.updatePeriod);a.I.V(Math.max(c-b,md(a.O)))}}
|
|
977
|
-
function Ru(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,jd:null,audioSamplingRate:null,Ya:0,Tg:0};d=d||c.
|
|
978
|
+
function Ru(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,jd:null,audioSamplingRate:null,Ya:0,Tg:0};d=d||c.Va;var e=b.attributes.id,f=kh(b,"BaseURL"),g,h=!1;if(a.h)for(var k=t(f),l=k.next();!l.done;l=k.next()){var m=l.value;l=m.attributes.serviceLocation;m=mh(m);l&&m&&(Mt(a.h,e,l,m),h=!0)}h&&a.h||(g=f.map(mh));k=b.attributes.contentType||c.contentType;l=b.attributes.mimeType||c.mimeType;m=[b.attributes.codecs||c.codecs];var n=uh(b,
|
|
978
979
|
"urn:scte:dash:scte214-extensions","supplementalCodecs");n&&m.push(n);m=Ft(m).join(",");n=th(b,"frameRate",Eh)||c.frameRate;var p=b.attributes.sar||c.pixelAspectRatio,r=Zu(kh(b,"InbandEventStream"),c.emsgSchemeIdUris),u=kh(b,"AudioChannelConfiguration");u=$u(u)||c.jd;var v=th(b,"audioSamplingRate",Bh)||c.audioSamplingRate;k||(k=Wu(l,m));var w=oh(b,"SegmentBase"),A=oh(b,"SegmentTemplate"),z=w?th(w,"availabilityTimeOffset",Ch)||0:0,C=A?th(A,"availabilityTimeOffset",Ch)||0:0,y=f&&f.length?th(f[0],"availabilityTimeOffset",
|
|
979
|
-
Ch)||0:0;z=c.Ya+y+z+C;C=null;(y=oh(b,"SegmentSequenceProperties"))&&(y=oh(y,"SAP"))&&(C=th(y,"cadence",zh));return{
|
|
980
|
+
Ch)||0:0;z=c.Ya+y+z+C;C=null;(y=oh(b,"SegmentSequenceProperties"))&&(y=oh(y,"SAP"))&&(C=th(y,"cadence",zh));return{Va:function(){return Lc(d(),f.length?a.h&&h?Nt(a.h,e):g?g:[]:[])},od:w||c.od,bc:oh(b,"SegmentList")||c.bc,mc:A||c.mc,width:th(b,"width",Bh)||c.width,height:th(b,"height",Bh)||c.height,contentType:k,mimeType:l,codecs:m,frameRate:n,pixelAspectRatio:p,emsgSchemeIdUris:r,id:e,language:b.attributes.lang,jd:u,audioSamplingRate:v,Ya:z,cd:null,Tg:C||c.Tg}}
|
|
980
981
|
function Zu(a,b){b=b.slice();a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value.attributes.schemeIdUri,b.includes(c)||b.push(c);return b}
|
|
981
982
|
function $u(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(b=c.attributes.schemeIdUri)if(c=c.attributes.value)switch(b){case "urn:mpeg:dash:outputChannelPositionList:2012":return c.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(c,10);if(!b)continue;return b;case "tag:dolby.com,2014:dash:audio_channel_configuration:2011":case "urn:dolby:dash:audio_channel_configuration:2011":b=
|
|
982
983
|
parseInt(c,16);if(!b)continue;for(a=0;b;)b&1&&++a,b>>=1;return a;case "urn:mpeg:mpegB:cicp:ChannelConfiguration":if(b=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(c=parseInt(c,10))&&0<c&&c<b.length)return b[c]}}return null}function Xu(a){var b=a.od?1:0;b+=a.bc?1:0;b+=a.mc?1:0;if(0==b)return a.contentType==Sc||"application"==a.contentType?!0:!1;1!=b&&(a.od&&(a.bc=null),a.mc=null);return!0}
|
|
@@ -993,19 +994,19 @@ function tv(a,b){b=wc(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var c=b
|
|
|
993
994
|
c.splice(f,c.length-f);c=[];d=[];f=[];h=null;g=t(g);for(var k=g.next();!k.done;k=g.next())k=k.value,/^(#EXT)/.test(k)?(k=uv(a,k),vv.includes(k.name)?e.push(k):"EXT-X-MAP"==k.name?h=k:"EXT-X-PART"==k.name?f.push(k):"EXT-X-PRELOAD-HINT"==k.name?"PART"==Y(k,"TYPE")?f.push(k):"MAP"==Y(k,"TYPE")&&(k.name="EXT-X-MAP",h=k):d.push(k)):/^#(?!EXT)/m.test(k)||(k=k.trim(),h&&d.push(h),c.push(new kv(k,d,f)),d=[],f=[]);f.length&&(h&&d.push(h),c.push(new kv("",d,f)));return new fv(b,e,c)}e.push(g);"EXT-X-STREAM-INF"==
|
|
994
995
|
g.name&&(g.attributes.push(new lv("URI",h)),d=!0)}}return new fv(b,e)}function uv(a,b){a=a.g++;var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new U(2,4,4016,b);b=c[1];var d=c[2];c=[];var e;if(d){d=new Kp(d);var f;(f=Mp(d,/^([^,=]+)(?:,|$)/g))&&(e=f[1]);for(var g=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;f=Mp(d,g);)c.push(new lv(f[1],f[2]||f[3])),Lp(d)}return new gv(a,b,c,e)}
|
|
995
996
|
var vv="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(" "),wv="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP EXT-X-GAP".split(" ");function xv(){}function yv(a){try{var b=zv(a);return pg({uri:a,originalUri:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return ng(c)}}
|
|
996
|
-
function zv(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new U(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new U(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=Hc(a):e=Ac(a);return{data:e,contentType:c}}P("shaka.net.DataUriPlugin",xv);xv.parse=yv;wg("data",yv);function Av(){var a=this;this.g=this.h=null;this.F=1;this.u=new Map;this.J=new Map;this.O=new Map;this.O.set("video",new Map);this.O.set("audio",new Map);this.O.set(Sc,new Map);this.O.set("image",new Map);this.
|
|
997
|
-
new Map;this.
|
|
998
|
-
q.stop=function(){this.A&&(this.A.stop(),this.A=null);var a=[];this.S&&(a.push(this.S.destroy()),this.S=null);this.g=this.h=null;this.
|
|
997
|
+
function zv(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new U(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new U(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=Hc(a):e=Ac(a);return{data:e,contentType:c}}P("shaka.net.DataUriPlugin",xv);xv.parse=yv;wg("data",yv);function Av(){var a=this;this.g=this.h=null;this.F=1;this.u=new Map;this.J=new Map;this.O=new Map;this.O.set("video",new Map);this.O.set("audio",new Map);this.O.set(Sc,new Map);this.O.set("image",new Map);this.Ea=new Set;this.i=new Map;this.l=null;this.N="";this.Ba=new sv;this.K=-1;this.$=Infinity;this.Z=this.jb=!1;this.A=new Ub(function(){Bv(a)});this.na=Cv;this.o=null;this.Ha=0;this.m=Infinity;this.xa=this.qa=this.R=0;this.S=new tg;this.H=new Map;this.I=new Map;this.ba=new Map;this.ha=new Map;this.L=
|
|
998
|
+
new Map;this.Aa=new Map;this.ma=new Map;this.Za=this.G=!1;this.Na=new ld(5);this.j=null;this.ea=!0}q=Av.prototype;q.configure=function(a){this.g=a;this.j&&this.j.configure(this.g)};q.start=function(a,b){var c=this,d;return O(function(e){return 1==e.g?(c.h=b,c.G=b.isLowLatencyMode(),E(e,Dv(c,[a]),2)):3!=e.g?(d=e.h,c.N=d.uri,E(e,Ev(c,d.data,a),3)):e.return(c.o)})};
|
|
999
|
+
q.stop=function(){this.A&&(this.A.stop(),this.A=null);var a=[];this.S&&(a.push(this.S.destroy()),this.S=null);this.g=this.h=null;this.Ea.clear();this.o=null;this.i.clear();this.J.clear();this.I.clear();this.u.clear();this.ba.clear();this.ha.clear();this.L.clear();this.Aa.clear();this.ma.clear();this.j&&this.j.destroy();return Promise.all(a)};
|
|
999
1000
|
q.update=function(){var a=this,b,c,d,e,f,g,h,k,l;return O(function(m){if(1==m.g){if(!Fv(a))return m.return();b=[];c=Array.from(a.i.values());a.m=Infinity;d=c.filter(function(n){return n.stream.segmentIndex});e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(Gv(a,g));return E(m,Promise.all(b),2)}Hv(a,d.map(function(n){return n.stream}));h=d.some(function(n){return 0==n.Td});d.length&&!h&&(k=Iv,Jv(a,k.Ci),l=d.map(function(n){return n.Xb}),a.l.sb(Math.min.apply(Math,x(l))),a.h.updateDuration());
|
|
1000
1001
|
h&&Kv(a);F(m)})};function Lv(a,b){return Fv(a)?a.O.get(b.type):b.We}
|
|
1001
|
-
function Gv(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,A,z,C,y,B,D,K,G,J,I,H,N,L,M,Q;return O(function(T){if(1==T.g){c=[];d=t(b.P());for(e=d.next();!e.done;e=d.next())f=e.value,g=new mb(f),h=g.g,b.De&&(0<=b.Fb&&h.add("_HLS_msn",String(b.Fb)),0<=b.Gb&&h.add("_HLS_part",String(b.Gb))),b.Ee&&h.add("_HLS_skip","YES"),Cb(h)&&qb(g,h),c.push(g.toString());return E(T,Dv(a,c,!0),2)}if(3!=T.g){k=T.h;if(!b.stream.segmentIndex)return T.return();l=tv(a.
|
|
1002
|
+
function Gv(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,A,z,C,y,B,D,K,G,J,I,H,N,L,M,Q;return O(function(T){if(1==T.g){c=[];d=t(b.P());for(e=d.next();!e.done;e=d.next())f=e.value,g=new mb(f),h=g.g,b.De&&(0<=b.Fb&&h.add("_HLS_msn",String(b.Fb)),0<=b.Gb&&h.add("_HLS_part",String(b.Gb))),b.Ee&&h.add("_HLS_skip","YES"),Cb(h)&&qb(g,h),c.push(g.toString());return E(T,Dv(a,c,!0),2)}if(3!=T.g){k=T.h;if(!b.stream.segmentIndex)return T.return();l=tv(a.Ba,k.data);if(1!=l.type)throw new U(2,4,4017);m=k.uri;m==k.originalUri||
|
|
1002
1003
|
b.P().includes(m)||b.Yh.push(m);n=mv(l.g,"EXT-X-DEFINE");p=Mv(a,n,m);r=b.stream;u=Lv(a,b);return E(T,Nv(a,l,r.mimeType,b.P,p),3)}v=T.h;w=v.keyIds;A=v.drmInfos;z=function(R,ra){return R.size===ra.size&&[].concat(x(R)).every(function(sa){return ra.has(sa)})};z(r.keyIds,w)||(r.keyIds=w,r.drmInfos=A,a.h.newDrmInfo(r));C=Ov(a,l,u,p,b.P,b.type);y=C.segments;if(B=C.bandwidth)r.bandwidth=B;r.segmentIndex.ae(y,a.l.Cb());y.length&&(D=pv(l.g,"EXT-X-MEDIA-SEQUENCE",0),G=(K=ov(l.g,"EXT-X-SKIP"))?Number(Y(K,"SKIPPED-SEGMENTS")):
|
|
1003
1004
|
0,J=Pv(D,y),I=J.Fb,H=J.Gb,b.Fb=I+G,b.Gb=H,N=u.get(D),r.segmentIndex.eb(N));L=r.segmentIndex.g[0]||null;b.Hc=L.startTime;M=y[y.length-1];b.Xb=M.endTime;if(Q=ov(l.g,"EXT-X-ENDLIST"))b.Td=!0;Qv(a,l);F(T)})}q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(){};q.banLocation=function(a){this.j&&this.j.banLocation(a)};
|
|
1004
1005
|
function Rv(a,b){for(var c=-1==a.K,d=t(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex,g=Lv(a,e);if(f=f.g[0]||null){g=t(g);for(var h=g.next();!h.done;h=g.next()){h=t(h.value);var k=h.next().value;if(h.next().value==f.startTime){c&&(a.K=Math.max(a.K,k));e.$f=k;break}}}}if(!(0>a.K))for(b=t(b),e=b.next();!e.done;e=b.next())if(c=e.value,Sv(a,c.type)&&(d=c.stream.segmentIndex))if(e=a.K-c.$f,0<e&&(d.g.splice(0,e),d=d.g[0]||null))d=-d.startTime,c.stream.segmentIndex.offset(d),Tv(a,
|
|
1005
1006
|
c,d)}
|
|
1006
1007
|
function Uv(a,b){if(Infinity==a.$){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value.stream.segmentIndex.g[0]||null;null!=d&&null!=d.h&&(a.$=Math.min(a.$,d.h))}}b=a.$;if(Infinity!=b)for(d=t(a.i.values()),c=d.next();!c.done;c=d.next())if(c=c.value,!Sv(a,c.type)){var e=c.stream.segmentIndex;if(null!=e){var f=e.g[0]||null;if(null==f.h)Xa("Missing EXT-X-PROGRAM-DATE-TIME for stream",c.P(),"Expect AV sync issues!");else for(Tv(a,c,f.h-b-f.startTime),c=t(e),e=c.next();!e.done;e=c.next())e.value.fh(b)}}}
|
|
1007
1008
|
function Tv(a,b,c){b.Hc+=c;b.Xb+=c;a=Lv(a,b);for(var d=t(a),e=d.next();!e.done;e=d.next()){var f=t(e.value);e=f.next().value;f=f.next().value;a.set(e,f+c)}b.P()}
|
|
1008
|
-
function Ev(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,A,z,C,y,B,D,K,G,J,I,H,N,L,M,Q,T,R,ra,sa,Ca,Ea,Ia,Pa,Ja,db;return O(function(Fa){switch(Fa.g){case 1:d=tv(a.
|
|
1009
|
+
function Ev(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,A,z,C,y,B,D,K,G,J,I,H,N,L,M,Q,T,R,ra,sa,Ca,Ea,Ia,Pa,Ja,db;return O(function(Fa){switch(Fa.g){case 1:d=tv(a.Ba,b);e=mv(d.g,"EXT-X-DEFINE");f=[];g=[];h=[];a.l=new Bk(null,0);a.l.Lc(!0);k=function(){return[c]};if(1==d.type)return a.ea=!1,w=mv(d.g,"EXT-X-DEFINE"),A=Mv(a,w,a.N),E(Fa,Vv(a,d,k,A),7);Wv(a,e);l=mv(d.g,"EXT-X-MEDIA");m=mv(d.g,"EXT-X-STREAM-INF");n=mv(d.g,"EXT-X-IMAGE-STREAM-INF");p=mv(d.g,"EXT-X-I-FRAME-STREAM-INF");r=mv(d.g,"EXT-X-SESSION-KEY");
|
|
1009
1010
|
u=mv(d.g,"EXT-X-SESSION-DATA");v=mv(d.g,"EXT-X-CONTENT-STEERING");Xv(a,u);return E(Fa,Yv(a,v),4);case 4:return Zv(a,m),$v(a,l),E(Fa,aw(a,m,r,l,k,a.u),5);case 5:return f=Fa.h,g=bw(a,l),E(Fa,cw(a,n,p),6);case 6:h=Fa.h;Fa.B(3);break;case 7:return z=Fa.h,C=z.type,y=z.mimeType,B=z.codecs,D=z.language,K=z.height,G=z.width,J=z.channelCount,I=z.sampleRate,H=z.closedCaptions,N=z.oe,L=z.colorGamut,E(Fa,dw(a,a.F++,A,d,k,B,C,D,!0,"Media Playlist",J,H,null,!1,I,!1,y),8);case 8:M=Fa.h,a.i.set(c,M),"video"==C&&
|
|
1010
1011
|
ew(M.stream,G,K,null,N,null,L),f.push({id:0,language:Xc(D||"und"),disabledUntilTime:0,primary:!0,audio:"audio"==C?M.stream:null,video:"video"==C?M.stream:null,bandwidth:M.stream.bandwidth||0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.h)throw new U(2,7,7001);1==d.type&&(Fv(a)&&(fw(a,d),Q=a.m,a.A.V(Q)),T=Array.from(a.i.values()),gw(a,T),Kv(a));a.o={presentationTimeline:a.l,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:a.g.hls.sequenceMode,
|
|
1011
1012
|
ignoreManifestTimestampsInSegmentsMode:a.g.hls.ignoreManifestTimestampsInSegmentsMode,type:"HLS",serviceDescription:null,nextUrl:null};if(a.Z||!a.g.hls.disableCodecGuessing){Fa.B(9);break}R=[];ra=t(a.o.variants);for(sa=ra.next();!sa.done;sa=ra.next())Ca=sa.value,Ca.audio&&""===Ca.audio.codecs&&R.push(Ca.audio.createSegmentIndex()),Ca.video&&""===Ca.video.codecs&&R.push(Ca.video.createSegmentIndex());return E(Fa,Promise.all(R),9);case 9:a.h.makeTextStreamsForClosedCaptions(a.o);if(1==f.length){Ea=
|
|
@@ -1034,17 +1035,17 @@ n=Y(c,"NAME"),p=Aw(c),Bw(c),m=Y(c,"CHARACTERISTICS"),u=Cw(c));a=Dw(a,b,g,h,l,n,p
|
|
|
1034
1035
|
function nw(a,b){var c=Y(b,"CODECS")||"";b=Y(b,"SUPPLEMENTAL-CODECS");a.Z=0<c.length;a.Z||a.g.hls.disableCodecGuessing||(c=[],a.g.disableVideo||c.push(a.g.hls.defaultVideoCodec),a.g.disableAudio||c.push(a.g.hls.defaultAudioCodec),c=c.join(","));a=c.split(/\s*,\s*/);b&&(b=b.split(/\s*,\s*/).map(function(d){return d.split("/")[0]}),a.push.apply(a,x(b)));return Ft(a)}function Aw(a){return(a=Y(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}
|
|
1035
1036
|
function Cw(a){return(a=Y(a,"SAMPLE-RATE"))?parseInt(a,10):null}function Bw(a){return(a=Y(a,"CHANNELS"))?a.includes("/JOC"):!1}
|
|
1036
1037
|
function zw(a,b,c,d,e,f,g,h,k,l,m){for(var n=t(c),p=n.next();!p.done;p=n.next())ew(p.value.stream,e,f,g,h,k,null);e=a.g.disableAudio;if(!b.length||e)b=[null];e=a.g.disableVideo;if(!c.length||e)c=[null];e=[];b=t(b);for(f=b.next();!f.done;f=b.next())for(f=f.value,g=t(c),h=g.next();!h.done;h=g.next()){var r=h.value;if(h=f?f.stream:null)h.drmInfos=l,h.keyIds=m;if(k=r?r.stream:null)k.drmInfos=l,k.keyIds=m;k&&!h&&(k.bandwidth=d);!k&&h&&(h.bandwidth=d);n=f?f.stream.drmInfos:null;p=r?r.stream.drmInfos:null;
|
|
1037
|
-
r=r?r.P().sort().join(","):"";var u=f?f.P().sort().join(","):"";r=r+" - "+u;h&&k&&!Ob(n,p)||a.
|
|
1038
|
+
r=r?r.P().sort().join(","):"";var u=f?f.P().sort().join(","):"";r=r+" - "+u;h&&k&&!Ob(n,p)||a.Ea.has(r)||(h={id:a.F++,language:h?h.language:"und",disabledUntilTime:0,primary:!!h&&h.primary||!!k&&k.primary,audio:h,video:k,bandwidth:d,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},e.push(h),a.Ea.add(r))}return e}
|
|
1038
1039
|
function $v(a,b){b=nv(b,"CLOSED-CAPTIONS");a.ea=0==b.length;b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Y(d,"LANGUAGE");c=Xc(e||"und");e||(e=Y(d,"NAME"))&&(c=e);e=jv(d,"GROUP-ID");d=jv(d,"INSTREAM-ID").replace("SERVICE","svc");a.H.get(e)||a.H.set(e,new Map);a.H.get(e).set(d,c)}}
|
|
1039
1040
|
function ow(a,b,c){for(var d=[],e=[],f=new Map,g=t(b),h=g.next();!h.done;h=g.next()){var k=h.value;h=jv(k,"URI");k=jv(k,"GROUP-ID");d.push(h);e.push(k);f.set(k,h)}g=e.sort().join(",");h=b[0];b="";k=jv(h,"TYPE").toLowerCase();"subtitles"==k&&(k=Sc);if(k==Sc)b=Y(h,"CODECS")||"";else{e=t(e);for(var l=e.next();!l.done;l=e.next())if(l=l.value,a.I.has(l)){b=a.I.get(l);break}}e=d.sort().join(",");if(a.i.has(e))return a.i.get(e);l=a.F++;if(a.j){f=t(f);for(var m=f.next();!m.done;m=f.next()){var n=t(m.value);
|
|
1040
1041
|
m=n.next().value;n=n.next().value;(m=c.get(m))&&Mt(a.j,l,m,n)}}c=Y(h,"LANGUAGE");f=Y(h,"NAME");m="YES"==Y(h,"DEFAULT");n="audio"==k?Aw(h):null;var p="audio"==k?Bw(h):!1,r=Y(h,"CHARACTERISTICS"),u="YES"==Y(h,"FORCED");h="audio"==k?Cw(h):null;d=tw(a,l,d,b,k,c,m,f,n,null,r,u,h,p);d.stream&&(d.stream.groupId=g);a.J.has(g)?a.J.get(g).push(d):a.J.set(g,[d]);a.i.set(e,d);return d}
|
|
1041
1042
|
function sw(a,b){var c,d,e,f,g,h,k,l,m,n;return O(function(p){if(1==p.g){c=jv(b,"URI");d=Y(b,"CODECS","jpeg")||"";if(a.i.has(c))return p.return(a.i.get(c));e=Y(b,"LANGUAGE");f=Y(b,"NAME");g=Y(b,"CHARACTERISTICS");h=tw(a,a.F++,[c],d,"image",e,!1,f,null,null,g,!1,null,!1);return(k=Y(b,"RESOLUTION"))?E(p,h.stream.createSegmentIndex(),3):p.B(2)}2!=p.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])*
|
|
1042
1043
|
Number(m.split("x")[1]));if(n=Y(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.i.set(c,h);return p.return(h)})}
|
|
1043
1044
|
function Dw(a,b,c,d,e,f,g,h,k){for(var l=a.F++,m=[],n=t(b),p=n.next();!p.done;p=n.next()){var r=p.value;p=jv(r,"URI");r=Y(r,"PATHWAY-ID");a.j&&r&&Mt(a.j,l,r,p);m.push(p)}n=m.sort().join(",");if(a.i.has(n))return a.i.get(n);a:{b=Y(b[0],"CLOSED-CAPTIONS");if("video"==d)if(b){if("NONE"!=b){b=a.H.get(b);break a}a.ea=!1}else if(!b&&a.H.size)for(b=t(a.H.keys()).next();!b.done;){b=a.H.get(b.value);break a}b=null}c=Oc(d,c);d=tw(a,l,m,c,d,e,!1,f,g,b,h,!1,k,!1);a.i.set(n,d);return d}
|
|
1044
|
-
function tw(a,b,c,d,e,f,g,h,k,l,m,n,p,r){function u(B){var D,K,G,J,I,H,N,L,M,Q,T,R,ra,sa,Ca,Ea,Ia,Pa,Ja,db,Fa,$a;return O(function(xb){switch(xb.g){case 1:return D=Uc,K=z.P(),E(xb,Dv(a,z.P(),!0),2);case 2:G=xb.h;if(B.aborted)return xb.return();J=G.uri;J==G.originalUri||K.includes(J)||A.push(J);I=tv(a.
|
|
1045
|
+
function tw(a,b,c,d,e,f,g,h,k,l,m,n,p,r){function u(B){var D,K,G,J,I,H,N,L,M,Q,T,R,ra,sa,Ca,Ea,Ia,Pa,Ja,db,Fa,$a;return O(function(xb){switch(xb.g){case 1:return D=Uc,K=z.P(),E(xb,Dv(a,z.P(),!0),2);case 2:G=xb.h;if(B.aborted)return xb.return();J=G.uri;J==G.originalUri||K.includes(J)||A.push(J);I=tv(a.Ba,G.data);if(1!=I.type)throw new U(2,4,4017);H=mv(I.g,"EXT-X-DEFINE");N=Mv(a,H,J);L=void 0;M=!1;if(!(!a.Z&&a.g.hls.disableCodecGuessing||a.ea&&e==D.ra&&!a.g.hls.disableClosedCaptionsDetection)){xb.B(3);
|
|
1045
1046
|
break}if(Q=0<I.segments.length)T=I.segments[0],ov(T.g,"EXT-X-GAP")&&(Q=!1);if(!Q){xb.B(3);break}a.ea=!1;return E(xb,Vv(a,I,v,N),5);case 5:R=xb.h,!R.closedCaptions.size||l&&l.size==R.closedCaptions.size||(l=R.closedCaptions,M=!0),!a.Z&&a.g.hls.disableCodecGuessing&&(L=R.mimeType,d=R.codecs);case 3:return ra=Fv(a),E(xb,dw(a,0,N,I,v,d,e,f,g,h,k,l,m,n,p,r,L),6);case 6:sa=xb.h;if(B.aborted)return xb.return();Ca=sa.stream;Fv(a)&&!ra&&fw(a,I);z.Hc=sa.Hc;z.Xb=sa.Xb;z.Ee=sa.Ee;z.De=sa.De;z.Td=sa.Td;z.We=sa.We;
|
|
1046
1047
|
z.Fb=sa.Fb;z.Gb=sa.Gb;z.Gg=!0;w.segmentIndex=Ca.segmentIndex;w.encrypted=Ca.encrypted;w.drmInfos=Ca.drmInfos;w.keyIds=Ca.keyIds;w.mimeType=Ca.mimeType;w.bandwidth=w.bandwidth||Ca.bandwidth;w.codecs=w.codecs||Ca.codecs;w.closedCaptions=w.closedCaptions||Ca.closedCaptions;rw(w);w.drmInfos.length&&a.h.newDrmInfo(w);a.o&&M&&a.h.makeTextStreamsForClosedCaptions(a.o);if(e==D.ra||e==D.aa)for(Ea=t(a.i.values()),Ia=Ea.next();!Ia.done;Ia=Ea.next())Pa=Ia.value,Pa.Gg||Pa.type!=e||(Pa.stream.mimeType=Ca.mimeType,
|
|
1047
|
-
rw(Pa.stream));e==D.
|
|
1048
|
+
rw(Pa.stream));e==D.Ga&&(Ja=Ca.segmentIndex.get(0))&&Ja.sa&&(w.mimeType="application/mp4",rw(w));Ew(a)&&(a.jb?gw(a,[z]):(a.jb=!0,db=Array.from(a.i.values()),Fa=db.filter(function(ad){return ad.stream.segmentIndex}),gw(a,Fa),Kv(a),$a=a.m,0<$a&&a.A.V($a)));F(xb)}})}function v(){return a.j&&1<c.length?Nt(a.j,b):A.concat(rv([a.N],c,a.u))}var w=Fw(a,d,e,f,g,h,k,l,m,n,p,r),A=[],z={stream:w,type:e,Yh:A,P:v,Hc:0,Xb:0,We:new Map,Ee:!1,De:!1,Td:!1,$f:-1,Fb:-1,Gb:-1,Gg:!1},C=null,y=new AbortController;w.createSegmentIndex=
|
|
1048
1049
|
function(){if(C)return C;y=new AbortController;return C=new Promise(function(B){B(u(y.signal))})};w.closeSegmentIndex=function(){C&&!w.segmentIndex&&y.abort();w.segmentIndex&&(w.segmentIndex.release(),w.segmentIndex=null);C=null};return z}function mw(a){var b=Infinity;a=t(a.i.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.stream.segmentIndex&&"text"!=c.stream.type&&(b=Math.min(b,c.Xb));return b}
|
|
1049
1050
|
function Hv(a,b){var c=[];b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&d.segmentIndex.Xc(function(e){c.push(e)});a.l.ce(c)}function gw(a,b){if(!Fv(a))for(var c=mw(a),d=t(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.Wc(0,c);Hv(a,b.map(function(f){return f.stream}));a.g.hls.ignoreManifestProgramDateTime?Rv(a,b):(Uv(a,b),0<a.g.hls.ignoreManifestProgramDateTimeForTypes.length&&Rv(a,b))}
|
|
1050
1051
|
function Sv(a,b){return a.g.hls.ignoreManifestProgramDateTime?!0:a.g.hls.ignoreManifestProgramDateTimeForTypes.includes(b)}function Ew(a){if(!a.o)return!1;var b=[],c=[];a=t(a.o.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}
|
|
@@ -1059,14 +1060,14 @@ function Nv(a,b,c,d,e){var f,g,h,k,l,m,n,p,r,u,v,w,A,z,C,y,B,D,K,G,J,I,H,N,L,M,Q
|
|
|
1059
1060
|
function Iw(a,b,c,d,e){if(!window.crypto||!window.crypto.subtle)throw Ya("Web Crypto API is not available to decrypt AES. (Web Crypto only exists in secure origins like https)"),new U(2,4,4042);var f=0,g=Y(b,"IV","");if(g){var h=Ic(g.substr(2));if(16!=h.byteLength)throw new U(2,4,4048);}else f=pv(c.g,"EXT-X-MEDIA-SEQUENCE",0);c=b.toString()+"-"+f;if(!a.ha.has(c)){var k={bitsKey:128,blockCipherMode:"CBC",iv:h,firstMediaSequenceNumber:f};switch(jv(b,"METHOD")){case "AES-256":k.bitsKey=256;break;case "AES-256-CTR":k.bitsKey=
|
|
1060
1061
|
256,k.blockCipherMode="CTR"}k.fetchKey=function(){var l,m,n,p,r,u,v;return O(function(w){if(1==w.g)return l=qv(d(),jv(b,"URI"),e),m=l.sort().join(""),a.L.has(m)||(n=Ag(l,a.g.retryParameters),p=jw(a,n,6),a.L.set(m,p)),E(w,a.L.get(m),2);if(3!=w.g){r=w.h;if(!r.data||r.data.byteLength!=k.bitsKey/8)throw new U(2,4,4049);u={name:"CTR"==k.blockCipherMode?"AES-CTR":"AES-CBC",length:k.bitsKey};v=k;return E(w,window.crypto.subtle.importKey("raw",r.data,u,!0,["decrypt"]),3)}v.cryptoKey=w.h;k.fetchKey=void 0;
|
|
1061
1062
|
F(w)})};a.ha.set(c,k)}return a.ha.get(c)}
|
|
1062
|
-
function Qv(a,b){var c=Infinity,d=b.segments;if(d.length)for(var e=d.length-1;0<=e;){var f=ov(d[e].g,"EXTINF");if(f){c=Number(f.value.split(",")[0]);break}e--}d=ov(b.g,"EXT-X-TARGETDURATION");if(!d)throw new U(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);if(e=ov(b.g,"EXT-X-PART-INF"))a.R=Number(jv(e,"PART-TARGET"));b=ov(b.g,"EXT-X-SERVER-CONTROL");a.G&&a.R?(a.m=a.Za?5*a.R<=c?Math.min(a.R,a.m):Math.min(c,a.m):Math.min(a.R,a.m),a.
|
|
1063
|
-
iv(b,"HOLD-BACK"):null,a.qa=c?Number(c.value):0);a.
|
|
1063
|
+
function Qv(a,b){var c=Infinity,d=b.segments;if(d.length)for(var e=d.length-1;0<=e;){var f=ov(d[e].g,"EXTINF");if(f){c=Number(f.value.split(",")[0]);break}e--}d=ov(b.g,"EXT-X-TARGETDURATION");if(!d)throw new U(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);if(e=ov(b.g,"EXT-X-PART-INF"))a.R=Number(jv(e,"PART-TARGET"));b=ov(b.g,"EXT-X-SERVER-CONTROL");a.G&&a.R?(a.m=a.Za?5*a.R<=c?Math.min(a.R,a.m):Math.min(c,a.m):Math.min(a.R,a.m),a.xa=b?Number(jv(b,"PART-HOLD-BACK")):0):(a.m=Math.min(c,a.m),c=b?
|
|
1064
|
+
iv(b,"HOLD-BACK"):null,a.qa=c?Number(c.value):0);a.Ha=Math.max(d,a.Ha)}function fw(a,b){if(a.g.defaultPresentationDelay)b=a.g.defaultPresentationDelay;else if(a.xa)b=a.xa;else if(a.qa)b=a.qa;else{b=b.segments.length;var c=a.g.hls.liveSegmentsDelay;c>b-2&&(c=Math.max(1,b-2));b=a.Ha*c}a.l.ii(0);a.l.Xg(b);a.l.Lc(!1)}
|
|
1064
1065
|
function iw(a,b,c,d,e){var f=ov(c,"EXT-X-MAP");if(!f)return null;var g=jv(f,"URI"),h=qv(d(),g,e);g=[h.toString(),Y(f,"BYTERANGE","")].join("-");if(!a.ba.has(g)){var k=void 0,l=null;c=t(c);for(var m=c.next();!m.done;m=c.next())m=m.value,"EXT-X-KEY"==m.name?vw(jv(m,"METHOD"))&&m.id<f.id&&(k=Iw(a,m,b,d,e)):"EXT-X-BYTERANGE"==m.name&&m.id<f.id&&(l=m);b=Jw(h,f,l,k);a.ba.set(g,b)}return a.ba.get(g)}
|
|
1065
1066
|
function Jw(a,b,c,d){var e=0,f=null;b=Y(b,"BYTERANGE");!b&&c&&(b=c.value);b&&(e=b.split("@"),f=Number(e[0]),e=Number(e[1]),f=e+f-1,d&&(c=f+1-e,c%16&&(f+=16-c%16)));return new Gi(function(){return a},e,f,null,null,null,d)}
|
|
1066
1067
|
function Kw(a,b,c,d,e,f,g,h,k){var l=d.g,m=ov(l,"EXTINF"),n=0,p=0,r=null;d.Rb.length&&!a.G&&Ya("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 u=null;if(!a.g.hls.ignoreManifestProgramDateTime){var v=ov(l,"EXT-X-PROGRAM-DATE-TIME");v&&v.value&&(u=wh(v.value))}var w=Ji;ov(l,"EXT-X-GAP")&&(w=2);if(!m){if(0==d.Rb.length)throw new U(2,4,4024,"EXTINF");
|
|
1067
1068
|
if(!a.G)return null}var A=[];v=!1;var z=null,C=!1,y=!1;if(a.G&&d.Rb.length){n=b&&window.ReadableStream&&a.g.hls.allowLowLatencyByteRangeOptimization;for(var B=u,D={},K=0;K<d.Rb.length;D={Fd:D.Fd,we:D.we},K++){var G=d.Rb[K],J=0==K?c:A[A.length-1],I=0==K?e:J.endTime,H=Number(Y(G,"DURATION"))||a.R;if(H){var N=I+H,L=0,M=null;"EXT-X-PRELOAD-HINT"==G.name?(L=(L=Y(G,"BYTERANGE-START"))?Number(L):0,(J=Y(G,"BYTERANGE-LENGTH"))?M=L+Number(J)-1:L&&(M=Number.MAX_SAFE_INTEGER)):(L=Y(G,"BYTERANGE"),M=t(kw(J,L)),
|
|
1068
1069
|
L=M.next().value,M=M.next().value);D.we=Y(G,"URI");if(D.we){J=Ji;"YES"==Y(G,"GAP")&&(J=2,C=!0);D.Fd=null;var Q=function(R){return function(){null==R.Fd&&(R.Fd=qv(h(),R.we,f));return R.Fd}}(D);n&&0<=L&&null!=M&&(z=Q,v=!0);I=new Ii(I,N,Q,L,M,b,0,0,Infinity,[],"",null,B,J,k);"EXT-X-PRELOAD-HINT"==G.name&&(I.Hg(),y=!0);"YES"!=Y(G,"INDEPENDENT")&&0<K&&I.Ve();A.push(I);B&&(B+=H)}}}}if(m){m=Number(m.value.split(",")[0]);if(0==m)return null;n=e+m}else if(A.length)n=A[A.length-1].endTime;else return null;
|
|
1069
|
-
v&&(C||0!=A[0].
|
|
1070
|
+
v&&(C||0!=A[0].Wa?(v=!1,z=null):A=[]);(m=ov(l,"EXT-X-BYTERANGE"))?(r=t(kw(c,m.value)),p=r.next().value,r=r.next().value):A.length&&(p=A[0].Wa,r=A[A.length-1].Da);c="";m=null;"image"==g&&(c="1x1",g=ov(l,"EXT-X-TILES"))&&(c=jv(g,"LAYOUT"),(g=Y(g,"DURATION"))&&(m=Number(g)));var T=null;b=new Ii(e,n,function(){if(z)return z();null==T&&(T=qv(h(),d.h,f));return T||[]},p,r,b,0,0,Infinity,A,c,m,u,w,k,0<A.length&&!!d.h);v&&(a.Za=!0,b.Qh(),y&&b.Hg());return b}
|
|
1070
1071
|
function kw(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.Da+1,d=c+b-1);return[c,d]}
|
|
1071
1072
|
function Ov(a,b,c,d,e,f){var g=b.segments,h=void 0,k=pv(b.g,"EXT-X-DISCONTINUITY-SEQUENCE",0),l=pv(b.g,"EXT-X-MEDIA-SEQUENCE",0),m=ov(b.g,"EXT-X-SKIP"),n=m?Number(Y(m,"SKIPPED-SEGMENTS")):0,p=l+n,r=0;Fv(a)&&c.has(p)&&(r=c.get(p));0===r&&a.na==lw&&0<c.size&&!c.has(p)&&(r=a.l.Cb());var u=[],v=null;m=[];for(var w=0;w<g.length;w++){var A=g[w],z=0==w?r:v.endTime;p=l+n+w;ov(A.g,"EXT-X-DISCONTINUITY")&&k++;var C=t(A.g);for(var y=C.next();!y.done;y=C.next())y=y.value,"EXT-X-KEY"==y.name&&(vw(jv(y,"METHOD"))?
|
|
1072
1073
|
h=Iw(a,y,b,e,d):h=void 0);c.set(p,z);C=iw(a,b,A.g,e,d);!a.G&&a.h.isAutoLowLatencyMode()&&(a.h.enableLowLatencyMode(),a.G=a.h.isLowLatencyMode());if(z=Kw(a,C,v,A,z,d,f,e,h))(v=pv(A.g,"EXT-X-BITRATE"))?m.push({bitrate:v,duration:z.endTime-z.startTime}):m.length&&(v=m.pop(),v.duration+=z.endTime-z.startTime,m.push(v)),v=z,z.j=k,Sv(a,f)&&null!=a.K&&p<a.K||u.push(z)}b=void 0;m.length&&(b=m.reduce(function(B,D){return B+D.duration},0),b=Math.round(m.reduce(function(B,D){return B+D.bitrate*D.duration},0)/
|
|
@@ -1075,26 +1076,26 @@ e());if(m)for(c=t(u),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.h,e=t(e.g),
|
|
|
1075
1076
|
function qw(a){return a==Sc?"text/vtt":Lw[a].mp4}
|
|
1076
1077
|
function Hw(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,v,w,A;return O(function(z){switch(z.g){case 1:e=Gg;f=Math.trunc((d.length-1)/2);for(g=d[f];2==g.status&&f<d.length;)f++,g=d[f];if(2==g.status)return z.return(qw(b));h=g.P();k=new mb(h[0]);l=k.pb.split(".").pop();m=Lw[b];if((n=m[l])||(n=hw[l])||(n=pw(b,c)))return z.return(n);r=1;u=Ag(h,a.g.retryParameters);ta(z,2);u.method="HEAD";return E(z,jw(a,u,e,{type:r}),4);case 4:v=z.h;p=v.headers["content-type"];va(z,3);break;case 2:w=wa(z);if(!w||1002!=w.code&&
|
|
1077
1078
|
1001!=w.code){z.B(3);break}u.method="GET";return E(z,jw(a,u,e,{type:r}),6);case 6:A=z.h,p=A.headers["content-type"];case 3:return p?z.return(p.toLowerCase().split(";")[0]):z.return(qw(b))}})}function ew(a,b,c,d,e,f,g){a&&(a.width=Number(b)||void 0,a.height=Number(c)||void 0,a.frameRate=Number(d)||void 0,a.hdr=e||void 0,a.videoLayout=f||void 0,a.colorGamut=g||void 0)}function Dv(a,b,c){return jw(a,Ag(b,a.g.retryParameters),0,{type:c?2:3})}
|
|
1078
|
-
function Bv(a){var b,c,d,e,f,g;O(function(h){switch(h.g){case 1:if(!a.h)return h.return();ta(h,2);b=Date.now();return E(h,a.update(),4);case 4:c=Date.now();Fv(a)&&(d=(c-b)/1E3,a.
|
|
1079
|
+
function Bv(a){var b,c,d,e,f,g;O(function(h){switch(h.g){case 1:if(!a.h)return h.return();ta(h,2);b=Date.now();return E(h,a.update(),4);case 4:c=Date.now();Fv(a)&&(d=(c-b)/1E3,a.Na.sample(1,d),e=a.m,f=Math.max(0,e-md(a.Na)),a.A.V(f));va(h,3);break;case 2:g=wa(h);if(!a.h)return h.return();if(a.g.raiseFatalErrorOnManifestUpdateRequestFailure)return a.h.onError(g),h.return();g.severity=1;a.h.onError(g);a.A.V(.1);case 3:if(!a.h)return h.return();a.h.onManifestUpdated();F(h)}})}
|
|
1079
1080
|
function Fv(a){return a.na!=Cv}function Jv(a,b){a.na=b;a.l&&a.l.Lc(!Fv(a));Fv(a)||a.A.stop()}function jw(a,b,c,d){if(!a.S)throw new U(2,7,7001);b=a.h.networkingEngine.request(c,b,d);ug(a.S,b);return b.promise}function vw(a){return"AES-128"==a||"AES-256"==a||"AES-256-CTR"==a}
|
|
1080
|
-
function xw(a,b,c,d,e,f){var g,h,k,l,m,n,p,r,u,v,w,A,z,C,y;return O(function(B){switch(B.g){case 1:if("video/mp2t"==c)throw new U(2,4,4040);if(tc())throw new U(2,4,4041);g=jv(b,"METHOD");h=["SAMPLE-AES","SAMPLE-AES-CTR"];if(!h.includes(g))return B.return(null);k=qv(d(),jv(b,"URI"),f);if(k[0].startsWith("data:text/plain;base64,")){l=Jc(Hc(k[0].split("data:text/plain;base64,").pop()));B.B(2);break}m=k.sort().join("");a.
|
|
1081
|
+
function xw(a,b,c,d,e,f){var g,h,k,l,m,n,p,r,u,v,w,A,z,C,y;return O(function(B){switch(B.g){case 1:if("video/mp2t"==c)throw new U(2,4,4040);if(tc())throw new U(2,4,4041);g=jv(b,"METHOD");h=["SAMPLE-AES","SAMPLE-AES-CTR"];if(!h.includes(g))return B.return(null);k=qv(d(),jv(b,"URI"),f);if(k[0].startsWith("data:text/plain;base64,")){l=Jc(Hc(k[0].split("data:text/plain;base64,").pop()));B.B(2);break}m=k.sort().join("");a.Aa.has(m)||(n=Ag(k,a.g.retryParameters),p=jw(a,n,6),a.Aa.set(m,p));return E(B,a.Aa.get(m),
|
|
1081
1082
|
3);case 3:r=B.h,l=Jc(r.data);case 2:u="00000000000000000000000000000000";if(!e){B.B(4);break}if(a.ma.has(e)){v=a.ma.get(e);B.B(5);break}w=Bl(e.P(),e.Pb(),e.Nb(),a.g.retryParameters);A=Gg;return E(B,jw(a,w,A,{type:0}),6);case 6:z=B.h,v=Ht(z.data),a.ma.set(e,v);case 5:v&&(u=v);case 4:return C=new Map,C.set(u,l),y="cenc","SAMPLE-AES"==g&&(y="cbcs"),B.return(Nc(C,y))}})}P("shaka.hls.HlsParser",Av);
|
|
1082
1083
|
var hw={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},Lw={audio:{mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",tsa:"video/mp2t"},video:{mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t",tsv:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",
|
|
1083
1084
|
vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},ww={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new U(2,4,4040);if(tc())throw new U(2,4,4041);a=jv(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(a))return null;b="cenc";"SAMPLE-AES"==a&&(b="cbcs");return Mc("com.apple.fps",b,[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=
|
|
1084
1085
|
jv(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;var c="cenc";"SAMPLE-AES"==b&&(c="cbcs");b=jv(a,"URI");b=zv(b.split("?")[0]);b=Gb(b.data);c=Mc("com.widevine.alpha",c,[{initDataType:"cenc",initData:b}]);if(a=Y(a,"KEYID"))c.keyIds=new Set([a.toLowerCase().substr(2)]);return c},"com.microsoft.playready":function(a){var b=jv(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;var c="cenc";"SAMPLE-AES"==b&&(c="cbcs");a=jv(a,"URI");a=zv(a.split("?")[0]);a=
|
|
1085
1086
|
Gb(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=ah(a,b,new Set,0);return Mc("com.microsoft.playready",c,[{initDataType:"cenc",initData:a}])}},Cv="VOD",Gw="EVENT",lw="LIVE",Iv={Ci:Cv,Rk:Gw,Zk:lw};Bi["application/x-mpegurl"]=function(){return new Av};Bi["application/vnd.apple.mpegurl"]=function(){return new Av};function Mw(a){var b=0,c=Lb(a),d=c.getUint32(b,!0);if(d!=a.byteLength)return[];a:{a=b+6;for(b=[];a<c.byteLength-1;){d=c.getUint16(a,!0);a+=2;var e=c.getUint16(a,!0);a+=2;if(0!=(e&1)||e+a>c.byteLength){c=[];break a}var f=Gb(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function Nw(a){if(a=Ow(a))a:{a=t(nh(a,"DATA"));for(var b=a.next();!b.done;b=a.next())if(b=oh(b.value,"LA_URL")){a=lh(b);break a}a=""}else a="";return a}
|
|
1086
|
-
function Ow(a){a=Hc(lh(a));a=Mw(a).filter(function(b){return b.type===Pw})[0];if(!a)return null;a=xc(a.value,!0);return(a=ch(a,"WRMHEADER"))?a:null}var Pw=1,Qw=(new Map).set("com.microsoft.playready",Nw).set("com.microsoft.playready.recommendation",Nw).set("com.microsoft.playready.software",Nw).set("com.microsoft.playready.hardware",Nw);function
|
|
1087
|
+
function Ow(a){a=Hc(lh(a));a=Mw(a).filter(function(b){return b.type===Pw})[0];if(!a)return null;a=xc(a.value,!0);return(a=ch(a,"WRMHEADER"))?a:null}var Pw=1,Qw=(new Map).set("com.microsoft.playready",Nw).set("com.microsoft.playready.recommendation",Nw).set("com.microsoft.playready.software",Nw).set("com.microsoft.playready.hardware",Nw);function Rw(a){if(!dx){dx=!0;var b=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),d=new Uint8Array([0,0,0,1]);ex=fx("ftyp",b,d,b,c);b=fx("dref",gx);hx=fx("dinf",b)}this.g=a}
|
|
1087
1088
|
function ix(a){for(var b=[],c=t(a.g),d=c.next();!d.done;d=c.next()){var e=b,f=e.push;var g=d.value;d=fx;var h=g.id+1;var k=g.stream.width||0,l=g.stream.height||0;"audio"==g.type&&(l=k=0);var m=g.duration*g.timescale,n=Math.floor(m/(jx+1));m=Math.floor(m%(jx+1));h=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(kx(h,4)),[0,0,0,0],x(kx(n,4)),x(kx(m,4)),[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0],x(kx(k,2)),[0,0],x(kx(l,
|
|
1088
1089
|
2)),[0,0]));h=fx("tkhd",h);k=fx;n=g.duration*g.timescale;l=Math.floor(n/(jx+1));n=Math.floor(n%(jx+1));m=g.stream.language;m=m.charCodeAt(0)-96<<10|m.charCodeAt(1)-96<<5|m.charCodeAt(2)-96;l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(kx(g.timescale,4)),x(kx(l,4)),x(kx(n,4)),x(kx(m,2)),[0,0]));l=fx("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=lx;break;case "audio":m=mx}n=fx("hdlr",m);a:{switch(g.type){case "video":g=fx("minf",fx("vmhd",nx),hx,ox(g));break a;
|
|
1089
1090
|
case "audio":g=fx("minf",fx("smhd",px),hx,ox(g));break a}g=new Uint8Array([])}g=k("mdia",l,n,g);d=d("trak",h,g);f.call(e,d)}b=Kc.apply(Ec,x(b));f=a.g[0];c=fx;d=f.duration*f.timescale;e=Math.floor(d/(jx+1));d=Math.floor(d%(jx+1));e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(kx(f.timescale,4)),x(kx(e,4)),x(kx(d,4)),[0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,
|
|
1090
1091
|
255]));e=fx("mvhd",e);d=[];a=t(a.g);for(k=a.next();!k.done;k=a.next())g=d,h=g.push,k=new Uint8Array([0,0,0,0].concat(x(kx(k.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1])),k=fx("trex",k),h.call(g,k);a=Kc.apply(Ec,x(d));a=fx("mvex",a);d=[];if(f.encrypted){f=t(f.stream.drmInfos);for(g=f.next();!g.done;g=f.next())if(g=g.value,g.initData)for(g=t(g.initData),h=g.next();!h.done;h=g.next())d.push(h.value.initData);f=Kc.apply(Ec,x(d))}else f=new Uint8Array([]);a=c("moov",e,b,a,f);b=new Uint8Array(ex.byteLength+
|
|
1091
1092
|
a.byteLength);b.set(ex);b.set(a,ex.byteLength);return b}
|
|
1092
|
-
function ox(a){var b=fx,c=new Uint8Array([]);switch(a.type){case "video":if(a.codecs.includes("avc1")){c=a.stream.width||0;var d=a.stream.height||0;if(0<a.
|
|
1093
|
+
function ox(a){var b=fx,c=new Uint8Array([]);switch(a.type){case "video":if(a.codecs.includes("avc1")){c=a.stream.width||0;var d=a.stream.height||0;if(0<a.Ma.byteLength)var e=fx("avcC",a.Ma);else{e=fx;for(var f=7,g=[],h=[],k=0,l=0,m=0,n=0;n<a.ub.length;n++){var p=qx(a.ub[n]);switch(p[0]&31){case 7:g.push(p);f+=p.length+2;break;case 8:h.push(p),f+=p.length+2}}0<g.length&&(k=g[0][1],m=g[0][2],l=g[0][3]);f=new Uint8Array(f);n=0;f[n++]=1;f[n++]=k;f[n++]=m;f[n++]=l;f[n++]=255;f[n++]=224|g.length;for(k=
|
|
1093
1094
|
0;k<g.length;k++)f[n++]=(g[k].length&65280)>>8,f[n++]=g[k].length&255,f.set(g[k],n),n+=g[k].length;f[n++]=h.length;for(g=0;g<h.length;g++)f[n++]=(h[g].length&65280)>>8,f[n++]=h[g].length&255,f.set(h[g],n),n+=h[g].length;e=e("avcC",f)}c=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(x(kx(c,2)),x(kx(d,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]));d="avc1";h=rx(a);g=new Uint8Array([]);
|
|
1094
|
-
a.encrypted&&(g=sx(a),d="encv");c=fx(d,c,e,h,g)}else a.codecs.includes("hvc1")&&(d=a.stream.width||0,e=a.stream.height||0,c=new Uint8Array([]),0<a.
|
|
1095
|
-
c,h,g));break;case "audio":if(a.codecs.includes("mp3"))a=fx(".mp3",tx(a));else if(a.codecs.includes("ac-3"))c=fx("dac3",a.
|
|
1096
|
-
a.
|
|
1097
|
-
a=fx(d,tx(a),c,e)}c=a}a=fx("stsd",ux,c);return b("stbl",a,fx("stts",vx),fx("stsc",wx),fx("stsz",xx),fx("stco",yx))}function rx(a){if(!a.
|
|
1095
|
+
a.encrypted&&(g=sx(a),d="encv");c=fx(d,c,e,h,g)}else a.codecs.includes("hvc1")&&(d=a.stream.width||0,e=a.stream.height||0,c=new Uint8Array([]),0<a.Ma.byteLength&&(c=fx("hvcC",a.Ma)),d=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(x(kx(d,2)),x(kx(e,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),e="hvc1",h=rx(a),g=new Uint8Array([]),a.encrypted&&(g=sx(a),e="encv"),c=fx(e,d,
|
|
1096
|
+
c,h,g));break;case "audio":if(a.codecs.includes("mp3"))a=fx(".mp3",tx(a));else if(a.codecs.includes("ac-3"))c=fx("dac3",a.ya),d="ac-3",e=new Uint8Array([]),a.encrypted&&(e=sx(a),d="enca"),a=fx(d,tx(a),c,e);else if(a.codecs.includes("ec-3"))c=fx("dec3",a.ya),d="ec-3",e=new Uint8Array([]),a.encrypted&&(e=sx(a),d="enca"),a=fx(d,tx(a),c,e);else if(a.codecs.includes("opus"))c=fx("dOps",a.ya),d="Opus",e=new Uint8Array([]),a.encrypted&&(e=sx(a),d="enca"),a=fx(d,tx(a),c,e);else{if(0<a.ya.byteLength)c=fx("esds",
|
|
1097
|
+
a.ya);else{c=fx;d=a.id+1;e=a.stream.channelsCount||2;g=a.stream.audioSamplingRate||44100;k=Oc("audio",a.codecs.split(","));l={96E3:0,88200:1,64E3:2,48E3:3,44100:4,32E3:5,24E3:6,22050:7,16E3:8,12E3:9,11025:10,8E3:11,7350:12};h=l[g];if("mp4a.40.5"===k||"mp4a.40.29"===k)h=l[2*g];g=parseInt(k.split(".").pop(),10);d=new Uint8Array([0,0,0,0,3,25].concat(x(kx(d,2)),[0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,g<<3|h>>>1,h<<7|e<<3,6,1,2]));c=c("esds",d)}d="mp4a";e=new Uint8Array([]);a.encrypted&&(e=sx(a),d="enca");
|
|
1098
|
+
a=fx(d,tx(a),c,e)}c=a}a=fx("stsd",ux,c);return b("stbl",a,fx("stts",vx),fx("stsc",wx),fx("stsz",xx),fx("stco",yx))}function rx(a){if(!a.Sa&&!a.Ua)return new Uint8Array([]);var b=a.Ua;a=new Uint8Array([].concat(x(kx(a.Sa,4)),x(kx(b,4))));return fx("pasp",a)}function tx(a){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,a.stream.channelsCount||2,0,16,0,0,0,0].concat(x(kx(a.stream.audioSamplingRate||44100,2)),[0,0]))}
|
|
1098
1099
|
function sx(a){var b=fx;var c=a.codecs.substring(0,a.codecs.indexOf("."));for(var d=0,e=0;e<c.length;e+=1)d|=c.charCodeAt(e)<<8*(c.length-e-1);c=new Uint8Array([].concat(x(kx(d,4))));c=fx("frma",c);d=new Uint8Array([0,0,0,0,99,101,110,99,0,1,0,0]);d=fx("schm",d);e=fx;var f=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);a=t(a.stream.drmInfos);for(var g=a.next();!g.done;g=a.next())if((g=g.value)&&g.keyIds&&g.keyIds.size){g=t(g.keyIds);for(var h=g.next();!h.done;h=g.next())f=qx(h.value)}a=new Uint8Array([0,
|
|
1099
1100
|
0,0,0,0,0,1,8]);f=fx("tenc",a,f);return b("sinf",c,d,e("schi",f))}
|
|
1100
1101
|
function zx(a){var b=[];a=t(a.g);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=b.push,e=d.apply;var f=fx;var g=new Uint8Array([0,0,0,0].concat(x(kx(c.data?c.data.Ib:0,4))));g=fx("mfhd",g);var h;var k=c.data?c.data.rb:[];var l=new Uint8Array(4+k.length);for(h=0;h<k.length;h++){var m=k[h].flags;l[h+4]=m.ib<<4|m.mb<<2|m.kb}k=fx("sdtp",l);var n=k.length+92;l=fx;h=new Uint8Array([0,0,0,58].concat(x(kx(c.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0]));h=fx("tfhd",h);m=c.data?c.data.baseMediaDecodeTime:
|
|
@@ -1116,7 +1117,7 @@ function Fx(a,b,c,d,e,f){var g=b.attributes.Type;if("audio"!==g&&"video"!==g&&"t
|
|
|
1116
1117
|
closeSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:"",codecs:"",frameRate:void 0,pixelAspectRatio:void 0,bandwidth:l||0,width:m||void 0,height:n||void 0,kind:"",encrypted:0<e.length,drmInfos:e,keyIds:new Set,language:Xc(h||"und"),originalLanguage:h,label:"",type:"",primary:!1,trickModeVideo:null,emsgSchemeIdUris:[],roles:[],forced:!1,channelsCount:p,audioSamplingRate:r,spatialAudio:!1,closedCaptions:null,hdr:void 0,colorGamut:void 0,videoLayout:void 0,tilesLayout:void 0,
|
|
1117
1118
|
matchedStreams:[],mssPrivateData:{duration:u,timescale:f.timescale,codecPrivateData:null},accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set};if(e=b.attributes.Subtype)(e=Gx[e])&&w.roles.push(e),"main"===e&&(w.primary=!0);e=c.attributes.FourCC;if(null===e||""===e)e=b.attributes.FourCC;if(!e)if("audio"===g)e="AAC";else if("video"===g)return Ya('FourCC is not defined whereas it is required for a QualityLevel element for a StreamIndex of type "video"'),null;if(!Hx.includes(e.toUpperCase()))return Ya("Codec not supported:",
|
|
1118
1119
|
e),null;c=Ix(c,g,e,w);w.mssPrivateData.codecPrivateData=c;switch(g){case "audio":if(!c)return Ya("Quality unsupported without CodecPrivateData",g),null;w.type="audio";w.mimeType="mss/audio/mp4";w.codecs=Jx(e,c);break;case "video":if(!c)return Ya("Quality unsupported without CodecPrivateData",g),null;w.type="video";w.mimeType="mss/video/mp4";w.codecs=Kx(c);break;case "text":if(w.type=Sc,w.mimeType="application/mp4","TTML"===e||"DFXP"===e)w.codecs="stpp"}w.fullMimeTypes.add(te(w.mimeType,w.codecs));
|
|
1119
|
-
w.createSegmentIndex=function(){if(w.segmentIndex)return Promise.resolve();if(a.m.has(w.id))var A=a.m.get(w.id);else A=[],"video"==w.type&&(A=w.mssPrivateData.codecPrivateData.split("00000001").slice(1)),A={id:w.id,type:w.type,codecs:w.codecs,encrypted:w.encrypted,timescale:w.mssPrivateData.timescale,duration:w.mssPrivateData.duration,ub:A,
|
|
1120
|
+
w.createSegmentIndex=function(){if(w.segmentIndex)return Promise.resolve();if(a.m.has(w.id))var A=a.m.get(w.id);else A=[],"video"==w.type&&(A=w.mssPrivateData.codecPrivateData.split("00000001").slice(1)),A={id:w.id,type:w.type,codecs:w.codecs,encrypted:w.encrypted,timescale:w.mssPrivateData.timescale,duration:w.mssPrivateData.duration,ub:A,ya:new Uint8Array([]),Ma:new Uint8Array([]),Sa:0,Ua:0,data:null,stream:w},A=ix(new Rw([A])),a.m.set(w.id,A);A=Lx(a,new Gi(function(){return[]},0,null,null,void 0,
|
|
1120
1121
|
A),w,b,d);w.segmentIndex=new Xk(A);return Promise.resolve()};w.closeSegmentIndex=function(){w.segmentIndex&&(w.segmentIndex.release(),w.segmentIndex=null)};return w}
|
|
1121
1122
|
function Ix(a,b,c,d){if(a=a.attributes.CodecPrivateData)return a;if("audio"!==b)return null;b=d.channelsCount||2;a=d.audioSamplingRate||44100;var e={96E3:0,88200:1,64E3:2,48E3:3,44100:4,32E3:5,24E3:6,22050:7,16E3:8,12E3:9,11025:10,8E3:11,7350:12};d=e[a];if("AACH"===c)return c=new Uint8Array(4),a=e[2*a],c[0]=40|d>>1,c[1]=d<<7|b<<3|a>>1,c[2]=a<<7|8,c[3]=0,b=new Uint16Array(2),b[0]=(c[0]<<8)+c[1],b[1]=(c[2]<<8)+c[3],b[0].toString(16)+b[1].toString(16);c=new Uint8Array(2);c[0]=16|d>>1;c[1]=d<<7|b<<3;
|
|
1122
1123
|
b=new Uint16Array(1);b[0]=(c[0]<<8)+c[1];return b[0].toString(16)}function Jx(a,b){var c=0;"AACH"===a&&(c=5);b?0===c&&(c=(parseInt(b.substr(0,2),16)&248)>>3):(c=2,"AACH"===a&&(c=5));return"mp4a.40."+c}function Kx(a){var b=/00000001[0-9]7/.exec(a);return b.length&&a?"avc1."+a.substr(a.indexOf(b[0])+10,6):""}
|
|
@@ -1128,7 +1129,7 @@ function Ux(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}functio
|
|
|
1128
1129
|
Vx()&&(wg("http",Ox,2,!0),wg("https",Ox,2,!0),wg("blob",Ox,2,!0));function Wx(){}
|
|
1129
1130
|
function Xx(a,b,c,d,e){var f=new Yx,g=Date.now(),h=0,k=new Promise(function(l,m){f.open(b.method,a,!0);f.responseType="arraybuffer";f.timeout=b.retryParameters.timeout;f.withCredentials=b.allowCrossSiteCredentials;f.onabort=function(){m(new U(1,1,7001,a,c))};var n=!1;f.onreadystatechange=function(){if(2==f.readyState&&!n){var r=Zx(f);e(r);n=!0}};f.onload=function(r){var u=Zx(f),v=f.response;try{d(Date.now()-g,r.loaded-h,0);var w=Mx(u,v,f.status,a,f.responseURL,c);l(w)}catch(A){m(A)}};f.onerror=function(r){m(new U(1,
|
|
1130
1131
|
1,1002,a,r,c))};f.ontimeout=function(){m(new U(1,1,1003,a,c))};f.onprogress=function(r){var u=Date.now();if(100<u-g||r.lengthComputable&&r.loaded==r.total)d(u-g,r.loaded-h,4==f.readyState?0:r.total-r.loaded),h=r.loaded,g=u};for(var p in b.headers)f.setRequestHeader(p.toLowerCase(),b.headers[p]);f.send(b.body)});return new mg(k,function(){f.abort();return Promise.resolve()})}
|
|
1131
|
-
function Zx(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value.split(": "),a[c[0].toLowerCase()]=c.slice(1).join(": ");return a}P("shaka.net.HttpXHRPlugin",Wx);Wx.parse=Xx;var Yx=window.XMLHttpRequest;wg("http",Xx,1,!0);wg("https",Xx,1,!0);wg("blob",Xx,1,!0);function $x(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function ay(a){return a.P().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.
|
|
1132
|
+
function Zx(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value.split(": "),a[c[0].toLowerCase()]=c.slice(1).join(": ");return a}P("shaka.net.HttpXHRPlugin",Wx);Wx.parse=Xx;var Yx=window.XMLHttpRequest;wg("http",Xx,1,!0);wg("https",Xx,1,!0);wg("blob",Xx,1,!0);function $x(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function ay(a){return a.P().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.Wa+":"+a.Da}function by(a,b){return Bl(a.g.P(),a.g.Wa,a.g.Da,b.streaming.retryParameters)};function cy(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function dy(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}cy.prototype.close=function(a,b){if(this.g.has(a)){var c=this.g.get(a);this.g.delete(a);this.j+=c;this.h+=b}};function ey(a){var b=this;this.o=a;this.j=new Map;this.i=new Ig(function(){return fy(b).catch(function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new cy}ey.prototype.destroy=function(){return this.i.destroy()};function gy(a,b,c){a.m=b;a.l=c}function fy(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
|
|
1132
1133
|
function hy(a,b,c,d,e,f){Jg(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,p,r;return O(function(u){if(1==u.g)return E(u,iy(a,c),2);h=u.h;if(a.i.g)throw new U(2,9,7001);if(e)for(m in k=Gb(h),l=new $g(k),l.data)n=Number(m),p=l.data[n],r=l.g[n],a.l(p,r);a.g.close(d,h.byteLength);var v=a.g;a.m(0==v.i?0:v.j/v.i,a.g.h);return u.return(f(h))})});a.j.set(b,g)}function jy(a){return O(function(b){return 1==b.g?E(b,Promise.all(a.j.values()),2):b.return(a.g.h)})}
|
|
1133
1134
|
function iy(a,b){var c,d,e,f;return O(function(g){if(1==g.g)return c=Gg,d=a.o.request(c,b),e=function(){return d.abort()},a.h.push(e),E(g,d.promise,2);f=g.h;Od(a.h,e);return g.return(f.data)})};function ky(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new lg;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}ky.prototype.abort=function(){var a=this;return O(function(b){if(1==b.g){try{a.i.abort()}catch(c){}ta(b,2);return E(b,a.g,4)}if(2!=b.g)return va(b,0);wa(b);F(b)})};
|
|
1134
1135
|
function ly(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return O(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return E(g,b(f.key,f.value,f),2)}f.continue();F(g)})}})}ky.prototype.store=function(){return this.h};ky.prototype.promise=function(){return this.g};function my(a){this.h=a;this.g=[]}my.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function ny(a,b){return oy(a,b,"readwrite")}function oy(a,b,c){c=a.h.transaction([b],c);var d=new ky(c,b);a.g.push(d);d.promise().then(function(){Od(a.g,d)},function(){Od(a.g,d)});return d};function py(a,b,c){this.h=new my(a);this.i=b;this.g=c}q=py.prototype;q.destroy=function(){return this.h.destroy()};q.hasFixedKeySpace=function(){return!0};q.addSegments=function(){return qy(this.i)};q.removeSegments=function(a,b){return ry(this,this.i,a,b)};q.getSegments=function(a){var b=this,c;return O(function(d){if(1==d.g)return E(d,sy(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.xh(e)}))})};q.addManifests=function(){return qy(this.g)};
|
|
@@ -1170,7 +1171,7 @@ q.start=function(a,b){var c=this,d,e,f,g,h,k,l;return O(function(m){switch(m.g){
|
|
|
1170
1171
|
q.update=function(){};
|
|
1171
1172
|
q.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return O(function(m){switch(m.g){case 1:return d=c.g,e=new vy,ta(m,2,3),E(m,e.init(),5);case 5:return E(m,zy(e,d.Eb(),d.$a()),6);case 6:return f=m.h,E(m,f.getManifests([d.key()]),7);case 7:g=m.h;h=g[0];k=h.sessionIds.includes(a);l=void 0==h.expiration||h.expiration>b;if(!k||!l){m.B(3);break}return E(m,f.updateManifestExpiration(d.key(),b),3);case 3:return xa(m),E(m,e.destroy(),10);case 10:ya(m,0);break;case 2:wa(m),m.B(3)}})};
|
|
1172
1173
|
q.onInitialVariantChosen=function(){};q.banLocation=function(){};Bi["application/x-offline-manifest"]=function(){return new Wy};function Xy(){}function Yy(a){var b=Py(a);b&&"manifest"==b.g?(a={uri:a,originalUri:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=pg(a)):a=b&&"segment"==b.g?Zy(b.key(),b):ng(new U(2,1,9004,a));return a}
|
|
1173
|
-
function Zy(a,b){var c=new vy;return pg(void 0).
|
|
1174
|
+
function Zy(a,b){var c=new vy;return pg(void 0).Qa(function(){return c.init()}).Qa(function(){return zy(c,b.Eb(),b.$a())}).Qa(function(d){return d.getSegments([b.key()])}).Qa(function(d){return{uri:b,data:d[0].data,headers:{}}}).finally(function(){return c.destroy()})}P("shaka.offline.OfflineScheme",Xy);Xy.plugin=Yy;wg("offline",Yy);function $y(a,b,c){var d,e,f,g,h,k;return O(function(l){switch(l.g){case 1:d=[];for(var m=[],n=t(c),p=n.next();!p.done;p=n.next()){p=p.value;for(var r=!1,u=t(m),v=u.next();!v.done;v=u.next())if(v=v.value,az(v.info,p)){v.sessionIds.push(p.sessionId);r=!0;break}r||m.push({info:p,sessionIds:[p.sessionId]})}e=t(m);f=e.next();case 2:if(f.done){l.B(4);break}g=f.value;h=bz(a,b,g);return E(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.B(2);break;case 4:return l.return(d)}})}
|
|
1174
1175
|
function bz(a,b,c){var d,e;return O(function(f){switch(f.g){case 1:return d=new Jh({Zb:b,onError:function(){},bf:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),ta(f,2),d.configure(a),E(f,Rh(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:va(f,3);break;case 2:return wa(f),E(f,d.destroy(),5);case 5:return f.return([]);case 3:return e=[],E(f,Promise.all(c.sessionIds.map(function(g){return O(function(h){if(1==
|
|
1175
1176
|
h.g)return ta(h,2),E(h,ci(d,g),4);if(2!=h.g)return e.push(g),va(h,0);wa(h);F(h)})})),6);case 6:return E(f,d.destroy(),7);case 7:return f.return(e)}})}function az(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&Pd(a.audioCapabilities,b.audioCapabilities,c)&&Pd(a.videoCapabilities,b.videoCapabilities,c)};function cz(a,b,c){var d=b.presentationTimeline.getDuration();b=dz(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function ez(a,b){var c=Ry(new Qy(a.Eb(),a.$a()),b),d=b.appMetadata||{};c=dz(c);return{offlineUri:a.toString(),originalManifestUri:b.originalManifestUri,duration:b.duration,size:b.size,expiration:b.expiration,tracks:c,appMetadata:d,isIncomplete:b.isIncomplete||!1}}
|
|
1176
1177
|
function dz(a){var b=[],c=Ff(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push(wf(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(xf(c.value));return b};function fz(){this.g={}}function gz(a,b){var c=b.audio,d=b.video;c&&!d&&(a.g[c.id]=c.bandwidth||b.bandwidth);!c&&d&&(a.g[d.id]=d.bandwidth||b.bandwidth);if(c&&d){var e=c.bandwidth||393216,f=d.bandwidth||b.bandwidth-e;0>=f&&(f=b.bandwidth);a.g[c.id]=e;a.g[d.id]=f}}function hz(a,b){a.g[b.id]=b.bandwidth||2048}function iz(a,b){a=a.g[b];null==a&&(a=0);return a};function jz(a){var b=this;if(a&&a.constructor!=X)throw new U(2,9,9008);this.g=this.h=null;a?(this.h=a.g,this.g=a.hc()):(this.h=vm(),this.g=new vg);this.i=[];this.j=[];var c=!a;this.l=new Ig(function(){var d,e,f,g,h;return O(function(k){switch(k.g){case 1:return E(k,Promise.all(b.j.map(function(l){return fy(l)})),2);case 2:d=function(){};e=[];f=t(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return E(k,Promise.all(e),3);case 3:if(!c){k.B(4);break}return E(k,b.g.destroy(),4);
|
|
@@ -1315,21 +1316,21 @@ function PC(a,b){if(b+1<a.length&&255===a[b]&&240===(a[b+1]&246)){var c=a[b+1]&1
|
|
|
1315
1316
|
function QC(a,b){switch(a){case "mp4a.40.2":if(1===b)return new Uint8Array([0,200,0,128,35,128]);if(2===b)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,
|
|
1316
1317
|
2,0,178,0,32,8,224]);break;default:if(1===b)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===b||3===b)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null};function RC(a){this.i=a;this.h=0;this.g=new Map}q=RC.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/aac"==a.toLowerCase().split(";")[0]?td(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/aac"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="'+(Ke(b)||"mp4a.40.2")+'"':b};q.getOriginalMimeType=function(){return this.i};
|
|
1317
1318
|
q.transmux=function(a,b,c,d){for(var e=Gb(a),f=Yi(e),g=f.length;g<e.length&&!PC(e,g);g++);a=1E3*c.endTime;f=Xi(f);f.length&&c&&(f=f.find(function(m){return"com.apple.streaming.transportStreamTimestamp"===m.description}))&&(a=f.data);f=OC(e,g);if(!f)return Promise.reject(new U(2,3,3018,c?c.P()[0]:null));b.audioSamplingRate=f.sampleRate;b.channelsCount=f.channelCount;for(var h=[];g<e.length;){var k=NC(e,g);if(!k)return Promise.reject(new U(2,3,3018,c?c.P()[0]:null));var l=k.Pe+k.ia;g+l<=e.length&&h.push({data:e.subarray(g+
|
|
1318
|
-
k.Pe,g+l),size:k.ia,duration:1024,wb:0,flags:{xb:0,mb:0,kb:0,hb:0,ib:2,yb:0}});g+=l}c=f.sampleRate;a=Math.floor(a*c/1E3);d={id:b.id,type:"audio",codecs:f.cb,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:c,duration:d,ub:[],
|
|
1319
|
+
k.Pe,g+l),size:k.ia,duration:1024,wb:0,flags:{xb:0,mb:0,kb:0,hb:0,ib:2,yb:0}});g+=l}c=f.sampleRate;a=Math.floor(a*c/1E3);d={id:b.id,type:"audio",codecs:f.cb,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:c,duration:d,ub:[],ya:new Uint8Array([]),Ma:new Uint8Array([]),Sa:0,Ua:0,data:{Ib:this.h,baseMediaDecodeTime:a,rb:h},stream:b};c=new Rw([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=ix(c),this.g.set(b.id,d));b=zx(c);this.h++;b=Kc(d,b);return Promise.resolve(b)};
|
|
1319
1320
|
P("shaka.transmuxer.AacTransmuxer",RC);RC.prototype.transmux=RC.prototype.transmux;RC.prototype.getOriginalMimeType=RC.prototype.getOriginalMimeType;RC.prototype.convertCodecs=RC.prototype.convertCodecs;RC.prototype.isSupported=RC.prototype.isSupported;RC.prototype.destroy=RC.prototype.destroy;le("audio/aac",function(){return new RC("audio/aac")},re);function SC(a,b){if(b+8>a.length||11!==a[b]||119!==a[b+1])return null;var c=a[b+4]>>6;if(3<=c)return null;var d=a[b+4]&63,e=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,
|
|
1320
|
-
1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*d+c];if(b+e>a.length)return null;var f=a[b+6]>>5,g=0;2===f?g+=2:(f&1&&1!==f&&(g+=2),f&4&&(g+=2));g=(a[b+6]<<8|a[b+7])>>12-g&1;var h=a[b+5]&7;a=new Uint8Array([c<<6|a[b+5]>>3<<1|h>>2,(h&3)<<6|f<<3|g<<2|d>>4,d<<4&224]);return{sampleRate:[48E3,44100,32E3][c],channelCount:[2,1,2,3,3,4,4,5][f]+g,
|
|
1321
|
+
1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*d+c];if(b+e>a.length)return null;var f=a[b+6]>>5,g=0;2===f?g+=2:(f&1&&1!==f&&(g+=2),f&4&&(g+=2));g=(a[b+6]<<8|a[b+7])>>12-g&1;var h=a[b+5]&7;a=new Uint8Array([c<<6|a[b+5]>>3<<1|h>>2,(h&3)<<6|f<<3|g<<2|d>>4,d<<4&224]);return{sampleRate:[48E3,44100,32E3][c],channelCount:[2,1,2,3,3,4,4,5][f]+g,ya:a,ia:e}}
|
|
1321
1322
|
function TC(a,b){if(11===a[b]&&119===a[b+1]){var c=0,d=5;b+=d;for(var e,f;0<d;){f=a[b];var g=Math.min(d,8),h=8-g;e=4278190080>>>24+h<<h;e=(f&e)>>h;c=c?c<<g|e:e;b+=1;d-=g}if(16>c)return!0}return!1};function UC(a){this.i=a;this.h=0;this.g=new Map}q=UC.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/ac3"==a.toLowerCase().split(";")[0]?td(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/ac3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ac-3"':b};q.getOriginalMimeType=function(){return this.i};
|
|
1322
|
-
q.transmux=function(a,b,c,d){a=Gb(a);for(var e=Yi(a),f=e.length;f<a.length&&!TC(a,f);f++);var g=1E3*c.endTime;e=Xi(e);e.length&&c&&(e=e.find(function(m){return"com.apple.streaming.transportStreamTimestamp"===m.description}))&&(g=e.data);e=0;for(var h=new Uint8Array([]),k=[];f<a.length;){var l=SC(a,f);if(!l)return Promise.reject(new U(2,3,3018,c?c.P()[0]:null));b.audioSamplingRate=l.sampleRate;b.channelsCount=l.channelCount;e=l.sampleRate;h=l.
|
|
1323
|
-
wb:0,flags:{xb:0,mb:0,kb:0,hb:0,ib:2,yb:0}});f+=l.ia}c=Math.floor(g*e/1E3);d={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,ub:[],
|
|
1324
|
-
UC.prototype.getOriginalMimeType=UC.prototype.getOriginalMimeType;UC.prototype.convertCodecs=UC.prototype.convertCodecs;UC.prototype.isSupported=UC.prototype.isSupported;UC.prototype.destroy=UC.prototype.destroy;le("audio/ac3",function(){return new UC("audio/ac3")},re);function VC(a,b){if(b+8>a.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new hj(a.subarray(b+2));jj(c,2);jj(c,3);var d=kj(c,11)+1<<1,e=kj(c,2);if(3==e){e=kj(c,2);e=[24E3,22060,16E3][e];var f=3}else e=[48E3,44100,32E3][e],f=kj(c,2);var g=kj(c,3),h=kj(c,1);c=kj(c,5);if(b+d>a.byteLength)return null;a=Math.floor(d*e/(16*[1,2,3,6][f]));a=new Uint8Array([(a&8160)>>5,(a&31)<<3,e<<6|c<<1|0,0|g<<1|h<<0,0]);return{sampleRate:e,channelCount:[2,1,2,3,3,4,4,5][g]+h,
|
|
1325
|
-
q.transmux=function(a,b,c,d){a=Gb(a);for(var e=Yi(a),f=e.length;f<a.length&&2935!==(a[f]<<8|a[f+1]<<0);f++);var g=1E3*c.endTime;e=Xi(e);e.length&&c&&(e=e.find(function(m){return"com.apple.streaming.transportStreamTimestamp"===m.description}))&&(g=e.data);e=0;for(var h=new Uint8Array([]),k=[];f<a.length;){var l=VC(a,f);if(!l)return Promise.reject(new U(2,3,3018,c?c.P()[0]:null));b.audioSamplingRate=l.sampleRate;b.channelsCount=l.channelCount;e=l.sampleRate;h=l.
|
|
1326
|
-
size:l.ia,duration:1536,wb:0,flags:{xb:0,mb:0,kb:0,hb:0,ib:2,yb:0}});f+=l.ia}c=Math.floor(g*e/1E3);d={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,ub:[],
|
|
1323
|
+
q.transmux=function(a,b,c,d){a=Gb(a);for(var e=Yi(a),f=e.length;f<a.length&&!TC(a,f);f++);var g=1E3*c.endTime;e=Xi(e);e.length&&c&&(e=e.find(function(m){return"com.apple.streaming.transportStreamTimestamp"===m.description}))&&(g=e.data);e=0;for(var h=new Uint8Array([]),k=[];f<a.length;){var l=SC(a,f);if(!l)return Promise.reject(new U(2,3,3018,c?c.P()[0]:null));b.audioSamplingRate=l.sampleRate;b.channelsCount=l.channelCount;e=l.sampleRate;h=l.ya;k.push({data:a.subarray(f,f+l.ia),size:l.ia,duration:1536,
|
|
1324
|
+
wb:0,flags:{xb:0,mb:0,kb:0,hb:0,ib:2,yb:0}});f+=l.ia}c=Math.floor(g*e/1E3);d={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,ub:[],ya:h,Ma:new Uint8Array([]),Sa:0,Ua:0,data:{Ib:this.h,baseMediaDecodeTime:c,rb:k},stream:b};c=new Rw([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=ix(c),this.g.set(b.id,d));b=zx(c);this.h++;b=Kc(d,b);return Promise.resolve(b)};P("shaka.transmuxer.Ac3Transmuxer",UC);UC.prototype.transmux=UC.prototype.transmux;
|
|
1325
|
+
UC.prototype.getOriginalMimeType=UC.prototype.getOriginalMimeType;UC.prototype.convertCodecs=UC.prototype.convertCodecs;UC.prototype.isSupported=UC.prototype.isSupported;UC.prototype.destroy=UC.prototype.destroy;le("audio/ac3",function(){return new UC("audio/ac3")},re);function VC(a,b){if(b+8>a.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new hj(a.subarray(b+2));jj(c,2);jj(c,3);var d=kj(c,11)+1<<1,e=kj(c,2);if(3==e){e=kj(c,2);e=[24E3,22060,16E3][e];var f=3}else e=[48E3,44100,32E3][e],f=kj(c,2);var g=kj(c,3),h=kj(c,1);c=kj(c,5);if(b+d>a.byteLength)return null;a=Math.floor(d*e/(16*[1,2,3,6][f]));a=new Uint8Array([(a&8160)>>5,(a&31)<<3,e<<6|c<<1|0,0|g<<1|h<<0,0]);return{sampleRate:e,channelCount:[2,1,2,3,3,4,4,5][g]+h,ya:a,ia:d}};function WC(a){this.i=a;this.h=0;this.g=new Map}q=WC.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/ec3"==a.toLowerCase().split(";")[0]?td(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/ec3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ec-3"':b};q.getOriginalMimeType=function(){return this.i};
|
|
1326
|
+
q.transmux=function(a,b,c,d){a=Gb(a);for(var e=Yi(a),f=e.length;f<a.length&&2935!==(a[f]<<8|a[f+1]<<0);f++);var g=1E3*c.endTime;e=Xi(e);e.length&&c&&(e=e.find(function(m){return"com.apple.streaming.transportStreamTimestamp"===m.description}))&&(g=e.data);e=0;for(var h=new Uint8Array([]),k=[];f<a.length;){var l=VC(a,f);if(!l)return Promise.reject(new U(2,3,3018,c?c.P()[0]:null));b.audioSamplingRate=l.sampleRate;b.channelsCount=l.channelCount;e=l.sampleRate;h=l.ya;k.push({data:a.subarray(f,f+l.ia),
|
|
1327
|
+
size:l.ia,duration:1536,wb:0,flags:{xb:0,mb:0,kb:0,hb:0,ib:2,yb:0}});f+=l.ia}c=Math.floor(g*e/1E3);d={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,ub:[],ya:h,Ma:new Uint8Array([]),Sa:0,Ua:0,data:{Ib:this.h,baseMediaDecodeTime:c,rb:k},stream:b};c=new Rw([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=ix(c),this.g.set(b.id,d));b=zx(c);this.h++;b=Kc(d,b);return Promise.resolve(b)};P("shaka.transmuxer.Ec3Transmuxer",WC);WC.prototype.transmux=WC.prototype.transmux;
|
|
1327
1328
|
WC.prototype.getOriginalMimeType=WC.prototype.getOriginalMimeType;WC.prototype.convertCodecs=WC.prototype.convertCodecs;WC.prototype.isSupported=WC.prototype.isSupported;WC.prototype.destroy=WC.prototype.destroy;le("audio/ec3",function(){return new WC("audio/ec3")},re);function XC(a){if(!a.length)return null;var b=a.find(function(v){return 7==v.type});a=a.find(function(v){return 8==v.type});if(!b||!a)return null;var c=new hj(b.data),d=sj(c);sj(c);sj(c);mj(c);if(YC.includes(d)&&(d=V(c),3===d&&jj(c,1),mj(c),mj(c),jj(c,1),rj(c))){d=3!==d?8:12;for(var e=0;e<d;e++)rj(c)&&(6>e?tj(c,16):tj(c,64))}mj(c);d=V(c);if(0===d)V(c);else if(1===d)for(jj(c,1),mj(c),mj(c),d=V(c),e=0;e<d;e++)mj(c);mj(c);jj(c,1);var f=V(c),g=V(c),h=kj(c,1);0===h&&jj(c,1);jj(c,1);var k=0,l=0,m=0,n=0;
|
|
1328
1329
|
rj(c)&&(k=V(c),l=V(c),m=V(c),n=V(c));e=d=1;if(rj(c)&&rj(c)){var p=sj(c),r=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],u=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];0<p&&16>=p?(d=r[p-1],e=u[p-1]):255===p&&(d=kj(c,16),e=kj(c,16))}c=(2-h)*(g+1)*16-2*m-2*n;f=16*(f+1)-2*k-2*l;k=[];b=b.fullData;k.push(b.byteLength>>>8&255);k.push(b.byteLength&255);k=k.concat.apply(k,x(b));b=[];a=a.fullData;b.push(a.byteLength>>>8&255);b.push(a.byteLength&255);b=b.concat.apply(b,x(a));a=new Uint8Array([1,k[3],k[4],
|
|
1329
|
-
k[5],255,225].concat(k,[1],b));return{height:c,width:f,
|
|
1330
|
+
k[5],255,225].concat(k,[1],b));return{height:c,width:f,Ma:a,Sa:d,Ua:e}}
|
|
1330
1331
|
function ZC(a){var b=!1,c=[],d=a.find(function(k){return 7==k.type}),e=!1;a=t(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;var g=!1;switch(f.type){case 1:g=e=!0;var h=f.data;d&&4<h.length&&(h=uj(new hj(h)),2===h||4===h||7===h||9===h)&&(b=!0);break;case 5:b=g=e=!0;break;case 6:g=!0;break;case 7:g=!0;break;case 8:g=!0;break;case 9:e=g=!0;break;case 12:g=!0;break;default:g=!1}e&&g&&(g=f.fullData.byteLength,h=new Uint8Array(4),h[0]=g>>24&255,h[1]=g>>16&255,h[2]=g>>8&255,h[3]=g&255,c.push(h),c.push(f.fullData))}return c.length?
|
|
1331
1332
|
{data:Kc.apply(Ec,x(c)),Yd:b}:null}var YC=[100,110,122,244,44,83,86,118,128,138,139,134];function $C(a){if(!a.length)return null;var b=a.find(function(g){return 32==g.type}),c=a.find(function(g){return 33==g.type}),d=a.find(function(g){return 34==g.type});if(!b||!c||!d)return null;var e=aD(b.fullData);a=bD(c.fullData);var f=cD(d.fullData);b=dD(b.fullData,c.fullData,d.fullData,{Kg:e.Kg,gh:e.gh,ng:a.ng,og:a.og,hg:a.hg,mg:a.mg,ig:a.ig,jg:a.jg,kg:a.kg,lg:a.lg,ag:a.ag,cg:a.cg,dg:a.dg,eg:a.eg,fg:a.fg,gg:a.gg,Yf:a.Yf,Ye:a.Ye,Wf:a.Wf,Tf:a.Tf,Sf:a.Sf,Ng:f.Ng});return{height:a.height,width:a.width,
|
|
1332
|
-
|
|
1333
|
+
Ma:b,Sa:a.nk,Ua:a.lk}}function aD(a){var b=new hj(a,!0);sj(b);sj(b);kj(b,4);kj(b,2);kj(b,6);a=kj(b,3);b=rj(b);return{Kg:a+1,gh:b}}
|
|
1333
1334
|
function bD(a){a=new hj(a,!0);sj(a);sj(a);var b=0,c=0,d=0,e=0;kj(a,4);var f=kj(a,3);rj(a);for(var g=kj(a,2),h=kj(a,1),k=kj(a,5),l=sj(a),m=sj(a),n=sj(a),p=sj(a),r=sj(a),u=sj(a),v=sj(a),w=sj(a),A=sj(a),z=sj(a),C=sj(a),y=[],B=[],D=0;D<f;D++)y.push(rj(a)),B.push(rj(a));if(0<f)for(D=f;8>D;D++)kj(a,2);for(D=0;D<f;D++)y[D]&&kj(a,88),B[D]&&sj(a);V(a);y=V(a);3==y&&kj(a,1);B=V(a);D=V(a);rj(a)&&(b+=V(a),c+=V(a),d+=V(a),e+=V(a));var K=V(a),G=V(a),J=V(a);if(rj(a))for(var I=0;I<=f;I++)V(a),V(a),V(a);else V(a),
|
|
1334
1335
|
V(a),V(a);V(a);V(a);V(a);V(a);V(a);V(a);if(rj(a)&&rj(a))for(I=0;4>I;I++)for(var H=0;H<(3===I?2:6);H++)if(rj(a)){var N=Math.min(64,1<<4+(I<<1));1<I&&nj(a);for(var L=0;L<N;L++)nj(a)}else V(a);rj(a);rj(a);rj(a)&&(sj(a),V(a),V(a),rj(a));I=V(a);for(N=H=0;N<I;N++)if(L=!1,0!==N&&(L=rj(a)),L){N===I&&V(a);rj(a);V(a);for(var M=L=0;M<=H;M++){var Q=rj(a),T=!1;Q||(T=rj(a));(Q||T)&&L++}H=L}else{M=V(a);L=V(a);H=M+L;for(Q=0;Q<M;Q++)V(a),rj(a);for(M=0;M<L;M++)V(a),rj(a)}if(rj(a))for(I=V(a),H=0;H<I;H++){for(N=0;N<
|
|
1335
1336
|
J+4;N++)kj(a,1);kj(a,1)}I=J=1;H=0;rj(a);rj(a);if(rj(a)){rj(a)&&(N=sj(a),L=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],M=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1],0<N&&16>=N?(J=L[N-1],I=M[N-1]):255===N&&(J=kj(a,16),I=kj(a,16)));rj(a)&&rj(a);rj(a)&&(kj(a,3),rj(a),rj(a)&&(sj(a),sj(a),sj(a)));rj(a)&&(V(a),V(a));rj(a);rj(a);rj(a);if(N=rj(a))V(a),V(a),V(a),V(a);if(rj(a)&&(kj(a,32),kj(a,32),rj(a)&&V(a),rj(a))){M=!1;N=rj(a);L=rj(a);if(N||L){if(M=rj(a))sj(a),kj(a,5),rj(a),kj(a,5);kj(a,4);kj(a,4);M&&
|
|
@@ -1340,7 +1341,7 @@ function dD(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(
|
|
|
1340
1341
|
function jD(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}function kD(a,b){if(b+1<a.length&&jD(a,b)){var c=eD(a,b),d=4;c&&c.ia&&(d=c.ia);b+=d;return b===a.length||b+1<a.length&&jD(a,b)}return!1}
|
|
1341
1342
|
var fD=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],gD=[44100,48E3,32E3,22050,24E3,16E3,11025,12E3,8E3],hD=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],iD=[0,1,1,4];function lD(a){this.i=a;this.h=0;this.g=new Map}q=lD.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/mpeg"==a.toLowerCase().split(";")[0]?td(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/mpeg"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp3"':b};q.getOriginalMimeType=function(){return this.i};
|
|
1342
1343
|
q.transmux=function(a,b,c,d){for(var e=Gb(a),f=Yi(e).length;f<e.length&&!kD(e,f);f++);var g;for(a=[];f<e.length;){var h=eD(e,f);if(!h)return Promise.reject(new U(2,3,3018,c?c.P()[0]:null));g||(g=h);f+h.ia<=e.length&&a.push({data:e.subarray(f,f+h.ia),size:h.ia,duration:1152,wb:0,flags:{xb:0,mb:0,kb:0,hb:0,ib:2,yb:0}});f+=h.ia}if(!g)return Promise.reject(new U(2,3,3018,c?c.P()[0]:null));c=9E4*g.kk/g.sampleRate*this.h;d={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:g.sampleRate,
|
|
1343
|
-
duration:d,ub:[],
|
|
1344
|
+
duration:d,ub:[],ya:new Uint8Array([]),Ma:new Uint8Array([]),Sa:0,Ua:0,data:{Ib:this.h,baseMediaDecodeTime:c,rb:a},stream:b};g=new Rw([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=ix(g),this.g.set(b.id,d));b=zx(g);this.h++;b=Kc(d,b);return Promise.resolve(b)};P("shaka.transmuxer.Mp3Transmuxer",lD);lD.prototype.transmux=lD.prototype.transmux;lD.prototype.getOriginalMimeType=lD.prototype.getOriginalMimeType;lD.prototype.convertCodecs=lD.prototype.convertCodecs;lD.prototype.isSupported=lD.prototype.isSupported;
|
|
1344
1345
|
lD.prototype.destroy=lD.prototype.destroy;le("audio/mpeg",function(){return new lD("audio/mpeg")},re);function mD(a){this.h=a;this.g=null}q=mD.prototype;q.destroy=function(){};q.isSupported=function(a){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var b=Ke(a).split(","),c=Pc("audio",b);b=Pc("video",b);return!c||b||"mp3"!=Ge(c)?!1:td(this.convertCodecs("audio",a))};q.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?"audio/mpeg":b};q.getOriginalMimeType=function(){return this.h};
|
|
1345
1346
|
q.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new vj;a=Gb(a);a=this.g.parse(a);if("mp3"!=a.Od().audio||"audio"!=e)return Promise.reject(new U(2,3,3018,c?c.P()[0]:null));c=new Uint8Array([]);e=t(a.fc());for(a=e.next();!a.done;a=e.next())if(a=a.value.data)for(b=0;b<a.length;)(d=eD(a,b))?(b+d.ia<=a.length&&(c=Kc(c,a.subarray(b,b+d.ia))),b+=d.ia):b++;return Promise.resolve(c)};P("shaka.transmuxer.MpegTsTransmuxer",mD);mD.prototype.transmux=mD.prototype.transmux;
|
|
1346
1347
|
mD.prototype.getOriginalMimeType=mD.prototype.getOriginalMimeType;mD.prototype.convertCodecs=mD.prototype.convertCodecs;mD.prototype.isSupported=mD.prototype.isSupported;mD.prototype.destroy=mD.prototype.destroy;le("video/mp2t",function(){return new mD("video/mp2t")},qe);/*
|
|
@@ -1362,20 +1363,20 @@ q.isSupported=function(a,b){if("video/mp2t"!=a.toLowerCase().split(";")[0])retur
|
|
|
1362
1363
|
q.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?(b=Ke(b).replace("mp4a.40.34","mp3").split(",").map(function(c){return nf(c,"audio/mp4")}).map(mf).join(","),"audio"==a?'audio/mp4; codecs="'+b+'"':'video/mp4; codecs="'+b+'"'):b};q.getOriginalMimeType=function(){return this.l};
|
|
1363
1364
|
q.transmux=function(a,b,c,d,e){var f=Gb(a);if("audio"==e&&!Cj(f)){for(var g=Yi(f),h=g.length;h<f.length;h++)if(kD(f,h))return Promise.reject(new U(2,3,3018,c?c.P()[0]:null));for(h=g.length;h<f.length;h++)if(PC(f,h))return this.h||(this.h=new RC("audio/aac")),this.h.transmux(a,b,c,d,e);return Promise.reject(new U(2,3,3018,c?c.P()[0]:null))}this.j?this.j.clearData():this.j=new vj;var k=this.j.parse(f),l=[],m=k.Od();try{var n=null;if("video"==e){switch(m.video){case "avc":var p=[],r=null,u=[],v=k.bd();
|
|
1364
1365
|
if(!v.length)throw new U(2,3,3023,c?c.P()[0]:null);for(var w=0;w<v.length;w++){var A=v[w],z=A.nalus;u.push.apply(u,x(z));var C=ZC(z);if(C){null==r&&(r=A.dts);var y=void 0;y=w+1<v.length?(v[w+1].dts||0)-(A.dts||0):1<v.length?(A.dts||0)-(v[w-1].dts||0):9E4*(c.endTime-c.startTime);p.push({data:C.data,size:C.data.byteLength,duration:y,wb:Math.round((A.pts||0)-(A.dts||0)),flags:{xb:0,mb:0,kb:0,hb:0,ib:C.Yd?2:1,yb:C.Yd?0:1}})}}var B=XC(u);if(!B||null==r)throw new U(2,3,3018,c?c.P()[0]:null);b.height=B.height;
|
|
1365
|
-
b.width=B.width;n={id:b.id,type:"video",codecs:"avc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,ub:[],
|
|
1366
|
+
b.width=B.width;n={id:b.id,type:"video",codecs:"avc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,ub:[],ya:new Uint8Array([]),Ma:B.Ma,Sa:B.Sa,Ua:B.Ua,data:{Ib:this.g,baseMediaDecodeTime:r,rb:p},stream:b};break;case "hvc":var D=[],K=null,G=[],J=k.bd();if(!J.length)throw new U(2,3,3023,c?c.P()[0]:null);for(var I=0;I<J.length;I++){var H=J[I],N=H.nalus;G.push.apply(G,x(N));for(var L=!1,M=[],Q=!1,T=t(N),R=T.next();!R.done;R=T.next()){var ra=R.value;switch(ra.type){case 1:case 0:var sa=
|
|
1366
1367
|
Q=!0;break;case 19:case 20:case 21:L=sa=Q=!0;break;case 32:sa=!0;break;case 33:sa=!0;break;case 34:sa=!0;break;case 35:Q=sa=!0;break;case 39:case 40:sa=!0;break;default:sa=!1}if(Q&&sa){var Ca=ra.fullData.byteLength,Ea=new Uint8Array(4);Ea[0]=Ca>>24&255;Ea[1]=Ca>>16&255;Ea[2]=Ca>>8&255;Ea[3]=Ca&255;M.push(Ea);M.push(ra.fullData)}}var Ia=M.length?{data:Kc.apply(Ec,x(M)),Yd:L}:null;if(Ia){null==K&&null!=H.dts&&(K=H.dts);var Pa=void 0;Pa=I+1<J.length?(J[I+1].dts||0)-(H.dts||0):1<J.length?(H.dts||0)-(J[I-
|
|
1367
|
-
1].dts||0):9E4*(c.endTime-c.startTime);D.push({data:Ia.data,size:Ia.data.byteLength,duration:Pa,wb:Math.round((H.pts||0)-(H.dts||0)),flags:{xb:0,mb:0,kb:0,hb:0,ib:Ia.Yd?2:1,yb:Ia.Yd?0:1}})}}var Ja=$C(G);if(!Ja||null==K)throw new U(2,3,3018,c?c.P()[0]:null);b.height=Ja.height;b.width=Ja.width;n={id:b.id,type:"video",codecs:"hvc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,ub:[],
|
|
1368
|
+
1].dts||0):9E4*(c.endTime-c.startTime);D.push({data:Ia.data,size:Ia.data.byteLength,duration:Pa,wb:Math.round((H.pts||0)-(H.dts||0)),flags:{xb:0,mb:0,kb:0,hb:0,ib:Ia.Yd?2:1,yb:Ia.Yd?0:1}})}}var Ja=$C(G);if(!Ja||null==K)throw new U(2,3,3018,c?c.P()[0]:null);b.height=Ja.height;b.width=Ja.width;n={id:b.id,type:"video",codecs:"hvc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,ub:[],ya:new Uint8Array([]),Ma:Ja.Ma,Sa:Ja.Sa,Ua:Ja.Ua,data:{Ib:this.g,baseMediaDecodeTime:K,rb:D},stream:b}}n&&
|
|
1368
1369
|
(l.push(n),n=null)}if("audio"==e){switch(m.audio){case "aac":for(var db=[],Fa,$a=null,xb=t(k.fc()),ad=xb.next();!ad.done;ad=xb.next()){var ye=ad.value,Fd=ye.data;if(Fd){var Rc=0;Fa=OC(Fd,Rc);if(!Fa)throw new U(2,3,3018,c?c.P()[0]:null);b.audioSamplingRate=Fa.sampleRate;b.channelsCount=Fa.channelCount;null==$a&&null!==ye.pts&&($a=ye.pts);for(;Rc<Fd.length;){var ze=NC(Fd,Rc);if(ze){var Ae=ze.Pe+ze.ia;Rc+Ae<=Fd.length&&db.push({data:Fd.subarray(Rc+ze.Pe,Rc+Ae),size:ze.ia,duration:1024,wb:0,flags:{xb:0,
|
|
1369
1370
|
mb:0,kb:0,hb:0,ib:2,yb:0}});Rc+=Ae}else Rc++}}}if(!Fa||null==$a){if(!k.bd().length)throw new U(2,3,3018,c?c.P()[0]:null);$a=9E4*c.startTime;var Be=Pc("audio",b.codecs.split(","));if(!Be||!b.channelsCount||!b.audioSamplingRate)throw new U(2,3,3018,c?c.P()[0]:null);Fa={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,cb:Be};var Gd=QC(Be,b.channelsCount);if(!Gd)throw new U(2,3,3018,c?c.P()[0]:null);for(var oj=$a+9E4*(c.endTime-c.startTime),dh=$a;dh<oj;)db.push({data:Gd,size:Gd.byteLength,
|
|
1370
|
-
duration:1024,wb:0,flags:{xb:0,mb:0,kb:0,hb:0,ib:2,yb:0}}),dh+=1024/Fa.sampleRate*9E4}var pj=Fa.sampleRate,qj=$a/9E4*pj;n={id:b.id,type:"audio",codecs:Fa.cb,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:pj,duration:d,ub:[],
|
|
1371
|
-
(ak=Pn.pts);for(var Mf=0;Mf<Qn.length;){var Zd=SC(Qn,Mf);Zd?(b.audioSamplingRate=Zd.sampleRate,b.channelsCount=Zd.channelCount,Ce=Zd.sampleRate,rc=Zd.
|
|
1372
|
-
|
|
1373
|
-
Nf++}}if(0==bk||0==Rn.byteLength||null==ck)throw new U(2,3,3018,c?c.P()[0]:null);var NG=ck/9E4*bk;n={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:bk,duration:d,ub:[],
|
|
1374
|
-
Fe);Of?(dk||(dk=Of),Fe+Of.ia<=rh.length&&
|
|
1371
|
+
duration:1024,wb:0,flags:{xb:0,mb:0,kb:0,hb:0,ib:2,yb:0}}),dh+=1024/Fa.sampleRate*9E4}var pj=Fa.sampleRate,qj=$a/9E4*pj;n={id:b.id,type:"audio",codecs:Fa.cb,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:pj,duration:d,ub:[],ya:new Uint8Array([]),Ma:new Uint8Array([]),Sa:0,Ua:0,data:{Ib:this.g,baseMediaDecodeTime:qj,rb:db},stream:b};break;case "ac3":for(var eh=[],Ce=0,rc=new Uint8Array([]),ak=null,Sw=t(k.fc()),On=Sw.next();!On.done;On=Sw.next()){var Pn=On.value,Qn=Pn.data;null==ak&&null!==Pn.pts&&
|
|
1372
|
+
(ak=Pn.pts);for(var Mf=0;Mf<Qn.length;){var Zd=SC(Qn,Mf);Zd?(b.audioSamplingRate=Zd.sampleRate,b.channelsCount=Zd.channelCount,Ce=Zd.sampleRate,rc=Zd.ya,eh.push({data:Qn.subarray(Mf,Mf+Zd.ia),size:Zd.ia,duration:1536,wb:0,flags:{xb:0,mb:0,kb:0,hb:0,ib:2,yb:0}}),Mf+=Zd.ia):Mf++}}if(0==Ce||0==rc.byteLength||null==ak)throw new U(2,3,3018,c?c.P()[0]:null);var MG=ak/9E4*Ce;n={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Ce,duration:d,ub:[],ya:rc,Ma:new Uint8Array([]),
|
|
1373
|
+
Sa:0,Ua:0,data:{Ib:this.g,baseMediaDecodeTime:MG,rb:eh},stream:b};break;case "ec3":for(var Tw=[],bk=0,Rn=new Uint8Array([]),ck=null,Uw=t(k.fc()),Sn=Uw.next();!Sn.done;Sn=Uw.next()){var Tn=Sn.value,Un=Tn.data;null==ck&&null!==Tn.pts&&(ck=Tn.pts);for(var Nf=0;Nf<Un.length;){var $d=VC(Un,Nf);$d?(b.audioSamplingRate=$d.sampleRate,b.channelsCount=$d.channelCount,bk=$d.sampleRate,Rn=$d.ya,Tw.push({data:Un.subarray(Nf,Nf+$d.ia),size:$d.ia,duration:1536,wb:0,flags:{xb:0,mb:0,kb:0,hb:0,ib:2,yb:0}}),Nf+=$d.ia):
|
|
1374
|
+
Nf++}}if(0==bk||0==Rn.byteLength||null==ck)throw new U(2,3,3018,c?c.P()[0]:null);var NG=ck/9E4*bk;n={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:bk,duration:d,ub:[],ya:Rn,Ma:new Uint8Array([]),Sa:0,Ua:0,data:{Ib:this.g,baseMediaDecodeTime:NG,rb:Tw},stream:b};break;case "mp3":for(var Vw=[],dk,ek=null,Ww=t(k.fc()),Vn=Ww.next();!Vn.done;Vn=Ww.next()){var Wn=Vn.value,rh=Wn.data;if(rh){null==ek&&null!==Wn.pts&&(ek=Wn.pts);for(var Fe=0;Fe<rh.length;){var Of=eD(rh,
|
|
1375
|
+
Fe);Of?(dk||(dk=Of),Fe+Of.ia<=rh.length&&Vw.push({data:rh.subarray(Fe,Fe+Of.ia),size:Of.ia,duration:1152,wb:0,flags:{xb:0,mb:0,kb:0,hb:0,ib:2,yb:0}}),Fe+=Of.ia):Fe++}}}if(!dk||null==ek)throw new U(2,3,3018,c?c.P()[0]:null);var Xw=dk.sampleRate,OG=ek/9E4*Xw;n={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Xw,duration:d,ub:[],ya:new Uint8Array([]),Ma:new Uint8Array([]),Sa:0,Ua:0,data:{Ib:this.g,baseMediaDecodeTime:OG,rb:Vw},stream:b};break;case "opus":var Yw=
|
|
1375
1376
|
[],fk=null,cd=k.H;if(!cd)throw new U(2,3,3018,c?c.P()[0]:null);var Hb=[];switch(cd.Ki){case 1:case 2:Hb=[0];break;case 0:Hb=[255,1,1,0,1];break;case 128:Hb=[255,2,0,0,1];break;case 3:Hb=[1,2,1,0,2,1];break;case 4:Hb=[1,2,2,0,1,2,3];break;case 5:Hb=[1,3,2,0,4,1,2,3];break;case 6:Hb=[1,4,2,0,4,1,2,3,5];break;case 7:Hb=[1,4,2,0,4,1,2,3,5,6];break;case 8:Hb=[1,5,3,0,6,1,2,3,4,5,7];break;case 130:Hb=[1,1,2,0,1];break;case 131:Hb=[1,1,3,0,1,2];break;case 132:Hb=[1,1,4,0,1,2,3];break;case 133:Hb=[1,1,5,
|
|
1376
|
-
0,1,2,3,4];break;case 134:Hb=[1,1,6,0,1,2,3,4,5];break;case 135:Hb=[1,1,7,0,1,2,3,4,5,6];break;case 136:Hb=[1,1,8,0,1,2,3,4,5,6,7]}var
|
|
1377
|
-
Id=sh+2,gk=0;255===Pf[Id];)gk+=255,Id+=1;gk+=Pf[Id];Id+=1;Id+=PG?2:0;Id+=QG?2:0;var
|
|
1378
|
-
|
|
1377
|
+
0,1,2,3,4];break;case 134:Hb=[1,1,6,0,1,2,3,4,5];break;case 135:Hb=[1,1,7,0,1,2,3,4,5,6];break;case 136:Hb=[1,1,8,0,1,2,3,4,5,6,7]}var Zw=new Uint8Array([0,cd.channelCount,0,0,cd.sampleRate>>>24&255,cd.sampleRate>>>17&255,cd.sampleRate>>>8&255,cd.sampleRate>>>0&255,0,0].concat(x(Hb)));for(var $w=cd.sampleRate,ax=t(k.fc()),Xn=ax.next();!Xn.done;Xn=ax.next()){var Yn=Xn.value,Pf=Yn.data;null==fk&&null!==Yn.pts&&(fk=Yn.pts);for(var sh=0;sh<Pf.length;){for(var PG=0!==(Pf[sh+1]&16),QG=0!==(Pf[sh+1]&8),
|
|
1378
|
+
Id=sh+2,gk=0;255===Pf[Id];)gk+=255,Id+=1;gk+=Pf[Id];Id+=1;Id+=PG?2:0;Id+=QG?2:0;var bx=Pf.slice(Id,Id+gk);Yw.push({data:bx,size:bx.byteLength,duration:960,wb:0,flags:{xb:0,mb:0,kb:0,hb:0,ib:2,yb:0}});sh=Id+gk}}if(0==Zw.byteLength||null==fk)throw new U(2,3,3018,c?c.P()[0]:null);b.audioSamplingRate=cd.sampleRate;b.channelsCount=cd.channelCount;var RG=fk/9E4*$w;n={id:b.id,type:"audio",codecs:"opus",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:$w,duration:d,ub:[],ya:Zw,Ma:new Uint8Array([]),Sa:0,
|
|
1379
|
+
Ua:0,data:{Ib:this.g,baseMediaDecodeTime:RG,rb:Yw},stream:b}}n&&(l.push(n),n=null)}}catch(Zn){return Zn&&3023==Zn.code?Promise.resolve(new Uint8Array([])):Promise.reject(Zn)}if(!l.length)return Promise.reject(new U(2,3,3018,c?c.P()[0]:null));var cx=new Rw(l);if(this.i.has(b.id))var $n=this.i.get(b.id);else $n=ix(cx),this.i.set(b.id,$n);var SG=zx(cx);this.g++;var TG=Kc($n,SG);return Promise.resolve(TG)};P("shaka.transmuxer.TsTransmuxer",rD);rD.prototype.transmux=rD.prototype.transmux;
|
|
1379
1380
|
rD.prototype.getOriginalMimeType=rD.prototype.getOriginalMimeType;rD.prototype.convertCodecs=rD.prototype.convertCodecs;rD.prototype.isSupported=rD.prototype.isSupported;rD.prototype.destroy=rD.prototype.destroy;var sD=["aac","ac-3","ec-3","mp3","opus"],tD=["avc","hevc"];le("video/mp2t",function(){return new rD("video/mp2t")},pe);/*
|
|
1380
1381
|
@license
|
|
1381
1382
|
EME Encryption Scheme Polyfill
|
|
@@ -1446,7 +1447,7 @@ D:"Chinese Simplified"},"zh-HANT":{C:"\u4e2d\u6587\u7e41\u9ad4",D:"Chinese Tradi
|
|
|
1446
1447
|
OD.next()){var QD=PD.value;ND[QD.toLowerCase()]=ND[QD]};function RD(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new od;this.localization=this.controls.qa;this.player=this.controls.$c();this.video=this.controls.kc();this.adManager=this.player.Ie();this.ad=b.getAd();this.eventManager.s(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.s(this.adManager,"ad-stopped",function(){c.ad=null})}
|
|
1447
1448
|
RD.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};P("shaka.ui.Element",RD);RD.prototype.release=RD.prototype.release;function SD(a){return TD(a,"shaka-back-to-overflow-button")}function TD(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function UD(a){a&&(a=TD(a,"shaka-chosen-item"))&&a.parentElement.focus()}function VD(){var a=W("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function WD(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
|
|
1448
1449
|
function XD(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 YD(a,b){RD.call(this,a,b);var c=this;this.i=W("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=W("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new Ub(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=XD(e-d,!1)+" / "+XD(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=
|
|
1449
|
-
""))});this.eventManager.s(this.localization,"locale-updated",function(){});this.eventManager.s(this.localization,"locale-changed",function(){});this.eventManager.s(this.adManager,"ad-started",function(){c.g.
|
|
1450
|
+
""))});this.eventManager.s(this.localization,"locale-updated",function(){});this.eventManager.s(this.localization,"locale-changed",function(){});this.eventManager.s(this.adManager,"ad-started",function(){c.g.Pa();c.g.za(.5)});this.eventManager.s(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.Pa(),this.g.za(.5))}na(YD,RD);YD.prototype.release=function(){this.g.stop();this.g=null;RD.prototype.release.call(this)};P("shaka.ui.AdCounter",YD);function ZD(a,b){RD.call(this,a,b);var c=this;this.g=W("div");this.g.classList.add("shaka-ad-position");WD(this.g,!1);this.parent.appendChild(this.g);this.h=W("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.s(this.localization,"locale-updated",function(){c.ad&&$D(c)});this.eventManager.s(this.localization,"locale-changed",function(){c.ad&&$D(c)});this.eventManager.s(this.adManager,"ad-started",function(){$D(c)});this.eventManager.s(this.adManager,
|
|
1450
1451
|
"ad-stopped",function(){c.h.textContent="";WD(c.g,!1)});this.ad&&$D(this)}na(ZD,RD);function $D(a){var b=a.ad.getSequenceLength();if(1<b){var c=a.ad.getPositionInSequence();a.h.textContent=a.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(c)).replace("[NUM_ADS]",String(b));WD(a.g,!0)}}P("shaka.ui.AdPosition",ZD);function aE(a,b){RD.call(this,a,b);var c=this;this.button=en();this.parent.appendChild(this.button);this.eventManager.s(this.localization,"locale-updated",function(){c.g()});this.eventManager.s(this.localization,"locale-changed",function(){c.g()});this.eventManager.s(this.video,"play",function(){c.g();c.h()});this.eventManager.s(this.video,"pause",function(){c.g();c.h()});this.eventManager.s(this.video,"seeking",function(){c.g();c.h()});this.eventManager.s(this.adManager,"ad-paused",function(){c.g();
|
|
1451
1452
|
c.h()});this.eventManager.s(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.s(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.s(this.adManager,"ad-stopped",function(){c.g();c.h()});this.eventManager.s(this.button,"click",function(){c.ad&&c.ad.isLinear()?bE(c.controls):cE(c.controls)});this.ad&&(this.g(),this.h())}na(aE,RD);aE.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.A.paused&&!a.$;return a};
|
|
1452
1453
|
aE.prototype.isEnded=function(){return this.ad&&this.ad.isLinear()?!1:this.video.ended};aE.prototype.g=function(){};aE.prototype.h=function(){};P("shaka.ui.PlayButton",aE);function dE(a,b){aE.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}na(dE,aE);dE.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};dE.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};P("shaka.ui.BigPlayButton",dE);function eE(a,b){RD.call(this,a,b);var c=this;this.j=this.controls.g;this.h=this.controls.h;this.i=[];this.g=W("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-context-menu");this.g.classList.add("shaka-hidden");this.h.appendChild(this.g);this.eventManager.s(this.h,"contextmenu",function(d){if(c.g.classList.contains("shaka-hidden")){d.preventDefault();var e=c.h.getBoundingClientRect();c.g.style.left=d.clientX-e.left+"px";c.g.style.top=d.clientY-e.top+"px";WD(c.g,!0)}else WD(c.g,
|
|
@@ -1461,12 +1462,12 @@ lE.prototype.onChange=lE.prototype.onChange;lE.prototype.onChangeStart=lE.protot
|
|
|
1461
1462
|
this.g=W("img");this.g.id="shaka-player-ui-thumbnail-image";this.g.draggable=!1;this.u=W("div");this.u.id="shaka-player-ui-thumbnail-time";this.i.appendChild(this.g);this.i.appendChild(this.u);this.container.appendChild(this.i);this.j=this.l=null;this.J=!1;this.m=new Ub(function(){pE(c)});this.A=[];this.eventManager.s(this.localization,"locale-updated",function(){return qE(c)});this.eventManager.s(this.localization,"locale-changed",function(){return qE(c)});this.eventManager.s(this.adManager,"ad-started",
|
|
1462
1463
|
function(){rE(c)||WD(c.container,!1)});this.eventManager.s(this.adManager,"ad-stopped",function(){rE(c)&&WD(c.container,!0)});this.eventManager.s(this.adManager,"ad-cue-points-changed",function(d){c.A=d.cuepoints;sE(c)});this.eventManager.s(this.player,"unloading",function(){c.A=[];sE(c);c.j&&(c.j.abort(),c.j=null);c.l=null;pE(c)});this.eventManager.s(this.bar,"mousemove",function(d){if(c.player.Je().length){var e=c.bar.getBoundingClientRect(),f=parseFloat(c.bar.min);d=d.clientX-e.left;tE(c,d,Math.round(f+
|
|
1463
1464
|
(parseFloat(c.bar.max)-f)/e.width*d))}else pE(c)});this.eventManager.s(this.container,"mouseleave",function(){c.m.stop();c.m.V(.25)});this.setValue(this.video.currentTime);this.update();qE(this);this.ad&&WD(this.container,!1)}na(nE,lE);q=nE.prototype;q.release=function(){this.o&&(this.o.stop(),this.o=null,this.I.stop(),this.I=null);lE.prototype.release.call(this)};q.onChangeStart=function(){this.K=!this.video.paused;this.controls.bh(!0);this.video.pause();this.m.stop();this.J=!0};
|
|
1464
|
-
q.onChange=function(){if(this.video.duration)if(this.update(),this.o.V(.125),this.player.Je().length){var a=parseFloat(this.bar.min),b=parseFloat(this.bar.max),c=this.bar.getBoundingClientRect(),d=Math.round(this.getValue());tE(this,(d-a)/((b-a)/c.width),d)}else pE(this)};q.onChangeEnd=function(){this.o.
|
|
1465
|
-
q.update=function(){var a=this.H.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.
|
|
1465
|
+
q.onChange=function(){if(this.video.duration)if(this.update(),this.o.V(.125),this.player.Je().length){var a=parseFloat(this.bar.min),b=parseFloat(this.bar.max),c=this.bar.getBoundingClientRect(),d=Math.round(this.getValue());tE(this,(d-a)/((b-a)/c.width),d)}else pE(this)};q.onChangeEnd=function(){this.o.Pa();this.controls.bh(!1);this.K&&this.video.play();this.J&&(this.J=!1,this.m.stop(),this.m.V(.25))};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
|
|
1466
|
+
q.update=function(){var a=this.H.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.Ta(),g=f.end-f.start;this.setRange(f.start,f.end);rE(this)?(WD(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.H.showUnbufferedStart?
|
|
1466
1467
|
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()+")")):WD(this.container,!1)};
|
|
1467
|
-
function oE(a){if(a.A.length){for(var b=a.player.
|
|
1468
|
-
100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.F.style.background="linear-gradient("+d.join(",")+")"}else a.F.style.background="transparent"}function sE(a){oE(a);var b=a.player.
|
|
1469
|
-
function tE(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,A,z,C,y;O(function(B){switch(B.g){case 1:d=uE(a);if(!d)return pE(a),B.return();0>c&&(c=0);e=a.player.
|
|
1468
|
+
function oE(a){if(a.A.length){for(var b=a.player.Ta(),c=b.end-b.start,d=["to right"],e=[],f=a.H.seekBarColors.adBreaks,g=!1,h=t(a.A),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=t(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 "+
|
|
1469
|
+
100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.F.style.background="linear-gradient("+d.join(",")+")"}else a.F.style.background="transparent"}function sE(a){oE(a);var b=a.player.Ta();b=b.end-b.start;a.player.U()&&5<b&&a.I.za(1)}function rE(a){var b=a.player.Ta();b=b.end-b.start;return a.player.U()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function qE(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}
|
|
1470
|
+
function tE(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,A,z,C,y;O(function(B){switch(B.g){case 1:d=uE(a);if(!d)return pE(a),B.return();0>c&&(c=0);e=a.player.Ta();f=Math.max(Math.ceil(e.start),Math.min(Math.floor(e.end),c));return E(B,a.player.vg(d.id,f),2);case 2:g=B.h;if(!g||!g.uris.length)return pE(a),B.return();a.player.U()?(h=e.end-c,a.u.textContent=1>h?a.localization.resolve("LIVE"):"-"+vE(h)):a.u.textContent=vE(c);k=-10;l=a.i.clientWidth;m=Math.floor(9*l/16);a.i.style.height=m+"px";a.i.style.top=
|
|
1470
1471
|
-(m-k)+"px";n=Math.min(a.bar.offsetWidth-l,Math.max(0,b-l/2));a.i.style.left=n+"px";a.i.style.visibility="visible";p=g.uris[0].split("#xywh=")[0];if(a.l&&p===a.l.uris[0].split("#xywh=")[0]&&g.segment.Pb()==a.l.segment.Pb()&&g.segment.Nb()==a.l.segment.Nb()){B.B(3);break}a.l=g;a.j&&(a.j.abort(),a.j=null);if("mjpg"!=d.codecs&&!p.startsWith("offline:")){B.B(4);break}a.g.src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>';ta(B,5);r=Gg;u=Bl(g.segment.P(),g.segment.Pb(),g.segment.Nb(),a.player.getConfiguration().streaming.retryParameters);
|
|
1471
1472
|
a.j=a.player.hc().request(r,u,{type:1});return E(B,a.j.promise,7);case 7:v=B.h;a.j=null;"mjpg"==d.codecs?(w=(new Pg).box("mdat",Zg(function(D){p=URL.createObjectURL(new Blob([D],{type:"image/jpeg"}))})),w.parse(v.data,!1)):(A=d.mimeType||"image/jpeg",z=new Blob([v.data],{type:A}),p=URL.createObjectURL(z));va(B,4);break;case 5:C=wa(B);if(7001==C.code)return B.return();throw C;case 4:try{a.i.removeChild(a.g)}catch(D){}a.g=W("img");a.g.id="shaka-player-ui-thumbnail-image";a.g.draggable=!1;a.g.src=p;
|
|
1472
1473
|
a.g.onload=function(){p.startsWith("blob:")&&URL.revokeObjectURL(p)};a.i.insertBefore(a.g,a.i.firstChild);case 3:y=l/g.width,g.imageHeight?a.g.height=g.imageHeight:g.sprite||(a.g.style.height="100%",a.g.style.objectFit="contain"),g.imageWidth?a.g.width=g.imageWidth:g.sprite||(a.g.style.width="100%",a.g.style.objectFit="contain"),a.g.style.left="-"+y*g.positionX+"px",a.g.style.top="-"+y*g.positionY+"px",a.g.style.transform="scale("+y+")",a.g.style.transformOrigin="left top",m=Math.floor(l*g.height/
|
|
@@ -1474,7 +1475,7 @@ g.width),a.i.style.height=m+"px",a.i.style.top=-(m-k)+"px",F(B)}})}
|
|
|
1474
1475
|
function uE(a){var b=a.player.Je();if(!b.length)return null;for(var c={},d=t(["image/avif","image/webp","image/jpeg","image/png","image/svg+xml"]),e=d.next();!e.done;c={Cf:c.Cf,Af:c.Af},e=d.next())if(c.Cf=e.value,c.Af=a.player.getStats().estimatedBandwidth,(e=b.filter(function(f){return function(g){return g.mimeType.toLowerCase()===f.Cf&&g.bandwidth<.01*f.Af}}(c)).sort(function(f,g){return g.bandwidth-f.bandwidth}))&&e.length)return e[0];return b.find(function(f){return"application/mp4"==f.mimeType&&
|
|
1475
1476
|
"mjpg"==f.codecs})||b[0]}function pE(a){a.i.style.visibility="hidden";a.u.textContent=""}function vE(a){var b=Math.round(a);a=Math.floor(b/3600);var c=Math.floor((b-3600*a)/60);b=b-3600*a-60*c;10>b&&(b="0"+b);return 0<a?(10>c&&(c="0"+c),a+":"+c+":"+b):c+":"+b}P("shaka.ui.SeekBar",nE);function wE(){}wE.prototype.create=function(a,b){return new nE(a,b)};nE.Factory=wE;function xE(a,b){RD.call(this,a,b);var c=this;this.j=W("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=W("div");this.h.classList.add("shaka-skip-ad-counter");WD(this.h,!1);this.j.appendChild(this.h);this.g=en();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;WD(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);yE(this);this.i=new Ub(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
|
|
1476
1477
|
d:(c.i.stop(),WD(c.h,!1))});this.eventManager.s(this.localization,"locale-updated",function(){yE(c)});this.eventManager.s(this.localization,"locale-changed",function(){yE(c)});this.eventManager.s(this.adManager,"ad-started",function(){zE(c)});this.eventManager.s(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),WD(c.h,!1))});this.eventManager.s(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;WD(c.g,!1);WD(c.h,!1)});this.eventManager.s(this.g,
|
|
1477
|
-
"click",function(){c.ad.skip()});this.ad&&zE(this)}na(xE,RD);xE.prototype.release=function(){this.i.stop();this.i=null;RD.prototype.release.call(this)};function yE(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function zE(a){a.ad.isSkippable()&&(WD(a.g,!0),WD(a.h,!0),a.h.textContent="",a.i.
|
|
1478
|
+
"click",function(){c.ad.skip()});this.ad&&zE(this)}na(xE,RD);xE.prototype.release=function(){this.i.stop();this.i=null;RD.prototype.release.call(this)};function yE(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function zE(a){a.ad.isSkippable()&&(WD(a.g,!0),WD(a.h,!0),a.h.textContent="",a.i.Pa(),a.i.za(.5))}P("shaka.ui.SkipAdButton",xE);/*
|
|
1478
1479
|
@license
|
|
1479
1480
|
glMatrix: https://github.com/toji/gl-matrix/
|
|
1480
1481
|
Copyright 2015-2021, Brandon Jones, Colin MacKenzie IV
|
|
@@ -1484,9 +1485,9 @@ function AE(){var a=new Float32Array(16);a[0]=1;a[5]=1;a[10]=1;a[15]=1;return a}
|
|
|
1484
1485
|
function CE(a,b,c){var d=b[0],e=b[1],f=b[2],g=b[3],h=b[4],k=b[5],l=b[6],m=b[7],n=b[8],p=b[9],r=b[10],u=b[11],v=b[12],w=b[13],A=b[14];b=b[15];var z=c[0],C=c[1],y=c[2],B=c[3];a[0]=z*d+C*h+y*n+B*v;a[1]=z*e+C*k+y*p+B*w;a[2]=z*f+C*l+y*r+B*A;a[3]=z*g+C*m+y*u+B*b;z=c[4];C=c[5];y=c[6];B=c[7];a[4]=z*d+C*h+y*n+B*v;a[5]=z*e+C*k+y*p+B*w;a[6]=z*f+C*l+y*r+B*A;a[7]=z*g+C*m+y*u+B*b;z=c[8];C=c[9];y=c[10];B=c[11];a[8]=z*d+C*h+y*n+B*v;a[9]=z*e+C*k+y*p+B*w;a[10]=z*f+C*l+y*r+B*A;a[11]=z*g+C*m+y*u+B*b;z=c[12];C=c[13];
|
|
1485
1486
|
y=c[14];B=c[15];a[12]=z*d+C*h+y*n+B*v;a[13]=z*e+C*k+y*p+B*w;a[14]=z*f+C*l+y*r+B*A;a[15]=z*g+C*m+y*u+B*b}
|
|
1486
1487
|
function DE(a,b){var c=new Float32Array(3),d=b[0],e=b[1],f=b[2],g=b[4],h=b[5],k=b[6],l=b[8],m=b[9],n=b[10];c[0]=Math.sqrt(d*d+e*e+f*f);c[1]=Math.sqrt(g*g+h*h+k*k);c[2]=Math.sqrt(l*l+m*m+n*n);k=1/c[0];l=1/c[1];m=1/c[2];g=b[0]*k;c=b[1]*l;d=b[2]*m;e=b[4]*k;h=b[5]*l;f=b[6]*m;k*=b[8];l*=b[9];b=b[10]*m;m=g+h+b;0<m?(b=2*Math.sqrt(m+1),a[3]=.25*b,a[0]=(f-l)/b,a[1]=(k-d)/b,a[2]=(c-e)/b):g>h&&g>b?(b=2*Math.sqrt(1+g-h-b),a[3]=(f-l)/b,a[0]=.25*b,a[1]=(c+e)/b,a[2]=(k+d)/b):h>b?(b=2*Math.sqrt(1+h-g-b),a[3]=(k-
|
|
1487
|
-
d)/b,a[0]=(c+e)/b,a[1]=.25*b,a[2]=(f+l)/b):(b=2*Math.sqrt(1+b-g-h),a[3]=(c-e)/b,a[0]=(k+d)/b,a[1]=(f+l)/b,a[2]=.25*b)}function EE(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c+c,g=d+d,h=e+e;c*=f;var k=d*f;d*=g;var l=e*f,m=e*g;e*=h;f*=b;g*=b;b*=h;a[0]=1-d-e;a[1]=k+b;a[2]=l-g;a[3]=0;a[4]=k-b;a[5]=1-c-e;a[6]=m+f;a[7]=0;a[8]=l+g;a[9]=m-f;a[10]=1-c-d;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1};function FE(){var a=new Float32Array(4);a[3]=1;return a}function GE(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c*c+d*d+e*e+b*b;0<f&&(f=1/Math.sqrt(f));a[0]=c*f;a[1]=d*f;a[2]=e*f;a[3]=b*f};function HE(a,b,c,d,e){this.m=a;this.ma=b;this.l=c;this.g=d;this.o=new od;this.L=FE();this.h=FE();this.ha=this.
|
|
1488
|
+
d)/b,a[0]=(c+e)/b,a[1]=.25*b,a[2]=(f+l)/b):(b=2*Math.sqrt(1+b-g-h),a[3]=(c-e)/b,a[0]=(k+d)/b,a[1]=(f+l)/b,a[2]=.25*b)}function EE(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c+c,g=d+d,h=e+e;c*=f;var k=d*f;d*=g;var l=e*f,m=e*g;e*=h;f*=b;g*=b;b*=h;a[0]=1-d-e;a[1]=k+b;a[2]=l-g;a[3]=0;a[4]=k-b;a[5]=1-c-e;a[6]=m+f;a[7]=0;a[8]=l+g;a[9]=m-f;a[10]=1-c-d;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1};function FE(){var a=new Float32Array(4);a[3]=1;return a}function GE(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c*c+d*d+e*e+b*b;0<f&&(f=1/Math.sqrt(f));a[0]=c*f;a[1]=d*f;a[2]=e*f;a[3]=b*f};function HE(a,b,c,d,e){this.m=a;this.ma=b;this.l=c;this.g=d;this.o=new od;this.L=FE();this.h=FE();this.ha=this.Aa=this.ea=this.j=null;this.G=AE();this.I=AE();this.N=AE();this.$=AE();this.A=null;this.O=!1;this.J=this.u=null;this.na=this.qa=0;this.ba=this.R=this.S=this.K=null;this.H=0;this.i=75;this.Z=0;this.F=e;IE(this)}HE.prototype.release=function(){this.o&&(this.o.release(),this.o=null);this.u&&(this.u.stop(),this.u=null);this.J&&(this.J.stop(),this.J=null)};
|
|
1488
1489
|
HE.prototype.qd=function(){(this.O=!this.O)||this.g.viewport(0,0,this.l.width,this.l.height);JE(this,!1)};
|
|
1489
|
-
function IE(a){KE(a);LE(a);ME(a);NE(a);OE(a);a.o.oa(a.m,"loadeddata",function(){var b;a.o.s(a.m,"canplaythrough",function(){JE(a)});a.o.s(a.m,"playing",function(){a.u&&a.u.stop();if(!b){var c=a.ma.Db();c=t(c);for(var d=c.next();!d.done;d=c.next())(d=d.value.frameRate)&&(!b||b<d)&&(b=d)}b||(b=60);JE(a);a.u=(new Ub(function(){JE(a)})).
|
|
1490
|
+
function IE(a){KE(a);LE(a);ME(a);NE(a);OE(a);a.o.oa(a.m,"loadeddata",function(){var b;a.o.s(a.m,"canplaythrough",function(){JE(a)});a.o.s(a.m,"playing",function(){a.u&&a.u.stop();if(!b){var c=a.ma.Db();c=t(c);for(var d=c.next();!d.done;d=c.next())(d=d.value.frameRate)&&(!b||b<d)&&(b=d)}b||(b=60);JE(a);a.u=(new Ub(function(){JE(a)})).Pa().za(1/b)});a.o.s(a.m,"pause",function(){a.u&&a.u.stop();a.u=null;JE(a)});a.o.s(a.m,"seeked",function(){JE(a)});a.o.s(document,"visibilitychange",function(){JE(a)})})}
|
|
1490
1491
|
function KE(a){var b=a.G,c=[0,0,0],d=[1,0,0],e=[0,1,0],f=c[0],g=c[1];c=c[2];var h=e[0];var k=e[1];var l=e[2];var m=d[0];e=d[1];var n=d[2];if(1E-6>Math.abs(f-m)&&1E-6>Math.abs(g-e)&&1E-6>Math.abs(c-n))for(f=0;16>f;f++)b[f]=0==f%5?1:0;else{d=f-m;e=g-e;m=c-n;var p=1/Math.sqrt(d*d+e*e+m*m);d*=p;e*=p;m*=p;n=k*m-l*e;l=l*d-h*m;h=h*e-k*d;(p=Math.sqrt(n*n+l*l+h*h))?(p=1/p,n*=p,l*=p,h*=p):h=l=n=0;k=e*h-m*l;var r=m*n-d*h;var u=d*l-e*n;(p=Math.sqrt(k*k+r*r+u*u))?(p=1/p,k*=p,r*=p,u*=p):u=r=k=0;b[0]=n;b[1]=k;b[2]=
|
|
1491
1492
|
d;b[3]=0;b[4]=l;b[5]=r;b[6]=e;b[7]=0;b[8]=h;b[9]=u;b[10]=m;b[11]=0;b[12]=-(n*f+l*g+h*c);b[13]=-(k*f+r*g+u*c);b[14]=-(d*f+e*g+m*c);b[15]=1}DE(a.L,a.G);a=b=a.$;c=[4,4,4];f=c[0];g=c[1];c=c[2];b[0]=a[0]*f;b[1]=a[1]*f;b[2]=a[2]*f;b[3]=a[3]*f;b[4]=a[4]*g;b[5]=a[5]*g;b[6]=a[6]*g;b[7]=a[7]*g;b[8]=a[8]*c;b[9]=a[9]*c;b[10]=a[10]*c;b[11]=a[11]*c;b[12]=a[12];b[13]=a[13];b[14]=a[14];b[15]=a[15]}
|
|
1492
1493
|
function LE(a){PE(a);a.g.viewport(0,0,a.g.drawingBufferWidth,a.g.drawingBufferHeight);a.g.clearColor(0,0,0,1);a.g.enable(a.g.CULL_FACE);a.g.cullFace(a.g.FRONT);a.g.clear(a.g.COLOR_BUFFER_BIT)}
|
|
@@ -1495,11 +1496,11 @@ function QE(a,b){switch(b){case a.g.VERTEX_SHADER:var c="cubemap"==a.F?"attribut
|
|
|
1495
1496
|
break;case a.g.FRAGMENT_SHADER:c="cubemap"==a.F?"varying highp vec2 vTextureCoord;\nuniform sampler2D uSampler;\nvoid main(void) {\n highp vec4 texelColor = texture2D(uSampler, vTextureCoord);\n gl_FragColor = vec4(texelColor.rgb , texelColor.a);\n}":"precision highp float;\n#define PI 3.141592653589793238462643383279\nvarying vec2 v_TexCoordinate;\nvarying vec3 pass_position;\nuniform sampler2D uSampler;\nvoid main(void) {\nhighp float xValue =\n (PI + atan(pass_position.z, pass_position.x)) / (2.0 * PI);\n vec2 tc = vec2(xValue, v_TexCoordinate.t);\n tc = vec2(tc.x , tc.y);\nhighp vec4 texelColor =\n texture2D(uSampler, tc);\n gl_FragColor = vec4(texelColor.rgb, texelColor.a);\n}";
|
|
1496
1497
|
break;default:return null}b=a.g.createShader(b);a.g.shaderSource(b,c);a.g.compileShader(b);return b}
|
|
1497
1498
|
function NE(a){if("cubemap"==a.F)var b={ti:[-1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,-1,1,1,1,1,1,1,1,-1,-1,-1,1,1,-1,1,1,1,1,-1,1,1,1,-1,-1,1,1,-1,1,1,1,1,-1,1,-1,-1,-1,1,-1,-1,1,-1,1,-1,-1,1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1],pi:[2/3,.5,1/3,.5,1/3,0,2/3,0,2/3,.5,2/3,0,1,0,1,.5,1,1,2/3,1,2/3,.5,1,.5,0,.5,0,0,1/3,0,1/3,.5,0,.5,1/3,.5,1/3,1,0,1,1/3,1,1/3,.5,2/3,.5,2/3,1],indices:[0,1,2,0,2,3,4,5,6,4,6,7,8,9,10,8,10,11,12,13,14,12,14,15,16,17,18,16,18,19,20,21,22,20,22,23]};else{b=[];for(var c=[],d=[],
|
|
1498
|
-
e=0;100>=e;e++){var f=e/100,g=f*Math.PI,h=Math.sin(g);g=Math.cos(g);for(var k=0;100>=k;k++){var l=k/100,m=l*Math.PI*2;b.push(-1*Math.cos(m)*h,g,Math.sin(m)*h);c.push(l);c.push(f)}}for(e=0;100>e;e++)for(f=0;100>f;f++)h=101*e+f,g=h+1,k=101*(e+1)+f,l=k+1,d.push(h,k,g),d.push(g,k,l);b={ti:b,pi:c,indices:d}}a.K=b;a.ea=a.g.createBuffer();a.g.bindBuffer(a.g.ARRAY_BUFFER,a.ea);a.g.bufferData(a.g.ARRAY_BUFFER,new Float32Array(a.K.ti),a.g.STATIC_DRAW);a.
|
|
1499
|
-
a.
|
|
1499
|
+
e=0;100>=e;e++){var f=e/100,g=f*Math.PI,h=Math.sin(g);g=Math.cos(g);for(var k=0;100>=k;k++){var l=k/100,m=l*Math.PI*2;b.push(-1*Math.cos(m)*h,g,Math.sin(m)*h);c.push(l);c.push(f)}}for(e=0;100>e;e++)for(f=0;100>f;f++)h=101*e+f,g=h+1,k=101*(e+1)+f,l=k+1,d.push(h,k,g),d.push(g,k,l);b={ti:b,pi:c,indices:d}}a.K=b;a.ea=a.g.createBuffer();a.g.bindBuffer(a.g.ARRAY_BUFFER,a.ea);a.g.bufferData(a.g.ARRAY_BUFFER,new Float32Array(a.K.ti),a.g.STATIC_DRAW);a.Aa=a.g.createBuffer();a.g.bindBuffer(a.g.ARRAY_BUFFER,
|
|
1500
|
+
a.Aa);a.g.bufferData(a.g.ARRAY_BUFFER,new Float32Array(a.K.pi),a.g.STATIC_DRAW);a.ha=a.g.createBuffer();a.g.bindBuffer(a.g.ELEMENT_ARRAY_BUFFER,a.ha);a.g.bufferData(a.g.ELEMENT_ARRAY_BUFFER,new Uint16Array(a.K.indices),a.g.STATIC_DRAW)}
|
|
1500
1501
|
function OE(a){a.ba=a.g.createTexture();a.g.bindTexture(a.g.TEXTURE_2D,a.ba);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_WRAP_S,a.g.CLAMP_TO_EDGE);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_WRAP_T,a.g.CLAMP_TO_EDGE);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_MIN_FILTER,a.g.NEAREST);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_MAG_FILTER,a.g.NEAREST)}
|
|
1501
1502
|
function JE(a,b){b=void 0===b?!0:b;var c=a.ma.Qd()==To;!a.m||2>a.m.readyState||!c&&0==a.m.playbackRate||(BE(a.I,a.i*Math.PI/180,1.5625),"cubemap"==a.F?BE(a.I,a.i*Math.PI/180,2.5):BE(a.I,a.i*Math.PI/180,1.5625),a.g.useProgram(a.j),a.g.clear(a.g.COLOR_BUFFER_BIT),PE(a),b&&(a.g.activeTexture(a.g.TEXTURE0),a.g.bindTexture(a.g.TEXTURE_2D,a.ba),a.g.pixelStorei(a.g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,0),a.g.texImage2D(a.g.TEXTURE_2D,0,a.g.RGBA,a.g.RGBA,a.g.UNSIGNED_BYTE,a.m)),"equirectangular"==a.F&&(CE(a.N,
|
|
1502
|
-
a.G,a.$),CE(a.N,a.I,a.N)),a.g.bindBuffer(a.g.ARRAY_BUFFER,a.ea),a.g.vertexAttribPointer(a.S,3,a.g.FLOAT,!1,0,0),a.g.enableVertexAttribArray(a.S),a.g.bindBuffer(a.g.ARRAY_BUFFER,a.
|
|
1503
|
+
a.G,a.$),CE(a.N,a.I,a.N)),a.g.bindBuffer(a.g.ARRAY_BUFFER,a.ea),a.g.vertexAttribPointer(a.S,3,a.g.FLOAT,!1,0,0),a.g.enableVertexAttribArray(a.S),a.g.bindBuffer(a.g.ARRAY_BUFFER,a.Aa),a.g.vertexAttribPointer(a.R,2,a.g.FLOAT,!1,0,0),a.g.enableVertexAttribArray(a.R),a.g.bindBuffer(a.g.ELEMENT_ARRAY_BUFFER,a.ha),"cubemap"==a.F?(a.g.uniformMatrix4fv(a.g.getUniformLocation(a.j,"uProjectionMatrix"),!1,a.I),a.g.uniformMatrix4fv(a.g.getUniformLocation(a.j,"uModelViewMatrix"),!1,a.N)):a.g.uniformMatrix4fv(a.g.getUniformLocation(a.j,
|
|
1503
1504
|
"u_VPMatrix"),!1,a.N),a.g.uniform1i(a.g.getUniformLocation(a.j,"uSampler"),0),a.O&&a.g.viewport(0,0,a.l.width/2,a.l.height),a.g.drawElements(a.g.TRIANGLES,a.K.indices.length,a.g.UNSIGNED_SHORT,0),a.O&&(a.g.viewport(a.l.width/2,0,a.l.width/2,a.l.height),a.g.drawElements(a.g.TRIANGLES,a.K.indices.length,a.g.UNSIGNED_SHORT,0)))}
|
|
1504
1505
|
function PE(a){var b=a.m.videoWidth;b||(b=a.l.scrollWidth);var c=a.m.videoHeight;c||(c=a.l.scrollHeight);if(a.qa!==b||a.na!==c){a.l.width=b;a.l.height=c;a.qa=b;a.na=c;var d=b/c,e=a.I,f=-d,g=1/(d-f);e[0]=0*g;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=0;e[6]=0;e[7]=0;e[8]=(d+f)*g;e[9]=0;e[10]=-1;e[11]=-1;e[12]=0;e[13]=0;e[14]=-0;e[15]=0;a.I=e;a.g.viewport(0,0,b,c)}}
|
|
1505
1506
|
function RE(a,b,c,d){var e=90*Math.PI/180;var f="cubemap"==a.F?a.N:a.G;var g=Math.sin(b);b=Math.cos(b);var h=f[0],k=f[1],l=f[2],m=f[3],n=f[8],p=f[9],r=f[10],u=f[11];f!==f&&(f[4]=f[4],f[5]=f[5],f[6]=f[6],f[7]=f[7],f[12]=f[12],f[13]=f[13],f[14]=f[14],f[15]=f[15]);f[0]=h*b-n*g;f[1]=k*b-p*g;f[2]=l*b-r*g;f[3]=m*b-u*g;f[8]=h*g+n*b;f[9]=k*g+p*b;f[10]=l*g+r*b;f[11]=m*g+u*b;a.H+=c;a.H<e&&a.H>-e?(e=AE(),g=AE(),b=-1*c,c=Math.sin(b),b=Math.cos(b),h=g[4],k=g[5],l=g[6],m=g[7],n=g[8],p=g[9],r=g[10],u=g[11],g!==
|
|
@@ -1510,103 +1511,103 @@ q.xg=function(a){this.g?RE(this.g,0,a*WE,0):Ya("Not playing VR content")};q.yg=f
|
|
|
1510
1511
|
function VE(a){if(a.m)if(a.u.displayInVrMode||a.l){var b=a.l||a.u.defaultVrProjectionMode;a.g?a.g.F!=b&&(a.h.qb(),a.g.release(),XE(a,b)):(a.m.style.display="",XE(a,b),a.dispatchEvent(new S("vrstatuschanged",(new Map).set("newStatus",a.Qb()))))}else a.u.displayInVrMode||a.l||!a.g||(a.m.style.display="none",a.h.qb(),a.g.release(),a.g=null,a.dispatchEvent(new S("vrstatuschanged",(new Map).set("newStatus",a.Qb()))))}function XE(a,b){a.G&&a.m&&(a.g=new HE(a.L,a.K,a.m,a.G,b),YE(a))}
|
|
1511
1512
|
function UE(a){if(!a.m||pc())return null;for(var b=t(["webgl2","webgl"]),c=b.next();!c.done;c=b.next())if(c=a.m.getContext(c.value))return c;return null}
|
|
1512
1513
|
function YE(a){a.h.s(a.i,"mousedown",function(d){if(!a.j){var e=d.clientX;d=d.clientY;a.j=!0;a.A=e;a.F=d}});0<navigator.maxTouchPoints&&a.h.s(a.i,"touchstart",function(d){if(!a.j){var e=d.touches[0].clientX;d=d.touches[0].clientY;a.j=!0;a.A=e;a.F=d}});a.h.s(a.i,"wheel",function(d){if(!a.j){var e=a.g,f=d.deltaY;f/=50;20<=e.i&&100>=e.i&&(e.i+=f);20>e.i?e.i=20:100<e.i&&(e.i=100);JE(e,!1);d.preventDefault();d.stopPropagation()}});a.h.s(a.i,"mousemove",function(d){a.j&&ZE(a,d.clientX,d.clientY)});0<navigator.maxTouchPoints&&
|
|
1513
|
-
a.h.s(a.i,"touchmove",function(d){a.j&&ZE(a,d.touches[0].clientX,d.touches[0].clientY);d.preventDefault()});a.h.s(a.i,"mouseleave",function(){a.j=!1});a.h.s(a.i,"mouseup",function(){a.j=!1});0<navigator.maxTouchPoints&&a.h.s(a.i,"touchend",function(){a.j=!1});var b=!1;if(window.DeviceOrientationEvent)if("function"==typeof DeviceMotionEvent.requestPermission){var c=function(){DeviceMotionEvent.requestPermission().then(function(d){"granted"!==d||b||(b=!0,$E(a))})};DeviceMotionEvent.requestPermission().then(function(d){a.h.
|
|
1514
|
-
"click",c);a.h.
|
|
1515
|
-
function $E(a){a.h.s(window,"deviceorientation",function(b){var c=(b.alpha||0)-a.H,d=(b.beta||0)-a.I,e=(b.gamma||0)-a.J;if(10<Math.abs(c)||10<Math.abs(d)||5<Math.abs(e))d=e=c=0;a.H=b.alpha||0;a.I=b.beta||0;a.J=b.gamma||0;b=screen.orientation.angle;90==b||-90==b?RE(a.g,c*WE*-1,e*WE*-1,0):RE(a.g,c*WE*-1,d*WE,0)})}function ZE(a,b,c){var d=-.6*Math.PI/180;RE(a.g,(b-a.A)*d,-1*(c-a.F)*d,0);a.A=b;a.F=c}var WE=Math.PI/180;function Z(a,b,c,d,e){gb.call(this);var f=this;this.S=!0;this.g=e;this.F=new Hq(c,a,this.g.castReceiverAppId,this.g.castAndroidReceiverCompatible);this.na=!0;this.A=this.F.kc();this.o=c;this.H=this.F.$c();this.ma=a;this.j=b;this.Gc=d;this.
|
|
1516
|
-
g.next())WD(h.value,!1)});this.
|
|
1517
|
-
q.destroy=function(){var a=this;return O(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.o){b.B(2);break}return E(b,document.exitPictureInPicture(),2);case 2:a.i&&(a.i.release(),a.i=null);a.R&&(a.R.stop(),a.R=null);a.ea&&(a.ea.stop(),a.ea=null);a.L&&(a.L.stop(),a.L=null);a.
|
|
1514
|
+
a.h.s(a.i,"touchmove",function(d){a.j&&ZE(a,d.touches[0].clientX,d.touches[0].clientY);d.preventDefault()});a.h.s(a.i,"mouseleave",function(){a.j=!1});a.h.s(a.i,"mouseup",function(){a.j=!1});0<navigator.maxTouchPoints&&a.h.s(a.i,"touchend",function(){a.j=!1});var b=!1;if(window.DeviceOrientationEvent)if("function"==typeof DeviceMotionEvent.requestPermission){var c=function(){DeviceMotionEvent.requestPermission().then(function(d){"granted"!==d||b||(b=!0,$E(a))})};DeviceMotionEvent.requestPermission().then(function(d){a.h.Xa(a.i,
|
|
1515
|
+
"click",c);a.h.Xa(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.Xa(a.i,"touchend",c);"granted"!==d?(a.h.oa(a.i,"click",c),a.h.oa(a.i,"mouseup",c),0<navigator.maxTouchPoints&&a.h.oa(a.i,"touchend",c)):(b=!0,$E(a))}).catch(function(){a.h.Xa(a.i,"click",c);a.h.Xa(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.Xa(a.i,"touchend",c);a.h.oa(a.i,"click",c);a.h.oa(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.oa(a.i,"touchend",c)})}else b=!0,$E(a)}
|
|
1516
|
+
function $E(a){a.h.s(window,"deviceorientation",function(b){var c=(b.alpha||0)-a.H,d=(b.beta||0)-a.I,e=(b.gamma||0)-a.J;if(10<Math.abs(c)||10<Math.abs(d)||5<Math.abs(e))d=e=c=0;a.H=b.alpha||0;a.I=b.beta||0;a.J=b.gamma||0;b=screen.orientation.angle;90==b||-90==b?RE(a.g,c*WE*-1,e*WE*-1,0):RE(a.g,c*WE*-1,d*WE,0)})}function ZE(a,b,c){var d=-.6*Math.PI/180;RE(a.g,(b-a.A)*d,-1*(c-a.F)*d,0);a.A=b;a.F=c}var WE=Math.PI/180;function Z(a,b,c,d,e){gb.call(this);var f=this;this.S=!0;this.g=e;this.F=new Hq(c,a,this.g.castReceiverAppId,this.g.castAndroidReceiverCompatible);this.na=!0;this.A=this.F.kc();this.o=c;this.H=this.F.$c();this.ma=a;this.j=b;this.Gc=d;this.Ba=this.H.Ie();this.l=this.m=null;this.$=!1;this.J=[];this.jb=[];this.Za=!1;this.R=new Ub(function(){f.j.style.cursor="none";f.Za=!1;aF(f)});this.ea=new Ub(function(){f.h.removeAttribute("shown");f.L.V(2)});this.L=new Ub(function(){for(var g=t(f.J),h=g.next();!h.done;h=
|
|
1517
|
+
g.next())WD(h.value,!1)});this.xa=new Ub(function(){f.lc()&&bF(f)});this.I=null;this.G=[];this.qa=cF();this.i=new od;this.u=null;this.configure(this.g);dF(this);this.ha=new Set;eF(this);this.xa.za(this.g.refreshTickInSeconds);this.i.s(this.qa,"locale-changed",function(g){f.Ba.setLocale(g.locales[0])})}na(Z,gb);q=Z.prototype;
|
|
1518
|
+
q.destroy=function(){var a=this;return O(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.o){b.B(2);break}return E(b,document.exitPictureInPicture(),2);case 2:a.i&&(a.i.release(),a.i=null);a.R&&(a.R.stop(),a.R=null);a.ea&&(a.ea.stop(),a.ea=null);a.L&&(a.L.stop(),a.L=null);a.xa&&(a.xa.stop(),a.xa=null);a.u&&(a.u.release(),a.u=null);fF(a);a.h&&(a.j.removeChild(a.h),a.h=null);if(!a.F){b.B(4);break}return E(b,a.F.destroy(),5);case 5:a.F=null;case 4:if(!a.ma){b.B(6);break}return E(b,
|
|
1518
1519
|
a.ma.destroy(),7);case 7:a.ma=null;case 6:a.H=null,a.o=null,a.A=null,a.qa=null,a.ha.clear(),gb.prototype.release.call(a),F(b)}})};function fF(a){for(var b=t(a.G),c=b.next();!c.done;c=b.next())c.value.release();a.G=[]}function gF(a,b){hF.set(a,b)}q.Hi=function(a){this.na=a;eF(this)};q.Nj=function(){aF(this)};
|
|
1519
|
-
q.configure=function(a){this.g=a;this.F.wh(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.l&&(this.l=null);this.
|
|
1520
|
-
mF(this);this.g.seekOnTaps&&(nF(this),oF(this));this.
|
|
1520
|
+
q.configure=function(a){this.g=a;this.F.wh(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.l&&(this.l=null);this.Na&&(this.Na=null);this.Ha&&(this.Ha=null);this.u&&this.u.configure(a);this.h?(fn(this.h),fF(this)):(iF(this),jF(this),this.u=new TE(this.h,this.Gc,this.o,this.H,this.g));this.j.classList.add("shaka-video-container");this.o.classList.add("shaka-video");kF(this);this.g.addBigPlayButton&&lF(this);this.g.customContextMenu&&(this.Ha=new eE(this.Z,this),this.G.push(this.Ha));this.ba||
|
|
1521
|
+
mF(this);this.g.seekOnTaps&&(nF(this),oF(this));this.Ea=W("div");this.Ea.classList.add("shaka-server-side-ad-container");this.h.appendChild(this.Ea);pF(this);this.J=Array.from(this.j.getElementsByClassName("shaka-settings-menu"));this.J.push.apply(this.J,x(Array.from(this.j.getElementsByClassName("shaka-overflow-menu"))));qF(this);this.jb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));aF(this);a=t(this.j.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=
|
|
1521
1522
|
a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.i.s(b,"click",c);this.i.s(b,"dblclick",c)}};q.Yg=function(a){(this.S=a)?(this.j.setAttribute("shaka-controls","true"),this.o.tabIndex=-1,this.o.controls=!1):this.j.removeAttribute("shaka-controls");aF(this)};q.di=function(a){this.o.controls=a;this.o.tabIndex=a?0:-1;a&&this.Yg(!1)};q.getAd=function(){return this.m};q.Ti=function(){return this.F};q.gj=function(){return this.qa};q.yj=function(){return this.j};q.kc=function(){return this.A};
|
|
1522
|
-
q.fj=function(){return this.o};q.$c=function(){return this.H};q.ej=function(){return this.ma};q.Yi=function(){return this.h};q.pj=function(){return this.
|
|
1523
|
-
q.Bc=function(){this.L.
|
|
1523
|
+
q.fj=function(){return this.o};q.$c=function(){return this.H};q.ej=function(){return this.ma};q.Yi=function(){return this.h};q.pj=function(){return this.Ea};q.Vi=function(){return this.O};q.Wi=function(){return this.g};q.Kj=function(){return this.$};q.bh=function(a){this.$=a};q.Ej=function(){return this.na};q.qg=function(){return this.l?this.l.getValue():this.A.currentTime};q.gi=function(a){this.I=a};q.Jd=function(){return this.J.some(function(a){return!a.classList.contains("shaka-hidden")})};
|
|
1524
|
+
q.Bc=function(){this.L.Pa()};q.Xd=function(){return document.fullscreenEnabled||this.o.webkitSupportsFullscreen?!0:!1};q.ed=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.o;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
|
|
1524
1525
|
function rF(a){var b,c,d;return O(function(e){switch(e.g){case 1:ta(e,2);if(!document.fullscreenEnabled){b=a.o;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();e.B(4);break}if(!document.pictureInPictureElement){e.B(5);break}return E(e,document.exitPictureInPicture(),5);case 5:return c=a.g.fullScreenElement,E(e,c.requestFullscreen({navigationUI:"hide"}),7);case 7:if(!a.g.forceLandscapeOnFullscreen||!screen.orientation){e.B(4);break}ta(e,9);return E(e,screen.orientation.lock("landscape"),11);case 11:va(e,
|
|
1525
1526
|
4,2);break;case 9:wa(e,2);case 4:va(e,0);break;case 2:d=wa(e),a.dispatchEvent(new S("error",(new Map).set("detail",d))),F(e)}})}function sF(a){var b;return O(function(c){if(!document.fullscreenEnabled)return b=a.o,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.B(0);screen.orientation&&screen.orientation.unlock();return E(c,document.exitFullscreen(),0)})}q.qf=function(){var a=this;return O(function(b){return a.ed()?E(b,sF(a),0):E(b,rF(a),0)})};
|
|
1526
|
-
q.Re=function(){return this.F.
|
|
1527
|
+
q.Re=function(){return this.F.Oa()?!1:"documentPictureInPicture"in window&&this.g.preferDocumentPictureInPicture||document.pictureInPictureEnabled?!this.o.disablePictureInPicture:!1};q.Se=function(){return"documentPictureInPicture"in window&&this.g.preferDocumentPictureInPicture?!!window.documentPictureInPicture.window:!!document.pictureInPictureElement};
|
|
1527
1528
|
q.me=function(){var a=this,b,c;return O(function(d){if(1==d.g)return ta(d,2),"documentPictureInPicture"in window&&a.g.preferDocumentPictureInPicture?E(d,tF(a),5):document.pictureInPictureElement?E(d,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),b=a.o,E(d,b.requestPictureInPicture(),5));if(2!=d.g)return va(d,0);c=wa(d);a.dispatchEvent(new S("error",(new Map).set("detail",c)));F(d)})};
|
|
1528
1529
|
function tF(a){var b,c,d,e,f,g;return O(function(h){if(1==h.g){if(window.documentPictureInPicture.window)return window.documentPictureInPicture.window.close(),h.return();b=a.j;c=b.getBoundingClientRect();return E(h,window.documentPictureInPicture.requestWindow({width:c.width,height:c.height}),2)}d=h.h;uF(d);e=b.parentNode||document.body;f=a.j.cloneNode(!0);f.style.visibility="hidden";f.style.height=getComputedStyle(b).height;e.appendChild(f);g=document.createElement("style");g.append("[data-shaka-player-container] {\n width: 100% !important; max-height: 100%}");
|
|
1529
1530
|
d.document.head.append(g);d.document.body.append(b);a.i.oa(d,"pagehide",function(){f.replaceWith(b)});F(h)})}
|
|
1530
1531
|
function uF(a){var b=[].concat(x(document.styleSheets)).map(function(d){try{return[].concat(x(d.cssRules)).map(function(f){return f.cssText}).join("")}catch(f){var e=document.createElement("link");e.rel="stylesheet";e.type=d.type;e.media=d.media;e.href=d.href;a.document.head.appendChild(e)}return""}).filter(Boolean).join("\n"),c=document.createElement("style");c.textContent=b;a.document.head.appendChild(c)}q.mi=function(){WD(this.K,!0);WD(this.O,!0);this.h.setAttribute("ad-active","true")};
|
|
1531
1532
|
q.Kh=function(){WD(this.K,!1);WD(this.O,!1);this.h.removeAttribute("ad-active")};function cE(a){a.S&&a.A.duration&&(a.H.Uc(),a.A.paused&&!a.$?a.A.play():a.A.pause())}function bE(a){a.m&&a.m.isPaused()?a.m.play():a.m&&a.m.pause()}
|
|
1532
1533
|
function iF(a){a.h=W("div");a.h.classList.add("shaka-controls-container");a.j.appendChild(a.h);a.j.setAttribute("shaka-controls","true");a.i.s(a.h,"touchstart",function(b){a.A.duration&&(a.lc()?a.I=Date.now():(vF(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.i.s(a.h,"click",function(){wF(a)});a.i.s(a.h,"dblclick",function(){a.g.doubleClickForFullscreen&&a.Xd()&&a.qf()})}
|
|
1533
|
-
function lF(a){var b=W("div");b.classList.add("shaka-play-button-container");a.h.appendChild(b);a.
|
|
1534
|
+
function lF(a){var b=W("div");b.classList.add("shaka-play-button-container");a.h.appendChild(b);a.Na=new dE(b,a);a.G.push(a.Na)}function kF(a){var b=W("div");b.classList.add("shaka-scrim-container");a.h.appendChild(b)}function xF(a){a.K=W("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.m&&a.m.isLinear();WD(a.K,b);a.N.appendChild(a.K);b=new ZD(a.K,a);a.G.push(b);b=new YD(a.K,a);a.G.push(b);b=new xE(a.K,a);a.G.push(b)}
|
|
1534
1535
|
function mF(a){a.ba=W("div");a.ba.classList.add("shaka-spinner-container");a.j.appendChild(a.ba);var b=W("div");b.classList.add("shaka-spinner");a.ba.appendChild(b);a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.classList.add("shaka-spinner-svg");a.setAttribute("viewBox","0 0 30 30");b.appendChild(a);b=document.createElementNS("http://www.w3.org/2000/svg","circle");b.classList.add("shaka-spinner-path");b.setAttribute("cx","15");b.setAttribute("cy","15");b.setAttribute("r","14.5");
|
|
1535
1536
|
b.setAttribute("fill","none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)}function nF(a){var b=W("div");b.classList.add("shaka-hidden-fast-forward-container");a.h.appendChild(b);a.Ac=new jE(b,a);a.G.push(a.Ac)}function oF(a){var b=W("div");b.classList.add("shaka-hidden-rewind-container");a.h.appendChild(b);a.Cc=new kE(b,a);a.G.push(a.Cc)}
|
|
1536
1537
|
function pF(a){a.N=W("div");a.N.classList.add("shaka-bottom-controls");a.N.classList.add("shaka-no-propagation");a.h.appendChild(a.N);a.i.s(a.N,"click",function(d){d.target.closest(".shaka-overflow-button")||a.Bc()});xF(a);a.Z=W("div");a.Z.classList.add("shaka-controls-button-panel");a.Z.classList.add("shaka-show-controls-on-mouse-over");a.g.enableTooltips&&a.Z.classList.add("shaka-tooltips-on");a.N.appendChild(a.Z);for(var b=t(a.g.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,hF.get(c)?
|
|
1537
1538
|
(c=hF.get(c).create(a.Z,a),a.G.push(c)):Ya("Unrecognized control panel element requested:",c)}function qF(a){if(a.g.addSeekBar)a.l=yF.create(a.N,a),a.G.push(a.l);else{a=t(a.J);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function jF(a){a.O=W("div");a.O.classList.add("shaka-client-side-ad-container");WD(a.O,!1);a.i.s(a.O,"click",function(){wF(a)});a.j.appendChild(a.O)}
|
|
1538
|
-
function dF(a){a.i.s(a.H,"buffering",function(){a.S&&WD(a.ba,a.H.Wd())});a.S&&WD(a.ba,a.H.Wd());a.i.s(window,"keydown",function(b){zF(a,b)});a.i.s(window,"click",function(){return a.Bc()});a.i.s(a,"submenuopen",function(){a.Bc()});a.i.s(a.A,"play",function(){aF(a)});a.i.s(a.A,"pause",function(){aF(a)});a.i.s(a.j,"mousemove",function(b){vF(a,b)});a.i.s(a.j,"touchmove",function(b){vF(a,b)},{passive:!0});a.i.s(a.j,"touchend",function(b){vF(a,b)},{passive:!0});a.i.s(a.j,"mouseleave",function(){a.I||a.R.
|
|
1539
|
+
function dF(a){a.i.s(a.H,"buffering",function(){a.S&&WD(a.ba,a.H.Wd())});a.S&&WD(a.ba,a.H.Wd());a.i.s(window,"keydown",function(b){zF(a,b)});a.i.s(window,"click",function(){return a.Bc()});a.i.s(a,"submenuopen",function(){a.Bc()});a.i.s(a.A,"play",function(){aF(a)});a.i.s(a.A,"pause",function(){aF(a)});a.i.s(a.j,"mousemove",function(b){vF(a,b)});a.i.s(a.j,"touchmove",function(b){vF(a,b)},{passive:!0});a.i.s(a.j,"touchend",function(b){vF(a,b)},{passive:!0});a.i.s(a.j,"mouseleave",function(){a.I||a.R.Pa()});
|
|
1539
1540
|
a.i.s(a.F,"caststatuschanged",function(){eF(a)});a.i.s(a.u,"vrstatuschanged",function(){a.dispatchEvent(new S("vrstatuschanged"))});a.i.s(a.j,"keydown",function(b){var c=document.activeElement,d=c&&c.classList?c.classList.contains("shaka-volume-bar"):!1,e=c&&c.classList&&c.classList.contains("shaka-seek-bar");a.h.contains(c)&&vF(a,b);if(a.g.enableKeyboardPlaybackControls){c=a.g.keyboardSeekDistance;var f=a.g.keyboardLargeSeekDistance;switch(b.key){case "ArrowLeft":a.l&&e&&!d&&0<c&&(b.preventDefault(),
|
|
1540
|
-
AF(a,a.l.getValue()-c));break;case "ArrowRight":a.l&&e&&!d&&0<c&&(b.preventDefault(),AF(a,a.l.getValue()+c));break;case "PageDown":a.l&&e&&0<c&&(b.preventDefault(),AF(a,a.l.getValue()-f));break;case "PageUp":a.l&&e&&0<c&&(b.preventDefault(),AF(a,a.l.getValue()+f));break;case "Home":a.l&&AF(a,a.H.
|
|
1541
|
-
case " ":e&&BF(a)}}});a.i.s(a.j,"keyup",function(b){a.ha.delete(b.key)});a.i.s(a.
|
|
1542
|
-
function CF(a){return O(function(b){return a.A&&0!=a.A.readyState&&!a.F.
|
|
1541
|
+
AF(a,a.l.getValue()-c));break;case "ArrowRight":a.l&&e&&!d&&0<c&&(b.preventDefault(),AF(a,a.l.getValue()+c));break;case "PageDown":a.l&&e&&0<c&&(b.preventDefault(),AF(a,a.l.getValue()-f));break;case "PageUp":a.l&&e&&0<c&&(b.preventDefault(),AF(a,a.l.getValue()+f));break;case "Home":a.l&&AF(a,a.H.Ta().start);break;case "End":a.l&&AF(a,a.H.Ta().end);break;case "f":a.Xd()&&a.qf();break;case "m":a.m&&a.m.isLinear()?a.m.setMuted(!a.m.isMuted()):a.o.muted=!a.o.muted;break;case "p":a.Re()&&a.me();break;
|
|
1542
|
+
case " ":e&&BF(a)}}});a.i.s(a.j,"keyup",function(b){a.ha.delete(b.key)});a.i.s(a.Ba,"ad-started",function(b){a.m=b.ad;a.mi()});a.i.s(a.Ba,"ad-stopped",function(){a.m=null;a.Kh()});screen.orientation&&a.i.s(screen.orientation,"change",function(){return O(function(b){return E(b,CF(a),0)})})}
|
|
1543
|
+
function CF(a){return O(function(b){return a.A&&0!=a.A.readyState&&!a.F.Oa()&&a.g.enableFullscreenOnRotation&&a.Xd()?screen.orientation.type.includes("landscape")&&!a.ed()?E(b,rF(a),0):screen.orientation.type.includes("portrait")&&a.ed()?E(b,sF(a),0):b.B(0):b.return()})}
|
|
1543
1544
|
function vF(a,b){"mousemove"==b.type&&(a.h.classList.remove("shaka-keyboard-navigation"),aF(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.I=Date.now():a.I+1E3<Date.now()&&(a.I=null);a.I&&"mousemove"==b.type||(a.j.style.cursor="",a.Za=!0,a.L.stop(),a.lc()||(bF(a),aF(a)),a.R.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.I||a.R.V(3))}function DF(a){return window.matchMedia("hover: hover").matches?a.jb.some(function(b){return b.matches(":hover")}):!1}
|
|
1544
|
-
function aF(a){var b=a.m?a.m.isPaused():!1,c=a.A.paused&&!a.$,d=a.h.classList.contains("shaka-keyboard-navigation");b||(!a.m||!a.m.isLinear())&&c||a.Za||d||DF(a)?(bF(a),a.h.setAttribute("shown","true"),a.ea.stop()):a.ea.V(a.g.fadeDelay)}function wF(a){a.S&&!a.Qb()&&(a.Jd()?a.L.
|
|
1545
|
-
function eF(a){var b=a.F.
|
|
1545
|
+
function aF(a){var b=a.m?a.m.isPaused():!1,c=a.A.paused&&!a.$,d=a.h.classList.contains("shaka-keyboard-navigation");b||(!a.m||!a.m.isLinear())&&c||a.Za||d||DF(a)?(bF(a),a.h.setAttribute("shown","true"),a.ea.stop()):a.ea.V(a.g.fadeDelay)}function wF(a){a.S&&!a.Qb()&&(a.Jd()?a.L.Pa():a.g.singleClickForPlayAndPause&&BF(a))}function BF(a){a.m&&a.m.isLinear()?bE(a):cE(a)}
|
|
1546
|
+
function eF(a){var b=a.F.Oa();a.dispatchEvent(new S("caststatuschanged",(new Map).set("newStatus",b)));b?a.h.setAttribute("casting","true"):a.h.removeAttribute("casting")}q.lc=function(){return this.S?null!=this.h.getAttribute("shown")||null!=this.h.getAttribute("casting"):!1};function AF(a,b){a.l.changeTo(b);a.lc()&&bF(a)}
|
|
1546
1547
|
function bF(a){if(a.l)if(a.l.setValue(a.A.currentTime),a.l.update(),a.l.isShowing())for(var b=t(a.J),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=t(a.J),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new S("timeandseekrangeupdated"))}
|
|
1547
|
-
function zF(a,b){a.ha.add(b.key);var c=a.Jd();"Tab"==b.key&&(a.h.classList.add("shaka-keyboard-navigation"),aF(a),a.i.s(window,"mousedown",function(){a.i.
|
|
1548
|
+
function zF(a,b){a.ha.add(b.key);var c=a.Jd();"Tab"==b.key&&(a.h.classList.add("shaka-keyboard-navigation"),aF(a),a.i.s(window,"mousedown",function(){a.i.Xa(window,"mousedown")}));"Escape"==b.key&&a.L.Pa();c&&a.ha.has("Tab")&&EF(a,b)}
|
|
1548
1549
|
function EF(a,b){var c=a.J.filter(function(f){return!f.classList.contains("shaka-hidden")});if(c.length){var d=c[0];if(d.childNodes.length){for(c=d.firstElementChild;c&&c.classList.contains("shaka-hidden");)c=c.nextElementSibling;for(d=d.lastElementChild;d&&d.classList.contains("shaka-hidden");)d=d.previousElementSibling;var e=document.activeElement;a.ha.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
|
|
1549
|
-
q.Bk=function(){var a=new Event("mousemove",{bubbles:!1,cancelable:!1});vF(this,a)};q.Dj=function(){this.I||this.R.
|
|
1550
|
+
q.Bk=function(){var a=new Event("mousemove",{bubbles:!1,cancelable:!1});vF(this,a)};q.Dj=function(){this.I||this.R.Pa()};q.Vf=function(){return this.u.Vf()};q.Qb=function(){return this.u.Qb()};
|
|
1550
1551
|
q.wj=function(){var a=this.u;if(a.g){a=a.g;DE(a.h,a.G);var b=a.h;a=b[0];var c=b[1],d=b[2];b=b[3];var e=d*d,f=b*b;var g=a*a+c*c+e+f;var h=a*b-c*d;h>.499995*g?(g=Math.PI/2,a=2*Math.atan2(c,a)):h<-.499995*g?(g=-Math.PI/2,a=2*Math.atan2(c,a)):(g=Math.asin(2*(a*d-b*c)),a=Math.atan2(2*(a*b+c*d),1-2*(e+f)));a=180*Math.acos(Math.cos(a)*Math.cos(g))/Math.PI}else Ya("Not playing VR content"),a=null;return a};q.vj=function(){var a=this.u;a.g?a=a.g.i:(Ya("Not playing VR content"),a=null);return a};
|
|
1551
1552
|
q.Ak=function(a){var b=this.u;b.g?(0>a?(Ya("Field of view should be greater than 0"),a=0):100<a&&(Ya("Field of view should be less than 100"),a=100),b=b.g,b.i=a,JE(b,!1)):Ya("Not playing VR content")};q.qd=function(){this.u.qd()};q.zg=function(a){this.u.zg(a)};q.xg=function(a){this.u.xg(a)};q.yg=function(a){this.u.yg(a)};
|
|
1552
|
-
function cF(){var a=new hd("en");a.
|
|
1553
|
+
function cF(){var a=new hd("en");a.Ka("ar",new Map([["AD_DURATION","\u0645\u062f\u0629 \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["AD_PROGRESS","\u0627\u0644\u0625\u0639\u0644\u0627\u0646 [AD_ON] \u0645\u0646 [NUM_ADS]"],["AD_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],
|
|
1553
1554
|
["ENTER_LOOP_MODE","\u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062d\u0627\u0644\u064a"],["ENTER_PICTURE_IN_PICTURE",'\u0627\u0644\u062f\u062e\u0648\u0644 \u0641\u064a \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],["EXIT_FULL_SCREEN","\u0625\u0646\u0647\u0627\u0621 \u0648\u0636\u0639 \u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["EXIT_LOOP_MODE","\u0625\u064a\u0642\u0627\u0641 \u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062d\u0627\u0644\u064a"],
|
|
1554
1555
|
["EXIT_PICTURE_IN_PICTURE",'\u0627\u0644\u062e\u0631\u0648\u062c \u0645\u0646 \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],["FAST_FORWARD","\u062a\u0642\u062f\u064a\u0645 \u0633\u0631\u064a\u0639"],["FULL_SCREEN","\u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["LANGUAGE","\u0627\u0644\u0644\u063a\u0629"],["LIVE","\u0645\u0628\u0627\u0634\u0631"],["LOOP","\u062a\u0643\u0631\u0627\u0631"],["MORE_SETTINGS","\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0625\u0639\u062f\u0627\u062f\u0627\u062a"],
|
|
1555
1556
|
["MULTIPLE_LANGUAGES","\u0644\u063a\u0627\u062a \u0645\u062a\u0639\u062f\u062f\u0629"],["MUTE","\u0643\u062a\u0645 \u0627\u0644\u0635\u0648\u062a"],["NOT_APPLICABLE","\u063a\u064a\u0631 \u0633\u0627\u0631\u064d"],["OFF","\u0625\u064a\u0642\u0627\u0641"],["ON","\u062a\u0634\u063a\u064a\u0644"],["PAUSE","\u0625\u064a\u0642\u0627\u0641 \u0645\u0624\u0642\u062a"],["PICTURE_IN_PICTURE","\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0627\u0644\u0646\u0627\u0641\u0630\u0629"],["PLAY","\u0627\u0644\u062a\u0634\u063a\u064a\u0644"],
|
|
1556
1557
|
["PLAYBACK_RATE","\u0633\u0631\u0639\u0629 \u0627\u0644\u062a\u0634\u063a\u064a\u0644"],["RESOLUTION","\u062f\u0631\u062c\u0629 \u0627\u0644\u062f\u0642\u0629"],["REWIND","\u062a\u0631\u062c\u064a\u0639"],["SEEK","\u0627\u0644\u0628\u062d\u062b \u0628\u0627\u0644\u062a\u0645\u0631\u064a\u0631"],["SKIP_AD","\u062a\u062e\u0637\u0651\u064a \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["SKIP_TO_LIVE","\u0627\u0644\u0627\u0646\u062a\u0642\u0627\u0644 \u0625\u0644\u0649 \u0628\u062b \u0645\u0628\u0627\u0634\u0631"],
|
|
1557
|
-
["UNDETERMINED_LANGUAGE","\u063a\u064a\u0631 \u0645\u062d\u062f\u062f"],["UNMUTE","\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0635\u0648\u062a"],["UNRECOGNIZED_LANGUAGE","\u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641"],["VOLUME","\u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0648\u062a"]]));a.
|
|
1558
|
+
["UNDETERMINED_LANGUAGE","\u063a\u064a\u0631 \u0645\u062d\u062f\u062f"],["UNMUTE","\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0635\u0648\u062a"],["UNRECOGNIZED_LANGUAGE","\u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641"],["VOLUME","\u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0648\u062a"]]));a.Ka("de",new Map([["AD_DURATION","Dauer der Werbeanzeige"],["AD_PROGRESS","Werbung\u00a0[AD_ON] von\u00a0[NUM_ADS]"],["AD_TIME","Werbeanzeige: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Zur\u00fcck"],
|
|
1558
1559
|
["CAPTIONS","Untertitel"],["CAST","Streamen..."],["ENTER_LOOP_MODE","In Endlosschleife spielen"],["ENTER_PICTURE_IN_PICTURE","Bild-im-Bild-Modus aktivieren"],["EXIT_FULL_SCREEN","Vollbildmodus beenden"],["EXIT_LOOP_MODE","Endlosschleife stoppen"],["EXIT_PICTURE_IN_PICTURE","Bild-im-Bild-Modus beenden"],["FAST_FORWARD","Vorspulen"],["FULL_SCREEN","Vollbildmodus"],["LANGUAGE","Sprache"],["LIVE","Live"],["LOOP","Schleife"],["MORE_SETTINGS","Weitere Einstellungen"],["MULTIPLE_LANGUAGES","Mehrere Sprachen"],
|
|
1559
1560
|
["MUTE","Stummschalten"],["NOT_APPLICABLE","Nicht zutreffend"],["OFF","Aus"],["ON","Ein"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Bild im Bild"],["PLAY","Wiedergabe"],["PLAYBACK_RATE","Geschwindigkeit"],["RESOLUTION","Aufl\u00f6sung"],["REWIND","Zur\u00fcckspulen"],["SEEK","Suche"],["SKIP_AD","\u00dcberspringen"],["SKIP_TO_LIVE","Zum Live-Videostream wechseln"],["UNDETERMINED_LANGUAGE","Unbestimmt"],["UNMUTE","Stummschaltung aufheben"],["UNRECOGNIZED_LANGUAGE","Unbekannt"],["VOLUME","Lautst\u00e4rke"]]));
|
|
1560
|
-
a.
|
|
1561
|
+
a.Ka("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter Picture-in-Picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit Picture-in-Picture"],["FAST_FORWARD","Fast-forward"],
|
|
1561
1562
|
["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["QUALITY","Quality"],["RECENTER_VR","Recenter"],["REPLAY","Replay"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip Ad"],
|
|
1562
|
-
["SKIP_TO_LIVE","Skip ahead to live"],["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Toggle stereoscopic"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.
|
|
1563
|
+
["SKIP_TO_LIVE","Skip ahead to live"],["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Toggle stereoscopic"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.Ka("en-GB",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE",
|
|
1563
1564
|
"Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter picture-in-picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit picture-in-picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],
|
|
1564
|
-
["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["RECENTER_VR","Recenter"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip ad"],["SKIP_TO_LIVE","Skip ahead to live"],["TOGGLE_STEREOSCOPIC","Toggle stereoscopic"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]]));a.
|
|
1565
|
+
["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["RECENTER_VR","Recenter"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip ad"],["SKIP_TO_LIVE","Skip ahead to live"],["TOGGLE_STEREOSCOPIC","Toggle stereoscopic"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]]));a.Ka("es",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS",
|
|
1565
1566
|
"Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Enviar..."],["ENTER_LOOP_MODE","Reproducir en bucle el v\u00eddeo actual"],["ENTER_PICTURE_IN_PICTURE","Activar el modo imagen en imagen"],["EXIT_FULL_SCREEN","Salir del modo de pantalla completa"],["EXIT_LOOP_MODE","Dejar de reproducir en bucle el v\u00eddeo actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo imagen en imagen"],
|
|
1566
1567
|
["FAST_FORWARD","Avanzar r\u00e1pidamente"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Reproducir en bucle"],["MORE_SETTINGS","M\u00e1s ajustes"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Imagen en imagen"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["QUALITY","Calidad"],["RECENTER_VR","Recentrar"],
|
|
1567
|
-
["RESOLUTION","Resoluci\u00f3n"],["REWIND","Rebobinar"],["SEEK","Buscar"],["SKIP_AD","Saltar anuncio"],["SKIP_TO_LIVE","Ir al v\u00eddeo en directo"],["SUBTITLE_FORCED","Forzado"],["SURROUND","Envolvente"],["TOGGLE_STEREOSCOPIC","Alternar estereosc\u00f3pico"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.
|
|
1568
|
+
["RESOLUTION","Resoluci\u00f3n"],["REWIND","Rebobinar"],["SEEK","Buscar"],["SKIP_AD","Saltar anuncio"],["SKIP_TO_LIVE","Ir al v\u00eddeo en directo"],["SUBTITLE_FORCED","Forzado"],["SURROUND","Envolvente"],["TOGGLE_STEREOSCOPIC","Alternar estereosc\u00f3pico"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.Ka("es-419",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],
|
|
1568
1569
|
["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir indefinidamente el video actual"],["ENTER_PICTURE_IN_PICTURE","Ingresar al modo de pantalla en pantalla"],["EXIT_FULL_SCREEN","Salir de pantalla completa"],["EXIT_LOOP_MODE","Detener la repetici\u00f3n indefinida del video actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo de pantalla en pantalla"],["FAST_FORWARD","Avanzar"],
|
|
1569
1570
|
["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Repetir indefinidamente"],["MORE_SETTINGS","M\u00e1s opciones de configuraci\u00f3n"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Detener"],["PICTURE_IN_PICTURE","Pantalla en pantalla"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["RECENTER_VR","Recentrar"],["RESOLUTION","Resoluci\u00f3n"],
|
|
1570
|
-
["REWIND","Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],["SKIP_TO_LIVE","Adelantar hasta la transmisi\u00f3n en vivo"],["SUBTITLE_FORCED","Forzado"],["SURROUND","Envolvente"],["TOGGLE_STEREOSCOPIC","Alternar estereosc\u00f3pico"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.
|
|
1571
|
+
["REWIND","Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],["SKIP_TO_LIVE","Adelantar hasta la transmisi\u00f3n en vivo"],["SUBTITLE_FORCED","Forzado"],["SURROUND","Envolvente"],["TOGGLE_STEREOSCOPIC","Alternar estereosc\u00f3pico"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.Ka("fr",new Map([["AD_DURATION","Dur\u00e9e de l'annonce"],["AD_PROGRESS","Annonce [AD_ON] sur [NUM_ADS]"],["AD_STATISTICS",
|
|
1571
1572
|
"Statistiques de l'annonce"],["AD_TIME","Annonce : [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["CAPTIONS","Sous-titres"],["CAST","Caster\u2026"],["ENTER_LOOP_MODE","Lire en boucle la vid\u00e9o en cours"],["ENTER_PICTURE_IN_PICTURE","Utiliser le mode Picture-in-Picture"],["EXIT_FULL_SCREEN","Quitter le mode plein \u00e9cran"],["EXIT_LOOP_MODE","Arr\u00eater la lecture en boucle de la vid\u00e9o en cours"],["EXIT_PICTURE_IN_PICTURE","Quitter le mode PIP (Picture-in-picture)"],
|
|
1572
1573
|
["FAST_FORWARD","Avance rapide"],["FULL_SCREEN","Plein \u00e9cran"],["LANGUAGE","Langue"],["LIVE","En direct"],["LOOP","R\u00e9p\u00e9ter"],["MORE_SETTINGS","Plus de param\u00e8tres"],["MULTIPLE_LANGUAGES","Plusieurs langues"],["MUTE","Couper le son"],["NOT_APPLICABLE","Non applicable"],["OFF","D\u00e9sactiv\u00e9e"],["ON","Activ\u00e9e"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Visionner"],["PLAYBACK_RATE","Vitesse de lecture"],["QUALITY","Qualit\u00e9"],["RECENTER_VR",
|
|
1573
1574
|
"Recentrer"],["REPLAY","Rejouer"],["RESOLUTION","R\u00e9solution"],["REWIND","Retour arri\u00e8re"],["SEEK","Chercher"],["SKIP_AD","Passer l'annonce"],["SKIP_TO_LIVE","Acc\u00e9der \u00e0 la partie la plus r\u00e9cente du direct"],["STATISTICS","Statistiques"],["SUBTITLE_FORCED","Forc\u00e9"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","St\u00e9r\u00e9oscopique ON/OFF"],["UNDETERMINED_LANGUAGE","Langue ind\u00e9termin\u00e9e"],["UNMUTE","R\u00e9activer le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],
|
|
1574
|
-
["VOLUME","Volume"]]));a.
|
|
1575
|
+
["VOLUME","Volume"]]));a.Ka("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_TIME","Annuncio: [AD_TIME]"],["AUTO_QUALITY","Automatica"],["BACK","Indietro"],["CAPTIONS","Sottotitoli"],["CAST","Trasmetti..."],["ENTER_LOOP_MODE","Riproduci in loop il video corrente"],["ENTER_PICTURE_IN_PICTURE","Attiva Picture in picture"],["EXIT_FULL_SCREEN","Esci da schermo intero"],["EXIT_LOOP_MODE","Interrompi riproduzione in loop del video corrente"],["EXIT_PICTURE_IN_PICTURE",
|
|
1575
1576
|
"Esci da Picture in picture"],["FAST_FORWARD","Avanti veloce"],["FULL_SCREEN","Schermo intero"],["LANGUAGE","Lingua"],["LIVE","Dal vivo"],["LOOP","Riproduci in loop"],["MORE_SETTINGS","Altre impostazioni"],["MULTIPLE_LANGUAGES","Pi\u00f9 lingue"],["MUTE","Disattiva audio"],["NOT_APPLICABLE","Non applicabile"],["OFF","Disattivo"],["ON","Attivo"],["PAUSE","Metti in pausa"],["PICTURE_IN_PICTURE","Picture in picture"],["PLAY","Riproduci"],["PLAYBACK_RATE","Velocit\u00e0 di riproduzione"],["RESOLUTION",
|
|
1576
|
-
"Risoluzione"],["REWIND","Riavvolgi"],["SEEK","Cerca"],["SKIP_AD","Salta annuncio"],["SKIP_TO_LIVE","Passa alla trasmissione dal vivo"],["UNDETERMINED_LANGUAGE","Indeterminata"],["UNMUTE","Riattiva audio"],["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.
|
|
1577
|
+
"Risoluzione"],["REWIND","Riavvolgi"],["SEEK","Cerca"],["SKIP_AD","Salta annuncio"],["SKIP_TO_LIVE","Passa alla trasmissione dal vivo"],["UNDETERMINED_LANGUAGE","Indeterminata"],["UNMUTE","Riattiva audio"],["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.Ka("ja",new Map([["AD_DURATION","\u5e83\u544a\u518d\u751f\u6642\u9593"],["AD_PROGRESS","[AD_ON] \u756a\u76ee\u306e\u5e83\u544a\uff08\u5168 [NUM_ADS] \u500b\uff09"],["AD_TIME","\u5e83\u544a: [AD_TIME]"],["AUTO_QUALITY","\u81ea\u52d5"],
|
|
1577
1578
|
["BACK","\u623b\u308b"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u30ad\u30e3\u30b9\u30c8..."],["ENTER_LOOP_MODE","\u73fe\u5728\u306e\u52d5\u753b\u3092\u30eb\u30fc\u30d7\u518d\u751f"],["ENTER_PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc\u3092\u958b\u59cb"],["EXIT_FULL_SCREEN","\u5168\u753b\u9762\u8868\u793a\u3092\u7d42\u4e86"],["EXIT_LOOP_MODE","\u73fe\u5728\u306e\u52d5\u753b\u306e\u30eb\u30fc\u30d7\u518d\u751f\u3092\u505c\u6b62"],["EXIT_PICTURE_IN_PICTURE",
|
|
1578
1579
|
"\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc\u3092\u7d42\u4e86"],["FAST_FORWARD","\u65e9\u9001\u308a"],["FULL_SCREEN","\u5168\u753b\u9762\u8868\u793a"],["LANGUAGE","\u8a00\u8a9e"],["LIVE","\u30e9\u30a4\u30d6"],["LOOP","\u30eb\u30fc\u30d7"],["MORE_SETTINGS","\u8a73\u7d30\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u8a00\u8a9e"],["MUTE","\u30df\u30e5\u30fc\u30c8"],["NOT_APPLICABLE","\u8a72\u5f53\u306a\u3057"],["OFF","\u30aa\u30d5"],["ON","\u30aa\u30f3"],["PAUSE","\u4e00\u6642\u505c\u6b62"],
|
|
1579
1580
|
["PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc"],["PLAY","\u518d\u751f"],["PLAYBACK_RATE","\u518d\u751f\u901f\u5ea6"],["RESOLUTION","\u89e3\u50cf\u5ea6"],["REWIND","\u5dfb\u304d\u623b\u3057"],["SEEK","\u30b7\u30fc\u30af\u518d\u751f"],["SKIP_AD","\u5e83\u544a\u3092\u30b9\u30ad\u30c3\u30d7"],["SKIP_TO_LIVE","\u30e9\u30a4\u30d6\u914d\u4fe1\u307e\u3067\u30b9\u30ad\u30c3\u30d7"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u30df\u30e5\u30fc\u30c8\u3092\u89e3\u9664"],
|
|
1580
|
-
["UNRECOGNIZED_LANGUAGE","\u4e0d\u660e"],["VOLUME","\u97f3\u91cf"]]));a.
|
|
1581
|
+
["UNRECOGNIZED_LANGUAGE","\u4e0d\u660e"],["VOLUME","\u97f3\u91cf"]]));a.Ka("ko",new Map([["AD_DURATION","\uad11\uace0 \uae30\uac04"],["AD_PROGRESS","\uad11\uace0 [AD_ON]/[NUM_ADS]"],["AD_TIME","\uad11\uace0: [AD_TIME]"],["AUTO_QUALITY","\uc790\ub3d9"],["BACK","\ub4a4\ub85c"],["CAPTIONS","\uc790\ub9c9"],["CAST","\uc804\uc1a1..."],["ENTER_LOOP_MODE","\ud604\uc7ac \ub3d9\uc601\uc0c1 \ubc18\ubcf5 \uc7ac\uc0dd"],["ENTER_PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc \uc2dc\uc791"],["EXIT_FULL_SCREEN","\uc804\uccb4\ud654\uba74 \ub2eb\uae30"],
|
|
1581
1582
|
["EXIT_LOOP_MODE","\ud604\uc7ac \ub3d9\uc601\uc0c1 \ubc18\ubcf5 \uc7ac\uc0dd \uc911\uc9c0"],["EXIT_PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc \uc885\ub8cc"],["FAST_FORWARD","\ube68\ub9ac \uac10\uae30"],["FULL_SCREEN","\uc804\uccb4\ud654\uba74"],["LANGUAGE","\uc5b8\uc5b4"],["LIVE","\uc2e4\uc2dc\uac04"],["LOOP","\ubc18\ubcf5 \uc7ac\uc0dd"],["MORE_SETTINGS","\uc124\uc815 \ub354\ubcf4\uae30"],["MULTIPLE_LANGUAGES","\uc5ec\ub7ec \uc5b8\uc5b4"],["MUTE","\uc74c\uc18c\uac70"],["NOT_APPLICABLE","\ud574\ub2f9 \uc0ac\ud56d \uc5c6\uc74c"],
|
|
1582
1583
|
["OFF","\uc0ac\uc6a9 \uc548\ud568"],["ON","\uc0ac\uc6a9"],["PAUSE","\uc77c\uc2dc\uc911\uc9c0"],["PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc"],["PLAY","\uc7ac\uc0dd"],["PLAYBACK_RATE","\uc7ac\uc0dd \uc18d\ub3c4"],["RESOLUTION","\ud574\uc0c1\ub3c4"],["REWIND","\ub418\uac10\uae30"],["SEEK","\ucc3e\uae30"],["SKIP_AD","\uad11\uace0 \uac74\ub108\ub6f0\uae30"],["SKIP_TO_LIVE","\ub77c\uc774\ube0c \ub3d9\uc601\uc0c1\uc73c\ub85c \uac74\ub108\ub6f0\uae30"],["UNDETERMINED_LANGUAGE","\ubbf8\uc815"],["UNMUTE","\uc74c\uc18c\uac70 \ud574\uc81c"],
|
|
1583
|
-
["UNRECOGNIZED_LANGUAGE","\uc54c \uc218 \uc5c6\uc74c"],["VOLUME","\ubcfc\ub968"]]));a.
|
|
1584
|
+
["UNRECOGNIZED_LANGUAGE","\uc54c \uc218 \uc5c6\uc74c"],["VOLUME","\ubcfc\ub968"]]));a.Ka("nl",new Map([["AD_DURATION","Advertentieduur"],["AD_PROGRESS","Advertentie [AD_ON] van [NUM_ADS]"],["AD_TIME","Advertentie: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Terug"],["CAPTIONS","Ondertiteling"],["CAST","Casten..."],["ENTER_LOOP_MODE","De huidige video lussen"],["ENTER_PICTURE_IN_PICTURE","Scherm-in-scherm openen"],["EXIT_FULL_SCREEN","Volledig scherm sluiten"],["EXIT_LOOP_MODE","De huidige video niet meer lussen"],
|
|
1584
1585
|
["EXIT_PICTURE_IN_PICTURE","Scherm-in-scherm afsluiten"],["FAST_FORWARD","Vooruitspoelen"],["FULL_SCREEN","Volledig scherm"],["LANGUAGE","Taal"],["LIVE","Live"],["LOOP","Lussen"],["MORE_SETTINGS","Meer instellingen"],["MULTIPLE_LANGUAGES","Meerdere talen"],["MUTE","Dempen"],["NOT_APPLICABLE","Niet van toepassing"],["OFF","Uit"],["ON","Aan"],["PAUSE","Onderbreken"],["PICTURE_IN_PICTURE","Scherm-in-scherm"],["PLAY","Afspelen"],["PLAYBACK_RATE","Afspeelsnelheid"],["RESOLUTION","Resolutie"],["REWIND",
|
|
1585
|
-
"Terugspoelen"],["SEEK","Zoeken"],["SKIP_AD","Advertentie overslaan"],["SKIP_TO_LIVE","Doorgaan naar live"],["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.
|
|
1586
|
+
"Terugspoelen"],["SEEK","Zoeken"],["SKIP_AD","Advertentie overslaan"],["SKIP_TO_LIVE","Doorgaan naar live"],["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.Ka("pl",new Map([["AD_DURATION","Czas trwania reklamy"],["AD_PROGRESS","Reklama [AD_ON] z [NUM_ADS]"],["AD_STATISTICS","Statystyki reklam"],["AD_TIME","Reklama: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatycznie"],["BACK","Wstecz"],["CAPTIONS","Napisy"],
|
|
1586
1587
|
["CAST","Przesy\u0142aj..."],["ENTER_LOOP_MODE","Odtwarzaj bie\u017c\u0105cy film w p\u0119tli"],["ENTER_PICTURE_IN_PICTURE","W\u0142\u0105cz tryb obrazu w obrazie"],["EXIT_FULL_SCREEN","Zamknij pe\u0142ny ekran"],["EXIT_LOOP_MODE","Wy\u0142\u0105cz odtwarzanie bie\u017c\u0105cego filmu w p\u0119tli"],["EXIT_PICTURE_IN_PICTURE","Wy\u0142\u0105cz tryb obrazu w obrazie"],["FAST_FORWARD","Przewi\u0144 do przodu"],["FULL_SCREEN","Pe\u0142ny ekran"],["LANGUAGE","J\u0119zyk"],["LIVE","Na \u017cywo"],["LOOP",
|
|
1587
1588
|
"Odtwarzaj w p\u0119tli"],["MORE_SETTINGS","Wi\u0119cej ustawie\u0144"],["MULTIPLE_LANGUAGES","Wiele j\u0119zyk\u00f3w"],["MUTE","Wycisz"],["NOT_APPLICABLE","Nie dotyczy"],["OFF","Wy\u0142\u0105czone"],["ON","W\u0142\u0105czone"],["PAUSE","Wstrzymaj"],["PICTURE_IN_PICTURE","Obraz w obrazie"],["PLAY","Odtw\u00f3rz"],["PLAYBACK_RATE","Szybko\u015b\u0107 odtwarzania"],["QUALITY","Jako\u015b\u0107"],["RECENTER_VR","Wycentruj"],["REPLAY","Odtw\u00f3rz od nowa"],["RESOLUTION","Rozdzielczo\u015b\u0107"],
|
|
1588
|
-
["REWIND","Przewi\u0144 do ty\u0142u"],["SEEK","Szukaj"],["SKIP_AD","Pomi\u0144 reklam\u0119"],["SKIP_TO_LIVE","Przejd\u017a do transmisji na \u017cywo"],["STATISTICS","Statystyki"],["SUBTITLE_FORCED","Wymuszone"],["SURROUND","Przestrzenny"],["TOGGLE_STEREOSCOPIC","Prze\u0142\u0105cz widok stereoskopowy"],["UNDETERMINED_LANGUAGE","Nie okre\u015blono"],["UNMUTE","Wy\u0142\u0105cz wyciszenie"],["UNRECOGNIZED_LANGUAGE","Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.
|
|
1589
|
+
["REWIND","Przewi\u0144 do ty\u0142u"],["SEEK","Szukaj"],["SKIP_AD","Pomi\u0144 reklam\u0119"],["SKIP_TO_LIVE","Przejd\u017a do transmisji na \u017cywo"],["STATISTICS","Statystyki"],["SUBTITLE_FORCED","Wymuszone"],["SURROUND","Przestrzenny"],["TOGGLE_STEREOSCOPIC","Prze\u0142\u0105cz widok stereoskopowy"],["UNDETERMINED_LANGUAGE","Nie okre\u015blono"],["UNMUTE","Wy\u0142\u0105cz wyciszenie"],["UNRECOGNIZED_LANGUAGE","Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.Ka("pt-BR",new Map([["AD_DURATION",
|
|
1589
1590
|
"Dura\u00e7\u00e3o do an\u00fancio"],["AD_PROGRESS","An\u00fancio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estat\u00edsticas de an\u00fancios"],["AD_TIME","An\u00fancio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Autom\u00e1tica"],["BACK","Voltar"],["CAPTIONS","Legendas"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir o v\u00eddeo atual"],["ENTER_PICTURE_IN_PICTURE","Entrar no modo picture-in-picture"],["EXIT_FULL_SCREEN","Sair do modo tela cheia"],["EXIT_LOOP_MODE","Parar repeti\u00e7\u00e3o do v\u00eddeo atual"],
|
|
1590
1591
|
["EXIT_PICTURE_IN_PICTURE","Sair de picture-in-picture"],["FAST_FORWARD","Avan\u00e7ar"],["FULL_SCREEN","Tela cheia"],["LANGUAGE","Idioma"],["LIVE","Ao vivo"],["LOOP","Repetir"],["MORE_SETTINGS","Mais defini\u00e7\u00f5es"],["MULTIPLE_LANGUAGES","V\u00e1rios idiomas"],["MUTE","Desativar som"],["NOT_APPLICABLE","N\u00e3o relevante"],["OFF","Desativado"],["ON","Ativado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Reproduzir"],["PLAYBACK_RATE","Velocidade da reprodu\u00e7\u00e3o"],
|
|
1591
1592
|
["QUALITY","Qualidade"],["RECENTER_VR","Recentralizar"],["REPLAY","Replay"],["RESOLUTION","Resolu\u00e7\u00e3o"],["REWIND","Retroceder"],["SEEK","Procurar"],["SKIP_AD","Pular an\u00fancio"],["SKIP_TO_LIVE","Pular para transmiss\u00e3o ao vivo"],["STATISTICS","Estat\u00edsticas"],["SUBTITLE_FORCED","For\u00e7ado"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Alternar estereosc\u00f3pico"],["UNDETERMINED_LANGUAGE","Indeterminado"],["UNMUTE","Ativar som"],["UNRECOGNIZED_LANGUAGE","N\u00e3o reconhecido"],
|
|
1592
|
-
["VOLUME","Volume"]]));a.
|
|
1593
|
+
["VOLUME","Volume"]]));a.Ka("ru",new Map([["AD_DURATION","\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u044b"],["AD_PROGRESS","\u0420\u0435\u043a\u043b\u0430\u043c\u0430 [AD_ON] \u0438\u0437 [NUM_ADS]"],["AD_TIME","\u0420\u0435\u043a\u043b\u0430\u043c\u0430: [AD_TIME]"],["AUTO_QUALITY","\u0410\u0432\u0442\u043e"],["BACK","\u041d\u0430\u0437\u0430\u0434"],["CAPTIONS","\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b"],
|
|
1593
1594
|
["CAST","\u0422\u0440\u0430\u043d\u0441\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c..."],["ENTER_LOOP_MODE","\u0417\u0430\u0446\u0438\u043a\u043b\u0438\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043e"],["ENTER_PICTURE_IN_PICTURE",'\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0440\u0435\u0436\u0438\u043c "\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"'],["EXIT_FULL_SCREEN","\u041e\u0431\u044b\u0447\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c"],
|
|
1594
1595
|
["EXIT_LOOP_MODE","\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u0430\u0446\u0438\u043a\u043b\u0438\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0432\u0438\u0434\u0435\u043e"],["EXIT_PICTURE_IN_PICTURE",'\u0412\u044b\u0439\u0442\u0438 \u0438\u0437 \u0440\u0435\u0436\u0438\u043c\u0430 "\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"'],["FAST_FORWARD","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0430 \u0432\u043f\u0435\u0440\u0435\u0434"],
|
|
1595
1596
|
["FULL_SCREEN","\u041f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c"],["LANGUAGE","\u042f\u0437\u044b\u043a"],["LIVE","\u041f\u0440\u044f\u043c\u043e\u0439 \u044d\u0444\u0438\u0440"],["LOOP","\u0417\u0430\u0446\u0438\u043a\u043b\u0438\u0442\u044c"],["MORE_SETTINGS","\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438"],["MULTIPLE_LANGUAGES","\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f\u0437\u044b\u043a\u043e\u0432"],
|
|
1596
1597
|
["MUTE","\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["NOT_APPLICABLE","\u041d\u0435\u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e"],["OFF","\u0412\u044b\u043a\u043b."],["ON","\u0412\u043a\u043b."],["PAUSE","\u041f\u0430\u0443\u0437\u0430"],["PICTURE_IN_PICTURE","\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"],["PLAY","\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438"],
|
|
1597
1598
|
["PLAYBACK_RATE","\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f"],["RESOLUTION","\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435"],["REWIND","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u0430\u0442\u044c \u043d\u0430\u0437\u0430\u0434"],["SEEK","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0430"],["SKIP_AD","\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c"],["SKIP_TO_LIVE","\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043f\u0440\u044f\u043c\u043e\u0439 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438"],
|
|
1598
|
-
["UNDETERMINED_LANGUAGE","\u041d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e"],["UNMUTE","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["UNRECOGNIZED_LANGUAGE","\u041d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u043e"],["VOLUME","\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"]]));a.
|
|
1599
|
+
["UNDETERMINED_LANGUAGE","\u041d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e"],["UNMUTE","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["UNRECOGNIZED_LANGUAGE","\u041d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u043e"],["VOLUME","\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"]]));a.Ka("th",new Map([["AD_DURATION","\u0e23\u0e30\u0e22\u0e30\u0e40\u0e27\u0e25\u0e32\u0e42\u0e06\u0e29\u0e13\u0e32"],["AD_PROGRESS","\u0e42\u0e06\u0e29\u0e13\u0e32 [AD_ON] \u0e08\u0e32\u0e01 [NUM_ADS] \u0e23\u0e32\u0e22\u0e01\u0e32\u0e23"],
|
|
1599
1600
|
["AD_TIME","\u0e42\u0e06\u0e29\u0e13\u0e32: [AD_TIME]"],["AUTO_QUALITY","\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34"],["BACK","\u0e01\u0e25\u0e31\u0e1a"],["CAPTIONS","\u0e04\u0e33\u0e1a\u0e23\u0e23\u0e22\u0e32\u0e22"],["CAST","\u0e41\u0e04\u0e2a\u0e15\u0e4c..."],["ENTER_LOOP_MODE","\u0e27\u0e19\u0e0b\u0e49\u0e33\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19"],["ENTER_PICTURE_IN_PICTURE","\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],
|
|
1600
1601
|
["EXIT_FULL_SCREEN","\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e41\u0e1a\u0e1a\u0e40\u0e15\u0e47\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d"],["EXIT_LOOP_MODE","\u0e2b\u0e22\u0e38\u0e14\u0e27\u0e19\u0e0b\u0e49\u0e33\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19"],["EXIT_PICTURE_IN_PICTURE","\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],
|
|
1601
1602
|
["FAST_FORWARD","\u0e01\u0e23\u0e2d\u0e44\u0e1b\u0e02\u0e49\u0e32\u0e07\u0e2b\u0e19\u0e49\u0e32"],["FULL_SCREEN","\u0e40\u0e15\u0e47\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d"],["LANGUAGE","\u0e20\u0e32\u0e29\u0e32"],["LIVE","\u0e2a\u0e14"],["LOOP","\u0e25\u0e39\u0e1b"],["MORE_SETTINGS","\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21"],["MULTIPLE_LANGUAGES","\u0e2b\u0e25\u0e32\u0e22\u0e20\u0e32\u0e29\u0e32"],["MUTE","\u0e1b\u0e34\u0e14\u0e40\u0e2a\u0e35\u0e22\u0e07"],
|
|
1602
1603
|
["NOT_APPLICABLE","\u0e44\u0e21\u0e48\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e02\u0e49\u0e2d\u0e07"],["OFF","\u0e1b\u0e34\u0e14"],["ON","\u0e40\u0e1b\u0e34\u0e14"],["PAUSE","\u0e2b\u0e22\u0e38\u0e14\u0e0a\u0e31\u0e48\u0e27\u0e04\u0e23\u0e32\u0e27"],["PICTURE_IN_PICTURE","\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],["PLAY","\u0e40\u0e25\u0e48\u0e19"],["PLAYBACK_RATE","\u0e04\u0e27\u0e32\u0e21\u0e40\u0e23\u0e47\u0e27\u0e43\u0e19\u0e01\u0e32\u0e23\u0e40\u0e25\u0e48\u0e19"],
|
|
1603
1604
|
["RESOLUTION","\u0e04\u0e27\u0e32\u0e21\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14"],["REWIND","\u0e01\u0e23\u0e2d\u0e01\u0e25\u0e31\u0e1a"],["SEEK","\u0e04\u0e49\u0e19\u0e2b\u0e32"],["SKIP_AD","\u0e02\u0e49\u0e32\u0e21\u0e42\u0e06\u0e29\u0e13\u0e32"],["SKIP_TO_LIVE","\u0e02\u0e49\u0e32\u0e21\u0e44\u0e1b\u0e17\u0e35\u0e48\u0e01\u0e32\u0e23\u0e16\u0e48\u0e32\u0e22\u0e17\u0e2d\u0e14\u0e2a\u0e14"],["UNDETERMINED_LANGUAGE","\u0e44\u0e21\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14"],["UNMUTE","\u0e40\u0e1b\u0e34\u0e14\u0e40\u0e2a\u0e35\u0e22\u0e07"],
|
|
1604
|
-
["UNRECOGNIZED_LANGUAGE","\u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e23\u0e39\u0e49\u0e08\u0e31\u0e01"],["VOLUME","\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e40\u0e2a\u0e35\u0e22\u0e07"]]));a.
|
|
1605
|
+
["UNRECOGNIZED_LANGUAGE","\u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e23\u0e39\u0e49\u0e08\u0e31\u0e01"],["VOLUME","\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e40\u0e2a\u0e35\u0e22\u0e07"]]));a.Ka("tr",new Map([["AD_DURATION","Reklam s\u00fcresi"],["AD_PROGRESS","[AD_ON]/[NUM_ADS] reklam"],["AD_TIME","Reklam: [AD_TIME]"],["AUTO_QUALITY","Otomatik"],["BACK","Geri"],["CAPTIONS","Altyaz\u0131lar"],["CAST","Yay\u0131nla..."],["ENTER_LOOP_MODE","Mevcut videoyu d\u00f6ng\u00fcye al"],["ENTER_PICTURE_IN_PICTURE","Pencere i\u00e7inde Pencere moduna gir"],
|
|
1605
1606
|
["EXIT_FULL_SCREEN","Tam ekrandan \u00e7\u0131k"],["EXIT_LOOP_MODE","Mevcut videonun d\u00f6ng\u00fcs\u00fcn\u00fc durdur"],["EXIT_PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencereden \u00c7\u0131k"],["FAST_FORWARD","\u0130leri sar"],["FULL_SCREEN","Tam ekran"],["LANGUAGE","Dil"],["LIVE","Canl\u0131"],["LOOP","D\u00f6ng\u00fc"],["MORE_SETTINGS","Daha fazla ayar"],["MULTIPLE_LANGUAGES","Birden \u00e7ok dil"],["MUTE","Sesi kapat"],["NOT_APPLICABLE","Ge\u00e7erli de\u011fil"],["OFF","Kapal\u0131"],
|
|
1606
|
-
["ON","A\u00e7\u0131k"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencere"],["PLAY","Oynat"],["PLAYBACK_RATE","\u00c7alma h\u0131z\u0131"],["RESOLUTION","\u00c7\u00f6z\u00fcn\u00fcrl\u00fck"],["REWIND","Geri sar"],["SEEK","Ara"],["SKIP_AD","Reklam\u0131 Atla"],["SKIP_TO_LIVE","Canl\u0131 yay\u0131na atla"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi a\u00e7"],["UNRECOGNIZED_LANGUAGE","Tan\u0131nmayan"],["VOLUME","Ses"]]));a.
|
|
1607
|
+
["ON","A\u00e7\u0131k"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencere"],["PLAY","Oynat"],["PLAYBACK_RATE","\u00c7alma h\u0131z\u0131"],["RESOLUTION","\u00c7\u00f6z\u00fcn\u00fcrl\u00fck"],["REWIND","Geri sar"],["SEEK","Ara"],["SKIP_AD","Reklam\u0131 Atla"],["SKIP_TO_LIVE","Canl\u0131 yay\u0131na atla"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi a\u00e7"],["UNRECOGNIZED_LANGUAGE","Tan\u0131nmayan"],["VOLUME","Ses"]]));a.Ka("zh",new Map([["AD_DURATION","\u5e7f\u544a\u6301\u7eed\u65f6\u95f4"],
|
|
1607
1608
|
["AD_PROGRESS","\u5e7f\u544a [AD_ON]/[NUM_ADS]"],["AD_TIME","\u5e7f\u544a\uff1a[AD_TIME]"],["AUTO_QUALITY","\u81ea\u52a8"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u5c04\u2026"],["ENTER_LOOP_MODE","\u5faa\u73af\u64ad\u653e\u5f53\u524d\u89c6\u9891"],["ENTER_PICTURE_IN_PICTURE","\u8fdb\u5165\u201c\u753b\u4e2d\u753b\u201d\u6a21\u5f0f"],["EXIT_FULL_SCREEN","\u9000\u51fa\u5168\u5c4f\u6a21\u5f0f"],["EXIT_LOOP_MODE","\u505c\u6b62\u5faa\u73af\u64ad\u653e\u5f53\u524d\u89c6\u9891"],
|
|
1608
1609
|
["EXIT_PICTURE_IN_PICTURE","\u9000\u51fa\u201c\u753b\u4e2d\u753b\u201d\u6a21\u5f0f"],["FAST_FORWARD","\u5feb\u8fdb"],["FULL_SCREEN","\u5168\u5c4f"],["LANGUAGE","\u8bed\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u73af\u64ad\u653e"],["MORE_SETTINGS","\u66f4\u591a\u8bbe\u7f6e"],["MULTIPLE_LANGUAGES","\u591a\u79cd\u8bed\u8a00"],["MUTE","\u9759\u97f3"],["NOT_APPLICABLE","\u4e0d\u9002\u7528"],["OFF","\u5173\u95ed"],["ON","\u5f00\u542f"],["PAUSE","\u6682\u505c"],["PICTURE_IN_PICTURE","\u753b\u4e2d\u753b"],
|
|
1609
|
-
["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["RESOLUTION","\u5206\u8fa8\u7387"],["REWIND","\u5feb\u9000"],["SEEK","\u8fdb\u5ea6"],["SKIP_AD","\u8df3\u8fc7\u5e7f\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u672a\u786e\u5b9a"],["UNMUTE","\u53d6\u6d88\u9759\u97f3"],["UNRECOGNIZED_LANGUAGE","\u65e0\u6cd5\u8bc6\u522b"],["VOLUME","\u97f3\u91cf"]]));a.
|
|
1610
|
+
["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["RESOLUTION","\u5206\u8fa8\u7387"],["REWIND","\u5feb\u9000"],["SEEK","\u8fdb\u5ea6"],["SKIP_AD","\u8df3\u8fc7\u5e7f\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u672a\u786e\u5b9a"],["UNMUTE","\u53d6\u6d88\u9759\u97f3"],["UNRECOGNIZED_LANGUAGE","\u65e0\u6cd5\u8bc6\u522b"],["VOLUME","\u97f3\u91cf"]]));a.Ka("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],
|
|
1610
1611
|
["AD_TIME","\u5ee3\u544a\uff1a[AD_TIME]"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u653e..."],["ENTER_LOOP_MODE","\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["ENTER_PICTURE_IN_PICTURE","\u9032\u5165\u5b50\u6bcd\u756b\u9762"],["EXIT_FULL_SCREEN","\u9000\u51fa\u5168\u87a2\u5e55\u6a21\u5f0f"],["EXIT_LOOP_MODE","\u505c\u6b62\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["EXIT_PICTURE_IN_PICTURE","\u96e2\u958b\u5b50\u6bcd\u756b\u9762"],
|
|
1611
1612
|
["FAST_FORWARD","\u5feb\u8f49"],["FULL_SCREEN","\u5168\u87a2\u5e55"],["LANGUAGE","\u8a9e\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u74b0\u64ad\u653e"],["MORE_SETTINGS","\u986f\u793a\u66f4\u591a\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u7a2e\u8a9e\u8a00"],["MUTE","\u975c\u97f3"],["NOT_APPLICABLE","\u4e0d\u9069\u7528"],["OFF","\u95dc\u9589"],["ON","\u958b\u555f"],["PAUSE","\u66ab\u505c"],["PICTURE_IN_PICTURE","\u5b50\u6bcd\u756b\u9762"],["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],
|
|
1612
1613
|
["RESOLUTION","\u89e3\u6790\u5ea6"],["REWIND","\u5012\u8f49"],["SEEK","\u641c\u5c0b"],["SKIP_AD","\u7565\u904e\u5ee3\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],["VOLUME","\u97f3\u91cf"]]));a.vh(navigator.languages||[]);return a}P("shaka.ui.Controls",Z);Z.prototype.incrementRoll=Z.prototype.yg;Z.prototype.incrementPitch=Z.prototype.xg;
|
|
@@ -1645,12 +1646,12 @@ W("span");a.backButton.appendChild(a.backSpan);a.controls.h.appendChild(a.menu)}
|
|
|
1645
1646
|
function hG(a){var b=a.player.Db();ZF(b,a.menu,function(c){c.channelsCount&&a.controls.g.showAudioChannelCountVariants?a.player.lf(c.language,c.roles[0],c.channelsCount):a.player.lf(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.g.trackLabelFormat,a.controls.g.showAudioChannelCountVariants);UD(a.menu);a.controls.dispatchEvent(new S("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText);WD(a.button,2<a.menu.getElementsByTagName("button").length)}
|
|
1646
1647
|
function gG(a){var b=0<a.player.Db().length;WD(a.button,b);hG(a)}function fG(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("LANGUAGE");a.nameSpan.textContent=a.localization.resolve("LANGUAGE");a.backSpan.textContent=a.localization.resolve("LANGUAGE")}P("shaka.ui.AudioLanguageSelection",eG);function iG(){}iG.prototype.create=function(a,b){return new eG(a,b)};JF("language",new iG);gF("language",new iG);function jG(a,b){RD.call(this,a,b);var c=this;this.h=this.controls.F;this.g=en();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=W("span");a.appendChild(this.l);this.j=W("span");this.j.classList.add("shaka-current-selection-span");
|
|
1647
1648
|
a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);kG(this);lG(this);this.eventManager.s(this.localization,"locale-updated",function(){kG(c)});this.eventManager.s(this.localization,"locale-changed",function(){kG(c)});this.eventManager.s(this.g,"click",function(){mG(c)});this.eventManager.s(this.controls,"caststatuschanged",function(){lG(c)})}na(jG,RD);
|
|
1648
|
-
function mG(a){var b;O(function(c){if(1==c.g){if(a.h.
|
|
1649
|
-
function nG(a){a.j.textContent=a.h.
|
|
1650
|
-
this.eventManager.s(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.
|
|
1649
|
+
function mG(a){var b;O(function(c){if(1==c.g){if(a.h.Oa())return a.h.ni(),c.B(0);ta(c,3);a.g.disabled=!0;return E(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,va(c,0);b=wa(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new S("error",(new Map).set("detail",b)));F(c)})}function lG(a){var b=a.h.Uf()&&a.controls.na,c=a.h.Oa();WD(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");nG(a)}
|
|
1650
|
+
function nG(a){a.j.textContent=a.h.Oa()?a.h.hf():a.localization.resolve("OFF")}function kG(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");nG(a)}P("shaka.ui.CastButton",jG);function oG(){}oG.prototype.create=function(a,b){return new jG(a,b)};JF("cast",new oG);gF("cast",new oG);function pG(a,b){RD.call(this,a,b);var c=this;this.g=en();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-fast-forward-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status","1x");this.g.textContent="fast_forward";this.parent.appendChild(this.g);qG(this);this.h=this.controls.g.fastForwardRates;this.eventManager.s(this.localization,"locale-updated",function(){qG(c)});this.eventManager.s(this.localization,"locale-changed",function(){qG(c)});
|
|
1651
|
+
this.eventManager.s(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Ra())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Mc(d);c.g.setAttribute("shaka-status",d+"x")}})}na(pG,RD);function qG(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}P("shaka.ui.FastForwardButton",pG);function rG(){}rG.prototype.create=function(a,b){return new pG(a,b)};gF("fast_forward",new rG);function sG(a,b){RD.call(this,a,b);var c=this;this.h=this.controls.o;this.g=en();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");tG(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);uG(this);this.eventManager.s(this.localization,"locale-updated",function(){uG(c)});this.eventManager.s(this.localization,"locale-changed",function(){uG(c)});this.eventManager.s(this.g,"click",function(){return O(function(d){return E(d,
|
|
1651
1652
|
c.controls.qf(),0)})});this.eventManager.s(document,"fullscreenchange",function(){c.g.textContent=c.controls.ed()?"fullscreen_exit":"fullscreen";uG(c)});this.eventManager.s(this.h,"loadedmetadata",function(){tG(c)});this.eventManager.s(this.h,"loadeddata",function(){tG(c)})}na(sG,RD);function tG(a){a.controls.Xd()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function uG(a){a.g.ariaLabel=a.localization.resolve(a.controls.ed()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
|
|
1652
1653
|
P("shaka.ui.FullscreenButton",sG);function vG(){}vG.prototype.create=function(a,b){return new sG(a,b)};gF("fullscreen",new vG);function wG(a,b){RD.call(this,a,b);var c=this;this.g=en();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");this.j.textContent=this.localization.resolve("LOOP");a.appendChild(this.j);this.l=W("span");this.l.classList.add("shaka-current-selection-span");
|
|
1653
|
-
a.appendChild(this.l);this.g.appendChild(a);xG(this);this.parent.appendChild(this.g);this.eventManager.s(this.localization,"locale-updated",function(){xG(c)});this.eventManager.s(this.localization,"locale-changed",function(){xG(c)});this.eventManager.s(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.
|
|
1654
|
+
a.appendChild(this.l);this.g.appendChild(a);xG(this);this.parent.appendChild(this.g);this.eventManager.s(this.localization,"locale-updated",function(){xG(c)});this.eventManager.s(this.localization,"locale-changed",function(){xG(c)});this.eventManager.s(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.Pa();c.h.za(1)});this.m=this.video.loop;this.h=new Ub(function(){c.m!=c.video.loop&&(xG(c),c.m=c.video.loop)});this.h.za(1)}na(wG,RD);
|
|
1654
1655
|
wG.prototype.release=function(){this.h.stop();this.h=null;RD.prototype.release.call(this)};function xG(a){a.j.textContent=a.localization.resolve("LOOP");a.l.textContent=a.localization.resolve(a.video.loop?"ON":"OFF");a.i.textContent=a.video.loop?"repeat_on":"repeat";a.g.ariaLabel=a.localization.resolve(a.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE")}P("shaka.ui.LoopButton",wG);function yG(){}yG.prototype.create=function(a,b){return new wG(a,b)};JF("loop",new yG);gF("loop",new yG);gE("loop",new yG);function zG(a,b){RD.call(this,a,b);var c=this;this.g=en();this.g.classList.add("shaka-mute-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.parent.appendChild(this.g);AG(this);BG(this);this.eventManager.s(this.localization,"locale-updated",function(){AG(c)});this.eventManager.s(this.localization,"locale-changed",function(){AG(c)});this.eventManager.s(this.g,"click",function(){c.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});
|
|
1655
1656
|
this.eventManager.s(this.video,"volumechange",function(){AG(c);BG(c)});this.eventManager.s(this.adManager,"ad-volume-changed",function(){AG(c);BG(c)});this.eventManager.s(this.adManager,"ad-muted",function(){AG(c);BG(c)});this.eventManager.s(this.adManager,"ad-stopped",function(){c.ad=null;AG(c);BG(c)})}na(zG,RD);function AG(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
|
|
1656
1657
|
function BG(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}P("shaka.ui.MuteButton",zG);function CG(){}CG.prototype.create=function(a,b){return new zG(a,b)};gF("mute",new CG);function DG(a,b){RD.call(this,a,b);var c=this;this.l=this.controls.o;this.g=en();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");a.appendChild(this.j);this.h=
|
|
@@ -1658,10 +1659,10 @@ W("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(thi
|
|
|
1658
1659
|
function(){GG(c)});this.eventManager.s(this.controls,"caststatuschanged",function(){HG(c)});this.eventManager.s(this.player,"trackschanged",function(){HG(c)});"documentPictureInPicture"in window&&this.eventManager.s(window.documentPictureInPicture,"enter",function(d){FG(c);c.eventManager.oa(d.window,"pagehide",function(){GG(c)})})}na(DG,RD);
|
|
1659
1660
|
function FG(a){a.i.textContent="branding_watermark";a.g.ariaLabel=a.localization.resolve("EXIT_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("ON")}function GG(a){a.i.textContent="picture_in_picture_alt";a.g.ariaLabel=a.localization.resolve("ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("OFF")}
|
|
1660
1661
|
function EG(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");var b=a.controls.Se();a.g.ariaLabel=a.localization.resolve(b?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve(b?"ON":"OFF")}function HG(a){O(function(b){if(!a.controls.Re())return WD(a.g,!1),a.controls.Se()?E(b,a.controls.me(),0):b.B(0);if(!a.player||!a.player.dd())return WD(a.g,!0),b.B(0);WD(a.g,!1);return a.controls.Se()?E(b,a.controls.me(),0):b.B(0)})}P("shaka.ui.PipButton",DG);
|
|
1661
|
-
function IG(){}IG.prototype.create=function(a,b){return new DG(a,b)};JF("picture_in_picture",new IG);gF("picture_in_picture",new IG);gE("picture_in_picture",new IG);function JG(a,b){aG.call(this,a,b,"slow_motion_video");var c=this;this.button.classList.add("shaka-playbackrate-button");this.menu.classList.add("shaka-playback-rates");this.button.classList.add("shaka-tooltip-status");this.eventManager.s(this.localization,"locale-updated",function(){KG(c)});this.eventManager.s(this.localization,"locale-changed",function(){KG(c)});this.eventManager.s(this.player,"loaded",function(){LG(c,c.player.
|
|
1662
|
-
c.player.
|
|
1662
|
+
function IG(){}IG.prototype.create=function(a,b){return new DG(a,b)};JF("picture_in_picture",new IG);gF("picture_in_picture",new IG);gE("picture_in_picture",new IG);function JG(a,b){aG.call(this,a,b,"slow_motion_video");var c=this;this.button.classList.add("shaka-playbackrate-button");this.menu.classList.add("shaka-playback-rates");this.button.classList.add("shaka-tooltip-status");this.eventManager.s(this.localization,"locale-updated",function(){KG(c)});this.eventManager.s(this.localization,"locale-changed",function(){KG(c)});this.eventManager.s(this.player,"loaded",function(){LG(c,c.player.Ra())});this.eventManager.s(this.player,"ratechange",function(){LG(c,
|
|
1663
|
+
c.player.Ra())});this.g=new Map(this.controls.g.playbackRates.map(function(d){return[d+"x",d]}));KG(this);UG(this);LG(this,this.player.Ra())}na(JG,aG);function KG(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("PLAYBACK_RATE");a.nameSpan.textContent=a.localization.resolve("PLAYBACK_RATE");a.backSpan.textContent=a.localization.resolve("PLAYBACK_RATE")}
|
|
1663
1664
|
function LG(a,b){var c=TD(a.menu,"material-icons-round shaka-chosen-item");if(c){var d=c.parentElement;d.removeAttribute("aria-selected");d.getElementsByTagName("span")[0].classList.remove("shaka-chosen-item");d.removeChild(c)}if(c=Array.from(a.menu.querySelectorAll("span")).find(function(e){return a.g.get(e.textContent)==b}))d=c.parentElement,d.appendChild(VD()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
|
|
1664
|
-
"x")}function UG(a){for(var b={},c=t(a.g.keys()),d=c.next();!d.done;b={yd:b.yd},d=c.next()){b.yd=d.value;d=en();var e=W("span");e.textContent=b.yd;d.appendChild(e);a.eventManager.s(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.yd);a.video.defaultPlaybackRate=a.g.get(f.yd)}}(b));a.menu.appendChild(d)}UD(a.menu)}P("shaka.ui.PlaybackRateSelection",JG);function VG(){}VG.prototype.create=function(a,b){return new JG(a,b)};JF("playback_rate",new VG);gF("playback_rate",new VG);function WG(a,b){RD.call(this,a,b);var c=this;this.g=en();this.g.classList.add("shaka-current-time");XG(this,"0:00");this.parent.appendChild(this.g);this.eventManager.s(this.g,"click",function(){c.player.U()&&(c.video.currentTime=c.player.
|
|
1665
|
+
"x")}function UG(a){for(var b={},c=t(a.g.keys()),d=c.next();!d.done;b={yd:b.yd},d=c.next()){b.yd=d.value;d=en();var e=W("span");e.textContent=b.yd;d.appendChild(e);a.eventManager.s(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.yd);a.video.defaultPlaybackRate=a.g.get(f.yd)}}(b));a.menu.appendChild(d)}UD(a.menu)}P("shaka.ui.PlaybackRateSelection",JG);function VG(){}VG.prototype.create=function(a,b){return new JG(a,b)};JF("playback_rate",new VG);gF("playback_rate",new VG);function WG(a,b){RD.call(this,a,b);var c=this;this.g=en();this.g.classList.add("shaka-current-time");XG(this,"0:00");this.parent.appendChild(this.g);this.eventManager.s(this.g,"click",function(){c.player.U()&&(c.video.currentTime=c.player.Ta().end)});this.eventManager.s(this.player,"loading",function(){WD(c.g,!0)});this.eventManager.s(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.$,e=c.controls.qg(),f=c.player.Ta(),g=f.end-f.start;c.player.U()?(e=Math.max(0,Math.floor(f.end-
|
|
1665
1666
|
e)),g=3600<=g,1<=e||d?(XG(c,"- "+XD(e,g)),c.g.disabled=!1):(XG(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=g,e=XD(Math.max(0,e-f.start),d),g&&(e+=" / "+XD(g,d)),XG(c,e),c.g.disabled=!0)});this.eventManager.s(this.player,"trackschanged",function(){c.player.U()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))});this.eventManager.s(this.adManager,"ad-started",function(){WD(c.g,!1)});this.eventManager.s(this.adManager,"ad-stopped",function(){WD(c.g,!0)})}na(WG,RD);
|
|
1666
1667
|
function XG(a,b){b!=a.g.textContent&&(a.g.textContent=b)}P("shaka.ui.PresentationTimeTracker",WG);function YG(){}YG.prototype.create=function(a,b){return new WG(a,b)};gF("time_and_duration",new YG);function ZG(a,b){RD.call(this,a,b);var c=this;this.g=en();this.g.classList.add("shaka-recenter-vr-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="control_camera";this.g.appendChild(this.h);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");a.appendChild(this.j);this.i=W("span");this.i.classList.add("shaka-current-selection-span");
|
|
1667
1668
|
a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);$G(this);this.eventManager.s(this.localization,"locale-updated",function(){$G(c)});this.eventManager.s(this.localization,"locale-changed",function(){$G(c)});var d=this.controls.u;this.eventManager.s(this.g,"click",function(){d.g?SE(d.g):Ya("Not playing VR content")});this.eventManager.s(d,"vrstatuschanged",function(){WD(c.g,c.controls.Qb())});WD(this.g,this.controls.Qb())}na(ZG,RD);
|
|
@@ -1671,19 +1672,20 @@ a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);this
|
|
|
1671
1672
|
function dH(a){var b,c;O(function(d){switch(d.g){case 1:if(a.controls.F.Uf()&&a.controls.na){WD(a.g,!1);-1!=a.h&&(a.video.remote.cancelWatchAvailability(a.h),a.h=-1);d.B(0);break}if("disconnected"==a.video.remote.state){b=function(e){a.player?WD(a.g,a.player.Qd()==fp&&e):WD(a.g,!1)};ta(d,7);if(-1==a.h){d.B(9);break}return E(d,a.video.remote.cancelWatchAvailability(a.h),10)}if(-1==a.h){d.B(0);break}return E(d,a.video.remote.cancelWatchAvailability(a.h),6);case 6:a.h=-1;d.B(0);break;case 10:a.h=-1;
|
|
1672
1673
|
case 9:va(d,8);break;case 7:wa(d);case 8:return ta(d,11),E(d,a.video.remote.watchAvailability(b),13);case 13:c=d.h;a.h=c;va(d,0);break;case 11:wa(d),b(!0),F(d)}})}function cH(a){var b=a.localization.resolve("CAST"),c=mc();c&&13<=c&&(b=a.localization.resolve("AIRPLAY"));a.g.ariaLabel=b;a.l.textContent=b}P("shaka.ui.RemoteButton",bH);function eH(){}eH.prototype.create=function(a,b){return new bH(a,b)};JF("remote",new eH);gF("remote",new eH);function fH(a,b){aG.call(this,a,b,"settings");var c=this;this.button.classList.add("shaka-resolution-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-resolutions");this.eventManager.s(this.localization,"locale-updated",function(){gH(c)});this.eventManager.s(this.localization,"locale-changed",function(){gH(c)});this.eventManager.s(this.player,"loading",function(){hH(c)});this.eventManager.s(this.player,"variantchanged",function(){hH(c)});this.eventManager.s(this.player,
|
|
1673
1674
|
"trackschanged",function(){hH(c)});this.eventManager.s(this.player,"abrstatuschanged",function(){hH(c)});hH(this)}na(fH,aG);
|
|
1674
|
-
function hH(a){var b=[];a.player.Qd()!=fp&&(b=a.player.Db());var c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){if(k.language!=c.language||a.controls.g.showAudioChannelCountVariants&&k.channelsCount!=c.channelsCount)return!1;var l=a.controls.g.trackLabelFormat;return(1==l||2==l)&&JSON.stringify(k.audioRoles)!=JSON.stringify(c.audioRoles)||3==l&&k.label!=c.label?!1:!0}));b=b.filter(function(k,l){
|
|
1675
|
-
k.height&&
|
|
1676
|
-
|
|
1677
|
-
a.
|
|
1678
|
-
|
|
1675
|
+
function hH(a){var b=[];a.player.Qd()!=fp&&(b=a.player.Db());var c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){if(k.language!=c.language||a.controls.g.showAudioChannelCountVariants&&k.channelsCount!=c.channelsCount)return!1;var l=a.controls.g.trackLabelFormat;return(1==l||2==l)&&JSON.stringify(k.audioRoles)!=JSON.stringify(c.audioRoles)||3==l&&k.label!=c.label?!1:!0}));b=a.player.dd()?b.filter(function(k,l){return b.findIndex(function(m){return m.bandwidth==k.bandwidth})==l}):
|
|
1676
|
+
1<[].concat(x(new Set(b.map(function(k){return k.audioId})))).length?b.filter(function(k,l){return b.findIndex(function(m){return m.height==k.height&&m.videoBandwidth==k.videoBandwidth&&m.frameRate==k.frameRate&&m.hdr==k.hdr&&m.videoLayout==k.videoLayout})==l}):b.filter(function(k,l){return b.findIndex(function(m){return m.height==k.height&&m.bandwidth==k.bandwidth&&m.frameRate==k.frameRate&&m.hdr==k.hdr&&m.videoLayout==k.videoLayout})==l});a.player.dd()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):
|
|
1677
|
+
b.sort(function(k,l){return l.height==k.height?l.bandwidth-k.bandwidth:l.height-k.height});var d=SD(a.menu);fn(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;for(var e={},f=t(b),g=f.next();!g.done;e={Tb:e.Tb},g=f.next()){e.Tb=g.value;g=en();g.classList.add("explicit-resolution");a.eventManager.s(g,"click",function(k){return function(){var l=k.Tb;a.player.configure({abr:{enabled:!1}});a.player.mf(l,a.controls.g.clearBufferOnQualityChange)}}(e));var h=W("span");h.textContent=
|
|
1678
|
+
a.player.dd()&&e.Tb.bandwidth?Math.round(e.Tb.bandwidth/1E3)+" kbits/s":e.Tb.height&&e.Tb.width?iH(e.Tb,b):"Unknown";g.appendChild(h);d||e.Tb!=c||(g.ariaSelected="true",g.appendChild(VD()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=en();e.classList.add("shaka-enable-abr-button");a.eventManager.s(e,"click",function(){a.player.configure({abr:{enabled:!0}});hH(a)});a.g=W("span");a.g.classList.add("shaka-auto-span");a.g.textContent=a.localization.resolve("AUTO_QUALITY");
|
|
1679
|
+
e.appendChild(a.g);d&&(e.ariaSelected="true",e.appendChild(VD()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",a.currentSelection.textContent);a.menu.appendChild(e);UD(a.menu);a.controls.dispatchEvent(new S("resolutionselectionupdated"));gH(a);WD(a.button,1<b.length)}
|
|
1680
|
+
function iH(a,b){var c=a.height||0,d=a.width||0,e=c;d/c>16/9&&(e=Math.round(9*d/16));c=e+"p";2160==e&&(c="4K");(e=a.frameRate)&&(50<=e||20>=e)&&(c+=Math.round(a.frameRate));if("PQ"==a.hdr||"HLG"==a.hdr)c+=" (HDR)";"CH-STEREO"==a.videoLayout&&(c+=" (3D)");b.some(function(f){return f!=a&&f.height==a.height})&&(c+=" ("+Math.round((a.videoBandwidth||a.bandwidth)/1E3)+" kbits/s)");return c}
|
|
1679
1681
|
function gH(a){var b=a.player.dd()?"QUALITY":"RESOLUTION";a.button.ariaLabel=a.localization.resolve(b);a.backButton.ariaLabel=a.localization.resolve(b);a.backSpan.textContent=a.localization.resolve(b);a.nameSpan.textContent=a.localization.resolve(b);a.g.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}P("shaka.ui.ResolutionSelection",fH);function jH(){}
|
|
1680
1682
|
jH.prototype.create=function(a,b){return new fH(a,b)};JF("quality",new jH);gF("quality",new jH);function kH(a,b){RD.call(this,a,b);var c=this;this.g=en();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-rewind-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status",this.localization.resolve("OFF"));this.g.textContent="fast_rewind";this.parent.appendChild(this.g);lH(this);this.h=this.controls.g.rewindRates;this.eventManager.s(this.localization,"locale-updated",function(){lH(c)});this.eventManager.s(this.localization,"locale-changed",function(){lH(c)});
|
|
1681
|
-
this.eventManager.s(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.
|
|
1683
|
+
this.eventManager.s(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Ra())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Mc(d);c.g.setAttribute("shaka-status",d+"x")}})}na(kH,RD);function lH(a){a.g.ariaLabel=a.localization.resolve("REWIND")}P("shaka.ui.RewindButton",kH);function mH(){}mH.prototype.create=function(a,b){return new kH(a,b)};gF("rewind",new mH);function nH(a,b){aE.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.button.classList.add("shaka-tooltip");this.h();this.g()}na(nH,aE);nH.prototype.h=function(){this.isEnded()?this.button.textContent="replay":this.button.textContent=this.isPaused()?"play_arrow":"pause"};
|
|
1682
1684
|
nH.prototype.g=function(){if(this.isEnded())this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)}};P("shaka.ui.SmallPlayButton",nH);function oH(){}oH.prototype.create=function(a,b){return new nH(a,b)};gF("play_pause",new oH);function pH(a,b){RD.call(this,a,b);a=W("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a)}na(pH,RD);P("shaka.ui.Spacer",pH);function qH(){}qH.prototype.create=function(a,b){return new pH(a,b)};gF("spacer",new qH);function rH(a,b){function c(k){return XD(h.g[k],!1)+" (m)"}function d(k){return Math.round(h.g[k]/1E3)+" (kbits/s)"}function e(k){return h.g[k].toFixed(2)+" (s)"}function f(k){return h.g[k]+" (frames)"}function g(k){return h.g[k]+" (px)"}RD.call(this,a,b);var h=this;this.i=en();this.i.classList.add("shaka-statistics-button");this.j=W("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);a=W("label");a.classList.add("shaka-overflow-button-label");
|
|
1683
1685
|
this.o=W("span");a.appendChild(this.o);this.m=W("span");this.m.classList.add("shaka-current-selection-span");a.appendChild(this.m);this.i.appendChild(a);this.parent.appendChild(this.i);this.h=W("div");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");this.h.classList.add("shaka-statistics-container");this.h.classList.add("shaka-hidden");this.controls.h.appendChild(this.h);this.F=[];this.G=["stateHistory","switchHistory"];this.g=this.player.getStats();
|
|
1684
1686
|
this.u={};this.A={width:g,height:g,completionPercent:function(k){return h.g[k]+" (%)"},bufferingTime:e,drmTimeSeconds:e,licenseTime:e,liveLatency:e,loadLatency:e,manifestTimeSeconds:e,estimatedBandwidth:d,streamBandwidth:d,maxSegmentDuration:c,pauseTime:c,playTime:c,corruptedFrames:f,decodedFrames:f,droppedFrames:f,stallsDetected:function(k){return h.g[k]+" (stalls)"},gapsJumped:function(k){return h.g[k]+" (gaps)"},bytesDownloaded:function(k){k=parseInt(h.g[k],10);return 1E6<k?(k/1E6).toFixed(2)+
|
|
1685
1687
|
"MB":1E3<k?(k/1E3).toFixed(2)+"KB":k+"B"}};this.l=new Ub(function(){h.g=h.player.getStats();for(var k=t(h.F),l=k.next();!l.done;l=k.next()){l=l.value;var m=h.u[l];m.textContent=h.A[l](l);m&&m.parentElement&&WD(m.parentElement,!isNaN(h.g[l]))}});sH(this);tH(this);this.eventManager.s(this.localization,"locale-updated",function(){sH(h)});this.eventManager.s(this.localization,"locale-changed",function(){sH(h)});this.eventManager.s(this.i,"click",function(){WD(h.parent,!1);h.h.classList.contains("shaka-hidden")?
|
|
1686
|
-
(h.j.textContent="insert_chart",h.l.
|
|
1688
|
+
(h.j.textContent="insert_chart",h.l.za(.1),WD(h.h,!0)):(h.j.textContent="insert_chart_outlined",h.l.stop(),WD(h.h,!1));sH(h)})}na(rH,RD);function sH(a){a.o.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.m.textContent=a.localization.resolve(a.h.classList.contains("shaka-hidden")?"OFF":"ON")}
|
|
1687
1689
|
function tH(a){for(var b=t(a.controls.g.statisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.g&&!a.G.includes(c)){var d=a,e=W("div"),f=W("label");f.textContent=c+":";e.appendChild(f);f=W("span");f.textContent=d.A[c](c);e.appendChild(f);d.u[c]=f;d=e;a.h.appendChild(d);a.F.push(c);WD(d.parentElement,!isNaN(a.g[c]))}else Ya("Unrecognized statistic element:",c)}rH.prototype.release=function(){this.l.stop();this.l=null;RD.prototype.release.call(this)};P("shaka.ui.StatisticsButton",rH);
|
|
1688
1690
|
function uH(){}uH.prototype.create=function(a,b){return new rH(a,b)};JF("statistics",new uH);gE("statistics",new uH);function vH(a,b){aG.call(this,a,b,"closed_caption");var c=this;this.button.classList.add("shaka-caption-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-text-languages");this.player&&this.player.Fc()?this.button.ariaPressed="true":this.button.ariaPressed="false";wH(this);this.eventManager.s(this.localization,"locale-updated",function(){xH(c);yH(c)});this.eventManager.s(this.localization,"locale-changed",function(){xH(c);yH(c)});this.eventManager.s(this.player,
|
|
1689
1691
|
"loading",function(){zH(c)});this.eventManager.s(this.player,"texttrackvisibility",function(){AH(c);yH(c)});this.eventManager.s(this.player,"textchanged",function(){yH(c)});this.eventManager.s(this.player,"trackschanged",function(){zH(c)});AH(this);xH(this);yH(this);zH(this)}na(vH,aG);function wH(a){var b=en();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(VD());a.g=W("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
|