shaka-player 4.11.12 → 4.11.13

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.
@@ -70,10 +70,10 @@ var ob=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=
70
70
  Copyright 2006 The Closure Library Authors
71
71
  SPDX-License-Identifier: Apache-2.0
72
72
  */
73
- function pb(a){var b;a instanceof pb?(qb(this,a.Yb),this.Xc=a.Xc,rb(this,a.bc),sb(this,a.td),this.mb=a.mb,tb(this,a.g.clone()),this.Hc=a.Hc):a&&(b=String(a).match(ob))?(qb(this,b[1]||"",!0),this.Xc=ub(b[2]||""),rb(this,b[3]||"",!0),sb(this,b[4]),this.mb=ub(b[5]||"",!0),tb(this,b[6]||"",!0),this.Hc=ub(b[7]||"")):this.g=new vb(null)}q=pb.prototype;q.Yb="";q.Xc="";q.bc="";q.td=null;q.mb="";q.Hc="";
74
- q.toString=function(){var a=[],b=this.Yb;b&&a.push(xb(b,yb,!0),":");if(b=this.bc){a.push("//");var c=this.Xc;c&&a.push(xb(c,yb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.td;null!=b&&a.push(":",String(b))}if(b=this.mb)this.bc&&"/"!=b.charAt(0)&&a.push("/"),a.push(xb(b,"/"==b.charAt(0)?zb:Ab,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Hc)&&a.push("#",xb(b,Bb));return a.join("")};
75
- q.resolve=function(a){var b=this.clone();"data"===b.Yb&&(b=new pb);var c=!!a.Yb;c?qb(b,a.Yb):c=!!a.Xc;c?b.Xc=a.Xc:c=!!a.bc;c?rb(b,a.bc):c=null!=a.td;var d=a.mb;if(c)sb(b,a.td);else if(c=!!a.mb){if("/"!=d.charAt(0))if(this.bc&&!this.mb)d="/"+d;else{var e=b.mb.lastIndexOf("/");-1!=e&&(d=b.mb.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):".."==
76
- h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.mb=d:c=""!==a.g.toString();c?tb(b,a.g.clone()):c=!!a.Hc;c&&(b.Hc=a.Hc);return b};q.clone=function(){return new pb(this)};function qb(a,b,c){a.Yb=c?ub(b,!0):b;a.Yb&&(a.Yb=a.Yb.replace(/:$/,""))}function rb(a,b,c){a.bc=c?ub(b,!0):b}function sb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.td=b}else a.td=null}
73
+ function pb(a){var b;a instanceof pb?(qb(this,a.Yb),this.Yc=a.Yc,rb(this,a.bc),sb(this,a.td),this.mb=a.mb,tb(this,a.g.clone()),this.Jc=a.Jc):a&&(b=String(a).match(ob))?(qb(this,b[1]||"",!0),this.Yc=ub(b[2]||""),rb(this,b[3]||"",!0),sb(this,b[4]),this.mb=ub(b[5]||"",!0),tb(this,b[6]||"",!0),this.Jc=ub(b[7]||"")):this.g=new vb(null)}q=pb.prototype;q.Yb="";q.Yc="";q.bc="";q.td=null;q.mb="";q.Jc="";
74
+ q.toString=function(){var a=[],b=this.Yb;b&&a.push(xb(b,yb,!0),":");if(b=this.bc){a.push("//");var c=this.Yc;c&&a.push(xb(c,yb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.td;null!=b&&a.push(":",String(b))}if(b=this.mb)this.bc&&"/"!=b.charAt(0)&&a.push("/"),a.push(xb(b,"/"==b.charAt(0)?zb:Ab,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Jc)&&a.push("#",xb(b,Bb));return a.join("")};
75
+ q.resolve=function(a){var b=this.clone();"data"===b.Yb&&(b=new pb);var c=!!a.Yb;c?qb(b,a.Yb):c=!!a.Yc;c?b.Yc=a.Yc:c=!!a.bc;c?rb(b,a.bc):c=null!=a.td;var d=a.mb;if(c)sb(b,a.td);else if(c=!!a.mb){if("/"!=d.charAt(0))if(this.bc&&!this.mb)d="/"+d;else{var e=b.mb.lastIndexOf("/");-1!=e&&(d=b.mb.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):".."==
76
+ h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.mb=d:c=""!==a.g.toString();c?tb(b,a.g.clone()):c=!!a.Jc;c&&(b.Jc=a.Jc);return b};q.clone=function(){return new pb(this)};function qb(a,b,c){a.Yb=c?ub(b,!0):b;a.Yb&&(a.Yb=a.Yb.replace(/:$/,""))}function rb(a,b,c){a.bc=c?ub(b,!0):b}function sb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.td=b}else a.td=null}
77
77
  function tb(a,b,c){b instanceof vb?a.g=b:(c||(b=xb(b,Cb)),a.g=new vb(b))}function ub(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function xb(a,b,c){return null!=a?(a=encodeURI(a).replace(b,Db),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Db(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var yb=/[#\/\?@]/g,Ab=/[#\?:]/g,zb=/[#\?]/g,Cb=/[#\?@]/g,Bb=/#/g;function vb(a){this.g=a||null}
78
78
  function Eb(a){if(!a.fb&&(a.fb={},a.Gd=0,a.g))for(var b=a.g.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}}q=vb.prototype;q.fb=null;q.Gd=null;function Fb(a){Eb(a);return a.Gd}q.add=function(a,b){Eb(this);this.g=null;var c=this.fb.hasOwnProperty(a)?this.fb[a]:null;c||(this.fb[a]=c=[]);c.push(b);this.Gd++;return this};
79
79
  q.set=function(a,b){Eb(this);this.g=null;this.fb.hasOwnProperty(a)?this.fb[a]=[b]:this.add(a,b);return this};q.get=function(a){Eb(this);return this.fb[a]||[]};q.toString=function(){if(this.g)return this.g;if(!this.fb)return"";var a=[],b;for(b in this.fb)for(var c=encodeURIComponent(b),d=this.fb[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="="+encodeURIComponent(d[e]));a.push(f)}return this.g=a.join("&")};
@@ -88,7 +88,7 @@ DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_LIMIT:4028,CONTENT_UNSUPPOR
88
88
  AES_128_INVALID_KEY_LENGTH:4049,DASH_CONFLICTING_AES_128:4050,DASH_UNSUPPORTED_AES_128:4051,DASH_INVALID_PATCH:4052,HLS_EMPTY_MEDIA_PLAYLIST:4053,STREAMING_ENGINE_STARTUP_INVALID_STATE:5006,NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,
89
89
  NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017,MIN_HDCP_VERSION_NOT_MATCH:6018,ERROR_CHECKING_HDCP_VERSION:6019,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,SRC_EQUALS_PRELOAD_NOT_SUPPORTED:7005,CAST_API_UNAVAILABLE:8E3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,
90
90
  CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9E3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,MODIFY_OPERATION_NOT_SUPPORTED:9016,INDEXED_DB_INIT_TIMED_OUT:9017,
91
- CS_IMA_SDK_MISSING:1E4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004,MT_AD_MANAGER_NOT_INITIALIZED:10005,INTERSTITIAL_AD_MANAGER_NOT_INITIALIZED:10006,VAST_INVALID_XML:4001};function Qb(a){this.h=a;this.g=void 0}Qb.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Rb(a,b){return a.length&&b.length&&a!==b?0<Sb(a,b).length:!0}
91
+ CS_IMA_SDK_MISSING:1E4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004,MT_AD_MANAGER_NOT_INITIALIZED:10005,INTERSTITIAL_AD_MANAGER_NOT_INITIALIZED:10006,VAST_INVALID_XML:10007};function Qb(a){this.h=a;this.g=void 0}Qb.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Rb(a,b){return a.length&&b.length&&a!==b?0<Sb(a,b).length:!0}
92
92
  function Sb(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||
93
93
  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}
94
94
  function Tb(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}var Ub=new Qb(function(){return Kb(new Uint8Array([0]))}),Vb=new Map;function Wb(a){this.h=a;this.g=null}Wb.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};Wb.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function Xb(a){this.h=a;this.g=null}Xb.prototype.Sa=function(){this.stop();this.h();return this};Xb.prototype.X=function(a){var b=this;this.stop();this.g=(new Wb(function(){b.h()})).X(a);return this};Xb.prototype.Aa=function(a){var b=this;this.stop();this.g=(new Wb(function(){b.g.X(a);b.h()})).X(a);return this};Xb.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};R("shaka.util.Timer",Xb);Xb.prototype.stop=Xb.prototype.stop;Xb.prototype.tickEvery=Xb.prototype.Aa;
@@ -114,7 +114,7 @@ function Oc(a){var b=Jb(a);a="";b=t(b);for(var c=b.next();!c.done;c=b.next())c=c
114
114
  function Rc(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}
115
115
  function Tc(a,b){b=void 0===b?"cenc":b;var c=[],d=[],e=[];a.forEach(function(g,h){var k=h;22!=k.length&&(k=Lc(Nc(h),!1));var l=g;22!=l.length&&(l=Lc(Nc(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:Jb(Fc(f)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",encryptionScheme:b,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,
116
116
  audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:f,keyIds:new Set(e)}}function Uc(a,b){if(1==b.length)return b[0];a=Vc(a,b);if(null!=a)return a;throw new U(2,4,4025,b);}function Vc(a,b){for(var c=t(Wc[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==Xc?"":null}
117
- function Yc(a,b){var c=[];a=t(Wc[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 Xc="text",Zc={xa:"video",ia:"audio",Na:Xc,Cf:"image",Tk:"application"},$c=1/15,Wc={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 ad(){}function bd(a,b){a=dd(a);b=dd(b);return a.split("-")[0]==b.split("-")[0]}function ed(a,b){a=dd(a);b=dd(b);a=a.split("-");b=b.split("-");return a[0]==b[0]&&1==a.length&&2==b.length}function fd(a,b){a=dd(a);b=dd(b);a=a.split("-");b=b.split("-");return 2==a.length&&2==b.length&&a[0]==b[0]}
117
+ function Yc(a,b){var c=[];a=t(Wc[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 Xc="text",Zc={xa:"video",ia:"audio",Na:Xc,Bf:"image",Tk:"application"},$c=1/15,Wc={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 ad(){}function bd(a,b){a=dd(a);b=dd(b);return a.split("-")[0]==b.split("-")[0]}function ed(a,b){a=dd(a);b=dd(b);a=a.split("-");b=b.split("-");return a[0]==b[0]&&1==a.length&&2==b.length}function fd(a,b){a=dd(a);b=dd(b);a=a.split("-");b=b.split("-");return 2==a.length&&2==b.length&&a[0]==b[0]}
118
118
  function dd(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=gd.get(b)||b;c=c.toUpperCase();return(c?b+"-"+c:b)+(a?"-"+a:"")}function hd(a,b){var c=id(a),d=id(b);return a!=c&&b!=d&&c==d}function jd(a,b){a=dd(a);b=dd(b);return b==a?4:ed(b,a)?3:fd(b,a)?2:ed(a,b)?1:0}
119
119
  function id(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=gd.get(a)||a}function kd(a){return a.language?dd(a.language):a.audio&&a.audio.language?dd(a.audio.language):a.video&&a.video.language?dd(a.video.language):"und"}
120
120
  function ld(a,b){a=dd(a);var c=new Set;b=t(b);for(var d=b.next();!d.done;d=b.next())c.add(dd(d.value));b=t(c);for(d=b.next();!d.done;d=b.next())if(d=d.value,d==a)return d;b=t(c);for(d=b.next();!d.done;d=b.next())if(d=d.value,ed(d,a))return d;b=t(c);for(d=b.next();!d.done;d=b.next())if(d=d.value,fd(d,a))return d;c=t(c);for(b=c.next();!b.done;b=c.next())if(b=b.value,ed(a,b))return b;return null}R("shaka.util.LanguageUtils",ad);ad.findClosestLocale=ld;ad.getLocaleForVariant=kd;
@@ -134,7 +134,7 @@ md.prototype.resolve=md.prototype.resolve;md.prototype.resolveDictionary=md.prot
134
134
  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.Ma();this.g.g={}}};R("shaka.util.EventManager",ud);ud.prototype.removeAll=ud.prototype.Za;ud.prototype.unlisten=ud.prototype.Ma;ud.prototype.listenOnce=ud.prototype.sa;ud.prototype.listen=ud.prototype.o;ud.prototype.release=ud.prototype.release;function vd(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=wd(a,d);this.target.addEventListener(b,c,this.g)}
135
135
  vd.prototype.Ma=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function wd(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 xd(a)?b:b.capture||!1}
136
136
  function xd(a){var b=yd;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}yd=b}return b||!1}var yd=void 0;function zd(a){if(Ad.has(a))return Ad.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);Ad.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),Ad.set(a,b),b):!1}function Bd(){return!!window.SourceBuffer&&!!SourceBuffer.prototype&&!!SourceBuffer.prototype.changeType}var Ad=new Map;function Cd(a,b){this.g=a;this.h=b}Cd.prototype.toString=function(){return"v"+this.g+"."+this.h};function Dd(a,b){var c=new Cd(5,0),d=Ed,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function Fd(a,b,c,d){ab([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function Gd(a,b,c,d){$a([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(" "))}var Ed=null;function Hd(){}Hd.prototype.extract=function(){};Hd.prototype.decode=function(){return[]};Hd.prototype.clear=function(){};Hd.prototype.getStreams=function(){return[]};function Id(){}Id.prototype.init=function(){};Id.prototype.parse=function(){return[]};function Jd(){}Jd.prototype.init=function(){};Jd.prototype.i=function(){};Jd.prototype.g=function(){};Jd.prototype.j=function(){};R("shaka.media.IClosedCaptionParser",Jd);function Kd(a){this.l=new Id;if(a=Ld[a.toLowerCase()])this.l=a();this.h=new Hd;if(a=Md)this.h=a()}Kd.prototype.init=function(a,b){(void 0===b?0:b)||this.g();this.l.init(a)};Kd.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=Jb(b.packet);0<c.length&&this.h.extract(c,b.pts)}return this.h.decode()};
137
- Kd.prototype.g=function(){this.h.clear()};Kd.prototype.j=function(){return this.h.getStreams()};R("shaka.media.ClosedCaptionParser",Kd);Kd.findDecoder=function(){return Md};Kd.unregisterDecoder=function(){Md=null};Kd.registerDecoder=function(a){Md=a};Kd.findParser=function(a){return Ld[a]};Kd.unregisterParser=function(a){delete Ld[a]};Kd.registerParser=function(a,b){Ld[a]=b};var Ld={},Md=null;function Nd(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Od;this.scroll=Pd}R("shaka.text.CueRegion",Nd);var Od=1;Nd.units={PX:0,PERCENTAGE:Od,LINES:2};var Pd="";Nd.scrollMode={NONE:Pd,UP:"up"};function Qd(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function Sd(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function Td(a,b,c){c||(c=Qd);if(a.length!=b.length)return!1;b=b.slice();a=t(a);for(var d=a.next(),e={};!d.done;e={Rh:void 0},d=a.next()){e.Rh=d.value;d=b.findIndex(function(f){return function(g){return c(f.Rh,g)}}(e));if(-1==d)return!1;b[d]=b[b.length-1];b.pop()}return 0==b.length}
137
+ Kd.prototype.g=function(){this.h.clear()};Kd.prototype.j=function(){return this.h.getStreams()};R("shaka.media.ClosedCaptionParser",Kd);Kd.findDecoder=function(){return Md};Kd.unregisterDecoder=function(){Md=null};Kd.registerDecoder=function(a){Md=a};Kd.findParser=function(a){return Ld[a]};Kd.unregisterParser=function(a){delete Ld[a]};Kd.registerParser=function(a,b){Ld[a]=b};var Ld={},Md=null;function Nd(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Od;this.scroll=Pd}R("shaka.text.CueRegion",Nd);var Od=1;Nd.units={PX:0,PERCENTAGE:Od,LINES:2};var Pd="";Nd.scrollMode={NONE:Pd,UP:"up"};function Qd(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function Rd(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function Td(a,b,c){c||(c=Qd);if(a.length!=b.length)return!1;b=b.slice();a=t(a);for(var d=a.next(),e={};!d.done;e={Rh:void 0},d=a.next()){e.Rh=d.value;d=b.findIndex(function(f){return function(g){return c(f.Rh,g)}}(e));if(-1==d)return!1;b[d]=b[b.length-1];b.pop()}return 0==b.length}
138
138
  function Ud(a,b,c){c||(c=Qd);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 Vd(a){this.h=a||"";this.g=0}function Wd(a){Xd(a,/[ \t]+/gm)}function Xd(a,b){b.lastIndex=a.g;b=b.exec(a.h);b=null==b?null:{position:b.index,length:b[0].length,results:b};if(a.g==a.h.length||null==b||b.position!=a.g)return null;a.g+=b.length;return b.results}function Yd(a){return a.g==a.h.length?null:(a=Xd(a,/[^ \t\n]*/gm))?a[0]:null}
139
139
  function Zd(a){a=Xd(a,$d);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:(Number(a[6])||0)/1E3+c+60*b+3600*(Number(a[1])||0)}function ae(a){return a?Zd(new Vd(a)):null}var $d=/(?:(\d{1,}):)?(\d{2}):(\d{2})((\.(\d{1,3})))?/g;function be(a){function b(d){switch(typeof d){case "undefined":case "boolean":case "number":case "string":case "symbol":case "function":return d;default:if(!d||d.buffer instanceof ArrayBuffer)return d;if(c.has(d))return null;var e=d.constructor==Array;if(d.constructor!=Object&&!e)return null;c.add(d);var f=e?[]:{},g;for(g in d)f[g]=b(d[g]);e&&(f.length=d.length);return f}}var c=new WeakSet;return b(a)}function ce(a){var b={},c;for(c in a)b[c]=a[c];return b};/*
140
140
  @license
@@ -157,20 +157,20 @@ function He(a){var b=[];a=Ic(a).split(/\/+(?=(?:[^'"]*['"][^'"]*['"])*[^'"]*$)/)
157
157
  null})}else c.startsWith("@")&&b.length&&(b[b.length-1].pc=c.slice(1))}return b}
158
158
  function Ie(a,b){var c=He(b.attributes.sel||"");if(c.length){var d=c[c.length-1],e=b.attributes.pos||null;c=d.position;null==c&&(null!==d.t&&(c=Je(a,"t",d.t)),null!==d.n&&(c=Je(a,"n",d.n)));null===c?c="prepend"===e?0:a.length:"prepend"===e?--c:"after"===e&&++c;e=b.tagName;(d=d.pc)&&a[c]?Ke(a[c],e,d,qe(b)||""):("remove"!==e&&"replace"!==e||a.splice(c,1),"add"!==e&&"replace"!==e||a.splice.apply(a,[c,0].concat(x(b.children))))}}
159
159
  function Je(a,b,c){var d=0;a=t(a);for(var e=a.next();!e.done;e=a.next()){if(Number(e.value.attributes[b])===c)return d;d++}return null}function Ke(a,b,c,d){if("remove"===b)delete a.attributes[c];else if("add"===b||"replace"===b)a.attributes[c]=d}
160
- function Ne(a){var b="",c=a.tagName.split(":");0<c.length&&(b=c[0],b=le.has(b)?le.get(b):"");b=document.createElementNS(b,a.tagName);for(var d in a.attributes)b.setAttribute(d,a.attributes[d]);a=t(a.children);for(d=a.next();!d.done;d=a.next())d=d.value,c=void 0,"string"==typeof d?c=new Text(d):c=Ne(d),b.appendChild(c);return b}
161
- function Oe(a){if(!a)return null;var b={tagName:a.tagName,attributes:ce(a.attributes),children:[],parent:null};a=t(a.children);for(var c=a.next();!c.done;c=a.next())c=c.value,"string"===typeof c?b.children.push(c):(c=Oe(c),c.parent=b,b.children.push(c));return b}var ie=new Map,le=new Map;function Qe(a,b,c){this.startTime=a;this.endTime=b;this.payload=c;this.region=new Nd;this.position=null;this.positionAlign=Re;this.size=0;this.textAlign=Se;this.direction=Te;this.writingMode=Ue;this.lineInterpretation=Ve;this.line=null;this.lineHeight="";this.lineAlign=We;this.displayAlign=Xe;this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=Ye;this.fontStyle=Ze;this.linePadding=this.letterSpacing=this.fontFamily="";this.opacity=1;this.textCombineUpright=
162
- "";this.textDecoration=[];this.textStrokeWidth=this.textStrokeColor=this.textShadow="";this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.rubyTag=null;this.cellResolution={Gc:32,rows:15}}function $e(a,b){a=new Qe(a,b,"");a.lineBreak=!0;return a}Qe.prototype.clone=function(){var a=new Qe(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
160
+ function Le(a){var b="",c=a.tagName.split(":");0<c.length&&(b=c[0],b=le.has(b)?le.get(b):"");b=document.createElementNS(b,a.tagName);for(var d in a.attributes)b.setAttribute(d,a.attributes[d]);a=t(a.children);for(d=a.next();!d.done;d=a.next())d=d.value,c=void 0,"string"==typeof d?c=new Text(d):c=Le(d),b.appendChild(c);return b}
161
+ function Oe(a){if(!a)return null;var b={tagName:a.tagName,attributes:ce(a.attributes),children:[],parent:null};a=t(a.children);for(var c=a.next();!c.done;c=a.next())c=c.value,"string"===typeof c?b.children.push(c):(c=Oe(c),c.parent=b,b.children.push(c));return b}var ie=new Map,le=new Map;function Pe(a,b,c){this.startTime=a;this.endTime=b;this.payload=c;this.region=new Nd;this.position=null;this.positionAlign=Re;this.size=0;this.textAlign=Se;this.direction=Te;this.writingMode=Ue;this.lineInterpretation=Ve;this.line=null;this.lineHeight="";this.lineAlign=We;this.displayAlign=Xe;this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=Ye;this.fontStyle=Ze;this.linePadding=this.letterSpacing=this.fontFamily="";this.opacity=1;this.textCombineUpright=
162
+ "";this.textDecoration=[];this.textStrokeWidth=this.textStrokeColor=this.textShadow="";this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.rubyTag=null;this.cellResolution={Ic:32,rows:15}}function $e(a,b){a=new Pe(a,b,"");a.lineBreak=!0;return a}Pe.prototype.clone=function(){var a=new Pe(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
163
163
  function af(a,b){if(a.startTime!=b.startTime||a.endTime!=b.endTime||a.payload!=b.payload)return!1;for(var c in a)if("startTime"!=c&&"endTime"!=c&&"payload"!=c)if("nestedCues"==c){if(!Ud(a.nestedCues,b.nestedCues,af))return!1}else if("region"==c||"cellResolution"==c)for(var d in a[c]){if(a[c][d]!=b[c][d])return!1}else if(Array.isArray(a[c])){if(!Ud(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}
164
164
  function bf(a,b){b=void 0===b?new Map:b;var c=a.payload;if(c.includes("<")){0===b.size&&cf(b);var d=c;c=[];for(var e=-1,f=0;f<d.length;f++)"<"===d[f]?e=f+1:">"===d[f]&&0<e&&(e=d.substr(e,f-e),e.match(df)&&c.push(e),e=-1);c=t(c);for(f=c.next();!f.done;f=c.next())f=f.value,d=d.replace("<"+f+">",'<div time="'+f+'">'),d+="</div>";a:{f=d;e=[];var g=-1;c="";d=!1;for(var h=0;h<f.length;h++)if("/"===f[h]){var k=f.indexOf(">",h);if(-1===k){c=f;break a}if((k=f.substring(h+1,k))&&"v"==k){d=!0;var l=null;e.length&&
165
165
  (l=e[e.length-1]);if(l){if(l===k)c+="/"+k+">";else{if(!l.startsWith("v")){c+=f[h];continue}c+="/"+l+">"}h+=k.length+1}else c+=f[h]}else c+=f[h]}else"<"===f[h]?(g=h+1,"v"!=f[g]&&(g=-1)):">"===f[h]&&0<g&&(e.push(f.substr(g,h-g)),g=-1),c+=f[h];f=t(e);for(e=f.next();!e.done;e=f.next())e=e.value,g=e.replace(" ",".voice-"),c=c.replace("<"+e+">","<"+g+">"),c=c.replace("</"+e+">","</"+g+">"),d||(c+="</"+g+">")}c=ef(c);a.payload="";try{var m=ee("<span>"+c+"</span>","span")}catch(n){}if(m)if(m=m.children,1!=
166
- m.length||m[0].tagName)for(m=t(m),c=m.next();!c.done;c=m.next())ff(c.value,a,b);else a.payload=Ic(c);else a.payload=Ic(c)}else a.payload=Ic(c)}function cf(a){for(var b=t(Object.entries(gf)),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;var e=new Qe(0,0,"");e.color=d;a.set("."+c,e)}b=t(Object.entries(hf));for(c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,e=new Qe(0,0,""),e.backgroundColor=d,a.set("."+c,e)}
166
+ m.length||m[0].tagName)for(m=t(m),c=m.next();!c.done;c=m.next())ff(c.value,a,b);else a.payload=Ic(c);else a.payload=Ic(c)}else a.payload=Ic(c)}function cf(a){for(var b=t(Object.entries(gf)),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;var e=new Pe(0,0,"");e.color=d;a.set("."+c,e)}b=t(Object.entries(hf));for(c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,e=new Pe(0,0,""),e.backgroundColor=d,a.set("."+c,e)}
167
167
  function ef(a){var b={"< ":""," >":" &gt;"},c=/(< +>|<\s|\s>)/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return b[e]||""}):a||""}
168
168
  function ff(a,b,c){var d=b.clone();d.nestedCues=[];d.payload="";d.rubyTag="";d.line=null;d.region=new Nd;d.position=null;d.size=0;d.textAlign=Se;if(a.tagName)for(var e=t(a.tagName.split(/(?=[ .])+/g)),f=e.next();!f.done;f=e.next()){var g=f=f.value;if(g.startsWith(".voice-")){var h=g.split("-").pop();g='v[voice="'+h+'"]';c.has(g)||(g="v[voice="+h+"]")}c.has(g)&&(h=d,g=c.get(g))&&(h.backgroundColor=jf(g.backgroundColor,h.backgroundColor),h.color=jf(g.color,h.color),h.fontFamily=jf(g.fontFamily,h.fontFamily),
169
169
  h.fontSize=jf(g.fontSize,h.fontSize),h.textShadow=jf(g.textShadow,h.textShadow),h.fontWeight=g.fontWeight,h.fontStyle=g.fontStyle,h.opacity=g.opacity,h.rubyTag=g.rubyTag,h.textCombineUpright=g.textCombineUpright,h.wrapLine=g.wrapLine);switch(f){case "br":d=$e(d.startTime,d.endTime);b.nestedCues.push(d);return;case "b":d.fontWeight=kf;break;case "i":d.fontStyle=lf;break;case "u":d.textDecoration.push(mf);break;case "font":if(f=a.attributes.color)d.color=f;break;case "div":f=a.attributes.time;if(!f)break;
170
- if(f=ae(f))d.startTime=f;break;case "ruby":case "rp":case "rt":d.rubyTag=f}}e=a.children;if(me(a)||1==e.length&&me(e[0]))for(c=pe(a).split("\n"),a=!0,c=t(c),e=c.next();!e.done;e=c.next())e=e.value,a||(a=$e(d.startTime,d.endTime),b.nestedCues.push(a)),0<e.length&&(a=d.clone(),a.payload=Ic(e),b.nestedCues.push(a)),a=!1;else for(b.nestedCues.push(d),b=t(e),a=b.next();!a.done;a=b.next())ff(a.value,d,c)}function jf(a,b){return a&&0<a.length?a:b}R("shaka.text.Cue",Qe);Qe.parseCuePayload=bf;Qe.equal=af;
171
- Qe.prototype.clone=Qe.prototype.clone;var Re="auto";Qe.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:Re};var Se="center",nf={LEFT:"left",RIGHT:"right",CENTER:Se,START:"start",END:"end"};Qe.textAlign=nf;var Xe="after",of={BEFORE:"before",CENTER:"center",AFTER:Xe};Qe.displayAlign=of;var Te="ltr";Qe.direction={HORIZONTAL_LEFT_TO_RIGHT:Te,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var Ue="horizontal-tb";Qe.writingMode={HORIZONTAL_TOP_TO_BOTTOM:Ue,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};
172
- var Ve=0;Qe.lineInterpretation={LINE_NUMBER:Ve,PERCENTAGE:1};var We="start",pf={CENTER:"center",START:We,END:"end"};Qe.lineAlign=pf;var gf={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};Qe.defaultTextColor=gf;var hf={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};Qe.defaultTextBackgroundColor=hf;var Ye=400,kf=700;Qe.fontWeight={NORMAL:Ye,BOLD:kf};
173
- var Ze="normal",lf="italic",qf={NORMAL:Ze,ITALIC:lf,OBLIQUE:"oblique"};Qe.fontStyle=qf;var mf="underline";Qe.textDecoration={UNDERLINE:mf,LINE_THROUGH:"lineThrough",OVERLINE:"overline"};var df=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function rf(){}rf.prototype.destroy=function(){};function sf(a,b,c){tf[a.toLowerCase().split(";")[0]+"-"+c]={priority:c,Ze:b}}function uf(a,b){for(var c=a.toLowerCase().split(";")[0],d=t([vf,wf,xf,yf]),e=d.next();!e.done;e=d.next())if(e=tf[c+"-"+e.value]){var f=e.Ze(),g=f.isSupported(a,b);f.destroy();if(g)return e.Ze}return null}R("shaka.transmuxer.TransmuxerEngine",rf);rf.findTransmuxer=uf;rf.unregisterTransmuxer=function(a,b){delete tf[a.toLowerCase().split(";")[0]+"-"+b]};
170
+ if(f=ae(f))d.startTime=f;break;case "ruby":case "rp":case "rt":d.rubyTag=f}}e=a.children;if(me(a)||1==e.length&&me(e[0]))for(c=pe(a).split("\n"),a=!0,c=t(c),e=c.next();!e.done;e=c.next())e=e.value,a||(a=$e(d.startTime,d.endTime),b.nestedCues.push(a)),0<e.length&&(a=d.clone(),a.payload=Ic(e),b.nestedCues.push(a)),a=!1;else for(b.nestedCues.push(d),b=t(e),a=b.next();!a.done;a=b.next())ff(a.value,d,c)}function jf(a,b){return a&&0<a.length?a:b}R("shaka.text.Cue",Pe);Pe.parseCuePayload=bf;Pe.equal=af;
171
+ Pe.prototype.clone=Pe.prototype.clone;var Re="auto";Pe.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:Re};var Se="center",nf={LEFT:"left",RIGHT:"right",CENTER:Se,START:"start",END:"end"};Pe.textAlign=nf;var Xe="after",of={BEFORE:"before",CENTER:"center",AFTER:Xe};Pe.displayAlign=of;var Te="ltr";Pe.direction={HORIZONTAL_LEFT_TO_RIGHT:Te,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var Ue="horizontal-tb";Pe.writingMode={HORIZONTAL_TOP_TO_BOTTOM:Ue,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};
172
+ var Ve=0;Pe.lineInterpretation={LINE_NUMBER:Ve,PERCENTAGE:1};var We="start",pf={CENTER:"center",START:We,END:"end"};Pe.lineAlign=pf;var gf={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};Pe.defaultTextColor=gf;var hf={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};Pe.defaultTextBackgroundColor=hf;var Ye=400,kf=700;Pe.fontWeight={NORMAL:Ye,BOLD:kf};
173
+ var Ze="normal",lf="italic",qf={NORMAL:Ze,ITALIC:lf,OBLIQUE:"oblique"};Pe.fontStyle=qf;var mf="underline";Pe.textDecoration={UNDERLINE:mf,LINE_THROUGH:"lineThrough",OVERLINE:"overline"};var df=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function rf(){}rf.prototype.destroy=function(){};function sf(a,b,c){tf[a.toLowerCase().split(";")[0]+"-"+c]={priority:c,Ze:b}}function uf(a,b){for(var c=a.toLowerCase().split(";")[0],d=t([vf,wf,xf,yf]),e=d.next();!e.done;e=d.next())if(e=tf[c+"-"+e.value]){var f=e.Ze(),g=f.isSupported(a,b);f.destroy();if(g)return e.Ze}return null}R("shaka.transmuxer.TransmuxerEngine",rf);rf.findTransmuxer=uf;rf.unregisterTransmuxer=function(a,b){delete tf[a.toLowerCase().split(";")[0]+"-"+b]};
174
174
  rf.registerTransmuxer=sf;rf.prototype.destroy=rf.prototype.destroy;var tf={},yf=1,xf=2,wf=3,vf=4;rf.PluginPriority={FALLBACK:yf,PREFERRED_SECONDARY:xf,PREFERRED:wf,APPLICATION:vf};function zf(){}function Af(a,b){var c=a;b&&!Bf.includes(a)&&(c+='; codecs="'+b+'"');return c}function Cf(a,b){b&&(a+='; codecs="'+b+'"');return a}function Df(a,b,c){var d=Af(a,b);b=Cf(a,b);uf(b)?(a=uf(b))?(a=a(),c=a.convertCodecs(c,b),a.destroy()):c=b:c="video/mp2t"!=a&&"audio"==c?d.replace("video","audio"):d;return c}
175
175
  function Ef(a,b,c){var d=[b];Ff.forEach(function(e,f){var g=a[f];"codecs"==f?Bf.includes(a.mimeType)||d.push('codecs="'+c+'"'):g&&d.push(e+'="'+g+'"')});"PQ"==a.hdr&&d.push('eotf="smpte2084"');return d.join(";")}function Gf(a){return a.split(";")[0].split("/")[1]}
176
176
  function Hf(a){var b=If(a);a=b[0];b=b[1].toLowerCase();switch(!0){case "mp4a"===a&&"69"===b:case "mp4a"===a&&"6b"===b:case "mp4a"===a&&"40.34"===b:return"mp3";case "mp4a"===a&&"66"===b:case "mp4a"===a&&"67"===b:case "mp4a"===a&&"68"===b:case "mp4a"===a&&"40.2"===b:case "mp4a"===a&&"40.02"===b:case "mp4a"===a&&"40.5"===b:case "mp4a"===a&&"40.05"===b:case "mp4a"===a&&"40.29"===b:case "mp4a"===a&&"40.42"===b:return"aac";case "mp4a"===a&&"a5"===b:return"ac-3";case "mp4a"===a&&"a6"===b:return"ec-3";case "mp4a"===
@@ -182,7 +182,7 @@ Nf.prototype.remove=function(a,b){var c=this;return P(function(d){if(1==d.g)retu
182
182
  function Uf(a,b,c){b.startTime+=c;b.endTime+=c;b=t(b.nestedCues);for(var d=b.next();!d.done;d=b.next())Uf(a,d.value,c)}
183
183
  function Vf(a,b,c,d,e){var f=c+" "+d,g=new Map;b=t(b);for(var h=b.next();!h.done;h=b.next()){var k=h.value;h=k.stream;k=k.cue;g.has(h)||g.set(h,new Map);g.get(h).has(f)||g.get(h).set(f,[]);Uf(a,k,e);k.startTime>=a.l&&k.startTime<a.m&&(g.get(h).get(f).push(k),h==a.G&&a.j.append([k]))}e=t(g.keys());for(f=e.next();!f.done;f=e.next())for(f=f.value,a.s.has(f)||a.s.set(f,new Map),b=t(g.get(f).keys()),h=b.next();!h.done;h=b.next())h=h.value,k=g.get(f).get(h),a.s.get(f).set(h,k);a.g=null==a.g?Math.max(c,
184
184
  a.l):Math.min(a.g,Math.max(c,a.l));a.h=Math.max(a.h,Math.min(d,a.m))}R("shaka.text.TextEngine",Nf);Nf.prototype.destroy=Nf.prototype.destroy;Nf.findParser=function(a){return Pf[a]};Nf.unregisterParser=function(a){delete Pf[a]};Nf.registerParser=function(a,b){Pf[a]=b};var Pf={};function Wf(a,b){return a.concat(b)}function Xf(){}function Yf(a){return null!=a};function Zf(){}
185
- function dg(a,b,c,d){var e=a.variants;if(b.length||c.length)e=eg(e,b,c);if(d.length){b=new hb;e=t(e);for(c=e.next();!c.done;c=e.next())c=c.value,b.push(String(c.video.width||0),c);var f=[];b.forEach(function(v,w){v=0;var y=[];w=t(w);for(var z=w.next(),B={};!z.done;B={uf:void 0},z=w.next())B.uf=z.value,z=d.filter(function(A){return function(C){return A.uf.decodingInfos[0][C]}}(B)).length,z>v?(v=z,y=[B.uf]):z==v&&y.push(B.uf);f.push.apply(f,x(y))});e=f}c=new Set;b=new Set;e=t(e);for(var g=e.next();!g.done;g=
185
+ function dg(a,b,c,d){var e=a.variants;if(b.length||c.length)e=eg(e,b,c);if(d.length){b=new hb;e=t(e);for(c=e.next();!c.done;c=e.next())c=c.value,b.push(String(c.video.width||0),c);var f=[];b.forEach(function(v,w){v=0;var y=[];w=t(w);for(var z=w.next(),B={};!z.done;B={tf:void 0},z=w.next())B.tf=z.value,z=d.filter(function(A){return function(C){return A.tf.decodingInfos[0][C]}}(B)).length,z>v?(v=z,y=[B.tf]):z==v&&y.push(B.tf);f.push.apply(f,x(y))});e=f}c=new Set;b=new Set;e=t(e);for(var g=e.next();!g.done;g=
186
186
  e.next())g=g.value,g.audio&&c.add(g.audio),g.video&&b.add(g.video);c=Array.from(c).sort(function(v,w){return v.bandwidth-w.bandwidth});var h=[];e=new Map;c=t(c);for(g=c.next();!g.done;g=c.next()){g=g.value;var k=g.language+(g.channelsCount||0)+(g.audioSamplingRate||0)+g.roles.join(",")+g.label+g.groupId+g.fastSwitching,l=e.get(k)||[];if(l.length){var m=l[l.length-1],n=Hf(m.codecs),p=Hf(g.codecs);n!=p||g.bandwidth&&m.bandwidth&&!(g.bandwidth>m.bandwidth)||(l.push(g),h.push(g.id))}else l.push(g),h.push(g.id);
187
187
  e.set(k,l)}var r={vp8:1,avc:1,"dovi-avc":.95,vp9:.9,vp09:.9,hevc:.85,"dovi-hevc":.8,av01:.75,"dovi-av1":.7,vvc:.65};c=Array.from(b).sort(function(v,w){if(!v.bandwidth||!w.bandwidth||v.bandwidth==w.bandwidth){if(v.codecs&&w.codecs&&v.codecs!=w.codecs&&v.width==w.width){var y=Hf(v.codecs),z=Hf(w.codecs);if(y!=z)return(r[y]||1)-(r[z]||1)}return v.width-w.width}return v.bandwidth-w.bandwidth});b=Bd();var u=[];e=new Map;c=t(c);for(g=c.next();!g.done;g=c.next()){g=g.value;k=Math.round(g.frameRate||0)+(g.hdr||
188
188
  "")+g.fastSwitching;l=e.get(k)||[];if(l.length){m=l[l.length-1];if(!b&&(n=Hf(m.codecs),p=Hf(g.codecs),n!==p))continue;g.width>m.width||g.height>m.height?(l.push(g),u.push(g.id)):g.width==m.width&&g.height==m.height&&(n=Hf(m.codecs),p=Hf(g.codecs),n!=p||g.bandwidth&&m.bandwidth&&!(g.bandwidth>m.bandwidth)||(l.push(g),u.push(g.id)))}else l.push(g),u.push(g.id);e.set(k,l)}a.variants=a.variants.filter(function(v){var w=v.audio;v=v.video;return w&&!h.includes(w.id)||v&&!u.includes(v.id)?!1:!0})}
@@ -243,21 +243,21 @@ function lh(a){var b,c;return P(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,
243
243
  function sh(a){return new nh(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}nh.prototype.finally=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
244
244
  nh.prototype.Ua=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=th(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new mh,g=new U(2,7,7001);this.promise.then(c(!0),c(!1));return new nh(f,function(){return d()})};
245
245
  function th(a,b,c){try{var d=a(b);if(d&&d.promise&&d.abort)return c.resolve(d.promise),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){},function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}}fa.Object.defineProperties(nh.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.g}}});R("shaka.util.AbortableOperation",nh);nh.prototype.chain=nh.prototype.Ua;nh.prototype["finally"]=nh.prototype.finally;
246
- nh.all=sh;nh.prototype.abort=nh.prototype.abort;nh.notAbortable=rh;nh.completed=qh;nh.aborted=ph;nh.failed=oh;function uh(){this.g=[]}function vh(a,b){a.g.push(b.finally(function(){Sd(a.g,b)}))}uh.prototype.destroy=function(){for(var a=[],b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise.catch(function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function wh(a,b,c,d,e,f){ib.call(this);this.i=!1;this.s=new uh;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.C=c||null;this.G=d||null;this.I=e||null;this.H=f||null;this.u=this.A=!1;this.m=16E3}ra(wh,ib);q=wh.prototype;q.Xg=function(a){this.A=a};q.Yg=function(a){this.u=a};function xh(a,b,c,d){c=c||yh;var e=zh[a];if(!e||c>=e.priority)zh[a]={priority:c,Ze:b,ik:void 0===d?!1:d}}
246
+ nh.all=sh;nh.prototype.abort=nh.prototype.abort;nh.notAbortable=rh;nh.completed=qh;nh.aborted=ph;nh.failed=oh;function uh(){this.g=[]}function vh(a,b){a.g.push(b.finally(function(){Rd(a.g,b)}))}uh.prototype.destroy=function(){for(var a=[],b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise.catch(function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function wh(a,b,c,d,e,f){ib.call(this);this.i=!1;this.s=new uh;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.C=c||null;this.G=d||null;this.I=e||null;this.H=f||null;this.u=this.A=!1;this.m=16E3}ra(wh,ib);q=wh.prototype;q.Xg=function(a){this.A=a};q.Yg=function(a){this.u=a};function xh(a,b,c,d){c=c||yh;var e=zh[a];if(!e||c>=e.priority)zh[a]={priority:c,Ze:b,ik:void 0===d?!1:d}}
247
247
  function Ah(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())b.g.add(d.value);a=t(a.h);for(c=a.next();!c.done;c=a.next())b.h.add(c.value)}q.lk=function(a){this.g.add(a)};q.Ok=function(a){this.g.delete(a)};q.wh=function(){this.g.clear()};q.nk=function(a){this.h.add(a)};q.Pk=function(a){this.h.delete(a)};q.xh=function(){this.h.clear()};
248
248
  function Dh(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===c?null:c}}q.destroy=function(){this.i=!0;this.g.clear();this.h.clear();ib.prototype.release.call(this);return this.s.destroy()};
249
249
  q.request=function(a,b,c){var d=this,e=new Eh;if(this.i){var f=Promise.reject(new U(2,7,7001));f.catch(function(){});return new Fh(f,function(){return Promise.resolve()},e)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?be(b.retryParameters):kh();b.uris=be(b.uris);f=Gh(this,a,b,c);var g=f.Ua(function(){return Hh(d,a,b,c,new jh(b.retryParameters,!1),0,null,e)}),h=g.Ua(function(p){return Ih(d,a,p,c)}),k=Date.now(),l=0;f.promise.then(function(){l=Date.now()-k},function(){});
250
250
  var m=0;g.promise.then(function(){m=Date.now()},function(){});var n=h.Ua(function(p){var r=Date.now()-m,u=p.response;u.timeMs+=l;u.timeMs+=r;p.Mj||!d.l||u.fromCache||"HEAD"==b.method||a!=Jh||d.l(u.timeMs,u.data.byteLength,Kh(c));d.H&&d.H(a,u,c);return u},function(p){p&&(p.severity=2);throw p;});f=new Fh(n.promise,function(){return n.abort()},e);vh(this.s,f);return f};
251
251
  function Gh(a,b,c,d){function e(h){f=f.Ua(function(){c.body&&(c.body=Kb(c.body));return h(b,c,d)})}var f=qh(void 0);a.G&&e(a.G);a=t(a.g);for(var g=a.next();!g.done;g=a.next())e(g.value);return f.Ua(void 0,function(h){if(h instanceof U&&7001==h.code)throw h;throw new U(2,1,1006,h);})}
252
252
  function Hh(a,b,c,d,e,f,g,h){a.A&&(c.uris[f]=c.uris[f].replace("https://","http://"));a.u&&(c.uris[f]=c.uris[f].replace("http://","https://"));0<f&&a.I&&a.I(b,d,c.uris[f],c.uris[f-1]);var k=new pb(c.uris[f]),l=k.Yb,m=!1;l||(l=location.protocol,l=l.slice(0,-1),qb(k,l),c.uris[f]=k.toString());l=l.toLowerCase();var n=(l=zh[l])?l.Ze:null;if(!n)return oh(new U(2,1,1E3,k));var p=l.ik,r=null,u=null,v=!1,w=!1,y;return rh(lh(e)).Ua(function(){if(a.i)return ph();y=Date.now();var z=0;c.requestStartTime=Date.now();
253
- var B=n(c.uris[f],c,b,function(D,E,H){r&&r.stop();u&&u.X(C/1E3);a.l&&b==Jh&&(z++,c.packetNumber=z,a.l(D,E,Kh(d),c),m=!0,h.g=H)},function(D){a.j&&a.j(D,c,b);w=!0;c.timeToFirstByte=Date.now()-c.requestStartTime},{minBytesForProgressEvents:a.m});if(!p)return B;var A=c.retryParameters.connectionTimeout;A&&(r=new Xb(function(){v=!0;B.abort()}),r.X(A/1E3));var C=c.retryParameters.stallTimeout;C&&(u=new Xb(function(){v=!0;B.abort()}));return B}).Ua(function(z){r&&r.stop();u&&u.stop();void 0==z.timeMs&&(z.timeMs=
253
+ var B=n(c.uris[f],c,b,function(D,E,H){r&&r.stop();u&&u.X(C/1E3);a.l&&b==Jh&&(z++,c.packetNumber=z,a.l(D,E,Kh(d),c),m=!0,h.g=H)},function(D){w=!0;c.timeToFirstByte=Date.now()-c.requestStartTime;a.j&&a.j(D,c,b)},{minBytesForProgressEvents:a.m});if(!p)return B;var A=c.retryParameters.connectionTimeout;A&&(r=new Xb(function(){v=!0;B.abort()}),r.X(A/1E3));var C=c.retryParameters.stallTimeout;C&&(u=new Xb(function(){v=!0;B.abort()}));return B}).Ua(function(z){r&&r.stop();u&&u.stop();void 0==z.timeMs&&(z.timeMs=
254
254
  Date.now()-y);var B={response:z,Mj:m};!w&&a.j&&a.j(z.headers,c,b);return B},function(z){r&&r.stop();u&&u.stop();if(a.C){var B=null,A=0;z instanceof U&&(B=z,1001==z.code&&(A=z.data[1]));a.C(c,B,A,v)}if(a.i)return ph();v&&(z=new U(1,1,1003,c.uris[f],b));if(z instanceof U){if(7001==z.code)throw z;if(1010==z.code)throw g;if(1==z.severity)return B=(new Map).set("error",z),B=new T("retry",B),a.dispatchEvent(B),f=(f+1)%c.uris.length,Hh(a,b,c,d,e,f,z,h)}throw z;})}
255
255
  function Ih(a,b,c,d){var e=qh(void 0);a=t(a.h);for(var f=a.next(),g={};!f.done;g={ji:void 0},f=a.next())g.ji=f.value,e=e.Ua(function(h){return function(){var k=c.response;k.data&&(k.data=Kb(k.data));return(0,h.ji)(b,k,d)}}(g));return e.Ua(function(){return c},function(h){var k=2;if(h instanceof U){if(7001==h.code)throw h;k=h.severity}throw new U(k,1,1007,h);})}function Kh(a){if(a){var b=a.segment;a=a.stream;if(b&&a&&a.fastSwitching&&b.s)return!1}return!0}R("shaka.net.NetworkingEngine",wh);
256
256
  wh.prototype.request=wh.prototype.request;wh.prototype.destroy=wh.prototype.destroy;wh.makeRequest=Dh;wh.defaultRetryParameters=function(){return kh()};wh.prototype.clearAllResponseFilters=wh.prototype.xh;wh.prototype.unregisterResponseFilter=wh.prototype.Pk;wh.prototype.registerResponseFilter=wh.prototype.nk;wh.prototype.clearAllRequestFilters=wh.prototype.wh;wh.prototype.unregisterRequestFilter=wh.prototype.Ok;wh.prototype.registerRequestFilter=wh.prototype.lk;wh.unregisterScheme=function(a){delete zh[a]};
257
257
  wh.registerScheme=xh;wh.prototype.setForceHTTPS=wh.prototype.Yg;wh.prototype.setForceHTTP=wh.prototype.Xg;function Eh(){this.g=0}wh.NumBytesRemainingClass=Eh;function Fh(a,b,c){nh.call(this,a,b);this.h=c}ra(Fh,nh);wh.PendingRequest=Fh;var Jh=1;wh.RequestType={MANIFEST:0,SEGMENT:Jh,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8};
258
258
  wh.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5,MPD_PATCH:6,MEDIATAILOR_SESSION_INFO:7,MEDIATAILOR_TRACKING_INFO:8,MEDIATAILOR_STATIC_RESOURCE:9,MEDIATAILOR_TRACKING_EVENT:10,INTERSTITIAL_ASSET_LIST:11,INTERSTITIAL_AD_URL:12};var yh=3;wh.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:yh};var zh={};function Lh(a){this.g=!1;this.h=new mh;this.i=a}Lh.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 Mh(a,b){if(a.g){if(b instanceof U&&7003==b.code)throw b;throw new U(2,7,7003,b);}};function Nh(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 Oh(a){var b={};a.forEach(function(c,d){b[d]=c});return b};function Rh(a,b){this.h=Ob(a);this.i=b==Sh;this.g=0}q=Rh.prototype;q.Fa=function(){return this.g<this.h.byteLength};q.Oa=function(){return this.g};q.getLength=function(){return this.h.byteLength};q.Z=function(){try{var a=this.h.getUint8(this.g);this.g+=1;return a}catch(b){throw Th();}};q.za=function(){try{var a=this.h.getUint16(this.g,this.i);this.g+=2;return a}catch(b){throw Th();}};q.U=function(){try{var a=this.h.getUint32(this.g,this.i);this.g+=4;return a}catch(b){throw Th();}};
259
259
  q.ei=function(){try{var a=this.h.getInt32(this.g,this.i);this.g+=4;return a}catch(b){throw Th();}};q.ud=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 Th();}if(2097151<b)throw new U(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};q.Qb=function(a){if(this.g+a>this.h.byteLength)throw Th();var b=Jb(this.h,this.g,a);this.g+=a;return b};
260
- q.skip=function(a){if(this.g+a>this.h.byteLength)throw Th();this.g+=a};q.yk=function(a){if(this.g<a)throw Th();this.g-=a};q.seek=function(a){if(0>a||a>this.h.byteLength)throw Th();this.g=a};q.Sc=function(){for(var a=this.g;this.Fa()&&0!=this.h.getUint8(this.g);)this.g+=1;a=Jb(this.h,a,this.g-a);this.g+=1;return Bc(a)};function Th(){return new U(2,3,3E3)}R("shaka.util.DataViewReader",Rh);Rh.prototype.readTerminatedString=Rh.prototype.Sc;Rh.prototype.seek=Rh.prototype.seek;Rh.prototype.rewind=Rh.prototype.yk;
260
+ q.skip=function(a){if(this.g+a>this.h.byteLength)throw Th();this.g+=a};q.yk=function(a){if(this.g<a)throw Th();this.g-=a};q.seek=function(a){if(0>a||a>this.h.byteLength)throw Th();this.g=a};q.Uc=function(){for(var a=this.g;this.Fa()&&0!=this.h.getUint8(this.g);)this.g+=1;a=Jb(this.h,a,this.g-a);this.g+=1;return Bc(a)};function Th(){return new U(2,3,3E3)}R("shaka.util.DataViewReader",Rh);Rh.prototype.readTerminatedString=Rh.prototype.Uc;Rh.prototype.seek=Rh.prototype.seek;Rh.prototype.rewind=Rh.prototype.yk;
261
261
  Rh.prototype.skip=Rh.prototype.skip;Rh.prototype.readBytes=Rh.prototype.Qb;Rh.prototype.readUint64=Rh.prototype.ud;Rh.prototype.readInt32=Rh.prototype.ei;Rh.prototype.readUint32=Rh.prototype.U;Rh.prototype.readUint16=Rh.prototype.za;Rh.prototype.readUint8=Rh.prototype.Z;Rh.prototype.getLength=Rh.prototype.getLength;Rh.prototype.getPosition=Rh.prototype.Oa;Rh.prototype.hasMoreData=Rh.prototype.Fa;var Sh=1;Rh.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Sh};function Uh(){this.i=[];this.h=[];this.g=!1}q=Uh.prototype;q.box=function(a,b){a=Vh(a);this.i[a]=Wh;this.h[a]=b;return this};q.W=function(a,b){a=Vh(a);this.i[a]=Xh;this.h[a]=b;return this};q.stop=function(){this.g=!0};q.parse=function(a,b,c){a=new Rh(a,0);for(this.g=!1;a.Fa()&&!this.g;)this.rd(0,a,b,c)};
262
262
  q.rd=function(a,b,c,d){var e=b.Oa();if(d&&e+8>b.getLength())this.g=!0;else{var f=b.U(),g=b.U(),h=Yh(g),k=!1;switch(f){case 0:f=b.getLength()-e;break;case 1:if(d&&b.Oa()+8>b.getLength()){this.g=!0;return}f=b.ud();k=!0}var l=this.h[g];if(l){var m=null,n=null;if(this.i[g]==Xh){if(d&&b.Oa()+4>b.getLength()){this.g=!0;return}n=b.U();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.Oa(),b=0<d?b.Qb(d):new Uint8Array(0),b=new Rh(b,0),l({name:h,parser:this,
263
263
  partialOkay:c||!1,version:m,flags:n,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.Oa(),b.getLength()-b.Oa()))}};function Zh(a){for(var b=$h(a);a.reader.Fa()&&!a.parser.g;)a.parser.rd(a.start+b,a.reader,a.partialOkay)}function ai(a){for(var b=$h(a),c=a.reader.U(),d=0;d<c&&(a.parser.rd(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function bi(a){var b=$h(a);for(a.reader.skip(78);a.reader.Fa()&&!a.parser.g;)a.parser.rd(a.start+b,a.reader,a.partialOkay)}
@@ -276,7 +276,7 @@ function zi(a){var b,c,d,e,f;return P(function(g){switch(g.g){case 1:if(!a.A||!a
276
276
  va(g,6);return G(g,a.A.setServerCertificate(a.g.serverCertificate),8);case 8:xa(g,0);break;case 6:throw f=za(g),new U(2,6,6004,f.message);}})}function Ai(a,b){var c,d,e;return P(function(f){if(1==f.g)return G(f,Bi(a,b,{initData:null,initDataType:null}),2);if(3!=f.g){c=f.h;if(!c)return f.return();d=[];if(e=a.i.get(c))e.Cb=new mh,d.push(e.Cb);d.push(c.remove());return G(f,Promise.all(d),3)}a.i.delete(c);I(f)})}
277
277
  function yi(a){var b,c,d,e,f;return P(function(g){if(1==g.g){if(!a.C.size)return g.B(2);a.C.forEach(function(h,k){Bi(a,k,h)});return G(g,a.m,3)}if(2!=g.g){b=a.g&&a.g.keyIds||new Set([]);if(0<b.size&&Ci(a))return g.return(a.m);a.m=new mh;a.m.catch(function(){})}c=(a.g?a.g.initData:[])||[];d=t(c);for(e=d.next();!e.done;e=d.next())f=e.value,wi(a,f.initDataType,f.initData);Di(a)&&a.m.resolve();return g.return(a.m)})}
278
278
  function wi(a,b,c){if(c.length){if(a.h.ignoreDuplicateInitData){var d=a.i.values();d=t(d);for(var e=d.next();!e.done;e=d.next())if(Hb(c,e.value.initData))return;var f=!1;a.C.forEach(function(g){!f&&Hb(c,g.initData)&&(f=!0)});if(f)return}0<a.i.size&&Di(a)&&(a.m.resolve(),a.m=new mh,a.m.catch(function(){}));Ei(a,b,c,a.g.sessionType)}}function Fi(a){a=a.i.keys();a=jb(a,function(b){return b.sessionId});return Array.from(a)}
279
- q.jg=function(){var a=this,b=this.i.keys();b=jb(b,function(c){var d=a.i.get(c);return{sessionId:c.sessionId,sessionType:d.type,initData:d.initData,initDataType:d.initDataType}});return Array.from(b)};q.Jd=function(){var a=Infinity,b=this.i.keys();b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a};q.Ae=function(){return Oh(this.aa)};
279
+ q.ig=function(){var a=this,b=this.i.keys();b=jb(b,function(c){var d=a.i.get(c);return{sessionId:c.sessionId,sessionType:d.type,initData:d.initData,initDataType:d.initDataType}});return Array.from(b)};q.Jd=function(){var a=Infinity,b=this.i.keys();b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a};q.Ae=function(){return Oh(this.aa)};
280
280
  function pi(a,b,c){var d,e,f,g,h,k,l;return P(function(m){switch(m.g){case 1:d=new Map;if(c.length){e=Gi(a,c,d);m.B(2);break}return G(m,Hi(a,b),3);case 3:e=m.h;case 2:f=e;if(!f)throw new U(2,6,6001);Mh(a.j);va(m,4);f.getConfiguration();if(c.length){var n=f.keySystem;var p=d.get(f.keySystem);var r=[],u=[],v=[],w=[],y=[],z=new Set,B=new Set;Ii(p,r,u,w,v,y,z,B);var A=a.O?"persistent-license":"temporary";n={keySystem:n,encryptionScheme:r[0],licenseServerUri:u[0],distinctiveIdentifierRequired:p[0].distinctiveIdentifierRequired,
281
281
  persistentStateRequired:p[0].persistentStateRequired,sessionType:p[0].sessionType||A,audioRobustness:p[0].audioRobustness||"",videoRobustness:p[0].videoRobustness||"",serverCertificate:w[0],serverCertificateUri:v[0],initData:y,keyIds:z};0<B.size&&(n.keySystemUris=B);p=t(p);for(B=p.next();!B.done;B=p.next())B=B.value,B.distinctiveIdentifierRequired&&(n.distinctiveIdentifierRequired=B.distinctiveIdentifierRequired),B.persistentStateRequired&&(n.persistentStateRequired=B.persistentStateRequired);p=n}else p=
282
282
  f.keySystem,B=b.get(f.keySystem),n=[],r=[],u=[],v=[],w=[],y=new Set,Ii(B.drmInfos,n,r,v,u,w,y),p={keySystem:p,encryptionScheme:n[0],licenseServerUri:r[0],distinctiveIdentifierRequired:"required"==B.distinctiveIdentifier,persistentStateRequired:"required"==B.persistentState,sessionType:B.sessionTypes[0]||"temporary",audioRobustness:(B.audioCapabilities?B.audioCapabilities[0].robustness:"")||"",videoRobustness:(B.videoCapabilities?B.videoCapabilities[0].robustness:"")||"",serverCertificate:v[0],serverCertificateUri:u[0],
@@ -287,9 +287,9 @@ l.di}}(d)))return f.keySystemAccess;a=t([!0,!1]);for(d=a.next();!d.done;d=a.next
287
287
  function Hi(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y;return P(function(z){switch(z.g){case 1:if(1==b.size&&b.has(""))throw new U(2,6,6E3);d=t(b.values());for(e=d.next();!e.done;e=d.next())f=e.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;g=t(a.h.preferredKeySystems);h=g.next();case 2:if(h.done){z.B(4);break}k=h.value;if(!b.has(k)){z.B(3);break}l=b.get(k);va(z,6);return G(z,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c=
288
288
  z.h,z.return(c);case 6:za(z);case 7:Mh(a.j);case 3:h=g.next();z.B(2);break;case 4:m=t([!0,!1]),n=m.next();case 9:if(n.done){z.B(11);break}p=n.value;r=t(b.keys());u=r.next();case 12:if(u.done){n=m.next();z.B(9);break}v=u.value;w=b.get(v);y=w.drmInfos.some(function(B){return!!B.licenseServerUri});if(y!=p){z.B(13);break}va(z,15);return G(z,navigator.requestMediaKeySystemAccess(v,[w]),17);case 17:return c=z.h,z.return(c);case 15:za(z);case 16:Mh(a.j);case 13:u=r.next();z.B(12);break;case 11:return z.return(c)}})}
289
289
  function qi(a){a=Nh(a.h.clearKeys);return 0==a.size?null:Tc(a)}function Ji(a){Di(a)&&a.m.resolve()}function Ki(a,b){(new Xb(function(){b.loaded=!0;Ji(a)})).X(Li)}
290
- function Bi(a,b,c){var d,e,f,g,h,k,l;return P(function(m){switch(m.g){case 1:try{d=a.A.createSession("persistent-license")}catch(n){return e=new U(2,6,6005,n.message),a.u(e),m.return(Promise.reject(e))}a.s.o(d,"message",function(n){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.S?a.N.push(n):xi(a,n)});a.s.o(d,"keystatuseschange",function(n){return Mi(a,n)});f={initData:c.initData,initDataType:c.initDataType,loaded:!1,Gg:Infinity,Cb:null,type:"persistent-license"};a.i.set(d,f);va(m,2);return G(m,
290
+ function Bi(a,b,c){var d,e,f,g,h,k,l;return P(function(m){switch(m.g){case 1:try{d=a.A.createSession("persistent-license")}catch(n){return e=new U(2,6,6005,n.message),a.u(e),m.return(Promise.reject(e))}a.s.o(d,"message",function(n){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.S?a.N.push(n):xi(a,n)});a.s.o(d,"keystatuseschange",function(n){return Mi(a,n)});f={initData:c.initData,initDataType:c.initDataType,loaded:!1,Fg:Infinity,Cb:null,type:"persistent-license"};a.i.set(d,f);va(m,2);return G(m,
291
291
  d.load(b),4);case 4:return g=m.h,Mh(a.j),g||(a.i.delete(d),h=a.h.persistentSessionOnlinePlayback?1:2,a.u(new U(h,6,6013)),f.loaded=!0),Ki(a,f),Ji(a),m.return(d);case 2:k=za(m),Mh(a.j,k),a.i.delete(d),l=a.h.persistentSessionOnlinePlayback?1:2,a.u(new U(l,6,6005,k.message)),f.loaded=!0,Ji(a);case 3:return m.return(Promise.resolve())}})}
292
- function Ei(a,b,c,d){try{var e=a.A.createSession(d)}catch(f){a.u(new U(2,6,6005,f.message));return}a.s.o(e,"message",function(f){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.S?a.N.push(f):xi(a,f)});a.s.o(e,"keystatuseschange",function(f){return Mi(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,Gg:Infinity,Cb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof U||(b=new U(2,6,6016,f));a.u(b);return}a.h.logLicenseExchange&&Lc(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);
292
+ function Ei(a,b,c,d){try{var e=a.A.createSession(d)}catch(f){a.u(new U(2,6,6005,f.message));return}a.s.o(e,"message",function(f){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.S?a.N.push(f):xi(a,f)});a.s.o(e,"keystatuseschange",function(f){return Mi(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,Fg:Infinity,Cb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof U||(b=new U(2,6,6016,f));a.u(b);return}a.h.logLicenseExchange&&Lc(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);
293
293
  var g=f.errorCode;if(g&&g.systemCode){var h=g.systemCode;0>h&&(h+=Math.pow(2,32));h="0x"+h.toString(16)}a.u(new U(2,6,6006,f.message,f,h))}})}
294
294
  function xi(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v;P(function(w){switch(w.g){case 1:c=b.target;a.h.logLicenseExchange&&Lc(b.message);d=a.i.get(c);e=a.g.licenseServerUri;f=a.h.advanced[a.g.keySystem];"individualization-request"==b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer);g=Dh([e],a.h.retryParameters);g.body=b.message;g.method="POST";g.licenseRequestType=b.messageType;g.sessionId=c.sessionId;g.drmInfo=a.g;d&&(g.initData=d.initData,g.initDataType=d.initDataType);if(f&&f.headers)for(h in f.headers)g.headers[h]=
295
295
  f.headers[h];if(Tb(a.g.keySystem)){var y=Cc(g.body,!0,!0);if(y.includes("PlayReadyKeyMessage")){y=ee(y,"PlayReadyKeyMessage");var z=re(y,"HttpHeader");z=t(z);for(var B=z.next();!B.done;B=z.next()){var A=B.value;B=re(A,"name")[0];A=re(A,"value")[0];g.headers[pe(B)]=pe(A)}y=re(y,"Challenge")[0];g.body=Mc(pe(y))}else g.headers["Content-Type"]="text/xml; charset=utf-8"}k=Date.now();va(w,2);m=a.G.ic.request(2,g,{isPreload:a.P()});return G(w,m.promise,4);case 4:l=w.h;xa(w,3);break;case 2:n=za(w);if(a.j.g)return w.return();
@@ -305,10 +305,10 @@ Va=[cb,S];return G(Ya,navigator.requestMediaKeySystemAccess(O,Va),4);case 4:retu
305
305
  robustness:Q}}},G(ca,navigator.mediaCapabilities.decodingInfo(S),4);case 4:return aa=ca.h,qa=aa.keySystemAccess,G(ca,l(O,qa),5);case 5:xa(ca,0);break;case 2:za(ca),I(ca)}})};p=t(a);for(r=p.next();!r.done;r=p.next())u=r.value,k.set(u,null);v=[];w=t(h);for(y=w.next();!y.done;y=w.next())for(z=y.value,B=t(a),A=B.next();!A.done;A=B.next())C=A.value,"org.w3.clearkey"===C&&rc()||(v.push(m(C,z,"","")),v.push(n(C,z,"","")));D=t(a);for(E=D.next();!E.done;E=D.next())for(H=E.value,J=t(d[H]||[]),F=J.next();!F.done;F=
306
306
  J.next())K=F.value,v.push(m(H,null,K,"")),v.push(m(H,null,"",K)),v.push(n(H,null,K,"")),v.push(n(H,null,"",K));return G(L,Promise.all(v),2)}return L.return(Oh(k))})}function Pi(a){var b;return P(function(c){if(1==c.g)return b=new Promise(function(d,e){(new Xb(e)).X(Qi)}),va(c,2),G(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return xa(c,0);za(c);I(c)})}
307
307
  function ki(a){var b;return P(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 P(function(g){if(1==g.g)return va(g,2),a.ha||a.C.has(e.sessionId)||"persistent-license"!==f.type||a.h.persistentSessionOnlinePlayback?G(g,Pi(e),5):G(g,e.remove(),5);if(2!=g.g)return xa(g,0);za(g);I(g)})})),0)})}function si(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}
308
- function ii(a){a.i.forEach(function(b,c){var d=b.Gg,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.G.onExpirationUpdated(c.sessionId,e),b.Gg=e)})}function Di(a){a=a.i.values();return kb(a,function(b){return b.loaded})}function Ci(a){for(var b=t(a.g&&a.g.keyIds||new Set([])),c=b.next();!c.done;c=b.next())if("usable"!==a.V.get(c.value))return!1;return!0}
308
+ function ii(a){a.i.forEach(function(b,c){var d=b.Fg,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.G.onExpirationUpdated(c.sessionId,e),b.Fg=e)})}function Di(a){a=a.i.values();return kb(a,function(b){return b.loaded})}function Ci(a){for(var b=t(a.g&&a.g.keyIds||new Set([])),c=b.next();!c.done;c=b.next())if("usable"!==a.V.get(c.value))return!1;return!0}
309
309
  function ri(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)}
310
310
  function Ii(a,b,c,d,e,f,g,h){var k=[];a=t(a);for(var l=a.next(),m={};!l.done;m={Ka:void 0},l=a.next()){m.Ka=l.value;b.includes(m.Ka.encryptionScheme)||b.push(m.Ka.encryptionScheme);"org.w3.clearkey"==m.Ka.keySystem&&m.Ka.licenseServerUri.startsWith("data:application/json;base64,")?k.includes(m.Ka.licenseServerUri)||k.push(m.Ka.licenseServerUri):c.includes(m.Ka.licenseServerUri)||c.push(m.Ka.licenseServerUri);e.includes(m.Ka.serverCertificateUri)||e.push(m.Ka.serverCertificateUri);m.Ka.serverCertificate&&
311
- (d.some(function(r){return function(u){return Hb(u,r.Ka.serverCertificate)}}(m))||d.push(m.Ka.serverCertificate));if(m.Ka.initData){l=t(m.Ka.initData);for(var n=l.next(),p={};!n.done;p={vg:void 0},n=l.next())p.vg=n.value,f.some(function(r){return function(u){var v=r.vg;return u.keyId&&u.keyId==v.keyId?!0:u.initDataType==v.initDataType&&Hb(u.initData,v.initData)}}(p))||f.push(p.vg)}if(m.Ka.keyIds)for(l=t(m.Ka.keyIds),n=l.next();!n.done;n=l.next())g.add(n.value);if(m.Ka.keySystemUris&&h)for(m=t(m.Ka.keySystemUris),
311
+ (d.some(function(r){return function(u){return Hb(u,r.Ka.serverCertificate)}}(m))||d.push(m.Ka.serverCertificate));if(m.Ka.initData){l=t(m.Ka.initData);for(var n=l.next(),p={};!n.done;p={ug:void 0},n=l.next())p.ug=n.value,f.some(function(r){return function(u){var v=r.ug;return u.keyId&&u.keyId==v.keyId?!0:u.initDataType==v.initDataType&&Hb(u.initData,v.initData)}}(p))||f.push(p.ug)}if(m.Ka.keyIds)for(l=t(m.Ka.keyIds),n=l.next();!n.done;n=l.next())g.add(n.value);if(m.Ka.keySystemUris&&h)for(m=t(m.Ka.keySystemUris),
312
312
  l=m.next();!l.done;l=m.next())h.add(l.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))}}
313
313
  function ti(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=
314
314
  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 Qi=1,Li=5,Ni=.5;/*
@@ -325,14 +325,14 @@ missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new U(2,4,4012,a)
325
325
  function(m){k.push({box:m,kb:1701733238})}).W("hev1",function(m){k.push({box:m,kb:1701733238})}).W("hvc1",function(m){k.push({box:m,kb:1701733238})}).W("avc1",function(m){k.push({box:m,kb:1701733238})}).W("avc3",function(m){k.push({box:m,kb:1701733238})}).W("ac-3",function(m){k.push({box:m,kb:1701733217})}).W("ec-3",function(m){k.push({box:m,kb:1701733217})}).W("ac-4",function(m){k.push({box:m,kb:1701733217})}).W("mp4a",function(m){k.push({box:m,kb:1701733217})}).parse(a);if(f)return a;if(0==k.length||
326
326
  !g)throw gb(Oc(a)),new U(2,3,3019,b);k.reverse();b=t(k);for(var l=b.next();!l.done;l=b.next())l=l.value,e=bj(e,g,l.box,h,l.kb);return ac()&&sc()&&!bc()?(b=new Uint8Array(a.byteLength+e.byteLength),b.set(e),b.set(a,e.byteLength),b):e}
327
327
  function bj(a,b,c,d,e){var f=cj.value(),g=a.subarray(c.start,c.start+c.size),h=Ob(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=Ob(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);dj(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=bc()||ac()?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,dj(e,d.start,d.size+k.byteLength);k=Ob(e,b.start);b=$h(b);
328
- a=k.getUint32(b);k.setUint32(b,a+1);return e}function dj(a,b,c){a=Ob(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 cj=new Qb(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 ej(a,b,c,d,e,f,g){this.R=a;this.$a=b;this.La=c;this.pd=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}ej.prototype.Ib=function(){return this.$a};ej.prototype.Fb=function(){return this.La};ej.prototype.Kc=function(){return this.g};function fj(a,b){return a===b?!0:a&&b?a.Ib()==b.Ib()&&a.Fb()==b.Fb()&&Ud(a.R().sort(),b.R().sort())&&Hb(a.Kc(),b.Kc()):a==b}R("shaka.media.InitSegmentReference",ej);
328
+ a=k.getUint32(b);k.setUint32(b,a+1);return e}function dj(a,b,c){a=Ob(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 cj=new Qb(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 ej(a,b,c,d,e,f,g){this.R=a;this.$a=b;this.La=c;this.pd=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}ej.prototype.Ib=function(){return this.$a};ej.prototype.Fb=function(){return this.La};ej.prototype.Mc=function(){return this.g};function fj(a,b){return a===b?!0:a&&b?a.Ib()==b.Ib()&&a.Fb()==b.Fb()&&Ud(a.R().sort(),b.R().sort())&&Hb(a.Mc(),b.Mc()):a==b}R("shaka.media.InitSegmentReference",ej);
329
329
  ej.prototype.getEndByte=ej.prototype.Fb;ej.prototype.getStartByte=ej.prototype.Ib;
330
330
  function gj(a,b,c,d,e,f,g,h,k,l,m,n,p,r,u,v){l=void 0===l?[]:l;r=void 0===r?hj:r;this.startTime=a;this.j=this.endTime=b;this.H=c;this.$a=d;this.La=e;this.ma=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.g=l;this.tilesLayout=void 0===m?"":m;this.C=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.A=null;this.i=0;this.u=void 0===v?!1:v;this.I=this.s=!1;a=t(this.g);for(b=a.next();!b.done;b=a.next())b.value.Wh();
331
- this.u&&this.g.length&&this.g[this.g.length-1].Vh();this.G=this.bandwidth=this.mimeType=this.codecs=null}q=gj.prototype;q.R=function(){return this.H()};q.getStartTime=function(){return this.startTime};q.kj=function(){return this.endTime};q.Ib=function(){return this.$a};q.Fb=function(){return this.La};q.Fj=function(){return this.tilesLayout};q.Ej=function(){return this.C};q.tc=function(){return this.status};q.bk=function(){this.status=ij};q.Dg=function(){this.preload=!0};q.isPreload=function(){return this.preload};
331
+ this.u&&this.g.length&&this.g[this.g.length-1].Vh();this.G=this.bandwidth=this.mimeType=this.codecs=null}q=gj.prototype;q.R=function(){return this.H()};q.getStartTime=function(){return this.startTime};q.kj=function(){return this.endTime};q.Ib=function(){return this.$a};q.Fb=function(){return this.La};q.Fj=function(){return this.tilesLayout};q.Ej=function(){return this.C};q.tc=function(){return this.status};q.bk=function(){this.status=ij};q.Cg=function(){this.preload=!0};q.isPreload=function(){return this.preload};
332
332
  q.od=function(){this.l=!1};q.Rj=function(){return this.l};q.Wh=function(){this.s=!0};q.Tj=function(){return this.s};q.Vh=function(){this.I=!0};q.Sj=function(){return this.I};q.Uh=function(){this.m=!0};q.Nj=function(){return this.m};q.ti=function(a){this.A=a};q.Dj=function(){return this.A};q.offset=function(a){this.startTime+=a;this.endTime+=a;this.j+=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.j+=a};
333
- q.eh=function(a){null==this.h?$a("Sync attempted without sync time!"):(a=this.h-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};q.Kk=function(a){this.G=a};q.Kc=function(){return this.G};function jj(a,b){a.ma=b;a=t(a.g);for(var c=a.next();!c.done;c=a.next())jj(c.value,b)}R("shaka.media.SegmentReference",gj);gj.prototype.getSegmentData=gj.prototype.Kc;gj.prototype.setSegmentData=gj.prototype.Kk;gj.prototype.syncAgainst=gj.prototype.eh;gj.prototype.offset=gj.prototype.offset;
333
+ q.eh=function(a){null==this.h?$a("Sync attempted without sync time!"):(a=this.h-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};q.Kk=function(a){this.G=a};q.Mc=function(){return this.G};function jj(a,b){a.ma=b;a=t(a.g);for(var c=a.next();!c.done;c=a.next())jj(c.value,b)}R("shaka.media.SegmentReference",gj);gj.prototype.getSegmentData=gj.prototype.Mc;gj.prototype.setSegmentData=gj.prototype.Kk;gj.prototype.syncAgainst=gj.prototype.eh;gj.prototype.offset=gj.prototype.offset;
334
334
  gj.prototype.getThumbnailSprite=gj.prototype.Dj;gj.prototype.setThumbnailSprite=gj.prototype.ti;gj.prototype.hasByterangeOptimization=gj.prototype.Nj;gj.prototype.markAsByterangeOptimization=gj.prototype.Uh;gj.prototype.isLastPartial=gj.prototype.Sj;gj.prototype.markAsLastPartial=gj.prototype.Vh;gj.prototype.isPartial=gj.prototype.Tj;gj.prototype.markAsPartial=gj.prototype.Wh;gj.prototype.isIndependent=gj.prototype.Rj;gj.prototype.markAsNonIndependent=gj.prototype.od;gj.prototype.isPreload=gj.prototype.isPreload;
335
- gj.prototype.markAsPreload=gj.prototype.Dg;gj.prototype.markAsUnavailable=gj.prototype.bk;gj.prototype.getStatus=gj.prototype.tc;gj.prototype.getTileDuration=gj.prototype.Ej;gj.prototype.getTilesLayout=gj.prototype.Fj;gj.prototype.getEndByte=gj.prototype.Fb;gj.prototype.getStartByte=gj.prototype.Ib;gj.prototype.getEndTime=gj.prototype.kj;gj.prototype.getStartTime=gj.prototype.getStartTime;gj.prototype.getUris=gj.prototype.R;var hj=0,ij=1;gj.Status={Uk:hj,Xl:ij,yl:2};function kj(a){return 1==a.length&&1E-4>a.end(0)-a.start(0)}function lj(a){return!a||kj(a)?null:a.length?a.end(a.length-1):null}function mj(a,b){return!a||!a.length||kj(a)||b>a.end(a.length-1)?!1:b>=a.start(0)}function nj(a,b){if(!a||!a.length||kj(a))return 0;var c=0;a=t(oj(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.start;e=e.end;e>b&&(c+=e-Math.max(d,b))}return c}
335
+ gj.prototype.markAsPreload=gj.prototype.Cg;gj.prototype.markAsUnavailable=gj.prototype.bk;gj.prototype.getStatus=gj.prototype.tc;gj.prototype.getTileDuration=gj.prototype.Ej;gj.prototype.getTilesLayout=gj.prototype.Fj;gj.prototype.getEndByte=gj.prototype.Fb;gj.prototype.getStartByte=gj.prototype.Ib;gj.prototype.getEndTime=gj.prototype.kj;gj.prototype.getStartTime=gj.prototype.getStartTime;gj.prototype.getUris=gj.prototype.R;var hj=0,ij=1;gj.Status={Uk:hj,Xl:ij,yl:2};function kj(a){return 1==a.length&&1E-4>a.end(0)-a.start(0)}function lj(a){return!a||kj(a)?null:a.length?a.end(a.length-1):null}function mj(a,b){return!a||!a.length||kj(a)||b>a.end(a.length-1)?!1:b>=a.start(0)}function nj(a,b){if(!a||!a.length||kj(a))return 0;var c=0;a=t(oj(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.start;e=e.end;e>b&&(c+=e-Math.max(d,b))}return c}
336
336
  function pj(a,b,c){if(!a||!a.length||kj(a))return null;a=oj(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}function oj(a){if(!a)return[];for(var b=[],c=0;c<a.length;c++)b.push({start:a.start(c),end:a.end(c)});return b};/*
337
337
  @license
338
338
  Shaka Player
@@ -345,7 +345,7 @@ d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=Bc(Jb(a.data,1,d));a=Bc(
345
345
  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=Kb(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=Bc(a.data.subarray(1)).replace(/\0*$/,"");b.data=a;return b}return"W"===a.type[0]?(a=Bc(a.data).replace(/\0*$/,""),b.data=a,b):a.data?(b.data=Kb(a.data),b):null}
346
346
  function vj(a){for(var b=0,c=[];rj(a,b);){var d=tj(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=tj(e,4);e={type:String.fromCharCode(e[0],e[1],e[2],e[3]),size:f,data:e.subarray(10,10+f)};(f=uj(e))&&c.push(f);b+=e.size+10}sj(a,b)&&(b+=10)}return c}function wj(a,b){for(var c=b=void 0===b?0:b,d=0;rj(a,b);)a[b+5]>>6&1&&(d+=10),d+=10,d+=tj(a,b+6),sj(a,b+10)&&(d+=10),b+=d;return 0<d?a.subarray(c,c+d):new Uint8Array([])}R("shaka.util.Id3Utils",qj);qj.getID3Data=wj;
347
347
  qj.getID3Frames=vj;function xj(a,b){var c=null,d=null,e=null,f=a.U();b&1&&(e=a.ud());b&2&&a.skip(4);b&8&&(c=a.U());b&16&&(d=a.U());return{trackId:f,Hd:c,ve:d,am:e}}function yj(a,b){return 1==b?(b=a.U(),a=a.U(),{baseMediaDecodeTime:b*Math.pow(2,32)+a}):{baseMediaDecodeTime:a.U()}}function zj(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));b=a.U();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)}}
348
- function Aj(a,b,c){var d=a.U(),e=[],f=null;c&1&&(f=a.U());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={Qg:null,sampleSize:null,df:null};c&256&&(h.Qg=a.U());c&512&&(h.sampleSize=a.U());c&1024&&a.skip(4);c&2048&&(h.df=0==b?a.U():a.ei());e.push(h)}return{em:d,ki:e,Zi:f}}function Bj(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 Cj(a){a=a.U();return{codec:Yh(a)}}
348
+ function Aj(a,b,c){var d=a.U(),e=[],f=null;c&1&&(f=a.U());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={Qg:null,sampleSize:null,cf:null};c&256&&(h.Qg=a.U());c&512&&(h.sampleSize=a.U());c&1024&&a.skip(4);c&2048&&(h.cf=0==b?a.U():a.ei());e.push(h)}return{em:d,ki:e,Zi:f}}function Bj(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 Cj(a){a=a.U();return{codec:Yh(a)}}
349
349
  function Dj(a){var b=null,c=null,d=a.Qb(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,ce:c}}
350
350
  function Ej(a,b){b=void 0===b?!1:b;a=a.toString(16).toUpperCase();return b?a:("0"+a).slice(-2)}function Fj(a){return(10>a?"0":"")+a};/*
351
351
 
@@ -365,26 +365,26 @@ function Ej(a,b){b=void 0===b?!1:b;a=a.toString(16).toUpperCase();return b?a:("0
365
365
  */
366
366
  function Gj(a,b){this.j=a;if(void 0===b?0:b){b=new Uint8Array(a.byteLength);for(var c=0,d=0;d<a.byteLength;d++)2<=d&&3==a[d]&&0==a[d-1]&&0==a[d-2]||(b[c]=a[d],c++);this.j=Jb(b,0,c)}this.i=this.j.byteLength;this.g=this.h=0}function Hj(a){var b=a.j.byteLength-a.i,c=new Uint8Array(4),d=Math.min(4,a.i);0!==d&&(c.set(a.j.subarray(b,b+d)),a.h=(new Rh(c,0)).U(),a.g=8*d,a.i-=d)}function Ij(a,b){if(a.g<=b){b-=a.g;var c=Math.floor(b/8);b-=8*c;a.g-=c;Hj(a)}a.h<<=b;a.g-=b}
367
367
  function Jj(a,b){var c=Math.min(a.g,b),d=a.h>>>32-c;a.g-=c;0<a.g?a.h<<=c:0<a.i&&Hj(a);c=b-c;return 0<c?d<<c|Jj(a,c):d}function Kj(a){var b;for(b=0;b<a.g;++b)if(0!==(a.h&2147483648>>>b))return a.h<<=b,a.g-=b,b;Hj(a);return b+Kj(a)}function Lj(a){Ij(a,1+Kj(a))}function V(a){var b=Kj(a);return Jj(a,b+1)-1}function Mj(a){a=V(a);return 1&a?1+a>>>1:-1*(a>>>1)}function Nj(a){return 1===Jj(a,1)}function Oj(a){return Jj(a,8)}
368
- function Pj(a,b){for(var c=8,d=8,e=0;e<b;e++)0!==d&&(d=Mj(a),d=(c+d+256)%256),c=0===d?c:d}function Sj(a){Oj(a);V(a);return V(a)}R("shaka.util.ExpGolomb",Gj);function Tj(){this.I=null;this.J=!1;this.m=this.K=null;this.j=[];this.g=[];this.A=this.C=null;this.i=[];this.h=[];this.G=null;this.l=[];this.H=this.s=this.u=null}q=Tj.prototype;q.clearData=function(){this.j=[];this.g=[];this.i=[];this.h=[];this.l=[]};
368
+ function Pj(a,b){for(var c=8,d=8,e=0;e<b;e++)0!==d&&(d=Mj(a),d=(c+d+256)%256),c=0===d?c:d}function Qj(a){Oj(a);V(a);return V(a)}R("shaka.util.ExpGolomb",Gj);function Tj(){this.I=null;this.J=!1;this.m=this.K=null;this.j=[];this.g=[];this.A=this.C=null;this.i=[];this.h=[];this.G=null;this.l=[];this.H=this.s=this.u=null}q=Tj.prototype;q.clearData=function(){this.j=[];this.g=[];this.i=[];this.h=[];this.l=[]};
369
369
  q.parse=function(a){if(564>a.length)return this;for(var b=Math.max(0,Uj(a)),c=a.length-(a.length+b)%188,d=!1,e=b;e<c;e+=188)if(71==a[e]){var f=!!(a[e+1]&64),g=((a[e+1]&31)<<8)+a[e+2];if(1<(a[e+3]&48)>>4){var h=e+5+a[e+4];if(h==e+188)continue}else h=e+4;switch(g){case 0:f&&(h+=a[h]+1);this.I=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.I:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,Ge:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]&15)<<8|f[h+11]);h<
370
370
  k;){var l=(f[h+1]&31)<<8|f[h+2],m=(f[h+3]&15)<<8|f[h+4];switch(f[h]){case 6:if(0<m)for(var n=h+5,p=m;2<p;){var r=f[n+1]+2;switch(f[n]){case 5:var u=Dc(f.subarray(n+2,n+r));-1==g.audio&&"Opus"===u?(g.audio=l,g.audioCodec="opus"):-1==g.video&&"AV01"===u&&(g.video=l,g.videoCodec="av1");break;case 106:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");break;case 122:-1==g.audio&&(g.audio=l,g.audioCodec="ec3");break;case 124:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 127:"opus"==g.audioCodec&&(u=
371
371
  null,128===f[n+2]&&(u=f[n+3]),null!=u&&(this.H={channelCount:0===(u&15)?2:u&15,Wi:u,sampleRate:48E3}))}n+=r;p-=r}break;case 15:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 17:-1==g.audio&&(g.audio=l,g.audioCodec="aac-loas");break;case 21:-1==g.Ge&&(g.Ge=l);break;case 27:-1==g.video&&(g.video=l,g.videoCodec="avc");break;case 3:case 4:-1==g.audio&&(g.audio=l,g.audioCodec="mp3");break;case 36:-1==g.video&&(g.video=l,g.videoCodec="hvc");break;case 129:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");
372
372
  break;case 132:case 135:-1==g.audio&&(g.audio=l,g.audioCodec="ec3")}h+=m+5}f=g;-1!=f.video&&(this.K=f.video,this.m=f.videoCodec);-1!=f.audio&&(this.C=f.audio,this.A=f.audioCodec);-1!=f.Ge&&(this.G=f.Ge);d&&!this.J&&(d=!1,e=b-188);this.J=!0;break;case this.K:h=a.subarray(h,e+188);f?this.j.push([h]):this.j.length&&this.j[this.j.length-1]&&this.j[this.j.length-1].push(h);break;case this.C:h=a.subarray(h,e+188);f?this.i.push([h]):this.i.length&&this.i[this.i.length-1]&&this.i[this.i.length-1].push(h);
373
373
  break;case this.G:h=a.subarray(h,e+188);f?this.l.push([h]):this.l.length&&this.l[this.l.length-1]&&this.l[this.l.length-1].push(h);break;default:d=!0}}return this};
374
374
  function Vj(a,b){if(1!==(b[0]<<16|b[1]<<8|b[2]))return null;var c={data:new Uint8Array(0),packetLength:b[4]<<8|b[5],pts:null,dts:null,nalus:[]};if(c.packetLength&&c.packetLength>b.byteLength-6)return null;var d=b[7];if(d&192){var e=536870912*(b[9]&14)+4194304*(b[10]&255)+16384*(b[11]&254)+128*(b[12]&255)+(b[13]&254)/2;null==a.u&&(a.u=e);c.pts=Wj(e,a.u);a.u=c.pts;c.dts=c.pts;d&64&&(d=536870912*(b[14]&14)+4194304*(b[15]&255)+16384*(b[16]&254)+128*(b[17]&255)+(b[18]&254)/2,null==a.s&&(a.s=d),c.dts=Wj(d,
375
- a.s));a.s=c.dts}a=b[8]+9;if(b.byteLength<=a)return null;c.data=b.subarray(a);return c}q.hk=function(a){Dd("TsParser.parseAvcNalus","Please use parseNalus function instead.");return this.Jg(a)};
376
- q.Jg=function(a,b,c){var d=a.pts?a.pts/9E4:null;a=a.data;var e=a.byteLength,f=1;"hvc"==this.m&&(f=2);for(var g=c||0,h=[],k=-1,l=0,m,n=0;n<e;++n){var p=a[n];if(p){if(2<=g&&1==p){b&&!h.length&&-1==k&&(p=n-(3<g?3:g),c&&0!=p&&(p=a.subarray(0,p),b.data=Pc(b.data,p),b.fullData=Pc(b.fullData,p)));0<=k?(g=n-((3<g?3:g)+1),h.push({data:a.subarray(k+f,g+1),fullData:a.subarray(k,g+1),type:l,time:d})):b&&!h.length&&(k=n-g,0<k&&(k=a.subarray(0,k),b.data=Pc(b.data,k),b.fullData=Pc(b.fullData,k)));if(n>=e-f)return h;
375
+ a.s));a.s=c.dts}a=b[8]+9;if(b.byteLength<=a)return null;c.data=b.subarray(a);return c}q.hk=function(a){Dd("TsParser.parseAvcNalus","Please use parseNalus function instead.");return this.Ig(a)};
376
+ q.Ig=function(a,b,c){var d=a.pts?a.pts/9E4:null;a=a.data;var e=a.byteLength,f=1;"hvc"==this.m&&(f=2);for(var g=c||0,h=[],k=-1,l=0,m,n=0;n<e;++n){var p=a[n];if(p){if(2<=g&&1==p){b&&!h.length&&-1==k&&(p=n-(3<g?3:g),c&&0!=p&&(p=a.subarray(0,p),b.data=Pc(b.data,p),b.fullData=Pc(b.fullData,p)));0<=k?(g=n-((3<g?3:g)+1),h.push({data:a.subarray(k+f,g+1),fullData:a.subarray(k,g+1),type:l,time:d})):b&&!h.length&&(k=n-g,0<k&&(k=a.subarray(0,k),b.data=Pc(b.data,k),b.fullData=Pc(b.fullData,k)));if(n>=e-f)return h;
377
377
  n++;k=n;l="hvc"==this.m?a[n]>>1&63:a[n]&31}g=0}else g++;n>=e-1&&0<=k&&0<=g&&(m={data:a.subarray(k+f,e),fullData:a.subarray(k,e),type:l,time:d})}m&&h.push(m);!h.length&&b&&(b.data=Pc(b.data,a),b.fullData=Pc(b.fullData,a));return h};q.getMetadata=function(){for(var a=[],b=t(this.l),c=b.next();!c.done;c=b.next())c=Pc.apply(Jc,x(c.value)),(c=Vj(this,c))&&a.push({cueTime:c.pts?c.pts/9E4:null,data:c.data,frames:vj(c.data),dts:c.dts,pts:c.pts});return a};
378
378
  q.rc=function(){if(this.i.length&&!this.h.length){for(var a=!1,b=t(this.i),c=b.next();!c.done;c=b.next()){var d=Pc.apply(Jc,x(c.value)),e=Vj(this,d);c=this.h.length?this.h[this.h.length-1]:null;e&&null!=e.pts&&null!=e.dts&&(!c||c.pts!=e.pts&&c.dts!=e.dts)?(this.h.length&&e.dts<(c.dts||0)&&(a=!0),this.h.push(e)):this.h.length&&(d=e?e.data:d)&&(c=this.h.pop(),c.data=Pc(c.data,d),this.h.push(c))}a&&(this.h=this.h.sort(function(f,g){var h=(f.pts||0)-(g.pts||0);return(f.dts||0)-(g.dts||0)||h}))}return this.h};
379
- q.Lc=function(a){a=void 0===a?!0:a;if(this.j.length&&!this.g.length){for(var b=!1,c=t(this.j),d=c.next();!d.done;d=c.next()){var e=Pc.apply(Jc,x(d.value)),f=Vj(this,e);d=this.g.length?this.g[this.g.length-1]:null;f&&null!=f.pts&&null!=f.dts&&(!d||d.pts!=f.pts&&d.dts!=f.dts)?(this.g.length&&f.dts<(d.dts||0)&&(b=!0),this.g.push(f)):this.g.length&&(e=f?f.data:e)&&(d=this.g.pop(),d.data=Pc(d.data,e),this.g.push(d))}if(a){c=[];d=t(this.g);for(e=d.next();!e.done;e=d.next())if(e=e.value,e.nalus=this.Jg(e,
380
- g,void 0),e.nalus.length){c.push(e);var g=e.nalus[e.nalus.length-1]}this.g=c}b&&(this.g=this.g.sort(function(h,k){var l=(h.pts||0)-(k.pts||0);return(h.dts||0)-(k.dts||0)||l}))}return a?this.g:(a=this.g,this.g=[],a)};q.getStartTime=function(a){if("audio"==a){a=null;var b=this.rc();b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4);return a}return"video"==a?(a=null,b=this.Lc(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null};q.Id=function(){return{audio:this.A,video:this.m}};
381
- q.Ee=function(){for(var a=[],b=t(this.Lc()),c=b.next();!c.done;c=b.next())a.push.apply(a,x(c.value.nalus));return a};q.Kj=function(){Dd("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var a=this.pg();return{height:a.height,width:a.width}};q.pg=function(){return"hvc"==this.m?Xj(this):Yj(this)};function Zj(a){var b=a.Lc();return 1<b.length&&(a=b[0].pts,b=b[1].pts,!isNaN(b-a))?String(1/(b-a)*9E4):null}
379
+ q.Nc=function(a){a=void 0===a?!0:a;if(this.j.length&&!this.g.length){for(var b=!1,c=t(this.j),d=c.next();!d.done;d=c.next()){var e=Pc.apply(Jc,x(d.value)),f=Vj(this,e);d=this.g.length?this.g[this.g.length-1]:null;f&&null!=f.pts&&null!=f.dts&&(!d||d.pts!=f.pts&&d.dts!=f.dts)?(this.g.length&&f.dts<(d.dts||0)&&(b=!0),this.g.push(f)):this.g.length&&(e=f?f.data:e)&&(d=this.g.pop(),d.data=Pc(d.data,e),this.g.push(d))}if(a){c=[];d=t(this.g);for(e=d.next();!e.done;e=d.next())if(e=e.value,e.nalus=this.Ig(e,
380
+ g,void 0),e.nalus.length){c.push(e);var g=e.nalus[e.nalus.length-1]}this.g=c}b&&(this.g=this.g.sort(function(h,k){var l=(h.pts||0)-(k.pts||0);return(h.dts||0)-(k.dts||0)||l}))}return a?this.g:(a=this.g,this.g=[],a)};q.getStartTime=function(a){if("audio"==a){a=null;var b=this.rc();b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4);return a}return"video"==a?(a=null,b=this.Nc(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null};q.Id=function(){return{audio:this.A,video:this.m}};
381
+ q.Ee=function(){for(var a=[],b=t(this.Nc()),c=b.next();!c.done;c=b.next())a.push.apply(a,x(c.value.nalus));return a};q.Kj=function(){Dd("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var a=this.og();return{height:a.height,width:a.width}};q.og=function(){return"hvc"==this.m?Xj(this):Yj(this)};function Zj(a){var b=a.Nc();return 1<b.length&&(a=b[0].pts,b=b[1].pts,!isNaN(b-a))?String(1/(b-a)*9E4):null}
382
382
  function Yj(a){var b={height:null,width:null,codec:null,frameRate:null},c=a.Ee();if(!c.length)return b;c=c.find(function(r){return 7==r.type});if(!c)return b;c=new Gj(c.data);var d=Oj(c),e=Oj(c),f=Oj(c);Lj(c);if(ak.includes(d)){var g=V(c);3===g&&Ij(c,1);Lj(c);Lj(c);Ij(c,1);if(Nj(c)){g=3!==g?8:12;for(var h=0;h<g;h++)Nj(c)&&(6>h?Pj(c,16):Pj(c,64))}}Lj(c);g=V(c);if(0===g)V(c);else if(1===g)for(Ij(c,1),Lj(c),Lj(c),g=V(c),h=0;h<g;h++)Lj(c);Lj(c);Ij(c,1);g=V(c);h=V(c);var k=Jj(c,1);0===k&&Ij(c,1);Ij(c,
383
383
  1);var l=0,m=0,n=0,p=0;Nj(c)&&(l=V(c),m=V(c),n=V(c),p=V(c));b.height=String((2-k)*(h+1)*16-2*n-2*p);b.width=String(16*(g+1)-2*l-2*m);b.codec="avc1."+("0"+d.toString(16).toUpperCase()).slice(-2)+("0"+e.toString(16).toUpperCase()).slice(-2)+("0"+f.toString(16).toUpperCase()).slice(-2);b.frameRate=Zj(a);return b}
384
384
  function Xj(a){var b={height:null,width:null,codec:null,frameRate:null},c=a.Ee();if(!c.length)return b;c=c.find(function(C){return 33==C.type});if(!c)return b;var d=new Gj(c.fullData,!0);Oj(d);Oj(d);Jj(d,4);var e=Jj(d,3);Nj(d);var f=Jj(d,2),g=Jj(d,1),h=Jj(d,5),k=Jj(d,32);c=Oj(d);for(var l=Oj(d),m=Oj(d),n=Oj(d),p=Oj(d),r=Oj(d),u=Oj(d),v=[],w=[],y=0;y<e;y++)v.push(Nj(d)),w.push(Nj(d));if(0<e)for(y=e;8>y;y++)Jj(d,2);for(y=0;y<e;y++)v[y]&&Jj(d,88),w[y]&&Oj(d);V(d);e=V(d);3==e&&Jj(d,1);v=V(d);w=V(d);var z=
385
385
  y=0,B=0,A=0;Nj(d)&&(y+=V(d),z+=V(d),B+=V(d),A+=V(d));b.width=String(v-(y+z)*(1===e||2===e?2:1));b.height=String(w-(B+A)*(1===e?2:1));d=function(C){for(var D=0,E=0;32>E;E++)D|=(C>>E&1)<<31-E;return D>>>0}(k);g=1==g?"H":"L";f="hvc1"+("."+["","A","B","C"][f]+h);f+="."+d.toString(16).toUpperCase();f+="."+g+u;r&&(f+="."+r.toString(16).toUpperCase());p&&(f+="."+p.toString(16).toUpperCase());n&&(f+="."+n.toString(16).toUpperCase());m&&(f+="."+m.toString(16).toUpperCase());l&&(f+="."+l.toString(16).toUpperCase());
386
- c&&(f+="."+c.toString(16).toUpperCase());b.codec=f;b.frameRate=Zj(a);return b}function Wj(a,b){var c=1;for(a>b&&(c=-1);4294967296<Math.abs(b-a);)a+=8589934592*c;return a}function bk(a){return 0>Uj(a)?!1:!0}function Uj(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}R("shaka.util.TsParser",Tj);Tj.syncOffset=Uj;Tj.probe=bk;Tj.prototype.getVideoInfo=Tj.prototype.pg;Tj.prototype.getVideoResolution=Tj.prototype.Kj;
387
- Tj.prototype.getVideoNalus=Tj.prototype.Ee;Tj.prototype.getCodecs=Tj.prototype.Id;Tj.prototype.getStartTime=Tj.prototype.getStartTime;Tj.prototype.getVideoData=Tj.prototype.Lc;Tj.prototype.getAudioData=Tj.prototype.rc;Tj.prototype.getMetadata=Tj.prototype.getMetadata;Tj.prototype.parseNalus=Tj.prototype.Jg;Tj.prototype.parseAvcNalus=Tj.prototype.hk;Tj.prototype.parse=Tj.prototype.parse;Tj.prototype.clearData=Tj.prototype.clearData;Tj.Timescale=9E4;
386
+ c&&(f+="."+c.toString(16).toUpperCase());b.codec=f;b.frameRate=Zj(a);return b}function Wj(a,b){var c=1;for(a>b&&(c=-1);4294967296<Math.abs(b-a);)a+=8589934592*c;return a}function bk(a){return 0>Uj(a)?!1:!0}function Uj(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}R("shaka.util.TsParser",Tj);Tj.syncOffset=Uj;Tj.probe=bk;Tj.prototype.getVideoInfo=Tj.prototype.og;Tj.prototype.getVideoResolution=Tj.prototype.Kj;
387
+ Tj.prototype.getVideoNalus=Tj.prototype.Ee;Tj.prototype.getCodecs=Tj.prototype.Id;Tj.prototype.getStartTime=Tj.prototype.getStartTime;Tj.prototype.getVideoData=Tj.prototype.Nc;Tj.prototype.getAudioData=Tj.prototype.rc;Tj.prototype.getMetadata=Tj.prototype.getMetadata;Tj.prototype.parseNalus=Tj.prototype.Ig;Tj.prototype.parseAvcNalus=Tj.prototype.hk;Tj.prototype.parse=Tj.prototype.parse;Tj.prototype.clearData=Tj.prototype.clearData;Tj.Timescale=9E4;
388
388
  var ak=[100,110,122,244,44,83,86,118,128,138,139,134];function ck(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&&ab("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,Dd("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{ab("Could not find LCEVC Library on this page");a=!1;break a}"undefined"===typeof this.h.SupportObject?(ab("Could not find LCEVC Library on this page"),
389
389
  a=!1):(this.h.SupportObject.SupportStatus||ab(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 dk(a){a.g&&a.i.classList.add("shaka-hidden")}
390
390
  ck.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function ek(a,b,c){var d=0,e=-1;switch(b.mimeType){case "video/webm":d=1;break;case "video/mp4":d=2}switch(c){case "DASH":e=1;break;case "HLS":e=0}a.g&&(a.s=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(d),a.j||a.g.setStreamingFormat(e))}R("shaka.lcevc.Dec",ck);ck.prototype.release=ck.prototype.release;function fk(a,b,c,d){var e=this;this.j=a;this.V=c;this.A=null;this.Y=b;this.h={};this.G={};this.Ia={};this.g=null;this.ha=!1;this.P=d||null;this.l={};this.u=new ud;this.i={};this.H=null;this.J=new mh;this.ya="";this.Ja=!1;this.m=gk(this,this.J);this.K=!1;this.I=new Lh(function(){return hk(e)});this.C=!1;this.S="UNKNOWN";this.Da=this.Ha=!1;this.Ca=new mh;this.s=!1;this.aa=!0;this.$=null;this.L={};this.na=this.N=this.ra=this.O=null;this.ka=new mh}
@@ -404,7 +404,7 @@ yj(n.reader,n.version).baseMediaDecodeTime/k;m=!0;n.parser.stop()}).parse(c,!0);
404
404
  function uk(a,b,c,d,e,f,g,h,k,l){g=void 0===g?!1:g;h=void 0===h?!1:h;k=void 0===k?!1:k;l=void 0===l?!1:l;var m,n,p,r,u,v,w,y,z,B,A,C,D,E,H,J;return P(function(F){switch(F.g){case 1:m=Zc;if(b!=m.Na){F.B(2);break}if(!a.C){F.B(3);break}return G(F,a.Ca,4);case 4:n=F.h,a.g.u=n;case 3:return G(F,Qf(a.g,c,d?d.startTime:null,d?d.endTime:null,d?d.R()[0]:null),5);case 5:return F.return();case 2:if(l||!a.s){F.B(6);break}return G(F,uk(a,m.ia,c,d,e,f,g,h,k,!0),7);case 7:return G(F,uk(a,m.xa,c,d,e,f,g,h,k,!0),
405
405
  8);case 8:return F.return();case 6:if(!a.h[b])return F.return();p=a.h[b].timestampOffset;r=a.G[b];a.i[b]&&(r=a.i[b].getOriginalMimeType());if(d&&(u=tk(a,b,c,d,r),v=u.timestamp,w=u.metadata,null!=v&&(null==a.O&&b==m.xa&&(a.O=v,a.ra=d.startTime,null!=a.N&&(y=0,a.ra==a.na&&(y=a.O-a.N),a.ka.resolve(y))),null==a.N&&b==m.ia&&(a.N=v,a.na=d.startTime,null!=a.O&&(z=0,a.ra==a.na&&(z=a.O-a.N),a.ka.resolve(z))),B=d.startTime-v,A=Math.abs(p-B),(.001<=A||g||h)&&(!k||0<B||!p)&&(p=B,a.Da&&(vk(a,b,function(){return wk(a,
406
406
  b)},null),vk(a,b,function(){return xk(a,b,p)},null))),C=b==m.xa||!(m.xa in a.h),a.C&&C&&a.Ca.resolve(p)),w.length))a.V.onMetadata(w,p,d?d.endTime:null);f&&b==m.xa&&(a.g||lk(a,"application/cea-608",a.C,!1),a.H||(D=r.split(";",1)[0],a.H=new Kd(D)),d?(E=a.H.i(c),E.length&&Vf(a.g,E,d.startTime,d.endTime,p)):a.H.init(c,h));if(!a.i[b]){F.B(9);break}return G(F,a.i[b].transmux(c,e,d,a.m.duration,b),10);case 10:c=F.h;case 9:c=yk(a,c,d?d.startTime:null,b,d?d.R()[0]:null);if(!d||!a.C||b==m.Na){F.B(11);break}if(!g&&
407
- !h){F.B(11);break}H=d.startTime;if("HLS"!=a.S||a.s||b!=m.ia||!a.h[m.xa]){F.B(13);break}return G(F,a.ka,14);case 14:J=F.h,.1<Math.abs(J)&&(H-=J);case 13:vk(a,b,function(){return wk(a,b)},null),vk(a,b,function(){return xk(a,b,H)},null);case 11:return G(F,vk(a,b,function(){var K=c;if("video"==b&&a.P){var L=a.P;L.g&&L.g.appendBuffer(K,"video",L.s,-p)}a.h[b].appendBuffer(K)},d?d.R()[0]:null),15);case 15:I(F)}})}function Gk(a,b){var c=rk(a,"video")||0;Tf(a.g,b,c)}function Hk(a){a.g&&Tf(a.g,"",0)}
407
+ !h){F.B(11);break}H=d.startTime;if("HLS"!=a.S||a.s||b!=m.ia||!a.h[m.xa]){F.B(13);break}return G(F,a.ka,14);case 14:J=F.h,.1<Math.abs(J)&&(H-=J);case 13:vk(a,b,function(){return wk(a,b)},null),vk(a,b,function(){return xk(a,b,H)},null);case 11:return G(F,vk(a,b,function(){var K=c;if("video"==b&&a.P){var L=a.P;L.g&&L.g.appendBuffer(K,"video",L.s,-p)}a.h[b].appendBuffer(K)},d?d.R()[0]:null),15);case 15:I(F)}})}function zk(a,b){var c=rk(a,"video")||0;Tf(a.g,b,c)}function Hk(a){a.g&&Tf(a.g,"",0)}
408
408
  q.remove=function(a,b,c){var d=this,e;return P(function(f){return 1==f.g?(e=Zc,a==e.Na?G(f,d.g.remove(b,c),0):G(f,vk(d,a,function(){return Ik(d,a,b,c)},null),4)):d.s?G(f,vk(d,e.ia,function(){return Ik(d,e.ia,b,c)},null),0):f.B(0)})};function Jk(a,b){var c;return P(function(d){return 1==d.g?(c=Zc,b==c.Na?a.g?G(d,a.g.remove(0,Infinity),0):d.return():G(d,vk(a,b,function(){return Ik(a,b,0,a.m.duration)},null),4)):a.s?G(d,vk(a,c.ia,function(){return Ik(a,c.ia,0,a.m.duration)},null),0):d.B(0)})}
409
409
  q.flush=function(a){var b=this,c;return P(function(d){return 1==d.g?(c=Zc,a==c.Na?d.return():G(d,vk(b,a,function(){b.j.currentTime-=.001;nk(b,a)},null),2)):b.s?G(d,vk(b,c.ia,function(){var e=c.ia;b.j.currentTime-=.001;nk(b,e)},null),0):d.B(0)})};
410
410
  function Kk(a,b,c,d,e,f,g,h,k){var l,m,n;return P(function(p){if(1==p.g){l=Zc;if(b==l.Na)return f||(a.g.u=c),Rf(a.g,d,e),p.return();m=[];return G(p,Lk(a,b,g,h,k),2)}n=p.h;n||(m.push(vk(a,b,function(){return wk(a,b)},null)),a.s&&m.push(vk(a,l.ia,function(){return wk(a,l.ia)},null)));f||(m.push(vk(a,b,function(){return xk(a,b,c)},null)),a.s&&m.push(vk(a,l.ia,function(){return xk(a,l.ia,c)},null)));m.push(vk(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=
@@ -420,43 +420,43 @@ Promise.all(g),4);case 4:return a.i={},a.h={},w=a.m.duration,a.J=new mh,a.m=gk(a
420
420
  break;case 2:Aa(F),a.K=!1,Mh(a.I),a.u.sa(a.j,"canplaythrough",function(){a.I.g||(a.j.autoplay=e,f||a.j.play())}),Ba(F,0)}})}function Sk(a,b){return Nk(a,function(){return Rk(a,b)})}
421
421
  function Lk(a,b,c,d,e){var f,g,h,k,l,m,n,p,r,u,v,w,y,z,B;return P(function(A){if(1==A.g){f=Zc;if(b==f.Na)return A.return(!1);g=Hf(Lf(a.G[b]));h=Kf(a.G[b]);l=!1;m=Af(c,d);n=a.A.forceTransmux;if(!zd(m)||!a.C&&Bf.includes(m))n=!0;n&&(p=Cf(c,d),r=uf(p))&&(k=r(),u=Vc(f.ia,(d||"").split(",")),v=Vc(f.xa,(d||"").split(",")),u&&v?(l=!0,w=v,b==f.ia&&(w=u),m=k.convertCodecs(b,Cf(c,w))):m=k.convertCodecs(b,p));y=Hf(Lf(m));z=Kf(m);if(g===y&&h===z)return a.i[b]&&!k?(a.i[b].destroy(),delete a.i[b]):!a.i[b]&&k?a.i[b]=
422
422
  k:k&&(a.i[b]&&a.i[b].transmux!=k.transmux?(a.i[b].destroy(),delete a.i[b],a.i[b]=k):k.destroy()),A.return(!1);B=!0;if(a.s||l&&k&&!a.i[b])B=!1;if(B&&"smooth"===a.A.codecSwitchingStrategy&&Bd())return G(A,Qk(a,b,m,k),3);k&&k.destroy();return G(A,Sk(a,e),3)}return A.return(!0)})}
423
- function Tk(a,b,c,d){if(b==Xc)var e=!1;else{e=Hf(Lf(a.G[b]));var f=Kf(a.G[b]),g=Af(c,d),h=a.A.forceTransmux;if(!zd(g)||!a.C&&Bf.includes(g))h=!0;c=Cf(c,d);h&&(h=uf(c))&&(h=h(),g=h.convertCodecs(b,c),h.destroy());b=Hf(Lf(g));g=Kf(g);e=e!==b||f!==g}return e?"smooth"!==a.A.codecSwitchingStrategy||!Bd()||a.s:!1}var ik=window.URL.createObjectURL,mk="sequence";function Uk(a,b,c){this.i=a;this.G=b;this.s=this.l=Infinity;this.h=1;this.g=this.j=null;this.A=0;this.C=!0;this.K=!1;this.J=0;this.H=void 0===c?!0:c;this.I=0;this.u=!1;this.m=a}q=Uk.prototype;q.getDuration=function(){return this.l};q.tj=function(){return this.h};q.si=function(a){this.i=a};q.vb=function(a){this.l=a};q.xj=function(){return this.i};q.ni=function(a){this.A=a};q.Vc=function(a){a&&!this.C&&(this.K=!0);this.C=a};q.jf=function(a){this.s=a};q.De=function(){return this.s};
423
+ function Tk(a,b,c,d){if(b==Xc)var e=!1;else{e=Hf(Lf(a.G[b]));var f=Kf(a.G[b]),g=Af(c,d),h=a.A.forceTransmux;if(!zd(g)||!a.C&&Bf.includes(g))h=!0;c=Cf(c,d);h&&(h=uf(c))&&(h=h(),g=h.convertCodecs(b,c),h.destroy());b=Hf(Lf(g));g=Kf(g);e=e!==b||f!==g}return e?"smooth"!==a.A.codecSwitchingStrategy||!Bd()||a.s:!1}var ik=window.URL.createObjectURL,mk="sequence";function Uk(a,b,c){this.i=a;this.G=b;this.s=this.l=Infinity;this.h=1;this.g=this.j=null;this.A=0;this.C=!0;this.K=!1;this.J=0;this.H=void 0===c?!0:c;this.I=0;this.u=!1;this.m=a}q=Uk.prototype;q.getDuration=function(){return this.l};q.tj=function(){return this.h};q.si=function(a){this.i=a};q.vb=function(a){this.l=a};q.xj=function(){return this.i};q.ni=function(a){this.A=a};q.Xc=function(a){a&&!this.C&&(this.K=!0);this.C=a};q.hf=function(a){this.s=a};q.De=function(){return this.s};
424
424
  q.Vg=function(a){this.G=a};q.jj=function(){return this.G};q.ai=function(a,b){if(0!=a.length){var c=(Date.now()+this.A)/1E3;a=a.filter(function(e){return e.start+b<c});if(0!=a.length){var d=a[a.length-1].end+b;this.Ue(a[0].start+b);this.h=a.reduce(function(e,f){return Math.max(e,f.end-f.start)},this.h);this.g=Math.max(this.g,d);null!=this.i&&this.H&&!this.u&&(this.i=c-this.g-this.h)}}};
425
425
  q.Ud=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.A)/1E3;a=t(a);for(var e=a.next();!e.done;e=a.next())e=e.value,d<e.startTime||(b=Math.min(b,e.startTime),c=Math.max(c,e.endTime),this.h=Math.max(this.h,e.endTime-e.startTime));this.Ue(b);this.g=Math.max(this.g,c);null!=this.i&&this.H&&!this.u&&(this.i=d-this.g-this.h)}};q.$h=function(a,b){this.Ue(a);Infinity==b||this.T()||(this.g=Math.max(this.g,b))};q.uj=function(){return this.g};q.Pe=function(){this.u=!0};
426
- q.Vj=function(){return this.u};q.pi=function(a){this.m=a};q.nj=function(){return this.m};q.Ue=function(a){null==this.j?this.j=a:this.K||(this.j=Math.min(this.j,a))};q.Eg=function(a){this.h=Math.max(this.h,a)};q.offset=function(a){null!=this.j&&(this.j+=a);null!=this.g&&(this.g+=a)};q.T=function(){return Infinity==this.l&&!this.C};q.Pc=function(){return Infinity!=this.l&&!this.C};q.Hb=function(){return Math.max(this.J,this.sc()-this.s)};q.xi=function(a){this.J=a};
427
- q.sc=function(){return this.T()||this.Pc()?Math.min(Math.max(0,(Date.now()+this.A)/1E3-this.h-this.i)+this.I,this.l):this.g?Math.min(this.g,this.l):this.l};q.Ld=function(a){var b=Math.max(this.j,this.J);return Infinity==this.s?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.sc()-this.s+a,this.Wb()))};q.dc=function(){return this.Ld(0)};q.Wb=function(){return Math.max(0,this.sc()-(this.T()||this.Pc()?this.G:0))};q.Hi=function(){return null==this.i||null!=this.g&&this.H?!1:!0};
426
+ q.Vj=function(){return this.u};q.pi=function(a){this.m=a};q.nj=function(){return this.m};q.Ue=function(a){null==this.j?this.j=a:this.K||(this.j=Math.min(this.j,a))};q.Dg=function(a){this.h=Math.max(this.h,a)};q.offset=function(a){null!=this.j&&(this.j+=a);null!=this.g&&(this.g+=a)};q.T=function(){return Infinity==this.l&&!this.C};q.Rc=function(){return Infinity!=this.l&&!this.C};q.Hb=function(){return Math.max(this.J,this.sc()-this.s)};q.xi=function(a){this.J=a};
427
+ q.sc=function(){return this.T()||this.Rc()?Math.min(Math.max(0,(Date.now()+this.A)/1E3-this.h-this.i)+this.I,this.l):this.g?Math.min(this.g,this.l):this.l};q.Ld=function(a){var b=Math.max(this.j,this.J);return Infinity==this.s?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.sc()-this.s+a,this.Wb()))};q.dc=function(){return this.Ld(0)};q.Wb=function(){return Math.max(0,this.sc()-(this.T()||this.Rc()?this.G:0))};q.Hi=function(){return null==this.i||null!=this.g&&this.H?!1:!0};
428
428
  q.mi=function(a){this.I=a};q.cj=function(){return this.I};R("shaka.media.PresentationTimeline",Uk);Uk.prototype.getAvailabilityTimeOffset=Uk.prototype.cj;Uk.prototype.setAvailabilityTimeOffset=Uk.prototype.mi;Uk.prototype.usingPresentationStartTime=Uk.prototype.Hi;Uk.prototype.getSeekRangeEnd=Uk.prototype.Wb;Uk.prototype.getSeekRangeStart=Uk.prototype.dc;Uk.prototype.getSafeSeekRangeStart=Uk.prototype.Ld;Uk.prototype.getSegmentAvailabilityEnd=Uk.prototype.sc;Uk.prototype.setUserSeekStart=Uk.prototype.xi;
429
- Uk.prototype.getSegmentAvailabilityStart=Uk.prototype.Hb;Uk.prototype.isInProgress=Uk.prototype.Pc;Uk.prototype.isLive=Uk.prototype.T;Uk.prototype.offset=Uk.prototype.offset;Uk.prototype.notifyMaxSegmentDuration=Uk.prototype.Eg;Uk.prototype.notifyMinSegmentStartTime=Uk.prototype.Ue;Uk.prototype.getInitialProgramDateTime=Uk.prototype.nj;Uk.prototype.setInitialProgramDateTime=Uk.prototype.pi;Uk.prototype.isStartTimeLocked=Uk.prototype.Vj;Uk.prototype.lockStartTime=Uk.prototype.Pe;
430
- Uk.prototype.getMaxSegmentEndTime=Uk.prototype.uj;Uk.prototype.notifyPeriodDuration=Uk.prototype.$h;Uk.prototype.notifySegments=Uk.prototype.Ud;Uk.prototype.notifyTimeRange=Uk.prototype.ai;Uk.prototype.getDelay=Uk.prototype.jj;Uk.prototype.setDelay=Uk.prototype.Vg;Uk.prototype.getSegmentAvailabilityDuration=Uk.prototype.De;Uk.prototype.setSegmentAvailabilityDuration=Uk.prototype.jf;Uk.prototype.setStatic=Uk.prototype.Vc;Uk.prototype.setClockOffset=Uk.prototype.ni;
431
- Uk.prototype.getPresentationStartTime=Uk.prototype.xj;Uk.prototype.setDuration=Uk.prototype.vb;Uk.prototype.setPresentationStartTime=Uk.prototype.si;Uk.prototype.getMaxSegmentDuration=Uk.prototype.tj;Uk.prototype.getDuration=Uk.prototype.getDuration;function Vk(a,b,c){this.j=c;this.l=a;this.u=Wk(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.s=0;this.A=b;this.i=function(){}}Vk.prototype.release=function(){this.j=this.l=null;this.i=function(){}};function Xk(a,b){a.i=b}function Yk(a){this.g=a}function Wk(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(oj(a.g.buffered));for(var c=a.next();!c.done;c=a.next())if(c=c.value,!(b<c.start-.1||b>c.end-.5)){b=!0;break a}b=!1}return b};function Zk(a,b,c,d,e){var f=this;this.A=e;this.g=a;this.C=b;this.m=c;this.l=new ud;this.j=!1;this.H=a.readyState;this.G=this.i=0;this.h=d;this.u=!1;this.l.o(a,"waiting",function(){return $k(f)});this.s=(new Xb(function(){$k(f)})).Aa(this.m.gapJumpTimerTime)}Zk.prototype.release=function(){this.l&&(this.l.release(),this.l=null);null!=this.s&&(this.s.stop(),this.s=null);this.h&&(this.h.release(),this.h=null);this.g=this.C=this.A=null};Zk.prototype.Hg=function(){this.u=!0;$k(this)};
429
+ Uk.prototype.getSegmentAvailabilityStart=Uk.prototype.Hb;Uk.prototype.isInProgress=Uk.prototype.Rc;Uk.prototype.isLive=Uk.prototype.T;Uk.prototype.offset=Uk.prototype.offset;Uk.prototype.notifyMaxSegmentDuration=Uk.prototype.Dg;Uk.prototype.notifyMinSegmentStartTime=Uk.prototype.Ue;Uk.prototype.getInitialProgramDateTime=Uk.prototype.nj;Uk.prototype.setInitialProgramDateTime=Uk.prototype.pi;Uk.prototype.isStartTimeLocked=Uk.prototype.Vj;Uk.prototype.lockStartTime=Uk.prototype.Pe;
430
+ Uk.prototype.getMaxSegmentEndTime=Uk.prototype.uj;Uk.prototype.notifyPeriodDuration=Uk.prototype.$h;Uk.prototype.notifySegments=Uk.prototype.Ud;Uk.prototype.notifyTimeRange=Uk.prototype.ai;Uk.prototype.getDelay=Uk.prototype.jj;Uk.prototype.setDelay=Uk.prototype.Vg;Uk.prototype.getSegmentAvailabilityDuration=Uk.prototype.De;Uk.prototype.setSegmentAvailabilityDuration=Uk.prototype.hf;Uk.prototype.setStatic=Uk.prototype.Xc;Uk.prototype.setClockOffset=Uk.prototype.ni;
431
+ Uk.prototype.getPresentationStartTime=Uk.prototype.xj;Uk.prototype.setDuration=Uk.prototype.vb;Uk.prototype.setPresentationStartTime=Uk.prototype.si;Uk.prototype.getMaxSegmentDuration=Uk.prototype.tj;Uk.prototype.getDuration=Uk.prototype.getDuration;function Vk(a,b,c){this.j=c;this.l=a;this.u=Wk(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.s=0;this.A=b;this.i=function(){}}Vk.prototype.release=function(){this.j=this.l=null;this.i=function(){}};function Xk(a,b){a.i=b}function Yk(a){this.g=a}function Wk(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(oj(a.g.buffered));for(var c=a.next();!c.done;c=a.next())if(c=c.value,!(b<c.start-.1||b>c.end-.5)){b=!0;break a}b=!1}return b};function Zk(a,b,c,d,e){var f=this;this.A=e;this.g=a;this.C=b;this.m=c;this.l=new ud;this.j=!1;this.H=a.readyState;this.G=this.i=0;this.h=d;this.u=!1;this.l.o(a,"waiting",function(){return $k(f)});this.s=(new Xb(function(){$k(f)})).Aa(this.m.gapJumpTimerTime)}Zk.prototype.release=function(){this.l&&(this.l.release(),this.l=null);null!=this.s&&(this.s.stop(),this.s=null);this.h&&(this.h.release(),this.h=null);this.g=this.C=this.A=null};Zk.prototype.Gg=function(){this.u=!0;$k(this)};
432
432
  function $k(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.j)return}else a.j=!1;if(!a.g.paused||a.g.currentTime==a.i&&(a.g.autoplay||a.g.currentTime!=a.i)){a.g.readyState!=a.H&&(a.H=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.l,d=Wk(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.u!=d)b.m=f,b.g=e,b.u=d,b.h=!1;e=f-b.m;if(d=e>=b.A&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.s++,b.j(new T("stalldetected"));b=!d}if(b&&(b=a.g.currentTime,c=a.g.buffered,d=pj(c,b,a.m.gapDetectionThreshold),
433
433
  null!=d&&(0!=d||a.u))){e=c.start(d);if(navigator.userAgent.match(/Edge\//)||bc()||dc())e=Math.ceil(100*(e+a.m.gapPadding))/100;e>=a.C.Wb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.i&&(a.i=e),a.G++,a.A(new T("gapjumped")))}}}};function al(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=bl.value().get(b),c.sa(a,b,d))}var bl=new Qb(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function cl(a,b,c,d){var e=this;this.g=a;this.m=b;this.u=c;this.l=null;this.j=function(){null==e.l&&(e.l=d());return e.l};this.s=!1;this.h=new ud;this.i=new dl(a);al(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){el(e,e.j())})}cl.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.i&&(this.i.release(),this.i=null);this.m=function(){};this.g=null};function fl(a){return a.s?a.g.currentTime:a.j()}
434
434
  function gl(a,b){0<a.g.readyState?hl(a.i,b):al(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){el(a,a.j())})}function el(a,b){.001>Math.abs(a.g.currentTime-b)?il(a):(a.h.sa(a.g,"seeking",function(){il(a)}),hl(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function il(a){a.s=!0;a.h.o(a.g,"seeking",function(){return a.m()});a.u(a.g.currentTime)}
435
- function dl(a){var b=this;this.g=a;this.m=10;this.j=this.l=this.i=0;this.h=new Xb(function(){0>=b.i?b.h.stop():b.g.currentTime!=b.l||b.g.currentTime===b.j?b.h.stop():(b.g.currentTime=b.j,b.i--)})}dl.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};function hl(a,b){a.l=a.g.currentTime;a.j=b;a.i=a.m;a.g.currentTime=b;a.h.Aa(.1)};function jl(a){this.h=a;this.j=!1;this.g=null;this.i=new ud}q=jl.prototype;q.ready=function(){function a(){if(null==b.g||0==b.g&&Infinity!=b.h.duration)b.j=!0;else{var c=b.h.currentTime,d=b.g;0>b.g&&(d=Math.max(0,c+b.g));c!=d?(b.i.sa(b.h,"seeking",function(){b.j=!0}),b.h.currentTime=d):b.j=!0}}var b=this;al(this.h,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};q.release=function(){this.i&&(this.i.release(),this.i=null);this.h=null};q.Ef=function(a){this.g=this.j?this.g:a};
435
+ function dl(a){var b=this;this.g=a;this.m=10;this.j=this.l=this.i=0;this.h=new Xb(function(){0>=b.i?b.h.stop():b.g.currentTime!=b.l||b.g.currentTime===b.j?b.h.stop():(b.g.currentTime=b.j,b.i--)})}dl.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};function hl(a,b){a.l=a.g.currentTime;a.j=b;a.i=a.m;a.g.currentTime=b;a.h.Aa(.1)};function jl(a){this.h=a;this.j=!1;this.g=null;this.i=new ud}q=jl.prototype;q.ready=function(){function a(){if(null==b.g||0==b.g&&Infinity!=b.h.duration)b.j=!0;else{var c=b.h.currentTime,d=b.g;0>b.g&&(d=Math.max(0,c+b.g));c!=d?(b.i.sa(b.h,"seeking",function(){b.j=!0}),b.h.currentTime=d):b.j=!0}}var b=this;al(this.h,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};q.release=function(){this.i&&(this.i.release(),this.i=null);this.h=null};q.Df=function(a){this.g=this.j?this.g:a};
436
436
  q.le=function(){return(this.j?this.h.currentTime:this.g)||0};q.lh=function(){return 0};q.kh=function(){return 0};q.Zh=function(){};
437
437
  function kl(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.C=b.minBufferTime||0;this.l=c;this.A=e;this.u=null;this.s=ll(a,c,f);this.j=new Zk(a,b.presentationTimeline,c,this.s,f);this.h=new cl(a,function(){a:{var h=g.j;h.j=!0;h.u=!1;var k=fl(g.h);h=ml(g,k);if(.001<Math.abs(h-k)){k=!1;if(!jc()||jc()&&tc())k=!0;else{var l=Date.now()/1E3,m=jc()&&cc("Fuchsia")?3:1;if(!g.u||g.u<l-m)g.u=l,k=!0}if(k){gl(g.h,h);h=void 0;break a}}g.A();h=void 0}return h},function(h){var k=g.j;k.g.seeking&&
438
438
  !k.j&&(k.j=!0,k.i=h)},function(){var h=d;null==h?h=Infinity>g.g.getDuration()?g.g.dc():g.g.Wb():0>h&&(h=g.g.Wb()+h);return nl(g,ol(g,h))});this.m=new Xb(function(){if(0!=g.i.readyState&&!g.i.paused){var h=fl(g.h),k=g.g.dc(),l=g.g.Wb();3>l-k&&(k=l-3);h<k&&(h=ml(g,h),g.i.currentTime=h)}})}q=kl.prototype;q.ready=function(){this.m.Aa(.25)};
439
- q.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.A=function(){}};q.Ef=function(a){gl(this.h,a)};q.le=function(){var a=fl(this.h);return 0<this.i.readyState&&!this.i.paused?ol(this,a):a};q.lh=function(){return this.s?this.s.s:0};q.kh=function(){return this.j.G};q.Zh=function(){this.j.Hg()};function nl(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}
439
+ q.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.A=function(){}};q.Df=function(a){gl(this.h,a)};q.le=function(){var a=fl(this.h);return 0<this.i.readyState&&!this.i.paused?ol(this,a):a};q.lh=function(){return this.s?this.s.s:0};q.kh=function(){return this.j.G};q.Zh=function(){this.j.Gg()};function nl(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}
440
440
  function ml(a,b){var c=Math.max(a.C,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.dc(),f=a.g.Wb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Ld(c),k=a.g.Ld(d);c=a.g.Ld(c+d);return b>=g?nl(a,b):b>f?f:b<e?mj(a.i.buffered,k)?k:c:b>=h||mj(a.i.buffered,b)?b:c}function ol(a,b){var c=a.g.dc();if(b<c)return c;a=a.g.Wb();return b>a?a:b}
441
441
  function ll(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new Vk(new Yk(a),b.stallThreshold,c);Xk(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function pl(a){this.g=a;this.m=null;this.i=0;this.s=!1}q=pl.prototype;q.getNumReferences=function(){return this.g.length};q.getNumEvicted=function(){return this.i};q.release=function(){this.s||(this.g=[],this.m&&this.m.stop(),this.m=null)};q.ck=function(){this.s=!0};q.Ub=function(a){for(var b=t(this.g),c=b.next();!c.done;c=b.next())a(c.value)};function Cg(a){return a.g[0]||null}
442
442
  q.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c<b?this.g[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.i}return this.g.length&&a<this.g[0].startTime?this.i:null};q.get=function(a){if(0==this.g.length)return null;a-=this.i;return 0>a||a>=this.g.length?null:this.g[a]};q.offset=function(a){if(!this.s)for(var b=t(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)};
443
443
  q.Re=function(a){if(!this.s&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.g.push.apply(this.g,x(a))}};q.Td=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.g.length||d.endTime>c.g[0].startTime)});this.Re(a);this.Ya(b)};q.Ya=function(a){if(!this.s){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.i+=b-this.g.length}};
444
444
  q.fd=function(a,b,c){c=void 0===c?!1:c;if(!this.s){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.i++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],b=new gj(a.startTime,b,a.H,a.$a,a.La,a.ma,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.g,a.tilesLayout,a.C,a.h,a.status,a.aesKey),b.mimeType=a.mimeType,b.codecs=a.codecs,b.i=a.i,this.g[this.g.length-1]=b)}};
445
- q.nf=function(a,b){var c=this;this.s||(this.m&&this.m.stop(),this.m=new Xb(function(){var d=b();d?c.g.push.apply(c.g,x(d)):(c.m.stop(),c.m=null)}),this.m.Aa(a))};pl.prototype[Symbol.iterator]=function(){return this.cc(0)};
445
+ q.mf=function(a,b){var c=this;this.s||(this.m&&this.m.stop(),this.m=new Xb(function(){var d=b();d?c.g.push.apply(c.g,x(d)):(c.m.stop(),c.m=null)}),this.m.Aa(a))};pl.prototype[Symbol.iterator]=function(){return this.cc(0)};
446
446
  pl.prototype.cc=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 $a("No independent partial segment found!"),null}c?d--:d++;f=g-1;break}}return new ql(this,d,f,c)};function rl(a,b,c){a=new gj(a,a+b,function(){return c},0,null,null,a,a,a+b);return new pl([a])}
447
- R("shaka.media.SegmentIndex",pl);pl.forSingleSegment=rl;pl.prototype.getIteratorForTime=pl.prototype.cc;pl.prototype.updateEvery=pl.prototype.nf;pl.prototype.fit=pl.prototype.fd;pl.prototype.evict=pl.prototype.Ya;pl.prototype.mergeAndEvict=pl.prototype.Td;pl.prototype.offset=pl.prototype.offset;pl.prototype.get=pl.prototype.get;pl.prototype.find=pl.prototype.find;pl.prototype.markImmutable=pl.prototype.ck;pl.prototype.release=pl.prototype.release;pl.prototype.getNumEvicted=pl.prototype.getNumEvicted;
447
+ R("shaka.media.SegmentIndex",pl);pl.forSingleSegment=rl;pl.prototype.getIteratorForTime=pl.prototype.cc;pl.prototype.updateEvery=pl.prototype.mf;pl.prototype.fit=pl.prototype.fd;pl.prototype.evict=pl.prototype.Ya;pl.prototype.mergeAndEvict=pl.prototype.Td;pl.prototype.offset=pl.prototype.offset;pl.prototype.get=pl.prototype.get;pl.prototype.find=pl.prototype.find;pl.prototype.markImmutable=pl.prototype.ck;pl.prototype.release=pl.prototype.release;pl.prototype.getNumEvicted=pl.prototype.getNumEvicted;
448
448
  pl.prototype.getNumReferences=pl.prototype.getNumReferences;function ql(a,b,c,d){this.i=a;this.h=b;this.g=c;this.reverse=d}q=ql.prototype;q.yd=function(a){this.reverse=a};q.Yi=function(){return this.h};q.current=function(){var a=this.i.get(this.h);a&&0<a.g.length&&a.u&&this.g>=a.g.length&&(this.h++,this.g=0,a=this.i.get(this.h));return a&&0<a.g.length?a.g[this.g]:a};
449
449
  q.next=function(){var a=this.i.get(this.h);this.reverse?a&&0<a.g.length?(this.g--,0>this.g&&(this.h--,this.g=(a=this.i.get(this.h))&&0<a.g.length?a.g.length-1:0)):(this.h--,this.g=0):a&&0<a.g.length?(this.g++,a.u&&this.g==a.g.length&&(this.h++,this.g=0)):(this.h++,this.g=0);a=this.current();return{value:a,done:!a}};q.Og=function(){var a=this.current();if(a.s&&!a.l&&(a=this.i.get(this.h))&&0<a.g.length)for(var b=a.g[this.g];b.l&&!(0>=this.g);)this.g--,b=a.g[this.g]};
450
450
  R("shaka.media.SegmentIterator",ql);ql.prototype.resetToLastIndependent=ql.prototype.Og;ql.prototype.next=ql.prototype.next;ql.prototype.current=ql.prototype.current;ql.prototype.currentPosition=ql.prototype.Yi;ql.prototype.setReverse=ql.prototype.yd;function sl(){pl.call(this,[]);this.h=[]}ra(sl,pl);q=sl.prototype;q.clone=function(){var a=new sl;a.h=this.h.slice();a.i=this.i;return a};q.release=function(){for(var a=t(this.h),b=a.next();!b.done;b=a.next())b.value.release();this.h=[]};
451
451
  q.Ub=function(a){for(var b=t(this.h),c=b.next();!c.done;c=b.next())c.value.Ub(a)};q.find=function(a){for(var b=this.i,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.getNumEvicted()+d.getNumReferences()}return null};q.get=function(a){for(var b=this.i,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;e=d.getNumReferences();b+=d.getNumEvicted()+e}return null};q.offset=function(){};q.Re=function(){};
452
- q.Ya=function(a){for(var b=t(this.h),c=b.next();!c.done;c=b.next())c.value.Ya(a);for(;1<this.h.length&&0==this.h[0].getNumReferences();)a=this.h.shift(),this.i+=a.getNumEvicted(),a.release()};q.Td=function(){};q.fd=function(){};q.nf=function(){};R("shaka.media.MetaSegmentIndex",sl);sl.prototype.updateEvery=sl.prototype.nf;sl.prototype.fit=sl.prototype.fd;sl.prototype.mergeAndEvict=sl.prototype.Td;sl.prototype.evict=sl.prototype.Ya;sl.prototype.merge=sl.prototype.Re;sl.prototype.offset=sl.prototype.offset;
453
- sl.prototype.get=sl.prototype.get;sl.prototype.find=sl.prototype.find;sl.prototype.forEachTopLevelReference=sl.prototype.Ub;sl.prototype.release=sl.prototype.release;function tl(a){var b=this;this.g=a;this.j=!1;this.i=this.g.Ce();this.h=new Xb(function(){b.g.Yh(.25*b.i)})}tl.prototype.release=function(){this.set(this.Jc());this.h&&(this.h.stop(),this.h=null);this.g=null};tl.prototype.set=function(a){this.i=a;ul(this)};tl.prototype.Jc=function(){return this.g.Jc()};function ul(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.Ce()!=b&&a.g.Zg(b);return}catch(c){}a.h.Aa(.25);0!=a.g.Ce()&&a.g.Zg(0)};function vl(a){var b=this;this.h=a;this.g=new Set;this.i=(new Xb(function(){wl(b,!1)})).Aa(.25)}vl.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 wl(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function xl(){this.g=null;this.h=[]}function yl(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 zl(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 Al(){this.i=this.h=null;this.g=[]}function Bl(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 Cl(){this.Fc=this.Th=this.u=this.A=this.K=this.C=this.s=this.j=this.J=this.G=this.i=this.S=this.V=this.N=this.O=this.P=this.l=this.m=NaN;this.L=0;this.H=this.I=NaN;this.g=new xl;this.h=new Al};function Dl(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 El(a,b){a.l=b;a=t(a.h.values());for(var c=a.next();!c.done;c=a.next())c.value.g=b}
454
- function Fl(a,b,c){c=void 0===c?!1:c;if(a.i.segmentIndex&&(a.g||(a.g=a.i.segmentIndex.cc(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.isPreload()&&null!=b.La&&(c=!1);2==b.tc()&&(c=!1);b.Kc()&&(c=!1);c&&b.ma&&Gl(a,b.ma);c&&!a.h.has(b)&&(c=new Hl(a.l),Il(c,b,a.i),a.h.set(b,c))}Jl(a)}}function Gl(a,b){if(a.i.segmentIndex&&!b.Kc()&&!Array.from(a.j.keys()).some(function(d){return fj(d,b)})){var c=new Hl(a.l);Il(c,b,a.i);a.j.set(b,c)}}
452
+ q.Ya=function(a){for(var b=t(this.h),c=b.next();!c.done;c=b.next())c.value.Ya(a);for(;1<this.h.length&&0==this.h[0].getNumReferences();)a=this.h.shift(),this.i+=a.getNumEvicted(),a.release()};q.Td=function(){};q.fd=function(){};q.mf=function(){};R("shaka.media.MetaSegmentIndex",sl);sl.prototype.updateEvery=sl.prototype.mf;sl.prototype.fit=sl.prototype.fd;sl.prototype.mergeAndEvict=sl.prototype.Td;sl.prototype.evict=sl.prototype.Ya;sl.prototype.merge=sl.prototype.Re;sl.prototype.offset=sl.prototype.offset;
453
+ sl.prototype.get=sl.prototype.get;sl.prototype.find=sl.prototype.find;sl.prototype.forEachTopLevelReference=sl.prototype.Ub;sl.prototype.release=sl.prototype.release;function tl(a){var b=this;this.g=a;this.j=!1;this.i=this.g.Ce();this.h=new Xb(function(){b.g.Yh(.25*b.i)})}tl.prototype.release=function(){this.set(this.Lc());this.h&&(this.h.stop(),this.h=null);this.g=null};tl.prototype.set=function(a){this.i=a;ul(this)};tl.prototype.Lc=function(){return this.g.Lc()};function ul(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.Ce()!=b&&a.g.Zg(b);return}catch(c){}a.h.Aa(.25);0!=a.g.Ce()&&a.g.Zg(0)};function vl(a){var b=this;this.h=a;this.g=new Set;this.i=(new Xb(function(){wl(b,!1)})).Aa(.25)}vl.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 wl(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function xl(){this.g=null;this.h=[]}function yl(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 zl(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 Al(){this.i=this.h=null;this.g=[]}function Bl(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 Cl(){this.Gc=this.Th=this.u=this.A=this.K=this.C=this.s=this.j=this.J=this.G=this.i=this.S=this.V=this.N=this.O=this.P=this.l=this.m=NaN;this.L=0;this.H=this.I=NaN;this.g=new xl;this.h=new Al};function Dl(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 El(a,b){a.l=b;a=t(a.h.values());for(var c=a.next();!c.done;c=a.next())c.value.g=b}
454
+ function Fl(a,b,c){c=void 0===c?!1:c;if(a.i.segmentIndex&&(a.g||(a.g=a.i.segmentIndex.cc(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.isPreload()&&null!=b.La&&(c=!1);2==b.tc()&&(c=!1);b.Mc()&&(c=!1);c&&b.ma&&Gl(a,b.ma);c&&!a.h.has(b)&&(c=new Hl(a.l),Il(c,b,a.i),a.h.set(b,c))}Jl(a)}}function Gl(a,b){if(a.i.segmentIndex&&!b.Mc()&&!Array.from(a.j.keys()).some(function(d){return fj(d,b)})){var c=new Hl(a.l);Il(c,b,a.i);a.j.set(b,c)}}
455
455
  function Kl(a,b){b=t(b.keys());for(var c=b.next();!c.done;c=b.next())(c=c.value)&&Ll(a,c)}function Ml(a){Kl(a,a.h);Kl(a,a.j);a.g=null}Dl.prototype.Ya=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&&Ll(this,d);b&&Jl(this)};Dl.prototype.yd=function(a){this.s=a;this.g&&this.g.yd(a)};
456
- function Jl(a){for(var b=Array.from(a.h.keys()),c=t(a.j.keys()),d=c.next(),e={};!d.done;e={wg:void 0},d=c.next())e.wg=d.value,b.some(function(f){return function(g){return fj(g.ma,f.wg)}}(e))||Ll(a,e.wg)}function Nl(a,b){a.m=b;for(var c=Array.from(a.h.keys());c.length>b;){var d=c.pop();d&&Ll(a,d)}Jl(a)}function Ol(a,b){b&&b!==a.i&&(Ml(a),a.i=b)}function Ll(a,b){var c=a.h;b instanceof ej&&(c=a.j);a=c.get(b);c.delete(b);a&&a.abort()}function Hl(a){this.g=a;this.Xe=this.dh=null}
457
- function Il(a,b,c){var d=new Uint8Array(0);a.Xe=a.g(b,c,function(e){return P(function(f){if(1==f.g)return 0<d.byteLength?d=Pc(d,e):d=e,a.dh?G(f,a.dh(d),3):f.B(0);d=new Uint8Array(0);I(f)})})}Hl.prototype.abort=function(){this.Xe&&this.Xe.abort()};function Pl(a){ib.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new Xb(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 T("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).Aa(2)}ra(Pl,ib);Pl.prototype.release=function(){this.g.clear();this.h.stop();ib.prototype.release.call(this)};function Ql(a){ib.call(this);this.g=new Map;this.h=a}ra(Ql,ib);Ql.prototype.release=function(){this.g.clear();ib.prototype.release.call(this)};function Rl(a,b){var c=a.g.get(b);c||(c={Xd:[],Sf:null,contentType:b},a.g.set(b,c));return c}function Sl(a,b,c){var d=Rl(a,b.contentType);Tl(a,d);a={pd:b,position:c};d=d.Xd;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
458
- Ql.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.Sf;a:{var e=c.Xd;for(var f=e.length-1;0<=f;f--){var g=e[f];if(g.position<=a){e=g.pd;break a}}e=null}f=e&&!(d===e||d&&e&&d.bandwidth==e.bandwidth&&d.audioSamplingRate==e.audioSamplingRate&&d.codecs==e.codecs&&d.contentType==e.contentType&&d.frameRate==e.frameRate&&d.height==e.height&&d.mimeType==e.mimeType&&d.channelsCount==e.channelsCount&&d.pixelAspectRatio==e.pixelAspectRatio&&d.width==e.width);
459
- g=e&&d&&e.label&&d.label&&d.label!==e.label;var h=e&&d&&e.language&&d.language&&d.language!==e.language;d=e&&d&&e.roles&&d.roles&&!Ud(d.roles,e.roles);(g||h||d)&&Ul(this,a,e.contentType)&&(c.Sf=e,d=new T("audiotrackchange",new Map([["quality",e],["position",a]])),this.dispatchEvent(d));f&&Ul(this,a,e.contentType)&&(c.Sf=e,JSON.stringify(e),c=new T("qualitychange",new Map([["quality",e],["position",a]])),this.dispatchEvent(c))}};
456
+ function Jl(a){for(var b=Array.from(a.h.keys()),c=t(a.j.keys()),d=c.next(),e={};!d.done;e={vg:void 0},d=c.next())e.vg=d.value,b.some(function(f){return function(g){return fj(g.ma,f.vg)}}(e))||Ll(a,e.vg)}function Nl(a,b){a.m=b;for(var c=Array.from(a.h.keys());c.length>b;){var d=c.pop();d&&Ll(a,d)}Jl(a)}function Ol(a,b){b&&b!==a.i&&(Ml(a),a.i=b)}function Ll(a,b){var c=a.h;b instanceof ej&&(c=a.j);a=c.get(b);c.delete(b);a&&a.abort()}function Hl(a){this.g=a;this.Xe=this.dh=null}
457
+ function Il(a,b,c){var d=new Uint8Array(0);a.Xe=a.g(b,c,function(e){return P(function(f){if(1==f.g)return 0<d.byteLength?d=Pc(d,e):d=e,a.dh?G(f,a.dh(d),3):f.B(0);d=new Uint8Array(0);I(f)})})}Hl.prototype.abort=function(){this.Xe&&this.Xe.abort()};function Pl(a){ib.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new Xb(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 T("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).Aa(2)}ra(Pl,ib);Pl.prototype.release=function(){this.g.clear();this.h.stop();ib.prototype.release.call(this)};function Ql(a){ib.call(this);this.g=new Map;this.h=a}ra(Ql,ib);Ql.prototype.release=function(){this.g.clear();ib.prototype.release.call(this)};function Rl(a,b){var c=a.g.get(b);c||(c={Xd:[],Rf:null,contentType:b},a.g.set(b,c));return c}function Sl(a,b,c){var d=Rl(a,b.contentType);Tl(a,d);a={pd:b,position:c};d=d.Xd;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
458
+ Ql.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.Rf;a:{var e=c.Xd;for(var f=e.length-1;0<=f;f--){var g=e[f];if(g.position<=a){e=g.pd;break a}}e=null}f=e&&!(d===e||d&&e&&d.bandwidth==e.bandwidth&&d.audioSamplingRate==e.audioSamplingRate&&d.codecs==e.codecs&&d.contentType==e.contentType&&d.frameRate==e.frameRate&&d.height==e.height&&d.mimeType==e.mimeType&&d.channelsCount==e.channelsCount&&d.pixelAspectRatio==e.pixelAspectRatio&&d.width==e.width);
459
+ g=e&&d&&e.label&&d.label&&d.label!==e.label;var h=e&&d&&e.language&&d.language&&d.language!==e.language;d=e&&d&&e.roles&&d.roles&&!Ud(d.roles,e.roles);(g||h||d)&&Ul(this,a,e.contentType)&&(c.Rf=e,d=new T("audiotrackchange",new Map([["quality",e],["position",a]])),this.dispatchEvent(d));f&&Ul(this,a,e.contentType)&&(c.Rf=e,JSON.stringify(e),c=new T("qualitychange",new Map([["quality",e],["position",a]])),this.dispatchEvent(c))}};
460
460
  function Ul(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 Tl(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.Xd;b.Xd=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.Xd=[]}
461
461
  function Vl(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=
462
462
  a.language);return b};function Wl(a){var b=Kf(a),c=b.split("/")[0];a=Lf(a);return{type:c,mimeType:b,codecs:a,language:null,height:null,width:null,channelCount:null,sampleRate:null,closedCaptions:new Map,ce:null,colorGamut:null,frameRate:null}}
@@ -478,43 +478,43 @@ b.ba&&(Ml(b.ba),b.ba=null);a.disableVideoPrefetch&&(b=this.i.get("video"))&&b.ba
478
478
  q.start=function(a){var b=this;return P(function(c){if(1==c.g)return G(c,jm(b,a||new Map),2);Mh(b.m);b.H=!0;I(c)})};function km(a,b){var c,d,e,f,g,h,k;P(function(l){switch(l.g){case 1:return c=Zc,a.L++,d=a.L,va(l,2),G(l,Jk(a.g.oa,c.Na),4);case 4:xa(l,3);break;case 2:if(e=za(l),a.g)a.g.onError(e);case 3:f=Af(b.mimeType,b.codecs),lk(a.g.oa,f,a.l.sequenceMode,b.external),g=a.g.oa.Y,(h=g.isTextVisible()||a.h.alwaysStreamText)&&a.L==d&&(k=lm(a,b),a.i.set(c.Na,k),mm(a,k,0)),I(l)}})}
479
479
  function nm(a){var b=a.i.get(Xc);b&&(em(b),fm(b).catch(function(){}),a.G=a.i.get(Xc),a.i.delete(Xc));a.u=null}function om(a,b){for(var c=0>a.g.Va(),d=t(a.i.values()),e=d.next();!e.done;e=d.next())e=e.value,e.va&&e.va.yd(c),e.ba&&e.ba.yd(c);d=t(a.s.values());for(e=d.next();!e.done;e=d.next())e.value.yd(c);if(c=a.i.get("video"))if(d=c.stream)if(b)(b=d.trickModeVideo)&&!c.Ac&&(pm(a,b,!1,0,!1),c.Ac=d);else if(b=c.Ac)c.Ac=null,pm(a,b,!0,0,!1)}
480
480
  function qm(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.H&&(b.video&&pm(a,b.video,c,d,e,f),b.audio&&pm(a,b.audio,c,d,e,f))}function rm(a,b){P(function(c){if(1==c.g)return a.G=null,a.u=b,a.H?b.segmentIndex?c.B(2):G(c,b.createSegmentIndex(),2):c.return();pm(a,b,!0,0,!1);I(c)})}function sm(a,b){for(var c=t(a.I.entries()),d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;d.includes(b.type)&&(e(),a.I.delete(d))}}
481
- function pm(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=Xc?g&&(g.Ac&&(b.trickModeVideo?(g.Ac=b,b=b.trickModeVideo):g.Ac=null),g.stream!=b||e)&&(a.s.has(b)?g.ba=a.s.get(b):g.ba&&Ol(g.ba,b),b.type==Xc&&(e=Af(b.mimeType,b.codecs),lk(a.g.oa,e,a.l.sequenceMode,b.external)),!a.s.has(g.stream)&&g.stream.closeSegmentIndex&&(g.gb?(e="("+g.type+":"+g.stream.id+")",a.I.has(e)||a.I.set(e,g.stream.closeSegmentIndex)):g.stream.closeSegmentIndex()),g.stream=b,g.va=null,g.nh=!!f,c?g.Ed?g.wf=!0:g.gb?(g.Ec=!0,g.ue=
482
- d,g.wf=!0):(em(g),tm(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)})):g.gb||g.Sb||mm(a,g,0),um(a,g).catch(function(h){if(a.g)a.g.onError(h)})):km(a,b)}
481
+ function pm(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=Xc?g&&(g.Ac&&(b.trickModeVideo?(g.Ac=b,b=b.trickModeVideo):g.Ac=null),g.stream!=b||e)&&(a.s.has(b)?g.ba=a.s.get(b):g.ba&&Ol(g.ba,b),b.type==Xc&&(e=Af(b.mimeType,b.codecs),lk(a.g.oa,e,a.l.sequenceMode,b.external)),!a.s.has(g.stream)&&g.stream.closeSegmentIndex&&(g.gb?(e="("+g.type+":"+g.stream.id+")",a.I.has(e)||a.I.set(e,g.stream.closeSegmentIndex)):g.stream.closeSegmentIndex()),g.stream=b,g.va=null,g.nh=!!f,c?g.Ed?g.vf=!0:g.gb?(g.Fc=!0,g.ue=
482
+ d,g.vf=!0):(em(g),tm(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)})):g.gb||g.Sb||mm(a,g,0),um(a,g).catch(function(h){if(a.g)a.g.onError(h)})):km(a,b)}
483
483
  function um(a,b){var c,d;return P(function(e){if(1==e.g){if(!b.Bb)return e.return();c=b.stream;d=b.Bb;return c.segmentIndex?e.B(2):G(e,c.createSegmentIndex(),2)}if(b.Bb!=d||b.stream!=c)return e.return();var f=a.g.Kd();var g=rk(a.g.oa,b.type),h=b.stream.segmentIndex.find(b.jb?b.jb.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.La?k.La-k.$a:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.ma)&&(h+=(k.La?k.La-k.$a:null)||0),k=a.g.getBandwidthEstimate(),
484
484
  f=8*h/k<(g||0)-f-Math.max(a.l.minBufferTime||0,a.h.rebufferingGoal)||b.Bb.h.g>h?!0:!1):f=!1;f&&b.Bb.abort();I(e)})}
485
485
  q.wd=function(){if(this.g)for(var a=this.g.Kd(),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;d==Xc?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=qk(e,d),e=mj(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!=rk(this.g.oa,d)||c.gb)&&vm(this,c);c.Bb&&(c.Bb.abort(),c.Bb=null);d===Xc&&(d=this.g.oa,d.H&&d.H.g());c.wd=!0}}};
486
- function vm(a,b){b.Ed||b.Ec||(b.gb?(b.Ec=!0,b.ue=0):null==pk(a.g.oa,b.type)?null==b.Sb&&mm(a,b,0):(em(b),tm(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
486
+ function vm(a,b){b.Ed||b.Fc||(b.gb?(b.Fc=!0,b.ue=0):null==pk(a.g.oa,b.type)?null==b.Sb&&mm(a,b,0):(em(b),tm(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
487
487
  function jm(a,b){var c,d,e,f,g,h,k,l,m,n;return P(function(p){if(1==p.g){c=Zc;if(!a.j)throw new U(2,5,5006);d=new Map;e=new Set;a.j.audio&&(d.set(c.ia,a.j.audio),e.add(a.j.audio));a.j.video&&(d.set(c.xa,a.j.video),e.add(a.j.video));a.u&&(d.set(c.Na,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)}Mh(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=lm(a,l),b.has(l.id)&&(n=
488
- b.get(l.id),El(n,function(r,u,v){return wm(r,u,v||null,a.h.retryParameters,a.g.ic)}),m.ba=n),a.i.set(k,m),mm(a,m,0));I(p)})}function lm(a,b){return{stream:b,type:b.type,va:null,ba:gm(a,b),jb:null,nd:null,Oe:null,Ne:null,Me:null,Ac:null,endOfStream:!1,gb:!1,Sb:null,Ec:!1,ue:0,wf:!1,Ed:!1,wd:!0,Mg:!1,Nd:!1,Bb:null}}
488
+ b.get(l.id),El(n,function(r,u,v){return wm(r,u,v||null,a.h.retryParameters,a.g.ic)}),m.ba=n),a.i.set(k,m),mm(a,m,0));I(p)})}function lm(a,b){return{stream:b,type:b.type,va:null,ba:gm(a,b),jb:null,nd:null,Oe:null,Ne:null,Me:null,Ac:null,endOfStream:!1,gb:!1,Sb:null,Fc:!1,ue:0,vf:!1,Ed:!1,wd:!0,Mg:!1,Nd:!1,Bb:null}}
489
489
  function gm(a,b){if("video"===b.type&&a.h.disableVideoPrefetch||"audio"===b.type&&a.h.disableAudioPrefetch||b.type===Xc&&("application/cea-608"==b.mimeType||"application/cea-708"==b.mimeType)||b.type===Xc&&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 Dl(a.h.segmentPrefetchLimit,b,function(d,e,f){return wm(d,e,f||null,a.h.retryParameters,a.g.ic)},0>a.g.Va()):null}
490
490
  function hm(a){for(var b=a.h.segmentPrefetchLimit,c=a.h.prefetchAudioLanguages,d=t(a.l.variants),e=d.next(),f={};!e.done;f={Eb:void 0},e=d.next())if(f.Eb=e.value,f.Eb.audio)if(a.s.has(f.Eb.audio)){if(e=a.s.get(f.Eb.audio),Nl(e,b),!(0<b&&c.some(function(h){return function(k){return bd(h.Eb.audio.language,k)}}(f)))){var g=a.i.get(f.Eb.audio.type);e!==(g&&g.ba)&&Ml(e);a.s.delete(f.Eb.audio)}}else 0>=b||!c.some(function(h){return function(k){return bd(h.Eb.audio.language,k)}}(f))||!(e=gm(a,f.Eb.audio))||
491
491
  (f.Eb.audio.segmentIndex||f.Eb.audio.createSegmentIndex(),a.s.set(f.Eb.audio,e))}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))};
492
- function xm(a,b){var c,d,e,f,g,h;return P(function(k){switch(k.g){case 1:Mh(a.m);if(b.gb||null==b.Sb||b.Ed)return k.return();b.Sb=null;if(!b.Ec){k.B(2);break}return G(k,tm(a,b,b.wf,b.ue),3);case 3:return k.return();case 2:sm(a,b);if(b.stream.segmentIndex){k.B(4);break}c=b.stream;va(k,5);return G(k,b.stream.createSegmentIndex(),7);case 7:xa(k,6);break;case 5:return d=za(k),G(k,ym(a,b,d),8);case 8:return k.return();case 6:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.gb||b.Sb||
492
+ function xm(a,b){var c,d,e,f,g,h;return P(function(k){switch(k.g){case 1:Mh(a.m);if(b.gb||null==b.Sb||b.Ed)return k.return();b.Sb=null;if(!b.Fc){k.B(2);break}return G(k,tm(a,b,b.vf,b.ue),3);case 3:return k.return();case 2:sm(a,b);if(b.stream.segmentIndex){k.B(4);break}c=b.stream;va(k,5);return G(k,b.stream.createSegmentIndex(),7);case 7:xa(k,6);break;case 5:return d=za(k),G(k,ym(a,b,d),8);case 8:return k.return();case 6:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.gb||b.Sb||
493
493
  mm(a,b,0),k.return();case 4:va(k,9);e=zm(a,b);null!=e&&(mm(a,b,e),b.Nd=!1);xa(k,10);break;case 9:return f=za(k),G(k,ym(a,b,f),11);case 11:return k.return();case 10:g=Array.from(a.i.values());if(!a.H||!g.every(function(l){return l.endOfStream})){k.B(0);break}return G(k,a.g.oa.endOfStream(),13);case 13:Mh(a.m),h=a.g.oa.getDuration(),0!=h&&h<a.l.presentationTimeline.getDuration()&&a.l.presentationTimeline.vb(h),I(k)}})}
494
- function zm(a,b){if(Am(b))return Gk(a.g.oa,b.stream.originalId||""),null;b.type==Xc&&Hk(a.g.oa);if(!a.g.oa.aa&&b.type!=Xc)return a.h.updateIntervalSeconds/2;var c=a.g.Kd();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.Ya(c,!0),Fl(e,c);d=b.jb?b.jb.endTime:c;var f=sk(a.g.oa,b.type,c),g=Math.max(1,Math.max(a.l.minBufferTime||0,a.h.rebufferingGoal,a.h.bufferingGoal)*a.C),h=a.l.presentationTimeline.getDuration()-d;e=rk(a.g.oa,b.type);if(1E-6>h&&e)return b.endOfStream=
494
+ function zm(a,b){if(Am(b))return zk(a.g.oa,b.stream.originalId||""),null;b.type==Xc&&Hk(a.g.oa);if(!a.g.oa.aa&&b.type!=Xc)return a.h.updateIntervalSeconds/2;var c=a.g.Kd();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.Ya(c,!0),Fl(e,c);d=b.jb?b.jb.endTime:c;var f=sk(a.g.oa,b.type,c),g=Math.max(1,Math.max(a.l.minBufferTime||0,a.h.rebufferingGoal,a.h.bufferingGoal)*a.C),h=a.l.presentationTimeline.getDuration()-d;e=rk(a.g.oa,b.type);if(1E-6>h&&e)return b.endOfStream=
495
495
  !0,"video"==b.type&&(a=a.i.get(Xc))&&Am(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(f>=g)return a.h.updateIntervalSeconds/2;g=!b.va;e=Bm(a,b,c,e);if(!e)return a.h.updateIntervalSeconds;f=!1;g&&b.nh&&(f=!0,b.nh=!1);g=Infinity;h=Array.from(a.i.values());h=t(h);for(var k=h.next();!k.done;k=h.next())k=k.value,Am(k)||k.va&&!k.va.current()||(g=Math.min(g,k.jb?k.jb.endTime:c));if(d>=g+a.l.presentationTimeline.h)return a.h.updateIntervalSeconds;b.ba&&b.va&&!a.s.has(b.stream)&&(b.ba.Ya(e.startTime),Fl(b.ba,
496
496
  e.startTime));Cm(a,b,c,e,f).catch(function(){});return null}
497
497
  function Bm(a,b,c,d){if(b.va)return b.va.current();if(b.jb||d)return c=b.jb?b.jb.endTime:d,a=0>a.g.Va(),b.stream.segmentIndex&&(b.va=b.stream.segmentIndex.cc(c,!1,a)),b.va&&b.va.next().value;d=a.l.sequenceMode?0:a.h.inaccurateManifestTolerance;var e=Math.max(c-d,0);a=0>a.g.Va();var f=null;d&&(b.stream.segmentIndex&&(b.va=b.stream.segmentIndex.cc(e,!1,a)),f=b.va&&b.va.next().value);f||(b.stream.segmentIndex&&(b.va=b.stream.segmentIndex.cc(c,!1,a)),f=b.va&&b.va.next().value);return f}
498
498
  function Cm(a,b,c,d,e){var f,g,h,k,l,m,n,p,r,u,v,w,y,z,B,A,C;return P(function(D){switch(D.g){case 1:f=Zc;g=b.stream;h=b.va;b.gb=!0;va(D,2);if(2==d.tc())throw new U(1,1,1011);return G(D,Dm(a,b,d,e),4);case 4:Mh(a.m);if(a.A)return D.return();k="video/mp4"==g.mimeType||"audio/mp4"==g.mimeType;l=window.ReadableStream;if((m=a.h.lowLatencyMode&&a.l.isLowLatency)&&l&&k&&("HLS"!=a.l.type||d.m))return r=new Uint8Array(0),v=u=!1,y=function(E){var H,J,F,K;return P(function(L){switch(L.g){case 1:if(u)return L.return();
499
- v=!0;Mh(a.m);if(a.A)return L.return();va(L,2);r=Em(r,E);H=!1;J=0;(new Uh).box("mdat",function(O){J=O.size+O.start;H=!0}).parse(r,!1,!0);if(!H){L.B(4);break}F=r.subarray(0,J);r=r.subarray(J);return G(L,Fm(a,b,c,g,d,F,!0,e),5);case 5:b.ba&&b.va&&Fl(b.ba,d.startTime,!0);case 4:xa(L,0);break;case 2:w=K=za(L),I(L)}})},G(D,Gm(a,b,d,y),9);n=Gm(a,b,d);return G(D,n,7);case 7:p=D.h;Mh(a.m);if(a.A)return D.return();Mh(a.m);return b.Ec?(b.gb=!1,mm(a,b,0),D.return()):G(D,Fm(a,b,c,g,d,p,!1,e),6);case 9:z=D.h;if(w)throw w;
500
- if(v){D.B(10);break}u=!0;Mh(a.m);return a.A?D.return():b.Ec?(b.gb=!1,mm(a,b,0),D.return()):G(D,Fm(a,b,c,g,d,z,!1,e),10);case 10:b.ba&&b.va&&Fl(b.ba,d.startTime,!0);case 6:Mh(a.m);if(a.A)return D.return();b.jb=d;h.next();b.gb=!1;b.Mg=!1;B=a.g.oa.Vb();A=B[b.type];fb(JSON.stringify(A));b.Ec||a.g.Hg(d,b.stream);mm(a,b,0);xa(D,0);break;case 2:C=za(D);Mh(a.m,C);if(a.A)return D.return();b.gb=!1;if(7001==C.code)b.gb=!1,em(b),mm(a,b,0),D.B(0);else if(b.type==f.Na&&a.h.ignoreTextStreamFailures)a.i.delete(f.Na),
499
+ v=!0;Mh(a.m);if(a.A)return L.return();va(L,2);r=Em(r,E);H=!1;J=0;(new Uh).box("mdat",function(O){J=O.size+O.start;H=!0}).parse(r,!1,!0);if(!H){L.B(4);break}F=r.subarray(0,J);r=r.subarray(J);return G(L,Fm(a,b,c,g,d,F,!0,e),5);case 5:b.ba&&b.va&&Fl(b.ba,d.startTime,!0);case 4:xa(L,0);break;case 2:w=K=za(L),I(L)}})},G(D,Gm(a,b,d,y),9);n=Gm(a,b,d);return G(D,n,7);case 7:p=D.h;Mh(a.m);if(a.A)return D.return();Mh(a.m);return b.Fc?(b.gb=!1,mm(a,b,0),D.return()):G(D,Fm(a,b,c,g,d,p,!1,e),6);case 9:z=D.h;if(w)throw w;
500
+ if(v){D.B(10);break}u=!0;Mh(a.m);return a.A?D.return():b.Fc?(b.gb=!1,mm(a,b,0),D.return()):G(D,Fm(a,b,c,g,d,z,!1,e),10);case 10:b.ba&&b.va&&Fl(b.ba,d.startTime,!0);case 6:Mh(a.m);if(a.A)return D.return();b.jb=d;h.next();b.gb=!1;b.Mg=!1;B=a.g.oa.Vb();A=B[b.type];fb(JSON.stringify(A));b.Fc||a.g.Gg(d,b.stream);mm(a,b,0);xa(D,0);break;case 2:C=za(D);Mh(a.m,C);if(a.A)return D.return();b.gb=!1;if(7001==C.code)b.gb=!1,em(b),mm(a,b,0),D.B(0);else if(b.type==f.Na&&a.h.ignoreTextStreamFailures)a.i.delete(f.Na),
501
501
  D.B(0);else{if(3017==C.code)return G(D,Hm(a,b,C),0);b.Nd=!0;1==C.category&&b.ba&&Ll(b.ba,d);C.severity=2;return G(D,ym(a,b,C),0)}}})}function Em(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
502
502
  function Hm(a,b,c){var d,e,f,g,h,k;return P(function(l){if(1==l.g){d=Array.from(a.i.values());if(e=d.some(function(m){return m!=b&&m.Mg}))return l.B(2);f=0===a.h.maxDisabledTime&&1011==c.code?1:a.h.maxDisabledTime;if(g=a.g.disableStream(b.stream,f))return l.return();h=Math.round(100*a.C);if(20<h)a.C-=.2;else if(4<h)a.C-=.04;else return b.Nd=!0,a.A=!0,a.g.onError(c),l.return();b.Mg=!0;k=a.g.Kd();return G(l,Im(a,b,k),2)}mm(a,b,4);I(l)})}
503
- function Dm(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,B;return P(function(A){switch(A.g){case 1:e=Zc;f=null==b.jb;g=[];h=Math.max(0,Math.max(c.appendWindowStart,a.S)-.1);k=Math.min(c.appendWindowEnd,a.P)+.01;l=c.codecs||b.stream.codecs;m=Jf(l);n=Kf(c.mimeType||b.stream.mimeType);p=c.timestampOffset;if(p==b.Oe&&h==b.Ne&&k==b.Me&&m==b.Ag&&n==b.Bg){A.B(2);break}r=b.Ag&&b.Bg&&Tk(a.g.oa,b.type,n,l);if(!r){A.B(3);break}u=null;b.type===e.xa?u=a.i.get(e.ia):b.type===e.ia&&(u=a.i.get(e.xa));if(!u){A.B(3);
503
+ function Dm(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,B;return P(function(A){switch(A.g){case 1:e=Zc;f=null==b.jb;g=[];h=Math.max(0,Math.max(c.appendWindowStart,a.S)-.1);k=Math.min(c.appendWindowEnd,a.P)+.01;l=c.codecs||b.stream.codecs;m=Jf(l);n=Kf(c.mimeType||b.stream.mimeType);p=c.timestampOffset;if(p==b.Oe&&h==b.Ne&&k==b.Me&&m==b.zg&&n==b.Ag){A.B(2);break}r=b.zg&&b.Ag&&Tk(a.g.oa,b.type,n,l);if(!r){A.B(3);break}u=null;b.type===e.xa?u=a.i.get(e.ia):b.type===e.ia&&(u=a.i.get(e.xa));if(!u){A.B(3);
504
504
  break}return G(A,fm(u).catch(function(){}),5);case 5:u.nd=null,vm(a,u);case 3:return G(A,Jm(a,b,p,h,k,c,m,n),2);case 2:return fj(c.ma,b.nd)||(b.nd=c.ma,c.l&&c.ma&&(v=Gm(a,b,c.ma),w=function(){var C,D,E,H,J,F,K;return P(function(L){switch(L.g){case 1:return va(L,2),G(L,v,4);case 4:return C=L.h,Mh(a.m),D=null,E=new Map,H={projection:null,hfov:null},J=new Uh,J.box("moov",Zh).box("trak",Zh).box("mdia",Zh).W("mdhd",function(O){D=zj(O.reader,O.version).timescale}).box("hdlr",function(O){O=O.reader;O.skip(8);
505
- switch(O.Sc()){case "soun":E.set(e.ia,D);break;case "vide":E.set(e.xa,D)}D=null}).box("minf",Zh).box("stbl",Zh).W("stsd",ai).box("encv",bi).box("avc1",bi).box("avc3",bi).box("hev1",bi).box("hvc1",bi).box("dvav",bi).box("dva1",bi).box("dvh1",bi).box("dvhe",bi).box("dvc1",bi).box("dvi1",bi).box("vexu",Zh).box("proj",Zh).W("prji",function(O){O=O.reader.Sc();H.projection=O}).box("hfov",function(O){O=O.reader.U()/1E3;H.hfov=O}).parse(C),Km(a,H),E.has(b.type)?c.ma.timescale=E.get(b.type):null!=D&&(c.ma.timescale=
505
+ switch(O.Uc()){case "soun":E.set(e.ia,D);break;case "vide":E.set(e.xa,D)}D=null}).box("minf",Zh).box("stbl",Zh).W("stsd",ai).box("encv",bi).box("avc1",bi).box("avc3",bi).box("hev1",bi).box("hvc1",bi).box("dvav",bi).box("dva1",bi).box("dvh1",bi).box("dvhe",bi).box("dvc1",bi).box("dvi1",bi).box("vexu",Zh).box("proj",Zh).W("prji",function(O){O=O.reader.Uc();H.projection=O}).box("hfov",function(O){O=O.reader.U()/1E3;H.hfov=O}).parse(C),Km(a,H),E.has(b.type)?c.ma.timescale=E.get(b.type):null!=D&&(c.ma.timescale=
506
506
  D),F=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,G(L,a.g.rh(b.type,C),5);case 5:return G(L,uk(a.g.oa,b.type,C,null,b.stream,F,b.wd,d),6);case 6:xa(L,0);break;case 2:throw K=za(L),b.nd=null,K;}})},y=c.startTime,f&&(z=rk(a.g.oa,b.type),null!=z&&(y=z)),a.g.fk(y,c.ma),g.push(w()))),a.l.sequenceMode&&(B=b.jb?b.jb.i:null,c.i!=B&&g.push(Mk(a.g.oa,b.type,c.startTime))),G(A,Promise.all(g),0)}})}
507
- function Jm(a,b,c,d,e,f,g,h){var k,l,m,n;return P(function(p){if(1==p.g)return k=Zc,l=new Map,a.j.audio&&l.set(k.ia,a.j.audio),a.j.video&&l.set(k.xa,a.j.video),va(p,2),b.Ne=d,b.Me=e,g&&(b.Ag=g),h&&(b.Bg=h),b.Oe=c,m=a.l.sequenceMode||"HLS"==a.l.type,G(p,Kk(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 xa(p,0);n=za(p);b.Ne=null;b.Me=null;b.Ag=null;b.Bg=null;b.Oe=null;throw n;})}
507
+ function Jm(a,b,c,d,e,f,g,h){var k,l,m,n;return P(function(p){if(1==p.g)return k=Zc,l=new Map,a.j.audio&&l.set(k.ia,a.j.audio),a.j.video&&l.set(k.xa,a.j.video),va(p,2),b.Ne=d,b.Me=e,g&&(b.zg=g),h&&(b.Ag=h),b.Oe=c,m=a.l.sequenceMode||"HLS"==a.l.type,G(p,Kk(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 xa(p,0);n=za(p);b.Ne=null;b.Me=null;b.zg=null;b.Ag=null;b.Oe=null;throw n;})}
508
508
  function Fm(a,b,c,d,e,f,g,h){g=void 0===g?!1:g;h=void 0===h?!1:h;var k,l,m,n,p,r,u,v;return P(function(w){switch(w.g){case 1:k=d.closedCaptions&&0<d.closedCaptions.size;m=null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.h.dispatchAllEmsgBoxes;n=a.h.parsePrftBox&&!a.J;p="video/mp4"==d.mimeType||"audio/mp4"==d.mimeType;r=null;e.ma&&(r=e.ma.timescale);u=p&&r&&"video"===d.type&&"DASH"==a.l.type&&a.h.shouldFixTimestampOffset;if(m||n||u)l=new Uh;m&&l.W("emsg",function(y){var z=d.emsgSchemeIdUris;
509
- if(0===y.version){var B=y.reader.Sc();var A=y.reader.Sc();var C=y.reader.U();var D=y.reader.U();var E=y.reader.U();var H=y.reader.U();var J=e.startTime+D/C}else C=y.reader.U(),J=y.reader.ud()/C+e.timestampOffset,D=J-e.startTime,E=y.reader.U(),H=y.reader.U(),B=y.reader.Sc(),A=y.reader.Sc();y=y.reader.Qb(y.reader.getLength()-y.reader.Oa());if(z&&z.includes(B)||a.h.dispatchAllEmsgBoxes)if("urn:mpeg:dash:event:2012"==B)a.g.gk();else if(z=J+E/C,C=(new Map).set("detail",{startTime:J,endTime:z,schemeIdUri:B,
509
+ if(0===y.version){var B=y.reader.Uc();var A=y.reader.Uc();var C=y.reader.U();var D=y.reader.U();var E=y.reader.U();var H=y.reader.U();var J=e.startTime+D/C}else C=y.reader.U(),J=y.reader.ud()/C+e.timestampOffset,D=J-e.startTime,E=y.reader.U(),H=y.reader.U(),B=y.reader.Uc(),A=y.reader.Uc();y=y.reader.Qb(y.reader.getLength()-y.reader.Oa());if(z&&z.includes(B)||a.h.dispatchAllEmsgBoxes)if("urn:mpeg:dash:event:2012"==B)a.g.gk();else if(z=J+E/C,C=(new Map).set("detail",{startTime:J,endTime:z,schemeIdUri:B,
510
510
  value:A,timescale:C,presentationTimeDelta:D,eventDuration:E,id:H,messageData:y}),C=new T("emsg",C),C.cancelable=!0,a.g.onEvent(C),!C.defaultPrevented&&("https://aomedia.org/emsg/ID3"==B||"https://developer.apple.com/streaming/emsg-id3"==B)&&(B=vj(y),B.length))a.g.onMetadata([{cueTime:J,data:y,frames:B,dts:J,pts:J}],0,z)});n&&l.W("prft",function(y){if(!a.J&&e.ma.timescale){var z=y.reader,B=y.version;z.U();y=z.U();var A=z.U();y=1E3*y+A/Math.pow(2,32)*1E3;0===B?z=z.U():(B=z.U(),z=z.U(),z=B*Math.pow(2,
511
511
  32)+z);y=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+y)).getTime();z=(new Map).set("detail",{wallClockTime:y,programStartDate:new Date(y-z/e.ma.timescale*1E3)});z=new T("prft",z);a.g.onEvent(z);a.J=!0}});u&&l.box("moof",Zh).box("traf",Zh).W("tfdt",function(y){var z,B,A,C,D,E;return P(function(H){z=yj(y.reader,y.version);B=z.baseMediaDecodeTime;if(!B)return H.return();A=-B/r;C=Number(b.Oe)||0;if(!(C<A))return H.B(0);D=b.Ne;E=b.Me;return G(H,Jm(a,b,A,D,E,e),0)})});(m||n||u)&&l.parse(f,
512
512
  !1,g);return G(w,Im(a,b,c),2);case 2:return Mh(a.m),v=b.wd,b.wd=!1,G(w,a.g.rh(b.type,f),3);case 3:return G(w,uk(a.g.oa,b.type,f,e,d,k,v,h,g),4);case 4:Mh(a.m),I(w)}})}
513
513
  function Im(a,b,c){var d,e,f,g,h;return P(function(k){if(1==k.g){d=b.stream.segmentIndex;d instanceof sl&&d.Ya(a.l.presentationTimeline.dc());e=Math.max(a.h.bufferBehind*a.C,a.l.presentationTimeline.h);f=pk(a.g.oa,b.type);if(null==f)return a.G==b&&(a.G=null),k.return();g=c-f;h=g-e;return h<=a.h.evictionGoal?k.return():G(k,a.g.oa.remove(b.type,f,f+h),2)}if(4!=k.g)return Mh(a.m),a.G?G(k,Im(a,a.G,c),4):k.B(0);Mh(a.m);I(k)})}
514
514
  function Am(a){return a&&a.type==Xc&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
515
- function Gm(a,b,c,d){var e,f,g,h,k;return P(function(l){switch(l.g){case 1:if(e=c.Kc())return l.return(e);f=null;if(b.ba){var m=b.ba,n=m.h;c instanceof ej&&(n=m.j);n.has(c)?(m=n.get(c),d&&(m.dh=d),f=m.Xe):f=null}f||(f=wm(c,b.stream,d||null,a.h.retryParameters,a.g.ic));g=0;b.va&&(g=b.va.h);b.Bb=f;return G(l,f.promise,2);case 2:h=l.h;b.Bb=null;k=h.data;if(!c.aesKey){l.B(3);break}return G(l,am(k,c.aesKey,g),4);case 4:k=l.h;case 3:return l.return(k)}})}
515
+ function Gm(a,b,c,d){var e,f,g,h,k;return P(function(l){switch(l.g){case 1:if(e=c.Mc())return l.return(e);f=null;if(b.ba){var m=b.ba,n=m.h;c instanceof ej&&(n=m.j);n.has(c)?(m=n.get(c),d&&(m.dh=d),f=m.Xe):f=null}f||(f=wm(c,b.stream,d||null,a.h.retryParameters,a.g.ic));g=0;b.va&&(g=b.va.h);b.Bb=f;return G(l,f.promise,2);case 2:h=l.h;b.Bb=null;k=h.data;if(!c.aesKey){l.B(3);break}return G(l,am(k,c.aesKey,g),4);case 4:k=l.h;case 3:return l.return(k)}})}
516
516
  function wm(a,b,c,d,e,f){f=void 0===f?!1:f;var g=a instanceof gj?a:void 0,h=g?1:0;a=bm(a.R(),a.$a,a.La,d,c);a.contentType=b.type;return e.request(Jh,a,{type:h,stream:b,segment:g,isPreload:f})}
517
- function tm(a,b,c,d){var e,f;return P(function(g){if(1==g.g)return b.Ec=!1,b.wf=!1,b.ue=0,b.Ed=!0,b.jb=null,b.va=null,b.ba&&!a.s.has(b.stream)&&Ml(b.ba),d?(e=a.g.Kd(),f=a.g.oa.getDuration(),G(g,a.g.oa.remove(b.type,e+d,f),3)):G(g,Jk(a.g.oa,b.type),4);if(3!=g.g)return Mh(a.m),c?G(g,a.g.oa.flush(b.type),3):g.B(3);Mh(a.m);b.Ed=!1;b.endOfStream=!1;b.gb||b.Sb||mm(a,b,0);I(g)})}
517
+ function tm(a,b,c,d){var e,f;return P(function(g){if(1==g.g)return b.Fc=!1,b.vf=!1,b.ue=0,b.Ed=!0,b.jb=null,b.va=null,b.ba&&!a.s.has(b.stream)&&Ml(b.ba),d?(e=a.g.Kd(),f=a.g.oa.getDuration(),G(g,a.g.oa.remove(b.type,e+d,f),3)):G(g,Jk(a.g.oa,b.type),4);if(3!=g.g)return Mh(a.m),c?G(g,a.g.oa.flush(b.type),3):g.B(3);Mh(a.m);b.Ed=!1;b.endOfStream=!1;b.gb||b.Sb||mm(a,b,0);I(g)})}
518
518
  function mm(a,b,c){var d=b.type;if(d!=Xc||a.i.has(d))b.Sb=(new Wb(function(){var e;return P(function(f){if(1==f.g)return va(f,2),G(f,xm(a,b),4);if(2!=f.g)return xa(f,0);e=za(f);if(a.g)a.g.onError(e);I(f)})})).X(c)}function em(a){null!=a.Sb&&(a.Sb.stop(),a.Sb=null)}function fm(a){return P(function(b){return a.Bb?G(b,a.Bb.abort(),0):b.B(0)})}
519
519
  function ym(a,b,c){var d;return P(function(e){if(1==e.g)return G(e,lh(a.N),2);Mh(a.m);if(1===c.category&&1003!=c.code){if(b.Ac)return om(a,!1),e.return();d=0===a.h.maxDisabledTime&&1011==c.code?1:a.h.maxDisabledTime;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)})}
520
520
  function Lm(a){var b,c,d,e,f,g;return P(function(h){if(1==h.g){b=Date.now()/1E3;c=a.h.minTimeBetweenRecoveries;if(!a.h.allowMediaSourceRecoveries||b-a.O<c)return h.return(!1);a.O=b;d=Zc;if(e=a.i.get(d.ia))e.nd=null,vm(a,e),fm(e).catch(function(){}),e.va&&e.va.Og();if(f=a.i.get(d.xa))f.nd=null,vm(a,f),fm(f).catch(function(){}),f.va&&f.va.Og();g=new Map;a.j.audio&&g.set(d.ia,a.j.audio);a.j.video&&g.set(d.xa,a.j.video);return G(h,Sk(a.g.oa,g),2)}return h.return(!0)})}
@@ -543,7 +543,7 @@ lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1},ads:{cust
543
543
  function an(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 Nm(a,b,c||Xm(),d,"")}
544
544
  function $m(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=ld(b,e.map(function(h){return h.language}));f&&(c=e.filter(function(h){return dd(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-
545
545
  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!=Xc&&"image"!=c.type||b.push(c);return b}function Ym(a){return Pm([a],a)}function Zm(a){return Pm([a],a)}R("shaka.util.PlayerConfiguration",Wm);Wm.mergeConfigObjects=an;Wm.createDefault=Xm;function bn(a,b,c,d){ib.call(this);this.O=a;this.V=b;this.Ia=d.networkingEngine;this.C=c;this.s=null;this.Da=0;this.bb=d.cd;this.H=d.Zj;this.ib=d.$j;this.g=d.config;this.j=this.I=this.h=null;this.ka=!1;this.J=d.kk;this.ra=!1;this.l=null;this.aa=!1;this.i=this.G=null;this.$=!1;this.N=new Map;this.ya=!1;this.Ha=d.jk;this.Y=new Cl;this.ha=new mh;this.m=new mh;this.P=null;this.u=!1;this.Ta=d.Vi;this.na=null;this.Ja=d.Ui;this.S=!1;this.L=[];this.K=[];this.A=!0}ra(bn,ib);
546
- function cn(a,b,c){(a=b?a.K:a.L)?a.push(c):c()}function dn(a){if(a.K)for(var b=t(a.K),c=b.next();!c.done;c=b.next())c=c.value,c();a.K=null}function en(a,b){a.P=b;a.S=!0;if(a.L){b=t(a.L);for(var c=b.next();!c.done;c=b.next())c=c.value,c()}a.L=null}q=bn.prototype;q.getStartTime=function(){return this.C};q.hd=function(){return this.O};q.mg=function(){return this.h};function fn(a){a.$=!0;return a.i}function gn(a){a.ra=!0;return a.J}q.getStats=function(){return this.Y};
546
+ function cn(a,b,c){(a=b?a.K:a.L)?a.push(c):c()}function dn(a){if(a.K)for(var b=t(a.K),c=b.next();!c.done;c=b.next())c=c.value,c();a.K=null}function en(a,b){a.P=b;a.S=!0;if(a.L){b=t(a.L);for(var c=b.next();!c.done;c=b.next())c=c.value,c()}a.L=null}q=bn.prototype;q.getStartTime=function(){return this.C};q.hd=function(){return this.O};q.lg=function(){return this.h};function fn(a){a.$=!0;return a.i}function gn(a){a.ra=!0;return a.J}q.getStats=function(){return this.Y};
547
547
  function hn(a){a.aa=!0;return a.l}function jn(a){a.ya=!0;return a.N}
548
548
  q.start=function(){var a=this;(function(){var b;return P(function(c){switch(c.g){case 1:return G(c,Promise.resolve(),2);case 2:return va(c,3),G(c,kn(a),5);case 5:return ln(a),G(c,mn(a),6);case 6:ln(a);a.s||(a.s=new Wg(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,""));
549
549
  if(a.Ja){var d=a.g.abrFactory;a.G=d;a.i=d();a.i.configure(a.g.abr)}if(a.Ta){d=a.h.presentationTimeline.T();var e=Jg(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())a.na=e,e.video&&nn(a,e.video,d),e.audio&&nn(a,e.audio,d)}return G(c,void 0,7);case 7:ln(a);a.m.resolve();xa(c,0);break;case 3:b=za(c),a.m.reject(b),I(c)}})})()};q.dispatchEvent=function(a){return this.P?this.P.dispatchEvent(a):ib.prototype.dispatchEvent.call(this,a)};
@@ -553,8 +553,8 @@ function mn(a){var b,c,d,e,f;return P(function(g){switch(g.g){case 1:on(a,"drm-e
553
553
  7);case 7:a.dispatchEvent(f),I(g)}})}q.configure=function(a,b){a=Om(a,b);an(this.g,a)};q.getConfiguration=function(){return be(this.g)};
554
554
  function nn(a,b,c){var d,e,f,g,h;P(function(k){if(1==k.g)return d=a.g.streaming.segmentPrefetchLimit||2,e=new Dl(d,b,function(l,m,n){return wm(l,m,n||null,a.g.streaming.retryParameters,a.Ia,a.A)},!1),a.N.set(b.id,e),G(k,b.createSegmentIndex(),2);f=a.C||0;(h=(g=b.segmentIndex.cc(f))?g.current():null)||(h=Cg(b.segmentIndex));h&&(c?h.ma&&Gl(e,h.ma):Fl(e,h.startTime));I(k)})}q.Sk=function(){return this.m};
555
555
  q.destroy=function(){var a=this,b,c,d;return P(function(e){switch(e.g){case 1:a.u=!0;if(!a.j||a.ka){e.B(2);break}return G(e,a.j.stop(),2);case 2:if(!a.i||a.$){e.B(4);break}return G(e,a.i.stop(),4);case 4:a.J&&!a.ra&&a.J.release();if(!a.l||a.aa){e.B(6);break}return G(e,a.l.destroy(),6);case 6:if(0<a.N.size&&!a.ya)for(b=t(a.N.values()),c=b.next();!c.done;c=b.next())d=c.value,Ml(d);I(e)}})};
556
- function pn(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))}R("shaka.media.PreloadManager",bn);bn.prototype.destroy=bn.prototype.destroy;bn.prototype.waitForFinish=bn.prototype.Sk;function qn(a,b){ib.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{Zc:null,Yc:rn,Nc:function(d,e){return sn(c,"enter",d,e)}},{Zc:tn,Yc:rn,Nc:function(d,e){return sn(c,"enter",d,e)}},{Zc:un,Yc:rn,Nc:function(d,e){return sn(c,"enter",d,e)}},{Zc:rn,Yc:tn,Nc:function(d,e){return sn(c,"exit",d,e)}},{Zc:rn,Yc:un,Nc:function(d,e){return sn(c,"exit",d,e)}},{Zc:tn,Yc:un,Nc:function(d,e){return sn(c,"skip",d,e)}},{Zc:un,Yc:tn,Nc:function(d,e){return sn(c,"skip",d,e)}}];this.h=new ud;this.h.o(this.i,
557
- "regionremove",function(d){c.g.delete(d.region)})}ra(qn,ib);qn.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;ib.prototype.release.call(this)};qn.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?tn:a>d.endTime?un:rn;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.Zc==e&&h.Yc==f&&h.Nc(d,b)}}};
556
+ function pn(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))}R("shaka.media.PreloadManager",bn);bn.prototype.destroy=bn.prototype.destroy;bn.prototype.waitForFinish=bn.prototype.Sk;function qn(a,b){ib.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{$c:null,Zc:rn,Pc:function(d,e){return sn(c,"enter",d,e)}},{$c:tn,Zc:rn,Pc:function(d,e){return sn(c,"enter",d,e)}},{$c:un,Zc:rn,Pc:function(d,e){return sn(c,"enter",d,e)}},{$c:rn,Zc:tn,Pc:function(d,e){return sn(c,"exit",d,e)}},{$c:rn,Zc:un,Pc:function(d,e){return sn(c,"exit",d,e)}},{$c:tn,Zc:un,Pc:function(d,e){return sn(c,"skip",d,e)}},{$c:un,Zc:tn,Pc:function(d,e){return sn(c,"skip",d,e)}}];this.h=new ud;this.h.o(this.i,
557
+ "regionremove",function(d){c.g.delete(d.region)})}ra(qn,ib);qn.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;ib.prototype.release.call(this)};qn.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?tn:a>d.endTime?un:rn;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.$c==e&&h.Zc==f&&h.Pc(d,b)}}};
558
558
  function sn(a,b,c,d){b=new T(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var tn=1,rn=2,un=3;function vn(a,b,c){var d,e,f,g,h,k,l;return P(function(m){switch(m.g){case 1:var n=(new pb(a)).mb.split("/").pop().split(".");d=1==n.length?"":n.pop().toLowerCase();if(e=wn[d])return m.return(e);f=0;g=Dh([a],c);va(m,2);g.method="HEAD";return G(m,b.request(f,g).promise,4);case 4:h=m.h;e=h.headers["content-type"];xa(m,3);break;case 2:k=za(m);if(!k||1002!=k.code&&1001!=k.code){m.B(3);break}g.method="GET";return G(m,b.request(f,g).promise,6);case 6:l=m.h,e=l.headers["content-type"];case 3:return m.return(e?
559
559
  e.toLowerCase().split(";").shift():"")}})}
560
560
  var wn={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mpd:"application/dash+xml",ism:"application/vnd.ms-sstr+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav",sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",ssa:"text/x-ssa",ass:"text/x-ssa",
@@ -562,23 +562,24 @@ jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"ima
562
562
  k=k.next().value;return"<"+h+(void 0===k?"":k)+">"+g+"</"+h+">"},a.payload)}
563
563
  function yn(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";
564
564
  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 zn(a,b){var c=[];a=t(An(a));for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.isContainer)c.push.apply(c,x(zn(d.nestedCues,d)));else{var e=d.clone();e.nestedCues=[];e.payload=xn(d,b);c.push(e)}return c}
565
- function An(a){var b=[];a=t(a);for(var c=a.next(),d={};!c.done;d={Pf:void 0},c=a.next())d.Pf=c.value,b.some(function(e){return function(f){return af(e.Pf,f)}}(d))||b.push(d.Pf);return b}
565
+ function An(a){var b=[];a=t(a);for(var c=a.next(),d={};!c.done;d={Of:void 0},c=a.next())d.Of=c.value,b.some(function(e){return function(f){return af(e.Of,f)}}(d))||b.push(d.Of);return b}
566
566
  function Bn(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&&
567
567
  (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}
568
- function Cn(a){if(Infinity===a.endTime||a.endTime<a.startTime)return null;var b=new Qe(a.startTime,a.endTime,a.text);b.line="number"===typeof a.line?a.line:null;a.lineAlign&&(b.lineAlign=a.lineAlign);b.lineInterpretation=a.snapToLines?Ve:1;b.position="number"===typeof a.position?a.position:null;a.positionAlign&&(b.positionAlign=a.positionAlign);b.size=a.size;b.textAlign=a.align;"lr"===a.vertical?b.writingMode="vertical-lr":"rl"===a.vertical&&(b.writingMode="vertical-rl");a.region&&(b.region.id=a.region.id,
568
+ function Cn(a){if(Infinity===a.endTime||a.endTime<a.startTime)return null;var b=new Pe(a.startTime,a.endTime,a.text);b.line="number"===typeof a.line?a.line:null;a.lineAlign&&(b.lineAlign=a.lineAlign);b.lineInterpretation=a.snapToLines?Ve:1;b.position="number"===typeof a.position?a.position:null;a.positionAlign&&(b.positionAlign=a.positionAlign);b.size=a.size;b.textAlign=a.align;"lr"===a.vertical?b.writingMode="vertical-lr":"rl"===a.vertical&&(b.writingMode="vertical-rl");a.region&&(b.region.id=a.region.id,
569
569
  b.region.height=a.region.lines,b.region.heightUnits=2,b.region.regionAnchorX=a.region.regionAnchorX,b.region.regionAnchorY=a.region.regionAnchorY,b.region.scroll=a.region.scroll,b.region.viewportAnchorX=a.region.viewportAnchorX,b.region.viewportAnchorY=a.region.viewportAnchorY,b.region.viewportAnchorUnits=Od,b.region.width=a.region.width,b.region.widthUnits=Od);bf(b);return b};function Dn(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=Dn.prototype;q.configure=function(){};q.remove=function(a,b){if(!this.g)return!1;En(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
570
570
  q.append=function(a){var b=zn(a),c=[];a=this.g.cues?Array.from(this.g.cues):[];b=t(b);for(var d=b.next(),e={};!d.done;e={ld:void 0},d=b.next())e.ld=d.value,!a.some(function(f){return function(g){return g.startTime==f.ld.startTime&&g.endTime==f.ld.endTime&&g.text==f.ld.payload?!0:!1}}(e))&&e.ld.payload&&(d=Bn(e.ld))&&c.push(d);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):
571
571
  c.indexOf(f)-c.indexOf(g)});a=t(a);for(b=a.next();!b.done;b=a.next())this.g.addCue(b.value)};q.destroy=function(){this.g&&(En(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"};
572
- function En(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}R("shaka.text.SimpleTextDisplayer",Dn);Dn.prototype.setTextVisibility=Dn.prototype.setTextVisibility;Dn.prototype.isTextVisible=Dn.prototype.isTextVisible;Dn.prototype.destroy=Dn.prototype.destroy;Dn.prototype.append=Dn.prototype.append;Dn.prototype.remove=Dn.prototype.remove;Dn.prototype.configure=Dn.prototype.configure;function Fn(){}q=Fn.prototype;q.configure=function(){};q.remove=function(){};q.append=function(){};q.destroy=function(){};q.isTextVisible=function(){return!1};q.setTextVisibility=function(){};R("shaka.text.StubTextDisplayer",Fn);Fn.prototype.setTextVisibility=Fn.prototype.setTextVisibility;Fn.prototype.isTextVisible=Fn.prototype.isTextVisible;Fn.prototype.destroy=Fn.prototype.destroy;Fn.prototype.append=Fn.prototype.append;Fn.prototype.remove=Fn.prototype.remove;Fn.prototype.configure=Fn.prototype.configure;function Gn(){}function W(a){return document.createElement(a)}function Hn(){var a=document.createElement("button");a.setAttribute("type","button");return a}function In(a){for(;a.firstChild;)a.removeChild(a.firstChild)}R("shaka.util.Dom",Gn);Gn.removeAllChildren=In;function Jn(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||Dd("UITextDisplayer w/ config","Please migrate to initializing UITextDisplayer with a config.");this.G=(new Xb(function(){d.A.paused||Kn(d)})).Aa(c&&
573
- c.captionsUpdatePeriod?c.captionsUpdatePeriod:.25);this.i=new Map;this.j=new ud;this.j.o(document,"fullscreenchange",function(){Kn(d,!0)});this.j.o(this.A,"seeking",function(){Kn(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(){Kn(d,!0)}),this.s.observe(this.g));this.C=new Map}q=Jn.prototype;q.configure=function(a){this.G&&this.G.Aa(a.captionsUpdatePeriod)};
574
- q.append=function(a){var b=[].concat(x(this.h));a=t(An(a));for(var c=a.next(),d={};!c.done;d={Qf:void 0},c=a.next())d.Qf=c.value,b.some(function(e){return function(f){return af(f,e.Qf)}}(d))||this.h.push(d.Qf);Kn(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()};
575
- 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});Kn(this,c>this.h.length);return!0};q.isTextVisible=function(){return this.m};q.setTextVisibility=function(a){this.m=a};function Ln(a,b){for(;null!=b;){if(b==a.g)return!0;b=b.parentElement}return!1}
576
- function Mn(a,b,c,d,e){var f=!1,g=[],h=[];b=t(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.i.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.Mi:null;l&&(g.push(l.Rf),l.Uc&&g.push(l.Uc),m||(f=!0,a.i.delete(k),l=null));m&&(h.push(k),l?Ln(a,n)||(f=!0):(Nn(a,k,e),l=a.i.get(k),n=l.Mi,f=!0));0<k.nestedCues.length&&n&&Mn(a,k.nestedCues,n,d,e);e.pop()}if(f){d=t(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(p,r){return p.startTime!=
577
- r.startTime?p.startTime-r.startTime:p.endTime-r.endTime});h=t(h);for(d=h.next();!d.done;d=h.next())d=a.i.get(d.value),d.Uc?(d.Uc.contains(c)&&d.Uc.removeChild(c),c.appendChild(d.Uc),d.Uc.appendChild(d.Rf)):c.appendChild(d.Rf)}}function Kn(a,b){if(a.g){var c=a.A.currentTime;if(!a.m||(void 0===b?0:b)){b=t(a.C.values());for(var d=b.next();!d.done;d=b.next())In(d.value);In(a.g);a.i.clear();a.C.clear()}a.m&&Mn(a,a.h,a.g,c,[])}}
572
+ function En(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}R("shaka.text.SimpleTextDisplayer",Dn);Dn.prototype.setTextVisibility=Dn.prototype.setTextVisibility;Dn.prototype.isTextVisible=Dn.prototype.isTextVisible;Dn.prototype.destroy=Dn.prototype.destroy;Dn.prototype.append=Dn.prototype.append;Dn.prototype.remove=Dn.prototype.remove;Dn.prototype.configure=Dn.prototype.configure;function Fn(){}q=Fn.prototype;q.configure=function(){};q.remove=function(){};q.append=function(){};q.destroy=function(){};q.isTextVisible=function(){return!1};q.setTextVisibility=function(){};R("shaka.text.StubTextDisplayer",Fn);Fn.prototype.setTextVisibility=Fn.prototype.setTextVisibility;Fn.prototype.isTextVisible=Fn.prototype.isTextVisible;Fn.prototype.destroy=Fn.prototype.destroy;Fn.prototype.append=Fn.prototype.append;Fn.prototype.remove=Fn.prototype.remove;Fn.prototype.configure=Fn.prototype.configure;function Gn(){}function W(a){return document.createElement(a)}function Hn(){var a=document.createElement("button");a.setAttribute("type","button");return a}function In(a){for(;a.firstChild;)a.removeChild(a.firstChild)}R("shaka.util.Dom",Gn);Gn.removeAllChildren=In;function Jn(a,b,c){var d=this;document.fullscreenEnabled||ab("Using UITextDisplayer in a browser without Fullscreen API support causes subtitles to not be rendered in fullscreen");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||
573
+ Dd("UITextDisplayer w/ config","Please migrate to initializing UITextDisplayer with a config.");this.G=(new Xb(function(){d.A.paused||Kn(d)})).Aa(c&&c.captionsUpdatePeriod?c.captionsUpdatePeriod:.25);this.i=new Map;this.j=new ud;this.j.o(document,"fullscreenchange",function(){Kn(d,!0)});this.j.o(this.A,"seeking",function(){Kn(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(){Kn(d,
574
+ !0)}),this.s.observe(this.g));this.C=new Map}q=Jn.prototype;q.configure=function(a){this.G&&this.G.Aa(a.captionsUpdatePeriod)};q.append=function(a){var b=[].concat(x(this.h));a=t(An(a));for(var c=a.next(),d={};!c.done;d={Pf:void 0},c=a.next())d.Pf=c.value,b.some(function(e){return function(f){return af(f,e.Pf)}}(d))||this.h.push(d.Pf);Kn(this)};
575
+ 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()};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});Kn(this,c>this.h.length);return!0};q.isTextVisible=function(){return this.m};
576
+ q.setTextVisibility=function(a){this.m=a;Kn(this,!0)};function Ln(a,b){for(;null!=b;){if(b==a.g)return!0;b=b.parentElement}return!1}
577
+ function Mn(a,b,c,d,e){var f=!1,g=[],h=[];b=t(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.i.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.Mi:null;l&&(g.push(l.Qf),l.Wc&&g.push(l.Wc),m||(f=!0,a.i.delete(k),l=null));m&&(h.push(k),l?Ln(a,n)||(f=!0):(Nn(a,k,e),l=a.i.get(k),n=l.Mi,f=!0));0<k.nestedCues.length&&n&&Mn(a,k.nestedCues,n,d,e);e.pop()}if(f){d=t(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(p,r){return p.startTime!=
578
+ r.startTime?p.startTime-r.startTime:p.endTime-r.endTime});h=t(h);for(d=h.next();!d.done;d=h.next())d=a.i.get(d.value),d.Wc?(d.Wc.contains(c)&&d.Wc.removeChild(c),c.appendChild(d.Wc),d.Wc.appendChild(d.Qf)):c.appendChild(d.Qf)}}function Kn(a,b){if(a.g){var c=a.A.currentTime;if(!a.m||(void 0===b?0:b)){b=t(a.C.values());for(var d=b.next();!d.done;d=b.next())In(d.value);In(a.g);a.i.clear();a.C.clear()}a.m&&Mn(a,a.h,a.g,c,[])}}
578
579
  function Nn(a,b,c){var d=1<c.length,e=d?"span":"div";b.lineBreak&&(e="br");b.rubyTag&&(e=b.rubyTag);d=!d&&0<b.nestedCues.length;var f=W(e);"br"!=e&&On(a,f,b,c,d);c=null;if(b.region&&b.region.id){var g=b.region,h=a.l===4/3?2.5:1.9;c=g.id+"_"+g.width+"x"+g.height+(g.heightUnits==Od?"%":"px")+"-"+g.viewportAnchorX+"x"+g.viewportAnchorY+(g.viewportAnchorUnits==Od?"%":"px");if(a.C.has(c))c=a.C.get(c);else{e=W("span");var k=g.heightUnits==Od?"%":"px",l=g.widthUnits==Od?"%":"px",m=g.viewportAnchorUnits==
579
580
  Od?"%":"px";e.id="shaka-text-region---"+c;e.classList.add("shaka-text-region");e.style.position="absolute";var n=g.height,p=g.width;2===g.heightUnits&&(n=5.33*g.height,k="%");2===g.widthUnits&&(p=g.width*h,l="%");e.style.height=n+k;e.style.width=p+l;2===g.viewportAnchorUnits?(h=g.viewportAnchorY/75*100,k=g.viewportAnchorX/(a.l===4/3?160:210)*100,h-=g.regionAnchorY*n/100,k-=g.regionAnchorX*p/100,e.style.top=h+"%",e.style.left=k+"%"):(e.style.top=g.viewportAnchorY-g.regionAnchorY*n/100+m,e.style.left=
580
581
  g.viewportAnchorX-g.regionAnchorX*p/100+m);0!==g.heightUnits&&0!==g.widthUnits&&0!==g.viewportAnchorUnits&&(g=Math.max(0,Math.min(100-(parseInt(e.style.width.slice(0,-1),10)||0),parseInt(e.style.left.slice(0,-1),10)||0)),e.style.top=Math.max(0,Math.min(100-(parseInt(e.style.height.slice(0,-1),10)||0),parseInt(e.style.top.slice(0,-1),10)||0))+"%",e.style.left=g+"%");e.style.display="flex";e.style.flexDirection="column";e.style.alignItems="center";e.style.justifyContent="before"==b.displayAlign?"flex-start":
581
- "center"==b.displayAlign?"center":"flex-end";a.C.set(c,e);c=e}}e=f;d&&(e=W("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,e.style.lineHeight="normal",f.appendChild(e));a.i.set(b,{Rf:f,Mi:e,Uc:c})}function Pn(a){var b=a.direction,c=a.positionAlign;a=a.textAlign;return c!==Re?c:"left"===a||"start"===a&&b===Te||"end"===a&&"rtl"===b?"line-left":"right"===a||"start"===a&&"rtl"===b||"end"===a&&b===Te?"line-right":"center"}
582
+ "center"==b.displayAlign?"center":"flex-end";a.C.set(c,e);c=e}}e=f;d&&(e=W("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,e.style.lineHeight="normal",f.appendChild(e));a.i.set(b,{Qf:f,Mi:e,Wc:c})}function Pn(a){var b=a.direction,c=a.positionAlign;a=a.textAlign;return c!==Re?c:"left"===a||"start"===a&&b===Te||"end"===a&&"rtl"===b?"line-left":"right"===a||"start"===a&&"rtl"===b||"end"===a&&b===Te?"line-right":"center"}
582
583
  function On(a,b,c,d,e){var f=b.style,g=0==c.nestedCues.length,h=1<d.length;f.whiteSpace="pre-wrap";var k=c.payload.replace(/\s+$/g,function(m){return"\u00a0".repeat(m.length)});f.webkitTextStrokeColor=c.textStrokeColor;f.webkitTextStrokeWidth=c.textStrokeWidth;f.color=c.color;f.direction=c.direction;f.opacity=c.opacity;f.paddingLeft=Qn(c.linePadding,c,a.u);f.paddingRight=Qn(c.linePadding,c,a.u);f.textCombineUpright=c.textCombineUpright;f.textShadow=c.textShadow;if(c.backgroundImage)f.backgroundImage=
583
584
  "url('"+c.backgroundImage+"')",f.backgroundRepeat="no-repeat",f.backgroundSize="contain",f.backgroundPosition="center",c.backgroundColor&&(f.backgroundColor=c.backgroundColor),f.width="100%",f.height="100%";else{if(c.nestedCues.length)var l=b;else l=W("span"),b.appendChild(l);c.border&&(l.style.border=c.border);e||((b=Rn(d,function(m){return m.backgroundColor}))?l.style.backgroundColor=b:k&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)"));k&&(l.textContent=k)}if(h&&!d[d.length-1].isContainer)f.display=
584
585
  "inline";else{f.display="flex";f.flexDirection="column";f.alignItems="center";if("left"==c.textAlign||"start"==c.textAlign)f.width="100%",f.alignItems="start";else if("right"==c.textAlign||"end"==c.textAlign)f.width="100%",f.alignItems="end";f.justifyContent="before"==c.displayAlign?"flex-start":"center"==c.displayAlign?"center":"flex-end"}g||(f.margin="0");f.fontFamily=c.fontFamily;f.fontWeight=c.fontWeight.toString();f.fontStyle=c.fontStyle;f.letterSpacing=c.letterSpacing;f.fontSize=Qn(c.fontSize,
@@ -596,37 +597,37 @@ function fo(a){function b(n){return 100*c(n/100)}function c(n){return Math.round
596
597
  l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function ko(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=fo(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
597
598
  function go(a,b){if(!b||a.includes("offline:"))return a;a=new pb(a);a.g.set("CMCD",b);return a.toString()}var eo="m",bo="a",io="v",co="av",mo="i",oo="c",no="tt",Wn="d",Xn="ld",Yn="h",Zn="lh";R("shaka.util.CmcdManager.StreamingFormat",{DASH:Wn,ul:Xn,HLS:Yn,vl:Zn,Il:"s",OTHER:"o"});function so(a){this.h=a;this.g=null}q=so.prototype;q.configure=function(a){this.h=a};q.Jh=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(to)?1E3*this.g.get(to):null};q.Ih=function(){return this.h.enabled&&this.g&&this.g.has(uo)?1E3*this.g.get(uo):null};q.yj=function(){return this.h.enabled&&this.g&&this.g.has(vo)?this.g.get(vo):null};q.zj=function(){return this.h.enabled&&this.g&&this.g.has(wo)?this.g.get(wo):null};
598
599
  q.getBandwidthEstimate=function(a){var b=this.Ih();if(!b)return a;var c=this.h.estimatedThroughputWeightRatio;return 0<c&&1>=c?a*(1-c)+b*c:a};function xo(a){return a?"false"===a.toLowerCase()?!1:/^[-0-9]/.test(a)?parseInt(a,10):a.replace(/["]+/g,""):!0}R("shaka.util.CmsdManager",so);so.prototype.getBandwidthEstimate=so.prototype.getBandwidthEstimate;so.prototype.getRoundTripTime=so.prototype.zj;so.prototype.getResponseDelay=so.prototype.yj;so.prototype.getEstimatedThroughput=so.prototype.Ih;
599
- so.prototype.getMaxBitrate=so.prototype.Jh;var uo="etp",to="mb",vo="rd",wo="rtt";function yo(){this.g=null;this.h=[]}function zo(a,b){return P(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)})}yo.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null};function X(a,b,c){b=void 0===b?null:b;ib.call(this);var d=this;this.m=Ao;this.h=null;this.xf=b;this.ra=!1;this.ge=new ud;this.Wd=new ud;this.l=new ud;this.Ta=new ud;this.ib=new ud;this.I=this.K=this.C=this.H=null;this.je=0;this.Y=new yo;this.na=this.Af=this.aa=this.i=this.bb=this.J=this.j=this.yc=this.N=this.mh=this.ha=this.P=this.zc=this.O=this.yf=this.L=this.Mb=null;this.Ha=!1;this.Da=this.s=null;this.Bf=1E9;this.be=[];this.V=NaN;this.g=Bo(this);this.S=null;this.ke=-1;this.Ja=null;this.ka={width:Infinity,
600
- height:Infinity};this.vf=new Ri(this.g,this.ka,null);this.ee=[];this.A=null;this.Ia=new Wg(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.ae=this.g.preferredTextRole;this.Zd=this.g.preferForcedSubs;
601
- this.Yd=[];c&&c(this);this.P=Co(this);this.ha=new so(this.g.cmsd);this.H=Do(this);this.H.Xg(this.g.streaming.forceHTTP);this.H.Yg(this.g.streaming.forceHTTPS);this.H.m=this.g.streaming.minBytesForProgressEvents;this.ec=this.$=this.u=null;this.Ff=!1;this.Df=new Xb(function(){return P(function(e){if(1==e.g)return d.$?G(e,d.$b(d.ec,!0),3):e.B(0);if(4!=e.g)return G(e,d.load(d.$),4);d.Ff?d.ec.pause():d.ec.play();d.$=null;d.Ff=!1;I(e)})});Eo&&(this.u=Eo(),this.u.configure(this.g.ads),this.ib.o(this.u,"ad-content-pause-requested",
602
- function(e){var f;return P(function(g){if(1==g.g){d.Df.stop();if(d.$)return g.B(0);d.ec=d.h;d.Ff=d.h.ended;f=e.saveLivePosition||!1;return G(g,d.Ch(!0,f),3)}d.$=g.h;I(g)})}),this.ib.o(this.u,"ad-content-resume-requested",function(e){e=e.offset||0;if(d.$){var f=d.$;f.C&&e&&(f.C+=e)}d.Df.X(.1)}),this.ib.o(this.u,"ad-content-attach-requested",function(){return P(function(e){return d.h||!d.ec?e.B(0):G(e,d.$b(d.ec,!0),0)})}));this.ge.o(window,"online",function(){Uo(d);d.Pg()});this.zf=new Xb(function(){for(var e=
603
- Date.now()/1E3,f=!1,g=!0,h=t(d.i.variants),k=h.next();!k.done;k=h.next())k=k.value,0<k.disabledUntilTime&&k.disabledUntilTime<=e&&(k.disabledUntilTime=0,f=!0),0<k.disabledUntilTime&&(g=!1);g&&d.zf.stop();f&&Vo(d,!1,void 0,!1,!1)});this.ya=null;a&&(Dd("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.$b(a,!0));this.G=null}ra(X,ib);function Wo(a){null!=a.N&&(dk(a.N),a.N.release(),a.N=null)}
600
+ so.prototype.getMaxBitrate=so.prototype.Jh;var uo="etp",to="mb",vo="rd",wo="rtt";function yo(){this.g=null;this.h=[]}function zo(a,b){return P(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)})}yo.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null};function X(a,b,c){b=void 0===b?null:b;ib.call(this);var d=this;this.m=Ao;this.h=null;this.wf=b;this.ra=!1;this.ge=new ud;this.Wd=new ud;this.l=new ud;this.Ta=new ud;this.ib=new ud;this.I=this.K=this.C=this.H=null;this.je=0;this.Y=new yo;this.na=this.zf=this.aa=this.i=this.bb=this.J=this.j=this.yc=this.N=this.mh=this.ha=this.P=this.zc=this.O=this.xf=this.L=this.Mb=null;this.Ha=!1;this.Da=this.s=null;this.Af=1E9;this.be=[];this.V=NaN;this.g=Bo(this);this.S=null;this.ke=-1;this.Ja=null;this.ka={width:Infinity,
601
+ height:Infinity};this.uf=new Ri(this.g,this.ka,null);this.ee=[];this.A=null;this.Ia=new Wg(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.ae=this.g.preferredTextRole;this.Zd=this.g.preferForcedSubs;
602
+ this.Yd=[];c&&c(this);this.P=Co(this);this.ha=new so(this.g.cmsd);this.H=Do(this);this.H.Xg(this.g.streaming.forceHTTP);this.H.Yg(this.g.streaming.forceHTTPS);this.H.m=this.g.streaming.minBytesForProgressEvents;this.ec=this.$=this.u=null;this.Ef=!1;this.Cf=new Xb(function(){return P(function(e){if(1==e.g)return d.$?G(e,d.$b(d.ec,!0),3):e.B(0);if(4!=e.g)return G(e,d.load(d.$),4);d.Ef?d.ec.pause():d.ec.play();d.$=null;d.Ef=!1;I(e)})});Eo&&(this.u=Eo(),this.u.configure(this.g.ads),this.ib.o(this.u,"ad-content-pause-requested",
603
+ function(e){var f;return P(function(g){if(1==g.g){d.Cf.stop();if(d.$)return g.B(0);d.ec=d.h;d.Ef=d.h.ended;f=e.saveLivePosition||!1;return G(g,d.Ch(!0,f),3)}d.$=g.h;I(g)})}),this.ib.o(this.u,"ad-content-resume-requested",function(e){e=e.offset||0;if(d.$){var f=d.$;f.C&&e&&(f.C+=e)}d.Cf.X(.1)}),this.ib.o(this.u,"ad-content-attach-requested",function(){return P(function(e){return d.h||!d.ec?e.B(0):G(e,d.$b(d.ec,!0),0)})}));this.ge.o(window,"online",function(){Uo(d);d.Pg()});this.yf=new Xb(function(){for(var e=
604
+ Date.now()/1E3,f=!1,g=!0,h=t(d.i.variants),k=h.next();!k.done;k=h.next())k=k.value,0<k.disabledUntilTime&&k.disabledUntilTime<=e&&(k.disabledUntilTime=0,f=!0),0<k.disabledUntilTime&&(g=!1);g&&d.yf.stop();f&&Vo(d,!1,void 0,!1,!1)});this.ya=null;a&&(Dd("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.$b(a,!0));this.G=null}ra(X,ib);function Wo(a){null!=a.N&&(dk(a.N),a.N.release(),a.N=null)}
604
605
  function Xo(a,b){b.lcevc.enabled?(Wo(a),null==a.N&&(a.N=new ck(a.h,a.mh,b.lcevc),a.K&&(a.K.P=a.N))):Wo(a)}function Yo(a,b){return new T(a,b)}q=X.prototype;
605
- q.destroy=function(){var a=this,b;return P(function(c){switch(c.g){case 1:if(a.m==Zo)return c.return();Wo(a);b=a.detach();a.m=Zo;return G(c,b,2);case 2:return G(c,a.Tf(),3);case 3:a.ge&&(a.ge.release(),a.ge=null);a.Wd&&(a.Wd.release(),a.Wd=null);a.l&&(a.l.release(),a.l=null);a.Ta&&(a.Ta.release(),a.Ta=null);a.ib&&(a.ib.release(),a.ib=null);a.Da=null;a.g=null;a.A=null;a.xf=null;a.P=null;a.ha=null;if(!a.H){c.B(4);break}return G(c,a.H.destroy(),5);case 5:a.H=null;case 4:a.s&&(a.s.release(),a.s=null),
606
+ q.destroy=function(){var a=this,b;return P(function(c){switch(c.g){case 1:if(a.m==Zo)return c.return();Wo(a);b=a.detach();a.m=Zo;return G(c,b,2);case 2:return G(c,a.Sf(),3);case 3:a.ge&&(a.ge.release(),a.ge=null);a.Wd&&(a.Wd.release(),a.Wd=null);a.l&&(a.l.release(),a.l=null);a.Ta&&(a.Ta.release(),a.Ta=null);a.ib&&(a.ib.release(),a.ib=null);a.Da=null;a.g=null;a.A=null;a.wf=null;a.P=null;a.ha=null;if(!a.H){c.B(4);break}return G(c,a.H.destroy(),5);case 5:a.H=null;case 4:a.s&&(a.s.release(),a.s=null),
606
607
  ib.prototype.release.call(a),I(c)}})};function $o(){window.Promise||ab("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||cc("Trident/"))return!1;var a=rc();return a&&9>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:Yb()?!0:Zb("application/x-mpegurl")}
607
608
  function ap(a,b){a.dispatchEvent(Yo("onstatechange",(new Map).set("state",b)))}
608
609
  q.$b=function(a,b){b=void 0===b?!0:b;var c=this,d,e,f;return P(function(g){switch(g.g){case 1:if(c.m==Zo)throw new U(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,bp(c,"attach"),4);case 4:if(g.h)return g.return();va(g,5,6);d||(ap(c,"attach"),e=function(){var h=cp(c,!1);h&&dp(c,h)},c.Wd.o(a,"error",e),c.h=a);if(!b||!Yb()||c.K){g.B(6);break}return G(g,ep(c),6);case 6:Aa(g);c.Y.release();Ba(g,0);break;case 5:return f=za(g),G(g,c.detach(),10);case 10:throw f;
609
610
  }})};q.oh=function(a){this.mh=a};q.detach=function(a){a=void 0===a?!1:a;var b=this;return P(function(c){if(1==c.g){if(b.m==Zo)throw new U(2,7,7E3);return G(c,b.nc(!1,a),2)}if(3!=c.g)return G(c,bp(b,"detach"),3);if(c.h)return c.return();try{b.h&&(b.Wd.Za(),b.h=null),ap(b,"detach"),b.u&&!a&&b.u.release()}finally{b.Y.release()}I(c)})};function bp(a,b){var c;return P(function(d){return 1==d.g?(c=++a.je,G(d,zo(a.Y,b),2)):c!=a.je?(a.Y.release(),d.return(!0)):d.return(!1)})}
610
- q.nc=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d,e,f,g,h,k,l,m,n,p;return P(function(r){switch(r.g){case 1:return c.m!=Zo&&(c.m=Ao),G(r,bp(c,"unload"),2);case 2:if(r.h)return r.return();wa(r,3);c.Ha=!1;ap(c,"unload");a&&!Yb()&&(a=!1);Wo(c);d=c.Yd.map(function(u){return u()});c.Yd=[];return G(r,Promise.all(d),5);case 5:c.dispatchEvent(Yo("unloading"));c.zc&&(c.zc.release(),c.zc=null);c.h&&(c.l.Za(),c.Ta.Za());c.zf.stop();c.Mb&&(c.Mb.release(),c.Mb=null);c.yf&&(c.yf.stop(),c.yf=null);
611
+ q.nc=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d,e,f,g,h,k,l,m,n,p;return P(function(r){switch(r.g){case 1:return c.m!=Zo&&(c.m=Ao),G(r,bp(c,"unload"),2);case 2:if(r.h)return r.return();wa(r,3);c.Ha=!1;ap(c,"unload");a&&!Yb()&&(a=!1);Wo(c);d=c.Yd.map(function(u){return u()});c.Yd=[];return G(r,Promise.all(d),5);case 5:c.dispatchEvent(Yo("unloading"));c.zc&&(c.zc.release(),c.zc=null);c.h&&(c.l.Za(),c.Ta.Za());c.yf.stop();c.Mb&&(c.Mb.release(),c.Mb=null);c.xf&&(c.xf.stop(),c.xf=null);
611
612
  if(!c.J){r.B(6);break}return G(r,c.J.stop(),7);case 7:c.J=null,c.bb=null;case 6:if(!c.s){r.B(8);break}return G(r,c.s.stop(),8);case 8:if(!c.j){r.B(10);break}return G(r,c.j.destroy(),11);case 11:c.j=null;case 10:c.L&&(c.L.release(),c.L=null);c.I&&(c.I.release(),c.I=null);if(!xc("webkit")||!c.C){r.B(12);break}return G(r,c.C.destroy(),13);case 13:c.C=null;case 12:if(!c.K){r.B(14);break}return G(r,c.K.destroy(),15);case 15:c.K=null;case 14:if(c.u&&!b)c.u.onAssetUnload();c.$&&!b&&(c.$.destroy(),c.$=null);
612
- b||c.Df.stop();c.P&&Un(c.P);c.ha&&(c.ha.g=null);if(!c.G){r.B(16);break}return G(r,c.G.destroy(),17);case 17:c.G=null;case 16:c.h&&In(c.h);c.h&&c.h.src&&(c.h.removeAttribute("src"),c.h.load());if(!c.C){r.B(18);break}return G(r,c.C.destroy(),19);case 19:c.C=null;case 18:c.ya&&c.aa!=c.ya.hd()&&(c.ya.u||c.ya.destroy(),c.ya=null);c.aa=null;c.Af=null;c.O=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=k.value)&&l.segmentIndex&&
613
+ b||c.Cf.stop();c.P&&Un(c.P);c.ha&&(c.ha.g=null);if(!c.G){r.B(16);break}return G(r,c.G.destroy(),17);case 17:c.G=null;case 16:c.h&&In(c.h);c.h&&c.h.src&&(c.h.removeAttribute("src"),c.h.load());if(!c.C){r.B(18);break}return G(r,c.C.destroy(),19);case 19:c.C=null;case 18:c.ya&&c.aa!=c.ya.hd()&&(c.ya.u||c.ya.destroy(),c.ya=null);c.aa=null;c.zf=null;c.O=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=k.value)&&l.segmentIndex&&
613
614
  l.segmentIndex.release();m=t(c.i.textStreams);for(n=m.next();!n.done;n=m.next())p=n.value,p.segmentIndex&&p.segmentIndex.release()}c.g.streaming.clearDecodingCache&&(tg={},Vb.clear());c.i=null;c.A=new Cl;c.ie=null;c.Ja=null;c.S=null;c.ke=-1;c.be=[];c.V=NaN;fp(c);case 3:Aa(r);c.Y.release();Ba(r,4);break;case 4:if(a&&Yb()&&!c.K&&c.h)return G(r,ep(c),0);r.B(0)}})};q.Rk=function(a){this.na=a};
614
615
  q.load=function(a,b,c){b=void 0===b?null:b;var d=this,e,f,g,h,k,l,m,n,p,r,u,v,w;return P(function(y){switch(y.g){case 1:if(d.m==Zo)throw new U(2,7,7E3);e=null;f="";a instanceof bn?(e=a,f=e.hd()||""):f=a||"";return G(y,zo(d.Y,"load"),2);case 2:d.Y.release();if(!d.h)throw new U(2,7,7002);if(!d.aa){y.B(3);break}d.aa=f;return G(y,d.nc(!1),3);case 3:g=++d.je;h=function(){return P(function(z){if(1==z.g)return d.je==g?z.B(0):e?G(z,e.destroy(),3):z.B(3);throw new U(2,7,7E3);})};k=function(z,B){return P(function(A){switch(A.g){case 1:return wa(A,
615
616
  2),G(A,zo(d.Y,B),4);case 4:return G(A,h(),5);case 5:return G(A,z(),6);case 6:return G(A,h(),7);case 7:e&&d.g&&(e.g=d.g);case 2:Aa(A),d.Y.release(),Ba(A,0)}})};va(y,5,6);null==b&&e&&(b=e.getStartTime());d.na=b;d.Ha=!1;d.dispatchEvent(Yo("loading"));if(e){c=e.V;y.B(8);break}if(c){y.B(8);break}return G(y,k(function(){return P(function(z){if(1==z.g)return G(z,gp(d,f),2);c=z.h;I(z)})},"guessMimeType_"),8);case 8:l=!!e;if(e){en(e,d);d.A=e.getStats();y.B(11);break}return G(y,hp(d,f,b,c,!0),12);case 12:(e=
616
- y.h)?(e.A=!1,en(e,d),d.A=e.getStats(),e.start(),e.m.catch(function(){})):d.A=new Cl;case 11:return m=!e,n=Date.now()/1E3,d.A=e?e.getStats():new Cl,d.aa=f,d.Af=c||null,m?G(y,k(function(){return P(function(z){return G(z,ip(d,c),0)})},"initializeSrcEqualsDrmInner_"),21):G(y,k(function(){return P(function(z){if(1==z.g)return G(z,Promise.race([e.ha,e.m]),2);d.bb=e.I;var B=e;B.ka=!0;d.J=B.j;d.i=e.mg();I(z)})},"waitForFinish"),15);case 15:if(d.K){y.B(16);break}return G(y,k(function(){return P(function(z){return G(z,
617
- ep(d),0)})},"initializeMediaSourceEngineInner_"),16);case 16:return G(y,k(function(){return P(function(z){return G(z,e.m,0)})},"waitForFinish"),18);case 18:d.g=e.getConfiguration();d.vf=e.H;d.J&&d.J.setMediaElement&&d.h&&d.J.setMediaElement(d.h);d.zc=gn(e);d.yc=e.Ha;if(p=e.s)d.Ia=p;l&&d.h&&"AUDIO"===d.h.nodeName&&(jp(d),d.configure("manifest.disableVideo",!0));d.C=hn(e);return G(y,k(function(){return P(function(z){return G(z,d.C.$b(d.h),0)})},"drmEngine_.attach"),19);case 19:return!(r=e.G)||d.Da&&
617
+ y.h)?(e.A=!1,en(e,d),d.A=e.getStats(),e.start(),e.m.catch(function(){})):d.A=new Cl;case 11:return m=!e,n=Date.now()/1E3,d.A=e?e.getStats():new Cl,d.aa=f,d.zf=c||null,m?G(y,k(function(){return P(function(z){return G(z,ip(d,c),0)})},"initializeSrcEqualsDrmInner_"),21):G(y,k(function(){return P(function(z){if(1==z.g)return G(z,Promise.race([e.ha,e.m]),2);d.bb=e.I;var B=e;B.ka=!0;d.J=B.j;d.i=e.lg();I(z)})},"waitForFinish"),15);case 15:if(d.K){y.B(16);break}return G(y,k(function(){return P(function(z){return G(z,
618
+ ep(d),0)})},"initializeMediaSourceEngineInner_"),16);case 16:return G(y,k(function(){return P(function(z){return G(z,e.m,0)})},"waitForFinish"),18);case 18:d.g=e.getConfiguration();d.uf=e.H;d.J&&d.J.setMediaElement&&d.h&&d.J.setMediaElement(d.h);d.zc=gn(e);d.yc=e.Ha;if(p=e.s)d.Ia=p;l&&d.h&&"AUDIO"===d.h.nodeName&&(jp(d),d.configure("manifest.disableVideo",!0));d.C=hn(e);return G(y,k(function(){return P(function(z){return G(z,d.C.$b(d.h),0)})},"drmEngine_.attach"),19);case 19:return!(r=e.G)||d.Da&&
618
619
  d.Da==r||(d.s=fn(e),d.Da=e.G,"function"!=typeof d.s.setMediaElement&&(Dd("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),d.s.setMediaElement=function(){}),"function"!=typeof d.s.setCmsdManager&&(Dd("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),d.s.setCmsdManager=function(){}),"function"!=typeof d.s.trySuggestStreams&&(Dd("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),
619
620
  d.s.trySuggestStreams=function(){})),u=jn(e),v=e.na,G(y,k(function(){return P(function(z){return G(z,kp(d,n,v,u),0)})},"loadInner_"),20);case 20:dn(e);y.B(14);break;case 21:return G(y,k(function(){return P(function(z){return G(z,lp(d,n,c),0)})},"srcEqualsInner_"),14);case 14:d.dispatchEvent(Yo("loaded"));case 6:Aa(y);if(!e){y.B(23);break}return G(y,e.destroy(),23);case 23:d.ya=null;Ba(y,0);break;case 5:w=za(y);if(!w||7E3==w.code){y.B(25);break}return G(y,d.nc(!1),25);case 25:throw w;}})};
620
621
  function jp(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.Nk=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d;return P(function(e){return 1==e.g?G(e,mp(c),2):3!=e.g?(d=e.h,G(e,c.nc(a,b),3)):e.return(d)})};
621
622
  q.Ch=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;var c=this,d;return P(function(e){return 1==e.g?G(e,mp(c,b),2):3!=e.g?(d=e.h,G(e,c.detach(a),3)):e.return(d)})};
622
- function mp(a,b){b=void 0===b?!1:b;var c,d;return P(function(e){if(1==e.g){c=null;if(!(a.i&&a.J&&a.bb&&a.aa))return e.B(2);d=a.h.currentTime;a.T()&&!b&&(d=null);return G(e,np(a,a.aa,d,a.Af,!0,!1,!1),3)}if(2!=e.g){c=e.h;a.ee.push(c);a.J&&a.J.setMediaElement&&a.J.setMediaElement(null);var f=c,g=a.J,h=a.bb;f.h=a.i;f.j=g;f.I=h;f=c;g=a.Da;f.i=a.s;f.G=g;c.s=a.Ia;c.start();a.i=null;a.J=null;a.bb=null;a.s=null;a.Da=null}return e.return(c)})}
623
- q.preload=function(a,b,c){b=void 0===b?null:b;var d=this,e;return P(function(f){if(1==f.g)return G(f,hp(d,a,b,c),2);(e=f.h)?e.start():dp(d,new U(2,7,7005));return f.return(e)})};q.Tf=function(){var a=this,b,c,d,e;return P(function(f){b=[];c=t(a.ee);for(d=c.next();!d.done;d=c.next())e=d.value,e.u||b.push(e.destroy());a.ee=[];return G(f,Promise.all(b),0)})};
623
+ function mp(a,b){b=void 0===b?!1:b;var c,d;return P(function(e){if(1==e.g){c=null;if(!(a.i&&a.J&&a.bb&&a.aa))return e.B(2);d=a.h.currentTime;a.T()&&!b&&(d=null);return G(e,np(a,a.aa,d,a.zf,!0,!1,!1),3)}if(2!=e.g){c=e.h;a.ee.push(c);a.J&&a.J.setMediaElement&&a.J.setMediaElement(null);var f=c,g=a.J,h=a.bb;f.h=a.i;f.j=g;f.I=h;f=c;g=a.Da;f.i=a.s;f.G=g;c.s=a.Ia;c.start();a.i=null;a.J=null;a.bb=null;a.s=null;a.Da=null}return e.return(c)})}
624
+ q.preload=function(a,b,c){b=void 0===b?null:b;var d=this,e;return P(function(f){if(1==f.g)return G(f,hp(d,a,b,c),2);(e=f.h)?e.start():dp(d,new U(2,7,7005));return f.return(e)})};q.Sf=function(){var a=this,b,c,d,e;return P(function(f){b=[];c=t(a.ee);for(d=c.next();!d.done;d=c.next())e=d.value,e.u||b.push(e.destroy());a.ee=[];return G(f,Promise.all(b),0)})};
624
625
  function hp(a,b,c,d,e){e=void 0===e?!1:e;var f,g,h,k;return P(function(l){if(1==l.g)return d?l.B(2):G(l,gp(a,b),3);2!=l.g&&(d=l.h);if(f=op(a,d))return l.return(null);g=!1;h=!0;e&&(a.s&&a.Da==a.g.abrFactory&&(h=!1),a.h&&"AUDIO"===a.h.nodeName&&(g=!0));k=np(a,b,c,d||null,!e,g,h);k=e?k.then(function(m){m.A=!1;return m}):k.then(function(m){a.ee.push(m);return m});return l.return(k)})}
625
626
  function np(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,v,w,y,z,B,A,C;return P(function(D){if(1==D.g)return h=null,k=be(a.g),f&&(k.manifest.disableVideo=!0),l=function(){return h.S&&h.u?null:h},m=function(){return l()?l().getConfiguration():a.g},n=function(E,H){l()?h.configure(E,H):a.configure(E,H)},Infinity!=a.ka.width||Infinity!=a.ka.height?D.B(2):G(D,yc(),3);2!=D.g&&(p=D.h,a.ka.width=p.width,a.ka.height=p.height);r=new Ri(k,a.ka,null);u={networkingEngine:a.H,
626
627
  filter:function(E){var H,J;return P(function(F){if(1==F.g)return G(F,Si(r,E),2);if(4!=F.g){H=F.h;if(!H)return F.B(0);J=Yo("trackschanged");return G(F,Promise.resolve(),4)}h.dispatchEvent(J);I(F)})},makeTextStreamsForClosedCaptions:function(E){return pp(a,E)},onTimelineRegionAdded:function(E){var H=h.J;a:{var J=t(H.g);for(var F=J.next();!F.done;F=J.next())if(F=F.value,F.schemeIdUri==E.schemeIdUri&&F.id==E.id&&F.startTime==E.startTime&&F.endTime==E.endTime){J=F;break a}J=null}null==J&&(H.g.add(E),E=
627
628
  new T("regionadd",new Map([["region",E]])),H.dispatchEvent(E))},onEvent:function(E){return h.dispatchEvent(E)},onError:function(E){return h.onError(E)},isLowLatencyMode:function(){return m().streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return m().streaming.autoLowLatencyMode},enableLowLatencyMode:function(){n("streaming.lowLatencyMode",!0)},updateDuration:function(){a.j&&h.S&&a.j.updateDuration()},newDrmInfo:function(E){var H=h.l,J=H?H.g:null;J&&H.A&&Vi(r,J.keySystem,E)},onManifestUpdated:function(){var E=
628
- (new Map).set("isLive",a.T());h.dispatchEvent(Yo("manifestupdated",E));cn(h,!1,function(){if(a.u)a.u.onManifestUpdated(a.T())})},getBandwidthEstimate:function(){return a.s.getBandwidthEstimate()},onMetadata:function(E,H,J,F){var K=E;if("com.apple.hls.interstitial"==E&&(K="com.apple.quicktime.HLS",E={startTime:H,endTime:J,values:F},a.u))a.u.onHLSInterstitialMetadata(a,a.h,E);F=t(F);E=F.next();for(var L={};!E.done;L={Lg:void 0},E=F.next())L.Lg=E.value,"ID"!=L.Lg.name&&cn(h,!1,function(O){return function(){qp(a,
629
- H,J,K,O.Lg)}}(L))},disableStream:function(E){return a.disableStream(E,a.g.streaming.maxDisabledTime)},addFont:function(E,H){return a.addFont(E,H)}};v=new Pl(function(){return a.Ga()});v.addEventListener("regionadd",function(E){var H=E.region;rp(a,"timelineregionadded",H,h);cn(h,!1,function(){a.u&&(a.u.onDashTimedMetadata(H),a.u.onDASHInterstitialMetadata(a,a.h,H))})});w=null;k.streaming.observeQualityChanges&&(w=new Ql(function(){return a.Vb()}),w.addEventListener("qualitychange",function(E){sp(a,
629
+ (new Map).set("isLive",a.T());h.dispatchEvent(Yo("manifestupdated",E));cn(h,!1,function(){if(a.u)a.u.onManifestUpdated(a.T())})},getBandwidthEstimate:function(){return a.s.getBandwidthEstimate()},onMetadata:function(E,H,J,F){var K=E;if("com.apple.hls.interstitial"==E&&(K="com.apple.quicktime.HLS",E={startTime:H,endTime:J,values:F},a.u))a.u.onHLSInterstitialMetadata(a,a.h,E);F=t(F);E=F.next();for(var L={};!E.done;L={Kg:void 0},E=F.next())L.Kg=E.value,"ID"!=L.Kg.name&&cn(h,!1,function(O){return function(){qp(a,
630
+ H,J,K,O.Kg)}}(L))},disableStream:function(E){return a.disableStream(E,a.g.streaming.maxDisabledTime)},addFont:function(E,H){return a.addFont(E,H)}};v=new Pl(function(){return a.Ga()});v.addEventListener("regionadd",function(E){var H=E.region;rp(a,"timelineregionadded",H,h);cn(h,!1,function(){a.u&&(a.u.onDashTimedMetadata(H),a.u.onDASHInterstitialMetadata(a,a.h,H))})});w=null;k.streaming.observeQualityChanges&&(w=new Ql(function(){return a.Vb()}),w.addEventListener("qualitychange",function(E){sp(a,
630
631
  E.quality,E.position)}),w.addEventListener("audiotrackchange",function(E){sp(a,E.quality,E.position,!0)}));y=!0;z={ic:a.H,onError:function(E){return h.onError(E)},We:function(E){cn(h,!0,function(){a:{var H=E,J=Yo("keystatuschanged");a.dispatchEvent(J);var F=Object.keys(H);1==F.length&&""==F[0]&&(F=["00"],H={"00":H[""]});J=1==F.length&&"00"==F[0];var K=!1;if(F.length){F=t(a.i.variants);for(var L=F.next();!L.done;L=F.next()){L=L.value;var O=[];L.audio&&O.push(L.audio);L.video&&O.push(L.video);O=t(O);
631
632
  for(var M=O.next();!M.done;M=O.next()){var N=M.value;M=L.allowedByKeySystem;if(N.keyIds.size){L.allowedByKeySystem=!0;N=t(N.keyIds);for(var Q=N.next();!Q.done;Q=N.next())if(Q=Q.value,(Q=H[J?"00":Q])||a.C.H)L.allowedByKeySystem=L.allowedByKeySystem&&!!Q&&!Xi.includes(Q)}M!=L.allowedByKeySystem&&(K=!0)}}}if(K&&(tp(a),!up(a)))break a;(H=a.j.j)&&!H.allowedByKeySystem&&Vo(a)}})},onExpirationUpdated:function(E,H){var J=Yo("expirationupdated");h.dispatchEvent(J);if((J=h.j)&&J.onExpirationUpdated)J.onExpirationUpdated(E,
632
633
  H)},onEvent:function(E){h.dispatchEvent(E);"drmsessionupdate"==E.type&&y&&(y=!1,E=Date.now()/1E3-h.Da,(a.A||h.getStats()).j=E,a.N&&dk(a.N))}};B=Do(a,l);Ah(a.H,B);A=function(){return a.cd(z)};C={config:k,$j:u,kk:v,jk:w,cd:A,Zj:r,networkingEngine:B,Vi:e,Ui:g};h=new bn(b,d,c,C);return D.return(h)})}
@@ -636,16 +637,16 @@ function ep(a){var b,c,d;return P(function(e){if(1==e.g)return ap(a,"media-sourc
636
637
  function yp(a,b,c){function d(){return zp(a)}a.l.o(b,"playing",d);a.l.o(b,"pause",d);a.l.o(b,"ended",d);a.l.o(b,"ratechange",function(){var e=a.h.playbackRate;0!=e&&(a.L&&a.L.set(e),e=Yo("ratechange"),a.dispatchEvent(e))});b.remote&&(a.l.o(b.remote,"connect",function(){return tp(a)}),a.l.o(b.remote,"connecting",function(){return tp(a)}),a.l.o(b.remote,"disconnect",function(){return P(function(e){if(1==e.g)return a.j&&"disconnected"==b.remote.state?G(e,Lm(a.j),2):e.B(2);tp(a);I(e)})}));b.audioTracks&&
637
638
  (a.l.o(b.audioTracks,"addtrack",function(){return tp(a)}),a.l.o(b.audioTracks,"removetrack",function(){return tp(a)}),a.l.o(b.audioTracks,"change",function(){return tp(a)}));b.textTracks&&(a.l.o(b.textTracks,"addtrack",function(e){if(e.track)switch(e=e.track,e.kind){case "metadata":Ap(a,e);break;case "chapters":Bp(a,e);break;default:tp(a)}}),a.l.o(b.textTracks,"removetrack",function(){return tp(a)}),a.l.o(b.textTracks,"change",function(){return tp(a)}));"none"!=b.preload&&a.l.sa(b,"loadedmetadata",
638
639
  function(){a.A.G=Date.now()/1E3-c})}
639
- function kp(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,B,A,C,D,E,H;return P(function(J){switch(J.g){case 1:ap(a,"load"),e=a.h,a.L=new tl({Ce:function(){return e.playbackRate},Jc:function(){return e.defaultPlaybackRate},Zg:function(F){e.playbackRate=F},Yh:function(F){e.currentTime+=F}}),yp(a,e,b),Xo(a,a.g),a.Kb=a.g.preferredTextLanguage,a.ae=a.g.preferredTextRole,a.Zd=a.g.preferForcedSubs,Cp(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd),a.s.init(function(F,K,L){a.i&&a.j&&F!=a.j.j&&
640
+ function kp(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,B,A,C,D,E,H;return P(function(J){switch(J.g){case 1:ap(a,"load"),e=a.h,a.L=new tl({Ce:function(){return e.playbackRate},Lc:function(){return e.defaultPlaybackRate},Zg:function(F){e.playbackRate=F},Yh:function(F){e.currentTime+=F}}),yp(a,e,b),Xo(a,a.g),a.Kb=a.g.preferredTextLanguage,a.ae=a.g.preferredTextRole,a.Zd=a.g.preferForcedSubs,Cp(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd),a.s.init(function(F,K,L){a.i&&a.j&&F!=a.j.j&&
640
641
  Dp(a,F,!0,void 0===K?!1:K,void 0===L?0:L)}),a.s.setMediaElement(e),a.s.setCmsdManager(a.ha),a.j=Ep(a),a.j.configure(a.g.streaming),a.m=Fp,a.dispatchEvent(Yo("streaming")),f=c;case 2:(h=a.j.j)||f||(f=up(a)?a.s.chooseVariant():null);k=[];g=h||f;l=t([g.video,g.audio]);for(m=l.next();!m.done;m=l.next())(n=m.value)&&!n.segmentIndex&&k.push(n.createSegmentIndex());if(!(0<k.length)){J.B(4);break}return G(J,Promise.all(k),4);case 4:if(!g||0!=g.disabledUntilTime){J.B(2);break}if(a.J&&a.J.onInitialVariantChosen)a.J.onInitialVariantChosen(g);
641
642
  a.i.isLowLatency&&!a.g.streaming.lowLatencyMode&&ab("Low-latency live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");a.P&&Vn(a.P,a.i.isLowLatency&&a.g.streaming.lowLatencyMode);Cp(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd);im(a.j,a.g.playRangeStart,a.g.playRangeEnd);p=function(F){a.I=Gp(a,F);a.Mb=Hp(a,F);Ip(a,e,Math.max(a.i.minBufferTime,a.g.streaming.rebufferingGoal))};
642
643
  a.g.streaming.startAtSegmentBoundary||(r=a.na,null==r&&a.i.startTime&&(r=a.i.startTime),p(r));if(h){J.B(7);break}if(!a.g.streaming.startAtSegmentBoundary){J.B(8);break}u=a.i.presentationTimeline;v=a.na||a.h.currentTime;null==a.na&&a.i.startTime&&(v=a.i.startTime);w=u.dc();y=u.Wb();v<w?v=w:v>y&&(v=y);return G(J,Jp(f,v),9);case 9:z=J.h,p(z);case 8:Dp(a,f,!0,!1,0);case 7:return a.I.ready(),B=a.uc().find(function(F){return F.active}),B||((A=Kg(a.i.textStreams,a.Kb,a.ae,a.Zd)[0]||null)&&Bl(a.A.h,A,!0),
643
- f&&(A?(Kp(a,f.audio,A)&&(a.ra=!0),a.ra&&a.G.setTextVisibility(!0),Lp(a)):a.ra=!1),A&&(a.g.streaming.alwaysStreamText||a.Qc())&&rm(a.j,A)),G(J,a.j.start(d),10);case 10:a.g.abr.enabled&&(a.s.enable(),Mp(a));tp(a);up(a);a.i.variants.some(function(F){return F.primary});if((C=a.T())&&(a.g.streaming.liveSync&&a.g.streaming.liveSync.enabled||a.i.serviceDescription||a.g.streaming.liveSync.panicMode)||a.g.streaming.vodDynamicPlaybackRate)D=function(){return Np(a)},a.l.o(e,"timeupdate",D);C||(E=function(){return Op(a)},
644
+ f&&(A?(Kp(a,f.audio,A)&&(a.ra=!0),a.ra&&a.G.setTextVisibility(!0),Lp(a)):a.ra=!1),A&&(a.g.streaming.alwaysStreamText||a.Sc())&&rm(a.j,A)),G(J,a.j.start(d),10);case 10:a.g.abr.enabled&&(a.s.enable(),Mp(a));tp(a);up(a);a.i.variants.some(function(F){return F.primary});if((C=a.T())&&(a.g.streaming.liveSync&&a.g.streaming.liveSync.enabled||a.i.serviceDescription||a.g.streaming.liveSync.panicMode)||a.g.streaming.vodDynamicPlaybackRate)D=function(){return Np(a)},a.l.o(e,"timeupdate",D);C||(E=function(){return Op(a)},
644
645
  a.l.o(e,"timeupdate",E),Op(a),a.i.nextUrl&&(0<a.g.streaming.preloadNextUrlWindow&&(H=function(){var F;return P(function(K){if(1==K.g){F=a.h.duration-a.h.currentTime;if(isNaN(F)||!(F<=a.g.streaming.preloadNextUrlWindow))return K.B(0);a.l.Ma(e,"timeupdate",H);return G(K,a.preload(a.i.nextUrl),4)}a.ya=K.h;I(K)})},a.l.o(e,"timeupdate",H)),a.l.o(e,"ended",function(){a.load(a.ya||a.i.nextUrl)})));if(a.u)a.u.onManifestUpdated(C);a.Ha=!0;I(J)}})}
645
646
  function ip(a,b){var c,d,e,f,g;return P(function(h){return 1==h.g?(c=Zc,d=Date.now()/1E3,e=!0,a.C=a.cd({ic:a.H,onError:function(k){dp(a,k)},We:function(){},onExpirationUpdated:function(){var k=Yo("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:[]},
646
647
  g={id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:b?Kf(b):"",codecs:b?Lf(b):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:c.xa,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(Af(g.mimeType,
647
648
  g.codecs)),b.startsWith("audio/")?(g.type=c.ia,f.audio=g):f.video=g,a.C.Y=!0,G(h,ni(a.C,[f],[]),2)):G(h,a.C.$b(a.h),0)})}
648
- function lp(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v;return P(function(w){if(1==w.g)return ap(a,"src-equals"),d=a.h,a.I=new jl(d),e=!1,a.Yd.push(function(){e=!0}),null!=a.na&&a.I.Ef(a.na),a.L=new tl({Ce:function(){return d.playbackRate},Jc:function(){return d.defaultPlaybackRate},Zg:function(y){d.playbackRate=y},Yh:function(y){d.currentTime+=y}}),f=a.g.streaming.rebufferingGoal,Ip(a,d,f),d.textTracks&&(vp(a),g=function(){var y=Pp(a).find(function(z){return"disabled"!==z.mode});y&&(y.mode="showing")},
649
+ function lp(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v;return P(function(w){if(1==w.g)return ap(a,"src-equals"),d=a.h,a.I=new jl(d),e=!1,a.Yd.push(function(){e=!0}),null!=a.na&&a.I.Df(a.na),a.L=new tl({Ce:function(){return d.playbackRate},Lc:function(){return d.defaultPlaybackRate},Zg:function(y){d.playbackRate=y},Yh:function(y){d.currentTime+=y}}),f=a.g.streaming.rebufferingGoal,Ip(a,d,f),d.textTracks&&(vp(a),g=function(){var y=Pp(a).find(function(z){return"disabled"!==z.mode});y&&(y.mode="showing")},
649
650
  h=function(){var y=Pp(a).find(function(z){return"disabled"!==z.mode});y&&(y.mode="hidden")},a.l.o(d,"enterpictureinpicture",function(){return g()}),a.l.o(d,"leavepictureinpicture",function(){return h()}),d.remote?(a.l.o(d.remote,"connect",function(){return h()}),a.l.o(d.remote,"connecting",function(){return h()}),a.l.o(d.remote,"disconnect",function(){return h()})):"webkitCurrentPlaybackTargetIsWireless"in d&&a.l.o(d,"webkitcurrentplaybacktargetiswirelesschanged",function(){return h()}),k=d,k.webkitSupportsFullscreen&&
650
651
  a.l.o(k,"webkitpresentationmodechanged",function(){"inline"!=k.webkitPresentationMode?g():h()})),yp(a,d,b),l=$n(a.P,a.aa,c),!l.includes("#t=")&&(0<a.g.playRangeStart||isFinite(a.g.playRangeEnd))&&(l+="#t=",0<a.g.playRangeStart&&(l+=a.g.playRangeStart),isFinite(a.g.playRangeEnd)&&(l+=","+a.g.playRangeEnd)),d.src=l,a.K&&window.ManagedMediaSource&&(d.disableRemotePlayback=!1),(dc()||gc())&&d.load(),"none"!=d.preload&&!d.autoplay&&Mf(c)&&rc()&&d.load(),a.m=Qp,a.dispatchEvent(Yo("streaming")),m=new mh,
651
652
  al(d,HTMLMediaElement.HAVE_METADATA,a.l,function(){a.I.ready();m.resolve()}),al(d,HTMLMediaElement.HAVE_CURRENT_DATA,a.l,function(){var y,z,B,A,C;return P(function(D){if(1==D.g)return Rp(a),y=Pp(a),y.find(function(E){return"disabled"!=E.mode})?(0<y.length&&(a.ra=!0,a.G.setTextVisibility(!0)),D.B(2)):G(D,new Promise(function(E){a.l.sa(d.textTracks,"change",E);(new Xb(E)).X(1)}),2);if(e)return D.return();z=!1;B=t(y);for(A=B.next();!A.done;A=B.next())C=A.value,"disabled"!==C.mode&&(z?(C.mode="disabled",
@@ -660,13 +661,13 @@ function Do(a,b){function c(e){b()?b().dispatchEvent(e):a.dispatchEvent(e)}funct
660
661
  xo(n[1]))}}catch(w){}if(l=e["cmsd-dynamic"]){try{var p=new Map,r=l.split(";");for(l=1;l<r.length;l++){var u=r[l].split("=");p.set(u[0],xo(u[1]))}var v=p}catch(w){v=null}v&&(h.g=v)}}}})},function(e,f,g,h){e=(new Map).set("request",e).set("error",f).set("httpResponseCode",g).set("aborted",h);c(Yo("downloadfailed",e))},function(e,f,g){d(function(){var h=a.P,k=g;k=void 0===k?{}:k;if(h.g.enabled)if("HEAD"===f.method)ho(h,f);else switch(e){case 0:try{if(h.g.enabled){if(k.type){a:{switch(k.type){case 4:var l=
661
662
  h.j?Xn:Wn;break a;case 3:case 2:l=h.j?Zn:Yn;break a;case 5:l="s";break a}l=void 0}h.i=l}ho(h,f,{ot:eo,su:!h.l})}}catch(M){bb("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",M)}break;case Jh: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.T()?"l":"v"};n.ot=lo(k);var p=n.ot===io||n.ot===bo||n.ot===co||n.ot===no,r=k.stream;if(r){var u=h.h.Va();if(p&&(n.bl=po(h,r.type),n.ot!==no)){var v=qo(h,r.type);n.dl=u?v/Math.abs(u):v}r.bandwidth&&(n.br=r.bandwidth/
662
663
  1E3);if(r.segmentIndex&&m){var w=r.segmentIndex.cc(m.endTime,!0,0>u);if(w){var y=w.next().value;if(y&&y!=m){if(!Ud(m.R(),y.R())){var z=y.R()[0],B=f.uris[0],A=new URL(z),C=new URL(B);if(A.origin!==C.origin)var D=z;else{for(var E=A.pathname.split("/").slice(1),H=C.pathname.split("/").slice(1,-1);E[0]===H[0];)E.shift(),H.shift();for(;H.length;)H.shift(),E.unshift("..");D=E.join("/")}n.nor=D}if((y.$a||y.La)&&(m.$a!=y.$a||m.La!=y.La)){var J=y.$a+"-";y.La&&(J+=y.La);n.nrr=J}}}var F=h.h.Va()||1,K=qo(h,r.type)||
663
- 500,L=r.bandwidth;var O=L?L*(m.endTime-m.startTime)/1E3/(K/F/1E3)*h.g.rtpSafetyFactor:NaN;isNaN(O)||(n.rtp=O)}}p&&n.ot!==no&&(n.tb=ro(h,n.ot)/1E3);ho(h,f,n)}}catch(M){bb("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",M)}break;case 2:case 5:case 6:ho(h,f,{ot:"k"});break;case 4:ho(h,f,{ot:"o"})}})},function(e,f,g,h){(e=b()?b().j:a.J)&&e.banLocation&&e.banLocation(h)},function(e,f){if(f.data){f=f.data.byteLength;var g=b()?b().getStats():a.A;g&&(g.Fc=isNaN(g.Fc)?f:g.Fc+f,0===e&&(g.Th=f))}})}
664
+ 500,L=r.bandwidth;var O=L?L*(m.endTime-m.startTime)/1E3/(K/F/1E3)*h.g.rtpSafetyFactor:NaN;isNaN(O)||(n.rtp=O)}}p&&n.ot!==no&&(n.tb=ro(h,n.ot)/1E3);ho(h,f,n)}}catch(M){bb("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",M)}break;case 2:case 5:case 6:ho(h,f,{ot:"k"});break;case 4:ho(h,f,{ot:"o"})}})},function(e,f,g,h){(e=b()?b().j:a.J)&&e.banLocation&&e.banLocation(h)},function(e,f){if(f.data){f=f.data.byteLength;var g=b()?b().getStats():a.A;g&&(g.Gc=isNaN(g.Gc)?f:g.Gc+f,0===e&&(g.Th=f))}})}
664
665
  function Gp(a,b){return new kl(a.h,a.i,a.g.streaming,b,function(){a.Mb&&wl(a.Mb,!0);a.j&&a.j.wd();a.O&&Vp(a)},function(c){return a.dispatchEvent(c)})}
665
666
  function Hp(a,b){b=new qn(a.zc,a.T()||0<b);b.addEventListener("enter",function(d){rp(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){rp(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(rp(a,"timelineregionenter",e),rp(a,"timelineregionexit",e))});var c=new vl(a.h);c.g.add(b);a.yc&&c.g.add(a.yc);return c}
666
- function Ip(a,b,c){a.O=new fh;a.O.g=hh;ih(a.O,c,Math.min(.5,c/2));fp(a);a.yf=(new Xb(function(){Vp(a)})).Aa(.25);a.l.o(b,"waiting",function(){return Vp(a)});a.l.o(b,"stalled",function(){return Vp(a)});a.l.o(b,"canplaythrough",function(){return Vp(a)});a.l.o(b,"progress",function(){return Vp(a)})}
667
+ function Ip(a,b,c){a.O=new fh;a.O.g=hh;ih(a.O,c,Math.min(.5,c/2));fp(a);a.xf=(new Xb(function(){Vp(a)})).Aa(.25);a.l.o(b,"waiting",function(){return Vp(a)});a.l.o(b,"stalled",function(){return Vp(a)});a.l.o(b,"canplaythrough",function(){return Vp(a)});a.l.o(b,"progress",function(){return Vp(a)})}
667
668
  function Vp(a){switch(a.m){case Qp:if(a.h.ended)var b=!0;else{var c=lj(a.h.buffered);b=null!=c&&c>=a.h.duration-1}break;case Fp:a:if(a.h.ended||ok(a.K))b=!0;else{if(a.i.presentationTimeline.T()){c=a.i.presentationTimeline.sc();var d=lj(a.h.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=nj(a.h.buffered,a.h.currentTime);c=a.O;var e=b,f=c.i.get(c.g);b=c.g;d=e||d>=f?gh:hh;c.g=d;(b=b!=d)&&d===gh&&(c.h=Date.now());b&&fp(a)}function wp(a,b,c,d){return new fk(a,b,c,d)}
668
669
  function Co(a){return new Tn({getBandwidthEstimate:function(){return a.s?a.s.getBandwidthEstimate():NaN},Vb:function(){return a.Vb()},getCurrentTime:function(){return a.h?a.h.currentTime:0},Va:function(){return a.Va()},Gb:function(){return a.Gb()},Jb:function(){return a.Jb()},T:function(){return a.T()}},a.g.cmcd)}
669
- function Ep(a){return new cm(a.i,{Kd:function(){return a.I?a.I.le():0},getBandwidthEstimate:function(){return a.s.getBandwidthEstimate()},Va:function(){return a.Va()},oa:a.K,ic:a.H,onError:function(b){return dp(a,b)},onEvent:function(b){return a.dispatchEvent(b)},gk:function(){a.J&&a.J.update&&a.J.update()},Hg:function(b,c){var d=b.startTime;b=b.endTime;var e=c.type;c=c.codecs.includes(",");if(e!=Xc){if(a.I){a.I.Zh();var f=pk(a.K,e);!a.T()&&a.h.paused&&null!=f&&0<f&&a.I.le()<f&&a.I.Ef(f)}Vp(a)}d=
670
+ function Ep(a){return new cm(a.i,{Kd:function(){return a.I?a.I.le():0},getBandwidthEstimate:function(){return a.s.getBandwidthEstimate()},Va:function(){return a.Va()},oa:a.K,ic:a.H,onError:function(b){return dp(a,b)},onEvent:function(b){return a.dispatchEvent(b)},gk:function(){a.J&&a.J.update&&a.J.update()},Gg:function(b,c){var d=b.startTime;b=b.endTime;var e=c.type;c=c.codecs.includes(",");if(e!=Xc){if(a.I){a.I.Zh();var f=pk(a.K,e);!a.T()&&a.h.paused&&null!=f&&0<f&&a.I.le()<f&&a.I.Df(f)}Vp(a)}d=
670
671
  (new Map).set("start",d).set("end",b).set("contentType",e).set("isMuxed",c);a.dispatchEvent(Yo("segmentappended",d))},fk:function(b,c){(c=c.pd)&&a.yc&&Sl(a.yc,c,b)},rh:function(b,c){var d=a.C;if(d.h.parseInbandPsshEnabled&&!d.H&&["audio","video"].includes(b)){b=new ei(Jb(c));c=0;for(var e=t(b.data),f=e.next();!f.done;f=e.next())c+=f.value.length;if(0==c)d=Promise.resolve();else{c=new Uint8Array(c);e=0;b=t(b.data);for(f=b.next();!f.done;f=b.next())f=f.value,c.set(f,e),e+=f.length;wi(d,"cenc",c);d=
671
672
  d.m}}else d=Promise.resolve();return d},onMetadata:function(b,c,d){xp(a,b,c,d)},disableStream:function(b,c){return a.disableStream(b,c)}})}
672
673
  q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Om(a,b));a.streaming&&"forceTransmuxTS"in a.streaming&&(Dd("streaming.forceTransmuxTS configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmuxTS,delete a.streaming.forceTransmuxTS);a.streaming&&"forceTransmux"in a.streaming&&(Dd("streaming.forceTransmux configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmux,delete a.streaming.forceTransmux);
@@ -680,70 +681,70 @@ a.streaming.liveSyncPanicThreshold,delete a.streaming.liveSyncPanicThreshold);if
680
681
  "Please Use liveSync config to keep on live Edge instead."),delete a.manifest.hls.useSafariBehaviorForLive);a.streaming&&a.streaming.lowLatencyMode&&(void 0==a.streaming.inaccurateManifestTolerance&&(a.streaming.inaccurateManifestTolerance=0),void 0==a.streaming.rebufferingGoal&&(a.streaming.rebufferingGoal=.01),void 0==a.streaming.segmentPrefetchLimit&&(a.streaming.segmentPrefetchLimit=2),void 0==a.streaming.updateIntervalSeconds&&(a.streaming.updateIntervalSeconds=.1),void 0==a.streaming.maxDisabledTime&&
681
682
  (a.streaming.maxDisabledTime=1),void 0==a.streaming.retryParameters&&(a.streaming.retryParameters={}),void 0==a.streaming.retryParameters.baseDelay&&(a.streaming.retryParameters.baseDelay=100),void 0==a.manifest&&(a.manifest={}),void 0==a.manifest.dash&&(a.manifest.dash={}),void 0==a.manifest.dash.autoCorrectDrift&&(a.manifest.dash.autoCorrectDrift=!1),void 0==a.manifest.retryParameters&&(a.manifest.retryParameters={}),void 0==a.manifest.retryParameters.baseDelay&&(a.manifest.retryParameters.baseDelay=
682
683
  100),void 0==a.drm&&(a.drm={}),void 0==a.drm.retryParameters&&(a.drm.retryParameters={}),void 0==a.drm.retryParameters.baseDelay&&(a.drm.retryParameters.baseDelay=100));c=an(this.g,a,Bo(this));Wp(this);return c};
683
- function Wp(a){a.vf=new Ri(a.g,a.ka,a.C);if(a.J){var b=be(a.g.manifest);a.h&&"AUDIO"===a.h.nodeName&&(b.disableVideo=!0);a.J.configure(b)}a.C&&a.C.configure(a.g.drm);if(a.j){a.j.configure(a.g.streaming);try{a.m!=Zo&&Ti(a.vf,a.i)&&tp(a)}catch(e){dp(a,e)}a.s&&up(a);b=a.j.j;!b||b.allowedByApplication&&b.allowedByKeySystem||Vo(a)}a.H&&(a.H.Xg(a.g.streaming.forceHTTP),a.H.Yg(a.g.streaming.forceHTTPS),a.H.m=a.g.streaming.minBytesForProgressEvents);a.K&&(a.K.configure(a.g.mediaSource),a.K.ha=a.g.manifest.segmentRelativeVttTiming);
684
+ function Wp(a){a.uf=new Ri(a.g,a.ka,a.C);if(a.J){var b=be(a.g.manifest);a.h&&"AUDIO"===a.h.nodeName&&(b.disableVideo=!0);a.J.configure(b)}a.C&&a.C.configure(a.g.drm);if(a.j){a.j.configure(a.g.streaming);try{a.m!=Zo&&Ti(a.uf,a.i)&&tp(a)}catch(e){dp(a,e)}a.s&&up(a);b=a.j.j;!b||b.allowedByApplication&&b.allowedByKeySystem||Vo(a)}a.H&&(a.H.Xg(a.g.streaming.forceHTTP),a.H.Yg(a.g.streaming.forceHTTPS),a.H.m=a.g.streaming.minBytesForProgressEvents);a.K&&(a.K.configure(a.g.mediaSource),a.K.ha=a.g.manifest.segmentRelativeVttTiming);
684
685
  if(a.G)if(b=a.g.textDisplayFactory,a.ie!=b){var c=a.G;a.G=b();a.G.configure?a.G.configure(a.g.textDisplayer):Dd("Text displayer w/ configure",'Text displayer should have a "configure" method!');a.G.setTextVisibility(c.isTextVisible());c.destroy();if(a.K){c=a.K;var d=a.G;c.Y=d;c.g&&(c.g.j=d)}a.ie=b;a.j&&(b=a.j,(c=b.i.get(Xc))&&pm(b,c.stream,!0,0,!0))}else a.G.configure&&a.G.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.O&&(b=a.g.streaming.rebufferingGoal,
685
686
  a.i&&(b=Math.max(b,a.i.minBufferTime)),ih(a.O,b,Math.min(.5,b/2)));a.i&&Cp(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd);a.u&&a.u.configure(a.g.ads);a.P&&a.P.configure(a.g.cmcd);a.ha&&a.ha.configure(a.g.cmsd)}q.getConfiguration=function(){var a=Bo(this);an(a,this.g,Bo(this));return a};q.Kh=function(){var a=Bo(this);an(a,this.g,Bo(this));return Qm(this.g,Bo(this))};
686
687
  q.Gh=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.Ga().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.wk=function(){for(var a in this.g)delete this.g[a];an(this.g,Bo(this),Bo(this));Wp(this)};q.jd=function(){return this.m};q.Be=function(){return this.i?this.i.type:null};q.vj=function(){return this.h};
687
- q.Gb=function(){return this.H};q.hd=function(){return this.aa};q.ye=function(){return this.u?this.u:null};q.T=function(){return this.i&&!this.eb()?this.i.presentationTimeline.T():this.h&&this.h.src?Infinity==this.h.duration:!1};q.Pc=function(){return this.i?this.i.presentationTimeline.Pc():!1};q.Oc=function(){if(this.i&&!this.eb()){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};
688
+ q.Gb=function(){return this.H};q.hd=function(){return this.aa};q.ye=function(){return this.u?this.u:null};q.T=function(){return this.i&&!this.eb()?this.i.presentationTimeline.T():this.h&&this.h.src?Infinity==this.h.duration:!1};q.Rc=function(){return this.i?this.i.presentationTimeline.Rc():!1};q.Qc=function(){if(this.i&&!this.eb()){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};
688
689
  q.Ga=function(){if(this.i&&!this.eb()){if(!this.Ha&&"HLS"==this.i.type)return{start:0,end:0};var a=this.i.presentationTimeline;return{start:a.dc(),end:a.Wb()}}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.Lj=function(){this.T()&&(this.h.currentTime=this.Ga().end)};q.Qh=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};
689
- q.Jd=function(){return this.C?this.C.Jd():Infinity};q.jg=function(){return this.C?this.C.jg():[]};q.Ae=function(){return this.C?this.C.Ae():{}};q.Ie=function(){return this.O?this.O.g==hh:!1};q.Va=function(){return this.h?this.L?this.L.i:1:0};
690
- q.Wc=function(a,b){var c=this;b=void 0===b?!0:b;0==a?ab("A trick play rate of 0 is unsupported!"):(this.Ta.Za(),this.h.paused&&this.h.play(),this.L.set(a),this.m==Fp&&(this.s.playbackRateChanged(a),om(this.j,b&&1<Math.abs(a))),this.T()&&this.Ta.o(this.h,"timeupdate",function(){var d=c.h.currentTime,e=c.Ga(),f=c.g.streaming.safeSeekOffset;0<a?Math.floor(d)>=Math.floor(e.end)&&c.$c():Math.floor(d)<=Math.floor(e.start+f)&&c.$c()}))};
691
- q.$c=function(){var a=this.L.Jc();this.m==Qp&&this.L.set(a);this.m==Fp&&(this.L.set(a),this.s.playbackRateChanged(a),om(this.j,!1));this.Ta.Za()};
690
+ q.Jd=function(){return this.C?this.C.Jd():Infinity};q.ig=function(){return this.C?this.C.ig():[]};q.Ae=function(){return this.C?this.C.Ae():{}};q.Ie=function(){return this.O?this.O.g==hh:!1};q.Va=function(){return this.h?this.L?this.L.i:1:0};
691
+ q.Ec=function(a,b){var c=this;b=void 0===b?!0:b;0==a?ab("A trick play rate of 0 is unsupported!"):(this.Ta.Za(),this.h.paused&&this.h.play(),this.L.set(a),this.m==Fp&&(this.s.playbackRateChanged(a),om(this.j,b&&1<Math.abs(a))),this.T()&&this.Ta.o(this.h,"timeupdate",function(){var d=c.h.currentTime,e=c.Ga(),f=c.g.streaming.safeSeekOffset;0<a?Math.floor(d)>=Math.floor(e.end)&&c.Hc():Math.floor(d)<=Math.floor(e.start+f)&&c.Hc()}))};
692
+ q.Hc=function(){var a=this.L.Lc();this.m==Qp&&this.L.set(a);this.m==Fp&&(this.L.set(a),this.s.playbackRateChanged(a),om(this.j,!1));this.Ta.Za()};
692
693
  q.Jb=function(){if(this.i&&!this.eb()){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,Ig(e)){var f=zg(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 Hg(g)}):[]};
693
694
  q.uc=function(){if(this.i&&!this.eb()){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=Ag(d);e.active=d==a;b.push(e)}return b}return this.h&&this.h.src&&this.h.textTracks?Pp(this).map(function(f){return Fg(f)}):[]};q.ze=function(){var a=this.be;this.i&&(a=this.i.imageStreams);return a.map(function(b){return Bg(b)})};
694
- q.$i=function(a){var b=this,c,d,e,f;return P(function(g){if(1==g.g){if(b.m!=Fp&&b.m!=Qp)return g.return(null);c=b.be;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.Ub(function(h){var k=Xp(h.tilesLayout||d.tilesLayout);if(k){k=k.rows*k.Gc;for(var l=h.j-h.startTime,m=0;m<k;m++)e.push(b.og(a,h.startTime+l*m/k))}}),G(g,Promise.all(e),4);f=g.h;return g.return(f.filter(function(h){return h}))})};
695
- function Xp(a){return a?(a=/(\d+)x(\d+)/.exec(a))?{Gc:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}
696
- q.og=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,B,A;return P(function(C){if(1==C.g){if(c.m!=Fp&&c.m!=Qp)return C.return(null);d=c.be;c.i&&(d=c.i.imageStreams);return(e=d.find(function(D){return D.id==a}))?e.segmentIndex?C.B(2):G(C,e.createSegmentIndex(),2):C.return(null)}f=e.segmentIndex.find(b);if(null==f)return C.return(null);g=e.segmentIndex.get(f);h=Xp(g.tilesLayout||e.tilesLayout);if(!h)return C.return(null);k=e.width||0;l=e.height||0;m=k/h.Gc;n=l/h.rows;p=h.Gc*h.rows;r=g.j-g.startTime;
697
- u=g.C||r/p;v=g.startTime;y=w=0;1<p&&(z=Math.floor((b-g.startTime)/u),v=g.startTime+z*u,w=z%h.Gc*m,y=Math.floor(z/h.Gc)*n);B=!1;if(A=g.A)B=!0,n=A.height,w=A.positionX,y=A.positionY,m=A.width;return C.return({segment:g,imageHeight:l,imageWidth:k,height:n,positionX:w,positionY:y,startTime:v,duration:u,uris:g.R(),width:m,sprite:B})})};
695
+ q.$i=function(a){var b=this,c,d,e,f;return P(function(g){if(1==g.g){if(b.m!=Fp&&b.m!=Qp)return g.return(null);c=b.be;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.Ub(function(h){var k=Xp(h.tilesLayout||d.tilesLayout);if(k){k=k.rows*k.Ic;for(var l=h.j-h.startTime,m=0;m<k;m++)e.push(b.ng(a,h.startTime+l*m/k))}}),G(g,Promise.all(e),4);f=g.h;return g.return(f.filter(function(h){return h}))})};
696
+ function Xp(a){return a?(a=/(\d+)x(\d+)/.exec(a))?{Ic:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}
697
+ q.ng=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,B,A;return P(function(C){if(1==C.g){if(c.m!=Fp&&c.m!=Qp)return C.return(null);d=c.be;c.i&&(d=c.i.imageStreams);return(e=d.find(function(D){return D.id==a}))?e.segmentIndex?C.B(2):G(C,e.createSegmentIndex(),2):C.return(null)}f=e.segmentIndex.find(b);if(null==f)return C.return(null);g=e.segmentIndex.get(f);h=Xp(g.tilesLayout||e.tilesLayout);if(!h)return C.return(null);k=e.width||0;l=e.height||0;m=k/h.Ic;n=l/h.rows;p=h.Ic*h.rows;r=g.j-g.startTime;
698
+ u=g.C||r/p;v=g.startTime;y=w=0;1<p&&(z=Math.floor((b-g.startTime)/u),v=g.startTime+z*u,w=z%h.Ic*m,y=Math.floor(z/h.Ic)*n);B=!1;if(A=g.A)B=!0,n=A.height,w=A.positionX,y=A.positionY,m=A.width;return C.return({segment:g,imageHeight:l,imageWidth:k,height:n,positionX:w,positionY:y,startTime:v,duration:u,uris:g.R(),width:m,sprite:B})})};
698
699
  q.Tg=function(a){if(this.i&&this.j&&!this.eb()){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.u&&(Bl(this.A.h,b,!1),rm(this.j,b),Yp(this),this.Kb=b.language)}else if(this.h&&this.h.src&&this.h.textTracks){var c=Pp(this);b=c.find(function(d){return"disabled"!==d.mode});c=c.find(function(d){return Dg(d)===a.id});b!==c&&(b&&(b.mode="disabled",this.l.Ma(b,"cuechange"),this.G.remove(0,Infinity)),c&&Sp(this,c));Yp(this)}};
699
700
  function Sp(a,b){a.l.o(b,"cuechange",function(){a.G.remove(0,Math.max(0,a.h.currentTime-a.g.streaming.bufferBehind));var c=Array.from(b.activeCues||[]).map(Cn).filter(Yf);a.G.append(c)});b.mode=document.pictureInPictureElement?"showing":"hidden"}
700
- q.hf=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?0:c;if(this.i&&this.j&&!this.eb()){var d=this.i.variants.find(function(f){return f.id==a.id});if(d&&Ig(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)&&ab("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");Dp(this,d,!1,b,c);
701
+ q.gf=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?0:c;if(this.i&&this.j&&!this.eb()){var d=this.i.variants.find(function(f){return f.id==a.id});if(d&&Ig(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)&&ab("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");Dp(this,d,!1,b,c);
701
702
  this.Ia=new Vg(d,this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups);up(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,Dg(c)==a.id){Zp(this,c);break}};q.bj=function(){return $p(this.Jb())};q.Cj=function(){return $p(this.uc())};q.aj=function(){return Array.from(aq(this.Jb()))};q.Bj=function(){return Array.from(aq(this.uc()))};
702
703
  q.Rg=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.I&&!this.eb()){this.Ia=new Wg(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.Ia.create(this.i.variants);c=null;e=t(e.values());for(var f=e.next();!f.done;f=e.next())f=
703
- f.value,Ig(f)&&(!c||a(c,b)>a(f,b))&&(c=f);c!=b&&(c?(a=zg(c),this.hf(a,!0,d)):Vo(this))}else this.h&&this.h.audioTracks&&(d=Kg(this.Jb(),a,b||"",!1)[0])&&this.hf(d)};q.Sg=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.I&&!this.eb()){if(this.Kb=a,this.ae=b||"",this.Zd=c,(a=Kg(this.i.textStreams,this.Kb,this.ae,this.Zd)[0]||null)&&a!=this.j.u&&(Bl(this.A.h,a,!1),this.g.streaming.alwaysStreamText||this.Qc()))rm(this.j,a),Yp(this)}else(a=Kg(this.uc(),a,b||"",c)[0])&&this.Tg(a)};
704
+ f.value,Ig(f)&&(!c||a(c,b)>a(f,b))&&(c=f);c!=b&&(c?(a=zg(c),this.gf(a,!0,d)):Vo(this))}else this.h&&this.h.audioTracks&&(d=Kg(this.Jb(),a,b||"",!1)[0])&&this.gf(d)};q.Sg=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.I&&!this.eb()){if(this.Kb=a,this.ae=b||"",this.Zd=c,(a=Kg(this.i.textStreams,this.Kb,this.ae,this.Zd)[0]||null)&&a!=this.j.u&&(Bl(this.A.h,a,!1),this.g.streaming.alwaysStreamText||this.Sc()))rm(this.j,a),Yp(this)}else(a=Kg(this.uc(),a,b||"",c)[0])&&this.Tg(a)};
704
705
  q.Dk=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?0:c;if(this.i&&this.I&&!this.eb()){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.Ia=new Wg(d.language,"",0,"",!1,"",a,"",this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups,""),Vo(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,
705
- b)}};q.Qc=function(){var a=this.ra;return this.G?this.G.isTextVisible():a};q.Hh=function(){return this.h&&this.h.src&&this.h.textTracks?bq(this).map(function(a){return Fg(a)}):[]};
706
- q.kg=function(a){if(!this.h||!this.h.src||!this.h.textTracks)return[];var b=dd(a),c=bq(this).filter(function(h){return dd(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};
706
+ b)}};q.Sc=function(){var a=this.ra;return this.G?this.G.isTextVisible():a};q.Hh=function(){return this.h&&this.h.src&&this.h.textTracks?bq(this).map(function(a){return Fg(a)}):[]};
707
+ q.jg=function(a){if(!this.h||!this.h.src||!this.h.textTracks)return[];var b=dd(a),c=bq(this).filter(function(h){return dd(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};
707
708
  function Pp(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 bq(a){return Array.from(a.h.textTracks).filter(function(b){return"chapters"==b.kind})}
708
- q.kf=function(a){a=!!a;this.ra!=a&&(this.ra=a,this.m==Fp?(this.G.setTextVisibility(a),this.g.streaming.alwaysStreamText||(a?this.j.u||(a=Kg(this.i.textStreams,this.Kb,this.ae,this.Zd),0<a.length&&(rm(this.j,a[0]),Yp(this))):nm(this.j))):this.h&&this.h.src&&this.h.textTracks&&this.G.setTextVisibility(a),Lp(this))};
709
+ q.jf=function(a){a=!!a;this.ra!=a&&(this.ra=a,this.m==Fp?(this.G.setTextVisibility(a),this.g.streaming.alwaysStreamText||(a?this.j.u||(a=Kg(this.i.textStreams,this.Kb,this.ae,this.Zd),0<a.length&&(rm(this.j,a[0]),Yp(this))):nm(this.j))):this.h&&this.h.src&&this.h.textTracks&&this.G.setTextVisibility(a),Lp(this))};
709
710
  q.wj=function(){if(this.I)var a=this.I.le();else{if(null==this.na)return new Date;a=this.na}if(this.i&&!this.eb()){var b=this.i.presentationTimeline;return new Date(1E3*((b.m||b.i)+a))}return this.h&&this.h.getStartDate?(b=this.h.getStartDate(),isNaN(b.getTime())?null:new Date(b.getTime()+1E3*a)):null};q.Lh=function(){if(this.i&&!this.eb()){var a=this.i.presentationTimeline;return new Date(1E3*(a.m||a.i))}return this.h&&this.h.getStartDate?(a=this.h.getStartDate(),isNaN(a.getTime())?null:a):null};
710
711
  q.De=function(){return this.T()?this.i?this.i.presentationTimeline.De():null:null};q.Vb=function(){if(this.m==Fp)return this.K.Vb();var a={total:[],audio:[],video:[],text:[]};this.m==Qp&&(a.total=oj(this.h.buffered));return a};
711
712
  q.getStats=function(){if(this.m!=Fp&&this.m!=Qp)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,stallsDetected:NaN,gapsJumped:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,manifestSizeBytes:NaN,bytesDownloaded:NaN,nonFatalErrorCount:NaN,manifestPeriodCount:NaN,manifestGapCount:NaN,switchHistory:[],
712
713
  stateHistory:[]};zp(this);var a=this.h,b=a.currentTime/a.duration;if(!isNaN(b)&&!this.T()){var c=this.A;b=Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.I&&(this.A.S=this.I.kh(),this.A.V=this.I.lh());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.A;var d=Number(c.totalVideoFrames);b.P=Number(c.droppedVideoFrames);b.O=d;this.A.N=Number(c.corruptedVideoFrames)}this.C?(c=this.C,c=c.J?c.J:NaN):c=NaN;this.A.s=c;if(this.m==Fp){c=this.j.j;b=this.j.u;if(c){d=this.L?this.L.i:1;
713
- var e=d*c.bandwidth;b&&b.bandwidth&&(e+=d*b.bandwidth);this.A.A=e}c&&c.video&&(b=this.A,d=c.video.height||NaN,b.m=c.video.width||NaN,b.l=d);this.T()&&(c=this.Lh().valueOf()+1E3*a.currentTime,this.A.C=(Date.now()-c)/1E3);this.i&&(this.A.I=this.i.periodCount,this.A.H=this.i.gapCount,this.i.presentationTimeline&&(this.A.K=this.i.presentationTimeline.h));c=this.s.getBandwidthEstimate();this.A.u=c}this.m==Qp&&(c=this.A,c.Fc=isNaN(c.Fc)?NaN:c.Fc+NaN,c=this.A,b=a.videoHeight||NaN,c.m=a.videoWidth||NaN,c.l=
714
- b);var f=this.A;a=f.m;c=f.l;b=f.A;d=f.O;e=f.P;var g=f.N,h=f.V,k=f.S,l=f.u,m=f.i,n=f.G,p=f.J,r=f.j,u=yl(f.g,"playing"),v=yl(f.g,"paused"),w=yl(f.g,"buffering"),y=f.s,z=f.C,B=f.K,A=f.Th,C=f.Fc,D=f.L,E=f.I,H=f.H,J=zl(f.g),F=[];f=t(f.h.g);for(var K=f.next();!K.done;K=f.next())K=K.value,F.push({timestamp:K.timestamp,id:K.id,type:K.type,fromAdaptation:K.fromAdaptation,bandwidth:K.bandwidth});return{width:a,height:c,streamBandwidth:b,decodedFrames:d,droppedFrames:e,corruptedFrames:g,stallsDetected:h,gapsJumped:k,
714
+ var e=d*c.bandwidth;b&&b.bandwidth&&(e+=d*b.bandwidth);this.A.A=e}c&&c.video&&(b=this.A,d=c.video.height||NaN,b.m=c.video.width||NaN,b.l=d);this.T()&&(c=this.Lh().valueOf()+1E3*a.currentTime,this.A.C=(Date.now()-c)/1E3);this.i&&(this.A.I=this.i.periodCount,this.A.H=this.i.gapCount,this.i.presentationTimeline&&(this.A.K=this.i.presentationTimeline.h));c=this.s.getBandwidthEstimate();this.A.u=c}this.m==Qp&&(c=this.A,c.Gc=isNaN(c.Gc)?NaN:c.Gc+NaN,c=this.A,b=a.videoHeight||NaN,c.m=a.videoWidth||NaN,c.l=
715
+ b);var f=this.A;a=f.m;c=f.l;b=f.A;d=f.O;e=f.P;var g=f.N,h=f.V,k=f.S,l=f.u,m=f.i,n=f.G,p=f.J,r=f.j,u=yl(f.g,"playing"),v=yl(f.g,"paused"),w=yl(f.g,"buffering"),y=f.s,z=f.C,B=f.K,A=f.Th,C=f.Gc,D=f.L,E=f.I,H=f.H,J=zl(f.g),F=[];f=t(f.h.g);for(var K=f.next();!K.done;K=f.next())K=K.value,F.push({timestamp:K.timestamp,id:K.id,type:K.type,fromAdaptation:K.fromAdaptation,bandwidth:K.bandwidth});return{width:a,height:c,streamBandwidth:b,decodedFrames:d,droppedFrames:e,corruptedFrames:g,stallsDetected:h,gapsJumped:k,
715
716
  estimatedBandwidth:l,completionPercent:m,loadLatency:n,manifestTimeSeconds:p,drmTimeSeconds:r,playTime:u,pauseTime:v,bufferingTime:w,licenseTime:y,liveLatency:z,maxSegmentDuration:B,manifestSizeBytes:A,bytesDownloaded:C,nonFatalErrorCount:D,manifestPeriodCount:E,manifestGapCount:H,stateHistory:J,switchHistory:F}};
716
717
  q.Qi=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,p,r,u,v,w,y,z,B;return P(function(A){switch(A.g){case 1:if(h.m!=Fp&&h.m!=Qp)throw new U(1,7,7004);"subtitles"!=c&&"captions"!=c&&ab("Using a kind value different of `subtitles` or `captions` can cause unwanted issues.");if(d){A.B(2);break}return G(A,cq(h,a),3);case 3:d=A.h;case 2:k=[];h.u&&(k=h.u.getCuePoints());if(h.m!=Qp){A.B(4);break}g&&(c="forced");return G(A,dq(h,a,b,c,d,f||"",k),5);case 5:l=dd(b);m=h.uc();if(n=m.find(function(C){return dd(C.language)==
717
- l&&C.label==(f||"")&&C.kind==c}))return tp(h),A.return(n);throw new U(1,2,2012);case 4:p=Zc;r=h.h.duration;h.i&&(r=h.i.presentationTimeline.getDuration());if(Infinity==r)throw new U(1,4,4033);if(!k.length){A.B(6);break}return G(A,eq(h,a,h.H,h.g.streaming.retryParameters),7);case 7:u=A.h,v=fq(h,u,d,k),w=new Blob([v],{type:"text/vtt"}),a=ik(w),d="text/vtt";case 6:y={id:h.Bf++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:rl(0,r,[a]),mimeType:d||"",
718
+ l&&C.label==(f||"")&&C.kind==c}))return tp(h),A.return(n);throw new U(1,2,2012);case 4:p=Zc;r=h.h.duration;h.i&&(r=h.i.presentationTimeline.getDuration());if(Infinity==r)throw new U(1,4,4033);if(!k.length){A.B(6);break}return G(A,eq(h,a,h.H,h.g.streaming.retryParameters),7);case 7:u=A.h,v=fq(h,u,d,k),w=new Blob([v],{type:"text/vtt"}),a=ik(w),d="text/vtt";case 6:y={id:h.Af++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:rl(0,r,[a]),mimeType:d||"",
718
719
  codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,originalLanguage:b,label:f||null,type:p.Na,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([Af(d||"",e||"")])};z=Af(y.mimeType,y.codecs);B=Of(z);if(!B)throw new U(2,2,2014,d);h.i.textStreams.push(y);tp(h);return A.return(Ag(y))}})};
719
720
  q.Ri=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,B;return P(function(A){switch(A.g){case 1:if(c.m!=Fp&&c.m!=Qp)throw new U(1,7,7004);if(b){A.B(2);break}return G(A,cq(c,a),3);case 3:b=A.h;case 2:if("text/vtt"!=b)throw new U(1,2,2017,a);d=Zc;e=c.h.duration;c.i&&(e=c.i.presentationTimeline.getDuration());if(Infinity==e)throw new U(1,4,4045);return G(A,eq(c,a,c.H,c.g.streaming.retryParameters),4);case 4:f=A.h;g=Pf[b];if(!g)throw new U(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0,segmentEnd:e,
720
- vttOffset:0};l=Jb(f);m=h.parseMedia(l,k,a,[]);n=[];p=t(m);r=p.next();for(u={};!r.done;u={tf:void 0,dd:void 0},r=p.next())u.dd=r.value,u.tf=null,v=function(C){return function(){null==C.tf&&(C.tf=Qc([a],[C.dd.payload]));return C.tf||[]}}(u),w=new gj(u.dd.startTime,u.dd.endTime,v,0,null,null,0,0,Infinity),u.dd.payload.includes("#xywh")&&(y=u.dd.payload.split("#xywh=")[1].split(","),4===y.length&&w.ti({height:parseInt(y[3],10),positionX:parseInt(y[0],10),positionY:parseInt(y[1],10),width:parseInt(y[2],
721
- 10)})),n.push(w);z=b;if(!n.length){A.B(5);break}return G(A,vn(n[0].R()[0],c.H,c.g.manifest.retryParameters),6);case 6:z=A.h;case 5:return B={id:c.Bf++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new pl(n),mimeType:z||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:d.Cf,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,
721
+ vttOffset:0};l=Jb(f);m=h.parseMedia(l,k,a,[]);n=[];p=t(m);r=p.next();for(u={};!r.done;u={rf:void 0,dd:void 0},r=p.next())u.dd=r.value,u.rf=null,v=function(C){return function(){null==C.rf&&(C.rf=Qc([a],[C.dd.payload]));return C.rf||[]}}(u),w=new gj(u.dd.startTime,u.dd.endTime,v,0,null,null,0,0,Infinity),u.dd.payload.includes("#xywh")&&(y=u.dd.payload.split("#xywh=")[1].split(","),4===y.length&&w.ti({height:parseInt(y[3],10),positionX:parseInt(y[0],10),positionY:parseInt(y[1],10),width:parseInt(y[2],
722
+ 10)})),n.push(w);z=b;if(!n.length){A.B(5);break}return G(A,vn(n[0].R()[0],c.H,c.g.manifest.retryParameters),6);case 6:z=A.h;case 5:return B={id:c.Af++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new pl(n),mimeType:z||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:d.Bf,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,
722
723
  spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([Af(z||"","")])},c.m==Qp?c.be.push(B):c.i.imageStreams.push(B),tp(c),A.return(Bg(B))}})};
723
724
  q.Pi=function(a,b,c){var d=this,e,f,g,h;return P(function(k){switch(k.g){case 1:if(d.m!=Fp&&d.m!=Qp)throw new U(1,7,7004);if(c){k.B(2);break}return G(k,cq(d,a),3);case 3:c=k.h;case 2:return e=[],d.u&&(e=d.u.getCuePoints()),G(k,dq(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.Hh();h=g.find(function(l){return l.language==b});if(!h){k.B(5);break}return G(k,new Promise(function(l,m){d.l.sa(f,"load",l);d.l.sa(f,"error",function(){m(new U(1,2,2015))})}),6);case 6:return tp(d),k.return(h);case 5:throw new U(1,
724
725
  2,2012);}})};function cq(a,b){var c;return P(function(d){switch(d.g){case 1:return va(d,2),G(d,vn(b,a.H,a.g.streaming.retryParameters),4);case 4:c=d.h;xa(d,3);break;case 2:za(d);case 3:if(c)return d.return(c);throw new U(1,2,2011,b);}})}
725
726
  function dq(a,b,c,d,e,f,g){var h,k,l,m;return P(function(n){if(1==n.g)return"text/vtt"!=e||g.length?G(n,eq(a,b,a.H,a.g.streaming.retryParameters),3):n.B(2);2!=n.g&&(h=n.h,k=fq(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=ik(l),e="text/vtt");m=document.createElement("track");var p=a.P,r=b;try{if(p.g.enabled){var u=ao(p);u.ot=oo;u.su=!0;var v=fo(u);var w=go(r,v)}else w=r}catch(y){bb("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",y),w=r}m.src=w;m.label=f;m.kind=d;m.srclang=c;a.h.getAttribute("crossorigin")||
726
727
  a.h.setAttribute("crossorigin","anonymous");a.h.appendChild(m);return n.return(m)})}function eq(a,b,c,d){var e,f,g;return P(function(h){if(1==h.g){e=Jh;f=Dh([b],d);f.method="GET";var k=a.P;try{k.g.enabled&&ho(k,f,{ot:oo,su:!0})}catch(l){bb("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)})}
727
728
  function fq(a,b,c,d){var e=Pf[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.h.duration,vttOffset:0},b=Jb(b),b=c.parseMedia(b,a,null,[]),Sn(b,d);throw new U(2,2,2014,c);}q.Jk=function(a,b){this.ka.width=a;this.ka.height=b};q.Pg=function(a){if(this.m==Fp){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.Nd||d.gb||d.Sb||(d.Nd=!1,mm(b,d,a));b=!0}}else b=!1;return b};
728
- q.mg=function(){ab("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.sj=function(){return this.bb};
729
+ q.lg=function(){ab("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.sj=function(){return this.bb};
729
730
  q.lj=function(){var a={video:null,audio:null,text:null};if(this.m!=Fp)return a;var b=this.j.j,c=this.h.currentTime;b=t([b.video,b.audio,this.j.u]);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.segmentIndex){var e=d.segmentIndex.find(c);e=d.segmentIndex.get(e);e={codecs:e.codecs||d.codecs,mimeType:e.mimeType||d.mimeType,bandwidth:e.bandwidth||d.bandwidth};"video"==d.type?(e.width=d.width,e.height=d.height,a.video=e):"audio"==d.type?a.audio=e:d.type==Xc&&(a.text=e)}return a};
730
- function Bo(a){var b=Xm();b.streaming.failureCallback=function(c){if(a.T()){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.Pg(d))}};b.textDisplayFactory=function(){if(a.xf){var c=a.getConfiguration();return new Jn(a.h,a.xf,c.textDisplayer)}return HTMLMediaElement.prototype.addTextTrack?new Dn(a.h,"Shaka Player TextTrack"):new Fn};return b}q.ah=function(a){this.xf=a};
731
- function pp(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 sl,l=e.closedCaptions.get(g);h={id:a.Bf++,originalId:g,groupId:null,
731
+ function Bo(a){var b=Xm();b.streaming.failureCallback=function(c){if(a.T()){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.Pg(d))}};b.textDisplayFactory=function(){if(!a.wf||rc()&&!document.fullscreenEnabled)return HTMLMediaElement.prototype.addTextTrack?new Dn(a.h,"Shaka Player TextTrack"):new Fn;var c=a.getConfiguration();return new Jn(a.h,a.wf,c.textDisplayer)};return b}q.ah=function(a){this.wf=a};
732
+ function pp(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 sl,l=e.closedCaptions.get(g);h={id:a.Af++,originalId:g,groupId:null,
732
733
  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:Xc,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([Af(h,"")])};b.textStreams.push(h);c.add(g)}}
733
734
  function Jp(a,b){var c,d,e,f,g;return P(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n,p;return P(function(r){if(1==r.g)return k?G(r,k.createSegmentIndex(),2):r.return(null);n=(m=k.segmentIndex.cc(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)})}
734
735
  function fp(a){var b=a.Ie();if(a.A&&a.O&&a.I){var c=a.L;c.j=b;ul(c);a.P&&(c=a.P,b||c.l||(c.l=!0),c.l&&b&&(c.m=!0),c.s=b);zp(a);c=a.g.streaming.liveSync.dynamicTargetLatency.maxAttempts;if(a.g.streaming.liveSync.dynamicTargetLatency.enabled&&b&&a.ke<c){c=a.g.streaming.liveSync.dynamicTargetLatency.maxLatency;var d=a.g.streaming.liveSync.targetLatencyTolerance,e=a.g.streaming.liveSync.dynamicTargetLatency.rebufferIncrement;a.S&&(a.S=Math.min(a.S+ ++a.ke*e,c-d))}}b=(new Map).set("buffering",b);a.dispatchEvent(Yo("buffering",
735
736
  b))}function zp(a){if(a.A&&a.O){var b=a.A.g,c="playing";a.O.g==hh?c="buffering":a.h.ended?c="ended":a.h.paused&&(c="paused");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(Yo("statechanged",c)))}}
736
- function Np(a){var b=a.h.playbackRate,c=a.T();if(a.g.streaming.vodDynamicPlaybackRate&&!c){var d=a.g.streaming.vodDynamicPlaybackRateLowBufferRate,e=a.Gh();e<=a.g.streaming.vodDynamicPlaybackRateBufferRatio?b!=d&&a.Wc(d,!1):1==e&&b!==a.L.Jc()&&a.$c()}if(c&&(c=a.Ga(),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&&
737
- 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-
738
- 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.S||"number"!==typeof g||(a.S=g);var n=a.g.streaming.liveSync.dynamicTargetLatency.maxAttempts;e&&a.Ja&&null!==a.S&&"number"===typeof g&&a.ke<n&&Date.now()-a.Ja>1E3*f&&(f=a.g.streaming.liveSync.dynamicTargetLatency.minLatency,a.S=Math.max(a.S-(g-f)/2,f+d),
739
- a.Ja=Date.now());e&&null!==a.S&&(h=a.S+d,k=a.S-d);g=c.end-a.h.currentTime;d=0;a.m==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.O.h;c&&!m&&(m=a.g.streaming.liveSync.minPlaybackRate);c&&m&&f<=e?b!=m&&a.Wc(m,!1):h&&l&&g-d>h?(b!=l&&a.Wc(l,!1),a.Ja=null):k&&m&&g-d<k?(b!=m&&a.Wc(m,!1),a.Ja=null):b!==a.L.Jc()&&(a.$c(),a.Ja=Date.now())}}
740
- 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.V)?(a.V=c,b=!0):(c=Math.max(a.V,c),a.V!=c&&(a.V=c,b=!0)));if(b){var d;0==a.V?d=Yo("started"):25==a.V?d=Yo("firstquartile"):50==a.V?d=Yo("midpoint"):75==a.V?d=Yo("thirdquartile"):100==a.V&&(d=Yo("complete"));d&&a.dispatchEvent(d)}}}function up(a){try{Wi(a.vf,a.i)}catch(c){return dp(a,c),!1}var b=Jg(a.i.variants);b=a.Ia.create(b);a.s.setVariants(Array.from(b.values()));return!0}
737
+ function Np(a){var b=a.h.playbackRate,c=a.T();if(a.g.streaming.vodDynamicPlaybackRate&&!c){var d=a.g.streaming.vodDynamicPlaybackRateLowBufferRate,e=a.Gh();e<=a.g.streaming.vodDynamicPlaybackRateBufferRatio?b!=d&&a.Ec(d,!1):1==e&&b!==a.L.Lc()&&a.Hc()}if(c&&(c=a.Ga(),Number.isFinite(c.end)&&!(a.h.currentTime<c.start||a.h.paused))){d=a.g.streaming.liveSync.targetLatencyTolerance;e=a.g.streaming.liveSync.dynamicTargetLatency.enabled;var f=a.g.streaming.liveSync.dynamicTargetLatency.stabilityThreshold;
738
+ if(a.g.streaming.liveSync&&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?
739
+ k=Math.max(0,a.i.serviceDescription.targetLatency-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.S||"number"!==typeof g||(a.S=g);var n=a.g.streaming.liveSync.dynamicTargetLatency.maxAttempts;e&&a.Ja&&null!==a.S&&"number"===typeof g&&a.ke<n&&Date.now()-a.Ja>1E3*f&&(f=a.g.streaming.liveSync.dynamicTargetLatency.minLatency,
740
+ a.S=Math.max(a.S-(g-f)/2,f+d),a.Ja=Date.now());e&&null!==a.S&&(h=a.S+d,k=a.S-d);g=c.end-a.h.currentTime;d=0;a.m==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.O.h;c&&!m&&(m=a.g.streaming.liveSync.minPlaybackRate);c&&m&&f<=e?b!=m&&a.Ec(m,!1):h&&l&&g-d>h?(b!=l&&a.Ec(l,!1),a.Ja=null):k&&m&&g-d<k?(b!=m&&a.Ec(m,!1),a.Ja=null):b!==a.L.Lc()&&(a.Hc(),a.Ja=Date.now())}}
741
+ 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.V)?(a.V=c,b=!0):(c=Math.max(a.V,c),a.V!=c&&(a.V=c,b=!0)));if(b){var d;0==a.V?d=Yo("started"):25==a.V?d=Yo("firstquartile"):50==a.V?d=Yo("midpoint"):75==a.V?d=Yo("thirdquartile"):100==a.V&&(d=Yo("complete"));d&&a.dispatchEvent(d)}}}function up(a){try{Wi(a.uf,a.i)}catch(c){return dp(a,c),!1}var b=Jg(a.i.variants);b=a.Ia.create(b);a.s.setVariants(Array.from(b.values()));return!0}
741
742
  function Vo(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;(f=up(a)?a.s.chooseVariant():null)&&Dp(a,f,e,b,c,d)}
742
743
  function Dp(a,b,c,d,e,f){f=void 0===f?!1:f;var g=a.j.j;if(b==g)d&&qm(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}));qm(a.j,b,d,e,f,c);d=null;g&&(d=zg(g));b=zg(b);b.active=!0;c?(c=(new Map).set("oldTrack",d).set("newTrack",b),a.N&&ek(a.N,b,a.Be()),c=Yo("adaptation",c),gq(a,c)):hq(a,d,b)}}
743
744
  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=Hg(c),b=Hg(b),hq(a,c,b))}function Kp(a,b,c){if(0==a.g.autoShowText)return!1;if(1==a.g.autoShowText)return!0;var d=dd(a.g.preferredTextLanguage);c=dd(c.language);if(2==a.g.autoShowText)return bd(c,d);if(3==a.g.autoShowText){if(!b)return!1;a=dd(b.language);return bd(c,d)&&!bd(a,c)}ab("Invalid autoShowText setting!");return!1}
744
745
  function tp(a){var b=Yo("trackschanged");gq(a,b)}function hq(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);a.N&&ek(a.N,c,a.Be());c=Yo("variantchanged",b);gq(a,c)}function Yp(a){var b=Yo("textchanged");gq(a,b)}function Lp(a){var b=Yo("texttrackvisibility");gq(a,b)}function Mp(a){a.g.abr.enabled||Uo(a);var b=(new Map).set("newStatus",a.g.abr.enabled);gq(a,Yo("abrstatuschanged",b))}
745
- function Uo(a,b){b=void 0===b?!0:b;if(a.m==Fp){a.zf.stop();for(var c=t(a.i.variants),d=c.next();!d.done;d=c.next())d.value.disabledUntilTime=0;b&&up(a)}}
746
- q.disableStream=function(a,b){if(!this.g.abr.enabled||this.m===Zo||!navigator.onLine||0==b||!this.i)return!1;if(this.i.variants.some(function(h){var k=h[a.type];return k&&k.id!==a.id&&!h.disabledUntilTime?"audio"==a.type?a.language===k.language:!0:!1})){for(var c=!1,d=!1,e=t(this.i.variants),f=e.next();!f.done;f=e.next()){f=f.value;var g=f[a.type];g&&(g.id===a.id?(f.disabledUntilTime=Date.now()/1E3+b,c=!0):g.trickModeVideo&&g.trickModeVideo.id==a.id&&(d=!0))}if(!c&&d)return!1;this.zf.Aa(1);b=this.Vb().video.reduce(function(h,
746
+ function Uo(a,b){b=void 0===b?!0:b;if(a.m==Fp){a.yf.stop();for(var c=t(a.i.variants),d=c.next();!d.done;d=c.next())d.value.disabledUntilTime=0;b&&up(a)}}
747
+ q.disableStream=function(a,b){if(!this.g.abr.enabled||this.m===Zo||!navigator.onLine||0==b||!this.i)return!1;if(this.i.variants.some(function(h){var k=h[a.type];return k&&k.id!==a.id&&!h.disabledUntilTime?"audio"==a.type?a.language===k.language:!0:!1})){for(var c=!1,d=!1,e=t(this.i.variants),f=e.next();!f.done;f=e.next()){f=f.value;var g=f[a.type];g&&(g.id===a.id?(f.disabledUntilTime=Date.now()/1E3+b,c=!0):g.trickModeVideo&&g.trickModeVideo.id==a.id&&(d=!0))}if(!c&&d)return!1;this.yf.Aa(1);b=this.Vb().video.reduce(function(h,
747
748
  k){return h+k.end-k.start},0);Vo(this,!1,b,!0,!1);return!0}return!1};
748
749
  function dp(a,b){var c,d,e,f;return P(function(g){switch(g.g){case 1:if(a.m==Zo)return g.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){g.B(2);break}va(g,3);return G(g,Lm(a.j),5);case 5:d=g.h;c=!d;d&&(e=Yo("mediasourcerecovered"),a.dispatchEvent(e));xa(g,2);break;case 3:za(g),c=!0;case 2:if(!c)return g.return();2===b.severity&&Uo(a,!1);f=Yo("error",(new Map).set("detail",b));a.dispatchEvent(f);f.defaultPrevented&&(b.handled=!0);
749
750
  I(g)}})}q.addFont=function(a,b){var c,d,e,f,g;return P(function(h){if(1==h.g)return"fonts"in document&&"FontFace"in window?G(h,document.fonts.ready,3):h.B(0);if(!("entries"in document.fonts))return h.return();c=function(k){k=k.entries();for(var l=[],m=k.next();!1===m.done;)l.push(m.value),m=k.next();return l};d=t(c(document.fonts));for(e=d.next();!e.done;e=d.next())if(f=e.value,f.family==a&&"swap"==f.display)return h.return();g=new FontFace(a,"url("+b+")",{display:"swap"});document.fonts.add(g);I(h)})};
@@ -752,16 +753,16 @@ function sp(a,b,c,d){d=void 0===d?!1:d;b=(new Map).set("mediaQuality",{bandwidth
752
753
  function cp(a,b){b=void 0===b?!0:b;if(!a.h.error)return b?new U(2,3,3016):null;var c=a.h.error.code;if(!b&&1==c)return null;if(b=a.h.error.msExtendedCode)0>b&&(b+=Math.pow(2,32)),b=b.toString(16);return new U(2,3,3016,c,b,a.h.error.message)}function Cp(a,b,c){0<b&&(a.T()||a.xi(b));b=a.getDuration();c<b&&(a.T()||a.vb(c))}function gq(a,b){P(function(c){if(1==c.g)return G(c,Promise.resolve(),2);a.m!=Zo&&a.dispatchEvent(b);I(c)})}
753
754
  function aq(a){var b=new Set;a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(dd(c.language)):b.add("und");return b}
754
755
  function $p(a){var b=new Map,c=new Map;a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="und",f=[];d.language&&(e=dd(d.language));"variant"==d.type?f=d.audioRoles:f=d.roles;f&&f.length||(f=[""]);b.has(e)||b.set(e,new Set);f=t(f);for(var g=f.next();!g.done;g=f.next())g=g.value,b.get(e).add(g),d.label&&(c.has(e)||c.set(e,new Map),c.get(e).set(g,d.label))}var h=[];b.forEach(function(k,l){k=t(k);for(var m=k.next();!m.done;m=k.next()){m=m.value;var n=null;c.has(l)&&c.get(l).has(m)&&(n=c.get(l).get(m));
755
- h.push({language:l,role:m,label:n})}});return h}q.eb=function(){return this.h&&this.h.remote?"disconnected"!=this.h.remote.state:!1};R("shaka.Player",X);X.prototype.isRemotePlayback=X.prototype.eb;X.prototype.addFont=X.prototype.addFont;X.prototype.setVideoContainer=X.prototype.ah;X.prototype.getFetchedPlaybackInfo=X.prototype.lj;X.prototype.getManifestParserFactory=X.prototype.sj;X.prototype.getManifest=X.prototype.mg;X.prototype.retryStreaming=X.prototype.Pg;
756
- X.prototype.setMaxHardwareResolution=X.prototype.Jk;X.prototype.addChaptersTrack=X.prototype.Pi;X.prototype.addThumbnailsTrack=X.prototype.Ri;X.prototype.addTextTrackAsync=X.prototype.Qi;X.prototype.getStats=X.prototype.getStats;X.prototype.getBufferedInfo=X.prototype.Vb;X.prototype.getSegmentAvailabilityDuration=X.prototype.De;X.prototype.getPresentationStartTimeAsDate=X.prototype.Lh;X.prototype.getPlayheadTimeAsDate=X.prototype.wj;X.prototype.setTextTrackVisibility=X.prototype.kf;
757
- X.prototype.getChapters=X.prototype.kg;X.prototype.getChaptersTracks=X.prototype.Hh;X.prototype.isTextTrackVisible=X.prototype.Qc;X.prototype.selectVariantsByLabel=X.prototype.Dk;X.prototype.selectTextLanguage=X.prototype.Sg;X.prototype.selectAudioLanguage=X.prototype.Rg;X.prototype.getTextLanguages=X.prototype.Bj;X.prototype.getAudioLanguages=X.prototype.aj;X.prototype.getTextLanguagesAndRoles=X.prototype.Cj;X.prototype.getAudioLanguagesAndRoles=X.prototype.bj;X.prototype.selectVariantTrack=X.prototype.hf;
758
- X.prototype.selectTextTrack=X.prototype.Tg;X.prototype.getThumbnails=X.prototype.og;X.prototype.getAllThumbnails=X.prototype.$i;X.prototype.getImageTracks=X.prototype.ze;X.prototype.getTextTracks=X.prototype.uc;X.prototype.getVariantTracks=X.prototype.Jb;X.prototype.cancelTrickPlay=X.prototype.$c;X.prototype.trickPlay=X.prototype.Wc;X.prototype.getPlaybackRate=X.prototype.Va;X.prototype.isBuffering=X.prototype.Ie;X.prototype.getKeyStatuses=X.prototype.Ae;X.prototype.getActiveSessionsMetadata=X.prototype.jg;
759
- X.prototype.getExpiration=X.prototype.Jd;X.prototype.drmInfo=X.prototype.drmInfo;X.prototype.keySystem=X.prototype.keySystem;X.prototype.isFullyLoaded=X.prototype.Qh;X.prototype.goToLive=X.prototype.Lj;X.prototype.seekRange=X.prototype.Ga;X.prototype.isAudioOnly=X.prototype.Oc;X.prototype.isInProgress=X.prototype.Pc;X.prototype.isLive=X.prototype.T;X.prototype.getAdManager=X.prototype.ye;X.prototype.getAssetUri=X.prototype.hd;X.prototype.getNetworkingEngine=X.prototype.Gb;
760
- X.prototype.getMediaElement=X.prototype.vj;X.prototype.getManifestType=X.prototype.Be;X.prototype.getLoadMode=X.prototype.jd;X.prototype.resetConfiguration=X.prototype.wk;X.prototype.getBufferFullness=X.prototype.Gh;X.prototype.getNonDefaultConfiguration=X.prototype.Kh;X.prototype.getConfiguration=X.prototype.getConfiguration;X.prototype.configure=X.prototype.configure;X.prototype.releaseAllMutexes=X.prototype.qk;X.prototype.destroyAllPreloads=X.prototype.Tf;X.prototype.preload=X.prototype.preload;
756
+ h.push({language:l,role:m,label:n})}});return h}q.eb=function(){return this.h&&this.h.remote?"disconnected"!=this.h.remote.state:!1};R("shaka.Player",X);X.prototype.isRemotePlayback=X.prototype.eb;X.prototype.addFont=X.prototype.addFont;X.prototype.setVideoContainer=X.prototype.ah;X.prototype.getFetchedPlaybackInfo=X.prototype.lj;X.prototype.getManifestParserFactory=X.prototype.sj;X.prototype.getManifest=X.prototype.lg;X.prototype.retryStreaming=X.prototype.Pg;
757
+ X.prototype.setMaxHardwareResolution=X.prototype.Jk;X.prototype.addChaptersTrack=X.prototype.Pi;X.prototype.addThumbnailsTrack=X.prototype.Ri;X.prototype.addTextTrackAsync=X.prototype.Qi;X.prototype.getStats=X.prototype.getStats;X.prototype.getBufferedInfo=X.prototype.Vb;X.prototype.getSegmentAvailabilityDuration=X.prototype.De;X.prototype.getPresentationStartTimeAsDate=X.prototype.Lh;X.prototype.getPlayheadTimeAsDate=X.prototype.wj;X.prototype.setTextTrackVisibility=X.prototype.jf;
758
+ X.prototype.getChapters=X.prototype.jg;X.prototype.getChaptersTracks=X.prototype.Hh;X.prototype.isTextTrackVisible=X.prototype.Sc;X.prototype.selectVariantsByLabel=X.prototype.Dk;X.prototype.selectTextLanguage=X.prototype.Sg;X.prototype.selectAudioLanguage=X.prototype.Rg;X.prototype.getTextLanguages=X.prototype.Bj;X.prototype.getAudioLanguages=X.prototype.aj;X.prototype.getTextLanguagesAndRoles=X.prototype.Cj;X.prototype.getAudioLanguagesAndRoles=X.prototype.bj;X.prototype.selectVariantTrack=X.prototype.gf;
759
+ X.prototype.selectTextTrack=X.prototype.Tg;X.prototype.getThumbnails=X.prototype.ng;X.prototype.getAllThumbnails=X.prototype.$i;X.prototype.getImageTracks=X.prototype.ze;X.prototype.getTextTracks=X.prototype.uc;X.prototype.getVariantTracks=X.prototype.Jb;X.prototype.cancelTrickPlay=X.prototype.Hc;X.prototype.trickPlay=X.prototype.Ec;X.prototype.getPlaybackRate=X.prototype.Va;X.prototype.isBuffering=X.prototype.Ie;X.prototype.getKeyStatuses=X.prototype.Ae;X.prototype.getActiveSessionsMetadata=X.prototype.ig;
760
+ X.prototype.getExpiration=X.prototype.Jd;X.prototype.drmInfo=X.prototype.drmInfo;X.prototype.keySystem=X.prototype.keySystem;X.prototype.isFullyLoaded=X.prototype.Qh;X.prototype.goToLive=X.prototype.Lj;X.prototype.seekRange=X.prototype.Ga;X.prototype.isAudioOnly=X.prototype.Qc;X.prototype.isInProgress=X.prototype.Rc;X.prototype.isLive=X.prototype.T;X.prototype.getAdManager=X.prototype.ye;X.prototype.getAssetUri=X.prototype.hd;X.prototype.getNetworkingEngine=X.prototype.Gb;
761
+ X.prototype.getMediaElement=X.prototype.vj;X.prototype.getManifestType=X.prototype.Be;X.prototype.getLoadMode=X.prototype.jd;X.prototype.resetConfiguration=X.prototype.wk;X.prototype.getBufferFullness=X.prototype.Gh;X.prototype.getNonDefaultConfiguration=X.prototype.Kh;X.prototype.getConfiguration=X.prototype.getConfiguration;X.prototype.configure=X.prototype.configure;X.prototype.releaseAllMutexes=X.prototype.qk;X.prototype.destroyAllPreloads=X.prototype.Sf;X.prototype.preload=X.prototype.preload;
761
762
  X.prototype.detachAndSavePreload=X.prototype.Ch;X.prototype.unloadAndSavePreload=X.prototype.Nk;X.prototype.load=X.prototype.load;X.prototype.updateStartTime=X.prototype.Rk;X.prototype.unload=X.prototype.nc;X.prototype.detach=X.prototype.detach;X.prototype.attachCanvas=X.prototype.oh;X.prototype.attach=X.prototype.$b;
762
763
  X.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g,h;return P(function(k){switch(k.g){case 1:b={};if(!a){k.B(2);break}return G(k,Oi(),3);case 3:b=k.h;case 2:var l={};if(Yb())for(var m in $i)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]=Yb()?!!$i[n]:Zb(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(Bf));
763
764
  l={};m=t(m);for(n=m.next();!n.done;n=m.next()){n=n.value;l[n]=Of(n)?!0:Yb()?zd(n)||(uf(n)?!0:!1):Zb(n);var p=n.split(";")[0];l[p]=l[p]||l[n]}d=l;return G(k,yc(),4);case 4:e=k.h;f={manifest:c,media:d,drm:b,hardwareResolution:e};g=iq;for(h in g)f[h]=g[h]();return k.return(f)}})};X.isBrowserSupported=$o;X.setAdManagerFactory=function(a){Eo=a};X.registerSupportPlugin=function(a,b){iq[a]=b};X.prototype.destroy=X.prototype.destroy;var Zo=0,Ao=1,Fp=2,Qp=3;
764
- X.LoadMode={DESTROYED:Zo,NOT_LOADED:Ao,MEDIA_SOURCE:Fp,SRC_EQUALS:Qp};X.version="v4.11.12";var jq=["4","11"];Ed=new function(a){this.g=a;this.i=Fd;this.h=Gd}(new Cd(Number(jq[0]),Number(jq[1])));var iq={},Eo=null;function kq(){this.g=[];this.i=this.l=this.j=this.h=0}function lq(a){return a.g.length?a.g.reduce(function(b,c){return b+c},0)/a.g.length:0};function mq(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 ud;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=mq.prototype;q.needsSkipUI=function(){return!1};q.isClientRendering=function(){return!0};q.getDuration=function(){return this.g.getDuration()};q.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};q.getRemainingTime=function(){return this.h.getRemainingTime()};
765
+ X.LoadMode={DESTROYED:Zo,NOT_LOADED:Ao,MEDIA_SOURCE:Fp,SRC_EQUALS:Qp};X.version="v4.11.13";var jq=["4","11"];Ed=new function(a){this.g=a;this.i=Fd;this.h=Gd}(new Cd(Number(jq[0]),Number(jq[1])));var iq={},Eo=null;function kq(){this.g=[];this.i=this.l=this.j=this.h=0}function lq(a){return a.g.length?a.g.reduce(function(b,c){return b+c},0)/a.g.length:0};function mq(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 ud;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=mq.prototype;q.needsSkipUI=function(){return!1};q.isClientRendering=function(){return!0};q.getDuration=function(){return this.g.getDuration()};q.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};q.getRemainingTime=function(){return this.h.getRemainingTime()};
765
766
  q.isPaused=function(){return this.i};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)};
766
767
  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)};
767
768
  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()};
@@ -774,7 +775,7 @@ function oq(a,b){var c=[],d=0;null!=b&&(d=b);a=t(oe(a,"Ad"));for(var e=a.next();
774
775
  0)-(parseInt(k.attributes.height,10)||0)});g=t(g);for(h=g.next();!h.done;h=g.next())if(h=pe(h.value)){c.push({id:null,startTime:d,endTime:null,uri:h,isSkippable:null!=f,skipOffset:f,canJump:!1,resumeOffset:0,playoutLimit:null,once:!0,pre:null==b,post:Infinity==b,timelineRange:!1});break}}}}return c}R("shaka.ads.Utils",nq);nq.ADS_LOADED="ads-loaded";nq.AD_STARTED="ad-started";nq.AD_FIRST_QUARTILE="ad-first-quartile";nq.AD_MIDPOINT="ad-midpoint";nq.AD_THIRD_QUARTILE="ad-third-quartile";
775
776
  nq.AD_COMPLETE="ad-complete";nq.AD_STOPPED="ad-stopped";nq.AD_SKIPPED="ad-skipped";nq.AD_VOLUME_CHANGED="ad-volume-changed";nq.AD_MUTED="ad-muted";nq.AD_PAUSED="ad-paused";nq.AD_RESUMED="ad-resumed";nq.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";nq.CUEPOINTS_CHANGED="ad-cue-points-changed";nq.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";nq.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";nq.AD_CLICKED="ad-clicked";nq.AD_PROGRESS="ad-progress";nq.AD_BUFFERING="ad-buffering";
776
777
  nq.AD_IMPRESSION="ad-impression";nq.AD_DURATION_CHANGED="ad-duration-changed";nq.AD_CLOSED="ad-closed";nq.AD_LOADED="ad-loaded";nq.ALL_ADS_COMPLETED="all-ads-completed";nq.AD_LINEAR_CHANGED="ad-linear-changed";nq.AD_METADATA="ad-metadata";nq.AD_RECOVERABLE_ERROR="ad-recoverable-error";nq.AD_ERROR="ad-error";nq.AD_BREAK_READY="ad-break-ready";nq.AD_INTERACTION="ad-interaction";nq.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";nq.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";
777
- nq.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function pq(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 ud;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.11.12");this.g=null;this.C=d||new google.ima.AdsRenderingSettings;this.h.o(this.m,
778
+ nq.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function pq(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 ud;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.11.13");this.g=null;this.C=d||new google.ima.AdsRenderingSettings;this.h.o(this.m,
778
779
  google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(g){qq(f,g)});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){rq(f,g)});this.h.o(this.i,"ended",function(){f.m.contentComplete()});this.h.sa(this.i,"play",function(){f.H=!0})}pq.prototype.configure=function(a){this.s=a};pq.prototype.stop=function(){this.g&&this.g.stop();this.u&&In(this.u)};
779
780
  pq.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 rq(a,b){b.getError();b=(new Map).set("originalEvent",b);a.l(new T("ad-error",b));sq(a,null);a.l(new T("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
780
781
  function qq(a,b){a.l(new T("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 T("ima-ad-manager-loaded",(new Map).set("imaAdManager",
@@ -797,14 +798,14 @@ wq.prototype.getRemainingTime=wq.prototype.getRemainingTime;wq.prototype.getMinS
797
798
  0,f.G);k&&zq(f,k,1,1,Date.now())}});this.L=new Xb(e);if("requestVideoFrameCallback"in this.g&&!uc()){var g=this.g,h=function(){e();g.requestVideoFrameCallback(h)};g.requestVideoFrameCallback(h)}else this.L.Aa(.025);this.P=(new Xb(function(){var k,l,m,n,p,r,u,v,w,y,z;return P(function(B){switch(B.g){case 1:if(!f.C.size||null==f.j){B.B(0);break}k=f.A.jd();if(k==Zo||k==Ao)return B.return();l=!1;m=Array.from(f.C);n=f.A.Ga();p=t(m);r=p.next();case 3:if(r.done){B.B(5);break}u=r.value;if(u==f.G){B.B(4);
798
799
  break}v=u.endTime||u.startTime;if(!(1<=n.start-v)){w=u.startTime-f.j;0<w&&10>=w&&(f.s.has(u)||f.s.set(u,f.i.preload(u.uri)));B.B(4);break}if(!f.s.has(u)){B.B(7);break}return G(B,f.s.get(u),8);case 8:(y=B.h)&&y.destroy(),f.s.delete(u);case 7:z=JSON.stringify(u),f.K.has(z)&&f.K.delete(z),f.C.delete(u),l=!0;case 4:r=p.next();B.B(3);break;case 5:l&&Bq(f),I(B)}})})).Aa(1)}xq.prototype.configure=function(a){this.N=a;Cq(this)};
799
800
  function Cq(a){if(a.I&&a.N&&!a.J){var b=a.N.supportsMultipleMediaElements,c=a.g;c.webkitSupportsFullscreen&&c.webkitDisplayingFullscreen&&(b=!1);a.u==b&&(a.u=!b,a.u?(a.l=a.g,a.H&&(a.H.parentElement&&a.I.removeChild(a.H),a.H=null)):(a.H||(b=document.createElement(a.g.tagName),b.autoplay=!0,b.style.position="absolute",b.style.top="0",b.style.left="0",b.style.width="100%",b.style.height="100%",b.style.backgroundColor="rgb(0, 0, 0)",b.setAttribute("playsinline",""),a.H=b),a.l=a.H))}}
800
- xq.prototype.stop=function(){this.m&&this.m.Za();this.K.clear();this.C.clear();this.i.Tf();this.s.clear();this.i.detach();this.J=!1;this.G=this.j=null};xq.prototype.release=function(){this.stop();this.O&&this.O.release();this.m&&this.m.release();this.I&&In(this.I);this.L&&(this.L.stop(),this.L=null);this.P&&(this.P.stop(),this.P=null);this.i.destroy()};function Dq(a,b){var c;P(function(d){if(1==d.g)return Aq(a),G(d,Eq(a,b),2);c=d.h;c.length?Fq(a,c):ab("Unsupported HLS interstitial",b);I(d)})}
801
- xq.prototype.addAdUrlInterstitial=function(a){var b=this,c,d,e,f,g,h,k,l,m;return P(function(n){switch(n.g){case 1:return c={type:12},G(n,Gq(b,a,c),2);case 2:d=n.h;e=de(d,"VAST,vmap:VMAP");if(!e)throw new U(2,10,4001);f=[];if("VAST"==e.tagName){f=oq(e,b.j);n.B(3);break}if("vmap:VMAP"!=e.tagName){n.B(3);break}for(var p=[],r=t(oe(e,"vmap:AdBreak")),u=r.next();!u.done;u=r.next()){var v=u.value,w=v.attributes.timeOffset;w&&(u=null,"start"==w?u=0:"end"==w?u=Infinity:u=ae(w),(v=se(v,"vmap:AdSource"))&&
802
- (v=se(v,"vmap:AdTagURI"))&&(v=pe(v))&&p.push({time:u,uri:v}))}g=t(p);h=g.next();case 5:if(h.done){n.B(3);break}k=h.value;return G(n,Gq(b,k.uri,c),8);case 8:l=n.h;m=de(l,"VAST");if(!m)throw new U(2,10,4001);f.push.apply(f,x(oq(m,k.time)));h=g.next();n.B(5);break;case 3:Fq(b,f),I(n)}})};
801
+ xq.prototype.stop=function(){this.m&&this.m.Za();this.K.clear();this.C.clear();this.i.Sf();this.s.clear();this.i.detach();this.J=!1;this.G=this.j=null};xq.prototype.release=function(){this.stop();this.O&&this.O.release();this.m&&this.m.release();this.I&&In(this.I);this.L&&(this.L.stop(),this.L=null);this.P&&(this.P.stop(),this.P=null);this.i.destroy()};function Dq(a,b){var c;P(function(d){if(1==d.g)return Aq(a),G(d,Eq(a,b),2);c=d.h;c.length?Fq(a,c):ab("Unsupported HLS interstitial",b);I(d)})}
802
+ xq.prototype.addAdUrlInterstitial=function(a){var b=this,c,d,e,f,g,h,k,l,m;return P(function(n){switch(n.g){case 1:return c={type:12},G(n,Gq(b,a,c),2);case 2:d=n.h;e=de(d,"VAST,vmap:VMAP");if(!e)throw new U(2,10,10007);f=[];if("VAST"==e.tagName){f=oq(e,b.j);n.B(3);break}if("vmap:VMAP"!=e.tagName){n.B(3);break}for(var p=[],r=t(oe(e,"vmap:AdBreak")),u=r.next();!u.done;u=r.next()){var v=u.value,w=v.attributes.timeOffset;w&&(u=null,"start"==w?u=0:"end"==w?u=Infinity:u=ae(w),(v=se(v,"vmap:AdSource"))&&
803
+ (v=se(v,"vmap:AdTagURI"))&&(v=pe(v))&&p.push({time:u,uri:v}))}g=t(p);h=g.next();case 5:if(h.done){n.B(3);break}k=h.value;return G(n,Gq(b,k.uri,c),8);case 8:l=n.h;m=de(l,"VAST");if(!m)throw new U(2,10,10007);f.push.apply(f,x(oq(m,k.time)));h=g.next();n.B(5);break;case 3:Fq(b,f),I(n)}})};
803
804
  function Fq(a,b){var c=!1;b=t(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=d.id||JSON.stringify(d);if(!a.K.has(e)){c=!0;a.K.add(e);a.C.add(d);e=!1;if(d.pre&&null==a.j)e=!0;else if(0==d.startTime&&!d.canJump)e=!0;else if(null!=a.j){var f=d.startTime-a.j;0<f&&10>=f&&(e=!0)}e&&(a.s.has(d)||a.s.set(d,a.i.preload(d.uri)))}}c&&Bq(a)}
804
- function yq(a,b,c,d){var e=0,f=null;if(a.C.size&&null!=a.j){var g=a.g.ended,h=Array.from(a.C).sort(function(n,p){return p.startTime-n.startTime});h=t(h);for(var k=h.next();!k.done;k=h.next()){k=k.value;var l=!1;if(b)l=k.pre;else if(g)l=k.post;else if(!k.pre&&!k.post){var m=a.j-Math.round(1E3*k.startTime)/1E3;0<m&&(1>=m||!k.canJump)&&(l=1<m&&d&&!d.pre&&!d.post&&d.startTime>=k.startTime?!1:!0)}if(l){if(e==c){f=k;break}e++}}}return f}
805
+ function yq(a,b,c,d){var e=0,f=null;if(a.C.size&&null!=a.j){var g=a.g.ended,h=Array.from(a.C).sort(function(n,p){return p.startTime-n.startTime});h=t(h);for(var k=h.next();!k.done;k=h.next()){k=k.value;var l=!1;if(b)l=k.pre;else if(g)l=k.post;else if(!k.pre&&!k.post){var m=a.j-Math.round(1E3*k.startTime)/1E3;0<m&&(1>=m||!k.canJump)&&(l=d&&!d.pre&&!d.post&&d.startTime>=k.startTime?!1:!0)}if(l){if(e==c){f=k;break}e++}}}return f}
805
806
  function zq(a,b,c,d,e,f){f=void 0===f?0:f;var g,h,k,l,m,n,p,r,u,v,w,y,z,B,A,C;P(function(D){switch(D.g){case 1:Cq(a);a.G=b;g=Date.now();!a.l.parentElement&&a.I&&a.I.appendChild(a.l);1==d&&1==c&&(c=Array.from(a.C).filter(function(E){return b.pre?E.pre==b.pre:b.post?E.post==b.post:.001>Math.abs(E.startTime-b.startTime)}).length);if(b.once||b.pre)f++,a.C.delete(b),Bq(a);a.J=!0;if(!a.u||1!=d){D.B(2);break}a.h(new T("ad-content-pause-requested",(new Map).set("saveLivePosition",!0)));h=new mh;k=function(E){return P(function(H){if(1==
806
807
  H.g)return"detach"!=E.state?H.B(0):uc()?G(H,new Promise(function(J){return(new Xb(J)).X(.1)}),3):H.B(3);h.resolve();a.m.Ma(a.A,"onstatechange",k);I(H)})};a.m.o(a.A,"onstatechange",k);return G(D,h,2);case 2:return a.u||(a.g.pause(),null!=b.resumeOffset&&0!=b.resumeOffset&&(a.g.currentTime+=b.resumeOffset)),l=!1,m=null,n=function(){if(!a.u&&null==b.resumeOffset)if(b.timelineRange&&b.endTime&&Infinity!=b.endTime)a.g.currentTime!=b.endTime&&(a.g.currentTime=b.endTime);else{var E=Date.now();a.g.currentTime+=
807
- (E-e)/1E3;e=E}},p=function(){var E,H;return P(function(J){if(1==J.g)return n(),m&&m.stop(),(E=yq(a,b.pre,d-f))?(a.h(new T("ad-stopped")),a.m.Za(),zq(a,E,c,++d,e,f),J.B(0)):a.u?G(J,a.i.detach(),4):G(J,a.i.nc(),4);a.u&&(H=b.resumeOffset,null==H&&(H=b.timelineRange&&b.endTime&&Infinity!=b.endTime?b.endTime-(a.j||0):(Date.now()-e)/1E3),a.h(new T("ad-content-resume-requested",(new Map).set("offset",H))));a.h(new T("ad-stopped"));a.m.Za();a.J=!1;a.u||(n(),a.g.ended||a.g.play());Cq(a);I(J)})},r=function(E){return P(function(H){if(l)return H.return();
808
+ (E-e)/1E3;e=E}},p=function(){var E,H;return P(function(J){if(1==J.g)return n(),m&&m.stop(),(E=yq(a,b.pre,d-f))?(a.h(new T("ad-stopped")),a.m.Za(),zq(a,E,c,++d,e,f),J.B(0)):a.u?G(J,a.i.detach(),4):G(J,a.i.nc(),4);a.u&&(H=b.resumeOffset,null==H&&(H=b.timelineRange&&b.endTime&&Infinity!=b.endTime?b.endTime-(a.j||0):(Date.now()-e)/1E3),a.h(new T("ad-content-resume-requested",(new Map).set("offset",H))));a.h(new T("ad-stopped"));a.m.Za();a.J=!1;a.u?Bq(a):(n(),a.g.ended||a.g.play());Cq(a);I(J)})},r=function(E){return P(function(H){if(l)return H.return();
808
809
  l=!0;a.h(new T("ad-error",(new Map).set("originalEvent",E)));return G(H,p(),0)})},u=function(){return P(function(E){if(1==E.g){if(l)return E.return();l=!0;return G(E,p(),2)}a.h(new T("ad-complete"));I(E)})},v=function(){return P(function(E){if(l)return E.return();l=!0;a.h(new T("ad-skipped"));return G(E,p(),0)})},w=new wq(a.l,b.isSkippable,b.skipOffset,v,c,d),a.u||(w.setMuted(a.g.muted),w.setVolume(a.g.volume)),a.h(new T("ad-started",(new Map).set("ad",w))),w.canSkipNow()&&a.h(new T("ad-skip-state-changed")),
809
810
  y=new Set,a.m.sa(a.i,"error",r),a.m.o(a.l,"timeupdate",function(){var E=a.l.duration;E&&(b.isSkippable&&b.skipOffset&&w.canSkipNow()&&0<w.getRemainingTime()&&0<w.getDuration()&&a.h(new T("ad-skip-state-changed")),E=100*a.l.currentTime/E,25<=E&&!y.has("firstquartile")?(n(),a.h(new T("ad-first-quartile")),y.add("firstquartile")):50<=E&&!y.has("midpoint")?(n(),a.h(new T("ad-midpoint")),y.add("midpoint")):75<=E&&!y.has("thirdquartile")&&(n(),a.h(new T("ad-third-quartile")),y.add("thirdquartile")))}),
810
811
  a.m.sa(a.i,"complete",u),a.m.o(a.l,"play",function(){a.h(new T("ad-resumed"))}),a.m.o(a.l,"pause",function(){var E=a.i.getConfiguration();a.l.currentTime>=E.playRangeEnd?u():a.h(new T("ad-paused"))}),a.m.o(a.l,"volumechange",function(){a.l.muted?a.h(new T("ad-muted")):a.h(new T("ad-volume-changed"))}),va(D,4),Aq(a),b.startTime&&b.endTime&&Infinity!=b.endTime&&b.startTime!=b.endTime&&(z=b.endTime-b.startTime,0<z&&a.i.configure("playRangeEnd",z)),b.playoutLimit&&(m=(new Xb(function(){w.skip()})).X(b.playoutLimit),
@@ -855,11 +856,11 @@ q.initClientSide=function(a,b,c){var d=this;if(!window.google||!google.ima||!goo
855
856
  q.onAssetUnload=function(){this.h&&this.h.stop();this.j&&this.j.stop();this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new T("ad-stopped"));this.dispatchEvent(new T("ad-content-attach-requested"));this.m=new kq};q.requestClientSideAds=function(a){if(!this.j)throw new U(1,10,10001);var b=this.j;b.g&&b.g.destroy();b.m&&b.m.contentComplete();b.I=Date.now()/1E3;b.m.requestAds(a)};
856
857
  q.updateClientSideAdsRenderingSettings=function(a){if(!this.j)throw new U(1,10,10001);var b=this.j;b.C=a;b.g&&b.g.updateAdsRenderingSettings(b.C)};q.initMediaTailor=function(a,b,c){var d=this;this.i&&this.i.release();this.i=new Iq(a,b,c,function(e){return Wq(d,e)})};q.requestMediaTailorStream=function(a,b,c){if(!this.i)throw new U(1,10,10005);var d=this.i;c=void 0===c?"":c;d.l?a=Promise.reject(new U(1,10,10004)):(d.l=new mh,Lq(d,a,b),d.J=c||"",d.S=Date.now()/1E3,a=d.l);return a};
857
858
  q.addMediaTailorTrackingUrl=function(a){if(!this.i)throw new U(1,10,10005);var b=this.i;b.I=a;b.i(new T("ads-loaded",(new Map).set("loadTime",0)))};q.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new U(2,10,10002);this.g&&this.g.release();this.g=new Uq(a,b,this.s,function(d){return Wq(c,d)});this.g.configure(this.l)};
858
- q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new U(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&ab('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.11.12";c=this.g;c.j?a=Promise.reject(new U(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
859
- (c.I=!0),c.j=new mh,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 U(1,10,10003);(a.mpt||a.mpv)&&ab('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.11.12";this.g.g.replaceAdTagParameters(a)};
859
+ q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new U(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&ab('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.11.13";c=this.g;c.j?a=Promise.reject(new U(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
860
+ (c.I=!0),c.j=new mh,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 U(1,10,10003);(a.mpt||a.mpv)&&ab('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.11.13";this.g.g.replaceAdTagParameters(a)};
860
861
  q.getServerSideCuePoints=function(){Dd("AdManager.getServerSideCuePoints","Please use getCuePoints function.");return this.getCuePoints()};q.getCuePoints=function(){var a=[];this.g&&(a=a.concat(this.g.getCuePoints()));this.i&&(a=a.concat(this.i.getCuePoints()));return a};q.getStats=function(){var a=this.m;return{loadTimes:a.g,averageLoadTime:lq(a),started:a.h,playedCompletely:a.j,skipped:a.l,errors:a.i}};q.onManifestUpdated=function(a){if(this.i)this.i.onManifestUpdated(a)};
861
862
  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.onHLSInterstitialMetadata=function(a,b,c){this.h||this.initInterstitial(null,a,b);this.h&&Dq(this.h,c)};
862
- q.onDASHInterstitialMetadata=function(a,b,c){if("urn:mpeg:dash:event:alternativeMPD:2022"==c.schemeIdUri&&(this.h||this.initInterstitial(null,a,b),this.h)){a=this.h;b=t(c.eventNode.children);for(var d=b.next();!d.done;d=b.next()){var e=d.value;if("AlternativeMPD"==e.tagName&&(d=e.attributes.uri,e=e.attributes.mode,d)){var f=d;var g=e;break}}f?(b="replace"==g,g="insert"==g,(b||g)&&Fq(a,[{id:null,startTime:c.startTime,endTime:b?c.endTime:null,uri:f,isSkippable:!1,skipOffset:null,canJump:!0,resumeOffset:g?
863
+ q.onDASHInterstitialMetadata=function(a,b,c){if("urn:mpeg:dash:event:alternativeMPD:2022"==c.schemeIdUri&&(this.h||this.initInterstitial(null,a,b),this.h)){a=this.h;b=t(c.eventNode.children);for(var d=b.next();!d.done;d=b.next()){var e=d.value;if("AlternativeMPD"==e.tagName&&(d=e.attributes.uri,e=e.attributes.mode,d)){var f=d;var g=e;break}}f?(b="replace"==g,g="insert"==g,(b||g)&&Fq(a,[{id:null,startTime:c.startTime,endTime:c.endTime,uri:f,isSkippable:!1,skipOffset:null,canJump:!0,resumeOffset:g?
863
864
  0:null,playoutLimit:null,once:!1,pre:!1,post:!1,timelineRange:b&&!g}])):ab("Unsupported MPD alternate",c)}};q.addCustomInterstitial=function(a){if(!this.h)throw new U(1,10,10006);Fq(this.h,[a])};q.addAdUrlInterstitial=function(a){if(!this.h)throw new U(1,10,10006);return this.h.addAdUrlInterstitial(a)};
864
865
  function Wq(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)}R("shaka.ads.AdManager",Y);Y.prototype.addAdUrlInterstitial=Y.prototype.addAdUrlInterstitial;Y.prototype.addCustomInterstitial=Y.prototype.addCustomInterstitial;Y.prototype.onDASHInterstitialMetadata=Y.prototype.onDASHInterstitialMetadata;
865
866
  Y.prototype.onHLSInterstitialMetadata=Y.prototype.onHLSInterstitialMetadata;Y.prototype.onCueMetadataChange=Y.prototype.onCueMetadataChange;Y.prototype.onHlsTimedMetadata=Y.prototype.onHlsTimedMetadata;Y.prototype.onDashTimedMetadata=Y.prototype.onDashTimedMetadata;Y.prototype.onManifestUpdated=Y.prototype.onManifestUpdated;Y.prototype.getStats=Y.prototype.getStats;Y.prototype.getCuePoints=Y.prototype.getCuePoints;Y.prototype.getServerSideCuePoints=Y.prototype.getServerSideCuePoints;
@@ -874,7 +875,7 @@ function Zq(a){return{length:a.length,start:function(b){return a.start[b]},end:f
874
875
  var $q="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),ar="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),br=["loop","playbackRate"],cr=["pause","play"],dr={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getImageTracks:2,getThumbnails:2,
875
876
  isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10,getManifestType:10,isFullyLoaded:1},er={getConfiguration:4,getStats:5,getTextTracks:2,getVariantTracks:2},fr={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20,getSegmentAvailabilityDuration:20},gr=[["getConfiguration","configure"]],hr=[["isTextTrackVisible","setTextTrackVisibility"]],ir="addChaptersTrack addTextTrackAsync addThumbnailsTrack cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),
876
877
  jr=["attach","attachCanvas","detach","load","unload"];function kr(a,b,c,d,e,f,g){var h=this;this.I=a;this.L=g;this.l=new Xb(b);this.N=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 lr(h)};this.G=function(k,l){k=Yq(l);switch(k.type){case "event":var m=k.targetName,n=Wa(k.event);h.A(m,n);break;case "update":m=k.update;for(n in m){k=h.g[n]||{};for(var p in m[n])k[p]=m[n][p]}h.u&&(h.N(),h.u=!1);break;case "asyncComplete":if(n=k.id,p=k.error,k=h.i[n],delete h.i[n],k)if(p){n=new U(p.severity,p.category,
877
- 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;mr.add(this)}q=kr.prototype;q.destroy=function(){mr.delete(this);nr(this);or&&pr(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.bf=function(){return this.K};
878
+ 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;mr.add(this)}q=kr.prototype;q.destroy=function(){mr.delete(this);nr(this);or&&pr(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.$e=function(){return this.K};
878
879
  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(mr),d=c.next();!d.done;d=c.next()){d=d.value;var e=b;d.j=new mh;d.u=!0;qr(d,e)}},function(b){for(var c=t(mr),d=c.next();!d.done;d=c.next())d=d.value,rr="available"==b,d.l.Sa()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});rr&&this.l.X(sr);(a=or)&&
879
880
  a.status!=chrome.cast.SessionStatus.STOPPED?(this.j=new mh,this.u=!0,qr(this,a)):or=null}else window.__onGCastApiAvailable!==tr&&(ur=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=tr)};q.Ug=function(a){this.s=a;this.h&&vr(this,{type:"appData",appData:this.s})};
880
881
  q.cast=function(){var a=this;return P(function(b){if(!a.m)throw new U(1,8,8E3);if(!rr)throw new U(1,8,8001);if(a.h)throw new U(1,8,8002);a.j=new mh;chrome.cast.requestSession(function(c){return qr(a,c)},function(c){return wr(a,c)});return G(b,a.j,0)})};function xr(a){a.h&&chrome.cast.requestSession(function(b){return qr(a,b)},function(b){return wr(a,b)})}q.gd=function(){if(this.h){nr(this);if(or){pr(this);try{or.stop(function(){},function(){})}catch(a){}or=null}lr(this)}};
@@ -883,7 +884,7 @@ q.set=function(a,b,c){this.g[a][b]=c;vr(this,{type:"set",targetName:a,property:b
883
884
  q.ii=function(a,b){vr(this,{type:"call",targetName:a,methodName:b,args:Ia.apply(2,arguments)})};q.rk=function(a,b){var c=Ia.apply(2,arguments),d=new mh,e=this.J.toString();this.J++;this.i[e]=d;try{vr(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function pr(a){var b=or;b.removeUpdateListener(a.C);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G)}
884
885
  function lr(a){var b=or?"connected"==or.status:!1;if(a.h&&!b){a.H();for(var c in a.g)a.g[c]={};nr(a)}a.h=b;a.K=b?or.receiver.friendlyName:"";a.l.Sa()}function nr(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new U(1,7,7E3))}}function vr(a,b){b=Xq(b);var c=or;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},eb)}catch(d){throw b=new U(2,8,8005,d),c=new T("error",(new Map).set("detail",b)),a.A("player",c),a.gd(),b;}}var sr=.02,rr=!1,or=null,ur=null,mr=new Set;
885
886
  function tr(a){ur?window.__onGCastApiAvailable=ur:delete window.__onGCastApiAvailable;ur=null;if(a)for(var b=t(mr),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function yr(a,b,c,d){d=void 0===d?!1:d;ib.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 kr(c,function(){return zr(e)},function(){return Ar(e)},function(f,g){return Br(e,f,g)},function(){return Cr(e)},function(){return Dr(e)},d);Er(this)}ra(yr,ib);q=yr.prototype;
886
- q.destroy=function(a){a&&this.g.gd();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;ib.prototype.release.call(this);return Promise.all(a)};q.vc=function(){return this.l};q.kd=function(){return this.u};q.Jf=function(){return this.g.m&&rr};q.Ra=function(){return this.g.Ra()};q.bf=function(){return this.g.bf()};
887
+ q.destroy=function(a){a&&this.g.gd();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;ib.prototype.release.call(this);return Promise.all(a)};q.vc=function(){return this.l};q.kd=function(){return this.u};q.If=function(){return this.g.m&&rr};q.Ra=function(){return this.g.Ra()};q.$e=function(){return this.g.$e()};
887
888
  q.cast=function(){var a=this;return P(function(b){return 1==b.g?G(b,a.g.cast(),2):a.h?G(b,a.h.nc(),0):b.return()})};q.Ug=function(a){this.g.Ug(a)};q.Di=function(){xr(this.g)};q.gd=function(){this.g.gd()};
888
889
  q.vh=function(a,b){b=void 0===b?!1:b;var c=this;return P(function(d){if(1==d.g){if(a==c.G&&b==c.C)return d.return();c.G=a;c.C=b;c.g.gd();return G(d,c.g.destroy(),2)}c.g=null;c.g=new kr(a,function(){return zr(c)},function(){return Ar(c)},function(e,f){return Br(c,e,f)},function(){return Cr(c)},function(){return Dr(c)},b);c.g.init();I(d)})};
889
890
  function Er(a){a.g.init();a.m=new ud;for(var b=t($q),c=b.next();!c.done;c=b.next())a.m.o(a.i,c.value,function(f){a.g.Ra()||(f=Wa(f),a.j.dispatchEvent(f))});for(var d in Xa)a.m.o(a.h,Xa[d],function(f){a.g.Ra()||a.s.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b={Rd:b.Rd},b.Rd=e,Object.defineProperty(a.l,b.Rd,{configurable:!1,enumerable:!0,get:function(f){return function(){return Fr(a,f.Rd)}}(b),set:function(f){return function(g){var h=f.Rd;a.g.Ra()?a.g.set("video",h,g):a.i[h]=g}}(b)});a.u={};Gr(a,
@@ -892,11 +893,11 @@ function Gr(a,b){function c(k){return"constructor"==k||"function"!=typeof d[k]?!
892
893
  function Dr(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.hd(),startTime:null};a.i.pause();for(var c=t(br),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(gr);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(hr);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 zr(a){var b=new T("caststatuschanged");a.dispatchEvent(b)}
893
894
  function Ar(a){var b=new T(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
894
895
  function Cr(a){for(var b=t(gr),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(br);for(d=c.next();!d.done;d=c.next())d=
895
- d.value,k[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var l=t(br),m=l.next();!m.done;m=l.next())m=m.value,a.i[m]=k[m];l=t(hr);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.kf(h);g&&a.h.Sg(g.language,g.roles,g.forced);a.i.autoplay=f;e&&a.i.play()}},function(l){l=(new Map).set("detail",l);l=new T("error",l);a.h.dispatchEvent(l)})}
896
+ d.value,k[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var l=t(br),m=l.next();!m.done;m=l.next())m=m.value,a.i[m]=k[m];l=t(hr);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.jf(h);g&&a.h.Sg(g.language,g.roles,g.forced);a.i.autoplay=f;e&&a.i.play()}},function(l){l=(new Map).set("detail",l);l=new T("error",l);a.h.dispatchEvent(l)})}
896
897
  function Fr(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)}
897
898
  function Hr(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.ye()};
898
899
  if("setVideoContainer"==b)return function(c){return a.h.ah(c)};if(a.g.Ra()){if("getManifest"==b||"drmInfo"==b)return function(){ab(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){ab(b+"() does not work while casting!");return Promise.resolve()}}return a.g.Ra()&&0==Object.keys(a.g.g.video).length&&(dr[b]||er[b])||!a.g.Ra()?a.h[b].bind(a.h):a.g.get("player",b)}
899
- function Br(a,b,c){a.g.Ra()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.s.dispatchEvent(c))}R("shaka.cast.CastProxy",yr);yr.prototype.changeReceiverId=yr.prototype.vh;yr.prototype.forceDisconnect=yr.prototype.gd;yr.prototype.suggestDisconnect=yr.prototype.Di;yr.prototype.setAppData=yr.prototype.Ug;yr.prototype.cast=yr.prototype.cast;yr.prototype.receiverName=yr.prototype.bf;yr.prototype.isCasting=yr.prototype.Ra;yr.prototype.canCast=yr.prototype.Jf;yr.prototype.getPlayer=yr.prototype.kd;
900
+ function Br(a,b,c){a.g.Ra()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.s.dispatchEvent(c))}R("shaka.cast.CastProxy",yr);yr.prototype.changeReceiverId=yr.prototype.vh;yr.prototype.forceDisconnect=yr.prototype.gd;yr.prototype.suggestDisconnect=yr.prototype.Di;yr.prototype.setAppData=yr.prototype.Ug;yr.prototype.cast=yr.prototype.cast;yr.prototype.receiverName=yr.prototype.$e;yr.prototype.isCasting=yr.prototype.Ra;yr.prototype.canCast=yr.prototype.If;yr.prototype.getPlayer=yr.prototype.kd;
900
901
  yr.prototype.getVideo=yr.prototype.vc;yr.prototype.destroy=yr.prototype.destroy;function Jr(a,b,c,d){ib.call(this);var e=this;this.g=a;this.h=b;this.j=new ud;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 Xb(function(){Kr(e)});Lr(this)}ra(Jr,ib);q=Jr.prototype;q.isConnected=function(){return this.I};q.Qj=function(){return this.s};q.Gk=function(a){this.i=a};q.Xi=function(){this.i=null};
901
902
  q.Hk=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};q.Fk=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};q.Ek=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
902
903
  q.destroy=function(){var a=this,b,c;return P(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,ib.prototype.release.call(a),G(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();I(d)})};
@@ -913,13 +914,13 @@ function Or(a,b){var c=Yq(b.data);switch(c.type){case "PLAY":a.g.play();Ur(a);br
913
914
  null!=d&&(a.g.muted=d);e==a.g.volume&&f==a.g.muted||Ur(a);break;case "LOAD":a.m=0;a.C=!1;a.A=!1;b=c.media;d=c.currentTime;e=a.K(b.contentId);f=c.autoplay||!0;a.H(b.customData);f&&(a.g.autoplay=!0);a.h.load(e,d).then(function(){a.h&&Xr(a)}).catch(function(g){var h="LOAD_FAILED";7==g.category&&7E3==g.code&&(h="LOAD_CANCELLED");Nr(a,{requestId:Number(c.requestId),type:h},a.u)});break;default:Nr(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.u)}}
914
915
  function Yr(a,b,c,d){a.h&&Nr(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function Nr(a,b,c,d){a.I&&(a=Xq(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function Ur(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.s?Zr:a.h.Ie()?$r:a.g.paused?as:bs,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);Nr(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.u)}
915
916
  R("shaka.cast.CastReceiver",Jr);Jr.prototype.destroy=Jr.prototype.destroy;Jr.prototype.setContentArtist=Jr.prototype.Ek;Jr.prototype.setContentImage=Jr.prototype.Fk;Jr.prototype.setContentTitle=Jr.prototype.Hk;Jr.prototype.clearContentMetadata=Jr.prototype.Xi;Jr.prototype.setContentMetadata=Jr.prototype.Gk;Jr.prototype.isIdle=Jr.prototype.Qj;Jr.prototype.isConnected=Jr.prototype.isConnected;var Wr=.5,Sr=5,Zr="IDLE",bs="PLAYING",$r="BUFFERING",as="PAUSED";function cs(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(A){return null!=A&&""!=A.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(A){return null!=A&&""!=A.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",n=ds(d,e,h,k,l,m);f<=g;f++){for(var p=c[f],r=-1,u=-1,v=0;v<p.length;v++)if(null!=p[v]&&""!==p[v].g.trim()){r=v;break}for(v=p.length-1;0<=v;v--)if(null!=p[v]&&""!==p[v].g.trim()){u=v;break}if(-1===
916
- r||-1===u)p=es(d,e),a.nestedCues.push(p);else{for(;r<=u;r++)if(v=p[r]){var w=v.l,y=v.i,z=v.j,B=v.h;if(w!=h||y!=k||z!=l||B!=m)n.payload&&a.nestedCues.push(n),n=ds(d,e,w,y,z,B),h=w,k=y,l=z,m=B;n.payload+=v.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=es(d,e),a.nestedCues.push(n));n=ds(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}function ds(a,b,c,d,e,f){a=new Qe(a,b,"");c&&a.textDecoration.push(mf);d&&(a.fontStyle=lf);a.color=e;a.backgroundColor=f;return a}
917
- function es(a,b){a=new Qe(a,b,"");a.lineBreak=!0;return a}function fs(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function gs(a,b){this.i=[];this.g=1;this.h=0;this.G=a;this.C=b;this.j=this.m=!1;this.l="white";this.s="black";this.u=this.A=null;hs(this)}function is(a,b,c){var d="CC"+((a.G<<1|a.C)+1),e=new Qe(b,c,"");e.lineInterpretation=1;var f=js.get(a.g);f&&(e.line=f);null!=a.u&&null!=a.A&&(e.position=10+Math.min(70,10*a.u)+2.5*a.A);(b=cs(e,d,a.i,b,c))&&15<a.g+b.cue.nestedCues.length-3&&(f=js.get(a.g+3-b.cue.nestedCues.length))&&(e.line=f);return b}function hs(a){ks(a,0,15);a.g=1}
917
+ r||-1===u)p=es(d,e),a.nestedCues.push(p);else{for(;r<=u;r++)if(v=p[r]){var w=v.l,y=v.i,z=v.j,B=v.h;if(w!=h||y!=k||z!=l||B!=m)n.payload&&a.nestedCues.push(n),n=ds(d,e,w,y,z,B),h=w,k=y,l=z,m=B;n.payload+=v.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=es(d,e),a.nestedCues.push(n));n=ds(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}function ds(a,b,c,d,e,f){a=new Pe(a,b,"");c&&a.textDecoration.push(mf);d&&(a.fontStyle=lf);a.color=e;a.backgroundColor=f;return a}
918
+ function es(a,b){a=new Pe(a,b,"");a.lineBreak=!0;return a}function fs(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function gs(a,b){this.i=[];this.g=1;this.h=0;this.G=a;this.C=b;this.j=this.m=!1;this.l="white";this.s="black";this.u=this.A=null;hs(this)}function is(a,b,c){var d="CC"+((a.G<<1|a.C)+1),e=new Pe(b,c,"");e.lineInterpretation=1;var f=js.get(a.g);f&&(e.line=f);null!=a.u&&null!=a.A&&(e.position=10+Math.min(70,10*a.u)+2.5*a.A);(b=cs(e,d,a.i,b,c))&&15<a.g+b.cue.nestedCues.length-3&&(f=js.get(a.g+3-b.cue.nestedCues.length))&&(e.line=f);return b}function hs(a){ks(a,0,15);a.g=1}
918
919
  function ls(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case 0:d=ms.has(c)?ms.get(c):String.fromCharCode(c);break;case 1:d=ns.get(c);break;case 2:a.i[a.g].pop();d=os.get(c);break;case 3:a.i[a.g].pop(),d=ps.get(c)}d&&a.i[a.g].push(new fs(d,a.m,a.j,a.s,a.l))}}function qs(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 ks(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]}
919
920
  var ms=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"]]),ns=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"]]),os=new Map([[32,"\u00c1"],[33,"\u00c9"],[34,"\u00d3"],[35,"\u00da"],[36,"\u00dc"],
920
921
  [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"]]),ps=new Map([[32,"\u00c3"],[33,"\u00e3"],[34,"\u00cd"],[35,"\u00cc"],[36,"\u00ec"],[37,"\u00d2"],[38,"\u00f2"],[39,"\u00d5"],[40,"\u00f5"],
921
922
  [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"]]),js=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 rs(a,b){this.h=0;this.s=new gs(a,b);this.i=new gs(a,b);this.g=this.j=new gs(a,b);this.l=0;this.m=null}function ss(a,b,c){a.g=a.i;var d=a.g,e=null;3!==a.h&&4!==a.h&&(e=is(d,a.l,c),c=a.i,c.g=0<c.h?c.h:0,ks(c,0,15),c=a.j,c.g=0<c.h?c.h:0,ks(c,0,15),d.g=15);a.h=3;d.h=b;return e}function ts(a){a.h=1;a.g=a.j;a.g.h=0}function us(a){bb("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.s;a.h=4}var vs="black green blue cyan red yellow magenta black".split(" "),ws="white green blue cyan red yellow magenta white_italics".split(" ");function xs(a,b){this.K=b;this.O=a;this.L=this.l=!1;this.m=this.s=this.I=this.N=this.J=0;this.H=2;this.i=[];this.g=this.h=this.j=0;this.G=this.A=!1;this.C="white";this.u="black";ys(this)}function ys(a){a.i=[];for(var b=0;16>b;b++)a.i.push(zs())}function zs(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function As(a,b){Bs(a)&&(a.i[a.h][a.g]=new fs(b,a.G,a.A,a.u,a.C),a.g++)}function Bs(a){var b=a.g<a.m&&0<=a.g;return a.h<a.s&&0<=a.h&&b}xs.prototype.isVisible=function(){return this.l};
922
- function Cs(a,b,c){var d=new Qe(a.j,b,"");d.textAlign=0===a.H?"left":1===a.H?"right":Se;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.N;e.viewportAnchorUnits=a.L?Od:2;switch(a.I){case 0:e.regionAnchorX=0;e.regionAnchorY=0;break;case 1:e.regionAnchorX=50;e.regionAnchorY=0;break;case 2:e.regionAnchorX=100;e.regionAnchorY=0;break;case 3:e.regionAnchorX=0;e.regionAnchorY=50;break;case 4:e.regionAnchorX=
923
+ function Cs(a,b,c){var d=new Pe(a.j,b,"");d.textAlign=0===a.H?"left":1===a.H?"right":Se;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.N;e.viewportAnchorUnits=a.L?Od:2;switch(a.I){case 0:e.regionAnchorX=0;e.regionAnchorY=0;break;case 1:e.regionAnchorX=50;e.regionAnchorY=0;break;case 2:e.regionAnchorX=100;e.regionAnchorY=0;break;case 3:e.regionAnchorX=0;e.regionAnchorY=50;break;case 4:e.regionAnchorX=
923
924
  50;e.regionAnchorY=50;break;case 5:e.regionAnchorX=100;e.regionAnchorY=50;break;case 6:e.regionAnchorX=0;e.regionAnchorY=100;break;case 7:e.regionAnchorX=50;e.regionAnchorY=100;break;case 8:e.regionAnchorX=100,e.regionAnchorY=100}if(c=cs(d,"svc"+c,a.i,a.j,b))a.j=b;return c}xs.prototype.display=function(){this.l=!0};function Ds(){this.i=[];this.h=null;this.g=0}function Es(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 Fs(a.h)),a.h=null,a.g=0))}function Fs(a){this.g=0;this.h=a}Fs.prototype.Fa=function(){return this.g<this.h.length};Fs.prototype.Oa=function(){return this.g};function Gs(a){if(!a.Fa())throw new U(2,2,3E3);return a.h[a.g++]}Fs.prototype.skip=function(a){if(this.g+a>this.h.length)throw new U(2,2,3E3);this.g+=a};function Hs(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
924
925
  function Is(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=Gs(b).value;b=null;c=t(Js(a,c));for(var e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=Cs(e,d,a.i)),ys(e);return b}if(137===c)for(b=Gs(b).value,b=t(Js(a,b)),c=b.next();!c.done;c=b.next())c=a.h[c.value],c.isVisible()||(c.j=d),c.display();else{if(138===c){c=Gs(b).value;b=null;c=t(Js(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=Cs(e,d,a.i)),e.l=!1;return b}if(139===c){c=Gs(b).value;
925
926
  b=null;c=t(Js(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=Cs(e,d,a.i):e.j=d,e.l=!e.l;return b}if(140===c)return b=Gs(b).value,Ks(a,b,d);if(143===c)return d=Ks(a,255,d),Ls(a),d;if(144===c)b.skip(1),d=Gs(b).value,a.g&&(a.g.A=0<(d&128),a.g.G=0<(d&64));else if(145===c)d=Gs(b).value,c=Gs(b).value,b.skip(1),a.g&&(b=Ms((c&48)>>4,(c&12)>>2,c&3),a.g.C=Ms((d&48)>>4,(d&12)>>2,d&3),a.g.u=b);else if(146===c)d=Gs(b).value,b=Gs(b).value,a.g&&(a=a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),
@@ -942,10 +943,10 @@ function(f){f=zj(f.reader,f.version);e.push(f.timescale)}).box("minf",Zh).box("s
942
943
  d.forEach(function(f,g){c.j.set(f,e[g])})};
943
944
  Vs.prototype.parse=function(a){var b=this;if(this.g==Ws)return[];var c=[],d=0,e=[];(new Uh).box("moof",function(f){d=f.start;e=[];Zh(f)}).box("traf",function(f){e.push({baseMediaDecodeTime:null,Hd:b.h,ve:b.i,bi:[],timescale:9E4});Zh(f)}).W("trun",function(f){var g=e[e.length-1];f=Aj(f.reader,f.version,f.flags);g.bi.push(f)}).W("tfhd",function(f){var g=e[e.length-1];f=xj(f.reader,f.flags);g.Hd=f.Hd||b.h;g.ve=f.ve||b.i;f=f.trackId;b.j.has(f)&&(g.timescale=b.j.get(f))}).W("tfdt",function(f){var g=e[e.length-
944
945
  1];f=yj(f.reader,f.version);g.baseMediaDecodeTime=f.baseMediaDecodeTime}).box("mdat",function(f){for(var g=d-f.start-8,h=f.reader.Oa(),k=t(e),l=k.next();!l.done;l=k.next()){l=l.value;if(null===l.baseMediaDecodeTime)throw ab("Unable to find base media decode time for CEA captions!"),new U(2,2,2010);f.reader.seek(h);Ys(b,f.reader,l.baseMediaDecodeTime,l.timescale,l.Hd,l.ve,g,l.bi,c)}}).parse(a,!1);return c};
945
- function Ys(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(u){return u.ki});n=[].concat.apply([],x(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].Zi);b.Fa();){g=b.U();var p=b.Z(),r=null;r=!1;h=1;switch(a.g){case Zs:r=p&31;r=6==r;break;case $s:h=2;b.skip(1);r=p>>1&63;r=39==r||40==r;break;case at: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].df||0),p=(c+p)/d,h=t(Us(b.Qb(g-h))),r=h.next();!r.done;r=h.next())k.push({packet:r.value,pts:p});else try{b.skip(g-
946
+ function Ys(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(u){return u.ki});n=[].concat.apply([],x(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].Zi);b.Fa();){g=b.U();var p=b.Z(),r=null;r=!1;h=1;switch(a.g){case Zs:r=p&31;r=6==r;break;case $s:h=2;b.skip(1);r=p>>1&63;r=39==r||40==r;break;case at: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].cf||0),p=(c+p)/d,h=t(Us(b.Qb(g-h))),r=h.next();!r.done;r=h.next())k.push({packet:r.value,pts:p});else try{b.skip(g-
946
947
  h)}catch(u){break}m-=g+4;0==m&&(c=l<n.length?c+(n[l].Qg||e):c+e,l++,l<n.length?m=n[l].sampleSize||f:m=f)}}R("shaka.cea.Mp4CeaParser",Vs);var Ws=0,Zs=1,$s=2,at=3,Xs={avc1:Zs,avc3:Zs,dvav:Zs,dva1:Zs,hev1:$s,hvc1:$s,dvh1:$s,dvhe:$s,vvc1:at,vvi1:at,dvc1:at,dvi1:at};Ld["video/mp4"]=function(){return new Vs};function bt(){this.g=null}bt.prototype.init=function(){};bt.prototype.parse=function(a){this.g?this.g.clearData():this.g=new Tj;var b=[];a=Jb(a);if(!bk(a))return b;a=this.g.parse(a);var c=a.Id(),d=a.Ee();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(Us(d.data)),f=e.next();!f.done;f=e.next())b.push({packet:f.value,pts:d.time});return b};
947
948
  R("shaka.cea.TsCeaParser",bt);Ld["video/mp2t"]=function(){return new bt};function ct(a,b,c){var d=dt(a),e=null;a=[];var f=[],g=null,h=new Set(d.map(function(l){return l.keyId}));h.delete(null);var k="cenc";if(1<h.size)throw new U(2,4,4010);if(!b){f=d.filter(function(l){return"urn:mpeg:dash:sea:2012"==l.vd});if(1<f.length)throw new U(2,4,4050);f.length&&(g=et(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"!=
948
- l.vd});f.length&&(a=ft(e,k,f,c,h),0==a.length&&(a=[Rc("",k,e)]))}if(d.length&&!g&&(b||!f.length))for(a=[],b=t(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Rc(c,k,e));if(h=Array.from(h)[0]||null)for(k=t(a),b=k.next();!b.done;b=k.next())for(b=t(b.value.initData),c=b.next();!c.done;c=b.next())c.value.keyId=h;return{Ah:h,bm:e,drmInfos:a,Gf:g,Fh:!0}}
949
+ l.vd});f.length&&(a=ft(e,k,f,c,h),0==a.length&&(a=[Rc("",k,e)]))}if(d.length&&!g&&(b||!f.length))for(a=[],b=t(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Rc(c,k,e));if(h=Array.from(h)[0]||null)for(k=t(a),b=k.next();!b.done;b=k.next())for(b=t(b.value.initData),c=b.next();!c.done;c=b.next())c.value.keyId=h;return{Ah:h,bm:e,drmInfos:a,Ff:g,Fh:!0}}
949
950
  function gt(a,b,c,d){var e=ct(a,c,d);if(b.Fh){a=1==b.drmInfos.length&&!b.drmInfos[0].keySystem;c=0==e.drmInfos.length;if(0==b.drmInfos.length||a&&!c)b.drmInfos=e.drmInfos;b.Fh=!1}else if(0<e.drmInfos.length&&(b.drmInfos=b.drmInfos.filter(function(f){return e.drmInfos.some(function(g){return g.keySystem==f.keySystem})}),0==b.drmInfos.length))throw new U(2,4,4008);return e.Ah||b.Ah}
950
951
  function ht(a){var b=0,c=Ob(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=Jb(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function it(a){a=t(re(a,"DATA"));for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.children){b=t(b.children);for(var c=b.next();!c.done;c=b.next())if(c=c.value,"LA_URL"==c.tagName)return pe(c)}return""}
951
952
  function jt(a){var b=te(a.node,"https://dashif.org/CPS","Laurl");if(b&&(b=pe(b)))return b;a=te(a.node,"urn:microsoft:playready","pro");if(!a||!pe(a))return"";a=pe(a);a=Mc(a);a=ht(a).filter(function(c){return c.type===kt})[0];if(!a)return"";a=Cc(a.value,!0);return(a=ee(a,"WRMHEADER"))?it(a):""}
@@ -969,42 +970,42 @@ function xt(a){var b=yt(a);if(7<b.length)throw new U(2,3,3002);var c=0;b=t(b);fo
969
970
  d)}function yt(a){var b=a.g.Oa(),c=a.g.Z();if(0==c)throw new U(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Jb(a.h,b,c)}var zt=[[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 At(a,b){this.id=a;this.g=b}
970
971
  function Bt(a){if(8<a.g.byteLength)throw new U(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new U(2,3,3001);for(var b=0,c=0;c<a.g.byteLength;c++){var d=a.g.getUint8(c);b=256*b+d}return b};function Ct(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new wt(a.g);for(var n=null,p=null;a.Fa();){var r=xt(a);if(187==r.id){var u=Dt(r);u&&(r=c*u.Qk,u=b+u.pk,null!=n&&m.push(new gj(n+g,r+g,l,p,u-1,f,g,h,k)),n=r,p=u)}}null!=n&&m.push(new gj(n+g,d+g,l,p,null,f,g,h,k));return m}
971
972
  function Dt(a){var b=new wt(a.g);a=xt(b);if(179!=a.id)throw new U(2,3,3013);a=Bt(a);b=xt(b);if(183!=b.id)throw new U(2,3,3012);b=new wt(b.g);for(var c=0;b.Fa();){var d=xt(b);if(241==d.id){c=Bt(d);break}}return{Qk:a,pk:c}};function Et(a,b,c){b=qt(a,b,"Initialization");if(!b)return null;var d=a.M.cb(),e=b.attributes.sourceURL;e&&(d=Qc(d,[Ic(e)],a.Db()));e=0;var f=null;if(b=ve(b,"range",Ae))e=b.start,f=b.end;c=new ej(function(){return d},e,f,Ft(a),null,null,c);c.codecs=a.M.codecs;c.mimeType=a.M.mimeType;return c}
972
- function Gt(a,b,c){var d=Number(pt(a,Ht,"presentationTimeOffset"))||0,e=pt(a,Ht,"timescale"),f=1;e&&(f=Ce(e)||1);var g=d/f||0,h=Et(a,Ht,c);It(a,h);var k=ce(a);return{Ic:function(){var l=qt(k,Ht,"RepresentationIndex");var m=k.M.cb();l&&(l=Ic(l.attributes.sourceURL))&&(m=Qc(m,[l],k.Db()));l=Jt(k);return Kt(k,b,h,m,l.start,l.end,g)}}}
973
- function Kt(a,b,c,d,e,f,g){var h,k,l,m,n,p,r,u,v,w,y,z,B,A,C,D,E,H;return P(function(J){if(1==J.g)return h=a.presentationTimeline,k=!a.Tb||!a.wa.xg,l=a.wa.start,m=a.wa.duration,n=a.M.mimeType.split("/")[1],p=b,r=null,u=[p(d,e,f,!1),"webm"==n?p(c.R(),c.$a,c.La,!0):null],p=null,G(J,Promise.all(u),2);v=J.h;w=v[0];y=v[1]||null;z=null;B=l-g;A=l;C=m?l+m:Infinity;if("mp4"==n)var F=ut(w,e,d,c,B,A,C);else{F=w;var K=new wt(y);if(440786851!=xt(K).id)throw new U(2,3,3008);var L=xt(K);if(408125543!=L.id)throw new U(2,
973
+ function Gt(a,b,c){var d=Number(pt(a,Ht,"presentationTimeOffset"))||0,e=pt(a,Ht,"timescale"),f=1;e&&(f=Ce(e)||1);var g=d/f||0,h=Et(a,Ht,c);It(a,h);var k=ce(a);return{Kc:function(){var l=qt(k,Ht,"RepresentationIndex");var m=k.M.cb();l&&(l=Ic(l.attributes.sourceURL))&&(m=Qc(m,[l],k.Db()));l=Jt(k);return Kt(k,b,h,m,l.start,l.end,g)}}}
974
+ function Kt(a,b,c,d,e,f,g){var h,k,l,m,n,p,r,u,v,w,y,z,B,A,C,D,E,H;return P(function(J){if(1==J.g)return h=a.presentationTimeline,k=!a.Tb||!a.wa.wg,l=a.wa.start,m=a.wa.duration,n=a.M.mimeType.split("/")[1],p=b,r=null,u=[p(d,e,f,!1),"webm"==n?p(c.R(),c.$a,c.La,!0):null],p=null,G(J,Promise.all(u),2);v=J.h;w=v[0];y=v[1]||null;z=null;B=l-g;A=l;C=m?l+m:Infinity;if("mp4"==n)var F=ut(w,e,d,c,B,A,C);else{F=w;var K=new wt(y);if(440786851!=xt(K).id)throw new U(2,3,3008);var L=xt(K);if(408125543!=L.id)throw new U(2,
974
975
  3,3009);K=L.g.byteOffset;L=new wt(L.g);for(var O=null;L.Fa();){var M=xt(L);if(357149030==M.id){O=M;break}}if(!O)throw new U(2,3,3010);O=new wt(O.g);M=1E6;for(L=null;O.Fa();){var N=xt(O);if(2807729==N.id)M=Bt(N);else if(17545==N.id)if(4==N.g.byteLength)L=N.g.getFloat32(0);else if(8==N.g.byteLength)L=N.g.getFloat64(0);else throw new U(2,3,3003);}if(null==L)throw new U(2,3,3011);O=M/1E9;L*=O;F=xt(new wt(F));if(475249515!=F.id)throw new U(2,3,3007);F=Ct(F,K,O,L,d,c,B,A,C)}z=F;D=t(z);for(E=D.next();!E.done;E=
975
976
  D.next())H=E.value,H.codecs=a.M.codecs,H.mimeType=a.M.mimeType,H.bandwidth=a.bandwidth;h.Ud(z);r=new pl(z);k&&r.fd(A,C,!0);return J.return(r)})}function Ht(a){return a.xd}function Jt(a){var b=qt(a,Ht,"RepresentationIndex");a=pt(a,Ht,"indexRange");a=Ae(a||"");b&&(a=ve(b,"range",Ae,a));return a}function It(a,b){Lt(a,b);if(!Jt(a))throw new U(2,4,4002);}
976
977
  function Lt(a,b){var c=a.M.mimeType.split("/")[1];if(a.M.contentType!=Xc&&"mp4"!=c&&"webm"!=c)throw new U(2,4,4006);if("webm"==c&&!b)throw new U(2,4,4005);}
977
- function Ft(a){var b=a.M;return{bandwidth:a.bandwidth,audioSamplingRate:b.audioSamplingRate,codecs:b.codecs,contentType:b.contentType,frameRate:b.frameRate||null,height:b.height||null,mimeType:b.mimeType,channelsCount:b.Ve,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null,label:a.ua.label||null,roles:a.roles||null,language:a.ua.language||null}};function Mt(a,b,c){var d=Et(a,Nt,c),e=Ot(a);if(!e.hb&&!e.timeline&&1<e.qd.length)throw new U(2,4,4002);if(!e.hb&&!a.wa.duration&&!e.timeline&&1==e.qd.length)throw new U(2,4,4002);if(e.timeline&&0==e.timeline.length)throw new U(2,4,4002);var f=null,g=null;a.Ba.id&&a.M.id&&(g=b[a.Ba.id+","+a.M.id])&&(f=g.segmentIndex);var h=Pt(a.wa.start,a.wa.duration,a.M.cb,e,d,c,a.M.mimeType,a.M.codecs,a.bandwidth,a.Db);b=!f;f?f.Td(h,a.presentationTimeline.Hb()):f=new pl(h);a.presentationTimeline.Ud(h);a.Tb&&a.wa.xg||
978
- f.fd(a.wa.start,a.wa.duration?a.wa.start+a.wa.duration:Infinity,b);g&&(g.segmentIndex=f);return{Ic:function(){f&&0!=f.getNumReferences()||f.Re(h);return Promise.resolve(f)}}}function Nt(a){return a.lc}function Ot(a){var b=Qt(a);a=ot(a,Nt);var c=a.$d;0==c&&(c=1);var d=0;a.hb?d=a.hb*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{hb:a.hb,startTime:d,$d:c,kc:a.kc,timeline:a.timeline,qd:b}}
979
- function Pt(a,b,c,d,e,f,g,h,k,l){var m=d.qd.length;d.timeline&&d.timeline.length!=d.qd.length&&(m=Math.min(d.timeline.length,d.qd.length));for(var n=a-d.kc,p=b?a+b:Infinity,r=[],u=d.startTime,v={},w=0;w<m;v={pf:void 0,ef:void 0},w++){v.ef=d.qd[w];var y=u;u=void 0;u=null!=d.hb?y+d.hb:d.timeline?d.timeline[w].end:y+b;v.pf=null;v=new gj(a+y,a+u,function(z){return function(){null==z.pf&&(z.pf=Qc(c(),[z.ef.dk],l()));return z.pf}}(v),v.ef.start,v.ef.end,e,n,a,p,[],"",null,null,hj,f);v.codecs=h;v.mimeType=
980
- g;v.bandwidth=k;r.push(v)}return r}function Qt(a){return[a.M.lc,a.ua.lc,a.Ba.lc].filter(Yf).map(function(b){return oe(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.attributes.indexRange&&!a.ug&&(a.ug=!0);var c=Ic(b.attributes.media);b=ve(b,"mediaRange",Ae,{start:0,end:null});return{dk:c,start:b.start,end:b.end}})};function Rt(a,b,c,d,e,f,g,h,k){k||a.M.He||(a.M.He=pt(a,St,"initialization"));var l=a.M.He?Tt(a,g):null,m=Ut(a);Vt(m);var n=ce(a);if(m.Od)return Lt(a,l),{Ic:function(){var w=nt(m.Od,n.M.id,null,null,n.bandwidth||null,null);w=Qc(n.M.cb(),[w]);return Kt(n,b,l,w,0,null,m.kc)}};if(m.hb)return d||"image"===a.ua.contentType||"text"===a.ua.contentType||(c=a.wa.start,d=a.Ba.id,k=a.wa.duration,d=(d=null!=d&&f[d]||k)?c+d:Infinity,a.presentationTimeline.Eg(m.hb),a.presentationTimeline.$h(c,d)),{Ic:function(){return Wt(n,
981
- m,e,l,f,g,h,a.M.gf)}};var p=null;d=d=null;a.Ba.id&&a.M.id&&(d=a.Ba.id+","+a.M.id,d=c[d])&&(p=d.segmentIndex);var r=a.wa.start,u=a.wa.duration?r+a.wa.duration:Infinity,v=!(a.Tb&&a.wa.xg);p?(c=p,Xt(c,m,r,u,v,l),c.Ya(a.presentationTimeline.Hb())):p=new Yt(m,a.M.id,a.bandwidth,a.M.cb,a.Db,r,u,l,v,g,a.M.gf);m.timeline&&"image"!==a.ua.contentType&&"text"!==a.ua.contentType&&a.presentationTimeline.ai(m.timeline,r);d&&a.Tb&&(d.segmentIndex=p);return{Ic:function(){p instanceof Yt&&0==p.getNumReferences()&&
978
+ function Ft(a){var b=a.M;return{bandwidth:a.bandwidth,audioSamplingRate:b.audioSamplingRate,codecs:b.codecs,contentType:b.contentType,frameRate:b.frameRate||null,height:b.height||null,mimeType:b.mimeType,channelsCount:b.Ve,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null,label:a.ua.label||null,roles:a.roles||null,language:a.ua.language||null}};function Mt(a,b,c){var d=Et(a,Nt,c),e=Ot(a);if(!e.hb&&!e.timeline&&1<e.qd.length)throw new U(2,4,4002);if(!e.hb&&!a.wa.duration&&!e.timeline&&1==e.qd.length)throw new U(2,4,4002);if(e.timeline&&0==e.timeline.length)throw new U(2,4,4002);var f=null,g=null;a.Ba.id&&a.M.id&&(g=b[a.Ba.id+","+a.M.id])&&(f=g.segmentIndex);var h=Pt(a.wa.start,a.wa.duration,a.M.cb,e,d,c,a.M.mimeType,a.M.codecs,a.bandwidth,a.Db);b=!f;f?f.Td(h,a.presentationTimeline.Hb()):f=new pl(h);a.presentationTimeline.Ud(h);a.Tb&&a.wa.wg||
979
+ f.fd(a.wa.start,a.wa.duration?a.wa.start+a.wa.duration:Infinity,b);g&&(g.segmentIndex=f);return{Kc:function(){f&&0!=f.getNumReferences()||f.Re(h);return Promise.resolve(f)}}}function Nt(a){return a.lc}function Ot(a){var b=Qt(a);a=ot(a,Nt);var c=a.$d;0==c&&(c=1);var d=0;a.hb?d=a.hb*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{hb:a.hb,startTime:d,$d:c,kc:a.kc,timeline:a.timeline,qd:b}}
980
+ function Pt(a,b,c,d,e,f,g,h,k,l){var m=d.qd.length;d.timeline&&d.timeline.length!=d.qd.length&&(m=Math.min(d.timeline.length,d.qd.length));for(var n=a-d.kc,p=b?a+b:Infinity,r=[],u=d.startTime,v={},w=0;w<m;v={nf:void 0,df:void 0},w++){v.df=d.qd[w];var y=u;u=void 0;u=null!=d.hb?y+d.hb:d.timeline?d.timeline[w].end:y+b;v.nf=null;v=new gj(a+y,a+u,function(z){return function(){null==z.nf&&(z.nf=Qc(c(),[z.df.dk],l()));return z.nf}}(v),v.df.start,v.df.end,e,n,a,p,[],"",null,null,hj,f);v.codecs=h;v.mimeType=
981
+ g;v.bandwidth=k;r.push(v)}return r}function Qt(a){return[a.M.lc,a.ua.lc,a.Ba.lc].filter(Yf).map(function(b){return oe(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.attributes.indexRange&&!a.sg&&(a.sg=!0);var c=Ic(b.attributes.media);b=ve(b,"mediaRange",Ae,{start:0,end:null});return{dk:c,start:b.start,end:b.end}})};function Rt(a,b,c,d,e,f,g,h,k){k||a.M.He||(a.M.He=pt(a,St,"initialization"));var l=a.M.He?Tt(a,g):null,m=Ut(a);Vt(m);var n=ce(a);if(m.Od)return Lt(a,l),{Kc:function(){var w=nt(m.Od,n.M.id,null,null,n.bandwidth||null,null);w=Qc(n.M.cb(),[w]);return Kt(n,b,l,w,0,null,m.kc)}};if(m.hb)return d||"image"===a.ua.contentType||"text"===a.ua.contentType||(c=a.wa.start,d=a.Ba.id,k=a.wa.duration,d=(d=null!=d&&f[d]||k)?c+d:Infinity,a.presentationTimeline.Dg(m.hb),a.presentationTimeline.$h(c,d)),{Kc:function(){return Wt(n,
982
+ m,e,l,f,g,h,a.M.ef)}};var p=null;d=d=null;a.Ba.id&&a.M.id&&(d=a.Ba.id+","+a.M.id,d=c[d])&&(p=d.segmentIndex);var r=a.wa.start,u=a.wa.duration?r+a.wa.duration:Infinity,v=!(a.Tb&&a.wa.wg);p?(c=p,Xt(c,m,r,u,v,l),c.Ya(a.presentationTimeline.Hb())):p=new Yt(m,a.M.id,a.bandwidth,a.M.cb,a.Db,r,u,l,v,g,a.M.ef);m.timeline&&"image"!==a.ua.contentType&&"text"!==a.ua.contentType&&a.presentationTimeline.ai(m.timeline,r);d&&a.Tb&&(d.segmentIndex=p);return{Kc:function(){p instanceof Yt&&0==p.getNumReferences()&&
982
983
  Xt(p,m,r,u,v,l);return Promise.resolve(p)}}}function St(a){return a.Bc}function Ut(a){var b=ot(a,St),c=pt(a,St,"media"),d=pt(a,St,"index"),e=pt(a,St,"k"),f=0;e&&(f=parseInt(e,10));return{hb:b.hb,timescale:b.timescale,$d:b.$d,kc:b.kc,ih:b.ih,timeline:b.timeline,xc:c&&Ic(c),Od:d,mimeType:a.M.mimeType,codecs:a.M.codecs,bandwidth:a.bandwidth,ek:f}}
983
984
  function Vt(a){var b=a.Od?1:0;b+=a.timeline?1:0;b+=a.hb?1:0;if(0==b)throw new U(2,4,4002);1!=b&&(a.Od&&(a.timeline=null),a.hb=null);if(!a.Od&&!a.xc)throw new U(2,4,4002);}
984
985
  function Wt(a,b,c,d,e,f,g,h){function k(O){var M=(O-w)*v,N=M+b.kc,Q=M+p;M=Q+v;var S=Math.min(M,m()),aa=[],qa=b.ek;if(qa)for(var ca=(S-Q)/qa,la={},Ja=0;Ja<qa;la={Bi:void 0},Ja++){var Na=Q+ca*Ja,cb=Na+ca;la.Bi=Ja+1;la=new gj(Na,cb,function(Va){return function(){var ya=N*y;"BigInt"in window&&ya>Number.MAX_SAFE_INTEGER&&(ya=BigInt(N)*BigInt(y));ya=nt(z,A,O,Va.Bi,B,ya);return Qc(C(),[ya],D())}}(la),0,null,d,E,p,m(),[],"",null,null,hj,f);la.codecs=a.M.codecs;la.mimeType=a.M.mimeType;0==h?0<Ja&&la.od():
985
986
  0!=Ja%h&&la.od();aa.push(la)}Q=new gj(Q,S,function(){if(qa)return[];var Va=N*y;"BigInt"in window&&Va>Number.MAX_SAFE_INTEGER&&(Va=BigInt(N)*BigInt(y));Va=nt(z,A,O,null,B,Va);return Qc(C(),[Va],D())},0,null,d,E,p,m(),aa,"",null,null,hj,f,0<aa.length);Q.codecs=a.M.codecs;Q.mimeType=a.M.mimeType;Q.bandwidth=a.bandwidth;Q.j=M;return Q}function l(){var O=[Math.max(n.Hb(),p),Math.min(n.sc(),m())].map(function(M){return M-p});O=[Math.ceil(O[0]/v),Math.ceil(O[1]/v)-1];a.M.ob&&O[1]++;return O.map(function(M){return M+
986
- w})}function m(){var O=null!=r&&e[r]||u;return O?p+O:Infinity}var n=a.presentationTimeline,p=a.wa.start,r=a.Ba.id,u=a.wa.duration,v=b.hb,w=b.$d,y=b.timescale,z=b.xc,B=a.bandwidth||null,A=a.M.id,C=a.M.cb,D=a.Db,E=p-b.kc,H=l();c=a.Tb?Math.max(H[0],H[1]-c+1):H[0];g=g||H[1];H=[];for(var J=c;J<=g;++J){var F=k(J);H.push(F)}var K=new pl(H);H=n.sc()<m();J=n.T();if(H||J){var L=Math.max(c,g+1);c=v;a.M.ob&&(c=.1);K.nf(c,function(){var O=n.Hb();K.Ya(O);var M=t(l());M.next();M=M.next().value;for(var N=[];L<=M;){var Q=
987
+ w})}function m(){var O=null!=r&&e[r]||u;return O?p+O:Infinity}var n=a.presentationTimeline,p=a.wa.start,r=a.Ba.id,u=a.wa.duration,v=b.hb,w=b.$d,y=b.timescale,z=b.xc,B=a.bandwidth||null,A=a.M.id,C=a.M.cb,D=a.Db,E=p-b.kc,H=l();c=a.Tb?Math.max(H[0],H[1]-c+1):H[0];g=g||H[1];H=[];for(var J=c;J<=g;++J){var F=k(J);H.push(F)}var K=new pl(H);H=n.sc()<m();J=n.T();if(H||J){var L=Math.max(c,g+1);c=v;a.M.ob&&(c=.1);K.mf(c,function(){var O=n.Hb();K.Ya(O);var M=t(l());M.next();M=M.next().value;for(var N=[];L<=M;){var Q=
987
988
  k(L);N.push(Q);L++}return O>m()&&!N.length?null:N})}return Promise.resolve(K)}function Tt(a,b){var c=a.M.He;c||(c=pt(a,St,"initialization"));if(!c)return null;c=Ic(c);var d=a.M.id,e=a.bandwidth||null,f=a.M.cb,g=a.Db;b=new ej(function(){var h=nt(c,d,null,null,e,null);return Qc(f(),[h],g())},0,null,Ft(a),null,null,b);b.codecs=a.M.codecs;b.mimeType=a.M.mimeType;return b}
988
989
  function Yt(a,b,c,d,e,f,g,h,k,l,m){pl.call(this,[]);this.h=a;this.H=b;this.C=c;this.G=d;this.J=e;this.j=f;this.l=g;this.u=h;this.A=l;this.I=m;k&&Zt(this)}ra(Yt,pl);q=Yt.prototype;q.getNumReferences=function(){return this.h?this.h.timeline.length:0};q.release=function(){pl.prototype.release.call(this);this.h=null};
989
990
  q.Ya=function(a){if(this.h){for(var b=0,c=this.h.timeline,d=0;d<c.length;d+=1)if(c[d].end+this.j<=a)b+=1;else break;0<b&&(this.h.timeline=c.slice(b),this.g.length>=b&&(this.g=this.g.slice(b)),this.i+=b,0===this.getNumReferences()&&this.release())}};
990
991
  function Xt(a,b,c,d,e,f){$t(a,f);if(a.h){c=a.h.timeline;a.h.xc!==b.xc&&(a.h.xc=b.xc);if(c.length){var g=c[c.length-1];b=b.timeline.filter(function(h){return h.end>g.end})}else b=b.timeline.slice();0<b.length&&a.h.timeline.push.apply(a.h.timeline,x(b));a.l!==d&&(a.l=d)}else a.h=b,a.j=c,a.l=d;e&&Zt(a)}function $t(a,b){if(a.u!==b){a.u=b;a=t(a.g);for(var c=a.next();!c.done;c=a.next())(c=c.value)&&jj(c,b)}}
991
992
  function Zt(a){if(!a.s){for(var b=a.h.timeline;b.length;)if(b[b.length-1].start>=a.l)b.pop();else break;a.Ya(a.j)}}q.find=function(a){if(this.h&&this.h.timeline&&this.h.timeline.length&&a<this.h.timeline[0].start+this.j)return this.i;if(!this.h)return null;var b=this.h.timeline;if(a<this.j||a>=this.l)return null;for(var c=b.length-1,d=0;d<b.length;d++){var e=b[d],f=e.start+this.j;e=d<c?b[d+1].start+this.j:Infinity===this.l?e.end+this.j:this.l;if(a>=f&&a<e)return d+this.i}return null};
992
- q.get=function(a){var b=this;a-=this.i;if(0>a||a>=this.getNumReferences()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.timeline[a],e=d.Ck,f=this.h.ih+d.jh;c=this.j-this.h.kc;var g=this.j+d.end,h=g;a===this.getNumReferences()-1&&Infinity!==this.l&&(h=this.l);for(var k=this.h.codecs,l=this.h.mimeType,m=this.h.bandwidth,n=[],p=(d.end-d.start)/d.Xb,r={},u=0;u<d.Xb;r={qf:void 0,Ci:void 0},u++){var v=d.start+p*u,w=v+p;r.Ci=u+1;r.qf=null;r=new gj(this.j+v,this.j+w,function(y){return function(){if(!b.h)return[];
993
- null==y.qf&&(y.qf=au(b.h.xc,b.H,e,b.C,f,y.Ci,b.G,b.J));return y.qf}}(r),0,null,this.u,c,this.j,this.l,[],"",null,null,hj,this.A);r.codecs=k;r.mimeType=l;r.bandwidth=m;0==this.I?0<u&&r.od():0!=u%this.I&&r.od();n.push(r)}c=new gj(this.j+d.start,h,function(){return 0<d.Xb||!b.h?[]:au(b.h.xc,b.H,e,b.C,f,null,b.G,b.J)},0,null,this.u,c,this.j,this.l,n,"",null,null,hj,this.A,0<d.Xb);c.codecs=k;c.mimeType=l;c.j=g;c.bandwidth=m;this.g[a]=c}return c};
993
+ q.get=function(a){var b=this;a-=this.i;if(0>a||a>=this.getNumReferences()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.timeline[a],e=d.Ck,f=this.h.ih+d.jh;c=this.j-this.h.kc;var g=this.j+d.end,h=g;a===this.getNumReferences()-1&&Infinity!==this.l&&(h=this.l);for(var k=this.h.codecs,l=this.h.mimeType,m=this.h.bandwidth,n=[],p=(d.end-d.start)/d.Xb,r={},u=0;u<d.Xb;r={pf:void 0,Ci:void 0},u++){var v=d.start+p*u,w=v+p;r.Ci=u+1;r.pf=null;r=new gj(this.j+v,this.j+w,function(y){return function(){if(!b.h)return[];
994
+ null==y.pf&&(y.pf=au(b.h.xc,b.H,e,b.C,f,y.Ci,b.G,b.J));return y.pf}}(r),0,null,this.u,c,this.j,this.l,[],"",null,null,hj,this.A);r.codecs=k;r.mimeType=l;r.bandwidth=m;0==this.I?0<u&&r.od():0!=u%this.I&&r.od();n.push(r)}c=new gj(this.j+d.start,h,function(){return 0<d.Xb||!b.h?[]:au(b.h.xc,b.H,e,b.C,f,null,b.G,b.J)},0,null,this.u,c,this.j,this.l,n,"",null,null,hj,this.A,0<d.Xb);c.codecs=k;c.mimeType=l;c.j=g;c.bandwidth=m;this.g[a]=c}return c};
994
995
  q.Ub=function(a){Zt(this);for(var b=0;b<this.getNumReferences();b++){var c=this.get(b+this.i);c&&a(c)}};function au(a,b,c,d,e,f,g,h){a=nt(a,b,c,f,d||null,e);return Qc(g(),[a],h()).map(function(k){return k.toString()})};function bu(a){this.s=null;this.A=a;this.I=new uh;this.i=[];this.h=null;this.m=[];this.C=null;this.H=[];this.G=300;this.l=new Map;this.j=new Map;this.g=null;this.u="UNKNOWN"}bu.prototype.configure=function(a){this.s=a};bu.prototype.destroy=function(){this.A=this.s=null;this.i=[];this.h=null;this.m=[];this.H=[];this.l.clear();null!=this.g&&(this.g.stop(),this.g=null);return this.I.destroy()};bu.prototype.setManifestType=function(a){this.u=a};
995
996
  function cu(a,b){var c,d,e,f,g,h,k;return P(function(l){if(1==l.g)return c=Qc(a.i,[du(a,b)]),d=Dh(c,a.s.retryParameters),e=a.A.networkingEngine.request(8,d),vh(a.I,e),va(l,2),G(l,e.promise,4);if(2!=l.g)return f=l.h,g=Bc(f.data),h=JSON.parse(g),1==h.VERSION&&eu(a,h,f.uri),xa(l,0);if((k=za(l))&&7001==k.code)return l.return();null!=a.g&&(a.g.stop(),a.g=null);a.g=new Xb(function(){cu(a,b)});a.g.X(a.G);I(l)})}
996
997
  function du(a,b){if(!a.m.length)return b;b=new pb(b);var c=a.C||a.m[0],d=Math.round(a.A.getBandwidthEstimate()),e=b.g;"DASH"==a.u?(e.add("_DASH_pathway",c),e.add("_DASH_throughput",String(d))):"HLS"==a.u&&(e.add("_HLS_pathway",c),e.add("_HLS_throughput",String(d)));Fb(e)&&tb(b,e);return b.toString()}function eu(a,b,c){null!=a.g&&(a.g.stop(),a.g=null);var d=b["RELOAD-URI"]||c;a.g=new Xb(function(){cu(a,d)});if(c=b.TTL)a.G=c;a.g.X(a.G);a.m=b["PATHWAY-PRIORITY"]||[];a.H=b["PATHWAY-CLONES"]||[]}
997
998
  function fu(a,b,c,d){var e=a.l.get(b);e||(e=new Map);e.set(c,d);a.l.set(b,e)}bu.prototype.banLocation=function(a){this.j.set(a,Date.now()+6E4)};
998
- function gu(a,b,c){c=void 0===c?!1:c;b=a.l.get(b)||new Map;for(var d=[],e=t(a.m),f=e.next(),g={};!f.done;g={sd:void 0},f=e.next())if(g.sd=f.value,f=b.get(g.sd))d.push({Kg:g.sd,location:f});else if(f=a.H.find(function(k){return function(l){return l.ol==k.sd}}(g))){var h=b.get(f["BASE-ID"]);h&&(f["URI-REPLACEMENT"].Ni?(h=new pb(h),rb(h,f["URI-REPLACEMENT"].Ni),d.push({Kg:g.sd,location:h.toString()})):d.push({Kg:g.sd,location:h}))}e=Date.now();g=t(a.j.keys());for(f=g.next();!f.done;f=g.next())f=f.value,
999
- h=a.j.get(f),e>h&&a.j.delete(f);d=d.filter(function(k){for(var l=t(a.j.keys()),m=l.next();!m.done;m=l.next())if(m.value.includes((new pb(k.location)).bc))return!1;return!0});d.length&&(a.C=d[0].Kg);d=d.map(function(k){return k.location});if(!d.length&&a.h)for(e=t(a.h.split(",")),g=e.next();!g.done;g=e.next())if(g=b.get(g.value))a.C=a.h,d.push(g);if(!d.length)for(b=t(b.values()),e=b.next();!e.done;e=b.next())d.push(e.value);return c?d:Qc(a.i,d)};function hu(){this.l=[];this.h=[];this.g=[];this.j=[];this.i=[];this.u=this.s=!1;this.m=new Set}q=hu.prototype;q.release=function(){for(var a=t(this.h.concat(this.g,this.j,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.h=[];this.g=[];this.j=[];this.i=[];this.l=[];this.u=this.s=!1;this.m.clear()};q.Ij=function(){return this.l};q.ng=function(){return this.j.slice()};q.mj=function(){return this.i};
999
+ function gu(a,b,c){c=void 0===c?!1:c;b=a.l.get(b)||new Map;for(var d=[],e=t(a.m),f=e.next(),g={};!f.done;g={sd:void 0},f=e.next())if(g.sd=f.value,f=b.get(g.sd))d.push({Jg:g.sd,location:f});else if(f=a.H.find(function(k){return function(l){return l.ol==k.sd}}(g))){var h=b.get(f["BASE-ID"]);h&&(f["URI-REPLACEMENT"].Ni?(h=new pb(h),rb(h,f["URI-REPLACEMENT"].Ni),d.push({Jg:g.sd,location:h.toString()})):d.push({Jg:g.sd,location:h}))}e=Date.now();g=t(a.j.keys());for(f=g.next();!f.done;f=g.next())f=f.value,
1000
+ h=a.j.get(f),e>h&&a.j.delete(f);d=d.filter(function(k){for(var l=t(a.j.keys()),m=l.next();!m.done;m=l.next())if(m.value.includes((new pb(k.location)).bc))return!1;return!0});d.length&&(a.C=d[0].Jg);d=d.map(function(k){return k.location});if(!d.length&&a.h)for(e=t(a.h.split(",")),g=e.next();!g.done;g=e.next())if(g=b.get(g.value))a.C=a.h,d.push(g);if(!d.length)for(b=t(b.values()),e=b.next();!e.done;e=b.next())d.push(e.value);return c?d:Qc(a.i,d)};function hu(){this.l=[];this.h=[];this.g=[];this.j=[];this.i=[];this.u=this.s=!1;this.m=new Set}q=hu.prototype;q.release=function(){for(var a=t(this.h.concat(this.g,this.j,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.h=[];this.g=[];this.j=[];this.i=[];this.l=[];this.u=this.s=!1;this.m.clear()};q.Ij=function(){return this.l};q.mg=function(){return this.j.slice()};q.mj=function(){return this.i};
1000
1001
  q.Bh=function(a,b){if(a){if("audio"==a.type)for(var c=t(this.h),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a});else if("video"==a.type)for(c=t(this.g),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a}),d.trickModeVideo&&(d.trickModeVideo.matchedStreams=d.trickModeVideo.matchedStreams.filter(function(e){return e!==a}));else if(a.type==Xc)for(c=t(this.j),d=c.next();!d.done;d=c.next())d=
1001
1002
  d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a});else if("image"==a.type)for(c=t(this.i),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a});a.segmentIndex&&a.closeSegmentIndex();this.m.delete(b)}};
1002
1003
  function iu(a,b){var c=[],d=[],e=[],f=[];a=t(a);for(var g=a.next();!g.done;g=a.next()){var h=g.value;g=new Map(h.audioStreams.map(function(n){return[ju(n),n]}));var k=new Map(h.videoStreams.map(function(n){return[ku(n),n]})),l=new Map(h.textStreams.map(function(n){return[lu(n),n]}));h=new Map(h.imageStreams.map(function(n){return[mu(n),n]}));if(b){var m=nu(Xc);l.set(lu(m),m);m=nu("image");h.set(mu(m),m)}c.push(g);d.push(k);e.push(l);f.push(h)}return{qh:c,Ki:d,Ei:e,Oh:f}}
1003
- q.Nf=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,B,A,C,D,E,H,J,F,K,L,O,M,N,Q,S;return P(function(aa){if(1==aa.g){e=Zc;if(!b&&1==a.length)return f=iu(a,!1),g=f.qh,h=f.Ki,k=f.Ei,l=f.Oh,d.h=Array.from(g[0].values()),d.g=Array.from(h[0].values()),d.j=Array.from(k[0].values()),d.i=Array.from(l[0].values()),aa.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 aa.return();u=iu(a,!0);v=u.qh;w=u.Ki;y=u.Ei;z=u.Oh;
1004
+ q.Mf=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,B,A,C,D,E,H,J,F,K,L,O,M,N,Q,S;return P(function(aa){if(1==aa.g){e=Zc;if(!b&&1==a.length)return f=iu(a,!1),g=f.qh,h=f.Ki,k=f.Ei,l=f.Oh,d.h=Array.from(g[0].values()),d.g=Array.from(h[0].values()),d.j=Array.from(k[0].values()),d.i=Array.from(l[0].values()),aa.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 aa.return();u=iu(a,!0);v=u.qh;w=u.Ki;y=u.Ei;z=u.Oh;
1004
1005
  return G(aa,Promise.all([ou(d,d.h,v,n,pu,qu,m),ou(d,d.g,w,n,pu,qu,m),ou(d,d.j,y,n,pu,qu,m),ou(d,d.i,z,n,pu,qu,m)]),2)}B=0;A=[];if(d.g.length&&d.h.length)for(F=t(d.h),K=F.next();!K.done;K=F.next())for(L=K.value,O=t(d.g),M=O.next();!M.done;M=O.next())N=M.value,Q=Sb(L.drmInfos,N.drmInfos),L.drmInfos.length&&N.drmInfos.length&&!Q.length||(S=B++,A.push({id:S,language:L.language,disabledUntilTime:0,primary:L.primary,audio:L,video:N,bandwidth:(L.bandwidth||0)+(N.bandwidth||0),drmInfos:Q,allowedByApplication:!0,
1005
1006
  allowedByKeySystem:!0,decodingInfos:[]}));else for(C=d.g.length?d.g:d.h,D=t(C),E=D.next();!E.done;E=D.next())H=E.value,J=B++,A.push({id:J,language:H.language,disabledUntilTime:0,primary:H.primary,audio:H.type==e.ia?H:null,video:H.type==e.xa?H:null,bandwidth:H.bandwidth||0,drmInfos:H.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});d.l=A;I(aa)})};
1006
1007
  function ru(a){var b,c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,B,A,C,D,E,H,J,F,K,L,O,M;return P(function(N){switch(N.g){case 1:b=Zc;if(1==a.length)return N.return(a[0]);c=a.map(function(Q){return new Map(Q.filter(function(S){return S.type===b.ia}).map(function(S){return[ju(S),S]}))});d=a.map(function(Q){return new Map(Q.filter(function(S){return S.type===b.xa}).map(function(S){return[ku(S),S]}))});e=a.map(function(Q){return new Map(Q.filter(function(S){return S.type===b.Na}).map(function(S){return[lu(S),
1007
- S]}))});f=a.map(function(Q){return new Map(Q.filter(function(S){return S.type===b.Cf}).map(function(S){return[mu(S),S]}))});g=t(e);for(h=g.next();!h.done;h=g.next())k=h.value,l=su(b.Na),k.set(lu(l),l);m=t(f);for(n=m.next();!n.done;n=m.next())p=n.value,r=su(b.Cf),p.set(mu(r),r);u=new hu;return G(N,ou(u,[],c,0,tu,uu,0),2);case 2:return v=N.h,G(N,ou(u,[],d,0,tu,uu,0),3);case 3:return w=N.h,G(N,ou(u,[],e,0,tu,uu,0),4);case 4:return y=N.h,G(N,ou(u,[],f,0,tu,uu,0),5);case 5:z=N.h;B=0;if(w.length&&v.length)for(H=
1008
+ S]}))});f=a.map(function(Q){return new Map(Q.filter(function(S){return S.type===b.Bf}).map(function(S){return[mu(S),S]}))});g=t(e);for(h=g.next();!h.done;h=g.next())k=h.value,l=su(b.Na),k.set(lu(l),l);m=t(f);for(n=m.next();!n.done;n=m.next())p=n.value,r=su(b.Bf),p.set(mu(r),r);u=new hu;return G(N,ou(u,[],c,0,tu,uu,0),2);case 2:return v=N.h,G(N,ou(u,[],d,0,tu,uu,0),3);case 3:return w=N.h,G(N,ou(u,[],e,0,tu,uu,0),4);case 4:return y=N.h,G(N,ou(u,[],f,0,tu,uu,0),5);case 5:z=N.h;B=0;if(w.length&&v.length)for(H=
1008
1009
  t(v),J=H.next();!J.done;J=H.next())for(F=J.value,K=t(w),L=K.next();!L.done;L=K.next())O=L.value,M=B++,O.variantIds.push(M),F.variantIds.push(M);else for(A=w.concat(v),C=t(A),D=C.next();!D.done;D=C.next())E=D.value,E.variantIds=[B++];return N.return(w.concat(v).concat(y).concat(z))}})}
1009
1010
  function ou(a,b,c,d,e,f,g){var h,k,l,m,n,p,r,u,v,w,y,z,B,A,C,D,E,H,J,F;return P(function(K){switch(K.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){K.B(4);break}n=m.value;return G(K,vu(a,n,c,d,f,h,g),5);case 5:p=K.h;if(!p)throw new U(2,4,4037);m=l.next();K.B(2);break;case 4:r=t(h);for(u=r.next();!u.done;u=r.next())for(v=u.value,w=t(v),y=w.next();!y.done;y=w.next())z=y.value,(B=wu(a,z,c,e,f,h))&&b.push(B);A=t(h);for(C=A.next();!C.done;C=
1010
1011
  A.next())for(D=C.value,E=t(D),H=E.next(),J={};!H.done;J={bh:void 0},H=E.next())if(J.bh=H.value,!xu(J.bh)&&(F=b.some(function(L){return function(O){return yu(a,L.bh,O)}}(J))))throw new U(2,4,4037);return K.return(b)}})}function vu(a,b,c,d,e,f,g){return P(function(h){if(1==h.g)return zu(a,c,b,0<g),b.matchedStreams?b.segmentIndex?G(h,Au(b,d+g),2):h.B(2):h.return(!1);Bu(b,d,e,f,g);return h.return(!0)})}
@@ -1029,7 +1030,7 @@ function su(a){return{id:0,originalId:"",groupId:null,primary:!1,type:a,mimeType
1029
1030
  function nu(a){return{id:0,originalId:"",groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new pl([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",originalLanguage:null,label:null,type:a,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}}
1030
1031
  function Lu(a,b,c){if(b==a&&a!=c)return Nu;if(c==a&&a!=b)return Mu;if(b>a){if(c<=a||c-a<b-a)return Mu;if(c-a>b-a)return Nu}else{if(c>a)return Nu;if(a-c<a-b)return Mu;if(a-c>a-b)return Nu}return Pu}function Ou(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?Mu:b<a?Nu:Pu}function xu(a){switch(a.type){case Xc:return!a.language;case "image":return!a.tilesLayout;default:return!1}}
1031
1032
  function ku(a){return JSON.stringify([a.fastSwitching,a.width,a.frameRate,Ku(a.codecs),a.mimeType,a.label,a.roles,a.closedCaptions?Array.from(a.closedCaptions.entries()):null,a.bandwidth])}function ju(a){return JSON.stringify([a.fastSwitching,a.channelsCount,a.language,a.bandwidth,a.label,Ku(a.codecs),a.mimeType,a.roles,a.audioSamplingRate,a.primary])}function lu(a){return JSON.stringify([a.language,a.label,a.codecs,a.mimeType,a.bandwidth,a.roles])}
1032
- function mu(a){return JSON.stringify([a.width,a.codecs,a.mimeType])}function Ku(a){if(!Qu.has(a)){var b=Hf(a);Qu.set(a,b)}return Qu.get(a)}R("shaka.util.PeriodCombiner",hu);hu.prototype.setUseStreamOnce=hu.prototype.wi;hu.prototype.setAllowMultiTypeVariants=hu.prototype.li;hu.prototype.combinePeriods=hu.prototype.Nf;hu.prototype.deleteStream=hu.prototype.Bh;hu.prototype.getImageStreams=hu.prototype.mj;hu.prototype.getTextStreams=hu.prototype.ng;hu.prototype.getVariants=hu.prototype.Ij;
1033
+ function mu(a){return JSON.stringify([a.width,a.codecs,a.mimeType])}function Ku(a){if(!Qu.has(a)){var b=Hf(a);Qu.set(a,b)}return Qu.get(a)}R("shaka.util.PeriodCombiner",hu);hu.prototype.setUseStreamOnce=hu.prototype.wi;hu.prototype.setAllowMultiTypeVariants=hu.prototype.li;hu.prototype.combinePeriods=hu.prototype.Mf;hu.prototype.deleteStream=hu.prototype.Bh;hu.prototype.getImageStreams=hu.prototype.mj;hu.prototype.getTextStreams=hu.prototype.mg;hu.prototype.getVariants=hu.prototype.Ij;
1033
1034
  var Mu=1,Pu=0,Nu=-1,Qu=new Map;function Ru(a,b){var c=new DOMParser,d=Su.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 Tu(a,b){try{var c=Ec(a);return Ru(c,b)}catch(d){return null}}
1034
1035
  var Su=new Qb(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 Uu(){var a=this;this.j=this.g=null;this.A=[];this.i=null;this.Ca=1;this.H=[];this.l={Te:"",type:"",profiles:[],hc:null,ob:0,cb:null,Vd:0};this.u=new Map;this.s={};this.C={};this.na={};this.m=new hu;this.L=0;this.ra=new rd(5);this.N=new Xb(function(){if(a.K&&!a.g.continueLoadingWhenPaused&&(a.I.Ma(a.K,"timeupdate"),a.K.paused)){a.I.sa(a.K,"timeupdate",function(){return Vu(a)});return}Vu(a)});this.S=new uh;this.P=null;this.G=[];this.aa=Infinity;this.J=!1;this.h=null;this.O=0;this.ka=!1;this.I=
1035
1036
  new ud;this.K=null;this.V=!1;this.$="";this.ha=function(){return!1};this.Y=[]}q=Uu.prototype;q.configure=function(a,b){var c=this.j&&a.dash.updatePeriod!=this.g.dash.updatePeriod&&0<=a.dash.updatePeriod;this.g=a;b&&(this.ha=b);c&&this.i&&this.i.presentationTimeline.T()&&this.N.Sa();this.h&&this.h.configure(this.g);this.m&&(this.m.li(this.g.dash.multiTypeVariantsAllowed&&Bd()),this.m.wi(this.g.dash.useStreamOnceInPeriodFlattening))};
@@ -1040,24 +1041,24 @@ q.banLocation=function(a){this.h&&this.h.banLocation(a)};q.setMediaElement=funct
1040
1041
  function Wu(a){var b,c,d,e,f,g,h,k,l,m,n;return P(function(p){if(1==p.g)return b=4,c="MPD",d=Yu(a),e=a.A,d.length?(e=d,c="Patch",b=6):1<a.A.length&&a.h&&(f=gu(a.h,"Location",!0),f.length&&(e=f)),g=Dh(e,a.g.retryParameters),h=Date.now(),G(p,Zu(a,g,0,{type:b}),2);if(3!=p.g){k=p.h;if(!a.j)return p.return(0);k.uri&&k.uri!=k.originalUri&&!a.A.includes(k.uri)&&a.A.unshift(k.uri);l=new pb(k.uri);a.$=l.g.toString();return G(p,$u(a,k.data,k.uri,c),3)}m=Date.now();n=(m-h)/1E3;a.ra.sample(1,n);return p.return(n)})}
1041
1042
  function $u(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u;return P(function(v){if(1==v.g){e=b;f=a.g.dash.manifestPreprocessor;g=Ym;if(f!=g){Dd("manifest.dash.manifestPreprocessor configuration","Please Use manifest.dash.manifestPreprocessorTXml instead.");h=Tu(e,d);if(!h)throw new U(2,4,4001,c);f(h);e=Fc(h.outerHTML)}k=de(e,d);if(!k)throw new U(2,4,4001,c);l=a.g.dash.manifestPreprocessorTXml;m=Zm;l!=m&&l(k);if("Patch"===d)return v.return(av(a,k));if(n=a.g.dash.disableXlinkProcessing)return v.return(bv(a,k,c));
1042
1043
  p=a.g.dash.xlinkFailGracefully;r=tt(k,a.g.retryParameters,p,c,a.j.networkingEngine);vh(a.S,r);return G(v,r.promise,2)}u=v.h;return v.return(bv(a,u,c))})}
1043
- function bv(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,B,A,C,D,E,H,J,F,K,L,O,M,N,Q,S,aa,qa,ca,la,Ja,Na,cb,Va,ya,Ya,Ac,nb,mc,Sc,wb,cd,Le,ge,Sf,Me,Qj,Bh,Rj,Ch;return P(function(nc){switch(nc.g){case 1:a.h&&a.h.l.clear();d=[c];e=[];f=new Map;g=oe(b,"Location");h=t(g);for(k=h.next();!k.done;k=h.next())if(l=k.value,m=l.attributes.serviceLocation,n=qe(l))p=Qc(d,[n])[0],m&&(a.h?fu(a.h,"Location",m,p):f.set(m,p)),e.push(p);a.h?(r=gu(a.h,"Location",!0),0<r.length&&(d=a.A=r)):e.length&&(d=a.A=e);a.l.Te=b.attributes.id||
1044
+ function bv(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,B,A,C,D,E,H,J,F,K,L,O,M,N,Q,S,aa,qa,ca,la,Ja,Na,cb,Va,ya,Ya,Ac,nb,mc,Sc,wb,cd,Me,ge,Sf,Ne,Rj,Bh,Sj,Ch;return P(function(nc){switch(nc.g){case 1:a.h&&a.h.l.clear();d=[c];e=[];f=new Map;g=oe(b,"Location");h=t(g);for(k=h.next();!k.done;k=h.next())if(l=k.value,m=l.attributes.serviceLocation,n=qe(l))p=Qc(d,[n])[0],m&&(a.h?fu(a.h,"Location",m,p):f.set(m,p)),e.push(p);a.h?(r=gu(a.h,"Location",!0),0<r.length&&(d=a.A=r)):e.length&&(d=a.A=e);a.l.Te=b.attributes.id||
1044
1045
  "";a.l.Vd=ve(b,"publishTime",ye)||0;a.H=oe(b,"PatchLocation");u=Promise.resolve();if((v=se(b,"ContentSteering"))&&a.j){w=v.attributes.defaultServiceLocation;if(a.h)a.h.i=d,a.h.h=w;else if(a.h=new bu(a.j),a.h.configure(a.g),a.h.setManifestType("DASH"),a.h.i=d,a.h.h=w,y=qe(v))(z=ve(v,"queryBeforeStart",Fe,!1))?u=cu(a.h,y):cu(a.h,y);B=t(f.keys());for(A=B.next();!A.done;A=B.next())C=A.value,D=f.get(C),fu(a.h,"Location",C,D)}E=oe(b,"BaseURL");H=!1;if(a.h)for(J=t(E),F=J.next();!F.done;F=J.next())K=F.value,
1045
1046
  L=K.attributes.serviceLocation,O=qe(K),L&&O&&(fu(a.h,"BaseURL",L,O),H=!0);a.Y=null;H&&a.h||(M=E.map(qe),a.Y=Qc(d,M));N=function(){return a.h&&H?gu(a.h,"BaseURL"):a.Y?a.Y:[]};a.l.cb=N;Q=0;E&&E.length&&(Q=ve(E[0],"availabilityTimeOffset",Ee)||0);a.l.ob=Q;S=a.g.dash.ignoreMinBufferTime;aa=0;S||(aa=ve(b,"minBufferTime",ze)||0);a.L=ve(b,"minimumUpdatePeriod",ze,-1);qa=ve(b,"availabilityStartTime",ye);ca=ve(b,"timeShiftBufferDepth",ze);la=a.g.dash.ignoreSuggestedPresentationDelay;Ja=null;la||(Ja=ve(b,"suggestedPresentationDelay",
1046
- ze));Na=a.g.dash.ignoreMaxSegmentDuration;cb=null;Na||(cb=ve(b,"maxSegmentDuration",ze));Va=b.attributes.type||"static";a.i&&a.i.presentationTimeline&&(a.V=a.i.presentationTimeline.T()&&"static"==Va);a.l.type=Va;cv(a);if(a.i)for(ya=a.i.presentationTimeline,Ya=t(Object.values(a.s)),Ac=Ya.next();!Ac.done;Ac=Ya.next())nb=Ac.value,nb.segmentIndex&&nb.segmentIndex.Ya(ya.Hb());else mc=a.g.defaultPresentationDelay||1.5*aa,Sc=null!=Ja?Ja:mc,ya=new Uk(qa,Sc,a.g.dash.autoCorrectDrift);ya.Vc("static"==Va);(wb=
1047
- ya.T())&&!isNaN(a.g.availabilityWindowOverride)&&(ca=a.g.availabilityWindowOverride);null==ca&&(ca=Infinity);ya.jf(ca);cd=b.attributes.profiles||"";a.l.profiles=cd.split(",");Le={Tb:"static"!=Va,presentationTimeline:ya,Ba:null,wa:null,ua:null,M:null,bandwidth:0,ug:!1,ob:Q,hc:null,profiles:cd.split(","),roles:null,Db:function(){return""}};a.O=0;ge=dv(a,Le,N,b,!1);Sf=ge.duration;Me=ge.periods;("static"!=Va||a.V)&&ge.Dh||ya.vb(Sf||Infinity);a.ka&&!a.J&&(Qj=a.j.isAutoLowLatencyMode())&&(a.j.enableLowLatencyMode(),
1048
- a.J=a.j.isLowLatencyMode());a.J&&ya.mi(a.aa);ya.Eg(cb||1);return G(nc,u,2);case 2:a.J&&(aa=0,Bh=null!=Ja?Ja:a.g.defaultPresentationDelay,ya.Vg(Bh));if(!a.i)return G(nc,a.m.Nf(Me,Le.Tb),6);a.i.periodCount=Me.length;a.i.gapCount=a.O;return G(nc,ev(a,Me,!1),4);case 6:a.i={presentationTimeline:ya,variants:a.m.l,textStreams:a.m.ng(),imageStreams:a.m.i,offlineSessionIds:[],minBufferTime:aa||0,sequenceMode:a.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:fv(b),
1049
- nextUrl:gv(b),periodCount:Me.length,gapCount:a.O,isLowLatency:a.ka,startTime:null};if(!ya.Hi()){nc.B(7);break}Rj=oe(b,"UTCTiming");return G(nc,hv(a,N,Rj),8);case 8:Ch=nc.h;if(!a.j)return nc.return();ya.ni(Ch);case 7:ya.Pe();case 4:a.j.makeTextStreamsForClosedCaptions(a.i),I(nc)}})}function ev(a,b,c){var d;return P(function(e){if(1==e.g)return G(e,a.m.Nf(b,!0,c),2);a.i.variants=a.m.l;d=a.m.ng();0<d.length&&(a.i.textStreams=d);a.i.imageStreams=a.m.i;a.j.filter(a.i);I(e)})}
1047
+ ze));Na=a.g.dash.ignoreMaxSegmentDuration;cb=null;Na||(cb=ve(b,"maxSegmentDuration",ze));Va=b.attributes.type||"static";a.i&&a.i.presentationTimeline&&(a.V=a.i.presentationTimeline.T()&&"static"==Va);a.l.type=Va;cv(a);if(a.i)for(ya=a.i.presentationTimeline,Ya=t(Object.values(a.s)),Ac=Ya.next();!Ac.done;Ac=Ya.next())nb=Ac.value,nb.segmentIndex&&nb.segmentIndex.Ya(ya.Hb());else mc=a.g.defaultPresentationDelay||1.5*aa,Sc=null!=Ja?Ja:mc,ya=new Uk(qa,Sc,a.g.dash.autoCorrectDrift);ya.Xc("static"==Va);(wb=
1048
+ ya.T())&&!isNaN(a.g.availabilityWindowOverride)&&(ca=a.g.availabilityWindowOverride);null==ca&&(ca=Infinity);ya.hf(ca);cd=b.attributes.profiles||"";a.l.profiles=cd.split(",");Me={Tb:"static"!=Va,presentationTimeline:ya,Ba:null,wa:null,ua:null,M:null,bandwidth:0,sg:!1,ob:Q,hc:null,profiles:cd.split(","),roles:null,Db:function(){return""}};a.O=0;ge=dv(a,Me,N,b,!1);Sf=ge.duration;Ne=ge.periods;("static"!=Va||a.V)&&ge.Dh||ya.vb(Sf||Infinity);a.ka&&!a.J&&(Rj=a.j.isAutoLowLatencyMode())&&(a.j.enableLowLatencyMode(),
1049
+ a.J=a.j.isLowLatencyMode());a.J&&ya.mi(a.aa);ya.Dg(cb||1);return G(nc,u,2);case 2:a.J&&(aa=0,Bh=null!=Ja?Ja:a.g.defaultPresentationDelay,ya.Vg(Bh));if(!a.i)return G(nc,a.m.Mf(Ne,Me.Tb),6);a.i.periodCount=Ne.length;a.i.gapCount=a.O;return G(nc,ev(a,Ne,!1),4);case 6:a.i={presentationTimeline:ya,variants:a.m.l,textStreams:a.m.mg(),imageStreams:a.m.i,offlineSessionIds:[],minBufferTime:aa||0,sequenceMode:a.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:fv(b),
1050
+ nextUrl:gv(b),periodCount:Ne.length,gapCount:a.O,isLowLatency:a.ka,startTime:null};if(!ya.Hi()){nc.B(7);break}Sj=oe(b,"UTCTiming");return G(nc,hv(a,N,Sj),8);case 8:Ch=nc.h;if(!a.j)return nc.return();ya.ni(Ch);case 7:ya.Pe();case 4:a.j.makeTextStreamsForClosedCaptions(a.i),I(nc)}})}function ev(a,b,c){var d;return P(function(e){if(1==e.g)return G(e,a.m.Mf(b,!0,c),2);a.i.variants=a.m.l;d=a.m.mg();0<d.length&&(a.i.textStreams=d);a.i.imageStreams=a.m.i;a.j.filter(a.i);I(e)})}
1050
1051
  function av(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,B,A,C,D,E,H,J,F,K,L;return P(function(O){if(1==O.g){c=b.attributes.mpdId;d=ve(b,"originalPublishTime",ye);if(!c||c!==a.l.Te||d!==a.l.Vd)throw a.H=[],new U(1,4,4052);e=[];f=[];g=new Set;h=t(ne(b));for(k=h.next();!k.done;k=h.next())if(l=k.value,m=He(l.attributes.sel||""),n=m[m.length-1],p=qe(l)||"","MPD"===n.name)if("mediaPresentationDuration"===n.pc){r=qe(l)||"";var M=ze(r);if(null!=M){a.l.hc=M;for(var N=t(a.u.values()),Q=N.next();!Q.done;Q=N.next())Q.value.hc=
1051
- M}}else if("type"===n.pc){a.i.presentationTimeline.Vc("static"==p);a.l.type=p;M=t(a.u.values());for(N=M.next();!N.done;N=M.next())N.value.Tb="dynamic"==p;"static"==p&&(a.L=-1)}else"publishTime"===n.pc?a.l.Vd=ye(p)||0:null===n.pc&&"add"===l.tagName&&f.push(l);else if("PatchLocation"===n.name)Ie(a.H,l);else if("Period"===n.name)"add"===l.tagName?f.push(l):"remove"===l.tagName&&n.id&&iv(a,n.id);else if("SegmentTemplate"===n.name){N=He(l.attributes.sel||"");M=N[N.length-1];if(M.pc){N=jv(a,N);Q=qe(l)||
1052
+ M}}else if("type"===n.pc){a.i.presentationTimeline.Xc("static"==p);a.l.type=p;M=t(a.u.values());for(N=M.next();!N.done;N=M.next())N.value.Tb="dynamic"==p;"static"==p&&(a.L=-1)}else"publishTime"===n.pc?a.l.Vd=ye(p)||0:null===n.pc&&"add"===l.tagName&&f.push(l);else if("PatchLocation"===n.name)Ie(a.H,l);else if("Period"===n.name)"add"===l.tagName?f.push(l):"remove"===l.tagName&&n.id&&iv(a,n.id);else if("SegmentTemplate"===n.name){N=He(l.attributes.sel||"");M=N[N.length-1];if(M.pc){N=jv(a,N);Q=qe(l)||
1052
1053
  "";for(var S=t(N),aa=S.next();!aa.done;aa=S.next())aa=a.u.get(aa.value),Ke(aa.M.Bc,l.tagName,M.pc,Q);M=N}else M=[];u=M;v=t(u);for(w=v.next();!w.done;w=v.next())y=w.value,g.add(y)}else if("SegmentTimeline"===n.name||"S"===n.name){M=He(l.attributes.sel||"");M=jv(a,M);N=t(M);for(Q=N.next();!Q.done;Q=N.next())Q=a.u.get(Q.value),Q=qt(Q,St,"SegmentTimeline"),S=oe(Q,"S"),Ie(S,l),Q.children=S;z=M;B=t(z);for(A=B.next();!A.done;A=B.next())C=A.value,g.add(C)}D=t(g);for(E=D.next();!E.done;E=D.next())H=E.value,
1053
1054
  kv(a,H);J=t(f);for(F=J.next();!F.done;F=J.next())K=F.value,e.push.apply(e,x(lv(a,K)));if(!e.length)return O.B(2);a.i.periodCount+=e.length;a.i.gapCount=a.O;return G(O,ev(a,e,!0),2)}"static"==a.l.type&&(L=a.l.hc,a.i.presentationTimeline.vb(L||Infinity));I(O)})}
1054
- function lv(a,b){return dv(a,{Tb:"dynamic"==a.l.type,presentationTimeline:a.i.presentationTimeline,Ba:null,wa:null,ua:null,M:null,bandwidth:0,ug:!1,ob:a.l.ob,profiles:a.l.profiles,hc:a.l.hc,roles:null,Db:function(){return""}},a.l.cb,b,!0).periods}function iv(a,b){a.i.periodCount--;for(var c=t(a.u.keys()),d=c.next();!d.done;d=c.next())if(d=d.value,d.startsWith(b)){var e=a.u.get(d);qt(e,St,"SegmentTimeline").children=[];kv(a,d);a.u.delete(d)}a.G=a.G.filter(function(f){return f!==b})}
1055
+ function lv(a,b){return dv(a,{Tb:"dynamic"==a.l.type,presentationTimeline:a.i.presentationTimeline,Ba:null,wa:null,ua:null,M:null,bandwidth:0,sg:!1,ob:a.l.ob,profiles:a.l.profiles,hc:a.l.hc,roles:null,Db:function(){return""}},a.l.cb,b,!0).periods}function iv(a,b){a.i.periodCount--;for(var c=t(a.u.keys()),d=c.next();!d.done;d=c.next())if(d=d.value,d.startsWith(b)){var e=a.u.get(d);qt(e,St,"SegmentTimeline").children=[];kv(a,d);a.u.delete(d)}a.G=a.G.filter(function(f){return f!==b})}
1055
1056
  function jv(a,b){var c="",d="",e=-1,f="";b=t(b);for(var g=b.next();!g.done;g=b.next())g=g.value,"Period"===g.name?c=g.id:"AdaptationSet"===g.name?(d=g.id,null!==g.position&&(e=g.position)):"Representation"===g.name&&(f=g.id);b=[];if(f)b.push(c+","+f);else if(d)for(e=t(a.u.values()),a=e.next();!a.done;a=e.next())a=a.value,a.Ba.id===c&&a.ua.id===d&&a.M.id&&b.push(c+","+a.M.id);else if(-1<e)for(d=t(a.u.values()),a=d.next();!a.done;a=d.next())a=a.value,a.Ba.id===c&&a.ua.position===e&&a.M.id&&b.push(c+
1056
- ","+a.M.id);return b}function kv(a,b){var c=a.u.get(b),d=a.s[b];d.segmentIndex&&d.segmentIndex.Ya(a.i.presentationTimeline.Hb());try{var e=Rt(c,function(f,g,h,k){return mv(a,f,g,h,k)},a.s,!0,a.g.dash.initialSegmentLimit,a.na,c.M.aesKey,null,!0);d.createSegmentIndex=function(){return P(function(f){if(1==f.g)return d.segmentIndex?f.B(0):G(f,e.Ic(),3);d.segmentIndex=f.h;I(f)})}}catch(f){if(b=c.M.contentType,b!=Xc&&"application"!=b&&"image"!=b||4002!=f.code)throw f;}}
1057
+ ","+a.M.id);return b}function kv(a,b){var c=a.u.get(b),d=a.s[b];d.segmentIndex&&d.segmentIndex.Ya(a.i.presentationTimeline.Hb());try{var e=Rt(c,function(f,g,h,k){return mv(a,f,g,h,k)},a.s,!0,a.g.dash.initialSegmentLimit,a.na,c.M.aesKey,null,!0);d.createSegmentIndex=function(){return P(function(f){if(1==f.g)return d.segmentIndex?f.B(0):G(f,e.Kc(),3);d.segmentIndex=f.h;I(f)})}}catch(f){if(b=c.M.contentType,b!=Xc&&"application"!=b&&"image"!=b||4002!=f.code)throw f;}}
1057
1058
  function fv(a){var b=se(a,"ServiceDescription");if(!b)return null;a=se(b,"Latency");b=se(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)));
1058
1059
  return c}function gv(a){a=oe(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}
1059
1060
  function dv(a,b,c,d,e){var f=b.hc;f||(f=ve(d,"mediaPresentationDuration",ze),a.l.hc=f);var g=0;a.i&&a.i.presentationTimeline&&a.V&&(g=a.i.presentationTimeline.dc());var h=[],k=g;d=oe(d,"Period");for(var l=0;l<d.length;l++){var m=d[l],n=d[l+1],p=ve(m,"start",ze,k),r=m.attributes.id,u=ve(m,"duration",ze);p=0==l&&0==p&&a.V?g:p;var v=null;if(n){var w=ve(n,"start",ze);null!=w&&(v=w-p+g)}else null!=f&&(v=f-p+g);w=$c;v&&u&&Math.abs(v-u)>w&&v>u&&a.O++;null==v&&(v=u);if(!(null!==a.P&&null!==r&&null!==p&&p<
1060
- a.P)||a.G.includes(r)||l+1==d.length){null!==p&&(null===a.P||p>a.P)&&(a.P=p);k=nv(a,b,c,{start:p,duration:v,node:m,xg:null==v||!n});h.push(k);b.Ba.id&&v&&(a.na[b.Ba.id]=v);if(null==v){k=null;break}k=p+v}}if(e)for(b=t(h),c=b.next();!c.done;c=b.next())c=c.value.id,a.G.includes(c)||a.G.push(c);else a.G=h.map(function(y){return y.id});return null!=f?{periods:h,duration:f+g,Dh:!1}:{periods:h,duration:k,Dh:!0}}
1061
+ a.P)||a.G.includes(r)||l+1==d.length){null!==p&&(null===a.P||p>a.P)&&(a.P=p);k=nv(a,b,c,{start:p,duration:v,node:m,wg:null==v||!n});h.push(k);b.Ba.id&&v&&(a.na[b.Ba.id]=v);if(null==v){k=null;break}k=p+v}}if(e)for(b=t(h),c=b.next();!c.done;c=b.next())c=c.value.id,a.G.includes(c)||a.G.push(c);else a.G=h.map(function(y){return y.id});return null!=f?{periods:h,duration:f+g,Dh:!1}:{periods:h,duration:k,Dh:!0}}
1061
1062
  function cv(a){var b=Object.keys(a.C).filter(function(f){return!a.G.includes(f)});b=t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;for(var d=t(a.C[c]),e=d.next();!e.done;e=d.next())e=e.value,a.m&&a.m.Bh(a.s[e],c),delete a.s[e];delete a.C[c]}}
1062
1063
  function nv(a,b,c,d){b.Ba=ov(a,d.node,null,c);b.wa=d;b.Ba.ob=b.ob;b.Ba.id||(b.Ba.id="__shaka_period_"+d.start);var e=oe(d.node,"EventStream");c=b.presentationTimeline.Hb();e=t(e);for(var f=e.next();!f.done;f=e.next())pv(a,d.start,d.duration,f.value,c);c=oe(d.node,"SupplementalProperty");c=t(c);for(e=c.next();!e.done;e=c.next())if(e=e.value,"urn:mpeg:dash:urlparam:2014"==e.attributes.schemeIdUri&&(e=qv(a,e)))b.Db=e;c=oe(d.node,"AdaptationSet").map(function(l,m){return rv(a,b,m,l)}).filter(Yf);if(b.Tb){d=
1063
1064
  [];e=t(c);for(f=e.next();!f.done;f=e.next()){f=t(f.value.vk);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new U(2,4,4018);}d=c.filter(function(l){return!l.hh});c=c.filter(function(l){return l.hh});c=t(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.hh.split(" ");g=t(d);for(var h=g.next();!h.done;h=g.next())if(h=h.value,f.includes(h.id)){h=t(h.streams);for(var k=h.next();!k.done;k=h.next())Mg(k.value,e.streams)}}c=sv(a.g.disableAudio,d,"audio");e=sv(a.g.disableVideo,
@@ -1072,17 +1073,17 @@ if(0==d.length){c="image"==b.ua.contentType;if(a.g.dash.ignoreEmptyAdaptationSet
1072
1073
  w.keyIds||r.keyIds;a.g.dash.enableAudioGroups&&(r.groupId=m)}n=n.map(function(K){return K.attributes.id}).filter(Yf);return{id:m,contentType:b.ua.contentType,language:J,cm:h,streams:d,drmInfos:H.drmInfos,hh:c,vk:n}}
1073
1074
  function qv(a,b){if((b=te(b,"urn:mpeg:dash:schema:urlparam:2014","UrlQueryInfo"))&&ve(b,"useMPDUrlQuery",Fe,!1)){var c=b.attributes.queryTemplate;if(c)return function(){return"$querypart$"==c?a.$:c.split("&").map(function(d){if("$querypart$"==d)return a.$;var e=/\$query:(.*?)\$/g.exec(d);if(e&&2==e.length){e=e[1];var f=(new vb(a.$)).get(e);if(f.length)return e+"="+f[0]}return d}).join("&")}}return null}
1074
1075
  function tv(a,b,c,d,e,f,g,h,k,l,m,n){b.M=ov(a,l,b.ua,null);var p=b.M.id;a.aa=Math.min(a.aa,b.M.ob);a.ka=0<a.aa;if(!vv(b.M))return null;var r=b.wa.start;b.bandwidth=ve(l,"bandwidth",Ce)||0;b.roles=h;var u=oe(l,"SupplementalProperty"),v=oe(l,"EssentialProperty"),w=null,y=v.find(function(N){return"urn:mpeg:dash:urlparam:2014"==N.attributes.schemeIdUri});y?w=qv(a,y):(y=u.find(function(N){return"urn:mpeg:dash:urlparam:2014"==N.attributes.schemeIdUri}))&&(w=qv(a,y));w&&(b.Db=w);y=b.M.contentType;w=y==Xc||
1075
- "application"==y;y="image"==y;try{var z=void 0;if(c.Gf){var B=b.M.cb,A=b.Db,C=Qc(B(),[c.Gf.Wj],A()),D=Dh(C,a.g.retryParameters);z={bitsKey:128,blockCipherMode:"CBC",iv:c.Gf.iv,firstMediaSequenceNumber:0,fetchKey:function(){var N,Q,S;return P(function(aa){if(1==aa.g)return G(aa,Zu(a,D,6),2);if(3!=aa.g){N=aa.h;if(!N.data||16!=N.data.byteLength)throw new U(2,4,4049);Q={name:"AES-CBC"};S=z;return G(aa,window.crypto.subtle.importKey("raw",N.data,Q,!0,["decrypt"]),3)}S.cryptoKey=aa.h;z.fetchKey=void 0;
1076
- I(aa)})}}}b.M.aesKey=z;B=function(N,Q,S,aa){return mv(a,N,Q,S,aa)};if(b.M.xd)var E=Gt(b,B,z);else if(b.M.lc)E=Mt(b,a.s,z);else if(b.M.Bc)E=Rt(b,B,a.s,!!a.i,a.g.dash.initialSegmentLimit,a.na,z,n,!1);else{var H=b.wa.duration||0,J=b.M.cb,F=b.M.mimeType,K=b.M.codecs;E={Ic:function(){var N=rl(r,H,J());N.Ub(function(Q){Q.mimeType=F;Q.codecs=K});return Promise.resolve(N)}}}}catch(N){if((w||y)&&4002==N.code)return null;throw N;}l=oe(l,"ContentProtection");l=gt(l,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);
1076
+ "application"==y;y="image"==y;try{var z=void 0;if(c.Ff){var B=b.M.cb,A=b.Db,C=Qc(B(),[c.Ff.Wj],A()),D=Dh(C,a.g.retryParameters);z={bitsKey:128,blockCipherMode:"CBC",iv:c.Ff.iv,firstMediaSequenceNumber:0,fetchKey:function(){var N,Q,S;return P(function(aa){if(1==aa.g)return G(aa,Zu(a,D,6),2);if(3!=aa.g){N=aa.h;if(!N.data||16!=N.data.byteLength)throw new U(2,4,4049);Q={name:"AES-CBC"};S=z;return G(aa,window.crypto.subtle.importKey("raw",N.data,Q,!0,["decrypt"]),3)}S.cryptoKey=aa.h;z.fetchKey=void 0;
1077
+ I(aa)})}}}b.M.aesKey=z;B=function(N,Q,S,aa){return mv(a,N,Q,S,aa)};if(b.M.xd)var E=Gt(b,B,z);else if(b.M.lc)E=Mt(b,a.s,z);else if(b.M.Bc)E=Rt(b,B,a.s,!!a.i,a.g.dash.initialSegmentLimit,a.na,z,n,!1);else{var H=b.wa.duration||0,J=b.M.cb,F=b.M.mimeType,K=b.M.codecs;E={Kc:function(){var N=rl(r,H,J());N.Ub(function(Q){Q.mimeType=F;Q.codecs=K});return Promise.resolve(N)}}}}catch(N){if((w||y)&&4002==N.code)return null;throw N;}l=oe(l,"ContentProtection");l=gt(l,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);
1077
1078
  l=new Set(l?[l]:[]);n=!1;u.some(function(N){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==N.attributes.schemeIdUri&&"JOC"==N.attributes.value})&&(n=!0);u=!1;w&&(u=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var L;if(y&&((v=v.find(function(N){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(N.attributes.schemeIdUri)}))&&(L=v.attributes.value),!L))return null;var O;w=b.M.codecs;b.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&
1078
1079
  (w.includes("hvc1.2.4.L153.B0")||w.includes("hev1.2.4.L153.B0"))&&(O="PQ");v=b.M.id?b.Ba.id+","+b.M.id:"";a.H.length&&p&&a.u.set(b.Ba.id+","+p,wv(b));var M=v&&a.s[v]?a.s[v]:{id:a.Ca++,originalId:b.M.id,groupId:null,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){M.segmentIndex&&(M.segmentIndex.release(),M.segmentIndex=null)},segmentIndex:null,mimeType:b.M.mimeType,codecs:w,frameRate:b.M.frameRate,pixelAspectRatio:b.M.pixelAspectRatio,bandwidth:b.bandwidth,width:b.M.width,
1079
1080
  height:b.M.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:l,language:e,originalLanguage:b.ua.language,label:f,type:b.ua.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.M.emsgSchemeIdUris,roles:h,forced:u,channelsCount:b.M.Ve,audioSamplingRate:b.M.audioSamplingRate,spatialAudio:n,closedCaptions:k,hdr:O,colorGamut:void 0,videoLayout:void 0,tilesLayout:L,accessibilityPurpose:m,external:!1,fastSwitching:!1,fullMimeTypes:new Set([Af(b.M.mimeType,b.M.codecs)])};M.createSegmentIndex=
1080
- function(){var N;return P(function(Q){if(1==Q.g){if(M.segmentIndex)return Q.B(0);N=M;return G(Q,E.Ic(),3)}N.segmentIndex=Q.h;I(Q)})};v&&b.Tb&&!a.s[v]&&(b=b.Ba.id||"",a.C[b]||(a.C[b]=[]),a.s[v]=M,a.C[b].push(v));return M}function wv(a){function b(c){if(!c)return null;c=ce(c);c.xd=null;c.lc=null;c.Bc=Oe(c.Bc);return c}a=ce(a);a.Ba=b(a.Ba);a.ua=b(a.ua);a.M=b(a.M);a.wa&&(a.wa=ce(a.wa),a.wa.node=null);return a}
1081
+ function(){var N;return P(function(Q){if(1==Q.g){if(M.segmentIndex)return Q.B(0);N=M;return G(Q,E.Kc(),3)}N.segmentIndex=Q.h;I(Q)})};v&&b.Tb&&!a.s[v]&&(b=b.Ba.id||"",a.C[b]||(a.C[b]=[]),a.s[v]=M,a.C[b].push(v));return M}function wv(a){function b(c){if(!c)return null;c=ce(c);c.xd=null;c.lc=null;c.Bc=Oe(c.Bc);return c}a=ce(a);a.Ba=b(a.Ba);a.ua=b(a.ua);a.M=b(a.M);a.wa&&(a.wa=ce(a.wa),a.wa.node=null);return a}
1081
1082
  function Vu(a){var b,c;return P(function(d){switch(d.g){case 1:return b=0,va(d,2),G(d,Wu(a),4);case 4:b=d.h;xa(d,3);break;case 2:if(c=za(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();Xu(a,b);I(d)}})}function Xu(a,b){if(!(0>a.L)){var c=a.L;0<=a.g.dash.updatePeriod&&(c=a.g.dash.updatePeriod);a.N.X(Math.max(c-b,sd(a.ra)))}}
1082
- function ov(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Ve:null,audioSamplingRate:null,ob:0,gf:0};d=d||c.cb;var e=b.attributes.id,f=oe(b,"BaseURL"),g,h=!1;if(a.h)for(var k=t(f),l=k.next();!l.done;l=k.next()){var m=l.value;l=m.attributes.serviceLocation;m=qe(m);l&&m&&(fu(a.h,e,l,m),h=!0)}h&&a.h||(g=f.map(qe));k=b.attributes.contentType||c.contentType;l=b.attributes.mimeType||c.mimeType;m=[b.attributes.codecs||c.codecs];var n=we(b,
1083
+ function ov(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Ve:null,audioSamplingRate:null,ob:0,ef:0};d=d||c.cb;var e=b.attributes.id,f=oe(b,"BaseURL"),g,h=!1;if(a.h)for(var k=t(f),l=k.next();!l.done;l=k.next()){var m=l.value;l=m.attributes.serviceLocation;m=qe(m);l&&m&&(fu(a.h,e,l,m),h=!0)}h&&a.h||(g=f.map(qe));k=b.attributes.contentType||c.contentType;l=b.attributes.mimeType||c.mimeType;m=[b.attributes.codecs||c.codecs];var n=we(b,
1083
1084
  "urn:scte:dash:scte214-extensions","supplementalCodecs");n&&m.push(n);m=Yl(m).join(",");n=ve(b,"frameRate",Ge)||c.frameRate;var p=b.attributes.sar||c.pixelAspectRatio,r=xv(oe(b,"InbandEventStream"),c.emsgSchemeIdUris),u=oe(b,"AudioChannelConfiguration");u=yv(u)||c.Ve;var v=ve(b,"audioSamplingRate",De)||c.audioSamplingRate;k||(k=uv(l,m));var w=se(b,"SegmentBase"),y=se(b,"SegmentTemplate"),z=w?ve(w,"availabilityTimeOffset",Ee)||0:0,B=y?ve(y,"availabilityTimeOffset",Ee)||0:0,A=f&&f.length?ve(f[0],"availabilityTimeOffset",
1084
1085
  Ee)||0:0;z=c.ob+A+z+B;B=null;(A=se(b,"SegmentSequenceProperties"))&&(A=se(A,"SAP"))&&(B=ve(A,"cadence",Be));A=b.attributes.label;var C=oe(b,"Label");C&&C.length&&(C=C[0],pe(C)&&(A=pe(C)));return{cb:function(){return Qc(d(),f.length?a.h&&h?gu(a.h,e):g?g:[]:[])},xd:w||c.xd,lc:se(b,"SegmentList")||c.lc,Bc:y||c.Bc,width:ve(b,"width",De)||c.width,height:ve(b,"height",De)||c.height,contentType:k,mimeType:l,codecs:m,frameRate:n,pixelAspectRatio:p,emsgSchemeIdUris:r,id:e,language:b.attributes.lang,Ve:u,audioSamplingRate:v,
1085
- ob:z,He:null,gf:B||c.gf,label:A||null}}function xv(a,b){b=b.slice();a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value.attributes.schemeIdUri,b.includes(c)||b.push(c);return b}
1086
+ ob:z,He:null,ef:B||c.ef,label:A||null}}function xv(a,b){b=b.slice();a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value.attributes.schemeIdUri,b.includes(c)||b.push(c);return b}
1086
1087
  function yv(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=b.attributes.schemeIdUri;if(c&&(b=b.attributes.value))switch(c){case "urn:mpeg:dash:outputChannelPositionList:2012":return b.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(b,10);if(!b)continue;return b;case "tag:dolby.com,2015:dash:audio_channel_configuration:2015":c=[2,1,2,2,2,2,1,2,2,1,1,1,1,2,1,1,2,2];b=parseInt(b,
1087
1088
  16);if(!b)continue;for(var d=0,e=0;e<c.length;e++)b&1<<e&&(d+=c[e]);if(d)return d;continue;case "tag:dolby.com,2014:dash:audio_channel_configuration:2011":case "urn:dolby:dash:audio_channel_configuration:2011":c=[1,1,1,1,1,2,2,1,1,2,2,2,1,2,1,1].reverse();b=parseInt(b,16);if(!b)continue;for(e=d=0;e<c.length;e++)b&1<<e&&(d+=c[e]);if(d)return d;continue;case "urn:mpeg:mpegB:cicp:ChannelConfiguration":if(c=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(b=parseInt(b,10))&&0<b&&b<c.length)return c[b]}}return null}
1088
1089
  function vv(a){var b=a.xd?1:0;b+=a.lc?1:0;b+=a.Bc?1:0;if(0==b)return a.contentType==Xc||"application"==a.contentType?!0:!1;1!=b&&(a.xd&&(a.lc=null),a.Bc=null);return!0}
@@ -1090,7 +1091,7 @@ function zv(a,b,c,d){var e,f,g,h,k,l,m;return P(function(n){if(1==n.g)return e=[
1090
1091
  function hv(a,b,c){var d,e,f,g,h,k,l,m;return P(function(n){switch(n.g){case 1:d=c.map(function(p){return{scheme:p.attributes.schemeIdUri,value:p.attributes.value}}),e=a.g.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=t(d),g=f.next();case 2:if(g.done){n.B(4);break}h=g.value;va(n,5);k=h.scheme;l=h.value;switch(k){case "urn:mpeg:dash:utc:http-head:2014":case "urn:mpeg:dash:utc:http-head:2012":return n.B(7);case "urn:mpeg:dash:utc:http-xsdate:2014":case "urn:mpeg:dash:utc:http-iso:2014":case "urn:mpeg:dash:utc:http-xsdate:2012":case "urn:mpeg:dash:utc:http-iso:2012":return n.B(8);
1091
1092
  case "urn:mpeg:dash:utc:direct:2014":case "urn:mpeg:dash:utc:direct:2012":return m=Date.parse(l),n.return(isNaN(m)?0:m-Date.now());case "urn:mpeg:dash:utc:http-ntp:2014":case "urn:mpeg:dash:utc:ntp:2014":case "urn:mpeg:dash:utc:sntp:2014":ab("NTP UTCTiming scheme is not supported");break;default:ab("Unrecognized scheme in UTCTiming element",k)}n.B(9);break;case 7:return G(n,zv(a,b,l,"HEAD"),10);case 10:return n.return(n.h);case 8:return G(n,zv(a,b,l,"GET"),11);case 11:return n.return(n.h);case 9:xa(n,
1092
1093
  3);break;case 5:za(n);case 3:g=f.next();n.B(2);break;case 4:return ab("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n.return(0)}})}
1093
- function pv(a,b,c,d,e){var f=d.attributes.schemeIdUri||"",g=d.attributes.value||"",h=ve(d,"timescale",De)||1,k=ve(d,"presentationTimeOffset",De)||0;d=t(oe(d,"Event"));for(var l=d.next();!l.done;l=d.next()){l=l.value;var m=ve(l,"presentationTime",De)||0,n=ve(l,"duration",De)||0;m=Math.max((m-k)/h+b,b);n=m+n/h;null!=c&&(m=Math.min(m,b+c),n=Math.min(n,b+c));n<e||(l={schemeIdUri:f,value:g,startTime:m,endTime:n,id:l.attributes.id||"",eventElement:Ne(l),eventNode:Oe(l)},a.j.onTimelineRegionAdded(l))}}
1094
+ function pv(a,b,c,d,e){var f=d.attributes.schemeIdUri||"",g=d.attributes.value||"",h=ve(d,"timescale",De)||1,k=ve(d,"presentationTimeOffset",De)||0;d=t(oe(d,"Event"));for(var l=d.next();!l.done;l=d.next()){l=l.value;var m=ve(l,"presentationTime",De)||0,n=ve(l,"duration",De)||0;m=Math.max((m-k)/h+b,b);n=m+n/h;null!=c&&(m=Math.min(m,b+c),n=Math.min(n,b+c));n<e||(l={schemeIdUri:f,value:g,startTime:m,endTime:n,id:l.attributes.id||"",eventElement:Le(l),eventNode:Oe(l)},a.j.onTimelineRegionAdded(l))}}
1094
1095
  function mv(a,b,c,d,e){var f,g,h,k;return P(function(l){if(1==l.g)return f=Jh,g=e?0:1,h=bm(b,c,d,a.g.retryParameters),G(l,Zu(a,h,f,{type:g}),2);k=l.h;return l.return(k.data)})}function uv(a,b){b=Af(a,b);return Of(b)?Xc:a.split("/")[0]}function Zu(a,b,c,d){d||(d={});d.isPreload=a.ha();b=a.j.networkingEngine.request(c,b,d);vh(a.S,b);return b.promise}
1095
1096
  function Yu(a){var b=a.l.Vd;if(!a.l.Te||!b||!a.H.length)return[];var c=Date.now()/1E3,d=a.H.filter(function(e){e=De(e.attributes.ttl);return!e||b+e>c}).map(qe).filter(Yf);return d.length?Qc(a.A,d):[]}R("shaka.dash.DashParser",Uu);$i["application/dash+xml"]=function(){return new Uu};$i["video/vnd.mpeg.dash.mpd"]=function(){return new Uu};function Av(){}R("shaka.dependencies",Av);Av.has=function(a){return Bv.has(a)};Av.add=function(a,b){if(!Cv[a])throw Error(a+" is not supported");a==Dv?Dd("mux.js","mux.js is no longer used in Shaka Player."):Bv.set(a,function(){return b})};var Dv="muxjs",Cv={dm:Dv,ISOBoxer:"ISOBoxer"};Av.Allowed=Cv;var Bv=new Map([["ISOBoxer",function(){return window.ISOBoxer}]]);function Ev(a,b,c){this.type=a;this.ea=b;this.segments=c||null}function Fv(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d}Fv.prototype.toString=function(a){function b(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)}var c="#"+this.name,d=this.attributes?this.attributes.filter(function(e){return a?!a.has(e.name):!0}).map(b):[];this.value&&d.unshift(this.value);0<d.length&&(c+=":"+d.join(","));return c};
1096
1097
  function Gv(a,b){if(b)return a.toString();b=(new Set).add("AUDIO").add("VIDEO").add("SUBTITLES").add("PATHWAY-ID").add("GROUP-ID").add("URI");return a.toString(b)}function Hv(a,b){a=a.attributes.filter(function(c){return c.name==b});return a.length?a[0]:null}function Iv(a,b,c){return(a=Hv(a,b))?a.value:c||null}function Jv(a,b){a=Hv(a,b);if(!a)throw new U(2,4,4023,b);return a.value}function Kv(a,b,c){c=void 0===c?[]:c;this.ea=b;this.g=a;this.Xb=c}function Lv(a,b){this.name=a;this.value=b};function Mv(a,b){return a.filter(function(c){return c.name==b})}function Nv(a,b){return a.filter(function(c){return Jv(c,"TYPE")==b})}function Ov(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.name===b)return c;return null}function Pv(a,b,c){c=void 0===c?0:c;return(a=Ov(a,b))?Number(a.value):c}function Qv(a,b,c){return b?Rv(a,[b],c):[]}function Rv(a,b,c){if(!b.length)return[];b=Qc(a,b);a=[];b=t(b);for(var d=b.next();!d.done;d=b.next())a.push(Sv(d.value,c));return a}
@@ -1107,25 +1108,25 @@ q.update=function(){var a=this,b,c,d,e,f,g,h,k,l,m,n,p;return P(function(r){if(1
1107
1108
  a.h.updateDuration());h&&kw(a);m=t(d);for(n=m.next();!n.done;n=m.next())p=n.value,p.stream.segmentIndex&&!Cg(p.stream.segmentIndex)&&a.h.disableStream(p.stream);I(r)})};function lw(a,b){return fw(a)?a.P.get(b.type):b.Qe}
1108
1109
  function gw(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,B,A,C,D,E,H,J,F,K,L,O,M,N,Q,S,aa,qa,ca;return P(function(la){switch(la.g){case 1:c=[];d=t(b.R());for(e=d.next();!e.done;e=d.next())f=e.value,g=new pb(f),h=g.g,b.re&&(0<=b.Ob&&h.add("_HLS_msn",String(b.Ob)),0<=b.Pb&&h.add("_HLS_part",String(b.Pb))),b.se&&h.add("_HLS_skip","YES"),Fb(h)&&tb(g,h),c.push(g.toString());va(la,2);return G(la,dw(a,c,!0).promise,4);case 4:k=la.h;xa(la,3);break;case 2:throw l=za(la),a.h&&a.h.disableStream(b.stream),l;case 3:if(!b.stream.segmentIndex)return la.return();
1109
1110
  m=Uv(a.Ta,k.data);if(1!=m.type)throw new U(2,4,4017);n=k.uri;n==k.originalUri||b.R().includes(n)||b.gi.push(n);p=Mv(m.ea,"EXT-X-DEFINE");r=mw(a,p,n);u=b.stream;v=lw(a,b);return G(la,nw(a,m,u.mimeType,b.R,r),5);case 5:w=la.h;y=w.keyIds;z=w.drmInfos;B=function(Ja,Na){return Ja.size===Na.size&&[].concat(x(Ja)).every(function(cb){return Na.has(cb)})};B(u.keyIds,y)||(u.keyIds=y,u.drmInfos=z,a.h.newDrmInfo(u));A=ow(a,m,v,r,b.R,b.type);C=A.segments;if(D=A.bandwidth)u.bandwidth=D;E=Vl(u);H=t(C);for(J=H.next();!J.done;J=
1110
- H.next())F=J.value,F.ma&&(F.ma.pd=E);u.segmentIndex.Td(C,a.l.Hb());C.length&&(K=Pv(m.ea,"EXT-X-MEDIA-SEQUENCE",0),O=(L=Ov(m.ea,"EXT-X-SKIP"))?Number(Iv(L,"SKIPPED-SEGMENTS")):0,M=pw(K,C),N=M.Ob,Q=M.Pb,b.Ob=N+O,b.Pb=Q,S=v.get(K),u.segmentIndex.Ya(S));if(aa=Cg(u.segmentIndex))b.Rc=aa.startTime,qa=C[C.length-1],b.fc=qa.endTime;if(ca=Ov(m.ea,"EXT-X-ENDLIST"))b.Md=!0;qw(a,m);rw(a,m.ea,u.type,r,b.R);I(la)}})}q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(){};
1111
+ H.next())F=J.value,F.ma&&(F.ma.pd=E);u.segmentIndex.Td(C,a.l.Hb());C.length&&(K=Pv(m.ea,"EXT-X-MEDIA-SEQUENCE",0),O=(L=Ov(m.ea,"EXT-X-SKIP"))?Number(Iv(L,"SKIPPED-SEGMENTS")):0,M=pw(K,C),N=M.Ob,Q=M.Pb,b.Ob=N+O,b.Pb=Q,S=v.get(K),u.segmentIndex.Ya(S));if(aa=Cg(u.segmentIndex))b.Tc=aa.startTime,qa=C[C.length-1],b.fc=qa.endTime;if(ca=Ov(m.ea,"EXT-X-ENDLIST"))b.Md=!0;qw(a,m);rw(a,m.ea,u.type,r,b.R);I(la)}})}q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(){};
1111
1112
  q.banLocation=function(a){this.j&&this.j.banLocation(a)};q.setMediaElement=function(a){this.$=a};
1112
- function sw(a,b,c){c=void 0===c?!1:c;for(var d=-1==a.K,e=t(b),f=e.next();!f.done;f=e.next()){f=f.value;var g=f.stream.segmentIndex,h=lw(a,f);if(g=Cg(g)){h=t(h);for(var k=h.next();!k.done;k=h.next()){k=t(k.value);var l=k.next().value;if(k.next().value==g.startTime){d&&(a.K=Math.max(a.K,l));f.Uf=l;break}}}}if(!(0>a.K))for(b=t(b),d=b.next();!d.done;d=b.next())if(d=d.value,tw(a,d.type)||c)if(e=d.stream.segmentIndex)if(f=a.K-d.Uf,0<f&&(e.g.splice(0,f),e=Cg(e)))e=-e.startTime,d.stream.segmentIndex.offset(e),
1113
+ function sw(a,b,c){c=void 0===c?!1:c;for(var d=-1==a.K,e=t(b),f=e.next();!f.done;f=e.next()){f=f.value;var g=f.stream.segmentIndex,h=lw(a,f);if(g=Cg(g)){h=t(h);for(var k=h.next();!k.done;k=h.next()){k=t(k.value);var l=k.next().value;if(k.next().value==g.startTime){d&&(a.K=Math.max(a.K,l));f.Tf=l;break}}}}if(!(0>a.K))for(b=t(b),d=b.next();!d.done;d=b.next())if(d=d.value,tw(a,d.type)||c)if(e=d.stream.segmentIndex)if(f=a.K-d.Tf,0<f&&(e.g.splice(0,f),e=Cg(e)))e=-e.startTime,d.stream.segmentIndex.offset(e),
1113
1114
  uw(a,d,e)}
1114
1115
  function vw(a,b){if(Infinity==a.ka){b=t(b);for(var c=b.next();!c.done;c=b.next())c=Cg(c.value.stream.segmentIndex),null!=c&&null!=c.h&&(a.ka=Math.min(a.ka,c.h))}b=a.ka;if(Infinity!=b){c=t(a.i.values());for(var d=c.next();!d.done;d=c.next())if(d=d.value,!tw(a,d.type)){var e=d.stream.segmentIndex;if(null!=e){var f=Cg(e);if(f)if(null==f.h)$a("Missing EXT-X-PROGRAM-DATE-TIME for stream",d.R(),"Expect AV sync issues!");else for(uw(a,d,f.h-b-f.startTime),d=t(e),e=d.next();!e.done;e=d.next())e.value.eh(b)}}}}
1115
- function uw(a,b,c){b.Rc+=c;b.fc+=c;a=lw(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()}
1116
- function ew(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,B,A,C,D,E,H,J,F,K,L,O,M,N,Q,S,aa,qa;return P(function(ca){switch(ca.g){case 1:d=Zc;e=Uv(a.Ta,b);f=Mv(e.ea,"EXT-X-DEFINE");g=[];h=[];k=[];a.l=new Uk(null,0);a.l.Vc(!0);l=function(){return[c]};m=null;n=new Map;if(1==e.type)return a.S=!1,A=Mv(e.ea,"EXT-X-DEFINE"),n=mw(a,A,a.O),m=d.xa,C="",D=new Map,G(ca,ww(a,a.G++,n,e,l,"",m,C,!0,"Media Playlist",null,D,null,!1,null,!1),7);xw(a,f);p=Mv(e.ea,"EXT-X-MEDIA");r=Mv(e.ea,"EXT-X-STREAM-INF");u=Mv(e.ea,
1116
+ function uw(a,b,c){b.Tc+=c;b.fc+=c;a=lw(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()}
1117
+ function ew(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,B,A,C,D,E,H,J,F,K,L,O,M,N,Q,S,aa,qa;return P(function(ca){switch(ca.g){case 1:d=Zc;e=Uv(a.Ta,b);f=Mv(e.ea,"EXT-X-DEFINE");g=[];h=[];k=[];a.l=new Uk(null,0);a.l.Xc(!0);l=function(){return[c]};m=null;n=new Map;if(1==e.type)return a.S=!1,A=Mv(e.ea,"EXT-X-DEFINE"),n=mw(a,A,a.O),m=d.xa,C="",D=new Map,G(ca,ww(a,a.G++,n,e,l,"",m,C,!0,"Media Playlist",null,D,null,!1,null,!1),7);xw(a,f);p=Mv(e.ea,"EXT-X-MEDIA");r=Mv(e.ea,"EXT-X-STREAM-INF");u=Mv(e.ea,
1117
1118
  "EXT-X-IMAGE-STREAM-INF");v=Mv(e.ea,"EXT-X-I-FRAME-STREAM-INF");w=Mv(e.ea,"EXT-X-SESSION-KEY");y=Mv(e.ea,"EXT-X-SESSION-DATA");z=Mv(e.ea,"EXT-X-CONTENT-STEERING");yw(a,y);return G(ca,zw(a,z),4);case 4:return Aw(a,r),Bw(a,p),B=Cw(a,v),G(ca,Dw(a,r,w,p,l,a.A,B),5);case 5:return g=ca.h,h=Ew(a,p),G(ca,Fw(a,u,v),6);case 6:k=ca.h;ca.B(3);break;case 7:E=ca.h,a.i.set(c,E),E.stream&&(H=Vl(E.stream),E.stream.segmentIndex.Ub(function(la){la.ma&&(la.ma.pd=H)})),m=E.stream.type,g.push({id:0,language:dd(C||"und"),
1118
1119
  disabledUntilTime:0,primary:!0,audio:"audio"==m?E.stream:null,video:"video"==m?E.stream:null,bandwidth:E.stream.bandwidth||0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.h)throw new U(2,7,7001);Gw(a,e);1==e.type&&(fw(a)&&(Hw(a,e),J=a.s,a.C.X(J)),F=Array.from(a.i.values()),Iw(a,F),kw(a),rw(a,e.ea,m,n,l));a.m={presentationTimeline:a.l,variants:g,textStreams:h,imageStreams:k,offlineSessionIds:[],minBufferTime:0,sequenceMode:a.g.hls.sequenceMode,ignoreManifestTimestampsInSegmentsMode:a.g.hls.ignoreManifestTimestampsInSegmentsMode,
1119
1120
  type:"HLS",serviceDescription:null,nextUrl:null,periodCount:1,gapCount:0,isLowLatency:!1,startTime:a.u};if(a.ha||!a.g.hls.disableCodecGuessing){ca.B(8);break}K=[];L=t(a.m.variants);for(O=L.next();!O.done;O=L.next())M=O.value,M.audio&&""===M.audio.codecs&&K.push(M.audio.createSegmentIndex()),M.video&&""===M.video.codecs&&K.push(M.video.createSegmentIndex());return G(ca,Promise.all(K),8);case 8:a.h.makeTextStreamsForClosedCaptions(a.m);if(1==g.length){N=[];Q=g[0];S=t([Q.video,Q.audio]);for(aa=S.next();!aa.done;aa=
1120
1121
  S.next())(qa=aa.value)&&!qa.segmentIndex&&N.push(qa.createSegmentIndex());if(0<N.length)return G(ca,Promise.all(N),0)}ca.B(0)}})}
1121
1122
  function Jw(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,B,A,C,D,E,H;return P(function(J){switch(J.g){case 1:c=Wl(a.g.hls.mediaPlaylistFullMimeType);if(!b.length)return J.return(c);d=Kw(a,b);e=d.segment;f=d.segmentIndex;g=e.R();h=g[0];k=new pb(h);l=k.mb.split(".").pop();if(m=Lw[l])return J.return(Wl(m));n=Jh;r=p=null;u=e.ma;if(!u){J.B(2);break}v=bm(u.R(),u.Ib(),u.Fb(),a.g.retryParameters);return G(J,Mw(a,v,n,{type:0}).promise,3);case 3:w=J.h;p=w.data;if(!u.aesKey){J.B(4);break}return G(J,am(p,u.aesKey,
1122
1123
  0),5);case 5:p=J.h;case 4:(r=w.headers["content-type"])&&(r=r.split(";")[0].toLowerCase());case 2:return y=bm(e.R(),e.Ib(),e.Fb(),a.g.retryParameters),G(J,Mw(a,y,n,{type:1}).promise,6);case 6:z=J.h;B=z.data;if(!e.aesKey){J.B(7);break}return G(J,am(B,e.aesKey,f),8);case 8:B=J.h;case 7:(A=z.headers["content-type"])&&(A=A.split(";")[0].toLowerCase());C="mp4 mp4a m4s m4i m4a m4f cmfa mp4v m4v cmfv fmp4".split(" ");D=["audio/mp4","video/mp4","video/iso.segment"];if(bk(Jb(B))){var F=B;var K=Jb(F);K=(new Tj).parse(K);
1123
- var L=K.Id();K=K.pg();var O=[],M=!1,N=!1;switch(L.audio){case "aac":case "aac-loas":O.push("mp4a.40.2");M=!0;break;case "mp3":O.push("mp4a.40.34");M=!0;break;case "ac3":O.push("ac-3");M=!0;break;case "ec3":O.push("ec-3");M=!0;break;case "opus":O.push("opus"),M=!0}switch(L.video){case "avc":K.codec?O.push(K.codec):O.push("avc1.42E01E");N=!0;break;case "hvc":K.codec?O.push(K.codec):O.push("hvc1.1.6.L93.90");N=!0;break;case "av1":O.push("av01.0.01M.08"),N=!0}if(O.length){L=M&&!N;M=new Map;if(N){N=new Kd("video/mp2t");
1124
+ var L=K.Id();K=K.og();var O=[],M=!1,N=!1;switch(L.audio){case "aac":case "aac-loas":O.push("mp4a.40.2");M=!0;break;case "mp3":O.push("mp4a.40.34");M=!0;break;case "ac3":O.push("ac-3");M=!0;break;case "ec3":O.push("ec-3");M=!0;break;case "opus":O.push("opus"),M=!0}switch(L.video){case "avc":K.codec?O.push(K.codec):O.push("avc1.42E01E");N=!0;break;case "hvc":K.codec?O.push(K.codec):O.push("hvc1.1.6.L93.90");N=!0;break;case "av1":O.push("av01.0.01M.08"),N=!0}if(O.length){L=M&&!N;M=new Map;if(N){N=new Kd("video/mp2t");
1124
1125
  N.i(F);F=t(N.j());for(var Q=F.next();!Q.done;Q=F.next())Q=Q.value,M.set(Q,Q);N.g()}K={type:L?"audio":"video",mimeType:"video/mp2t",codecs:O.join(", "),language:null,height:K.height,width:K.width,channelCount:null,sampleRate:null,closedCaptions:M,ce:null,colorGamut:null,frameRate:K.frameRate}}else K=null;if(E=K)return J.return(E)}else if(C.includes(l)||D.includes(A)||r&&D.includes(r))if(H=Xl(p,B))return J.return(H);return A?J.return(Wl(A)):r?J.return(Wl(r)):J.return(c)}})}
1125
- function kw(a){if(fw(a)){if(a.Da==Nw){for(var b=Infinity,c=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.fc),c=Math.min(c,e.Rc));b=b-c||0;isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.l.jf(b)}}else a.l.vb(Ow(a));if(!a.l.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=Cg(c.stream.segmentIndex))&&c.h&&a.l.pi(c.h);
1126
+ function kw(a){if(fw(a)){if(a.Da==Nw){for(var b=Infinity,c=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.fc),c=Math.min(c,e.Tc));b=b-c||0;isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.l.hf(b)}}else a.l.vb(Ow(a));if(!a.l.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=Cg(c.stream.segmentIndex))&&c.h&&a.l.pi(c.h);
1126
1127
  a.l.Pe()}function xw(a,b){var c=(new pb(a.O)).g;b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=Iv(e,"NAME");var f=Iv(e,"VALUE");e=Iv(e,"QUERYPARAM");d&&f&&(a.A.has(d)||a.A.set(d,f));e&&(d=c.get(e)[0])&&!a.A.has(d)&&a.A.set(e,d)}}
1127
1128
  function mw(a,b,c){c=(new pb(c)).g;var d=new Map;b=t(b);for(var e=b.next();!e.done;e=b.next()){var f=e.value,g=Iv(f,"NAME"),h=Iv(f,"VALUE");e=Iv(f,"QUERYPARAM");f=Iv(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.A.get(f))&&d.set(f,e)}return d}
1128
- function Aw(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Iv(d,"AUDIO");c=Iv(d,"VIDEO");var f=Iv(d,"SUBTITLES");d=Pw(a,d);if(f){var g=Vc(Xc,d);a.I.set(f,g);Sd(d,g)}e&&(f=Vc("audio",d),f||(f=a.g.hls.defaultAudioCodec),a.I.set(e,f));c&&(e=Vc("video",d),e||(e=a.g.hls.defaultVideoCodec),a.I.set(c,e))}}
1129
+ function Aw(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Iv(d,"AUDIO");c=Iv(d,"VIDEO");var f=Iv(d,"SUBTITLES");d=Pw(a,d);if(f){var g=Vc(Xc,d);a.I.set(f,g);Rd(d,g)}e&&(f=Vc("audio",d),f||(f=a.g.hls.defaultAudioCodec),a.I.set(e,f));c&&(e=Vc("video",d),e||(e=a.g.hls.defaultVideoCodec),a.I.set(c,e))}}
1129
1130
  function yw(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Iv(d,"DATA-ID");c=Iv(d,"URI");var f=Iv(d,"LANGUAGE");d=Iv(d,"VALUE");e=(new Map).set("id",e);c&&e.set("uri",Qv([a.O],c,a.A)[0]);f&&e.set("language",f);d&&e.set("value",d);c=new T("sessiondata",e);if(a.h)a.h.onEvent(c)}}
1130
1131
  function zw(a,b){var c,d,e,f,g,h;return P(function(k){if(!a.h||!a.g)return k.return();d=t(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,g=Iv(f,"PATHWAY-ID"),h=Iv(f,"SERVER-URI"),g&&h){a.j=new bu(a.h);a.j.configure(a.g);a.j.i=[a.O];a.j.setManifestType("HLS");a.j.h=g;c=cu(a.j,h);break}return G(k,c,0)})}
1131
1132
  function Ew(a,b){var c=Nv(b,"SUBTITLES");b=c.map(function(g){if(a.g.disableText)return null;try{return Qw(a,[g],new Map).stream}catch(h){if(a.g.hls.ignoreTextStreamFailures)return null;throw h;}});c=t(c);for(var d=c.next();!d.done;d=c.next()){var e=Jv(d.value,"GROUP-ID");if(d=a.I.get(e))if(e=a.J.get(e)){e=t(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f.stream.codecs=d,f.stream.mimeType=Rw(Xc,d)||Sw(Xc),Tw(f.stream)}}return b.filter(function(g){return g})}
@@ -1151,16 +1152,16 @@ function Vw(a,b){var c="video",d=Jv(b,"URI"),e=Iv(b,"CODECS")||"";"mjpg"==e&&(c=
1151
1152
  function ex(a,b,c,d,e,f,g,h,k){for(var l=a.G++,m=[],n=t(b),p=n.next();!p.done;p=n.next()){var r=p.value;p=Jv(r,"URI");r=Iv(r,"PATHWAY-ID");a.j&&r&&fu(a.j,l,r,p);m.push(p)}n=m.sort().join(",");if(a.i.has(n))return a.i.get(n);a:{b=Iv(b[0],"CLOSED-CAPTIONS");if("video"==d){if(a.g.disableText){a.S=!1;b=null;break a}if(b){if("NONE"!=b){b=a.H.get(b);break a}a.S=!1}else if(!b&&a.H.size)for(b=t(a.H.keys()).next();!b.done;){b=a.H.get(b.value);break a}}b=null}c=Uc(d,c);d=gx(a,l,m,c,d,e,!1,f,g,b,h,!1,k,!1);
1152
1153
  a.i.set(n,d);return d}
1153
1154
  function gx(a,b,c,d,e,f,g,h,k,l,m,n,p,r){function u(C){var D,E,H,J,F,K,L,O,M,N,Q,S,aa,qa,ca,la,Ja,Na,cb,Va,ya,Ya,Ac;return P(function(nb){switch(nb.g){case 1:return D=Zc,va(nb,2),E=z.R(),G(nb,C.promise,4);case 4:H=nb.h;if(C.aborted)return nb.return();J=H.uri;J==H.originalUri||E.includes(J)||y.push(J);F=Uv(a.Ta,H.data);if(1!=F.type)throw new U(2,4,4017);K=Mv(F.ea,"EXT-X-DEFINE");L=mw(a,K,J);O=!1;(!a.ha&&a.g.hls.disableCodecGuessing||a.S&&e==D.xa&&!a.g.hls.disableClosedCaptionsDetection)&&0<F.segments.length&&
1154
- (a.S=!1,O=!0);M=!a.ha&&a.g.hls.disableCodecGuessing;N=fw(a);return G(nb,ww(a,0,L,F,v,d,e,f,g,h,k,l,m,n,p,r,void 0,O,M),5);case 5:Q=nb.h;if(C.aborted)return nb.return();S=Q.stream;Gw(a,F);fw(a)&&!N&&Hw(a,F);z.Rc=Q.Rc;z.fc=Q.fc;z.se=Q.se;z.re=Q.re;z.Md=Q.Md;z.Qe=Q.Qe;z.Ob=Q.Ob;z.Pb=Q.Pb;z.Cg=!0;w.segmentIndex=S.segmentIndex;w.encrypted=S.encrypted;w.drmInfos=S.drmInfos;w.keyIds=S.keyIds;w.mimeType=S.mimeType;w.bandwidth=w.bandwidth||S.bandwidth;w.codecs=w.codecs||S.codecs;w.closedCaptions=w.closedCaptions||
1155
+ (a.S=!1,O=!0);M=!a.ha&&a.g.hls.disableCodecGuessing;N=fw(a);return G(nb,ww(a,0,L,F,v,d,e,f,g,h,k,l,m,n,p,r,void 0,O,M),5);case 5:Q=nb.h;if(C.aborted)return nb.return();S=Q.stream;Gw(a,F);fw(a)&&!N&&Hw(a,F);z.Tc=Q.Tc;z.fc=Q.fc;z.se=Q.se;z.re=Q.re;z.Md=Q.Md;z.Qe=Q.Qe;z.Ob=Q.Ob;z.Pb=Q.Pb;z.Bg=!0;w.segmentIndex=S.segmentIndex;w.encrypted=S.encrypted;w.drmInfos=S.drmInfos;w.keyIds=S.keyIds;w.mimeType=S.mimeType;w.bandwidth=w.bandwidth||S.bandwidth;w.codecs=w.codecs||S.codecs;w.closedCaptions=w.closedCaptions||
1155
1156
  S.closedCaptions;w.width=w.width||S.width;w.height=w.height||S.height;w.hdr=w.hdr||S.hdr;w.colorGamut=w.colorGamut||S.colorGamut;w.frameRate=w.frameRate||S.frameRate;"und"==w.language&&"und"!=S.language&&(w.language=S.language);w.language=w.language||S.language;w.channelsCount=w.channelsCount||S.channelsCount;w.audioSamplingRate=w.audioSamplingRate||S.audioSamplingRate;Tw(w);w.drmInfos.length&&a.h.newDrmInfo(w);aa=!1;if(!l&&w.closedCaptions||l&&w.closedCaptions&&l.size!=w.closedCaptions.size)aa=!0;
1156
- a.m&&aa&&a.h.makeTextStreamsForClosedCaptions(a.m);if(e==D.xa||e==D.ia)for(qa=t(a.i.values()),ca=qa.next();!ca.done;ca=qa.next())la=ca.value,la.Cg||la.type!=e||(la.stream.mimeType=S.mimeType,Tw(la.stream));e==D.Na&&(Ja=Cg(S.segmentIndex))&&Ja.ma&&(w.mimeType="application/mp4",Tw(w));Na=Vl(w);w.segmentIndex.Ub(function(mc){mc.ma&&(mc.ma.pd=Na)});hx(a)&&(a.yc?Iw(a,[z]):(a.yc=!0,cb=Array.from(a.i.values()),Va=cb.filter(function(mc){return mc.stream.segmentIndex}),Iw(a,Va),kw(a),ya=a.s,0<ya&&a.C.X(ya)));
1157
- rw(a,F.ea,w.type,L,v);a.m&&(a.m.startTime=a.u);xa(nb,0);break;case 2:Ya=za(nb);w.closeSegmentIndex();if(7001===Ya.code)return nb.return();Ac=a.h.disableStream(w);if(!Ac)throw Ya;I(nb)}})}function v(){return a.j&&1<c.length?gu(a.j,b):y.concat(Rv([a.O],c,a.A))}var w=ix(a,d,e,f,g,h,k,l,m,n,p,r),y=[],z={stream:w,type:e,gi:y,R:v,Rc:0,fc:0,Qe:new Map,se:!1,re:!1,Md:!1,Uf:-1,Ob:-1,Pb:-1,Cg:!1},B=null,A;w.createSegmentIndex=function(){if(B)return B;A=dw(a,z.R(),!0);return B=new Promise(function(C){C(u(A))})};
1157
+ a.m&&aa&&a.h.makeTextStreamsForClosedCaptions(a.m);if(e==D.xa||e==D.ia)for(qa=t(a.i.values()),ca=qa.next();!ca.done;ca=qa.next())la=ca.value,la.Bg||la.type!=e||(la.stream.mimeType=S.mimeType,Tw(la.stream));e==D.Na&&(Ja=Cg(S.segmentIndex))&&Ja.ma&&(w.mimeType="application/mp4",Tw(w));Na=Vl(w);w.segmentIndex.Ub(function(mc){mc.ma&&(mc.ma.pd=Na)});hx(a)&&(a.yc?Iw(a,[z]):(a.yc=!0,cb=Array.from(a.i.values()),Va=cb.filter(function(mc){return mc.stream.segmentIndex}),Iw(a,Va),kw(a),ya=a.s,0<ya&&a.C.X(ya)));
1158
+ rw(a,F.ea,w.type,L,v);a.m&&(a.m.startTime=a.u);xa(nb,0);break;case 2:Ya=za(nb);w.closeSegmentIndex();if(7001===Ya.code)return nb.return();Ac=a.h.disableStream(w);if(!Ac)throw Ya;I(nb)}})}function v(){return a.j&&1<c.length?gu(a.j,b):y.concat(Rv([a.O],c,a.A))}var w=ix(a,d,e,f,g,h,k,l,m,n,p,r),y=[],z={stream:w,type:e,gi:y,R:v,Tc:0,fc:0,Qe:new Map,se:!1,re:!1,Md:!1,Tf:-1,Ob:-1,Pb:-1,Bg:!1},B=null,A;w.createSegmentIndex=function(){if(B)return B;A=dw(a,z.R(),!0);return B=new Promise(function(C){C(u(A))})};
1158
1159
  w.closeSegmentIndex=function(){B&&!w.segmentIndex&&A.abort();w.segmentIndex&&(w.segmentIndex.release(),w.segmentIndex=null);B=null};return z}function Ow(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.fc));return b}function hw(a,b){var c=[];b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&d.segmentIndex.Ub(function(e){c.push(e)});a.l.Ud(c)}
1159
1160
  function Iw(a,b){if(!fw(a))for(var c=Ow(a),d=t(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.fd(0,c);hw(a,b.map(function(f){return f.stream}));c=fw(a)&&!a.zc;a.g.hls.ignoreManifestProgramDateTime||c?sw(a,b,c):(vw(a,b),0<a.g.hls.ignoreManifestProgramDateTimeForTypes.length&&sw(a,b))}function tw(a,b){return a.g.hls.ignoreManifestProgramDateTime?!0:a.g.hls.ignoreManifestProgramDateTimeForTypes.includes(b)}
1160
1161
  function hx(a){if(!a.m)return!1;var b=[],c=[];a=t(a.m.variants);for(var d=a.next();!d.done;d=a.next())d=d.value,d.video&&b.push(d.video),d.audio&&c.push(d.audio);return 0<b.length&&!b.some(function(e){return e.segmentIndex})||0<c.length&&!c.some(function(e){return e.segmentIndex})?!1:!0}
1161
1162
  function ww(a,b,c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z){y=void 0===y?!0:y;z=void 0===z?!0:z;var B,A,C,D,E,H,J,F,K,L,O,M,N,Q,S,aa,qa,ca,la,Ja,Na,cb,Va,ya,Ya,Ac,nb,mc,Sc;return P(function(wb){switch(wb.g){case 1:B=d.segments||[];A=B.every(function(cd){return Ov(cd.ea,"EXT-X-GAP")?!0:!1});if(!B.length||A)throw new U(2,4,4053);jx(a,d);fw(a)&&qw(a,d);C=fw(a)?a.P.get(g):new Map;D=ow(a,d,C,c,e,g);E=D.segments;H=D.bandwidth;O=L=K=F=J=null;if(!(0<E.length&&y)){wb.B(2);break}return G(wb,Jw(a,E),3);case 3:M=wb.h,
1162
1163
  g=M.type,h=M.language,m=M.channelCount,u=M.sampleRate,a.g.disableText||(n=M.closedCaptions),F=M.height,J=M.width,K=M.ce,L=M.colorGamut,O=M.frameRate,z&&(w=M.mimeType,f=M.codecs);case 2:if(w){wb.B(4);break}return G(wb,kx(a,g,f,E),5);case 5:w=wb.h;case 4:return G(wb,nw(a,d,w,e,c),6);case 6:N=wb.h;Q=N.drmInfos;S=N.keyIds;aa=N.encrypted;qa=N.Si;if(aa&&!Q.length&&!qa)throw new U(2,4,4026);ca=ix(a,f,g,h,k,l,m,n,p,r,u,v);ca.encrypted=aa;ca.drmInfos=Q;ca.keyIds=S;ca.mimeType=w;H&&(ca.bandwidth=H);Tw(ca);
1163
- "video"==g&&(J||F||K||L)&&fx(ca,J,F,O,K,null,L);fw(a)&&qw(a,d);la=E[0].startTime;Ja=E[E.length-1];Na=Ja.endTime;cb=new pl(E);ca.segmentIndex=cb;ya=(Va=Ov(d.ea,"EXT-X-SERVER-CONTROL"))?null!=Hv(Va,"CAN-SKIP-UNTIL"):!1;Ya=Va?null!=Hv(Va,"CAN-BLOCK-RELOAD"):!1;Ac=Pv(d.ea,"EXT-X-MEDIA-SEQUENCE",0);nb=pw(Ac,E);mc=nb.Ob;Sc=nb.Pb;return wb.return({stream:ca,type:g,gi:[],R:e,Rc:la,fc:Na,se:ya,re:Ya,Md:!1,Uf:-1,Ob:mc,Pb:Sc,Qe:C,Cg:!1})}})}
1164
+ "video"==g&&(J||F||K||L)&&fx(ca,J,F,O,K,null,L);fw(a)&&qw(a,d);la=E[0].startTime;Ja=E[E.length-1];Na=Ja.endTime;cb=new pl(E);ca.segmentIndex=cb;ya=(Va=Ov(d.ea,"EXT-X-SERVER-CONTROL"))?null!=Hv(Va,"CAN-SKIP-UNTIL"):!1;Ya=Va?null!=Hv(Va,"CAN-BLOCK-RELOAD"):!1;Ac=Pv(d.ea,"EXT-X-MEDIA-SEQUENCE",0);nb=pw(Ac,E);mc=nb.Ob;Sc=nb.Pb;return wb.return({stream:ca,type:g,gi:[],R:e,Tc:la,fc:Na,se:ya,re:Ya,Md:!1,Tf:-1,Ob:mc,Pb:Sc,Qe:C,Bg:!1})}})}
1164
1165
  function pw(a,b){a=a+b.length-1;var c=-1;if(!b.length)return a++,{Ob:a,Pb:c};b=b[b.length-1];var d=b.g;if(!b.g.length)return a++,b.m&&(c=0),{Ob:a,Pb:c};c=d.length-1;d[d.length-1].isPreload()||(a++,c=0);return{Ob:a,Pb:c}}
1165
1166
  function ix(a,b,c,d,e,f,g,h,k,l,m,n){var p=Rw(c,b)||Sw(c),r=[];if(k){k=t(k.split(","));for(var u=k.next();!u.done;u=k.next())r.push(u.value)}k=void 0;u=null;c==Xc?k=r.includes("public.accessibility.transcribes-spoken-dialog")&&r.includes("public.accessibility.describes-music-and-sound")?"caption":"subtitle":r.includes("public.accessibility.describes-video")&&(u="visually impaired");r.length||"subtitle"!==k||r.push("subtitle");a={id:a.G++,originalId:f,groupId:null,createSegmentIndex:function(){return Promise.resolve()},
1166
1167
  segmentIndex:null,mimeType:p,codecs:b,kind:c==Xc?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:dd(d||"und"),originalLanguage:d,label:f,type:c,primary:e,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:r,forced:l,channelsCount:g,audioSamplingRate:m,spatialAudio:n,closedCaptions:h,hdr:void 0,colorGamut:void 0,videoLayout:void 0,tilesLayout:void 0,accessibilityPurpose:u,external:!1,fastSwitching:!1,
@@ -1171,26 +1172,26 @@ function mx(a,b,c,d,e){if(!window.crypto||!window.crypto.subtle)throw ab("Web Cr
1171
1172
  256,k.blockCipherMode="CTR"}k.fetchKey=function(){var l,m,n,p,r,u;return P(function(v){if(1==v.g)return l=Qv(d(),Jv(b,"URI"),e),m=l.sort().join(""),a.N.has(m)||(n=Dh(l,a.g.retryParameters),p=Mw(a,n,6).promise,a.N.set(m,p)),G(v,a.N.get(m),2);if(3!=v.g){r=v.h;if(!r.data||r.data.byteLength!=k.bitsKey/8)throw new U(2,4,4049);u={name:"CTR"==k.blockCipherMode?"AES-CTR":"AES-CBC",length:k.bitsKey};return G(v,window.crypto.subtle.importKey("raw",r.data,u,!0,["decrypt"]),3)}k.cryptoKey=v.h;k.fetchKey=void 0;
1172
1173
  I(v)})};a.na.set(c,k)}return a.na.get(c)}function Gw(a,b){null==a.u&&(b=Ov(b.ea,"EXT-X-START"))&&(a.u=Number(Jv(b,"TIME-OFFSET")))}function jx(a,b){var c=Ov(b.ea,"EXT-X-PLAYLIST-TYPE");b=Ov(b.ea,"EXT-X-ENDLIST");b=c&&"VOD"==c.value||b;c=c&&"EVENT"==c.value&&!b;c=!b&&!c;b?jw(a,cw):c?jw(a,Nw):jw(a,nx)}
1173
1174
  function qw(a,b){var c=Infinity,d=b.segments;if(d.length)for(var e=d.length-1;0<=e;){var f=Ov(d[e].ea,"EXTINF");if(f){c=Number(f.value.split(",")[0]);break}e--}d=Ov(b.ea,"EXT-X-TARGETDURATION");if(!d)throw new U(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);if(e=Ov(b.ea,"EXT-X-PART-INF"))a.V=Number(Jv(e,"PART-TARGET"));b=Ov(b.ea,"EXT-X-SERVER-CONTROL");a.L&&a.V?(a.s=a.ec?5*a.V<=c?Math.min(a.V,a.s):Math.min(c,a.s):Math.min(a.V,a.s),a.Ja=b?Number(Jv(b,"PART-HOLD-BACK")):0):(a.s=Math.min(c,a.s),
1174
- c=b?Hv(b,"HOLD-BACK"):null,a.Ia=c?Number(c.value):0);a.bb=Math.max(d,a.bb)}function Hw(a,b){var c=0;if(a.g.defaultPresentationDelay)c=a.g.defaultPresentationDelay;else if(a.Ja)c=a.Ja;else if(a.Ia)c=a.Ia;else{var d=b.segments.length,e=a.g.hls.liveSegmentsDelay;e>d-2&&(e=Math.max(1,d-2));for(e=d-e;e<d;e++){var f=Ov(b.segments[e].ea,"EXTINF");c=f?c+Math.ceil(Number(f.value.split(",")[0])):c+a.bb}}a.u&&0>a.u&&(c=Math.min(-a.u,c),a.u+=c);a.l.si(0);a.l.Vg(c);a.l.Vc(!1)}
1175
+ c=b?Hv(b,"HOLD-BACK"):null,a.Ia=c?Number(c.value):0);a.bb=Math.max(d,a.bb)}function Hw(a,b){var c=0;if(a.g.defaultPresentationDelay)c=a.g.defaultPresentationDelay;else if(a.Ja)c=a.Ja;else if(a.Ia)c=a.Ia;else{var d=b.segments.length,e=a.g.hls.liveSegmentsDelay;e>d-2&&(e=Math.max(1,d-2));for(e=d-e;e<d;e++){var f=Ov(b.segments[e].ea,"EXTINF");c=f?c+Math.ceil(Number(f.value.split(",")[0])):c+a.bb}}a.u&&0>a.u&&(c=Math.min(-a.u,c),a.u+=c);a.l.si(0);a.l.Vg(c);a.l.Xc(!1)}
1175
1176
  function lx(a,b,c,d,e){var f=Ov(c,"EXT-X-MAP");if(!f)return null;var g=Jv(f,"URI"),h=Qv(d(),g,e);g=[h.toString(),Iv(f,"BYTERANGE","")].join("-");if(!a.ya.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?Xw(Jv(m,"METHOD"))&&m.id<f.id&&(k=mx(a,m,b,d,e)):"EXT-X-BYTERANGE"==m.name&&m.id<f.id&&(l=m);b=ox(h,f,l,k);a.ya.set(g,b)}return a.ya.get(g)}
1176
1177
  function ox(a,b,c,d){var e=0,f=null;b=Iv(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 ej(function(){return a},e,f,null,null,null,d)}
1177
1178
  function px(a,b,c,d,e,f,g,h,k){function l(aa){aa=(new pb(aa)).mb.split(".").pop();var qa=qx[g][aa];qa||(qa=Lw[aa]);return qa}var m=d.ea,n=Ov(m,"EXTINF"),p=0,r=0,u=null;d.Xb.length&&(a.m.isLowLatency=!0);var v=null;if(!a.g.hls.ignoreManifestProgramDateTime){var w=Ov(m,"EXT-X-PROGRAM-DATE-TIME");w&&w.value&&(v=ye(w.value),a.zc=!0)}var y=hj;Ov(m,"EXT-X-GAP")&&(a.m.gapCount++,y=2);if(!n){if(0==d.Xb.length)throw new U(2,4,4024,"EXTINF");if(!a.L)return null}var z=[];w=!1;var B=null,A=!1,C=!1;if(a.L&&d.Xb.length){p=
1178
- b&&window.ReadableStream&&a.g.hls.allowLowLatencyByteRangeOptimization;for(var D=v,E={},H=0;H<d.Xb.length;E={rf:void 0,Ye:void 0},H++){var J=d.Xb[H],F=0==H?c:z[z.length-1],K=0==H?e:F.endTime,L=Number(Iv(J,"DURATION"))||a.V;if(L){var O=K+L,M=0,N=null;"EXT-X-PRELOAD-HINT"==J.name?(M=(M=Iv(J,"BYTERANGE-START"))?Number(M):0,(F=Iv(J,"BYTERANGE-LENGTH"))?N=M+Number(F)-1:M&&(N=Number.MAX_SAFE_INTEGER)):(M=Iv(J,"BYTERANGE"),N=t(rx(F,M)),M=N.next().value,N=N.next().value);E.Ye=Iv(J,"URI");if(E.Ye){F=hj;"YES"==
1179
- Iv(J,"GAP")&&(a.m.gapCount++,F=2,A=!0);E.rf=null;var Q=function(aa){return function(){null==aa.rf&&(aa.rf=Qv(h(),aa.Ye,f));return aa.rf}}(E);p&&0<=M&&null!=N&&(B=Q,w=!0);K=new gj(K,O,Q,M,N,b,0,0,Infinity,[],"",null,D,F,k);"EXT-X-PRELOAD-HINT"==J.name&&(K.Dg(),C=!0);"YES"!=Iv(J,"INDEPENDENT")&&0<H&&K.od();if(E=l(E.Ye))K.mimeType=E,sx.has(E)&&(K.ma=null);z.push(K);D&&(D+=L)}}}}if(n){n=Number(n.value.split(",")[0]);if(0==n)return null;p=e+n}else if(z.length)p=z[z.length-1].endTime;else return null;w&&
1180
- (A||0!=z[0].$a?(w=!1,B=null):z=[]);(n=Ov(m,"EXT-X-BYTERANGE"))?(u=t(rx(c,n.value)),r=u.next().value,u=u.next().value):z.length&&(r=z[0].$a,u=z[z.length-1].La);c="";n=null;"image"==g&&(c="1x1",m=Ov(m,"EXT-X-TILES"))&&(c=Jv(m,"LAYOUT"),(m=Iv(m,"DURATION"))&&(n=Number(m)));var S=null;b=new gj(e,p,function(){if(B)return B();null==S&&(S=Qv(h(),d.g,f));return S||[]},r,u,b,0,0,Infinity,z,c,n,v,y,k,0<z.length&&!!d.g);if(e=l(d.g))b.mimeType=e,sx.has(e)&&(b.ma=null);w&&(a.ec=!0,b.Uh(),C&&b.Dg());return b}
1179
+ b&&window.ReadableStream&&a.g.hls.allowLowLatencyByteRangeOptimization;for(var D=v,E={},H=0;H<d.Xb.length;E={qf:void 0,Ye:void 0},H++){var J=d.Xb[H],F=0==H?c:z[z.length-1],K=0==H?e:F.endTime,L=Number(Iv(J,"DURATION"))||a.V;if(L){var O=K+L,M=0,N=null;"EXT-X-PRELOAD-HINT"==J.name?(M=(M=Iv(J,"BYTERANGE-START"))?Number(M):0,(F=Iv(J,"BYTERANGE-LENGTH"))?N=M+Number(F)-1:M&&(N=Number.MAX_SAFE_INTEGER)):(M=Iv(J,"BYTERANGE"),N=t(rx(F,M)),M=N.next().value,N=N.next().value);E.Ye=Iv(J,"URI");if(E.Ye){F=hj;"YES"==
1180
+ Iv(J,"GAP")&&(a.m.gapCount++,F=2,A=!0);E.qf=null;var Q=function(aa){return function(){null==aa.qf&&(aa.qf=Qv(h(),aa.Ye,f));return aa.qf}}(E);p&&0<=M&&null!=N&&(B=Q,w=!0);K=new gj(K,O,Q,M,N,b,0,0,Infinity,[],"",null,D,F,k);"EXT-X-PRELOAD-HINT"==J.name&&(K.Cg(),C=!0);"YES"!=Iv(J,"INDEPENDENT")&&0<H&&K.od();if(E=l(E.Ye))K.mimeType=E,sx.has(E)&&(K.ma=null);z.push(K);D&&(D+=L)}}}}if(n){n=Number(n.value.split(",")[0]);if(0==n)return null;p=e+n}else if(z.length)p=z[z.length-1].endTime;else return null;w&&
1181
+ (A||0!=z[0].$a?(w=!1,B=null):z=[]);(n=Ov(m,"EXT-X-BYTERANGE"))?(u=t(rx(c,n.value)),r=u.next().value,u=u.next().value):z.length&&(r=z[0].$a,u=z[z.length-1].La);c="";n=null;"image"==g&&(c="1x1",m=Ov(m,"EXT-X-TILES"))&&(c=Jv(m,"LAYOUT"),(m=Iv(m,"DURATION"))&&(n=Number(m)));var S=null;b=new gj(e,p,function(){if(B)return B();null==S&&(S=Qv(h(),d.g,f));return S||[]},r,u,b,0,0,Infinity,z,c,n,v,y,k,0<z.length&&!!d.g);if(e=l(d.g))b.mimeType=e,sx.has(e)&&(b.ma=null);w&&(a.ec=!0,b.Uh(),C&&b.Cg());return b}
1181
1182
  function rx(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.La+1,d=c+b-1);return[c,d]}
1182
1183
  function rw(a,b,c,d,e){if("video"==c||"audio"==c){var f=a.l.m;if(f&&!tw(a,c))for(b=Mv(b,"EXT-X-DATERANGE"),b=b.sort(function(K,L){K=Jv(K,"START-DATE");L=Jv(L,"START-DATE");return K<L?-1:K>L?1:0}),c=0;c<b.length;c++){var g=b[c];try{var h=Jv(g,"ID");if(!a.Ha.has(h)){var k=Jv(g,"START-DATE"),l=ye(k);if(!isNaN(l)){var m=Math.max(0,l-f),n=null,p=Iv(g,"END-DATE");if(p){var r=ye(p);if(!isNaN(r)&&(n=r-f,0>n))continue}if(null==n){var u=Iv(g,"DURATION")||Iv(g,"PLANNED-DURATION");if(u){var v=parseFloat(u);isNaN(v)||
1183
1184
  (n=m+v);if(0>l-f+v)continue}}var w=Iv(g,"CLASS")||"com.apple.quicktime.HLS",y="YES"==Iv(g,"END-ON-NEXT");if(null==n&&y){for(var z=c+1;z<b.length;z++){var B=Iv(b[z],"CLASS")||"com.apple.quicktime.HLS";if(w==B){var A=Jv(b[z],"START-DATE"),C=ye(A);if(!isNaN(C)&&C&&C>l){n=Math.max(0,C-f);break}}}if(null==n)continue}z=["CLASS","START-DATE","END-DATE","DURATION","END-ON-NEXT"];for(var D=[],E=t(g.attributes),H=E.next();!H.done;H=E.next()){var J=H.value;if(!z.includes(J.name)){var F=Sv(J.value,d);if("X-ASSET-URI"==
1184
1185
  J.name||"X-ASSET-LIST"==J.name)F=Qv(e(),J.value,d)[0];D.push({key:J.name,description:"",data:F,mimeType:null,pictureType:null})}}if(1<D.length)a.h.onMetadata(w,m,n,D);a.Ha.add(h)}}}catch(K){}}}}
1185
1186
  function ow(a,b,c,d,e,f){var g=b.segments,h=void 0,k=Pv(b.ea,"EXT-X-DISCONTINUITY-SEQUENCE",0),l=Pv(b.ea,"EXT-X-MEDIA-SEQUENCE",0),m=Ov(b.ea,"EXT-X-SKIP"),n=m?Number(Iv(m,"SKIPPED-SEGMENTS")):0,p=l+n,r=0;fw(a)&&c.has(p)&&(r=c.get(p));0===r&&a.Da==Nw&&0<c.size&&!c.has(p)&&null!=a.l.i&&(r=a.l.Hb());var u=[],v=null;m=[];for(var w=0;w<g.length;w++){var y=g[w],z=0==w?r:v.endTime;p=l+n+w;Ov(y.ea,"EXT-X-DISCONTINUITY")&&k++;var B=t(y.ea);for(var A=B.next();!A.done;A=B.next())A=A.value,"EXT-X-KEY"==A.name&&
1186
1187
  (Xw(Jv(A,"METHOD"))?h=mx(a,A,b,e,d):h=void 0);c.set(p,z);B=lx(a,b,y.ea,e,d);!a.L&&a.h.isAutoLowLatencyMode()&&(a.h.enableLowLatencyMode(),a.L=a.h.isLowLatencyMode());if(z=px(a,B,v,y,z,d,f,e,h))(v=Pv(y.ea,"EXT-X-BITRATE"))?m.push({bitrate:v,duration:z.endTime-z.startTime}):m.length&&(v=m.pop(),v.duration+=z.endTime-z.startTime,m.push(v)),v=z,z.i=k,tw(a,f)&&null!=a.K&&p<a.K||u.push(z)}b=void 0;m.length&&(b=m.reduce(function(C,D){return C+D.duration},0),b=Math.round(m.reduce(function(C,D){return C+D.bitrate*
1187
- D.duration},0)/b*1E3));if(m=u.some(function(C){return null!=C.h}))for(c={},d=0;d<u.length;c={xe:void 0,we:void 0,oe:void 0,Tc:void 0,me:void 0},d++)if(c.Tc=u[d],null==c.Tc.h)for(c.we=0,c.xe=d,e=function(C){return function(){var D=u[C.xe];if(D){if(null!=D.h)return D.h+C.we;C.we-=D.endTime-D.startTime;C.xe+=1}return null}}(c),c.me=0,c.oe=d,g=function(C){return function(){var D=u[C.oe];if(D){D!=C.Tc&&(C.me+=D.endTime-D.startTime);if(null!=D.h)return D.h+C.me;--C.oe}return null}}(c);null==c.Tc.h;)c.Tc.h=
1188
- g(),null==c.Tc.h&&(c.Tc.h=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.ka;if(m&&Infinity!=c&&!tw(a,f))for(a=t(u),f=a.next();!f.done;f=a.next())f.value.eh(c);return{segments:u,bandwidth:b}}
1188
+ D.duration},0)/b*1E3));if(m=u.some(function(C){return null!=C.h}))for(c={},d=0;d<u.length;c={xe:void 0,we:void 0,oe:void 0,Vc:void 0,me:void 0},d++)if(c.Vc=u[d],null==c.Vc.h)for(c.we=0,c.xe=d,e=function(C){return function(){var D=u[C.xe];if(D){if(null!=D.h)return D.h+C.we;C.we-=D.endTime-D.startTime;C.xe+=1}return null}}(c),c.me=0,c.oe=d,g=function(C){return function(){var D=u[C.oe];if(D){D!=C.Vc&&(C.me+=D.endTime-D.startTime);if(null!=D.h)return D.h+C.me;--C.oe}return null}}(c);null==c.Vc.h;)c.Vc.h=
1189
+ g(),null==c.Vc.h&&(c.Vc.h=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.ka;if(m&&Infinity!=c&&!tw(a,f))for(a=t(u),f=a.next();!f.done;f=a.next())f.value.eh(c);return{segments:u,bandwidth:b}}
1189
1190
  function Rw(a,b){if(a==Xc){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"}function Sw(a){return a==Xc?"text/vtt":qx[a].mp4}function Kw(a,b){a=fw(a)?Math.trunc((b.length-1)/2):0;for(var c=b[a];2==c.tc()&&a+1<b.length;)a++,c=b[a];return{segment:c,segmentIndex:a}}
1190
1191
  function kx(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,v,w,y;return P(function(z){switch(z.g){case 1:e=Jh;f=Kw(a,d);g=f.segment;if(2==g.status)return z.return(Sw(b));h=g.R();k=new pb(h[0]);l=k.mb.split(".").pop();m=qx[b];if((n=m[l])||(n=Lw[l])||(n=Rw(b,c)))return z.return(n);r=1;u=Dh(h,a.g.retryParameters);va(z,2);u.method="HEAD";return G(z,Mw(a,u,e,{type:r}).promise,4);case 4:v=z.h;p=v.headers["content-type"];xa(z,3);break;case 2:w=za(z);if(!w||1002!=w.code&&1001!=w.code){z.B(3);break}u.method="GET";return G(z,
1191
1192
  Mw(a,u,e,{type:r}).promise,6);case 6:y=z.h,p=y.headers["content-type"];case 3:return p?z.return(p.toLowerCase().split(";")[0]):z.return(Sw(b))}})}function fx(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 dw(a,b,c){return Mw(a,Dh(b,a.g.retryParameters),0,{type:c?2:3})}
1192
1193
  function bw(a){var b,c,d,e,f,g;return P(function(h){switch(h.g){case 1:if(!a.h)return h.return();va(h,2);b=Date.now();return G(h,a.update(),4);case 4:c=Date.now();fw(a)&&(d=(c-b)/1E3,a.Kb.sample(1,d),e=a.s,f=Math.max(0,e-sd(a.Kb)),a.C.X(f));xa(h,3);break;case 2:g=za(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.C.X(.1);case 3:if(!a.h)return h.return();a.h.onManifestUpdated();I(h)}})}
1193
- function fw(a){return a.Da!=cw}function jw(a,b){a.Da=b;a.l&&a.l.Vc(!fw(a));fw(a)||a.C.stop()}function Mw(a,b,c,d){if(!a.aa)throw new U(2,7,7001);d||(d={});d.isPreload=a.Mb();b=a.h.networkingEngine.request(c,b,d);vh(a.aa,b);return b}function Xw(a){return"AES-128"==a||"AES-256"==a||"AES-256-CTR"==a}
1194
+ function fw(a){return a.Da!=cw}function jw(a,b){a.Da=b;a.l&&a.l.Xc(!fw(a));fw(a)||a.C.stop()}function Mw(a,b,c,d){if(!a.aa)throw new U(2,7,7001);d||(d={});d.isPreload=a.Mb();b=a.h.networkingEngine.request(c,b,d);vh(a.aa,b);return b}function Xw(a){return"AES-128"==a||"AES-256"==a||"AES-256-CTR"==a}
1194
1195
  function Zw(a,b,c,d,e,f){var g,h,k,l,m,n,p,r,u,v,w,y,z,B,A;return P(function(C){switch(C.g){case 1:if("video/mp2t"==c)throw new U(2,4,4040);if(xc())throw new U(2,4,4041);g=Jv(b,"METHOD");h=["SAMPLE-AES","SAMPLE-AES-CTR"];if(!h.includes(g))return C.return(null);k=Qv(d(),Jv(b,"URI"),f);if(k[0].startsWith("data:text/plain;base64,")){l=Oc(Mc(k[0].split("data:text/plain;base64,").pop()));C.B(2);break}m=k.sort().join("");a.ra.has(m)||(n=Dh(k,a.g.retryParameters),p=Mw(a,n,6).promise,a.ra.set(m,p));return G(C,
1195
1196
  a.ra.get(m),3);case 3:r=C.h,l=Oc(r.data);case 2:u="00000000000000000000000000000000";if(!e){C.B(4);break}if(a.Ca.has(e)){v=a.Ca.get(e);C.B(5);break}w=bm(e.R(),e.Ib(),e.Fb(),a.g.retryParameters);y=Jh;return G(C,Mw(a,w,y,{type:0}).promise,6);case 6:z=C.h,v=$l(z.data),a.Ca.set(e,v);case 5:v&&(u=v);case 4:return B=new Map,B.set(u,l),A="cenc","SAMPLE-AES"==g&&(A="cbcs"),C.return(Tc(B,A))}})}R("shaka.hls.HlsParser",aw);
1196
1197
  var Lw={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},qx={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",
@@ -1220,7 +1221,7 @@ var zx=!1,Fx=Math.pow(2,32)-1,iy={},Hx=new Uint8Array([0,0,0,0,0,0,0,0,118,105,1
1220
1221
  function ky(a){var b;P(function(c){switch(c.g){case 1:return va(c,2),G(c,ly(a),4);case 4:xa(c,3);break;case 2:b=za(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.C.destroy()};
1221
1222
  q.update=function(){var a=this,b;return P(function(c){if(1==c.g)return va(c,2),G(c,ly(a),4);if(2!=c.g)return xa(c,0);b=za(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(){};
1222
1223
  function ly(a){var b,c,d,e,f,g,h;return P(function(k){if(1==k.g)return b=Dh(a.l,a.g.retryParameters),c=a.h.networkingEngine,d=Date.now(),e=c.request(0,b,{type:5,isPreload:a.A()}),vh(a.C,e),G(k,e.promise,2);f=k.h;if(!a.h)return k.return();f.uri&&!a.l.includes(f.uri)&&a.l.unshift(f.uri);var l=f.uri,m=f.data,n=a.g.mss.manifestPreprocessor;if(n!=Ym){Dd("manifest.mss.manifestPreprocessor configuration","Please Use manifest.mss.manifestPreprocessorTXml instead.");m=Tu(m,"SmoothStreamingMedia");if(!m)throw new U(2,
1223
- 4,4046,l);n(m);m=Fc(m.outerHTML)}var p=de(m,"SmoothStreamingMedia");if(!p)throw new U(2,4,4046,l);l=a.g.mss.manifestPreprocessorTXml;l!=Zm&&l(p);a.i||(a.i=new Uk(null,0));if(l=ve(p,"IsLive",Fe,!1))throw new U(2,4,4047);a.i.Vc(!l);n=ve(p,"TimeScale",De,1E7);m=ve(p,"DVRWindowLength",De);l&&(0===m||isNaN(m))&&(m=Infinity);var r=ve(p,"CanSeek",Fe,!1);0===m&&r&&(m=Infinity);r=null;m&&0<m&&(r=m/n);l&&!isNaN(a.g.availabilityWindowOverride)&&(r=a.g.availabilityWindowOverride);null==r&&(r=Infinity);a.i.jf(r);
1224
+ 4,4046,l);n(m);m=Fc(m.outerHTML)}var p=de(m,"SmoothStreamingMedia");if(!p)throw new U(2,4,4046,l);l=a.g.mss.manifestPreprocessorTXml;l!=Zm&&l(p);a.i||(a.i=new Uk(null,0));if(l=ve(p,"IsLive",Fe,!1))throw new U(2,4,4047);a.i.Xc(!l);n=ve(p,"TimeScale",De,1E7);m=ve(p,"DVRWindowLength",De);l&&(0===m||isNaN(m))&&(m=Infinity);var r=ve(p,"CanSeek",Fe,!1);0===m&&r&&(m=Infinity);r=null;m&&0<m&&(r=m/n);l&&!isNaN(a.g.availabilityWindowOverride)&&(r=a.g.availabilityWindowOverride);null==r&&(r=Infinity);a.i.hf(r);
1224
1225
  m=ve(p,"Duration",De,Infinity);l||a.i.vb(m/n);l={variants:[],textStreams:[],timescale:n,duration:m/n};var u;r=oe(p,"Protection");n=a.g.mss.keySystemsBySystemId;m=[];r=t(r);for(u=r.next();!u.done;u=r.next())m=m.concat(oe(u.value,"ProtectionHeader"));if(m.length){r=[];for(u=0;u<m.length;u++){var v=m[u],w=v.attributes.SystemID.toLowerCase(),y=n[w];if(y){var z=vx(v);if(z)a:{z=t(re(z,"DATA"));for(var B=z.next();!B.done;B=z.next())if(B=se(B.value,"KID")){z=Mc(pe(B));z=new Uint8Array([z[3],z[2],z[1],z[0],
1225
1226
  z[5],z[4],z[7],z[6]].concat(x(z.slice(8))));z=Oc(z);break a}z=null}else z=null;B=Mc(pe(v));w=Nc(w.replace(/-/g,""));w=[{initData:fi(B,w,new Set,0),initDataType:"cenc",keyId:z}];w=Rc(y,"cenc",w);z&&w.keyIds.add(z);if(y=xx.get(y))w.licenseServerUri=y(v);r.push(w)}}n=r}else n=[];u=n;r=[];n=[];m=[];p=oe(p,"StreamIndex");p=t(p);for(v=p.next();!v.done;v=p.next()){v=v.value;y=oe(v,"QualityLevel");w=l.timescale;z=l.duration;B=oe(v,"c");for(var A=[],C=0,D=0;D<B.length;++D){var E=B[D],H=B[D+1],J=ve(E,"t",De),
1226
1227
  F=ve(E,"d",De);E=ve(E,"r",Be);if(!F)break;J=null!=J?J:C;(E=E||0)&&E--;if(0>E)if(H){H=ve(H,"t",De);if(null==H)break;else if(J>=H)break;E=Math.ceil((H-J)/F)-1}else{if(Infinity==z)break;else if(J/w>=z)break;E=Math.ceil((z*w-J)/F)-1}for(H=0;H<=E;++H)C=J+F,A.push({start:J/w,end:C/w,jh:J}),J=C}w=A;y=t(y);for(z=y.next();!z.done;z=y.next())(z=my(a,v,z.value,w,u,l))&&("audio"!=z.type||a.g.disableAudio?"video"!=z.type||a.g.disableVideo?z.type!=Xc||a.g.disableText||m.push(z):n.push(z):r.push(z))}p=[];r=t(0<
@@ -1234,7 +1235,7 @@ w.createSegmentIndex=function(){if(w.segmentIndex)return Promise.resolve();if(a.
1234
1235
  y),w,b,d);w.segmentIndex=new pl(y);return Promise.resolve()};w.closeSegmentIndex=function(){w.segmentIndex&&(w.segmentIndex.release(),w.segmentIndex=null)};return w}
1235
1236
  function py(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;
1236
1237
  b=new Uint16Array(1);b[0]=(c[0]<<8)+c[1];return b[0].toString(16)}function qy(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 ry(a){var b=/00000001[0-9]7/.exec(a);return b.length&&a?"avc1."+a.substr(a.indexOf(b[0])+10,6):""}
1237
- function sy(a,b,c,d,e){var f=d.attributes.Url.replace("{bitrate}",String(c.bandwidth));d=[];e=t(e);for(var g=e.next(),h={};!g.done;h={lf:void 0},g=e.next())h.lf=g.value,d.push(new gj(h.lf.start,h.lf.end,function(k){return function(){return Qc(a.l,[f.replace("{start time}",String(k.lf.jh))])}}(h),0,null,b,0,0,c.mssPrivateData.duration));return d}R("shaka.mss.MssParser",jy);var oy="AAC AACL AACH AACP AVC1 H264 TTML DFXP".split(" "),ny={CAPT:"main",SUBT:"alternate",DESC:"main"};
1238
+ function sy(a,b,c,d,e){var f=d.attributes.Url.replace("{bitrate}",String(c.bandwidth));d=[];e=t(e);for(var g=e.next(),h={};!g.done;h={kf:void 0},g=e.next())h.kf=g.value,d.push(new gj(h.kf.start,h.kf.end,function(k){return function(){return Qc(a.l,[f.replace("{start time}",String(k.kf.jh))])}}(h),0,null,b,0,0,c.mssPrivateData.duration));return d}R("shaka.mss.MssParser",jy);var oy="AAC AACL AACH AACP AVC1 H264 TTML DFXP".split(" "),ny={CAPT:"main",SUBT:"alternate",DESC:"main"};
1238
1239
  $i["application/vnd.ms-sstr+xml"]=function(){return new jy};function ty(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};var g=null;try{g=Ec(b)}catch(h){}throw new U(401==c||403==c?2:1,1,1001,d,c,g,a,f,e||d);};function uy(){}
1239
1240
  function vy(a,b,c,d,e,f){var g=new wy;Nh(b.headers).forEach(function(m,n){g.append(n,m)});var h=new xy,k={sh:!1,Gi:!1};a=yy(a,c,{body:b.body||void 0,headers:g,method:b.method,signal:h.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},k,d,e,b.streamDataCallback,f.minBytesForProgressEvents||0);a=new nh(a,function(){k.sh=!0;h.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var l=new Xb(function(){k.Gi=!0;h.abort()});l.X(b/1E3);a.finally(function(){l.stop()})}return a}
1240
1241
  function yy(a,b,c,d,e,f,g,h){var k,l,m,n,p,r,u,v,w,y,z,B,A;return P(function(C){switch(C.g){case 1:return k=zy,l=Ay,r=p=0,u=Date.now(),va(C,2),G(C,k(a,c),4);case 4:m=C.h;f(By(m.headers));if("HEAD"==c.method){C.B(5);break}v=m.clone().body.getReader();y=(w=m.headers.get("Content-Length"))?parseInt(w,10):0;z=function(D){function E(){var H,J,F,K;return P(function(L){switch(L.g){case 1:return va(L,2),G(L,v.read(),4);case 4:H=L.h;xa(L,3);break;case 2:return za(L),L.return();case 3:if(H.done){L.B(5);break}p+=
@@ -1245,13 +1246,13 @@ function Ey(a,b,c,d,e,f){var g=new Fy,h=Date.now(),k=0,l=new Promise(function(m,
1245
1246
  function(u){n(new U(1,1,1002,a,u,c))};g.ontimeout=function(){n(new U(1,1,1003,a,c))};g.onprogress=function(u){var v=Date.now(),w=f.minBytesForProgressEvents||0,y=u.loaded-k;if(100<v-h&&y>=w||u.lengthComputable&&u.loaded==u.total)d(v-h,y,4==g.readyState?0:u.total-u.loaded),k=u.loaded,h=v};for(var r in b.headers)g.setRequestHeader(r.toLowerCase(),b.headers[r]);g.send(b.body)});return new nh(l,function(){g.abort();return Promise.resolve()})}
1246
1247
  function Gy(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}R("shaka.net.HttpXHRPlugin",Dy);Dy.parse=Ey;var Fy=window.XMLHttpRequest;xh("http",Ey,1,!0);xh("https",Ey,1,!0);xh("blob",Ey,1,!0);function Hy(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function Iy(a){return a.R().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.$a+":"+a.La}function Jy(a,b){return bm(a.g.R(),a.g.$a,a.g.La,b.streaming.retryParameters)};function Ky(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function Ly(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}Ky.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 My(a){var b=this;this.s=a;this.j=new Map;this.i=new Lh(function(){return Ny(b).catch(function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new Ky}My.prototype.destroy=function(){return this.i.destroy()};function Oy(a,b,c){a.m=b;a.l=c}function Ny(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
1247
1248
  function Py(a,b,c,d,e,f){Mh(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,p,r;return P(function(u){if(1==u.g)return G(u,Qy(a,c),2);h=u.h;if(a.i.g)throw new U(2,9,7001);if(e)for(m in k=Jb(h),l=new ei(k),l.data)n=Number(m),p=l.data[n],r=l.g[n],a.l(p,r);a.g.close(d,h.byteLength);var v=a.g;a.m(0==v.i?0:v.j/v.i,a.g.h);return u.return(f(h))})});a.j.set(b,g)}function Ry(a){return P(function(b){return 1==b.g?G(b,Promise.all(a.j.values()),2):b.return(a.g.h)})}
1248
- function Qy(a,b){var c,d,e,f;return P(function(g){if(1==g.g)return c=Jh,d=a.s.request(c,b),e=function(){return d.abort()},a.h.push(e),G(g,d.promise,2);f=g.h;Sd(a.h,e);return g.return(f.data)})};function Sy(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new mh;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}Sy.prototype.abort=function(){var a=this;return P(function(b){if(1==b.g){try{a.i.abort()}catch(c){}va(b,2);return G(b,a.g,4)}if(2!=b.g)return xa(b,0);za(b);I(b)})};
1249
- function Ty(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return P(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)})}})}Sy.prototype.store=function(){return this.h};Sy.prototype.promise=function(){return this.g};function Uy(a){this.h=a;this.g=[]}Uy.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function Vy(a,b){return Wy(a,b,"readwrite")}function Wy(a,b,c){c=a.h.transaction([b],c);var d=new Sy(c,b);a.g.push(d);d.promise().then(function(){Sd(a.g,d)},function(){Sd(a.g,d)});return d};function Xy(a,b,c){this.h=new Uy(a);this.i=b;this.g=c}q=Xy.prototype;q.destroy=function(){return this.h.destroy()};q.hasFixedKeySpace=function(){return!0};q.addSegments=function(){return Yy(this.i)};q.removeSegments=function(a,b){return Zy(this,this.i,a,b)};q.getSegments=function(a){var b=this,c;return P(function(d){if(1==d.g)return G(d,$y(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.yh(e)}))})};q.addManifests=function(){return Yy(this.g)};
1249
+ function Qy(a,b){var c,d,e,f;return P(function(g){if(1==g.g)return c=Jh,d=a.s.request(c,b),e=function(){return d.abort()},a.h.push(e),G(g,d.promise,2);f=g.h;Rd(a.h,e);return g.return(f.data)})};function Sy(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new mh;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}Sy.prototype.abort=function(){var a=this;return P(function(b){if(1==b.g){try{a.i.abort()}catch(c){}va(b,2);return G(b,a.g,4)}if(2!=b.g)return xa(b,0);za(b);I(b)})};
1250
+ function Ty(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return P(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)})}})}Sy.prototype.store=function(){return this.h};Sy.prototype.promise=function(){return this.g};function Uy(a){this.h=a;this.g=[]}Uy.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function Vy(a,b){return Wy(a,b,"readwrite")}function Wy(a,b,c){c=a.h.transaction([b],c);var d=new Sy(c,b);a.g.push(d);d.promise().then(function(){Rd(a.g,d)},function(){Rd(a.g,d)});return d};function Xy(a,b,c){this.h=new Uy(a);this.i=b;this.g=c}q=Xy.prototype;q.destroy=function(){return this.h.destroy()};q.hasFixedKeySpace=function(){return!0};q.addSegments=function(){return Yy(this.i)};q.removeSegments=function(a,b){return Zy(this,this.i,a,b)};q.getSegments=function(a){var b=this,c;return P(function(d){if(1==d.g)return G(d,$y(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.yh(e)}))})};q.addManifests=function(){return Yy(this.g)};
1250
1251
  q.updateManifest=function(){return Promise.reject(new U(2,9,9016,"Cannot modify values in "+this.g))};function az(a,b,c){a=Vy(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}q.updateManifestExpiration=function(a,b){var c=Vy(this.h,this.g),d=c.store();d.get(a).onsuccess=function(e){if(e=e.target.result)e.expiration=b,d.put(e,a)};return c.promise()};q.removeManifests=function(a,b){return Zy(this,this.g,a,b)};
1251
1252
  q.getManifests=function(a){var b=this,c;return P(function(d){if(1==d.g)return G(d,$y(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.Fd(e)})))})};q.getAllManifests=function(){var a=this,b,c;return P(function(d){return 1==d.g?(b=Wy(a.h,a.g,"readonly"),c=new Map,G(d,Ty(b,function(e,f){var g;return P(function(h){if(1==h.g)return G(h,a.Fd(f),2);g=h.h;c.set(e,g);I(h)})}),2)):3!=d.g?G(d,b.promise(),3):d.return(c)})};q.yh=function(a){return a};q.Fd=function(a){return Promise.resolve(a)};
1252
1253
  function Yy(a){return Promise.reject(new U(2,9,9011,"Cannot add new value to "+a))}q.add=function(a,b){var c=this,d,e,f,g,h,k,l;return P(function(m){if(1==m.g){d=Vy(c.h,a);e=d.store();f=[];g=t(b);h=g.next();for(k={};!h.done;k={Ng:void 0},h=g.next())l=h.value,k.Ng=e.add(l),k.Ng.onsuccess=function(n){return function(){f.push(n.Ng.result)}}(k);return G(m,d.promise(),2)}return m.return(f)})};
1253
- function Zy(a,b,c,d){a=Vy(a.h,b);b=a.store();c=t(c);for(var e=c.next(),f={};!e.done;f={zg:void 0},e=c.next())f.zg=e.value,b.delete(f.zg).onsuccess=function(g){return function(){return d(g.zg)}}(f);return a.promise()}
1254
- function $y(a,b,c){var d,e,f,g,h,k,l;return P(function(m){if(1==m.g){d=Wy(a.h,b,"readonly");e=d.store();f={};g=[];h=t(c);k=h.next();for(l={};!k.done;l={cf:void 0,Le:void 0},k=h.next())l.Le=k.value,l.cf=e.get(l.Le),l.cf.onsuccess=function(n){return function(){void 0==n.cf.result&&g.push(n.Le);f[n.Le]=n.cf.result}}(l);return G(m,d.promise(),2)}if(g.length)throw new U(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(n){return f[n]}))})};function bz(a){this.g=new Uy(a)}bz.prototype.destroy=function(){return this.g.destroy()};bz.prototype.getAll=function(){var a=this,b,c;return P(function(d){return 1==d.g?(b=Wy(a.g,"session-ids","readonly"),c=[],G(d,Ty(b,function(e,f){c.push(f)}),2)):3!=d.g?G(d,b.promise(),3):d.return(c)})};bz.prototype.add=function(a){var b=Vy(this.g,"session-ids"),c=b.store();a=t(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()};
1254
+ function Zy(a,b,c,d){a=Vy(a.h,b);b=a.store();c=t(c);for(var e=c.next(),f={};!e.done;f={yg:void 0},e=c.next())f.yg=e.value,b.delete(f.yg).onsuccess=function(g){return function(){return d(g.yg)}}(f);return a.promise()}
1255
+ function $y(a,b,c){var d,e,f,g,h,k,l;return P(function(m){if(1==m.g){d=Wy(a.h,b,"readonly");e=d.store();f={};g=[];h=t(c);k=h.next();for(l={};!k.done;l={bf:void 0,Le:void 0},k=h.next())l.Le=k.value,l.bf=e.get(l.Le),l.bf.onsuccess=function(n){return function(){void 0==n.bf.result&&g.push(n.Le);f[n.Le]=n.bf.result}}(l);return G(m,d.promise(),2)}if(g.length)throw new U(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(n){return f[n]}))})};function bz(a){this.g=new Uy(a)}bz.prototype.destroy=function(){return this.g.destroy()};bz.prototype.getAll=function(){var a=this,b,c;return P(function(d){return 1==d.g?(b=Wy(a.g,"session-ids","readonly"),c=[],G(d,Ty(b,function(e,f){c.push(f)}),2)):3!=d.g?G(d,b.promise(),3):d.return(c)})};bz.prototype.add=function(a){var b=Vy(this.g,"session-ids"),c=b.store();a=t(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()};
1255
1256
  bz.prototype.remove=function(a){var b=this,c;return P(function(d){return 1==d.g?(c=Vy(b.g,"session-ids"),G(d,Ty(c,function(e,f,g){a.includes(f.sessionId)&&g.delete()}),2)):G(d,c.promise(),0)})};function cz(){this.g=new Map}cz.prototype.destroy=function(){for(var a=[],b=t(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};cz.prototype.init=function(){var a=this;dz.forEach(function(e,f){(e=e())&&a.g.set(f,e)});for(var b=[],c=t(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)};
1256
1257
  function ez(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Nb:d,ab:f},ab:e})})});if(b)return b;throw new U(2,9,9013,"Could not find a cell that supports add-operations");}function fz(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Nb:d,ab:f},e)})})}
1257
1258
  function gz(a,b,c){a=a.g.get(b);if(!a)throw new U(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new U(2,9,9013,"Could not find cell with name "+c);return b}function hz(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function iz(a){var b=Array.from(a.g.keys());if(!b.length)throw new U(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()}
@@ -1290,8 +1291,8 @@ function Jz(a,b,c){var d,e;return P(function(f){switch(f.g){case 1:return d=new
1290
1291
  h.g)return va(h,2),G(h,Ai(d,g),4);if(2!=h.g)return e.push(g),xa(h,0);za(h);I(h)})})),6);case 6:return G(f,d.destroy(),7);case 7:return f.return(e)}})}function Iz(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&Td(a.audioCapabilities,b.audioCapabilities,c)&&Td(a.videoCapabilities,b.videoCapabilities,c)};function Kz(a,b,c){var d=b.presentationTimeline.getDuration();b=Lz(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function Mz(a,b){var c=yz(new xz(a.Nb(),a.ab()),b),d=b.appMetadata||{};c=Lz(c);return{offlineUri:a.toString(),originalManifestUri:b.originalManifestUri,duration:b.duration,size:b.size,expiration:b.expiration,tracks:c,appMetadata:d,isIncomplete:b.isIncomplete||!1}}
1291
1292
  function Lz(a){var b=[],c=Jg(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push(zg(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(Ag(c.value));return b};function Nz(){this.g={}}function Oz(a,b){var c=b.audio,d=b.video;c&&!d&&(a.g[c.id]=c.bandwidth||b.bandwidth);!c&&d&&(a.g[d.id]=d.bandwidth||b.bandwidth);if(c&&d){var e=c.bandwidth||393216,f=d.bandwidth||b.bandwidth-e;0>=f&&(f=b.bandwidth);a.g[c.id]=e;a.g[d.id]=f}}function Pz(a,b){a.g[b.id]=b.bandwidth||2048}function Qz(a,b){a=a.g[b];null==a&&(a=0);return a};function Rz(a){var b=this;if(a&&a.constructor!=X)throw new U(2,9,9008);this.g=this.h=null;a?(this.h=a.g,this.g=a.Gb()):(this.h=Xm(),this.g=new wh);this.i=[];this.j=[];var c=!a;this.l=new Lh(function(){var d,e,f,g,h;return P(function(k){switch(k.g){case 1:return G(k,Promise.all(b.j.map(function(l){return Ny(l)})),2);case 2:d=function(){};e=[];f=t(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return G(k,Promise.all(e),3);case 3:if(!c){k.B(4);break}return G(k,b.g.destroy(),4);
1292
1293
  case 4:b.h=null,b.g=null,I(k)}})})}function Sz(){if(Yb())a:{var a=t(dz.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}q=Rz.prototype;q.destroy=function(){return this.l.destroy()};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Om(a,b));return an(this.h,a)};q.getConfiguration=function(){var a=Xm();an(a,this.h,Xm());return a};q.Gb=function(){return this.g};
1293
- q.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new My(this.g);this.j.push(f);b=Tz(this,a,b||{},function(){var g;return P(function(h){if(1==h.g)return c?h.B(2):G(h,vn(a,d.g,e.manifest.retryParameters),3);2!=h.g&&(c=h.h);g=Zi(a,c||null);return h.return(g())})},e,f);b=new nh(b,function(){return Ny(f)});b.finally(function(){Sd(d.j,f)});return Uz(this,b)};
1294
- function Tz(a,b,c,d,e,f){var g,h,k,l,m,n,p,r,u,v,w,y,z,B;return P(function(A){switch(A.g){case 1:return Vz(),h=g=null,k=new cz,n=m=l=null,va(A,2,3),G(A,d(),5);case 5:return g=A.h,G(A,Wz(a,b,g,e),6);case 6:p=A.h;Xz(a);r=!p.presentationTimeline.T()&&!p.presentationTimeline.Pc();if(!r)throw new U(2,9,9005,b);return G(A,a.cd(p,function(C){n=n||C},e),7);case 7:h=A.h;Xz(a);if(n)throw n;return G(A,Yz(p,h,e),8);case 8:return G(A,k.init(),9);case 9:return Xz(a),G(A,ez(k),10);case 10:return l=A.h,Xz(a),u=Zz(h,
1294
+ q.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new My(this.g);this.j.push(f);b=Tz(this,a,b||{},function(){var g;return P(function(h){if(1==h.g)return c?h.B(2):G(h,vn(a,d.g,e.manifest.retryParameters),3);2!=h.g&&(c=h.h);g=Zi(a,c||null);return h.return(g())})},e,f);b=new nh(b,function(){return Ny(f)});b.finally(function(){Rd(d.j,f)});return Uz(this,b)};
1295
+ function Tz(a,b,c,d,e,f){var g,h,k,l,m,n,p,r,u,v,w,y,z,B;return P(function(A){switch(A.g){case 1:return Vz(),h=g=null,k=new cz,n=m=l=null,va(A,2,3),G(A,d(),5);case 5:return g=A.h,G(A,Wz(a,b,g,e),6);case 6:p=A.h;Xz(a);r=!p.presentationTimeline.T()&&!p.presentationTimeline.Rc();if(!r)throw new U(2,9,9005,b);return G(A,a.cd(p,function(C){n=n||C},e),7);case 7:h=A.h;Xz(a);if(n)throw n;return G(A,Yz(p,h,e),8);case 8:return G(A,k.init(),9);case 9:return Xz(a),G(A,ez(k),10);case 10:return l=A.h,Xz(a),u=Zz(h,
1295
1296
  p,b,c,e,f),v=u.Yj,w=u.gh,G(A,l.ab.addManifests([v]),11);case 11:y=A.h;Xz(a);m=y[0];Xz(a);if(n)throw n;return G(A,$z(a,w,m,v,f,e,l.ab,p,h),12);case 12:return Xz(a),aA(p,v,h,e),G(A,l.ab.updateManifest(m,v),13);case 13:return Xz(a),z=new vz("manifest",l.path.Nb,l.path.ab,m),A.return(Mz(z,v));case 3:return Aa(A),G(A,k.destroy(),14);case 14:if(!g){A.B(15);break}return G(A,g.stop(),15);case 15:if(!h){A.B(17);break}return G(A,h.destroy(),17);case 17:Ba(A,0);break;case 2:B=za(A);if(null==m){A.B(19);break}return G(A,
1296
1297
  bA(m),19);case 19:throw n||B;}})}
1297
1298
  function $z(a,b,c,d,e,f,g,h,k){var l,m,n,p,r,u,v,w,y,z;return P(function(B){switch(B.g){case 1:l={};m=0;n=function(A,C){var D,E,H,J,F,K,L;return P(function(O){if(1==O.g){D=t(A);E=D.next();for(H={};!E.done;H={ed:void 0},E=D.next())H.ed=E.value,J=Jy(H.ed,f),F=H.ed.i,K=H.ed.h,L=function(M){return function(N){var Q,S,aa;return P(function(qa){if(1==qa.g)return G(qa,g.addSegments([{data:N}]),2);Q=qa.h;Xz(a);S=M.ed.g;aa=Iy(S);l[aa]=Q[0];m+=N.byteLength;I(qa)})}}(H),Py(e,H.ed.groupId,J,F,K,L);return G(O,
@@ -1317,7 +1318,7 @@ function hA(a,b,c,d){var e=new Map,f=rA(c),g=new Map;f=t(f);for(var h=f.next();!
1317
1318
  function sA(a,b,c,d,e,f){var g={id:d.id,originalId:d.originalId,groupId:d.groupId,primary:d.primary,type:d.type,mimeType:d.mimeType,codecs:d.codecs,frameRate:d.frameRate,pixelAspectRatio:d.pixelAspectRatio,hdr:d.hdr,colorGamut:d.colorGamut,videoLayout:d.videoLayout,kind:d.kind,language:d.language,originalLanguage:d.originalLanguage,label:d.label,width:d.width||null,height:d.height||null,encrypted:d.encrypted,keyIds:d.keyIds,segments:[],variantIds:[],roles:d.roles,forced:d.forced,channelsCount:d.channelsCount,
1318
1319
  audioSamplingRate:d.audioSamplingRate,spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,tilesLayout:d.tilesLayout,external:d.external,fastSwitching:d.fastSwitching},h=e.offline.numberOfParallelDownloads,k=0===h?d.id:0;tA(d,c.presentationTimeline.Hb(),function(l){var m=Iy(l),n=void 0;if(!f.has(m)){var p=l.endTime-l.startTime;p=Qz(b,d.id)*p;p=Ly(a.g,p);f.set(m,new Hy(l,p,k,!1))}l.ma&&(n=Iy(l.ma),f.has(n)||(p=.5*Qz(b,d.id),p=Ly(a.g,p),f.set(n,new Hy(l.ma,p,k,!0))));g.segments.push({pendingInitSegmentRefId:n,
1319
1320
  initSegmentKey:n?0:null,startTime:l.startTime,endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,timestampOffset:l.timestampOffset,tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0,mimeType:l.mimeType,codecs:l.codecs});0!==h&&(k=(k+1)%h)});return g}function tA(a,b,c){b=a.segmentIndex.find(b);if(null!=b)for(var d=a.segmentIndex.get(b);d;)c(d),d=a.segmentIndex.get(++b)}function Xz(a){if(a.l.g)throw new U(2,9,7001);}
1320
- function Vz(){if(!Sz())throw new U(2,9,9E3);}function iA(a,b){return P(function(c){if(1==c.g)return a.i.push(b),wa(c,2),G(c,b,4);if(2!=c.g)return c.return(c.h);Aa(c);Sd(a.i,b);return Ba(c,0)})}function Uz(a,b){var c=b.promise;a.i.push(c);return b.finally(function(){Sd(a.i,c)})}
1321
+ function Vz(){if(!Sz())throw new U(2,9,9E3);}function iA(a,b){return P(function(c){if(1==c.g)return a.i.push(b),wa(c,2),G(c,b,4);if(2!=c.g)return c.return(c.h);Aa(c);Rd(a.i,b);return Ba(c,0)})}function Uz(a,b){var c=b.promise;a.i.push(c);return b.finally(function(){Rd(a.i,c)})}
1321
1322
  function oA(a){var b=new Set;a=t(a.streams);for(var c=a.next();!c.done;c=a.next()){c=t(c.value.segments);for(var d=c.next();!d.done;d=c.next())d=d.value,null!=d.initSegmentKey&&b.add(d.initSegmentKey),b.add(d.dataKey)}return Array.from(b)}
1322
1323
  function nA(a,b,c,d){var e,f,g;return P(function(h){if(1==h.g){if(!d.drmInfo)return h.return();e=iz(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:mA(d,!1),videoCapabilities:mA(d,!0)}});return G(h,Hz(b,a,f),2)}return 3!=h.g?(g=h.h,G(h,e.remove(g),3)):G(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
1323
1324
  function rA(a){for(var b=new Set,c=t(a.variants),d=c.next();!d.done;d=c.next())d=d.value,d.audio&&b.add(d.audio),d.video&&b.add(d.video);c=t(a.textStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=t(a.imageStreams);for(c=a.next();!c.done;c=a.next())b.add(c.value);return b}
@@ -1372,14 +1373,14 @@ q.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return th
1372
1373
  q.forEach=function(a){this.g&&a(this.g,Ub.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=Ub.value();return this.g&&Hb(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};var DB="",IB="webkit";xA(CB);function RB(){}function SB(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=TB,Object.defineProperty(a,"disablePictureInPicture",{get:UB,set:VB,enumerable:!0,configurable:!0}),document.exitPictureInPicture=WB,document.addEventListener("webkitpresentationmodechanged",XB,!0))}}
1373
1374
  function XB(a){a=a.target;if("picture-in-picture"==a.webkitPresentationMode){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement==a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)}
1374
1375
  function TB(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function WB(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
1375
- function UB(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function VB(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}uA.PiPWebkit=RB;RB.install=SB;xA(SB);function YB(){}function ZB(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=$B))}function $B(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}uA.RandomUUID=YB;YB.install=ZB;xA(ZB);function aC(){}function bC(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:cC})}function cC(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}uA.Symbol=aC;aC.install=bC;xA(bC);function dC(){}function eC(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}uA.VideoPlayPromise=dC;dC.install=eC;xA(eC);function fC(){}function gC(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||hc())&&(a.getVideoPlaybackQuality=hC)}}function hC(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}uA.VideoPlaybackQuality=fC;fC.install=gC;xA(gC);function iC(){}function jC(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=kC;else if(6==b)a=lC;else{try{var c=!!kC(1,2,"")}catch(d){c=!1}c&&(a=kC)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function kC(a,b,c){return new window.TextTrackCue(a,b,c)}function lC(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}uA.VTTCue=iC;iC.install=jC;xA(jC);function mC(){}mC.prototype.parseInit=function(){};mC.prototype.setSequenceMode=function(){};mC.prototype.setManifestType=function(){};mC.prototype.parseMedia=function(a,b){var c=null,d=[];a=Bc(a).split(/\r?\n/);a=t(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&!/^\s+$/.test(e)&&(e=nC.exec(e))){var f=oC.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new Qe(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};
1376
+ function UB(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function VB(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}uA.PiPWebkit=RB;RB.install=SB;xA(SB);function YB(){}function ZB(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=$B))}function $B(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}uA.RandomUUID=YB;YB.install=ZB;xA(ZB);function aC(){}function bC(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:cC})}function cC(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}uA.Symbol=aC;aC.install=bC;xA(bC);function dC(){}function eC(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}uA.VideoPlayPromise=dC;dC.install=eC;xA(eC);function fC(){}function gC(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||hc())&&(a.getVideoPlaybackQuality=hC)}}function hC(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}uA.VideoPlaybackQuality=fC;fC.install=gC;xA(gC);function iC(){}function jC(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=kC;else if(6==b)a=lC;else{try{var c=!!kC(1,2,"")}catch(d){c=!1}c&&(a=kC)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function kC(a,b,c){return new window.TextTrackCue(a,b,c)}function lC(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}uA.VTTCue=iC;iC.install=jC;xA(jC);function mC(){}mC.prototype.parseInit=function(){};mC.prototype.setSequenceMode=function(){};mC.prototype.setManifestType=function(){};mC.prototype.parseMedia=function(a,b){var c=null,d=[];a=Bc(a).split(/\r?\n/);a=t(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&!/^\s+$/.test(e)&&(e=nC.exec(e))){var f=oC.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new Pe(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};
1376
1377
  R("shaka.text.LrcTextParser",mC);mC.prototype.parseMedia=mC.prototype.parseMedia;mC.prototype.setManifestType=mC.prototype.setManifestType;mC.prototype.setSequenceMode=mC.prototype.setSequenceMode;mC.prototype.parseInit=mC.prototype.parseInit;var nC=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,oC=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;Pf["application/x-subtitle-lrc"]=function(){return new mC};function pC(){}pC.prototype.parseInit=function(){};pC.prototype.setSequenceMode=function(){};pC.prototype.setManifestType=function(){};
1377
1378
  pC.prototype.parseMedia=function(a,b,c,d){var e=Bc(a);a=[];if(""==e)return a;var f=ee(e,"tt",!0);if(!f)throw new U(2,2,2005,"Failed to parse TTML.");e=re(f,"body")[0];if(!e)return[];var g=xe(f,qC,"frameRate"),h=xe(f,qC,"subFrameRate"),k=xe(f,qC,"frameRateMultiplier"),l=xe(f,qC,"tickRate"),m=xe(f,qC,"cellResolution"),n=f.attributes["xml:space"]||"default",p=xe(f,rC,"extent");if("default"!=n&&"preserve"!=n)throw new U(2,2,2005,"Invalid xml:space value: "+n);n="default"==n;g=new sC(g,h,k,l);m=tC(m);
1378
1379
  h=re(f,"metadata")[0];h=(h?h.children:[]).filter(function(v){return"\n"!=v});k=re(f,"style");f=re(f,"region");l=[];for(var r=t(f),u=r.next();!u.done;u=r.next())(u=uC(u.value,k,p))&&l.push(u);if(oe(e,"p").length)throw new U(2,2,2001,"<p> can only be inside <div> in TTML");p=t(oe(e,"div"));for(r=p.next();!r.done;r=p.next())if(oe(r.value,"span").length)throw new U(2,2,2001,"<span> can only be inside <p> in TTML");if(b=vC(e,b,g,h,k,f,l,n,m,null,!1,c,d))b.backgroundColor||(b.backgroundColor="transparent"),
1379
1380
  a.push(b);return a};
1380
1381
  function vC(a,b,c,d,e,f,g,h,k,l,m,n,p){var r=l;if(me(a)){if(!m)return null;var u={tagName:"span",children:[pe(a)],attributes:{},parent:null}}else u=a;for(var v=null,w=t(wC),y=w.next();!y.done&&!(v=xC(u,"backgroundImage",d,"#",y.value)[0]);y=w.next());w=null;y=xe(u,wC,"backgroundImage");var z=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+)$/;if(y&&z.test(y)){w=parseInt(y.split(":").pop(),10)-1;if(w>=p.length)return null;w=p[w]}else n&&y&&!y.startsWith("#")&&(z=new pb(n),y=new pb(y),(y=z.resolve(y).toString())&&
1381
1382
  (w=y));if("p"==a.tagName||v||w)m=!0;a=m;y="default"==(u.attributes["xml:space"]||(h?"default":"preserve"));z=u.children.every(me);h=[];if(!z)for(var B=t(u.children),A=B.next();!A.done;A=B.next())(A=vC(A.value,b,c,d,e,f,g,y,k,u,m,n,p))&&h.push(A);d=null!=l;n=pe(u);n=u.children.length&&n&&/\S/.test(n);B=u.attributes.begin||u.attributes.end||u.attributes.dur;if(!(B||n||"br"==u.tagName||0!=h.length||d&&!y))return null;p=yC(u,c);n=p.start;for(p=p.end;r&&r.tagName&&"tt"!=r.tagName;)p=zC(r,c,n,p),n=p.start,
1382
- p=p.end,r=r.parent;null==n&&(n=0);n+=b.periodStart;p=null==p?Infinity:p+b.periodStart;n=Math.max(n,b.segmentStart);p=Math.min(p,b.segmentEnd);if(!B&&0<h.length)for(n=Infinity,p=0,b=t(h),c=b.next();!c.done;c=b.next())c=c.value,n=Math.min(n,c.startTime),p=Math.max(p,c.endTime);if("br"==u.tagName)return e=new Qe(n,p,""),e.lineBreak=!0,e;b="";z&&(b=Ic(pe(u)||""),y&&(b=b.replace(/\s+/g," ")));b=new Qe(n,p,b);b.nestedCues=h;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=xC(u,"region",f,"")[0];if(u.attributes.region&&
1383
+ p=p.end,r=r.parent;null==n&&(n=0);n+=b.periodStart;p=null==p?Infinity:p+b.periodStart;n=Math.max(n,b.segmentStart);p=Math.min(p,b.segmentEnd);if(!B&&0<h.length)for(n=Infinity,p=0,b=t(h),c=b.next();!c.done;c=b.next())c=c.value,n=Math.min(n,c.startTime),p=Math.max(p,c.endTime);if("br"==u.tagName)return e=new Pe(n,p,""),e.lineBreak=!0,e;b="";z&&(b=Ic(pe(u)||""),y&&(b=b.replace(/\s+/g," ")));b=new Pe(n,p,b);b.nestedCues=h;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=xC(u,"region",f,"")[0];if(u.attributes.region&&
1383
1384
  k&&k.attributes["xml:id"]){var C=k.attributes["xml:id"];b.region=g.filter(function(D){return D.id==C})[0]}g=k;l&&d&&!u.attributes.region&&!u.attributes.style&&(g=xC(l,"region",f,"")[0]);AC(b,u,g,v,w,e,a,0==h.length);return b}
1384
1385
  function uC(a,b,c){var d=new Nd,e=a.attributes["xml:id"];if(!e)return null;d.id=e;e=null;c&&(e=BC.exec(c)||CC.exec(c));c=e?Number(e[1]):null;e=e?Number(e[2]):null;var f,g=DC(a,b,"extent");if(g){var h=(f=BC.exec(g))||CC.exec(g);null!=h&&(d.width=Number(h[1]),d.height=Number(h[2]),f||(null!=c&&(d.width=100*d.width/c),null!=e&&(d.height=100*d.height/e)),d.widthUnits=f||null!=c?Od:0,d.heightUnits=f||null!=e?Od:0)}if(a=DC(a,b,"origin"))if(h=(f=BC.exec(a))||CC.exec(a),null!=h)d.viewportAnchorX=Number(h[1]),
1385
1386
  d.viewportAnchorY=Number(h[2]),f?g||(d.width=100-d.viewportAnchorX,d.widthUnits=Od,d.height=100-d.viewportAnchorY,d.heightUnits=Od):(null!=e&&(d.viewportAnchorY=100*d.viewportAnchorY/e),null!=c&&(d.viewportAnchorX=100*d.viewportAnchorX/c)),d.viewportAnchorUnits=f||null!=c?Od:0;return d}function EC(a){var b=a.match(/rgba\(([^)]+)\)/);return b&&(b=b[1].split(","),4==b.length)?(b[3]=String(Number(b[3])/255),"rgba("+b.join(",")+")"):a}
@@ -1388,12 +1389,12 @@ g))a.backgroundColor=EC(h);if(h=FC(b,c,f,"border",g))a.border=h;if(h=FC(b,c,f,"f
1388
1389
  k}).join(",")}(h=FC(b,c,f,"fontWeight",g))&&"bold"==h&&(a.fontWeight=kf);h=FC(b,c,f,"wrapOption",g);a.wrapLine=h&&"noWrap"==h?!1:!0;(h=FC(b,c,f,"lineHeight",g))&&h.match(IC)&&(a.lineHeight=h);(h=FC(b,c,f,"fontSize",g))&&(h.match(IC)||h.match(JC))&&(a.fontSize=h);if(h=FC(b,c,f,"fontStyle",g))a.fontStyle=qf[h.toUpperCase()];d?(e=d.attributes.imageType||d.attributes.imagetype,h=d.attributes.encoding,d=pe(d).trim(),"PNG"==e&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)):e&&(a.backgroundImage=
1389
1390
  e);if(d=FC(b,c,f,"textOutline",g))d=d.split(" "),d[0].match(IC)?a.textStrokeColor=a.color:(a.textStrokeColor=EC(d[0]),d.shift()),d[0]&&d[0].match(IC)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=FC(b,c,f,"letterSpacing",g))&&d.match(IC)&&(a.letterSpacing=d);(d=FC(b,c,f,"linePadding",g))&&d.match(IC)&&(a.linePadding=d);if(d=FC(b,c,f,"opacity",g))a.opacity=parseFloat(d);(d=DC(c,f,"textDecoration"))&&KC(a,d);(d=LC(b,f,"textDecoration"))&&KC(a,d);if(d=FC(b,c,f,"textCombine",g))a.textCombineUpright=
1390
1391
  d;switch(FC(b,c,f,"ruby",g)){case "container":a.rubyTag="ruby";break;case "text":a.rubyTag="rt"}}
1391
- function KC(a,b){b=t(b.split(" "));for(var c=b.next();!c.done;c=b.next())switch(c.value){case "underline":a.textDecoration.includes(mf)||a.textDecoration.push(mf);break;case "noUnderline":a.textDecoration.includes(mf)&&Sd(a.textDecoration,mf);break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&Sd(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
1392
- a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&Sd(a.textDecoration,"overline")}}function FC(a,b,c,d,e){e=void 0===e?!0:e;return(a=LC(a,c,d))?a:e?DC(b,c,d):null}function DC(a,b,c){if(!a)return null;var d=xe(a,rC,c);return d?d:MC(a,b,c)}function LC(a,b,c){var d=xe(a,rC,c);return d?d:MC(a,b,c)}
1392
+ function KC(a,b){b=t(b.split(" "));for(var c=b.next();!c.done;c=b.next())switch(c.value){case "underline":a.textDecoration.includes(mf)||a.textDecoration.push(mf);break;case "noUnderline":a.textDecoration.includes(mf)&&Rd(a.textDecoration,mf);break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&Rd(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
1393
+ a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&Rd(a.textDecoration,"overline")}}function FC(a,b,c,d,e){e=void 0===e?!0:e;return(a=LC(a,c,d))?a:e?DC(b,c,d):null}function DC(a,b,c){if(!a)return null;var d=xe(a,rC,c);return d?d:MC(a,b,c)}function LC(a,b,c){var d=xe(a,rC,c);return d?d:MC(a,b,c)}
1393
1394
  function MC(a,b,c){a=xC(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=we(a[e],"urn:ebu:tt:style",c);f||(f=xe(a[e],rC,c));f||(f=LC(a[e],b,c));f&&(d=f)}return d}function xC(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;!a&&!(a=e?we(g,e,b):g.attributes[b])&&(g=g.parent,g););if(b=a)for(b=t(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=t(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.attributes["xml:id"]==e){f.push(g);break}return f}
1394
1395
  function zC(a,b,c,d){a=yC(a,b);null==c?c=a.start:null!=a.start&&(c+=a.start);null==d?d=a.end:null!=a.start&&(d+=a.start);return{start:c,end:d}}function yC(a,b){var c=NC(a.attributes.begin,b),d=NC(a.attributes.end,b);a=NC(a.attributes.dur,b);null==d&&null!=a&&(d=c+a);return{start:c,end:d}}
1395
1396
  function NC(a,b){var c=null;if(OC.test(a)){a=OC.exec(a);c=Number(a[1]);var d=Number(a[2]),e=Number(a[3]),f=Number(a[4]);f+=(Number(a[5])||0)/b.h;e+=f/b.frameRate;c=e+60*d+3600*c}else if(PC.test(a))c=QC(PC,a);else if(RC.test(a))c=QC(RC,a);else if(SC.test(a))a=SC.exec(a),c=Number(a[1])/b.frameRate;else if(TC.test(a))a=TC.exec(a),c=Number(a[1])/b.g;else if(UC.test(a))c=QC(UC,a);else if(a)throw new U(2,2,2001,"Could not parse cue time range in TTML");return c}
1396
- function QC(a,b){a=a.exec(b);return null==a||""==a[0]?null:(Number(a[4])||0)/1E3+(Number(a[3])||0)+60*(Number(a[2])||0)+3600*(Number(a[1])||0)}function tC(a){return a?(a=/^(\d+) (\d+)$/.exec(a))?{Gc:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}R("shaka.text.TtmlTextParser",pC);pC.prototype.parseMedia=pC.prototype.parseMedia;pC.prototype.setManifestType=pC.prototype.setManifestType;pC.prototype.setSequenceMode=pC.prototype.setSequenceMode;pC.prototype.parseInit=pC.prototype.parseInit;
1397
+ function QC(a,b){a=a.exec(b);return null==a||""==a[0]?null:(Number(a[4])||0)/1E3+(Number(a[3])||0)+60*(Number(a[2])||0)+3600*(Number(a[1])||0)}function tC(a){return a?(a=/^(\d+) (\d+)$/.exec(a))?{Ic:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}R("shaka.text.TtmlTextParser",pC);pC.prototype.parseMedia=pC.prototype.parseMedia;pC.prototype.setManifestType=pC.prototype.setManifestType;pC.prototype.setSequenceMode=pC.prototype.setSequenceMode;pC.prototype.parseInit=pC.prototype.parseInit;
1397
1398
  function sC(a,b,c,d){this.frameRate=Number(a)||30;this.h=Number(b)||1;this.g=Number(d);0==this.g&&(this.g=a?this.frameRate*this.h:1);c&&(a=/^(\d+) (\d+)$/g.exec(c))&&(this.frameRate*=Number(a[1])/Number(a[2]))}
1398
1399
  var BC=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,JC=/^(\d{1,4}(?:\.\d+)?|100)%$/,IC=/^(\d+px|\d+em|\d*\.?\d+c)$/,CC=/^(\d+)px (\d+)px$/,OC=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,PC=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,RC=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d+)$/,SC=/^(\d*(?:\.\d*)?)f$/,TC=/^(\d*(?:\.\d*)?)t$/,UC=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),HC={left:We,center:"center",right:"end",start:We,
1399
1400
  end:"end"},GC={left:"line-left",center:"center",right:"line-right"},qC=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],rC=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],wC=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];Pf["application/ttml+xml"]=function(){return new pC};function VC(){this.g=new pC}VC.prototype.parseInit=function(a){var b=!1;(new Uh).box("moov",Zh).box("trak",Zh).box("mdia",Zh).box("minf",Zh).box("stbl",Zh).W("stsd",ai).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new U(2,2,2007);};VC.prototype.setSequenceMode=function(){};VC.prototype.setManifestType=function(){};
@@ -1403,20 +1404,20 @@ Pf['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new VC};Pf['app
1403
1404
  WC.prototype.parseMedia=function(a,b){a=Bc(a);a=a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var c=a.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(c[0]))throw new U(2,2,2E3);a=b.vttOffset;if(c[0].includes("X-TIMESTAMP-MAP")&&"HLS"==this.g)if(this.h){var d=c[0];a=d.match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m);d=d.match(/MPEGTS:(\d+)/m);if(!a||!d)throw new U(2,2,2E3);a=ae(a[1]);if(null==a)throw new U(2,2,2E3);d=Number(d[1]);for(var e=b.segmentStart-b.periodStart;95443.7176888889<=e;)e-=95443.7176888889,
1404
1405
  d+=8589934592;a=b.periodStart+d/9E4-a}else a=b.segmentStart;b=[];d=t(c[0].split("\n"));for(e=d.next();!e.done;e=d.next())if(e=e.value,/^Region:/.test(e)){e=new Vd(e);var f=new Nd;Yd(e);Wd(e);for(var g=Yd(e);g;){var h=f,k=g;(g=/^id=(.*)$/.exec(k))?h.id=g[1]:(g=/^width=(\d{1,2}|100)%$/.exec(k))?h.width=Number(g[1]):(g=/^lines=(\d+)$/.exec(k))?(h.height=Number(g[1]),h.heightUnits=2):(g=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?(h.regionAnchorX=Number(g[1]),h.regionAnchorY=Number(g[2])):
1405
1406
  (g=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?(h.viewportAnchorX=Number(g[1]),h.viewportAnchorY=Number(g[2])):/^scroll=up$/.exec(k)&&(h.scroll="up");Wd(e);g=Yd(e)}b.push(f)}d=new Map;cf(d);e=[];c=t(c.slice(1));for(f=c.next();!f.done;f=c.next()){f=f.value.split("\n");if((1!=f.length||f[0])&&!/^NOTE($|[ \t])/.test(f[0])&&"STYLE"==f[0]){h=[];g=-1;for(k=1;k<f.length;k++)f[k].includes("::cue")&&(h.push([]),g=h.length-1),-1!=g&&(h[g].push(f[k]),f[k].includes("}")&&(g=-1));h=t(h);for(g=h.next();!g.done;g=
1406
- h.next()){var l=g.value;g="global";(k=l[0].match(/\((.*)\)/))&&(g=k.pop());k=l.slice(1,-1);l[0].includes("}")&&(l=/\{(.*?)\}/.exec(l[0]))&&(k=l[1].split(";"));(l=d.get(g))||(l=new Qe(0,0,""));for(var m=!1,n=0;n<k.length;n++){var p=/^\s*([^:]+):\s*(.*)/.exec(k[n]);if(p){var r=p[2].trim().replace(";","");switch(p[1].trim()){case "background-color":case "background":m=!0;l.backgroundColor=r;break;case "color":m=!0;l.color=r;break;case "font-family":m=!0;l.fontFamily=r;break;case "font-size":m=!0;l.fontSize=
1407
+ h.next()){var l=g.value;g="global";(k=l[0].match(/\((.*)\)/))&&(g=k.pop());k=l.slice(1,-1);l[0].includes("}")&&(l=/\{(.*?)\}/.exec(l[0]))&&(k=l[1].split(";"));(l=d.get(g))||(l=new Pe(0,0,""));for(var m=!1,n=0;n<k.length;n++){var p=/^\s*([^:]+):\s*(.*)/.exec(k[n]);if(p){var r=p[2].trim().replace(";","");switch(p[1].trim()){case "background-color":case "background":m=!0;l.backgroundColor=r;break;case "color":m=!0;l.color=r;break;case "font-family":m=!0;l.fontFamily=r;break;case "font-size":m=!0;l.fontSize=
1407
1408
  r;break;case "font-weight":if(700<=parseInt(r,10)||"bold"==r)m=!0,l.fontWeight=kf;break;case "font-style":switch(r){case "normal":m=!0;l.fontStyle=Ze;break;case "italic":m=!0;l.fontStyle=lf;break;case "oblique":m=!0,l.fontStyle="oblique"}break;case "opacity":m=!0;l.opacity=parseFloat(r);break;case "text-combine-upright":m=!0;l.textCombineUpright=r;break;case "text-shadow":m=!0;l.textShadow=r;break;case "white-space":m=!0,l.wrapLine="noWrap"!=r}}}m&&d.set(g,l)}}l=f;m=a;if(1==l.length&&!l[0]||/^NOTE($|[ \t])/.test(l[0])||
1408
- "STYLE"==l[0]||"REGION"==l[0])f=null;else if(f=null,l[0].includes("--\x3e")||(f=l[0],l.splice(0,1)),h=new Vd(l[0]),g=Zd(h),n=Xd(h,/[ \t]+--\x3e[ \t]+/g),k=Zd(h),null==g||null==n||null==k)ab("Failed to parse VTT time code. Cue skipped:",f,l),f=null;else{g+=m;k+=m;m=l.slice(1).join("\n").trim();d.has("global")?(l=d.get("global").clone(),l.startTime=g,l.endTime=k,l.payload=m):l=new Qe(g,k,m);Wd(h);for(g=Yd(h);g;)XC(l,g,b),Wd(h),g=Yd(h);bf(l,d);null!=f&&(l.id=f);f=l}f&&e.push(f)}return e};
1409
+ "STYLE"==l[0]||"REGION"==l[0])f=null;else if(f=null,l[0].includes("--\x3e")||(f=l[0],l.splice(0,1)),h=new Vd(l[0]),g=Zd(h),n=Xd(h,/[ \t]+--\x3e[ \t]+/g),k=Zd(h),null==g||null==n||null==k)ab("Failed to parse VTT time code. Cue skipped:",f,l),f=null;else{g+=m;k+=m;m=l.slice(1).join("\n").trim();d.has("global")?(l=d.get("global").clone(),l.startTime=g,l.endTime=k,l.payload=m):l=new Pe(g,k,m);Wd(h);for(g=Yd(h);g;)XC(l,g,b),Wd(h),g=Yd(h);bf(l,d);null!=f&&(l.id=f);f=l}f&&e.push(f)}return e};
1409
1410
  function XC(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=Se:a.textAlign=nf[b.toUpperCase()];else if(d=/^vertical:(lr|rl)$/.exec(b))a.writingMode="lr"==d[1]?"vertical-lr":"vertical-rl";else if(d=/^size:([\d.]+)%$/.exec(b))a.size=Number(d[1]);else if(d=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==
1410
1411
  b||"end"==b?"line-right":"center"==b||"middle"==b?"center":Re);else if(d=/^region:(.*)$/.exec(b)){if(b=YC(c,d[1]))a.region=b}else if(c=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=1,a.line=Number(c[1]),c[2]&&(a.lineAlign=pf[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=Ve,a.line=Number(c[1]),c[2]&&(a.lineAlign=pf[c[2].toUpperCase()])}
1411
1412
  function YC(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}R("shaka.text.VttTextParser",WC);WC.prototype.parseMedia=WC.prototype.parseMedia;WC.prototype.setManifestType=WC.prototype.setManifestType;WC.prototype.setSequenceMode=WC.prototype.setSequenceMode;WC.prototype.parseInit=WC.prototype.parseInit;Pf["text/vtt"]=function(){return new WC};Pf['text/vtt; codecs="vtt"']=function(){return new WC};Pf['text/vtt; codecs="wvtt"']=function(){return new WC};function ZC(){this.g=null}ZC.prototype.parseInit=function(a){var b=this,c=!1;(new Uh).box("moov",Zh).box("trak",Zh).box("mdia",Zh).W("mdhd",function(d){d=zj(d.reader,d.version);b.g=d.timescale}).box("minf",Zh).box("stbl",Zh).W("stsd",ai).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new U(2,2,2008);if(!c)throw new U(2,2,2008);};ZC.prototype.setSequenceMode=function(){};ZC.prototype.setManifestType=function(){};
1412
1413
  ZC.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new U(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Uh).box("moof",Zh).box("traf",Zh).W("tfdt",function(B){g=!0;c=yj(B.reader,B.version).baseMediaDecodeTime}).W("tfhd",function(B){l=xj(B.reader,B.flags).Hd}).W("trun",function(B){h=!0;d=Aj(B.reader,B.version,B.flags).ki}).box("mdat",di(function(B){k=!0;e=B})).parse(a,!1);if(!k&&!g&&!h)throw new U(2,2,2008);a=c;for(var m=new Rh(e,0),n=t(d),p=n.next();!p.done;p=n.next()){p=
1413
- p.value;var r=p.Qg||l,u=p.df?c+p.df:a;a=u+(r||0);var v=0;do{var w=m.U();v+=w;var y=m.U(),z=null;"vttc"==Yh(y)?8<w&&(z=m.Qb(w-8)):m.skip(w-8);r&&z&&(w=$C(z,b.periodStart+u/this.g,b.periodStart+a/this.g),f.push(w))}while(p.sampleSize&&v<p.sampleSize)}return f.filter(Yf)};function $C(a,b,c){var d,e,f;(new Uh).box("payl",di(function(g){d=Bc(g)})).box("iden",di(function(g){e=Bc(g)})).box("sttg",di(function(g){f=Bc(g)})).parse(a);return d?aD(d,e,f,b,c):null}
1414
- function aD(a,b,c,d,e){a=new Qe(d,e,a);bf(a);b&&(a.id=b);if(c)for(b=new Vd(c),c=Yd(b);c;)XC(a,c,[]),Wd(b),c=Yd(b);return a}R("shaka.text.Mp4VttParser",ZC);ZC.prototype.parseMedia=ZC.prototype.parseMedia;ZC.prototype.setManifestType=ZC.prototype.setManifestType;ZC.prototype.setSequenceMode=ZC.prototype.setSequenceMode;ZC.prototype.parseInit=ZC.prototype.parseInit;Pf['application/mp4; codecs="wvtt"']=function(){return new ZC};function bD(){}bD.prototype.parseInit=function(){};bD.prototype.setSequenceMode=function(){};bD.prototype.setManifestType=function(){};bD.prototype.parseMedia=function(a){var b=Bc(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=t(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new Vd(c[0]),e=Zd(d),f=Xd(d,/,/g);d=Zd(d);if(null==e||null==f||null==d)throw new U(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new Qe(e,d,c.slice(1).join("\n").trim()))}return a};
1414
+ p.value;var r=p.Qg||l,u=p.cf?c+p.cf:a;a=u+(r||0);var v=0;do{var w=m.U();v+=w;var y=m.U(),z=null;"vttc"==Yh(y)?8<w&&(z=m.Qb(w-8)):m.skip(w-8);r&&z&&(w=$C(z,b.periodStart+u/this.g,b.periodStart+a/this.g),f.push(w))}while(p.sampleSize&&v<p.sampleSize)}return f.filter(Yf)};function $C(a,b,c){var d,e,f;(new Uh).box("payl",di(function(g){d=Bc(g)})).box("iden",di(function(g){e=Bc(g)})).box("sttg",di(function(g){f=Bc(g)})).parse(a);return d?aD(d,e,f,b,c):null}
1415
+ function aD(a,b,c,d,e){a=new Pe(d,e,a);bf(a);b&&(a.id=b);if(c)for(b=new Vd(c),c=Yd(b);c;)XC(a,c,[]),Wd(b),c=Yd(b);return a}R("shaka.text.Mp4VttParser",ZC);ZC.prototype.parseMedia=ZC.prototype.parseMedia;ZC.prototype.setManifestType=ZC.prototype.setManifestType;ZC.prototype.setSequenceMode=ZC.prototype.setSequenceMode;ZC.prototype.parseInit=ZC.prototype.parseInit;Pf['application/mp4; codecs="wvtt"']=function(){return new ZC};function bD(){}bD.prototype.parseInit=function(){};bD.prototype.setSequenceMode=function(){};bD.prototype.setManifestType=function(){};bD.prototype.parseMedia=function(a){var b=Bc(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=t(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new Vd(c[0]),e=Zd(d),f=Xd(d,/,/g);d=Zd(d);if(null==e||null==f||null==d)throw new U(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new Pe(e,d,c.slice(1).join("\n").trim()))}return a};
1415
1416
  R("shaka.text.SbvTextParser",bD);bD.prototype.parseMedia=bD.prototype.parseMedia;bD.prototype.setManifestType=bD.prototype.setManifestType;bD.prototype.setSequenceMode=bD.prototype.setSequenceMode;bD.prototype.parseInit=bD.prototype.parseInit;Pf["text/x-subviewer"]=function(){return new bD};function cD(){this.g=new WC}cD.prototype.parseInit=function(){};cD.prototype.setSequenceMode=function(){};cD.prototype.setManifestType=function(){};cD.prototype.parseMedia=function(a,b,c){a=Bc(a);a=dD(a);a=Jb(Fc(a));return this.g.parseMedia(a,b,c,[])};
1416
1417
  function dD(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=t(a.split("\n\n"));for(var c=a.next();!c.done;c=a.next())c=c.value.split(/\n/),c[0].match(/\d+/)&&c.shift(),c[0]=c[0].replace(/,/g,"."),b+=c.join("\n").replace(/{b}/g,"<b>").replace(/{\/b}/g,"</b>").replace(/{i}/g,"<i>").replace(/{\/i}/g,"</i>").replace(/{u}/g,"<u>").replace(/{\/u}/g,"</u>")+"\n\n";return b}R("shaka.text.SrtTextParser",cD);cD.srt2webvtt=dD;cD.prototype.parseMedia=cD.prototype.parseMedia;
1417
1418
  cD.prototype.setManifestType=cD.prototype.setManifestType;cD.prototype.setSequenceMode=cD.prototype.setSequenceMode;cD.prototype.parseInit=cD.prototype.parseInit;Pf["text/srt"]=function(){return new cD};function eD(){}eD.prototype.parseInit=function(){};eD.prototype.setSequenceMode=function(){};eD.prototype.setManifestType=function(){};
1418
1419
  eD.prototype.parseMedia=function(a){var b="",c="",d=null,e=null;e=Bc(a).split(/\r?\n\s*\r?\n/);a=t(e);for(e=a.next();!e.done;e=a.next()){var f=e.value;e=f;if(f=fD.exec(f))d=f[1],e=f[2];"V4 Styles"==d||"V4+ Styles"==d?(b=e,b=c?b+("\n"+e):e):"Events"==d&&(c=c?c+("\n"+e):e)}d=[];e=null;b=t(b.split(/\r?\n/));for(a=b.next();!a.done;a=b.next())if(a=a.value,!/^\s*;/.test(a)&&(f=gD.exec(a)))if(a=f[1].trim(),f=f[2].trim(),"Format"==a)e=f.split(hD);else if("Style"==a){a=f.split(hD);f={};for(var g=0;g<e.length&&
1419
- g<a.length;g++)f[e[g]]=a[g];d.push(f)}e=[];b=null;c=t(c.split(/\r?\n/));f=c.next();for(a={};!f.done;a={Ai:void 0},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=gD.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(hD);else if("Dialogue"==f){g=g.split(hD);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=iD(f.Start);var k=iD(f.End);g=new Qe(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));a.Ai=f.Style;(a=d.find(function(l){return function(m){return m.Name==
1420
+ g<a.length;g++)f[e[g]]=a[g];d.push(f)}e=[];b=null;c=t(c.split(/\r?\n/));f=c.next();for(a={};!f.done;a={Ai:void 0},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=gD.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(hD);else if("Dialogue"==f){g=g.split(hD);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=iD(f.Start);var k=iD(f.End);g=new Pe(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));a.Ai=f.Style;(a=d.find(function(l){return function(m){return m.Name==
1420
1421
  l.Ai}}(a)))&&jD(g,a);e.push(g)}return e};
1421
1422
  function jD(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=kD(c))a.color=c;if(c=b.BackColour)if(c=kD(c))a.backgroundColor=c;b.Bold&&(a.fontWeight=kf);b.Italic&&(a.fontStyle=lf);b.Underline&&a.textDecoration.push(mf);if(c=b.Spacing)a.letterSpacing=c+"px";if(c=b.Alignment)switch(parseInt(c,10)){case 1:a.displayAlign=Xe;a.textAlign="start";break;case 2:a.displayAlign=Xe;a.textAlign=Se;break;case 3:a.displayAlign=Xe;a.textAlign="end";break;case 5:a.displayAlign=
1422
1423
  "before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=Se;break;case 7:a.displayAlign="before";a.textAlign="end";break;case 9:a.displayAlign="center";a.textAlign="start";break;case 10:a.displayAlign="center";a.textAlign=Se;break;case 11:a.displayAlign="center",a.textAlign="end"}if(b=b.AlphaLevel)a.opacity=parseFloat(b)}function kD(a){a=parseInt(a.replace("&H",""),16);return 0<=a?"rgba("+(a&255)+","+(a>>8&255)+","+(a>>16&255)+","+(a>>24&255^255)/255+")":null}
@@ -1438,15 +1439,15 @@ size:l.qa,duration:1536,yb:0,flags:{zb:0,sb:0,rb:0,pb:0,qb:2,Ab:0}});f+=l.qa}a=M
1438
1439
  vD.prototype.getOriginalMimeType=vD.prototype.getOriginalMimeType;vD.prototype.convertCodecs=vD.prototype.convertCodecs;vD.prototype.isSupported=vD.prototype.isSupported;vD.prototype.destroy=vD.prototype.destroy;sf("audio/ec3",function(){return new vD("audio/ec3")},yf);function wD(a){if(!a.length)return null;var b=a.find(function(v){return 7==v.type});a=a.find(function(v){return 8==v.type});if(!b||!a)return null;var c=new Gj(b.data),d=Oj(c);Oj(c);Oj(c);Lj(c);if(xD.includes(d)&&(d=V(c),3===d&&Ij(c,1),Lj(c),Lj(c),Ij(c,1),Nj(c))){d=3!==d?8:12;for(var e=0;e<d;e++)Nj(c)&&(6>e?Pj(c,16):Pj(c,64))}Lj(c);d=V(c);if(0===d)V(c);else if(1===d)for(Ij(c,1),Lj(c),Lj(c),d=V(c),e=0;e<d;e++)Lj(c);Lj(c);Ij(c,1);var f=V(c),g=V(c),h=Jj(c,1);0===h&&Ij(c,1);Ij(c,1);var k=0,l=0,m=0,n=0;
1439
1440
  Nj(c)&&(k=V(c),l=V(c),m=V(c),n=V(c));e=d=1;if(Nj(c)&&Nj(c)){var p=Oj(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=Jj(c,16),e=Jj(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],
1440
1441
  k[5],255,225].concat(k,[1],b));return{height:c,width:f,Qa:a,Wa:d,Xa:e}}
1441
- function yD(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=Sj(new Gj(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?
1442
- {data:Pc.apply(Jc,x(c)),Qd:b}:null}var xD=[100,110,122,244,44,83,86,118,128,138,139,134];function zD(a){if(!a.length)return null;var b=a.find(function(g){return 32==g.type}),c=a.find(function(g){return 33==g.type}),d=a.find(function(g){return 34==g.type});if(!b||!c||!d)return null;var e=AD(b.fullData);a=BD(c.fullData);var f=CD(d.fullData);b=DD(b.fullData,c.fullData,d.fullData,{Fg:e.Fg,fh:e.fh,hg:a.hg,ig:a.ig,ag:a.ag,gg:a.gg,cg:a.cg,dg:a.dg,eg:a.eg,fg:a.fg,Vf:a.Vf,Wf:a.Wf,Xf:a.Xf,Yf:a.Yf,Zf:a.Zf,$f:a.$f,Of:a.Of,Se:a.Se,Mf:a.Mf,If:a.If,Hf:a.Hf,Ig:f.Ig});return{height:a.height,width:a.width,
1443
- Qa:b,Wa:a.Bk,Xa:a.Ak}}function AD(a){var b=new Gj(a,!0);Oj(b);Oj(b);Jj(b,4);Jj(b,2);Jj(b,6);a=Jj(b,3);b=Nj(b);return{Fg:a+1,fh:b}}
1442
+ function yD(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=Qj(new Gj(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?
1443
+ {data:Pc.apply(Jc,x(c)),Qd:b}:null}var xD=[100,110,122,244,44,83,86,118,128,138,139,134];function zD(a){if(!a.length)return null;var b=a.find(function(g){return 32==g.type}),c=a.find(function(g){return 33==g.type}),d=a.find(function(g){return 34==g.type});if(!b||!c||!d)return null;var e=AD(b.fullData);a=BD(c.fullData);var f=CD(d.fullData);b=DD(b.fullData,c.fullData,d.fullData,{Eg:e.Eg,fh:e.fh,gg:a.gg,hg:a.hg,$f:a.$f,fg:a.fg,ag:a.ag,cg:a.cg,dg:a.dg,eg:a.eg,Uf:a.Uf,Vf:a.Vf,Wf:a.Wf,Xf:a.Xf,Yf:a.Yf,Zf:a.Zf,Nf:a.Nf,Se:a.Se,Lf:a.Lf,Hf:a.Hf,Gf:a.Gf,Hg:f.Hg});return{height:a.height,width:a.width,
1444
+ Qa:b,Wa:a.Bk,Xa:a.Ak}}function AD(a){var b=new Gj(a,!0);Oj(b);Oj(b);Jj(b,4);Jj(b,2);Jj(b,6);a=Jj(b,3);b=Nj(b);return{Eg:a+1,fh:b}}
1444
1445
  function BD(a){a=new Gj(a,!0);Oj(a);Oj(a);var b=0,c=0,d=0,e=0;Jj(a,4);var f=Jj(a,3);Nj(a);for(var g=Jj(a,2),h=Jj(a,1),k=Jj(a,5),l=Oj(a),m=Oj(a),n=Oj(a),p=Oj(a),r=Oj(a),u=Oj(a),v=Oj(a),w=Oj(a),y=Oj(a),z=Oj(a),B=Oj(a),A=[],C=[],D=0;D<f;D++)A.push(Nj(a)),C.push(Nj(a));if(0<f)for(D=f;8>D;D++)Jj(a,2);for(D=0;D<f;D++)A[D]&&Jj(a,88),C[D]&&Oj(a);V(a);A=V(a);3==A&&Jj(a,1);C=V(a);D=V(a);Nj(a)&&(b+=V(a),c+=V(a),d+=V(a),e+=V(a));var E=V(a),H=V(a),J=V(a);if(Nj(a))for(var F=0;F<=f;F++)V(a),V(a),V(a);else V(a),
1445
1446
  V(a),V(a);V(a);V(a);V(a);V(a);V(a);V(a);if(Nj(a)&&Nj(a))for(F=0;4>F;F++)for(var K=0;K<(3===F?2:6);K++)if(Nj(a)){var L=Math.min(64,1<<4+(F<<1));1<F&&Mj(a);for(var O=0;O<L;O++)Mj(a)}else V(a);Nj(a);Nj(a);Nj(a)&&(Oj(a),V(a),V(a),Nj(a));F=V(a);for(L=K=0;L<F;L++)if(O=!1,0!==L&&(O=Nj(a)),O){L===F&&V(a);Nj(a);V(a);for(var M=O=0;M<=K;M++){var N=Nj(a),Q=!1;N||(Q=Nj(a));(N||Q)&&O++}K=O}else{M=V(a);O=V(a);K=M+O;for(N=0;N<M;N++)V(a),Nj(a);for(M=0;M<O;M++)V(a),Nj(a)}if(Nj(a))for(F=V(a),K=0;K<F;K++){for(L=0;L<
1446
1447
  J+4;L++)Jj(a,1);Jj(a,1)}F=J=1;K=0;Nj(a);Nj(a);if(Nj(a)){Nj(a)&&(L=Oj(a),O=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],M=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1],0<L&&16>=L?(J=O[L-1],F=M[L-1]):255===L&&(J=Jj(a,16),F=Jj(a,16)));Nj(a)&&Nj(a);Nj(a)&&(Jj(a,3),Nj(a),Nj(a)&&(Oj(a),Oj(a),Oj(a)));Nj(a)&&(V(a),V(a));Nj(a);Nj(a);Nj(a);if(L=Nj(a))V(a),V(a),V(a),V(a);if(Nj(a)&&(Jj(a,32),Jj(a,32),Nj(a)&&V(a),Nj(a))){M=!1;L=Nj(a);O=Nj(a);if(L||O){if(M=Nj(a))Oj(a),Jj(a,5),Nj(a),Jj(a,5);Jj(a,4);Jj(a,4);M&&
1447
- Jj(a,4);Jj(a,5);Jj(a,5);Jj(a,5)}for(N=0;N<=f;N++){var S=!0;Q=1;Nj(a)||(S=Nj(a));var aa=!1;S?V(a):aa=Nj(a);aa||(Q=V(a)+1);if(L){for(S=0;S<Q;S++)V(a),V(a),M&&(V(a),V(a));Nj(a)}if(O){for(S=0;S<Q;S++)V(a),V(a),M&&(V(a),V(a));Nj(a)}}}Nj(a)&&(Nj(a),Nj(a),Nj(a),K=V(a),V(a),V(a),V(a),V(a))}return{ag:B,hg:g,ig:h,gg:k,cg:l,dg:m,eg:n,fg:p,Vf:r,Wf:u,Xf:v,Yf:w,Zf:y,$f:z,Se:K,Of:0,Mf:A,If:E,Hf:H,width:C-(b+c)*(1===A||2===A?2:1),height:D-(d+e)*(1===A?2:1),Bk:J,Ak:F}}
1448
- function CD(a){var b=new Gj(a,!0);Oj(b);Oj(b);V(b);V(b);Nj(b);Nj(b);Jj(b,3);Nj(b);Nj(b);V(b);V(b);Mj(b);Nj(b);Nj(b);Nj(b)&&V(b);Mj(b);Mj(b);Nj(b);Nj(b);Nj(b);Nj(b);a=Nj(b);b=Nj(b);var c=1;b&&a?c=0:b?c=3:a&&(c=2);return{Ig:c}}
1449
- function DD(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(5+c.byteLength));e[0]=1;e[1]=(d.hg&3)<<6|(d.ig?1:0)<<5|d.gg&31;e[2]=d.cg;e[3]=d.dg;e[4]=d.eg;e[5]=d.fg;e[6]=d.Vf;e[7]=d.Wf;e[8]=d.Xf;e[9]=d.Yf;e[10]=d.Zf;e[11]=d.$f;e[12]=d.ag;e[13]=240|(d.Se&3840)>>8;e[14]=d.Se&255;e[15]=252|d.Ig&3;e[16]=252|d.Mf&3;e[17]=248|d.If&7;e[18]=248|d.Hf&7;e[19]=0;e[20]=0;e[21]=(d.Of&3)<<6|(d.Fg&7)<<3|(d.fh?1:0)<<2|3;e[22]=3;e[23]=160;e[24]=0;e[25]=1;e[26]=(a.byteLength&65280)>>8;e[27]=(a.byteLength&
1448
+ Jj(a,4);Jj(a,5);Jj(a,5);Jj(a,5)}for(N=0;N<=f;N++){var S=!0;Q=1;Nj(a)||(S=Nj(a));var aa=!1;S?V(a):aa=Nj(a);aa||(Q=V(a)+1);if(L){for(S=0;S<Q;S++)V(a),V(a),M&&(V(a),V(a));Nj(a)}if(O){for(S=0;S<Q;S++)V(a),V(a),M&&(V(a),V(a));Nj(a)}}}Nj(a)&&(Nj(a),Nj(a),Nj(a),K=V(a),V(a),V(a),V(a),V(a))}return{$f:B,gg:g,hg:h,fg:k,ag:l,cg:m,dg:n,eg:p,Uf:r,Vf:u,Wf:v,Xf:w,Yf:y,Zf:z,Se:K,Nf:0,Lf:A,Hf:E,Gf:H,width:C-(b+c)*(1===A||2===A?2:1),height:D-(d+e)*(1===A?2:1),Bk:J,Ak:F}}
1449
+ function CD(a){var b=new Gj(a,!0);Oj(b);Oj(b);V(b);V(b);Nj(b);Nj(b);Jj(b,3);Nj(b);Nj(b);V(b);V(b);Mj(b);Nj(b);Nj(b);Nj(b)&&V(b);Mj(b);Mj(b);Nj(b);Nj(b);Nj(b);Nj(b);a=Nj(b);b=Nj(b);var c=1;b&&a?c=0:b?c=3:a&&(c=2);return{Hg:c}}
1450
+ function DD(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(5+c.byteLength));e[0]=1;e[1]=(d.gg&3)<<6|(d.hg?1:0)<<5|d.fg&31;e[2]=d.ag;e[3]=d.cg;e[4]=d.dg;e[5]=d.eg;e[6]=d.Uf;e[7]=d.Vf;e[8]=d.Wf;e[9]=d.Xf;e[10]=d.Yf;e[11]=d.Zf;e[12]=d.$f;e[13]=240|(d.Se&3840)>>8;e[14]=d.Se&255;e[15]=252|d.Hg&3;e[16]=252|d.Lf&3;e[17]=248|d.Hf&7;e[18]=248|d.Gf&7;e[19]=0;e[20]=0;e[21]=(d.Nf&3)<<6|(d.Eg&7)<<3|(d.fh?1:0)<<2|3;e[22]=3;e[23]=160;e[24]=0;e[25]=1;e[26]=(a.byteLength&65280)>>8;e[27]=(a.byteLength&
1450
1451
  255)>>0;e.set(a,28);e[23+(5+a.byteLength)]=161;e[a.byteLength+29]=0;e[a.byteLength+30]=1;e[a.byteLength+31]=(b.byteLength&65280)>>8;e[a.byteLength+32]=(b.byteLength&255)>>0;e.set(b,a.byteLength+33);e[23+(a.byteLength+10+b.byteLength)]=162;e[a.byteLength+10+b.byteLength+24]=0;e[a.byteLength+10+b.byteLength+25]=1;e[a.byteLength+10+b.byteLength+26]=(c.byteLength&65280)>>8;e[a.byteLength+10+b.byteLength+27]=(c.byteLength&255)>>0;e.set(c,a.byteLength+10+b.byteLength+28);return e};function ED(a,b){var c=a[b+1]>>3&3,d=a[b+1]>>1&3,e=a[b+2]>>4&15,f=a[b+2]>>2&3;if(1!==c&&0!==e&&15!==e&&3!==f){var g=a[b+3]>>6;e=1E3*FD[14*(3===c?3-d:3===d?3:4)+e-1];f=GD[3*(3===c?0:2===c?1:2)+f];c=HD[c][d];var h=ID[d],k=Math.floor(c*e/f+(a[b+2]>>1&1))*h,l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);(l=l?parseInt(l[1],10):0)&&87>=l&&2===d&&224E3<=e&&0===g&&(a[b+3]|=128);return{sampleRate:f,channelCount:3===g?1:2,qa:k,zk:8*c*h}}return null}
1451
1452
  function JD(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}function KD(a,b){if(b+1<a.length&&JD(a,b)){var c=ED(a,b),d=4;c&&c.qa&&(d=c.qa);b+=d;return b===a.length||b+1<a.length&&JD(a,b)}return!1}
1452
1453
  var FD=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],GD=[44100,48E3,32E3,22050,24E3,16E3,11025,12E3,8E3],HD=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],ID=[0,1,1,4];function LD(a){this.i=a;this.h=0;this.g=new Map}q=LD.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/mpeg"==a.toLowerCase().split(";")[0]?zd(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};
@@ -1471,21 +1472,21 @@ m&&m._parent.boxes.splice(m._parent.boxes.indexOf(m),1);var n=e.fetch("sepiff");
1471
1472
  ND.prototype.getOriginalMimeType=ND.prototype.getOriginalMimeType;ND.prototype.convertCodecs=ND.prototype.convertCodecs;ND.prototype.isSupported=ND.prototype.isSupported;ND.prototype.destroy=ND.prototype.destroy;var PD=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);sf("mss/audio/mp4",function(){return new ND("mss/audio/mp4")},yf);sf("mss/video/mp4",function(){return new ND("mss/video/mp4")},yf);function RD(a){this.l=a;this.g=0;this.i=new Map;this.h=this.j=null}q=RD.prototype;q.destroy=function(){this.i.clear();this.h&&this.h.destroy()};
1472
1473
  q.isSupported=function(a,b){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var c=a;b&&(c=this.convertCodecs(b,a));var d=Lf(c).split(",");c=Vc("audio",d);d=Vc("video",d);if(c&&(c=Hf(c),!SD.includes(c))||d&&(c=Hf(d),!TD.includes(c)))return!1;if(b)return zd(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return zd(b)||zd(a)};
1473
1474
  q.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?(b=Lf(b).replace("mp4a.40.34","mp3").split(",").map(function(c){return qg(c,"audio/mp4")}).map(pg).join(","),"audio"==a?'audio/mp4; codecs="'+b+'"':'video/mp4; codecs="'+b+'"'):b};q.getOriginalMimeType=function(){return this.l};
1474
- q.transmux=function(a,b,c,d,e){var f=Jb(a);if("audio"==e&&!bk(f)){for(var g=wj(f),h=g.length;h<f.length;h++)if(KD(f,h))return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));for(h=g.length;h<f.length;h++)if(oD(f,h))return this.h||(this.h=new qD("audio/aac")),this.h.transmux(a,b,c,d,e);return Promise.reject(new U(2,3,3018,c?c.R()[0]:null))}this.j?this.j.clearData():this.j=new Tj;var k=this.j.parse(f),l=[],m=k.Id();try{var n=null;if("video"==e){switch(m.video){case "avc":var p=[],r=null,u=[],v=k.Lc();
1475
+ q.transmux=function(a,b,c,d,e){var f=Jb(a);if("audio"==e&&!bk(f)){for(var g=wj(f),h=g.length;h<f.length;h++)if(KD(f,h))return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));for(h=g.length;h<f.length;h++)if(oD(f,h))return this.h||(this.h=new qD("audio/aac")),this.h.transmux(a,b,c,d,e);return Promise.reject(new U(2,3,3018,c?c.R()[0]:null))}this.j?this.j.clearData():this.j=new Tj;var k=this.j.parse(f),l=[],m=k.Id();try{var n=null;if("video"==e){switch(m.video){case "avc":var p=[],r=null,u=[],v=k.Nc();
1475
1476
  if(!v.length)throw new U(2,3,3023,c?c.R()[0]:null);for(var w=0;w<v.length;w++){var y=v[w],z=y.nalus;u.push.apply(u,x(z));var B=yD(z);if(B){null==r&&(r=y.dts);var A=void 0;A=w+1<v.length?(v[w+1].dts||0)-(y.dts||0):1<v.length?(y.dts||0)-(v[w-1].dts||0):9E4*(c.endTime-c.startTime);p.push({data:B.data,size:B.data.byteLength,duration:A,yb:Math.round((y.pts||0)-(y.dts||0)),flags:{zb:0,sb:0,rb:0,pb:0,qb:B.Qd?2:1,Ab:B.Qd?0:1}})}}var C=wD(u);if(!C||null==r)throw new U(2,3,3018,c?c.R()[0]:null);b.height=C.height;
1476
- b.width=C.width;n={id:b.id,type:"video",codecs:"avc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,wb:[],Ea:new Uint8Array([]),Qa:C.Qa,Wa:C.Wa,Xa:C.Xa,data:{Rb:this.g,baseMediaDecodeTime:r,ub:p},stream:b};break;case "hvc":var D=[],E=null,H=[],J=k.Lc();if(!J.length)throw new U(2,3,3023,c?c.R()[0]:null);for(var F=0;F<J.length;F++){var K=J[F],L=K.nalus;H.push.apply(H,x(L));for(var O=!1,M=[],N=!1,Q=t(L),S=Q.next();!S.done;S=Q.next()){var aa=S.value;switch(aa.type){case 1:case 0:var qa=
1477
+ b.width=C.width;n={id:b.id,type:"video",codecs:"avc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,wb:[],Ea:new Uint8Array([]),Qa:C.Qa,Wa:C.Wa,Xa:C.Xa,data:{Rb:this.g,baseMediaDecodeTime:r,ub:p},stream:b};break;case "hvc":var D=[],E=null,H=[],J=k.Nc();if(!J.length)throw new U(2,3,3023,c?c.R()[0]:null);for(var F=0;F<J.length;F++){var K=J[F],L=K.nalus;H.push.apply(H,x(L));for(var O=!1,M=[],N=!1,Q=t(L),S=Q.next();!S.done;S=Q.next()){var aa=S.value;switch(aa.type){case 1:case 0:var qa=
1477
1478
  N=!0;break;case 19:case 20:case 21:O=qa=N=!0;break;case 32:qa=!0;break;case 33:qa=!0;break;case 34:qa=!0;break;case 35:N=qa=!0;break;case 39:case 40:qa=!0;break;default:qa=!1}if(N&&qa){var ca=aa.fullData.byteLength,la=new Uint8Array(4);la[0]=ca>>24&255;la[1]=ca>>16&255;la[2]=ca>>8&255;la[3]=ca&255;M.push(la);M.push(aa.fullData)}}var Ja=M.length?{data:Pc.apply(Jc,x(M)),Qd:O}:null;if(Ja){null==E&&null!=K.dts&&(E=K.dts);var Na=void 0;Na=F+1<J.length?(J[F+1].dts||0)-(K.dts||0):1<J.length?(K.dts||0)-(J[F-
1478
1479
  1].dts||0):9E4*(c.endTime-c.startTime);D.push({data:Ja.data,size:Ja.data.byteLength,duration:Na,yb:Math.round((K.pts||0)-(K.dts||0)),flags:{zb:0,sb:0,rb:0,pb:0,qb:Ja.Qd?2:1,Ab:Ja.Qd?0:1}})}}var cb=zD(H);if(!cb||null==E)throw new U(2,3,3018,c?c.R()[0]:null);b.height=cb.height;b.width=cb.width;n={id:b.id,type:"video",codecs:"hvc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,wb:[],Ea:new Uint8Array([]),Qa:cb.Qa,Wa:cb.Wa,Xa:cb.Xa,data:{Rb:this.g,baseMediaDecodeTime:E,ub:D},stream:b}}n&&
1479
- (l.push(n),n=null)}if("audio"==e){switch(m.audio){case "aac":for(var Va=[],ya,Ya=null,Ac=t(k.rc()),nb=Ac.next();!nb.done;nb=Ac.next()){var mc=nb.value,Sc=mc.data;if(Sc){var wb=0;ya=nD(Sc,wb);if(!ya)throw new U(2,3,3018,c?c.R()[0]:null);b.audioSamplingRate=ya.sampleRate;b.channelsCount=ya.channelCount;null==Ya&&null!==mc.pts&&(Ya=mc.pts);for(;wb<Sc.length;){var cd=mD(Sc,wb);if(cd){var Le=cd.Fe+cd.qa;wb+Le<=Sc.length&&Va.push({data:Sc.subarray(wb+cd.Fe,wb+Le),size:cd.qa,duration:1024,yb:0,flags:{zb:0,
1480
- sb:0,rb:0,pb:0,qb:2,Ab:0}});wb+=Le}else wb++}}}if(!ya||null==Ya){if(!k.Lc().length)throw new U(2,3,3018,c?c.R()[0]:null);Ya=9E4*c.startTime;var ge=Vc("audio",b.codecs.split(","));if(!ge||!b.channelsCount||!b.audioSamplingRate)throw new U(2,3,3018,c?c.R()[0]:null);ya={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,codec:ge};var Sf=pD(ge,b.channelsCount);if(!Sf)throw new U(2,3,3018,c?c.R()[0]:null);for(var Me=Ya+9E4*(c.endTime-c.startTime),Qj=Ya;Qj<Me;)Va.push({data:Sf,size:Sf.byteLength,
1481
- duration:1024,yb:0,flags:{zb:0,sb:0,rb:0,pb:0,qb:2,Ab:0}}),Qj+=1024/ya.sampleRate*9E4}var Bh=ya.sampleRate,Rj=Ya/9E4*Bh;n={id:b.id,type:"audio",codecs:ya.codec,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Bh,duration:d,wb:[],Ea:new Uint8Array([]),Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Rb:this.g,baseMediaDecodeTime:Rj,ub:Va},stream:b};break;case "ac3":for(var Ch=[],nc=0,Fo=new Uint8Array([]),zk=null,Ox=t(k.rc()),Go=Ox.next();!Go.done;Go=Ox.next()){var Ho=Go.value,Io=Ho.data;null==zk&&null!==
1482
- Ho.pts&&(zk=Ho.pts);for(var $f=0;$f<Io.length;){var je=rD(Io,$f);je?(b.audioSamplingRate=je.sampleRate,b.channelsCount=je.channelCount,nc=je.sampleRate,Fo=je.Ea,Ch.push({data:Io.subarray($f,$f+je.qa),size:je.qa,duration:1536,yb:0,flags:{zb:0,sb:0,rb:0,pb:0,qb:2,Ab:0}}),$f+=je.qa):$f++}}if(0==nc||0==Fo.byteLength||null==zk)throw new U(2,3,3018,c?c.R()[0]:null);var AH=zk/9E4*nc;n={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:nc,duration:d,wb:[],Ea:Fo,Qa:new Uint8Array([]),
1483
- Wa:0,Xa:0,data:{Rb:this.g,baseMediaDecodeTime:AH,ub:Ch},stream:b};break;case "ec3":for(var Px=[],Ak=0,Jo=new Uint8Array([]),Bk=null,Qx=t(k.rc()),Ko=Qx.next();!Ko.done;Ko=Qx.next()){var Lo=Ko.value,Mo=Lo.data;null==Bk&&null!==Lo.pts&&(Bk=Lo.pts);for(var ag=0;ag<Mo.length;){var ke=uD(Mo,ag);ke?(b.audioSamplingRate=ke.sampleRate,b.channelsCount=ke.channelCount,Ak=ke.sampleRate,Jo=ke.Ea,Px.push({data:Mo.subarray(ag,ag+ke.qa),size:ke.qa,duration:1536,yb:0,flags:{zb:0,sb:0,rb:0,pb:0,qb:2,Ab:0}}),ag+=ke.qa):
1484
- ag++}}if(0==Ak||0==Jo.byteLength||null==Bk)throw new U(2,3,3018,c?c.R()[0]:null);var BH=Bk/9E4*Ak;n={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Ak,duration:d,wb:[],Ea:Jo,Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Rb:this.g,baseMediaDecodeTime:BH,ub:Px},stream:b};break;case "mp3":for(var Rx=[],Ck,Dk=null,Sx=t(k.rc()),No=Sx.next();!No.done;No=Sx.next()){var Oo=No.value,Ph=Oo.data;if(Ph){null==Dk&&null!==Oo.pts&&(Dk=Oo.pts);for(var Pe=0;Pe<Ph.length;){var bg=ED(Ph,
1485
- Pe);bg?(Ck||(Ck=bg),Pe+bg.qa<=Ph.length&&Rx.push({data:Ph.subarray(Pe,Pe+bg.qa),size:bg.qa,duration:1152,yb:0,flags:{zb:0,sb:0,rb:0,pb:0,qb:2,Ab:0}}),Pe+=bg.qa):Pe++}}}if(!Ck||null==Dk)throw new U(2,3,3018,c?c.R()[0]:null);var Tx=Ck.sampleRate,CH=Dk/9E4*Tx;n={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Tx,duration:d,wb:[],Ea:new Uint8Array([]),Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Rb:this.g,baseMediaDecodeTime:CH,ub:Rx},stream:b};break;case "opus":var Ux=
1486
- [],Ek=null,nd=k.H;if(!nd)throw new U(2,3,3018,c?c.R()[0]:null);var Mb=[];switch(nd.Wi){case 1:case 2:Mb=[0];break;case 0:Mb=[255,1,1,0,1];break;case 128:Mb=[255,2,0,0,1];break;case 3:Mb=[1,2,1,0,2,1];break;case 4:Mb=[1,2,2,0,1,2,3];break;case 5:Mb=[1,3,2,0,4,1,2,3];break;case 6:Mb=[1,4,2,0,4,1,2,3,5];break;case 7:Mb=[1,4,2,0,4,1,2,3,5,6];break;case 8:Mb=[1,5,3,0,6,1,2,3,4,5,7];break;case 130:Mb=[1,1,2,0,1];break;case 131:Mb=[1,1,3,0,1,2];break;case 132:Mb=[1,1,4,0,1,2,3];break;case 133:Mb=[1,1,5,
1487
- 0,1,2,3,4];break;case 134:Mb=[1,1,6,0,1,2,3,4,5];break;case 135:Mb=[1,1,7,0,1,2,3,4,5,6];break;case 136:Mb=[1,1,8,0,1,2,3,4,5,6,7]}var Vx=new Uint8Array([0,nd.channelCount,0,0,nd.sampleRate>>>24&255,nd.sampleRate>>>17&255,nd.sampleRate>>>8&255,nd.sampleRate>>>0&255,0,0].concat(x(Mb)));for(var Wx=nd.sampleRate,Xx=t(k.rc()),Po=Xx.next();!Po.done;Po=Xx.next()){var Qo=Po.value,cg=Qo.data;null==Ek&&null!==Qo.pts&&(Ek=Qo.pts);for(var Qh=0;Qh<cg.length;){for(var DH=0!==(cg[Qh+1]&16),EH=0!==(cg[Qh+1]&8),
1488
- Rd=Qh+2,Fk=0;255===cg[Rd];)Fk+=255,Rd+=1;Fk+=cg[Rd];Rd+=1;Rd+=DH?2:0;Rd+=EH?2:0;var Yx=cg.slice(Rd,Rd+Fk);Ux.push({data:Yx,size:Yx.byteLength,duration:960,yb:0,flags:{zb:0,sb:0,rb:0,pb:0,qb:2,Ab:0}});Qh=Rd+Fk}}if(0==Vx.byteLength||null==Ek)throw new U(2,3,3018,c?c.R()[0]:null);b.audioSamplingRate=nd.sampleRate;b.channelsCount=nd.channelCount;var FH=Ek/9E4*Wx;n={id:b.id,type:"audio",codecs:"opus",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Wx,duration:d,wb:[],Ea:Vx,Qa:new Uint8Array([]),Wa:0,
1480
+ (l.push(n),n=null)}if("audio"==e){switch(m.audio){case "aac":for(var Va=[],ya,Ya=null,Ac=t(k.rc()),nb=Ac.next();!nb.done;nb=Ac.next()){var mc=nb.value,Sc=mc.data;if(Sc){var wb=0;ya=nD(Sc,wb);if(!ya)throw new U(2,3,3018,c?c.R()[0]:null);b.audioSamplingRate=ya.sampleRate;b.channelsCount=ya.channelCount;null==Ya&&null!==mc.pts&&(Ya=mc.pts);for(;wb<Sc.length;){var cd=mD(Sc,wb);if(cd){var Me=cd.Fe+cd.qa;wb+Me<=Sc.length&&Va.push({data:Sc.subarray(wb+cd.Fe,wb+Me),size:cd.qa,duration:1024,yb:0,flags:{zb:0,
1481
+ sb:0,rb:0,pb:0,qb:2,Ab:0}});wb+=Me}else wb++}}}if(!ya||null==Ya){if(!k.Nc().length)throw new U(2,3,3018,c?c.R()[0]:null);Ya=9E4*c.startTime;var ge=Vc("audio",b.codecs.split(","));if(!ge||!b.channelsCount||!b.audioSamplingRate)throw new U(2,3,3018,c?c.R()[0]:null);ya={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,codec:ge};var Sf=pD(ge,b.channelsCount);if(!Sf)throw new U(2,3,3018,c?c.R()[0]:null);for(var Ne=Ya+9E4*(c.endTime-c.startTime),Rj=Ya;Rj<Ne;)Va.push({data:Sf,size:Sf.byteLength,
1482
+ duration:1024,yb:0,flags:{zb:0,sb:0,rb:0,pb:0,qb:2,Ab:0}}),Rj+=1024/ya.sampleRate*9E4}var Bh=ya.sampleRate,Sj=Ya/9E4*Bh;n={id:b.id,type:"audio",codecs:ya.codec,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Bh,duration:d,wb:[],Ea:new Uint8Array([]),Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Rb:this.g,baseMediaDecodeTime:Sj,ub:Va},stream:b};break;case "ac3":for(var Ch=[],nc=0,Fo=new Uint8Array([]),Ak=null,Ox=t(k.rc()),Go=Ox.next();!Go.done;Go=Ox.next()){var Ho=Go.value,Io=Ho.data;null==Ak&&null!==
1483
+ Ho.pts&&(Ak=Ho.pts);for(var $f=0;$f<Io.length;){var je=rD(Io,$f);je?(b.audioSamplingRate=je.sampleRate,b.channelsCount=je.channelCount,nc=je.sampleRate,Fo=je.Ea,Ch.push({data:Io.subarray($f,$f+je.qa),size:je.qa,duration:1536,yb:0,flags:{zb:0,sb:0,rb:0,pb:0,qb:2,Ab:0}}),$f+=je.qa):$f++}}if(0==nc||0==Fo.byteLength||null==Ak)throw new U(2,3,3018,c?c.R()[0]:null);var AH=Ak/9E4*nc;n={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:nc,duration:d,wb:[],Ea:Fo,Qa:new Uint8Array([]),
1484
+ Wa:0,Xa:0,data:{Rb:this.g,baseMediaDecodeTime:AH,ub:Ch},stream:b};break;case "ec3":for(var Px=[],Bk=0,Jo=new Uint8Array([]),Ck=null,Qx=t(k.rc()),Ko=Qx.next();!Ko.done;Ko=Qx.next()){var Lo=Ko.value,Mo=Lo.data;null==Ck&&null!==Lo.pts&&(Ck=Lo.pts);for(var ag=0;ag<Mo.length;){var ke=uD(Mo,ag);ke?(b.audioSamplingRate=ke.sampleRate,b.channelsCount=ke.channelCount,Bk=ke.sampleRate,Jo=ke.Ea,Px.push({data:Mo.subarray(ag,ag+ke.qa),size:ke.qa,duration:1536,yb:0,flags:{zb:0,sb:0,rb:0,pb:0,qb:2,Ab:0}}),ag+=ke.qa):
1485
+ ag++}}if(0==Bk||0==Jo.byteLength||null==Ck)throw new U(2,3,3018,c?c.R()[0]:null);var BH=Ck/9E4*Bk;n={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Bk,duration:d,wb:[],Ea:Jo,Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Rb:this.g,baseMediaDecodeTime:BH,ub:Px},stream:b};break;case "mp3":for(var Rx=[],Dk,Ek=null,Sx=t(k.rc()),No=Sx.next();!No.done;No=Sx.next()){var Oo=No.value,Ph=Oo.data;if(Ph){null==Ek&&null!==Oo.pts&&(Ek=Oo.pts);for(var Qe=0;Qe<Ph.length;){var bg=ED(Ph,
1486
+ Qe);bg?(Dk||(Dk=bg),Qe+bg.qa<=Ph.length&&Rx.push({data:Ph.subarray(Qe,Qe+bg.qa),size:bg.qa,duration:1152,yb:0,flags:{zb:0,sb:0,rb:0,pb:0,qb:2,Ab:0}}),Qe+=bg.qa):Qe++}}}if(!Dk||null==Ek)throw new U(2,3,3018,c?c.R()[0]:null);var Tx=Dk.sampleRate,CH=Ek/9E4*Tx;n={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Tx,duration:d,wb:[],Ea:new Uint8Array([]),Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Rb:this.g,baseMediaDecodeTime:CH,ub:Rx},stream:b};break;case "opus":var Ux=
1487
+ [],Fk=null,nd=k.H;if(!nd)throw new U(2,3,3018,c?c.R()[0]:null);var Mb=[];switch(nd.Wi){case 1:case 2:Mb=[0];break;case 0:Mb=[255,1,1,0,1];break;case 128:Mb=[255,2,0,0,1];break;case 3:Mb=[1,2,1,0,2,1];break;case 4:Mb=[1,2,2,0,1,2,3];break;case 5:Mb=[1,3,2,0,4,1,2,3];break;case 6:Mb=[1,4,2,0,4,1,2,3,5];break;case 7:Mb=[1,4,2,0,4,1,2,3,5,6];break;case 8:Mb=[1,5,3,0,6,1,2,3,4,5,7];break;case 130:Mb=[1,1,2,0,1];break;case 131:Mb=[1,1,3,0,1,2];break;case 132:Mb=[1,1,4,0,1,2,3];break;case 133:Mb=[1,1,5,
1488
+ 0,1,2,3,4];break;case 134:Mb=[1,1,6,0,1,2,3,4,5];break;case 135:Mb=[1,1,7,0,1,2,3,4,5,6];break;case 136:Mb=[1,1,8,0,1,2,3,4,5,6,7]}var Vx=new Uint8Array([0,nd.channelCount,0,0,nd.sampleRate>>>24&255,nd.sampleRate>>>17&255,nd.sampleRate>>>8&255,nd.sampleRate>>>0&255,0,0].concat(x(Mb)));for(var Wx=nd.sampleRate,Xx=t(k.rc()),Po=Xx.next();!Po.done;Po=Xx.next()){var Qo=Po.value,cg=Qo.data;null==Fk&&null!==Qo.pts&&(Fk=Qo.pts);for(var Qh=0;Qh<cg.length;){for(var DH=0!==(cg[Qh+1]&16),EH=0!==(cg[Qh+1]&8),
1489
+ Sd=Qh+2,Gk=0;255===cg[Sd];)Gk+=255,Sd+=1;Gk+=cg[Sd];Sd+=1;Sd+=DH?2:0;Sd+=EH?2:0;var Yx=cg.slice(Sd,Sd+Gk);Ux.push({data:Yx,size:Yx.byteLength,duration:960,yb:0,flags:{zb:0,sb:0,rb:0,pb:0,qb:2,Ab:0}});Qh=Sd+Gk}}if(0==Vx.byteLength||null==Fk)throw new U(2,3,3018,c?c.R()[0]:null);b.audioSamplingRate=nd.sampleRate;b.channelsCount=nd.channelCount;var FH=Fk/9E4*Wx;n={id:b.id,type:"audio",codecs:"opus",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Wx,duration:d,wb:[],Ea:Vx,Qa:new Uint8Array([]),Wa:0,
1489
1490
  Xa:0,data:{Rb:this.g,baseMediaDecodeTime:FH,ub:Ux},stream:b}}n&&(l.push(n),n=null)}}catch(Ro){return Ro&&3023==Ro.code?Promise.resolve(new Uint8Array([])):Promise.reject(Ro)}if(!l.length)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));var Zx=new yx(l),So=b.id+"_"+c.i;if(this.i.has(So))var To=this.i.get(So);else To=Ex(Zx),this.i.set(So,To);var GH=gy(Zx);this.g++;var HH=Pc(To,GH);return Promise.resolve(HH)};R("shaka.transmuxer.TsTransmuxer",RD);RD.prototype.transmux=RD.prototype.transmux;
1490
1491
  RD.prototype.getOriginalMimeType=RD.prototype.getOriginalMimeType;RD.prototype.convertCodecs=RD.prototype.convertCodecs;RD.prototype.isSupported=RD.prototype.isSupported;RD.prototype.destroy=RD.prototype.destroy;var SD=["aac","ac-3","ec-3","mp3","opus"],TD=["avc","hevc"];sf("video/mp2t",function(){return new RD("video/mp2t")},wf);/*
1491
1492
  @license
@@ -1562,7 +1563,7 @@ function wE(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60);a=Math.floor(a%6
1562
1563
  !1)});this.eventManager.o(window,"click",function(){vE(c.g,!1)});BE(this)}ra(AE,qE);AE.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=[];qE.prototype.release.call(this)};function CE(a,b){DE.set(a,b)}function BE(a){for(var b=t(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=DE.get(c);d?a.i.push(d.create(a.g,a.controls)):ab("Unrecognized context menu element:",c)}}R("shaka.ui.ContextMenu",AE);
1563
1564
  AE.registerElement=CE;var DE=new Map;function EE(a,b){qE.call(this,a,b);var c=this;this.button=Hn();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();
1564
1565
  c.h()});this.eventManager.o(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g();c.h()});this.eventManager.o(this.button,"click",function(){c.ad&&c.ad.isLinear()?FE(c.controls):GE(c.controls)});this.ad&&(this.g(),this.h())}ra(EE,qE);EE.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.A.paused&&!a.Y;return a};
1565
- EE.prototype.isEnded=function(){return this.ad&&this.ad.isLinear()?!1:this.video.ended};EE.prototype.g=function(){};EE.prototype.h=function(){};R("shaka.ui.PlayButton",EE);function HE(a,b){EE.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}ra(HE,EE);HE.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};HE.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};R("shaka.ui.BigPlayButton",HE);function IE(a,b){qE.call(this,a,b);var c=this;this.m=null;this.s=!1;this.j=new Xb(function(){0!=parseInt(c.h.textContent,10)&&(c.video.currentTime=c.controls.lg()+parseInt(c.h.textContent,10));c.g.style.opacity="0";c.s=!1;c.h.textContent="0s"});this.g=W("div");this.parent.appendChild(this.g);this.eventManager.o(this.g,"touchend",function(d){c.controls.wc()&&(c.controls.Cd()?(d.preventDefault(),c.controls.Mc()):0<c.controls.g.tapSeekDistance&&((d.preventDefault(),d=c.controls.g.tapSeekDistance,c.s)?
1566
+ EE.prototype.isEnded=function(){return this.ad&&this.ad.isLinear()?!1:this.video.ended};EE.prototype.g=function(){};EE.prototype.h=function(){};R("shaka.ui.PlayButton",EE);function HE(a,b){EE.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}ra(HE,EE);HE.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};HE.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};R("shaka.ui.BigPlayButton",HE);function IE(a,b){qE.call(this,a,b);var c=this;this.m=null;this.s=!1;this.j=new Xb(function(){0!=parseInt(c.h.textContent,10)&&(c.video.currentTime=c.controls.kg()+parseInt(c.h.textContent,10));c.g.style.opacity="0";c.s=!1;c.h.textContent="0s"});this.g=W("div");this.parent.appendChild(this.g);this.eventManager.o(this.g,"touchend",function(d){c.controls.wc()&&(c.controls.Cd()?(d.preventDefault(),c.controls.Oc()):0<c.controls.g.tapSeekDistance&&((d.preventDefault(),d=c.controls.g.tapSeekDistance,c.s)?
1566
1567
  c.m+1E3>Date.now()&&(c.j.stop(),c.m=Date.now(),c.h.textContent=(c.l?parseInt(c.h.textContent,10)-d:parseInt(c.h.textContent,10)+d).toString()+"s",c.g.style.opacity="1",c.j.X(1)):(c.s=!0,c.m=Date.now(),c.j.X(1))))});this.h=W("span");this.h.textContent="0s";this.g.appendChild(this.h);this.i=W("span");this.i.classList.add("shaka-forward-rewind-container-icon");this.g.appendChild(this.i);this.l=!1}ra(IE,qE);R("shaka.ui.HiddenSeekButton",IE);function JE(a,b){IE.call(this,a,b);this.g.classList.add("shaka-fast-foward-container");this.i.textContent="fast_forward";this.l=!1}ra(JE,IE);R("shaka.ui.HiddenFastForwardButton",JE);function KE(a,b){IE.call(this,a,b);this.g.classList.add("shaka-rewind-container");this.i.textContent="fast_rewind";this.l=!0}ra(KE,IE);R("shaka.ui.HiddenRewindButton",KE);function LE(a,b,c,d){qE.call(this,a,b);var e=this;this.container=W("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,x(c));this.h=!1;this.bar=document.createElement("input");this.I=new Xb(function(){e.onChangeEnd();e.h=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,x(d));this.bar.type="range";this.bar.step="any";this.bar.min="0";this.bar.max="1";this.bar.value="0";this.container.appendChild(this.bar);
1567
1568
  this.parent.appendChild(this.container);this.eventManager.o(this.bar,"mousedown",function(f){e.controls.wc()&&(e.h=!0,e.onChangeStart());f.stopPropagation()});this.eventManager.o(this.bar,"touchstart",function(f){e.controls.wc()&&(e.h=!0,ME(e,f),e.onChangeStart());f.stopPropagation()});this.eventManager.o(this.bar,"input",function(){e.onChange()});this.eventManager.o(this.bar,"touchmove",function(f){e.h&&(ME(e,f),e.onChange());f.stopPropagation()});this.eventManager.o(this.bar,"touchend",function(f){e.h&&
1568
1569
  (e.h=!1,ME(e,f),e.onChangeEnd());f.stopPropagation()});this.eventManager.o(this.bar,"touchcancel",function(f){e.h&&(e.h=!1,ME(e,f),e.onChangeEnd());f.stopPropagation()});this.eventManager.o(this.bar,"mouseup",function(f){e.h&&(e.h=!1,e.onChangeEnd());f.stopPropagation()});this.eventManager.o(this.bar,"blur",function(){e.h&&(e.h=!1,e.onChangeEnd())});this.eventManager.o(this.bar,"contextmenu",function(f){f.preventDefault();f.stopPropagation()})}ra(LE,qE);q=LE.prototype;
@@ -1579,7 +1580,7 @@ a.base:a.played)+" "+100*c+"%",a.played+" "+100*c+"%",a.played+" "+100*b+"%",a.b
1579
1580
  function OE(a){if(a.G.length){for(var b=a.player.Ga(),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(c=b.next();!c.done;c=b.next())c=c.value,d.push("transparent "+
1580
1581
  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 SE(a){function b(){OE(a);var c=a.player.Ga();c=c.end-c.start;a.player.T()&&5<c&&a.C.Aa(.25)}a.player.Qh()?b():a.eventManager.sa(a.player,"loaded",b)}
1581
1582
  function RE(a){var b=a.player.Ga();b=b.end-b.start;return a.player.T()&&(5>b||!isFinite(b))?!1:null==a.ad||!a.ad.isLinear()}function QE(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}
1582
- function UE(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,B,A;P(function(C){switch(C.g){case 1:d=WE(a);if(!d)return PE(a),C.return();0>c&&(c=0);e=a.player.Ga();f=Math.max(Math.ceil(e.start),Math.min(Math.floor(e.end),c));return G(C,a.player.og(d.id,f),2);case 2:g=C.h;if(!g||!g.uris.length)return PE(a),C.return();a.player.T()?(h=e.end-c,a.A.textContent=1>h?a.localization.resolve("LIVE"):"-"+VE(h)):a.A.textContent=VE(c);k=-10;l=a.i.clientWidth;m=Math.floor(9*l/16);a.i.style.height=m+"px";a.i.style.top=
1583
+ function UE(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,B,A;P(function(C){switch(C.g){case 1:d=WE(a);if(!d)return PE(a),C.return();0>c&&(c=0);e=a.player.Ga();f=Math.max(Math.ceil(e.start),Math.min(Math.floor(e.end),c));return G(C,a.player.ng(d.id,f),2);case 2:g=C.h;if(!g||!g.uris.length)return PE(a),C.return();a.player.T()?(h=e.end-c,a.A.textContent=1>h?a.localization.resolve("LIVE"):"-"+VE(h)):a.A.textContent=VE(c);k=-10;l=a.i.clientWidth;m=Math.floor(9*l/16);a.i.style.height=m+"px";a.i.style.top=
1583
1584
  -(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()){C.B(3);break}a.m=g;a.l&&(a.l.abort(),a.l=null);if("mjpg"!=d.codecs&&!p.startsWith("offline:")){C.B(4);break}a.g.src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>';va(C,5);r=Jh;u=bm(g.segment.R(),g.segment.Ib(),g.segment.Fb(),a.player.getConfiguration().streaming.retryParameters);
1584
1585
  a.l=a.player.Gb().request(r,u,{type:1});return G(C,a.l.promise,7);case 7:v=C.h;a.l=null;"mjpg"==d.codecs?(w=(new Uh).box("mdat",di(function(D){p=URL.createObjectURL(new Blob([D],{type:"image/jpeg"}))})),w.parse(v.data,!1)):(y=d.mimeType||"image/jpeg",z=new Blob([v.data],{type:y}),p=URL.createObjectURL(z));xa(C,4);break;case 5:B=za(C);if(7001==B.code)return C.return();throw B;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;
1585
1586
  a.g.onload=function(){p.startsWith("blob:")&&URL.revokeObjectURL(p)};a.i.insertBefore(a.g,a.i.firstChild);case 3:A=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="-"+A*g.positionX+"px",a.g.style.top="-"+A*g.positionY+"px",a.g.style.transform="scale("+A+")",a.g.style.transformOrigin="left top",m=Math.floor(l*g.height/
@@ -1618,8 +1619,8 @@ function pF(a){var b=a.m.videoWidth;b||(b=a.l.scrollWidth);var c=a.m.videoHeight
1618
1619
  function rF(a,b,c,d){var e=90*Math.PI/180;var f="cubemap"==a.C?a.N:a.G;var g=Math.sin(b);b=Math.cos(b);var h=f[0],k=f[1],l=f[2],m=f[3],n=f[8],p=f[9],r=f[10],u=f[11];f!==f&&(f[4]=f[4],f[5]=f[5],f[6]=f[6],f[7]=f[7],f[12]=f[12],f[13]=f[13],f[14]=f[14],f[15]=f[15]);f[0]=h*b-n*g;f[1]=k*b-p*g;f[2]=l*b-r*g;f[3]=m*b-u*g;f[8]=h*g+n*b;f[9]=k*g+p*b;f[10]=l*g+r*b;f[11]=m*g+u*b;a.H+=c;a.H<e&&a.H>-e?(e=aF(),g=aF(),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!==
1619
1620
  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,cF(f,e,f)):a.H-=c;c=aF();e=aF();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*
1620
1621
  d-k*g;c[7]=r*d-l*g;cF(f,c,f);jF(a,!1)}function sF(a,b){if(void 0===b||b)dF(a.h,a.G),a.V=0,a.A=fF(),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=aF();gF(a.h,a.h);eF(b,a.h);a.G=b;a.J&&(a.J.stop(),a.J=null);20>a.V?a.J=(new Xb(function(){sF(a,!1);a.H=0;a.V++;jF(a,!1)})).X(.025):(eF(b,a.L),a.G=b)};function tF(a,b,c,d,e){ib.call(this);var f=this;this.i=a;this.m=b;this.L=c;this.K=d;this.u=e;this.s=new ud;this.h=new ud;this.G=uF(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&&sF(f.g);vF(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}vF(f)});this.s.o(d,"nospatialvideoinfo",function(){f.l=null;vF(f)});this.s.o(d,
1621
- "unloading",function(){f.l=null;vF(f)});vF(this)}ra(tF,ib);q=tF.prototype;q.release=function(){this.s&&(this.s.release(),this.s=null);this.h&&(this.h.release(),this.h=null);this.g&&(this.g.release(),this.g=null);ib.prototype.release.call(this)};q.configure=function(a){this.u=a;vF(this)};q.Kf=function(){return!!this.G};q.Lb=function(){return!!this.g};q.Bd=function(){this.g?this.g.Bd():ab("Not playing VR content")};q.sg=function(a){this.g?rF(this.g,a*wF,0,0):ab("Not playing VR content")};
1622
- q.qg=function(a){this.g?rF(this.g,0,a*wF,0):ab("Not playing VR content")};q.rg=function(a){this.g?rF(this.g,0,0,a*wF):ab("Not playing VR content")};
1622
+ "unloading",function(){f.l=null;vF(f)});vF(this)}ra(tF,ib);q=tF.prototype;q.release=function(){this.s&&(this.s.release(),this.s=null);this.h&&(this.h.release(),this.h=null);this.g&&(this.g.release(),this.g=null);ib.prototype.release.call(this)};q.configure=function(a){this.u=a;vF(this)};q.Jf=function(){return!!this.G};q.Lb=function(){return!!this.g};q.Bd=function(){this.g?this.g.Bd():ab("Not playing VR content")};q.rg=function(a){this.g?rF(this.g,a*wF,0,0):ab("Not playing VR content")};
1623
+ q.pg=function(a){this.g?rF(this.g,0,a*wF,0):ab("Not playing VR content")};q.qg=function(a){this.g?rF(this.g,0,0,a*wF):ab("Not playing VR content")};
1623
1624
  function vF(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(),xF(a,b)):(a.m.style.display="",xF(a,b),a.dispatchEvent(new T("vrstatuschanged",(new Map).set("newStatus",a.Lb()))))}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 T("vrstatuschanged",(new Map).set("newStatus",a.Lb()))))}function xF(a,b){a.G&&a.m&&(a.g=new hF(a.L,a.K,a.m,a.G,b),yF(a))}
1624
1625
  function uF(a){if(!a.m||uc())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}
1625
1626
  function yF(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);jF(e,!1);d.preventDefault();d.stopPropagation()}});a.h.o(a.i,"mousemove",function(d){a.j&&zF(a,d.clientX,d.clientY)});0<navigator.maxTouchPoints&&
@@ -1632,25 +1633,25 @@ null);a.H&&(a.l.removeChild(a.H),a.H=null);if(!a.aa){b.B(6);break}return G(b,a.a
1632
1633
  q.configure=function(a){this.g=a;this.G.vh(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.m&&(this.m=null);this.Ja&&(this.Ja=null);this.Ia&&(this.Ia=null);this.u&&this.u.configure(a);this.h?(In(this.h),HF(this)):(LF(this),MF(this),this.u=new tF(this.h,this.Mb,this.s,this.C,this.g));this.l.classList.add("shaka-video-container");this.s.classList.add("shaka-video");NF(this);this.g.addBigPlayButton&&OF(this);this.g.customContextMenu&&(this.Ia=new AE(this.V,this),this.I.push(this.Ia));this.L||
1633
1634
  PF(this);this.g.seekOnTaps&&(QF(this),RF(this));this.Ha=W("div");this.Ha.classList.add("shaka-server-side-ad-container");this.h.appendChild(this.Ha);SF(this);this.K=Array.from(this.l.getElementsByClassName("shaka-settings-menu"));this.K.push.apply(this.K,x(Array.from(this.l.getElementsByClassName("shaka-overflow-menu"))));TF(this);this.bb=Array.from(this.l.getElementsByClassName("shaka-show-controls-on-mouse-over"));BF(this);a=t(this.l.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=
1634
1635
  a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.j.o(b,"click",c);this.j.o(b,"dblclick",c)}};q.Wg=function(a){(this.$=a)?(this.l.setAttribute("shaka-controls","true"),this.s.tabIndex=-1,this.s.controls=!1):this.l.removeAttribute("shaka-controls");BF(this)};q.oi=function(a){this.s.controls=a;this.s.tabIndex=a?0:-1;a&&this.Wg(!1)};q.getAd=function(){return this.i};q.dj=function(){return this.G};q.rj=function(){return this.ya};q.Jj=function(){return this.l};q.vc=function(){return this.A};
1635
- q.qj=function(){return this.s};q.kd=function(){return this.C};q.pj=function(){return this.aa};q.hj=function(){return this.h};q.Aj=function(){return this.Ha};q.ej=function(){return this.H};q.fj=function(){return this.g};q.Uj=function(){return this.Y};q.$g=function(a){this.Y=a};q.Pj=function(){return this.ra};q.lg=function(){return this.m?this.m.getValue():this.A.currentTime};q.ri=function(a){this.J=a};q.Cd=function(){return this.K.some(function(a){return!a.classList.contains("shaka-hidden")})};
1636
- q.Mc=function(){this.O.Sa()};q.Pd=function(){return document.fullscreenEnabled||this.s.webkitSupportsFullscreen?!0:!1};q.md=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.s;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
1636
+ q.qj=function(){return this.s};q.kd=function(){return this.C};q.pj=function(){return this.aa};q.hj=function(){return this.h};q.Aj=function(){return this.Ha};q.ej=function(){return this.H};q.fj=function(){return this.g};q.Uj=function(){return this.Y};q.$g=function(a){this.Y=a};q.Pj=function(){return this.ra};q.kg=function(){return this.m?this.m.getValue():this.A.currentTime};q.ri=function(a){this.J=a};q.Cd=function(){return this.K.some(function(a){return!a.classList.contains("shaka-hidden")})};
1637
+ q.Oc=function(){this.O.Sa()};q.Pd=function(){return document.fullscreenEnabled||this.s.webkitSupportsFullscreen?!0:!1};q.md=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.s;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
1637
1638
  function UF(a){var b,c,d;return P(function(e){switch(e.g){case 1:va(e,2);if(!document.fullscreenEnabled){b=a.s;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}va(e,9);return G(e,screen.orientation.lock("landscape"),11);case 11:xa(e,
1638
- 4,2);break;case 9:za(e,2);case 4:xa(e,0);break;case 2:d=za(e),a.dispatchEvent(new T("error",(new Map).set("detail",d))),I(e)}})}function VF(a){var b;return P(function(c){if(!document.fullscreenEnabled)return b=a.s,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.B(0);screen.orientation&&screen.orientation.unlock();return G(c,document.exitFullscreen(),0)})}q.mf=function(){var a=this;return P(function(b){return a.md()?G(b,VF(a),0):G(b,UF(a),0)})};
1639
+ 4,2);break;case 9:za(e,2);case 4:xa(e,0);break;case 2:d=za(e),a.dispatchEvent(new T("error",(new Map).set("detail",d))),I(e)}})}function VF(a){var b;return P(function(c){if(!document.fullscreenEnabled)return b=a.s,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.B(0);screen.orientation&&screen.orientation.unlock();return G(c,document.exitFullscreen(),0)})}q.lf=function(){var a=this;return P(function(b){return a.md()?G(b,VF(a),0):G(b,UF(a),0)})};
1639
1640
  q.Je=function(){return this.G.Ra()?!1:"documentPictureInPicture"in window&&this.g.preferDocumentPictureInPicture||document.pictureInPictureEnabled?!this.s.disablePictureInPicture:!1};q.Ke=function(){return"documentPictureInPicture"in window&&this.g.preferDocumentPictureInPicture?!!window.documentPictureInPicture.window:!!document.pictureInPictureElement};
1640
1641
  q.zd=function(){var a=this,b,c;return P(function(d){if(1==d.g)return va(d,2),"documentPictureInPicture"in window&&a.g.preferDocumentPictureInPicture?G(d,WF(a),5):document.pictureInPictureElement?G(d,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),b=a.s,G(d,b.requestPictureInPicture(),5));if(2!=d.g)return xa(d,0);c=za(d);a.dispatchEvent(new T("error",(new Map).set("detail",c)));I(d)})};
1641
1642
  function WF(a){var b,c,d,e,f,g;return P(function(h){if(1==h.g){if(window.documentPictureInPicture.window)return window.documentPictureInPicture.window.close(),h.return();b=a.l;c=b.getBoundingClientRect();return G(h,window.documentPictureInPicture.requestWindow({width:c.width,height:c.height}),2)}d=h.h;XF(d);e=b.parentNode||document.body;f=a.l.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%}");
1642
1643
  d.document.head.append(g);d.document.body.append(b);a.j.sa(d,"pagehide",function(){f.replaceWith(b)});I(h)})}
1643
1644
  function XF(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.zi=function(){vE(this.N,!0);vE(this.H,!0);this.h.setAttribute("ad-active","true")};
1644
- q.Mh=function(){vE(this.N,!1);vE(this.H,!1);this.h.removeAttribute("ad-active")};function GE(a){a.$&&a.A.duration&&(a.C.$c(),a.A.paused&&!a.Y?a.A.play():a.A.pause())}function FE(a){a.i&&a.i.isPaused()?a.i.play():a.i&&a.i.pause()}
1645
- function LF(a){a.h=W("div");a.h.classList.add("shaka-controls-container");a.l.appendChild(a.h);a.l.setAttribute("shaka-controls","true");a.j.o(a.h,"touchstart",function(b){a.A.duration&&(a.wc()?a.J=Date.now():(YF(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.j.o(a.h,"click",function(){ZF(a)});a.j.o(a.h,"dblclick",function(){a.g.doubleClickForFullscreen&&a.Pd()&&a.mf()})}
1645
+ q.Mh=function(){vE(this.N,!1);vE(this.H,!1);this.h.removeAttribute("ad-active")};function GE(a){a.$&&a.A.duration&&(a.C.Hc(),a.A.paused&&!a.Y?a.A.play():a.A.pause())}function FE(a){a.i&&a.i.isPaused()?a.i.play():a.i&&a.i.pause()}
1646
+ function LF(a){a.h=W("div");a.h.classList.add("shaka-controls-container");a.l.appendChild(a.h);a.l.setAttribute("shaka-controls","true");a.j.o(a.h,"touchstart",function(b){a.A.duration&&(a.wc()?a.J=Date.now():(YF(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.j.o(a.h,"click",function(){ZF(a)});a.j.o(a.h,"dblclick",function(){a.g.doubleClickForFullscreen&&a.Pd()&&a.lf()})}
1646
1647
  function OF(a){var b=W("div");b.classList.add("shaka-play-button-container");a.h.appendChild(b);a.Ja=new HE(b,a);a.I.push(a.Ja)}function NF(a){var b=W("div");b.classList.add("shaka-scrim-container");a.h.appendChild(b)}function $F(a){a.N=W("div");a.N.classList.add("shaka-ad-controls");var b=null!=a.i&&a.i.isLinear();vE(a.N,b);a.P.appendChild(a.N);b=new yE(a.N,a);a.I.push(b);b=new xE(a.N,a);a.I.push(b);b=new YE(a.N,a);a.I.push(b)}
1647
1648
  function PF(a){a.L=W("div");a.L.classList.add("shaka-spinner-container");a.l.appendChild(a.L);var b=W("div");b.classList.add("shaka-spinner");a.L.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");b.setAttribute("fill",
1648
1649
  "none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)}function QF(a){var b=W("div");b.classList.add("shaka-hidden-fast-forward-container");a.h.appendChild(b);a.ib=new JE(b,a);a.I.push(a.ib)}function RF(a){var b=W("div");b.classList.add("shaka-hidden-rewind-container");a.h.appendChild(b);a.Kb=new KE(b,a);a.I.push(a.Kb)}
1649
- function SF(a){a.P=W("div");a.P.classList.add("shaka-bottom-controls");a.P.classList.add("shaka-no-propagation");a.h.appendChild(a.P);a.j.o(a.P,"click",function(d){d.target.closest(".shaka-overflow-button")||a.Mc()});$F(a);a.V=W("div");a.V.classList.add("shaka-controls-button-panel");a.V.classList.add("shaka-show-controls-on-mouse-over");a.g.enableTooltips&&a.V.classList.add("shaka-tooltips-on");a.P.appendChild(a.V);for(var b=t(a.g.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,KF.get(c)?
1650
+ function SF(a){a.P=W("div");a.P.classList.add("shaka-bottom-controls");a.P.classList.add("shaka-no-propagation");a.h.appendChild(a.P);a.j.o(a.P,"click",function(d){d.target.closest(".shaka-overflow-button")||a.Oc()});$F(a);a.V=W("div");a.V.classList.add("shaka-controls-button-panel");a.V.classList.add("shaka-show-controls-on-mouse-over");a.g.enableTooltips&&a.V.classList.add("shaka-tooltips-on");a.P.appendChild(a.V);for(var b=t(a.g.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,KF.get(c)?
1650
1651
  (c=KF.get(c).create(a.V,a),a.I.push(c)):ab("Unrecognized control panel element requested:",c)}function TF(a){if(a.g.addSeekBar)a.m=aG.create(a.P,a),a.I.push(a.m);else{a=t(a.K);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function MF(a){a.H=W("div");a.H.classList.add("shaka-client-side-ad-container");vE(a.H,!1);a.j.o(a.H,"click",function(){ZF(a)});a.l.appendChild(a.H)}
1651
- function EF(a){a.j.o(a.C,"buffering",function(){bG(a)});bG(a);a.j.o(window,"keydown",function(b){cG(a,b)});a.j.o(window,"click",function(){return a.Mc()});a.j.o(a,"submenuopen",function(){a.Mc()});a.j.o(a.A,"play",function(){BF(a)});a.j.o(a.A,"pause",function(){BF(a)});a.j.o(a.l,"mousemove",function(b){YF(a,b)});a.j.o(a.l,"touchmove",function(b){YF(a,b)},{passive:!0});a.j.o(a.l,"touchend",function(b){YF(a,b)},{passive:!0});a.j.o(a.l,"mouseleave",function(){a.J||a.S.Sa()});a.j.o(a.G,"caststatuschanged",
1652
+ function EF(a){a.j.o(a.C,"buffering",function(){bG(a)});bG(a);a.j.o(window,"keydown",function(b){cG(a,b)});a.j.o(window,"click",function(){return a.Oc()});a.j.o(a,"submenuopen",function(){a.Oc()});a.j.o(a.A,"play",function(){BF(a)});a.j.o(a.A,"pause",function(){BF(a)});a.j.o(a.l,"mousemove",function(b){YF(a,b)});a.j.o(a.l,"touchmove",function(b){YF(a,b)},{passive:!0});a.j.o(a.l,"touchend",function(b){YF(a,b)},{passive:!0});a.j.o(a.l,"mouseleave",function(){a.J||a.S.Sa()});a.j.o(a.G,"caststatuschanged",
1652
1653
  function(){GF(a)});a.j.o(a.u,"vrstatuschanged",function(){a.dispatchEvent(new T("vrstatuschanged"))});a.j.o(a.l,"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)&&YF(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(),dG(a,a.m.getValue()-c));break;
1653
- case "ArrowRight":a.m&&e&&!d&&0<c&&(b.preventDefault(),dG(a,a.m.getValue()+c));break;case "PageDown":a.m&&e&&0<c&&(b.preventDefault(),dG(a,a.m.getValue()-f));break;case "PageUp":a.m&&e&&0<c&&(b.preventDefault(),dG(a,a.m.getValue()+f));break;case "Home":a.m&&dG(a,a.C.Ga().start);break;case "End":a.m&&dG(a,a.C.Ga().end);break;case "f":a.Pd()&&a.mf();break;case "m":a.i&&a.i.isLinear()?a.i.setMuted(!a.i.isMuted()):a.s.muted=!a.s.muted;break;case "p":a.Je()&&a.zd();break;case " ":e&&eG(a)}}});a.j.o(a.l,
1654
+ case "ArrowRight":a.m&&e&&!d&&0<c&&(b.preventDefault(),dG(a,a.m.getValue()+c));break;case "PageDown":a.m&&e&&0<c&&(b.preventDefault(),dG(a,a.m.getValue()-f));break;case "PageUp":a.m&&e&&0<c&&(b.preventDefault(),dG(a,a.m.getValue()+f));break;case "Home":a.m&&dG(a,a.C.Ga().start);break;case "End":a.m&&dG(a,a.C.Ga().end);break;case "f":a.Pd()&&a.lf();break;case "m":a.i&&a.i.isLinear()?a.i.setMuted(!a.i.isMuted()):a.s.muted=!a.s.muted;break;case "p":a.Je()&&a.zd();break;case " ":e&&eG(a)}}});a.j.o(a.l,
1654
1655
  "keyup",function(b){a.ka.delete(b.key)});a.j.o(a.na,"ad-started",function(b){a.i=b.ad;a.zi();bG(a)});a.j.o(a.na,"ad-stopped",function(){a.i=null;a.Mh();bG(a)});screen.orientation&&a.j.o(screen.orientation,"change",function(){return P(function(b){return G(b,fG(a),0)})})}
1655
1656
  function FF(a){if(a.g.setupMediaSession&&navigator.mediaSession){var b=function(d,e){try{navigator.mediaSession.setActionHandler(d,function(f){e(f)})}catch(f){}},c=function(d){var e=a.g.keyboardSeekDistance,f=a.C.Ga();switch(d.action){case "pause":eG(a);break;case "play":eG(a);break;case "seekbackward":a.i&&a.i.isLinear()||dG(a,a.m.getValue()-(d.seekOffset||e));break;case "seekforward":a.i&&a.i.isLinear()||dG(a,a.m.getValue()+(d.seekOffset||e));break;case "seekto":a.i&&a.i.isLinear()||dG(a,f.start+
1656
1657
  d.seekTime);break;case "stop":a.C.nc();break;case "enterpictureinpicture":a.i&&a.i.isLinear()||a.zd()}};b("pause",c);b("play",c);b("seekbackward",c);b("seekforward",c);b("seekto",c);b("stop",c);("documentPictureInPicture"in window||document.pictureInPictureEnabled)&&b("enterpictureinpicture",c);a.j.o(a.A,"timeupdate",function(){var d=a.C.Ga(),e=d.end-d.start;d=parseFloat((a.A.currentTime-d.start).toFixed(2));a.C.T()&&1>Math.abs(e-d)&&(e=Infinity);try{a.i&&a.i.isLinear()?navigator.mediaSession.setPositionState():
@@ -1663,9 +1664,9 @@ function GF(a){var b=a.G.Ra();a.dispatchEvent(new T("caststatuschanged",(new Map
1663
1664
  function CF(a){if(a.m)if(a.m.setValue(a.A.currentTime),a.m.update(),a.m.isShowing())for(var b=t(a.K),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=t(a.K),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new T("timeandseekrangeupdated"))}
1664
1665
  function cG(a,b){a.ka.add(b.key);var c=a.Cd();"Tab"==b.key&&(a.h.classList.add("shaka-keyboard-navigation"),BF(a),a.j.o(window,"mousedown",function(){a.j.Ma(window,"mousedown")}));"Escape"==b.key&&a.O.Sa();c&&a.ka.has("Tab")&&hG(a,b)}
1665
1666
  function hG(a,b){var c=a.K.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.ka.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
1666
- q.Mk=function(){var a=new Event("mousemove",{bubbles:!1,cancelable:!1});YF(this,a)};q.Oj=function(){this.J||this.S.Sa()};q.Kf=function(){return this.u.Kf()};q.Lb=function(){return this.u.Lb()};
1667
+ q.Mk=function(){var a=new Event("mousemove",{bubbles:!1,cancelable:!1});YF(this,a)};q.Oj=function(){this.J||this.S.Sa()};q.Jf=function(){return this.u.Jf()};q.Lb=function(){return this.u.Lb()};
1667
1668
  q.Hj=function(){var a=this.u;if(a.g){a=a.g;dF(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 ab("Not playing VR content"),a=null;return a};q.Gj=function(){var a=this.u;a.g?a=a.g.i:(ab("Not playing VR content"),a=null);return a};
1668
- q.Lk=function(a){var b=this.u;b.g?(0>a?(ab("Field of view should be greater than 0"),a=0):100<a&&(ab("Field of view should be less than 100"),a=100),b=b.g,b.i=a,jF(b,!1)):ab("Not playing VR content")};q.Bd=function(){this.u.Bd()};q.sg=function(a){this.u.sg(a)};q.qg=function(a){this.u.qg(a)};q.rg=function(a){this.u.rg(a)};
1669
+ q.Lk=function(a){var b=this.u;b.g?(0>a?(ab("Field of view should be greater than 0"),a=0):100<a&&(ab("Field of view should be less than 100"),a=100),b=b.g,b.i=a,jF(b,!1)):ab("Not playing VR content")};q.Bd=function(){this.u.Bd()};q.rg=function(a){this.u.rg(a)};q.pg=function(a){this.u.pg(a)};q.qg=function(a){this.u.qg(a)};
1669
1670
  function DF(){var a=new md("en");a.Pa("ar",new Map([["AD_DURATION","\u0645\u062f\u0629 \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["AD_PROGRESS","\u0627\u0644\u0625\u0639\u0644\u0627\u0646 [AD_ON] \u0645\u0646 [NUM_ADS]"],["AD_STATISTICS","\u0625\u062d\u0635\u0627\u0621\u0627\u062a \u0627\u0644\u0625\u0639\u0644\u0627\u0646\u0627\u062a"],["AD_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],
1670
1671
  ["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],["CHAPTERS","\u0627\u0644\u0641\u0635\u0648\u0644"],["DOWNLOAD_VIDEO_FRAME","\u062d\u0641\u0638 \u0625\u0637\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648"],["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"'],
1671
1672
  ["EXIT_FULL_SCREEN","\u0625\u0646\u0647\u0627\u0621 \u0648\u0636\u0639 \u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["EXIT_LOOP_MODE","\u0625\u064a\u0642\u0627\u0641 \u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062d\u0627\u0644\u064a"],["EXIT_PICTURE_IN_PICTURE",'\u0627\u0644\u062e\u0631\u0648\u062c \u0645\u0646 \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],["FAST_FORWARD","\u062a\u0642\u062f\u064a\u0645 \u0633\u0631\u064a\u0639"],
@@ -1742,14 +1743,14 @@ a.Pa("tr",new Map([["AD_DURATION","Reklam s\u00fcresi"],["AD_PROGRESS","[AD_ON]/
1742
1743
  ["ENTER_LOOP_MODE","\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["ENTER_PICTURE_IN_PICTURE","\u9032\u5165\u5b50\u6bcd\u756b\u9762"],["EXIT_FULL_SCREEN","\u9000\u51fa\u5168\u87a2\u5e55\u6a21\u5f0f"],["EXIT_LOOP_MODE","\u505c\u6b62\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["EXIT_PICTURE_IN_PICTURE","\u96e2\u958b\u5b50\u6bcd\u756b\u9762"],["FAST_FORWARD","\u5feb\u8f49"],["FULL_SCREEN","\u5168\u87a2\u5e55"],["LANGUAGE","\u8a9e\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u74b0\u64ad\u653e"],
1743
1744
  ["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"],["QUALITY","\u97f3\u8cea"],["RECENTER_VR","\u91cd\u65b0\u7f6e\u4e2d"],["REPLAY","\u91cd\u64ad"],["RESOLUTION","\u89e3\u6790\u5ea6"],["REWIND",
1744
1745
  "\u5012\u8f49"],["SEEK","\u641c\u5c0b"],["SKIP_AD","\u7565\u904e\u5ee3\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["STATISTICS","\u7d71\u8a08\u8cc7\u6599"],["SUBTITLE_FORCED","\u5f37\u5236\u986f\u793a"],["SURROUND","\u74b0\u5834\u97f3\u6548"],["TOGGLE_STEREOSCOPIC","\u5207\u63db\u7acb\u9ad4\u5f71\u50cf"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],["VOLUME","\u97f3\u91cf"]]));a.uh(navigator.languages||
1745
- []);return a}R("shaka.ui.Controls",Z);Z.prototype.incrementRoll=Z.prototype.rg;Z.prototype.incrementPitch=Z.prototype.qg;Z.prototype.incrementYaw=Z.prototype.sg;Z.prototype.toggleStereoscopicMode=Z.prototype.Bd;Z.prototype.setVRFieldOfView=Z.prototype.Lk;Z.prototype.getVRFieldOfView=Z.prototype.Gj;Z.prototype.getVRNorth=Z.prototype.Hj;Z.prototype.isPlayingVR=Z.prototype.Lb;Z.prototype.canPlayVR=Z.prototype.Kf;Z.prototype.hideUI=Z.prototype.Oj;Z.prototype.showUI=Z.prototype.Mk;
1746
- Z.prototype.isOpaque=Z.prototype.wc;Z.prototype.hideAdUI=Z.prototype.Mh;Z.prototype.showAdUI=Z.prototype.zi;Z.prototype.togglePiP=Z.prototype.zd;Z.prototype.isPiPEnabled=Z.prototype.Ke;Z.prototype.isPiPAllowed=Z.prototype.Je;Z.prototype.toggleFullScreen=Z.prototype.mf;Z.prototype.isFullScreenEnabled=Z.prototype.md;Z.prototype.isFullScreenSupported=Z.prototype.Pd;Z.prototype.hideSettingsMenus=Z.prototype.Mc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.Cd;Z.prototype.setLastTouchEventTime=Z.prototype.ri;
1747
- Z.prototype.getDisplayTime=Z.prototype.lg;Z.prototype.isCastAllowed=Z.prototype.Pj;Z.prototype.setSeeking=Z.prototype.$g;Z.prototype.isSeeking=Z.prototype.Uj;Z.prototype.getConfig=Z.prototype.fj;Z.prototype.getClientSideAdContainer=Z.prototype.ej;Z.prototype.getServerSideAdContainer=Z.prototype.Aj;Z.prototype.getControlsContainer=Z.prototype.hj;Z.prototype.getLocalPlayer=Z.prototype.pj;Z.prototype.getPlayer=Z.prototype.kd;Z.prototype.getLocalVideo=Z.prototype.qj;Z.prototype.getVideo=Z.prototype.vc;
1746
+ []);return a}R("shaka.ui.Controls",Z);Z.prototype.incrementRoll=Z.prototype.qg;Z.prototype.incrementPitch=Z.prototype.pg;Z.prototype.incrementYaw=Z.prototype.rg;Z.prototype.toggleStereoscopicMode=Z.prototype.Bd;Z.prototype.setVRFieldOfView=Z.prototype.Lk;Z.prototype.getVRFieldOfView=Z.prototype.Gj;Z.prototype.getVRNorth=Z.prototype.Hj;Z.prototype.isPlayingVR=Z.prototype.Lb;Z.prototype.canPlayVR=Z.prototype.Jf;Z.prototype.hideUI=Z.prototype.Oj;Z.prototype.showUI=Z.prototype.Mk;
1747
+ Z.prototype.isOpaque=Z.prototype.wc;Z.prototype.hideAdUI=Z.prototype.Mh;Z.prototype.showAdUI=Z.prototype.zi;Z.prototype.togglePiP=Z.prototype.zd;Z.prototype.isPiPEnabled=Z.prototype.Ke;Z.prototype.isPiPAllowed=Z.prototype.Je;Z.prototype.toggleFullScreen=Z.prototype.lf;Z.prototype.isFullScreenEnabled=Z.prototype.md;Z.prototype.isFullScreenSupported=Z.prototype.Pd;Z.prototype.hideSettingsMenus=Z.prototype.Oc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.Cd;Z.prototype.setLastTouchEventTime=Z.prototype.ri;
1748
+ Z.prototype.getDisplayTime=Z.prototype.kg;Z.prototype.isCastAllowed=Z.prototype.Pj;Z.prototype.setSeeking=Z.prototype.$g;Z.prototype.isSeeking=Z.prototype.Uj;Z.prototype.getConfig=Z.prototype.fj;Z.prototype.getClientSideAdContainer=Z.prototype.ej;Z.prototype.getServerSideAdContainer=Z.prototype.Aj;Z.prototype.getControlsContainer=Z.prototype.hj;Z.prototype.getLocalPlayer=Z.prototype.pj;Z.prototype.getPlayer=Z.prototype.kd;Z.prototype.getLocalVideo=Z.prototype.qj;Z.prototype.getVideo=Z.prototype.vc;
1748
1749
  Z.prototype.getVideoContainer=Z.prototype.Jj;Z.prototype.getLocalization=Z.prototype.rj;Z.prototype.getCastProxy=Z.prototype.dj;Z.prototype.getAd=Z.prototype.getAd;Z.prototype.setEnabledNativeControls=Z.prototype.oi;Z.prototype.setEnabledShakaControls=Z.prototype.Wg;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.Xj;Z.prototype.allowCast=Z.prototype.Ti;Z.registerSeekBar=function(a){aG=a};Z.registerElement=JF;Z.prototype.destroy=Z.prototype.destroy;
1749
1750
  var KF=new Map,aG=new XE;function iG(a,b){qE.call(this,a,b);var c=this;this.l=this.controls.g;this.j=this.controls.h;this.i=[];this.g=Hn();this.g.classList.add("shaka-overflow-menu-button");this.g.classList.add("shaka-no-propagation");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.g.textContent="more_vert";this.parent.appendChild(this.g);this.h=W("div");this.h.classList.add("shaka-overflow-menu");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");
1750
1751
  this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);jG(this);this.eventManager.o(this.localization,"locale-updated",function(){kG(c)});this.eventManager.o(this.localization,"locale-changed",function(){kG(c)});this.eventManager.o(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&vE(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){vE(c.g,!0)});this.eventManager.o(this.controls,"submenuopen",function(){vE(c.h,!1)});this.eventManager.o(this.h,"touchstart",function(d){c.controls.ri(Date.now());
1751
1752
  d.stopPropagation()});this.eventManager.o(this.g,"click",function(){lG(c)});kG(this);this.ad&&this.ad.isLinear()&&vE(this.g,!1)}ra(iG,qE);iG.prototype.release=function(){this.j=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];qE.prototype.release.call(this)};function mG(a,b){nG.set(a,b)}
1752
- function jG(a){for(var b=t(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,nG.get(c)?(c=nG.get(c),a.i.push(c.create(a.h,a.controls))):ab("Unrecognized overflow menu element requested:",c)}function lG(a){if(a.controls.Cd())a.controls.Mc();else{vE(a.h,!0);BF(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};lb(a.h.childNodes,b)&&mb(a.h.childNodes,b)[0].focus()}}function kG(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1753
+ function jG(a){for(var b=t(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,nG.get(c)?(c=nG.get(c),a.i.push(c.create(a.h,a.controls))):ab("Unrecognized overflow menu element requested:",c)}function lG(a){if(a.controls.Cd())a.controls.Oc();else{vE(a.h,!0);BF(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};lb(a.h.childNodes,b)&&mb(a.h.childNodes,b)[0].focus()}}function kG(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1753
1754
  R("shaka.ui.OverflowMenu",iG);iG.registerElement=mG;function oG(){}oG.prototype.create=function(a,b){return new iG(a,b)};JF("overflow_menu",new oG);var nG=new Map;function pG(a,b){function c(e){return d.j[e]}qE.call(this,a,b);var d=this;this.h=Hn();this.h.classList.add("shaka-ad-statistics-button");this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="insert_chart_outlined";this.h.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");this.u=W("span");a.appendChild(this.u);this.m=W("span");this.m.classList.add("shaka-current-selection-span");a.appendChild(this.m);this.h.appendChild(a);this.parent.appendChild(this.h);
1754
1755
  this.g=W("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-show-controls-on-mouse-over");this.g.classList.add("shaka-ad-statistics-container");this.g.classList.add("shaka-hidden");this.controls.h.appendChild(this.g);this.C=[];this.j=this.adManager.getStats();this.s={};this.A={loadTimes:function(e){var f=0;e=t(d.j[e]);for(var g=e.next();!g.done;g=e.next())f+=parseFloat(g.value);return f},averageLoadTime:c,started:c,playedCompletely:c,skipped:c,errors:c};this.l=new Xb(function(){d.j=
1755
1756
  d.adManager.getStats();for(var e=t(d.C),f=e.next();!f.done;f=e.next())f=f.value,d.s[f].textContent=d.A[f](f)});qG(this);rG(this);this.eventManager.o(this.localization,"locale-updated",function(){qG(d)});this.eventManager.o(this.localization,"locale-changed",function(){qG(d)});this.eventManager.o(this.h,"click",function(){vE(d.parent,!1);d.g.classList.contains("shaka-hidden")?(d.i.textContent="insert_chart",d.l.Aa(.1),vE(d.g,!0)):(d.i.textContent="insert_chart_outlined",d.l.stop(),vE(d.g,!1));qG(d)});
@@ -1758,39 +1759,39 @@ function rG(a){for(var b=t(a.controls.g.adStatisticsList),c=b.next();!c.done;c=b
1758
1759
  sG.prototype.create=function(a,b){return new pG(a,b)};mG("ad_statistics",new sG);CE("ad_statistics",new sG);function tG(a,b){qE.call(this,a,b);var c=this;this.g=Hn();this.g.classList.add("shaka-airplay-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="airplay";this.g.appendChild(this.h);window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");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);
1759
1760
  this.i=W("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);uG(this);vG(this);this.eventManager.o(this.localization,"locale-updated",function(){uG(c)});this.eventManager.o(this.localization,"locale-changed",function(){uG(c)});this.eventManager.o(this.g,"click",function(){c.controls.vc().webkitShowPlaybackTargetPicker()});a=this.controls.vc();this.eventManager.o(a,"webkitplaybacktargetavailabilitychanged",function(d){var e=
1760
1761
  c.player.jd()==Qp;vE(c.g,"available"==d.availability&&e)});this.eventManager.o(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){vG(c)})}ra(tG,qE);function vG(a){var b=a.controls.vc();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function uG(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}R("shaka.ui.AirPlayButton",tG);function wG(){}wG.prototype.create=function(a,b){return new tG(a,b)};mG("airplay",new wG);
1761
- JF("airplay",new wG);function xG(a,b,c,d){d=void 0===d?null:d;this.i=a;this.j=b;this.h=yG(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.yg()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,d,this.h);this.configure({});c.controls||a.ah(b);b.ui=this;c.ui=this}q=xG.prototype;q.destroy=function(){var a=this;return P(function(b){if(1==b.g)return a.g?G(b,a.g.destroy(),2):b.B(2);if(4!=b.g)return a.g=null,a.i?G(b,a.i.destroy(),4):b.B(4);a.i=null;I(b)})};
1762
- q.yg=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:kc()&&1<navigator.maxTouchPoints};q.getConfiguration=function(){var a=yG(this);Nm(a,this.h,yG(this),{},"");return a};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Om(a,b));Nm(this.h,a,yG(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new T("uiupdated"))};q.gj=function(){return this.g};
1762
+ JF("airplay",new wG);function xG(a,b,c,d){d=void 0===d?null:d;this.i=a;this.j=b;this.h=yG(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.xg()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,d,this.h);this.configure({});c.controls||a.ah(b);b.ui=this;c.ui=this}q=xG.prototype;q.destroy=function(){var a=this;return P(function(b){if(1==b.g)return a.g?G(b,a.g.destroy(),2):b.B(2);if(4!=b.g)return a.g=null,a.i?G(b,a.i.destroy(),4):b.B(4);a.i=null;I(b)})};
1763
+ q.xg=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:kc()&&1<navigator.maxTouchPoints};q.getConfiguration=function(){var a=yG(this);Nm(a,this.h,yG(this),{},"");return a};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Om(a,b));Nm(this.h,a,yG(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new T("uiupdated"))};q.gj=function(){return this.g};
1763
1764
  q.Ik=function(a){this.g.Wg(a)};
1764
1765
  function yG(a){var b={controlPanelElements:"play_pause time_and_duration spacer mute volume fullscreen overflow_menu".split(" "),overflowMenuButtons:"captions quality language chapter picture_in_picture cast playback_rate recenter_vr toggle_stereoscopic".split(" "),statisticsList:"width height corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent manifestSizeBytes bytesDownloaded nonFatalErrorCount manifestPeriodCount manifestGapCount".split(" "),adStatisticsList:"loadTimes averageLoadTime started playedCompletely skipped errors".split(" "),
1765
1766
  contextMenuElements:["loop","picture_in_picture","save_video_frame","statistics","ad_statistics"],playbackRates:[.5,.75,1,1.25,1.5,1.75,2],fastForwardRates:[2,4,8,1],rewindRates:[-1,-2,-4,-8],addSeekBar:!0,addBigPlayButton:!1,customContextMenu:!1,castReceiverAppId:"",castAndroidReceiverCompatible:!1,clearBufferOnQualityChange:!0,showUnbufferedStart:!1,seekBarColors:{base:"rgba(255, 255, 255, 0.3)",buffered:"rgba(255, 255, 255, 0.54)",played:"rgb(255, 255, 255)",adBreaks:"rgb(255, 204, 0)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",
1766
1767
  level:"rgb(255, 255, 255)"},trackLabelFormat:zG,textTrackLabelFormat:zG,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5,keyboardLargeSeekDistance:60,fullScreenElement:a.j,preferDocumentPictureInPicture:!0,showAudioChannelCountVariants:!0,seekOnTaps:0<navigator.maxTouchPoints,tapSeekDistance:10,refreshTickInSeconds:.125,displayInVrMode:!1,defaultVrProjectionMode:"equirectangular",
1767
- setupMediaSession:!0};"remote"in HTMLMediaElement.prototype?b.overflowMenuButtons.push("remote"):window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.yg()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));b.overflowMenuButtons.push("save_video_frame");return b}
1768
+ setupMediaSession:!0};"remote"in HTMLMediaElement.prototype?b.overflowMenuButtons.push("remote"):window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.xg()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));b.overflowMenuButtons.push("save_video_frame");return b}
1768
1769
  function AG(){var a,b,c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,B,A,C;return P(function(D){switch(D.g){case 1:vA();if(!$o())return BG("shaka-ui-load-failed",CG),D.return();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");c=document.querySelectorAll("[data-shaka-player-canvas]");d=document.querySelectorAll("[data-shaka-player-vr-canvas]");if(!b.length&&!a.length){D.B(2);break}if(b.length&&!a.length){e=t(b);for(f=e.next();!f.done;f=e.next())g=f.value,
1769
1770
  g.ui||(h=document.createElement("div"),k=g.parentElement,k.replaceChild(h,g),h.appendChild(g),l=DG(h,c,d),m=l.Sh,n=l.Li,EG(h,g,m,n));D.B(2);break}p=t(a);r=p.next();case 4:if(r.done){D.B(2);break}u=r.value;if(u.ui){D.B(5);break}v=null;w=t(b);for(y=w.next();!y.done;y=w.next())if(z=y.value,z.parentElement==u){v=z;break}v||(v=document.createElement("video"),v.setAttribute("playsinline",""),u.appendChild(v));B=DG(u,c,d);A=B.Sh;C=B.Li;va(D,7);return G(D,EG(u,v,A,C),9);case 9:xa(D,5);break;case 7:return za(D),
1770
1771
  BG("shaka-ui-load-failed",FG),D.return();case 5:r=p.next();D.B(4);break;case 2:BG("shaka-ui-loaded"),I(D)}})}function BG(a,b){var c=null;void 0!=b&&(c={reasonCode:b});a=new CustomEvent(a,{detail:c});document.dispatchEvent(a)}
1771
1772
  function EG(a,b,c,d){var e,f,g,h,k,l,m,n,p;return P(function(r){switch(r.g){case 1:e=new X;f=new xG(e,a,b,d);e.oh(c);g="";h=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(g=a.dataset.shakaPlayerCastReceiverId,h="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(g=b.dataset.shakaPlayerCastReceiverId,h="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);g.length&&f.configure({castReceiverAppId:g,castAndroidReceiverCompatible:h});
1772
1773
  b.controls&&f.g.oi(!0);if(k=b.getAttribute("src"))l=document.createElement("source"),l.setAttribute("src",k),b.appendChild(l),b.removeAttribute("src");return G(r,e.$b(b),2);case 2:m=t(b.querySelectorAll("source")),n=m.next();case 3:if(n.done){r.B(0);break}p=n.value;va(r,6);return G(r,f.g.kd().load(p.getAttribute("src")),8);case 8:r.B(0);break;case 6:za(r);case 4:n=m.next(),r.B(3)}})}
1773
1774
  function DG(a,b,c){var d=null;b=t(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,e.parentElement==a){d=e;break}d||(d=document.createElement("canvas"),d.classList.add("shaka-canvas-container"),a.appendChild(d));b=null;c=t(c);for(e=c.next();!e.done;e=c.next())if(e=e.value,e.parentElement==a){b=e;break}b||(b=document.createElement("canvas"),b.classList.add("shaka-vr-canvas-container"),a.appendChild(b));return{Sh:d,Li:b}}R("shaka.ui.Overlay",xG);xG.prototype.setEnabled=xG.prototype.Ik;
1774
- xG.prototype.getControls=xG.prototype.gj;xG.prototype.configure=xG.prototype.configure;xG.prototype.getConfiguration=xG.prototype.getConfiguration;xG.prototype.isMobile=xG.prototype.yg;xG.prototype.destroy=xG.prototype.destroy;var zG=0;xG.TrackLabelFormat={LANGUAGE:zG,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var CG=0,FG=1;xG.FailReasonCode={NO_BROWSER_SUPPORT:CG,PLAYER_FAILED_TO_LOAD:FG};
1775
+ xG.prototype.getControls=xG.prototype.gj;xG.prototype.configure=xG.prototype.configure;xG.prototype.getConfiguration=xG.prototype.getConfiguration;xG.prototype.isMobile=xG.prototype.xg;xG.prototype.destroy=xG.prototype.destroy;var zG=0;xG.TrackLabelFormat={LANGUAGE:zG,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var CG=0,FG=1;xG.FailReasonCode={NO_BROWSER_SUPPORT:CG,PLAYER_FAILED_TO_LOAD:FG};
1775
1776
  "complete"==document.readyState?P(function(a){if(1==a.g)return G(a,Promise.resolve(),2);AG();I(a)}):window.addEventListener("load",AG);function GG(a,b,c,d,e,f,g,h){function k(K){var L="";K=K.toLowerCase();K.startsWith("mp4a")?L="AAC":"ac-3"===K?L="Dolby":"ec-3"===K?L="DD+":"opus"===K?L="Opus":"flac"===K&&(L="fLaC");return L?" "+L:L}function l(K){var L="";5<=K&&(L=" "+f.resolve("SURROUND"));return L}function m(K,L,O,M,N){L=[K,L];h&&null!=M&&L.push(M);p(K)&&N&&L.push(N);O&&3==g&&L.push(O);return L.join(": ")}function n(K){return"variant"==K.type?K.audioRoles?K.audioRoles.join(", "):void 0:K.roles.join(", ")}function p(K){return u.has(K)&&
1776
1777
  1<u.get(K).size}for(var r=a.find(function(K){return 1==K.active}),u=new Map,v=t(a),w=v.next();!w.done;w=v.next())w=w.value,w.audioCodec&&(u.has(w.language)||u.set(w.language,new Set),u.get(w.language).add(w.audioCodec));v=rE(b);In(b);b.appendChild(v);v=new Map;w=t(a);for(var y=w.next();!y.done;y=w.next())y=y.value,v.has(y.language)||v.set(y.language,new Set),v.get(y.language).add(n(y));v=new Set;r=r?m(r.language,n(r),r.label,r.channelsCount,r.audioCodec):"";a=t(a);y=a.next();for(w={};!y.done;w={Zb:void 0},
1777
1778
  y=a.next()){w.Zb=y.value;y=w.Zb.language;var z=w.Zb.forced,B=f.resolve("SUBTITLE_FORCED"),A=n(w.Zb),C=w.Zb.label,D=w.Zb.channelsCount,E=w.Zb.audioCodec,H=m(y,A,C,D,E);if(!v.has(H)){v.add(H);var J=Hn();J.addEventListener("click",function(K){return function(){c(K.Zb)}}(w));var F=W("span");J.appendChild(F);F.textContent=HG(y,f);switch(g){case zG:p(y)&&(F.textContent+=k(E));h&&(F.textContent+=l(D));z&&(F.textContent+=" ("+B+")");break;case 1:p(y)&&(F.textContent+=k(E));h&&(F.textContent+=l(D));A?F.textContent=
1778
1779
  A:(ab("Track #"+w.Zb.id+" does not have a role, but the UI is configured to only show role."),F.textContent="?");z&&(F.textContent+=" ("+B+")");break;case 2:p(y)&&(F.textContent+=k(E));h&&(F.textContent+=l(D));A&&(F.textContent+=": "+A);z&&(F.textContent+=" ("+B+")");break;case 3:C?F.textContent=C:(ab("Track #"+w.Zb.id+" does not have a label, but the UI is configured to only show labels."),F.textContent="?")}d&&H==r&&(J.appendChild(uE()),F.classList.add("shaka-chosen-item"),J.ariaSelected="true",
1779
1780
  e.textContent=F.textContent);b.appendChild(J)}}}function HG(a,b){if(!a&&!b)return"";switch(a){case "mul":return b.resolve("MULTIPLE_LANGUAGES");case "und":return b.resolve("UNDETERMINED_LANGUAGE");case "zxx":return b.resolve("NOT_APPLICABLE")}var c=id(a);return a in mE?mE[a].D:c in mE?mE[c].D+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function IG(a,b,c){qE.call(this,a,b);var d=this;JG(this,c);KG(this);LG(this);this.eventManager.o(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new T("submenuopen")),vE(d.menu,!0),tE(d.menu)):vE(d.menu,!1)})}ra(IG,qE);
1780
1781
  function JG(a,b){a.button=Hn();a.button.classList.add("shaka-overflow-button");a.icon=W("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);b=W("label");b.classList.add("shaka-overflow-button-label");b.classList.add("shaka-overflow-menu-only");a.nameSpan=W("span");b.appendChild(a.nameSpan);a.currentSelection=W("span");a.currentSelection.classList.add("shaka-current-selection-span");b.appendChild(a.currentSelection);a.button.appendChild(b);a.parent.appendChild(a.button)}
1781
- function KG(a){a.menu=W("div");a.menu.classList.add("shaka-no-propagation");a.menu.classList.add("shaka-show-controls-on-mouse-over");a.menu.classList.add("shaka-settings-menu");a.menu.classList.add("shaka-hidden");a.backButton=Hn();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.o(a.backButton,"click",function(){a.controls.Mc()});var b=W("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
1782
+ function KG(a){a.menu=W("div");a.menu.classList.add("shaka-no-propagation");a.menu.classList.add("shaka-show-controls-on-mouse-over");a.menu.classList.add("shaka-settings-menu");a.menu.classList.add("shaka-hidden");a.backButton=Hn();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.o(a.backButton,"click",function(){a.controls.Oc()});var b=W("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
1782
1783
  W("span");a.backButton.appendChild(a.backSpan);a.controls.h.appendChild(a.menu)}function LG(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.o(a.backButton,"click",function(){function b(c){return 0==c.classList.contains("shaka-hidden")}vE(a.parent,!0);lb(a.parent.childNodes,b)&&mb(a.parent.childNodes,b)[0].focus();BF(a.controls)}))}R("shaka.ui.SettingsMenu",IG);function MG(a,b){IG.call(this,a,b,"language");var c=this;this.button.classList.add("shaka-language-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-audio-languages");this.eventManager.o(this.localization,"locale-updated",function(){NG(c)});this.eventManager.o(this.localization,"locale-changed",function(){NG(c)});this.eventManager.o(this.player,"loading",function(){OG(c)});this.eventManager.o(this.player,"trackschanged",function(){OG(c)});this.eventManager.o(this.player,
1783
1784
  "variantchanged",function(){PG(c)});NG(this);PG(this)}ra(MG,IG);
1784
1785
  function PG(a){var b=a.player.Jb();GG(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.Rg(c.language,c.roles[0],d,0,e)},!0,a.currentSelection,a.localization,a.controls.g.trackLabelFormat,a.controls.g.showAudioChannelCountVariants);tE(a.menu);a.controls.dispatchEvent(new T("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText);vE(a.button,2<
1785
1786
  a.menu.getElementsByTagName("button").length)}function OG(a){var b=0<a.player.Jb().length;vE(a.button,b);PG(a)}function NG(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")}R("shaka.ui.AudioLanguageSelection",MG);function QG(){}QG.prototype.create=function(a,b){return new MG(a,b)};mG("language",new QG);JF("language",new QG);function RG(a,b){qE.call(this,a,b);var c=this;this.h=this.controls.G;this.g=Hn();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");
1786
1787
  a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);SG(this);TG(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(){UG(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){TG(c)})}ra(RG,qE);
1787
- function UG(a){var b;P(function(c){if(1==c.g){if(a.h.Ra())return a.h.Di(),c.B(0);va(c,3);a.g.disabled=!0;return G(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,xa(c,0);b=za(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new T("error",(new Map).set("detail",b)));I(c)})}function TG(a){var b=a.h.Jf()&&a.controls.ra,c=a.h.Ra();vE(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");VG(a)}
1788
- function VG(a){a.j.textContent=a.h.Ra()?a.h.bf():a.localization.resolve("OFF")}function SG(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");VG(a)}R("shaka.ui.CastButton",RG);function WG(){}WG.prototype.create=function(a,b){return new RG(a,b)};mG("cast",new WG);JF("cast",new WG);function XG(a,b){IG.call(this,a,b,"bookmarks");var c=this;this.button.classList.add("shaka-chapter-button");this.menu.classList.add("shaka-chapters");this.button.classList.add("shaka-tooltip-status");this.g=[];this.h="und";this.eventManager.o(this.localization,"locale-updated",function(){YG(c);ZG(c)});this.eventManager.o(this.localization,"locale-changed",function(){YG(c);ZG(c)});this.eventManager.o(this.player,"unloading",function(){$G(c);c.h="und";c.g=[]});this.eventManager.o(this.player,"trackschanged",
1788
+ function UG(a){var b;P(function(c){if(1==c.g){if(a.h.Ra())return a.h.Di(),c.B(0);va(c,3);a.g.disabled=!0;return G(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,xa(c,0);b=za(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new T("error",(new Map).set("detail",b)));I(c)})}function TG(a){var b=a.h.If()&&a.controls.ra,c=a.h.Ra();vE(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");VG(a)}
1789
+ function VG(a){a.j.textContent=a.h.Ra()?a.h.$e():a.localization.resolve("OFF")}function SG(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");VG(a)}R("shaka.ui.CastButton",RG);function WG(){}WG.prototype.create=function(a,b){return new RG(a,b)};mG("cast",new WG);JF("cast",new WG);function XG(a,b){IG.call(this,a,b,"bookmarks");var c=this;this.button.classList.add("shaka-chapter-button");this.menu.classList.add("shaka-chapters");this.button.classList.add("shaka-tooltip-status");this.g=[];this.h="und";this.eventManager.o(this.localization,"locale-updated",function(){YG(c);ZG(c)});this.eventManager.o(this.localization,"locale-changed",function(){YG(c);ZG(c)});this.eventManager.o(this.player,"unloading",function(){$G(c);c.h="und";c.g=[]});this.eventManager.o(this.player,"trackschanged",
1789
1790
  function(){ZG(c)});YG(this);ZG(this)}ra(XG,IG);function YG(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("CHAPTERS");a.nameSpan.textContent=a.localization.resolve("CHAPTERS");a.backSpan.textContent=a.localization.resolve("CHAPTERS")}function $G(a){var b=rE(a.menu);In(a.menu);a.menu.appendChild(b);vE(a.button,!1)}
1790
- function ZG(a){function b(h,k){return!h&&!k||h.id===k.id&&h.title===k.title&&h.startTime===k.startTime&&h.endTime===k.endTime}for(var c="und",d=[],e=t(Array.from(a.localization.g)),f=e.next();!f.done&&(c=f.value,d=a.player.kg(c),!d.length);f=e.next());d.length||(c="und",d=a.player.kg(c));e=c!==a.h;f=a.g.length!==d.length||!a.g.some(function(h,k){k=d.at(k);return b(h,k)||d.some(function(l){return b(h,l)})});a.h=c;a.g=d;if(!d.length)$G(a);else if(e||f){c=t(a.g);f=c.next();for(e={};!f.done;e={Lf:void 0},
1791
- f=c.next()){e.Lf=f.value;f=Hn();var g=W("span");g.classList.add("shaka-chapter");g.textContent=e.Lf.title;f.appendChild(g);a.eventManager.o(f,"click",function(h){return function(){a.video.currentTime=h.Lf.startTime}}(e));a.menu.appendChild(f)}vE(a.button,!0);tE(a.menu)}}R("shaka.ui.ChapterSelection",XG);function aH(){}aH.prototype.create=function(a,b){return new XG(a,b)};mG("chapter",new aH);JF("chapter",new aH);function bH(a,b){qE.call(this,a,b);var c=this;this.g=Hn();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);cH(this);this.h=this.controls.g.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){cH(c)});this.eventManager.o(this.localization,"locale-changed",function(){cH(c)});
1792
- this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Va())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Wc(d);c.g.setAttribute("shaka-status",d+"x")}})}ra(bH,qE);function cH(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}R("shaka.ui.FastForwardButton",bH);function dH(){}dH.prototype.create=function(a,b){return new bH(a,b)};JF("fast_forward",new dH);function eH(a,b){qE.call(this,a,b);var c=this;this.h=this.controls.s;this.g=Hn();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");fH(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);gH(this);this.eventManager.o(this.localization,"locale-updated",function(){gH(c)});this.eventManager.o(this.localization,"locale-changed",function(){gH(c)});this.eventManager.o(this.g,"click",function(){return P(function(d){return G(d,
1793
- c.controls.mf(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.md()?"fullscreen_exit":"fullscreen";gH(c)});this.eventManager.o(this.h,"loadedmetadata",function(){fH(c)});this.eventManager.o(this.h,"loadeddata",function(){fH(c)})}ra(eH,qE);function fH(a){a.controls.Pd()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function gH(a){a.g.ariaLabel=a.localization.resolve(a.controls.md()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1791
+ function ZG(a){function b(h,k){return!h&&!k||h.id===k.id&&h.title===k.title&&h.startTime===k.startTime&&h.endTime===k.endTime}for(var c="und",d=[],e=t(Array.from(a.localization.g)),f=e.next();!f.done&&(c=f.value,d=a.player.jg(c),!d.length);f=e.next());d.length||(c="und",d=a.player.jg(c));e=c!==a.h;f=a.g.length!==d.length||!a.g.some(function(h,k){k=d.at(k);return b(h,k)||d.some(function(l){return b(h,l)})});a.h=c;a.g=d;if(!d.length)$G(a);else if(e||f){c=t(a.g);f=c.next();for(e={};!f.done;e={Kf:void 0},
1792
+ f=c.next()){e.Kf=f.value;f=Hn();var g=W("span");g.classList.add("shaka-chapter");g.textContent=e.Kf.title;f.appendChild(g);a.eventManager.o(f,"click",function(h){return function(){a.video.currentTime=h.Kf.startTime}}(e));a.menu.appendChild(f)}vE(a.button,!0);tE(a.menu)}}R("shaka.ui.ChapterSelection",XG);function aH(){}aH.prototype.create=function(a,b){return new XG(a,b)};mG("chapter",new aH);JF("chapter",new aH);function bH(a,b){qE.call(this,a,b);var c=this;this.g=Hn();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);cH(this);this.h=this.controls.g.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){cH(c)});this.eventManager.o(this.localization,"locale-changed",function(){cH(c)});
1793
+ this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Va())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Ec(d);c.g.setAttribute("shaka-status",d+"x")}})}ra(bH,qE);function cH(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}R("shaka.ui.FastForwardButton",bH);function dH(){}dH.prototype.create=function(a,b){return new bH(a,b)};JF("fast_forward",new dH);function eH(a,b){qE.call(this,a,b);var c=this;this.h=this.controls.s;this.g=Hn();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");fH(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);gH(this);this.eventManager.o(this.localization,"locale-updated",function(){gH(c)});this.eventManager.o(this.localization,"locale-changed",function(){gH(c)});this.eventManager.o(this.g,"click",function(){return P(function(d){return G(d,
1794
+ c.controls.lf(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.md()?"fullscreen_exit":"fullscreen";gH(c)});this.eventManager.o(this.h,"loadedmetadata",function(){fH(c)});this.eventManager.o(this.h,"loadeddata",function(){fH(c)})}ra(eH,qE);function fH(a){a.controls.Pd()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function gH(a){a.g.ariaLabel=a.localization.resolve(a.controls.md()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1794
1795
  R("shaka.ui.FullscreenButton",eH);function hH(){}hH.prototype.create=function(a,b){return new eH(a,b)};JF("fullscreen",new hH);function iH(a,b){qE.call(this,a,b);var c=this;this.g=Hn();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");
1795
1796
  a.appendChild(this.j);this.g.appendChild(a);jH(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){jH(c)});this.eventManager.o(this.localization,"locale-changed",function(){jH(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.Sa();c.h.Aa(1)});this.m=this.video.loop;this.h=new Xb(function(){c.m!=c.video.loop&&(jH(c),c.m=c.video.loop)});this.h.Aa(1)}ra(iH,qE);
1796
1797
  iH.prototype.release=function(){this.h.stop();this.h=null;qE.prototype.release.call(this)};function jH(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")}R("shaka.ui.LoopButton",iH);function kH(){}kH.prototype.create=function(a,b){return new iH(a,b)};mG("loop",new kH);JF("loop",new kH);CE("loop",new kH);function lH(a,b){qE.call(this,a,b);var c=this;this.g=Hn();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);mH(this);nH(this);this.eventManager.o(this.localization,"locale-updated",function(){mH(c)});this.eventManager.o(this.localization,"locale-changed",function(){mH(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});
@@ -1799,33 +1800,33 @@ function nH(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?
1799
1800
  W("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(this.h);this.g.appendChild(a);qH(this);this.parent.appendChild(this.g);this.controls.Je()||vE(this.g,!1);this.eventManager.o(this.localization,"locale-updated",function(){qH(c)});this.eventManager.o(this.localization,"locale-changed",function(){qH(c)});this.eventManager.o(this.g,"click",function(){c.controls.zd()});this.eventManager.o(this.l,"enterpictureinpicture",function(){rH(c)});this.eventManager.o(this.l,"leavepictureinpicture",
1800
1801
  function(){sH(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){tH(c)});this.eventManager.o(this.player,"trackschanged",function(){tH(c)});"documentPictureInPicture"in window&&this.eventManager.o(window.documentPictureInPicture,"enter",function(d){rH(c);c.eventManager.sa(d.window,"pagehide",function(){sH(c)})})}ra(pH,qE);
1801
1802
  function rH(a){a.i.textContent="branding_watermark";a.g.ariaLabel=a.localization.resolve("EXIT_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("ON")}function sH(a){a.i.textContent="picture_in_picture_alt";a.g.ariaLabel=a.localization.resolve("ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("OFF")}
1802
- function qH(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");var b=a.controls.Ke();a.g.ariaLabel=a.localization.resolve(b?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve(b?"ON":"OFF")}function tH(a){P(function(b){if(!a.controls.Je())return vE(a.g,!1),a.controls.Ke()?G(b,a.controls.zd(),0):b.B(0);if(!a.player||!a.player.Oc())return vE(a.g,!0),b.B(0);vE(a.g,!1);return a.controls.Ke()?G(b,a.controls.zd(),0):b.B(0)})}R("shaka.ui.PipButton",pH);
1803
+ function qH(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");var b=a.controls.Ke();a.g.ariaLabel=a.localization.resolve(b?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve(b?"ON":"OFF")}function tH(a){P(function(b){if(!a.controls.Je())return vE(a.g,!1),a.controls.Ke()?G(b,a.controls.zd(),0):b.B(0);if(!a.player||!a.player.Qc())return vE(a.g,!0),b.B(0);vE(a.g,!1);return a.controls.Ke()?G(b,a.controls.zd(),0):b.B(0)})}R("shaka.ui.PipButton",pH);
1803
1804
  function uH(){}uH.prototype.create=function(a,b){return new pH(a,b)};mG("picture_in_picture",new uH);JF("picture_in_picture",new uH);CE("picture_in_picture",new uH);function vH(a,b){IG.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(){wH(c)});this.eventManager.o(this.localization,"locale-changed",function(){wH(c)});this.eventManager.o(this.player,"loaded",function(){xH(c,c.player.Va())});this.eventManager.o(this.player,"ratechange",function(){xH(c,
1804
1805
  c.player.Va())});this.g=new Map(this.controls.g.playbackRates.map(function(d){return[d+"x",d]}));wH(this);yH(this);xH(this,this.player.Va())}ra(vH,IG);function wH(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")}
1805
1806
  function xH(a,b){var c=sE(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(uE()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
1806
- "x")}function yH(a){for(var b=t(a.g.keys()),c=b.next(),d={};!c.done;d={$e:void 0},c=b.next()){d.$e=c.value;c=Hn();var e=W("span");e.textContent=d.$e;c.appendChild(e);a.eventManager.o(c,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.$e);a.video.defaultPlaybackRate=a.g.get(f.$e)}}(d));a.menu.appendChild(c)}tE(a.menu)}R("shaka.ui.PlaybackRateSelection",vH);function zH(){}zH.prototype.create=function(a,b){return new vH(a,b)};mG("playback_rate",new zH);JF("playback_rate",new zH);function IH(a,b){qE.call(this,a,b);var c=this;this.g=Hn();this.g.classList.add("shaka-current-time");JH(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.T()&&(c.video.currentTime=c.player.Ga().end)});this.eventManager.o(this.player,"loading",function(){vE(c.g,!0)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.Y,e=c.controls.lg(),f=c.player.Ga(),g=f.end-f.start;isFinite(g)?c.player.T()?(e=Math.max(0,Math.floor(f.end-
1807
+ "x")}function yH(a){for(var b=t(a.g.keys()),c=b.next(),d={};!c.done;d={Lg:void 0},c=b.next()){d.Lg=c.value;c=Hn();var e=W("span");e.textContent=d.Lg;c.appendChild(e);a.eventManager.o(c,"click",function(f){return function(){var g=a.g.get(f.Lg);1==g?a.player.Hc():a.player.Ec(g,!1)}}(d));a.menu.appendChild(c)}tE(a.menu)}R("shaka.ui.PlaybackRateSelection",vH);function zH(){}zH.prototype.create=function(a,b){return new vH(a,b)};mG("playback_rate",new zH);JF("playback_rate",new zH);function IH(a,b){qE.call(this,a,b);var c=this;this.g=Hn();this.g.classList.add("shaka-current-time");JH(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.T()&&(c.video.currentTime=c.player.Ga().end)});this.eventManager.o(this.player,"loading",function(){vE(c.g,!0)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.Y,e=c.controls.kg(),f=c.player.Ga(),g=f.end-f.start;isFinite(g)?c.player.T()?(e=Math.max(0,Math.floor(f.end-
1807
1808
  e)),g=3600<=g,1<=e||d?(JH(c,"- "+wE(e,g)),c.g.disabled=!1):(JH(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=g,e=wE(Math.max(0,e-f.start),d),g&&(e+=" / "+wE(g,d)),JH(c,e),c.g.disabled=!0):(JH(c,c.localization.resolve("LIVE")),c.g.disabled=!0)});this.eventManager.o(this.player,"trackschanged",function(){c.player.T()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))});this.eventManager.o(this.adManager,"ad-started",function(){vE(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",
1808
1809
  function(){vE(c.g,!0)})}ra(IH,qE);function JH(a,b){b!=a.g.textContent&&(a.g.textContent=b)}R("shaka.ui.PresentationTimeTracker",IH);function KH(){}KH.prototype.create=function(a,b){return new IH(a,b)};JF("time_and_duration",new KH);function LH(a,b){qE.call(this,a,b);var c=this;this.g=Hn();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");
1809
1810
  a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);MH(this);this.eventManager.o(this.localization,"locale-updated",function(){MH(c)});this.eventManager.o(this.localization,"locale-changed",function(){MH(c)});var d=this.controls.u;this.eventManager.o(this.g,"click",function(){d.g?sF(d.g):ab("Not playing VR content")});this.eventManager.o(d,"vrstatuschanged",function(){vE(c.g,c.controls.Lb())});vE(this.g,this.controls.Lb())}ra(LH,qE);
1810
1811
  function MH(a){a.g.ariaLabel=a.localization.resolve("RECENTER_VR");a.j.textContent=a.localization.resolve("RECENTER_VR")}R("shaka.ui.RecenterVRButton",LH);function NH(){}NH.prototype.create=function(a,b){return new LH(a,b)};mG("recenter_vr",new NH);JF("recenter_vr",new NH);function OH(a,b){qE.call(this,a,b);var c=this;this.j=!!rc();this.g=Hn();this.g.classList.add("shaka-remote-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=this.j?"airplay":"cast";this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.m=W("span");a.appendChild(this.m);this.l=W("span");this.l.classList.add("shaka-current-selection-span");
1811
1812
  a.appendChild(this.l);this.g.appendChild(a);this.parent.appendChild(this.g);this.h=-1;PH(this);vE(this.g,!1);this.video.remote?(this.eventManager.o(this.localization,"locale-updated",function(){PH(c)}),this.eventManager.o(this.localization,"locale-changed",function(){PH(c)}),this.eventManager.o(this.controls,"caststatuschanged",function(){QH(c)}),this.eventManager.o(this.g,"click",function(){c.video.remote.prompt()}),this.eventManager.o(this.video.remote,"connect",function(){QH(c);RH(c)}),this.eventManager.o(this.video.remote,
1812
1813
  "connecting",function(){QH(c);RH(c)}),this.eventManager.o(this.video.remote,"disconnect",function(){QH(c);RH(c)}),this.eventManager.o(this.player,"loaded",function(){QH(c)}),QH(this,!0),RH(this)):this.g.classList.add("shaka-hidden")}ra(OH,qE);OH.prototype.release=function(){this.video.remote&&-1!=this.h&&this.video.remote.cancelWatchAvailability(this.h).catch(function(){});qE.prototype.release.call(this)};
1813
- function QH(a,b){b=void 0===b?!1:b;var c,d;P(function(e){switch(e.g){case 1:if(a.controls.G.Jf()&&a.controls.ra){vE(a.g,!1);-1!=a.h&&(a.video.remote.cancelWatchAvailability(a.h),a.h=-1);e.B(0);break}if("disconnected"==a.video.remote.state||b){c=function(f){if(a.player){var g=a.video.disableRemotePlayback,h=!0;rc()&&a.player.jd()==Fp&&"HLS"!=a.player.Be()&&(h=!1);vE(a.g,h&&f&&!g)}else vE(a.g,!1)};va(e,7);if(-1==a.h){e.B(9);break}return G(e,a.video.remote.cancelWatchAvailability(a.h),10)}if(-1==a.h){e.B(0);
1814
+ function QH(a,b){b=void 0===b?!1:b;var c,d;P(function(e){switch(e.g){case 1:if(a.controls.G.If()&&a.controls.ra){vE(a.g,!1);-1!=a.h&&(a.video.remote.cancelWatchAvailability(a.h),a.h=-1);e.B(0);break}if("disconnected"==a.video.remote.state||b){c=function(f){if(a.player){var g=a.video.disableRemotePlayback,h=!0;rc()&&a.player.jd()==Fp&&"HLS"!=a.player.Be()&&(h=!1);vE(a.g,h&&f&&!g)}else vE(a.g,!1)};va(e,7);if(-1==a.h){e.B(9);break}return G(e,a.video.remote.cancelWatchAvailability(a.h),10)}if(-1==a.h){e.B(0);
1814
1815
  break}return G(e,a.video.remote.cancelWatchAvailability(a.h),6);case 6:a.h=-1;e.B(0);break;case 10:a.h=-1;case 9:xa(e,8);break;case 7:za(e);case 8:return va(e,11),G(e,a.video.remote.watchAvailability(c),13);case 13:d=e.h;a.h=d;xa(e,0);break;case 11:za(e),c(!0),I(e)}})}function PH(a){var b=a.j?a.localization.resolve("AIRPLAY"):a.localization.resolve("CAST");a.g.ariaLabel=b;a.m.textContent=b}function RH(a){a.j||(a.i.textContent="disconnected"==a.video.remote.state?"cast":"cast_connected")}
1815
1816
  R("shaka.ui.RemoteButton",OH);function SH(){}SH.prototype.create=function(a,b){return new OH(a,b)};mG("remote",new SH);JF("remote",new SH);function TH(a,b){IG.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(){UH(c)});this.eventManager.o(this.localization,"locale-changed",function(){UH(c)});this.eventManager.o(this.player,"loading",function(){VH(c)});this.eventManager.o(this.player,"variantchanged",function(){VH(c)});this.eventManager.o(this.player,
1816
1817
  "trackschanged",function(){VH(c)});this.eventManager.o(this.player,"abrstatuschanged",function(){VH(c)});VH(this)}ra(TH,IG);
1817
- function VH(a){var b=[];a.player.jd()!=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&&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.Oc()?b.filter(function(k,l){return b.findIndex(function(m){return m.bandwidth==
1818
- k.bandwidth})==l}):1<[].concat(x(new Set(b.map(function(k){return k.audioId})))).filter(Yf).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.Oc()?b.sort(function(k,
1819
- l){return l.bandwidth-k.bandwidth}):b.sort(function(k,l){return l.height==k.height||null==k.height||null==l.height?l.bandwidth-k.bandwidth:l.height-k.height});var d=rE(a.menu);In(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;for(var e=t(b),f=e.next(),g={};!f.done;g={Dc:void 0},f=e.next()){g.Dc=f.value;f=Hn();f.classList.add("explicit-resolution");a.eventManager.o(f,"click",function(k){return function(){var l=k.Dc;a.player.configure({abr:{enabled:!1}});a.player.hf(l,a.controls.g.clearBufferOnQualityChange)}}(g));
1820
- var h=W("span");h.textContent=!a.player.Oc()&&g.Dc.height&&g.Dc.width?WH(g.Dc,b):g.Dc.bandwidth?Math.round(g.Dc.bandwidth/1E3)+" kbits/s":"Unknown";f.appendChild(h);d||g.Dc!=c||(f.ariaSelected="true",f.appendChild(uE()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(f)}e=Hn();e.classList.add("shaka-enable-abr-button");a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});VH(a)});a.g=W("span");a.g.classList.add("shaka-auto-span");
1818
+ function VH(a){var b=[];a.player.jd()!=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&&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.Qc()?b.filter(function(k,l){return b.findIndex(function(m){return m.bandwidth==
1819
+ k.bandwidth})==l}):1<[].concat(x(new Set(b.map(function(k){return k.audioId})))).filter(Yf).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.Qc()?b.sort(function(k,
1820
+ l){return l.bandwidth-k.bandwidth}):b.sort(function(k,l){return l.height==k.height||null==k.height||null==l.height?l.bandwidth-k.bandwidth:l.height-k.height});var d=rE(a.menu);In(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;for(var e=t(b),f=e.next(),g={};!f.done;g={Dc:void 0},f=e.next()){g.Dc=f.value;f=Hn();f.classList.add("explicit-resolution");a.eventManager.o(f,"click",function(k){return function(){var l=k.Dc;a.player.configure({abr:{enabled:!1}});a.player.gf(l,a.controls.g.clearBufferOnQualityChange)}}(g));
1821
+ var h=W("span");h.textContent=!a.player.Qc()&&g.Dc.height&&g.Dc.width?WH(g.Dc,b):g.Dc.bandwidth?Math.round(g.Dc.bandwidth/1E3)+" kbits/s":"Unknown";f.appendChild(h);d||g.Dc!=c||(f.ariaSelected="true",f.appendChild(uE()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(f)}e=Hn();e.classList.add("shaka-enable-abr-button");a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});VH(a)});a.g=W("span");a.g.classList.add("shaka-auto-span");
1821
1822
  a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.ariaSelected="true",e.appendChild(uE()),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);tE(a.menu);a.controls.dispatchEvent(new T("resolutionselectionupdated"));UH(a);vE(a.button,1<b.length)}
1822
1823
  function WH(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=new Set;d=t(b);for(var f=d.next();!f.done;f=d.next())f=f.value,f.frameRate&&e.add(Math.round(f.frameRate));1<e.size&&(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(g){return g!=a&&g.height==a.height})&&(c+=" ("+Math.round((a.videoBandwidth||a.bandwidth)/1E3)+" kbits/s)");return c}
1823
- function UH(a){var b=a.player.Oc()?"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"))}R("shaka.ui.ResolutionSelection",TH);function XH(){}
1824
+ function UH(a){var b=a.player.Qc()?"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"))}R("shaka.ui.ResolutionSelection",TH);function XH(){}
1824
1825
  XH.prototype.create=function(a,b){return new TH(a,b)};mG("quality",new XH);JF("quality",new XH);function YH(a,b){qE.call(this,a,b);var c=this;this.g=Hn();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);ZH(this);this.h=this.controls.g.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){ZH(c)});this.eventManager.o(this.localization,"locale-changed",function(){ZH(c)});
1825
- this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Va())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Wc(d);c.g.setAttribute("shaka-status",d+"x")}})}ra(YH,qE);function ZH(a){a.g.ariaLabel=a.localization.resolve("REWIND")}R("shaka.ui.RewindButton",YH);function $H(){}$H.prototype.create=function(a,b){return new YH(a,b)};JF("rewind",new $H);function aI(a,b){qE.call(this,a,b);var c=this;this.g=Hn();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");
1826
+ this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Va())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Ec(d);c.g.setAttribute("shaka-status",d+"x")}})}ra(YH,qE);function ZH(a){a.g.ariaLabel=a.localization.resolve("REWIND")}R("shaka.ui.RewindButton",YH);function $H(){}$H.prototype.create=function(a,b){return new YH(a,b)};JF("rewind",new $H);function aI(a,b){qE.call(this,a,b);var c=this;this.g=Hn();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");
1826
1827
  a.appendChild(this.j);this.g.appendChild(a);bI(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){bI(c)});this.eventManager.o(this.localization,"locale-changed",function(){bI(c)});this.eventManager.o(this.g,"click",function(){var d=document.createElement("canvas"),e=d.getContext("2d"),f=c.controls.s;d.width=f.videoWidth;d.height=f.videoHeight;e.drawImage(f,0,0,d.width,d.height);d=d.toDataURL("image/png");e=document.createElement("a");e.href=d;e.download=
1827
1828
  "videoframe_"+f.currentTime.toFixed(3)+".png";e.click()});this.eventManager.o(this.controls.u,"vrstatuschanged",function(){cI(c)});this.eventManager.o(this.adManager,"ad-started",function(){cI(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){cI(c)});this.eventManager.o(this.player,"unloading",function(){cI(c)});this.eventManager.o(this.player,"loaded",function(){cI(c)});this.eventManager.o(this.player,"loaded",function(){cI(c)});this.eventManager.o(this.video,"play",function(){cI(c)});
1828
- this.eventManager.o(this.video,"pause",function(){cI(c)});this.eventManager.o(this.video,"seeking",function(){cI(c)});cI(this)}ra(aI,qE);function cI(a){var b=!0;a.controls.Lb()&&(b=!1);if(a.player.drmInfo()||a.player.Oc())b=!1;a.ad&&(b=!1);a.video.remote&&"disconnected"!=a.video.remote.state&&(b=!1);vE(a.g,b)}function bI(a){a.g.ariaLabel=a.localization.resolve("DOWNLOAD_VIDEO_FRAME");a.i.textContent=a.localization.resolve("DOWNLOAD_VIDEO_FRAME")}R("shaka.ui.SaveVideoFrameButton",aI);
1829
+ this.eventManager.o(this.video,"pause",function(){cI(c)});this.eventManager.o(this.video,"seeking",function(){cI(c)});cI(this)}ra(aI,qE);function cI(a){var b=!0;a.controls.Lb()&&(b=!1);if(a.player.drmInfo()||a.player.Qc())b=!1;a.ad&&(b=!1);a.video.remote&&"disconnected"!=a.video.remote.state&&(b=!1);vE(a.g,b)}function bI(a){a.g.ariaLabel=a.localization.resolve("DOWNLOAD_VIDEO_FRAME");a.i.textContent=a.localization.resolve("DOWNLOAD_VIDEO_FRAME")}R("shaka.ui.SaveVideoFrameButton",aI);
1829
1830
  function dI(){}dI.prototype.create=function(a,b){return new aI(a,b)};mG("save_video_frame",new dI);CE("save_video_frame",new dI);function eI(a,b){EE.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.button.classList.add("shaka-tooltip");this.h();this.g()}ra(eI,EE);eI.prototype.h=function(){this.isEnded()?this.button.textContent="replay":this.button.textContent=this.isPaused()?"play_arrow":"pause"};
1830
1831
  eI.prototype.g=function(){if(this.isEnded())this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)}};R("shaka.ui.SmallPlayButton",eI);function fI(){}fI.prototype.create=function(a,b){return new eI(a,b)};JF("play_pause",new fI);function gI(a,b){qE.call(this,a,b);a=W("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a)}ra(gI,qE);R("shaka.ui.Spacer",gI);function hI(){}hI.prototype.create=function(a,b){return new gI(a,b)};JF("spacer",new hI);function iI(a,b){function c(m){m=parseInt(l.g[m],10);return 1E6<m?(m/1E6).toFixed(2)+"MB":1E3<m?(m/1E3).toFixed(2)+"KB":m+"B"}function d(m){return l.g[m]+" (gaps)"}function e(m){return wE(l.g[m],!1)+" (m)"}function f(m){return Math.round(l.g[m]/1E3)+" (kbits/s)"}function g(m){return l.g[m].toFixed(2)+" (s)"}function h(m){return l.g[m]+" (frames)"}function k(m){return l.g[m]+" (px)"}qE.call(this,a,b);var l=this;this.i=Hn();this.i.classList.add("shaka-statistics-button");this.j=W("i");this.j.classList.add("material-icons-round");
1831
1832
  this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);a=W("label");a.classList.add("shaka-overflow-button-label");this.u=W("span");a.appendChild(this.u);this.m=W("span");this.m.classList.add("shaka-current-selection-span");a.appendChild(this.m);this.i.appendChild(a);this.parent.appendChild(this.i);this.h=W("div");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");this.h.classList.add("shaka-statistics-container");this.h.classList.add("shaka-hidden");
@@ -1833,11 +1834,11 @@ this.controls.h.appendChild(this.h);this.C=[];this.G=["stateHistory","switchHist
1833
1834
  bytesDownloaded:c,nonFatalErrorCount:function(m){return l.g[m]+" (errors)"},manifestPeriodCount:function(m){return l.g[m]+" (periods)"},manifestGapCount:d};this.l=new Xb(function(){l.g=l.player.getStats();for(var m=t(l.C),n=m.next();!n.done;n=m.next()){n=n.value;var p=l.s[n];p.textContent=l.A[n](n);p&&p.parentElement&&vE(p.parentElement,!isNaN(l.g[n]))}});jI(this);kI(this);this.eventManager.o(this.localization,"locale-updated",function(){jI(l)});this.eventManager.o(this.localization,"locale-changed",
1834
1835
  function(){jI(l)});this.eventManager.o(this.i,"click",function(){vE(l.parent,!1);l.h.classList.contains("shaka-hidden")?(l.j.textContent="insert_chart",l.l.Aa(.1),vE(l.h,!0)):(l.j.textContent="insert_chart_outlined",l.l.stop(),vE(l.h,!1));jI(l)})}ra(iI,qE);function jI(a){a.u.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.m.textContent=a.localization.resolve(a.h.classList.contains("shaka-hidden")?"OFF":"ON")}
1835
1836
  function kI(a){for(var b=t(a.controls.g.statisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.g&&!a.G.includes(c)){var d=a,e=W("div"),f=W("label");f.textContent=c+":";e.appendChild(f);f=W("span");f.textContent=d.A[c](c);e.appendChild(f);d.s[c]=f;a.h.appendChild(e);a.C.push(c)}else ab("Unrecognized statistic element:",c)}iI.prototype.release=function(){this.l.stop();this.l=null;qE.prototype.release.call(this)};R("shaka.ui.StatisticsButton",iI);function lI(){}
1836
- lI.prototype.create=function(a,b){return new iI(a,b)};mG("statistics",new lI);CE("statistics",new lI);function mI(a,b){IG.call(this,a,b,"closed_caption");var c=this;this.button.classList.add("shaka-caption-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-text-languages");this.player&&this.player.Qc()?this.button.ariaPressed="true":this.button.ariaPressed="false";nI(this);this.eventManager.o(this.localization,"locale-updated",function(){oI(c);pI(c)});this.eventManager.o(this.localization,"locale-changed",function(){oI(c);pI(c)});this.eventManager.o(this.player,
1837
+ lI.prototype.create=function(a,b){return new iI(a,b)};mG("statistics",new lI);CE("statistics",new lI);function mI(a,b){IG.call(this,a,b,"closed_caption");var c=this;this.button.classList.add("shaka-caption-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-text-languages");this.player&&this.player.Sc()?this.button.ariaPressed="true":this.button.ariaPressed="false";nI(this);this.eventManager.o(this.localization,"locale-updated",function(){oI(c);pI(c)});this.eventManager.o(this.localization,"locale-changed",function(){oI(c);pI(c)});this.eventManager.o(this.player,
1837
1838
  "loading",function(){qI(c)});this.eventManager.o(this.player,"texttrackvisibility",function(){rI(c);pI(c)});this.eventManager.o(this.player,"textchanged",function(){pI(c)});this.eventManager.o(this.player,"trackschanged",function(){qI(c)});rI(this);oI(this);pI(this);qI(this)}ra(mI,IG);function nI(a){var b=Hn();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(uE());a.g=W("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
1838
- function rI(a){a.player.Qc()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new T("captionselectionupdated"))}
1839
- function pI(a){var b=a.player.uc();GG(b,a.menu,function(c){return sI(a,c)},a.player.Qc(),a.currentSelection,a.localization,a.controls.g.textTrackLabelFormat,a.controls.g.showAudioChannelCountVariants);b=Hn();b.classList.add("shaka-turn-captions-off-button");a.eventManager.o(b,"click",function(){a.player.kf(!1);pI(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Qc()||(b.ariaSelected="true",b.appendChild(uE()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));
1840
- a.button.setAttribute("shaka-status",a.currentSelection.textContent);tE(a.menu);a.controls.dispatchEvent(new T("captionselectionupdated"))}function sI(a,b){return P(function(c){a.player.Tg(b);return G(c,a.player.kf(!0),0)})}
1839
+ function rI(a){a.player.Sc()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new T("captionselectionupdated"))}
1840
+ function pI(a){var b=a.player.uc();GG(b,a.menu,function(c){return sI(a,c)},a.player.Sc(),a.currentSelection,a.localization,a.controls.g.textTrackLabelFormat,a.controls.g.showAudioChannelCountVariants);b=Hn();b.classList.add("shaka-turn-captions-off-button");a.eventManager.o(b,"click",function(){a.player.jf(!1);pI(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Sc()||(b.ariaSelected="true",b.appendChild(uE()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));
1841
+ a.button.setAttribute("shaka-status",a.currentSelection.textContent);tE(a.menu);a.controls.dispatchEvent(new T("captionselectionupdated"))}function sI(a,b){return P(function(c){a.player.Tg(b);return G(c,a.player.jf(!0),0)})}
1841
1842
  function oI(a){a.button.ariaLabel=a.localization.resolve("CAPTIONS");a.backButton.ariaLabel=a.localization.resolve("BACK");a.nameSpan.textContent=a.localization.resolve("CAPTIONS");a.backSpan.textContent=a.localization.resolve("CAPTIONS");a.g.textContent=a.localization.resolve("OFF")}function qI(a){var b=0<a.player.uc().length;vE(a.button,b);pI(a)}R("shaka.ui.TextSelection",mI);function tI(){}tI.prototype.create=function(a,b){return new mI(a,b)};mG("captions",new tI);JF("captions",new tI);function uI(a,b){qE.call(this,a,b);var c=this;this.g=Hn();this.g.classList.add("shaka-toggle-stereoscopic-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="3d_rotation";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");
1842
1843
  a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);vI(this);this.eventManager.o(this.localization,"locale-updated",function(){vI(c)});this.eventManager.o(this.localization,"locale-changed",function(){vI(c)});var d=this.controls.u;this.eventManager.o(this.g,"click",function(){d.Bd()});this.eventManager.o(d,"vrstatuschanged",function(){vE(c.g,c.controls.Lb())});vE(this.g,this.controls.Lb())}ra(uI,qE);
1843
1844
  function vI(a){a.g.ariaLabel=a.localization.resolve("TOGGLE_STEREOSCOPIC");a.j.textContent=a.localization.resolve("TOGGLE_STEREOSCOPIC")}R("shaka.ui.ToggleStereoscopicButton",uI);function wI(){}wI.prototype.create=function(a,b){return new uI(a,b)};mG("toggle_stereoscopic",new wI);JF("toggle_stereoscopic",new wI);function xI(a,b){LE.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.g=this.controls.g;this.setRange(0,100);this.eventManager.o(this.video,"volumechange",function(){return yI(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){return zI(c)});this.eventManager.o(this.adManager,"ad-muted",function(){return zI(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){return yI(c)});this.eventManager.o(this.localization,"locale-updated",function(){return AI(c)});