shaka-player 4.6.16 → 4.6.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,10 +15,10 @@ ha("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("
15
15
  ha("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=fa[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ba(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ia(aa(this))}})}return a});function ia(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
16
16
  function t(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function w(a){if(!(a instanceof Array)){a=t(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ja="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ka;
17
17
  if("function"==typeof Object.setPrototypeOf)ka=Object.setPrototypeOf;else{var la;a:{var ma={a:!0},na={};try{na.__proto__=ma;la=na.a;break a}catch(a){}la=!1}ka=la?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var oa=ka;
18
- function pa(a,b){a.prototype=ja(b.prototype);a.prototype.constructor=a;if(oa)oa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Ui=b.prototype}function qa(){this.o=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.u=this.i=null}function ra(a){if(a.o)throw new TypeError("Generator is already running");a.o=!0}qa.prototype.s=function(a){this.h=a};
19
- function sa(a,b){a.i={Ff:b,Nf:!0};a.g=a.m||a.j}qa.prototype.return=function(a){this.i={return:a};this.g=this.j};function C(a,b,c){a.g=c;return{value:b}}qa.prototype.B=function(a){this.g=a};function F(a){a.g=0}function ta(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function ua(a,b){a.m=0;a.j=b||0}function va(a,b,c){a.g=b;a.m=c||0}function wa(a,b){a.m=b||0;b=a.i.Ff;a.i=null;return b}function xa(a){a.u=[a.i];a.m=0;a.j=0}
20
- function ya(a,b){var c=a.u.splice(0)[0];(c=a.i=a.i||c)?c.Nf?a.g=a.m||a.j:void 0!=c.B&&a.j<c.B?(a.g=c.B,a.i=null):a.g=a.j:a.g=b}function za(a){this.g=new qa;this.h=a}function Aa(a,b){ra(a.g);var c=a.g.l;if(c)return Ba(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Ea(a)}
21
- function Ba(a,b,c,d){try{var e=b.call(a.g.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.o=!1,e;var f=e.value}catch(g){return a.g.l=null,sa(a.g,g),Ea(a)}a.g.l=null;d.call(a.g,f);return Ea(a)}function Ea(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.o=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,sa(a.g,c)}a.g.o=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.Nf)throw b.Ff;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
18
+ function pa(a,b){a.prototype=ja(b.prototype);a.prototype.constructor=a;if(oa)oa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Ti=b.prototype}function qa(){this.o=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.u=this.i=null}function ra(a){if(a.o)throw new TypeError("Generator is already running");a.o=!0}qa.prototype.s=function(a){this.h=a};
19
+ function sa(a,b){a.i={Ef:b,Mf:!0};a.g=a.m||a.j}qa.prototype.return=function(a){this.i={return:a};this.g=this.j};function C(a,b,c){a.g=c;return{value:b}}qa.prototype.B=function(a){this.g=a};function F(a){a.g=0}function ta(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function ua(a,b){a.m=0;a.j=b||0}function va(a,b,c){a.g=b;a.m=c||0}function wa(a,b){a.m=b||0;b=a.i.Ef;a.i=null;return b}function xa(a){a.u=[a.i];a.m=0;a.j=0}
20
+ function ya(a,b){var c=a.u.splice(0)[0];(c=a.i=a.i||c)?c.Mf?a.g=a.m||a.j:void 0!=c.B&&a.j<c.B?(a.g=c.B,a.i=null):a.g=a.j:a.g=b}function za(a){this.g=new qa;this.h=a}function Aa(a,b){ra(a.g);var c=a.g.l;if(c)return Ba(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Ea(a)}
21
+ function Ba(a,b,c,d){try{var e=b.call(a.g.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.o=!1,e;var f=e.value}catch(g){return a.g.l=null,sa(a.g,g),Ea(a)}a.g.l=null;d.call(a.g,f);return Ea(a)}function Ea(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.o=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,sa(a.g,c)}a.g.o=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.Mf)throw b.Ef;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
22
22
  function Fa(a){this.next=function(b){ra(a.g);a.g.l?b=Ba(a,a.g.l.next,b,a.g.s):(a.g.s(b),b=Ea(a));return b};this.throw=function(b){ra(a.g);a.g.l?b=Ba(a,a.g.l["throw"],b,a.g.s):(sa(a.g,b),b=Ea(a));return b};this.return=function(b){return Aa(a,b)};this[Symbol.iterator]=function(){return this}}function Ga(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})}
23
23
  function K(a){return Ga(new Fa(new za(a)))}function Ha(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}
24
24
  ha("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.o=!1;var h=this.j();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.g=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.h=function(g){if(null==this.g){this.g=[];var h=this;this.i(function(){h.l()})}this.g.push(g)};var e=fa.setTimeout;c.prototype.i=function(g){e(g,0)};c.prototype.l=function(){for(;this.g&&this.g.length;){var g=this.g;this.g=[];for(var h=0;h<g.length;++h){var k=
@@ -39,7 +39,7 @@ function(h,k){for(var l=this.entries(),m;!(m=l.next()).done;)m=m.value,h.call(k,
39
39
  ha("Set",function(a){function b(c){this.g=new Map;if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(t([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||
40
40
  f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype.delete=function(c){c=this.g.delete(c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return this.g.values()};b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=
41
41
  b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});function Ja(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}ha("Array.prototype.keys",function(a){return a?a:function(){return Ja(this,function(b){return b})}});
42
- function Ka(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{Lf:e,v:f}}return{Lf:-1,v:void 0}}ha("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ka(this,b,c).Lf}});ha("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
42
+ function Ka(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{Kf:e,v:f}}return{Kf:-1,v:void 0}}ha("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ka(this,b,c).Kf}});ha("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
43
43
  ha("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});function La(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""}
44
44
  ha("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==La(this,b,"includes").indexOf(b,c||0)}});ha("Array.prototype.find",function(a){return a?a:function(b,c){return Ka(this,b,c).v}});ha("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=La(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}});
45
45
  ha("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(h){return h};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});var Ma="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Ia(d,e)&&(a[e]=d[e])}return a};
@@ -95,7 +95,7 @@ NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CE
95
95
  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,CS_IMA_SDK_MISSING:1E4,
96
96
  CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004,MT_AD_MANAGER_NOT_INITIALIZED:10005};function Ec(a,b){if(0==b.length)return a;if(1==a.length&&1==b.length){var c=new mc(a[0]);b=new mc(b[0]);return[c.resolve(b).toString()]}b=b.map(function(g){return new mc(g)});c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=new mc(d.value);for(var e=t(b),f=e.next();!f.done;f=e.next())c.push(d.resolve(f.value).toString())}return c}
97
97
  function Fc(a,b){return{keySystem:a,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:b||[],keyIds:new Set}}function Gc(a,b){if(1==b.length)return b[0];a=Hc(a,b);if(null!=a)return a;throw new P(2,4,4025,b);}
98
- function Hc(a,b){for(var c=t(Ic[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==Jc?"":null}var Jc="text",Kc={ca:"video",R:"audio",ja:Jc,Ec:"image",Vh:"application"},Ic={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4$/,/^dts[cex]$/,/^iamf/],video:[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Lc(){}function Mc(a,b){var c=a;b&&!Nc.includes(a)&&(c+='; codecs="'+b+'"');return c}function Oc(a,b){b&&(a+='; codecs="'+b+'"');return a}function Pc(a,b,c){var d=Mc(a,b);b=Oc(a,b);gc(b)?(a=gc(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}function Qc(a){return a.split(";")[0].split("/")[1]}
98
+ function Hc(a,b){for(var c=t(Ic[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==Jc?"":null}var Jc="text",Kc={ca:"video",R:"audio",ja:Jc,Ec:"image",Uh:"application"},Ic={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4$/,/^dts[cex]$/,/^iamf/],video:[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Lc(){}function Mc(a,b){var c=a;b&&!Nc.includes(a)&&(c+='; codecs="'+b+'"');return c}function Oc(a,b){b&&(a+='; codecs="'+b+'"');return a}function Pc(a,b,c){var d=Mc(a,b);b=Oc(a,b);gc(b)?(a=gc(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}function Qc(a){return a.split(";")[0].split("/")[1]}
99
99
  function Rc(a){var b=Sc(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"===
100
100
  a&&"b2"===b:return"dtsx";case "mp4a"===a&&"a9"===b:return"dtsc";case "avc1"===a:case "avc3"===a:return"avc";case "hvc1"===a:case "hev1"===a:return"hevc";case "dvh1"===a:case "dvhe"===a:return"dovi"}return a}function Tc(a){return a.split(";")[0]}function Uc(a){a=a.split(/ *; */);a.shift();return(a=a.find(function(b){return b.startsWith("codecs=")}))?a.split("=")[1].replace(/^"|"$/g,""):""}function Sc(a){a=a.split(".");var b=a[0];a.shift();return[b,a.join(".")]}N("shaka.util.MimeUtils",Lc);
101
101
  Lc.getFullTypeWithAllCodecs=Oc;Lc.getFullType=Mc;(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");var Nc=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function Vc(a){this.i=null;this.j=a;this.u=!1;this.l=this.s=0;this.m=Infinity;this.h=this.g=null;this.A="";this.o=new Map}function Wc(a){return Xc[a]?!0:"application/cea-608"==a||"application/cea-708"==a?!!Cb:!1}Vc.prototype.destroy=function(){this.j=this.i=null;this.o.clear();return Promise.resolve()};
@@ -145,7 +145,7 @@ function de(a){return{id:a.id,active:!1,type:Jc,bandwidth:0,language:a.language,
145
145
  originalVideoId:null,originalAudioId:null,originalTextId:a.originalId,originalImageId:null,accessibilityPurpose:a.accessibilityPurpose,originalLanguage:a.originalLanguage}}
146
146
  function ee(a){var b=a.width||null,c=a.height||null,d=null;a.segmentIndex&&(d=a.segmentIndex.get(0));var e=a.tilesLayout;d&&(e=d.tilesLayout||e);e&&null!=b&&(b/=Number(e.split("x")[0]));e&&null!=c&&(c/=Number(e.split("x")[1]));return{id:a.id,active:!1,type:"image",bandwidth:a.bandwidth||0,language:"",label:null,kind:null,width:b,height:c,frameRate:null,pixelAspectRatio:null,hdr:null,videoLayout:null,mimeType:a.mimeType,audioMimeType:null,videoMimeType:null,codecs:a.codecs||null,audioCodec:null,videoCodec:null,
147
147
  primary:!1,roles:[],audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:e||null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:a.originalId,accessibilityPurpose:null,originalLanguage:null}}function fe(a){a.__shaka_id||(a.__shaka_id=ge++);return a.__shaka_id}
148
- function he(a){var b=ie(a);b.active="disabled"!=a.mode;b.type="text";b.originalTextId=a.id;"captions"==a.kind&&(b.mimeType="application/cea-608");"subtitles"==a.kind&&(b.mimeType="text/vtt");a.kind&&(b.roles=[a.kind]);"forced"==a.kind&&(b.forced=!0);return b}function je(a){var b=ie(a);b.active=a.enabled;b.type="variant";b.originalAudioId=a.id;"main"==a.kind&&(b.primary=!0);a.kind&&(b.roles=[a.kind],b.audioRoles=[a.kind],b.label=a.label);return b}
148
+ function he(a){var b=ie(a);b.active="disabled"!=a.mode;b.type="text";b.originalTextId=a.id;"captions"==a.kind&&(b.mimeType="unknown");"subtitles"==a.kind&&(b.mimeType="text/vtt");a.kind&&(b.roles=[a.kind]);"forced"==a.kind&&(b.forced=!0);return b}function je(a){var b=ie(a);b.active=a.enabled;b.type="variant";b.originalAudioId=a.id;"main"==a.kind&&(b.primary=!0);a.kind&&(b.roles=[a.kind],b.audioRoles=[a.kind],b.label=a.label);return b}
149
149
  function ie(a){var b=a.language;return{id:fe(a),active:!1,type:"",bandwidth:0,language:hd(b||"und"),label:a.label,kind:a.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,videoLayout:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],forced:!1,audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,
150
150
  originalAudioId:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:b}}function ke(a){return a.allowedByApplication&&a.allowedByKeySystem&&0==a.disabledUntilTime}function le(a){return a.filter(function(b){return ke(b)})}
151
151
  function me(a,b,c,d){var e=a,f=a.filter(function(k){return k.primary});f.length&&(e=f);var g=e.length?e[0].language:"";e=e.filter(function(k){return k.language==g});if(b){var h=od(hd(b),a.map(function(k){return k.language}));h&&(e=a.filter(function(k){return hd(k.language)==h}))}e=e.filter(function(k){return k.forced==d});if(c){if(a=ne(e,c),a.length)return a}else if(a=e.filter(function(k){return 0==k.roles.length}),a.length)return a;a=e.map(function(k){return k.roles}).reduce(cd,[]);return a.length?
@@ -160,7 +160,7 @@ r.segmentDownloaded=function(a,b,c){this.i.sample(a,b);if(c&&null!=this.s&&this.
160
160
  r.setMediaElement=function(a){var b=this;this.j=a;this.h&&(this.h.disconnect(),this.h=null);this.j&&"ResizeObserver"in window&&(this.h=new ResizeObserver(function(){b.A.U(te)}),this.h.observe(this.j))};r.configure=function(a){this.g=a;this.i&&this.g&&this.i.configure(this.g.advanced)};function se(a){var b=a.g.defaultBandwidthEstimate;navigator.connection&&navigator.connection.downlink&&a.g.useNetworkInformation&&(b=1E6*navigator.connection.downlink);return b}
161
161
  function qe(a,b,c,d){a&&(b=b.filter(function(e){return Md(e,a,{width:d,height:c})}));return b.sort(function(e,f){return e.bandwidth-f.bandwidth})}function re(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.video)&&c.height&&c.width&&b.push({height:c.height,width:c.width});return b.sort(function(d,e){return d.width-e.width})}N("shaka.abr.SimpleAbrManager",pe);pe.prototype.configure=pe.prototype.configure;pe.prototype.setMediaElement=pe.prototype.setMediaElement;
162
162
  pe.prototype.playbackRateChanged=pe.prototype.playbackRateChanged;pe.prototype.setVariants=pe.prototype.setVariants;pe.prototype.getBandwidthEstimate=pe.prototype.getBandwidthEstimate;pe.prototype.segmentDownloaded=pe.prototype.segmentDownloaded;pe.prototype.disable=pe.prototype.disable;pe.prototype.enable=pe.prototype.enable;pe.prototype.chooseVariant=pe.prototype.chooseVariant;pe.prototype.init=pe.prototype.init;pe.prototype.release=pe.prototype.release;pe.prototype.stop=pe.prototype.stop;
163
- var te=1;function ue(a,b){this.g=a;this.h=b}ue.prototype.toString=function(){return"v"+this.g+"."+this.h};function ve(a,b){var c=new ue(5,0),d=ye,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function ze(a,b,c,d){Ua([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function Ae(a,b,c,d){Ta([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(" "))}var ye=null;N("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});N("shaka.config.CodecSwitchingStrategy",{wi:"reload",ng:"smooth"});function Be(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?!1:d;this.h=a;this.g=new Set([a]);b=b||[];a=t(b);for(b=a.next();!b.done;b=a.next())this.add(b.value,c,d)}Be.prototype.add=function(a,b,c){return Ce(this.h,a,void 0===b?!0:b,void 0===c?!1:c)?(this.g.add(a),!0):!1};
163
+ var te=1;function ue(a,b){this.g=a;this.h=b}ue.prototype.toString=function(){return"v"+this.g+"."+this.h};function ve(a,b){var c=new ue(5,0),d=ye,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function ze(a,b,c,d){Ua([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function Ae(a,b,c,d){Ta([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(" "))}var ye=null;N("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});N("shaka.config.CodecSwitchingStrategy",{vi:"reload",mg:"smooth"});function Be(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?!1:d;this.h=a;this.g=new Set([a]);b=b||[];a=t(b);for(b=a.next();!b.done;b=a.next())this.add(b.value,c,d)}Be.prototype.add=function(a,b,c){return Ce(this.h,a,void 0===b?!0:b,void 0===c?!1:c)?(this.g.add(a),!0):!1};
164
164
  function Ce(a,b,c,d){var e;if(!(e=!!a.audio!=!!b.audio||!!a.video!=!!b.video||a.language!=b.language)&&(e=a.audio&&b.audio)){e=a.audio;var f=b.audio;e=!!((!e.channelsCount||!f.channelsCount||2<e.channelsCount||2<f.channelsCount)&&e.channelsCount!=f.channelsCount||c&&!De(e,f)||!Ee(e.roles,f.roles)||d&&e.groupId!==f.groupId)}!(d=e)&&(d=a.video&&b.video)&&(a=a.video,b=b.video,d=!((!c||De(a,b))&&Ee(a.roles,b.roles)));return d?!1:!0}Be.prototype.values=function(){return this.g.values()};
165
165
  function De(a,b){if(a.mimeType!=b.mimeType)return!1;a=a.codecs.split(",").map(function(d){return Sc(d)[0]});b=b.codecs.split(",").map(function(d){return Sc(d)[0]});if(a.length!=b.length)return!1;a.sort();b.sort();for(var c=0;c<a.length;c++)if(a[c]!=b[c])return!1;return!0}function Ee(a,b){a=new Set(a);b=new Set(b);a.delete("main");b.delete("main");if(a.size!=b.size)return!1;a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b.has(c.value))return!1;return!0};function Ge(a,b,c){b=void 0===b?"reload":b;c=void 0===c?!1:c;this.i=a;this.h=b;this.g=c;this.j=new He(a.language,"",a.audio&&a.audio.channelsCount?a.audio.channelsCount:0,"","","",b,c)}Ge.prototype.create=function(a){var b=this,c="smooth"==this.h&&mb(),d=a.filter(function(e){return Ce(b.i,e,!c,b.g)});return d.length?new Be(d[0],d,!c,this.g):this.j.create(a)};
166
166
  function He(a,b,c,d,e,f,g,h){this.o=a;this.s=b;this.g=c;this.h=d;this.j=e;this.i=void 0===f?"":f;this.l=void 0===g?"reload":g;this.m=void 0===h?!1:h}
@@ -172,28 +172,28 @@ function af(a){return new We(Promise.all(a.map(function(b){return b.promise})),f
172
172
  We.prototype.na=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=bf(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new Ve,g=new P(2,7,7001);this.promise.then(c(!0),c(!1));return new We(f,function(){return d()})};
173
173
  function bf(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()}}}N("shaka.util.AbortableOperation",We);We.prototype.chain=We.prototype.na;We.prototype["finally"]=We.prototype.finally;We.all=af;We.prototype.abort=We.prototype.abort;We.notAbortable=$e;We.completed=Ze;We.aborted=Ye;We.failed=Xe;function Q(a,b){if(b)if(b instanceof Map)for(var c=t(b.keys()),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(this,d,{value:b.get(d),writable:!0,enumerable:!0});else for(c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.g=!1}
174
174
  function cf(a){var b=new Q(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}Q.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};Q.prototype.stopImmediatePropagation=function(){this.g=!0};Q.prototype.stopPropagation=function(){};N("shaka.util.FakeEvent",Q);
175
- var df={Xh:"abrstatuschanged",Yh:"adaptation",Zh:"buffering",$h:"complete",ai:"downloadfailed",bi:"downloadheadersreceived",ci:"drmsessionupdate",ei:"emsg",vi:"prft",Error:"error",fi:"expirationupdated",gi:"firstquartile",hi:"gapjumped",ki:"keystatuschanged",mi:"loaded",ni:"loading",pi:"manifestparsed",ri:"manifestupdated",si:"mediaqualitychanged",Metadata:"metadata",ti:"midpoint",ui:"onstatechange",xi:"ratechange",yi:"segmentappended",zi:"sessiondata",Ai:"stalldetected",Bi:"started",Ci:"statechanged",
176
- Di:"streaming",Ei:"textchanged",Fi:"texttrackvisibility",Gi:"thirdquartile",Hi:"timelineregionadded",Ii:"timelineregionenter",Ji:"timelineregionexit",Ki:"trackschanged",Mi:"unloading",Oi:"variantchanged"};function ef(){this.ba=new eb;this.vd=this}ef.prototype.addEventListener=function(a,b){this.ba&&this.ba.push(a,b)};ef.prototype.removeEventListener=function(a,b){this.ba&&this.ba.remove(a,b)};ef.prototype.dispatchEvent=function(a){if(!this.ba)return!0;var b=this.ba.get(a.type)||[],c=this.ba.get("All");c&&(b=b.concat(c));b=t(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.vd;a.currentTarget=this.vd;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
177
- ef.prototype.release=function(){this.ba=null};function ff(a){function b(d){switch(typeof d){case "undefined":case "boolean":case "number":case "string":case "symbol":case "function":return d;default:if(!d||d.buffer&&d.buffer.constructor==ArrayBuffer)return d;if(c.has(d))return null;var e=d.constructor==Array;if(d.constructor!=Object&&!e)return null;c.add(d);var f=e?[]:{},g;for(g in d)f[g]=b(d[g]);e&&(f.length=d.length);return f}}var c=new WeakSet;return b(a)}function gf(a){var b={},c;for(c in a)b[c]=a[c];return b};function hf(){this.g=[]}function jf(a,b){a.g.push(b.finally(function(){Fb(a.g,b)}))}hf.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 kf(a,b,c,d,e){ef.call(this);this.i=!1;this.m=new hf;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.s=c||null;this.u=d||null;this.A=e||null;this.o=!1}pa(kf,ef);r=kf.prototype;r.hf=function(a){this.o=a};function lf(a,b,c,d){c=c||mf;var e=nf[a];if(!e||c>=e.priority)nf[a]={priority:c,Qd:b,xh:void 0===d?!1:d}}r.yh=function(a){this.g.add(a)};r.Rh=function(a){this.g.delete(a)};r.xg=function(){this.g.clear()};r.zh=function(a){this.h.add(a)};r.Sh=function(a){this.h.delete(a)};
178
- r.yg=function(){this.h.clear()};function of(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}}r.destroy=function(){this.i=!0;this.g.clear();this.h.clear();ef.prototype.release.call(this);return this.m.destroy()};
175
+ var df={Wh:"abrstatuschanged",Xh:"adaptation",Yh:"buffering",Zh:"complete",$h:"downloadfailed",ai:"downloadheadersreceived",bi:"drmsessionupdate",di:"emsg",ui:"prft",Error:"error",ei:"expirationupdated",fi:"firstquartile",gi:"gapjumped",ji:"keystatuschanged",li:"loaded",mi:"loading",oi:"manifestparsed",pi:"manifestupdated",ri:"mediaqualitychanged",Metadata:"metadata",si:"midpoint",ti:"onstatechange",wi:"ratechange",xi:"segmentappended",yi:"sessiondata",zi:"stalldetected",Ai:"started",Bi:"statechanged",
176
+ Ci:"streaming",Di:"textchanged",Ei:"texttrackvisibility",Fi:"thirdquartile",Gi:"timelineregionadded",Hi:"timelineregionenter",Ii:"timelineregionexit",Ji:"trackschanged",Li:"unloading",Ni:"variantchanged"};function ef(){this.ba=new eb;this.vd=this}ef.prototype.addEventListener=function(a,b){this.ba&&this.ba.push(a,b)};ef.prototype.removeEventListener=function(a,b){this.ba&&this.ba.remove(a,b)};ef.prototype.dispatchEvent=function(a){if(!this.ba)return!0;var b=this.ba.get(a.type)||[],c=this.ba.get("All");c&&(b=b.concat(c));b=t(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.vd;a.currentTarget=this.vd;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
177
+ ef.prototype.release=function(){this.ba=null};function ff(a){function b(d){switch(typeof d){case "undefined":case "boolean":case "number":case "string":case "symbol":case "function":return d;default:if(!d||d.buffer&&d.buffer.constructor==ArrayBuffer)return d;if(c.has(d))return null;var e=d.constructor==Array;if(d.constructor!=Object&&!e)return null;c.add(d);var f=e?[]:{},g;for(g in d)f[g]=b(d[g]);e&&(f.length=d.length);return f}}var c=new WeakSet;return b(a)}function gf(a){var b={},c;for(c in a)b[c]=a[c];return b};function hf(){this.g=[]}function jf(a,b){a.g.push(b.finally(function(){Fb(a.g,b)}))}hf.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 kf(a,b,c,d,e){ef.call(this);this.i=!1;this.m=new hf;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.s=c||null;this.u=d||null;this.A=e||null;this.o=!1}pa(kf,ef);r=kf.prototype;r.gf=function(a){this.o=a};function lf(a,b,c,d){c=c||mf;var e=nf[a];if(!e||c>=e.priority)nf[a]={priority:c,Qd:b,wh:void 0===d?!1:d}}r.xh=function(a){this.g.add(a)};r.Qh=function(a){this.g.delete(a)};r.wg=function(){this.g.clear()};r.yh=function(a){this.h.add(a)};r.Rh=function(a){this.h.delete(a)};
178
+ r.xg=function(){this.h.clear()};function of(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}}r.destroy=function(){this.i=!0;this.g.clear();this.h.clear();ef.prototype.release.call(this);return this.m.destroy()};
179
179
  r.request=function(a,b,c){var d=this,e=new pf;if(this.i){var f=Promise.reject(new P(2,7,7001));f.catch(function(){});return new qf(f,function(){return Promise.resolve()},e)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?ff(b.retryParameters):Te();b.uris=ff(b.uris);f=rf(this,a,b,c);var g=f.na(function(){return sf(d,a,b,c,new Se(b.retryParameters,!1),0,null,e)}),h=g.na(function(q){return tf(d,a,q,c)}),k=Date.now(),l=0;f.promise.then(function(){l=Date.now()-k},function(){});
180
- var m=0;g.promise.then(function(){m=Date.now()},function(){});var n=h.na(function(q){var p=Date.now()-m,u=q.response;u.timeMs+=l;u.timeMs+=p;q.fh||!d.l||u.fromCache||"HEAD"==b.method||a!=uf||d.l(u.timeMs,u.data.byteLength,vf(c));return u},function(q){q&&(q.severity=2);throw q;});f=new qf(n.promise,function(){return n.abort()},e);jf(this.m,f);return f};
180
+ var m=0;g.promise.then(function(){m=Date.now()},function(){});var n=h.na(function(q){var p=Date.now()-m,u=q.response;u.timeMs+=l;u.timeMs+=p;q.eh||!d.l||u.fromCache||"HEAD"==b.method||a!=uf||d.l(u.timeMs,u.data.byteLength,vf(c));return u},function(q){q&&(q.severity=2);throw q;});f=new qf(n.promise,function(){return n.abort()},e);jf(this.m,f);return f};
181
181
  function rf(a,b,c,d){function e(h){f=f.na(function(){c.body&&(c.body=tb(c.body));return h(b,c,d)})}var f=Ze(void 0);a.u&&e(a.u);a=t(a.g);for(var g=a.next();!g.done;g=a.next())e(g.value);return f.na(void 0,function(h){if(h instanceof P&&7001==h.code)throw h;throw new P(2,1,1006,h);})}
182
- function sf(a,b,c,d,e,f,g,h){a.o&&(c.uris[f]=c.uris[f].replace("http://","https://"));0<f&&a.A&&a.A(b,d,c.uris[f],c.uris[f-1]);var k=new mc(c.uris[f]),l=k.Za,m=!1;l||(l=location.protocol,l=l.slice(0,-1),nc(k,l),c.uris[f]=k.toString());l=l.toLowerCase();var n=(l=nf[l])?l.Qd:null;if(!n)return Xe(new P(2,1,1E3,k));var q=l.xh,p=null,u=null,v=!1,y=!1,z;return $e(Ue(e)).na(function(){if(a.i)return Ye();z=Date.now();var x=n(c.uris[f],c,b,function(D,E,J){p&&p.stop();u&&u.U(B/1E3);a.l&&b==uf&&(a.l(D,E,vf(d)),
183
- m=!0,h.g=J)},function(D){a.j&&a.j(D,c,b);y=!0});if(!q)return x;var A=c.retryParameters.connectionTimeout;A&&(p=new qd(function(){v=!0;x.abort()}),p.U(A/1E3));var B=c.retryParameters.stallTimeout;B&&(u=new qd(function(){v=!0;x.abort()}));return x}).na(function(x){p&&p.stop();u&&u.stop();void 0==x.timeMs&&(x.timeMs=Date.now()-z);var A={response:x,fh:m};!y&&a.j&&a.j(x.headers,c,b);return A},function(x){p&&p.stop();u&&u.stop();if(a.s){var A=null,B=0;x instanceof P&&(A=x,1001==x.code&&(B=x.data[1]));a.s(c,
182
+ function sf(a,b,c,d,e,f,g,h){a.o&&(c.uris[f]=c.uris[f].replace("http://","https://"));0<f&&a.A&&a.A(b,d,c.uris[f],c.uris[f-1]);var k=new mc(c.uris[f]),l=k.Za,m=!1;l||(l=location.protocol,l=l.slice(0,-1),nc(k,l),c.uris[f]=k.toString());l=l.toLowerCase();var n=(l=nf[l])?l.Qd:null;if(!n)return Xe(new P(2,1,1E3,k));var q=l.wh,p=null,u=null,v=!1,y=!1,z;return $e(Ue(e)).na(function(){if(a.i)return Ye();z=Date.now();var x=n(c.uris[f],c,b,function(D,E,J){p&&p.stop();u&&u.U(B/1E3);a.l&&b==uf&&(a.l(D,E,vf(d)),
183
+ m=!0,h.g=J)},function(D){a.j&&a.j(D,c,b);y=!0});if(!q)return x;var A=c.retryParameters.connectionTimeout;A&&(p=new qd(function(){v=!0;x.abort()}),p.U(A/1E3));var B=c.retryParameters.stallTimeout;B&&(u=new qd(function(){v=!0;x.abort()}));return x}).na(function(x){p&&p.stop();u&&u.stop();void 0==x.timeMs&&(x.timeMs=Date.now()-z);var A={response:x,eh:m};!y&&a.j&&a.j(x.headers,c,b);return A},function(x){p&&p.stop();u&&u.stop();if(a.s){var A=null,B=0;x instanceof P&&(A=x,1001==x.code&&(B=x.data[1]));a.s(c,
184
184
  A,B,v)}if(a.i)return Ye();v&&(x=new P(1,1,1003,c.uris[f],b));if(x instanceof P){if(7001==x.code)throw x;if(1010==x.code)throw g;if(1==x.severity)return A=(new Map).set("error",x),A=new Q("retry",A),a.dispatchEvent(A),f=(f+1)%c.uris.length,sf(a,b,c,d,e,f,x,h)}throw x;})}
185
185
  function tf(a,b,c,d){var e=Ze(void 0),f={};a=t(a.h);for(var g=a.next();!g.done;f={Zd:f.Zd},g=a.next())f.Zd=g.value,e=e.na(function(h){return function(){var k=c.response;k.data&&(k.data=tb(k.data));return h.Zd(b,k,d)}}(f));return e.na(function(){return c},function(h){var k=2;if(h instanceof P){if(7001==h.code)throw h;k=h.severity}throw new P(k,1,1007,h);})}function vf(a){if(a){var b=a.segment;a=a.stream;if(b&&a&&a.fastSwitching&&b.C&&!b.A)return!1}return!0}N("shaka.net.NetworkingEngine",kf);
186
- kf.prototype.request=kf.prototype.request;kf.prototype.destroy=kf.prototype.destroy;kf.makeRequest=of;kf.defaultRetryParameters=function(){return Te()};kf.prototype.clearAllResponseFilters=kf.prototype.yg;kf.prototype.unregisterResponseFilter=kf.prototype.Sh;kf.prototype.registerResponseFilter=kf.prototype.zh;kf.prototype.clearAllRequestFilters=kf.prototype.xg;kf.prototype.unregisterRequestFilter=kf.prototype.Rh;kf.prototype.registerRequestFilter=kf.prototype.yh;kf.unregisterScheme=function(a){delete nf[a]};
187
- kf.registerScheme=lf;kf.prototype.setForceHTTPS=kf.prototype.hf;function pf(){this.g=0}kf.NumBytesRemainingClass=pf;function qf(a,b,c){We.call(this,a,b);this.h=c}pa(qf,We);kf.PendingRequest=qf;var uf=1;kf.RequestType={MANIFEST:0,SEGMENT:uf,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8};kf.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5};var mf=3;kf.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:mf};var nf={};function wf(a){this.g=!1;this.h=new Ve;this.i=a}wf.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 xf(a,b){if(a.g){if(b instanceof P&&7003==b.code)throw b;throw new P(2,7,7003,b);}};function yf(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c}function zf(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0};function Af(a){this.h=a;this.g=void 0}Af.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Bf(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 Cf(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function Df(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;a=t(a);for(var c=a.next();!c.done;c=a.next()){var d=t(c.value);c=d.next().value;d=d.next().value;if(!b.has(c))return!1;c=b.get(c);if(c!=d||void 0==c)return!1}return!0};function Ef(){}
186
+ kf.prototype.request=kf.prototype.request;kf.prototype.destroy=kf.prototype.destroy;kf.makeRequest=of;kf.defaultRetryParameters=function(){return Te()};kf.prototype.clearAllResponseFilters=kf.prototype.xg;kf.prototype.unregisterResponseFilter=kf.prototype.Rh;kf.prototype.registerResponseFilter=kf.prototype.yh;kf.prototype.clearAllRequestFilters=kf.prototype.wg;kf.prototype.unregisterRequestFilter=kf.prototype.Qh;kf.prototype.registerRequestFilter=kf.prototype.xh;kf.unregisterScheme=function(a){delete nf[a]};
187
+ kf.registerScheme=lf;kf.prototype.setForceHTTPS=kf.prototype.gf;function pf(){this.g=0}kf.NumBytesRemainingClass=pf;function qf(a,b,c){We.call(this,a,b);this.h=c}pa(qf,We);kf.PendingRequest=qf;var uf=1;kf.RequestType={MANIFEST:0,SEGMENT:uf,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8};kf.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5};var mf=3;kf.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:mf};var nf={};function wf(a){this.g=!1;this.h=new Ve;this.i=a}wf.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 xf(a,b){if(a.g){if(b instanceof P&&7003==b.code)throw b;throw new P(2,7,7003,b);}};function yf(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c}function zf(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0};function Af(a){this.h=a;this.g=void 0}Af.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Bf(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 Cf(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function Df(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;a=t(a);for(var c=a.next();!c.done;c=a.next()){var d=t(c.value);c=d.next().value;d=d.next().value;if(!b.has(c))return!1;c=b.get(c);if(c!=d||void 0==c)return!1}return!0};function Ef(){}
188
188
  function Ff(a){if(!a)return"";a=sb(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if(window.TextDecoder&&!Ed())return a=(new TextDecoder).decode(a),a.includes("\ufffd")&&Ta('Decoded string contains an "unknown character" codepoint. That probably means the UTF8 encoding was incorrect!'),a;for(var b="",c=0;c<a.length;++c){var d=65533;0==(a[c]&128)?d=a[c]:a.length>=c+2&&192==(a[c]&224)&&128==(a[c+1]&192)?(d=(a[c]&31)<<6|a[c+1]&63,c+=1):a.length>=c+3&&224==(a[c]&240)&&128==(a[c+1]&192)&&128==
189
189
  (a[c+2]&192)?(d=(a[c]&15)<<12|(a[c+1]&63)<<6|a[c+2]&63,c+=2):a.length>=c+4&&240==(a[c]&241)&&128==(a[c+1]&192)&&128==(a[c+2]&192)&&128==(a[c+3]&192)&&(d=(a[c]&7)<<18|(a[c+1]&63)<<12|(a[c+2]&63)<<6|a[c+3]&63,c+=3);if(65535>=d)b+=String.fromCharCode(d);else{d-=65536;var e=d&1023;b+=String.fromCharCode(55296+(d>>10));b+=String.fromCharCode(56320+e)}}return b}
190
190
  function Gf(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new P(2,2,2004);c=Math.floor(a.byteLength/2);var d=new Uint16Array(c);a=yb(a);for(var e=0;e<c;e++)d[e]=a.getUint16(2*e,b);return Hf(d)}
191
191
  function If(a){function b(d){return c.byteLength<=d||32<=c[d]&&126>=c[d]}if(!a)return"";var c=sb(a);if(239==c[0]&&187==c[1]&&191==c[2])return Ff(c);if(254==c[0]&&255==c[1])return Gf(c.subarray(2),!1);if(255==c[0]&&254==c[1])return Gf(c.subarray(2),!0);if(0==c[0]&&0==c[2])return Gf(a,!1);if(0==c[1]&&0==c[3])return Gf(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return Ff(a);throw new P(2,2,2003);}
192
192
  function Jf(a){if(window.TextEncoder&&!Ed()){var b=new TextEncoder;return tb(b.encode(a))}a=encodeURIComponent(a);a=unescape(a);b=new Uint8Array(a.length);for(var c=0;c<a.length;c++)b[c]=a[c].charCodeAt(0);return tb(b)}function Kf(a,b){for(var c=new ArrayBuffer(2*a.length),d=new DataView(c),e=0;e<a.length;++e)d.setUint16(2*e,a.charCodeAt(e),b);return c}function Hf(a){return Mf.value()(a)}N("shaka.util.StringUtils",Ef);Ef.resetFromCharCode=function(){Mf.g=void 0};Ef.toUTF16=Kf;Ef.toUTF8=Jf;
193
193
  Ef.fromBytesAutoDetect=If;Ef.fromUTF16=Gf;Ef.fromUTF8=Ff;var Mf=new Af(function(){function a(c){try{var d=new Uint8Array(c);return 0<String.fromCharCode.apply(null,d).length}catch(e){return!1}}for(var b={ub:65536};0<b.ub;b={ub:b.ub},b.ub/=2)if(a(b.ub))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.ub)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.ub));return e}}(b);return null});function Nf(a,b){this.h=yb(a);this.i=b==Of;this.g=0}r=Nf.prototype;r.ea=function(){return this.g<this.h.byteLength};r.oa=function(){return this.g};r.getLength=function(){return this.h.byteLength};r.fa=function(){try{var a=this.h.getUint8(this.g);this.g+=1;return a}catch(b){throw Pf();}};r.wa=function(){try{var a=this.h.getUint16(this.g,this.i);this.g+=2;return a}catch(b){throw Pf();}};r.L=function(){try{var a=this.h.getUint32(this.g,this.i);this.g+=4;return a}catch(b){throw Pf();}};
194
- r.Wf=function(){try{var a=this.h.getInt32(this.g,this.i);this.g+=4;return a}catch(b){throw Pf();}};r.lc=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 Pf();}if(2097151<b)throw new P(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};r.pb=function(a){if(this.g+a>this.h.byteLength)throw Pf();var b=sb(this.h,this.g,a);this.g+=a;return b};
195
- r.skip=function(a){if(this.g+a>this.h.byteLength)throw Pf();this.g+=a};r.Gh=function(a){if(this.g<a)throw Pf();this.g-=a};r.seek=function(a){if(0>a||a>this.h.byteLength)throw Pf();this.g=a};r.Yc=function(){for(var a=this.g;this.ea()&&0!=this.h.getUint8(this.g);)this.g+=1;a=sb(this.h,a,this.g-a);this.g+=1;return Ff(a)};function Pf(){return new P(2,3,3E3)}N("shaka.util.DataViewReader",Nf);Nf.prototype.readTerminatedString=Nf.prototype.Yc;Nf.prototype.seek=Nf.prototype.seek;Nf.prototype.rewind=Nf.prototype.Gh;
196
- Nf.prototype.skip=Nf.prototype.skip;Nf.prototype.readBytes=Nf.prototype.pb;Nf.prototype.readUint64=Nf.prototype.lc;Nf.prototype.readInt32=Nf.prototype.Wf;Nf.prototype.readUint32=Nf.prototype.L;Nf.prototype.readUint16=Nf.prototype.wa;Nf.prototype.readUint8=Nf.prototype.fa;Nf.prototype.getLength=Nf.prototype.getLength;Nf.prototype.getPosition=Nf.prototype.oa;Nf.prototype.hasMoreData=Nf.prototype.ea;var Of=1;Nf.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Of};function Qf(){this.i=[];this.h=[];this.g=!1}r=Qf.prototype;r.box=function(a,b){a=Rf(a);this.i[a]=Sf;this.h[a]=b;return this};r.O=function(a,b){a=Rf(a);this.i[a]=Tf;this.h[a]=b;return this};r.stop=function(){this.g=!0};r.parse=function(a,b,c){a=new Nf(a,0);for(this.g=!1;a.ea()&&!this.g;)this.jc(0,a,b,c)};
194
+ r.Vf=function(){try{var a=this.h.getInt32(this.g,this.i);this.g+=4;return a}catch(b){throw Pf();}};r.lc=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 Pf();}if(2097151<b)throw new P(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};r.pb=function(a){if(this.g+a>this.h.byteLength)throw Pf();var b=sb(this.h,this.g,a);this.g+=a;return b};
195
+ r.skip=function(a){if(this.g+a>this.h.byteLength)throw Pf();this.g+=a};r.Fh=function(a){if(this.g<a)throw Pf();this.g-=a};r.seek=function(a){if(0>a||a>this.h.byteLength)throw Pf();this.g=a};r.Yc=function(){for(var a=this.g;this.ea()&&0!=this.h.getUint8(this.g);)this.g+=1;a=sb(this.h,a,this.g-a);this.g+=1;return Ff(a)};function Pf(){return new P(2,3,3E3)}N("shaka.util.DataViewReader",Nf);Nf.prototype.readTerminatedString=Nf.prototype.Yc;Nf.prototype.seek=Nf.prototype.seek;Nf.prototype.rewind=Nf.prototype.Fh;
196
+ Nf.prototype.skip=Nf.prototype.skip;Nf.prototype.readBytes=Nf.prototype.pb;Nf.prototype.readUint64=Nf.prototype.lc;Nf.prototype.readInt32=Nf.prototype.Vf;Nf.prototype.readUint32=Nf.prototype.L;Nf.prototype.readUint16=Nf.prototype.wa;Nf.prototype.readUint8=Nf.prototype.fa;Nf.prototype.getLength=Nf.prototype.getLength;Nf.prototype.getPosition=Nf.prototype.oa;Nf.prototype.hasMoreData=Nf.prototype.ea;var Of=1;Nf.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Of};function Qf(){this.i=[];this.h=[];this.g=!1}r=Qf.prototype;r.box=function(a,b){a=Rf(a);this.i[a]=Sf;this.h[a]=b;return this};r.O=function(a,b){a=Rf(a);this.i[a]=Tf;this.h[a]=b;return this};r.stop=function(){this.g=!0};r.parse=function(a,b,c){a=new Nf(a,0);for(this.g=!1;a.ea()&&!this.g;)this.jc(0,a,b,c)};
197
197
  r.jc=function(a,b,c,d){var e=b.oa();if(d&&e+8>b.getLength())this.g=!0;else{var f=b.L(),g=b.L(),h=Uf(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.lc();k=!0}var l=this.h[g];if(l){var m=null,n=null;if(this.i[g]==Tf){if(d&&b.oa()+4>b.getLength()){this.g=!0;return}n=b.L();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.pb(d):new Uint8Array(0),b=new Nf(b,0),l({name:h,parser:this,
198
198
  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 Vf(a){for(var b=Wf(a);a.reader.ea()&&!a.parser.g;)a.parser.jc(a.start+b,a.reader,a.partialOkay)}function Xf(a){for(var b=Wf(a),c=a.reader.L(),d=0;d<c&&(a.parser.jc(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function Yf(a){var b=Wf(a);for(a.reader.skip(78);a.reader.ea()&&!a.parser.g;)a.parser.jc(a.start+b,a.reader,a.partialOkay)}
199
199
  function Zf(a){var b=Wf(a);a.reader.skip(8);var c=a.reader.wa();a.reader.skip(6);2==c?a.reader.skip(48):a.reader.skip(12);for(1==c&&a.reader.skip(16);a.reader.ea()&&!a.parser.g;)a.parser.jc(a.start+b,a.reader,a.partialOkay)}function $f(a){return function(b){a(b.reader.pb(b.reader.getLength()-b.reader.oa()))}}function Rf(a){var b=0;a=t(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function Uf(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}
@@ -231,9 +231,9 @@ function gh(a,b){var c,d,e,f,g,h,k,l,m,n,q,p,u,v,y;return K(function(z){switch(z
231
231
  z.h,z.return(c);case 6:wa(z);case 7:xf(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}q=n.value;p=t(b.keys());h=p.next();case 12:if(h.done){n=m.next();z.B(9);break}u=h.value;v=b.get(u);y=v.drmInfos.some(function(x){return!!x.licenseServerUri});if(y!=q){z.B(13);break}ta(z,15);return C(z,navigator.requestMediaKeySystemAccess(u,[v]),17);case 17:return c=z.h,z.return(c);case 15:wa(z);case 16:xf(a.j);case 13:h=p.next();z.B(12);break;case 11:return z.return(c)}})}
232
232
  function Pg(a){a=Bf(a.h.clearKeys);if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=f;22!=g.length&&(g=cg(eg(f),!1));f=e;22!=f.length&&(f=cg(eg(e),!1));e={kty:"oct",kid:g,k:f};b.push(e);c.push(e.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:sb(Jf(d)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",
233
233
  videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:d,keyIds:new Set(c)}}function ih(a){bh(a)&&a.l.resolve()}function jh(a,b){(new qd(function(){b.loaded=!0;ih(a)})).U(kh)}
234
- function $g(a,b,c){var d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:try{d=a.s.createSession("persistent-license")}catch(n){return e=new P(2,6,6005,n.message),a.o(e),m.return(Promise.reject(e))}a.A.D(d,"message",function(n){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.N?a.J.push(n):Wg(a,n)});a.A.D(d,"keystatuseschange",function(n){return lh(a,n)});f={initData:c.initData,initDataType:c.initDataType,loaded:!1,Ue:Infinity,fb:null,type:"persistent-license"};a.i.set(d,f);ta(m,2);return C(m,
234
+ function $g(a,b,c){var d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:try{d=a.s.createSession("persistent-license")}catch(n){return e=new P(2,6,6005,n.message),a.o(e),m.return(Promise.reject(e))}a.A.D(d,"message",function(n){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.N?a.J.push(n):Wg(a,n)});a.A.D(d,"keystatuseschange",function(n){return lh(a,n)});f={initData:c.initData,initDataType:c.initDataType,loaded:!1,Te:Infinity,fb:null,type:"persistent-license"};a.i.set(d,f);ta(m,2);return C(m,
235
235
  d.load(b),4);case 4:return g=m.h,xf(a.j),g||(a.i.delete(d),h=a.h.persistentSessionOnlinePlayback?1:2,a.o(new P(h,6,6013)),f.loaded=!0),jh(a,f),ih(a),m.return(d);case 2:k=wa(m),xf(a.j,k),a.i.delete(d),l=a.h.persistentSessionOnlinePlayback?1:2,a.o(new P(l,6,6005,k.message)),f.loaded=!0,ih(a);case 3:return m.return(Promise.resolve())}})}
236
- function ch(a,b,c,d){try{var e=a.s.createSession(d)}catch(f){a.o(new P(2,6,6005,f.message));return}a.A.D(e,"message",function(f){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.N?a.J.push(f):Wg(a,f)});a.A.D(e,"keystatuseschange",function(f){return lh(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,Ue:Infinity,fb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof P||(b=new P(2,6,6016,f));a.o(b);return}a.h.logLicenseExchange&&cg(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);
236
+ function ch(a,b,c,d){try{var e=a.s.createSession(d)}catch(f){a.o(new P(2,6,6005,f.message));return}a.A.D(e,"message",function(f){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.N?a.J.push(f):Wg(a,f)});a.A.D(e,"keystatuseschange",function(f){return lh(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,Te:Infinity,fb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof P||(b=new P(2,6,6016,f));a.o(b);return}a.h.logLicenseExchange&&cg(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);
237
237
  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.o(new P(2,6,6006,f.message,f,h))}})}
238
238
  function Wg(a,b){var c,d,e,f,g,h,k,l,m,n,q,p,u;K(function(v){switch(v.g){case 1:c=b.target;a.h.logLicenseExchange&&cg(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=of([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(dh(a.g.keySystem)){var y=
239
239
  Gf(g.body,!0,!0);if(y.includes("PlayReadyKeyMessage")){y=Cg(y,"PlayReadyKeyMessage");for(var z=t(y.getElementsByTagName("HttpHeader")),x=z.next();!x.done;x=z.next())x=x.value,g.headers[x.getElementsByTagName("name")[0].textContent]=x.getElementsByTagName("value")[0].textContent;g.body=dg(y.getElementsByTagName("Challenge")[0].textContent)}else g.headers["Content-Type"]="text/xml; charset=utf-8"}h=Date.now();ta(v,2);l=a.C.Pb.request(2,g);return C(v,l.promise,4);case 4:k=v.h;va(v,3);break;case 2:return m=
@@ -246,22 +246,22 @@ function oh(a){var b;return K(function(c){if(1==c.g)return b=new Promise(functio
246
246
  function Jg(a){var b;return K(function(c){b=Array.from(a.i.entries());a.i.clear();return C(c,Promise.all(b.map(function(d){d=t(d);var e=d.next().value,f=d.next().value;return K(function(g){if(1==g.g)return ta(g,2),a.la||a.u.has(e.sessionId)||"persistent-license"!==f.type||a.h.persistentSessionOnlinePlayback?C(g,oh(e),5):C(g,e.remove(),5);if(2!=g.g)return va(g,0);wa(g);F(g)})})),0)})}function qh(a,b){return a.length&&b.length&&a!==b?0<rh(a,b).length:!0}
247
247
  function rh(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(w(d.keyIds),w(f.keyIds))):d.keyIds||f.keyIds;c.push({keySystem:d.keySystem,licenseServerUri:d.licenseServerUri||
248
248
  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}
249
- function Rg(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function Hg(a){a.i.forEach(function(b,c){var d=b.Ue,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.C.onExpirationUpdated(c.sessionId,e),b.Ue=e)})}function bh(a){a=a.i.values();return zf(a,function(b){return b.loaded})}function ah(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}
249
+ function Rg(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function Hg(a){a.i.forEach(function(b,c){var d=b.Te,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.C.onExpirationUpdated(c.sessionId,e),b.Te=e)})}function bh(a){a=a.i.values();return zf(a,function(b){return b.loaded})}function ah(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}
250
250
  function Qg(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)}
251
251
  function hh(a,b,c,d,e,f){var g={};a=t(a);for(var h=a.next();!h.done;g={Ca:g.Ca},h=a.next()){g.Ca=h.value;b.includes(g.Ca.licenseServerUri)||b.push(g.Ca.licenseServerUri);d.includes(g.Ca.serverCertificateUri)||d.push(g.Ca.serverCertificateUri);g.Ca.serverCertificate&&(c.some(function(m){return function(n){return qb(n,m.Ca.serverCertificate)}}(g))||c.push(g.Ca.serverCertificate));if(g.Ca.initData){h={};for(var k=t(g.Ca.initData),l=k.next();!l.done;h={gd:h.gd},l=k.next())h.gd=l.value,e.some(function(m){return function(n){var q=
252
252
  m.gd;return n.keyId&&n.keyId==q.keyId?!0:n.initDataType==q.initDataType&&qb(n.initData,q.initData)}}(h))||e.push(h.gd)}if(g.Ca.keyIds)for(h=t(g.Ca.keyIds),k=h.next();!k.done;k=h.next())f.add(k.value)}}
253
253
  function Sg(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=
254
- 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 ph=1,kh=5,mh=.5,sh=new Af(function(){return tb(new Uint8Array([0]))});function uh(){}function vh(a,b){if(b){var c=wh[b.toLowerCase()];if(c)return c}throw new P(2,4,4E3,a,b);}N("shaka.media.ManifestParser",uh);uh.unregisterParserByMime=function(a){delete wh[a]};uh.registerParserByMime=function(a,b){wh[a]=b};uh.registerParserByExtension=function(){ve("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")};uh.AccessibilityPurpose={Ni:"visually impaired",ii:"hard of hearing"};var wh={};function xh(a){function b(){d=!0}function c(l){f.push(l);Vf(l)}a=sb(a);var d=!1,e,f=[],g=[];(new Qf).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).O("stsd",function(l){e=l;f.push(l);Xf(l)}).O("encv",b).O("enca",b).O("dvav",function(l){g.push({box:l,Ka:1701733238})}).O("dva1",function(l){g.push({box:l,Ka:1701733238})}).O("dvh1",function(l){g.push({box:l,Ka:1701733238})}).O("dvhe",function(l){g.push({box:l,Ka:1701733238})}).O("hev1",function(l){g.push({box:l,Ka:1701733238})}).O("hvc1",
254
+ 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 ph=1,kh=5,mh=.5,sh=new Af(function(){return tb(new Uint8Array([0]))});function uh(){}function vh(a,b){if(b){var c=wh[b.toLowerCase()];if(c)return c}throw new P(2,4,4E3,a,b);}N("shaka.media.ManifestParser",uh);uh.unregisterParserByMime=function(a){delete wh[a]};uh.registerParserByMime=function(a,b){wh[a]=b};uh.registerParserByExtension=function(){ve("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")};uh.AccessibilityPurpose={Mi:"visually impaired",hi:"hard of hearing"};var wh={};function xh(a){function b(){d=!0}function c(l){f.push(l);Vf(l)}a=sb(a);var d=!1,e,f=[],g=[];(new Qf).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).O("stsd",function(l){e=l;f.push(l);Xf(l)}).O("encv",b).O("enca",b).O("dvav",function(l){g.push({box:l,Ka:1701733238})}).O("dva1",function(l){g.push({box:l,Ka:1701733238})}).O("dvh1",function(l){g.push({box:l,Ka:1701733238})}).O("dvhe",function(l){g.push({box:l,Ka:1701733238})}).O("hev1",function(l){g.push({box:l,Ka:1701733238})}).O("hvc1",
255
255
  function(l){g.push({box:l,Ka:1701733238})}).O("avc1",function(l){g.push({box:l,Ka:1701733238})}).O("avc3",function(l){g.push({box:l,Ka:1701733238})}).O("ac-3",function(l){g.push({box:l,Ka:1701733217})}).O("ec-3",function(l){g.push({box:l,Ka:1701733217})}).O("ac-4",function(l){g.push({box:l,Ka:1701733217})}).O("mp4a",function(l){g.push({box:l,Ka:1701733217})}).parse(a);if(d)return a;if(0==g.length||!e)throw bb(fg(a)),new P(2,3,3019);g.reverse();for(var h=t(g),k=h.next();!k.done;k=h.next())k=k.value,
256
256
  a=yh(a,e,k.box,f,k.Ka);return a}
257
257
  function yh(a,b,c,d,e){var f=zh.value(),g=a.subarray(c.start,c.start+c.size),h=yb(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=yb(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);Ah(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=vd()?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,Ah(e,d.start,d.size+k.byteLength);k=yb(e,b.start);b=Wf(b);a=k.getUint32(b);
258
258
  k.setUint32(b,a+1);return e}function Ah(a,b,c){a=yb(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 zh=new Af(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 Bh(a,b,c,d,e,f,g){this.Y=a;this.Oa=b;this.ua=c;this.Qe=void 0===d?null:d;this.timescale=void 0===e?null:e;this.g=void 0===f?null:f;this.aes128Key=void 0===g?null:g}Bh.prototype.cc=function(){return this.Oa};Bh.prototype.ac=function(){return this.ua};function Ch(a,b){return a===b?!0:a&&b?a.cc()==b.cc()&&a.ac()==b.ac()&&Hb(a.Y().sort(),b.Y().sort())&&qb(a.g,b.g):a==b}N("shaka.media.InitSegmentReference",Bh);Bh.prototype.getEndByte=Bh.prototype.ac;Bh.prototype.getStartByte=Bh.prototype.cc;
259
- function R(a,b,c,d,e,f,g,h,k,l,m,n,q,p,u,v){l=void 0===l?[]:l;p=void 0===p?Dh:p;this.startTime=a;this.j=this.endTime=b;this.H=c;this.Oa=d;this.ua=e;this.h=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.i=l;this.tilesLayout=void 0===m?"":m;this.G=void 0===n?null:n;this.g=void 0===q?null:q;this.status=p;this.o=!1;this.m=!0;this.s=!1;this.aes128Key=void 0===u?null:u;this.F=null;this.l=0;this.u=void 0===v?!1:v;this.A=this.C=!1;a=t(this.i);for(b=a.next();!b.done;b=a.next())b.value.Rf();
260
- this.u&&this.i.length&&this.i[this.i.length-1].Qf()}r=R.prototype;r.Y=function(){return this.H()};r.getStartTime=function(){return this.startTime};r.Kg=function(){return this.endTime};r.cc=function(){return this.Oa};r.ac=function(){return this.ua};r.$g=function(){return this.tilesLayout};r.Zg=function(){return this.G};r.Lb=function(){return this.status};r.qh=function(){this.status=Eh};r.Pe=function(){this.o=!0};r.mh=function(){return this.o};r.Jd=function(){this.m=!1};r.jh=function(){return this.m};
261
- r.Rf=function(){this.C=!0};r.lh=function(){return this.C};r.Qf=function(){this.A=!0};r.kh=function(){return this.A};r.Pf=function(){this.s=!0};r.gh=function(){return this.s};r.gg=function(a){this.F=a};r.Yg=function(){return this.F};r.offset=function(a){this.startTime+=a;this.endTime+=a;this.j+=a;for(var b=t(this.i),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.j+=a};
262
- r.lf=function(a){null==this.g?Ta("Sync attempted without sync time!"):(a=this.g-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};N("shaka.media.SegmentReference",R);R.prototype.syncAgainst=R.prototype.lf;R.prototype.offset=R.prototype.offset;R.prototype.getThumbnailSprite=R.prototype.Yg;R.prototype.setThumbnailSprite=R.prototype.gg;R.prototype.hasByterangeOptimization=R.prototype.gh;R.prototype.markAsByterangeOptimization=R.prototype.Pf;R.prototype.isLastPartial=R.prototype.kh;
263
- R.prototype.markAsLastPartial=R.prototype.Qf;R.prototype.isPartial=R.prototype.lh;R.prototype.markAsPartial=R.prototype.Rf;R.prototype.isIndependent=R.prototype.jh;R.prototype.markAsNonIndependent=R.prototype.Jd;R.prototype.isPreload=R.prototype.mh;R.prototype.markAsPreload=R.prototype.Pe;R.prototype.markAsUnavailable=R.prototype.qh;R.prototype.getStatus=R.prototype.Lb;R.prototype.getTileDuration=R.prototype.Zg;R.prototype.getTilesLayout=R.prototype.$g;R.prototype.getEndByte=R.prototype.ac;
264
- R.prototype.getStartByte=R.prototype.cc;R.prototype.getEndTime=R.prototype.Kg;R.prototype.getStartTime=R.prototype.getStartTime;R.prototype.getUris=R.prototype.Y;var Dh=0,Eh=1;R.Status={Wh:Dh,Li:Eh,oi:2};function Fh(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Gh(a,b){return!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0)||b>a.end(a.length-1)?!1:b>=a.start(0)}function Hh(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;var c=0;a=t(Ih(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}
259
+ function R(a,b,c,d,e,f,g,h,k,l,m,n,q,p,u,v){l=void 0===l?[]:l;p=void 0===p?Dh:p;this.startTime=a;this.j=this.endTime=b;this.H=c;this.Oa=d;this.ua=e;this.h=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.i=l;this.tilesLayout=void 0===m?"":m;this.G=void 0===n?null:n;this.g=void 0===q?null:q;this.status=p;this.o=!1;this.m=!0;this.s=!1;this.aes128Key=void 0===u?null:u;this.F=null;this.l=0;this.u=void 0===v?!1:v;this.A=this.C=!1;a=t(this.i);for(b=a.next();!b.done;b=a.next())b.value.Qf();
260
+ this.u&&this.i.length&&this.i[this.i.length-1].Pf()}r=R.prototype;r.Y=function(){return this.H()};r.getStartTime=function(){return this.startTime};r.Jg=function(){return this.endTime};r.cc=function(){return this.Oa};r.ac=function(){return this.ua};r.Zg=function(){return this.tilesLayout};r.Yg=function(){return this.G};r.Lb=function(){return this.status};r.ph=function(){this.status=Eh};r.Pe=function(){this.o=!0};r.lh=function(){return this.o};r.Jd=function(){this.m=!1};r.ih=function(){return this.m};
261
+ r.Qf=function(){this.C=!0};r.kh=function(){return this.C};r.Pf=function(){this.A=!0};r.jh=function(){return this.A};r.Of=function(){this.s=!0};r.fh=function(){return this.s};r.fg=function(a){this.F=a};r.Xg=function(){return this.F};r.offset=function(a){this.startTime+=a;this.endTime+=a;this.j+=a;for(var b=t(this.i),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.j+=a};
262
+ r.kf=function(a){null==this.g?Ta("Sync attempted without sync time!"):(a=this.g-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};N("shaka.media.SegmentReference",R);R.prototype.syncAgainst=R.prototype.kf;R.prototype.offset=R.prototype.offset;R.prototype.getThumbnailSprite=R.prototype.Xg;R.prototype.setThumbnailSprite=R.prototype.fg;R.prototype.hasByterangeOptimization=R.prototype.fh;R.prototype.markAsByterangeOptimization=R.prototype.Of;R.prototype.isLastPartial=R.prototype.jh;
263
+ R.prototype.markAsLastPartial=R.prototype.Pf;R.prototype.isPartial=R.prototype.kh;R.prototype.markAsPartial=R.prototype.Qf;R.prototype.isIndependent=R.prototype.ih;R.prototype.markAsNonIndependent=R.prototype.Jd;R.prototype.isPreload=R.prototype.lh;R.prototype.markAsPreload=R.prototype.Pe;R.prototype.markAsUnavailable=R.prototype.ph;R.prototype.getStatus=R.prototype.Lb;R.prototype.getTileDuration=R.prototype.Yg;R.prototype.getTilesLayout=R.prototype.Zg;R.prototype.getEndByte=R.prototype.ac;
264
+ R.prototype.getStartByte=R.prototype.cc;R.prototype.getEndTime=R.prototype.Jg;R.prototype.getStartTime=R.prototype.getStartTime;R.prototype.getUris=R.prototype.Y;var Dh=0,Eh=1;R.Status={Vh:Dh,Ki:Eh,ni:2};function Fh(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Gh(a,b){return!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0)||b>a.end(a.length-1)?!1:b>=a.start(0)}function Hh(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;var c=0;a=t(Ih(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}
265
265
  function Jh(a,b,c){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;a=Ih(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}function Ih(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};/*
266
266
  @license
267
267
  Shaka Player
@@ -273,8 +273,8 @@ function Oh(a){var b={key:a.type,description:"",data:"",mimeType:null,pictureTyp
273
273
  d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=Ff(sb(a.data,1,d));a=Ff(sb(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b}if("WXXX"===a.type){if(2>a.size||3!==a.data[0])return null;d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=Ff(sb(a.data,1,d));a=Ff(sb(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b}if("PRIV"===a.type){if(2>a.size)return null;c=a.data.indexOf(0);if(-1===c)return null;c=Ff(sb(a.data,0,c));b.description=c;"com.apple.streaming.transportStreamTimestamp"==
274
274
  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=tb(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=Ff(a.data.subarray(1)).replace(/\0*$/,"");b.data=a;return b}return"W"===a.type[0]?(a=Ff(a.data).replace(/\0*$/,""),b.data=a,b):a.data?(b.data=tb(a.data),b):null}
275
275
  function Ph(a){for(var b=0,c=[];Lh(a,b);){var d=Nh(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=Nh(e,4);e={type:String.fromCharCode(e[0],e[1],e[2],e[3]),size:f,data:e.subarray(10,10+f)};(f=Oh(e))&&c.push(f);b+=e.size+10}Mh(a,b)&&(b+=10)}return c}function Qh(a,b){for(var c=b=void 0===b?0:b,d=0;Lh(a,b);)a[b+5]>>6&1&&(d+=10),d+=10,d+=Nh(a,b+6),Mh(a,b+10)&&(d+=10),b+=d;return 0<d?a.subarray(c,c+d):new Uint8Array([])}N("shaka.util.Id3Utils",Kh);Kh.getID3Data=Qh;
276
- Kh.getID3Frames=Ph;function Rh(a,b){var c=null,d=null,e=null,f=a.L();b&1&&(e=a.lc());b&2&&a.skip(4);b&8&&(c=a.L());b&16&&(d=a.L());return{trackId:f,Df:c,Cg:d,Pi:e}}function Sh(a,b){return 1==b?(b=a.L(),a=a.L(),{baseMediaDecodeTime:b*Math.pow(2,32)+a}):{baseMediaDecodeTime:a.L()}}function Th(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));b=a.L();a.skip(4);a=a.wa();return{timescale:b,language:String.fromCharCode((a>>10)+96)+String.fromCharCode(((a&960)>>5)+96)+String.fromCharCode((a&31)+96)}}
277
- function Uh(a,b,c){var d=a.L(),e=[],f=null;c&1&&(f=a.L());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={bf:null,sampleSize:null,Rd:null};c&256&&(h.bf=a.L());c&512&&(h.sampleSize=a.L());c&1024&&a.skip(4);c&2048&&(h.Rd=0==b?a.L():a.Wf());e.push(h)}return{Ti:d,Zf:e,Bg:f}}
276
+ Kh.getID3Frames=Ph;function Rh(a,b){var c=null,d=null,e=null,f=a.L();b&1&&(e=a.lc());b&2&&a.skip(4);b&8&&(c=a.L());b&16&&(d=a.L());return{trackId:f,Cf:c,Bg:d,Oi:e}}function Sh(a,b){return 1==b?(b=a.L(),a=a.L(),{baseMediaDecodeTime:b*Math.pow(2,32)+a}):{baseMediaDecodeTime:a.L()}}function Th(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));b=a.L();a.skip(4);a=a.wa();return{timescale:b,language:String.fromCharCode((a>>10)+96)+String.fromCharCode(((a&960)>>5)+96)+String.fromCharCode((a&31)+96)}}
277
+ function Uh(a,b,c){var d=a.L(),e=[],f=null;c&1&&(f=a.L());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={af:null,sampleSize:null,Rd:null};c&256&&(h.af=a.L());c&512&&(h.sampleSize=a.L());c&1024&&a.skip(4);c&2048&&(h.Rd=0==b?a.L():a.Vf());e.push(h)}return{Si:d,Yf:e,Ag:f}}
278
278
  function Vh(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));var c=a.L();1==b?a.skip(8):a.skip(4);a.skip(4);a.skip(8);a.skip(2);a.skip(2);a.skip(2);a.skip(2);a.skip(36);b=a.wa()+a.wa()/16;a=a.wa()+a.wa()/16;return{trackId:c,width:b,height:a}}
279
279
  function Wh(a){for(var b="mp4a",c,d;a.ea();){c=a.fa();for(var e=a.fa();e&128;)e=a.fa();if(3==c)a.wa(),e=a.fa(),e&128&&a.wa(),e&64&&a.skip(a.fa()),e&32&&a.wa();else if(4==c)d=a.fa(),a.skip(12);else if(5==c)break}d&&(b+="."+this.g(d),5==c&&a.ea()&&(c=a.fa(),d=(c&248)>>3,31===d&&a.ea()&&(d=32+((c&7)<<3)+((a.fa()&224)>>5)),b+="."+d));return{ga:b}}function Xh(a,b){a.skip(87);return{ga:b+"."+this.g(a.fa())+this.g(a.fa())+this.g(a.fa())}}function Yh(a){a=a.L();return{ga:Uf(a)}};/*
280
280
 
@@ -300,19 +300,19 @@ 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
300
300
  l,g.audioCodec="aac");break;case 17:-1==g.audio&&(g.audio=l,g.audioCodec="aac-loas");break;case 21:-1==g.Gd&&(g.Gd=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");break;case 132:case 135:-1==g.audio&&(g.audio=l,g.audioCodec="ec3")}h+=m+5}f=g;-1!=f.video&&(this.H=f.video,this.m=f.videoCodec);-1!=f.audio&&(this.A=
301
301
  f.audio,this.u=f.audioCodec);-1!=f.Gd&&(this.C=f.Gd);d&&!this.G&&(d=!1,e=b-188);this.G=!0;break;case this.H: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.A: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);break;case this.C: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};
302
302
  function ki(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.s&&(a.s=e);c.pts=li(e,a.s);a.s=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.o&&(a.o=d),c.dts=li(d,
303
- a.o));a.o=c.dts}a=b[8]+9;if(b.byteLength<=a)return null;c.data=b.subarray(a);return c}r.wh=function(a){ve("TsParser.parseAvcNalus","Please use parseNalus function instead.");return this.Xe(a)};
304
- r.Xe=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 q=a[n];if(q){if(2<=g&&1==q){b&&!h.length&&-1==k&&(q=n-(3<g?3:g),c&&0!=q&&(q=a.subarray(0,q),b.data=gg(b.data,q),b.fullData=gg(b.fullData,q)));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=gg(b.data,k),b.fullData=gg(b.fullData,k)));if(n>=e-f)return h;
303
+ a.o));a.o=c.dts}a=b[8]+9;if(b.byteLength<=a)return null;c.data=b.subarray(a);return c}r.vh=function(a){ve("TsParser.parseAvcNalus","Please use parseNalus function instead.");return this.We(a)};
304
+ r.We=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 q=a[n];if(q){if(2<=g&&1==q){b&&!h.length&&-1==k&&(q=n-(3<g?3:g),c&&0!=q&&(q=a.subarray(0,q),b.data=gg(b.data,q),b.fullData=gg(b.fullData,q)));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=gg(b.data,k),b.fullData=gg(b.fullData,k)));if(n>=e-f)return h;
305
305
  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=gg(b.data,a),b.fullData=gg(b.fullData,a));return h};r.getMetadata=function(){for(var a=[],b=t(this.l),c=b.next();!c.done;c=b.next())c=gg.apply(ag,w(c.value)),(c=ki(this,c))&&a.push({cueTime:c.pts?c.pts/9E4:null,data:c.data,frames:Ph(c.data),dts:c.dts,pts:c.pts});return a};
306
306
  r.Ib=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=gg.apply(ag,w(c.value)),e=ki(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=gg(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};
307
- r.ec=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=gg.apply(ag,w(d.value)),f=ki(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=gg(d.data,e),this.g.push(d))}if(a){var g;c=t(this.g);for(d=c.next();!d.done;d=c.next())d=d.value,d.nalus=this.Xe(d,
307
+ r.ec=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=gg.apply(ag,w(d.value)),f=ki(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=gg(d.data,e),this.g.push(d))}if(a){var g;c=t(this.g);for(d=c.next();!d.done;d=c.next())d=d.value,d.nalus=this.We(d,
308
308
  g,void 0),d.nalus.length&&(g=d.nalus[d.nalus.length-1]);this.g=this.g.filter(function(h){return h.nalus.length})}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)};r.getStartTime=function(a){if("audio"==a){a=null;var b=this.Ib();b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4);return a}return"video"==a?(a=null,b=this.ec(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null};
309
- r.Oc=function(){return{audio:this.u,video:this.m}};r.Cd=function(){for(var a=[],b=t(this.ec()),c=b.next();!c.done;c=b.next())a.push.apply(a,w(c.value.nalus));return a};r.dh=function(){ve("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var a=this.De();return{height:a.height,width:a.width}};r.De=function(){return"hvc"==this.m?mi(this):ni(this)};
309
+ r.Oc=function(){return{audio:this.u,video:this.m}};r.Cd=function(){for(var a=[],b=t(this.ec()),c=b.next();!c.done;c=b.next())a.push.apply(a,w(c.value.nalus));return a};r.bh=function(){ve("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var a=this.De();return{height:a.height,width:a.width}};r.De=function(){return"hvc"==this.m?mi(this):ni(this)};
310
310
  function ni(a){var b={height:null,width:null,ga:null};a=a.Cd();if(!a.length)return b;a=a.find(function(q){return 7==q.type});if(!a)return b;a=new Zh(a.data);var c=fi(a),d=fi(a),e=fi(a);di(a);if(oi.includes(c)){var f=T(a);3===f&&ai(a,1);di(a);di(a);ai(a,1);if(U(a)){f=3!==f?8:12;for(var g=0;g<f;g++)U(a)&&(6>g?gi(a,16):gi(a,64))}}di(a);f=T(a);if(0===f)T(a);else if(1===f)for(ai(a,1),di(a),di(a),f=T(a),g=0;g<f;g++)di(a);di(a);ai(a,1);f=T(a);g=T(a);var h=bi(a,1);0===h&&ai(a,1);ai(a,1);var k=0,l=0,m=0,n=
311
311
  0;U(a)&&(k=T(a),l=T(a),m=T(a),n=T(a));b.height=String((2-h)*(g+1)*16-2*m-2*n);b.width=String(16*(f+1)-2*k-2*l);b.ga="avc1."+("0"+c.toString(16).toUpperCase()).slice(-2)+("0"+d.toString(16).toUpperCase()).slice(-2)+("0"+e.toString(16).toUpperCase()).slice(-2);return b}
312
312
  function mi(a){var b={height:null,width:null,ga:null};a=a.Cd();if(!a.length)return b;a=a.find(function(B){return 33==B.type});if(!a)return b;var c=new Zh(a.fullData,!0);fi(c);fi(c);bi(c,4);var d=bi(c,3);U(c);var e=bi(c,2),f=bi(c,1),g=bi(c,5),h=bi(c,32);a=fi(c);for(var k=fi(c),l=fi(c),m=fi(c),n=fi(c),q=fi(c),p=fi(c),u=[],v=[],y=0;y<d;y++)u.push(U(c)),v.push(U(c));if(0<d)for(y=d;8>y;y++)bi(c,2);for(y=0;y<d;y++)u[y]&&bi(c,88),v[y]&&fi(c);T(c);d=T(c);3==d&&bi(c,1);u=T(c);v=T(c);var z=y=0,x=0,A=0;U(c)&&
313
313
  (y+=T(c),z+=T(c),x+=T(c),A+=T(c));b.width=String(u-(y+z)*(1===d||2===d?2:1));b.height=String(v-(x+A)*(1===d?2:1));c=function(B){for(var D=0,E=0;32>E;E++)D|=(B>>E&1)<<31-E;return D>>>0}(h);f=1==f?"H":"L";e="hvc1"+("."+["","A","B","C"][e]+g);e+="."+c.toString(16).toUpperCase();e+="."+f+p;q&&(e+="."+q.toString(16).toUpperCase());n&&(e+="."+n.toString(16).toUpperCase());m&&(e+="."+m.toString(16).toUpperCase());l&&(e+="."+l.toString(16).toUpperCase());k&&(e+="."+k.toString(16).toUpperCase());a&&(e+="."+
314
- a.toString(16).toUpperCase());b.ga=e;return b}function li(a,b){var c=1;for(a>b&&(c=-1);4294967296<Math.abs(b-a);)a+=8589934592*c;return a}function pi(a){return 0>ji(a)?!1:!0}function ji(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}N("shaka.util.TsParser",ii);ii.syncOffset=ji;ii.probe=pi;ii.prototype.getVideoInfo=ii.prototype.De;ii.prototype.getVideoResolution=ii.prototype.dh;ii.prototype.getVideoNalus=ii.prototype.Cd;
315
- ii.prototype.getCodecs=ii.prototype.Oc;ii.prototype.getStartTime=ii.prototype.getStartTime;ii.prototype.getVideoData=ii.prototype.ec;ii.prototype.getAudioData=ii.prototype.Ib;ii.prototype.getMetadata=ii.prototype.getMetadata;ii.prototype.parseNalus=ii.prototype.Xe;ii.prototype.parseAvcNalus=ii.prototype.wh;ii.prototype.parse=ii.prototype.parse;ii.prototype.clearData=ii.prototype.clearData;ii.Timescale=9E4;var oi=[100,110,122,244,44,83,86,118,128,138,139,134];function qi(a,b,c){this.g=null;this.o=-1;this.l=a;this.i=b;this.m=c;this.j=!1;a:{"undefined"===typeof libDPIModule&&Ua("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,ve("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{Ua("Could not find LCEVC Library on this page");a=!1;break a}"undefined"===typeof this.h.SupportObject?(Ua("Could not find LCEVC Library on this page"),
314
+ a.toString(16).toUpperCase());b.ga=e;return b}function li(a,b){var c=1;for(a>b&&(c=-1);4294967296<Math.abs(b-a);)a+=8589934592*c;return a}function pi(a){return 0>ji(a)?!1:!0}function ji(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}N("shaka.util.TsParser",ii);ii.syncOffset=ji;ii.probe=pi;ii.prototype.getVideoInfo=ii.prototype.De;ii.prototype.getVideoResolution=ii.prototype.bh;ii.prototype.getVideoNalus=ii.prototype.Cd;
315
+ ii.prototype.getCodecs=ii.prototype.Oc;ii.prototype.getStartTime=ii.prototype.getStartTime;ii.prototype.getVideoData=ii.prototype.ec;ii.prototype.getAudioData=ii.prototype.Ib;ii.prototype.getMetadata=ii.prototype.getMetadata;ii.prototype.parseNalus=ii.prototype.We;ii.prototype.parseAvcNalus=ii.prototype.vh;ii.prototype.parse=ii.prototype.parse;ii.prototype.clearData=ii.prototype.clearData;ii.Timescale=9E4;var oi=[100,110,122,244,44,83,86,118,128,138,139,134];function qi(a,b,c){this.g=null;this.o=-1;this.l=a;this.i=b;this.m=c;this.j=!1;a:{"undefined"===typeof libDPIModule&&Ua("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,ve("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{Ua("Could not find LCEVC Library on this page");a=!1;break a}"undefined"===typeof this.h.SupportObject?(Ua("Could not find LCEVC Library on this page"),
316
316
  a=!1):(this.h.SupportObject.SupportStatus||Ua(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 ri(a){a.g&&a.i.classList.add("shaka-hidden")}
317
317
  qi.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function si(a,b,c){var d=ti,e=ui;switch(b.mimeType){case "video/webm":d=vi;break;case "video/mp4":d=wi}switch(c){case "DASH":e=xi;break;case "HLS":e=yi}a.g&&(a.o=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(d),a.j||a.g.setStreamingFormat(e))}N("shaka.lcevc.Dec",qi);qi.prototype.release=qi.prototype.release;var ti=0,vi=1,wi=2,yi=0,xi=1,ui=-1;function zi(a,b,c,d){var e=this;this.i=a;this.C=null;this.F=b;this.g={};this.G={};this.ya={};this.h=null;this.Z=!1;this.Da=c||function(){};this.V=d||null;this.j={};this.s=new fb;this.m={};this.H=null;this.K=new Ve;this.N="";this.aa=!1;this.l=Ai(this,this.K);this.A=!1;this.I=new wf(function(){return Bi(e)});this.u=!1;this.W="UNKNOWN";this.la=this.za=!1;this.ia=new Ve;this.o=!1;this.ba=!0;this.J=null}
318
318
  function Ai(a,b){if(window.ManagedMediaSource){a.i.disableRemotePlayback=!0;var c=new ManagedMediaSource;a.s.D(c,"startstreaming",function(){a.ba=!0});a.s.D(c,"endstreaming",function(){a.ba=!1});a.s.ha(c,"sourceopen",function(){URL.revokeObjectURL(a.N);b.resolve()});a.s.ha(a.i,"playing",function(){a.aa=!0});a.N=Ci(c);a.i.src=a.N;return c}c=new MediaSource;a.s.ha(c,"sourceopen",function(){URL.revokeObjectURL(a.N);b.resolve()});a.s.ha(a.i,"playing",function(){a.aa=!0});a.N=Ci(c);a.i.src=a.N;return c}
@@ -342,36 +342,36 @@ function cj(a,b){var c,d,e,f,g,h,k,l,m,n,q,p,u,v,y,z,x,A,B,D,E,J,G;return K(func
342
342
  4);case 4:return a.m={},a.g={},y=a.l.duration,a.K=new Ve,a.l=Ai(a,a.K),C(H,a.K,5);case 5:a.l.duration=y;z=new Ve;x=a.l.sourceBuffers;A=b.size;B=0;a.s.D(x,"addsourcebuffer",function(){B++;B===A&&z.resolve()});D=t(b.keys());for(E=D.next();!E.done;E=D.next())J=E.value,G=b.get(J),Di(a,J,G,G.codecs),a.o?(a.j[c.R]=[],a.j[c.ca]=[]):a.j[J]=[];a.i.currentTime=d;return C(H,z,2);case 2:xa(H),a.A=!1,xf(a.I),a.s.ha(a.i,"canplaythrough",function(){xf(a.I);a.i.autoplay=e;f||a.i.play()}),ya(H,0)}})}
343
343
  function dj(a,b){return Zi(a,function(){return cj(a,b)})}
344
344
  function Xi(a,b,c,d){var e,f,g,h,k,l,m,n,q,p,u;return K(function(v){if(1==v.g){if(b==Jc)return v.return(!1);e=Sc(Uc(a.G[b]))[0];f=Tc(a.G[b]);h=Mc(c.mimeType,c.codecs);k=a.C.forceTransmux;if(!kb(h)||!a.u&&Nc.includes(h))k=!0;l=Oc(c.mimeType,c.codecs);k&&(m=gc(l))&&(g=m(),h=g.convertCodecs(b,l));n=Uc(h);q=Sc(n)[0];p=Tc(h);if(e===q&&f===p)return v.return(!1);u=!0;if(a.o||n.split(",").length&&g&&!a.m[b])u=!1;if(u&&"smooth"===a.C.codecSwitchingStrategy&&mb())return C(v,bj(a,b,h,g),3);g&&g.destroy();return C(v,
345
- dj(a,d),3)}return v.return(!0)})}function ej(a,b,c){if(b==Jc)var d=!1;else{d=Sc(Uc(a.G[b]))[0];var e=Tc(a.G[b]),f=Mc(c.mimeType,c.codecs),g=a.C.forceTransmux;if(!kb(f)||!a.u&&Nc.includes(f))g=!0;c=Oc(c.mimeType,c.codecs);g&&(g=gc(c))&&(g=g(),f=g.convertCodecs(b,c),g.destroy());b=Sc(Uc(f))[0];f=Tc(f);d=d!==b||e!==f}return d?"smooth"!==a.C.codecSwitchingStrategy||!mb()||a.o:!1}var Ci=window.URL.createObjectURL,Fi="sequence";function V(a,b,c){this.i=a;this.o=b;this.u=this.j=Infinity;this.g=1;this.h=this.l=null;this.s=0;this.F=!0;this.G=0;this.A=void 0===c?!0:c;this.H=0;this.m=!1;this.C=null}r=V.prototype;r.getDuration=function(){return this.j};r.Rg=function(){return this.g};r.eg=function(a){this.i=a};r.Na=function(a){this.j=a};r.Vg=function(){return this.i};r.cg=function(a){this.s=a};r.mc=function(a){this.F=a};r.Sd=function(a){this.u=a};r.gf=function(a){this.o=a};r.Jg=function(){return this.o};
346
- r.Vf=function(a,b){if(0!=a.length){var c=a[a.length-1].end+b;this.Nd(a[0].start+b);this.g=a.reduce(function(d,e){return Math.max(d,e.end-e.start)},this.g);this.h=Math.max(this.h,c);null!=this.i&&this.A&&!this.m&&(this.i=(Date.now()+this.s)/1E3-this.h-this.g)}};
347
- r.Wc=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.s)/1E3;a=t(a);for(var e=a.next();!e.done;e=a.next())e=e.value,d<e.startTime||(b=Math.min(b,e.startTime),c=Math.max(c,e.endTime),this.g=Math.max(this.g,e.endTime-e.startTime));this.Nd(b);this.h=Math.max(this.h,c);null!=this.i&&this.A&&!this.m&&(this.i=d-this.h-this.g)}};r.Id=function(){this.m=!0};r.nh=function(){return this.m};r.dg=function(a){this.C=a};r.Ng=function(){return this.C};
348
- r.Nd=function(a){this.l=null==this.l?a:Math.min(this.l,a)};r.Se=function(a){this.g=Math.max(this.g,a)};r.offset=function(a){null!=this.l&&(this.l+=a);null!=this.h&&(this.h+=a)};r.P=function(){return Infinity==this.j&&!this.F};r.Nb=function(){return Infinity!=this.j&&!this.F};r.bb=function(){return Math.max(this.G,this.zb()-this.u)};r.hg=function(a){this.G=a};
349
- r.zb=function(){return this.P()||this.Nb()?Math.min(Math.max(0,(Date.now()+this.s)/1E3-this.g-this.i)+this.H,this.j):this.h?Math.min(this.h,this.j):this.j};r.Qc=function(a){var b=Math.max(this.l,this.G);return Infinity==this.u?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.zb()-this.u+a,this.mb()))};r.bc=function(){return this.Qc(0)};r.mb=function(){return Math.max(0,this.zb()-(this.P()||this.Nb()?this.o:0))};r.kg=function(){return null==this.i||null!=this.h&&this.A?!1:!0};
350
- r.bg=function(a){this.H=a};N("shaka.media.PresentationTimeline",V);V.prototype.setAvailabilityTimeOffset=V.prototype.bg;V.prototype.usingPresentationStartTime=V.prototype.kg;V.prototype.getSeekRangeEnd=V.prototype.mb;V.prototype.getSeekRangeStart=V.prototype.bc;V.prototype.getSafeSeekRangeStart=V.prototype.Qc;V.prototype.getSegmentAvailabilityEnd=V.prototype.zb;V.prototype.setUserSeekStart=V.prototype.hg;V.prototype.getSegmentAvailabilityStart=V.prototype.bb;V.prototype.isInProgress=V.prototype.Nb;
351
- V.prototype.isLive=V.prototype.P;V.prototype.offset=V.prototype.offset;V.prototype.notifyMaxSegmentDuration=V.prototype.Se;V.prototype.notifyMinSegmentStartTime=V.prototype.Nd;V.prototype.getInitialProgramDateTime=V.prototype.Ng;V.prototype.setInitialProgramDateTime=V.prototype.dg;V.prototype.isStartTimeLocked=V.prototype.nh;V.prototype.lockStartTime=V.prototype.Id;V.prototype.notifySegments=V.prototype.Wc;V.prototype.notifyTimeRange=V.prototype.Vf;V.prototype.getDelay=V.prototype.Jg;
352
- V.prototype.setDelay=V.prototype.gf;V.prototype.setSegmentAvailabilityDuration=V.prototype.Sd;V.prototype.setStatic=V.prototype.mc;V.prototype.setClockOffset=V.prototype.cg;V.prototype.getPresentationStartTime=V.prototype.Vg;V.prototype.setDuration=V.prototype.Na;V.prototype.setPresentationStartTime=V.prototype.eg;V.prototype.getMaxSegmentDuration=V.prototype.Rg;V.prototype.getDuration=V.prototype.getDuration;function fj(a,b,c){this.j=c;this.l=a;this.s=gj(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.o=0;this.u=b;this.i=function(){}}fj.prototype.release=function(){this.j=this.l=null;this.i=function(){}};function hj(a,b){a.i=b}function ij(a){this.g=a}function gj(a){if(a.g.paused||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(Ih(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 jj(a,b,c,d,e){var f=this;this.u=e;this.g=a;this.A=b;this.s=c;this.l=new fb;this.j=!1;this.F=a.readyState;this.C=this.i=0;this.h=d;this.o=!1;this.l.D(a,"waiting",function(){return kj(f)});this.m=(new qd(function(){kj(f)})).Ya(this.s.gapJumpTimerTime)}jj.prototype.release=function(){this.l&&(this.l.release(),this.l=null);null!=this.m&&(this.m.stop(),this.m=null);this.h&&(this.h.release(),this.h=null);this.g=this.A=this.u=null};jj.prototype.Ve=function(){this.o=!0;kj(this)};
345
+ dj(a,d),3)}return v.return(!0)})}function ej(a,b,c){if(b==Jc)var d=!1;else{d=Sc(Uc(a.G[b]))[0];var e=Tc(a.G[b]),f=Mc(c.mimeType,c.codecs),g=a.C.forceTransmux;if(!kb(f)||!a.u&&Nc.includes(f))g=!0;c=Oc(c.mimeType,c.codecs);g&&(g=gc(c))&&(g=g(),f=g.convertCodecs(b,c),g.destroy());b=Sc(Uc(f))[0];f=Tc(f);d=d!==b||e!==f}return d?"smooth"!==a.C.codecSwitchingStrategy||!mb()||a.o:!1}var Ci=window.URL.createObjectURL,Fi="sequence";function V(a,b,c){this.i=a;this.o=b;this.u=this.j=Infinity;this.g=1;this.h=this.l=null;this.s=0;this.F=!0;this.G=0;this.A=void 0===c?!0:c;this.H=0;this.m=!1;this.C=null}r=V.prototype;r.getDuration=function(){return this.j};r.Qg=function(){return this.g};r.dg=function(a){this.i=a};r.Na=function(a){this.j=a};r.Ug=function(){return this.i};r.bg=function(a){this.s=a};r.mc=function(a){this.F=a};r.Sd=function(a){this.u=a};r.ff=function(a){this.o=a};r.Ig=function(){return this.o};
346
+ r.Uf=function(a,b){if(0!=a.length){var c=a[a.length-1].end+b;this.Nd(a[0].start+b);this.g=a.reduce(function(d,e){return Math.max(d,e.end-e.start)},this.g);this.h=Math.max(this.h,c);null!=this.i&&this.A&&!this.m&&(this.i=(Date.now()+this.s)/1E3-this.h-this.g)}};
347
+ r.Wc=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.s)/1E3;a=t(a);for(var e=a.next();!e.done;e=a.next())e=e.value,d<e.startTime||(b=Math.min(b,e.startTime),c=Math.max(c,e.endTime),this.g=Math.max(this.g,e.endTime-e.startTime));this.Nd(b);this.h=Math.max(this.h,c);null!=this.i&&this.A&&!this.m&&(this.i=d-this.h-this.g)}};r.Id=function(){this.m=!0};r.mh=function(){return this.m};r.cg=function(a){this.C=a};r.Mg=function(){return this.C};
348
+ r.Nd=function(a){this.l=null==this.l?a:Math.min(this.l,a)};r.Re=function(a){this.g=Math.max(this.g,a)};r.offset=function(a){null!=this.l&&(this.l+=a);null!=this.h&&(this.h+=a)};r.P=function(){return Infinity==this.j&&!this.F};r.Nb=function(){return Infinity!=this.j&&!this.F};r.bb=function(){return Math.max(this.G,this.zb()-this.u)};r.gg=function(a){this.G=a};
349
+ r.zb=function(){return this.P()||this.Nb()?Math.min(Math.max(0,(Date.now()+this.s)/1E3-this.g-this.i)+this.H,this.j):this.h?Math.min(this.h,this.j):this.j};r.Qc=function(a){var b=Math.max(this.l,this.G);return Infinity==this.u?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.zb()-this.u+a,this.mb()))};r.bc=function(){return this.Qc(0)};r.mb=function(){return Math.max(0,this.zb()-(this.P()||this.Nb()?this.o:0))};r.jg=function(){return null==this.i||null!=this.h&&this.A?!1:!0};
350
+ r.ag=function(a){this.H=a};N("shaka.media.PresentationTimeline",V);V.prototype.setAvailabilityTimeOffset=V.prototype.ag;V.prototype.usingPresentationStartTime=V.prototype.jg;V.prototype.getSeekRangeEnd=V.prototype.mb;V.prototype.getSeekRangeStart=V.prototype.bc;V.prototype.getSafeSeekRangeStart=V.prototype.Qc;V.prototype.getSegmentAvailabilityEnd=V.prototype.zb;V.prototype.setUserSeekStart=V.prototype.gg;V.prototype.getSegmentAvailabilityStart=V.prototype.bb;V.prototype.isInProgress=V.prototype.Nb;
351
+ V.prototype.isLive=V.prototype.P;V.prototype.offset=V.prototype.offset;V.prototype.notifyMaxSegmentDuration=V.prototype.Re;V.prototype.notifyMinSegmentStartTime=V.prototype.Nd;V.prototype.getInitialProgramDateTime=V.prototype.Mg;V.prototype.setInitialProgramDateTime=V.prototype.cg;V.prototype.isStartTimeLocked=V.prototype.mh;V.prototype.lockStartTime=V.prototype.Id;V.prototype.notifySegments=V.prototype.Wc;V.prototype.notifyTimeRange=V.prototype.Uf;V.prototype.getDelay=V.prototype.Ig;
352
+ V.prototype.setDelay=V.prototype.ff;V.prototype.setSegmentAvailabilityDuration=V.prototype.Sd;V.prototype.setStatic=V.prototype.mc;V.prototype.setClockOffset=V.prototype.bg;V.prototype.getPresentationStartTime=V.prototype.Ug;V.prototype.setDuration=V.prototype.Na;V.prototype.setPresentationStartTime=V.prototype.dg;V.prototype.getMaxSegmentDuration=V.prototype.Qg;V.prototype.getDuration=V.prototype.getDuration;function fj(a,b,c){this.j=c;this.l=a;this.s=gj(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.o=0;this.u=b;this.i=function(){}}fj.prototype.release=function(){this.j=this.l=null;this.i=function(){}};function hj(a,b){a.i=b}function ij(a){this.g=a}function gj(a){if(a.g.paused||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(Ih(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 jj(a,b,c,d,e){var f=this;this.u=e;this.g=a;this.A=b;this.s=c;this.l=new fb;this.j=!1;this.F=a.readyState;this.C=this.i=0;this.h=d;this.o=!1;this.l.D(a,"waiting",function(){return kj(f)});this.m=(new qd(function(){kj(f)})).Ya(this.s.gapJumpTimerTime)}jj.prototype.release=function(){this.l&&(this.l.release(),this.l=null);null!=this.m&&(this.m.stop(),this.m=null);this.h&&(this.h.release(),this.h=null);this.g=this.A=this.u=null};jj.prototype.Ue=function(){this.o=!0;kj(this)};
353
353
  function kj(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.F&&(a.F=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.l,d=gj(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.s!=d)b.m=f,b.g=e,b.s=d,b.h=!1;e=f-b.m;if(d=e>=b.u&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.o++,b.j(new Q("stalldetected"));b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=Jh(c,b,a.s.gapDetectionThreshold),null==
354
354
  d||0==d&&!a.o||(e=c.start(d),e>=a.A.mb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.i&&(a.i=e),a.C++,a.u(new Q("gapjumped")))))}}};function lj(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=mj.value().get(b),c.ha(a,b,d))}var mj=new Af(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function nj(a,b,c,d){var e=this;this.g=a;this.m=b;this.s=c;this.l=null;this.j=function(){null==e.l&&(e.l=d());return e.l};this.o=!1;this.h=new fb;this.i=new oj(a);lj(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){pj(e,e.j())})}nj.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 qj(a){return a.o?a.g.currentTime:a.j()}
355
355
  function rj(a,b){0<a.g.readyState?sj(a.i,b):lj(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){pj(a,a.j())})}function pj(a,b){.001>Math.abs(a.g.currentTime-b)?tj(a):(a.h.ha(a.g,"seeking",function(){tj(a)}),sj(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function tj(a){a.o=!0;a.h.D(a.g,"seeking",function(){return a.m()});a.s(a.g.currentTime)}
356
- function oj(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new qd(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}oj.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};function sj(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.Ya(.1)};function uj(a){this.g=a;this.j=!1;this.h=null;this.i=new fb}r=uj.prototype;r.ce=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.ha(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;lj(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};r.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};r.nd=function(a){this.h=this.j?this.h:a};r.Fc=function(){return(this.j?this.g.currentTime:this.h)||0};r.vf=function(){return 0};
357
- r.uf=function(){return 0};r.Uf=function(){};
356
+ function oj(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new qd(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}oj.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};function sj(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.Ya(.1)};function uj(a){this.g=a;this.j=!1;this.h=null;this.i=new fb}r=uj.prototype;r.ce=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.ha(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;lj(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};r.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};r.nd=function(a){this.h=this.j?this.h:a};r.Fc=function(){return(this.j?this.g.currentTime:this.h)||0};r.uf=function(){return 0};
357
+ r.tf=function(){return 0};r.Tf=function(){};
358
358
  function vj(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.A=b.minBufferTime||0;this.l=c;this.u=e;this.s=null;this.o=wj(a,c,f);this.j=new jj(a,b.presentationTimeline,c,this.o,f);this.h=new nj(a,function(){a:{var h=g.j;h.j=!0;h.o=!1;var k=qj(g.h);h=xj(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.s||g.s<k-1)){g.s=k;rj(g.h,h);h=void 0;break a}g.u();h=void 0}return h},function(h){var k=g.j;k.g.seeking&&!k.j&&(k.j=!0,k.i=h)},function(){var h=d;null==h?h=Infinity>g.g.getDuration()?
359
- g.g.bc():g.g.mb():0>h&&(h=g.g.mb()+h);return yj(g,zj(g,h))});this.m=new qd(function(){if(0!=g.i.readyState&&!g.i.paused){var h=qj(g.h),k=g.g.bc(),l=g.g.mb();3>l-k&&(k=l-3);h<k&&(h=xj(g,h),g.i.currentTime=h)}})}r=vj.prototype;r.ce=function(){this.m.Ya(.25)};r.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.u=function(){}};r.nd=function(a){rj(this.h,a)};
360
- r.Fc=function(){var a=qj(this.h);return 0<this.i.readyState&&!this.i.paused?zj(this,a):a};r.vf=function(){return this.o?this.o.o:0};r.uf=function(){return this.j.C};r.Uf=function(){this.j.Ve()};function yj(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}
359
+ g.g.bc():g.g.mb():0>h&&(h=g.g.mb()+h);return yj(g,zj(g,h))});this.m=new qd(function(){if(0!=g.i.readyState&&!g.i.paused){var h=qj(g.h),k=g.g.bc(),l=g.g.mb();3>l-k&&(k=l-3);if(h<k||h>l)h=xj(g,h),g.i.currentTime=h}})}r=vj.prototype;r.ce=function(){this.m.Ya(.25)};r.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.u=function(){}};r.nd=function(a){rj(this.h,a)};
360
+ r.Fc=function(){var a=qj(this.h);return 0<this.i.readyState&&!this.i.paused?zj(this,a):a};r.uf=function(){return this.o?this.o.o:0};r.tf=function(){return this.j.C};r.Tf=function(){this.j.Ue()};function yj(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}
361
361
  function xj(a,b){var c=Math.max(a.A,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.bc(),f=a.g.mb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Qc(c),k=a.g.Qc(d);c=a.g.Qc(c+d);return b>=g?yj(a,b):b>f?f:b<e?Gh(a.i.buffered,k)?k:c:b>=h||Gh(a.i.buffered,b)?b:c}function zj(a,b){var c=a.g.bc();if(b<c)return c;a=a.g.mb();return b>a?a:b}
362
- function wj(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new fj(new ij(a),b.stallThreshold,c);hj(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function Aj(a){this.g=a;this.m=null;this.j=0;this.o=!1}r=Aj.prototype;r.yb=function(){return this.g.length};r.release=function(){this.o||(this.g=[],this.m&&this.m.stop(),this.m=null)};r.rh=function(){this.o=!0};function Bj(a,b){a=t(a.g);for(var c=a.next();!c.done;c=a.next())b(c.value)}r.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c<b?this.g[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.j}return this.g.length&&a<this.g[0].startTime?this.j:null};
362
+ function wj(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new fj(new ij(a),b.stallThreshold,c);hj(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function Aj(a){this.g=a;this.m=null;this.j=0;this.o=!1}r=Aj.prototype;r.yb=function(){return this.g.length};r.release=function(){this.o||(this.g=[],this.m&&this.m.stop(),this.m=null)};r.qh=function(){this.o=!0};function Bj(a,b){a=t(a.g);for(var c=a.next();!c.done;c=a.next())b(c.value)}r.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c<b?this.g[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.j}return this.g.length&&a<this.g[0].startTime?this.j:null};
363
363
  r.get=function(a){if(0==this.g.length)return null;a-=this.j;return 0>a||a>=this.g.length?null:this.g[a]};r.offset=function(a){if(!this.o)for(var b=t(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)};r.Ld=function(a){if(!this.o&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.g.push.apply(this.g,w(a))}};
364
364
  r.Vc=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.Ld(a);this.$a(b)};r.$a=function(a){if(!this.o){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.j+=b-this.g.length}};
365
365
  r.Xb=function(a,b,c){c=void 0===c?!1:c;if(!this.o){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.j++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],this.g[this.g.length-1]=new R(a.startTime,b,a.H,a.Oa,a.ua,a.h,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.i,a.tilesLayout,a.G,a.g,a.status,a.aes128Key),this.g[this.g.length-1].l=a.l)}};
366
366
  r.Td=function(a,b){var c=this;this.o||(this.m&&this.m.stop(),this.m=new qd(function(){var d=b();d?c.g.push.apply(c.g,w(d)):(c.m.stop(),c.m=null)}),this.m.Ya(a))};Aj.prototype[Symbol.iterator]=function(){return this.Jb(0)};
367
367
  Aj.prototype.Jb=function(a){var b=this.find(a);if(null==b)return null;b--;var c=this.get(b+1),d=-1;if(c&&0<c.i.length)for(var e=c.i.length-1;0<=e;--e){var f=c.i[e];if(a>=f.startTime&&a<f.endTime){for(;e&&!f.m;)e--,f=c.i[e];if(!f.m)return Ta("No independent partial segment found!"),null;b++;d=e-1;break}}return new Cj(this,b,d)};function Dj(a,b,c){a=new R(a,a+b,function(){return c},0,null,null,a,a,a+b);return new Aj([a])}N("shaka.media.SegmentIndex",Aj);Aj.forSingleSegment=Dj;
368
- Aj.prototype.getIteratorForTime=Aj.prototype.Jb;Aj.prototype.updateEvery=Aj.prototype.Td;Aj.prototype.fit=Aj.prototype.Xb;Aj.prototype.evict=Aj.prototype.$a;Aj.prototype.mergeAndEvict=Aj.prototype.Vc;Aj.prototype.offset=Aj.prototype.offset;Aj.prototype.get=Aj.prototype.get;Aj.prototype.find=Aj.prototype.find;Aj.prototype.markImmutable=Aj.prototype.rh;Aj.prototype.release=Aj.prototype.release;function Cj(a,b,c){this.i=a;this.g=b;this.h=c}Cj.prototype.Ag=function(){return this.g};
368
+ Aj.prototype.getIteratorForTime=Aj.prototype.Jb;Aj.prototype.updateEvery=Aj.prototype.Td;Aj.prototype.fit=Aj.prototype.Xb;Aj.prototype.evict=Aj.prototype.$a;Aj.prototype.mergeAndEvict=Aj.prototype.Vc;Aj.prototype.offset=Aj.prototype.offset;Aj.prototype.get=Aj.prototype.get;Aj.prototype.find=Aj.prototype.find;Aj.prototype.markImmutable=Aj.prototype.qh;Aj.prototype.release=Aj.prototype.release;function Cj(a,b,c){this.i=a;this.g=b;this.h=c}Cj.prototype.zg=function(){return this.g};
369
369
  Cj.prototype.current=function(){var a=this.i.get(this.g);a&&0<a.i.length&&a.u&&this.h>=a.i.length&&(this.g++,this.h=0,a=this.i.get(this.g));return a&&0<a.i.length?a.i[this.h]:a};Cj.prototype.next=function(){var a=this.i.get(this.g);a&&0<a.i.length?(this.h++,a.u&&this.h==a.i.length&&(this.g++,this.h=0)):(this.g++,this.h=0);a=this.current();return{value:a,done:!a}};N("shaka.media.SegmentIterator",Cj);Cj.prototype.next=Cj.prototype.next;Cj.prototype.current=Cj.prototype.current;
370
- Cj.prototype.currentPosition=Cj.prototype.Ag;function Ej(){Aj.call(this,[]);this.h=[]}pa(Ej,Aj);r=Ej.prototype;r.clone=function(){var a=new Ej;a.h=this.h.slice();return a};r.release=function(){for(var a=t(this.h),b=a.next();!b.done;b=a.next())b.value.release();this.h=[]};r.find=function(a){for(var b=0,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.j+d.yb()}return null};
370
+ Cj.prototype.currentPosition=Cj.prototype.zg;function Ej(){Aj.call(this,[]);this.h=[]}pa(Ej,Aj);r=Ej.prototype;r.clone=function(){var a=new Ej;a.h=this.h.slice();return a};r.release=function(){for(var a=t(this.h),b=a.next();!b.done;b=a.next())b.value.release();this.h=[]};r.find=function(a){for(var b=0,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.j+d.yb()}return null};
371
371
  r.get=function(a){for(var b=0,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.j+d.yb()}return null};r.offset=function(){};r.Ld=function(){};r.$a=function(){};r.Vc=function(){};r.Xb=function(){};r.Td=function(){};N("shaka.media.MetaSegmentIndex",Ej);Ej.prototype.updateEvery=Ej.prototype.Td;Ej.prototype.fit=Ej.prototype.Xb;Ej.prototype.mergeAndEvict=Ej.prototype.Vc;Ej.prototype.evict=Ej.prototype.$a;Ej.prototype.merge=Ej.prototype.Ld;Ej.prototype.offset=Ej.prototype.offset;
372
- Ej.prototype.get=Ej.prototype.get;Ej.prototype.find=Ej.prototype.find;Ej.prototype.release=Ej.prototype.release;function Fj(a){var b=this;this.g=a;this.h=this.g.Bd();this.i=new qd(function(){b.g.Sf(.25*b.h)})}Fj.prototype.release=function(){this.set(this.$b());this.i&&(this.i.stop(),this.i=null);this.g=null};Fj.prototype.set=function(a){if(this.h!=a)a:{this.h=a,this.i.stop();if(0<=this.h)try{var b=this.h;this.g.Bd()!=b&&this.g.kf(b);break a}catch(c){}this.i.Ya(.25);0!=this.g.Bd()&&this.g.kf(0)}};Fj.prototype.$b=function(){return this.g.$b()};function Gj(a){var b=this;this.h=a;this.g=new Set;this.i=(new qd(function(){Hj(b,!1)})).Ya(.25)}Gj.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 Hj(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function Ij(a){ef.call(this);this.g=new Map;this.h=a}pa(Ij,ef);Ij.prototype.release=function(){this.g.clear();ef.prototype.release.call(this)};function Jj(a,b){var c=a.g.get(b);c||(c={Xc:[],Bf:null,contentType:b},a.g.set(b,c));return c}function Kj(a,b,c){var d=Jj(a,b.contentType);Lj(a,d);a={Qe:b,position:c};d=d.Xc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
373
- Ij.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.Xc;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.Qe;break a}}d=null}if(e=d)e=c.Bf,e=!(e===d||e&&d&&e.bandwidth==d.bandwidth&&e.audioSamplingRate==d.audioSamplingRate&&e.codecs==d.codecs&&e.contentType==d.contentType&&e.frameRate==d.frameRate&&e.height==d.height&&e.mimeType==d.mimeType&&e.channelsCount==d.channelsCount&&e.pixelAspectRatio==d.pixelAspectRatio&&e.width==d.width);
374
- if(e)a:{e=a;f=d.contentType;if((f=this.h()[f])&&0<f.length){var g=f[f.length-1].end;if(e>=f[0].start&&e<g){e=!0;break a}}e=!1}e&&(c.Bf=d,JSON.stringify(d),c=new Q("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function Lj(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.Xc;b.Xc=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.Xc=[]};function Mj(a){ef.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new qd(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 Q("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).Ya(2)}pa(Mj,ef);Mj.prototype.release=function(){this.g.clear();this.h.stop();ef.prototype.release.call(this)};function Nj(a,b){ef.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{Ub:null,Tb:Oj,Mb:function(d,e){return Pj(c,"enter",d,e)}},{Ub:Qj,Tb:Oj,Mb:function(d,e){return Pj(c,"enter",d,e)}},{Ub:Rj,Tb:Oj,Mb:function(d,e){return Pj(c,"enter",d,e)}},{Ub:Oj,Tb:Qj,Mb:function(d,e){return Pj(c,"exit",d,e)}},{Ub:Oj,Tb:Rj,Mb:function(d,e){return Pj(c,"exit",d,e)}},{Ub:Qj,Tb:Rj,Mb:function(d,e){return Pj(c,"skip",d,e)}},{Ub:Rj,Tb:Qj,Mb:function(d,e){return Pj(c,"skip",d,e)}}];this.h=new fb;this.h.D(this.i,
372
+ Ej.prototype.get=Ej.prototype.get;Ej.prototype.find=Ej.prototype.find;Ej.prototype.release=Ej.prototype.release;function Fj(a){var b=this;this.g=a;this.h=this.g.Bd();this.i=new qd(function(){b.g.Rf(.25*b.h)})}Fj.prototype.release=function(){this.set(this.$b());this.i&&(this.i.stop(),this.i=null);this.g=null};Fj.prototype.set=function(a){if(this.h!=a)a:{this.h=a,this.i.stop();if(0<=this.h)try{var b=this.h;this.g.Bd()!=b&&this.g.jf(b);break a}catch(c){}this.i.Ya(.25);0!=this.g.Bd()&&this.g.jf(0)}};Fj.prototype.$b=function(){return this.g.$b()};function Gj(a){var b=this;this.h=a;this.g=new Set;this.i=(new qd(function(){Hj(b,!1)})).Ya(.25)}Gj.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 Hj(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function Ij(a){ef.call(this);this.g=new Map;this.h=a}pa(Ij,ef);Ij.prototype.release=function(){this.g.clear();ef.prototype.release.call(this)};function Jj(a,b){var c=a.g.get(b);c||(c={Xc:[],Af:null,contentType:b},a.g.set(b,c));return c}function Kj(a,b,c){var d=Jj(a,b.contentType);Lj(a,d);a={Qe:b,position:c};d=d.Xc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
373
+ Ij.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.Xc;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.Qe;break a}}d=null}if(e=d)e=c.Af,e=!(e===d||e&&d&&e.bandwidth==d.bandwidth&&e.audioSamplingRate==d.audioSamplingRate&&e.codecs==d.codecs&&e.contentType==d.contentType&&e.frameRate==d.frameRate&&e.height==d.height&&e.mimeType==d.mimeType&&e.channelsCount==d.channelsCount&&e.pixelAspectRatio==d.pixelAspectRatio&&e.width==d.width);
374
+ if(e)a:{e=a;f=d.contentType;if((f=this.h()[f])&&0<f.length){var g=f[f.length-1].end;if(e>=f[0].start&&e<g){e=!0;break a}}e=!1}e&&(c.Af=d,JSON.stringify(d),c=new Q("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function Lj(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.Xc;b.Xc=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.Xc=[]};function Mj(a){ef.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new qd(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 Q("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).Ya(2)}pa(Mj,ef);Mj.prototype.release=function(){this.g.clear();this.h.stop();ef.prototype.release.call(this)};function Nj(a,b){ef.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{Ub:null,Tb:Oj,Mb:function(d,e){return Pj(c,"enter",d,e)}},{Ub:Qj,Tb:Oj,Mb:function(d,e){return Pj(c,"enter",d,e)}},{Ub:Rj,Tb:Oj,Mb:function(d,e){return Pj(c,"enter",d,e)}},{Ub:Oj,Tb:Qj,Mb:function(d,e){return Pj(c,"exit",d,e)}},{Ub:Oj,Tb:Rj,Mb:function(d,e){return Pj(c,"exit",d,e)}},{Ub:Qj,Tb:Rj,Mb:function(d,e){return Pj(c,"skip",d,e)}},{Ub:Rj,Tb:Qj,Mb:function(d,e){return Pj(c,"skip",d,e)}}];this.h=new fb;this.h.D(this.i,
375
375
  "regionremove",function(d){c.g.delete(d.region)})}pa(Nj,ef);Nj.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;ef.prototype.release.call(this)};Nj.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?Qj:a>d.endTime?Rj:Oj;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.Ub==e&&h.Tb==f&&h.Mb(d,b)}}};
376
376
  function Pj(a,b,c,d){b=new Q(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var Qj=1,Oj=2,Rj=3;function Sj(a,b,c){this.i=a;this.h=b;this.j=0;this.l=c;this.g=new Map}function Tj(a,b,c){c=void 0===c?!1:c;if(a.h.segmentIndex){var d=a.h.segmentIndex.Jb(Math.max(b.startTime,a.j));if(d){var e=b;c&&(e=d.next().value)&&e.startTime==b.startTime&&e.endTime==b.endTime&&(e=null);for(;a.g.size<a.i&&null!=e;)b=!0,e.o&&null!=e.ua&&(b=!1),2==e.Lb()&&(b=!1),b&&!a.g.has(e)&&(b=new Uj(a.l),Vj(b,e,a.h),a.g.set(e,b)),a.j=e.startTime,e=d.next().value}}}
377
377
  function Wj(a,b){if(a.h.segmentIndex&&a.g.size<a.i&&!a.g.has(b)){var c=new Uj(a.l);Vj(c,b,a.h);a.g.set(b,c)}}function Xj(a){if(0!==a.g.size){for(var b=t(a.g.keys()),c=b.next();!c.done;c=b.next())(c=c.value)&&Yj(a,c);a.j=0}}function Zj(a,b){b&&b!==a.h&&(Xj(a),a.h=b)}function Yj(a,b){var c=a.g.get(b);a.g.delete(b);c&&c.abort()}function Uj(a){this.i=a;this.g=this.h=null}
@@ -380,31 +380,31 @@ r.configure=function(a){this.i=a;this.G=new Se({maxAttempts:Math.max(a.retryPara
380
380
  (c.pa=null)}else 0<a.segmentPrefetchLimit&&(c.pa=fk(this,c.stream))};r.start=function(){var a=this;return K(function(b){if(1==b.g)return C(b,gk(a),2);xf(a.l);a.A=!0;F(b)})};
381
381
  function hk(a,b){var c,d,e,f,g,h,k;K(function(l){switch(l.g){case 1:return c=Kc,a.F++,d=a.F,ta(l,2),C(l,Vi(a.g.T,c.ja),4);case 4:va(l,3);break;case 2:if(e=wa(l),a.g)a.g.onError(e);case 3:f=Mc(b.mimeType,b.codecs),Ei(a.g.T,f,a.m.sequenceMode,b.external),g=a.g.T.F,(h=g.isTextVisible()||a.i.alwaysStreamText)&&a.F==d&&(k=ik(a,b),a.h.set(c.ja,k),jk(a,k,0)),F(l)}})}function kk(a){var b=a.h.get(Jc);b&&(dk(b),ek(b).catch(function(){}),a.h.delete(Jc));a.o=null}
382
382
  function lk(a,b){var c=a.h.get("video");if(c){var d=c.stream;if(d)if(b)(b=d.trickModeVideo)&&!c.Qb&&(mk(a,b,!1,0,!1),c.Qb=d);else if(d=c.Qb)c.Qb=null,mk(a,d,!0,0,!1)}}function nk(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.A&&(b.video&&mk(a,b.video,c,d,e,f),b.audio&&mk(a,b.audio,c,d,e,f))}function ok(a,b){K(function(c){if(1==c.g)return a.o=b,a.A?b.segmentIndex?c.B(2):C(c,b.createSegmentIndex(),2):c.return();mk(a,b,!0,0,!1);F(c)})}
383
- function mk(a,b,c,d,e,f){var g=a.h.get(b.type);g||b.type!=Jc?g&&(g.Qb&&(b.trickModeVideo?(g.Qb=b,b=b.trickModeVideo):g.Qb=null),g.stream!=b||e)&&(g.pa&&Zj(g.pa,b),b.type==Jc&&(e=Mc(b.mimeType,b.codecs),Ei(a.g.T,e,a.m.sequenceMode,b.external)),g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.X=null,g.wf=!!f,c&&(g.Lc?g.Ud=!0:g.Ba?(g.rb=!0,g.sd=d,g.Ud=!0):(dk(g),pk(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)}))),qk(a,g).catch(function(h){if(a.g)a.g.onError(h)})):hk(a,b)}
383
+ function mk(a,b,c,d,e,f){var g=a.h.get(b.type);g||b.type!=Jc?g&&(g.Qb&&(b.trickModeVideo?(g.Qb=b,b=b.trickModeVideo):g.Qb=null),g.stream!=b||e)&&(g.pa&&Zj(g.pa,b),b.type==Jc&&(e=Mc(b.mimeType,b.codecs),Ei(a.g.T,e,a.m.sequenceMode,b.external)),g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.X=null,g.vf=!!f,c&&(g.Lc?g.Ud=!0:g.Ba?(g.rb=!0,g.sd=d,g.Ud=!0):(dk(g),pk(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)}))),qk(a,g).catch(function(h){if(a.g)a.g.onError(h)})):hk(a,b)}
384
384
  function qk(a,b){var c,d;return K(function(e){if(1==e.g){if(!b.La)return e.return();c=b.stream;d=b.La;return c.segmentIndex?e.B(2):C(e,c.createSegmentIndex(),2)}if(b.La!=d||b.stream!=c)return e.return();var f=a.g.zd();var g=Ki(a.g.T,b.type),h=b.stream.segmentIndex.find(b.Aa?b.Aa.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.ua?k.ua-k.Oa:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.h)&&(h+=(k.ua?k.ua-k.Oa:null)||0),k=a.g.getBandwidthEstimate(),
385
385
  f=8*h/k<(g||0)-f-Math.max(a.m.minBufferTime||0,a.i.rebufferingGoal)||b.La.h.g>h?!0:!1):f=!1;f&&b.La.abort();F(e)})}
386
386
  r.ad=function(){if(this.g)for(var a=this.g.zd(),b=t(this.h.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.h.get(d);var e=null;c.X&&(e=c.X.current());if(!e||e.startTime>a||e.endTime<a)c.X=null;e=this.g.T;e.A?e=!1:d==Jc?(e=e.h,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=Ji(e,d),e=Gh(e,a));e||((null!=Ki(this.g.T,d)||c.Ba)&&rk(this,c),c.La&&(c.La.abort(),c.La=null),d===Jc&&(d=this.g.T,d.H&&d.H.h()),c.ad=!0)}};
387
387
  function rk(a,b){b.Lc||b.rb||(b.Ba?(b.rb=!0,b.sd=0):null==Ii(a.g.T,b.type)?null==b.gb&&jk(a,b,0):(dk(b),pk(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
388
388
  function gk(a){var b,c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g){b=Kc;if(!a.j)throw new P(2,5,5006);c=new Map;d=new Set;a.j.audio&&(c.set(b.R,a.j.audio),d.add(a.j.audio));a.j.video&&(c.set(b.ca,a.j.video),d.add(a.j.video));a.o&&(c.set(b.ja,a.o),d.add(a.o));e=a.g.T;return C(m,e.init(c,a.m.sequenceMode,a.m.type,a.m.ignoreManifestTimestampsInSegmentsMode),2)}xf(a.l);a.updateDuration();f=t(c.keys());for(g=f.next();!g.done;g=f.next())h=g.value,k=c.get(h),a.h.has(h)||(l=ik(a,k),a.h.set(h,l),jk(a,l,
389
- 0));F(m)})}function ik(a,b){return{stream:b,type:b.type,X:null,pa:fk(a,b),Aa:null,fc:null,Me:null,Ke:null,Je:null,Qb:null,endOfStream:!1,Ba:!1,gb:null,rb:!1,sd:0,Ud:!1,Lc:!1,ad:!0,Re:!1,$e:!1,Sc:!1,La:null}}function fk(a,b){return"video"!==b.type&&"audio"!==b.type?null:0<a.i.segmentPrefetchLimit?new Sj(a.i.segmentPrefetchLimit,b,function(c,d,e){return sk(a,c,d,e)}):null}r.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.T.Na(a):this.g.T.Na(Math.pow(2,32))};
389
+ 0));F(m)})}function ik(a,b){return{stream:b,type:b.type,X:null,pa:fk(a,b),Aa:null,fc:null,Me:null,Ke:null,Je:null,Qb:null,endOfStream:!1,Ba:!1,gb:null,rb:!1,sd:0,Ud:!1,Lc:!1,ad:!0,Ze:!1,Sc:!1,La:null}}function fk(a,b){return"video"!==b.type&&"audio"!==b.type?null:0<a.i.segmentPrefetchLimit?new Sj(a.i.segmentPrefetchLimit,b,function(c,d,e){return sk(a,c,d,e)}):null}r.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.T.Na(a):this.g.T.Na(Math.pow(2,32))};
390
390
  function tk(a,b){var c,d,e,f,g;return K(function(h){switch(h.g){case 1:xf(a.l);if(b.Ba||null==b.gb||b.Lc)return h.return();b.gb=null;if(!b.rb){h.B(2);break}return C(h,pk(a,b,b.Ud,b.sd),3);case 3:return h.return();case 2:if(b.stream.segmentIndex){h.B(4);break}c=b.stream;return C(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.Ba||b.gb||jk(a,b,0),h.return();case 4:ta(h,6);d=uk(a,b);null!=d&&(jk(a,b,d),b.Sc=!1);va(h,7);break;case 6:return e=
391
391
  wa(h),C(h,vk(a,b,e),8);case 8:return h.return();case 7:f=Array.from(a.h.values());if(!a.A||!f.every(function(k){return k.endOfStream})){h.B(0);break}return C(h,a.g.T.endOfStream(),10);case 10:xf(a.l),g=a.g.T.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.Na(g),F(h)}})}
392
392
  function uk(a,b){if(wk(b))return Si(a.g.T,b.stream.originalId||""),null;b.type==Jc&&Ti(a.g.T);if(!a.g.T.ba&&b.type!=Jc)return a.i.updateIntervalSeconds/2;var c=a.g.zd(),d=b.Aa?b.Aa.endTime:c,e=Li(a.g.T,b.type,c),f=Math.max(a.m.minBufferTime||0,a.i.rebufferingGoal,a.i.bufferingGoal)*a.u,g=a.m.presentationTimeline.getDuration()-d,h=Ki(a.g.T,b.type);if(1E-6>g&&h)return b.endOfStream=!0,"video"==b.type&&(a=a.h.get(Jc))&&wk(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.i.updateIntervalSeconds/
393
393
  2;e=xk(a,b,c,h);if(!e)return a.i.updateIntervalSeconds;f=Infinity;g=Array.from(a.h.values());g=t(g);for(h=g.next();!h.done;h=g.next())h=h.value,wk(h)||h.X&&!h.X.current()||(f=Math.min(f,h.Aa?h.Aa.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.i.updateIntervalSeconds;b.pa&&b.X&&(d=e.h,!d||b.Aa&&Ch(d,b.fc)||Wj(b.pa,d),Tj(b.pa,e));yk(a,b,c,e).catch(function(){});return null}
394
- function xk(a,b,c,d){if(b.X)return b.X.current();if(b.Aa||d)return c=b.Aa?b.Aa.endTime:d,b.Re=!0,b.X=b.stream.segmentIndex.Jb(c),b.X&&b.X.next().value;a=a.i.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.X=b.stream.segmentIndex.Jb(d),e=b.X&&b.X.next().value);e||(b.X=b.stream.segmentIndex.Jb(c),e=b.X&&b.X.next().value);return e}
394
+ function xk(a,b,c,d){if(b.X)return b.X.current();if(b.Aa||d)return b.X=b.stream.segmentIndex.Jb(b.Aa?b.Aa.endTime:d),b.X&&b.X.next().value;a=a.i.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.X=b.stream.segmentIndex.Jb(d),e=b.X&&b.X.next().value);e||(b.X=b.stream.segmentIndex.Jb(c),e=b.X&&b.X.next().value);return e}
395
395
  function yk(a,b,c,d){var e,f,g,h,k,l,m,n,q,p,u,v,y,z,x,A;return K(function(B){switch(B.g){case 1:e=Kc;f=b.stream;g=b.X;b.Ba=!0;ta(B,2);if(2==d.Lb())throw new P(1,1,1011);return C(B,zk(a,b,d),4);case 4:xf(a.l);if(a.s)return B.return();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.i.lowLatencyMode&&k&&h&&("HLS"!=a.m.type||d.s))return n=new Uint8Array(0),p=q=!1,v=function(D){var E,J,G,H;return K(function(I){switch(I.g){case 1:if(q)return I.return();p=!0;xf(a.l);if(a.s)return I.return();
396
396
  ta(I,2);n=Ak(n,D);E=!1;J=0;(new Qf).box("mdat",function(L){J=L.size+L.start;E=!0}).parse(n,!1,!0);if(!E){I.B(4);break}G=n.subarray(0,J);n=n.subarray(J);return C(I,Bk(a,b,c,f,d,G,!0),5);case 5:b.pa&&b.X&&Tj(b.pa,d,!0);case 4:va(I,0);break;case 2:u=H=wa(I),F(I)}})},C(B,Ck(a,b,d,v),9);l=Ck(a,b,d);return C(B,l,7);case 7:m=B.h;xf(a.l);if(a.s)return B.return();xf(a.l);return b.rb?(b.Ba=!1,jk(a,b,0),B.return()):C(B,Bk(a,b,c,f,d,m),6);case 9:y=B.h;if(u)throw u;if(p){B.B(10);break}q=!0;xf(a.l);return a.s?
397
- B.return():b.rb?(b.Ba=!1,jk(a,b,0),B.return()):C(B,Bk(a,b,c,f,d,y),10);case 10:b.pa&&b.X&&Tj(b.pa,d,!0);case 6:xf(a.l);if(a.s)return B.return();b.Aa=d;g.next();b.Ba=!1;b.$e=!1;z=a.g.T.lb();x=z[b.type];Za(JSON.stringify(x));b.rb||a.g.Ve(d.startTime,d.endTime,b.type);jk(a,b,0);va(B,0);break;case 2:A=wa(B);xf(a.l,A);if(a.s)return B.return();b.Ba=!1;if(7001==A.code)b.Ba=!1,dk(b),jk(a,b,0),B.B(0);else if(b.type==e.ja&&a.i.ignoreTextStreamFailures)a.h.delete(e.ja),B.B(0);else if(3017==A.code)Dk(a,b,A),
397
+ B.return():b.rb?(b.Ba=!1,jk(a,b,0),B.return()):C(B,Bk(a,b,c,f,d,y),10);case 10:b.pa&&b.X&&Tj(b.pa,d,!0);case 6:xf(a.l);if(a.s)return B.return();b.Aa=d;g.next();b.Ba=!1;b.Ze=!1;z=a.g.T.lb();x=z[b.type];Za(JSON.stringify(x));b.rb||a.g.Ue(d.startTime,d.endTime,b.type);jk(a,b,0);va(B,0);break;case 2:A=wa(B);xf(a.l,A);if(a.s)return B.return();b.Ba=!1;if(7001==A.code)b.Ba=!1,dk(b),jk(a,b,0),B.B(0);else if(b.type==e.ja&&a.i.ignoreTextStreamFailures)a.h.delete(e.ja),B.B(0);else if(3017==A.code)Dk(a,b,A),
398
398
  B.B(0);else return b.Sc=!0,A.severity=2,C(B,vk(a,b,A),0)}})}function Ek(a,b,c){var d,e,f,g;return K(function(h){if(1==h.g)return d=b,d.cryptoKey?h.B(2):C(h,d.fetchKey(),3);e=d.iv;if(!e)for(e=sb(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;return h.return(window.crypto.subtle.decrypt({name:"AES-CBC",iv:e},d.cryptoKey,a))})}function Ak(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
399
- function Dk(a,b,c){if(!Array.from(a.h.values()).some(function(e){return e!=b&&e.$e})){var d=Math.round(100*a.u);if(20<d)a.u-=.2;else if(4<d)a.u-=.04;else{b.Sc=!0;a.s=!0;a.g.onError(c);return}b.$e=!0}jk(a,b,4)}
400
- function zk(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v;return K(function(y){if(1==y.g){d=Kc;e=[];f=Math.max(0,c.appendWindowStart-.1);g=c.appendWindowEnd+.01;h=Sc(b.stream.codecs)[0];k=Tc(b.stream.mimeType);l=c.timestampOffset;if(l==b.Me&&f==b.Ke&&g==b.Je&&h==b.Le&&k==b.Of)return y.B(2);if(m=b.Le&&b.Of&&ej(a.g.T,b.type,b.stream))n=null,b.type===d.ca?n=a.h.get(d.R):b.type===d.R&&(n=a.h.get(d.ca)),n&&(n.fc=null,rk(a,n),ek(n).catch(function(){}));q=function(){var z,x,A,B;return K(function(D){if(1==D.g)return z=
401
- new Map,a.j.audio&&z.set(d.R,a.j.audio),a.j.video&&z.set(d.ca,a.j.video),ta(D,2),b.Ke=f,b.Je=g,b.Le=h,b.Of=k,b.Me=l,x=a.m.sequenceMode||"HLS"==a.m.type,C(D,Wi(a.g.T,b.type,l,f,g,x,b.stream,z),4);if(2!=D.g)return m&&(A=null,b.type===d.ca?A=a.h.get(d.R):b.type===d.R&&(A=a.h.get(d.ca)),A&&(A.rb=!1,A.Ba=!1,rk(a,A))),va(D,0);B=wa(D);b.Ke=null;b.Je=null;b.Le=null;b.Me=null;throw B;})};return C(y,q(),2)}Ch(c.h,b.fc)||(b.fc=c.h,c.m&&c.h&&(p=Ck(a,b,c.h),u=function(){var z,x,A,B,D,E;return K(function(J){switch(J.g){case 1:return ta(J,
399
+ function Dk(a,b,c){if(!Array.from(a.h.values()).some(function(e){return e!=b&&e.Ze})){var d=Math.round(100*a.u);if(20<d)a.u-=.2;else if(4<d)a.u-=.04;else{b.Sc=!0;a.s=!0;a.g.onError(c);return}b.Ze=!0}jk(a,b,4)}
400
+ function zk(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v;return K(function(y){if(1==y.g){d=Kc;e=[];f=Math.max(0,c.appendWindowStart-.1);g=c.appendWindowEnd+.01;h=Sc(b.stream.codecs)[0];k=Tc(b.stream.mimeType);l=c.timestampOffset;if(l==b.Me&&f==b.Ke&&g==b.Je&&h==b.Le&&k==b.Nf)return y.B(2);if(m=b.Le&&b.Nf&&ej(a.g.T,b.type,b.stream))n=null,b.type===d.ca?n=a.h.get(d.R):b.type===d.R&&(n=a.h.get(d.ca)),n&&(n.fc=null,rk(a,n),ek(n).catch(function(){}));q=function(){var z,x,A,B;return K(function(D){if(1==D.g)return z=
401
+ new Map,a.j.audio&&z.set(d.R,a.j.audio),a.j.video&&z.set(d.ca,a.j.video),ta(D,2),b.Ke=f,b.Je=g,b.Le=h,b.Nf=k,b.Me=l,x=a.m.sequenceMode||"HLS"==a.m.type,C(D,Wi(a.g.T,b.type,l,f,g,x,b.stream,z),4);if(2!=D.g)return m&&(A=null,b.type===d.ca?A=a.h.get(d.R):b.type===d.R&&(A=a.h.get(d.ca)),A&&(A.rb=!1,A.Ba=!1,rk(a,A))),va(D,0);B=wa(D);b.Ke=null;b.Je=null;b.Le=null;b.Me=null;throw B;})};return C(y,q(),2)}Ch(c.h,b.fc)||(b.fc=c.h,c.m&&c.h&&(p=Ck(a,b,c.h),u=function(){var z,x,A,B,D,E;return K(function(J){switch(J.g){case 1:return ta(J,
402
402
  2),C(J,p,4);case 4:return z=J.h,xf(a.l),x=null,A=new Map,B=new Qf,B.box("moov",Vf).box("trak",Vf).box("mdia",Vf).O("mdhd",function(G){x=Th(G.reader,G.version).timescale}).box("hdlr",function(G){G=G.reader;G.skip(8);G=G.pb(4);var H=String.fromCharCode(G[0]);H+=String.fromCharCode(G[1]);H+=String.fromCharCode(G[2]);H+=String.fromCharCode(G[3]);switch(H){case "soun":A.set(d.R,x);break;case "vide":A.set(d.ca,x)}x=null}).parse(z),A.has(b.type)?c.h.timescale=A.get(b.type):null!=x&&(c.h.timescale=x),D=b.stream.closedCaptions&&
403
- 0<b.stream.closedCaptions.size,C(J,a.g.xf(b.type,z),5);case 5:return C(J,Ni(a.g.T,b.type,z,null,b.stream,D),6);case 6:va(J,0);break;case 2:throw E=wa(J),b.fc=null,E;}})},a.g.th(c.startTime,c.h),e.push(u())));a.m.sequenceMode&&(v=b.Aa?b.Aa.l:null,c.l!=v||b.Re)&&(b.Re=!1,e.push(Yi(a.g.T,b.type,c.startTime)));return C(y,Promise.all(e),0)})}
403
+ 0<b.stream.closedCaptions.size,C(J,a.g.wf(b.type,z),5);case 5:return C(J,Ni(a.g.T,b.type,z,null,b.stream,D),6);case 6:va(J,0);break;case 2:throw E=wa(J),b.fc=null,E;}})},a.g.sh(c.startTime,c.h),e.push(u())));a.m.sequenceMode&&(v=b.Aa?b.Aa.l:null,c.l!=v&&e.push(Yi(a.g.T,b.type,c.startTime)));return C(y,Promise.all(e),0)})}
404
404
  function Bk(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h,k,l,m,n,q;return K(function(p){switch(p.g){case 1:h=d.closedCaptions&&0<d.closedCaptions.size;l=null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.i.dispatchAllEmsgBoxes;m=a.i.parsePrftBox&&!a.C;if(l||m)k=new Qf;l&&k.O("emsg",function(u){var v=d.emsgSchemeIdUris;if(0===u.version){var y=u.reader.Yc();var z=u.reader.Yc();var x=u.reader.L();var A=u.reader.L();var B=u.reader.L();var D=u.reader.L();var E=e.startTime+A/x}else x=u.reader.L(),E=u.reader.lc()/
405
- x+e.timestampOffset,A=E-e.startTime,B=u.reader.L(),D=u.reader.L(),y=u.reader.Yc(),z=u.reader.Yc();u=u.reader.pb(u.reader.getLength()-u.reader.oa());if(v&&v.includes(y)||a.i.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==y?a.g.uh():(v=(new Map).set("detail",{startTime:E,endTime:E+B/x,schemeIdUri:y,value:z,timescale:x,presentationTimeDelta:A,eventDuration:B,id:D,messageData:u}),v=new Q("emsg",v),v.cancelable=!0,a.g.onEvent(v),v.defaultPrevented||"https://aomedia.org/emsg/ID3"!=y&&"https://developer.apple.com/streaming/emsg-id3"!=
406
- y||(y=Ph(u),y.length&&e&&a.g.vh([{cueTime:e.startTime,data:u,frames:y,dts:e.startTime,pts:e.startTime}],0,e.endTime)))});m&&k.O("prft",function(u){if(!a.C&&e.h.timescale){var v=u.reader,y=u.version;v.L();u=v.L();var z=v.L();u=1E3*u+z/Math.pow(2,32)*1E3;0===y?v=v.L():(y=v.L(),v=v.L(),v=y*Math.pow(2,32)+v);u=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+u)).getTime();v=(new Map).set("detail",{wallClockTime:u,programStartDate:new Date(u-v/e.h.timescale*1E3)});v=new Q("prft",v);a.g.onEvent(v);
407
- a.C=!0}});(l||m)&&k.parse(f);return C(p,Fk(a,b,c),2);case 2:return xf(a.l),n=b.ad,b.ad=!1,q=b.wf,b.wf=!1,C(p,a.g.xf(b.type,f),3);case 3:return C(p,Ni(a.g.T,b.type,f,e,d,h,n,q,g),4);case 4:xf(a.l),F(p)}})}function Fk(a,b,c){var d,e,f,g;return K(function(h){if(1==h.g){d=Math.max(a.i.bufferBehind,a.m.presentationTimeline.g);e=Ii(a.g.T,b.type);if(null==e)return h.return();f=c-e;g=f-d;return 1>=g?h.return():C(h,a.g.T.remove(b.type,e,e+g),2)}xf(a.l);F(h)})}
405
+ x+e.timestampOffset,A=E-e.startTime,B=u.reader.L(),D=u.reader.L(),y=u.reader.Yc(),z=u.reader.Yc();u=u.reader.pb(u.reader.getLength()-u.reader.oa());if(v&&v.includes(y)||a.i.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==y?a.g.th():(v=(new Map).set("detail",{startTime:E,endTime:E+B/x,schemeIdUri:y,value:z,timescale:x,presentationTimeDelta:A,eventDuration:B,id:D,messageData:u}),v=new Q("emsg",v),v.cancelable=!0,a.g.onEvent(v),v.defaultPrevented||"https://aomedia.org/emsg/ID3"!=y&&"https://developer.apple.com/streaming/emsg-id3"!=
406
+ y||(y=Ph(u),y.length&&e&&a.g.uh([{cueTime:e.startTime,data:u,frames:y,dts:e.startTime,pts:e.startTime}],0,e.endTime)))});m&&k.O("prft",function(u){if(!a.C&&e.h.timescale){var v=u.reader,y=u.version;v.L();u=v.L();var z=v.L();u=1E3*u+z/Math.pow(2,32)*1E3;0===y?v=v.L():(y=v.L(),v=v.L(),v=y*Math.pow(2,32)+v);u=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+u)).getTime();v=(new Map).set("detail",{wallClockTime:u,programStartDate:new Date(u-v/e.h.timescale*1E3)});v=new Q("prft",v);a.g.onEvent(v);
407
+ a.C=!0}});(l||m)&&k.parse(f);return C(p,Fk(a,b,c),2);case 2:return xf(a.l),n=b.ad,b.ad=!1,q=b.vf,b.vf=!1,C(p,a.g.wf(b.type,f),3);case 3:return C(p,Ni(a.g.T,b.type,f,e,d,h,n,q,g),4);case 4:xf(a.l),F(p)}})}function Fk(a,b,c){var d,e,f,g;return K(function(h){if(1==h.g){d=Math.max(a.i.bufferBehind,a.m.presentationTimeline.g);e=Ii(a.g.T,b.type);if(null==e)return h.return();f=c-e;g=f-d;return 1>=g?h.return():C(h,a.g.T.remove(b.type,e,e+g),2)}xf(a.l);F(h)})}
408
408
  function wk(a){return a&&a.type==Jc&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
409
409
  function Ck(a,b,c,d){var e,f,g,h,k;return K(function(l){switch(l.g){case 1:if(c instanceof Bh&&(e=c.g))return l.return(e);f=null;if(b.pa){var m=b.pa;if(m.g.has(c)){var n=m.g.get(c);d&&(n.h=d);m.g.delete(c);f=n.g}else f=null}f||(f=sk(a,c,b.stream,d));g=0;b.X&&(g=b.X.g);b.La=f;return C(l,f.promise,2);case 2:h=l.h;b.La=null;k=h.data;if(!c.aes128Key){l.B(3);break}return C(l,Ek(k,c.aes128Key,g),4);case 4:k=l.h;case 3:return l.return(k)}})}
410
410
  function sk(a,b,c,d){var e=b instanceof R?b:void 0,f=e?1:0;b=ak(b.Y(),b.Oa,b.ua,a.i.retryParameters,d);return a.g.Pb.request(uf,b,{type:f,stream:c,segment:e})}
@@ -429,12 +429,12 @@ function Ok(){}r=Ok.prototype;r.remove=function(){};r.append=function(){};r.dest
429
429
  "resize",function(){var d=c.A,e=d.videoWidth;d=d.videoHeight;e&&d?c.j=e/d:c.j=null});this.o=null;"ResizeObserver"in window&&(this.o=new ResizeObserver(function(){Sk(c,!0)}),this.o.observe(this.g));this.u=new Map}r=Rk.prototype;r.append=function(a){var b=[].concat(w(this.i)),c={};a=t(a);for(var d=a.next();!d.done;c={fd:c.fd},d=a.next())c.fd=d.value,b.some(function(e){return function(f){return Vb(f,e.fd)}}(c))||this.i.push(c.fd);Sk(this)};
430
430
  r.destroy=function(){if(!this.g)return Promise.resolve();this.s.removeChild(this.g);this.g=null;this.m=!1;this.i=[];this.C&&this.C.stop();this.h.clear();this.l&&(this.l.release(),this.l=null);this.o&&(this.o.disconnect(),this.o=null);return Promise.resolve()};r.remove=function(a,b){if(!this.g)return!1;var c=this.i.length;this.i=this.i.filter(function(d){return d.startTime<a||d.endTime>=b});Sk(this,c>this.i.length);return!0};r.isTextVisible=function(){return this.m};
431
431
  r.setTextVisibility=function(a){this.m=a};function Tk(a,b){for(;null!=b;){if(b==a.g)return!0;b=b.parentElement}return!1}
432
- function Uk(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.h.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.lg:null;l&&(g.push(l.ie),l.Zc&&g.push(l.Zc),m||(f=!0,a.h.delete(k),l=null));m&&(h.push(k),l?Tk(a,n)||(f=!0):(Vk(a,k,e),l=a.h.get(k),n=l.lg,f=!0));0<k.nestedCues.length&&n&&Uk(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(q,p){return q.startTime!=
432
+ function Uk(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.h.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.kg:null;l&&(g.push(l.ie),l.Zc&&g.push(l.Zc),m||(f=!0,a.h.delete(k),l=null));m&&(h.push(k),l?Tk(a,n)||(f=!0):(Vk(a,k,e),l=a.h.get(k),n=l.kg,f=!0));0<k.nestedCues.length&&n&&Uk(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(q,p){return q.startTime!=
433
433
  p.startTime?q.startTime-p.startTime:q.endTime-p.endTime});h=t(h);for(k=h.next();!k.done;k=h.next())d=a.h.get(k.value),d.Zc?(c.appendChild(d.Zc),d.Zc.appendChild(d.ie)):c.appendChild(d.ie)}}function Sk(a,b){if(a.g){var c=a.A.currentTime;if(!a.m||(void 0===b?0:b)){b=t(a.u.values());for(var d=b.next();!d.done;d=b.next())Qk(d.value);Qk(a.g);a.h.clear();a.u.clear()}if(a.m){b=new Map;d=t(a.h.keys());for(var e=d.next();!e.done;e=d.next())e=e.value,b.set(e,a.h.get(e));Uk(a,a.i,a.g,c,[])}}}
434
434
  function Vk(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=document.createElement(e);"br"!=e&&Wk(a,f,b,c,d);c=null;if(b.region&&b.region.id){c=b.region;e=a.j===4/3?2.5:1.9;var g=c.id+"_"+c.width+"x"+c.height+(c.heightUnits==bc?"%":"px")+"-"+c.viewportAnchorX+"x"+c.viewportAnchorY+(c.viewportAnchorUnits==bc?"%":"px");if(a.u.has(g))c=a.u.get(g);else{var h=document.createElement("span"),k=c.heightUnits==bc?"%":"px",l=c.widthUnits==
435
435
  bc?"%":"px",m=c.viewportAnchorUnits==bc?"%":"px";h.id="shaka-text-region---"+g;h.classList.add("shaka-text-region");h.style.position="absolute";2===c.heightUnits&&2===c.widthUnits?(h.style.height=5.33*c.height+"%",h.style.width=c.width*e+"%"):(h.style.height=c.height+k,h.style.width=c.width+l);2===c.viewportAnchorUnits?(k=c.viewportAnchorY/75*100,l=c.viewportAnchorX/(a.j===4/3?160:210)*100,k-=c.regionAnchorY*c.height*5.33/100,l-=c.regionAnchorX*c.width*e/100,h.style.top=k+"%",h.style.left=l+"%"):
436
436
  (h.style.top=c.viewportAnchorY-c.regionAnchorY*c.height/100+m,h.style.left=c.viewportAnchorX-c.regionAnchorX*c.width/100+m);h.style.display="flex";h.style.flexDirection="column";h.style.alignItems="center";h.style.justifyContent="before"==b.displayAlign?"flex-start":"center"==b.displayAlign?"center":"flex-end";a.u.set(g,h);c=h}}e=f;d&&(e=document.createElement("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,e.style.lineHeight="normal",f.appendChild(e));a.h.set(b,
437
- {ie:f,lg:e,Zc:c})}function Xk(a){var b=a.direction,c=a.positionAlign;a=a.textAlign;return c!==Kb?c:"left"===a||"start"===a&&b===Mb||"end"===a&&"rtl"===b?"line-left":"right"===a||"start"===a&&"rtl"===b||"end"===a&&b===Mb?"line-right":"center"}
437
+ {ie:f,kg:e,Zc:c})}function Xk(a){var b=a.direction,c=a.positionAlign;a=a.textAlign;return c!==Kb?c:"left"===a||"start"===a&&b===Mb||"end"===a&&"rtl"===b?"line-left":"right"===a||"start"===a&&"rtl"===b||"end"===a&&b===Mb?"line-right":"center"}
438
438
  function Wk(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=Yk(c.linePadding,c,a.s);f.paddingRight=Yk(c.linePadding,c,a.s);f.textCombineUpright=c.textCombineUpright;f.textShadow=c.textShadow;if(c.backgroundImage)f.backgroundImage=
439
439
  "url('"+c.backgroundImage+"')",f.backgroundRepeat="no-repeat",f.backgroundSize="contain",f.backgroundPosition="center",f.width="100%",f.height="100%";else{if(c.nestedCues.length)var l=b;else l=document.createElement("span"),b.appendChild(l);c.border&&(l.style.border=c.border);!e&&((b=Zk(d,function(m){return m.backgroundColor}))?l.style.backgroundColor=b:k&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)"),b=Zk(d,function(m){return m.fontFamily}))&&(l.style.fontFamily=b);k&&(l.textContent=k)}h&&!d[d.length-
440
440
  1].isContainer?f.display="inline":(f.display="flex",f.flexDirection="column",f.alignItems="center",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=Yk(c.fontSize,c,a.s);d=c.line;null!=d&&(g=c.lineInterpretation,g==Ob&&(g=1,h=16,a.j&&1>a.j&&(h=32),d=0>d?100+d/h*100:d/h*100),1==g&&(f.position="absolute",
@@ -450,7 +450,7 @@ function ll(a){if(0===a.type)return ml;if(a=a.stream){var b=a.type;if("video"==b
450
450
  function tl(a,b){var c=a.h.Ab();if(!c.length)return NaN;a=c[0];c=t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,"variant"===d.type&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case jl:return a.videoBandwidth||NaN;case dl:return a.audioBandwidth||NaN;default:return a.bandwidth}}
451
451
  function gl(a){function b(n){return 100*c(n/100)}function c(n){return Math.round(n)}function d(n){return!Number.isNaN(n)&&null!=n&&""!==n&&!1!==n}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(n){return encodeURIComponent(n)},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=t(g);for(var h=g.next();!h.done;h=g.next()){h=h.value;var k=a[h];if(d(k)&&("v"!==h||1!==k)&&("pr"!=h||1!==k)){var l=f[h];l&&(k=l(k));l=typeof k;var m=void 0;m="string"===l&&"ot"!==h&&"sf"!==h&&"st"!==h?h+"="+JSON.stringify(k):"boolean"===
452
452
  l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function kl(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=gl(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
453
- function hl(a,b){if(!b||a.includes("offline:"))return a;a=new mc(a);a.g.set("CMCD",b);return a.toString()}var fl="m",dl="a",jl="v",el="av",ml="i",rl="c",ql="tt";N("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",ng:"s",OTHER:"o"});function ul(){}
453
+ function hl(a,b){if(!b||a.includes("offline:"))return a;a=new mc(a);a.g.set("CMCD",b);return a.toString()}var fl="m",dl="a",jl="v",el="av",ml="i",rl="c",ql="tt";N("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",mg:"s",OTHER:"o"});function ul(){}
454
454
  function vl(a,b,c,d,e){var f=e in d,g=!0,h;for(h in b){var k=e+"."+h,l=f?d[e]:c[h];f||h in c?void 0===b[h]?void 0===l||f?delete a[h]:a[h]=ff(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=ff(l)),k=vl(a[h],b[h],l,d,k),g=g&&k):typeof b[h]!=typeof l||null==b[h]||"function"!=typeof b[h]&&b[h].constructor!=l.constructor?(Ta("Invalid config, wrong type for "+k),g=!1):("function"==typeof c[h]&&c[h].length!=b[h].length&&Ua("Unexpected number of arguments for "+k),a[h]=b[h]):(Ta("Invalid config, unrecognized key "+
455
455
  k),g=!1)}return g}function wl(a,b){for(var c={},d=c,e=0,f=0;;){e=a.indexOf(".",e);if(0>e)break;if(0==e||"\\"!=a[e-1])f=a.substring(f,e).replace(/\\\./g,"."),d[f]={},d=d[f],f=e+1;e+=1}d[a.substring(f).replace(/\\\./g,".")]=b;return c}function xl(a,b){return a&&b}N("shaka.util.ConfigUtils",ul);ul.convertToConfigObject=wl;ul.mergeConfigObjects=vl;function yl(){this.g=null;this.h=[]}function zl(a,b){return K(function(c){if(1==c.g)return a.g?C(c,new Promise(function(d){return a.h.push(d)}),2):c.B(2);a.g=b;F(c)})}yl.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null};function Al(){}function Bl(a){a=If(a);return(new mc(a)).kb}function Cl(a,b,c){function d(h){yb(f).setUint32(g,h.byteLength,!0);g+=4;f.set(sb(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new P(2,6,6015);var e;"string"==typeof b?e=Kf(b,!0):e=b;a=If(a);a=Kf(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}function Dl(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=If(a).split("skd://").pop();return Cl(a,c,b)}
456
456
  function El(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")}N("shaka.util.FairPlayUtils",Al);Al.commonFairPlayResponse=function(a,b){if(2===a){try{var c=Ff(b.data)}catch(e){return}a=!1;c=c.trim();"<ckc>"===c.substr(0,5)&&"</ckc>"===c.substr(-6)&&(c=c.slice(5,-6),a=!0);try{var d=JSON.parse(c);d.ckc&&(c=d.ckc,a=!0);d.CkcMessage&&(c=d.CkcMessage,a=!0);d.License&&(c=d.License,a=!0)}catch(e){}a&&(b.data=tb(dg(c)))}};Al.expressplayFairPlayRequest=function(a,b){El(a,b)};
@@ -469,18 +469,18 @@ navigator.platform.toLowerCase().includes("windows"))&&ud()||(f="smooth");var g=
469
469
  preferredAudioCodecs:[],preferForcedSubs:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:Infinity,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity},playRangeStart:0,playRangeEnd:Infinity,textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",useHeaders:!1},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1},ads:{customPlayheadTracker:!1}};e.trackSelectionCallback=
470
470
  function(h){return K(function(k){return k.return(Hl(h,g.preferredAudioLanguage,g.preferredVideoHdrLevel))})};return g}function Il(a,b,c){var d={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:""}};return vl(a,b,c||Gl(),d,"")}
471
471
  function Hl(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=od(b,e.map(function(h){return h.language}));f&&(c=e.filter(function(h){return hd(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-
472
- 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!=Jc&&"image"!=c.type||b.push(c);return b}N("shaka.util.PlayerConfiguration",Fl);Fl.mergeConfigObjects=Il;Fl.createDefault=Gl;function Jl(){this.g=null;this.h=[]}function Kl(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 Ll(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 Ml(){this.i=this.h=null;this.g=[]}function Nl(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 Ol(){this.u=this.A=this.G=this.C=this.s=this.j=this.F=this.m=this.i=this.K=this.N=this.H=this.I=this.J=this.l=this.o=NaN;this.g=new Jl;this.h=new Ml};function X(a,b){ef.call(this);var c=this;this.l=Pl;this.td=this.g=null;this.Z=!1;this.wd=new fb;this.wb=new fb;this.o=new fb;this.za=new fb;this.C=this.F=this.m=this.H=null;this.Fd=0;this.W=new yl;this.ia=this.aa=this.i=this.Hd=this.G=this.j=this.la=this.J=this.Tf=this.V=this.ya=this.K=this.I=this.ib=null;this.Kc=!1;this.He=this.s=null;this.Oe=1E9;this.Jc=[];this.N=NaN;this.h=Ql(this);this.Dd={width:Infinity,height:Infinity};this.u=null;this.Da=new He(this.h.preferredAudioLanguage,this.h.preferredVariantRole,
473
- this.h.preferredAudioChannelCount,this.h.preferredVideoHdrLevel,this.h.preferredVideoLayout,this.h.preferredAudioLabel,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups);this.hb=this.h.preferredTextLanguage;this.Hc=this.h.preferredTextRole;this.pc=this.h.preferForcedSubs;this.Gc=[];b&&b(this);this.V=Rl(this);this.H=Sl(this);this.H.hf(this.h.streaming.forceHTTPS);this.A=null;Tl&&(this.A=Tl(),this.A.configure(this.h.ads));this.wd.D(window,"online",function(){Ul(c);c.af()});
472
+ 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!=Jc&&"image"!=c.type||b.push(c);return b}N("shaka.util.PlayerConfiguration",Fl);Fl.mergeConfigObjects=Il;Fl.createDefault=Gl;function Jl(){this.g=null;this.h=[]}function Kl(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 Ll(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 Ml(){this.i=this.h=null;this.g=[]}function Nl(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 Ol(){this.u=this.A=this.G=this.C=this.s=this.j=this.F=this.m=this.i=this.K=this.N=this.H=this.I=this.J=this.l=this.o=NaN;this.g=new Jl;this.h=new Ml};function X(a,b){ef.call(this);var c=this;this.l=Pl;this.td=this.g=null;this.Z=!1;this.wd=new fb;this.wb=new fb;this.o=new fb;this.za=new fb;this.C=this.F=this.m=this.H=null;this.Fd=0;this.W=new yl;this.ia=this.aa=this.i=this.Hd=this.G=this.j=this.la=this.J=this.Sf=this.V=this.ya=this.K=this.I=this.ib=null;this.Kc=!1;this.He=this.s=null;this.Oe=1E9;this.Jc=[];this.N=NaN;this.h=Ql(this);this.Dd={width:Infinity,height:Infinity};this.u=null;this.Da=new He(this.h.preferredAudioLanguage,this.h.preferredVariantRole,
473
+ this.h.preferredAudioChannelCount,this.h.preferredVideoHdrLevel,this.h.preferredVideoLayout,this.h.preferredAudioLabel,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups);this.hb=this.h.preferredTextLanguage;this.Hc=this.h.preferredTextRole;this.pc=this.h.preferForcedSubs;this.Gc=[];b&&b(this);this.V=Rl(this);this.H=Sl(this);this.H.gf(this.h.streaming.forceHTTPS);this.A=null;Tl&&(this.A=Tl(),this.A.configure(this.h.ads));this.wd.D(window,"online",function(){Ul(c);c.$e()});
474
474
  this.ud=new qd(function(){return Vl(c)});a&&(ve("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.Ic(a,!0))}pa(X,ef);function Wl(a){null!=a.J&&(ri(a.J),a.J.release(),a.J=null)}
475
- function Xl(a,b){if(b.lcevc.enabled){var c=a.Ab();c&&c[0]&&"video/mp2t"==c[0].videoMimeType&&(ud()||navigator.userAgent.match(/Edge\//))&&(b.mediaSource.forceTransmux||Ua("LCEVC Warning: For MPEG-2 TS decoding the config.mediaSource.forceTransmux must be enabled."));Wl(a);null==a.J&&(a.J=new qi(a.g,a.Tf,b.lcevc),a.F&&(a.F.V=a.J))}else Wl(a)}function Yl(a,b){return new Q(a,b)}r=X.prototype;
475
+ function Xl(a,b){if(b.lcevc.enabled){var c=a.Ab();c&&c[0]&&"video/mp2t"==c[0].videoMimeType&&(ud()||navigator.userAgent.match(/Edge\//))&&(b.mediaSource.forceTransmux||Ua("LCEVC Warning: For MPEG-2 TS decoding the config.mediaSource.forceTransmux must be enabled."));Wl(a);null==a.J&&(a.J=new qi(a.g,a.Sf,b.lcevc),a.F&&(a.F.V=a.J))}else Wl(a)}function Yl(a,b){return new Q(a,b)}r=X.prototype;
476
476
  r.destroy=function(){var a=this,b;return K(function(c){switch(c.g){case 1:if(a.l==Zl)return c.return();Wl(a);b=a.detach();a.l=Zl;return C(c,b,2);case 2:a.wd&&(a.wd.release(),a.wd=null);a.wb&&(a.wb.release(),a.wb=null);a.o&&(a.o.release(),a.o=null);a.za&&(a.za.release(),a.za=null);a.He=null;a.h=null;a.u=null;a.td=null;a.V=null;if(!a.H){c.B(3);break}return C(c,a.H.destroy(),4);case 4:a.H=null;case 3:a.s&&(a.s.release(),a.s=null),ef.prototype.release.call(a),F(c)}})};
477
477
  function $l(a,b){a.dispatchEvent(Yl("onstatechange",(new Map).set("state",b)))}
478
478
  r.Ic=function(a,b){b=void 0===b?!0:b;var c=this,d,e;return K(function(f){switch(f.g){case 1:if(c.l==Zl)throw new P(2,7,7E3);if(!c.g||c.g==a){f.B(2);break}return C(f,c.detach(),2);case 2:return C(f,am(c,"attach"),4);case 4:if(f.h)return f.return();ta(f,5,6);$l(c,"attach");d=function(){var g=bm(c);g&&cm(c,g)};c.wb.D(a,"error",d);c.g=a;if(!b||!rd()||c.F){f.B(6);break}return C(f,dm(c),6);case 6:xa(f);c.W.release();ya(f,0);break;case 5:return e=wa(f),C(f,c.detach(),10);case 10:throw e;}})};
479
- r.tg=function(a){this.Tf=a};r.detach=function(a){a=void 0===a?!1:a;var b=this;return K(function(c){if(1==c.g){if(b.l==Zl)throw new P(2,7,7E3);return C(c,b.oc(!1,a),2)}if(3!=c.g)return C(c,am(b,"detach"),3);if(c.h)return c.return();try{b.g&&(b.wb.Xa(),b.g=null),$l(b,"detach"),b.A&&!a&&b.A.release()}finally{b.W.release()}F(c)})};function am(a,b){var c;return K(function(d){return 1==d.g?(c=++a.Fd,C(d,zl(a.W,b),2)):c!=a.Fd?(a.W.release(),d.return(!0)):d.return(!1)})}
479
+ r.sg=function(a){this.Sf=a};r.detach=function(a){a=void 0===a?!1:a;var b=this;return K(function(c){if(1==c.g){if(b.l==Zl)throw new P(2,7,7E3);return C(c,b.oc(!1,a),2)}if(3!=c.g)return C(c,am(b,"detach"),3);if(c.h)return c.return();try{b.g&&(b.wb.Xa(),b.g=null),$l(b,"detach"),b.A&&!a&&b.A.release()}finally{b.W.release()}F(c)})};function am(a,b){var c;return K(function(d){return 1==d.g?(c=++a.Fd,C(d,zl(a.W,b),2)):c!=a.Fd?(a.W.release(),d.return(!0)):d.return(!1)})}
480
480
  r.oc=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d,e,f,g,h,k,l,m,n;return K(function(q){switch(q.g){case 1:return c.l!=Zl&&(c.l=Pl),C(q,am(c,"unload"),2);case 2:if(q.h)return q.return();ua(q,3);c.Kc=!1;$l(c,"unload");a&&!rd()&&(a=!1);Wl(c);d=c.Gc.map(function(p){return p()});c.Gc=[];return C(q,Promise.all(d),5);case 5:c.dispatchEvent(Yl("unloading"));c.ya&&(c.ya.release(),c.ya=null);c.g&&(c.o.Xa(),c.za.Xa());c.ud.stop();c.ib&&(c.ib.release(),c.ib=null);if(!c.G){q.B(6);break}return C(q,
481
481
  c.G.stop(),7);case 7:c.G=null,c.Hd=null;case 6:if(!c.s){q.B(8);break}return C(q,c.s.stop(),8);case 8:if(!c.j){q.B(10);break}return C(q,c.j.destroy(),11);case 11:c.j=null;case 10:c.I&&(c.I.release(),c.I=null);c.C&&(c.C.release(),c.C=null);if(!c.F){q.B(12);break}return C(q,c.F.destroy(),13);case 13:c.F=null;case 12:if(c.A&&!b)c.A.onAssetUnload();c.g&&Qk(c.g);if(!c.g||!c.g.src){q.B(14);break}return C(q,new Promise(function(p){return(new qd(p)).U(.1)}),15);case 15:c.g.removeAttribute("src"),c.g.load();
482
482
  case 14:if(!c.m){q.B(16);break}return C(q,c.m.destroy(),17);case 17:c.m=null;case 16:c.aa=null;c.K=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&&l.segmentIndex.release();m=t(c.i.textStreams);for(k=m.next();!k.done;k=m.next())n=k.value,n.segmentIndex&&n.segmentIndex.release()}c.i=null;c.u=new Ol;c.Ie=null;c.Jc=[];c.N=NaN;em(c);case 3:xa(q);c.W.release();ya(q,4);break;case 4:if(a&&rd()&&
483
- !c.F)return C(q,dm(c),0);q.B(0)}})};r.Uh=function(a){this.ia=a};
483
+ !c.F)return C(q,dm(c),0);q.B(0)}})};r.Th=function(a){this.ia=a};
484
484
  r.load=function(a,b,c){b=void 0===b?null:b;var d=this,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:if(d.l==Zl)throw new P(2,7,7E3);return C(m,zl(d.W,"load"),2);case 2:d.W.release();if(!d.g)throw new P(2,7,7002);if(!d.aa){m.B(3);break}return C(m,d.oc(!1),3);case 3:e=++d.Fd;f=function(){if(d.Fd!=e)throw new P(2,7,7E3);};g=function(n,q){return K(function(p){switch(p.g){case 1:return ua(p,2),C(p,zl(d.W,q),4);case 4:return f(),C(p,n(),5);case 5:f();case 2:xa(p),d.W.release(),ya(p,0)}})};ta(m,5);
485
485
  d.ia=b;d.Kc=!1;d.dispatchEvent(Yl("loading"));h=Date.now()/1E3;d.u=new Ol;d.aa=a;if(c){m.B(7);break}return C(m,g(function(){return K(function(n){if(1==n.g)return C(n,fm(d),2);c=n.h;F(n)})},"guessMimeType_"),7);case 7:if(k=gm(d,c))return C(m,g(function(){return K(function(n){return C(n,hm(d,c),0)})},"initializeSrcEqualsDrmInner_"),16);if(d.F){m.B(11);break}return C(m,g(function(){return K(function(n){return C(n,dm(d),0)})},"initializeMediaSourceEngineInner_"),11);case 11:return C(m,g(function(){return K(function(n){return C(n,
486
486
  im(d,c),0)})},"parseManifestInner_"),13);case 13:return C(m,g(function(){return K(function(n){return C(n,jm(d),0)})},"initializeDrmInner_"),14);case 14:return C(m,g(function(){return K(function(n){return C(n,km(d,h),0)})},"loadInner_"),10);case 16:return C(m,g(function(){return K(function(n){return C(n,lm(d,h,c),0)})},"srcEqualsInner_"),10);case 10:d.dispatchEvent(Yl("loaded"));va(m,0);break;case 5:l=wa(m);if(7E3==l.code){m.B(18);break}return C(m,d.oc(!1),18);case 18:throw l;}})};
@@ -493,7 +493,7 @@ a.ya;a:{var p=t(q.g);for(var u=p.next();!u.done;u=p.next())if(u=u.value,u.scheme
493
493
  sm(a.i);k=Date.now()/1E3;l=k-f;a.u.F=l;F(m)})}
494
494
  function jm(a){var b,c,d,e;return K(function(f){return 1==f.g?($l(a,"drm-engine"),b=Date.now()/1E3,c=!0,a.m=tm(a,{Pb:a.H,onError:function(g){cm(a,g)},Pd:function(g){um(a,g)},onExpirationUpdated:function(g,h){vm(a,g,h)},onEvent:function(g){a.dispatchEvent(g);"drmsessionupdate"==g.type&&c&&(c=!1,a.u.j=Date.now()/1E3-b,a.J&&ri(a.J))}}),a.m.configure(a.h.drm),(d=Nd(a.i.variants,a.h.restrictions,a.Dd))&&a.j&&wm(a),e=le(a.i.variants),C(f,Mg(a.m,e,a.i.offlineSessionIds),2)):3!=f.g?C(f,a.m.Ic(a.g),3):C(f,
495
495
  pm(a,a.i),0)})}
496
- function km(a,b){var c,d,e,f,g,h,k,l,m,n,q,p,u,v,y,z,x,A,B;return K(function(D){switch(D.g){case 1:$l(a,"load");c=a.g;a.I=new Fj({Bd:function(){return c.playbackRate},$b:function(){return c.defaultPlaybackRate},kf:function(E){c.playbackRate=E},Sf:function(E){c.currentTime+=E}});d=function(){return xm(a)};e=function(){return ym(a)};a.o.D(c,"playing",d);a.o.D(c,"pause",d);a.o.D(c,"ended",d);a.o.D(c,"ratechange",e);Xl(a,a.h);f=a.h.abrFactory;a.s&&a.He==f||(a.He=f,a.s=f(),"function"!=typeof a.s.setMediaElement&&(ve("AbrManager w/o setMediaElement",
496
+ function km(a,b){var c,d,e,f,g,h,k,l,m,n,q,p,u,v,y,z,x,A,B;return K(function(D){switch(D.g){case 1:$l(a,"load");c=a.g;a.I=new Fj({Bd:function(){return c.playbackRate},$b:function(){return c.defaultPlaybackRate},jf:function(E){c.playbackRate=E},Rf:function(E){c.currentTime+=E}});d=function(){return xm(a)};e=function(){return ym(a)};a.o.D(c,"playing",d);a.o.D(c,"pause",d);a.o.D(c,"ended",d);a.o.D(c,"ratechange",e);Xl(a,a.h);f=a.h.abrFactory;a.s&&a.He==f||(a.He=f,a.s=f(),"function"!=typeof a.s.setMediaElement&&(ve("AbrManager w/o setMediaElement",
497
497
  "Please use an AbrManager with setMediaElement function."),a.s.setMediaElement=function(){}),a.s.configure(a.h.abr));a.Da=new He(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount,a.h.preferredVideoHdrLevel,a.h.preferredVideoLayout,a.h.preferredAudioLabel,a.h.mediaSource.codecSwitchingStrategy,a.h.manifest.dash.enableAudioGroups);a.hb=a.h.preferredTextLanguage;a.Hc=a.h.preferredTextRole;a.pc=a.h.preferForcedSubs;zm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);
498
498
  a.s.init(function(E,J,G){a.j&&E!=a.j.j&&Am(a,E,!0,void 0===J?!1:J,void 0===G?0:G)});a.s.setMediaElement(c);Jd(a.i,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredDecodingAttributes);a.j=Bm(a);a.j.configure(a.h.streaming);a.l=Cm;c.textTracks&&a.o.D(c.textTracks,"addtrack",function(E){if(E.track)switch(E=E.track,E.kind){case "chapters":Dm(a,E)}});a.dispatchEvent(Yl("streaming"));g=null;(h=a.j.j)||(g=Em(a,!0));k=[];l=h||g;m=t([l.video,l.audio]);for(n=m.next();!n.done;n=m.next())(q=n.value)&&
499
499
  !q.segmentIndex&&k.push(q.createSegmentIndex());if(!(0<k.length)){D.B(2);break}return C(D,Promise.all(k),2);case 2:if(a.G&&a.G.onInitialVariantChosen)a.G.onInitialVariantChosen(l);zm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.C=Fm(a,a.ia);a.ib=Gm(a,b);p=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);Hm(a,c,p);if(h){D.B(4);break}Am(a,g,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){D.B(4);break}u=a.C;v=u.nd;return C(D,Im(g,a.C.Fc()),6);case 6:v.call(u,D.h);case 4:return a.C.ce(),
@@ -501,14 +501,14 @@ y=a.dc().find(function(E){return E.active}),y||((z=me(a.i.textStreams,a.hb,a.Hc,
501
501
  function(){return Om(a)},a.o.D(c,"timeupdate",B),Om(a));if(a.A)a.A.onManifestUpdated(x);a.Kc=!0;a.o.ha(c,"loadedmetadata",function(){a.u.m=Date.now()/1E3-b});F(D)}})}
502
502
  function hm(a,b){var c,d,e,f;return K(function(g){return 1==g.g?(c=Kc,d=Date.now()/1E3,e=!0,a.m=tm(a,{Pb:a.H,onError:function(h){cm(a,h)},Pd:function(h){um(a,h)},onExpirationUpdated:function(h,k){vm(a,h,k)},onEvent:function(h){a.dispatchEvent(h);"drmsessionupdate"==h.type&&e&&(e=!1,a.u.j=Date.now()/1E3-d)}}),a.m.configure(a.h.drm),f={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:{id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,
503
503
  mimeType:b?Tc(b):"",codecs:b?Uc(b):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:c.ca,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},a.m.Z=!0,C(g,Mg(a.m,[f],[]),2)):C(g,a.m.Ic(a.g),0)})}
504
- function lm(a,b,c){var d,e,f,g,h,k,l,m,n,q;return K(function(p){if(1==p.g)return $l(a,"src-equals"),d=a.g,a.C=new uj(d),e=!1,a.Gc.push(function(){e=!0}),null!=a.ia&&a.C.nd(a.ia),a.I=new Fj({Bd:function(){return d.playbackRate},$b:function(){return d.defaultPlaybackRate},kf:function(u){d.playbackRate=u},Sf:function(u){d.currentTime+=u}}),f=a.h.streaming.rebufferingGoal,Hm(a,d,f),g=function(){return xm(a)},h=function(){return ym(a)},a.o.D(d,"playing",g),a.o.D(d,"pause",g),a.o.D(d,"ended",g),a.o.D(d,
504
+ function lm(a,b,c){var d,e,f,g,h,k,l,m,n,q;return K(function(p){if(1==p.g)return $l(a,"src-equals"),d=a.g,a.C=new uj(d),e=!1,a.Gc.push(function(){e=!0}),null!=a.ia&&a.C.nd(a.ia),a.I=new Fj({Bd:function(){return d.playbackRate},$b:function(){return d.defaultPlaybackRate},jf:function(u){d.playbackRate=u},Rf:function(u){d.currentTime+=u}}),f=a.h.streaming.rebufferingGoal,Hm(a,d,f),g=function(){return xm(a)},h=function(){return ym(a)},a.o.D(d,"playing",g),a.o.D(d,"pause",g),a.o.D(d,"ended",g),a.o.D(d,
505
505
  "ratechange",h),"none"!=d.preload&&a.o.ha(d,"loadedmetadata",function(){a.u.m=Date.now()/1E3-b}),d.audioTracks&&(a.o.D(d.audioTracks,"addtrack",function(){return wm(a)}),a.o.D(d.audioTracks,"removetrack",function(){return wm(a)}),a.o.D(d.audioTracks,"change",function(){return wm(a)})),d.textTracks&&(a.o.D(d.textTracks,"addtrack",function(u){if(u.track)switch(u=u.track,u.kind){case "metadata":Pm(a,u);break;case "chapters":Dm(a,u);break;default:wm(a)}}),a.o.D(d.textTracks,"removetrack",function(){return wm(a)}),
506
506
  a.o.D(d.textTracks,"change",function(){return wm(a)})),d.src=bl(a.V,a.aa,c),(xd()||wd("Web0S"))&&d.load(),a.l=Qm,a.dispatchEvent(Yl("streaming")),k=new Ve,lj(d,HTMLMediaElement.HAVE_METADATA,a.o,function(){a.C.ce();k.resolve()}),lj(d,HTMLMediaElement.HAVE_CURRENT_DATA,a.o,function(){var u;return K(function(v){if(1==v.g)return Rm(a),u=Sm(a),u.find(function(y){return"disabled"!=y.mode})?(0<u.length&&(a.Z=!0),v.B(2)):C(v,new Promise(function(y){a.o.ha(d.textTracks,"change",y);(new qd(y)).U(1)}),2);if(e)return v.return();
507
507
  Tm(a);F(v)})}),d.error?k.reject(bm(a)):"none"==d.preload&&(Ua('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),k.resolve()),a.o.ha(d,"error",function(){k.reject(bm(a))}),C(p,k,2);(l=a.P())&&a.h.streaming.liveSync?(m=function(){return Nm(a)},a.o.D(d,"timeupdate",m)):l||(n=function(){return Om(a)},a.o.D(d,"timeupdate",
508
- n),Om(a));a.A&&(a.A.onManifestUpdated(l),l&&(q=a.Bb().end,a.o.D(d,"progress",function(){var u=a.Bb().end;q!=u&&(a.A.onManifestUpdated(a.P()),q=u)})));a.Kc=!0;F(p)})}function Rm(a){var b=a.h.preferredAudioLanguage;""!=b&&a.$f(b,a.h.preferredVariantRole)}function Tm(a){var b=a.h.preferredTextLanguage;""!=b&&a.df(b,a.h.preferredTextRole,a.h.preferForcedSubs)}
508
+ n),Om(a));a.A&&(a.A.onManifestUpdated(l),l&&(q=a.Bb().end,a.o.D(d,"progress",function(){var u=a.Bb().end;q!=u&&(a.A.onManifestUpdated(a.P()),q=u)})));a.Kc=!0;F(p)})}function Rm(a){var b=a.h.preferredAudioLanguage;""!=b&&a.Zf(b,a.h.preferredVariantRole)}function Tm(a){var b=a.h.preferredTextLanguage;""!=b&&a.cf(b,a.h.preferredTextRole,a.h.preferForcedSubs)}
509
509
  function Pm(a,b){if("metadata"==b.kind){b.mode="hidden";a.o.D(b,"cuechange",function(){if(b.activeCues)for(var d=t(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,Um(a,e.startTime,e.endTime,e.type,e.value),a.A)a.A.onCueMetadataChange(e.value)});var c=(new qd(function(){var d=Vm(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).nc().U(.5);a.Gc.push(function(){c.stop()})}}
510
510
  function nm(a,b,c,d){b=t(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,e.data&&e.cueTime&&e.frames){var f=e.cueTime+c,g=d;g&&f>g&&(g=f);for(var h=t(e.frames),k=h.next();!k.done;k=h.next())Um(a,f,g,"org.id3",k.value);if(a.A)a.A.onHlsTimedMetadata(e,f)}}function Um(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(Yl("metadata",b))}
511
- function Dm(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new qd(function(){b.mode="hidden"})).nc().U(.5);a.Gc.push(function(){c.stop()})}}function sm(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.Bh=function(){for(var a=this.W;a.g;)a.release()};function tm(a,b){return new Fg(b,a.h.drm.updateExpirationTime)}
511
+ function Dm(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new qd(function(){b.mode="hidden"})).nc().U(.5);a.Gc.push(function(){c.stop()})}}function sm(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.Ah=function(){for(var a=this.W;a.g;)a.release()};function tm(a,b){return new Fg(b,a.h.drm.updateExpirationTime)}
512
512
  function Sl(a){return new kf(function(b,c,d){a.s&&a.s.segmentDownloaded(b,c,d)},function(b,c,d){b=(new Map).set("headers",b).set("request",c).set("requestType",d);a.dispatchEvent(Yl("downloadheadersreceived",b))},function(b,c,d,e){b=(new Map).set("request",b).set("error",c).set("httpResponseCode",d).set("aborted",e);a.dispatchEvent(Yl("downloadfailed",b))},function(b,c,d){var e=a.V;d=void 0===d?{}:d;if(e.g.enabled)if("HEAD"===c.method)il(e,c);else switch(b){case 0:try{if(e.g.enabled){if(d.type){a:{switch(d.type){case 4:var f=
513
513
  "d";break a;case 3:case 2:f="h";break a;case 5:f="s";break a}f=void 0}e.o=f}il(e,c,{ot:fl,su:!e.j})}}catch(m){Va("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",m)}break;case uf:b=d;try{if(e.g.enabled){var g=b.segment;f=0;g&&(f=g.endTime-g.startTime);var h={d:1E3*f,st:e.h.P()?"l":"v"};h.ot=ll(b);var k=h.ot===jl||h.ot===dl||h.ot===el||h.ot===ql,l=b.stream;l&&(k&&(h.bl=sl(e,l.type)),l.bandwidth&&(h.br=l.bandwidth/1E3));k&&h.ot!==ql&&(h.tb=tl(e,h.ot)/1E3);il(e,c,h)}}catch(m){Va("CMCD_SEGMENT_ERROR",
514
514
  "Could not generate segment CMCD data.",m)}break;case 2:case 5:case 6:il(e,c,{ot:"k"});break;case 4:il(e,c,{ot:"o"})}},function(b,c,d,e){a.G&&a.G.banLocation&&a.G.banLocation(e)})}function Fm(a,b){return new vj(a.g,a.i,a.h.streaming,b,function(){a.ib&&Hj(a.ib,!0);a.j&&a.j.ad();a.K&&Wm(a)},function(c){return a.dispatchEvent(c)})}
@@ -516,53 +516,54 @@ function Gm(a,b){b=new Nj(a.ya,a.P()||0<b);b.addEventListener("enter",function(d
516
516
  function Hm(a,b,c){a.K=new Oe;a.K.g=Qe;Re(a.K,c,Math.min(.5,c/2));em(a);a.o.D(b,"waiting",function(){return Wm(a)});a.o.D(b,"stalled",function(){return Wm(a)});a.o.D(b,"canplaythrough",function(){return Wm(a)});a.o.D(b,"progress",function(){return Wm(a)})}
517
517
  function Wm(a){switch(a.l){case Qm:if(a.g.ended)var b=!0;else{var c=Fh(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case Cm:a:if(a.g.ended||Hi(a.F))b=!0;else{if(a.i.presentationTimeline.P()){c=a.i.presentationTimeline.zb();var d=Fh(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Hh(a.g.buffered,a.g.currentTime);c=a.K;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?Pe:Qe;c.g=d;b!=d&&em(a)}function mm(a,b,c,d){return new zi(a,b,c,d)}
518
518
  function Rl(a){return new al({getBandwidthEstimate:function(){return a.s?a.s.getBandwidthEstimate():NaN},lb:function(){return a.lb()},getCurrentTime:function(){return a.g?a.g.currentTime:0},yd:function(){return a.yd()},Kb:function(){return a.Kb()},Ab:function(){return a.Ab()},P:function(){return a.P()}},a.h.cmcd)}
519
- function Bm(a){return new bk(a.i,{zd:function(){return a.C?a.C.Fc():0},getBandwidthEstimate:function(){return a.s.getBandwidthEstimate()},T:a.F,Pb:a.H,onError:function(b){return cm(a,b)},onEvent:function(b){return a.dispatchEvent(b)},uh:function(){a.G&&a.G.update&&a.G.update()},Ve:function(b,c,d){if(a.C){a.C.Uf();var e=Ii(a.F,d);!a.P()&&a.g.paused&&null!=e&&0<e&&a.C.Fc()<e&&a.C.nd(e)}Wm(a);b=(new Map).set("start",b).set("end",c).set("contentType",d);a.dispatchEvent(Yl("segmentappended",b))},th:function(b,
520
- c){(c=c.Qe)&&a.la&&Kj(a.la,c,b)},xf:function(b,c){var d=a.m;if(d.h.parseInbandPsshEnabled&&!d.F&&["audio","video"].includes(b)){c=new hg(sb(c));var e=0,f=t(c.data);for(b=f.next();!b.done;b=f.next())e+=b.value.length;if(0==e)d=Promise.resolve();else{e=new Uint8Array(e);f=0;c=t(c.data);for(b=c.next();!b.done;b=c.next())b=b.value,e.set(b,f),f+=b.length;Vg(d,"cenc",e);d=d.l}}else d=Promise.resolve();return d},vh:function(b,c,d){nm(a,b,c,d)},je:function(b,c){return a.je(b,c)}})}
519
+ function Bm(a){return new bk(a.i,{zd:function(){return a.C?a.C.Fc():0},getBandwidthEstimate:function(){return a.s.getBandwidthEstimate()},T:a.F,Pb:a.H,onError:function(b){return cm(a,b)},onEvent:function(b){return a.dispatchEvent(b)},th:function(){a.G&&a.G.update&&a.G.update()},Ue:function(b,c,d){if(a.C){a.C.Tf();var e=Ii(a.F,d);!a.P()&&a.g.paused&&null!=e&&0<e&&a.C.Fc()<e&&a.C.nd(e)}Wm(a);b=(new Map).set("start",b).set("end",c).set("contentType",d);a.dispatchEvent(Yl("segmentappended",b))},sh:function(b,
520
+ c){(c=c.Qe)&&a.la&&Kj(a.la,c,b)},wf:function(b,c){var d=a.m;if(d.h.parseInbandPsshEnabled&&!d.F&&["audio","video"].includes(b)){c=new hg(sb(c));var e=0,f=t(c.data);for(b=f.next();!b.done;b=f.next())e+=b.value.length;if(0==e)d=Promise.resolve();else{e=new Uint8Array(e);f=0;c=t(c.data);for(b=c.next();!b.done;b=c.next())b=b.value,e.set(b,f),f+=b.length;Vg(d,"cenc",e);d=d.l}}else d=Promise.resolve();return d},uh:function(b,c,d){nm(a,b,c,d)},je:function(b,c){return a.je(b,c)}})}
521
521
  r.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=wl(a,b));a.streaming&&"forceTransmuxTS"in a.streaming&&(ve("streaming.forceTransmuxTS configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmuxTS,delete a.streaming.forceTransmuxTS);a.streaming&&"forceTransmux"in a.streaming&&(ve("streaming.forceTransmux configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmux,delete a.streaming.forceTransmux);
522
522
  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));var c=Il(this.h,a,Ql(this));Xm(this);return c};
523
- function Xm(a){if(a.G){var b=ff(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.G.configure(b)}a.m&&a.m.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{Ym(a,a.i)}catch(f){cm(a,f)}a.s&&Mm(a);b=a.j.j;!b||b.allowedByApplication&&b.allowedByKeySystem||Zm(a)}a.H&&a.H.hf(a.h.streaming.forceHTTPS);if(a.F&&(a.F.configure(a.h.mediaSource),a.F.Z=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.Ie!=b)){var c=b(),d=a.F,e=d.F;d.F=c;e&&(c.setTextVisibility(e.isTextVisible()),
523
+ function Xm(a){if(a.G){var b=ff(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.G.configure(b)}a.m&&a.m.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{Ym(a,a.i)}catch(f){cm(a,f)}a.s&&Mm(a);b=a.j.j;!b||b.allowedByApplication&&b.allowedByKeySystem||Zm(a)}a.H&&a.H.gf(a.h.streaming.forceHTTPS);if(a.F&&(a.F.configure(a.h.mediaSource),a.F.Z=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.Ie!=b)){var c=b(),d=a.F,e=d.F;d.F=c;e&&(c.setTextVisibility(e.isTextVisible()),
524
524
  e.destroy());d.h&&(d.h.j=c);a.Ie=b;a.j&&(b=a.j,(c=b.h.get(Jc))&&mk(b,c.stream,!0,0,!0))}a.s&&(a.s.configure(a.h.abr),a.h.abr.enabled?a.s.enable():a.s.disable(),Lm(a));a.K&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),Re(a.K,b,Math.min(.5,b/2)));a.i&&zm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.A&&a.A.configure(a.h.ads);a.V&&a.V.configure(a.h.cmcd)}r.getConfiguration=function(){var a=Ql(this);Il(a,this.h,Ql(this));return a};
525
- r.Gg=function(){if(this.g){var a=this.g.buffered.length;a=a?this.g.buffered.end(a-1):0;var b=this.getConfiguration().streaming.bufferingGoal;b=Math.min(this.g.currentTime+b,this.Bb().end);if(a>=b)return 1;if(!(a<=this.g.currentTime)&&a<b)return(a-this.g.currentTime)/(b-this.g.currentTime)}return 0};r.Fh=function(){for(var a in this.h)delete this.h[a];Il(this.h,Ql(this),Ql(this));Xm(this)};r.Og=function(){return this.l};r.Be=function(){return this.i?this.i.type:null};r.Sg=function(){return this.g};
526
- r.Kb=function(){return this.H};r.Ae=function(){return this.aa};r.Hf=function(){return this.A?this.A:null};r.P=function(){return this.i?this.i.presentationTimeline.P():this.g&&this.g.src?Infinity==this.g.duration:!1};r.Nb=function(){return this.i?this.i.presentationTimeline.Nb():!1};r.hh=function(){if(this.i){var a=this.i.variants;return a.length?!a[0].video:!1}return this.g&&this.g.src?this.g.videoTracks?0==this.g.videoTracks.length:0==this.g.videoHeight:!1};
527
- r.Bb=function(){if(this.i){if(!this.Kc&&"HLS"==this.i.type)return{start:0,end:0};var a=this.i.presentationTimeline;return{start:a.bc(),end:a.mb()}}return this.g&&this.g.src&&(a=this.g.seekable,a.length)?{start:a.start(0),end:a.end(a.length-1)}:{start:0,end:0}};r.eh=function(){this.P()&&(this.g.currentTime=this.Bb().end)};r.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};r.drmInfo=function(){return this.m?this.m.g:null};r.Pc=function(){return this.m?this.m.Pc():Infinity};
525
+ r.Fg=function(){if(this.g){var a=this.g.buffered.length;a=a?this.g.buffered.end(a-1):0;var b=this.getConfiguration().streaming.bufferingGoal;b=Math.min(this.g.currentTime+b,this.Bb().end);if(a>=b)return 1;if(!(a<=this.g.currentTime)&&a<b)return(a-this.g.currentTime)/(b-this.g.currentTime)}return 0};r.Eh=function(){for(var a in this.h)delete this.h[a];Il(this.h,Ql(this),Ql(this));Xm(this)};r.Ng=function(){return this.l};r.Be=function(){return this.i?this.i.type:null};r.Rg=function(){return this.g};
526
+ r.Kb=function(){return this.H};r.Ae=function(){return this.aa};r.Gf=function(){return this.A?this.A:null};r.P=function(){return this.i?this.i.presentationTimeline.P():this.g&&this.g.src?Infinity==this.g.duration:!1};r.Nb=function(){return this.i?this.i.presentationTimeline.Nb():!1};r.gh=function(){if(this.i){var a=this.i.variants;return a.length?!a[0].video:!1}return this.g&&this.g.src?this.g.videoTracks?0==this.g.videoTracks.length:0==this.g.videoHeight:!1};
527
+ r.Bb=function(){if(this.i){if(!this.Kc&&"HLS"==this.i.type)return{start:0,end:0};var a=this.i.presentationTimeline;return{start:a.bc(),end:a.mb()}}return this.g&&this.g.src&&(a=this.g.seekable,a.length)?{start:a.start(0),end:a.end(a.length-1)}:{start:0,end:0}};r.dh=function(){this.P()&&(this.g.currentTime=this.Bb().end)};r.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};r.drmInfo=function(){return this.m?this.m.g:null};r.Pc=function(){return this.m?this.m.Pc():Infinity};
528
528
  r.ze=function(){return this.m?this.m.ze():[]};r.xd=function(){return this.m?this.m.xd():{}};r.Ee=function(){return this.K?this.K.g==Qe:!1};r.yd=function(){return this.g?this.I?this.I.h:1:0};
529
- r.qf=function(a){var b=this;0==a?Ua("A trick play rate of 0 is unsupported!"):(this.za.Xa(),this.g.paused&&this.g.play(),this.I.set(a),this.l==Cm&&(this.s.playbackRateChanged(a),lk(this.j,1<Math.abs(a))),this.P()&&this.za.D(this.g,"timeupdate",function(){var c=b.g.currentTime,d=b.Bb(),e=b.h.streaming.safeSeekOffset;0<a?c>=d.end&&b.rd():c<=d.start+e&&b.rd()}))};r.rd=function(){var a=this.I.$b();this.l==Qm&&this.I.set(a);this.l==Cm&&(this.I.set(a),this.s.playbackRateChanged(a),lk(this.j,!1));this.za.Xa()};
529
+ r.pf=function(a){var b=this;0==a?Ua("A trick play rate of 0 is unsupported!"):(this.za.Xa(),this.g.paused&&this.g.play(),this.I.set(a),this.l==Cm&&(this.s.playbackRateChanged(a),lk(this.j,1<Math.abs(a))),this.P()&&this.za.D(this.g,"timeupdate",function(){var c=b.g.currentTime,d=b.Bb(),e=b.h.streaming.safeSeekOffset;0<a?Math.floor(c)>=Math.floor(d.end)&&b.rd():Math.floor(c)<=Math.floor(d.start+e)&&b.rd()}))};
530
+ r.rd=function(){var a=this.I.$b();this.l==Qm&&this.I.set(a);this.l==Cm&&(this.I.set(a),this.s.playbackRateChanged(a),lk(this.j,!1));this.za.Xa()};
530
531
  r.Ab=function(){if(this.i){for(var a=this.j?this.j.j:null,b=[],c=0,d=t(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,ke(e)){var f=ce(e);f.active=e==a;f.active||1==c||null==a||e.video!=a.video||e.audio!=a.audio||(f.active=!0);f.active&&c++;b.push(f)}return b}return this.g&&this.g.audioTracks?Array.from(this.g.audioTracks).map(function(g){return je(g)}):[]};
531
- r.dc=function(){if(this.i){for(var a=this.j?this.j.o:null,b=[],c=t(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=de(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?Sm(this).map(function(f){return he(f)}):[]};r.Mg=function(){var a=this.Jc;this.i&&(a=this.i.imageStreams);return a.map(function(b){return ee(b)})};
532
- r.Dg=function(a){var b=this,c,d,e,f;return K(function(g){if(1==g.g){if(b.l!=Cm&&b.l!=Qm)return g.return(null);c=b.Jc;b.i&&(c=b.i.imageStreams);return(d=c.find(function(h){return h.id==a}))?d.segmentIndex?g.B(2):C(g,d.createSegmentIndex(),2):g.return(null)}if(4!=g.g)return e=[],Bj(d.segmentIndex,function(h){var k=$m(h.tilesLayout||d.tilesLayout);if(k){k=k.rows*k.Gb;for(var l=h.j-h.startTime,m=0;m<k;m++)e.push(b.Kf(a,h.startTime+l*m/k))}}),C(g,Promise.all(e),4);f=g.h;return g.return(f.filter(function(h){return h}))})};
532
+ r.dc=function(){if(this.i){for(var a=this.j?this.j.o:null,b=[],c=t(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=de(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?Sm(this).map(function(f){return he(f)}):[]};r.Lg=function(){var a=this.Jc;this.i&&(a=this.i.imageStreams);return a.map(function(b){return ee(b)})};
533
+ r.Cg=function(a){var b=this,c,d,e,f;return K(function(g){if(1==g.g){if(b.l!=Cm&&b.l!=Qm)return g.return(null);c=b.Jc;b.i&&(c=b.i.imageStreams);return(d=c.find(function(h){return h.id==a}))?d.segmentIndex?g.B(2):C(g,d.createSegmentIndex(),2):g.return(null)}if(4!=g.g)return e=[],Bj(d.segmentIndex,function(h){var k=$m(h.tilesLayout||d.tilesLayout);if(k){k=k.rows*k.Gb;for(var l=h.j-h.startTime,m=0;m<k;m++)e.push(b.Jf(a,h.startTime+l*m/k))}}),C(g,Promise.all(e),4);f=g.h;return g.return(f.filter(function(h){return h}))})};
533
534
  function $m(a){return a?(a=/(\d+)x(\d+)/.exec(a))?{Gb:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}
534
- r.Kf=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,p,u,v,y,z,x,A,B;return K(function(D){if(1==D.g){if(c.l!=Cm&&c.l!=Qm)return D.return(null);d=c.Jc;c.i&&(d=c.i.imageStreams);return(e=d.find(function(E){return E.id==a}))?e.segmentIndex?D.B(2):C(D,e.createSegmentIndex(),2):D.return(null)}f=e.segmentIndex.find(b);if(null==f)return D.return(null);g=e.segmentIndex.get(f);h=$m(g.tilesLayout||e.tilesLayout);if(!h)return D.return(null);k=e.width||0;l=e.height||0;m=k/h.Gb;n=l/h.rows;q=h.Gb*h.rows;p=g.j-g.startTime;
535
+ r.Jf=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,p,u,v,y,z,x,A,B;return K(function(D){if(1==D.g){if(c.l!=Cm&&c.l!=Qm)return D.return(null);d=c.Jc;c.i&&(d=c.i.imageStreams);return(e=d.find(function(E){return E.id==a}))?e.segmentIndex?D.B(2):C(D,e.createSegmentIndex(),2):D.return(null)}f=e.segmentIndex.find(b);if(null==f)return D.return(null);g=e.segmentIndex.get(f);h=$m(g.tilesLayout||e.tilesLayout);if(!h)return D.return(null);k=e.width||0;l=e.height||0;m=k/h.Gb;n=l/h.rows;q=h.Gb*h.rows;p=g.j-g.startTime;
535
536
  u=g.G||p/q;v=g.startTime;z=y=0;1<q&&(x=Math.floor((b-g.startTime)/u),v=g.startTime+x*u,y=x%h.Gb*m,z=Math.floor(x/h.Gb)*n);A=!1;if(B=g.F)A=!0,n=B.height,y=B.positionX,z=B.positionY,m=B.width;return D.return({segment:g,imageHeight:l,imageWidth:k,height:n,positionX:y,positionY:z,startTime:v,duration:u,uris:g.Y(),width:m,sprite:A})})};
536
- r.ag=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.o&&(Nl(this.u.h,b,!1),ok(this.j,b),an(this),this.hb=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=Sm(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,fe(c)==a.id?c.mode=this.Z?"showing":"hidden":c.mode="disabled";an(this)}};
537
- r.ef=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?0:c;if(this.i&&this.j){this.h.abr.enabled&&Ua("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");var d=this.i.variants.find(function(e){return e.id==a.id});d&&ke(d)&&(Am(this,d,!1,b,c),this.Da=new Ge(d,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),Mm(this))}else if(this.g&&this.g.audioTracks)for(b=
538
- Array.from(this.g.audioTracks),b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,fe(c)==a.id){bn(this,c);break}};r.Fg=function(){return cn(this.Ab())};r.Xg=function(){return cn(this.dc())};r.Eg=function(){return Array.from(dn(this.Ab()))};r.Wg=function(){return Array.from(dn(this.dc()))};
539
- r.$f=function(a,b,c,d){c=void 0===c?0:c;d=void 0===d?0:d;if(this.i&&this.C){this.Da=new He(a,b||"",c,"","","",this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups);a=function(g,h){return g.video||h.video?g.video&&h.video?Math.abs((g.video.height||0)-(h.video.height||0))+Math.abs((g.video.width||0)-(h.video.width||0)):Infinity:0};b=this.j.j;var e=this.Da.create(this.i.variants);c=null;e=t(e.values());for(var f=e.next();!f.done;f=e.next())if(f=f.value,!c||a(c,b)>a(f,b))c=
540
- f;c?(a=ce(c),this.ef(a,!0,d)):Zm(this)}else this.g&&this.g.audioTracks&&(d=me(this.Ab(),a,b||"",!1)[0])&&this.ef(d)};r.df=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.C){if(this.hb=a,this.Hc=b||"",this.pc=c,(a=me(this.i.textStreams,this.hb,this.Hc,this.pc)[0]||null)&&a!=this.j.o&&(Nl(this.u.h,a,!1),this.h.streaming.alwaysStreamText||this.Ge()))ok(this.j,a),an(this)}else(a=me(this.dc(),a,b||"",c)[0])&&this.ag(a)};
541
- r.Lh=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?0:c;if(this.i&&this.C){for(var d=null,e=t(this.i.variants),f=e.next();!f.done;f=e.next())if(f=f.value,f.audio.label==a){d=f;break}null!=d&&(this.Da=new He(d.language,"",0,"","",a,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),Zm(this,b,c))}else if(this.g&&this.g.audioTracks){c=Array.from(this.g.audioTracks);b=null;c=t(c);for(d=c.next();!d.done;d=c.next())d=d.value,d.label==a&&(b=d);b&&bn(this,b)}};
542
- r.Ge=function(){var a=this.Z;return this.F&&this.l==Cm?this.F.F.isTextVisible():this.g&&this.g.src&&this.g.textTracks?Sm(this).some(function(b){return"showing"==b.mode}):a};r.If=function(){return this.g&&this.g.src&&this.g.textTracks?en(this).map(function(a){return he(a)}):[]};
543
- r.Hg=function(a){if(!this.g||!this.g.src||!this.g.textTracks)return[];var b=hd(a),c=en(this).filter(function(h){return hd(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};
537
+ r.$f=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.o&&(Nl(this.u.h,b,!1),ok(this.j,b),an(this),this.hb=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=Sm(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,fe(c)==a.id?c.mode=this.Z?"showing":"hidden":c.mode="disabled";an(this)}};
538
+ r.df=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?0:c;if(this.i&&this.j){this.h.abr.enabled&&Ua("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");var d=this.i.variants.find(function(e){return e.id==a.id});d&&ke(d)&&(Am(this,d,!1,b,c),this.Da=new Ge(d,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),Mm(this))}else if(this.g&&this.g.audioTracks)for(b=
539
+ Array.from(this.g.audioTracks),b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,fe(c)==a.id){bn(this,c);break}};r.Eg=function(){return cn(this.Ab())};r.Wg=function(){return cn(this.dc())};r.Dg=function(){return Array.from(dn(this.Ab()))};r.Vg=function(){return Array.from(dn(this.dc()))};
540
+ r.Zf=function(a,b,c,d){c=void 0===c?0:c;d=void 0===d?0:d;if(this.i&&this.C){this.Da=new He(a,b||"",c,"","","",this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups);a=function(g,h){return g.video||h.video?g.video&&h.video?Math.abs((g.video.height||0)-(h.video.height||0))+Math.abs((g.video.width||0)-(h.video.width||0)):Infinity:0};b=this.j.j;var e=this.Da.create(this.i.variants);c=null;e=t(e.values());for(var f=e.next();!f.done;f=e.next())if(f=f.value,!c||a(c,b)>a(f,b))c=
541
+ f;c?(a=ce(c),this.df(a,!0,d)):Zm(this)}else this.g&&this.g.audioTracks&&(d=me(this.Ab(),a,b||"",!1)[0])&&this.df(d)};r.cf=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.C){if(this.hb=a,this.Hc=b||"",this.pc=c,(a=me(this.i.textStreams,this.hb,this.Hc,this.pc)[0]||null)&&a!=this.j.o&&(Nl(this.u.h,a,!1),this.h.streaming.alwaysStreamText||this.Ge()))ok(this.j,a),an(this)}else(a=me(this.dc(),a,b||"",c)[0])&&this.$f(a)};
542
+ r.Kh=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?0:c;if(this.i&&this.C){for(var d=null,e=t(this.i.variants),f=e.next();!f.done;f=e.next())if(f=f.value,f.audio.label==a){d=f;break}null!=d&&(this.Da=new He(d.language,"",0,"","",a,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),Zm(this,b,c))}else if(this.g&&this.g.audioTracks){c=Array.from(this.g.audioTracks);b=null;c=t(c);for(d=c.next();!d.done;d=c.next())d=d.value,d.label==a&&(b=d);b&&bn(this,b)}};
543
+ r.Ge=function(){var a=this.Z;return this.F&&this.l==Cm?this.F.F.isTextVisible():this.g&&this.g.src&&this.g.textTracks?Sm(this).some(function(b){return"showing"==b.mode}):a};r.Hf=function(){return this.g&&this.g.src&&this.g.textTracks?en(this).map(function(a){return he(a)}):[]};
544
+ r.Gg=function(a){if(!this.g||!this.g.src||!this.g.textTracks)return[];var b=hd(a),c=en(this).filter(function(h){return hd(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};
544
545
  function Sm(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function Vm(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"==b.kind})}function en(a){return Array.from(a.g.textTracks).filter(function(b){return"chapters"==b.kind})}
545
- r.fg=function(a){a=!!a;if(this.Z!=a){this.Z=a;if(this.l==Cm)this.F.F.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.o||(a=me(this.i.textStreams,this.hb,this.Hc,this.pc),0<a.length&&(ok(this.j,a[0]),an(this))):kk(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=Sm(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}Km(this)}};
546
- r.Ug=function(){if(!this.P())return null;if(this.C)var a=this.C.Fc();else{if(null==this.ia)return new Date;a=this.ia}if(this.i){var b=this.i.presentationTimeline;return new Date(1E3*((b.C||b.i)+a))}return this.g&&this.g.getStartDate?(b=this.g.getStartDate(),isNaN(b.getTime())?null:new Date(b.getTime()+1E3*a)):null};
547
- r.Jf=function(){if(!this.P())return null;if(this.i)return new Date(1E3*this.i.presentationTimeline.i);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};r.lb=function(){if(this.l==Cm)return this.F.lb();var a={total:[],audio:[],video:[],text:[]};this.l==Qm&&(a.total=Ih(this.g.buffered));return a};
546
+ r.eg=function(a){a=!!a;if(this.Z!=a){this.Z=a;if(this.l==Cm)this.F.F.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.o||(a=me(this.i.textStreams,this.hb,this.Hc,this.pc),0<a.length&&(ok(this.j,a[0]),an(this))):kk(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=Sm(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}Km(this)}};
547
+ r.Tg=function(){if(!this.P())return null;if(this.C)var a=this.C.Fc();else{if(null==this.ia)return new Date;a=this.ia}if(this.i){var b=this.i.presentationTimeline;return new Date(1E3*((b.C||b.i)+a))}return this.g&&this.g.getStartDate?(b=this.g.getStartDate(),isNaN(b.getTime())?null:new Date(b.getTime()+1E3*a)):null};
548
+ r.If=function(){if(!this.P())return null;if(this.i)return new Date(1E3*this.i.presentationTimeline.i);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};r.lb=function(){if(this.l==Cm)return this.F.lb();var a={total:[],audio:[],video:[],text:[]};this.l==Qm&&(a.total=Ih(this.g.buffered));return a};
548
549
  r.getStats=function(){if(this.l!=Cm&&this.l!=Qm)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,stallsDetected:NaN,gapsJumped:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,switchHistory:[],stateHistory:[]};xm(this);var a=this.g,b=a.currentTime/a.duration;if(!isNaN(b)){var c=this.u;b=
549
- Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.C&&(this.u.K=this.C.uf(),this.u.N=this.C.vf());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.u;var d=Number(c.totalVideoFrames);b.J=Number(c.droppedVideoFrames);b.I=d;this.u.H=Number(c.corruptedVideoFrames)}this.m?(c=this.m,c=c.I?c.I:NaN):c=NaN;this.u.s=c;if(this.l==Cm){c=this.j.j;b=this.j.o;if(c){d=this.I?this.I.h:1;var e=d*c.bandwidth;b&&b.bandwidth&&(e+=d*b.bandwidth);this.u.A=e}c&&c.video&&(b=this.u,d=c.video.height||
550
- NaN,b.o=c.video.width||NaN,b.l=d);this.P()&&(c=this.Jf().valueOf()+1E3*a.currentTime,this.u.C=(Date.now()-c)/1E3);this.i&&this.i.presentationTimeline&&(this.u.G=this.i.presentationTimeline.g);c=this.s.getBandwidthEstimate();this.u.u=c}this.l==Qm&&(c=this.u,b=a.videoHeight||NaN,c.o=a.videoWidth||NaN,c.l=b);var f=this.u;a=f.o;c=f.l;b=f.A;d=f.I;e=f.J;var g=f.H,h=f.N,k=f.K,l=f.u,m=f.i,n=f.m,q=f.F,p=f.j,u=Kl(f.g,"playing"),v=Kl(f.g,"paused"),y=Kl(f.g,"buffering"),z=f.s,x=f.C,A=f.G,B=Ll(f.g),D=[];f=t(f.h.g);
550
+ Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.C&&(this.u.K=this.C.tf(),this.u.N=this.C.uf());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.u;var d=Number(c.totalVideoFrames);b.J=Number(c.droppedVideoFrames);b.I=d;this.u.H=Number(c.corruptedVideoFrames)}this.m?(c=this.m,c=c.I?c.I:NaN):c=NaN;this.u.s=c;if(this.l==Cm){c=this.j.j;b=this.j.o;if(c){d=this.I?this.I.h:1;var e=d*c.bandwidth;b&&b.bandwidth&&(e+=d*b.bandwidth);this.u.A=e}c&&c.video&&(b=this.u,d=c.video.height||
551
+ NaN,b.o=c.video.width||NaN,b.l=d);this.P()&&(c=this.If().valueOf()+1E3*a.currentTime,this.u.C=(Date.now()-c)/1E3);this.i&&this.i.presentationTimeline&&(this.u.G=this.i.presentationTimeline.g);c=this.s.getBandwidthEstimate();this.u.u=c}this.l==Qm&&(c=this.u,b=a.videoHeight||NaN,c.o=a.videoWidth||NaN,c.l=b);var f=this.u;a=f.o;c=f.l;b=f.A;d=f.I;e=f.J;var g=f.H,h=f.N,k=f.K,l=f.u,m=f.i,n=f.m,q=f.F,p=f.j,u=Kl(f.g,"playing"),v=Kl(f.g,"paused"),y=Kl(f.g,"buffering"),z=f.s,x=f.C,A=f.G,B=Ll(f.g),D=[];f=t(f.h.g);
551
552
  for(var E=f.next();!E.done;E=f.next())E=E.value,D.push({timestamp:E.timestamp,id:E.id,type:E.type,fromAdaptation:E.fromAdaptation,bandwidth:E.bandwidth});return{width:a,height:c,streamBandwidth:b,decodedFrames:d,droppedFrames:e,corruptedFrames:g,stallsDetected:h,gapsJumped:k,estimatedBandwidth:l,completionPercent:m,loadLatency:n,manifestTimeSeconds:q,drmTimeSeconds:p,playTime:u,pauseTime:v,bufferingTime:y,licenseTime:z,liveLatency:x,maxSegmentDuration:A,stateHistory:B,switchHistory:D}};
552
- r.qg=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,q,p,u,v,y,z,x,A;return K(function(B){switch(B.g){case 1:if(h.l!=Cm&&h.l!=Qm)throw new P(1,7,7004);"subtitles"!=c&&"captions"!=c&&Ua("Using a kind value different of `subtitles` or `captions` can cause unwanted issues.");if(d){B.B(2);break}return C(B,fn(h,a),3);case 3:d=B.h;case 2:k=[];h.A&&(k=h.A.getCuePoints());if(h.l!=Qm){B.B(4);break}g&&(c="forced");return C(B,gn(h,a,b,c,d,f||"",k),5);case 5:l=hd(b);m=h.dc();if(n=m.find(function(D){return hd(D.language)==
553
+ r.pg=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,q,p,u,v,y,z,x,A;return K(function(B){switch(B.g){case 1:if(h.l!=Cm&&h.l!=Qm)throw new P(1,7,7004);"subtitles"!=c&&"captions"!=c&&Ua("Using a kind value different of `subtitles` or `captions` can cause unwanted issues.");if(d){B.B(2);break}return C(B,fn(h,a),3);case 3:d=B.h;case 2:k=[];h.A&&(k=h.A.getCuePoints());if(h.l!=Qm){B.B(4);break}g&&(c="forced");return C(B,gn(h,a,b,c,d,f||"",k),5);case 5:l=hd(b);m=h.dc();if(n=m.find(function(D){return hd(D.language)==
553
554
  l&&D.label==(f||"")&&D.kind==c}))return wm(h),B.return(n);throw new P(1,2,2012);case 4:q=Kc;p=h.g.duration;h.i&&(p=h.i.presentationTimeline.getDuration());if(Infinity==p)throw new P(1,4,4033);if(!k.length){B.B(6);break}return C(B,hn(h,a,h.H,h.h.streaming.retryParameters),7);case 7:u=B.h,v=jn(h,u,d,k),y=new Blob([v],{type:"text/vtt"}),a=Ci(y),d="text/vtt";case 6:z={id:h.Oe++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Dj(0,p,[a]),mimeType:d||"",
554
555
  codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,originalLanguage:b,label:f||null,type:q.ja,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1};x=Mc(z.mimeType,z.codecs);A=Wc(x);if(!A)throw new P(2,2,2014,d);h.i.textStreams.push(z);wm(h);return B.return(de(z))}})};
555
- r.rg=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,p,u,v,y,z,x;return K(function(A){switch(A.g){case 1:if(c.l!=Cm&&c.l!=Qm)throw new P(1,7,7004);if(b){A.B(2);break}return C(A,fn(c,a),3);case 3:b=A.h;case 2:if("text/vtt"!=b)throw new P(1,2,2017,a);d=Kc;e=c.g.duration;c.i&&(e=c.i.presentationTimeline.getDuration());if(Infinity==e)throw new P(1,4,4045);return C(A,hn(c,a,c.H,c.h.streaming.retryParameters),4);case 4:f=A.h;g=Xc[b];if(!g)throw new P(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0,segmentEnd:e,
556
- vttOffset:0};l=sb(f);m=h.parseMedia(l,k,a);n=[];q={};p=t(m);for(u=p.next();!u.done;q={Ac:q.Ac,Db:q.Db},u=p.next())q.Db=u.value,q.Ac=null,v=function(B){return function(){null==B.Ac&&(B.Ac=Ec([a],[B.Db.payload]));return B.Ac||[]}}(q),y=new R(q.Db.startTime,q.Db.endTime,v,0,null,null,0,0,Infinity),q.Db.payload.includes("#xywh")&&(z=q.Db.payload.split("#xywh=")[1].split(","),4===z.length&&y.gg({height:parseInt(z[3],10),positionX:parseInt(z[0],10),positionY:parseInt(z[1],10),width:parseInt(z[2],10)})),
556
+ r.qg=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,p,u,v,y,z,x;return K(function(A){switch(A.g){case 1:if(c.l!=Cm&&c.l!=Qm)throw new P(1,7,7004);if(b){A.B(2);break}return C(A,fn(c,a),3);case 3:b=A.h;case 2:if("text/vtt"!=b)throw new P(1,2,2017,a);d=Kc;e=c.g.duration;c.i&&(e=c.i.presentationTimeline.getDuration());if(Infinity==e)throw new P(1,4,4045);return C(A,hn(c,a,c.H,c.h.streaming.retryParameters),4);case 4:f=A.h;g=Xc[b];if(!g)throw new P(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0,segmentEnd:e,
557
+ vttOffset:0};l=sb(f);m=h.parseMedia(l,k,a);n=[];q={};p=t(m);for(u=p.next();!u.done;q={Ac:q.Ac,Db:q.Db},u=p.next())q.Db=u.value,q.Ac=null,v=function(B){return function(){null==B.Ac&&(B.Ac=Ec([a],[B.Db.payload]));return B.Ac||[]}}(q),y=new R(q.Db.startTime,q.Db.endTime,v,0,null,null,0,0,Infinity),q.Db.payload.includes("#xywh")&&(z=q.Db.payload.split("#xywh=")[1].split(","),4===z.length&&y.fg({height:parseInt(z[3],10),positionX:parseInt(z[0],10),positionY:parseInt(z[1],10),width:parseInt(z[2],10)})),
557
558
  n.push(y);x={id:c.Oe++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Aj(n),mimeType:b||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:d.Ec,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1};c.l==Qm?c.Jc.push(x):
558
559
  c.i.imageStreams.push(x);wm(c);return A.return(ee(x))}})};
559
- r.pg=function(a,b,c){var d=this,e,f,g,h;return K(function(k){switch(k.g){case 1:if(d.l!=Cm&&d.l!=Qm)throw new P(1,7,7004);if(c){k.B(2);break}return C(k,fn(d,a),3);case 3:c=k.h;case 2:return e=[],d.A&&(e=d.A.getCuePoints()),C(k,gn(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.If();h=g.find(function(l){return l.language==b});if(!h){k.B(5);break}return C(k,new Promise(function(l,m){d.o.ha(f,"load",l);d.o.ha(f,"error",function(){m(new P(1,2,2015))})}),6);case 6:return wm(d),k.return(h);case 5:throw new P(1,
560
+ r.og=function(a,b,c){var d=this,e,f,g,h;return K(function(k){switch(k.g){case 1:if(d.l!=Cm&&d.l!=Qm)throw new P(1,7,7004);if(c){k.B(2);break}return C(k,fn(d,a),3);case 3:c=k.h;case 2:return e=[],d.A&&(e=d.A.getCuePoints()),C(k,gn(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.Hf();h=g.find(function(l){return l.language==b});if(!h){k.B(5);break}return C(k,new Promise(function(l,m){d.o.ha(f,"load",l);d.o.ha(f,"error",function(){m(new P(1,2,2015))})}),6);case 6:return wm(d),k.return(h);case 5:throw new P(1,
560
561
  2,2012);}})};function fn(a,b){var c;return K(function(d){switch(d.g){case 1:return ta(d,2),C(d,Gk(b,a.H,a.h.streaming.retryParameters),4);case 4:c=d.h;va(d,3);break;case 2:wa(d);case 3:if(c)return d.return(c);throw new P(1,2,2011,b);}})}
561
562
  function gn(a,b,c,d,e,f,g){var h,k,l,m;return K(function(n){if(1==n.g)return"text/vtt"!=e||g.length?C(n,hn(a,b,a.H,a.h.streaming.retryParameters),3):n.B(2);2!=n.g&&(h=n.h,k=jn(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=Ci(l),e="text/vtt");m=document.createElement("track");var q=a.V,p=b;try{if(q.g.enabled){var u=cl(q);u.ot=rl;u.su=!0;var v=gl(u);var y=hl(p,v)}else y=p}catch(z){Va("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",z),y=p}m.src=y;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")||
562
563
  a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return n.return(m)})}function hn(a,b,c,d){var e,f,g;return K(function(h){if(1==h.g){e=uf;f=of([b],d);f.method="GET";var k=a.V;try{k.g.enabled&&il(k,f,{ot:rl,su:!0})}catch(l){Va("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return C(h,c.request(e,f).promise,2)}g=h.h;return h.return(g.data)})}
563
- function jn(a,b,c,d){var e=Xc[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=sb(b),b=c.parseMedia(b,a,null),$k(b,d);throw new P(2,2,2014,c);}r.jf=function(a,b){this.Dd.width=a;this.Dd.height=b};r.af=function(a){if(this.l==Cm){var b=this.j;a=void 0===a?.1:a;if(b.l.g)b=!1;else if(b.s)b=!1;else{for(var c=t(b.h.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.Sc||d.Ba||d.gb||(d.Sc=!1,jk(b,d,a));b=!0}}else b=!1;return b};
564
- r.Pg=function(){Ua("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};r.Qg=function(){return this.Hd};
565
- function Ql(a){var b=Gl();b.streaming.failureCallback=function(c){if(a.P()){var d=null;1001==c.code||1002==c.code?d=1:1003==c.code&&(d=.1);null!=d&&(c.severity=1,a.af(d))}};b.textDisplayFactory=function(){return a.td?new Rk(a.g,a.td):HTMLMediaElement.prototype.addTextTrack?new Lk(a.g,"Shaka Player TextTrack"):new Ok};return b}r.ig=function(a){this.td=a};
564
+ function jn(a,b,c,d){var e=Xc[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=sb(b),b=c.parseMedia(b,a,null),$k(b,d);throw new P(2,2,2014,c);}r.hf=function(a,b){this.Dd.width=a;this.Dd.height=b};r.$e=function(a){if(this.l==Cm){var b=this.j;a=void 0===a?.1:a;if(b.l.g)b=!1;else if(b.s)b=!1;else{for(var c=t(b.h.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.Sc||d.Ba||d.gb||(d.Sc=!1,jk(b,d,a));b=!0}}else b=!1;return b};
565
+ r.Og=function(){Ua("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};r.Pg=function(){return this.Hd};
566
+ function Ql(a){var b=Gl();b.streaming.failureCallback=function(c){if(a.P()){var d=null;1001==c.code||1002==c.code?d=1:1003==c.code&&(d=.1);null!=d&&(c.severity=1,a.$e(d))}};b.textDisplayFactory=function(){return a.td?new Rk(a.g,a.td):HTMLMediaElement.prototype.addTextTrack?new Lk(a.g,"Shaka Player TextTrack"):new Ok};return b}r.hg=function(a){this.td=a};
566
567
  function qm(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 Ej,l=e.closedCaptions.get(g);h={id:a.Oe++,originalId:g,groupId:null,
567
568
  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:Jc,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};b.textStreams.push(h);c.add(g)}}
568
569
  function pm(a,b){return K(function(c){if(1==c.g)return C(c,kn(a,b),2);Ym(a,b);F(c)})}function kn(a,b){return K(function(c){if(1==c.g)return C(c,Od(a.m,b),2);if(!b.variants.some(ke))throw new P(2,4,4032);F(c)})}function Ym(a,b){if(a.l!=Zl){Nd(b.variants,a.h.restrictions,a.Dd)&&a.j&&wm(a);var c=a.m?a.m.g:null;if(c&&a.m.s)for(var d=t(b.variants),e=d.next();!e.done;e=d.next())e=e.value,rm(a,c.keySystem,e.video),rm(a,c.keySystem,e.audio);ln(a,b)}}
@@ -571,7 +572,7 @@ function Im(a,b){var c,d,e,f,g;return K(function(h){if(1==h.g)return c=a.audio,d
571
572
  function em(a){var b=a.Ee();if(a.u&&a.K&&a.C){if(a.V){var c=a.V;b||c.j||(c.j=!0);c.j&&b&&(c.l=!0);c.m=b}xm(a)}b=(new Map).set("buffering",b);a.dispatchEvent(Yl("buffering",b))}function ym(a){var b=a.g.playbackRate;0!=b&&(a.I&&a.I.set(b),b=Yl("ratechange"),a.dispatchEvent(b))}
572
573
  function xm(a){if(a.u&&a.K){var b=a.u.g,c="playing";a.K.g==Qe?c="buffering":a.g.paused?c="paused":a.g.ended&&(c="ended");var d=c;if(null==b.g)b.g={timestamp:Date.now()/1E3,state:d,duration:0},b=!0;else{var e=Date.now()/1E3;b.g.duration=e-b.g.timestamp;b.g.state==d?b=!1:(b.h.push(b.g),b.g={timestamp:e,state:d,duration:0},b=!0)}b&&(c=(new Map).set("newstate",c),a.dispatchEvent(Yl("statechanged",c)))}}
573
574
  function Nm(a){if(a.P()){var b=a.Bb();if(Number.isFinite(b.end)&&!(a.g.currentTime<b.start)){if(a.h.streaming.liveSync){var c=a.h.streaming.liveSyncMaxLatency;var d=a.h.streaming.liveSyncPlaybackRate}else a.i&&a.i.serviceDescription&&(c=a.i.serviceDescription.maxLatency||a.h.streaming.liveSyncMaxLatency,d=a.i.serviceDescription.maxPlaybackRate||a.h.streaming.liveSyncPlaybackRate);if(a.h.streaming.liveSync){var e=a.h.streaming.liveSyncMinLatency;var f=a.h.streaming.liveSyncMinPlaybackRate}else a.i&&
574
- a.i.serviceDescription&&(e=a.i.serviceDescription.minLatency||a.h.streaming.liveSyncMinLatency,f=a.i.serviceDescription.minPlaybackRate||a.h.streaming.liveSyncMinPlaybackRate);var g=a.g.playbackRate,h=b.end-a.g.currentTime,k=0;if(a.l==Qm){var l=a.g.buffered;0<l.length&&(k=l.end(l.length-1),k=Math.max(d,k-b.end))}c&&d&&h-k>c?g!=d&&a.qf(d):e&&f&&h-k<e?g!=f&&a.qf(f):g!==a.I.$b()&&a.rd()}}}
575
+ a.i.serviceDescription&&(e=a.i.serviceDescription.minLatency||a.h.streaming.liveSyncMinLatency,f=a.i.serviceDescription.minPlaybackRate||a.h.streaming.liveSyncMinPlaybackRate);var g=a.g.playbackRate,h=b.end-a.g.currentTime,k=0;if(a.l==Qm){var l=a.g.buffered;0<l.length&&(k=l.end(l.length-1),k=Math.max(d,k-b.end))}c&&d&&h-k>c?g!=d&&a.pf(d):e&&f&&h-k<e?g!=f&&a.pf(f):g!==a.I.$b()&&a.rd()}}}
575
576
  function Om(a){if(a.g){var b=!1,c=a.g.currentTime/a.g.duration;isNaN(c)||(c=Math.round(100*c),isNaN(a.N)?(a.N=c,b=!0):(c=Math.max(a.N,c),a.N!=c&&(a.N=c,b=!0)));if(b){var d;0==a.N?d=Yl("started"):25==a.N?d=Yl("firstquartile"):50==a.N?d=Yl("midpoint"):75==a.N?d=Yl("thirdquartile"):100==a.N&&(d=Yl("complete"));d&&a.dispatchEvent(d)}}}function Mm(a){try{ln(a,a.i)}catch(c){return cm(a,c),!1}var b=le(a.i.variants);b=a.Da.create(b);a.s.setVariants(Array.from(b.values()));return!0}
576
577
  function Em(a,b){b=void 0===b?!1:b;return Mm(a)?a.s.chooseVariant(b):null}
577
578
  function Vl(a){function b(g){var h="";g.video&&(h+="video:"+g.video.id);g.audio&&(h=h+(h?"&":"")+("audio:"+g.audio.id));return h}for(var c=Date.now()/1E3,d=!1,e=t(a.i.variants),f=e.next();!f.done;f=e.next())f=f.value,0<f.disabledUntilTime&&f.disabledUntilTime<=c&&(f.disabledUntilTime=0,d=!0,bb("Re-enabled variant with "+b(f)));a.i.variants.every(function(g){return 0===g.disabledUntilTime})&&a.ud.stop();d&&Zm(a,!0,void 0,!1,!1)}
@@ -582,27 +583,27 @@ r.je=function(a,b){if(!this.h.abr.enabled||this.l===Zl||!navigator.onLine)return
582
583
  function cm(a,b){if(a.l!=Zl){2===b.severity&&Ul(a,!1);var c=Yl("error",(new Map).set("detail",b));a.dispatchEvent(c);c.defaultPrevented&&(b.handled=!0)}}function om(a,b,c){c=(new Map).set("detail",{schemeIdUri:c.schemeIdUri,value:c.value,startTime:c.startTime,endTime:c.endTime,id:c.id,eventElement:c.eventElement});a.dispatchEvent(Yl(b,c))}
583
584
  function bm(a){if(!a.g.error)return null;var b=a.g.error.code;if(1==b)return null;var c=a.g.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new P(2,3,3016,b,c,a.g.error.message)}
584
585
  function um(a,b){if(a.j){var c=Yl("keystatuschanged");a.dispatchEvent(c);var d=Object.keys(b);c=1==d.length&&"00"==d[0];var e=!1;if(d.length){d=t(a.i.variants);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=[];f.audio&&g.push(f.audio);f.video&&g.push(f.video);g=t(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;h=f.allowedByKeySystem;if(k.keyIds.size){f.allowedByKeySystem=!0;k=t(k.keyIds);for(var l=k.next();!l.done;l=k.next())if(l=l.value,(l=b[c?"00":l])||a.m.F)f.allowedByKeySystem=
585
- f.allowedByKeySystem&&!!l&&!on.includes(l)}h!=f.allowedByKeySystem&&(e=!0)}}}if(e&&(wm(a),!Mm(a)))return;(b=a.j.j)&&!b.allowedByKeySystem&&Zm(a)}}function vm(a,b,c){if(a.G&&a.G.onExpirationUpdated)a.G.onExpirationUpdated(b,c);b=Yl("expirationupdated");a.dispatchEvent(b)}function zm(a,b,c){0<b&&(a.P()||a.hg(b));b=a.getDuration();c<b&&(a.P()||a.Na(c))}
586
+ f.allowedByKeySystem&&!!l&&!on.includes(l)}h!=f.allowedByKeySystem&&(e=!0)}}}if(e&&(wm(a),!Mm(a)))return;(b=a.j.j)&&!b.allowedByKeySystem&&Zm(a)}}function vm(a,b,c){if(a.G&&a.G.onExpirationUpdated)a.G.onExpirationUpdated(b,c);b=Yl("expirationupdated");a.dispatchEvent(b)}function zm(a,b,c){0<b&&(a.P()||a.gg(b));b=a.getDuration();c<b&&(a.P()||a.Na(c))}
586
587
  function ln(a,b){a=a.m?a.m.xd():{};var c=Object.keys(a);c=c.length&&"00"==c[0];var d=!1,e=!1,f=new Set,g=new Set;b=t(b.variants);for(var h=b.next();!h.done;h=b.next()){h=h.value;var k=[];h.audio&&k.push(h.audio);h.video&&k.push(h.video);k=t(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.keyIds.size){l=t(l.keyIds);for(var m=l.next();!m.done;m=l.next()){m=m.value;var n=a[c?"00":m];n?on.includes(n)&&g.add(n):f.add(m)}}h.allowedByApplication?h.allowedByKeySystem&&(d=!0):e=!0}if(!d)throw a={hasAppRestrictions:e,
587
588
  missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new P(2,4,4012,a);}function mn(a,b){K(function(c){if(1==c.g)return C(c,Promise.resolve(),2);a.l!=Zl&&a.dispatchEvent(b);F(c)})}function dn(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(hd(c.language)):b.add("und");return b}
588
589
  function cn(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=hd(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));
589
- h.push({language:l,role:m,label:n})}});return h}N("shaka.Player",X);X.prototype.setVideoContainer=X.prototype.ig;X.prototype.getManifestParserFactory=X.prototype.Qg;X.prototype.getManifest=X.prototype.Pg;X.prototype.retryStreaming=X.prototype.af;X.prototype.setMaxHardwareResolution=X.prototype.jf;X.prototype.addChaptersTrack=X.prototype.pg;X.prototype.addThumbnailsTrack=X.prototype.rg;X.prototype.addTextTrackAsync=X.prototype.qg;X.prototype.getStats=X.prototype.getStats;
590
- X.prototype.getBufferedInfo=X.prototype.lb;X.prototype.getPresentationStartTimeAsDate=X.prototype.Jf;X.prototype.getPlayheadTimeAsDate=X.prototype.Ug;X.prototype.setTextTrackVisibility=X.prototype.fg;X.prototype.getChapters=X.prototype.Hg;X.prototype.getChaptersTracks=X.prototype.If;X.prototype.isTextTrackVisible=X.prototype.Ge;X.prototype.selectVariantsByLabel=X.prototype.Lh;X.prototype.selectTextLanguage=X.prototype.df;X.prototype.selectAudioLanguage=X.prototype.$f;
591
- X.prototype.getTextLanguages=X.prototype.Wg;X.prototype.getAudioLanguages=X.prototype.Eg;X.prototype.getTextLanguagesAndRoles=X.prototype.Xg;X.prototype.getAudioLanguagesAndRoles=X.prototype.Fg;X.prototype.selectVariantTrack=X.prototype.ef;X.prototype.selectTextTrack=X.prototype.ag;X.prototype.getThumbnails=X.prototype.Kf;X.prototype.getAllThumbnails=X.prototype.Dg;X.prototype.getImageTracks=X.prototype.Mg;X.prototype.getTextTracks=X.prototype.dc;X.prototype.getVariantTracks=X.prototype.Ab;
592
- X.prototype.cancelTrickPlay=X.prototype.rd;X.prototype.trickPlay=X.prototype.qf;X.prototype.getPlaybackRate=X.prototype.yd;X.prototype.isBuffering=X.prototype.Ee;X.prototype.getKeyStatuses=X.prototype.xd;X.prototype.getActiveSessionsMetadata=X.prototype.ze;X.prototype.getExpiration=X.prototype.Pc;X.prototype.drmInfo=X.prototype.drmInfo;X.prototype.keySystem=X.prototype.keySystem;X.prototype.goToLive=X.prototype.eh;X.prototype.seekRange=X.prototype.Bb;X.prototype.isAudioOnly=X.prototype.hh;
593
- X.prototype.isInProgress=X.prototype.Nb;X.prototype.isLive=X.prototype.P;X.prototype.getAdManager=X.prototype.Hf;X.prototype.getAssetUri=X.prototype.Ae;X.prototype.getNetworkingEngine=X.prototype.Kb;X.prototype.getMediaElement=X.prototype.Sg;X.prototype.getManifestType=X.prototype.Be;X.prototype.getLoadMode=X.prototype.Og;X.prototype.resetConfiguration=X.prototype.Fh;X.prototype.getBufferFullness=X.prototype.Gg;X.prototype.getConfiguration=X.prototype.getConfiguration;X.prototype.configure=X.prototype.configure;
594
- X.prototype.releaseAllMutexes=X.prototype.Bh;X.prototype.load=X.prototype.load;X.prototype.updateStartTime=X.prototype.Uh;X.prototype.unload=X.prototype.oc;X.prototype.detach=X.prototype.detach;X.prototype.attachCanvas=X.prototype.tg;X.prototype.attach=X.prototype.Ic;
590
+ h.push({language:l,role:m,label:n})}});return h}N("shaka.Player",X);X.prototype.setVideoContainer=X.prototype.hg;X.prototype.getManifestParserFactory=X.prototype.Pg;X.prototype.getManifest=X.prototype.Og;X.prototype.retryStreaming=X.prototype.$e;X.prototype.setMaxHardwareResolution=X.prototype.hf;X.prototype.addChaptersTrack=X.prototype.og;X.prototype.addThumbnailsTrack=X.prototype.qg;X.prototype.addTextTrackAsync=X.prototype.pg;X.prototype.getStats=X.prototype.getStats;
591
+ X.prototype.getBufferedInfo=X.prototype.lb;X.prototype.getPresentationStartTimeAsDate=X.prototype.If;X.prototype.getPlayheadTimeAsDate=X.prototype.Tg;X.prototype.setTextTrackVisibility=X.prototype.eg;X.prototype.getChapters=X.prototype.Gg;X.prototype.getChaptersTracks=X.prototype.Hf;X.prototype.isTextTrackVisible=X.prototype.Ge;X.prototype.selectVariantsByLabel=X.prototype.Kh;X.prototype.selectTextLanguage=X.prototype.cf;X.prototype.selectAudioLanguage=X.prototype.Zf;
592
+ X.prototype.getTextLanguages=X.prototype.Vg;X.prototype.getAudioLanguages=X.prototype.Dg;X.prototype.getTextLanguagesAndRoles=X.prototype.Wg;X.prototype.getAudioLanguagesAndRoles=X.prototype.Eg;X.prototype.selectVariantTrack=X.prototype.df;X.prototype.selectTextTrack=X.prototype.$f;X.prototype.getThumbnails=X.prototype.Jf;X.prototype.getAllThumbnails=X.prototype.Cg;X.prototype.getImageTracks=X.prototype.Lg;X.prototype.getTextTracks=X.prototype.dc;X.prototype.getVariantTracks=X.prototype.Ab;
593
+ X.prototype.cancelTrickPlay=X.prototype.rd;X.prototype.trickPlay=X.prototype.pf;X.prototype.getPlaybackRate=X.prototype.yd;X.prototype.isBuffering=X.prototype.Ee;X.prototype.getKeyStatuses=X.prototype.xd;X.prototype.getActiveSessionsMetadata=X.prototype.ze;X.prototype.getExpiration=X.prototype.Pc;X.prototype.drmInfo=X.prototype.drmInfo;X.prototype.keySystem=X.prototype.keySystem;X.prototype.goToLive=X.prototype.dh;X.prototype.seekRange=X.prototype.Bb;X.prototype.isAudioOnly=X.prototype.gh;
594
+ X.prototype.isInProgress=X.prototype.Nb;X.prototype.isLive=X.prototype.P;X.prototype.getAdManager=X.prototype.Gf;X.prototype.getAssetUri=X.prototype.Ae;X.prototype.getNetworkingEngine=X.prototype.Kb;X.prototype.getMediaElement=X.prototype.Rg;X.prototype.getManifestType=X.prototype.Be;X.prototype.getLoadMode=X.prototype.Ng;X.prototype.resetConfiguration=X.prototype.Eh;X.prototype.getBufferFullness=X.prototype.Fg;X.prototype.getConfiguration=X.prototype.getConfiguration;X.prototype.configure=X.prototype.configure;
595
+ X.prototype.releaseAllMutexes=X.prototype.Ah;X.prototype.load=X.prototype.load;X.prototype.updateStartTime=X.prototype.Th;X.prototype.unload=X.prototype.oc;X.prototype.detach=X.prototype.detach;X.prototype.attachCanvas=X.prototype.sg;X.prototype.attach=X.prototype.Ic;
595
596
  X.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return K(function(h){if(1==h.g)return b={},a?C(h,nh(),3):h.B(2);2!=h.g&&(b=h.h);var k={};if(rd())for(var l in wh)k[l]=!0;l=t(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var m=l.next();!m.done;m=l.next())m=m.value,k[m]=rd()?!!wh[m]:sd(m);c=k;l='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",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(w(Nc));
596
597
  k={};l=t(l);for(m=l.next();!m.done;m=l.next()){m=m.value;k[m]=rd()?Wc(m)?!0:kb(m)||(gc(m)?!0:!1):sd(m);var n=m.split(";")[0];k[n]=k[n]||k[m]}d=k;e={manifest:c,media:d,drm:b};f=pn;for(g in f)e[g]=f[g]();return h.return(e)})};
597
598
  X.isBrowserSupported=function(){window.Promise||Ua("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||wd("Trident/"))return!1;var a=Fd();return a&&9>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:rd()?!0:sd("application/x-mpegurl")};X.setAdManagerFactory=function(a){Tl=a};
598
- X.registerSupportPlugin=function(a,b){pn[a]=b};X.prototype.destroy=X.prototype.destroy;var Zl=0,Pl=1,Cm=2,Qm=3;X.LoadMode={DESTROYED:Zl,NOT_LOADED:Pl,MEDIA_SOURCE:Cm,SRC_EQUALS:Qm};X.version="v4.6.16";var qn=["4","6"];ye=new function(a){this.g=a;this.i=ze;this.h=Ae}(new ue(Number(qn[0]),Number(qn[1])));var on=["output-restricted","internal-error"],pn={},Tl=null;function rn(){this.h=[];this.j=this.i=this.g=0};function sn(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 fb;this.m.D(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.m.D(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}r=sn.prototype;r.getDuration=function(){return this.g.getDuration()};r.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};r.getRemainingTime=function(){return this.h.getRemainingTime()};r.isPaused=function(){return this.i};
599
+ X.registerSupportPlugin=function(a,b){pn[a]=b};X.prototype.destroy=X.prototype.destroy;var Zl=0,Pl=1,Cm=2,Qm=3;X.LoadMode={DESTROYED:Zl,NOT_LOADED:Pl,MEDIA_SOURCE:Cm,SRC_EQUALS:Qm};X.version="v4.6.17";var qn=["4","6"];ye=new function(a){this.g=a;this.i=ze;this.h=Ae}(new ue(Number(qn[0]),Number(qn[1])));var on=["output-restricted","internal-error"],pn={},Tl=null;function rn(){this.h=[];this.j=this.i=this.g=0};function sn(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 fb;this.m.D(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.m.D(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}r=sn.prototype;r.getDuration=function(){return this.g.getDuration()};r.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};r.getRemainingTime=function(){return this.h.getRemainingTime()};r.isPaused=function(){return this.i};
599
600
  r.isSkippable=function(){return 0<=this.g.getSkipTimeOffset()};r.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};r.canSkipNow=function(){return this.h.getAdSkippableState()};r.skip=function(){return this.h.skip()};r.pause=function(){return this.h.pause()};r.play=function(){return this.h.resume()};r.getVolume=function(){return this.h.getVolume()};r.setVolume=function(a){this.j.volume=a;return this.h.setVolume(a)};
600
601
  r.isMuted=function(){return 0==this.h.getVolume()};r.isLinear=function(){return this.g.isLinear()};r.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)};r.setMuted=function(a){(this.j.muted=a)?(this.l=this.getVolume(),this.h.setVolume(0)):this.h.setVolume(this.l)};
601
602
  r.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds()};r.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getAdPosition()};r.getTitle=function(){return this.g.getTitle()};r.getDescription=function(){return this.g.getDescription()};r.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate()};r.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};r.getVastMediaWidth=function(){return this.g.getVastMediaWidth()};
602
603
  r.getAdId=function(){return this.g.getAdId()};r.getCreativeAdId=function(){return this.g.getCreativeAdId()};r.getAdvertiserName=function(){return this.g.getAdvertiserName()};r.getMediaUrl=function(){return this.g.getMediaUrl()};r.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset()};r.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex()};r.release=function(){this.h=this.g=null};N("shaka.ads.ClientSideAd",sn);sn.prototype.release=sn.prototype.release;
603
604
  sn.prototype.getPodIndex=sn.prototype.getPodIndex;sn.prototype.getTimeOffset=sn.prototype.getTimeOffset;sn.prototype.getMediaUrl=sn.prototype.getMediaUrl;sn.prototype.getAdvertiserName=sn.prototype.getAdvertiserName;sn.prototype.getCreativeAdId=sn.prototype.getCreativeAdId;sn.prototype.getAdId=sn.prototype.getAdId;sn.prototype.getVastMediaWidth=sn.prototype.getVastMediaWidth;sn.prototype.getVastMediaHeight=sn.prototype.getVastMediaHeight;sn.prototype.getVastMediaBitrate=sn.prototype.getVastMediaBitrate;
604
605
  sn.prototype.getDescription=sn.prototype.getDescription;sn.prototype.getTitle=sn.prototype.getTitle;sn.prototype.getPositionInSequence=sn.prototype.getPositionInSequence;sn.prototype.getSequenceLength=sn.prototype.getSequenceLength;sn.prototype.setMuted=sn.prototype.setMuted;sn.prototype.resize=sn.prototype.resize;sn.prototype.isLinear=sn.prototype.isLinear;sn.prototype.isMuted=sn.prototype.isMuted;sn.prototype.setVolume=sn.prototype.setVolume;sn.prototype.getVolume=sn.prototype.getVolume;
605
- sn.prototype.play=sn.prototype.play;sn.prototype.pause=sn.prototype.pause;sn.prototype.skip=sn.prototype.skip;sn.prototype.canSkipNow=sn.prototype.canSkipNow;sn.prototype.getTimeUntilSkippable=sn.prototype.getTimeUntilSkippable;sn.prototype.isSkippable=sn.prototype.isSkippable;sn.prototype.isPaused=sn.prototype.isPaused;sn.prototype.getRemainingTime=sn.prototype.getRemainingTime;sn.prototype.getMinSuggestedDuration=sn.prototype.getMinSuggestedDuration;sn.prototype.getDuration=sn.prototype.getDuration;function tn(a,b,c,d,e){var f=this;this.o=a;this.i=b;this.A=!1;this.s=this.C=null;this.F=NaN;this.m=e;this.j=null;this.h=new fb;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);a=new google.ima.AdDisplayContainer(this.o,this.i);a.initialize();this.l=new google.ima.AdsLoader(a);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v4.6.16");this.g=null;this.u=d||new google.ima.AdsRenderingSettings;this.h.D(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,
606
+ sn.prototype.play=sn.prototype.play;sn.prototype.pause=sn.prototype.pause;sn.prototype.skip=sn.prototype.skip;sn.prototype.canSkipNow=sn.prototype.canSkipNow;sn.prototype.getTimeUntilSkippable=sn.prototype.getTimeUntilSkippable;sn.prototype.isSkippable=sn.prototype.isSkippable;sn.prototype.isPaused=sn.prototype.isPaused;sn.prototype.getRemainingTime=sn.prototype.getRemainingTime;sn.prototype.getMinSuggestedDuration=sn.prototype.getMinSuggestedDuration;sn.prototype.getDuration=sn.prototype.getDuration;function tn(a,b,c,d,e){var f=this;this.o=a;this.i=b;this.A=!1;this.s=this.C=null;this.F=NaN;this.m=e;this.j=null;this.h=new fb;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);a=new google.ima.AdDisplayContainer(this.o,this.i);a.initialize();this.l=new google.ima.AdsLoader(a);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v4.6.17");this.g=null;this.u=d||new google.ima.AdsRenderingSettings;this.h.D(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,
606
607
  function(g){un(f,g)});this.h.D(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){vn(f,g)});this.h.D(this.i,"ended",function(){f.l.contentComplete()});this.h.ha(this.i,"play",function(){f.A=!0})}tn.prototype.configure=function(a){this.C=a};tn.prototype.stop=function(){this.g&&this.g.stop();this.o&&Qk(this.o)};tn.prototype.release=function(){this.stop();this.s&&this.s.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.l.destroy()};
607
608
  function vn(a,b){b.getError();b=(new Map).set("originalEvent",b);a.m(new Q("ad-error",b));wn(a,null);a.m(new Q("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
608
609
  function un(a,b){a.m(new Q("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.F)));if(a.C.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.u);a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume);a.h.D(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.D(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.u);a.m(new Q("ima-ad-manager-loaded",(new Map).set("imaAdManager",
@@ -652,8 +653,8 @@ function On(a,b){a.i(new Q("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-
652
653
  r.release=function(){this.h&&(this.h.release(),this.h=null);this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);ef.prototype.release.call(this)};r.onAssetUnload=function(){this.h&&this.h.stop();this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new Q("ad-stopped"));this.j=new rn};r.requestClientSideAds=function(a){if(!this.h)throw new P(1,10,10001);var b=this.h;b.g&&b.g.destroy();b.l&&b.l.contentComplete();b.F=Date.now()/1E3;b.l.requestAds(a)};
653
654
  r.updateClientSideAdsRenderingSettings=function(a){if(!this.h)throw new P(1,10,10001);var b=this.h;b.u=a;b.g&&b.g.updateAdsRenderingSettings(b.u)};r.initMediaTailor=function(a,b,c){var d=this;this.i&&this.i.release();this.i=new Bn(a,b,c,function(e){return Pn(d,e)})};r.requestMediaTailorStream=function(a,b,c){if(!this.i)throw new P(1,10,10005);var d=this.i;c=void 0===c?"":c;d.l?a=Promise.reject(new P(1,10,10004)):(d.l=new Ve,En(d,a,b),d.G=c||"",d.W=Date.now()/1E3,a=d.l);return a};
654
655
  r.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new P(2,10,10002);this.g&&this.g.release();this.g=new Nn(a,b,this.m,function(d){return Pn(c,d)});this.g.configure(this.l)};
655
- r.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new P(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ua('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.6.16";c=this.g;c.j?a=Promise.reject(new P(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
656
- (c.G=!0),c.j=new Ve,c.g.requestStream(a),c.A=b||"",c.F=Date.now()/1E3,a=c.j);return a};r.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new P(1,10,10003);(a.mpt||a.mpv)&&Ua('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v4.6.16";this.g.g.replaceAdTagParameters(a)};
656
+ r.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new P(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ua('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.6.17";c=this.g;c.j?a=Promise.reject(new P(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
657
+ (c.G=!0),c.j=new Ve,c.g.requestStream(a),c.A=b||"",c.F=Date.now()/1E3,a=c.j);return a};r.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new P(1,10,10003);(a.mpt||a.mpv)&&Ua('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v4.6.17";this.g.g.replaceAdTagParameters(a)};
657
658
  r.getServerSideCuePoints=function(){ve("AdManager.getServerSideCuePoints","Please use getCuePoints function.");return this.getCuePoints()};r.getCuePoints=function(){var a=[];this.g&&(a=a.concat(this.g.getCuePoints()));this.i&&(a=a.concat(this.i.getCuePoints()));return a};r.getStats=function(){var a=this.j;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};r.onManifestUpdated=function(a){if(this.i)this.i.onManifestUpdated(a)};
658
659
  r.onDashTimedMetadata=function(a){if(this.g&&"urn:google:dai:2018"==a.schemeIdUri){var b=a.schemeIdUri,c=a.eventElement?a.eventElement.getAttribute("messageData"):null;this.g.g.processMetadata(b,c,a.startTime)}};r.onHlsTimedMetadata=function(a,b){this.g&&this.g.g.processMetadata("ID3",a.data,b)};r.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};
659
660
  function Pn(a,b){if(b&&b.type)switch(b.type){case "ads-loaded":a.j.h.push(b.loadTime);break;case "ad-started":a.j.g++;break;case "ad-complete":a.j.i++;break;case "ad-skipped":a.j.j++}a.dispatchEvent(b)}N("shaka.ads.AdManager",Y);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;
@@ -667,34 +668,34 @@ function Sn(a){return{length:a.length,start:function(b){return a.start[b]},end:f
667
668
  var Tn="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),Un="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),Vn=["loop","playbackRate"],Wn=["pause","play"],Xn={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getImageTracks:2,getThumbnails:2,
668
669
  isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10,getManifestType:10},Yn={getConfiguration:4,getStats:5,getTextTracks:2,getVariantTracks:2},Zn={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},$n=[["getConfiguration","configure"]],ao=[["isTextTrackVisible","setTextTrackVisibility"]],bo="addChaptersTrack addTextTrackAsync addThumbnailsTrack cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),
669
670
  co=["attach","attachCanvas","detach","load","unload"];function eo(a,b,c,d,e,f,g){var h=this;this.G=a;this.J=g;this.l=new qd(b);this.K=c;this.s=!1;this.u=d;this.F=e;this.N=f;this.h=this.m=!1;this.I="";this.o=null;this.A=function(){return fo(h)};this.C=function(k,l){k=Rn(l);switch(k.type){case "event":var m=k.targetName,n=cf(k.event);h.u(m,n);break;case "update":m=k.update;for(n in m){k=h.g[n]||{};for(var q in m[n])k[q]=m[n][q]}h.s&&(h.K(),h.s=!1);break;case "asyncComplete":if(n=k.id,q=k.error,k=h.i[n],delete h.i[n],k)if(q){n=new P(q.severity,q.category,
670
- q.code);for(m in q)n[m]=q[m];k.reject(n)}else k.resolve()}};this.g={video:{},player:{}};this.H=0;this.i={};this.j=null;go.add(this)}r=eo.prototype;r.destroy=function(){go.delete(this);ho(this);io&&jo(this);this.l&&(this.l.stop(),this.l=null);this.F=this.u=null;this.h=this.m=!1;this.C=this.A=this.j=this.i=this.g=this.o=null;return Promise.resolve()};r.Ia=function(){return this.h};r.Ze=function(){return this.I};
671
+ q.code);for(m in q)n[m]=q[m];k.reject(n)}else k.resolve()}};this.g={video:{},player:{}};this.H=0;this.i={};this.j=null;go.add(this)}r=eo.prototype;r.destroy=function(){go.delete(this);ho(this);io&&jo(this);this.l&&(this.l.stop(),this.l=null);this.F=this.u=null;this.h=this.m=!1;this.C=this.A=this.j=this.i=this.g=this.o=null;return Promise.resolve()};r.Ia=function(){return this.h};r.Ye=function(){return this.I};
671
672
  r.init=function(){if(this.G.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.l.nc();var a=new chrome.cast.SessionRequest(this.G,[],null,this.J,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=t(go),d=c.next();!d.done;d=c.next()){d=d.value;var e=b;d.j=new Ve;d.s=!0;ko(d,e)}},function(b){for(var c=t(go),d=c.next();!d.done;d=c.next())d=d.value,lo="available"==b,d.l.nc()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});lo&&this.l.U(mo);(a=io)&&
672
- a.status!=chrome.cast.SessionStatus.STOPPED?(this.j=new Ve,this.s=!0,ko(this,a)):io=null}else window.__onGCastApiAvailable!==no&&(oo=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=no)};r.ff=function(a){this.o=a;this.h&&po(this,{type:"appData",appData:this.o})};
673
+ a.status!=chrome.cast.SessionStatus.STOPPED?(this.j=new Ve,this.s=!0,ko(this,a)):io=null}else window.__onGCastApiAvailable!==no&&(oo=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=no)};r.ef=function(a){this.o=a;this.h&&po(this,{type:"appData",appData:this.o})};
673
674
  r.cast=function(){var a=this;return K(function(b){if(!a.m)throw new P(1,8,8E3);if(!lo)throw new P(1,8,8001);if(a.h)throw new P(1,8,8002);a.j=new Ve;chrome.cast.requestSession(function(c){return ko(a,c)},function(c){return qo(a,c)});return C(b,a.j,0)})};function ro(a){a.h&&chrome.cast.requestSession(function(b){return ko(a,b)},function(b){return qo(a,b)})}r.Yb=function(){if(this.h){ho(this);if(io){jo(this);try{io.stop(function(){},function(){})}catch(a){}io=null}fo(this)}};
674
- r.get=function(a,b){var c=this;if("video"==a){if(Wn.includes(b))return function(){return c.Yf.apply(c,[a,b].concat(w(Ha.apply(0,arguments))))}}else if("player"==a){if(Zn[b]&&!this.get("player","isLive")())return function(){};if(bo.includes(b))return function(){return c.Yf.apply(c,[a,b].concat(w(Ha.apply(0,arguments))))};if(co.includes(b))return function(){return c.Ch.apply(c,[a,b].concat(w(Ha.apply(0,arguments))))};if(Xn[b]||Yn[b])return function(){return c.g[a][b]}}return this.g[a][b]};
675
+ r.get=function(a,b){var c=this;if("video"==a){if(Wn.includes(b))return function(){return c.Xf.apply(c,[a,b].concat(w(Ha.apply(0,arguments))))}}else if("player"==a){if(Zn[b]&&!this.get("player","isLive")())return function(){};if(bo.includes(b))return function(){return c.Xf.apply(c,[a,b].concat(w(Ha.apply(0,arguments))))};if(co.includes(b))return function(){return c.Bh.apply(c,[a,b].concat(w(Ha.apply(0,arguments))))};if(Xn[b]||Yn[b])return function(){return c.g[a][b]}}return this.g[a][b]};
675
676
  r.set=function(a,b,c){this.g[a][b]=c;po(this,{type:"set",targetName:a,property:b,value:c})};function ko(a,b){var c=a.N();io=b;b.addUpdateListener(a.A);b.addMessageListener("urn:x-cast:com.google.shaka.v2",a.C);fo(a);po(a,{type:"init",initState:c,appData:a.o});a.j.resolve()}function qo(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.j.reject(new P(2,8,c,b))}
676
- r.Yf=function(a,b){po(this,{type:"call",targetName:a,methodName:b,args:Ha.apply(2,arguments)})};r.Ch=function(a,b){var c=Ha.apply(2,arguments),d=new Ve,e=this.H.toString();this.H++;this.i[e]=d;try{po(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function jo(a){var b=io;b.removeUpdateListener(a.A);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.C)}
677
+ r.Xf=function(a,b){po(this,{type:"call",targetName:a,methodName:b,args:Ha.apply(2,arguments)})};r.Bh=function(a,b){var c=Ha.apply(2,arguments),d=new Ve,e=this.H.toString();this.H++;this.i[e]=d;try{po(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function jo(a){var b=io;b.removeUpdateListener(a.A);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.C)}
677
678
  function fo(a){var b=io?"connected"==io.status:!1;if(a.h&&!b){a.F();for(var c in a.g)a.g[c]={};ho(a)}a.h=b;a.I=b?io.receiver.friendlyName:"";a.l.nc()}function ho(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new P(1,7,7E3))}}function po(a,b){b=Qn(b);var c=io;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},Xa)}catch(d){throw b=new P(2,8,8005,d),c=new Q("error",(new Map).set("detail",b)),a.u("player",c),a.Yb(),b;}}var mo=.02,lo=!1,io=null,oo=null,go=new Set;
678
679
  function no(a){oo?window.__onGCastApiAvailable=oo:delete window.__onGCastApiAvailable;oo=null;if(a)for(var b=t(go),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function so(a,b,c,d){d=void 0===d?!1:d;ef.call(this);var e=this;this.i=a;this.h=b;this.m=this.o=this.j=this.s=this.l=null;this.C=c;this.A=d;this.u=new Map;this.g=new eo(c,function(){return to(e)},function(){return uo(e)},function(f,g){return vo(e,f,g)},function(){return wo(e)},function(){return xo(e)},d);yo(this)}pa(so,ef);r=so.prototype;
679
- r.destroy=function(a){a&&this.g.Yb();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.s=this.l=this.i=null;ef.prototype.release.call(this);return Promise.all(a)};r.bh=function(){return this.l};r.Tg=function(){return this.s};r.vg=function(){return this.g.m&&lo};r.Ia=function(){return this.g.Ia()};r.Ze=function(){return this.g.Ze()};
680
- r.cast=function(){var a=this;return K(function(b){return 1==b.g?C(b,a.g.cast(),2):a.h?C(b,a.h.oc(),0):b.return()})};r.ff=function(a){this.g.ff(a)};r.Qh=function(){ro(this.g)};r.Yb=function(){this.g.Yb()};
681
- r.wg=function(a,b){b=void 0===b?!1:b;var c=this;return K(function(d){if(1==d.g){if(a==c.C&&b==c.A)return d.return();c.C=a;c.A=b;c.g.Yb();return C(d,c.g.destroy(),2)}c.g=null;c.g=new eo(a,function(){return to(c)},function(){return uo(c)},function(e,f){return vo(c,e,f)},function(){return wo(c)},function(){return xo(c)},b);c.g.init();F(d)})};
680
+ r.destroy=function(a){a&&this.g.Yb();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.s=this.l=this.i=null;ef.prototype.release.call(this);return Promise.all(a)};r.ah=function(){return this.l};r.Sg=function(){return this.s};r.ug=function(){return this.g.m&&lo};r.Ia=function(){return this.g.Ia()};r.Ye=function(){return this.g.Ye()};
681
+ r.cast=function(){var a=this;return K(function(b){return 1==b.g?C(b,a.g.cast(),2):a.h?C(b,a.h.oc(),0):b.return()})};r.ef=function(a){this.g.ef(a)};r.Ph=function(){ro(this.g)};r.Yb=function(){this.g.Yb()};
682
+ r.vg=function(a,b){b=void 0===b?!1:b;var c=this;return K(function(d){if(1==d.g){if(a==c.C&&b==c.A)return d.return();c.C=a;c.A=b;c.g.Yb();return C(d,c.g.destroy(),2)}c.g=null;c.g=new eo(a,function(){return to(c)},function(){return uo(c)},function(e,f){return vo(c,e,f)},function(){return wo(c)},function(){return xo(c)},b);c.g.init();F(d)})};
682
683
  function yo(a){a.g.init();a.m=new fb;for(var b=t(Tn),c=b.next();!c.done;c=b.next())a.m.D(a.i,c.value,function(f){a.g.Ia()||(f=cf(f),a.j.dispatchEvent(f))});for(var d in df)a.m.D(a.h,df[d],function(f){a.g.Ia()||a.o.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.tc=e,Object.defineProperty(a.l,b.tc,{configurable:!1,enumerable:!0,get:function(f){return function(){return zo(a,f.tc)}}(b),set:function(f){return function(g){var h=f.tc;a.g.Ia()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={tc:b.tc};a.s={};Ao(a,
683
684
  function(f){Object.defineProperty(a.s,f,{configurable:!1,enumerable:!0,get:function(){return Bo(a,f)}})});Co(a);a.j=new ef;a.j.vd=a.l;a.o=new ef;a.o.vd=a.s}function Co(a){var b=new Map;Ao(a,function(c,d){b.has(d)?(d=b.get(d),c.length<d.length?a.u.set(c,d):a.u.set(d,c)):b.set(d,c)})}
684
685
  function Ao(a,b){function c(k){return"constructor"==k||"function"!=typeof d[k]?!1:!e.has(k)}var d=a.h,e=new Set,f;for(f in d)c(f)&&(e.add(f),b(f,d[f]));a=Object.getPrototypeOf(d);for(f=Object.getPrototypeOf({});a&&a!=f;){for(var g=t(Object.getOwnPropertyNames(a)),h=g.next();!h.done;h=g.next())h=h.value,c(h)&&(e.add(h),b(h,d[h]));a=Object.getPrototypeOf(a)}}
685
686
  function xo(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.Ae(),startTime:null};a.i.pause();for(var c=t(Vn),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($n);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(ao);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 to(a){var b=new Q("caststatuschanged");a.dispatchEvent(b)}
686
687
  function uo(a){var b=new Q(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
687
688
  function wo(a){for(var b=t($n),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(Vn);for(d=c.next();!d.done;d=c.next())d=
688
- d.value,k[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var l=t(Vn),m=l.next();!m.done;m=l.next())m=m.value,a.i[m]=k[m];l=t(ao);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.fg(h);g&&a.h.df(g.language,g.roles,g.forced);a.i.autoplay=f;e&&a.i.play()}},function(l){l=(new Map).set("detail",l);l=new Q("error",l);a.h.dispatchEvent(l)})}
689
+ d.value,k[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var l=t(Vn),m=l.next();!m.done;m=l.next())m=m.value,a.i[m]=k[m];l=t(ao);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.eg(h);g&&a.h.cf(g.language,g.roles,g.forced);a.i.autoplay=f;e&&a.i.play()}},function(l){l=(new Map).set("detail",l);l=new Q("error",l);a.h.dispatchEvent(l)})}
689
690
  function zo(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.Ia()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.Ia()?a.g.get("video",b):(b=a.i[b],"function"==typeof b&&(b=b.bind(a.i)),b)}
690
- function Bo(a,b){a.u.has(b)&&(b=a.u.get(b));if("addEventListener"==b)return function(c,d,e){return a.o.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.o.removeEventListener(c,d,e)};if("getMediaElement"==b)return function(){return a.l};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.h.Kb()};if("getDrmEngine"==b)return function(){return a.h.m};if("getAdManager"==b)return function(){return a.h.Hf()};
691
- if("setVideoContainer"==b)return function(c){return a.h.ig(c)};if(a.g.Ia()){if("getManifest"==b||"drmInfo"==b)return function(){Ua(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Ua(b+"() does not work while casting!");return Promise.resolve()}}return a.g.Ia()&&0==Object.keys(a.g.g.video).length&&(Xn[b]||Yn[b])||!a.g.Ia()?a.h[b].bind(a.h):a.g.get("player",b)}
692
- function vo(a,b,c){a.g.Ia()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.o.dispatchEvent(c))}N("shaka.cast.CastProxy",so);so.prototype.changeReceiverId=so.prototype.wg;so.prototype.forceDisconnect=so.prototype.Yb;so.prototype.suggestDisconnect=so.prototype.Qh;so.prototype.setAppData=so.prototype.ff;so.prototype.cast=so.prototype.cast;so.prototype.receiverName=so.prototype.Ze;so.prototype.isCasting=so.prototype.Ia;so.prototype.canCast=so.prototype.vg;so.prototype.getPlayer=so.prototype.Tg;
693
- so.prototype.getVideo=so.prototype.bh;so.prototype.destroy=so.prototype.destroy;function Do(a,b,c,d){ef.call(this);var e=this;this.g=a;this.h=b;this.j=new fb;this.H={video:a,player:b};this.C=c||function(){};this.I=d||function(f){return f};this.i=null;this.F=!1;this.o=!0;this.m=0;this.A=!1;this.u=!0;this.s=this.l=null;this.G=new qd(function(){Eo(e)});Fo(this)}pa(Do,ef);r=Do.prototype;r.isConnected=function(){return this.F};r.ih=function(){return this.o};r.Oh=function(a){this.i=a};r.zg=function(){this.i=null};
694
- r.Ph=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};r.Nh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};r.Mh=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
691
+ function Bo(a,b){a.u.has(b)&&(b=a.u.get(b));if("addEventListener"==b)return function(c,d,e){return a.o.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.o.removeEventListener(c,d,e)};if("getMediaElement"==b)return function(){return a.l};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.h.Kb()};if("getDrmEngine"==b)return function(){return a.h.m};if("getAdManager"==b)return function(){return a.h.Gf()};
692
+ if("setVideoContainer"==b)return function(c){return a.h.hg(c)};if(a.g.Ia()){if("getManifest"==b||"drmInfo"==b)return function(){Ua(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Ua(b+"() does not work while casting!");return Promise.resolve()}}return a.g.Ia()&&0==Object.keys(a.g.g.video).length&&(Xn[b]||Yn[b])||!a.g.Ia()?a.h[b].bind(a.h):a.g.get("player",b)}
693
+ function vo(a,b,c){a.g.Ia()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.o.dispatchEvent(c))}N("shaka.cast.CastProxy",so);so.prototype.changeReceiverId=so.prototype.vg;so.prototype.forceDisconnect=so.prototype.Yb;so.prototype.suggestDisconnect=so.prototype.Ph;so.prototype.setAppData=so.prototype.ef;so.prototype.cast=so.prototype.cast;so.prototype.receiverName=so.prototype.Ye;so.prototype.isCasting=so.prototype.Ia;so.prototype.canCast=so.prototype.ug;so.prototype.getPlayer=so.prototype.Sg;
694
+ so.prototype.getVideo=so.prototype.ah;so.prototype.destroy=so.prototype.destroy;function Do(a,b,c,d){ef.call(this);var e=this;this.g=a;this.h=b;this.j=new fb;this.H={video:a,player:b};this.C=c||function(){};this.I=d||function(f){return f};this.i=null;this.F=!1;this.o=!0;this.m=0;this.A=!1;this.u=!0;this.s=this.l=null;this.G=new qd(function(){Eo(e)});Fo(this)}pa(Do,ef);r=Do.prototype;r.isConnected=function(){return this.F};r.hh=function(){return this.o};r.Nh=function(a){this.i=a};r.yg=function(){this.i=null};
695
+ r.Oh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};r.Mh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};r.Lh=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
695
696
  r.destroy=function(){var a=this,b,c;return K(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.H=null,a.C=null,a.F=!1,a.o=!0,a.l=null,a.s=null,ef.prototype.release.call(a),C(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();F(d)})};
696
697
  function Fo(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return Go(a)};b.onSenderDisconnected=function(){return Go(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&Ho(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);Ho(a,{type:"event",targetName:"video",event:{type:"volumechange"}},a.l)};a.s=b.getCastMessageBus("urn:x-cast:com.google.cast.media");a.s.onMessage=function(e){return Io(a,
697
- e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return Jo(a,e)};b.start();b=t(Tn);for(var c=b.next();!c.done;c=b.next())a.j.D(a.g,c.value,function(e){return Ko(a,"video",e)});for(var d in df)a.j.D(a.h,df[d],function(e){return Ko(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.h.jf(3840,2160):a.h.jf(1920,1080);a.j.D(a.g,"loadeddata",function(){a.A=!0});a.j.D(a.h,"loading",function(){a.o=
698
+ e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return Jo(a,e)};b.start();b=t(Tn);for(var c=b.next();!c.done;c=b.next())a.j.D(a.g,c.value,function(e){return Ko(a,"video",e)});for(var d in df)a.j.D(a.h,df[d],function(e){return Ko(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.h.hf(3840,2160):a.h.hf(1920,1080);a.j.D(a.g,"loadeddata",function(){a.A=!0});a.j.D(a.h,"loading",function(){a.o=
698
699
  !1;Lo(a)});a.j.D(a.g,"playing",function(){a.o=!1;Lo(a)});a.j.D(a.g,"pause",function(){Lo(a)});a.j.D(a.h,"unloading",function(){a.o=!0;Lo(a)});a.j.D(a.g,"ended",function(){(new qd(function(){a.g&&a.g.ended&&(a.o=!0,Lo(a))})).U(Mo)})}function Go(a){a.m=0;a.u=!0;a.F=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;Lo(a)}
699
700
  function Lo(a){var b;K(function(c){if(1==c.g)return C(c,Promise.resolve(),2);if(!a.h)return c.return();b=new Q("caststatuschanged");a.dispatchEvent(b);No(a)||Oo(a);F(c)})}
700
701
  function Po(a,b,c){var d,e,f,g,h,k,l,m,n,q;K(function(p){switch(p.g){case 1:for(d in b.player)e=b.player[d],a.h[d](e);a.C(c);f=a.g.autoplay;return b.manifest?(a.g.autoplay=!1,ta(p,5),C(p,a.h.load(b.manifest,b.startTime),7)):C(p,Promise.resolve(),3);case 7:va(p,3);break;case 5:return g=wa(p),h=(new Map).set("detail",g),k=new Q("error",h),a.h&&a.h.dispatchEvent(k),p.return();case 3:if(!a.h)return p.return();for(l in b.video)m=b.video[l],a.g[l]=m;for(n in b.playerAfterLoad)q=b.playerAfterLoad[n],a.h[n](q);
@@ -706,7 +707,7 @@ function Jo(a,b){var c=Rn(b.data);switch(c.type){case "init":a.m=0;a.A=!1;a.u=!0
706
707
  function Io(a,b){var c=Rn(b.data);switch(c.type){case "PLAY":a.g.play();Oo(a);break;case "PAUSE":a.g.pause();Oo(a);break;case "SEEK":b=c.currentTime;var d=c.resumeState;null!=b&&(a.g.currentTime=Number(b));d&&"PLAYBACK_START"==d?(a.g.play(),Oo(a)):d&&"PLAYBACK_PAUSE"==d&&(a.g.pause(),Oo(a));break;case "STOP":a.h.oc().then(function(){a.h&&Oo(a)});break;case "GET_STATUS":Ro(a,Number(c.requestId));break;case "VOLUME":d=c.volume;b=d.level;d=d.muted;var e=a.g.volume,f=a.g.muted;null!=b&&(a.g.volume=Number(b));
707
708
  null!=d&&(a.g.muted=d);e==a.g.volume&&f==a.g.muted||Oo(a);break;case "LOAD":a.m=0;a.A=!1;a.u=!1;b=c.media;d=c.currentTime;e=a.I(b.contentId);f=c.autoplay||!0;a.C(b.customData);f&&(a.g.autoplay=!0);a.h.load(e,d).then(function(){a.h&&Ro(a)}).catch(function(g){var h="LOAD_FAILED";7==g.category&&7E3==g.code&&(h="LOAD_CANCELLED");Ho(a,{requestId:Number(c.requestId),type:h},a.s)});break;default:Ho(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.s)}}
708
709
  function So(a,b,c,d){a.h&&Ho(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function Ho(a,b,c,d){a.F&&(a=Qn(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function Oo(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.o?To:a.h.Ee()?Uo:a.g.paused?Vo:Wo,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);Ho(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.s)}
709
- N("shaka.cast.CastReceiver",Do);Do.prototype.destroy=Do.prototype.destroy;Do.prototype.setContentArtist=Do.prototype.Mh;Do.prototype.setContentImage=Do.prototype.Nh;Do.prototype.setContentTitle=Do.prototype.Ph;Do.prototype.clearContentMetadata=Do.prototype.zg;Do.prototype.setContentMetadata=Do.prototype.Oh;Do.prototype.isIdle=Do.prototype.ih;Do.prototype.isConnected=Do.prototype.isConnected;var Qo=.5,Mo=5,To="IDLE",Wo="PLAYING",Uo="BUFFERING",Vo="PAUSED";function Xo(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(B){return null!=B&&""!=B.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(B){return null!=B&&""!=B.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",n=Yo(d,e,h,k,l,m);f<=g;f++){for(var q=c[f],p=-1,u=-1,v=0;v<q.length;v++)if(null!=q[v]&&""!==q[v].g.trim()){p=v;break}for(v=q.length-1;0<=v;v--)if(null!=q[v]&&""!==q[v].g.trim()){u=v;break}if(-1===
710
+ N("shaka.cast.CastReceiver",Do);Do.prototype.destroy=Do.prototype.destroy;Do.prototype.setContentArtist=Do.prototype.Lh;Do.prototype.setContentImage=Do.prototype.Mh;Do.prototype.setContentTitle=Do.prototype.Oh;Do.prototype.clearContentMetadata=Do.prototype.yg;Do.prototype.setContentMetadata=Do.prototype.Nh;Do.prototype.isIdle=Do.prototype.hh;Do.prototype.isConnected=Do.prototype.isConnected;var Qo=.5,Mo=5,To="IDLE",Wo="PLAYING",Uo="BUFFERING",Vo="PAUSED";function Xo(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(B){return null!=B&&""!=B.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(B){return null!=B&&""!=B.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",n=Yo(d,e,h,k,l,m);f<=g;f++){for(var q=c[f],p=-1,u=-1,v=0;v<q.length;v++)if(null!=q[v]&&""!==q[v].g.trim()){p=v;break}for(v=q.length-1;0<=v;v--)if(null!=q[v]&&""!==q[v].g.trim()){u=v;break}if(-1===
710
711
  p||-1===u)q=Zo(d,e),a.nestedCues.push(q);else{for(;p<=u;p++)if(v=q[p]){var y=v.l,z=v.i,x=v.j,A=v.h;if(y!=h||z!=k||x!=l||A!=m)n.payload&&a.nestedCues.push(n),n=Yo(d,e,y,z,x,A),h=y,k=z,l=x,m=A;n.payload+=v.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=Zo(d,e),a.nestedCues.push(n));n=Yo(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}
711
712
  function Yo(a,b,c,d,e,f){a=new Ib(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function Zo(a,b){a=new Ib(a,b,"");a.lineBreak=!0;return a}function $o(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function ap(a,b){this.i=[];this.g=1;this.h=0;this.u=a;this.s=b;this.j=this.m=!1;this.l="white";this.o="black";bp(this)}function cp(a,b,c){var d="CC"+((a.u<<1|a.s)+1),e=new Ib(b,c,"");e.lineInterpretation=1;var f=dp.get(a.g);f&&(e.line=f);return Xo(e,d,a.i,b,c)}function bp(a){ep(a,0,15);a.g=1}
712
713
  function fp(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case gp:d=hp.has(c)?hp.get(c):String.fromCharCode(c);break;case ip:d=jp.get(c);break;case kp:a.i[a.g].pop();d=lp.get(c);break;case mp:a.i[a.g].pop(),d=np.get(c)}d&&a.i[a.g].push(new $o(d,a.m,a.j,a.o,a.l))}}function op(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 ep(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]}
@@ -733,13 +734,13 @@ function Xp(a,b){var c=[];try{for(;b.ea();){var d=Lp(b).value,e=(d&224)>>5,f=d&3
733
734
  Up.prototype.getStreams=function(){return Array.from(this.u)};N("shaka.cea.CeaDecoder",Up);Cb=function(){return new Up};function Zp(a){for(var b=[],c=a,d=a=0;d<c.length;)2==a&&3==c[d]?(a=0,c=[].concat(w(c)),c.splice(d,1),c=new Uint8Array(c)):0==c[d]?a++:a=0,d++;a=c;for(d=0;d<a.length;){for(c=0;255==a[d];)c+=255,d++;c+=a[d++];for(var e=0;255==a[d];)e+=255,d++;e+=a[d++];4==c&&b.push(a.subarray(d,d+e));d+=e}return b};function $p(){this.j=new Map;this.i=this.h=0;this.g=aq}
734
735
  $p.prototype.init=function(a){function b(f){f=f.name;f in bq&&(c.g=bq[f])}var c=this,d=[],e=[];(new Qf).box("moov",Vf).box("mvex",Vf).O("trex",function(f){var g=f.reader;g.skip(4);g.skip(4);f=g.L();g=g.L();c.h=f;c.i=g}).box("trak",Vf).O("tkhd",function(f){f=Vh(f.reader,f.version);d.push(f.trackId)}).box("mdia",Vf).O("mdhd",function(f){f=Th(f.reader,f.version);e.push(f.timescale)}).box("minf",Vf).box("stbl",Vf).O("stsd",Xf).box("avc1",b).box("avc3",b).box("hev1",b).box("hvc1",b).box("dvh1",b).box("dvhe",
735
736
  b).box("encv",Yf).box("sinf",Vf).box("frma",function(f){f=Yh(f.reader).ga;f in bq&&(c.g=bq[f])}).parse(a,!0);if(!d.length||!e.length||d.length!=e.length)throw new P(2,2,2010);this.g==aq&&Ua("Unable to determine bitstream format for CEA parsing!");d.forEach(function(f,g){c.j.set(f,e[g])})};
736
- $p.prototype.parse=function(a){var b=this;if(this.g==aq)return[];var c=[],d=this.h,e=this.i,f=0,g=[],h=null,k=9E4;(new Qf).box("moof",function(l){f=l.start;g=[];Vf(l)}).box("traf",Vf).O("trun",function(l){l=Uh(l.reader,l.version,l.flags);g.push(l)}).O("tfhd",function(l){l=Rh(l.reader,l.flags);d=l.Df||b.h;e=l.Cg||b.i;l=l.trackId;b.j.has(l)&&(k=b.j.get(l))}).O("tfdt",function(l){h=Sh(l.reader,l.version).baseMediaDecodeTime}).box("mdat",function(l){if(null===h)throw Ua("Unable to find base media decode time for CEA captions!"),
737
+ $p.prototype.parse=function(a){var b=this;if(this.g==aq)return[];var c=[],d=this.h,e=this.i,f=0,g=[],h=null,k=9E4;(new Qf).box("moof",function(l){f=l.start;g=[];Vf(l)}).box("traf",Vf).O("trun",function(l){l=Uh(l.reader,l.version,l.flags);g.push(l)}).O("tfhd",function(l){l=Rh(l.reader,l.flags);d=l.Cf||b.h;e=l.Bg||b.i;l=l.trackId;b.j.has(l)&&(k=b.j.get(l))}).O("tfdt",function(l){h=Sh(l.reader,l.version).baseMediaDecodeTime}).box("mdat",function(l){if(null===h)throw Ua("Unable to find base media decode time for CEA captions!"),
737
738
  new P(2,2,2010);cq(b,l.reader,h,k,d,e,f-l.start-8,g,c)}).parse(a,!1);return c};
738
- function cq(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(u){return u.Zf});n=[].concat.apply([],w(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].Bg);b.ea();){g=b.L();var q=b.fa(),p=null;p=!1;h=1;switch(a.g){case dq:p=q&31;p=6==p;break;case eq:h=2;b.skip(1);p=q>>1&63;p=39==p||40==p;break;default:return}if(p)for(q=0,l<n.length&&(q=n[l].Rd||0),q=(c+q)/d,h=t(Zp(b.pb(g-h))),p=h.next();!p.done;p=h.next())k.push({packet:p.value,pts:q});else try{b.skip(g-h)}catch(u){break}m-=g+4;0==m&&(c=l<n.length?
739
- c+(n[l].bf||e):c+e,l++,l<n.length?m=n[l].sampleSize||f:m=f)}}N("shaka.cea.Mp4CeaParser",$p);var aq=0,dq=1,eq=2,bq={avc1:dq,avc3:dq,hev1:eq,hvc1:eq,dvh1:eq,dvhe:eq};Bb["video/mp4"]=function(){return new $p};function fq(){this.g=null}fq.prototype.init=function(){};fq.prototype.parse=function(a){this.g?this.g.clearData():this.g=new ii;var b=[];a=sb(a);if(!pi(a))return b;a=this.g.parse(a);var c=a.Oc(),d=a.Cd();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(Zp(d.data)),f=e.next();!f.done;f=e.next())b.push({packet:f.value,pts:d.time});return b};
739
+ function cq(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(u){return u.Yf});n=[].concat.apply([],w(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].Ag);b.ea();){g=b.L();var q=b.fa(),p=null;p=!1;h=1;switch(a.g){case dq:p=q&31;p=6==p;break;case eq:h=2;b.skip(1);p=q>>1&63;p=39==p||40==p;break;default:return}if(p)for(q=0,l<n.length&&(q=n[l].Rd||0),q=(c+q)/d,h=t(Zp(b.pb(g-h))),p=h.next();!p.done;p=h.next())k.push({packet:p.value,pts:q});else try{b.skip(g-h)}catch(u){break}m-=g+4;0==m&&(c=l<n.length?
740
+ c+(n[l].af||e):c+e,l++,l<n.length?m=n[l].sampleSize||f:m=f)}}N("shaka.cea.Mp4CeaParser",$p);var aq=0,dq=1,eq=2,bq={avc1:dq,avc3:dq,hev1:eq,hvc1:eq,dvh1:eq,dvhe:eq};Bb["video/mp4"]=function(){return new $p};function fq(){this.g=null}fq.prototype.init=function(){};fq.prototype.parse=function(a){this.g?this.g.clearData():this.g=new ii;var b=[];a=sb(a);if(!pi(a))return b;a=this.g.parse(a);var c=a.Oc(),d=a.Cd();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(Zp(d.data)),f=e.next();!f.done;f=e.next())b.push({packet:f.value,pts:d.time});return b};
740
741
  N("shaka.cea.TsCeaParser",fq);Bb["video/mp2t"]=function(){return new fq};function gq(a,b,c){var d=hq(a),e=null;a=[];var f=[],g=null,h=new Set(d.map(function(k){return k.keyId}));h.delete(null);if(1<h.size)throw new P(2,4,4010);if(!b){f=d.filter(function(k){return"urn:mpeg:dash:sea:2012"==k.$c});if(1<f.length)throw new P(2,4,4050);f.length&&(g=iq(f[0]));f=d.filter(function(k){return"urn:mpeg:dash:mp4protection:2011"==k.$c?(e=k.init||e,!1):"urn:mpeg:dash:sea:2012"!=k.$c});f.length&&(a=jq(e,f,c,h),0==a.length&&(a=[Fc("",e)]))}if(d.length&&!g&&(b||!f.length))for(a=[],b=t(Object.values(c)),
741
- c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Fc(c,e));if(h=Array.from(h)[0]||null)for(b=t(a),c=b.next();!c.done;c=b.next())for(c=t(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=h;return{Cf:h,Qi:e,drmInfos:a,de:g,Gf:!0}}
742
- function kq(a,b,c,d){var e=gq(a,c,d);if(b.Gf){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.Gf=!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 P(2,4,4008);return e.Cf||b.Cf}
742
+ c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Fc(c,e));if(h=Array.from(h)[0]||null)for(b=t(a),c=b.next();!c.done;c=b.next())for(c=t(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=h;return{Bf:h,Pi:e,drmInfos:a,de:g,Ff:!0}}
743
+ function kq(a,b,c,d){var e=gq(a,c,d);if(b.Ff){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.Ff=!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 P(2,4,4008);return e.Bf||b.Bf}
743
744
  function lq(a){var b=0,c=yb(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=sb(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}
744
745
  function mq(a){a=t(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next()){b=t(b.value.childNodes);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c instanceof Element&&"LA_URL"==c.tagName)return c.textContent}return""}
745
746
  function nq(a){var b=lg(a.node,"https://dashif.org/CPS","Laurl");if(b&&b.textContent)return b.textContent;a=lg(a.node,"urn:microsoft:playready","pro");if(!a)return"";a=dg(a.textContent);a=lq(a).filter(function(c){return c.type===oq})[0];if(!a)return"";a=Gf(a.value,!0);return(a=Cg(a,"WRMHEADER"))?mq(a):""}
@@ -747,12 +748,12 @@ function jq(a,b,c,d){var e=[];b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.
747
748
  226,251,75]),m=new Uint8Array([]);k=[{initData:ig(m,l,k,1),initDataType:"cenc",keyId:f.keyId}]}h=Fc(g,f.init||a||h||k);if(g=pq.get(g))h.licenseServerUri=g(f);e.push(h)}}return e}function hq(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=qq(c.value))&&b.push(c);return b}
748
749
  function qq(a){var b=a.getAttribute("schemeIdUri"),c=og(a,"urn:mpeg:cenc:2013","default_KID"),d=mg(a,"urn:mpeg:cenc:2013","pssh").map(qg);if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new P(2,4,4009);var e=[];try{e=d.map(function(f){return{initDataType:"cenc",initData:dg(f),keyId:null}})}catch(f){throw new P(2,4,4007);}return{node:a,$c:b,keyId:c,init:0<e.length?e:null}}
749
750
  function iq(a){if(!window.crypto||!window.crypto.subtle)throw Ua("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new P(2,4,4042);var b=lg(a.node,"urn:mpeg:dash:schema:sea:2012","SegmentEncryption");if(!b)throw new P(2,4,4051);if("urn:mpeg:dash:sea:aes128-cbc:2013"!=b.getAttribute("schemeIdUri"))throw new P(2,4,4051);b=lg(a.node,"urn:mpeg:dash:schema:sea:2012","CryptoPeriod");if(!b)throw new P(2,4,4051);a=b.getAttribute("IV");b=b.getAttribute("keyUriTemplate");
750
- if(!a||!b)throw new P(2,4,4051);a=eg(a.substr(2));if(16!=a.byteLength)throw new P(2,4,4048);return{oh:b,iv:a}}
751
+ if(!a||!b)throw new P(2,4,4051);a=eg(a.substr(2));if(16!=a.byteLength)throw new P(2,4,4048);return{nh:b,iv:a}}
751
752
  var oq=1,pq=(new Map).set("com.widevine.alpha",function(a){var b=lg(a.node,"https://dashif.org/CPS","Laurl");return b&&b.textContent?b.textContent:(a=lg(a.node,"urn:microsoft","laurl"))?a.getAttribute("licenseUrl")||"":""}).set("com.microsoft.playready",nq).set("com.microsoft.playready.recommendation",nq).set("com.microsoft.playready.software",nq).set("com.microsoft.playready.hardware",nq).set("org.w3.clearkey",function(a){var b=lg(a.node,"https://dashif.org/CPS","Laurl");return b&&b.textContent?
752
753
  b.textContent:(a=lg(a.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===a.getAttribute("Lic_type")&&a.textContent?a.textContent:""});function rq(a,b,c,d,e,f){var g={RepresentationID:b,Number:c,SubNumber:d,Bandwidth:e,Time:f};return a.replace(/\$(RepresentationID|Number|SubNumber|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,function(h,k,l,m){if("$$"==h)return"$";var n=g[k];if(null==n)return h;"RepresentationID"==k&&l&&(l=void 0);"Time"==k&&"bigint"!=typeof n&&(.2<=Math.abs(n-Math.round(n))&&Ua("Calculated $Time$ values must be close to integers"),n=Math.round(n));switch(m){case void 0:case "d":case "i":case "u":h=n.toString();
753
754
  break;case "o":h=n.toString(8);break;case "x":h=n.toString(16);break;case "X":h=n.toString(16).toUpperCase();break;default:h=n.toString()}l=window.parseInt(l,10)||1;return Array(Math.max(0,l-h.length)+1).join("0")+h})}
754
755
  function sq(a,b){var c=tq(a,b,"timescale"),d=1;c&&(d=xg(c)||1);var e=tq(a,b,"duration");c=xg(e||"");"image"==a.M.contentType&&(c=zg(e||""));c&&(c/=d);var f=tq(a,b,"startNumber");e=Number(tq(a,b,"presentationTimeOffset"))||0;var g=yg(f||"");if(null==f||null==g)g=1;var h=uq(a,b,"SegmentTimeline");b=null;if(h){b=d;a=a.$.duration||Infinity;f=g;h=kg(h,"S");for(var k=[],l=-e,m=0;m<h.length;++m){var n=h[m],q=h[m+1],p=sg(n,"t",yg),u=sg(n,"d",yg),v=sg(n,"r",wg);n=sg(n,"k",wg)||0;null!=p&&(p-=e);if(!u)break;
755
- p=null!=p?p:l;v=v||0;if(0>v)if(q){q=sg(q,"t",yg);if(null==q)break;else if(p>=q)break;v=Math.ceil((q-p)/u)-1}else{if(Infinity==a)break;else if(p/b>=a)break;v=Math.ceil((a*b-p)/u)-1}0<k.length&&p!=l&&(k[k.length-1].end=p/b);for(q=0;q<=v;++q)l=p+u,k.push({start:p/b,end:l/b,tf:p,cb:n,Kh:k.length+f}),p=l}b=k}return{timescale:d,xa:c,dd:g,qb:e/d||0,rf:e,timeline:b}}function vq(a,b){return[b(a.M),b(a.ma),b(a.ra)].filter(ed)}
756
+ p=null!=p?p:l;v=v||0;if(0>v)if(q){q=sg(q,"t",yg);if(null==q)break;else if(p>=q)break;v=Math.ceil((q-p)/u)-1}else{if(Infinity==a)break;else if(p/b>=a)break;v=Math.ceil((a*b-p)/u)-1}0<k.length&&p!=l&&(k[k.length-1].end=p/b);for(q=0;q<=v;++q)l=p+u,k.push({start:p/b,end:l/b,rf:p,cb:n,Jh:k.length+f}),p=l}b=k}return{timescale:d,xa:c,dd:g,qb:e/d||0,qf:e,timeline:b}}function vq(a,b){return[b(a.M),b(a.ma),b(a.ra)].filter(ed)}
756
757
  function tq(a,b,c){b=vq(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=d.value.getAttribute(c));d=b.next());return a}function uq(a,b,c){b=vq(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=jg(d.value,c));d=b.next());return a}
757
758
  function wq(a,b,c,d,e,f){for(var g=og(a,"http://www.w3.org/1999/xlink","href"),h=og(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=t(Array.from(a.attributes)),l=k.next();!l.done;l=k.next())l=l.value,"http://www.w3.org/1999/xlink"==l.namespaceURI&&a.removeAttributeNS(l.namespaceURI,l.localName);if(5<=f)return Xe(new P(2,4,4028));if("onLoad"!=h)return Xe(new P(2,4,4027));var m=Ec([d],[g]);return e.request(0,of(m,b)).na(function(n){n=Eg(n.data,a.tagName);if(!n)return Xe(new P(2,4,4001,g));
758
759
  for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;n.childNodes.length;){var q=n.childNodes[0];n.removeChild(q);a.appendChild(q)}n=t(Array.from(n.attributes));for(q=n.next();!q.done;q=n.next())a.setAttributeNode(q.value.cloneNode(!1));return xq(a,b,c,m[0],e,f+1)})}
@@ -760,31 +761,31 @@ function xq(a,b,c,d,e,f){f=void 0===f?0:f;if(og(a,"http://www.w3.org/1999/xlink"
760
761
  function zq(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.L();if(0==k)throw new P(2,3,3005);if(0==g.version){var l=g.reader.L();var m=g.reader.L()}else l=g.reader.lc(),m=g.reader.lc();g.reader.skip(2);var n=g.reader.wa();a=a+g.size+m;for(m=0;m<n;m++){var q=g.reader.L(),p=(q&2147483648)>>>31;q&=2147483647;var u=g.reader.L();g.reader.skip(4);if(1==p)throw new P(2,3,3006);h.push(new R(l/k+c,(l+u)/k+c,function(){return f},a,a+q-1,b,c,d,e));l+=u;a+=q}g.parser.stop();return h};function Aq(a){this.h=yb(a);this.g=new Nf(this.h,0)}Aq.prototype.ea=function(){return this.g.ea()};
761
762
  function Bq(a){var b=Cq(a);if(7<b.length)throw new P(2,3,3002);var c=0;b=t(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=Cq(a);a:{d=t(Dq);for(var e=d.next();!e.done;e=d.next())if(qb(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.oa();else{if(8==b.length&&b[1]&224)throw new P(2,3,3001);for(e=d=0;e<b.length;e++){var f=b[e];d=0==e?f&(1<<8-b.length)-1:256*d+f}b=d}b=a.g.oa()+b<=a.h.byteLength?b:a.h.byteLength-a.g.oa();d=yb(a.h,a.g.oa(),b);a.g.skip(b);return new Eq(c,
762
763
  d)}function Cq(a){var b=a.g.oa(),c=a.g.fa();if(0==c)throw new P(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return sb(a.h,b,c)}var Dq=[[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 Eq(a,b){this.id=a;this.g=b}
763
- function Fq(a){if(8<a.g.byteLength)throw new P(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new P(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 Gq(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new Aq(a.g);for(var n=null,q=null;a.ea();){var p=Bq(a);if(187==p.id){var u=Hq(p);u&&(p=c*u.Th,u=b+u.Ah,null!=n&&m.push(new R(n+g,p+g,l,q,u-1,f,g,h,k)),n=p,q=u)}}null!=n&&m.push(new R(n+g,d+g,l,q,null,f,g,h,k));return m}
764
- function Hq(a){var b=new Aq(a.g);a=Bq(b);if(179!=a.id)throw new P(2,3,3013);a=Fq(a);b=Bq(b);if(183!=b.id)throw new P(2,3,3012);b=new Aq(b.g);for(var c=0;b.ea();){var d=Bq(b);if(241==d.id){c=Fq(d);break}}return{Th:a,Ah:c}};function Iq(a,b,c){b=uq(a,b,"Initialization");if(!b)return null;var d=a.M.ab(),e=b.getAttribute("sourceURL");e&&(d=Ec(d,[e]));e=0;var f=null;if(b=sg(b,"range",vg))e=b.start,f=b.end;return new Bh(function(){return d},e,f,Jq(a),null,null,c)}
764
+ function Fq(a){if(8<a.g.byteLength)throw new P(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new P(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 Gq(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new Aq(a.g);for(var n=null,q=null;a.ea();){var p=Bq(a);if(187==p.id){var u=Hq(p);u&&(p=c*u.Sh,u=b+u.zh,null!=n&&m.push(new R(n+g,p+g,l,q,u-1,f,g,h,k)),n=p,q=u)}}null!=n&&m.push(new R(n+g,d+g,l,q,null,f,g,h,k));return m}
765
+ function Hq(a){var b=new Aq(a.g);a=Bq(b);if(179!=a.id)throw new P(2,3,3013);a=Fq(a);b=Bq(b);if(183!=b.id)throw new P(2,3,3012);b=new Aq(b.g);for(var c=0;b.ea();){var d=Bq(b);if(241==d.id){c=Fq(d);break}}return{Sh:a,zh:c}};function Iq(a,b,c){b=uq(a,b,"Initialization");if(!b)return null;var d=a.M.ab(),e=b.getAttribute("sourceURL");e&&(d=Ec(d,[e]));e=0;var f=null;if(b=sg(b,"range",vg))e=b.start,f=b.end;return new Bh(function(){return d},e,f,Jq(a),null,null,c)}
765
766
  function Kq(a,b,c){var d=Number(tq(a,Lq,"presentationTimeOffset"))||0,e=tq(a,Lq,"timescale"),f=1;e&&(f=xg(e)||1);var g=d/f||0,h=Iq(a,Lq,c);Mq(a,h);var k=gf(a);return{Zb:function(){var l=uq(k,Lq,"RepresentationIndex");var m=k.M.ab();l&&(l=l.getAttribute("sourceURL"))&&(m=Ec(m,[l]));l=Nq(k);return Oq(k,b,h,m,l.start,l.end,g)}}}
766
767
  function Oq(a,b,c,d,e,f,g){var h,k,l,m,n,q,p,u,v,y,z,x,A,B,D;return K(function(E){if(1==E.g)return h=a.presentationTimeline,k=!a.xb||!a.$.Fe,l=a.$.start,m=a.$.duration,n=a.M.mimeType.split("/")[1],q=b,p=null,u=[q(d,e,f,!1),"webm"==n?q(c.Y(),c.Oa,c.ua,!0):null],q=null,C(E,Promise.all(u),2);v=E.h;y=v[0];z=v[1]||null;x=null;A=l-g;B=l;D=m?l+m:Infinity;if("mp4"==n)var J=yq(y,e,d,c,A,B,D);else{J=new Aq(z);if(440786851!=Bq(J).id)throw new P(2,3,3008);var G=Bq(J);if(408125543!=G.id)throw new P(2,3,3009);
767
768
  J=G.g.byteOffset;G=new Aq(G.g);for(var H=null;G.ea();){var I=Bq(G);if(357149030==I.id){H=I;break}}if(!H)throw new P(2,3,3010);H=new Aq(H.g);I=1E6;for(G=null;H.ea();){var L=Bq(H);if(2807729==L.id)I=Fq(L);else if(17545==L.id)if(4==L.g.byteLength)G=L.g.getFloat32(0);else if(8==L.g.byteLength)G=L.g.getFloat64(0);else throw new P(2,3,3003);}if(null==G)throw new P(2,3,3011);H=I/1E9;G*=H;I=Bq(new Aq(y));if(475249515!=I.id)throw new P(2,3,3007);J=Gq(I,J,H,G,d,c,A,B,D)}x=J;h.Wc(x);p=new Aj(x);k&&p.Xb(B,D,
768
769
  !0);return E.return(p)})}function Lq(a){return a.bd}function Nq(a){var b=uq(a,Lq,"RepresentationIndex");a=tq(a,Lq,"indexRange");a=vg(a||"");b&&(a=sg(b,"range",vg,a));return a}function Mq(a,b){Pq(a,b);if(!Nq(a))throw new P(2,4,4002);}function Pq(a,b){var c=a.M.mimeType.split("/")[1];if(a.M.contentType!=Jc&&"mp4"!=c&&"webm"!=c)throw new P(2,4,4006);if("webm"==c&&!b)throw new P(2,4,4005);}
769
770
  function Jq(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.Od,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function Qq(a,b,c){var d=Iq(a,Rq,c),e=Sq(a);if(!e.xa&&!e.timeline&&1<e.hc.length)throw new P(2,4,4002);if(!e.xa&&!a.$.duration&&!e.timeline&&1==e.hc.length)throw new P(2,4,4002);if(e.timeline&&0==e.timeline.length)throw new P(2,4,4002);var f=null,g=null;a.ra.id&&a.M.id&&(g=b[a.ra.id+","+a.M.id])&&(f=g.segmentIndex);var h=Tq(a.$.start,a.$.duration,a.M.ab,e,d,c);b=!f;f?f.Vc(h,a.presentationTimeline.bb()):f=new Aj(h);a.presentationTimeline.Wc(h);a.xb&&a.$.Fe||f.Xb(a.$.start,a.$.duration?a.$.start+a.$.duration:
770
771
  Infinity,b);g&&(g.segmentIndex=f);return{Zb:function(){f&&0!=f.yb()||f.Ld(h);return Promise.resolve(f)}}}function Rq(a){return a.Cb}function Sq(a){var b=Uq(a);a=sq(a,Rq);var c=a.dd;0==c&&(c=1);var d=0;a.xa?d=a.xa*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{xa:a.xa,startTime:d,dd:c,qb:a.qb,timeline:a.timeline,hc:b}}
771
- function Tq(a,b,c,d,e,f){var g=d.hc.length;d.timeline&&d.timeline.length!=d.hc.length&&(g=Math.min(d.timeline.length,d.hc.length));for(var h=a-d.qb,k=b?a+b:Infinity,l=[],m=d.startTime,n={},q=0;q<g;n={Bc:n.Bc,xc:n.xc},q++){n.xc=d.hc[q];var p=void 0;p=null!=d.xa?m+d.xa:d.timeline?d.timeline[q].end:m+b;n.Bc=null;l.push(new R(a+m,a+p,function(u){return function(){null==u.Bc&&(u.Bc=Ec(c(),[u.xc.sh]));return u.Bc}}(n),n.xc.start,n.xc.end,e,h,a,k,[],"",null,null,Dh,f));m=p}return l}
772
- function Uq(a){return[a.M.Cb,a.ma.Cb,a.ra.Cb].filter(ed).map(function(b){return kg(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.Mf&&(a.Mf=!0);var c=b.getAttribute("media");b=sg(b,"mediaRange",vg,{start:0,end:null});return{sh:c,start:b.start,end:b.end}})};function Vq(a,b,c,d,e,f,g){var h=Wq(a,g),k=Xq(a);Yq(k);var l=gf(a);if(k.Tc)return Pq(a,h),{Zb:function(){var u=rq(k.Tc,l.M.id,null,null,l.bandwidth||null,null);u=Ec(l.M.ab(),[u]);return Oq(l,b,h,u,0,null,k.qb)}};if(k.xa)return d||"image"===a.ma.contentType||(a.presentationTimeline.Se(k.xa),a.presentationTimeline.Nd(a.$.start)),{Zb:function(){return Zq(l,k,e,h,f,g)}};var m=null;d=d=null;a.ra.id&&a.M.id&&(d=a.ra.id+","+a.M.id,d=c[d])&&(m=d.segmentIndex);var n=a.$.start,q=a.$.duration?n+a.$.duration:
773
- Infinity,p=!(a.xb&&a.$.Fe);m?(c=m,$q(c,k,n,q,p,h),c.$a(a.presentationTimeline.bb())):m=new ar(k,a.M.id,a.bandwidth,a.M.ab,n,q,h,p,g,a.M.cf);k.timeline&&"image"!==a.ma.contentType&&a.presentationTimeline.Vf(k.timeline,n);d&&a.xb&&(d.segmentIndex=m);return{Zb:function(){m instanceof ar&&0==m.yb()&&$q(m,k,n,q,p,h);return Promise.resolve(m)}}}function br(a){return a.cd}
774
- function Xq(a){var b=sq(a,br),c=tq(a,br,"media");a=tq(a,br,"index");return{xa:b.xa,timescale:b.timescale,dd:b.dd,qb:b.qb,rf:b.rf,timeline:b.timeline,ic:c,Tc:a}}function Yq(a){var b=a.Tc?1:0;b+=a.timeline?1:0;b+=a.xa?1:0;if(0==b)throw new P(2,4,4002);1!=b&&(a.Tc&&(a.timeline=null),a.xa=null);if(!a.Tc&&!a.ic)throw new P(2,4,4002);}
772
+ function Tq(a,b,c,d,e,f){var g=d.hc.length;d.timeline&&d.timeline.length!=d.hc.length&&(g=Math.min(d.timeline.length,d.hc.length));for(var h=a-d.qb,k=b?a+b:Infinity,l=[],m=d.startTime,n={},q=0;q<g;n={Bc:n.Bc,xc:n.xc},q++){n.xc=d.hc[q];var p=void 0;p=null!=d.xa?m+d.xa:d.timeline?d.timeline[q].end:m+b;n.Bc=null;l.push(new R(a+m,a+p,function(u){return function(){null==u.Bc&&(u.Bc=Ec(c(),[u.xc.rh]));return u.Bc}}(n),n.xc.start,n.xc.end,e,h,a,k,[],"",null,null,Dh,f));m=p}return l}
773
+ function Uq(a){return[a.M.Cb,a.ma.Cb,a.ra.Cb].filter(ed).map(function(b){return kg(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.Lf&&(a.Lf=!0);var c=b.getAttribute("media");b=sg(b,"mediaRange",vg,{start:0,end:null});return{rh:c,start:b.start,end:b.end}})};function Vq(a,b,c,d,e,f,g){var h=Wq(a,g),k=Xq(a);Yq(k);var l=gf(a);if(k.Tc)return Pq(a,h),{Zb:function(){var u=rq(k.Tc,l.M.id,null,null,l.bandwidth||null,null);u=Ec(l.M.ab(),[u]);return Oq(l,b,h,u,0,null,k.qb)}};if(k.xa)return d||"image"===a.ma.contentType||(a.presentationTimeline.Re(k.xa),a.presentationTimeline.Nd(a.$.start)),{Zb:function(){return Zq(l,k,e,h,f,g)}};var m=null;d=d=null;a.ra.id&&a.M.id&&(d=a.ra.id+","+a.M.id,d=c[d])&&(m=d.segmentIndex);var n=a.$.start,q=a.$.duration?n+a.$.duration:
774
+ Infinity,p=!(a.xb&&a.$.Fe);m?(c=m,$q(c,k,n,q,p,h),c.$a(a.presentationTimeline.bb())):m=new ar(k,a.M.id,a.bandwidth,a.M.ab,n,q,h,p,g,a.M.bf);k.timeline&&"image"!==a.ma.contentType&&a.presentationTimeline.Uf(k.timeline,n);d&&a.xb&&(d.segmentIndex=m);return{Zb:function(){m instanceof ar&&0==m.yb()&&$q(m,k,n,q,p,h);return Promise.resolve(m)}}}function br(a){return a.cd}
775
+ function Xq(a){var b=sq(a,br),c=tq(a,br,"media");a=tq(a,br,"index");return{xa:b.xa,timescale:b.timescale,dd:b.dd,qb:b.qb,qf:b.qf,timeline:b.timeline,ic:c,Tc:a}}function Yq(a){var b=a.Tc?1:0;b+=a.timeline?1:0;b+=a.xa?1:0;if(0==b)throw new P(2,4,4002);1!=b&&(a.Tc&&(a.timeline=null),a.xa=null);if(!a.Tc&&!a.ic)throw new P(2,4,4002);}
775
776
  function Zq(a,b,c,d,e,f){function g(I){var L=(I-u)*p,M=L+b.qb,O=L+m;L=O+p;var S=Math.min(L,k());O=new R(O,S,function(){var da=M*v;"BigInt"in window&&da>Number.MAX_SAFE_INTEGER&&(da=BigInt(M)*BigInt(v));da=rq(y,x,I,null,z,da);return Ec(A(),[da])},0,null,d,B,m,k(),[],"",null,null,Dh,f);O.j=L;return O}function h(){var I=[Math.max(l.bb(),m),Math.min(l.zb(),k())].map(function(L){return L-m});return[Math.ceil(I[0]/p),Math.ceil(I[1]/p)-1].map(function(L){return L+u})}function k(){var I=null!=n&&e[n]||q;
776
777
  return I?m+I:Infinity}var l=a.presentationTimeline,m=a.$.start,n=a.ra.id,q=a.$.duration,p=b.xa,u=b.dd,v=b.timescale,y=b.ic,z=a.bandwidth||null,x=a.M.id,A=a.M.ab,B=m-b.qb,D=h();a=a.xb?Math.max(D[0],D[1]-c+1):D[0];D=D[1];c=[];for(var E=a;E<=D;++E){var J=g(E);c.push(J)}var G=new Aj(c);c=l.zb()<k();E=l.P();if(c||E){var H=Math.max(a,D+1);G.Td(p,function(){var I=l.bb();G.$a(I);var L=t(h());L.next();L=L.next().value;for(var M=[];H<=L;){var O=g(H);M.push(O);H++}return I>k()&&!M.length?null:M})}return Promise.resolve(G)}
777
778
  function Wq(a,b){var c=tq(a,br,"initialization");if(!c)return null;var d=a.M.id,e=a.bandwidth||null,f=a.M.ab;return new Bh(function(){var g=rq(c,d,null,null,e,null);return Ec(f(),[g])},0,null,Jq(a),null,null,b)}function ar(a,b,c,d,e,f,g,h,k,l){Aj.call(this,[]);this.h=a;this.F=b;this.A=c;this.C=d;this.i=e;this.l=f;this.s=g;this.u=k;this.G=l;h&&cr(this)}pa(ar,Aj);r=ar.prototype;r.yb=function(){return this.h?this.h.timeline.length:0};r.release=function(){Aj.prototype.release.call(this);this.h=null};
778
779
  r.$a=function(a){if(this.h){for(var b=0,c=this.h.timeline,d=0;d<c.length;d+=1)if(c[d].end+this.i<=a)b+=1;else break;0<b&&(this.h.timeline=c.slice(b),this.g.length>=b&&(this.g=this.g.slice(b)),this.j+=b,0===this.yb()&&this.release())}};function $q(a,b,c,d,e,f){a.s=f;if(a.h){c=a.h.timeline;a.h.ic=b.ic;var g=c[c.length-1];b=b.timeline.filter(function(h){return h.start>=g.end});0<b.length&&a.h.timeline.push.apply(a.h.timeline,w(b));a.l!==d&&(a.l=d)}else a.h=b,a.i=c,a.l=d;e&&cr(a)}
779
780
  function cr(a){if(!a.o){for(var b=a.h.timeline;b.length;)if(b[b.length-1].start>=a.l)b.pop();else break;a.$a(a.i)}}r.find=function(a){if(this.h&&this.h.timeline&&this.h.timeline.length&&a<this.h.timeline[0].start+this.i)return this.j;if(!this.h)return null;var b=this.h.timeline;if(a<this.i||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.i;e=d<c?b[d+1].start+this.i:Infinity===this.l?e.end+this.i:this.l;if(a>=f&&a<e)return d+this.j}return null};
780
- r.get=function(a){var b=this;a-=this.j;if(0>a||a>=this.yb()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.ic,e=this.h.timeline[a],f=e.Kh,g=this.h.rf+e.tf;c=this.i-this.h.qb;var h=this.i+e.end,k=h;a===this.yb()-1&&Infinity!==this.l&&(k=this.l);for(var l=[],m=(e.end-e.start)/e.cb,n={},q=0;q<e.cb;n={Cc:n.Cc,ae:n.ae},q++){var p=e.start+m*q,u=p+m;n.ae=q+1;n.Cc=null;p=new R(this.i+p,this.i+u,function(v){return function(){if(!b.h)return[];null==v.Cc&&(v.Cc=dr(b.h.ic,b.F,f,b.A,g,v.ae,b.C));return v.Cc}}(n),
781
+ r.get=function(a){var b=this;a-=this.j;if(0>a||a>=this.yb()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.ic,e=this.h.timeline[a],f=e.Jh,g=this.h.qf+e.rf;c=this.i-this.h.qb;var h=this.i+e.end,k=h;a===this.yb()-1&&Infinity!==this.l&&(k=this.l);for(var l=[],m=(e.end-e.start)/e.cb,n={},q=0;q<e.cb;n={Cc:n.Cc,ae:n.ae},q++){var p=e.start+m*q,u=p+m;n.ae=q+1;n.Cc=null;p=new R(this.i+p,this.i+u,function(v){return function(){if(!b.h)return[];null==v.Cc&&(v.Cc=dr(b.h.ic,b.F,f,b.A,g,v.ae,b.C));return v.Cc}}(n),
781
782
  0,null,this.s,c,this.i,this.l,[],"",null,null,Dh,this.u);0==this.G?0<q&&p.Jd():0!=q%this.G&&p.Jd();l.push(p)}c=new R(this.i+e.start,k,function(){return 0<e.cb?[]:dr(d,b.F,f,b.A,g,null,b.C)},0,null,this.s,c,this.i,this.l,l,"",null,null,Dh,this.u,0<e.cb);c.j=h;this.g[a]=c}return c};function dr(a,b,c,d,e,f,g){a=rq(a,b,c,f,d||null,e);return Ec(g(),[a]).map(function(h){return h.toString()})};function er(a){this.o=null;this.u=a;this.G=new hf;this.j=[];this.h=null;this.m=[];this.A=null;this.F=[];this.C=300;this.l=new Map;this.i=new Map;this.g=null;this.s="UNKNOWN"}er.prototype.configure=function(a){this.o=a};er.prototype.destroy=function(){this.u=this.o=null;this.j=[];this.h=null;this.m=[];this.F=[];this.l.clear();null!=this.g&&(this.g.stop(),this.g=null);return this.G.destroy()};er.prototype.setManifestType=function(a){this.s=a};
782
783
  function fr(a,b){var c,d,e,f,g,h,k;return K(function(l){if(1==l.g)return c=Ec(a.j,[gr(a,b)]),d=of(c,a.o.retryParameters),e=a.u.networkingEngine.request(8,d),jf(a.G,e),ta(l,2),C(l,e.promise,4);if(2!=l.g)return f=l.h,g=Ff(f.data),h=JSON.parse(g),1==h.VERSION&&hr(a,h,f.uri),va(l,0);if((k=wa(l))&&7001==k.code)return l.return();null!=a.g&&(a.g.stop(),a.g=null);a.g=new qd(function(){fr(a,b)});a.g.U(a.C);F(l)})}
783
784
  function gr(a,b){if(!a.m.length)return b;b=new mc(b);var c=a.A||a.m[0],d=Math.round(a.u.getBandwidthEstimate()),e=b.g;"DASH"==a.s?(e.add("_DASH_pathway",c),e.add("_DASH_throughput",String(d))):"HLS"==a.s&&(e.add("_HLS_pathway",c),e.add("_HLS_throughput",String(d)));Cc(e)&&rc(b,e);return b.toString()}function hr(a,b,c){null!=a.g&&(a.g.stop(),a.g=null);var d=b["RELOAD-URI"]||c;a.g=new qd(function(){fr(a,d)});if(c=b.TTL)a.C=c;a.g.U(a.C);a.m=b["PATHWAY-PRIORITY"]||[];a.F=b["PATHWAY-CLONES"]||[]}
784
785
  function ir(a,b,c,d){var e=a.l.get(b);e||(e=new Map);e.set(c,d);a.l.set(b,e)}
785
- function jr(a,b){b=a.l.get(b)||new Map;for(var c=[],d={},e=t(a.m),f=e.next();!f.done;d={Fb:d.Fb},f=e.next())if(d.Fb=f.value,f=b.get(d.Fb))c.push({Ye:d.Fb,location:f});else if(f=a.F.find(function(h){return function(k){return k.ji==h.Fb}}(d))){var g=b.get(f["BASE-ID"]);g&&(f["URI-REPLACEMENT"].mg?(g=new mc(g),oc(g,f["URI-REPLACEMENT"].mg),c.push({Ye:d.Fb,location:g.toString()})):c.push({Ye:d.Fb,location:g}))}d=Date.now();e=t(a.i.keys());for(f=e.next();!f.done;f=e.next())f=f.value,g=a.i.get(f),d>g&&
786
- a.i.delete(f);c=c.filter(function(h){for(var k=t(a.i.keys()),l=k.next();!l.done;l=k.next())if(l.value.includes((new mc(h.location)).kb))return!1;return!0});c.length&&(a.A=c[0].Ye);c=c.map(function(h){return h.location});if(!c.length&&a.h)for(d=t(a.h.split(",")),f=d.next();!f.done;f=d.next())if(e=b.get(f.value))a.A=a.h,c.push(e);if(!c.length)for(b=t(b.values()),d=b.next();!d.done;d=b.next())c.push(d.value);return Ec(a.j,c)};function kr(){this.j=[];this.h=[];this.g=[];this.l=[];this.i=[];this.m=new Set}r=kr.prototype;r.release=function(){for(var a=t(this.h.concat(this.g,this.l,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.h=[];this.g=[];this.l=[];this.i=[];this.j=[]};r.ah=function(){return this.j};r.Ce=function(){return this.l.slice()};r.Lg=function(){return this.i};
787
- r.zf=function(a,b){var c,d,e,f,g=this,h,k,l,m,n,q,p,u,v,y,z,x,A,B,D,E,J,G,H,I,L,M,O,S,da,W,ea,Ca,Sa,wb;return K(function(cb){if(1==cb.g){h=Kc;lr(a);if(!b&&1==a.length)return k=a[0],g.h=k.audioStreams,g.g=k.videoStreams,g.l=k.textStreams,g.i=k.imageStreams,cb.B(2);l=-1;for(m=0;m<a.length;m++)n=a[m],g.m.has(n.id)||(g.m.add(n.id),-1==l&&(l=m));if(-1==l)return cb.return();for(var Ub=[],Da=[],db=[],$a=[],xb=t(a),ab=xb.next();!ab.done;ab=xb.next())ab=ab.value,Ub.push(ab.audioStreams),Da.push(ab.videoStreams),
786
+ function jr(a,b){b=a.l.get(b)||new Map;for(var c=[],d={},e=t(a.m),f=e.next();!f.done;d={Fb:d.Fb},f=e.next())if(d.Fb=f.value,f=b.get(d.Fb))c.push({Xe:d.Fb,location:f});else if(f=a.F.find(function(h){return function(k){return k.ii==h.Fb}}(d))){var g=b.get(f["BASE-ID"]);g&&(f["URI-REPLACEMENT"].lg?(g=new mc(g),oc(g,f["URI-REPLACEMENT"].lg),c.push({Xe:d.Fb,location:g.toString()})):c.push({Xe:d.Fb,location:g}))}d=Date.now();e=t(a.i.keys());for(f=e.next();!f.done;f=e.next())f=f.value,g=a.i.get(f),d>g&&
787
+ a.i.delete(f);c=c.filter(function(h){for(var k=t(a.i.keys()),l=k.next();!l.done;l=k.next())if(l.value.includes((new mc(h.location)).kb))return!1;return!0});c.length&&(a.A=c[0].Xe);c=c.map(function(h){return h.location});if(!c.length&&a.h)for(d=t(a.h.split(",")),f=d.next();!f.done;f=d.next())if(e=b.get(f.value))a.A=a.h,c.push(e);if(!c.length)for(b=t(b.values()),d=b.next();!d.done;d=b.next())c.push(d.value);return Ec(a.j,c)};function kr(){this.j=[];this.h=[];this.g=[];this.l=[];this.i=[];this.m=new Set}r=kr.prototype;r.release=function(){for(var a=t(this.h.concat(this.g,this.l,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.h=[];this.g=[];this.l=[];this.i=[];this.j=[]};r.$g=function(){return this.j};r.Ce=function(){return this.l.slice()};r.Kg=function(){return this.i};
788
+ r.yf=function(a,b){var c,d,e,f,g=this,h,k,l,m,n,q,p,u,v,y,z,x,A,B,D,E,J,G,H,I,L,M,O,S,da,W,ea,Ca,Sa,wb;return K(function(cb){if(1==cb.g){h=Kc;lr(a);if(!b&&1==a.length)return k=a[0],g.h=k.audioStreams,g.g=k.videoStreams,g.l=k.textStreams,g.i=k.imageStreams,cb.B(2);l=-1;for(m=0;m<a.length;m++)n=a[m],g.m.has(n.id)||(g.m.add(n.id),-1==l&&(l=m));if(-1==l)return cb.return();for(var Ub=[],Da=[],db=[],$a=[],xb=t(a),ab=xb.next();!ab.done;ab=xb.next())ab=ab.value,Ub.push(ab.audioStreams),Da.push(ab.videoStreams),
788
789
  db.push(ab.textStreams),$a.push(ab.imageStreams);c=Ub;d=Da;e=db;f=$a;q=c;p=d;u=e;v=f;y=t(u);for(z=y.next();!z.done;z=y.next())x=z.value,x.push(mr(h.ja));A=t(v);for(B=A.next();!B.done;B=A.next())D=B.value,D.push(mr(h.Ec));return C(cb,Promise.all([nr(g.h,q,l,or,pr),nr(g.g,p,l,or,pr),nr(g.l,u,l,or,pr),nr(g.i,v,l,or,pr)]),2)}E=0;J=[];if(g.g.length&&g.h.length)for(O=t(g.h),S=O.next();!S.done;S=O.next())for(da=S.value,W=t(g.g),ea=W.next();!ea.done;ea=W.next())Ca=ea.value,Sa=rh(da.drmInfos,Ca.drmInfos),
789
790
  da.drmInfos.length&&Ca.drmInfos.length&&!Sa.length||(wb=E++,J.push({id:wb,language:da.language,disabledUntilTime:0,primary:da.primary,audio:da,video:Ca,bandwidth:(da.bandwidth||0)+(Ca.bandwidth||0),drmInfos:Sa,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(G=g.g.length?g.g:g.h,H=t(G),I=H.next();!I.done;I=H.next())L=I.value,M=E++,J.push({id:M,language:L.language,disabledUntilTime:0,primary:L.primary,audio:L.type==h.R?L:null,video:L.type==h.ca?L:null,bandwidth:L.bandwidth||
790
791
  0,drmInfos:L.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});g.j=J;F(cb)})};
@@ -812,7 +813,7 @@ function Fr(a,b,c){if(a.id==c.id)return!0;var d=ld(a.language,b.language),e=ld(a
812
813
  b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1}return c.mimeType!=a.mimeType||c.codecs!=a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0}function Gr(a,b,c){return a.id==c.id?!0:Ir(a.width*a.height,b.width*b.height,c.width*c.height)==Jr?!0:!1}
813
814
  function sr(a){return{id:0,originalId:"",groupId:null,primary:!1,type:a,mimeType:"",codecs:"",language:"",originalLanguage:null,label:null,width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!1,fastSwitching:!1}}
814
815
  function mr(a){return{id:0,originalId:"",groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Aj([]),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}}
815
- function Ir(a,b,c){if(b==a&&a!=c)return Kr;if(c==a&&a!=b)return Jr;if(b>a){if(c<=a||c-a<b-a)return Jr;if(c-a>b-a)return Kr}else{if(c>a)return Kr;if(a-c<a-b)return Jr;if(a-c>a-b)return Kr}return Mr}function Lr(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?Jr:b<a?Kr:Mr}N("shaka.util.PeriodCombiner",kr);kr.prototype.combinePeriods=kr.prototype.zf;kr.prototype.getImageStreams=kr.prototype.Lg;kr.prototype.getTextStreams=kr.prototype.Ce;kr.prototype.getVariants=kr.prototype.ah;
816
+ function Ir(a,b,c){if(b==a&&a!=c)return Kr;if(c==a&&a!=b)return Jr;if(b>a){if(c<=a||c-a<b-a)return Jr;if(c-a>b-a)return Kr}else{if(c>a)return Kr;if(a-c<a-b)return Jr;if(a-c>a-b)return Kr}return Mr}function Lr(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?Jr:b<a?Kr:Mr}N("shaka.util.PeriodCombiner",kr);kr.prototype.combinePeriods=kr.prototype.yf;kr.prototype.getImageStreams=kr.prototype.Kg;kr.prototype.getTextStreams=kr.prototype.Ce;kr.prototype.getVariants=kr.prototype.$g;
816
817
  var Jr=1,Mr=0,Kr=-1,Hr=new Map;function Nr(){var a=this;this.i=this.g=null;this.o=[];this.j=null;this.I=1;this.m={};this.K={};this.l=new kr;this.F=0;this.H=new Oa(5);this.G=new qd(function(){Or(a)});this.C=new hf;this.u=null;this.J=[];this.A=Infinity;this.s=!1;this.h=null}r=Nr.prototype;r.configure=function(a){this.g=a;this.h&&this.h.configure(this.g)};r.start=function(a,b){var c=this,d;return K(function(e){if(1==e.g)return c.s=b.isLowLatencyMode(),c.o=[a],c.i=b,C(e,Pr(c),2);d=e.h;c.i&&Qr(c,d);if(!c.i)throw new P(2,7,7001);return e.return(c.j)})};
817
818
  r.stop=function(){for(var a=t(Object.values(this.m)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.l&&this.l.release();this.g=this.i=null;this.o=[];this.j=null;this.m={};this.l=null;null!=this.G&&(this.G.stop(),this.G=null);this.h&&this.h.destroy();return this.C.destroy()};r.update=function(){var a=this,b;return K(function(c){if(1==c.g)return ta(c,2),C(c,Pr(a),4);if(2!=c.g)return va(c,0);b=wa(c);if(!a.i||!b)return c.return();a.i.onError(b);F(c)})};
818
819
  r.onExpirationUpdated=function(){};r.onInitialVariantChosen=function(a){if(this.j&&this.j.presentationTimeline.P()){var b=a.video||a.audio;if(b&&b.segmentIndex){a=this.j.presentationTimeline.zb();var c=b.segmentIndex.find(a);null!=c&&(b=b.segmentIndex.get(c))&&(this.F=b.endTime-a,Qr(this,0))}}};r.banLocation=function(a){this.h&&this.h.i.set(a,Date.now()+6E4)};
@@ -821,14 +822,14 @@ function Sr(a,b,c){var d,e,f,g,h;return K(function(k){if(1==k.g){d=Eg(b,"MPD");i
821
822
  function Tr(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v,y,z,x,A,B,D,E,J,G,H,I,L,M,O,S,da,W,ea,Ca,Sa,wb,cb,Ub,Da,db,$a,xb,ab,th,we,yd,xe,qc;return K(function(Db){switch(Db.g){case 1:(d=a.g.dash.manifestPreprocessor)&&d(b);e=[c];f=kg(b,"Location").map(qg).filter(ed);0<f.length&&(g=Ec(e,f),e=a.o=g);h=Promise.resolve();if((k=jg(b,"ContentSteering"))&&a.i)if(l=k.getAttribute("defaultServiceLocation"),a.h)a.h.j=e,a.h.h=l;else if(a.h=new er(a.i),a.h.configure(a.g),a.h.setManifestType("DASH"),a.h.j=e,a.h.h=l,m=
822
823
  qg(k))(n=sg(k,"queryBeforeStart",Ag,!1))?h=fr(a.h,m):fr(a.h,m);q=kg(b,"BaseURL");u=!1;if(a.h)for(a.h.l.clear(),v=t(q),y=v.next();!y.done;y=v.next())z=y.value,x=z.getAttribute("serviceLocation"),A=qg(z),x&&A&&(ir(a.h,"BaseURL",x,A),u=!0);u&&a.h||(B=q.map(qg),p=Ec(e,B));D=function(){return a.h&&u?jr(a.h,"BaseURL"):p?p:[]};E=0;q&&q.length&&(E=sg(q[0],"availabilityTimeOffset",zg)||0);J=a.g.dash.ignoreMinBufferTime;G=0;J||(G=sg(b,"minBufferTime",ug)||0);a.F=sg(b,"minimumUpdatePeriod",ug,-1);H=sg(b,"availabilityStartTime",
823
824
  tg);I=sg(b,"timeShiftBufferDepth",ug);L=a.g.dash.ignoreSuggestedPresentationDelay;M=null;L||(M=sg(b,"suggestedPresentationDelay",ug));O=a.g.dash.ignoreMaxSegmentDuration;S=null;O||(S=sg(b,"maxSegmentDuration",ug));da=b.getAttribute("type")||"static";if(a.j)for(W=a.j.presentationTimeline,ea=t(Object.values(a.m)),Ca=ea.next();!Ca.done;Ca=ea.next())Sa=Ca.value,Sa.segmentIndex&&Sa.segmentIndex.$a(W.bb());else wb=a.g.defaultPresentationDelay||1.5*G,cb=null!=M?M:wb,W=new V(H,cb,a.g.dash.autoCorrectDrift);
824
- W.mc("static"==da);(Ub=W.P())&&!isNaN(a.g.availabilityWindowOverride)&&(I=a.g.availabilityWindowOverride);null==I&&(I=Infinity);W.Sd(I);Da=b.getAttribute("profiles")||"";db={xb:"static"!=da,presentationTimeline:W,ra:null,$:null,ma:null,M:null,bandwidth:0,Mf:!1,Wb:E,profiles:Da.split(",")};$a=Ur(a,db,D,b);xb=$a.duration;ab=$a.periods;"static"!=da&&$a.Ef||W.Na(xb||Infinity);a.A&&!a.s&&(th=a.i.isAutoLowLatencyMode())&&(a.i.enableLowLatencyMode(),a.s=a.i.isLowLatencyMode());a.s?W.bg(a.A):a.A&&Ua("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");
825
- W.Se(S||1);return C(Db,a.l.zf(ab,db.xb),2);case 2:return C(Db,h,3);case 3:a.s&&(G=0,we=null!=M?M:a.g.defaultPresentationDelay,W.gf(we));if(a.j){a.j.variants=a.l.j;yd=a.l.Ce();0<yd.length&&(a.j.textStreams=yd);a.j.imageStreams=a.l.i;a.i.filter(a.j);Db.B(4);break}a.j={presentationTimeline:W,variants:a.l.j,textStreams:a.l.Ce(),imageStreams:a.l.i,offlineSessionIds:[],minBufferTime:G||0,sequenceMode:a.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:Vr(b)};if(!W.kg()){Db.B(5);
826
- break}xe=kg(b,"UTCTiming");return C(Db,Wr(a,D,xe),6);case 6:qc=Db.h;if(!a.i)return Db.return();W.cg(qc);case 5:W.Id();case 4:a.i.makeTextStreamsForClosedCaptions(a.j),F(Db)}})}
825
+ W.mc("static"==da);(Ub=W.P())&&!isNaN(a.g.availabilityWindowOverride)&&(I=a.g.availabilityWindowOverride);null==I&&(I=Infinity);W.Sd(I);Da=b.getAttribute("profiles")||"";db={xb:"static"!=da,presentationTimeline:W,ra:null,$:null,ma:null,M:null,bandwidth:0,Lf:!1,Wb:E,profiles:Da.split(",")};$a=Ur(a,db,D,b);xb=$a.duration;ab=$a.periods;"static"!=da&&$a.Df||W.Na(xb||Infinity);a.A&&!a.s&&(th=a.i.isAutoLowLatencyMode())&&(a.i.enableLowLatencyMode(),a.s=a.i.isLowLatencyMode());a.s?W.ag(a.A):a.A&&Ua("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");
826
+ W.Re(S||1);return C(Db,a.l.yf(ab,db.xb),2);case 2:return C(Db,h,3);case 3:a.s&&(G=0,we=null!=M?M:a.g.defaultPresentationDelay,W.ff(we));if(a.j){a.j.variants=a.l.j;yd=a.l.Ce();0<yd.length&&(a.j.textStreams=yd);a.j.imageStreams=a.l.i;a.i.filter(a.j);Db.B(4);break}a.j={presentationTimeline:W,variants:a.l.j,textStreams:a.l.Ce(),imageStreams:a.l.i,offlineSessionIds:[],minBufferTime:G||0,sequenceMode:a.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:Vr(b)};if(!W.jg()){Db.B(5);
827
+ break}xe=kg(b,"UTCTiming");return C(Db,Wr(a,D,xe),6);case 6:qc=Db.h;if(!a.i)return Db.return();W.bg(qc);case 5:W.Id();case 4:a.i.makeTextStreamsForClosedCaptions(a.j),F(Db)}})}
827
828
  function Vr(a){a=jg(a,"ServiceDescription");if(!a)return null;var b=jg(a,"Latency"),c=jg(a,"PlaybackRate");if(b&&b.getAttribute("max")||c){a=b&&b.getAttribute("max")?parseInt(b.getAttribute("max"),10)/1E3:null;var d=c?parseFloat(c.getAttribute("max")):null;b=b&&b.getAttribute("min")?parseInt(b.getAttribute("min"),10)/1E3:null;c=c?parseFloat(c.getAttribute("min")):null;return{maxLatency:a,maxPlaybackRate:d,minLatency:b,minPlaybackRate:c}}return null}
828
829
  function Ur(a,b,c,d){var e=sg(d,"mediaPresentationDuration",ug),f=[],g=0;d=kg(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=sg(k,"start",ug,g),n=k.id,q=sg(k,"duration",ug),p=null;if(l){var u=sg(l,"start",ug);null!=u&&(p=u-m)}else null!=e&&(p=e-m);null==p&&(p=q);if(!(null!==a.u&&null!==n&&null!==m&&m<a.u)||a.J.includes(n)||h+1==d.length){null!==m&&(null===a.u||m>a.u)&&(a.u=m);g=Xr(a,b,c,{start:m,duration:p,node:k,Fe:null==p||!l});f.push(g);b.ra.id&&p&&(a.K[b.ra.id]=p);if(null==p){g=
829
- null;break}g=m+p}}a.J=f.map(function(v){return v.id});return null!=e?{periods:f,duration:e,Ef:!1}:{periods:f,duration:g,Ef:!0}}
830
- function Xr(a,b,c,d){b.ra=Yr(a,d.node,null,c);b.$=d;b.ra.Wb=b.Wb;b.ra.id||(b.ra.id="__shaka_period_"+d.start);var e=kg(d.node,"EventStream");c=b.presentationTimeline.bb();e=t(e);for(var f=e.next();!f.done;f=e.next())Zr(a,d.start,d.duration,f.value,c);c=kg(d.node,"AdaptationSet").map(function(m){return $r(a,b,m)}).filter(ed);if(b.xb){d=[];e=t(c);for(f=e.next();!f.done;f=e.next()){f=t(f.value.Eh);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new P(2,4,4018);
831
- }d=c.filter(function(m){return!m.pf});c=c.filter(function(m){return m.pf});c=t(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.pf.split(" ");g=t(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=t(k.streams);for(var l=k.next();!l.done;h={md:h.md},l=k.next())h.md=l.value,h.md.trickModeVideo=e.streams.find(function(m){return function(n){return Rc(m.md.codecs)==Rc(n.codecs)}}(h))}}}c=as(a.g.disableAudio,d,"audio");e=as(a.g.disableVideo,d,"video");f=as(a.g.disableText,
830
+ null;break}g=m+p}}a.J=f.map(function(v){return v.id});return null!=e?{periods:f,duration:e,Df:!1}:{periods:f,duration:g,Df:!0}}
831
+ function Xr(a,b,c,d){b.ra=Yr(a,d.node,null,c);b.$=d;b.ra.Wb=b.Wb;b.ra.id||(b.ra.id="__shaka_period_"+d.start);var e=kg(d.node,"EventStream");c=b.presentationTimeline.bb();e=t(e);for(var f=e.next();!f.done;f=e.next())Zr(a,d.start,d.duration,f.value,c);c=kg(d.node,"AdaptationSet").map(function(m){return $r(a,b,m)}).filter(ed);if(b.xb){d=[];e=t(c);for(f=e.next();!f.done;f=e.next()){f=t(f.value.Dh);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new P(2,4,4018);
832
+ }d=c.filter(function(m){return!m.nf});c=c.filter(function(m){return m.nf});c=t(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.nf.split(" ");g=t(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=t(k.streams);for(var l=k.next();!l.done;h={md:h.md},l=k.next())h.md=l.value,h.md.trickModeVideo=e.streams.find(function(m){return function(n){return Rc(m.md.codecs)==Rc(n.codecs)}}(h))}}}c=as(a.g.disableAudio,d,"audio");e=as(a.g.disableVideo,d,"video");f=as(a.g.disableText,
832
833
  d,Jc);d=as(a.g.disableThumbnails,d,"image");if(0===e.length&&0===c.length)throw new P(2,4,4004);return{id:b.ra.id,audioStreams:c,videoStreams:e,textStreams:f,imageStreams:d}}function as(a,b,c){return a||!b.length?[]:b.reduce(function(d,e){if(e.contentType!=c)return d;d.push.apply(d,w(e.streams));return d},[])}
833
834
  function $r(a,b,c){function d(G){switch(G){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.ma=Yr(a,c,b.ra,null);var e=!1,f=kg(c,"Role"),g=f.map(function(G){return G.getAttribute("value")}).filter(ed),h=void 0,k=b.ma.contentType==Jc;k&&(h="subtitle");f=t(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=l.getAttribute("schemeIdUri");if(null==m||"urn:mpeg:dash:role:2011"==m)switch(l=l.getAttribute("value"),l){case "main":e=!0;break;case "caption":case "subtitle":h=
834
835
  l}}var n;m=kg(c,"EssentialProperty");f=null;var q=!1;l=!1;m=t(m);for(var p=m.next();!p.done;p=m.next()){p=p.value;var u=p.getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==u?f=p.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==u?n=d(parseInt(p.getAttribute("value"),10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"!=u&&"urn:mpeg:mpegB:cicp:MatrixCoefficients"!=u&&("urn:mpeg:dash:ssr:2023"==u?q=!0:l=!0)}m=kg(c,"SupplementalProperty");m=t(m);for(p=m.next();!p.done;p=
@@ -836,17 +837,17 @@ m.next())p=p.value,"urn:mpeg:mpegB:cicp:TransferCharacteristics"==p.getAttribute
836
837
  B=A[1]||"und"):(x="CC"+p,2==u.length?p+=2:p++,B=A);v.set(x,hd(B))}}else v.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==p)if(p=1,null!=u)for(u=t(u.split(";")),x=u.next();!x.done;x=u.next())x=x.value,A=z=void 0,x.includes("=")?(x=x.split("="),z="svc"+x[0],A=x[1].split(",")[0].split(":").pop()):(z="svc"+p,p++,A=x),v.set(z,hd(A));else v.set("svc1","und");else"urn:mpeg:dash:role:2011"==p?null!=u&&(g.push(u),"captions"==u&&(h="caption")):"urn:tva:metadata:cs:AudioPurposeCS:2007"==p&&("1"==
837
838
  u?y="visually impaired":"2"==u&&(y="hard of hearing"));if(l)return null;l=kg(c,"ContentProtection");var D=gq(l,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),E=hd(b.ma.language||"und"),J=c.getAttribute("label");(l=kg(c,"Label"))&&l.length&&(l=l[0],l.textContent&&(J=l.textContent));l=kg(c,"Representation");c=l.map(function(G){if(G=bs(a,b,D,h,E,J,e,g,v,G,y))G.hdr=G.hdr||n,G.fastSwitching=q;return G}).filter(function(G){return!!G});if(0==c.length){f="image"==b.ma.contentType;if(a.g.dash.ignoreEmptyAdaptationSet||
838
839
  k||f)return null;throw new P(2,4,4003);}if(!b.ma.contentType||"application"==b.ma.contentType)for(b.ma.contentType=cs(c[0].mimeType,c[0].codecs),k=t(c),p=k.next();!p.done;p=k.next())p.value.type=b.ma.contentType;k=b.ma.id||"__fake__"+a.I++;m=t(c);for(p=m.next();!p.done;p=m.next()){p=p.value;u=t(D.drmInfos);for(z=u.next();!z.done;z=u.next())z=z.value,z.keyIds=z.keyIds&&p.keyIds?new Set([].concat(w(z.keyIds),w(p.keyIds))):z.keyIds||p.keyIds;a.g.dash.enableAudioGroups&&(p.groupId=k)}l=l.map(function(G){return G.getAttribute("id")}).filter(ed);
839
- return{id:k,contentType:b.ma.contentType,language:E,Ri:e,streams:c,drmInfos:D.drmInfos,pf:f,Eh:l}}
840
- function bs(a,b,c,d,e,f,g,h,k,l,m){b.M=Yr(a,l,b.ma,null);a.A=Math.min(a.A,b.M.Wb);if(!ds(b.M))return null;var n=b.$.start;b.bandwidth=sg(l,"bandwidth",xg)||0;var q=b.M.contentType,p=q==Jc||"application"==q;q="image"==q;try{var u=void 0;if(c.de){var v=b.M.ab,y=Ec(v(),[c.de.oh]),z=of(y,a.g.retryParameters);u={method:"AES-128",iv:c.de.iv,firstMediaSequenceNumber:0,fetchKey:function(){var H,I,L;return K(function(M){if(1==M.g)return C(M,Rr(a,z,6),2);if(3!=M.g){H=M.h;if(!H.data||16!=H.data.byteLength)throw new P(2,
840
+ return{id:k,contentType:b.ma.contentType,language:E,Qi:e,streams:c,drmInfos:D.drmInfos,nf:f,Dh:l}}
841
+ function bs(a,b,c,d,e,f,g,h,k,l,m){b.M=Yr(a,l,b.ma,null);a.A=Math.min(a.A,b.M.Wb);if(!ds(b.M))return null;var n=b.$.start;b.bandwidth=sg(l,"bandwidth",xg)||0;var q=b.M.contentType,p=q==Jc||"application"==q;q="image"==q;try{var u=void 0;if(c.de){var v=b.M.ab,y=Ec(v(),[c.de.nh]),z=of(y,a.g.retryParameters);u={method:"AES-128",iv:c.de.iv,firstMediaSequenceNumber:0,fetchKey:function(){var H,I,L;return K(function(M){if(1==M.g)return C(M,Rr(a,z,6),2);if(3!=M.g){H=M.h;if(!H.data||16!=H.data.byteLength)throw new P(2,
841
842
  4,4049);I={name:"AES-CBC"};L=u;return C(M,window.crypto.subtle.importKey("raw",H.data,I,!0,["decrypt"]),3)}L.cryptoKey=M.h;u.fetchKey=void 0;F(M)})}}}v=function(H,I,L,M){return es(a,H,I,L,M)};if(b.M.bd)var x=Kq(b,v,u);else if(b.M.Cb)x=Qq(b,a.m,u);else if(b.M.cd)x=Vq(b,v,a.m,!!a.j,a.g.dash.initialSegmentLimit,a.K,u);else{var A=b.$.duration||0,B=b.M.ab;x={Zb:function(){return Promise.resolve(Dj(n,A,B()))}}}}catch(H){if((p||q)&&4002==H.code)return null;throw H;}v=kg(l,"ContentProtection");v=kq(v,c,a.g.dash.ignoreDrmInfo,
842
843
  a.g.dash.keySystemsByURI);v=new Set(v?[v]:[]);y=!1;kg(l,"SupplementalProperty").some(function(H){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==H.getAttribute("schemeIdUri")&&"JOC"==H.getAttribute("value")})&&(y=!0);var D=!1;p&&(D=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var E;if(q&&((l=kg(l,"EssentialProperty").find(function(H){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(H.getAttribute("schemeIdUri"))}))&&(E=l.getAttribute("value")),
843
844
  !E))return null;var J;l=b.M.codecs;b.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(l.includes("hvc1.2.4.L153.B0")||l.includes("hev1.2.4.L153.B0"))&&(J="PQ");l=b.M.id?b.ra.id+","+b.M.id:"";var G=l&&a.m[l]?a.m[l]:{id:a.I++,originalId:b.M.id,groupId:null,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){G.segmentIndex&&(G.segmentIndex.release(),G.segmentIndex=null)},segmentIndex:null,mimeType:b.M.mimeType,codecs:b.M.codecs,frameRate:b.M.frameRate,
844
845
  pixelAspectRatio:b.M.pixelAspectRatio,bandwidth:b.bandwidth,width:b.M.width,height:b.M.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:v,language:e,originalLanguage:b.ma.language,label:f,type:b.ma.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.M.emsgSchemeIdUris,roles:h,forced:D,channelsCount:b.M.Od,audioSamplingRate:b.M.audioSamplingRate,spatialAudio:y,closedCaptions:k,hdr:J,videoLayout:void 0,tilesLayout:E,matchedStreams:[],accessibilityPurpose:m,external:!1,
845
846
  fastSwitching:!1};G.createSegmentIndex=function(){var H;return K(function(I){if(1==I.g){if(G.segmentIndex)return I.B(0);H=G;return C(I,x.Zb(),3)}H.segmentIndex=I.h;F(I)})};l&&b.xb&&!a.m[l]&&(a.m[l]=G);return G}
846
847
  function Or(a){var b,c;K(function(d){switch(d.g){case 1:return b=0,ta(d,2),C(d,Pr(a),4);case 4:b=d.h;va(d,3);break;case 2:if(c=wa(d),a.i){if(a.g.raiseFatalErrorOnManifestUpdateRequestFailure)return a.i.onError(c),d.return();c.severity=1;a.i.onError(c)}case 3:if(!a.i)return d.return();a.i.onManifestUpdated();Qr(a,b);F(d)}})}function Qr(a,b){0>a.F||a.G.U(Math.max(a.F-b,Pa(a.H)))}
847
- function Yr(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Od:null,audioSamplingRate:null,Wb:0,cf:0};d=d||c.ab;var e=b.getAttribute("id"),f=kg(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.getAttribute("serviceLocation");m=qg(m);l&&m&&(ir(a.h,e,l,m),h=!0)}h&&a.h||(g=f.map(qg));k=b.getAttribute("contentType")||c.contentType;l=b.getAttribute("mimeType")||c.mimeType;m=b.getAttribute("codecs")||
848
+ function Yr(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Od:null,audioSamplingRate:null,Wb:0,bf:0};d=d||c.ab;var e=b.getAttribute("id"),f=kg(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.getAttribute("serviceLocation");m=qg(m);l&&m&&(ir(a.h,e,l,m),h=!0)}h&&a.h||(g=f.map(qg));k=b.getAttribute("contentType")||c.contentType;l=b.getAttribute("mimeType")||c.mimeType;m=b.getAttribute("codecs")||
848
849
  c.codecs;var n=sg(b,"frameRate",Bg)||c.frameRate,q=b.getAttribute("sar")||c.pixelAspectRatio,p=fs(kg(b,"InbandEventStream"),c.emsgSchemeIdUris),u=kg(b,"AudioChannelConfiguration");u=gs(u)||c.Od;var v=sg(b,"audioSamplingRate",yg)||c.audioSamplingRate;k||(k=cs(l,m));var y=jg(b,"SegmentBase"),z=jg(b,"SegmentTemplate"),x=y?sg(y,"availabilityTimeOffset",zg)||0:0,A=z?sg(z,"availabilityTimeOffset",zg)||0:0,B=f&&f.length?sg(f[0],"availabilityTimeOffset",zg)||0:0;x=c.Wb+B+x+A;A=null;(B=jg(b,"SegmentSequenceProperties"))&&
849
- (B=jg(B,"SAP"))&&(A=sg(B,"cadence",wg));return{ab:function(){return Ec(d(),f.length?a.h&&h?jr(a.h,e):g?g:[]:[])},bd:y||c.bd,Cb:jg(b,"SegmentList")||c.Cb,cd:z||c.cd,width:sg(b,"width",yg)||c.width,height:sg(b,"height",yg)||c.height,contentType:k,mimeType:l,codecs:m,frameRate:n,pixelAspectRatio:q,emsgSchemeIdUris:p,id:e,language:b.getAttribute("lang"),Od:u,audioSamplingRate:v,Wb:x,cf:A||c.cf}}
850
+ (B=jg(B,"SAP"))&&(A=sg(B,"cadence",wg));return{ab:function(){return Ec(d(),f.length?a.h&&h?jr(a.h,e):g?g:[]:[])},bd:y||c.bd,Cb:jg(b,"SegmentList")||c.Cb,cd:z||c.cd,width:sg(b,"width",yg)||c.width,height:sg(b,"height",yg)||c.height,contentType:k,mimeType:l,codecs:m,frameRate:n,pixelAspectRatio:q,emsgSchemeIdUris:p,id:e,language:b.getAttribute("lang"),Od:u,audioSamplingRate:v,Wb:x,bf:A||c.bf}}
850
851
  function fs(a,b){b=b.slice();a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value.getAttribute("schemeIdUri"),b.includes(c)||b.push(c);return b}
851
852
  function gs(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(b=c.getAttribute("schemeIdUri"))if(c=c.getAttribute("value"))switch(b){case "urn:mpeg:dash:outputChannelPositionList:2012":return c.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(c,10);if(!b)continue;return b;case "tag:dolby.com,2014:dash:audio_channel_configuration:2011":case "urn:dolby:dash:audio_channel_configuration:2011":b=
852
853
  parseInt(c,16);if(!b)continue;for(a=0;b;)b&1&&++a,b>>=1;return a;case "urn:mpeg:mpegB:cicp:ChannelConfiguration":if(b=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(c=parseInt(c,10))&&0<c&&c<b.length)return b[c]}}return null}function ds(a){var b=a.bd?1:0;b+=a.Cb?1:0;b+=a.cd?1:0;if(0==b)return a.contentType==Jc||"application"==a.contentType?!0:!1;1!=b&&(a.bd&&(a.Cb=null),a.cd=null);return!0}
@@ -855,7 +856,7 @@ function Wr(a,b,c){var d,e,f,g,h,k,l,m;return K(function(n){switch(n.g){case 1:d
855
856
  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":Ua("NTP UTCTiming scheme is not supported");break;default:Ua("Unrecognized scheme in UTCTiming element",k)}n.B(9);break;case 7:return C(n,hs(a,b,l,"HEAD"),10);case 10:return n.return(n.h);case 8:return C(n,hs(a,b,l,"GET"),11);case 11:return n.return(n.h);case 9:va(n,
856
857
  3);break;case 5:wa(n);case 3:g=f.next();n.B(2);break;case 4:return Ua("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n.return(0)}})}
857
858
  function Zr(a,b,c,d,e){var f=d.getAttribute("schemeIdUri")||"",g=d.getAttribute("value")||"",h=sg(d,"timescale",yg)||1;d=t(kg(d,"Event"));for(var k=d.next();!k.done;k=d.next()){k=k.value;var l=sg(k,"presentationTime",yg)||0,m=sg(k,"duration",yg)||0;l=l/h+b;m=l+m/h;null!=c&&(l=Math.min(l,b+c),m=Math.min(m,b+c));m<e||(k={schemeIdUri:f,value:g,startTime:l,endTime:m,id:k.getAttribute("id")||"",eventElement:k},a.i.onTimelineRegionAdded(k))}}
858
- function es(a,b,c,d,e){var f,g,h,k;return K(function(l){if(1==l.g)return f=uf,g=e?0:1,h=ak(b,c,d,a.g.retryParameters),C(l,Rr(a,h,f,{type:g}),2);k=l.h;return l.return(k.data)})}function cs(a,b){b=Mc(a,b);return Wc(b)?Jc:a.split("/")[0]}function Rr(a,b,c,d){b=a.i.networkingEngine.request(c,b,d);jf(a.C,b);return b.promise}N("shaka.dash.DashParser",Nr);wh["application/dash+xml"]=function(){return new Nr};wh["video/vnd.mpeg.dash.mpd"]=function(){return new Nr};function is(){}N("shaka.dependencies",is);is.has=function(a){return js.has(a)};is.add=function(a,b){if(!ks[a])throw Error(a+" is not supported");a==ls?ve("mux.js","mux.js is no longer used in Shaka Player."):js.set(a,function(){return b})};var ls="muxjs",ks={Si:ls,ISOBoxer:"ISOBoxer"};is.Allowed=ks;var js=new Map([["ISOBoxer",function(){return window.ISOBoxer}]]);function ms(a,b,c){this.type=a;this.g=b;this.segments=c||null}function ns(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}ns.prototype.toString=function(a){function b(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)}var c="#"+this.name,d=this.g?this.g.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};
859
+ function es(a,b,c,d,e){var f,g,h,k;return K(function(l){if(1==l.g)return f=uf,g=e?0:1,h=ak(b,c,d,a.g.retryParameters),C(l,Rr(a,h,f,{type:g}),2);k=l.h;return l.return(k.data)})}function cs(a,b){b=Mc(a,b);return Wc(b)?Jc:a.split("/")[0]}function Rr(a,b,c,d){b=a.i.networkingEngine.request(c,b,d);jf(a.C,b);return b.promise}N("shaka.dash.DashParser",Nr);wh["application/dash+xml"]=function(){return new Nr};wh["video/vnd.mpeg.dash.mpd"]=function(){return new Nr};function is(){}N("shaka.dependencies",is);is.has=function(a){return js.has(a)};is.add=function(a,b){if(!ks[a])throw Error(a+" is not supported");a==ls?ve("mux.js","mux.js is no longer used in Shaka Player."):js.set(a,function(){return b})};var ls="muxjs",ks={Ri:ls,ISOBoxer:"ISOBoxer"};is.Allowed=ks;var js=new Map([["ISOBoxer",function(){return window.ISOBoxer}]]);function ms(a,b,c){this.type=a;this.g=b;this.segments=c||null}function ns(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}ns.prototype.toString=function(a){function b(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)}var c="#"+this.name,d=this.g?this.g.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};
859
860
  function os(a){var b=(new Set).add("AUDIO").add("VIDEO").add("SUBTITLES").add("PATHWAY-ID").add("GROUP-ID").add("URI");return a.toString(b)}ns.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function Z(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function ps(a,b){a=a.getAttribute(b);if(!a)throw new P(2,4,4023,b);return a.value}function ss(a,b,c){c=void 0===c?[]:c;this.g=b;this.h=a;this.cb=c}
860
861
  function ts(a,b){this.name=a;this.value=b};function us(a,b){return a.filter(function(c){return c.name==b})}function vs(a,b){return a.filter(function(c){return ps(c,"TYPE")==b})}function ws(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 xs(a,b,c){c=void 0===c?0:c;return(a=ws(a,b))?Number(a.value):c}function ys(a,b,c){return b?zs(a,[b],c):[]}
861
862
  function zs(a,b,c){if(!b.length)return[];b=Ec(a,b);a=[];b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=a,f=e.push;var g=d.value;if((d=c)&&d.size){g=String(g).replace(/%7B/g,"{").replace(/%7D/g,"}");var h=g.match(/{\$\w*}/g);if(h){h=t(h);for(var k=h.next();!k.done;k=h.next()){k=k.value;var l=k.slice(2,k.length-1),m=d.get(l);if(m)g=g.replace(k,m);else throw new P(2,4,4039,l);}}d=g}else d=g;f.call(e,d)}return a};function As(a){this.h=a||"";this.g=0}function Bs(a){Cs(a,/[ \t]+/gm)}function Cs(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 Ds(a){return a.g==a.h.length?null:(a=Cs(a,/[^ \t\n]*/gm))?a[0]:null};function Es(){this.g=0}
@@ -870,13 +871,13 @@ c).box("Opus",c).box("fLaC",c).box("avc1",function(v){v=Xh(v.reader,v.name);e.pu
870
871
  p.set(b,b);u.h()}return{type:q?"audio":"video",mimeType:q?"audio/mp4":"video/mp4",codecs:Os(e).join(", "),language:h,height:k,width:l,channelCount:m,sampleRate:n,closedCaptions:p}}function Os(a){var b=new Set,c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=Sc(d)[0];b.has(e)||(c.push(d),b.add(e))}return c};function Ps(){var a=this;this.g=this.i=null;this.u=1;this.o=new Map;this.H=new Map;this.J=new Map;this.J.set("video",new Map);this.J.set("audio",new Map);this.J.set(Jc,new Map);this.J.set("image",new Map);this.Da=new Set;this.h=new Map;this.l=null;this.Z="";this.ya=new Es;this.I=-1;this.V=Infinity;this.aa=this.wb=!1;this.s=new qd(function(){Qs(a)});this.ba=Rs;this.C=null;this.za=0;this.m=Infinity;this.la=this.ia=this.K=0;this.N=new hf;this.F=new Map;this.G=new Map;this.W=new Map;this.ib=this.A=!1;
871
872
  this.hb=new Oa(5);this.j=null}r=Ps.prototype;r.configure=function(a){this.g=a;this.j&&this.j.configure(this.g)};r.start=function(a,b){var c=this,d;return K(function(e){return 1==e.g?(c.i=b,c.A=b.isLowLatencyMode(),C(e,Ss(c,[a]),2)):3!=e.g?(d=e.h,c.Z=d.uri,C(e,Ts(c,d.data,a),3)):e.return(c.C)})};
872
873
  r.stop=function(){this.s&&(this.s.stop(),this.s=null);var a=[];this.N&&(a.push(this.N.destroy()),this.N=null);this.g=this.i=null;this.Da.clear();this.C=null;this.h.clear();this.H.clear();this.G.clear();this.o.clear();this.W.clear();this.j&&this.j.destroy();return Promise.all(a)};
873
- r.update=function(){var a=this,b,c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g){if(!Us(a))return m.return();b=[];c=Array.from(a.h.values());a.m=Infinity;d=c.filter(function(n){return n.stream.segmentIndex});e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(Vs(a,g));return C(m,Promise.all(b),2)}Ws(a,d.map(function(n){return n.stream}));h=d.some(function(n){return 0==n.Rc});d.length&&!h&&(k=Xs,Ys(a,k.og),l=d.map(function(n){return n.nb}),a.l.Na(Math.min.apply(Math,w(l))),a.i.updateDuration());
874
+ r.update=function(){var a=this,b,c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g){if(!Us(a))return m.return();b=[];c=Array.from(a.h.values());a.m=Infinity;d=c.filter(function(n){return n.stream.segmentIndex});e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(Vs(a,g));return C(m,Promise.all(b),2)}Ws(a,d.map(function(n){return n.stream}));h=d.some(function(n){return 0==n.Rc});d.length&&!h&&(k=Xs,Ys(a,k.ng),l=d.map(function(n){return n.nb}),a.l.Na(Math.min.apply(Math,w(l))),a.i.updateDuration());
874
875
  h&&Zs(a);F(m)})};function $s(a,b){return Us(a)?a.J.get(b.type):b.Kd}
875
876
  function Vs(a,b){var c,d,e,f,g,h,k,l,m,n,q,p,u,v,y,z,x,A,B,D,E,J,G,H,I,L,M,O,S,da;return K(function(W){if(1==W.g){c=[];d=t(b.Y());for(e=d.next();!e.done;e=d.next())f=e.value,g=new mc(f),h=g.g,b.pd&&(0<=b.Va&&h.add("_HLS_msn",String(b.Va)),0<=b.Wa&&h.add("_HLS_part",String(b.Wa))),b.qd&&h.add("_HLS_skip","YES"),Cc(h)&&rc(g,h),c.push(g.toString());return C(W,Ss(a,c,!0),2)}k=W.h;if(!b.stream.segmentIndex)return W.return();l=Fs(a.ya,k.data);if(1!=l.type)throw new P(2,4,4017);m=k.uri;m==k.originalUri||
876
- b.Y().includes(m)||b.Xf.push(m);n=us(l.g,"EXT-X-DEFINE");q=at(a,n,m);p=b.stream;u=$s(a,b);v=bt(l,p.mimeType);y=v.keyIds;z=v.drmInfos;x=function(ea,Ca){return ea.size===Ca.size&&[].concat(w(ea)).every(function(Sa){return Ca.has(Sa)})};x(p.keyIds,y)||(p.keyIds=y,p.drmInfos=z,a.i.newDrmInfo(p));A=ct(a,l,p,u,q,b.Y);B=A.segments;D=A.bandwidth;p.bandwidth=D;p.segmentIndex.Vc(B,a.l.bb());B.length&&(E=xs(l.g,"EXT-X-MEDIA-SEQUENCE",0),G=(J=ws(l.g,"EXT-X-SKIP"))?Number(Z(J,"SKIPPED-SEGMENTS")):0,H=dt(E,B),
877
+ b.Y().includes(m)||b.Wf.push(m);n=us(l.g,"EXT-X-DEFINE");q=at(a,n,m);p=b.stream;u=$s(a,b);v=bt(l,p.mimeType);y=v.keyIds;z=v.drmInfos;x=function(ea,Ca){return ea.size===Ca.size&&[].concat(w(ea)).every(function(Sa){return Ca.has(Sa)})};x(p.keyIds,y)||(p.keyIds=y,p.drmInfos=z,a.i.newDrmInfo(p));A=ct(a,l,p,u,q,b.Y);B=A.segments;D=A.bandwidth;p.bandwidth=D;p.segmentIndex.Vc(B,a.l.bb());B.length&&(E=xs(l.g,"EXT-X-MEDIA-SEQUENCE",0),G=(J=ws(l.g,"EXT-X-SKIP"))?Number(Z(J,"SKIPPED-SEGMENTS")):0,H=dt(E,B),
877
878
  I=H.Va,L=H.Wa,b.Va=I+G,b.Wa=L,M=u.get(E),p.segmentIndex.$a(M));O=B[0];b.Ob=O.startTime;S=B[B.length-1];b.nb=S.endTime;if(da=ws(l.g,"EXT-X-ENDLIST"))b.Rc=!0;et(a,l);F(W)})}r.onExpirationUpdated=function(){};r.onInitialVariantChosen=function(){};r.banLocation=function(a){this.j&&this.j.i.set(a,Date.now()+6E4)};
878
879
  function ft(a,b){for(var c=-1==a.I,d=t(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex,g=$s(a,e);if(f=f.g[0]||null){g=t(g);for(var h=g.next();!h.done;h=g.next()){h=t(h.value);var k=h.next().value;if(h.next().value==f.startTime){c&&(a.I=Math.max(a.I,k));e.ke=k;break}}}}if(!(0>a.I))for(b=t(b),e=b.next();!e.done;e=b.next())if(c=e.value,d=c.stream.segmentIndex)if(e=a.I-c.ke,0<e&&(d.g.splice(0,e),d=d.g[0]||null))d=-d.startTime,c.stream.segmentIndex.offset(d),gt(a,c,d)}
879
- function ht(a,b){if(Infinity==a.V){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value.stream.segmentIndex.g[0]||null;null!=d&&null!=d.g&&(a.V=Math.min(a.V,d.g))}}b=a.V;if(Infinity!=b)for(d=t(a.h.values()),c=d.next();!c.done;c=d.next()){c=c.value;var e=c.stream.segmentIndex;if(null!=e){var f=e.g[0]||null;if(null==f.g)Ta("Missing EXT-X-PROGRAM-DATE-TIME for stream",c.Y(),"Expect AV sync issues!");else for(gt(a,c,f.g-b-f.startTime),c=t(e),e=c.next();!e.done;e=c.next())e.value.lf(b)}}}
880
+ function ht(a,b){if(Infinity==a.V){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value.stream.segmentIndex.g[0]||null;null!=d&&null!=d.g&&(a.V=Math.min(a.V,d.g))}}b=a.V;if(Infinity!=b)for(d=t(a.h.values()),c=d.next();!c.done;c=d.next()){c=c.value;var e=c.stream.segmentIndex;if(null!=e){var f=e.g[0]||null;if(null==f.g)Ta("Missing EXT-X-PROGRAM-DATE-TIME for stream",c.Y(),"Expect AV sync issues!");else for(gt(a,c,f.g-b-f.startTime),c=t(e),e=c.next();!e.done;e=c.next())e.value.kf(b)}}}
880
881
  function gt(a,b,c){b.Ob+=c;b.nb+=c;a=$s(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.Y()}
881
882
  function Ts(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v,y,z,x,A,B,D,E,J,G,H,I,L,M,O,S,da,W;return K(function(ea){switch(ea.g){case 1:d=Fs(a.ya,b);e=us(d.g,"EXT-X-DEFINE");f=[];g=[];h=[];if(1==d.type)return v=function(){return[c]},C(ea,it(a,d,v),6);jt(a,e);k=us(d.g,"EXT-X-MEDIA");l=us(d.g,"EXT-X-STREAM-INF");m=us(d.g,"EXT-X-IMAGE-STREAM-INF");n=us(d.g,"EXT-X-I-FRAME-STREAM-INF");q=us(d.g,"EXT-X-SESSION-KEY");p=us(d.g,"EXT-X-SESSION-DATA");u=us(d.g,"EXT-X-CONTENT-STEERING");kt(a,p);return C(ea,lt(a,u),4);
882
883
  case 4:return mt(a,l),nt(a,k),f=ot(a,l,q,k),g=pt(a,k),C(ea,qt(a,m,n),5);case 5:h=ea.h;ea.B(3);break;case 6:return y=ea.h,z=y.type,x=y.mimeType,A=y.codecs,B=y.language,D=y.height,E=y.width,J=y.channelCount,G=y.sampleRate,H=y.closedCaptions,C(ea,rt(a,a.u++,d,v,c,A,z,B,!0,"Media Playlist",J,H,null,!1,G,!1,x),7);case 7:I=ea.h,a.h.set(c,I),"video"==z&&st(I.stream,E,D,null,null,null),f.push({id:0,language:hd(B||"und"),disabledUntilTime:0,primary:!0,audio:"audio"==z?I.stream:null,video:"video"==z?I.stream:
@@ -887,7 +888,7 @@ of(g,a.g.retryParameters),C(D,xt(a,y,n,{type:1}),4);case 4:z=D.h;(x=z.headers["c
887
888
  H.push("avc1.42E01E");L=!0;break;case "hvc":J.ga?H.push(J.ga):H.push("hvc1.1.6.L93.90");L=!0;break;case "av1":H.push("av01.0.01M.08"),L=!0}if(H.length){G=I&&!L;I=new Map;if(L){L=new Ab("video/mp2t");L.i(E);E=t(L.j());for(var M=E.next();!M.done;M=E.next())M=M.value,I.set(M,M);L.h()}J={type:G?"audio":"video",mimeType:"video/mp2t",codecs:H.join(", "),language:null,height:J.height,width:J.width,channelCount:null,sampleRate:null,closedCaptions:I}}else J=null;if(A=J)return D.return(A)}else if("mp4"==l||
888
889
  "cmfv"==l||"m4s"==l||"video/mp4"==x||"audio/mp4"==x||"video/iso.segment"==x)if(B=Ns(q,z.data))return D.return(B);return D.return(d)}})}
889
890
  function Zs(a){if(Us(a)){if(a.ba==yt){for(var b,c=b=Infinity,d=t(a.h.values()),e=d.next();!e.done;e=d.next())e=e.value,e.stream.segmentIndex&&"text"!=e.stream.type&&(b=Math.min(b,e.nb),c=Math.min(c,e.Ob));b-=c;a.g.hls.useSafariBehaviorForLive&&(b=a.l.o);isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.l.Sd(b)}if(!a.l.m)for(b=t(a.h.values()),c=b.next();!c.done;c=b.next())c=c.value,!c.stream.segmentIndex||"audio"!=c.type&&"video"!=c.type||(c=c.stream.segmentIndex.get(0))&&
890
- c.g&&a.l.dg(c.g)}else a.l.Na(zt(a));a.l.Id()}function jt(a,b){var c=(new mc(a.Z)).g;b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=Z(e,"NAME");var f=Z(e,"VALUE");e=Z(e,"QUERYPARAM");d&&f&&(a.o.has(d)||a.o.set(d,f));e&&(d=c.get(e)[0])&&!a.o.has(d)&&a.o.set(e,d)}}
891
+ c.g&&a.l.cg(c.g)}else a.l.Na(zt(a));a.l.Id()}function jt(a,b){var c=(new mc(a.Z)).g;b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=Z(e,"NAME");var f=Z(e,"VALUE");e=Z(e,"QUERYPARAM");d&&f&&(a.o.has(d)||a.o.set(d,f));e&&(d=c.get(e)[0])&&!a.o.has(d)&&a.o.set(e,d)}}
891
892
  function at(a,b,c){c=(new mc(c)).g;var d=new Map;b=t(b);for(var e=b.next();!e.done;e=b.next()){var f=e.value,g=Z(f,"NAME"),h=Z(f,"VALUE");e=Z(f,"QUERYPARAM");f=Z(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.o.get(f))&&d.set(f,e)}return d}
892
893
  function mt(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Z(d,"AUDIO");c=Z(d,"VIDEO");var f=Z(d,"SUBTITLES");d=At(a,d);if(f){var g=Hc(Jc,d);a.G.set(f,g);Fb(d,g)}e&&(f=Hc("audio",d),f||(f=a.g.hls.defaultAudioCodec),a.G.set(e,f));c&&(e=Hc("video",d),e||(e=a.g.hls.defaultVideoCodec),a.G.set(c,e))}}
893
894
  function kt(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Z(d,"DATA-ID");c=Z(d,"URI");var f=Z(d,"LANGUAGE");d=Z(d,"VALUE");e=(new Map).set("id",e);c&&e.set("uri",ys([a.Z],c,a.o)[0]);f&&e.set("language",f);d&&e.set("value",d);c=new Q("sessiondata",e);if(a.i)a.i.onEvent(c)}}
@@ -913,31 +914,31 @@ Number(m.split("x")[1]));if(n=Z(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.h.
913
914
  function Nt(a,b,c,d,e,f,g,h,k){for(var l=a.u++,m=[],n=t(b),q=n.next();!q.done;q=n.next()){var p=q.value;q=ps(p,"URI");p=Z(p,"PATHWAY-ID");a.j&&p&&ir(a.j,l,p,q);m.push(q)}n=m.sort().join(",");if(a.h.has(n))return a.h.get(n);a:{b=Z(b[0],"CLOSED-CAPTIONS");if("video"==d){if(b&&"NONE"!=b){b=a.F.get(b);break a}if(!b&&a.F.size)for(b=t(a.F.keys()).next();!b.done;){b=a.F.get(b.value);break a}}b=null}c=Gc(d,c);d=Ft(a,l,m,c,d,e,!1,f,g,b,h,!1,k,!1);a.h.set(n,d);return d}
914
915
  function Ft(a,b,c,d,e,f,g,h,k,l,m,n,q,p){function u(D){var E,J,G,H,I,L,M,O,S,da,W,ea,Ca,Sa,wb,cb,Ub;return K(function(Da){switch(Da.g){case 1:return E=x.Y(),C(Da,Ss(a,x.Y(),!0),2);case 2:J=Da.h;if(D.aborted)return Da.return();G=J.uri;G==J.originalUri||E.includes(G)||z.push(G);H=Fs(a.ya,J.data);I=void 0;if(a.aa||!a.g.hls.disableCodecGuessing){Da.B(3);break}return C(Da,it(a,H,v),4);case 4:L=Da.h,I=L.mimeType,d=L.codecs;case 3:return M=Us(a),C(Da,rt(a,0,H,v,G,d,e,f,g,h,k,l,m,n,q,p,I),5);case 5:O=Da.h;
915
916
  if(D.aborted)return Da.return();S=O.stream;Us(a)&&!M&&tt(a,H);x.Ob=O.Ob;x.nb=O.nb;x.qd=O.qd;x.pd=O.pd;x.Rc=O.Rc;x.Kd=O.Kd;x.Va=O.Va;x.Wa=O.Wa;x.Ne=!0;y.segmentIndex=S.segmentIndex;y.encrypted=S.encrypted;y.drmInfos=S.drmInfos;y.keyIds=S.keyIds;y.mimeType=S.mimeType;y.bandwidth=S.bandwidth;y.codecs=S.codecs||y.codecs;y.drmInfos.length&&a.i.newDrmInfo(y);da=Kc;if(e==da.ca||e==da.R)for(W=t(a.h.values()),ea=W.next();!ea.done;ea=W.next())Ca=ea.value,Ca.Ne||Ca.type!=e||(Ca.stream.mimeType=S.mimeType);e==
916
- da.ja&&(Sa=S.segmentIndex.get(0))&&Sa.h&&(y.mimeType="application/mp4");Ot(a)&&(a.wb?ut(a,[x]):(a.wb=!0,wb=Array.from(a.h.values()),cb=wb.filter(function(db){return db.stream.segmentIndex}),ut(a,cb),Zs(a),Ub=a.m,0<Ub&&a.s.U(Ub)));F(Da)}})}function v(){return a.j&&1<c.length?jr(a.j,b):z.concat(zs([a.Z],c,a.o))}var y=Pt(a,d,e,f,g,h,k,l,m,n,q,p),z=[],x={stream:y,type:e,Xf:z,Y:v,Ob:0,nb:0,Kd:new Map,qd:!1,pd:!1,Rc:!1,ke:-1,Va:-1,Wa:-1,Ne:!1},A=null,B=new AbortController;y.createSegmentIndex=function(){if(A)return A;
917
+ da.ja&&(Sa=S.segmentIndex.get(0))&&Sa.h&&(y.mimeType="application/mp4");Ot(a)&&(a.wb?ut(a,[x]):(a.wb=!0,wb=Array.from(a.h.values()),cb=wb.filter(function(db){return db.stream.segmentIndex}),ut(a,cb),Zs(a),Ub=a.m,0<Ub&&a.s.U(Ub)));F(Da)}})}function v(){return a.j&&1<c.length?jr(a.j,b):z.concat(zs([a.Z],c,a.o))}var y=Pt(a,d,e,f,g,h,k,l,m,n,q,p),z=[],x={stream:y,type:e,Wf:z,Y:v,Ob:0,nb:0,Kd:new Map,qd:!1,pd:!1,Rc:!1,ke:-1,Va:-1,Wa:-1,Ne:!1},A=null,B=new AbortController;y.createSegmentIndex=function(){if(A)return A;
917
918
  B=new AbortController;return A=new Promise(function(D){D(u(B.signal))})};y.closeSegmentIndex=function(){A&&!y.segmentIndex&&B.abort();y.segmentIndex&&(y.segmentIndex.release(),y.segmentIndex=null);A=null};return x}function zt(a){var b=Infinity;a=t(a.h.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.stream.segmentIndex&&"text"!=c.stream.type&&(b=Math.min(b,c.nb));return b}
918
919
  function Ws(a,b){var c=[];b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&Bj(d.segmentIndex,function(e){c.push(e)});a.l.Wc(c)}function ut(a,b){if(!Us(a))for(var c=zt(a),d=t(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.Xb(0,c);Ws(a,b.map(function(f){return f.stream}));a.g.hls.ignoreManifestProgramDateTime?ft(a,b):ht(a,b)}
919
920
  function Ot(a){if(!a.C)return!1;var b=[],c=[];a=t(a.C.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}
920
921
  function rt(a,b,c,d,e,f,g,h,k,l,m,n,q,p,u,v,y){var z,x,A,B,D,E,J,G,H,I,L,M,O,S,da,W,ea,Ca,Sa,wb,cb,Ub,Da;return K(function(db){if(1==db.g){if(1!=c.type)throw new P(2,4,4017);z=us(c.g,"EXT-X-DEFINE");x=at(a,z,e);var $a=ws(c.g,"EXT-X-PLAYLIST-TYPE"),xb=ws(c.g,"EXT-X-ENDLIST");xb=$a&&"VOD"==$a.value||xb;$a=$a&&"EVENT"==$a.value&&!xb;$a=!xb&&!$a;xb?Ys(a,Rs):$a?Ys(a,yt):Ys(a,Qt);Us(a)&&et(a,c);return y?db.B(2):C(db,Rt(a,g,f,c,x,d),3)}2!=db.g&&(y=db.h);A=bt(c,y);B=A.drmInfos;D=A.keyIds;E=A.encrypted;J=
921
- A.sg;if(E&&!B.length&&!J)throw new P(2,4,4026);G=Pt(a,f,g,h,k,l,m,n,q,p,u,v);G.encrypted=E;G.drmInfos=B;G.keyIds=D;G.mimeType=y;H=Us(a)?a.J.get(g):new Map;I=ct(a,c,G,H,x,d);L=I.segments;M=I.bandwidth;G.bandwidth=M;Us(a)&&et(a,c);O=L[0].startTime;S=L[L.length-1];da=S.endTime;W=new Aj(L);G.segmentIndex=W;Ca=(ea=ws(c.g,"EXT-X-SERVER-CONTROL"))?null!=ea.getAttribute("CAN-SKIP-UNTIL"):!1;Sa=ea?null!=ea.getAttribute("CAN-BLOCK-RELOAD"):!1;wb=xs(c.g,"EXT-X-MEDIA-SEQUENCE",0);cb=dt(wb,L);Ub=cb.Va;Da=cb.Wa;
922
- return db.return({stream:G,type:g,Xf:[],Y:d,Ob:O,nb:da,qd:Ca,pd:Sa,Rc:!1,ke:-1,Va:Ub,Wa:Da,Kd:H,Ne:!1})})}function dt(a,b){a=a+b.length-1;var c=-1;if(!b.length)return a++,{Va:a,Wa:c};b=b[b.length-1];var d=b.i;if(!b.i.length)return a++,b.s&&(c=0),{Va:a,Wa:c};c=d.length-1;d[d.length-1].o||(a++,c=0);return{Va:a,Wa:c}}
922
+ A.rg;if(E&&!B.length&&!J)throw new P(2,4,4026);G=Pt(a,f,g,h,k,l,m,n,q,p,u,v);G.encrypted=E;G.drmInfos=B;G.keyIds=D;G.mimeType=y;H=Us(a)?a.J.get(g):new Map;I=ct(a,c,G,H,x,d);L=I.segments;M=I.bandwidth;G.bandwidth=M;Us(a)&&et(a,c);O=L[0].startTime;S=L[L.length-1];da=S.endTime;W=new Aj(L);G.segmentIndex=W;Ca=(ea=ws(c.g,"EXT-X-SERVER-CONTROL"))?null!=ea.getAttribute("CAN-SKIP-UNTIL"):!1;Sa=ea?null!=ea.getAttribute("CAN-BLOCK-RELOAD"):!1;wb=xs(c.g,"EXT-X-MEDIA-SEQUENCE",0);cb=dt(wb,L);Ub=cb.Va;Da=cb.Wa;
923
+ return db.return({stream:G,type:g,Wf:[],Y:d,Ob:O,nb:da,qd:Ca,pd:Sa,Rc:!1,ke:-1,Va:Ub,Wa:Da,Kd:H,Ne:!1})})}function dt(a,b){a=a+b.length-1;var c=-1;if(!b.length)return a++,{Va:a,Wa:c};b=b[b.length-1];var d=b.i;if(!b.i.length)return a++,b.s&&(c=0),{Va:a,Wa:c};c=d.length-1;d[d.length-1].o||(a++,c=0);return{Va:a,Wa:c}}
923
924
  function Pt(a,b,c,d,e,f,g,h,k,l,m,n){var q=Ct(c,b)||Dt(c),p=[];if(k){k=t(k.split(","));for(var u=k.next();!u.done;u=k.next())p.push(u.value)}k=void 0;u=null;c==Jc?k=p.includes("public.accessibility.transcribes-spoken-dialog")&&p.includes("public.accessibility.describes-music-and-sound")?"caption":"subtitle":p.includes("public.accessibility.describes-video")&&(u="visually impaired");p.length||"subtitle"!==k||p.push("subtitle");return{id:a.u++,originalId:f,groupId:null,createSegmentIndex:function(){return Promise.resolve()},
924
925
  segmentIndex:null,mimeType:q,codecs:b,kind:c==Jc?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:hd(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:p,forced:l,channelsCount:g,audioSamplingRate:m,spatialAudio:n,closedCaptions:h,hdr:void 0,videoLayout:void 0,tilesLayout:void 0,accessibilityPurpose:u,external:!1,fastSwitching:!1}}
925
- function bt(a,b){var c=[];if(a.segments){a=t(a.segments);for(var d=a.next();!d.done;d=a.next())d=us(d.value.g,"EXT-X-KEY"),c.push.apply(c,w(d))}d=a=!1;var e=[],f=new Set;c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=ps(g,"METHOD");if("NONE"!=h)if(a=!0,"AES-128"==h)d=!0;else if(h=Z(g,"KEYFORMAT")||"identity",g=(h=Ht[h])?h(g,b):null){if(g.keyIds){h=t(g.keyIds);for(var k=h.next();!k.done;k=h.next())f.add(k.value)}e.push(g)}}return{drmInfos:e,keyIds:f,encrypted:a,sg:d}}
926
+ function bt(a,b){var c=[];if(a.segments){a=t(a.segments);for(var d=a.next();!d.done;d=a.next())d=us(d.value.g,"EXT-X-KEY"),c.push.apply(c,w(d))}d=a=!1;var e=[],f=new Set;c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=ps(g,"METHOD");if("NONE"!=h)if(a=!0,"AES-128"==h)d=!0;else if(h=Z(g,"KEYFORMAT")||"identity",g=(h=Ht[h])?h(g,b):null){if(g.keyIds){h=t(g.keyIds);for(var k=h.next();!k.done;k=h.next())f.add(k.value)}e.push(g)}}return{drmInfos:e,keyIds:f,encrypted:a,rg:d}}
926
927
  function St(a,b,c,d,e){if(!window.crypto||!window.crypto.subtle)throw Ua("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new P(2,4,4042);var f=0,g=Z(b,"IV","");if(g){var h=eg(g.substr(2));if(16!=h.byteLength)throw new P(2,4,4048);}else f=xs(c.g,"EXT-X-MEDIA-SEQUENCE",0);var k={method:"AES-128",iv:h,firstMediaSequenceNumber:f,fetchKey:function(){var l,m,n,q,p;return K(function(u){if(1==u.g)return l=ys(d(),ps(b,"URI"),e),m=of(l,a.g.retryParameters),
927
928
  C(u,xt(a,m,6),2);if(3!=u.g){n=u.h;if(!n.data||16!=n.data.byteLength)throw new P(2,4,4049);q={name:"AES-CBC"};p=k;return C(u,window.crypto.subtle.importKey("raw",n.data,q,!0,["decrypt"]),3)}p.cryptoKey=u.h;k.fetchKey=void 0;F(u)})}};return k}
928
929
  function et(a,b){var c=Infinity,d=b.segments;if(d.length)for(var e=d.length-1;0<=e;){var f=ws(d[e].g,"EXTINF");if(f){c=Number(f.value.split(",")[0]);break}e--}d=ws(b.g,"EXT-X-TARGETDURATION");if(!d)throw new P(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);if(e=ws(b.g,"EXT-X-PART-INF"))a.K=Number(ps(e,"PART-TARGET"));b=ws(b.g,"EXT-X-SERVER-CONTROL");a.A&&a.K?(a.m=a.ib?5*a.K<=c?Math.min(a.K,a.m):Math.min(c,a.m):Math.min(a.K,a.m),a.la=b?Number(ps(b,"PART-HOLD-BACK")):0):(a.m=Math.min(c,a.m),c=b?
929
- b.getAttribute("HOLD-BACK"):null,a.ia=c?Number(c.value):0);a.za=Math.max(d,a.za)}function tt(a,b){if(a.g.defaultPresentationDelay)b=a.g.defaultPresentationDelay;else if(a.la)b=a.la;else if(a.ia)b=a.ia;else{b=b.segments.length;var c=a.g.hls.liveSegmentsDelay;c>b-2&&(c=Math.max(1,b-2));b=a.za*c}a.l.eg(0);a.l.gf(b);a.l.mc(!1)}
930
+ b.getAttribute("HOLD-BACK"):null,a.ia=c?Number(c.value):0);a.za=Math.max(d,a.za)}function tt(a,b){if(a.g.defaultPresentationDelay)b=a.g.defaultPresentationDelay;else if(a.la)b=a.la;else if(a.ia)b=a.ia;else{b=b.segments.length;var c=a.g.hls.liveSegmentsDelay;c>b-2&&(c=Math.max(1,b-2));b=a.za*c}a.l.dg(0);a.l.ff(b);a.l.mc(!1)}
930
931
  function wt(a,b,c,d,e){var f=ws(c,"EXT-X-MAP");if(!f)return null;var g=ps(f,"URI"),h=ys(d(),g,e);g=[h.toString(),Z(f,"BYTERANGE","")].join("-");if(!a.W.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?"AES-128"==ps(m,"METHOD")&&m.id<f.id&&(k=St(a,m,b,d,e)):"EXT-X-BYTERANGE"==m.name&&m.id<f.id&&(l=m);b=Tt(h,f,l,k);a.W.set(g,b)}return a.W.get(g)}
931
932
  function Tt(a,b,c,d){var e=0,f=null;b=Z(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 Bh(function(){return a},e,f,null,null,null,d)}
932
933
  function Ut(a,b,c,d,e,f,g,h,k){var l=d.g,m=ws(l,"EXTINF"),n=0,q=0,p=null;d.cb.length&&!a.A&&Ua("Low-latency HLS live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");var u=null;if(!a.g.hls.ignoreManifestProgramDateTime){var v=ws(l,"EXT-X-PROGRAM-DATE-TIME");v&&v.value&&(u=tg(v.value))}var y=Dh;ws(l,"EXT-X-GAP")&&(y=2);if(!m){if(0==d.cb.length)throw new P(2,4,4024,"EXTINF");
933
934
  if(!a.A)return null}var z=[];v=!1;var x=null,A=!1,B=!1;if(a.A&&d.cb.length){n=("video/mp4"==g.mimeType||"audio/mp4"==g.mimeType)&&window.ReadableStream&&a.g.hls.allowLowLatencyByteRangeOptimization;for(var D=u,E={},J=0;J<d.cb.length;E={zc:E.zc,jd:E.jd},J++){var G=d.cb[J],H=0==J?c:z[z.length-1],I=0==J?e:H.endTime,L=Number(Z(G,"DURATION"))||a.K;if(L){var M=I+L,O=0,S=null;"EXT-X-PRELOAD-HINT"==G.name?(O=(O=Z(G,"BYTERANGE-START"))?Number(O):0,(H=Z(G,"BYTERANGE-LENGTH"))?S=O+Number(H)-1:O&&(S=Number.MAX_SAFE_INTEGER)):
934
935
  (O=Z(G,"BYTERANGE"),S=t(Vt(H,O)),O=S.next().value,S=S.next().value);E.jd=Z(G,"URI");if(E.jd){H=Dh;"YES"==Z(G,"GAP")&&(H=2,A=!0);E.zc=null;var da=function(ea){return function(){null==ea.zc&&(ea.zc=ys(h(),ea.jd,f));return ea.zc}}(E);n&&0<=O&&null!=S&&(x=da,v=!0);I=new R(I,M,da,O,S,b,0,0,Infinity,[],"",null,D,H,k);"EXT-X-PRELOAD-HINT"==G.name&&(I.Pe(),B=!0);"YES"!=Z(G,"INDEPENDENT")&&0<J&&I.Jd();z.push(I);D&&(D+=L)}}}}if(m){m=Number(m.value.split(",")[0]);if(0==m)return null;n=e+m}else if(z.length)n=
935
- z[z.length-1].endTime;else return null;v&&(A||0!=z[0].Oa?(v=!1,x=null):z=[]);(m=ws(l,"EXT-X-BYTERANGE"))?(p=t(Vt(c,m.value)),q=p.next().value,p=p.next().value):z.length&&(q=z[0].Oa,p=z[z.length-1].ua);c="";m=null;"image"==g.type&&(c="1x1",g=ws(l,"EXT-X-TILES"))&&(c=ps(g,"LAYOUT"),(g=Z(g,"DURATION"))&&(m=Number(g)));var W=null;b=new R(e,n,function(){if(x)return x();null==W&&(W=ys(h(),d.h,f));return W||[]},q,p,b,0,0,Infinity,z,c,m,u,y,k,0<z.length&&!!d.h);v&&(a.ib=!0,b.Pf(),B&&b.Pe());return b}
936
+ z[z.length-1].endTime;else return null;v&&(A||0!=z[0].Oa?(v=!1,x=null):z=[]);(m=ws(l,"EXT-X-BYTERANGE"))?(p=t(Vt(c,m.value)),q=p.next().value,p=p.next().value):z.length&&(q=z[0].Oa,p=z[z.length-1].ua);c="";m=null;"image"==g.type&&(c="1x1",g=ws(l,"EXT-X-TILES"))&&(c=ps(g,"LAYOUT"),(g=Z(g,"DURATION"))&&(m=Number(g)));var W=null;b=new R(e,n,function(){if(x)return x();null==W&&(W=ys(h(),d.h,f));return W||[]},q,p,b,0,0,Infinity,z,c,m,u,y,k,0<z.length&&!!d.h);v&&(a.ib=!0,b.Of(),B&&b.Pe());return b}
936
937
  function Vt(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.ua+1,d=c+b-1);return[c,d]}
937
938
  function ct(a,b,c,d,e,f){var g=b.segments,h=void 0,k=xs(b.g,"EXT-X-DISCONTINUITY-SEQUENCE",0),l=xs(b.g,"EXT-X-MEDIA-SEQUENCE",0),m=ws(b.g,"EXT-X-SKIP"),n=m?Number(Z(m,"SKIPPED-SEGMENTS")):0,q=l+n,p=0;Us(a)&&d.has(q)&&(p=d.get(q));0===p&&a.ba==yt&&0<d.size&&!d.has(q)&&(p=a.l.bb());var u=[],v=null;m=[];for(var y=0;y<g.length;y++){var z=g[y],x=0==y?p:v.endTime;q=l+n+y;ws(z.g,"EXT-X-DISCONTINUITY")&&k++;var A=t(z.g);for(var B=A.next();!B.done;B=A.next())B=B.value,"EXT-X-KEY"==B.name&&("AES-128"==ps(B,
938
939
  "METHOD")?h=St(a,B,b,f,e):h=void 0);d.set(q,x);A=wt(a,b,z.g,f,e);!a.A&&a.i.isAutoLowLatencyMode()&&(a.i.enableLowLatencyMode(),a.A=a.i.isLowLatencyMode());if(x=Ut(a,A,v,z,x,e,c,f,h))(v=xs(z.g,"EXT-X-BITRATE"))?m.push({bitrate:v,duration:x.endTime-x.startTime}):m.length&&(v=m.pop(),v.duration+=x.endTime-x.startTime,m.push(v)),v=x,x.l=k,a.g.hls.ignoreManifestProgramDateTime&&null!=a.I&&q<a.I||u.push(x)}b=void 0;m.length&&(b=m.reduce(function(D,E){return D+E.duration},0),b=Math.round(m.reduce(function(D,
939
940
  E){return D+E.bitrate*E.duration},0)/b*1E3));if(m=u.some(function(D){return null!=D.g}))for(c={},d=0;d<u.length;c={sc:c.sc,rc:c.rc,ed:c.ed,sb:c.sb,qc:c.qc},d++)if(c.sb=u[d],null==c.sb.g)for(c.rc=0,c.sc=d,e=function(D){return function(){var E=u[D.sc];if(E){if(null!=E.g)return E.g+D.rc;D.rc-=E.endTime-E.startTime;D.sc+=1}return null}}(c),c.qc=0,c.ed=d,f=function(D){return function(){var E=u[D.ed];if(E){E!=D.sb&&(D.qc+=E.endTime-E.startTime);if(null!=E.g)return E.g+D.qc;--D.ed}return null}}(c);null==
940
- c.sb.g;)c.sb.g=f(),null==c.sb.g&&(c.sb.g=e());if(m)for(c=t(u),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.g,e=t(e.i),f=e.next();!f.done;f=e.next())f=f.value,f.g=d,d+=f.endTime-f.startTime;a=a.V;if(m&&Infinity!=a)for(m=t(u),d=m.next();!d.done;d=m.next())d.value.lf(a);return{segments:u,bandwidth:b}}
941
+ c.sb.g;)c.sb.g=f(),null==c.sb.g&&(c.sb.g=e());if(m)for(c=t(u),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.g,e=t(e.i),f=e.next();!f.done;f=e.next())f=f.value,f.g=d,d+=f.endTime-f.startTime;a=a.V;if(m&&Infinity!=a)for(m=t(u),d=m.next();!d.done;d=m.next())d.value.kf(a);return{segments:u,bandwidth:b}}
941
942
  function Ct(a,b){if(a==Jc){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 Dt(a){return a==Jc?"text/vtt":Wt[a].mp4}
942
943
  function Rt(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,u,v,y,z,x;return K(function(A){switch(A.g){case 1:g=uf;h=Math.trunc((d.segments.length-1)/2);k=ys(f(),d.segments[h].h,e);l=new mc(k[0]);m=l.Ea.split(".").pop();n=Wt[b];if((q=n[m])||(q=vt[m])||(q=Ct(b,c)))return A.return(q);u=1;v=of(k,a.g.retryParameters);ta(A,2);v.method="HEAD";return C(A,xt(a,v,g,{type:u}),4);case 4:y=A.h;p=y.headers["content-type"];va(A,3);break;case 2:z=wa(A);if(!z||1002!=z.code&&1001!=z.code){A.B(3);break}v.method="GET";return C(A,
943
944
  xt(a,v,g,{type:u}),6);case 6:x=A.h,p=x.headers["content-type"];case 3:return p?A.return(p.split(";")[0]):A.return(Dt(b))}})}function st(a,b,c,d,e,f){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)}function Ss(a,b,c){return xt(a,of(b,a.g.retryParameters),0,{type:c?2:3})}
@@ -946,7 +947,7 @@ function Us(a){return a.ba!=Rs}function Ys(a,b){a.ba=b;a.l&&a.l.mc(!Us(a));Us(a)
946
947
  var vt={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},Wt={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",
947
948
  vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},Ht={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new P(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new P(2,4,4041);return Fc("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=ps(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;
948
949
  b=ps(a,"URI");b=Ls(b);b=sb(b.data);b=Fc("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=Z(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=ps(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=ps(a,"URI");a=Ls(a);a=sb(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=ig(a,b,new Set,0);return Fc("com.microsoft.playready",[{initDataType:"cenc",initData:a}])},identity:function(a,
949
- b){if("video/mp2t"==b)throw new P(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new P(2,4,4041);a=ps(a,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(a)?Fc("org.w3.clearkey",null):null}},Rs="VOD",Qt="EVENT",yt="LIVE",Xs={og:Rs,di:Qt,li:yt};wh["application/x-mpegurl"]=function(){return new Ps};wh["application/vnd.apple.mpegurl"]=function(){return new Ps};function Xt(a){var b=0,c=yb(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=sb(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function Yt(a){if(a=Zt(a))a:{a=t(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next())if(b=jg(b.value,"LA_URL")){a=b.textContent;break a}a=""}else a="";return a}
950
+ b){if("video/mp2t"==b)throw new P(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new P(2,4,4041);a=ps(a,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(a)?Fc("org.w3.clearkey",null):null}},Rs="VOD",Qt="EVENT",yt="LIVE",Xs={ng:Rs,ci:Qt,ki:yt};wh["application/x-mpegurl"]=function(){return new Ps};wh["application/vnd.apple.mpegurl"]=function(){return new Ps};function Xt(a){var b=0,c=yb(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=sb(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function Yt(a){if(a=Zt(a))a:{a=t(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next())if(b=jg(b.value,"LA_URL")){a=b.textContent;break a}a=""}else a="";return a}
950
951
  function Zt(a){a=dg(a.textContent);a=Xt(a).filter(function(b){return b.type===$t})[0];if(!a)return null;a=Gf(a.value,!0);return(a=Cg(a,"WRMHEADER"))?a:null}var $t=1,au=(new Map).set("com.microsoft.playready",Yt).set("com.microsoft.playready.recommendation",Yt).set("com.microsoft.playready.software",Yt).set("com.microsoft.playready.hardware",Yt);function bu(a){if(!cu){cu=!0;var b=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),d=new Uint8Array([0,0,0,1]);du=eu("ftyp",b,d,b,c);b=eu("dref",fu);gu=eu("dinf",b)}this.g=a}
951
952
  function hu(a){for(var b=[],c=t(a.g),d=c.next();!d.done;d=c.next()){var e=b,f=e.push;var g=d.value;d=eu;var h=g.id+1;var k=g.stream.width||0,l=g.stream.height||0;"audio"==g.type&&(l=k=0);var m=g.duration*g.timescale,n=Math.floor(m/(iu+1));m=Math.floor(m%(iu+1));h=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(w(ju(h,4)),[0,0,0,0],w(ju(n,4)),w(ju(m,4)),[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0],w(ju(k,2)),[0,0],w(ju(l,
952
953
  2)),[0,0]));h=eu("tkhd",h);k=eu;n=g.duration*g.timescale;l=Math.floor(n/(iu+1));n=Math.floor(n%(iu+1));m=g.stream.language;m=m.charCodeAt(0)-96<<10|m.charCodeAt(1)-96<<5|m.charCodeAt(2)-96;l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(w(ju(g.timescale,4)),w(ju(l,4)),w(ju(n,4)),w(ju(m,2)),[0,0]));l=eu("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=ku;break;case "audio":m=lu}n=eu("hdlr",m);a:{switch(g.type){case "video":g=eu("minf",eu("vmhd",mu),gu,nu(g));break a;
@@ -973,7 +974,7 @@ function Du(a){var b,c,d,e,f,g,h;return K(function(k){if(1==k.g)return b=of(a.l,
973
974
  q=sg(m,"DVRWindowLength",yg);l&&(0===q||isNaN(q))&&(q=Infinity);var p=sg(m,"CanSeek",Ag,!1);0===q&&p&&(q=Infinity);p=null;q&&0<q&&(p=q/n);l&&!isNaN(a.g.availabilityWindowOverride)&&(p=a.g.availabilityWindowOverride);null==p&&(p=Infinity);a.i.Sd(p);q=sg(m,"Duration",yg,Infinity);l||a.i.Na(q/n);l={variants:[],textStreams:[],timescale:n,duration:q/n};p=kg(m,"Protection");var u;n=a.g.mss.keySystemsBySystemId;q=[];p=t(p);for(u=p.next();!u.done;u=p.next())q=q.concat(kg(u.value,"ProtectionHeader"));if(q.length){p=
974
975
  [];for(u=0;u<q.length;u++){var v=q[u],y=v.getAttribute("SystemID").toLowerCase(),z=n[y];if(z){var x=Zt(v);if(x)a:{x=t(x.getElementsByTagName("DATA"));for(var A=x.next();!A.done;A=x.next())if(A=jg(A.value,"KID")){x=dg(A.textContent);x=new Uint8Array([x[3],x[2],x[1],x[0],x[5],x[4],x[7],x[6]].concat(w(x.slice(8))));x=fg(x);break a}x=null}else x=null;A=dg(v.textContent);y=eg(y.replace(/-/g,""));y=[{initData:ig(A,y,new Set,0),initDataType:"cenc",keyId:x}];y=Fc(z,y);x&&y.keyIds.add(x);if(z=au.get(z))y.licenseServerUri=
975
976
  z(v);p.push(y)}}n=p}else n=[];u=n;p=[];n=[];q=[];m=kg(m,"StreamIndex");m=t(m);for(v=m.next();!v.done;v=m.next()){v=v.value;z=kg(v,"QualityLevel");y=l.timescale;x=l.duration;A=kg(v,"c");for(var B=[],D=0,E=0;E<A.length;++E){var J=A[E],G=A[E+1],H=sg(J,"t",yg),I=sg(J,"d",yg);J=sg(J,"r",wg);if(!I)break;H=null!=H?H:D;J=J||0;if(0>J)if(G){G=sg(G,"t",yg);if(null==G)break;else if(H>=G)break;J=Math.ceil((G-H)/I)-1}else{if(Infinity==x)break;else if(H/y>=x)break;J=Math.ceil((x*y-H)/I)-1}for(G=0;G<=J;++G)D=H+I,
976
- B.push({start:H/y,end:D/y,tf:H}),H=D}y=B;z=t(z);for(x=z.next();!x.done;x=z.next())(x=Eu(a,v,x.value,y,u,l))&&("audio"!=x.type||a.g.disableAudio?"video"!=x.type||a.g.disableVideo?x.type!=Jc||a.g.disableText||q.push(x):n.push(x):p.push(x))}m=[];p=t(0<p.length?p:[null]);for(u=p.next();!u.done;u=p.next())for(u=u.value,v=t(0<n.length?n:[null]),x=v.next();!x.done;x=v.next())z=m,y=z.push,x=x.value,A=0,u&&u.bandwidth&&0<u.bandwidth&&(A+=u.bandwidth),x&&x.bandwidth&&0<x.bandwidth&&(A+=x.bandwidth),x={id:a.s++,
977
+ B.push({start:H/y,end:D/y,rf:H}),H=D}y=B;z=t(z);for(x=z.next();!x.done;x=z.next())(x=Eu(a,v,x.value,y,u,l))&&("audio"!=x.type||a.g.disableAudio?"video"!=x.type||a.g.disableVideo?x.type!=Jc||a.g.disableText||q.push(x):n.push(x):p.push(x))}m=[];p=t(0<p.length?p:[null]);for(u=p.next();!u.done;u=p.next())for(u=u.value,v=t(0<n.length?n:[null]),x=v.next();!x.done;x=v.next())z=m,y=z.push,x=x.value,A=0,u&&u.bandwidth&&0<u.bandwidth&&(A+=u.bandwidth),x&&x.bandwidth&&0<x.bandwidth&&(A+=x.bandwidth),x={id:a.s++,
977
978
  language:u?u.language:"und",disabledUntilTime:0,primary:!!u&&u.primary||!!x&&x.primary,audio:u,video:x,bandwidth:A,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},y.call(z,x);l.variants=m;l.textStreams=q;a.j?(a.j.variants=l.variants,a.j.textStreams=l.textStreams,a.h.filter(a.j)):(a.j={presentationTimeline:a.i,variants:l.variants,textStreams:l.textStreams,imageStreams:[],offlineSessionIds:[],minBufferTime:0,sequenceMode:a.g.mss.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,
978
979
  type:"MSS",serviceDescription:null},a.i.Id());Promise.resolve();g=Date.now();h=(g-d)/1E3;a.A.sample(1,h);F(k)})}
979
980
  function Eu(a,b,c,d,e,f){var g=b.getAttribute("Type");if("audio"!==g&&"video"!==g&&"text"!==g)return Ua("Ignoring unrecognized type:",g),null;var h=b.getAttribute("Language"),k=a.s++,l=sg(c,"Bitrate",xg),m=sg(c,"MaxWidth",xg),n=sg(c,"MaxHeight",xg),q=sg(c,"Channels",xg),p=sg(c,"SamplingRate",xg),u=f.duration;d.length&&(u=d[d.length-1].end-d[0].start);var v=a.i.getDuration();a.i.Na(Math.min(u,v));var y={id:k,originalId:b.getAttribute("Name")||String(k),groupId:null,createSegmentIndex:function(){return Promise.resolve()},
@@ -984,10 +985,10 @@ if(a.m.has(y.id))var z=a.m.get(y.id);else z=[],"video"==y.type&&(z=y.mssPrivateD
984
985
  function(){y.segmentIndex&&(y.segmentIndex.release(),y.segmentIndex=null)};return y}
985
986
  function Hu(a,b,c,d){if(a=a.getAttribute("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|
986
987
  b<<3;b=new Uint16Array(1);b[0]=(c[0]<<8)+c[1];return b[0].toString(16)}function Iu(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 Ju(a){var b=/00000001[0-9]7/.exec(a);return b.length&&a?"avc1."+a.substr(a.indexOf(b[0])+10,6):""}
987
- function Ku(a,b,c,d,e){var f=d.getAttribute("Url").replace("{bitrate}",String(c.bandwidth));d=[];var g={};e=t(e);for(var h=e.next();!h.done;g={yc:g.yc},h=e.next())g.yc=h.value,d.push(new R(g.yc.start,g.yc.end,function(k){return function(){return Ec(a.l,[f.replace("{start time}",String(k.yc.tf))])}}(g),0,null,b,0,0,c.mssPrivateData.duration));return d}N("shaka.mss.MssParser",Bu);var Gu="AAC AACL AACH AACP AVC1 H264 TTML DFXP".split(" "),Fu={CAPT:"main",SUBT:"alternate",DESC:"main"};
988
- wh["application/vnd.ms-sstr+xml"]=function(){return new Bu};function Lu(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"]};e=null;try{e=If(b)}catch(g){}throw new P(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function Mu(){}function Nu(a,b,c,d,e){var f=new Ou;Bf(b.headers).forEach(function(l,m){f.append(m,l)});var g=new Pu,h={yf:!1,jg:!1};a=Qu(a,c,{body:b.body||void 0,headers:f,method:b.method,signal:g.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},h,d,e,b.streamDataCallback);a=new We(a,function(){h.yf=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new qd(function(){h.jg=!0;g.abort()});k.U(b/1E3);a.finally(function(){k.stop()})}return a}
988
+ function Ku(a,b,c,d,e){var f=d.getAttribute("Url").replace("{bitrate}",String(c.bandwidth));d=[];var g={};e=t(e);for(var h=e.next();!h.done;g={yc:g.yc},h=e.next())g.yc=h.value,d.push(new R(g.yc.start,g.yc.end,function(k){return function(){return Ec(a.l,[f.replace("{start time}",String(k.yc.rf))])}}(g),0,null,b,0,0,c.mssPrivateData.duration));return d}N("shaka.mss.MssParser",Bu);var Gu="AAC AACL AACH AACP AVC1 H264 TTML DFXP".split(" "),Fu={CAPT:"main",SUBT:"alternate",DESC:"main"};
989
+ wh["application/vnd.ms-sstr+xml"]=function(){return new Bu};function Lu(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"]};e=null;try{e=If(b)}catch(g){}throw new P(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function Mu(){}function Nu(a,b,c,d,e){var f=new Ou;Bf(b.headers).forEach(function(l,m){f.append(m,l)});var g=new Pu,h={xf:!1,ig:!1};a=Qu(a,c,{body:b.body||void 0,headers:f,method:b.method,signal:g.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},h,d,e,b.streamDataCallback);a=new We(a,function(){h.xf=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new qd(function(){h.ig=!0;g.abort()});k.U(b/1E3);a.finally(function(){k.stop()})}return a}
989
990
  function Qu(a,b,c,d,e,f,g){var h,k,l,m,n,q,p,u,v,y,z,x,A;return K(function(B){switch(B.g){case 1:return h=Ru,k=Su,q=n=0,p=Date.now(),ta(B,2),C(B,h(a,c),4);case 4:l=B.h;f(Tu(l.headers));if("HEAD"==c.method){B.B(5);break}u=l.clone().body.getReader();y=(v=l.headers.get("Content-Length"))?parseInt(v,10):0;z=function(D){function E(){var J,G;return K(function(H){switch(H.g){case 1:return ta(H,2),C(H,u.read(),4);case 4:J=H.h;va(H,3);break;case 2:return wa(H),H.return();case 3:if(J.done){H.B(5);break}n+=
990
- J.value.byteLength;if(!g){H.B(5);break}return C(H,g(J.value),5);case 5:G=Date.now();if(100<G-p||J.done)e(G-p,n-q,y-n),q=n,p=G;J.done?D.close():(D.enqueue(J.value),E());F(H)}})}E()};new k({start:z});return C(B,l.arrayBuffer(),6);case 6:m=B.h;case 5:va(B,3);break;case 2:x=wa(B);if(d.yf)throw new P(1,1,7001,a,b);if(d.jg)throw new P(1,1,1003,a,b);throw new P(1,1,1002,a,x,b);case 3:return A=Tu(l.headers),B.return(Lu(A,m,l.status,a,l.url,b))}})}
991
+ J.value.byteLength;if(!g){H.B(5);break}return C(H,g(J.value),5);case 5:G=Date.now();if(100<G-p||J.done)e(G-p,n-q,y-n),q=n,p=G;J.done?D.close():(D.enqueue(J.value),E());F(H)}})}E()};new k({start:z});return C(B,l.arrayBuffer(),6);case 6:m=B.h;case 5:va(B,3);break;case 2:x=wa(B);if(d.xf)throw new P(1,1,7001,a,b);if(d.ig)throw new P(1,1,1003,a,b);throw new P(1,1,1002,a,x,b);case 3:return A=Tu(l.headers),B.return(Lu(A,m,l.status,a,l.url,b))}})}
991
992
  function Tu(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}function Uu(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;if(window.Response){if(!(new Response("")).body)return!1}else return!1;return!(!window.fetch||!window.AbortController)}N("shaka.net.HttpFetchPlugin",Mu);Mu.isSupported=Uu;Mu.parse=Nu;var Ru=window.fetch,Pu=window.AbortController,Su=window.ReadableStream,Ou=window.Headers;
992
993
  Uu()&&(lf("http",Nu,2,!0),lf("https",Nu,2,!0),lf("blob",Nu,2,!0));function Vu(){}
993
994
  function Wu(a,b,c,d,e){var f=new Xu,g=Date.now(),h=0,k=new Promise(function(l,m){f.open(b.method,a,!0);f.responseType="arraybuffer";f.timeout=b.retryParameters.timeout;f.withCredentials=b.allowCrossSiteCredentials;f.onabort=function(){m(new P(1,1,7001,a,c))};var n=!1;f.onreadystatechange=function(){if(2==f.readyState&&!n){var p=Yu(f);e(p);n=!0}};f.onload=function(){var p=Yu(f),u=f.response;try{var v=Lu(p,u,f.status,a,f.responseURL,c);l(v)}catch(y){m(y)}};f.onerror=function(p){m(new P(1,1,1002,a,p,
@@ -995,9 +996,9 @@ c))};f.ontimeout=function(){m(new P(1,1,1003,a,c))};f.onprogress=function(p){var
995
996
  function Yu(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}N("shaka.net.HttpXHRPlugin",Vu);Vu.parse=Wu;var Xu=window.XMLHttpRequest;lf("http",Wu,1,!0);lf("https",Wu,1,!0);lf("blob",Wu,1,!0);function Zu(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function $u(a){return a.Y().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.Oa+":"+a.ua}function av(a,b){return ak(a.g.Y(),a.g.Oa,a.g.ua,b.streaming.retryParameters)};function bv(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function cv(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}bv.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 dv(a){var b=this;this.o=a;this.j=new Map;this.i=new wf(function(){return ev(b).catch(function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new bv}dv.prototype.destroy=function(){return this.i.destroy()};function fv(a,b,c){a.m=b;a.l=c}function ev(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
996
997
  function gv(a,b,c,d,e,f){xf(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,q,p;return K(function(u){if(1==u.g)return C(u,hv(a,c),2);h=u.h;if(a.i.g)throw new P(2,9,7001);if(e)for(m in k=sb(h),l=new hg(k),l.data)n=Number(m),q=l.data[n],p=l.g[n],a.l(q,p);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 iv(a){return K(function(b){return 1==b.g?C(b,Promise.all(a.j.values()),2):b.return(a.g.h)})}
997
998
  function hv(a,b){var c,d,e,f;return K(function(g){if(1==g.g)return c=uf,d=a.o.request(c,b),e=function(){return d.abort()},a.h.push(e),C(g,d.promise,2);f=g.h;Fb(a.h,e);return g.return(f.data)})};function jv(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new Ve;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}jv.prototype.abort=function(){var a=this;return K(function(b){if(1==b.g){try{a.i.abort()}catch(c){}ta(b,2);return C(b,a.g,4)}if(2!=b.g)return va(b,0);wa(b);F(b)})};
998
- function kv(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return K(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return C(g,b(f.key,f.value,f),2)}f.continue();F(g)})}})}jv.prototype.store=function(){return this.h};jv.prototype.promise=function(){return this.g};function lv(a){this.h=a;this.g=[]}lv.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function mv(a,b){return nv(a,b,"readwrite")}function nv(a,b,c){c=a.h.transaction([b],c);var d=new jv(c,b);a.g.push(d);d.promise().then(function(){Fb(a.g,d)},function(){Fb(a.g,d)});return d};function ov(a,b,c){this.h=new lv(a);this.i=b;this.g=c}r=ov.prototype;r.destroy=function(){return this.h.destroy()};r.hasFixedKeySpace=function(){return!0};r.addSegments=function(){return pv(this.i)};r.removeSegments=function(a,b){return qv(this,this.i,a,b)};r.getSegments=function(a){var b=this,c;return K(function(d){if(1==d.g)return C(d,rv(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.Af(e)}))})};r.addManifests=function(){return pv(this.g)};
999
+ function kv(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return K(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return C(g,b(f.key,f.value,f),2)}f.continue();F(g)})}})}jv.prototype.store=function(){return this.h};jv.prototype.promise=function(){return this.g};function lv(a){this.h=a;this.g=[]}lv.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function mv(a,b){return nv(a,b,"readwrite")}function nv(a,b,c){c=a.h.transaction([b],c);var d=new jv(c,b);a.g.push(d);d.promise().then(function(){Fb(a.g,d)},function(){Fb(a.g,d)});return d};function ov(a,b,c){this.h=new lv(a);this.i=b;this.g=c}r=ov.prototype;r.destroy=function(){return this.h.destroy()};r.hasFixedKeySpace=function(){return!0};r.addSegments=function(){return pv(this.i)};r.removeSegments=function(a,b){return qv(this,this.i,a,b)};r.getSegments=function(a){var b=this,c;return K(function(d){if(1==d.g)return C(d,rv(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.zf(e)}))})};r.addManifests=function(){return pv(this.g)};
999
1000
  r.updateManifest=function(){return Promise.reject(new P(2,9,9016,"Cannot modify values in "+this.g))};function sv(a,b,c){a=mv(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}r.updateManifestExpiration=function(a,b){var c=mv(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()};r.removeManifests=function(a,b){return qv(this,this.g,a,b)};
1000
- r.getManifests=function(a){var b=this,c;return K(function(d){if(1==d.g)return C(d,rv(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.Mc(e)})))})};r.getAllManifests=function(){var a=this,b,c;return K(function(d){return 1==d.g?(b=nv(a.h,a.g,"readonly"),c=new Map,C(d,kv(b,function(e,f){var g;return K(function(h){if(1==h.g)return C(h,a.Mc(f),2);g=h.h;c.set(e,g);F(h)})}),2)):3!=d.g?C(d,b.promise(),3):d.return(c)})};r.Af=function(a){return a};r.Mc=function(a){return Promise.resolve(a)};
1001
+ r.getManifests=function(a){var b=this,c;return K(function(d){if(1==d.g)return C(d,rv(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.Mc(e)})))})};r.getAllManifests=function(){var a=this,b,c;return K(function(d){return 1==d.g?(b=nv(a.h,a.g,"readonly"),c=new Map,C(d,kv(b,function(e,f){var g;return K(function(h){if(1==h.g)return C(h,a.Mc(f),2);g=h.h;c.set(e,g);F(h)})}),2)):3!=d.g?C(d,b.promise(),3):d.return(c)})};r.zf=function(a){return a};r.Mc=function(a){return Promise.resolve(a)};
1001
1002
  function pv(a){return Promise.reject(new P(2,9,9011,"Cannot add new value to "+a))}r.add=function(a,b){var c=this,d,e,f,g,h,k,l;return K(function(m){if(1==m.g){d=mv(c.h,a);e=d.store();f=[];g={};h=t(b);for(k=h.next();!k.done;g={kd:g.kd},k=h.next())l=k.value,g.kd=e.add(l),g.kd.onsuccess=function(n){return function(){f.push(n.kd.result)}}(g);return C(m,d.promise(),2)}return m.return(f)})};
1002
1003
  function qv(a,b,c,d){a=mv(a.h,b);b=a.store();var e={};c=t(c);for(var f=c.next();!f.done;e={hd:e.hd},f=c.next())e.hd=f.value,b.delete(e.hd).onsuccess=function(g){return function(){return d(g.hd)}}(e);return a.promise()}
1003
1004
  function rv(a,b,c){var d,e,f,g,h,k,l;return K(function(m){if(1==m.g){d=nv(a.h,b,"readonly");e=d.store();f={};g=[];h={};k=t(c);for(l=k.next();!l.done;h={wc:h.wc,uc:h.uc},l=k.next())h.uc=l.value,h.wc=e.get(h.uc),h.wc.onsuccess=function(n){return function(){void 0==n.wc.result&&g.push(n.uc);f[n.uc]=n.wc.result}}(h);return C(m,d.promise(),2)}if(g.length)throw new P(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(n){return f[n]}))})};function tv(a){this.g=new lv(a)}tv.prototype.destroy=function(){return this.g.destroy()};tv.prototype.getAll=function(){var a=this,b,c;return K(function(d){return 1==d.g?(b=nv(a.g,"session-ids","readonly"),c=[],C(d,kv(b,function(e,f){c.push(f)}),2)):3!=d.g?C(d,b.promise(),3):d.return(c)})};tv.prototype.add=function(a){var b=mv(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()};
@@ -1008,7 +1009,7 @@ function Bv(a){var b,c,d;return K(function(e){return 1==e.g?(b=Array.from(a.g.va
1008
1009
  Dv.prototype.Mc=function(a){var b,c,d,e,f,g;return K(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c)d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime,e=d-a.periods[c].startTime,f=Ev(a.periods[c],e),b.push(f);return C(h,rr(b),2)}g=h.h;return h.return({creationTime:0,originalManifestUri:a.originalManifestUri,duration:a.duration,size:a.size,expiration:null==a.expiration?Infinity:a.expiration,streams:g,sessionIds:a.sessionIds,drmInfo:a.drmInfo,appMetadata:a.appMetadata,sequenceMode:!1})})};
1009
1010
  function Ev(a,b){Fv(a);for(var c=t(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return Gv(e,a.startTime,b)})}
1010
1011
  function Gv(a,b,c){var d=a.initSegmentUri?Hv(a.initSegmentUri):null,e=b+a.presentationTimeOffset,f=b+c;return{id:a.id,originalId:null,groupId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:void 0,hdr:void 0,videoLayout:void 0,kind:a.kind,language:a.language,originalLanguage:a.language||null,label:a.label,width:a.width,height:a.height,initSegmentKey:d,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(g){var h=
1011
- Hv(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,dataKey:h,initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1}}Dv.prototype.Af=function(a){return{data:a.data}};
1012
+ Hv(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,dataKey:h,initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1}}Dv.prototype.zf=function(a){return{data:a.data}};
1012
1013
  function Hv(a){var b;if((b=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(a))||(b=/^offline:segment\/([0-9]+)$/.exec(a)))return Number(b[1]);throw new P(2,9,9004,"Could not parse uri "+a);}
1013
1014
  function Fv(a){var b=a.streams.filter(function(h){return"audio"==h.contentType});a=a.streams.filter(function(h){return"video"==h.contentType});if(!b.every(function(h){return h.variantIds})||!a.every(function(h){return h.variantIds})){for(var c=t(b),d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=t(a);for(d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=0;if(a.length&&!b.length){var e=c++,f=t(a);for(d=f.next();!d.done;d=f.next())d.value.variantIds.push(e)}if(!a.length&&b.length)for(e=c++,
1014
1015
  f=t(b),d=f.next();!d.done;d=f.next())d.value.variantIds.push(e);if(a.length&&b.length)for(b=t(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=t(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function Iv(){ov.apply(this,arguments)}pa(Iv,ov);
@@ -1041,7 +1042,7 @@ function cw(a){var b=[],c=le(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.n
1041
1042
  case 4:b.h=null,b.g=null,F(k)}})})}function jw(){if(rd())a:{var a=t(vv.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}r=iw.prototype;r.destroy=function(){return this.l.destroy()};r.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=wl(a,b));return Il(this.h,a)};r.getConfiguration=function(){var a=Gl();Il(a,this.h,Gl());return a};r.Kb=function(){return this.g};
1042
1043
  r.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new dv(this.g);this.j.push(f);b=kw(this,a,b||{},function(){var g;return K(function(h){if(1==h.g)return c?h.B(2):C(h,Gk(a,d.g,e.manifest.retryParameters),3);2!=h.g&&(c=h.h);g=vh(a,c||null);return h.return(g())})},e,f);b=new We(b,function(){return ev(f)});b.finally(function(){Fb(d.j,f)});return lw(this,b)};
1043
1044
  function kw(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,u,v,y,z,x,A;return K(function(B){switch(B.g){case 1:return mw(),h=g=null,k=new uv,n=m=l=null,ta(B,2,3),C(B,d(),5);case 5:return g=B.h,C(B,nw(a,b,g,e),6);case 6:q=B.h;ow(a);p=!q.presentationTimeline.P()&&!q.presentationTimeline.Nb();if(!p)throw new P(2,9,9005,b);return C(B,pw(a,q,function(D){n=n||D},e),7);case 7:h=B.h;ow(a);if(n)throw n;return C(B,qw(q,h,e),8);case 8:return C(B,k.init(),9);case 9:return ow(a),C(B,wv(k),10);case 10:return l=B.h,ow(a),u=rw(h,
1044
- q,b,c,e,f),v=u.ph,y=u.nf,C(B,l.ta.addManifests([v]),11);case 11:z=B.h;ow(a);m=z[0];ow(a);if(n)throw n;return C(B,sw(a,y,m,v,f,e,l.ta,q,h),12);case 12:return ow(a),tw(q,v,h,e),C(B,l.ta.updateManifest(m,v),13);case 13:return ow(a),x=new Nv("manifest",l.path.Ua,l.path.ta,m),B.return(dw(x,v));case 3:return xa(B),C(B,k.destroy(),14);case 14:if(!g){B.B(15);break}return C(B,g.stop(),15);case 15:if(!h){B.B(17);break}return C(B,h.destroy(),17);case 17:ya(B,0);break;case 2:A=wa(B);if(null==m){B.B(19);break}return C(B,
1045
+ q,b,c,e,f),v=u.oh,y=u.mf,C(B,l.ta.addManifests([v]),11);case 11:z=B.h;ow(a);m=z[0];ow(a);if(n)throw n;return C(B,sw(a,y,m,v,f,e,l.ta,q,h),12);case 12:return ow(a),tw(q,v,h,e),C(B,l.ta.updateManifest(m,v),13);case 13:return ow(a),x=new Nv("manifest",l.path.Ua,l.path.ta,m),B.return(dw(x,v));case 3:return xa(B),C(B,k.destroy(),14);case 14:if(!g){B.B(15);break}return C(B,g.stop(),15);case 15:if(!h){B.B(17);break}return C(B,h.destroy(),17);case 17:ya(B,0);break;case 2:A=wa(B);if(null==m){B.B(19);break}return C(B,
1045
1046
  uw(m),19);case 19:throw n||A;}})}
1046
1047
  function sw(a,b,c,d,e,f,g,h,k){var l,m,n,q,p,u,v,y,z,x;return K(function(A){switch(A.g){case 1:l={};m=0;n=function(B,D){var E,J,G,H,I,L,M;return K(function(O){if(1==O.g){E={};J=t(B);for(G=J.next();!G.done;E={Eb:E.Eb},G=J.next())E.Eb=G.value,H=av(E.Eb,f),I=E.Eb.i,L=E.Eb.h,M=function(S){return function(da){var W,ea,Ca;return K(function(Sa){if(1==Sa.g)return C(Sa,g.addSegments([{data:da}]),2);W=Sa.h;ow(a);ea=S.Eb.g;Ca=$u(ea);l[Ca]=W[0];m+=da.byteLength;F(Sa)})}}(E),gv(e,E.Eb.groupId,H,I,L,M);return C(O,
1047
1048
  iv(e),2)}if(!D)return O.B(0);ow(a);tw(h,d,k,f);return C(O,g.updateManifest(c,d),0)})};q=!1;ta(A,2);if(!vw(h)||!q||ww(h)){A.B(4);break}return C(A,n(b.filter(function(B){return B.h}),!0),5);case 5:return ow(a),b=b.filter(function(B){return!B.h}),p=l,u=m,l={},m=0,C(A,xw(g,c,d,p,u,function(){return ow(a)}),6);case 6:ow(a);case 4:if(q){A.B(7);break}return C(A,n(b,!1),8);case 8:return ow(a),v=l,y=m,l={},m=0,C(A,xw(g,c,d,v,y,function(){return ow(a)}),9);case 9:ow(a);case 7:va(A,0);break;case 2:return z=
@@ -1051,17 +1052,17 @@ function xw(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,u,v,y;return K(function(z){switch(z
1051
1052
  function qw(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v,y,z,x,A,B,D,E,J,G,H,I,L,M,O,S;return K(function(da){switch(da.g){case 1:return d={width:Infinity,height:Infinity},Ld(a,c.restrictions,d),C(da,Pd(b,a,c.offline.usePersistentLicense),2);case 2:e=[];f=c.preferredDecodingAttributes;g=c.preferredVideoCodecs;h=c.preferredAudioCodecs;Jd(a,g,h,f);k=t(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,e.push(ce(m));n=t(a.textStreams);for(q=n.next();!q.done;q=n.next())p=q.value,e.push(de(p));u=t(a.imageStreams);
1052
1053
  for(v=u.next();!v.done;v=u.next())y=v.value,e.push(ee(y));return C(da,c.offline.trackSelectionCallback(e),3);case 3:z=da.h;x=a.presentationTimeline.getDuration();A=0;B=t(z);for(D=B.next();!D.done;D=B.next())E=D.value,J=E.bandwidth*x/8,A+=J;ta(da,4);return C(da,c.offline.downloadSizeCallback(A),6);case 6:G=da.h;if(!G)throw new P(2,9,9014);va(da,5);break;case 4:H=wa(da);if(H instanceof P)throw H;throw new P(2,9,9015);case 5:I=new Set;L=new Set;M=new Set;O=t(z);for(D=O.next();!D.done;D=O.next())S=D.value,
1053
1054
  "variant"==S.type&&I.add(S.id),"text"==S.type&&L.add(S.id),"image"==S.type&&M.add(S.id);a.variants=a.variants.filter(function(W){return I.has(W.id)});a.textStreams=a.textStreams.filter(function(W){return L.has(W.id)});a.imageStreams=a.imageStreams.filter(function(W){return M.has(W.id)});yw(a);F(da)}})}
1054
- function rw(a,b,c,d,e,f){var g=bw(c,b,d),h=e.offline.progressCallback;fv(f,function(p,u){g.size=u;h(g,p)},function(p,u){k&&e.offline.usePersistentLicense&&l==u&&Vg(a,"cenc",p)});var k=vw(b)&&!ww(b),l=null;k&&(l=zw.get(a.g.keySystem));for(var m=new ew,n=t(b.textStreams),q=n.next();!q.done;q=n.next())m.g[q.value.id]=52;n=t(b.imageStreams);for(q=n.next();!q.done;q=n.next())gw(m,q.value);q=t(b.variants);for(n=q.next();!n.done;n=q.next())fw(m,n.value);m=Aw(f,m,b,e);f=m.streams;m=m.nf;q=a.g;n=e.offline.usePersistentLicense;
1055
- q&&n&&(q.initData=[]);return{ph:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Pc(),streams:f,sessionIds:n?eh(a):[],drmInfo:q,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode,type:b.type},nf:m}}function vw(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
1055
+ function rw(a,b,c,d,e,f){var g=bw(c,b,d),h=e.offline.progressCallback;fv(f,function(p,u){g.size=u;h(g,p)},function(p,u){k&&e.offline.usePersistentLicense&&l==u&&Vg(a,"cenc",p)});var k=vw(b)&&!ww(b),l=null;k&&(l=zw.get(a.g.keySystem));for(var m=new ew,n=t(b.textStreams),q=n.next();!q.done;q=n.next())m.g[q.value.id]=52;n=t(b.imageStreams);for(q=n.next();!q.done;q=n.next())gw(m,q.value);q=t(b.variants);for(n=q.next();!n.done;n=q.next())fw(m,n.value);m=Aw(f,m,b,e);f=m.streams;m=m.mf;q=a.g;n=e.offline.usePersistentLicense;
1056
+ q&&n&&(q.initData=[]);return{oh:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Pc(),streams:f,sessionIds:n?eh(a):[],drmInfo:q,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode,type:b.type},mf:m}}function vw(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
1056
1057
  function ww(a){return a.variants.some(function(b){return(b.video?b.video.drmInfos:[]).concat(b.audio?b.audio.drmInfos:[]).some(function(c){return c.initData&&c.initData.length})})}function tw(a,b,c,d){b.expiration=c.Pc();c=eh(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(vw(a)&&d.offline.usePersistentLicense&&!c.length)throw new P(2,9,9007);}r.remove=function(a){return Bw(this,Cw(this,a))};
1057
1058
  function Cw(a,b){var c,d,e,f,g,h;return K(function(k){switch(k.g){case 1:mw();c=Ov(b);if(null==c||"manifest"!=c.g)throw new P(2,9,9004,b);d=c;e=new uv;ua(k,2);return C(k,e.init(),4);case 4:return C(k,yv(e,d.Ua(),d.ta()),5);case 5:return f=k.h,C(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],C(k,Promise.all([Dw(a,h,e),Ew(f,d,h)]),2);case 2:return xa(k),C(k,e.destroy(),8);case 8:ya(k,0)}})}
1058
1059
  function Fw(a,b){for(var c=[],d=t(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:Mc(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:Mc(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function Dw(a,b,c){return K(function(d){return C(d,Gw(a.g,a.h.drm,c,b),0)})}
1059
- function Ew(a,b,c){function d(){}var e=Hw(c);dw(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}r.Dh=function(){return Bw(this,Iw(this))};
1060
+ function Ew(a,b,c){function d(){}var e=Hw(c);dw(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}r.Ch=function(){return Bw(this,Iw(this))};
1060
1061
  function Iw(a){var b,c,d,e,f,g,h,k,l,m;return K(function(n){switch(n.g){case 1:return mw(),b=a.g,c=a.h.drm,d=new uv,e=!1,ua(n,2),C(n,d.init(),4);case 4:f=[],zv(d,function(q){return f.push(q)}),g=t(f),h=g.next();case 5:if(h.done){n.B(2);break}k=h.value;return C(n,k.getAll(),8);case 8:return l=n.h,C(n,Zv(c,b,l),9);case 9:return m=n.h,C(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.B(5);break;case 2:return xa(n),C(n,d.destroy(),11);case 11:ya(n,3);break;case 3:return n.return(!e)}})}
1061
1062
  r.list=function(){return Bw(this,Jw())};function Jw(){var a,b,c;return K(function(d){switch(d.g){case 1:return mw(),a=[],b=new uv,ua(d,2),C(d,b.init(),4);case 4:return c=Promise.resolve(),xv(b,function(e,f){c=c.then(function(){var g;return K(function(h){if(1==h.g)return C(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){k=dw(new Nv("manifest",e.Ua,e.ta,l),k);a.push(k)});F(h)})})}),C(d,c,2);case 2:return xa(d),C(d,b.destroy(),6);case 6:ya(d,3);break;case 3:return d.return(a)}})}
1062
1063
  function nw(a,b,c,d){var e,f,g,h,k;return K(function(l){if(1==l.g)return e=null,f=a.g,g={networkingEngine:f,filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(m){e=m},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){},updateDuration:function(){},newDrmInfo:function(){},onManifestUpdated:function(){},getBandwidthEstimate:function(){return d.abr.defaultBandwidthEstimate}},
1063
1064
  c.configure(d.manifest),ow(a),C(l,c.start(b,g),2);if(3!=l.g)return h=l.h,ow(a),k=Kw(h),C(l,Promise.all(yf(k,function(m){return m.createSegmentIndex()})),3);ow(a);if(e)throw e;return l.return(h)})}function pw(a,b,c,d){var e;return K(function(f){return 1==f.g?(e=new Fg({Pb:a.g,onError:c,Pd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),C(f,Kg(e,b.variants,d.offline.usePersistentLicense),2)):3!=f.g?C(f,Xg(e),3):f.return(e)})}
1064
- function Aw(a,b,c,d){var e=new Map,f=Kw(c),g=new Map;f=t(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=Lw(a,b,c,h,d,e);g.set(h.id,k)}a=t(c.variants);for(b=a.next();!b.done;b=a.next())b=b.value,b.audio&&g.get(b.audio.id).variantIds.push(b.id),b.video&&g.get(b.video.id).variantIds.push(b.id);return{streams:Array.from(g.values()),nf:Array.from(e.values())}}
1065
+ function Aw(a,b,c,d){var e=new Map,f=Kw(c),g=new Map;f=t(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=Lw(a,b,c,h,d,e);g.set(h.id,k)}a=t(c.variants);for(b=a.next();!b.done;b=a.next())b=b.value,b.audio&&g.get(b.audio.id).variantIds.push(b.id),b.video&&g.get(b.video.id).variantIds.push(b.id);return{streams:Array.from(g.values()),mf:Array.from(e.values())}}
1065
1066
  function Lw(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,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,audioSamplingRate:d.audioSamplingRate,
1066
1067
  spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,tilesLayout:d.tilesLayout,external:d.external,fastSwitching:d.fastSwitching},h=e.offline.numberOfParallelDownloads,k=0;Mw(d,c.presentationTimeline.bb(),function(l){var m=$u(l),n=void 0;if(!f.has(m)){var q=l.endTime-l.startTime;q=hw(b,d.id)*q;q=cv(a.g,q);f.set(m,new Zu(l,q,k,!1))}l.h&&(n=$u(l.h),f.has(n)||(q=.5*hw(b,d.id),q=cv(a.g,q),f.set(n,new Zu(l.h,q,k,!0))));g.segments.push({pendingInitSegmentRefId:n,initSegmentKey:n?0:null,startTime:l.startTime,
1067
1068
  endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,timestampOffset:l.timestampOffset,tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0});k=(k+1)%h});return g}function Mw(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 ow(a){if(a.l.g)throw new P(2,9,7001);}function mw(){if(!jw())throw new P(2,9,9E3);}
@@ -1069,9 +1070,9 @@ function Bw(a,b){return K(function(c){if(1==c.g)return a.i.push(b),ua(c,2),C(c,b
1069
1070
  function Gw(a,b,c,d){var e,f,g;return K(function(h){if(1==h.g){if(!d.drmInfo)return h.return();e=Av(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:Fw(d,!1),videoCapabilities:Fw(d,!0)}});return C(h,Zv(b,a,f),2)}return 3!=h.g?(g=h.h,C(h,e.remove(g),3)):C(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
1070
1071
  function Kw(a){for(var b=new Set,c=t(a.textStreams),d=c.next();!d.done;d=c.next())b.add(d.value);c=t(a.imageStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=t(a.variants);for(c=a.next();!c.done;c=a.next())c=c.value,c.audio&&b.add(c.audio),c.video&&b.add(c.video);return b}
1071
1072
  function yw(a){a.variants.map(function(f){return f.video});var b=new Set(a.variants.map(function(f){return f.audio}));a=a.textStreams;for(var c=t(b),d=c.next();!d.done;d=c.next()){d=t(b);for(var e=d.next();!e.done;e=d.next());}b=t(a);for(c=b.next();!c.done;c=b.next())for(c=t(a),d=c.next();!d.done;d=c.next());}N("shaka.offline.Storage",iw);iw.deleteAll=function(){var a;return K(function(b){return 1==b.g?(a=new uv,ua(b,2),C(b,Bv(a),2)):5!=b.g?(xa(b),C(b,a.destroy(),5)):ya(b,0)})};
1072
- iw.prototype.list=iw.prototype.list;iw.prototype.removeEmeSessions=iw.prototype.Dh;iw.prototype.remove=iw.prototype.remove;iw.prototype.store=iw.prototype.store;iw.prototype.getNetworkingEngine=iw.prototype.Kb;iw.prototype.getConfiguration=iw.prototype.getConfiguration;iw.prototype.configure=iw.prototype.configure;iw.prototype.destroy=iw.prototype.destroy;iw.support=jw;
1073
+ iw.prototype.list=iw.prototype.list;iw.prototype.removeEmeSessions=iw.prototype.Ch;iw.prototype.remove=iw.prototype.remove;iw.prototype.store=iw.prototype.store;iw.prototype.getNetworkingEngine=iw.prototype.Kb;iw.prototype.getConfiguration=iw.prototype.getConfiguration;iw.prototype.configure=iw.prototype.configure;iw.prototype.destroy=iw.prototype.destroy;iw.support=jw;
1073
1074
  var zw=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb");
1074
- pn.offline=jw;function Nw(){}function Ow(a,b){a={priority:b||0,ug:a};for(b=0;b<Pw.length;b++)if(Pw[b].priority<a.priority){Pw.splice(b,0,a);return}Pw.push(a)}N("shaka.polyfill",Nw);Nw.register=Ow;Nw.installAll=function(){for(var a=t(Pw),b=a.next();!b.done;b=a.next()){b=b.value;try{b.ug()}catch(c){Ua("Error installing polyfill!",c)}}};var Pw=[];function Qw(){this.g=new Rw}function Sw(){window.AbortController||(window.AbortController=Qw,window.AbortSignal=Rw)}Qw.prototype.abort=function(a){var b=this.g;if(!b.h){b.h=!0;b.g=a;void 0===b.g&&(b.g=new DOMException("signal is aborted without reason","AbortError"));a=new Q("abort");if(b.onabort)b.onabort(a);b.dispatchEvent(a)}};fa.Object.defineProperties(Qw.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}});Nw.AbortController=Qw;Qw.install=Sw;
1075
+ pn.offline=jw;function Nw(){}function Ow(a,b){a={priority:b||0,tg:a};for(b=0;b<Pw.length;b++)if(Pw[b].priority<a.priority){Pw.splice(b,0,a);return}Pw.push(a)}N("shaka.polyfill",Nw);Nw.register=Ow;Nw.installAll=function(){for(var a=t(Pw),b=a.next();!b.done;b=a.next()){b=b.value;try{b.tg()}catch(c){Ua("Error installing polyfill!",c)}}};var Pw=[];function Qw(){this.g=new Rw}function Sw(){window.AbortController||(window.AbortController=Qw,window.AbortSignal=Rw)}Qw.prototype.abort=function(a){var b=this.g;if(!b.h){b.h=!0;b.g=a;void 0===b.g&&(b.g=new DOMException("signal is aborted without reason","AbortError"));a=new Q("abort");if(b.onabort)b.onabort(a);b.dispatchEvent(a)}};fa.Object.defineProperties(Qw.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}});Nw.AbortController=Qw;Qw.install=Sw;
1075
1076
  function Rw(){ef.call(this);this.h=!1;this.g=void 0;this.onabort=null}pa(Rw,ef);fa.Object.defineProperties(Rw.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.h}},reason:{configurable:!0,enumerable:!0,get:function(){return this.g}}});Ow(Sw);function Tw(){}function Uw(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=t(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())Vw(b.value)}function Vw(a){var b="aria-"+a.toLowerCase().replace(/^aria/,"");Object.defineProperty(Element.prototype,a,{get:function(){return this.getAttribute(b)},set:function(c){null==c||void 0==c?this.removeAttribute(b):this.setAttribute(b,c)}})}Nw.Aria=Tw;Tw.install=Uw;Ow(Uw);function Ww(){}function Xw(){Yw()}Nw.EncryptionScheme=Ww;Ww.install=Xw;Ow(Xw,-2);function Zw(){}
1076
1077
  function $w(){if(window.Document){var a=Element.prototype;a.requestFullscreen=a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||a.webkitRequestFullscreen;a=Document.prototype;a.exitFullscreen=a.exitFullscreen||a.mozCancelFullScreen||a.msExitFullscreen||a.webkitCancelFullScreen;"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement}}),
1077
1078
  Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",ax);document.addEventListener("webkitfullscreenerror",ax);document.addEventListener("mozfullscreenchange",ax);document.addEventListener("mozfullscreenerror",ax);document.addEventListener("MSFullscreenChange",ax);document.addEventListener("MSFullscreenError",ax)}}
@@ -1164,8 +1165,8 @@ b||"end"==b?"line-right":"center"==b||"middle"==b?"center":Kb);else if(d=/^regio
1164
1165
  function oz(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}function gz(a){a=Cs(a,kz);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}
1165
1166
  function lz(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&nbsp;":"\u00a0","&lrm;":"\u200e","&rlm;":"\u200f"},c=/&(?:amp|lt|gt|quot|#(0+)?39|nbsp|lrm|rlm);/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return b[e]||"'"}):a||""}N("shaka.text.VttTextParser",fz);fz.prototype.parseMedia=fz.prototype.parseMedia;fz.prototype.setManifestType=fz.prototype.setManifestType;fz.prototype.setSequenceMode=fz.prototype.setSequenceMode;fz.prototype.parseInit=fz.prototype.parseInit;
1166
1167
  var kz=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;Xc["text/vtt"]=function(){return new fz};Xc['text/vtt; codecs="vtt"']=function(){return new fz};Xc['text/vtt; codecs="wvtt"']=function(){return new fz};function pz(){this.g=null}pz.prototype.parseInit=function(a){var b=this,c=!1;(new Qf).box("moov",Vf).box("trak",Vf).box("mdia",Vf).O("mdhd",function(d){d=Th(d.reader,d.version);b.g=d.timescale}).box("minf",Vf).box("stbl",Vf).O("stsd",Xf).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new P(2,2,2008);if(!c)throw new P(2,2,2008);};pz.prototype.setSequenceMode=function(){};pz.prototype.setManifestType=function(){};
1167
- pz.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new P(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Qf).box("moof",Vf).box("traf",Vf).O("tfdt",function(A){g=!0;c=Sh(A.reader,A.version).baseMediaDecodeTime}).O("tfhd",function(A){l=Rh(A.reader,A.flags).Df}).O("trun",function(A){h=!0;d=Uh(A.reader,A.version,A.flags).Zf}).box("mdat",$f(function(A){k=!0;e=A})).parse(a,!1);if(!k&&!g&&!h)throw new P(2,2,2008);a=c;for(var m=new Nf(e,0),n=t(d),q=n.next();!q.done;q=n.next()){q=
1168
- q.value;var p=q.bf||l,u=q.Rd?c+q.Rd:a;a=u+(p||0);var v=0;do{var y=m.L();v+=y;var z=m.L(),x=null;"vttc"==Uf(z)?8<y&&(x=m.pb(y-8)):m.skip(y-8);p&&x&&(y=qz(x,b.periodStart+u/this.g,b.periodStart+a/this.g),f.push(y))}while(q.sampleSize&&v<q.sampleSize)}return f.filter(ed)};function qz(a,b,c){var d,e,f;(new Qf).box("payl",$f(function(g){d=Ff(g)})).box("iden",$f(function(g){e=Ff(g)})).box("sttg",$f(function(g){f=Ff(g)})).parse(a);return d?rz(d,e,f,b,c):null}
1168
+ pz.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new P(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Qf).box("moof",Vf).box("traf",Vf).O("tfdt",function(A){g=!0;c=Sh(A.reader,A.version).baseMediaDecodeTime}).O("tfhd",function(A){l=Rh(A.reader,A.flags).Cf}).O("trun",function(A){h=!0;d=Uh(A.reader,A.version,A.flags).Yf}).box("mdat",$f(function(A){k=!0;e=A})).parse(a,!1);if(!k&&!g&&!h)throw new P(2,2,2008);a=c;for(var m=new Nf(e,0),n=t(d),q=n.next();!q.done;q=n.next()){q=
1169
+ q.value;var p=q.af||l,u=q.Rd?c+q.Rd:a;a=u+(p||0);var v=0;do{var y=m.L();v+=y;var z=m.L(),x=null;"vttc"==Uf(z)?8<y&&(x=m.pb(y-8)):m.skip(y-8);p&&x&&(y=qz(x,b.periodStart+u/this.g,b.periodStart+a/this.g),f.push(y))}while(q.sampleSize&&v<q.sampleSize)}return f.filter(ed)};function qz(a,b,c){var d,e,f;(new Qf).box("payl",$f(function(g){d=Ff(g)})).box("iden",$f(function(g){e=Ff(g)})).box("sttg",$f(function(g){f=Ff(g)})).parse(a);return d?rz(d,e,f,b,c):null}
1169
1170
  function rz(a,b,c,d,e){d=new Ib(d,e,"");jz(a,d,new Map);b&&(d.id=b);if(c)for(a=new As(c),b=Ds(a);b;)iz(d,b,[]),Bs(a),b=Ds(a);return d}N("shaka.text.Mp4VttParser",pz);pz.prototype.parseMedia=pz.prototype.parseMedia;pz.prototype.setManifestType=pz.prototype.setManifestType;pz.prototype.setSequenceMode=pz.prototype.setSequenceMode;pz.prototype.parseInit=pz.prototype.parseInit;Xc['application/mp4; codecs="wvtt"']=function(){return new pz};function sz(){}sz.prototype.parseInit=function(){};sz.prototype.setSequenceMode=function(){};sz.prototype.setManifestType=function(){};sz.prototype.parseMedia=function(a){var b=Ff(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 As(c[0]),e=tz(d),f=Cs(d,/,/g);d=tz(d);if(null==e||null==f||null==d)throw new P(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new Ib(e,d,c.slice(1).join("\n").trim()))}return a};
1170
1171
  function tz(a){a=Cs(a,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}N("shaka.text.SbvTextParser",sz);sz.prototype.parseMedia=sz.prototype.parseMedia;sz.prototype.setManifestType=sz.prototype.setManifestType;sz.prototype.setSequenceMode=sz.prototype.setSequenceMode;sz.prototype.parseInit=sz.prototype.parseInit;Xc["text/x-subviewer"]=function(){return new sz};function uz(){this.g=new fz}uz.prototype.parseInit=function(){};uz.prototype.setSequenceMode=function(){};uz.prototype.setManifestType=function(){};uz.prototype.parseMedia=function(a,b,c){a=Ff(a);a=vz(a);a=sb(Jf(a));return this.g.parseMedia(a,b,c)};
1171
1172
  function vz(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}N("shaka.text.SrtTextParser",uz);uz.srt2webvtt=vz;uz.prototype.parseMedia=uz.prototype.parseMedia;
@@ -1193,18 +1194,18 @@ Nz.prototype.getOriginalMimeType=Nz.prototype.getOriginalMimeType;Nz.prototype.c
1193
1194
  (k=T(c),l=T(c),m=T(c),n=T(c));e=d=1;if(U(c)&&U(c)){var q=fi(c),p=[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<q&&16>=q?(d=p[q-1],e=u[q-1]):255===q&&(d=bi(c,16),e=bi(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,w(b));b=[];a=a.fullData;b.push(a.byteLength>>>8&255);b.push(a.byteLength&255);b=b.concat.apply(b,w(a));a=new Uint8Array([1,k[3],k[4],k[5],255,
1194
1195
  225].concat(k,[1],b));return{height:c,width:f,ka:a,qa:d,sa:e}}
1195
1196
  function Qz(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=hi(new Zh(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?
1196
- {data:gg.apply(ag,w(c)),Uc:b}:null}var Pz=[100,110,122,244,44,83,86,118,128,138,139,134];function Rz(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=Sz(b.fullData);a=Tz(c.fullData);var f=Uz(d.fullData);b=Vz(b.fullData,c.fullData,d.fullData,{Te:e.Te,mf:e.mf,xe:a.xe,ye:a.ye,re:a.re,we:a.we,se:a.se,te:a.te,ue:a.ue,ve:a.ve,le:a.le,me:a.me,ne:a.ne,oe:a.oe,pe:a.pe,qe:a.qe,he:a.he,Md:a.Md,ge:a.ge,fe:a.fe,ee:a.ee,We:f.We});return{height:a.height,width:a.width,
1197
- ka:b,qa:a.Jh,sa:a.Ih}}function Sz(a){var b=new Zh(a,!0);fi(b);fi(b);bi(b,4);bi(b,2);bi(b,6);a=bi(b,3);b=U(b);return{Te:a+1,mf:b}}
1197
+ {data:gg.apply(ag,w(c)),Uc:b}:null}var Pz=[100,110,122,244,44,83,86,118,128,138,139,134];function Rz(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=Sz(b.fullData);a=Tz(c.fullData);var f=Uz(d.fullData);b=Vz(b.fullData,c.fullData,d.fullData,{Se:e.Se,lf:e.lf,xe:a.xe,ye:a.ye,re:a.re,we:a.we,se:a.se,te:a.te,ue:a.ue,ve:a.ve,le:a.le,me:a.me,ne:a.ne,oe:a.oe,pe:a.pe,qe:a.qe,he:a.he,Md:a.Md,ge:a.ge,fe:a.fe,ee:a.ee,Ve:f.Ve});return{height:a.height,width:a.width,
1198
+ ka:b,qa:a.Ih,sa:a.Hh}}function Sz(a){var b=new Zh(a,!0);fi(b);fi(b);bi(b,4);bi(b,2);bi(b,6);a=bi(b,3);b=U(b);return{Se:a+1,lf:b}}
1198
1199
  function Tz(a){a=new Zh(a,!0);fi(a);fi(a);var b=0,c=0,d=0,e=0;bi(a,4);var f=bi(a,3);U(a);for(var g=bi(a,2),h=bi(a,1),k=bi(a,5),l=fi(a),m=fi(a),n=fi(a),q=fi(a),p=fi(a),u=fi(a),v=fi(a),y=fi(a),z=fi(a),x=fi(a),A=fi(a),B=[],D=[],E=0;E<f;E++)B.push(U(a)),D.push(U(a));if(0<f)for(E=f;8>E;E++)bi(a,2);for(E=0;E<f;E++)B[E]&&bi(a,88),D[E]&&fi(a);T(a);B=T(a);3==B&&bi(a,1);D=T(a);E=T(a);U(a)&&(b+=T(a),c+=T(a),d+=T(a),e+=T(a));var J=T(a),G=T(a),H=T(a);if(U(a))for(var I=0;I<=f;I++)T(a),T(a),T(a);else T(a),T(a),
1199
1200
  T(a);T(a);T(a);T(a);T(a);T(a);T(a);if(U(a)&&U(a))for(I=0;4>I;I++)for(var L=0;L<(3===I?2:6);L++)if(U(a)){var M=Math.min(64,1<<4+(I<<1));1<I&&ei(a);for(var O=0;O<M;O++)ei(a)}else T(a);U(a);U(a);U(a)&&(fi(a),T(a),T(a),U(a));I=T(a);for(M=L=0;M<I;M++)if(O=!1,0!==M&&(O=U(a)),O){M===I&&T(a);U(a);T(a);for(var S=O=0;S<=L;S++){var da=U(a),W=!1;da||(W=U(a));(da||W)&&O++}L=O}else{S=T(a);O=T(a);L=S+O;for(da=0;da<S;da++)T(a),U(a);for(S=0;S<O;S++)T(a),U(a)}if(U(a))for(I=T(a),L=0;L<I;L++){for(M=0;M<H+4;M++)bi(a,
1200
1201
  1);bi(a,1)}I=H=1;L=0;U(a);U(a);if(U(a)){U(a)&&(M=fi(a),O=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],S=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1],0<M&&16>=M?(H=O[M-1],I=S[M-1]):255===M&&(H=bi(a,16),I=bi(a,16)));U(a)&&U(a);U(a)&&(bi(a,3),U(a),U(a)&&(fi(a),fi(a),fi(a)));U(a)&&(T(a),T(a));U(a);U(a);U(a);if(M=U(a))T(a),T(a),T(a),T(a);if(U(a)&&(bi(a,32),bi(a,32),U(a)&&T(a),U(a))){S=!1;M=U(a);O=U(a);if(M||O){if(S=U(a))fi(a),bi(a,5),U(a),bi(a,5);bi(a,4);bi(a,4);S&&bi(a,4);bi(a,5);bi(a,5);bi(a,5)}for(da=
1201
- 0;da<=f;da++){var ea=!0;W=1;U(a)||(ea=U(a));var Ca=!1;ea?T(a):Ca=U(a);Ca||(W=T(a)+1);if(M){for(ea=0;ea<W;ea++)T(a),T(a),S&&(T(a),T(a));U(a)}if(O){for(ea=0;ea<W;ea++)T(a),T(a),S&&(T(a),T(a));U(a)}}}U(a)&&(U(a),U(a),U(a),L=T(a),T(a),T(a),T(a),T(a))}return{re:A,xe:g,ye:h,we:k,se:l,te:m,ue:n,ve:q,le:p,me:u,ne:v,oe:y,pe:z,qe:x,Md:L,he:0,ge:B,fe:J,ee:G,width:D-(b+c)*(1===B||2===B?2:1),height:E-(d+e)*(1===B?2:1),Jh:H,Ih:I}}
1202
- function Uz(a){var b=new Zh(a,!0);fi(b);fi(b);T(b);T(b);U(b);U(b);bi(b,3);U(b);U(b);T(b);T(b);ei(b);U(b);U(b);U(b)&&T(b);ei(b);ei(b);U(b);U(b);U(b);U(b);a=U(b);b=U(b);var c=1;b&&a?c=0:b?c=3:a&&(c=2);return{We:c}}
1203
- function Vz(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(5+c.byteLength));e[0]=1;e[1]=(d.xe&3)<<6|(d.ye?1:0)<<5|d.we&31;e[2]=d.se;e[3]=d.te;e[4]=d.ue;e[5]=d.ve;e[6]=d.le;e[7]=d.me;e[8]=d.ne;e[9]=d.oe;e[10]=d.pe;e[11]=d.qe;e[12]=d.re;e[13]=240|(d.Md&3840)>>8;e[14]=d.Md&255;e[15]=252|d.We&3;e[16]=252|d.ge&3;e[17]=248|d.fe&7;e[18]=248|d.ee&7;e[19]=0;e[20]=0;e[21]=(d.he&3)<<6|(d.Te&7)<<3|(d.mf?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&
1204
- 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 Wz(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*Xz[14*(3===c?3-d:3===d?3:4)+e-1];f=Yz[3*(3===c?0:2===c?1:2)+f];c=Zz[c][d];var h=$z[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,S:k,Hh:8*c*h}}return null}
1202
+ 0;da<=f;da++){var ea=!0;W=1;U(a)||(ea=U(a));var Ca=!1;ea?T(a):Ca=U(a);Ca||(W=T(a)+1);if(M){for(ea=0;ea<W;ea++)T(a),T(a),S&&(T(a),T(a));U(a)}if(O){for(ea=0;ea<W;ea++)T(a),T(a),S&&(T(a),T(a));U(a)}}}U(a)&&(U(a),U(a),U(a),L=T(a),T(a),T(a),T(a),T(a))}return{re:A,xe:g,ye:h,we:k,se:l,te:m,ue:n,ve:q,le:p,me:u,ne:v,oe:y,pe:z,qe:x,Md:L,he:0,ge:B,fe:J,ee:G,width:D-(b+c)*(1===B||2===B?2:1),height:E-(d+e)*(1===B?2:1),Ih:H,Hh:I}}
1203
+ function Uz(a){var b=new Zh(a,!0);fi(b);fi(b);T(b);T(b);U(b);U(b);bi(b,3);U(b);U(b);T(b);T(b);ei(b);U(b);U(b);U(b)&&T(b);ei(b);ei(b);U(b);U(b);U(b);U(b);a=U(b);b=U(b);var c=1;b&&a?c=0:b?c=3:a&&(c=2);return{Ve:c}}
1204
+ function Vz(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(5+c.byteLength));e[0]=1;e[1]=(d.xe&3)<<6|(d.ye?1:0)<<5|d.we&31;e[2]=d.se;e[3]=d.te;e[4]=d.ue;e[5]=d.ve;e[6]=d.le;e[7]=d.me;e[8]=d.ne;e[9]=d.oe;e[10]=d.pe;e[11]=d.qe;e[12]=d.re;e[13]=240|(d.Md&3840)>>8;e[14]=d.Md&255;e[15]=252|d.Ve&3;e[16]=252|d.ge&3;e[17]=248|d.fe&7;e[18]=248|d.ee&7;e[19]=0;e[20]=0;e[21]=(d.he&3)<<6|(d.Se&7)<<3|(d.lf?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&
1205
+ 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 Wz(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*Xz[14*(3===c?3-d:3===d?3:4)+e-1];f=Yz[3*(3===c?0:2===c?1:2)+f];c=Zz[c][d];var h=$z[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,S:k,Gh:8*c*h}}return null}
1205
1206
  function aA(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}function bA(a,b){if(b+1<a.length&&aA(a,b)){var c=Wz(a,b),d=4;c&&c.S&&(d=c.S);b+=d;return b===a.length||b+1<a.length&&aA(a,b)}return!1}
1206
1207
  var Xz=[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],Yz=[44100,48E3,32E3,22050,24E3,16E3,11025,12E3,8E3],Zz=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],$z=[0,1,1,4];function cA(a){this.i=a;this.h=0;this.g=new Map}r=cA.prototype;r.destroy=function(){this.g.clear()};r.isSupported=function(a){return"audio/mpeg"==a.toLowerCase().split(";")[0]?kb(this.convertCodecs("audio",a)):!1};r.convertCodecs=function(a,b){return"audio/mpeg"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp3"':b};r.getOriginalMimeType=function(){return this.i};
1207
- r.transmux=function(a,b,c,d){c=sb(a);for(var e=Qh(c).length;e<c.length&&!bA(c,e);e++);var f;for(a=[];e<c.length;){var g=Wz(c,e);if(!g)return Promise.reject(new P(2,3,3018));f||(f=g);e+g.S<=c.length&&a.push({data:c.subarray(e,e+g.S),size:g.S,duration:1152,Ra:0,flags:{Sa:0,Ja:0,Ha:0,Fa:0,Ga:2,Ta:0}});e+=g.S}if(!f)return Promise.reject(new P(2,3,3018));c=9E4*f.Hh/f.sampleRate*this.h;d={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:f.sampleRate,duration:d,Pa:[],
1208
+ r.transmux=function(a,b,c,d){c=sb(a);for(var e=Qh(c).length;e<c.length&&!bA(c,e);e++);var f;for(a=[];e<c.length;){var g=Wz(c,e);if(!g)return Promise.reject(new P(2,3,3018));f||(f=g);e+g.S<=c.length&&a.push({data:c.subarray(e,e+g.S),size:g.S,duration:1152,Ra:0,flags:{Sa:0,Ja:0,Ha:0,Fa:0,Ga:2,Ta:0}});e+=g.S}if(!f)return Promise.reject(new P(2,3,3018));c=9E4*f.Gh/f.sampleRate*this.h;d={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:f.sampleRate,duration:d,Pa:[],
1208
1209
  da:new Uint8Array([]),ka:new Uint8Array([]),qa:0,sa:0,data:{eb:this.h,baseMediaDecodeTime:c,Ma:a},stream:b};f=new bu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=hu(f),this.g.set(b.id,d));b=yu(f);this.h++;b=gg(d,b);return Promise.resolve(b)};N("shaka.transmuxer.Mp3Transmuxer",cA);cA.prototype.transmux=cA.prototype.transmux;cA.prototype.getOriginalMimeType=cA.prototype.getOriginalMimeType;cA.prototype.convertCodecs=cA.prototype.convertCodecs;cA.prototype.isSupported=cA.prototype.isSupported;
1209
1210
  cA.prototype.destroy=cA.prototype.destroy;ec("audio/mpeg",function(){return new cA("audio/mpeg")},kc);function dA(a){this.h=a;this.g=null}r=dA.prototype;r.destroy=function(){};r.isSupported=function(a){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var b=Uc(a).split(","),c=Hc("audio",b);b=Hc("video",b);return!c||b||"mp3"!=Rc(c)?!1:kb(this.convertCodecs("audio",a))};r.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?"audio/mpeg":b};r.getOriginalMimeType=function(){return this.h};
1210
1211
  r.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new ii;a=sb(a);a=this.g.parse(a);if("mp3"!=a.Oc().audio||"audio"!=e)return Promise.reject(new P(2,3,3018));e=new Uint8Array([]);a=t(a.Ib());for(b=a.next();!b.done;b=a.next())if(b=b.value.data)for(c=0;c<b.length;)(d=Wz(b,c))?(c+d.S<=b.length&&(e=gg(e,b.subarray(c,c+d.S))),c+=d.S):c++;return Promise.resolve(e)};N("shaka.transmuxer.MpegTsTransmuxer",dA);dA.prototype.transmux=dA.prototype.transmux;dA.prototype.getOriginalMimeType=dA.prototype.getOriginalMimeType;
@@ -1224,7 +1225,7 @@ r.transmux=function(a,b,c){if(!c)return Promise.resolve(sb(a));if(!b.mssPrivateD
1224
1225
  1;var u=e.fetch("moof");k.data_offset=u.getLength()+8;var v=e.fetch("saio");null!==v&&(v.offset[0]=hA(u,"traf")+hA(h,"senc")+16);var y=sb(e.write());return Promise.resolve(y)}catch(z){return z instanceof P?Promise.reject(z):Promise.reject(new P(2,3,3022))}};function hA(a,b){for(var c=8,d=0;d<a.boxes.length&&a.boxes[d].type!==b;d++)c+=a.boxes[d].size;return c}N("shaka.transmuxer.MssTransmuxer",eA);eA.prototype.transmux=eA.prototype.transmux;eA.prototype.getOriginalMimeType=eA.prototype.getOriginalMimeType;
1225
1226
  eA.prototype.convertCodecs=eA.prototype.convertCodecs;eA.prototype.isSupported=eA.prototype.isSupported;eA.prototype.destroy=eA.prototype.destroy;var gA=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);ec("mss/audio/mp4",function(){return new eA("mss/audio/mp4")},kc);ec("mss/video/mp4",function(){return new eA("mss/video/mp4")},kc);function iA(a){this.l=a;this.g=0;this.i=new Map;this.h=this.j=null}r=iA.prototype;r.destroy=function(){this.i.clear();this.h&&this.h.destroy()};
1226
1227
  r.isSupported=function(a,b){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var c=a;b&&(c=this.convertCodecs(b,a));var d=Uc(c).split(",");c=Hc("audio",d);d=Hc("video",d);if(c&&(c=Rc(c),!jA.includes(c))||d&&(c=Rc(d),!kA.includes(c)))return!1;if(b)return kb(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return kb(b)||kb(a)};
1227
- r.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?(b=Uc(b).replace("mp4a.40.34","mp3").split(",").map(this.Ig).join(","),"audio"==a?'audio/mp4; codecs="'+b+'"':'video/mp4; codecs="'+b+'"'):b};r.Ig=function(a){if(a.includes("avc1")){var b=a.split(".");if(3==b.length)return a=b.shift()+".",a+=parseInt(b.shift(),10).toString(16),a+=("000"+parseInt(b.shift(),10).toString(16)).slice(-4)}return a};r.getOriginalMimeType=function(){return this.l};
1228
+ r.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?(b=Uc(b).replace("mp4a.40.34","mp3").split(",").map(this.Hg).join(","),"audio"==a?'audio/mp4; codecs="'+b+'"':'video/mp4; codecs="'+b+'"'):b};r.Hg=function(a){if(a.includes("avc1")){var b=a.split(".");if(3==b.length)return a=b.shift()+".",a+=parseInt(b.shift(),10).toString(16),a+=("000"+parseInt(b.shift(),10).toString(16)).slice(-4)}return a};r.getOriginalMimeType=function(){return this.l};
1228
1229
  r.transmux=function(a,b,c,d,e){var f=sb(a);if("audio"==e&&!pi(f)){for(var g=Qh(f),h=g.length;h<f.length;h++)if(bA(f,h))return Promise.reject(new P(2,3,3018));for(h=g.length;h<f.length;h++)if(Gz(f,h))return this.h||(this.h=new Iz("audio/aac")),this.h.transmux(a,b,c,d,e);return Promise.reject(new P(2,3,3018))}this.j?this.j.clearData():this.j=new ii;g=this.j.parse(f);a=[];var k=g.Oc();try{f=null;if("video"==e){switch(k.video){case "avc":var l=[],m=null,n=[],q=g.ec();if(!q.length)throw new P(2,3,3023);
1229
1230
  for(var p=0;p<q.length;p++){var u=q[p],v=u.nalus;n.push.apply(n,w(v));var y=Qz(v);if(y){null==m&&(m=u.dts);var z=void 0;z=p+1<q.length?(q[p+1].dts||0)-(u.dts||0):1<q.length?(u.dts||0)-(q[p-1].dts||0):9E4*(c.endTime-c.startTime);l.push({data:y.data,size:y.data.byteLength,duration:z,Ra:Math.round((u.pts||0)-(u.dts||0)),flags:{Sa:0,Ja:0,Ha:0,Fa:0,Ga:y.Uc?2:1,Ta:y.Uc?0:1}})}}var x=Oz(n);if(!x||null==m)throw new P(2,3,3018);b.height=x.height;b.width=x.width;f={id:b.id,type:"video",codecs:"avc1",encrypted:b.encrypted&&
1230
1231
  0<b.drmInfos.length,timescale:9E4,duration:d,Pa:[],da:new Uint8Array([]),ka:x.ka,qa:x.qa,sa:x.sa,data:{eb:this.g,baseMediaDecodeTime:m,Ma:l},stream:b};break;case "hvc":q=[];u=null;v=[];l=g.ec();if(!l.length)throw new P(2,3,3023);for(y=0;y<l.length;y++){m=l[y];n=m.nalus;v.push.apply(v,w(n));x=!1;var A=[],B=!1;p=t(n);for(z=p.next();!z.done;z=p.next()){var D=z.value;switch(D.type){case 1:case 0:var E=B=!0;break;case 19:case 20:case 21:x=E=B=!0;break;case 32:E=!0;break;case 33:E=!0;break;case 34:E=!0;