shaka-player 4.2.10 → 4.2.11

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.
Files changed (35) hide show
  1. package/.github/workflows/demo-version-index.yaml +3 -3
  2. package/CHANGELOG.md +17 -0
  3. package/README.md +3 -0
  4. package/demo/demo.less +1 -0
  5. package/dist/demo.css +1 -1
  6. package/dist/demo.css.map +1 -1
  7. package/dist/locales.js +30 -30
  8. package/dist/shaka-player.compiled.d.ts +8 -0
  9. package/dist/shaka-player.compiled.debug.d.ts +8 -0
  10. package/dist/shaka-player.compiled.debug.externs.js +9 -0
  11. package/dist/shaka-player.compiled.debug.js +40 -38
  12. package/dist/shaka-player.compiled.debug.map +3 -3
  13. package/dist/shaka-player.compiled.externs.js +9 -0
  14. package/dist/shaka-player.compiled.js +425 -424
  15. package/dist/shaka-player.compiled.map +3 -3
  16. package/dist/shaka-player.ui.d.ts +8 -0
  17. package/dist/shaka-player.ui.debug.d.ts +8 -0
  18. package/dist/shaka-player.ui.debug.externs.js +9 -0
  19. package/dist/shaka-player.ui.debug.js +166 -164
  20. package/dist/shaka-player.ui.debug.map +3 -3
  21. package/dist/shaka-player.ui.externs.js +9 -0
  22. package/dist/shaka-player.ui.js +234 -233
  23. package/dist/shaka-player.ui.map +3 -3
  24. package/docs/tutorials/welcome.md +1 -1
  25. package/lib/hls/hls_parser.js +6 -0
  26. package/lib/hls/manifest_text_parser.js +10 -1
  27. package/lib/media/drm_engine.js +9 -6
  28. package/lib/media/media_source_engine.js +6 -4
  29. package/lib/media/segment_reference.js +22 -0
  30. package/lib/media/streaming_engine.js +9 -4
  31. package/lib/player.js +5 -1
  32. package/package.json +9 -3
  33. package/test/hls/hls_live_unit.js +3 -1
  34. package/test/media/media_source_engine_unit.js +31 -0
  35. package/test/test/util/layout_tests.js +4 -3
@@ -15,7 +15,7 @@ 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]&&ca(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ia(ba(this))}})}return a});function ia(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
16
16
  function r(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:ba(a)}}function ja(a){if(!(a instanceof Array)){a=r(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ka="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ma;
17
17
  if("function"==typeof Object.setPrototypeOf)ma=Object.setPrototypeOf;else{var na;a:{var oa={a:!0},pa={};try{pa.__proto__=oa;na=pa.a;break a}catch(a){}na=!1}ma=na?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var qa=ma;
18
- function u(a,b){a.prototype=ka(b.prototype);a.prototype.constructor=a;if(qa)qa(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.ej=b.prototype}function ra(){this.A=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.C=this.i=null}function sa(a){if(a.A)throw new TypeError("Generator is already running");a.A=!0}ra.prototype.B=function(a){this.h=a};
18
+ function u(a,b){a.prototype=ka(b.prototype);a.prototype.constructor=a;if(qa)qa(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.gj=b.prototype}function ra(){this.A=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.C=this.i=null}function sa(a){if(a.A)throw new TypeError("Generator is already running");a.A=!0}ra.prototype.B=function(a){this.h=a};
19
19
  function ta(a,b){a.i={vf:b,Ff:!0};a.g=a.m||a.j}ra.prototype.return=function(a){this.i={return:a};this.g=this.j};function A(a,b,c){a.g=c;return{value:b}}ra.prototype.D=function(a){this.g=a};function C(a){a.g=0}function F(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function ua(a){a.m=0;a.j=2}function va(a,b,c){a.g=b;a.m=c||0}function J(a,b){a.m=b||0;b=a.i.vf;a.i=null;return b}function wa(a){a.C=[a.i];a.m=0;a.j=0}
20
20
  function xa(a,b){var c=a.C.splice(0)[0];(c=a.i=a.i||c)?c.Ff?a.g=a.m||a.j:void 0!=c.D&&a.j<c.D?(a.g=c.D,a.i=null):a.g=a.j:a.g=b}function ya(a){this.g=new ra;this.h=a}function za(a,b){sa(a.g);var c=a.g.l;if(c)return Aa(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Ba(a)}
21
21
  function Aa(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.A=!1,e;var f=e.value}catch(g){return a.g.l=null,ta(a.g,g),Ba(a)}a.g.l=null;d.call(a.g,f);return Ba(a)}function Ba(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.A=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,ta(a.g,c)}a.g.A=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.Ff)throw b.vf;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
@@ -54,8 +54,8 @@ function M(a,b){a=a.split(".");var c=Pa;a[0]in c||"undefined"==typeof c.execScri
54
54
  */
55
55
  function N(a,b){if(b)if(b instanceof Map)for(var c=r(b.keys()),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(this,d,{value:b.get(d),writable:!0,enumerable:!0});else for(c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.g=!1}
56
56
  function Qa(a){var b=new N(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}N.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};N.prototype.stopImmediatePropagation=function(){this.g=!0};N.prototype.stopPropagation=function(){};M("shaka.util.FakeEvent",N);
57
- var Ra={Jh:"abrstatuschanged",Kh:"adaptation",Lh:"buffering",Oh:"downloadfailed",Ph:"downloadheadersreceived",Qh:"drmsessionupdate",Xh:"emsg",Error:"error",Yh:"expirationupdated",ai:"gapjumped",di:"loaded",ei:"loading",li:"manifestparsed",mi:"mediaqualitychanged",Metadata:"metadata",si:"onstatechange",ti:"onstateidle",Fi:"ratechange",Li:"sessiondata",Mi:"stalldetected",Ni:"streaming",Oi:"textchanged",Pi:"texttrackvisibility",Qi:"timelineregionadded",Ri:"timelineregionenter",Si:"timelineregionexit",
58
- Ti:"trackschanged",Yi:"unloading",$i:"variantchanged"};function Sa(){}function Ta(){}function Ua(){}function Wa(a){var b=Fa.apply(1,arguments);Xa.has(a)||(Xa.add(a),Ua.apply(Sa,ja(b)))}function Ya(){}function Za(){}function $a(){}function ab(){}var Xa=new Set;window.console&&(Ua=function(){return console.warn.apply(console,ja(Fa.apply(0,arguments)))},Ta=function(){console.error.apply(console,ja(Fa.apply(0,arguments)))});function bb(){this.g={}}q=bb.prototype;q.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};q.get=function(a){return(a=this.g[a])?a.slice():null};q.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};function cb(a,b){for(var c in a.g)b(c,a.g[c])}q.size=function(){return Object.keys(this.g).length};q.keys=function(){return Object.keys(this.g)};function db(){this.va=new bb;this.wd=this}db.prototype.addEventListener=function(a,b){this.va&&this.va.push(a,b)};db.prototype.removeEventListener=function(a,b){this.va&&this.va.remove(a,b)};db.prototype.dispatchEvent=function(a){if(!this.va)return!0;var b=this.va.get(a.type)||[],c=this.va.get("All");c&&(b=b.concat(c));b=r(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.wd;a.currentTarget=this.wd;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
57
+ var Ra={Lh:"abrstatuschanged",Mh:"adaptation",Nh:"buffering",Qh:"downloadfailed",Rh:"downloadheadersreceived",Sh:"drmsessionupdate",Zh:"emsg",Error:"error",$h:"expirationupdated",ci:"gapjumped",gi:"loaded",ii:"loading",ni:"manifestparsed",oi:"mediaqualitychanged",Metadata:"metadata",wi:"onstatechange",xi:"onstateidle",Hi:"ratechange",Ni:"sessiondata",Oi:"stalldetected",Pi:"streaming",Qi:"textchanged",Ri:"texttrackvisibility",Si:"timelineregionadded",Ti:"timelineregionenter",Ui:"timelineregionexit",
58
+ Vi:"trackschanged",$i:"unloading",bj:"variantchanged"};function Sa(){}function Ta(){}function Ua(){}function Wa(a){var b=Fa.apply(1,arguments);Xa.has(a)||(Xa.add(a),Ua.apply(Sa,ja(b)))}function Ya(){}function Za(){}function $a(){}function ab(){}var Xa=new Set;window.console&&(Ua=function(){return console.warn.apply(console,ja(Fa.apply(0,arguments)))},Ta=function(){console.error.apply(console,ja(Fa.apply(0,arguments)))});function bb(){this.g={}}q=bb.prototype;q.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};q.get=function(a){return(a=this.g[a])?a.slice():null};q.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};function cb(a,b){for(var c in a.g)b(c,a.g[c])}q.size=function(){return Object.keys(this.g).length};q.keys=function(){return Object.keys(this.g)};function db(){this.va=new bb;this.wd=this}db.prototype.addEventListener=function(a,b){this.va&&this.va.push(a,b)};db.prototype.removeEventListener=function(a,b){this.va&&this.va.remove(a,b)};db.prototype.dispatchEvent=function(a){if(!this.va)return!0;var b=this.va.get(a.type)||[],c=this.va.get("All");c&&(b=b.concat(c));b=r(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.wd;a.currentTarget=this.wd;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
59
59
  db.prototype.release=function(){this.va=null};function eb(a,b){var c=[];a=r(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c}function fb(a,b){a=r(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0}function gb(a,b){a=r(a);for(var c=a.next();!c.done;c=a.next())if(b(c.value))return!0;return!1}function hb(a,b){var c=[];a=r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b(d)&&c.push(d);return c};/*
60
60
  @license
61
61
  Copyright 2008 The Closure Library Authors
@@ -82,7 +82,7 @@ FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_RE
82
82
  ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9E3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,
83
83
  MODIFY_OPERATION_NOT_SUPPORTED:9016,INDEXED_DB_INIT_TIMED_OUT:9017,CS_IMA_SDK_MISSING:1E4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004};function xb(a,b){return a.concat(b)}function yb(){}function zb(a){return null!=a};function Ab(a,b){if(0==b.length)return a;var c=b.map(function(d){return new jb(d)});return a.map(function(d){return new jb(d)}).map(function(d){return c.map(function(e){return d.resolve(e)})}).reduce(xb,[]).map(function(d){return d.toString()})}function Bb(a,b){return{keySystem:a,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:b||[],keyIds:new Set}}
84
84
  function Cb(a,b){if(1==b.length)return b[0];a=Db(a,b);if(null!=a)return a;throw new O(2,4,4025,b);}function Db(a,b){for(var c=r(Fb[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=r(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==Gb?"":null}
85
- var Gb="text",Hb={La:"video",Gb:"audio",ha:Gb,Bc:"image",Gh:"application"},Fb={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4$/,/^dts[cex]$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/,/^dvhe/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Ib(){}function Jb(a,b){a=Kb(a);b=Kb(b);return a.split("-")[0]==b.split("-")[0]}function Lb(a,b){a=Kb(a);b=Kb(b);a=a.split("-");b=b.split("-");return a[0]==b[0]&&1==a.length&&2==b.length}function Mb(a,b){a=Kb(a);b=Kb(b);a=a.split("-");b=b.split("-");return 2==a.length&&2==b.length&&a[0]==b[0]}function Kb(a){var b=a.split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Nb.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a}function Ob(a,b){var c=Pb(a),d=Pb(b);return a!=c&&b!=d&&c==d}
85
+ var Gb="text",Hb={La:"video",Gb:"audio",ia:Gb,Bc:"image",Ih:"application"},Fb={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4$/,/^dts[cex]$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/,/^dvhe/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Ib(){}function Jb(a,b){a=Kb(a);b=Kb(b);return a.split("-")[0]==b.split("-")[0]}function Lb(a,b){a=Kb(a);b=Kb(b);a=a.split("-");b=b.split("-");return a[0]==b[0]&&1==a.length&&2==b.length}function Mb(a,b){a=Kb(a);b=Kb(b);a=a.split("-");b=b.split("-");return 2==a.length&&2==b.length&&a[0]==b[0]}function Kb(a){var b=a.split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Nb.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a}function Ob(a,b){var c=Pb(a),d=Pb(b);return a!=c&&b!=d&&c==d}
86
86
  function Qb(a,b){a=Kb(a);b=Kb(b);return b==a?4:Lb(b,a)?3:Mb(b,a)?2:Lb(a,b)?1:0}function Pb(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=Nb.get(a)||a}function Rb(a){return a.language?Kb(a.language):a.audio&&a.audio.language?Kb(a.audio.language):a.video&&a.video.language?Kb(a.video.language):"und"}
87
87
  function Sb(a,b){a=Kb(a);var c=new Set,d=r(b);for(b=d.next();!b.done;b=d.next())c.add(Kb(b.value));d=r(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,b==a)return b;d=r(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,Lb(b,a))return b;d=r(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,Mb(b,a))return b;c=r(c);for(b=c.next();!b.done;b=c.next())if(b=b.value,Lb(a,b))return b;return null}M("shaka.util.LanguageUtils",Ib);Ib.findClosestLocale=Sb;Ib.getLocaleForVariant=Rb;
88
88
  Ib.getLocaleForText=function(a){return Kb(a.language||"und")};Ib.getBase=Pb;Ib.relatedness=Qb;Ib.areSiblings=Ob;Ib.normalize=Kb;Ib.isSiblingOf=Mb;Ib.isParentOf=Lb;Ib.areLanguageCompatible=Jb;Ib.areLocaleCompatible=function(a,b){a=Kb(a);b=Kb(b);return a==b};
@@ -93,18 +93,18 @@ var Nb=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"]
93
93
  "sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie",
94
94
  "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function Tb(a){db.call(this);this.j=Kb(a);this.i=new Map;this.g=new Set;this.h=new Map}u(Tb,db);q=Tb.prototype;q.release=function(){db.prototype.release.call(this)};
95
95
  q.mf=function(a){var b=this;this.g.clear();a=r(a);for(var c=a.next();!c.done;c=a.next())this.g.add(Kb(c.value));Ub(this);a=hb(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new N("unknown-locales",(new Map).set("locales",a)));a=hb(this.g,function(d){return b.h.has(d)});a=(new Map).set("locales",a.length?a:[this.j]);this.dispatchEvent(new N("locale-changed",a))};
96
- q.ia=function(a,b,c){a=Kb(a);void 0===c&&(c=Vb);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=Vb||d.set(f,e)});this.h.set(a,d);Ub(this);this.dispatchEvent(new N("locale-updated"));return this};q.nh=function(a){for(var b=r(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};q.resolve=function(a){var b=this.i.get(a);if(b)return b;a=(new Map).set("locales",Array.from(this.g)).set("missing",a);this.dispatchEvent(new N("unknown-localization",a));return""};
96
+ q.ka=function(a,b,c){a=Kb(a);void 0===c&&(c=Vb);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=Vb||d.set(f,e)});this.h.set(a,d);Ub(this);this.dispatchEvent(new N("locale-updated"));return this};q.ph=function(a){for(var b=r(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};q.resolve=function(a){var b=this.i.get(a);if(b)return b;a=(new Map).set("locales",Array.from(this.g)).set("missing",a);this.dispatchEvent(new N("unknown-localization",a));return""};
97
97
  function Ub(a){for(var b=a.h,c=a.j,d=a.g,e=new Set,f={},g=r(d),h=g.next();!h.done;f={Yb:f.Yb},h=g.next()){f.Yb=h.value;e.add(f.Yb);e.add(Pb(f.Yb));h=hb(b.keys(),function(l){return function(m){return Ob(m,l.Yb)}}(f));h.sort();var k=r(h);for(h=k.next();!h.done;h=k.next())e.add(h.value);h=hb(b.keys(),function(l){return function(m){return Pb(m)==l.Yb}}(f));h.sort();k=r(h);for(h=k.next();!h.done;h=k.next())e.add(h.value)}e.add(c);c=[];e=r(e);for(h=e.next();!h.done;h=e.next())(h=b.get(h.value))&&c.push(h);
98
98
  c.reverse();a.i.clear();b=r(c);for(h=b.next();!h.done;h=b.next())h.value.forEach(function(l,m){a.i.set(m,l)});b=a.i.keys();e=new Set;c=r(a.g);for(h=c.next();!h.done;h=c.next())h=a.h.get(h.value)||new Map,Wb(h,b,e);0<e.size&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.dispatchEvent(new N("missing-localizations",d)))}function Wb(a,b,c){b=r(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d)}M("shaka.ui.Localization",Tb);Tb.prototype.resolve=Tb.prototype.resolve;
99
- Tb.prototype.resolveDictionary=Tb.prototype.nh;Tb.prototype.insert=Tb.prototype.ia;Tb.prototype.changeLocale=Tb.prototype.mf;Tb.prototype.release=Tb.prototype.release;var Vb=1;Tb.ConflictResolution={USE_OLD:0,USE_NEW:Vb};Tb.UNKNOWN_LOCALES="unknown-locales";Tb.UNKNOWN_LOCALIZATION="unknown-localization";Tb.MISSING_LOCALIZATIONS="missing-localizations";Tb.LOCALE_CHANGED="locale-changed";Tb.LOCALE_UPDATED="locale-updated";var Xb={zi:"PLAY",pi:"ON",Zi:"VOLUME",Wh:"EXIT_PICTURE_IN_PICTURE",Ci:"REPLAY",Di:"RESOLUTION",bi:"LANGUAGE",Zh:"FAST_FORWARD",ii:"MORE_SETTINGS",Mh:"CAPTIONS",oi:"OFF",ci:"LOOP",Bi:"QUALITY",Eh:"AD_TIME",ni:"NOT_APPLICABLE",Ii:"SKIP_TO_LIVE",Xf:"SUBTITLE_FORCED",$h:"FULL_SCREEN",Rh:"ENTER_LOOP_MODE",AD_PROGRESS:"AD_PROGRESS",Sh:"ENTER_PICTURE_IN_PICTURE",Hi:"SKIP_AD",Vi:"UNDETERMINED_LANGUAGE",ki:"MUTE",df:"LIVE",BACK:"BACK",Dh:"AD_DURATION",Fh:"AIRPLAY",Gi:"SEEK",Nh:"CAST",wi:"PAUSE",Hh:"AUTO_QUALITY",
100
- Uh:"EXIT_FULL_SCREEN",Wi:"UNMUTE",Ki:"STATISTICS",Vh:"EXIT_LOOP_MODE",xi:"PICTURE_IN_PICTURE",Xi:"UNRECOGNIZED_LANGUAGE",Ai:"PLAYBACK_RATE",ji:"MULTIPLE_LANGUAGES",Ei:"REWIND"};function Yb(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}Yb.prototype.sample=function(a,b){var c=Math.pow(this.g,a);b=b*(1-c)+c*this.h;isNaN(b)||(this.h=b,this.i+=a)};function Zb(a){return a.h/(1-Math.pow(a.g,a.i))};function $b(){this.h=new Yb(2);this.j=new Yb(5);this.g=0;this.i=128E3;this.l=16E3}$b.prototype.configure=function(a){this.i=a.minTotalBytes;this.l=a.minBytes;this.h.g=Math.exp(Math.log(.5)/a.fastHalfLife);this.j.g=Math.exp(Math.log(.5)/a.slowHalfLife)};$b.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a;a/=1E3;this.g+=b;this.h.sample(a,c);this.j.sample(a,c)}};$b.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(Zb(this.h),Zb(this.j))};function ac(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function bc(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function cc(a,b,c){c||(c=ac);if(a.length!=b.length)return!1;b=b.slice();var d={};a=r(a);for(var e=a.next();!e.done;d={Qd:d.Qd},e=a.next()){d.Qd=e.value;e=b.findIndex(function(f){return function(g){return c(f.Qd,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
99
+ Tb.prototype.resolveDictionary=Tb.prototype.ph;Tb.prototype.insert=Tb.prototype.ka;Tb.prototype.changeLocale=Tb.prototype.mf;Tb.prototype.release=Tb.prototype.release;var Vb=1;Tb.ConflictResolution={USE_OLD:0,USE_NEW:Vb};Tb.UNKNOWN_LOCALES="unknown-locales";Tb.UNKNOWN_LOCALIZATION="unknown-localization";Tb.MISSING_LOCALIZATIONS="missing-localizations";Tb.LOCALE_CHANGED="locale-changed";Tb.LOCALE_UPDATED="locale-updated";var Xb={Ji:"SKIP_AD",Oh:"CAPTIONS",AD_PROGRESS:"AD_PROGRESS",Ki:"SKIP_TO_LIVE",df:"LIVE",Yh:"EXIT_PICTURE_IN_PICTURE",bi:"FULL_SCREEN",Ph:"CAST",Fi:"RESOLUTION",Ci:"PLAYBACK_RATE",Uh:"ENTER_PICTURE_IN_PICTURE",ai:"FAST_FORWARD",ki:"MORE_SETTINGS",Ei:"REPLAY",aj:"VOLUME",Gi:"REWIND",li:"MULTIPLE_LANGUAGES",mi:"MUTE",pi:"NOT_APPLICABLE",ri:"OFF",ei:"LOOP",Zi:"UNRECOGNIZED_LANGUAGE",si:"ON",Di:"QUALITY",Mi:"STATISTICS",Hh:"AIRPLAY",Yi:"UNMUTE",Fh:"AD_DURATION",Xi:"UNDETERMINED_LANGUAGE",Yf:"SUBTITLE_FORCED",
100
+ Ii:"SEEK",BACK:"BACK",Wh:"EXIT_FULL_SCREEN",di:"LANGUAGE",Jh:"AUTO_QUALITY",Gh:"AD_TIME",Th:"ENTER_LOOP_MODE",Ai:"PICTURE_IN_PICTURE",Bi:"PLAY",zi:"PAUSE",Xh:"EXIT_LOOP_MODE"};function Yb(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}Yb.prototype.sample=function(a,b){var c=Math.pow(this.g,a);b=b*(1-c)+c*this.h;isNaN(b)||(this.h=b,this.i+=a)};function Zb(a){return a.h/(1-Math.pow(a.g,a.i))};function $b(){this.h=new Yb(2);this.j=new Yb(5);this.g=0;this.i=128E3;this.l=16E3}$b.prototype.configure=function(a){this.i=a.minTotalBytes;this.l=a.minBytes;this.h.g=Math.exp(Math.log(.5)/a.fastHalfLife);this.j.g=Math.exp(Math.log(.5)/a.slowHalfLife)};$b.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a;a/=1E3;this.g+=b;this.h.sample(a,c);this.j.sample(a,c)}};$b.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(Zb(this.h),Zb(this.j))};function ac(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function bc(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function cc(a,b,c){c||(c=ac);if(a.length!=b.length)return!1;b=b.slice();var d={};a=r(a);for(var e=a.next();!e.done;d={Qd:d.Qd},e=a.next()){d.Qd=e.value;e=b.findIndex(function(f){return function(g){return c(f.Qd,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
101
101
  function dc(a,b,c){c||(c=ac);if(a.length!=b.length)return!1;for(var d=0;d<a.length;d++)if(!c(a[d],b[d]))return!1;return!0};function ec(a,b,c){this.startTime=a;this.direction=fc;this.endTime=b;this.payload=c;this.region=new gc;this.position=null;this.positionAlign=hc;this.size=0;this.textAlign=ic;this.writingMode=jc;this.lineInterpretation=kc;this.line=null;this.lineHeight="";this.lineAlign=lc;this.displayAlign=mc;this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.textShadow=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=nc;this.fontStyle=oc;this.linePadding=this.letterSpacing=
102
102
  this.fontFamily="";this.opacity=1;this.textDecoration=[];this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.cellResolution={columns:32,rows:15}}ec.prototype.clone=function(){var a=new ec(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
103
103
  function pc(a,b){if(a.startTime!=b.startTime||a.endTime!=b.endTime||a.payload!=b.payload)return!1;for(var c in a)if("startTime"!=c&&"endTime"!=c&&"payload"!=c)if("nestedCues"==c){if(!dc(a.nestedCues,b.nestedCues,pc))return!1}else if("region"==c||"cellResolution"==c)for(var d in a[c]){if(a[c][d]!=b[c][d])return!1}else if(Array.isArray(a[c])){if(!dc(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}M("shaka.text.Cue",ec);var hc="auto";
104
104
  ec.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:hc};var ic="center",qc={LEFT:"left",RIGHT:"right",CENTER:ic,START:"start",END:"end"};ec.textAlign=qc;var mc="after",rc={BEFORE:"before",CENTER:"center",AFTER:mc};ec.displayAlign=rc;var fc="ltr";ec.direction={HORIZONTAL_LEFT_TO_RIGHT:fc,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var jc="horizontal-tb";ec.writingMode={HORIZONTAL_TOP_TO_BOTTOM:jc,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var kc=0;
105
105
  ec.lineInterpretation={LINE_NUMBER:kc,PERCENTAGE:1};var lc="start",sc={CENTER:"center",START:lc,END:"end"};ec.lineAlign=sc;var tc={white:"#FFF",lime:"#0F0",cyan:"#0FF",red:"#F00",yellow:"#FF0",magenta:"#F0F",blue:"#00F",black:"#000"};ec.defaultTextColor=tc;var vc={bg_white:"#FFF",bg_lime:"#0F0",bg_cyan:"#0FF",bg_red:"#F00",bg_yellow:"#FF0",bg_magenta:"#F0F",bg_blue:"#00F",bg_black:"#000"};ec.defaultTextBackgroundColor=vc;var nc=400;ec.fontWeight={NORMAL:nc,BOLD:700};
106
106
  var oc="normal",wc={NORMAL:oc,ITALIC:"italic",OBLIQUE:"oblique"};ec.fontStyle=wc;ec.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};function gc(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=xc;this.scroll=yc}M("shaka.text.CueRegion",gc);var xc=1;gc.units={PX:0,PERCENTAGE:xc,LINES:2};var yc="";gc.scrollMode={NONE:yc,UP:"up"};function zc(){}function Ac(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(Bc(a)==Bc(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;var c=Cc(a);b=Cc(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])return!1;return!0}function Bc(a){return a instanceof ArrayBuffer?a:a.buffer}function Dc(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
107
- function Cc(a,b,c){c=void 0===c?Infinity:c;return Ec(a,void 0===b?0:b,c,Uint8Array)}function Fc(a,b,c){c=void 0===c?Infinity:c;return Ec(a,void 0===b?0:b,c,DataView)}function Ec(a,b,c,d){var e=(a.byteOffset||0)+a.byteLength;b=Math.max(0,Math.min((a.byteOffset||0)+b,e));return new d(Bc(a),b,Math.min(b+Math.max(c,0),e)-b)}M("shaka.util.BufferUtils",zc);zc.toDataView=Fc;zc.toUint8=Cc;zc.toArrayBuffer=Dc;zc.equal=Ac;function Gc(){}M("shaka.dependencies",Gc);Gc.has=function(a){return Hc.has(a)};Gc.add=function(a,b){if(!Ic[a])throw Error(a+" is not supported");Hc.set(a,function(){return b})};var Ic={muxjs:"muxjs"};Gc.Allowed=Ic;var Hc=new Map([["muxjs",function(){return window.muxjs}]]);function Jc(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}Jc.prototype.resolve=function(){};Jc.prototype.reject=function(){};function Kc(a){this.h=a;this.g=void 0}Kc.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Lc(a){this.h=a;this.g=null}Lc.prototype.S=function(a){var b=this;this.stop();var c=!0,d=null;this.g=function(){window.clearTimeout(d);c=!1};d=window.setTimeout(function(){c&&b.h()},1E3*a);return this};Lc.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function P(a){this.h=a;this.g=null}P.prototype.Aa=function(){this.stop();this.h();return this};P.prototype.S=function(a){var b=this;this.stop();this.g=(new Lc(function(){b.h()})).S(a);return this};P.prototype.ka=function(a){var b=this;this.stop();this.g=(new Lc(function(){b.g.S(a);b.h()})).S(a);return this};P.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};M("shaka.util.Timer",P);P.prototype.stop=P.prototype.stop;P.prototype.tickEvery=P.prototype.ka;P.prototype.tickAfter=P.prototype.S;
107
+ function Cc(a,b,c){c=void 0===c?Infinity:c;return Ec(a,void 0===b?0:b,c,Uint8Array)}function Fc(a,b,c){c=void 0===c?Infinity:c;return Ec(a,void 0===b?0:b,c,DataView)}function Ec(a,b,c,d){var e=(a.byteOffset||0)+a.byteLength;b=Math.max(0,Math.min((a.byteOffset||0)+b,e));return new d(Bc(a),b,Math.min(b+Math.max(c,0),e)-b)}M("shaka.util.BufferUtils",zc);zc.toDataView=Fc;zc.toUint8=Cc;zc.toArrayBuffer=Dc;zc.equal=Ac;function Gc(){}M("shaka.dependencies",Gc);Gc.has=function(a){return Hc.has(a)};Gc.add=function(a,b){if(!Ic[a])throw Error(a+" is not supported");Hc.set(a,function(){return b})};var Ic={muxjs:"muxjs"};Gc.Allowed=Ic;var Hc=new Map([["muxjs",function(){return window.muxjs}]]);function Jc(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}Jc.prototype.resolve=function(){};Jc.prototype.reject=function(){};function Kc(a){this.h=a;this.g=void 0}Kc.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Lc(a){this.h=a;this.g=null}Lc.prototype.S=function(a){var b=this;this.stop();var c=!0,d=null;this.g=function(){window.clearTimeout(d);c=!1};d=window.setTimeout(function(){c&&b.h()},1E3*a);return this};Lc.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function P(a){this.h=a;this.g=null}P.prototype.Aa=function(){this.stop();this.h();return this};P.prototype.S=function(a){var b=this;this.stop();this.g=(new Lc(function(){b.h()})).S(a);return this};P.prototype.na=function(a){var b=this;this.stop();this.g=(new Lc(function(){b.g.S(a);b.h()})).S(a);return this};P.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};M("shaka.util.Timer",P);P.prototype.stop=P.prototype.stop;P.prototype.tickEvery=P.prototype.na;P.prototype.tickAfter=P.prototype.S;
108
108
  P.prototype.tickNow=P.prototype.Aa;function Mc(){return window.MediaSource&&MediaSource.isTypeSupported?!0:!1}function Nc(a){return""!=Oc().canPlayType(a)}function Pc(){return Qc("Xbox One")}function Rc(){return Qc("Tizen")}function Sc(){return Qc("Web0S")&&Qc("Chrome/38.0.2125.122 Safari/537.36")}function Wc(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Rc()&&!Qc("PC=EOS")&&!Qc("VirginMedia")&&!Xc()&&!Qc("AFT")}function Xc(){return Qc("PlayStation 4")}
109
109
  function Yc(){if(!Wc())return null;var a=navigator.userAgent.match(/Version\/(\d+)/);return a?parseInt(a[1],10):(a=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(a[1],10):null}function Qc(a){return(navigator.userAgent||"").includes(a)}function Oc(){if(Zc)return Zc;$c||($c=new P(function(){Zc=null}));(Zc=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(Zc=document.createElement("video"));$c.S(1);return Zc}var $c=null,Zc=null;function ad(){}
110
110
  function bd(a){if(!a)return"";a=Cc(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if(window.TextDecoder&&!Xc())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==
@@ -169,26 +169,26 @@ Pe.prototype.create=function(a){var b=[];b=Qe(a,this.i);var c=a.filter(function(
169
169
  function Re(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.includes(b):0==c.audio.roles.length:!1})}function Se(a,b){return a.filter(function(c){return c.audio?c.audio.label.toLowerCase()==b.toLowerCase():!1})};function Te(){this.g=Ue;this.h=(new Map).set(Ue,2).set(Ve,1)}function We(a,b,c){a.h.set(Ue,c).set(Ve,b)}var Ve=0,Ue=1;function Xe(a,b){var c=Ye();this.l=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.A=null==a.fuzzFactor?c.fuzzFactor:a.fuzzFactor;this.m=null==a.backoffFactor?c.backoffFactor:a.backoffFactor;this.g=0;this.h=this.j;if(this.i=void 0===b?!1:b)this.g=1}
170
170
  function Ze(a){var b,c;return K(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new O(2,7,1010);b=a.g;a.g++;if(0==b)return d.return();c=a.h*(1+(2*Math.random()-1)*a.A);return A(d,new Promise(function(e){(new P(e)).S(c/1E3)}),2)}a.h*=a.m;C(d)})}function Ye(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function $e(a,b){this.promise=a;this.i=b;this.g=!1}function af(a){return new $e(Promise.reject(a),function(){return Promise.resolve()})}function bf(){var a=Promise.reject(new O(2,7,7001));a.catch(function(){});return new $e(a,function(){return Promise.resolve()})}function cf(a){return new $e(Promise.resolve(a),function(){return Promise.resolve()})}function df(a){return new $e(a,function(){return a.catch(function(){})})}$e.prototype.abort=function(){this.g=!0;return this.i()};
171
171
  function ef(a){return new $e(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}$e.prototype.finally=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
172
- $e.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=ff(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new Jc,g=new O(2,7,7001);this.promise.then(c(!0),c(!1));return new $e(f,function(){return d()})};
173
- function ff(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()}}}M("shaka.util.AbortableOperation",$e);$e.prototype.chain=$e.prototype.na;$e.prototype["finally"]=$e.prototype.finally;$e.all=ef;$e.prototype.abort=$e.prototype.abort;$e.notAbortable=df;$e.completed=cf;$e.aborted=bf;$e.failed=af;function gf(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 Set;return b(a)}function hf(a){var b={},c;for(c in a)b[c]=a[c];return b};function jf(){this.g=[]}function kf(a,b){a.g.push(b.finally(function(){bc(a.g,b)}))}jf.prototype.destroy=function(){for(var a=[],b=r(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 lf(a,b,c){db.call(this);this.i=!1;this.m=new jf;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.B=c||null;this.A=!1}u(lf,db);q=lf.prototype;q.Ie=function(a){this.A=a};function mf(a,b,c,d){c=c||nf;var e=of[a];if(!e||c>=e.priority)of[a]={priority:c,eh:b,fh:void 0===d?!1:d}}q.gh=function(a){this.g.add(a)};q.xh=function(a){this.g.delete(a)};q.fg=function(){this.g.clear()};q.hh=function(a){this.h.add(a)};q.yh=function(a){this.h.delete(a)};q.gg=function(){this.h.clear()};
172
+ $e.prototype.oa=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=ff(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new Jc,g=new O(2,7,7001);this.promise.then(c(!0),c(!1));return new $e(f,function(){return d()})};
173
+ function ff(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()}}}M("shaka.util.AbortableOperation",$e);$e.prototype.chain=$e.prototype.oa;$e.prototype["finally"]=$e.prototype.finally;$e.all=ef;$e.prototype.abort=$e.prototype.abort;$e.notAbortable=df;$e.completed=cf;$e.aborted=bf;$e.failed=af;function gf(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 Set;return b(a)}function hf(a){var b={},c;for(c in a)b[c]=a[c];return b};function jf(){this.g=[]}function kf(a,b){a.g.push(b.finally(function(){bc(a.g,b)}))}jf.prototype.destroy=function(){for(var a=[],b=r(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 lf(a,b,c){db.call(this);this.i=!1;this.m=new jf;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.B=c||null;this.A=!1}u(lf,db);q=lf.prototype;q.Ie=function(a){this.A=a};function mf(a,b,c,d){c=c||nf;var e=of[a];if(!e||c>=e.priority)of[a]={priority:c,gh:b,hh:void 0===d?!1:d}}q.ih=function(a){this.g.add(a)};q.Ah=function(a){this.g.delete(a)};q.gg=function(){this.g.clear()};q.jh=function(a){this.h.add(a)};q.Bh=function(a){this.h.delete(a)};q.hg=function(){this.h.clear()};
174
174
  function pf(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===c?null:c}}q.destroy=function(){this.i=!0;this.g.clear();this.h.clear();db.prototype.release.call(this);return this.m.destroy()};
175
- q.request=function(a,b){var c=this,d=new qf;if(this.i){var e=Promise.reject(new O(2,7,7001));e.catch(function(){});return new rf(e,function(){return Promise.resolve()},d)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?gf(b.retryParameters):Ye();b.uris=gf(b.uris);e=sf(this,a,b);var f=e.na(function(){return tf(c,a,b,new Xe(b.retryParameters,!1),0,null,d)}),g=f.na(function(p){return uf(c,a,p)}),h=Date.now(),k=0;e.promise.then(function(){k=Date.now()-h},function(){});
176
- var l=0;f.promise.then(function(){l=Date.now()},function(){});var m=g.na(function(p){var n=Date.now()-l,t=p.response;t.timeMs+=k;t.timeMs+=n;p.Rg||!c.l||t.fromCache||"HEAD"==b.method||a!=vf||c.l(t.timeMs,t.data.byteLength);return t},function(p){p&&(p.severity=2);throw p;});e=new rf(m.promise,function(){return m.abort()},d);kf(this.m,e);return e};
177
- function sf(a,b,c){var d=cf(void 0),e={};a=r(a.g);for(var f=a.next();!f.done;e={Wd:e.Wd},f=a.next())e.Wd=f.value,d=d.na(function(g){return function(){c.body&&(c.body=Dc(c.body));return g.Wd(b,c)}}(e));return d.na(void 0,function(g){if(g instanceof O&&7001==g.code)throw g;throw new O(2,1,1006,g);})}
178
- function tf(a,b,c,d,e,f,g){a.A&&(c.uris[e]=c.uris[e].replace("http://","https://"));var h=new jb(c.uris[e]),k=h.Ya,l=!1;k||(k=location.protocol,k=k.slice(0,-1),kb(h,k),c.uris[e]=h.toString());k=k.toLowerCase();var m=(k=of[k])?k.eh:null;if(!m)return af(new O(2,1,1E3,h));var p=k.fh,n=null,t=null,y=!1,x=!1,v;return df(Ze(d)).na(function(){if(a.i)return bf();v=Date.now();var w=m(c.uris[e],c,b,function(B,G,E){n&&n.stop();t&&t.S(z/1E3);a.l&&b==vf&&(a.l(B,G),l=!0,g.g=E)},function(B){a.j&&a.j(B,c,b);x=!0});
179
- if(!p)return w;var D=c.retryParameters.connectionTimeout;D&&(n=new P(function(){y=!0;w.abort()}),n.S(D/1E3));var z=c.retryParameters.stallTimeout;z&&(t=new P(function(){y=!0;w.abort()}));return w}).na(function(w){n&&n.stop();t&&t.stop();void 0==w.timeMs&&(w.timeMs=Date.now()-v);var D={response:w,Rg:l};!x&&a.j&&a.j(w.headers,c,b);return D},function(w){n&&n.stop();t&&t.stop();if(a.B){var D=null,z=0;w instanceof O&&(D=w,1001==w.code&&(z=w.data[1]));a.B(c,D,z,y)}if(a.i)return bf();y&&(w=new O(1,1,1003,
175
+ q.request=function(a,b){var c=this,d=new qf;if(this.i){var e=Promise.reject(new O(2,7,7001));e.catch(function(){});return new rf(e,function(){return Promise.resolve()},d)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?gf(b.retryParameters):Ye();b.uris=gf(b.uris);e=sf(this,a,b);var f=e.oa(function(){return tf(c,a,b,new Xe(b.retryParameters,!1),0,null,d)}),g=f.oa(function(p){return uf(c,a,p)}),h=Date.now(),k=0;e.promise.then(function(){k=Date.now()-h},function(){});
176
+ var l=0;f.promise.then(function(){l=Date.now()},function(){});var m=g.oa(function(p){var n=Date.now()-l,t=p.response;t.timeMs+=k;t.timeMs+=n;p.Sg||!c.l||t.fromCache||"HEAD"==b.method||a!=vf||c.l(t.timeMs,t.data.byteLength);return t},function(p){p&&(p.severity=2);throw p;});e=new rf(m.promise,function(){return m.abort()},d);kf(this.m,e);return e};
177
+ function sf(a,b,c){var d=cf(void 0),e={};a=r(a.g);for(var f=a.next();!f.done;e={Wd:e.Wd},f=a.next())e.Wd=f.value,d=d.oa(function(g){return function(){c.body&&(c.body=Dc(c.body));return g.Wd(b,c)}}(e));return d.oa(void 0,function(g){if(g instanceof O&&7001==g.code)throw g;throw new O(2,1,1006,g);})}
178
+ function tf(a,b,c,d,e,f,g){a.A&&(c.uris[e]=c.uris[e].replace("http://","https://"));var h=new jb(c.uris[e]),k=h.Ya,l=!1;k||(k=location.protocol,k=k.slice(0,-1),kb(h,k),c.uris[e]=h.toString());k=k.toLowerCase();var m=(k=of[k])?k.gh:null;if(!m)return af(new O(2,1,1E3,h));var p=k.hh,n=null,t=null,y=!1,x=!1,v;return df(Ze(d)).oa(function(){if(a.i)return bf();v=Date.now();var w=m(c.uris[e],c,b,function(B,G,E){n&&n.stop();t&&t.S(z/1E3);a.l&&b==vf&&(a.l(B,G),l=!0,g.g=E)},function(B){a.j&&a.j(B,c,b);x=!0});
179
+ if(!p)return w;var D=c.retryParameters.connectionTimeout;D&&(n=new P(function(){y=!0;w.abort()}),n.S(D/1E3));var z=c.retryParameters.stallTimeout;z&&(t=new P(function(){y=!0;w.abort()}));return w}).oa(function(w){n&&n.stop();t&&t.stop();void 0==w.timeMs&&(w.timeMs=Date.now()-v);var D={response:w,Sg:l};!x&&a.j&&a.j(w.headers,c,b);return D},function(w){n&&n.stop();t&&t.stop();if(a.B){var D=null,z=0;w instanceof O&&(D=w,1001==w.code&&(z=w.data[1]));a.B(c,D,z,y)}if(a.i)return bf();y&&(w=new O(1,1,1003,
180
180
  c.uris[e],b));if(w instanceof O){if(7001==w.code)throw w;if(1010==w.code)throw f;if(1==w.severity)return D=(new Map).set("error",w),D=new N("retry",D),a.dispatchEvent(D),e=(e+1)%c.uris.length,tf(a,b,c,d,e,w,g)}throw w;})}
181
- function uf(a,b,c){var d=cf(void 0),e={};a=r(a.h);for(var f=a.next();!f.done;e={Xd:e.Xd},f=a.next())e.Xd=f.value,d=d.na(function(g){return function(){var h=c.response;h.data&&(h.data=Dc(h.data));return g.Xd(b,h)}}(e));return d.na(function(){return c},function(g){var h=2;if(g instanceof O){if(7001==g.code)throw g;h=g.severity}throw new O(h,1,1007,g);})}M("shaka.net.NetworkingEngine",lf);lf.prototype.request=lf.prototype.request;lf.prototype.destroy=lf.prototype.destroy;lf.makeRequest=pf;
182
- lf.defaultRetryParameters=function(){return Ye()};lf.prototype.clearAllResponseFilters=lf.prototype.gg;lf.prototype.unregisterResponseFilter=lf.prototype.yh;lf.prototype.registerResponseFilter=lf.prototype.hh;lf.prototype.clearAllRequestFilters=lf.prototype.fg;lf.prototype.unregisterRequestFilter=lf.prototype.xh;lf.prototype.registerRequestFilter=lf.prototype.gh;lf.unregisterScheme=function(a){delete of[a]};lf.registerScheme=mf;lf.prototype.setForceHTTPS=lf.prototype.Ie;function qf(){this.g=0}
181
+ function uf(a,b,c){var d=cf(void 0),e={};a=r(a.h);for(var f=a.next();!f.done;e={Xd:e.Xd},f=a.next())e.Xd=f.value,d=d.oa(function(g){return function(){var h=c.response;h.data&&(h.data=Dc(h.data));return g.Xd(b,h)}}(e));return d.oa(function(){return c},function(g){var h=2;if(g instanceof O){if(7001==g.code)throw g;h=g.severity}throw new O(h,1,1007,g);})}M("shaka.net.NetworkingEngine",lf);lf.prototype.request=lf.prototype.request;lf.prototype.destroy=lf.prototype.destroy;lf.makeRequest=pf;
182
+ lf.defaultRetryParameters=function(){return Ye()};lf.prototype.clearAllResponseFilters=lf.prototype.hg;lf.prototype.unregisterResponseFilter=lf.prototype.Bh;lf.prototype.registerResponseFilter=lf.prototype.jh;lf.prototype.clearAllRequestFilters=lf.prototype.gg;lf.prototype.unregisterRequestFilter=lf.prototype.Ah;lf.prototype.registerRequestFilter=lf.prototype.ih;lf.unregisterScheme=function(a){delete of[a]};lf.registerScheme=mf;lf.prototype.setForceHTTPS=lf.prototype.Ie;function qf(){this.g=0}
183
183
  lf.NumBytesRemainingClass=qf;function rf(a,b,c){$e.call(this,a,b);this.h=c}u(rf,$e);lf.PendingRequest=rf;var vf=1;lf.RequestType={MANIFEST:0,SEGMENT:vf,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6};var nf=3;lf.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:nf};var of={};function wf(a){this.g=!1;this.h=new Jc;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 O&&7003==b.code)throw b;throw new O(2,7,7003,b);}};function yf(){this.g=new bb}q=yf.prototype;q.release=function(){this.Sb();this.g=null};q.o=function(a,b,c,d){this.g&&(a=new zf(a,b,c,d),this.g.push(b,a))};q.ya=function(a,b,c,d){function e(g){f.sc(a,b,e);c(g)}var f=this;this.o(a,b,e,d)};q.sc=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=r(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.sc(),this.g.remove(b,e))}};
184
184
  q.Sb=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,ja(a.g[c]));a=r(b);for(b=a.next();!b.done;b=a.next())b.value.sc();this.g.g={}}};M("shaka.util.EventManager",yf);yf.prototype.removeAll=yf.prototype.Sb;yf.prototype.unlisten=yf.prototype.sc;yf.prototype.listenOnce=yf.prototype.ya;yf.prototype.listen=yf.prototype.o;yf.prototype.release=yf.prototype.release;function zf(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=Af(a,d);this.target.addEventListener(b,c,this.g)}
185
185
  zf.prototype.sc=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function Af(a,b){if(void 0==b)return!1;if("boolean"==typeof b)return b;var c=new Set(["passive","capture"]);Object.keys(b).filter(function(d){return!c.has(d)});return Bf(a)?b:b.capture||!1}
186
- function Bf(a){var b=Cf;if(void 0==b){b=!1;try{var c={},d={get:function(){b=!0;return!1}};Object.defineProperty(c,"passive",d);Object.defineProperty(c,"capture",d);d=function(){};a.addEventListener("test",d,c);a.removeEventListener("test",d,c)}catch(e){b=!1}Cf=b}return b||!1}var Cf=void 0;function Df(a){for(var b=new Map,c=r(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function Ef(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function Ff(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;a=r(a);for(var c=a.next();!c.done;c=a.next()){var d=r(c.value);c=d.next().value;d=d.next().value;if(!b.has(c))return!1;c=b.get(c);if(c!=d||void 0==c)return!1}return!0};function Gf(a,b){this.W=Fc(a);this.h=b==Hf;this.g=0}q=Gf.prototype;q.Ea=function(){return this.g<this.W.byteLength};q.oa=function(){return this.g};q.yg=function(){return this.W.byteLength};q.qb=function(){try{var a=this.W.getUint8(this.g);this.g+=1;return a}catch(b){throw If();}};q.xe=function(){try{var a=this.W.getUint16(this.g,this.h);this.g+=2;return a}catch(b){throw If();}};q.R=function(){try{var a=this.W.getUint32(this.g,this.h);this.g+=4;return a}catch(b){throw If();}};
187
- q.If=function(){try{var a=this.W.getInt32(this.g,this.h);this.g+=4;return a}catch(b){throw If();}};q.qc=function(){try{if(this.h){var a=this.W.getUint32(this.g,!0);var b=this.W.getUint32(this.g+4,!0)}else b=this.W.getUint32(this.g,!1),a=this.W.getUint32(this.g+4,!1)}catch(c){throw If();}if(2097151<b)throw new O(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};q.Cb=function(a){if(this.g+a>this.W.byteLength)throw If();var b=Cc(this.W,this.g,a);this.g+=a;return b};
188
- q.skip=function(a){if(this.g+a>this.W.byteLength)throw If();this.g+=a};q.oh=function(a){if(this.g<a)throw If();this.g-=a};q.seek=function(a){if(0>a||a>this.W.byteLength)throw If();this.g=a};q.Uc=function(){for(var a=this.g;this.Ea()&&0!=this.W.getUint8(this.g);)this.g+=1;a=Cc(this.W,a,this.g-a);this.g+=1;return bd(a)};function If(){return new O(2,3,3E3)}M("shaka.util.DataViewReader",Gf);Gf.prototype.readTerminatedString=Gf.prototype.Uc;Gf.prototype.seek=Gf.prototype.seek;Gf.prototype.rewind=Gf.prototype.oh;
189
- Gf.prototype.skip=Gf.prototype.skip;Gf.prototype.readBytes=Gf.prototype.Cb;Gf.prototype.readUint64=Gf.prototype.qc;Gf.prototype.readInt32=Gf.prototype.If;Gf.prototype.readUint32=Gf.prototype.R;Gf.prototype.readUint16=Gf.prototype.xe;Gf.prototype.readUint8=Gf.prototype.qb;Gf.prototype.getLength=Gf.prototype.yg;Gf.prototype.getPosition=Gf.prototype.oa;Gf.prototype.hasMoreData=Gf.prototype.Ea;var Hf=1;Gf.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Hf};function Jf(){this.i=[];this.h=[];this.g=!1}q=Jf.prototype;q.box=function(a,b){a=Kf(a);this.i[a]=Lf;this.h[a]=b;return this};q.X=function(a,b){a=Kf(a);this.i[a]=Mf;this.h[a]=b;return this};q.stop=function(){this.g=!0};q.parse=function(a,b,c){a=new Gf(a,0);for(this.g=!1;a.Ea()&&!this.g;)this.Dd(0,a,b,c)};
190
- q.Dd=function(a,b,c,d){var e=b.oa();if(d&&e+8>b.W.byteLength)this.g=!0;else{var f=b.R(),g=b.R(),h=!1;switch(f){case 0:f=b.W.byteLength-e;break;case 1:if(d&&b.oa()+8>b.W.byteLength){this.g=!0;return}f=b.qc();h=!0}var k=this.h[g];if(k){var l=null,m=null;if(this.i[g]==Mf){if(d&&b.oa()+4>b.W.byteLength){this.g=!0;return}m=b.R();l=m>>>24;m&=16777215}g=e+f;c&&g>b.W.byteLength&&(g=b.W.byteLength);d&&g>b.W.byteLength?this.g=!0:(d=g-b.oa(),b=0<d?b.Cb(d):new Uint8Array(0),b=new Gf(b,0),k({parser:this,partialOkay:c||
191
- !1,version:l,flags:m,reader:b,size:f,start:e+a,has64BitSize:h}))}else b.skip(Math.min(e+f-b.oa(),b.W.byteLength-b.oa()))}};function Nf(a){for(var b=Of(a);a.reader.Ea()&&!a.parser.g;)a.parser.Dd(a.start+b,a.reader,a.partialOkay)}function Pf(a){for(var b=Of(a),c=a.reader.R(),d=0;d<c&&(a.parser.Dd(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function Qf(a){return function(b){a(b.reader.Cb(b.reader.W.byteLength-b.reader.oa()))}}
186
+ function Bf(a){var b=Cf;if(void 0==b){b=!1;try{var c={},d={get:function(){b=!0;return!1}};Object.defineProperty(c,"passive",d);Object.defineProperty(c,"capture",d);d=function(){};a.addEventListener("test",d,c);a.removeEventListener("test",d,c)}catch(e){b=!1}Cf=b}return b||!1}var Cf=void 0;function Df(a){for(var b=new Map,c=r(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function Ef(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function Ff(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;a=r(a);for(var c=a.next();!c.done;c=a.next()){var d=r(c.value);c=d.next().value;d=d.next().value;if(!b.has(c))return!1;c=b.get(c);if(c!=d||void 0==c)return!1}return!0};function Gf(a,b){this.W=Fc(a);this.h=b==Hf;this.g=0}q=Gf.prototype;q.Ea=function(){return this.g<this.W.byteLength};q.qa=function(){return this.g};q.zg=function(){return this.W.byteLength};q.qb=function(){try{var a=this.W.getUint8(this.g);this.g+=1;return a}catch(b){throw If();}};q.xe=function(){try{var a=this.W.getUint16(this.g,this.h);this.g+=2;return a}catch(b){throw If();}};q.R=function(){try{var a=this.W.getUint32(this.g,this.h);this.g+=4;return a}catch(b){throw If();}};
187
+ q.Jf=function(){try{var a=this.W.getInt32(this.g,this.h);this.g+=4;return a}catch(b){throw If();}};q.qc=function(){try{if(this.h){var a=this.W.getUint32(this.g,!0);var b=this.W.getUint32(this.g+4,!0)}else b=this.W.getUint32(this.g,!1),a=this.W.getUint32(this.g+4,!1)}catch(c){throw If();}if(2097151<b)throw new O(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};q.Cb=function(a){if(this.g+a>this.W.byteLength)throw If();var b=Cc(this.W,this.g,a);this.g+=a;return b};
188
+ q.skip=function(a){if(this.g+a>this.W.byteLength)throw If();this.g+=a};q.qh=function(a){if(this.g<a)throw If();this.g-=a};q.seek=function(a){if(0>a||a>this.W.byteLength)throw If();this.g=a};q.Uc=function(){for(var a=this.g;this.Ea()&&0!=this.W.getUint8(this.g);)this.g+=1;a=Cc(this.W,a,this.g-a);this.g+=1;return bd(a)};function If(){return new O(2,3,3E3)}M("shaka.util.DataViewReader",Gf);Gf.prototype.readTerminatedString=Gf.prototype.Uc;Gf.prototype.seek=Gf.prototype.seek;Gf.prototype.rewind=Gf.prototype.qh;
189
+ Gf.prototype.skip=Gf.prototype.skip;Gf.prototype.readBytes=Gf.prototype.Cb;Gf.prototype.readUint64=Gf.prototype.qc;Gf.prototype.readInt32=Gf.prototype.Jf;Gf.prototype.readUint32=Gf.prototype.R;Gf.prototype.readUint16=Gf.prototype.xe;Gf.prototype.readUint8=Gf.prototype.qb;Gf.prototype.getLength=Gf.prototype.zg;Gf.prototype.getPosition=Gf.prototype.qa;Gf.prototype.hasMoreData=Gf.prototype.Ea;var Hf=1;Gf.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Hf};function Jf(){this.i=[];this.h=[];this.g=!1}q=Jf.prototype;q.box=function(a,b){a=Kf(a);this.i[a]=Lf;this.h[a]=b;return this};q.X=function(a,b){a=Kf(a);this.i[a]=Mf;this.h[a]=b;return this};q.stop=function(){this.g=!0};q.parse=function(a,b,c){a=new Gf(a,0);for(this.g=!1;a.Ea()&&!this.g;)this.Dd(0,a,b,c)};
190
+ q.Dd=function(a,b,c,d){var e=b.qa();if(d&&e+8>b.W.byteLength)this.g=!0;else{var f=b.R(),g=b.R(),h=!1;switch(f){case 0:f=b.W.byteLength-e;break;case 1:if(d&&b.qa()+8>b.W.byteLength){this.g=!0;return}f=b.qc();h=!0}var k=this.h[g];if(k){var l=null,m=null;if(this.i[g]==Mf){if(d&&b.qa()+4>b.W.byteLength){this.g=!0;return}m=b.R();l=m>>>24;m&=16777215}g=e+f;c&&g>b.W.byteLength&&(g=b.W.byteLength);d&&g>b.W.byteLength?this.g=!0:(d=g-b.qa(),b=0<d?b.Cb(d):new Uint8Array(0),b=new Gf(b,0),k({parser:this,partialOkay:c||
191
+ !1,version:l,flags:m,reader:b,size:f,start:e+a,has64BitSize:h}))}else b.skip(Math.min(e+f-b.qa(),b.W.byteLength-b.qa()))}};function Nf(a){for(var b=Of(a);a.reader.Ea()&&!a.parser.g;)a.parser.Dd(a.start+b,a.reader,a.partialOkay)}function Pf(a){for(var b=Of(a),c=a.reader.R(),d=0;d<c&&(a.parser.Dd(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function Qf(a){return function(b){a(b.reader.Cb(b.reader.W.byteLength-b.reader.qa()))}}
192
192
  function Kf(a){var b=0;a=r(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function Rf(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function Of(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}M("shaka.util.Mp4Parser",Jf);Jf.headerSize=Of;Jf.typeToString=Rf;Jf.allData=Qf;Jf.sampleDescription=Pf;Jf.children=Nf;Jf.prototype.parseNext=Jf.prototype.Dd;Jf.prototype.parse=Jf.prototype.parse;Jf.prototype.stop=Jf.prototype.stop;
193
193
  Jf.prototype.fullBox=Jf.prototype.X;Jf.prototype.box=Jf.prototype.box;var Lf=0,Mf=1;function Sf(a){var b=this;this.g=[];this.h=[];this.data=[];(new Jf).box("moov",Nf).box("moof",Nf).X("pssh",function(c){if(!(1<c.version)){var d=Cc(c.reader.W,-12,c.size);b.data.push(d);b.g.push(md(c.reader.Cb(16)));if(0<c.version){d=c.reader.R();for(var e=0;e<d;e++){var f=md(c.reader.Cb(16));b.h.push(f)}}}}).parse(a)}
194
194
  function Tf(a,b,c,d){var e=a.length,f=b.length+16+e;0<d&&(f+=4+16*c.size);var g=new Uint8Array(f),h=Fc(g),k=0;h.setUint32(k,f);k+=4;h.setUint32(k,1886614376);k+=4;1>d?h.setUint32(k,0):h.setUint32(k,16777216);k+=4;g.set(b,k);k+=b.length;if(0<d)for(h.setUint32(k,c.size),k+=4,b=r(c),c=b.next();!c.done;c=b.next())c=ld(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};function Uf(a,b){a=Vf(a,b);return 1!=a.length?null:a[0]}function Wf(a,b,c){a=Xf(a,b,c);return 1!=a.length?null:a[0]}function Vf(a,b){var c=[];a=r(a.childNodes);for(var d=a.next();!d.done;d=a.next())d=d.value,d instanceof Element&&d.tagName==b&&c.push(d);return c}function Yf(a){return Array.from(a.childNodes).filter(function(b){return b instanceof Element})}
@@ -197,42 +197,43 @@ function bg(a){return a.nodeType==Node.TEXT_NODE||a.nodeType==Node.CDATA_SECTION
197
197
  function eg(a){if(!a)return null;a=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$").exec(a);if(!a)return null;a=31536E3*Number(a[1]||null)+2592E3*Number(a[2]||null)+86400*Number(a[3]||null)+3600*Number(a[4]||null)+60*Number(a[5]||null)+Number(a[6]||null);return isFinite(a)?a:null}
198
198
  function fg(a){var b=/([0-9]+)-([0-9]+)/.exec(a);if(!b)return null;a=Number(b[1]);if(!isFinite(a))return null;b=Number(b[2]);return isFinite(b)?{start:a,end:b}:null}function gg(a){a=Number(a);return 0===a%1?a:null}function hg(a){a=Number(a);return 0===a%1&&0<a?a:null}function ig(a){a=Number(a);return 0===a%1&&0<=a?a:null}function jg(a){a=Number(a);return isNaN(a)?null:a}function kg(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c}
199
199
  function lg(a,b){var c=new DOMParser,d=mg.value()(a);a=null;try{a=c.parseFromString(d,"text/xml")}catch(e){return null}c=a.documentElement;if(!c||c.getElementsByTagName("parsererror").length||c.tagName!=b)return null;for(b=document.createNodeIterator(a,NodeFilter.SHOW_ALL);a=b.nextNode();)if(a instanceof HTMLElement||a instanceof SVGElement)return null;return c}function ng(a,b){try{var c=bd(a);return lg(c,b)}catch(d){return null}}
200
- var mg=new Kc(function(){if("undefined"!==typeof trustedTypes){var a=trustedTypes.createPolicy("shaka-player#xml",{createHTML:function(b){return b}});return function(b){return a.createHTML(b)}}return function(b){return b}});function og(a,b){var c=this;b=void 0===b?1:b;this.G=a;this.I=new Set;this.l=this.C=null;this.ba=this.$=!1;this.J=0;this.g=null;this.B=new yf;this.i=new Map;this.F=[];this.A=new Jc;this.h=null;this.m=function(d){c.A.reject(d);a.onError(d)};this.ea=new Map;this.aa=new Map;this.T=new P(function(){return pg(c)});this.N=!1;this.K=[];this.P=!1;this.va=(new P(function(){qg(c)})).ka(b);this.A.catch(function(){});this.j=new wf(function(){return rg(c)});this.Z=!1;this.H=null}q=og.prototype;q.destroy=function(){return this.j.destroy()};
201
- function rg(a){return K(function(b){switch(b.g){case 1:return a.B.release(),a.B=null,a.A.reject(),a.va.stop(),a.va=null,a.T.stop(),a.T=null,A(b,ug(a),2);case 2:if(!a.l){b.D(3);break}F(b,4);return A(b,a.l.setMediaKeys(null),6);case 6:va(b,5);break;case 4:J(b);case 5:a.l=null;case 3:a.g=null,a.I.clear(),a.C=null,a.F=[],a.h=null,a.m=function(){},a.G=null,a.Z=!1,a.H=null,C(b)}})}q.configure=function(a){this.h=a};function vg(a,b,c){a.ba=!0;a.F=[];a.N=c;return wg(a,b)}
202
- function xg(a,b,c){a.F=c;a.N=0<c.length;return wg(a,b)}function yg(a,b,c,d,e,f){var g=new Map;e={audioCapabilities:e,videoCapabilities:f,distinctiveIdentifier:"optional",persistentState:"required",sessionTypes:["persistent-license"],label:b};e.drmInfos=[{keySystem:b,licenseServerUri:c,distinctiveIdentifierRequired:!1,persistentStateRequired:!0,audioRobustness:"",videoRobustness:"",serverCertificate:d,serverCertificateUri:"",initData:null,keyIds:null}];g.set(b,e);return zg(a,g,[])}
200
+ var mg=new Kc(function(){if("undefined"!==typeof trustedTypes){var a=trustedTypes.createPolicy("shaka-player#xml",{createHTML:function(b){return b}});return function(b){return a.createHTML(b)}}return function(b){return b}});function og(a,b){var c=this;b=void 0===b?1:b;this.G=a;this.I=new Set;this.l=this.C=null;this.ea=this.aa=!1;this.J=0;this.g=null;this.B=new yf;this.i=new Map;this.F=[];this.A=new Jc;this.h=null;this.m=function(d){c.A.reject(d);a.onError(d)};this.ha=new Map;this.va=new Map;this.Z=new P(function(){return pg(c)});this.P=!1;this.N=[];this.T=!1;this.ba=(new P(function(){qg(c)})).na(b);this.A.catch(function(){});this.j=new wf(function(){return rg(c)});this.$=!1;this.K=this.H=null}q=og.prototype;
201
+ q.destroy=function(){return this.j.destroy()};function rg(a){return K(function(b){switch(b.g){case 1:return a.B.release(),a.B=null,a.A.reject(),a.ba.stop(),a.ba=null,a.Z.stop(),a.Z=null,A(b,ug(a),2);case 2:if(!a.l){b.D(3);break}F(b,4);return A(b,a.l.setMediaKeys(null),6);case 6:va(b,5);break;case 4:J(b);case 5:a.l=null;case 3:a.g=null,a.I.clear(),a.C=null,a.F=[],a.h=null,a.m=function(){},a.G=null,a.$=!1,a.H=null,C(b)}})}q.configure=function(a){this.h=a};
202
+ function vg(a,b,c){a.ea=!0;a.F=[];a.P=c;return wg(a,b)}function xg(a,b,c){a.F=c;a.P=0<c.length;return wg(a,b)}
203
+ function yg(a,b,c,d,e,f){var g=new Map;e={audioCapabilities:e,videoCapabilities:f,distinctiveIdentifier:"optional",persistentState:"required",sessionTypes:["persistent-license"],label:b};e.drmInfos=[{keySystem:b,licenseServerUri:c,distinctiveIdentifierRequired:!1,persistentStateRequired:!0,audioRobustness:"",videoRobustness:"",serverCertificate:d,serverCertificateUri:"",initData:null,keyIds:null}];g.set(b,e);return zg(a,g,[])}
203
204
  function wg(a,b){var c,d,e,f,g,h,k,l,m,p,n,t,y,x;return K(function(v){if(1==v.g){if(c=Ag(a))for(d=r(b),e=d.next();!e.done;e=d.next())f=e.value,f.video&&(f.video.drmInfos=[c]),f.audio&&(f.audio.drmInfos=[c]);g=b.some(function(w){return w.video&&w.video.drmInfos.length||w.audio&&w.audio.drmInfos.length?!0:!1});g||(h=Df(a.h.servers),Bg(b,h));k=r(b);for(e=k.next();!e.done;e=k.next())for(l=e.value,m=Cg(l),p=r(m),n=p.next();!n.done;n=p.next())t=n.value,Dg(t,Df(a.h.servers),Df(a.h.advanced||{}),a.h.keySystemsMapping);
204
- return A(v,ee(b,a.N,a.Z),2)}y=g||Object.keys(a.h.servers).length;if(!y)return a.$=!0,v.return(Promise.resolve());x=zg(a,void 0,b);return v.return(g?x:x.catch(function(){}))})}function Eg(a){var b;return K(function(c){switch(c.g){case 1:if(a.l.mediaKeys)return c.return();if(!a.H){c.D(2);break}return A(c,a.H,3);case 3:return xf(a.j),c.return();case 2:return F(c,4),a.H=a.l.setMediaKeys(a.C),A(c,a.H,6);case 6:va(c,5);break;case 4:b=J(c),a.m(new O(2,6,6003,b.message));case 5:xf(a.j),C(c)}})}
205
+ return A(v,ee(b,a.P,a.$),2)}y=g||Object.keys(a.h.servers).length;if(!y)return a.aa=!0,v.return(Promise.resolve());x=zg(a,void 0,b);return v.return(g?x:x.catch(function(){}))})}function Eg(a){var b;return K(function(c){switch(c.g){case 1:if(a.l.mediaKeys)return c.return();if(!a.H){c.D(2);break}return A(c,a.H,3);case 3:return xf(a.j),c.return();case 2:return F(c,4),a.H=a.l.setMediaKeys(a.C),A(c,a.H,6);case 6:va(c,5);break;case 4:b=J(c),a.m(new O(2,6,6003,b.message));case 5:xf(a.j),C(c)}})}
205
206
  function Fg(a,b){return K(function(c){if(1==c.g)return A(c,Eg(a),2);Gg(a,b.initDataType,Cc(b.initData));C(c)})}
206
- q.Cc=function(a){var b=this,c;return K(function(d){if(1==d.g){if(!b.C)return b.B.ya(a,"encrypted",function(){b.m(new O(2,6,6010))}),d.return();b.l=a;b.B.ya(b.l,"play",function(){for(var e=r(b.K),f=e.next();!f.done;f=e.next())Hg(b,f.value);b.P=!0;b.K=[]});"webkitCurrentPlaybackTargetIsWireless"in b.l&&b.B.o(b.l,"webkitcurrentplaybacktargetiswirelesschanged",function(){return ug(b)});return(c=b.g?b.g.initData.find(function(e){return 0<e.initData.length}):null)||"com.apple.fps"!==b.g.keySystem||b.F.length?
207
- A(d,Eg(b),2):d.D(2)}Ig(b);c||b.F.length||b.h.parseInbandPsshEnabled||b.B.o(b.l,"encrypted",function(e){return Fg(b,e)});C(d)})};
207
+ q.Cc=function(a){var b=this;return K(function(c){if(1==c.g){if(!b.C)return b.B.ya(a,"encrypted",function(){b.m(new O(2,6,6010))}),c.return();b.l=a;b.B.ya(b.l,"play",function(){for(var d=r(b.N),e=d.next();!e.done;e=d.next())Hg(b,e.value);b.T=!0;b.N=[]});"webkitCurrentPlaybackTargetIsWireless"in b.l&&b.B.o(b.l,"webkitcurrentplaybacktargetiswirelesschanged",function(){return ug(b)});b.K=b.g?b.g.initData.find(function(d){return 0<d.initData.length})||null:null;return b.K||"com.apple.fps"!==b.g.keySystem||
208
+ b.F.length?A(c,Eg(b),2):c.D(2)}Ig(b);b.K||b.F.length||b.h.parseInbandPsshEnabled||b.B.o(b.l,"encrypted",function(d){return Fg(b,d)});C(c)})};
208
209
  function Jg(a){var b,c,d,e,f;return K(function(g){switch(g.g){case 1:if(!a.C||!a.g)return g.return();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.D(2);break}b=pf([a.g.serverCertificateUri],a.h.retryParameters);F(g,3);c=a.G.Pb.request(5,b);return A(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=Cc(d.data);va(g,4);break;case 3:throw e=J(g),new O(2,6,6017,e);case 4:if(a.j.g)return g.return();case 2:if(!a.g.serverCertificate||!a.g.serverCertificate.length)return g.return();
209
210
  F(g,6);return A(g,a.C.setServerCertificate(a.g.serverCertificate),8);case 8:va(g,0);break;case 6:throw f=J(g),new O(2,6,6004,f.message);}})}function Kg(a,b){var c,d,e;return K(function(f){if(1==f.g)return A(f,Lg(a,b),2);if(3!=f.g){c=f.h;if(!c)return f.return();d=[];if(e=a.i.get(c))e.eb=new Jc,d.push(e.eb);d.push(c.remove());return A(f,Promise.all(d),3)}a.i.delete(c);C(f)})}
210
211
  function Ig(a){for(var b=(a.g?a.g.initData:[])||[],c=r(b),d=c.next();!d.done;d=c.next())d=d.value,Gg(a,d.initDataType,d.initData);c=r(a.F);for(d=c.next();!d.done;d=c.next())Lg(a,d.value);b.length||a.F.length||a.A.resolve();return a.A}function Gg(a,b,c){if(c.length){var d=a.i.values();d=r(d);for(var e=d.next();!e.done;e=d.next())if(Ac(c,e.value.initData)&&!Qc("Tizen 2"))return;0<a.i.size&&Mg(a)&&(a.A.resolve(),a.A=new Jc,a.A.catch(function(){}));Ng(a,b,c,a.g.sessionType)}}
211
- function Og(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function Pg(a){a=a.i.keys();a=eb(a,function(b){return b.sessionId});return Array.from(a)}q.Hc=function(){var a=Infinity,b=this.i.keys();b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a};q.pd=function(){return Ef(this.aa)};
212
+ function Og(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function Pg(a){a=a.i.keys();a=eb(a,function(b){return b.sessionId});return Array.from(a)}q.Hc=function(){var a=Infinity,b=this.i.keys();b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a};q.pd=function(){return Ef(this.va)};
212
213
  function zg(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,y,x;return K(function(v){switch(v.g){case 1:d=new Map;if(c.length){e=Qg(a,c,d);v.D(2);break}return A(v,Rg(a,b),3);case 3:e=v.h;case 2:f=e;if(!f)throw new O(2,6,6001);xf(a.j);F(v,4);a.I.clear();g=f.getConfiguration();h=g.audioCapabilities||[];k=g.videoCapabilities||[];l=r(h);for(m=l.next();!m.done;m=l.next())p=m.value,a.I.add(p.contentType.toLowerCase());n=r(k);for(m=n.next();!m.done;m=n.next())t=m.value,a.I.add(t.contentType.toLowerCase());if(c.length){var w=
213
- f.keySystem;var D=d.get(f.keySystem);var z=[],B=[],G=[],E=[],H=new Set;Sg(D,z,G,B,E,H);var I=a.N?"persistent-license":"temporary";w={keySystem:w,licenseServerUri:z[0],distinctiveIdentifierRequired:D[0].distinctiveIdentifierRequired,persistentStateRequired:D[0].persistentStateRequired,sessionType:D[0].sessionType||I,audioRobustness:D[0].audioRobustness||"",videoRobustness:D[0].videoRobustness||"",serverCertificate:G[0],serverCertificateUri:B[0],initData:E,keyIds:H};D=r(D);for(z=D.next();!z.done;z=
214
+ f.keySystem;var D=d.get(f.keySystem);var z=[],B=[],G=[],E=[],H=new Set;Sg(D,z,G,B,E,H);var I=a.P?"persistent-license":"temporary";w={keySystem:w,licenseServerUri:z[0],distinctiveIdentifierRequired:D[0].distinctiveIdentifierRequired,persistentStateRequired:D[0].persistentStateRequired,sessionType:D[0].sessionType||I,audioRobustness:D[0].audioRobustness||"",videoRobustness:D[0].videoRobustness||"",serverCertificate:G[0],serverCertificateUri:B[0],initData:E,keyIds:H};D=r(D);for(z=D.next();!z.done;z=
214
215
  D.next())z=z.value,z.distinctiveIdentifierRequired&&(w.distinctiveIdentifierRequired=z.distinctiveIdentifierRequired),z.persistentStateRequired&&(w.persistentStateRequired=z.persistentStateRequired);D=w}else D=f.keySystem,w=b.get(f.keySystem),z=[],B=[],G=[],E=[],H=new Set,Sg(w.drmInfos,z,G,B,E,H),D={keySystem:D,licenseServerUri:z[0],distinctiveIdentifierRequired:"required"==w.distinctiveIdentifier,persistentStateRequired:"required"==w.persistentState,sessionType:w.sessionTypes[0]||"temporary",audioRobustness:(w.audioCapabilities?
215
- w.audioCapabilities[0].robustness:"")||"",videoRobustness:(w.videoCapabilities?w.videoCapabilities[0].robustness:"")||"",serverCertificate:G[0],serverCertificateUri:B[0],initData:E,keyIds:H};a.g=D;if(!a.g.licenseServerUri)throw new O(2,6,6012,a.g.keySystem);return A(v,f.createMediaKeys(),6);case 6:return y=v.h,xf(a.j),a.C=y,a.$=!0,A(v,Jg(a),7);case 7:xf(a.j);va(v,0);break;case 4:x=J(v);xf(a.j,x);a.g=null;a.I.clear();if(x instanceof O)throw x;throw new O(2,6,6002,x.message);}})}
216
+ w.audioCapabilities[0].robustness:"")||"",videoRobustness:(w.videoCapabilities?w.videoCapabilities[0].robustness:"")||"",serverCertificate:G[0],serverCertificateUri:B[0],initData:E,keyIds:H};a.g=D;if(!a.g.licenseServerUri)throw new O(2,6,6012,a.g.keySystem);return A(v,f.createMediaKeys(),6);case 6:return y=v.h,xf(a.j),a.C=y,a.aa=!0,A(v,Jg(a),7);case 7:xf(a.j);va(v,0);break;case 4:x=J(v);xf(a.j,x);a.g=null;a.I.clear();if(x instanceof O)throw x;throw new O(2,6,6002,x.message);}})}
216
217
  function Qg(a,b,c){for(var d=r(b),e=d.next();!e.done;e=d.next()){var f=r(Cg(e.value));for(e=f.next();!e.done;e=f.next())e=e.value,c.has(e.keySystem)||c.set(e.keySystem,[]),c.get(e.keySystem).push(e)}if(1==c.size&&c.has(""))throw new O(2,6,6E3);d={};a=r(a.h.preferredKeySystems);for(e=a.next();!e.done;d={Ud:d.Ud},e=a.next())for(d.Ud=e.value,f=r(b),e=f.next();!e.done;e=f.next())if(e=e.value.decodingInfos.find(function(l){return function(m){return m.supported&&null!=m.keySystemAccess&&m.keySystemAccess.keySystem==
217
218
  l.Ud}}(d)))return e.keySystemAccess;a=r([!0,!1]);for(e=a.next();!e.done;e=a.next())for(d=e.value,f=r(b),e=f.next();!e.done;e=f.next()){var g=r(e.value.decodingInfos);for(e=g.next();!e.done;e=g.next()){var h=e.value;if(h.supported&&h.keySystemAccess){e=c.get(h.keySystemAccess.keySystem);var k=r(e);for(e=k.next();!e.done;e=k.next())if(!!e.value.licenseServerUri==d)return h.keySystemAccess}}}return null}
218
219
  function Rg(a,b){var c,d,e,f,g,h,k,l,m,p,n,t,y,x,v;return K(function(w){switch(w.g){case 1:if(1==b.size&&b.has(""))throw new O(2,6,6E3);d=r(b.values());for(e=d.next();!e.done;e=d.next())f=e.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;g=r(a.h.preferredKeySystems);h=g.next();case 2:if(h.done){w.D(4);break}k=h.value;if(!b.has(k)){w.D(3);break}l=b.get(k);F(w,6);return A(w,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c=
219
220
  w.h,w.return(c);case 6:J(w);case 7:xf(a.j);case 3:h=g.next();w.D(2);break;case 4:m=r([!0,!1]),p=m.next();case 9:if(p.done){w.D(11);break}n=p.value;t=r(b.keys());h=t.next();case 12:if(h.done){p=m.next();w.D(9);break}y=h.value;x=b.get(y);v=x.drmInfos.some(function(D){return!!D.licenseServerUri});if(v!=n){w.D(13);break}F(w,15);return A(w,navigator.requestMediaKeySystemAccess(y,[x]),17);case 17:return c=w.h,w.return(c);case 15:J(w);case 16:xf(a.j);case 13:h=t.next();w.D(12);break;case 11:return w.return(c)}})}
220
221
  function Ag(a){a=Df(a.h.clearKeys);if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){f=ld(f);e=ld(e);e={kty:"oct",kid:jd(f,!1),k:jd(e,!1)};b.push(e);c.push(e.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:Cc(fd(d)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
221
222
  serverCertificateUri:"",sessionType:"",initData:d,keyIds:new Set(c)}}
222
- function Lg(a,b){var c,d,e,f,g;return K(function(h){switch(h.g){case 1:try{c=a.C.createSession("persistent-license")}catch(k){return d=new O(2,6,6005,k.message),a.m(d),h.return(Promise.reject(d))}a.B.o(c,"message",function(k){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.P?a.K.push(k):Hg(a,k)});a.B.o(c,"keystatuseschange",function(k){return Tg(a,k)});e={initData:null,initDataType:null,loaded:!1,ue:Infinity,eb:null,type:"persistent-license"};a.i.set(c,e);F(h,2);return A(h,c.load(b),4);case 4:f=
223
+ function Lg(a,b){var c,d,e,f,g;return K(function(h){switch(h.g){case 1:try{c=a.C.createSession("persistent-license")}catch(k){return d=new O(2,6,6005,k.message),a.m(d),h.return(Promise.reject(d))}a.B.o(c,"message",function(k){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.T?a.N.push(k):Hg(a,k)});a.B.o(c,"keystatuseschange",function(k){return Tg(a,k)});e={initData:null,initDataType:null,loaded:!1,ue:Infinity,eb:null,type:"persistent-license"};a.i.set(c,e);F(h,2);return A(h,c.load(b),4);case 4:f=
223
224
  h.h;xf(a.j);if(!f)return a.i.delete(c),a.m(new O(2,6,6013)),h.return(Promise.resolve());e.loaded=!0;Mg(a)&&a.A.resolve();return h.return(c);case 2:g=J(h),xf(a.j,g),a.i.delete(c),a.m(new O(2,6,6005,g.message));case 3:return h.return(Promise.resolve())}})}
224
- function Ng(a,b,c,d){try{var e=a.C.createSession(d)}catch(f){a.m(new O(2,6,6005,f.message));return}a.B.o(e,"message",function(f){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.P?a.K.push(f):Hg(a,f)});a.B.o(e,"keystatuseschange",function(f){return Tg(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,ue:Infinity,eb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof O||(b=new O(2,6,6016,f));a.m(b);return}a.h.logLicenseExchange&&jd(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);
225
+ function Ng(a,b,c,d){try{var e=a.C.createSession(d)}catch(f){a.m(new O(2,6,6005,f.message));return}a.B.o(e,"message",function(f){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.T?a.N.push(f):Hg(a,f)});a.B.o(e,"keystatuseschange",function(f){return Tg(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,ue:Infinity,eb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof O||(b=new O(2,6,6016,f));a.m(b);return}a.h.logLicenseExchange&&jd(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);
225
226
  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.m(new O(2,6,6006,f.message,f,h))}})}
226
227
  function Hg(a,b){var c,d,e,f,g,h,k,l,m,p,n,t,y,x;K(function(v){switch(v.g){case 1:return c=b.target,a.h.logLicenseExchange&&jd(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=pf([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),
227
228
  Og(a.g.keySystem)&&Ug(g),h=Date.now(),F(v,2),l=a.G.Pb.request(2,g),A(v,l.promise,4);case 4:k=v.h;va(v,3);break;case 2:return m=J(v),p=new O(2,6,6007,m),a.m(p),d&&d.eb&&d.eb.reject(p),v.return();case 3:if(a.j.g)return v.return();a.J+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&jd(k.data);F(v,5);return A(v,c.update(k.data),7);case 7:va(v,6);break;case 5:return n=J(v),t=new O(2,6,6008,n.message),a.m(t),d&&d.eb&&d.eb.reject(t),v.return();case 6:if(a.j.g)return v.return();y=new N("drmsessionupdate");a.G.onEvent(y);
228
229
  d&&(d.eb&&d.eb.resolve(),x=new P(function(){d.loaded=!0;Mg(a)&&a.A.resolve()}),x.S(Vg));C(v)}})}
229
230
  function Ug(a){var b=cd(a.body,!0,!0);if(b.includes("PlayReadyKeyMessage")){b=lg(b,"PlayReadyKeyMessage");for(var c=r(b.getElementsByTagName("HttpHeader")),d=c.next();!d.done;d=c.next())d=d.value,a.headers[d.getElementsByTagName("name")[0].textContent]=d.getElementsByTagName("value")[0].textContent;a.body=kd(b.getElementsByTagName("Challenge")[0].textContent)}else a.headers["Content-Type"]="text/xml; charset=utf-8"}
230
- function Tg(a,b){b=b.target;var c=a.i.get(b),d=!1;b.keyStatuses.forEach(function(f,g){if("string"==typeof g){var h=g;g=f;f=h}if(Og(a.g.keySystem)&&16==g.byteLength&&(navigator.userAgent.match(/Edge?\//)||Xc())){h=Fc(g);var k=h.getUint32(0,!0),l=h.getUint16(4,!0),m=h.getUint16(6,!0);h.setUint32(0,k,!1);h.setUint16(4,l,!1);h.setUint16(6,m,!1)}"status-pending"!=f&&(c.loaded=!0);"expired"==f&&(d=!0);g=md(g).slice(0,32);a.ea.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.eb&&(a.i.delete(b),
231
- b.close().catch(function(){}));Mg(a)&&(a.A.resolve(),a.T.S(Wg))}function pg(a){var b=a.ea,c=a.aa;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.m(new O(2,6,6014));a.G.Bd(Ef(c))}
231
+ function Tg(a,b){b=b.target;var c=a.i.get(b),d=!1;b.keyStatuses.forEach(function(f,g){if("string"==typeof g){var h=g;g=f;f=h}if(Og(a.g.keySystem)&&16==g.byteLength&&(navigator.userAgent.match(/Edge?\//)||Xc())){h=Fc(g);var k=h.getUint32(0,!0),l=h.getUint16(4,!0),m=h.getUint16(6,!0);h.setUint32(0,k,!1);h.setUint16(4,l,!1);h.setUint16(6,m,!1)}"status-pending"!=f&&(c.loaded=!0);"expired"==f&&(d=!0);g=md(g).slice(0,32);a.ha.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.eb&&(a.i.delete(b),
232
+ b.close().catch(function(){}));Mg(a)&&(a.A.resolve(),a.Z.S(Wg))}function pg(a){var b=a.ha,c=a.va;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.m(new O(2,6,6014));a.G.Bd(Ef(c))}
232
233
  function Xg(){var a,b,c,d,e,f,g,h;return K(function(k){return 1==k.g?(a="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" "),b=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],c={initDataTypes:["cenc"],videoCapabilities:b},d={videoCapabilities:b,persistentState:"required",sessionTypes:["persistent-license"]},e=[d,c],f=new Map,g=function(l){var m,p,
233
234
  n;return K(function(t){switch(t.g){case 1:F(t,2);if("org.w3.clearkey"===l&&Yc())throw Error("Unsupported keySystem");return A(t,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=t.h,n=(p=m.getConfiguration().sessionTypes)?p.includes("persistent-license"):!1,Qc("Tizen 3")&&(n=!1),f.set(l,{persistentState:n}),A(t,m.createMediaKeys(),5);case 5:va(t,0);break;case 2:J(t),f.set(l,null),C(t)}})},h=a.map(function(l){return g(l)}),A(k,Promise.all(h),2)):k.return(Ef(f))})}
234
235
  function Yg(a){var b;return K(function(c){if(1==c.g)return b=new Promise(function(d,e){(new P(e)).S(Zg)}),F(c,2),A(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return va(c,0);J(c);C(c)})}
235
- function ug(a){var b;return K(function(c){b=Array.from(a.i.entries());a.i.clear();return A(c,Promise.all(b.map(function(d){d=r(d);var e=d.next().value,f=d.next().value;return K(function(g){if(1==g.g)return F(g,2),a.ba||a.F.includes(e.sessionId)||"persistent-license"!==f.type?A(g,Yg(e),5):A(g,e.remove(),5);if(2!=g.g)return va(g,0);J(g);C(g)})})),0)})}
236
+ function ug(a){var b;return K(function(c){b=Array.from(a.i.entries());a.i.clear();return A(c,Promise.all(b.map(function(d){d=r(d);var e=d.next().value,f=d.next().value;return K(function(g){if(1==g.g)return F(g,2),a.ea||a.F.includes(e.sessionId)||"persistent-license"!==f.type?A(g,Yg(e),5):A(g,e.remove(),5);if(2!=g.g)return va(g,0);J(g);C(g)})})),0)})}
236
237
  function $g(a,b){if(!a.length)return b;if(!b.length)return a;var c=[];a=r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e={},f=r(b),g=f.next();!g.done;e={Wa:e.Wa},g=f.next())if(g=g.value,d.keySystem==g.keySystem){e.Wa=[];e.Wa=e.Wa.concat(d.initData||[]);e.Wa=e.Wa.concat(g.initData||[]);e.Wa=e.Wa.filter(function(h){return function(k,l){return void 0===k.keyId||l===h.Wa.findIndex(function(m){return m.keyId===k.keyId})}}(e));f=d.keyIds&&g.keyIds?new Set([].concat(ja(d.keyIds),ja(g.keyIds))):
237
238
  d.keyIds||g.keyIds;c.push({keySystem:d.keySystem,licenseServerUri:d.licenseServerUri||g.licenseServerUri,distinctiveIdentifierRequired:d.distinctiveIdentifierRequired||g.distinctiveIdentifierRequired,persistentStateRequired:d.persistentStateRequired||g.persistentStateRequired,videoRobustness:d.videoRobustness||g.videoRobustness,audioRobustness:d.audioRobustness||g.audioRobustness,serverCertificate:d.serverCertificate||g.serverCertificate,serverCertificateUri:d.serverCertificateUri||g.serverCertificateUri,
238
239
  initData:e.Wa,keyIds:f});break}}return c}function Cg(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function qg(a){a.i.forEach(function(b,c){var d=b.ue,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.G.onExpirationUpdated(c.sessionId,e),b.ue=e)})}function Mg(a){a=a.i.values();return fb(a,function(b){return b.loaded})}
@@ -252,7 +253,7 @@ var uh=0,wh=1,yh=2,Ah=3,vh=new Map([[39,"\u2019"],[42,"\u00e1"],[92,"\u00e9"],[9
252
253
  [35,"\u00da"],[36,"\u00dc"],[37,"\u00fc"],[38,"\u2018"],[39,"\u00a1"],[40,"*"],[41,"'"],[42,"\u2500"],[43,"\u00a9"],[44,"\u2120"],[45,"\u00b7"],[46,"\u201c"],[47,"\u201d"],[48,"\u00c0"],[49,"\u00c2"],[50,"\u00c7"],[51,"\u00c8"],[52,"\u00ca"],[53,"\u00cb"],[54,"\u00eb"],[55,"\u00ce"],[56,"\u00cf"],[57,"\u00ef"],[58,"\u00d4"],[59,"\u00d9"],[60,"\u00f9"],[61,"\u00db"],[62,"\u00ab"],[63,"\u00bb"]]),Bh=new Map([[32,"\u00c3"],[33,"\u00e3"],[34,"\u00cd"],[35,"\u00cc"],[36,"\u00ec"],[37,"\u00d2"],[38,"\u00f2"],
253
254
  [39,"\u00d5"],[40,"\u00f5"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"\u00c4"],[49,"\u00e4"],[50,"\u00d6"],[51,"\u00f6"],[52,"\u00df"],[53,"\u00a5"],[54,"\u00a4"],[55,"\u2502"],[56,"\u00c5"],[57,"\u00e5"],[58,"\u00d8"],[59,"\u00f8"],[60,"\u250c"],[61,"\u2510"],[62,"\u2514"],[63,"\u2518"]]);function Dh(a,b){this.h=Eh;this.A=new ph(a,b);this.i=new ph(a,b);this.l=new ph(a,b);this.g=this.i;this.j=0;this.m=null}function Fh(a,b,c){a.g=a.i;var d=a.g,e=null;a.h!==Gh&&a.h!==Hh&&(e=rh(d,a.j,c),c=a.i,c.g=0<c.h?c.h:0,sh(c,0,15),c=a.l,c.g=0<c.h?c.h:0,sh(c,0,15),d.g=15);a.h=Gh;d.h=b;return e}function Ih(a){a.h=Jh;a.g=a.l;a.g.h=0}function Kh(a){Wa("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.A;a.h=Hh}
254
255
  var Eh=0,Jh=1,Gh=3,Hh=4,Lh="black green blue cyan red yellow magenta black".split(" "),Mh="white green blue cyan red yellow magenta white_italics".split(" ");function Nh(){this.l=!1;this.F=this.H=0;this.G=Oh;this.i=[];this.g=this.h=this.j=0;this.C=this.A=!1;this.B="white";this.m="black";Ph(this)}function Ph(a){a.i=[];for(var b=0;16>b;b++)a.i.push(Qh())}function Qh(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function Rh(a,b){Sh(a)&&(a.i[a.h][a.g]=new oh(b,a.C,a.A,a.m,a.B),a.g++)}function Sh(a){var b=a.g<a.F&&0<=a.g;return a.h<a.H&&0<=a.h&&b}Nh.prototype.isVisible=function(){return this.l};
255
- function Th(a,b,c){var d=new ec(a.j,b,"");d.textAlign=a.G===Uh?"left":a.G===Vh?"right":ic;if(c=lh(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var Uh=0,Vh=1,Oh=2;function Wh(){this.i=[];this.h=null;this.g=0}function Xh(a,b){3===b.type?(a.g=2*(b.value&63)-1,a.h=[]):a.h&&(0<a.g&&(a.h.push(b),a.g--),0===a.g&&(a.i.push(new Yh(a.h)),a.h=null,a.g=0))}function Yh(a){this.g=0;this.h=a}Yh.prototype.Ea=function(){return this.g<this.h.length};Yh.prototype.oa=function(){return this.g};function Zh(a){if(!a.Ea())throw new O(2,2,3E3);return a.h[a.g++]}Yh.prototype.skip=function(a){if(this.g+a>this.h.length)throw new O(2,2,3E3);this.g+=a};function $h(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
256
+ function Th(a,b,c){var d=new ec(a.j,b,"");d.textAlign=a.G===Uh?"left":a.G===Vh?"right":ic;if(c=lh(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var Uh=0,Vh=1,Oh=2;function Wh(){this.i=[];this.h=null;this.g=0}function Xh(a,b){3===b.type?(a.g=2*(b.value&63)-1,a.h=[]):a.h&&(0<a.g&&(a.h.push(b),a.g--),0===a.g&&(a.i.push(new Yh(a.h)),a.h=null,a.g=0))}function Yh(a){this.g=0;this.h=a}Yh.prototype.Ea=function(){return this.g<this.h.length};Yh.prototype.qa=function(){return this.g};function Zh(a){if(!a.Ea())throw new O(2,2,3E3);return a.h[a.g++]}Yh.prototype.skip=function(a){if(this.g+a>this.h.length)throw new O(2,2,3E3);this.g+=a};function $h(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
256
257
  function ai(a,b,c,d){if(128<=c&&135>=c)d=c&7,a.h[d]&&(a.g=a.h[d]);else{if(136===c){c=Zh(b).value;b=null;c=r(bi(a,c));for(var e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=Th(e,d,a.i)),Ph(e);return b}if(137===c)for(b=Zh(b).value,b=r(bi(a,b)),c=b.next();!c.done;c=b.next())c=a.h[c.value],c.isVisible()||(c.j=d),c.l=!0;else{if(138===c){c=Zh(b).value;b=null;c=r(bi(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=Th(e,d,a.i)),e.l=!1;return b}if(139===c){c=Zh(b).value;
257
258
  b=null;c=r(bi(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=Th(e,d,a.i):e.j=d,e.l=!e.l;return b}if(140===c)return b=Zh(b).value,ci(a,b,d);if(143===c)return d=ci(a,255,d),di(a),d;if(144===c)b.skip(1),d=Zh(b).value,a.g&&(a.g.A=0<(d&128),a.g.C=0<(d&64));else if(145===c)d=Zh(b).value,c=Zh(b).value,b.skip(1),a.g&&(b=ei((c&48)>>4,(c&12)>>2,c&3),a.g.B=ei((d&48)>>4,(d&12)>>2,d&3),a.g.m=b);else if(146===c)d=Zh(b).value,b=Zh(b).value,a.g&&(a=a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),
258
259
  b.skip(1),d=Zh(b).value,b.skip(1),a.g&&(a.g.G=d&3);else if(152<=c&&159>=c){c=(c&15)-8;e=null!==a.h[c];if(!e){var f=new Nh;f.j=d;a.h[c]=f}d=Zh(b).value;Zh(b);Zh(b);f=Zh(b).value;var g=Zh(b).value;b=Zh(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.C=!1,b.A=!1,b.B="white",b.m="black");b=a.h[c];b.l=0<(d&32);b.H=(f&15)+1;b.F=(g&63)+1;a.g=a.h[c]}}}return null}function bi(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;return c}
@@ -263,108 +264,108 @@ function ki(a,b){var c=b.type;if(16===(b.Qa&112)){var d=b.Qa>>3&1;0===c?a.m=d:a.
263
264
  a=1===(a&1);if(c.h!==Hh){e=c.g;if(c.h===Gh&&b!==e.g){var g=1+b-e.h;Ch(e,g,1+e.g-e.h,e.h);sh(e,0,g-1);sh(e,b+1,15-b)}e.g=b;c.g.m=a;c.g.j=f;c.g.l=d;c.g.A="black"}}else if(17===(d&247)&&32===(a&240))c.g.m=!1,c.g.j=!1,c.g.l="white",th(c.g,uh,32),d=!1,b=Mh[(a&14)>>1],"white_italics"===b&&(b="white",d=!0),c.g.m=1===(a&1),c.g.j=d,c.g.l=b;else if(16===(d&247)&&32===(a&240)||23===(d&247)&&45===(a&255))b="black",0===(d&7)&&(b=Lh[(a&14)>>1]),c.g.A=b;else if(17===(d&247)&&48===(a&240))th(c.g,wh,a);else if(18===
264
265
  (d&246)&&32===(a&224))th(c.g,d&1?Ah:yh,a);else if(20===(d&246)&&32===(a&240)){a=b.pts;d=null;switch(b.jb){case 32:Ih(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=Fh(c,2,a);break;case 38:d=Fh(c,3,a);break;case 39:d=Fh(c,4,a);break;case 40:th(c.g,uh,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.j=a;break;case 42:qh(c.A);Kh(c);break;case 43:Kh(c);break;case 44:b=c.i;d=null;c.h!==Hh&&(d=rh(b,c.j,a));sh(b,0,15);break;case 45:b=c.g;c.h!==Gh?d=null:(d=rh(b,c.j,a),f=b.g-b.h+1,Ch(b,f-1,f,b.h),sh(b,0,
265
266
  f-1),sh(b,b.g,15-b.g),c.j=a);break;case 46:sh(c.l,0,15);break;case 47:b=null,c.h!==Hh&&(b=rh(c.i,c.j,a)),d=c.l,c.l=c.i,c.i=d,Ih(c),c.j=a,d=b}a=d;break a}a=null}else d=b.jb,th(c.g,uh,b.Qa),th(c.g,uh,d);return a}
266
- function li(a,b){var c=[];try{for(;b.Ea();){var d=Zh(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=Zh(b).value&63);if(0!=e){a.j.has(e)||a.j.set(e,new $h(e));for(var g=a.j.get(e),h=b.oa();b.oa()-h<f;){e=b;var k=Zh(e),l=k.value,m=k.pts;if(16===l){var p=Zh(e);l=l<<16|p.value}if(0<=l&&31>=l){var n=m;if(g.g){var t=g.g;e=null;switch(l){case 8:!Sh(t)||0>=t.g&&0>=t.h||(0>=t.g?(t.g=t.F-1,t.h--):t.g--,t.i[t.h][t.g]=null);break;case 13:t.isVisible()&&(e=Th(t,n,g.i));if(t.h+1>=t.H){n=t;for(var y=0,x=1;16>x;x++,
267
+ function li(a,b){var c=[];try{for(;b.Ea();){var d=Zh(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=Zh(b).value&63);if(0!=e){a.j.has(e)||a.j.set(e,new $h(e));for(var g=a.j.get(e),h=b.qa();b.qa()-h<f;){e=b;var k=Zh(e),l=k.value,m=k.pts;if(16===l){var p=Zh(e);l=l<<16|p.value}if(0<=l&&31>=l){var n=m;if(g.g){var t=g.g;e=null;switch(l){case 8:!Sh(t)||0>=t.g&&0>=t.h||(0>=t.g?(t.g=t.F-1,t.h--):t.g--,t.i[t.h][t.g]=null);break;case 13:t.isVisible()&&(e=Th(t,n,g.i));if(t.h+1>=t.H){n=t;for(var y=0,x=1;16>x;x++,
267
268
  y++)n.i[y]=n.i[x];for(x=0;1>x;x++,y++)n.i[y]=Qh()}else t.h++;t.g=0;break;case 14:t.isVisible()&&(e=Th(t,n,g.i));t.i[t.h]=Qh();t.g=0;break;case 12:t.isVisible()&&(e=Th(t,n,g.i)),Ph(t),n=t,n.h=0,n.g=0}var v=e}else v=null}else if(128<=l&&159>=l)v=ai(g,e,l,m);else{if(4096<=l&&4127>=l)n=l&255,8<=n&&15>=n?e.skip(1):16<=n&&23>=n?e.skip(2):24<=n&&31>=n&&e.skip(3);else if(4224<=l&&4255>=l)n=l&255,128<=n&&135>=n?e.skip(4):136<=n&&143>=n&&e.skip(5);else if(32<=l&&127>=l)e=l,g.g&&(127===e?Rh(g.g,"\u266a"):Rh(g.g,
268
- String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&Rh(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(gi.has(e)){var w=gi.get(e);Rh(g.g,w)}else Rh(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?Rh(g.g,"_"):Rh(g.g,"[CC]"));v=null}(e=v)&&c.push(e)}}}}catch(D){if(D instanceof O&&3E3===D.code)Wa("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw D;}return c}function mi(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b};function ni(a,b){var c=null,d=null,e=a.R();b&1&&a.skip(8);b&2&&a.skip(4);b&8&&(c=a.R());b&16&&(d=a.R());return{trackId:e,tf:c,jg:d}}function oi(a,b){return{gf:1==b?a.qc():a.R()}}function pi(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));return{timescale:a.R()}}
269
- function qi(a,b,c){var d=a.R(),e=[];c&1&&a.skip(4);c&4&&a.skip(4);for(var f=0;f<d;f++){var g={Be:null,sampleSize:null,Hd:null};c&256&&(g.Be=a.R());c&512&&(g.sampleSize=a.R());c&1024&&a.skip(4);c&2048&&(g.Hd=0==b?a.R():a.If());e.push(g)}return{dj:d,Kf:e}};function ri(){this.i=new Map;this.h=this.g=0}
269
+ String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&Rh(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(gi.has(e)){var w=gi.get(e);Rh(g.g,w)}else Rh(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?Rh(g.g,"_"):Rh(g.g,"[CC]"));v=null}(e=v)&&c.push(e)}}}}catch(D){if(D instanceof O&&3E3===D.code)Wa("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw D;}return c}function mi(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b};function ni(a,b){var c=null,d=null,e=a.R();b&1&&a.skip(8);b&2&&a.skip(4);b&8&&(c=a.R());b&16&&(d=a.R());return{trackId:e,tf:c,kg:d}}function oi(a,b){return{gf:1==b?a.qc():a.R()}}function pi(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));return{timescale:a.R()}}
270
+ function qi(a,b,c){var d=a.R(),e=[];c&1&&a.skip(4);c&4&&a.skip(4);for(var f=0;f<d;f++){var g={Be:null,sampleSize:null,Hd:null};c&256&&(g.Be=a.R());c&512&&(g.sampleSize=a.R());c&1024&&a.skip(4);c&2048&&(g.Hd=0==b?a.R():a.Jf());e.push(g)}return{fj:d,Lf:e}};function ri(){this.i=new Map;this.h=this.g=0}
270
271
  ri.prototype.init=function(a){var b=this,c=[],d=[];(new Jf).box("moov",Nf).box("mvex",Nf).X("trex",function(e){var f=e.reader;f.skip(4);f.skip(4);e=f.R();f=f.R();b.g=e;b.h=f}).box("trak",Nf).X("tkhd",function(e){var f=e.reader;1==e.version?(f.skip(8),f.skip(8)):(f.skip(4),f.skip(4));e=f.R();c.push(e)}).box("mdia",Nf).X("mdhd",function(e){e=pi(e.reader,e.version);d.push(e.timescale)}).parse(a,!0);if(!c.length||!d.length||c.length!=d.length)throw new O(2,2,2010);c.forEach(function(e,f){b.i.set(e,d[f])})};
271
- ri.prototype.parse=function(a){var b=this,c=[],d=this.g,e=this.h,f=[],g=null,h=9E4;(new Jf).box("moof",Nf).box("traf",Nf).X("trun",function(k){f=qi(k.reader,k.version,k.flags).Kf}).X("tfhd",function(k){k=ni(k.reader,k.flags);d=k.tf||b.g;e=k.jg||b.h;k=k.trackId;b.i.has(k)&&(h=b.i.get(k))}).X("tfdt",function(k){g=oi(k.reader,k.version).gf}).box("mdat",function(k){if(null===g)throw new O(2,2,2010);k=k.reader;var l=g,m=h,p=d,n=e,t=f,y=0,x=n;for(t.length&&(x=t[0].sampleSize||n);k.Ea();){var v=k.R();if(6==
272
- (k.qb()&31)){var w=0;t.length>y&&(w=t[y].Hd||0);w=(l+w)/m;for(var D=[],z,B=k.Cb(v-1),G=z=0;G<B.length;)2==z&&3==B[G]?(z=0,B=[].concat(ja(B)),B.splice(G,1),B=new Uint8Array(B)):0==B[G]?z++:z=0,G++;z=B;for(G=0;G<z.length;){for(B=0;255==z[G];)B+=255,G++;B+=z[G++];for(var E=0;255==z[G];)E+=255,G++;E+=z[G++];4==B&&D.push(z.subarray(G,G+E));G+=E}D=r(D);for(z=D.next();!z.done;z=D.next())c.push({dh:z.value,pts:w})}else try{k.skip(v-1)}catch(H){break}x-=v+4;0==x&&(l=t.length>y?l+(t[y].Be||p):l+p,y++,x=t.length>
272
+ ri.prototype.parse=function(a){var b=this,c=[],d=this.g,e=this.h,f=[],g=null,h=9E4;(new Jf).box("moof",Nf).box("traf",Nf).X("trun",function(k){f=qi(k.reader,k.version,k.flags).Lf}).X("tfhd",function(k){k=ni(k.reader,k.flags);d=k.tf||b.g;e=k.kg||b.h;k=k.trackId;b.i.has(k)&&(h=b.i.get(k))}).X("tfdt",function(k){g=oi(k.reader,k.version).gf}).box("mdat",function(k){if(null===g)throw new O(2,2,2010);k=k.reader;var l=g,m=h,p=d,n=e,t=f,y=0,x=n;for(t.length&&(x=t[0].sampleSize||n);k.Ea();){var v=k.R();if(6==
273
+ (k.qb()&31)){var w=0;t.length>y&&(w=t[y].Hd||0);w=(l+w)/m;for(var D=[],z,B=k.Cb(v-1),G=z=0;G<B.length;)2==z&&3==B[G]?(z=0,B=[].concat(ja(B)),B.splice(G,1),B=new Uint8Array(B)):0==B[G]?z++:z=0,G++;z=B;for(G=0;G<z.length;){for(B=0;255==z[G];)B+=255,G++;B+=z[G++];for(var E=0;255==z[G];)E+=255,G++;E+=z[G++];4==B&&D.push(z.subarray(G,G+E));G+=E}D=r(D);for(z=D.next();!z.done;z=D.next())c.push({fh:z.value,pts:w})}else try{k.skip(v-1)}catch(H){break}x-=v+4;0==x&&(l=t.length>y?l+(t[y].Be||p):l+p,y++,x=t.length>
273
274
  y?t[y].sampleSize||n:n)}}).parse(a,!1);return c};function si(){this.h=new ri;this.g=new hi}si.prototype.init=function(a){this.h.init(a)};
274
- function ti(a,b){b=a.h.parse(b);b=r(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Cc(d.dh);if(0<e.length&&(c=a.g,d=d.pts,e=new Gf(e,0),181===e.qb()&&49===e.xe()&&1195456820===e.R()&&3===e.qb())){var f=e.qb();if(0!==(f&64)){f&=31;e.skip(1);for(var g=0;g<f;g++){var h=e.qb(),k=(h&4)>>2,l=e.qb(),m=e.qb();k&&(h&=3,0===h||1===h?c.h.push({pts:d,type:h,Qa:l,jb:m,order:c.h.length}):(c.g.push({pts:d,type:h,value:l,order:c.g.length}),c.g.push({pts:d,type:2,value:m,order:c.g.length})))}}}}return ji(a.g)}
275
+ function ti(a,b){b=a.h.parse(b);b=r(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Cc(d.fh);if(0<e.length&&(c=a.g,d=d.pts,e=new Gf(e,0),181===e.qb()&&49===e.xe()&&1195456820===e.R()&&3===e.qb())){var f=e.qb();if(0!==(f&64)){f&=31;e.skip(1);for(var g=0;g<f;g++){var h=e.qb(),k=(h&4)>>2,l=e.qb(),m=e.qb();k&&(h&=3,0===h||1===h?c.h.push({pts:d,type:h,Qa:l,jb:m,order:c.h.length}):(c.g.push({pts:d,type:h,value:l,order:c.g.length}),c.g.push({pts:d,type:2,value:m,order:c.g.length})))}}}}return ji(a.g)}
275
276
  ;function ui(a,b,c,d){this.Ra=a;this.Va=b;this.Da=c;this.oe=void 0===d?null:d}ui.prototype.Kc=function(){return this.Va};ui.prototype.Gc=function(){return this.Da};function vi(a,b){return a&&b?a.Kc()==b.Kc()&&a.Gc()==b.Gc()&&dc(a.Ra(),b.Ra()):a==b}M("shaka.media.InitSegmentReference",ui);ui.prototype.getEndByte=ui.prototype.Gc;ui.prototype.getStartByte=ui.prototype.Kc;
276
- function wi(a,b,c,d,e,f,g,h,k,l,m,p,n,t,y){l=void 0===l?[]:l;t=void 0===t?xi:t;this.startTime=a;this.j=this.endTime=b;this.B=c;this.Va=d;this.Da=e;this.i=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.h=l;this.tilesLayout=void 0===m?"":m;this.A=void 0===p?null:p;this.g=void 0===n?null:n;this.status=t;this.m=void 0===y?null:y;this.l=0}q=wi.prototype;q.Ra=function(){return this.B()};q.getStartTime=function(){return this.startTime};q.wg=function(){return this.endTime};
277
- q.Kc=function(){return this.Va};q.Gc=function(){return this.Da};q.Og=function(){return this.tilesLayout};q.Ng=function(){return this.A};q.fc=function(){return this.status};q.Xg=function(){this.status=yi};q.offset=function(a){this.startTime+=a;this.endTime+=a;this.j+=a;for(var b=r(this.h),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.j+=a};q.Qe=function(a){null==this.g?Ta("Sync attempted without sync time!"):(a=this.g-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};
278
- M("shaka.media.SegmentReference",wi);wi.prototype.syncAgainst=wi.prototype.Qe;wi.prototype.offset=wi.prototype.offset;wi.prototype.markAsUnavailable=wi.prototype.Xg;wi.prototype.getStatus=wi.prototype.fc;wi.prototype.getTileDuration=wi.prototype.Ng;wi.prototype.getTilesLayout=wi.prototype.Og;wi.prototype.getEndByte=wi.prototype.Gc;wi.prototype.getStartByte=wi.prototype.Kc;wi.prototype.getEndTime=wi.prototype.wg;wi.prototype.getStartTime=wi.prototype.getStartTime;wi.prototype.getUris=wi.prototype.Ra;
279
- var xi=0,yi=1;wi.Status={Ih:xi,Ui:yi,gi:2};function zi(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:1==a.length&&0>a.start(0)?0:a.length?a.start(0):null}function Ai(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Bi(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)}
277
+ function wi(a,b,c,d,e,f,g,h,k,l,m,p,n,t,y){l=void 0===l?[]:l;t=void 0===t?xi:t;this.startTime=a;this.j=this.endTime=b;this.C=c;this.Va=d;this.Da=e;this.i=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.h=l;this.tilesLayout=void 0===m?"":m;this.A=void 0===p?null:p;this.g=void 0===n?null:n;this.status=t;this.B=!1;this.m=void 0===y?null:y;this.l=0}q=wi.prototype;q.Ra=function(){return this.C()};q.getStartTime=function(){return this.startTime};q.xg=function(){return this.endTime};
278
+ q.Kc=function(){return this.Va};q.Gc=function(){return this.Da};q.Pg=function(){return this.tilesLayout};q.Og=function(){return this.A};q.fc=function(){return this.status};q.Zg=function(){this.status=yi};q.Gf=function(){this.B=!0};q.Vg=function(){return this.B};q.offset=function(a){this.startTime+=a;this.endTime+=a;this.j+=a;for(var b=r(this.h),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.j+=a};
279
+ q.Qe=function(a){null==this.g?Ta("Sync attempted without sync time!"):(a=this.g-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};M("shaka.media.SegmentReference",wi);wi.prototype.syncAgainst=wi.prototype.Qe;wi.prototype.offset=wi.prototype.offset;wi.prototype.isPreload=wi.prototype.Vg;wi.prototype.markAsPreload=wi.prototype.Gf;wi.prototype.markAsUnavailable=wi.prototype.Zg;wi.prototype.getStatus=wi.prototype.fc;wi.prototype.getTileDuration=wi.prototype.Og;wi.prototype.getTilesLayout=wi.prototype.Pg;
280
+ wi.prototype.getEndByte=wi.prototype.Gc;wi.prototype.getStartByte=wi.prototype.Kc;wi.prototype.getEndTime=wi.prototype.xg;wi.prototype.getStartTime=wi.prototype.getStartTime;wi.prototype.getUris=wi.prototype.Ra;var xi=0,yi=1;wi.Status={Kh:xi,Wi:yi,ji:2};function zi(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:1==a.length&&0>a.start(0)?0:a.length?a.start(0):null}function Ai(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Bi(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)}
280
281
  function Ci(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;var c=0;a=r(Di(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}function Ei(a,b,c){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;a=Di(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}
281
- function Di(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};function Fi(a,b,c,d){var e=this;this.j=a;this.m=c;this.h={};this.N={};this.K={};this.g=null;this.H=!1;this.T=d||function(){};this.i={};this.B=new yf;this.A={};this.F=b;this.I=new Jc;this.l=Gi(this,this.I);this.G=new wf(function(){return Hi(e)});this.J="";this.C=!1;this.P=new Jc}function Gi(a,b){var c=new MediaSource;a.B.ya(c,"sourceopen",function(){URL.revokeObjectURL(a.J);b.resolve()});a.J=Ii(c);a.j.src=a.J;return c}q=Fi.prototype;q.destroy=function(){return this.G.destroy()};
282
+ function Di(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};function Fi(a,b,c,d){var e=this;this.j=a;this.m=c;this.h={};this.N={};this.K={};this.g=null;this.H=!1;this.T=d||function(){};this.i={};this.B=new yf;this.A={};this.F=b;this.I=new Jc;this.J="";this.l=Gi(this,this.I);this.G=new wf(function(){return Hi(e)});this.C=!1;this.P=new Jc}function Gi(a,b){var c=new MediaSource;a.B.ya(c,"sourceopen",function(){URL.revokeObjectURL(a.J);b.resolve()});a.J=Ii(c);a.j.src=a.J;return c}q=Fi.prototype;q.destroy=function(){return this.G.destroy()};
282
283
  function Hi(a){var b,c,d,e,f,g,h,k;return K(function(l){if(1==l.g){b=[];for(c in a.i)for(d=a.i[c],e=d[0],a.i[c]=d.slice(0,1),e&&b.push(e.p.catch(yb)),f=r(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new O(2,7,7003,void 0));a.g&&b.push(a.g.destroy());a.m&&b.push(a.m.destroy());for(k in a.A)b.push(a.A[k].destroy());return A(l,Promise.all(b),2)}a.B&&(a.B.release(),a.B=null);a.j&&(a.j.removeAttribute("src"),a.j.load(),a.j=null);a.l=null;a.g=null;a.m=null;a.h={};a.A={};a.F=null;a.i={};
283
284
  C(l)})}
284
- q.init=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m;return K(function(p){if(1==p.g)return e=Hb,A(p,d.I,2);d.C=c;f={};g=r(a.keys());for(h=g.next();!h.done;f={Ga:f.Ga},h=g.next())f.Ga=h.value,k=a.get(f.Ga),l=ud(k.mimeType,k.codecs),f.Ga==e.ha?Ji(d,l,c):(!b&&MediaSource.isTypeSupported(l)||!pd(l,f.Ga)||(d.A[f.Ga]=new od,l=rd(f.Ga,l)),m=d.l.addSourceBuffer(l),d.B.o(m,"error",function(n){return function(){d.i[n.Ga][0].p.reject(new O(2,3,3014,d.j.error?d.j.error.code:0))}}(f)),d.B.o(m,"updateend",
285
+ q.init=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m;return K(function(p){if(1==p.g)return e=Hb,A(p,d.I,2);d.C=c;f={};g=r(a.keys());for(h=g.next();!h.done;f={Ga:f.Ga},h=g.next())f.Ga=h.value,k=a.get(f.Ga),l=ud(k.mimeType,k.codecs),f.Ga==e.ia?Ji(d,l,c):(!b&&MediaSource.isTypeSupported(l)||!pd(l,f.Ga)||(d.A[f.Ga]=new od,l=rd(f.Ga,l)),m=d.l.addSourceBuffer(l),d.B.o(m,"error",function(n){return function(){d.i[n.Ga][0].p.reject(new O(2,3,3014,d.j.error?d.j.error.code:0))}}(f)),d.B.o(m,"updateend",
285
286
  function(n){return function(){return Ki(d,n.Ga)}}(f)),d.h[f.Ga]=m,d.N[f.Ga]=l,d.i[f.Ga]=[],d.K[f.Ga]=!!k.drmInfos.length);C(p)})};function Ji(a,b,c){a.g||(a.g=new zd(a.m));var d=a.g;a=a.H;"application/cea-608"==b||"application/cea-708"==b?d.i=null:(d.i=(0,Bd[b])(),d.i.setSequenceMode?d.i.setSequenceMode(c):Ua('Text parsers should have a "setSequenceMode" method!'),d.C=a)}function Li(a){return a.l?"ended"==a.l.readyState:!0}function Mi(a,b){return b==Gb?a.g.g:zi(Ni(a,b))}
286
287
  function Oi(a,b){return b==Gb?a.g.h:Ai(Ni(a,b))}function Pi(a,b,c){if(b==Gb)return a=a.g,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=Ni(a,b);return Ci(a,c)}q.kb=function(){var a={total:Di(this.j.buffered),audio:Di(Ni(this,"audio")),video:Di(Ni(this,"video")),text:[]};if(this.g){var b=this.g.g,c=this.g.h;null!=b&&null!=c&&a.text.push({start:b,end:c})}return a};function Ni(a,b){try{return a.h[b].buffered}catch(c){return null}}
287
- function Qi(a,b,c,d,e,f,g){f=void 0===f?!1:f;g=void 0===g?!1:g;var h,k,l,m,p,n,t,y,x,v,w,D,z,B,G,E,H;return K(function(I){switch(I.g){case 1:h=Hb;if(b!=h.ha){I.D(2);break}if(!a.C){I.D(3);break}return A(I,a.P,4);case 4:k=I.h,a.g.B=k;case 3:return A(I,Cd(a.g,c,d?d.startTime:null,d?d.endTime:null),5);case 5:return I.return();case 2:if(!a.A[b]){e&&(a.g||Ji(a,"application/cea-608",a.C),d?(l=ti(a.F,c),l.length&&(m=a.h[h.La].timestampOffset,Hd(a.g,l,d.startTime,d.endTime,m))):a.F.init(c));I.D(6);break}f&&
288
+ function Qi(a,b,c,d,e,f,g){f=void 0===f?!1:f;g=void 0===g?!1:g;var h,k,l,m,p,n,t,y,x,v,w,D,z,B,G,E,H;return K(function(I){switch(I.g){case 1:h=Hb;if(b!=h.ia){I.D(2);break}if(!a.C){I.D(3);break}return A(I,a.P,4);case 4:k=I.h,a.g.B=k;case 3:return A(I,Cd(a.g,c,d?d.startTime:null,d?d.endTime:null),5);case 5:return I.return();case 2:if(!a.A[b]){e&&(a.g||Ji(a,"application/cea-608",a.C),d?(l=ti(a.F,c),l.length&&(m=a.h[h.La].timestampOffset,Hd(a.g,l,d.startTime,d.endTime,m))):a.F.init(c));I.D(6);break}f&&
288
289
  a.A[b].g.resetCaptions();return A(I,sd(a.A[b],c),7);case 7:p=I.h,a.g||Ji(a,"application/cea-608",a.C),p.metadata&&(n=a.h[b].timestampOffset,a.T(p.metadata,n,d?d.endTime:null)),p.captions&&p.captions.length&&(t=a.h[h.La].timestampOffset,y=Fd(p.captions),Hd(a.g,y,d?d.startTime:null,d?d.endTime:null,t)),c=p.data;case 6:c=Ri(a,c,d?d.startTime:null,b);x=a.h[b];v=Si;if(!a.C||x.mode==v||!d){I.D(8);break}w=a.l.duration;D=b==h.La||!(h.La in a.h);if(!D){I.D(9);break}z=[x.appendWindowStart,x.appendWindowEnd];
289
290
  x.appendWindowStart=0;x.appendWindowEnd=Infinity;B=x.timestampOffset;x.timestampOffset=0;return A(I,Ti(a,b,function(){a.h[b].appendBuffer(c)}),10);case 10:return A(I,Ti(a,b,function(){return Ui(a,b)}),11);case 11:return x.timestampOffset=B,x.appendWindowStart=z[0],x.appendWindowEnd=z[1],G=zi(Ni(a,b)),E=(d.startTime||0)-(G||0),a.P.resolve(E),A(I,Ti(a,b,function(){return Vi(a,b,0,w)}),12);case 12:if(b!=h.La){I.D(9);break}return A(I,Ti(a,b,function(){a.j.currentTime-=.001;Ki(a,b)}),9);case 9:return x.mode=
290
- v,A(I,a.Ua(w),8);case 8:return d&&a.C&&b!=h.ha&&(f||g)&&(H=d.startTime,Ti(a,b,function(){return Ui(a,b)}),Ti(a,b,function(){return Wi(a,b,H)})),A(I,Ti(a,b,function(){a.h[b].appendBuffer(c)}),16);case 16:C(I)}})}function Xi(a,b){var c=Oi(a,"video")||0;Ed(a.g,b,c)}function Yi(a){a.g&&Ed(a.g,"",0)}q.remove=function(a,b,c){var d=this,e;return K(function(f){e=Hb;return a==e.ha?A(f,d.g.remove(b,c),0):A(f,Ti(d,a,function(){return Vi(d,a,b,c)}),0)})};
291
- function Zi(a,b){var c;return K(function(d){c=Hb;return b==c.ha?a.g?A(d,a.g.remove(0,Infinity),0):d.return():A(d,Ti(a,b,function(){return Vi(a,b,0,a.l.duration)}),0)})}q.flush=function(a){var b=this,c;return K(function(d){c=Hb;return a==c.ha?d.return():A(d,Ti(b,a,function(){b.j.currentTime-=.001;Ki(b,a)}),0)})};
292
- function $i(a,b,c,d,e,f){var g;return K(function(h){g=Hb;return b==g.ha?(f||(a.g.B=c),Dd(a.g,d,e),h.return()):A(h,Promise.all([Ti(a,b,function(){return Ui(a,b)}),f?Promise.resolve():Ti(a,b,function(){return Wi(a,b,c)}),Ti(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=d;Ki(a,b)})]),0)})}
293
- function aj(a,b,c){var d;return K(function(e){d=Hb;if(b==d.ha)return e.return();Ti(a,b,function(){return Ui(a,b)});return A(e,Ti(a,b,function(){return Wi(a,b,c)}),0)})}q.endOfStream=function(a){var b=this;return K(function(c){return A(c,bj(b,function(){Li(b)||"closed"===b.l.readyState||(a?b.l.endOfStream(a):b.l.endOfStream())}),0)})};
291
+ v,A(I,a.Ua(w),8);case 8:return d&&a.C&&b!=h.ia&&(f||g)&&(H=d.startTime,Ti(a,b,function(){return Ui(a,b)}),Ti(a,b,function(){return Wi(a,b,H)})),A(I,Ti(a,b,function(){a.h[b].appendBuffer(c)}),16);case 16:C(I)}})}function Xi(a,b){var c=Oi(a,"video")||0;Ed(a.g,b,c)}function Yi(a){a.g&&Ed(a.g,"",0)}q.remove=function(a,b,c){var d=this,e;return K(function(f){e=Hb;return a==e.ia?A(f,d.g.remove(b,c),0):A(f,Ti(d,a,function(){return Vi(d,a,b,c)}),0)})};
292
+ function Zi(a,b){var c;return K(function(d){c=Hb;return b==c.ia?a.g?A(d,a.g.remove(0,Infinity),0):d.return():A(d,Ti(a,b,function(){return Vi(a,b,0,a.l.duration)}),0)})}q.flush=function(a){var b=this,c;return K(function(d){c=Hb;return a==c.ia?d.return():A(d,Ti(b,a,function(){b.j.currentTime-=.001;Ki(b,a)}),0)})};
293
+ function $i(a,b,c,d,e,f){var g;return K(function(h){g=Hb;return b==g.ia?(f||(a.g.B=c),Dd(a.g,d,e),h.return()):A(h,Promise.all([Ti(a,b,function(){return Ui(a,b)}),f?Promise.resolve():Ti(a,b,function(){return Wi(a,b,c)}),Ti(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=d;Ki(a,b)})]),0)})}
294
+ function aj(a,b,c){var d;return K(function(e){d=Hb;if(b==d.ia)return e.return();Ti(a,b,function(){return Ui(a,b)});return A(e,Ti(a,b,function(){return Wi(a,b,c)}),0)})}q.endOfStream=function(a){var b=this;return K(function(c){return A(c,bj(b,function(){Li(b)||"closed"===b.l.readyState||(a?b.l.endOfStream(a):b.l.endOfStream())}),0)})};
294
295
  q.Ua=function(a){var b=this;return K(function(c){return A(c,bj(b,function(){if(a<b.l.duration)for(var d in b.h){var e={start:function(){},p:new Jc};b.i[d].unshift(e)}b.l.duration=a}),0)})};q.getDuration=function(){return this.l.duration};function Vi(a,b,c,d){d<=c?Ki(a,b):a.h[b].remove(c,d)}function Ui(a,b){var c=a.h[b].appendWindowStart,d=a.h[b].appendWindowEnd;a.h[b].abort();a.h[b].appendWindowStart=c;a.h[b].appendWindowEnd=d;Ki(a,b)}
295
296
  function Wi(a,b,c){0>c&&(c+=.001);a.h[b].timestampOffset=c;Ki(a,b)}function Ki(a,b){var c=a.i[b][0];c&&(c.p.resolve(),cj(a,b))}function Ti(a,b,c){xf(a.G);c={start:c,p:new Jc};a.i[b].push(c);1==a.i[b].length&&dj(a,b);return c.p}
296
297
  function bj(a,b){var c,d,e,f,g,h;return K(function(k){switch(k.g){case 1:xf(a.G);c=[];d={};for(e in a.h)d.zc=new Jc,f={start:function(l){return function(){return l.zc.resolve()}}(d),p:d.zc},a.i[e].push(f),c.push(d.zc),1==a.i[e].length&&f.start(),d={zc:d.zc};F(k,2);return A(k,Promise.all(c),4);case 4:va(k,3);break;case 2:throw g=J(k),g;case 3:try{b()}catch(l){throw new O(2,3,3015,l);}finally{for(h in a.h)cj(a,h)}C(k)}})}function cj(a,b){a.i[b].shift();dj(a,b)}
297
- function dj(a,b){var c=a.i[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new O(2,3,3017,b)):c.p.reject(new O(2,3,3015,d)),cj(a,b)}}function Ri(a,b,c,d){var e=a.K[d];null==c&&e&&(Rc()||Pc())&&"mp4"==a.N[d].split(";")[0].split("/")[1]&&(b=hh(b));return b}var Ii=window.URL.createObjectURL,Si="sequence",ej=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function R(a,b,c){this.l=a;this.Ed=b;this.m=this.i=Infinity;this.g=1;this.h=this.j=null;this.A=0;this.B=!0;this.C=0;this.F=void 0===c?!0:c;this.G=0;this.H=!1}q=R.prototype;q.getDuration=function(){return this.i};q.Eg=function(){return this.g};q.Ua=function(a){this.i=a};q.Ig=function(){return this.l};q.Mf=function(a){this.A=a};q.Zc=function(a){this.B=a};q.Me=function(a){this.m=a};q.vh=function(a){this.Ed=a};q.vg=function(){return this.Ed};
298
+ function dj(a,b){var c=a.i[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new O(2,3,3017,b)):c.p.reject(new O(2,3,3015,d)),cj(a,b)}}function Ri(a,b,c,d){var e=a.K[d];null==c&&e&&(Rc()||Pc())&&"mp4"==a.N[d].split(";")[0].split("/")[1]&&(b=hh(b));return b}var Ii=window.URL.createObjectURL,Si="sequence",ej=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function R(a,b,c){this.l=a;this.Ed=b;this.m=this.i=Infinity;this.g=1;this.h=this.j=null;this.A=0;this.B=!0;this.C=0;this.F=void 0===c?!0:c;this.G=0;this.H=!1}q=R.prototype;q.getDuration=function(){return this.i};q.Fg=function(){return this.g};q.Ua=function(a){this.i=a};q.Jg=function(){return this.l};q.Nf=function(a){this.A=a};q.Zc=function(a){this.B=a};q.Me=function(a){this.m=a};q.xh=function(a){this.Ed=a};q.wg=function(){return this.Ed};
298
299
  q.mc=function(a){if(0!=a.length){var b=a[a.length-1].endTime;this.se(a[0].startTime);this.g=a.reduce(function(c,d){return Math.max(c,d.endTime-d.startTime)},this.g);this.h=Math.max(this.h,b);null!=this.l&&this.F&&!this.H&&(this.l=(Date.now()+this.A)/1E3-this.h-this.g)}};q.me=function(){this.H=!0};q.se=function(a){this.j=null==this.j?a:Math.min(this.j,a)};q.re=function(a){this.g=Math.max(this.g,a)};q.offset=function(a){null!=this.j&&(this.j+=a);null!=this.h&&(this.h+=a)};
299
- q.U=function(){return Infinity==this.i&&!this.B};q.Mb=function(){return Infinity!=this.i&&!this.B};q.ob=function(){return Math.max(this.C,this.Jb()-this.m)};q.Pf=function(a){this.C=a};q.Jb=function(){return this.U()||this.Mb()?Math.min(Math.max(0,(Date.now()+this.A)/1E3-this.g-this.l)+this.G,this.i):this.h?Math.min(this.h,this.i):this.i};q.Jc=function(a){var b=Math.max(this.j,this.C);return Infinity==this.m?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.Jb()-this.m+a,this.mb()))};q.ec=function(){return this.Jc(0)};
300
- q.mb=function(){return Math.max(0,this.Jb()-(this.U()||this.Mb()?this.Ed:0))};q.Tf=function(){return null==this.l||null!=this.h&&this.F?!1:!0};q.Lf=function(a){this.G=a};M("shaka.media.PresentationTimeline",R);R.prototype.setAvailabilityTimeOffset=R.prototype.Lf;R.prototype.usingPresentationStartTime=R.prototype.Tf;R.prototype.getSeekRangeEnd=R.prototype.mb;R.prototype.getSeekRangeStart=R.prototype.ec;R.prototype.getSafeSeekRangeStart=R.prototype.Jc;R.prototype.getSegmentAvailabilityEnd=R.prototype.Jb;
301
- R.prototype.setUserSeekStart=R.prototype.Pf;R.prototype.getSegmentAvailabilityStart=R.prototype.ob;R.prototype.isInProgress=R.prototype.Mb;R.prototype.isLive=R.prototype.U;R.prototype.offset=R.prototype.offset;R.prototype.notifyMaxSegmentDuration=R.prototype.re;R.prototype.notifyMinSegmentStartTime=R.prototype.se;R.prototype.lockStartTime=R.prototype.me;R.prototype.notifySegments=R.prototype.mc;R.prototype.getDelay=R.prototype.vg;R.prototype.setDelay=R.prototype.vh;
302
- R.prototype.setSegmentAvailabilityDuration=R.prototype.Me;R.prototype.setStatic=R.prototype.Zc;R.prototype.setClockOffset=R.prototype.Mf;R.prototype.getPresentationStartTime=R.prototype.Ig;R.prototype.setDuration=R.prototype.Ua;R.prototype.getMaxSegmentDuration=R.prototype.Eg;R.prototype.getDuration=R.prototype.getDuration;function fj(a,b,c){this.l=c;this.j=a;this.B=gj(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.A=0;this.C=b;this.i=function(){}}fj.prototype.release=function(){this.l=this.j=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.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=r(Di(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.A=e;this.g=a;this.B=b;this.G=c;this.i=new yf;this.m=!1;this.F=a.readyState;this.C=0;this.h=d;this.l=!1;this.i.o(a,"waiting",function(){return kj(f)});this.j=(new P(function(){kj(f)})).ka(.25)}jj.prototype.release=function(){this.i&&(this.i.release(),this.i=null);null!=this.j&&(this.j.stop(),this.j=null);this.h&&(this.h.release(),this.h=null);this.g=this.B=this.A=null};jj.prototype.ve=function(){this.l=!0;kj(this)};
300
+ q.U=function(){return Infinity==this.i&&!this.B};q.Mb=function(){return Infinity!=this.i&&!this.B};q.ob=function(){return Math.max(this.C,this.Jb()-this.m)};q.Qf=function(a){this.C=a};q.Jb=function(){return this.U()||this.Mb()?Math.min(Math.max(0,(Date.now()+this.A)/1E3-this.g-this.l)+this.G,this.i):this.h?Math.min(this.h,this.i):this.i};q.Jc=function(a){var b=Math.max(this.j,this.C);return Infinity==this.m?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.Jb()-this.m+a,this.mb()))};q.ec=function(){return this.Jc(0)};
301
+ q.mb=function(){return Math.max(0,this.Jb()-(this.U()||this.Mb()?this.Ed:0))};q.Uf=function(){return null==this.l||null!=this.h&&this.F?!1:!0};q.Mf=function(a){this.G=a};M("shaka.media.PresentationTimeline",R);R.prototype.setAvailabilityTimeOffset=R.prototype.Mf;R.prototype.usingPresentationStartTime=R.prototype.Uf;R.prototype.getSeekRangeEnd=R.prototype.mb;R.prototype.getSeekRangeStart=R.prototype.ec;R.prototype.getSafeSeekRangeStart=R.prototype.Jc;R.prototype.getSegmentAvailabilityEnd=R.prototype.Jb;
302
+ R.prototype.setUserSeekStart=R.prototype.Qf;R.prototype.getSegmentAvailabilityStart=R.prototype.ob;R.prototype.isInProgress=R.prototype.Mb;R.prototype.isLive=R.prototype.U;R.prototype.offset=R.prototype.offset;R.prototype.notifyMaxSegmentDuration=R.prototype.re;R.prototype.notifyMinSegmentStartTime=R.prototype.se;R.prototype.lockStartTime=R.prototype.me;R.prototype.notifySegments=R.prototype.mc;R.prototype.getDelay=R.prototype.wg;R.prototype.setDelay=R.prototype.xh;
303
+ R.prototype.setSegmentAvailabilityDuration=R.prototype.Me;R.prototype.setStatic=R.prototype.Zc;R.prototype.setClockOffset=R.prototype.Nf;R.prototype.getPresentationStartTime=R.prototype.Jg;R.prototype.setDuration=R.prototype.Ua;R.prototype.getMaxSegmentDuration=R.prototype.Fg;R.prototype.getDuration=R.prototype.getDuration;function fj(a,b,c){this.l=c;this.j=a;this.B=gj(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.A=0;this.C=b;this.i=function(){}}fj.prototype.release=function(){this.l=this.j=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.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=r(Di(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.A=e;this.g=a;this.B=b;this.G=c;this.i=new yf;this.m=!1;this.F=a.readyState;this.C=0;this.h=d;this.l=!1;this.i.o(a,"waiting",function(){return kj(f)});this.j=(new P(function(){kj(f)})).na(.25)}jj.prototype.release=function(){this.i&&(this.i.release(),this.i=null);null!=this.j&&(this.j.stop(),this.j=null);this.h&&(this.h.release(),this.h=null);this.g=this.B=this.A=null};jj.prototype.ve=function(){this.l=!0;kj(this)};
303
304
  function kj(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.m)return}else a.m=!1;if(!a.g.paused||0==a.g.currentTime&&(a.g.autoplay||0!=a.g.currentTime)){a.g.readyState!=a.F&&(a.F=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.j,d=gj(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.B!=d)b.m=f,b.g=e,b.B=d,b.h=!1;e=f-b.m;if(d=e>=b.C&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.A++,b.l(new N("stalldetected"));b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=Ei(c,b,a.G.gapDetectionThreshold),null==
304
305
  d||0==d&&!a.l||(e=c.start(d),e>=a.B.mb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,a.C++,a.A(new N("gapjumped")))))}}};function lj(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=mj.value().get(b),c.ya(a,b,d))}var mj=new Kc(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function nj(a,b,c){var d=this;this.g=a;this.l=b;this.j=c;this.m=!1;this.h=new yf;this.i=new oj(a);lj(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){pj(d,d.j)})}nj.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.i&&(this.i.release(),this.i=null);this.l=function(){};this.g=null};function qj(a){return a.m?a.g.currentTime:a.j}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)})}
305
306
  function pj(a,b){.001>Math.abs(a.g.currentTime-b)?tj(a):(a.h.ya(a.g,"seeking",function(){tj(a)}),sj(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function tj(a){a.m=!0;a.h.o(a.g,"seeking",function(){return a.l()})}function oj(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new P(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};
306
- function sj(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.ka(.1)};function uj(a){this.g=a;this.j=!1;this.h=null;this.i=new yf}q=uj.prototype;q.be=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.ya(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()})};q.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};q.ce=function(a){this.h=this.j?this.h:a};q.gd=function(){return(this.j?this.g.currentTime:this.h)||0};q.cf=function(){return 0};
307
- q.bf=function(){return 0};q.Hf=function(){};
307
+ function sj(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.na(.1)};function uj(a){this.g=a;this.j=!1;this.h=null;this.i=new yf}q=uj.prototype;q.be=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.ya(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()})};q.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};q.ce=function(a){this.h=this.j?this.h:a};q.gd=function(){return(this.j?this.g.currentTime:this.h)||0};q.cf=function(){return 0};
308
+ q.bf=function(){return 0};q.If=function(){};
308
309
  function vj(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.F=b.minBufferTime||0;this.l=c;this.C=e;this.B=null;this.A=wj(a,c,f);this.j=new jj(a,b.presentationTimeline,c,this.A,f);this.h=new nj(a,function(){a:{var h=g.j;h.m=!0;h.l=!1;var k=qj(g.h);h=xj(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.B||g.B<k-1)){g.B=k;rj(g.h,h);h=void 0;break a}g.C();h=void 0}return h},yj(this,d));this.m=new P(function(){if(0!=g.i.readyState&&!g.i.paused){var h=qj(g.h),k=g.g.ec(),l=g.g.mb();3>
309
- l-k&&(k=l-3);h<k&&(h=xj(g,h),g.i.currentTime=h)}})}q=vj.prototype;q.be=function(){this.m.ka(.25)};q.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.C=function(){}};q.ce=function(a){rj(this.h,a)};q.gd=function(){var a=qj(this.h);return 0<this.i.readyState&&!this.i.paused?zj(this,a):a};q.cf=function(){return this.A?this.A.A:0};q.bf=function(){return this.j.C};
310
- function yj(a,b){null==b?b=Infinity>a.g.getDuration()?a.g.ec():a.g.mb():0>b&&(b=a.g.mb()+b);return Aj(a,zj(a,b))}q.Hf=function(){this.j.ve()};function Aj(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}function xj(a,b){var c=Math.max(a.F,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.ec(),f=a.g.mb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Jc(c),k=a.g.Jc(d);c=a.g.Jc(c+d);return b>=g?Aj(a,b):b>f?f:b<e?Bi(a.i.buffered,k)?k:c:b>=h||Bi(a.i.buffered,b)?b:c}
311
- function zj(a,b){var c=a.g.ec();if(b<c)return c;a=a.g.mb();return b>a?a:b}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 Bj(a){this.L=a;this.g=null;this.h=0;this.i=!1}q=Bj.prototype;q.release=function(){this.i||(this.L=[],this.g&&this.g.stop(),this.g=null)};q.Yg=function(){this.i=!0};q.find=function(a){for(var b=this.L.length-1,c=b;0<=c;--c){var d=this.L[c],e=c<b?this.L[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.h}return this.L.length&&a<this.L[0].startTime?this.h:null};q.get=function(a){if(0==this.L.length)return null;a-=this.h;return 0>a||a>=this.L.length?null:this.L[a]};
310
+ l-k&&(k=l-3);h<k&&(h=xj(g,h),g.i.currentTime=h)}})}q=vj.prototype;q.be=function(){this.m.na(.25)};q.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.C=function(){}};q.ce=function(a){rj(this.h,a)};q.gd=function(){var a=qj(this.h);return 0<this.i.readyState&&!this.i.paused?zj(this,a):a};q.cf=function(){return this.A?this.A.A:0};q.bf=function(){return this.j.C};
311
+ function yj(a,b){null==b?b=Infinity>a.g.getDuration()?a.g.ec():a.g.mb():0>b&&(b=a.g.mb()+b);return Aj(a,zj(a,b))}q.If=function(){this.j.ve()};function Aj(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}function xj(a,b){var c=Math.max(a.F,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.ec(),f=a.g.mb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Jc(c),k=a.g.Jc(d);c=a.g.Jc(c+d);return b>=g?Aj(a,b):b>f?f:b<e?Bi(a.i.buffered,k)?k:c:b>=h||Bi(a.i.buffered,b)?b:c}
312
+ function zj(a,b){var c=a.g.ec();if(b<c)return c;a=a.g.mb();return b>a?a:b}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 Bj(a){this.L=a;this.g=null;this.h=0;this.i=!1}q=Bj.prototype;q.release=function(){this.i||(this.L=[],this.g&&this.g.stop(),this.g=null)};q.$g=function(){this.i=!0};q.find=function(a){for(var b=this.L.length-1,c=b;0<=c;--c){var d=this.L[c],e=c<b?this.L[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.h}return this.L.length&&a<this.L[0].startTime?this.h:null};q.get=function(a){if(0==this.L.length)return null;a-=this.h;return 0>a||a>=this.L.length?null:this.L[a]};
312
313
  q.offset=function(a){if(!this.i)for(var b=r(this.L),c=b.next();!c.done;c=b.next())c.value.offset(a)};q.Sc=function(a){if(!this.i&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.L=this.L.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.L.push.apply(this.L,ja(a))}};q.lc=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.L.length||d.endTime>c.L[0].startTime)});this.Sc(a);this.Hb(b)};
313
314
  q.Hb=function(a){if(!this.i){var b=this.L.length;this.L=this.L.filter(function(c){return c.endTime>a});this.h+=b-this.L.length}};
314
- q.yb=function(a,b,c){c=void 0===c?!1:c;if(!this.i){for(;this.L.length;)if(this.L[this.L.length-1].startTime>=b)this.L.pop();else break;for(;this.L.length;)if(this.L[0].endTime<=a)this.L.shift(),c||this.h++;else break;0!=this.L.length&&(a=this.L[this.L.length-1],this.L[this.L.length-1]=new wi(a.startTime,b,a.B,a.Va,a.Da,a.i,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.h,a.tilesLayout,a.A,a.g,a.status,a.m),this.L[this.L.length-1].l=a.l)}};
315
- q.Jd=function(a,b){var c=this;this.i||(this.g&&this.g.stop(),this.g=new P(function(){var d=b();d?c.L.push.apply(c.L,ja(d)):(c.g.stop(),c.g=null)}),this.g.ka(a))};Bj.prototype[Symbol.iterator]=function(){return this.cc(0)};Bj.prototype.cc=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.h.length)for(var e=c.h.length-1;0<=e;--e){var f=c.h[e];if(a>=f.startTime&&a<f.endTime){b++;d=e-1;break}}return new Cj(this,b,d)};
316
- function Dj(a,b,c){return new Bj([new wi(a,a+b,function(){return c},0,null,null,a,a,a+b)])}M("shaka.media.SegmentIndex",Bj);Bj.forSingleSegment=Dj;Bj.prototype.getIteratorForTime=Bj.prototype.cc;Bj.prototype.updateEvery=Bj.prototype.Jd;Bj.prototype.fit=Bj.prototype.yb;Bj.prototype.evict=Bj.prototype.Hb;Bj.prototype.mergeAndEvict=Bj.prototype.lc;Bj.prototype.offset=Bj.prototype.offset;Bj.prototype.get=Bj.prototype.get;Bj.prototype.find=Bj.prototype.find;Bj.prototype.markImmutable=Bj.prototype.Yg;
317
- Bj.prototype.release=Bj.prototype.release;function Cj(a,b,c){this.i=a;this.g=b;this.h=c}Cj.prototype.ig=function(){return this.g};Cj.prototype.current=function(){var a=this.i.get(this.g);a&&0<a.h.length&&a.Ra().length&&this.h>=a.h.length&&(this.g++,this.h=0,a=this.i.get(this.g));return a&&0<a.h.length?a.h[this.h]:a};
318
- Cj.prototype.next=function(){var a=this.i.get(this.g);a&&0<a.h.length?(this.h++,a.Ra().length&&this.h==a.h.length&&(this.g++,this.h=0)):(this.g++,this.h=0);a=this.current();return{value:a,done:!a}};M("shaka.media.SegmentIterator",Cj);Cj.prototype.next=Cj.prototype.next;Cj.prototype.current=Cj.prototype.current;Cj.prototype.currentPosition=Cj.prototype.ig;function Ej(){Bj.call(this,[]);this.j=[]}u(Ej,Bj);q=Ej.prototype;q.clone=function(){var a=new Ej;a.j=this.j.slice();return a};
315
+ q.yb=function(a,b,c){c=void 0===c?!1:c;if(!this.i){for(;this.L.length;)if(this.L[this.L.length-1].startTime>=b)this.L.pop();else break;for(;this.L.length;)if(this.L[0].endTime<=a)this.L.shift(),c||this.h++;else break;0!=this.L.length&&(a=this.L[this.L.length-1],this.L[this.L.length-1]=new wi(a.startTime,b,a.C,a.Va,a.Da,a.i,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.h,a.tilesLayout,a.A,a.g,a.status,a.m),this.L[this.L.length-1].l=a.l)}};
316
+ q.Jd=function(a,b){var c=this;this.i||(this.g&&this.g.stop(),this.g=new P(function(){var d=b();d?c.L.push.apply(c.L,ja(d)):(c.g.stop(),c.g=null)}),this.g.na(a))};Bj.prototype[Symbol.iterator]=function(){return this.cc(0)};Bj.prototype.cc=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.h.length)for(var e=c.h.length-1;0<=e;--e){var f=c.h[e];if(a>=f.startTime&&a<f.endTime){b++;d=e-1;break}}return new Cj(this,b,d)};
317
+ function Dj(a,b,c){return new Bj([new wi(a,a+b,function(){return c},0,null,null,a,a,a+b)])}M("shaka.media.SegmentIndex",Bj);Bj.forSingleSegment=Dj;Bj.prototype.getIteratorForTime=Bj.prototype.cc;Bj.prototype.updateEvery=Bj.prototype.Jd;Bj.prototype.fit=Bj.prototype.yb;Bj.prototype.evict=Bj.prototype.Hb;Bj.prototype.mergeAndEvict=Bj.prototype.lc;Bj.prototype.offset=Bj.prototype.offset;Bj.prototype.get=Bj.prototype.get;Bj.prototype.find=Bj.prototype.find;Bj.prototype.markImmutable=Bj.prototype.$g;
318
+ Bj.prototype.release=Bj.prototype.release;function Cj(a,b,c){this.i=a;this.g=b;this.h=c}Cj.prototype.jg=function(){return this.g};Cj.prototype.current=function(){var a=this.i.get(this.g);a&&0<a.h.length&&a.Ra().length&&this.h>=a.h.length&&(this.g++,this.h=0,a=this.i.get(this.g));return a&&0<a.h.length?a.h[this.h]:a};
319
+ Cj.prototype.next=function(){var a=this.i.get(this.g);a&&0<a.h.length?(this.h++,a.Ra().length&&this.h==a.h.length&&(this.g++,this.h=0)):(this.g++,this.h=0);a=this.current();return{value:a,done:!a}};M("shaka.media.SegmentIterator",Cj);Cj.prototype.next=Cj.prototype.next;Cj.prototype.current=Cj.prototype.current;Cj.prototype.currentPosition=Cj.prototype.jg;function Ej(){Bj.call(this,[]);this.j=[]}u(Ej,Bj);q=Ej.prototype;q.clone=function(){var a=new Ej;a.j=this.j.slice();return a};
319
320
  q.release=function(){for(var a=r(this.j),b=a.next();!b.done;b=a.next())b.value.release();this.j=[]};q.find=function(a){for(var b=0,c=r(this.j),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.h+d.L.length}return null};q.get=function(a){for(var b=0,c=r(this.j),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.h+d.L.length}return null};q.offset=function(){};q.Sc=function(){};q.Hb=function(){};q.lc=function(){};q.yb=function(){};q.Jd=function(){};
320
- M("shaka.media.MetaSegmentIndex",Ej);Ej.prototype.updateEvery=Ej.prototype.Jd;Ej.prototype.fit=Ej.prototype.yb;Ej.prototype.mergeAndEvict=Ej.prototype.lc;Ej.prototype.evict=Ej.prototype.Hb;Ej.prototype.merge=Ej.prototype.Sc;Ej.prototype.offset=Ej.prototype.offset;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.j=!1;this.i=this.g.rd();this.h=new P(function(){b.g.Gf(.25*b.i)})}Fj.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};Fj.prototype.set=function(a){this.i=a;Gj(this)};Fj.prototype.od=function(){return this.g.od()};function Gj(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.rd()!=b&&a.g.Ke(b);return}catch(c){}a.h.ka(.25);0!=a.g.rd()&&a.g.Ke(0)};function Hj(a){var b=this;this.h=a;this.g=new Set;this.i=(new P(function(){Ij(b,!1)})).ka(.25)}Hj.prototype.release=function(){this.i.stop();for(var a=r(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function Ij(a,b){for(var c=r(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function Jj(a){db.call(this);this.g=new Map;this.h=a}u(Jj,db);Jj.prototype.release=function(){this.g.clear();db.prototype.release.call(this)};function Kj(a,b){var c=a.g.get(b);c||(c={Tc:[],qf:null,contentType:b},a.g.set(b,c));return c}function Lj(a,b,c){var d=Kj(a,b.contentType);Mj(a,d);a={oe:b,position:c};d=d.Tc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
321
+ M("shaka.media.MetaSegmentIndex",Ej);Ej.prototype.updateEvery=Ej.prototype.Jd;Ej.prototype.fit=Ej.prototype.yb;Ej.prototype.mergeAndEvict=Ej.prototype.lc;Ej.prototype.evict=Ej.prototype.Hb;Ej.prototype.merge=Ej.prototype.Sc;Ej.prototype.offset=Ej.prototype.offset;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.j=!1;this.i=this.g.rd();this.h=new P(function(){b.g.Hf(.25*b.i)})}Fj.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};Fj.prototype.set=function(a){this.i=a;Gj(this)};Fj.prototype.od=function(){return this.g.od()};function Gj(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.rd()!=b&&a.g.Ke(b);return}catch(c){}a.h.na(.25);0!=a.g.rd()&&a.g.Ke(0)};function Hj(a){var b=this;this.h=a;this.g=new Set;this.i=(new P(function(){Ij(b,!1)})).na(.25)}Hj.prototype.release=function(){this.i.stop();for(var a=r(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function Ij(a,b){for(var c=r(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function Jj(a){db.call(this);this.g=new Map;this.h=a}u(Jj,db);Jj.prototype.release=function(){this.g.clear();db.prototype.release.call(this)};function Kj(a,b){var c=a.g.get(b);c||(c={Tc:[],qf:null,contentType:b},a.g.set(b,c));return c}function Lj(a,b,c){var d=Kj(a,b.contentType);Mj(a,d);a={oe:b,position:c};d=d.Tc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
321
322
  Jj.prototype.j=function(a){for(var b=r(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.Tc;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.oe;break a}}d=null}if(e=d)e=c.qf,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);
322
- 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.qf=d,JSON.stringify(d),c=new N("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function Mj(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.Tc;b.Tc=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.Tc=[]};function Nj(a){db.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new P(function(){for(var c=b.i(),d=r(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new N("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).ka(2)}u(Nj,db);Nj.prototype.release=function(){this.g.clear();this.h.stop();db.prototype.release.call(this)};function Oj(a){db.call(this);var b=this;this.i=a;this.g=new Map;this.l=[{Wb:null,Vb:Pj,Lb:function(c,d){return Qj(b,"enter",c,d)}},{Wb:Rj,Vb:Pj,Lb:function(c,d){return Qj(b,"enter",c,d)}},{Wb:Sj,Vb:Pj,Lb:function(c,d){return Qj(b,"enter",c,d)}},{Wb:Pj,Vb:Rj,Lb:function(c,d){return Qj(b,"exit",c,d)}},{Wb:Pj,Vb:Sj,Lb:function(c,d){return Qj(b,"exit",c,d)}},{Wb:Rj,Vb:Sj,Lb:function(c,d){return Qj(b,"skip",c,d)}},{Wb:Sj,Vb:Rj,Lb:function(c,d){return Qj(b,"skip",c,d)}}];this.h=new yf;this.h.o(this.i,"regionremove",
323
+ 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.qf=d,JSON.stringify(d),c=new N("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function Mj(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.Tc;b.Tc=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.Tc=[]};function Nj(a){db.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new P(function(){for(var c=b.i(),d=r(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new N("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).na(2)}u(Nj,db);Nj.prototype.release=function(){this.g.clear();this.h.stop();db.prototype.release.call(this)};function Oj(a){db.call(this);var b=this;this.i=a;this.g=new Map;this.l=[{Wb:null,Vb:Pj,Lb:function(c,d){return Qj(b,"enter",c,d)}},{Wb:Rj,Vb:Pj,Lb:function(c,d){return Qj(b,"enter",c,d)}},{Wb:Sj,Vb:Pj,Lb:function(c,d){return Qj(b,"enter",c,d)}},{Wb:Pj,Vb:Rj,Lb:function(c,d){return Qj(b,"exit",c,d)}},{Wb:Pj,Vb:Sj,Lb:function(c,d){return Qj(b,"exit",c,d)}},{Wb:Rj,Vb:Sj,Lb:function(c,d){return Qj(b,"skip",c,d)}},{Wb:Sj,Vb:Rj,Lb:function(c,d){return Qj(b,"skip",c,d)}}];this.h=new yf;this.h.o(this.i,"regionremove",
323
324
  function(c){b.g.delete(c.region)})}u(Oj,db);Oj.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;db.prototype.release.call(this)};Oj.prototype.j=function(a,b){for(var c=r(this.i.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?Rj:a>d.endTime?Sj:Pj;this.g.set(d,f);for(var g=r(this.l),h=g.next();!h.done;h=g.next())h=h.value,h.Wb==e&&h.Vb==f&&h.Lb(d,b)}};
324
325
  function Qj(a,b,c,d){b=new N(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var Rj=1,Pj=2,Sj=3;function Tj(a,b,c,d,e){a=pf(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function Uj(a,b){var c=this;this.g=b;this.m=a;this.j=null;this.C=1;this.A=this.l=null;this.G=0;this.i=new Map;this.F=!1;this.H=null;this.B=!1;this.h=new wf(function(){return Vj(c)})}q=Uj.prototype;q.destroy=function(){return this.h.destroy()};function Vj(a){var b,c,d,e;return K(function(f){if(1==f.g){b=[];c=r(a.i.values());for(d=c.next();!d.done;d=c.next())e=d.value,Wj(e),b.push(Xj(e));return A(f,Promise.all(b),2)}a.i.clear();a.g=null;a.m=null;a.j=null;C(f)})}
325
326
  q.configure=function(a){this.j=a;this.H=new Xe({maxAttempts:Math.max(a.retryParameters.maxAttempts,2),baseDelay:a.retryParameters.baseDelay,backoffFactor:a.retryParameters.backoffFactor,fuzzFactor:a.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0)};q.start=function(){var a=this;return K(function(b){if(1==b.g)return A(b,Yj(a),2);xf(a.h);a.F=!0;C(b)})};
326
- function Zj(a,b){var c,d,e,f,g,h,k;K(function(l){switch(l.g){case 1:return c=Hb,a.G++,d=a.G,F(l,2),A(l,Zi(a.g.V,c.ha),4);case 4:va(l,3);break;case 2:if(e=J(l),a.g)a.g.onError(e);case 3:f=ud(b.mimeType,b.codecs),Ji(a.g.V,f,a.m.sequenceMode),g=a.g.V.m,(h=g.isTextVisible()||a.j.alwaysStreamText)&&a.G==d&&(k=ak(b),a.i.set(c.ha,k),bk(a,k,0)),C(l)}})}function ck(a){var b=a.i.get(Gb);b&&(Wj(b),Xj(b).catch(function(){}),a.i.delete(Gb));a.A=null}
327
+ function Zj(a,b){var c,d,e,f,g,h,k;K(function(l){switch(l.g){case 1:return c=Hb,a.G++,d=a.G,F(l,2),A(l,Zi(a.g.V,c.ia),4);case 4:va(l,3);break;case 2:if(e=J(l),a.g)a.g.onError(e);case 3:f=ud(b.mimeType,b.codecs),Ji(a.g.V,f,a.m.sequenceMode),g=a.g.V.m,(h=g.isTextVisible()||a.j.alwaysStreamText)&&a.G==d&&(k=ak(b),a.i.set(c.ia,k),bk(a,k,0)),C(l)}})}function ck(a){var b=a.i.get(Gb);b&&(Wj(b),Xj(b).catch(function(){}),a.i.delete(Gb));a.A=null}
327
328
  function dk(a,b){var c=a.i.get("video");if(c){var d=c.stream;if(d)if(b)(b=d.trickModeVideo)&&!c.Tb&&(ek(a,b,!1,0,!1),c.Tb=d);else if(d=c.Tb)c.Tb=null,ek(a,d,!0,0,!1)}}function fk(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.l=b;a.F&&(b.video&&ek(a,b.video,c,d,e,f),b.audio&&ek(a,b.audio,c,d,e,f))}function gk(a,b){a.A=b;a.F&&ek(a,b,!0,0,!1)}
328
- function ek(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=Gb?g&&(g.Tb&&(b.trickModeVideo?(g.Tb=b,b=b.trickModeVideo):g.Tb=null),g.stream!=b||e)&&(b.type==Gb&&Ji(a.g.V,ud(b.mimeType,b.codecs),a.m.sequenceMode),g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.sa=null,g.ef=!!f,c&&(g.Dc?g.Md=!0:g.Ja?(g.Eb=!0,g.ld=d,g.Md=!0):(Wj(g),hk(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)}))),ik(a,g).catch(function(h){if(a.g)a.g.onError(h)})):Zj(a,b)}
329
+ function ek(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=Gb?g&&(g.Tb&&(b.trickModeVideo?(g.Tb=b,b=b.trickModeVideo):g.Tb=null),g.stream!=b||e)&&(b.type==Gb&&Ji(a.g.V,ud(b.mimeType,b.codecs),a.m.sequenceMode),g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.ma=null,g.ef=!!f,c&&(g.Dc?g.Md=!0:g.Ja?(g.Eb=!0,g.ld=d,g.Md=!0):(Wj(g),hk(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)}))),ik(a,g).catch(function(h){if(a.g)a.g.onError(h)})):Zj(a,b)}
329
330
  function ik(a,b){var c,d;return K(function(e){if(1==e.g){if(!b.Ma)return e.return();c=b.stream;d=b.Ma;return c.segmentIndex?e.D(2):A(e,c.createSegmentIndex(),2)}if(b.Ma!=d||b.stream!=c)return e.return();var f=a.g.qd();var g=Oi(a.g.V,b.type),h=b.stream.segmentIndex.find(b.Ia?b.Ia.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.Da?k.Da-k.Va:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.i)&&(h+=(k.Da?k.Da-k.Va:null)||0),k=a.g.getBandwidthEstimate(),
330
331
  f=8*h/k<(g||0)-f-Math.max(a.m.minBufferTime||0,a.j.rebufferingGoal)||b.Ma.h.g>h?!0:!1):f=!1;f&&b.Ma.abort();C(e)})}
331
- q.Wc=function(){if(this.g)for(var a=this.g.qd(),b=r(this.i.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.i.get(d);c.sa=null;var e=this.g.V;d==Gb?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=Ni(e,d),e=Bi(e,a));if(!e){(null!=Oi(this.g.V,d)||c.Ja)&&jk(this,c);c.Ma&&(c.Ma.abort(),c.Ma=null);if(d===Gb)for(d=this.g.V.F.g,d.l=0,d.h=[],d.g=[],e=d.i,e.i=[],e.h=[],e.g=0,ii(d),d=r(d.j.values()),e=d.next();!e.done;e=d.next())di(e.value);c.Wc=!0}}};
332
- function jk(a,b){b.Dc||b.Eb||(b.Ja?(b.Eb=!0,b.ld=0):null==Mi(a.g.V,b.type)?null==b.fb&&bk(a,b,0):(Wj(b),hk(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
333
- function Yj(a){var b,c,d,e,f,g,h,k,l,m;return K(function(p){if(1==p.g){b=Hb;if(!a.l)throw new O(2,5,5006);c=new Map;d=new Set;a.l.audio&&(c.set(b.Gb,a.l.audio),d.add(a.l.audio));a.l.video&&(c.set(b.La,a.l.video),d.add(a.l.video));a.A&&(c.set(b.ha,a.A),d.add(a.A));e=a.g.V;f=a.j.forceTransmuxTS;return A(p,e.init(c,f,a.m.sequenceMode),2)}xf(a.h);a.updateDuration();g=r(c.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=c.get(k),a.i.has(k)||(m=ak(l),a.i.set(k,m),bk(a,m,0));C(p)})}
334
- function ak(a){return{stream:a,type:a.type,sa:null,Ia:null,ud:null,le:null,ke:null,je:null,Tb:null,endOfStream:!1,Ja:!1,fb:null,Eb:!1,ld:0,Md:!1,Dc:!1,Wc:!0,qe:!1,ye:!1,Mc:!1,Ma:null}}q.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.V.Ua(a):this.g.V.Ua(Math.pow(2,32))};
332
+ q.Wc=function(){if(this.g)for(var a=this.g.qd(),b=r(this.i.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.i.get(d);var e=null;c.ma&&(e=c.ma.current());if(!e||e.startTime>a||e.endTime<a)c.ma=null;e=this.g.V;d==Gb?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=Ni(e,d),e=Bi(e,a));if(!e){(null!=Oi(this.g.V,d)||c.Ja)&&jk(this,c);c.Ma&&(c.Ma.abort(),c.Ma=null);if(d===Gb)for(d=this.g.V.F.g,d.l=0,d.h=[],d.g=[],e=d.i,e.i=[],e.h=[],e.g=0,ii(d),d=r(d.j.values()),e=d.next();!e.done;e=d.next())di(e.value);
333
+ c.Wc=!0}}};function jk(a,b){b.Dc||b.Eb||(b.Ja?(b.Eb=!0,b.ld=0):null==Mi(a.g.V,b.type)?null==b.fb&&bk(a,b,0):(Wj(b),hk(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
334
+ function Yj(a){var b,c,d,e,f,g,h,k,l,m;return K(function(p){if(1==p.g){b=Hb;if(!a.l)throw new O(2,5,5006);c=new Map;d=new Set;a.l.audio&&(c.set(b.Gb,a.l.audio),d.add(a.l.audio));a.l.video&&(c.set(b.La,a.l.video),d.add(a.l.video));a.A&&(c.set(b.ia,a.A),d.add(a.A));e=a.g.V;f=a.j.forceTransmuxTS;return A(p,e.init(c,f,a.m.sequenceMode),2)}xf(a.h);a.updateDuration();g=r(c.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=c.get(k),a.i.has(k)||(m=ak(l),a.i.set(k,m),bk(a,m,0));C(p)})}
335
+ function ak(a){return{stream:a,type:a.type,ma:null,Ia:null,ud:null,le:null,ke:null,je:null,Tb:null,endOfStream:!1,Ja:!1,fb:null,Eb:!1,ld:0,Md:!1,Dc:!1,Wc:!0,qe:!1,ye:!1,Mc:!1,Ma:null}}q.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.V.Ua(a):this.g.V.Ua(Math.pow(2,32))};
335
336
  function kk(a,b){var c,d,e,f,g;return K(function(h){switch(h.g){case 1:xf(a.h);if(b.Ja||null==b.fb||b.Dc)return h.return();b.fb=null;if(!b.Eb){h.D(2);break}return A(h,hk(a,b,b.Md,b.ld),3);case 3:return h.return();case 2:if(b.stream.segmentIndex){h.D(4);break}c=b.stream;return A(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.Ja||b.fb||bk(a,b,0),h.return();case 4:F(h,6);d=lk(a,b);null!=d&&(bk(a,b,d),b.Mc=!1);va(h,7);break;case 6:return e=
336
337
  J(h),A(h,mk(a,e),8);case 8:return h.return();case 7:f=Array.from(a.i.values());if(!a.F||!f.every(function(k){return k.endOfStream})){h.D(0);break}return A(h,a.g.V.endOfStream(),10);case 10:xf(a.h),g=a.g.V.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.Ua(g),C(h)}})}
337
338
  function lk(a,b){if(nk(b))return Xi(a.g.V,b.stream.originalId||""),null;b.type==Gb&&Yi(a.g.V);var c=a.g.qd(),d=b.Ia?b.Ia.endTime:c,e=Pi(a.g.V,b.type,c),f=Math.max(a.m.minBufferTime||0,a.j.rebufferingGoal,a.j.bufferingGoal)*a.C,g=a.m.presentationTimeline.getDuration()-d,h=Oi(a.g.V,b.type);if(1E-6>g&&h)return b.endOfStream=!0,"video"==b.type&&(a=a.i.get(Gb))&&nk(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.j.updateIntervalSeconds/2;e=ok(a,b,c,h);if(!e)return a.j.updateIntervalSeconds;
338
- f=Infinity;g=Array.from(a.i.values());g=r(g);for(h=g.next();!h.done;h=g.next())h=h.value,nk(h)||h.sa&&!h.sa.current()||(f=Math.min(f,h.Ia?h.Ia.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.j.updateIntervalSeconds;pk(a,b,c,e).catch(function(){});return null}
339
- function ok(a,b,c,d){if(b.sa)return b.sa.current();if(b.Ia||d)return c=b.Ia?b.Ia.endTime:d,b.qe=!0,b.sa=b.stream.segmentIndex.cc(c),b.sa&&b.sa.next().value;a=a.j.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.sa=b.stream.segmentIndex.cc(d),e=b.sa&&b.sa.next().value);e||(b.sa=b.stream.segmentIndex.cc(c),e=b.sa&&b.sa.next().value);return e}
340
- function pk(a,b,c,d){var e,f,g,h,k,l,m,p,n,t,y,x,v,w,D;return K(function(z){switch(z.g){case 1:e=Hb;f=b.stream;g=b.sa;b.Ja=!0;F(z,2);if(2==d.fc())throw new O(1,1,1011);return A(z,qk(a,b,d),4);case 4:xf(a.h);if(a.B)return z.return();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.j.lowLatencyMode&&k&&h&&!d.m)return p=new Uint8Array(0),t=n=!1,y=function(B){var G,E,H;return K(function(I){if(n)return I.return();t=!0;xf(a.h);if(a.B)return I.return();p=rk(p,B);G=!1;E=0;(new Jf).box("mdat",
339
+ f=Infinity;g=Array.from(a.i.values());g=r(g);for(h=g.next();!h.done;h=g.next())h=h.value,nk(h)||h.ma&&!h.ma.current()||(f=Math.min(f,h.Ia?h.Ia.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.j.updateIntervalSeconds;pk(a,b,c,e).catch(function(){});return null}
340
+ function ok(a,b,c,d){if(b.ma)return b.ma.current();if(b.Ia||d)return c=b.Ia?b.Ia.endTime:d,b.qe=!0,b.ma=b.stream.segmentIndex.cc(c),b.ma&&b.ma.next().value;a=a.j.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.ma=b.stream.segmentIndex.cc(d),e=b.ma&&b.ma.next().value);e||(b.ma=b.stream.segmentIndex.cc(c),e=b.ma&&b.ma.next().value);return e}
341
+ function pk(a,b,c,d){var e,f,g,h,k,l,m,p,n,t,y,x,v,w,D;return K(function(z){switch(z.g){case 1:e=Hb;f=b.stream;g=b.ma;b.Ja=!0;F(z,2);if(2==d.fc())throw new O(1,1,1011);return A(z,qk(a,b,d),4);case 4:xf(a.h);if(a.B)return z.return();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.j.lowLatencyMode&&k&&h&&!d.m)return p=new Uint8Array(0),t=n=!1,y=function(B){var G,E,H;return K(function(I){if(n)return I.return();t=!0;xf(a.h);if(a.B)return I.return();p=rk(p,B);G=!1;E=0;(new Jf).box("mdat",
341
342
  function(L){E=L.size+L.start;G=!0}).parse(p,!1,!0);if(!G)return I.D(0);H=p.subarray(0,E);p=p.subarray(E);return A(I,sk(a,b,c,f,d,H),0)})},A(z,tk(a,b,d,y),11);l=tk(a,b,d);return A(z,l,7);case 7:m=z.h;xf(a.h);if(a.B)return z.return();if(!d.m){z.D(8);break}return A(z,uk(m,d,g),9);case 9:m=z.h;case 8:return xf(a.h),b.Eb?(b.Ja=!1,bk(a,b,0),z.return()):A(z,sk(a,b,c,f,d,m),6);case 11:x=z.h;if(t){z.D(6);break}n=!0;xf(a.h);return a.B?z.return():b.Eb?(b.Ja=!1,bk(a,b,0),z.return()):A(z,sk(a,b,c,f,d,x),6);case 6:xf(a.h);
342
- if(a.B)return z.return();b.Ia=d;g.next();b.Ja=!1;b.ye=!1;v=a.g.V.kb();w=v[b.type];$a(JSON.stringify(w));b.Eb||a.g.ve();bk(a,b,0);va(z,0);break;case 2:D=J(z);xf(a.h,D);if(a.B)return z.return();b.Ja=!1;if(7001==D.code)b.Ja=!1,Wj(b),bk(a,b,0),z.D(0);else if(b.type==e.ha&&a.j.ignoreTextStreamFailures)a.i.delete(e.ha),z.D(0);else if(3017==D.code)vk(a,b,D),z.D(0);else return b.Mc=!0,D.severity=2,A(z,mk(a,D),0)}})}
343
+ if(a.B)return z.return();b.Ia=d;g.next();b.Ja=!1;b.ye=!1;v=a.g.V.kb();w=v[b.type];$a(JSON.stringify(w));b.Eb||a.g.ve();bk(a,b,0);va(z,0);break;case 2:D=J(z);xf(a.h,D);if(a.B)return z.return();b.Ja=!1;if(7001==D.code)b.Ja=!1,Wj(b),bk(a,b,0),z.D(0);else if(b.type==e.ia&&a.j.ignoreTextStreamFailures)a.i.delete(e.ia),z.D(0);else if(3017==D.code)vk(a,b,D),z.D(0);else return b.Mc=!0,D.severity=2,A(z,mk(a,D),0)}})}
343
344
  function uk(a,b,c){var d,e,f,g;return K(function(h){if(1==h.g)return d=b.m,d.cryptoKey?h.D(2):A(h,d.fetchKey(),3);e=d.iv;if(!e)for(e=Cc(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c.g,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 rk(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
344
345
  function vk(a,b,c){if(!Array.from(a.i.values()).some(function(e){return e!=b&&e.ye})){var d=Math.round(100*a.C);if(20<d)a.C-=.2;else if(4<d)a.C-=.04;else{b.Mc=!0;a.B=!0;a.g.onError(c);return}b.ye=!0}bk(a,b,4)}
345
346
  function qk(a,b,c){var d,e,f,g,h,k,l,m;return K(function(p){d=[];e=Math.max(0,c.appendWindowStart-.1);f=c.appendWindowEnd+.01;g=c.timestampOffset;if(g!=b.le||e!=b.ke||f!=b.je)h=function(){var n;return K(function(t){if(1==t.g)return F(t,2),b.ke=e,b.je=f,b.le=g,A(t,$i(a.g.V,b.type,g,e,f,a.m.sequenceMode),4);if(2!=t.g)return va(t,0);n=J(t);b.ke=null;b.je=null;b.le=null;throw n;})},d.push(h());!vi(c.i,b.ud)&&(b.ud=c.i)&&(k=tk(a,b,c.i),l=function(){var n,t,y;return K(function(x){switch(x.g){case 1:return F(x,
346
- 2),A(x,k,4);case 4:return n=x.h,xf(a.h),t=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,A(x,a.g.hf(b.type,n),5);case 5:return A(x,Qi(a.g.V,b.type,n,null,t),6);case 6:va(x,0);break;case 2:throw y=J(x),b.ud=null,y;}})},a.g.ah(c.startTime,c.i),d.push(l()));a.m.sequenceMode&&(m=b.Ia?b.Ia.l:null,c.l!=m||b.qe)&&(b.qe=!1,d.push(aj(a.g.V,b.type,c.startTime)));return A(p,Promise.all(d),0)})}
347
+ 2),A(x,k,4);case 4:return n=x.h,xf(a.h),t=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,A(x,a.g.hf(b.type,n),5);case 5:return A(x,Qi(a.g.V,b.type,n,null,t),6);case 6:va(x,0);break;case 2:throw y=J(x),b.ud=null,y;}})},a.g.dh(c.startTime,c.i),d.push(l()));a.m.sequenceMode&&(m=b.Ia?b.Ia.l:null,c.l!=m||b.qe)&&(b.qe=!1,d.push(aj(a.g.V,b.type,c.startTime)));return A(p,Promise.all(d),0)})}
347
348
  function sk(a,b,c,d,e,f){var g,h,k;return K(function(l){switch(l.g){case 1:return g=d.closedCaptions&&0<d.closedCaptions.size,(null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.j.dispatchAllEmsgBoxes)&&(new Jf).X("emsg",function(m){var p=d.emsgSchemeIdUris;if(0===m.version){var n=m.reader.Uc();var t=m.reader.Uc();var y=m.reader.R();var x=m.reader.R();var v=m.reader.R();var w=m.reader.R();var D=e.startTime+x/y}else y=m.reader.R(),D=m.reader.qc()/y+e.timestampOffset,x=D-e.startTime,v=m.reader.R(),
348
- w=m.reader.R(),n=m.reader.Uc(),t=m.reader.Uc();m=m.reader.Cb(m.reader.W.byteLength-m.reader.oa());if(p&&p.includes(n)||a.j.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==n?a.g.bh():(p=(new Map).set("detail",{startTime:D,endTime:D+v/y,schemeIdUri:n,value:t,timescale:y,presentationTimeDelta:x,eventDuration:v,id:w,messageData:m}),p=new N("emsg",p),a.g.onEvent(p))}).parse(f),A(l,wk(a,b,c),2);case 2:return xf(a.h),h=b.Wc,b.Wc=!1,k=b.ef,b.ef=!1,A(l,a.g.hf(b.type,f),3);case 3:return A(l,Qi(a.g.V,b.type,
349
+ w=m.reader.R(),n=m.reader.Uc(),t=m.reader.Uc();m=m.reader.Cb(m.reader.W.byteLength-m.reader.qa());if(p&&p.includes(n)||a.j.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==n?a.g.eh():(p=(new Map).set("detail",{startTime:D,endTime:D+v/y,schemeIdUri:n,value:t,timescale:y,presentationTimeDelta:x,eventDuration:v,id:w,messageData:m}),p=new N("emsg",p),a.g.onEvent(p))}).parse(f),A(l,wk(a,b,c),2);case 2:return xf(a.h),h=b.Wc,b.Wc=!1,k=b.ef,b.ef=!1,A(l,a.g.hf(b.type,f),3);case 3:return A(l,Qi(a.g.V,b.type,
349
350
  f,e,g,h,k),4);case 4:xf(a.h),C(l)}})}function wk(a,b,c){var d,e,f,g;return K(function(h){if(1==h.g){d=Math.max(a.j.bufferBehind,a.m.presentationTimeline.g);e=Mi(a.g.V,b.type);if(null==e)return h.return();f=c-e;g=f-d;return.01>=g?h.return():A(h,a.g.V.remove(b.type,e,e+g),2)}xf(a.h);C(h)})}function nk(a){return a&&a.type==Gb&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
350
351
  function tk(a,b,c,d){var e,f,g,h,k;return K(function(l){if(1==l.g)return e=vf,f=Tj(c.Ra(),c.Va,c.Da,a.j.retryParameters,d),g=b.stream,a.g.modifySegmentRequest(f,{type:g.type,init:c instanceof ui,duration:c.endTime-c.startTime,mimeType:g.mimeType,codecs:g.codecs,bandwidth:g.bandwidth}),h=a.g.Pb.request(e,f),b.Ma=h,A(l,h.promise,2);k=l.h;b.Ma=null;return l.return(k.data)})}
351
- function hk(a,b,c,d){var e,f;return K(function(g){if(1==g.g)return b.Eb=!1,b.Md=!1,b.ld=0,b.Dc=!0,b.Ia=null,b.ud=null,b.sa=null,d?(e=a.g.qd(),f=a.g.V.getDuration(),A(g,a.g.V.remove(b.type,e+d,f),3)):A(g,Zi(a.g.V,b.type),4);if(3!=g.g)return xf(a.h),c?A(g,a.g.V.flush(b.type),3):g.D(3);xf(a.h);b.Dc=!1;b.endOfStream=!1;b.Ja||b.fb||bk(a,b,0);C(g)})}
352
+ function hk(a,b,c,d){var e,f;return K(function(g){if(1==g.g)return b.Eb=!1,b.Md=!1,b.ld=0,b.Dc=!0,b.Ia=null,b.ud=null,b.ma=null,d?(e=a.g.qd(),f=a.g.V.getDuration(),A(g,a.g.V.remove(b.type,e+d,f),3)):A(g,Zi(a.g.V,b.type),4);if(3!=g.g)return xf(a.h),c?A(g,a.g.V.flush(b.type),3):g.D(3);xf(a.h);b.Dc=!1;b.endOfStream=!1;b.Ja||b.fb||bk(a,b,0);C(g)})}
352
353
  function bk(a,b,c){var d=b.type;if(d!=Gb||a.i.has(d))b.fb=(new Lc(function(){var e;return K(function(f){if(1==f.g)return F(f,2),A(f,kk(a,b),4);if(2!=f.g)return va(f,0);e=J(f);if(a.g)a.g.onError(e);C(f)})})).S(c)}function Wj(a){null!=a.fb&&(a.fb.stop(),a.fb=null)}function Xj(a){return K(function(b){return a.Ma?A(b,a.Ma.abort(),0):b.D(0)})}function mk(a,b){return K(function(c){if(1==c.g)return A(c,Ze(a.H),2);xf(a.h);a.g.onError(b);b.handled||a.j.failureCallback(b);C(c)})};function xk(a,b){var c=yk(),d=this;this.j=b;this.i=a;this.l=c;this.A=null;this.m=[];this.h=this.g=null;this.C=Promise.resolve().then(function(){return zk(d)});this.B=new wf(function(){return Ak(d)})}xk.prototype.destroy=function(){return this.B.destroy()};function Ak(a){var b,c,d;return K(function(e){if(1==e.g)return a.h&&a.h.abort(),Bk(a),A(e,a.C,2);a.g&&a.g.cb.Rb();b=r(a.m);for(c=b.next();!c.done;c=b.next())d=c.value,d.cb.Rb();a.g=null;a.m=[];a.j=null;C(e)})}
353
- function Ck(a,b){var c={nc:function(){},zd:function(){},Rb:function(){},onError:function(){},Cd:function(){},cj:function(){}};a.m.push({create:b,cb:c});a.h&&a.h.abort();Bk(a);return c}
354
- function zk(a){return K(function(b){if(a.B.g)b=b.D(0);else{if(0==a.m.length||a.g&&!a.g.Kb)var c=!1;else{a.g&&(a.g.cb.Rb(),a.g=null);c=a.m.shift();var d=c.create(a.l);d?(c.cb.nc(),a.g={node:d.node,payload:d.payload,Kb:d.Kb,cb:c.cb}):c.cb.Cd();c=!0}c?c=Promise.resolve():a.g?c=Dk(a):(a.j.$g(a.i),a.A=new Jc,c=a.A);b=A(b,c,1)}return b})}
355
- function Dk(a){var b,c;return K(function(d){switch(d.g){case 1:return a.i=a.j.Gg(a.i,a.l,a.g.node,a.g.payload),F(d,2),a.h=a.j.kg(a.i,a.l,a.g.payload),A(d,a.h.promise,4);case 4:a.h=null;a.i==a.g.node&&(a.g.cb.zd(),a.g=null);va(d,0);break;case 2:b=J(d);if(7001==b.code)a.g.cb.Rb();else a.g.cb.onError(b);a.g=null;a.h=null;c=a;return A(d,a.j.handleError(a.l,b),5);case 5:c.i=d.h,C(d)}})}function Bk(a){a.A&&(a.A.resolve(),a.A=null)};function Ek(a){var b=[],c=700<=a.fontWeight,d="italic"==a.fontStyle,e=a.textDecoration.includes("underline");c&&b.push("b");d&&b.push("i");e&&b.push("u");c=b.reduce(function(f,g){return f+"<"+g+">"},"");b=b.reduceRight(function(f,g){return f+"</"+g+">"},"");return a.lineBreak?"\n":a.nestedCues.length?a.nestedCues.map(Ek).join(""):c+a.payload+b}
354
+ function Ck(a,b){var c={nc:function(){},zd:function(){},Rb:function(){},onError:function(){},Cd:function(){},ej:function(){}};a.m.push({create:b,cb:c});a.h&&a.h.abort();Bk(a);return c}
355
+ function zk(a){return K(function(b){if(a.B.g)b=b.D(0);else{if(0==a.m.length||a.g&&!a.g.Kb)var c=!1;else{a.g&&(a.g.cb.Rb(),a.g=null);c=a.m.shift();var d=c.create(a.l);d?(c.cb.nc(),a.g={node:d.node,payload:d.payload,Kb:d.Kb,cb:c.cb}):c.cb.Cd();c=!0}c?c=Promise.resolve():a.g?c=Dk(a):(a.j.bh(a.i),a.A=new Jc,c=a.A);b=A(b,c,1)}return b})}
356
+ function Dk(a){var b,c;return K(function(d){switch(d.g){case 1:return a.i=a.j.Hg(a.i,a.l,a.g.node,a.g.payload),F(d,2),a.h=a.j.lg(a.i,a.l,a.g.payload),A(d,a.h.promise,4);case 4:a.h=null;a.i==a.g.node&&(a.g.cb.zd(),a.g=null);va(d,0);break;case 2:b=J(d);if(7001==b.code)a.g.cb.Rb();else a.g.cb.onError(b);a.g=null;a.h=null;c=a;return A(d,a.j.handleError(a.l,b),5);case 5:c.i=d.h,C(d)}})}function Bk(a){a.A&&(a.A.resolve(),a.A=null)};function Ek(a){var b=[],c=700<=a.fontWeight,d="italic"==a.fontStyle,e=a.textDecoration.includes("underline");c&&b.push("b");d&&b.push("i");e&&b.push("u");c=b.reduce(function(f,g){return f+"<"+g+">"},"");b=b.reduceRight(function(f,g){return f+"</"+g+">"},"");return a.lineBreak?"\n":a.nestedCues.length?a.nestedCues.map(Ek).join(""):c+a.payload+b}
356
357
  function Fk(a,b){a=r(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.isContainer)Fk(c.nestedCues,b);else{var d=c.clone();d.nestedCues=[];d.payload=Ek(c);b.push(d)}return b};function Gk(a){this.g=null;for(var b=r(Array.from(a.textTracks)),c=b.next();!c.done;c=b.next())c=c.value,c.mode="disabled","Shaka Player TextTrack"==c.label&&(this.g=c);this.g||(this.g=a.addTextTrack("subtitles","Shaka Player TextTrack"));this.g.mode="hidden"}q=Gk.prototype;q.remove=function(a,b){if(!this.g)return!1;Hk(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
357
358
  q.append=function(a){var b=Fk(a,[]),c=[];a=this.g.cues?Array.from(this.g.cues):[];var d={};b=r(b);for(var e=b.next();!e.done;d={Xb:d.Xb},e=b.next())d.Xb=e.value,a.some(function(f){return function(g){return g.startTime==f.Xb.startTime&&g.endTime==f.Xb.endTime&&g.text==f.Xb.payload?!0:!1}}(d))||(e=Ik(d.Xb))&&c.push(e);a=c.slice().sort(function(f,g){return f.startTime!=g.startTime?f.startTime-g.startTime:f.endTime!=g.endTime?f.endTime-g.startTime:"line"in VTTCue.prototype?c.indexOf(g)-c.indexOf(f):c.indexOf(f)-
358
359
  c.indexOf(g)});a=r(a);for(d=a.next();!d.done;d=a.next())this.g.addCue(d.value)};q.destroy=function(){this.g&&(Hk(this.g,function(){return!0}),this.g.mode="disabled");this.g=null;return Promise.resolve()};q.isTextVisible=function(){return"showing"==this.g.mode};q.setTextVisibility=function(a){this.g.mode=a?"showing":"hidden"};
359
360
  function Ik(a){if(a.startTime>=a.endTime)return null;var b=new VTTCue(a.startTime,a.endTime,a.payload);b.lineAlign=a.lineAlign;b.positionAlign=a.positionAlign;a.size&&(b.size=a.size);try{b.align=a.textAlign}catch(c){}"center"==a.textAlign&&"center"!=b.align&&(b.align="middle");"vertical-lr"==a.writingMode?b.vertical="lr":"vertical-rl"==a.writingMode&&(b.vertical="rl");1==a.lineInterpretation&&(b.snapToLines=!1);null!=a.line&&(b.line=a.line);null!=a.position&&(b.position=a.position);return b}
360
- function Hk(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=r(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}M("shaka.text.SimpleTextDisplayer",Gk);Gk.prototype.setTextVisibility=Gk.prototype.setTextVisibility;Gk.prototype.isTextVisible=Gk.prototype.isTextVisible;Gk.prototype.destroy=Gk.prototype.destroy;Gk.prototype.append=Gk.prototype.append;Gk.prototype.remove=Gk.prototype.remove;function Jk(){}function S(a){return document.createElement(a)}function Kk(){var a=document.createElement("button");a.setAttribute("type","button");return a}function Lk(a){for(;a.firstChild;)a.removeChild(a.firstChild)}M("shaka.util.Dom",Jk);Jk.removeAllChildren=Lk;function Mk(a,b){var c=this;this.j=!1;this.i=[];this.F=a;this.m=b;this.g=S("div");this.g.classList.add("shaka-text-container");this.g.style.textAlign="center";this.g.style.display="flex";this.g.style.flexDirection="column";this.g.style.alignItems="center";this.g.style.justifyContent="flex-end";this.m.appendChild(this.g);this.C=(new P(function(){Nk(c)})).ka(.25);this.h=new Map;this.B=new yf;this.B.o(document,"fullscreenchange",function(){Nk(c,!0)});this.l=null;"ResizeObserver"in window&&(this.l=new ResizeObserver(function(){Nk(c,
361
+ function Hk(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=r(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}M("shaka.text.SimpleTextDisplayer",Gk);Gk.prototype.setTextVisibility=Gk.prototype.setTextVisibility;Gk.prototype.isTextVisible=Gk.prototype.isTextVisible;Gk.prototype.destroy=Gk.prototype.destroy;Gk.prototype.append=Gk.prototype.append;Gk.prototype.remove=Gk.prototype.remove;function Jk(){}function S(a){return document.createElement(a)}function Kk(){var a=document.createElement("button");a.setAttribute("type","button");return a}function Lk(a){for(;a.firstChild;)a.removeChild(a.firstChild)}M("shaka.util.Dom",Jk);Jk.removeAllChildren=Lk;function Mk(a,b){var c=this;this.j=!1;this.i=[];this.F=a;this.m=b;this.g=S("div");this.g.classList.add("shaka-text-container");this.g.style.textAlign="center";this.g.style.display="flex";this.g.style.flexDirection="column";this.g.style.alignItems="center";this.g.style.justifyContent="flex-end";this.m.appendChild(this.g);this.C=(new P(function(){Nk(c)})).na(.25);this.h=new Map;this.B=new yf;this.B.o(document,"fullscreenchange",function(){Nk(c,!0)});this.l=null;"ResizeObserver"in window&&(this.l=new ResizeObserver(function(){Nk(c,
361
362
  !0)}),this.l.observe(this.g));this.A=new Map}q=Mk.prototype;q.append=function(a){var b=[].concat(ja(this.i)),c={};a=r(a);for(var d=a.next();!d.done;c={bd:c.bd},d=a.next())c.bd=d.value,b.some(function(e){return function(f){return pc(f,e.bd)}}(c))||this.i.push(c.bd);Nk(this)};q.destroy=function(){this.m.removeChild(this.g);this.g=null;this.j=!1;this.i=[];this.C&&this.C.stop();this.h.clear();this.B&&(this.B.release(),this.B=null);this.l&&(this.l.disconnect(),this.l=null)};
362
363
  q.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});Nk(this,c>this.i.length);return!0};q.isTextVisible=function(){return this.j};q.setTextVisibility=function(a){this.j=a};function Ok(a,b){for(;null!=b;){if(b==a.g)return!0;b=b.parentElement}return!1}
363
- function Pk(a,b,c,d,e){var f=!1,g=[],h=[];b=r(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,p=l?l.Uf:null;l&&(g.push(l.ee),l.Vc&&g.push(l.Vc),m||(f=!0,a.h.delete(k),l=null));m&&(h.push(k),l?Ok(a,p)||(f=!0):(Qk(a,k,e),l=a.h.get(k),p=l.Uf,f=!0));0<k.nestedCues.length&&p&&Pk(a,k.nestedCues,p,d,e);e.pop()}if(f){d=r(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(n,t){return n.startTime!=
364
+ function Pk(a,b,c,d,e){var f=!1,g=[],h=[];b=r(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,p=l?l.Vf:null;l&&(g.push(l.ee),l.Vc&&g.push(l.Vc),m||(f=!0,a.h.delete(k),l=null));m&&(h.push(k),l?Ok(a,p)||(f=!0):(Qk(a,k,e),l=a.h.get(k),p=l.Vf,f=!0));0<k.nestedCues.length&&p&&Pk(a,k.nestedCues,p,d,e);e.pop()}if(f){d=r(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(n,t){return n.startTime!=
364
365
  t.startTime?n.startTime-t.startTime:n.endTime-t.endTime});h=r(h);for(k=h.next();!k.done;k=h.next())d=a.h.get(k.value),d.Vc?(c.appendChild(d.Vc),d.Vc.appendChild(d.ee)):c.appendChild(d.ee)}}function Nk(a,b){if(a.g){var c=a.F.currentTime;if(!a.j||(void 0===b?0:b)){b=r(a.A.values());for(var d=b.next();!d.done;d=b.next())Lk(d.value);Lk(a.g);a.h.clear();a.A.clear()}if(a.j){b=new Map;d=r(a.h.keys());for(var e=d.next();!e.done;e=d.next())e=e.value,b.set(e,a.h.get(e));Pk(a,a.i,a.g,c,[])}}}
365
366
  function Qk(a,b,c){var d=1<c.length,e=d?"span":"div";b.lineBreak&&(e="br");d=!d&&0<b.nestedCues.length;var f=S(e);"br"!=e&&Rk(a,f,b,c,d);c=null;if(b.region&&b.region.id)if(c=b.region,e=c.id+"_"+c.width+"x"+c.height+(c.heightUnits==xc?"%":"px")+"-"+c.viewportAnchorX+"x"+c.viewportAnchorY+(c.viewportAnchorUnits==xc?"%":"px"),a.A.has(e))c=a.A.get(e);else{var g=S("span"),h=c.heightUnits==xc?"%":"px",k=c.widthUnits==xc?"%":"px",l=c.viewportAnchorUnits==xc?"%":"px";g.id="shaka-text-region---"+e;g.classList.add("shaka-text-region");
366
367
  g.style.height=c.height+h;g.style.width=c.width+k;g.style.position="absolute";g.style.top=c.viewportAnchorY+l;g.style.left=c.viewportAnchorX+l;g.style.display="flex";g.style.flexDirection="column";g.style.alignItems="center";g.style.justifyContent="before"==b.displayAlign?"flex-start":"center"==b.displayAlign?"center":"flex-end";a.A.set(e,g);c=g}e=f;d&&(e=S("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,e.style.lineHeight="normal",f.appendChild(e));a.h.set(b,
367
- {ee:f,Uf:e,Vc:c})}
368
+ {ee:f,Vf:e,Vc:c})}
368
369
  function Rk(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=Sk(c.linePadding,c,a.m);f.paddingRight=Sk(c.linePadding,c,a.m);f.textShadow=c.textShadow;if(c.backgroundImage)f.backgroundImage="url('"+c.backgroundImage+"')",f.backgroundRepeat=
369
370
  "no-repeat",f.backgroundSize="contain",f.backgroundPosition="center",f.width="100%",f.height="100%";else{if(c.nestedCues.length)var l=b;else l=S("span"),b.appendChild(l);c.border&&(l.style.border=c.border);e||((b=Tk(d,function(m){return m.backgroundColor}))?l.style.backgroundColor=b:k&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)"));k&&(l.textContent=k)}h&&!d[d.length-1].isContainer?f.display="inline":(f.display="flex",f.flexDirection="column",f.alignItems="center",f.justifyContent="before"==c.displayAlign?
370
371
  "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=Sk(c.fontSize,c,a.m);null!=c.line&&1==c.lineInterpretation&&(f.position="absolute",c.writingMode==jc?(f.width="100%",c.lineAlign==lc?f.top=c.line+"%":"end"==c.lineAlign&&(f.bottom=100-c.line+"%")):"vertical-lr"==c.writingMode?(f.height="100%",c.lineAlign==lc?f.left=c.line+"%":"end"==c.lineAlign&&
@@ -378,7 +379,7 @@ function Zk(a){var b=a.type;if(a.init)return ml;if("video"==b)return a.codecs.in
378
379
  function el(a,b){var c=a.h.Sa();if(!c.length)return NaN;a=c[0];c=r(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 $k:return a.videoBandwidth||NaN;case al:return a.audioBandwidth||NaN;default:return a.bandwidth}}
379
380
  function jl(a){function b(p){return 100*c(p/100)}function c(p){return Math.round(p)}function d(p){return!Number.isNaN(p)&&null!=p&&""!==p&&!1!==p}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(p){return encodeURIComponent(p)},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=r(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"===
380
381
  l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function ll(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=r(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=jl(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
381
- function kl(a,b){if(!b||a.includes("offline:"))return a;a=new jb(a);a.g.set("CMCD",b);return a.toString()}var il="m",al="a",$k="v",bl="av",ml="i",nl="c",cl="tt",Yk="v",Xk="l";M("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",Ji:"s",ri:"o"});function ol(){}
382
+ function kl(a,b){if(!b||a.includes("offline:"))return a;a=new jb(a);a.g.set("CMCD",b);return a.toString()}var il="m",al="a",$k="v",bl="av",ml="i",nl="c",cl="tt",Yk="v",Xk="l";M("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",Li:"s",ti:"o"});function ol(){}
382
383
  function pl(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]=gf(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=gf(l)),k=pl(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 "+
383
384
  k),g=!1)}return g}function ql(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 rl(a,b){return a&&b}M("shaka.util.ConfigUtils",ol);ol.convertToConfigObject=ql;ol.mergeConfigObjects=pl;function sl(){}function tl(a){a=ed(a);return(new jb(a)).bb}function ul(a,b,c){function d(h){Fc(f).setUint32(g,h.byteLength,!0);g+=4;f.set(Cc(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new O(2,6,6015);var e;"string"==typeof b?e=gd(b,!0):e=b;a=ed(a);a=gd(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}M("shaka.util.FairPlayUtils",sl);
384
385
  sl.commonFairPlayResponse=function(a,b){if(2===a){try{var c=bd(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=Dc(kd(c)))}};sl.conaxFairPlayRequest=function(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")};sl.ezdrmFairPlayRequest=function(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")};
@@ -395,38 +396,38 @@ preferredAudioLanguage:"",preferredTextLanguage:"",preferredVariantRole:"",prefe
395
396
  sessionId:"",contentId:"",useHeaders:!1}};e.trackSelectionCallback=function(g){return K(function(h){return h.return(xl(g,f.preferredAudioLanguage))})};return f}function yl(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 pl(a,b,c||wl(),d,"")}
396
397
  function xl(a,b){var c=a.filter(function(g){return"variant"==g.type}),d=[],e=Sb(b,c.map(function(g){return g.language}));e&&(d=c.filter(function(g){return Kb(g.language)==e}));0==d.length&&(d=c.filter(function(g){return g.primary}));0==d.length&&(c.map(function(g){return g.language}),d=c);var f=d.filter(function(g){return g.height&&480>=g.height});f.length&&(f.sort(function(g,h){return h.height-g.height}),d=f.filter(function(g){return g.height==f[0].height}));b=[];d.length&&(c=Math.floor(d.length/
397
398
  2),d.sort(function(g,h){return g.bandwidth-h.bandwidth}),b.push(d[c]));a=r(a);for(d=a.next();!d.done;d=a.next())d=d.value,d.type!=Gb&&"image"!=d.type||b.push(d);return b}M("shaka.util.PlayerConfiguration",vl);vl.mergeConfigObjects=yl;vl.createDefault=wl;function zl(){this.g=null;this.h=[]}function Al(a,b){if(null==a.g)a.g={timestamp:Date.now()/1E3,state:b,duration:0};else{var c=Date.now()/1E3;a.g.duration=c-a.g.timestamp;a.g.state!=b&&(a.h.push(a.g),a.g={timestamp:c,state:b,duration:0})}}function Bl(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=r(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}
398
- function Cl(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=r(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function Dl(){this.i=this.h=null;this.g=[]}function El(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 Fl(){this.C=this.F=this.I=this.G=this.B=this.j=this.H=this.m=this.i=this.P=this.T=this.J=this.K=this.N=this.l=this.A=NaN;this.g=new zl;this.h=new Dl};function T(a,b){db.call(this);var c=this;this.l=Gl;this.td=this.g=null;this.aa=!1;this.yd=new yf;this.gb=new yf;this.C=new yf;this.we=this.B=this.hb=this.i=this.Fd=this.J=this.j=this.ea=this.T=this.ma=this.N=this.vd=this.I=this.$a=this.F=this.K=this.m=this.H=null;this.Wf=1E9;this.h=Hl(this);this.Lc={width:Infinity,height:Infinity};this.A=null;this.Ba=new Pe(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount);this.Oa=this.h.preferredTextLanguage;this.Fc=this.h.preferredTextRole;
399
+ function Cl(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=r(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function Dl(){this.i=this.h=null;this.g=[]}function El(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 Fl(){this.C=this.F=this.I=this.G=this.B=this.j=this.H=this.m=this.i=this.P=this.T=this.J=this.K=this.N=this.l=this.A=NaN;this.g=new zl;this.h=new Dl};function T(a,b){db.call(this);var c=this;this.l=Gl;this.td=this.g=null;this.aa=!1;this.yd=new yf;this.gb=new yf;this.C=new yf;this.we=this.B=this.hb=this.i=this.Fd=this.J=this.j=this.ea=this.T=this.ha=this.N=this.vd=this.I=this.$a=this.F=this.K=this.m=this.H=null;this.Xf=1E9;this.h=Hl(this);this.Lc={width:Infinity,height:Infinity};this.A=null;this.Ba=new Pe(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount);this.Oa=this.h.preferredTextLanguage;this.Fc=this.h.preferredTextRole;
399
400
  this.wb=this.h.preferForcedSubs;this.ib=[];this.Nc=null;b&&b(this);this.H=Il(this);this.H.Ie(this.h.streaming.forceHTTPS);this.G=null;Jl&&(this.G=Jl());this.yd.o(window,"online",function(){c.ze()});this.P={name:"detach"};this.Z={name:"attach"};this.ba={name:"unload"};this.Ze={name:"manifest-parser"};this.Ye={name:"manifest"};this.Za={name:"media-source"};this.Ae={name:"drm-engine"};this.$={name:"load"};this.$e={name:"src-equals-drm-engine"};this.ab={name:"src-equals"};var d=new Map;d.set(this.Z,function(e,
400
401
  f){return df(Kl(c,e,f))});d.set(this.P,function(e){e.O&&(c.gb.Sb(),e.O=null);c.G&&c.G.release();c.g=null;e=Promise.resolve();return df(e)});d.set(this.ba,function(e){return df(Ll(c,e))});d.set(this.Za,function(e){e=Ml(c,e);return df(e)});d.set(this.Ze,function(e,f){e=Nl(c,e,f);return df(e)});d.set(this.Ye,function(e){return Ol(c,e)});d.set(this.Ae,function(e){e=Pl(c,e);return df(e)});d.set(this.$,function(e,f){return df(Ql(c,e,f))});d.set(this.$e,function(e,f){e=Rl(c,e,f);return df(e)});d.set(this.ab,
401
- function(e,f){return Sl(c,e,f)});this.ua=new xk(this.P,{Gg:function(e,f,g,h){var k=null;e==c.P&&(k=g==c.P?c.P:c.Z);e==c.Z&&(k=g==c.P||f.O!=h.O?c.P:g==c.Z?c.Z:g==c.Za||g==c.$?c.Za:g==c.ab?c.$e:null);e==c.Za&&(k=g==c.$&&f.O==h.O?c.Ze:c.ba);e==c.Ze&&(k=Tl(c.$,c.Ye,c.ba,g,f,h));e==c.Ye&&(k=Tl(c.$,c.Ae,c.ba,g,f,h));e==c.Ae&&(k=Tl(c.$,c.$,c.ba,g,f,h));e==c.$e&&(k=g==c.ab&&f.O==h.O?c.ab:c.ba);if(e==c.$||e==c.ab)k=c.ba;e==c.ba&&(k=h.O&&f.O==h.O?c.Z:c.P);return k},kg:function(e,f,g){c.dispatchEvent(Ul("onstatechange",
402
- (new Map).set("state",e.name)));return d.get(e)(f,g)},handleError:function(e){return K(function(f){return 1==f.g?A(f,Ll(c,e),2):f.return(e.O?c.Z:c.P)})},$g:function(e){c.dispatchEvent(Ul("onstateidle",(new Map).set("state",e.name)))}});this.Vf=new P(function(){Zd(c.i.variants,c.h.restrictions,c.Lc)&&Vl(c)});a&&this.Cc(a,!0)}u(T,db);function Ul(a,b){return new N(a,b)}q=T.prototype;
402
+ function(e,f){return Sl(c,e,f)});this.ua=new xk(this.P,{Hg:function(e,f,g,h){var k=null;e==c.P&&(k=g==c.P?c.P:c.Z);e==c.Z&&(k=g==c.P||f.O!=h.O?c.P:g==c.Z?c.Z:g==c.Za||g==c.$?c.Za:g==c.ab?c.$e:null);e==c.Za&&(k=g==c.$&&f.O==h.O?c.Ze:c.ba);e==c.Ze&&(k=Tl(c.$,c.Ye,c.ba,g,f,h));e==c.Ye&&(k=Tl(c.$,c.Ae,c.ba,g,f,h));e==c.Ae&&(k=Tl(c.$,c.$,c.ba,g,f,h));e==c.$e&&(k=g==c.ab&&f.O==h.O?c.ab:c.ba);if(e==c.$||e==c.ab)k=c.ba;e==c.ba&&(k=h.O&&f.O==h.O?c.Z:c.P);return k},lg:function(e,f,g){c.dispatchEvent(Ul("onstatechange",
403
+ (new Map).set("state",e.name)));return d.get(e)(f,g)},handleError:function(e){return K(function(f){return 1==f.g?A(f,Ll(c,e),2):f.return(e.O?c.Z:c.P)})},bh:function(e){c.dispatchEvent(Ul("onstateidle",(new Map).set("state",e.name)))}});this.Wf=new P(function(){Zd(c.i.variants,c.h.restrictions,c.Lc)&&Vl(c)});a&&this.Cc(a,!0)}u(T,db);function Ul(a,b){return new N(a,b)}q=T.prototype;
403
404
  q.destroy=function(){var a=this,b;return K(function(c){switch(c.g){case 1:if(a.l==Wl)return c.return();a.l=Wl;b=Ck(a.ua,function(){return{node:a.P,payload:yk(),Kb:!1}});return A(c,new Promise(function(d){b.nc=function(){};b.zd=function(){d()};b.Rb=function(){d()};b.onError=function(){d()};b.Cd=function(){d()}}),2);case 2:return A(c,a.ua.destroy(),3);case 3:a.yd&&(a.yd.release(),a.yd=null);a.gb&&(a.gb.release(),a.gb=null);a.C&&(a.C.release(),a.C=null);a.we=null;a.h=null;a.A=null;a.td=null;a.T=null;
404
405
  if(!a.H){c.D(4);break}return A(c,a.H.destroy(),5);case 5:a.H=null;case 4:a.B&&(a.B.release(),a.B=null),db.prototype.release.call(a),C(c)}})};
405
406
  function Xl(){window.Promise||Ua("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||Qc("Trident/"))return!1;var a=Yc();return a&&13>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:Mc()?!0:Nc("application/x-mpegurl")}
406
407
  q.Cc=function(a,b){b=void 0===b?!0:b;if(this.l==Wl)return Promise.reject(Yl());var c=yk();c.O=a;Mc()||(b=!1);var d=b?this.Za:this.Z;a=Ck(this.ua,function(){return{node:d,payload:c,Kb:!1}});a.nc=function(){};return Zl(a)};q.detach=function(){var a=this;if(this.l==Wl)return Promise.reject(Yl());var b=Ck(this.ua,function(){return{node:a.P,payload:yk(),Kb:!1}});b.nc=function(){};return Zl(b)};
407
- q.We=function(a){var b=this;a=void 0===a?!0:a;if(this.l==Wl)return Promise.reject(Yl());Mc()||(a=!1);var c=yk(),d=Ck(this.ua,function(e){var f=e.O&&a?b.Za:e.O?b.Z:b.P;c.O=e.O;return{node:f,payload:c,Kb:!1}});d.nc=function(){};return Zl(d)};q.Ch=function(a){this.Nc=a};
408
+ q.We=function(a){var b=this;a=void 0===a?!0:a;if(this.l==Wl)return Promise.reject(Yl());Mc()||(a=!1);var c=yk(),d=Ck(this.ua,function(e){var f=e.O&&a?b.Za:e.O?b.Z:b.P;c.O=e.O;return{node:f,payload:c,Kb:!1}});d.nc=function(){};return Zl(d)};q.Eh=function(a){this.Nc=a};
408
409
  q.load=function(a,b,c){var d=this;this.Nc=null;if(this.l==Wl)return Promise.reject(Yl());this.dispatchEvent(Ul("loading"));var e=yk();e.uri=a;e.Pe=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=$l(this,e)?this.ab:this.$,g=Ck(this.ua,function(h){if(null==h.O)return null;e.O=h.O;return{node:f,payload:e,Kb:!0}});this.A=new Fl;this.T=am(this);g.nc=function(){};return new Promise(function(h,k){g.Cd=function(){return k(new O(2,7,7002))};g.zd=function(){h();d.dispatchEvent(Ul("loaded"))};
409
410
  g.Rb=function(){return k(Yl())};g.onError=function(l){return k(l)}})};function $l(a,b){if(!Mc())return!0;var c=b.mimeType,d=b.uri||"";c||(c=eh(d),c=bm[c]);if(c){if(""==(b.O||Oc()).canPlayType(c))return!1;if(!Mc()||!(c in dh||eh(d)in fh)||("application/x-mpegurl"===c||"application/vnd.apple.mpegurl"===c)&&a.h.streaming.preferNativeHls)return!0;if(Wc())return a.h.streaming.useNativeHlsOnSafari}return!1}
410
411
  function Kl(a,b,c){null==b.O&&(b.O=c.O,a.gb.o(b.O,"error",function(){var d=cm(a);d&&dm(a,d)}));a.g=b.O;return Promise.resolve()}
411
- function Ll(a,b){var c,d,e,f,g,h,k,l,m;return K(function(p){switch(p.g){case 1:return a.l!=Wl&&(a.l=Gl),c=a.ib.map(function(n){return n()}),a.ib=[],A(p,Promise.all(c),2);case 2:a.dispatchEvent(Ul("unloading"));b.mimeType=null;b.startTime=null;b.uri=null;a.ma&&(a.ma.release(),a.ma=null);b.O&&a.C.Sb();a.Vf.stop();a.$a&&(a.$a.release(),a.$a=null);a.vd&&(a.vd.stop(),a.vd=null);if(!a.J){p.D(3);break}return A(p,a.J.stop(),4);case 4:a.J=null,a.Fd=null;case 3:if(!a.B){p.D(5);break}return A(p,a.B.stop(),5);
412
+ function Ll(a,b){var c,d,e,f,g,h,k,l,m;return K(function(p){switch(p.g){case 1:return a.l!=Wl&&(a.l=Gl),c=a.ib.map(function(n){return n()}),a.ib=[],A(p,Promise.all(c),2);case 2:a.dispatchEvent(Ul("unloading"));b.mimeType=null;b.startTime=null;b.uri=null;a.ha&&(a.ha.release(),a.ha=null);b.O&&a.C.Sb();a.Wf.stop();a.$a&&(a.$a.release(),a.$a=null);a.vd&&(a.vd.stop(),a.vd=null);if(!a.J){p.D(3);break}return A(p,a.J.stop(),4);case 4:a.J=null,a.Fd=null;case 3:if(!a.B){p.D(5);break}return A(p,a.B.stop(),5);
412
413
  case 5:if(!a.j){p.D(7);break}return A(p,a.j.destroy(),8);case 8:a.j=null;case 7:a.I&&(a.I.release(),a.I=null);a.F&&(a.F.release(),a.F=null);if(!a.K){p.D(9);break}return A(p,a.K.destroy(),10);case 10:a.K=null;case 9:if(a.G)a.G.onAssetUnload();if(!b.O||!b.O.src){p.D(11);break}return A(p,new Promise(function(n){return(new P(n)).S(.1)}),12);case 12:for(b.O.removeAttribute("src"),b.O.load();b.O.lastChild;)b.O.removeChild(b.O.firstChild);case 11:if(!a.m){p.D(13);break}return A(p,a.m.destroy(),14);case 14:a.m=
413
414
  null;case 13:a.hb=null;a.N=null;if(a.i){d=r(a.i.variants);for(e=d.next();!e.done;e=d.next())for(f=e.value,g=r([f.audio,f.video]),h=g.next();!h.done;h=g.next())(k=h.value)&&k.segmentIndex&&k.segmentIndex.release();l=r(a.i.textStreams);for(h=l.next();!h.done;h=l.next())m=h.value,m.segmentIndex&&m.segmentIndex.release()}a.i=null;a.A=new Fl;a.Ve=null;em(a);C(p)}})}
414
415
  function Ml(a,b){var c,d,e,f,g,h;return K(function(k){if(1==k.g)return c=new si,d=a.h.textDisplayFactory,e=d(),a.Ve=d,f=fm(b.O,c,e,function(l,m,p){l=r(l);for(var n=l.next();!n.done;n=l.next())if(n=n.value,n.data&&n.cueTime&&n.frames){for(var t=n.cueTime+m,y=p,x=r(n.frames),v=x.next();!v.done;v=x.next())gm(a,t,y,"ID3",v.value);if(a.G)a.G.onHlsTimedMetadata(n,t)}}),g=a.h.manifest,h=g.segmentRelativeVttTiming,f.H=h,A(k,f.I,2);a.K=f;C(k)})}
415
416
  function Nl(a,b,c){var d,e,f,g;return K(function(h){if(1==h.g)return b.mimeType=c.mimeType,b.uri=c.uri,d=b.uri,e=a.H,a.hb=d,f=a,A(h,ch(d,e,a.h.manifest.retryParameters,b.mimeType),2);f.Fd=h.h;a.J=a.Fd();g=gf(a.h.manifest);c.O&&"AUDIO"===c.O.nodeName&&(g.disableVideo=!0);a.J.configure(g);C(h)})}
416
- function Ol(a,b){var c=b.uri;b=a.H;a.ma=new Nj(function(){return a.Ka()});a.ma.addEventListener("regionadd",function(f){f=f.region;hm(a,"timelineregionadded",f);if(a.G)a.G.onDashTimedMetadata(f)});a.ea=null;a.h.streaming.observeQualityChanges&&(a.ea=new Jj(function(){return a.kb()}),a.ea.addEventListener("qualitychange",function(f){var g=f.quality;f=f.position;g=(new Map).set("mediaQuality",{bandwidth:g.bandwidth,audioSamplingRate:g.audioSamplingRate,codecs:g.codecs,contentType:g.contentType,frameRate:g.frameRate,
417
+ function Ol(a,b){var c=b.uri;b=a.H;a.ha=new Nj(function(){return a.Ka()});a.ha.addEventListener("regionadd",function(f){f=f.region;hm(a,"timelineregionadded",f);if(a.G)a.G.onDashTimedMetadata(f)});a.ea=null;a.h.streaming.observeQualityChanges&&(a.ea=new Jj(function(){return a.kb()}),a.ea.addEventListener("qualitychange",function(f){var g=f.quality;f=f.position;g=(new Map).set("mediaQuality",{bandwidth:g.bandwidth,audioSamplingRate:g.audioSamplingRate,codecs:g.codecs,contentType:g.contentType,frameRate:g.frameRate,
417
418
  height:g.height,mimeType:g.mimeType,channelsCount:g.channelsCount,pixelAspectRatio:g.pixelAspectRatio,width:g.width}).set("position",f);a.dispatchEvent(Ul("mediaqualitychanged",g))}));var d={networkingEngine:b,modifyManifestRequest:function(f,g){var h=a.T;try{h.g.enabled&&(h.A=g.format,fl(h,f,{ot:il,su:!h.i}))}catch(k){Wa("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",k)}},modifySegmentRequest:function(f,g){Wk(a.T,f,g)},filter:function(f){return im(a,f)},makeTextStreamsForClosedCaptions:function(f){return jm(a,
418
- f)},onTimelineRegionAdded:function(f){var g=a.ma;a:{var h=r(g.g);for(var k=h.next();!k.done;k=h.next())if(k=k.value,k.schemeIdUri==f.schemeIdUri&&k.id==f.id&&k.startTime==f.startTime&&k.endTime==f.endTime){h=k;break a}h=null}null==h&&(g.g.add(f),f=new N("regionadd",new Map([["region",f]])),g.dispatchEvent(f))},onEvent:function(f){return a.dispatchEvent(f)},onError:function(f){return dm(a,f)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},
419
+ f)},onTimelineRegionAdded:function(f){var g=a.ha;a:{var h=r(g.g);for(var k=h.next();!k.done;k=h.next())if(k=k.value,k.schemeIdUri==f.schemeIdUri&&k.id==f.id&&k.startTime==f.startTime&&k.endTime==f.endTime){h=k;break a}h=null}null==h&&(g.g.add(f),f=new N("regionadd",new Map([["region",f]])),g.dispatchEvent(f))},onEvent:function(f){return a.dispatchEvent(f)},onError:function(f){return dm(a,f)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},
419
420
  enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",!0)},updateDuration:function(){a.j&&a.j.updateDuration()}},e=Date.now()/1E3;return new $e(function(){var f,g,h,k;return K(function(l){if(1==l.g)return f=a,A(l,a.J.start(c,d),2);f.i=l.h;g=Ul("manifestparsed");a.dispatchEvent(g);if(0==a.i.variants.length)throw new O(2,4,4036);km(a.i);h=Date.now()/1E3;k=h-e;a.A.H=k;C(l)})}(),function(){return a.J.stop()})}
420
421
  function Pl(a,b){var c,d;return K(function(e){return 1==e.g?(c=Date.now()/1E3,d=!0,a.m=lm(a,{Pb:a.H,onError:function(f){dm(a,f)},Bd:function(f){mm(a,f)},onExpirationUpdated:function(f,g){nm(a,f,g)},onEvent:function(f){a.dispatchEvent(f);"drmsessionupdate"==f.type&&d&&(d=!1,a.A.j=Date.now()/1E3-c)}}),a.m.configure(a.h.drm),A(e,xg(a.m,a.i.variants,a.i.offlineSessionIds),2)):3!=e.g?A(e,a.m.Cc(b.O),3):A(e,im(a,a.i),0)})}
421
- function Ql(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,y;return K(function(x){switch(x.g){case 1:b.startTime=c.startTime;null!=a.Nc&&(b.startTime=a.Nc,a.Nc=null);d=b.O;e=b.uri;a.hb=e;a.I=new Fj({rd:function(){return d.playbackRate},od:function(){return d.defaultPlaybackRate},Ke:function(v){d.playbackRate=v},Gf:function(v){d.currentTime+=v}});f=function(){return om(a)};g=function(){return pm(a)};a.C.o(d,"playing",f);a.C.o(d,"pause",f);a.C.o(d,"ended",f);a.C.o(d,"ratechange",g);h=a.h.abrFactory;a.B&&a.we==h||
422
+ function Ql(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,y;return K(function(x){switch(x.g){case 1:b.startTime=c.startTime;null!=a.Nc&&(b.startTime=a.Nc,a.Nc=null);d=b.O;e=b.uri;a.hb=e;a.I=new Fj({rd:function(){return d.playbackRate},od:function(){return d.defaultPlaybackRate},Ke:function(v){d.playbackRate=v},Hf:function(v){d.currentTime+=v}});f=function(){return om(a)};g=function(){return pm(a)};a.C.o(d,"playing",f);a.C.o(d,"pause",f);a.C.o(d,"ended",f);a.C.o(d,"ratechange",g);h=a.h.abrFactory;a.B&&a.we==h||
422
423
  (a.we=h,a.B=h(),"function"!=typeof a.B.setMediaElement&&(Fe(),a.B.setMediaElement=function(){}),a.B.configure(a.h.abr));a.Ba=new Pe(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount);a.Oa=a.h.preferredTextLanguage;a.Fc=a.h.preferredTextRole;a.wb=a.h.preferForcedSubs;qm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.B.init(function(v,w,D){a.j&&v!=a.j.l&&rm(a,v,!0,void 0===w?!1:w,void 0===D?0:D)});a.B.setMediaElement(d);a.F=sm(a,b.startTime);a.$a=tm(a);
423
424
  k=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);um(a,k);Kd(a.i,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredAudioChannelCount,a.h.preferredDecodingAttributes);a.j=vm(a);a.j.configure(a.h.streaming);a.l=wm;d.textTracks&&a.C.o(d.textTracks,"addtrack",function(v){if(v.track)switch(v=v.track,v.kind){case "chapters":xm(a,v)}});a.dispatchEvent(Ul("streaming"));l=null;if(m=a.Sa().find(function(v){return v.active})){x.D(2);break}l=Vl(a);rm(a,l,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){x.D(3);
424
425
  break}p=a.F.gd();return A(x,ym(l,p),4);case 4:n=x.h,a.F.ce(n);case 3:zm(a,null,ne(l));case 2:return a.F.be(),t=a.Ab().find(function(v){return v.active}),t||((y=xe(a.i.textStreams,a.Oa,a.Fc,a.wb)[0]||null)&&El(a.A.h,y,!0),l&&(y?(l.audio&&Am(a,l.audio,y)&&(a.aa=!0),a.aa&&a.K.m.setTextVisibility(!0),Bm(a)):a.aa=!1),y&&(a.h.streaming.alwaysStreamText||a.Ob())&&gk(a.j,y)),A(x,a.j.start(),5);case 5:a.h.abr.enabled&&(a.B.enable(),Cm(a)),be(a.j?a.j.l:null,a.i),Dm(a.i),Em(a),Fm(a),a.i.variants.some(function(v){return v.primary}),
425
426
  a.C.ya(d,"loadedmetadata",function(){a.A.m=Date.now()/1E3-c.Pe}),C(x)}})}
426
427
  function Rl(a,b,c){var d,e,f,g,h,k,l;return K(function(m){return 1==m.g?(d=Hb,e=Date.now()/1E3,f=!0,a.m=lm(a,{Pb:a.H,onError:function(p){dm(a,p)},Bd:function(p){mm(a,p)},onExpirationUpdated:function(p,n){nm(a,p,n)},onEvent:function(p){a.dispatchEvent(p);"drmsessionupdate"==p.type&&f&&(f=!1,a.A.j=Date.now()/1E3-e)}}),a.m.configure(a.h.drm),g=c.uri||"",h=eh(g),k=bm[h],"application/x-mpegurl"==k&&Wc()&&(k="application/vnd.apple.mpegurl"),k||(k="video/mp4"),l={id:0,language:"und",disabledUntilTime:0,
427
428
  primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:c.mimeType?c.mimeType.split(";")[0]:k,codecs:c.mimeType?yd(c.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.La,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},
428
- a.m.Z=!0,A(m,xg(a.m,[l],[]),2)):A(m,a.m.Cc(b.O),0)})}
429
- function Sl(a,b,c){function d(){return om(a)}b.uri=c.uri;b.startTime=c.startTime;a.hb=b.uri;var e=b.O;a.F=new uj(e);var f=!1;a.ib.push(function(){f=!0});null!=b.startTime&&a.F.ce(b.startTime);a.I=new Fj({rd:function(){return e.playbackRate},od:function(){return e.defaultPlaybackRate},Ke:function(k){e.playbackRate=k},Gf:function(k){e.currentTime+=k}});um(a,a.h.streaming.rebufferingGoal);a.C.o(e,"playing",d);a.C.o(e,"pause",d);a.C.o(e,"ended",d);a.C.o(e,"ratechange",function(){return pm(a)});"none"!=
429
+ a.m.$=!0,A(m,xg(a.m,[l],[]),2)):A(m,a.m.Cc(b.O),0)})}
430
+ function Sl(a,b,c){function d(){return om(a)}b.uri=c.uri;b.startTime=c.startTime;a.hb=b.uri;var e=b.O;a.F=new uj(e);var f=!1;a.ib.push(function(){f=!0});null!=b.startTime&&a.F.ce(b.startTime);a.I=new Fj({rd:function(){return e.playbackRate},od:function(){return e.defaultPlaybackRate},Ke:function(k){e.playbackRate=k},Hf:function(k){e.currentTime+=k}});um(a,a.h.streaming.rebufferingGoal);a.C.o(e,"playing",d);a.C.o(e,"pause",d);a.C.o(e,"ended",d);a.C.o(e,"ratechange",function(){return pm(a)});"none"!=
430
431
  e.preload&&a.C.ya(e,"loadedmetadata",function(){a.A.m=Date.now()/1E3-c.Pe});e.audioTracks&&(a.C.o(e.audioTracks,"addtrack",function(){return Em(a)}),a.C.o(e.audioTracks,"removetrack",function(){return Em(a)}),a.C.o(e.audioTracks,"change",function(){return Em(a)}));e.textTracks&&(a.C.o(e.textTracks,"addtrack",function(k){if(k.track)switch(k=k.track,k.kind){case "metadata":Gm(a,k);break;case "chapters":xm(a,k);break;default:Em(a)}}),a.C.o(e.textTracks,"removetrack",function(){return Em(a)}),a.C.o(e.textTracks,
431
432
  "change",function(){return Em(a)}));var g=eh(b.uri);e.src=gl(a.T,b.uri,bm[g]);(Rc()||Qc("Web0S"))&&e.load();a.l=Hm;a.dispatchEvent(Ul("streaming"));var h=new Jc;lj(e,HTMLMediaElement.HAVE_METADATA,a.C,function(){a.F.be();h.resolve()});lj(e,HTMLMediaElement.HAVE_CURRENT_DATA,a.C,function(){var k;return K(function(l){if(1==l.g)return Im(a),k=Jm(a),k.find(function(m){return"disabled"!=m.mode})?(0<k.length&&(a.aa=!0),l.D(2)):A(l,new Promise(function(m){a.C.ya(e.textTracks,"change",m);(new P(m)).S(1)}),
432
433
  2);if(f)return l.return();Km(a);C(l)})});e.error?h.reject(cm(a)):"none"==e.preload&&(Ua('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),h.resolve());a.C.ya(e,"error",function(){h.reject(cm(a))});return new $e(h,function(){h.reject(new O(2,7,7001));return Promise.resolve()})}
@@ -435,50 +436,50 @@ function Gm(a,b){if("metadata"==b.kind){b.mode="hidden";a.C.o(b,"cuechange",func
435
436
  function gm(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(Ul("metadata",b))}function xm(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new P(function(){b.mode="hidden"})).Aa().S(.5);a.ib.push(function(){c.stop()})}}function km(a){function b(c){return c.video&&c.audio||c.video&&c.video.codecs.includes(",")}a.variants.some(b)&&(a.variants=a.variants.filter(b))}function lm(a,b){return new og(b,a.h.drm.updateExpirationTime)}
436
437
  function Il(a){return new lf(function(b,c){a.B&&a.B.segmentDownloaded(b,c)},function(b,c,d){b=(new Map).set("headers",b).set("request",c).set("requestType",d);a.dispatchEvent(Ul("downloadheadersreceived",b))},function(b,c,d,e){b=(new Map).set("request",b).set("error",c).set("httpResponseCode",d).set("aborted",e);a.dispatchEvent(Ul("downloadfailed",b))})}
437
438
  function sm(a,b){return new vj(a.g,a.i,a.h.streaming,b,function(){a.$a&&Ij(a.$a,!0);a.j&&a.j.Wc();a.N&&Mm(a)},function(c){return a.dispatchEvent(c)})}
438
- function tm(a){var b=new Oj(a.ma);b.addEventListener("enter",function(d){hm(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){hm(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(hm(a,"timelineregionenter",e),hm(a,"timelineregionexit",e))});var c=new Hj(a.g);c.g.add(b);a.ea&&c.g.add(a.ea);return c}function um(a,b){a.N=new Te;a.N.g=Ve;We(a.N,b,Math.min(.5,b/2));em(a);a.vd=(new P(function(){Mm(a)})).ka(.25)}
439
+ function tm(a){var b=new Oj(a.ha);b.addEventListener("enter",function(d){hm(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){hm(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(hm(a,"timelineregionenter",e),hm(a,"timelineregionexit",e))});var c=new Hj(a.g);c.g.add(b);a.ea&&c.g.add(a.ea);return c}function um(a,b){a.N=new Te;a.N.g=Ve;We(a.N,b,Math.min(.5,b/2));em(a);a.vd=(new P(function(){Mm(a)})).na(.25)}
439
440
  function Mm(a){switch(a.l){case Hm:if(a.g.ended)var b=!0;else{var c=Ai(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case wm:a:if(a.g.ended||Li(a.K))b=!0;else{if(a.i.presentationTimeline.U()){c=a.i.presentationTimeline.Jb();var d=Ai(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Ci(a.g.buffered,a.g.currentTime);c=a.N;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?Ue:Ve;c.g=d;b!=d&&em(a)}function fm(a,b,c,d){return new Fi(a,b,c,d)}
440
441
  function am(a){return new Vk({getBandwidthEstimate:function(){return a.B?a.B.getBandwidthEstimate():NaN},kb:function(){return a.kb()},getCurrentTime:function(){return a.g?a.g.currentTime:0},Sa:function(){return a.Sa()},zb:function(){return a.zb()},U:function(){return a.U()}},a.h.cmcd)}
441
- function vm(a){return new Uj(a.i,{qd:function(){return a.F.gd()},getBandwidthEstimate:function(){return a.B.getBandwidthEstimate()},modifySegmentRequest:function(b,c){Wk(a.T,b,c)},V:a.K,Pb:a.H,onError:function(b){return dm(a,b)},onEvent:function(b){return a.dispatchEvent(b)},bh:function(){a.J&&a.J.update&&a.J.update()},ve:function(){a.F&&a.F.Hf();Mm(a)},ah:function(b,c){(c=c.oe)&&a.ea&&Lj(a.ea,c,b)},hf:function(b,c){var d=a.m;if(d.h.parseInbandPsshEnabled&&["audio","video"].includes(b)){c=new Sf(Cc(c));
442
+ function vm(a){return new Uj(a.i,{qd:function(){return a.F.gd()},getBandwidthEstimate:function(){return a.B.getBandwidthEstimate()},modifySegmentRequest:function(b,c){Wk(a.T,b,c)},V:a.K,Pb:a.H,onError:function(b){return dm(a,b)},onEvent:function(b){return a.dispatchEvent(b)},eh:function(){a.J&&a.J.update&&a.J.update()},ve:function(){a.F&&a.F.If();Mm(a)},dh:function(b,c){(c=c.oe)&&a.ea&&Lj(a.ea,c,b)},hf:function(b,c){var d=a.m;if(d.h.parseInbandPsshEnabled&&!d.K&&["audio","video"].includes(b)){c=new Sf(Cc(c));
442
443
  var e=0,f=r(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=r(c.data);for(b=c.next();!b.done;b=c.next())b=b.value,e.set(b,f),f+=b.length;Gg(d,"cenc",e);d=d.A}}else d=Promise.resolve();return d}})}
443
444
  q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=ql(a,b));a.streaming&&a.streaming.lowLatencyMode&&(void 0==a.streaming.inaccurateManifestTolerance&&(a.streaming.inaccurateManifestTolerance=0),void 0==a.streaming.rebufferingGoal&&(a.streaming.rebufferingGoal=.01));var c=yl(this.h,a,Hl(this));Nm(this);return c};
444
445
  function Nm(a){if(a.J){var b=gf(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.J.configure(b)}a.m&&a.m.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{Om(a,a.i)}catch(f){dm(a,f)}a.B&&Fm(a);b=a.j.l;!b||b.allowedByApplication&&b.allowedByKeySystem||Pm(a)}a.H&&a.H.Ie(a.h.streaming.forceHTTPS);if(a.K&&(a.K.H=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.Ve!=b)){var c=b(),d=a.K,e=d.m;d.m=c;e&&(c.setTextVisibility(e.isTextVisible()),e.destroy());d.g&&(d.g.j=
445
446
  c);a.Ve=b;a.j&&(b=a.j,(c=b.i.get(Gb))&&ek(b,c.stream,!0,0,!0))}a.B&&(a.B.configure(a.h.abr),a.h.abr.enabled?a.B.enable():a.B.disable(),Cm(a));a.N&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),We(a.N,b,Math.min(.5,b/2)));a.i&&qm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd)}q.getConfiguration=function(){var a=Hl(this);yl(a,this.h,Hl(this));return a};
446
- q.ng=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.Ka().end);if(a>=b)return 1;if(!(a<=this.g.currentTime)&&a<b)return(a-this.g.currentTime)/(b-this.g.currentTime)}return 0};q.mh=function(){for(var a in this.h)delete this.h[a];yl(this.h,Hl(this),Hl(this));Nm(this)};q.zf=function(){return this.l};q.Fg=function(){return this.g};q.Ic=function(){return this.H};q.fe=function(){return this.hb};
447
+ q.og=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.Ka().end);if(a>=b)return 1;if(!(a<=this.g.currentTime)&&a<b)return(a-this.g.currentTime)/(b-this.g.currentTime)}return 0};q.oh=function(){for(var a in this.h)delete this.h[a];yl(this.h,Hl(this),Hl(this));Nm(this)};q.zf=function(){return this.l};q.Gg=function(){return this.g};q.Ic=function(){return this.H};q.fe=function(){return this.hb};
447
448
  q.nd=function(){return this.G?this.G:null};q.U=function(){return this.i?this.i.presentationTimeline.U():this.g&&this.g.src?Infinity==this.g.duration:!1};q.Mb=function(){return this.i?this.i.presentationTimeline.Mb():!1};q.ic=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};
448
- q.Ka=function(){if(this.i){var a=this.i.presentationTimeline;return{start:a.ec(),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}};q.Qg=function(){this.U()&&(this.g.currentTime=this.Ka().end)};q.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};q.drmInfo=function(){return this.m?this.m.g:null};q.Hc=function(){return this.m?this.m.Hc():Infinity};q.pd=function(){return this.m?this.m.pd():{}};
449
+ q.Ka=function(){if(this.i){var a=this.i.presentationTimeline;return{start:a.ec(),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}};q.Rg=function(){this.U()&&(this.g.currentTime=this.Ka().end)};q.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};q.drmInfo=function(){return this.m?this.m.g:null};q.Hc=function(){return this.m?this.m.Hc():Infinity};q.pd=function(){return this.m?this.m.pd():{}};
449
450
  q.Pc=function(){return this.N?this.N.g==Ve:!1};q.zb=function(){return this.g?this.I?this.I.i:1:0};q.Ue=function(a){0==a?Ua("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.I.set(a),this.l==wm&&(this.B.playbackRateChanged(a),dk(this.j,1<Math.abs(a))))};q.kf=function(){var a=this.I.od();this.l==Hm&&this.I.set(a);this.l==wm&&(this.I.set(a),this.B.playbackRateChanged(a),dk(this.j,!1))};
450
451
  q.Sa=function(){if(this.i){for(var a=this.j?this.j.l:null,b=[],c=0,d=r(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,ve(e)){var f=ne(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 ue(g)}):[]};
451
- q.Ab=function(){if(this.i){for(var a=this.j?this.j.A:null,b=[],c=r(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=oe(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?Jm(this).map(function(f){return se(f)}):[]};q.xg=function(){return this.i?this.i.imageStreams.map(function(a){return pe(a)}):[]};
452
- q.Mg=function(a,b){var c=this,d,e,f,g,h,k,l,m,p,n,t,y,x,v,w,D,z,B;return K(function(G){if(1==G.g)return c.i?(d=c.i.imageStreams.find(function(E){return E.id==a}))?d.segmentIndex?G.D(3):A(G,d.createSegmentIndex(),3):G.return(null):G.D(2);if(2!=G.g){e=d.segmentIndex.find(b);if(null==e)return G.return(null);f=d.segmentIndex.get(e);g=f.tilesLayout||d.tilesLayout;h=/(\d+)x(\d+)/.exec(g);if(!h)return G.return(null);k=d.width||0;l=d.height||0;m=parseInt(h[1],10);p=parseInt(h[2],10);n=k/m;t=l/p;y=m*p;x=f.j-
452
+ q.Ab=function(){if(this.i){for(var a=this.j?this.j.A:null,b=[],c=r(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=oe(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?Jm(this).map(function(f){return se(f)}):[]};q.yg=function(){return this.i?this.i.imageStreams.map(function(a){return pe(a)}):[]};
453
+ q.Ng=function(a,b){var c=this,d,e,f,g,h,k,l,m,p,n,t,y,x,v,w,D,z,B;return K(function(G){if(1==G.g)return c.i?(d=c.i.imageStreams.find(function(E){return E.id==a}))?d.segmentIndex?G.D(3):A(G,d.createSegmentIndex(),3):G.return(null):G.D(2);if(2!=G.g){e=d.segmentIndex.find(b);if(null==e)return G.return(null);f=d.segmentIndex.get(e);g=f.tilesLayout||d.tilesLayout;h=/(\d+)x(\d+)/.exec(g);if(!h)return G.return(null);k=d.width||0;l=d.height||0;m=parseInt(h[1],10);p=parseInt(h[2],10);n=k/m;t=l/p;y=m*p;x=f.j-
453
454
  f.startTime;v=f.A||x/y;w=f.startTime;z=D=0;1<y&&(B=Math.floor((b-f.startTime)/v),w=f.startTime+B*v,D=B%m*n,z=Math.floor(B/m)*t);return G.return({imageHeight:l,imageWidth:k,height:t,positionX:D,positionY:z,startTime:w,duration:v,uris:f.Ra(),width:n})}return G.return(null)})};
454
455
  q.Ee=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.A&&(El(this.A.h,b,!1),gk(this.j,b),Qm(this),this.Oa=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=Jm(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,qe(c)==a.id?c.mode=this.aa?"showing":"hidden":c.mode="disabled";Qm(this)}};
455
456
  q.Fe=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&&ve(d)&&(rm(this,d,!1,b,c),this.Ba=new Oe(d),Fm(this))}else if(this.g&&this.g.audioTracks)for(b=Array.from(this.g.audioTracks),b=r(b),c=b.next();!c.done;c=b.next())if(c=c.value,
456
- qe(c)==a.id){Rm(this,c);break}};q.mg=function(){return Sm(this.Sa())};q.Lg=function(){return Sm(this.Ab())};q.lg=function(){return Array.from(Tm(this.Sa()))};q.Kg=function(){return Array.from(Tm(this.Ab()))};
457
+ qe(c)==a.id){Rm(this,c);break}};q.ng=function(){return Sm(this.Sa())};q.Mg=function(){return Sm(this.Ab())};q.mg=function(){return Array.from(Tm(this.Sa()))};q.Lg=function(){return Array.from(Tm(this.Ab()))};
457
458
  q.Id=function(a,b){if(this.i&&this.F){this.Ba=new Pe(a,b||"",0,"");b=function(h,k){return h.video||k.video?h.video&&k.video?Math.abs((h.video.height||0)-(k.video.height||0))+Math.abs((h.video.width||0)-(k.video.width||0)):Infinity:0};a=this.j.l;var c=this.Ba.create(this.i.variants),d=null;c=r(c.values());for(var e=c.next();!e.done;e=c.next())if(e=e.value,!d||b(d,a)>b(e,a))d=e;d?(b=ne(d),this.Fe(b,!0)):Pm(this)}else if(this.g&&this.g.audioTracks){e=Array.from(this.g.audioTracks);a=Kb(a);c=d=null;e=
458
459
  r(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;var g=ue(f);Kb(g.language)==a&&(d=f,b?g.roles.includes(b)&&(c=f):0==g.roles.length&&(c=f))}c?Rm(this,c):d&&Rm(this,d)}};
459
460
  q.De=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.F){if(this.Oa=a,this.Fc=b||"",this.wb=c,(a=xe(this.i.textStreams,this.Oa,this.Fc,this.wb)[0]||null)&&a!=this.j.A&&(El(this.A.h,a,!1),this.h.streaming.alwaysStreamText||this.Ob()))gk(this.j,a),Qm(this)}else{var d=Kb(a);(a=this.Ab().find(function(e){return Kb(e.language)==d&&(!b||e.roles.includes(b))&&e.forced==c}))&&this.Ee(a)}};
460
- q.ph=function(a){if(this.i&&this.F){for(var b=null,c=r(this.i.variants),d=c.next();!d.done;d=c.next())if(d=d.value,d.audio.label==a){b=d;break}null!=b&&(this.Ba=new Pe(b.language,"",0,a),Pm(this))}else if(this.g&&this.g.audioTracks){c=Array.from(this.g.audioTracks);b=null;c=r(c);for(d=c.next();!d.done;d=c.next())d=d.value,d.label==a&&(b=d);b&&Rm(this,b)}};
461
+ q.rh=function(a){if(this.i&&this.F){for(var b=null,c=r(this.i.variants),d=c.next();!d.done;d=c.next())if(d=d.value,d.audio.label==a){b=d;break}null!=b&&(this.Ba=new Pe(b.language,"",0,a),Pm(this))}else if(this.g&&this.g.audioTracks){c=Array.from(this.g.audioTracks);b=null;c=r(c);for(d=c.next();!d.done;d=c.next())d=d.value,d.label==a&&(b=d);b&&Rm(this,b)}};
461
462
  q.Ob=function(){var a=this.aa;return this.K?this.K.m.isTextVisible():this.g&&this.g.src&&this.g.textTracks?Jm(this).some(function(b){return"showing"==b.mode}):a};q.xf=function(){return this.g&&this.g.src&&this.g.textTracks?Um(this).map(function(a){return se(a)}):[]};
462
- q.pg=function(a){var b=Kb(a),c=Um(this).filter(function(h){return Kb(h.language)==b});if(!c||!c.length)return[];a=[];var d=new Set;c=r(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.cues){e=r(e.cues);for(var f=e.next();!f.done;f=e.next()){var g=f.value;(f=g.id)&&""!=f||(f=g.startTime+"-"+g.endTime+"-"+g.text);g={id:f,title:g.text,startTime:g.startTime,endTime:g.endTime};d.has(f)||(a.push(g),d.add(f))}}return a};
463
+ q.qg=function(a){var b=Kb(a),c=Um(this).filter(function(h){return Kb(h.language)==b});if(!c||!c.length)return[];a=[];var d=new Set;c=r(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.cues){e=r(e.cues);for(var f=e.next();!f.done;f=e.next()){var g=f.value;(f=g.id)&&""!=f||(f=g.startTime+"-"+g.endTime+"-"+g.text);g={id:f,title:g.text,startTime:g.startTime,endTime:g.endTime};d.has(f)||(a.push(g),d.add(f))}}return a};
463
464
  function Jm(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function Lm(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"==b.kind})}function Um(a){return Array.from(a.g.textTracks).filter(function(b){return"chapters"==b.kind})}
464
465
  q.Ne=function(a){a=!!a;if(this.aa!=a){this.aa=a;if(this.l==wm)this.K.m.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.A||(a=xe(this.i.textStreams,this.Oa,this.Fc,this.wb),0<a.length&&(gk(this.j,a[0]),Qm(this))):ck(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=Jm(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}Bm(this)}};
465
- q.Hg=function(){if(!this.U())return null;var a=this.ua.l,b=0;if(this.F)b=this.F.gd();else if(a){if(null==a.startTime)return new Date;b=a.startTime}return this.i?new Date(1E3*(this.i.presentationTimeline.l+b)):this.g&&this.g.getStartDate?(a=this.g.getStartDate(),isNaN(a.getTime())?null:new Date(a.getTime()+1E3*b)):null};
466
+ q.Ig=function(){if(!this.U())return null;var a=this.ua.l,b=0;if(this.F)b=this.F.gd();else if(a){if(null==a.startTime)return new Date;b=a.startTime}return this.i?new Date(1E3*(this.i.presentationTimeline.l+b)):this.g&&this.g.getStartDate?(a=this.g.getStartDate(),isNaN(a.getTime())?null:new Date(a.getTime()+1E3*b)):null};
466
467
  q.Af=function(){if(!this.U())return null;if(this.i)return new Date(1E3*this.i.presentationTimeline.l);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};q.kb=function(){if(this.l==wm)return this.K.kb();var a={total:[],audio:[],video:[],text:[]};this.l==Hm&&(a.total=Di(this.g.buffered));return a};
467
468
  q.getStats=function(){if(this.l!=wm&&this.l!=Hm)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:[]};om(this);var a=this.g,b=a.currentTime/a.duration;if(!isNaN(b)){var c=this.A;b=
468
469
  Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.F&&(this.A.P=this.F.bf(),this.A.T=this.F.cf());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.A;var d=Number(c.totalVideoFrames);b.N=Number(c.droppedVideoFrames);b.K=d;this.A.J=Number(c.corruptedVideoFrames)}this.m?(c=this.m,c=c.J?c.J:NaN):c=NaN;this.A.B=c;if(this.l==wm){if(c=this.j.l)this.A.F=(this.I?this.I.i:1)*c.bandwidth;c&&c.video&&(b=this.A,d=c.video.height||NaN,b.A=c.video.width||NaN,b.l=d);this.U()&&(c=this.Af().valueOf()+
469
470
  1E3*this.Ka().end,this.A.G=(Date.now()-c)/1E3);this.i&&this.i.presentationTimeline&&(this.A.I=this.i.presentationTimeline.g);c=this.B.getBandwidthEstimate();this.A.C=c}this.l==Hm&&(c=this.A,b=a.videoHeight||NaN,c.A=a.videoWidth||NaN,c.l=b);var e=this.A;a=e.A;c=e.l;b=e.F;d=e.K;var f=e.N,g=e.J,h=e.T,k=e.P,l=e.C,m=e.i,p=e.m,n=e.H,t=e.j,y=Bl(e.g,"playing"),x=Bl(e.g,"paused"),v=Bl(e.g,"buffering"),w=e.B,D=e.G,z=e.I,B=Cl(e.g),G=[];e=r(e.h.g);for(var E=e.next();!E.done;E=e.next())E=E.value,G.push({timestamp:E.timestamp,
470
471
  id:E.id,type:E.type,fromAdaptation:E.fromAdaptation,bandwidth:E.bandwidth});return{width:a,height:c,streamBandwidth:b,decodedFrames:d,droppedFrames:f,corruptedFrames:g,stallsDetected:h,gapsJumped:k,estimatedBandwidth:l,completionPercent:m,loadLatency:p,manifestTimeSeconds:n,drmTimeSeconds:t,playTime:y,pauseTime:x,bufferingTime:v,licenseTime:w,liveLatency:D,maxSegmentDuration:z,stateHistory:B,switchHistory:G}};
471
- q.ag=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,p,n,t,y,x,v,w,D;return K(function(z){switch(z.g){case 1:if(h.l!=wm&&h.l!=Hm)throw new O(1,7,7004);if(d){z.D(2);break}return A(z,Vm(h,a),3);case 3:d=z.h;case 2:k=[];if(h.G)try{k=h.G.getServerSideCuePoints()}catch(B){}if(h.l!=Hm){z.D(4);break}g&&(c="forced");return A(z,Wm(h,a,b,c,d,f||"",k),5);case 5:l=h.Ab();if(m=l.find(function(B){return B.language==b&&B.label==(f||"")&&B.kind==c}))return Em(h),z.return(m);throw new O(1,2,2012);case 4:p=
472
- Hb;n=h.i.presentationTimeline.getDuration();if(Infinity==n)throw new O(1,4,4033);if(!k.length){z.D(6);break}return A(z,Xm(h,a,h.H,h.h.streaming.retryParameters),7);case 7:t=z.h,y=Ym(h,t,d,k),x=new Blob([y],{type:"text/vtt"}),a=Ii(x),d="text/vtt";case 6:v={id:h.Wf++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Dj(0,n,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:p.ha,primary:!1,trickModeVideo:null,
472
+ q.cg=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,p,n,t,y,x,v,w,D;return K(function(z){switch(z.g){case 1:if(h.l!=wm&&h.l!=Hm)throw new O(1,7,7004);if(d){z.D(2);break}return A(z,Vm(h,a),3);case 3:d=z.h;case 2:k=[];if(h.G)try{k=h.G.getServerSideCuePoints()}catch(B){}if(h.l!=Hm){z.D(4);break}g&&(c="forced");return A(z,Wm(h,a,b,c,d,f||"",k),5);case 5:l=h.Ab();if(m=l.find(function(B){return B.language==b&&B.label==(f||"")&&B.kind==c}))return Em(h),z.return(m);throw new O(1,2,2012);case 4:p=
473
+ Hb;n=h.i.presentationTimeline.getDuration();if(Infinity==n)throw new O(1,4,4033);if(!k.length){z.D(6);break}return A(z,Xm(h,a,h.H,h.h.streaming.retryParameters),7);case 7:t=z.h,y=Ym(h,t,d,k),x=new Blob([y],{type:"text/vtt"}),a=Ii(x),d="text/vtt";case 6:v={id:h.Xf++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Dj(0,n,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:p.ia,primary:!1,trickModeVideo:null,
473
474
  emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null};w=ud(v.mimeType,v.codecs);D=Ad(w);if(!D)throw new O(2,2,2014,d);h.i.textStreams.push(v);Em(h);return z.return(oe(v))}})};
474
- q.$f=function(a,b,c){var d=this,e,f,g,h;return K(function(k){switch(k.g){case 1:if(d.l!=wm&&d.l!=Hm)throw new O(1,7,7004);if(c){k.D(2);break}return A(k,Vm(d,a),3);case 3:c=k.h;case 2:e=[];if(d.G)try{e=d.G.getServerSideCuePoints()}catch(l){}return A(k,Wm(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.xf();h=g.find(function(l){return l.language==b});if(!h){k.D(5);break}return A(k,new Promise(function(l,m){d.C.ya(f,"load",l);d.C.ya(f,"error",function(){m(new O(1,2,2015))})}),6);case 6:return k.return(h);
475
+ q.ag=function(a,b,c){var d=this,e,f,g,h;return K(function(k){switch(k.g){case 1:if(d.l!=wm&&d.l!=Hm)throw new O(1,7,7004);if(c){k.D(2);break}return A(k,Vm(d,a),3);case 3:c=k.h;case 2:e=[];if(d.G)try{e=d.G.getServerSideCuePoints()}catch(l){}return A(k,Wm(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.xf();h=g.find(function(l){return l.language==b});if(!h){k.D(5);break}return A(k,new Promise(function(l,m){d.C.ya(f,"load",l);d.C.ya(f,"error",function(){m(new O(1,2,2015))})}),6);case 6:return k.return(h);
475
476
  case 5:throw new O(1,2,2012);}})};function Vm(a,b){var c,d;return K(function(e){switch(e.g){case 1:c=eh(b);if(d=Zm[c])return e.return(d);F(e,2);return A(e,gh(b,a.H,a.h.streaming.retryParameters),4);case 4:d=e.h;va(e,3);break;case 2:J(e);case 3:if(d)return e.return(d);throw new O(1,2,2011,c);}})}
476
477
  function Wm(a,b,c,d,e,f,g){var h,k,l,m;return K(function(p){if(1==p.g)return"text/vtt"!=e||g.length?A(p,Xm(a,b,a.H,a.h.streaming.retryParameters),3):p.D(2);2!=p.g&&(h=p.h,k=Ym(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=Ii(l),e="text/vtt");m=document.createElement("track");var n=a.T,t=b;try{if(n.g.enabled){var y=hl(n);y.ot=nl;y.su=!0;var x=jl(y);var v=kl(t,x)}else v=t}catch(w){Wa("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",w),v=t}m.src=v;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")||
477
478
  a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return p.return(m)})}function Xm(a,b,c,d){var e,f,g;return K(function(h){if(1==h.g){e=vf;f=pf([b],d);f.method="GET";var k=a.T;try{k.g.enabled&&fl(k,f,{ot:nl,su:!0})}catch(l){Wa("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return A(h,c.request(e,f).promise,2)}g=h.h;return h.return(g.data)})}
478
479
  function Ym(a,b,c,d){var e=Bd[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=Cc(b),b=c.parseMedia(b,a),Uk(b,d);throw new O(2,2,2014,c);}q.Je=function(a,b){this.Lc.width=a;this.Lc.height=b};q.ze=function(a){if(this.l==wm){var b=this.j;a=void 0===a?.1:a;if(b.h.g)b=!1;else if(b.B)b=!1;else{for(var c=r(b.i.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.Mc||d.Ja||d.fb||(d.Mc=!1,bk(b,d,a));b=!0}}else b=!1;return b};
479
- q.Cg=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};q.Dg=function(){return this.Fd};
480
+ q.Dg=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};q.Eg=function(){return this.Fd};
480
481
  function Hl(a){var b=wl();b.streaming.failureCallback=function(c){if(a.U()){var d=null;1001==c.code||1002==c.code?d=1:1003==c.code&&(d=.1);null!=d&&(c.severity=1,a.ze(d))}};b.textDisplayFactory=function(){return a.td?new Mk(a.g,a.td):new Gk(a.g)};return b}q.Oe=function(a){this.td=a};
481
- function jm(a,b){for(var c=new Set,d=r(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=r(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=r(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;h={id:a.Wf++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},
482
+ function jm(a,b){for(var c=new Set,d=r(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=r(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=r(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;h={id:a.Xf++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},
482
483
  segmentIndex:k,mimeType:h,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:e.closedCaptions.get(g),label:null,type:Gb,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:e.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null};b.textStreams.push(h);c.add(g)}}function im(a,b){return K(function(c){if(1==c.g)return A(c,$m(a,b),2);Om(a,b);C(c)})}
483
484
  function $m(a,b){var c;return K(function(d){if(1==d.g)return c=a.j?a.j.l:null,A(d,$d(c,b),2);Dm(b);C(d)})}
484
485
  function Om(a,b){if(a.l!=Wl){Zd(b.variants,a.h.restrictions,a.Lc)&&a.j&&Em(a);var c=a.m?a.m.g:null;if(c&&a.m.C)for(var d=r(b.variants),e=d.next();!e.done;e=d.next()){e=e.value;e=r((e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]));for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.keySystem==c.keySystem){f=r(f.initData||[]);for(var g=f.next();!g.done;g=f.next())g=g.value,Gg(a.m,g.initDataType,g.initData)}}an(a,b)}}
@@ -488,23 +489,23 @@ function Fm(a){try{an(a,a.i)}catch(c){return dm(a,c),!1}var b=a.i.variants.filte
488
489
  function rm(a,b,c,d,e){var f=a.j.l;if(b==f)d&&fk(a.j,b,d,e,!0);else{var g=a.A.h;g.h!=b&&(g.h=b,g.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));fk(a.j,b,d,e,void 0,c);d=null;f&&(d=ne(f));b=ne(b);c?zm(a,d,b):bn(a,d,b)}}function Rm(a,b){var c=Array.from(a.g.audioTracks).find(function(d){return d.enabled});b.enabled=!0;b.id!==c.id&&(c.enabled=!1);c=ue(c);b=ue(b);bn(a,c,b)}
489
490
  function Am(a,b,c){a=Kb(a.h.preferredTextLanguage);b=Kb(b.language);c=Kb(c.language);return Jb(c,a)&&!Jb(b,c)}function zm(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);b=Ul("adaptation",b);cn(a,b)}function Em(a){var b=Ul("trackschanged");cn(a,b)}function bn(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);b=Ul("variantchanged",b);cn(a,b)}function Qm(a){var b=Ul("textchanged");cn(a,b)}function Bm(a){var b=Ul("texttrackvisibility");cn(a,b)}
490
491
  function Cm(a){var b=(new Map).set("newStatus",a.h.abr.enabled);cn(a,Ul("abrstatuschanged",b))}
491
- function dn(a,b){if(1002!=b.code&&1011!=b.code||1!=b.category||!navigator.onLine)return!1;var c=a.h.streaming.maxDisabledTime;if(0==c)if(1011==b.code)c=1;else return!1;b=a.Sa().find(function(g){return g.active});for(var d=a.i,e=r(d.variants),f=e.next();!f.done;f=e.next())f=f.value,f.id===b.id&&(f.disabledUntilTime=Date.now()/1E3+c);Zd(d.variants,a.h.restrictions,a.Lc);b=Vl(a);if(!b)return!1;d=a.kb().video.reduce(function(g,h){return g+h.end-h.start},0);rm(a,b,!1,!0,d);a.Vf.S(c);return!0}
492
+ function dn(a,b){if(1002!=b.code&&1011!=b.code||1!=b.category||a.l!=wm||!navigator.onLine)return!1;var c=a.h.streaming.maxDisabledTime;if(0==c)if(1011==b.code)c=1;else return!1;b=a.Sa().find(function(g){return g.active});for(var d=a.i,e=r(d.variants),f=e.next();!f.done;f=e.next())f=f.value,f.id===b.id&&(f.disabledUntilTime=Date.now()/1E3+c);Zd(d.variants,a.h.restrictions,a.Lc);b=Vl(a);if(!b)return!1;d=a.kb().video.reduce(function(g,h){return g+h.end-h.start},0);rm(a,b,!1,!0,d);a.Wf.S(c);return!0}
492
493
  function dm(a,b){if(a.l!=Wl)if(dn(a,b))b.handled=!0;else{var c=Ul("error",(new Map).set("detail",b));a.dispatchEvent(c);c.defaultPrevented&&(b.handled=!0)}}function hm(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(Ul(b,c))}
493
494
  function cm(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 O(2,3,3016,b,c,a.g.error.message)}
494
495
  function mm(a,b){if(a.j){var c=Object.keys(b),d=1==c.length&&"00"==c[0],e=!1;if(c.length){c=r(a.i.variants);for(var f=c.next();!f.done;f=c.next()){f=f.value;var g=[];f.audio&&g.push(f.audio);f.video&&g.push(f.video);g=r(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=r(k.keyIds);for(var l=k.next();!l.done;l=k.next())l=l.value,l=b[d?"00":l],f.allowedByKeySystem=f.allowedByKeySystem&&!!l&&!en.includes(l)}h!=f.allowedByKeySystem&&
495
- (e=!0)}}}if(!e||Fm(a))(b=a.j.l)&&!b.allowedByKeySystem&&Pm(a),e&&Em(a)}}function nm(a,b,c){if(a.J&&a.J.onExpirationUpdated)a.J.onExpirationUpdated(b,c);b=Ul("expirationupdated");a.dispatchEvent(b)}function qm(a,b,c){0<b&&(a.U()||a.Pf(b));b=a.getDuration();c<b&&(a.U()||a.Ua(c))}
496
+ (e=!0)}}}if(!e||Fm(a))(b=a.j.l)&&!b.allowedByKeySystem&&Pm(a),e&&Em(a)}}function nm(a,b,c){if(a.J&&a.J.onExpirationUpdated)a.J.onExpirationUpdated(b,c);b=Ul("expirationupdated");a.dispatchEvent(b)}function qm(a,b,c){0<b&&(a.U()||a.Qf(b));b=a.getDuration();c<b&&(a.U()||a.Ua(c))}
496
497
  function an(a,b){a=a.m?a.m.pd():{};var c=Object.keys(a);c=c.length&&"00"==c[0];var d=!1,e=!1,f=new Set,g=new Set;b=r(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=r(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.keyIds.size){l=r(l.keyIds);for(var m=l.next();!m.done;m=l.next()){m=m.value;var p=a[c?"00":m];p?en.includes(p)&&g.add(p):f.add(m)}}h.allowedByApplication?h.allowedByKeySystem&&(d=!0):e=!0}if(!d)throw a={hasAppRestrictions:e,
497
498
  missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new O(2,4,4012,a);}function Dm(a){if(!a.variants.some(ve))throw new O(2,4,4032);}function cn(a,b){K(function(c){if(1==c.g)return A(c,Promise.resolve(),2);a.l!=Wl&&a.dispatchEvent(b);C(c)})}function Tm(a){var b=new Set;a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(Kb(c.language)):b.add("und");return b}
498
499
  function Sm(a){var b=new Map,c=new Map;a=r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="und",f=[];d.language&&(e=Kb(d.language));"variant"==d.type?f=d.audioRoles:f=d.roles;f&&f.length||(f=[""]);b.has(e)||b.set(e,new Set);f=r(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=r(k);for(var m=k.next();!m.done;m=k.next()){m=m.value;var p=null;c.has(l)&&c.get(l).has(m)&&(p=c.get(l).get(m));
499
500
  h.push({language:l,role:m,label:p})}});return h}function Yl(){return new O(2,7,7E3)}function Tl(a,b,c,d,e,f){return d==a&&e.O==f.O&&e.uri==f.uri&&e.mimeType==f.mimeType?b:c}function yk(){return{O:null,mimeType:null,startTime:null,Pe:NaN,uri:null}}function Zl(a){return new Promise(function(b,c){a.Rb=function(){return c(Yl())};a.zd=function(){return b()};a.onError=function(d){return c(d)};a.Cd=function(){return c(Yl())}})}M("shaka.Player",T);T.prototype.setVideoContainer=T.prototype.Oe;
500
- T.prototype.getManifestParserFactory=T.prototype.Dg;T.prototype.getManifest=T.prototype.Cg;T.prototype.retryStreaming=T.prototype.ze;T.prototype.setMaxHardwareResolution=T.prototype.Je;T.prototype.addChaptersTrack=T.prototype.$f;T.prototype.addTextTrackAsync=T.prototype.ag;T.prototype.getStats=T.prototype.getStats;T.prototype.getBufferedInfo=T.prototype.kb;T.prototype.getPresentationStartTimeAsDate=T.prototype.Af;T.prototype.getPlayheadTimeAsDate=T.prototype.Hg;
501
- T.prototype.setTextTrackVisibility=T.prototype.Ne;T.prototype.getChapters=T.prototype.pg;T.prototype.getChaptersTracks=T.prototype.xf;T.prototype.isTextTrackVisible=T.prototype.Ob;T.prototype.selectVariantsByLabel=T.prototype.ph;T.prototype.selectTextLanguage=T.prototype.De;T.prototype.selectAudioLanguage=T.prototype.Id;T.prototype.getTextLanguages=T.prototype.Kg;T.prototype.getAudioLanguages=T.prototype.lg;T.prototype.getTextLanguagesAndRoles=T.prototype.Lg;
502
- T.prototype.getAudioLanguagesAndRoles=T.prototype.mg;T.prototype.selectVariantTrack=T.prototype.Fe;T.prototype.selectTextTrack=T.prototype.Ee;T.prototype.getThumbnails=T.prototype.Mg;T.prototype.getImageTracks=T.prototype.xg;T.prototype.getTextTracks=T.prototype.Ab;T.prototype.getVariantTracks=T.prototype.Sa;T.prototype.cancelTrickPlay=T.prototype.kf;T.prototype.trickPlay=T.prototype.Ue;T.prototype.getPlaybackRate=T.prototype.zb;T.prototype.isBuffering=T.prototype.Pc;T.prototype.getKeyStatuses=T.prototype.pd;
503
- T.prototype.getExpiration=T.prototype.Hc;T.prototype.drmInfo=T.prototype.drmInfo;T.prototype.keySystem=T.prototype.keySystem;T.prototype.goToLive=T.prototype.Qg;T.prototype.seekRange=T.prototype.Ka;T.prototype.isAudioOnly=T.prototype.ic;T.prototype.isInProgress=T.prototype.Mb;T.prototype.isLive=T.prototype.U;T.prototype.getAdManager=T.prototype.nd;T.prototype.getAssetUri=T.prototype.fe;T.prototype.getNetworkingEngine=T.prototype.Ic;T.prototype.getMediaElement=T.prototype.Fg;
504
- T.prototype.getLoadMode=T.prototype.zf;T.prototype.resetConfiguration=T.prototype.mh;T.prototype.getBufferFullness=T.prototype.ng;T.prototype.getConfiguration=T.prototype.getConfiguration;T.prototype.configure=T.prototype.configure;T.prototype.load=T.prototype.load;T.prototype.updateStartTime=T.prototype.Ch;T.prototype.unload=T.prototype.We;T.prototype.detach=T.prototype.detach;T.prototype.attach=T.prototype.Cc;
501
+ T.prototype.getManifestParserFactory=T.prototype.Eg;T.prototype.getManifest=T.prototype.Dg;T.prototype.retryStreaming=T.prototype.ze;T.prototype.setMaxHardwareResolution=T.prototype.Je;T.prototype.addChaptersTrack=T.prototype.ag;T.prototype.addTextTrackAsync=T.prototype.cg;T.prototype.getStats=T.prototype.getStats;T.prototype.getBufferedInfo=T.prototype.kb;T.prototype.getPresentationStartTimeAsDate=T.prototype.Af;T.prototype.getPlayheadTimeAsDate=T.prototype.Ig;
502
+ T.prototype.setTextTrackVisibility=T.prototype.Ne;T.prototype.getChapters=T.prototype.qg;T.prototype.getChaptersTracks=T.prototype.xf;T.prototype.isTextTrackVisible=T.prototype.Ob;T.prototype.selectVariantsByLabel=T.prototype.rh;T.prototype.selectTextLanguage=T.prototype.De;T.prototype.selectAudioLanguage=T.prototype.Id;T.prototype.getTextLanguages=T.prototype.Lg;T.prototype.getAudioLanguages=T.prototype.mg;T.prototype.getTextLanguagesAndRoles=T.prototype.Mg;
503
+ T.prototype.getAudioLanguagesAndRoles=T.prototype.ng;T.prototype.selectVariantTrack=T.prototype.Fe;T.prototype.selectTextTrack=T.prototype.Ee;T.prototype.getThumbnails=T.prototype.Ng;T.prototype.getImageTracks=T.prototype.yg;T.prototype.getTextTracks=T.prototype.Ab;T.prototype.getVariantTracks=T.prototype.Sa;T.prototype.cancelTrickPlay=T.prototype.kf;T.prototype.trickPlay=T.prototype.Ue;T.prototype.getPlaybackRate=T.prototype.zb;T.prototype.isBuffering=T.prototype.Pc;T.prototype.getKeyStatuses=T.prototype.pd;
504
+ T.prototype.getExpiration=T.prototype.Hc;T.prototype.drmInfo=T.prototype.drmInfo;T.prototype.keySystem=T.prototype.keySystem;T.prototype.goToLive=T.prototype.Rg;T.prototype.seekRange=T.prototype.Ka;T.prototype.isAudioOnly=T.prototype.ic;T.prototype.isInProgress=T.prototype.Mb;T.prototype.isLive=T.prototype.U;T.prototype.getAdManager=T.prototype.nd;T.prototype.getAssetUri=T.prototype.fe;T.prototype.getNetworkingEngine=T.prototype.Ic;T.prototype.getMediaElement=T.prototype.Gg;
505
+ T.prototype.getLoadMode=T.prototype.zf;T.prototype.resetConfiguration=T.prototype.oh;T.prototype.getBufferFullness=T.prototype.og;T.prototype.getConfiguration=T.prototype.getConfiguration;T.prototype.configure=T.prototype.configure;T.prototype.load=T.prototype.load;T.prototype.updateStartTime=T.prototype.Eh;T.prototype.unload=T.prototype.We;T.prototype.detach=T.prototype.detach;T.prototype.attach=T.prototype.Cc;
505
506
  T.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?A(h,Xg(),3):h.D(2);2!=h.g&&(b=h.h);var k={};if(Mc()){for(var l in dh)k[l]=!0;for(var m in fh)k[m]=!0}l={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};m=r(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var p=m.next();!p.done;p=m.next())p=p.value,k[p]=Mc()?!!dh[p]:Nc(p);for(var n in l)k[n]=
506
507
  Mc()?!!fh[n]:Nc(l[n]);c=k;n='video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="opus",audio/mp4; codecs="flac",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(ja(ej));
507
- k={};n=r(n);for(l=n.next();!l.done;l=n.next())l=l.value,k[l]=Mc()?Ad(l)?!0:MediaSource.isTypeSupported(l)||pd(l):Nc(l),m=l.split(";")[0],k[m]=k[m]||k[l];d=k;e={manifest:c,media:d,drm:b};f=fn;for(g in f)e[g]=f[g]();return h.return(e)})};T.isBrowserSupported=Xl;T.setAdManagerFactory=function(a){Jl=a};T.registerSupportPlugin=function(a,b){fn[a]=b};T.prototype.destroy=T.prototype.destroy;var Wl=0,Gl=1,wm=2,Hm=3;T.LoadMode={DESTROYED:Wl,NOT_LOADED:Gl,MEDIA_SOURCE:wm,SRC_EQUALS:Hm};T.version="v4.2.10";
508
+ k={};n=r(n);for(l=n.next();!l.done;l=n.next())l=l.value,k[l]=Mc()?Ad(l)?!0:MediaSource.isTypeSupported(l)||pd(l):Nc(l),m=l.split(";")[0],k[m]=k[m]||k[l];d=k;e={manifest:c,media:d,drm:b};f=fn;for(g in f)e[g]=f[g]();return h.return(e)})};T.isBrowserSupported=Xl;T.setAdManagerFactory=function(a){Jl=a};T.registerSupportPlugin=function(a,b){fn[a]=b};T.prototype.destroy=T.prototype.destroy;var Wl=0,Gl=1,wm=2,Hm=3;T.LoadMode={DESTROYED:Wl,NOT_LOADED:Gl,MEDIA_SOURCE:wm,SRC_EQUALS:Hm};T.version="v4.2.11";
508
509
  var gn=["4","2"];Ge=new function(a){this.g=a;this.i=He;this.h=Ie}(new Ee(Number(gn[0]),Number(gn[1])));
509
510
  var en=["output-restricted","internal-error"],fn={},Jl=null,bm={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mpd:"application/dash+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav"},Zm={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",
510
511
  ssa:"text/x-ssa",ass:"text/x-ssa"};function hn(){this.h=[];this.j=this.i=this.g=0};function jn(a,b,c){var d=this;this.h=a;this.g=b;this.m=c;this.i=!1;this.l=this.g.getVolume();this.j=new yf;this.j.o(this.g,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.j.o(this.g,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}q=jn.prototype;q.getDuration=function(){return this.h.getDuration()};q.getMinSuggestedDuration=function(){return this.h.getMinSuggestedDuration()};q.getRemainingTime=function(){return this.g.getRemainingTime()};q.isPaused=function(){return this.i};
@@ -512,7 +513,7 @@ q.isSkippable=function(){return 0<=this.h.getSkipTimeOffset()};q.getTimeUntilSki
512
513
  q.isLinear=function(){return this.h.isLinear()};q.resize=function(a,b){var c=!1,d=this.m;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.g.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};q.setMuted=function(a){a?(this.l=this.getVolume(),this.setVolume(0)):this.setVolume(this.l)};q.getSequenceLength=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getTotalAds()};
513
514
  q.getPositionInSequence=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getAdPosition()};q.release=function(){this.g=this.h=null};M("shaka.ads.ClientSideAd",jn);jn.prototype.release=jn.prototype.release;jn.prototype.getPositionInSequence=jn.prototype.getPositionInSequence;jn.prototype.getSequenceLength=jn.prototype.getSequenceLength;jn.prototype.setMuted=jn.prototype.setMuted;jn.prototype.resize=jn.prototype.resize;jn.prototype.isLinear=jn.prototype.isLinear;jn.prototype.isMuted=jn.prototype.isMuted;
514
515
  jn.prototype.setVolume=jn.prototype.setVolume;jn.prototype.getVolume=jn.prototype.getVolume;jn.prototype.play=jn.prototype.play;jn.prototype.pause=jn.prototype.pause;jn.prototype.skip=jn.prototype.skip;jn.prototype.canSkipNow=jn.prototype.canSkipNow;jn.prototype.getTimeUntilSkippable=jn.prototype.getTimeUntilSkippable;jn.prototype.isSkippable=jn.prototype.isSkippable;jn.prototype.isPaused=jn.prototype.isPaused;jn.prototype.getRemainingTime=jn.prototype.getRemainingTime;
515
- jn.prototype.getMinSuggestedDuration=jn.prototype.getMinSuggestedDuration;jn.prototype.getDuration=jn.prototype.getDuration;function kn(a,b,c,d){var e=this;this.A=a;this.i=b;this.B=null;this.C=NaN;this.l=d;this.j=null;this.h=new yf;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.A,this.i);a.initialize();this.m=new google.ima.AdsLoader(a);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.2.10");this.g=null;this.h.ya(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){ln(e,f)});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,
516
+ jn.prototype.getMinSuggestedDuration=jn.prototype.getMinSuggestedDuration;jn.prototype.getDuration=jn.prototype.getDuration;function kn(a,b,c,d){var e=this;this.A=a;this.i=b;this.B=null;this.C=NaN;this.l=d;this.j=null;this.h=new yf;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.A,this.i);a.initialize();this.m=new google.ima.AdsLoader(a);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.2.11");this.g=null;this.h.ya(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){ln(e,f)});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,
516
517
  function(f){mn(e,f)});this.h.o(this.i,"ended",function(){e.m.contentComplete()})}kn.prototype.stop=function(){this.g&&this.g.stop();this.A&&Lk(this.A)};kn.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy()};function mn(a,b){b.getError();nn(a,null);a.l(new N("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
517
518
  function ln(a,b){a.l(new N("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.C)));a.g=b.getAdsManager(a.i);a.l(new N("ima-ad-manager-loaded",(new Map).set("imaAdManager",a.g)));var c=a.g.getCuePoints();if(c.length){b=[];c=r(c);for(var d=c.next();!d.done;d=c.next())b.push({start:d.value,end:null});a.l(new N("ad-cue-points-changed",(new Map).set("cuepoints",b)))}on(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight,pn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),a.h.o(a.i,"loadeddata",
518
519
  function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,pn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in window?(a.B=new ResizeObserver(function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,pn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.B.observe(a.i)):a.h.o(document,"fullscreenchange",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,pn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.h.ya(a.i,"play",function(){a.g.start()})}catch(e){nn(a,
@@ -534,8 +535,8 @@ f;e.i(new N("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}sn.prototyp
534
535
  function tn(a,b){a.i(new N("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.I)));b=b.getStreamData().url;a.j.resolve(b);a.j=null;a.H||a.h.o(a.l,"seeked",function(){var c=a.l.currentTime;if(0!=c){a.g.streamTimeForContentTime(c);var d=a.g.previousCuePointForStreamTime(c);d&&!d.played&&(a.A=c,a.l.currentTime=d.start)}})};function U(){db.call(this);this.g=this.i=null;this.h=new hn;this.j=navigator.language}u(U,db);q=U.prototype;q.setLocale=function(a){this.j=a};q.initClientSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new O(2,10,1E4);this.i&&this.i.release();this.i=new kn(a,b,this.j,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.h.h.push(d.loadTime);break;case "ad-started":c.h.g++;break;case "ad-complete":c.h.i++;break;case "ad-skipped":c.h.j++}c.dispatchEvent(d)})};
535
536
  q.release=function(){this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);db.prototype.release.call(this)};q.onAssetUnload=function(){this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new N("ad-stopped"));this.h=new hn};q.requestClientSideAds=function(a){if(!this.i)throw new O(1,10,10001);var b=this.i;b.C=Date.now()/1E3;b.m.requestAds(a)};
536
537
  q.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new O(2,10,10002);this.g&&this.g.release();this.g=new sn(a,b,this.j,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.h.h.push(d.loadTime);break;case "ad-started":c.h.g++;break;case "ad-complete":c.h.i++;break;case "ad-skipped":c.h.j++}c.dispatchEvent(d)})};
537
- q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new O(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.2.10";c=this.g;c.j?a=Promise.reject(new O(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
538
- (c.H=!0),c.j=new Jc,c.g.requestStream(a),c.F=b||"",c.I=Date.now()/1E3,a=c.j);return a};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new O(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.2.10";this.g.g.replaceAdTagParameters(a)};q.getServerSideCuePoints=function(){if(!this.g)throw new O(1,10,10003);return this.g.G};
538
+ q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new O(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.2.11";c=this.g;c.j?a=Promise.reject(new O(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
539
+ (c.H=!0),c.j=new Jc,c.g.requestStream(a),c.F=b||"",c.I=Date.now()/1E3,a=c.j);return a};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new O(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.2.11";this.g.g.replaceAdTagParameters(a)};q.getServerSideCuePoints=function(){if(!this.g)throw new O(1,10,10003);return this.g.G};
539
540
  q.getStats=function(){var a=this.h;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};q.onDashTimedMetadata=function(a){if(this.g&&"urn:google:dai:2018"==a.schemeIdUri){var b=a.schemeIdUri,c=a.eventElement?a.eventElement.getAttribute("messageData"):null;this.g.g.processMetadata(b,c,a.startTime)}};q.onHlsTimedMetadata=function(a,b){this.g&&this.g.g.processMetadata("ID3",a.data,b)};q.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};M("shaka.ads.AdManager",U);
540
541
  U.prototype.onCueMetadataChange=U.prototype.onCueMetadataChange;U.prototype.onHlsTimedMetadata=U.prototype.onHlsTimedMetadata;U.prototype.onDashTimedMetadata=U.prototype.onDashTimedMetadata;U.prototype.getStats=U.prototype.getStats;U.prototype.getServerSideCuePoints=U.prototype.getServerSideCuePoints;U.prototype.replaceServerSideAdTagParameters=U.prototype.replaceServerSideAdTagParameters;U.prototype.requestServerSideStream=U.prototype.requestServerSideStream;U.prototype.initServerSide=U.prototype.initServerSide;
541
542
  U.prototype.requestClientSideAds=U.prototype.requestClientSideAds;U.prototype.onAssetUnload=U.prototype.onAssetUnload;U.prototype.release=U.prototype.release;U.prototype.initClientSide=U.prototype.initClientSide;U.prototype.setLocale=U.prototype.setLocale;U.ADS_LOADED="ads-loaded";U.AD_STARTED="ad-started";U.AD_FIRST_QUARTILE="ad-first-quartile";U.AD_MIDPOINT="ad-midpoint";U.AD_THIRD_QUARTILE="ad-third-quartile";U.AD_COMPLETE="ad-complete";U.AD_STOPPED="ad-stopped";U.AD_SKIPPED="ad-skipped";
@@ -547,31 +548,31 @@ function wn(a){return{length:a.length,start:function(b){return a.start[b]},end:f
547
548
  var xn="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),yn="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),zn=["loop","playbackRate"],An=["pause","play"],Bn={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getImageTracks:2,getThumbnails:2,
548
549
  isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10},Cn={getConfiguration:4,getStats:5,getTextTracks:2,getVariantTracks:2},Dn={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},En=[["getConfiguration","configure"]],Fn=[["isTextTrackVisible","setTextTrackVisibility"]],Gn="addChaptersTrack addTextTrackAsync cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),
549
550
  Hn=["attach","detach","load","unload"];function In(a,b,c,d,e,f,g){var h=this;this.I=a;this.P=g;this.j=new P(b);this.T=c;this.C=!1;this.B=d;this.H=e;this.K=f;this.h=this.m=!1;this.N="";this.A=null;this.F=function(){return Jn(h)};this.G=function(k,l){k=vn(l);switch(k.type){case "event":var m=k.targetName,p=Qa(k.event);h.B(m,p);break;case "update":m=k.update;for(p in m){k=h.g[p]||{};for(var n in m[p])k[n]=m[p][n]}h.C&&(h.T(),h.C=!1);break;case "asyncComplete":if(p=k.id,n=k.error,k=h.i[p],delete h.i[p],k)if(n){p=new O(n.severity,n.category,
550
- n.code);for(m in n)p[m]=n[m];k.reject(p)}else k.resolve()}};this.g={video:{},player:{}};this.J=0;this.i={};this.l=null;Kn.add(this)}q=In.prototype;q.destroy=function(){Kn.delete(this);Ln(this);Mn&&Nn(this);this.j&&(this.j.stop(),this.j=null);this.H=this.B=null;this.h=this.m=!1;this.G=this.F=this.l=this.i=this.g=this.A=null;return Promise.resolve()};q.qa=function(){return this.h};q.Gd=function(){return this.N};
551
+ n.code);for(m in n)p[m]=n[m];k.reject(p)}else k.resolve()}};this.g={video:{},player:{}};this.J=0;this.i={};this.l=null;Kn.add(this)}q=In.prototype;q.destroy=function(){Kn.delete(this);Ln(this);Mn&&Nn(this);this.j&&(this.j.stop(),this.j=null);this.H=this.B=null;this.h=this.m=!1;this.G=this.F=this.l=this.i=this.g=this.A=null;return Promise.resolve()};q.ra=function(){return this.h};q.Gd=function(){return this.N};
551
552
  q.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.j.Aa();var a=new chrome.cast.SessionRequest(this.I,[],null,this.P,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=r(Kn),d=c.next();!d.done;d=c.next())On(d.value,b)},function(b){for(var c=r(Kn),d=c.next();!d.done;d=c.next())d=d.value,Pn="available"==b,d.j.Aa()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});Pn&&this.j.S(Qn);(a=Mn)&&a.status!=chrome.cast.SessionStatus.STOPPED?
552
553
  On(this,a):Mn=null}else window.__onGCastApiAvailable!==Rn&&(Sn=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=Rn)};q.Ge=function(a){this.A=a;this.h&&Tn(this,{type:"appData",appData:this.A})};q.cast=function(a){var b=this;return K(function(c){if(!b.m)throw new O(1,8,8E3);if(!Pn)throw new O(1,8,8001);if(b.h)throw new O(1,8,8002);b.l=new Jc;chrome.cast.requestSession(function(d){return Un(b,a,d)},function(d){return Vn(b,d)});return A(c,b.l,0)})};
553
554
  function Wn(a){if(a.h){var b=a.K();chrome.cast.requestSession(function(c){return Un(a,b,c)},function(c){return Vn(a,c)})}}q.ac=function(){if(this.h){Ln(this);if(Mn){Nn(this);try{Mn.stop(function(){},function(){})}catch(a){}Mn=null}Jn(this)}};
554
- q.get=function(a,b){var c=this;if("video"==a){if(An.includes(b))return function(){return c.Jf.apply(c,[a,b].concat(ja(Fa.apply(0,arguments))))}}else if("player"==a){if(Dn[b]&&!this.get("player","isLive")())return function(){};if(Gn.includes(b))return function(){return c.Jf.apply(c,[a,b].concat(ja(Fa.apply(0,arguments))))};if(Hn.includes(b))return function(){return c.jh.apply(c,[a,b].concat(ja(Fa.apply(0,arguments))))};if(Bn[b]||Cn[b])return function(){return c.g[a][b]}}return this.g[a][b]};
555
+ q.get=function(a,b){var c=this;if("video"==a){if(An.includes(b))return function(){return c.Kf.apply(c,[a,b].concat(ja(Fa.apply(0,arguments))))}}else if("player"==a){if(Dn[b]&&!this.get("player","isLive")())return function(){};if(Gn.includes(b))return function(){return c.Kf.apply(c,[a,b].concat(ja(Fa.apply(0,arguments))))};if(Hn.includes(b))return function(){return c.lh.apply(c,[a,b].concat(ja(Fa.apply(0,arguments))))};if(Bn[b]||Cn[b])return function(){return c.g[a][b]}}return this.g[a][b]};
555
556
  q.set=function(a,b,c){this.g[a][b]=c;Tn(this,{type:"set",targetName:a,property:b,value:c})};function Un(a,b,c){Mn=c;c.addUpdateListener(a.F);c.addMessageListener("urn:x-cast:com.google.shaka.v2",a.G);Jn(a);Tn(a,{type:"init",initState:b,appData:a.A});a.l.resolve()}function Vn(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.l.reject(new O(2,8,c,b))}
556
- q.Jf=function(a,b){Tn(this,{type:"call",targetName:a,methodName:b,args:Fa.apply(2,arguments)})};q.jh=function(a,b){var c=Fa.apply(2,arguments),d=new Jc,e=this.J.toString();this.J++;this.i[e]=d;try{Tn(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function On(a,b){var c=a.K();a.l=new Jc;a.C=!0;Un(a,c,b)}function Nn(a){var b=Mn;b.removeUpdateListener(a.F);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G)}
557
+ q.Kf=function(a,b){Tn(this,{type:"call",targetName:a,methodName:b,args:Fa.apply(2,arguments)})};q.lh=function(a,b){var c=Fa.apply(2,arguments),d=new Jc,e=this.J.toString();this.J++;this.i[e]=d;try{Tn(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function On(a,b){var c=a.K();a.l=new Jc;a.C=!0;Un(a,c,b)}function Nn(a){var b=Mn;b.removeUpdateListener(a.F);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G)}
557
558
  function Jn(a){var b=Mn?"connected"==Mn.status:!1;if(a.h&&!b){a.H();for(var c in a.g)a.g[c]={};Ln(a)}a.h=b;a.N=b?Mn.receiver.friendlyName:"";a.j.Aa()}function Ln(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new O(1,7,7E3))}}function Tn(a,b){b=un(b);var c=Mn;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},Ya)}catch(d){throw b=new O(2,8,8005,d),c=new N("error",(new Map).set("detail",b)),a.B("player",c),a.ac(),b;}}var Qn=.02,Pn=!1,Mn=null,Sn=null,Kn=new Set;
558
559
  function Rn(a){Sn?window.__onGCastApiAvailable=Sn:delete window.__onGCastApiAvailable;Sn=null;if(a)for(var b=r(Kn),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function Xn(a,b,c,d){d=void 0===d?!1:d;db.call(this);var e=this;this.i=a;this.h=b;this.m=this.A=this.j=this.B=this.l=null;this.G=c;this.F=d;this.C=new Map;this.g=new In(c,function(){return Yn(e)},function(){return Zn(e)},function(f,g){return $n(e,f,g)},function(){return ao(e)},function(){return bo(e)},d);co(this)}u(Xn,db);q=Xn.prototype;
559
- q.destroy=function(a){a&&this.g.ac();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.B=this.l=this.i=null;db.prototype.release.call(this);return Promise.all(a)};q.Bb=function(){return this.l};q.dc=function(){return this.B};q.jf=function(){return this.g.m&&Pn};q.qa=function(){return this.g.qa()};q.Gd=function(){return this.g.Gd()};
560
- q.cast=function(){var a=this,b;return K(function(c){return 1==c.g?(b=bo(a),A(c,a.g.cast(b),2)):a.h?A(c,a.h.We(),0):c.return()})};q.Ge=function(a){this.g.Ge(a)};q.Rf=function(){Wn(this.g)};q.ac=function(){this.g.ac()};
560
+ q.destroy=function(a){a&&this.g.ac();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.B=this.l=this.i=null;db.prototype.release.call(this);return Promise.all(a)};q.Bb=function(){return this.l};q.dc=function(){return this.B};q.jf=function(){return this.g.m&&Pn};q.ra=function(){return this.g.ra()};q.Gd=function(){return this.g.Gd()};
561
+ q.cast=function(){var a=this,b;return K(function(c){return 1==c.g?(b=bo(a),A(c,a.g.cast(b),2)):a.h?A(c,a.h.We(),0):c.return()})};q.Ge=function(a){this.g.Ge(a)};q.Sf=function(){Wn(this.g)};q.ac=function(){this.g.ac()};
561
562
  q.nf=function(a,b){b=void 0===b?!1:b;var c=this;return K(function(d){if(1==d.g){if(a==c.G&&b==c.F)return d.return();c.G=a;c.F=b;c.g.ac();return A(d,c.g.destroy(),2)}c.g=null;c.g=new In(a,function(){return Yn(c)},function(){return Zn(c)},function(e,f){return $n(c,e,f)},function(){return ao(c)},function(){return bo(c)},b);c.g.init();C(d)})};
562
- function co(a){a.g.init();a.m=new yf;for(var b=r(xn),c=b.next();!c.done;c=b.next())a.m.o(a.i,c.value,function(f){a.g.qa()||(f=Qa(f),a.j.dispatchEvent(f))});for(var d in Ra)a.m.o(a.h,Ra[d],function(f){a.g.qa()||a.A.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.wc=e,Object.defineProperty(a.l,b.wc,{configurable:!1,enumerable:!0,get:function(f){return function(){return eo(a,f.wc)}}(b),set:function(f){return function(g){var h=f.wc;a.g.qa()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={wc:b.wc};a.B={};fo(a,
563
+ function co(a){a.g.init();a.m=new yf;for(var b=r(xn),c=b.next();!c.done;c=b.next())a.m.o(a.i,c.value,function(f){a.g.ra()||(f=Qa(f),a.j.dispatchEvent(f))});for(var d in Ra)a.m.o(a.h,Ra[d],function(f){a.g.ra()||a.A.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.wc=e,Object.defineProperty(a.l,b.wc,{configurable:!1,enumerable:!0,get:function(f){return function(){return eo(a,f.wc)}}(b),set:function(f){return function(g){var h=f.wc;a.g.ra()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={wc:b.wc};a.B={};fo(a,
563
564
  function(f){Object.defineProperty(a.B,f,{configurable:!1,enumerable:!0,get:function(){return go(a,f)}})});ho(a);a.j=new db;a.j.wd=a.l;a.A=new db;a.A.wd=a.B}function ho(a){var b=new Map;fo(a,function(c,d){b.has(d)?(d=b.get(d),c.length<d.length?a.C.set(c,d):a.C.set(d,c)):b.set(d,c)})}
564
565
  function fo(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=r(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)}}
565
566
  function bo(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.fe(),startTime:null};a.i.pause();for(var c=r(zn),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=r(En);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=r(Fn);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 Yn(a){var b=new N("caststatuschanged");a.dispatchEvent(b)}
566
567
  function Zn(a){var b=new N(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
567
568
  function ao(a){for(var b=r(En),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")();c=a.g.get("video","ended");b=Promise.resolve();var f=a.i.autoplay;d=null;c||(d=a.g.get("video","currentTime"));e&&(a.i.autoplay=!1,b=a.h.load(e,d));var g={};c=r(zn);for(d=c.next();!d.done;d=c.next())d=d.value,g[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var h=r(zn),k=h.next();!k.done;k=h.next())k=k.value,a.i[k]=g[k];h=r(Fn);for(k=
568
569
  h.next();!k.done;k=h.next()){var l=k.value;k=l[1];l=a.g.get("player",l[0])();a.h[k](l)}a.i.autoplay=f;e&&a.i.play()}},function(h){h=(new Map).set("detail",h);h=new N("error",h);a.h.dispatchEvent(h)})}
569
- function eo(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.qa()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.qa()?a.g.get("video",b):(b=a.i[b],"function"==typeof b&&(b=b.bind(a.i)),b)}
570
+ function eo(a,b){if("addEventListener"==b)return function(d,e,f){return a.j.addEventListener(d,e,f)};if("removeEventListener"==b)return function(d,e,f){return a.j.removeEventListener(d,e,f)};if(a.g.ra()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.ra()?a.g.get("video",b):(b=a.i[b],"function"==typeof b&&(b=b.bind(a.i)),b)}
570
571
  function go(a,b){a.C.has(b)&&(b=a.C.get(b));if("addEventListener"==b)return function(c,d,e){return a.A.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.A.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.Ic()};if("getDrmEngine"==b)return function(){return a.h.m};if("getAdManager"==b)return function(){return a.h.nd()};
571
- if("setVideoContainer"==b)return function(c){return a.h.Oe(c)};if(a.g.qa()){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.qa()&&0==Object.keys(a.g.g.video).length&&(Bn[b]||Cn[b])||!a.g.qa()?a.h[b].bind(a.h):a.g.get("player",b)}
572
- function $n(a,b,c){a.g.qa()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.A.dispatchEvent(c))}M("shaka.cast.CastProxy",Xn);Xn.prototype.changeReceiverId=Xn.prototype.nf;Xn.prototype.forceDisconnect=Xn.prototype.ac;Xn.prototype.suggestDisconnect=Xn.prototype.Rf;Xn.prototype.setAppData=Xn.prototype.Ge;Xn.prototype.cast=Xn.prototype.cast;Xn.prototype.receiverName=Xn.prototype.Gd;Xn.prototype.isCasting=Xn.prototype.qa;Xn.prototype.canCast=Xn.prototype.jf;Xn.prototype.getPlayer=Xn.prototype.dc;
573
- Xn.prototype.getVideo=Xn.prototype.Bb;Xn.prototype.destroy=Xn.prototype.destroy;function io(a,b,c,d){db.call(this);var e=this;this.g=a;this.h=b;this.j=new yf;this.J={video:a,player:b};this.G=c||function(){};this.K=d||function(f){return f};this.i=null;this.H=!1;this.A=!0;this.m=0;this.F=!1;this.C=!0;this.B=this.l=null;this.I=new P(function(){jo(e)});ko(this)}u(io,db);q=io.prototype;q.isConnected=function(){return this.H};q.Tg=function(){return this.A};q.sh=function(a){this.i=a};q.hg=function(){this.i=null};
574
- q.uh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};q.rh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};q.qh=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
572
+ if("setVideoContainer"==b)return function(c){return a.h.Oe(c)};if(a.g.ra()){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.ra()&&0==Object.keys(a.g.g.video).length&&(Bn[b]||Cn[b])||!a.g.ra()?a.h[b].bind(a.h):a.g.get("player",b)}
573
+ function $n(a,b,c){a.g.ra()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.A.dispatchEvent(c))}M("shaka.cast.CastProxy",Xn);Xn.prototype.changeReceiverId=Xn.prototype.nf;Xn.prototype.forceDisconnect=Xn.prototype.ac;Xn.prototype.suggestDisconnect=Xn.prototype.Sf;Xn.prototype.setAppData=Xn.prototype.Ge;Xn.prototype.cast=Xn.prototype.cast;Xn.prototype.receiverName=Xn.prototype.Gd;Xn.prototype.isCasting=Xn.prototype.ra;Xn.prototype.canCast=Xn.prototype.jf;Xn.prototype.getPlayer=Xn.prototype.dc;
574
+ Xn.prototype.getVideo=Xn.prototype.Bb;Xn.prototype.destroy=Xn.prototype.destroy;function io(a,b,c,d){db.call(this);var e=this;this.g=a;this.h=b;this.j=new yf;this.J={video:a,player:b};this.G=c||function(){};this.K=d||function(f){return f};this.i=null;this.H=!1;this.A=!0;this.m=0;this.F=!1;this.C=!0;this.B=this.l=null;this.I=new P(function(){jo(e)});ko(this)}u(io,db);q=io.prototype;q.isConnected=function(){return this.H};q.Ug=function(){return this.A};q.vh=function(a){this.i=a};q.ig=function(){this.i=null};
575
+ q.wh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};q.uh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};q.sh=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
575
576
  q.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.I&&(a.I.stop(),a.I=null),a.g=null,a.J=null,a.G=null,a.H=!1,a.A=!0,a.l=null,a.B=null,db.prototype.release.call(a),A(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();C(d)})};
576
577
  function ko(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return lo(a)};b.onSenderDisconnected=function(){return lo(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&mo(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);mo(a,{type:"event",targetName:"video",event:{type:"volumechange"}},a.l)};a.B=b.getCastMessageBus("urn:x-cast:com.google.cast.media");a.B.onMessage=function(e){return no(a,
577
578
  e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return oo(a,e)};b.start();b=r(xn);for(var c=b.next();!c.done;c=b.next())a.j.o(a.g,c.value,function(e){return po(a,"video",e)});for(var d in Ra)a.j.o(a.h,Ra[d],function(e){return po(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.h.Je(3840,2160):a.h.Je(1920,1080);a.j.o(a.g,"loadeddata",function(){a.F=!0});a.j.o(a.h,"loading",function(){a.A=
@@ -586,8 +587,8 @@ function oo(a,b){var c=vn(b.data);switch(c.type){case "init":a.m=0;a.F=!1;a.C=!0
586
587
  function no(a,b){var c=vn(b.data);switch(c.type){case "PLAY":a.g.play();to(a);break;case "PAUSE":a.g.pause();to(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(),to(a)):d&&"PLAYBACK_PAUSE"==d&&(a.g.pause(),to(a));break;case "STOP":a.h.We().then(function(){a.h&&to(a)});break;case "GET_STATUS":wo(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));
587
588
  null!=d&&(a.g.muted=d);e==a.g.volume&&f==a.g.muted||to(a);break;case "LOAD":a.m=0;a.F=!1;a.C=!1;b=c.media;d=c.currentTime;e=a.K(b.contentId);f=c.autoplay||!0;a.G(b.customData);f&&(a.g.autoplay=!0);a.h.load(e,d).then(function(){a.h&&wo(a)}).catch(function(g){var h="LOAD_FAILED";7==g.category&&7E3==g.code&&(h="LOAD_CANCELLED");mo(a,{requestId:Number(c.requestId),type:h},a.B)});break;default:mo(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.B)}}
588
589
  function xo(a,b,c,d){a.h&&mo(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function mo(a,b,c,d){a.H&&(a=un(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function to(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.A?yo:a.h.Pc()?zo:a.g.paused?Ao:Bo,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);mo(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.B)}
589
- M("shaka.cast.CastReceiver",io);io.prototype.destroy=io.prototype.destroy;io.prototype.setContentArtist=io.prototype.qh;io.prototype.setContentImage=io.prototype.rh;io.prototype.setContentTitle=io.prototype.uh;io.prototype.clearContentMetadata=io.prototype.hg;io.prototype.setContentMetadata=io.prototype.sh;io.prototype.isIdle=io.prototype.Tg;io.prototype.isConnected=io.prototype.isConnected;var vo=.5,ro=5,yo="IDLE",Bo="PLAYING",zo="BUFFERING",Ao="PAUSED";function Co(a,b,c){var d=Do(a),e=null;a=[];var f=[],g=new Set(d.map(function(h){return h.keyId}));g.delete(null);if(1<g.size)throw new O(2,4,4010);b||(f=d.filter(function(h){return"urn:mpeg:dash:mp4protection:2011"==h.Ce?(e=h.init||e,!1):!0}),f.length&&(a=Eo(e,f,c,g),0==a.length&&(a=[Bb("",e)])));if(d.length&&(b||!f.length))for(a=[],b=r(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Bb(c,e));if(g=Array.from(g)[0]||null)for(b=r(a),c=b.next();!c.done;c=b.next())for(c=
590
- r(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=g;return{rf:g,aj:e,drmInfos:a,wf:!0}}function Fo(a,b,c,d){var e=Co(a,c,d);if(b.wf){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.wf=!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 O(2,4,4008);return e.rf||b.rf}
590
+ M("shaka.cast.CastReceiver",io);io.prototype.destroy=io.prototype.destroy;io.prototype.setContentArtist=io.prototype.sh;io.prototype.setContentImage=io.prototype.uh;io.prototype.setContentTitle=io.prototype.wh;io.prototype.clearContentMetadata=io.prototype.ig;io.prototype.setContentMetadata=io.prototype.vh;io.prototype.isIdle=io.prototype.Ug;io.prototype.isConnected=io.prototype.isConnected;var vo=.5,ro=5,yo="IDLE",Bo="PLAYING",zo="BUFFERING",Ao="PAUSED";function Co(a,b,c){var d=Do(a),e=null;a=[];var f=[],g=new Set(d.map(function(h){return h.keyId}));g.delete(null);if(1<g.size)throw new O(2,4,4010);b||(f=d.filter(function(h){return"urn:mpeg:dash:mp4protection:2011"==h.Ce?(e=h.init||e,!1):!0}),f.length&&(a=Eo(e,f,c,g),0==a.length&&(a=[Bb("",e)])));if(d.length&&(b||!f.length))for(a=[],b=r(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Bb(c,e));if(g=Array.from(g)[0]||null)for(b=r(a),c=b.next();!c.done;c=b.next())for(c=
591
+ r(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=g;return{rf:g,cj:e,drmInfos:a,wf:!0}}function Fo(a,b,c,d){var e=Co(a,c,d);if(b.wf){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.wf=!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 O(2,4,4008);return e.rf||b.rf}
591
592
  function Go(a){var b=0,c=Fc(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=Cc(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}
592
593
  function Ho(a){a=r(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next()){b=r(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""}function Io(a){a=Wf(a.node,"urn:microsoft:playready","pro");if(!a)return"";a=kd(a.textContent);a=Go(a).filter(function(b){return b.type===Jo})[0];if(!a)return"";a=cd(a.value,!0);return(a=lg(a,"WRMHEADER"))?Ho(a):""}
593
594
  function Eo(a,b,c,d){var e=[];b=r(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g=c[f.Ce];if(g){var h;if(h=Wf(f.node,"urn:microsoft:playready","pro")){h=kd(h.textContent);var k=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);h=[{initData:Tf(h,k,new Set,0),initDataType:"cenc",keyId:f.keyId}]}else h=null;k=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===f.Ce)if(k=d,0==k.size)k=null;else{var l=new Uint8Array([16,119,239,236,192,178,77,2,172,227,60,30,82,
@@ -596,42 +597,42 @@ function Lo(a){var b=a.getAttribute("schemeIdUri"),c=Zf(a,"urn:mpeg:cenc:2013","
596
597
  var Jo=1,Ko=(new Map).set("com.widevine.alpha",function(a){return(a=Wf(a.node,"urn:microsoft","laurl"))?a.getAttribute("licenseUrl")||"":""}).set("com.microsoft.playready",Io).set("com.microsoft.playready.recommendation",Io).set("com.microsoft.playready.software",Io).set("com.microsoft.playready.hardware",Io).set("org.w3.clearkey",function(a){return(a=Wf(a.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===a.getAttribute("Lic_type")&&a.textContent?a.textContent:""});function Mo(a,b,c,d,e){var f={RepresentationID:b,Number:c,Bandwidth:d,Time:e};return a.replace(/\$(RepresentationID|Number|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,function(g,h,k,l){if("$$"==g)return"$";var m=f[h];if(null==m)return g;"RepresentationID"==h&&k&&(k=void 0);"Time"==h&&(m=Math.round(m));switch(l){case void 0:case "d":case "i":case "u":g=m.toString();break;case "o":g=m.toString(8);break;case "x":g=m.toString(16);break;case "X":g=m.toString(16).toUpperCase();break;default:g=m.toString()}k=
597
598
  window.parseInt(k,10)||1;return Array(Math.max(0,k-g.length)+1).join("0")+g})}
598
599
  function No(a,b){var c=Oo(a,b,"timescale"),d=1;c&&(d=hg(c)||1);var e=Oo(a,b,"duration");c=hg(e||"");"image"==a.M.contentType&&(c=jg(e||""));c&&(c/=d);var f=Oo(a,b,"startNumber");e=Number(Oo(a,b,"presentationTimeOffset"))||0;var g=ig(f||"");if(null==f||null==g)g=1;f=Po(a,b,"SegmentTimeline");b=null;if(f){b=d;a=a.Y.duration||Infinity;f=Vf(f,"S");for(var h=[],k=-e,l=0;l<f.length;++l){var m=f[l],p=f[l+1],n=cg(m,"t",ig),t=cg(m,"d",ig);m=cg(m,"r",gg);null!=n&&(n-=e);if(!t)break;n=null!=n?n:k;m=m||0;if(0>
599
- m)if(p){p=cg(p,"t",ig);if(null==p)break;else if(n>=p)break;m=Math.ceil((p-n)/t)-1}else{if(Infinity==a)break;else if(n/b>=a)break;m=Math.ceil((a*b-n)/t)-1}0<h.length&&n!=k&&(h[h.length-1].end=n/b);for(p=0;p<=m;++p)k=n+t,h.push({start:n/b,end:k/b,Ah:n}),n=k}b=h}return{timescale:d,za:c,rc:g,rb:e/d||0,Xe:e,timeline:b}}function Oo(a,b,c){return[b(a.M),b(a.wa),b(a.ra)].filter(zb).map(function(d){return d.getAttribute(c)}).reduce(function(d,e){return d||e})}
600
- function Po(a,b,c){return[b(a.M),b(a.wa),b(a.ra)].filter(zb).map(function(d){return Uf(d,c)}).reduce(function(d,e){return d||e})}
601
- function Qo(a,b,c,d,e,f){for(var g=Zf(a,"http://www.w3.org/1999/xlink","href"),h=Zf(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=r(Array.from(a.attributes)),l=k.next();!l.done;l=k.next())l=l.value,"http://www.w3.org/1999/xlink"==l.namespaceURI&&a.removeAttributeNS(l.namespaceURI,l.localName);if(5<=f)return af(new O(2,4,4028));if("onLoad"!=h)return af(new O(2,4,4027));var m=Ab([d],[g]);return e.request(0,pf(m,b)).na(function(p){p=ng(p.data,a.tagName);if(!p)return af(new O(2,4,4001,g));
600
+ m)if(p){p=cg(p,"t",ig);if(null==p)break;else if(n>=p)break;m=Math.ceil((p-n)/t)-1}else{if(Infinity==a)break;else if(n/b>=a)break;m=Math.ceil((a*b-n)/t)-1}0<h.length&&n!=k&&(h[h.length-1].end=n/b);for(p=0;p<=m;++p)k=n+t,h.push({start:n/b,end:k/b,Ch:n}),n=k}b=h}return{timescale:d,za:c,rc:g,rb:e/d||0,Xe:e,timeline:b}}function Oo(a,b,c){return[b(a.M),b(a.wa),b(a.sa)].filter(zb).map(function(d){return d.getAttribute(c)}).reduce(function(d,e){return d||e})}
601
+ function Po(a,b,c){return[b(a.M),b(a.wa),b(a.sa)].filter(zb).map(function(d){return Uf(d,c)}).reduce(function(d,e){return d||e})}
602
+ function Qo(a,b,c,d,e,f){for(var g=Zf(a,"http://www.w3.org/1999/xlink","href"),h=Zf(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=r(Array.from(a.attributes)),l=k.next();!l.done;l=k.next())l=l.value,"http://www.w3.org/1999/xlink"==l.namespaceURI&&a.removeAttributeNS(l.namespaceURI,l.localName);if(5<=f)return af(new O(2,4,4028));if("onLoad"!=h)return af(new O(2,4,4027));var m=Ab([d],[g]);return e.request(0,pf(m,b)).oa(function(p){p=ng(p.data,a.tagName);if(!p)return af(new O(2,4,4001,g));
602
603
  for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;p.childNodes.length;){var n=p.childNodes[0];p.removeChild(n);a.appendChild(n)}p=r(Array.from(p.attributes));for(n=p.next();!n.done;n=p.next())a.setAttributeNode(n.value.cloneNode(!1));return Ro(a,b,c,m[0],e,f+1)})}
603
- function Ro(a,b,c,d,e,f){f=void 0===f?0:f;if(Zf(a,"http://www.w3.org/1999/xlink","href")){var g=Qo(a,b,c,d,e,f);c&&(g=g.na(void 0,function(){return Ro(a,b,c,d,e,f)}));return g}g=[];for(var h=r(Array.from(a.childNodes)),k=h.next();!k.done;k=h.next())k=k.value,k instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==Zf(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(Ro(k,b,c,d,e,f)));return ef(g).na(function(){return a})};function So(a,b,c,d,e,f,g){var h,k=(new Jf).X("sidx",function(l){h=To(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new O(2,3,3004);}
604
+ function Ro(a,b,c,d,e,f){f=void 0===f?0:f;if(Zf(a,"http://www.w3.org/1999/xlink","href")){var g=Qo(a,b,c,d,e,f);c&&(g=g.oa(void 0,function(){return Ro(a,b,c,d,e,f)}));return g}g=[];for(var h=r(Array.from(a.childNodes)),k=h.next();!k.done;k=h.next())k=k.value,k instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==Zf(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(Ro(k,b,c,d,e,f)));return ef(g).oa(function(){return a})};function So(a,b,c,d,e,f,g){var h,k=(new Jf).X("sidx",function(l){h=To(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new O(2,3,3004);}
604
605
  function To(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.R();if(0==k)throw new O(2,3,3005);if(0==g.version){var l=g.reader.R();var m=g.reader.R()}else l=g.reader.qc(),m=g.reader.qc();g.reader.skip(2);var p=g.reader.xe();a=a+g.size+m;for(m=0;m<p;m++){var n=g.reader.R(),t=(n&2147483648)>>>31;n&=2147483647;var y=g.reader.R();g.reader.skip(4);if(1==t)throw new O(2,3,3006);h.push(new wi(l/k+c,(l+y)/k+c,function(){return f},a,a+n-1,b,c,d,e));l+=y;a+=n}g.parser.stop();return h};function Uo(a){this.h=Fc(a);this.g=new Gf(this.h,0)}Uo.prototype.Ea=function(){return this.g.Ea()};
605
- function Vo(a){var b=Wo(a);if(7<b.length)throw new O(2,3,3002);var c=0;b=r(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=Wo(a);a:{d=r(Xo);for(var e=d.next();!e.done;e=d.next())if(Ac(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 O(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=Fc(a.h,a.g.oa(),b);a.g.skip(b);return new Yo(c,
606
- d)}function Wo(a){var b=a.g.oa(),c=a.g.qb();if(0==c)throw new O(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Cc(a.h,b,c)}var Xo=[[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 Yo(a,b){this.id=a;this.g=b}
607
- function Zo(a){if(8<a.g.byteLength)throw new O(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new O(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 $o(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new Uo(a.g);for(var p=null,n=null;a.Ea();){var t=Vo(a);if(187==t.id){var y=ap(t);y&&(t=c*y.Bh,y=b+y.ih,null!=p&&m.push(new wi(p+g,t+g,l,n,y-1,f,g,h,k)),p=t,n=y)}}null!=p&&m.push(new wi(p+g,d+g,l,n,null,f,g,h,k));return m}
608
- function ap(a){var b=new Uo(a.g);a=Vo(b);if(179!=a.id)throw new O(2,3,3013);a=Zo(a);b=Vo(b);if(183!=b.id)throw new O(2,3,3012);b=new Uo(b.g);for(var c=0;b.Ea();){var d=Vo(b);if(241==d.id){c=Zo(d);break}}return{Bh:a,ih:c}};function bp(a,b){b=Po(a,b,"Initialization");if(!b)return null;var c=a.M.Pa,d=b.getAttribute("sourceURL");d&&(c=Ab(a.M.Pa,[d]));d=0;var e=null;if(b=cg(b,"range",fg))d=b.start,e=b.end;return new ui(function(){return c},d,e,cp(a))}
606
+ function Vo(a){var b=Wo(a);if(7<b.length)throw new O(2,3,3002);var c=0;b=r(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=Wo(a);a:{d=r(Xo);for(var e=d.next();!e.done;e=d.next())if(Ac(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.qa();else{if(8==b.length&&b[1]&224)throw new O(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.qa()+b<=a.h.byteLength?b:a.h.byteLength-a.g.qa();d=Fc(a.h,a.g.qa(),b);a.g.skip(b);return new Yo(c,
607
+ d)}function Wo(a){var b=a.g.qa(),c=a.g.qb();if(0==c)throw new O(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Cc(a.h,b,c)}var Xo=[[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 Yo(a,b){this.id=a;this.g=b}
608
+ function Zo(a){if(8<a.g.byteLength)throw new O(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new O(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 $o(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new Uo(a.g);for(var p=null,n=null;a.Ea();){var t=Vo(a);if(187==t.id){var y=ap(t);y&&(t=c*y.Dh,y=b+y.kh,null!=p&&m.push(new wi(p+g,t+g,l,n,y-1,f,g,h,k)),p=t,n=y)}}null!=p&&m.push(new wi(p+g,d+g,l,n,null,f,g,h,k));return m}
609
+ function ap(a){var b=new Uo(a.g);a=Vo(b);if(179!=a.id)throw new O(2,3,3013);a=Zo(a);b=Vo(b);if(183!=b.id)throw new O(2,3,3012);b=new Uo(b.g);for(var c=0;b.Ea();){var d=Vo(b);if(241==d.id){c=Zo(d);break}}return{Dh:a,kh:c}};function bp(a,b){b=Po(a,b,"Initialization");if(!b)return null;var c=a.M.Pa,d=b.getAttribute("sourceURL");d&&(c=Ab(a.M.Pa,[d]));d=0;var e=null;if(b=cg(b,"range",fg))d=b.start,e=b.end;return new ui(function(){return c},d,e,cp(a))}
609
610
  function dp(a,b){var c=Number(Oo(a,ep,"presentationTimeOffset"))||0,d=Oo(a,ep,"timescale"),e=1;d&&(e=hg(d)||1);var f=c/e||0,g=bp(a,ep);fp(a,g);var h=hf(a);return{bc:function(){var k=Po(h,ep,"RepresentationIndex"),l=h.M.Pa;k&&(k=k.getAttribute("sourceURL"))&&(l=Ab(h.M.Pa,[k]));k=gp(h);return jp(h,b,g,l,k.start,k.end,f)}}}
610
611
  function jp(a,b,c,d,e,f,g){var h,k,l,m,p,n,t,y,x,v,w,D,z,B,G;return K(function(E){if(1==E.g)return h=a.presentationTimeline,k=!a.xb||!a.Y.ge,l=a.Y.start,m=a.Y.duration,p=a.M.mimeType.split("/")[1],n=b,t=null,y=[n(d,e,f),"webm"==p?n(c.Ra(),c.Va,c.Da):null],n=null,A(E,Promise.all(y),2);x=E.h;v=x[0];w=x[1]||null;D=null;z=l-g;B=l;G=m?l+m:Infinity;if("mp4"==p)var H=So(v,e,d,c,z,B,G);else{H=new Uo(w);if(440786851!=Vo(H).id)throw new O(2,3,3008);var I=Vo(H);if(408125543!=I.id)throw new O(2,3,3009);H=I.g.byteOffset;
611
612
  I=new Uo(I.g);for(var L=null;I.Ea();){var Q=Vo(I);if(357149030==Q.id){L=Q;break}}if(!L)throw new O(2,3,3010);L=new Uo(L.g);Q=1E6;for(I=null;L.Ea();){var V=Vo(L);if(2807729==V.id)Q=Zo(V);else if(17545==V.id)if(4==V.g.byteLength)I=V.g.getFloat32(0);else if(8==V.g.byteLength)I=V.g.getFloat64(0);else throw new O(2,3,3003);}if(null==I)throw new O(2,3,3011);L=Q/1E9;I*=L;Q=Vo(new Uo(v));if(475249515!=Q.id)throw new O(2,3,3007);H=$o(Q,H,L,I,d,c,z,B,G)}D=H;h.mc(D);t=new Bj(D);k&&t.yb(B,G,!0);return E.return(t)})}
612
613
  function ep(a){return a.Xc}function gp(a){var b=Po(a,ep,"RepresentationIndex");a=Oo(a,ep,"indexRange");a=fg(a||"");b&&(a=cg(b,"range",fg,a));return a}function fp(a,b){kp(a,b);if(!gp(a))throw new O(2,4,4002);}function kp(a,b){var c=a.M.mimeType.split("/")[1];if(a.M.contentType!=Gb&&"mp4"!=c&&"webm"!=c)throw new O(2,4,4006);if("webm"==c&&!b)throw new O(2,4,4005);}
613
- function cp(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.xd,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function lp(a,b){var c=bp(a,mp),d=np(a);if(!d.za&&!d.timeline&&1<d.kc.length)throw new O(2,4,4002);if(!d.za&&!a.Y.duration&&!d.timeline&&1==d.kc.length)throw new O(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new O(2,4,4002);var e=null,f=null;a.ra.id&&a.M.id&&(f=b[a.ra.id+","+a.M.id])&&(e=f.segmentIndex);var g=op(a.Y.start,a.Y.duration,a.M.Pa,d,c);b=!e;e?e.lc(g,a.presentationTimeline.ob()):e=new Bj(g);a.presentationTimeline.mc(g);a.xb&&a.Y.ge||e.yb(a.Y.start,a.Y.duration?a.Y.start+a.Y.duration:
614
+ function cp(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.xd,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function lp(a,b){var c=bp(a,mp),d=np(a);if(!d.za&&!d.timeline&&1<d.kc.length)throw new O(2,4,4002);if(!d.za&&!a.Y.duration&&!d.timeline&&1==d.kc.length)throw new O(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new O(2,4,4002);var e=null,f=null;a.sa.id&&a.M.id&&(f=b[a.sa.id+","+a.M.id])&&(e=f.segmentIndex);var g=op(a.Y.start,a.Y.duration,a.M.Pa,d,c);b=!e;e?e.lc(g,a.presentationTimeline.ob()):e=new Bj(g);a.presentationTimeline.mc(g);a.xb&&a.Y.ge||e.yb(a.Y.start,a.Y.duration?a.Y.start+a.Y.duration:
614
615
  Infinity,b);f&&(f.segmentIndex=e);return{bc:function(){e&&0!=e.L.length||e.Sc(g);return Promise.resolve(e)}}}function mp(a){return a.Db}function np(a){var b=pp(a);a=No(a,mp);var c=a.rc;0==c&&(c=1);var d=0;a.za?d=a.za*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{za:a.za,startTime:d,rc:c,rb:a.rb,timeline:a.timeline,kc:b}}
615
- function op(a,b,c,d,e){var f=d.kc.length;d.timeline&&d.timeline.length!=d.kc.length&&(f=Math.min(d.timeline.length,d.kc.length));for(var g=a-d.rb,h=b?a+b:Infinity,k=[],l=d.startTime,m={},p=0;p<f;m={Sd:m.Sd},p++){var n=d.kc[p];m.Sd=Ab(c,[n.Zg]);var t=void 0;t=null!=d.za?l+d.za:d.timeline?d.timeline[p].end:l+b;k.push(new wi(a+l,a+t,function(y){return function(){return y.Sd}}(m),n.start,n.end,e,g,a,h));l=t}return k}
616
- function pp(a){return[a.M.Db,a.wa.Db,a.ra.Db].filter(zb).map(function(b){return Vf(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.Ef&&(a.Ef=!0);var c=b.getAttribute("media");b=cg(b,"mediaRange",fg,{start:0,end:null});return{Zg:c,start:b.start,end:b.end}})};function qp(a,b,c,d,e,f){var g=rp(a),h=sp(a);tp(h);var k=hf(a);if(h.Oc)return kp(a,g),{bc:function(){var t=Mo(h.Oc,k.M.id,null,k.bandwidth||null,null);t=Ab(k.M.Pa,[t]);return jp(k,b,g,t,0,null,h.rb)}};if(h.za)return d||"image"===a.wa.contentType||(a.presentationTimeline.re(h.za),a.presentationTimeline.se(a.Y.start)),{bc:function(){return up(k,h,e,g,f)}};var l=null;d=d=null;a.ra.id&&a.M.id&&(d=a.ra.id+","+a.M.id,d=c[d])&&(l=d.segmentIndex);var m=vp(k,h,g);c=a.Y.start;var p=a.Y.duration?a.Y.start+a.Y.duration:
616
+ function op(a,b,c,d,e){var f=d.kc.length;d.timeline&&d.timeline.length!=d.kc.length&&(f=Math.min(d.timeline.length,d.kc.length));for(var g=a-d.rb,h=b?a+b:Infinity,k=[],l=d.startTime,m={},p=0;p<f;m={Sd:m.Sd},p++){var n=d.kc[p];m.Sd=Ab(c,[n.ah]);var t=void 0;t=null!=d.za?l+d.za:d.timeline?d.timeline[p].end:l+b;k.push(new wi(a+l,a+t,function(y){return function(){return y.Sd}}(m),n.start,n.end,e,g,a,h));l=t}return k}
617
+ function pp(a){return[a.M.Db,a.wa.Db,a.sa.Db].filter(zb).map(function(b){return Vf(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.Ef&&(a.Ef=!0);var c=b.getAttribute("media");b=cg(b,"mediaRange",fg,{start:0,end:null});return{ah:c,start:b.start,end:b.end}})};function qp(a,b,c,d,e,f){var g=rp(a),h=sp(a);tp(h);var k=hf(a);if(h.Oc)return kp(a,g),{bc:function(){var t=Mo(h.Oc,k.M.id,null,k.bandwidth||null,null);t=Ab(k.M.Pa,[t]);return jp(k,b,g,t,0,null,h.rb)}};if(h.za)return d||"image"===a.wa.contentType||(a.presentationTimeline.re(h.za),a.presentationTimeline.se(a.Y.start)),{bc:function(){return up(k,h,e,g,f)}};var l=null;d=d=null;a.sa.id&&a.M.id&&(d=a.sa.id+","+a.M.id,d=c[d])&&(l=d.segmentIndex);var m=vp(k,h,g);c=a.Y.start;var p=a.Y.duration?a.Y.start+a.Y.duration:
617
618
  Infinity,n=!(a.xb&&a.Y.ge);l?(n&&(new Bj(m)).yb(c,p,!0),l.lc(m,a.presentationTimeline.ob())):l=new Bj(m);a.presentationTimeline.mc(m);n&&l.yb(c,p);d&&a.xb&&(d.segmentIndex=l);return{bc:function(){l&&0!=l.L.length||l.Sc(m);return Promise.resolve(l)}}}function wp(a){return a.Yc}function sp(a){var b=No(a,wp),c=Oo(a,wp,"media");a=Oo(a,wp,"index");return{za:b.za,timescale:b.timescale,rc:b.rc,rb:b.rb,Xe:b.Xe,timeline:b.timeline,pe:c,Oc:a}}
618
619
  function tp(a){var b=a.Oc?1:0;b+=a.timeline?1:0;b+=a.za?1:0;if(0==b)throw new O(2,4,4002);1!=b&&(a.Oc&&(a.timeline=null),a.za=null);if(!a.Oc&&!a.pe)throw new O(2,4,4002);}
619
- function up(a,b,c,d,e){function f(L){var Q=(L-t)*n,V=Q+b.rb,aa=Q+l;Q=aa+n;var ea=Math.min(Q,h());aa=new wi(aa,ea,function(){var la=Mo(x,w,L,v,V*y);return Ab(D,[la])},0,null,d,z,l,h());aa.j=Q;return aa}function g(){var L=[Math.max(k.ob(),l),Math.min(k.Jb(),h())].map(function(Q){return Q-l});return[Math.ceil(L[0]/n),Math.ceil(L[1]/n)-1].map(function(Q){return Q+t})}function h(){var L=null!=m&&e[m]||p;return L?l+L:Infinity}var k=a.presentationTimeline,l=a.Y.start,m=a.ra.id,p=a.Y.duration,n=b.za,t=b.rc,
620
+ function up(a,b,c,d,e){function f(L){var Q=(L-t)*n,V=Q+b.rb,aa=Q+l;Q=aa+n;var ea=Math.min(Q,h());aa=new wi(aa,ea,function(){var la=Mo(x,w,L,v,V*y);return Ab(D,[la])},0,null,d,z,l,h());aa.j=Q;return aa}function g(){var L=[Math.max(k.ob(),l),Math.min(k.Jb(),h())].map(function(Q){return Q-l});return[Math.ceil(L[0]/n),Math.ceil(L[1]/n)-1].map(function(Q){return Q+t})}function h(){var L=null!=m&&e[m]||p;return L?l+L:Infinity}var k=a.presentationTimeline,l=a.Y.start,m=a.sa.id,p=a.Y.duration,n=b.za,t=b.rc,
620
621
  y=b.timescale,x=b.pe,v=a.bandwidth||null,w=a.M.id,D=a.M.Pa,z=l-b.rb,B=g();a=a.xb?Math.max(B[0],B[1]-c+1):B[0];B=B[1];c=[];for(var G=a;G<=B;++G){var E=f(G);c.push(E)}var H=new Bj(c);c=k.Jb()<h();G=k.U();if(c||G){var I=Math.max(a,B+1);H.Jd(n,function(){var L=k.ob();H.Hb(L);var Q=r(g());Q.next();Q=Q.next().value;for(var V=[];I<=Q;){var aa=f(I);V.push(aa);I++}return L>h()&&!V.length?null:V})}return Promise.resolve(H)}
621
- function vp(a,b,c){var d=a.Y.start,e=a.Y.duration,f=d-b.rb;e=e?d+e:Infinity;for(var g=[],h={},k=0;k<b.timeline.length;h={Rd:h.Rd,Vd:h.Vd,Yd:h.Yd,Od:h.Od,$d:h.$d,Pd:h.Pd},k++){var l=b.timeline[k],m=l.start,p=l.Ah;l=l.end;h.Yd=k+b.rc;h.$d=p+b.Xe;h.Vd=a.M.id;h.Od=a.bandwidth||null;h.Rd=b.pe;h.Pd=a.M.Pa;g.push(new wi(d+m,d+l,function(n){return function(){var t=Mo(n.Rd,n.Vd,n.Yd,n.Od||null,n.$d);return Ab(n.Pd,[t]).map(function(y){return y.toString()})}}(h),0,null,c,f,d,e))}return g}
622
+ function vp(a,b,c){var d=a.Y.start,e=a.Y.duration,f=d-b.rb;e=e?d+e:Infinity;for(var g=[],h={},k=0;k<b.timeline.length;h={Rd:h.Rd,Vd:h.Vd,Yd:h.Yd,Od:h.Od,$d:h.$d,Pd:h.Pd},k++){var l=b.timeline[k],m=l.start,p=l.Ch;l=l.end;h.Yd=k+b.rc;h.$d=p+b.Xe;h.Vd=a.M.id;h.Od=a.bandwidth||null;h.Rd=b.pe;h.Pd=a.M.Pa;g.push(new wi(d+m,d+l,function(n){return function(){var t=Mo(n.Rd,n.Vd,n.Yd,n.Od||null,n.$d);return Ab(n.Pd,[t]).map(function(y){return y.toString()})}}(h),0,null,c,f,d,e))}return g}
622
623
  function rp(a){var b=Oo(a,wp,"initialization");if(!b)return null;var c=a.M.id,d=a.bandwidth||null,e=a.M.Pa;return new ui(function(){var f=Mo(b,c,null,d,null);return Ab(e,[f])},0,null,cp(a))};function xp(){this.l=[];this.g=[];this.h=[];this.j=[];this.i=[];this.m=new Set}xp.prototype.release=function(){for(var a=r(this.g.concat(this.h,this.j,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.g=[];this.h=[];this.j=[];this.i=[];this.l=[]};
623
624
  function yp(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,y,x,v,w,D,z,B,G,E,H,I,L,Q,V,aa,ea,la,Ca,Ia;return K(function(Ja){switch(Ja.g){case 1:d=Hb;zp(b);Ap(b);Bp(b);Cp(b);if(!c&&1==b.length){e=b[0];a.g=e.jd;a.h=e.Ld;a.j=e.textStreams;a.i=e.imageStreams;Ja.D(2);break}f=-1;for(g=0;g<b.length;g++)h=b[g],a.m.has(h.id)||(a.m.add(h.id),-1==f&&(f=g));if(-1==f)return Ja.return();k=b.map(function(Na){return Na.jd});l=b.map(function(Na){return Na.Ld});m=b.map(function(Na){return Na.textStreams});p=b.map(function(Na){return Na.imageStreams});
624
- n=r(m);for(t=n.next();!t.done;t=n.next())y=t.value,y.push(Dp(d.ha));x=r(p);for(v=x.next();!v.done;v=x.next())w=v.value,w.push(Dp(d.Bc));return A(Ja,Ep(a.g,k,f,Fp,Gp),3);case 3:return A(Ja,Ep(a.h,l,f,Fp,Gp),4);case 4:return A(Ja,Ep(a.j,m,f,Fp,Gp),5);case 5:return A(Ja,Ep(a.i,p,f,Fp,Gp),2);case 2:D=0;z=[];if(a.h.length&&a.g.length)for(L=r(a.g),Q=L.next();!Q.done;Q=L.next())for(V=Q.value,aa=r(a.h),ea=aa.next();!ea.done;ea=aa.next())la=ea.value,Ca=$g(V.drmInfos,la.drmInfos),V.drmInfos.length&&la.drmInfos.length&&
625
+ n=r(m);for(t=n.next();!t.done;t=n.next())y=t.value,y.push(Dp(d.ia));x=r(p);for(v=x.next();!v.done;v=x.next())w=v.value,w.push(Dp(d.Bc));return A(Ja,Ep(a.g,k,f,Fp,Gp),3);case 3:return A(Ja,Ep(a.h,l,f,Fp,Gp),4);case 4:return A(Ja,Ep(a.j,m,f,Fp,Gp),5);case 5:return A(Ja,Ep(a.i,p,f,Fp,Gp),2);case 2:D=0;z=[];if(a.h.length&&a.g.length)for(L=r(a.g),Q=L.next();!Q.done;Q=L.next())for(V=Q.value,aa=r(a.h),ea=aa.next();!ea.done;ea=aa.next())la=ea.value,Ca=$g(V.drmInfos,la.drmInfos),V.drmInfos.length&&la.drmInfos.length&&
625
626
  !Ca.length||(Ia=D++,z.push({id:Ia,language:V.language,primary:V.primary,audio:V,video:la,bandwidth:(V.bandwidth||0)+(la.bandwidth||0),drmInfos:Ca,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(B=a.h.concat(a.g),G=r(B),E=G.next();!E.done;E=G.next())H=E.value,I=D++,z.push({id:I,language:H.language,primary:H.primary,audio:H.type==d.Gb?H:null,video:H.type==d.La?H:null,bandwidth:H.bandwidth||0,drmInfos:H.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});
626
627
  a.l=z;C(Ja)}})}function zp(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.jd),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.channelsCount==h.channelsCount&&e.language==h.language&&e.bandwidth==h.bandwidth&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&cc(e.roles,h.roles)&&e.audioSamplingRate==h.audioSamplingRate&&e.primary==h.primary&&(f=!0);f||c.push(e)}b.jd=c}}
627
628
  function Bp(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.textStreams),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.language==h.language&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.bandwidth==h.bandwidth&&cc(e.roles,h.roles)&&(f=!0);f||c.push(e)}b.textStreams=c}}
628
629
  function Ap(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.Ld),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.width==h.width&&e.frameRate==h.frameRate&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.label==h.label&&cc(e.roles,h.roles)&&Ff(e.closedCaptions,h.closedCaptions)&&e.bandwidth==h.bandwidth&&(f=!0);f||c.push(e)}b.Ld=c}}
629
630
  function Cp(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.imageStreams),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.width==h.width&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&(f=!0);f||c.push(e)}b.imageStreams=c}}
630
- function Hp(a){var b,c,d,e,f,g,h,k,l,m,p,n,t,y,x,v,w,D,z,B,G,E,H,I,L,Q,V;return K(function(aa){switch(aa.g){case 1:b=Hb;if(1==a.length)return aa.return(a[0]);c=a.map(function(ea){return ea.filter(function(la){return la.type==b.Gb})});d=a.map(function(ea){return ea.filter(function(la){return la.type==b.La})});e=a.map(function(ea){return ea.filter(function(la){return la.type==b.ha})});f=a.map(function(ea){return ea.filter(function(la){return la.type==b.Bc})});g=r(e);for(h=g.next();!h.done;h=g.next())k=
631
- h.value,k.push(Ip(b.ha));l=r(f);for(m=l.next();!m.done;m=l.next())p=m.value,p.push(Ip(b.Bc));return A(aa,Ep([],c,0,Jp,Kp),2);case 2:return n=aa.h,A(aa,Ep([],d,0,Jp,Kp),3);case 3:return t=aa.h,A(aa,Ep([],e,0,Jp,Kp),4);case 4:return y=aa.h,A(aa,Ep([],f,0,Jp,Kp),5);case 5:x=aa.h;v=0;if(t.length&&n.length)for(G=r(n),E=G.next();!E.done;E=G.next())for(H=E.value,I=r(t),L=I.next();!L.done;L=I.next())Q=L.value,V=v++,Q.variantIds.push(V),H.variantIds.push(V);else for(w=t.concat(n),D=r(w),z=D.next();!z.done;z=
631
+ function Hp(a){var b,c,d,e,f,g,h,k,l,m,p,n,t,y,x,v,w,D,z,B,G,E,H,I,L,Q,V;return K(function(aa){switch(aa.g){case 1:b=Hb;if(1==a.length)return aa.return(a[0]);c=a.map(function(ea){return ea.filter(function(la){return la.type==b.Gb})});d=a.map(function(ea){return ea.filter(function(la){return la.type==b.La})});e=a.map(function(ea){return ea.filter(function(la){return la.type==b.ia})});f=a.map(function(ea){return ea.filter(function(la){return la.type==b.Bc})});g=r(e);for(h=g.next();!h.done;h=g.next())k=
632
+ h.value,k.push(Ip(b.ia));l=r(f);for(m=l.next();!m.done;m=l.next())p=m.value,p.push(Ip(b.Bc));return A(aa,Ep([],c,0,Jp,Kp),2);case 2:return n=aa.h,A(aa,Ep([],d,0,Jp,Kp),3);case 3:return t=aa.h,A(aa,Ep([],e,0,Jp,Kp),4);case 4:return y=aa.h,A(aa,Ep([],f,0,Jp,Kp),5);case 5:x=aa.h;v=0;if(t.length&&n.length)for(G=r(n),E=G.next();!E.done;E=G.next())for(H=E.value,I=r(t),L=I.next();!L.done;L=I.next())Q=L.value,V=v++,Q.variantIds.push(V),H.variantIds.push(V);else for(w=t.concat(n),D=r(w),z=D.next();!z.done;z=
632
633
  D.next())B=z.value,B.variantIds=[v++];return aa.return(t.concat(n).concat(y).concat(x))}})}
633
634
  function Ep(a,b,c,d,e){var f,g,h,k,l,m,p,n,t,y,x,v,w,D,z,B,G,E,H,I,L;return K(function(Q){switch(Q.g){case 1:f=Hb;g=[];for(h=0;h<b.length;h++)h>=c?g.push(new Set(b[h])):g.push(new Set);k=r(a);l=k.next();case 2:if(l.done){Q.D(4);break}m=l.value;return A(Q,Lp(m,b,c,e,g),5);case 5:p=Q.h;if(!p)throw new O(2,4,4037);l=k.next();Q.D(2);break;case 4:n=r(g);for(t=n.next();!t.done;t=n.next())for(y=t.value,x=r(y),v=x.next();!v.done;v=x.next())w=v.value,(D=Mp(w,b,d,e,g))&&a.push(D);z=r(g);for(t=z.next();!t.done;t=
634
- z.next())for(B=t.value,G={},E=r(B),v=E.next();!v.done;G={vb:G.vb},v=E.next())if(G.vb=v.value,H=G.vb.type==f.ha&&!G.vb.language,I=G.vb.type==f.Bc&&!G.vb.tilesLayout,!H&&!I&&(L=a.some(function(V){return function(aa){return aa.mimeType==V.vb.mimeType&&wd(aa.codecs)==wd(V.vb.codecs)}}(G))))throw new O(2,4,4037);return Q.return(a)}})}
635
+ z.next())for(B=t.value,G={},E=r(B),v=E.next();!v.done;G={vb:G.vb},v=E.next())if(G.vb=v.value,H=G.vb.type==f.ia&&!G.vb.language,I=G.vb.type==f.Bc&&!G.vb.tilesLayout,!H&&!I&&(L=a.some(function(V){return function(aa){return aa.mimeType==V.vb.mimeType&&wd(aa.codecs)==wd(V.vb.codecs)}}(G))))throw new O(2,4,4037);return Q.return(a)}})}
635
636
  function Lp(a,b,c,d,e){return K(function(f){if(1==f.g)return Np(b,a),a.matchedStreams?a.segmentIndex?A(f,Op(a,c),2):f.D(2):f.return(!1);Pp(a,c,d,e);return f.return(!0)})}
636
637
  function Op(a,b){var c,d,e,f,g,h,k;return K(function(l){if(1==l.g){c=[];d=a.matchedStreams;e=r(d);for(f=e.next();!f.done;f=e.next())g=f.value,c.push(g.createSegmentIndex()),g.trickModeVideo&&!g.trickModeVideo.segmentIndex&&c.push(g.trickModeVideo.createSegmentIndex());return A(l,Promise.all(c),2)}if(a.segmentIndex instanceof Ej)for(h=b;h<d.length;h++)k=d[h],k.segmentIndex&&a.segmentIndex.j.push(k.segmentIndex);C(l)})}
637
638
  function Mp(a,b,c,d,e){var f=c(a);Np(b,f);f.createSegmentIndex&&(f.createSegmentIndex=function(){return K(function(g){if(f.segmentIndex)return g.D(0);f.segmentIndex=new Ej;return A(g,Op(f,0),0)})});if(!f.matchedStreams||!f.matchedStreams.length)return null;Pp(f,0,d,e);return f}function Pp(a,b,c,d){for(var e=a.matchedStreams,f=0;f<e.length;f++)if(f>=b){var g=e[f];c(a,g);var h=!0;"audio"==a.type&&0==Qb(a.language,g.language)&&(h=!1);h&&d[f].delete(g)}}
@@ -654,23 +655,23 @@ function dq(a){var b,c,d,e,f,g,h;return K(function(k){if(1==k.g)return b=pf(a.m,
654
655
  function fq(a,b,c){var d,e,f,g,h;return K(function(k){if(1==k.g){d=ng(b,"MPD");if(!d)throw new O(2,4,4001,c);if(e=a.g.dash.disableXlinkProcessing)return k.return(gq(a,d,c));f=a.g.dash.xlinkFailGracefully;g=Ro(d,a.g.retryParameters,f,c,a.h.networkingEngine);kf(a.A,g);return A(k,g.promise,2)}h=k.h;return k.return(gq(a,h,c))})}
655
656
  function gq(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,y,x,v,w,D,z,B,G,E,H,I,L,Q,V,aa,ea,la,Ca,Ia,Ja,Na;return K(function(Oa){switch(Oa.g){case 1:(d=a.g.dash.manifestPreprocessor)&&d(b);e=[c];f=Vf(b,"Location").map(ag).filter(zb);0<f.length&&(g=Ab(e,f),e=a.m=g);h=Vf(b,"BaseURL");k=h.map(ag);l=Ab(e,k);m=0;h&&h.length&&(m=cg(h[0],"availabilityTimeOffset",jg)||0);p=a.g.dash.ignoreMinBufferTime;n=0;p||(n=cg(b,"minBufferTime",eg)||0);a.H=cg(b,"minimumUpdatePeriod",eg,-1);t=cg(b,"availabilityStartTime",dg);y=cg(b,
656
657
  "timeShiftBufferDepth",eg);x=a.g.dash.ignoreSuggestedPresentationDelay;v=null;x||(v=cg(b,"suggestedPresentationDelay",eg));w=a.g.dash.ignoreMaxSegmentDuration;D=null;w||(D=cg(b,"maxSegmentDuration",eg));z=b.getAttribute("type")||"static";if(a.i)for(B=a.i.presentationTimeline,G=r(Object.values(a.l)),E=G.next();!E.done;E=G.next())H=E.value,H.segmentIndex&&H.segmentIndex.Hb(B.ob());else I=a.g.defaultPresentationDelay||1.5*n,L=null!=v?v:I,B=new R(t,L,a.g.dash.autoCorrectDrift);B.Zc("static"==z);(Q=B.U())&&
657
- !isNaN(a.g.availabilityWindowOverride)&&(y=a.g.availabilityWindowOverride);null==y&&(y=Infinity);B.Me(y);V=b.getAttribute("profiles")||"";aa={xb:"static"!=z,presentationTimeline:B,ra:null,Y:null,wa:null,M:null,bandwidth:0,Ef:!1,$b:m,profiles:V.split(",")};ea=hq(a,aa,l,b);la=ea.duration;Ca=ea.periods;"static"!=z&&ea.uf||B.Ua(la||Infinity);a.C&&!a.F&&(Ia=a.h.isAutoLowLatencyMode())&&(a.h.enableLowLatencyMode(),a.F=a.h.isLowLatencyMode());a.F?B.Lf(a.C):a.C&&Ua("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");
658
- B.re(D||1);return A(Oa,yp(a.j,Ca,aa.xb),2);case 2:if(a.i){a.i.variants=a.j.l;a.i.textStreams=a.j.j.slice();a.i.imageStreams=a.j.i;a.h.filter(a.i);Oa.D(3);break}a.i={presentationTimeline:B,variants:a.j.l,textStreams:a.j.j.slice(),imageStreams:a.j.i,offlineSessionIds:[],minBufferTime:n||0,sequenceMode:!1};if(!B.Tf()){Oa.D(4);break}Ja=Vf(b,"UTCTiming");return A(Oa,iq(a,l,Ja),5);case 5:Na=Oa.h;if(!a.h)return Oa.return();B.Mf(Na);case 4:B.me();case 3:a.h.makeTextStreamsForClosedCaptions(a.i),C(Oa)}})}
659
- function hq(a,b,c,d){var e=cg(d,"mediaPresentationDuration",eg),f=[],g=0;d=Vf(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=cg(k,"start",eg,g),p=k.id,n=cg(k,"duration",eg),t=null;if(l){var y=cg(l,"start",eg);null!=y&&(t=y-m)}else null!=e&&(t=e-m);null==t&&(t=n);if(!(null!==a.B&&null!==p&&null!==m&&m<a.B)||a.K.includes(p)||h+1==d.length){null!==m&&(null===a.B||m>a.B)&&(a.B=m);g=jq(a,b,c,{start:m,duration:t,node:k,ge:null==t||!l});f.push(g);b.ra.id&&t&&(a.N[b.ra.id]=t);if(null==t){g=
658
+ !isNaN(a.g.availabilityWindowOverride)&&(y=a.g.availabilityWindowOverride);null==y&&(y=Infinity);B.Me(y);V=b.getAttribute("profiles")||"";aa={xb:"static"!=z,presentationTimeline:B,sa:null,Y:null,wa:null,M:null,bandwidth:0,Ef:!1,$b:m,profiles:V.split(",")};ea=hq(a,aa,l,b);la=ea.duration;Ca=ea.periods;"static"!=z&&ea.uf||B.Ua(la||Infinity);a.C&&!a.F&&(Ia=a.h.isAutoLowLatencyMode())&&(a.h.enableLowLatencyMode(),a.F=a.h.isLowLatencyMode());a.F?B.Mf(a.C):a.C&&Ua("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");
659
+ B.re(D||1);return A(Oa,yp(a.j,Ca,aa.xb),2);case 2:if(a.i){a.i.variants=a.j.l;a.i.textStreams=a.j.j.slice();a.i.imageStreams=a.j.i;a.h.filter(a.i);Oa.D(3);break}a.i={presentationTimeline:B,variants:a.j.l,textStreams:a.j.j.slice(),imageStreams:a.j.i,offlineSessionIds:[],minBufferTime:n||0,sequenceMode:!1};if(!B.Uf()){Oa.D(4);break}Ja=Vf(b,"UTCTiming");return A(Oa,iq(a,l,Ja),5);case 5:Na=Oa.h;if(!a.h)return Oa.return();B.Nf(Na);case 4:B.me();case 3:a.h.makeTextStreamsForClosedCaptions(a.i),C(Oa)}})}
660
+ function hq(a,b,c,d){var e=cg(d,"mediaPresentationDuration",eg),f=[],g=0;d=Vf(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=cg(k,"start",eg,g),p=k.id,n=cg(k,"duration",eg),t=null;if(l){var y=cg(l,"start",eg);null!=y&&(t=y-m)}else null!=e&&(t=e-m);null==t&&(t=n);if(!(null!==a.B&&null!==p&&null!==m&&m<a.B)||a.K.includes(p)||h+1==d.length){null!==m&&(null===a.B||m>a.B)&&(a.B=m);g=jq(a,b,c,{start:m,duration:t,node:k,ge:null==t||!l});f.push(g);b.sa.id&&t&&(a.N[b.sa.id]=t);if(null==t){g=
660
661
  null;break}g=m+t}}a.K=f.map(function(x){return x.id});return null!=e?{periods:f,duration:e,uf:!1}:{periods:f,duration:g,uf:!0}}
661
- function jq(a,b,c,d){b.ra=kq(d.node,null,c);b.Y=d;b.ra.$b=b.$b;b.ra.id||(b.ra.id="__shaka_period_"+d.start);var e=Vf(d.node,"EventStream");c=b.presentationTimeline.ob();e=r(e);for(var f=e.next();!f.done;f=e.next())lq(a,d.start,d.duration,f.value,c);c=Vf(d.node,"AdaptationSet").map(function(m){return mq(a,b,m)}).filter(zb);if(b.xb){d=[];e=r(c);for(f=e.next();!f.done;f=e.next()){f=r(f.value.lh);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new O(2,4,4018);
662
+ function jq(a,b,c,d){b.sa=kq(d.node,null,c);b.Y=d;b.sa.$b=b.$b;b.sa.id||(b.sa.id="__shaka_period_"+d.start);var e=Vf(d.node,"EventStream");c=b.presentationTimeline.ob();e=r(e);for(var f=e.next();!f.done;f=e.next())lq(a,d.start,d.duration,f.value,c);c=Vf(d.node,"AdaptationSet").map(function(m){return mq(a,b,m)}).filter(zb);if(b.xb){d=[];e=r(c);for(f=e.next();!f.done;f=e.next()){f=r(f.value.nh);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new O(2,4,4018);
662
663
  }d=c.filter(function(m){return!m.Te});c=c.filter(function(m){return m.Te});c=r(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.Te.split(" ");g=r(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=r(k.streams);for(var l=k.next();!l.done;h={fd:h.fd},l=k.next())h.fd=l.value,h.fd.trickModeVideo=e.streams.find(function(m){return function(p){return wd(m.fd.codecs)==wd(p.codecs)}}(h))}}}e=a.g.disableAudio?[]:nq(d,"audio");g=a.g.disableVideo?[]:nq(d,"video");f=a.g.disableText?
663
- []:nq(d,Gb);c=a.g.disableThumbnails?[]:nq(d,"image");if(!g.length&&!e.length)throw new O(2,4,4004);d=[];e=r(e);for(h=e.next();!h.done;h=e.next())d.push.apply(d,ja(h.value.streams));e=[];g=r(g);for(h=g.next();!h.done;h=g.next())e.push.apply(e,ja(h.value.streams));g=[];f=r(f);for(h=f.next();!h.done;h=f.next())g.push.apply(g,ja(h.value.streams));f=[];c=r(c);for(h=c.next();!h.done;h=c.next())f.push.apply(f,ja(h.value.streams));return{id:b.ra.id,jd:d,Ld:e,textStreams:g,imageStreams:f}}
664
+ []:nq(d,Gb);c=a.g.disableThumbnails?[]:nq(d,"image");if(!g.length&&!e.length)throw new O(2,4,4004);d=[];e=r(e);for(h=e.next();!h.done;h=e.next())d.push.apply(d,ja(h.value.streams));e=[];g=r(g);for(h=g.next();!h.done;h=g.next())e.push.apply(e,ja(h.value.streams));g=[];f=r(f);for(h=f.next();!h.done;h=f.next())g.push.apply(g,ja(h.value.streams));f=[];c=r(c);for(h=c.next();!h.done;h=c.next())f.push.apply(f,ja(h.value.streams));return{id:b.sa.id,jd:d,Ld:e,textStreams:g,imageStreams:f}}
664
665
  function nq(a,b){return a.filter(function(c){return c.contentType==b})}
665
- function mq(a,b,c){function d(E){switch(E){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.wa=kq(c,b.ra,null);var e=!1,f=Vf(c,"Role"),g=f.map(function(E){return E.getAttribute("value")}).filter(zb),h=void 0,k=b.wa.contentType==Gb;k&&(h="subtitle");f=r(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=l.getAttribute("schemeIdUri");if(null==m||"urn:mpeg:dash:role:2011"==m)switch(l=l.getAttribute("value"),l){case "main":e=!0;break;case "caption":case "subtitle":h=
666
+ function mq(a,b,c){function d(E){switch(E){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.wa=kq(c,b.sa,null);var e=!1,f=Vf(c,"Role"),g=f.map(function(E){return E.getAttribute("value")}).filter(zb),h=void 0,k=b.wa.contentType==Gb;k&&(h="subtitle");f=r(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=l.getAttribute("schemeIdUri");if(null==m||"urn:mpeg:dash:role:2011"==m)switch(l=l.getAttribute("value"),l){case "main":e=!0;break;case "caption":case "subtitle":h=
666
667
  l}}var p;m=Vf(c,"EssentialProperty");f=null;l=!1;m=r(m);for(var n=m.next();!n.done;n=m.next()){n=n.value;var t=n.getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==t?f=n.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==t?p=d(parseInt(n.getAttribute("value"),10)):l=!0}m=Vf(c,"SupplementalProperty");m=r(m);for(n=m.next();!n.done;n=m.next())n=n.value,"urn:mpeg:mpegB:cicp:TransferCharacteristics"==n.getAttribute("schemeIdUri")&&(p=d(parseInt(n.getAttribute("value"),
667
668
  10)));m=Vf(c,"Accessibility");var y=new Map;m=r(m);for(n=m.next();!n.done;n=m.next())if(t=n.value,n=t.getAttribute("schemeIdUri"),t=t.getAttribute("value"),"urn:scte:dash:cc:cea-608:2015"==n)if(n=1,null!=t){t=t.split(";");for(var x=r(t),v=x.next();!v.done;v=x.next()){var w=v.value,D=v=void 0;w.includes("=")?(w=w.split("="),v=w[0].startsWith("CC")?w[0]:"CC"+w[0],D=w[1]||"und"):(v="CC"+n,2==t.length?n+=2:n++,D=w);y.set(v,Kb(D))}}else y.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==n)if(n=
668
669
  1,null!=t)for(t=r(t.split(";")),v=t.next();!v.done;v=t.next())v=v.value,w=x=void 0,v.includes("=")?(v=v.split("="),x="svc"+v[0],w=v[1].split(",")[0].split(":").pop()):(x="svc"+n,n++,w=v),y.set(x,Kb(w));else y.set("svc1","und");else"urn:mpeg:dash:role:2011"==n&&null!=t&&(g.push(t),"captions"==t&&(h="caption"));if(l)return null;l=Vf(c,"ContentProtection");var z=Co(l,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),B=Kb(c.getAttribute("lang")||"und"),G=c.getAttribute("label");(l=Vf(c,"Label"))&&l.length&&
669
670
  (l=l[0],l.textContent&&(G=l.textContent));l=Vf(c,"Representation");c=l.map(function(E){if(E=oq(a,b,z,h,B,G,e,g,y,E))E.hdr=E.hdr||p;return E}).filter(function(E){return!!E});if(0==c.length){f="image"==b.wa.contentType;if(a.g.dash.ignoreEmptyAdaptationSet||k||f)return null;throw new O(2,4,4003);}if(!b.wa.contentType||"application"==b.wa.contentType)for(b.wa.contentType=pq(c[0].mimeType,c[0].codecs),k=r(c),m=k.next();!m.done;m=k.next())m.value.type=b.wa.contentType;k=r(c);for(m=k.next();!m.done;m=k.next())for(m=
670
- m.value,n=r(z.drmInfos),t=n.next();!t.done;t=n.next())t=t.value,t.keyIds=t.keyIds&&m.keyIds?new Set([].concat(ja(t.keyIds),ja(m.keyIds))):t.keyIds||m.keyIds;k=l.map(function(E){return E.getAttribute("id")}).filter(zb);return{id:b.wa.id||"__fake__"+a.I++,contentType:b.wa.contentType,language:B,bj:e,streams:c,drmInfos:z.drmInfos,Te:f,lh:k}}
671
+ m.value,n=r(z.drmInfos),t=n.next();!t.done;t=n.next())t=t.value,t.keyIds=t.keyIds&&m.keyIds?new Set([].concat(ja(t.keyIds),ja(m.keyIds))):t.keyIds||m.keyIds;k=l.map(function(E){return E.getAttribute("id")}).filter(zb);return{id:b.wa.id||"__fake__"+a.I++,contentType:b.wa.contentType,language:B,dj:e,streams:c,drmInfos:z.drmInfos,Te:f,nh:k}}
671
672
  function oq(a,b,c,d,e,f,g,h,k,l){b.M=kq(l,b.wa,null);a.C=Math.min(a.C,b.M.$b);if(!qq(b.M))return null;var m=b.Y.start;b.bandwidth=cg(l,"bandwidth",hg)||0;var p=b.M.contentType,n=p==Gb||"application"==p;p="image"==p;try{var t=function(E,H,I){return rq(a,E,H,I)};if(b.M.Xc)var y=dp(b,t);else if(b.M.Db)y=lp(b,a.l);else if(b.M.Yc)y=qp(b,t,a.l,!!a.i,a.g.dash.initialSegmentLimit,a.N);else{var x=b.M.Pa,v=b.Y.duration||0;y={bc:function(){return Promise.resolve(Dj(m,v,x))}}}}catch(E){if((n||p)&&4002==E.code)return null;
672
673
  throw E;}t=Vf(l,"ContentProtection");t=Fo(t,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);t=new Set(t?[t]:[]);var w=!1;Vf(l,"SupplementalProperty").some(function(E){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==E.getAttribute("schemeIdUri")&&"JOC"==E.getAttribute("value")})&&(w=!0);var D=!1;n&&(D=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var z;if(p&&((l=Vf(l,"EssentialProperty").find(function(E){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(E.getAttribute("schemeIdUri"))}))&&
673
- (z=l.getAttribute("value")),!z))return null;var B;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"))&&(B="PQ");l=b.M.id?b.ra.id+","+b.M.id:"";var G=l&&a.l[l]?a.l[l]:{id:a.I++,originalId:b.M.id,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,
674
+ (z=l.getAttribute("value")),!z))return null;var B;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"))&&(B="PQ");l=b.M.id?b.sa.id+","+b.M.id:"";var G=l&&a.l[l]?a.l[l]:{id:a.I++,originalId:b.M.id,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,
674
675
  frameRate:b.M.frameRate,pixelAspectRatio:b.M.pixelAspectRatio,bandwidth:b.bandwidth,width:b.M.width,height:b.M.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:t,language:e,label:f,type:b.wa.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.M.emsgSchemeIdUris,roles:h,forced:D,channelsCount:b.M.xd,audioSamplingRate:b.M.audioSamplingRate,spatialAudio:w,closedCaptions:k,hdr:B,tilesLayout:z,matchedStreams:[]};G.createSegmentIndex=function(){var E;return K(function(H){if(1==
675
676
  H.g){if(G.segmentIndex)return H.D(0);E=G;return A(H,y.bc(),3)}E.segmentIndex=H.h;C(H)})};l&&b.xb&&!a.l[l]&&(a.l[l]=G);return G}function cq(a){var b,c;K(function(d){switch(d.g){case 1:return b=0,F(d,2),A(d,dq(a),4);case 4:b=d.h;va(d,3);break;case 2:c=J(d),a.h&&(c.severity=1,a.h.onError(c));case 3:if(!a.h)return d.return();eq(a,b);C(d)}})}function eq(a,b){0>a.H||a.G.S(Math.max(3,a.H-b,Zb(a.J)))}
676
677
  function kq(a,b,c){b=b||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,xd:null,audioSamplingRate:null,$b:0};c=c||b.Pa;var d=Vf(a,"BaseURL"),e=d.map(ag),f=a.getAttribute("contentType")||b.contentType,g=a.getAttribute("mimeType")||b.mimeType,h=a.getAttribute("codecs")||b.codecs,k=cg(a,"frameRate",kg)||b.frameRate,l=a.getAttribute("sar")||b.pixelAspectRatio,m=Vf(a,"InbandEventStream"),p=b.emsgSchemeIdUris.slice();m=r(m);for(var n=m.next();!n.done;n=
@@ -686,13 +687,13 @@ function lq(a,b,c,d,e){var f=d.getAttribute("schemeIdUri")||"",g=d.getAttribute(
686
687
  function rq(a,b,c,d){var e,f,g,h,k;return K(function(l){if(1==l.g)return e=vf,f=Tj(b,c,d,a.g.retryParameters),g=a.h.networkingEngine,h=g.request(e,f),kf(a.A,h),A(l,h.promise,2);k=l.h;return l.return(k.data)})}function pq(a,b){return Ad(ud(a,b))?Gb:a.split("/")[0]}M("shaka.dash.DashParser",bq);fh.mpd=function(){return new bq};dh["application/dash+xml"]=function(){return new bq};dh["video/vnd.mpeg.dash.mpd"]=function(){return new bq};function uq(a,b,c,d){this.h=a;this.type=b;this.g=c;this.segments=d||null}function vq(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}vq.prototype.toString=function(){function a(d){return d.name+"="+(isNaN(Number(d.value))?'"'+d.value+'"':d.value)}var b="#"+this.name,c=this.g?this.g.map(a):[];this.value&&c.unshift(this.value);0<c.length&&(b+=":"+c.join(","));return b};
687
688
  vq.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function W(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function wq(a,b){a=a.getAttribute(b);if(!a)throw new O(2,4,4023,b);return a.value}function xq(a,b,c){c=void 0===c?[]:c;this.g=b;this.i=a;this.h=c}function yq(a,b){this.name=a;this.value=b};function zq(a,b){return a.filter(function(c){return c.name==b})}function Aq(a,b){return a.filter(function(c){return wq(c,"TYPE")==b})}function Bq(a,b){a=zq(a,b);return a.length?a[0]:null}function Cq(a,b){var c=0;c=void 0===c?0:c;return(a=Bq(a,b))?Number(a.value):c}function Dq(a,b){return Ab([a],[b])[0]};function Eq(a){this.h=a;this.g=0}function Fq(a){Gq(a,/[ \t]+/gm)}function Gq(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 Hq(a){return a.g==a.h.length?null:(a=Gq(a,/[^ \t\n]*/gm))?a[0]:null};function Iq(){this.g=0}
688
689
  function Jq(a,b,c){b=bd(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var d=b.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(d[0]))throw new O(2,4,4015);b=0;for(var e=!0,f=r(d),g=f.next();!g.done;g=f.next())if(g=g.value,/^#(?!EXT)/m.test(g)||e)e=!1;else if(g=Kq(a,g),--a.g,Lq.includes(g.name)){b=1;break}else"EXT-X-STREAM-INF"==g.name&&(e=!0);f=[];e=!0;for(g=0;g<d.length;g++){var h=d[g],k=d[g+1];if(/^#(?!EXT)/m.test(h)||e)e=!1;else{h=Kq(a,h);if(Mq.includes(h.name)){if(1!=b)throw new O(2,4,4017);
689
- var l=d.splice(g,d.length-g);d=c;e=[];g=[];k=[];h=null;l=r(l);for(var m=l.next();!m.done;m=l.next())m=m.value,/^(#EXT)/.test(m)?(m=Kq(a,m),Lq.includes(m.name)?f.push(m):"EXT-X-MAP"==m.name?h=m:"EXT-X-PART"==m.name?k.push(m):"EXT-X-PRELOAD-HINT"==m.name?"PART"==W(m,"TYPE")?k.push(m):"MAP"==W(m,"TYPE")&&(m.name="EXT-X-MAP",h=m):g.push(m)):/^#(?!EXT)/m.test(m)||(m=Dq(d,m.trim()),h&&g.push(h),e.push(new xq(m,g,k)),g=[],k=[]);k.length&&(h&&g.push(h),e.push(new xq("",g,k)));return new uq(c,b,f,e)}f.push(h);
690
- "EXT-X-STREAM-INF"==h.name&&(h.g.push(new yq("URI",k)),e=!0)}}return new uq(c,b,f)}function Kq(a,b){a=a.g++;var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new O(2,4,4016,b);b=c[1];var d=c[2];c=[];var e;if(d){d=new Eq(d);var f;(f=Gq(d,/^([^,=]+)(?:,|$)/g))&&(e=f[1]);for(var g=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;f=Gq(d,g);)c.push(new yq(f[1],f[2]||f[3])),Fq(d)}return new vq(a,b,c,e)}
691
- var Lq="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP".split(" "),Mq="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function Nq(){}function Oq(a){try{var b=Pq(a);return cf({uri:a,originalUri:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return af(c)}}
692
- function Pq(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new O(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new O(2,1,1004,a);var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"==b[b.length-1]&&(d=!0,b.pop());var e;d?e=kd(a):e=fd(a);return{data:e,contentType:c}}M("shaka.net.DataUriPlugin",Nq);Nq.parse=Oq;mf("data",Oq);function Qq(){var a=this;this.g=this.i=null;this.Ba=1;this.A=new Map;this.C=new Map;this.ua=new Set;this.h=new Map;this.j=null;this.N="";this.aa=new Iq;this.ma=0;this.T=!1;this.P=null;this.$=Infinity;this.F=new P(function(){Rq(a)});this.m=Sq;this.J=null;this.ba=0;this.H=Infinity;this.Z=this.ea=0;this.G=new jf;this.I=[];this.K=new Map;this.B=new Map;this.va=new Map;this.l=!1}q=Qq.prototype;q.configure=function(a){this.g=a};
693
- q.start=function(a,b){var c=this,d,e;return K(function(f){if(1==f.g)return c.i=b,c.l=b.isLowLatencyMode(),A(f,Tq(c,a),2);if(3!=f.g)return d=f.h,c.N=d.uri,A(f,Uq(c,d.data,a),3);e=c.ma;0<e&&c.F.S(e);return f.return(c.J)})};q.stop=function(){this.F&&(this.F.stop(),this.F=null);var a=[];this.G&&(a.push(this.G.destroy()),this.G=null);this.g=this.i=null;this.ua.clear();this.J=null;this.h.clear();this.C.clear();this.B.clear();this.A.clear();return Promise.all(a)};
694
- q.update=function(){var a=this,b,c,d,e,f,g;return K(function(h){if(1==h.g){if(a.m==Sq)return h.return();b=[];c=Array.from(a.h.values());return c.length?A(h,Vq(a,c[0]),2):h.D(2)}if(4!=h.g){for(d=1;d<c.length;d++)b.push(Vq(a,c[d]));return A(h,Promise.all(b),4)}Wq(a);e=c.some(function(k){return 0==k.Bf});e||(f=Xq,Yq(a,f.Yf),g=c.map(function(k){return k.Qc}),a.j.Ua(Math.min.apply(Math,ja(g))),a.i.updateDuration());C(h)})};
695
- function Vq(a,b){var c,d,e,f,g,h,k,l,m,p,n,t;return K(function(y){if(1==y.g)return c=b.Zf,d=new jb(c),a.l&&b.eg&&mb(d,new ob("_HLS_skip=YES")),A(y,Tq(a,d.toString()),2);e=y.h;f=Jq(a.aa,e.data,e.uri);if(1!=f.type)throw new O(2,4,4017);g=zq(f.g,"EXT-X-DEFINE");h=Zq(a,g);k=b.stream;l=$q(a,f,k.type,b.Rc,h);a.I.push(l);k.segmentIndex.lc(l,a.j.ob());l.length&&(m=Cq(f.g,"EXT-X-MEDIA-SEQUENCE"),p=b.Rc.get(m),k.segmentIndex.Hb(p));n=l[l.length-1];if(t=Bq(f.g,"EXT-X-ENDLIST"))b.Bf=!0,b.Qc=n.endTime;C(y)})}
690
+ var l=d.splice(g,d.length-g);d=c;e=[];g=[];k=[];h=null;l=r(l);for(var m=l.next();!m.done;m=l.next())m=m.value,/^(#EXT)/.test(m)?(m=Kq(a,m),Lq.includes(m.name)?f.push(m):"EXT-X-MAP"==m.name?h=m:"EXT-X-PART"==m.name?k.push(m):"EXT-X-PRELOAD-HINT"==m.name?"PART"==W(m,"TYPE")?null!=W(m,"BYTERANGE-START")?null!=W(m,"BYTERANGE-LENGTH")&&k.push(m):k.push(m):"MAP"==W(m,"TYPE")&&(m.name="EXT-X-MAP",h=m):g.push(m)):/^#(?!EXT)/m.test(m)||(m=Dq(d,m.trim()),h&&g.push(h),e.push(new xq(m,g,k)),g=[],k=[]);k.length&&
691
+ (h&&g.push(h),e.push(new xq("",g,k)));return new uq(c,b,f,e)}f.push(h);"EXT-X-STREAM-INF"==h.name&&(h.g.push(new yq("URI",k)),e=!0)}}return new uq(c,b,f)}function Kq(a,b){a=a.g++;var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new O(2,4,4016,b);b=c[1];var d=c[2];c=[];var e;if(d){d=new Eq(d);var f;(f=Gq(d,/^([^,=]+)(?:,|$)/g))&&(e=f[1]);for(var g=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;f=Gq(d,g);)c.push(new yq(f[1],f[2]||f[3])),Fq(d)}return new vq(a,b,c,e)}
692
+ var Lq="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP EXT-X-PART-INF".split(" "),Mq="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function Nq(){}function Oq(a){try{var b=Pq(a);return cf({uri:a,originalUri:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return af(c)}}
693
+ function Pq(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new O(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new O(2,1,1004,a);var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"==b[b.length-1]&&(d=!0,b.pop());var e;d?e=kd(a):e=fd(a);return{data:e,contentType:c}}M("shaka.net.DataUriPlugin",Nq);Nq.parse=Oq;mf("data",Oq);function Qq(){var a=this;this.g=this.i=null;this.Ba=1;this.A=new Map;this.C=new Map;this.ua=new Set;this.h=new Map;this.j=null;this.N="";this.aa=new Iq;this.ha=0;this.T=!1;this.P=null;this.$=Infinity;this.F=new P(function(){Rq(a)});this.m=Sq;this.J=null;this.ba=0;this.H=Infinity;this.Z=this.ea=0;this.G=new jf;this.I=[];this.K=new Map;this.B=new Map;this.va=new Map;this.l=!1}q=Qq.prototype;q.configure=function(a){this.g=a};
694
+ q.start=function(a,b){var c=this,d,e;return K(function(f){if(1==f.g)return c.i=b,c.l=b.isLowLatencyMode(),A(f,Tq(c,a),2);if(3!=f.g)return d=f.h,c.N=d.uri,A(f,Uq(c,d.data,a),3);e=c.ha;0<e&&c.F.S(e);return f.return(c.J)})};q.stop=function(){this.F&&(this.F.stop(),this.F=null);var a=[];this.G&&(a.push(this.G.destroy()),this.G=null);this.g=this.i=null;this.ua.clear();this.J=null;this.h.clear();this.C.clear();this.B.clear();this.A.clear();return Promise.all(a)};
695
+ q.update=function(){var a=this,b,c,d,e,f,g;return K(function(h){if(1==h.g){if(a.m==Sq)return h.return();b=[];c=Array.from(a.h.values());return c.length?A(h,Vq(a,c[0]),2):h.D(2)}if(4!=h.g){for(d=1;d<c.length;d++)b.push(Vq(a,c[d]));return A(h,Promise.all(b),4)}Wq(a);e=c.some(function(k){return 0==k.Bf});e||(f=Xq,Yq(a,f.Zf),g=c.map(function(k){return k.Qc}),a.j.Ua(Math.min.apply(Math,ja(g))),a.i.updateDuration());C(h)})};
696
+ function Vq(a,b){var c,d,e,f,g,h,k,l,m,p,n,t;return K(function(y){if(1==y.g)return c=b.$f,d=new jb(c),a.l&&b.fg&&mb(d,new ob("_HLS_skip=YES")),A(y,Tq(a,d.toString()),2);e=y.h;f=Jq(a.aa,e.data,e.uri);if(1!=f.type)throw new O(2,4,4017);g=zq(f.g,"EXT-X-DEFINE");h=Zq(a,g);k=b.stream;l=$q(a,f,k.type,b.Rc,h);a.I.push(l);k.segmentIndex.lc(l,a.j.ob());l.length&&(m=Cq(f.g,"EXT-X-MEDIA-SEQUENCE"),p=b.Rc.get(m),k.segmentIndex.Hb(p));n=l[l.length-1];if(t=Bq(f.g,"EXT-X-ENDLIST"))b.Bf=!0,b.Qc=n.endTime;C(y)})}
696
697
  q.onExpirationUpdated=function(){};
697
698
  function ar(a){if(!a.T){for(var b=-1,c=new Map,d=r(a.h.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex;if(f&&(f=f.L[0]||null))for(var g=r(e.Rc),h=g.next();!h.done;h=g.next()){h=r(h.value);var k=h.next().value;if(h.next().value==f.startTime){c.set(e,k);b=Math.max(b,k);break}}}if(!(0>b)){a.P=b;b=r(a.h.values());for(e=b.next();!e.done;e=b.next())if(d=e.value,e=d.stream.segmentIndex)if(f=a.P-c.get(d),e.L.splice(0,f),e=e.L[0]||null)e=-e.startTime,d.stream.segmentIndex.offset(e),
698
699
  br(d,e);a.T=!0}}}
@@ -701,7 +702,7 @@ function cr(a){if(!a.T&&Infinity==a.$){for(var b=Infinity,c=r(a.h.values()),d=c.
701
702
  function Uq(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,y,x,v,w,D,z,B,G,E,H,I,L,Q,V,aa,ea,la,Ca,Ia,Ja,Na,Oa,Tc,Uc,uc,Id,Eb,Ke,Vc,Jd;return K(function(Va){switch(Va.g){case 1:d=Jq(a.aa,b,a.N);e=zq(d.g,"EXT-X-DEFINE");dr(a,e);f=[];g=[];h=[];if(1==d.type)return G=a.g.hls.mediaPlaylistFullMimeType,E=G.split(";")[0],H=E.split("/")[0],I=yd(G),L=new Map,A(Va,er(a,d,c,c,I,H,"",!0,"Media Playlist",null,L,null,!1,!1,E),8);k=zq(d.g,"EXT-X-MEDIA");l=zq(d.g,"EXT-X-STREAM-INF");m=zq(d.g,"EXT-X-IMAGE-STREAM-INF");fr(a,l);
702
703
  p=zq(d.g,"EXT-X-SESSION-DATA");n=r(p);for(t=n.next();!t.done;t=n.next())if(y=t.value,x=W(y,"DATA-ID"),v=W(y,"URI"),w=W(y,"LANGUAGE"),D=W(y,"VALUE"),z=(new Map).set("id",x),v&&z.set("uri",Dq(a.N,v)),w&&z.set("language",w),D&&z.set("value",D),B=new N("sessiondata",z),a.i)a.i.onEvent(B);return A(Va,gr(a,k),4);case 4:return hr(a,k),A(Va,ir(a,l),5);case 5:return f=Va.h,A(Va,jr(a,k),6);case 6:return g=Va.h,A(Va,kr(a,m),7);case 7:h=Va.h;Va.D(3);break;case 8:Q=Va.h,a.h.set(c,Q),f.push({id:0,language:"und",
703
704
  disabledUntilTime:0,primary:!0,audio:"audio"==H?Q.stream:null,video:"video"==H?Q.stream:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.i)throw new O(2,7,7001);a.g.hls.ignoreManifestProgramDateTime?ar(a):cr(a);V=Infinity;aa=r(a.h.values());for(ea=aa.next();!ea.done;ea=aa.next())la=ea.value,"text"!=la.stream.type&&(V=Math.min(V,la.Qc));a.m!=Sq?(a.j=new R(0,a.g.defaultPresentationDelay?a.g.defaultPresentationDelay:a.Z?a.Z:3*a.ba),a.j.Zc(!1)):(a.j=new R(null,
704
- 0),a.j.Zc(!0));if(a.m!=Sq)a.ma=a.H,Ca=Xq,a.m==Ca.df&&(Ia=a.j.Ed,isNaN(a.g.availabilityWindowOverride)||(Ia=a.g.availabilityWindowOverride),a.j.Me(Ia));else for(a.j.Ua(V),Ja=r(a.h.values()),ea=Ja.next();!ea.done;ea=Ja.next())Na=ea.value,Na.stream.segmentIndex.yb(0,V);a.I=[];Oa=[];Tc=r(f);for(Uc=Tc.next();!Uc.done;Uc=Tc.next())for(uc=Uc.value,Id=r([uc.video,uc.audio]),Eb=Id.next();!Eb.done;Eb=Id.next())(Ke=Eb.value)&&Oa.push(Ke);return A(Va,Promise.all(Oa.map(function(sg){return K(function(tg){return A(tg,
705
+ 0),a.j.Zc(!0));if(a.m!=Sq)a.ha=a.H,Ca=Xq,a.m==Ca.df&&(Ia=a.j.Ed,isNaN(a.g.availabilityWindowOverride)||(Ia=a.g.availabilityWindowOverride),a.j.Me(Ia));else for(a.j.Ua(V),Ja=r(a.h.values()),ea=Ja.next();!ea.done;ea=Ja.next())Na=ea.value,Na.stream.segmentIndex.yb(0,V);a.I=[];Oa=[];Tc=r(f);for(Uc=Tc.next();!Uc.done;Uc=Tc.next())for(uc=Uc.value,Id=r([uc.video,uc.audio]),Eb=Id.next();!Eb.done;Eb=Id.next())(Ke=Eb.value)&&Oa.push(Ke);return A(Va,Promise.all(Oa.map(function(sg){return K(function(tg){return A(tg,
705
706
  sg.createSegmentIndex(),0)})})),9);case 9:Vc=r(Oa);for(Eb=Vc.next();!Eb.done;Eb=Vc.next())Jd=Eb.value,a.I.push(Jd.segmentIndex.L);Wq(a);a.j.me();a.J={presentationTimeline:a.j,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:!0};a.i.makeTextStreamsForClosedCaptions(a.J);C(Va)}})}function dr(a,b){b=r(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=W(d,"NAME");d=W(d,"VALUE");c&&d&&(a.A.has(c)||a.A.set(c,d))}}
706
707
  function Zq(a,b){var c=new Map;b=r(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=W(e,"NAME");var f=W(e,"VALUE");e=W(e,"IMPORT");d&&f&&c.set(d,f);e&&(d=a.A.get(e))&&c.set(e,d)}return c}
707
708
  function fr(a,b){b=r(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=W(d,"AUDIO");c=W(d,"VIDEO");var f=W(d,"SUBTITLES");d=lr(a,d);if(f){var g=Db(Gb,d);a.B.set(f,g);bc(d,g)}e&&(f=Db("audio",d),f||(f=a.g.hls.defaultAudioCodec),a.B.set(e,f));c&&(e=Db("video",d),e||(e=a.g.hls.defaultVideoCodec),a.B.set(c,e))}}
@@ -722,28 +723,28 @@ function tr(a,b,c,d,e,f,g,h,k,l,m,p){var n,t,y;return K(function(x){if(1==x.g)re
722
723
  function er(a,b,c,d,e,f,g,h,k,l,m,p,n,t,y){var x,v,w,D,z,B,G,E,H,I,L,Q,V,aa,ea,la,Ca,Ia,Ja,Na,Oa,Tc,Uc,uc,Id,Eb,Ke,Vc,Jd,Va,sg,tg,hp,ip;return K(function(Ld){if(1==Ld.g){if(1!=b.type)throw new O(2,4,4017);x=zq(b.g,"EXT-X-DEFINE");v=Zq(a,x);ur(a,b);return y?Ld.D(2):A(Ld,vr(a,f,e,b,v),3)}2!=Ld.g&&(y=Ld.h);w=[];if(b.segments)for(D=r(b.segments),z=D.next();!z.done;z=D.next())B=z.value,G=zq(B.g,"EXT-X-KEY"),w.push.apply(w,ja(G));H=E=!1;I=[];L=new Set;Q=r(w);for(V=Q.next();!V.done;V=Q.next())if(aa=V.value,
723
724
  ea=wq(aa,"METHOD"),"NONE"!=ea)if(E=!0,"AES-128"==ea)H=!0;else if(la=wq(aa,"KEYFORMAT"),Ia=(Ca=wr[la])?Ca(aa,y):null){if(Ia.keyIds)for(Ja=r(Ia.keyIds),Na=Ja.next();!Na.done;Na=Ja.next())Oa=Na.value,L.add(Oa);I.push(Ia)}if(E&&!I.length&&!H)throw new O(2,4,4026);ej.includes(y)&&(e="");Tc=new Map;Uc=a.l;uc=$q(a,b,f,Tc,v);Uc!=a.l&&ur(a,b);Id=uc[uc.length-1].endTime;Eb=new Bj(uc);Ke=f==Gb?"subtitle":void 0;Vc=[];if(p)for(Jd=r(p.split(",")),Va=Jd.next();!Va.done;Va=Jd.next())sg=Va.value,Vc.push(sg);hp=(tg=
724
725
  Bq(b.g,"EXT-X-SERVER-CONTROL"))?null!=tg.getAttribute("CAN-SKIP-UNTIL"):!1;ip={id:a.Ba++,originalId:k,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Eb,mimeType:y,codecs:e,kind:Ke,encrypted:E,drmInfos:I,keyIds:L,language:g,label:k,type:f,primary:h,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:Vc,forced:n,channelsCount:l,audioSamplingRate:null,spatialAudio:t,closedCaptions:m,hdr:void 0,tilesLayout:void 0};
725
- return Ld.return({stream:ip,Kd:c,Zf:d,Qc:Id,Rc:Tc,eg:hp,Bf:!1})})}
726
+ return Ld.return({stream:ip,Kd:c,$f:d,Qc:Id,Rc:Tc,fg:hp,Bf:!1})})}
726
727
  function xr(a,b,c){if(!window.crypto||!window.crypto.subtle)throw Ua("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new O(2,4,4042);var d=0,e=W(b,"IV","");if(e){var f=ld(e.substr(2));if(16!=f.byteLength)throw new O(2,4,4043);}else d=Cq(c.g,"EXT-X-MEDIA-SEQUENCE");b=Dq(c.h,wq(b,"URI"));var g=pf([b],a.g.retryParameters),h={method:"AES-128",iv:f,firstMediaSequenceNumber:d,fetchKey:function(){var k,l,m;return K(function(p){if(1==p.g)return A(p,
727
728
  yr(a,g,6),2);if(3!=p.g){k=p.h;if(!k.data||16!=k.data.byteLength)throw new O(2,4,4044);l={name:"AES-CBC"};m=h;return A(p,window.crypto.subtle.importKey("raw",k.data,l,!0,["decrypt"]),3)}m.cryptoKey=p.h;h.fetchKey=void 0;C(p)})}};return h}
728
729
  function ur(a,b){var c=Bq(b.g,"EXT-X-PLAYLIST-TYPE"),d=Bq(b.g,"EXT-X-ENDLIST");d=c&&"VOD"==c.value||d;c=c&&"EVENT"==c.value&&!d;c=!d&&!c;if(d)Yq(a,Sq);else{c?Yq(a,zr):Yq(a,Ar);d=Bq(b.g,"EXT-X-TARGETDURATION");if(!d)throw new O(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);c=Bq(b.g,"EXT-X-PART-INF");a.l&&c?(a.ea=Number(wq(c,"PART-TARGET")),a.H=Math.min(a.ea,a.H),b=Bq(b.g,"EXT-X-SERVER-CONTROL"),a.Z=b?Number(wq(b,"PART-HOLD-BACK")):0):a.H=Math.min(d,a.H);a.ba=Math.max(d,a.ba)}}
729
730
  function Br(a,b,c,d){c=Bq(c,"EXT-X-MAP");if(!c)return null;var e=wq(c,"URI");d=sr(Dq(b,e),d);b=[d,W(c,"BYTERANGE","")].join("-");a.va.has(b)||(c=Cr(d,c),a.va.set(b,c));return a.va.get(b)}function Cr(a,b){var c=0,d=null;if(b=W(b,"BYTERANGE"))c=b.split("@"),d=Number(c[0]),c=Number(c[1]),d=c+d-1;return new ui(function(){return[a]},c,d)}
730
731
  function Dr(a,b,c,d,e,f,g,h,k){var l=d.g,m=sr(d.i,f),p=Bq(l,"EXTINF"),n=f=0,t=null;d.h.length&&!a.l&&Ua("Low-latency HLS live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");var y=null;if(!a.g.hls.ignoreManifestProgramDateTime){var x=Bq(l,"EXT-X-PROGRAM-DATE-TIME");x&&x.value&&(y=dg(x.value))}x=xi;Bq(l,"EXT-X-GAP")&&(x=2);if(!p){if(0==d.h.length)throw new O(2,4,4024,"EXTINF");
731
- if(!a.l)return null}var v=[];if(a.l)for(var w={},D=0;D<d.h.length;w={Td:w.Td},D++){var z=d.h[D],B=0==D?c:v[v.length-1],G=0==D?e:B.endTime,E=Number(W(z,"DURATION"))||a.ea;if(E){E=G+E;var H=0,I=null;"EXT-X-PRELOAD-HINT"==z.name?H=(H=W(z,"BYTERANGE-START"))?Number(H):0:(H=W(z,"BYTERANGE"),I=r(Er(B,H)),H=I.next().value,I=I.next().value);if(B=W(z,"URI"))w.Td=Dq(g,B),B=xi,"YES"==W(z,"GAP")&&(B=2),v.push(new wi(G,E,function(L){return function(){return[L.Td]}}(w),H,I,b,0,0,Infinity,[],"",null,null,B))}}p?
732
- f=e+Number(p.value.split(",")[0]):f=v[v.length-1].endTime;(a=Bq(l,"EXT-X-BYTERANGE"))?(t=r(Er(c,a.value)),n=t.next().value,t=t.next().value):v.length&&(n=v[0].Va,t=v[v.length-1].Da);c="";a=null;"image"==h&&(c="1x1",h=Bq(l,"EXT-X-TILES"))&&(c=wq(h,"LAYOUT"),(h=W(h,"DURATION"))&&(a=Number(h)));return new wi(e,f,function(){return m.length?[m]:[]},n,t,b,0,0,Infinity,v,c,a,y,x,k)}function Er(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.Da+1,d=c+b-1);return[c,d]}
733
- function Wq(a){if(a.j){for(var b=r(a.I),c=b.next();!c.done;c=b.next())a.j.mc(c.value);a.I=[]}}
732
+ if(!a.l)return null}var v=[];if(a.l)for(var w={},D=0;D<d.h.length;w={Td:w.Td},D++){var z=d.h[D],B=0==D?c:v[v.length-1],G=0==D?e:B.endTime,E=Number(W(z,"DURATION"))||a.ea;if(E){E=G+E;var H=0,I=null;"EXT-X-PRELOAD-HINT"==z.name?H=(H=W(z,"BYTERANGE-START"))?Number(H):0:(H=W(z,"BYTERANGE"),I=r(Er(B,H)),H=I.next().value,I=I.next().value);if(B=W(z,"URI"))w.Td=Dq(g,B),B=xi,"YES"==W(z,"GAP")&&(B=2),G=new wi(G,E,function(L){return function(){return[L.Td]}}(w),H,I,b,0,0,Infinity,[],"",null,null,B),"EXT-X-PRELOAD-HINT"==
733
+ z.name&&G.Gf(),v.push(G)}}p?f=e+Number(p.value.split(",")[0]):f=v[v.length-1].endTime;(a=Bq(l,"EXT-X-BYTERANGE"))?(t=r(Er(c,a.value)),n=t.next().value,t=t.next().value):v.length&&(n=v[0].Va,t=v[v.length-1].Da);c="";a=null;"image"==h&&(c="1x1",h=Bq(l,"EXT-X-TILES"))&&(c=wq(h,"LAYOUT"),(h=W(h,"DURATION"))&&(a=Number(h)));return new wi(e,f,function(){return m.length?[m]:[]},n,t,b,0,0,Infinity,v,c,a,y,x,k)}
734
+ function Er(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.Da+1,d=c+b-1);return[c,d]}function Wq(a){if(a.j){for(var b=r(a.I),c=b.next();!c.done;c=b.next())a.j.mc(c.value);a.I=[]}}
734
735
  function $q(a,b,c,d,e){var f=b.segments,g=void 0,h=Cq(b.g,"EXT-X-DISCONTINUITY-SEQUENCE"),k=Cq(b.g,"EXT-X-MEDIA-SEQUENCE"),l=Bq(b.g,"EXT-X-SKIP");l=l?Number(W(l,"SKIPPED-SEGMENTS")):0;var m=k+l,p=0;a.m!=Sq&&d.has(m)&&(p=d.get(m));for(var n=[],t=null,y=0;y<f.length;y++){var x=f[y],v=0==y?p:t.endTime;m=k+l+y;Bq(x.g,"EXT-X-DISCONTINUITY")&&h++;var w=r(x.g);for(var D=w.next();!D.done;D=w.next())D=D.value,"EXT-X-KEY"==D.name&&("AES-128"==wq(D,"METHOD")?g=xr(a,D,b):g=void 0);d.set(m,v);w=Br(a,b.h,x.g,e);
735
736
  !a.l&&a.i.isAutoLowLatencyMode()&&(a.i.enableLowLatencyMode(),a.l=a.i.isLowLatencyMode());if(t=x=Dr(a,w,t,x,v,e,b.h,c,g))x.l=h,a.g.hls.ignoreManifestProgramDateTime&&null!=a.P&&m<a.P||n.push(x)}if(b=n.some(function(z){return null!=z.g}))for(c={},d=0;d<n.length;c={vc:c.vc,uc:c.uc,$c:c.$c,sb:c.sb,tc:c.tc},d++)if(c.sb=n[d],null==c.sb.g)for(c.uc=0,c.vc=d,e=function(z){return function(){var B=n[z.vc];if(B){if(null!=B.g)return B.g+z.uc;z.uc-=B.endTime-B.startTime;z.vc+=1}return null}}(c),c.tc=0,c.$c=d,
736
737
  f=function(z){return function(){var B=n[z.$c];if(B){B!=z.sb&&(z.tc+=B.endTime-B.startTime);if(null!=B.g)return B.g+z.tc;--z.$c}return null}}(c);null==c.sb.g;)c.sb.g=f(),null==c.sb.g&&(c.sb.g=e());if(b)for(c=r(n),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.g,e=r(e.h),f=e.next();!f.done;f=e.next())f=f.value,f.g=d,d+=f.endTime-f.startTime;a=a.$;if(b&&Infinity!=a)for(b=r(n),d=b.next();!d.done;d=b.next())d.value.Qe(a);return n}
737
- function sr(a,b){a=String(a).replace(/%7B/g,"{").replace(/%7D/g,"}");var c=a.match(/{\$\w*}/g);if(c){c=r(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=d.slice(2,d.length-1),f=b.get(e);if(f)a=a.replace(d,f);else throw new O(2,4,4039,e);}}return a}
738
- function vr(a,b,c,d,e){var f,g,h,k,l,m,p,n,t,y,x,v;return K(function(w){if(1==w.g){f=Hb;g=vf;h=Math.trunc((d.segments.length-1)/2);k=sr(d.segments[h].i,e);l=new jb(k);m=l.Na.split(".").pop();p=Fr[b];if((n=p[m])||(n=Gr[m]))return w.return(n);if(b==f.ha){if("vtt"==c||"wvtt"==c)return w.return("text/vtt");if(c&&""!==c)return w.return("application/mp4")}if(b==f.Bc&&(!c||"jpeg"==c))return w.return("image/jpeg");t=pf([k],a.g.retryParameters);t.method="HEAD";return A(w,yr(a,t,g),2)}y=w.h;x=y.headers["content-type"];
739
- if(!x){if(b==f.ha)return w.return("text/vtt");v=p.mp4;return w.return(v)}return w.return(x.split(";")[0])})}function Tq(a,b){b=pf([b],a.g.retryParameters);a.i.modifyManifestRequest(b,{format:"h"});return yr(a,b,0)}function Rq(a){var b,c;K(function(d){if(1==d.g){if(!a.i)return d.return();F(d,2);return A(d,a.update(),4)}if(2!=d.g)return a.m!=Sq&&(b=a.ma,a.F.S(b)),va(d,0);c=J(d);if(!a.i)return d.return();c.severity=1;a.i.onError(c);a.F.S(.1);C(d)})}
738
+ function sr(a,b){if(!b.size)return a;a=String(a).replace(/%7B/g,"{").replace(/%7D/g,"}");var c=a.match(/{\$\w*}/g);if(c){c=r(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=d.slice(2,d.length-1),f=b.get(e);if(f)a=a.replace(d,f);else throw new O(2,4,4039,e);}}return a}
739
+ function vr(a,b,c,d,e){var f,g,h,k,l,m,p,n,t,y,x,v;return K(function(w){if(1==w.g){f=Hb;g=vf;h=Math.trunc((d.segments.length-1)/2);k=sr(d.segments[h].i,e);l=new jb(k);m=l.Na.split(".").pop();p=Fr[b];if((n=p[m])||(n=Gr[m]))return w.return(n);if(b==f.ia){if("vtt"==c||"wvtt"==c)return w.return("text/vtt");if(c&&""!==c)return w.return("application/mp4")}if(b==f.Bc&&(!c||"jpeg"==c))return w.return("image/jpeg");t=pf([k],a.g.retryParameters);t.method="HEAD";return A(w,yr(a,t,g),2)}y=w.h;x=y.headers["content-type"];
740
+ if(!x){if(b==f.ia)return w.return("text/vtt");v=p.mp4;return w.return(v)}return w.return(x.split(";")[0])})}function Tq(a,b){b=pf([b],a.g.retryParameters);a.i.modifyManifestRequest(b,{format:"h"});return yr(a,b,0)}function Rq(a){var b,c;K(function(d){if(1==d.g){if(!a.i)return d.return();F(d,2);return A(d,a.update(),4)}if(2!=d.g)return a.m!=Sq&&(b=a.ha,a.F.S(b)),va(d,0);c=J(d);if(!a.i)return d.return();c.severity=1;a.i.onError(c);a.F.S(.1);C(d)})}
740
741
  function Yq(a,b){a.m=b;a.j&&a.j.Zc(a.m==Sq);a.m!=Sq||a.F.stop()}function yr(a,b,c){if(!a.G)throw new O(2,7,7001);b=a.i.networkingEngine.request(c,b);kf(a.G,b);return b.promise}M("shaka.hls.HlsParser",Qq);
741
742
  var Gr={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},Fr={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",
742
743
  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"}},wr={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new O(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new O(2,4,4041);return Bb("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0)}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=wq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;
743
744
  b=wq(a,"URI");b=Pq(b);b=Cc(b.data);b=Bb("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=W(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=wq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=wq(a,"URI");a=Pq(a);a=Cc(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=Tf(a,b,new Set,0);return Bb("com.microsoft.playready",[{initDataType:"cenc",initData:a}])}},Sq="VOD",
744
- Ar="EVENT",zr="LIVE",Xq={Yf:Sq,Th:Ar,df:zr};Qc("Tizen 3")||Qc("Tizen 2")||Sc()||(fh.m3u8=function(){return new Qq},dh["application/x-mpegurl"]=function(){return new Qq},dh["application/vnd.apple.mpegurl"]=function(){return new Qq});function Hr(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=ed(b)}catch(g){}throw new O(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function Ir(){}function Jr(a,b,c,d,e){var f=new Kr;Df(b.headers).forEach(function(l,m){f.append(m,l)});var g=new Lr,h={lf:!1,Sf:!1};a=Mr(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 $e(a,function(){h.lf=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new P(function(){h.Sf=!0;g.abort()});k.S(b/1E3);a.finally(function(){k.stop()})}return a}
745
+ Ar="EVENT",zr="LIVE",Xq={Zf:Sq,Vh:Ar,df:zr};Qc("Tizen 3")||Qc("Tizen 2")||Sc()||(fh.m3u8=function(){return new Qq},dh["application/x-mpegurl"]=function(){return new Qq},dh["application/vnd.apple.mpegurl"]=function(){return new Qq});function Hr(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=ed(b)}catch(g){}throw new O(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function Ir(){}function Jr(a,b,c,d,e){var f=new Kr;Df(b.headers).forEach(function(l,m){f.append(m,l)});var g=new Lr,h={lf:!1,Tf:!1};a=Mr(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 $e(a,function(){h.lf=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new P(function(){h.Tf=!0;g.abort()});k.S(b/1E3);a.finally(function(){k.stop()})}return a}
745
746
  function Mr(a,b,c,d,e,f,g){var h,k,l,m,p,n,t,y,x,v,w,D,z;return K(function(B){switch(B.g){case 1:return h=Nr,k=Or,n=p=0,t=Date.now(),F(B,2),A(B,h(a,c),4);case 4:l=B.h;f(Pr(l.headers));if("HEAD"==c.method){B.D(5);break}y=l.clone().body.getReader();v=(x=l.headers.get("Content-Length"))?parseInt(x,10):0;w=function(G){function E(){var H,I;return K(function(L){switch(L.g){case 1:return F(L,2),A(L,y.read(),4);case 4:H=L.h;va(L,3);break;case 2:return J(L),L.return();case 3:if(H.done){L.D(5);break}p+=H.value.byteLength;
746
- if(!g){L.D(5);break}return A(L,g(H.value),5);case 5:I=Date.now();if(100<I-t||H.done)e(I-t,p-n,v-p),n=p,t=I;H.done?G.close():(G.enqueue(H.value),E());C(L)}})}E()};new k({start:w});return A(B,l.arrayBuffer(),6);case 6:m=B.h;case 5:va(B,3);break;case 2:D=J(B);if(d.lf)throw new O(1,1,7001,a,b);if(d.Sf)throw new O(1,1,1003,a,b);throw new O(1,1,1002,a,D,b);case 3:return z=Pr(l.headers),B.return(Hr(z,m,l.status,a,l.url,b))}})}function Pr(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}
747
+ if(!g){L.D(5);break}return A(L,g(H.value),5);case 5:I=Date.now();if(100<I-t||H.done)e(I-t,p-n,v-p),n=p,t=I;H.done?G.close():(G.enqueue(H.value),E());C(L)}})}E()};new k({start:w});return A(B,l.arrayBuffer(),6);case 6:m=B.h;case 5:va(B,3);break;case 2:D=J(B);if(d.lf)throw new O(1,1,7001,a,b);if(d.Tf)throw new O(1,1,1003,a,b);throw new O(1,1,1002,a,D,b);case 3:return z=Pr(l.headers),B.return(Hr(z,m,l.status,a,l.url,b))}})}function Pr(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}
747
748
  function Qr(){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)}M("shaka.net.HttpFetchPlugin",Ir);Ir.isSupported=Qr;Ir.parse=Jr;var Nr=window.fetch,Lr=window.AbortController,Or=window.ReadableStream,Kr=window.Headers;Qr()&&(mf("http",Jr,2,!0),mf("https",Jr,2,!0),mf("blob",Jr,2,!0));function Rr(){}
748
749
  function Sr(a,b,c,d,e){var f=new Tr,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 O(1,1,7001,a,c))};var p=!1;f.onreadystatechange=function(){if(2==f.readyState&&!p){var t=Ur(f);e(t);p=!0}};f.onload=function(){var t=Ur(f),y=f.response;try{var x=Hr(t,y,f.status,a,f.responseURL,c);l(x)}catch(v){m(v)}};f.onerror=function(t){m(new O(1,1,1002,a,t,
749
750
  c))};f.ontimeout=function(){m(new O(1,1,1003,a,c))};f.onprogress=function(t){var y=Date.now();if(100<y-g||t.lengthComputable&&t.loaded==t.total)d(y-g,t.loaded-h,t.total-t.loaded),h=t.loaded,g=y};for(var n in b.headers)f.setRequestHeader(n.toLowerCase(),b.headers[n]);f.send(b.body)});return new $e(k,function(){f.abort();return Promise.resolve()})}
@@ -787,7 +788,7 @@ function Qs(a,b){var c=new Js("segment",a.h,a.g,b);return new ui(function(){retu
787
788
  q.start=function(a,b){var c=this,d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:d=Ks(a);c.g=d;if(null==d||"manifest"!=d.g)throw new O(2,1,9004,a);e=new qs;ua(m);return A(m,e.init(),4);case 4:return A(m,us(e,d.Ta(),d.Ca()),5);case 5:return f=m.h,A(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new Ls(d.Ta(),d.Ca()),l=Ms(k,h),b.makeTextStreamsForClosedCaptions(l),m.return(l);case 2:return wa(m),A(m,e.destroy(),7);case 7:xa(m,0)}})};q.stop=function(){return Promise.resolve()};
788
789
  q.update=function(){};q.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:return d=c.g,e=new qs,F(m,2,3),A(m,e.init(),5);case 5:return A(m,us(e,d.Ta(),d.Ca()),6);case 6:return f=m.h,A(m,f.getManifests([d.key()]),7);case 7:g=m.h;h=g[0];k=h.sessionIds.includes(a);l=void 0==h.expiration||h.expiration>b;if(!k||!l){m.D(3);break}return A(m,f.updateManifestExpiration(d.key(),b),3);case 3:return wa(m),A(m,e.destroy(),10);case 10:xa(m,0);break;case 2:J(m),m.D(3)}})};
789
790
  dh["application/x-offline-manifest"]=function(){return new Rs};function Ss(){}function Ts(a){var b=Ks(a);b&&"manifest"==b.g?(a={uri:a,originalUri:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=cf(a)):a=b&&"segment"==b.g?Us(b.key(),b):af(new O(2,1,9004,a));return a}
790
- function Us(a,b){var c=new qs;return cf(void 0).na(function(){return c.init()}).na(function(){return us(c,b.Ta(),b.Ca())}).na(function(d){return d.getSegments([b.key()])}).na(function(d){return{uri:b,data:d[0].data,headers:{}}}).finally(function(){return c.destroy()})}M("shaka.offline.OfflineScheme",Ss);Ss.plugin=Ts;mf("offline",Ts);function Vs(a,b,c){var d,e,f,g,h,k;return K(function(l){switch(l.g){case 1:d=[];for(var m=[],p=r(c),n=p.next();!n.done;n=p.next()){n=n.value;for(var t=!1,y=r(m),x=y.next();!x.done;x=y.next())if(x=x.value,Ws(x.info,n)){x.sessionIds.push(n.sessionId);t=!0;break}t||m.push({info:n,sessionIds:[n.sessionId]})}e=r(m);f=e.next();case 2:if(f.done){l.D(4);break}g=f.value;h=Xs(a,b,g);return A(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.D(2);break;case 4:return l.return(d)}})}
791
+ function Us(a,b){var c=new qs;return cf(void 0).oa(function(){return c.init()}).oa(function(){return us(c,b.Ta(),b.Ca())}).oa(function(d){return d.getSegments([b.key()])}).oa(function(d){return{uri:b,data:d[0].data,headers:{}}}).finally(function(){return c.destroy()})}M("shaka.offline.OfflineScheme",Ss);Ss.plugin=Ts;mf("offline",Ts);function Vs(a,b,c){var d,e,f,g,h,k;return K(function(l){switch(l.g){case 1:d=[];for(var m=[],p=r(c),n=p.next();!n.done;n=p.next()){n=n.value;for(var t=!1,y=r(m),x=y.next();!x.done;x=y.next())if(x=x.value,Ws(x.info,n)){x.sessionIds.push(n.sessionId);t=!0;break}t||m.push({info:n,sessionIds:[n.sessionId]})}e=r(m);f=e.next();case 2:if(f.done){l.D(4);break}g=f.value;h=Xs(a,b,g);return A(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.D(2);break;case 4:return l.return(d)}})}
791
792
  function Xs(a,b,c){var d,e;return K(function(f){switch(f.g){case 1:return d=new og({Pb:b,onError:function(){},Bd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),F(f,2),d.configure(a),A(f,yg(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:va(f,3);break;case 2:return J(f),A(f,d.destroy(),5);case 5:return f.return([]);case 3:return F(f,6),A(f,Jg(d),8);case 8:va(f,7);break;case 6:return J(f),A(f,d.destroy(),
792
793
  9);case 9:return f.return([]);case 7:return e=[],A(f,Promise.all(c.sessionIds.map(function(g){return K(function(h){if(1==h.g)return F(h,2),A(h,Kg(d,g),4);if(2!=h.g)return e.push(g),va(h,0);J(h);C(h)})})),10);case 10:return A(f,d.destroy(),11);case 11:return f.return(e)}})}
793
794
  function Ws(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&cc(a.audioCapabilities,b.audioCapabilities,c)&&cc(a.videoCapabilities,b.videoCapabilities,c)};function Ys(a,b,c){var d=b.presentationTimeline.getDuration();b=Zs(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function $s(a,b){var c=Ms(new Ls(a.Ta(),a.Ca()),b),d=b.appMetadata||{};c=Zs(c);return{offlineUri:a.toString(),originalManifestUri:b.originalManifestUri,duration:b.duration,size:b.size,expiration:b.expiration,tracks:c,appMetadata:d,isIncomplete:b.isIncomplete||!1}}
@@ -795,7 +796,7 @@ function Zs(a){var b=[],c=we(a.variants);c=r(c);for(var d=c.next();!d.done;d=c.n
795
796
  case 4:b.h=null,b.g=null,C(k)}})})}function ft(){if(Mc())a:{var a=r(rs.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}q=et.prototype;q.destroy=function(){return this.l.destroy()};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=ql(a,b));return yl(this.h,a)};q.getConfiguration=function(){var a=wl();yl(a,this.h,wl());return a};q.Ic=function(){return this.g};
796
797
  q.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new $r(this.g);this.j.push(f);b=gt(this,a,b||{},function(){var g;return K(function(h){if(1==h.g)return A(h,ch(a,d.g,e.manifest.retryParameters,c||null),2);g=h.h;return h.return(g())})},e,f);b=new $e(b,function(){return as(f)});b.finally(function(){bc(d.j,f)});return ht(this,b)};
797
798
  function gt(a,b,c,d,e,f){var g,h,k,l,m,p,n,t,y,x,v,w,D,z;return K(function(B){switch(B.g){case 1:return it(),h=g=null,k=new qs,p=m=l=null,F(B,2,3),A(B,d(),5);case 5:return g=B.h,A(B,jt(a,b,g,e),6);case 6:n=B.h;kt(a);t=!n.presentationTimeline.U()&&!n.presentationTimeline.Mb();if(!t)throw new O(2,9,9005,b);return A(B,lt(a,n,function(G){p=p||G},e),7);case 7:h=B.h;kt(a);if(p)throw p;return A(B,mt(n,e),8);case 8:return A(B,k.init(),9);case 9:return kt(a),A(B,ss(k),10);case 10:return l=B.h,kt(a),y=nt(h,
798
- n,b,c,e,f),x=y.Wg,v=y.Re,A(B,l.Ca.addManifests([x]),11);case 11:w=B.h;kt(a);m=w[0];kt(a);if(p)throw p;return A(B,ot(a,v,m,x,f,e,l.Ca,n,h),12);case 12:return kt(a),D=new Js("manifest",l.path.Ta,l.path.Ca,m),B.return($s(D,x));case 3:return wa(B),A(B,k.destroy(),13);case 13:if(!g){B.D(14);break}return A(B,g.stop(),14);case 14:if(!h){B.D(16);break}return A(B,h.destroy(),16);case 16:xa(B,0);break;case 2:z=J(B);if(null==m){B.D(18);break}return A(B,pt(m),18);case 18:throw p||z;}})}
799
+ n,b,c,e,f),x=y.Yg,v=y.Re,A(B,l.Ca.addManifests([x]),11);case 11:w=B.h;kt(a);m=w[0];kt(a);if(p)throw p;return A(B,ot(a,v,m,x,f,e,l.Ca,n,h),12);case 12:return kt(a),D=new Js("manifest",l.path.Ta,l.path.Ca,m),B.return($s(D,x));case 3:return wa(B),A(B,k.destroy(),13);case 13:if(!g){B.D(14);break}return A(B,g.stop(),14);case 14:if(!h){B.D(16);break}return A(B,h.destroy(),16);case 16:xa(B,0);break;case 2:z=J(B);if(null==m){B.D(18);break}return A(B,pt(m),18);case 18:throw p||z;}})}
799
800
  function ot(a,b,c,d,e,f,g,h,k){var l,m,p,n,t,y,x,v,w,D;return K(function(z){switch(z.g){case 1:l={};m=0;p=function(B,G){var E,H,I,L,Q,V,aa;return K(function(ea){if(1==ea.g){E={};H=r(B);for(I=H.next();!I.done;E={Fb:E.Fb},I=H.next())E.Fb=I.value,L=Xr(E.Fb,f),Q=E.Fb.i,V=E.Fb.h,aa=function(la){return function(Ca){var Ia,Ja,Na;return K(function(Oa){if(1==Oa.g)return A(Oa,g.addSegments([{data:Ca}]),2);Ia=Oa.h;kt(a);Ja=la.Fb.g;Na=Wr(Ja);l[Na]=Ia[0];m+=Ca.byteLength;C(Oa)})}}(E),cs(e,E.Fb.groupId,L,Q,V,aa);
800
801
  return A(ea,es(e),2)}if(!G)return ea.D(0);kt(a);qt(h,d,k,f);return A(ea,g.updateManifest(c,d),0)})};n=!1;F(z,2);if(!rt(h)||!n||st(h)){z.D(4);break}return A(z,p(b.filter(function(B){return B.h}),!0),5);case 5:return kt(a),b=b.filter(function(B){return!B.h}),t=l,y=m,l={},m=0,A(z,tt(g,c,d,t,y,function(){return kt(a)}),6);case 6:kt(a);case 4:if(n){z.D(7);break}return A(z,p(b,!1),8);case 8:return kt(a),x=l,v=m,l={},m=0,A(z,tt(g,c,d,x,v,function(){return kt(a)}),9);case 9:kt(a);case 7:va(z,0);break;case 2:return w=
801
802
  J(z),D=Object.values(l),A(z,g.removeSegments(D,function(){}),10);case 10:throw w;}})}function pt(a){var b,c,d,e;return K(function(f){switch(f.g){case 1:return b=new qs,A(f,b.init(),2);case 2:return A(f,ss(b),3);case 3:return c=f.h,d=new Js("manifest",c.path.Ta,c.path.Ca,a),A(f,b.destroy(),4);case 4:return e=new et,A(f,e.remove(d.toString()),0)}})}
@@ -805,11 +806,11 @@ function mt(a,b){var c,d,e,f,g,h,k,l,m,p,n,t,y,x,v,w,D,z,B,G,E,H,I,L,Q,V,aa,ea,l
805
806
  n.value,d.push(oe(t));y=r(a.imageStreams);for(x=y.next();!x.done;x=y.next())v=x.value,d.push(pe(v));return A(Ca,b.offline.trackSelectionCallback(d),3);case 3:w=Ca.h;D=a.presentationTimeline.getDuration();z=0;B=r(w);for(G=B.next();!G.done;G=B.next())E=G.value,H=E.bandwidth*D/8,z+=H;F(Ca,4);return A(Ca,b.offline.downloadSizeCallback(z),6);case 6:I=Ca.h;if(!I)throw new O(2,9,9014);va(Ca,5);break;case 4:L=J(Ca);if(L instanceof O)throw L;throw new O(2,9,9015);case 5:Q=new Set;V=new Set;aa=new Set;ea=r(w);
806
807
  for(G=ea.next();!G.done;G=ea.next())la=G.value,"variant"==la.type&&Q.add(la.id),"text"==la.type&&V.add(la.id),"image"==la.type&&aa.add(la.id);a.variants=a.variants.filter(function(Ia){return Q.has(Ia.id)});a.textStreams=a.textStreams.filter(function(Ia){return V.has(Ia.id)});a.imageStreams=a.imageStreams.filter(function(Ia){return aa.has(Ia.id)});ut(a);C(Ca)}})}
807
808
  function nt(a,b,c,d,e,f){var g=Ys(c,b,d),h=e.offline.progressCallback;bs(f,function(t,y){g.size=y;h(g,t)},function(t,y){k&&e.offline.usePersistentLicense&&l==y&&Gg(a,"cenc",t)});var k=rt(b)&&!st(b),l=null;k&&(l=vt.get(a.g.keySystem));for(var m=new at,p=r(b.textStreams),n=p.next();!n.done;n=p.next())m.g[n.value.id]=52;p=r(b.imageStreams);for(n=p.next();!n.done;n=p.next())ct(m,n.value);n=r(b.variants);for(p=n.next();!p.done;p=n.next())bt(m,p.value);m=wt(f,m,b,e);f=m.streams;m=m.Re;n=a.g;p=e.offline.usePersistentLicense;
808
- n&&p&&(n.initData=[]);return{Wg:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Hc(),streams:f,sessionIds:p?Pg(a):[],drmInfo:n,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode},Re:m}}function rt(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
809
+ n&&p&&(n.initData=[]);return{Yg:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Hc(),streams:f,sessionIds:p?Pg(a):[],drmInfo:n,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode},Re:m}}function rt(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
809
810
  function st(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 qt(a,b,c,d){b.expiration=c.Hc();c=Pg(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(rt(a)&&d.offline.usePersistentLicense&&!c.length)throw new O(2,9,9007);}q.remove=function(a){return xt(this,yt(this,a))};
810
811
  function yt(a,b){var c,d,e,f,g,h;return K(function(k){switch(k.g){case 1:it();c=Ks(b);if(null==c||"manifest"!=c.g)throw new O(2,9,9004,b);d=c;e=new qs;ua(k);return A(k,e.init(),4);case 4:return A(k,us(e,d.Ta(),d.Ca()),5);case 5:return f=k.h,A(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],A(k,Promise.all([zt(a,h,e),At(f,d,h)]),2);case 2:return wa(k),A(k,e.destroy(),8);case 8:xa(k,0)}})}
811
812
  function Bt(a,b){for(var c=[],d=r(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:ud(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:ud(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function zt(a,b,c){return K(function(d){return A(d,Ct(a.g,a.h.drm,c,b),0)})}
812
- function At(a,b,c){function d(){}var e=Dt(c);$s(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}q.kh=function(){return xt(this,Et(this))};
813
+ function At(a,b,c){function d(){}var e=Dt(c);$s(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}q.mh=function(){return xt(this,Et(this))};
813
814
  function Et(a){var b,c,d,e,f,g,h,k,l,m;return K(function(p){switch(p.g){case 1:return it(),b=a.g,c=a.h.drm,d=new qs,e=!1,ua(p),A(p,d.init(),4);case 4:f=[],vs(d,function(n){return f.push(n)}),g=r(f),h=g.next();case 5:if(h.done){p.D(2);break}k=h.value;return A(p,k.getAll(),8);case 8:return l=p.h,A(p,Vs(c,b,l),9);case 9:return m=p.h,A(p,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();p.D(5);break;case 2:return wa(p),A(p,d.destroy(),11);case 11:xa(p,3);break;case 3:return p.return(!e)}})}
814
815
  q.list=function(){return xt(this,Ft())};function Ft(){var a,b,c;return K(function(d){switch(d.g){case 1:return it(),a=[],b=new qs,ua(d),A(d,b.init(),4);case 4:return c=Promise.resolve(),ts(b,function(e,f){c=c.then(function(){var g;return K(function(h){if(1==h.g)return A(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){k=$s(new Js("manifest",e.Ta,e.Ca,l),k);a.push(k)});C(h)})})}),A(d,c,2);case 2:return wa(d),A(d,b.destroy(),6);case 6:xa(d,3);break;case 3:return d.return(a)}})}
815
816
  function jt(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,modifyManifestRequest:function(){},modifySegmentRequest:function(){},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(){}},c.configure(d.manifest),
@@ -823,9 +824,9 @@ function ht(a,b){var c=b.promise;a.i.push(c);return b.finally(function(){bc(a.i,
823
824
  function Ct(a,b,c,d){var e,f,g;return K(function(h){if(1==h.g){if(!d.drmInfo)return h.return();e=ws(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:Bt(d,!1),videoCapabilities:Bt(d,!0)}});return A(h,Vs(b,a,f),2)}return 3!=h.g?(g=h.h,A(h,e.remove(g),3)):A(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
824
825
  function Gt(a){for(var b=new Set,c=r(a.textStreams),d=c.next();!d.done;d=c.next())b.add(d.value);c=r(a.imageStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=r(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}
825
826
  function ut(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=r(b),d=c.next();!d.done;d=c.next()){d=r(b);for(var e=d.next();!e.done;e=d.next());}b=r(a);for(c=b.next();!c.done;c=b.next())for(c=r(a),d=c.next();!d.done;d=c.next());}M("shaka.offline.Storage",et);et.deleteAll=function(){var a;return K(function(b){return 1==b.g?(a=new qs,ua(b),A(b,xs(a),2)):5!=b.g?(wa(b),A(b,a.destroy(),5)):xa(b,0)})};et.prototype.list=et.prototype.list;
826
- et.prototype.removeEmeSessions=et.prototype.kh;et.prototype.remove=et.prototype.remove;et.prototype.store=et.prototype.store;et.prototype.getNetworkingEngine=et.prototype.Ic;et.prototype.getConfiguration=et.prototype.getConfiguration;et.prototype.configure=et.prototype.configure;et.prototype.destroy=et.prototype.destroy;et.support=ft;
827
+ et.prototype.removeEmeSessions=et.prototype.mh;et.prototype.remove=et.prototype.remove;et.prototype.store=et.prototype.store;et.prototype.getNetworkingEngine=et.prototype.Ic;et.prototype.getConfiguration=et.prototype.getConfiguration;et.prototype.configure=et.prototype.configure;et.prototype.destroy=et.prototype.destroy;et.support=ft;
827
828
  var vt=(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");
828
- fn.offline=ft;function Jt(){}function Kt(){for(var a=r(Lt),b=a.next();!b.done;b=a.next()){b=b.value;try{b.dg()}catch(c){Ua("Error installing polyfill!",c)}}}function Mt(a,b){a={priority:b||0,dg:a};for(b=0;b<Lt.length;b++)if(Lt[b].priority<a.priority){Lt.splice(b,0,a);return}Lt.push(a)}M("shaka.polyfill",Jt);Jt.register=Mt;Jt.installAll=Kt;var Lt=[];function Nt(){this.g=new Ot}function Pt(){window.AbortController||(window.AbortController=Nt,window.AbortSignal=Ot)}Nt.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 N("abort");if(b.onabort)b.onabort(a);b.dispatchEvent(a)}};fa.Object.defineProperties(Nt.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}});Jt.AbortController=Nt;Nt.install=Pt;
829
+ fn.offline=ft;function Jt(){}function Kt(){for(var a=r(Lt),b=a.next();!b.done;b=a.next()){b=b.value;try{b.eg()}catch(c){Ua("Error installing polyfill!",c)}}}function Mt(a,b){a={priority:b||0,eg:a};for(b=0;b<Lt.length;b++)if(Lt[b].priority<a.priority){Lt.splice(b,0,a);return}Lt.push(a)}M("shaka.polyfill",Jt);Jt.register=Mt;Jt.installAll=Kt;var Lt=[];function Nt(){this.g=new Ot}function Pt(){window.AbortController||(window.AbortController=Nt,window.AbortSignal=Ot)}Nt.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 N("abort");if(b.onabort)b.onabort(a);b.dispatchEvent(a)}};fa.Object.defineProperties(Nt.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}});Jt.AbortController=Nt;Nt.install=Pt;
829
830
  function Ot(){db.call(this);this.h=!1;this.g=void 0;this.onabort=null}u(Ot,db);fa.Object.defineProperties(Ot.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.h}},reason:{configurable:!0,enumerable:!0,get:function(){return this.g}}});Mt(Pt);function Qt(){}function Rt(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=r(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())St(b.value)}function St(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)}})}Jt.Aria=Qt;Qt.install=Rt;Mt(Rt);function Tt(){}function Ut(){Vt()}Jt.EncryptionScheme=Tt;Tt.install=Ut;Mt(Ut,-2);function Wt(){}
830
831
  function Xt(){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}}),
831
832
  Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Yt);document.addEventListener("webkitfullscreenerror",Yt);document.addEventListener("mozfullscreenchange",Yt);document.addEventListener("mozfullscreenerror",Yt);document.addEventListener("MSFullscreenChange",Yt);document.addEventListener("MSFullscreenError",Yt)}}
@@ -909,7 +910,7 @@ function bw(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exe
909
910
  b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=gw(c,d[1]))a.region=b}else if(c=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=1,a.line=Number(c[1]),c[2]&&(a.lineAlign=sc[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=kc,a.line=Number(c[1]),c[2]&&(a.lineAlign=sc[c[2].toUpperCase()])}function gw(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}
910
911
  function Zv(a){a=Gq(a,cw);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)}function dw(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||""}M("shaka.text.VttTextParser",Yv);Yv.prototype.parseMedia=Yv.prototype.parseMedia;
911
912
  Yv.prototype.setSequenceMode=Yv.prototype.setSequenceMode;Yv.prototype.parseInit=Yv.prototype.parseInit;var cw=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;Bd["text/vtt"]=function(){return new Yv};Bd['text/vtt; codecs="vtt"']=function(){return new Yv};Bd['text/vtt; codecs="wvtt"']=function(){return new Yv};function hw(){this.g=null}hw.prototype.parseInit=function(a){var b=this,c=!1;(new Jf).box("moov",Nf).box("trak",Nf).box("mdia",Nf).X("mdhd",function(d){d=pi(d.reader,d.version);b.g=d.timescale}).box("minf",Nf).box("stbl",Nf).X("stsd",Pf).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new O(2,2,2008);if(!c)throw new O(2,2,2008);};hw.prototype.setSequenceMode=function(){};
912
- hw.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new O(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Jf).box("moof",Nf).box("traf",Nf).X("tfdt",function(z){g=!0;c=oi(z.reader,z.version).gf}).X("tfhd",function(z){l=ni(z.reader,z.flags).tf}).X("trun",function(z){h=!0;d=qi(z.reader,z.version,z.flags).Kf}).box("mdat",Qf(function(z){k=!0;e=z})).parse(a,!1);if(!k&&!g&&!h)throw new O(2,2,2008);a=c;for(var m=new Gf(e,0),p=r(d),n=p.next();!n.done;n=p.next()){n=n.value;
913
+ hw.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new O(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Jf).box("moof",Nf).box("traf",Nf).X("tfdt",function(z){g=!0;c=oi(z.reader,z.version).gf}).X("tfhd",function(z){l=ni(z.reader,z.flags).tf}).X("trun",function(z){h=!0;d=qi(z.reader,z.version,z.flags).Lf}).box("mdat",Qf(function(z){k=!0;e=z})).parse(a,!1);if(!k&&!g&&!h)throw new O(2,2,2008);a=c;for(var m=new Gf(e,0),p=r(d),n=p.next();!n.done;n=p.next()){n=n.value;
913
914
  var t=n.Be||l,y=n.Hd?c+n.Hd:a;a=y+(t||0);var x=0;do{var v=m.R();x+=v;var w=m.R(),D=null;"vttc"==Rf(w)?8<v&&(D=m.Cb(v-8)):m.skip(v-8);t&&D&&(v=iw(D,b.periodStart+y/this.g,b.periodStart+a/this.g),f.push(v))}while(n.sampleSize&&x<n.sampleSize)}return f.filter(zb)};function iw(a,b,c){var d,e,f;(new Jf).box("payl",Qf(function(g){d=bd(g)})).box("iden",Qf(function(g){e=bd(g)})).box("sttg",Qf(function(g){f=bd(g)})).parse(a);return d?jw(d,e,f,b,c):null}
914
915
  function jw(a,b,c,d,e){d=new ec(d,e,"");aw(a,d,new Map);b&&(d.id=b);if(c)for(a=new Eq(c),b=Hq(a);b;)bw(d,b,[]),Fq(a),b=Hq(a);return d}M("shaka.text.Mp4VttParser",hw);hw.prototype.parseMedia=hw.prototype.parseMedia;hw.prototype.setSequenceMode=hw.prototype.setSequenceMode;hw.prototype.parseInit=hw.prototype.parseInit;Bd['application/mp4; codecs="wvtt"']=function(){return new hw};function kw(){}kw.prototype.parseInit=function(){};kw.prototype.setSequenceMode=function(){};kw.prototype.parseMedia=function(a){var b=bd(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=r(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new Eq(c[0]),e=lw(d),f=Gq(d,/,/g);d=lw(d);if(null==e||null==f||null==d)throw new O(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new ec(e,d,c.slice(1).join("\n").trim()))}return a};
915
916
  function lw(a){a=Gq(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)}M("shaka.text.SbvTextParser",kw);kw.prototype.parseMedia=kw.prototype.parseMedia;kw.prototype.setSequenceMode=kw.prototype.setSequenceMode;kw.prototype.parseInit=kw.prototype.parseInit;Bd["text/x-subviewer"]=function(){return new kw};function mw(){this.g=new Yv}mw.prototype.parseInit=function(){};mw.prototype.setSequenceMode=function(){};mw.prototype.parseMedia=function(a,b){a=bd(a);a=nw(a);a=Cc(fd(a));return this.g.parseMedia(a,b)};function nw(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=r(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")+"\n\n";return b}M("shaka.text.SrtTextParser",mw);
@@ -988,7 +989,7 @@ u:"Chinese Simplified"},"zh-HANT":{s:"\u4e2d\u6587\u7e41\u9ad4",u:"Chinese Tradi
988
989
  Nw.next()){var Pw=Ow.value;Mw[Pw.toLowerCase()]=Mw[Pw]};function X(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new yf;this.localization=this.controls.Ba;this.player=this.controls.dc();this.video=this.controls.Bb();this.adManager=this.player.nd();this.ad=b.getAd();this.eventManager.o(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null})}
989
990
  X.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};M("shaka.ui.Element",X);X.prototype.release=X.prototype.release;function Qw(a){return Rw(a,"shaka-back-to-overflow-button")}function Rw(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function Sw(a){a&&(a=Rw(a,"shaka-chosen-item"))&&a.parentElement.focus()}function Tw(){var a=S("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function Y(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
990
991
  function Uw(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60);a=Math.floor(a%60);10>a&&(a="0"+a);a=d+":"+a;b&&(10>d&&(a="0"+a),a=c+":"+a);return a};function Vw(a,b){X.call(this,a,b);var c=this;this.i=S("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=S("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new P(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=Uw(e-d,!1)+" / "+Uw(e,!1),1<c.ad.getSequenceLength()?c.h.textContent=d:(e=c.localization.resolve("AD_TIME"),c.h.textContent=e.replace("[AD_TIME]",d))):(c.g.stop(),c.h.textContent=
991
- ""))});this.eventManager.o(this.localization,"locale-updated",function(){});this.eventManager.o(this.localization,"locale-changed",function(){});this.eventManager.o(this.adManager,"ad-started",function(){c.g.Aa();c.g.ka(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.Aa(),this.g.ka(.5))}u(Vw,X);Vw.prototype.release=function(){this.g.stop();this.g=null;X.prototype.release.call(this)};M("shaka.ui.AdCounter",Vw);function Ww(a,b){X.call(this,a,b);var c=this;this.g=S("div");this.g.classList.add("shaka-ad-position");Y(this.g,!1);this.parent.appendChild(this.g);this.h=S("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.o(this.localization,"locale-updated",function(){c.ad&&Xw(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&Xw(c)});this.eventManager.o(this.adManager,"ad-started",function(){Xw(c)});this.eventManager.o(this.adManager,
992
+ ""))});this.eventManager.o(this.localization,"locale-updated",function(){});this.eventManager.o(this.localization,"locale-changed",function(){});this.eventManager.o(this.adManager,"ad-started",function(){c.g.Aa();c.g.na(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.Aa(),this.g.na(.5))}u(Vw,X);Vw.prototype.release=function(){this.g.stop();this.g=null;X.prototype.release.call(this)};M("shaka.ui.AdCounter",Vw);function Ww(a,b){X.call(this,a,b);var c=this;this.g=S("div");this.g.classList.add("shaka-ad-position");Y(this.g,!1);this.parent.appendChild(this.g);this.h=S("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.o(this.localization,"locale-updated",function(){c.ad&&Xw(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&Xw(c)});this.eventManager.o(this.adManager,"ad-started",function(){Xw(c)});this.eventManager.o(this.adManager,
992
993
  "ad-stopped",function(){c.h.textContent="";Y(c.g,!1)});this.ad&&Xw(this)}u(Ww,X);function Xw(a){var b=a.ad.getSequenceLength();if(1<b){var c=a.ad.getPositionInSequence();a.h.textContent=a.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(c)).replace("[NUM_ADS]",String(b));Y(a.g,!0)}}M("shaka.ui.AdPosition",Ww);function Yw(a,b){X.call(this,a,b);var c=this;this.button=Kk();this.parent.appendChild(this.button);this.eventManager.o(this.localization,"locale-updated",function(){c.g()});this.eventManager.o(this.localization,"locale-changed",function(){c.g()});this.eventManager.o(this.video,"play",function(){c.g();c.h()});this.eventManager.o(this.video,"pause",function(){c.g();c.h()});this.eventManager.o(this.video,"seeking",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-paused",function(){c.g();
993
994
  c.h()});this.eventManager.o(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.o(this.button,"click",function(){c.ad&&c.ad.isLinear()?Zw(c.controls):$w(c.controls)});this.ad&&(this.g(),this.h())}u(Yw,X);Yw.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.A.paused&&!a.$;return a};Yw.prototype.g=function(){};Yw.prototype.h=function(){};
994
995
  M("shaka.ui.PlayButton",Yw);function ax(a,b){Yw.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}u(ax,Yw);ax.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};ax.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};M("shaka.ui.BigPlayButton",ax);function bx(a,b){X.call(this,a,b);var c=this;this.j=this.controls.i;this.h=this.controls.g;this.i=[];this.g=S("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-context-menu");this.g.classList.add("shaka-hidden");this.h.appendChild(this.g);this.eventManager.o(this.h,"contextmenu",function(d){if(c.g.classList.contains("shaka-hidden")){d.preventDefault();var e=c.h.getBoundingClientRect();c.g.style.left=d.clientX-e.left+"px";c.g.style.top=d.clientY-e.top+"px";Y(c.g,!0)}else Y(c.g,
@@ -1003,19 +1004,19 @@ q.release=function(){this.h&&(this.h.stop(),this.h=null,this.A.stop(),this.A=nul
1003
1004
  q.update=function(){var a=this.m.seekBarColors,b=this.getValue(),c=this.video.buffered.length,d=c?this.video.buffered.start(0):0,e=c?this.video.buffered.end(c-1):0,f=this.player.Ka(),g=f.end-f.start;this.setRange(f.start,f.end);kx(this)?(Y(this.container,!0),0==c?this.container.style.background=a.base:(c=(Math.max(d,f.start)-f.start)/g||0,e=(Math.min(e,f.end)-f.start)/g||0,b=(Math.min(Math.max(b,f.start),f.end)-f.start)/g||0,this.container.style.background="linear-gradient("+["to right",(this.m.showUnbufferedStart?
1004
1005
  a.base:a.played)+" "+100*c+"%",a.played+" "+100*c+"%",a.played+" "+100*b+"%",a.buffered+" "+100*b+"%",a.buffered+" "+100*e+"%",a.base+" "+100*e+"%"].join()+")")):Y(this.container,!1)};
1005
1006
  function ix(a){if(a.i.length){for(var b=a.player.Ka(),c=b.end-b.start,d=["to right"],e=[],f=a.m.seekBarColors.adBreaks,g=!1,h=r(a.i),k=h.next();!k.done;k=h.next())if(k=k.value,-1!=k.start||k.end||(g=!0),k.start>=b.start&&k.start<b.end&&!(k.end&&k.end>b.end)){var l=(k.start-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}b=r(e);for(k=b.next();!k.done;k=b.next())c=k.value,d.push("transparent "+100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+
1006
- 100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.j.style.background="linear-gradient("+d.join(",")+")"}else a.j.style.background="transparent"}function lx(a){ix(a);var b=a.player.Ka();b=b.end-b.start;a.player.U()&&5<b&&a.A.ka(1)}function kx(a){var b=a.player.Ka();b=b.end-b.start;return a.player.U()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function jx(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}M("shaka.ui.SeekBar",hx);function mx(){}
1007
+ 100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.j.style.background="linear-gradient("+d.join(",")+")"}else a.j.style.background="transparent"}function lx(a){ix(a);var b=a.player.Ka();b=b.end-b.start;a.player.U()&&5<b&&a.A.na(1)}function kx(a){var b=a.player.Ka();b=b.end-b.start;return a.player.U()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function jx(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}M("shaka.ui.SeekBar",hx);function mx(){}
1007
1008
  mx.prototype.create=function(a,b){return new hx(a,b)};hx.Factory=mx;function Z(a,b,c,d){db.call(this);var e=this;this.T=!0;this.i=d;this.C=new Xn(c,a,this.i.castReceiverAppId,this.i.castAndroidReceiverCompatible);this.ab=!0;this.A=this.C.Bb();this.B=c;this.F=this.C.dc();this.ua=a;this.j=b;this.Za=this.F.nd();this.l=this.m=null;this.$=!1;this.G=[];this.wb=[];this.ib=!1;this.aa=new P(function(){e.j.style.cursor="none";e.ib=!1;nx(e)});this.ea=new P(function(){e.g.removeAttribute("shown");e.I.S(2)});this.I=new P(function(){for(var f=r(e.G),g=f.next();!g.done;g=f.next())Y(g.value,
1008
- !1)});this.Oa=new P(function(){e.Nb()&&ox(e)});this.J=null;this.H=[];this.Ba=px();this.h=new yf;this.configure(this.i);qx(this);this.ma=new Set;rx(this);this.Oa.ka(.125);this.h.o(this.Ba,"locale-changed",function(f){e.Za.setLocale(f.locales[0])})}u(Z,db);q=Z.prototype;
1009
+ !1)});this.Oa=new P(function(){e.Nb()&&ox(e)});this.J=null;this.H=[];this.Ba=px();this.h=new yf;this.configure(this.i);qx(this);this.ha=new Set;rx(this);this.Oa.na(.125);this.h.o(this.Ba,"locale-changed",function(f){e.Za.setLocale(f.locales[0])})}u(Z,db);q=Z.prototype;
1009
1010
  q.destroy=function(){var a=this;return K(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.B){b.D(2);break}return A(b,document.exitPictureInPicture(),2);case 2:a.h&&(a.h.release(),a.h=null);a.aa&&(a.aa.stop(),a.aa=null);a.ea&&(a.ea.stop(),a.ea=null);a.I&&(a.I.stop(),a.I=null);a.Oa&&(a.Oa.stop(),a.Oa=null);sx(a);a.g&&(a.j.removeChild(a.g),a.g=null);if(!a.C){b.D(4);break}return A(b,a.C.destroy(),5);case 5:a.C=null;case 4:if(!a.ua){b.D(6);break}return A(b,a.ua.destroy(),7);case 7:a.ua=
1010
- null;case 6:a.F=null,a.B=null,a.A=null,a.Ba=null,a.ma.clear(),db.prototype.release.call(a),C(b)}})};function sx(a){for(var b=r(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function tx(a,b){ux.set(a,b)}q.cg=function(a){this.ab=a;rx(this)};q.Vg=function(){nx(this)};
1011
+ null;case 6:a.F=null,a.B=null,a.A=null,a.Ba=null,a.ha.clear(),db.prototype.release.call(a),C(b)}})};function sx(a){for(var b=r(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function tx(a,b){ux.set(a,b)}q.dg=function(a){this.ab=a;rx(this)};q.Xg=function(){nx(this)};
1011
1012
  q.configure=function(a){this.i=a;this.C.nf(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.l&&(this.l=null);this.gb&&(this.gb=null);this.$a&&(this.$a=null);this.g?(Lk(this.g),sx(this)):(vx(this),wx(this));this.j.classList.add("shaka-video-container");this.B.classList.add("shaka-video");xx(this);this.i.addBigPlayButton&&yx(this);this.i.customContextMenu&&(this.$a=new bx(this.Z,this),this.H.push(this.$a));this.ba||zx(this);this.hb=S("div");this.hb.classList.add("shaka-server-side-ad-container");
1012
1013
  this.g.appendChild(this.hb);Ax(this);this.G=Array.from(this.j.getElementsByClassName("shaka-settings-menu"));this.G.push.apply(this.G,ja(Array.from(this.j.getElementsByClassName("shaka-overflow-menu"))));Bx(this);this.wb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));nx(this);a=r(this.j.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.h.o(b,"click",c);this.h.o(b,"dblclick",
1013
- c)}};q.He=function(a){(this.T=a)?(this.j.setAttribute("shaka-controls","true"),this.B.tabIndex=-1,this.B.controls=!1):this.j.removeAttribute("shaka-controls");nx(this)};q.Nf=function(a){this.B.controls=a;this.B.tabIndex=a?0:-1;a&&this.He(!1)};q.getAd=function(){return this.m};q.og=function(){return this.C};q.Bg=function(){return this.Ba};q.Pg=function(){return this.j};q.Bb=function(){return this.A};q.Ag=function(){return this.B};q.dc=function(){return this.F};q.zg=function(){return this.ua};
1014
- q.ug=function(){return this.g};q.Jg=function(){return this.hb};q.qg=function(){return this.P};q.rg=function(){return this.i};q.Ug=function(){return this.$};q.Le=function(a){this.$=a};q.Sg=function(){return this.ab};q.yf=function(){return this.l?this.l.getValue():this.A.currentTime};q.Of=function(a){this.J=a};q.hd=function(){return this.G.some(function(a){return!a.classList.contains("shaka-hidden")})};q.hc=function(){this.I.Aa()};
1014
+ c)}};q.He=function(a){(this.T=a)?(this.j.setAttribute("shaka-controls","true"),this.B.tabIndex=-1,this.B.controls=!1):this.j.removeAttribute("shaka-controls");nx(this)};q.Of=function(a){this.B.controls=a;this.B.tabIndex=a?0:-1;a&&this.He(!1)};q.getAd=function(){return this.m};q.pg=function(){return this.C};q.Cg=function(){return this.Ba};q.Qg=function(){return this.j};q.Bb=function(){return this.A};q.Bg=function(){return this.B};q.dc=function(){return this.F};q.Ag=function(){return this.ua};
1015
+ q.vg=function(){return this.g};q.Kg=function(){return this.hb};q.rg=function(){return this.P};q.sg=function(){return this.i};q.Wg=function(){return this.$};q.Le=function(a){this.$=a};q.Tg=function(){return this.ab};q.yf=function(){return this.l?this.l.getValue():this.A.currentTime};q.Pf=function(a){this.J=a};q.hd=function(){return this.G.some(function(a){return!a.classList.contains("shaka-hidden")})};q.hc=function(){this.I.Aa()};
1015
1016
  q.sd=function(){return document.fullscreenEnabled||this.B.webkitSupportsFullscreen?!0:!1};q.jc=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.B;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
1016
1017
  function Cx(a){var b,c;return K(function(d){switch(d.g){case 1:F(d,2);if(!document.fullscreenEnabled){b=a.B;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();d.D(4);break}if(!document.pictureInPictureElement){d.D(5);break}return A(d,document.exitPictureInPicture(),5);case 5:return A(d,a.j.requestFullscreen({navigationUI:"hide"}),7);case 7:if(!a.i.forceLandscapeOnFullscreen||!screen.orientation){d.D(4);break}F(d,9);return A(d,screen.orientation.lock("landscape"),11);case 11:va(d,4,2);break;case 9:J(d,
1017
1018
  2);case 4:va(d,0);break;case 2:c=J(d),a.dispatchEvent(new N("error",(new Map).set("detail",c))),C(d)}})}function Dx(a){var b;return K(function(c){if(!document.fullscreenEnabled)return b=a.B,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.D(0);screen.orientation&&screen.orientation.unlock();return A(c,document.exitFullscreen(),0)})}q.Se=function(){var a=this;return K(function(b){return a.jc()?A(b,Dx(a),0):A(b,Cx(a),0)})};
1018
- q.Qf=function(){Y(this.K,!0);Y(this.P,!0);this.g.setAttribute("ad-active","true")};q.Cf=function(){Y(this.K,!1);Y(this.P,!1);this.g.removeAttribute("ad-active")};function $w(a){a.T&&a.A.duration&&(a.F.kf(),a.A.paused&&!a.$?a.A.play():a.A.pause())}function Zw(a){a.m&&a.m.isPaused()?a.m.play():a.m&&a.m.pause()}
1019
+ q.Rf=function(){Y(this.K,!0);Y(this.P,!0);this.g.setAttribute("ad-active","true")};q.Cf=function(){Y(this.K,!1);Y(this.P,!1);this.g.removeAttribute("ad-active")};function $w(a){a.T&&a.A.duration&&(a.F.kf(),a.A.paused&&!a.$?a.A.play():a.A.pause())}function Zw(a){a.m&&a.m.isPaused()?a.m.play():a.m&&a.m.pause()}
1019
1020
  function vx(a){a.g=S("div");a.g.classList.add("shaka-controls-container");a.j.appendChild(a.g);a.j.setAttribute("shaka-controls","true");a.h.o(a.g,"touchstart",function(b){a.A.duration&&(a.Nb()?a.J=Date.now():(Ex(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.h.o(a.g,"click",function(){Fx(a)});a.h.o(a.g,"dblclick",function(){a.i.doubleClickForFullscreen&&a.sd()&&a.Se()})}
1020
1021
  function yx(a){var b=S("div");b.classList.add("shaka-play-button-container");a.g.appendChild(b);a.gb=new ax(b,a);a.H.push(a.gb)}function xx(a){var b=S("div");b.classList.add("shaka-scrim-container");a.g.appendChild(b)}function Gx(a){a.K=S("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.m&&a.m.isLinear();Y(a.K,b);a.N.appendChild(a.K);b=new Ww(a.K,a);a.H.push(b);b=new Vw(a.K,a);a.H.push(b)}
1021
1022
  function zx(a){a.ba=S("div");a.ba.classList.add("shaka-spinner-container");a.j.appendChild(a.ba);var b=S("div");b.classList.add("shaka-spinner");a.ba.appendChild(b);a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.classList.add("shaka-spinner-svg");a.setAttribute("viewBox","0 0 30 30");b.appendChild(a);b=document.createElementNS("http://www.w3.org/2000/svg","circle");b.classList.add("shaka-spinner-path");b.setAttribute("cx","15");b.setAttribute("cy","15");b.setAttribute("r","14.5");
@@ -1024,84 +1025,84 @@ function Ax(a){a.N=S("div");a.N.classList.add("shaka-bottom-controls");a.N.class
1024
1025
  (c=ux.get(c).create(a.Z,a),a.H.push(c)):Ua("Unrecognized control panel element requested:",c)}function Bx(a){if(a.i.addSeekBar)a.l=Hx.create(a.N,a),a.H.push(a.l);else{a=r(a.G);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function wx(a){a.P=S("div");a.P.classList.add("shaka-client-side-ad-container");Y(a.P,!1);a.h.o(a.P,"click",function(){Fx(a)});a.j.appendChild(a.P)}
1025
1026
  function qx(a){a.h.o(a.F,"buffering",function(){a.T&&Y(a.ba,a.F.Pc())});a.T&&Y(a.ba,a.F.Pc());a.h.o(window,"keydown",function(b){Ix(a,b)});a.h.o(window,"click",function(){return a.hc()});a.h.o(a,"submenuopen",function(){a.hc()});a.h.o(a.A,"play",function(){nx(a)});a.h.o(a.A,"pause",function(){nx(a)});a.h.o(a.j,"mousemove",function(b){Ex(a,b)});a.h.o(a.j,"touchmove",function(b){Ex(a,b)},{passive:!0});a.h.o(a.j,"touchend",function(b){Ex(a,b)},{passive:!0});a.h.o(a.j,"mouseleave",function(){a.J||a.aa.Aa()});
1026
1027
  a.h.o(a.C,"caststatuschanged",function(){rx(a)});a.h.o(a.j,"keydown",function(b){var c=document.activeElement,d=c&&c.classList?c.classList.contains("shaka-volume-bar"):!1,e=c&&c.classList&&c.classList.contains("shaka-seek-bar");a.g.contains(c)&&Ex(a,b);if(a.i.enableKeyboardPlaybackControls)switch(c=a.i.keyboardSeekDistance,b.key){case "ArrowLeft":a.l&&!d&&0<c&&(b.preventDefault(),Jx(a,a.l.getValue()-c));break;case "ArrowRight":a.l&&!d&&0<c&&(b.preventDefault(),Jx(a,a.l.getValue()+c));break;case "Home":a.l&&
1027
- Jx(a,a.F.Ka().start);break;case "End":a.l&&Jx(a,a.F.Ka().end);break;case " ":e&&Kx(a)}});a.h.o(a.j,"keyup",function(b){a.ma.delete(b.key)});a.h.o(a.Za,"ad-started",function(b){a.m=b.ad;a.Qf()});a.h.o(a.Za,"ad-stopped",function(){a.m=null;a.Cf()});screen.orientation&&a.h.o(screen.orientation,"change",function(){return K(function(b){return A(b,Lx(a),0)})})}
1028
- function Lx(a){return K(function(b){return a.A&&0!=a.A.readyState&&!a.C.qa()&&a.i.enableFullscreenOnRotation&&a.sd()?screen.orientation.type.includes("landscape")&&!a.jc()?A(b,Cx(a),0):screen.orientation.type.includes("portrait")&&a.jc()?A(b,Dx(a),0):b.D(0):b.return()})}
1028
+ Jx(a,a.F.Ka().start);break;case "End":a.l&&Jx(a,a.F.Ka().end);break;case " ":e&&Kx(a)}});a.h.o(a.j,"keyup",function(b){a.ha.delete(b.key)});a.h.o(a.Za,"ad-started",function(b){a.m=b.ad;a.Rf()});a.h.o(a.Za,"ad-stopped",function(){a.m=null;a.Cf()});screen.orientation&&a.h.o(screen.orientation,"change",function(){return K(function(b){return A(b,Lx(a),0)})})}
1029
+ function Lx(a){return K(function(b){return a.A&&0!=a.A.readyState&&!a.C.ra()&&a.i.enableFullscreenOnRotation&&a.sd()?screen.orientation.type.includes("landscape")&&!a.jc()?A(b,Cx(a),0):screen.orientation.type.includes("portrait")&&a.jc()?A(b,Dx(a),0):b.D(0):b.return()})}
1029
1030
  function Ex(a,b){"mousemove"==b.type&&(a.g.classList.remove("shaka-keyboard-navigation"),nx(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.J=Date.now():a.J+1E3<Date.now()&&(a.J=null);a.J&&"mousemove"==b.type||(a.j.style.cursor="",a.ib=!0,a.I.stop(),a.Nb()||(ox(a),nx(a)),a.aa.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.J||a.aa.S(3))}function Mx(a){return window.matchMedia("hover: hover").matches?a.wb.some(function(b){return b.matches(":hover")}):!1}
1030
1031
  function nx(a){var b=a.m?a.m.isPaused():!1,c=a.A.paused&&!a.$,d=a.g.classList.contains("shaka-keyboard-navigation");b||(!a.m||!a.m.isLinear())&&c||a.ib||d||Mx(a)?(ox(a),a.g.setAttribute("shown","true"),a.ea.stop()):a.ea.S(a.i.fadeDelay)}function Fx(a){a.T&&(a.hd()?a.I.Aa():a.i.singleClickForPlayAndPause&&Kx(a))}function Kx(a){a.m&&a.m.isLinear()?Zw(a):$w(a)}
1031
- function rx(a){var b=a.C.qa();a.dispatchEvent(new N("caststatuschanged",(new Map).set("newStatus",b)));b?a.g.setAttribute("casting","true"):a.g.removeAttribute("casting")}q.Nb=function(){return this.T?null!=this.g.getAttribute("shown")||null!=this.g.getAttribute("casting"):!1};function Jx(a,b){a.l.changeTo(b);a.Nb()&&ox(a)}
1032
+ function rx(a){var b=a.C.ra();a.dispatchEvent(new N("caststatuschanged",(new Map).set("newStatus",b)));b?a.g.setAttribute("casting","true"):a.g.removeAttribute("casting")}q.Nb=function(){return this.T?null!=this.g.getAttribute("shown")||null!=this.g.getAttribute("casting"):!1};function Jx(a,b){a.l.changeTo(b);a.Nb()&&ox(a)}
1032
1033
  function ox(a){if(a.l)if(a.l.setValue(a.A.currentTime),a.l.update(),a.l.isShowing())for(var b=r(a.G),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=r(a.G),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new N("timeandseekrangeupdated"))}
1033
- function Ix(a,b){a.ma.add(b.key);var c=a.hd();"Tab"==b.key&&(a.g.classList.add("shaka-keyboard-navigation"),nx(a),a.h.o(window,"mousedown",function(){a.h.sc(window,"mousedown")}));"Escape"==b.key&&a.I.Aa();c&&a.ma.has("Tab")&&Nx(a,b)}
1034
- function Nx(a,b){var c=a.G.filter(function(f){return!f.classList.contains("shaka-hidden")});if(c.length){var d=c[0];if(d.childNodes.length){for(c=d.firstElementChild;c&&c.classList.contains("shaka-hidden");)c=c.nextElementSibling;for(d=d.lastElementChild;d&&d.classList.contains("shaka-hidden");)d=d.previousElementSibling;var e=document.activeElement;a.ma.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
1035
- function px(){var a=new Tb("en");a.ia("ar",new Map([["AD_DURATION","\u0645\u062f\u0629 \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["AD_PROGRESS","\u0627\u0644\u0625\u0639\u0644\u0627\u0646 [AD_ON] \u0645\u0646 [NUM_ADS]"],["AD_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],
1034
+ function Ix(a,b){a.ha.add(b.key);var c=a.hd();"Tab"==b.key&&(a.g.classList.add("shaka-keyboard-navigation"),nx(a),a.h.o(window,"mousedown",function(){a.h.sc(window,"mousedown")}));"Escape"==b.key&&a.I.Aa();c&&a.ha.has("Tab")&&Nx(a,b)}
1035
+ function Nx(a,b){var c=a.G.filter(function(f){return!f.classList.contains("shaka-hidden")});if(c.length){var d=c[0];if(d.childNodes.length){for(c=d.firstElementChild;c&&c.classList.contains("shaka-hidden");)c=c.nextElementSibling;for(d=d.lastElementChild;d&&d.classList.contains("shaka-hidden");)d=d.previousElementSibling;var e=document.activeElement;a.ha.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
1036
+ function px(){var a=new Tb("en");a.ka("ar",new Map([["AD_DURATION","\u0645\u062f\u0629 \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["AD_PROGRESS","\u0627\u0644\u0625\u0639\u0644\u0627\u0646 [AD_ON] \u0645\u0646 [NUM_ADS]"],["AD_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],
1036
1037
  ["ENTER_LOOP_MODE","\u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062d\u0627\u0644\u064a"],["ENTER_PICTURE_IN_PICTURE",'\u0627\u0644\u062f\u062e\u0648\u0644 \u0641\u064a \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],["EXIT_FULL_SCREEN","\u0625\u0646\u0647\u0627\u0621 \u0648\u0636\u0639 \u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["EXIT_LOOP_MODE","\u0625\u064a\u0642\u0627\u0641 \u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062d\u0627\u0644\u064a"],
1037
1038
  ["EXIT_PICTURE_IN_PICTURE",'\u0627\u0644\u062e\u0631\u0648\u062c \u0645\u0646 \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],["FAST_FORWARD","\u062a\u0642\u062f\u064a\u0645 \u0633\u0631\u064a\u0639"],["FULL_SCREEN","\u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["LANGUAGE","\u0627\u0644\u0644\u063a\u0629"],["LIVE","\u0645\u0628\u0627\u0634\u0631"],["LOOP","\u062a\u0643\u0631\u0627\u0631"],["MORE_SETTINGS","\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0625\u0639\u062f\u0627\u062f\u0627\u062a"],
1038
1039
  ["MULTIPLE_LANGUAGES","\u0644\u063a\u0627\u062a \u0645\u062a\u0639\u062f\u062f\u0629"],["MUTE","\u0643\u062a\u0645 \u0627\u0644\u0635\u0648\u062a"],["NOT_APPLICABLE","\u063a\u064a\u0631 \u0633\u0627\u0631\u064d"],["OFF","\u0625\u064a\u0642\u0627\u0641"],["ON","\u062a\u0634\u063a\u064a\u0644"],["PAUSE","\u0625\u064a\u0642\u0627\u0641 \u0645\u0624\u0642\u062a"],["PICTURE_IN_PICTURE","\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0627\u0644\u0646\u0627\u0641\u0630\u0629"],["PLAY","\u0627\u0644\u062a\u0634\u063a\u064a\u0644"],
1039
1040
  ["PLAYBACK_RATE","\u0633\u0631\u0639\u0629 \u0627\u0644\u062a\u0634\u063a\u064a\u0644"],["RESOLUTION","\u062f\u0631\u062c\u0629 \u0627\u0644\u062f\u0642\u0629"],["REWIND","\u062a\u0631\u062c\u064a\u0639"],["SEEK","\u0627\u0644\u0628\u062d\u062b \u0628\u0627\u0644\u062a\u0645\u0631\u064a\u0631"],["SKIP_AD","\u062a\u062e\u0637\u0651\u064a \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["SKIP_TO_LIVE","\u0627\u0644\u0627\u0646\u062a\u0642\u0627\u0644 \u0625\u0644\u0649 \u0628\u062b \u0645\u0628\u0627\u0634\u0631"],
1040
- ["UNDETERMINED_LANGUAGE","\u063a\u064a\u0631 \u0645\u062d\u062f\u062f"],["UNMUTE","\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0635\u0648\u062a"],["UNRECOGNIZED_LANGUAGE","\u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641"],["VOLUME","\u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0648\u062a"]]));a.ia("de",new Map([["AD_DURATION","Dauer der Werbeanzeige"],["AD_PROGRESS","Werbung\u00a0[AD_ON] von\u00a0[NUM_ADS]"],["AD_TIME","Werbeanzeige: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Zur\u00fcck"],
1041
+ ["UNDETERMINED_LANGUAGE","\u063a\u064a\u0631 \u0645\u062d\u062f\u062f"],["UNMUTE","\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0635\u0648\u062a"],["UNRECOGNIZED_LANGUAGE","\u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641"],["VOLUME","\u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0648\u062a"]]));a.ka("de",new Map([["AD_DURATION","Dauer der Werbeanzeige"],["AD_PROGRESS","Werbung\u00a0[AD_ON] von\u00a0[NUM_ADS]"],["AD_TIME","Werbeanzeige: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Zur\u00fcck"],
1041
1042
  ["CAPTIONS","Untertitel"],["CAST","Streamen..."],["ENTER_LOOP_MODE","In Endlosschleife spielen"],["ENTER_PICTURE_IN_PICTURE","Bild-im-Bild-Modus aktivieren"],["EXIT_FULL_SCREEN","Vollbildmodus beenden"],["EXIT_LOOP_MODE","Endlosschleife stoppen"],["EXIT_PICTURE_IN_PICTURE","Bild-im-Bild-Modus beenden"],["FAST_FORWARD","Vorspulen"],["FULL_SCREEN","Vollbildmodus"],["LANGUAGE","Sprache"],["LIVE","Live"],["LOOP","Schleife"],["MORE_SETTINGS","Weitere Einstellungen"],["MULTIPLE_LANGUAGES","Mehrere Sprachen"],
1042
1043
  ["MUTE","Stummschalten"],["NOT_APPLICABLE","Nicht zutreffend"],["OFF","Aus"],["ON","Ein"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Bild im Bild"],["PLAY","Wiedergabe"],["PLAYBACK_RATE","Geschwindigkeit"],["RESOLUTION","Aufl\u00f6sung"],["REWIND","Zur\u00fcckspulen"],["SEEK","Suche"],["SKIP_AD","\u00dcberspringen"],["SKIP_TO_LIVE","Zum Live-Videostream wechseln"],["UNDETERMINED_LANGUAGE","Unbestimmt"],["UNMUTE","Stummschaltung aufheben"],["UNRECOGNIZED_LANGUAGE","Unbekannt"],["VOLUME","Lautst\u00e4rke"]]));
1043
- a.ia("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter Picture-in-Picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit Picture-in-Picture"],["FAST_FORWARD","Fast-forward"],
1044
+ a.ka("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter Picture-in-Picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit Picture-in-Picture"],["FAST_FORWARD","Fast-forward"],
1044
1045
  ["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["QUALITY","Quality"],["REPLAY","Replay"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip Ad"],["SKIP_TO_LIVE","Skip ahead to live"],
1045
- ["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.ia("en-GB",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter picture-in-picture"],["EXIT_FULL_SCREEN",
1046
+ ["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.ka("en-GB",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter picture-in-picture"],["EXIT_FULL_SCREEN",
1046
1047
  "Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit picture-in-picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],
1047
- ["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip ad"],["SKIP_TO_LIVE","Skip ahead to live"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]]));a.ia("es",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Enviar..."],
1048
+ ["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip ad"],["SKIP_TO_LIVE","Skip ahead to live"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]]));a.ka("es",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Enviar..."],
1048
1049
  ["ENTER_LOOP_MODE","Reproducir en bucle el v\u00eddeo actual"],["ENTER_PICTURE_IN_PICTURE","Activar el modo imagen en imagen"],["EXIT_FULL_SCREEN","Salir del modo de pantalla completa"],["EXIT_LOOP_MODE","Dejar de reproducir en bucle el v\u00eddeo actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo imagen en imagen"],["FAST_FORWARD","Avanzar r\u00e1pidamente"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Reproducir en bucle"],["MORE_SETTINGS","M\u00e1s ajustes"],
1049
1050
  ["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Imagen en imagen"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Rebobinar"],["SEEK","Buscar"],["SKIP_AD","Saltar anuncio"],["SKIP_TO_LIVE","Ir al v\u00eddeo en directo"],["SUBTITLE_FORCED","Forzado"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE",
1050
- "Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.ia("es-419",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir indefinidamente el video actual"],["ENTER_PICTURE_IN_PICTURE","Ingresar al modo de pantalla en pantalla"],["EXIT_FULL_SCREEN","Salir de pantalla completa"],
1051
+ "Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.ka("es-419",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir indefinidamente el video actual"],["ENTER_PICTURE_IN_PICTURE","Ingresar al modo de pantalla en pantalla"],["EXIT_FULL_SCREEN","Salir de pantalla completa"],
1051
1052
  ["EXIT_LOOP_MODE","Detener la repetici\u00f3n indefinida del video actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo de pantalla en pantalla"],["FAST_FORWARD","Avanzar"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Repetir indefinidamente"],["MORE_SETTINGS","M\u00e1s opciones de configuraci\u00f3n"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Detener"],
1052
- ["PICTURE_IN_PICTURE","Pantalla en pantalla"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],["SKIP_TO_LIVE","Adelantar hasta la transmisi\u00f3n en vivo"],["SUBTITLE_FORCED","Forzado"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.ia("fr",new Map([["AD_DURATION","Dur\u00e9e de l'annonce"],
1053
+ ["PICTURE_IN_PICTURE","Pantalla en pantalla"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],["SKIP_TO_LIVE","Adelantar hasta la transmisi\u00f3n en vivo"],["SUBTITLE_FORCED","Forzado"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.ka("fr",new Map([["AD_DURATION","Dur\u00e9e de l'annonce"],
1053
1054
  ["AD_PROGRESS","Annonce\u00a0[AD_ON] sur\u00a0[NUM_ADS]"],["AD_TIME","Annonce\u00a0: [AD_TIME]"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["CAPTIONS","Sous-titres"],["CAST","Caster\u2026"],["ENTER_LOOP_MODE","Lire en boucle la vid\u00e9o en cours"],["ENTER_PICTURE_IN_PICTURE","Utiliser le mode Picture-in-Picture"],["EXIT_FULL_SCREEN","Quitter le mode plein \u00e9cran"],["EXIT_LOOP_MODE","Arr\u00eater la lecture en boucle de la vid\u00e9o en cours"],["EXIT_PICTURE_IN_PICTURE","Quitter le mode\u00a0PIP (Picture-in-picture)"],
1054
1055
  ["FAST_FORWARD","Avance rapide"],["FULL_SCREEN","Plein \u00e9cran"],["LANGUAGE","Langue"],["LIVE","En direct"],["LOOP","R\u00e9p\u00e9ter"],["MORE_SETTINGS","Plus de param\u00e8tres"],["MULTIPLE_LANGUAGES","Plusieurs langues"],["MUTE","Couper le son"],["NOT_APPLICABLE","Non applicable"],["OFF","D\u00e9sactiv\u00e9e"],["ON","Activ\u00e9e"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Visionner"],["PLAYBACK_RATE","Vitesse de lecture"],["RESOLUTION","R\u00e9solution"],["REWIND",
1055
- "Retour arri\u00e8re"],["SEEK","Chercher"],["SKIP_AD","Passer l'annonce"],["SKIP_TO_LIVE","Acc\u00e9der \u00e0 la partie la plus r\u00e9cente du direct"],["UNDETERMINED_LANGUAGE","Langue ind\u00e9termin\u00e9e"],["UNMUTE","R\u00e9activer le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]]));a.ia("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_TIME","Annuncio: [AD_TIME]"],["AUTO_QUALITY","Automatica"],["BACK","Indietro"],["CAPTIONS",
1056
+ "Retour arri\u00e8re"],["SEEK","Chercher"],["SKIP_AD","Passer l'annonce"],["SKIP_TO_LIVE","Acc\u00e9der \u00e0 la partie la plus r\u00e9cente du direct"],["UNDETERMINED_LANGUAGE","Langue ind\u00e9termin\u00e9e"],["UNMUTE","R\u00e9activer le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]]));a.ka("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_TIME","Annuncio: [AD_TIME]"],["AUTO_QUALITY","Automatica"],["BACK","Indietro"],["CAPTIONS",
1056
1057
  "Sottotitoli"],["CAST","Trasmetti..."],["ENTER_LOOP_MODE","Riproduci in loop il video corrente"],["ENTER_PICTURE_IN_PICTURE","Attiva Picture in picture"],["EXIT_FULL_SCREEN","Esci da schermo intero"],["EXIT_LOOP_MODE","Interrompi riproduzione in loop del video corrente"],["EXIT_PICTURE_IN_PICTURE","Esci da Picture in picture"],["FAST_FORWARD","Avanti veloce"],["FULL_SCREEN","Schermo intero"],["LANGUAGE","Lingua"],["LIVE","Dal vivo"],["LOOP","Riproduci in loop"],["MORE_SETTINGS","Altre impostazioni"],
1057
1058
  ["MULTIPLE_LANGUAGES","Pi\u00f9 lingue"],["MUTE","Disattiva audio"],["NOT_APPLICABLE","Non applicabile"],["OFF","Disattivo"],["ON","Attivo"],["PAUSE","Metti in pausa"],["PICTURE_IN_PICTURE","Picture in picture"],["PLAY","Riproduci"],["PLAYBACK_RATE","Velocit\u00e0 di riproduzione"],["RESOLUTION","Risoluzione"],["REWIND","Riavvolgi"],["SEEK","Cerca"],["SKIP_AD","Salta annuncio"],["SKIP_TO_LIVE","Passa alla trasmissione dal vivo"],["UNDETERMINED_LANGUAGE","Indeterminata"],["UNMUTE","Riattiva audio"],
1058
- ["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.ia("ja",new Map([["AD_DURATION","\u5e83\u544a\u518d\u751f\u6642\u9593"],["AD_PROGRESS","[AD_ON] \u756a\u76ee\u306e\u5e83\u544a\uff08\u5168 [NUM_ADS] \u500b\uff09"],["AD_TIME","\u5e83\u544a: [AD_TIME]"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u623b\u308b"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u30ad\u30e3\u30b9\u30c8..."],["ENTER_LOOP_MODE","\u73fe\u5728\u306e\u52d5\u753b\u3092\u30eb\u30fc\u30d7\u518d\u751f"],["ENTER_PICTURE_IN_PICTURE",
1059
+ ["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.ka("ja",new Map([["AD_DURATION","\u5e83\u544a\u518d\u751f\u6642\u9593"],["AD_PROGRESS","[AD_ON] \u756a\u76ee\u306e\u5e83\u544a\uff08\u5168 [NUM_ADS] \u500b\uff09"],["AD_TIME","\u5e83\u544a: [AD_TIME]"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u623b\u308b"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u30ad\u30e3\u30b9\u30c8..."],["ENTER_LOOP_MODE","\u73fe\u5728\u306e\u52d5\u753b\u3092\u30eb\u30fc\u30d7\u518d\u751f"],["ENTER_PICTURE_IN_PICTURE",
1059
1060
  "\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc\u3092\u958b\u59cb"],["EXIT_FULL_SCREEN","\u5168\u753b\u9762\u8868\u793a\u3092\u7d42\u4e86"],["EXIT_LOOP_MODE","\u73fe\u5728\u306e\u52d5\u753b\u306e\u30eb\u30fc\u30d7\u518d\u751f\u3092\u505c\u6b62"],["EXIT_PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc\u3092\u7d42\u4e86"],["FAST_FORWARD","\u65e9\u9001\u308a"],["FULL_SCREEN","\u5168\u753b\u9762\u8868\u793a"],["LANGUAGE","\u8a00\u8a9e"],
1060
1061
  ["LIVE","\u30e9\u30a4\u30d6"],["LOOP","\u30eb\u30fc\u30d7"],["MORE_SETTINGS","\u8a73\u7d30\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u8a00\u8a9e"],["MUTE","\u30df\u30e5\u30fc\u30c8"],["NOT_APPLICABLE","\u8a72\u5f53\u306a\u3057"],["OFF","\u30aa\u30d5"],["ON","\u30aa\u30f3"],["PAUSE","\u4e00\u6642\u505c\u6b62"],["PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc"],["PLAY","\u518d\u751f"],["PLAYBACK_RATE","\u518d\u751f\u901f\u5ea6"],["RESOLUTION","\u89e3\u50cf\u5ea6"],
1061
- ["REWIND","\u5dfb\u304d\u623b\u3057"],["SEEK","\u30b7\u30fc\u30af\u518d\u751f"],["SKIP_AD","\u5e83\u544a\u3092\u30b9\u30ad\u30c3\u30d7"],["SKIP_TO_LIVE","\u30e9\u30a4\u30d6\u914d\u4fe1\u307e\u3067\u30b9\u30ad\u30c3\u30d7"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u30df\u30e5\u30fc\u30c8\u3092\u89e3\u9664"],["UNRECOGNIZED_LANGUAGE","\u4e0d\u660e"],["VOLUME","\u97f3\u91cf"]]));a.ia("ko",new Map([["AD_DURATION","\uad11\uace0 \uae30\uac04"],["AD_PROGRESS","\uad11\uace0 [AD_ON]/[NUM_ADS]"],
1062
+ ["REWIND","\u5dfb\u304d\u623b\u3057"],["SEEK","\u30b7\u30fc\u30af\u518d\u751f"],["SKIP_AD","\u5e83\u544a\u3092\u30b9\u30ad\u30c3\u30d7"],["SKIP_TO_LIVE","\u30e9\u30a4\u30d6\u914d\u4fe1\u307e\u3067\u30b9\u30ad\u30c3\u30d7"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u30df\u30e5\u30fc\u30c8\u3092\u89e3\u9664"],["UNRECOGNIZED_LANGUAGE","\u4e0d\u660e"],["VOLUME","\u97f3\u91cf"]]));a.ka("ko",new Map([["AD_DURATION","\uad11\uace0 \uae30\uac04"],["AD_PROGRESS","\uad11\uace0 [AD_ON]/[NUM_ADS]"],
1062
1063
  ["AD_TIME","\uad11\uace0: [AD_TIME]"],["AUTO_QUALITY","\uc790\ub3d9"],["BACK","\ub4a4\ub85c"],["CAPTIONS","\uc790\ub9c9"],["CAST","\uc804\uc1a1..."],["ENTER_LOOP_MODE","\ud604\uc7ac \ub3d9\uc601\uc0c1 \ubc18\ubcf5 \uc7ac\uc0dd"],["ENTER_PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc \uc2dc\uc791"],["EXIT_FULL_SCREEN","\uc804\uccb4\ud654\uba74 \ub2eb\uae30"],["EXIT_LOOP_MODE","\ud604\uc7ac \ub3d9\uc601\uc0c1 \ubc18\ubcf5 \uc7ac\uc0dd \uc911\uc9c0"],["EXIT_PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc \uc885\ub8cc"],
1063
1064
  ["FAST_FORWARD","\ube68\ub9ac \uac10\uae30"],["FULL_SCREEN","\uc804\uccb4\ud654\uba74"],["LANGUAGE","\uc5b8\uc5b4"],["LIVE","\uc2e4\uc2dc\uac04"],["LOOP","\ubc18\ubcf5 \uc7ac\uc0dd"],["MORE_SETTINGS","\uc124\uc815 \ub354\ubcf4\uae30"],["MULTIPLE_LANGUAGES","\uc5ec\ub7ec \uc5b8\uc5b4"],["MUTE","\uc74c\uc18c\uac70"],["NOT_APPLICABLE","\ud574\ub2f9 \uc0ac\ud56d \uc5c6\uc74c"],["OFF","\uc0ac\uc6a9 \uc548\ud568"],["ON","\uc0ac\uc6a9"],["PAUSE","\uc77c\uc2dc\uc911\uc9c0"],["PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc"],
1064
- ["PLAY","\uc7ac\uc0dd"],["PLAYBACK_RATE","\uc7ac\uc0dd \uc18d\ub3c4"],["RESOLUTION","\ud574\uc0c1\ub3c4"],["REWIND","\ub418\uac10\uae30"],["SEEK","\ucc3e\uae30"],["SKIP_AD","\uad11\uace0 \uac74\ub108\ub6f0\uae30"],["SKIP_TO_LIVE","\ub77c\uc774\ube0c \ub3d9\uc601\uc0c1\uc73c\ub85c \uac74\ub108\ub6f0\uae30"],["UNDETERMINED_LANGUAGE","\ubbf8\uc815"],["UNMUTE","\uc74c\uc18c\uac70 \ud574\uc81c"],["UNRECOGNIZED_LANGUAGE","\uc54c \uc218 \uc5c6\uc74c"],["VOLUME","\ubcfc\ub968"]]));a.ia("nl",new Map([["AD_DURATION",
1065
+ ["PLAY","\uc7ac\uc0dd"],["PLAYBACK_RATE","\uc7ac\uc0dd \uc18d\ub3c4"],["RESOLUTION","\ud574\uc0c1\ub3c4"],["REWIND","\ub418\uac10\uae30"],["SEEK","\ucc3e\uae30"],["SKIP_AD","\uad11\uace0 \uac74\ub108\ub6f0\uae30"],["SKIP_TO_LIVE","\ub77c\uc774\ube0c \ub3d9\uc601\uc0c1\uc73c\ub85c \uac74\ub108\ub6f0\uae30"],["UNDETERMINED_LANGUAGE","\ubbf8\uc815"],["UNMUTE","\uc74c\uc18c\uac70 \ud574\uc81c"],["UNRECOGNIZED_LANGUAGE","\uc54c \uc218 \uc5c6\uc74c"],["VOLUME","\ubcfc\ub968"]]));a.ka("nl",new Map([["AD_DURATION",
1065
1066
  "Advertentieduur"],["AD_PROGRESS","Advertentie [AD_ON] van [NUM_ADS]"],["AD_TIME","Advertentie: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Terug"],["CAPTIONS","Ondertiteling"],["CAST","Casten..."],["ENTER_LOOP_MODE","De huidige video lussen"],["ENTER_PICTURE_IN_PICTURE","Scherm-in-scherm openen"],["EXIT_FULL_SCREEN","Volledig scherm sluiten"],["EXIT_LOOP_MODE","De huidige video niet meer lussen"],["EXIT_PICTURE_IN_PICTURE","Scherm-in-scherm afsluiten"],["FAST_FORWARD","Vooruitspoelen"],["FULL_SCREEN",
1066
1067
  "Volledig scherm"],["LANGUAGE","Taal"],["LIVE","Live"],["LOOP","Lussen"],["MORE_SETTINGS","Meer instellingen"],["MULTIPLE_LANGUAGES","Meerdere talen"],["MUTE","Dempen"],["NOT_APPLICABLE","Niet van toepassing"],["OFF","Uit"],["ON","Aan"],["PAUSE","Onderbreken"],["PICTURE_IN_PICTURE","Scherm-in-scherm"],["PLAY","Afspelen"],["PLAYBACK_RATE","Afspeelsnelheid"],["RESOLUTION","Resolutie"],["REWIND","Terugspoelen"],["SEEK","Zoeken"],["SKIP_AD","Advertentie overslaan"],["SKIP_TO_LIVE","Doorgaan naar live"],
1067
- ["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.ia("pl",new Map([["AD_DURATION","Czas trwania reklamy"],["AD_PROGRESS","Reklama\u00a0[AD_ON] z\u00a0[NUM_ADS]"],["AD_TIME","Reklama: [AD_TIME]"],["AUTO_QUALITY","Automatycznie"],["BACK","Wstecz"],["CAPTIONS","Napisy"],["CAST","Przesy\u0142aj..."],["ENTER_LOOP_MODE","Odtwarzaj bie\u017c\u0105cy film w\u00a0p\u0119tli"],["ENTER_PICTURE_IN_PICTURE","W\u0142\u0105cz tryb obrazu w\u00a0obrazie"],
1068
+ ["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.ka("pl",new Map([["AD_DURATION","Czas trwania reklamy"],["AD_PROGRESS","Reklama\u00a0[AD_ON] z\u00a0[NUM_ADS]"],["AD_TIME","Reklama: [AD_TIME]"],["AUTO_QUALITY","Automatycznie"],["BACK","Wstecz"],["CAPTIONS","Napisy"],["CAST","Przesy\u0142aj..."],["ENTER_LOOP_MODE","Odtwarzaj bie\u017c\u0105cy film w\u00a0p\u0119tli"],["ENTER_PICTURE_IN_PICTURE","W\u0142\u0105cz tryb obrazu w\u00a0obrazie"],
1068
1069
  ["EXIT_FULL_SCREEN","Zamknij pe\u0142ny ekran"],["EXIT_LOOP_MODE","Wy\u0142\u0105cz odtwarzanie bie\u017c\u0105cego filmu w\u00a0p\u0119tli"],["EXIT_PICTURE_IN_PICTURE","Wy\u0142\u0105cz tryb obrazu w\u00a0obrazie"],["FAST_FORWARD","Przewi\u0144 do przodu"],["FULL_SCREEN","Pe\u0142ny ekran"],["LANGUAGE","J\u0119zyk"],["LIVE","Na \u017cywo"],["LOOP","Odtwarzaj w\u00a0p\u0119tli"],["MORE_SETTINGS","Wi\u0119cej ustawie\u0144"],["MULTIPLE_LANGUAGES","Wiele j\u0119zyk\u00f3w"],["MUTE","Wycisz"],["NOT_APPLICABLE",
1069
1070
  "Nie dotyczy"],["OFF","Wy\u0142\u0105czone"],["ON","W\u0142\u0105czone"],["PAUSE","Wstrzymaj"],["PICTURE_IN_PICTURE","Obraz w\u00a0obrazie"],["PLAY","Odtw\u00f3rz"],["PLAYBACK_RATE","Szybko\u015b\u0107 odtwarzania"],["RESOLUTION","Rozdzielczo\u015b\u0107"],["REWIND","Przewi\u0144 do ty\u0142u"],["SEEK","Szukaj"],["SKIP_AD","Pomi\u0144 reklam\u0119"],["SKIP_TO_LIVE","Przejd\u017a do transmisji na \u017cywo"],["UNDETERMINED_LANGUAGE","Nie okre\u015blono"],["UNMUTE","Wy\u0142\u0105cz wyciszenie"],["UNRECOGNIZED_LANGUAGE",
1070
- "Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.ia("pt-BR",new Map([["AD_DURATION","Dura\u00e7\u00e3o do an\u00fancio"],["AD_PROGRESS","An\u00fancio [AD_ON] de [NUM_ADS]"],["AD_TIME","An\u00fancio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tica"],["BACK","Voltar"],["CAPTIONS","Legendas"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir o v\u00eddeo atual"],["ENTER_PICTURE_IN_PICTURE","Entrar no modo picture-in-picture"],["EXIT_FULL_SCREEN","Sair do modo tela cheia"],["EXIT_LOOP_MODE",
1071
+ "Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.ka("pt-BR",new Map([["AD_DURATION","Dura\u00e7\u00e3o do an\u00fancio"],["AD_PROGRESS","An\u00fancio [AD_ON] de [NUM_ADS]"],["AD_TIME","An\u00fancio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tica"],["BACK","Voltar"],["CAPTIONS","Legendas"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir o v\u00eddeo atual"],["ENTER_PICTURE_IN_PICTURE","Entrar no modo picture-in-picture"],["EXIT_FULL_SCREEN","Sair do modo tela cheia"],["EXIT_LOOP_MODE",
1071
1072
  "Parar repeti\u00e7\u00e3o do v\u00eddeo atual"],["EXIT_PICTURE_IN_PICTURE","Sair de picture-in-picture"],["FAST_FORWARD","Avan\u00e7ar"],["FULL_SCREEN","Tela cheia"],["LANGUAGE","Idioma"],["LIVE","Ao vivo"],["LOOP","Repetir"],["MORE_SETTINGS","Mais defini\u00e7\u00f5es"],["MULTIPLE_LANGUAGES","V\u00e1rios idiomas"],["MUTE","Desativar som"],["NOT_APPLICABLE","N\u00e3o relevante"],["OFF","Desativado"],["ON","Ativado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Reproduzir"],
1072
- ["PLAYBACK_RATE","Velocidade da reprodu\u00e7\u00e3o"],["RESOLUTION","Resolu\u00e7\u00e3o"],["REWIND","Retroceder"],["SEEK","Procurar"],["SKIP_AD","Pular an\u00fancio"],["SKIP_TO_LIVE","Pular para transmiss\u00e3o ao vivo"],["UNDETERMINED_LANGUAGE","Indeterminado"],["UNMUTE","Ativar som"],["UNRECOGNIZED_LANGUAGE","N\u00e3o reconhecido"],["VOLUME","Volume"]]));a.ia("ru",new Map([["AD_DURATION","\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u044b"],
1073
+ ["PLAYBACK_RATE","Velocidade da reprodu\u00e7\u00e3o"],["RESOLUTION","Resolu\u00e7\u00e3o"],["REWIND","Retroceder"],["SEEK","Procurar"],["SKIP_AD","Pular an\u00fancio"],["SKIP_TO_LIVE","Pular para transmiss\u00e3o ao vivo"],["UNDETERMINED_LANGUAGE","Indeterminado"],["UNMUTE","Ativar som"],["UNRECOGNIZED_LANGUAGE","N\u00e3o reconhecido"],["VOLUME","Volume"]]));a.ka("ru",new Map([["AD_DURATION","\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u044b"],
1073
1074
  ["AD_PROGRESS","\u0420\u0435\u043a\u043b\u0430\u043c\u0430 [AD_ON] \u0438\u0437 [NUM_ADS]"],["AD_TIME","\u0420\u0435\u043a\u043b\u0430\u043c\u0430: [AD_TIME]"],["AUTO_QUALITY","\u0410\u0432\u0442\u043e"],["BACK","\u041d\u0430\u0437\u0430\u0434"],["CAPTIONS","\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b"],["CAST","\u0422\u0440\u0430\u043d\u0441\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c..."],["ENTER_LOOP_MODE","\u0417\u0430\u0446\u0438\u043a\u043b\u0438\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043e"],
1074
1075
  ["ENTER_PICTURE_IN_PICTURE",'\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0440\u0435\u0436\u0438\u043c "\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"'],["EXIT_FULL_SCREEN","\u041e\u0431\u044b\u0447\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c"],["EXIT_LOOP_MODE","\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u0430\u0446\u0438\u043a\u043b\u0438\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0432\u0438\u0434\u0435\u043e"],
1075
1076
  ["EXIT_PICTURE_IN_PICTURE",'\u0412\u044b\u0439\u0442\u0438 \u0438\u0437 \u0440\u0435\u0436\u0438\u043c\u0430 "\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"'],["FAST_FORWARD","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0430 \u0432\u043f\u0435\u0440\u0435\u0434"],["FULL_SCREEN","\u041f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c"],["LANGUAGE","\u042f\u0437\u044b\u043a"],["LIVE",
1076
1077
  "\u041f\u0440\u044f\u043c\u043e\u0439 \u044d\u0444\u0438\u0440"],["LOOP","\u0417\u0430\u0446\u0438\u043a\u043b\u0438\u0442\u044c"],["MORE_SETTINGS","\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438"],["MULTIPLE_LANGUAGES","\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f\u0437\u044b\u043a\u043e\u0432"],["MUTE","\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["NOT_APPLICABLE",
1077
1078
  "\u041d\u0435\u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e"],["OFF","\u0412\u044b\u043a\u043b."],["ON","\u0412\u043a\u043b."],["PAUSE","\u041f\u0430\u0443\u0437\u0430"],["PICTURE_IN_PICTURE","\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"],["PLAY","\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438"],["PLAYBACK_RATE","\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f"],
1078
1079
  ["RESOLUTION","\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435"],["REWIND","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u0430\u0442\u044c \u043d\u0430\u0437\u0430\u0434"],["SEEK","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0430"],["SKIP_AD","\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c"],["SKIP_TO_LIVE","\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043f\u0440\u044f\u043c\u043e\u0439 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438"],
1079
- ["UNDETERMINED_LANGUAGE","\u041d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e"],["UNMUTE","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["UNRECOGNIZED_LANGUAGE","\u041d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u043e"],["VOLUME","\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"]]));a.ia("th",new Map([["AD_DURATION","\u0e23\u0e30\u0e22\u0e30\u0e40\u0e27\u0e25\u0e32\u0e42\u0e06\u0e29\u0e13\u0e32"],["AD_PROGRESS","\u0e42\u0e06\u0e29\u0e13\u0e32 [AD_ON] \u0e08\u0e32\u0e01 [NUM_ADS] \u0e23\u0e32\u0e22\u0e01\u0e32\u0e23"],
1080
+ ["UNDETERMINED_LANGUAGE","\u041d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e"],["UNMUTE","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["UNRECOGNIZED_LANGUAGE","\u041d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u043e"],["VOLUME","\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"]]));a.ka("th",new Map([["AD_DURATION","\u0e23\u0e30\u0e22\u0e30\u0e40\u0e27\u0e25\u0e32\u0e42\u0e06\u0e29\u0e13\u0e32"],["AD_PROGRESS","\u0e42\u0e06\u0e29\u0e13\u0e32 [AD_ON] \u0e08\u0e32\u0e01 [NUM_ADS] \u0e23\u0e32\u0e22\u0e01\u0e32\u0e23"],
1080
1081
  ["AD_TIME","\u0e42\u0e06\u0e29\u0e13\u0e32: [AD_TIME]"],["AUTO_QUALITY","\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34"],["BACK","\u0e01\u0e25\u0e31\u0e1a"],["CAPTIONS","\u0e04\u0e33\u0e1a\u0e23\u0e23\u0e22\u0e32\u0e22"],["CAST","\u0e41\u0e04\u0e2a\u0e15\u0e4c..."],["ENTER_LOOP_MODE","\u0e27\u0e19\u0e0b\u0e49\u0e33\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19"],["ENTER_PICTURE_IN_PICTURE","\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],
1081
1082
  ["EXIT_FULL_SCREEN","\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e41\u0e1a\u0e1a\u0e40\u0e15\u0e47\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d"],["EXIT_LOOP_MODE","\u0e2b\u0e22\u0e38\u0e14\u0e27\u0e19\u0e0b\u0e49\u0e33\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19"],["EXIT_PICTURE_IN_PICTURE","\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],
1082
1083
  ["FAST_FORWARD","\u0e01\u0e23\u0e2d\u0e44\u0e1b\u0e02\u0e49\u0e32\u0e07\u0e2b\u0e19\u0e49\u0e32"],["FULL_SCREEN","\u0e40\u0e15\u0e47\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d"],["LANGUAGE","\u0e20\u0e32\u0e29\u0e32"],["LIVE","\u0e2a\u0e14"],["LOOP","\u0e25\u0e39\u0e1b"],["MORE_SETTINGS","\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21"],["MULTIPLE_LANGUAGES","\u0e2b\u0e25\u0e32\u0e22\u0e20\u0e32\u0e29\u0e32"],["MUTE","\u0e1b\u0e34\u0e14\u0e40\u0e2a\u0e35\u0e22\u0e07"],
1083
1084
  ["NOT_APPLICABLE","\u0e44\u0e21\u0e48\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e02\u0e49\u0e2d\u0e07"],["OFF","\u0e1b\u0e34\u0e14"],["ON","\u0e40\u0e1b\u0e34\u0e14"],["PAUSE","\u0e2b\u0e22\u0e38\u0e14\u0e0a\u0e31\u0e48\u0e27\u0e04\u0e23\u0e32\u0e27"],["PICTURE_IN_PICTURE","\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],["PLAY","\u0e40\u0e25\u0e48\u0e19"],["PLAYBACK_RATE","\u0e04\u0e27\u0e32\u0e21\u0e40\u0e23\u0e47\u0e27\u0e43\u0e19\u0e01\u0e32\u0e23\u0e40\u0e25\u0e48\u0e19"],
1084
1085
  ["RESOLUTION","\u0e04\u0e27\u0e32\u0e21\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14"],["REWIND","\u0e01\u0e23\u0e2d\u0e01\u0e25\u0e31\u0e1a"],["SEEK","\u0e04\u0e49\u0e19\u0e2b\u0e32"],["SKIP_AD","\u0e02\u0e49\u0e32\u0e21\u0e42\u0e06\u0e29\u0e13\u0e32"],["SKIP_TO_LIVE","\u0e02\u0e49\u0e32\u0e21\u0e44\u0e1b\u0e17\u0e35\u0e48\u0e01\u0e32\u0e23\u0e16\u0e48\u0e32\u0e22\u0e17\u0e2d\u0e14\u0e2a\u0e14"],["UNDETERMINED_LANGUAGE","\u0e44\u0e21\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14"],["UNMUTE","\u0e40\u0e1b\u0e34\u0e14\u0e40\u0e2a\u0e35\u0e22\u0e07"],
1085
- ["UNRECOGNIZED_LANGUAGE","\u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e23\u0e39\u0e49\u0e08\u0e31\u0e01"],["VOLUME","\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e40\u0e2a\u0e35\u0e22\u0e07"]]));a.ia("tr",new Map([["AD_DURATION","Reklam s\u00fcresi"],["AD_PROGRESS","[AD_ON]/[NUM_ADS] reklam"],["AD_TIME","Reklam: [AD_TIME]"],["AUTO_QUALITY","Otomatik"],["BACK","Geri"],["CAPTIONS","Altyaz\u0131lar"],["CAST","Yay\u0131nla..."],["ENTER_LOOP_MODE","Mevcut videoyu d\u00f6ng\u00fcye al"],["ENTER_PICTURE_IN_PICTURE","Pencere i\u00e7inde Pencere moduna gir"],
1086
+ ["UNRECOGNIZED_LANGUAGE","\u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e23\u0e39\u0e49\u0e08\u0e31\u0e01"],["VOLUME","\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e40\u0e2a\u0e35\u0e22\u0e07"]]));a.ka("tr",new Map([["AD_DURATION","Reklam s\u00fcresi"],["AD_PROGRESS","[AD_ON]/[NUM_ADS] reklam"],["AD_TIME","Reklam: [AD_TIME]"],["AUTO_QUALITY","Otomatik"],["BACK","Geri"],["CAPTIONS","Altyaz\u0131lar"],["CAST","Yay\u0131nla..."],["ENTER_LOOP_MODE","Mevcut videoyu d\u00f6ng\u00fcye al"],["ENTER_PICTURE_IN_PICTURE","Pencere i\u00e7inde Pencere moduna gir"],
1086
1087
  ["EXIT_FULL_SCREEN","Tam ekrandan \u00e7\u0131k"],["EXIT_LOOP_MODE","Mevcut videonun d\u00f6ng\u00fcs\u00fcn\u00fc durdur"],["EXIT_PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencereden \u00c7\u0131k"],["FAST_FORWARD","\u0130leri sar"],["FULL_SCREEN","Tam ekran"],["LANGUAGE","Dil"],["LIVE","Canl\u0131"],["LOOP","D\u00f6ng\u00fc"],["MORE_SETTINGS","Daha fazla ayar"],["MULTIPLE_LANGUAGES","Birden \u00e7ok dil"],["MUTE","Sesi kapat"],["NOT_APPLICABLE","Ge\u00e7erli de\u011fil"],["OFF","Kapal\u0131"],
1087
- ["ON","A\u00e7\u0131k"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencere"],["PLAY","Oynat"],["PLAYBACK_RATE","\u00c7alma h\u0131z\u0131"],["RESOLUTION","\u00c7\u00f6z\u00fcn\u00fcrl\u00fck"],["REWIND","Geri sar"],["SEEK","Ara"],["SKIP_AD","Reklam\u0131 Atla"],["SKIP_TO_LIVE","Canl\u0131 yay\u0131na atla"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi a\u00e7"],["UNRECOGNIZED_LANGUAGE","Tan\u0131nmayan"],["VOLUME","Ses"]]));a.ia("zh",new Map([["AD_DURATION","\u5e7f\u544a\u6301\u7eed\u65f6\u95f4"],
1088
+ ["ON","A\u00e7\u0131k"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencere"],["PLAY","Oynat"],["PLAYBACK_RATE","\u00c7alma h\u0131z\u0131"],["RESOLUTION","\u00c7\u00f6z\u00fcn\u00fcrl\u00fck"],["REWIND","Geri sar"],["SEEK","Ara"],["SKIP_AD","Reklam\u0131 Atla"],["SKIP_TO_LIVE","Canl\u0131 yay\u0131na atla"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi a\u00e7"],["UNRECOGNIZED_LANGUAGE","Tan\u0131nmayan"],["VOLUME","Ses"]]));a.ka("zh",new Map([["AD_DURATION","\u5e7f\u544a\u6301\u7eed\u65f6\u95f4"],
1088
1089
  ["AD_PROGRESS","\u5e7f\u544a [AD_ON]/[NUM_ADS]"],["AD_TIME","\u5e7f\u544a\uff1a[AD_TIME]"],["AUTO_QUALITY","\u81ea\u52a8"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u5c04\u2026"],["ENTER_LOOP_MODE","\u5faa\u73af\u64ad\u653e\u5f53\u524d\u89c6\u9891"],["ENTER_PICTURE_IN_PICTURE","\u8fdb\u5165\u201c\u753b\u4e2d\u753b\u201d\u6a21\u5f0f"],["EXIT_FULL_SCREEN","\u9000\u51fa\u5168\u5c4f\u6a21\u5f0f"],["EXIT_LOOP_MODE","\u505c\u6b62\u5faa\u73af\u64ad\u653e\u5f53\u524d\u89c6\u9891"],
1089
1090
  ["EXIT_PICTURE_IN_PICTURE","\u9000\u51fa\u201c\u753b\u4e2d\u753b\u201d\u6a21\u5f0f"],["FAST_FORWARD","\u5feb\u8fdb"],["FULL_SCREEN","\u5168\u5c4f"],["LANGUAGE","\u8bed\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u73af\u64ad\u653e"],["MORE_SETTINGS","\u66f4\u591a\u8bbe\u7f6e"],["MULTIPLE_LANGUAGES","\u591a\u79cd\u8bed\u8a00"],["MUTE","\u9759\u97f3"],["NOT_APPLICABLE","\u4e0d\u9002\u7528"],["OFF","\u5173\u95ed"],["ON","\u5f00\u542f"],["PAUSE","\u6682\u505c"],["PICTURE_IN_PICTURE","\u753b\u4e2d\u753b"],
1090
- ["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["RESOLUTION","\u5206\u8fa8\u7387"],["REWIND","\u5feb\u9000"],["SEEK","\u8fdb\u5ea6"],["SKIP_AD","\u8df3\u8fc7\u5e7f\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u672a\u786e\u5b9a"],["UNMUTE","\u53d6\u6d88\u9759\u97f3"],["UNRECOGNIZED_LANGUAGE","\u65e0\u6cd5\u8bc6\u522b"],["VOLUME","\u97f3\u91cf"]]));a.ia("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],
1091
+ ["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["RESOLUTION","\u5206\u8fa8\u7387"],["REWIND","\u5feb\u9000"],["SEEK","\u8fdb\u5ea6"],["SKIP_AD","\u8df3\u8fc7\u5e7f\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u672a\u786e\u5b9a"],["UNMUTE","\u53d6\u6d88\u9759\u97f3"],["UNRECOGNIZED_LANGUAGE","\u65e0\u6cd5\u8bc6\u522b"],["VOLUME","\u97f3\u91cf"]]));a.ka("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],
1091
1092
  ["AD_TIME","\u5ee3\u544a\uff1a[AD_TIME]"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u653e..."],["ENTER_LOOP_MODE","\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["ENTER_PICTURE_IN_PICTURE","\u9032\u5165\u5b50\u6bcd\u756b\u9762"],["EXIT_FULL_SCREEN","\u9000\u51fa\u5168\u87a2\u5e55\u6a21\u5f0f"],["EXIT_LOOP_MODE","\u505c\u6b62\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["EXIT_PICTURE_IN_PICTURE","\u96e2\u958b\u5b50\u6bcd\u756b\u9762"],
1092
1093
  ["FAST_FORWARD","\u5feb\u8f49"],["FULL_SCREEN","\u5168\u87a2\u5e55"],["LANGUAGE","\u8a9e\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u74b0\u64ad\u653e"],["MORE_SETTINGS","\u986f\u793a\u66f4\u591a\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u7a2e\u8a9e\u8a00"],["MUTE","\u975c\u97f3"],["NOT_APPLICABLE","\u4e0d\u9069\u7528"],["OFF","\u95dc\u9589"],["ON","\u958b\u555f"],["PAUSE","\u66ab\u505c"],["PICTURE_IN_PICTURE","\u5b50\u6bcd\u756b\u9762"],["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],
1093
- ["RESOLUTION","\u89e3\u6790\u5ea6"],["REWIND","\u5012\u8f49"],["SEEK","\u641c\u5c0b"],["SKIP_AD","\u7565\u904e\u5ee3\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],["VOLUME","\u97f3\u91cf"]]));a.mf(navigator.languages||[]);return a}M("shaka.ui.Controls",Z);Z.prototype.isOpaque=Z.prototype.Nb;Z.prototype.hideAdUI=Z.prototype.Cf;Z.prototype.showAdUI=Z.prototype.Qf;
1094
- Z.prototype.toggleFullScreen=Z.prototype.Se;Z.prototype.isFullScreenEnabled=Z.prototype.jc;Z.prototype.isFullScreenSupported=Z.prototype.sd;Z.prototype.hideSettingsMenus=Z.prototype.hc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.hd;Z.prototype.setLastTouchEventTime=Z.prototype.Of;Z.prototype.getDisplayTime=Z.prototype.yf;Z.prototype.isCastAllowed=Z.prototype.Sg;Z.prototype.setSeeking=Z.prototype.Le;Z.prototype.isSeeking=Z.prototype.Ug;Z.prototype.getConfig=Z.prototype.rg;
1095
- Z.prototype.getClientSideAdContainer=Z.prototype.qg;Z.prototype.getServerSideAdContainer=Z.prototype.Jg;Z.prototype.getControlsContainer=Z.prototype.ug;Z.prototype.getLocalPlayer=Z.prototype.zg;Z.prototype.getPlayer=Z.prototype.dc;Z.prototype.getLocalVideo=Z.prototype.Ag;Z.prototype.getVideo=Z.prototype.Bb;Z.prototype.getVideoContainer=Z.prototype.Pg;Z.prototype.getLocalization=Z.prototype.Bg;Z.prototype.getCastProxy=Z.prototype.og;Z.prototype.getAd=Z.prototype.getAd;
1096
- Z.prototype.setEnabledNativeControls=Z.prototype.Nf;Z.prototype.setEnabledShakaControls=Z.prototype.He;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.Vg;Z.prototype.allowCast=Z.prototype.cg;Z.registerSeekBar=function(a){Hx=a};Z.registerElement=tx;Z.prototype.destroy=Z.prototype.destroy;var ux=new Map,Hx=new mx;function Ox(a,b){X.call(this,a,b);var c=this;this.l=this.controls.i;this.j=this.controls.g;this.i=[];this.g=Kk();this.g.classList.add("shaka-overflow-menu-button");this.g.classList.add("shaka-no-propagation");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.g.textContent="more_vert";this.parent.appendChild(this.g);this.h=S("div");this.h.classList.add("shaka-overflow-menu");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");
1097
- this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);Px(this);this.eventManager.o(this.localization,"locale-updated",function(){Qx(c)});this.eventManager.o(this.localization,"locale-changed",function(){Qx(c)});this.eventManager.o(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&Y(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){Y(c.g,!0)});this.eventManager.o(this.controls,"submenuopen",function(){Y(c.h,!1)});this.eventManager.o(this.h,"touchstart",function(d){c.controls.Of(Date.now());
1094
+ ["RESOLUTION","\u89e3\u6790\u5ea6"],["REWIND","\u5012\u8f49"],["SEEK","\u641c\u5c0b"],["SKIP_AD","\u7565\u904e\u5ee3\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],["VOLUME","\u97f3\u91cf"]]));a.mf(navigator.languages||[]);return a}M("shaka.ui.Controls",Z);Z.prototype.isOpaque=Z.prototype.Nb;Z.prototype.hideAdUI=Z.prototype.Cf;Z.prototype.showAdUI=Z.prototype.Rf;
1095
+ Z.prototype.toggleFullScreen=Z.prototype.Se;Z.prototype.isFullScreenEnabled=Z.prototype.jc;Z.prototype.isFullScreenSupported=Z.prototype.sd;Z.prototype.hideSettingsMenus=Z.prototype.hc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.hd;Z.prototype.setLastTouchEventTime=Z.prototype.Pf;Z.prototype.getDisplayTime=Z.prototype.yf;Z.prototype.isCastAllowed=Z.prototype.Tg;Z.prototype.setSeeking=Z.prototype.Le;Z.prototype.isSeeking=Z.prototype.Wg;Z.prototype.getConfig=Z.prototype.sg;
1096
+ Z.prototype.getClientSideAdContainer=Z.prototype.rg;Z.prototype.getServerSideAdContainer=Z.prototype.Kg;Z.prototype.getControlsContainer=Z.prototype.vg;Z.prototype.getLocalPlayer=Z.prototype.Ag;Z.prototype.getPlayer=Z.prototype.dc;Z.prototype.getLocalVideo=Z.prototype.Bg;Z.prototype.getVideo=Z.prototype.Bb;Z.prototype.getVideoContainer=Z.prototype.Qg;Z.prototype.getLocalization=Z.prototype.Cg;Z.prototype.getCastProxy=Z.prototype.pg;Z.prototype.getAd=Z.prototype.getAd;
1097
+ Z.prototype.setEnabledNativeControls=Z.prototype.Of;Z.prototype.setEnabledShakaControls=Z.prototype.He;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.Xg;Z.prototype.allowCast=Z.prototype.dg;Z.registerSeekBar=function(a){Hx=a};Z.registerElement=tx;Z.prototype.destroy=Z.prototype.destroy;var ux=new Map,Hx=new mx;function Ox(a,b){X.call(this,a,b);var c=this;this.l=this.controls.i;this.j=this.controls.g;this.i=[];this.g=Kk();this.g.classList.add("shaka-overflow-menu-button");this.g.classList.add("shaka-no-propagation");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.g.textContent="more_vert";this.parent.appendChild(this.g);this.h=S("div");this.h.classList.add("shaka-overflow-menu");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");
1098
+ this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);Px(this);this.eventManager.o(this.localization,"locale-updated",function(){Qx(c)});this.eventManager.o(this.localization,"locale-changed",function(){Qx(c)});this.eventManager.o(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&Y(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){Y(c.g,!0)});this.eventManager.o(this.controls,"submenuopen",function(){Y(c.h,!1)});this.eventManager.o(this.h,"touchstart",function(d){c.controls.Pf(Date.now());
1098
1099
  d.stopPropagation()});this.eventManager.o(this.g,"click",function(){Rx(c)});Qx(this);this.ad&&this.ad.isLinear()&&Y(this.g,!1)}u(Ox,X);Ox.prototype.release=function(){this.j=null;for(var a=r(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];X.prototype.release.call(this)};function Sx(a,b){Tx.set(a,b)}
1099
1100
  function Px(a){for(var b=r(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,Tx.get(c)?(c=Tx.get(c),a.i.push(c.create(a.h,a.controls))):Ua("Unrecognized overflow menu element requested:",c)}function Rx(a){if(a.controls.hd())a.controls.hc();else{Y(a.h,!0);nx(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};gb(a.h.childNodes,b)&&hb(a.h.childNodes,b)[0].focus()}}function Qx(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1100
1101
  M("shaka.ui.OverflowMenu",Ox);Ox.registerElement=Sx;function Ux(){}Ux.prototype.create=function(a,b){return new Ox(a,b)};tx("overflow_menu",new Ux);var Tx=new Map;function Vx(a,b){X.call(this,a,b);var c=this;this.g=Kk();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=S("i");this.h.classList.add("material-icons-round");this.h.textContent="airplay";this.g.appendChild(this.h);window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");a=S("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=S("span");a.appendChild(this.j);
1101
1102
  this.i=S("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);Wx(this);Xx(this);this.eventManager.o(this.localization,"locale-updated",function(){Wx(c)});this.eventManager.o(this.localization,"locale-changed",function(){Wx(c)});this.eventManager.o(this.g,"click",function(){c.controls.Bb().webkitShowPlaybackTargetPicker()});a=this.controls.Bb();this.eventManager.o(a,"webkitplaybacktargetavailabilitychanged",function(d){var e=
1102
1103
  c.player.zf()==Hm;Y(c.g,"available"==d.availability&&e)});this.eventManager.o(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){Xx(c)})}u(Vx,X);function Xx(a){var b=a.controls.Bb();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function Wx(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}M("shaka.ui.AirPlayButton",Vx);function Yx(){}Yx.prototype.create=function(a,b){return new Vx(a,b)};Sx("airplay",new Yx);
1103
1104
  tx("airplay",new Yx);function Zx(a,b,c){this.i=a;this.h=$x(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.ie()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,this.h);this.configure({});c.controls||a.Oe(b);b.ui=this;c.ui=this}q=Zx.prototype;q.destroy=function(){var a=this;return K(function(b){if(1==b.g)return a.g?A(b,a.g.destroy(),2):b.D(2);if(4!=b.g)return a.g=null,a.i?A(b,a.i.destroy(),4):b.D(4);a.i=null;C(b)})};q.ie=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Wc()&&1<navigator.maxTouchPoints};
1104
- q.getConfiguration=function(){var a=$x(this);pl(a,this.h,$x(this),{},"");return a};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=ql(a,b));pl(this.h,a,$x(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new N("uiupdated"))};q.sg=function(){return this.g};q.wh=function(a){this.g.He(a)};
1105
+ q.getConfiguration=function(){var a=$x(this);pl(a,this.h,$x(this),{},"");return a};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=ql(a,b));pl(this.h,a,$x(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new N("uiupdated"))};q.ug=function(){return this.g};q.yh=function(a){this.g.He(a)};
1105
1106
  function $x(a){var b={controlPanelElements:"play_pause time_and_duration spacer mute volume fullscreen overflow_menu".split(" "),overflowMenuButtons:"captions quality language picture_in_picture cast playback_rate".split(" "),statisticsList:"width height corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent".split(" "),contextMenuElements:["loop",
1106
1107
  "picture_in_picture","statistics"],playbackRates:[.5,.75,1,1.25,1.5,1.75,2],fastForwardRates:[2,4,8,1],rewindRates:[-1,-2,-4,-8],addSeekBar:!0,addBigPlayButton:!1,customContextMenu:!1,castReceiverAppId:"",castAndroidReceiverCompatible:!1,clearBufferOnQualityChange:!0,showUnbufferedStart:!1,seekBarColors:{base:"rgba(255, 255, 255, 0.3)",buffered:"rgba(255, 255, 255, 0.54)",played:"rgb(255, 255, 255)",adBreaks:"rgb(255, 204, 0)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",level:"rgb(255, 255, 255)"},
1107
1108
  trackLabelFormat:ay,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5};window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.ie()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
@@ -1109,9 +1110,9 @@ function by(){var a,b,c,d,e,f,g,h,k,l,m,p,n;return K(function(t){switch(t.g){cas
1109
1110
  case 4:if(k.done){t.D(2);break}l=k.value;if(l.ui){t.D(5);break}m=null;p=r(b);for(d=p.next();!d.done;d=p.next())if(n=d.value,n.parentElement==l){m=n;break}m||(m=document.createElement("video"),m.setAttribute("playsinline",""),l.appendChild(m));F(t,7);return A(t,ey(l,m),9);case 9:va(t,5);break;case 7:return J(t),cy("shaka-ui-load-failed",fy),t.return();case 5:k=h.next();t.D(4);break;case 2:cy("shaka-ui-loaded"),C(t)}})}
1110
1111
  function cy(a,b){var c=null;void 0!=b&&(c={reasonCode:b});a=new CustomEvent(a,{detail:c});document.dispatchEvent(a)}
1111
1112
  function ey(a,b){var c,d,e,f,g,h,k,l,m;return K(function(p){switch(p.g){case 1:c=new T(b);d=new Zx(c,a,b);e="";f=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(e=a.dataset.shakaPlayerCastReceiverId,f="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(e=b.dataset.shakaPlayerCastReceiverId,f="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);e.length&&d.configure({castReceiverAppId:e,castAndroidReceiverCompatible:f});b.controls&&
1112
- d.g.Nf(!0);if(g=b.getAttribute("src"))h=document.createElement("source"),h.setAttribute("src",g),b.appendChild(h),b.removeAttribute("src");k=r(b.querySelectorAll("source"));l=k.next();case 2:if(l.done){p.D(0);break}m=l.value;F(p,5);return A(p,d.g.dc().load(m.getAttribute("src")),7);case 7:p.D(0);break;case 5:J(p);case 3:l=k.next(),p.D(2)}})}M("shaka.ui.Overlay",Zx);Zx.prototype.setEnabled=Zx.prototype.wh;Zx.prototype.getControls=Zx.prototype.sg;Zx.prototype.configure=Zx.prototype.configure;
1113
+ d.g.Of(!0);if(g=b.getAttribute("src"))h=document.createElement("source"),h.setAttribute("src",g),b.appendChild(h),b.removeAttribute("src");k=r(b.querySelectorAll("source"));l=k.next();case 2:if(l.done){p.D(0);break}m=l.value;F(p,5);return A(p,d.g.dc().load(m.getAttribute("src")),7);case 7:p.D(0);break;case 5:J(p);case 3:l=k.next(),p.D(2)}})}M("shaka.ui.Overlay",Zx);Zx.prototype.setEnabled=Zx.prototype.yh;Zx.prototype.getControls=Zx.prototype.ug;Zx.prototype.configure=Zx.prototype.configure;
1113
1114
  Zx.prototype.getConfiguration=Zx.prototype.getConfiguration;Zx.prototype.isMobile=Zx.prototype.ie;Zx.prototype.destroy=Zx.prototype.destroy;var ay=0;Zx.TrackLabelFormat={LANGUAGE:ay,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var dy=0,fy=1;Zx.FailReasonCode={NO_BROWSER_SUPPORT:dy,PLAYER_FAILED_TO_LOAD:fy};"complete"==document.readyState?K(function(a){if(1==a.g)return A(a,Promise.resolve(),2);by();C(a)}):window.addEventListener("load",by);function gy(a,b,c,d,e,f,g){function h(z,B){return z+": "+B}function k(z){return"variant"==z.type?z.audioRoles?z.audioRoles.join(", "):void 0:z.roles.join(", ")}var l=a.find(function(z){return 1==z.active}),m=Qw(b);Lk(b);b.appendChild(m);m=new Map;for(var p=r(a),n=p.next();!n.done;n=p.next())n=n.value,m.has(n.language)||m.set(n.language,new Set),m.get(n.language).add(k(n));m=new Set;l=l?h(l.language,k(l)):"";p={};a=r(a);for(n=a.next();!n.done;p={Xa:p.Xa},n=a.next()){p.Xa=n.value;n=p.Xa.language;var t=
1114
- p.Xa.forced,y=f.resolve(Xb.Xf),x=k(p.Xa),v=h(n,x);if(!m.has(v)){m.add(v);var w=Kk();w.addEventListener("click",function(z){return function(){c(z.Xa)}}(p));var D=S("span");w.appendChild(D);D.textContent=hy(n,f);switch(g){case ay:t&&(D.textContent+=" ("+y+")");break;case 1:x?D.textContent=x:(Ua("Track #"+p.Xa.id+" does not have a role, but the UI is configured to only show role."),D.textContent="?");t&&(D.textContent+=" ("+y+")");break;case 2:x&&(D.textContent+=": "+x);t&&(D.textContent+=" ("+y+")");
1115
+ p.Xa.forced,y=f.resolve(Xb.Yf),x=k(p.Xa),v=h(n,x);if(!m.has(v)){m.add(v);var w=Kk();w.addEventListener("click",function(z){return function(){c(z.Xa)}}(p));var D=S("span");w.appendChild(D);D.textContent=hy(n,f);switch(g){case ay:t&&(D.textContent+=" ("+y+")");break;case 1:x?D.textContent=x:(Ua("Track #"+p.Xa.id+" does not have a role, but the UI is configured to only show role."),D.textContent="?");t&&(D.textContent+=" ("+y+")");break;case 2:x&&(D.textContent+=": "+x);t&&(D.textContent+=" ("+y+")");
1115
1116
  break;case 3:p.Xa.label?D.textContent=p.Xa.label:(Ua("Track #"+p.Xa.id+" does not have a label, but the UI is configured to only show labels."),D.textContent="?")}d&&v==l&&(w.appendChild(Tw()),D.classList.add("shaka-chosen-item"),w.ariaSelected="true",e.textContent=D.textContent);b.appendChild(w)}}}
1116
1117
  function hy(a,b){if(!a&&!b)return"";switch(a){case "mul":return b.resolve("MULTIPLE_LANGUAGES");case "und":return b.resolve("UNDETERMINED_LANGUAGE");case "zxx":return b.resolve("NOT_APPLICABLE")}var c=Pb(a);return a in Mw?Mw[a].s:c in Mw?Mw[c].s+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function iy(a,b,c){X.call(this,a,b);var d=this;jy(this,c);ky(this);ly(this);this.eventManager.o(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new N("submenuopen")),Y(d.menu,!0),Sw(d.menu)):Y(d.menu,!1)})}u(iy,X);
1117
1118
  function jy(a,b){a.button=Kk();a.button.classList.add("shaka-overflow-button");a.icon=S("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);b=S("label");b.classList.add("shaka-overflow-button-label");b.classList.add("shaka-overflow-menu-only");a.nameSpan=S("span");b.appendChild(a.nameSpan);a.currentSelection=S("span");a.currentSelection.classList.add("shaka-current-selection-span");b.appendChild(a.currentSelection);a.button.appendChild(b);a.parent.appendChild(a.button)}
@@ -1120,12 +1121,12 @@ S("span");a.backButton.appendChild(a.backSpan);a.controls.g.appendChild(a.menu)}
1120
1121
  function(){oy(c)});ny(this);oy(this)}u(my,iy);function oy(a){var b=a.player.Sa();gy(b,a.menu,function(c){a.player.Id(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.i.trackLabelFormat);Sw(a.menu);a.controls.dispatchEvent(new N("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText)}
1121
1122
  function ny(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("LANGUAGE");a.nameSpan.textContent=a.localization.resolve("LANGUAGE");a.backSpan.textContent=a.localization.resolve("LANGUAGE")}M("shaka.ui.AudioLanguageSelection",my);function py(){}py.prototype.create=function(a,b){return new my(a,b)};Sx("language",new py);tx("language",new py);function qy(a,b){X.call(this,a,b);var c=this;this.h=this.controls.C;this.g=Kk();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=S("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);a=S("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=S("span");a.appendChild(this.l);this.j=S("span");this.j.classList.add("shaka-current-selection-span");
1122
1123
  a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);ry(this);sy(this);this.eventManager.o(this.localization,"locale-updated",function(){ry(c)});this.eventManager.o(this.localization,"locale-changed",function(){ry(c)});this.eventManager.o(this.g,"click",function(){ty(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){sy(c)})}u(qy,X);
1123
- function ty(a){var b;K(function(c){if(1==c.g){if(a.h.qa())return a.h.Rf(),c.D(0);F(c,3);a.g.disabled=!0;return A(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,va(c,0);b=J(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new N("error",(new Map).set("detail",b)));C(c)})}function sy(a){var b=a.h.jf()&&a.controls.ab,c=a.h.qa();Y(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");uy(a)}
1124
- function uy(a){a.j.textContent=a.h.qa()?a.h.Gd():a.localization.resolve("OFF")}function ry(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");uy(a)}M("shaka.ui.CastButton",qy);function vy(){}vy.prototype.create=function(a,b){return new qy(a,b)};Sx("cast",new vy);tx("cast",new vy);function wy(a,b){X.call(this,a,b);var c=this;this.g=Kk();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-fast-forward-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status","1x");this.g.textContent="fast_forward";this.parent.appendChild(this.g);xy(this);this.h=this.controls.i.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){xy(c)});this.eventManager.o(this.localization,"locale-changed",function(){xy(c)});
1124
+ function ty(a){var b;K(function(c){if(1==c.g){if(a.h.ra())return a.h.Sf(),c.D(0);F(c,3);a.g.disabled=!0;return A(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,va(c,0);b=J(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new N("error",(new Map).set("detail",b)));C(c)})}function sy(a){var b=a.h.jf()&&a.controls.ab,c=a.h.ra();Y(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");uy(a)}
1125
+ function uy(a){a.j.textContent=a.h.ra()?a.h.Gd():a.localization.resolve("OFF")}function ry(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");uy(a)}M("shaka.ui.CastButton",qy);function vy(){}vy.prototype.create=function(a,b){return new qy(a,b)};Sx("cast",new vy);tx("cast",new vy);function wy(a,b){X.call(this,a,b);var c=this;this.g=Kk();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-fast-forward-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status","1x");this.g.textContent="fast_forward";this.parent.appendChild(this.g);xy(this);this.h=this.controls.i.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){xy(c)});this.eventManager.o(this.localization,"locale-changed",function(){xy(c)});
1125
1126
  this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.zb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Ue(d);c.g.setAttribute("shaka-status",d+"x")}})}u(wy,X);function xy(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}M("shaka.ui.FastForwardButton",wy);function yy(){}yy.prototype.create=function(a,b){return new wy(a,b)};tx("fast_forward",new yy);function zy(a,b){X.call(this,a,b);var c=this;this.h=this.controls.B;this.g=Kk();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");Ay(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);By(this);this.eventManager.o(this.localization,"locale-updated",function(){By(c)});this.eventManager.o(this.localization,"locale-changed",function(){By(c)});this.eventManager.o(this.g,"click",function(){return K(function(d){return A(d,
1126
1127
  c.controls.Se(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.jc()?"fullscreen_exit":"fullscreen";By(c)});this.eventManager.o(this.h,"loadedmetadata",function(){Ay(c)});this.eventManager.o(this.h,"loadeddata",function(){Ay(c)})}u(zy,X);function Ay(a){a.controls.sd()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function By(a){a.g.ariaLabel=a.localization.resolve(a.controls.jc()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1127
1128
  M("shaka.ui.FullscreenButton",zy);function Cy(){}Cy.prototype.create=function(a,b){return new zy(a,b)};tx("fullscreen",new Cy);function Dy(a,b){X.call(this,a,b);var c=this;this.g=Kk();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=S("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);a=S("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=S("span");this.j.textContent=this.localization.resolve("LOOP");a.appendChild(this.j);this.l=S("span");this.l.classList.add("shaka-current-selection-span");
1128
- a.appendChild(this.l);this.g.appendChild(a);Ey(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){Ey(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ey(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.Aa();c.h.ka(1)});this.m=this.video.loop;this.h=new P(function(){c.m!=c.video.loop&&(Ey(c),c.m=c.video.loop)});this.h.ka(1)}u(Dy,X);Dy.prototype.release=function(){this.h.stop();this.h=null;X.prototype.release.call(this)};
1129
+ a.appendChild(this.l);this.g.appendChild(a);Ey(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){Ey(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ey(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.Aa();c.h.na(1)});this.m=this.video.loop;this.h=new P(function(){c.m!=c.video.loop&&(Ey(c),c.m=c.video.loop)});this.h.na(1)}u(Dy,X);Dy.prototype.release=function(){this.h.stop();this.h=null;X.prototype.release.call(this)};
1129
1130
  function Ey(a){a.j.textContent=a.localization.resolve("LOOP");a.l.textContent=a.localization.resolve(a.video.loop?"ON":"OFF");a.i.textContent=a.video.loop?"repeat_on":"repeat";a.g.ariaLabel=a.localization.resolve(a.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE")}M("shaka.ui.LoopButton",Dy);function Fy(){}Fy.prototype.create=function(a,b){return new Dy(a,b)};Sx("loop",new Fy);tx("loop",new Fy);dx("loop",new Fy);function Gy(a,b){X.call(this,a,b);var c=this;this.g=Kk();this.g.classList.add("shaka-mute-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.parent.appendChild(this.g);Hy(this);Iy(this);this.eventManager.o(this.localization,"locale-updated",function(){Hy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Hy(c)});this.eventManager.o(this.g,"click",function(){c.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});
1130
1131
  this.eventManager.o(this.video,"volumechange",function(){Hy(c);Iy(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){Hy(c);Iy(c)});this.eventManager.o(this.adManager,"ad-muted",function(){Hy(c);Iy(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null;Hy(c);Iy(c)})}u(Gy,X);function Hy(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
1131
1132
  function Iy(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}M("shaka.ui.MuteButton",Gy);function Jy(){}Jy.prototype.create=function(a,b){return new Gy(a,b)};tx("mute",new Jy);function Ky(a,b){X.call(this,a,b);var c=this;this.l=this.controls.B;this.g=Kk();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=S("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);a=S("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=S("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");a.appendChild(this.j);this.h=
@@ -1147,11 +1148,11 @@ function Yy(a){var b=a.player.ic()?"QUALITY":"RESOLUTION";a.button.ariaLabel=a.l
1147
1148
  $y.prototype.create=function(a,b){return new Xy(a,b)};Sx("quality",new $y);tx("quality",new $y);function az(a,b){X.call(this,a,b);var c=this;this.g=Kk();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-rewind-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status",this.localization.resolve("OFF"));this.g.textContent="fast_rewind";this.parent.appendChild(this.g);bz(this);this.h=this.controls.i.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){bz(c)});this.eventManager.o(this.localization,"locale-changed",function(){bz(c)});
1148
1149
  this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.zb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Ue(d);c.g.setAttribute("shaka-status",d+"x")}})}u(az,X);function bz(a){a.g.ariaLabel=a.localization.resolve("REWIND")}M("shaka.ui.RewindButton",az);function cz(){}cz.prototype.create=function(a,b){return new az(a,b)};tx("rewind",new cz);function dz(a,b){X.call(this,a,b);var c=this;this.j=S("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=S("div");this.h.classList.add("shaka-skip-ad-counter");Y(this.h,!1);this.j.appendChild(this.h);this.g=Kk();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;Y(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);ez(this);this.i=new P(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1149
1150
  d:(c.i.stop(),Y(c.h,!1))});this.eventManager.o(this.localization,"locale-updated",function(){ez(c)});this.eventManager.o(this.localization,"locale-changed",function(){ez(c)});this.eventManager.o(this.adManager,"ad-started",function(){fz(c)});this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),Y(c.h,!1))});this.eventManager.o(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;Y(c.g,!1);Y(c.h,!1)});this.eventManager.o(this.g,
1150
- "click",function(){c.ad.skip()});this.ad&&fz(this)}u(dz,X);dz.prototype.release=function(){this.i.stop();this.i=null;X.prototype.release.call(this)};function ez(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function fz(a){a.ad.isSkippable()&&(Y(a.g,!0),Y(a.h,!0),a.h.textContent="",a.i.Aa(),a.i.ka(.5))}M("shaka.ui.SkipAdButton",dz);function gz(a,b){Yw.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.button.classList.add("shaka-tooltip");this.h();this.g()}u(gz,Yw);gz.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"};gz.prototype.g=function(){if(this.video.ended)this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)}};
1151
+ "click",function(){c.ad.skip()});this.ad&&fz(this)}u(dz,X);dz.prototype.release=function(){this.i.stop();this.i=null;X.prototype.release.call(this)};function ez(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function fz(a){a.ad.isSkippable()&&(Y(a.g,!0),Y(a.h,!0),a.h.textContent="",a.i.Aa(),a.i.na(.5))}M("shaka.ui.SkipAdButton",dz);function gz(a,b){Yw.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.button.classList.add("shaka-tooltip");this.h();this.g()}u(gz,Yw);gz.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"};gz.prototype.g=function(){if(this.video.ended)this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)}};
1151
1152
  M("shaka.ui.SmallPlayButton",gz);function hz(){}hz.prototype.create=function(a,b){return new gz(a,b)};tx("play_pause",new hz);function iz(a,b){X.call(this,a,b);a=S("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a)}u(iz,X);M("shaka.ui.Spacer",iz);function jz(){}jz.prototype.create=function(a,b){return new iz(a,b)};tx("spacer",new jz);function kz(a,b){function c(k){return Uw(h.h[k],!1)+" (m)"}function d(k){return Math.round(h.h[k]/1E3)+" (kbits/s)"}function e(k){return h.h[k].toFixed(2)+" (s)"}function f(k){return h.h[k]+" (frames)"}function g(k){return h.h[k]+" (px)"}X.call(this,a,b);var h=this;this.i=Kk();this.i.classList.add("shaka-statistics-button");this.j=S("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);a=S("label");a.classList.add("shaka-overflow-button-label");
1152
1153
  this.A=S("span");a.appendChild(this.A);this.m=S("span");this.m.classList.add("shaka-current-selection-span");a.appendChild(this.m);this.i.appendChild(a);this.parent.appendChild(this.i);this.g=S("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-show-controls-on-mouse-over");this.g.classList.add("shaka-statistics-container");this.g.classList.add("shaka-hidden");this.controls.g.appendChild(this.g);this.F=[];this.G=["stateHistory","switchHistory"];this.h=this.player.getStats();
1153
1154
  this.B={};this.C={width:g,height:g,completionPercent:function(k){return h.h[k]+" (%)"},bufferingTime:e,drmTimeSeconds:e,licenseTime:e,liveLatency:e,loadLatency:e,manifestTimeSeconds:e,estimatedBandwidth:d,streamBandwidth:d,maxSegmentDuration:c,pauseTime:c,playTime:c,corruptedFrames:f,decodedFrames:f,droppedFrames:f,stallsDetected:function(k){return h.h[k]+" (stalls)"},gapsJumped:function(k){return h.h[k]+" (gaps)"}};this.l=new P(function(){h.h=h.player.getStats();for(var k=r(h.F),l=k.next();!l.done;l=
1154
- k.next())l=l.value,h.B[l].textContent=h.C[l](l)});lz(this);mz(this);this.eventManager.o(this.localization,"locale-updated",function(){lz(h)});this.eventManager.o(this.localization,"locale-changed",function(){lz(h)});this.eventManager.o(this.i,"click",function(){Y(h.parent,!1);h.g.classList.contains("shaka-hidden")?(h.j.textContent="insert_chart",h.l.ka(.1),Y(h.g,!0)):(h.j.textContent="insert_chart_outlined",h.l.stop(),Y(h.g,!1));lz(h)})}u(kz,X);
1155
+ k.next())l=l.value,h.B[l].textContent=h.C[l](l)});lz(this);mz(this);this.eventManager.o(this.localization,"locale-updated",function(){lz(h)});this.eventManager.o(this.localization,"locale-changed",function(){lz(h)});this.eventManager.o(this.i,"click",function(){Y(h.parent,!1);h.g.classList.contains("shaka-hidden")?(h.j.textContent="insert_chart",h.l.na(.1),Y(h.g,!0)):(h.j.textContent="insert_chart_outlined",h.l.stop(),Y(h.g,!1));lz(h)})}u(kz,X);
1155
1156
  function lz(a){a.A.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.m.textContent=a.localization.resolve(a.g.classList.contains("shaka-hidden")?"OFF":"ON")}
1156
1157
  function mz(a){for(var b=r(a.controls.i.statisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.h&&!a.G.includes(c)){var d=a.g,e=d.appendChild,f=a,g=S("div"),h=S("label");h.textContent=c+":";g.appendChild(h);h=S("span");h.textContent=f.C[c](c);g.appendChild(h);f.B[c]=h;e.call(d,g);a.F.push(c)}else Ua("Unrecognized statistic element:",c)}kz.prototype.release=function(){this.l.stop();this.l=null;X.prototype.release.call(this)};M("shaka.ui.StatisticsButton",kz);function nz(){}
1157
1158
  nz.prototype.create=function(a,b){return new kz(a,b)};Sx("statistics",new nz);dx("statistics",new nz);function oz(a,b){iy.call(this,a,b,"closed_caption");var c=this;this.button.classList.add("shaka-caption-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-text-languages");this.player&&this.player.Ob()?this.button.ariaPressed="true":this.button.ariaPressed="false";pz(this);this.eventManager.o(this.localization,"locale-updated",function(){qz(c);rz(c)});this.eventManager.o(this.localization,"locale-changed",function(){qz(c);rz(c)});this.eventManager.o(this.player,