shaka-player 4.10.4 → 4.10.5

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.
@@ -57,8 +57,8 @@ function P(a,b){a=a.split(".");var c=Ma;a[0]in c||"undefined"==typeof c.execScri
57
57
  function Na(){}function Oa(){};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 Pa(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 Qa={al:"abrstatuschanged",cl:"adaptation",fl:"audiotrackchanged",hl:"buffering",il:"complete",jl:"downloadfailed",kl:"downloadheadersreceived",ll:"drmsessionupdate",ql:"emsg",Jl:"prft",Error:"error",rl:"expirationupdated",ul:"firstquartile",vl:"gapjumped",yl:"keystatuschanged",Al:"loaded",Bl:"loading",Dl:"manifestparsed",El:"manifestupdated",Fl:"mediaqualitychanged",Metadata:"metadata",Gl:"midpoint",Hl:"nospatialvideoinfo",Il:"onstatechange",Ll:"ratechange",Ml:"segmentappended",Nl:"sessiondata",
60
- Ol:"spatialvideoinfo",Pl:"stalldetected",Ql:"started",Rl:"statechanged",Sl:"streaming",Tl:"textchanged",Ul:"texttrackvisibility",Vl:"thirdquartile",Wl:"timelineregionadded",Xl:"timelineregionenter",Yl:"timelineregionexit",Zl:"trackschanged",am:"unloading",cm:"variantchanged"};function Sa(){}function Ua(){}function Va(){}function Wa(a){var b=Ga.apply(1,arguments);$a.has(a)||($a.add(a),Va.apply(Sa,x(b)))}function ab(){}function cb(){}function eb(){}var $a=new Set;window.console&&(Va=function(){return console.warn.apply(console,x(Ga.apply(0,arguments)))},Ua=function(){console.error.apply(console,x(Ga.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.Fa=new fb;this.Ke=this}gb.prototype.addEventListener=function(a,b){this.Fa&&this.Fa.push(a,b)};gb.prototype.removeEventListener=function(a,b){this.Fa&&this.Fa.remove(a,b)};gb.prototype.dispatchEvent=function(a){if(!this.Fa)return!0;var b=this.Fa.get(a.type)||[],c=this.Fa.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.Ke;a.currentTarget=this.Ke;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.Fa=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};/*
60
+ Ol:"spatialvideoinfo",Pl:"stalldetected",Ql:"started",Rl:"statechanged",Sl:"streaming",Tl:"textchanged",Ul:"texttrackvisibility",Vl:"thirdquartile",Wl:"timelineregionadded",Xl:"timelineregionenter",Yl:"timelineregionexit",Zl:"trackschanged",am:"unloading",cm:"variantchanged"};function Sa(){}function Ua(){}function Va(){}function Wa(a){var b=Ga.apply(1,arguments);$a.has(a)||($a.add(a),Va.apply(Sa,x(b)))}function ab(){}function cb(){}function eb(){}var $a=new Set;window.console&&(Va=function(){return console.warn.apply(console,x(Ga.apply(0,arguments)))},Ua=function(){console.error.apply(console,x(Ga.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.Ga=new fb;this.Ke=this}gb.prototype.addEventListener=function(a,b){this.Ga&&this.Ga.push(a,b)};gb.prototype.removeEventListener=function(a,b){this.Ga&&this.Ga.remove(a,b)};gb.prototype.dispatchEvent=function(a){if(!this.Ga)return!0;var b=this.Ga.get(a.type)||[],c=this.Ga.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.Ke;a.currentTarget=this.Ke;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.Ga=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 Ob(a){this.h=a;this.g=void 0}Ob.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Pb(a,b){return a.length&&b.length&&a!==b?0<Qb(a,b).length:!0}
90
90
  function Qb(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 Rb(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}var Sb=new Ob(function(){return Ib(new Uint8Array([0]))}),Tb=new Map;function Ub(a){this.h=a;this.g=null}Ub.prototype.X=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};Ub.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function Vb(a){this.h=a;this.g=null}Vb.prototype.Qa=function(){this.stop();this.h();return this};Vb.prototype.X=function(a){var b=this;this.stop();this.g=(new Ub(function(){b.h()})).X(a);return this};Vb.prototype.wa=function(a){var b=this;this.stop();this.g=(new Ub(function(){b.g.X(a);b.h()})).X(a);return this};Vb.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};P("shaka.util.Timer",Vb);Vb.prototype.stop=Vb.prototype.stop;Vb.prototype.tickEvery=Vb.prototype.wa;
93
- Vb.prototype.tickAfter=Vb.prototype.X;Vb.prototype.tickNow=Vb.prototype.Qa;function Wb(){var a=window.ManagedMediaSource||window.MediaSource;return a&&a.isTypeSupported?!0:!1}function Xb(a){return""!=Zb().canPlayType(a)}function $b(){return navigator.userAgent.match(/Edge?\//)?!0:!1}function ac(){return bc("Xbox One")}function cc(){return bc("Tizen")}function dc(){return bc("Tizen 3")}function ec(){return bc("Tizen 2")}function fc(){return bc("Web0S")}function gc(){return fc()&&38===hc()}function ic(){return bc("CrKey")}
92
+ function Rb(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}var Sb=new Ob(function(){return Ib(new Uint8Array([0]))}),Tb=new Map;function Ub(a){this.h=a;this.g=null}Ub.prototype.X=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};Ub.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function Vb(a){this.h=a;this.g=null}Vb.prototype.Sa=function(){this.stop();this.h();return this};Vb.prototype.X=function(a){var b=this;this.stop();this.g=(new Ub(function(){b.h()})).X(a);return this};Vb.prototype.wa=function(a){var b=this;this.stop();this.g=(new Ub(function(){b.g.X(a);b.h()})).X(a);return this};Vb.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};P("shaka.util.Timer",Vb);Vb.prototype.stop=Vb.prototype.stop;Vb.prototype.tickEvery=Vb.prototype.wa;
93
+ Vb.prototype.tickAfter=Vb.prototype.X;Vb.prototype.tickNow=Vb.prototype.Sa;function Wb(){var a=window.ManagedMediaSource||window.MediaSource;return a&&a.isTypeSupported?!0:!1}function Xb(a){return""!=Zb().canPlayType(a)}function $b(){return navigator.userAgent.match(/Edge?\//)?!0:!1}function ac(){return bc("Xbox One")}function cc(){return bc("Tizen")}function dc(){return bc("Tizen 3")}function ec(){return bc("Tizen 2")}function fc(){return bc("Web0S")}function gc(){return fc()&&38===hc()}function ic(){return bc("CrKey")}
94
94
  function hc(){if(!bc("Chrome")||navigator.userAgent.match(/Edge\//))return null;var a=navigator.userAgent.match(/Chrome\/(\d+)/);return a?parseInt(a[1],10):null}function jc(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!cc()&&!bc("PC=EOS")&&!bc("PC=APL")&&!bc("VirginMedia")&&!kc()&&!lc()&&!bc("AFT")&&!bc("WPE")&&!bc("DT_STB_BCM")}function mc(){return bc("PlayStation 5")}function lc(){return bc("PlayStation 4")}function nc(){return bc("Hisense")||bc("VIDAA")}
95
95
  function kc(){return bc("SOPOpenBrowser")}function oc(){if(!jc())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 pc(){return navigator.userAgentData&&navigator.userAgentData.platform?"windows"==navigator.userAgentData.platform.toLowerCase():navigator.platform?navigator.platform.toLowerCase().includes("windows"):!1}function qc(){return bc("Android")}
96
96
  function rc(){return cc()||fc()||ac()||lc()||mc()||bc("AFT")||bc("PC=EOS")||bc("PC=APL")||bc("VirginMedia")||kc()||bc("WPE")||ic()||nc()||bc("DT_STB_BCM")?!0:!1}function bc(a){return(navigator.userAgent||"").includes(a)}function Zb(){if(sc)return sc;tc||(tc=new Vb(function(){sc=null}));(sc=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(sc=document.createElement("video"));tc.X(1);return sc}
@@ -112,7 +112,7 @@ function Mc(a){var b=Hb(a);a="";b=t(b);for(var c=b.next();!c.done;c=b.next())c=c
112
112
  function Pc(a,b,c,d){a={keySystem:a,encryptionScheme:b,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:c||[],keyIds:new Set};d&&(a.keySystemUris=new Set([d]));return a}
113
113
  function Qc(a,b){b=void 0===b?"cenc":b;var c=[],d=[],e=[];a.forEach(function(g,h){var k=h;22!=k.length&&(k=Jc(Lc(h),!1));var l=g;22!=l.length&&(l=Jc(Lc(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:Hb(Dc(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 Rc(a,b){if(1==b.length)return b[0];a=Sc(a,b);if(null!=a)return a;throw new T(2,4,4025,b);}function Sc(a,b){for(var c=t(Tc[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==Uc?"":null}
115
- function Vc(a,b){var c=[];a=t(Tc[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 Uc="text",Wc={ua:"video",ha:"audio",Ia:Uc,ag:"image",Zk:"application"},Yc=1/15,Tc={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 Zc(){}function $c(a,b){a=ad(a);b=ad(b);return a.split("-")[0]==b.split("-")[0]}function bd(a,b){a=ad(a);b=ad(b);a=a.split("-");b=b.split("-");return a[0]==b[0]&&1==a.length&&2==b.length}function cd(a,b){a=ad(a);b=ad(b);a=a.split("-");b=b.split("-");return 2==a.length&&2==b.length&&a[0]==b[0]}
115
+ function Vc(a,b){var c=[];a=t(Tc[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 Uc="text",Wc={ua:"video",ha:"audio",Ka:Uc,ag:"image",Zk:"application"},Yc=1/15,Tc={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 Zc(){}function $c(a,b){a=ad(a);b=ad(b);return a.split("-")[0]==b.split("-")[0]}function bd(a,b){a=ad(a);b=ad(b);a=a.split("-");b=b.split("-");return a[0]==b[0]&&1==a.length&&2==b.length}function cd(a,b){a=ad(a);b=ad(b);a=a.split("-");b=b.split("-");return 2==a.length&&2==b.length&&a[0]==b[0]}
116
116
  function ad(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=dd.get(b)||b;c=c.toUpperCase();return(c?b+"-"+c:b)+(a?"-"+a:"")}function ed(a,b){var c=fd(a),d=fd(b);return a!=c&&b!=d&&c==d}function gd(a,b){a=ad(a);b=ad(b);return b==a?4:bd(b,a)?3:cd(b,a)?2:bd(a,b)?1:0}
117
117
  function fd(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=dd.get(a)||a}function hd(a){return a.language?ad(a.language):a.audio&&a.audio.language?ad(a.audio.language):a.video&&a.video.language?ad(a.video.language):"und"}
118
118
  function jd(a,b){a=ad(a);var c=new Set,d=t(b);for(b=d.next();!b.done;b=d.next())c.add(ad(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,bd(b,a))return b;d=t(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,cd(b,a))return b;c=t(c);for(b=c.next();!b.done;b=c.next())if(b=b.value,bd(a,b))return b;return null}P("shaka.util.LanguageUtils",Zc);Zc.findClosestLocale=jd;Zc.getLocaleForVariant=hd;
@@ -124,13 +124,13 @@ var dd=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 kd(a){gb.call(this);this.j=ad(a);this.i=new Map;this.g=new Set;this.h=new Map}pa(kd,gb);q=kd.prototype;q.release=function(){gb.prototype.release.call(this)};
126
126
  q.Lh=function(a){var b=this;this.g.clear();a=t(a);for(var c=a.next();!c.done;c=a.next())this.g.add(ad(c.value));ld(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.Ka=function(a,b,c){a=ad(a);void 0===c&&(c=md);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=md||d.set(f,e)});this.h.set(a,d);ld(this);this.dispatchEvent(new S("locale-updated"));return this};q.Dk=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""};
127
+ q.Ma=function(a,b,c){a=ad(a);void 0===c&&(c=md);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=md||d.set(f,e)});this.h.set(a,d);ld(this);this.dispatchEvent(new S("locale-updated"));return this};q.Dk=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.pj=function(){return this.g};
129
129
  function ld(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={$c:f.$c},h=g.next()){f.$c=h.value;e.add(f.$c);e.add(fd(f.$c));h=kb(b.keys(),function(l){return function(m){return ed(m,l.$c)}}(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 fd(m)==l.$c}}(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,nd(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 nd(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",kd);kd.prototype.getCurrentLocales=kd.prototype.pj;
131
- kd.prototype.resolve=kd.prototype.resolve;kd.prototype.resolveDictionary=kd.prototype.Dk;kd.prototype.insert=kd.prototype.Ka;kd.prototype.changeLocale=kd.prototype.Lh;kd.prototype.release=kd.prototype.release;var md=1;kd.ConflictResolution={USE_OLD:0,USE_NEW:md};kd.UNKNOWN_LOCALES="unknown-locales";kd.UNKNOWN_LOCALIZATION="unknown-localization";kd.MISSING_LOCALIZATIONS="missing-localizations";kd.LOCALE_CHANGED="locale-changed";kd.LOCALE_UPDATED="locale-updated";function od(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}od.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 pd(a){return a.h/(1-Math.pow(a.g,a.i))};function qd(){this.h=new od(2);this.j=new od(5);this.g=0;this.i=128E3;this.l=16E3}qd.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)};qd.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)}};qd.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(pd(this.h),pd(this.j))};function rd(){this.g=new fb}q=rd.prototype;q.release=function(){this.Za();this.g=null};q.o=function(a,b,c,d){this.g&&(a=new sd(a,b,c,d),this.g.push(b,a))};q.ia=function(a,b,c,d){function e(g){f.Na(a,b,e);c(g)}var f=this;this.o(a,b,e,d)};q.Na=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.Na(),this.g.remove(b,e))}};
132
- q.Za=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.Na();this.g.g={}}};P("shaka.util.EventManager",rd);rd.prototype.removeAll=rd.prototype.Za;rd.prototype.unlisten=rd.prototype.Na;rd.prototype.listenOnce=rd.prototype.ia;rd.prototype.listen=rd.prototype.o;rd.prototype.release=rd.prototype.release;function sd(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=td(a,d);this.target.addEventListener(b,c,this.g)}
133
- sd.prototype.Na=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function td(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 ud(a)?b:b.capture||!1}
131
+ kd.prototype.resolve=kd.prototype.resolve;kd.prototype.resolveDictionary=kd.prototype.Dk;kd.prototype.insert=kd.prototype.Ma;kd.prototype.changeLocale=kd.prototype.Lh;kd.prototype.release=kd.prototype.release;var md=1;kd.ConflictResolution={USE_OLD:0,USE_NEW:md};kd.UNKNOWN_LOCALES="unknown-locales";kd.UNKNOWN_LOCALIZATION="unknown-localization";kd.MISSING_LOCALIZATIONS="missing-localizations";kd.LOCALE_CHANGED="locale-changed";kd.LOCALE_UPDATED="locale-updated";function od(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}od.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 pd(a){return a.h/(1-Math.pow(a.g,a.i))};function qd(){this.h=new od(2);this.j=new od(5);this.g=0;this.i=128E3;this.l=16E3}qd.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)};qd.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)}};qd.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(pd(this.h),pd(this.j))};function rd(){this.g=new fb}q=rd.prototype;q.release=function(){this.Za();this.g=null};q.o=function(a,b,c,d){this.g&&(a=new sd(a,b,c,d),this.g.push(b,a))};q.ia=function(a,b,c,d){function e(g){f.Pa(a,b,e);c(g)}var f=this;this.o(a,b,e,d)};q.Pa=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.Pa(),this.g.remove(b,e))}};
132
+ q.Za=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.Pa();this.g.g={}}};P("shaka.util.EventManager",rd);rd.prototype.removeAll=rd.prototype.Za;rd.prototype.unlisten=rd.prototype.Pa;rd.prototype.listenOnce=rd.prototype.ia;rd.prototype.listen=rd.prototype.o;rd.prototype.release=rd.prototype.release;function sd(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=td(a,d);this.target.addEventListener(b,c,this.g)}
133
+ sd.prototype.Pa=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function td(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 ud(a)?b:b.capture||!1}
134
134
  function ud(a){var b=vd;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}vd=b}return b||!1}var vd=void 0;function wd(a){if(xd.has(a))return xd.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);xd.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),xd.set(a,b),b):!1}function yd(){return!!window.SourceBuffer&&!!SourceBuffer.prototype&&!!SourceBuffer.prototype.changeType}var xd=new Map;function zd(a,b){this.g=a;this.h=b}zd.prototype.toString=function(){return"v"+this.g+"."+this.h};function Ad(a,b){var c=new zd(5,0),d=Bd,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function Cd(a,b,c,d){Va([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function Dd(a,b,c,d){Ua([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(" "))}var Bd=null;function Ed(){}Ed.prototype.extract=function(){};Ed.prototype.decode=function(){return[]};Ed.prototype.clear=function(){};Ed.prototype.getStreams=function(){return[]};function Fd(){}Fd.prototype.init=function(){};Fd.prototype.parse=function(){return[]};function Gd(){}Gd.prototype.init=function(){};Gd.prototype.i=function(){};Gd.prototype.g=function(){};Gd.prototype.j=function(){};P("shaka.media.IClosedCaptionParser",Gd);function Hd(a){this.l=new Fd;if(a=Id[a.toLowerCase()])this.l=a();this.h=new Ed;if(a=Jd)this.h=a()}Hd.prototype.init=function(a,b){void 0!==b&&b||(this.g(),this.l.init(a))};Hd.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=Hb(b.packet);0<c.length&&this.h.extract(c,b.pts)}return this.h.decode()};
135
135
  Hd.prototype.g=function(){this.h.clear()};Hd.prototype.j=function(){return this.h.getStreams()};P("shaka.media.ClosedCaptionParser",Hd);Hd.findDecoder=function(){return Jd};Hd.unregisterDecoder=function(){Jd=null};Hd.registerDecoder=function(a){Jd=a};Hd.findParser=function(a){return Id[a]};Hd.unregisterParser=function(a){delete Id[a]};Hd.registerParser=function(a,b){Id[a]=b};var Id={},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=Nd}P("shaka.text.CueRegion",Kd);var Ld=1;Kd.units={PX:0,PERCENTAGE:Ld,LINES:2};var Nd="";Kd.scrollMode={NONE:Nd,UP:"up"};function Od(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function Pd(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function Qd(a,b,c){c||(c=Od);if(a.length!=b.length)return!1;b=b.slice();var d={};a=t(a);for(var e=a.next();!e.done;d={Of:d.Of},e=a.next()){d.Of=e.value;e=b.findIndex(function(f){return function(g){return c(f.Of,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
136
136
  function Rd(a,b,c){c||(c=Od);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 Sd(a,b,c){this.startTime=a;this.endTime=b;this.payload=c;this.region=new Kd;this.position=null;this.positionAlign=Td;this.size=0;this.textAlign=Ud;this.direction=Vd;this.writingMode=Wd;this.lineInterpretation=Xd;this.line=null;this.lineHeight="";this.lineAlign=Yd;this.displayAlign=Zd;this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=$d;this.fontStyle=ce;this.linePadding=this.letterSpacing=this.fontFamily="";this.opacity=1;this.textCombineUpright=
@@ -220,13 +220,13 @@ Sj:m};!v&&a.j&&a.j(z.headers,c,b);return C},function(z){r&&r.stop();u&&u.stop();
220
220
  function Ig(a,b,c,d){var e=sg(void 0),f={};a=t(a.h);for(var g=a.next();!g.done;f={Tf:f.Tf},g=a.next())f.Tf=g.value,e=e.Ta(function(h){return function(){var k=c.response;k.data&&(k.data=Ib(k.data));return h.Tf(b,k,d)}}(f));return e.Ta(function(){return c},function(h){var k=2;if(h instanceof T){if(7001==h.code)throw h;k=h.severity}throw new T(k,1,1007,h);})}function Kg(a){if(a){var b=a.segment;a=a.stream;if(b&&a&&a.fastSwitching&&b.oe)return!1}return!0}P("shaka.net.NetworkingEngine",yg);
221
221
  yg.prototype.request=yg.prototype.request;yg.prototype.destroy=yg.prototype.destroy;yg.makeRequest=Dg;yg.defaultRetryParameters=function(){return mg()};yg.prototype.clearAllResponseFilters=yg.prototype.Oh;yg.prototype.unregisterResponseFilter=yg.prototype.Vk;yg.prototype.registerResponseFilter=yg.prototype.wk;yg.prototype.clearAllRequestFilters=yg.prototype.Nh;yg.prototype.unregisterRequestFilter=yg.prototype.Uk;yg.prototype.registerRequestFilter=yg.prototype.vk;yg.unregisterScheme=function(a){delete Bg[a]};
222
222
  yg.registerScheme=zg;yg.prototype.setForceHTTPS=yg.prototype.qh;yg.prototype.setForceHTTP=yg.prototype.ph;function Eg(){this.g=0}yg.NumBytesRemainingClass=Eg;function Fg(a,b,c){pg.call(this,a,b);this.h=c}pa(Fg,pg);yg.PendingRequest=Fg;var Jg=1;yg.RequestType={MANIFEST:0,SEGMENT:Jg,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8};yg.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5,MPD_PATCH:6};var Ag=3;
223
- yg.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:Ag};var Bg={};function Lg(a){this.g=!1;this.h=new og;this.i=a}Lg.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 Mg(a,b){if(a.g){if(b instanceof T&&7003==b.code)throw b;throw new T(2,7,7003,b);}};function Ng(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 Og(a){var b={};a.forEach(function(c,d){b[d]=c});return b};function Pg(a,b){this.h=Mb(a);this.i=b==Qg;this.g=0}q=Pg.prototype;q.Ea=function(){return this.g<this.h.byteLength};q.Ja=function(){return this.g};q.getLength=function(){return this.h.byteLength};q.$=function(){try{var a=this.h.getUint8(this.g);this.g+=1;return a}catch(b){throw Rg();}};q.ya=function(){try{var a=this.h.getUint16(this.g,this.i);this.g+=2;return a}catch(b){throw Rg();}};q.V=function(){try{var a=this.h.getUint32(this.g,this.i);this.g+=4;return a}catch(b){throw Rg();}};
223
+ yg.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:Ag};var Bg={};function Lg(a){this.g=!1;this.h=new og;this.i=a}Lg.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 Mg(a,b){if(a.g){if(b instanceof T&&7003==b.code)throw b;throw new T(2,7,7003,b);}};function Ng(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 Og(a){var b={};a.forEach(function(c,d){b[d]=c});return b};function Pg(a,b){this.h=Mb(a);this.i=b==Qg;this.g=0}q=Pg.prototype;q.Ea=function(){return this.g<this.h.byteLength};q.La=function(){return this.g};q.getLength=function(){return this.h.byteLength};q.$=function(){try{var a=this.h.getUint8(this.g);this.g+=1;return a}catch(b){throw Rg();}};q.za=function(){try{var a=this.h.getUint16(this.g,this.i);this.g+=2;return a}catch(b){throw Rg();}};q.V=function(){try{var a=this.h.getUint32(this.g,this.i);this.g+=4;return a}catch(b){throw Rg();}};
224
224
  q.ri=function(){try{var a=this.h.getInt32(this.g,this.i);this.g+=4;return a}catch(b){throw Rg();}};q.td=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 Rg();}if(2097151<b)throw new T(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};q.Rb=function(a){if(this.g+a>this.h.byteLength)throw Rg();var b=Hb(this.h,this.g,a);this.g+=a;return b};
225
225
  q.skip=function(a){if(this.g+a>this.h.byteLength)throw Rg();this.g+=a};q.Ek=function(a){if(this.g<a)throw Rg();this.g-=a};q.seek=function(a){if(0>a||a>this.h.byteLength)throw Rg();this.g=a};q.Qc=function(){for(var a=this.g;this.Ea()&&0!=this.h.getUint8(this.g);)this.g+=1;a=Hb(this.h,a,this.g-a);this.g+=1;return zc(a)};function Rg(){return new T(2,3,3E3)}P("shaka.util.DataViewReader",Pg);Pg.prototype.readTerminatedString=Pg.prototype.Qc;Pg.prototype.seek=Pg.prototype.seek;Pg.prototype.rewind=Pg.prototype.Ek;
226
- Pg.prototype.skip=Pg.prototype.skip;Pg.prototype.readBytes=Pg.prototype.Rb;Pg.prototype.readUint64=Pg.prototype.td;Pg.prototype.readInt32=Pg.prototype.ri;Pg.prototype.readUint32=Pg.prototype.V;Pg.prototype.readUint16=Pg.prototype.ya;Pg.prototype.readUint8=Pg.prototype.$;Pg.prototype.getLength=Pg.prototype.getLength;Pg.prototype.getPosition=Pg.prototype.Ja;Pg.prototype.hasMoreData=Pg.prototype.Ea;var Qg=1;Pg.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Qg};function Sg(){this.i=[];this.h=[];this.g=!1}q=Sg.prototype;q.box=function(a,b){a=Tg(a);this.i[a]=Ug;this.h[a]=b;return this};q.Y=function(a,b){a=Tg(a);this.i[a]=Vg;this.h[a]=b;return this};q.stop=function(){this.g=!0};q.parse=function(a,b,c){a=new Pg(a,0);for(this.g=!1;a.Ea()&&!this.g;)this.rd(0,a,b,c)};
227
- q.rd=function(a,b,c,d){var e=b.Ja();if(d&&e+8>b.getLength())this.g=!0;else{var f=b.V(),g=b.V(),h=Wg(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.td();k=!0}var l=this.h[g];if(l){var m=null,n=null;if(this.i[g]==Vg){if(d&&b.Ja()+4>b.getLength()){this.g=!0;return}n=b.V();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.Rb(d):new Uint8Array(0),b=new Pg(b,0),l({name:h,parser:this,
228
- 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 Xg(a){for(var b=Yg(a);a.reader.Ea()&&!a.parser.g;)a.parser.rd(a.start+b,a.reader,a.partialOkay)}function Zg(a){for(var b=Yg(a),c=a.reader.V(),d=0;d<c&&(a.parser.rd(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function $g(a){var b=Yg(a);for(a.reader.skip(78);a.reader.Ea()&&!a.parser.g;)a.parser.rd(a.start+b,a.reader,a.partialOkay)}
229
- function ah(a){var b=Yg(a);a.reader.skip(8);var c=a.reader.ya();a.reader.skip(6);2==c?a.reader.skip(48):a.reader.skip(12);for(1==c&&a.reader.skip(16);a.reader.Ea()&&!a.parser.g;)a.parser.rd(a.start+b,a.reader,a.partialOkay)}function bh(a){return function(b){a(b.reader.Rb(b.reader.getLength()-b.reader.Ja()))}}function Tg(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 Wg(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}
226
+ Pg.prototype.skip=Pg.prototype.skip;Pg.prototype.readBytes=Pg.prototype.Rb;Pg.prototype.readUint64=Pg.prototype.td;Pg.prototype.readInt32=Pg.prototype.ri;Pg.prototype.readUint32=Pg.prototype.V;Pg.prototype.readUint16=Pg.prototype.za;Pg.prototype.readUint8=Pg.prototype.$;Pg.prototype.getLength=Pg.prototype.getLength;Pg.prototype.getPosition=Pg.prototype.La;Pg.prototype.hasMoreData=Pg.prototype.Ea;var Qg=1;Pg.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Qg};function Sg(){this.i=[];this.h=[];this.g=!1}q=Sg.prototype;q.box=function(a,b){a=Tg(a);this.i[a]=Ug;this.h[a]=b;return this};q.Y=function(a,b){a=Tg(a);this.i[a]=Vg;this.h[a]=b;return this};q.stop=function(){this.g=!0};q.parse=function(a,b,c){a=new Pg(a,0);for(this.g=!1;a.Ea()&&!this.g;)this.rd(0,a,b,c)};
227
+ q.rd=function(a,b,c,d){var e=b.La();if(d&&e+8>b.getLength())this.g=!0;else{var f=b.V(),g=b.V(),h=Wg(g),k=!1;switch(f){case 0:f=b.getLength()-e;break;case 1:if(d&&b.La()+8>b.getLength()){this.g=!0;return}f=b.td();k=!0}var l=this.h[g];if(l){var m=null,n=null;if(this.i[g]==Vg){if(d&&b.La()+4>b.getLength()){this.g=!0;return}n=b.V();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.La(),b=0<d?b.Rb(d):new Uint8Array(0),b=new Pg(b,0),l({name:h,parser:this,
228
+ partialOkay:c||!1,version:m,flags:n,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.La(),b.getLength()-b.La()))}};function Xg(a){for(var b=Yg(a);a.reader.Ea()&&!a.parser.g;)a.parser.rd(a.start+b,a.reader,a.partialOkay)}function Zg(a){for(var b=Yg(a),c=a.reader.V(),d=0;d<c&&(a.parser.rd(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function $g(a){var b=Yg(a);for(a.reader.skip(78);a.reader.Ea()&&!a.parser.g;)a.parser.rd(a.start+b,a.reader,a.partialOkay)}
229
+ function ah(a){var b=Yg(a);a.reader.skip(8);var c=a.reader.za();a.reader.skip(6);2==c?a.reader.skip(48):a.reader.skip(12);for(1==c&&a.reader.skip(16);a.reader.Ea()&&!a.parser.g;)a.parser.rd(a.start+b,a.reader,a.partialOkay)}function bh(a){return function(b){a(b.reader.Rb(b.reader.getLength()-b.reader.La()))}}function Tg(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 Wg(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}
230
230
  function Yg(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}P("shaka.util.Mp4Parser",Sg);Sg.headerSize=Yg;Sg.typeToString=Wg;Sg.allData=bh;Sg.audioSampleEntry=ah;Sg.visualSampleEntry=$g;Sg.sampleDescription=Zg;Sg.children=Xg;Sg.prototype.parseNext=Sg.prototype.rd;Sg.prototype.parse=Sg.prototype.parse;Sg.prototype.stop=Sg.prototype.stop;Sg.prototype.fullBox=Sg.prototype.Y;Sg.prototype.box=Sg.prototype.box;var Ug=0,Vg=1;function ch(a){var b=this;this.g=[];this.h=[];this.data=[];(new Sg).box("moov",Xg).box("moof",Xg).Y("pssh",function(c){if(!(1<c.version)){var d=Hb(c.reader.h,-12,c.size);b.data.push(d);b.g.push(Mc(c.reader.Rb(16)));if(0<c.version){d=c.reader.V();for(var e=0;e<d;e++){var f=Mc(c.reader.Rb(16));b.h.push(f)}}}}).parse(a)}
231
231
  function dh(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=Mb(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=Lc(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};/*
232
232
  @license
@@ -291,8 +291,8 @@ L,"")),w.push(n(D,null,"",L));return G(H,Promise.all(w),2)}return H.return(Og(k)
291
291
  function Ph(a){var b;return O(function(c){b=Array.from(a.i.entries());a.i.clear();return G(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.ka||a.A.has(e.sessionId)||"persistent-license"!==f.type||a.h.persistentSessionOnlinePlayback?G(g,ti(e),5):G(g,e.remove(),5);if(2!=g.g)return va(g,0);wa(g);I(g)})})),0)})}function Xh(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}
292
292
  function Nh(a){a.i.forEach(function(b,c){var d=b.Zg,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.G.onExpirationUpdated(c.sessionId,e),b.Zg=e)})}function hi(a){a=a.i.values();return ib(a,function(b){return b.loaded})}function gi(a){for(var b=t(a.g&&a.g.keyIds||new Set([])),c=b.next();!c.done;c=b.next())if("usable"!==a.W.get(c.value))return!1;return!0}
293
293
  function Wh(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)}
294
- function mi(a,b,c,d,e,f,g,h){var k=[],l={};a=t(a);for(var m=a.next();!m.done;l={Ca:l.Ca},m=a.next()){l.Ca=m.value;b.includes(l.Ca.encryptionScheme)||b.push(l.Ca.encryptionScheme);"org.w3.clearkey"==l.Ca.keySystem&&l.Ca.licenseServerUri.startsWith("data:application/json;base64,")?k.includes(l.Ca.licenseServerUri)||k.push(l.Ca.licenseServerUri):c.includes(l.Ca.licenseServerUri)||c.push(l.Ca.licenseServerUri);e.includes(l.Ca.serverCertificateUri)||e.push(l.Ca.serverCertificateUri);l.Ca.serverCertificate&&
295
- (d.some(function(r){return function(u){return Fb(u,r.Ca.serverCertificate)}}(l))||d.push(l.Ca.serverCertificate));if(l.Ca.initData){m={};for(var n=t(l.Ca.initData),p=n.next();!p.done;m={De:m.De},p=n.next())m.De=p.value,f.some(function(r){return function(u){var w=r.De;return u.keyId&&u.keyId==w.keyId?!0:u.initDataType==w.initDataType&&Fb(u.initData,w.initData)}}(m))||f.push(m.De)}if(l.Ca.keyIds)for(m=t(l.Ca.keyIds),n=m.next();!n.done;n=m.next())g.add(n.value);if(l.Ca.keySystemUris&&h)for(m=t(l.Ca.keySystemUris),
294
+ function mi(a,b,c,d,e,f,g,h){var k=[],l={};a=t(a);for(var m=a.next();!m.done;l={Da:l.Da},m=a.next()){l.Da=m.value;b.includes(l.Da.encryptionScheme)||b.push(l.Da.encryptionScheme);"org.w3.clearkey"==l.Da.keySystem&&l.Da.licenseServerUri.startsWith("data:application/json;base64,")?k.includes(l.Da.licenseServerUri)||k.push(l.Da.licenseServerUri):c.includes(l.Da.licenseServerUri)||c.push(l.Da.licenseServerUri);e.includes(l.Da.serverCertificateUri)||e.push(l.Da.serverCertificateUri);l.Da.serverCertificate&&
295
+ (d.some(function(r){return function(u){return Fb(u,r.Da.serverCertificate)}}(l))||d.push(l.Da.serverCertificate));if(l.Da.initData){m={};for(var n=t(l.Da.initData),p=n.next();!p.done;m={De:m.De},p=n.next())m.De=p.value,f.some(function(r){return function(u){var w=r.De;return u.keyId&&u.keyId==w.keyId?!0:u.initDataType==w.initDataType&&Fb(u.initData,w.initData)}}(m))||f.push(m.De)}if(l.Da.keyIds)for(m=t(l.Da.keyIds),n=m.next();!n.done;n=m.next())g.add(n.value);if(l.Da.keySystemUris&&h)for(m=t(l.Da.keySystemUris),
296
296
  n=m.next();!n.done;n=m.next())h.add(n.value)}if(1==k.length)c.push(k[0]);else if(0<k.length){b=[];k=t(k);for(d=k.next();!d.done;d=k.next())d=window.atob(d.value.split("data:application/json;base64,").pop()),d=JSON.parse(d),b.push.apply(b,x(d.keys));k=JSON.stringify({keys:b});c.push("data:application/json;base64,"+window.btoa(k))}}
297
297
  function Yh(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=
298
298
  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 ui=1,pi=5,ri=.5;/*
@@ -308,10 +308,10 @@ missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new T(2,4,4012,a)
308
308
  function(m){k.push({box:m,Bb:1701733238})}).Y("avc1",function(m){k.push({box:m,Bb:1701733238})}).Y("avc3",function(m){k.push({box:m,Bb:1701733238})}).Y("ac-3",function(m){k.push({box:m,Bb:1701733217})}).Y("ec-3",function(m){k.push({box:m,Bb:1701733217})}).Y("ac-4",function(m){k.push({box:m,Bb:1701733217})}).Y("mp4a",function(m){k.push({box:m,Bb:1701733217})}).parse(a);if(f)return a;if(0==k.length||!g)throw eb(Mc(a)),new T(2,3,3019,b);k.reverse();b=t(k);for(var l=b.next();!l.done;l=b.next())l=l.value,
309
309
  e=Fi(e,g,l.box,h,l.Bb);return $b()&&pc()?(b=new Uint8Array(a.byteLength+e.byteLength),b.set(e),b.set(a,e.byteLength),b):e}
310
310
  function Fi(a,b,c,d,e){var f=Gi.value(),g=a.subarray(c.start,c.start+c.size),h=Mb(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=Mb(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);Hi(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=ac()||$b()?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,Hi(e,d.start,d.size+k.byteLength);k=Mb(e,b.start);b=Yg(b);
311
- a=k.getUint32(b);k.setUint32(b,a+1);return e}function Hi(a,b,c){a=Mb(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 Gi=new Ob(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 Ii(a,b,c,d,e,f,g){this.R=a;this.$a=b;this.Ha=c;this.nd=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}Ii.prototype.Ib=function(){return this.$a};Ii.prototype.Fb=function(){return this.Ha};Ii.prototype.Zd=function(){return this.g};function Ji(a,b){return a===b?!0:a&&b?a.Ib()==b.Ib()&&a.Fb()==b.Fb()&&Rd(a.R().sort(),b.R().sort())&&Fb(a.Zd(),b.Zd()):a==b}P("shaka.media.InitSegmentReference",Ii);
311
+ a=k.getUint32(b);k.setUint32(b,a+1);return e}function Hi(a,b,c){a=Mb(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 Gi=new Ob(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 Ii(a,b,c,d,e,f,g){this.R=a;this.$a=b;this.Ja=c;this.nd=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}Ii.prototype.Ib=function(){return this.$a};Ii.prototype.Fb=function(){return this.Ja};Ii.prototype.Zd=function(){return this.g};function Ji(a,b){return a===b?!0:a&&b?a.Ib()==b.Ib()&&a.Fb()==b.Fb()&&Rd(a.R().sort(),b.R().sort())&&Fb(a.Zd(),b.Zd()):a==b}P("shaka.media.InitSegmentReference",Ii);
312
312
  Ii.prototype.getEndByte=Ii.prototype.Fb;Ii.prototype.getStartByte=Ii.prototype.Ib;
313
- function Ki(a,b,c,d,e,f,g,h,k,l,m,n,p,r,u,w){l=void 0===l?[]:l;r=void 0===r?Li:r;this.startTime=a;this.i=this.endTime=b;this.G=c;this.$a=d;this.Ha=e;this.ma=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.s=void 0===w?!1:w;this.kf=this.oe=!1;a=t(this.g);for(b=a.next();!b.done;b=
314
- a.next())b.value.li();this.s&&this.g.length&&this.g[this.g.length-1].ki();this.C=this.mimeType=this.codecs=null}q=Ki.prototype;q.R=function(){return this.G()};q.getStartTime=function(){return this.startTime};q.rj=function(){return this.endTime};q.Ib=function(){return this.$a};q.Fb=function(){return this.Ha};q.Lj=function(){return this.tilesLayout};q.Kj=function(){return this.A};q.tc=function(){return this.status};q.ik=function(){this.status=Mi};q.Wg=function(){this.preload=!0};q.$j=function(){return this.preload};
313
+ function Ki(a,b,c,d,e,f,g,h,k,l,m,n,p,r,u,w){l=void 0===l?[]:l;r=void 0===r?Li:r;this.startTime=a;this.i=this.endTime=b;this.G=c;this.$a=d;this.Ja=e;this.ma=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.s=void 0===w?!1:w;this.kf=this.oe=!1;a=t(this.g);for(b=a.next();!b.done;b=
314
+ a.next())b.value.li();this.s&&this.g.length&&this.g[this.g.length-1].ki();this.C=this.mimeType=this.codecs=null}q=Ki.prototype;q.R=function(){return this.G()};q.getStartTime=function(){return this.startTime};q.rj=function(){return this.endTime};q.Ib=function(){return this.$a};q.Fb=function(){return this.Ja};q.Lj=function(){return this.tilesLayout};q.Kj=function(){return this.A};q.tc=function(){return this.status};q.ik=function(){this.status=Mi};q.Wg=function(){this.preload=!0};q.$j=function(){return this.preload};
315
315
  q.nf=function(){this.l=!1};q.Xj=function(){return this.l};q.li=function(){this.oe=!0};q.Zj=function(){return this.oe};q.ki=function(){this.kf=!0};q.Yj=function(){return this.kf};q.ji=function(){this.m=!0};q.Tj=function(){return this.m};q.Fi=function(a){this.u=a};q.Jj=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};
316
316
  q.wh=function(a){null==this.h?Ua("Sync attempted without sync time!"):(a=this.h-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};q.Qk=function(a){this.C=a};q.Zd=function(){return this.C};function Ni(a,b){a.ma=b;a=t(a.g);for(var c=a.next();!c.done;c=a.next())Ni(c.value,b)}P("shaka.media.SegmentReference",Ki);Ki.prototype.getSegmentData=Ki.prototype.Zd;Ki.prototype.setSegmentData=Ki.prototype.Qk;Ki.prototype.syncAgainst=Ki.prototype.wh;Ki.prototype.offset=Ki.prototype.offset;
317
317
  Ki.prototype.getThumbnailSprite=Ki.prototype.Jj;Ki.prototype.setThumbnailSprite=Ki.prototype.Fi;Ki.prototype.hasByterangeOptimization=Ki.prototype.Tj;Ki.prototype.markAsByterangeOptimization=Ki.prototype.ji;Ki.prototype.isLastPartial=Ki.prototype.Yj;Ki.prototype.markAsLastPartial=Ki.prototype.ki;Ki.prototype.isPartial=Ki.prototype.Zj;Ki.prototype.markAsPartial=Ki.prototype.li;Ki.prototype.isIndependent=Ki.prototype.Xj;Ki.prototype.markAsNonIndependent=Ki.prototype.nf;Ki.prototype.isPreload=Ki.prototype.$j;
@@ -327,9 +327,9 @@ function Yi(a){var b={key:a.type,description:"",data:"",mimeType:null,pictureTyp
327
327
  d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=zc(Hb(a.data,1,d));a=zc(Hb(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b}if("WXXX"===a.type){if(2>a.size||3!==a.data[0])return null;d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=zc(Hb(a.data,1,d));a=zc(Hb(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b}if("PRIV"===a.type){if(2>a.size)return null;c=a.data.indexOf(0);if(-1===c)return null;c=zc(Hb(a.data,0,c));b.description=c;"com.apple.streaming.transportStreamTimestamp"==
328
328
  c?(c=a.data.subarray(c.length+1),a=c[3]&1,c=(c[4]<<23)+(c[5]<<15)+(c[6]<<7)+c[7],c/=45,a&&(c+=4.772185884E7),b.data=c):(a=Ib(a.data.subarray(c.length+1)),b.data=a);return b}if("T"===a.type[0]){if(2>a.size||3!==a.data[0])return null;a=zc(a.data.subarray(1)).replace(/\0*$/,"");b.data=a;return b}return"W"===a.type[0]?(a=zc(a.data).replace(/\0*$/,""),b.data=a,b):a.data?(b.data=Ib(a.data),b):null}
329
329
  function Zi(a){for(var b=0,c=[];Vi(a,b);){var d=Xi(a,b+6);a[b+5]>>6&1&&(b+=10);b+=10;for(d=b+d;b+10<d;){var e=a.subarray(b),f=Xi(e,4);e={type:String.fromCharCode(e[0],e[1],e[2],e[3]),size:f,data:e.subarray(10,10+f)};(f=Yi(e))&&c.push(f);b+=e.size+10}Wi(a,b)&&(b+=10)}return c}function $i(a,b){for(var c=b=void 0===b?0:b,d=0;Vi(a,b);)a[b+5]>>6&1&&(d+=10),d+=10,d+=Xi(a,b+6),Wi(a,b+10)&&(d+=10),b+=d;return 0<d?a.subarray(c,c+d):new Uint8Array([])}P("shaka.util.Id3Utils",Ui);Ui.getID3Data=$i;
330
- Ui.getID3Frames=Zi;function aj(a,b){var c=null,d=null,e=null,f=a.V();b&1&&(e=a.td());b&2&&a.skip(4);b&8&&(c=a.V());b&16&&(d=a.V());return{trackId:f,Vd:c,Ue:d,dm:e}}function bj(a,b){return 1==b?(b=a.V(),a=a.V(),{baseMediaDecodeTime:b*Math.pow(2,32)+a}):{baseMediaDecodeTime:a.V()}}function cj(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));b=a.V();a.skip(4);a=a.ya();return{timescale:b,language:String.fromCharCode((a>>10)+96)+String.fromCharCode(((a&960)>>5)+96)+String.fromCharCode((a&31)+96)}}
331
- function dj(a,b,c){var d=a.V(),e=[],f=null;c&1&&(f=a.V());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={hh:null,sampleSize:null,zf:null};c&256&&(h.hh=a.V());c&512&&(h.sampleSize=a.V());c&1024&&a.skip(4);c&2048&&(h.zf=0==b?a.V():a.ri());e.push(h)}return{hm:d,wi:e,ej:f}}function ej(a){a.skip(6);a.skip(2);a.skip(8);var b=a.ya();a.skip(2);a.skip(2);a.skip(2);a=a.ya()+a.ya()/65536;return{channelCount:b,sampleRate:a}}function fj(a){a=a.V();return{gb:Wg(a)}}
332
- function gj(a){var b=null,c=null,d=a.Rb(4);var e=String.fromCharCode(d[0]);e+=String.fromCharCode(d[1]);e+=String.fromCharCode(d[2]);e+=String.fromCharCode(d[3]);if("nclx"===e){switch(a.ya()){case 1:case 5:case 6:case 7:b="srgb";break;case 9:b="rec2020";break;case 11:case 12:b="p3"}d=a.ya();a.ya();switch(d){case 1:case 6:case 13:case 14:case 15:c="SDR";break;case 16:c="PQ";break;case 18:c="HLG"}}return{colorGamut:b,ze:c}}
330
+ Ui.getID3Frames=Zi;function aj(a,b){var c=null,d=null,e=null,f=a.V();b&1&&(e=a.td());b&2&&a.skip(4);b&8&&(c=a.V());b&16&&(d=a.V());return{trackId:f,Vd:c,Ue:d,dm:e}}function bj(a,b){return 1==b?(b=a.V(),a=a.V(),{baseMediaDecodeTime:b*Math.pow(2,32)+a}):{baseMediaDecodeTime:a.V()}}function cj(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));b=a.V();a.skip(4);a=a.za();return{timescale:b,language:String.fromCharCode((a>>10)+96)+String.fromCharCode(((a&960)>>5)+96)+String.fromCharCode((a&31)+96)}}
331
+ function dj(a,b,c){var d=a.V(),e=[],f=null;c&1&&(f=a.V());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={hh:null,sampleSize:null,zf:null};c&256&&(h.hh=a.V());c&512&&(h.sampleSize=a.V());c&1024&&a.skip(4);c&2048&&(h.zf=0==b?a.V():a.ri());e.push(h)}return{hm:d,wi:e,ej:f}}function ej(a){a.skip(6);a.skip(2);a.skip(8);var b=a.za();a.skip(2);a.skip(2);a.skip(2);a=a.za()+a.za()/65536;return{channelCount:b,sampleRate:a}}function fj(a){a=a.V();return{gb:Wg(a)}}
332
+ function gj(a){var b=null,c=null,d=a.Rb(4);var e=String.fromCharCode(d[0]);e+=String.fromCharCode(d[1]);e+=String.fromCharCode(d[2]);e+=String.fromCharCode(d[3]);if("nclx"===e){switch(a.za()){case 1:case 5:case 6:case 7:b="srgb";break;case 9:b="rec2020";break;case 11:case 12:b="p3"}d=a.za();a.za();switch(d){case 1:case 6:case 13:case 14:case 15:c="SDR";break;case 16:c="PQ";break;case 18:c="HLG"}}return{colorGamut:b,ze:c}}
333
333
  function hj(a,b){b=void 0===b?!1:b;a=a.toString(16).toUpperCase();return b?a:("0"+a).slice(-2)}function ij(a){return(10>a?"0":"")+a};/*
334
334
 
335
335
  Copyright Brightcove, Inc.
@@ -369,38 +369,38 @@ function Bj(a){var b={height:null,width:null,gb:null};a=a.bf();if(!a.length)retu
369
369
  a.toString(16).toUpperCase());b.gb=e;return b}function xj(a,b){var c=1;for(a>b&&(c=-1);4294967296<Math.abs(b-a);)a+=8589934592*c;return a}function Ej(a){return 0>vj(a)?!1:!0}function vj(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",uj);uj.syncOffset=vj;uj.probe=Ej;uj.prototype.getVideoInfo=uj.prototype.Ng;uj.prototype.getVideoResolution=uj.prototype.Qj;uj.prototype.getVideoNalus=uj.prototype.bf;
370
370
  uj.prototype.getCodecs=uj.prototype.Wd;uj.prototype.getStartTime=uj.prototype.getStartTime;uj.prototype.getVideoData=uj.prototype.jd;uj.prototype.getAudioData=uj.prototype.rc;uj.prototype.getMetadata=uj.prototype.getMetadata;uj.prototype.parseNalus=uj.prototype.bh;uj.prototype.parseAvcNalus=uj.prototype.pk;uj.prototype.parse=uj.prototype.parse;uj.prototype.clearData=uj.prototype.clearData;uj.Timescale=9E4;var Dj=[100,110,122,244,44,83,86,118,128,138,139,134];function Fj(a,b,c){this.g=null;this.s=-1;this.l=a;this.i=b;this.m=c;this.j=!1;a:{"undefined"===typeof libDPIModule&&Va("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,Ad("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{Va("Could not find LCEVC Library on this page");a=!1;break a}"undefined"===typeof this.h.SupportObject?(Va("Could not find LCEVC Library on this page"),
371
371
  a=!1):(this.h.SupportObject.SupportStatus||Va(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 Gj(a){a.g&&a.i.classList.add("shaka-hidden")}
372
- Fj.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function Hj(a,b,c){var d=Ij,e=Jj;switch(b.mimeType){case "video/webm":d=Kj;break;case "video/mp4":d=Lj}switch(c){case "DASH":e=Mj;break;case "HLS":e=Nj}a.g&&(a.s=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(d),a.j||a.g.setStreamingFormat(e))}P("shaka.lcevc.Dec",Fj);Fj.prototype.release=Fj.prototype.release;var Ij=0,Kj=1,Lj=2,Nj=0,Mj=1,Jj=-1;function Oj(a,b,c,d){var e=this;this.i=a;this.aa=c;this.A=null;this.H=b;this.h={};this.I={};this.Da={};this.g=null;this.ka=!1;this.W=d||null;this.j={};this.u=new rd;this.s={};this.J=null;this.M=new og;this.O="";this.ra=!1;this.l=Pj(this,this.M);this.G=!1;this.K=new Lg(function(){return Qj(e)});this.C=!1;this.Z="UNKNOWN";this.za=this.Ga=!1;this.sa=new og;this.m=!1;this.Fa=!0;this.P=this.S=this.L=this.ea=null;this.qa=new og}
373
- function Pj(a,b){if(window.ManagedMediaSource){a.i.disableRemotePlayback=!0;var c=new ManagedMediaSource;a.u.o(c,"startstreaming",function(){a.Fa=!0});a.u.o(c,"endstreaming",function(){a.Fa=!1});a.u.ia(c,"sourceopen",function(){URL.revokeObjectURL(a.O);b.resolve()});a.u.ia(a.i,"playing",function(){a.ra=!0});a.O=Rj(c);a.i.src=a.O;return c}c=new MediaSource;a.u.ia(c,"sourceopen",function(){URL.revokeObjectURL(a.O);b.resolve()});a.u.ia(a.i,"playing",function(){a.ra=!0});a.O=Rj(c);a.i.src=a.O;return c}
374
- function Sj(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?G(r,a.createSegmentIndex(),2):r.B(2);if(!a.segmentIndex)return r.return(!1);if(0==a.segmentIndex.getNumReferences())return r.return(!0);c=Wc;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.Ia){if(m=we(h,k),!Pe(m))return r.return(!1)}else if(b==c.ua?k=of(k):b==c.ha&&(k=pf(k,h)),n=
372
+ Fj.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function Hj(a,b,c){var d=Ij,e=Jj;switch(b.mimeType){case "video/webm":d=Kj;break;case "video/mp4":d=Lj}switch(c){case "DASH":e=Mj;break;case "HLS":e=Nj}a.g&&(a.s=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(d),a.j||a.g.setStreamingFormat(e))}P("shaka.lcevc.Dec",Fj);Fj.prototype.release=Fj.prototype.release;var Ij=0,Kj=1,Lj=2,Nj=0,Mj=1,Jj=-1;function Oj(a,b,c,d){var e=this;this.i=a;this.aa=c;this.A=null;this.H=b;this.h={};this.I={};this.Fa={};this.g=null;this.ka=!1;this.W=d||null;this.j={};this.u=new rd;this.s={};this.J=null;this.M=new og;this.O="";this.sa=!1;this.l=Pj(this,this.M);this.G=!1;this.K=new Lg(function(){return Qj(e)});this.C=!1;this.Z="UNKNOWN";this.Ha=this.Ia=!1;this.Aa=new og;this.m=!1;this.xa=!0;this.ra=this.P=this.Ga=this.S=this.L=this.ea=null;this.qa=new og}
373
+ function Pj(a,b){if(window.ManagedMediaSource){a.i.disableRemotePlayback=!0;var c=new ManagedMediaSource;a.u.o(c,"startstreaming",function(){a.xa=!0});a.u.o(c,"endstreaming",function(){a.xa=!1});a.u.ia(c,"sourceopen",function(){URL.revokeObjectURL(a.O);b.resolve()});a.u.ia(a.i,"playing",function(){a.sa=!0});a.O=Rj(c);a.i.src=a.O;return c}c=new MediaSource;a.u.ia(c,"sourceopen",function(){URL.revokeObjectURL(a.O);b.resolve()});a.u.ia(a.i,"playing",function(){a.sa=!0});a.O=Rj(c);a.i.src=a.O;return c}
374
+ function Sj(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?G(r,a.createSegmentIndex(),2):r.B(2);if(!a.segmentIndex)return r.return(!1);if(0==a.segmentIndex.getNumReferences())return r.return(!0);c=Wc;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.Ka){if(m=we(h,k),!Pe(m))return r.return(!1)}else if(b==c.ua?k=of(k):b==c.ha&&(k=pf(k,h)),n=
375
375
  Ae(a,h,k),p=ye(h,k),!wd(n)&&!qe(p))return r.return(!1);return r.return(!0)})}q=Oj.prototype;q.destroy=function(){return this.K.destroy()};
376
376
  function Qj(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(Xe)),f=t(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new T(2,7,7003,void 0));a.g&&b.push(a.g.destroy());a.H&&b.push(a.H.destroy());for(k in a.s)b.push(a.s[k].destroy());return G(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.s={};a.J=null;
377
- a.j={};a.W=null;a.L=null;a.aa=null;I(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=Wc,G(m,e.M,2);case 2:e.C=b,e.Z=c,e.Ga=d,e.za=!e.C&&"HLS"==e.Z&&!e.Ga,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 G(m,Tj(e,k,l,l.codecs),6);case 6:e.m?(e.j[f.ha]=[],e.j[f.ua]=[]):e.j[k]=[],h=g.next(),m.B(3)}})};
378
- function Tj(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,w;return O(function(v){switch(v.g){case 1:return e=Wc,f=Na,g=Oa,G(v,Sj(c,b),2);case 2:g.call(f,v.h,"Type negotiation should happen before MediaSourceEngine.init!");h=we(c.mimeType,d);if(b==e.Ia){Uj(a,h,a.C,c.external);v.B(0);break}k=a.A.forceTransmux;if(!wd(h)||!a.C&&xe.includes(h))k=!0;l=ye(c.mimeType,d);if(!k){v.B(4);break}m=Sc(e.ha,(d||"").split(","));n=Sc(e.ua,(d||"").split(","));if(!m||!n){v.B(5);break}a.m=!0;return G(v,Tj(a,e.ha,c,m),6);case 6:return G(v,
379
- Tj(a,e.ua,c,n),7);case 7:return v.return();case 5:if(p=qe(l))r=p(),a.s[b]=r,h=r.convertCodecs(b,l);case 4:u=h+a.A.addExtraFeaturesToSourceBuffer(h);Mg(a.K);try{w=a.l.addSourceBuffer(u)}catch(A){throw new T(2,3,3015,A,"The mediaSource_ status was "+a.l.readyState+" expected 'open'",null);}a.C&&(w.mode=Vj);a.u.o(w,"error",function(){var A=a.j[b][0];A.p.reject(new T(2,3,3014,a.i.error?a.i.error.code:0,A.uri))});a.u.o(w,"updateend",function(){return Wj(a,b)});a.h[b]=w;a.I[b]=h;a.Da[b]=!!c.drmInfos.length;
377
+ a.j={};a.W=null;a.L=null;a.aa=null;I(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=Wc,G(m,e.M,2);case 2:e.C=b,e.Z=c,e.Ia=d,e.Ha=!e.C&&"HLS"==e.Z&&!e.Ia,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 G(m,Tj(e,k,l,l.codecs),6);case 6:e.m?(e.j[f.ha]=[],e.j[f.ua]=[]):e.j[k]=[],h=g.next(),m.B(3)}})};
378
+ function Tj(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,w;return O(function(v){switch(v.g){case 1:return e=Wc,f=Na,g=Oa,G(v,Sj(c,b),2);case 2:g.call(f,v.h,"Type negotiation should happen before MediaSourceEngine.init!");h=we(c.mimeType,d);if(b==e.Ka){Uj(a,h,a.C,c.external);v.B(0);break}k=a.A.forceTransmux;if(!wd(h)||!a.C&&xe.includes(h))k=!0;l=ye(c.mimeType,d);if(!k){v.B(4);break}m=Sc(e.ha,(d||"").split(","));n=Sc(e.ua,(d||"").split(","));if(!m||!n){v.B(5);break}a.m=!0;return G(v,Tj(a,e.ha,c,m),6);case 6:return G(v,
379
+ Tj(a,e.ua,c,n),7);case 7:return v.return();case 5:if(p=qe(l))r=p(),a.s[b]=r,h=r.convertCodecs(b,l);case 4:u=h+a.A.addExtraFeaturesToSourceBuffer(h);Mg(a.K);try{w=a.l.addSourceBuffer(u)}catch(A){throw new T(2,3,3015,A,"The mediaSource_ status was "+a.l.readyState+" expected 'open'",null);}a.C&&(w.mode=Vj);a.u.o(w,"error",function(){var A=a.j[b][0];A.p.reject(new T(2,3,3014,a.i.error?a.i.error.code:0,A.uri))});a.u.o(w,"updateend",function(){return Wj(a,b)});a.h[b]=w;a.I[b]=h;a.Fa[b]=!!c.drmInfos.length;
380
380
  I(v)}})}q.configure=function(a){this.A=a;this.g&&(this.g.A=a.modifyCueCallback)};
381
381
  function Uj(a,b,c,d){a.g||(a.g=new Oe(a.H),a.g&&(a.g.A=a.A.modifyCueCallback));var e=a.g;d=d||a.ka;a=a.Z;"application/cea-608"==b||"application/cea-708"==b?e.i=null:(e.i=(0,Qe[b])(),e.i.setSequenceMode?e.i.setSequenceMode(c):Ad("Text parsers w/ setSequenceMode",'Text parsers should have a "setSequenceMode" method!'),e.i.setManifestType?e.i.setManifestType(a):Ad("Text parsers w/ setManifestType",'Text parsers should have a "setManifestType" method!'),e.C=d)}
382
382
  function Xj(a){return a.G?!1:a.l?"ended"==a.l.readyState:!0}function Yj(a,b){a.G||!Object.keys(a.h).length?a=null:b==Uc?a=a.g.g:(a=Zj(a,b),a=!a||Oi(a)?null:1==a.length&&0>a.start(0)?0:a.length?a.start(0):null);return a}function ak(a,b){return a.G?null:b==Uc?a.g.h:Pi(Zj(a,b))}function bk(a,b,c){if(a.G)return 0;if(b==Uc)return a=a.g,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=Zj(a,b);return Ri(a,c)}
383
383
  q.Wb=function(){var a={total:this.G?[]:Si(this.i.buffered),audio:this.G?[]:Si(Zj(this,"audio")),video:this.G?[]:Si(Zj(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 Zj(a,b){try{return a.h[b].buffered}catch(c){return null}}
384
384
  function ck(a,b,c,d,e,f){var g=null,h=Hb(c);if(xe.includes(e))f=Zi(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.aa.onMetadata([{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.ma&&d.ma.timescale){var k=d.ma.timescale;if(!isNaN(k)){var l=0,m=!1;(new Sg).box("moof",Xg).box("traf",Xg).Y("tfdt",function(n){l=
385
385
  bj(n.reader,n.version).baseMediaDecodeTime/k;m=!0;n.parser.stop()}).parse(c,!0);m&&(g=l)}}else if(!e.includes("/mp4")&&!e.includes("/webm")&&Ej(h)&&(a.L?a.L.clearData():a.L=new uj,h=a.L.parse(h),b=h.getStartTime(b),null!=b&&(g=b),h=h.getMetadata(),h.length))a.aa.onMetadata(h,f,d?d.endTime:null);return g}
386
- function dk(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,w,v,A,z,C,y,B,D,F;return O(function(J){switch(J.g){case 1:m=Wc;if(b!=m.Ia){J.B(2);break}if(!a.C){J.B(3);break}return G(J,a.sa,4);case 4:n=J.h,a.g.u=n;case 3:return G(J,Re(a.g,c,d?d.startTime:null,d?d.endTime:null,d?d.R()[0]:null),5);case 5:return J.return();case 2:if(l||!a.m){J.B(6);break}return G(J,dk(a,m.ha,c,d,e,f,g,h,k,!0),7);case 7:return G(J,dk(a,m.ua,c,d,e,f,g,h,k,!0),8);case 8:return J.return();
387
- case 6:if(!a.h[b])return J.return();p=a.h[b].timestampOffset;r=a.I[b];a.s[b]&&(r=a.s[b].getOriginalMimeType());d&&(u=ck(a,b,c,d,r,p),null!=u&&(null==a.S&&b==m.ua&&(a.S=u,null!=a.P&&(w=a.S-a.P,a.qa.resolve(w))),null==a.P&&b==m.ha&&(a.P=u,null!=a.S&&(v=a.S-a.P,a.qa.resolve(v))),A=d.startTime-u,z=Math.abs(p-A),(.001<=z||g||h)&&(!k||0<A||!p)&&(p=A,a.za&&(ek(a,b,function(){return fk(a,b)},null),ek(a,b,function(){return gk(a,b,p)},null))),C=b==m.ua||!(m.ua in a.h),a.C&&C&&a.sa.resolve(p)));f&&b==m.ua&&
388
- (a.g||Uj(a,"application/cea-608",a.C,!1),a.J||(y=r.split(";",1)[0],a.J=new Hd(y)),d?(B=a.J.i(c),B.length&&Ve(a.g,B,d.startTime,d.endTime,p)):a.J.init(c,h));if(!a.s[b]){J.B(9);break}return G(J,a.s[b].transmux(c,e,d,a.l.duration,b),10);case 10:c=J.h;case 9:c=hk(a,c,d?d.startTime:null,b,d?d.R()[0]:null);if(!d||!a.C||b==m.Ia){J.B(11);break}if(!g&&!h){J.B(11);break}D=d.startTime;if("HLS"!=a.Z||a.m||b!=m.ha||!a.h[m.ua]){J.B(13);break}return G(J,a.qa,14);case 14:F=J.h,.1<Math.abs(F)&&(D-=F);case 13:ek(a,
389
- b,function(){return fk(a,b)},null),ek(a,b,function(){return gk(a,b,D)},null);case 11:return G(J,ek(a,b,function(){var L=c;if("video"==b&&a.W){var H=a.W;H.g&&H.g.appendBuffer(L,"video",H.s,-p)}a.h[b].appendBuffer(L)},d?d.R()[0]:null),15);case 15:I(J)}})}function ik(a,b){var c=ak(a,"video")||0;Te(a.g,b,c)}function qk(a){a.g&&Te(a.g,"",0)}
390
- q.remove=function(a,b,c){var d=this,e;return O(function(f){return 1==f.g?(e=Wc,a==e.Ia?G(f,d.g.remove(b,c),0):G(f,ek(d,a,function(){return rk(d,a,b,c)},null),4)):d.m?G(f,ek(d,e.ha,function(){return rk(d,e.ha,b,c)},null),0):f.B(0)})};function sk(a,b){var c;return O(function(d){return 1==d.g?(c=Wc,b==c.Ia?a.g?G(d,a.g.remove(0,Infinity),0):d.return():G(d,ek(a,b,function(){return rk(a,b,0,a.l.duration)},null),4)):a.m?G(d,ek(a,c.ha,function(){return rk(a,c.ha,0,a.l.duration)},null),0):d.B(0)})}
391
- q.flush=function(a){var b=this,c;return O(function(d){return 1==d.g?(c=Wc,a==c.Ia?d.return():G(d,ek(b,a,function(){b.i.currentTime-=.001;Wj(b,a)},null),2)):b.m?G(d,ek(b,c.ha,function(){var e=c.ha;b.i.currentTime-=.001;Wj(b,e)},null),0):d.B(0)})};
392
- function tk(a,b,c,d,e,f,g,h,k){var l,m,n;return O(function(p){if(1==p.g){l=Wc;if(b==l.Ia)return f||(a.g.u=c),Se(a.g,d,e),p.return();m=[];return G(p,uk(a,b,g,h,k),2)}n=p.h;n||(m.push(ek(a,b,function(){return fk(a,b)},null)),a.m&&m.push(ek(a,l.ha,function(){return fk(a,l.ha)},null)));f||(m.push(ek(a,b,function(){return gk(a,b,c)},null)),a.m&&m.push(ek(a,l.ha,function(){return gk(a,l.ha,c)},null)));m.push(ek(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=
386
+ function dk(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,w,v,A,z,C,y,B,D,F;return O(function(J){switch(J.g){case 1:m=Wc;if(b!=m.Ka){J.B(2);break}if(!a.C){J.B(3);break}return G(J,a.Aa,4);case 4:n=J.h,a.g.u=n;case 3:return G(J,Re(a.g,c,d?d.startTime:null,d?d.endTime:null,d?d.R()[0]:null),5);case 5:return J.return();case 2:if(l||!a.m){J.B(6);break}return G(J,dk(a,m.ha,c,d,e,f,g,h,k,!0),7);case 7:return G(J,dk(a,m.ua,c,d,e,f,g,h,k,!0),8);case 8:return J.return();
387
+ case 6:if(!a.h[b])return J.return();p=a.h[b].timestampOffset;r=a.I[b];a.s[b]&&(r=a.s[b].getOriginalMimeType());d&&(u=ck(a,b,c,d,r,p),null!=u&&(null==a.S&&b==m.ua&&(a.S=u,a.Ga=d.startTime,null!=a.P&&(w=0,a.Ga==a.ra&&(w=a.S-a.P),a.qa.resolve(w))),null==a.P&&b==m.ha&&(a.P=u,a.ra=d.startTime,null!=a.S&&(v=0,a.Ga==a.ra&&(v=a.S-a.P),a.qa.resolve(v))),A=d.startTime-u,z=Math.abs(p-A),(.001<=z||g||h)&&(!k||0<A||!p)&&(p=A,a.Ha&&(ek(a,b,function(){return fk(a,b)},null),ek(a,b,function(){return gk(a,b,p)},null))),
388
+ C=b==m.ua||!(m.ua in a.h),a.C&&C&&a.Aa.resolve(p)));f&&b==m.ua&&(a.g||Uj(a,"application/cea-608",a.C,!1),a.J||(y=r.split(";",1)[0],a.J=new Hd(y)),d?(B=a.J.i(c),B.length&&Ve(a.g,B,d.startTime,d.endTime,p)):a.J.init(c,h));if(!a.s[b]){J.B(9);break}return G(J,a.s[b].transmux(c,e,d,a.l.duration,b),10);case 10:c=J.h;case 9:c=hk(a,c,d?d.startTime:null,b,d?d.R()[0]:null);if(!d||!a.C||b==m.Ka){J.B(11);break}if(!g&&!h){J.B(11);break}D=d.startTime;if("HLS"!=a.Z||a.m||b!=m.ha||!a.h[m.ua]){J.B(13);break}return G(J,
389
+ a.qa,14);case 14:F=J.h,.1<Math.abs(F)&&(D-=F);case 13:ek(a,b,function(){return fk(a,b)},null),ek(a,b,function(){return gk(a,b,D)},null);case 11:return G(J,ek(a,b,function(){var L=c;if("video"==b&&a.W){var H=a.W;H.g&&H.g.appendBuffer(L,"video",H.s,-p)}a.h[b].appendBuffer(L)},d?d.R()[0]:null),15);case 15:I(J)}})}function ik(a,b){var c=ak(a,"video")||0;Te(a.g,b,c)}function qk(a){a.g&&Te(a.g,"",0)}
390
+ q.remove=function(a,b,c){var d=this,e;return O(function(f){return 1==f.g?(e=Wc,a==e.Ka?G(f,d.g.remove(b,c),0):G(f,ek(d,a,function(){return rk(d,a,b,c)},null),4)):d.m?G(f,ek(d,e.ha,function(){return rk(d,e.ha,b,c)},null),0):f.B(0)})};function sk(a,b){var c;return O(function(d){return 1==d.g?(c=Wc,b==c.Ka?a.g?G(d,a.g.remove(0,Infinity),0):d.return():G(d,ek(a,b,function(){return rk(a,b,0,a.l.duration)},null),4)):a.m?G(d,ek(a,c.ha,function(){return rk(a,c.ha,0,a.l.duration)},null),0):d.B(0)})}
391
+ q.flush=function(a){var b=this,c;return O(function(d){return 1==d.g?(c=Wc,a==c.Ka?d.return():G(d,ek(b,a,function(){b.i.currentTime-=.001;Wj(b,a)},null),2)):b.m?G(d,ek(b,c.ha,function(){var e=c.ha;b.i.currentTime-=.001;Wj(b,e)},null),0):d.B(0)})};
392
+ function tk(a,b,c,d,e,f,g,h,k){var l,m,n;return O(function(p){if(1==p.g){l=Wc;if(b==l.Ka)return f||(a.g.u=c),Se(a.g,d,e),p.return();m=[];return G(p,uk(a,b,g,h,k),2)}n=p.h;n||(m.push(ek(a,b,function(){return fk(a,b)},null)),a.m&&m.push(ek(a,l.ha,function(){return fk(a,l.ha)},null)));f||(m.push(ek(a,b,function(){return gk(a,b,c)},null)),a.m&&m.push(ek(a,l.ha,function(){return gk(a,l.ha,c)},null)));m.push(ek(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=
393
393
  d;Wj(a,b)},null));a.m&&m.push(ek(a,l.ha,function(){var r=l.ha;a.h[r].appendWindowStart=0;a.h[r].appendWindowEnd=e;a.h[r].appendWindowStart=d;Wj(a,r)},null));return G(p,Promise.all(m),0)})}
394
- function vk(a,b,c){var d;return O(function(e){if(1==e.g){d=Wc;if(b==d.Ia)return e.return();b==d.ua&&(a.sa=new og);ek(a,b,function(){return fk(a,b)},null);a.m&&ek(a,d.ha,function(){return fk(a,d.ha)},null);return G(e,ek(a,b,function(){return gk(a,b,c)},null),2)}return a.m?G(e,ek(a,d.ha,function(){return gk(a,d.ha,c)},null),0):e.B(0)})}q.endOfStream=function(a){var b=this;return O(function(c){return G(c,wk(b,function(){Xj(b)||"closed"===b.l.readyState||(a?b.l.endOfStream(a):b.l.endOfStream())}),0)})};
394
+ function vk(a,b,c){var d;return O(function(e){if(1==e.g){d=Wc;if(b==d.Ka)return e.return();b==d.ua&&(a.Aa=new og);ek(a,b,function(){return fk(a,b)},null);a.m&&ek(a,d.ha,function(){return fk(a,d.ha)},null);return G(e,ek(a,b,function(){return gk(a,b,c)},null),2)}return a.m?G(e,ek(a,d.ha,function(){return gk(a,d.ha,c)},null),0):e.B(0)})}q.endOfStream=function(a){var b=this;return O(function(c){return G(c,wk(b,function(){Xj(b)||"closed"===b.l.readyState||(a?b.l.endOfStream(a):b.l.endOfStream())}),0)})};
395
395
  q.vb=function(a){var b=this;return O(function(c){return G(c,wk(b,function(){if(a<b.l.duration)for(var d in b.h){var e={start:function(){},p:new og,uri:null};b.j[d].unshift(e)}b.l.duration=a;b.ea=a}),0)})};q.getDuration=function(){return this.l.duration};function rk(a,b,c,d){d<=c?Wj(a,b):a.h[b].remove(c,d)}function fk(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;Wj(a,b)}
396
396
  function gk(a,b,c){0>c&&(c+=.001);a.h[b].timestampOffset=c;Wj(a,b)}function Wj(a,b){if(!a.G){var c=a.j[b][0];c&&(c.p.resolve(),xk(a,b))}}function ek(a,b,c,d){Mg(a.K);c={start:c,p:new og,uri:d};a.j[b].push(c);1==a.j[b].length&&yk(a,b);return c.p}
397
397
  function wk(a,b){var c,d,e,f,g,h,k;return O(function(l){switch(l.g){case 1:Mg(a.K);c=[];d={};for(e in a.h)d.Id=new og,f={start:function(m){return function(){return m.Id.resolve()}}(d),p:d.Id,uri:null},a.j[e].push(f),c.push(d.Id),1==a.j[e].length&&f.start(),d={Id:d.Id};ta(l,2);return G(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),G(l,b(),6);case 6:xa(l);for(h in a.h)xk(a,h);ya(l,0);break;case 5:throw k=wa(l),new T(2,3,3015,k,a.i.error||"No error in the media element",
398
- null);}})}function xk(a,b){a.j[b].shift();yk(a,b)}function yk(a,b){var c=a.j[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new T(2,3,3017,b)):c.p.reject(new T(2,3,3015,d,a.i.error||"No error in the media element",c.uri)),xk(a,b)}}function hk(a,b,c,d,e){var f=null==c,g=a.Da[d];c=a.aa.uj();if(f=a.A.insertFakeEncryptionInInit&&f&&g)c=Rb(c),f=cc()||ac()||kc()||$b()&&pc()&&c;f&&"mp4"==Ce(a.I[d])&&(b=Ei(b,e));return b}
398
+ null);}})}function xk(a,b){a.j[b].shift();yk(a,b)}function yk(a,b){var c=a.j[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new T(2,3,3017,b)):c.p.reject(new T(2,3,3015,d,a.i.error||"No error in the media element",c.uri)),xk(a,b)}}function hk(a,b,c,d,e){var f=null==c,g=a.Fa[d];c=a.aa.uj();if(f=a.A.insertFakeEncryptionInInit&&f&&g)c=Rb(c),f=cc()||ac()||kc()||$b()&&pc()&&c;f&&"mp4"==Ce(a.I[d])&&(b=Ei(b,e));return b}
399
399
  function zk(a,b,c,d){return ek(a,b,function(){b!==Uc&&(yd()&&(a.s[b]&&(a.s[b].destroy(),delete a.s[b]),d&&(a.s[b]=d),a.h[b].changeType(c+a.A.addExtraFeaturesToSourceBuffer(c)),a.I[b]=c),Wj(a,b))},null)}
400
- function Ak(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,w,v,A,z,C,y,B,D,F,J,L;return O(function(H){switch(H.g){case 1:c=Wc;a.G=!0;a.m=!1;d=a.i.currentTime;e=a.i.autoplay;f=a.i.paused;a.ra&&(a.i.autoplay=!1);ua(H,2);a.u.Za();g=[];for(h in a.s)g.push(a.s[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(Xe)),n=t(l.slice(1)),p=n.next();!p.done;p=n.next())r=p.value,r.p.reject(new T(2,7,7003,void 0));for(u in a.h){w=a.h[u];try{a.l.removeSourceBuffer(w)}catch(E){}}return G(H,
401
- Promise.all(g),4);case 4:return a.s={},a.h={},v=a.l.duration,a.M=new og,a.l=Pj(a,a.M),G(H,a.M,5);case 5:!isNaN(v)&&v?a.l.duration=v:!isNaN(a.ea)&&a.ea&&(a.l.duration=a.ea),A=new og,z=a.l.sourceBuffers,C=b.size,y=0,B=function(){y++;y===C&&(A.resolve(),a.u.Na(z,"addsourcebuffer",B))},a.u.o(z,"addsourcebuffer",B),D=t(b.keys()),F=D.next();case 6:if(F.done)return a.i.currentTime=d,G(H,A,2);J=F.value;L=b.get(J);return G(H,Tj(a,J,L,L.codecs),9);case 9:a.m?(a.j[c.ha]=[],a.j[c.ua]=[]):a.j[J]=[];F=D.next();
400
+ function Ak(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,w,v,A,z,C,y,B,D,F,J,L;return O(function(H){switch(H.g){case 1:c=Wc;a.G=!0;a.m=!1;d=a.i.currentTime;e=a.i.autoplay;f=a.i.paused;a.sa&&(a.i.autoplay=!1);ua(H,2);a.u.Za();g=[];for(h in a.s)g.push(a.s[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(Xe)),n=t(l.slice(1)),p=n.next();!p.done;p=n.next())r=p.value,r.p.reject(new T(2,7,7003,void 0));for(u in a.h){w=a.h[u];try{a.l.removeSourceBuffer(w)}catch(E){}}return G(H,
401
+ Promise.all(g),4);case 4:return a.s={},a.h={},v=a.l.duration,a.M=new og,a.l=Pj(a,a.M),G(H,a.M,5);case 5:!isNaN(v)&&v?a.l.duration=v:!isNaN(a.ea)&&a.ea&&(a.l.duration=a.ea),A=new og,z=a.l.sourceBuffers,C=b.size,y=0,B=function(){y++;y===C&&(A.resolve(),a.u.Pa(z,"addsourcebuffer",B))},a.u.o(z,"addsourcebuffer",B),D=t(b.keys()),F=D.next();case 6:if(F.done)return a.i.currentTime=d,G(H,A,2);J=F.value;L=b.get(J);return G(H,Tj(a,J,L,L.codecs),9);case 9:a.m?(a.j[c.ha]=[],a.j[c.ua]=[]):a.j[J]=[];F=D.next();
402
402
  H.B(6);break;case 2:xa(H),a.G=!1,Mg(a.K),a.u.ia(a.i,"canplaythrough",function(){a.K.g||(a.i.autoplay=e,f||a.i.play())}),ya(H,0)}})}function Bk(a,b){return wk(a,function(){return Ak(a,b)})}
403
- function uk(a,b,c,d,e){var f,g,h,k,l,m,n,p,r,u,w,v,A,z,C;return O(function(y){if(1==y.g){f=Wc;if(b==f.Ia)return y.return(!1);g=Je(Me(a.I[b]));h=Le(a.I[b]);l=!1;m=we(c,d);n=a.A.forceTransmux;if(!wd(m)||!a.C&&xe.includes(m))n=!0;n&&(p=ye(c,d),r=qe(p))&&(k=r(),u=Sc(f.ha,(d||"").split(",")),w=Sc(f.ua,(d||"").split(",")),u&&w?(l=!0,v=w,b==f.ha&&(v=u),m=k.convertCodecs(b,ye(c,v))):m=k.convertCodecs(b,p));A=Je(Me(m));z=Le(m);if(g===A&&h===z)return y.return(!1);C=!0;if(a.m||l&&k&&!a.s[b])C=!1;if(C&&"smooth"===
403
+ function uk(a,b,c,d,e){var f,g,h,k,l,m,n,p,r,u,w,v,A,z,C;return O(function(y){if(1==y.g){f=Wc;if(b==f.Ka)return y.return(!1);g=Je(Me(a.I[b]));h=Le(a.I[b]);l=!1;m=we(c,d);n=a.A.forceTransmux;if(!wd(m)||!a.C&&xe.includes(m))n=!0;n&&(p=ye(c,d),r=qe(p))&&(k=r(),u=Sc(f.ha,(d||"").split(",")),w=Sc(f.ua,(d||"").split(",")),u&&w?(l=!0,v=w,b==f.ha&&(v=u),m=k.convertCodecs(b,ye(c,v))):m=k.convertCodecs(b,p));A=Je(Me(m));z=Le(m);if(g===A&&h===z)return y.return(!1);C=!0;if(a.m||l&&k&&!a.s[b])C=!1;if(C&&"smooth"===
404
404
  a.A.codecSwitchingStrategy&&yd())return G(y,zk(a,b,m,k),3);k&&k.destroy();return G(y,Bk(a,e),3)}return y.return(!0)})}function Ck(a,b,c,d){if(b==Uc)var e=!1;else{e=Je(Me(a.I[b]));var f=Le(a.I[b]),g=we(c,d),h=a.A.forceTransmux;if(!wd(g)||!a.C&&xe.includes(g))h=!0;c=ye(c,d);h&&(h=qe(c))&&(h=h(),g=h.convertCodecs(b,c),h.destroy());b=Je(Me(g));g=Le(g);e=e!==b||f!==g}return e?"smooth"!==a.A.codecSwitchingStrategy||!yd()||a.m:!1}var Rj=window.URL.createObjectURL,Vj="sequence";function Dk(a,b,c){this.i=a;this.A=b;this.s=this.j=Infinity;this.g=1;this.h=this.l=null;this.C=0;this.I=!0;this.J=0;this.G=void 0===c?!0:c;this.H=0;this.u=!1;this.m=a}q=Dk.prototype;q.getDuration=function(){return this.j};q.zj=function(){return this.g};q.Ei=function(a){this.i=a};q.vb=function(a){this.j=a};q.Dj=function(){return this.i};q.Ai=function(a){this.C=a};q.Tc=function(a){this.I=a};q.Bf=function(a){this.s=a};q.$e=function(){return this.s};q.nh=function(a){this.A=a};q.qj=function(){return this.A};
405
405
  q.oi=function(a,b){if(0!=a.length){var c=(Date.now()+this.C)/1E3;a=a.filter(function(e){return e.start+b<c});if(0!=a.length){var d=a[a.length-1].end+b;this.uf(a[0].start+b);this.g=a.reduce(function(e,f){return Math.max(e,f.end-f.start)},this.g);this.h=Math.max(this.h,d);null!=this.i&&this.G&&!this.u&&(this.i=c-this.h-this.g)}}};
406
406
  q.le=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.C)/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.uf(b);this.h=Math.max(this.h,c);null!=this.i&&this.G&&!this.u&&(this.i=d-this.h-this.g)}};q.Aj=function(){return this.h};q.mf=function(){this.u=!0};q.ck=function(){return this.u};q.Ci=function(a){this.m=a};q.tj=function(){return this.m};
@@ -422,7 +422,7 @@ function Wk(a,b){var c=Math.max(a.C,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=
422
422
  function Vk(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new Ek(new Hk(a),b.stallThreshold,c);Gk(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function Zk(a){this.T=a;this.l=null;this.i=0;this.m=!1}q=Zk.prototype;q.getNumReferences=function(){return this.T.length};q.getNumEvicted=function(){return this.i};q.release=function(){this.m||(this.T=[],this.l&&this.l.stop(),this.l=null)};q.jk=function(){this.m=!0};q.qc=function(a){for(var b=t(this.T),c=b.next();!c.done;c=b.next())a(c.value)};
423
423
  q.find=function(a){for(var b=this.T.length-1,c=b;0<=c;--c){var d=this.T[c],e=c<b?this.T[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.i}return this.T.length&&a<this.T[0].startTime?this.i:null};q.get=function(a){if(0==this.T.length)return null;a-=this.i;return 0>a||a>=this.T.length?null:this.T[a]};q.offset=function(a){if(!this.m)for(var b=t(this.T),c=b.next();!c.done;c=b.next())c.value.offset(a)};
424
424
  q.qf=function(a){if(!this.m&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.T=this.T.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.T.push.apply(this.T,x(a))}};q.je=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.T.length||d.endTime>c.T[0].startTime)});this.qf(a);this.hb(b)};q.hb=function(a){if(!this.m){var b=this.T.length;this.T=this.T.filter(function(c){return c.endTime>a});this.i+=b-this.T.length}};
425
- q.dd=function(a,b,c){c=void 0===c?!1:c;if(!this.m){for(;this.T.length;)if(this.T[this.T.length-1].startTime>=b)this.T.pop();else break;for(;this.T.length;)if(this.T[0].endTime<=a)this.T.shift(),c||this.i++;else break;0!=this.T.length&&(a=this.T[this.T.length-1],b=new Ki(a.startTime,b,a.G,a.$a,a.Ha,a.ma,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.T[this.T.length-1]=b)}};
425
+ q.dd=function(a,b,c){c=void 0===c?!1:c;if(!this.m){for(;this.T.length;)if(this.T[this.T.length-1].startTime>=b)this.T.pop();else break;for(;this.T.length;)if(this.T[0].endTime<=a)this.T.shift(),c||this.i++;else break;0!=this.T.length&&(a=this.T[this.T.length-1],b=new Ki(a.startTime,b,a.G,a.$a,a.Ja,a.ma,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.T[this.T.length-1]=b)}};
426
426
  q.Ff=function(a,b){var c=this;this.m||(this.l&&this.l.stop(),this.l=new Vb(function(){var d=b();d?c.T.push.apply(c.T,x(d)):(c.l.stop(),c.l=null)}),this.l.wa(a))};Zk.prototype[Symbol.iterator]=function(){return this.dc(0)};
427
427
  Zk.prototype.dc=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 Ua("No independent partial segment found!"),null}c?d--:d++;f=g-1;break}}return new $k(this,d,f,c)};function al(a,b,c){a=new Ki(a,a+b,function(){return c},0,null,null,a,a,a+b);return new Zk([a])}
428
428
  P("shaka.media.SegmentIndex",Zk);Zk.forSingleSegment=al;Zk.prototype.getIteratorForTime=Zk.prototype.dc;Zk.prototype.updateEvery=Zk.prototype.Ff;Zk.prototype.fit=Zk.prototype.dd;Zk.prototype.evict=Zk.prototype.hb;Zk.prototype.mergeAndEvict=Zk.prototype.je;Zk.prototype.offset=Zk.prototype.offset;Zk.prototype.get=Zk.prototype.get;Zk.prototype.find=Zk.prototype.find;Zk.prototype.markImmutable=Zk.prototype.jk;Zk.prototype.release=Zk.prototype.release;Zk.prototype.getNumEvicted=Zk.prototype.getNumEvicted;
@@ -431,7 +431,7 @@ $k.prototype.next=function(){var a=this.i.get(this.h);this.reverse?a&&0<a.g.leng
431
431
  $k.prototype.setReverse=$k.prototype.xd;function bl(){Zk.call(this,[]);this.g=[]}pa(bl,Zk);q=bl.prototype;q.clone=function(){var a=new bl;a.g=this.g.slice();return a};q.release=function(){for(var a=t(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g=[]};q.qc=function(a){for(var b=t(this.g),c=b.next();!c.done;c=b.next())c.value.qc(a)};q.find=function(a){for(var b=0,c=t(this.g),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};
432
432
  q.get=function(a){for(var b=0,c=t(this.g),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.qf=function(){};q.hb=function(){};q.je=function(){};q.dd=function(){};q.Ff=function(){};P("shaka.media.MetaSegmentIndex",bl);bl.prototype.updateEvery=bl.prototype.Ff;bl.prototype.fit=bl.prototype.dd;bl.prototype.mergeAndEvict=bl.prototype.je;bl.prototype.evict=bl.prototype.hb;bl.prototype.merge=bl.prototype.qf;
433
433
  bl.prototype.offset=bl.prototype.offset;bl.prototype.get=bl.prototype.get;bl.prototype.find=bl.prototype.find;bl.prototype.forEachTopLevelReference=bl.prototype.qc;bl.prototype.release=bl.prototype.release;function cl(a){var b=this;this.g=a;this.j=!1;this.i=this.g.Ze();this.h=new Vb(function(){b.g.mi(.25*b.i)})}cl.prototype.release=function(){this.set(this.Hc());this.h&&(this.h.stop(),this.h=null);this.g=null};cl.prototype.set=function(a){this.i=a;dl(this)};cl.prototype.Hc=function(){return this.g.Hc()};function dl(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.Ze()!=b&&a.g.rh(b);return}catch(c){}a.h.wa(.25);0!=a.g.Ze()&&a.g.rh(0)};function el(a){var b=this;this.h=a;this.g=new Set;this.i=(new Vb(function(){fl(b,!1)})).wa(.25)}el.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 fl(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function gl(){this.g=null;this.h=[]}function hl(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 il(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 jl(){this.i=this.h=null;this.g=[]}function kl(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 ll(){this.Pe=this.ii=this.A=this.C=this.K=this.G=this.u=this.j=this.J=this.m=this.i=this.S=this.W=this.M=this.O=this.P=this.l=this.s=NaN;this.L=0;this.H=this.I=NaN;this.g=new gl;this.h=new jl};function ml(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.s=d}function nl(a,b){a.l=b;a=t(a.h.values());for(var c=a.next();!c.done;c=a.next())c.value.g=b}
434
- function ol(a,b,c){c=void 0===c?!1:c;if(a.i.segmentIndex&&(a.g||(a.g=a.i.segmentIndex.dc(b,!0,a.s)),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.Ha&&(c=!1);2==b.tc()&&(c=!1);c&&b.ma&&pl(a,b.ma);c&&!a.h.has(b)&&(c=new ql(a.l),rl(c,b,a.i),a.h.set(b,c));if(a.i.fastSwitching&&b.oe&&b.kf)break}sl(a)}}function pl(a,b){if(a.i.segmentIndex&&!Array.from(a.j.keys()).some(function(d){return Ji(d,b)})){var c=new ql(a.l);rl(c,b,a.i);a.j.set(b,c)}}
434
+ function ol(a,b,c){c=void 0===c?!1:c;if(a.i.segmentIndex&&(a.g||(a.g=a.i.segmentIndex.dc(b,!0,a.s)),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.Ja&&(c=!1);2==b.tc()&&(c=!1);c&&b.ma&&pl(a,b.ma);c&&!a.h.has(b)&&(c=new ql(a.l),rl(c,b,a.i),a.h.set(b,c));if(a.i.fastSwitching&&b.oe&&b.kf)break}sl(a)}}function pl(a,b){if(a.i.segmentIndex&&!Array.from(a.j.keys()).some(function(d){return Ji(d,b)})){var c=new ql(a.l);rl(c,b,a.i);a.j.set(b,c)}}
435
435
  function tl(a,b){b=t(b.keys());for(var c=b.next();!c.done;c=b.next())(c=c.value)&&ul(a,c)}function vl(a){tl(a,a.h);tl(a,a.j);a.g=null}ml.prototype.hb=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&&ul(this,d);b&&sl(this)};ml.prototype.xd=function(a){this.s=a;this.g&&this.g.xd(a)};
436
436
  function sl(a){for(var b=Array.from(a.h.keys()),c={},d=t(a.j.keys()),e=d.next();!e.done;c={Ee:c.Ee},e=d.next())c.Ee=e.value,b.some(function(f){return function(g){return Ji(g.ma,f.Ee)}}(c))||ul(a,c.Ee)}function wl(a,b){a.m=b;for(var c=Array.from(a.h.keys());c.length>b;){var d=c.pop();d&&ul(a,d)}sl(a)}function xl(a,b){b&&b!==a.i&&(vl(a),a.i=b)}function ul(a,b){var c=a.h;b instanceof Ii&&(c=a.j);a=c.get(b);c.delete(b);a&&a.abort()}function ql(a){this.g=a;this.wf=this.vh=null}
437
437
  function rl(a,b,c){var d=new Uint8Array(0);a.wf=a.g(b,c,function(e){return O(function(f){if(1==f.g)return 0<d.byteLength?d=Nc(d,e):d=e,a.vh?G(f,a.vh(d),3):f.B(0);d=new Uint8Array(0);I(f)})})}ql.prototype.abort=function(){this.wf&&this.wf.abort()};function yl(a){gb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new Vb(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))})).wa(2)}pa(yl,gb);yl.prototype.release=function(){this.g.clear();this.h.stop();gb.prototype.release.call(this)};function zl(a){gb.call(this);this.g=new Map;this.h=a}pa(zl,gb);zl.prototype.release=function(){this.g.clear();gb.prototype.release.call(this)};function Al(a,b){var c=a.g.get(b);c||(c={re:[],pg:null,contentType:b},a.g.set(b,c));return c}function Bl(a,b,c){var d=Al(a,b.contentType);Cl(a,d);a={nd:b,position:c};d=d.re;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
@@ -440,13 +440,13 @@ g=e&&d&&e.label&&d.label&&d.label!==e.label;var h=e&&d&&e.language&&d.language&&
440
440
  function Dl(a,b,c){return(a=a.h()[c])&&0<a.length&&(c=a[a.length-1].end,b>=a[0].start&&b<c)?!0:!1}function Cl(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.re;b.re=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.re=[]}
441
441
  function El(a){var b={bandwidth:a.bandwidth||0,audioSamplingRate:null,codecs:a.codecs,contentType:a.type,frameRate:null,height:null,mimeType:a.mimeType,channelsCount:null,pixelAspectRatio:null,width:null,label:null,roles:a.roles,language:null};"video"==a.type&&(b.frameRate=a.frameRate||null,b.height=a.height||null,b.pixelAspectRatio=a.pixelAspectRatio||null,b.width=a.width||null);"audio"==a.type&&(b.audioSamplingRate=a.audioSamplingRate,b.channelsCount=a.channelsCount,b.label=a.label||null,b.language=
442
442
  a.language);return b};function Fl(a){var b=Le(a),c=b.split("/")[0];a=Me(a);return{type:c,mimeType:b,codecs:a,language:null,height:null,width:null,channelCount:null,sampleRate:null,closedCaptions:new Map,ze:null,colorGamut:null}}
443
- function Gl(a,b){function c(y){v=y.name;var B=y.reader;B.skip(24);var D=B.ya(),F=B.ya();B.skip(50);n=String(D);m=String(F);y.reader.Ea()&&Xg(y)}function d(y){var B=ej(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");
443
+ function Gl(a,b){function c(y){v=y.name;var B=y.reader;B.skip(24);var D=B.za(),F=B.za();B.skip(50);n=String(D);m=String(F);y.reader.Ea()&&Xg(y)}function d(y){var B=ej(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");
444
444
  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,w=null,v;(new Sg).box("moov",Xg).box("trak",Xg).box("mdia",Xg).Y("mdhd",function(y){l=cj(y.reader,y.version).language}).box("minf",Xg).box("stbl",Xg).Y("stsd",Zg).box("mp4a",function(y){var B=ej(y.reader);p=B.channelCount;r=B.sampleRate;y.reader.Ea()?Xg(y):e(y.name)}).box("esds",function(y){y=y.reader;for(var B=
445
- "mp4a",D,F;y.Ea();){D=y.$();for(var J=y.$();J&128;)J=y.$();if(3==D)y.ya(),J=y.$(),J&128&&y.ya(),J&64&&y.skip(y.$()),J&32&&y.ya();else if(4==D)F=y.$(),y.skip(12);else if(5==D)break}F&&(B+="."+hj(F),5==D&&y.Ea()&&(D=y.$(),F=(D&248)>>3,31===F&&y.Ea()&&(F=32+((D&7)<<3)+((y.$()&224)>>5)),B+="."+F));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",
445
+ "mp4a",D,F;y.Ea();){D=y.$();for(var J=y.$();J&128;)J=y.$();if(3==D)y.za(),J=y.$(),J&128&&y.za(),J&64&&y.skip(y.$()),J&32&&y.za();else if(4==D)F=y.$(),y.skip(12);else if(5==D)break}F&&(B+="."+hj(F),5==D&&y.Ea()&&(D=y.$(),F=(D&248)>>3,31===F&&y.Ea()&&(F=32+((D&7)<<3)+((y.$()&224)>>5)),B+="."+F));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",
446
446
  c).box("av01",c).box("avcC",function(y){var B=v||"";switch(v){case "dvav":B="avc3";break;case "dva1":B="avc1"}y=y.reader;y.skip(1);y=B+"."+hj(y.$())+hj(y.$())+hj(y.$());g.push(y);k=!0}).box("hvcC",function(y){var B=v||"";switch(v){case "dvh1":B="hvc1";break;case "dvhe":B="hev1"}var D=y.reader;D.skip(1);y=D.$();var F=["","A","B","C"][y>>6],J=y&31,L=D.V(),H=(y&32)>>5?"H":"L";y=[D.$(),D.$(),D.$(),D.$(),D.$(),D.$()];D=D.$();for(var E=0,K=0;32>K;K++){E|=L&1;if(31==K)break;E<<=1;L>>=1}B=B+("."+F+J)+("."+
447
447
  hj(E,!0));B+="."+H+D;F="";for(J=y.length;J--;)if((H=y[J])||F)F="."+H.toString(16).toUpperCase()+F;B+=F;g.push(B);k=!0}).box("dvcC",function(y){var B=v||"";switch(v){case "hvc1":B="dvh1";break;case "hev1":B="dvhe";break;case "avc1":B="dva1";break;case "avc3":B="dvav";break;case "av01":B="dav1"}var D=y.reader;D.skip(2);y=D.$();D=D.$();g.push(B+"."+ij(y>>1&127)+"."+ij(y<<5&32|D>>3&31));k=!0}).box("dvvC",function(y){var B=v||"";switch(v){case "hvc1":B="dvh1";break;case "hev1":B="dvhe";break;case "avc1":B=
448
448
  "dva1";break;case "avc3":B="dvav";break;case "av01":B="dav1"}var D=y.reader;D.skip(2);y=D.$();D=D.$();g.push(B+"."+ij(y>>1&127)+"."+ij(y<<5&32|D>>3&31));k=!0}).Y("vpcC",function(y){var B=v||"",D=y.reader;y=D.$();var F=D.$();D=D.$()>>4&15;g.push(B+"."+ij(y)+"."+ij(F)+"."+ij(D));k=!0}).box("av1C",function(y){var B=v||"";switch(v){case "dav1":B="av01"}var D=y.reader;D.skip(1);y=D.$();D=D.$();var F=y>>>5,J=(D&64)>>6;g.push(B+"."+F+"."+ij(y&31)+(D>>>7?"H":"M")+"."+ij(2===F&&J?(D&32)>>5?12:10:J?10:8)+"."+
449
- ((D&16)>>4)+"."+((D&8)>>3)+((D&4)>>2)+(D&3)+"."+ij(1)+"."+ij(1)+"."+ij(1)+".0");k=!0}).box("enca",ah).box("encv",$g).box("sinf",Xg).box("frma",function(y){y=fj(y.reader).gb;e(y)}).box("colr",function(y){g=g.map(function(F){if(F.startsWith("av01.")){var J=y.reader,L=J.Ja(),H=J.Rb(4);var E=String.fromCharCode(H[0]);E+=String.fromCharCode(H[1]);E+=String.fromCharCode(H[2]);E+=String.fromCharCode(H[3]);if("nclx"===E){H=J.ya();E=J.ya();var K=J.ya(),M=J.$()>>7,N=F.split(".");10==N.length&&(N[6]=ij(H),N[7]=
449
+ ((D&16)>>4)+"."+((D&8)>>3)+((D&4)>>2)+(D&3)+"."+ij(1)+"."+ij(1)+"."+ij(1)+".0");k=!0}).box("enca",ah).box("encv",$g).box("sinf",Xg).box("frma",function(y){y=fj(y.reader).gb;e(y)}).box("colr",function(y){g=g.map(function(F){if(F.startsWith("av01.")){var J=y.reader,L=J.La(),H=J.Rb(4);var E=String.fromCharCode(H[0]);E+=String.fromCharCode(H[1]);E+=String.fromCharCode(H[2]);E+=String.fromCharCode(H[3]);if("nclx"===E){H=J.za();E=J.za();var K=J.za(),M=J.$()>>7,N=F.split(".");10==N.length&&(N[6]=ij(H),N[7]=
450
450
  ij(E),N[8]=ij(K),N[9]=String(M),F=N.join("."))}J.seek(L)}return F});var B=gj(y.reader),D=B.colorGamut;u=B.ze;w=D}).parse(a||b,!0);if(!f.length&&!g.length)return null;var A=h&&!k,z=new Map;if(k){var C=new Hd("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",mimeType:A?"audio/mp4":"video/mp4",codecs:Hl(f.concat(g)).join(", "),language:l,height:m,width:n,channelCount:p,sampleRate:r,closedCaptions:z,ze:u,colorGamut:w}}
451
451
  function Hl(a){var b=new Set,c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=Je(d);b.has(e)||(c.push(d),b.add(e))}b=Vc("audio",c);d=Vc("video",c);a=Vc(Uc,c);d=Il(d);b=b.concat(d).concat(a);return c.length&&!b.length?c:b}function Il(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?wd('video/mp4; codecs="'+b+'"')?[b]:a.filter(function(c){return c!=b}):a}
452
452
  function Jl(a){var b=null;(new Sg).box("moov",Xg).box("trak",Xg).box("mdia",Xg).box("minf",Xg).box("stbl",Xg).Y("stsd",Zg).box("encv",$g).box("enca",ah).box("sinf",Xg).box("schi",Xg).Y("tenc",function(c){c=c.reader;c.$();c.$();c.$();c.$();b=Mc(c.Rb(16))}).parse(a,!0);return b}
@@ -454,28 +454,28 @@ function Kl(a,b,c){var d,e,f,g,h;return O(function(k){if(1==k.g)return d=b,d.cry
454
454
  function Nl(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,Ol(e),b.push(Pl(e)),e.ba&&(vl(e.ba),e.ba=null);f=t(a.s.values());for(g=f.next();!g.done;g=f.next())h=g.value,vl(h);return G(k,Promise.all(b),2)}a.i.clear();a.s.clear();a.g=null;a.l=null;a.h=null;I(k)})}
455
455
  q.configure=function(a){this.h=a;this.K=new lg({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.ba&&(vl(b.ba),b.ba=null);b=t(this.s.keys());for(var c=b.next();!c.done;c=b.next())c=c.value,vl(this.s.get(c)),this.s.delete(c)}a.disableTextPrefetch&&(b=this.i.get(Uc))&&
456
456
  b.ba&&(vl(b.ba),b.ba=null);a.disableVideoPrefetch&&(b=this.i.get("video"))&&b.ba&&(vl(b.ba),b.ba=null);b=t(this.i.keys());for(c=b.next();!c.done;c=b.next())c=this.i.get(c.value),c.ba?(wl(c.ba,a.segmentPrefetchLimit),0<a.segmentPrefetchLimit||(vl(c.ba),c.ba=null)):0<a.segmentPrefetchLimit&&(c.ba=Ql(this,c.stream));a.disableAudioPrefetch||Rl(this)};function Sl(a,b,c){a.l.presentationTimeline.U()||(a.O=b,a.M=c)}
457
- q.start=function(a){var b=this;return O(function(c){if(1==c.g)return G(c,Tl(b,a||new Map),2);Mg(b.m);b.G=!0;I(c)})};function Ul(a,b){var c,d,e,f,g,h,k;O(function(l){switch(l.g){case 1:return c=Wc,a.J++,d=a.J,ta(l,2),G(l,sk(a.g.oa,c.Ia),4);case 4:va(l,3);break;case 2:if(e=wa(l),a.g)a.g.onError(e);case 3:f=we(b.mimeType,b.codecs),Uj(a.g.oa,f,a.l.sequenceMode,b.external),g=a.g.oa.H,(h=g.isTextVisible()||a.h.alwaysStreamText)&&a.J==d&&(k=Vl(a,b),a.i.set(c.Ia,k),Wl(a,k,0)),I(l)}})}
457
+ q.start=function(a){var b=this;return O(function(c){if(1==c.g)return G(c,Tl(b,a||new Map),2);Mg(b.m);b.G=!0;I(c)})};function Ul(a,b){var c,d,e,f,g,h,k;O(function(l){switch(l.g){case 1:return c=Wc,a.J++,d=a.J,ta(l,2),G(l,sk(a.g.oa,c.Ka),4);case 4:va(l,3);break;case 2:if(e=wa(l),a.g)a.g.onError(e);case 3:f=we(b.mimeType,b.codecs),Uj(a.g.oa,f,a.l.sequenceMode,b.external),g=a.g.oa.H,(h=g.isTextVisible()||a.h.alwaysStreamText)&&a.J==d&&(k=Vl(a,b),a.i.set(c.Ka,k),Wl(a,k,0)),I(l)}})}
458
458
  function Xl(a){var b=a.i.get(Uc);b&&(Ol(b),Pl(b).catch(function(){}),a.i.delete(Uc));a.u=null}function Yl(a,b){for(var c=0>a.g.Ua(),d=t(a.i.values()),e=d.next();!e.done;e=d.next())e=e.value,e.va&&e.va.xd(c),e.ba&&e.ba.xd(c);d=t(a.s.values());for(e=d.next();!e.done;e=d.next())e.value.xd(c);if(c=a.i.get("video"))if(d=c.stream)if(b)(b=d.trickModeVideo)&&!c.Sc&&(Zl(a,b,!1,0,!1),c.Sc=d);else if(b=c.Sc)c.Sc=null,Zl(a,b,!0,0,!1)}
459
459
  function $l(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&&Zl(a,b.video,c,d,e,f),b.audio&&Zl(a,b.audio,c,d,e,f))}function am(a,b){O(function(c){if(1==c.g)return a.u=b,a.G?b.segmentIndex?c.B(2):G(c,b.createSegmentIndex(),2):c.return();Zl(a,b,!0,0,!1);I(c)})}
460
460
  function Zl(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=Uc?g&&(g.Sc&&(b.trickModeVideo?(g.Sc=b,b=b.trickModeVideo):g.Sc=null),g.stream!=b||e)&&(a.s.has(b)?g.ba=a.s.get(b):g.ba&&xl(g.ba,b),b.type==Uc&&(e=we(b.mimeType,b.codecs),Uj(a.g.oa,e,a.l.sequenceMode,b.external)),a.s.has(g.stream)||g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.va=null,g.Gh=!!f,c?g.Sd?g.If=!0:g.ib?(g.zc=!0,g.Te=d,g.If=!0):(Ol(g),bm(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)})):g.ib||g.Tb||Wl(a,
461
461
  g,0),cm(a,g).catch(function(h){if(a.g)a.g.onError(h)})):Ul(a,b)}
462
- function cm(a,b){var c,d;return O(function(e){if(1==e.g){if(!b.Cb)return e.return();c=b.stream;d=b.Cb;return c.segmentIndex?e.B(2):G(e,c.createSegmentIndex(),2)}if(b.Cb!=d||b.stream!=c)return e.return();var f=a.g.Ye();var g=ak(a.g.oa,b.type),h=b.stream.segmentIndex.find(b.rb?b.rb.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.Ha?k.Ha-k.$a:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.ma)&&(h+=(k.Ha?k.Ha-k.$a:null)||0),k=a.g.getBandwidthEstimate(),
462
+ function cm(a,b){var c,d;return O(function(e){if(1==e.g){if(!b.Cb)return e.return();c=b.stream;d=b.Cb;return c.segmentIndex?e.B(2):G(e,c.createSegmentIndex(),2)}if(b.Cb!=d||b.stream!=c)return e.return();var f=a.g.Ye();var g=ak(a.g.oa,b.type),h=b.stream.segmentIndex.find(b.rb?b.rb.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.Ja?k.Ja-k.$a:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.ma)&&(h+=(k.Ja?k.Ja-k.$a:null)||0),k=a.g.getBandwidthEstimate(),
463
463
  f=8*h/k<(g||0)-f-Math.max(a.l.minBufferTime||0,a.h.rebufferingGoal)||b.Cb.h.g>h?!0:!1):f=!1;f&&b.Cb.abort();I(e)})}
464
464
  q.ve=function(){if(this.g)for(var a=this.g.Ye(),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.oa;e.G?e=!1:d==Uc?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=Zj(e,d),e=Qi(e,a));if(!e){c.ba&&(c.ba.g=null);if("audio"===c.type){e=t(this.s.values());for(var f=e.next();!f.done;f=e.next())f.value.g=null}c.va=null;(null!=ak(this.g.oa,d)||c.ib)&&dm(this,c);c.Cb&&(c.Cb.abort(),c.Cb=null);d===Uc&&(d=this.g.oa,d.J&&d.J.g());c.ve=!0}}};
465
465
  function dm(a,b){b.Sd||b.zc||(b.ib?(b.zc=!0,b.Te=0):null==Yj(a.g.oa,b.type)?null==b.Tb&&Wl(a,b,0):(Ol(b),bm(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
466
- function Tl(a,b){var c,d,e,f,g,h,k,l,m,n;return O(function(p){if(1==p.g){c=Wc;if(!a.j)throw new T(2,5,5006);d=new Map;e=new Set;a.j.audio&&(d.set(c.ha,a.j.audio),e.add(a.j.audio));a.j.video&&(d.set(c.ua,a.j.video),e.add(a.j.video));a.u&&(d.set(c.Ia,a.u),e.add(a.u));f=a.g.oa;return G(p,f.init(d,a.l.sequenceMode,a.l.type,a.l.ignoreManifestTimestampsInSegmentsMode),2)}Mg(a.m);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=Vl(a,l),b.has(l.id)&&(n=
466
+ function Tl(a,b){var c,d,e,f,g,h,k,l,m,n;return O(function(p){if(1==p.g){c=Wc;if(!a.j)throw new T(2,5,5006);d=new Map;e=new Set;a.j.audio&&(d.set(c.ha,a.j.audio),e.add(a.j.audio));a.j.video&&(d.set(c.ua,a.j.video),e.add(a.j.video));a.u&&(d.set(c.Ka,a.u),e.add(a.u));f=a.g.oa;return G(p,f.init(d,a.l.sequenceMode,a.l.type,a.l.ignoreManifestTimestampsInSegmentsMode),2)}Mg(a.m);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=Vl(a,l),b.has(l.id)&&(n=
467
467
  b.get(l.id),nl(n,function(r,u,w){return em(r,u,w||null,a.h.retryParameters,a.g.hc)}),m.ba=n),a.i.set(k,m),Wl(a,m,0));I(p)})}function Vl(a,b){return{stream:b,type:b.type,va:null,ba:Ql(a,b),rb:null,md:null,lf:null,jf:null,hf:null,Sc:null,endOfStream:!1,ib:!1,Tb:null,zc:!1,Te:0,If:!1,Sd:!1,ve:!0,fh:!1,ae:!1,Cb:null}}
468
468
  function Ql(a,b){if("video"===b.type&&a.h.disableVideoPrefetch||"audio"===b.type&&a.h.disableAudioPrefetch||b.type===Uc&&("application/cea-608"==b.mimeType||"application/cea-708"==b.mimeType)||b.type===Uc&&a.h.disableTextPrefetch)return null;if(a.s.has(b))return a.s.get(b);var c=a.i.get(b.type);return(c=c&&c.ba)&&b===c.i?c:0<a.h.segmentPrefetchLimit?new ml(a.h.segmentPrefetchLimit,b,function(d,e,f){return em(d,e,f||null,a.h.retryParameters,a.g.hc)},0>a.g.Ua()):null}
469
469
  function Rl(a){for(var b=a.h.segmentPrefetchLimit,c=a.h.prefetchAudioLanguages,d={},e=t(a.l.variants),f=e.next();!f.done;d={jb:d.jb},f=e.next())if(d.jb=f.value,d.jb.audio)if(a.s.has(d.jb.audio)){if(f=a.s.get(d.jb.audio),wl(f,b),!(0<b&&c.some(function(h){return function(k){return $c(h.jb.audio.language,k)}}(d)))){var g=a.i.get(d.jb.audio.type);f!==(g&&g.ba)&&vl(f);a.s.delete(d.jb.audio)}}else 0>=b||!c.some(function(h){return function(k){return $c(h.jb.audio.language,k)}}(d))||!(f=Ql(a,d.jb.audio))||
470
470
  (d.jb.audio.segmentIndex||d.jb.audio.createSegmentIndex(),a.s.set(d.jb.audio,f))}q.updateDuration=function(){var a=this.l.presentationTimeline.getDuration();Infinity>a?this.g.oa.vb(a):this.g.oa.vb(this.h.infiniteLiveStreamDuration?Infinity:Math.pow(2,32))};
471
471
  function fm(a,b){var c,d,e,f,g,h;return O(function(k){switch(k.g){case 1:Mg(a.m);if(b.ib||null==b.Tb||b.Sd)return k.return();b.Tb=null;if(!b.zc){k.B(2);break}return G(k,bm(a,b,b.If,b.Te),3);case 3:return k.return();case 2:if(b.stream.segmentIndex){k.B(4);break}c=b.stream;ta(k,5);return G(k,b.stream.createSegmentIndex(),7);case 7:va(k,6);break;case 5:return d=wa(k),G(k,gm(a,b,d),8);case 8:return k.return();case 6:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.ib||b.Tb||Wl(a,b,0),
472
472
  k.return();case 4:ta(k,9);e=hm(a,b);null!=e&&(Wl(a,b,e),b.ae=!1);va(k,10);break;case 9:return f=wa(k),G(k,gm(a,b,f),11);case 11:return k.return();case 10:g=Array.from(a.i.values());if(!a.G||!g.every(function(l){return l.endOfStream})){k.B(0);break}return G(k,a.g.oa.endOfStream(),13);case 13:Mg(a.m),h=a.g.oa.getDuration(),0!=h&&h<a.l.presentationTimeline.getDuration()&&a.l.presentationTimeline.vb(h),I(k)}})}
473
- function hm(a,b){if(im(b))return ik(a.g.oa,b.stream.originalId||""),null;b.type==Uc&&qk(a.g.oa);if(!a.g.oa.Fa&&b.type!=Uc)return a.h.updateIntervalSeconds/2;var c=a.g.Ye();if("audio"===b.type)for(var d=t(a.s.keys()),e=d.next();!e.done;e=d.next())e=a.s.get(e.value),e.hb(c,!0),ol(e,c);d=b.rb?b.rb.endTime:c;e=bk(a.g.oa,b.type,c);var f=Math.max(1,Math.max(a.l.minBufferTime||0,a.h.rebufferingGoal,a.h.bufferingGoal)*a.C),g=a.l.presentationTimeline.getDuration()-d,h=ak(a.g.oa,b.type);if(1E-6>g&&h)return b.endOfStream=
473
+ function hm(a,b){if(im(b))return ik(a.g.oa,b.stream.originalId||""),null;b.type==Uc&&qk(a.g.oa);if(!a.g.oa.xa&&b.type!=Uc)return a.h.updateIntervalSeconds/2;var c=a.g.Ye();if("audio"===b.type)for(var d=t(a.s.keys()),e=d.next();!e.done;e=d.next())e=a.s.get(e.value),e.hb(c,!0),ol(e,c);d=b.rb?b.rb.endTime:c;e=bk(a.g.oa,b.type,c);var f=Math.max(1,Math.max(a.l.minBufferTime||0,a.h.rebufferingGoal,a.h.bufferingGoal)*a.C),g=a.l.presentationTimeline.getDuration()-d,h=ak(a.g.oa,b.type);if(1E-6>g&&h)return b.endOfStream=
474
474
  !0,"video"==b.type&&(a=a.i.get(Uc))&&im(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.h.updateIntervalSeconds/2;e=jm(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,im(h)||h.va&&!h.va.current()||(f=Math.min(f,h.rb?h.rb.endTime:c));if(d>=f+a.l.presentationTimeline.g)return a.h.updateIntervalSeconds;b.ba&&b.va&&!a.s.has(b.stream)&&(b.ba.hb(e.startTime),ol(b.ba,e.startTime));km(a,b,c,e).catch(function(){});
475
475
  return null}function jm(a,b,c,d){if(b.va)return b.va.current();if(b.rb||d)return b.va=b.stream.segmentIndex.dc(b.rb?b.rb.endTime:d,!1,0>a.g.Ua()),b.va&&b.va.next().value;d=a.h.inaccurateManifestTolerance;var e=Math.max(c-d,0);a=0>a.g.Ua();var f=null;d&&(b.va=b.stream.segmentIndex.dc(e,!1,a),f=b.va&&b.va.next().value);f||(b.va=b.stream.segmentIndex.dc(c,!1,a),f=b.va&&b.va.next().value);return f}
476
476
  function km(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,w,v,A,z,C,y;return O(function(B){switch(B.g){case 1:e=Wc;f=b.stream;g=b.va;b.ib=!0;ta(B,2);if(2==d.tc())throw new T(1,1,1011);return G(B,lm(a,b,d),4);case 4:Mg(a.m);if(a.A)return B.return();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if((l=a.h.lowLatencyMode&&a.l.isLowLatency)&&k&&h&&("HLS"!=a.l.type||d.m))return p=new Uint8Array(0),u=r=!1,v=function(D){var F,J,L,H;return O(function(E){switch(E.g){case 1:if(r)return E.return();
477
477
  u=!0;Mg(a.m);if(a.A)return E.return();ta(E,2);p=mm(p,D);F=!1;J=0;(new Sg).box("mdat",function(K){J=K.size+K.start;F=!0}).parse(p,!1,!0);if(!F){E.B(4);break}L=p.subarray(0,J);p=p.subarray(J);return G(E,nm(a,b,c,f,d,L,!0),5);case 5:b.ba&&b.va&&ol(b.ba,d.startTime,!0);case 4:va(E,0);break;case 2:w=H=wa(E),I(E)}})},G(B,om(a,b,d,v),9);m=om(a,b,d);return G(B,m,7);case 7:n=B.h;Mg(a.m);if(a.A)return B.return();Mg(a.m);return b.zc?(b.ib=!1,Wl(a,b,0),B.return()):G(B,nm(a,b,c,f,d,n),6);case 9:A=B.h;if(w)throw w;
478
- if(u){B.B(10);break}r=!0;Mg(a.m);return a.A?B.return():b.zc?(b.ib=!1,Wl(a,b,0),B.return()):G(B,nm(a,b,c,f,d,A),10);case 10:b.ba&&b.va&&ol(b.ba,d.startTime,!0);case 6:Mg(a.m);if(a.A)return B.return();b.rb=d;g.next();b.ib=!1;b.fh=!1;z=a.g.oa.Wb();C=z[b.type];cb(JSON.stringify(C));b.zc||a.g.$g(d,b.stream);Wl(a,b,0);va(B,0);break;case 2:y=wa(B);Mg(a.m,y);if(a.A)return B.return();b.ib=!1;if(7001==y.code)b.ib=!1,Ol(b),Wl(a,b,0),B.B(0);else if(b.type==e.Ia&&a.h.ignoreTextStreamFailures)a.i.delete(e.Ia),
478
+ if(u){B.B(10);break}r=!0;Mg(a.m);return a.A?B.return():b.zc?(b.ib=!1,Wl(a,b,0),B.return()):G(B,nm(a,b,c,f,d,A),10);case 10:b.ba&&b.va&&ol(b.ba,d.startTime,!0);case 6:Mg(a.m);if(a.A)return B.return();b.rb=d;g.next();b.ib=!1;b.fh=!1;z=a.g.oa.Wb();C=z[b.type];cb(JSON.stringify(C));b.zc||a.g.$g(d,b.stream);Wl(a,b,0);va(B,0);break;case 2:y=wa(B);Mg(a.m,y);if(a.A)return B.return();b.ib=!1;if(7001==y.code)b.ib=!1,Ol(b),Wl(a,b,0),B.B(0);else if(b.type==e.Ka&&a.h.ignoreTextStreamFailures)a.i.delete(e.Ka),
479
479
  B.B(0);else if(3017==y.code)pm(a,b,y),B.B(0);else return b.ae=!0,1==y.category&&b.ba&&ul(b.ba,d),y.severity=2,G(B,gm(a,b,y),0)}})}function mm(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
480
480
  function pm(a,b,c){if(!Array.from(a.i.values()).some(function(e){return e!=b&&e.fh})){if(0<a.h.maxDisabledTime&&a.g.disableStream(b.stream,a.h.maxDisabledTime))return;var d=Math.round(100*a.C);if(20<d)a.C-=.2;else if(4<d)a.C-=.04;else{b.ae=!0;a.A=!0;a.g.onError(c);return}b.fh=!0}Wl(a,b,4)}
481
481
  function lm(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u;return O(function(w){switch(w.g){case 1:d=Wc;e=[];f=Math.max(0,Math.max(c.appendWindowStart,a.O)-.1);g=Math.min(c.appendWindowEnd,a.M)+.01;h=Je(b.stream.codecs);k=Le(b.stream.mimeType);l=c.timestampOffset;if(l==b.lf&&f==b.jf&&g==b.hf&&h==b.Tg&&k==b.Ug){w.B(2);break}m=b.Tg&&b.Ug&&Ck(a.g.oa,b.type,k,h);if(!m){w.B(3);break}n=null;b.type===d.ua?n=a.i.get(d.ha):b.type===d.ha&&(n=a.i.get(d.ua));if(!n){w.B(3);break}return G(w,Pl(n).catch(function(){}),5);case 5:n.md=
@@ -484,13 +484,13 @@ A)}A=null}).box("minf",Xg).box("stbl",Xg).Y("stsd",Zg).box("encv",$g).box("avc1"
484
484
  dk(a.g.oa,b.type,v,null,b.stream,B),6);case 6:va(F,0);break;case 2:throw D=wa(F),b.md=null,D;}})},a.g.lk(c.startTime,c.ma),e.push(r()))),a.l.sequenceMode&&(u=b.rb?b.rb.j:null,c.j!=u&&e.push(vk(a.g.oa,b.type,c.startTime))),G(w,Promise.all(e),0)}})}
485
485
  function qm(a,b,c,d,e,f,g,h){var k,l,m,n;return O(function(p){if(1==p.g)return k=Wc,l=new Map,a.j.audio&&l.set(k.ha,a.j.audio),a.j.video&&l.set(k.ua,a.j.video),ta(p,2),b.jf=d,b.hf=e,g&&(b.Tg=g),h&&(b.Ug=h),b.lf=c,m=a.l.sequenceMode||"HLS"==a.l.type,G(p,tk(a.g.oa,b.type,c,d,e,m,f.mimeType||b.stream.mimeType,f.codecs||b.stream.codecs,l),4);if(2!=p.g)return va(p,0);n=wa(p);b.jf=null;b.hf=null;b.Tg=null;b.Ug=null;b.lf=null;throw n;})}
486
486
  function nm(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h,k,l,m,n,p,r,u,w;return O(function(v){switch(v.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;n="video/mp4"==d.mimeType||"audio/mp4"==d.mimeType;p=null;e.ma&&(p=e.ma.timescale);r=n&&p&&"video"===d.type&&"DASH"==a.l.type&&a.h.shouldFixTimestampOffset;if(l||m||r)k=new Sg;l&&k.Y("emsg",function(A){var z=d.emsgSchemeIdUris;if(0===A.version){var C=
487
- A.reader.Qc();var y=A.reader.Qc();var B=A.reader.V();var D=A.reader.V();var F=A.reader.V();var J=A.reader.V();var L=e.startTime+D/B}else B=A.reader.V(),L=A.reader.td()/B+e.timestampOffset,D=L-e.startTime,F=A.reader.V(),J=A.reader.V(),C=A.reader.Qc(),y=A.reader.Qc();A=A.reader.Rb(A.reader.getLength()-A.reader.Ja());if(z&&z.includes(C)||a.h.dispatchAllEmsgBoxes)if("urn:mpeg:dash:event:2012"==C)a.g.nk();else if(z=(new Map).set("detail",{startTime:L,endTime:L+F/B,schemeIdUri:C,value:y,timescale:B,presentationTimeDelta:D,
487
+ A.reader.Qc();var y=A.reader.Qc();var B=A.reader.V();var D=A.reader.V();var F=A.reader.V();var J=A.reader.V();var L=e.startTime+D/B}else B=A.reader.V(),L=A.reader.td()/B+e.timestampOffset,D=L-e.startTime,F=A.reader.V(),J=A.reader.V(),C=A.reader.Qc(),y=A.reader.Qc();A=A.reader.Rb(A.reader.getLength()-A.reader.La());if(z&&z.includes(C)||a.h.dispatchAllEmsgBoxes)if("urn:mpeg:dash:event:2012"==C)a.g.nk();else if(z=(new Map).set("detail",{startTime:L,endTime:L+F/B,schemeIdUri:C,value:y,timescale:B,presentationTimeDelta:D,
488
488
  eventDuration:F,id:J,messageData:A}),z=new S("emsg",z),z.cancelable=!0,a.g.onEvent(z),!z.defaultPrevented&&("https://aomedia.org/emsg/ID3"==C||"https://developer.apple.com/streaming/emsg-id3"==C)&&(C=Zi(A),C.length&&e))a.g.onMetadata([{cueTime:e.startTime,data:A,frames:C,dts:e.startTime,pts:e.startTime}],0,e.endTime)});m&&k.Y("prft",function(A){if(!a.H&&e.ma.timescale){var z=A.reader,C=A.version;z.V();A=z.V();var y=z.V();A=1E3*A+y/Math.pow(2,32)*1E3;0===C?z=z.V():(C=z.V(),z=z.V(),z=C*Math.pow(2,32)+
489
489
  z);A=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+A)).getTime();z=(new Map).set("detail",{wallClockTime:A,programStartDate:new Date(A-z/e.ma.timescale*1E3)});z=new S("prft",z);a.g.onEvent(z);a.H=!0}});r&&k.box("moof",Xg).box("traf",Xg).Y("tfdt",function(A){var z,C,y,B,D,F;return O(function(J){z=bj(A.reader,A.version);C=z.baseMediaDecodeTime;if(!C)return J.return();y=-C/p;B=Number(b.lf)||0;if(!(B<y))return J.B(0);D=b.jf;F=b.hf;return G(J,qm(a,b,y,D,F,e),0)})});(l||m||r)&&k.parse(f,!1,g);
490
490
  return G(v,sm(a,b,c),2);case 2:return Mg(a.m),u=b.ve,b.ve=!1,w=b.Gh,b.Gh=!1,G(v,a.g.Jh(b.type,f),3);case 3:return G(v,dk(a.g.oa,b.type,f,e,d,h,u,w,g),4);case 4:Mg(a.m),I(v)}})}function sm(a,b,c){var d,e,f,g;return O(function(h){if(1==h.g){d=Math.max(a.h.bufferBehind,a.l.presentationTimeline.g);e=Yj(a.g.oa,b.type);if(null==e)return h.return();f=c-e;g=f-d;return g<=a.h.evictionGoal?h.return():G(h,a.g.oa.remove(b.type,e,e+g),2)}Mg(a.m);I(h)})}
491
491
  function im(a){return a&&a.type==Uc&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
492
492
  function om(a,b,c,d){var e,f,g,h,k;return O(function(l){switch(l.g){case 1:if(e=c.Zd())return l.return(e);f=null;if(b.ba){var m=b.ba,n=m.h;c instanceof Ii&&(n=m.j);n.has(c)?(m=n.get(c),d&&(m.vh=d),f=m.wf):f=null}f||(f=em(c,b.stream,d||null,a.h.retryParameters,a.g.hc));g=0;b.va&&(g=b.va.h);b.Cb=f;return G(l,f.promise,2);case 2:h=l.h;b.Cb=null;k=h.data;if(!c.aesKey){l.B(3);break}return G(l,Kl(k,c.aesKey,g),4);case 4:k=l.h;case 3:return l.return(k)}})}
493
- function em(a,b,c,d,e){var f=a instanceof Ki?a:void 0,g=f?1:0;a=Ll(a.R(),a.$a,a.Ha,d,c);a.contentType=b.type;return e.request(Jg,a,{type:g,stream:b,segment:f})}
493
+ function em(a,b,c,d,e){var f=a instanceof Ki?a:void 0,g=f?1:0;a=Ll(a.R(),a.$a,a.Ja,d,c);a.contentType=b.type;return e.request(Jg,a,{type:g,stream:b,segment:f})}
494
494
  function bm(a,b,c,d){var e,f;return O(function(g){if(1==g.g)return b.zc=!1,b.If=!1,b.Te=0,b.Sd=!0,b.rb=null,b.va=null,b.ba&&!a.s.has(b.stream)&&vl(b.ba),d?(e=a.g.Ye(),f=a.g.oa.getDuration(),G(g,a.g.oa.remove(b.type,e+d,f),3)):G(g,sk(a.g.oa,b.type),4);if(3!=g.g)return Mg(a.m),c?G(g,a.g.oa.flush(b.type),3):g.B(3);Mg(a.m);b.Sd=!1;b.endOfStream=!1;b.ib||b.Tb||Wl(a,b,0);I(g)})}
495
495
  function Wl(a,b,c){var d=b.type;if(d!=Uc||a.i.has(d))b.Tb=(new Ub(function(){var e;return O(function(f){if(1==f.g)return ta(f,2),G(f,fm(a,b),4);if(2!=f.g)return va(f,0);e=wa(f);if(a.g)a.g.onError(e);I(f)})})).X(c)}function Ol(a){null!=a.Tb&&(a.Tb.stop(),a.Tb=null)}function Pl(a){return O(function(b){return a.Cb?G(b,a.Cb.abort(),0):b.B(0)})}
496
496
  function gm(a,b,c){var d;return O(function(e){if(1==e.g)return G(e,ng(a.K),2);Mg(a.m);d=0===a.h.maxDisabledTime&&1011==c.code?1:a.h.maxDisabledTime;1===c.category&&0<d&&(c.handled=a.g.disableStream(b.stream,d),c.handled&&(c.severity=1));if(!c.handled||1011!=c.code)a.g.onError(c);c.handled||a.h.failureCallback(c);I(e)})}
@@ -519,16 +519,16 @@ minBandwidth:0,maxBandwidth:Infinity,minChannelsCount:0,maxChannelsCount:Infinit
519
519
  supportsMultipleMediaElements:k}};f.trackSelectionCallback=function(m){return O(function(n){return n.return(Im(m,l.preferredAudioLanguage,l.preferredVideoHdrLevel))})};return l}
520
520
  function Jm(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 vm(a,b,c||Fm(),d,"")}
521
521
  function Im(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=jd(b,e.map(function(h){return h.language}));f&&(c=e.filter(function(h){return ad(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-
522
- 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!=Uc&&"image"!=c.type||b.push(c);return b}function Gm(a){return xm([a],a)}function Hm(a){return xm([a],a)}P("shaka.util.PlayerConfiguration",Em);Em.mergeConfigObjects=Jm;Em.createDefault=Fm;function Km(a,b,c,d){gb.call(this);this.M=a;this.S=b;this.za=d.networkingEngine;this.A=c;this.s=null;this.sa=0;this.Sa=d.cd;this.G=d.gk;this.Xa=d.hk;this.g=d.config;this.j=this.H=this.h=null;this.ea=!1;this.I=d.tk;this.qa=!1;this.l=null;this.aa=!1;this.i=this.C=null;this.Z=!1;this.L=new Map;this.ra=!1;this.Da=d.rk;this.W=new ll;this.m=new og;this.O=null;this.u=!1;this.Ra=d.aj;this.ka=null;this.Ga=d.$i;this.P=!1;this.K=[];this.J=[]}pa(Km,gb);function Lm(a,b,c){(a=b?a.J:a.K)?a.push(c):c()}
522
+ 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!=Uc&&"image"!=c.type||b.push(c);return b}function Gm(a){return xm([a],a)}function Hm(a){return xm([a],a)}P("shaka.util.PlayerConfiguration",Em);Em.mergeConfigObjects=Jm;Em.createDefault=Fm;function Km(a,b,c,d){gb.call(this);this.M=a;this.S=b;this.xa=d.networkingEngine;this.A=c;this.s=null;this.sa=0;this.Ia=d.cd;this.G=d.gk;this.Xa=d.hk;this.g=d.config;this.j=this.H=this.h=null;this.ea=!1;this.I=d.tk;this.qa=!1;this.l=null;this.aa=!1;this.i=this.C=null;this.Z=!1;this.L=new Map;this.ra=!1;this.Aa=d.rk;this.W=new ll;this.m=new og;this.O=null;this.u=!1;this.Fa=d.aj;this.ka=null;this.Ha=d.$i;this.P=!1;this.K=[];this.J=[]}pa(Km,gb);function Lm(a,b,c){(a=b?a.J:a.K)?a.push(c):c()}
523
523
  function Mm(a){if(a.J)for(var b=t(a.J),c=b.next();!c.done;c=b.next())c=c.value,c();a.J=null}function Nm(a,b){a.O=b;a.P=!0;if(a.K){b=t(a.K);for(var c=b.next();!c.done;c=b.next())c=c.value,c()}a.K=null}q=Km.prototype;q.getStartTime=function(){return this.A};q.fd=function(){return this.M};q.Jg=function(){return this.h};function Om(a){a.Z=!0;return a.i}function Pm(a){a.ea=!0;return a.j}function Qm(a){a.qa=!0;return a.I}q.getStats=function(){return this.W};function Rm(a){a.aa=!0;return a.l}
524
524
  function Sm(a){a.ra=!0;return a.L}
525
- q.start=function(){var a=this;(function(){var b;return O(function(c){switch(c.g){case 1:return G(c,Promise.resolve(),2);case 2:return ta(c,3),G(c,Tm(a),5);case 5:return Um(a),G(c,Vm(a),6);case 6:Um(a);a.s||(a.s=new Yf(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));if(a.Ga){var d=
526
- a.g.abrFactory;a.C=d;a.i=d();a.i.configure(a.g.abr)}if(a.Ra){d=a.h.presentationTimeline.U();var e=Hf(a.h.variants);e=a.s.create(e);a.i.configure(a.g.abr);a.i.setVariants(Array.from(e.values()));if(e=a.i.chooseVariant(!0))a.ka=e,e.video&&Wm(a,e.video,d),e.audio&&Wm(a,e.audio,d)}return G(c,void 0,7);case 7:Um(a);a.m.resolve();va(c,0);break;case 3:b=wa(c),a.m.reject(b),I(c)}})})()};q.dispatchEvent=function(a){return this.O?this.O.dispatchEvent(a):gb.prototype.dispatchEvent.call(this,a)};
525
+ q.start=function(){var a=this;(function(){var b;return O(function(c){switch(c.g){case 1:return G(c,Promise.resolve(),2);case 2:return ta(c,3),G(c,Tm(a),5);case 5:return Um(a),G(c,Vm(a),6);case 6:Um(a);a.s||(a.s=new Yf(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));if(a.Ha){var d=
526
+ a.g.abrFactory;a.C=d;a.i=d();a.i.configure(a.g.abr)}if(a.Fa){d=a.h.presentationTimeline.U();var e=Hf(a.h.variants);e=a.s.create(e);a.i.configure(a.g.abr);a.i.setVariants(Array.from(e.values()));if(e=a.i.chooseVariant(!0))a.ka=e,e.video&&Wm(a,e.video,d),e.audio&&Wm(a,e.audio,d)}return G(c,void 0,7);case 7:Um(a);a.m.resolve();va(c,0);break;case 3:b=wa(c),a.m.reject(b),I(c)}})})()};q.dispatchEvent=function(a){return this.O?this.O.dispatchEvent(a):gb.prototype.dispatchEvent.call(this,a)};
527
527
  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 Um(a){if(a.u)throw new T(2,7,7003);}function Xm(a,b){a.dispatchEvent(new S("onstatechange",(new Map).set("state",b)))}
528
528
  function Tm(a){var b,c,d,e,f;return O(function(g){if(1==g.g){Xm(a,"manifest-parser");a.j||(a.H=Ci(a.M,a.S),a.j=a.H(),a.j.configure(a.g.manifest));b=Date.now()/1E3;Xm(a,"manifest");if(a.h)return g.B(2);c=a;return G(g,a.j.start(a.M,a.Xa),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 T(2,4,4036);Ym(a.h);e=Date.now()/1E3;f=e-b;a.W.J=f;I(g)})}
529
- function Vm(a){var b,c,d,e,f;return O(function(g){switch(g.g){case 1:Xm(a,"drm-engine");a.sa=Date.now()/1E3;a.l=a.Sa();a.G.g=a.l;a.l.configure(a.g.drm);var h=a.G;b=ff(a.h.variants,h.h.restrictions,h.i);if(!b){g.B(2);break}c=new S("trackschanged",void 0);return G(g,Promise.resolve(),3);case 3:Um(a),a.dispatchEvent(c);case 2:return d=Hf(a.h.variants),G(g,Sh(a.l,d,a.h.offlineSessionIds),4);case 4:return Um(a),G(g,wi(a.G,a.h),5);case 5:e=g.h;if(!e){g.B(0);break}f=new S("trackschanged",void 0);return G(g,
529
+ function Vm(a){var b,c,d,e,f;return O(function(g){switch(g.g){case 1:Xm(a,"drm-engine");a.sa=Date.now()/1E3;a.l=a.Ia();a.G.g=a.l;a.l.configure(a.g.drm);var h=a.G;b=ff(a.h.variants,h.h.restrictions,h.i);if(!b){g.B(2);break}c=new S("trackschanged",void 0);return G(g,Promise.resolve(),3);case 3:Um(a),a.dispatchEvent(c);case 2:return d=Hf(a.h.variants),G(g,Sh(a.l,d,a.h.offlineSessionIds),4);case 4:return Um(a),G(g,wi(a.G,a.h),5);case 5:e=g.h;if(!e){g.B(0);break}f=new S("trackschanged",void 0);return G(g,
530
530
  Promise.resolve(),7);case 7:a.dispatchEvent(f),I(g)}})}q.configure=function(a,b){a=wm(a,b);Jm(this.g,a)};q.getConfiguration=function(){return Ze(this.g)};
531
- function Wm(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 ml(d,b,function(l,m,n){return em(l,m,n||null,a.g.streaming.retryParameters,a.za)},!1),a.L.set(b.id,e),G(k,b.createSegmentIndex(),2);f=a.A||0;(h=(g=b.segmentIndex.dc(f))?g.current():null)||(h=b.segmentIndex.get(0));h&&(c?h.ma&&pl(e,h.ma):ol(e,h.startTime));I(k)})}q.Yk=function(){return this.m};
531
+ function Wm(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 ml(d,b,function(l,m,n){return em(l,m,n||null,a.g.streaming.retryParameters,a.xa)},!1),a.L.set(b.id,e),G(k,b.createSegmentIndex(),2);f=a.A||0;(h=(g=b.segmentIndex.dc(f))?g.current():null)||(h=b.segmentIndex.get(0));h&&(c?h.ma&&pl(e,h.ma):ol(e,h.startTime));I(k)})}q.Yk=function(){return this.m};
532
532
  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 G(e,a.j.stop(),2);case 2:if(!a.i||a.Z){e.B(4);break}return G(e,a.i.stop(),4);case 4:a.I&&!a.qa&&a.I.release();if(!a.l||a.aa){e.B(6);break}return G(e,a.l.destroy(),6);case 6:if(0<a.L.size&&!a.ra)for(b=t(a.L.values()),c=b.next();!c.done;c=b.next())d=c.value,vl(d);I(e)}})};
533
533
  function Ym(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",Km);Km.prototype.destroy=Km.prototype.destroy;Km.prototype.waitForFinish=Km.prototype.Yk;function Zm(a,b){gb.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{Xc:null,Wc:$m,Kc:function(d,e){return an(c,"enter",d,e)}},{Xc:bn,Wc:$m,Kc:function(d,e){return an(c,"enter",d,e)}},{Xc:cn,Wc:$m,Kc:function(d,e){return an(c,"enter",d,e)}},{Xc:$m,Wc:bn,Kc:function(d,e){return an(c,"exit",d,e)}},{Xc:$m,Wc:cn,Kc:function(d,e){return an(c,"exit",d,e)}},{Xc:bn,Wc:cn,Kc:function(d,e){return an(c,"skip",d,e)}},{Xc:cn,Wc:bn,Kc:function(d,e){return an(c,"skip",d,e)}}];this.h=new rd;this.h.o(this.i,
534
534
  "regionremove",function(d){c.g.delete(d.region)})}pa(Zm,gb);Zm.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;gb.prototype.release.call(this)};Zm.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?bn:a>d.endTime?cn:$m;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.Xc==e&&h.Wc==f&&h.Kc(d,b)}}};
@@ -538,11 +538,12 @@ var en={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"
538
538
  return"<"+h+(void 0===k?"":k)+">"+g+"</"+h+">"},a.payload)}
539
539
  function gn(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";
540
540
  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 hn(a,b){var c=[];a=t(jn(a));for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.isContainer)c.push.apply(c,x(hn(d.nestedCues,d)));else{var e=d.clone();e.nestedCues=[];e.payload=fn(d,b);c.push(e)}return c}
541
- function jn(a){var b=[],c={};a=t(a);for(var d=a.next();!d.done;c={Be:c.Be},d=a.next())c.Be=d.value,b.some(function(e){return function(f){return ge(e.Be,f)}}(c))||b.push(c.Be);return b};function kn(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=kn.prototype;q.configure=function(){};q.remove=function(a,b){if(!this.g)return!1;ln(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
542
- q.append=function(a){var b=hn(a),c=[];a=this.g.cues?Array.from(this.g.cues):[];var d={};b=t(b);for(var e=b.next();!e.done;d={Zc:d.Zc},e=b.next())d.Zc=e.value,a.some(function(f){return function(g){return g.startTime==f.Zc.startTime&&g.endTime==f.Zc.endTime&&g.text==f.Zc.payload?!0:!1}}(d))||(e=mn(d.Zc))&&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)-
543
- 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&&(ln(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"};
544
- function mn(a){if(a.startTime>=a.endTime)return null;var b=new VTTCue(a.startTime,a.endTime,a.payload);b.lineAlign=a.lineAlign;b.positionAlign=a.positionAlign;a.size&&(b.size=a.size);try{b.align=a.textAlign}catch(c){}"center"==a.textAlign&&"center"!=b.align&&(b.align="middle");"vertical-lr"==a.writingMode?b.vertical="lr":"vertical-rl"==a.writingMode&&(b.vertical="rl");1==a.lineInterpretation&&(b.snapToLines=!1);null!=a.line&&(b.line=a.line);null!=a.position&&(b.position=a.position);return b}
545
- function ln(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",kn);kn.prototype.setTextVisibility=kn.prototype.setTextVisibility;kn.prototype.isTextVisible=kn.prototype.isTextVisible;kn.prototype.destroy=kn.prototype.destroy;kn.prototype.append=kn.prototype.append;kn.prototype.remove=kn.prototype.remove;kn.prototype.configure=kn.prototype.configure;function nn(){}q=nn.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",nn);nn.prototype.setTextVisibility=nn.prototype.setTextVisibility;nn.prototype.isTextVisible=nn.prototype.isTextVisible;nn.prototype.destroy=nn.prototype.destroy;nn.prototype.append=nn.prototype.append;nn.prototype.remove=nn.prototype.remove;nn.prototype.configure=nn.prototype.configure;function on(){}function W(a){return document.createElement(a)}function pn(){var a=document.createElement("button");a.setAttribute("type","button");return a}function qn(a){for(;a.firstChild;)a.removeChild(a.firstChild)}P("shaka.util.Dom",on);on.removeAllChildren=qn;function rn(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||Ad("UITextDisplayer w/ config","Please migrate to initializing UITextDisplayer with a config.");this.G=(new Vb(function(){d.A.paused||sn(d)})).wa(c&&
541
+ function jn(a){var b=[],c={};a=t(a);for(var d=a.next();!d.done;c={Be:c.Be},d=a.next())c.Be=d.value,b.some(function(e){return function(f){return ge(e.Be,f)}}(c))||b.push(c.Be);return b}
542
+ function kn(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&&
543
+ (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 ln(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=ln.prototype;q.configure=function(){};q.remove=function(a,b){if(!this.g)return!1;mn(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
544
+ q.append=function(a){var b=hn(a),c=[];a=this.g.cues?Array.from(this.g.cues):[];var d={};b=t(b);for(var e=b.next();!e.done;d={Zc:d.Zc},e=b.next())d.Zc=e.value,a.some(function(f){return function(g){return g.startTime==f.Zc.startTime&&g.endTime==f.Zc.endTime&&g.text==f.Zc.payload?!0:!1}}(d))||(e=kn(d.Zc))&&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)-
545
+ 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&&(mn(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"};
546
+ function mn(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",ln);ln.prototype.setTextVisibility=ln.prototype.setTextVisibility;ln.prototype.isTextVisible=ln.prototype.isTextVisible;ln.prototype.destroy=ln.prototype.destroy;ln.prototype.append=ln.prototype.append;ln.prototype.remove=ln.prototype.remove;ln.prototype.configure=ln.prototype.configure;function nn(){}q=nn.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",nn);nn.prototype.setTextVisibility=nn.prototype.setTextVisibility;nn.prototype.isTextVisible=nn.prototype.isTextVisible;nn.prototype.destroy=nn.prototype.destroy;nn.prototype.append=nn.prototype.append;nn.prototype.remove=nn.prototype.remove;nn.prototype.configure=nn.prototype.configure;function on(){}function W(a){return document.createElement(a)}function pn(){var a=document.createElement("button");a.setAttribute("type","button");return a}function qn(a){for(;a.firstChild;)a.removeChild(a.firstChild)}P("shaka.util.Dom",on);on.removeAllChildren=qn;function rn(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||Ad("UITextDisplayer w/ config","Please migrate to initializing UITextDisplayer with a config.");this.G=(new Vb(function(){d.A.paused||sn(d)})).wa(c&&
546
547
  c.captionsUpdatePeriod?c.captionsUpdatePeriod:.25);this.i=new Map;this.j=new rd;this.j.o(document,"fullscreenchange",function(){sn(d,!0)});this.j.o(this.A,"seeking",function(){sn(d,!0)});this.j.o(this.A,"resize",function(){var e=d.A,f=e.videoWidth;e=e.videoHeight;f&&e?d.l=f/e:d.l=null});this.s=null;"ResizeObserver"in window&&(this.s=new ResizeObserver(function(){sn(d,!0)}),this.s.observe(this.g));this.C=new Map}q=rn.prototype;q.configure=function(a){this.G&&this.G.wa(a.captionsUpdatePeriod)};
547
548
  q.append=function(a){var b=[].concat(x(this.h)),c={};a=t(jn(a));for(var d=a.next();!d.done;c={Ce:c.Ce},d=a.next())c.Ce=d.value,b.some(function(e){return function(f){return ge(f,e.Ce)}}(c))||this.h.push(c.Ce);sn(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.s&&(this.s.disconnect(),this.s=null);return Promise.resolve()};
548
549
  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});sn(this,c>this.h.length);return!0};q.isTextVisible=function(){return this.m};q.setTextVisibility=function(a){this.m=a};function tn(a,b){for(;null!=b;){if(b==a.g)return!0;b=b.parentElement}return!1}
@@ -569,37 +570,37 @@ function In(a){function b(n){return 100*c(n/100)}function c(n){return Math.round
569
570
  l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function Nn(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=In(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
570
571
  function Jn(a,b){if(!b||a.includes("offline:"))return a;a=new nb(a);a.g.set("CMCD",b);return a.toString()}var Hn="m",Fn="a",Ln="v",Gn="av",Pn="i",Rn="c",Qn="tt";P("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",Ti:"s",OTHER:"o"});function Vn(a){this.h=a;this.g=null}q=Vn.prototype;q.configure=function(a){this.h=a};q.Yh=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(Wn)?1E3*this.g.get(Wn):null};q.Xh=function(){return this.h.enabled&&this.g&&this.g.has(Xn)?1E3*this.g.get(Xn):null};q.Ej=function(){return this.h.enabled&&this.g&&this.g.has(Yn)?this.g.get(Yn):null};q.Fj=function(){return this.h.enabled&&this.g&&this.g.has(Zn)?this.g.get(Zn):null};
571
572
  q.getBandwidthEstimate=function(a){var b=this.Xh();if(!b)return a;var c=this.h.estimatedThroughputWeightRatio;return 0<c&&1>=c?a*(1-c)+b*c:a};function $n(a){return a?"false"===a.toLowerCase()?!1:/^[-0-9]/.test(a)?parseInt(a,10):a.replace(/["]+/g,""):!0}P("shaka.util.CmsdManager",Vn);Vn.prototype.getBandwidthEstimate=Vn.prototype.getBandwidthEstimate;Vn.prototype.getRoundTripTime=Vn.prototype.Fj;Vn.prototype.getResponseDelay=Vn.prototype.Ej;Vn.prototype.getEstimatedThroughput=Vn.prototype.Xh;
572
- Vn.prototype.getMaxBitrate=Vn.prototype.Yh;var Xn="etp",Wn="mb",Yn="rd",Zn="rtt";function ao(){this.g=null;this.h=[]}function bo(a,b){return O(function(c){if(1==c.g)return a.g?G(c,new Promise(function(d){return a.h.push(d)}),2):c.B(2);a.g=b;I(c)})}ao.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=qo;this.Hf=this.h=null;this.qa=!1;this.Le=new rd;this.me=new rd;this.m=new rd;this.Sa=new rd;this.ob=new rd;this.G=this.I=this.C=this.J=null;this.Me=0;this.W=new ao;this.ra=this.Xf=this.aa=this.i=this.Xa=this.H=this.j=this.ie=this.L=this.Fh=this.ea=this.O=this.ke=this.M=this.Jf=this.K=this.Lb=null;this.Ga=!1;this.za=this.s=null;this.Zf=1E9;this.ye=[];this.S=NaN;this.g=ro(this);this.P=null;this.Ne=-1;this.Ra=null;this.ka={width:Infinity,height:Infinity};
573
- this.Gf=new vi(this.g,this.ka,null);this.Lf=[];this.A=null;this.Da=new Yf(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.Kb=this.g.preferredTextLanguage;this.ue=this.g.preferredTextRole;this.se=this.g.preferForcedSubs;this.qe=[];b&&
573
+ Vn.prototype.getMaxBitrate=Vn.prototype.Yh;var Xn="etp",Wn="mb",Yn="rd",Zn="rtt";function ao(){this.g=null;this.h=[]}function bo(a,b){return O(function(c){if(1==c.g)return a.g?G(c,new Promise(function(d){return a.h.push(d)}),2):c.B(2);a.g=b;I(c)})}ao.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=qo;this.Hf=this.h=null;this.qa=!1;this.Le=new rd;this.me=new rd;this.m=new rd;this.Ia=new rd;this.ob=new rd;this.G=this.I=this.C=this.J=null;this.Me=0;this.W=new ao;this.ra=this.Xf=this.aa=this.i=this.Xa=this.H=this.j=this.ie=this.L=this.Fh=this.ea=this.O=this.ke=this.M=this.Jf=this.K=this.Lb=null;this.Ha=!1;this.xa=this.s=null;this.Zf=1E9;this.ye=[];this.S=NaN;this.g=ro(this);this.P=null;this.Ne=-1;this.Fa=null;this.ka={width:Infinity,height:Infinity};
574
+ this.Gf=new vi(this.g,this.ka,null);this.Lf=[];this.A=null;this.Aa=new Yf(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.Kb=this.g.preferredTextLanguage;this.ue=this.g.preferredTextRole;this.se=this.g.preferForcedSubs;this.qe=[];b&&
574
575
  b(this);this.O=so(this);this.ea=new Vn(this.g.cmsd);this.J=to(this);this.J.ph(this.g.streaming.forceHTTP);this.J.qh(this.g.streaming.forceHTTPS);this.Nb=this.Z=this.u=null;this.cg=!1;this.$f=new Vb(function(){return O(function(d){if(1==d.g)return c.Z?G(d,c.ac(c.Nb,!0),3):d.B(0);if(4!=d.g)return G(d,c.load(c.Z),4);c.cg?c.Nb.pause():c.Nb.play();c.Z=null;c.cg=!1;I(d)})});uo&&(this.u=uo(),this.u.configure(this.g.ads),this.ob.o(this.u,"ad-content-pause-requested",function(d){var e,f;return O(function(g){if(1==
575
576
  g.g){c.$f.stop();if(c.Z)return g.B(0);c.Nb=c.h;c.cg=c.h.ended;e=d.saveLivePosition||!1;f=c;return G(g,c.Rh(!0,e),3)}f.Z=g.h;I(g)})}),this.ob.o(this.u,"ad-content-resume-requested",function(d){d=d.offset||0;if(c.Z){var e=c.Z;e.A&&d&&(e.A+=d)}c.$f.X(.1)}),this.ob.o(this.u,"ad-content-attach-requested",function(){return O(function(d){return c.h||!c.Nb?d.B(0):G(d,c.ac(c.Nb,!0),0)})}));this.Le.o(window,"online",function(){vo(c);c.gh()});this.Kf=new Vb(function(){for(var d=Date.now()/1E3,e=!1,f=!0,g=t(c.i.variants),
576
577
  h=g.next();!h.done;h=g.next())h=h.value,0<h.disabledUntilTime&&h.disabledUntilTime<=d&&(h.disabledUntilTime=0,e=!0),0<h.disabledUntilTime&&(f=!1);f&&c.Kf.stop();e&&wo(c,!1,void 0,!1,!1)});this.sa=null;a&&(Ad("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.ac(a,!0))}pa(X,gb);function xo(a){null!=a.L&&(Gj(a.L),a.L.release(),a.L=null)}
577
578
  function yo(a,b){b.lcevc.enabled?(xo(a),null==a.L&&(a.L=new Fj(a.h,a.Fh,b.lcevc),a.I&&(a.I.W=a.L))):xo(a)}function zo(a,b){return new S(a,b)}q=X.prototype;
578
- q.destroy=function(){var a=this,b;return O(function(c){switch(c.g){case 1:if(a.l==Ao)return c.return();xo(a);b=a.detach();a.l=Ao;return G(c,b,2);case 2:return G(c,a.qg(),3);case 3:a.Le&&(a.Le.release(),a.Le=null);a.me&&(a.me.release(),a.me=null);a.m&&(a.m.release(),a.m=null);a.Sa&&(a.Sa.release(),a.Sa=null);a.ob&&(a.ob.release(),a.ob=null);a.za=null;a.g=null;a.A=null;a.Hf=null;a.O=null;a.ea=null;if(!a.J){c.B(4);break}return G(c,a.J.destroy(),5);case 5:a.J=null;case 4:a.s&&(a.s.release(),a.s=null),
579
+ q.destroy=function(){var a=this,b;return O(function(c){switch(c.g){case 1:if(a.l==Ao)return c.return();xo(a);b=a.detach();a.l=Ao;return G(c,b,2);case 2:return G(c,a.qg(),3);case 3:a.Le&&(a.Le.release(),a.Le=null);a.me&&(a.me.release(),a.me=null);a.m&&(a.m.release(),a.m=null);a.Ia&&(a.Ia.release(),a.Ia=null);a.ob&&(a.ob.release(),a.ob=null);a.xa=null;a.g=null;a.A=null;a.Hf=null;a.O=null;a.ea=null;if(!a.J){c.B(4);break}return G(c,a.J.destroy(),5);case 5:a.J=null;case 4:a.s&&(a.s.release(),a.s=null),
579
580
  gb.prototype.release.call(a),I(c)}})};function Bo(){window.Promise||Va("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||bc("Trident/"))return!1;var a=oc();return a&&9>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:Wb()?!0:Xb("application/x-mpegurl")}
580
581
  function Co(a,b){a.dispatchEvent(zo("onstatechange",(new Map).set("state",b)))}
581
582
  q.ac=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==Ao)throw new T(2,7,7E3);d=c.h&&c.h==a;if(!c.h||c.h==a){g.B(2);break}return G(g,c.detach(),2);case 2:return G(g,Do(c,"attach"),4);case 4:if(g.h)return g.return();ta(g,5,6);d||(Co(c,"attach"),e=function(){var h=Eo(c);h&&Fo(c,h)},c.me.o(a,"error",e),c.h=a);if(!b||!Wb()||c.I){g.B(6);break}return G(g,Go(c),6);case 6:xa(g);c.W.release();ya(g,0);break;case 5:return f=wa(g),G(g,c.detach(),10);case 10:throw f;
582
583
  }})};q.Hh=function(a){this.Fh=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==Ao)throw new T(2,7,7E3);return G(c,b.yc(!1,a),2)}if(3!=c.g)return G(c,Do(b,"detach"),3);if(c.h)return c.return();try{b.h&&(b.me.Za(),b.h=null),Co(b,"detach"),b.u&&!a&&b.u.release()}finally{b.W.release()}I(c)})};function Do(a,b){var c;return O(function(d){return 1==d.g?(c=++a.Me,G(d,bo(a.W,b),2)):c!=a.Me?(a.W.release(),d.return(!0)):d.return(!1)})}
583
- q.yc=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!=Ao&&(c.l=qo),G(p,Do(c,"unload"),2);case 2:if(p.h)return p.return();ua(p,3);c.Ga=!1;Co(c,"unload");a&&!Wb()&&(a=!1);xo(c);d=c.qe.map(function(r){return r()});c.qe=[];return G(p,Promise.all(d),5);case 5:c.dispatchEvent(zo("unloading"));c.ke&&(c.ke.release(),c.ke=null);c.h&&(c.m.Za(),c.Sa.Za());c.Kf.stop();c.Lb&&(c.Lb.release(),c.Lb=null);c.Jf&&(c.Jf.stop(),c.Jf=null);
584
+ q.yc=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!=Ao&&(c.l=qo),G(p,Do(c,"unload"),2);case 2:if(p.h)return p.return();ua(p,3);c.Ha=!1;Co(c,"unload");a&&!Wb()&&(a=!1);xo(c);d=c.qe.map(function(r){return r()});c.qe=[];return G(p,Promise.all(d),5);case 5:c.dispatchEvent(zo("unloading"));c.ke&&(c.ke.release(),c.ke=null);c.h&&(c.m.Za(),c.Ia.Za());c.Kf.stop();c.Lb&&(c.Lb.release(),c.Lb=null);c.Jf&&(c.Jf.stop(),c.Jf=null);
584
585
  if(!c.H){p.B(6);break}return G(p,c.H.stop(),7);case 7:c.H=null,c.Xa=null;case 6:if(!c.s){p.B(8);break}return G(p,c.s.stop(),8);case 8:if(!c.j){p.B(10);break}return G(p,c.j.destroy(),11);case 11:c.j=null;case 10:c.K&&(c.K.release(),c.K=null);c.G&&(c.G.release(),c.G=null);if(!uc("webkit")||!c.C){p.B(12);break}return G(p,c.C.destroy(),13);case 13:c.C=null;case 12:if(!c.I){p.B(14);break}return G(p,c.I.destroy(),15);case 15:c.I=null;case 14:if(c.u&&!b)c.u.onAssetUnload();c.Z&&!b&&(c.Z.destroy(),c.Z=null);
585
586
  b||c.$f.stop();c.O&&Cn(c.O);c.ea&&(c.ea.g=null);c.h&&qn(c.h);if(!c.h||!c.h.src){p.B(16);break}return G(p,new Promise(function(r){return(new Vb(r)).X(.1)}),17);case 17:c.h.removeAttribute("src"),c.h.load();case 16:if(!c.C){p.B(18);break}return G(p,c.C.destroy(),19);case 19:c.C=null;case 18:c.sa&&c.aa!=c.sa.fd()&&(c.sa.u||c.sa.destroy(),c.sa=null);c.aa=null;c.Xf=null;c.M=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=
586
- 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&&(sf={},Tb.clear());c.i=null;c.A=new ll;c.Yf=null;c.Ra=null;c.P=null;c.Ne=-1;c.ye=[];c.S=NaN;Ho(c);case 3:xa(p);c.W.release();ya(p,4);break;case 4:if(a&&Wb()&&!c.I&&c.h)return G(p,Go(c),0);p.B(0)}})};q.Xk=function(a){this.ra=a};
587
+ 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&&(sf={},Tb.clear());c.i=null;c.A=new ll;c.Yf=null;c.Fa=null;c.P=null;c.Ne=-1;c.ye=[];c.S=NaN;Ho(c);case 3:xa(p);c.W.release();ya(p,4);break;case 4:if(a&&Wb()&&!c.I&&c.h)return G(p,Go(c),0);p.B(0)}})};q.Xk=function(a){this.ra=a};
587
588
  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,w,v;return O(function(A){switch(A.g){case 1:if(d.l==Ao)throw new T(2,7,7E3);e=null;f="";a instanceof Km?(e=a,f=e.fd()||""):f=a||"";return G(A,bo(d.W,"load"),2);case 2:d.W.release();if(!d.h)throw new T(2,7,7002);if(!d.aa){A.B(3);break}d.aa=f;return G(A,d.yc(!1),3);case 3:g=++d.Me;h=function(){return O(function(z){if(1==z.g)return d.Me==g?z.B(0):e?G(z,e.destroy(),3):z.B(3);throw new T(2,7,7E3);})};k=function(z,C){return O(function(y){switch(y.g){case 1:return ua(y,
588
- 2),G(y,bo(d.W,C),4);case 4:return G(y,h(),5);case 5:return G(y,z(),6);case 6:return G(y,h(),7);case 7:e&&d.g&&(e.g=d.g);case 2:xa(y),d.W.release(),ya(y,0)}})};ta(A,5,6);null==b&&e&&(b=e.getStartTime());d.ra=b;d.Ga=!1;d.dispatchEvent(zo("loading"));if(e){c=e.S;A.B(8);break}if(c){A.B(8);break}return G(A,k(function(){return O(function(z){if(1==z.g)return G(z,Io(d,f),2);c=z.h;I(z)})},"guessMimeType_"),8);case 8:l=!!e;if(e){Nm(e,d);d.A=e.getStats();A.B(11);break}return G(A,Jo(d,f,b,c,!0),12);case 12:(e=
589
+ 2),G(y,bo(d.W,C),4);case 4:return G(y,h(),5);case 5:return G(y,z(),6);case 6:return G(y,h(),7);case 7:e&&d.g&&(e.g=d.g);case 2:xa(y),d.W.release(),ya(y,0)}})};ta(A,5,6);null==b&&e&&(b=e.getStartTime());d.ra=b;d.Ha=!1;d.dispatchEvent(zo("loading"));if(e){c=e.S;A.B(8);break}if(c){A.B(8);break}return G(A,k(function(){return O(function(z){if(1==z.g)return G(z,Io(d,f),2);c=z.h;I(z)})},"guessMimeType_"),8);case 8:l=!!e;if(e){Nm(e,d);d.A=e.getStats();A.B(11);break}return G(A,Jo(d,f,b,c,!0),12);case 12:(e=
589
590
  A.h)?(Nm(e,d),d.A=e.getStats(),e.start(),e.m.catch(function(){})):d.A=new ll;case 11:m=!e;n=Date.now()/1E3;d.A=e?e.getStats():new ll;d.aa=f;d.Xf=c||null;if(m)return G(A,k(function(){return O(function(z){return G(z,Ko(d,c),0)})},"initializeSrcEqualsDrmInner_"),20);if(d.I){A.B(15);break}return G(A,k(function(){return O(function(z){return G(z,Go(d),0)})},"initializeMediaSourceEngineInner_"),15);case 15:return G(A,k(function(){return O(function(z){return G(z,e.m,0)})},"waitForFinish"),17);case 17:d.g=
590
- e.getConfiguration();d.Gf=e.G;d.Xa=e.H;d.H=Pm(e);d.H&&d.H.setMediaElement&&d.h&&d.H.setMediaElement(d.h);d.ke=Qm(e);d.ie=e.Da;d.i=e.Jg();if(p=e.s)d.Da=p;l&&d.h&&"AUDIO"===d.h.nodeName&&(Lo(d),d.configure("manifest.disableVideo",!0));d.C=Rm(e);return G(A,k(function(){return O(function(z){return G(z,d.C.ac(d.h),0)})},"drmEngine_.attach"),18);case 18:return!(r=e.C)||d.za&&d.za==r||(d.s=Om(e),d.za=e.C,"function"!=typeof d.s.setMediaElement&&(Ad("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),
591
+ e.getConfiguration();d.Gf=e.G;d.Xa=e.H;d.H=Pm(e);d.H&&d.H.setMediaElement&&d.h&&d.H.setMediaElement(d.h);d.ke=Qm(e);d.ie=e.Aa;d.i=e.Jg();if(p=e.s)d.Aa=p;l&&d.h&&"AUDIO"===d.h.nodeName&&(Lo(d),d.configure("manifest.disableVideo",!0));d.C=Rm(e);return G(A,k(function(){return O(function(z){return G(z,d.C.ac(d.h),0)})},"drmEngine_.attach"),18);case 18:return!(r=e.C)||d.xa&&d.xa==r||(d.s=Om(e),d.xa=e.C,"function"!=typeof d.s.setMediaElement&&(Ad("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),
591
592
  d.s.setMediaElement=function(){}),"function"!=typeof d.s.setCmsdManager&&(Ad("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),d.s.setCmsdManager=function(){}),"function"!=typeof d.s.trySuggestStreams&&(Ad("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),d.s.trySuggestStreams=function(){})),u=Sm(e),w=e.ka,G(A,k(function(){return O(function(z){return G(z,Mo(d,n,w,u),0)})},"loadInner_"),19);case 19:Mm(e);A.B(14);
592
593
  break;case 20:return G(A,k(function(){return O(function(z){return G(z,No(d,n,c),0)})},"srcEqualsInner_"),14);case 14:d.dispatchEvent(zo("loaded"));case 6:xa(A);if(!e){A.B(22);break}return G(A,e.destroy(),22);case 22:d.sa=null;ya(A,0);break;case 5:v=wa(A);if(7E3==v.code){A.B(24);break}return G(A,d.yc(!1),24);case 24:throw v;}})};
593
594
  function Lo(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.Tk=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?G(e,Oo(c),2):3!=e.g?(d=e.h,G(e,c.yc(a,b),3)):e.return(d)})};
594
595
  q.Rh=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;var c=this,d;return O(function(e){return 1==e.g?G(e,Oo(c,b),2):3!=e.g?(d=e.h,G(e,c.detach(a),3)):e.return(d)})};
595
- function Oo(a,b){b=void 0===b?!1:b;var c,d;return O(function(e){if(1==e.g){c=null;if(!(a.i&&a.H&&a.Xa&&a.aa))return e.B(2);d=a.h.currentTime;a.U()&&!b&&(d=null);return G(e,Po(a,a.aa,d,a.Xf,!0,!1,!1),3)}if(2!=e.g){c=e.h;a.Lf.push(c);a.H&&a.H.setMediaElement&&a.H.setMediaElement(null);var f=c,g=a.H,h=a.Xa;f.h=a.i;f.j=g;f.H=h;f=c;g=a.za;f.i=a.s;f.C=g;c.s=a.Da;c.start();a.i=null;a.H=null;a.Xa=null;a.s=null;a.za=null}return e.return(c)})}
596
+ function Oo(a,b){b=void 0===b?!1:b;var c,d;return O(function(e){if(1==e.g){c=null;if(!(a.i&&a.H&&a.Xa&&a.aa))return e.B(2);d=a.h.currentTime;a.U()&&!b&&(d=null);return G(e,Po(a,a.aa,d,a.Xf,!0,!1,!1),3)}if(2!=e.g){c=e.h;a.Lf.push(c);a.H&&a.H.setMediaElement&&a.H.setMediaElement(null);var f=c,g=a.H,h=a.Xa;f.h=a.i;f.j=g;f.H=h;f=c;g=a.xa;f.i=a.s;f.C=g;c.s=a.Aa;c.start();a.i=null;a.H=null;a.Xa=null;a.s=null;a.xa=null}return e.return(c)})}
596
597
  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 G(f,Jo(d,a,b,c),2);(e=f.h)?e.start():Fo(d,new T(2,7,7005));return f.return(e)})};q.qg=function(){var a=this,b,c,d,e;return O(function(f){b=[];c=t(a.Lf);for(d=c.next();!d.done;d=c.next())e=d.value,e.u||b.push(e.destroy());a.Lf=[];return G(f,Promise.all(b),0)})};
597
- function Jo(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 d?l.B(2):G(l,Io(a,b),3);2!=l.g&&(d=l.h);if(f=Qo(a,d))return l.return(null);g=!1;h=!0;e&&(a.s&&a.za==a.g.abrFactory&&(h=!1),a.h&&"AUDIO"===a.h.nodeName&&(g=!0));k=Po(a,b,c,d||null,!e,g,h);e||(k=k.then(function(m){a.Lf.push(m);return m}));return l.return(k)})}
598
+ function Jo(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 d?l.B(2):G(l,Io(a,b),3);2!=l.g&&(d=l.h);if(f=Qo(a,d))return l.return(null);g=!1;h=!0;e&&(a.s&&a.xa==a.g.abrFactory&&(h=!1),a.h&&"AUDIO"===a.h.nodeName&&(g=!0));k=Po(a,b,c,d||null,!e,g,h);e||(k=k.then(function(m){a.Lf.push(m);return m}));return l.return(k)})}
598
599
  function Po(a,b,c,d,e,f,g){e=void 0===e?!0:e;f=void 0===f?!1:f;g=void 0===g?!0:g;var h,k,l,m,n,p,r,u,w,v,A,z,C,y,B;return O(function(D){if(1==D.g)return h=null,k=Ze(a.g),f&&(k.manifest.disableVideo=!0),l=function(){return h.P&&h.u?null:h},m=function(){return l()?l().getConfiguration():a.g},n=function(F,J){l()?h.configure(F,J):a.configure(F,J)},Infinity!=a.ka.width||Infinity!=a.ka.height?D.B(2):G(D,vc(),3);2!=D.g&&(p=D.h,a.ka.width=p.width,a.ka.height=p.height);r=new vi(k,a.ka,null);u={networkingEngine:a.J,
599
600
  filter:function(F){var J,L;return O(function(H){if(1==H.g)return G(H,wi(r,F),2);if(4!=H.g){J=H.h;if(!J)return H.B(0);L=zo("trackschanged");return G(H,Promise.resolve(),4)}h.dispatchEvent(L);I(H)})},makeTextStreamsForClosedCaptions:function(F){return Ro(a,F)},onTimelineRegionAdded:function(F){var J=h.I;a:{var L=t(J.g);for(var H=L.next();!H.done;H=L.next())if(H=H.value,H.schemeIdUri==F.schemeIdUri&&H.id==F.id&&H.startTime==F.startTime&&H.endTime==F.endTime){L=H;break a}L=null}null==L&&(J.g.add(F),F=
600
601
  new S("regionadd",new Map([["region",F]])),J.dispatchEvent(F))},onEvent:function(F){return h.dispatchEvent(F)},onError:function(F){return h.onError(F)},isLowLatencyMode:function(){return m().streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return m().streaming.autoLowLatencyMode},enableLowLatencyMode:function(){n("streaming.lowLatencyMode",!0)},updateDuration:function(){a.j&&h.P&&a.j.updateDuration()},newDrmInfo:function(F){var J=h.l,L=J?J.g:null;L&&J.u&&yi(r,L.keySystem,F)},onManifestUpdated:function(){var F=
601
602
  (new Map).set("isLive",a.U());h.dispatchEvent(zo("manifestupdated",F));Lm(h,!1,function(){if(a.u)a.u.onManifestUpdated(a.U())})},getBandwidthEstimate:function(){return a.s.getBandwidthEstimate()},onMetadata:function(F,J,L,H){var E=F;if("com.apple.hls.interstitial"==F&&(E="com.apple.quicktime.HLS",F={startTime:J,endTime:L,values:H},a.u))a.u.onInterstitialMetadata(a,a.h,F);F={};H=t(H);for(var K=H.next();!K.done;F={Qf:F.Qf},K=H.next())F.Qf=K.value,Lm(h,!1,function(M){return function(){So(a,J,L,E,M.Qf)}}(F))},
602
- disableStream:function(F){return a.disableStream(F,a.g.streaming.maxDisabledTime)}};w=new yl(function(){return a.Ma()});w.addEventListener("regionadd",function(F){var J=F.region;To(a,"timelineregionadded",J,h);Lm(h,!1,function(){if(a.u)a.u.onDashTimedMetadata(J)})});v=null;k.streaming.observeQualityChanges&&(v=new zl(function(){return a.Wb()}),v.addEventListener("qualitychange",function(F){Uo(a,F.quality,F.position)}),v.addEventListener("audiotrackchange",function(F){Uo(a,F.quality,F.position,!0)}));
603
+ disableStream:function(F){return a.disableStream(F,a.g.streaming.maxDisabledTime)}};w=new yl(function(){return a.Oa()});w.addEventListener("regionadd",function(F){var J=F.region;To(a,"timelineregionadded",J,h);Lm(h,!1,function(){if(a.u)a.u.onDashTimedMetadata(J)})});v=null;k.streaming.observeQualityChanges&&(v=new zl(function(){return a.Wb()}),v.addEventListener("qualitychange",function(F){Uo(a,F.quality,F.position)}),v.addEventListener("audiotrackchange",function(F){Uo(a,F.quality,F.position,!0)}));
603
604
  A=!0;z={hc:a.J,onError:function(F){return h.onError(F)},vf:function(F){Lm(h,!0,function(){a:{var J=F,L=zo("keystatuschanged");a.dispatchEvent(L);var H=Object.keys(J);1==H.length&&""==H[0]&&(H=["00"],J={"00":J[""]});L=1==H.length&&"00"==H[0];var E=!1;if(H.length){H=t(a.i.variants);for(var K=H.next();!K.done;K=H.next()){K=K.value;var M=[];K.audio&&M.push(K.audio);K.video&&M.push(K.video);M=t(M);for(var N=M.next();!N.done;N=M.next()){var Q=N.value;N=K.allowedByKeySystem;if(Q.keyIds.size){K.allowedByKeySystem=
604
605
  !0;Q=t(Q.keyIds);for(var U=Q.next();!U.done;U=Q.next())if(U=U.value,(U=J[L?"00":U])||a.C.H)K.allowedByKeySystem=K.allowedByKeySystem&&!!U&&!Ai.includes(U)}N!=K.allowedByKeySystem&&(E=!0)}}}if(E&&(Vo(a),!Wo(a)))break a;(J=a.j.j)&&!J.allowedByKeySystem&&wo(a)}})},onExpirationUpdated:function(F,J){var L=zo("expirationupdated");h.dispatchEvent(L);if((L=h.j)&&L.onExpirationUpdated)L.onExpirationUpdated(F,J)},onEvent:function(F){h.dispatchEvent(F);"drmsessionupdate"==F.type&&A&&(A=!1,F=Date.now()/1E3-h.sa,
605
606
  (a.A||h.getStats()).j=F,a.L&&Gj(a.L))}};C=to(a,l);Cg(a.J,C);y=function(){return a.cd(z)};B={config:k,hk:u,tk:w,rk:v,cd:y,gk:r,networkingEngine:C,aj:e,$i:g};h=new Km(b,d,c,B);return D.return(h)})}function Io(a,b){var c,d;return O(function(e){if(1==e.g)return c=a.g.manifest.retryParameters,G(e,dn(b,a.J,c),2);d=e.h;"application/x-mpegurl"==d&&jc()&&(d="application/vnd.apple.mpegurl");return e.return(d)})}
@@ -610,8 +611,8 @@ ap(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd),a.s.init(functi
610
611
  p.value)&&!r.segmentIndex&&m.push(r.createSegmentIndex());if(!(0<m.length)){H.B(4);break}return G(H,Promise.all(m),4);case 4:if(!k||0!=k.disabledUntilTime){H.B(2);break}if(a.H&&a.H.onInitialVariantChosen)a.H.onInitialVariantChosen(k);a.i.isLowLatency&&!a.g.streaming.lowLatencyMode&&Va("Low-latency live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");ap(a.i.presentationTimeline,
611
612
  a.g.playRangeStart,a.g.playRangeEnd);Sl(a.j,a.g.playRangeStart,a.g.playRangeEnd);u=function(E){a.G=gp(a,E);a.Lb=hp(a,E);ip(a,e,Math.max(a.i.minBufferTime,a.g.streaming.rebufferingGoal))};a.g.streaming.startAtSegmentBoundary||u(a.ra);if(l){H.B(7);break}if(!a.g.streaming.startAtSegmentBoundary){H.B(8);break}w=a.i.presentationTimeline;v=a.ra||a.h.currentTime;A=w.Ic();z=w.Xb();v<A?v=A:v>z&&(v=z);return G(H,jp(h,v),9);case 9:C=H.h,u(C);case 8:bp(a,h,!0,!1,0);case 7:return a.G.dg(),y=a.uc().find(function(E){return E.active}),
612
613
  y||((B=If(a.i.textStreams,a.Kb,a.ue,a.se)[0]||null)&&kl(a.A.h,B,!0),h&&(B?(kp(a,h.audio,B)&&(a.qa=!0),a.qa&&a.I.H.setTextVisibility(!0),lp(a)):a.qa=!1),B&&(a.g.streaming.alwaysStreamText||a.Nc())&&am(a.j,B)),G(H,a.j.start(d),10);case 10:a.g.abr.enabled&&(a.s.enable(),mp(a));Vo(a);Wo(a);a.i.variants.some(function(E){return E.primary});if((D=a.U())&&(a.g.streaming.liveSync&&a.g.streaming.liveSync.enabled||a.i.serviceDescription||a.g.streaming.liveSync.panicMode)||a.g.streaming.vodDynamicPlaybackRate)F=
613
- function(){return np(a)},a.m.o(e,"timeupdate",F);D||(J=function(){return op(a)},a.m.o(e,"timeupdate",J),op(a),a.i.nextUrl&&(0<a.g.streaming.preloadNextUrlWindow&&(L=function(){var E,K;return O(function(M){if(1==M.g){E=a.h.duration-a.h.currentTime;if(isNaN(E)||!(E<=a.g.streaming.preloadNextUrlWindow))return M.B(0);a.m.Na(e,"timeupdate",L);K=a;return G(M,a.preload(a.i.nextUrl),4)}K.sa=M.h;I(M)})},a.m.o(e,"timeupdate",L)),a.m.o(e,"ended",function(){a.load(a.sa||a.i.nextUrl)})));if(a.u)a.u.onManifestUpdated(D);
614
- a.Ga=!0;a.m.ia(e,"loadedmetadata",function(){a.A.m=Date.now()/1E3-b});I(H)}})}
614
+ function(){return np(a)},a.m.o(e,"timeupdate",F);D||(J=function(){return op(a)},a.m.o(e,"timeupdate",J),op(a),a.i.nextUrl&&(0<a.g.streaming.preloadNextUrlWindow&&(L=function(){var E,K;return O(function(M){if(1==M.g){E=a.h.duration-a.h.currentTime;if(isNaN(E)||!(E<=a.g.streaming.preloadNextUrlWindow))return M.B(0);a.m.Pa(e,"timeupdate",L);K=a;return G(M,a.preload(a.i.nextUrl),4)}K.sa=M.h;I(M)})},a.m.o(e,"timeupdate",L)),a.m.o(e,"ended",function(){a.load(a.sa||a.i.nextUrl)})));if(a.u)a.u.onManifestUpdated(D);
615
+ a.Ha=!0;a.m.ia(e,"loadedmetadata",function(){a.A.m=Date.now()/1E3-b});I(H)}})}
615
616
  function Ko(a,b){var c,d,e,f,g;return O(function(h){return 1==h.g?(c=Wc,d=Date.now()/1E3,e=!0,a.C=a.cd({hc:a.J,onError:function(k){Fo(a,k)},vf:function(){},onExpirationUpdated:function(){var k=zo("expirationupdated");a.dispatchEvent(k)},onEvent:function(k){a.dispatchEvent(k);"drmsessionupdate"==k.type&&e&&(e=!1,a.A.j=Date.now()/1E3-d)}}),a.C.configure(a.g.drm),f={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},
616
617
  g={id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:b?Le(b):"",codecs:b?Me(b):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:c.ua,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(we(g.mimeType,
617
618
  g.codecs)),b.startsWith("audio/")?(g.type=c.ha,f.audio=g):f.video=g,a.C.Z=!0,G(h,Sh(a.C,[f],[]),2)):G(h,a.C.ac(a.h),0)})}
@@ -619,16 +620,16 @@ function No(a,b,c){var d,e,f,g,h,k,l,m,n,p,r;return O(function(u){if(1==u.g)retu
619
620
  "ratechange",h),"none"!=d.preload&&a.m.ia(d,"loadedmetadata",function(){a.A.m=Date.now()/1E3-b}),d.audioTracks&&(a.m.o(d.audioTracks,"addtrack",function(){return Vo(a)}),a.m.o(d.audioTracks,"removetrack",function(){return Vo(a)}),a.m.o(d.audioTracks,"change",function(){return Vo(a)})),d.textTracks&&(a.m.o(d.textTracks,"addtrack",function(w){if(w.track)switch(w=w.track,w.kind){case "metadata":pp(a,w);break;case "chapters":ep(a,w);break;default:Vo(a)}}),a.m.o(d.textTracks,"removetrack",function(){return Vo(a)}),
620
621
  a.m.o(d.textTracks,"change",function(){return Vo(a)})),d.src=Dn(a.O,a.aa,c),(cc()||fc())&&d.load(),"none"!=d.preload&&!d.autoplay&&Ne(c)&&oc()&&d.load(),a.l=qp,a.dispatchEvent(zo("streaming")),k=new og,Kk(d,HTMLMediaElement.HAVE_METADATA,a.m,function(){a.G.dg();k.resolve()}),Kk(d,HTMLMediaElement.HAVE_CURRENT_DATA,a.m,function(){var w;return O(function(v){if(1==v.g)return rp(a),w=sp(a),w.find(function(A){return"disabled"!=A.mode})?(0<w.length&&(a.qa=!0),v.B(2)):G(v,new Promise(function(A){a.m.ia(d.textTracks,
621
622
  "change",A);(new Vb(A)).X(1)}),2);if(e)return v.return();tp(a);I(v)})}),d.error?k.reject(Eo(a)):"none"==d.preload&&(Va('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.ia(d,"error",function(){k.reject(Eo(a))}),l=new Promise(function(w,v){(new Vb(v)).X(a.g.streaming.loadTimeout)}),G(u,Promise.race([k,
622
- l]),2);if((m=a.U())&&(a.g.streaming.liveSync&&a.g.streaming.liveSync.enabled||a.g.streaming.liveSync.panicMode)||a.g.streaming.vodDynamicPlaybackRate)n=function(){return np(a)},a.m.o(d,"timeupdate",n);m||(p=function(){return op(a)},a.m.o(d,"timeupdate",p),op(a));a.u&&(a.u.onManifestUpdated(m),m&&(r=a.Ma().end,a.m.o(d,"progress",function(){var w=a.Ma().end;r!=w&&(a.u.onManifestUpdated(a.U()),r=w)})));a.Ga=!0;I(u)})}
623
+ l]),2);if((m=a.U())&&(a.g.streaming.liveSync&&a.g.streaming.liveSync.enabled||a.g.streaming.liveSync.panicMode)||a.g.streaming.vodDynamicPlaybackRate)n=function(){return np(a)},a.m.o(d,"timeupdate",n);m||(p=function(){return op(a)},a.m.o(d,"timeupdate",p),op(a));a.u&&(a.u.onManifestUpdated(m),m&&(r=a.Oa().end,a.m.o(d,"progress",function(){var w=a.Oa().end;r!=w&&(a.u.onManifestUpdated(a.U()),r=w)})));a.Ha=!0;I(u)})}
623
624
  function rp(a){var b=a.g.preferredAudioLanguage;""!=b&&a.jh(b,a.g.preferredVariantRole)}function tp(a){var b=a.g.preferredTextLanguage;""!=b&&a.kh(b,a.g.preferredTextRole,a.g.preferForcedSubs)}
624
625
  function pp(a,b){if("metadata"==b.kind){b.mode="hidden";a.m.o(b,"cuechange",function(){if(b.activeCues){for(var d=[],e={},f=t(b.activeCues),g=f.next();!g.done;e={fb:e.fb},g=f.next()){e.fb=g.value;So(a,e.fb.startTime,e.fb.endTime,e.fb.type,e.fb.value);if(a.u)a.u.onCueMetadataChange(e.fb.value);"com.apple.quicktime.HLS"==e.fb.type&&null!=e.fb.startTime&&(g=d.find(function(h){return function(k){return k.startTime==h.fb.startTime&&k.endTime==h.fb.endTime}}(e)),g||(g={startTime:e.fb.startTime,endTime:e.fb.endTime,
625
- values:[]},d.push(g)),g.values.push(e.fb.value))}d=t(d);for(e=d.next();!e.done;e=d.next())e=e.value,e.values.some(function(h){return"X-ASSET-URI"==h.key||"X-ASSET-LIST"==h.key})&&a.u&&(e.values.push({key:"CUE",description:"",data:"ONCE",mimeType:null,pictureType:null}),a.u.onInterstitialMetadata(a,a.h,e))}});var c=(new Vb(function(){var d=up(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).Qa().X(.5);a.qe.push(function(){c.stop()})}}
626
+ values:[]},d.push(g)),g.values.push(e.fb.value))}d=t(d);for(e=d.next();!e.done;e=d.next())e=e.value,e.values.some(function(h){return"X-ASSET-URI"==h.key||"X-ASSET-LIST"==h.key})&&a.u&&(e.values.push({key:"CUE",description:"",data:"ONCE",mimeType:null,pictureType:null}),a.u.onInterstitialMetadata(a,a.h,e))}});var c=(new Vb(function(){var d=up(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).Sa().X(.5);a.qe.push(function(){c.stop()})}}
626
627
  function Yo(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())So(a,f,g,"org.id3",k.value);if(a.u)a.u.onHlsTimedMetadata(e,f)}}function So(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(zo("metadata",b))}
627
- function ep(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new Vb(function(){b.mode="hidden"})).Qa().X(.5);a.qe.push(function(){c.stop()})}}q.yk=function(){for(var a=this.W;a.g;)a.release()};q.cd=function(a){return new Lh(a)};
628
+ function ep(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new Vb(function(){b.mode="hidden"})).Sa().X(.5);a.qe.push(function(){c.stop()})}}q.yk=function(){for(var a=this.W;a.g;)a.release()};q.cd=function(a){return new Lh(a)};
628
629
  function to(a,b){function c(e){b()?b().dispatchEvent(e):a.dispatchEvent(e)}function d(e){b()?Lm(b(),!0,e):e()}b||(b=function(){return null});return new yg(function(e,f,g,h){var k=b()?b().i:a.s;k&&k.segmentDownloaded(e,f,g,h)},function(e,f,g){f=(new Map).set("headers",e).set("request",f).set("requestType",g);c(zo("downloadheadersreceived",f));d(function(){if(a.ea){var h=a.ea;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],
629
630
  $n(n[1]))}}catch(v){}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],$n(u[1]))}var w=p}catch(v){w=null}w&&(h.g=w)}}}})},function(e,f,g,h){e=(new Map).set("request",e).set("error",f).set("httpResponseCode",g).set("aborted",h);c(zo("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)Kn(h,f);else switch(e){case 0:try{if(h.g.enabled){if(k.type){a:{switch(k.type){case 4:var l=
630
631
  "d";break a;case 3:case 2:l="h";break a;case 5:l="s";break a}l=void 0}h.m=l}Kn(h,f,{ot:Hn,su:!h.i})}}catch(N){Wa("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",N)}break;case Jg: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=On(k);var p=n.ot===Ln||n.ot===Fn||n.ot===Gn||n.ot===Qn,r=k.stream;if(r){var u=h.h.Ua();if(p&&(n.bl=Sn(h,r.type),n.ot!==Qn)){var w=Tn(h,r.type);n.dl=u?w/Math.abs(u):w}r.bandwidth&&(n.br=r.bandwidth/1E3);
631
- if(r.segmentIndex&&m){var v=r.segmentIndex.dc(m.endTime,!0,0>u);if(v){var A=v.next().value;if(A&&A!=m){if(!Rd(m.R(),A.R())){var z=A.R()[0],C=f.uris[0],y=new URL(z),B=new URL(C);if(y.origin!==B.origin)var D=z;else{for(var F=y.pathname.split("/").slice(1),J=B.pathname.split("/").slice(1,-1);F[0]===J[0];)F.shift(),J.shift();for(;J.length;)J.shift(),F.unshift("..");D=F.join("/")}n.nor=D}if((A.$a||A.Ha)&&(m.$a!=A.$a||m.Ha!=A.Ha)){var L=A.$a+"-";A.Ha&&(L+=A.Ha);n.nrr=L}}}var H=h.h.Ua()||1,E=Tn(h,r.type)||
632
+ if(r.segmentIndex&&m){var v=r.segmentIndex.dc(m.endTime,!0,0>u);if(v){var A=v.next().value;if(A&&A!=m){if(!Rd(m.R(),A.R())){var z=A.R()[0],C=f.uris[0],y=new URL(z),B=new URL(C);if(y.origin!==B.origin)var D=z;else{for(var F=y.pathname.split("/").slice(1),J=B.pathname.split("/").slice(1,-1);F[0]===J[0];)F.shift(),J.shift();for(;J.length;)J.shift(),F.unshift("..");D=F.join("/")}n.nor=D}if((A.$a||A.Ja)&&(m.$a!=A.$a||m.Ja!=A.Ja)){var L=A.$a+"-";A.Ja&&(L+=A.Ja);n.nrr=L}}}var H=h.h.Ua()||1,E=Tn(h,r.type)||
632
633
  500,K=r.bandwidth;var M=K?K*(m.endTime-m.startTime)/1E3/(E/H/1E3)*h.g.rtpSafetyFactor:NaN;isNaN(M)||(n.rtp=M)}}p&&n.ot!==Qn&&(n.tb=Un(h,n.ot)/1E3);Kn(h,f,n)}}catch(N){Wa("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",N)}break;case 2:case 5:case 6:Kn(h,f,{ot:"k"});break;case 4:Kn(h,f,{ot:"o"})}})},function(e,f,g,h){(e=b()?b().j:a.H)&&e.banLocation&&e.banLocation(h)},function(e,f){if(f.data){f=f.data.byteLength;var g=b()?b().getStats():a.A;g&&(g.Pe=isNaN(g.Pe)?f:g.Pe+f,0===e&&(g.ii=f))}})}
633
634
  function gp(a,b){return new Uk(a.h,a.i,a.g.streaming,b,function(){a.Lb&&fl(a.Lb,!0);a.j&&a.j.ve();a.M&&vp(a)},function(c){return a.dispatchEvent(c)})}
634
635
  function hp(a,b){b=new Zm(a.ke,a.U()||0<b);b.addEventListener("enter",function(d){To(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){To(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(To(a,"timelineregionenter",e),To(a,"timelineregionexit",e))});var c=new el(a.h);c.g.add(b);a.ie&&c.g.add(a.ie);return c}
@@ -652,12 +653,12 @@ ro(this));wp(this);return c};
652
653
  function wp(a){a.Gf=new vi(a.g,a.ka,a.C);if(a.H){var b=Ze(a.g.manifest);a.h&&"AUDIO"===a.h.nodeName&&(b.disableVideo=!0);a.H.configure(b)}a.C&&a.C.configure(a.g.drm);if(a.j){a.j.configure(a.g.streaming);try{a.l!=Ao&&xi(a.Gf,a.i)&&Vo(a)}catch(f){Fo(a,f)}a.s&&Wo(a);b=a.j.j;!b||b.allowedByApplication&&b.allowedByKeySystem||wo(a)}a.J&&(a.J.ph(a.g.streaming.forceHTTP),a.J.qh(a.g.streaming.forceHTTPS));if(a.I)if(a.I.configure(a.g.mediaSource),a.I.ka=a.g.manifest.segmentRelativeVttTiming,b=a.g.textDisplayFactory,
653
654
  a.Yf!=b){var c=b();c.configure?c.configure(a.g.textDisplayer):Ad("Text displayer w/ configure",'Text displayer should have a "configure" method!');var d=a.I,e=d.H;d.H=c;e&&(c.setTextVisibility(e.isTextVisible()),e.destroy());d.g&&(d.g.j=c);a.Yf=b;a.j&&(b=a.j,(c=b.i.get(Uc))&&Zl(b,c.stream,!0,0,!0))}else b=a.I.H,b.configure&&b.configure(a.g.textDisplayer);a.s&&(a.s.configure(a.g.abr),a.g.abr.enabled?a.s.enable():a.s.disable(),mp(a));a.M&&(b=a.g.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),
654
655
  kg(a.M,b,Math.min(.5,b/2)));a.i&&ap(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd);a.u&&a.u.configure(a.g.ads);a.O&&a.O.configure(a.g.cmcd);a.ea&&a.ea.configure(a.g.cmsd)}q.getConfiguration=function(){var a=ro(this);Jm(a,this.g,ro(this));return a};q.Zh=function(){var a=ro(this);Jm(a,this.g,ro(this));return ym(this.g,ro(this))};
655
- q.Vh=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.Ma().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.Ck=function(){for(var a in this.g)delete this.g[a];Jm(this.g,ro(this),ro(this));wp(this)};q.gd=function(){return this.l};q.Kg=function(){return this.i?this.i.type:null};q.Bj=function(){return this.h};
656
+ q.Vh=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.Oa().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.Ck=function(){for(var a in this.g)delete this.g[a];Jm(this.g,ro(this),ro(this));wp(this)};q.gd=function(){return this.l};q.Kg=function(){return this.i?this.i.type:null};q.Bj=function(){return this.h};
656
657
  q.Gb=function(){return this.J};q.fd=function(){return this.aa};q.Ve=function(){return this.u?this.u:null};q.U=function(){return this.i?this.i.presentationTimeline.U():this.h&&this.h.src?Infinity==this.h.duration:!1};q.Mc=function(){return this.i?this.i.presentationTimeline.Mc():!1};q.Lc=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};
657
- q.Ma=function(){if(this.i){if(!this.Ga&&"HLS"==this.i.type)return{start:0,end:0};var a=this.i.presentationTimeline;return{start:a.Ic(),end:a.Xb()}}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.Rj=function(){this.U()&&(this.h.currentTime=this.Ma().end)};q.ei=function(){return this.Ga};q.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};q.drmInfo=function(){return this.C?this.C.g:null};
658
+ q.Oa=function(){if(this.i){if(!this.Ha&&"HLS"==this.i.type)return{start:0,end:0};var a=this.i.presentationTimeline;return{start:a.Ic(),end:a.Xb()}}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.Rj=function(){this.U()&&(this.h.currentTime=this.Oa().end)};q.ei=function(){return this.Ha};q.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};q.drmInfo=function(){return this.C?this.C.g:null};
658
659
  q.Xd=function(){return this.C?this.C.Xd():Infinity};q.Hg=function(){return this.C?this.C.Hg():[]};q.Xe=function(){return this.C?this.C.Xe():{}};q.ce=function(){return this.M?this.M.g==jg:!1};q.Ua=function(){return this.h?this.K?this.K.i:1:0};
659
- q.Uc=function(a){var b=this;0==a?Va("A trick play rate of 0 is unsupported!"):(this.Sa.Za(),this.h.paused&&this.h.play(),this.K.set(a),this.l==dp&&(this.s.playbackRateChanged(a),Yl(this.j,1<Math.abs(a))),this.U()&&this.Sa.o(this.h,"timeupdate",function(){var c=b.h.currentTime,d=b.Ma(),e=b.g.streaming.safeSeekOffset;0<a?Math.floor(c)>=Math.floor(d.end)&&b.bd():Math.floor(c)<=Math.floor(d.start+e)&&b.bd()}))};
660
- q.bd=function(){var a=this.K.Hc();this.l==qp&&this.K.set(a);this.l==dp&&(this.K.set(a),this.s.playbackRateChanged(a),Yl(this.j,!1));this.Sa.Za()};
660
+ q.Uc=function(a){var b=this;0==a?Va("A trick play rate of 0 is unsupported!"):(this.Ia.Za(),this.h.paused&&this.h.play(),this.K.set(a),this.l==dp&&(this.s.playbackRateChanged(a),Yl(this.j,1<Math.abs(a))),this.U()&&this.Ia.o(this.h,"timeupdate",function(){var c=b.h.currentTime,d=b.Oa(),e=b.g.streaming.safeSeekOffset;0<a?Math.floor(c)>=Math.floor(d.end)&&b.bd():Math.floor(c)<=Math.floor(d.start+e)&&b.bd()}))};
661
+ q.bd=function(){var a=this.K.Hc();this.l==qp&&this.K.set(a);this.l==dp&&(this.K.set(a),this.s.playbackRateChanged(a),Yl(this.j,!1));this.Ia.Za()};
661
662
  q.Jb=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,Gf(e)){var f=yf(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 Ff(g)}):[]};
662
663
  q.uc=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=zf(d);e.active=d==a;b.push(e)}return b}return this.h&&this.h.src&&this.h.textTracks?sp(this).map(function(f){return Df(f)}):[]};q.We=function(){var a=this.ye;this.i&&(a=this.i.imageStreams);return a.map(function(b){return Af(b)})};
663
664
  q.fj=function(a){var b=this,c,d,e,f;return O(function(g){if(1==g.g){if(b.l!=dp&&b.l!=qp)return g.return(null);c=b.ye;b.i&&(c=b.i.imageStreams);return(d=c.find(function(h){return h.id==a}))?d.segmentIndex?g.B(2):G(g,d.createSegmentIndex(),2):g.return(null)}if(4!=g.g)return e=[],d.segmentIndex.qc(function(h){var k=xp(h.tilesLayout||d.tilesLayout);if(k){k=k.rows*k.Ec;for(var l=h.i-h.startTime,m=0;m<k;m++)e.push(b.Mg(a,h.startTime+l*m/k))}}),G(g,Promise.all(e),4);f=g.h;return g.return(f.filter(function(h){return h}))})};
@@ -665,11 +666,11 @@ function xp(a){return a?(a=/(\d+)x(\d+)/.exec(a))?{Ec:parseInt(a[1],10),rows:par
665
666
  q.Mg=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,r,u,w,v,A,z,C,y;return O(function(B){if(1==B.g){if(c.l!=dp&&c.l!=qp)return B.return(null);d=c.ye;c.i&&(d=c.i.imageStreams);return(e=d.find(function(D){return D.id==a}))?e.segmentIndex?B.B(2):G(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=xp(g.tilesLayout||e.tilesLayout);if(!h)return B.return(null);k=e.width||0;l=e.height||0;m=k/h.Ec;n=l/h.rows;p=h.Ec*h.rows;r=g.i-g.startTime;
666
667
  u=g.A||r/p;w=g.startTime;A=v=0;1<p&&(z=Math.floor((b-g.startTime)/u),w=g.startTime+z*u,v=z%h.Ec*m,A=Math.floor(z/h.Ec)*n);C=!1;if(y=g.u)C=!0,n=y.height,v=y.positionX,A=y.positionY,m=y.width;return B.return({segment:g,imageHeight:l,imageWidth:k,height:n,positionX:v,positionY:A,startTime:w,duration:u,uris:g.R(),width:m,sprite:C})})};
667
668
  q.lh=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&&(kl(this.A.h,b,!1),am(this.j,b),yp(this),this.Kb=b.language)}else if(this.h&&this.h.src&&this.h.textTracks){b=sp(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Bf(c)==a.id?c.mode=this.qa?"showing":"hidden":c.mode="disabled";yp(this)}};
668
- q.Af=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&&Gf(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)&&Va("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");bp(this,d,!1,b,c);this.Da=new Xf(d,
669
+ q.Af=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&&Gf(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)&&Va("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");bp(this,d,!1,b,c);this.Aa=new Xf(d,
669
670
  this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups);Wo(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,Bf(c)==a.id){zp(this,c);break}};q.hj=function(){return Ap(this.Jb())};q.Ij=function(){return Ap(this.uc())};q.gj=function(){return Array.from(Bp(this.Jb()))};q.Hj=function(){return Array.from(Bp(this.uc()))};
670
- q.jh=function(a,b,c,d,e){c=void 0===c?0:c;d=void 0===d?0:d;e=void 0===e?"":e;if(this.i&&this.G){this.Da=new Yf(a,b||"",c,"",!1,"","","",this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups,e);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;e=this.Da.create(this.i.variants);c=null;e=t(e.values());for(var f=e.next();!f.done;f=e.next())f=f.value,
671
+ q.jh=function(a,b,c,d,e){c=void 0===c?0:c;d=void 0===d?0:d;e=void 0===e?"":e;if(this.i&&this.G){this.Aa=new Yf(a,b||"",c,"",!1,"","","",this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups,e);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;e=this.Aa.create(this.i.variants);c=null;e=t(e.values());for(var f=e.next();!f.done;f=e.next())f=f.value,
671
672
  Gf(f)&&(!c||a(c,b)>a(f,b))&&(c=f);c!=b&&(c?(a=yf(c),this.Af(a,!0,d)):wo(this))}else this.h&&this.h.audioTracks&&(d=If(this.Jb(),a,b||"",!1)[0])&&this.Af(d)};q.kh=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.G){if(this.Kb=a,this.ue=b||"",this.se=c,(a=If(this.i.textStreams,this.Kb,this.ue,this.se)[0]||null)&&a!=this.j.u&&(kl(this.A.h,a,!1),this.g.streaming.alwaysStreamText||this.Nc()))am(this.j,a),yp(this)}else(a=If(this.uc(),a,b||"",c)[0])&&this.lh(a)};
672
- q.Jk=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.Da=new Yf(d.language,"",0,"",!1,"",a,"",this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups),wo(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&&zp(this,b)}};
673
+ q.Jk=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.Aa=new Yf(d.language,"",0,"",!1,"",a,"",this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups),wo(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&&zp(this,b)}};
673
674
  q.Nc=function(){var a=this.qa;return this.I&&this.l==dp?this.I.H.isTextVisible():this.h&&this.h.src&&this.h.textTracks?sp(this).some(function(b){return"showing"==b.mode}):a};q.Wh=function(){return this.h&&this.h.src&&this.h.textTracks?Cp(this).map(function(a){return Df(a)}):[]};
674
675
  q.kj=function(a){if(!this.h||!this.h.src||!this.h.textTracks)return[];var b=ad(a),c=Cp(this).filter(function(h){return ad(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};
675
676
  function sp(a){return Array.from(a.h.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function up(a){return Array.from(a.h.textTracks).filter(function(b){return"metadata"==b.kind})}function Cp(a){return Array.from(a.h.textTracks).filter(function(b){return"chapters"==b.kind})}
@@ -683,7 +684,7 @@ f.O;e=f.P;var g=f.M,h=f.W,k=f.S,l=f.A,m=f.i,n=f.m,p=f.J,r=f.j,u=hl(f.g,"playing"
683
684
  loadLatency:n,manifestTimeSeconds:p,drmTimeSeconds:r,playTime:u,pauseTime:w,bufferingTime:v,licenseTime:A,liveLatency:z,maxSegmentDuration:C,manifestSizeBytes:y,bytesDownloaded:B,nonFatalErrorCount:D,manifestPeriodCount:F,manifestGapCount:J,stateHistory:L,switchHistory:H}};
684
685
  q.Wi=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,p,r,u,w,v,A,z,C;return O(function(y){switch(y.g){case 1:if(h.l!=dp&&h.l!=qp)throw new T(1,7,7004);"subtitles"!=c&&"captions"!=c&&Va("Using a kind value different of `subtitles` or `captions` can cause unwanted issues.");if(d){y.B(2);break}return G(y,Dp(h,a),3);case 3:d=y.h;case 2:k=[];h.u&&(k=h.u.getCuePoints());if(h.l!=qp){y.B(4);break}g&&(c="forced");return G(y,Ep(h,a,b,c,d,f||"",k),5);case 5:l=ad(b);m=h.uc();if(n=m.find(function(B){return ad(B.language)==
685
686
  l&&B.label==(f||"")&&B.kind==c}))return Vo(h),y.return(n);throw new T(1,2,2012);case 4:p=Wc;r=h.h.duration;h.i&&(r=h.i.presentationTimeline.getDuration());if(Infinity==r)throw new T(1,4,4033);if(!k.length){y.B(6);break}return G(y,Fp(h,a,h.J,h.g.streaming.retryParameters),7);case 7:u=y.h,w=Gp(h,u,d,k),v=new Blob([w],{type:"text/vtt"}),a=Rj(v),d="text/vtt";case 6:A={id:h.Zf++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:al(0,r,[a]),mimeType:d||"",
686
- codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,originalLanguage:b,label:f||null,type:p.Ia,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([we(d||"",e||"")])};z=we(A.mimeType,A.codecs);C=Pe(z);if(!C)throw new T(2,2,2014,d);h.i.textStreams.push(A);Vo(h);return y.return(zf(A))}})};
687
+ codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,originalLanguage:b,label:f||null,type:p.Ka,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([we(d||"",e||"")])};z=we(A.mimeType,A.codecs);C=Pe(z);if(!C)throw new T(2,2,2014,d);h.i.textStreams.push(A);Vo(h);return y.return(zf(A))}})};
687
688
  q.Xi=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,r,u,w,v,A,z;return O(function(C){switch(C.g){case 1:if(c.l!=dp&&c.l!=qp)throw new T(1,7,7004);if(b){C.B(2);break}return G(C,Dp(c,a),3);case 3:b=C.h;case 2:if("text/vtt"!=b)throw new T(1,2,2017,a);d=Wc;e=c.h.duration;c.i&&(e=c.i.presentationTimeline.getDuration());if(Infinity==e)throw new T(1,4,4045);return G(C,Fp(c,a,c.J,c.g.streaming.retryParameters),4);case 4:f=C.h;g=Qe[b];if(!g)throw new T(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0,segmentEnd:e,
688
689
  vttOffset:0};l=Hb(f);m=h.parseMedia(l,k,a);n=[];p={};r=t(m);for(u=r.next();!u.done;p={Md:p.Md,Bc:p.Bc},u=r.next())p.Bc=u.value,p.Md=null,w=function(y){return function(){null==y.Md&&(y.Md=Oc([a],[y.Bc.payload]));return y.Md||[]}}(p),v=new Ki(p.Bc.startTime,p.Bc.endTime,w,0,null,null,0,0,Infinity),p.Bc.payload.includes("#xywh")&&(A=p.Bc.payload.split("#xywh=")[1].split(","),4===A.length&&v.Fi({height:parseInt(A[3],10),positionX:parseInt(A[0],10),positionY:parseInt(A[1],10),width:parseInt(A[2],10)})),
689
690
  n.push(v);z={id:c.Zf++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Zk(n),mimeType:b||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:d.ag,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([we(b||
@@ -694,25 +695,25 @@ function Ep(a,b,c,d,e,f,g){var h,k,l,m;return O(function(n){if(1==n.g)return"tex
694
695
  a.h.setAttribute("crossorigin","anonymous");a.h.appendChild(m);return n.return(m)})}function Fp(a,b,c,d){var e,f,g;return O(function(h){if(1==h.g){e=Jg;f=Dg([b],d);f.method="GET";var k=a.O;try{k.g.enabled&&Kn(k,f,{ot:Rn,su:!0})}catch(l){Wa("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return G(h,c.request(e,f).promise,2)}g=h.h;return h.return(g.data)})}
695
696
  function Gp(a,b,c,d){var e=Qe[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.h.duration,vttOffset:0},b=Hb(b),b=c.parseMedia(b,a,null),An(b,d);throw new T(2,2,2014,c);}q.Pk=function(a,b){this.ka.width=a;this.ka.height=b};q.gh=function(a){if(this.l==dp){var b=this.j;a=void 0===a?.1:a;if(b.m.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.ae||d.ib||d.Tb||(d.ae=!1,Wl(b,d,a));b=!0}}else b=!1;return b};
696
697
  q.Jg=function(){Va("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.yj=function(){return this.Xa};
697
- function ro(a){var b=Fm();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.gh(d))}};b.textDisplayFactory=function(){if(a.Hf){var c=a.getConfiguration();return new rn(a.h,a.Hf,c.textDisplayer)}return HTMLMediaElement.prototype.addTextTrack?new kn(a.h,"Shaka Player TextTrack"):new nn};return b}q.uh=function(a){this.Hf=a};
698
+ function ro(a){var b=Fm();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.gh(d))}};b.textDisplayFactory=function(){if(a.Hf){var c=a.getConfiguration();return new rn(a.h,a.Hf,c.textDisplayer)}return HTMLMediaElement.prototype.addTextTrack?new ln(a.h,"Shaka Player TextTrack"):new nn};return b}q.uh=function(a){this.Hf=a};
698
699
  function Ro(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 bl,l=e.closedCaptions.get(g);h={id:a.Zf++,originalId:g,groupId:null,
699
700
  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:Uc,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([we(h,"")])};b.textStreams.push(h);c.add(g)}}
700
701
  function jp(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?G(r,k.createSegmentIndex(),2):r.return(null);n=(m=k.segmentIndex.dc(l))?m.next().value:null;if(!n)return r.return(null);p=n.startTime;return r.return(p)})},G(h,e(c,b),2);if(3!=h.g)return f=h.h,G(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)})}
701
702
  function Ho(a){var b=a.ce();if(a.A&&a.M&&a.G){var c=a.K;c.j=b;dl(c);a.O&&(c=a.O,b||c.i||(c.i=!0),c.i&&b&&(c.j=!0),c.l=b);Zo(a);c=a.g.streaming.liveSync.dynamicTargetLatency.maxAttempts;if(a.g.streaming.liveSync.dynamicTargetLatency.enabled&&b&&a.Ne<c){c=a.g.streaming.liveSync.dynamicTargetLatency.maxLatency;var d=a.g.streaming.liveSync.targetLatencyTolerance,e=a.g.streaming.liveSync.dynamicTargetLatency.rebufferIncrement;a.P&&(a.P=Math.min(a.P+ ++a.Ne*e,c-d))}}b=(new Map).set("buffering",b);a.dispatchEvent(zo("buffering",
702
703
  b))}function $o(a){var b=a.h.playbackRate;0!=b&&(a.K&&a.K.set(b),b=zo("ratechange"),a.dispatchEvent(b))}
703
704
  function Zo(a){if(a.A&&a.M){var b=a.A.g,c="playing";a.M.g==jg?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(zo("statechanged",c)))}}
704
- function np(a){var b=a.h.playbackRate,c=a.U();if(a.g.streaming.vodDynamicPlaybackRate&&!c){var d=a.g.streaming.vodDynamicPlaybackRateLowBufferRate,e=a.Vh();e<=a.g.streaming.vodDynamicPlaybackRateBufferRatio?b!=d&&a.Uc(d):1==e&&b!==a.K.Hc()&&a.bd()}if(c&&(c=a.Ma(),Number.isFinite(c.end)&&!(a.h.currentTime<c.start))){d=a.g.streaming.liveSync.targetLatencyTolerance;e=a.g.streaming.liveSync.dynamicTargetLatency.enabled;var f=a.g.streaming.liveSync.dynamicTargetLatency.stabilityThreshold;if(a.g.streaming.liveSync&&
705
+ function np(a){var b=a.h.playbackRate,c=a.U();if(a.g.streaming.vodDynamicPlaybackRate&&!c){var d=a.g.streaming.vodDynamicPlaybackRateLowBufferRate,e=a.Vh();e<=a.g.streaming.vodDynamicPlaybackRateBufferRatio?b!=d&&a.Uc(d):1==e&&b!==a.K.Hc()&&a.bd()}if(c&&(c=a.Oa(),Number.isFinite(c.end)&&!(a.h.currentTime<c.start))){d=a.g.streaming.liveSync.targetLatencyTolerance;e=a.g.streaming.liveSync.dynamicTargetLatency.enabled;var f=a.g.streaming.liveSync.dynamicTargetLatency.stabilityThreshold;if(a.g.streaming.liveSync&&
705
706
  a.g.streaming.liveSync.enabled){var g=a.g.streaming.liveSync.targetLatency;var h=g+d;var k=Math.max(0,g-d);var l=a.g.streaming.liveSync.maxPlaybackRate;var m=a.g.streaming.liveSync.minPlaybackRate}else a.i&&a.i.serviceDescription&&(g=a.i.serviceDescription.targetLatency,null!=a.i.serviceDescription.targetLatency?h=a.i.serviceDescription.targetLatency+d:null!=a.i.serviceDescription.maxLatency&&(h=a.i.serviceDescription.maxLatency),null!=a.i.serviceDescription.targetLatency?k=Math.max(0,a.i.serviceDescription.targetLatency-
706
- d):null!=a.i.serviceDescription.minLatency&&(k=a.i.serviceDescription.minLatency),l=a.i.serviceDescription.maxPlaybackRate||a.g.streaming.liveSync.maxPlaybackRate,m=a.i.serviceDescription.minPlaybackRate||a.g.streaming.liveSync.minPlaybackRate);a.P||"number"!==typeof g||(a.P=g);var n=a.g.streaming.liveSync.dynamicTargetLatency.maxAttempts;e&&a.Ra&&null!==a.P&&"number"===typeof g&&a.Ne<n&&Date.now()-a.Ra>1E3*f&&(f=a.g.streaming.liveSync.dynamicTargetLatency.minLatency,a.P=Math.max(a.P-(g-f)/2,f+d),
707
- a.Ra=Date.now());e&&null!==a.P&&(h=a.P+d,k=a.P-d);g=c.end-a.h.currentTime;d=0;a.l==qp&&(e=a.h.buffered,0<e.length&&(d=e.end(e.length-1),d=Math.max(l,d-c.end)));c=a.g.streaming.liveSync.panicMode;e=1E3*a.g.streaming.liveSync.panicThreshold;f=Date.now()-a.M.h;c&&!m&&(m=a.g.streaming.liveSync.minPlaybackRate);c&&m&&f<=e?b!=m&&a.Uc(m):h&&l&&g-d>h?(b!=l&&a.Uc(l),a.Ra=null):k&&m&&g-d<k?(b!=m&&a.Uc(m),a.Ra=null):b!==a.K.Hc()&&(a.bd(),a.Ra=Date.now())}}
708
- function op(a){if(a.h){var b=!1,c=a.h.currentTime/a.h.duration;isNaN(c)||(c=Math.round(100*c),isNaN(a.S)?(a.S=c,b=!0):(c=Math.max(a.S,c),a.S!=c&&(a.S=c,b=!0)));if(b){var d;0==a.S?d=zo("started"):25==a.S?d=zo("firstquartile"):50==a.S?d=zo("midpoint"):75==a.S?d=zo("thirdquartile"):100==a.S&&(d=zo("complete"));d&&a.dispatchEvent(d)}}}function Wo(a){try{zi(a.Gf,a.i)}catch(c){return Fo(a,c),!1}var b=Hf(a.i.variants);b=a.Da.create(b);a.s.setVariants(Array.from(b.values()));return!0}
707
+ d):null!=a.i.serviceDescription.minLatency&&(k=a.i.serviceDescription.minLatency),l=a.i.serviceDescription.maxPlaybackRate||a.g.streaming.liveSync.maxPlaybackRate,m=a.i.serviceDescription.minPlaybackRate||a.g.streaming.liveSync.minPlaybackRate);a.P||"number"!==typeof g||(a.P=g);var n=a.g.streaming.liveSync.dynamicTargetLatency.maxAttempts;e&&a.Fa&&null!==a.P&&"number"===typeof g&&a.Ne<n&&Date.now()-a.Fa>1E3*f&&(f=a.g.streaming.liveSync.dynamicTargetLatency.minLatency,a.P=Math.max(a.P-(g-f)/2,f+d),
708
+ a.Fa=Date.now());e&&null!==a.P&&(h=a.P+d,k=a.P-d);g=c.end-a.h.currentTime;d=0;a.l==qp&&(e=a.h.buffered,0<e.length&&(d=e.end(e.length-1),d=Math.max(l,d-c.end)));c=a.g.streaming.liveSync.panicMode;e=1E3*a.g.streaming.liveSync.panicThreshold;f=Date.now()-a.M.h;c&&!m&&(m=a.g.streaming.liveSync.minPlaybackRate);c&&m&&f<=e?b!=m&&a.Uc(m):h&&l&&g-d>h?(b!=l&&a.Uc(l),a.Fa=null):k&&m&&g-d<k?(b!=m&&a.Uc(m),a.Fa=null):b!==a.K.Hc()&&(a.bd(),a.Fa=Date.now())}}
709
+ function op(a){if(a.h){var b=!1,c=a.h.currentTime/a.h.duration;isNaN(c)||(c=Math.round(100*c),isNaN(a.S)?(a.S=c,b=!0):(c=Math.max(a.S,c),a.S!=c&&(a.S=c,b=!0)));if(b){var d;0==a.S?d=zo("started"):25==a.S?d=zo("firstquartile"):50==a.S?d=zo("midpoint"):75==a.S?d=zo("thirdquartile"):100==a.S&&(d=zo("complete"));d&&a.dispatchEvent(d)}}}function Wo(a){try{zi(a.Gf,a.i)}catch(c){return Fo(a,c),!1}var b=Hf(a.i.variants);b=a.Aa.create(b);a.s.setVariants(Array.from(b.values()));return!0}
709
710
  function fp(a,b){b=void 0===b?!1:b;return Wo(a)?a.s.chooseVariant(b):null}function wo(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=fp(a);f&&bp(a,f,e,b,c,d)}
710
711
  function bp(a,b,c,d,e,f){f=void 0===f?!1:f;var g=a.j.j;if(b==g)d&&$l(a.j,b,d,e,!0);else{var h=a.A.h;h.h!=b&&(h.h=b,h.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));$l(a.j,b,d,e,f,c);d=null;g&&(d=yf(g));b=yf(b);c?(c=(new Map).set("oldTrack",d).set("newTrack",b),a.L&&Hj(a.L,b,a.Kg()),c=zo("adaptation",c),Hp(a,c)):Ip(a,d,b)}}
711
712
  function zp(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=Ff(c),b=Ff(b),Ip(a,c,b))}function kp(a,b,c){if(0==a.g.autoShowText)return!1;if(1==a.g.autoShowText)return!0;var d=ad(a.g.preferredTextLanguage);c=ad(c.language);if(2==a.g.autoShowText)return $c(c,d);if(3==a.g.autoShowText){if(!b)return!1;a=ad(b.language);return $c(c,d)&&!$c(a,c)}Va("Invalid autoShowText setting!");return!1}
712
713
  function Vo(a){var b=zo("trackschanged");Hp(a,b)}function Ip(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);a.L&&Hj(a.L,c,a.Kg());c=zo("variantchanged",b);Hp(a,c)}function yp(a){var b=zo("textchanged");Hp(a,b)}function lp(a){var b=zo("texttrackvisibility");Hp(a,b)}function mp(a){a.g.abr.enabled||vo(a);var b=(new Map).set("newStatus",a.g.abr.enabled);Hp(a,zo("abrstatuschanged",b))}
713
714
  function vo(a,b){b=void 0===b?!0:b;if(a.l==dp){a.Kf.stop();for(var c=t(a.i.variants),d=c.next();!d.done;d=c.next())d.value.disabledUntilTime=0;b&&Wo(a)}}
714
715
  q.disableStream=function(a,b){if(!this.g.abr.enabled||this.l===Ao||!navigator.onLine)return!1;if(this.i.variants.some(function(f){var g=f[a.type];return g&&g.id!==a.id&&!f.disabledUntilTime?"audio"==a.type?a.language===g.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.Kf.wa(1);b=this.Wb().video.reduce(function(f,g){return f+g.end-g.start},0);wo(this,!1,b,!0,!1);return!0}return!1};
715
- function Fo(a,b){var c,d,e;return O(function(f){switch(f.g){case 1:if(a.l==Ao)return f.return();1===b.severity&&a.A.L++;c=!0;if(!(a.Ga&&a.i&&a.j)||3016!=b.code&&3014!=b.code&&3015!=b.code&&3018!=b.code){f.B(2);break}ta(f,3);return G(f,tm(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&&vo(a,!1);e=zo("error",(new Map).set("detail",b));a.dispatchEvent(e);e.defaultPrevented&&(b.handled=!0);I(f)}})}
716
+ function Fo(a,b){var c,d,e;return O(function(f){switch(f.g){case 1:if(a.l==Ao)return f.return();1===b.severity&&a.A.L++;c=!0;if(!(a.Ha&&a.i&&a.j)||3016!=b.code&&3014!=b.code&&3015!=b.code&&3018!=b.code){f.B(2);break}ta(f,3);return G(f,tm(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&&vo(a,!1);e=zo("error",(new Map).set("detail",b));a.dispatchEvent(e);e.defaultPrevented&&(b.handled=!0);I(f)}})}
716
717
  function To(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(zo(b,a))}
717
718
  function Uo(a,b,c,d){d=void 0===d?!1:d;b=(new Map).set("mediaQuality",{bandwidth:b.bandwidth,audioSamplingRate:b.audioSamplingRate,codecs:b.codecs,contentType:b.contentType,frameRate:b.frameRate,height:b.height,mimeType:b.mimeType,channelsCount:b.channelsCount,pixelAspectRatio:b.pixelAspectRatio,width:b.width,label:b.label,roles:b.roles,language:b.language}).set("position",c);a.dispatchEvent(zo(d?"audiotrackchanged":"mediaqualitychanged",b))}
718
719
  function Eo(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 T(2,3,3016,b,c,a.h.error.message)}function ap(a,b,c){0<b&&(a.U()||a.Hi(b));b=a.getDuration();c<b&&(a.U()||a.vb(c))}function Hp(a,b){O(function(c){if(1==c.g)return G(c,Promise.resolve(),2);a.l!=Ao&&a.dispatchEvent(b);I(c)})}
@@ -722,12 +723,12 @@ h.push({language:l,role:m,label:n})}});return h}P("shaka.Player",X);X.prototype.
722
723
  X.prototype.getBufferedInfo=X.prototype.Wb;X.prototype.getSegmentAvailabilityDuration=X.prototype.$e;X.prototype.getPresentationStartTimeAsDate=X.prototype.$h;X.prototype.getPlayheadTimeAsDate=X.prototype.Cj;X.prototype.setTextTrackVisibility=X.prototype.Cf;X.prototype.getChapters=X.prototype.kj;X.prototype.getChaptersTracks=X.prototype.Wh;X.prototype.isTextTrackVisible=X.prototype.Nc;X.prototype.selectVariantsByLabel=X.prototype.Jk;X.prototype.selectTextLanguage=X.prototype.kh;
723
724
  X.prototype.selectAudioLanguage=X.prototype.jh;X.prototype.getTextLanguages=X.prototype.Hj;X.prototype.getAudioLanguages=X.prototype.gj;X.prototype.getTextLanguagesAndRoles=X.prototype.Ij;X.prototype.getAudioLanguagesAndRoles=X.prototype.hj;X.prototype.selectVariantTrack=X.prototype.Af;X.prototype.selectTextTrack=X.prototype.lh;X.prototype.getThumbnails=X.prototype.Mg;X.prototype.getAllThumbnails=X.prototype.fj;X.prototype.getImageTracks=X.prototype.We;X.prototype.getTextTracks=X.prototype.uc;
724
725
  X.prototype.getVariantTracks=X.prototype.Jb;X.prototype.cancelTrickPlay=X.prototype.bd;X.prototype.trickPlay=X.prototype.Uc;X.prototype.getPlaybackRate=X.prototype.Ua;X.prototype.isBuffering=X.prototype.ce;X.prototype.getKeyStatuses=X.prototype.Xe;X.prototype.getActiveSessionsMetadata=X.prototype.Hg;X.prototype.getExpiration=X.prototype.Xd;X.prototype.drmInfo=X.prototype.drmInfo;X.prototype.keySystem=X.prototype.keySystem;X.prototype.isFullyLoaded=X.prototype.ei;X.prototype.goToLive=X.prototype.Rj;
725
- X.prototype.seekRange=X.prototype.Ma;X.prototype.isAudioOnly=X.prototype.Lc;X.prototype.isInProgress=X.prototype.Mc;X.prototype.isLive=X.prototype.U;X.prototype.getAdManager=X.prototype.Ve;X.prototype.getAssetUri=X.prototype.fd;X.prototype.getNetworkingEngine=X.prototype.Gb;X.prototype.getMediaElement=X.prototype.Bj;X.prototype.getManifestType=X.prototype.Kg;X.prototype.getLoadMode=X.prototype.gd;X.prototype.resetConfiguration=X.prototype.Ck;X.prototype.getBufferFullness=X.prototype.Vh;
726
+ X.prototype.seekRange=X.prototype.Oa;X.prototype.isAudioOnly=X.prototype.Lc;X.prototype.isInProgress=X.prototype.Mc;X.prototype.isLive=X.prototype.U;X.prototype.getAdManager=X.prototype.Ve;X.prototype.getAssetUri=X.prototype.fd;X.prototype.getNetworkingEngine=X.prototype.Gb;X.prototype.getMediaElement=X.prototype.Bj;X.prototype.getManifestType=X.prototype.Kg;X.prototype.getLoadMode=X.prototype.gd;X.prototype.resetConfiguration=X.prototype.Ck;X.prototype.getBufferFullness=X.prototype.Vh;
726
727
  X.prototype.getNonDefaultConfiguration=X.prototype.Zh;X.prototype.getConfiguration=X.prototype.getConfiguration;X.prototype.configure=X.prototype.configure;X.prototype.releaseAllMutexes=X.prototype.yk;X.prototype.destroyAllPreloads=X.prototype.qg;X.prototype.preload=X.prototype.preload;X.prototype.detachAndSavePreload=X.prototype.Rh;X.prototype.unloadAndSavePreload=X.prototype.Tk;X.prototype.load=X.prototype.load;X.prototype.updateStartTime=X.prototype.Xk;X.prototype.unload=X.prototype.yc;
727
728
  X.prototype.detach=X.prototype.detach;X.prototype.attachCanvas=X.prototype.Hh;X.prototype.attach=X.prototype.ac;
728
729
  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 G(k,si(),3);case 3:b=k.h;case 2:var l={};if(Wb())for(var m in Di)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]=Wb()?!!Di[n]:Xb(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(xe));
729
730
  l={};m=t(m);for(n=m.next();!n.done;n=m.next()){n=n.value;l[n]=Pe(n)?!0:Wb()?wd(n)||(qe(n)?!0:!1):Xb(n);var p=n.split(";")[0];l[p]=l[p]||l[n]}d=l;return G(k,vc(),4);case 4:e=k.h;f={manifest:c,media:d,drm:b,hardwareResolution:e};g=Jp;for(h in g)f[h]=g[h]();return k.return(f)}})};X.isBrowserSupported=Bo;X.setAdManagerFactory=function(a){uo=a};X.registerSupportPlugin=function(a,b){Jp[a]=b};X.prototype.destroy=X.prototype.destroy;var Ao=0,qo=1,dp=2,qp=3;
730
- X.LoadMode={DESTROYED:Ao,NOT_LOADED:qo,MEDIA_SOURCE:dp,SRC_EQUALS:qp};X.version="v4.10.4";var Kp=["4","10"];Bd=new function(a){this.g=a;this.i=Cd;this.h=Dd}(new zd(Number(Kp[0]),Number(Kp[1])));var Jp={},uo=null;function Lp(){this.g=[];this.i=this.l=this.j=this.h=0}function Mp(a){return a.g.length?a.g.reduce(function(b,c){return b+c},0)/a.g.length:0};function Np(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 rd;this.m.o(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.m.o(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}q=Np.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};
731
+ X.LoadMode={DESTROYED:Ao,NOT_LOADED:qo,MEDIA_SOURCE:dp,SRC_EQUALS:qp};X.version="v4.10.5";var Kp=["4","10"];Bd=new function(a){this.g=a;this.i=Cd;this.h=Dd}(new zd(Number(Kp[0]),Number(Kp[1])));var Jp={},uo=null;function Lp(){this.g=[];this.i=this.l=this.j=this.h=0}function Mp(a){return a.g.length?a.g.reduce(function(b,c){return b+c},0)/a.g.length:0};function Np(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 rd;this.m.o(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.m.o(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}q=Np.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};
731
732
  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)};
732
733
  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)};
733
734
  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()};
@@ -736,7 +737,7 @@ Np.prototype.getPodIndex=Np.prototype.getPodIndex;Np.prototype.getTimeOffset=Np.
736
737
  Np.prototype.getDescription=Np.prototype.getDescription;Np.prototype.getTitle=Np.prototype.getTitle;Np.prototype.getPositionInSequence=Np.prototype.getPositionInSequence;Np.prototype.getSequenceLength=Np.prototype.getSequenceLength;Np.prototype.setMuted=Np.prototype.setMuted;Np.prototype.resize=Np.prototype.resize;Np.prototype.isLinear=Np.prototype.isLinear;Np.prototype.isMuted=Np.prototype.isMuted;Np.prototype.setVolume=Np.prototype.setVolume;Np.prototype.getVolume=Np.prototype.getVolume;
737
738
  Np.prototype.play=Np.prototype.play;Np.prototype.pause=Np.prototype.pause;Np.prototype.skip=Np.prototype.skip;Np.prototype.canSkipNow=Np.prototype.canSkipNow;Np.prototype.getTimeUntilSkippable=Np.prototype.getTimeUntilSkippable;Np.prototype.isSkippable=Np.prototype.isSkippable;Np.prototype.isPaused=Np.prototype.isPaused;Np.prototype.getRemainingTime=Np.prototype.getRemainingTime;Np.prototype.getMinSuggestedDuration=Np.prototype.getMinSuggestedDuration;Np.prototype.getDuration=Np.prototype.getDuration;function Op(){}P("shaka.ads.Utils",Op);Op.ADS_LOADED="ads-loaded";Op.AD_STARTED="ad-started";Op.AD_FIRST_QUARTILE="ad-first-quartile";Op.AD_MIDPOINT="ad-midpoint";Op.AD_THIRD_QUARTILE="ad-third-quartile";Op.AD_COMPLETE="ad-complete";Op.AD_STOPPED="ad-stopped";Op.AD_SKIPPED="ad-skipped";Op.AD_VOLUME_CHANGED="ad-volume-changed";Op.AD_MUTED="ad-muted";Op.AD_PAUSED="ad-paused";Op.AD_RESUMED="ad-resumed";Op.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";Op.CUEPOINTS_CHANGED="ad-cue-points-changed";
738
739
  Op.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";Op.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";Op.AD_CLICKED="ad-clicked";Op.AD_PROGRESS="ad-progress";Op.AD_BUFFERING="ad-buffering";Op.AD_IMPRESSION="ad-impression";Op.AD_DURATION_CHANGED="ad-duration-changed";Op.AD_CLOSED="ad-closed";Op.AD_LOADED="ad-loaded";Op.ALL_ADS_COMPLETED="all-ads-completed";Op.AD_LINEAR_CHANGED="ad-linear-changed";Op.AD_METADATA="ad-metadata";Op.AD_RECOVERABLE_ERROR="ad-recoverable-error";Op.AD_ERROR="ad-error";
739
- Op.AD_BREAK_READY="ad-break-ready";Op.AD_INTERACTION="ad-interaction";Op.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";Op.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";Op.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function Pp(a,b,c,d,e){var f=this;this.u=a;this.i=b;this.H=!1;this.A=this.s=null;this.I=NaN;this.l=e;this.j=null;this.h=new rd;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.G=new google.ima.AdDisplayContainer(this.u,this.i);this.G.initialize();this.m=new google.ima.AdsLoader(this.G);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.10.4");this.g=null;this.C=d||new google.ima.AdsRenderingSettings;this.h.o(this.m,
740
+ Op.AD_BREAK_READY="ad-break-ready";Op.AD_INTERACTION="ad-interaction";Op.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";Op.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";Op.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function Pp(a,b,c,d,e){var f=this;this.u=a;this.i=b;this.H=!1;this.A=this.s=null;this.I=NaN;this.l=e;this.j=null;this.h=new rd;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.G=new google.ima.AdDisplayContainer(this.u,this.i);this.G.initialize();this.m=new google.ima.AdsLoader(this.G);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.10.5");this.g=null;this.C=d||new google.ima.AdsRenderingSettings;this.h.o(this.m,
740
741
  google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(g){Qp(f,g)});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){Rp(f,g)});this.h.o(this.i,"ended",function(){f.m.contentComplete()});this.h.ia(this.i,"play",function(){f.H=!0})}Pp.prototype.configure=function(a){this.s=a};Pp.prototype.stop=function(){this.g&&this.g.stop();this.u&&qn(this.u)};
741
742
  Pp.prototype.release=function(){this.stop();this.A&&this.A.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy();this.G.destroy()};function Rp(a,b){b.getError();b=(new Map).set("originalEvent",b);a.l(new S("ad-error",b));Sp(a,null);a.l(new S("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
742
743
  function Qp(a,b){a.l(new S("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.I)));if(a.s.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.C);a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume);a.h.o(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.o(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.C);a.l(new S("ima-ad-manager-loaded",(new Map).set("imaAdManager",
@@ -755,14 +756,14 @@ q.getTitle=function(){return""};q.getDescription=function(){return""};q.getVastM
755
756
  Wp.prototype.release=Wp.prototype.release;Wp.prototype.getPodIndex=Wp.prototype.getPodIndex;Wp.prototype.getTimeOffset=Wp.prototype.getTimeOffset;Wp.prototype.getMediaUrl=Wp.prototype.getMediaUrl;Wp.prototype.getAdvertiserName=Wp.prototype.getAdvertiserName;Wp.prototype.getCreativeAdId=Wp.prototype.getCreativeAdId;Wp.prototype.getAdId=Wp.prototype.getAdId;Wp.prototype.getVastMediaWidth=Wp.prototype.getVastMediaWidth;Wp.prototype.getVastMediaHeight=Wp.prototype.getVastMediaHeight;
756
757
  Wp.prototype.getVastMediaBitrate=Wp.prototype.getVastMediaBitrate;Wp.prototype.getDescription=Wp.prototype.getDescription;Wp.prototype.getTitle=Wp.prototype.getTitle;Wp.prototype.getPositionInSequence=Wp.prototype.getPositionInSequence;Wp.prototype.getSequenceLength=Wp.prototype.getSequenceLength;Wp.prototype.setMuted=Wp.prototype.setMuted;Wp.prototype.resize=Wp.prototype.resize;Wp.prototype.isLinear=Wp.prototype.isLinear;Wp.prototype.isMuted=Wp.prototype.isMuted;Wp.prototype.setVolume=Wp.prototype.setVolume;
757
758
  Wp.prototype.getVolume=Wp.prototype.getVolume;Wp.prototype.play=Wp.prototype.play;Wp.prototype.pause=Wp.prototype.pause;Wp.prototype.skip=Wp.prototype.skip;Wp.prototype.canSkipNow=Wp.prototype.canSkipNow;Wp.prototype.getTimeUntilSkippable=Wp.prototype.getTimeUntilSkippable;Wp.prototype.isSkippable=Wp.prototype.isSkippable;Wp.prototype.isPaused=Wp.prototype.isPaused;Wp.prototype.getRemainingTime=Wp.prototype.getRemainingTime;Wp.prototype.getMinSuggestedDuration=Wp.prototype.getMinSuggestedDuration;
758
- Wp.prototype.getDuration=Wp.prototype.getDuration;function Xp(a,b,c,d){var e=this;this.H=a;this.C=b;this.i=c;this.G=null;this.l=!0;this.u=this.i;this.g=d;this.I=new Set;this.A=new Set;this.s=new Map;this.h=new X;Yp(this);this.K=new rd;this.j=new rd;this.J=!1;this.m=null;this.K.o(this.i,"timeupdate",function(){if(!e.J){var f=null==e.m;e.m=e.i.currentTime;(f=Zp(e,f))&&$p(e,f,1,1,Date.now())}});(new Vb(function(){var f,g,h,k,l,m,n,p,r,u;return O(function(w){switch(w.g){case 1:if(!e.A.size||e.J||null==e.m){w.B(0);break}f=!1;g=Array.from(e.A);h=e.C.Ma();
759
+ Wp.prototype.getDuration=Wp.prototype.getDuration;function Xp(a,b,c,d){var e=this;this.H=a;this.C=b;this.i=c;this.G=null;this.l=!0;this.u=this.i;this.g=d;this.I=new Set;this.A=new Set;this.s=new Map;this.h=new X;Yp(this);this.K=new rd;this.j=new rd;this.J=!1;this.m=null;this.K.o(this.i,"timeupdate",function(){if(!e.J){var f=null==e.m;e.m=e.i.currentTime;(f=Zp(e,f))&&$p(e,f,1,1,Date.now())}});(new Vb(function(){var f,g,h,k,l,m,n,p,r,u;return O(function(w){switch(w.g){case 1:if(!e.A.size||e.J||null==e.m){w.B(0);break}f=!1;g=Array.from(e.A);h=e.C.Oa();
759
760
  k=t(g);l=k.next();case 3:if(l.done){w.B(5);break}m=l.value;n=m.endTime||m.startTime;if(!(1<=h.start-n)){p=m.startTime-e.m;0<p&&10>=p&&(e.s.has(m)||e.s.set(m,e.h.preload(m.uri)));w.B(4);break}if(!e.s.has(m)){w.B(7);break}return G(w,e.s.get(m),8);case 8:(r=w.h)&&r.destroy(),e.s.delete(m);case 7:u=JSON.stringify(m),e.I.has(u)&&e.I.delete(u),e.A.delete(m),f=!0;case 4:l=k.next();w.B(3);break;case 5:f&&aq(e),I(w)}})})).wa(1)}
760
761
  Xp.prototype.configure=function(a){this.H&&this.l==a.supportsMultipleMediaElements&&((this.l=!a.supportsMultipleMediaElements)?(this.u=this.i,this.G&&(this.G.parentElement&&this.H.removeChild(this.G),this.G=null)):(this.G||(a=document.createElement(this.i.tagName),a.autoplay=!0,a.style.position="absolute",a.style.top="0",a.style.left="0",a.style.width="100%",a.style.height="100%",a.style.backgroundColor="rgb(0, 0, 0)",a.setAttribute("playsinline",""),this.G=a),this.u=this.G))};
761
762
  Xp.prototype.stop=function(){this.j&&this.j.Za();this.I.clear();this.A.clear();this.h.qg();this.s.clear();this.h.detach();this.J=!1;this.m=null};Xp.prototype.release=function(){this.stop();this.K&&this.K.release();this.j&&this.j.release();this.H&&qn(this.H);this.h.destroy()};
762
763
  function bq(a,b){var c,d,e,f,g,h,k,l;O(function(m){if(1==m.g){if(a.C.gd()==qp&&a.l)return Va("Unsupported interstitial when using single media element",b),m.return();Yp(a);c=!1;return G(m,cq(a,b),2)}d=m.h;if(d.length)for(e=t(d),f=e.next();!f.done;f=e.next())(g=f.value,h=JSON.stringify(g),a.I.has(h))||(c=!0,a.I.add(h),a.A.add(g),k=!1,b.ic&&null==a.m?k=!0:0!=g.startTime||g.jg?null!=a.m&&(l=b.startTime-a.m,0<l&&10>=l&&(k=!0)):k=!0,k&&(a.s.has(g)||a.s.set(g,a.h.preload(g.uri))));else Va("Unsupported interstitial",
763
764
  b);c&&aq(a);I(m)})}function Zp(a,b,c){c=void 0===c?0:c;var d=0,e=null;if(a.A.size&&null!=a.m){var f=a.i.ended,g=Array.from(a.A).sort(function(l,m){return m.startTime-l.startTime});g=t(g);for(var h=g.next();!h.done;h=g.next()){h=h.value;var k=!1;b?k=h.ic:f?k=h.Pc:h.ic||h.Pc||(k=a.m-Math.round(1E3*h.startTime)/1E3,k=0<k&&(1>=k||!h.jg));if(k){if(d==c){e=h;break}d++}}}return e}
764
765
  function $p(a,b,c,d,e,f){f=void 0===f?0:f;var g,h,k,l,m,n,p,r,u,w,v,A,z,C;O(function(y){switch(y.g){case 1:g=Date.now();!a.u.parentElement&&a.H&&a.H.appendChild(a.u);1==d&&1==c&&(c=Array.from(a.A).filter(function(B){return b.ic?B.ic==b.ic:b.Pc?B.Pc==b.Pc:.001>Math.abs(B.startTime-b.startTime)}).length);b.once&&(f++,a.A.delete(b),aq(a));a.J=!0;if(!a.l||1!=d){y.B(2);break}a.g(new S("ad-content-pause-requested",(new Map).set("saveLivePosition",!0)));h=new og;k=function(B){return O(function(D){if(1==
765
- D.g)return"detach"!=B.state?D.B(0):rc()?G(D,new Promise(function(F){return(new Vb(F)).X(.1)}),3):D.B(3);h.resolve();a.j.Na(a.C,"onstatechange",k);I(D)})};a.j.o(a.C,"onstatechange",k);return G(y,h,2);case 2:return a.l||(a.i.pause(),null!=b.ud&&0!=b.ud&&(a.i.currentTime+=b.ud)),l=!1,m=null,n=function(){if(!a.l&&null==b.ud)if(b.Df&&b.endTime)a.i.currentTime!=b.endTime&&(a.i.currentTime=b.endTime);else{var B=Date.now();a.i.currentTime+=(B-e)/1E3;e=B}},p=function(){var B,D;return O(function(F){if(1==F.g)return n(),
766
+ D.g)return"detach"!=B.state?D.B(0):rc()?G(D,new Promise(function(F){return(new Vb(F)).X(.1)}),3):D.B(3);h.resolve();a.j.Pa(a.C,"onstatechange",k);I(D)})};a.j.o(a.C,"onstatechange",k);return G(y,h,2);case 2:return a.l||(a.i.pause(),null!=b.ud&&0!=b.ud&&(a.i.currentTime+=b.ud)),l=!1,m=null,n=function(){if(!a.l&&null==b.ud)if(b.Df&&b.endTime)a.i.currentTime!=b.endTime&&(a.i.currentTime=b.endTime);else{var B=Date.now();a.i.currentTime+=(B-e)/1E3;e=B}},p=function(){var B,D;return O(function(F){if(1==F.g)return n(),
766
767
  m&&m.stop(),(B=Zp(a,b.ic,d-f))?(a.g(new S("ad-stopped")),a.j.Za(),$p(a,B,c,++d,e,f),F.B(0)):a.l?G(F,a.h.detach(),4):G(F,a.h.yc(),4);a.l&&(D=b.ud,null==D&&(D=b.Df&&b.endTime?b.endTime-(a.m||0):(Date.now()-e)/1E3),a.g(new S("ad-content-resume-requested",(new Map).set("offset",D))));a.g(new S("ad-stopped"));a.j.Za();a.J=!1;a.l||(n(),a.i.ended||a.i.play());I(F)})},r=function(B){return O(function(D){if(l)return D.return();l=!0;a.g(new S("ad-error",(new Map).set("originalEvent",B)));return G(D,p(),0)})},
767
768
  u=function(){return O(function(B){if(1==B.g){if(l)return B.return();l=!0;return G(B,p(),2)}a.g(new S("ad-complete"));I(B)})},w=function(){return O(function(B){if(l)return B.return();l=!0;a.g(new S("ad-skipped"));return G(B,p(),0)})},v=new Wp(a.u,b.isSkippable,w,c,d),a.l||(v.setMuted(a.i.muted),v.setVolume(a.i.volume)),a.g(new S("ad-started",(new Map).set("ad",v))),v.canSkipNow()&&a.g(new S("ad-skip-state-changed")),a.j.ia(a.h,"error",r),a.j.ia(a.h,"firstquartile",function(){n();a.g(new S("ad-first-quartile"))}),
768
769
  a.j.ia(a.h,"midpoint",function(){n();a.g(new S("ad-midpoint"))}),a.j.ia(a.h,"thirdquartile",function(){n();a.g(new S("ad-third-quartile"))}),a.j.ia(a.h,"complete",u),a.j.o(a.u,"play",function(){a.g(new S("ad-resumed"))}),a.j.o(a.u,"pause",function(){a.g(new S("ad-paused"))}),a.j.o(a.u,"volumechange",function(){a.u.muted?a.g(new S("ad-muted")):a.g(new S("ad-volume-changed"))}),ta(y,4),b.eh&&(m=(new Vb(function(){v.skip()})).X(b.eh)),Yp(a),G(y,a.h.ac(a.u),6);case 6:return a.s.has(b)?G(y,a.s.get(b),
@@ -776,7 +777,7 @@ q.getVolume=function(){return this.g.volume};q.setVolume=function(a){this.g.volu
776
777
  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",hq);hq.prototype.release=hq.prototype.release;hq.prototype.getPodIndex=hq.prototype.getPodIndex;hq.prototype.getTimeOffset=hq.prototype.getTimeOffset;
777
778
  hq.prototype.getMediaUrl=hq.prototype.getMediaUrl;hq.prototype.getAdvertiserName=hq.prototype.getAdvertiserName;hq.prototype.getCreativeAdId=hq.prototype.getCreativeAdId;hq.prototype.getAdId=hq.prototype.getAdId;hq.prototype.getVastMediaWidth=hq.prototype.getVastMediaWidth;hq.prototype.getVastMediaHeight=hq.prototype.getVastMediaHeight;hq.prototype.getVastMediaBitrate=hq.prototype.getVastMediaBitrate;hq.prototype.getDescription=hq.prototype.getDescription;hq.prototype.getTitle=hq.prototype.getTitle;
778
779
  hq.prototype.getPositionInSequence=hq.prototype.getPositionInSequence;hq.prototype.getSequenceLength=hq.prototype.getSequenceLength;hq.prototype.setMuted=hq.prototype.setMuted;hq.prototype.resize=hq.prototype.resize;hq.prototype.isLinear=hq.prototype.isLinear;hq.prototype.isMuted=hq.prototype.isMuted;hq.prototype.setVolume=hq.prototype.setVolume;hq.prototype.getVolume=hq.prototype.getVolume;hq.prototype.play=hq.prototype.play;hq.prototype.pause=hq.prototype.pause;hq.prototype.skip=hq.prototype.skip;
779
- hq.prototype.canSkipNow=hq.prototype.canSkipNow;hq.prototype.getTimeUntilSkippable=hq.prototype.getTimeUntilSkippable;hq.prototype.isSkippable=hq.prototype.isSkippable;hq.prototype.isPaused=hq.prototype.isPaused;hq.prototype.getRemainingTime=hq.prototype.getRemainingTime;hq.prototype.getMinSuggestedDuration=hq.prototype.getMinSuggestedDuration;hq.prototype.getDuration=hq.prototype.getDuration;var iq=/(?:(\d{1,}):)?(\d{2}):(\d{2})((\.(\d{1,3})))?/g;function jq(a,b,c,d){this.C=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.M=this.G=this.g=null;this.H=new Map;this.m=[];this.u=[];this.I="";this.P=!0;this.J="";this.s=new rd}jq.prototype.stop=function(){for(var a=t(this.m),b=a.next();!b.done;b=a.next())b=b.value,this.s.Na(b.target,b.type,b.listener);kq(this);this.m=[];this.u=[];this.I="";this.P=!0;this.J="";this.A=null;this.j=[];this.O=[];this.H.clear()};
780
+ hq.prototype.canSkipNow=hq.prototype.canSkipNow;hq.prototype.getTimeUntilSkippable=hq.prototype.getTimeUntilSkippable;hq.prototype.isSkippable=hq.prototype.isSkippable;hq.prototype.isPaused=hq.prototype.isPaused;hq.prototype.getRemainingTime=hq.prototype.getRemainingTime;hq.prototype.getMinSuggestedDuration=hq.prototype.getMinSuggestedDuration;hq.prototype.getDuration=hq.prototype.getDuration;var iq=/(?:(\d{1,}):)?(\d{2}):(\d{2})((\.(\d{1,3})))?/g;function jq(a,b,c,d){this.C=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.M=this.G=this.g=null;this.H=new Map;this.m=[];this.u=[];this.I="";this.P=!0;this.J="";this.s=new rd}jq.prototype.stop=function(){for(var a=t(this.m),b=a.next();!b.done;b=a.next())b=b.value,this.s.Pa(b.target,b.type,b.listener);kq(this);this.m=[];this.u=[];this.I="";this.P=!0;this.J="";this.A=null;this.j=[];this.O=[];this.H.clear()};
780
781
  jq.prototype.release=function(){this.stop();this.s&&this.s.release()};jq.prototype.onManifestUpdated=function(a){this.K=a;""!=this.I&&(lq(this,this.I,this.P),this.P=!1)};jq.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};
781
782
  function mq(a,b,c){var d,e,f,g,h,k,l,m,n,p,r;O(function(u){if(1==u.g)return d=Dg([b],mg()),d.method="POST",c&&(e=JSON.stringify(c),d.body=Dc(e)),f=a.L.request(7,d),ta(u,2),G(u,f.promise,4);if(2!=u.g){g=u.h;h=zc(g.data);k=JSON.parse(h);if(k.manifestUrl&&k.trackingUrl)l=new nb(b),m=new nb(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 nb(k.manifestUrl),a.l.resolve(l.resolve(r).toString()),a.l=null;else throw Error("Insufficient data from MediaTailor.");
782
783
  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;I(u)})}
@@ -789,7 +790,7 @@ function qq(a){if(a.h.duration&&(a.g||a.j.length)){var b=a.h.currentTime,c=!1;if
789
790
  e=a.g.getDuration();a.g.canSkipNow()&&0<d&&0<e&&sq(a,"skipStateChanged");0<e&&(0>=d||d>e)&&kq(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}kq(a);a.M=e;a.g=new hq(g,f+1,e.ads.length,!0,a.h);a.G=g;0===f&&sq(a,"breakStart");tq(a);break}}}if(!a.g)for(d=
790
791
  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(pq(g.nonLinearAdList[0]));if(h<=b&&k&&k.length){kq(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||
791
792
  0)+"%";m.style.maxWidth=100-(l.placeholder.left||0)+"%";m.style.objectFit="contain";m.style.position="absolute";h.C.appendChild(m)}a.M=e;a.g=new hq(g,f+1,e.ads.length,!1,a.h);a.G=g;0===f&&sq(a,"breakStart");tq(a);break}}}c&&!a.g&&(b=a.h.currentTime,a.A&&a.A>b&&(a.h.currentTime=a.A),a.A=null)}}}
792
- function kq(a){if(a.g){for(;a.C.lastChild;)a.C.removeChild(a.C.firstChild);a.K||a.O.push(a.G.adId);var b=a.g.m;(void 0===b?0:b)?sq(a,"skip"):sq(a,"complete");b=t(a.m);for(var c=b.next();!c.done;c=b.next())c=c.value,a.s.Na(c.target,c.type,c.listener);a.m=[];a.u=[];b=a.g.getPositionInSequence();c=a.g.getSequenceLength();b===c&&sq(a,"breakEnd");a.g=null;a.G=null;a.M=null}}
793
+ function kq(a){if(a.g){for(;a.C.lastChild;)a.C.removeChild(a.C.firstChild);a.K||a.O.push(a.G.adId);var b=a.g.m;(void 0===b?0:b)?sq(a,"skip"):sq(a,"complete");b=t(a.m);for(var c=b.next();!c.done;c=b.next())c=c.value,a.s.Pa(c.target,c.type,c.listener);a.m=[];a.u=[];b=a.g.getPositionInSequence();c=a.g.getSequenceLength();b===c&&sq(a,"breakEnd");a.g=null;a.G=null;a.M=null}}
793
794
  function tq(a){var b=!1;a.h.paused?b=!0:(sq(a,"impression"),sq(a,"start"));a.m.push({target:a.h,type:"volumechange",listener:function(){a.h.muted&&sq(a,"mute")}});a.m.push({target:a.h,type:"volumechange",listener:function(){a.h.muted||sq(a,"unmute")}});a.m.push({target:a.h,type:"play",listener:function(){b?(sq(a,"impression"),sq(a,"start"),b=!1):sq(a,"resume")}});a.m.push({target:a.h,type:"pause",listener:function(){sq(a,"pause")}});for(var c=t(a.m),d=c.next();!d.done;d=c.next())d=d.value,a.s.o(d.target,
794
795
  d.type,d.listener)}
795
796
  function sq(a,b){var c=a.G.trackingEvents.find(function(e){return e.eventType==b});c||(c=a.M.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=Dg([d],mg()),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;
@@ -810,8 +811,8 @@ q.initClientSide=function(a,b,c){var d=this;if(!window.google||!google.ima||!goo
810
811
  q.onAssetUnload=function(){this.j&&this.j.stop();this.i&&this.i.stop();this.h&&this.h.stop();this.g&&this.g.stop();this.dispatchEvent(new S("ad-stopped"));this.dispatchEvent(new S("ad-content-attach-requested"));this.m=new Lp};q.requestClientSideAds=function(a){if(!this.i)throw new T(1,10,10001);var b=this.i;b.g&&b.g.destroy();b.m&&b.m.contentComplete();b.I=Date.now()/1E3;b.m.requestAds(a)};
811
812
  q.updateClientSideAdsRenderingSettings=function(a){if(!this.i)throw new T(1,10,10001);var b=this.i;b.C=a;b.g&&b.g.updateAdsRenderingSettings(b.C)};q.initMediaTailor=function(a,b,c){var d=this;this.h&&this.h.release();this.h=new jq(a,b,c,function(e){return yq(d,e)})};q.requestMediaTailorStream=function(a,b,c){if(!this.h)throw new T(1,10,10005);var d=this.h;c=void 0===c?"":c;d.l?a=Promise.reject(new T(1,10,10004)):(d.l=new og,mq(d,a,b),d.J=c||"",d.S=Date.now()/1E3,a=d.l);return a};
812
813
  q.addMediaTailorTrackingUrl=function(a){if(!this.h)throw new T(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 T(2,10,10002);this.g&&this.g.release();this.g=new vq(a,b,this.s,function(d){return yq(c,d)});this.g.configure(this.l)};
813
- q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new T(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Va('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.10.4";c=this.g;c.j?a=Promise.reject(new T(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
814
- (c.I=!0),c.j=new og,c.g.requestStream(a),c.C=b||"",c.H=Date.now()/1E3,a=c.j);return a};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new T(1,10,10003);(a.mpt||a.mpv)&&Va('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.10.4";this.g.g.replaceAdTagParameters(a)};
814
+ q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new T(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Va('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.10.5";c=this.g;c.j?a=Promise.reject(new T(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
815
+ (c.I=!0),c.j=new og,c.g.requestStream(a),c.C=b||"",c.H=Date.now()/1E3,a=c.j);return a};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new T(1,10,10003);(a.mpt||a.mpv)&&Va('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.10.5";this.g.g.replaceAdTagParameters(a)};
815
816
  q.getServerSideCuePoints=function(){Ad("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.m;return{loadTimes:a.g,averageLoadTime:Mp(a),started:a.h,playedCompletely:a.j,skipped:a.l,errors:a.i}};q.onManifestUpdated=function(a){if(this.h)this.h.onManifestUpdated(a)};
816
817
  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)};q.onInterstitialMetadata=function(a,b,c){this.j||this.initInterstitial(null,a,b);this.j&&bq(this.j,c)};
817
818
  function yq(a,b){if(b&&b.type)switch(b.type){case "ads-loaded":a.m.g.push(b.loadTime);break;case "ad-started":a.m.h++;break;case "ad-complete":a.m.j++;break;case "ad-skipped":a.m.l++;break;case "ad-error":a.m.i++}a.dispatchEvent(b)}P("shaka.ads.AdManager",xq);xq.prototype.onInterstitialMetadata=xq.prototype.onInterstitialMetadata;xq.prototype.onCueMetadataChange=xq.prototype.onCueMetadataChange;xq.prototype.onHlsTimedMetadata=xq.prototype.onHlsTimedMetadata;xq.prototype.onDashTimedMetadata=xq.prototype.onDashTimedMetadata;
@@ -826,29 +827,29 @@ function Bq(a){return{length:a.length,start:function(b){return a.start[b]},end:f
826
827
  var Cq="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),Dq="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),Eq=["loop","playbackRate"],Fq=["pause","play"],Gq={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getImageTracks:2,getThumbnails:2,
827
828
  isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10,getManifestType:10,isFullyLoaded:1},Hq={getConfiguration:4,getStats:5,getTextTracks:2,getVariantTracks:2},Iq={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20,getSegmentAvailabilityDuration:20},Jq=[["getConfiguration","configure"]],Kq=[["isTextTrackVisible","setTextTrackVisibility"]],Lq="addChaptersTrack addTextTrackAsync addThumbnailsTrack cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),
828
829
  Mq=["attach","attachCanvas","detach","load","unload"];function Nq(a,b,c,d,e,f,g){var h=this;this.I=a;this.L=g;this.l=new Vb(b);this.M=c;this.u=!1;this.A=d;this.H=e;this.O=f;this.h=this.m=!1;this.K="";this.s=null;this.C=function(){return Oq(h)};this.G=function(k,l){k=Aq(l);switch(k.type){case "event":var m=k.targetName,n=Pa(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.M(),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 T(p.severity,p.category,
829
- 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;Pq.add(this)}q=Nq.prototype;q.destroy=function(){Pq.delete(this);Qq(this);Rq&&Sq(this);this.l&&(this.l.stop(),this.l=null);this.H=this.A=null;this.h=this.m=!1;this.G=this.C=this.j=this.i=this.g=this.s=null;return Promise.resolve()};q.Pa=function(){return this.h};q.yf=function(){return this.K};
830
- q.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.l.Qa();var a=new chrome.cast.SessionRequest(this.I,[],null,this.L,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=t(Pq),d=c.next();!d.done;d=c.next()){d=d.value;var e=b;d.j=new og;d.u=!0;Tq(d,e)}},function(b){for(var c=t(Pq),d=c.next();!d.done;d=c.next())d=d.value,Uq="available"==b,d.l.Qa()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});Uq&&this.l.X(Vq);(a=Rq)&&
830
+ 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;Pq.add(this)}q=Nq.prototype;q.destroy=function(){Pq.delete(this);Qq(this);Rq&&Sq(this);this.l&&(this.l.stop(),this.l=null);this.H=this.A=null;this.h=this.m=!1;this.G=this.C=this.j=this.i=this.g=this.s=null;return Promise.resolve()};q.Ra=function(){return this.h};q.yf=function(){return this.K};
831
+ q.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.l.Sa();var a=new chrome.cast.SessionRequest(this.I,[],null,this.L,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=t(Pq),d=c.next();!d.done;d=c.next()){d=d.value;var e=b;d.j=new og;d.u=!0;Tq(d,e)}},function(b){for(var c=t(Pq),d=c.next();!d.done;d=c.next())d=d.value,Uq="available"==b,d.l.Sa()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});Uq&&this.l.X(Vq);(a=Rq)&&
831
832
  a.status!=chrome.cast.SessionStatus.STOPPED?(this.j=new og,this.u=!0,Tq(this,a)):Rq=null}else window.__onGCastApiAvailable!==Wq&&(Xq=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=Wq)};q.mh=function(a){this.s=a;this.h&&Yq(this,{type:"appData",appData:this.s})};
832
833
  q.cast=function(){var a=this;return O(function(b){if(!a.m)throw new T(1,8,8E3);if(!Uq)throw new T(1,8,8001);if(a.h)throw new T(1,8,8002);a.j=new og;chrome.cast.requestSession(function(c){return Tq(a,c)},function(c){return Zq(a,c)});return G(b,a.j,0)})};function $q(a){a.h&&chrome.cast.requestSession(function(b){return Tq(a,b)},function(b){return Zq(a,b)})}q.ed=function(){if(this.h){Qq(this);if(Rq){Sq(this);try{Rq.stop(function(){},function(){})}catch(a){}Rq=null}Oq(this)}};
833
834
  q.get=function(a,b){var c=this;if("video"==a){if(Fq.includes(b))return function(){return c.ti.apply(c,[a,b].concat(x(Ga.apply(0,arguments))))}}else if("player"==a){if(Iq[b]&&!this.get("player","isLive")())return function(){};if(Lq.includes(b))return function(){return c.ti.apply(c,[a,b].concat(x(Ga.apply(0,arguments))))};if(Mq.includes(b))return function(){return c.zk.apply(c,[a,b].concat(x(Ga.apply(0,arguments))))};if(Gq[b]||Hq[b])return function(){return c.g[a][b]}}return this.g[a][b]};
834
835
  q.set=function(a,b,c){this.g[a][b]=c;Yq(this,{type:"set",targetName:a,property:b,value:c})};function Tq(a,b){var c=a.O();Rq=b;b.addUpdateListener(a.C);b.addMessageListener("urn:x-cast:com.google.shaka.v2",a.G);Oq(a);Yq(a,{type:"init",initState:c,appData:a.s});a.j.resolve()}function Zq(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.j.reject(new T(2,8,c,b))}
835
836
  q.ti=function(a,b){Yq(this,{type:"call",targetName:a,methodName:b,args:Ga.apply(2,arguments)})};q.zk=function(a,b){var c=Ga.apply(2,arguments),d=new og,e=this.J.toString();this.J++;this.i[e]=d;try{Yq(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function Sq(a){var b=Rq;b.removeUpdateListener(a.C);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G)}
836
- function Oq(a){var b=Rq?"connected"==Rq.status:!1;if(a.h&&!b){a.H();for(var c in a.g)a.g[c]={};Qq(a)}a.h=b;a.K=b?Rq.receiver.friendlyName:"";a.l.Qa()}function Qq(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new T(1,7,7E3))}}function Yq(a,b){b=zq(b);var c=Rq;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},ab)}catch(d){throw b=new T(2,8,8005,d),c=new S("error",(new Map).set("detail",b)),a.A("player",c),a.ed(),b;}}var Vq=.02,Uq=!1,Rq=null,Xq=null,Pq=new Set;
837
+ function Oq(a){var b=Rq?"connected"==Rq.status:!1;if(a.h&&!b){a.H();for(var c in a.g)a.g[c]={};Qq(a)}a.h=b;a.K=b?Rq.receiver.friendlyName:"";a.l.Sa()}function Qq(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new T(1,7,7E3))}}function Yq(a,b){b=zq(b);var c=Rq;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},ab)}catch(d){throw b=new T(2,8,8005,d),c=new S("error",(new Map).set("detail",b)),a.A("player",c),a.ed(),b;}}var Vq=.02,Uq=!1,Rq=null,Xq=null,Pq=new Set;
837
838
  function Wq(a){Xq?window.__onGCastApiAvailable=Xq:delete window.__onGCastApiAvailable;Xq=null;if(a)for(var b=t(Pq),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function ar(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.s=this.j=this.u=this.l=null;this.G=c;this.C=d;this.A=new Map;this.g=new Nq(c,function(){return br(e)},function(){return cr(e)},function(f,g){return dr(e,f,g)},function(){return er(e)},function(){return fr(e)},d);gr(this)}pa(ar,gb);q=ar.prototype;
838
- q.destroy=function(a){a&&this.g.ed();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.vc=function(){return this.l};q.hd=function(){return this.u};q.ig=function(){return this.g.m&&Uq};q.Pa=function(){return this.g.Pa()};q.yf=function(){return this.g.yf()};
839
+ q.destroy=function(a){a&&this.g.ed();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.vc=function(){return this.l};q.hd=function(){return this.u};q.ig=function(){return this.g.m&&Uq};q.Ra=function(){return this.g.Ra()};q.yf=function(){return this.g.yf()};
839
840
  q.cast=function(){var a=this;return O(function(b){return 1==b.g?G(b,a.g.cast(),2):a.h?G(b,a.h.yc(),0):b.return()})};q.mh=function(a){this.g.mh(a)};q.Ji=function(){$q(this.g)};q.ed=function(){this.g.ed()};
840
841
  q.Mh=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.C)return d.return();c.G=a;c.C=b;c.g.ed();return G(d,c.g.destroy(),2)}c.g=null;c.g=new Nq(a,function(){return br(c)},function(){return cr(c)},function(e,f){return dr(c,e,f)},function(){return er(c)},function(){return fr(c)},b);c.g.init();I(d)})};
841
- function gr(a){a.g.init();a.m=new rd;for(var b=t(Cq),c=b.next();!c.done;c=b.next())a.m.o(a.i,c.value,function(f){a.g.Pa()||(f=Pa(f),a.j.dispatchEvent(f))});for(var d in Qa)a.m.o(a.h,Qa[d],function(f){a.g.Pa()||a.s.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.Fd=e,Object.defineProperty(a.l,b.Fd,{configurable:!1,enumerable:!0,get:function(f){return function(){return hr(a,f.Fd)}}(b),set:function(f){return function(g){var h=f.Fd;a.g.Pa()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={Fd:b.Fd};a.u={};ir(a,
842
+ function gr(a){a.g.init();a.m=new rd;for(var b=t(Cq),c=b.next();!c.done;c=b.next())a.m.o(a.i,c.value,function(f){a.g.Ra()||(f=Pa(f),a.j.dispatchEvent(f))});for(var d in Qa)a.m.o(a.h,Qa[d],function(f){a.g.Ra()||a.s.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.Fd=e,Object.defineProperty(a.l,b.Fd,{configurable:!1,enumerable:!0,get:function(f){return function(){return hr(a,f.Fd)}}(b),set:function(f){return function(g){var h=f.Fd;a.g.Ra()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={Fd:b.Fd};a.u={};ir(a,
842
843
  function(f){Object.defineProperty(a.u,f,{configurable:!1,enumerable:!0,get:function(){return jr(a,f)}})});kr(a);a.j=new gb;a.j.Ke=a.l;a.s=new gb;a.s.Ke=a.u}function kr(a){var b=new Map;ir(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)})}
843
844
  function ir(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)}}
844
845
  function fr(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.fd(),startTime:null};a.i.pause();for(var c=t(Eq),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(Jq);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(Kq);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 br(a){var b=new S("caststatuschanged");a.dispatchEvent(b)}
845
846
  function cr(a){var b=new S(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
846
847
  function er(a){for(var b=t(Jq),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(Eq);for(d=c.next();!d.done;d=c.next())d=
847
848
  d.value,k[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var l=t(Eq),m=l.next();!m.done;m=l.next())m=m.value,a.i[m]=k[m];l=t(Kq);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.Cf(h);g&&a.h.kh(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)})}
848
- function hr(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.Pa()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.Pa()?a.g.get("video",b):(b=a.i[b],"function"==typeof b&&(b=b.bind(a.i)),b)}
849
+ function hr(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.Ra()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.Ra()?a.g.get("video",b):(b=a.i[b],"function"==typeof b&&(b=b.bind(a.i)),b)}
849
850
  function jr(a,b){a.A.has(b)&&(b=a.A.get(b));if("addEventListener"==b)return function(c,d,e){return a.s.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.s.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.Gb()};if("getDrmEngine"==b)return function(){return a.h.C};if("getAdManager"==b)return function(){return a.h.Ve()};
850
- if("setVideoContainer"==b)return function(c){return a.h.uh(c)};if(a.g.Pa()){if("getManifest"==b||"drmInfo"==b)return function(){Va(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Va(b+"() does not work while casting!");return Promise.resolve()}}return a.g.Pa()&&0==Object.keys(a.g.g.video).length&&(Gq[b]||Hq[b])||!a.g.Pa()?a.h[b].bind(a.h):a.g.get("player",b)}
851
- function dr(a,b,c){a.g.Pa()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.s.dispatchEvent(c))}P("shaka.cast.CastProxy",ar);ar.prototype.changeReceiverId=ar.prototype.Mh;ar.prototype.forceDisconnect=ar.prototype.ed;ar.prototype.suggestDisconnect=ar.prototype.Ji;ar.prototype.setAppData=ar.prototype.mh;ar.prototype.cast=ar.prototype.cast;ar.prototype.receiverName=ar.prototype.yf;ar.prototype.isCasting=ar.prototype.Pa;ar.prototype.canCast=ar.prototype.ig;ar.prototype.getPlayer=ar.prototype.hd;
851
+ if("setVideoContainer"==b)return function(c){return a.h.uh(c)};if(a.g.Ra()){if("getManifest"==b||"drmInfo"==b)return function(){Va(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Va(b+"() does not work while casting!");return Promise.resolve()}}return a.g.Ra()&&0==Object.keys(a.g.g.video).length&&(Gq[b]||Hq[b])||!a.g.Ra()?a.h[b].bind(a.h):a.g.get("player",b)}
852
+ function dr(a,b,c){a.g.Ra()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.s.dispatchEvent(c))}P("shaka.cast.CastProxy",ar);ar.prototype.changeReceiverId=ar.prototype.Mh;ar.prototype.forceDisconnect=ar.prototype.ed;ar.prototype.suggestDisconnect=ar.prototype.Ji;ar.prototype.setAppData=ar.prototype.mh;ar.prototype.cast=ar.prototype.cast;ar.prototype.receiverName=ar.prototype.yf;ar.prototype.isCasting=ar.prototype.Ra;ar.prototype.canCast=ar.prototype.ig;ar.prototype.getPlayer=ar.prototype.hd;
852
853
  ar.prototype.getVideo=ar.prototype.vc;ar.prototype.destroy=ar.prototype.destroy;function lr(a,b,c,d){gb.call(this);var e=this;this.g=a;this.h=b;this.j=new rd;this.J={video:a,player:b};this.H=c||function(){};this.K=d||function(f){return f};this.i=null;this.I=!1;this.s=!0;this.m=0;this.C=!1;this.A=!0;this.u=this.l=null;this.G=new Vb(function(){mr(e)});nr(this)}pa(lr,gb);q=lr.prototype;q.isConnected=function(){return this.I};q.Wj=function(){return this.s};q.Mk=function(a){this.i=a};q.cj=function(){this.i=null};
853
854
  q.Nk=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};q.Lk=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};q.Kk=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
854
855
  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.G&&(a.G.stop(),a.G=null),a.g=null,a.J=null,a.H=null,a.I=!1,a.s=!0,a.l=null,a.u=null,gb.prototype.release.call(a),G(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();I(d)})};
@@ -866,35 +867,35 @@ null!=d&&(a.g.muted=d);e==a.g.volume&&f==a.g.muted||wr(a);break;case "LOAD":a.m=
866
867
  function Ar(a,b,c,d){a.h&&pr(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function pr(a,b,c,d){a.I&&(a=zq(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function wr(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.s?Br:a.h.ce()?Cr:a.g.paused?Dr:Er,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);pr(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.u)}
867
868
  P("shaka.cast.CastReceiver",lr);lr.prototype.destroy=lr.prototype.destroy;lr.prototype.setContentArtist=lr.prototype.Kk;lr.prototype.setContentImage=lr.prototype.Lk;lr.prototype.setContentTitle=lr.prototype.Nk;lr.prototype.clearContentMetadata=lr.prototype.cj;lr.prototype.setContentMetadata=lr.prototype.Mk;lr.prototype.isIdle=lr.prototype.Wj;lr.prototype.isConnected=lr.prototype.isConnected;var yr=.5,ur=5,Br="IDLE",Er="PLAYING",Cr="BUFFERING",Dr="PAUSED";function Fr(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=Gr(d,e,h,k,l,m);f<=g;f++){for(var p=c[f],r=-1,u=-1,w=0;w<p.length;w++)if(null!=p[w]&&""!==p[w].g.trim()){r=w;break}for(w=p.length-1;0<=w;w--)if(null!=p[w]&&""!==p[w].g.trim()){u=w;break}if(-1===
868
869
  r||-1===u)p=Hr(d,e),a.nestedCues.push(p);else{for(;r<=u;r++)if(w=p[r]){var v=w.l,A=w.i,z=w.j,C=w.h;if(v!=h||A!=k||z!=l||C!=m)n.payload&&a.nestedCues.push(n),n=Gr(d,e,v,A,z,C),h=v,k=A,l=z,m=C;n.payload+=w.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=Hr(d,e),a.nestedCues.push(n));n=Gr(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}
869
- function Gr(a,b,c,d,e,f){a=new Sd(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function Hr(a,b){a=new Sd(a,b,"");a.lineBreak=!0;return a}function Ir(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function Jr(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.s="black";Kr(this)}function Lr(a,b,c){var d="CC"+((a.A<<1|a.u)+1),e=new Sd(b,c,"");e.lineInterpretation=1;var f=Mr.get(a.g);f&&(e.line=f);return Fr(e,d,a.i,b,c)}function Kr(a){Nr(a,0,15);a.g=1}
870
+ function Gr(a,b,c,d,e,f){a=new Sd(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function Hr(a,b){a=new Sd(a,b,"");a.lineBreak=!0;return a}function Ir(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function Jr(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.s="black";Kr(this)}function Lr(a,b,c){var d="CC"+((a.A<<1|a.u)+1),e=new Sd(b,c,"");e.lineInterpretation=1;var f=Mr.get(a.g);f&&(e.line=f);(b=Fr(e,d,a.i,b,c))&&15<a.g+b.cue.nestedCues.length-3&&(f=Mr.get(a.g+3-b.cue.nestedCues.length))&&(e.line=f);return b}function Kr(a){Nr(a,0,15);a.g=1}
870
871
  function Or(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case Pr:d=Qr.has(c)?Qr.get(c):String.fromCharCode(c);break;case Rr:d=Sr.get(c);break;case Tr:a.i[a.g].pop();d=Ur.get(c);break;case Vr:a.i[a.g].pop(),d=Wr.get(c)}d&&a.i[a.g].push(new Ir(d,a.m,a.j,a.s,a.l))}}function Xr(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 Nr(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]}
871
872
  var Pr=0,Rr=1,Tr=2,Vr=3,Qr=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"]]),Sr=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"]]),Ur=new Map([[32,"\u00c1"],[33,"\u00c9"],[34,"\u00d3"],[35,
872
873
  "\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"]]),Wr=new Map([[32,"\u00c3"],[33,"\u00e3"],[34,"\u00cd"],[35,"\u00cc"],[36,"\u00ec"],[37,"\u00d2"],[38,"\u00f2"],
873
874
  [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"]]),Mr=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 Yr(a,b){this.h=Zr;this.s=new Jr(a,b);this.i=new Jr(a,b);this.g=this.j=new Jr(a,b);this.l=0;this.m=null}function $r(a,b,c){a.g=a.i;var d=a.g,e=null;a.h!==as&&a.h!==bs&&(e=Lr(d,a.l,c),c=a.i,c.g=0<c.h?c.h:0,Nr(c,0,15),c=a.j,c.g=0<c.h?c.h:0,Nr(c,0,15),d.g=15);a.h=as;d.h=b;return e}function cs(a){a.h=ds;a.g=a.j;a.g.h=0}function es(a){Wa("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.s;a.h=bs}
874
875
  var Zr=0,ds=1,as=3,bs=4,fs="black green blue cyan red yellow magenta black".split(" "),gs="white green blue cyan red yellow magenta white_italics".split(" ");function hs(a,b){this.K=b;this.O=a;this.L=this.l=!1;this.m=this.s=this.I=this.M=this.J=0;this.H=is;this.i=[];this.g=this.h=this.j=0;this.G=this.A=!1;this.C="white";this.u="black";js(this)}function js(a){a.i=[];for(var b=0;16>b;b++)a.i.push(ks())}function ks(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function ls(a,b){ms(a)&&(a.i[a.h][a.g]=new Ir(b,a.G,a.A,a.u,a.C),a.g++)}function ms(a){var b=a.g<a.m&&0<=a.g;return a.h<a.s&&0<=a.h&&b}hs.prototype.isVisible=function(){return this.l};
875
876
  function ns(a,b,c){var d=new Sd(a.j,b,"");d.textAlign=a.H===os?"left":a.H===ps?"right":Ud;var e=d.region;a.K&&(e.id+="svc"+a.K);e.id+="win"+a.O;e.height=a.s;e.width=a.m;e.heightUnits=2;e.widthUnits=2;e.viewportAnchorX=a.J;e.viewportAnchorY=a.M;e.viewportAnchorUnits=a.L?Ld:2;switch(a.I){case qs:e.regionAnchorX=0;e.regionAnchorY=0;break;case rs:e.regionAnchorX=50;e.regionAnchorY=0;break;case ss:e.regionAnchorX=100;e.regionAnchorY=0;break;case ts:e.regionAnchorX=0;e.regionAnchorY=50;break;case us:e.regionAnchorX=
876
- 50;e.regionAnchorY=50;break;case vs:e.regionAnchorX=100;e.regionAnchorY=50;break;case ws:e.regionAnchorX=0;e.regionAnchorY=100;break;case xs:e.regionAnchorX=50;e.regionAnchorY=100;break;case ys:e.regionAnchorX=100,e.regionAnchorY=100}if(c=Fr(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var os=0,ps=1,is=2,qs=0,rs=1,ss=2,ts=3,us=4,vs=5,ws=6,xs=7,ys=8;function zs(){this.i=[];this.h=null;this.g=0}function As(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 Bs(a.h)),a.h=null,a.g=0))}function Bs(a){this.g=0;this.h=a}Bs.prototype.Ea=function(){return this.g<this.h.length};Bs.prototype.Ja=function(){return this.g};function Cs(a){if(!a.Ea())throw new T(2,2,3E3);return a.h[a.g++]}Bs.prototype.skip=function(a){if(this.g+a>this.h.length)throw new T(2,2,3E3);this.g+=a};function Ds(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
877
+ 50;e.regionAnchorY=50;break;case vs:e.regionAnchorX=100;e.regionAnchorY=50;break;case ws:e.regionAnchorX=0;e.regionAnchorY=100;break;case xs:e.regionAnchorX=50;e.regionAnchorY=100;break;case ys:e.regionAnchorX=100,e.regionAnchorY=100}if(c=Fr(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var os=0,ps=1,is=2,qs=0,rs=1,ss=2,ts=3,us=4,vs=5,ws=6,xs=7,ys=8;function zs(){this.i=[];this.h=null;this.g=0}function As(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 Bs(a.h)),a.h=null,a.g=0))}function Bs(a){this.g=0;this.h=a}Bs.prototype.Ea=function(){return this.g<this.h.length};Bs.prototype.La=function(){return this.g};function Cs(a){if(!a.Ea())throw new T(2,2,3E3);return a.h[a.g++]}Bs.prototype.skip=function(a){if(this.g+a>this.h.length)throw new T(2,2,3E3);this.g+=a};function Ds(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
877
878
  function Es(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=Cs(b).value;b=null;c=t(Fs(a,c));for(var e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=ns(e,d,a.i)),js(e);return b}if(137===c)for(b=Cs(b).value,b=t(Fs(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=Cs(b).value;b=null;c=t(Fs(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=ns(e,d,a.i)),e.l=!1;return b}if(139===c){c=Cs(b).value;
878
879
  b=null;c=t(Fs(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=ns(e,d,a.i):e.j=d,e.l=!e.l;return b}if(140===c)return b=Cs(b).value,Gs(a,b,d);if(143===c)return d=Gs(a,255,d),Hs(a),d;if(144===c)b.skip(1),d=Cs(b).value,a.g&&(a.g.A=0<(d&128),a.g.G=0<(d&64));else if(145===c)d=Cs(b).value,c=Cs(b).value,b.skip(1),a.g&&(b=Is((c&48)>>4,(c&12)>>2,c&3),a.g.C=Is((d&48)>>4,(d&12)>>2,d&3),a.g.u=b);else if(146===c)d=Cs(b).value,b=Cs(b).value,a.g&&(a=a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),
879
880
  b.skip(1),d=Cs(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 hs(c,a.i);f.j=d;a.h[c]=f}d=Cs(b).value;f=Cs(b).value;var g=Cs(b).value,h=Cs(b).value,k=Cs(b).value;b=Cs(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.G=!1,b.A=!1,b.C="white",b.u="black");b=a.h[c];b.l=0<(d&32);b.M=f&127;b.J=g;b.I=(h&240)>>4;b.L=0<(f&128);b.s=(h&15)+1;b.m=(k&63)+1;a.g=a.h[c]}}}return null}
880
881
  function Fs(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;return c}function Gs(a,b,c){var d=null;b=t(Fs(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.h[e];f.isVisible()&&(d=ns(f,c,a.i));a.h[e]=null}return d}function Hs(a){a.g=null;a.h=[null,null,null,null,null,null,null,null]}function Is(a,b,c){var d={0:0,1:0,2:1,3:1};a=d[a];b=d[b];c=d[c];return Js[a<<2|b<<1|c]}
881
882
  var Ks=new Map([[32," "],[33,"\u00a0"],[37,"\u2026"],[42,"\u0160"],[44,"\u0152"],[48,"\u2588"],[49,"\u2018"],[50,"\u2019"],[51,"\u201c"],[52,"\u201d"],[53,"\u2022"],[57,"\u2122"],[58,"\u0161"],[60,"\u0153"],[61,"\u2120"],[63,"\u0178"],[118,"\u215b"],[119,"\u215c"],[120,"\u215d"],[121,"\u215e"],[122,"\u2502"],[123,"\u2510"],[124,"\u2514"],[125,"\u2500"],[126,"\u2518"],[127,"\u250c"]]),Js="black blue green cyan red magenta yellow white".split(" ");function Ls(){this.h=[];this.g=[];this.i=new zs;this.l=0;this.m=new Map([["CC1",new Yr(0,0)],["CC2",new Yr(0,1)],["CC3",new Yr(1,0)],["CC4",new Yr(1,1)]]);this.u=this.s=0;this.j=new Map;this.C=!0;this.A=new Set;Ms(this)}Ls.prototype.clear=function(){this.l=0;this.h=[];this.g=[];var a=this.i;a.i=[];a.h=[];a.g=0;Ms(this);a=t(this.j.values());for(var b=a.next();!b.done;b=a.next())Hs(b.value)};
882
883
  function Ms(a){a.s=0;a.u=0;for(var b=t(a.m.values()),c=b.next();!c.done;c=b.next())c=c.value,c.h=Zr,c.g=c.j,c.m=null,Kr(c.i),Kr(c.j),Kr(c.s);a.C=!0}
883
- Ls.prototype.extract=function(a,b){if(this.C){for(var c=t(this.m.values()),d=c.next();!d.done;d=c.next())d.value.l=b;this.C=!1}a=new Pg(a,0);if(!(8>a.getLength())&&181===a.$()&&49===a.ya()&&1195456820===a.V()&&3===a.$()&&(c=a.$(),0!==(c&64)))for(c&=31,a.skip(1),d=0;d<c;d++){var e=a.$(),f=(e&4)>>2,g=a.$(),h=a.$();f&&(e&=3,0===e||1===e?this.h.push({pts:b,type:e,xb:g,bc:h,order:this.h.length}):(this.g.push({pts:b,type:e,value:g,order:this.g.length}),this.g.push({pts:b,type:2,value:h,order:this.g.length})))}};
884
+ Ls.prototype.extract=function(a,b){if(this.C){for(var c=t(this.m.values()),d=c.next();!d.done;d=c.next())d.value.l=b;this.C=!1}a=new Pg(a,0);if(!(8>a.getLength())&&181===a.$()&&49===a.za()&&1195456820===a.V()&&3===a.$()&&(c=a.$(),0!==(c&64)))for(c&=31,a.skip(1),d=0;d<c;d++){var e=a.$(),f=(e&4)>>2,g=a.$(),h=a.$();f&&(e&=3,0===e||1===e?this.h.push({pts:b,type:e,xb:g,bc:h,order:this.h.length}):(this.g.push({pts:b,type:e,value:g,order:this.g.length}),this.g.push({pts:b,type:2,value:h,order:this.g.length})))}};
884
885
  Ls.prototype.decode=function(){function a(e,f){return e.pts-f.pts||e.order-f.order}var b=[];this.h.sort(a);this.g.sort(a);for(var c=t(this.h),d=c.next();!d.done;d=c.next())(d=Ns(this,d.value))&&b.push(d);c=t(this.g);for(d=c.next();!d.done;d=c.next())As(this.i,d.value);c=t(this.i.i);for(d=c.next();!d.done;d=c.next())d=Os(this,d.value),b.push.apply(b,x(d));this.i.i=[];this.h=[];this.g=[];return b};
885
886
  function Ns(a,b){var c=b.type;if(16===(b.xb&112)){var d=b.xb>>3&1;0===c?a.s=d:a.u=d}d="CC"+((c<<1|(c?a.u:a.s))+1);c=a.m.get(d);if(255===b.xb&&255===b.bc||!b.xb&&!b.bc||!Ps(b.xb)||!Ps(b.bc))return 45<=++a.l&&Ms(a),null;a.l=0;b.xb&=127;b.bc&=127;var e=b.xb;if(1<=e&&15>=e||!b.xb&&!b.bc)return null;e=null;if(16===(b.xb&112))a:{a.A.add(d),d=b.xb;a=b.bc;if(c.m===(d<<8|a))c.m=null;else if(c.m=d<<8|a,16===(d&240)&&64===(a&192)){b=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(d&7)<<1|a>>5&1];var f=(a&30)>>1;d=
886
887
  "white";e=!1;7>f?d=gs[f]:7===f&&(e=!0);a=1===(a&1);c.h!==bs&&(f=c.g,c.h===as&&b!==f.g&&(c=1+b-f.h,Xr(f,c,1+f.g-f.h,f.h),Nr(f,0,c-1),Nr(f,b+1,15-b)),f.g=b,f.m=a,f.j=e,f.l=d,f.s="black")}else if(17===(d&247)&&32===(a&240))c.g.m=!1,c.g.j=!1,c.g.l="white",Or(c.g,Pr,32),d=!1,b=gs[(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=fs[(a&14)>>1]),c.g.s=b;else if(17===(d&247)&&48===(a&240))Or(c.g,
887
888
  Rr,a);else if(18===(d&246)&&32===(a&224))Or(c.g,d&1?Vr:Tr,a);else if(20===(d&246)&&32===(a&240)){a=b.pts;d=null;switch(b.bc){case 32:cs(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=$r(c,2,a);break;case 38:d=$r(c,3,a);break;case 39:d=$r(c,4,a);break;case 40:Or(c.g,Pr,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.l=a;break;case 42:Kr(c.s);es(c);break;case 43:es(c);break;case 44:b=c.i;d=null;c.h!==bs&&(d=Lr(b,c.l,a));Nr(b,0,15);break;case 45:b=c.g;c.h!==as?d=null:(d=Lr(b,c.l,a),e=b.g-b.h+1,Xr(b,
888
889
  e-1,e,b.h),Nr(b,0,e-1),Nr(b,b.g,15-b.g),c.l=a);break;case 46:Nr(c.j,0,15);break;case 47:b=null,c.h!==bs&&(b=Lr(c.i,c.l,a)),d=c.j,c.j=c.i,c.i=d,cs(c),c.l=a,d=b}e=d;break a}e=null}else a=b.bc,Or(c.g,Pr,b.xb),Or(c.g,Pr,a);return e}
889
- function Os(a,b){var c=[];try{for(;b.Ea();){var d=Cs(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=Cs(b).value&63);if(0!=e){a.A.add("svc"+e);a.j.has(e)||a.j.set(e,new Ds(e));for(var g=a.j.get(e),h=b.Ja();b.Ja()-h<f;){e=b;var k=Cs(e),l=k.value,m=k.pts;if(16===l){var n=Cs(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:!ms(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=ns(r,p,g.i));if(r.h+1>=r.s){p=r;for(var u=
890
+ function Os(a,b){var c=[];try{for(;b.Ea();){var d=Cs(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=Cs(b).value&63);if(0!=e){a.A.add("svc"+e);a.j.has(e)||a.j.set(e,new Ds(e));for(var g=a.j.get(e),h=b.La();b.La()-h<f;){e=b;var k=Cs(e),l=k.value,m=k.pts;if(16===l){var n=Cs(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:!ms(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=ns(r,p,g.i));if(r.h+1>=r.s){p=r;for(var u=
890
891
  0,w=1;16>w;w++,u++)p.i[u]=p.i[w];for(w=0;1>w;w++,u++)p.i[u]=ks()}else r.h++;r.g=0;break;case 14:r.isVisible()&&(e=ns(r,p,g.i));r.i[r.h]=ks();r.g=0;break;case 12:r.isVisible()&&(e=ns(r,p,g.i)),js(r),p=r,p.h=0,p.g=0}var v=e}else v=null}else if(128<=l&&159>=l)v=Es(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?ls(g.g,
891
892
  "\u266a"):ls(g.g,String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&ls(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(Ks.has(e)){var A=Ks.get(e);ls(g.g,A)}else ls(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?ls(g.g,"_"):ls(g.g,"[CC]"));v=null}(e=v)&&c.push(e)}}}}catch(z){if(z instanceof T&&3E3===z.code)Wa("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw z;}return c}function Ps(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b}
892
893
  Ls.prototype.getStreams=function(){return Array.from(this.A)};P("shaka.cea.CeaDecoder",Ls);Jd=function(){return new Ls};function Qs(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 Rs(){this.j=new Map;this.i=this.h=0;this.g=Ss}
893
- Rs.prototype.init=function(a){function b(f){f=f.name;f in Ts&&(c.g=Ts[f])}var c=this,d=[],e=[];(new Sg).box("moov",Xg).box("mvex",Xg).Y("trex",function(f){var g=f.reader;g.skip(4);g.skip(4);f=g.V();g=g.V();c.h=f;c.i=g}).box("trak",Xg).Y("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.V();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.ya();g.ya();g.ya();g.ya();d.push(h)}).box("mdia",Xg).Y("mdhd",
894
+ Rs.prototype.init=function(a){function b(f){f=f.name;f in Ts&&(c.g=Ts[f])}var c=this,d=[],e=[];(new Sg).box("moov",Xg).box("mvex",Xg).Y("trex",function(f){var g=f.reader;g.skip(4);g.skip(4);f=g.V();g=g.V();c.h=f;c.i=g}).box("trak",Xg).Y("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.V();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.za();g.za();g.za();g.za();d.push(h)}).box("mdia",Xg).Y("mdhd",
894
895
  function(f){f=cj(f.reader,f.version);e.push(f.timescale)}).box("minf",Xg).box("stbl",Xg).Y("stsd",Zg).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("vvc1",b).box("vvi1",b).box("encv",$g).box("sinf",Xg).box("frma",function(f){f=fj(f.reader).gb;f in Ts&&(c.g=Ts[f])}).parse(a,!0);if(!d.length||!e.length||d.length!=e.length)throw new T(2,2,2010);this.g==Ss&&Va("Unable to determine bitstream format for CEA parsing!");d.forEach(function(f,
895
896
  g){c.j.set(f,e[g])})};
896
897
  Rs.prototype.parse=function(a){var b=this;if(this.g==Ss)return[];var c=[],d=0,e=[];(new Sg).box("moof",function(f){d=f.start;e=[];Xg(f)}).box("traf",function(f){e.push({baseMediaDecodeTime:null,Vd:b.h,Ue:b.i,pi:[],timescale:9E4});Xg(f)}).Y("trun",function(f){var g=e[e.length-1];f=dj(f.reader,f.version,f.flags);g.pi.push(f)}).Y("tfhd",function(f){var g=e[e.length-1];f=aj(f.reader,f.flags);g.Vd=f.Vd||b.h;g.Ue=f.Ue||b.i;f=f.trackId;b.j.has(f)&&(g.timescale=b.j.get(f))}).Y("tfdt",function(f){var g=e[e.length-
897
- 1];f=bj(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 Va("Unable to find base media decode time for CEA captions!"),new T(2,2,2010);f.reader.seek(h);Us(b,f.reader,l.baseMediaDecodeTime,l.timescale,l.Vd,l.Ue,g,l.pi,c)}}).parse(a,!1);return c};
898
+ 1];f=bj(f.reader,f.version);g.baseMediaDecodeTime=f.baseMediaDecodeTime}).box("mdat",function(f){for(var g=d-f.start-8,h=f.reader.La(),k=t(e),l=k.next();!l.done;l=k.next()){l=l.value;if(null===l.baseMediaDecodeTime)throw Va("Unable to find base media decode time for CEA captions!"),new T(2,2,2010);f.reader.seek(h);Us(b,f.reader,l.baseMediaDecodeTime,l.timescale,l.Vd,l.Ue,g,l.pi,c)}}).parse(a,!1);return c};
898
899
  function Us(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(u){return u.wi});n=[].concat.apply([],x(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].ej);b.Ea();){g=b.V();var p=b.$(),r=null;r=!1;h=1;switch(a.g){case Vs:r=p&31;r=6==r;break;case Ws:h=2;b.skip(1);r=p>>1&63;r=39==r||40==r;break;case Xs:h=2;b.skip(1);r=p>>1&63;r=23==r||24==r;break;default:return}if(r)for(p=0,l<n.length&&(p=n[l].zf||0),p=(c+p)/d,h=t(Qs(b.Rb(g-h))),r=h.next();!r.done;r=h.next())k.push({packet:r.value,pts:p});else try{b.skip(g-
899
900
  h)}catch(u){break}m-=g+4;0==m&&(c=l<n.length?c+(n[l].hh||e):c+e,l++,l<n.length?m=n[l].sampleSize||f:m=f)}}P("shaka.cea.Mp4CeaParser",Rs);var Ss=0,Vs=1,Ws=2,Xs=3,Ts={avc1:Vs,avc3:Vs,hev1:Ws,hvc1:Ws,dvav:Vs,dva1:Vs,dvh1:Ws,dvhe:Ws,vvc1:Xs,vvi1:Xs};Id["video/mp4"]=function(){return new Rs};function Ys(){this.g=null}Ys.prototype.init=function(){};Ys.prototype.parse=function(a){this.g?this.g.clearData():this.g=new uj;var b=[];a=Hb(a);if(!Ej(a))return b;a=this.g.parse(a);var c=a.Wd(),d=a.bf();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(Qs(d.data)),f=e.next();!f.done;f=e.next())b.push({packet:f.value,pts:d.time});return b};
900
901
  P("shaka.cea.TsCeaParser",Ys);Id["video/mp2t"]=function(){return new Ys};function Zs(a,b,c){var d=$s(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 T(2,4,4010);if(!b){f=d.filter(function(l){return"urn:mpeg:dash:sea:2012"==l.vd});if(1<f.length)throw new T(2,4,4050);f.length&&(g=at(f[0]));(f=d.find(function(l){return"urn:mpeg:dash:mp4protection:2011"==l.vd}))&&f.encryptionScheme&&(k=f.encryptionScheme);f=d.filter(function(l){return"urn:mpeg:dash:mp4protection:2011"==l.vd?(e=l.init||e,!1):"urn:mpeg:dash:sea:2012"!=
@@ -910,30 +911,30 @@ if(!a||!b)throw new T(2,4,4051);a=Lc(a.substr(2));if(16!=a.byteLength)throw new
910
911
  var gt=1,ht=(new Map).set("com.widevine.alpha",function(a){var b=rh(a.node,"https://dashif.org/CPS","Laurl");return b&&(b=nh(b))?b:(a=rh(a.node,"urn:microsoft","laurl"))?Gc(a.attributes.licenseUrl)||"":""}).set("com.microsoft.playready",ft).set("com.microsoft.playready.recommendation",ft).set("com.microsoft.playready.software",ft).set("com.microsoft.playready.hardware",ft).set("org.w3.clearkey",function(a){var b=rh(a.node,"https://dashif.org/CPS","Laurl");return b&&(b=nh(b))?b:(a=rh(a.node,"http://dashif.org/guidelines/clearKey",
911
912
  "Laurl"))&&"EME-1.0"===a.attributes.Lic_type&&a&&(a=nh(a))?a:""});function jt(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))&&Va("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();
912
913
  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})}
913
- function kt(a,b){var c=lt(a,b,"timescale"),d=1;c&&(d=Ch(c)||1);c=lt(a,b,"duration");(c=Ch(c||""))&&(c/=d);var e=lt(a,b,"startNumber"),f=Number(lt(a,b,"presentationTimeOffset"))||0,g=Dh(e||"");if(null==e||null==g)g=1;e=null;if(b=mt(a,b,"SegmentTimeline")){b=lh(b,"S");e=d;a=a.xa.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",Dh),u=th(n,"d",Dh),w=th(n,"r",zh);n=th(n,"k",zh)||0;null!=r&&(r-=f);if(u){r=null!=r?r:l;w=w||0;if(0>w)if(p){p=th(p,"t",Dh);if(null==
914
- p)break;else if(r>=p)break;w=Math.ceil((p-r)/u)-1}else{if(Infinity==a)break;else if(r/e>=a)break;w=Math.ceil((a*e-r)/u)-1}0<k.length&&r!=l&&(k[k.length-1].end=r/e);for(p=0;p<=w;++p)l=r+u,k.push({start:r/e,end:l/e,Ch:r,Yb:n,Ik:k.length+h}),r=l}}e=k}return{timescale:d,eb:c,we:g,kc:f/d||0,Bh:f,timeline:e}}function nt(a,b){return[b(a.N),b(a.Aa),b(a.La)].filter(Ye)}function lt(a,b,c){b=nt(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=d.value.attributes[c]);d=b.next());return a}
914
+ function kt(a,b){var c=lt(a,b,"timescale"),d=1;c&&(d=Ch(c)||1);c=lt(a,b,"duration");(c=Ch(c||""))&&(c/=d);var e=lt(a,b,"startNumber"),f=Number(lt(a,b,"presentationTimeOffset"))||0,g=Dh(e||"");if(null==e||null==g)g=1;e=null;if(b=mt(a,b,"SegmentTimeline")){b=lh(b,"S");e=d;a=a.ya.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",Dh),u=th(n,"d",Dh),w=th(n,"r",zh);n=th(n,"k",zh)||0;null!=r&&(r-=f);if(u){r=null!=r?r:l;w=w||0;if(0>w)if(p){p=th(p,"t",Dh);if(null==
915
+ p)break;else if(r>=p)break;w=Math.ceil((p-r)/u)-1}else{if(Infinity==a)break;else if(r/e>=a)break;w=Math.ceil((a*e-r)/u)-1}0<k.length&&r!=l&&(k[k.length-1].end=r/e);for(p=0;p<=w;++p)l=r+u,k.push({start:r/e,end:l/e,Ch:r,Yb:n,Ik:k.length+h}),r=l}}e=k}return{timescale:d,eb:c,we:g,kc:f/d||0,Bh:f,timeline:e}}function nt(a,b){return[b(a.N),b(a.Ba),b(a.Na)].filter(Ye)}function lt(a,b,c){b=nt(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=d.value.attributes[c]);d=b.next());return a}
915
916
  function mt(a,b,c){b=nt(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=qh(d.value,c));d=b.next());return a}
916
917
  function ot(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=hh("http://www.w3.org/1999/xlink");m[0]==n&&delete a.attributes[l]}if(5<=f)return qg(new T(2,4,4028));if("onLoad"!=h)return qg(new T(2,4,4027));var p=Oc([d],[g]);return e.request(0,Dg(p,b)).Ta(function(r){r=eh(r.data,a.tagName);if(!r)return qg(new T(2,4,4001,g));for(a.children=
917
918
  [];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 w=u.next();!w.done;w=u.next())w=w.value,a.attributes[w]=r.attributes[w];return pt(a,b,c,p[0],e,f+1)})}
918
919
  function pt(a,b,c,d,e,f){f=void 0===f?0:f;if(uh(a,"http://www.w3.org/1999/xlink","href")){var g=ot(a,b,c,d,e,f);c&&(g=g.Ta(void 0,function(){return pt(a,b,c,d,e,f)}));return g}g=[];for(var h={},k=t(kh(a)),l=k.next();!l.done;h={Yc:h.Yc},l=k.next())h.Yc=l.value,"urn:mpeg:dash:resolve-to-zero:2013"==uh(h.Yc,"http://www.w3.org/1999/xlink","href")?a.children=a.children.filter(function(m){return function(n){return n!==m.Yc}}(h)):"SegmentTimeline"!=h.Yc.tagName&&g.push(pt(h.Yc,b,c,d,e,f));return ug(g).Ta(function(){return a})}
919
920
  ;function qt(a,b,c,d,e,f,g){var h,k=(new Sg).Y("sidx",function(l){h=rt(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new T(2,3,3004);}
920
- function rt(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.V();if(0==k)throw new T(2,3,3005);if(0==g.version){var l=g.reader.V();var m=g.reader.V()}else l=g.reader.td(),m=g.reader.td();g.reader.skip(2);var n=g.reader.ya();a=a+g.size+m;for(m=0;m<n;m++){var p=g.reader.V(),r=(p&2147483648)>>>31;p&=2147483647;var u=g.reader.V();g.reader.skip(4);if(1==r)throw new T(2,3,3006);h.push(new Ki(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 st(a){this.h=Mb(a);this.g=new Pg(this.h,0)}st.prototype.Ea=function(){return this.g.Ea()};
921
- function tt(a){var b=ut(a);if(7<b.length)throw new T(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=ut(a);a:{d=t(vt);for(var e=d.next();!e.done;e=d.next())if(Fb(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 T(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=Mb(a.h,a.g.Ja(),b);a.g.skip(b);return new wt(c,
922
- d)}function ut(a){var b=a.g.Ja(),c=a.g.$();if(0==c)throw new T(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Hb(a.h,b,c)}var vt=[[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 wt(a,b){this.id=a;this.g=b}
921
+ function rt(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.V();if(0==k)throw new T(2,3,3005);if(0==g.version){var l=g.reader.V();var m=g.reader.V()}else l=g.reader.td(),m=g.reader.td();g.reader.skip(2);var n=g.reader.za();a=a+g.size+m;for(m=0;m<n;m++){var p=g.reader.V(),r=(p&2147483648)>>>31;p&=2147483647;var u=g.reader.V();g.reader.skip(4);if(1==r)throw new T(2,3,3006);h.push(new Ki(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 st(a){this.h=Mb(a);this.g=new Pg(this.h,0)}st.prototype.Ea=function(){return this.g.Ea()};
922
+ function tt(a){var b=ut(a);if(7<b.length)throw new T(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=ut(a);a:{d=t(vt);for(var e=d.next();!e.done;e=d.next())if(Fb(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.La();else{if(8==b.length&&b[1]&224)throw new T(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.La()+b<=a.h.byteLength?b:a.h.byteLength-a.g.La();d=Mb(a.h,a.g.La(),b);a.g.skip(b);return new wt(c,
923
+ d)}function ut(a){var b=a.g.La(),c=a.g.$();if(0==c)throw new T(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Hb(a.h,b,c)}var vt=[[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 wt(a,b){this.id=a;this.g=b}
923
924
  function xt(a){if(8<a.g.byteLength)throw new T(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new T(2,3,3001);for(var b=0,c=0;c<a.g.byteLength;c++){var d=a.g.getUint8(c);b=256*b+d}return b};function yt(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new st(a.g);for(var n=null,p=null;a.Ea();){var r=tt(a);if(187==r.id){var u=zt(r);u&&(r=c*u.Wk,u=b+u.xk,null!=n&&m.push(new Ki(n+g,r+g,l,p,u-1,f,g,h,k)),n=r,p=u)}}null!=n&&m.push(new Ki(n+g,d+g,l,p,null,f,g,h,k));return m}
924
925
  function zt(a){var b=new st(a.g);a=tt(b);if(179!=a.id)throw new T(2,3,3013);a=xt(a);b=tt(b);if(183!=b.id)throw new T(2,3,3012);b=new st(b.g);for(var c=0;b.Ea();){var d=tt(b);if(241==d.id){c=xt(d);break}}return{Wk:a,xk:c}};function At(a,b,c){b=mt(a,b,"Initialization");if(!b)return null;var d=a.N.Ya(),e=b.attributes.sourceURL;e&&(d=Oc(d,[Gc(e)]));e=0;var f=null;if(b=th(b,"range",yh))e=b.start,f=b.end;c=new Ii(function(){return d},e,f,Bt(a),null,null,c);c.codecs=a.N.codecs;c.mimeType=a.N.mimeType;return c}
925
926
  function Ct(a,b,c){var d=Number(lt(a,Dt,"presentationTimeOffset"))||0,e=lt(a,Dt,"timescale"),f=1;e&&(f=Ch(e)||1);var g=d/f||0,h=At(a,Dt,c);Et(a,h);var k=$e(a);return{Gc:function(){var l=mt(k,Dt,"RepresentationIndex");var m=k.N.Ya();l&&(l=Gc(l.attributes.sourceURL))&&(m=Oc(m,[l]));l=Ft(k);return Gt(k,b,h,m,l.start,l.end,g)}}}
926
- function Gt(a,b,c,d,e,f,g){var h,k,l,m,n,p,r,u,w,v,A,z,C,y,B,D,F,J;return O(function(L){if(1==L.g)return h=a.presentationTimeline,k=!a.Vb||!a.xa.ge,l=a.xa.start,m=a.xa.duration,n=a.N.mimeType.split("/")[1],p=b,r=null,u=[p(d,e,f,!1),"webm"==n?p(c.R(),c.$a,c.Ha,!0):null],p=null,G(L,Promise.all(u),2);w=L.h;v=w[0];A=w[1]||null;z=null;C=l-g;y=l;B=m?l+m:Infinity;if("mp4"==n)var H=qt(v,e,d,c,C,y,B);else{H=new st(A);if(440786851!=tt(H).id)throw new T(2,3,3008);var E=tt(H);if(408125543!=E.id)throw new T(2,
927
+ function Gt(a,b,c,d,e,f,g){var h,k,l,m,n,p,r,u,w,v,A,z,C,y,B,D,F,J;return O(function(L){if(1==L.g)return h=a.presentationTimeline,k=!a.Vb||!a.ya.ge,l=a.ya.start,m=a.ya.duration,n=a.N.mimeType.split("/")[1],p=b,r=null,u=[p(d,e,f,!1),"webm"==n?p(c.R(),c.$a,c.Ja,!0):null],p=null,G(L,Promise.all(u),2);w=L.h;v=w[0];A=w[1]||null;z=null;C=l-g;y=l;B=m?l+m:Infinity;if("mp4"==n)var H=qt(v,e,d,c,C,y,B);else{H=new st(A);if(440786851!=tt(H).id)throw new T(2,3,3008);var E=tt(H);if(408125543!=E.id)throw new T(2,
927
928
  3,3009);H=E.g.byteOffset;E=new st(E.g);for(var K=null;E.Ea();){var M=tt(E);if(357149030==M.id){K=M;break}}if(!K)throw new T(2,3,3010);K=new st(K.g);M=1E6;for(E=null;K.Ea();){var N=tt(K);if(2807729==N.id)M=xt(N);else if(17545==N.id)if(4==N.g.byteLength)E=N.g.getFloat32(0);else if(8==N.g.byteLength)E=N.g.getFloat64(0);else throw new T(2,3,3003);}if(null==E)throw new T(2,3,3011);K=M/1E9;E*=K;M=tt(new st(v));if(475249515!=M.id)throw new T(2,3,3007);H=yt(M,H,K,E,d,c,C,y,B)}z=H;D=t(z);for(F=D.next();!F.done;F=
928
929
  D.next())J=F.value,J.codecs=a.N.codecs,J.mimeType=a.N.mimeType;h.le(z);r=new Zk(z);k&&r.dd(y,B,!0);return L.return(r)})}function Dt(a){return a.wd}function Ft(a){var b=mt(a,Dt,"RepresentationIndex");a=lt(a,Dt,"indexRange");a=yh(a||"");b&&(a=th(b,"range",yh,a));return a}function Et(a,b){Ht(a,b);if(!Ft(a))throw new T(2,4,4002);}function Ht(a,b){var c=a.N.mimeType.split("/")[1];if(a.N.contentType!=Uc&&"mp4"!=c&&"webm"!=c)throw new T(2,4,4006);if("webm"==c&&!b)throw new T(2,4,4005);}
929
- function Bt(a){var b=a.N;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.qd,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null,label:a.Aa.label||null,roles:a.roles||null,language:a.Aa.language||null}};function It(a,b,c){var d=At(a,Jt,c),e=Kt(a);if(!e.eb&&!e.timeline&&1<e.od.length)throw new T(2,4,4002);if(!e.eb&&!a.xa.duration&&!e.timeline&&1==e.od.length)throw new T(2,4,4002);if(e.timeline&&0==e.timeline.length)throw new T(2,4,4002);var f=null,g=null;a.La.id&&a.N.id&&(g=b[a.La.id+","+a.N.id])&&(f=g.segmentIndex);var h=Lt(a.xa.start,a.xa.duration,a.N.Ya,e,d,c,a.N.mimeType,a.N.codecs);b=!f;f?f.je(h,a.presentationTimeline.Hb()):f=new Zk(h);a.presentationTimeline.le(h);a.Vb&&a.xa.ge||f.dd(a.xa.start,
930
- a.xa.duration?a.xa.start+a.xa.duration:Infinity,b);g&&(g.segmentIndex=f);return{Gc:function(){f&&0!=f.getNumReferences()||f.qf(h);return Promise.resolve(f)}}}function Jt(a){return a.lc}function Kt(a){var b=Mt(a);a=kt(a,Jt);var c=a.we;0==c&&(c=1);var d=0;a.eb?d=a.eb*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{eb:a.eb,startTime:d,we:c,kc:a.kc,timeline:a.timeline,od:b}}
930
+ function Bt(a){var b=a.N;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.qd,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null,label:a.Ba.label||null,roles:a.roles||null,language:a.Ba.language||null}};function It(a,b,c){var d=At(a,Jt,c),e=Kt(a);if(!e.eb&&!e.timeline&&1<e.od.length)throw new T(2,4,4002);if(!e.eb&&!a.ya.duration&&!e.timeline&&1==e.od.length)throw new T(2,4,4002);if(e.timeline&&0==e.timeline.length)throw new T(2,4,4002);var f=null,g=null;a.Na.id&&a.N.id&&(g=b[a.Na.id+","+a.N.id])&&(f=g.segmentIndex);var h=Lt(a.ya.start,a.ya.duration,a.N.Ya,e,d,c,a.N.mimeType,a.N.codecs);b=!f;f?f.je(h,a.presentationTimeline.Hb()):f=new Zk(h);a.presentationTimeline.le(h);a.Vb&&a.ya.ge||f.dd(a.ya.start,
931
+ a.ya.duration?a.ya.start+a.ya.duration:Infinity,b);g&&(g.segmentIndex=f);return{Gc:function(){f&&0!=f.getNumReferences()||f.qf(h);return Promise.resolve(f)}}}function Jt(a){return a.lc}function Kt(a){var b=Mt(a);a=kt(a,Jt);var c=a.we;0==c&&(c=1);var d=0;a.eb?d=a.eb*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{eb:a.eb,startTime:d,we:c,kc:a.kc,timeline:a.timeline,od:b}}
931
932
  function Lt(a,b,c,d,e,f,g,h){var k=d.od.length;d.timeline&&d.timeline.length!=d.od.length&&(k=Math.min(d.timeline.length,d.od.length));for(var l=a-d.kc,m=b?a+b:Infinity,n=[],p=d.startTime,r={},u=0;u<k;r={Nd:r.Nd,Kd:r.Kd},u++){r.Kd=d.od[u];var w=p;p=void 0;p=null!=d.eb?w+d.eb:d.timeline?d.timeline[u].end:w+b;r.Nd=null;w=new Ki(a+w,a+p,function(v){return function(){null==v.Nd&&(v.Nd=Oc(c(),[v.Kd.kk]));return v.Nd}}(r),r.Kd.start,r.Kd.end,e,l,a,m,[],"",null,null,Li,f);w.codecs=h;w.mimeType=g;n.push(w)}return n}
932
- function Mt(a){return[a.N.lc,a.Aa.lc,a.La.lc].filter(Ye).map(function(b){return lh(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.attributes.indexRange&&!a.Rg&&(a.Rg=!0);var c=Gc(b.attributes.media);b=th(b,"mediaRange",yh,{start:0,end:null});return{kk:c,start:b.start,end:b.end}})};function Nt(a,b,c,d,e,f,g,h,k){k||a.N.kd||(a.N.kd=lt(a,Ot,"initialization"));var l=a.N.kd?Pt(a,g):null,m=Qt(a);Rt(m);var n=$e(a);if(m.be)return Ht(a,l),{Gc:function(){var v=jt(m.be,n.N.id,null,null,n.bandwidth||null,null);v=Oc(n.N.Ya(),[v]);return Gt(n,b,l,v,0,null,m.kc)}};if(m.eb)return d||"image"===a.Aa.contentType||(a.presentationTimeline.Xg(m.eb),a.presentationTimeline.uf(a.xa.start)),{Gc:function(){return St(n,m,e,l,f,g,h)}};var p=null;d=d=null;a.La.id&&a.N.id&&(d=a.La.id+","+a.N.id,d=c[d])&&
933
- (p=d.segmentIndex);var r=a.xa.start,u=a.xa.duration?r+a.xa.duration:Infinity,w=!(a.Vb&&a.xa.ge);p?(c=p,Tt(c,m,r,u,w,l),c.hb(a.presentationTimeline.Hb())):p=new Ut(m,a.N.id,a.bandwidth,a.N.Ya,r,u,l,w,g,a.N.ih);m.timeline&&"image"!==a.Aa.contentType&&a.presentationTimeline.oi(m.timeline,r);d&&a.Vb&&(d.segmentIndex=p);return{Gc:function(){p instanceof Ut&&0==p.getNumReferences()&&Tt(p,m,r,u,w,l);return Promise.resolve(p)}}}function Ot(a){return a.xc}
933
+ function Mt(a){return[a.N.lc,a.Ba.lc,a.Na.lc].filter(Ye).map(function(b){return lh(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.attributes.indexRange&&!a.Rg&&(a.Rg=!0);var c=Gc(b.attributes.media);b=th(b,"mediaRange",yh,{start:0,end:null});return{kk:c,start:b.start,end:b.end}})};function Nt(a,b,c,d,e,f,g,h,k){k||a.N.kd||(a.N.kd=lt(a,Ot,"initialization"));var l=a.N.kd?Pt(a,g):null,m=Qt(a);Rt(m);var n=$e(a);if(m.be)return Ht(a,l),{Gc:function(){var v=jt(m.be,n.N.id,null,null,n.bandwidth||null,null);v=Oc(n.N.Ya(),[v]);return Gt(n,b,l,v,0,null,m.kc)}};if(m.eb)return d||"image"===a.Ba.contentType||(a.presentationTimeline.Xg(m.eb),a.presentationTimeline.uf(a.ya.start)),{Gc:function(){return St(n,m,e,l,f,g,h)}};var p=null;d=d=null;a.Na.id&&a.N.id&&(d=a.Na.id+","+a.N.id,d=c[d])&&
934
+ (p=d.segmentIndex);var r=a.ya.start,u=a.ya.duration?r+a.ya.duration:Infinity,w=!(a.Vb&&a.ya.ge);p?(c=p,Tt(c,m,r,u,w,l),c.hb(a.presentationTimeline.Hb())):p=new Ut(m,a.N.id,a.bandwidth,a.N.Ya,r,u,l,w,g,a.N.ih);m.timeline&&"image"!==a.Ba.contentType&&a.presentationTimeline.oi(m.timeline,r);d&&a.Vb&&(d.segmentIndex=p);return{Gc:function(){p instanceof Ut&&0==p.getNumReferences()&&Tt(p,m,r,u,w,l);return Promise.resolve(p)}}}function Ot(a){return a.xc}
934
935
  function Qt(a){var b=kt(a,Ot),c=lt(a,Ot,"media"),d=lt(a,Ot,"index");return{eb:b.eb,timescale:b.timescale,we:b.we,kc:b.kc,Bh:b.Bh,timeline:b.timeline,pd:c&&Gc(c),be:d,mimeType:a.N.mimeType,codecs:a.N.codecs}}function Rt(a){var b=a.be?1:0;b+=a.timeline?1:0;b+=a.eb?1:0;if(0==b)throw new T(2,4,4002);1!=b&&(a.be&&(a.timeline=null),a.eb=null);if(!a.be&&!a.pd)throw new T(2,4,4002);}
935
936
  function St(a,b,c,d,e,f,g){function h(E){var K=(E-w)*u,M=K+b.kc,N=K+n;K=N+u;var Q=Math.min(K,l());N=new Ki(N,Q,function(){var U=M*v;"BigInt"in window&&U>Number.MAX_SAFE_INTEGER&&(U=BigInt(M)*BigInt(v));U=jt(A,C,E,null,z,U);return Oc(y(),[U])},0,null,d,B,n,l(),[],"",null,null,Li,f);N.codecs=a.N.codecs;N.mimeType=a.N.mimeType;N.i=K;return N}function k(){var E=[Math.max(m.Hb(),n),Math.min(m.sc(),l())].map(function(K){return K-n});E=[Math.ceil(E[0]/u),Math.ceil(E[1]/u)-1];a.N.ab&&E[1]++;return E.map(function(K){return K+
936
- w})}function l(){var E=null!=p&&e[p]||r;return E?n+E:Infinity}var m=a.presentationTimeline,n=a.xa.start,p=a.La.id,r=a.xa.duration,u=b.eb,w=b.we,v=b.timescale,A=b.pd,z=a.bandwidth||null,C=a.N.id,y=a.N.Ya,B=n-b.kc,D=k();c=a.Vb?Math.max(D[0],D[1]-c+1):D[0];g=g||D[1];D=[];for(var F=c;F<=g;++F){var J=h(F);D.push(J)}var L=new Zk(D);D=m.sc()<l();F=m.U();if(D||F){var H=Math.max(c,g+1);c=u;a.N.ab&&(c=.1);L.Ff(c,function(){var E=m.Hb();L.hb(E);var K=t(k());K.next();K=K.next().value;for(var M=[];H<=K;){var N=
937
+ w})}function l(){var E=null!=p&&e[p]||r;return E?n+E:Infinity}var m=a.presentationTimeline,n=a.ya.start,p=a.Na.id,r=a.ya.duration,u=b.eb,w=b.we,v=b.timescale,A=b.pd,z=a.bandwidth||null,C=a.N.id,y=a.N.Ya,B=n-b.kc,D=k();c=a.Vb?Math.max(D[0],D[1]-c+1):D[0];g=g||D[1];D=[];for(var F=c;F<=g;++F){var J=h(F);D.push(J)}var L=new Zk(D);D=m.sc()<l();F=m.U();if(D||F){var H=Math.max(c,g+1);c=u;a.N.ab&&(c=.1);L.Ff(c,function(){var E=m.Hb();L.hb(E);var K=t(k());K.next();K=K.next().value;for(var M=[];H<=K;){var N=
937
938
  h(H);M.push(N);H++}return E>l()&&!M.length?null:M})}return Promise.resolve(L)}function Pt(a,b){var c=a.N.kd;c||(c=lt(a,Ot,"initialization"));if(!c)return null;c=Gc(c);var d=a.N.id,e=a.bandwidth||null,f=a.N.Ya;b=new Ii(function(){var g=jt(c,d,null,null,e,null);return Oc(f(),[g])},0,null,Bt(a),null,null,b);b.codecs=a.N.codecs;b.mimeType=a.N.mimeType;return b}
938
939
  function Ut(a,b,c,d,e,f,g,h,k,l){Zk.call(this,[]);this.g=a;this.G=b;this.A=c;this.C=d;this.h=e;this.j=f;this.s=g;this.u=k;this.H=l;h&&Vt(this)}pa(Ut,Zk);q=Ut.prototype;q.getNumReferences=function(){return this.g?this.g.timeline.length:0};q.release=function(){Zk.prototype.release.call(this);this.g=null};
939
940
  q.hb=function(a){if(this.g){for(var b=0,c=this.g.timeline,d=0;d<c.length;d+=1)if(c[d].end+this.h<=a)b+=1;else break;0<b&&(this.g.timeline=c.slice(b),this.T.length>=b&&(this.T=this.T.slice(b)),this.i+=b,0===this.getNumReferences()&&this.release())}};
@@ -951,8 +952,8 @@ function eu(a,b){var c=[],d=[],e=[],f=[];a=t(a);for(var g=a.next();!g.done;g=a.n
951
952
  q.mg=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m,n,p,r,u,w,v,A,z,C,y,B,D,F,J,L,H,E,K,M,N,Q,U,R;return O(function(ca){if(1==ca.g){e=Wc;if(!b&&1==a.length)return f=eu(a,!1),g=f.Ih,h=f.Pi,k=f.Ki,l=f.ci,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()),ca.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 ca.return();u=eu(a,!0);w=u.Ih;v=u.Pi;A=u.Ki;z=u.ci;
952
953
  return G(ca,Promise.all([ku(d,d.h,w,n,lu,mu,m),ku(d,d.g,v,n,lu,mu,m),ku(d,d.l,A,n,lu,mu,m),ku(d,d.i,z,n,lu,mu,m)]),2)}C=0;y=[];if(d.g.length&&d.h.length)for(H=t(d.h),E=H.next();!E.done;E=H.next())for(K=E.value,M=t(d.g),N=M.next();!N.done;N=M.next())Q=N.value,U=Qb(K.drmInfos,Q.drmInfos),K.drmInfos.length&&Q.drmInfos.length&&!U.length||(R=C++,y.push({id:R,language:K.language,disabledUntilTime:0,primary:K.primary,audio:K,video:Q,bandwidth:(K.bandwidth||0)+(Q.bandwidth||0),drmInfos:U,allowedByApplication:!0,
953
954
  allowedByKeySystem:!0,decodingInfos:[]}));else for(B=d.g.length?d.g:d.h,D=t(B),F=D.next();!F.done;F=D.next())J=F.value,L=C++,y.push({id:L,language:J.language,disabledUntilTime:0,primary:J.primary,audio:J.type==e.ha?J:null,video:J.type==e.ua?J:null,bandwidth:J.bandwidth||0,drmInfos:J.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});d.j=y;I(ca)})};
954
- function nu(a){var b,c,d,e,f,g,h,k,l,m,n,p,r,u,w,v,A,z,C,y,B,D,F,J,L,H,E,K,M,N;return O(function(Q){switch(Q.g){case 1:b=Wc;if(1==a.length)return Q.return(a[0]);c=a.map(function(U){return new Map(U.filter(function(R){return R.type===b.ha}).map(function(R){return[fu(R),R]}))});d=a.map(function(U){return new Map(U.filter(function(R){return R.type===b.ua}).map(function(R){return[gu(R),R]}))});e=a.map(function(U){return new Map(U.filter(function(R){return R.type===b.Ia}).map(function(R){return[hu(R),
955
- R]}))});f=a.map(function(U){return new Map(U.filter(function(R){return R.type===b.ag}).map(function(R){return[iu(R),R]}))});g=t(e);for(h=g.next();!h.done;h=g.next())k=h.value,l=ou(b.Ia),k.set(hu(l),l);m=t(f);for(n=m.next();!n.done;n=m.next())p=n.value,r=ou(b.ag),p.set(iu(r),r);u=new du;return G(Q,ku(u,[],c,0,pu,qu,0),2);case 2:return w=Q.h,G(Q,ku(u,[],d,0,pu,qu,0),3);case 3:return v=Q.h,G(Q,ku(u,[],e,0,pu,qu,0),4);case 4:return A=Q.h,G(Q,ku(u,[],f,0,pu,qu,0),5);case 5:z=Q.h;C=0;if(v.length&&w.length)for(J=
955
+ function nu(a){var b,c,d,e,f,g,h,k,l,m,n,p,r,u,w,v,A,z,C,y,B,D,F,J,L,H,E,K,M,N;return O(function(Q){switch(Q.g){case 1:b=Wc;if(1==a.length)return Q.return(a[0]);c=a.map(function(U){return new Map(U.filter(function(R){return R.type===b.ha}).map(function(R){return[fu(R),R]}))});d=a.map(function(U){return new Map(U.filter(function(R){return R.type===b.ua}).map(function(R){return[gu(R),R]}))});e=a.map(function(U){return new Map(U.filter(function(R){return R.type===b.Ka}).map(function(R){return[hu(R),
956
+ R]}))});f=a.map(function(U){return new Map(U.filter(function(R){return R.type===b.ag}).map(function(R){return[iu(R),R]}))});g=t(e);for(h=g.next();!h.done;h=g.next())k=h.value,l=ou(b.Ka),k.set(hu(l),l);m=t(f);for(n=m.next();!n.done;n=m.next())p=n.value,r=ou(b.ag),p.set(iu(r),r);u=new du;return G(Q,ku(u,[],c,0,pu,qu,0),2);case 2:return w=Q.h,G(Q,ku(u,[],d,0,pu,qu,0),3);case 3:return v=Q.h,G(Q,ku(u,[],e,0,pu,qu,0),4);case 4:return A=Q.h,G(Q,ku(u,[],f,0,pu,qu,0),5);case 5:z=Q.h;C=0;if(v.length&&w.length)for(J=
956
957
  t(w),L=J.next();!L.done;L=J.next())for(H=L.value,E=t(v),K=E.next();!K.done;K=E.next())M=K.value,N=C++,M.variantIds.push(N),H.variantIds.push(N);else for(y=v.concat(w),B=t(y),D=B.next();!D.done;D=B.next())F=D.value,F.variantIds=[C++];return Q.return(v.concat(w).concat(A).concat(z))}})}
957
958
  function ku(a,b,c,d,e,f,g){var h,k,l,m,n,p,r,u,w,v,A,z,C,y,B,D,F,J;return O(function(L){switch(L.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){L.B(4);break}n=m.value;return G(L,ru(a,n,c,d,f,h,g),5);case 5:p=L.h;if(!p)throw new T(2,4,4037);m=l.next();L.B(2);break;case 4:r=t(h);for(u=r.next();!u.done;u=r.next())for(w=u.value,v=t(w),A=v.next();!A.done;A=v.next())z=A.value,(C=su(a,z,c,e,f,h))&&b.push(C);y=t(h);for(u=y.next();!u.done;u=
958
959
  y.next())for(B=u.value,D={},F=t(B),A=F.next();!A.done;D={Je:D.Je},A=F.next())if(D.Je=A.value,!tu(D.Je)&&(J=b.some(function(H){return function(E){return uu(a,H.Je,E)}}(D))))throw new T(2,4,4037);return L.return(b)}})}function ru(a,b,c,d,e,f,g){return O(function(h){if(1==h.g)return vu(a,c,b,0<g),b.matchedStreams?b.segmentIndex?G(h,wu(b,d+g),2):h.B(2):h.return(!1);xu(b,d,e,f,g);return h.return(!0)})}
@@ -977,8 +978,8 @@ function ju(a){return{id:0,originalId:"",groupId:null,createSegmentIndex:functio
977
978
  function Hu(a,b,c){if(b==a&&a!=c)return Ju;if(c==a&&a!=b)return Iu;if(b>a){if(c<=a||c-a<b-a)return Iu;if(c-a>b-a)return Ju}else{if(c>a)return Ju;if(a-c<a-b)return Iu;if(a-c>a-b)return Ju}return Lu}function Ku(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?Iu:b<a?Ju:Lu}function tu(a){switch(a.type){case Uc:return!a.language;case "image":return!a.tilesLayout;default:return!1}}
978
979
  function gu(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 fu(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 hu(a){return JSON.stringify([a.language,a.label,a.codecs,a.mimeType,a.bandwidth,a.roles])}
979
980
  function iu(a){return JSON.stringify([a.width,a.codecs,a.mimeType])}P("shaka.util.PeriodCombiner",du);du.prototype.setUseStreamOnce=du.prototype.Gi;du.prototype.setAllowMultiTypeVariants=du.prototype.xi;du.prototype.combinePeriods=du.prototype.mg;du.prototype.getImageStreams=du.prototype.sj;du.prototype.getTextStreams=du.prototype.Lg;du.prototype.getVariants=du.prototype.Oj;var Iu=1,Lu=0,Ju=-1,Gu=new Map;function Mu(a,b){var c=new DOMParser,d=Nu.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 Ou(a,b){try{var c=Cc(a);return Mu(c,b)}catch(d){return null}}
980
- var Nu=new Ob(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 Pu(){var a=this;this.j=this.g=null;this.A=[];this.i=null;this.aa=1;this.C=[];this.l={tf:"",type:"",profiles:[],fc:null,ab:0,Ya:null,pe:0};this.s=new Map;this.u={};this.W={};this.m=new du;this.J=0;this.Z=new od(5);this.K=new Vb(function(){if(a.I&&!a.g.continueLoadingWhenPaused&&(a.G.Na(a.I,"timeupdate"),a.I.paused)){a.G.ia(a.I,"timeupdate",function(){return Qu(a)});return}Qu(a)});this.O=new wg;this.M=null;this.ea=[];this.P=Infinity;this.H=!1;this.h=null;this.L=0;this.S=!1;this.G=new rd;this.I=
981
- null}q=Pu.prototype;q.configure=function(a){var b=this.j&&a.dash.updatePeriod!=this.g.dash.updatePeriod&&0<=a.dash.updatePeriod;this.g=a;b&&this.i&&this.i.presentationTimeline.U()&&this.K.Qa();this.h&&this.h.configure(this.g);this.m&&(this.m.xi(this.g.dash.multiTypeVariantsAllowed&&yd()),this.m.Gi(this.g.dash.useStreamOnceInPeriodFlattening))};
981
+ var Nu=new Ob(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 Pu(){var a=this;this.j=this.g=null;this.A=[];this.i=null;this.aa=1;this.C=[];this.l={tf:"",type:"",profiles:[],fc:null,ab:0,Ya:null,pe:0};this.s=new Map;this.u={};this.W={};this.m=new du;this.J=0;this.Z=new od(5);this.K=new Vb(function(){if(a.I&&!a.g.continueLoadingWhenPaused&&(a.G.Pa(a.I,"timeupdate"),a.I.paused)){a.G.ia(a.I,"timeupdate",function(){return Qu(a)});return}Qu(a)});this.O=new wg;this.M=null;this.ea=[];this.P=Infinity;this.H=!1;this.h=null;this.L=0;this.S=!1;this.G=new rd;this.I=
982
+ null}q=Pu.prototype;q.configure=function(a){var b=this.j&&a.dash.updatePeriod!=this.g.dash.updatePeriod&&0<=a.dash.updatePeriod;this.g=a;b&&this.i&&this.i.presentationTimeline.U()&&this.K.Sa();this.h&&this.h.configure(this.g);this.m&&(this.m.xi(this.g.dash.multiTypeVariantsAllowed&&yd()),this.m.Gi(this.g.dash.useStreamOnceInPeriodFlattening))};
982
983
  q.start=function(a,b){var c=this,d;return O(function(e){if(1==e.g)return c.H=b.isLowLatencyMode(),c.A=[a],c.j=b,G(e,Ru(c),2);d=e.h;c.j&&Su(c,d);if(!c.j)throw new T(2,7,7001);return e.return(c.i)})};
983
984
  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.j=null;this.A=[];this.i=null;this.u={};this.s.clear();this.l={tf:"",type:"",profiles:[],fc:null,ab:0,Ya:null,pe:0};this.m=null;null!=this.K&&(this.K.stop(),this.K=null);this.h&&this.h.destroy();this.G&&(this.G.release(),this.G=null);return this.O.destroy()};
984
985
  q.update=function(){var a=this,b;return O(function(c){if(1==c.g)return ta(c,2),G(c,Ru(a),4);if(2!=c.g)return va(c,0);b=wa(c);if(!a.j||!b)return c.return();a.j.onError(b);I(c)})};q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(a){if(this.i&&this.i.presentationTimeline.U()){var b=a.video||a.audio;if(b&&b.segmentIndex){a=this.i.presentationTimeline.sc();var c=b.segmentIndex.find(a);null!=c&&(b=b.segmentIndex.get(c))&&(this.J=b.endTime-a,Su(this,0))}}};
@@ -990,34 +991,34 @@ function Xu(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,w,v,A,z,C,y,B,D,F,J,L,H,E,K,M,N,Q
990
991
  b.attributes.id||"";a.l.pe=th(b,"publishTime",wh)||0;a.C=lh(b,"PatchLocation");u=Promise.resolve();if((w=qh(b,"ContentSteering"))&&a.j){v=w.attributes.defaultServiceLocation;if(a.h)a.h.i=d,a.h.h=v;else if(a.h=new Yt(a.j),a.h.configure(a.g),a.h.setManifestType("DASH"),a.h.i=d,a.h.h=v,A=oh(w))(z=th(w,"queryBeforeStart",Fh,!1))?u=Zt(a.h,A):Zt(a.h,A);C=t(f.keys());for(y=C.next();!y.done;y=C.next())B=y.value,D=f.get(B),bu(a.h,"Location",B,D)}F=lh(b,"BaseURL");L=!1;if(a.h)for(H=t(F),E=H.next();!E.done;E=
991
992
  H.next())K=E.value,M=K.attributes.serviceLocation,N=oh(K),M&&N&&(bu(a.h,"BaseURL",M,N),L=!0);L&&a.h||(Q=F.map(oh),J=Oc(d,Q));U=function(){return a.h&&L?cu(a.h,"BaseURL"):J?J:[]};a.l.Ya=U;R=0;F&&F.length&&(R=th(F[0],"availabilityTimeOffset",Eh)||0);a.l.ab=R;ca=a.g.dash.ignoreMinBufferTime;fa=0;ca||(fa=th(b,"minBufferTime",xh)||0);a.J=th(b,"minimumUpdatePeriod",xh,-1);Xa=th(b,"availabilityStartTime",wh);Aa=th(b,"timeShiftBufferDepth",xh);Ra=a.g.dash.ignoreSuggestedPresentationDelay;bb=null;Ra||(bb=
992
993
  th(b,"suggestedPresentationDelay",xh));Ya=a.g.dash.ignoreMaxSegmentDuration;mb=null;Ya||(mb=th(b,"maxSegmentDuration",xh));db=b.attributes.type||"static";a.l.type=db;if(a.i)for(Za=a.i.presentationTimeline,wc=t(Object.values(a.u)),Ta=wc.next();!Ta.done;Ta=wc.next())tb=Ta.value,tb.segmentIndex&&tb.segmentIndex.hb(Za.Hb());else Yb=a.g.defaultPresentationDelay||1.5*fa,Xc=null!=bb?bb:Yb,Za=new Dk(Xa,Xc,a.g.dash.autoCorrectDrift);Za.Tc("static"==db);(Ee=Za.U())&&!isNaN(a.g.availabilityWindowOverride)&&
993
- (Aa=a.g.availabilityWindowOverride);null==Aa&&(Aa=Infinity);Za.Bf(Aa);Fe=b.attributes.profiles||"";a.l.profiles=Fe.split(",");Ge={Vb:"static"!=db,presentationTimeline:Za,La:null,xa:null,Aa:null,N:null,bandwidth:0,Rg:!1,ab:R,fc:null,profiles:Fe.split(","),roles:null};a.L=0;ae=Yu(a,Ge,U,b);yj=ae.duration;be=ae.periods;"static"!=db&&ae.Sh||Za.vb(yj||Infinity);a.S&&!a.H&&(zj=a.j.isAutoLowLatencyMode())&&(a.j.enableLowLatencyMode(),a.H=a.j.isLowLatencyMode());a.H&&Za.zi(a.P);Za.Xg(mb||1);return G(xc,u,
994
+ (Aa=a.g.availabilityWindowOverride);null==Aa&&(Aa=Infinity);Za.Bf(Aa);Fe=b.attributes.profiles||"";a.l.profiles=Fe.split(",");Ge={Vb:"static"!=db,presentationTimeline:Za,Na:null,ya:null,Ba:null,N:null,bandwidth:0,Rg:!1,ab:R,fc:null,profiles:Fe.split(","),roles:null};a.L=0;ae=Yu(a,Ge,U,b);yj=ae.duration;be=ae.periods;"static"!=db&&ae.Sh||Za.vb(yj||Infinity);a.S&&!a.H&&(zj=a.j.isAutoLowLatencyMode())&&(a.j.enableLowLatencyMode(),a.H=a.j.isLowLatencyMode());a.H&&Za.zi(a.P);Za.Xg(mb||1);return G(xc,u,
994
995
  2);case 2:a.H&&(fa=0,Aj=null!=bb?bb:a.g.defaultPresentationDelay,Za.nh(Aj));if(!a.i)return G(xc,a.m.mg(be,Ge.Vb),6);a.i.periodCount=be.length;a.i.gapCount=a.L;return G(xc,Zu(a,be,!1),4);case 6:a.i={presentationTimeline:Za,variants:a.m.j,textStreams:a.m.Lg(),imageStreams:a.m.i,offlineSessionIds:[],minBufferTime:fa||0,sequenceMode:a.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:$u(b),nextUrl:av(b),periodCount:be.length,gapCount:a.L,isLowLatency:a.S};if(!Za.Ni()){xc.B(7);
995
996
  break}mh=lh(b,"UTCTiming");return G(xc,bv(a,U,mh),8);case 8:He=xc.h;if(!a.j)return xc.return();Za.Ai(He);case 7:Za.mf();case 4:a.j.makeTextStreamsForClosedCaptions(a.i),I(xc)}})}function Zu(a,b,c){var d;return O(function(e){if(1==e.g)return G(e,a.m.mg(b,!0,c),2);a.i.variants=a.m.j;d=a.m.Lg();0<d.length&&(a.i.textStreams=d);a.i.imageStreams=a.m.i;a.j.filter(a.i);I(e)})}
996
997
  function Wu(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,w,v,A,z,C,y,B,D,F,J,L,H;return O(function(E){if(1==E.g){c=b.attributes.mpdId;d=th(b,"originalPublishTime",wh);if(!c||c!==a.l.tf||d!==a.l.pe)throw a.C=[],new T(1,4,4052);e=[];f=[];g=new Set;h=t(kh(b));for(k=h.next();!k.done;k=h.next())if(l=k.value,m=Hh(l.attributes.sel||""),n=m[m.length-1],p=oh(l)||"","MPD"===n.name)if("mediaPresentationDuration"===n.pc){r=oh(l)||"";var K=xh(r);if(null!=K){a.l.fc=K;for(var M=t(a.s.values()),N=M.next();!N.done;N=M.next())N.value.fc=
997
998
  K}}else if("type"===n.pc){a.i.presentationTimeline.Tc("static"==p);a.l.type=p;K=t(a.s.values());for(M=K.next();!M.done;M=K.next())M.value.Vb="dynamic"==p;"static"==p&&(a.J=-1)}else"publishTime"===n.pc?a.l.pe=wh(p)||0:null===n.pc&&"add"===l.tagName&&f.push(l);else if("PatchLocation"===n.name)Ih(a.C,l);else if("Period"===n.name)if("add"===l.tagName)f.push(l);else{if("remove"===l.tagName&&n.id)for(K=n.id,a.i.periodCount--,M=t(a.s.keys()),N=M.next();!N.done;N=M.next())if(N=N.value,N.startsWith(K)){var Q=
998
999
  a.s.get(N);mt(Q,Ot,"SegmentTimeline").children=[];cv(a,N);a.s.delete(N)}}else if("SegmentTemplate"===n.name){M=Hh(l.attributes.sel||"");K=M[M.length-1];if(K.pc){M=dv(a,M);N=oh(l)||"";Q=t(M);for(var U=Q.next();!U.done;U=Q.next())U=a.s.get(U.value),Jh(U.N.xc,l.tagName,K.pc,N);K=M}else K=[];u=K;w=t(u);for(v=w.next();!v.done;v=w.next())A=v.value,g.add(A)}else if("SegmentTimeline"===n.name||"S"===n.name){K=Hh(l.attributes.sel||"");K=dv(a,K);M=t(K);for(N=M.next();!N.done;N=M.next())N=a.s.get(N.value),N=
999
- mt(N,Ot,"SegmentTimeline"),Q=lh(N,"S"),Ih(Q,l),N.children=Q;z=K;C=t(z);for(v=C.next();!v.done;v=C.next())y=v.value,g.add(y)}B=t(g);for(v=B.next();!v.done;v=B.next())D=v.value,cv(a,D);F=t(f);for(J=F.next();!J.done;J=F.next())L=J.value,e.push.apply(e,x(Yu(a,{Vb:"dynamic"==a.l.type,presentationTimeline:a.i.presentationTimeline,La:null,xa:null,Aa:null,N:null,bandwidth:0,Rg:!1,ab:a.l.ab,profiles:a.l.profiles,fc:a.l.fc,roles:null},a.l.Ya,L).periods));if(!e.length)return E.B(2);a.i.periodCount+=e.length;
1000
- a.i.gapCount=a.L;return G(E,Zu(a,e,!0),2)}"static"==a.l.type&&(H=a.l.fc,a.i.presentationTimeline.vb(H||Infinity));I(E)})}function dv(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.s.values()),e=a.next();!e.done;e=a.next())e=e.value,e.La.id===c&&e.Aa.id===d&&e.N.id&&b.push(c+","+e.N.id);return b}
1000
+ mt(N,Ot,"SegmentTimeline"),Q=lh(N,"S"),Ih(Q,l),N.children=Q;z=K;C=t(z);for(v=C.next();!v.done;v=C.next())y=v.value,g.add(y)}B=t(g);for(v=B.next();!v.done;v=B.next())D=v.value,cv(a,D);F=t(f);for(J=F.next();!J.done;J=F.next())L=J.value,e.push.apply(e,x(Yu(a,{Vb:"dynamic"==a.l.type,presentationTimeline:a.i.presentationTimeline,Na:null,ya:null,Ba:null,N:null,bandwidth:0,Rg:!1,ab:a.l.ab,profiles:a.l.profiles,fc:a.l.fc,roles:null},a.l.Ya,L).periods));if(!e.length)return E.B(2);a.i.periodCount+=e.length;
1001
+ a.i.gapCount=a.L;return G(E,Zu(a,e,!0),2)}"static"==a.l.type&&(H=a.l.fc,a.i.presentationTimeline.vb(H||Infinity));I(E)})}function dv(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.s.values()),e=a.next();!e.done;e=a.next())e=e.value,e.Na.id===c&&e.Ba.id===d&&e.N.id&&b.push(c+","+e.N.id);return b}
1001
1002
  function cv(a,b){var c=a.s.get(b),d=a.u[b];d.segmentIndex&&d.segmentIndex.hb(a.i.presentationTimeline.Hb());try{var e=Nt(c,function(f,g,h,k){return ev(a,f,g,h,k)},a.u,!0,a.g.dash.initialSegmentLimit,a.W,c.N.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 G(g,e.Gc(),3)}f.segmentIndex=g.h;I(g)})}}catch(f){if(b=c.N.contentType,b!=Uc&&"application"!=b&&"image"!=b||4002!=f.code)throw f;}}
1002
1003
  function $u(a){var b=qh(a,"ServiceDescription");if(!b)return null;a=qh(b,"Latency");b=qh(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)));
1003
1004
  return c}function av(a){a=lh(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}
1004
1005
  function Yu(a,b,c,d){var e=b.fc;e||(e=th(d,"mediaPresentationDuration",xh),a.l.fc=e);var f=[],g=0;d=lh(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);u=Yc;r&&p&&Math.abs(r-p)>u&&r>p&&a.L++;null==r&&(r=p);if(!(null!==a.M&&null!==n&&null!==m&&m<a.M)||a.ea.includes(n)||h+1==d.length){null!==m&&(null===a.M||m>a.M)&&(a.M=m);g=fv(a,b,c,{start:m,duration:r,
1005
- node:k,ge:null==r||!l});f.push(g);b.La.id&&r&&(a.W[b.La.id]=r);if(null==r){g=null;break}g=m+r}}a.ea=f.map(function(w){return w.id});return null!=e?{periods:f,duration:e,Sh:!1}:{periods:f,duration:g,Sh:!0}}
1006
- function fv(a,b,c,d){b.La=gv(a,d.node,null,c);b.xa=d;b.La.ab=b.ab;b.La.id||(b.La.id="__shaka_period_"+d.start);var e=lh(d.node,"EventStream");c=b.presentationTimeline.Hb();e=t(e);for(var f=e.next();!f.done;f=e.next())hv(a,d.start,d.duration,f.value,c);c=lh(d.node,"AdaptationSet").map(function(m){return iv(a,b,m)}).filter(Ye);if(b.Vb){d=[];e=t(c);for(f=e.next();!f.done;f=e.next()){f=t(f.value.Bk);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new T(2,4,4018);
1006
+ node:k,ge:null==r||!l});f.push(g);b.Na.id&&r&&(a.W[b.Na.id]=r);if(null==r){g=null;break}g=m+r}}a.ea=f.map(function(w){return w.id});return null!=e?{periods:f,duration:e,Sh:!1}:{periods:f,duration:g,Sh:!0}}
1007
+ function fv(a,b,c,d){b.Na=gv(a,d.node,null,c);b.ya=d;b.Na.ab=b.ab;b.Na.id||(b.Na.id="__shaka_period_"+d.start);var e=lh(d.node,"EventStream");c=b.presentationTimeline.Hb();e=t(e);for(var f=e.next();!f.done;f=e.next())hv(a,d.start,d.duration,f.value,c);c=lh(d.node,"AdaptationSet").map(function(m){return iv(a,b,m)}).filter(Ye);if(b.Vb){d=[];e=t(c);for(f=e.next();!f.done;f=e.next()){f=t(f.value.Bk);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new T(2,4,4018);
1007
1008
  }d=c.filter(function(m){return!m.Ah});c=c.filter(function(m){return m.Ah});c=t(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.Ah.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={Ie:h.Ie},l=k.next())h.Ie=l.value,h.Ie.trickModeVideo=e.streams.find(function(m){return function(n){return De(m.Ie.codecs)==De(n.codecs)}}(h))}}}c=jv(a.g.disableAudio,d,"audio");e=jv(a.g.disableVideo,d,"video");f=jv(a.g.disableText,
1008
- d,Uc);d=jv(a.g.disableThumbnails,d,"image");if(0===e.length&&0===c.length)throw new T(2,4,4004);return{id:b.La.id,audioStreams:c,videoStreams:e,textStreams:f,imageStreams:d}}function jv(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},[])}
1009
- function iv(a,b,c){function d(E){switch(E){case 1:case 5:case 6:case 7:return"srgb";case 9:return"rec2020";case 11:case 12:return"p3"}}function e(E){switch(E){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.Aa=gv(a,c,b.La,null);var f=!1,g=lh(c,"Role"),h=g.map(function(E){return E.attributes.value}).filter(Ye),k=void 0,l=b.Aa.contentType==Uc;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==
1009
+ d,Uc);d=jv(a.g.disableThumbnails,d,"image");if(0===e.length&&0===c.length)throw new T(2,4,4004);return{id:b.Na.id,audioStreams:c,videoStreams:e,textStreams:f,imageStreams:d}}function jv(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},[])}
1010
+ function iv(a,b,c){function d(E){switch(E){case 1:case 5:case 6:case 7:return"srgb";case 9:return"rec2020";case 11:case 12:return"p3"}}function e(E){switch(E){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.Ba=gv(a,c,b.Na,null);var f=!1,g=lh(c,"Role"),h=g.map(function(E){return E.attributes.value}).filter(Ye),k=void 0,l=b.Ba.contentType==Uc;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==
1010
1011
  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=lh(c,"EssentialProperty");g=null;var u=!1;m=!1;n=t(n);for(var w=n.next();!w.done;w=n.next()){w=w.value;var v=w.attributes.schemeIdUri;"http://dashif.org/guidelines/trickmode"==v?g=w.attributes.value:"urn:mpeg:mpegB:cicp:TransferCharacteristics"==v?p=e(parseInt(w.attributes.value,10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"==v?r=d(parseInt(w.attributes.value,10)):"urn:mpeg:mpegB:cicp:MatrixCoefficients"!=
1011
1012
  v&&("urn:mpeg:dash:ssr:2023"==v&&a.g.dash.enableFastSwitching?u=!0:m=!0)}var A=null;n=lh(c,"SupplementalProperty");n=t(n);for(w=n.next();!w.done;w=n.next())w=w.value,v=w.attributes.schemeIdUri,"http://dashif.org/guidelines/last-segment-number"==v?A=parseInt(w.attributes.value,10)-1:"urn:mpeg:mpegB:cicp:TransferCharacteristics"==v?p=e(parseInt(w.attributes.value,10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"==v&&(r=d(parseInt(w.attributes.value,10)));n=lh(c,"Accessibility");var z=new Map,C;n=t(n);for(w=
1012
1013
  n.next();!w.done;w=n.next())if(v=w.value,w=v.attributes.schemeIdUri,v=v.attributes.value,"urn:scte:dash:cc:cea-608:2015"==w)if(w=1,null!=v){v=v.split(";");for(var y=t(v),B=y.next();!B.done;B=y.next()){var D=B.value,F=B=void 0;D.includes("=")?(D=D.split("="),B=D[0].startsWith("CC")?D[0]:"CC"+D[0],F=D[1]||"und"):(B="CC"+w,2==v.length?w+=2:w++,F=D);z.set(B,ad(F))}}else z.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==w)if(w=1,null!=v)for(v=t(v.split(";")),B=v.next();!B.done;B=v.next())B=B.value,
1013
- D=y=void 0,B.includes("=")?(B=B.split("="),y="svc"+B[0],D=B[1].split(",")[0].split(":").pop()):(y="svc"+w,w++,D=B),z.set(y,ad(D));else z.set("svc1","und");else"urn:mpeg:dash:role:2011"==w?null!=v&&(h.push(v),"captions"==v&&(k="caption")):"urn:tva:metadata:cs:AudioPurposeCS:2007"==w&&("1"==v?C="visually impaired":"2"==v&&(C="hard of hearing"));if(m)return null;m=lh(c,"ContentProtection");var J=Zs(m,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),L=ad(b.Aa.language||"und"),H=b.Aa.label;m=lh(c,"Representation");
1014
- c=m.map(function(E){if(E=kv(a,b,J,k,L,H,f,h,z,E,C,A))E.hdr=E.hdr||p,E.colorGamut=E.colorGamut||r,E.fastSwitching=u;return E}).filter(function(E){return!!E});if(0==c.length){g="image"==b.Aa.contentType;if(a.g.dash.ignoreEmptyAdaptationSet||l||g)return null;throw new T(2,4,4003);}if(!b.Aa.contentType||"application"==b.Aa.contentType)for(b.Aa.contentType=lv(c[0].mimeType,c[0].codecs),l=t(c),w=l.next();!w.done;w=l.next())w.value.type=b.Aa.contentType;l=b.Aa.id||"__fake__"+a.aa++;n=t(c);for(w=n.next();!w.done;w=
1015
- n.next()){w=w.value;v=t(J.drmInfos);for(y=v.next();!y.done;y=v.next())y=y.value,y.keyIds=y.keyIds&&w.keyIds?new Set([].concat(x(y.keyIds),x(w.keyIds))):y.keyIds||w.keyIds;a.g.dash.enableAudioGroups&&(w.groupId=l)}m=m.map(function(E){return E.attributes.id}).filter(Ye);return{id:l,contentType:b.Aa.contentType,language:L,fm:f,streams:c,drmInfos:J.drmInfos,Ah:g,Bk:m}}
1016
- function kv(a,b,c,d,e,f,g,h,k,l,m,n){b.N=gv(a,l,b.Aa,null);var p=b.N.id;a.P=Math.min(a.P,b.N.ab);a.S=0<a.P;if(!mv(b.N))return null;var r=b.xa.start;b.bandwidth=th(l,"bandwidth",Ch)||0;b.roles=h;var u=b.N.contentType,w=u==Uc||"application"==u;u="image"==u;try{var v=void 0;if(c.fg){var A=b.N.Ya,z=Oc(A(),[c.fg.dk]),C=Dg(z,a.g.retryParameters);v={bitsKey:128,blockCipherMode:"CBC",iv:c.fg.iv,firstMediaSequenceNumber:0,fetchKey:function(){var H,E,K;return O(function(M){if(1==M.g)return G(M,Uu(a,C,6),2);
1017
- if(3!=M.g){H=M.h;if(!H.data||16!=H.data.byteLength)throw new T(2,4,4049);E={name:"AES-CBC"};K=v;return G(M,window.crypto.subtle.importKey("raw",H.data,E,!0,["decrypt"]),3)}K.cryptoKey=M.h;v.fetchKey=void 0;I(M)})}}}b.N.aesKey=v;A=function(H,E,K,M){return ev(a,H,E,K,M)};if(b.N.wd)var y=Ct(b,A,v);else if(b.N.lc)y=It(b,a.u,v);else if(b.N.xc)y=Nt(b,A,a.u,!!a.i,a.g.dash.initialSegmentLimit,a.W,v,n,!1);else{var B=b.xa.duration||0,D=b.N.Ya;y={Gc:function(){var H=al(r,B,D());H.qc(function(E){E.mimeType=b.N.mimeType;
1014
+ D=y=void 0,B.includes("=")?(B=B.split("="),y="svc"+B[0],D=B[1].split(",")[0].split(":").pop()):(y="svc"+w,w++,D=B),z.set(y,ad(D));else z.set("svc1","und");else"urn:mpeg:dash:role:2011"==w?null!=v&&(h.push(v),"captions"==v&&(k="caption")):"urn:tva:metadata:cs:AudioPurposeCS:2007"==w&&("1"==v?C="visually impaired":"2"==v&&(C="hard of hearing"));if(m)return null;m=lh(c,"ContentProtection");var J=Zs(m,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),L=ad(b.Ba.language||"und"),H=b.Ba.label;m=lh(c,"Representation");
1015
+ c=m.map(function(E){if(E=kv(a,b,J,k,L,H,f,h,z,E,C,A))E.hdr=E.hdr||p,E.colorGamut=E.colorGamut||r,E.fastSwitching=u;return E}).filter(function(E){return!!E});if(0==c.length){g="image"==b.Ba.contentType;if(a.g.dash.ignoreEmptyAdaptationSet||l||g)return null;throw new T(2,4,4003);}if(!b.Ba.contentType||"application"==b.Ba.contentType)for(b.Ba.contentType=lv(c[0].mimeType,c[0].codecs),l=t(c),w=l.next();!w.done;w=l.next())w.value.type=b.Ba.contentType;l=b.Ba.id||"__fake__"+a.aa++;n=t(c);for(w=n.next();!w.done;w=
1016
+ n.next()){w=w.value;v=t(J.drmInfos);for(y=v.next();!y.done;y=v.next())y=y.value,y.keyIds=y.keyIds&&w.keyIds?new Set([].concat(x(y.keyIds),x(w.keyIds))):y.keyIds||w.keyIds;a.g.dash.enableAudioGroups&&(w.groupId=l)}m=m.map(function(E){return E.attributes.id}).filter(Ye);return{id:l,contentType:b.Ba.contentType,language:L,fm:f,streams:c,drmInfos:J.drmInfos,Ah:g,Bk:m}}
1017
+ function kv(a,b,c,d,e,f,g,h,k,l,m,n){b.N=gv(a,l,b.Ba,null);var p=b.N.id;a.P=Math.min(a.P,b.N.ab);a.S=0<a.P;if(!mv(b.N))return null;var r=b.ya.start;b.bandwidth=th(l,"bandwidth",Ch)||0;b.roles=h;var u=b.N.contentType,w=u==Uc||"application"==u;u="image"==u;try{var v=void 0;if(c.fg){var A=b.N.Ya,z=Oc(A(),[c.fg.dk]),C=Dg(z,a.g.retryParameters);v={bitsKey:128,blockCipherMode:"CBC",iv:c.fg.iv,firstMediaSequenceNumber:0,fetchKey:function(){var H,E,K;return O(function(M){if(1==M.g)return G(M,Uu(a,C,6),2);
1018
+ if(3!=M.g){H=M.h;if(!H.data||16!=H.data.byteLength)throw new T(2,4,4049);E={name:"AES-CBC"};K=v;return G(M,window.crypto.subtle.importKey("raw",H.data,E,!0,["decrypt"]),3)}K.cryptoKey=M.h;v.fetchKey=void 0;I(M)})}}}b.N.aesKey=v;A=function(H,E,K,M){return ev(a,H,E,K,M)};if(b.N.wd)var y=Ct(b,A,v);else if(b.N.lc)y=It(b,a.u,v);else if(b.N.xc)y=Nt(b,A,a.u,!!a.i,a.g.dash.initialSegmentLimit,a.W,v,n,!1);else{var B=b.ya.duration||0,D=b.N.Ya;y={Gc:function(){var H=al(r,B,D());H.qc(function(E){E.mimeType=b.N.mimeType;
1018
1019
  E.codecs=b.N.codecs});return Promise.resolve(H)}}}}catch(H){if((w||u)&&4002==H.code)return null;throw H;}n=lh(l,"ContentProtection");n=ct(n,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);n=new Set(n?[n]:[]);A=!1;lh(l,"SupplementalProperty").some(function(H){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==H.attributes.schemeIdUri&&"JOC"==H.attributes.value})&&(A=!0);z=!1;w&&(z=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var F;if(u&&((l=lh(l,"EssentialProperty").find(function(H){return["http://dashif.org/thumbnail_tile",
1019
- "http://dashif.org/guidelines/thumbnail_tile"].includes(H.attributes.schemeIdUri)}))&&(F=l.attributes.value),!F))return null;var J;l=b.N.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"))&&(J="PQ");w=b.N.id?b.La.id+","+b.N.id:"";a.C.length&&p&&a.s.set(b.La.id+","+p,nv(b));var L=w&&a.u[w]?a.u[w]:{id:a.aa++,originalId:b.N.id,groupId:null,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){L.segmentIndex&&
1020
- (L.segmentIndex.release(),L.segmentIndex=null)},segmentIndex:null,mimeType:b.N.mimeType,codecs:l,frameRate:b.N.frameRate,pixelAspectRatio:b.N.pixelAspectRatio,bandwidth:b.bandwidth,width:b.N.width,height:b.N.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:n,language:e,originalLanguage:b.Aa.language,label:f,type:b.Aa.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.N.emsgSchemeIdUris,roles:h,forced:z,channelsCount:b.N.qd,audioSamplingRate:b.N.audioSamplingRate,spatialAudio:A,
1020
+ "http://dashif.org/guidelines/thumbnail_tile"].includes(H.attributes.schemeIdUri)}))&&(F=l.attributes.value),!F))return null;var J;l=b.N.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"))&&(J="PQ");w=b.N.id?b.Na.id+","+b.N.id:"";a.C.length&&p&&a.s.set(b.Na.id+","+p,nv(b));var L=w&&a.u[w]?a.u[w]:{id:a.aa++,originalId:b.N.id,groupId:null,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){L.segmentIndex&&
1021
+ (L.segmentIndex.release(),L.segmentIndex=null)},segmentIndex:null,mimeType:b.N.mimeType,codecs:l,frameRate:b.N.frameRate,pixelAspectRatio:b.N.pixelAspectRatio,bandwidth:b.bandwidth,width:b.N.width,height:b.N.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:n,language:e,originalLanguage:b.Ba.language,label:f,type:b.Ba.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.N.emsgSchemeIdUris,roles:h,forced:z,channelsCount:b.N.qd,audioSamplingRate:b.N.audioSamplingRate,spatialAudio:A,
1021
1022
  closedCaptions:k,hdr:J,colorGamut:void 0,videoLayout:void 0,tilesLayout:F,accessibilityPurpose:m,external:!1,fastSwitching:!1,fullMimeTypes:new Set([we(b.N.mimeType,b.N.codecs)])};L.createSegmentIndex=function(){var H;return O(function(E){if(1==E.g){if(L.segmentIndex)return E.B(0);H=L;return G(E,y.Gc(),3)}H.segmentIndex=E.h;I(E)})};w&&b.Vb&&!a.u[w]&&(a.u[w]=L);return L}
1022
1023
  function nv(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]={wd:null,lc:null,xc:e.xc,Ya:e.Ya,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,qd:e.qd,audioSamplingRate:e.audioSamplingRate,ab:e.ab,kd:e.kd}}else"periodInfo"==d?(e=a[d],
1023
1024
  b[d]={start:e.start,duration:e.duration,node:null,ge:e.ge}):b[d]=a[d];return b}function Qu(a){var b,c;return O(function(d){switch(d.g){case 1:return b=0,ta(d,2),G(d,Ru(a),4);case 4:b=d.h;va(d,3);break;case 2:if(c=wa(d),a.j){if(a.g.raiseFatalErrorOnManifestUpdateRequestFailure)return a.j.onError(c),d.return();c.severity=1;a.j.onError(c)}case 3:if(!a.j)return d.return();a.j.onManifestUpdated();Su(a,b);I(d)}})}
@@ -1041,21 +1042,21 @@ function Kv(a,b){b=zc(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var c=b
1041
1042
  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=Lv(a,k),Mv.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 Av(k,d,f)),d=[],f=[]);f.length&&(h&&d.push(h),c.push(new Av("",d,f)));return new vv(b,e,c)}e.push(g);"EXT-X-STREAM-INF"==
1042
1043
  g.name&&(g.attributes.push(new Bv("URI",h)),d=!0)}}return new vv(b,e)}function Lv(a,b){a=a.g++;var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new T(2,4,4016,b);b=c[1];var d=c[2];c=[];var e;if(d){d=new dq(d);var f;(f=fq(d,/^([^,=]+)(?:,|$)/g))&&(e=f[1]);for(var g=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;f=fq(d,g);)c.push(new Bv(f[1],f[2]||f[3])),eq(d)}return new wv(a,b,c,e)}
1043
1044
  var Mv="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP EXT-X-PART-INF EXT-X-DATERANGE".split(" "),Nv="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 Ov(){}function Pv(a){try{var b=Qv(a);return sg({uri:a,originalUri:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return qg(c)}}
1044
- function Qv(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new T(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new T(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=Kc(a):e=Dc(a);return{data:e,contentType:c}}P("shaka.net.DataUriPlugin",Ov);Ov.parse=Pv;zg("data",Pv);function Rv(){var a=this;this.g=this.h=null;this.C=1;this.u=new Map;this.I=new Map;this.O=new Map;this.O.set("video",new Map);this.O.set("audio",new Map);this.O.set(Uc,new Map);this.O.set("image",new Map);this.ob=new Set;this.i=new Map;this.j=null;this.M="";this.Sa=new Jv;this.J=-1;this.ea=Infinity;this.aa=this.Nb=!1;this.A=new Vb(function(){if(a.W&&!a.g.continueLoadingWhenPaused&&(a.S.Na(a.W,"timeupdate"),a.W.paused)){a.S.ia(a.W,"timeupdate",function(){return Sv(a)});return}Sv(a)});this.za=Tv;this.m=
1045
- null;this.Xa=0;this.s=Infinity;this.Ra=this.Da=this.P=0;this.Z=new wg;this.G=new Map;this.H=new Map;this.sa=new Map;this.qa=new Map;this.L=new Map;this.ra=new Map;this.Fa=new Map;this.Lb=this.K=!1;this.Kb=new od(5);this.l=null;this.ka=!0;this.Ga=new Set;this.S=new rd;this.W=null}q=Rv.prototype;q.configure=function(a){this.g=a;this.l&&this.l.configure(this.g)};
1045
+ function Qv(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new T(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new T(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=Kc(a):e=Dc(a);return{data:e,contentType:c}}P("shaka.net.DataUriPlugin",Ov);Ov.parse=Pv;zg("data",Pv);function Rv(){var a=this;this.g=this.h=null;this.C=1;this.u=new Map;this.I=new Map;this.O=new Map;this.O.set("video",new Map);this.O.set("audio",new Map);this.O.set(Uc,new Map);this.O.set("image",new Map);this.ob=new Set;this.i=new Map;this.j=null;this.M="";this.Ia=new Jv;this.J=-1;this.ea=Infinity;this.aa=this.Nb=!1;this.A=new Vb(function(){if(a.W&&!a.g.continueLoadingWhenPaused&&(a.S.Pa(a.W,"timeupdate"),a.W.paused)){a.S.ia(a.W,"timeupdate",function(){return Sv(a)});return}Sv(a)});this.xa=Tv;this.m=
1046
+ null;this.Xa=0;this.s=Infinity;this.Fa=this.Aa=this.P=0;this.Z=new wg;this.G=new Map;this.H=new Map;this.sa=new Map;this.qa=new Map;this.L=new Map;this.ra=new Map;this.Ga=new Map;this.Lb=this.K=!1;this.Kb=new od(5);this.l=null;this.ka=!0;this.Ha=new Set;this.S=new rd;this.W=null}q=Rv.prototype;q.configure=function(a){this.g=a;this.l&&this.l.configure(this.g)};
1046
1047
  q.start=function(a,b){var c=this,d;return O(function(e){return 1==e.g?(c.h=b,c.K=b.isLowLatencyMode(),G(e,Uv(c,[a]),2)):3!=e.g?(d=e.h,c.M=d.uri,G(e,Vv(c,d.data,a),3)):e.return(c.m)})};
1047
- q.stop=function(){this.A&&(this.A.stop(),this.A=null);var a=[];this.Z&&(a.push(this.Z.destroy()),this.Z=null);this.g=this.h=null;this.ob.clear();this.m=null;this.i.clear();this.I.clear();this.H.clear();this.u.clear();this.sa.clear();this.qa.clear();this.L.clear();this.ra.clear();this.Fa.clear();this.Ga.clear();this.l&&this.l.destroy();this.S&&(this.S.release(),this.S=null);return Promise.all(a)};
1048
+ q.stop=function(){this.A&&(this.A.stop(),this.A=null);var a=[];this.Z&&(a.push(this.Z.destroy()),this.Z=null);this.g=this.h=null;this.ob.clear();this.m=null;this.i.clear();this.I.clear();this.H.clear();this.u.clear();this.sa.clear();this.qa.clear();this.L.clear();this.ra.clear();this.Ga.clear();this.Ha.clear();this.l&&this.l.destroy();this.S&&(this.S.release(),this.S=null);return Promise.all(a)};
1048
1049
  q.update=function(){var a=this,b,c,d,e,f,g,h,k,l,m,n;return O(function(p){if(1==p.g){if(!Wv(a))return p.return();b=[];c=Array.from(a.i.values());a.s=Infinity;a.m.gapCount=0;d=c.filter(function(r){return r.stream.segmentIndex});e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(Xv(a,g));return G(p,Promise.all(b),2)}Yv(a,d.map(function(r){return r.stream}));h=d.some(function(r){return 0==r.$d});d.length&&!h&&(k=Zv,$v(a,k.Ui),l=d.map(function(r){return r.ec}),a.j.vb(Math.min.apply(Math,x(l))),
1049
1050
  a.h.updateDuration());h&&aw(a);m=t(d);for(f=m.next();!f.done;f=m.next())n=f.value,n.stream.segmentIndex&&!n.stream.segmentIndex.T[0]&&a.h.disableStream(n.stream);I(p)})};function bw(a,b){return Wv(a)?a.O.get(b.type):b.pf}
1050
1051
  function Xv(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,w,v,A,z,C,y,B,D,F,J,L,H,E,K,M,N,Q,U,R,ca,fa,Xa;return O(function(Aa){switch(Aa.g){case 1:c=[];d=t(b.R());for(e=d.next();!e.done;e=d.next())f=e.value,g=new nb(f),h=g.g,b.Re&&(0<=b.Pb&&h.add("_HLS_msn",String(b.Pb)),0<=b.Qb&&h.add("_HLS_part",String(b.Qb))),b.Se&&h.add("_HLS_skip","YES"),Db(h)&&rb(g,h),c.push(g.toString());ta(Aa,2);return G(Aa,Uv(a,c,!0),4);case 4:k=Aa.h;va(Aa,3);break;case 2:throw l=wa(Aa),a.h&&a.h.disableStream(b.stream),l;case 3:if(!b.stream.segmentIndex)return Aa.return();
1051
- m=Kv(a.Sa,k.data);if(1!=m.type)throw new T(2,4,4017);n=k.uri;n==k.originalUri||b.R().includes(n)||b.si.push(n);p=Cv(m.g,"EXT-X-DEFINE");r=cw(a,p,n);u=b.stream;w=bw(a,b);return G(Aa,dw(a,m,u.mimeType,b.R,r),5);case 5:v=Aa.h;A=v.keyIds;z=v.drmInfos;C=function(Ra,bb){return Ra.size===bb.size&&[].concat(x(Ra)).every(function(Ya){return bb.has(Ya)})};C(u.keyIds,A)||(u.keyIds=A,u.drmInfos=z,a.h.newDrmInfo(u));y=ew(a,m,w,r,b.R,b.type);B=y.segments;if(D=y.bandwidth)u.bandwidth=D;F=El(u);J=t(B);for(L=J.next();!L.done;L=
1052
+ m=Kv(a.Ia,k.data);if(1!=m.type)throw new T(2,4,4017);n=k.uri;n==k.originalUri||b.R().includes(n)||b.si.push(n);p=Cv(m.g,"EXT-X-DEFINE");r=cw(a,p,n);u=b.stream;w=bw(a,b);return G(Aa,dw(a,m,u.mimeType,b.R,r),5);case 5:v=Aa.h;A=v.keyIds;z=v.drmInfos;C=function(Ra,bb){return Ra.size===bb.size&&[].concat(x(Ra)).every(function(Ya){return bb.has(Ya)})};C(u.keyIds,A)||(u.keyIds=A,u.drmInfos=z,a.h.newDrmInfo(u));y=ew(a,m,w,r,b.R,b.type);B=y.segments;if(D=y.bandwidth)u.bandwidth=D;F=El(u);J=t(B);for(L=J.next();!L.done;L=
1052
1053
  J.next())H=L.value,H.ma&&(H.ma.nd=F);u.segmentIndex.je(B,a.j.Hb());B.length&&(E=Fv(m.g,"EXT-X-MEDIA-SEQUENCE",0),M=(K=Ev(m.g,"EXT-X-SKIP"))?Number(Y(K,"SKIPPED-SEGMENTS")):0,N=fw(E,B),Q=N.Pb,U=N.Qb,b.Pb=Q+M,b.Qb=U,R=w.get(E),u.segmentIndex.hb(R));if(ca=u.segmentIndex.T[0]||null)b.Oc=ca.startTime,fa=B[B.length-1],b.ec=fa.endTime;if(Xa=Ev(m.g,"EXT-X-ENDLIST"))b.$d=!0;gw(a,m);hw(a,m.g,u.type,r,b.R);I(Aa)}})}q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(){};
1053
1054
  q.banLocation=function(a){this.l&&this.l.banLocation(a)};q.setMediaElement=function(a){this.W=a};
1054
1055
  function iw(a,b){for(var c=-1==a.J,d=t(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex,g=bw(a,e);if(f=f.T[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.J=Math.max(a.J,k));e.rg=k;break}}}}if(!(0>a.J))for(b=t(b),e=b.next();!e.done;e=b.next())if(c=e.value,jw(a,c.type)&&(d=c.stream.segmentIndex))if(e=a.J-c.rg,0<e&&(d.T.splice(0,e),d=d.T[0]||null))d=-d.startTime,c.stream.segmentIndex.offset(d),kw(a,
1055
1056
  c,d)}
1056
1057
  function lw(a,b){if(Infinity==a.ea){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value.stream.segmentIndex.T[0]||null;null!=d&&null!=d.h&&(a.ea=Math.min(a.ea,d.h))}}b=a.ea;if(Infinity!=b)for(d=t(a.i.values()),c=d.next();!c.done;c=d.next())if(c=c.value,!jw(a,c.type)){var e=c.stream.segmentIndex;if(null!=e){var f=e.T[0]||null;if(null==f.h)Ua("Missing EXT-X-PROGRAM-DATE-TIME for stream",c.R(),"Expect AV sync issues!");else for(kw(a,c,f.h-b-f.startTime),c=t(e),e=c.next();!e.done;e=c.next())e.value.wh(b)}}}
1057
1058
  function kw(a,b,c){b.Oc+=c;b.ec+=c;a=bw(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.R()}
1058
- function Vv(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,w,v,A,z,C,y,B,D,F,J,L,H,E,K,M,N,Q,U,R,ca;return O(function(fa){switch(fa.g){case 1:d=Wc;e=Kv(a.Sa,b);f=Cv(e.g,"EXT-X-DEFINE");g=[];h=[];k=[];a.j=new Dk(null,0);a.j.Tc(!0);l=function(){return[c]};m=null;n=new Map;if(1==e.type)return a.ka=!1,C=Cv(e.g,"EXT-X-DEFINE"),n=cw(a,C,a.M),m=d.ua,y="",B=new Map,G(fa,mw(a,a.C++,n,e,l,"",m,y,!0,"Media Playlist",null,B,null,!1,null,!1),7);nw(a,f);p=Cv(e.g,"EXT-X-MEDIA");r=Cv(e.g,"EXT-X-STREAM-INF");u=Cv(e.g,"EXT-X-IMAGE-STREAM-INF");
1059
+ function Vv(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,w,v,A,z,C,y,B,D,F,J,L,H,E,K,M,N,Q,U,R,ca;return O(function(fa){switch(fa.g){case 1:d=Wc;e=Kv(a.Ia,b);f=Cv(e.g,"EXT-X-DEFINE");g=[];h=[];k=[];a.j=new Dk(null,0);a.j.Tc(!0);l=function(){return[c]};m=null;n=new Map;if(1==e.type)return a.ka=!1,C=Cv(e.g,"EXT-X-DEFINE"),n=cw(a,C,a.M),m=d.ua,y="",B=new Map,G(fa,mw(a,a.C++,n,e,l,"",m,y,!0,"Media Playlist",null,B,null,!1,null,!1),7);nw(a,f);p=Cv(e.g,"EXT-X-MEDIA");r=Cv(e.g,"EXT-X-STREAM-INF");u=Cv(e.g,"EXT-X-IMAGE-STREAM-INF");
1059
1060
  w=Cv(e.g,"EXT-X-I-FRAME-STREAM-INF");v=Cv(e.g,"EXT-X-SESSION-KEY");A=Cv(e.g,"EXT-X-SESSION-DATA");z=Cv(e.g,"EXT-X-CONTENT-STEERING");ow(a,A);return G(fa,pw(a,z),4);case 4:return qw(a,r),rw(a,p),G(fa,sw(a,r,v,p,l,a.u),5);case 5:return g=fa.h,h=tw(a,p),G(fa,uw(a,u,w),6);case 6:k=fa.h;fa.B(3);break;case 7:D=fa.h,a.i.set(c,D),D.stream&&(F=El(D.stream),D.stream.segmentIndex.qc(function(Xa){Xa.ma&&(Xa.ma.nd=F)})),m=D.stream.type,g.push({id:0,language:ad(y||"und"),disabledUntilTime:0,primary:!0,audio:"audio"==
1060
1061
  m?D.stream:null,video:"video"==m?D.stream:null,bandwidth:D.stream.bandwidth||0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.h)throw new T(2,7,7001);1==e.type&&(Wv(a)&&(vw(a,e),J=a.s,a.A.X(J)),L=Array.from(a.i.values()),ww(a,L),aw(a),hw(a,e.g,m,n,l));a.m={presentationTimeline:a.j,variants:g,textStreams:h,imageStreams:k,offlineSessionIds:[],minBufferTime:0,sequenceMode:a.g.hls.sequenceMode,ignoreManifestTimestampsInSegmentsMode:a.g.hls.ignoreManifestTimestampsInSegmentsMode,
1061
1062
  type:"HLS",serviceDescription:null,nextUrl:null,periodCount:1,gapCount:0,isLowLatency:!1};if(a.aa||!a.g.hls.disableCodecGuessing){fa.B(8);break}H=[];E=t(a.m.variants);for(K=E.next();!K.done;K=E.next())M=K.value,M.audio&&""===M.audio.codecs&&H.push(M.audio.createSegmentIndex()),M.video&&""===M.video.codecs&&H.push(M.video.createSegmentIndex());return G(fa,Promise.all(H),8);case 8:a.h.makeTextStreamsForClosedCaptions(a.m);if(1==g.length){N=[];Q=g[0];U=t([Q.video,Q.audio]);for(R=U.next();!R.done;R=U.next())(ca=
@@ -1064,7 +1065,7 @@ function xw(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,w,v,A,z,C,y,B,D,F,J;return O(func
1064
1065
  case 5:p=L.h;case 4:(r=v.headers["content-type"])&&(r=r.split(";")[0].toLowerCase());case 2:return A=Ll(e.R(),e.Ib(),e.Fb(),a.g.retryParameters),G(L,Aw(a,A,n,{type:1}),6);case 6:z=L.h;C=z.data;if(!e.aesKey){L.B(7);break}return G(L,Kl(C,e.aesKey,f),8);case 8:C=L.h;case 7:(y=z.headers["content-type"])&&(y=y.split(";")[0].toLowerCase());B="mp4 mp4a m4s m4i m4a m4f cmfa mp4v m4v cmfv fmp4".split(" ");D=["audio/mp4","video/mp4","video/iso.segment"];if(Ej(Hb(C))){var H=C;var E=Hb(H);E=(new uj).parse(E);
1065
1066
  var K=E.Wd();E=E.Ng();var M=[],N=!1,Q=!1;switch(K.audio){case "aac":case "aac-loas":M.push("mp4a.40.2");N=!0;break;case "mp3":M.push("mp4a.40.34");N=!0;break;case "ac3":M.push("ac-3");N=!0;break;case "ec3":M.push("ec-3");N=!0;break;case "opus":M.push("opus"),N=!0}switch(K.video){case "avc":E.gb?M.push(E.gb):M.push("avc1.42E01E");Q=!0;break;case "hvc":E.gb?M.push(E.gb):M.push("hvc1.1.6.L93.90");Q=!0;break;case "av1":M.push("av01.0.01M.08"),Q=!0}if(M.length){K=N&&!Q;N=new Map;if(Q){Q=new Hd("video/mp2t");
1066
1067
  Q.i(H);H=t(Q.j());for(var U=H.next();!U.done;U=H.next())U=U.value,N.set(U,U);Q.g()}E={type:K?"audio":"video",mimeType:"video/mp2t",codecs:M.join(", "),language:null,height:E.height,width:E.width,channelCount:null,sampleRate:null,closedCaptions:N,ze:null,colorGamut:null}}else E=null;if(F=E)return L.return(F)}else if(B.includes(l)||D.includes(y)||r&&D.includes(r))if(J=Gl(p,C))return L.return(J);return y?L.return(Fl(y)):r?L.return(Fl(r)):L.return(c)}})}
1067
- function aw(a){if(Wv(a)){if(a.za==Bw){for(var b,c=b=Infinity,d=t(a.i.values()),e=d.next();!e.done;e=d.next())e=e.value,e.stream.segmentIndex&&"text"!=e.stream.type&&(b=Math.min(b,e.ec),c=Math.min(c,e.Oc));b-=c;a.g.hls.useSafariBehaviorForLive&&(b=a.j.A);isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.j.Bf(b)}}else a.j.vb(Cw(a));if(!a.j.u)for(b=t(a.i.values()),c=b.next();!c.done;c=b.next())c=c.value,!c.stream.segmentIndex||"audio"!=c.type&&"video"!=c.type||(c=c.stream.segmentIndex.get(0))&&
1068
+ function aw(a){if(Wv(a)){if(a.xa==Bw){for(var b,c=b=Infinity,d=t(a.i.values()),e=d.next();!e.done;e=d.next())e=e.value,e.stream.segmentIndex&&"text"!=e.stream.type&&(b=Math.min(b,e.ec),c=Math.min(c,e.Oc));b-=c;a.g.hls.useSafariBehaviorForLive&&(b=a.j.A);isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.j.Bf(b)}}else a.j.vb(Cw(a));if(!a.j.u)for(b=t(a.i.values()),c=b.next();!c.done;c=b.next())c=c.value,!c.stream.segmentIndex||"audio"!=c.type&&"video"!=c.type||(c=c.stream.segmentIndex.get(0))&&
1068
1069
  c.h&&a.j.Ci(c.h);a.j.mf()}function nw(a,b){var c=(new nb(a.M)).g;b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=Y(e,"NAME");var f=Y(e,"VALUE");e=Y(e,"QUERYPARAM");d&&f&&(a.u.has(d)||a.u.set(d,f));e&&(d=c.get(e)[0])&&!a.u.has(d)&&a.u.set(e,d)}}
1069
1070
  function cw(a,b,c){c=(new nb(c)).g;var d=new Map;b=t(b);for(var e=b.next();!e.done;e=b.next()){var f=e.value,g=Y(f,"NAME"),h=Y(f,"VALUE");e=Y(f,"QUERYPARAM");f=Y(f,"IMPORT");g&&h&&(d.has(g)||d.set(g,h));e&&(g=c.get(e)[0])&&!d.has(g)&&d.set(e,g);f&&(e=a.u.get(f))&&d.set(f,e)}return d}
1070
1071
  function qw(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Y(d,"AUDIO");c=Y(d,"VIDEO");var f=Y(d,"SUBTITLES");d=Dw(a,d);if(f){var g=Sc(Uc,d);a.H.set(f,g);Pd(d,g)}e&&(f=Sc("audio",d),f||(f=a.g.hls.defaultAudioCodec),a.H.set(e,f));c&&(e=Sc("video",d),e||(e=a.g.hls.defaultVideoCodec),a.H.set(c,e))}}
@@ -1091,10 +1092,10 @@ m=n.next().value;n=n.next().value;(m=c.get(m))&&bu(a.l,l,m,n)}}c=Y(h,"LANGUAGE")
1091
1092
  function Iw(a,b){var c,d,e,f,g,h,k,l,m,n;return O(function(p){if(1==p.g){c=zv(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=Jw(a,a.C++,[c],d,"image",e,!1,f,null,null,g,!1,null,!1);return(k=Y(b,"RESOLUTION"))?G(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])*
1092
1093
  Number(m.split("x")[1]));if(n=Y(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.i.set(c,h);return p.return(h)})}
1093
1094
  function Tw(a,b,c,d,e,f,g,h,k){for(var l=a.C++,m=[],n=t(b),p=n.next();!p.done;p=n.next()){var r=p.value;p=zv(r,"URI");r=Y(r,"PATHWAY-ID");a.l&&r&&bu(a.l,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.G.get(b);break a}a.ka=!1}else if(!b&&a.G.size)for(b=t(a.G.keys()).next();!b.done;){b=a.G.get(b.value);break a}b=null}c=Rc(d,c);d=Jw(a,l,m,c,d,e,!1,f,g,b,h,!1,k,!1);a.i.set(n,d);return d}
1094
- function Jw(a,b,c,d,e,f,g,h,k,l,m,n,p,r){function u(B){var D,F,J,L,H,E,K,M,N,Q,U,R,ca,fa,Xa,Aa,Ra,bb,Ya,mb,db,Za,wc;return O(function(Ta){switch(Ta.g){case 1:return D=Wc,F=z.R(),ta(Ta,2),G(Ta,Uv(a,z.R(),!0),4);case 4:J=Ta.h;va(Ta,3);break;case 2:L=wa(Ta);v.closeSegmentIndex();if(H=a.h.disableStream(v))return Ta.return();throw L;case 3:if(B.aborted)return Ta.return();E=J.uri;E==J.originalUri||F.includes(E)||A.push(E);K=Kv(a.Sa,J.data);if(1!=K.type)throw new T(2,4,4017);M=Cv(K.g,"EXT-X-DEFINE");N=cw(a,
1095
+ function Jw(a,b,c,d,e,f,g,h,k,l,m,n,p,r){function u(B){var D,F,J,L,H,E,K,M,N,Q,U,R,ca,fa,Xa,Aa,Ra,bb,Ya,mb,db,Za,wc;return O(function(Ta){switch(Ta.g){case 1:return D=Wc,F=z.R(),ta(Ta,2),G(Ta,Uv(a,z.R(),!0),4);case 4:J=Ta.h;va(Ta,3);break;case 2:L=wa(Ta);v.closeSegmentIndex();if(H=a.h.disableStream(v))return Ta.return();throw L;case 3:if(B.aborted)return Ta.return();E=J.uri;E==J.originalUri||F.includes(E)||A.push(E);K=Kv(a.Ia,J.data);if(1!=K.type)throw new T(2,4,4017);M=Cv(K.g,"EXT-X-DEFINE");N=cw(a,
1095
1096
  M,E);Q=!1;(!a.aa&&a.g.hls.disableCodecGuessing||a.ka&&e==D.ua&&!a.g.hls.disableClosedCaptionsDetection)&&0<K.segments.length&&(a.ka=!1,Q=!0);U=!a.aa&&a.g.hls.disableCodecGuessing;R=Wv(a);return G(Ta,mw(a,0,N,K,w,d,e,f,g,h,k,l,m,n,p,r,void 0,Q,U),5);case 5:ca=Ta.h;if(B.aborted)return Ta.return();fa=ca.stream;Wv(a)&&!R&&vw(a,K);z.Oc=ca.Oc;z.ec=ca.ec;z.Se=ca.Se;z.Re=ca.Re;z.$d=ca.$d;z.pf=ca.pf;z.Pb=ca.Pb;z.Qb=ca.Qb;z.Vg=!0;v.segmentIndex=fa.segmentIndex;v.encrypted=fa.encrypted;v.drmInfos=fa.drmInfos;
1096
1097
  v.keyIds=fa.keyIds;v.mimeType=fa.mimeType;v.bandwidth=v.bandwidth||fa.bandwidth;v.codecs=v.codecs||fa.codecs;v.closedCaptions=v.closedCaptions||fa.closedCaptions;v.width=v.width||fa.width;v.height=v.height||fa.height;v.hdr=v.hdr||fa.hdr;v.colorGamut=v.colorGamut||fa.colorGamut;"und"==v.language&&"und"!=fa.language&&(v.language=fa.language);v.language=v.language||fa.language;v.channelsCount=v.channelsCount||fa.channelsCount;v.audioSamplingRate=v.audioSamplingRate||fa.audioSamplingRate;Hw(v);v.drmInfos.length&&
1097
- a.h.newDrmInfo(v);Xa=!1;if(!l&&v.closedCaptions||l&&v.closedCaptions&&l.size!=v.closedCaptions.size)Xa=!0;a.m&&Xa&&a.h.makeTextStreamsForClosedCaptions(a.m);if(e==D.ua||e==D.ha)for(Aa=t(a.i.values()),Ra=Aa.next();!Ra.done;Ra=Aa.next())bb=Ra.value,bb.Vg||bb.type!=e||(bb.stream.mimeType=fa.mimeType,Hw(bb.stream));e==D.Ia&&(Ya=fa.segmentIndex.get(0))&&Ya.ma&&(v.mimeType="application/mp4",Hw(v));mb=El(v);v.segmentIndex.qc(function(tb){tb.ma&&(tb.ma.nd=mb)});Vw(a)&&(a.Nb?ww(a,[z]):(a.Nb=!0,db=Array.from(a.i.values()),
1098
+ a.h.newDrmInfo(v);Xa=!1;if(!l&&v.closedCaptions||l&&v.closedCaptions&&l.size!=v.closedCaptions.size)Xa=!0;a.m&&Xa&&a.h.makeTextStreamsForClosedCaptions(a.m);if(e==D.ua||e==D.ha)for(Aa=t(a.i.values()),Ra=Aa.next();!Ra.done;Ra=Aa.next())bb=Ra.value,bb.Vg||bb.type!=e||(bb.stream.mimeType=fa.mimeType,Hw(bb.stream));e==D.Ka&&(Ya=fa.segmentIndex.get(0))&&Ya.ma&&(v.mimeType="application/mp4",Hw(v));mb=El(v);v.segmentIndex.qc(function(tb){tb.ma&&(tb.ma.nd=mb)});Vw(a)&&(a.Nb?ww(a,[z]):(a.Nb=!0,db=Array.from(a.i.values()),
1098
1099
  Za=db.filter(function(tb){return tb.stream.segmentIndex}),ww(a,Za),aw(a),wc=a.s,0<wc&&a.A.X(wc)));hw(a,K.g,v.type,N,w);I(Ta)}})}function w(){return a.l&&1<c.length?cu(a.l,b):A.concat(Hv([a.M],c,a.u))}var v=Ww(a,d,e,f,g,h,k,l,m,n,p,r),A=[],z={stream:v,type:e,si:A,R:w,Oc:0,ec:0,pf:new Map,Se:!1,Re:!1,$d:!1,rg:-1,Pb:-1,Qb:-1,Vg:!1},C=null,y=new AbortController;v.createSegmentIndex=function(){if(C)return C;y=new AbortController;return C=new Promise(function(B){B(u(y.signal))})};v.closeSegmentIndex=function(){C&&
1099
1100
  !v.segmentIndex&&y.abort();v.segmentIndex&&(v.segmentIndex.release(),v.segmentIndex=null);C=null};return z}function Cw(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.ec));return b}function Yv(a,b){var c=[];b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&d.segmentIndex.qc(function(e){c.push(e)});a.j.le(c)}
1100
1101
  function ww(a,b){if(!Wv(a))for(var c=Cw(a),d=t(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.dd(0,c);Yv(a,b.map(function(f){return f.stream}));a.g.hls.ignoreManifestProgramDateTime?iw(a,b):(lw(a,b),0<a.g.hls.ignoreManifestProgramDateTimeForTypes.length&&iw(a,b))}function jw(a,b){return a.g.hls.ignoreManifestProgramDateTime?!0:a.g.hls.ignoreManifestProgramDateTimeForTypes.includes(b)}
@@ -1111,18 +1112,18 @@ function dw(a,b,c,d,e){var f,g,h,k,l,m,n,p,r,u,w,v,A,z,C,y,B,D,F,J,L,H,E,K,M,N,Q
1111
1112
  function $w(a,b,c,d,e){if(!window.crypto||!window.crypto.subtle)throw Va("Web Crypto API is not available to decrypt AES. (Web Crypto only exists in secure origins like https)"),new T(2,4,4042);var f=0,g=Y(b,"IV","");if(g){var h=Lc(g.substr(2));if(16!=h.byteLength)throw new T(2,4,4048);}else f=Fv(c.g,"EXT-X-MEDIA-SEQUENCE",0);c=b.toString()+"-"+f;if(!a.qa.has(c)){var k={bitsKey:128,blockCipherMode:"CBC",iv:h,firstMediaSequenceNumber:f};switch(zv(b,"METHOD")){case "AES-256":k.bitsKey=256;break;case "AES-256-CTR":k.bitsKey=
1112
1113
  256,k.blockCipherMode="CTR"}k.fetchKey=function(){var l,m,n,p,r,u,w;return O(function(v){if(1==v.g)return l=Gv(d(),zv(b,"URI"),e),m=l.sort().join(""),a.L.has(m)||(n=Dg(l,a.g.retryParameters),p=Aw(a,n,6),a.L.set(m,p)),G(v,a.L.get(m),2);if(3!=v.g){r=v.h;if(!r.data||r.data.byteLength!=k.bitsKey/8)throw new T(2,4,4049);u={name:"CTR"==k.blockCipherMode?"AES-CTR":"AES-CBC",length:k.bitsKey};w=k;return G(v,window.crypto.subtle.importKey("raw",r.data,u,!0,["decrypt"]),3)}w.cryptoKey=v.h;k.fetchKey=void 0;
1113
1114
  I(v)})};a.qa.set(c,k)}return a.qa.get(c)}
1114
- function gw(a,b){var c=Infinity,d=b.segments;if(d.length)for(var e=d.length-1;0<=e;){var f=Ev(d[e].g,"EXTINF");if(f){c=Number(f.value.split(",")[0]);break}e--}d=Ev(b.g,"EXT-X-TARGETDURATION");if(!d)throw new T(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);if(e=Ev(b.g,"EXT-X-PART-INF"))a.P=Number(zv(e,"PART-TARGET"));b=Ev(b.g,"EXT-X-SERVER-CONTROL");a.K&&a.P?(a.s=a.Lb?5*a.P<=c?Math.min(a.P,a.s):Math.min(c,a.s):Math.min(a.P,a.s),a.Ra=b?Number(zv(b,"PART-HOLD-BACK")):0):(a.s=Math.min(c,a.s),c=b?
1115
- yv(b,"HOLD-BACK"):null,a.Da=c?Number(c.value):0);a.Xa=Math.max(d,a.Xa)}function vw(a,b){if(a.g.defaultPresentationDelay)b=a.g.defaultPresentationDelay;else if(a.Ra)b=a.Ra;else if(a.Da)b=a.Da;else{b=b.segments.length;var c=a.g.hls.liveSegmentsDelay;c>b-2&&(c=Math.max(1,b-2));b=a.Xa*c}a.j.Ei(0);a.j.nh(b);a.j.Tc(!1)}
1115
+ function gw(a,b){var c=Infinity,d=b.segments;if(d.length)for(var e=d.length-1;0<=e;){var f=Ev(d[e].g,"EXTINF");if(f){c=Number(f.value.split(",")[0]);break}e--}d=Ev(b.g,"EXT-X-TARGETDURATION");if(!d)throw new T(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);if(e=Ev(b.g,"EXT-X-PART-INF"))a.P=Number(zv(e,"PART-TARGET"));b=Ev(b.g,"EXT-X-SERVER-CONTROL");a.K&&a.P?(a.s=a.Lb?5*a.P<=c?Math.min(a.P,a.s):Math.min(c,a.s):Math.min(a.P,a.s),a.Fa=b?Number(zv(b,"PART-HOLD-BACK")):0):(a.s=Math.min(c,a.s),c=b?
1116
+ yv(b,"HOLD-BACK"):null,a.Aa=c?Number(c.value):0);a.Xa=Math.max(d,a.Xa)}function vw(a,b){if(a.g.defaultPresentationDelay)b=a.g.defaultPresentationDelay;else if(a.Fa)b=a.Fa;else if(a.Aa)b=a.Aa;else{b=b.segments.length;var c=a.g.hls.liveSegmentsDelay;c>b-2&&(c=Math.max(1,b-2));b=a.Xa*c}a.j.Ei(0);a.j.nh(b);a.j.Tc(!1)}
1116
1117
  function Zw(a,b,c,d,e){var f=Ev(c,"EXT-X-MAP");if(!f)return null;var g=zv(f,"URI"),h=Gv(d(),g,e);g=[h.toString(),Y(f,"BYTERANGE","")].join("-");if(!a.sa.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?Lw(zv(m,"METHOD"))&&m.id<f.id&&(k=$w(a,m,b,d,e)):"EXT-X-BYTERANGE"==m.name&&m.id<f.id&&(l=m);b=ax(h,f,l,k);a.sa.set(g,b)}return a.sa.get(g)}
1117
1118
  function ax(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 Ii(function(){return a},e,f,null,null,null,d)}
1118
1119
  function bx(a,b,c,d,e,f,g,h,k){var l=d.g,m=Ev(l,"EXTINF"),n=0,p=0,r=null;d.Yb.length&&(a.m.isLowLatency=!0);var u=null;if(!a.g.hls.ignoreManifestProgramDateTime){var w=Ev(l,"EXT-X-PROGRAM-DATE-TIME");w&&w.value&&(u=wh(w.value))}var v=Li;Ev(l,"EXT-X-GAP")&&(a.m.gapCount++,v=2);if(!m){if(0==d.Yb.length)throw new T(2,4,4024,"EXTINF");if(!a.K)return null}var A=[];w=!1;var z=null,C=!1,y=!1;if(a.K&&d.Yb.length){n=b&&window.ReadableStream&&a.g.hls.allowLowLatencyByteRangeOptimization;for(var B=u,D={},F=
1119
1120
  0;F<d.Yb.length;D={Pd:D.Pd,Ge:D.Ge},F++){var J=d.Yb[F],L=0==F?c:A[A.length-1],H=0==F?e:L.endTime,E=Number(Y(J,"DURATION"))||a.P;if(E){var K=H+E,M=0,N=null;"EXT-X-PRELOAD-HINT"==J.name?(M=(M=Y(J,"BYTERANGE-START"))?Number(M):0,(L=Y(J,"BYTERANGE-LENGTH"))?N=M+Number(L)-1:M&&(N=Number.MAX_SAFE_INTEGER)):(M=Y(J,"BYTERANGE"),N=t(cx(L,M)),M=N.next().value,N=N.next().value);D.Ge=Y(J,"URI");if(D.Ge){L=Li;"YES"==Y(J,"GAP")&&(a.m.gapCount++,L=2,C=!0);D.Pd=null;var Q=function(R){return function(){null==R.Pd&&
1120
1121
  (R.Pd=Gv(h(),R.Ge,f));return R.Pd}}(D);n&&0<=M&&null!=N&&(z=Q,w=!0);H=new Ki(H,K,Q,M,N,b,0,0,Infinity,[],"",null,B,L,k);"EXT-X-PRELOAD-HINT"==J.name&&(H.Wg(),y=!0);"YES"!=Y(J,"INDEPENDENT")&&0<F&&H.nf();A.push(H);B&&(B+=E)}}}}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;w&&(C||0!=A[0].$a?(w=!1,z=null):A=[]);(m=Ev(l,"EXT-X-BYTERANGE"))?(r=t(cx(c,m.value)),p=r.next().value,r=r.next().value):A.length&&(p=A[0].$a,r=A[A.length-
1121
- 1].Ha);c="";m=null;"image"==g&&(c="1x1",g=Ev(l,"EXT-X-TILES"))&&(c=zv(g,"LAYOUT"),(g=Y(g,"DURATION"))&&(m=Number(g)));var U=null;b=new Ki(e,n,function(){if(z)return z();null==U&&(U=Gv(h(),d.h,f));return U||[]},p,r,b,0,0,Infinity,A,c,m,u,v,k,0<A.length&&!!d.h);w&&(a.Lb=!0,b.ji(),y&&b.Wg());return b}function cx(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.Ha+1,d=c+b-1);return[c,d]}
1122
- function hw(a,b,c,d,e){if("video"==c||"audio"==c){var f=a.j.m;if(f&&!jw(a,c))for(b=Cv(b,"EXT-X-DATERANGE"),b=b.sort(function(w,v){w=zv(w,"START-DATE");v=zv(v,"START-DATE");return w<v?-1:w>v?1:0}),c=0;c<b.length;c++){var g=b[c],h=zv(g,"ID");if(!a.Ga.has(h)){var k=zv(g,"START-DATE"),l=wh(k);if(!isNaN(l)){k=Math.max(0,l-f);var m=null,n=Y(g,"END-DATE");if(n&&(n=wh(n),!isNaN(n)&&(m=n-f,0>m)))continue;if(null==m&&(n=Y(g,"DURATION")||Y(g,"PLANNED-DURATION"))&&(n=parseFloat(n),isNaN(n)||(m=k+n),0>l-f+n))continue;
1122
+ 1].Ja);c="";m=null;"image"==g&&(c="1x1",g=Ev(l,"EXT-X-TILES"))&&(c=zv(g,"LAYOUT"),(g=Y(g,"DURATION"))&&(m=Number(g)));var U=null;b=new Ki(e,n,function(){if(z)return z();null==U&&(U=Gv(h(),d.h,f));return U||[]},p,r,b,0,0,Infinity,A,c,m,u,v,k,0<A.length&&!!d.h);w&&(a.Lb=!0,b.ji(),y&&b.Wg());return b}function cx(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.Ja+1,d=c+b-1);return[c,d]}
1123
+ function hw(a,b,c,d,e){if("video"==c||"audio"==c){var f=a.j.m;if(f&&!jw(a,c))for(b=Cv(b,"EXT-X-DATERANGE"),b=b.sort(function(w,v){w=zv(w,"START-DATE");v=zv(v,"START-DATE");return w<v?-1:w>v?1:0}),c=0;c<b.length;c++){var g=b[c],h=zv(g,"ID");if(!a.Ha.has(h)){var k=zv(g,"START-DATE"),l=wh(k);if(!isNaN(l)){k=Math.max(0,l-f);var m=null,n=Y(g,"END-DATE");if(n&&(n=wh(n),!isNaN(n)&&(m=n-f,0>m)))continue;if(null==m&&(n=Y(g,"DURATION")||Y(g,"PLANNED-DURATION"))&&(n=parseFloat(n),isNaN(n)||(m=k+n),0>l-f+n))continue;
1123
1124
  n=Y(g,"CLASS")||"com.apple.quicktime.HLS";var p="YES"==Y(g,"END-ON-NEXT");if(null==m&&p){for(p=c+1;p<b.length;p++){var r=Y(b[p],"CLASS")||"com.apple.quicktime.HLS";if(n==r&&(r=zv(b[p],"START-DATE"),r=wh(r),!isNaN(r)&&r&&r>l)){m=Math.max(0,r-f);break}}if(null==m)continue}l="ID CLASS START-DATE END-DATE DURATION END-ON-NEXT".split(" ");p=[];g=t(g.attributes);for(r=g.next();!r.done;r=g.next())if(r=r.value,!l.includes(r.name)){var u=Iv(r.value,d);if("X-ASSET-URI"==r.name||"X-ASSET-LIST"==r.name)u=Gv(e(),
1124
- r.value,d)[0];p.push({key:r.name,description:"",data:u,mimeType:null,pictureType:null})}if(p.length)a.h.onMetadata(n,k,m,p);a.Ga.add(h)}}}}}
1125
- function ew(a,b,c,d,e,f){var g=b.segments,h=void 0,k=Fv(b.g,"EXT-X-DISCONTINUITY-SEQUENCE",0),l=Fv(b.g,"EXT-X-MEDIA-SEQUENCE",0),m=Ev(b.g,"EXT-X-SKIP"),n=m?Number(Y(m,"SKIPPED-SEGMENTS")):0,p=l+n,r=0;Wv(a)&&c.has(p)&&(r=c.get(p));0===r&&a.za==Bw&&0<c.size&&!c.has(p)&&(r=a.j.Hb());var u=[],w=null;m=[];for(var v=0;v<g.length;v++){var A=g[v],z=0==v?r:w.endTime;p=l+n+v;Ev(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&&(Lw(zv(y,"METHOD"))?
1125
+ r.value,d)[0];p.push({key:r.name,description:"",data:u,mimeType:null,pictureType:null})}if(p.length)a.h.onMetadata(n,k,m,p);a.Ha.add(h)}}}}}
1126
+ function ew(a,b,c,d,e,f){var g=b.segments,h=void 0,k=Fv(b.g,"EXT-X-DISCONTINUITY-SEQUENCE",0),l=Fv(b.g,"EXT-X-MEDIA-SEQUENCE",0),m=Ev(b.g,"EXT-X-SKIP"),n=m?Number(Y(m,"SKIPPED-SEGMENTS")):0,p=l+n,r=0;Wv(a)&&c.has(p)&&(r=c.get(p));0===r&&a.xa==Bw&&0<c.size&&!c.has(p)&&(r=a.j.Hb());var u=[],w=null;m=[];for(var v=0;v<g.length;v++){var A=g[v],z=0==v?r:w.endTime;p=l+n+v;Ev(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&&(Lw(zv(y,"METHOD"))?
1126
1127
  h=$w(a,y,b,e,d):h=void 0);c.set(p,z);C=Zw(a,b,A.g,e,d);!a.K&&a.h.isAutoLowLatencyMode()&&(a.h.enableLowLatencyMode(),a.K=a.h.isLowLatencyMode());if(z=bx(a,C,w,A,z,d,f,e,h))(w=Fv(A.g,"EXT-X-BITRATE"))?m.push({bitrate:w,duration:z.endTime-z.startTime}):m.length&&(w=m.pop(),w.duration+=z.endTime-z.startTime,m.push(w)),w=z,z.j=k,jw(a,f)&&null!=a.J&&p<a.J||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)/
1127
1128
  b*1E3));if(m=u.some(function(B){return null!=B.h}))for(c={},d=0;d<u.length;c={Ed:c.Ed,Dd:c.Dd,Ae:c.Ae,mc:c.mc,zd:c.zd},d++)if(c.mc=u[d],null==c.mc.h)for(c.Dd=0,c.Ed=d,e=function(B){return function(){var D=u[B.Ed];if(D){if(null!=D.h)return D.h+B.Dd;B.Dd-=D.endTime-D.startTime;B.Ed+=1}return null}}(c),c.zd=0,c.Ae=d,g=function(B){return function(){var D=u[B.Ae];if(D){D!=B.mc&&(B.zd+=D.endTime-D.startTime);if(null!=D.h)return D.h+B.zd;--B.Ae}return null}}(c);null==c.mc.h;)c.mc.h=g(),null==c.mc.h&&(c.mc.h=
1128
1129
  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),g=e.next();!g.done;g=e.next())g=g.value,g.h=d,d+=g.endTime-g.startTime;c=a.ea;if(m&&Infinity!=c&&!jw(a,f))for(a=t(u),d=a.next();!d.done;d=a.next())d.value.wh(c);return{segments:u,bandwidth:b}}function Fw(a,b){if(a==Uc){if("vtt"==b||"wvtt"==b)return"text/vtt";if(b&&""!==b)return"application/mp4"}return"image"!=a||b&&"jpeg"!=b?"audio"==a&&"mp4a.40.34"==b?"audio/mpeg":"mjpg"==b?"application/mp4":null:"image/jpeg"}
@@ -1130,32 +1131,32 @@ function Gw(a){return a==Uc?"text/vtt":dx[a].mp4}function yw(a,b){a=Wv(a)?Math.t
1130
1131
  function Yw(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,w,v,A;return O(function(z){switch(z.g){case 1:e=Jg;f=yw(a,d);g=f.segment;if(2==g.status)return z.return(Gw(b));h=g.R();k=new nb(h[0]);l=k.sb.split(".").pop();m=dx[b];if((n=m[l])||(n=zw[l])||(n=Fw(b,c)))return z.return(n);r=1;u=Dg(h,a.g.retryParameters);ta(z,2);u.method="HEAD";return G(z,Aw(a,u,e,{type:r}),4);case 4:w=z.h;p=w.headers["content-type"];va(z,3);break;case 2:v=wa(z);if(!v||1002!=v.code&&1001!=v.code){z.B(3);break}u.method="GET";return G(z,
1131
1132
  Aw(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(Gw(b))}})}function Uw(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 Uv(a,b,c){return Aw(a,Dg(b,a.g.retryParameters),0,{type:c?2:3})}
1132
1133
  function Sv(a){var b,c,d,e,f,g;return O(function(h){switch(h.g){case 1:if(!a.h)return h.return();ta(h,2);b=Date.now();return G(h,a.update(),4);case 4:c=Date.now();Wv(a)&&(d=(c-b)/1E3,a.Kb.sample(1,d),e=a.s,f=Math.max(0,e-pd(a.Kb)),a.A.X(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.X(.1);case 3:if(!a.h)return h.return();a.h.onManifestUpdated();I(h)}})}
1133
- function Wv(a){return a.za!=Tv}function $v(a,b){a.za=b;a.j&&a.j.Tc(!Wv(a));Wv(a)||a.A.stop()}function Aw(a,b,c,d){if(!a.Z)throw new T(2,7,7001);b=a.h.networkingEngine.request(c,b,d);xg(a.Z,b);return b.promise}function Lw(a){return"AES-128"==a||"AES-256"==a||"AES-256-CTR"==a}
1134
+ function Wv(a){return a.xa!=Tv}function $v(a,b){a.xa=b;a.j&&a.j.Tc(!Wv(a));Wv(a)||a.A.stop()}function Aw(a,b,c,d){if(!a.Z)throw new T(2,7,7001);b=a.h.networkingEngine.request(c,b,d);xg(a.Z,b);return b.promise}function Lw(a){return"AES-128"==a||"AES-256"==a||"AES-256-CTR"==a}
1134
1135
  function Nw(a,b,c,d,e,f){var g,h,k,l,m,n,p,r,u,w,v,A,z,C,y;return O(function(B){switch(B.g){case 1:if("video/mp2t"==c)throw new T(2,4,4040);if(uc())throw new T(2,4,4041);g=zv(b,"METHOD");h=["SAMPLE-AES","SAMPLE-AES-CTR"];if(!h.includes(g))return B.return(null);k=Gv(d(),zv(b,"URI"),f);if(k[0].startsWith("data:text/plain;base64,")){l=Mc(Kc(k[0].split("data:text/plain;base64,").pop()));B.B(2);break}m=k.sort().join("");a.ra.has(m)||(n=Dg(k,a.g.retryParameters),p=Aw(a,n,6),a.ra.set(m,p));return G(B,a.ra.get(m),
1135
- 3);case 3:r=B.h,l=Mc(r.data);case 2:u="00000000000000000000000000000000";if(!e){B.B(4);break}if(a.Fa.has(e)){w=a.Fa.get(e);B.B(5);break}v=Ll(e.R(),e.Ib(),e.Fb(),a.g.retryParameters);A=Jg;return G(B,Aw(a,v,A,{type:0}),6);case 6:z=B.h,w=Jl(z.data),a.Fa.set(e,w);case 5:w&&(u=w);case 4:return C=new Map,C.set(u,l),y="cenc","SAMPLE-AES"==g&&(y="cbcs"),B.return(Qc(C,y))}})}P("shaka.hls.HlsParser",Rv);
1136
+ 3);case 3:r=B.h,l=Mc(r.data);case 2:u="00000000000000000000000000000000";if(!e){B.B(4);break}if(a.Ga.has(e)){w=a.Ga.get(e);B.B(5);break}v=Ll(e.R(),e.Ib(),e.Fb(),a.g.retryParameters);A=Jg;return G(B,Aw(a,v,A,{type:0}),6);case 6:z=B.h,w=Jl(z.data),a.Ga.set(e,w);case 5:w&&(u=w);case 4:return C=new Map,C.set(u,l),y="cenc","SAMPLE-AES"==g&&(y="cbcs"),B.return(Qc(C,y))}})}P("shaka.hls.HlsParser",Rv);
1136
1137
  var zw={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},dx={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",
1137
1138
  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"}},Mw={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new T(2,4,4040);if(uc())throw new T(2,4,4041);b=zv(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;var c="cenc";"SAMPLE-AES"==b&&(c="cbcs");return Pc("com.apple.fps",c,[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}],zv(a,"URI"))},
1138
1139
  "urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=zv(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;var c="cenc";"SAMPLE-AES"==b&&(c="cbcs");b=zv(a,"URI");b=Qv(b.split("?")[0]);b=Hb(b.data);c=Pc("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=zv(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;var c="cenc";
1139
1140
  "SAMPLE-AES"==b&&(c="cbcs");a=zv(a,"URI");a=Qv(a.split("?")[0]);a=Hb(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=dh(a,b,new Set,0);return Pc("com.microsoft.playready",c,[{initDataType:"cenc",initData:a}])}},Tv="VOD",Xw="EVENT",Bw="LIVE",Zv={Ui:Tv,ol:Xw,zl:Bw};Di["application/x-mpegurl"]=function(){return new Rv};Di["application/vnd.apple.mpegurl"]=function(){return new Rv};function ex(a){var b=0,c=Mb(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=Hb(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function fx(a){if(a=gx(a))a:{a=t(ph(a,"DATA"));for(var b=a.next();!b.done;b=a.next())if(b=qh(b.value,"LA_URL")){a=nh(b);break a}a=""}else a="";return a}
1140
1141
  function gx(a){a=Kc(nh(a));a=ex(a).filter(function(b){return b.type===hx})[0];if(!a)return null;a=Ac(a.value,!0);return(a=fh(a,"WRMHEADER"))?a:null}var hx=1,ix=(new Map).set("com.microsoft.playready",fx).set("com.microsoft.playready.recommendation",fx).set("com.microsoft.playready.software",fx).set("com.microsoft.playready.hardware",fx);function jx(a){if(!kx){kx=!0;var b=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),d=new Uint8Array([0,0,0,1]);lx=mx("ftyp",b,d,b,c);b=mx("dref",nx);ox=mx("dinf",b)}this.g=a}
1141
- function px(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=mx;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/(Cx+1));m=Math.floor(m%(Cx+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(Dx(h,4)),[0,0,0,0],x(Dx(n,4)),x(Dx(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(Dx(k,2)),[0,0],x(Dx(l,
1142
- 2)),[0,0]));h=mx("tkhd",h);k=mx;n=g.duration*g.timescale;l=Math.floor(n/(Cx+1));n=Math.floor(n%(Cx+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(Dx(g.timescale,4)),x(Dx(l,4)),x(Dx(n,4)),x(Dx(m,2)),[0,0]));l=mx("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=Ex;break;case "audio":m=Fx}n=mx("hdlr",m);a:{switch(g.type){case "video":g=mx("minf",mx("vmhd",Gx),ox,Hx(g));break a;
1143
- case "audio":g=mx("minf",mx("smhd",Ix),ox,Hx(g));break a}g=new Uint8Array([])}g=k("mdia",l,n,g);d=d("trak",h,g);f.call(e,d)}b=Nc.apply(Hc,x(b));f=a.g[0];c=mx;d=f.duration*f.timescale;e=Math.floor(d/(Cx+1));d=Math.floor(d%(Cx+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(Dx(f.timescale,4)),x(Dx(e,4)),x(Dx(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,
1142
+ function px(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=mx;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/(qx+1));m=Math.floor(m%(qx+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(Dx(h,4)),[0,0,0,0],x(Dx(n,4)),x(Dx(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(Dx(k,2)),[0,0],x(Dx(l,
1143
+ 2)),[0,0]));h=mx("tkhd",h);k=mx;n=g.duration*g.timescale;l=Math.floor(n/(qx+1));n=Math.floor(n%(qx+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(Dx(g.timescale,4)),x(Dx(l,4)),x(Dx(n,4)),x(Dx(m,2)),[0,0]));l=mx("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=Ex;break;case "audio":m=Fx}n=mx("hdlr",m);a:{switch(g.type){case "video":g=mx("minf",mx("vmhd",Gx),ox,Hx(g));break a;
1144
+ case "audio":g=mx("minf",mx("smhd",Ix),ox,Hx(g));break a}g=new Uint8Array([])}g=k("mdia",l,n,g);d=d("trak",h,g);f.call(e,d)}b=Nc.apply(Hc,x(b));f=a.g[0];c=mx;d=f.duration*f.timescale;e=Math.floor(d/(qx+1));d=Math.floor(d%(qx+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(Dx(f.timescale,4)),x(Dx(e,4)),x(Dx(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,
1144
1145
  255]));e=mx("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(Dx(k.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1])),k=mx("trex",k),h.call(g,k);a=Nc.apply(Hc,x(d));a=mx("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=Nc.apply(Hc,x(d))}else f=new Uint8Array([]);a=c("moov",e,b,a,f);b=new Uint8Array(lx.byteLength+
1145
1146
  a.byteLength);b.set(lx);b.set(a,lx.byteLength);return b}
1146
- function Hx(a){var b=mx,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.Oa.byteLength)var e=mx("avcC",a.Oa);else{e=mx;for(var f=7,g=[],h=[],k=0,l=0,m=0,n=0;n<a.wb.length;n++){var p=Jx(a.wb[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=
1147
+ function Hx(a){var b=mx,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.Qa.byteLength)var e=mx("avcC",a.Qa);else{e=mx;for(var f=7,g=[],h=[],k=0,l=0,m=0,n=0;n<a.wb.length;n++){var p=Jx(a.wb[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=
1147
1148
  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(Dx(c,2)),x(Dx(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=Kx(a);g=new Uint8Array([]);
1148
- a.encrypted&&(g=Lx(a),d="encv");c=mx(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.Oa.byteLength&&(c=mx("hvcC",a.Oa)),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(Dx(d,2)),x(Dx(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=Kx(a),g=new Uint8Array([]),a.encrypted&&(g=Lx(a),e="encv"),c=mx(e,d,
1149
- c,h,g));break;case "audio":if(a.codecs.includes("mp3"))a=mx(".mp3",Mx(a));else if(a.codecs.includes("ac-3"))c=mx("dac3",a.Ba),d="ac-3",e=new Uint8Array([]),a.encrypted&&(e=Lx(a),d="enca"),a=mx(d,Mx(a),c,e);else if(a.codecs.includes("ec-3"))c=mx("dec3",a.Ba),d="ec-3",e=new Uint8Array([]),a.encrypted&&(e=Lx(a),d="enca"),a=mx(d,Mx(a),c,e);else if(a.codecs.includes("opus"))c=mx("dOps",a.Ba),d="Opus",e=new Uint8Array([]),a.encrypted&&(e=Lx(a),d="enca"),a=mx(d,Mx(a),c,e);else{if(0<a.Ba.byteLength)c=mx("esds",
1150
- a.Ba);else{c=mx;d=a.id+1;e=a.stream.channelsCount||2;g=a.stream.audioSamplingRate||44100;k=Rc("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(Dx(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=Lx(a),d="enca");
1149
+ a.encrypted&&(g=Lx(a),d="encv");c=mx(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.Qa.byteLength&&(c=mx("hvcC",a.Qa)),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(Dx(d,2)),x(Dx(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=Kx(a),g=new Uint8Array([]),a.encrypted&&(g=Lx(a),e="encv"),c=mx(e,d,
1150
+ c,h,g));break;case "audio":if(a.codecs.includes("mp3"))a=mx(".mp3",Mx(a));else if(a.codecs.includes("ac-3"))c=mx("dac3",a.Ca),d="ac-3",e=new Uint8Array([]),a.encrypted&&(e=Lx(a),d="enca"),a=mx(d,Mx(a),c,e);else if(a.codecs.includes("ec-3"))c=mx("dec3",a.Ca),d="ec-3",e=new Uint8Array([]),a.encrypted&&(e=Lx(a),d="enca"),a=mx(d,Mx(a),c,e);else if(a.codecs.includes("opus"))c=mx("dOps",a.Ca),d="Opus",e=new Uint8Array([]),a.encrypted&&(e=Lx(a),d="enca"),a=mx(d,Mx(a),c,e);else{if(0<a.Ca.byteLength)c=mx("esds",
1151
+ a.Ca);else{c=mx;d=a.id+1;e=a.stream.channelsCount||2;g=a.stream.audioSamplingRate||44100;k=Rc("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(Dx(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=Lx(a),d="enca");
1151
1152
  a=mx(d,Mx(a),c,e)}c=a}a=mx("stsd",Nx,c);return b("stbl",a,mx("stts",Ox),mx("stsc",Px),mx("stsz",Qx),mx("stco",Rx))}function Kx(a){if(!a.Va&&!a.Wa)return new Uint8Array([]);var b=a.Wa;a=new Uint8Array([].concat(x(Dx(a.Va,4)),x(Dx(b,4))));return mx("pasp",a)}function Mx(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(Dx(a.stream.audioSamplingRate||44100,2)),[0,0]))}
1152
1153
  function Lx(a){var b=mx;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(Dx(d,4))));c=mx("frma",c);d=new Uint8Array([0,0,0,0,99,101,110,99,0,1,0,0]);d=mx("schm",d);e=mx;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=Jx(h.value)}a=new Uint8Array([0,
1153
1154
  0,0,0,0,0,1,8]);f=mx("tenc",a,f);return b("sinf",c,d,e("schi",f))}
1154
1155
  function Sx(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=mx;var g=new Uint8Array([0,0,0,0].concat(x(Dx(c.data?c.data.Sb:0,4))));g=mx("mfhd",g);var h;var k=c.data?c.data.ub:[];var l=new Uint8Array(4+k.length);for(h=0;h<k.length;h++){var m=k[h].flags;l[h+4]=m.mb<<4|m.qb<<2|m.pb}k=mx("sdtp",l);var n=k.length+92;l=mx;h=new Uint8Array([0,0,0,58].concat(x(Dx(c.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0]));h=mx("tfhd",h);m=c.data?c.data.baseMediaDecodeTime:
1155
- 0;var p=Math.floor(m%(Cx+1));m=new Uint8Array([1,0,0,0].concat(x(Dx(Math.floor(m/(Cx+1)),4)),x(Dx(p,4))));m=mx("tfdt",m);var r=n;n=c.data?c.data.ub:[];p=n.length;var u=12+16*p,w=new Uint8Array(u);r+=8+u;w.set(["video"===c.type?1:0,0,15,1].concat(x(Dx(p,4)),x(Dx(r,4))),0);for(r=0;r<p;r++){var v=n[r];u=Dx(v.duration,4);var A=Dx(v.size,4),z=v.flags;v=Dx(v.yb,4);w.set([].concat(x(u),x(A),[z.zb<<2|z.mb,z.qb<<6|z.pb<<4|z.Ab,z.kb&61440,z.kb&15],x(v)),12+16*r)}n=mx("trun",w);k=l("traf",h,m,n,k);f=f("moof",
1156
+ 0;var p=Math.floor(m%(qx+1));m=new Uint8Array([1,0,0,0].concat(x(Dx(Math.floor(m/(qx+1)),4)),x(Dx(p,4))));m=mx("tfdt",m);var r=n;n=c.data?c.data.ub:[];p=n.length;var u=12+16*p,w=new Uint8Array(u);r+=8+u;w.set(["video"===c.type?1:0,0,15,1].concat(x(Dx(p,4)),x(Dx(r,4))),0);for(r=0;r<p;r++){var v=n[r];u=Dx(v.duration,4);var A=Dx(v.size,4),z=v.flags;v=Dx(v.yb,4);w.set([].concat(x(u),x(A),[z.zb<<2|z.mb,z.qb<<6|z.pb<<4|z.Ab,z.kb&61440,z.kb&15],x(v)),12+16*r)}n=mx("trun",w);k=l("traf",h,m,n,k);f=f("moof",
1156
1157
  g,k);e.call(d,b,[f,Tx(c)])}return Nc.apply(Hc,x(b))}function Tx(a){a=(a.data?a.data.ub:[]).map(function(b){return b.data});a=Nc.apply(Hc,x(a));return mx("mdat",a)}function Dx(a,b){var c=[];for(--b;0<=b;b--)c.push(a>>8*b&255);return c}function Jx(a){for(var b=new Uint8Array(a.length/2),c=0;c<a.length/2;c+=1)b[c]=parseInt(String(a[2*c]+a[2*c+1]),16);return b}
1157
1158
  function mx(a){var b=Ga.apply(1,arguments),c=Ux[a];c||(c=[a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2),a.charCodeAt(3)],Ux[a]=c);for(var d=8,e=b.length-1;0<=e;e--)d+=b[e].byteLength;e=new Uint8Array(d);e[0]=d>>24&255;e[1]=d>>16&255;e[2]=d>>8&255;e[3]=d&255;e.set(c,4);c=0;for(d=8;c<b.length;c++)e.set(b[c],d),d+=b[c].byteLength;return e}
1158
- var kx=!1,Cx=Math.pow(2,32)-1,Ux={},Ex=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),Fx=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),Ox=new Uint8Array([0,0,0,0,0,0,0,0]),Px=new Uint8Array([0,0,0,0,0,0,0,0]),Rx=new Uint8Array([0,0,0,0,0,0,0,0]),Qx=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Gx=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Ix=new Uint8Array([0,
1159
+ var kx=!1,qx=Math.pow(2,32)-1,Ux={},Ex=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),Fx=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),Ox=new Uint8Array([0,0,0,0,0,0,0,0]),Px=new Uint8Array([0,0,0,0,0,0,0,0]),Rx=new Uint8Array([0,0,0,0,0,0,0,0]),Qx=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Gx=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Ix=new Uint8Array([0,
1159
1160
  0,0,0,0,0,0,0]),Nx=new Uint8Array([0,0,0,0,0,0,0,1]),lx=new Uint8Array([]),nx=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),ox=new Uint8Array([]);function Vx(){var a=this;this.h=this.g=null;this.l=[];this.j=null;this.u=1;this.i=null;this.C=new od(5);this.s=new Vb(function(){Wx(a)});this.A=new wg;this.m=new Map}q=Vx.prototype;q.configure=function(a){this.g=a};q.start=function(a,b){var c=this;return O(function(d){if(1==d.g)return c.l=[a],c.h=b,G(d,Xx(c),2);if(!c.h)throw new T(2,7,7001);return d.return(c.j)})};
1160
1161
  function Wx(a){var b;O(function(c){switch(c.g){case 1:return ta(c,2),G(c,Xx(a),4);case 4:va(c,3);break;case 2:b=wa(c),a.h&&(b.severity=1,a.h.onError(b));case 3:if(!a.h)return c.return();I(c)}})}q.stop=function(){this.g=this.h=null;this.l=[];this.j=null;null!=this.s&&(this.s.stop(),this.s=null);this.m.clear();return this.A.destroy()};
1161
1162
  q.update=function(){var a=this,b;return O(function(c){if(1==c.g)return ta(c,2),G(c,Xx(a),4);if(2!=c.g)return va(c,0);b=wa(c);if(!a.h||!b)return c.return();a.h.onError(b);I(c)})};q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(){};q.banLocation=function(){};q.setMediaElement=function(){};
@@ -1170,7 +1171,7 @@ function Yx(a,b,c,d,e,f){var g=b.attributes.Type;if("audio"!==g&&"video"!==g&&"t
1170
1171
  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:ad(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,
1171
1172
  matchedStreams:[],mssPrivateData:{duration:u,timescale:f.timescale,codecPrivateData:null},accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set};if(e=b.attributes.Subtype)(e=Zx[e])&&v.roles.push(e),"main"===e&&(v.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 Va('FourCC is not defined whereas it is required for a QualityLevel element for a StreamIndex of type "video"'),null;if(!$x.includes(e.toUpperCase()))return Va("Codec not supported:",
1172
1173
  e),null;c=ay(c,g,e,v);v.mssPrivateData.codecPrivateData=c;switch(g){case "audio":if(!c)return Va("Quality unsupported without CodecPrivateData",g),null;v.type="audio";v.mimeType="mss/audio/mp4";v.codecs=by(e,c);break;case "video":if(!c)return Va("Quality unsupported without CodecPrivateData",g),null;v.type="video";v.mimeType="mss/video/mp4";v.codecs=cy(c);break;case "text":if(v.type=Uc,v.mimeType="application/mp4","TTML"===e||"DFXP"===e)v.codecs="stpp"}v.fullMimeTypes.add(we(v.mimeType,v.codecs));
1173
- v.createSegmentIndex=function(){if(v.segmentIndex)return Promise.resolve();if(a.m.has(v.id))var A=a.m.get(v.id);else A=[],"video"==v.type&&(A=v.mssPrivateData.codecPrivateData.split("00000001").slice(1)),A={id:v.id,type:v.type,codecs:v.codecs,encrypted:v.encrypted,timescale:v.mssPrivateData.timescale,duration:v.mssPrivateData.duration,wb:A,Ba:new Uint8Array([]),Oa:new Uint8Array([]),Va:0,Wa:0,data:null,stream:v},A=px(new jx([A])),a.m.set(v.id,A);A=dy(a,new Ii(function(){return[]},0,null,El(v),v.mssPrivateData.timescale,
1174
+ v.createSegmentIndex=function(){if(v.segmentIndex)return Promise.resolve();if(a.m.has(v.id))var A=a.m.get(v.id);else A=[],"video"==v.type&&(A=v.mssPrivateData.codecPrivateData.split("00000001").slice(1)),A={id:v.id,type:v.type,codecs:v.codecs,encrypted:v.encrypted,timescale:v.mssPrivateData.timescale,duration:v.mssPrivateData.duration,wb:A,Ca:new Uint8Array([]),Qa:new Uint8Array([]),Va:0,Wa:0,data:null,stream:v},A=px(new jx([A])),a.m.set(v.id,A);A=dy(a,new Ii(function(){return[]},0,null,El(v),v.mssPrivateData.timescale,
1174
1175
  A),v,b,d);v.segmentIndex=new Zk(A);return Promise.resolve()};v.closeSegmentIndex=function(){v.segmentIndex&&(v.segmentIndex.release(),v.segmentIndex=null)};return v}
1175
1176
  function ay(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;
1176
1177
  b=new Uint16Array(1);b[0]=(c[0]<<8)+c[1];return b[0].toString(16)}function by(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 cy(a){var b=/00000001[0-9]7/.exec(a);return b.length&&a?"avc1."+a.substr(a.indexOf(b[0])+10,6):""}
@@ -1182,7 +1183,7 @@ function my(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}functio
1182
1183
  ny()&&(zg("http",gy,2,!0),zg("https",gy,2,!0),zg("blob",gy,2,!0));function oy(){}
1183
1184
  function py(a,b,c,d,e){var f=new qy,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 T(1,1,7001,a,c))};var n=!1;f.onreadystatechange=function(){if(2==f.readyState&&!n){var r=ry(f);e(r);n=!0}};f.onload=function(r){var u=ry(f),w=f.response;try{d(Date.now()-g,r.loaded-h,0);var v=ey(u,w,f.status,a,f.responseURL,c);l(v)}catch(A){m(A)}};f.onerror=function(r){m(new T(1,
1184
1185
  1,1002,a,r,c))};f.ontimeout=function(){m(new T(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 pg(k,function(){f.abort();return Promise.resolve()})}
1185
- function ry(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",oy);oy.parse=py;var qy=window.XMLHttpRequest;zg("http",py,1,!0);zg("https",py,1,!0);zg("blob",py,1,!0);function sy(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function ty(a){return a.R().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.$a+":"+a.Ha}function uy(a,b){return Ll(a.g.R(),a.g.$a,a.g.Ha,b.streaming.retryParameters)};function vy(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function wy(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}vy.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 xy(a){var b=this;this.s=a;this.j=new Map;this.i=new Lg(function(){return yy(b).catch(function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new vy}xy.prototype.destroy=function(){return this.i.destroy()};function zy(a,b,c){a.m=b;a.l=c}function yy(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
1186
+ function ry(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",oy);oy.parse=py;var qy=window.XMLHttpRequest;zg("http",py,1,!0);zg("https",py,1,!0);zg("blob",py,1,!0);function sy(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function ty(a){return a.R().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.$a+":"+a.Ja}function uy(a,b){return Ll(a.g.R(),a.g.$a,a.g.Ja,b.streaming.retryParameters)};function vy(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function wy(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}vy.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 xy(a){var b=this;this.s=a;this.j=new Map;this.i=new Lg(function(){return yy(b).catch(function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new vy}xy.prototype.destroy=function(){return this.i.destroy()};function zy(a,b,c){a.m=b;a.l=c}function yy(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
1186
1187
  function Ay(a,b,c,d,e,f){Mg(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 G(u,By(a,c),2);h=u.h;if(a.i.g)throw new T(2,9,7001);if(e)for(m in k=Hb(h),l=new ch(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 w=a.g;a.m(0==w.i?0:w.j/w.i,a.g.h);return u.return(f(h))})});a.j.set(b,g)}function Cy(a){return O(function(b){return 1==b.g?G(b,Promise.all(a.j.values()),2):b.return(a.g.h)})}
1187
1188
  function By(a,b){var c,d,e,f;return O(function(g){if(1==g.g)return c=Jg,d=a.s.request(c,b),e=function(){return d.abort()},a.h.push(e),G(g,d.promise,2);f=g.h;Pd(a.h,e);return g.return(f.data)})};function Dy(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new og;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}Dy.prototype.abort=function(){var a=this;return O(function(b){if(1==b.g){try{a.i.abort()}catch(c){}ta(b,2);return G(b,a.g,4)}if(2!=b.g)return va(b,0);wa(b);I(b)})};
1188
1189
  function Ey(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 G(g,b(f.key,f.value,f),2)}f.continue();I(g)})}})}Dy.prototype.store=function(){return this.h};Dy.prototype.promise=function(){return this.g};function Fy(a){this.h=a;this.g=[]}Fy.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function Gy(a,b){return Hy(a,b,"readwrite")}function Hy(a,b,c){c=a.h.transaction([b],c);var d=new Dy(c,b);a.g.push(d);d.promise().then(function(){Pd(a.g,d)},function(){Pd(a.g,d)});return d};function Iy(a,b,c){this.h=new Fy(a);this.i=b;this.g=c}q=Iy.prototype;q.destroy=function(){return this.h.destroy()};q.hasFixedKeySpace=function(){return!0};q.addSegments=function(){return Jy(this.i)};q.removeSegments=function(a,b){return Ky(this,this.i,a,b)};q.getSegments=function(a){var b=this,c;return O(function(d){if(1==d.g)return G(d,Ly(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.Ph(e)}))})};q.addManifests=function(){return Jy(this.g)};
@@ -1370,21 +1371,21 @@ function hD(a,b){if(b+1<a.length&&255===a[b]&&240===(a[b+1]&246)){var c=a[b+1]&1
1370
1371
  function iD(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,
1371
1372
  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 jD(a){this.i=a;this.h=0;this.g=new Map}q=jD.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/aac"==a.toLowerCase().split(";")[0]?wd(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/aac"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="'+(Me(b)||"mp4a.40.2")+'"':b};q.getOriginalMimeType=function(){return this.i};
1372
1373
  q.transmux=function(a,b,c,d){for(var e=Hb(a),f=$i(e),g=f.length;g<e.length&&!hD(e,g);g++);a=1E3*c.endTime;f=Zi(f);f.length&&c&&(f=f.find(function(m){return"com.apple.streaming.transportStreamTimestamp"===m.description}))&&(a=f.data);f=gD(e,g);if(!f)return Promise.reject(new T(2,3,3018,c?c.R()[0]:null));b.audioSamplingRate=f.sampleRate;b.channelsCount=f.channelCount;for(var h=[];g<e.length;){var k=fD(e,g);if(!k)return Promise.reject(new T(2,3,3018,c?c.R()[0]:null));var l=k.cf+k.na;g+l<=e.length&&h.push({data:e.subarray(g+
1373
- k.cf,g+l),size:k.na,duration:1024,yb:0,flags:{zb:0,qb:0,pb:0,kb:0,mb:2,Ab:0}});g+=l}c=f.sampleRate;a=Math.floor(a*c/1E3);d={id:b.id,type:"audio",codecs:f.gb,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:c,duration:d,wb:[],Ba:new Uint8Array([]),Oa:new Uint8Array([]),Va:0,Wa:0,data:{Sb:this.h,baseMediaDecodeTime:a,ub:h},stream:b};c=new jx([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=px(c),this.g.set(b.id,d));b=Sx(c);this.h++;b=Nc(d,b);return Promise.resolve(b)};
1374
+ k.cf,g+l),size:k.na,duration:1024,yb:0,flags:{zb:0,qb:0,pb:0,kb:0,mb:2,Ab:0}});g+=l}c=f.sampleRate;a=Math.floor(a*c/1E3);d={id:b.id,type:"audio",codecs:f.gb,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:c,duration:d,wb:[],Ca:new Uint8Array([]),Qa:new Uint8Array([]),Va:0,Wa:0,data:{Sb:this.h,baseMediaDecodeTime:a,ub:h},stream:b};c=new jx([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=px(c),this.g.set(b.id,d));b=Sx(c);this.h++;b=Nc(d,b);return Promise.resolve(b)};
1374
1375
  P("shaka.transmuxer.AacTransmuxer",jD);jD.prototype.transmux=jD.prototype.transmux;jD.prototype.getOriginalMimeType=jD.prototype.getOriginalMimeType;jD.prototype.convertCodecs=jD.prototype.convertCodecs;jD.prototype.isSupported=jD.prototype.isSupported;jD.prototype.destroy=jD.prototype.destroy;oe("audio/aac",function(){return new jD("audio/aac")},ue);function kD(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,
1375
- 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,Ba:a,na:e}}
1376
+ 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,Ca:a,na:e}}
1376
1377
  function lD(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 mD(a){this.i=a;this.h=0;this.g=new Map}q=mD.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/ac3"==a.toLowerCase().split(";")[0]?wd(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};
1377
- q.transmux=function(a,b,c,d){a=Hb(a);for(var e=$i(a),f=e.length;f<a.length&&!lD(a,f);f++);var g=1E3*c.endTime;e=Zi(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=kD(a,f);if(!l)return Promise.reject(new T(2,3,3018,c?c.R()[0]:null));b.audioSamplingRate=l.sampleRate;b.channelsCount=l.channelCount;e=l.sampleRate;h=l.Ba;k.push({data:a.subarray(f,f+l.na),size:l.na,duration:1536,
1378
- yb:0,flags:{zb:0,qb:0,pb:0,kb:0,mb:2,Ab:0}});f+=l.na}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,wb:[],Ba:h,Oa:new Uint8Array([]),Va:0,Wa:0,data:{Sb:this.h,baseMediaDecodeTime:c,ub:k},stream:b};c=new jx([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=px(c),this.g.set(b.id,d));b=Sx(c);this.h++;b=Nc(d,b);return Promise.resolve(b)};P("shaka.transmuxer.Ac3Transmuxer",mD);mD.prototype.transmux=mD.prototype.transmux;
1379
- mD.prototype.getOriginalMimeType=mD.prototype.getOriginalMimeType;mD.prototype.convertCodecs=mD.prototype.convertCodecs;mD.prototype.isSupported=mD.prototype.isSupported;mD.prototype.destroy=mD.prototype.destroy;oe("audio/ac3",function(){return new mD("audio/ac3")},ue);function nD(a,b){if(b+8>a.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new jj(a.subarray(b+2));lj(c,2);lj(c,3);var d=mj(c,11)+1<<1,e=mj(c,2);if(3==e){e=mj(c,2);e=[24E3,22060,16E3][e];var f=3}else e=[48E3,44100,32E3][e],f=mj(c,2);var g=mj(c,3),h=mj(c,1);c=mj(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,Ba:a,na:d}};function oD(a){this.i=a;this.h=0;this.g=new Map}q=oD.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/ec3"==a.toLowerCase().split(";")[0]?wd(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};
1380
- q.transmux=function(a,b,c,d){a=Hb(a);for(var e=$i(a),f=e.length;f<a.length&&2935!==(a[f]<<8|a[f+1]<<0);f++);var g=1E3*c.endTime;e=Zi(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=nD(a,f);if(!l)return Promise.reject(new T(2,3,3018,c?c.R()[0]:null));b.audioSamplingRate=l.sampleRate;b.channelsCount=l.channelCount;e=l.sampleRate;h=l.Ba;k.push({data:a.subarray(f,f+l.na),
1381
- size:l.na,duration:1536,yb:0,flags:{zb:0,qb:0,pb:0,kb:0,mb:2,Ab:0}});f+=l.na}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,wb:[],Ba:h,Oa:new Uint8Array([]),Va:0,Wa:0,data:{Sb:this.h,baseMediaDecodeTime:c,ub:k},stream:b};c=new jx([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=px(c),this.g.set(b.id,d));b=Sx(c);this.h++;b=Nc(d,b);return Promise.resolve(b)};P("shaka.transmuxer.Ec3Transmuxer",oD);oD.prototype.transmux=oD.prototype.transmux;
1378
+ q.transmux=function(a,b,c,d){a=Hb(a);for(var e=$i(a),f=e.length;f<a.length&&!lD(a,f);f++);var g=1E3*c.endTime;e=Zi(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=kD(a,f);if(!l)return Promise.reject(new T(2,3,3018,c?c.R()[0]:null));b.audioSamplingRate=l.sampleRate;b.channelsCount=l.channelCount;e=l.sampleRate;h=l.Ca;k.push({data:a.subarray(f,f+l.na),size:l.na,duration:1536,
1379
+ yb:0,flags:{zb:0,qb:0,pb:0,kb:0,mb:2,Ab:0}});f+=l.na}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,wb:[],Ca:h,Qa:new Uint8Array([]),Va:0,Wa:0,data:{Sb:this.h,baseMediaDecodeTime:c,ub:k},stream:b};c=new jx([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=px(c),this.g.set(b.id,d));b=Sx(c);this.h++;b=Nc(d,b);return Promise.resolve(b)};P("shaka.transmuxer.Ac3Transmuxer",mD);mD.prototype.transmux=mD.prototype.transmux;
1380
+ mD.prototype.getOriginalMimeType=mD.prototype.getOriginalMimeType;mD.prototype.convertCodecs=mD.prototype.convertCodecs;mD.prototype.isSupported=mD.prototype.isSupported;mD.prototype.destroy=mD.prototype.destroy;oe("audio/ac3",function(){return new mD("audio/ac3")},ue);function nD(a,b){if(b+8>a.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new jj(a.subarray(b+2));lj(c,2);lj(c,3);var d=mj(c,11)+1<<1,e=mj(c,2);if(3==e){e=mj(c,2);e=[24E3,22060,16E3][e];var f=3}else e=[48E3,44100,32E3][e],f=mj(c,2);var g=mj(c,3),h=mj(c,1);c=mj(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,Ca:a,na:d}};function oD(a){this.i=a;this.h=0;this.g=new Map}q=oD.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/ec3"==a.toLowerCase().split(";")[0]?wd(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};
1381
+ q.transmux=function(a,b,c,d){a=Hb(a);for(var e=$i(a),f=e.length;f<a.length&&2935!==(a[f]<<8|a[f+1]<<0);f++);var g=1E3*c.endTime;e=Zi(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=nD(a,f);if(!l)return Promise.reject(new T(2,3,3018,c?c.R()[0]:null));b.audioSamplingRate=l.sampleRate;b.channelsCount=l.channelCount;e=l.sampleRate;h=l.Ca;k.push({data:a.subarray(f,f+l.na),
1382
+ size:l.na,duration:1536,yb:0,flags:{zb:0,qb:0,pb:0,kb:0,mb:2,Ab:0}});f+=l.na}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,wb:[],Ca:h,Qa:new Uint8Array([]),Va:0,Wa:0,data:{Sb:this.h,baseMediaDecodeTime:c,ub:k},stream:b};c=new jx([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=px(c),this.g.set(b.id,d));b=Sx(c);this.h++;b=Nc(d,b);return Promise.resolve(b)};P("shaka.transmuxer.Ec3Transmuxer",oD);oD.prototype.transmux=oD.prototype.transmux;
1382
1383
  oD.prototype.getOriginalMimeType=oD.prototype.getOriginalMimeType;oD.prototype.convertCodecs=oD.prototype.convertCodecs;oD.prototype.isSupported=oD.prototype.isSupported;oD.prototype.destroy=oD.prototype.destroy;oe("audio/ec3",function(){return new oD("audio/ec3")},ue);function pD(a){if(!a.length)return null;var b=a.find(function(w){return 7==w.type});a=a.find(function(w){return 8==w.type});if(!b||!a)return null;var c=new jj(b.data),d=rj(c);rj(c);rj(c);oj(c);if(qD.includes(d)&&(d=V(c),3===d&&lj(c,1),oj(c),oj(c),lj(c,1),qj(c))){d=3!==d?8:12;for(var e=0;e<d;e++)qj(c)&&(6>e?sj(c,16):sj(c,64))}oj(c);d=V(c);if(0===d)V(c);else if(1===d)for(lj(c,1),oj(c),oj(c),d=V(c),e=0;e<d;e++)oj(c);oj(c);lj(c,1);var f=V(c),g=V(c),h=mj(c,1);0===h&&lj(c,1);lj(c,1);var k=0,l=0,m=0,n=0;
1383
1384
  qj(c)&&(k=V(c),l=V(c),m=V(c),n=V(c));e=d=1;if(qj(c)&&qj(c)){var p=rj(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=mj(c,16),e=mj(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],
1384
- k[5],255,225].concat(k,[1],b));return{height:c,width:f,Oa:a,Va:d,Wa:e}}
1385
+ k[5],255,225].concat(k,[1],b));return{height:c,width:f,Qa:a,Va:d,Wa:e}}
1385
1386
  function rD(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=tj(new jj(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?
1386
1387
  {data:Nc.apply(Hc,x(c)),fe:b}:null}var qD=[100,110,122,244,44,83,86,118,128,138,139,134];function sD(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=tD(b.fullData);a=uD(c.fullData);var f=vD(d.fullData);b=wD(b.fullData,c.fullData,d.fullData,{Yg:e.Yg,xh:e.xh,Fg:a.Fg,Gg:a.Gg,zg:a.zg,Eg:a.Eg,Ag:a.Ag,Bg:a.Bg,Cg:a.Cg,Dg:a.Dg,sg:a.sg,ug:a.ug,vg:a.vg,wg:a.wg,xg:a.xg,yg:a.yg,ng:a.ng,rf:a.rf,lg:a.lg,hg:a.hg,gg:a.gg,ah:f.ah});return{height:a.height,width:a.width,
1387
- Oa:b,Va:a.Hk,Wa:a.Gk}}function tD(a){var b=new jj(a,!0);rj(b);rj(b);mj(b,4);mj(b,2);mj(b,6);a=mj(b,3);b=qj(b);return{Yg:a+1,xh:b}}
1388
+ Qa:b,Va:a.Hk,Wa:a.Gk}}function tD(a){var b=new jj(a,!0);rj(b);rj(b);mj(b,4);mj(b,2);mj(b,6);a=mj(b,3);b=qj(b);return{Yg:a+1,xh:b}}
1388
1389
  function uD(a){a=new jj(a,!0);rj(a);rj(a);var b=0,c=0,d=0,e=0;mj(a,4);var f=mj(a,3);qj(a);for(var g=mj(a,2),h=mj(a,1),k=mj(a,5),l=rj(a),m=rj(a),n=rj(a),p=rj(a),r=rj(a),u=rj(a),w=rj(a),v=rj(a),A=rj(a),z=rj(a),C=rj(a),y=[],B=[],D=0;D<f;D++)y.push(qj(a)),B.push(qj(a));if(0<f)for(D=f;8>D;D++)mj(a,2);for(D=0;D<f;D++)y[D]&&mj(a,88),B[D]&&rj(a);V(a);y=V(a);3==y&&mj(a,1);B=V(a);D=V(a);qj(a)&&(b+=V(a),c+=V(a),d+=V(a),e+=V(a));var F=V(a),J=V(a),L=V(a);if(qj(a))for(var H=0;H<=f;H++)V(a),V(a),V(a);else V(a),
1389
1390
  V(a),V(a);V(a);V(a);V(a);V(a);V(a);V(a);if(qj(a)&&qj(a))for(H=0;4>H;H++)for(var E=0;E<(3===H?2:6);E++)if(qj(a)){var K=Math.min(64,1<<4+(H<<1));1<H&&pj(a);for(var M=0;M<K;M++)pj(a)}else V(a);qj(a);qj(a);qj(a)&&(rj(a),V(a),V(a),qj(a));H=V(a);for(K=E=0;K<H;K++)if(M=!1,0!==K&&(M=qj(a)),M){K===H&&V(a);qj(a);V(a);for(var N=M=0;N<=E;N++){var Q=qj(a),U=!1;Q||(U=qj(a));(Q||U)&&M++}E=M}else{N=V(a);M=V(a);E=N+M;for(Q=0;Q<N;Q++)V(a),qj(a);for(N=0;N<M;N++)V(a),qj(a)}if(qj(a))for(H=V(a),E=0;E<H;E++){for(K=0;K<
1390
1391
  L+4;K++)mj(a,1);mj(a,1)}H=L=1;E=0;qj(a);qj(a);if(qj(a)){qj(a)&&(K=rj(a),M=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],N=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1],0<K&&16>=K?(L=M[K-1],H=N[K-1]):255===K&&(L=mj(a,16),H=mj(a,16)));qj(a)&&qj(a);qj(a)&&(mj(a,3),qj(a),qj(a)&&(rj(a),rj(a),rj(a)));qj(a)&&(V(a),V(a));qj(a);qj(a);qj(a);if(K=qj(a))V(a),V(a),V(a),V(a);if(qj(a)&&(mj(a,32),mj(a,32),qj(a)&&V(a),qj(a))){N=!1;K=qj(a);M=qj(a);if(K||M){if(N=qj(a))rj(a),mj(a,5),qj(a),mj(a,5);mj(a,4);mj(a,4);N&&
@@ -1395,7 +1396,7 @@ function wD(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(
1395
1396
  function CD(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}function DD(a,b){if(b+1<a.length&&CD(a,b)){var c=xD(a,b),d=4;c&&c.na&&(d=c.na);b+=d;return b===a.length||b+1<a.length&&CD(a,b)}return!1}
1396
1397
  var yD=[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],zD=[44100,48E3,32E3,22050,24E3,16E3,11025,12E3,8E3],AD=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],BD=[0,1,1,4];function ED(a){this.i=a;this.h=0;this.g=new Map}q=ED.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/mpeg"==a.toLowerCase().split(";")[0]?wd(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};
1397
1398
  q.transmux=function(a,b,c,d){for(var e=Hb(a),f=$i(e).length;f<e.length&&!DD(e,f);f++);var g;for(a=[];f<e.length;){var h=xD(e,f);if(!h)return Promise.reject(new T(2,3,3018,c?c.R()[0]:null));g||(g=h);f+h.na<=e.length&&a.push({data:e.subarray(f,f+h.na),size:h.na,duration:1152,yb:0,flags:{zb:0,qb:0,pb:0,kb:0,mb:2,Ab:0}});f+=h.na}if(!g)return Promise.reject(new T(2,3,3018,c?c.R()[0]:null));c=9E4*g.Fk/g.sampleRate*this.h;d={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:g.sampleRate,
1398
- duration:d,wb:[],Ba:new Uint8Array([]),Oa:new Uint8Array([]),Va:0,Wa:0,data:{Sb:this.h,baseMediaDecodeTime:c,ub:a},stream:b};g=new jx([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=px(g),this.g.set(b.id,d));b=Sx(g);this.h++;b=Nc(d,b);return Promise.resolve(b)};P("shaka.transmuxer.Mp3Transmuxer",ED);ED.prototype.transmux=ED.prototype.transmux;ED.prototype.getOriginalMimeType=ED.prototype.getOriginalMimeType;ED.prototype.convertCodecs=ED.prototype.convertCodecs;ED.prototype.isSupported=ED.prototype.isSupported;
1399
+ duration:d,wb:[],Ca:new Uint8Array([]),Qa:new Uint8Array([]),Va:0,Wa:0,data:{Sb:this.h,baseMediaDecodeTime:c,ub:a},stream:b};g=new jx([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=px(g),this.g.set(b.id,d));b=Sx(g);this.h++;b=Nc(d,b);return Promise.resolve(b)};P("shaka.transmuxer.Mp3Transmuxer",ED);ED.prototype.transmux=ED.prototype.transmux;ED.prototype.getOriginalMimeType=ED.prototype.getOriginalMimeType;ED.prototype.convertCodecs=ED.prototype.convertCodecs;ED.prototype.isSupported=ED.prototype.isSupported;
1399
1400
  ED.prototype.destroy=ED.prototype.destroy;oe("audio/mpeg",function(){return new ED("audio/mpeg")},ue);function FD(a){this.h=a;this.g=null}q=FD.prototype;q.destroy=function(){};q.isSupported=function(a){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var b=Me(a).split(","),c=Sc("audio",b);b=Sc("video",b);return!c||b||"mp3"!=De(c)?!1:wd(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};
1400
1401
  q.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new uj;a=Hb(a);a=this.g.parse(a);if("mp3"!=a.Wd().audio||"audio"!=e)return Promise.reject(new T(2,3,3018,c?c.R()[0]:null));c=new Uint8Array([]);e=t(a.rc());for(a=e.next();!a.done;a=e.next())if(a=a.value.data)for(b=0;b<a.length;)(d=xD(a,b))?(b+d.na<=a.length&&(c=Nc(c,a.subarray(b,b+d.na))),b+=d.na):b++;return Promise.resolve(c)};P("shaka.transmuxer.MpegTsTransmuxer",FD);FD.prototype.transmux=FD.prototype.transmux;
1401
1402
  FD.prototype.getOriginalMimeType=FD.prototype.getOriginalMimeType;FD.prototype.convertCodecs=FD.prototype.convertCodecs;FD.prototype.isSupported=FD.prototype.isSupported;FD.prototype.destroy=FD.prototype.destroy;oe("video/mp2t",function(){return new FD("video/mp2t")},te);/*
@@ -1417,20 +1418,20 @@ q.isSupported=function(a,b){if("video/mp2t"!=a.toLowerCase().split(";")[0])retur
1417
1418
  q.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?(b=Me(b).replace("mp4a.40.34","mp3").split(",").map(function(c){return pf(c,"audio/mp4")}).map(of).join(","),"audio"==a?'audio/mp4; codecs="'+b+'"':'video/mp4; codecs="'+b+'"'):b};q.getOriginalMimeType=function(){return this.l};
1418
1419
  q.transmux=function(a,b,c,d,e){var f=Hb(a);if("audio"==e&&!Ej(f)){for(var g=$i(f),h=g.length;h<f.length;h++)if(DD(f,h))return Promise.reject(new T(2,3,3018,c?c.R()[0]:null));for(h=g.length;h<f.length;h++)if(hD(f,h))return this.h||(this.h=new jD("audio/aac")),this.h.transmux(a,b,c,d,e);return Promise.reject(new T(2,3,3018,c?c.R()[0]:null))}this.j?this.j.clearData():this.j=new uj;var k=this.j.parse(f),l=[],m=k.Wd();try{var n=null;if("video"==e){switch(m.video){case "avc":var p=[],r=null,u=[],w=k.jd();
1419
1420
  if(!w.length)throw new T(2,3,3023,c?c.R()[0]:null);for(var v=0;v<w.length;v++){var A=w[v],z=A.nalus;u.push.apply(u,x(z));var C=rD(z);if(C){null==r&&(r=A.dts);var y=void 0;y=v+1<w.length?(w[v+1].dts||0)-(A.dts||0):1<w.length?(A.dts||0)-(w[v-1].dts||0):9E4*(c.endTime-c.startTime);p.push({data:C.data,size:C.data.byteLength,duration:y,yb:Math.round((A.pts||0)-(A.dts||0)),flags:{zb:0,qb:0,pb:0,kb:0,mb:C.fe?2:1,Ab:C.fe?0:1}})}}var B=pD(u);if(!B||null==r)throw new T(2,3,3018,c?c.R()[0]:null);b.height=B.height;
1420
- b.width=B.width;n={id:b.id,type:"video",codecs:"avc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,wb:[],Ba:new Uint8Array([]),Oa:B.Oa,Va:B.Va,Wa:B.Wa,data:{Sb:this.g,baseMediaDecodeTime:r,ub:p},stream:b};break;case "hvc":var D=[],F=null,J=[],L=k.jd();if(!L.length)throw new T(2,3,3023,c?c.R()[0]:null);for(var H=0;H<L.length;H++){var E=L[H],K=E.nalus;J.push.apply(J,x(K));for(var M=!1,N=[],Q=!1,U=t(K),R=U.next();!R.done;R=U.next()){var ca=R.value;switch(ca.type){case 1:case 0:var fa=
1421
+ b.width=B.width;n={id:b.id,type:"video",codecs:"avc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,wb:[],Ca:new Uint8Array([]),Qa:B.Qa,Va:B.Va,Wa:B.Wa,data:{Sb:this.g,baseMediaDecodeTime:r,ub:p},stream:b};break;case "hvc":var D=[],F=null,J=[],L=k.jd();if(!L.length)throw new T(2,3,3023,c?c.R()[0]:null);for(var H=0;H<L.length;H++){var E=L[H],K=E.nalus;J.push.apply(J,x(K));for(var M=!1,N=[],Q=!1,U=t(K),R=U.next();!R.done;R=U.next()){var ca=R.value;switch(ca.type){case 1:case 0:var fa=
1421
1422
  Q=!0;break;case 19:case 20:case 21:M=fa=Q=!0;break;case 32:fa=!0;break;case 33:fa=!0;break;case 34:fa=!0;break;case 35:Q=fa=!0;break;case 39:case 40:fa=!0;break;default:fa=!1}if(Q&&fa){var Xa=ca.fullData.byteLength,Aa=new Uint8Array(4);Aa[0]=Xa>>24&255;Aa[1]=Xa>>16&255;Aa[2]=Xa>>8&255;Aa[3]=Xa&255;N.push(Aa);N.push(ca.fullData)}}var Ra=N.length?{data:Nc.apply(Hc,x(N)),fe:M}:null;if(Ra){null==F&&null!=E.dts&&(F=E.dts);var bb=void 0;bb=H+1<L.length?(L[H+1].dts||0)-(E.dts||0):1<L.length?(E.dts||0)-(L[H-
1422
- 1].dts||0):9E4*(c.endTime-c.startTime);D.push({data:Ra.data,size:Ra.data.byteLength,duration:bb,yb:Math.round((E.pts||0)-(E.dts||0)),flags:{zb:0,qb:0,pb:0,kb:0,mb:Ra.fe?2:1,Ab:Ra.fe?0:1}})}}var Ya=sD(J);if(!Ya||null==F)throw new T(2,3,3018,c?c.R()[0]:null);b.height=Ya.height;b.width=Ya.width;n={id:b.id,type:"video",codecs:"hvc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,wb:[],Ba:new Uint8Array([]),Oa:Ya.Oa,Va:Ya.Va,Wa:Ya.Wa,data:{Sb:this.g,baseMediaDecodeTime:F,ub:D},stream:b}}n&&
1423
+ 1].dts||0):9E4*(c.endTime-c.startTime);D.push({data:Ra.data,size:Ra.data.byteLength,duration:bb,yb:Math.round((E.pts||0)-(E.dts||0)),flags:{zb:0,qb:0,pb:0,kb:0,mb:Ra.fe?2:1,Ab:Ra.fe?0:1}})}}var Ya=sD(J);if(!Ya||null==F)throw new T(2,3,3018,c?c.R()[0]:null);b.height=Ya.height;b.width=Ya.width;n={id:b.id,type:"video",codecs:"hvc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,wb:[],Ca:new Uint8Array([]),Qa:Ya.Qa,Va:Ya.Va,Wa:Ya.Wa,data:{Sb:this.g,baseMediaDecodeTime:F,ub:D},stream:b}}n&&
1423
1424
  (l.push(n),n=null)}if("audio"==e){switch(m.audio){case "aac":for(var mb=[],db,Za=null,wc=t(k.rc()),Ta=wc.next();!Ta.done;Ta=wc.next()){var tb=Ta.value,Yb=tb.data;if(Yb){var Xc=0;db=gD(Yb,Xc);if(!db)throw new T(2,3,3018,c?c.R()[0]:null);b.audioSamplingRate=db.sampleRate;b.channelsCount=db.channelCount;null==Za&&null!==tb.pts&&(Za=tb.pts);for(;Xc<Yb.length;){var Ee=fD(Yb,Xc);if(Ee){var Fe=Ee.cf+Ee.na;Xc+Fe<=Yb.length&&mb.push({data:Yb.subarray(Xc+Ee.cf,Xc+Fe),size:Ee.na,duration:1024,yb:0,flags:{zb:0,
1424
1425
  qb:0,pb:0,kb:0,mb:2,Ab:0}});Xc+=Fe}else Xc++}}}if(!db||null==Za){if(!k.jd().length)throw new T(2,3,3018,c?c.R()[0]:null);Za=9E4*c.startTime;var Ge=Sc("audio",b.codecs.split(","));if(!Ge||!b.channelsCount||!b.audioSamplingRate)throw new T(2,3,3018,c?c.R()[0]:null);db={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,gb:Ge};var ae=iD(Ge,b.channelsCount);if(!ae)throw new T(2,3,3018,c?c.R()[0]:null);for(var yj=Za+9E4*(c.endTime-c.startTime),be=Za;be<yj;)mb.push({data:ae,size:ae.byteLength,
1425
- duration:1024,yb:0,flags:{zb:0,qb:0,pb:0,kb:0,mb:2,Ab:0}}),be+=1024/db.sampleRate*9E4}var zj=db.sampleRate,Aj=Za/9E4*zj;n={id:b.id,type:"audio",codecs:db.gb,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:zj,duration:d,wb:[],Ba:new Uint8Array([]),Oa:new Uint8Array([]),Va:0,Wa:0,data:{Sb:this.g,baseMediaDecodeTime:Aj,ub:mb},stream:b};break;case "ac3":for(var mh=[],He=0,xc=new Uint8Array([]),jk=null,qx=t(k.rc()),co=qx.next();!co.done;co=qx.next()){var eo=co.value,fo=eo.data;null==jk&&null!==eo.pts&&
1426
- (jk=eo.pts);for(var Rf=0;Rf<fo.length;){var ee=kD(fo,Rf);ee?(b.audioSamplingRate=ee.sampleRate,b.channelsCount=ee.channelCount,He=ee.sampleRate,xc=ee.Ba,mh.push({data:fo.subarray(Rf,Rf+ee.na),size:ee.na,duration:1536,yb:0,flags:{zb:0,qb:0,pb:0,kb:0,mb:2,Ab:0}}),Rf+=ee.na):Rf++}}if(0==He||0==xc.byteLength||null==jk)throw new T(2,3,3018,c?c.R()[0]:null);var mH=jk/9E4*He;n={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:He,duration:d,wb:[],Ba:xc,Oa:new Uint8Array([]),
1427
- Va:0,Wa:0,data:{Sb:this.g,baseMediaDecodeTime:mH,ub:mh},stream:b};break;case "ec3":for(var rx=[],kk=0,go=new Uint8Array([]),lk=null,sx=t(k.rc()),ho=sx.next();!ho.done;ho=sx.next()){var io=ho.value,jo=io.data;null==lk&&null!==io.pts&&(lk=io.pts);for(var Sf=0;Sf<jo.length;){var fe=nD(jo,Sf);fe?(b.audioSamplingRate=fe.sampleRate,b.channelsCount=fe.channelCount,kk=fe.sampleRate,go=fe.Ba,rx.push({data:jo.subarray(Sf,Sf+fe.na),size:fe.na,duration:1536,yb:0,flags:{zb:0,qb:0,pb:0,kb:0,mb:2,Ab:0}}),Sf+=fe.na):
1428
- Sf++}}if(0==kk||0==go.byteLength||null==lk)throw new T(2,3,3018,c?c.R()[0]:null);var nH=lk/9E4*kk;n={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:kk,duration:d,wb:[],Ba:go,Oa:new Uint8Array([]),Va:0,Wa:0,data:{Sb:this.g,baseMediaDecodeTime:nH,ub:rx},stream:b};break;case "mp3":for(var tx=[],mk,nk=null,ux=t(k.rc()),ko=ux.next();!ko.done;ko=ux.next()){var lo=ko.value,Ah=lo.data;if(Ah){null==nk&&null!==lo.pts&&(nk=lo.pts);for(var Ke=0;Ke<Ah.length;){var Tf=xD(Ah,
1429
- Ke);Tf?(mk||(mk=Tf),Ke+Tf.na<=Ah.length&&tx.push({data:Ah.subarray(Ke,Ke+Tf.na),size:Tf.na,duration:1152,yb:0,flags:{zb:0,qb:0,pb:0,kb:0,mb:2,Ab:0}}),Ke+=Tf.na):Ke++}}}if(!mk||null==nk)throw new T(2,3,3018,c?c.R()[0]:null);var vx=mk.sampleRate,oH=nk/9E4*vx;n={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:vx,duration:d,wb:[],Ba:new Uint8Array([]),Oa:new Uint8Array([]),Va:0,Wa:0,data:{Sb:this.g,baseMediaDecodeTime:oH,ub:tx},stream:b};break;case "opus":var wx=
1426
+ duration:1024,yb:0,flags:{zb:0,qb:0,pb:0,kb:0,mb:2,Ab:0}}),be+=1024/db.sampleRate*9E4}var zj=db.sampleRate,Aj=Za/9E4*zj;n={id:b.id,type:"audio",codecs:db.gb,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:zj,duration:d,wb:[],Ca:new Uint8Array([]),Qa:new Uint8Array([]),Va:0,Wa:0,data:{Sb:this.g,baseMediaDecodeTime:Aj,ub:mb},stream:b};break;case "ac3":for(var mh=[],He=0,xc=new Uint8Array([]),jk=null,rx=t(k.rc()),co=rx.next();!co.done;co=rx.next()){var eo=co.value,fo=eo.data;null==jk&&null!==eo.pts&&
1427
+ (jk=eo.pts);for(var Rf=0;Rf<fo.length;){var ee=kD(fo,Rf);ee?(b.audioSamplingRate=ee.sampleRate,b.channelsCount=ee.channelCount,He=ee.sampleRate,xc=ee.Ca,mh.push({data:fo.subarray(Rf,Rf+ee.na),size:ee.na,duration:1536,yb:0,flags:{zb:0,qb:0,pb:0,kb:0,mb:2,Ab:0}}),Rf+=ee.na):Rf++}}if(0==He||0==xc.byteLength||null==jk)throw new T(2,3,3018,c?c.R()[0]:null);var mH=jk/9E4*He;n={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:He,duration:d,wb:[],Ca:xc,Qa:new Uint8Array([]),
1428
+ Va:0,Wa:0,data:{Sb:this.g,baseMediaDecodeTime:mH,ub:mh},stream:b};break;case "ec3":for(var sx=[],kk=0,go=new Uint8Array([]),lk=null,tx=t(k.rc()),ho=tx.next();!ho.done;ho=tx.next()){var io=ho.value,jo=io.data;null==lk&&null!==io.pts&&(lk=io.pts);for(var Sf=0;Sf<jo.length;){var fe=nD(jo,Sf);fe?(b.audioSamplingRate=fe.sampleRate,b.channelsCount=fe.channelCount,kk=fe.sampleRate,go=fe.Ca,sx.push({data:jo.subarray(Sf,Sf+fe.na),size:fe.na,duration:1536,yb:0,flags:{zb:0,qb:0,pb:0,kb:0,mb:2,Ab:0}}),Sf+=fe.na):
1429
+ Sf++}}if(0==kk||0==go.byteLength||null==lk)throw new T(2,3,3018,c?c.R()[0]:null);var nH=lk/9E4*kk;n={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:kk,duration:d,wb:[],Ca:go,Qa:new Uint8Array([]),Va:0,Wa:0,data:{Sb:this.g,baseMediaDecodeTime:nH,ub:sx},stream:b};break;case "mp3":for(var ux=[],mk,nk=null,vx=t(k.rc()),ko=vx.next();!ko.done;ko=vx.next()){var lo=ko.value,Ah=lo.data;if(Ah){null==nk&&null!==lo.pts&&(nk=lo.pts);for(var Ke=0;Ke<Ah.length;){var Tf=xD(Ah,
1430
+ Ke);Tf?(mk||(mk=Tf),Ke+Tf.na<=Ah.length&&ux.push({data:Ah.subarray(Ke,Ke+Tf.na),size:Tf.na,duration:1152,yb:0,flags:{zb:0,qb:0,pb:0,kb:0,mb:2,Ab:0}}),Ke+=Tf.na):Ke++}}}if(!mk||null==nk)throw new T(2,3,3018,c?c.R()[0]:null);var wx=mk.sampleRate,oH=nk/9E4*wx;n={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:wx,duration:d,wb:[],Ca:new Uint8Array([]),Qa:new Uint8Array([]),Va:0,Wa:0,data:{Sb:this.g,baseMediaDecodeTime:oH,ub:ux},stream:b};break;case "opus":var xx=
1430
1431
  [],ok=null,id=k.H;if(!id)throw new T(2,3,3018,c?c.R()[0]:null);var Kb=[];switch(id.bj){case 1:case 2:Kb=[0];break;case 0:Kb=[255,1,1,0,1];break;case 128:Kb=[255,2,0,0,1];break;case 3:Kb=[1,2,1,0,2,1];break;case 4:Kb=[1,2,2,0,1,2,3];break;case 5:Kb=[1,3,2,0,4,1,2,3];break;case 6:Kb=[1,4,2,0,4,1,2,3,5];break;case 7:Kb=[1,4,2,0,4,1,2,3,5,6];break;case 8:Kb=[1,5,3,0,6,1,2,3,4,5,7];break;case 130:Kb=[1,1,2,0,1];break;case 131:Kb=[1,1,3,0,1,2];break;case 132:Kb=[1,1,4,0,1,2,3];break;case 133:Kb=[1,1,5,
1431
- 0,1,2,3,4];break;case 134:Kb=[1,1,6,0,1,2,3,4,5];break;case 135:Kb=[1,1,7,0,1,2,3,4,5,6];break;case 136:Kb=[1,1,8,0,1,2,3,4,5,6,7]}var xx=new Uint8Array([0,id.channelCount,0,0,id.sampleRate>>>24&255,id.sampleRate>>>17&255,id.sampleRate>>>8&255,id.sampleRate>>>0&255,0,0].concat(x(Kb)));for(var yx=id.sampleRate,zx=t(k.rc()),mo=zx.next();!mo.done;mo=zx.next()){var no=mo.value,Uf=no.data;null==ok&&null!==no.pts&&(ok=no.pts);for(var Bh=0;Bh<Uf.length;){for(var pH=0!==(Uf[Bh+1]&16),qH=0!==(Uf[Bh+1]&8),
1432
- Md=Bh+2,pk=0;255===Uf[Md];)pk+=255,Md+=1;pk+=Uf[Md];Md+=1;Md+=pH?2:0;Md+=qH?2:0;var Ax=Uf.slice(Md,Md+pk);wx.push({data:Ax,size:Ax.byteLength,duration:960,yb:0,flags:{zb:0,qb:0,pb:0,kb:0,mb:2,Ab:0}});Bh=Md+pk}}if(0==xx.byteLength||null==ok)throw new T(2,3,3018,c?c.R()[0]:null);b.audioSamplingRate=id.sampleRate;b.channelsCount=id.channelCount;var rH=ok/9E4*yx;n={id:b.id,type:"audio",codecs:"opus",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:yx,duration:d,wb:[],Ba:xx,Oa:new Uint8Array([]),Va:0,
1433
- Wa:0,data:{Sb:this.g,baseMediaDecodeTime:rH,ub:wx},stream:b}}n&&(l.push(n),n=null)}}catch(oo){return oo&&3023==oo.code?Promise.resolve(new Uint8Array([])):Promise.reject(oo)}if(!l.length)return Promise.reject(new T(2,3,3018,c?c.R()[0]:null));var Bx=new jx(l);if(this.i.has(b.id))var po=this.i.get(b.id);else po=px(Bx),this.i.set(b.id,po);var sH=Sx(Bx);this.g++;var tH=Nc(po,sH);return Promise.resolve(tH)};P("shaka.transmuxer.TsTransmuxer",KD);KD.prototype.transmux=KD.prototype.transmux;
1432
+ 0,1,2,3,4];break;case 134:Kb=[1,1,6,0,1,2,3,4,5];break;case 135:Kb=[1,1,7,0,1,2,3,4,5,6];break;case 136:Kb=[1,1,8,0,1,2,3,4,5,6,7]}var yx=new Uint8Array([0,id.channelCount,0,0,id.sampleRate>>>24&255,id.sampleRate>>>17&255,id.sampleRate>>>8&255,id.sampleRate>>>0&255,0,0].concat(x(Kb)));for(var zx=id.sampleRate,Ax=t(k.rc()),mo=Ax.next();!mo.done;mo=Ax.next()){var no=mo.value,Uf=no.data;null==ok&&null!==no.pts&&(ok=no.pts);for(var Bh=0;Bh<Uf.length;){for(var pH=0!==(Uf[Bh+1]&16),qH=0!==(Uf[Bh+1]&8),
1433
+ Md=Bh+2,pk=0;255===Uf[Md];)pk+=255,Md+=1;pk+=Uf[Md];Md+=1;Md+=pH?2:0;Md+=qH?2:0;var Bx=Uf.slice(Md,Md+pk);xx.push({data:Bx,size:Bx.byteLength,duration:960,yb:0,flags:{zb:0,qb:0,pb:0,kb:0,mb:2,Ab:0}});Bh=Md+pk}}if(0==yx.byteLength||null==ok)throw new T(2,3,3018,c?c.R()[0]:null);b.audioSamplingRate=id.sampleRate;b.channelsCount=id.channelCount;var rH=ok/9E4*zx;n={id:b.id,type:"audio",codecs:"opus",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:zx,duration:d,wb:[],Ca:yx,Qa:new Uint8Array([]),Va:0,
1434
+ Wa:0,data:{Sb:this.g,baseMediaDecodeTime:rH,ub:xx},stream:b}}n&&(l.push(n),n=null)}}catch(oo){return oo&&3023==oo.code?Promise.resolve(new Uint8Array([])):Promise.reject(oo)}if(!l.length)return Promise.reject(new T(2,3,3018,c?c.R()[0]:null));var Cx=new jx(l);if(this.i.has(b.id))var po=this.i.get(b.id);else po=px(Cx),this.i.set(b.id,po);var sH=Sx(Cx);this.g++;var tH=Nc(po,sH);return Promise.resolve(tH)};P("shaka.transmuxer.TsTransmuxer",KD);KD.prototype.transmux=KD.prototype.transmux;
1434
1435
  KD.prototype.getOriginalMimeType=KD.prototype.getOriginalMimeType;KD.prototype.convertCodecs=KD.prototype.convertCodecs;KD.prototype.isSupported=KD.prototype.isSupported;KD.prototype.destroy=KD.prototype.destroy;var LD=["aac","ac-3","ec-3","mp3","opus"],MD=["avc","hevc"];oe("video/mp2t",function(){return new KD("video/mp2t")},se);/*
1435
1436
  @license
1436
1437
  EME Encryption Scheme Polyfill
@@ -1498,10 +1499,10 @@ sw:{D:"Kiswahili",F:"Swahili"},"sw-KE":{D:"Kiswahili",F:"Swahili (Kenya)"},ta:{D
1498
1499
  F:"Thai"},"th-TH":{D:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",F:"Thai (Thailand)"},tl:{D:"Filipino",F:"Filipino"},"tl-PH":{D:"Filipino",F:"Filipino"},tlh:{D:"tlhIngan-Hol",F:"Klingon"},tr:{D:"T\u00fcrk\u00e7e",F:"Turkish"},"tr-TR":{D:"T\u00fcrk\u00e7e",F:"Turkish"},"tt-RU":{D:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",F:"Tatar"},uk:{D:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",F:"Ukrainian"},"uk-UA":{D:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",
1499
1500
  F:"Ukrainian"},ur:{D:"\u0627\u0631\u062f\u0648",F:"Urdu"},"ur-PK":{D:"\u0627\u0631\u062f\u0648",F:"Urdu"},uz:{D:"O'zbek",F:"Uzbek"},"uz-UZ":{D:"O'zbek",F:"Uzbek"},vi:{D:"Ti\u1ebfng Vi\u1ec7t",F:"Vietnamese"},"vi-VN":{D:"Ti\u1ebfng Vi\u1ec7t",F:"Vietnamese"},"xh-ZA":{D:"isiXhosa",F:"Xhosa"},yi:{D:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",F:"Yiddish"},"yi-DE":{D:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)",F:"Yiddish (German)"},zh:{D:"\u4e2d\u6587",F:"Chinese"},"zh-HANS":{D:"\u4e2d\u6587\u7b80\u4f53",
1500
1501
  F:"Chinese Simplified"},"zh-HANT":{D:"\u4e2d\u6587\u7e41\u9ad4",F:"Chinese Traditional"},"zh-CN":{D:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",F:"Chinese Simplified (China)"},"zh-HK":{D:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",F:"Chinese Traditional (Hong Kong)"},"zh-SG":{D:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",F:"Chinese Simplified (Singapore)"},"zh-TW":{D:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",F:"Chinese Traditional (Taiwan)"},"zu-ZA":{D:"isiZulu",F:"Zulu"}},gE=t(Object.keys(fE)),hE=gE.next();!hE.done;hE=
1501
- gE.next()){var iE=hE.value;fE[iE.toLowerCase()]=fE[iE]};function jE(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new rd;this.localization=this.controls.za;this.player=this.controls.hd();this.video=this.controls.vc();this.adManager=this.player.Ve();this.ad=b.getAd();this.eventManager.o(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null})}
1502
+ gE.next()){var iE=hE.value;fE[iE.toLowerCase()]=fE[iE]};function jE(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new rd;this.localization=this.controls.xa;this.player=this.controls.hd();this.video=this.controls.vc();this.adManager=this.player.Ve();this.ad=b.getAd();this.eventManager.o(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null})}
1502
1503
  jE.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",jE);jE.prototype.release=jE.prototype.release;function kE(a){return lE(a,"shaka-back-to-overflow-button")}function lE(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function mE(a){a&&(a=lE(a,"shaka-chosen-item"))&&a.parentElement.focus()}function nE(){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 oE(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
1503
1504
  function pE(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 qE(a,b){jE.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 Vb(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=pE(e-d,!1)+" / "+pE(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=
1504
- ""))});this.eventManager.o(this.localization,"locale-updated",function(){});this.eventManager.o(this.localization,"locale-changed",function(){});this.eventManager.o(this.adManager,"ad-started",function(){c.g.Qa();c.g.wa(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.Qa(),this.g.wa(.5))}pa(qE,jE);qE.prototype.release=function(){this.g.stop();this.g=null;jE.prototype.release.call(this)};P("shaka.ui.AdCounter",qE);function rE(a,b){jE.call(this,a,b);var c=this;this.g=W("div");this.g.classList.add("shaka-ad-position");oE(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.o(this.localization,"locale-updated",function(){c.ad&&sE(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&sE(c)});this.eventManager.o(this.adManager,"ad-started",function(){sE(c)});this.eventManager.o(this.adManager,
1505
+ ""))});this.eventManager.o(this.localization,"locale-updated",function(){});this.eventManager.o(this.localization,"locale-changed",function(){});this.eventManager.o(this.adManager,"ad-started",function(){c.g.Sa();c.g.wa(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.Sa(),this.g.wa(.5))}pa(qE,jE);qE.prototype.release=function(){this.g.stop();this.g=null;jE.prototype.release.call(this)};P("shaka.ui.AdCounter",qE);function rE(a,b){jE.call(this,a,b);var c=this;this.g=W("div");this.g.classList.add("shaka-ad-position");oE(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.o(this.localization,"locale-updated",function(){c.ad&&sE(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&sE(c)});this.eventManager.o(this.adManager,"ad-started",function(){sE(c)});this.eventManager.o(this.adManager,
1505
1506
  "ad-stopped",function(){c.h.textContent="";oE(c.g,!1)});this.ad&&sE(this)}pa(rE,jE);function sE(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));oE(a.g,!0)}}P("shaka.ui.AdPosition",rE);function tE(a,b){jE.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.o(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";oE(c.g,!0)}else oE(c.g,
1506
1507
  !1)});this.eventManager.o(window,"click",function(){oE(c.g,!1)});uE(this)}pa(tE,jE);tE.prototype.release=function(){this.h=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];jE.prototype.release.call(this)};function vE(a,b){wE.set(a,b)}function uE(a){for(var b=t(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=wE.get(c);d?a.i.push(d.create(a.g,a.controls)):Va("Unrecognized context menu element:",c)}}P("shaka.ui.ContextMenu",tE);
1507
1508
  tE.registerElement=vE;var wE=new Map;function xE(a,b){jE.call(this,a,b);var c=this;this.button=pn();this.parent.appendChild(this.button);this.eventManager.o(this.localization,"locale-updated",function(){c.g()});this.eventManager.o(this.localization,"locale-changed",function(){c.g()});this.eventManager.o(this.video,"play",function(){c.g();c.h()});this.eventManager.o(this.video,"pause",function(){c.g();c.h()});this.eventManager.o(this.video,"seeking",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-paused",function(){c.g();
@@ -1515,15 +1516,15 @@ q.setValue=function(a){this.h||(this.bar.value=a)};function FE(a,b){b.preventDef
1515
1516
  EE.prototype.onChange=EE.prototype.onChange;EE.prototype.onChangeStart=EE.prototype.onChangeStart;EE.prototype.setRange=EE.prototype.setRange;function GE(a,b){EE.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.H=W("div");this.H.classList.add("shaka-ad-markers");this.container.insertBefore(this.H,this.container.childNodes[0]);this.J=this.controls.g;this.u=new Vb(function(){var d=c.getValue();c.player.U()||d==c.video.duration&&(d-=.001);c.video.currentTime=d});this.C=new Vb(function(){HE(c)});this.L=!1;this.i=W("div");this.i.id="shaka-player-ui-thumbnail-container";
1516
1517
  this.g=W("img");this.g.id="shaka-player-ui-thumbnail-image";this.g.draggable=!1;this.A=W("div");this.A.id="shaka-player-ui-thumbnail-time";this.i.appendChild(this.g);this.i.appendChild(this.A);this.container.appendChild(this.i);this.j=W("div");this.j.id="shaka-player-ui-time-container";this.container.appendChild(this.j);this.l=this.m=null;this.K=!1;this.s=new Vb(function(){IE(c)});this.G=[];this.eventManager.o(this.localization,"locale-updated",function(){return JE(c)});this.eventManager.o(this.localization,
1517
1518
  "locale-changed",function(){return JE(c)});this.eventManager.o(this.adManager,"ad-started",function(){KE(c)||oE(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){KE(c)&&oE(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.G=d.cuepoints;LE(c)});this.eventManager.o(this.player,"unloading",function(){c.G=[];LE(c);c.l&&(c.l.abort(),c.l=null);c.m=null;IE(c);ME(c)});this.eventManager.o(this.bar,"mousemove",function(d){var e=c.bar.getBoundingClientRect(),
1518
- f=parseFloat(c.bar.min);d=d.clientX-e.left;e=Math.round(f+(parseFloat(c.bar.max)-f)/e.width*d);c.player.We().length?(ME(c),NE(c,d,e)):(IE(c),f=c.j.clientWidth,c.j.style.width="auto",c.j.style.height="20px",c.j.style.top="-30px",c.j.style.left=Math.min(c.bar.offsetWidth-f,Math.max(0,d-f/2))+"px",c.j.style.visibility="visible",c.player.U()?(d=c.player.Ma().end-e,c.j.textContent=1>d?c.localization.resolve("LIVE"):"-"+OE(d)):c.j.textContent=OE(e))});this.eventManager.o(this.container,"mouseleave",function(){ME(c);
1519
+ f=parseFloat(c.bar.min);d=d.clientX-e.left;e=Math.round(f+(parseFloat(c.bar.max)-f)/e.width*d);c.player.We().length?(ME(c),NE(c,d,e)):(IE(c),f=c.j.clientWidth,c.j.style.width="auto",c.j.style.height="20px",c.j.style.top="-30px",c.j.style.left=Math.min(c.bar.offsetWidth-f,Math.max(0,d-f/2))+"px",c.j.style.visibility="visible",c.player.U()?(d=c.player.Oa().end-e,c.j.textContent=1>d?c.localization.resolve("LIVE"):"-"+OE(d)):c.j.textContent=OE(e))});this.eventManager.o(this.container,"mouseleave",function(){ME(c);
1519
1520
  c.s.stop();c.s.X(.25)});this.setValue(this.video.currentTime);this.update();JE(this);this.ad&&oE(this.container,!1)}pa(GE,EE);q=GE.prototype;q.release=function(){this.u&&(this.u.stop(),this.u=null,this.C.stop(),this.C=null);EE.prototype.release.call(this)};q.onChangeStart=function(){this.L=!this.video.paused;this.controls.sh(!0);this.video.pause();this.s.stop();this.K=!0};
1520
- q.onChange=function(){if(this.video.duration)if(this.update(),this.u.X(.125),this.player.We().length){var a=parseFloat(this.bar.min),b=parseFloat(this.bar.max),c=this.bar.getBoundingClientRect(),d=Math.round(this.getValue());NE(this,(d-a)/((b-a)/c.width),d)}else IE(this)};q.onChangeEnd=function(){this.u.Qa();this.controls.sh(!1);this.L&&this.video.play();this.K&&(this.K=!1,this.s.stop(),this.s.X(.25))};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
1521
- q.update=function(){var a=this.J.seekBarColors,b=this.getValue(),c=this.video.buffered.length,d=c?this.video.buffered.start(0):0,e=c?this.video.buffered.end(c-1):0,f=this.player.Ma(),g=f.end-f.start;this.setRange(f.start,f.end);KE(this)?(oE(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.J.showUnbufferedStart?
1521
+ q.onChange=function(){if(this.video.duration)if(this.update(),this.u.X(.125),this.player.We().length){var a=parseFloat(this.bar.min),b=parseFloat(this.bar.max),c=this.bar.getBoundingClientRect(),d=Math.round(this.getValue());NE(this,(d-a)/((b-a)/c.width),d)}else IE(this)};q.onChangeEnd=function(){this.u.Sa();this.controls.sh(!1);this.L&&this.video.play();this.K&&(this.K=!1,this.s.stop(),this.s.X(.25))};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
1522
+ q.update=function(){var a=this.J.seekBarColors,b=this.getValue(),c=this.video.buffered.length,d=c?this.video.buffered.start(0):0,e=c?this.video.buffered.end(c-1):0,f=this.player.Oa(),g=f.end-f.start;this.setRange(f.start,f.end);KE(this)?(oE(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.J.showUnbufferedStart?
1522
1523
  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()+")")):oE(this.container,!1)};
1523
- function HE(a){if(a.G.length){for(var b=a.player.Ma(),c=b.end-b.start,d=["to right"],e=[],f=a.J.seekBarColors.adBreaks,g=!1,h=t(a.G),k=h.next();!k.done;k=h.next())if(k=k.value,-1==k.start&&!k.end)g=!0;else if(!k.end&&k.start>=b.start||"number"==typeof k.end&&k.end>b.start){var l=(Math.max(k.start,b.start)-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}e=e.sort(function(n,p){return n.start-p.start});b=t(e);for(k=b.next();!k.done;k=b.next())c=k.value,d.push("transparent "+
1524
- 100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.H.style.background="linear-gradient("+d.join(",")+")"}else a.H.style.background="transparent",a.C.stop()}function LE(a){function b(){var c=a.player.Ma();c=c.end-c.start;a.player.U()&&5<c&&a.C.wa(.25)}HE(a);a.player.ei()?b():a.eventManager.ia(a.player,"loaded",b)}
1525
- function KE(a){var b=a.player.Ma();b=b.end-b.start;return a.player.U()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function JE(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}
1526
- function NE(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,w,v,A,z,C,y;O(function(B){switch(B.g){case 1:d=PE(a);if(!d)return IE(a),B.return();0>c&&(c=0);e=a.player.Ma();f=Math.max(Math.ceil(e.start),Math.min(Math.floor(e.end),c));return G(B,a.player.Mg(d.id,f),2);case 2:g=B.h;if(!g||!g.uris.length)return IE(a),B.return();a.player.U()?(h=e.end-c,a.A.textContent=1>h?a.localization.resolve("LIVE"):"-"+OE(h)):a.A.textContent=OE(c);k=-10;l=a.i.clientWidth;m=Math.floor(9*l/16);a.i.style.height=m+"px";a.i.style.top=
1524
+ function HE(a){if(a.G.length){for(var b=a.player.Oa(),c=b.end-b.start,d=["to right"],e=[],f=a.J.seekBarColors.adBreaks,g=!1,h=t(a.G),k=h.next();!k.done;k=h.next())if(k=k.value,-1==k.start&&!k.end)g=!0;else if(!k.end&&k.start>=b.start||"number"==typeof k.end&&k.end>b.start){var l=(Math.max(k.start,b.start)-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}e=e.sort(function(n,p){return n.start-p.start});b=t(e);for(k=b.next();!k.done;k=b.next())c=k.value,d.push("transparent "+
1525
+ 100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.H.style.background="linear-gradient("+d.join(",")+")"}else a.H.style.background="transparent",a.C.stop()}function LE(a){function b(){var c=a.player.Oa();c=c.end-c.start;a.player.U()&&5<c&&a.C.wa(.25)}HE(a);a.player.ei()?b():a.eventManager.ia(a.player,"loaded",b)}
1526
+ function KE(a){var b=a.player.Oa();b=b.end-b.start;return a.player.U()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function JE(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}
1527
+ function NE(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,w,v,A,z,C,y;O(function(B){switch(B.g){case 1:d=PE(a);if(!d)return IE(a),B.return();0>c&&(c=0);e=a.player.Oa();f=Math.max(Math.ceil(e.start),Math.min(Math.floor(e.end),c));return G(B,a.player.Mg(d.id,f),2);case 2:g=B.h;if(!g||!g.uris.length)return IE(a),B.return();a.player.U()?(h=e.end-c,a.A.textContent=1>h?a.localization.resolve("LIVE"):"-"+OE(h)):a.A.textContent=OE(c);k=-10;l=a.i.clientWidth;m=Math.floor(9*l/16);a.i.style.height=m+"px";a.i.style.top=
1527
1528
  -(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.m&&p===a.m.uris[0].split("#xywh=")[0]&&g.segment.Ib()==a.m.segment.Ib()&&g.segment.Fb()==a.m.segment.Fb()){B.B(3);break}a.m=g;a.l&&(a.l.abort(),a.l=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=Jg;u=Ll(g.segment.R(),g.segment.Ib(),g.segment.Fb(),a.player.getConfiguration().streaming.retryParameters);
1528
1529
  a.l=a.player.Gb().request(r,u,{type:1});return G(B,a.l.promise,7);case 7:w=B.h;a.l=null;"mjpg"==d.codecs?(v=(new Sg).box("mdat",bh(function(D){p=URL.createObjectURL(new Blob([D],{type:"image/jpeg"}))})),v.parse(w.data,!1)):(A=d.mimeType||"image/jpeg",z=new Blob([w.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;
1529
1530
  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/
@@ -1531,7 +1532,7 @@ g.width),a.i.style.height=m+"px",a.i.style.top=-(m-k)+"px",I(B)}})}
1531
1532
  function PE(a){var b=a.player.We();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={Pf:c.Pf,Nf:c.Nf},e=d.next())if(c.Pf=e.value,c.Nf=a.player.getStats().estimatedBandwidth,(e=b.filter(function(f){return function(g){return g.mimeType.toLowerCase()===f.Pf&&g.bandwidth<.01*f.Nf}}(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&&
1532
1533
  "mjpg"==f.codecs})||b[0]}function IE(a){a.i.style.visibility="hidden";a.A.textContent=""}function ME(a){a.j.style.visibility="hidden"}function OE(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",GE);function QE(){}QE.prototype.create=function(a,b){return new GE(a,b)};GE.Factory=QE;function RE(a,b){jE.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");oE(this.h,!1);this.j.appendChild(this.h);this.g=pn();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;oE(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);SE(this);this.i=new Vb(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1533
1534
  d:(c.i.stop(),oE(c.h,!1))});this.eventManager.o(this.localization,"locale-updated",function(){SE(c)});this.eventManager.o(this.localization,"locale-changed",function(){SE(c)});this.eventManager.o(this.adManager,"ad-started",function(){TE(c)});this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),oE(c.h,!1))});this.eventManager.o(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;oE(c.g,!1);oE(c.h,!1)});this.eventManager.o(this.g,
1534
- "click",function(){c.ad.skip()});this.ad&&TE(this)}pa(RE,jE);RE.prototype.release=function(){this.i.stop();this.i=null;jE.prototype.release.call(this)};function SE(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function TE(a){a.ad.isSkippable()&&(oE(a.g,!0),oE(a.h,!0),a.h.textContent="",a.i.Qa(),a.i.wa(.5))}P("shaka.ui.SkipAdButton",RE);/*
1535
+ "click",function(){c.ad.skip()});this.ad&&TE(this)}pa(RE,jE);RE.prototype.release=function(){this.i.stop();this.i=null;jE.prototype.release.call(this)};function SE(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function TE(a){a.ad.isSkippable()&&(oE(a.g,!0),oE(a.h,!0),a.h.textContent="",a.i.Sa(),a.i.wa(.5))}P("shaka.ui.SkipAdButton",RE);/*
1535
1536
  @license
1536
1537
  glMatrix: https://github.com/toji/gl-matrix/
1537
1538
  Copyright 2015-2021, Brandon Jones, Colin MacKenzie IV
@@ -1541,9 +1542,9 @@ function UE(){var a=new Float32Array(16);a[0]=1;a[5]=1;a[10]=1;a[15]=1;return a}
1541
1542
  function WE(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],w=b[12],v=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*w;a[1]=z*e+C*k+y*p+B*v;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*w;a[5]=z*e+C*k+y*p+B*v;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*w;a[9]=z*e+C*k+y*p+B*v;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];
1542
1543
  y=c[14];B=c[15];a[12]=z*d+C*h+y*n+B*w;a[13]=z*e+C*k+y*p+B*v;a[14]=z*f+C*l+y*r+B*A;a[15]=z*g+C*m+y*u+B*b}
1543
1544
  function XE(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-
1544
- 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 YE(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 ZE(){var a=new Float32Array(4);a[3]=1;return a}function $E(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 aF(a,b,c,d,e){this.m=a;this.ra=b;this.l=c;this.g=d;this.s=new rd;this.L=ZE();this.h=ZE();this.ka=this.qa=this.ea=this.j=null;this.G=UE();this.I=UE();this.M=UE();this.Z=UE();this.A=null;this.O=!1;this.J=this.u=null;this.Fa=this.sa=0;this.aa=this.P=this.S=this.K=null;this.H=0;this.i=75;this.W=0;this.C=e;bF(this)}aF.prototype.release=function(){this.s&&(this.s.release(),this.s=null);this.u&&(this.u.stop(),this.u=null);this.J&&(this.J.stop(),this.J=null)};
1545
+ 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 YE(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 ZE(){var a=new Float32Array(4);a[3]=1;return a}function $E(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 aF(a,b,c,d,e){this.m=a;this.ra=b;this.l=c;this.g=d;this.s=new rd;this.L=ZE();this.h=ZE();this.ka=this.qa=this.ea=this.j=null;this.G=UE();this.I=UE();this.M=UE();this.Z=UE();this.A=null;this.O=!1;this.J=this.u=null;this.Ga=this.sa=0;this.aa=this.P=this.S=this.K=null;this.H=0;this.i=75;this.W=0;this.C=e;bF(this)}aF.prototype.release=function(){this.s&&(this.s.release(),this.s=null);this.u&&(this.u.stop(),this.u=null);this.J&&(this.J.stop(),this.J=null)};
1545
1546
  aF.prototype.yd=function(){(this.O=!this.O)||this.g.viewport(0,0,this.l.width,this.l.height);cF(this,!1)};
1546
- function bF(a){dF(a);eF(a);fF(a);gF(a);hF(a);a.s.ia(a.m,"loadeddata",function(){var b;a.s.o(a.m,"canplaythrough",function(){cF(a)});a.s.o(a.m,"playing",function(){a.u&&a.u.stop();if(!b){var c=a.ra.Jb();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);cF(a);a.u=(new Vb(function(){cF(a)})).Qa().wa(1/b)});a.s.o(a.m,"pause",function(){a.u&&a.u.stop();a.u=null;cF(a)});a.s.o(a.m,"seeked",function(){cF(a)});a.s.o(document,"visibilitychange",function(){cF(a)})})}
1547
+ function bF(a){dF(a);eF(a);fF(a);gF(a);hF(a);a.s.ia(a.m,"loadeddata",function(){var b;a.s.o(a.m,"canplaythrough",function(){cF(a)});a.s.o(a.m,"playing",function(){a.u&&a.u.stop();if(!b){var c=a.ra.Jb();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);cF(a);a.u=(new Vb(function(){cF(a)})).Sa().wa(1/b)});a.s.o(a.m,"pause",function(){a.u&&a.u.stop();a.u=null;cF(a)});a.s.o(a.m,"seeked",function(){cF(a)});a.s.o(document,"visibilitychange",function(){cF(a)})})}
1547
1548
  function dF(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]=
1548
1549
  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}XE(a.L,a.G);a=b=a.Z;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]}
1549
1550
  function eF(a){iF(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)}
@@ -1558,7 +1559,7 @@ function hF(a){a.aa=a.g.createTexture();a.g.bindTexture(a.g.TEXTURE_2D,a.aa);a.g
1558
1559
  function cF(a,b){b=void 0===b?!0:b;var c=a.ra.gd()==dp;!a.m||2>a.m.readyState||!c&&0==a.m.playbackRate||(VE(a.I,a.i*Math.PI/180,1.5625),"cubemap"==a.C?VE(a.I,a.i*Math.PI/180,2.5):VE(a.I,a.i*Math.PI/180,1.5625),a.g.useProgram(a.j),a.g.clear(a.g.COLOR_BUFFER_BIT),iF(a),b&&(a.g.activeTexture(a.g.TEXTURE0),a.g.bindTexture(a.g.TEXTURE_2D,a.aa),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.C&&(WE(a.M,
1559
1560
  a.G,a.Z),WE(a.M,a.I,a.M)),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.qa),a.g.vertexAttribPointer(a.P,2,a.g.FLOAT,!1,0,0),a.g.enableVertexAttribArray(a.P),a.g.bindBuffer(a.g.ELEMENT_ARRAY_BUFFER,a.ka),"cubemap"==a.C?(a.g.uniformMatrix4fv(a.g.getUniformLocation(a.j,"uProjectionMatrix"),!1,a.I),a.g.uniformMatrix4fv(a.g.getUniformLocation(a.j,"uModelViewMatrix"),!1,a.M)):a.g.uniformMatrix4fv(a.g.getUniformLocation(a.j,
1560
1561
  "u_VPMatrix"),!1,a.M),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)))}
1561
- function iF(a){var b=a.m.videoWidth;b||(b=a.l.scrollWidth);var c=a.m.videoHeight;c||(c=a.l.scrollHeight);if(a.sa!==b||a.Fa!==c){a.l.width=b;a.l.height=c;a.sa=b;a.Fa=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)}}
1562
+ function iF(a){var b=a.m.videoWidth;b||(b=a.l.scrollWidth);var c=a.m.videoHeight;c||(c=a.l.scrollHeight);if(a.sa!==b||a.Ga!==c){a.l.width=b;a.l.height=c;a.sa=b;a.Ga=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)}}
1562
1563
  function kF(a,b,c,d){var e=90*Math.PI/180;var f="cubemap"==a.C?a.M: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=UE(),g=UE(),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!==
1563
1564
  e&&(e[0]=g[0],e[1]=g[1],e[2]=g[2],e[3]=g[3],e[12]=g[12],e[13]=g[13],e[14]=g[14],e[15]=g[15]),e[4]=h*b+n*c,e[5]=k*b+p*c,e[6]=l*b+r*c,e[7]=m*b+u*c,e[8]=n*b-h*c,e[9]=p*b-k*c,e[10]=r*b-l*c,e[11]=u*b-m*c,WE(f,e,f)):a.H-=c;c=UE();e=UE();g=Math.sin(d);d=Math.cos(d);b=e[0];h=e[1];k=e[2];l=e[3];m=e[4];n=e[5];p=e[6];r=e[7];e!==c&&(c[8]=e[8],c[9]=e[9],c[10]=e[10],c[11]=e[11],c[12]=e[12],c[13]=e[13],c[14]=e[14],c[15]=e[15]);c[0]=b*d+m*g;c[1]=h*d+n*g;c[2]=k*d+p*g;c[3]=l*d+r*g;c[4]=m*d-b*g;c[5]=n*d-h*g;c[6]=p*
1564
1565
  d-k*g;c[7]=r*d-l*g;WE(f,c,f);cF(a,!1)}function lF(a,b){if(void 0===b||b)XE(a.h,a.G),a.W=0,a.A=ZE(),a.A[0]=(a.h[0]-a.L[0])/20,a.A[1]=(a.h[1]-a.L[1])/20,a.A[2]=(a.h[2]-a.L[2])/20,a.A[3]=(a.h[3]-a.L[3])/20;a.h[0]-=a.A[0];a.h[1]-=a.A[1];a.h[2]-=a.A[2];a.h[3]-=a.A[3];b=UE();$E(a.h,a.h);YE(b,a.h);a.G=b;a.J&&(a.J.stop(),a.J=null);20>a.W?a.J=(new Vb(function(){lF(a,!1);a.H=0;a.W++;cF(a,!1)})).X(.025):(YE(b,a.L),a.G=b)};function mF(a,b,c,d,e){gb.call(this);var f=this;this.i=a;this.m=b;this.L=c;this.K=d;this.u=e;this.s=new rd;this.h=new rd;this.G=nF(this);this.g=null;this.j=!1;this.J=this.I=this.H=this.C=this.A=0;this.l=null;this.s.o(d,"loading",function(){f.g&&lF(f.g);oF(f)});this.s.o(d,"spatialvideoinfo",function(g){switch(g.detail.projection){case "hequ":f.l="equirectangular";break;case "fish":f.l="equirectangular";break;default:f.l=null}oF(f)});this.s.o(d,"nospatialvideoinfo",function(){f.l=null;oF(f)});this.s.o(d,
@@ -1567,104 +1568,104 @@ q.Og=function(a){this.g?kF(this.g,0,a*pF,0):Va("Not playing VR content")};q.Pg=f
1567
1568
  function oF(a){if(a.m)if(a.u.displayInVrMode||a.l){var b=a.l||a.u.defaultVrProjectionMode;a.g?a.g.C!=b&&(a.h.Za(),a.g.release(),qF(a,b)):(a.m.style.display="",qF(a,b),a.dispatchEvent(new S("vrstatuschanged",(new Map).set("newStatus",a.Mb()))))}else a.u.displayInVrMode||a.l||!a.g||(a.m.style.display="none",a.h.Za(),a.g.release(),a.g=null,a.dispatchEvent(new S("vrstatuschanged",(new Map).set("newStatus",a.Mb()))))}function qF(a,b){a.G&&a.m&&(a.g=new aF(a.L,a.K,a.m,a.G,b),rF(a))}
1568
1569
  function nF(a){if(!a.m||rc())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}
1569
1570
  function rF(a){a.h.o(a.i,"mousedown",function(d){if(!a.j){var e=d.clientX;d=d.clientY;a.j=!0;a.A=e;a.C=d}});0<navigator.maxTouchPoints&&a.h.o(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.C=d}});a.h.o(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);cF(e,!1);d.preventDefault();d.stopPropagation()}});a.h.o(a.i,"mousemove",function(d){a.j&&sF(a,d.clientX,d.clientY)});0<navigator.maxTouchPoints&&
1570
- a.h.o(a.i,"touchmove",function(d){a.j&&sF(a,d.touches[0].clientX,d.touches[0].clientY);d.preventDefault()});a.h.o(a.i,"mouseleave",function(){a.j=!1});a.h.o(a.i,"mouseup",function(){a.j=!1});0<navigator.maxTouchPoints&&a.h.o(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,tF(a))})};DeviceMotionEvent.requestPermission().then(function(d){a.h.Na(a.i,
1571
- "click",c);a.h.Na(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.Na(a.i,"touchend",c);"granted"!==d?(a.h.ia(a.i,"click",c),a.h.ia(a.i,"mouseup",c),0<navigator.maxTouchPoints&&a.h.ia(a.i,"touchend",c)):(b=!0,tF(a))}).catch(function(){a.h.Na(a.i,"click",c);a.h.Na(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.Na(a.i,"touchend",c);a.h.ia(a.i,"click",c);a.h.ia(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.ia(a.i,"touchend",c)})}else b=!0,tF(a)}
1571
+ a.h.o(a.i,"touchmove",function(d){a.j&&sF(a,d.touches[0].clientX,d.touches[0].clientY);d.preventDefault()});a.h.o(a.i,"mouseleave",function(){a.j=!1});a.h.o(a.i,"mouseup",function(){a.j=!1});0<navigator.maxTouchPoints&&a.h.o(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,tF(a))})};DeviceMotionEvent.requestPermission().then(function(d){a.h.Pa(a.i,
1572
+ "click",c);a.h.Pa(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.Pa(a.i,"touchend",c);"granted"!==d?(a.h.ia(a.i,"click",c),a.h.ia(a.i,"mouseup",c),0<navigator.maxTouchPoints&&a.h.ia(a.i,"touchend",c)):(b=!0,tF(a))}).catch(function(){a.h.Pa(a.i,"click",c);a.h.Pa(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.Pa(a.i,"touchend",c);a.h.ia(a.i,"click",c);a.h.ia(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.ia(a.i,"touchend",c)})}else b=!0,tF(a)}
1572
1573
  function tF(a){a.h.o(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?kF(a.g,c*pF*-1,e*pF*-1,0):kF(a.g,c*pF*-1,d*pF,0)})}function sF(a,b,c){var d=-.6*Math.PI/180;kF(a.g,(b-a.A)*d,-1*(c-a.C)*d,0);a.A=b;a.C=c}var pF=Math.PI/180;function Z(a,b,c,d,e){gb.call(this);var f=this;this.S=!0;this.g=e;this.C=new ar(c,a,this.g.castReceiverAppId,this.g.castAndroidReceiverCompatible);this.sa=!0;this.A=this.C.vc();this.l=c;this.H=this.C.hd();this.ea=a;this.j=b;this.Nb=d;this.ra=this.H.Ve();this.m=this.s=null;this.Z=!1;this.J=[];this.ob=[];this.Xa=!1;this.P=new Vb(function(){f.j.style.cursor="none";f.Xa=!1;uF(f)});this.ka=new Vb(function(){f.h.removeAttribute("shown");f.M.X(2)});this.M=new Vb(function(){for(var g=t(f.J),h=g.next();!h.done;h=
1573
- g.next())oE(h.value,!1)});this.Da=new Vb(function(){f.wc()&&vF(f)});this.I=null;this.G=[];this.za=wF();this.i=new rd;this.u=null;this.configure(this.g);xF(this);this.qa=new Set;yF(this);this.Da.wa(this.g.refreshTickInSeconds);this.i.o(this.za,"locale-changed",function(g){f.ra.setLocale(g.locales[0])});this.ra.initInterstitial(this.L,this.ea,this.l)}pa(Z,gb);q=Z.prototype;
1574
- q.destroy=function(){var a=this;return O(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.l){b.B(2);break}return G(b,document.exitPictureInPicture(),2);case 2:a.i&&(a.i.release(),a.i=null);a.P&&(a.P.stop(),a.P=null);a.ka&&(a.ka.stop(),a.ka=null);a.M&&(a.M.stop(),a.M=null);a.Da&&(a.Da.stop(),a.Da=null);a.u&&(a.u.release(),a.u=null);zF(a);a.h&&(a.j.removeChild(a.h),a.h=null);if(!a.C){b.B(4);break}return G(b,a.C.destroy(),5);case 5:a.C=null;case 4:if(!a.ea){b.B(6);break}return G(b,
1575
- a.ea.destroy(),7);case 7:a.ea=null;case 6:a.H=null,a.l=null,a.A=null,a.za=null,a.qa.clear(),gb.prototype.release.call(a),I(b)}})};function zF(a){for(var b=t(a.G),c=b.next();!c.done;c=b.next())c.value.release();a.G=[]}function AF(a,b){BF.set(a,b)}q.Zi=function(a){this.sa=a;yF(this)};q.ek=function(){uF(this)};
1576
- q.configure=function(a){this.g=a;this.C.Mh(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.m&&(this.m=null);this.Sa&&(this.Sa=null);this.Ga&&(this.Ga=null);this.u&&this.u.configure(a);this.h?(qn(this.h),zF(this)):(CF(this),DF(this),this.u=new mF(this.h,this.Nb,this.l,this.H,this.g));this.j.classList.add("shaka-video-container");this.l.classList.add("shaka-video");EF(this);this.g.addBigPlayButton&&FF(this);this.g.customContextMenu&&(this.Ga=new tE(this.W,this),this.G.push(this.Ga));this.aa||
1577
- GF(this);this.g.seekOnTaps&&(HF(this),IF(this));this.Ra=W("div");this.Ra.classList.add("shaka-server-side-ad-container");this.h.appendChild(this.Ra);JF(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"))));KF(this);this.ob=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));uF(this);a=t(this.j.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=
1578
- a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.i.o(b,"click",c);this.i.o(b,"dblclick",c)}};q.oh=function(a){(this.S=a)?(this.j.setAttribute("shaka-controls","true"),this.l.tabIndex=-1,this.l.controls=!1):this.j.removeAttribute("shaka-controls");uF(this)};q.Bi=function(a){this.l.controls=a;this.l.tabIndex=a?0:-1;a&&this.oh(!1)};q.getAd=function(){return this.s};q.jj=function(){return this.C};q.xj=function(){return this.za};q.Pj=function(){return this.j};q.vc=function(){return this.A};
1579
- q.wj=function(){return this.l};q.hd=function(){return this.H};q.vj=function(){return this.ea};q.oj=function(){return this.h};q.Gj=function(){return this.Ra};q.lj=function(){return this.L};q.mj=function(){return this.g};q.bk=function(){return this.Z};q.sh=function(a){this.Z=a};q.Vj=function(){return this.sa};q.Ig=function(){return this.m?this.m.getValue():this.A.currentTime};q.Di=function(a){this.I=a};q.Rd=function(){return this.J.some(function(a){return!a.classList.contains("shaka-hidden")})};
1580
- q.Jc=function(){this.M.Qa()};q.ee=function(){return document.fullscreenEnabled||this.l.webkitSupportsFullscreen?!0:!1};q.ld=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.l;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
1574
+ g.next())oE(h.value,!1)});this.Aa=new Vb(function(){f.wc()&&vF(f)});this.I=null;this.G=[];this.xa=wF();this.i=new rd;this.u=null;this.configure(this.g);xF(this);this.qa=new Set;yF(this);this.Aa.wa(this.g.refreshTickInSeconds);this.i.o(this.xa,"locale-changed",function(g){f.ra.setLocale(g.locales[0])});this.ra.initInterstitial(this.L,this.ea,this.l)}pa(Z,gb);q=Z.prototype;
1575
+ q.destroy=function(){var a=this;return O(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.l){b.B(2);break}return G(b,document.exitPictureInPicture(),2);case 2:a.i&&(a.i.release(),a.i=null);a.P&&(a.P.stop(),a.P=null);a.ka&&(a.ka.stop(),a.ka=null);a.M&&(a.M.stop(),a.M=null);a.Aa&&(a.Aa.stop(),a.Aa=null);a.u&&(a.u.release(),a.u=null);zF(a);a.h&&(a.j.removeChild(a.h),a.h=null);if(!a.C){b.B(4);break}return G(b,a.C.destroy(),5);case 5:a.C=null;case 4:if(!a.ea){b.B(6);break}return G(b,
1576
+ a.ea.destroy(),7);case 7:a.ea=null;case 6:a.H=null,a.l=null,a.A=null,a.xa=null,a.qa.clear(),gb.prototype.release.call(a),I(b)}})};function zF(a){for(var b=t(a.G),c=b.next();!c.done;c=b.next())c.value.release();a.G=[]}function AF(a,b){BF.set(a,b)}q.Zi=function(a){this.sa=a;yF(this)};q.ek=function(){uF(this)};
1577
+ q.configure=function(a){this.g=a;this.C.Mh(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.m&&(this.m=null);this.Ia&&(this.Ia=null);this.Ha&&(this.Ha=null);this.u&&this.u.configure(a);this.h?(qn(this.h),zF(this)):(CF(this),DF(this),this.u=new mF(this.h,this.Nb,this.l,this.H,this.g));this.j.classList.add("shaka-video-container");this.l.classList.add("shaka-video");EF(this);this.g.addBigPlayButton&&FF(this);this.g.customContextMenu&&(this.Ha=new tE(this.W,this),this.G.push(this.Ha));this.aa||
1578
+ GF(this);this.g.seekOnTaps&&(HF(this),IF(this));this.Fa=W("div");this.Fa.classList.add("shaka-server-side-ad-container");this.h.appendChild(this.Fa);JF(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"))));KF(this);this.ob=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));uF(this);a=t(this.j.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=
1579
+ a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.i.o(b,"click",c);this.i.o(b,"dblclick",c)}};q.oh=function(a){(this.S=a)?(this.j.setAttribute("shaka-controls","true"),this.l.tabIndex=-1,this.l.controls=!1):this.j.removeAttribute("shaka-controls");uF(this)};q.Bi=function(a){this.l.controls=a;this.l.tabIndex=a?0:-1;a&&this.oh(!1)};q.getAd=function(){return this.s};q.jj=function(){return this.C};q.xj=function(){return this.xa};q.Pj=function(){return this.j};q.vc=function(){return this.A};
1580
+ q.wj=function(){return this.l};q.hd=function(){return this.H};q.vj=function(){return this.ea};q.oj=function(){return this.h};q.Gj=function(){return this.Fa};q.lj=function(){return this.L};q.mj=function(){return this.g};q.bk=function(){return this.Z};q.sh=function(a){this.Z=a};q.Vj=function(){return this.sa};q.Ig=function(){return this.m?this.m.getValue():this.A.currentTime};q.Di=function(a){this.I=a};q.Rd=function(){return this.J.some(function(a){return!a.classList.contains("shaka-hidden")})};
1581
+ q.Jc=function(){this.M.Sa()};q.ee=function(){return document.fullscreenEnabled||this.l.webkitSupportsFullscreen?!0:!1};q.ld=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.l;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
1581
1582
  function LF(a){var b,c,d;return O(function(e){switch(e.g){case 1:ta(e,2);if(!document.fullscreenEnabled){b=a.l;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();e.B(4);break}if(!document.pictureInPictureElement){e.B(5);break}return G(e,document.exitPictureInPicture(),5);case 5:return c=a.g.fullScreenElement,G(e,c.requestFullscreen({navigationUI:"hide"}),7);case 7:if(!a.g.forceLandscapeOnFullscreen||!screen.orientation){e.B(4);break}ta(e,9);return G(e,screen.orientation.lock("landscape"),11);case 11:va(e,
1582
1583
  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))),I(e)}})}function MF(a){var b;return O(function(c){if(!document.fullscreenEnabled)return b=a.l,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.B(0);screen.orientation&&screen.orientation.unlock();return G(c,document.exitFullscreen(),0)})}q.Ef=function(){var a=this;return O(function(b){return a.ld()?G(b,MF(a),0):G(b,LF(a),0)})};
1583
- q.ef=function(){return this.C.Pa()?!1:"documentPictureInPicture"in window&&this.g.preferDocumentPictureInPicture||document.pictureInPictureEnabled?!this.l.disablePictureInPicture:!1};q.gf=function(){return"documentPictureInPicture"in window&&this.g.preferDocumentPictureInPicture?!!window.documentPictureInPicture.window:!!document.pictureInPictureElement};
1584
+ q.ef=function(){return this.C.Ra()?!1:"documentPictureInPicture"in window&&this.g.preferDocumentPictureInPicture||document.pictureInPictureEnabled?!this.l.disablePictureInPicture:!1};q.gf=function(){return"documentPictureInPicture"in window&&this.g.preferDocumentPictureInPicture?!!window.documentPictureInPicture.window:!!document.pictureInPictureElement};
1584
1585
  q.xe=function(){var a=this,b,c;return O(function(d){if(1==d.g)return ta(d,2),"documentPictureInPicture"in window&&a.g.preferDocumentPictureInPicture?G(d,NF(a),5):document.pictureInPictureElement?G(d,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),b=a.l,G(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)));I(d)})};
1585
1586
  function NF(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 G(h,window.documentPictureInPicture.requestWindow({width:c.width,height:c.height}),2)}d=h.h;OF(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%}");
1586
1587
  d.document.head.append(g);d.document.body.append(b);a.i.ia(d,"pagehide",function(){f.replaceWith(b)});I(h)})}
1587
1588
  function OF(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.Ii=function(){oE(this.K,!0);oE(this.L,!0);this.h.setAttribute("ad-active","true")};
1588
1589
  q.ai=function(){oE(this.K,!1);oE(this.L,!1);this.h.removeAttribute("ad-active")};function zE(a){a.S&&a.A.duration&&(a.H.bd(),a.A.paused&&!a.Z?a.A.play():a.A.pause())}function yE(a){a.s&&a.s.isPaused()?a.s.play():a.s&&a.s.pause()}
1589
1590
  function CF(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.o(a.h,"touchstart",function(b){a.A.duration&&(a.wc()?a.I=Date.now():(PF(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.i.o(a.h,"click",function(){QF(a)});a.i.o(a.h,"dblclick",function(){a.g.doubleClickForFullscreen&&a.ee()&&a.Ef()})}
1590
- function FF(a){var b=W("div");b.classList.add("shaka-play-button-container");a.h.appendChild(b);a.Sa=new AE(b,a);a.G.push(a.Sa)}function EF(a){var b=W("div");b.classList.add("shaka-scrim-container");a.h.appendChild(b)}function RF(a){a.K=W("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.s&&a.s.isLinear();oE(a.K,b);a.O.appendChild(a.K);b=new rE(a.K,a);a.G.push(b);b=new qE(a.K,a);a.G.push(b);b=new RE(a.K,a);a.G.push(b)}
1591
+ function FF(a){var b=W("div");b.classList.add("shaka-play-button-container");a.h.appendChild(b);a.Ia=new AE(b,a);a.G.push(a.Ia)}function EF(a){var b=W("div");b.classList.add("shaka-scrim-container");a.h.appendChild(b)}function RF(a){a.K=W("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.s&&a.s.isLinear();oE(a.K,b);a.O.appendChild(a.K);b=new rE(a.K,a);a.G.push(b);b=new qE(a.K,a);a.G.push(b);b=new RE(a.K,a);a.G.push(b)}
1591
1592
  function GF(a){a.aa=W("div");a.aa.classList.add("shaka-spinner-container");a.j.appendChild(a.aa);var b=W("div");b.classList.add("shaka-spinner");a.aa.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");
1592
1593
  b.setAttribute("fill","none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)}function HF(a){var b=W("div");b.classList.add("shaka-hidden-fast-forward-container");a.h.appendChild(b);a.Kb=new CE(b,a);a.G.push(a.Kb)}function IF(a){var b=W("div");b.classList.add("shaka-hidden-rewind-container");a.h.appendChild(b);a.Lb=new DE(b,a);a.G.push(a.Lb)}
1593
1594
  function JF(a){a.O=W("div");a.O.classList.add("shaka-bottom-controls");a.O.classList.add("shaka-no-propagation");a.h.appendChild(a.O);a.i.o(a.O,"click",function(d){d.target.closest(".shaka-overflow-button")||a.Jc()});RF(a);a.W=W("div");a.W.classList.add("shaka-controls-button-panel");a.W.classList.add("shaka-show-controls-on-mouse-over");a.g.enableTooltips&&a.W.classList.add("shaka-tooltips-on");a.O.appendChild(a.W);for(var b=t(a.g.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,BF.get(c)?
1594
1595
  (c=BF.get(c).create(a.W,a),a.G.push(c)):Va("Unrecognized control panel element requested:",c)}function KF(a){if(a.g.addSeekBar)a.m=SF.create(a.O,a),a.G.push(a.m);else{a=t(a.J);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function DF(a){a.L=W("div");a.L.classList.add("shaka-client-side-ad-container");oE(a.L,!1);a.i.o(a.L,"click",function(){QF(a)});a.j.appendChild(a.L)}
1595
- function xF(a){a.i.o(a.H,"buffering",function(){a.S&&oE(a.aa,a.H.ce())});a.S&&oE(a.aa,a.H.ce());a.i.o(window,"keydown",function(b){TF(a,b)});a.i.o(window,"click",function(){return a.Jc()});a.i.o(a,"submenuopen",function(){a.Jc()});a.i.o(a.A,"play",function(){uF(a)});a.i.o(a.A,"pause",function(){uF(a)});a.i.o(a.j,"mousemove",function(b){PF(a,b)});a.i.o(a.j,"touchmove",function(b){PF(a,b)},{passive:!0});a.i.o(a.j,"touchend",function(b){PF(a,b)},{passive:!0});a.i.o(a.j,"mouseleave",function(){a.I||a.P.Qa()});
1596
+ function xF(a){a.i.o(a.H,"buffering",function(){a.S&&oE(a.aa,a.H.ce())});a.S&&oE(a.aa,a.H.ce());a.i.o(window,"keydown",function(b){TF(a,b)});a.i.o(window,"click",function(){return a.Jc()});a.i.o(a,"submenuopen",function(){a.Jc()});a.i.o(a.A,"play",function(){uF(a)});a.i.o(a.A,"pause",function(){uF(a)});a.i.o(a.j,"mousemove",function(b){PF(a,b)});a.i.o(a.j,"touchmove",function(b){PF(a,b)},{passive:!0});a.i.o(a.j,"touchend",function(b){PF(a,b)},{passive:!0});a.i.o(a.j,"mouseleave",function(){a.I||a.P.Sa()});
1596
1597
  a.i.o(a.C,"caststatuschanged",function(){yF(a)});a.i.o(a.u,"vrstatuschanged",function(){a.dispatchEvent(new S("vrstatuschanged"))});a.i.o(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)&&PF(a,b);if(a.g.enableKeyboardPlaybackControls){c=a.g.keyboardSeekDistance;var f=a.g.keyboardLargeSeekDistance;switch(b.key){case "ArrowLeft":a.m&&e&&!d&&0<c&&(b.preventDefault(),
1597
- UF(a,a.m.getValue()-c));break;case "ArrowRight":a.m&&e&&!d&&0<c&&(b.preventDefault(),UF(a,a.m.getValue()+c));break;case "PageDown":a.m&&e&&0<c&&(b.preventDefault(),UF(a,a.m.getValue()-f));break;case "PageUp":a.m&&e&&0<c&&(b.preventDefault(),UF(a,a.m.getValue()+f));break;case "Home":a.m&&UF(a,a.H.Ma().start);break;case "End":a.m&&UF(a,a.H.Ma().end);break;case "f":a.ee()&&a.Ef();break;case "m":a.s&&a.s.isLinear()?a.s.setMuted(!a.s.isMuted()):a.l.muted=!a.l.muted;break;case "p":a.ef()&&a.xe();break;
1598
+ UF(a,a.m.getValue()-c));break;case "ArrowRight":a.m&&e&&!d&&0<c&&(b.preventDefault(),UF(a,a.m.getValue()+c));break;case "PageDown":a.m&&e&&0<c&&(b.preventDefault(),UF(a,a.m.getValue()-f));break;case "PageUp":a.m&&e&&0<c&&(b.preventDefault(),UF(a,a.m.getValue()+f));break;case "Home":a.m&&UF(a,a.H.Oa().start);break;case "End":a.m&&UF(a,a.H.Oa().end);break;case "f":a.ee()&&a.Ef();break;case "m":a.s&&a.s.isLinear()?a.s.setMuted(!a.s.isMuted()):a.l.muted=!a.l.muted;break;case "p":a.ef()&&a.xe();break;
1598
1599
  case " ":e&&VF(a)}}});a.i.o(a.j,"keyup",function(b){a.qa.delete(b.key)});a.i.o(a.ra,"ad-started",function(b){a.s=b.ad;a.Ii()});a.i.o(a.ra,"ad-stopped",function(){a.s=null;a.ai()});screen.orientation&&a.i.o(screen.orientation,"change",function(){return O(function(b){return G(b,WF(a),0)})})}
1599
- function WF(a){return O(function(b){return a.A&&0!=a.A.readyState&&!a.C.Pa()&&a.g.enableFullscreenOnRotation&&a.ee()?screen.orientation.type.includes("landscape")&&!a.ld()?G(b,LF(a),0):screen.orientation.type.includes("portrait")&&a.ld()?G(b,MF(a),0):b.B(0):b.return()})}
1600
+ function WF(a){return O(function(b){return a.A&&0!=a.A.readyState&&!a.C.Ra()&&a.g.enableFullscreenOnRotation&&a.ee()?screen.orientation.type.includes("landscape")&&!a.ld()?G(b,LF(a),0):screen.orientation.type.includes("portrait")&&a.ld()?G(b,MF(a),0):b.B(0):b.return()})}
1600
1601
  function PF(a,b){"mousemove"==b.type&&(a.h.classList.remove("shaka-keyboard-navigation"),uF(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.Xa=!0,a.M.stop(),a.wc()||(vF(a),uF(a)),a.P.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.I||a.P.X(3))}function XF(a){return window.matchMedia("hover: hover").matches?a.ob.some(function(b){return b.matches(":hover")}):!1}
1601
- function uF(a){var b=a.s?a.s.isPaused():!1,c=a.A.paused&&!a.Z,d=a.h.classList.contains("shaka-keyboard-navigation");b||(!a.s||!a.s.isLinear())&&c||a.Xa||d||XF(a)?(vF(a),a.h.setAttribute("shown","true"),a.ka.stop()):a.ka.X(a.g.fadeDelay)}function QF(a){a.S&&!a.Mb()&&(a.Rd()?a.M.Qa():a.g.singleClickForPlayAndPause&&VF(a))}function VF(a){a.s&&a.s.isLinear()?yE(a):zE(a)}
1602
- function yF(a){var b=a.C.Pa();a.dispatchEvent(new S("caststatuschanged",(new Map).set("newStatus",b)));b?a.h.setAttribute("casting","true"):a.h.removeAttribute("casting")}q.wc=function(){return this.S?null!=this.h.getAttribute("shown")||null!=this.h.getAttribute("casting"):!1};function UF(a,b){a.m.changeTo(b);a.wc()&&vF(a)}
1602
+ function uF(a){var b=a.s?a.s.isPaused():!1,c=a.A.paused&&!a.Z,d=a.h.classList.contains("shaka-keyboard-navigation");b||(!a.s||!a.s.isLinear())&&c||a.Xa||d||XF(a)?(vF(a),a.h.setAttribute("shown","true"),a.ka.stop()):a.ka.X(a.g.fadeDelay)}function QF(a){a.S&&!a.Mb()&&(a.Rd()?a.M.Sa():a.g.singleClickForPlayAndPause&&VF(a))}function VF(a){a.s&&a.s.isLinear()?yE(a):zE(a)}
1603
+ function yF(a){var b=a.C.Ra();a.dispatchEvent(new S("caststatuschanged",(new Map).set("newStatus",b)));b?a.h.setAttribute("casting","true"):a.h.removeAttribute("casting")}q.wc=function(){return this.S?null!=this.h.getAttribute("shown")||null!=this.h.getAttribute("casting"):!1};function UF(a,b){a.m.changeTo(b);a.wc()&&vF(a)}
1603
1604
  function vF(a){if(a.m)if(a.m.setValue(a.A.currentTime),a.m.update(),a.m.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"))}
1604
- function TF(a,b){a.qa.add(b.key);var c=a.Rd();"Tab"==b.key&&(a.h.classList.add("shaka-keyboard-navigation"),uF(a),a.i.o(window,"mousedown",function(){a.i.Na(window,"mousedown")}));"Escape"==b.key&&a.M.Qa();c&&a.qa.has("Tab")&&YF(a,b)}
1605
+ function TF(a,b){a.qa.add(b.key);var c=a.Rd();"Tab"==b.key&&(a.h.classList.add("shaka-keyboard-navigation"),uF(a),a.i.o(window,"mousedown",function(){a.i.Pa(window,"mousedown")}));"Escape"==b.key&&a.M.Sa();c&&a.qa.has("Tab")&&YF(a,b)}
1605
1606
  function YF(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.qa.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
1606
- q.Sk=function(){var a=new Event("mousemove",{bubbles:!1,cancelable:!1});PF(this,a)};q.Uj=function(){this.I||this.P.Qa()};q.kg=function(){return this.u.kg()};q.Mb=function(){return this.u.Mb()};
1607
+ q.Sk=function(){var a=new Event("mousemove",{bubbles:!1,cancelable:!1});PF(this,a)};q.Uj=function(){this.I||this.P.Sa()};q.kg=function(){return this.u.kg()};q.Mb=function(){return this.u.Mb()};
1607
1608
  q.Nj=function(){var a=this.u;if(a.g){a=a.g;XE(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 Va("Not playing VR content"),a=null;return a};q.Mj=function(){var a=this.u;a.g?a=a.g.i:(Va("Not playing VR content"),a=null);return a};
1608
1609
  q.Rk=function(a){var b=this.u;b.g?(0>a?(Va("Field of view should be greater than 0"),a=0):100<a&&(Va("Field of view should be less than 100"),a=100),b=b.g,b.i=a,cF(b,!1)):Va("Not playing VR content")};q.yd=function(){this.u.yd()};q.Qg=function(a){this.u.Qg(a)};q.Og=function(a){this.u.Og(a)};q.Pg=function(a){this.u.Pg(a)};
1609
- function wF(){var a=new kd("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..."],
1610
+ function wF(){var a=new kd("en");a.Ma("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..."],
1610
1611
  ["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"],
1611
1612
  ["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"],
1612
1613
  ["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"],
1613
1614
  ["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"],
1614
- ["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"],
1615
+ ["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.Ma("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"],
1615
1616
  ["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"],
1616
1617
  ["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"]]));
1617
- a.Ka("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_STATISTICS","Ad statistics"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["DOWNLOAD_VIDEO_FRAME","Save video frame"],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter Picture-in-Picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE",
1618
+ a.Ma("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_STATISTICS","Ad statistics"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["DOWNLOAD_VIDEO_FRAME","Save video frame"],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter Picture-in-Picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE",
1618
1619
  "Exit Picture-in-Picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["QUALITY","Quality"],["RECENTER_VR","Recenter"],["REPLAY","Replay"],["RESOLUTION","Resolution"],
1619
- ["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip Ad"],["SKIP_TO_LIVE","Skip ahead to live"],["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Toggle stereoscopic"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","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",
1620
+ ["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip Ad"],["SKIP_TO_LIVE","Skip ahead to live"],["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Toggle stereoscopic"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.Ma("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",
1620
1621
  "Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter picture-in-picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit picture-in-picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE",
1621
1622
  "Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["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"]]));
1622
- a.Ka("es",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estad\u00edsticas de anuncios"],["AD_TIME","Anuncio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Enviar..."],["DOWNLOAD_VIDEO_FRAME","Guardar fotograma"],["ENTER_LOOP_MODE","Reproducir en bucle el v\u00eddeo actual"],["ENTER_PICTURE_IN_PICTURE","Activar el modo imagen en imagen"],["EXIT_FULL_SCREEN",
1623
+ a.Ma("es",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estad\u00edsticas de anuncios"],["AD_TIME","Anuncio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Enviar..."],["DOWNLOAD_VIDEO_FRAME","Guardar fotograma"],["ENTER_LOOP_MODE","Reproducir en bucle el v\u00eddeo actual"],["ENTER_PICTURE_IN_PICTURE","Activar el modo imagen en imagen"],["EXIT_FULL_SCREEN",
1623
1624
  "Salir del modo de pantalla completa"],["EXIT_LOOP_MODE","Dejar de reproducir en bucle el v\u00eddeo actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo imagen en imagen"],["FAST_FORWARD","Avanzar r\u00e1pidamente"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Reproducir en bucle"],["MORE_SETTINGS","M\u00e1s ajustes"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE",
1624
1625
  "Pausar"],["PICTURE_IN_PICTURE","Imagen en imagen"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["QUALITY","Calidad"],["RECENTER_VR","Recentrar"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Rebobinar"],["SEEK","Buscar"],["SKIP_AD","Saltar anuncio"],["SKIP_TO_LIVE","Ir al v\u00eddeo en directo"],["STATISTICS","Estad\u00edsticas"],["SUBTITLE_FORCED","Forzado"],["SURROUND","Envolvente"],["TOGGLE_STEREOSCOPIC","Alternar estereosc\u00f3pico"],["UNDETERMINED_LANGUAGE","Sin especificar"],
1625
- ["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]"],["AD_STATISTICS","Estad\u00edsticas de anuncios"],["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"],
1626
+ ["UNMUTE","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.Ma("es-419",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estad\u00edsticas de anuncios"],["AD_TIME","Anuncio: [AD_TIME]"],["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"],
1626
1627
  ["EXIT_FULL_SCREEN","Salir de pantalla completa"],["EXIT_LOOP_MODE","Detener la repetici\u00f3n indefinida del video actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo de pantalla en pantalla"],["FAST_FORWARD","Avanzar"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Repetir indefinidamente"],["MORE_SETTINGS","M\u00e1s opciones de configuraci\u00f3n"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],
1627
1628
  ["ON","Activado"],["PAUSE","Detener"],["PICTURE_IN_PICTURE","Pantalla en pantalla"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["RECENTER_VR","Recentrar"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],["SKIP_TO_LIVE","Adelantar hasta la transmisi\u00f3n en vivo"],["STATISTICS","Estad\u00edsticas"],["SUBTITLE_FORCED","Forzado"],["SURROUND","Envolvente"],["TOGGLE_STEREOSCOPIC","Alternar estereosc\u00f3pico"],["UNDETERMINED_LANGUAGE",
1628
- "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","Statistiques de l'annonce"],["AD_TIME","Annonce : [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["CAPTIONS","Sous-titres"],["CAST","Caster\u2026"],["DOWNLOAD_VIDEO_FRAME","Enregistrer l'image vid\u00e9o"],["ENTER_LOOP_MODE",
1629
+ "Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.Ma("fr",new Map([["AD_DURATION","Dur\u00e9e de l'annonce"],["AD_PROGRESS","Annonce [AD_ON] sur [NUM_ADS]"],["AD_STATISTICS","Statistiques de l'annonce"],["AD_TIME","Annonce : [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["CAPTIONS","Sous-titres"],["CAST","Caster\u2026"],["DOWNLOAD_VIDEO_FRAME","Enregistrer l'image vid\u00e9o"],["ENTER_LOOP_MODE",
1629
1630
  "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)"],["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",
1630
1631
  "Plusieurs langues"],["MUTE","Couper le son"],["NOT_APPLICABLE","Non applicable"],["OFF","D\u00e9sactiv\u00e9e"],["ON","Activ\u00e9e"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Visionner"],["PLAYBACK_RATE","Vitesse de lecture"],["QUALITY","Qualit\u00e9"],["RECENTER_VR","Recentrer"],["REPLAY","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"],
1631
- ["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"],["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",
1632
+ ["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"],["VOLUME","Volume"]]));a.Ma("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",
1632
1633
  "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","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"],
1633
1634
  ["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","Risoluzione"],["REWIND","Riavvolgi"],["SEEK","Cerca"],["SKIP_AD","Salta annuncio"],["SKIP_TO_LIVE","Passa alla trasmissione dal vivo"],["UNDETERMINED_LANGUAGE","Indeterminata"],["UNMUTE","Riattiva audio"],
1634
- ["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"],["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",
1635
+ ["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.Ma("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"],["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",
1635
1636
  "\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc\u3092\u958b\u59cb"],["EXIT_FULL_SCREEN","\u5168\u753b\u9762\u8868\u793a\u3092\u7d42\u4e86"],["EXIT_LOOP_MODE","\u73fe\u5728\u306e\u52d5\u753b\u306e\u30eb\u30fc\u30d7\u518d\u751f\u3092\u505c\u6b62"],["EXIT_PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc\u3092\u7d42\u4e86"],["FAST_FORWARD","\u65e9\u9001\u308a"],["FULL_SCREEN","\u5168\u753b\u9762\u8868\u793a"],["LANGUAGE","\u8a00\u8a9e"],
1636
1637
  ["LIVE","\u30e9\u30a4\u30d6"],["LOOP","\u30eb\u30fc\u30d7"],["MORE_SETTINGS","\u8a73\u7d30\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u8a00\u8a9e"],["MUTE","\u30df\u30e5\u30fc\u30c8"],["NOT_APPLICABLE","\u8a72\u5f53\u306a\u3057"],["OFF","\u30aa\u30d5"],["ON","\u30aa\u30f3"],["PAUSE","\u4e00\u6642\u505c\u6b62"],["PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc"],["PLAY","\u518d\u751f"],["PLAYBACK_RATE","\u518d\u751f\u901f\u5ea6"],["RESOLUTION","\u89e3\u50cf\u5ea6"],
1637
- ["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"],["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]"],
1638
+ ["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"],["UNRECOGNIZED_LANGUAGE","\u4e0d\u660e"],["VOLUME","\u97f3\u91cf"]]));a.Ma("ko",new Map([["AD_DURATION","\uad11\uace0 \uae30\uac04"],["AD_PROGRESS","\uad11\uace0 [AD_ON]/[NUM_ADS]"],
1638
1639
  ["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"],["EXIT_LOOP_MODE","\ud604\uc7ac \ub3d9\uc601\uc0c1 \ubc18\ubcf5 \uc7ac\uc0dd \uc911\uc9c0"],["EXIT_PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc \uc885\ub8cc"],
1639
1640
  ["FAST_FORWARD","\ube68\ub9ac \uac10\uae30"],["FULL_SCREEN","\uc804\uccb4\ud654\uba74"],["LANGUAGE","\uc5b8\uc5b4"],["LIVE","\uc2e4\uc2dc\uac04"],["LOOP","\ubc18\ubcf5 \uc7ac\uc0dd"],["MORE_SETTINGS","\uc124\uc815 \ub354\ubcf4\uae30"],["MULTIPLE_LANGUAGES","\uc5ec\ub7ec \uc5b8\uc5b4"],["MUTE","\uc74c\uc18c\uac70"],["NOT_APPLICABLE","\ud574\ub2f9 \uc0ac\ud56d \uc5c6\uc74c"],["OFF","\uc0ac\uc6a9 \uc548\ud568"],["ON","\uc0ac\uc6a9"],["PAUSE","\uc77c\uc2dc\uc911\uc9c0"],["PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc"],
1640
- ["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"],["UNRECOGNIZED_LANGUAGE","\uc54c \uc218 \uc5c6\uc74c"],["VOLUME","\ubcfc\ub968"]]));a.Ka("nl",new Map([["AD_DURATION",
1641
+ ["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"],["UNRECOGNIZED_LANGUAGE","\uc54c \uc218 \uc5c6\uc74c"],["VOLUME","\ubcfc\ub968"]]));a.Ma("nl",new Map([["AD_DURATION",
1641
1642
  "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"],["EXIT_PICTURE_IN_PICTURE","Scherm-in-scherm afsluiten"],["FAST_FORWARD","Vooruitspoelen"],["FULL_SCREEN",
1642
1643
  "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","Terugspoelen"],["SEEK","Zoeken"],["SKIP_AD","Advertentie overslaan"],["SKIP_TO_LIVE","Doorgaan naar live"],
1643
- ["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"],["CAST","Przesy\u0142aj..."],["DOWNLOAD_VIDEO_FRAME","Zapisz klatk\u0119 wideo"],["ENTER_LOOP_MODE","Odtwarzaj bie\u017c\u0105cy film w p\u0119tli"],
1644
+ ["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.Ma("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"],["CAST","Przesy\u0142aj..."],["DOWNLOAD_VIDEO_FRAME","Zapisz klatk\u0119 wideo"],["ENTER_LOOP_MODE","Odtwarzaj bie\u017c\u0105cy film w p\u0119tli"],
1644
1645
  ["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","Odtwarzaj w p\u0119tli"],["MORE_SETTINGS","Wi\u0119cej ustawie\u0144"],["MULTIPLE_LANGUAGES",
1645
1646
  "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"],["REWIND","Przewi\u0144 do ty\u0142u"],["SEEK","Szukaj"],["SKIP_AD","Pomi\u0144 reklam\u0119"],
1646
- ["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","Dura\u00e7\u00e3o do an\u00fancio"],["AD_PROGRESS","An\u00fancio [AD_ON] de [NUM_ADS]"],
1647
+ ["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.Ma("pt-BR",new Map([["AD_DURATION","Dura\u00e7\u00e3o do an\u00fancio"],["AD_PROGRESS","An\u00fancio [AD_ON] de [NUM_ADS]"],
1647
1648
  ["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..."],["DOWNLOAD_VIDEO_FRAME","Salvar quadro de v\u00eddeo"],["ENTER_LOOP_MODE","Repetir o v\u00eddeo atual"],["ENTER_PICTURE_IN_PICTURE","Entrar no modo picture-in-picture"],["EXIT_FULL_SCREEN","Sair do modo tela cheia"],["EXIT_LOOP_MODE","Parar repeti\u00e7\u00e3o do v\u00eddeo atual"],["EXIT_PICTURE_IN_PICTURE",
1648
1649
  "Sair de picture-in-picture"],["FAST_FORWARD","Avan\u00e7ar"],["FULL_SCREEN","Tela cheia"],["LANGUAGE","Idioma"],["LIVE","Ao vivo"],["LOOP","Repetir"],["MORE_SETTINGS","Mais defini\u00e7\u00f5es"],["MULTIPLE_LANGUAGES","V\u00e1rios idiomas"],["MUTE","Desativar som"],["NOT_APPLICABLE","N\u00e3o relevante"],["OFF","Desativado"],["ON","Ativado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Reproduzir"],["PLAYBACK_RATE","Velocidade da reprodu\u00e7\u00e3o"],["QUALITY","Qualidade"],
1649
1650
  ["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"],["VOLUME","Volume"]]));
1650
- 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"],["CAST",
1651
+ a.Ma("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"],["CAST",
1651
1652
  "\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"],
1652
1653
  ["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"],
1653
1654
  ["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"],
1654
1655
  ["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"],
1655
1656
  ["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"],
1656
- ["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"],
1657
+ ["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.Ma("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"],
1657
1658
  ["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"],
1658
1659
  ["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"],
1659
1660
  ["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"],
1660
1661
  ["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"],
1661
1662
  ["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"],
1662
- ["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"],
1663
+ ["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.Ma("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"],
1663
1664
  ["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"],
1664
- ["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"],
1665
+ ["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.Ma("zh",new Map([["AD_DURATION","\u5e7f\u544a\u6301\u7eed\u65f6\u95f4"],
1665
1666
  ["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"],
1666
1667
  ["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"],
1667
- ["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]"],
1668
+ ["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.Ma("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],
1668
1669
  ["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"],
1669
1670
  ["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"],
1670
1671
  ["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.Lh(navigator.languages||[]);return a}P("shaka.ui.Controls",Z);Z.prototype.incrementRoll=Z.prototype.Pg;Z.prototype.incrementPitch=Z.prototype.Og;
@@ -1709,12 +1710,12 @@ W("span");a.backButton.appendChild(a.backSpan);a.controls.h.appendChild(a.menu)}
1709
1710
  function FG(a){var b=a.player.Jb();wG(b,a.menu,function(c){var d=void 0;c.channelsCount&&a.controls.g.showAudioChannelCountVariants&&(d=c.channelsCount);var e=void 0;c.audioCodec&&(e=c.audioCodec);a.player.jh(c.language,c.roles[0],d,0,e)},!0,a.currentSelection,a.localization,a.controls.g.trackLabelFormat,a.controls.g.showAudioChannelCountVariants);mE(a.menu);a.controls.dispatchEvent(new S("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText);oE(a.button,2<
1710
1711
  a.menu.getElementsByTagName("button").length)}function EG(a){var b=0<a.player.Jb().length;oE(a.button,b);FG(a)}function DG(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",CG);function GG(){}GG.prototype.create=function(a,b){return new CG(a,b)};cG("language",new GG);AF("language",new GG);function HG(a,b){jE.call(this,a,b);var c=this;this.h=this.controls.C;this.g=pn();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");
1711
1712
  a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);IG(this);JG(this);this.eventManager.o(this.localization,"locale-updated",function(){IG(c)});this.eventManager.o(this.localization,"locale-changed",function(){IG(c)});this.eventManager.o(this.g,"click",function(){KG(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){JG(c)})}pa(HG,jE);
1712
- function KG(a){var b;O(function(c){if(1==c.g){if(a.h.Pa())return a.h.Ji(),c.B(0);ta(c,3);a.g.disabled=!0;return G(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)));I(c)})}function JG(a){var b=a.h.ig()&&a.controls.sa,c=a.h.Pa();oE(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");LG(a)}
1713
- function LG(a){a.j.textContent=a.h.Pa()?a.h.yf():a.localization.resolve("OFF")}function IG(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");LG(a)}P("shaka.ui.CastButton",HG);function MG(){}MG.prototype.create=function(a,b){return new HG(a,b)};cG("cast",new MG);AF("cast",new MG);function NG(a,b){jE.call(this,a,b);var c=this;this.g=pn();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);OG(this);this.h=this.controls.g.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){OG(c)});this.eventManager.o(this.localization,"locale-changed",function(){OG(c)});
1713
+ function KG(a){var b;O(function(c){if(1==c.g){if(a.h.Ra())return a.h.Ji(),c.B(0);ta(c,3);a.g.disabled=!0;return G(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)));I(c)})}function JG(a){var b=a.h.ig()&&a.controls.sa,c=a.h.Ra();oE(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");LG(a)}
1714
+ function LG(a){a.j.textContent=a.h.Ra()?a.h.yf():a.localization.resolve("OFF")}function IG(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");LG(a)}P("shaka.ui.CastButton",HG);function MG(){}MG.prototype.create=function(a,b){return new HG(a,b)};cG("cast",new MG);AF("cast",new MG);function NG(a,b){jE.call(this,a,b);var c=this;this.g=pn();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);OG(this);this.h=this.controls.g.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){OG(c)});this.eventManager.o(this.localization,"locale-changed",function(){OG(c)});
1714
1715
  this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Ua())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Uc(d);c.g.setAttribute("shaka-status",d+"x")}})}pa(NG,jE);function OG(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}P("shaka.ui.FastForwardButton",NG);function PG(){}PG.prototype.create=function(a,b){return new NG(a,b)};AF("fast_forward",new PG);function QG(a,b){jE.call(this,a,b);var c=this;this.h=this.controls.l;this.g=pn();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");RG(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);SG(this);this.eventManager.o(this.localization,"locale-updated",function(){SG(c)});this.eventManager.o(this.localization,"locale-changed",function(){SG(c)});this.eventManager.o(this.g,"click",function(){return O(function(d){return G(d,
1715
1716
  c.controls.Ef(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.ld()?"fullscreen_exit":"fullscreen";SG(c)});this.eventManager.o(this.h,"loadedmetadata",function(){RG(c)});this.eventManager.o(this.h,"loadeddata",function(){RG(c)})}pa(QG,jE);function RG(a){a.controls.ee()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function SG(a){a.g.ariaLabel=a.localization.resolve(a.controls.ld()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1716
1717
  P("shaka.ui.FullscreenButton",QG);function TG(){}TG.prototype.create=function(a,b){return new QG(a,b)};AF("fullscreen",new TG);function UG(a,b){jE.call(this,a,b);var c=this;this.g=pn();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.l=W("span");this.l.textContent=this.localization.resolve("LOOP");a.appendChild(this.l);this.j=W("span");this.j.classList.add("shaka-current-selection-span");
1717
- a.appendChild(this.j);this.g.appendChild(a);VG(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){VG(c)});this.eventManager.o(this.localization,"locale-changed",function(){VG(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.Qa();c.h.wa(1)});this.m=this.video.loop;this.h=new Vb(function(){c.m!=c.video.loop&&(VG(c),c.m=c.video.loop)});this.h.wa(1)}pa(UG,jE);
1718
+ a.appendChild(this.j);this.g.appendChild(a);VG(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){VG(c)});this.eventManager.o(this.localization,"locale-changed",function(){VG(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.Sa();c.h.wa(1)});this.m=this.video.loop;this.h=new Vb(function(){c.m!=c.video.loop&&(VG(c),c.m=c.video.loop)});this.h.wa(1)}pa(UG,jE);
1718
1719
  UG.prototype.release=function(){this.h.stop();this.h=null;jE.prototype.release.call(this)};function VG(a){a.l.textContent=a.localization.resolve("LOOP");a.j.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",UG);function WG(){}WG.prototype.create=function(a,b){return new UG(a,b)};cG("loop",new WG);AF("loop",new WG);vE("loop",new WG);function XG(a,b){jE.call(this,a,b);var c=this;this.g=pn();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);YG(this);ZG(this);this.eventManager.o(this.localization,"locale-updated",function(){YG(c)});this.eventManager.o(this.localization,"locale-changed",function(){YG(c)});this.eventManager.o(this.g,"click",function(){c.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});
1719
1720
  this.eventManager.o(this.video,"volumechange",function(){YG(c);ZG(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){YG(c);ZG(c)});this.eventManager.o(this.adManager,"ad-muted",function(){YG(c);ZG(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null;YG(c);ZG(c)})}pa(XG,jE);function YG(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
1720
1721
  function ZG(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",XG);function $G(){}$G.prototype.create=function(a,b){return new XG(a,b)};AF("mute",new $G);function aH(a,b){jE.call(this,a,b);var c=this;this.l=this.controls.l;this.g=pn();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=
@@ -1725,7 +1726,7 @@ function bH(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");var
1725
1726
  function fH(){}fH.prototype.create=function(a,b){return new aH(a,b)};cG("picture_in_picture",new fH);AF("picture_in_picture",new fH);vE("picture_in_picture",new fH);function gH(a,b){yG.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.o(this.localization,"locale-updated",function(){hH(c)});this.eventManager.o(this.localization,"locale-changed",function(){hH(c)});this.eventManager.o(this.player,"loaded",function(){iH(c,c.player.Ua())});this.eventManager.o(this.player,"ratechange",function(){iH(c,
1726
1727
  c.player.Ua())});this.g=new Map(this.controls.g.playbackRates.map(function(d){return[d+"x",d]}));hH(this);jH(this);iH(this,this.player.Ua())}pa(gH,yG);function hH(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")}
1727
1728
  function iH(a,b){var c=lE(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(nE()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
1728
- "x")}function jH(a){for(var b={},c=t(a.g.keys()),d=c.next();!d.done;b={Hd:b.Hd},d=c.next()){b.Hd=d.value;d=pn();var e=W("span");e.textContent=b.Hd;d.appendChild(e);a.eventManager.o(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.Hd);a.video.defaultPlaybackRate=a.g.get(f.Hd)}}(b));a.menu.appendChild(d)}mE(a.menu)}P("shaka.ui.PlaybackRateSelection",gH);function kH(){}kH.prototype.create=function(a,b){return new gH(a,b)};cG("playback_rate",new kH);AF("playback_rate",new kH);function lH(a,b){jE.call(this,a,b);var c=this;this.g=pn();this.g.classList.add("shaka-current-time");uH(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.U()&&(c.video.currentTime=c.player.Ma().end)});this.eventManager.o(this.player,"loading",function(){oE(c.g,!0)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.Z,e=c.controls.Ig(),f=c.player.Ma(),g=f.end-f.start;c.player.U()?(e=Math.max(0,Math.floor(f.end-
1729
+ "x")}function jH(a){for(var b={},c=t(a.g.keys()),d=c.next();!d.done;b={Hd:b.Hd},d=c.next()){b.Hd=d.value;d=pn();var e=W("span");e.textContent=b.Hd;d.appendChild(e);a.eventManager.o(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.Hd);a.video.defaultPlaybackRate=a.g.get(f.Hd)}}(b));a.menu.appendChild(d)}mE(a.menu)}P("shaka.ui.PlaybackRateSelection",gH);function kH(){}kH.prototype.create=function(a,b){return new gH(a,b)};cG("playback_rate",new kH);AF("playback_rate",new kH);function lH(a,b){jE.call(this,a,b);var c=this;this.g=pn();this.g.classList.add("shaka-current-time");uH(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.U()&&(c.video.currentTime=c.player.Oa().end)});this.eventManager.o(this.player,"loading",function(){oE(c.g,!0)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.Z,e=c.controls.Ig(),f=c.player.Oa(),g=f.end-f.start;c.player.U()?(e=Math.max(0,Math.floor(f.end-
1729
1730
  e)),g=3600<=g,1<=e||d?(uH(c,"- "+pE(e,g)),c.g.disabled=!1):(uH(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=g,e=pE(Math.max(0,e-f.start),d),g&&(e+=" / "+pE(g,d)),uH(c,e),c.g.disabled=!0)});this.eventManager.o(this.player,"trackschanged",function(){c.player.U()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))});this.eventManager.o(this.adManager,"ad-started",function(){oE(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){oE(c.g,!0)})}pa(lH,jE);
1730
1731
  function uH(a,b){b!=a.g.textContent&&(a.g.textContent=b)}P("shaka.ui.PresentationTimeTracker",lH);function vH(){}vH.prototype.create=function(a,b){return new lH(a,b)};AF("time_and_duration",new vH);function wH(a,b){jE.call(this,a,b);var c=this;this.g=pn();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");
1731
1732
  a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);xH(this);this.eventManager.o(this.localization,"locale-updated",function(){xH(c)});this.eventManager.o(this.localization,"locale-changed",function(){xH(c)});var d=this.controls.u;this.eventManager.o(this.g,"click",function(){d.g?lF(d.g):Va("Not playing VR content")});this.eventManager.o(d,"vrstatuschanged",function(){oE(c.g,c.controls.Mb())});oE(this.g,this.controls.Mb())}pa(wH,jE);
@@ -1735,11 +1736,12 @@ a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);this
1735
1736
  function BH(a){var b,c;O(function(d){switch(d.g){case 1:if(a.controls.C.ig()&&a.controls.sa){oE(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?oE(a.g,a.player.gd()==qp&&e):oE(a.g,!1)};ta(d,7);if(-1==a.h){d.B(9);break}return G(d,a.video.remote.cancelWatchAvailability(a.h),10)}if(-1==a.h){d.B(0);break}return G(d,a.video.remote.cancelWatchAvailability(a.h),6);case 6:a.h=-1;d.B(0);break;case 10:a.h=-1;
1736
1737
  case 9:va(d,8);break;case 7:wa(d);case 8:return ta(d,11),G(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),I(d)}})}function AH(a){var b=a.localization.resolve("CAST"),c=oc();c&&13<=c&&(b=a.localization.resolve("AIRPLAY"));a.g.ariaLabel=b;a.l.textContent=b}P("shaka.ui.RemoteButton",zH);function CH(){}CH.prototype.create=function(a,b){return new zH(a,b)};cG("remote",new CH);AF("remote",new CH);function DH(a,b){yG.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.o(this.localization,"locale-updated",function(){EH(c)});this.eventManager.o(this.localization,"locale-changed",function(){EH(c)});this.eventManager.o(this.player,"loading",function(){FH(c)});this.eventManager.o(this.player,"variantchanged",function(){FH(c)});this.eventManager.o(this.player,
1737
1738
  "trackschanged",function(){FH(c)});this.eventManager.o(this.player,"abrstatuschanged",function(){FH(c)});FH(this)}pa(DH,yG);
1738
- function FH(a){var b=[];a.player.gd()!=qp&&(b=a.player.Jb());var c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){if(k.language!=c.language||a.controls.g.showAudioChannelCountVariants&&k.channelsCount!=c.channelsCount)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){var m=-1;m=a.player.Lc()?b.findIndex(function(n){return n.bandwidth==k.bandwidth}):b.findIndex(function(n){return n.height==
1739
- k.height&&n.videoBandwidth==k.videoBandwidth&&n.frameRate==k.frameRate&&n.hdr==k.hdr&&n.videoLayout==k.videoLayout});return m==l});a.player.Lc()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):b.sort(function(k,l){return l.height==k.height?l.bandwidth-k.bandwidth:l.height-k.height});var d=kE(a.menu);qn(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;for(var e={},f=t(b),g=f.next();!g.done;e={$b:e.$b},g=f.next()){e.$b=g.value;g=pn();g.classList.add("explicit-resolution");
1740
- a.eventManager.o(g,"click",function(k){return function(){var l=k.$b;a.player.configure({abr:{enabled:!1}});a.player.Af(l,a.controls.g.clearBufferOnQualityChange)}}(e));var h=W("span");h.textContent=a.player.Lc()&&e.$b.bandwidth?Math.round(e.$b.bandwidth/1E3)+" kbits/s":e.$b.height&&e.$b.width?GH(e.$b,b):"Unknown";g.appendChild(h);d||e.$b!=c||(g.ariaSelected="true",g.appendChild(nE()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=pn();e.classList.add("shaka-enable-abr-button");
1741
- a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});FH(a)});a.g=W("span");a.g.classList.add("shaka-auto-span");a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.ariaSelected="true",e.appendChild(nE()),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);mE(a.menu);a.controls.dispatchEvent(new S("resolutionselectionupdated"));
1742
- EH(a);oE(a.button,1<b.length)}function GH(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)");a.videoBandwidth&&b.some(function(f){return f!=a&&f.height==a.height})&&(c+=" ("+Math.round(a.videoBandwidth/1E3)+" kbits/s)");return c}
1739
+ function FH(a){var b=[];a.player.gd()!=qp&&(b=a.player.Jb());var c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){if(k.language!=c.language||a.controls.g.showAudioChannelCountVariants&&k.channelsCount!=c.channelsCount)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.Lc()?b.filter(function(k,l){return b.findIndex(function(m){return m.bandwidth==k.bandwidth})==l}):
1740
+ 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.Lc()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):
1741
+ b.sort(function(k,l){return l.height==k.height?l.bandwidth-k.bandwidth:l.height-k.height});var d=kE(a.menu);qn(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;for(var e={},f=t(b),g=f.next();!g.done;e={$b:e.$b},g=f.next()){e.$b=g.value;g=pn();g.classList.add("explicit-resolution");a.eventManager.o(g,"click",function(k){return function(){var l=k.$b;a.player.configure({abr:{enabled:!1}});a.player.Af(l,a.controls.g.clearBufferOnQualityChange)}}(e));var h=W("span");h.textContent=
1742
+ a.player.Lc()&&e.$b.bandwidth?Math.round(e.$b.bandwidth/1E3)+" kbits/s":e.$b.height&&e.$b.width?GH(e.$b,b):"Unknown";g.appendChild(h);d||e.$b!=c||(g.ariaSelected="true",g.appendChild(nE()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=pn();e.classList.add("shaka-enable-abr-button");a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});FH(a)});a.g=W("span");a.g.classList.add("shaka-auto-span");a.g.textContent=a.localization.resolve("AUTO_QUALITY");
1743
+ e.appendChild(a.g);d&&(e.ariaSelected="true",e.appendChild(nE()),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);mE(a.menu);a.controls.dispatchEvent(new S("resolutionselectionupdated"));EH(a);oE(a.button,1<b.length)}
1744
+ function GH(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}
1743
1745
  function EH(a){var b=a.player.Lc()?"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",DH);function HH(){}
1744
1746
  HH.prototype.create=function(a,b){return new DH(a,b)};cG("quality",new HH);AF("quality",new HH);function IH(a,b){jE.call(this,a,b);var c=this;this.g=pn();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);JH(this);this.h=this.controls.g.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){JH(c)});this.eventManager.o(this.localization,"locale-changed",function(){JH(c)});
1745
1747
  this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Ua())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Uc(d);c.g.setAttribute("shaka-status",d+"x")}})}pa(IH,jE);function JH(a){a.g.ariaLabel=a.localization.resolve("REWIND")}P("shaka.ui.RewindButton",IH);function KH(){}KH.prototype.create=function(a,b){return new IH(a,b)};AF("rewind",new KH);function LH(a,b){jE.call(this,a,b);var c=this;this.g=pn();this.g.classList.add("shaka-save.video-frame-button");this.g.classList.add("shaka-tooltip");this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="download";this.g.appendChild(this.h);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.i=W("span");this.i.textContent=this.localization.resolve("DOWNLOAD_VIDEO_FRAME");a.appendChild(this.i);this.j=W("span");this.j.classList.add("shaka-current-selection-span");