@castlabs/prestoplay 6.4.1 → 6.5.0

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 (58) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/cjs/cl.adobe.js +3 -3
  3. package/cjs/cl.airplay.js +3 -3
  4. package/cjs/cl.broadpeak.js +6 -6
  5. package/cjs/cl.cast.js +110 -110
  6. package/cjs/cl.conviva.js +33 -33
  7. package/cjs/cl.core.js +419 -416
  8. package/cjs/cl.crypto.js +9 -9
  9. package/cjs/cl.dash.js +72 -72
  10. package/cjs/cl.externs.js +26 -26
  11. package/cjs/cl.freewheel.js +24 -24
  12. package/cjs/cl.hls.js +47 -47
  13. package/cjs/cl.hlssmpte.js +6 -6
  14. package/cjs/cl.htmlcue.js +31 -31
  15. package/cjs/cl.ima.js +22 -22
  16. package/cjs/cl.mse.js +258 -255
  17. package/cjs/cl.muxdata.js +12 -12
  18. package/cjs/cl.onboard.js +3 -3
  19. package/cjs/cl.persistent.js +14 -14
  20. package/cjs/cl.playlist.js +6 -6
  21. package/cjs/cl.smooth.js +69 -69
  22. package/cjs/cl.thumbnails.js +24 -24
  23. package/cjs/cl.tizen.js +71 -71
  24. package/cjs/cl.ttml.js +27 -27
  25. package/cjs/cl.verimatrix.js +5 -5
  26. package/cjs/cl.vimond.js +13 -13
  27. package/cjs/cl.vr.js +19 -18
  28. package/cjs/cl.vtt.js +14 -14
  29. package/cjs/cl.youbora.js +20 -20
  30. package/cl.adobe.js +3 -3
  31. package/cl.airplay.js +3 -3
  32. package/cl.broadpeak.js +5 -5
  33. package/cl.cast.js +88 -88
  34. package/cl.conviva.js +27 -27
  35. package/cl.core.js +354 -351
  36. package/cl.crypto.js +8 -8
  37. package/cl.dash.js +66 -66
  38. package/cl.externs.js +26 -26
  39. package/cl.freewheel.js +19 -19
  40. package/cl.hls.js +40 -39
  41. package/cl.hlssmpte.js +5 -5
  42. package/cl.htmlcue.js +25 -25
  43. package/cl.ima.js +16 -16
  44. package/cl.mse.js +230 -231
  45. package/cl.muxdata.js +8 -8
  46. package/cl.onboard.js +4 -4
  47. package/cl.persistent.js +9 -9
  48. package/cl.playlist.js +5 -5
  49. package/cl.smooth.js +58 -58
  50. package/cl.thumbnails.js +17 -17
  51. package/cl.tizen.js +57 -57
  52. package/cl.ttml.js +22 -22
  53. package/cl.verimatrix.js +4 -4
  54. package/cl.vimond.js +8 -8
  55. package/cl.vr.js +15 -14
  56. package/cl.vtt.js +12 -12
  57. package/cl.youbora.js +15 -16
  58. package/package.json +6 -2
package/cjs/cl.core.js CHANGED
@@ -1,310 +1,313 @@
1
1
  (function(){var g={}; var _ = {};
2
- (function(window){var ba,ca,da,oa,ra,ua,va,za,Aa,Ca,Ea,Ga,Ka,Ma,Na,Oa,Pa,Qa,Ra,Va,Wa,Xa,Ya,Za,bb,cb,lb,ob,pb,rb,sb,ub,wb,zb,Ab,Bb,Db,hc,uc,vc,Bc,Cc,Ec,Gc,Hc,Ic,Jc,Rc,Xc,ad,bd,cd,gd,nd,pd,qd,vd,yd,Od,Vd,ce,ee,ne,re,ze,He,Ve,Ze,$e,af,bf,cf,ef,ff,gf,hf,nf,rf,tf,sf,uf,vf,wf,Af,Df,Bf,Cf,Ef,Gf,Hf,Lf,Nf,Sf,Tf,ag,bg,gg,eg,hg,jg,ig,lg,og,Bg,Cg,Fg,Gg,Kg,Mg,Og,Lg,Ig,Tg,Ug,ah,dh,hh,ih,mh,eh,bh,nh,qh,Fh,Jh,Kh,Lh,Oh,Ph,Zh,$h,ci,bi,hi,ji,ki,pi,qi,ri,ti,si,vi,wi,ui,zi,xi,yi,Ai,Bi,Ki,Ni,Yi,$i,aj,bj,nj,Qi,cj,qj,sj,uj,vj,rj,wj,xj,yj,
3
- zj,Aj,Ej,Fj,Gj,Hj,Bj,Lj,Mj,Oj,Qj,Yj,hk,ik,jk,kk,qk,sk,Ck,Jk,Mk,Nk,Pk,Qk,Xk,al,bl,gl,ml,nl,pl,ql,vl,wl,Bl,Cl,Gl,Ml,Vl,Xl,Zl,cm,dm,hm,Tl,Rl,lm,fm,mm,om,nm,tm,sm,qm,rm,Il,Yl,pm,Jl,km,Ql,jm,Sl,Ll,Dm,Fm,Gm,Hm,Im,Nm,Rm,Sm,Um,Ym,cn,Qm,dn,en,hn,ln,mn,on,pn,kn,jn,qn,rn,wn,Bn,Cn,Dn,Hn,Gn,Jn,In,Ln,Mn,Nn,On,Kn,Qn,Sn,Tn,Un,Vn,Wn,Xn,Yn,Zn,ao,bo,co,eo,$n,ho,V,jo,io,lo,no,oo,so,po,W,vo,wo,xo,vn,yo,Ao,Bo,Co,Do,Eo,Fo,Go,Ho,Io,Jo,Ko,Lo,Mo,No,Oo,Po,So,Qo,To,Vo,Wo,Ro,Uo,Xo,Yo,Zo,$o,ap,bp,cp,dp,ep,fp,hp,jp,kp,lp,ip,np,
4
- op,sp,xp,yp,Ap,zp,Wh,Cp,Fp,Ep,Gp,Hp,Dp,Jp,Kp,Ip,Lp,Xh,Op,Sh,Zp,bq,lf,dq;_.aa=" is registered.";ba=" is unsupported on this platform.";ca=" to a log level. Falling back to default!";da="': 'output-restricted'";_.ia="6.4.1";_.ja="AdaptationSet";_.ka="Already destroyed. No-op";_.la="Already released. No-op";_.ma="Autoplay is not allowed due to browser policy.";_.na="BANDWIDTH";oa="CHECKSUM";_.pa="CODECS";ra="Can not set volume to ";_.sa="Cannot retrieve buffer information due to platform limitations";
5
- _.ta="CastlabsPlayer";ua="Content-Length";va="Content-Type";_.wa="Could not find configured DRM environment.";_.ya="DRM environment '";za="DRM licenses loaded";Aa="DRMtoday";Ca="DRMtodayOnboard";Ea="Destroying player";_.Fa="Disable track type ";Ga="Error while decoding string!";_.Ha="Error while fetching license!";_.Ia="FairPlay Certificate URL is not defined";_.Ja="FairPlay License URL is not defined";Ka="HW_SECURE_CRYPTO";Ma="HW_SECURE_DECODE";Na="HeaderDrm";Oa="Invalid track type: ";Pa="InvalidStateError";
6
- Qa="Key status for Key ID '";Ra="License verification failed: ";_.Sa="Loading player with configuration";_.Ta="MaxHeight";_.Ua="MaxWidth";Va="Missing media element";Wa="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";Xa="No event provided!";Ya="No track data attached to the event, unable to add track!";Za="Not a persistent session.";bb="NotAllowedError";cb="NotSupportedError";_.db="PlayReady License URL is not defined";_.eb="Player sources";
7
- _.fb="Player state change: ";_.gb="Please make sure ";_.hb="QualityLevel";_.ib="RESOLUTION";_.jb="Releasing player with source";_.kb="Representation";lb="STANDARD";_.mb="SW_SECURE_CRYPTO";_.nb="SW_SECURE_DECODE";ob="Session is closed";pb="Setting native ";rb="Signature Verification failed";sb="Skipping Session creation. License for init data was already requested in Session: '";_.tb="SmoothStreamingMedia";ub="The index is not in the allowed range.";_.vb="URI";wb="Unable to translate ";_.xb="Unhandled/ignored event";
2
+ (function(window){var ba,ca,da,oa,ra,ua,va,za,Ba,Ca,Da,Ha,La,Na,Oa,Pa,Qa,Ra,Sa,Wa,Xa,Ya,Za,$a,bb,cb,lb,ob,pb,qb,sb,ub,wb,zb,Ab,Bb,Db,hc,uc,vc,Bc,Cc,Dc,Fc,Hc,Ic,Jc,Kc,Sc,Yc,bd,cd,dd,hd,od,qd,rd,wd,zd,Pd,Wd,de,fe,oe,se,Ae,Ie,We,$e,af,bf,cf,df,ff,gf,hf,kf,of,sf,uf,tf,vf,wf,xf,Bf,Ef,Cf,Df,Ff,Hf,If,Mf,Of,Tf,Uf,bg,cg,hg,fg,ig,kg,jg,mg,pg,Cg,Dg,Gg,Hg,Lg,Ng,Pg,Mg,Jg,Ug,Vg,bh,gh,jh,kh,nh,hh,ch,oh,rh,Gh,Kh,Lh,Mh,Ph,Qh,$h,ai,di,ci,ii,ki,li,qi,ri,si,ui,ti,wi,xi,vi,Ai,yi,zi,Bi,Ci,Mi,Oi,Zi,aj,bj,ej,oj,Ri,fj,rj,tj,vj,wj,sj,xj,yj,
3
+ zj,Aj,Bj,Fj,Gj,Hj,Ij,Cj,Mj,Nj,Pj,Rj,Zj,ik,jk,kk,lk,rk,tk,Dk,Kk,Nk,Ok,Qk,Rk,Yk,bl,dl,hl,nl,ol,ql,rl,wl,xl,Cl,Dl,Hl,Nl,Wl,Yl,$l,dm,em,im,Ul,Sl,mm,gm,nm,pm,om,um,tm,rm,sm,Jl,Zl,qm,Kl,lm,Rl,km,Tl,Ml,Em,Gm,Hm,Im,Jm,Om,Sm,Tm,Vm,Zm,dn,Rm,en,fn,jn,mn,nn,pn,qn,ln,kn,rn,sn,tn,yn,Dn,En,Fn,Jn,In,Ln,Kn,Nn,On,Pn,Qn,Mn,Sn,Un,Vn,Wn,Xn,Yn,Zn,$n,ao,co,eo,fo,go,bo,jo,V,lo,ko,no,po,qo,uo,ro,W,xo,yo,zo,xn,Ao,Co,Do,Eo,Fo,Go,Ho,Io,Jo,Ko,Lo,Mo,No,Oo,Po,Qo,Ro,Uo,So,Vo,Xo,Yo,To,Wo,Zo,$o,ap,bp,cp,dp,ep,fp,gp,hp,jp,lp,mp,np,
4
+ kp,pp,qp,up,zp,Ap,Cp,Bp,Xh,Ep,Hp,Gp,Ip,Jp,Fp,Lp,Mp,Kp,Np,Yh,Qp,Th,aq,dq,mf,fq;_.aa=" is registered.";ba=" is unsupported on this platform.";ca=" to a log level. Falling back to default!";da="': 'output-restricted'";_.ea="6.5.0";_.ha="AdaptationSet";_.ia="Already destroyed. No-op";_.ja="Already released. No-op";_.ma="Autoplay is not allowed due to browser policy.";_.na="BANDWIDTH";oa="CHECKSUM";_.pa="CODECS";ra="Can not set volume to ";_.sa="Cannot retrieve buffer information due to platform limitations";
5
+ _.ta="CastlabsPlayer";ua="Content-Length";va="Content-Type";_.xa="Could not find configured DRM environment.";_.ya="DRM environment '";za="DRM licenses loaded";Ba="DRMtoday";Ca="DRMtodayOnboard";Da="Destroying player";_.Ea="Disable track type ";Ha="Error while decoding string!";_.Ia="Error while fetching license!";_.Ja="FairPlay Certificate URL is not defined";_.Ka="FairPlay License URL is not defined";La="HW_SECURE_CRYPTO";Na="HW_SECURE_DECODE";Oa="HeaderDrm";Pa="Invalid track type: ";Qa="InvalidStateError";
6
+ Ra="Key status for Key ID '";Sa="License verification failed: ";_.Ta="Loading player with configuration";_.Ua="MaxHeight";_.Va="MaxWidth";Wa="Missing media element";Xa="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";Ya="No event provided!";Za="No track data attached to the event, unable to add track!";$a="Not a persistent session.";bb="NotAllowedError";cb="NotSupportedError";_.db="PlayReady License URL is not defined";_.eb="Player sources";
7
+ _.fb="Player state change: ";_.gb="Please make sure ";_.hb="QualityLevel";_.ib="RESOLUTION";_.jb="Releasing player with source";_.kb="Representation";lb="STANDARD";_.mb="SW_SECURE_CRYPTO";_.nb="SW_SECURE_DECODE";ob="Session is closed";pb="Setting native ";qb="Signature Verification failed";sb="Skipping Session creation. License for init data was already requested in Session: '";_.tb="SmoothStreamingMedia";ub="The index is not in the allowed range.";_.vb="URI";wb="Unable to translate ";_.xb="Unhandled/ignored event";
8
8
  _.yb="Unregistering listeners";zb="Unsupported keySystem";Ab="Using VTTCue polyfill from 3 argument TextTrackCue.";Bb="WebkitEmeManager.MediaKeySession.load";_.Cb="Widevine License URL is not defined";Db="Will create EME Manager: ";_.Fb="ad-break-started";_.Gb="ad-break-stopped";_.Hb="ad-buffering";_.Ib="ad-clicked";_.Jb="ad-completed";_.Kb="ad-first-quartile";_.Lb="ad-impression";_.Mb="ad-loaded";_.Nb="ad-midpoint";_.Ob="ad-paused";_.Pb="ad-progress";_.Qb="ad-resumed";_.Rb="ad-skipped";_.Sb="ad-started";
9
9
  _.Tb="ad-stopped";_.Ub="ad-third-quartile";_.Vb="addtrack";_.Wb="ads-timeline-changed";_.Xb="airplay-casting-ended";_.Yb="airplay-casting-started";_.Zb="airplay-status-changed";_.$b="application";_.ac="application/cea-608";_.bc="application/dash+xml";_.cc="application/mp4";_.dc='application/mp4; codecs\x3d"stpp"';_.ec='application/mp4; codecs\x3d"wvtt"';_.fc="application/ttml+xml";_.gc="application/vnd.ms-sstr+xml";hc="application/x-www-form-urlencoded";_.ic="audio";_.jc="audio/aac";_.kc="audio/ac3";
10
- _.lc="audio/eac3";_.nc="audio/mp4";_.oc="audiobufferchanged";_.pc="autoplaynotallowed";_.qc="bitratechanged";_.rc="boolean";_.sc="bufferingended";_.tc="bufferingstarted";uc="canplay";vc="canplaythrough";_.wc="castingstarted";_.xc="caststatuschanged";_.yc="cdn-switch-success";_.zc="cenc";_.Ac="center";Bc="certificate-request";Cc="change";_.Dc="clpp-fill";Ec="clpp-hidden";_.Fc="clpp.cast.CastSender";Gc="clpp.drm.HeaderDrm";Hc="clpp.drm.eme.AppleEmeManager";Ic="clpp.native.Player";Jc="clpp.utils.Platform";
11
- _.Kc="codecs";_.Lc="column-reverse";_.Mc="com.adobe.primetime";_.Nc="com.apple.fps";_.Oc="com.microsoft.playready";_.Pc="com.widevine.alpha";_.Qc="config.drm.customData is not defined";Rc="controls";_.Sc="cuechange";_.Tc="destroy()";_.Uc="disabled";_.Vc="div";_.Wc="drmexpirationupdate";Xc="drmrenewalstarted";_.Yc="drmsessionpersisted";_.$c="drmsessionupdate";ad="drmtoday";bd="durationchange";cd="encrypted";_.dd="end";_.ed="ended";_.fd="error";gd="fullscreenElement";_.hd="function";_.id="height";
12
- _.jd="hidden";_.kd="image";_.ld="image/jpeg";_.md="internal-error";nd="keystatuseschange";_.od="left";pd="license-renewal";qd="license-request";_.rd="line-left";_.sd="line-right";_.td="loadeddata";_.ud="loadedmetadata";vd="loadstart";_.wd="mdat";_.xd="mdia";yd="message";_.zd="metadata";_.Ad="mimeType";_.Bd="minf";_.Cd="moov";_.Dd="mp4";_.Ed="mpd-type-changed";_.Gd="mpeg-dash-callback-event";_.Hd="none";_.k="number";_.Id="object";_.Jd="onBitrateChanged()";_.Kd="onPlayerError()";_.Ld="onPlayerWillDestroy";
13
- _.Md="onPlayerWillRelease";_.Nd="onStateChanged()";Od="online-status-changed";_.Pd="optional";_.Qd="org.w3.clearkey";_.Rd="output-restricted";_.Sd="pause";_.Td="persistent";_.Ud="persistent-license";Vd="picture-in-picture";_.Wd="play";_.Xd="playing";_.Yd="playlist-item-changed";_.Zd="playlist-modified";_.$d="progress";_.ae="px";_.be="ratechange";ce="released";_.de="releasing";ee="removetrack";_.fe="required";_.ge="resize";_.he="right";_.ie="seeked";_.je="seeking";_.ke="showing";_.le="sinf";ne="stalled";
14
- _.oe="start";_.pe="statechanged";re="status-pending";_.se="stbl";_.te="string";_.ue="stsd";_.ve="style";_.we="subtitle";_.xe="subtitles-htmlcue";_.ye="subtitles-ttml";ze="temporary";_.Ae="text";_.Be="text/vtt";_.Ce="text/xml";_.De="timeupdate";_.Ee="trak";_.Fe="ttml-xml";_.Ge="und";He="unknown";_.Ie="urn:scte:scte35";_.Je="urn:scte:scte35:2014";_.Ke="user-seeked";_.Le="user-seeking";_.Me="value";_.Ne="vertical-lr";_.Oe="vertical-rl";_.Pe="video";_.Qe="video/mp2t";_.Re="video/mp4";_.Se="videobufferchanged";
15
- _.Te="videotrackchanged";_.Ue="vimond-response";Ve="visibilitychange";_.We="vtt-xml";_.Xe="waiting";_.Ye="waitingforkey";Ze="webkit-org.w3.clearkey";$e="webkitkeyadded";af="webkitkeyerror";bf="webkitkeymessage";cf="webkitneedkey";_.df="width";ef="x-dt-csl-tracking-token";ff="x-dt-follow-up-token";gf="x-dt-resp-code";hf=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
16
- _.u=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:hf(a)}};_.kf=function(a){if(!(a instanceof Array)){a=_.u(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};_.v=function(a,b){a.prototype=lf(b.prototype);a.prototype.constructor=a;if(mf)mf(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]};
17
- nf=function(){nf=function(){};of.Symbol||(of.Symbol=pf)};rf=function(a,b){this.a=a;qf(this,"description",{configurable:!0,writable:!0,value:b})};tf=function(){nf();var a=of.Symbol.iterator;a||(a=of.Symbol.iterator=of.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.hd&&qf(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return sf(hf(this))}});tf=function(){}};sf=function(a){tf();a={next:a};a[of.Symbol.iterator]=function(){return this};return a};
18
- uf=function(){this.o=!1;this.h=null;this.f=void 0;this.a=1;this.j=this.m=0;this.A=this.g=null};vf=function(a){if(a.o)throw new TypeError("Generator is already running");a.o=!0};wf=function(a,b){a.g={Cf:b,Nf:!0};a.a=a.m||a.j};_.y=function(a,b,c){a.a=c;return{value:b}};_.z=function(a){a.a=0};_.xf=function(a,b,c){a.m=b;void 0!=c&&(a.j=c)};_.yf=function(a,b,c){a.a=b;a.m=c||0};_.zf=function(a,b){a.m=b||0;var c=a.g.Cf;a.g=null;return c};Af=function(a){this.a=new uf;this.f=a};
19
- Df=function(a,b){vf(a.a);var c=a.a.h;if(c)return Bf(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return Cf(a)};Bf=function(a,b,c,d){try{var e=b.call(a.a.h,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.a.o=!1,e;var f=e.value}catch(g){return a.a.h=null,wf(a.a,g),Cf(a)}a.a.h=null;d.call(a.a,f);return Cf(a)};
20
- Cf=function(a){for(;a.a.a;)try{var b=a.f(a.a);if(b)return a.a.o=!1,{value:b.value,done:!1}}catch(c){a.a.f=void 0,wf(a.a,c)}a.a.o=!1;if(a.a.g){b=a.a.g;a.a.g=null;if(b.Nf)throw b.Cf;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
21
- Ef=function(a){this.next=function(b){vf(a.a);a.a.h?b=Bf(a,a.a.h.next,b,a.a.w):(a.a.w(b),b=Cf(a));return b};this["throw"]=function(b){vf(a.a);a.a.h?b=Bf(a,a.a.h["throw"],b,a.a.w):(wf(a.a,b),b=Cf(a));return b};this["return"]=function(b){return Df(a,b)};tf();this[Symbol.iterator]=function(){return this}};_.Ff=function(a,b){var c=new Ef(new Af(b));mf&&mf(c,a.prototype);return c};
22
- Gf=function(a,b){if(b){for(var c=of,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];f in c||(c[f]={});c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&qf(c,d,{configurable:!0,writable:!0,value:f})}};Hf=function(a){function b(d){return a.next(d)}function c(d){return a["throw"](d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})};_.A=function(a){return Hf(new Ef(new Af(a)))};
23
- _.B=function(a,b){var c=a.split("."),d=If;c[0]in d||"undefined"==typeof d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}:d[e]=b};Lf=function(a){return a&&0<=Jf[a]?Jf[a]:Kf};Nf=function(a){if(!a)return _.F("clpp.log",wb+a+ca),-1;var b=Mf[a.toUpperCase()];return void 0===b?(_.F("clpp.log",wb+a+ca),-1):b};_.H=function(a){(this.a=a)&&void 0===Jf[a]&&(Jf[a]=-1)};_.Pf=function(a){Of.info.apply(Of,arguments)};
24
- _.Qf=function(a){Of.debug.apply(Of,arguments)};_.F=function(a){Of.warn.apply(Of,arguments)};_.Rf=function(a){Of.error.apply(Of,arguments)};Sf=function(a,b){this.Hb=a;this.a=b};Tf=function(a,b){this.a=a;this.f=b};_.Xf=function(a){if(a){var b=a.a();b in _.Uf?_.Wf.warn("Player-Factory '"+b+"' already registered"):(_.Uf[b]=a,_.Wf.info("Registered Player-Factory: '"+b+"'"))}};_.$f=function(){this.a={}};ag=function(a,b,c,d){this.f=a;this.xc=b;this.a=c;this.Aj=!!d};
25
- _.I=function(a,b){if(b)for(var c in b)this[c]=b[c];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.f=this.a=!1};bg=function(a){this.a=new _.$f;this.f=a};_.cg=function(){this.a=new _.$f};
26
- _.dg=function(a,b,c,d){function e(h){for(var l=_.u(c),m=l.next();!m.done;m=l.next())a.off(b,m.value,e);d(h)}for(var f=_.u(c),g=f.next();!g.done;g=f.next())a.on(b,g.value,e)};_.fg=function(a){var b=a.a,c=[],d;for(d in b.a)c.push.apply(c,b.a[d]);for(b=0;b<c.length;++b)eg(c[b]);a.a.clear()};gg=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};eg=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
27
- hg=function(a){this.l=a;this.m=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.h=null;this.f=new _.cg;this.a=this.j=null;this.g=[];this.o=new _.H("clpp.native.Metadata")};jg=function(a,b){a.h=b;a.j=a.h.textTracks;a.f.on(a.j,_.Vb,function(c){c=c.track;c.kind===_.zd&&ig(a,c)})};
28
- ig=function(a,b){function c(l){for(var m=_.u(d),n=m.next();!n.done;n=m.next())if(n=n.value,l.startTime===n.startTime&&l.endTime===n.endTime)return n;m={schemeIdUri:"",value:"",startTime:0,endTime:0,id:"",type:_.kg,eventElement:null};a.m&&e&&"SCTE35-IN"===l.value.key&&0<l.startTime?(m.startTime=0,m.endTime=l.startTime):(m.startTime=l.startTime,m.endTime=l.endTime);e=!1;d.push(m);return d[d.length-1]}a.o.debug("onMetadata_()");b.mode=_.jd;var d=[],e=!0;if(b.cues){for(var f=_.u(b.cues),g=f.next();!g.done;g=
29
- f.next())if(g=g.value,!lg(a,g)){var h=c(g);switch(g.value.key){case "SCTE35-IN":case "SCTE35-OUT":h.schemeIdUri=_.Je;h.type=_.mg;break;case "X-CUSTOM-ID":h.id=g.value.data}}f=_.u(d);for(g=f.next();!g.done;g=f.next())a.l.trigger(new _.I(_.ng,{detail:g.value}));Array.prototype.push.apply(a.g,d);og(a,d,b);a.f.off(b,_.Sc);a.f.on(b,_.Sc,function(l){l=l.target.activeCues;l=l.length?lg(a,l[0]):a.a;var m;if(m=l)m=a.l.getPosition(),m=l.startTime<=m&&m<l.endTime;if(m)a.a=l,a.l.trigger(new _.I(_.pg,{detail:l}));
30
- else{if(l=a.a)l=a.a,m=a.l.getPosition(),l=l.endTime<=m;l&&(l=a.a,a.a=null,a.l.trigger(new _.I(_.qg,{detail:l})))}})}};lg=function(a,b){for(var c=_.u(a.g),d=c.next();!d.done;d=c.next())if(d=d.value,b.startTime===d.startTime&&b.endTime===d.endTime)return d;return null};og=function(a,b,c){if(a.m){for(;0<c.cues.length;)c.removeCue(c.cues[0]);b.forEach(function(d){c.addCue(new DataCue(d.startTime,d.endTime,{key:"SCTE35-OUT",data:null}))})}};
31
- _.xg=function(a,b,c,d){d=void 0===d?_.rg:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.sg;this.writingMode=_.tg;this.lineInterpretation=_.ug;this.line=null;this.lineAlign=_.vg;this.direction=wg;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
32
- _.Ag=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.yg;this.scroll=zg;this.cssClassList=[];this.writingMode=this.displayAlign=null};Bg=function(a){this.l=a;this.j=a.getTextDisplayer();this.f=this.g=null;this.a=new _.cg;this.h=!1;this.m=new _.H("clpp.native.CueHandler")};
33
- Cg=function(a,b){var c=b.track;c.kind!==_.zd&&(c.mode===_.ke&&(c.mode=_.jd),a.a.on(c,_.Sc,function(d){d=d.target||d.srcElement;d.mode=_.jd;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.j.append(d,[]))}))};_.Dg=function(a){return null!=a};
34
- _.Eg=function(a){var b;a instanceof _.Eg?(Fg(this,a.Ya),this.lc=a.lc,this.Na=a.Na,Gg(this,a.Jc),this.na=a.na,_.Hg(this,Ig(a.a)),this.Zb=a.Zb):a&&(b=String(a).match(Jg))?(Fg(this,b[1]||"",!0),this.lc=Kg(b[2]||""),this.Na=Kg(b[3]||"",!0),Gg(this,b[4]),this.na=Kg(b[5]||"",!0),_.Hg(this,b[6]||"",!0),this.Zb=Kg(b[7]||"")):this.a=new Lg(null)};Fg=function(a,b,c){a.Ya=c?Kg(b,!0):b;a.Ya&&(a.Ya=a.Ya.replace(/:$/,""))};
35
- Gg=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Jc=b}else a.Jc=null};_.Hg=function(a,b,c){b instanceof Lg?a.a=b:(c||(b=Mg(b,Ng)),a.a=new Lg(b))};Kg=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""};Mg=function(a,b,c){return typeof a===_.te?(a=encodeURI(a).replace(b,Og),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};Og=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};Lg=function(a){this.f=a||null};
36
- _.Pg=function(a){if(!a.a&&(a.a={},a.g=0,a.f))for(var b=a.f.split("\x26"),c=0;c<b.length;c++){var d=b[c].indexOf("\x3d"),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}};Ig=function(a){var b=new Lg;b.f=a.f;if(a.a){var c={},d;for(d in a.a)c[d]=a.a[d].concat();b.a=c;b.g=a.g}return b};
37
- _.Rg=function(a,b){for(var c=Qg[a],d=0;d<c.length;d++)for(var e=0;e<b.length;e++)if(c[d].test(b[e].trim()))return b[e].trim();return a===_.Ae?"":null};Tg=function(a){return a.map(function(b){b=(new _.Eg(b)).na.split(".");b=1>=b.length?null:b.pop();return(b=Sg.video[b||""])?b:null}).filter(Boolean)[0]||null};
38
- _.L=function(a,b,c,d,e){var f=Error.call(this,Ug(a,b,c,d));this.message=f.message;"stack"in f&&(this.stack=f.stack);this.severity=a;this.category=b;this.code=c;this.data=!d||_.J.Y(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.L)};
39
- Ug=function(a,b,c,d){a=(a===_.M?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.J.Y(d))a+=": "+d;else if(null!=d&&void 0!=d)if(null!=d.message&&void 0!=d.message)a+=": "+d.message,delete d.message;else try{a+=": "+JSON.stringify(d)}catch(e){}return a};_.Vg=function(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d};_.Wg=function(a,b,c){return(a=a.getAttribute(b))?a.value:c||null};_.Xg=function(a,b){this.name=a;this.value=b};
40
- _.Yg=function(a,b){for(var c=_.u(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};_.Zg=function(a){this.f=a;this.a=0};_.$g=function(a,b){b.lastIndex=a.a;var c=b.exec(a.f);c=null==c?null:{position:c.index,length:c[0].length,results:c};if(a.a==a.f.length||null==c||c.position!=a.a)return null;a.a+=c.length;return c.results};ah=function(){};
41
- dh=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(bh(a)==bh(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;for(var c=_.N(a),d=_.N(b),e=_.u(ch(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!=d[f])return!1;return!0};_.N=function(a,b,c){c=void 0===c?Infinity:c;return eh(a,void 0===b?0:b,c,Uint8Array)};hh=function(a,b,c){c=void 0===c?Infinity:c;return eh(a,void 0===b?0:b,c,Uint16Array)};
42
- ih=function(a,b,c){c=void 0===c?Infinity:c;return eh(a,void 0===b?0:b,c,Uint32Array)};_.kh=function(a,b,c){c=void 0===c?Infinity:c;return eh(a,void 0===b?0:b,c,Int32Array)};_.lh=function(a,b,c){c=void 0===c?Infinity:c;return eh(a,void 0===b?0:b,c,DataView)};mh=function(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
43
- eh=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=bh(a),g=(a.byteOffset||0)+a.byteLength;a=Math.max(0,Math.min((a.byteOffset||0)+b*e,g));c=Math.min(a+Math.max(c*e,0),g);a/=e;return new d(f,a,c/e-a)};bh=function(a){return a instanceof ArrayBuffer?a:a.buffer};nh=function(a){for(var b="",c=0;c<a.length;c+=16E3)b+=String.fromCharCode.apply(null,a.subarray(c,c+16E3));return b};
44
- _.oh=function(a){if(!a)return"";a=_.N(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if("TextDecoder"in window){a=(new TextDecoder).decode(a);if(a.includes("\ufffd"))throw Error(Ga);return a}a=escape(nh(a));try{return decodeURIComponent(a)}catch(b){throw Error(Ga);}};
45
- qh=function(a,b,c){if(!a)return"";if(!c&&0!==a.byteLength%2)throw ph.error("Data has an incorrect length, must be even."),Error("Data does not seem to be UTF-16 encoded!");c=_.N(a);if(b&&255===c[0]&&254===c[1]||254===c[0]&&255===c[1])a=c.subarray(2);if(a instanceof ArrayBuffer)var d=a;else c=new Uint8Array(a.byteLength),c.set(_.N(a)),d=c.buffer;a=Math.floor(a.byteLength/2);c=new Uint16Array(a);d=new DataView(d);for(var e=0;e<a;e++)c[e]=d.getUint16(2*e,b);return nh(c)};
46
- _.rh=function(a,b){if(_.J.Y(a))return a;var c="",d=!!b,e=_.N(a);239==e[0]&&187==e[1]&&191==e[2]?c=_.oh(e):254==e[0]&&255==e[1]?c=qh(e.subarray(2),!1):255==e[0]&&254==e[1]&&(c=qh(e.subarray(2),!0));var f=function(g,h){return g.byteLength<=h||32<=g[h]&&126>=g[h]}.bind(null,e);ph.debug("Unable to find byte-order-mark, making an educated guess.");0==e[0]&&0==e[2]?c=qh(a,!1):0==e[1]&&0==e[3]?c=qh(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.oh(a));if(c)return d&&(c=escape(c)),c;throw Error("Unable to detect text encoding");
47
- };_.sh=function(a){if("TextEncoder"in window)return(new TextEncoder).encode(a);a=encodeURIComponent(a);a=unescape(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b};_.th=function(a,b){for(var c=new Uint8Array(2*a.length),d=new DataView(c.buffer),e=0;e<a.length;++e)d.setUint16(2*e,a.charCodeAt(e),b);return c.buffer};_.uh=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=ih(e):2===c?f=hh(e):f=_.N(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};
48
- _.vh=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.wh=function(a,b){if(String.prototype.endsWith)return a.endsWith(b);var c=a.length-b.length,d=a.lastIndexOf(b,c);return-1!==d&&d===c};_.xh=function(a){return!!(a&&0<a.length)};_.yh=function(a){return!a||0===a.length};
49
- _.zh=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.J.isNaN(b))return"";a="bps";1E3<=Math.abs(b)&&(a="Kbps",b/=1E3);1E3<=Math.abs(b)&&(a="Mbps",b/=1E3);return b.toFixed(2).replace(/[.,]00$/,"")+a}catch(c){return""}};_.Bh=function(a){a=a.replace(/<[^>]+>/gi,"");Ah.innerHTML=a;a=Ah.textContent;return a=a.replace(/<[^>]+>/gi,"")};
50
- _.Ch=function(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new _.L(_.M,4,4016,{invalidTag:b});var d=c[1],e=c[2];c=[];var f;if(e){e=new _.Zg(e);var g;(g=_.$g(e,/^([^,=]+)(?:,|$)/g))&&(f=g[1]);for(var h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.$g(e,h);)c.push(new _.Xg(g[1],g[2]||g[3]))}return new _.Vg(a,d,c,f)};_.Eh=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.kf(Dh).concat()}};
51
- Fh=function(a,b){a.timeout=b.timeout;a.baseDelay=b.baseDelay;a.backoffFactor=b.backoffFactor;a.fuzzFactor=b.fuzzFactor;a.maxAttempts=b.maxAttempts;a.fatalStatusCodes=b.fatalStatusCodes||_.kf(Dh).concat()};
52
- _.Hh=function(a,b){_.J.Y(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.Gh,uriIndex:0,method:a.method||"GET",body:a.body||null,headers:Object.assign({},a.headers),allowCrossSiteCredentials:a.allowCrossSiteCredentials||!1,onProgress:a.onProgress||null,onFragment:a.onFragment||null,maxAttempts:a.maxAttempts||1,currentAttempt:0,baseDelay:a.baseDelay||1E3,backoffFactor:a.backoffFactor||2,fuzzFactor:a.fuzzFactor||.5,timeout:a.timeout||0,requestModifiers:a.requestModifiers||
53
- [],responseModifiers:a.responseModifiers||[],startTime:a.startTime||null,endTime:a.endTime||null,contentType:a.contentType||null,licenseRequestType:a.licenseRequestType||null,sessionId:null,bytesRemaining:-1,bytesLoaded:-1,bytesTotal:-1,timescale:a.timescale||null,rateLimitBps:a.rateLimitBps||null,disableFragmentSupport:a.disableFragmentSupport||!1,disableMergedFragments:a.disableMergedFragments||!1,fatalStatusCodes:_.kf(Dh).concat()};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&Fh(c,b);return c};
54
- _.Ih=function(a,b,c,d,e,f,g){e&&(d=e);e={uri:d,data:b||new ArrayBuffer(0),headers:a,status:c,fromCache:!!a["x-shaka-from-cache"],timeMs:g,request:f};if(200<=c&&299>=c&&202!==c)return e;g=null;try{g=_.rh(b,!0)}catch(h){}_.Qf("HTTP error text:",g);throw new _.L(0<=(f.fatalStatusCodes||[]).indexOf(c)?_.M:1,1,1001,{url:d,status:c,responseText:g,headers:a,request:f,response:e});};Jh=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};
55
- Kh=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};Lh=function(a,b,c){if(0>=a)return Promise.resolve();var d=8*c/a-b/1E3;return 0<d?new Promise(function(e){setTimeout(e,1E3*d)}):Promise.resolve()};_.Mh=function(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c};_.Nh=function(a,b){this.P=a;this.w=b;this.a=!1};Oh=function(a,b){a.P.then(function(){return b(!0)},function(){return b(!1)});return a};
56
- Ph=function(a,b,c){try{var d=a(b);if(d&&d.P&&d.abort)return c.resolve(d.P),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){})["catch"](function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}};_.Qh=function(){this.a=[]};_.Rh=function(a,b){a.a.push(Oh(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};
57
- _.Yh=function(){this.f=[];this.g=[];this.m=!1;this.j=new _.Qh;this.a={};this.h=0;this.a.data=Sh;!window.fetch||!window.AbortController||_.Th(6)||_.Uh()&&68<_.Vh().browserVersion.major?(this.a.http=Wh,this.a.https=Wh):(this.a.http=Xh,this.a.https=Xh)};Zh=function(a,b){var c;return _.A(function(d){if(1==d.a)return _.y(d,a.fetch(b),2);c=d.f;return d["return"](_.oh(c.data))})};
58
- $h=function(a,b,c,d){d=void 0===d?"HEAD":d;var e,f;return _.A(function(g){switch(g.a){case 1:if(!navigator.onLine)return g["return"](!1);if(!b){g.H(2);break}e=_.Hh(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.xf(g,4);return _.y(g,a.fetch(e).P,6);case 6:_.yf(g,2);break;case 4:if(f=_.zf(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};_.ai=function(a){return Array.isArray(a)?a:[a]};
59
- ci=function(a,b,c){if(null==a&&null==b)return!0;if(null==a||null==b)return!1;a=c?a.map(c):a;b=c?b.map(c):b;return bi(a,b)&&bi(b,a)};bi=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};_.di=function(a,b){this.id=a;this.type=b;this.roles=[];this.channelsCount=this.src=this.mimeType=this.frameRate=this.label=this.language=this.kind=null;this.renditions=[];this.accessibility=[]};_.ei=function(a){return a&&a!==_.Ge?a:null};
60
- hi=function(a){if(!a)throw new _.L(_.M,3,3101,Oa+a);if(!_.J.Y(a))throw new _.L(_.M,3,3101,Oa+a+". Track type must be a string!");switch(a.toLowerCase()){case _.P:return _.P;case _.Q:return _.Q;case _.fi:return _.fi;case gi:return gi}throw new _.L(_.M,3,3101,"Unknown track type: "+a+".");};ji=function(a,b){a=hi(a);var c=_.ei(b.kind),d=b.id;d||(d=String(_.ii++));d=new _.di(d,c===_.zd?gi:a);d.kind=c;d.label=_.ei(b.label);d.language=_.ei(b.language);return d};
61
- ki=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};_.li=function(a,b){this.track=b;this.id=a;this.originalId=this.drm=this.drmInfo=this.codec=this.Pc=this.bandwidth=this.height=this.width=null};
62
- _.mi=function(a){this.scheme=null;var b=document.createElement("a"),c=a.match(/^(.*:)(\/\/(.*))$/),d=!1;if(c){if(this.scheme=c[1],b.href=c[2],":"===b.protocol||""===b.host&&""===b.pathname)b.href="//dummy.com/"+c[3],d=!0}else{b.href=a;if(":"===b.protocol||""===b.host&&""===b.pathname)b.href="//dummy.com/"+a.match(/\/?\/?(.*)/)[1],d=!0;this.scheme=b.protocol}""===this.scheme&&(this.scheme=window.location.protocol);this.f=d?"":b.hostname;this.port=b.port;this.path=b.pathname;_.vh(this.path,"/")||(this.path=
63
- "/"+this.path);this.a=b.search;this.g=b.hash};_.ni=function(a){return a.scheme+"//"+(a.f+(a.port?":"+a.port:"")+a.path+a.g+a.a)};_.oi=function(a,b,c){return a?(c||Object.keys(a).sort()).reduce(function(d,e){if(!(e in a))return d;var f=a[e],g="\x26";""===d&&(g=b?"":"?");d=d+g+encodeURIComponent(e);return d=d+"\x3d"+encodeURIComponent(void 0===f?"":f)},""):""};
64
- pi=function(a){var b={};a=a||"";a=a.substring(a.indexOf("?")+1);a=_.u(a.split("\x26"));for(var c=a.next();!c.done;c=a.next()){var d=c.value.split("\x3d");c=decodeURIComponent(d[0]);d=decodeURIComponent(d[1]||"");c&&(b[c]=d)}return b};qi=function(a,b){return a.startsWith("http:://")||a.startsWith("https:://")?a:(new URL(a,b)).toString()};ri=function(a){this.a=a};
65
- ti=function(a,b,c){var d;return _.A(function(e){switch(e.a){case 1:return _.xf(e,2),_.y(e,si(a,b,c),4);case 4:return e["return"](e.f);case 2:d=_.zf(e),_.F("clpp.native.trackParser: Failed to parse video rendition info from HLS playlist.",d);case 3:return e["return"](Promise.resolve(null))}})};
66
- si=function(a,b,c){var d,e,f,g;return _.A(function(h){if(1==h.a)return _.y(h,ui(a,b),2);d=h.f;e=d.mimeType;f=d.renditions;g=f.map(function(l,m){var n=new _.li("R"+m,c);n.bandwidth=l.bandwidth;n.Pc=l.Pc;n.codec=l.codec;n.width=l.width;n.height=l.height;return n});vi(g);return h["return"]({renditions:g,mimeType:e})})};vi=function(a){var b=new Set;a.forEach(function(c){b.add(c.width+"x"+c.height)});if(b.size<a.length)throw Error("Playlist contains multiple renditions with the same resolution.");};
67
- wi=function(a,b){var c,d;return _.A(function(e){if(1==e.a)return c=_.Hh(b),_.y(e,Zh(a.a,c),2);d=e.f;return e["return"](d)})};ui=function(a,b){var c,d,e,f,g;return _.A(function(h){if(1==h.a)return _.y(h,wi(a,b),2);if(3!=h.a)return c=h.f,d=xi(c),e=yi(c,b),f=d[0]?d[0].codec:null,_.y(h,zi(a,e,f),3);g=h.f;return h["return"]({mimeType:g,renditions:d})})};
68
- zi=function(a,b,c){var d,e;return _.A(function(f){if(1==f.a)return b&&c?_.y(f,wi(a,b),2):f["return"](null);d=f.f;e=[Ai(d,b),Bi(d,b)].filter(Boolean);return f["return"](Tg(e,c))})};
69
- xi=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.Ch(0,b);if(c.getAttribute("VIDEO"))throw Error("Playlist contains alternative video streams.");var d=_.Wg(c,_.ib);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.Wg(c,_.na);e=e?Number(e):null;var f=_.Wg(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.Wg(c,_.pa);c=_.Rg(_.Pe,c?c.split(","):[]);return{bandwidth:e,Pc:f,codec:c,width:b,height:d,mimeType:null}})};
70
- yi=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?qi(c,b):null};Ai=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?qi(c,b):null};Bi=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.Wg(_.Ch(0,c),_.vb))?qi(c,b):null:null};
71
- _.Di=function(a,b,c){for(var d=_.u(_.Ci),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.Ei=function(a){a=_.Ci.indexOf(a);0<=a&&_.Ci.splice(a,1)};_.R=function(){};_.Gi=function(a,b){a=_.Fi(a);b=_.Fi(b);return a.split("-")[0]==b.split("-")[0]};_.Fi=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Hi.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};_.Ii=function(a,b){var c=a;b&&(c+='; codecs\x3d"'+b+'"');return c};
72
- _.Ji=function(a){this.f=a;this.a=null};Ki=function(a,b,c){function d(){e&&a.f()}a.stop();var e=!0,f=null;a.a=function(){c?clearInterval(f):clearTimeout(f);e=!1};f=c?setInterval(d,1E3*b):setTimeout(d,1E3*b);return a};_.Li=function(a){this.f=a;this.a=null};Ni=function(){};_.Oi=function(){return!!navigator.userAgent.match(/Edge?\//)};_.Th=function(a){return _.Pi("Tizen"+(a?" "+String(a):""))};_.Uh=function(){return _.Pi("Web0S")};_.Ri=function(){return _.Uh()&&79===Qi().major};_.Si=function(){return _.Pi("CrKey")};
73
- _.Ti=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.Th()};_.Ui=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.Ti()&&1<navigator.maxTouchPoints};_.Vi=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};_.Pi=function(a){return(navigator.userAgent||"").includes(a)};
74
- Yi=function(){if(Wi)return Wi;Xi||(Xi=new _.Li(function(){Wi=null}));(Wi=document.querySelector(_.Pe)||document.querySelector(_.ic))||(Wi=document.createElement(_.Pe));Xi.Z(1);return Wi};$i=function(a,b){try{return parseInt(b,10)}catch(c){Zi.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
75
- aj=function(a){var b={major:-1,name:He};if(!a)return b;var c=a.replace(/_/g,".");b.name=c;c=c.split(".");1<=c.length&&(b.major=$i(a,c[0]));2<=c.length&&(b.minor=$i(a,c[1]));3<=c.length&&(b.patch=$i(a,c[2]));4<=c.length&&(b.build=$i(a,c[3]));return b};bj=function(a,b){if(!a||!b||0===b.length)return!1;for(var c=0;c<b.length;c++)if(0<=a.indexOf(b[c]))return!0;return!1};
76
- nj=function(){var a=cj();if(!a)return fj;var b=a.match(/^.+?(?=\))/);if(!b)return fj;b=b[0];if(bj(b,["iphone","ipad"]))return gj;if(bj(b,["android"]))return hj;if(bj(b,["macintosh"]))return ij;if(bj(b,["windows nt"]))return jj;if(bj(b,["tizen"]))return kj;if(bj(b,["web0s"]))return lj;if(bj(b,["linux"]))return mj;Zi.warn("Unable to identify OS from user agent: "+a);return fj};
77
- Qi=function(){var a=cj(),b="ie edge opera firefox safari chrome".split(" ");var c=nj();for(var d=oj[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return aj(c[1]);return aj("")};cj=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
78
- _.Vh=function(){var a=nj();var b=nj();var c=oj[b];if(c){c=cj().match(c.os_version)[1];c=aj(c);if(b===jj)if("5.1"===c.name)c.name="xp";else if("6.1"===c.name)c.name="7";else if("6.2"===c.name||"6.3"===c.name)c.name="8";b=c}else b=aj("");a:{c=cj();var d="ie edge opera firefox safari chrome".split(" "),e=nj();e=oj[e];for(var f=0,g=d.length;f<g;f++)if(e[d[f]]&&c.match(e[d[f]])){c=d[f];break a}c=pj}return{os:a,osVersion:b,browser:c,browserVersion:Qi()}};
79
- qj=function(){this.a=new _.H("clpp.native.TrackManager");this.l=null;this.g=new _.cg;this.h=[];this.A=0;this.m={};this.B=[];this.f=new Map;this.o=null;this.j=new Map;this.w=!0;this.I=this.Le.bind(this,_.P);this.K=this.Ne.bind(this,_.P);this.J=this.Me.bind(this,_.P);this.L=this.Le.bind(this,_.fi);this.S=this.Ne.bind(this,_.fi);this.O=this.Me.bind(this,_.fi);this.C=this.Le.bind(this,_.Q);this.G=this.Ne.bind(this,_.Q);this.D=this.Me.bind(this,_.Q)};
80
- sj=function(a,b){var c,d,e,f,g,h,l,m;return _.A(function(n){if(1==n.a){c=a.l.getConfiguration();d=_.Di(c,b.mimeType,_.Be);if(!d)return a.a.warn("Track mimetype is not supported",b),n["return"]();e=_.Hh(b.url);return _.y(n,a.l.getNetworkEngine().fetch(e).P,2)}(f=n.f)&&f.data&&(g="External_"+a.A++,a.m[g]=b,h=d.a(_.N(f.data)),l=URL.createObjectURL(new Blob([h])),m={url:l,kind:b.kind,language:b.language,label:b.label,mimeType:_.Be},rj(a,m,g));_.z(n)})};
81
- uj=function(a,b){var c=a.l.getConfiguration(),d=a.l.getLoadedSource();c=!(!c.safari||!c.safari.enableHlsVideoTrackInfo);return!(!d||d.type!==_.tj&&!d.url.endsWith(".m3u8"))&&_.Ti()&&b===_.fi&&c};vj=function(a,b){var c,d,e,f;return _.A(function(g){if(1==g.a){c=a.l.getLoadedSource();if(!c)return g["return"]();d=a.l.getNetworkEngine();e=new ri(d);return _.y(g,ti(e,c.url,b),2)}f=g.f;f.mimeType&&(b.mimeType=f.mimeType);0<f.renditions.length&&(b.renditions=f.renditions);_.z(g)})};
82
- rj=function(a,b,c){if(a.l){var d=a.l.getSurface().getMedia();if(d){var e=document.createElement("track");e.id=c;e.kind=b.kind;e.srclang=b.language;b.label&&(e.label=b.label);e.src=_.yh(b.url)?URL.createObjectURL(new Blob([])):b.url;d.appendChild(e);a.B.push(e)}}};wj=function(a,b){if(!a.l)return null;var c=a.l.getSurface();if(!c)return null;c=c.getMedia();if(!c)return null;switch(b){case _.Q:return c.audioTracks;case _.fi:return c.videoTracks;case _.P:return c.textTracks;default:return null}};
83
- xj=function(a,b){var c=wj(a,b);c&&(c=Array.from(c),b===_.P&&(c=c.filter(function(d){return d.kind!==_.zd})));return c};yj=function(a,b){return a.h.filter(function(c){return c.type===b})};zj=function(a,b){var c=a.f.get(b)||null;return c&&c.renditions[0]};Aj=function(a,b){var c=a.j.get(b);return c&&c.renditions[0]};
84
- Ej=function(a,b,c){var d=xj(a,b);if(c){if(void 0===a.h.find(function(l){return l.id===c.id}))throw Error("Unknown track with ID "+c.id+" and type "+b);if(c.type!==b)throw Error("Types mismatch for track "+c.type+" and arg "+b);a.a.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.j.set(b,c);var e=!0,f=!1;switch(b){case _.P:var g="mode";e=_.ke;f=_.Uc;break;case _.Q:g="enabled";break;case _.fi:g="selected"}if(g){d=_.u(d);for(var h=d.next();!h.done;h=d.next())h=h.value,h[g]=Bj(c,h,c.type)?e:
85
- f}}}else if(a.a.debug(_.Fa+b),a.f.get(b)&&d&&b===_.P){g=_.u(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.Uc;a.f.set(b,null)}b===_.Q?a.l.trigger(new _.I(_.Cj)):b===_.P&&a.l.trigger(new _.I(_.Dj))};Fj=function(a){return a.enabled||a.selected||a.mode===_.ke||a.mode===_.jd};
86
- Gj=function(a,b,c){c=_.ai(c).filter(function(e){return e});a.a.info("Find preferred tracks for",b,c);var d=yj(a,b);c.some(function(e){var f=_.Fi(e);return(e=d.find(function(g){g=_.Fi(g.language||"");return _.Gi(f,g)}))?(a.a.info("Will select track with id",e.id),Ej(a,b,e),!0):!1})};Hj=function(a){(a=a.l.getTextDisplayer())&&a.remove(0,Infinity)};
87
- Bj=function(a,b,c){return a.type!==c?!1:void 0!==b.id&&null!==b.id&&""!==b.id?a.id===b.id:_.J.va(a,{kind:_.ei(b.kind),language:_.ei(b.language),label:_.ei(b.label)},["kind","language","label"])};_.Ij=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.Jj=function(){this.$c=new bg(this);this.Yc=[]};Lj=function(a){return a.name===bb&&Kj.some(function(b){return a.message.startsWith(b)})};Mj=function(){};
88
- _.Pj=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.Ui()&&(a=360);var b=_.Eh();b.maxAttempts=3;a={source:"",license:Nj,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,manifest:{attemptParameters:_.Eh(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,
89
- restrictions:Oj(a)},drm:null,enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:"main",preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],volume:null,startTime:null,loop:!1,lowLatencyMode:!1,suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,streaming:{attemptParameters:b,bufferingGoal:10,rebufferingGoal:2,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,relativeTextTimestamp:!1,startAtSegmentBoundary:!1,
90
- gapDetectionThreshold:.1,smallGapLimit:.5,jumpLargeGaps:!0,durationBackoff:1,maxSegmentToMediaOffset:1,forceNativeTS:!1,preferNativeHlsOnSafari:!0,safeSeekOffset:5,stallEnabled:!0,stallThreshold:3,stallSkip:.5,bufferLimitUpdateInterval:.5,overridePasp:!1,enableLiveEdgeChasing:!1,chasingRate:1.15,startChasingAt:5,stopChasingAt:2,chaseJumpDistance:10,patchEdgeWhenMixedContent:!1,ignoreDrift:!1,disableFragmentSupport:!1,disableMergedFragments:!1},restrictions:Oj(),tizen:{sideStreamText:_.Th(2)},safari:{enableHlsVideoTrackInfo:!1}};
91
- if(_.Pi("Edge/")||_.Th())a.streaming.gapDetectionThreshold=.5;_.Uh()&&(a.streaming.stallEnabled=!1);_.Ri()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=.02);_.Th()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=0);a.vr={enable:!1,attachMouseListener:!0,fieldOfView:70};return a};
92
- _.Rj=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(!b)return _.Pj();c=[_.Pj()];var d=!1;b=_.u(b);for(var e=b.next();!e.done;e=b.next())e=e.value,null!==e&&void 0!==e&&(_.J.Y(e)&&(e={source:e}),e.lowLatencyMode&&!d&&(c.push({suggestedPresentationDelay:0,streaming:{rebufferingGoal:.1,bufferLimitUpdateInterval:.01,attemptParameters:{maxAttempts:3,baseDelay:250,backoffFactor:1}},abr:{bandwidthUpgradeTarget:.6,bandwidthDowngradeTarget:.95},manifest:{hlsLowLatency:!0}}),d=!0),
93
- c.push(e));c=_.J.Va.apply(null,c);_.J.Y(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.J.R(c.volume)&&(!_.J.pa(c.volume)||_.J.isNaN(c.volume)))throw new _.L(_.M,7,7100,"config.volume is not a number");if(!_.J.R(c.preferredTextLanguage)&&!_.J.Y(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.L(_.M,7,7100,"config.preferredTextLanguage is not a string or an array");if(!_.J.R(c.preferredAudioLanguage)&&!_.J.Y(c.preferredAudioLanguage)&&!Array.isArray(c.preferredAudioLanguage))throw new _.L(_.M,
94
- 7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.J.R(c.preferredAudioCodec)&&!_.J.Y(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.L(_.M,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.J.R(c.preferredVideoCodec)&&!_.J.Y(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.L(_.M,7,7100,"config.preferredVideoCodec is not a string or an array");if(!_.J.R(c.drm)){if(c.drm.env&&!_.J.Y(c.drm.env))throw new _.L(_.M,
95
- 7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.J.Y(c.drm.offlineId))throw new _.L(_.M,7,7100,"config.drm.offlineId is not a string");}if(d=c.streaming){d.bufferingGoal=Number(d.bufferingGoal);d.rebufferingGoal=Number(d.rebufferingGoal);d.bufferBehind=Number(d.bufferBehind);d.smallGapLimit=Number(d.smallGapLimit);d.durationBackoff=Number(d.durationBackoff);if(!_.J.pa(d.bufferingGoal)||_.J.isNaN(d.bufferingGoal))throw new _.L(_.M,7,7100,"config.streaming.bufferingGoal is not a number");
96
- if(!_.J.pa(d.rebufferingGoal)||_.J.isNaN(d.rebufferingGoal))throw new _.L(_.M,7,7100,"config.streaming.rebufferingGoal is not a number");if(d.rebufferingGoal>d.bufferingGoal)throw new _.L(_.M,7,7100,"config.streaming.rebufferingGoal must be \x3e\x3d bufferingGoal");if(!_.J.pa(d.bufferBehind)||_.J.isNaN(d.bufferBehind))throw new _.L(_.M,7,7100,"config.streaming.bufferBehind is not a number");if(!_.J.pa(d.smallGapLimit)||_.J.isNaN(d.smallGapLimit))throw new _.L(_.M,7,7100,"config.streaming.smallGapLimit is not a number");
97
- if(!_.J.pa(d.durationBackoff)||_.J.isNaN(d.durationBackoff))throw new _.L(_.M,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.J.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.k)throw new _.L(_.M,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");Qj(c.restrictions);Qj(c.abr.restrictions);c.abr.initialRestrictions&&Qj(c.abr.initialRestrictions)}return c};
98
- Oj=function(a){a=void 0===a?Infinity:a;return{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:a,minPixels:0,maxPixels:Infinity,minBandwidth:0,maxBandwidth:Infinity}};
99
- Qj=function(a){_.J.R(a.maxPixels)&&(a.maxPixels=Infinity);_.J.R(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.J.R(a.maxHeight)&&(a.maxHeight=Infinity);_.J.R(a.maxWidth)&&(a.maxWidth=Infinity);_.J.R(a.minPixels)&&(a.minPixels=0);_.J.R(a.minBandwidth)&&(a.minBandwidth=0);_.J.R(a.minHeight)&&(a.minHeight=0);_.J.R(a.minWidth)&&(a.minWidth=0);a.minWidth=Number(a.minWidth);a.maxWidth=Number(a.maxWidth);a.minHeight=Number(a.minHeight);a.maxHeight=Number(a.maxHeight);a.minBandwidth=Number(a.minBandwidth);
100
- a.maxBandwidth=Number(a.maxBandwidth);a.minPixels=Number(a.minPixels);a.maxPixels=Number(a.maxPixels);if(Number.isNaN(a.minWidth)||Number.isNaN(a.maxWidth)||Number.isNaN(a.minHeight)||Number.isNaN(a.maxHeight)||Number.isNaN(a.minBandwidth)||Number.isNaN(a.maxBandwidth)||Number.isNaN(a.minPixels)||Number.isNaN(a.maxPixels))throw new _.L(_.M,7,7100,"Restrictions contain NaN");};_.Sj=function(a){return typeof a===_.Id&&!Array.isArray(a)&&"source"in a};
101
- _.Tj=function(a){_.Jj.call(this);this.log=new _.H(a);this.configuration=this.xd=_.Pj();this.o=this.B=null;this.Jd=this.xe=!1;this.sg=new _.H("clpp.video.events");this.Qc=null;this.zd=-1;this.Oj=this.zj.bind(this);this.Tf=new _.Yh;this.K=new _.cg;this.Ra=this.Bc=this.J=null};_.Vj=function(a){return _.Uj.get(a)||null};_.Xj=function(a){_.Uj.get(a.id())?Wj.warn("Component already in use."):_.Uj.set(a.id(),a)};Yj=function(a){for(var b=_.u(_.Uj.values()),c=b.next();!c.done;c=b.next())a(c.value)};_.Zj=function(){};
102
- _.bk=function(a,b){var c=void 0==b?!0:b,d=_.ak(a).replace(/\+/g,"-").replace(/\//g,"_");return c?d:d.replace(/[=]*$/,"")};_.ck=function(a){a=window.atob(a.replace(/-/g,"+").replace(/_/g,"/"));for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b};_.dk=function(a){for(var b=new Uint8Array(a.length/2),c=0;c<a.length;c+=2)b[c/2]=window.parseInt(a.substr(c,2),16);return b};
103
- _.ek=function(a){for(var b="",c=0;c<a.length;++c){var d=a[c].toString(16);1==d.length&&(d="0"+d);b+=d}return b};_.fk=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.length!=b.length)return!1;for(var c=0;c<a.length;++c)if(a[c]!=b[c])return!1;return!0};_.gk=function(a){for(var b=0,c=0;c<arguments.length;++c)b+=arguments[c].length;b=new Uint8Array(+b);for(var d=c=0;d<arguments.length;++d)b.set(arguments[d],c),c+=arguments[d].length;return b};_.ak=function(a){a=nh(_.N(a));return btoa(a)};
104
- hk=function(){this.a=this.f=null;this.g=new _.H("clpp.drm.csl")};ik=function(a,b){3===b.type&&(a.f&&(a.g.debug("Attaching tracking token"),b.headers[ef]=a.f),a.a&&(b.headers[ff]=a.a))};
105
- jk=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[ef];a.a=b.headers[ff];var c=b.headers["x-dt-csl-renewal-info"];a.f&&a.g.debug("Loaded tracking token "+a.f);a.a&&a.g.debug("Loaded followup token "+a.a);if(c)return c=JSON.parse(_.oh(_.ck(c))),{delay:c.renewalPeriod,ek:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};kk=function(a){return _.vh(a,_.Nc)||_.vh(a,_.Oc)};_.mk=function(a){_.lk[a.J]=a};
106
- _.ok=function(a){var b={attemptParameters:_.Eh(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,Qa:{}};if(a&&(b.enforceSingleSession=!!a.enforceSingleSession,b.delayLicenseRequestUntilPlayed=!!a.delayLicenseRequestUntilPlayed,b.preferredDrmSystem=a.preferredDrmSystem,b.emeApi=a.emeApi,a.attemptParameters&&(b.attemptParameters=a.attemptParameters),a.env)){var c=_.lk[a.env]||null;if(!c)throw _.Qf(_.wa,_.gb+a.env+_.aa),new _.L(_.M,6,6015,_.ya+a.env+"' is missing.");b.Qa=_.nk(c,a.customData)||
107
- {};_.vh(a.env.toLowerCase(),ad)&&(b.enforceSingleSession=!0)}return b};qk=function(a){a=pk[a];if(!a)return null;var b=_.Vh();return b.os===hj&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.rk=function(a){this.J=a;this.g={}};sk=function(a,b){var c=_.Vh();if(c.os!==hj||"chrome"!==c.browser)return a||b};
108
- _.nk=function(a,b){var c={},d=b?b.widevineVideoRobustness:void 0,e=b?b.widevineAudioRobustness:void 0,f=b?b.serverCertificate:void 0,g=a.g[_.Pc];g&&(c[_.Pc]={licenseUrl:g.licenseUrl,videoRobustness:sk(d,g.videoRobustness),audioRobustness:sk(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:g.distinctiveIdentifierRequired,persistentStateRequired:g.persistentStateRequired,serverCertificate:void 0===f?g.serverCertificate:null===f?null:typeof f===_.te?qk(f):f});(g=a.g[_.Nc])&&(c[_.Nc]=
109
- {licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.g[_.Oc])&&(c[_.Oc]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});return c};
110
- _.tk=function(a,b){this.f=_.J.pa(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.g=!!b;this.buffer=this.f.buffer};_.vk=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.N(a.f.buffer);b=_.N(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.uk()}};_.S=function(a,b){try{a.f.setUint32(a.a,b,a.g),a.a+=4}catch(c){_.uk()}};_.uk=function(){throw new _.L(_.M,3,3E3);};_.wk=function(a,b){this.f=a;this.g=void 0===b?!0:b;this.a=0};_.xk=function(a){return a.a<a.f.byteLength};
111
- _.zk=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.yk()}};_.Ak=function(a){try{var b=a.f.getUint16(a.a,a.g);a.a+=2;return b}catch(c){_.yk()}};_.U=function(a){try{var b=a.f.getUint32(a.a,a.g);a.a+=4;return b}catch(c){_.yk()}};_.Bk=function(a){try{var b=a.f.getInt32(a.a,a.g);a.a+=4;return b}catch(c){_.yk()}};Ck=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.zk(a);return c};
112
- _.Dk=function(a){var b=0;try{if(a.g){var c=a.f.getUint32(a.a,!0);b=a.f.getUint32(a.a+4,!0)}else b=a.f.getUint32(a.a,!1),c=a.f.getUint32(a.a+4,!1)}catch(d){_.yk()}if(2097151<b)throw new _.L(_.M,3,3001);a.a+=8;return b*Math.pow(2,32)+c};_.Ek=function(a,b){a.a+b>a.f.byteLength&&_.yk();var c=a.f.buffer.slice(a.a,a.a+b);a.a+=b;return _.N(c)};_.yk=function(){throw new _.L(_.M,3,3E3);};_.Fk=function(){this.g=[];this.f=[];this.a=!1;this.h=new _.H("clpp.mp4")};
113
- _.Gk=function(a){for(;_.xk(a.F)&&!a.Wa.a;)a.Wa.Od(a.start+a.te,a.F,a.ig)};_.Hk=function(a){for(var b=_.U(a.F);0<b&&!a.Wa.a;--b)a.Wa.Od(a.start+a.te,a.F,a.ig)};_.Ik=function(a){return function(b){var c=b.F.ya()-b.F.getPosition();a(_.Ek(b.F,c))}};Jk=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.Kk=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};_.Lk=function(a){return 8+(a.ni?8:0)+(null!=a.flags?4:0)};Mk=function(){};
114
- Nk=function(a){var b="";try{b=_.rh(a)}catch(c){}return b};_.Ok=function(a){a=Nk(a);var b="";a.length&&(b=(new _.mi(a)).f);return b};Pk=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.oh(a)),d=_.ck(c.sinf[0]);(new _.Fk).M(_.le,_.Gk).M("schi",_.Gk).M("tenc",function(e){e.F.skip(6);_.zk(e.F)&&(e.F.skip(1),b=_.ek(_.Ek(e.F,16)));e.Wa.stop()}).parse(d)}catch(e){}return b};
115
- Qk=function(a,b,c){if(!c||!c.byteLength)throw new _.L(_.M,6,6102);var d;typeof b===_.te?d=_.th(b,!0):d=b;a=_.th(Nk(a),!0);b=new _.tk(12+a.byteLength+d.byteLength+c.byteLength,!0);_.S(b,a.byteLength);_.vk(b,_.N(a));_.S(b,d.byteLength);_.vk(b,_.N(d));_.S(b,c.byteLength);_.vk(b,_.N(c));return _.N(b.buffer)};_.Rk=function(a){var b=_.N(a.body);b=_.bk(b);a.headers[va]=hc;a.body=_.sh("spc\x3d"+b).buffer};
116
- _.Sk=function(a){try{var b=_.oh(a.data)}catch(d){return}b=b.trim();"\x3cckc\x3e"===b.substr(0,5)&&"\x3c/ckc\x3e"===b.substr(-6)&&(b=b.slice(5,-6));try{var c=JSON.parse(b);c.ckc&&(b=c.ckc);c.CkcMessage&&(b=c.CkcMessage);c.License&&(b=c.License)}catch(d){}a.data=mh(_.ck(b))};
117
- Xk=function(){var a=Tk;if(a===Uk)return"https://lic.drmtoday.com";if(a===Vk)return"https://lic.staging.drmtoday.com";if(a===Wk)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};al=function(a){var b=Xk();if(a==_.Pc)return b+Yk;if(a==_.Oc)return b+Zk;if(a==_.Nc)return b+$k;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
118
- bl=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
119
- _.el=function(a,b,c){b=Nk(b);c=c&&c.customData?c.customData:{};b=new _.mi(bl(b));var d=pi(b.a);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.xh(""+a)&&(d.assetId=a,dl.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.xh(""+e)&&(d.variantId=e,dl.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],dl.debug("KeyId found in FPS SKD. Removing other parameters")):
120
- a=["assetId","variantId"];b.a=_.oi(d,!1,a);b=_.ni(b);return c.fpsContentId=b};
121
- _.fl=function(a,b,c,d){d=void 0===d?!0:d;a=a.drm;a&&a.env.startsWith(Aa)?a.customData&&(c=btoa(JSON.stringify({userId:a.customData.userId,sessionId:a.customData.sessionId,merchant:a.customData.merchant})),b.headers["dt-custom-data"]=c,a.customData.authToken&&(b.headers["x-dt-auth-token"]=""+a.customData.authToken),c=b.uris[0],d&&a.customData.assetId&&(c+="?assetId\x3d"+encodeURI(""+a.customData.assetId),a.customData.variantId&&(c+="\x26variantId\x3d"+encodeURI(""+a.customData.variantId)),b.uris[0]=
122
- c)):dl.warn(Wa)};gl=function(a,b,c){_.fl(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.Eg(b.uris[0]);c.a.add(_.Td,a);b.uris[0]=c.toString()};
123
- _.hl=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.fl(a,b,c,!1);b.headers[va]=hc;c={spc:_.ak(b.body)};if((a=a.drm)&&a.env.startsWith(Ca)&&d){a={};var e=pi((new _.mi(bl(d))).a);d=e.keyId;if(e=e.assetId)dl.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(dl.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(dl.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(dl.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
124
- _.uh(_.oi(c,!0))};_.il=function(a,b){dl.debug("Clearing response data");if(200===b.status){var c=_.oh(b.data).trim();"\x3cckc\x3e"===c.substr(0,5)&&"\x3c/ckc\x3e"===c.substr(-6)&&(c=c.slice(5,-6));b.data=_.ck(c).buffer}};_.jl=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(Aa))dl.warn(Wa);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(Ca)){var d=new _.Eg(b.uris[0]),e=d.na;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.na=e;b.uris[0]=d.toString()}};
125
- _.kl=function(a,b){try{var c=_.N(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));dl.debug("Widevine License response",d);var e=atob(d.license),f=new Uint8Array(e.length);for(c=0;c<e.length;++c)f[c]=e.charCodeAt(c);b.data=f.buffer}catch(g){dl.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};ml=function(a){var b={},c=a?a[gf]:void 0;a=ll[a?a[gf]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};nl=function(){};
126
- pl=function(a,b){b=void 0===b?0:b;_.Pf("Registering EME Factory: "+a.a());for(var c={priority:b,Hb:a},d=0;d<ol.length;++d)if(ol[d].priority<b){ol.splice(d,0,c);return}ol.push(c)};
127
- ql=function(a){if(a){var b=ol.find(function(d){return d.Hb.a()===a}).Hb;if(b&&b.aa())return _.Pf(Db+b.a()),b.create();_.Pf("Cannot create selected EME manager. Choosing by priority list.")}b=_.u(ol);for(var c=b.next();!c.done;c=b.next())if(c=c.value.Hb,c.aa())return _.Pf(Db+c.a()),c.create();throw Error("Missing EME managers");};_.sl=function(a,b){var c=_.rl(a,b);return 1!=c.length?null:c[0]};
128
- _.rl=function(a,b){return Array.prototype.filter.call(a.childNodes,function(c){return c instanceof Element&&c.tagName==b})};_.tl=function(a){return Array.prototype.every.call(a.childNodes,function(b){return b.nodeType==Node.TEXT_NODE||b.nodeType==Node.CDATA_SECTION_NODE})?a.textContent.trim():null};
129
- _.ul=function(a,b){var c=new DOMParser,d=null,e=null;try{e=c.parseFromString(a,_.Ce)}catch(f){}e&&e.documentElement.tagName==b&&(d=e.documentElement);return d&&0<d.getElementsByTagName("parsererror").length?null:d};vl=function(a,b,c){this.h=new Uint8Array(a);this.a=b;this.f=c};wl=function(){vl.apply(this,arguments)};_.yl=function(a){var b=_.dk(a);b=parseInt(b.byteLength,10).toString(16);b=_.dk("12"+b+a);return new wl(xl,a,b)};
130
- _.zl=function(a){function b(r){switch(r){case 0:do if(!_.xk(d))throw Error("not enough data to skip!");while(_.zk(d)&128);break;case 1:d.skip(8);break;case 2:d.skip(c());break;case 3:for(;4!==(r=c()&7);)b(r);break;case 5:d.skip(4);break;default:throw Error("invalid wire type "+r);}}function c(){for(var r=_.zk(d),w=(r&127)>>>0,x=7;128<=r&&28>=x;)r=_.zk(d),w=(w|(r&(28>x?127:15))<<x)>>>0,x+=7;return 28<x?-1:w}var d=new _.wk(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.U(d);var e=_.U(d);e=
131
- _.Kk(e);var f=_.U(d),g=f>>>24;f&=16777215;var h=_.Ek(d,16);h=_.ek(h);for(var l=_.U(d),m=[],n=null;_.xk(d);){var p=c(),q=p&7;p>>>=3;if(2===q){q=c();if(0>q)throw Error("unable to read length of field "+p);q=Ck(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.Qf("Parsed WV PSSH Box","size",a,"name",e,"version",g,"flags",f,"size",l,"systemId",h,"contentId (base64)",n?_.ak(n):"","keyIds",m.map(function(r){return _.ek(r)}));return 0<m.length?_.yl(_.ek(m[0])):null};
132
- _.Al=function(a,b,c,d,e,f){f=void 0===f?null:f;vl.call(this,a,b,d);this.version=e;this.g=c;this.j=f};
133
- _.Fl=function(a){a:{a=new _.wk(new DataView(a.buffer),!0);_.U(a);for(_.Ak(a);_.xk(a);)if(1===_.Ak(a)){var b=_.Ak(a);a=_.Ek(a,b);break a}a=null}b=qh(a,!0);var c=_.ul(b,"WRMHEADER");b=c.getAttribute("version");var d=_.sl(c,"DATA");c=(c=_.sl(d,"LA_URL"))?_.tl(c):"";var e;if(e=_.sl(d,"KID"))if(e=_.tl(e)){var f=_.sl(d,oa);e={value:e,ge:f?f.textContent.trim():null}}else e=null;else e=null;d=e?[e]:(e=Bl(d))?[e]:(d=Cl(d))?d:null;e=d&&d[0]||{};d=e.ge;e=_.ck(void 0===e.value?"":e.value);e=_.Dl(e);e=_.ek(e);
134
- return new _.Al(_.El,e,c,a,b,d)};_.Dl=function(a){var b=[];b.push(a[3]);b.push(a[2]);b.push(a[1]);b.push(a[0]);b.push(a[5]);b.push(a[4]);b.push(a[7]);b.push(a[6]);a=_.N(a);a.set(b,0);return a};Bl=function(a){a=_.sl(a,"PROTECTINFO");if(!a)return null;var b=_.sl(a,"KID");if(!b)return null;a=b.getAttribute("VALUE");if(!a)return null;var c=b.getAttribute(oa);b=b.getAttribute("ALGID");return{value:a,ge:c,Eg:b}};
135
- Cl=function(a){a=_.sl(a,"PROTECTINFO");if(!a)return null;a=_.sl(a,"KIDS");if(!a)return null;var b=_.rl(a,"KID");if(!b.length)return null;a=[];b=_.u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;if(c=d.getAttribute("VALUE")){var e=d.getAttribute(oa);d=d.getAttribute("ALGID");a.push({value:c,ge:e,Eg:d})}}return a.length?a:null};Gl=function(a){this.f=[];this.g=[];this.a=[];8<=a.byteLength&&(new _.Fk).V("pssh",this.h.bind(this)).parse(a.buffer);0==this.a.length&&_.F("No pssh box found!")};
136
- _.Kl=function(a){var b=this;this.o=a;this.O=new Set;this.C=this.J=this.A=null;this.$=!1;this.f=null;this.K=Hl;this.B=new _.cg;this.S=new hk;this.g=new Map;this.L=[];this.I=new _.Mh;this.h=null;this.T=function(c){b.w=!0;b.D=!1;b.I.reject(c);a.onError(c)};this.m=new Map;this.ia=new Map;this.ca=new _.Li(function(){return Il(b)});this.j=!1;this.Ra=new _.Mh;this.G=!1;this.da=[];this.qb=!1;this.X=0;this.a=new _.H("clpp.drm.DrmEngine");this.ua=(new _.Li(function(){Jl(b)})).ab(1);this.I["catch"](function(){});
137
- this.w=this.D=!1;this.U=null};
138
- Ml=function(a){var b,c,d,e,f;return _.A(function(g){switch(g.a){case 1:a.B.release();a.B=null;a.S.release();a.S=null;a.w=!1;a.D=!1;a.I.reject();a.ua.stop();a.ua=null;a.ca.stop();a.ca=null;b=Array.from(a.g.keys());c=_.u(a.g.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.Ac&&e.Ac.stop();a.g.clear();return _.y(g,Promise.all(b.map(function(h){return Promise.resolve().then(function(){var l;return _.A(function(m){if(1==m.a)return a.a.debug("Closing session",h.sessionId),_.xf(m,2),_.y(m,Ll(h),4);
139
- if(2!=m.a)return _.yf(m,0);l=_.zf(m);a.a.warn("Error while closing session",l);_.z(m)})})})),2);case 2:if(!a.C){g.H(3);break}_.xf(g,4);return _.y(g,a.A.Uc(null),6);case 6:_.yf(g,5);break;case 4:f=_.zf(g),a.a.warn("Error while resetting media keys",f);case 5:a.C=null;case 3:a.A=null,a.f=null,a.O.clear(),a.J=null,a.L=[],a.h=null,a.T=null,a.o=null,a.X=0,a.U=null,_.z(g)}})};_.Pl=function(a,b,c){a.K=Nl;a.L=c;a.G=0<c.length;a.a.debug("Using Persisted Licenses: "+a.G);return _.Ol(a,b)};
140
- _.Ol=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.J.gf(a.h.Qa);Ql(b,d)}var e=Rl(a);if(e){var f=_.u(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos=[e]}e=_.u(b);for(d=e.next();!d.done;d=e.next())for(d=_.u(d.value.drmInfos),f=d.next();!f.done;f=d.next())Sl(f.value,a.h.Qa);d=Tl(a,b);if(!d.size)return a.$=!0,Promise.resolve();a.A=ql(a.h.emeApi);d=_.Ul(a,d);return c?d:d["catch"](function(){})};
141
- Vl=function(a){var b;return _.A(function(c){switch(c.a){case 1:if(a.A.Dd())return c["return"]();if(!a.U){c.H(2);break}return _.y(c,a.U,3);case 3:return c["return"]();case 2:return _.xf(c,4),a.U=a.A.Uc(a.J),_.y(c,a.U,6);case 6:_.yf(c,0);break;case 4:b=_.zf(c);if(a.j)return c["return"]();a.T(new _.L(_.M,6,6003,b.message,b));_.z(c)}})};
142
- Xl=function(a,b){return _.A(function(c){if(1==c.a)return a.a.info("Handle encrypted event for type "+b.initDataType),_.y(c,Vl(a),2);if(!b.initData)return c["return"]();_.Wl(a,b.initDataType,_.N(b.initData));_.z(c)})};
143
- _.bm=function(a,b){if(!a.J)return _.dg(a.B,b,[cd,"msneedkey",cf,"needkey"],function(){a.T(new _.L(_.M,6,6010))}),Promise.resolve();a.C=b;a.A.ud(b);a.B.one(a.C,_.Wd,function(){return Yl(a)});a.B.on(a.C,_.Ye,function(e){var f=a.D;a.D=!a.w;!f&&a.D&&(a.a.info("Waiting for DRM license key delivery"),a.o.onEvent(e))});var c=a.f.initData.find(function(e){return 0<e.initData.length}),d=Promise.resolve();if(c||a.A.Tc()!==lb||a.L.length)d=Vl(a);c=Promise.resolve();_.Uh()&&38===Qi().major||(a.f&&a.f.keySystem!==
144
- _.Qd&&!a.f.serverCertificate&&(c=Zl(a)),c=c.then(function(){return _.$l(a)}));return Promise.all([d,c]).then(function(){a.j||(_.am(a),a.B.on(a.C,cd,function(e){return Xl(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.f&&a.f.keySystem===_.Pc&&1>a.X&&a.f.serverCertificate&&a.f.serverCertificate.length)return a.a.warn("Detected invalid widevine server certificate!. Retrying"),a.T(new _.L(1,6,6004)),a.f.serverCertificate=null,a.X++,_.bm(a,b);1<=a.X&&a.a.info("Could not get valid widevine server certificate. Giving up");
145
- throw e;}})};_.$l=function(a){var b,c;return _.A(function(d){if(1==d.a){if(!(a.J&&a.f&&a.f.serverCertificate&&a.f.serverCertificate.length))return d.H(0);_.xf(d,3);return _.y(d,a.J.setServerCertificate(a.f.serverCertificate),5)}if(3!=d.a)return b=d.f,void 0===b||b||a.a.debug("Server certificates are not supported by the key system. The server certificate has been ignored."),_.yf(d,0);c=_.zf(d);throw new _.L(_.M,6,6004,{browserError:c.message});})};
146
- Zl=function(a){var b=a.keySystem(),c=a.h.Qa[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.o.getConfiguration();return cm(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.Hh([d],a.h.attemptParameters);f.type=3;f.licenseRequestType=Bc;g&&f.requestModifiers.push(function(l){return g(e,l)});h&&f.responseModifiers.push(function(l){return h(e,l)});a.a.debug("Fetching certificate");return a.o.Ab.fetch(f).P}).then(function(f){a.f.serverCertificate=
147
- _.N(f.data)})["catch"](function(f){var g=f.data.headers;g=Object.assign({message:"Error while fetching certificate!",url:f.data.url,status:f.data.status,response:f.data.response},g?{headers:g}:{},ml(g));throw new _.L(_.M,6,6100,g,f);})};cm=function(a,b){var c,d;return _.A(function(e){c=a.o.Ec();return c?(d=b&&b.drm&&b.drm.customData)?_.y(e,c(d),0):e["return"]():e["return"]()})};dm=function(a,b){if(!a)return!1;for(var c=0;c<b.yd.length;c++)if(_.fk(a,b.yd[c]))return!0;return!1};
148
- _.am=function(a){for(var b=a.f?a.f.initData||[]:[],c=_.u(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.Th(2);if(a.h.enforceSingleSession&&!a.keySystem().startsWith(_.Nc)){var f=a.g.values();f=_.u(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.fk(d.initData,g.initData)?(a.a.info("Skipping Session creation. Existing init data in single session mode!"),e=!1):g.periodId===d.periodId&&(a.a.info("Skipping Session creation. Merging init data for period in single session mode for Key ID "+(d.keyId+
149
- ".")),dm(d.initData,g)||(g.yd.push(d.initData),d.keyId&&!g.bb.includes(d.keyId)&&g.bb.push(d.keyId),a.m.get(d.keyId)||a.m.set(d.keyId,re)),e=!1)}!e||a.G&&a.K===Nl||(_.em(a,d.keyId,d.initData)&&(e=!1),e&&(a.a.info("Request new media key session on create"),fm(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.u(a.L);for(d=c.next();!d.done;d=c.next())_.gm(a,d.value);b.length||a.L.length||(a.w||a.a.info(za),a.w=!0,a.D=!1,a.I.resolve());return a.I};
150
- _.Wl=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.G||a.K!==Nl)){var e=a.keySystem();if(!e.startsWith(_.Nc)){var f=new Gl(c);if(1<f.a.length&&(e={"org.w3.clearkey":"1077efecc0b24d02ace33c1e52e2fb4b","com.widevine.alpha":"edef8ba979d64acea3c827dcd51d21ed","com.microsoft.playready":"9a04f07998404286ab92e65be0885f95","com.adobe.primetime":"f239e769efa348509c16a903c6932efb"}[e]))for(var g=0;g<f.f.length;g++)if(e===f.f[g]){c=c.subarray(f.a[g].start,f.a[g].end+1);break}}(a.C.webkitCurrentPlaybackTargetIsWireless||
151
- _.Th(2)||a.keySystem().startsWith(_.Nc)||!_.em(a,d,c,!0))&&fm(a,d,null,b,c)}};
152
- _.em=function(a,b,c,d){d=void 0===d?!1:d;for(var e=_.u(a.g.keys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.g.get(f);if(_.fk(c,g.initData))return b?g.bb.includes(b)?d&&a.a.info("Skipping Session creation. License for init data with Key ID "+(b+" was already requested in Session: '")+(f.sessionId+"'. ")):(g.bb.push(b),a.m.get(b)||a.m.set(b,re),d&&a.a.info(sb+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.a.info(sb+(f.sessionId+"'")),!0;if(dm(c,g))return d&&a.a.info("Skipping Session creation. License for init data was already requested [extra]"),
153
- !0}return!1};hm=function(a){var b=Infinity;a=a.g.keys();a=_.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,isNaN(c.expiration)||(b=Math.min(b,c.expiration));return b};
154
- Tl=function(a,b){for(var c=new Set,d=_.u(b),e=d.next();!e.done;e=d.next()){var f=_.u(e.value.drmInfos);for(e=f.next();!e.done;e=f.next())c.add(e.value)}d=_.u(c);for(e=d.next();!e.done;e=d.next())Sl(e.value,a.h.Qa);f=a.G?_.fe:_.Pd;var g=a.G?[_.Ud]:[ze];d=new Map;c=_.u(c);for(e=c.next();!e.done;e=c.next())e=e.value,d.set(e.keySystem,{initDataTypes:[_.zc],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.Pd,persistentState:f,sessionTypes:g,label:e.keySystem,drmInfos:[]});c={};f=_.u(b);
155
- for(e=f.next();!e.done;c={Ud:c.Ud,ae:c.ae},e=f.next()){e=e.value;g=e.audio;var h=e.video;c.Ud=g?_.Ii(g.mimeType,g.codecs):"";c.ae=h?_.Ii(h.mimeType,h.codecs):"";var l={},m=_.u(e.drmInfos);for(e=m.next();!e.done;l={Eb:l.Eb},e=m.next())e=e.value,l.Eb=d.get(e.keySystem),l.Eb.drmInfos.push(e),e.initData&&e.initData.length&&(l.Eb.initDataTypes=_.kf(new Set(e.initData.map(function(n){return n.initDataType}))).concat()),e.distinctiveIdentifierRequired&&(l.Eb.distinctiveIdentifier=_.fe),e.persistentStateRequired&&
156
- (l.Eb.persistentState=_.fe),g&&_.ai(e.audioRobustness).forEach(function(n,p){return function(q){p.Eb.audioCapabilities.push({robustness:q||"",contentType:n.Ud})}}(c,l)),h&&_.ai(e.videoRobustness).forEach(function(n,p){return function(q){p.Eb.videoCapabilities.push({robustness:q||"",contentType:n.ae})}}(c,l))}return d};
157
- _.Ul=function(a,b){function c(n,p,q){p.drmInfos.some(function(r){return!!r.licenseServerUri})==n&&(g=g["catch"](function(){if(a.j)return null;if(q===_.Oc){var r=a.o.getConfiguration();if(!_.Oi()||r.streaming.patchEdgeWhenMixedContent||a.h.Qa[q].useLegacySystem)d(p);else return a.A.yc("com.microsoft.playready.recommendation",[p])["catch"](function(){d(p);return a.A.yc(q,[p])})}return a.A.yc(q,[p])}))}function d(n){for(var p=_.u(n.audioCapabilities),q=p.next();!q.done;q=p.next())delete q.value.robustness;
158
- n=_.u(n.videoCapabilities);for(p=n.next();!p.done;p=n.next())delete p.value.robustness}if(1==b.size&&b.has(""))return Promise.reject(new _.L(_.M,6,6E3));for(var e=_.u(b.values()),f=e.next();!f.done;f=e.next())f=f.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;var g=e=new _.Mh,h=a.h.preferredDrmSystem;h||(f=_.Vh(),f.os===jj&&10<=f.osVersion.major&&"edge"===f.browser&&(h=_.Oc));h&&(f=b.get(h))&&(c(!0,f,h),c(!1,f,h));f={};for(var l=
159
- _.u([!0,!1]),m=l.next();!m.done;f={Zd:f.Zd},m=l.next())f.Zd=m.value,b.forEach(function(n){return function(p,q){q!==h&&c(n.Zd,p,q)}}(f));g=g["catch"](function(n){throw new _.L(_.M,6,6001,null,n);});g=g.then(function(n){if(a.j)return null;a.O.clear();var p=n.getConfiguration();a.a.debug("Got MediaKeySystemAccess with configuration",p);var q=p.videoCapabilities||[],r=_.u(p.audioCapabilities||[]);for(p=r.next();!p.done;p=r.next())a.O.add(p.value.contentType);q=_.u(q);for(p=q.next();!p.done;p=q.next())a.O.add(p.value.contentType);
160
- q=n.keySystem;p=b.get(_.im(n.keySystem));r=[];var w=[],x=[],C=[];jm(p.drmInfos,r,w,x,C);1<w.length&&_.F("Multiple unique server certificates found! Only the first will be used.");1<r.length&&_.F("Multiple unique license server URIs found! Only the first will be used.");a.f={keySystem:q,licenseServerUri:r[0],distinctiveIdentifierRequired:p.distinctiveIdentifier==_.fe,persistentStateRequired:p.persistentState==_.fe,audioRobustness:p.audioCapabilities?p.audioCapabilities[0].robustness:"",videoRobustness:p.videoCapabilities?
161
- p.videoCapabilities[0].robustness:"",serverCertificate:w[0],initData:x,keyIds:C,periodId:null};if(!a.f.licenseServerUri)throw new _.L(_.M,6,6012,a.f.keySystem);return n.createMediaKeys()}).then(function(n){a.j||(a.a.info("Created MediaKeys for key system",a.f.keySystem),a.J=n,a.$=!0)})["catch"](function(n){if(!a.j){a.f=null;a.O.clear();if(n instanceof _.L)throw n;throw new _.L(_.M,6,6002,{browserError:n.message});}});e.reject();return g};
162
- Rl=function(a){a=_.J.gf(a.h.Qa[_.Qd]||{});if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.dk(f),h=_.dk(e);g={kty:"oct",kid:_.bk(g,!1),k:_.bk(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.sh(d),initDataType:"keyids"}];return{keySystem:_.Qd,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
10
+ _.lc="audio/eac3";_.nc="audio/mp4";_.oc="audiobufferchanged";_.pc="autoplaynotallowed";_.qc="bitratechanged";_.rc="boolean";_.sc="bufferingended";_.tc="bufferingstarted";uc="canplay";vc="canplaythrough";_.wc="castingstarted";_.xc="caststatuschanged";_.yc="cdn-switch-success";_.zc="cenc";_.Ac="center";Bc="certificate-request";Cc="change";Dc="chrome";_.Ec="clpp-fill";Fc="clpp-hidden";_.Gc="clpp.cast.CastSender";Hc="clpp.drm.HeaderDrm";Ic="clpp.drm.eme.AppleEmeManager";Jc="clpp.native.Player";Kc="clpp.utils.Platform";
11
+ _.Lc="codecs";_.Mc="column-reverse";_.Nc="com.adobe.primetime";_.Oc="com.apple.fps";_.Pc="com.microsoft.playready";_.Qc="com.widevine.alpha";_.Rc="config.drm.customData is not defined";Sc="controls";_.Tc="cuechange";_.Uc="destroy()";_.Vc="disabled";_.Wc="div";_.Xc="drmexpirationupdate";Yc="drmrenewalstarted";_.Zc="drmsessionpersisted";_.ad="drmsessionupdate";bd="drmtoday";cd="durationchange";dd="encrypted";_.ed="end";_.fd="ended";_.gd="error";hd="fullscreenElement";_.id="function";_.jd="height";
12
+ _.kd="hidden";_.ld="image";_.md="image/jpeg";_.nd="internal-error";od="keystatuseschange";_.pd="left";qd="license-renewal";rd="license-request";_.sd="line-left";_.td="line-right";_.ud="loadeddata";_.vd="loadedmetadata";wd="loadstart";_.xd="mdat";_.yd="mdia";zd="message";_.Ad="metadata";_.Bd="mimeType";_.Cd="minf";_.Dd="moov";_.Ed="mp4";_.Fd="mpd-type-changed";_.Hd="mpeg-dash-callback-event";_.Id="none";_.k="number";_.Jd="object";_.Kd="onBitrateChanged()";_.Ld="onPlayerError()";_.Md="onPlayerWillDestroy";
13
+ _.Nd="onPlayerWillRelease";_.Od="onStateChanged()";Pd="online-status-changed";_.Qd="optional";_.Rd="org.w3.clearkey";_.Sd="output-restricted";_.Td="pause";_.Ud="persistent";_.Vd="persistent-license";Wd="picture-in-picture";_.Xd="play";_.Yd="playing";_.Zd="playlist-item-changed";_.$d="playlist-modified";_.ae="progress";_.be="px";_.ce="ratechange";de="released";_.ee="releasing";fe="removetrack";_.ge="required";_.he="resize";_.ie="right";_.je="seeked";_.ke="seeking";_.le="showing";_.ne="sinf";oe="stalled";
14
+ _.pe="start";_.re="statechanged";se="status-pending";_.te="stbl";_.ue="string";_.ve="stsd";_.we="style";_.xe="subtitle";_.ye="subtitles-htmlcue";_.ze="subtitles-ttml";Ae="temporary";_.Be="text";_.Ce="text/vtt";_.De="text/xml";_.Ee="timeupdate";_.Fe="trak";_.Ge="ttml-xml";_.He="und";Ie="unknown";_.Je="urn:scte:scte35";_.Ke="urn:scte:scte35:2014";_.Le="user-seeked";_.Me="user-seeking";_.Ne="value";_.Oe="vertical-lr";_.Pe="vertical-rl";_.Qe="video";_.Re="video/mp2t";_.Se="video/mp4";_.Te="videobufferchanged";
15
+ _.Ue="videotrackchanged";_.Ve="vimond-response";We="visibilitychange";_.Xe="vtt-xml";_.Ye="waiting";_.Ze="waitingforkey";$e="webkit-org.w3.clearkey";af="webkitkeyadded";bf="webkitkeyerror";cf="webkitkeymessage";df="webkitneedkey";_.ef="width";ff="x-dt-csl-tracking-token";gf="x-dt-follow-up-token";hf="x-dt-resp-code";kf=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
16
+ _.u=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:kf(a)}};_.lf=function(a){if(!(a instanceof Array)){a=_.u(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};_.v=function(a,b){a.prototype=mf(b.prototype);a.prototype.constructor=a;if(nf)nf(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]};
17
+ of=function(){of=function(){};pf.Symbol||(pf.Symbol=qf)};sf=function(a,b){this.a=a;rf(this,"description",{configurable:!0,writable:!0,value:b})};uf=function(){of();var a=pf.Symbol.iterator;a||(a=pf.Symbol.iterator=pf.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.id&&rf(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return tf(kf(this))}});uf=function(){}};tf=function(a){uf();a={next:a};a[pf.Symbol.iterator]=function(){return this};return a};
18
+ vf=function(){this.o=!1;this.h=null;this.f=void 0;this.a=1;this.j=this.m=0;this.A=this.g=null};wf=function(a){if(a.o)throw new TypeError("Generator is already running");a.o=!0};xf=function(a,b){a.g={Ef:b,Pf:!0};a.a=a.m||a.j};_.x=function(a,b,c){a.a=c;return{value:b}};_.z=function(a){a.a=0};_.yf=function(a,b,c){a.m=b;void 0!=c&&(a.j=c)};_.zf=function(a,b,c){a.a=b;a.m=c||0};_.Af=function(a,b){a.m=b||0;var c=a.g.Ef;a.g=null;return c};Bf=function(a){this.a=new vf;this.f=a};
19
+ Ef=function(a,b){wf(a.a);var c=a.a.h;if(c)return Cf(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return Df(a)};Cf=function(a,b,c,d){try{var e=b.call(a.a.h,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.a.o=!1,e;var f=e.value}catch(g){return a.a.h=null,xf(a.a,g),Df(a)}a.a.h=null;d.call(a.a,f);return Df(a)};
20
+ Df=function(a){for(;a.a.a;)try{var b=a.f(a.a);if(b)return a.a.o=!1,{value:b.value,done:!1}}catch(c){a.a.f=void 0,xf(a.a,c)}a.a.o=!1;if(a.a.g){b=a.a.g;a.a.g=null;if(b.Pf)throw b.Ef;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
21
+ Ff=function(a){this.next=function(b){wf(a.a);a.a.h?b=Cf(a,a.a.h.next,b,a.a.w):(a.a.w(b),b=Df(a));return b};this["throw"]=function(b){wf(a.a);a.a.h?b=Cf(a,a.a.h["throw"],b,a.a.w):(xf(a.a,b),b=Df(a));return b};this["return"]=function(b){return Ef(a,b)};uf();this[Symbol.iterator]=function(){return this}};_.Gf=function(a,b){var c=new Ff(new Bf(b));nf&&nf(c,a.prototype);return c};
22
+ Hf=function(a,b){if(b){for(var c=pf,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];f in c||(c[f]={});c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&rf(c,d,{configurable:!0,writable:!0,value:f})}};If=function(a){function b(d){return a.next(d)}function c(d){return a["throw"](d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})};_.B=function(a){return If(new Ff(new Bf(a)))};
23
+ _.C=function(a,b){var c=a.split("."),d=Jf;c[0]in d||"undefined"==typeof d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}:d[e]=b};Mf=function(a){return a&&0<=Kf[a]?Kf[a]:Lf};Of=function(a){if(!a)return _.G("clpp.log",wb+a+ca),-1;var b=Nf[a.toUpperCase()];return void 0===b?(_.G("clpp.log",wb+a+ca),-1):b};_.H=function(a){(this.a=a)&&void 0===Kf[a]&&(Kf[a]=-1)};_.Qf=function(a){Pf.info.apply(Pf,arguments)};
24
+ _.Rf=function(a){Pf.debug.apply(Pf,arguments)};_.G=function(a){Pf.warn.apply(Pf,arguments)};_.Sf=function(a){Pf.error.apply(Pf,arguments)};Tf=function(a,b){this.Jb=a;this.a=b};Uf=function(a,b){this.a=a;this.f=b};_.$f=function(a){if(a){var b=a.a();b in _.Wf?_.Xf.warn("Player-Factory '"+b+"' already registered"):(_.Wf[b]=a,_.Xf.info("Registered Player-Factory: '"+b+"'"))}};_.ag=function(){this.a={}};bg=function(a,b,c,d){this.f=a;this.zc=b;this.a=c;this.Cj=!!d};
25
+ _.J=function(a,b){if(b)for(var c in b)this[c]=b[c];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.f=this.a=!1};cg=function(a){this.a=new _.ag;this.f=a};_.dg=function(){this.a=new _.ag};
26
+ _.eg=function(a,b,c,d){function e(h){for(var l=_.u(c),m=l.next();!m.done;m=l.next())a.off(b,m.value,e);d(h)}for(var f=_.u(c),g=f.next();!g.done;g=f.next())a.on(b,g.value,e)};_.gg=function(a){var b=a.a,c=[],d;for(d in b.a)c.push.apply(c,b.a[d]);for(b=0;b<c.length;++b)fg(c[b]);a.a.clear()};hg=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};fg=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
27
+ ig=function(a){this.l=a;this.m=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.h=null;this.f=new _.dg;this.a=this.j=null;this.g=[];this.o=new _.H("clpp.native.Metadata")};kg=function(a,b){a.h=b;a.j=a.h.textTracks;a.f.on(a.j,_.Vb,function(c){c=c.track;c.kind===_.Ad&&jg(a,c)})};
28
+ jg=function(a,b){function c(l){for(var m=_.u(d),n=m.next();!n.done;n=m.next())if(n=n.value,l.startTime===n.startTime&&l.endTime===n.endTime)return n;m={schemeIdUri:"",value:"",startTime:0,endTime:0,id:"",type:_.lg,eventElement:null};a.m&&e&&"SCTE35-IN"===l.value.key&&0<l.startTime?(m.startTime=0,m.endTime=l.startTime):(m.startTime=l.startTime,m.endTime=l.endTime);e=!1;d.push(m);return d[d.length-1]}a.o.debug("onMetadata_()");b.mode=_.kd;var d=[],e=!0;if(b.cues){for(var f=_.u(b.cues),g=f.next();!g.done;g=
29
+ f.next())if(g=g.value,!mg(a,g)){var h=c(g);switch(g.value.key){case "SCTE35-IN":case "SCTE35-OUT":h.schemeIdUri=_.Ke;h.type=_.ng;break;case "X-CUSTOM-ID":h.id=g.value.data}}f=_.u(d);for(g=f.next();!g.done;g=f.next())a.l.trigger(new _.J(_.og,{detail:g.value}));Array.prototype.push.apply(a.g,d);pg(a,d,b);a.f.off(b,_.Tc);a.f.on(b,_.Tc,function(l){l=l.target.activeCues;l=l.length?mg(a,l[0]):a.a;var m;if(m=l)m=a.l.getPosition(),m=l.startTime<=m&&m<l.endTime;if(m)a.a=l,a.l.trigger(new _.J(_.qg,{detail:l}));
30
+ else{if(l=a.a)l=a.a,m=a.l.getPosition(),l=l.endTime<=m;l&&(l=a.a,a.a=null,a.l.trigger(new _.J(_.rg,{detail:l})))}})}};mg=function(a,b){for(var c=_.u(a.g),d=c.next();!d.done;d=c.next())if(d=d.value,b.startTime===d.startTime&&b.endTime===d.endTime)return d;return null};pg=function(a,b,c){if(a.m){for(;0<c.cues.length;)c.removeCue(c.cues[0]);b.forEach(function(d){c.addCue(new DataCue(d.startTime,d.endTime,{key:"SCTE35-OUT",data:null}))})}};
31
+ _.yg=function(a,b,c,d){d=void 0===d?_.sg:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.tg;this.writingMode=_.ug;this.lineInterpretation=_.vg;this.line=null;this.lineAlign=_.wg;this.direction=xg;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
32
+ _.Bg=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.zg;this.scroll=Ag;this.cssClassList=[];this.writingMode=this.displayAlign=null};Cg=function(a){this.l=a;this.j=a.getTextDisplayer();this.f=this.g=null;this.a=new _.dg;this.h=!1;this.m=new _.H("clpp.native.CueHandler")};
33
+ Dg=function(a,b){var c=b.track;c.kind!==_.Ad&&(c.mode===_.le&&(c.mode=_.kd),a.a.on(c,_.Tc,function(d){d=d.target||d.srcElement;d.mode=_.kd;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.j.append(d,[]))}))};_.Eg=function(a){return null!=a};
34
+ _.Fg=function(a){var b;a instanceof _.Fg?(Gg(this,a.Za),this.mc=a.mc,this.Oa=a.Oa,Hg(this,a.Lc),this.pa=a.pa,_.Ig(this,Jg(a.a)),this.ac=a.ac):a&&(b=String(a).match(Kg))?(Gg(this,b[1]||"",!0),this.mc=Lg(b[2]||""),this.Oa=Lg(b[3]||"",!0),Hg(this,b[4]),this.pa=Lg(b[5]||"",!0),_.Ig(this,b[6]||"",!0),this.ac=Lg(b[7]||"")):this.a=new Mg(null)};Gg=function(a,b,c){a.Za=c?Lg(b,!0):b;a.Za&&(a.Za=a.Za.replace(/:$/,""))};
35
+ Hg=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Lc=b}else a.Lc=null};_.Ig=function(a,b,c){b instanceof Mg?a.a=b:(c||(b=Ng(b,Og)),a.a=new Mg(b))};Lg=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""};Ng=function(a,b,c){return typeof a===_.ue?(a=encodeURI(a).replace(b,Pg),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};Pg=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};Mg=function(a){this.f=a||null};
36
+ _.Qg=function(a){if(!a.a&&(a.a={},a.g=0,a.f))for(var b=a.f.split("\x26"),c=0;c<b.length;c++){var d=b[c].indexOf("\x3d"),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}};Jg=function(a){var b=new Mg;b.f=a.f;if(a.a){var c={},d;for(d in a.a)c[d]=a.a[d].concat();b.a=c;b.g=a.g}return b};
37
+ _.Sg=function(a,b){for(var c=Rg[a],d=0;d<c.length;d++)for(var e=0;e<b.length;e++)if(c[d].test(b[e].trim()))return b[e].trim();return a===_.Be?"":null};Ug=function(a){return a.map(function(b){b=(new _.Fg(b)).pa.split(".");b=1>=b.length?null:b.pop();return(b=Tg.video[b||""])?b:null}).filter(Boolean)[0]||null};
38
+ _.L=function(a,b,c,d,e){var f=Error.call(this,Vg(a,b,c,d));this.message=f.message;"stack"in f&&(this.stack=f.stack);this.severity=a;this.category=b;this.code=c;this.data=!d||_.K.Y(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.L)};
39
+ Vg=function(a,b,c,d){a=(a===_.M?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.K.Y(d))a+=": "+d;else if(null!=d&&void 0!=d)if(null!=d.message&&void 0!=d.message)a+=": "+d.message,delete d.message;else try{a+=": "+JSON.stringify(d)}catch(e){}return a};_.Wg=function(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d};_.Xg=function(a,b,c){return(a=a.getAttribute(b))?a.value:c||null};_.Yg=function(a,b){this.name=a;this.value=b};
40
+ _.Zg=function(a,b){for(var c=_.u(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};_.$g=function(a){this.f=a;this.a=0};_.ah=function(a,b){b.lastIndex=a.a;var c=b.exec(a.f);c=null==c?null:{position:c.index,length:c[0].length,results:c};if(a.a==a.f.length||null==c||c.position!=a.a)return null;a.a+=c.length;return c.results};bh=function(){};
41
+ gh=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(ch(a)==ch(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;for(var c=_.N(a),d=_.N(b),e=_.u(dh(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!=d[f])return!1;return!0};_.N=function(a,b,c){c=void 0===c?Infinity:c;return hh(a,void 0===b?0:b,c,Uint8Array)};jh=function(a,b,c){c=void 0===c?Infinity:c;return hh(a,void 0===b?0:b,c,Uint16Array)};
42
+ kh=function(a,b,c){c=void 0===c?Infinity:c;return hh(a,void 0===b?0:b,c,Uint32Array)};_.lh=function(a,b,c){c=void 0===c?Infinity:c;return hh(a,void 0===b?0:b,c,Int32Array)};_.mh=function(a,b,c){c=void 0===c?Infinity:c;return hh(a,void 0===b?0:b,c,DataView)};nh=function(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
43
+ hh=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=ch(a),g=(a.byteOffset||0)+a.byteLength;a=Math.max(0,Math.min((a.byteOffset||0)+b*e,g));c=Math.min(a+Math.max(c*e,0),g);a/=e;return new d(f,a,c/e-a)};ch=function(a){return a instanceof ArrayBuffer?a:a.buffer};oh=function(a){for(var b="",c=0;c<a.length;c+=16E3)b+=String.fromCharCode.apply(null,a.subarray(c,c+16E3));return b};
44
+ _.ph=function(a){if(!a)return"";a=_.N(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if("TextDecoder"in window){a=(new TextDecoder).decode(a);if(a.includes("\ufffd"))throw Error(Ha);return a}a=escape(oh(a));try{return decodeURIComponent(a)}catch(b){throw Error(Ha);}};
45
+ rh=function(a,b,c){if(!a)return"";if(!c&&0!==a.byteLength%2)throw qh.error("Data has an incorrect length, must be even."),Error("Data does not seem to be UTF-16 encoded!");c=_.N(a);if(b&&255===c[0]&&254===c[1]||254===c[0]&&255===c[1])a=c.subarray(2);if(a instanceof ArrayBuffer)var d=a;else c=new Uint8Array(a.byteLength),c.set(_.N(a)),d=c.buffer;a=Math.floor(a.byteLength/2);c=new Uint16Array(a);d=new DataView(d);for(var e=0;e<a;e++)c[e]=d.getUint16(2*e,b);return oh(c)};
46
+ _.sh=function(a,b){if(_.K.Y(a))return a;var c="",d=!!b,e=_.N(a);239==e[0]&&187==e[1]&&191==e[2]?c=_.ph(e):254==e[0]&&255==e[1]?c=rh(e.subarray(2),!1):255==e[0]&&254==e[1]&&(c=rh(e.subarray(2),!0));var f=function(g,h){return g.byteLength<=h||32<=g[h]&&126>=g[h]}.bind(null,e);qh.debug("Unable to find byte-order-mark, making an educated guess.");0==e[0]&&0==e[2]?c=rh(a,!1):0==e[1]&&0==e[3]?c=rh(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.ph(a));if(c)return d&&(c=escape(c)),c;throw Error("Unable to detect text encoding");
47
+ };_.th=function(a){if("TextEncoder"in window)return(new TextEncoder).encode(a);a=encodeURIComponent(a);a=unescape(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b};_.uh=function(a,b){for(var c=new Uint8Array(2*a.length),d=new DataView(c.buffer),e=0;e<a.length;++e)d.setUint16(2*e,a.charCodeAt(e),b);return c.buffer};_.vh=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=kh(e):2===c?f=jh(e):f=_.N(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};
48
+ _.wh=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.xh=function(a,b){if(String.prototype.endsWith)return a.endsWith(b);var c=a.length-b.length,d=a.lastIndexOf(b,c);return-1!==d&&d===c};_.yh=function(a){return!!(a&&0<a.length)};_.zh=function(a){return!a||0===a.length};
49
+ _.Ah=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.K.isNaN(b))return"";a="bps";1E3<=Math.abs(b)&&(a="Kbps",b/=1E3);1E3<=Math.abs(b)&&(a="Mbps",b/=1E3);return b.toFixed(2).replace(/[.,]00$/,"")+a}catch(c){return""}};_.Ch=function(a){a=a.replace(/<[^>]+>/gi,"");Bh.innerHTML=a;a=Bh.textContent;return a=a.replace(/<[^>]+>/gi,"")};
50
+ _.Dh=function(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new _.L(_.M,4,4016,{invalidTag:b});var d=c[1],e=c[2];c=[];var f;if(e){e=new _.$g(e);var g;(g=_.ah(e,/^([^,=]+)(?:,|$)/g))&&(f=g[1]);for(var h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.ah(e,h);)c.push(new _.Yg(g[1],g[2]||g[3]))}return new _.Wg(a,d,c,f)};_.Fh=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.lf(Eh).concat()}};
51
+ Gh=function(a,b){a.timeout=b.timeout;a.baseDelay=b.baseDelay;a.backoffFactor=b.backoffFactor;a.fuzzFactor=b.fuzzFactor;a.maxAttempts=b.maxAttempts;a.fatalStatusCodes=b.fatalStatusCodes||_.lf(Eh).concat()};
52
+ _.Ih=function(a,b){_.K.Y(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.Hh,uriIndex:0,method:a.method||"GET",body:a.body||null,headers:Object.assign({},a.headers),allowCrossSiteCredentials:a.allowCrossSiteCredentials||!1,onProgress:a.onProgress||null,onFragment:a.onFragment||null,maxAttempts:a.maxAttempts||1,currentAttempt:0,baseDelay:a.baseDelay||1E3,backoffFactor:a.backoffFactor||2,fuzzFactor:a.fuzzFactor||.5,timeout:a.timeout||0,requestModifiers:a.requestModifiers||
53
+ [],responseModifiers:a.responseModifiers||[],startTime:a.startTime||null,endTime:a.endTime||null,contentType:a.contentType||null,licenseRequestType:a.licenseRequestType||null,sessionId:null,bytesRemaining:-1,bytesLoaded:-1,bytesTotal:-1,timescale:a.timescale||null,rateLimitBps:a.rateLimitBps||null,disableFragmentSupport:a.disableFragmentSupport||!1,disableMergedFragments:a.disableMergedFragments||!1,fatalStatusCodes:_.lf(Eh).concat()};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&Gh(c,b);return c};
54
+ _.Jh=function(a,b,c,d,e,f,g){e&&(d=e);e={uri:d,data:b||new ArrayBuffer(0),headers:a,status:c,fromCache:!!a["x-shaka-from-cache"],timeMs:g,request:f};if(200<=c&&299>=c&&202!==c)return e;g=null;try{g=_.sh(b,!0)}catch(h){}_.Rf("HTTP error text:",g);throw new _.L(0<=(f.fatalStatusCodes||[]).indexOf(c)?_.M:1,1,1001,{url:d,status:c,responseText:g,headers:a,request:f,response:e});};Kh=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};
55
+ Lh=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};Mh=function(a,b,c){if(0>=a)return Promise.resolve();var d=8*c/a-b/1E3;return 0<d?new Promise(function(e){setTimeout(e,1E3*d)}):Promise.resolve()};_.Nh=function(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c};_.Oh=function(a,b){this.P=a;this.w=b;this.a=!1};Ph=function(a,b){a.P.then(function(){return b(!0)},function(){return b(!1)});return a};
56
+ Qh=function(a,b,c){try{var d=a(b);if(d&&d.P&&d.abort)return c.resolve(d.P),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){})["catch"](function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}};_.Rh=function(){this.a=[]};_.Sh=function(a,b){a.a.push(Ph(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};
57
+ _.Zh=function(){this.f=[];this.g=[];this.m=!1;this.j=new _.Rh;this.a={};this.h=0;this.a.data=Th;!window.fetch||!window.AbortController||_.Uh(6)||_.Vh()&&68<_.Wh().browserVersion.major?(this.a.http=Xh,this.a.https=Xh):(this.a.http=Yh,this.a.https=Yh)};$h=function(a,b){var c;return _.B(function(d){if(1==d.a)return _.x(d,a.fetch(b),2);c=d.f;return d["return"](_.ph(c.data))})};
58
+ ai=function(a,b,c,d){d=void 0===d?"HEAD":d;var e,f;return _.B(function(g){switch(g.a){case 1:if(!navigator.onLine)return g["return"](!1);if(!b){g.H(2);break}e=_.Ih(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.yf(g,4);return _.x(g,a.fetch(e).P,6);case 6:_.zf(g,2);break;case 4:if(f=_.Af(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};_.bi=function(a){return Array.isArray(a)?a:[a]};
59
+ di=function(a,b,c){if(null==a&&null==b)return!0;if(null==a||null==b)return!1;a=c?a.map(c):a;b=c?b.map(c):b;return ci(a,b)&&ci(b,a)};ci=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};_.ei=function(a,b){this.id=a;this.type=b;this.roles=[];this.channelsCount=this.src=this.mimeType=this.frameRate=this.label=this.language=this.kind=null;this.renditions=[];this.accessibility=[]};_.fi=function(a){return a&&a!==_.He?a:null};
60
+ ii=function(a){if(!a)throw new _.L(_.M,3,3101,Pa+a);if(!_.K.Y(a))throw new _.L(_.M,3,3101,Pa+a+". Track type must be a string!");switch(a.toLowerCase()){case _.P:return _.P;case _.Q:return _.Q;case _.gi:return _.gi;case hi:return hi}throw new _.L(_.M,3,3101,"Unknown track type: "+a+".");};ki=function(a,b){a=ii(a);var c=_.fi(b.kind),d=b.id;d||(d=String(_.ji++));d=new _.ei(d,c===_.Ad?hi:a);d.kind=c;d.label=_.fi(b.label);d.language=_.fi(b.language);return d};
61
+ li=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};_.mi=function(a,b){this.track=b;this.id=a;this.originalId=this.drm=this.drmInfo=this.codec=this.Rc=this.bandwidth=this.height=this.width=null};
62
+ _.ni=function(a){this.h=a;this.scheme=null;var b=document.createElement("a"),c=a.match(/^(.*:)(\/\/(.*))$/),d=!1;if(c){if(this.scheme=c[1],b.href=c[2],":"===b.protocol||""===b.host&&""===b.pathname)b.href="//dummy.com/"+c[3],d=!0}else{b.href=a;if(":"===b.protocol||""===b.host&&""===b.pathname)b.href="//dummy.com/"+a.match(/\/?\/?(.*)/)[1],d=!0;this.scheme=b.protocol}""===this.scheme&&(this.scheme=window.location.protocol);this.a=d?"":b.hostname;this.port=b.port;this.path=b.pathname;_.wh(this.path,
63
+ "/")||(this.path="/"+this.path);this.f=b.search;this.g=b.hash};_.oi=function(a){return a.scheme+"//"+(a.a+(a.port?":"+a.port:"")+a.path+a.g+a.f)};_.pi=function(a,b,c){return a?(c||Object.keys(a).sort()).reduce(function(d,e){if(!(e in a))return d;var f=a[e],g="\x26";""===d&&(g=b?"":"?");d=d+g+encodeURIComponent(e);return d=d+"\x3d"+encodeURIComponent(void 0===f?"":f)},""):""};
64
+ qi=function(a){var b={};a=a||"";a=a.substring(a.indexOf("?")+1);a=_.u(a.split("\x26"));for(var c=a.next();!c.done;c=a.next()){var d=c.value.split("\x3d");c=decodeURIComponent(d[0]);d=decodeURIComponent(d[1]||"");c&&(b[c]=d)}return b};ri=function(a,b){return a.startsWith("http:://")||a.startsWith("https:://")?a:(new URL(a,b)).toString()};si=function(a){this.a=a};
65
+ ui=function(a,b,c){var d;return _.B(function(e){switch(e.a){case 1:return _.yf(e,2),_.x(e,ti(a,b,c),4);case 4:return e["return"](e.f);case 2:d=_.Af(e),_.G("clpp.native.trackParser: Failed to parse video rendition info from HLS playlist.",d);case 3:return e["return"](Promise.resolve(null))}})};
66
+ ti=function(a,b,c){var d,e,f,g;return _.B(function(h){if(1==h.a)return _.x(h,vi(a,b),2);d=h.f;e=d.mimeType;f=d.renditions;g=f.map(function(l,m){var n=new _.mi("R"+m,c);n.bandwidth=l.bandwidth;n.Rc=l.Rc;n.codec=l.codec;n.width=l.width;n.height=l.height;return n});wi(g);return h["return"]({renditions:g,mimeType:e})})};wi=function(a){var b=new Set;a.forEach(function(c){b.add(c.width+"x"+c.height)});if(b.size<a.length)throw Error("Playlist contains multiple renditions with the same resolution.");};
67
+ xi=function(a,b){var c,d;return _.B(function(e){if(1==e.a)return c=_.Ih(b),_.x(e,$h(a.a,c),2);d=e.f;return e["return"](d)})};vi=function(a,b){var c,d,e,f,g;return _.B(function(h){if(1==h.a)return _.x(h,xi(a,b),2);if(3!=h.a)return c=h.f,d=yi(c),e=zi(c,b),f=d[0]?d[0].codec:null,_.x(h,Ai(a,e,f),3);g=h.f;return h["return"]({mimeType:g,renditions:d})})};
68
+ Ai=function(a,b,c){var d,e;return _.B(function(f){if(1==f.a)return b&&c?_.x(f,xi(a,b),2):f["return"](null);d=f.f;e=[Bi(d,b),Ci(d,b)].filter(Boolean);return f["return"](Ug(e,c))})};
69
+ yi=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.Dh(0,b);if(c.getAttribute("VIDEO"))throw Error("Playlist contains alternative video streams.");var d=_.Xg(c,_.ib);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.Xg(c,_.na);e=e?Number(e):null;var f=_.Xg(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.Xg(c,_.pa);c=_.Sg(_.Qe,c?c.split(","):[]);return{bandwidth:e,Rc:f,codec:c,width:b,height:d,mimeType:null}})};
70
+ zi=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?ri(c,b):null};Bi=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?ri(c,b):null};Ci=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.Xg(_.Dh(0,c),_.vb))?ri(c,b):null:null};
71
+ _.Ei=function(a,b,c){for(var d=_.u(_.Di),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.Fi=function(a){a=_.Di.indexOf(a);0<=a&&_.Di.splice(a,1)};_.R=function(){};_.Hi=function(a,b){a=_.Gi(a);b=_.Gi(b);return a.split("-")[0]==b.split("-")[0]};_.Gi=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Ii.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};_.Ji=function(a,b){var c=a;b&&(c+='; codecs\x3d"'+b+'"');return c};
72
+ _.Ki=function(a){this.f=a;this.a=null};Mi=function(a,b,c){function d(){e&&a.f()}a.stop();var e=!0,f=null;a.a=function(){c?clearInterval(f):clearTimeout(f);e=!1};f=c?setInterval(d,1E3*b):setTimeout(d,1E3*b);return a};_.Ni=function(a){this.f=a;this.a=null};Oi=function(){};_.Pi=function(){return!!navigator.userAgent.match(/Edge?\//)};_.Uh=function(a){return _.Qi("Tizen"+(a?" "+String(a):""))};_.Vh=function(){return _.Qi("Web0S")};_.Si=function(){return _.Vh()&&79===Ri().major};_.Ti=function(){return _.Qi("CrKey")};
73
+ _.Ui=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.Uh()};_.Vi=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.Ui()&&1<navigator.maxTouchPoints};_.Wi=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};_.Qi=function(a){return(navigator.userAgent||"").includes(a)};
74
+ Zi=function(){if(Xi)return Xi;Yi||(Yi=new _.Ni(function(){Xi=null}));(Xi=document.querySelector(_.Qe)||document.querySelector(_.ic))||(Xi=document.createElement(_.Qe));Yi.Z(1);return Xi};aj=function(a,b){try{return parseInt(b,10)}catch(c){$i.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
75
+ bj=function(a){var b={major:-1,name:Ie};if(!a)return b;var c=a.replace(/_/g,".");b.name=c;c=c.split(".");1<=c.length&&(b.major=aj(a,c[0]));2<=c.length&&(b.minor=aj(a,c[1]));3<=c.length&&(b.patch=aj(a,c[2]));4<=c.length&&(b.build=aj(a,c[3]));return b};ej=function(a,b){if(!a||!b||0===b.length)return!1;for(var c=0;c<b.length;c++)if(0<=a.indexOf(b[c]))return!0;return!1};
76
+ oj=function(){var a=fj();if(!a)return gj;var b=a.match(/^.+?(?=\))/);if(!b)return gj;b=b[0];if(ej(b,["iphone","ipad"]))return hj;if(ej(b,["android"]))return ij;if(ej(b,["macintosh"]))return jj;if(ej(b,["windows nt"]))return kj;if(ej(b,["tizen"]))return lj;if(ej(b,["web0s"]))return mj;if(ej(b,["linux"]))return nj;$i.warn("Unable to identify OS from user agent: "+a);return gj};
77
+ Ri=function(){var a=fj(),b=["ie","edge","opera","firefox","safari",Dc];var c=oj();for(var d=pj[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return bj(c[1]);return bj("")};fj=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
78
+ _.Wh=function(){var a=oj();var b=oj();var c=pj[b];if(c){c=fj().match(c.os_version)[1];c=bj(c);if(b===kj)if("5.1"===c.name)c.name="xp";else if("6.1"===c.name)c.name="7";else if("6.2"===c.name||"6.3"===c.name)c.name="8";b=c}else b=bj("");a:{c=fj();var d=["ie","edge","opera","firefox","safari",Dc],e=oj();e=pj[e];for(var f=0,g=d.length;f<g;f++)if(e[d[f]]&&c.match(e[d[f]])){c=d[f];break a}c=qj}return{os:a,osVersion:b,browser:c,browserVersion:Ri()}};
79
+ rj=function(){this.a=new _.H("clpp.native.TrackManager");this.l=null;this.g=new _.dg;this.h=[];this.A=0;this.m={};this.B=[];this.f=new Map;this.o=null;this.j=new Map;this.w=!0;this.J=this.Ne.bind(this,_.P);this.L=this.Pe.bind(this,_.P);this.K=this.Oe.bind(this,_.P);this.N=this.Ne.bind(this,_.gi);this.T=this.Pe.bind(this,_.gi);this.R=this.Oe.bind(this,_.gi);this.D=this.Ne.bind(this,_.Q);this.I=this.Pe.bind(this,_.Q);this.F=this.Oe.bind(this,_.Q)};
80
+ tj=function(a,b){var c,d,e,f,g,h,l,m;return _.B(function(n){if(1==n.a){c=a.l.getConfiguration();d=_.Ei(c,b.mimeType,_.Ce);if(!d)return a.a.warn("Track mimetype is not supported",b),n["return"]();e=_.Ih(b.url);return _.x(n,a.l.getNetworkEngine().fetch(e).P,2)}(f=n.f)&&f.data&&(g="External_"+a.A++,a.m[g]=b,h=d.a(_.N(f.data)),l=URL.createObjectURL(new Blob([h])),m={url:l,kind:b.kind,language:b.language,label:b.label,mimeType:_.Ce},sj(a,m,g));_.z(n)})};
81
+ vj=function(a,b){var c=a.l.getConfiguration(),d=a.l.getLoadedSource();c=!(!c.safari||!c.safari.enableHlsVideoTrackInfo);return!(!d||d.type!==_.uj&&!d.url.endsWith(".m3u8"))&&_.Ui()&&b===_.gi&&c};wj=function(a,b){var c,d,e,f;return _.B(function(g){if(1==g.a){c=a.l.getLoadedSource();if(!c)return g["return"]();d=a.l.getNetworkEngine();e=new si(d);return _.x(g,ui(e,c.url,b),2)}f=g.f;f.mimeType&&(b.mimeType=f.mimeType);0<f.renditions.length&&(b.renditions=f.renditions);_.z(g)})};
82
+ sj=function(a,b,c){if(a.l){var d=a.l.getSurface().getMedia();if(d){var e=document.createElement("track");e.id=c;e.kind=b.kind;e.srclang=b.language;b.label&&(e.label=b.label);e.src=_.zh(b.url)?URL.createObjectURL(new Blob([])):b.url;d.appendChild(e);a.B.push(e)}}};xj=function(a,b){if(!a.l)return null;var c=a.l.getSurface();if(!c)return null;c=c.getMedia();if(!c)return null;switch(b){case _.Q:return c.audioTracks;case _.gi:return c.videoTracks;case _.P:return c.textTracks;default:return null}};
83
+ yj=function(a,b){var c=xj(a,b);c&&(c=Array.from(c),b===_.P&&(c=c.filter(function(d){return d.kind!==_.Ad})));return c};zj=function(a,b){return a.h.filter(function(c){return c.type===b})};Aj=function(a,b){var c=a.f.get(b)||null;return c&&c.renditions[0]};Bj=function(a,b){var c=a.j.get(b);return c&&c.renditions[0]};
84
+ Fj=function(a,b,c){var d=yj(a,b);if(c){if(void 0===a.h.find(function(l){return l.id===c.id}))throw Error("Unknown track with ID "+c.id+" and type "+b);if(c.type!==b)throw Error("Types mismatch for track "+c.type+" and arg "+b);a.a.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.j.set(b,c);var e=!0,f=!1;switch(b){case _.P:var g="mode";e=_.le;f=_.Vc;break;case _.Q:g="enabled";break;case _.gi:g="selected"}if(g){d=_.u(d);for(var h=d.next();!h.done;h=d.next())h=h.value,h[g]=Cj(c,h,c.type)?e:
85
+ f}}}else if(a.a.debug(_.Ea+b),a.f.get(b)&&d&&b===_.P){g=_.u(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.Vc;a.f.set(b,null)}b===_.Q?a.l.trigger(new _.J(_.Dj)):b===_.P&&a.l.trigger(new _.J(_.Ej))};Gj=function(a){return a.enabled||a.selected||a.mode===_.le||a.mode===_.kd};
86
+ Hj=function(a,b,c){c=_.bi(c).filter(function(e){return e});a.a.info("Find preferred tracks for",b,c);var d=zj(a,b);c.some(function(e){var f=_.Gi(e);return(e=d.find(function(g){g=_.Gi(g.language||"");return _.Hi(f,g)}))?(a.a.info("Will select track with id",e.id),Fj(a,b,e),!0):!1})};Ij=function(a){(a=a.l.getTextDisplayer())&&a.remove(0,Infinity)};
87
+ Cj=function(a,b,c){return a.type!==c?!1:void 0!==b.id&&null!==b.id&&""!==b.id?a.id===b.id:_.K.va(a,{kind:_.fi(b.kind),language:_.fi(b.language),label:_.fi(b.label)},["kind","language","label"])};_.Jj=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.Kj=function(){this.cd=new cg(this);this.$c=[]};Mj=function(a){return a.name===bb&&Lj.some(function(b){return a.message.startsWith(b)})};Nj=function(){};
88
+ _.Qj=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.Vi()&&(a=360);var b=_.Fh();b.maxAttempts=3;a={source:"",license:Oj,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,manifest:{attemptParameters:_.Fh(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,
89
+ restrictions:Pj(a)},drm:null,enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:"main",preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],volume:null,startTime:null,loop:!1,lowLatencyMode:!1,suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,streaming:{attemptParameters:b,bufferingGoal:10,rebufferingGoal:2,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,relativeTextTimestamp:!1,startAtSegmentBoundary:!1,
90
+ gapDetectionThreshold:.1,smallGapLimit:.5,jumpLargeGaps:!0,durationBackoff:1,maxSegmentToMediaOffset:1,forceNativeTS:!1,preferNativeHlsOnSafari:!0,safeSeekOffset:5,stallEnabled:!0,stallThreshold:3,stallSkip:.5,bufferLimitUpdateInterval:.5,overridePasp:!1,enableLiveEdgeChasing:!1,chasingRate:1.15,startChasingAt:5,stopChasingAt:2,chaseJumpDistance:10,patchEdgeWhenMixedContent:!1,ignoreDrift:!1,disableFragmentSupport:!1,disableMergedFragments:!1},restrictions:Pj(),tizen:{sideStreamText:_.Uh(2)},safari:{enableHlsVideoTrackInfo:!1}};
91
+ if(_.Qi("Edge/")||_.Uh())a.streaming.gapDetectionThreshold=.5;_.Vh()&&(a.streaming.stallEnabled=!1);_.Si()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=.02);_.Uh()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=0);a.vr={enable:!1,attachMouseListener:!0,fieldOfView:70,sensitivity:1,invertHorizontalControl:!1,invertVerticalControl:!1};return a};
92
+ _.Sj=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(!b)return _.Qj();c=[_.Qj()];var d=!1;b=_.u(b);for(var e=b.next();!e.done;e=b.next())e=e.value,null!==e&&void 0!==e&&(_.K.Y(e)&&(e={source:e}),e.lowLatencyMode&&!d&&(c.push({suggestedPresentationDelay:0,streaming:{rebufferingGoal:.1,bufferLimitUpdateInterval:.01,attemptParameters:{maxAttempts:3,baseDelay:250,backoffFactor:1}},abr:{bandwidthUpgradeTarget:.6,bandwidthDowngradeTarget:.95},manifest:{hlsLowLatency:!0}}),d=!0),
93
+ c.push(e));c=_.K.Wa.apply(null,c);_.K.Y(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.K.S(c.volume)&&(!_.K.ka(c.volume)||_.K.isNaN(c.volume)))throw new _.L(_.M,7,7100,"config.volume is not a number");if(!_.K.S(c.preferredTextLanguage)&&!_.K.Y(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.L(_.M,7,7100,"config.preferredTextLanguage is not a string or an array");if(!_.K.S(c.preferredAudioLanguage)&&!_.K.Y(c.preferredAudioLanguage)&&!Array.isArray(c.preferredAudioLanguage))throw new _.L(_.M,
94
+ 7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.K.S(c.preferredAudioCodec)&&!_.K.Y(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.L(_.M,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.K.S(c.preferredVideoCodec)&&!_.K.Y(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.L(_.M,7,7100,"config.preferredVideoCodec is not a string or an array");if(!_.K.S(c.drm)){if(c.drm.env&&!_.K.Y(c.drm.env))throw new _.L(_.M,
95
+ 7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.K.Y(c.drm.offlineId))throw new _.L(_.M,7,7100,"config.drm.offlineId is not a string");}if(d=c.streaming){d.bufferingGoal=Number(d.bufferingGoal);d.rebufferingGoal=Number(d.rebufferingGoal);d.bufferBehind=Number(d.bufferBehind);d.smallGapLimit=Number(d.smallGapLimit);d.durationBackoff=Number(d.durationBackoff);if(!_.K.ka(d.bufferingGoal)||_.K.isNaN(d.bufferingGoal))throw new _.L(_.M,7,7100,"config.streaming.bufferingGoal is not a number");
96
+ if(!_.K.ka(d.rebufferingGoal)||_.K.isNaN(d.rebufferingGoal))throw new _.L(_.M,7,7100,"config.streaming.rebufferingGoal is not a number");if(d.rebufferingGoal>d.bufferingGoal)throw new _.L(_.M,7,7100,"config.streaming.rebufferingGoal must be \x3e\x3d bufferingGoal");if(!_.K.ka(d.bufferBehind)||_.K.isNaN(d.bufferBehind))throw new _.L(_.M,7,7100,"config.streaming.bufferBehind is not a number");if(!_.K.ka(d.smallGapLimit)||_.K.isNaN(d.smallGapLimit))throw new _.L(_.M,7,7100,"config.streaming.smallGapLimit is not a number");
97
+ if(!_.K.ka(d.durationBackoff)||_.K.isNaN(d.durationBackoff))throw new _.L(_.M,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.K.S(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.k)throw new _.L(_.M,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");Rj(c.restrictions);Rj(c.abr.restrictions);c.abr.initialRestrictions&&Rj(c.abr.initialRestrictions)}return c};
98
+ Pj=function(a){a=void 0===a?Infinity:a;return{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:a,minPixels:0,maxPixels:Infinity,minBandwidth:0,maxBandwidth:Infinity}};
99
+ Rj=function(a){_.K.S(a.maxPixels)&&(a.maxPixels=Infinity);_.K.S(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.K.S(a.maxHeight)&&(a.maxHeight=Infinity);_.K.S(a.maxWidth)&&(a.maxWidth=Infinity);_.K.S(a.minPixels)&&(a.minPixels=0);_.K.S(a.minBandwidth)&&(a.minBandwidth=0);_.K.S(a.minHeight)&&(a.minHeight=0);_.K.S(a.minWidth)&&(a.minWidth=0);a.minWidth=Number(a.minWidth);a.maxWidth=Number(a.maxWidth);a.minHeight=Number(a.minHeight);a.maxHeight=Number(a.maxHeight);a.minBandwidth=Number(a.minBandwidth);
100
+ a.maxBandwidth=Number(a.maxBandwidth);a.minPixels=Number(a.minPixels);a.maxPixels=Number(a.maxPixels);if(Number.isNaN(a.minWidth)||Number.isNaN(a.maxWidth)||Number.isNaN(a.minHeight)||Number.isNaN(a.maxHeight)||Number.isNaN(a.minBandwidth)||Number.isNaN(a.maxBandwidth)||Number.isNaN(a.minPixels)||Number.isNaN(a.maxPixels))throw new _.L(_.M,7,7100,"Restrictions contain NaN");};_.Tj=function(a){return typeof a===_.Jd&&!Array.isArray(a)&&"source"in a};
101
+ _.Uj=function(a){_.Kj.call(this);this.log=new _.H(a);this.configuration=this.zd=_.Qj();this.o=this.B=null;this.Ld=this.ze=!1;this.vg=new _.H("clpp.video.events");this.Sc=null;this.Cd=-1;this.Qj=this.Bj.bind(this);this.Wf=new _.Zh;this.L=new _.dg;this.Sa=this.Dc=this.K=null};_.Wj=function(a){return _.Vj.get(a)||null};_.Yj=function(a){_.Vj.get(a.id())?Xj.warn("Component already in use."):_.Vj.set(a.id(),a)};Zj=function(a){for(var b=_.u(_.Vj.values()),c=b.next();!c.done;c=b.next())a(c.value)};_.ak=function(){};
102
+ _.ck=function(a,b){var c=void 0==b?!0:b,d=_.bk(a).replace(/\+/g,"-").replace(/\//g,"_");return c?d:d.replace(/[=]*$/,"")};_.dk=function(a){a=window.atob(a.replace(/-/g,"+").replace(/_/g,"/"));for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b};_.ek=function(a){for(var b=new Uint8Array(a.length/2),c=0;c<a.length;c+=2)b[c/2]=window.parseInt(a.substr(c,2),16);return b};
103
+ _.fk=function(a){for(var b="",c=0;c<a.length;++c){var d=a[c].toString(16);1==d.length&&(d="0"+d);b+=d}return b};_.gk=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.length!=b.length)return!1;for(var c=0;c<a.length;++c)if(a[c]!=b[c])return!1;return!0};_.hk=function(a){for(var b=0,c=0;c<arguments.length;++c)b+=arguments[c].length;b=new Uint8Array(+b);for(var d=c=0;d<arguments.length;++d)b.set(arguments[d],c),c+=arguments[d].length;return b};_.bk=function(a){a=oh(_.N(a));return btoa(a)};
104
+ ik=function(){this.a=this.f=null;this.g=new _.H("clpp.drm.csl")};jk=function(a,b){3===b.type&&(a.f&&(a.g.debug("Attaching tracking token"),b.headers[ff]=a.f),a.a&&(b.headers[gf]=a.a))};
105
+ kk=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[ff];a.a=b.headers[gf];var c=b.headers["x-dt-csl-renewal-info"];a.f&&a.g.debug("Loaded tracking token "+a.f);a.a&&a.g.debug("Loaded followup token "+a.a);if(c)return c=JSON.parse(_.ph(_.dk(c))),{delay:c.renewalPeriod,hk:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};lk=function(a){return _.wh(a,_.Oc)||_.wh(a,_.Pc)};_.nk=function(a){_.mk[a.K]=a};
106
+ _.pk=function(a){var b={attemptParameters:_.Fh(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,Ra:{}};if(a&&(b.enforceSingleSession=!!a.enforceSingleSession,b.delayLicenseRequestUntilPlayed=!!a.delayLicenseRequestUntilPlayed,b.preferredDrmSystem=a.preferredDrmSystem,b.emeApi=a.emeApi,a.attemptParameters&&(b.attemptParameters=a.attemptParameters),b.enableSessionCacheForSkd=!!a.enableSessionCacheForSkd,a.env)){var c=_.mk[a.env]||null;if(!c)throw _.Rf(_.xa,_.gb+
107
+ a.env+_.aa),new _.L(_.M,6,6015,_.ya+a.env+"' is missing.");b.Ra=_.ok(c,a.customData)||{};_.wh(a.env.toLowerCase(),bd)&&(b.enforceSingleSession=!0)}return b};rk=function(a){a=qk[a];if(!a)return null;var b=_.Wh();return b.os===ij&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.sk=function(a){this.K=a;this.g={}};tk=function(a,b){var c=_.Wh();if(c.os!==ij||c.browser!==Dc)return a||b};
108
+ _.ok=function(a,b){var c={},d=b?b.widevineVideoRobustness:void 0,e=b?b.widevineAudioRobustness:void 0,f=b?b.serverCertificate:void 0,g=a.g[_.Qc];g&&(c[_.Qc]={licenseUrl:g.licenseUrl,videoRobustness:tk(d,g.videoRobustness),audioRobustness:tk(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:g.distinctiveIdentifierRequired,persistentStateRequired:g.persistentStateRequired,serverCertificate:void 0===f?g.serverCertificate:null===f?null:typeof f===_.ue?rk(f):f});(g=a.g[_.Oc])&&(c[_.Oc]=
109
+ {licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.g[_.Pc])&&(c[_.Pc]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});return c};
110
+ _.uk=function(a,b){this.f=_.K.ka(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.g=!!b;this.buffer=this.f.buffer};_.wk=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.N(a.f.buffer);b=_.N(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.vk()}};_.S=function(a,b){try{a.f.setUint32(a.a,b,a.g),a.a+=4}catch(c){_.vk()}};_.vk=function(){throw new _.L(_.M,3,3E3);};_.xk=function(a,b){this.f=a;this.g=void 0===b?!0:b;this.a=0};_.yk=function(a){return a.a<a.f.byteLength};
111
+ _.Ak=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.zk()}};_.Bk=function(a){try{var b=a.f.getUint16(a.a,a.g);a.a+=2;return b}catch(c){_.zk()}};_.U=function(a){try{var b=a.f.getUint32(a.a,a.g);a.a+=4;return b}catch(c){_.zk()}};_.Ck=function(a){try{var b=a.f.getInt32(a.a,a.g);a.a+=4;return b}catch(c){_.zk()}};Dk=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.Ak(a);return c};
112
+ _.Ek=function(a){var b=0;try{if(a.g){var c=a.f.getUint32(a.a,!0);b=a.f.getUint32(a.a+4,!0)}else b=a.f.getUint32(a.a,!1),c=a.f.getUint32(a.a+4,!1)}catch(d){_.zk()}if(2097151<b)throw new _.L(_.M,3,3001);a.a+=8;return b*Math.pow(2,32)+c};_.Fk=function(a,b){a.a+b>a.f.byteLength&&_.zk();var c=a.f.buffer.slice(a.a,a.a+b);a.a+=b;return _.N(c)};_.zk=function(){throw new _.L(_.M,3,3E3);};_.Gk=function(){this.g=[];this.f=[];this.a=!1;this.h=new _.H("clpp.mp4")};
113
+ _.Hk=function(a){for(;_.yk(a.G)&&!a.Xa.a;)a.Xa.Qd(a.start+a.ve,a.G,a.lg)};_.Ik=function(a){for(var b=_.U(a.G);0<b&&!a.Xa.a;--b)a.Xa.Qd(a.start+a.ve,a.G,a.lg)};_.Jk=function(a){return function(b){var c=b.G.ya()-b.G.getPosition();a(_.Fk(b.G,c))}};Kk=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.Lk=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};_.Mk=function(a){return 8+(a.pi?8:0)+(null!=a.flags?4:0)};Nk=function(){};
114
+ Ok=function(a){var b="";try{b=_.sh(a)}catch(c){}return b};_.Pk=function(a){a=Ok(a);var b="";a.length&&(b=(new _.ni(a)).a);return b};Qk=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.ph(a)),d=_.dk(c.sinf[0]);(new _.Gk).M(_.ne,_.Hk).M("schi",_.Hk).M("tenc",function(e){e.G.skip(6);_.Ak(e.G)&&(e.G.skip(1),b=_.fk(_.Fk(e.G,16)));e.Xa.stop()}).parse(d)}catch(e){}return b};
115
+ Rk=function(a,b,c){if(!c||!c.byteLength)throw new _.L(_.M,6,6102);var d;typeof b===_.ue?d=_.uh(b,!0):d=b;a=_.uh(Ok(a),!0);b=new _.uk(12+a.byteLength+d.byteLength+c.byteLength,!0);_.S(b,a.byteLength);_.wk(b,_.N(a));_.S(b,d.byteLength);_.wk(b,_.N(d));_.S(b,c.byteLength);_.wk(b,_.N(c));return _.N(b.buffer)};_.Sk=function(a){var b=_.N(a.body);b=_.ck(b);a.headers[va]=hc;a.body=_.th("spc\x3d"+b).buffer};
116
+ _.Tk=function(a){try{var b=_.ph(a.data)}catch(d){return}b=b.trim();"\x3cckc\x3e"===b.substr(0,5)&&"\x3c/ckc\x3e"===b.substr(-6)&&(b=b.slice(5,-6));try{var c=JSON.parse(b);c.ckc&&(b=c.ckc);c.CkcMessage&&(b=c.CkcMessage);c.License&&(b=c.License)}catch(d){}a.data=nh(_.dk(b))};
117
+ Yk=function(){var a=Uk;if(a===Vk)return"https://lic.drmtoday.com";if(a===Wk)return"https://lic.staging.drmtoday.com";if(a===Xk)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};bl=function(a){var b=Yk();if(a==_.Qc)return b+Zk;if(a==_.Pc)return b+$k;if(a==_.Oc)return b+al;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
118
+ dl=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
119
+ _.fl=function(a,b,c){b=Ok(b);c=c&&c.customData?c.customData:{};b=new _.ni(dl(b));var d=qi(b.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.yh(""+a)&&(d.assetId=a,el.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.yh(""+e)&&(d.variantId=e,el.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],el.debug("KeyId found in FPS SKD. Removing other parameters")):
120
+ a=["assetId","variantId"];b.f=_.pi(d,!1,a);"/"!==b.path||b.h.includes(b.a+"/")||(b.path="");b=_.oi(b);return c.fpsContentId=b};
121
+ _.gl=function(a,b,c,d){d=void 0===d?!0:d;a=a.drm;a&&a.env.startsWith(Ba)?a.customData&&(c=btoa(JSON.stringify({userId:a.customData.userId,sessionId:a.customData.sessionId,merchant:a.customData.merchant})),b.headers["dt-custom-data"]=c,a.customData.authToken&&(b.headers["x-dt-auth-token"]=""+a.customData.authToken),c=b.uris[0],d&&a.customData.assetId&&(c+="?assetId\x3d"+encodeURI(""+a.customData.assetId),a.customData.variantId&&(c+="\x26variantId\x3d"+encodeURI(""+a.customData.variantId)),b.uris[0]=
122
+ c)):el.warn(Xa)};hl=function(a,b,c){_.gl(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.Fg(b.uris[0]);c.a.add(_.Ud,a);b.uris[0]=c.toString()};
123
+ _.il=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.gl(a,b,c,!1);b.headers[va]=hc;c={spc:_.bk(b.body)};if((a=a.drm)&&a.env.startsWith(Ca)&&d){a={};var e=qi((new _.ni(dl(d))).f);d=e.keyId;if(e=e.assetId)el.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(el.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(el.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(el.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
124
+ _.vh(_.pi(c,!0))};_.jl=function(a,b){el.debug("Clearing response data");if(200===b.status){var c=_.ph(b.data).trim();"\x3cckc\x3e"===c.substr(0,5)&&"\x3c/ckc\x3e"===c.substr(-6)&&(c=c.slice(5,-6));b.data=_.dk(c).buffer}};_.kl=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(Ba))el.warn(Xa);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(Ca)){var d=new _.Fg(b.uris[0]),e=d.pa;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.pa=e;b.uris[0]=d.toString()}};
125
+ _.ll=function(a,b){try{var c=_.N(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));el.debug("Widevine License response",d);var e=atob(d.license),f=new Uint8Array(e.length);for(c=0;c<e.length;++c)f[c]=e.charCodeAt(c);b.data=f.buffer}catch(g){el.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};nl=function(a){var b={},c=a?a[hf]:void 0;a=ml[a?a[hf]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};ol=function(){};
126
+ ql=function(a,b){b=void 0===b?0:b;_.Qf("Registering EME Factory: "+a.a());for(var c={priority:b,Jb:a},d=0;d<pl.length;++d)if(pl[d].priority<b){pl.splice(d,0,c);return}pl.push(c)};
127
+ rl=function(a){if(a){var b=pl.find(function(d){return d.Jb.a()===a}).Jb;if(b&&b.ca())return _.Qf(Db+b.a()),b.create();_.Qf("Cannot create selected EME manager. Choosing by priority list.")}b=_.u(pl);for(var c=b.next();!c.done;c=b.next())if(c=c.value.Jb,c.ca())return _.Qf(Db+c.a()),c.create();throw Error("Missing EME managers");};_.tl=function(a,b){var c=_.sl(a,b);return 1!=c.length?null:c[0]};
128
+ _.sl=function(a,b){return Array.prototype.filter.call(a.childNodes,function(c){return c instanceof Element&&c.tagName==b})};_.ul=function(a){return Array.prototype.every.call(a.childNodes,function(b){return b.nodeType==Node.TEXT_NODE||b.nodeType==Node.CDATA_SECTION_NODE})?a.textContent.trim():null};
129
+ _.vl=function(a,b){var c=new DOMParser,d=null,e=null;try{e=c.parseFromString(a,_.De)}catch(f){}e&&e.documentElement.tagName==b&&(d=e.documentElement);return d&&0<d.getElementsByTagName("parsererror").length?null:d};wl=function(a,b,c){this.h=new Uint8Array(a);this.a=b;this.f=c};xl=function(){wl.apply(this,arguments)};_.zl=function(a){var b=_.ek(a);b=parseInt(b.byteLength,10).toString(16);b=_.ek("12"+b+a);return new xl(yl,a,b)};
130
+ _.Al=function(a){function b(r){switch(r){case 0:do if(!_.yk(d))throw Error("not enough data to skip!");while(_.Ak(d)&128);break;case 1:d.skip(8);break;case 2:d.skip(c());break;case 3:for(;4!==(r=c()&7);)b(r);break;case 5:d.skip(4);break;default:throw Error("invalid wire type "+r);}}function c(){for(var r=_.Ak(d),w=(r&127)>>>0,y=7;128<=r&&28>=y;)r=_.Ak(d),w=(w|(r&(28>y?127:15))<<y)>>>0,y+=7;return 28<y?-1:w}var d=new _.xk(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.U(d);var e=_.U(d);e=
131
+ _.Lk(e);var f=_.U(d),g=f>>>24;f&=16777215;var h=_.Fk(d,16);h=_.fk(h);if(0<g){var l=_.U(d);d.skip(16*l)}l=_.U(d);for(var m=[],n=null;_.yk(d);){var p=c(),q=p&7;p>>>=3;if(2===q){q=c();if(0>q)throw Error("unable to read length of field "+p);q=Dk(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.Rf("Parsed WV PSSH Box","size",a,"name",e,"version",g,"flags",f,"size",l,"systemId",h,"contentId (base64)",n?_.bk(n):"","keyIds",m.map(function(r){return _.fk(r)}));return 0<m.length?_.zl(_.fk(m[0])):null};
132
+ _.Bl=function(a,b,c,d,e,f){f=void 0===f?null:f;wl.call(this,a,b,d);this.version=e;this.g=c;this.j=f};
133
+ _.Gl=function(a){a:{a=new _.xk(new DataView(a.buffer),!0);_.U(a);for(_.Bk(a);_.yk(a);)if(1===_.Bk(a)){var b=_.Bk(a);a=_.Fk(a,b);break a}a=null}b=rh(a,!0);var c=_.vl(b,"WRMHEADER");b=c.getAttribute("version");var d=_.tl(c,"DATA");c=(c=_.tl(d,"LA_URL"))?_.ul(c):"";var e;if(e=_.tl(d,"KID"))if(e=_.ul(e)){var f=_.tl(d,oa);e={value:e,je:f?f.textContent.trim():null}}else e=null;else e=null;d=e?[e]:(e=Cl(d))?[e]:(d=Dl(d))?d:null;e=d&&d[0]||{};d=e.je;e=_.dk(void 0===e.value?"":e.value);e=_.El(e);e=_.fk(e);
134
+ return new _.Bl(_.Fl,e,c,a,b,d)};_.El=function(a){var b=[];b.push(a[3]);b.push(a[2]);b.push(a[1]);b.push(a[0]);b.push(a[5]);b.push(a[4]);b.push(a[7]);b.push(a[6]);a=_.N(a);a.set(b,0);return a};Cl=function(a){a=_.tl(a,"PROTECTINFO");if(!a)return null;var b=_.tl(a,"KID");if(!b)return null;a=b.getAttribute("VALUE");if(!a)return null;var c=b.getAttribute(oa);b=b.getAttribute("ALGID");return{value:a,je:c,Hg:b}};
135
+ Dl=function(a){a=_.tl(a,"PROTECTINFO");if(!a)return null;a=_.tl(a,"KIDS");if(!a)return null;var b=_.sl(a,"KID");if(!b.length)return null;a=[];b=_.u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;if(c=d.getAttribute("VALUE")){var e=d.getAttribute(oa);d=d.getAttribute("ALGID");a.push({value:c,je:e,Hg:d})}}return a.length?a:null};Hl=function(a){this.f=[];this.g=[];this.a=[];8<=a.byteLength&&(new _.Gk).W("pssh",this.h.bind(this)).parse(a.buffer);0==this.a.length&&_.G("No pssh box found!")};
136
+ _.Ll=function(a){var b=this;this.C=a;this.N=new Set;this.B=this.J=this.o=null;this.$=!1;this.f=null;this.K=Il;this.A=new _.dg;this.R=new ik;this.g=new Map;this.L=[];this.I=new _.Nh;this.h=null;this.U=function(c){b.w=!0;b.D=!1;b.I.reject(c);a.onError(c)};this.m=new Map;this.da=new Map;this.aa=new _.Ni(function(){return Jl(b)});this.j=!1;this.Ma=new _.Nh;this.F=!1;this.ba=[];this.Sa=!1;this.V=0;this.a=new _.H("clpp.drm.DrmEngine");this.fa=(new _.Ni(function(){Kl(b)})).bb(1);this.I["catch"](function(){});
137
+ this.w=this.D=!1;this.T=null};
138
+ Nl=function(a){var b,c,d,e,f;return _.B(function(g){switch(g.a){case 1:a.A.release();a.A=null;a.R.release();a.R=null;a.w=!1;a.D=!1;a.I.reject();a.fa.stop();a.fa=null;a.aa.stop();a.aa=null;b=Array.from(a.g.keys());c=_.u(a.g.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.Cc&&e.Cc.stop();a.g.clear();return _.x(g,Promise.all(b.map(function(h){return Promise.resolve().then(function(){var l;return _.B(function(m){if(1==m.a)return a.a.debug("Closing session",h.sessionId),_.yf(m,2),_.x(m,Ml(h),4);
139
+ if(2!=m.a)return _.zf(m,0);l=_.Af(m);a.a.warn("Error while closing session",l);_.z(m)})})})),2);case 2:if(!a.B){g.H(3);break}_.yf(g,4);return _.x(g,a.o.Wc(null),6);case 6:_.zf(g,5);break;case 4:f=_.Af(g),a.a.warn("Error while resetting media keys",f);case 5:a.B=null;case 3:a.o=null,a.f=null,a.N.clear(),a.J=null,a.L=[],a.h=null,a.U=null,a.C=null,a.V=0,a.T=null,_.z(g)}})};
140
+ _.Ql=function(a,b,c){a.K=Ol;a.L=c;a.F=0<c.length;a.a.debug("Using Persisted Licenses: "+a.F);a.h&&a.h.enableSessionCacheForSkd&&a.a.info("Enabled session cache for SKD license requests");return _.Pl(a,b)};
141
+ _.Pl=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.K.jf(a.h.Ra);Rl(b,d)}var e=Sl(a);if(e){var f=_.u(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos=[e]}e=_.u(b);for(d=e.next();!d.done;d=e.next())for(d=_.u(d.value.drmInfos),f=d.next();!f.done;f=d.next())Tl(f.value,a.h.Ra);d=Ul(a,b);if(!d.size)return a.$=!0,Promise.resolve();d=_.Vl(a,d);return c?d:d["catch"](function(){})};
142
+ Wl=function(a){var b;return _.B(function(c){switch(c.a){case 1:if(a.o.Fd())return c["return"]();if(!a.T){c.H(2);break}return _.x(c,a.T,3);case 3:return c["return"]();case 2:return _.yf(c,4),a.T=a.o.Wc(a.J),_.x(c,a.T,6);case 6:_.zf(c,0);break;case 4:b=_.Af(c);if(a.j)return c["return"]();a.U(new _.L(_.M,6,6003,b.message,b));_.z(c)}})};
143
+ Yl=function(a,b){return _.B(function(c){if(1==c.a)return a.a.info("Handle encrypted event for type "+b.initDataType),_.x(c,Wl(a),2);if(!b.initData)return c["return"]();_.Xl(a,b.initDataType,_.N(b.initData));_.z(c)})};
144
+ _.cm=function(a,b){if(!a.J)return _.eg(a.A,b,[dd,"msneedkey",df,"needkey"],function(){a.U(new _.L(_.M,6,6010))}),Promise.resolve();a.B=b;a.o.wd(b);a.A.one(a.B,_.Xd,function(){return Zl(a)});a.A.on(a.B,_.Ze,function(e){var f=a.D;a.D=!a.w;!f&&a.D&&(a.a.info("Waiting for DRM license key delivery"),a.C.onEvent(e))});var c=a.f.initData.find(function(e){return 0<e.initData.length}),d=Promise.resolve();if(c||a.o.Vc()!==lb||a.L.length)d=Wl(a);c=Promise.resolve();_.Vh()&&38===Ri().major||(a.f&&a.f.keySystem!==
145
+ _.Rd&&!a.f.serverCertificate&&(c=$l(a)),c=c.then(function(){return _.am(a)}));return Promise.all([d,c]).then(function(){a.j||(_.bm(a),a.A.on(a.B,dd,function(e){return Yl(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.f&&a.f.keySystem===_.Qc&&1>a.V&&a.f.serverCertificate&&a.f.serverCertificate.length)return a.a.warn("Detected invalid widevine server certificate!. Retrying"),a.U(new _.L(1,6,6004)),a.f.serverCertificate=null,a.V++,_.cm(a,b);1<=a.V&&a.a.info("Could not get valid widevine server certificate. Giving up");
146
+ throw e;}})};_.am=function(a){var b,c;return _.B(function(d){if(1==d.a){if(!(a.J&&a.f&&a.f.serverCertificate&&a.f.serverCertificate.length))return d.H(0);_.yf(d,3);return _.x(d,a.J.setServerCertificate(a.f.serverCertificate),5)}if(3!=d.a)return b=d.f,void 0===b||b||a.a.debug("Server certificates are not supported by the key system. The server certificate has been ignored."),_.zf(d,0);c=_.Af(d);throw new _.L(_.M,6,6004,{browserError:c.message});})};
147
+ $l=function(a){var b=a.keySystem(),c=a.h.Ra[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.C.getConfiguration();return dm(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.Ih([d],a.h.attemptParameters);f.type=3;f.licenseRequestType=Bc;g&&f.requestModifiers.push(function(l){return g(e,l)});h&&f.responseModifiers.push(function(l){return h(e,l)});a.a.debug("Fetching certificate");return a.C.Ab.fetch(f).P}).then(function(f){a.f.serverCertificate=
148
+ _.N(f.data)})["catch"](function(f){var g=f.data.headers;g=Object.assign({message:"Error while fetching certificate!",url:f.data.url,status:f.data.status,response:f.data.response},g?{headers:g}:{},nl(g));throw new _.L(_.M,6,6100,g,f);})};dm=function(a,b){var c,d;return _.B(function(e){c=a.C.Gc();return c?(d=b&&b.drm&&b.drm.customData)?_.x(e,c(d),0):e["return"]():e["return"]()})};em=function(a,b){if(!a)return!1;for(var c=0;c<b.Bd.length;c++)if(_.gk(a,b.Bd[c]))return!0;return!1};
149
+ _.bm=function(a){for(var b=a.f?a.f.initData||[]:[],c=_.u(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.Uh(2);if(a.h.enforceSingleSession&&!a.keySystem().startsWith(_.Oc)){var f=a.g.values();f=_.u(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.gk(d.initData,g.initData)?(a.a.info("Skipping Session creation. Existing init data in single session mode!"),e=!1):g.periodId===d.periodId&&(a.a.info("Skipping Session creation. Merging init data for period in single session mode for Key ID "+(d.keyId+
150
+ ".")),em(d.initData,g)||(g.Bd.push(d.initData),d.keyId&&!g.cb.includes(d.keyId)&&g.cb.push(d.keyId),a.m.get(d.keyId)||a.m.set(d.keyId,se)),e=!1)}!e||a.F&&a.K===Ol||(_.fm(a,d.keyId,d.initData)&&(e=!1),e&&(a.a.info("Request new media key session on create"),gm(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.u(a.L);for(d=c.next();!d.done;d=c.next())_.hm(a,d.value);b.length||a.L.length||(a.w||a.a.info(za),a.w=!0,a.D=!1,a.I.resolve());return a.I};
151
+ _.Xl=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.F||a.K!==Ol)){var e=a.keySystem();if(!e.startsWith(_.Oc)){var f=new Hl(c);if(1<f.a.length&&(e={"org.w3.clearkey":"1077efecc0b24d02ace33c1e52e2fb4b","com.widevine.alpha":"edef8ba979d64acea3c827dcd51d21ed","com.microsoft.playready":"9a04f07998404286ab92e65be0885f95","com.adobe.primetime":"f239e769efa348509c16a903c6932efb"}[e]))for(var g=0;g<f.f.length;g++)if(e===f.f[g]){c=c.subarray(f.a[g].start,f.a[g].end+1);break}}(a.B.webkitCurrentPlaybackTargetIsWireless||
152
+ _.Uh(2)||a.keySystem().startsWith(_.Oc)||!_.fm(a,d,c,!0))&&gm(a,d,null,b,c)}};
153
+ _.fm=function(a,b,c,d){d=void 0===d?!1:d;for(var e=_.u(a.g.keys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.g.get(f);if(_.gk(c,g.initData))return b?g.cb.includes(b)?d&&a.a.info("Skipping Session creation. License for init data with Key ID "+(b+" was already requested in Session: '")+(f.sessionId+"'. ")):(g.cb.push(b),a.m.get(b)||a.m.set(b,se),d&&a.a.info(sb+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.a.info(sb+(f.sessionId+"'")),!0;if(em(c,g))return d&&a.a.info("Skipping Session creation. License for init data was already requested [extra]"),
154
+ !0}return!1};im=function(a){var b=Infinity;a=a.g.keys();a=_.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,isNaN(c.expiration)||(b=Math.min(b,c.expiration));return b};
155
+ Ul=function(a,b){for(var c=new Set,d=_.u(b),e=d.next();!e.done;e=d.next()){var f=_.u(e.value.drmInfos);for(e=f.next();!e.done;e=f.next())c.add(e.value)}d=_.u(c);for(e=d.next();!e.done;e=d.next())Tl(e.value,a.h.Ra);f=a.F?_.ge:_.Qd;var g=a.F?[_.Vd]:[Ae];d=new Map;c=_.u(c);for(e=c.next();!e.done;e=c.next())e=e.value,d.set(e.keySystem,{initDataTypes:[_.zc],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.Qd,persistentState:f,sessionTypes:g,label:e.keySystem,drmInfos:[]});c={};f=_.u(b);
156
+ for(e=f.next();!e.done;c={Wd:c.Wd,ce:c.ce},e=f.next()){e=e.value;g=e.audio;var h=e.video;c.Wd=g?_.Ji(g.mimeType,g.codecs):"";c.ce=h?_.Ji(h.mimeType,h.codecs):"";var l={},m=_.u(e.drmInfos);for(e=m.next();!e.done;l={Gb:l.Gb},e=m.next())e=e.value,l.Gb=d.get(e.keySystem),l.Gb.drmInfos.push(e),e.initData&&e.initData.length&&(l.Gb.initDataTypes=_.lf(new Set(e.initData.map(function(n){return n.initDataType}))).concat()),e.distinctiveIdentifierRequired&&(l.Gb.distinctiveIdentifier=_.ge),e.persistentStateRequired&&
157
+ (l.Gb.persistentState=_.ge),g&&_.bi(e.audioRobustness).forEach(function(n,p){return function(q){p.Gb.audioCapabilities.push({robustness:q||"",contentType:n.Wd})}}(c,l)),h&&_.bi(e.videoRobustness).forEach(function(n,p){return function(q){p.Gb.videoCapabilities.push({robustness:q||"",contentType:n.ce})}}(c,l))}return d};
158
+ _.Vl=function(a,b){function c(n,p,q){p.drmInfos.some(function(r){return!!r.licenseServerUri})==n&&(g=g["catch"](function(){if(a.j)return null;if(q===_.Pc){var r=a.C.getConfiguration();if(!_.Pi()||r.streaming.patchEdgeWhenMixedContent||a.h.Ra[q].useLegacySystem)d(p);else return a.o.Ac("com.microsoft.playready.recommendation",[p])["catch"](function(){d(p);return a.o.Ac(q,[p])})}return a.o.Ac(q,[p])}))}function d(n){for(var p=_.u(n.audioCapabilities),q=p.next();!q.done;q=p.next())delete q.value.robustness;
159
+ n=_.u(n.videoCapabilities);for(p=n.next();!p.done;p=n.next())delete p.value.robustness}if(1==b.size&&b.has(""))return Promise.reject(new _.L(_.M,6,6E3));null===a.o&&(a.o=rl(a.h.emeApi));for(var e=_.u(b.values()),f=e.next();!f.done;f=e.next())f=f.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;var g=e=new _.Nh,h=a.h.preferredDrmSystem;if(!h)if(f=_.Wh(),f.os===kj&&10<=f.osVersion.major&&"edge"===f.browser)h=_.Pc;else if("safari"===
160
+ f.browser)h=_.Oc;else if(f.browser===Dc||"firefox"===f.browser)h=_.Qc;h&&(f=b.get(h))&&(c(!0,f,h),c(!1,f,h));f={};for(var l=_.u([!0,!1]),m=l.next();!m.done;f={ae:f.ae},m=l.next())f.ae=m.value,b.forEach(function(n){return function(p,q){q!==h&&c(n.ae,p,q)}}(f));g=g["catch"](function(n){throw new _.L(_.M,6,6001,null,n);});g=g.then(function(n){if(a.j)return null;a.N.clear();var p=n.getConfiguration();a.a.debug("Got MediaKeySystemAccess with configuration",p);var q=p.videoCapabilities||[],r=_.u(p.audioCapabilities||
161
+ []);for(p=r.next();!p.done;p=r.next())a.N.add(p.value.contentType);q=_.u(q);for(p=q.next();!p.done;p=q.next())a.N.add(p.value.contentType);q=n.keySystem;p=b.get(_.jm(n.keySystem));r=[];var w=[],y=[],A=[];km(p.drmInfos,r,w,y,A);1<w.length&&_.G("Multiple unique server certificates found! Only the first will be used.");1<r.length&&_.G("Multiple unique license server URIs found! Only the first will be used.");a.f={keySystem:q,licenseServerUri:r[0],distinctiveIdentifierRequired:p.distinctiveIdentifier==
162
+ _.ge,persistentStateRequired:p.persistentState==_.ge,audioRobustness:p.audioCapabilities?p.audioCapabilities[0].robustness:"",videoRobustness:p.videoCapabilities?p.videoCapabilities[0].robustness:"",serverCertificate:w[0],initData:y,keyIds:A,periodId:null};if(!a.f.licenseServerUri)throw new _.L(_.M,6,6012,a.f.keySystem);return n.createMediaKeys()}).then(function(n){a.j||(a.a.info("Created MediaKeys for key system",a.f.keySystem),a.J=n,a.$=!0)})["catch"](function(n){if(!a.j){a.f=null;a.N.clear();if(n instanceof
163
+ _.L)throw n;throw new _.L(_.M,6,6002,{browserError:n.message});}});e.reject();return g};
164
+ Sl=function(a){a=_.K.jf(a.h.Ra[_.Rd]||{});if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.ek(f),h=_.ek(e);g={kty:"oct",kid:_.ck(g,!1),k:_.ck(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.th(d),initDataType:"keyids"}];return{keySystem:_.Rd,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
163
165
  initData:d,keyIds:[],periodId:null}};
164
- _.gm=function(a,b){try{a.a.debug("Attempting to load an offline session",b);var c=a.J.createSession(_.Ud)}catch(f){var d=new _.L(_.M,6,6005,{browserError:f.message});a.T(d);return Promise.reject(d)}a.B.on(c,yd,a.fg.bind(a));a.B.on(c,nd,a.bg.bind(a));var e={initData:null,loaded:!1,Fe:Infinity,nb:null,za:new _.Mh,periodId:null,yd:[],keyId:null,bb:[],initDataType:null,Yb:null,sessionContext:{ldlDelay:0,customData:{}}};e.za["catch"](function(){});a.g.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.a.debug("Loaded offline session",
165
- b,f);if(!f)return a.g["delete"](c),a.T(new _.L(_.M,6,6013)),null;e.loaded=!0;km(a)&&(a.w||a.a.info(za),a.w=!0,a.D=!1,a.I.resolve());return c},function(f){a.j||(a.g["delete"](c),a.T(new _.L(_.M,6,6005,{browserError:f.message})))})};lm=function(a,b,c,d){if(!b&&c!==_.le)return!1;d=b||Pk(d);a=_.u(a.g.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||c===_.le&&(e.keyId||Pk(e.initData))===d)return!0;return!1};
166
- fm=function(a,b,c,d,e,f,g){f=void 0===f?null:f;g=void 0===g?!1:g;var h,l,m,n,p,q,r,w,x,C,D,E,G,K,O,T,Da,ea,fa,xa;_.A(function(ha){switch(ha.a){case 1:if(!e.length)return ha["return"]();h=b||mm(a,d,e,f);if(g){ha.H(2);break}if(!lm(a,h,d,e)){ha.H(2);break}l=!0;m=_.u(a.g.keys());n=m.next();case 4:if(n.done){ha.H(6);break}p=n.value;q=a.g.get(p);if(!h||q.keyId!==h||"skd"!==d){ha.H(5);break}a.a.warn("Close and re-open session for "+h);return _.y(ha,p.close(),8);case 8:l=!1;case 5:n=m.next();ha.H(4);break;
167
- case 6:if(l)return a.a.warn("Skip creating a new session for "+h),ha["return"]();case 2:try{w=a.G?_.Ud:ze,r=a.J.createSession(w),a.a.info("Created new "+w+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(qa){return a.T(new _.L(_.M,6,6005,{browserError:qa.message})),ha["return"]()}a.B.on(r,yd,a.fg.bind(a));a.B.on(r,nd,a.bg.bind(a));x={Yb:f,yd:[],initData:e,initDataType:d,keyId:h,bb:h?[h]:[],loaded:!1,Fe:Infinity,periodId:c,nb:null,za:new _.Mh,sessionContext:{ldlDelay:0,customData:{}}};
168
- x.za["catch"](function(){});f&&(C=a.g.get(f),x.sessionContext=C.sessionContext);a.g.set(r,x);h&&!a.m.get(h)&&a.m.set(h,re);if(e)for(D=0;D<a.f.initData.length;D++)E=a.f.initData[D],E.keyId&&!x.bb.includes(E.keyId)&&_.fk(E.initData,e)&&(x.keyId||(x.keyId=E.keyId),x.bb.push(E.keyId),a.m.get(E.keyId)||a.m.set(E.keyId,re));G=_.J;K=G.jb;O=a.o.getConfiguration();T=a.keySystem();Da=a.h.Qa[T];fa=(ea=Da.modifiers)&&ea.transformInitData;K(fa)||(fa=nm);try{e=fa({playerConfig:O,initData:e,initDataType:d,drmInfo:a.f,
169
- drmSystemConfig:Da,sessionContext:x.sessionContext,emeApi:a.A.Tc()})}catch(qa){return xa=qa,qa instanceof _.L||(xa=new _.L(_.M,6,6016,qa)),x.za&&x.za.reject(qa),a.T(xa),ha["return"]()}a.a.info("Generate License Request for key ID: '"+h+"'");r.generateRequest(d,e.buffer)["catch"](function(qa){if(!a.j){var Ba=null;qa.errorCode&&qa.errorCode.systemCode&&(Ba=qa.errorCode.systemCode,0>Ba&&(Ba+=Math.pow(2,32)),Ba="0x"+Ba.toString(16));a.T(new _.L(_.M,6,6006,{browserError:qa.message,error:qa,extended:Ba},
170
- qa))}});_.z(ha)}})};
171
- mm=function(a,b,c,d){d=void 0===d?null:d;if("skd"===b){a:{b=d;b=void 0===b?null:b;d=a.keySystem();var e=a.h.Qa[d];d=a.o.getConfiguration();e=e&&e.modifiers&&e.modifiers.extractContentId;_.J.jb(e)||(e=om);try{var f={ldlDelay:0,customData:{}};b&&(f=a.g.get(b).sessionContext);var g=e(d,c,f);a.a.debug("Extracted Content ID '"+g+"' from SKD");var h=g;break a}catch(l){a.a.warn("Unable to extract Content ID from SKD",l)}h=""}return h}if(b===_.le)return Pk(c)||"";if(b===_.zc)try{e=a.keySystem();if(pm(e))return _.Fl(c).a;
172
- if(e.match(/^com\.widevine\.alpha/)&&(f=_.zl(c)))return f.a}catch(l){a.a.warn("Unable to extract Key ID from PSSH data",l)}return""};om=function(a,b){var c=_.Ok(b);_.Qf("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
173
- nm=function(a){var b=a.playerConfig,c=a.initData,d=a.drmInfo,e=a.drmSystemConfig,f=a.sessionContext,g=a.emeApi;if("skd"===a.initDataType&&"APPLE"===g){a=_.J.jb;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=om);a="";try{a=e(b,c,f)}catch(h){throw new _.L(_.M,6,6103);}if(!a.length)throw new _.L(_.M,6,6101,"Content ID is an empty string");c=Qk(c,a,d)}return c};
174
- tm=function(a,b){var c=b.target,d=a.g.get(c),e=a.keySystem(),f=!1;e.match(/^com\.widevine\.alpha/)&&b.message&&2===b.message.byteLength?(f=!0,a.a.info("WV Server certificate request for SID:'"+(c.sessionId+" from msg '")+(b.messageType+"'"))):a.a.info("License request for SID:'"+(c.sessionId+"'/KID:'"+d.keyId+"' from msg '")+(b.messageType+"'"));var g=a.f.licenseServerUri;e=a.h.Qa[e];"individualization-request"===b.messageType&&e&&e.individualizationServer&&(g=e.individualizationServer);var h=_.Hh([g],
175
- a.h.attemptParameters);h.type=3;h.body=b.message;h.method="POST";h.licenseRequestType=b.messageType===qd&&d.Yb?pd:f?Bc:b.messageType;h.sessionId=c.sessionId;if(h.licenseRequestType===pd)a.o.onEvent(new _.I(Xc));pm(a.f.keySystem)&&qm(a,h);ik(a.S,h);var l=Date.now();return rm(a,h,d.sessionContext).then(function(){a.a.debug("Sending DRM license request to",g,h);return a.o.Ab.fetch(h).P}).then(function(m){if(a.j)return Promise.reject();var n=Date.now()-l,p=sm(a,m),q="";p&&(q=" RID:"+p);p=m&&m.data?m.data.byteLength:
176
- -1;f?a.a.info("WV Server certificate response for SID:'"+(c.sessionId+"' ")+(p+" bytes in ")+(n+"ms"+q)):a.a.info("License response for SID:'"+(c.sessionId+"'/KID:'")+(d.keyId+"' ")+(p+" bytes in ")+(n+"ms"+q));var r=jk(a.S,m);return c.update(m.data).then(function(){if(!f){var w=hm(a),x=r?Date.now()+1E3*r.delay:Number.NaN;w=new _.I(_.$c,{keySystem:a.keySystem(),expirationTime:w,expectedRenewalTime:x});a.o.onEvent(w);d&&(d.nb&&d.nb.resolve(),d.Yb&&(w=d.Yb,a.a.info("Closing expired session '"+w.sessionId+
177
- "'"),Ll(w)["catch"](function(){a.a.warn("Unable to close expired session in time")}),(w=a.g.get(d.Yb))&&w.Ac&&w.Ac.stop(),a.g["delete"](d.Yb),d.Yb=null),(new _.Li(function(){a.j||(d.loaded=!0,d.za&&d.za.resolve(),km(a)&&(a.w||a.a.info(za),a.w=!0,a.D=!1,a.I.resolve()))})).Z(5),null!==d.initData&&(0<d.sessionContext.ldlDelay||r&&kk(a.keySystem()))&&(w=new _.Li(function(){!a.j&&a.S&&(a.a.info("Updating CSL Sessions"),pm(a.keySystem())?fm(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):a.keySystem().startsWith(_.Nc)&&
178
- c.update(_.sh("renew")))}),d.Ac=w,w.Z(r?r.delay:d.sessionContext.ldlDelay)))}})},function(m){var n,p,q,r;return _.A(function(w){if(a.j)return w["return"]();n=m.data.headers;p=ml(n);q=Object.assign({message:_.Ha,url:m.data.url,status:m.data.status,response:m.data.response},n?{headers:n}:{},p);r=new _.L(_.M,6,6007,q,m);a.T(r);d&&d.nb&&d.nb.reject(r);d&&d.za&&d.za.reject(r);_.z(w)})})["catch"](function(m){a.j||(m===ob?a.a.info("Ignore update for closed sessions"):(m=new _.L(_.M,6,6008,{browserError:m.message}),
179
- a.T(m),d&&d.nb&&d.nb.reject(m),d&&d.za&&d.za.reject(m)))})};sm=function(a,b){if(!b||!b.headers)return"";var c=b.headers["x-dt-li"];if(c)try{return JSON.parse(_.oh(_.ck(c))).ti}catch(d){a.a.warn("Unable to parse DRMtoday Request ID",d)}return""};
180
- qm=function(a,b){var c=qh(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.a.debug("Unwrapping PlayReady request.");c=(new DOMParser).parseFromString(c,"application/xml");for(var d=c.getElementsByTagName("HttpHeader"),e=0;e<d.length;++e)b.headers[d[e].querySelector("name").textContent]=d[e].querySelector(_.Me).textContent;b.body=_.ck(c.querySelector("Challenge").textContent).buffer}else a.a.debug("PlayReady request is already unwrapped."),b.headers[va]="text/xml; charset\x3dutf-8"};
181
- rm=function(a,b,c){var d,e,f,g,h,l;return _.A(function(m){if(1==m.a)return d=a.o.getConfiguration(),_.y(m,cm(a,d),2);e=a.keySystem();h=(g=(f=a.h.Qa[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;h?b.requestModifiers.push(function(n){return h(d,n,c)}):e.startsWith(_.Nc)&&b.requestModifiers.push(function(n){return _.Rk(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Nc)&&b.responseModifiers.push(function(n){return _.Sk(n)});_.z(m)})};
182
- Il=function(a){var b=a.m,c=a.ia;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.T(new _.L(_.M,6,6014));a.o.Je(_.J.hf(c));a.w||a.a.info(za);a.w=!0;a.D=!1};Yl=function(a){var b;return _.A(function(c){b=a.da.map(function(d){return tm(a,d)});a.qb=!0;a.da=[];return _.y(c,Promise.all(b),0)})};pm=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};_.im=function(a){return pm(a)?_.Oc:a};
183
- Jl=function(a){a.g.forEach(function(b,c){var d=b.Fe,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.o.onExpirationUpdated(c.sessionId,e),b.Fe=e)})};km=function(a){a=a.g.values();return _.Yg(a,function(b){return b.loaded})};
184
- Ql=function(a,b){var c=[];b.forEach(function(f,g){c.push({keySystem:g,licenseServerUri:f.licenseUrl,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[]})});for(var d=_.u(a),e=d.next();!e.done;e=d.next())e.value.drmInfos=c};
185
- jm=function(a,b,c,d,e){var f={};a=_.u(a);for(var g=a.next();!g.done;f={ta:f.ta},g=a.next()){f.ta=g.value;b.includes(f.ta.licenseServerUri)||b.push(f.ta.licenseServerUri);f.ta.serverCertificate&&(c.some(function(m){return function(n){return _.fk(n,m.ta.serverCertificate)}}(f))||c.push(f.ta.serverCertificate));if(f.ta.initData){var h=_.u(f.ta.initData);for(g=h.next();!g.done;g=h.next())g.value.periodId=f.ta.periodId;h={};var l=_.u(f.ta.initData);for(g=l.next();!g.done;h={od:h.od},g=l.next())h.od=g.value,
186
- d.some(function(m){return function(n){var p=m.od;return n.keyId&&n.keyId==p.keyId&&n.periodId===p.periodId?!0:!1}}(h))||d.push(h.od)}if(f.ta.keyIds)for(g=0;g<f.ta.keyIds.length;++g)e.includes(f.ta.keyIds[g])||e.push(f.ta.keyIds[g])}};
187
- Sl=function(a,b){if(a.keySystem){var c=_.im(a.keySystem),d=b[c];c===_.Qd&&a.licenseServerUri||(d&&(a.licenseServerUri=d.licenseUrl||""),a.keyIds||(a.keyIds=[]),d&&(a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=d.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=d.persistentStateRequired),a.videoRobustness||(a.videoRobustness=d.videoRobustness||""),a.audioRobustness||(a.audioRobustness=d.audioRobustness||""),a.serverCertificate||(a.serverCertificate=
188
- d.serverCertificate||null)))}};Ll=function(a){var b,c;return _.A(function(d){if(1==d.a)return b=new Promise(function(e){(new _.Li(e)).Z(1)}),_.y(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.F("Timeout waiting for session close");_.z(d)})};_.wm=function(a,b){a&&b&&(um.set(a,b),vm.info("Registered TextDisplayerFactory: '"+a+"'"))};
189
- _.xm=function(a,b){var c=b.find(function(d){return(d=um.get(d))?d.aa(a):!1});if(null==c)return vm.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;vm.info("Chosen the text displayer: "+c);return um.get(c)};Dm=function(){this.a=null;this.f=[]};_.Em=function(a,b){if(null==a.a)a.a={timestamp:Date.now()/1E3,state:b,duration:0};else{var c=Date.now()/1E3;a.a.duration=c-a.a.timestamp;a.a.state!=b&&(a.f.push(a.a),a.a={timestamp:c,state:b,duration:0})}};
190
- Fm=function(a,b){var c=0;a.a&&a.a.state==b&&(c+=a.a.duration);for(var d=_.u(a.f),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state==b?e.duration:0;return c};Gm=function(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=_.u(a.f),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};Hm=function(){this.g=this.f=this.h=null;this.a=[]};Im=function(a){return a.a.map(function(b){return _.J.Ma(b)})};
191
- _.Jm=function(){this.f=this.m=this.w=this.B=this.h=this.j=this.g=this.o=NaN;this.a=new Dm;this.A=new Hm};_.Km=function(){return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,estimatedBandwidth:NaN,loadLatency:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,switchHistory:[],stateHistory:[]}};_.Lm=function(a){this.f=a;this.a=void 0};Nm=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Mm.value().get(b),c.one(a,b,d))};
192
- Rm=function(a){this.g=new _.H("clpp.StateManager");this.l=a;this.a=new _.cg;this.f=_.Om;this.A=_.Pm;this.I=0;this.w=-1;this.L=this.o=this.J=this.B=0;this.j=this.m=this.D=!1;this.G=0;this.h=null;this.K=0;this.O=_.Ti();this.C=!1;this.J=Date.now();Qm(this)};Sm=function(a,b){return Object.keys(b)[a]};
193
- Um=function(a,b){var c={type:_.pe};b===_.tc||b===_.sc?(c.reason=a.w,b===_.tc?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.B):(a.f===_.Tm&&(c.reason=a.w),a.A===_.Tm&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
194
- Ym=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=a.f===_.Tm;a.A=a.f;a.f=b;a.A===_.Vm&&(a.J=c,a.o=0);a.o||(a.o=a.J||c);a.I=c-a.o;a.o=c;b===_.Tm?(a.L=a.o,a.w=a.m?1:2,a.g.info("Buffering started. Reason: "+Sm(a.w-1,_.Wm)),c=Um(a,_.tc),a.Sb(_.tc,c)):d&&(a.B=a.o-a.L,a.g.info("Buffering finished. Reason: "+Sm(a.w-1,_.Wm)+". Buffering time: "+a.B+" ms"),c=Um(a,_.sc),a.Sb(_.sc,c));c=Sm(a.A,_.Xm);d=Sm(a.f,_.Xm);a.g.info(_.fb+c+" -\x3e "+d);a.Sb(_.pe,Um(a,""));return!0};
195
- cn=function(a,b){if(a.f===_.Zm)a.g.warn("Player is in error state, aborting any further state checks");else{var c=a.l.isPaused();var d=a.l.getPosition();var e=a.l.getDuration();if(d=a.l.isEnded()||a.f===_.Vm&&1>=Math.abs(d-e)||c&&d>=e)Ym(a,_.Vm)&&a.g.debug("Player claims to be in ended state, not checking more");else if(b!==_.De){e=a.l.getPosition();e=null!==e&&void 0!==e&&0<=e?a.l.getBufferInfo().Da(e,!0):-1;a.G=e;e=a.l.getSurface().getMedia();a.h=e?e.readyState:null;a.K=a.l.getPlaybackRate()||1;
196
- e=typeof a.h===_.k&&2>a.h&&2===e.networkState;var f=typeof a.h===_.k&&0>=a.G&&a.f===_.Om,g=typeof a.h===_.k&&2>=a.h&&a.j;e=a.m||f||e||g;!a.O||a.l.isLive()||a.f!==_.Tm||e||(f=b===_.ie&&4===a.h,(g=a.A===_.$m)&&!a.C?e=!0:g||a.C||f||(e=!0));f=!1;e?f=Ym(a,_.Tm):c?f=Ym(a,_.an):a.D&&(f=Ym(a,_.bn));f&&(a.C=!1);a.g.debug("Video state check for event "+b+":: seeking: "+a.m+", waiting: "+a.j+", playing: "+a.D+", paused: "+c+", readyState: "+a.h+", rate: "+a.K+", buffer: "+a.G+", ended: "+d+". Changed state: "+
197
- f+", Current state: "+Sm(a.f,_.Xm))}}};
198
- Qm=function(a){function b(d){return cn(a,d.type)}a.g.debug("Start watching for video events for "+a.l.namespace());var c=a.l;a.a.on(c,_.ed,function(){a.j=!1;Ym(a,_.Vm)});a.a.on(c,uc,b);a.a.on(c,_.Xd,function(){a.D=!0;a.j=!1;cn(a,_.Xd)});a.a.on(c,_.Sd,function(){a.D=!1;a.j=!1;cn(a,_.Sd)});a.a.on(c,_.De,b);a.a.on(c,_.be,b);a.a.on(c,_.ie,function(d){a.m=!1;a.j=!1;cn(a,d.type)});a.a.on(c,_.je,function(d){a.m=!0;cn(a,d.type)});a.a.on(c,ne,b);a.a.on(c,_.Xe,function(){a.j=!0;cn(a,_.Xe)});a.a.on(c,_.fd,function(d){return a.T(d)});
199
- a.a.on(c,_.ud,b);a.a.on(c,vc,function(){a.C=!0;cn(a,vc)});a.a.on(c,_.Le,function(d){a.m=!0;cn(a,d.type)});a.a.on(c,_.Ke,function(d){a.m=!1;a.j=!1;cn(a,d.type)})};dn=function(a){a=(new _.Eg(a)).na;if(!a)return null;a=a.toUpperCase();return _.wh(a,".MPD")?_.bc:_.wh(a,".M3U8")?_.tj:_.wh(a,".MP4")?_.Re:_.wh(a,"MANIFEST")||_.wh(a,".ISM")?_.gc:null};
200
- _.fn=function(a){var b;_.Sj(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.te||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=en(b[c]);d&&a.push(d)}return a};
201
- en=function(a){var b=null;_.J.Y(a)&&(a={url:a});typeof a===_.Id&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.J.R(a.drmProtected)||typeof a.drmProtected!==_.rc||(b.drmProtected=a.drmProtected),_.J.R(a.isLive)||typeof a.isLive!==_.rc||(b.isLive=a.isLive),_.J.R(a.name)||typeof a.name!==_.te||(b.name=a.name),_.J.R(a.Cb)||typeof a.Cb!==_.te||(b.Cb=a.Cb),_.J.R(a.audioMimeType)||typeof a.audioMimeType!==_.te||(b.audioMimeType=a.audioMimeType));b&&!b.type&&(b.type=dn(a.url),b.type?
202
- gn.debug("Detect media type "+b.type+" for "+a.url):gn.warn("Unable to detect media type for "+a.url));return b};hn=function(){_.Tj.call(this,Ic);this.w=this.G=!1;this.j=this.A=this.m=this.a=this.h=null;this.g=new _.cg;this.D=this.C=this.f=this.I=null};
203
- ln=function(a,b){return a.w?jn():new Promise(function(c){a.a||(a.g.on(b,_.fd,function(){var d=kn(a);if(d)a.onError(d)}),a.g.on(b,_.ge,function(){var d=b.videoWidth,e=b.videoHeight,f=a.getTrackManager();f&&0<d&&0<e&&(f.o={width:d,height:e});a.trigger(new _.I(_.qc,{detail:{width:d,height:e}}))}),a.a=b);c()})};mn=function(a){return a.w?jn():new Promise(function(b){if(a.a){var c=a.a;a.g.off(c,_.fd);a.g.off(c,_.ge);a.a=null}b()})};
204
- on=function(a){var b,c,d,e,f;return _.A(function(g){if(1==g.a){if(a.w)return g["return"](jn());b=a.o[a.getSourceIndex()];if(!a.configuration.drm||!1===b.drmProtected)return a.log.debug("No DRM configuration present.","Skipping DRM engine initialization"),g["return"](Promise.resolve());c=_.nn;d=_.ok(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.m=new _.Kl({Ab:e,onError:function(h){return a.onError(h)},Je:function(){},onExpirationUpdated:function(h,l){a.trigger(new _.I(_.Wc,
205
- {expirationTime:l}))},onEvent:function(h){h instanceof _.I?a.dispatchEvent(h):a.log.debug(_.xb,h.type)},getConfiguration:function(){return a.getConfiguration()},Ec:function(){return a.Ec()}});a.m.h=d;f={id:0,language:_.Ge,primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:Promise.resolve.bind(Promise),findSegmentPosition:function(){return null},getSegmentReference:function(){return null},adjustSegmentDurations:function(){},getDuration:a.getDuration.bind(a),initSegmentReference:null,
206
- Aa:0,mimeType:_.Re,codecs:"",encrypted:!0,keyId:null,language:_.Ge,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,sk:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,fk:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.y(g,_.Pl(a.m,[f],[]),2)}return 3!=g.a?_.y(g,_.bm(a.m,a.a),3):g["return"](Promise.resolve())})};
207
- pn=function(a,b){Nm(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.g,function(){a.getState()!==_.Zm&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};kn=function(a){if(null===a.o||!a.a.error)return null;var b=a.a.error.code;if(1===b)return null;var c=a.a.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new _.L(_.M,3,3016,{code:b,mk:c,message:a.a.error.message})};jn=function(){return Promise.reject(new _.L(_.M,7,7E3))};
208
- qn=function(a){if(a.w)return new _.Nh(jn(),function(){});var b=a.o[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.I;c&&pn(a,c);if(d.preload!==_.Hd)a.g.one(d,_.ud,function(){var g=Date.now()/1E3-e;a.f.w=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.Th()||_.Uh())&&d.load();var f=new _.Mh;a.g.one(d,ne,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.C||(a.C=(new _.Li(function(){f.reject(new _.L(_.M,3,3100,{message:"Unable to load media source successfully from "+
209
- b.url,uri:b.url},d.error))})).Z(g))});Nm(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.g,function(){return f.resolve()});d.error?f.reject(kn(a)):d.preload===_.Hd&&(a.log.warn('With \x3cvideo preload\x3d"none"\x3e, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way. Please do not use preload\x3d"none" with PRESTOplay for Web Apps.'),f.resolve());a.g.one(d,_.fd,function(){f.reject(kn(a))});
210
- return new _.Nh(f,function(){var g=new _.L(_.M,7,7001);f.reject(g);return Promise.resolve()})};rn=function(){};_.un=function(a){a&&(0<=sn.indexOf(a)?tn.warn("Factory '"+a.name()+"' is already registered"):(sn.push(a),tn.info("Factory "+a.name()+"' has been registered.")))};wn=function(a,b){var c=sn.find(function(d){return d.aa(a,b)});c||(c=new vn);tn.info("Chosen ads: "+c.name());return c};
211
- _.xn=function(a,b){var c=document.createElement(a),d;for(d in b){var e=b[d];null===e||void 0===e?c.setAttribute(d,""):c.setAttribute(d,e)}return c};_.yn=function(a,b){a.classList.add(b)};_.zn=function(a,b){if(a&&typeof b===_.Id)for(var c in b)a.style[c]=b[c]};_.An=function(a){return document.createElement(a)};Bn=function(){this.a=null;this.g=new Set;this.f=null;this.set(null)};Cn=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.g.add(b))};
212
- Dn=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.g.values());bi(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.kf(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
213
- Hn=function(a,b){this.a=new _.H("clpp.PlayerSurface");this.w=_.J.Va(En,b);this.g=new Bn;this.h=null;this.f=new Bn;this.m=Fn;Fn+=1;this.o="clpp-video-"+this.m;this.j=new _.cg;if(null==a)throw new _.L(_.M,7,7102,"No Media element was provided");if(a instanceof Element)var c=a;else if(c=document.getElementById(a),!c)throw new _.L(_.M,7,7004,"Media element not found");var d=this.w;this.a.debug("Initializing Player Surface on ",c);if("cast-media-player"===c.tagName.toLowerCase())this.h=c;else{if(!(c instanceof
214
- HTMLMediaElement))throw new _.L(_.M,7,7005,"Media element is not instance of HTMLMediaElement");if(!c.hasAttribute("crossorigin")){var e=d.crossorigin;this.a.info("Setting media elements crossorigin to "+e);c.setAttribute("crossorigin",e)}this.g.set(c);if(d.disableContainer)d=null;else if(d.containerEl){if(c.parentNode!==d.containerEl)throw new _.L(_.M,7,7006,"Container element is not a direct parent of media element");d=d.containerEl}else{d=document.createElement(_.Vc);c.parentNode?c.parentNode.replaceChild(d,
215
- c):this.a.warn("Player Surface Element has no parent. Can not inject container. You have to manually add playerSurface.getContainer() to the DOM!");e=[];for(var f=0;f<c.classList.length;f++)e.push(c.classList[f]);e=_.u(e);for(f=e.next();!f.done;f=e.next())f=f.value,c.classList.remove(f),_.yn(d,f);d.style.cssText=c.style.cssText;c.removeAttribute(_.ve);e=_.u([_.df,_.id]);for(f=e.next();!f.done;f=e.next()){f=f.value;var g=c.getAttribute(f);g=parseInt(g,10);isNaN(g)||(d.style[f]=g+_.ae);_.Th()||c.removeAttribute(f)}d.appendChild(c)}d&&
216
- (this.f.set(d),Cn(this.f,"clpp-container"),Cn(this.f,this.o),Cn(this.g,_.Dc),Cn(this.g,"clpp-video"));Gn(this,c,d)}};Gn=function(a,b,c){(_.Uh()&&53===Qi().major||_.Uh()&&68===Qi().major||_.Ri())&&!b.hasAttribute(Rc)&&(b.style.opacity="0",b.setAttribute(Rc,""),a.j.one(b,bd,function(){b.removeAttribute(Rc);b.style.opacity="1";c&&(c.style.opacity="1")}))};Jn=function(a){this.l=a;this.h=this.l.getNetworkEngine();this.a=new _.cg;this.g=null;this.f=!0;In(this)};
217
- In=function(a){a.a.on(window,"offline",function(){Kn(a,!1)});a.a.on(window,"online",function(){a.f||Ln(a)});a.a.on(a.l,ne,function(){return Mn(a)});a.a.on(a.l,"suspend",function(){return Mn(a)});a.a.on(a.l,_.Xe,function(){return Mn(a)});a.a.on(a.l,_.Xd,function(){a.f||Ln(a)});a.a.on(a.l,_.$d,function(){a.f||Ln(a)});a.a.on(a.l,_.pe,function(){switch(a.l.getState()){case _.Tm:Mn(a);break;default:Mn(a)}})};Ln=function(a){a.l.getConfiguration().connectivityCheck&&(Nn(a),a.g=(new _.Li(function(){return On(a)})).Z(5))};
218
- Mn=function(a){a.f&&Ln(a)};Nn=function(a){a.g&&(a.g.stop(),a.g=null)};On=function(a){var b,c;return _.A(function(d){if(1==d.a)return(b=a.l.getConfiguration().connectivityCheck)&&a.l?_.y(d,$h(a.h,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;Kn(a,c);_.z(d)})};Kn=function(a,b){Nn(a);a.f!==b&&(a.f=b,a.l&&a.l.getConfiguration().connectivityCheck&&a.l.trigger(new _.I(Od,{online:a.f})))};Qn=function(){for(var a=0;a<Pn.length;++a)Pn[a].xc()};
219
- _.Rn=function(a,b){b=b||0;for(var c={priority:b,xc:a},d=0;d<Pn.length;d++)if(Pn[d].priority<b){Pn.splice(d,0,c);return}Pn.push(c)};Sn=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};Tn=function(a,b,c){this.g=a;this.f=b;JSON.parse(_.oh(_.ck(a)));this.a=JSON.parse(_.oh(_.ck(b)));this.h=c};Un=function(a){this.license=a;this.a=null;this.f=new _.H("clpp.utils.LicenseKey")};
220
- Vn=function(a){if(!a.a){var b=a.license.split(".");if(3!==b.length)throw Error("Expected to find 3 data sections in JWT raw data");b=new Tn(b[0],b[1],b[2]);a.a=b}return a.a};Wn=function(a){switch((a.Ed()[0]||{src:"",type:""}).type){case _.bc:a="dash";break;case _.gc:a="ss";break;case _.tj:a="hls";break;case _.Re:a=_.Dd;break;default:a=""}return a};Xn=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};
221
- Yn=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};Zn=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};ao=function(a){var b=a.getConfiguration(),c="no";b.drm&&!_.J.va(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(ad)||$n(a).endsWith("drmtoday.com"))&&(c=ad);return c};
222
- bo=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.keySystem){case _.Pc:b="wv";break;case _.Oc:b="pr";break;case _.Nc:b="fps"}return b};co=function(a){a=a.getDrmInfo();var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};eo=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.videoRobustness){case Ma:case "HW_SECURE_ALL":b="L1";break;case Ka:b="L2";break;case _.nb:case _.mb:b="L3"}return b};$n=function(a){a=a.getDrmInfo();return(new _.Eg(a&&a.licenseServerUri||"")).Na};
223
- ho=function(a,b){var c="ie"===_.Vh().browser,d=b.getConfiguration(),e=_.kf(Array.from(_.Uj.keys())).concat(_.kf(b.ii()));d={"CL-KEY":a.license,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ia,"CL-USER-ID":Xn(d),"CL-ASSET-ID":Yn(d),"CL-SESSION-ID":Zn(d),"CL-PLAYBACK-TYPE":b.isLive()?fo:go,"CL-CONTENT-TYPE":Wn(b),"CL-PLUGINS":e.join(" "),"CL-DRM":ao(b),"CL-DRM-CDM":bo(b),"CL-DRM-SEC-LEVEL":eo(b),"CL-DRM-OFFLINE":co(b),"CL-DRM-IP":$n(b)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=
224
- e);e=_.Hh(["https://downloads.castlabs.com/r/register/"]);e.method="GET";e.headers=d;return(new _.Yh).fetch(e).P.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=Vn(a);f=f.data;var h=f.status;if(g.a&&g.a.ilv)f=Promise.resolve();else{switch(h){case 403:case 404:g=7101;var l="castLabs Player license is invalid";if(403===h){h=l;l="";try{l=JSON.parse(decodeURIComponent(f.responseText)).message}catch(m){}f=
225
- h+(": "+l)}else f=l+"!";l=f;break;case 412:g=7103;l="License requires a viewer ID. It should be supplied either via the `viewerId` config or in case of DRMtoday via the `drm.customData.userID` config.";break;default:f=Promise.resolve();break a}a.f.error(Ra+l);f=Promise.reject(new _.L(_.M,7,g,l))}}return f})};
226
- V=function(a,b,c){_.Jj.call(this);var d=this;Qn();this.g=new _.H("clpp.Player");if(!a)throw new _.L(_.M,7,7102);this.A=new _.cg;this.f=this.S=b||_.Pj();this.m=null;void 0===this.f.license&&(this.f.license=Nj,this.g.warn("You are using the embedded demo license!"));if(!this.f.license)throw this.g.error("You provided null or empty string as your license. Please check your license configuration."),new _.L(_.M,7,7101,"No license provided in configuration!");this.h=new Hn(a,c);this.a=this.w=null;this.G=
227
- new _.Yh;this.j=null;this.K=[];this.L={};this.o=null;this.I=!0;this.J=this.D=!1;this.C=this.Bc=null;this.le=!1;this.U=new Jn(this);this.O=!1;this.B=function(f){(f=f.detail)&&f.currentState===_.bn&&(d.off(_.pe,d.B),io(d))};this.on(_.pe,function(){d.getState()===_.Zm&&d.unload()});this.on(_.Yb,this.Wf.bind(this));this.on(_.Xb,this.Wf.bind(this));jo(this,this.f.license);this.h.getMedia()&&(a=this.h.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),this.g.debug("Removed autoplay attribute from video element. Auto play will be handled by configuration."),
228
- void 0===this.f.autoplay&&(this.f.autoplay=!0,this.g.debug("Setting autoplay in configuration since it was specified in the video element"))));a=[];b=_.u(ko);for(c=b.next();!c.done;c=b.next()){c=c.value;try{var e=c.create(this.f);e&&a.push(e)}catch(f){this.g.error("Error while creating player plugin",f)}}lo(this,a);_.Uj.clear()};_.mo=function(a,b){b!==a.a&&(a.a&&(a.a.removeDelegate(a),a.a.destroy()),a.a=b,a.a&&(a.a.init(a.h,a.f),a.a.setNetworkEngine(a.getNetworkEngine()),a.a.addDelegate(a)))};
229
- jo=function(a,b){a.w=new Un(b);a.w.verify()["catch"](function(c){setTimeout(function(){a.g.error(Ra+c);a.trigger(new _.I(_.fd,{detail:new _.L(_.M,7,7101)}));a.destroy()},1E3)})};
230
- io=function(a){if(!a.O){a.O=!0;a.h.getMedia()||a.h.getCastElement();a.w||(a.w=new Un(a.f.license));var b=Object.keys(a.L);ho(a.w,{getConfiguration:a.getConfiguration.bind(a),Ed:a.Ed.bind(a),getDrmInfo:a.getDrmInfo.bind(a),ii:function(){return b},isLive:a.isLive.bind(a)}).then(function(){a.g.debug("License verified remotely")})["catch"](function(c){setTimeout(Sn,1E3,{release:a.release.bind(a),destroy:a.destroy.bind(a),onError:a.onError.bind(a)},c)})}};
231
- lo=function(a,b){a.K=b;for(var c=_.u(a.K),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.L[e]=d)}a.gc("onPlayerCreated")};
232
- no=function(a){var b,c;return _.A(function(d){if(1==d.a){if(a.I)return a.g.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.off(_.pe,a.B);a.A.off(a,_.pe,a.B);a.A.off(document,Ve);a.trigger(new _.I(_.de));a.O=!1;a.h&&a.h.release();return a.j?_.y(d,a.j.dispose(),3):d.H(2)}2!=d.a&&(a.j=null);Yj(function(e){e.release()});if(a.a)return b=null,c=a.a.on(_.pe,function(e){b=e}),d["return"](a.gc(_.Md).then(function(){a.a.removeDelegate(a);return Promise.all([a.a.release(),
233
- a.G.release()])}).then(function(){a.g.debug("Releasing player completed");b&&(a.g.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.pe,c);a.trigger(new _.I(ce))}));a.trigger(new _.I(ce));return d["return"](new Promise(function(e){return e()}))})};
234
- oo=function(a,b,c){return new Promise(function(d,e){var f;if(b){for(var g=f=null,h=0;h<b.length;h++);h=Object.values(_.Uf);for(var l=0;l<b.length;l++)for(var m=0;m<h.length;m++){var n={Hb:h[m],confidence:h[m].canPlay(b[l],c)};if(null===f||f.confidence<n.confidence)f=n,g=l}f&&typeof g===_.k&&0<f.confidence?(_.Wf.debug("Player Factory '"+f.Hb.a()+"' can play",b[g]),f=new Sf(f.Hb,g)):(_.Wf.error("No compatible Player Factory found for sources:",b),f=null)}else f=null;f?(g=f.Hb.create(),d(new Tf(g,f.a))):
235
- (f=new _.I(_.fd,{detail:new _.L(_.M,7,7003)}),a.trigger(f),e(f))})};
236
- _.qo=function(a,b){var c,d,e,f;return _.A(function(g){switch(g.a){case 1:if(a.D)throw Error("Player is already destroyed.");if(!a.h)throw Error("No surface associated with this player!");return _.y(g,a.release(),2);case 2:a.o=_.fn(b);c=_.Sj(b);a.f=_.Rj(a.S,c?b:{},{source:a.o});if(0===a.o.length)throw Error("Invalid request to load: could not find source to load");a.I=!1;e=0;if(!a.J&&2===a.canPlay(a.o[0],a.f)){g.H(3);break}return _.y(g,oo(a,a.o,a.f),4);case 4:f=g.f,d=f.a,e=f.f,a.J=!1;case 3:d?_.mo(a,
237
- d):a.a.addDelegate(a);po(a);a.a&&a.a.setCdnErrorCallback(a.C);a.j=wn(a,a.f).create(a);a.setSourceIndex(e);if(a.f.pauseWhenInBackground)a.A.on(document,Ve,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});Yj(function(h){h.Wb()});return _.y(g,a.gc("onContentWillLoad",a.f.source[e]),0)}})};
238
- _.ro=function(a){return _.A(function(b){a.h.getMedia()||a.h.getCastElement();a.A.on(a,_.pe,a.B);a.trigger(new _.I(vd));return _.y(b,Promise.all([a.a.load(a.f),a.j.load()]),0)})};so=function(a){var b=_.ai(a.f.preferredTextLanguage).filter(function(d){return d}),c=a.getTrackManager().fa();b.some(function(d){var e=_.Fi(d);return(d=c.find(function(f){f=_.Fi(f.language||"");return _.Gi(f,e)}))?(a.getTrackManager().Ba(d),!0):!1})};
239
- _.to=function(a){var b,c,d,e;return _.A(function(f){if(1==f.a){b=[];if(a.f.remoteTextTracks)for(c=_.u(a.f.remoteTextTracks),d=c.next();!d.done;d=c.next())e=d.value,b.push(a.getTrackManager().addTextTrack(e));return _.y(f,Promise.all(b),2)}return 3!=f.a?(so(a),Yj(function(){}),_.y(f,a.gc("onContentLoaded"),3)):a.f.autoplay?_.y(f,a.play(),0):f.H(0)})};po=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.A(function(c){if(!a.Bc||!a.le)return c.H(0);a.le=!1;return _.y(c,a.Bc(b),0)})})};
240
- _.uo=function(a){a&&(0<=ko.indexOf(a)||ko.push(a))};W=function(){};vo=function(){};wo=function(){};xo=function(){};vn=function(){};yo=function(){};_.zo=function(){};Ao=function(){this.a=null};Bo=function(){};Co=function(){this.size=0;this.a=void 0;this.f=new _.H("clpp.drm.eme.MediaKeyStatusMap")};Do=function(a,b){a.size=void 0===b?0:1;a.f.debug("Setting key status to",b);a.a=b};Eo=function(){};Fo=function(){};Go=function(){this.a=this.f=null};
241
- Ho=function(a,b){this.keySystem=a;if(a.startsWith(_.Nc))for(var c=_.u(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.fe)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.Pd,distinctiveIdentifier:_.Pd,initDataTypes:e.initDataTypes,sessionTypes:[ze],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=_.u(e.audioCapabilities),l=h.next();!l.done;l=h.next())l=l.value,l.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&
242
- (d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.u(e.videoCapabilities),l=e.next();!l.done;l=e.next())h=l.value,h.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,h.contentType.split(";")[0])&&(d.videoCapabilities.push(h),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,_.Re));d=g?d:null}if(d){this.a=d;return}}c=Error(zb);c.name=cb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
243
- Io=function(a){this.g=null;this.h=new WebKitMediaKeys(a);this.f=new _.cg;this.j=0;this.a=new _.H(Hc);this.a.info("Created Media Keys for "+a)};
244
- Jo=function(a,b){a.g=b;_.fg(a.f);if(!b)return Promise.resolve();a.f.on(b,cd,function(c){_.Qf("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);"MediaEncryptedEvent"in window&&c instanceof MediaEncryptedEvent&&(a.a.info("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.f.on(b,cf,function(c){a.a.debug("Handle webkitNeedKey event");c=_.N(c.initData);if(_.lh(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
245
- c=qh(c.subarray(4),!0);c=_.sh(c);var d=new Event(cd);d.initDataType="skd";d.initData=mh(c);a.g.dispatchEvent(d)});Nm(b,HTMLMediaElement.HAVE_METADATA,a.f,function(){return b.webkitSetMediaKeys(a.h)});return Promise.resolve()};Ko=function(a,b){_.Jj.call(this);this.a=null;this.o=a;this.g=this.h=null;this.j=new _.cg;this.sessionId=b;this.expiration=NaN;this.closed=new _.Mh;this.m=!1;this.keyStatuses=new Co;this.f=new _.H(Hc)};Lo=function(a,b){Do(a.keyStatuses,b);a.dispatchEvent(new _.I(nd))};Mo=function(){};
246
- No=function(){this.f=this.a=null;this.g="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.g="webkit")};
247
- Oo=function(a,b,c,d){this.g=a;this.a=this.keySystem=c;a=!1;c===_.Qd&&(this.a=Ze,a=!1);var e=!1;d=_.u(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=[],h=[],l=!1;if(f.audioCapabilities)for(var m=_.u(f.audioCapabilities),n=m.next();!n.done;n=m.next())n=n.value,n.contentType&&(l=!0,b.canPlayType(n.contentType.split(";")[0],this.a)&&(g.push(n),e=!0));if(f.videoCapabilities)for(g=_.u(f.videoCapabilities),n=g.next();!n.done;n=g.next())m=n.value,m.contentType&&(l=!0,b.canPlayType(m.contentType,
248
- this.a)&&(h.push(m),e=!0));l||(e=b.canPlayType(_.Re,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.fe||a||(e=!1);if(e){this.f=f;return}}b=zb;if(c===_.Qd||c===_.Pc)b="None of the requested configurations were supported.";c=Error(b);c.name=cb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};Po=function(a,b){this.g=a;this.m=b;this.a=null;this.f=new _.cg;this.h=[];this.j=new Map};
249
- So=function(a,b){a.a=b;_.fg(a.f);b&&(a.f.on(b,a.g+"needkey",function(c){var d=new Event(cd);d.initDataType=_.zc;d.initData=mh(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.g+"keymessage",function(c){var d=Qo(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.I(yd,{messageType:e?qd:pd,message:c.message});_.Qf("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.Rf("Session not found",c.sessionId)}),a.f.on(b,a.g+"keyadded",function(c){if(c=
250
- Qo(a,c.sessionId))_.Qf("WebkitEmeManager.MediaKeySession.ready"),Ro(c,"usable"),c.a&&c.a.resolve(),c.a=null}),a.f.on(b,a.g+"keyerror",function(c){var d=Qo(a,c.sessionId);if(d){var e=Error("EME v0.1b key error"),f=c.errorCode;f.systemCode=c.systemCode;e.errorCode=f;!c.sessionId&&d.f?(45===c.systemCode&&(e.message="Unsupported session type."),d.f.reject(e),d.f=null):c.sessionId&&d.a?(d.a.reject(e),d.a=null):(e=c.systemCode,c.errorCode.code===MediaKeyError.MEDIA_KEYERR_OUTPUT?Ro(d,_.Rd):1===e?Ro(d,"expired"):
251
- Ro(d,_.md))}}))};Qo=function(a,b){var c=a.j.get(b);return c?c:(c=a.h.shift())?(c.sessionId=b,a.j.set(b,c),c):null};To=function(a,b,c,d){_.Jj.call(this);this.o=a;this.h=b;this.m=!1;this.a=this.f=null;this.g=c;this.j=d;this.sessionId="";this.expiration=NaN;this.closed=new _.Mh;this.keyStatuses=new Co};
252
- Vo=function(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if(a.j===_.Ud)if(c)var d=_.N(_.sh("LOAD_SESSION|"+c));else{var e=_.sh("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.N(b),e.byteLength);d=f}else d=_.N(b)}catch(h){return Promise.reject(h)}a.f=new _.Mh;var g=Uo(a,"generateKeyRequest");try{a.h[g](a.g,d)}catch(h){if(h.name!==Pa)return a.f=null,Promise.reject(h);(new _.Li(function(){try{a.h[g](a.g,d)}catch(l){a.f.reject(l),
253
- a.f=null}})).Z(.01)}return a.f};Wo=function(a,b,c){if(a.a)a.a.then(function(){return Wo(a,b,c)})["catch"](function(){return Wo(a,b,c)});else{a.a=b;if(a.g===Ze){var d=_.oh(c);var e=JSON.parse(d);"oct"!==e.keys[0].kty&&(a.a.reject(Error("Response is not a valid JSON Web Key Set.")),a.a=null);d=_.ck(e.keys[0].k);e=_.ck(e.keys[0].kid)}else d=_.N(c),e=null;var f=Uo(a,"addKey");try{a.h[f](a.g,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};Ro=function(a,b){Do(a.keyStatuses,b);a.dispatchEvent(new _.I(nd))};
254
- Uo=function(a,b){return a.o?a.o+b.charAt(0).toUpperCase()+b.slice(1):b};Xo=function(){};
255
- Yo=function(a,b,c,d,e){_.rk.call(this,Na);this.m=a;this.j=b;this.h=c;this.f=d;this.o=e;this.a=new _.H(Gc);_.yh(this.m)?this.a.warn(_.Cb):this.Ka(_.Pc,{licenseUrl:this.m,videoRobustness:[_.nb,void 0],audioRobustness:[_.mb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.hd.bind(this)}});_.yh(this.j)?this.a.warn(_.db):this.Ka(_.Oc,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.hd.bind(this)}});
256
- _.yh(this.h)?this.a.warn(_.Ja):_.yh(this.f)?this.a.warn(_.Ia):this.Ka(_.Nc,{licenseUrl:this.h,certificateUrl:this.f,modifiers:{licenseRequest:this.$f.bind(this),licenseResponse:this.ag.bind(this),certificateRequest:this.hd.bind(this),extractContentId:this.Ef.bind(this)}})};Zo=function(){this.l=null};$o=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.hd)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
257
- ap=function(a){a=a.target;if(a.webkitPresentationMode===Vd){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement===a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)};bp=function(){return this.webkitSupportsPresentationMode(Vd)?(this.webkitSetPresentationMode(Vd),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
258
- cp=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};dp=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};ep=function(a,b,c){return new window.TextTrackCue(a,b,c)};
259
- fp=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};hp=function(a,b,c){if("input"===a)switch(this.type){case "range":a=Cc}gp.call(this,a,b,c)};jp=function(){this.a=ip()};kp=function(a){return ip()-a.a};lp=function(a){var b=new jp;b.a=a.a;return b};ip=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};_.mp=function(a){var b=[];a=_.u(a);for(var c=a.next();!c.done;c=a.next()){c=_.u(c.value.variants);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};
260
- np=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.g=b;this.f=0};op=function(a,b){var c=a.f+b.byteLength;if(c>a.a.byteLength){var d=a.a;a.a=new Uint8Array(Math.max(Math.ceil(a.a.buffer.byteLength*a.g),c));a.a.set(d)}a.a.set(b,a.f);a.f+=b.byteLength};_.pp=function(a,b,c){this.f=a;this.h=b;this.g=c||this.f.getMedia();this.a=null};_.rp=function(){this.a=new Blob([qp],{type:_.Re})};
261
- _.tp=function(a,b,c,d){var e,f;return _.A(function(g){if(1==g.a)return _.xf(g,2),_.y(g,sp(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.zf(g);f.a(_.M);throw f;})};
262
- sp=function(a,b,c,d){var e,f,g,h;return _.A(function(l){if(1==l.a){if(d){if(e=_.up[d.toLowerCase()])return l["return"](e);_.F("Could not determine manifest type using MIME type ",d)}if(f=_.vp(a)){if(g=_.wp[f])return l["return"](g);_.F("Could not determine manifest type for extension ",f)}else _.F("Could not find extension for ",a);return d?l.H(2):_.y(l,xp(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(h=_.up[d])return l["return"](h);_.F("Could not determine manifest type using MIME type",d)}throw new _.L(_.M,4,
263
- 4E3,{url:a});})};xp=function(a,b,c){var d,e,f;return _.A(function(g){if(1==g.a)return d=_.Hh(a),Fh(d,c),d.type=1,d.method="HEAD",_.y(g,b.fetch(d).P,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.vp=function(a){a=(new _.Eg(a)).na.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()};yp=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.g=new jp};
264
- Ap=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(zp(a,d),Kh(c,d.byteLength,kp(a.g)),a.g.a=ip());return e?(e=a.a.buffer,a.a.byteLength!==a.f&&(e=e.slice(0,a.f)),Promise.resolve(e)):Promise.resolve().then(function(){return Ap(a,b,c)})})};zp=function(a,b){var c=a.f+b.byteLength;if(a.a.byteLength<c){for(var d=a.a.byteLength;d<c;)d*=2;c=new Uint8Array(d);c.set(a.a);a.a=c}a.a.set(b,a.f);a.f+=b.byteLength};
265
- Wh=function(a){var b=a.uris[a.uriIndex],c=new Bp,d=new jp,e=lp(d),f=0,g=new _.Mh;c.open(a.method,b,!0);c.responseType="arraybuffer";c.timeout=a.timeout;c.withCredentials=a.allowCrossSiteCredentials;var h=!1,l=!1;c.onreadystatechange=function(n){n=n.target;n.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!h&&(n=n.getResponseHeader(ua),Jh(a,n),h=!0)};c.onload=function(n){n=n.target;var p=(n.getAllResponseHeaders()||"").trim().split("\r\n"),q={};p=_.u(p);for(var r=p.next();!r.done;r=p.next())r=r.value.split(": "),
266
- q[r[0].toLowerCase()]=r.slice(1).join(": ");try{var w=kp(e);l||Kh(a,n.response?n.response.length:0,w);var x=_.Ih(q,n.response,n.status,b,n.responseURL,a,w);a.rateLimitBps?Lh(a.rateLimitBps,kp(e),a.bytesLoaded).then(function(){g.resolve(x)}):g.resolve(x)}catch(C){g.reject(C)}};c.onerror=function(n){n=n.target;if(0>=n.status)g.reject(new _.L(1,1,1002,{url:b,request:a,status:n.status}));else{var p=n.getAllResponseHeaders(),q={};if(p){p=_.u(p.trim().split("\r\n"));for(var r=p.next();!r.done;r=p.next())r=
267
- r.value.split(": "),q[r[0].toLowerCase()]=r.slice(1).join(": ")}n=_.Ih(q,n.response,n.status,b,n.responseURL,a,kp(e));g.resolve(n)}};c.ontimeout=function(){g.reject(new _.L(1,1,1003,{url:b,request:a}))};c.onprogress=function(n){var p=kp(d);d.a=ip();if(100<p||n.lengthComputable&&n.loaded===n.total)Kh(a,n.loaded-f,p),f=n.loaded,l=!0};for(var m in a.headers)c.setRequestHeader(m.toLowerCase(),a.headers[m]);c.send(a.body);return{P:g,request:a,abort:function(){c.abort();g.reject(new _.L(1,1,7001,{url:b,
268
- request:a}));return Promise.resolve()}}};Cp=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.h=new np(a);this.length=a;this.w=b;this.f=this.a=this.g=0;this.j=null;this.m=-1;this.o=new jp};
269
- Fp=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,kp(a.o)),a.o.a=ip());if(f)return f=Dp(a),(f=c(!0,f))?f.then(function(){return a.h.a.buffer}):Promise.resolve(a.h.a.buffer);var g=Promise.resolve();if(null!=e){op(a.h,e);a.a=a.g;a.f=a.h.f;a.j=new DataView(a.h.a.buffer,0,a.h.f);e=Ep(a);for(f=[];e;)f.push(e),e=Ep(a);if(!a.w)f.forEach(function(m){g=g.then(function(){return c(!1,m)})});else if(0<f.length){e=f[0];if(1<f.length){e=f[0];var h=f[f.length-1],
270
- l=h.end-e.start;e={start:e.start,end:h.end,length:l,data:new DataView(a.h.a.buffer,e.start,l),count:f.length}}(f=c(!1,e))&&(g=f)}}return g.then(function(){return Fp(a,b,c,d)})})};Ep=function(a){if(0<=a.m&&a.f<a.m)return null;for(var b=Gp(a);null!==b;){if(b.name===_.wd){var c={start:a.g,end:b.end,length:b.end-a.g,data:new DataView(a.h.a.buffer,a.g,b.end-a.g),count:1};a.g=b.end;return c}b=Gp(a)}return null};
271
- Gp=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=Hp(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=Hp(a);d=String.fromCharCode(d>>24&255,d>>16&255,d>>8&255,d&255);switch(c){case 0:c=a.f-b;break;case 1:if(a.a+8>=a.f)return a.a=a.f,null;try{var e=a.j.getUint32(a.a,!1);var f=a.j.getUint32(a.a+4,!1)}catch(g){throw new _.L(_.M,3,3E3);}if(2097151<e)throw new _.L(_.M,3,3E3);a.a+=8;c=e*Math.pow(2,32)+f}c=b+c;a.m=c;return a.f>=c?(a.a=c,{name:d,start:b,end:c}):null};
272
- Hp=function(a){var b=a.j.getUint32(a.a,!1);a.a+=4;return b};Dp=function(a){var b=null;a.g!==a.f&&(b={start:a.g,end:a.f,length:a.f-a.g,data:new DataView(a.h.a.buffer,a.g,a.f-a.g),count:-1});return b};Jp=function(a){_.Nh.call(this,new _.Mh,function(){return Promise.resolve()});this.A=a;this.g=null;this.o=this.P;this.f=-1;this.h=this.j=this.m=null;Ip(this)};Kp=function(a,b,c){a.m=setTimeout(b,c)};
273
- Ip=function(a){a.g=a.A.then(function(e){a.h=e.request;e.request.uriIndex=e.request.currentAttempt%e.request.uris.length;if(0<e.request.currentAttempt){-1===a.f&&(a.f=Lp(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*Lp(e.request.fuzzFactor,.5));a.f*=Lp(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.j=h;Kp(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.L(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
274
- return e.plugin(e.request)});var b=0,c=0,d=0;return a.g.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.P}).then(function(e){a.o.resolve(e)})["catch"](function(e){if(e instanceof _.L){var f=b<d,g=7001!==e.code,h=b<c;if((1===e.severity||f)&&g&&h)return Ip(a);g&&e.a(_.M);a.o.reject(e)}else a.o.reject(e)})};Lp=function(a,b){return null===a||void 0===a?b:a};
275
- Xh=function(a){var b=new Mp,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new Np,e={Sc:!1,ug:!1};b={P:Op(a.uris[a.uriIndex],a,{body:a.body||void 0,headers:b,method:a.method,signal:d.signal,credentials:a.allowCrossSiteCredentials?"include":void 0},e),request:a,abort:function(){e.Sc||(e.Sc=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.ug=!0;d.abort()},a);b.P=b.P["finally"](function(){window.clearTimeout(f)})}return b};
276
- Op=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,r,w,x,C,D,E;return _.A(function(G){switch(G.a){case 1:return e=Pp,h=new jp,l=lp(h),_.xf(G,2),_.y(G,e(a,c),4);case 4:f=G.f;m=f.headers.get(ua);Jh(b,m);n=m?parseInt(m,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return r=f.body.getReader(),w=new Cp(n,!b.disableMergedFragments),x=function(K,O){if(d.Sc)return null;O&&O.data&&(Kh(b,O.data.byteLength,kp(h)),h.a=ip());return b.onFragment&&O?b.rateLimitBps?Lh(b.rateLimitBps,kp(l),b.bytesLoaded).then(function(){return b.onFragment(O)}):
277
- b.onFragment(O):null},_.y(G,Fp(w,r,x,b.onProgress),10);p=f.body.getReader();q=new yp(n);return _.y(G,Ap(q,p,b),7);case 7:g=G.f;if(!b.rateLimitBps){G.H(6);break}return _.y(G,Lh(b.rateLimitBps,kp(l),g.byteLength),6);case 10:g=G.f;case 6:_.yf(G,3);break;case 2:C=_.zf(G);if(d.Sc)throw new _.L(1,1,7001,{url:a,request:b});if(d.ug)throw new _.L(1,1,1003,{url:a,request:b});_.Rf("Error while fetching data:",C);throw new _.L(1,1,1002,{url:a,error:C,request:b,status:-1},C);case 3:D={};E=f.headers;E.forEach(function(K,
278
- O){D[O.trim()]=K});if(d.Sc)throw new _.L(1,1,7001,{url:a,request:b});return G["return"](_.Ih(D,g,f.status,a,f.url,b,kp(l)))}})};Sh=function(a){try{var b=a.uris[a.uriIndex],c=_.Qp(b);return{P:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{P:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
279
- _.Qp=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Rf("Bad data URI, failed to parse scheme"),new _.L(_.M,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.Rf("Bad data URI, failed to extract encoding and MIME type"),new _.L(_.M,1,1004,{uri: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());return{data:d?_.ck(a).buffer:_.sh(a).buffer,contentType:c}};_.Sp=function(a){delete _.Rp[a]};
280
- _.Tp=function(a){a=a.getConfiguration();a=_.J.Ma(a.textStyle||a.textstyle||{});this.J=typeof a.backgroundColor===_.te?a.backgroundColor:null;this.U=typeof a.windowColor===_.te?a.windowColor:null;this.O=typeof a.fontColor===_.te?a.fontColor:null;this.S=typeof a.fontFamily===_.te?a.fontFamily:null;this.G=typeof a.fontSize===_.te?a.fontSize:null;this.A=typeof a.fontSizePercent===_.k?a.fontSizePercent:null;this.D=typeof a.edgeColor===_.te?a.edgeColor:"rgba(0, 0, 0, 1)";this.m=null;typeof a.edgeType===
281
- _.te&&(this.m=a.edgeType)};_.Yp=function(a){if(!a.m)return null;var b=a.D;switch(a.m){case Up:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case Vp:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case Wp:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case Xp:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.Hd}};Zp=function(a){this.g=a;this.a=null;this.f=new _.H("clpp.text.Mp4TextParser")};
282
- _.aq=function(a){_.Tp.call(this,a);this.j=a.getSurface().getMedia();this.f="clpp-video-"+$p++;this.g=document.createElement(_.ve);this.h=this.o=!1;_.yn(this.j,this.f);document.head.appendChild(this.g);this.ob()};bq=function(){};_.cq=function(){};lf=typeof Object.create==_.hd?Object.create:function(a){function b(){}b.prototype=a;return new b};
283
- if(typeof Object.setPrototypeOf==_.hd)dq=Object.setPrototypeOf;else{var eq;a:{var fq={zg:!0},gq={};try{gq.__proto__=fq;eq=gq.zg;break a}catch(a){}eq=!1}dq=eq?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
284
- var mf=dq,qf=typeof Object.defineProperties==_.hd?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},of="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;rf.prototype.toString=function(){return this.a};var pf=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new rf("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
285
- uf.prototype.w=function(a){this.f=a};uf.prototype["return"]=function(a){this.g={"return":a};this.a=this.j};uf.prototype.H=function(a){this.a=a};
286
- Gf("Promise",function(a){function b(g){this.f=0;this.j=void 0;this.a=[];var h=this.g();try{g(h.resolve,h.reject)}catch(l){h.reject(l)}}function c(){this.a=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.f=function(g){if(null==this.a){this.a=[];var h=this;this.g(function(){h.j()})}this.a.push(g)};var e=of.setTimeout;c.prototype.g=function(g){e(g,0)};c.prototype.j=function(){for(;this.a&&this.a.length;){var g=this.a;this.a=[];for(var h=0;h<g.length;++h){var l=
287
- g[h];g[h]=null;try{l()}catch(m){this.h(m)}}}this.a=null};c.prototype.h=function(g){this.g(function(){throw g;})};b.prototype.g=function(){function g(m){return function(n){l||(l=!0,m.call(h,n))}}var h=this,l=!1;return{resolve:g(this.B),reject:g(this.h)}};b.prototype.B=function(g){if(g===this)this.h(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.C(g);else{a:switch(typeof g){case _.Id:var h=null!=g;break a;case _.hd:h=!0;break a;default:h=!1}h?this.A(g):this.m(g)}};
288
- b.prototype.A=function(g){var h=void 0;try{h=g.then}catch(l){this.h(l);return}typeof h==_.hd?this.D(h,g):this.m(g)};b.prototype.h=function(g){this.o(2,g)};b.prototype.m=function(g){this.o(1,g)};b.prototype.o=function(g,h){if(0!=this.f)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.f);this.f=g;this.j=h;this.w()};b.prototype.w=function(){if(null!=this.a){for(var g=0;g<this.a.length;++g)f.f(this.a[g]);this.a=null}};var f=new c;b.prototype.C=function(g){var h=this.g();
289
- g.rd(h.resolve,h.reject)};b.prototype.D=function(g,h){var l=this.g();try{g.call(h,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,h){function l(q,r){return typeof q==_.hd?function(w){try{m(q(w))}catch(x){n(x)}}:r}var m,n,p=new b(function(q,r){m=q;n=r});this.rd(l(g,m),l(h,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.rd=function(g,h){function l(){switch(m.f){case 1:g(m.j);break;case 2:h(m.j);break;default:throw Error("Unexpected state: "+
290
- m.f);}}var m=this;null==this.a?f.f(l):this.a.push(l)};b.resolve=d;b.reject=function(g){return new b(function(h,l){l(g)})};b.race=function(g){return new b(function(h,l){for(var m=_.u(g),n=m.next();!n.done;n=m.next())d(n.value).rd(h,l)})};b.all=function(g){var h=_.u(g),l=h.next();return l.done?d([]):new b(function(m,n){function p(w){return function(x){q[w]=x;r--;0==r&&m(q)}}var q=[],r=0;do q.push(void 0),r++,d(l.value).rd(p(q.length-1),n),l=h.next();while(!l.done)})};return b});var If=this||self;
291
- If.a=!0;_.J={yg:20,Ma:function(a){var b=_.J.R,c=_.J.Of,d=_.J.Va;return b(a)||c(a)?a:d(a)}};_.B("clpp.utils.obj.cloneItem",_.J.Ma);_.J.Va=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];c={};for(var d=0;d<b.length;d++)null!=b[d]&&(c=_.J.Rf(c,{merging:b[d]},1));return c.merging||null};_.B("clpp.utils.obj.merge",_.J.Va);
292
- _.J.Rf=function(a,b,c){var d=_.J.R,e=_.J.Of,f=_.J.Rf,g=_.J.jb,h=_.J.xi,l=_.J.si,m=_.J.pi,n=_.J.Gc;c+=1;if(d(a)||!n(a))a={};for(var p in b)n=b[p],e(n)||d(n)||g(n)||m(n)?a[p]=n:h(n)?a[p]=n.subarray(0):n instanceof Array?a[p]=f([],n,c):!d(n)&&l(n)&&c<_.J.yg&&(a[p]=f(a[p],n,c));return a};_.J.Of=function(a){a=typeof a;return a===_.te||a===_.k||a===_.rc};_.J.pi=function(a){return a instanceof Element};_.J.R=function(a){return null===a||"undefined"===typeof a};_.J.Gc=function(a){return typeof a===_.Id};
293
- _.J.jb=function(a){return typeof a===_.hd};_.J.Y=function(a){return typeof a===_.te};_.J.pa=function(a){return typeof a===_.k};_.J.Mf=function(a){return typeof a===_.rc};_.J.xi=function(a){var b=_.J.Gc,c=_.J.jb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};_.J.si=function(a){var b=_.J.Gc,c=_.J.R;return!c(a)&&b(a)&&a.constructor===Object};
294
- _.J.va=function(a,b,c,d){if(a===b||null===a&&null===b||void 0===a&&void 0===b)return!0;if(null===a&&null!==b||null!==a&&null===b||void 0!==a&&void 0===b||void 0===a&&void 0!==b||!_.J.Gc(a)||!_.J.Gc(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var h=e[g];if(_.J.R(d)||0>d.indexOf(h))if(f[h]=!0,a[h]!==b[h])return!1}if(_.J.R(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.J.R(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
295
- _.J.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.J.ri=function(a,b,c){return a>=b&&a<=c};_.J.gf=function(a){for(var b=new Map,c=_.u(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.J.hf=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};var Mf={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.B("clpp.log.Level",Mf);var Kf=3,Jf={},hq=[];_.B("clpp.log.getLoggers",function(){return _.J.Ma(Jf)});_.B("clpp.log.addInterceptor",function(a){a&&hq.push(a)});_.B("clpp.log.removeInterceptor",function(a){a&&(a=hq.indexOf(a),0<=a&&hq.splice(a,1))});_.B("clpp.log.getTagLevel",Lf);_.B("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Jf[a]});_.B("clpp.log.setTagLevel",function(a,b){a&&(_.J.Y(b)&&(b=Nf(b)),Jf[a]=b)});
296
- _.B("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.J.Y(a)&&(a=Nf(a));Kf=a});_.B("clpp.log.getLogLevel",function(){return Kf});_.t=_.H.prototype;
297
- _.t.log=function(a,b){if(window.console){if(1<arguments.length){var c=arguments[0];Array.prototype.shift.call(arguments)}else c=3;var d=Lf(this.a);if(0<=d){if(d<c)return}else if(Kf<c)return;this.a&&Array.prototype.unshift.call(arguments,"["+this.a+"]");d=new Date;d.toISOString&&(d=d.toISOString().substring(11).replace("Z",""),Array.prototype.unshift.call(arguments,d));4===c?console.log.apply(console,arguments):3===c?console.info.apply(console,arguments):2===c?console.warn.apply(console,arguments):
298
- 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.u(hq);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.t.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.t.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.t.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
299
- _.t.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.t.Th=function(a){return a?this.a?new _.H(this.a+"."+a):new _.H(a):this};_.B("clpp.log.Logger",_.H);_.H.prototype.createChild=_.H.prototype.Th;_.H.prototype.error=_.H.prototype.error;_.H.prototype.warn=_.H.prototype.warn;_.H.prototype.debug=_.H.prototype.debug;_.H.prototype.info=_.H.prototype.info;_.H.prototype.log=_.H.prototype.log;var Of=new _.H("clpp");_.B("clpp.log.info",_.Pf);
300
- _.B("clpp.log.debug",_.Qf);_.B("clpp.log.warn",_.F);_.B("clpp.log.error",_.Rf);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.Wf=new _.H("clpp.players");_.Uf={};_.$f.prototype.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.$f.prototype.get=function(a){return(a=this.a[a])?a.slice():[]};_.$f.prototype.remove=function(a,b){var c=this.a[a];if(!c)return!1;for(var d=!1,e=0;e<c.length;++e)c[e]==b&&(c.splice(e,1),--e,d=!0);return d};_.$f.prototype.clear=function(){this.a={}};ag.prototype.Sb=function(a){try{this.xc.handleEvent?this.xc.handleEvent(a):this.xc.call(this.a,a)}catch(b){_.Rf("clpp","Uncaught exception in event handler for event '"+this.f+"'",b,b?b.message:null,b?b.stack:null)}};_.I.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.I.prototype.stopImmediatePropagation=function(){this.f=!0};_.I.prototype.stopPropagation=function(){};_.t=bg.prototype;
301
- _.t.trigger=function(a){var b=this.a.get(a.type);if(b)for(var c=0;c<b.length&&(a.target=this.f,a.currentTarget=this.f,b[c].Sb(a),b[c].Aj&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.t.on=function(a,b,c){this.a.push(a,new ag(a,b,c||this.f));return b};_.t.one=function(a,b,c){this.a.push(a,new ag(a,b,c||this.f,!0));return b};_.t.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].xc===b&&(d=this.a.remove(a,c[e])||d);return d};_.t.clear=function(){this.a.clear()};_.cg.prototype.release=function(){_.fg(this)};_.cg.prototype.on=function(a,b,c,d){a=new gg(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.cg.prototype.one=function(a,b,c){function d(f){e.off(a,b,d);return c(f)}var e=this;this.on(a,b,d)};_.cg.prototype.off=function(a,b,c){for(var d=this.a.get(b)||[],e=0;e<d.length;++e){var f=d[e];f.target!=a||c!=f.a&&c||(eg(f),this.a.remove(b,f))}};hg.prototype.release=function(){this.f.release();this.g=[];this.a=null};hg.prototype.destroy=function(){var a=this;return _.A(function(b){a.release();a.j=null;a.h=null;_.z(b)})};hg.prototype.getTimelineCues=function(){return this.g};_.B("clpp.text.Cue",_.xg);_.xg.positionAlign={LEFT:_.rd,RIGHT:_.sd,CENTER:_.Ac,AUTO:"auto"};_.rg=_.Ae;_.xg.payloadType={TEXT:_.rg,VTT_XML:_.We,TTML_XML:_.Fe};_.sg=_.Ac;_.iq={LEFT:_.od,RIGHT:_.he,CENTER:_.sg,START:_.od,END:_.he};_.xg.textAlign=_.iq;var wg="ltr";_.xg.direction={HORIZONTAL_LEFT_TO_RIGHT:wg,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.tg="horizontal-tb";_.xg.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.tg,VERTICAL_LEFT_TO_RIGHT:_.Ne,VERTICAL_RIGHT_TO_LEFT:_.Oe};_.ug=0;
302
- _.xg.lineInterpretation={LINE_NUMBER:_.ug,PERCENTAGE:1};_.vg=_.oe;_.jq={CENTER:_.Ac,START:_.vg,END:_.dd};_.xg.lineAlign=_.jq;_.B("clpp.text.CueRegion",_.Ag);_.yg=1;_.Ag.units={PX:0,PERCENTAGE:_.yg,LINES:2};var zg="";_.Ag.scrollMode={NONE:zg,UP:"up"};_.Ag.displayAlign={BEFORE:"flex-end",CENTER:_.Ac,AFTER:"flex-start"};_.Ag.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Lc,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};Bg.prototype.destroy=function(){this.a.release();this.h=!1;this.j=this.a=this.g=this.f=null;return Promise.resolve()};Bg.prototype.start=function(a){var b=this;this.h?this.m.warn("Already started. Ignoring request..."):(this.h=!0,this.g=a,this.f=this.g.textTracks,this.a.on(this.f,_.Vb,function(c){return Cg(b,c)}),this.a.on(this.f,Cc,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.ke&&(e.mode=_.jd)}}))};
303
- Bg.prototype.o=function(a){var b=new _.xg(a.startTime,a.endTime,a.text,_.We);if(_.J.Y(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Ne;break;case "rl":b.writingMode=_.Oe}_.J.pa(a.size)&&(b.size=a.size);if(_.J.Y(a.align))switch(a.align){case _.od:case _.oe:b.textAlign=_.od;break;case _.Ac:b.textAlign=_.sg;break;case _.he:case _.dd:b.textAlign=_.he}_.J.pa(a.position)&&(b.position=a.position);if(_.J.Y(a.positionAlign))switch(a.positionAlign){case _.rd:b.positionAlign=_.rd;break;case _.Ac:b.positionAlign=
304
- _.Ac;break;case _.sd:b.positionAlign=_.sd}_.J.pa(a.line)&&(b.line=a.line);if(_.J.Y(a.lineAlign))switch(a.lineAlign){case _.oe:b.lineAlign=_.vg;break;case _.Ac:b.lineAlign=_.Ac;break;case _.dd:b.lineAlign=_.dd}_.J.Mf(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.ug:1);return b};var Jg=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.t=_.Eg.prototype;_.t.Ya="";_.t.lc="";_.t.Na="";_.t.Jc=null;_.t.na="";_.t.Zb="";_.t.toString=function(){var a=[],b=this.Ya;b&&a.push(Mg(b,kq,!0),":");if(b=this.Na){a.push("//");var c=this.lc;c&&a.push(Mg(c,kq,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Jc;null!=b&&a.push(":",String(b))}if(b=this.na)this.Na&&"/"!=b.charAt(0)&&a.push("/"),a.push(Mg(b,"/"==b.charAt(0)?lq:mq,!0));(b=this.a.toString())&&a.push("?",b);(b=this.Zb)&&a.push("#",Mg(b,nq));return a.join("")};
305
- _.t.resolve=function(a){var b=new _.Eg(this);"data"===b.Ya&&(b=new _.Eg);var c=!!a.Ya;c?Fg(b,a.Ya):c=!!a.lc;c?b.lc=a.lc:c=!!a.Na;c?b.Na=a.Na:c=null!=a.Jc;var d=a.na;if(c)Gg(b,a.Jc);else if(c=!!a.na){if("/"!=d.charAt(0))if(this.Na&&!this.na)d="/"+d;else{var e=b.na.lastIndexOf("/");-1!=e&&(d=b.na.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):
306
- ".."==h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.na=d:c=""!==a.a.toString();c?_.Hg(b,Ig(a.a)):c=!!a.Zb;c&&(b.Zb=a.Zb);return b};var kq=/[#\/\?@]/g,mq=/[#\?:]/g,lq=/[#\?]/g,Ng=/[#\?@]/g,nq=/#/g;Lg.prototype.a=null;Lg.prototype.g=null;Lg.prototype.add=function(a,b){_.Pg(this);this.f=null;var c=this.a.hasOwnProperty(a)&&this.a[a];c||(this.a[a]=c=[]);c.push(b);null!==this.g&&this.g++;return this};
307
- Lg.prototype.toString=function(){if(this.f)return this.f;if(!this.a)return"";var a=[],b;for(b in this.a)for(var c=encodeURIComponent(b),d=this.a[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="\x3d"+encodeURIComponent(d[e]));a.push(f)}return this.f=a.join("\x26")};_.nn={VIDEO:_.Pe,AUDIO:_.ic,TEXT:_.Ae,Sj:_.$b,IMAGE:_.kd,ak:_.we};_.oq=1/15;var Qg={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]};var Sg={text:{mp4:_.cc,m4s:_.cc,m4i:_.cc,cmft:_.cc,vtt:_.Be,ttml:_.fc},video:{mp4:_.Re,m4s:_.Re,m4i:_.Re,m4v:_.Re,cmfv:_.Re,ts:_.Qe},audio:{mp4:_.nc,m4s:_.nc,m4i:_.nc,m4a:_.nc,cmfa:_.nc,ts:_.Qe,aac:_.jc,ec3:_.lc,ac3:_.kc},image:{jpg:_.ld,jpeg:_.ld,png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.v(_.L,Error);_.L.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=Ug(this.severity,this.category,this.code,this.data))};_.L.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.B("clpp.Error",_.L);_.M=2;_.L.Severity={RECOVERABLE:1,FATAL:_.M};_.L.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
166
+ _.hm=function(a,b){try{a.a.debug("Attempting to load an offline session",b);var c=a.J.createSession(_.Vd)}catch(f){var d=new _.L(_.M,6,6005,{browserError:f.message});a.U(d);return Promise.reject(d)}a.A.on(c,zd,a.ig.bind(a));a.A.on(c,od,a.eg.bind(a));var e={initData:null,loaded:!1,He:Infinity,ob:null,za:new _.Nh,periodId:null,Bd:[],keyId:null,cb:[],initDataType:null,$b:null,sessionContext:{ldlDelay:0,customData:{}}};e.za["catch"](function(){});a.g.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.a.debug("Loaded offline session",
167
+ b,f);if(!f)return a.g["delete"](c),a.U(new _.L(_.M,6,6013)),null;e.loaded=!0;lm(a)&&(a.w||a.a.info(za),a.w=!0,a.D=!1,a.I.resolve());return c},function(f){a.j||(a.g["delete"](c),a.U(new _.L(_.M,6,6005,{browserError:f.message})))})};mm=function(a,b,c,d){if(!b&&c!==_.ne)return!1;d=b||Qk(d);a=_.u(a.g.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||c===_.ne&&(e.keyId||Qk(e.initData))===d)return!0;return!1};
168
+ gm=function(a,b,c,d,e,f,g){f=void 0===f?null:f;g=void 0===g?!1:g;var h,l,m,n,p,q,r,w,y,A,E,F,D,I,O,T,Fa,fa,ka,wa,Aa;_.B(function(la){switch(la.a){case 1:if(!e.length)return la["return"]();h=b||nm(a,d,e,f);if(g){la.H(2);break}if(!mm(a,h,d,e)){la.H(2);break}l=!0;if("skd"!==d||a.h.enableSessionCacheForSkd){la.H(4);break}m=_.u(a.g.keys());n=m.next();case 5:if(n.done){la.H(4);break}p=n.value;q=a.g.get(p);if(!h||q.keyId!==h){la.H(6);break}a.a.warn("Close and re-open session for "+h);_.yf(la,9);return _.x(la,
169
+ p.close(),11);case 11:_.zf(la,10);break;case 9:r=_.Af(la),a.a.warn("Unable to close session",r);case 10:l=!1;case 6:n=m.next();la.H(5);break;case 4:if(l)return a.a.warn("Skip creating a new session for "+h),la["return"]();case 2:try{y=a.F?_.Vd:Ae,w=a.J.createSession(y),a.a.info("Created new "+y+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(qa){return a.U(new _.L(_.M,6,6005,{browserError:qa.message})),la["return"]()}a.A.on(w,zd,a.ig.bind(a));a.A.on(w,od,a.eg.bind(a));A={$b:f,Bd:[],
170
+ initData:e,initDataType:d,keyId:h,cb:h?[h]:[],loaded:!1,He:Infinity,periodId:c,ob:null,za:new _.Nh,sessionContext:{ldlDelay:0,customData:{}}};A.za["catch"](function(){});f&&(E=a.g.get(f),A.sessionContext=E.sessionContext);a.g.set(w,A);h&&!a.m.get(h)&&a.m.set(h,se);if(e)for(F=0;F<a.f.initData.length;F++)D=a.f.initData[F],D.keyId&&!A.cb.includes(D.keyId)&&_.gk(D.initData,e)&&(A.keyId||(A.keyId=D.keyId),A.cb.push(D.keyId),a.m.get(D.keyId)||a.m.set(D.keyId,se));I=_.K;O=I.kb;T=a.C.getConfiguration();Fa=
171
+ a.keySystem();fa=a.h.Ra[Fa];wa=(ka=fa.modifiers)&&ka.transformInitData;O(wa)||(wa=om);try{e=wa({playerConfig:T,initData:e,initDataType:d,drmInfo:a.f,drmSystemConfig:fa,sessionContext:A.sessionContext,emeApi:a.o.Vc()})}catch(qa){return Aa=qa,qa instanceof _.L||(Aa=new _.L(_.M,6,6016,qa)),A.za&&A.za.reject(qa),a.U(Aa),la["return"]()}a.a.info("Generate License Request for key ID: '"+h+"'");w.generateRequest(d,e.buffer)["catch"](function(qa){if(!a.j){var Ga=null;qa.errorCode&&qa.errorCode.systemCode&&
172
+ (Ga=qa.errorCode.systemCode,0>Ga&&(Ga+=Math.pow(2,32)),Ga="0x"+Ga.toString(16));a.U(new _.L(_.M,6,6006,{browserError:qa.message,error:qa,extended:Ga},qa))}});_.z(la)}})};
173
+ nm=function(a,b,c,d){d=void 0===d?null:d;if("skd"===b){a:{b=d;b=void 0===b?null:b;d=a.keySystem();var e=a.h.Ra[d];d=a.C.getConfiguration();e=e&&e.modifiers&&e.modifiers.extractContentId;_.K.kb(e)||(e=pm);try{var f={ldlDelay:0,customData:{}};b&&(f=a.g.get(b).sessionContext);var g=e(d,c,f);a.a.debug("Extracted Content ID '"+g+"' from SKD");var h=g;break a}catch(l){a.a.warn("Unable to extract Content ID from SKD",l)}h=""}return h}if(b===_.ne)return Qk(c)||"";if(b===_.zc)try{e=a.keySystem();if(qm(e))return _.Gl(c).a;
174
+ if(e.match(/^com\.widevine\.alpha/)&&(f=_.Al(c)))return f.a}catch(l){a.a.warn("Unable to extract Key ID from PSSH data",l)}return""};pm=function(a,b){var c=_.Pk(b);_.Rf("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
175
+ om=function(a){var b=a.playerConfig,c=a.initData,d=a.drmInfo,e=a.drmSystemConfig,f=a.sessionContext,g=a.emeApi;if("skd"===a.initDataType&&"APPLE"===g){a=_.K.kb;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=pm);a="";try{a=e(b,c,f)}catch(h){throw new _.L(_.M,6,6103);}if(!a.length)throw new _.L(_.M,6,6101,"Content ID is an empty string");c=Rk(c,a,d)}return c};
176
+ um=function(a,b){var c=b.target,d=a.g.get(c),e=a.keySystem(),f=!1;e.match(/^com\.widevine\.alpha/)&&b.message&&2===b.message.byteLength?(f=!0,a.a.info("WV Server certificate request for SID:'"+(c.sessionId+" from msg '")+(b.messageType+"'"))):a.a.info("License request for SID:'"+(c.sessionId+"'/KID:'"+d.keyId+"' from msg '")+(b.messageType+"'"));var g=a.f.licenseServerUri;e=a.h.Ra[e];"individualization-request"===b.messageType&&e&&e.individualizationServer&&(g=e.individualizationServer);var h=_.Ih([g],
177
+ a.h.attemptParameters);h.type=3;h.body=b.message;h.method="POST";h.licenseRequestType=b.messageType===rd&&d.$b?qd:f?Bc:b.messageType;h.sessionId=c.sessionId;if(h.licenseRequestType===qd)a.C.onEvent(new _.J(Yc));qm(a.f.keySystem)&&rm(a,h);jk(a.R,h);var l=Date.now();return sm(a,h,d.sessionContext).then(function(){a.a.debug("Sending DRM license request to",g,h);return a.C.Ab.fetch(h).P}).then(function(m){if(a.j)return Promise.reject();var n=Date.now()-l,p=tm(a,m),q="";p&&(q=" RID:"+p);p=m&&m.data?m.data.byteLength:
178
+ -1;f?a.a.info("WV Server certificate response for SID:'"+(c.sessionId+"' ")+(p+" bytes in ")+(n+"ms"+q)):a.a.info("License response for SID:'"+(c.sessionId+"'/KID:'")+(d.keyId+"' ")+(p+" bytes in ")+(n+"ms"+q));var r=kk(a.R,m);return c.update(m.data).then(function(){if(!f){var w=im(a),y=r?Date.now()+1E3*r.delay:Number.NaN;w=new _.J(_.ad,{keySystem:a.keySystem(),expirationTime:w,expectedRenewalTime:y});a.C.onEvent(w);d&&(d.ob&&d.ob.resolve(),d.$b&&(w=d.$b,a.a.info("Closing expired session '"+w.sessionId+
179
+ "'"),Ml(w)["catch"](function(){a.a.warn("Unable to close expired session in time")}),(w=a.g.get(d.$b))&&w.Cc&&w.Cc.stop(),a.g["delete"](d.$b),d.$b=null),(new _.Ni(function(){a.j||(d.loaded=!0,d.za&&d.za.resolve(),lm(a)&&(a.w||a.a.info(za),a.w=!0,a.D=!1,a.I.resolve()))})).Z(5),null!==d.initData&&(0<d.sessionContext.ldlDelay||r&&lk(a.keySystem()))&&(w=new _.Ni(function(){!a.j&&a.R&&(a.a.info("Updating CSL Sessions"),qm(a.keySystem())?gm(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):a.keySystem().startsWith(_.Oc)&&
180
+ c.update(_.th("renew")))}),d.Cc=w,w.Z(r?r.delay:d.sessionContext.ldlDelay)))}})},function(m){var n,p,q,r;return _.B(function(w){if(a.j)return w["return"]();n=m.data.headers;p=nl(n);q=Object.assign({message:_.Ia,url:m.data.url,status:m.data.status,response:m.data.response},n?{headers:n}:{},p);r=new _.L(_.M,6,6007,q,m);a.U(r);d&&d.ob&&d.ob.reject(r);d&&d.za&&d.za.reject(r);_.z(w)})})["catch"](function(m){a.j||(m===ob?a.a.info("Ignore update for closed sessions"):(m=new _.L(_.M,6,6008,{browserError:m.message}),
181
+ a.U(m),d&&d.ob&&d.ob.reject(m),d&&d.za&&d.za.reject(m)))})};tm=function(a,b){if(!b||!b.headers)return"";var c=b.headers["x-dt-li"];if(c)try{return JSON.parse(_.ph(_.dk(c))).ti}catch(d){a.a.warn("Unable to parse DRMtoday Request ID",d)}return""};
182
+ rm=function(a,b){var c=rh(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.a.debug("Unwrapping PlayReady request.");c=(new DOMParser).parseFromString(c,"application/xml");for(var d=c.getElementsByTagName("HttpHeader"),e=0;e<d.length;++e)b.headers[d[e].querySelector("name").textContent]=d[e].querySelector(_.Ne).textContent;b.body=_.dk(c.querySelector("Challenge").textContent).buffer}else a.a.debug("PlayReady request is already unwrapped."),b.headers[va]="text/xml; charset\x3dutf-8"};
183
+ sm=function(a,b,c){var d,e,f,g,h,l;return _.B(function(m){if(1==m.a)return d=a.C.getConfiguration(),_.x(m,dm(a,d),2);e=a.keySystem();h=(g=(f=a.h.Ra[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;h?b.requestModifiers.push(function(n){return h(d,n,c)}):e.startsWith(_.Oc)&&b.requestModifiers.push(function(n){return _.Sk(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Oc)&&b.responseModifiers.push(function(n){return _.Tk(n)});_.z(m)})};
184
+ Jl=function(a){var b=a.m,c=a.da;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.U(new _.L(_.M,6,6014));a.C.Le(_.K.kf(c));a.w||a.a.info(za);a.w=!0;a.D=!1};Zl=function(a){var b;return _.B(function(c){b=a.ba.map(function(d){return um(a,d)});a.Sa=!0;a.ba=[];return _.x(c,Promise.all(b),0)})};qm=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};_.jm=function(a){return qm(a)?_.Pc:a};
185
+ Kl=function(a){a.g.forEach(function(b,c){var d=b.He,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.C.onExpirationUpdated(c.sessionId,e),b.He=e)})};lm=function(a){a=a.g.values();return _.Zg(a,function(b){return b.loaded})};
186
+ Rl=function(a,b){var c=[];b.forEach(function(f,g){c.push({keySystem:g,licenseServerUri:f.licenseUrl,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[]})});for(var d=_.u(a),e=d.next();!e.done;e=d.next())e.value.drmInfos=c};
187
+ km=function(a,b,c,d,e){var f={};a=_.u(a);for(var g=a.next();!g.done;f={ua:f.ua},g=a.next()){f.ua=g.value;b.includes(f.ua.licenseServerUri)||b.push(f.ua.licenseServerUri);f.ua.serverCertificate&&(c.some(function(m){return function(n){return _.gk(n,m.ua.serverCertificate)}}(f))||c.push(f.ua.serverCertificate));if(f.ua.initData){var h=_.u(f.ua.initData);for(g=h.next();!g.done;g=h.next())g.value.periodId=f.ua.periodId;h={};var l=_.u(f.ua.initData);for(g=l.next();!g.done;h={qd:h.qd},g=l.next())h.qd=g.value,
188
+ d.some(function(m){return function(n){var p=m.qd;return n.keyId&&n.keyId==p.keyId&&n.periodId===p.periodId?!0:!1}}(h))||d.push(h.qd)}if(f.ua.keyIds)for(g=0;g<f.ua.keyIds.length;++g)e.includes(f.ua.keyIds[g])||e.push(f.ua.keyIds[g])}};
189
+ Tl=function(a,b){if(a.keySystem){var c=_.jm(a.keySystem),d=b[c];c===_.Rd&&a.licenseServerUri||(d&&(a.licenseServerUri=d.licenseUrl||""),a.keyIds||(a.keyIds=[]),d&&(a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=d.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=d.persistentStateRequired),a.videoRobustness||(a.videoRobustness=d.videoRobustness||""),a.audioRobustness||(a.audioRobustness=d.audioRobustness||""),a.serverCertificate||(a.serverCertificate=
190
+ d.serverCertificate||null)))}};Ml=function(a){var b,c;return _.B(function(d){if(1==d.a)return b=new Promise(function(e){(new _.Ni(e)).Z(1)}),_.x(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.G("Timeout waiting for session close");_.z(d)})};_.xm=function(a,b){a&&b&&(vm.set(a,b),wm.info("Registered TextDisplayerFactory: '"+a+"'"))};
191
+ _.ym=function(a,b){var c=b.find(function(d){return(d=vm.get(d))?d.ca(a):!1});if(null==c)return wm.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;wm.info("Chosen the text displayer: "+c);return vm.get(c)};Em=function(){this.a=null;this.f=[]};_.Fm=function(a,b){if(null==a.a)a.a={timestamp:Date.now()/1E3,state:b,duration:0};else{var c=Date.now()/1E3;a.a.duration=c-a.a.timestamp;a.a.state!=b&&(a.f.push(a.a),a.a={timestamp:c,state:b,duration:0})}};
192
+ Gm=function(a,b){var c=0;a.a&&a.a.state==b&&(c+=a.a.duration);for(var d=_.u(a.f),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state==b?e.duration:0;return c};Hm=function(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=_.u(a.f),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};Im=function(){this.g=this.f=this.h=null;this.a=[]};Jm=function(a){return a.a.map(function(b){return _.K.Na(b)})};
193
+ _.Km=function(){this.f=this.m=this.w=this.B=this.h=this.j=this.g=this.o=NaN;this.a=new Em;this.A=new Im};_.Lm=function(){return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,estimatedBandwidth:NaN,loadLatency:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,switchHistory:[],stateHistory:[]}};_.Mm=function(a){this.f=a;this.a=void 0};Om=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Nm.value().get(b),c.one(a,b,d))};
194
+ Sm=function(a){this.g=new _.H("clpp.StateManager");this.l=a;this.a=new _.dg;this.f=_.Pm;this.A=_.Qm;this.J=0;this.w=-1;this.N=this.o=this.K=this.B=0;this.j=this.m=this.F=!1;this.I=0;this.h=null;this.L=0;this.R=_.Ui();this.D=!1;this.K=Date.now();Rm(this)};Tm=function(a,b){return Object.keys(b)[a]};
195
+ Vm=function(a,b){var c={type:_.re};b===_.tc||b===_.sc?(c.reason=a.w,b===_.tc?c.timeSinceLastStateChangeMS=a.J:c.bufferedTimeMS=a.B):(a.f===_.Um&&(c.reason=a.w),a.A===_.Um&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.J);return c};
196
+ Zm=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=a.f===_.Um;a.A=a.f;a.f=b;a.A===_.Wm&&(a.K=c,a.o=0);a.o||(a.o=a.K||c);a.J=c-a.o;a.o=c;b===_.Um?(a.N=a.o,a.w=a.m?1:2,a.g.info("Buffering started. Reason: "+Tm(a.w-1,_.Xm)),c=Vm(a,_.tc),a.Ub(_.tc,c)):d&&(a.B=a.o-a.N,a.g.info("Buffering finished. Reason: "+Tm(a.w-1,_.Xm)+". Buffering time: "+a.B+" ms"),c=Vm(a,_.sc),a.Ub(_.sc,c));c=Tm(a.A,_.Ym);d=Tm(a.f,_.Ym);a.g.info(_.fb+c+" -\x3e "+d);a.Ub(_.re,Vm(a,""));return!0};
197
+ dn=function(a,b){if(a.f===_.$m)a.g.warn("Player is in error state, aborting any further state checks");else{var c=a.l.isPaused();var d=a.l.getPosition();var e=a.l.getDuration();if(d=a.l.isEnded()||a.f===_.Wm&&1>=Math.abs(d-e)||c&&d>=e)Zm(a,_.Wm)&&a.g.debug("Player claims to be in ended state, not checking more");else if(b!==_.Ee){e=a.l.getPosition();e=null!==e&&void 0!==e&&0<=e?a.l.getBufferInfo().Da(e,!0):-1;a.I=e;e=a.l.getSurface().getMedia();a.h=e?e.readyState:null;a.L=a.l.getPlaybackRate()||1;
198
+ e=typeof a.h===_.k&&2>a.h&&2===e.networkState;var f=typeof a.h===_.k&&0>=a.I&&a.f===_.Pm,g=typeof a.h===_.k&&2>=a.h&&a.j;e=a.m||f||e||g;!a.R||a.l.isLive()||a.f!==_.Um||e||(f=b===_.je&&4===a.h,(g=a.A===_.an)&&!a.D?e=!0:g||a.D||f||(e=!0));f=!1;e?f=Zm(a,_.Um):c?f=Zm(a,_.bn):a.F&&(f=Zm(a,_.cn));f&&(a.D=!1);a.g.debug("Video state check for event "+b+":: seeking: "+a.m+", waiting: "+a.j+", playing: "+a.F+", paused: "+c+", readyState: "+a.h+", rate: "+a.L+", buffer: "+a.I+", ended: "+d+". Changed state: "+
199
+ f+", Current state: "+Tm(a.f,_.Ym))}}};
200
+ Rm=function(a){function b(d){return dn(a,d.type)}a.g.debug("Start watching for video events for "+a.l.namespace());var c=a.l;a.a.on(c,_.fd,function(){a.j=!1;Zm(a,_.Wm)});a.a.on(c,uc,b);a.a.on(c,_.Yd,function(){a.F=!0;a.j=!1;dn(a,_.Yd)});a.a.on(c,_.Td,function(){a.F=!1;a.j=!1;dn(a,_.Td)});a.a.on(c,_.Ee,b);a.a.on(c,_.ce,b);a.a.on(c,_.je,function(d){a.m=!1;a.j=!1;dn(a,d.type)});a.a.on(c,_.ke,function(d){a.m=!0;dn(a,d.type)});a.a.on(c,oe,b);a.a.on(c,_.Ye,function(){a.j=!0;dn(a,_.Ye)});a.a.on(c,_.gd,function(d){return a.U(d)});
201
+ a.a.on(c,_.vd,b);a.a.on(c,vc,function(){a.D=!0;dn(a,vc)});a.a.on(c,_.Me,function(d){a.m=!0;dn(a,d.type)});a.a.on(c,_.Le,function(d){a.m=!1;a.j=!1;dn(a,d.type)})};en=function(a){a=(new _.Fg(a)).pa;if(!a)return null;a=a.toUpperCase();return _.xh(a,".MPD")?_.bc:_.xh(a,".M3U8")?_.uj:_.xh(a,".MP4")?_.Se:_.xh(a,"MANIFEST")||_.xh(a,".ISM")?_.gc:null};
202
+ _.gn=function(a){var b;_.Tj(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.ue||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=fn(b[c]);d&&a.push(d)}return a};
203
+ fn=function(a){var b=null;_.K.Y(a)&&(a={url:a});typeof a===_.Jd&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.K.S(a.drmProtected)||typeof a.drmProtected!==_.rc||(b.drmProtected=a.drmProtected),_.K.S(a.isLive)||typeof a.isLive!==_.rc||(b.isLive=a.isLive),_.K.S(a.name)||typeof a.name!==_.ue||(b.name=a.name),_.K.S(a.Eb)||typeof a.Eb!==_.ue||(b.Eb=a.Eb),_.K.S(a.audioMimeType)||typeof a.audioMimeType!==_.ue||(b.audioMimeType=a.audioMimeType));b&&!b.type&&(b.type=en(a.url),b.type?
204
+ hn.debug("Detect media type "+b.type+" for "+a.url):hn.warn("Unable to detect media type for "+a.url));return b};jn=function(){_.Uj.call(this,Jc);this.w=this.I=!1;this.j=this.A=this.m=this.a=this.h=null;this.g=new _.dg;this.F=this.D=this.f=this.J=null};
205
+ mn=function(a,b){return a.w?kn():new Promise(function(c){a.a||(a.g.on(b,_.gd,function(){var d=ln(a);if(d)a.onError(d)}),a.g.on(b,_.he,function(){var d=b.videoWidth,e=b.videoHeight,f=a.getTrackManager();f&&0<d&&0<e&&(f.o={width:d,height:e});a.trigger(new _.J(_.qc,{detail:{width:d,height:e}}))}),a.a=b);c()})};nn=function(a){return a.w?kn():new Promise(function(b){if(a.a){var c=a.a;a.g.off(c,_.gd);a.g.off(c,_.he);a.a=null}b()})};
206
+ pn=function(a){var b,c,d,e,f;return _.B(function(g){if(1==g.a){if(a.w)return g["return"](kn());b=a.o[a.getSourceIndex()];if(!a.configuration.drm||!1===b.drmProtected)return a.log.debug("No DRM configuration present.","Skipping DRM engine initialization"),g["return"](Promise.resolve());c=_.on;d=_.pk(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.m=new _.Ll({Ab:e,onError:function(h){return a.onError(h)},Le:function(){},onExpirationUpdated:function(h,l){a.trigger(new _.J(_.Xc,
207
+ {expirationTime:l}))},onEvent:function(h){h instanceof _.J?a.dispatchEvent(h):a.log.debug(_.xb,h.type)},getConfiguration:function(){return a.getConfiguration()},Gc:function(){return a.Gc()}});a.m.h=d;f={id:0,language:_.He,primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:Promise.resolve.bind(Promise),findSegmentPosition:function(){return null},getSegmentReference:function(){return null},adjustSegmentDurations:function(){},getDuration:a.getDuration.bind(a),initSegmentReference:null,
208
+ Aa:0,mimeType:_.Se,codecs:"",encrypted:!0,keyId:null,language:_.He,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,vk:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,ik:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.x(g,_.Ql(a.m,[f],[]),2)}return 3!=g.a?_.x(g,_.cm(a.m,a.a),3):g["return"](Promise.resolve())})};
209
+ qn=function(a,b){Om(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.g,function(){a.getState()!==_.$m&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};ln=function(a){if(null===a.o||!a.a.error)return null;var b=a.a.error.code;if(1===b)return null;var c=a.a.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new _.L(_.M,3,3016,{code:b,qk:c,message:a.a.error.message})};kn=function(){return Promise.reject(new _.L(_.M,7,7E3))};
210
+ rn=function(a){if(a.w)return new _.Oh(kn(),function(){});var b=a.o[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.J;c&&qn(a,c);if(d.preload!==_.Id)a.g.one(d,_.vd,function(){var g=Date.now()/1E3-e;a.f.w=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.Uh()||_.Vh())&&d.load();var f=new _.Nh;a.g.one(d,oe,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.D||(a.D=(new _.Ni(function(){f.reject(new _.L(_.M,3,3100,{message:"Unable to load media source successfully from "+
211
+ b.url,uri:b.url},d.error))})).Z(g))});Om(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.g,function(){return f.resolve()});d.error?f.reject(ln(a)):d.preload===_.Id&&(a.log.warn('With \x3cvideo preload\x3d"none"\x3e, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way. Please do not use preload\x3d"none" with PRESTOplay for Web Apps.'),f.resolve());a.g.one(d,_.gd,function(){f.reject(ln(a))});
212
+ return new _.Oh(f,function(){var g=new _.L(_.M,7,7001);f.reject(g);return Promise.resolve()})};
213
+ sn=function(a,b){Om(b,HTMLMediaElement.HAVE_CURRENT_DATA,a.g,function(){if(a.isLive()&&a.getState()!==_.$m){var c=a.getSeekRange().end,d=a.getPosition();Infinity===c||20>c-d||(a.log.warn("Detected that HLS live stream was not started from close to the live edge. Auto-fixing, seeking to seek range end.(position: "+(d+", seek range end: "+c+")")),a.seek(c)["catch"](function(e){a.log.warn("Error while seeking to seek range edge.",e)}))}})};tn=function(){};
214
+ _.wn=function(a){a&&(0<=un.indexOf(a)?vn.warn("Factory '"+a.name()+"' is already registered"):(un.push(a),vn.info("Factory "+a.name()+"' has been registered.")))};yn=function(a,b){var c=un.find(function(d){return d.ca(a,b)});c||(c=new xn);vn.info("Chosen ads: "+c.name());return c};_.zn=function(a,b){var c=document.createElement(a),d;for(d in b){var e=b[d];null===e||void 0===e?c.setAttribute(d,""):c.setAttribute(d,e)}return c};_.An=function(a,b){a.classList.add(b)};
215
+ _.Bn=function(a,b){if(a&&typeof b===_.Jd)for(var c in b)a.style[c]=b[c]};_.Cn=function(a){return document.createElement(a)};Dn=function(){this.a=null;this.g=new Set;this.f=null;this.set(null)};En=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.g.add(b))};Fn=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.g.values());ci(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.lf(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
216
+ Jn=function(a,b){this.a=new _.H("clpp.PlayerSurface");this.w=_.K.Wa(Gn,b);this.g=new Dn;this.h=null;this.f=new Dn;this.m=Hn;Hn+=1;this.o="clpp-video-"+this.m;this.j=new _.dg;if(null==a)throw new _.L(_.M,7,7102,"No Media element was provided");if(a instanceof Element)var c=a;else if(c=document.getElementById(a),!c)throw new _.L(_.M,7,7004,"Media element not found");var d=this.w;this.a.debug("Initializing Player Surface on ",c);if("cast-media-player"===c.tagName.toLowerCase())this.h=c;else{if(!(c instanceof
217
+ HTMLMediaElement))throw new _.L(_.M,7,7005,"Media element is not instance of HTMLMediaElement");if(!c.hasAttribute("crossorigin")){var e=d.crossorigin;this.a.info("Setting media elements crossorigin to "+e);c.setAttribute("crossorigin",e)}this.g.set(c);if(d.disableContainer)d=null;else if(d.containerEl){if(c.parentNode!==d.containerEl)throw new _.L(_.M,7,7006,"Container element is not a direct parent of media element");d=d.containerEl}else{d=document.createElement(_.Wc);c.parentNode?c.parentNode.replaceChild(d,
218
+ c):this.a.warn("Player Surface Element has no parent. Can not inject container. You have to manually add playerSurface.getContainer() to the DOM!");e=[];for(var f=0;f<c.classList.length;f++)e.push(c.classList[f]);e=_.u(e);for(f=e.next();!f.done;f=e.next())f=f.value,c.classList.remove(f),_.An(d,f);d.style.cssText=c.style.cssText;c.removeAttribute(_.we);e=_.u([_.ef,_.jd]);for(f=e.next();!f.done;f=e.next()){f=f.value;var g=c.getAttribute(f);g=parseInt(g,10);isNaN(g)||(d.style[f]=g+_.be);_.Uh()||c.removeAttribute(f)}d.appendChild(c)}d&&
219
+ (this.f.set(d),En(this.f,"clpp-container"),En(this.f,this.o),En(this.g,_.Ec),En(this.g,"clpp-video"));In(this,c,d)}};In=function(a,b,c){(_.Vh()&&53===Ri().major||_.Vh()&&68===Ri().major||_.Si())&&!b.hasAttribute(Sc)&&(b.style.opacity="0",b.setAttribute(Sc,""),a.j.one(b,cd,function(){b.removeAttribute(Sc);b.style.opacity="1";c&&(c.style.opacity="1")}))};Ln=function(a){this.l=a;this.h=this.l.getNetworkEngine();this.a=new _.dg;this.g=null;this.f=!0;Kn(this)};
220
+ Kn=function(a){a.a.on(window,"offline",function(){Mn(a,!1)});a.a.on(window,"online",function(){a.f||Nn(a)});a.a.on(a.l,oe,function(){return On(a)});a.a.on(a.l,"suspend",function(){return On(a)});a.a.on(a.l,_.Ye,function(){return On(a)});a.a.on(a.l,_.Yd,function(){a.f||Nn(a)});a.a.on(a.l,_.ae,function(){a.f||Nn(a)});a.a.on(a.l,_.re,function(){switch(a.l.getState()){case _.Um:On(a);break;default:On(a)}})};Nn=function(a){a.l.getConfiguration().connectivityCheck&&(Pn(a),a.g=(new _.Ni(function(){return Qn(a)})).Z(5))};
221
+ On=function(a){a.f&&Nn(a)};Pn=function(a){a.g&&(a.g.stop(),a.g=null)};Qn=function(a){var b,c;return _.B(function(d){if(1==d.a)return(b=a.l.getConfiguration().connectivityCheck)&&a.l?_.x(d,ai(a.h,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;Mn(a,c);_.z(d)})};Mn=function(a,b){Pn(a);a.f!==b&&(a.f=b,a.l&&a.l.getConfiguration().connectivityCheck&&a.l.trigger(new _.J(Pd,{online:a.f})))};Sn=function(){for(var a=0;a<Rn.length;++a)Rn[a].zc()};
222
+ _.Tn=function(a,b){b=b||0;for(var c={priority:b,zc:a},d=0;d<Rn.length;d++)if(Rn[d].priority<b){Rn.splice(d,0,c);return}Rn.push(c)};Un=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};Vn=function(a,b,c){this.g=a;this.f=b;JSON.parse(_.ph(_.dk(a)));this.a=JSON.parse(_.ph(_.dk(b)));this.h=c};Wn=function(a){this.license=a;this.a=null;this.f=new _.H("clpp.utils.LicenseKey")};
223
+ Xn=function(a){if(!a.a){var b=a.license.split(".");if(3!==b.length)throw Error("Expected to find 3 data sections in JWT raw data");b=new Vn(b[0],b[1],b[2]);a.a=b}return a.a};Yn=function(a){switch((a.Gd()[0]||{src:"",type:""}).type){case _.bc:a="dash";break;case _.gc:a="ss";break;case _.uj:a="hls";break;case _.Se:a=_.Ed;break;default:a=""}return a};Zn=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};
224
+ $n=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};ao=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};co=function(a){var b=a.getConfiguration(),c="no";b.drm&&!_.K.va(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(bd)||bo(a).endsWith("drmtoday.com"))&&(c=bd);return c};
225
+ eo=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.keySystem){case _.Qc:b="wv";break;case _.Pc:b="pr";break;case _.Oc:b="fps"}return b};fo=function(a){a=a.getDrmInfo();var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};go=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.videoRobustness){case Na:case "HW_SECURE_ALL":b="L1";break;case La:b="L2";break;case _.nb:case _.mb:b="L3"}return b};bo=function(a){a=a.getDrmInfo();return(new _.Fg(a&&a.licenseServerUri||"")).Oa};
226
+ jo=function(a,b){var c="ie"===_.Wh().browser,d=b.getConfiguration(),e=_.lf(Array.from(_.Vj.keys())).concat(_.lf(b.ki()));d={"CL-KEY":a.license,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ea,"CL-USER-ID":Zn(d),"CL-ASSET-ID":$n(d),"CL-SESSION-ID":ao(d),"CL-PLAYBACK-TYPE":b.isLive()?ho:io,"CL-CONTENT-TYPE":Yn(b),"CL-PLUGINS":e.join(" "),"CL-DRM":co(b),"CL-DRM-CDM":eo(b),"CL-DRM-SEC-LEVEL":go(b),"CL-DRM-OFFLINE":fo(b),"CL-DRM-IP":bo(b)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=
227
+ e);e=_.Ih(["https://downloads.castlabs.com/r/register/"]);e.method="GET";e.headers=d;return(new _.Zh).fetch(e).P.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=Xn(a);f=f.data;var h=f.status;if(g.a&&g.a.ilv)f=Promise.resolve();else{switch(h){case 403:case 404:g=7101;var l="castLabs Player license is invalid";if(403===h){h=l;l="";try{l=JSON.parse(decodeURIComponent(f.responseText)).message}catch(m){}f=
228
+ h+(": "+l)}else f=l+"!";l=f;break;case 412:g=7103;l="License requires a viewer ID. It should be supplied either via the `viewerId` config or in case of DRMtoday via the `drm.customData.userID` config.";break;default:f=Promise.resolve();break a}a.f.error(Sa+l);f=Promise.reject(new _.L(_.M,7,g,l))}}return f})};
229
+ V=function(a,b,c){_.Kj.call(this);var d=this;Sn();this.g=new _.H("clpp.Player");if(!a)throw new _.L(_.M,7,7102);this.A=new _.dg;this.f=this.T=b||_.Qj();this.m=null;void 0===this.f.license&&(this.f.license=Oj,this.g.warn("You are using the embedded demo license!"));if(!this.f.license)throw this.g.error("You provided null or empty string as your license. Please check your license configuration."),new _.L(_.M,7,7101,"No license provided in configuration!");this.h=new Jn(a,c);this.a=this.w=null;this.I=
230
+ new _.Zh;this.j=null;this.L=[];this.N={};this.o=null;this.J=!0;this.K=this.F=!1;this.D=this.Dc=null;this.ne=!1;this.V=new Ln(this);this.R=!1;this.B=function(f){(f=f.detail)&&f.currentState===_.cn&&(d.off(_.re,d.B),ko(d))};this.on(_.re,function(){d.getState()===_.$m&&d.unload()});this.on(_.Yb,this.Zf.bind(this));this.on(_.Xb,this.Zf.bind(this));lo(this,this.f.license);this.h.getMedia()&&(a=this.h.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),this.g.debug("Removed autoplay attribute from video element. Auto play will be handled by configuration."),
231
+ void 0===this.f.autoplay&&(this.f.autoplay=!0,this.g.debug("Setting autoplay in configuration since it was specified in the video element"))));a=[];b=_.u(mo);for(c=b.next();!c.done;c=b.next()){c=c.value;try{var e=c.create(this.f);e&&a.push(e)}catch(f){this.g.error("Error while creating player plugin",f)}}no(this,a);_.Vj.clear()};_.oo=function(a,b){b!==a.a&&(a.a&&(a.a.removeDelegate(a),a.a.destroy()),a.a=b,a.a&&(a.a.init(a.h,a.f),a.a.setNetworkEngine(a.getNetworkEngine()),a.a.addDelegate(a)))};
232
+ lo=function(a,b){a.w=new Wn(b);a.w.verify()["catch"](function(c){setTimeout(function(){a.g.error(Sa+c);a.trigger(new _.J(_.gd,{detail:new _.L(_.M,7,7101)}));a.destroy()},1E3)})};
233
+ ko=function(a){if(!a.R){a.R=!0;a.h.getMedia()||a.h.getCastElement();a.w||(a.w=new Wn(a.f.license));var b=Object.keys(a.N);jo(a.w,{getConfiguration:a.getConfiguration.bind(a),Gd:a.Gd.bind(a),getDrmInfo:a.getDrmInfo.bind(a),ki:function(){return b},isLive:a.isLive.bind(a)}).then(function(){a.g.debug("License verified remotely")})["catch"](function(c){setTimeout(Un,1E3,{release:a.release.bind(a),destroy:a.destroy.bind(a),onError:a.onError.bind(a)},c)})}};
234
+ no=function(a,b){a.L=b;for(var c=_.u(a.L),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.N[e]=d)}a.hc("onPlayerCreated")};
235
+ po=function(a){var b,c;return _.B(function(d){if(1==d.a){if(a.J)return a.g.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.off(_.re,a.B);a.A.off(a,_.re,a.B);a.A.off(document,We);a.trigger(new _.J(_.ee));a.R=!1;a.h&&a.h.release();return a.j?_.x(d,a.j.dispose(),3):d.H(2)}2!=d.a&&(a.j=null);Zj(function(e){e.release()});if(a.a)return b=null,c=a.a.on(_.re,function(e){b=e}),d["return"](a.hc(_.Nd).then(function(){a.a.removeDelegate(a);return Promise.all([a.a.release(),
236
+ a.I.release()])}).then(function(){a.g.debug("Releasing player completed");b&&(a.g.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.re,c);a.trigger(new _.J(de))}));a.trigger(new _.J(de));return d["return"](new Promise(function(e){return e()}))})};
237
+ qo=function(a,b,c){return new Promise(function(d,e){var f;if(b){for(var g=f=null,h=0;h<b.length;h++);h=Object.values(_.Wf);for(var l=0;l<b.length;l++)for(var m=0;m<h.length;m++){var n={Jb:h[m],confidence:h[m].canPlay(b[l],c)};if(null===f||f.confidence<n.confidence)f=n,g=l}f&&typeof g===_.k&&0<f.confidence?(_.Xf.debug("Player Factory '"+f.Jb.a()+"' can play",b[g]),f=new Tf(f.Jb,g)):(_.Xf.error("No compatible Player Factory found for sources:",b),f=null)}else f=null;f?(g=f.Jb.create(),d(new Uf(g,f.a))):
238
+ (f=new _.J(_.gd,{detail:new _.L(_.M,7,7003)}),a.trigger(f),e(f))})};
239
+ _.so=function(a,b){var c,d,e,f;return _.B(function(g){switch(g.a){case 1:if(a.F)throw Error("Player is already destroyed.");if(!a.h)throw Error("No surface associated with this player!");return _.x(g,a.release(),2);case 2:a.o=_.gn(b);c=_.Tj(b);a.f=_.Sj(a.T,c?b:{},{source:a.o});if(0===a.o.length)throw Error("Invalid request to load: could not find source to load");a.J=!1;e=0;if(!a.K&&2===a.canPlay(a.o[0],a.f)){g.H(3);break}return _.x(g,qo(a,a.o,a.f),4);case 4:f=g.f,d=f.a,e=f.f,a.K=!1;case 3:d?_.oo(a,
240
+ d):a.a.addDelegate(a);ro(a);a.a&&a.a.setCdnErrorCallback(a.D);a.j=yn(a,a.f).create(a);a.setSourceIndex(e);if(a.f.pauseWhenInBackground)a.A.on(document,We,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});Zj(function(h){h.Yb()});return _.x(g,a.hc("onContentWillLoad",a.f.source[e]),0)}})};
241
+ _.to=function(a){return _.B(function(b){a.h.getMedia()||a.h.getCastElement();a.A.on(a,_.re,a.B);a.trigger(new _.J(wd));return _.x(b,Promise.all([a.a.load(a.f),a.j.load()]),0)})};uo=function(a){var b=_.bi(a.f.preferredTextLanguage).filter(function(d){return d}),c=a.getTrackManager().ha();b.some(function(d){var e=_.Gi(d);return(d=c.find(function(f){f=_.Gi(f.language||"");return _.Hi(f,e)}))?(a.getTrackManager().Ba(d),!0):!1})};
242
+ _.vo=function(a){var b,c,d,e;return _.B(function(f){if(1==f.a){b=[];if(a.f.remoteTextTracks)for(c=_.u(a.f.remoteTextTracks),d=c.next();!d.done;d=c.next())e=d.value,b.push(a.getTrackManager().addTextTrack(e));return _.x(f,Promise.all(b),2)}return 3!=f.a?(uo(a),Zj(function(){}),_.x(f,a.hc("onContentLoaded"),3)):a.f.autoplay?_.x(f,a.play(),0):f.H(0)})};ro=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.B(function(c){if(!a.Dc||!a.ne)return c.H(0);a.ne=!1;return _.x(c,a.Dc(b),0)})})};
243
+ _.wo=function(a){a&&(0<=mo.indexOf(a)||mo.push(a))};W=function(){};xo=function(){};yo=function(){};zo=function(){};xn=function(){};Ao=function(){};_.Bo=function(){};Co=function(){this.a=null};Do=function(){};Eo=function(){this.size=0;this.a=void 0;this.f=new _.H("clpp.drm.eme.MediaKeyStatusMap")};Fo=function(a,b){a.size=void 0===b?0:1;a.f.debug("Setting key status to",b);a.a=b};Go=function(){};Ho=function(){};Io=function(){this.a=this.f=null};
244
+ Jo=function(a,b){this.keySystem=a;if(a.startsWith(_.Oc))for(var c=_.u(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.ge)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.Qd,distinctiveIdentifier:_.Qd,initDataTypes:e.initDataTypes,sessionTypes:[Ae],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=_.u(e.audioCapabilities),l=h.next();!l.done;l=h.next())l=l.value,l.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&
245
+ (d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.u(e.videoCapabilities),l=e.next();!l.done;l=e.next())h=l.value,h.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,h.contentType.split(";")[0])&&(d.videoCapabilities.push(h),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,_.Se));d=g?d:null}if(d){this.a=d;return}}c=Error(zb);c.name=cb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
246
+ Ko=function(a){this.g=null;this.h=new WebKitMediaKeys(a);this.f=new _.dg;this.j=0;this.a=new _.H(Ic);this.a.info("Created Media Keys for "+a)};
247
+ Lo=function(a,b){a.g=b;_.gg(a.f);if(!b)return Promise.resolve();a.f.on(b,dd,function(c){_.Rf("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);"MediaEncryptedEvent"in window&&c instanceof MediaEncryptedEvent&&(a.a.info("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.f.on(b,df,function(c){a.a.debug("Handle webkitNeedKey event");c=_.N(c.initData);if(_.mh(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
248
+ c=rh(c.subarray(4),!0);c=_.th(c);var d=new Event(dd);d.initDataType="skd";d.initData=nh(c);a.g.dispatchEvent(d)});Om(b,HTMLMediaElement.HAVE_METADATA,a.f,function(){return b.webkitSetMediaKeys(a.h)});return Promise.resolve()};Mo=function(a,b){_.Kj.call(this);this.a=null;this.o=a;this.g=this.h=null;this.j=new _.dg;this.sessionId=b;this.expiration=NaN;this.closed=new _.Nh;this.m=!1;this.keyStatuses=new Eo;this.f=new _.H(Ic)};No=function(a,b){Fo(a.keyStatuses,b);a.dispatchEvent(new _.J(od))};Oo=function(){};
249
+ Po=function(){this.f=this.a=null;this.g="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.g="webkit")};
250
+ Qo=function(a,b,c,d){this.g=a;this.a=this.keySystem=c;a=!1;c===_.Rd&&(this.a=$e,a=!1);var e=!1;d=_.u(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=[],h=[],l=!1;if(f.audioCapabilities)for(var m=_.u(f.audioCapabilities),n=m.next();!n.done;n=m.next())n=n.value,n.contentType&&(l=!0,b.canPlayType(n.contentType.split(";")[0],this.a)&&(g.push(n),e=!0));if(f.videoCapabilities)for(g=_.u(f.videoCapabilities),n=g.next();!n.done;n=g.next())m=n.value,m.contentType&&(l=!0,b.canPlayType(m.contentType,
251
+ this.a)&&(h.push(m),e=!0));l||(e=b.canPlayType(_.Se,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.ge||a||(e=!1);if(e){this.f=f;return}}b=zb;if(c===_.Rd||c===_.Qc)b="None of the requested configurations were supported.";c=Error(b);c.name=cb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};Ro=function(a,b){this.g=a;this.m=b;this.a=null;this.f=new _.dg;this.h=[];this.j=new Map};
252
+ Uo=function(a,b){a.a=b;_.gg(a.f);b&&(a.f.on(b,a.g+"needkey",function(c){var d=new Event(dd);d.initDataType=_.zc;d.initData=nh(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.g+"keymessage",function(c){var d=So(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.J(zd,{messageType:e?rd:qd,message:c.message});_.Rf("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.Sf("Session not found",c.sessionId)}),a.f.on(b,a.g+"keyadded",function(c){if(c=
253
+ So(a,c.sessionId))_.Rf("WebkitEmeManager.MediaKeySession.ready"),To(c,"usable"),c.a&&c.a.resolve(),c.a=null}),a.f.on(b,a.g+"keyerror",function(c){var d=So(a,c.sessionId);if(d){var e=Error("EME v0.1b key error"),f=c.errorCode;f.systemCode=c.systemCode;e.errorCode=f;!c.sessionId&&d.f?(45===c.systemCode&&(e.message="Unsupported session type."),d.f.reject(e),d.f=null):c.sessionId&&d.a?(d.a.reject(e),d.a=null):(e=c.systemCode,c.errorCode.code===MediaKeyError.MEDIA_KEYERR_OUTPUT?To(d,_.Sd):1===e?To(d,"expired"):
254
+ To(d,_.nd))}}))};So=function(a,b){var c=a.j.get(b);return c?c:(c=a.h.shift())?(c.sessionId=b,a.j.set(b,c),c):null};Vo=function(a,b,c,d){_.Kj.call(this);this.o=a;this.h=b;this.m=!1;this.a=this.f=null;this.g=c;this.j=d;this.sessionId="";this.expiration=NaN;this.closed=new _.Nh;this.keyStatuses=new Eo};
255
+ Xo=function(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if(a.j===_.Vd)if(c)var d=_.N(_.th("LOAD_SESSION|"+c));else{var e=_.th("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.N(b),e.byteLength);d=f}else d=_.N(b)}catch(h){return Promise.reject(h)}a.f=new _.Nh;var g=Wo(a,"generateKeyRequest");try{a.h[g](a.g,d)}catch(h){if(h.name!==Qa)return a.f=null,Promise.reject(h);(new _.Ni(function(){try{a.h[g](a.g,d)}catch(l){a.f.reject(l),
256
+ a.f=null}})).Z(.01)}return a.f};Yo=function(a,b,c){if(a.a)a.a.then(function(){return Yo(a,b,c)})["catch"](function(){return Yo(a,b,c)});else{a.a=b;if(a.g===$e){var d=_.ph(c);var e=JSON.parse(d);"oct"!==e.keys[0].kty&&(a.a.reject(Error("Response is not a valid JSON Web Key Set.")),a.a=null);d=_.dk(e.keys[0].k);e=_.dk(e.keys[0].kid)}else d=_.N(c),e=null;var f=Wo(a,"addKey");try{a.h[f](a.g,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};To=function(a,b){Fo(a.keyStatuses,b);a.dispatchEvent(new _.J(od))};
257
+ Wo=function(a,b){return a.o?a.o+b.charAt(0).toUpperCase()+b.slice(1):b};Zo=function(){};
258
+ $o=function(a,b,c,d,e){_.sk.call(this,Oa);this.m=a;this.j=b;this.h=c;this.f=d;this.o=e;this.a=new _.H(Hc);_.zh(this.m)?this.a.warn(_.Cb):this.Ka(_.Qc,{licenseUrl:this.m,videoRobustness:[_.nb,void 0],audioRobustness:[_.mb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.kd.bind(this)}});_.zh(this.j)?this.a.warn(_.db):this.Ka(_.Pc,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.kd.bind(this)}});
259
+ _.zh(this.h)?this.a.warn(_.Ka):_.zh(this.f)?this.a.warn(_.Ja):this.Ka(_.Oc,{licenseUrl:this.h,certificateUrl:this.f,modifiers:{licenseRequest:this.cg.bind(this),licenseResponse:this.dg.bind(this),certificateRequest:this.kd.bind(this),extractContentId:this.Gf.bind(this)}})};ap=function(){this.l=null};bp=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.id)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
260
+ cp=function(a){a=a.target;if(a.webkitPresentationMode===Wd){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement===a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)};dp=function(){return this.webkitSupportsPresentationMode(Wd)?(this.webkitSetPresentationMode(Wd),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
261
+ ep=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};fp=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};gp=function(a,b,c){return new window.TextTrackCue(a,b,c)};
262
+ hp=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};jp=function(a,b,c){if("input"===a)switch(this.type){case "range":a=Cc}ip.call(this,a,b,c)};lp=function(){this.a=kp()};mp=function(a){return kp()-a.a};np=function(a){var b=new lp;b.a=a.a;return b};kp=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};_.op=function(a){var b=[];a=_.u(a);for(var c=a.next();!c.done;c=a.next()){c=_.u(c.value.variants);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};
263
+ pp=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.g=b;this.f=0};qp=function(a,b){var c=a.f+b.byteLength;if(c>a.a.byteLength){var d=a.a;a.a=new Uint8Array(Math.max(Math.ceil(a.a.buffer.byteLength*a.g),c));a.a.set(d)}a.a.set(b,a.f);a.f+=b.byteLength};_.rp=function(a,b,c){this.f=a;this.h=b;this.g=c||this.f.getMedia();this.a=null};_.tp=function(){this.a=new Blob([sp],{type:_.Se})};
264
+ _.vp=function(a,b,c,d){var e,f;return _.B(function(g){if(1==g.a)return _.yf(g,2),_.x(g,up(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.Af(g);f.a(_.M);throw f;})};
265
+ up=function(a,b,c,d){var e,f,g,h;return _.B(function(l){if(1==l.a){if(d){if(e=_.wp[d.toLowerCase()])return l["return"](e);_.G("Could not determine manifest type using MIME type ",d)}if(f=_.xp(a)){if(g=_.yp[f])return l["return"](g);_.G("Could not determine manifest type for extension ",f)}else _.G("Could not find extension for ",a);return d?l.H(2):_.x(l,zp(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(h=_.wp[d])return l["return"](h);_.G("Could not determine manifest type using MIME type",d)}throw new _.L(_.M,4,
266
+ 4E3,{url:a});})};zp=function(a,b,c){var d,e,f;return _.B(function(g){if(1==g.a)return d=_.Ih(a),Gh(d,c),d.type=1,d.method="HEAD",_.x(g,b.fetch(d).P,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.xp=function(a){a=(new _.Fg(a)).pa.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()};Ap=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.g=new lp};
267
+ Cp=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(Bp(a,d),Lh(c,d.byteLength,mp(a.g)),a.g.a=kp());return e?(e=a.a.buffer,a.a.byteLength!==a.f&&(e=e.slice(0,a.f)),Promise.resolve(e)):Promise.resolve().then(function(){return Cp(a,b,c)})})};Bp=function(a,b){var c=a.f+b.byteLength;if(a.a.byteLength<c){for(var d=a.a.byteLength;d<c;)d*=2;c=new Uint8Array(d);c.set(a.a);a.a=c}a.a.set(b,a.f);a.f+=b.byteLength};
268
+ Xh=function(a){var b=a.uris[a.uriIndex],c=new Dp,d=new lp,e=np(d),f=0,g=new _.Nh;c.open(a.method,b,!0);c.responseType="arraybuffer";c.timeout=a.timeout;c.withCredentials=a.allowCrossSiteCredentials;var h=!1,l=!1;c.onreadystatechange=function(n){n=n.target;n.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!h&&(n=n.getResponseHeader(ua),Kh(a,n),h=!0)};c.onload=function(n){n=n.target;var p=(n.getAllResponseHeaders()||"").trim().split("\r\n"),q={};p=_.u(p);for(var r=p.next();!r.done;r=p.next())r=r.value.split(": "),
269
+ q[r[0].toLowerCase()]=r.slice(1).join(": ");try{var w=mp(e);l||Lh(a,n.response?n.response.length:0,w);var y=_.Jh(q,n.response,n.status,b,n.responseURL,a,w);a.rateLimitBps?Mh(a.rateLimitBps,mp(e),a.bytesLoaded).then(function(){g.resolve(y)}):g.resolve(y)}catch(A){g.reject(A)}};c.onerror=function(n){n=n.target;if(0>=n.status)g.reject(new _.L(1,1,1002,{url:b,request:a,status:n.status}));else{var p=n.getAllResponseHeaders(),q={};if(p){p=_.u(p.trim().split("\r\n"));for(var r=p.next();!r.done;r=p.next())r=
270
+ r.value.split(": "),q[r[0].toLowerCase()]=r.slice(1).join(": ")}n=_.Jh(q,n.response,n.status,b,n.responseURL,a,mp(e));g.resolve(n)}};c.ontimeout=function(){g.reject(new _.L(1,1,1003,{url:b,request:a}))};c.onprogress=function(n){var p=mp(d);d.a=kp();if(100<p||n.lengthComputable&&n.loaded===n.total)Lh(a,n.loaded-f,p),f=n.loaded,l=!0};for(var m in a.headers)c.setRequestHeader(m.toLowerCase(),a.headers[m]);c.send(a.body);return{P:g,request:a,abort:function(){c.abort();g.reject(new _.L(1,1,7001,{url:b,
271
+ request:a}));return Promise.resolve()}}};Ep=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.h=new pp(a);this.length=a;this.w=b;this.f=this.a=this.g=0;this.j=null;this.m=-1;this.o=new lp};
272
+ Hp=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,mp(a.o)),a.o.a=kp());if(f)return f=Fp(a),(f=c(!0,f))?f.then(function(){return a.h.a.buffer}):Promise.resolve(a.h.a.buffer);var g=Promise.resolve();if(null!=e){qp(a.h,e);a.a=a.g;a.f=a.h.f;a.j=new DataView(a.h.a.buffer,0,a.h.f);e=Gp(a);for(f=[];e;)f.push(e),e=Gp(a);if(!a.w)f.forEach(function(m){g=g.then(function(){return c(!1,m)})});else if(0<f.length){e=f[0];if(1<f.length){e=f[0];var h=f[f.length-1],
273
+ l=h.end-e.start;e={start:e.start,end:h.end,length:l,data:new DataView(a.h.a.buffer,e.start,l),count:f.length}}(f=c(!1,e))&&(g=f)}}return g.then(function(){return Hp(a,b,c,d)})})};Gp=function(a){if(0<=a.m&&a.f<a.m)return null;for(var b=Ip(a);null!==b;){if(b.name===_.xd){var c={start:a.g,end:b.end,length:b.end-a.g,data:new DataView(a.h.a.buffer,a.g,b.end-a.g),count:1};a.g=b.end;return c}b=Ip(a)}return null};
274
+ Ip=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=Jp(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=Jp(a);d=String.fromCharCode(d>>24&255,d>>16&255,d>>8&255,d&255);switch(c){case 0:c=a.f-b;break;case 1:if(a.a+8>=a.f)return a.a=a.f,null;try{var e=a.j.getUint32(a.a,!1);var f=a.j.getUint32(a.a+4,!1)}catch(g){throw new _.L(_.M,3,3E3);}if(2097151<e)throw new _.L(_.M,3,3E3);a.a+=8;c=e*Math.pow(2,32)+f}c=b+c;a.m=c;return a.f>=c?(a.a=c,{name:d,start:b,end:c}):null};
275
+ Jp=function(a){var b=a.j.getUint32(a.a,!1);a.a+=4;return b};Fp=function(a){var b=null;a.g!==a.f&&(b={start:a.g,end:a.f,length:a.f-a.g,data:new DataView(a.h.a.buffer,a.g,a.f-a.g),count:-1});return b};Lp=function(a){_.Oh.call(this,new _.Nh,function(){return Promise.resolve()});this.A=a;this.g=null;this.o=this.P;this.f=-1;this.h=this.j=this.m=null;Kp(this)};Mp=function(a,b,c){a.m=setTimeout(b,c)};
276
+ Kp=function(a){a.g=a.A.then(function(e){a.h=e.request;e.request.uriIndex=e.request.currentAttempt%e.request.uris.length;if(0<e.request.currentAttempt){-1===a.f&&(a.f=Np(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*Np(e.request.fuzzFactor,.5));a.f*=Np(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.j=h;Mp(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.L(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
277
+ return e.plugin(e.request)});var b=0,c=0,d=0;return a.g.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.P}).then(function(e){a.o.resolve(e)})["catch"](function(e){if(e instanceof _.L){var f=b<d,g=7001!==e.code,h=b<c;if((1===e.severity||f)&&g&&h)return Kp(a);g&&e.a(_.M);a.o.reject(e)}else a.o.reject(e)})};Np=function(a,b){return null===a||void 0===a?b:a};
278
+ Yh=function(a){var b=new Op,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new Pp,e={Uc:!1,xg:!1};b={P:Qp(a.uris[a.uriIndex],a,{body:a.body||void 0,headers:b,method:a.method,signal:d.signal,credentials:a.allowCrossSiteCredentials?"include":void 0},e),request:a,abort:function(){e.Uc||(e.Uc=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.xg=!0;d.abort()},a);b.P=b.P["finally"](function(){window.clearTimeout(f)})}return b};
279
+ Qp=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,r,w,y,A,E,F;return _.B(function(D){switch(D.a){case 1:return e=Rp,h=new lp,l=np(h),_.yf(D,2),_.x(D,e(a,c),4);case 4:f=D.f;m=f.headers.get(ua);Kh(b,m);n=m?parseInt(m,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return r=f.body.getReader(),w=new Ep(n,!b.disableMergedFragments),y=function(I,O){if(d.Uc)return null;O&&O.data&&(Lh(b,O.data.byteLength,mp(h)),h.a=kp());return b.onFragment&&O?b.rateLimitBps?Mh(b.rateLimitBps,mp(l),b.bytesLoaded).then(function(){return b.onFragment(O)}):
280
+ b.onFragment(O):null},_.x(D,Hp(w,r,y,b.onProgress),10);p=f.body.getReader();q=new Ap(n);return _.x(D,Cp(q,p,b),7);case 7:g=D.f;if(!b.rateLimitBps){D.H(6);break}return _.x(D,Mh(b.rateLimitBps,mp(l),g.byteLength),6);case 10:g=D.f;case 6:_.zf(D,3);break;case 2:A=_.Af(D);if(d.Uc)throw new _.L(1,1,7001,{url:a,request:b});if(d.xg)throw new _.L(1,1,1003,{url:a,request:b});_.Sf("Error while fetching data:",A);throw new _.L(1,1,1002,{url:a,error:A,request:b,status:-1},A);case 3:E={};F=f.headers;F.forEach(function(I,
281
+ O){E[O.trim()]=I});if(d.Uc)throw new _.L(1,1,7001,{url:a,request:b});return D["return"](_.Jh(E,g,f.status,a,f.url,b,mp(l)))}})};Th=function(a){try{var b=a.uris[a.uriIndex],c=_.Sp(b);return{P:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{P:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
282
+ _.Sp=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Sf("Bad data URI, failed to parse scheme"),new _.L(_.M,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.Sf("Bad data URI, failed to extract encoding and MIME type"),new _.L(_.M,1,1004,{uri: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());return{data:d?_.dk(a).buffer:_.th(a).buffer,contentType:c}};_.Up=function(a){delete _.Tp[a]};
283
+ _.Vp=function(a){a=a.getConfiguration();a=_.K.Na(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.ue?a.backgroundColor:null;this.V=typeof a.windowColor===_.ue?a.windowColor:null;this.R=typeof a.fontColor===_.ue?a.fontColor:null;this.T=typeof a.fontFamily===_.ue?a.fontFamily:null;this.I=typeof a.fontSize===_.ue?a.fontSize:null;this.A=typeof a.fontSizePercent===_.k?a.fontSizePercent:null;this.F=typeof a.edgeColor===_.ue?a.edgeColor:"rgba(0, 0, 0, 1)";this.m=null;typeof a.edgeType===
284
+ _.ue&&(this.m=a.edgeType)};_.$p=function(a){if(!a.m)return null;var b=a.F;switch(a.m){case Wp:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case Xp:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case Yp:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case Zp:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.Id}};aq=function(a){this.g=a;this.a=null;this.f=new _.H("clpp.text.Mp4TextParser")};
285
+ _.cq=function(a){_.Vp.call(this,a);this.j=a.getSurface().getMedia();this.f="clpp-video-"+bq++;this.g=document.createElement(_.we);this.h=this.o=!1;_.An(this.j,this.f);document.head.appendChild(this.g);this.pb()};dq=function(){};_.eq=function(){};mf=typeof Object.create==_.id?Object.create:function(a){function b(){}b.prototype=a;return new b};
286
+ if(typeof Object.setPrototypeOf==_.id)fq=Object.setPrototypeOf;else{var gq;a:{var hq={Cg:!0},iq={};try{iq.__proto__=hq;gq=iq.Cg;break a}catch(a){}gq=!1}fq=gq?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
287
+ var nf=fq,rf=typeof Object.defineProperties==_.id?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},pf="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;sf.prototype.toString=function(){return this.a};var qf=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new sf("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
288
+ vf.prototype.w=function(a){this.f=a};vf.prototype["return"]=function(a){this.g={"return":a};this.a=this.j};vf.prototype.H=function(a){this.a=a};
289
+ Hf("Promise",function(a){function b(g){this.f=0;this.j=void 0;this.a=[];var h=this.g();try{g(h.resolve,h.reject)}catch(l){h.reject(l)}}function c(){this.a=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.f=function(g){if(null==this.a){this.a=[];var h=this;this.g(function(){h.j()})}this.a.push(g)};var e=pf.setTimeout;c.prototype.g=function(g){e(g,0)};c.prototype.j=function(){for(;this.a&&this.a.length;){var g=this.a;this.a=[];for(var h=0;h<g.length;++h){var l=
290
+ g[h];g[h]=null;try{l()}catch(m){this.h(m)}}}this.a=null};c.prototype.h=function(g){this.g(function(){throw g;})};b.prototype.g=function(){function g(m){return function(n){l||(l=!0,m.call(h,n))}}var h=this,l=!1;return{resolve:g(this.B),reject:g(this.h)}};b.prototype.B=function(g){if(g===this)this.h(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.D(g);else{a:switch(typeof g){case _.Jd:var h=null!=g;break a;case _.id:h=!0;break a;default:h=!1}h?this.A(g):this.m(g)}};
291
+ b.prototype.A=function(g){var h=void 0;try{h=g.then}catch(l){this.h(l);return}typeof h==_.id?this.F(h,g):this.m(g)};b.prototype.h=function(g){this.o(2,g)};b.prototype.m=function(g){this.o(1,g)};b.prototype.o=function(g,h){if(0!=this.f)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.f);this.f=g;this.j=h;this.w()};b.prototype.w=function(){if(null!=this.a){for(var g=0;g<this.a.length;++g)f.f(this.a[g]);this.a=null}};var f=new c;b.prototype.D=function(g){var h=this.g();
292
+ g.td(h.resolve,h.reject)};b.prototype.F=function(g,h){var l=this.g();try{g.call(h,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,h){function l(q,r){return typeof q==_.id?function(w){try{m(q(w))}catch(y){n(y)}}:r}var m,n,p=new b(function(q,r){m=q;n=r});this.td(l(g,m),l(h,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.td=function(g,h){function l(){switch(m.f){case 1:g(m.j);break;case 2:h(m.j);break;default:throw Error("Unexpected state: "+
293
+ m.f);}}var m=this;null==this.a?f.f(l):this.a.push(l)};b.resolve=d;b.reject=function(g){return new b(function(h,l){l(g)})};b.race=function(g){return new b(function(h,l){for(var m=_.u(g),n=m.next();!n.done;n=m.next())d(n.value).td(h,l)})};b.all=function(g){var h=_.u(g),l=h.next();return l.done?d([]):new b(function(m,n){function p(w){return function(y){q[w]=y;r--;0==r&&m(q)}}var q=[],r=0;do q.push(void 0),r++,d(l.value).td(p(q.length-1),n),l=h.next();while(!l.done)})};return b});var Jf=this||self;
294
+ Jf.a=!0;_.K={Bg:20,Na:function(a){var b=_.K.S,c=_.K.Rf,d=_.K.Wa;return b(a)||c(a)?a:d(a)}};_.C("clpp.utils.obj.cloneItem",_.K.Na);_.K.Wa=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];c={};for(var d=0;d<b.length;d++)null!=b[d]&&(c=_.K.Uf(c,{merging:b[d]},1));return c.merging||null};_.C("clpp.utils.obj.merge",_.K.Wa);
295
+ _.K.Uf=function(a,b,c){var d=_.K.S,e=_.K.Rf,f=_.K.Uf,g=_.K.kb,h=_.K.yi,l=_.K.Qf,m=_.K.si,n=_.K.Ic;c+=1;if(d(a)||!n(a))a={};for(var p in b)n=b[p],e(n)||d(n)||g(n)||m(n)?a[p]=n:h(n)?a[p]=n.subarray(0):n instanceof Array?a[p]=f([],n,c):!d(n)&&l(n)&&c<_.K.Bg&&(a[p]=f(a[p],n,c));return a};_.K.Rf=function(a){a=typeof a;return a===_.ue||a===_.k||a===_.rc};_.K.si=function(a){return a instanceof Element};_.K.S=function(a){return null===a||"undefined"===typeof a};_.K.Ic=function(a){return typeof a===_.Jd};
296
+ _.K.kb=function(a){return typeof a===_.id};_.K.Y=function(a){return typeof a===_.ue};_.K.ka=function(a){return typeof a===_.k};_.K.Of=function(a){return typeof a===_.rc};_.K.Qf=function(a){var b=_.K.Ic,c=_.K.S;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.K.yi=function(a){var b=_.K.Ic,c=_.K.kb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
297
+ _.K.va=function(a,b,c,d){if(a===b||null===a&&null===b||void 0===a&&void 0===b)return!0;if(null===a&&null!==b||null!==a&&null===b||void 0!==a&&void 0===b||void 0===a&&void 0!==b||!_.K.Ic(a)||!_.K.Ic(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var h=e[g];if(_.K.S(d)||0>d.indexOf(h))if(f[h]=!0,a[h]!==b[h])return!1}if(_.K.S(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.K.S(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
298
+ _.K.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.K.vi=function(a,b,c){return a>=b&&a<=c};_.K.jf=function(a){for(var b=new Map,c=_.u(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.K.kf=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};var Nf={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.C("clpp.log.Level",Nf);var Lf=3,Kf={},jq=[];_.C("clpp.log.getLoggers",function(){return _.K.Na(Kf)});_.C("clpp.log.addInterceptor",function(a){a&&jq.push(a)});_.C("clpp.log.removeInterceptor",function(a){a&&(a=jq.indexOf(a),0<=a&&jq.splice(a,1))});_.C("clpp.log.getTagLevel",Mf);_.C("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Kf[a]});_.C("clpp.log.setTagLevel",function(a,b){a&&(_.K.Y(b)&&(b=Of(b)),Kf[a]=b)});
299
+ _.C("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.K.Y(a)&&(a=Of(a));Lf=a});_.C("clpp.log.getLogLevel",function(){return Lf});_.t=_.H.prototype;
300
+ _.t.log=function(a,b){if(window.console){if(1<arguments.length){var c=arguments[0];Array.prototype.shift.call(arguments)}else c=3;var d=Mf(this.a);if(0<=d){if(d<c)return}else if(Lf<c)return;this.a&&Array.prototype.unshift.call(arguments,"["+this.a+"]");d=new Date;d.toISOString&&(d=d.toISOString().substring(11).replace("Z",""),Array.prototype.unshift.call(arguments,d));4===c?console.log.apply(console,arguments):3===c?console.info.apply(console,arguments):2===c?console.warn.apply(console,arguments):
301
+ 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.u(jq);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.t.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.t.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.t.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
302
+ _.t.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.t.Vh=function(a){return a?this.a?new _.H(this.a+"."+a):new _.H(a):this};_.C("clpp.log.Logger",_.H);_.H.prototype.createChild=_.H.prototype.Vh;_.H.prototype.error=_.H.prototype.error;_.H.prototype.warn=_.H.prototype.warn;_.H.prototype.debug=_.H.prototype.debug;_.H.prototype.info=_.H.prototype.info;_.H.prototype.log=_.H.prototype.log;var Pf=new _.H("clpp");_.C("clpp.log.info",_.Qf);
303
+ _.C("clpp.log.debug",_.Rf);_.C("clpp.log.warn",_.G);_.C("clpp.log.error",_.Sf);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.Xf=new _.H("clpp.players");_.Wf={};_.ag.prototype.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.ag.prototype.get=function(a){return(a=this.a[a])?a.slice():[]};_.ag.prototype.remove=function(a,b){var c=this.a[a];if(!c)return!1;for(var d=!1,e=0;e<c.length;++e)c[e]==b&&(c.splice(e,1),--e,d=!0);return d};_.ag.prototype.clear=function(){this.a={}};bg.prototype.Ub=function(a){try{this.zc.handleEvent?this.zc.handleEvent(a):this.zc.call(this.a,a)}catch(b){_.Sf("clpp","Uncaught exception in event handler for event '"+this.f+"'",b,b?b.message:null,b?b.stack:null)}};_.J.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.J.prototype.stopImmediatePropagation=function(){this.f=!0};_.J.prototype.stopPropagation=function(){};_.t=cg.prototype;
304
+ _.t.trigger=function(a){var b=this.a.get(a.type);if(b)for(var c=0;c<b.length&&(a.target=this.f,a.currentTarget=this.f,b[c].Ub(a),b[c].Cj&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.t.on=function(a,b,c){this.a.push(a,new bg(a,b,c||this.f));return b};_.t.one=function(a,b,c){this.a.push(a,new bg(a,b,c||this.f,!0));return b};_.t.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].zc===b&&(d=this.a.remove(a,c[e])||d);return d};_.t.clear=function(){this.a.clear()};_.dg.prototype.release=function(){_.gg(this)};_.dg.prototype.on=function(a,b,c,d){a=new hg(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.dg.prototype.one=function(a,b,c){function d(f){e.off(a,b,d);return c(f)}var e=this;this.on(a,b,d)};_.dg.prototype.off=function(a,b,c){for(var d=this.a.get(b)||[],e=0;e<d.length;++e){var f=d[e];f.target!=a||c!=f.a&&c||(fg(f),this.a.remove(b,f))}};ig.prototype.release=function(){this.f.release();this.g=[];this.a=null};ig.prototype.destroy=function(){var a=this;return _.B(function(b){a.release();a.j=null;a.h=null;_.z(b)})};ig.prototype.getTimelineCues=function(){return this.g};_.C("clpp.text.Cue",_.yg);_.yg.positionAlign={LEFT:_.sd,RIGHT:_.td,CENTER:_.Ac,AUTO:"auto"};_.sg=_.Be;_.yg.payloadType={TEXT:_.sg,VTT_XML:_.Xe,TTML_XML:_.Ge};_.tg=_.Ac;_.kq={LEFT:_.pd,RIGHT:_.ie,CENTER:_.tg,START:_.pd,END:_.ie};_.yg.textAlign=_.kq;var xg="ltr";_.yg.direction={HORIZONTAL_LEFT_TO_RIGHT:xg,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.ug="horizontal-tb";_.yg.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.ug,VERTICAL_LEFT_TO_RIGHT:_.Oe,VERTICAL_RIGHT_TO_LEFT:_.Pe};_.vg=0;
305
+ _.yg.lineInterpretation={LINE_NUMBER:_.vg,PERCENTAGE:1};_.wg=_.pe;_.lq={CENTER:_.Ac,START:_.wg,END:_.ed};_.yg.lineAlign=_.lq;_.C("clpp.text.CueRegion",_.Bg);_.zg=1;_.Bg.units={PX:0,PERCENTAGE:_.zg,LINES:2};var Ag="";_.Bg.scrollMode={NONE:Ag,UP:"up"};_.Bg.displayAlign={BEFORE:"flex-end",CENTER:_.Ac,AFTER:"flex-start"};_.Bg.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Mc,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};Cg.prototype.destroy=function(){this.a.release();this.h=!1;this.j=this.a=this.g=this.f=null;return Promise.resolve()};Cg.prototype.start=function(a){var b=this;this.h?this.m.warn("Already started. Ignoring request..."):(this.h=!0,this.g=a,this.f=this.g.textTracks,this.a.on(this.f,_.Vb,function(c){return Dg(b,c)}),this.a.on(this.f,Cc,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.le&&(e.mode=_.kd)}}))};
306
+ Cg.prototype.o=function(a){var b=new _.yg(a.startTime,a.endTime,a.text,_.Xe);if(_.K.Y(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Oe;break;case "rl":b.writingMode=_.Pe}_.K.ka(a.size)&&(b.size=a.size);if(_.K.Y(a.align))switch(a.align){case _.pd:case _.pe:b.textAlign=_.pd;break;case _.Ac:b.textAlign=_.tg;break;case _.ie:case _.ed:b.textAlign=_.ie}_.K.ka(a.position)&&(b.position=a.position);if(_.K.Y(a.positionAlign))switch(a.positionAlign){case _.sd:b.positionAlign=_.sd;break;case _.Ac:b.positionAlign=
307
+ _.Ac;break;case _.td:b.positionAlign=_.td}_.K.ka(a.line)&&(b.line=a.line);if(_.K.Y(a.lineAlign))switch(a.lineAlign){case _.pe:b.lineAlign=_.wg;break;case _.Ac:b.lineAlign=_.Ac;break;case _.ed:b.lineAlign=_.ed}_.K.Of(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.vg:1);return b};var Kg=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.t=_.Fg.prototype;_.t.Za="";_.t.mc="";_.t.Oa="";_.t.Lc=null;_.t.pa="";_.t.ac="";_.t.toString=function(){var a=[],b=this.Za;b&&a.push(Ng(b,mq,!0),":");if(b=this.Oa){a.push("//");var c=this.mc;c&&a.push(Ng(c,mq,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Lc;null!=b&&a.push(":",String(b))}if(b=this.pa)this.Oa&&"/"!=b.charAt(0)&&a.push("/"),a.push(Ng(b,"/"==b.charAt(0)?nq:oq,!0));(b=this.a.toString())&&a.push("?",b);(b=this.ac)&&a.push("#",Ng(b,pq));return a.join("")};
308
+ _.t.resolve=function(a){var b=new _.Fg(this);"data"===b.Za&&(b=new _.Fg);var c=!!a.Za;c?Gg(b,a.Za):c=!!a.mc;c?b.mc=a.mc:c=!!a.Oa;c?b.Oa=a.Oa:c=null!=a.Lc;var d=a.pa;if(c)Hg(b,a.Lc);else if(c=!!a.pa){if("/"!=d.charAt(0))if(this.Oa&&!this.pa)d="/"+d;else{var e=b.pa.lastIndexOf("/");-1!=e&&(d=b.pa.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):
309
+ ".."==h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.pa=d:c=""!==a.a.toString();c?_.Ig(b,Jg(a.a)):c=!!a.ac;c&&(b.ac=a.ac);return b};var mq=/[#\/\?@]/g,oq=/[#\?:]/g,nq=/[#\?]/g,Og=/[#\?@]/g,pq=/#/g;Mg.prototype.a=null;Mg.prototype.g=null;Mg.prototype.add=function(a,b){_.Qg(this);this.f=null;var c=this.a.hasOwnProperty(a)&&this.a[a];c||(this.a[a]=c=[]);c.push(b);null!==this.g&&this.g++;return this};
310
+ Mg.prototype.toString=function(){if(this.f)return this.f;if(!this.a)return"";var a=[],b;for(b in this.a)for(var c=encodeURIComponent(b),d=this.a[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="\x3d"+encodeURIComponent(d[e]));a.push(f)}return this.f=a.join("\x26")};_.on={VIDEO:_.Qe,AUDIO:_.ic,TEXT:_.Be,Vj:_.$b,IMAGE:_.ld,dk:_.xe};_.qq=1/15;var Rg={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]};var Tg={text:{mp4:_.cc,m4s:_.cc,m4i:_.cc,cmft:_.cc,vtt:_.Ce,ttml:_.fc},video:{mp4:_.Se,m4s:_.Se,m4i:_.Se,m4v:_.Se,cmfv:_.Se,ts:_.Re},audio:{mp4:_.nc,m4s:_.nc,m4i:_.nc,m4a:_.nc,cmfa:_.nc,ts:_.Re,aac:_.jc,ec3:_.lc,ac3:_.kc},image:{jpg:_.md,jpeg:_.md,png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.v(_.L,Error);_.L.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=Vg(this.severity,this.category,this.code,this.data))};_.L.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.C("clpp.Error",_.L);_.M=2;_.L.Severity={RECOVERABLE:1,FATAL:_.M};_.L.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
308
311
  _.L.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,UNKNOWN_DATA_URI_ENCODING:1005,REQUEST_MODIFIER_ERROR:1006,RESPONSE_MODIFIER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,FETCH_OR_APPEND_ERROR:2010,INVALID_MP4:2011,
309
312
  TEXT_PARSER_MISSING:2012,THUMBNAILS_FAILED_TO_LOAD:2013,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,
310
313
  MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,MP4_PARSER_ERROR:3019,MEDIA_LOAD_ERROR:3100,INVALID_TRACK_TYPE:3101,UNKNOWN_TRACK:3102,MEDIA_DECRYPTION_ERROR:3103,PLAY_NOT_ALLOWED:3200,UNABLE_TO_GUESS_MANIFEST_TYPE:4E3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,
@@ -313,62 +316,62 @@ DASH_XLINK_DEPTH_LIMIT:4028,HLS_COULD_NOT_PARSE_SEGMENT_START_TIME:4030,CONTENT_
313
316
  FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,REQUESTED_DRM_ENVIRONMENT_UNAVAILABLE:6015,INIT_DATA_TRANSFORM_ERROR:6016,CERTIFICATE_REQUEST_FAILED:6100,NO_CONTENT_ID:6101,SERVER_CERTIFICATE_REQUIRED:6102,EXTRACT_CONTENT_ID_MODIFIER_ERROR:6103,
314
317
  FAILED_TO_PERSIST_SESSION:6200,FAILED_TO_REMOVE_SESSION:6201,INVALID_SESSION_STORAGE_IMPLEMENTATION:6202,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,CANNOT_LOAD_SOURCE:7003,MEDIA_ELEMENT_NOT_FOUND:7004,INVALID_MEDIA_ELEMENT:7005,INVALID_CONTAINER_ELEMENT:7006,INVALID_CONFIGURATION:7100,INVALID_LICENSE:7101,NO_ELEMENT:7102,USER_ID_NOT_PROVIDED:7103,KEY_LOAD_ERROR:7104,TIZEN_INTERNAL_ERROR:7200,CAF_INTERNAL_ERROR:7300,INTERNAL_CAST_ERROR:8E3,CAST_API_NOT_READY:8001,NO_RECEIVERS_AVAILABLE:8002,
315
318
  ALREADY_CASTING:8003,NO_CAST_SESSION:8004,CONVIVA_SDK_NOT_LOADED:9E3,CONVIVA_INVALID_CONFIGURATION:9001,CONVIVA_RUNTIME_ERROR:9002,GL_CONTEXT_ERROR:9003,GL_SHADER_ERROR:9004,YOUBORA_SDK_MISSING:9100,YOUBORA_INVALID_CONFIGURATION:9101,YOUBORA_SDK_VERSION_NOT_SUPPORTED:9102,VIMOND_INVALID_CONFIGURATION:9200,VIMOND_SESSION_ERROR:9201,MUXDATA_INVALID_CONFIGURATION:9300,MUX_SDK_MISSING:9301,MUXDATA_INIT_ERROR:9302,IMA_SDK_MISSING:1E4,IMA_INVALID_CONFIGURATION:10001,IMA_UNSUPPORTED_PLATFORM:10002,AD_ERROR:10003,
316
- BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3};_.Vg.prototype.toString=function(){function a(d){return d.name+"\x3d"+(isNaN(Number(d.value))?'"'+d.value+'"':d.value)}var b="#"+this.name,c=this.attributes?this.attributes.map(a):[];this.value&&c.unshift(this.value);0<c.length&&(b+=":"+c.join(","));return b};_.Vg.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name==a});return b.length?b[0]:null};var ch=function pq(a){var c;return _.Ff(pq,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.y(d,c,3):d.H(0);c++;return d.H(2)})};_.B("clpp.utils.BufferUtils",ah);ah.toArrayBuffer=mh;ah.toDataView=_.lh;ah.toInt32Array=_.kh;ah.toUint32Array=ih;ah.toUint16Array=hh;ah.toUint8Array=_.N;ah.equal=dh;var ph=new _.H("clpp.utils.strings");_.B("clpp.utils.strings.fromUtf8",_.oh);_.B("clpp.utils.strings.fromBytesAutoDetect",_.rh);_.B("clpp.utils.strings.toUtf8",_.sh);_.B("clpp.utils.strings.toUtf16",_.th);_.B("clpp.utils.strings.toByteArray",_.uh);_.B("clpp.utils.strings.startsWith",_.vh);_.B("clpp.utils.strings.endsWith",_.wh);_.B("clpp.utils.strings.bitrateToString",_.zh);
317
- _.B("clpp.utils.strings.durationToString",function(a,b){function c(h){return function(l,m){return d(h,m.length-1)}}function d(h,l){return h.length<l?d("0"+h,l):h}b=void 0===b?"%h:%mm:%ss":b;if(null===a||void 0===a)a=0;if(null===b||void 0===b)b="%h:%mm:%ss";var e=Math.floor(a/3600),f=Math.floor((a-3600*e)/60),g=Math.floor(a-3600*e-60*f);return b.replace(/(%h+)/,c(String(e))).replace(/(%m+)/,c(String(f))).replace(/(%s+)/,c(String(g)))});
318
- _.B("clpp.utils.strings.hashCode",function(a){var b=0;if(0===a.length)return b;for(var c=0;c<a.length;c++)b=(b<<5)-b+a.charCodeAt(c),b|=0;return b});var Ah=document.createElement("span");var Dh=[403,401];_.B("clpp.net.DEFAULT_FATAL_STATUS_CODES",Dh);_.B("clpp.net.makeRequest",_.Hh);_.Gh=6;_.B("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.Gh});_.Mh.prototype.resolve=function(){};_.Mh.prototype.reject=function(){};_.Nh.prototype.abort=function(){this.a=!0;return this.w()};_.Nh.prototype.sd=function(a,b){function c(){e.reject(new _.L(_.M,7,7001));return d.abort()}var d=this,e=new _.Mh;this.P.then(function(f){d.a?e.reject(new _.L(_.M,7,7001)):a?c=Ph(a,f,e):e.resolve(f)},function(f){b?c=Ph(b,f,e):e.reject(f)});return new _.Nh(e,function(){return c()})};_.Nh.aborted=function(){var a=Promise.reject(new _.L(_.M,7,7001));a["catch"](function(){});return new _.Nh(a,function(){return Promise.resolve()})};
319
- _.Nh.prototype.chain=_.Nh.prototype.sd;_.Qh.prototype.destroy=function(){for(var a=[],b=_.u(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.P["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.t=_.Yh.prototype;_.t.Jj=function(a){0<a?_.F("Rate limit set to "+a+"bps"):_.F("Rate limit disabled");this.h=a};_.t.release=function(){return this.j.destroy()};_.t.destroy=function(){this.m=!0;this.f=[];this.g=[];return this.j.destroy()};_.t.Cg=function(a){this.f.push(a)};_.t.be=function(a){this.g.push(a)};_.t.Bj=function(a){this.f=this.f.filter(function(b){return b!==a})};_.t.Se=function(a){this.g=this.g.filter(function(b){return b!==a})};
320
- _.t.fetch=function(a){var b=this;if(this.m)return new Jp(Promise.reject(new _.L(1,1,7001,{url:a.uris[a.uriIndex],request:a})));this.h&&0<this.h&&(a.rateLimitBps=this.h);for(var c=[],d=_.u(this.f),e=d.next();!e.done;e=d.next())c.push(e.value);if(a.requestModifiers)for(d=_.u(a.requestModifiers),e=d.next();!e.done;e=d.next())c.push(e.value);a.requestModifiers=c;c=[];d=_.u(this.g);for(e=d.next();!e.done;e=d.next())c.push(e.value);if(a.responseModifiers)for(d=_.u(a.responseModifiers),e=d.next();!e.done;e=
321
- d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.Mh;try{var f={},g=_.u(a.requestModifiers);for(e=g.next();!e.done;f={Wd:f.Wd},e=g.next())f.Wd=e.value,d=d.then(function(m){return function(n){if(h.a)throw new _.L(_.M,1,7001,n?{url:n.uris[n.uriIndex],request:n}:null);return m.Wd(n)||n}}(f))["catch"](function(m){if(m instanceof _.L)throw m;throw new _.L(_.M,1,1006,null,m);});d=d.then(function(m){var n=new _.Eg(m.uris[m.uriIndex]),p=n.Ya;p||(p=location.protocol,p=p.slice(0,-1),Fg(n,p),m.uris[m.uriIndex]=
322
- n.toString());p=b.a[p];if(!p)throw new _.L(_.M,1,1E3,{url:n.toString()});return{request:m,plugin:p}});var h=new Jp(d);g={};var l=_.u(a.responseModifiers);for(e=l.next();!e.done;g={pd:g.pd},e=l.next())g.pd=e.value,h.then(function(m){return function(n){function p(){if(h.a)throw new _.L(_.M,1,7001,n?{url:n.request.uris[n.request.uriIndex],request:n.request}:null);}p();var q=m.pd(n)||n;p();return q}}(g))["catch"](function(m){return function(n){if(n instanceof _.L&&n.data&&n.data.response){var p=m.pd(n.data.response);
323
- if(p)return p.then(function(){return Promise.reject(n)})}return Promise.reject(n)}}(g))["catch"](function(m){if(m instanceof _.L)throw m;throw new _.L(_.M,1,1007,null,m);});_.Rh(this.j,h);c.resolve(a);return h}catch(m){return new Jp(Promise.reject(m))}};_.Yh.prototype.fetch=_.Yh.prototype.fetch;_.Yh.prototype.removeResponseModifier=_.Yh.prototype.Se;_.Yh.prototype.removeRequestModifier=_.Yh.prototype.Bj;_.Yh.prototype.addResponseModifier=_.Yh.prototype.be;_.Yh.prototype.addRequestModifier=_.Yh.prototype.Cg;
324
- _.Yh.prototype.setRateLimit=_.Yh.prototype.Jj;var gi;_.di.prototype.va=function(a){return this.type===a.type&&this.channelsCount===a.channelsCount&&this.frameRate===a.frameRate&&this.kind===a.kind&&this.label===a.label&&this.language===a.language&&this.mimeType===a.mimeType&&ci(this.roles,a.roles)&&ci(this.accessibility,a.accessibility,ki)};_.di.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.B("clpp.Track",_.di);_.di.prototype.toString=_.di.prototype.toString;
325
- _.B("clpp.Rendition",_.li);_.ii=1;_.fi=_.Pe;_.Q=_.ic;_.P=_.Ae;gi=_.zd;_.qq={VIDEO:_.fi,AUDIO:_.Q,TEXT:_.P,METADATA:gi};_.di.Type=_.qq;_.B("clpp.utils.url.queryString",_.oi);_.Ci=[];_.t=_.R.prototype;_.t.fe=function(){return!0};_.t.ai=function(a){return this.getVideoTracks().find(function(b){return _.J.va(b,a,a&&Object.keys(a))})};_.t.Xh=function(a){return this.getAudioTracks().find(function(b){return _.J.va(b,a,a&&Object.keys(a))})};_.t.Zh=function(a){return this.fa().find(function(b){return _.J.va(b,a,a&&Object.keys(a))})};_.t.$h=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.J.va(b,a,a&&Object.keys(a))})};
326
- _.t.Wh=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.J.va(b,a,a&&Object.keys(a))})};_.t.Yh=function(a){return this.fa().flatMap(function(b){return b.renditions}).find(function(b){return _.J.va(b,a,a&&Object.keys(a))})};_.B("clpp.TrackManager",_.R);_.R.prototype.isAbrEnabled=_.R.prototype.ha;_.R.prototype.addTextTrack=_.R.prototype.addTextTrack;_.R.prototype.findTextRendition=_.R.prototype.Yh;_.R.prototype.findAudioRendition=_.R.prototype.Wh;
327
- _.R.prototype.findVideoRendition=_.R.prototype.$h;_.R.prototype.findTextTrack=_.R.prototype.Zh;_.R.prototype.findAudioTrack=_.R.prototype.Xh;_.R.prototype.findVideoTrack=_.R.prototype.ai;_.R.prototype.setTextRendition=_.R.prototype.mb;_.R.prototype.setAudioRendition=_.R.prototype.lb;_.R.prototype.setVideoRendition=_.R.prototype.Za;_.R.prototype.setTextTrack=_.R.prototype.Ba;_.R.prototype.setAudioTrack=_.R.prototype.ra;_.R.prototype.setVideoTrack=_.R.prototype.$a;_.R.prototype.getTextTrack=_.R.prototype.la;
328
- _.R.prototype.getAudioTrack=_.R.prototype.ka;_.R.prototype.getVideoTrack=_.R.prototype.Ia;_.R.prototype.getLoadingTextRendition=_.R.prototype.fb;_.R.prototype.getLoadingAudioRendition=_.R.prototype.eb;_.R.prototype.getLoadingVideoRendition=_.R.prototype.Ta;_.R.prototype.getTextRendition=_.R.prototype.Ga;_.R.prototype.getAudioRendition=_.R.prototype.Fa;_.R.prototype.getVideoRendition=_.R.prototype.ea;_.R.prototype.getTextTracks=_.R.prototype.fa;_.R.prototype.getAudioTracks=_.R.prototype.getAudioTracks;
329
- _.R.prototype.getVideoTracks=_.R.prototype.getVideoTracks;_.R.prototype.canSelectVideoTracks=_.R.prototype.fe;var Hi=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze",
330
- "cs"],["dan","da"],["deu","de"],[_.Vc,"dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice",
319
+ BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3};_.Wg.prototype.toString=function(){function a(d){return d.name+"\x3d"+(isNaN(Number(d.value))?'"'+d.value+'"':d.value)}var b="#"+this.name,c=this.attributes?this.attributes.map(a):[];this.value&&c.unshift(this.value);0<c.length&&(b+=":"+c.join(","));return b};_.Wg.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name==a});return b.length?b[0]:null};var dh=function rq(a){var c;return _.Gf(rq,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.x(d,c,3):d.H(0);c++;return d.H(2)})};_.C("clpp.utils.BufferUtils",bh);bh.toArrayBuffer=nh;bh.toDataView=_.mh;bh.toInt32Array=_.lh;bh.toUint32Array=kh;bh.toUint16Array=jh;bh.toUint8Array=_.N;bh.equal=gh;var qh=new _.H("clpp.utils.strings");_.C("clpp.utils.strings.fromUtf8",_.ph);_.C("clpp.utils.strings.fromBytesAutoDetect",_.sh);_.C("clpp.utils.strings.toUtf8",_.th);_.C("clpp.utils.strings.toUtf16",_.uh);_.C("clpp.utils.strings.toByteArray",_.vh);_.C("clpp.utils.strings.startsWith",_.wh);_.C("clpp.utils.strings.endsWith",_.xh);_.C("clpp.utils.strings.bitrateToString",_.Ah);
320
+ _.C("clpp.utils.strings.durationToString",function(a,b){function c(h){return function(l,m){return d(h,m.length-1)}}function d(h,l){return h.length<l?d("0"+h,l):h}b=void 0===b?"%h:%mm:%ss":b;if(null===a||void 0===a)a=0;if(null===b||void 0===b)b="%h:%mm:%ss";var e=Math.floor(a/3600),f=Math.floor((a-3600*e)/60),g=Math.floor(a-3600*e-60*f);return b.replace(/(%h+)/,c(String(e))).replace(/(%m+)/,c(String(f))).replace(/(%s+)/,c(String(g)))});
321
+ _.C("clpp.utils.strings.hashCode",function(a){var b=0;if(0===a.length)return b;for(var c=0;c<a.length;c++)b=(b<<5)-b+a.charCodeAt(c),b|=0;return b});var Bh=document.createElement("span");var Eh=[403,401];_.C("clpp.net.DEFAULT_FATAL_STATUS_CODES",Eh);_.C("clpp.net.makeRequest",_.Ih);_.Hh=6;_.C("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.Hh});_.Nh.prototype.resolve=function(){};_.Nh.prototype.reject=function(){};_.Oh.prototype.abort=function(){this.a=!0;return this.w()};_.Oh.prototype.ud=function(a,b){function c(){e.reject(new _.L(_.M,7,7001));return d.abort()}var d=this,e=new _.Nh;this.P.then(function(f){d.a?e.reject(new _.L(_.M,7,7001)):a?c=Qh(a,f,e):e.resolve(f)},function(f){b?c=Qh(b,f,e):e.reject(f)});return new _.Oh(e,function(){return c()})};_.Oh.aborted=function(){var a=Promise.reject(new _.L(_.M,7,7001));a["catch"](function(){});return new _.Oh(a,function(){return Promise.resolve()})};
322
+ _.Oh.prototype.chain=_.Oh.prototype.ud;_.Rh.prototype.destroy=function(){for(var a=[],b=_.u(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.P["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.t=_.Zh.prototype;_.t.Lj=function(a){0<a?_.G("Rate limit set to "+a+"bps"):_.G("Rate limit disabled");this.h=a};_.t.release=function(){return this.j.destroy()};_.t.destroy=function(){this.m=!0;this.f=[];this.g=[];return this.j.destroy()};_.t.Fg=function(a){this.f.push(a)};_.t.de=function(a){this.g.push(a)};_.t.Dj=function(a){this.f=this.f.filter(function(b){return b!==a})};_.t.Ue=function(a){this.g=this.g.filter(function(b){return b!==a})};
323
+ _.t.fetch=function(a){var b=this;if(this.m)return new Lp(Promise.reject(new _.L(1,1,7001,{url:a.uris[a.uriIndex],request:a})));this.h&&0<this.h&&(a.rateLimitBps=this.h);for(var c=[],d=_.u(this.f),e=d.next();!e.done;e=d.next())c.push(e.value);if(a.requestModifiers)for(d=_.u(a.requestModifiers),e=d.next();!e.done;e=d.next())c.push(e.value);a.requestModifiers=c;c=[];d=_.u(this.g);for(e=d.next();!e.done;e=d.next())c.push(e.value);if(a.responseModifiers)for(d=_.u(a.responseModifiers),e=d.next();!e.done;e=
324
+ d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.Nh;try{var f={},g=_.u(a.requestModifiers);for(e=g.next();!e.done;f={Yd:f.Yd},e=g.next())f.Yd=e.value,d=d.then(function(m){return function(n){if(h.a)throw new _.L(_.M,1,7001,n?{url:n.uris[n.uriIndex],request:n}:null);return m.Yd(n)||n}}(f))["catch"](function(m){if(m instanceof _.L)throw m;throw new _.L(_.M,1,1006,null,m);});d=d.then(function(m){var n=new _.Fg(m.uris[m.uriIndex]),p=n.Za;p||(p=location.protocol,p=p.slice(0,-1),Gg(n,p),m.uris[m.uriIndex]=
325
+ n.toString());p=b.a[p];if(!p)throw new _.L(_.M,1,1E3,{url:n.toString()});return{request:m,plugin:p}});var h=new Lp(d);g={};var l=_.u(a.responseModifiers);for(e=l.next();!e.done;g={rd:g.rd},e=l.next())g.rd=e.value,h.then(function(m){return function(n){function p(){if(h.a)throw new _.L(_.M,1,7001,n?{url:n.request.uris[n.request.uriIndex],request:n.request}:null);}p();var q=m.rd(n)||n;p();return q}}(g))["catch"](function(m){return function(n){if(n instanceof _.L&&n.data&&n.data.response){var p=m.rd(n.data.response);
326
+ if(p)return p.then(function(){return Promise.reject(n)})}return Promise.reject(n)}}(g))["catch"](function(m){if(m instanceof _.L)throw m;throw new _.L(_.M,1,1007,null,m);});_.Sh(this.j,h);c.resolve(a);return h}catch(m){return new Lp(Promise.reject(m))}};_.Zh.prototype.fetch=_.Zh.prototype.fetch;_.Zh.prototype.removeResponseModifier=_.Zh.prototype.Ue;_.Zh.prototype.removeRequestModifier=_.Zh.prototype.Dj;_.Zh.prototype.addResponseModifier=_.Zh.prototype.de;_.Zh.prototype.addRequestModifier=_.Zh.prototype.Fg;
327
+ _.Zh.prototype.setRateLimit=_.Zh.prototype.Lj;var hi;_.ei.prototype.va=function(a){return this.type===a.type&&this.channelsCount===a.channelsCount&&this.frameRate===a.frameRate&&this.kind===a.kind&&this.label===a.label&&this.language===a.language&&this.mimeType===a.mimeType&&di(this.roles,a.roles)&&di(this.accessibility,a.accessibility,li)};_.ei.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.C("clpp.Track",_.ei);_.ei.prototype.toString=_.ei.prototype.toString;
328
+ _.C("clpp.Rendition",_.mi);_.ji=1;_.gi=_.Qe;_.Q=_.ic;_.P=_.Be;hi=_.Ad;_.sq={VIDEO:_.gi,AUDIO:_.Q,TEXT:_.P,METADATA:hi};_.ei.Type=_.sq;_.C("clpp.utils.url.queryString",_.pi);_.Di=[];_.t=_.R.prototype;_.t.he=function(){return!0};_.t.ci=function(a){return this.getVideoTracks().find(function(b){return _.K.va(b,a,a&&Object.keys(a))})};_.t.Zh=function(a){return this.getAudioTracks().find(function(b){return _.K.va(b,a,a&&Object.keys(a))})};_.t.ai=function(a){return this.ha().find(function(b){return _.K.va(b,a,a&&Object.keys(a))})};_.t.bi=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.K.va(b,a,a&&Object.keys(a))})};
329
+ _.t.Yh=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.K.va(b,a,a&&Object.keys(a))})};_.t.$h=function(a){return this.ha().flatMap(function(b){return b.renditions}).find(function(b){return _.K.va(b,a,a&&Object.keys(a))})};_.C("clpp.TrackManager",_.R);_.R.prototype.isAbrEnabled=_.R.prototype.ja;_.R.prototype.addTextTrack=_.R.prototype.addTextTrack;_.R.prototype.findTextRendition=_.R.prototype.$h;_.R.prototype.findAudioRendition=_.R.prototype.Yh;
330
+ _.R.prototype.findVideoRendition=_.R.prototype.bi;_.R.prototype.findTextTrack=_.R.prototype.ai;_.R.prototype.findAudioTrack=_.R.prototype.Zh;_.R.prototype.findVideoTrack=_.R.prototype.ci;_.R.prototype.setTextRendition=_.R.prototype.nb;_.R.prototype.setAudioRendition=_.R.prototype.mb;_.R.prototype.setVideoRendition=_.R.prototype.$a;_.R.prototype.setTextTrack=_.R.prototype.Ba;_.R.prototype.setAudioTrack=_.R.prototype.sa;_.R.prototype.setVideoTrack=_.R.prototype.ab;_.R.prototype.getTextTrack=_.R.prototype.na;
331
+ _.R.prototype.getAudioTrack=_.R.prototype.ma;_.R.prototype.getVideoTrack=_.R.prototype.Ia;_.R.prototype.getLoadingTextRendition=_.R.prototype.gb;_.R.prototype.getLoadingAudioRendition=_.R.prototype.fb;_.R.prototype.getLoadingVideoRendition=_.R.prototype.Ua;_.R.prototype.getTextRendition=_.R.prototype.Ga;_.R.prototype.getAudioRendition=_.R.prototype.Fa;_.R.prototype.getVideoRendition=_.R.prototype.ga;_.R.prototype.getTextTracks=_.R.prototype.ha;_.R.prototype.getAudioTracks=_.R.prototype.getAudioTracks;
332
+ _.R.prototype.getVideoTracks=_.R.prototype.getVideoTracks;_.R.prototype.canSelectVideoTracks=_.R.prototype.he;var Ii=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze",
333
+ "cs"],["dan","da"],["deu","de"],[_.Wc,"dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice",
331
334
  "is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao",
332
335
  "mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san",
333
336
  "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",
334
- "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);_.rq=(new Map).set(_.Kc,_.Kc).set("frameRate","framerate").set("bandwidth","bitrate").set(_.df,_.df).set(_.id,_.id).set("channelsCount","channels");_.Ji.prototype.Z=function(a){return Ki(this,a,!1)};_.Ji.prototype.ab=function(a){return Ki(this,a,!0)};_.Ji.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.Li.prototype.$e=function(){this.stop();this.f();return this};_.Li.prototype.Z=function(a){var b=this;this.stop();this.a=(new _.Ji(function(){b.f()})).Z(a);return this};_.Li.prototype.ab=function(a){var b=this;this.stop();this.a=(new _.Ji(function(){b.f()})).ab(a);return this};_.Li.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.B("clpp.utils.Timer",_.Li);_.Li.prototype.stop=_.Li.prototype.stop;_.Li.prototype.tickEvery=_.Li.prototype.ab;_.Li.prototype.tickAfter=_.Li.prototype.Z;
335
- _.Li.prototype.tickNow=_.Li.prototype.$e;_.B(Jc,Ni);Ni.getInfo=_.Vh;
336
- var Xi=null,Wi=null,Zi=new _.H(Jc),hj="android",gj="ios",mj="linux",ij="osx",jj="windows",kj="tizen",lj="webos",fj=He,pj=He,oj={windows:{os_version:/windows\s+?nt\s([\d.]+)/i,ie:/windows\s+?nt.+?trident\/[\d.]+.*rv:([\d.]+)/i,edge:/windows\s+?nt.+?edge?\/([\d.]+)/i,chrome:/windows\s+?nt.+?chrome\/([\d.]+)/i,firefox:/windows\s+?nt.+?firefox\/([\d.]+)/i,opera:/windows\s+?nt.+?opr\/([\d.]+)/i},osx:{os_version:/macintosh.+?([\d._]+)/i,safari:/macintosh.+?version\/([\d._]+).+?safari/i,edge:/macintosh.+?edge?\/([\d._]+)/i,
337
+ "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);_.tq=(new Map).set(_.Lc,_.Lc).set("frameRate","framerate").set("bandwidth","bitrate").set(_.ef,_.ef).set(_.jd,_.jd).set("channelsCount","channels");_.Ki.prototype.Z=function(a){return Mi(this,a,!1)};_.Ki.prototype.bb=function(a){return Mi(this,a,!0)};_.Ki.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.Ni.prototype.bf=function(){this.stop();this.f();return this};_.Ni.prototype.Z=function(a){var b=this;this.stop();this.a=(new _.Ki(function(){b.f()})).Z(a);return this};_.Ni.prototype.bb=function(a){var b=this;this.stop();this.a=(new _.Ki(function(){b.f()})).bb(a);return this};_.Ni.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.C("clpp.utils.Timer",_.Ni);_.Ni.prototype.stop=_.Ni.prototype.stop;_.Ni.prototype.tickEvery=_.Ni.prototype.bb;_.Ni.prototype.tickAfter=_.Ni.prototype.Z;
338
+ _.Ni.prototype.tickNow=_.Ni.prototype.bf;_.C(Kc,Oi);Oi.getInfo=_.Wh;
339
+ var Yi=null,Xi=null,$i=new _.H(Kc),ij="android",hj="ios",nj="linux",jj="osx",kj="windows",lj="tizen",mj="webos",gj=Ie,qj=Ie,pj={windows:{os_version:/windows\s+?nt\s([\d.]+)/i,ie:/windows\s+?nt.+?trident\/[\d.]+.*rv:([\d.]+)/i,edge:/windows\s+?nt.+?edge?\/([\d.]+)/i,chrome:/windows\s+?nt.+?chrome\/([\d.]+)/i,firefox:/windows\s+?nt.+?firefox\/([\d.]+)/i,opera:/windows\s+?nt.+?opr\/([\d.]+)/i},osx:{os_version:/macintosh.+?([\d._]+)/i,safari:/macintosh.+?version\/([\d._]+).+?safari/i,edge:/macintosh.+?edge?\/([\d._]+)/i,
337
340
  chrome:/macintosh.+?chrome\/([\d._]+)/i,firefox:/macintosh.+?firefox\/([\d._]+)/i,opera:/macintosh.+?opr\/([\d._]+)/i},unknown:{ie:/.+?trident\/([\d.]+)/i,edge:/.+?edge?\/([\d.]+)/i,safari:/.+?version\/([\d._]+).+?safari/i,chrome:/.+?chrome\/([\d._]+)/i,firefox:/.+?firefox\/([\d._]+)/i,opera:/.+?opr\/([\d._]+)/i},android:{os_version:/android.+?([\d._]+)/i,chrome:/android.+?chrome\/([\d._]+)/i,firefox:/android.+?firefox\/([\d._]+)/i,opera:/android.+?opr\/([\d._]+)/i},ios:{os_version:/(?:iPad|iPhone).+?([\d._]+)/i,
338
341
  chrome:/.+?CriOS\/([\d._]+)/i,firefox:/.+?FxiOS\/([\d._]+)/i,safari:/.+?version\/([\d._]+).+?safari/i,opera:/.+?opr\/([\d._]+)/i},linux:{os_version:/linux.+?([\d._]+)/i,safari:/linux.+?version\/([\d._]+).+?safari/i,chrome:/linux.+?chrome\/([\d._]+)/i,firefox:/linux.+?firefox\/([\d._]+)/i,opera:/linux.+?opr\/([\d._]+)/i},tizen:{os_version:/tizen.+?([\d._]+)/i,safari:/linux.+?version\/([\d._]+).+?safari/i,chrome:/linux.+?chrome\/([\d._]+)/i,firefox:/linux.+?firefox\/([\d._]+)/i,opera:/linux.+?opr\/([\d._]+)/i},
339
- webos:{os_version:/linux.+?([\d._]+)/i,safari:/linux.+?version\/([\d._]+).+?safari/i,chrome:/linux.+?chrome\/([\d._]+)/i,firefox:/linux.+?firefox\/([\d._]+)/i,opera:/linux.+?opr\/([\d._]+)/i}};_.v(qj,_.R);_.t=qj.prototype;_.t.fe=function(){return!_.Ti()};
340
- _.t.Le=function(a,b){var c=this,d,e,f,g,h,l,m,n,p,q;return _.A(function(r){if(1==r.a){if(!b)return c.a.warn(Xa),r["return"]();d=b.track;if(!d)return c.a.warn(Ya),r["return"]();if(e=c.h.find(function(w){return Bj(w,d,a)}))return c.a.warn("Track from event already exists",d,e),r["return"]();f=ji(a,d);g=Fj(d);if(a===_.P){if(d.kind===_.zd)return r["return"]();void 0!==d.id?h=c.m[d.id]:(l=Object.values(c.m),h=l.find(function(w){return Bj(f,w,a)}));f.kind&&"captions"===f.kind&&(f.mimeType=_.ac);h&&(f.src=
341
- h.url,f.mimeType=h.mimeType)}else if(e=c.h.find(function(w){return w.type===a&&_.J.va(w,f,["kind","label","language"])}))return e.id=d.id,g&&(c.a.debug(pb+a+" track active"),c.f.set(a,e)),c.a.debug("Track from event seems to already exists, flipped native track to",d),r["return"]();_.xf(r,2);m=new _.li(f.id,f);f.renditions.push(m);c.h.push(f);return uj(c,a)?_.y(r,vj(c,f),4):r.H(4)}if(2!=r.a){c.a.debug(a+" Track added",f);c.l.trigger(new _.I(_.sq));n=yj(c,a).length;p=a===_.fi||a===_.Q;if(g||1===n&&
342
- p)c.a.debug(pb+a+" track active. Native track active: "+(g+". Number of tracks: ")+n,d),c.f.set(a,f);return _.yf(r,0)}q=_.zf(r);c.a.error("Error while converting track data",q);_.z(r)})};_.t.Ne=function(a,b){if(b){var c=b.track;if(!c)this.a.warn(Ya);else if(a===_.P&&c.kind!==_.zd){var d=this.h.find(function(e){return Bj(e,c,a)});d&&(this.h.splice(this.h.indexOf(d),1),(this.f.get(a)||null)===d&&(this.f.set(a,null),Hj(this)),this.a.debug(a+" Track removed, id: ",d.id))}}else this.a.warn(Xa)};
343
- _.t.Me=function(a,b){this.a.debug(a+" Track changed",b);a===_.P&&Hj(this);var c=xj(this,a);if(c)for(var d={qc:0};d.qc<c.length;d={qc:d.qc},++d.qc)if(Fj(c[d.qc])){if(d=this.h.find(function(e){return function(f){return Bj(f,c[e.qc],a)}}(d)))this.f.set(a,d),this.a.debug("Track change detected, id:",d.id),d===this.j.get(a)&&this.j.set(a,null),a===_.Q?this.l.trigger(new _.I(_.Cj)):a===_.P&&this.l.trigger(new _.I(_.Dj));break}};_.t.initialize=function(a){this.l=a};
344
- _.t.load=function(){this.w=!1;var a=wj(this,_.P);a&&(this.g.on(a,_.Vb,this.I),this.g.on(a,ee,this.K),this.g.on(a,Cc,this.J));if(a=wj(this,_.Q))this.g.on(a,_.Vb,this.C),this.g.on(a,ee,this.G),this.g.on(a,Cc,this.D);if(a=wj(this,_.fi))this.g.on(a,_.Vb,this.L),this.g.on(a,ee,this.S),this.g.on(a,Cc,this.O);this.g.one(this.l,vc,this.zh.bind(this))};_.t.release=function(){this.w=!0;this.h=[];this.m={};this.f.clear();this.j.clear();this.g.release()};_.t.destroy=function(){this.release();this.l=null};
345
- _.t.getVideoTracks=function(){return yj(this,_.fi)};_.t.getAudioTracks=function(){return yj(this,_.Q)};_.t.fa=function(){return yj(this,_.P)};_.t.ea=function(){var a=this,b=this.f.get(_.fi)||null;if(!b)return null;if(this.o){var c=b.renditions.find(function(d){return d.width===a.o.width&&d.height===a.o.height});if(c)return c}return b.renditions[0]||null};_.t.Fa=function(){return zj(this,_.Q)};_.t.Ga=function(){return zj(this,_.P)};_.t.Ta=function(){return Aj(this,_.fi)};
346
- _.t.eb=function(){return Aj(this,_.Q)};_.t.fb=function(){return Aj(this,_.P)};_.t.Ia=function(){return this.f.get(_.fi)||null};_.t.ka=function(){return this.f.get(_.Q)||null};_.t.la=function(){return this.f.get(_.P)||null};_.t.$a=function(a){Ej(this,_.fi,a)};_.t.ra=function(a){Ej(this,_.Q,a)};_.t.Ba=function(a){Ej(this,_.P,a)};_.t.Za=function(a){Ej(this,_.fi,a&&a.track)};_.t.lb=function(a){Ej(this,_.Q,a&&a.track)};_.t.mb=function(a){Ej(this,_.P,a&&a.track)};
347
- _.t.addTextTrack=function(a){var b=this,c;return _.A(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.A++,b.m[c]=a,rj(b,a,c),d.H(0)):_.y(d,sj(b,a),0)})};_.t.ha=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};
348
- _.t.zh=function(){var a=this,b,c,d;return _.A(function(e){if(1==e.a){b=a.l.getConfiguration();Gj(a,_.Q,b.preferredAudioLanguage);c=xj(a,_.P);if(c.some(function(f){return Fj(f)}))return e.H(2);d=wj(a,_.P);return _.y(e,new Promise(function(f){a.g.one(d,Cc,f);(new _.Li(f)).Z(1)}),2)}if(a.w)return e["return"]();Gj(a,_.P,b.preferredTextLanguage);_.z(e)})};qj.prototype.isAbrEnabled=qj.prototype.ha;qj.prototype.addTextTrack=qj.prototype.addTextTrack;qj.prototype.setTextRendition=qj.prototype.mb;
349
- qj.prototype.setAudioRendition=qj.prototype.lb;qj.prototype.setVideoRendition=qj.prototype.Za;qj.prototype.setTextTrack=qj.prototype.Ba;qj.prototype.setAudioTrack=qj.prototype.ra;qj.prototype.setVideoTrack=qj.prototype.$a;qj.prototype.getTextTrack=qj.prototype.la;qj.prototype.getAudioTrack=qj.prototype.ka;qj.prototype.getVideoTrack=qj.prototype.Ia;qj.prototype.getLoadingTextRendition=qj.prototype.fb;qj.prototype.getLoadingAudioRendition=qj.prototype.eb;qj.prototype.getLoadingVideoRendition=qj.prototype.Ta;
350
- qj.prototype.getTextRendition=qj.prototype.Ga;qj.prototype.getAudioRendition=qj.prototype.Fa;qj.prototype.getVideoRendition=qj.prototype.ea;qj.prototype.getTextTracks=qj.prototype.fa;qj.prototype.getAudioTracks=qj.prototype.getAudioTracks;qj.prototype.getVideoTracks=qj.prototype.getVideoTracks;qj.prototype.canSelectVideoTracks=qj.prototype.fe;_.t=_.Ij.prototype;_.t.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(ub);};_.t.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(ub);};_.t.rb=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:1===this.length&&0>this.start(0)?0:this.start(0)};_.t.xa=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
351
- _.t.cc=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?0:c;if(!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)||a>this.end(this.length-1))return!1;if(b)return c+a>=this.start(0)&&a<=this.end(this.length-1);for(b=0;b<this.length;b++)if(c+a>=this.start(b)&&a<=this.end(b))return!0;return!1};
352
- _.t.Da=function(a,b){b=void 0===b?!1:b;if(!this.length||1===this.length&&1E-6>this.end(0)-this.start(0))return 0;var c=0;if(b){var d=this.xa();null!=d&&(c=Math.max(0,d-a))}else for(d=this.length-1;0<=d&&this.end(d)>a;--d)c+=this.end(d)-Math.max(this.start(d),a);return c};_.B("clpp.BufferInfo",_.Ij);_.Ij.prototype.bufferedAheadOf=_.Ij.prototype.Da;_.Ij.prototype.isBuffered=_.Ij.prototype.cc;_.Ij.prototype.bufferEnd=_.Ij.prototype.xa;_.Ij.prototype.bufferStart=_.Ij.prototype.rb;_.Ij.prototype.end=_.Ij.prototype.end;
353
- _.Ij.prototype.start=_.Ij.prototype.start;_.t=_.Jj.prototype;_.t.addEventListener=function(a,b){this.on(a,b)};_.t.removeEventListener=function(a,b){this.off(a,b)};_.t.on=function(a,b,c){return this.$c.on(a,b,c)};_.t.one=function(a,b,c){return this.$c.one(a,b,c)};_.t.off=function(a,b){return this.$c.off(a,b)};_.t.addDelegate=function(a){a&&(0<=this.Yc.indexOf(a)||this.Yc.push(a))};_.t.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};_.t.removeDelegate=function(a){a&&(a=this.Yc.indexOf(a),0<=a&&this.Yc.splice(a,1))};
354
- _.t.trigger=function(a){this.$c.trigger(a);for(var b=_.u(this.Yc),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.Jj.prototype.off=_.Jj.prototype.off;_.Jj.prototype.one=_.Jj.prototype.one;_.Jj.prototype.on=_.Jj.prototype.on;_.Jj.prototype.removeEventListener=_.Jj.prototype.removeEventListener;_.Jj.prototype.addEventListener=_.Jj.prototype.addEventListener;_.B("clpp.events.ERROR",_.fd);_.B("clpp.events.LOADEDMETADATA",_.ud);_.B("clpp.events.BUFFERING_ENDED",_.sc);_.B("clpp.events.BUFFERING_STARTED",_.tc);_.B("clpp.events.STATE_CHANGED",_.pe);_.Cj="audiotrackchanged";_.B("clpp.events.AUDIO_TRACK_CHANGED",_.Cj);_.Dj="texttrackchanged";_.B("clpp.events.TEXT_TRACK_CHANGED",_.Dj);_.B("clpp.events.VIDEO_TRACK_CHANGED",_.Te);_.B("clpp.events.BITRATE_CHANGED",_.qc);_.sq="tracksadded";_.B("clpp.events.TRACKS_ADDED",_.sq);_.B("clpp.events.LOAD_START",vd);
355
- _.B("clpp.events.RELEASING",_.de);_.B("clpp.events.RELEASED",ce);_.B("clpp.events.DESTROYING","destroying");_.B("clpp.events.DESTROYED","destroyed");_.B("clpp.events.VIDEO_BUFFER_CHANGED",_.Se);_.B("clpp.events.AUDIO_BUFFER_CHANGED",_.oc);_.B("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.B("clpp.events.DRM_SESSION_UPDATE",_.$c);_.B("clpp.events.DRM_SESSION_PERSISTED",_.Yc);_.B("clpp.events.DRM_RENEWAL_STARTED",Xc);_.B("clpp.events.DRM_EXPIRATION_UPDATE",_.Wc);
356
- _.B("clpp.events.AUTOPLAY_NOT_ALLOWED",_.pc);_.B("clpp.events.PLAY",_.Wd);_.B("clpp.events.SEEKING",_.je);_.B("clpp.events.SEEKED",_.ie);_.B("clpp.events.USER_SEEKING",_.Le);_.B("clpp.events.USER_SEEKED",_.Ke);_.Wm={SEEKING:1,NO_DATA:2};_.B("clpp.events.BufferingReasons",_.Wm);_.B("clpp.events.ADS_TIMELINE_CHANGED",_.Wb);_.B("clpp.events.AD_LOADED",_.Mb);_.B("clpp.events.AD_BREAK_STARTED",_.Fb);_.B("clpp.events.AD_STARTED",_.Sb);_.B("clpp.events.AD_BUFFERING",_.Hb);_.B("clpp.events.AD_PROGRESS",_.Pb);
357
- _.B("clpp.events.AD_FIRST_QUARTILE",_.Kb);_.B("clpp.events.AD_MIDPOINT",_.Nb);_.B("clpp.events.AD_THIRD_QUARTILE",_.Ub);_.B("clpp.events.AD_PAUSED",_.Ob);_.B("clpp.events.AD_RESUMED",_.Qb);_.B("clpp.events.AD_SKIPPED",_.Rb);_.B("clpp.events.AD_CLICKED",_.Ib);_.B("clpp.events.AD_IMPRESSION",_.Lb);_.B("clpp.events.AD_COMPLETED",_.Jb);_.B("clpp.events.AD_STOPPED",_.Tb);_.B("clpp.events.AD_BREAK_STOPPED",_.Gb);_.B("clpp.events.CASTING_STARTED",_.wc);_.B("clpp.events.CASTING_ENDED","castingended");
358
- _.B("clpp.events.CAST_STATUS_CHANGED",_.xc);_.B("clpp.events.AIRPLAY_STATUS_CHANGED",_.Zb);_.B("clpp.events.AIRPLAY_CASTING_STARTED",_.Yb);_.B("clpp.events.AIRPLAY_CASTING_ENDED",_.Xb);_.ng="timeline-cue-added";_.B("clpp.events.TIMELINE_CUE_ADDED",_.ng);_.pg="timeline-cue-enter";_.B("clpp.events.TIMELINE_CUE_ENTER",_.pg);_.qg="timeline-cue-exit";_.B("clpp.events.TIMELINE_CUE_EXIT",_.qg);_.B("clpp.events.MPD_TYPE_CHANGED",_.Ed);_.B("clpp.events.VIMOND_RESPONSE",_.Ue);
359
- _.B("clpp.events.PLAYLIST_ITEM_CHANGED",_.Yd);_.B("clpp.events.PLAYLIST_MODIFIED",_.Zd);_.B("clpp.events.CDN_SWITCH_SUCCESS",_.yc);_.B("clpp.events.ONLINE_STATUS_CHANGED",Od);var Kj=["play() failed because the user didn't interact","The play method is not allowed by the user agent","The request is not allowed by the user agent or the platform"];_.B("clpp.utils.PlayerConfiguration",Mj);Mj.create=_.Rj;var tq=["abort",uc,vc,bd,"emptied",cd,_.ed,_.fd,"interruptbegin","interruptend",_.td,_.ud,vd,"mozaudioavailable",_.Sd,_.Wd,_.Xd,_.$d,_.be,_.ie,_.je,ne,"suspend",_.De,"volumechange",_.Xe,_.Ye,_.ge,cf,bf,$e,af];_.v(_.Tj,_.Jj);_.t=_.Tj.prototype;_.t.init=function(a,b){this.configuration=this.xd=b;this.B=a;this.log.info("Initializing Player surface");var c=this.B.getMedia();this.log.info("Attaching media element listeners");for(var d=_.u(tq),e=d.next();!e.done;e=d.next())e=e.value,this.K.on(c,e,this.Oj,e!==_.fd);this.Qc||(this.Qc=this.Af());this.Qc.initialize(this);this.B.showMediaElement()};_.t.release=function(){this.J&&(this.J.destroy(),this.J=null);return Promise.resolve()};
360
- _.t.destroy=function(){this.K.release();return Promise.resolve()};_.t.canPlay=function(a,b){return _.Uf[this.namespace()].canPlay(a,b)};
361
- _.t.play=function(){var a=this;if(!this.o)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.B.getMedia().play();return Promise.resolve(b)["catch"](function(c){a.log.info("Caught play promise exception",c);var d={name:c.name||"",message:c.message||"",stack:c.stack||""};Lj(d)?(a.trigger(new _.I(_.pc)),a.log.warn(_.ma)):d.name===bb&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
362
- _.t.pause=function(){var a=this;return this.o?new Promise(function(b,c){var d=a.getState();if(d!==_.Tm&&d!==_.Vm&&d!==_.bn&&d!==_.an)c();else if(a.B.getMedia().pause(),a.getState()===_.bn)a.K.one(a,_.pe,function(){b()});else b()}):Promise.reject("No sources specified yet. You need to load content before calling pause.")};_.t.isPaused=function(){return this.B.getMedia().paused};_.t.isEnded=function(){return this.B.getMedia().ended};_.t.getConfiguration=function(){return this.configuration};
363
- _.t.setDrmCustomDataModifier=function(a){this.Bc=a};_.t.setCdnErrorCallback=function(a){this.Ra=a};_.t.Ec=function(){return this.Bc};_.t.getSurface=function(){return this.B};_.t.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.Ij(b?b.buffered:void 0,a)};_.t.getPosition=function(){var a=this.B.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
364
- _.t.seek=function(a){var b=this,c=this.getPosition();if(void 0===a||null===a||typeof a!==_.k||a===c)return Promise.resolve();var d=this.B.getMedia();if(!d)return this.log.warn("No media element available, can not set current time!"),Promise.reject();var e=a-c;return.1>=Math.abs(e)?(this.log.info("Skip seek. Delta "+Math.abs(e)+" \x3c 0.1"),Promise.resolve()):new Promise(function(f,g){function h(){if(d.readyState>HTMLMediaElement.HAVE_NOTHING)m();else b.K.one(d,_.ud,m)}function l(n){var p=b.getPosition(),
365
- q=.1>=Math.abs(a-p),r=.25<p-a,w=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,x=n.type===_.ie,C=n.type===_.$d,D=n.type===_.De,E=C&&w;r=x||q&&E||D&&r;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",r,"Current Time:",p,"Target Time:",a,"Native Event:",x,"Time reached",q,"Timeupdate:",D,"Progress:",C,"ReadyState:",w,"Progress Ready:",E);r?(b.xe=!1,b.Jd=!1,b.K.off(d,_.ie,l),b.K.off(d,_.De,l),b.K.off(d,_.$d,l),b.gg(),b.trigger(new _.I(_.Ke)),f()):C&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
366
- d.currentTime=a)}function m(){b.trigger(new _.I(_.Le));b.K.on(d,_.ie,l);b.K.on(d,_.De,l);b.K.on(d,_.$d,l);b.log.info("Seeking to "+a+". Delta "+e);b.xe=!0;b.Jd=!0;d.currentTime=a}b.getState()===_.Om?(b.log.debug("Player is in IDLE state. Postpone seek."),b.K.one(b,_.pe,function(){switch(b.getState()){case _.Tm:case _.bn:case _.an:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
367
- _.t.getVolume=function(){var a=this.B.getMedia();if(a)return a.volume;this.log.warn("No media element available, can not report volume!");return null};_.t.setVolume=function(a){var b=this.B.getMedia();b?_.J.pa(a)?0>a||1<a?this.log.warn(ra+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(ra+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.t.isMuted=function(){return this.B.getMedia().muted};
368
- _.t.setMuted=function(a){var b=this.B.getMedia();typeof a===_.rc&&(b.muted=a)};_.t.getDuration=function(){return this.o?this.B.getMedia().duration:-1};_.t.getTrackManager=function(){return this.Qc};_.t.getPlaybackRate=function(){var a=this.B.getMedia();return a&&a.playbackRate||1};_.t.setPlaybackRate=function(a){var b=this.B.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.t.setSourceIndex=function(a){this.zd=a};_.t.getSourceIndex=function(){return this.zd};
369
- _.t.getLoadedSource=function(){return this.o&&-1!==this.zd?this.o[this.zd]:null};_.t.getPeriods=function(){return[]};_.t.getNetworkEngine=function(){return this.Tf};_.t.setNetworkEngine=function(a){this.Tf=a};_.t.getTextDisplayer=function(){return this.J};_.t.getTimelineCues=function(){return[]};_.t.resetAbr=function(){};
370
- _.t.zj=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.De||a.type===_.$d)this.sg.debug(d);else{var e="";switch(a.type){case _.be:e="Rate: "+this.getPlaybackRate();break;case bd:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.Wd:case _.Xd:case "suspend":case _.Xe:case ne:case _.je:case _.ie:case _.De:case _.$d:case uc:case vc:b=
371
- this.getBufferInfo().Da(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.ge:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.sg.info(d)}a.type!==_.fd&&this.trigger(new _.I(a.type,{detail:a}))};_.t.gg=function(){};_.Tj.prototype.getTextDisplayer=_.Tj.prototype.getTextDisplayer;_.Tj.prototype.setNetworkEngine=_.Tj.prototype.setNetworkEngine;_.Tj.prototype.getNetworkEngine=_.Tj.prototype.getNetworkEngine;var Wj;Wj=new _.H("clpp.Components");_.Uj=new Map;_.B("clpp.utils.Uint8ArrayUtils",_.Zj);_.Zj.toStandardBase64=_.ak;_.Zj.concat=_.gk;_.Zj.equal=_.fk;_.Zj.toHex=_.ek;_.Zj.fromHex=_.dk;_.Zj.fromBase64=_.ck;_.Zj.toBase64Url=_.bk;hk.prototype.release=function(){this.a=this.f=null};_.B("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.mb,SW_SECURE_DECODE:_.nb,HW_SECURE_CRYPTO:Ka,HW_SECURE_DECODE:Ma,HW_SECURE_ALL:"HW_SECURE_ALL"});_.B("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.B("clpp.drm.KeySystem",{NONE:_.Hd,CLEAR_KEY:_.Qd,WIDEVINE:_.Pc,PLAYREADY:_.Oc,FAIRPLAY:_.Nc,PRIMETIME:_.Mc});_.lk={};_.B("clpp.drm.registerDrmEnvironment",_.mk);var pk={V1_STAGING:[10,191,2,8,3,18,16,40,112,52,84,192,8,246,54,24,173,231,68,61,182,196,200,24,139,231,249,144,5,34,142,2,48,130,1,10,2,130,1,1,0,181,33,18,184,208,93,2,63,204,93,149,226,194,81,193,198,73,180,23,124,216,210,190,239,53,91,176,103,67,222,102,30,61,42,188,49,130,183,153,70,213,95,220,8,223,233,84,7,129,94,154,98,116,179,34,162,199,245,224,103,187,95,10,192,122,137,212,90,234,148,178,81,111,7,91,102,239,129,29,13,38,225,185,166,184,148,242,185,133,121,98,170,23,28,79,102,99,13,62,76,
342
+ webos:{os_version:/linux.+?([\d._]+)/i,safari:/linux.+?version\/([\d._]+).+?safari/i,chrome:/linux.+?chrome\/([\d._]+)/i,firefox:/linux.+?firefox\/([\d._]+)/i,opera:/linux.+?opr\/([\d._]+)/i}};_.v(rj,_.R);_.t=rj.prototype;_.t.he=function(){return!_.Ui()};
343
+ _.t.Ne=function(a,b){var c=this,d,e,f,g,h,l,m,n,p,q;return _.B(function(r){if(1==r.a){if(!b)return c.a.warn(Ya),r["return"]();d=b.track;if(!d)return c.a.warn(Za),r["return"]();if(e=c.h.find(function(w){return Cj(w,d,a)}))return c.a.warn("Track from event already exists",d,e),r["return"]();f=ki(a,d);g=Gj(d);if(a===_.P){if(d.kind===_.Ad)return r["return"]();void 0!==d.id?h=c.m[d.id]:(l=Object.values(c.m),h=l.find(function(w){return Cj(f,w,a)}));f.kind&&"captions"===f.kind&&(f.mimeType=_.ac);h&&(f.src=
344
+ h.url,f.mimeType=h.mimeType)}else if(e=c.h.find(function(w){return w.type===a&&_.K.va(w,f,["kind","label","language"])}))return e.id=d.id,g&&(c.a.debug(pb+a+" track active"),c.f.set(a,e)),c.a.debug("Track from event seems to already exists, flipped native track to",d),r["return"]();_.yf(r,2);m=new _.mi(f.id,f);f.renditions.push(m);c.h.push(f);return vj(c,a)?_.x(r,wj(c,f),4):r.H(4)}if(2!=r.a){c.a.debug(a+" Track added",f);c.l.trigger(new _.J(_.uq));n=zj(c,a).length;p=a===_.gi||a===_.Q;if(g||1===n&&
345
+ p)c.a.debug(pb+a+" track active. Native track active: "+(g+". Number of tracks: ")+n,d),c.f.set(a,f);return _.zf(r,0)}q=_.Af(r);c.a.error("Error while converting track data",q);_.z(r)})};_.t.Pe=function(a,b){if(b){var c=b.track;if(!c)this.a.warn(Za);else if(a===_.P&&c.kind!==_.Ad){var d=this.h.find(function(e){return Cj(e,c,a)});d&&(this.h.splice(this.h.indexOf(d),1),(this.f.get(a)||null)===d&&(this.f.set(a,null),Ij(this)),this.a.debug(a+" Track removed, id: ",d.id))}}else this.a.warn(Ya)};
346
+ _.t.Oe=function(a,b){this.a.debug(a+" Track changed",b);a===_.P&&Ij(this);var c=yj(this,a);if(c)for(var d={rc:0};d.rc<c.length;d={rc:d.rc},++d.rc)if(Gj(c[d.rc])){if(d=this.h.find(function(e){return function(f){return Cj(f,c[e.rc],a)}}(d)))this.f.set(a,d),this.a.debug("Track change detected, id:",d.id),d===this.j.get(a)&&this.j.set(a,null),a===_.Q?this.l.trigger(new _.J(_.Dj)):a===_.P&&this.l.trigger(new _.J(_.Ej));break}};_.t.initialize=function(a){this.l=a};
347
+ _.t.load=function(){this.w=!1;var a=xj(this,_.P);a&&(this.g.on(a,_.Vb,this.J),this.g.on(a,fe,this.L),this.g.on(a,Cc,this.K));if(a=xj(this,_.Q))this.g.on(a,_.Vb,this.D),this.g.on(a,fe,this.I),this.g.on(a,Cc,this.F);if(a=xj(this,_.gi))this.g.on(a,_.Vb,this.N),this.g.on(a,fe,this.T),this.g.on(a,Cc,this.R);this.g.one(this.l,vc,this.Ch.bind(this))};_.t.release=function(){this.w=!0;this.h=[];this.m={};this.f.clear();this.j.clear();this.g.release()};_.t.destroy=function(){this.release();this.l=null};
348
+ _.t.getVideoTracks=function(){return zj(this,_.gi)};_.t.getAudioTracks=function(){return zj(this,_.Q)};_.t.ha=function(){return zj(this,_.P)};_.t.ga=function(){var a=this,b=this.f.get(_.gi)||null;if(!b)return null;if(this.o){var c=b.renditions.find(function(d){return d.width===a.o.width&&d.height===a.o.height});if(c)return c}return b.renditions[0]||null};_.t.Fa=function(){return Aj(this,_.Q)};_.t.Ga=function(){return Aj(this,_.P)};_.t.Ua=function(){return Bj(this,_.gi)};
349
+ _.t.fb=function(){return Bj(this,_.Q)};_.t.gb=function(){return Bj(this,_.P)};_.t.Ia=function(){return this.f.get(_.gi)||null};_.t.ma=function(){return this.f.get(_.Q)||null};_.t.na=function(){return this.f.get(_.P)||null};_.t.ab=function(a){Fj(this,_.gi,a)};_.t.sa=function(a){Fj(this,_.Q,a)};_.t.Ba=function(a){Fj(this,_.P,a)};_.t.$a=function(a){Fj(this,_.gi,a&&a.track)};_.t.mb=function(a){Fj(this,_.Q,a&&a.track)};_.t.nb=function(a){Fj(this,_.P,a&&a.track)};
350
+ _.t.addTextTrack=function(a){var b=this,c;return _.B(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.A++,b.m[c]=a,sj(b,a,c),d.H(0)):_.x(d,tj(b,a),0)})};_.t.ja=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};
351
+ _.t.Ch=function(){var a=this,b,c,d;return _.B(function(e){if(1==e.a){b=a.l.getConfiguration();Hj(a,_.Q,b.preferredAudioLanguage);c=yj(a,_.P);if(c.some(function(f){return Gj(f)}))return e.H(2);d=xj(a,_.P);return _.x(e,new Promise(function(f){a.g.one(d,Cc,f);(new _.Ni(f)).Z(1)}),2)}if(a.w)return e["return"]();Hj(a,_.P,b.preferredTextLanguage);_.z(e)})};rj.prototype.isAbrEnabled=rj.prototype.ja;rj.prototype.addTextTrack=rj.prototype.addTextTrack;rj.prototype.setTextRendition=rj.prototype.nb;
352
+ rj.prototype.setAudioRendition=rj.prototype.mb;rj.prototype.setVideoRendition=rj.prototype.$a;rj.prototype.setTextTrack=rj.prototype.Ba;rj.prototype.setAudioTrack=rj.prototype.sa;rj.prototype.setVideoTrack=rj.prototype.ab;rj.prototype.getTextTrack=rj.prototype.na;rj.prototype.getAudioTrack=rj.prototype.ma;rj.prototype.getVideoTrack=rj.prototype.Ia;rj.prototype.getLoadingTextRendition=rj.prototype.gb;rj.prototype.getLoadingAudioRendition=rj.prototype.fb;rj.prototype.getLoadingVideoRendition=rj.prototype.Ua;
353
+ rj.prototype.getTextRendition=rj.prototype.Ga;rj.prototype.getAudioRendition=rj.prototype.Fa;rj.prototype.getVideoRendition=rj.prototype.ga;rj.prototype.getTextTracks=rj.prototype.ha;rj.prototype.getAudioTracks=rj.prototype.getAudioTracks;rj.prototype.getVideoTracks=rj.prototype.getVideoTracks;rj.prototype.canSelectVideoTracks=rj.prototype.he;_.t=_.Jj.prototype;_.t.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(ub);};_.t.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(ub);};_.t.rb=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:1===this.length&&0>this.start(0)?0:this.start(0)};_.t.xa=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
354
+ _.t.ec=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?0:c;if(!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)||a>this.end(this.length-1))return!1;if(b)return c+a>=this.start(0)&&a<=this.end(this.length-1);for(b=0;b<this.length;b++)if(c+a>=this.start(b)&&a<=this.end(b))return!0;return!1};
355
+ _.t.Da=function(a,b){b=void 0===b?!1:b;if(!this.length||1===this.length&&1E-6>this.end(0)-this.start(0))return 0;var c=0;if(b){var d=this.xa();null!=d&&(c=Math.max(0,d-a))}else for(d=this.length-1;0<=d&&this.end(d)>a;--d)c+=this.end(d)-Math.max(this.start(d),a);return c};_.C("clpp.BufferInfo",_.Jj);_.Jj.prototype.bufferedAheadOf=_.Jj.prototype.Da;_.Jj.prototype.isBuffered=_.Jj.prototype.ec;_.Jj.prototype.bufferEnd=_.Jj.prototype.xa;_.Jj.prototype.bufferStart=_.Jj.prototype.rb;_.Jj.prototype.end=_.Jj.prototype.end;
356
+ _.Jj.prototype.start=_.Jj.prototype.start;_.t=_.Kj.prototype;_.t.addEventListener=function(a,b){this.on(a,b)};_.t.removeEventListener=function(a,b){this.off(a,b)};_.t.on=function(a,b,c){return this.cd.on(a,b,c)};_.t.one=function(a,b,c){return this.cd.one(a,b,c)};_.t.off=function(a,b){return this.cd.off(a,b)};_.t.addDelegate=function(a){a&&(0<=this.$c.indexOf(a)||this.$c.push(a))};_.t.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};_.t.removeDelegate=function(a){a&&(a=this.$c.indexOf(a),0<=a&&this.$c.splice(a,1))};
357
+ _.t.trigger=function(a){this.cd.trigger(a);for(var b=_.u(this.$c),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.Kj.prototype.off=_.Kj.prototype.off;_.Kj.prototype.one=_.Kj.prototype.one;_.Kj.prototype.on=_.Kj.prototype.on;_.Kj.prototype.removeEventListener=_.Kj.prototype.removeEventListener;_.Kj.prototype.addEventListener=_.Kj.prototype.addEventListener;_.C("clpp.events.ERROR",_.gd);_.C("clpp.events.LOADEDMETADATA",_.vd);_.C("clpp.events.BUFFERING_ENDED",_.sc);_.C("clpp.events.BUFFERING_STARTED",_.tc);_.C("clpp.events.STATE_CHANGED",_.re);_.Dj="audiotrackchanged";_.C("clpp.events.AUDIO_TRACK_CHANGED",_.Dj);_.Ej="texttrackchanged";_.C("clpp.events.TEXT_TRACK_CHANGED",_.Ej);_.C("clpp.events.VIDEO_TRACK_CHANGED",_.Ue);_.C("clpp.events.BITRATE_CHANGED",_.qc);_.uq="tracksadded";_.C("clpp.events.TRACKS_ADDED",_.uq);_.C("clpp.events.LOAD_START",wd);
358
+ _.C("clpp.events.RELEASING",_.ee);_.C("clpp.events.RELEASED",de);_.C("clpp.events.DESTROYING","destroying");_.C("clpp.events.DESTROYED","destroyed");_.C("clpp.events.VIDEO_BUFFER_CHANGED",_.Te);_.C("clpp.events.AUDIO_BUFFER_CHANGED",_.oc);_.C("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.C("clpp.events.DRM_SESSION_UPDATE",_.ad);_.C("clpp.events.DRM_SESSION_PERSISTED",_.Zc);_.C("clpp.events.DRM_RENEWAL_STARTED",Yc);_.C("clpp.events.DRM_EXPIRATION_UPDATE",_.Xc);
359
+ _.C("clpp.events.AUTOPLAY_NOT_ALLOWED",_.pc);_.C("clpp.events.PLAY",_.Xd);_.C("clpp.events.SEEKING",_.ke);_.C("clpp.events.SEEKED",_.je);_.C("clpp.events.USER_SEEKING",_.Me);_.C("clpp.events.USER_SEEKED",_.Le);_.Xm={SEEKING:1,NO_DATA:2};_.C("clpp.events.BufferingReasons",_.Xm);_.C("clpp.events.ADS_TIMELINE_CHANGED",_.Wb);_.C("clpp.events.AD_LOADED",_.Mb);_.C("clpp.events.AD_BREAK_STARTED",_.Fb);_.C("clpp.events.AD_STARTED",_.Sb);_.C("clpp.events.AD_BUFFERING",_.Hb);_.C("clpp.events.AD_PROGRESS",_.Pb);
360
+ _.C("clpp.events.AD_FIRST_QUARTILE",_.Kb);_.C("clpp.events.AD_MIDPOINT",_.Nb);_.C("clpp.events.AD_THIRD_QUARTILE",_.Ub);_.C("clpp.events.AD_PAUSED",_.Ob);_.C("clpp.events.AD_RESUMED",_.Qb);_.C("clpp.events.AD_SKIPPED",_.Rb);_.C("clpp.events.AD_CLICKED",_.Ib);_.C("clpp.events.AD_IMPRESSION",_.Lb);_.C("clpp.events.AD_COMPLETED",_.Jb);_.C("clpp.events.AD_STOPPED",_.Tb);_.C("clpp.events.AD_BREAK_STOPPED",_.Gb);_.C("clpp.events.CASTING_STARTED",_.wc);_.C("clpp.events.CASTING_ENDED","castingended");
361
+ _.C("clpp.events.CAST_STATUS_CHANGED",_.xc);_.C("clpp.events.AIRPLAY_STATUS_CHANGED",_.Zb);_.C("clpp.events.AIRPLAY_CASTING_STARTED",_.Yb);_.C("clpp.events.AIRPLAY_CASTING_ENDED",_.Xb);_.og="timeline-cue-added";_.C("clpp.events.TIMELINE_CUE_ADDED",_.og);_.qg="timeline-cue-enter";_.C("clpp.events.TIMELINE_CUE_ENTER",_.qg);_.rg="timeline-cue-exit";_.C("clpp.events.TIMELINE_CUE_EXIT",_.rg);_.C("clpp.events.MPD_TYPE_CHANGED",_.Fd);_.C("clpp.events.VIMOND_RESPONSE",_.Ve);
362
+ _.C("clpp.events.PLAYLIST_ITEM_CHANGED",_.Zd);_.C("clpp.events.PLAYLIST_MODIFIED",_.$d);_.C("clpp.events.CDN_SWITCH_SUCCESS",_.yc);_.C("clpp.events.ONLINE_STATUS_CHANGED",Pd);var Lj=["play() failed because the user didn't interact","The play method is not allowed by the user agent","The request is not allowed by the user agent or the platform"];_.C("clpp.utils.PlayerConfiguration",Nj);Nj.create=_.Sj;var vq=["abort",uc,vc,cd,"emptied",dd,_.fd,_.gd,"interruptbegin","interruptend",_.ud,_.vd,wd,"mozaudioavailable",_.Td,_.Xd,_.Yd,_.ae,_.ce,_.je,_.ke,oe,"suspend",_.Ee,"volumechange",_.Ye,_.Ze,_.he,df,cf,af,bf];_.v(_.Uj,_.Kj);_.t=_.Uj.prototype;_.t.init=function(a,b){this.configuration=this.zd=b;this.B=a;this.log.info("Initializing Player surface");var c=this.B.getMedia();this.log.info("Attaching media element listeners");for(var d=_.u(vq),e=d.next();!e.done;e=d.next())e=e.value,this.L.on(c,e,this.Qj,e!==_.gd);this.Sc||(this.Sc=this.Cf());this.Sc.initialize(this);this.B.showMediaElement()};_.t.release=function(){this.K&&(this.K.destroy(),this.K=null);return Promise.resolve()};
363
+ _.t.destroy=function(){this.L.release();return Promise.resolve()};_.t.canPlay=function(a,b){return _.Wf[this.namespace()].canPlay(a,b)};
364
+ _.t.play=function(){var a=this;if(!this.o)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.B.getMedia().play();return Promise.resolve(b)["catch"](function(c){a.log.info("Caught play promise exception",c);var d={name:c.name||"",message:c.message||"",stack:c.stack||""};Mj(d)?(a.trigger(new _.J(_.pc)),a.log.warn(_.ma)):d.name===bb&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
365
+ _.t.pause=function(){var a=this;return this.o?new Promise(function(b,c){var d=a.getState();if(d!==_.Um&&d!==_.Wm&&d!==_.cn&&d!==_.bn)c();else if(a.B.getMedia().pause(),a.getState()===_.cn)a.L.one(a,_.re,function(){b()});else b()}):Promise.reject("No sources specified yet. You need to load content before calling pause.")};_.t.isPaused=function(){return this.B.getMedia().paused};_.t.isEnded=function(){return this.B.getMedia().ended};_.t.getConfiguration=function(){return this.configuration};
366
+ _.t.setDrmCustomDataModifier=function(a){this.Dc=a};_.t.setCdnErrorCallback=function(a){this.Sa=a};_.t.Gc=function(){return this.Dc};_.t.getSurface=function(){return this.B};_.t.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.Jj(b?b.buffered:void 0,a)};_.t.getPosition=function(){var a=this.B.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
367
+ _.t.seek=function(a){var b=this,c=this.getPosition();if(void 0===a||null===a||typeof a!==_.k||a===c)return Promise.resolve();var d=this.B.getMedia();if(!d)return this.log.warn("No media element available, can not set current time!"),Promise.reject();var e=a-c;return.1>=Math.abs(e)?(this.log.info("Skip seek. Delta "+Math.abs(e)+" \x3c 0.1"),Promise.resolve()):new Promise(function(f,g){function h(){if(d.readyState>HTMLMediaElement.HAVE_NOTHING)m();else b.L.one(d,_.vd,m)}function l(n){var p=b.getPosition(),
368
+ q=.1>=Math.abs(a-p),r=.25<p-a,w=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,y=n.type===_.je,A=n.type===_.ae,E=n.type===_.Ee,F=A&&w;r=y||q&&F||E&&r;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",r,"Current Time:",p,"Target Time:",a,"Native Event:",y,"Time reached",q,"Timeupdate:",E,"Progress:",A,"ReadyState:",w,"Progress Ready:",F);r?(b.ze=!1,b.Ld=!1,b.L.off(d,_.je,l),b.L.off(d,_.Ee,l),b.L.off(d,_.ae,l),b.jg(),b.trigger(new _.J(_.Le)),f()):A&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
369
+ d.currentTime=a)}function m(){b.trigger(new _.J(_.Me));b.L.on(d,_.je,l);b.L.on(d,_.Ee,l);b.L.on(d,_.ae,l);b.log.info("Seeking to "+a+". Delta "+e);b.ze=!0;b.Ld=!0;d.currentTime=a}b.getState()===_.Pm?(b.log.debug("Player is in IDLE state. Postpone seek."),b.L.one(b,_.re,function(){switch(b.getState()){case _.Um:case _.cn:case _.bn:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
370
+ _.t.getVolume=function(){var a=this.B.getMedia();if(a)return a.volume;this.log.warn("No media element available, can not report volume!");return null};_.t.setVolume=function(a){var b=this.B.getMedia();b?_.K.ka(a)?0>a||1<a?this.log.warn(ra+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(ra+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.t.isMuted=function(){return this.B.getMedia().muted};
371
+ _.t.setMuted=function(a){var b=this.B.getMedia();typeof a===_.rc&&(b.muted=a)};_.t.getDuration=function(){return this.o?this.B.getMedia().duration:-1};_.t.getTrackManager=function(){return this.Sc};_.t.getPlaybackRate=function(){var a=this.B.getMedia();return a&&a.playbackRate||1};_.t.setPlaybackRate=function(a){var b=this.B.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.t.setSourceIndex=function(a){this.Cd=a};_.t.getSourceIndex=function(){return this.Cd};
372
+ _.t.getLoadedSource=function(){return this.o&&-1!==this.Cd?this.o[this.Cd]:null};_.t.getPeriods=function(){return[]};_.t.getNetworkEngine=function(){return this.Wf};_.t.setNetworkEngine=function(a){this.Wf=a};_.t.getTextDisplayer=function(){return this.K};_.t.getTimelineCues=function(){return[]};_.t.resetAbr=function(){};
373
+ _.t.Bj=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.Ee||a.type===_.ae)this.vg.debug(d);else{var e="";switch(a.type){case _.ce:e="Rate: "+this.getPlaybackRate();break;case cd:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.Xd:case _.Yd:case "suspend":case _.Ye:case oe:case _.ke:case _.je:case _.Ee:case _.ae:case uc:case vc:b=
374
+ this.getBufferInfo().Da(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.he:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.vg.info(d)}a.type!==_.gd&&this.trigger(new _.J(a.type,{detail:a}))};_.t.jg=function(){};_.Uj.prototype.getTextDisplayer=_.Uj.prototype.getTextDisplayer;_.Uj.prototype.setNetworkEngine=_.Uj.prototype.setNetworkEngine;_.Uj.prototype.getNetworkEngine=_.Uj.prototype.getNetworkEngine;var Xj;Xj=new _.H("clpp.Components");_.Vj=new Map;_.C("clpp.utils.Uint8ArrayUtils",_.ak);_.ak.toStandardBase64=_.bk;_.ak.concat=_.hk;_.ak.equal=_.gk;_.ak.toHex=_.fk;_.ak.fromHex=_.ek;_.ak.fromBase64=_.dk;_.ak.toBase64Url=_.ck;ik.prototype.release=function(){this.a=this.f=null};_.C("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.mb,SW_SECURE_DECODE:_.nb,HW_SECURE_CRYPTO:La,HW_SECURE_DECODE:Na,HW_SECURE_ALL:"HW_SECURE_ALL"});_.C("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.C("clpp.drm.KeySystem",{NONE:_.Id,CLEAR_KEY:_.Rd,WIDEVINE:_.Qc,PLAYREADY:_.Pc,FAIRPLAY:_.Oc,PRIMETIME:_.Nc});_.mk={};_.C("clpp.drm.registerDrmEnvironment",_.nk);var qk={V1_STAGING:[10,191,2,8,3,18,16,40,112,52,84,192,8,246,54,24,173,231,68,61,182,196,200,24,139,231,249,144,5,34,142,2,48,130,1,10,2,130,1,1,0,181,33,18,184,208,93,2,63,204,93,149,226,194,81,193,198,73,180,23,124,216,210,190,239,53,91,176,103,67,222,102,30,61,42,188,49,130,183,153,70,213,95,220,8,223,233,84,7,129,94,154,98,116,179,34,162,199,245,224,103,187,95,10,192,122,137,212,90,234,148,178,81,111,7,91,102,239,129,29,13,38,225,185,166,184,148,242,185,133,121,98,170,23,28,79,102,99,13,62,76,
372
375
  96,39,24,137,127,94,30,249,182,170,245,173,77,186,42,126,20,23,109,241,52,161,211,24,91,90,33,138,192,90,76,65,240,129,239,255,128,163,160,64,197,11,9,187,199,64,238,220,216,241,77,103,90,145,152,15,146,202,125,220,100,106,6,173,173,81,1,247,74,14,73,140,192,31,0,83,43,172,33,120,80,189,144,94,144,146,54,86,183,223,239,239,66,72,103,103,243,62,246,40,61,79,66,84,171,114,88,147,144,190,229,88,8,241,214,104,8,13,69,216,147,194,188,162,247,77,96,160,192,208,160,153,60,239,1,96,71,3,51,76,54,56,19,148,
373
376
  134,188,157,175,36,253,103,160,127,154,217,67,2,3,1,0,1,58,18,115,116,97,103,105,110,103,46,103,111,111,103,108,101,46,99,111,109,18,128,3,152,62,48,53,38,117,244,11,167,21,252,36,155,218,229,212,172,114,73,162,102,101,33,228,54,85,115,149,41,114,31,248,128,224,170,239,197,226,123,201,128,218,234,218,191,63,195,134,208,132,160,44,130,83,120,72,204,117,63,244,151,176,17,167,218,151,120,138,0,226,170,107,132,205,125,113,192,122,72,235,246,22,2,204,165,163,243,32,48,167,41,92,48,218,145,91,145,220,24,
374
377
  185,188,149,147,184,222,139,181,15,13,237,193,41,56,184,233,224,57,205,222,24,250,130,232,27,176,50,99,15,233,85,216,90,86,108,225,84,48,11,246,212,193,189,18,105,102,53,107,40,125,101,123,24,206,99,208,239,212,95,197,38,158,151,234,177,28,181,99,229,86,67,178,111,244,159,16,156,33,1,175,202,243,91,131,47,40,143,13,157,69,150,14,37,158,133,251,93,36,219,210,207,130,118,76,93,217,191,114,126,251,233,200,97,248,105,50,31,106,222,24,144,95,77,146,249,166,218,101,54,219,132,117,135,29,22,142,135,11,178,
@@ -382,77 +385,77 @@ this.getBufferInfo().Da(c);e="State "+this.getSurface().getMedia().readyState+"
382
385
  21,58,231,13,118,215,58,166,74,44,51,103,50,120,198,197,213,64,34,105,66,115,72,235,88,51,28,238,54,93,147,140,187,28,173,50,109,5,234,155,141,29,52,234,135,38,55,103,111,116,98,171,210,13,211,129,249,70,57,64,155,151,38,8,225,188,229,3,247,234,26,46,91,211,250,252,38,87,111,205,37,108,74,168,112,74,116,191,73,170,243,167,54,36,20,23,72,67,35,181,159,241,102,250,221,22,18,92,161,54,236,172,183,214,18,160,199,92,46,171,180,211,90,64,62,144,121,201,77,74,211,17,244,49,124,244,120,116,148,234,184,79,
383
386
  136,12,176,34,231,39,149,87,28,219,2,3,1,0,1,58,12,99,97,115,116,108,97,98,115,46,99,111,109,64,1,18,128,3,50,97,151,165,120,63,210,172,84,187,10,36,166,202,149,32,118,107,37,251,186,217,170,254,4,95,20,85,66,157,43,154,24,66,136,147,101,223,78,204,173,228,175,111,100,168,97,164,222,84,160,51,79,233,227,223,105,252,85,11,242,129,199,206,11,9,236,118,163,118,204,179,159,69,108,223,229,114,176,8,26,36,9,23,103,233,62,55,162,154,209,96,98,102,80,173,114,233,213,36,56,135,65,188,245,176,95,70,189,199,
384
387
  143,81,72,182,124,207,225,238,28,172,144,110,89,44,12,137,51,52,239,130,117,119,15,207,200,229,142,166,8,80,79,111,255,191,70,47,189,108,75,234,184,241,119,21,255,98,167,124,132,30,239,102,113,7,132,96,39,134,123,220,209,255,110,222,35,147,0,77,125,253,129,139,66,158,126,221,13,117,113,163,143,235,9,130,180,3,133,94,152,45,199,69,168,182,95,122,82,25,203,10,99,191,186,193,238,225,224,140,156,142,171,110,26,214,32,240,6,218,138,10,47,114,133,17,1,151,43,213,223,198,210,186,81,18,50,221,84,177,180,
385
- 26,58,164,235,113,177,235,207,22,230,8,119,76,167,166,176,173,209,214,53,116,116,231,227,221,238,174,87,249,19,166,195,81,47,210,172,15,75,251,202,192,80,85,213,23,17,178,104,181,193,115,239,91,72,230,167,55,143,10,250,26,54,8,60,13,213,206,235,3,215,179,205,232,1,144,158,35,48,196,149,117,219,63,196,130,117,40,165,193,65,215,122,44,201,218,67,216,6,131,178,5,168,229,21,137,112,215,254,127,48,160,181,68,49,255,64,46,247,236,85,155,146,208,5,219,252,37,174,31,218,136,135,55,119,112]};_.rk.prototype.Ka=function(a,b){this.g[a]=b};_.B("clpp.drm.DrmEnvironment",_.rk);_.rk.prototype.setDrmSystem=_.rk.prototype.Ka;_.tk.prototype.getPosition=function(){return this.a};_.tk.prototype.ya=function(){return this.f.byteLength};_.tk.prototype.seek=function(a){(0>a||a>this.f.byteLength)&&_.uk();this.a=a};_.tk.prototype.seek=_.tk.prototype.seek;_.wk.prototype.getPosition=function(){return this.a};_.wk.prototype.ya=function(){return this.f.byteLength};_.wk.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.yk();this.a+=a};_.wk.prototype.seek=function(a){if(0>a||a>this.f.byteLength)throw _.yk();this.a=a};
386
- _.B("clpp.utils.dataview.DataViewReader",_.wk);_.t=_.Fk.prototype;_.t.M=function(a,b){var c=Jk(a);this.g[c]=uq;this.f[c]=b;return this};_.t.V=function(a,b){var c=Jk(a);this.g[c]=vq;this.f[c]=b;return this};_.t.stop=function(){this.a=!0};_.t.parse=function(a,b){var c=_.N(a);c=new _.wk(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.xk(c)&&!this.a;)this.Od(0,c,b)};
387
- _.t.Od=function(a,b,c){var d=b.getPosition(),e=_.U(b),f=_.U(b),g=!1;this.h.debug("Parsing MP4 box",_.Kk(f));switch(e){case 0:e=b.ya()-d;break;case 1:e=_.Dk(b),g=!0}var h=this.f[f];if(h){var l=null,m=null;this.g[f]==vq&&(m=_.U(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.ya()&&(n=b.ya());n-=b.getPosition();b=0<n?_.Ek(b,n):new Uint8Array(0);b=new _.wk(new DataView(b.buffer,b.byteOffset,b.byteLength),!1);h({Wa:this,ig:c||!1,version:l,flags:m,F:b,size:e,start:d+a,te:f,ni:g})}else a=Math.min(d+
388
- e-b.getPosition(),b.ya()-b.getPosition()),b.skip(a)};_.B("clpp.utils.Mp4Parser",_.Fk);_.Fk.typeToString=_.Kk;_.Fk.allData=_.Ik;_.Fk.sampleDescription=_.Hk;_.Fk.children=_.Gk;_.Fk.prototype.parseNext=_.Fk.prototype.Od;_.Fk.prototype.parse=_.Fk.prototype.parse;_.Fk.prototype.stop=_.Fk.prototype.stop;_.Fk.prototype.fullBox=_.Fk.prototype.V;_.Fk.prototype.box=_.Fk.prototype.M;_.Fk.headerSize=_.Lk;var uq=0,vq=1;_.B("clpp.utils.FairplayUtils",Mk);Mk.parseFairPlayResponse=_.Sk;Mk.formatFairPlayRequest=_.Rk;Mk.createFairplayPayload=Qk;Mk.extractContentId=_.Ok;Mk.extractExtXKeyUri=Nk;var dl=new _.H("clpp.drm.DrmToday"),Uk="PRODUCTION",Vk="STAGING",Wk="TEST",wq={PRODUCTION:Uk,STAGING:Vk,TEST:Wk};_.B("clpp.drm.DrmToday.Environment",wq);_.B("clpp.drm.DrmToday.WidevineCertificates",{V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"});
389
- for(var Yk="/license-proxy-widevine/cenc/",Zk="/license-proxy-headerauth/drmtoday/RightsManager.asmx",$k="/license-server-fairplay/",ll={"00000":"Success","01000":"General Internal Error","02000":"General Request Error","03000":"General Request Authentication Error",3E4:"General DRM error",4E4:"General Widevine Modular error",40001:"Widevine Device Certificate Revocation (wv 127)",40002:"Widevine Device Certificate Revocation - Permanently (wv 175)",41E3:"General Widevine Classic error",42E3:"General Playready error",
390
- 43E3:"General Fairplay error",44E3:"General OMA error",44001:"OMA Device registration failed",45E3:"General CDRM error",45001:"CDRM Device registration failed",6E4:"CSL",60001:"CSL - INVALID",60100:"CSL - Denied by Stream Limiting",7E4:"General Output Protection",70001:"All keys filtered by EOP settings",8E4:"TAKE DOWN",80001:"TAKE DOWN - Denied by Take Down",9E4:"General GBL error",90001:"License delivery prohibited in your region"},xq={video:[_.nb,void 0],audio:[_.mb,void 0]},yq={video:["3000"],
391
- audio:["2000"]},zq=_.u(Object.keys(wq)),Aq=zq.next();!Aq.done;Aq=zq.next()){var Tk=Aq.value,Bq=Aa;Tk!==Uk&&(Bq+="_"+Tk);var Cq=new _.rk(Bq),Dq=null;switch(Tk){case Uk:Dq=qk("V1_PROD");break;case Vk:Dq=qk("V2");break;case Wk:Dq=null}Cq.Ka(_.Pc,{licenseUrl:al(_.Pc),videoRobustness:xq.video,audioRobustness:xq.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:Dq,modifiers:{licenseRequest:_.fl,licenseResponse:_.kl}});Cq.Ka(_.Nc,{licenseUrl:al(_.Nc),certificateUrl:Xk()+
392
- "/license-server-fairplay/cert/",modifiers:{licenseRequest:_.hl,licenseResponse:_.il,extractContentId:_.el,certificateRequest:_.jl}});Cq.Ka(_.Oc,{licenseUrl:al(_.Oc),videoRobustness:yq.video,audioRobustness:yq.audio,modifiers:{licenseRequest:gl}});_.mk(Cq)};_.B("clpp.drm.eme.EmeFactory",nl);var ol=[];nl.Apis={STANDARD:lb,APPLE:"APPLE",WEBKIT:"WEBKIT",NOP:"NOP"};var xl;_.El=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];xl=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.v(wl,vl);_.v(_.Al,vl);Gl.prototype.h=function(a){if(1<a.version)_.F("Unrecognized PSSH version found!");else{var b=_.ek(_.Ek(a.F,16)),c=[];if(0<a.version)for(var d=_.U(a.F),e=0;e<d;++e){var f=_.ek(_.Ek(a.F,16));c.push(f)}d=_.U(a.F);a.F.skip(d);this.g.push.apply(this.g,c);this.f.push(b);this.a.push({start:a.start,end:a.start+a.size-1});a.F.getPosition()!=a.F.ya()&&_.F("Mismatch between box size and data size!")}};_.t=_.Kl.prototype;_.t.destroy=function(){var a=this;return _.A(function(b){if(1==b.a){if(a.j)return _.y(b,a.Ra,0);a.j=!0;return _.y(b,Ml(a),4)}a.Ra.resolve();return b.H(0)})};_.t.keySystem=function(){return this.f?_.im(this.f.keySystem):""};_.t.getDrmInfo=function(){return this.f};_.t.fg=function(a){var b=this;return _.A(function(c){return b.G&&b.K===Nl?c["return"]():!b.h.delayLicenseRequestUntilPlayed||b.C&&!b.C.paused||b.qb?_.y(c,tm(b,a),0):(b.da.push(a),c.H(0))})};
393
- _.t.bg=function(a){var b=this,c=a.target;this.a.info("Key status changed for session",c.sessionId);var d=this.g.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if(typeof h==_.te){var l=h;h=g;g=l}if(pm(b.f.keySystem)&&16===h.byteLength&&_.Oi()){l=_.lh(h);var m=l.getUint32(0,!0),n=l.getUint16(4,!0),p=l.getUint16(6,!0);l.setUint32(0,m,!1);l.setUint16(4,n,!1);l.setUint16(6,p,!1)}d&&g!==re&&(d.loaded=!0);d&&d.za&&d.za.resolve();"expired"===g&&(e=!0);l=_.N(h);var q=_.ek(l);"00"===q&&d&&d.keyId?q=d.keyId:
394
- b.f.keySystem.startsWith(_.Nc)&&16!==l.byteLength&&(q=nh(l));(l=q||"")?b.a.info(Qa+q+"': "+g):b.a.info("Key status global keys: "+g);b.m.set(l,g);d&&!d.keyId&&b.g.forEach(function(r,w){w===c||r.keyId!==q||r.loaded||(r.loaded=!0)})});d&&d.bb.forEach(function(g){b.m.get(g)===re&&(b.a.warn(Qa+g+da),b.m.set(g,_.Rd))});for(a=0;a<this.f.initData.length;a++){var f=this.f.initData[a];f.keyId&&this.m.get(f.keyId)===re&&_.fk(f.initData,d.initData)&&(this.a.warn(Qa+f.keyId+da),this.m.set(f.keyId,_.Rd))}a=c.expiration-
395
- Date.now();(0>a||e&&1E3>a)&&d&&!d.nb&&(this.a.debug("Session has expired",c.sessionId),(a=this.g.get(c))&&a.Ac&&a.Ac.stop(),this.g["delete"](c),c.close()["catch"](function(){}));km(this)&&(this.I.resolve(),1!==this.g.size||e?this.ca.Z(.5):Il(this))};var Nl=0,Hl=3;var um=new Map,vm=new _.H("clpp.text");_.Jm.prototype.getStats=function(){return{width:this.o,height:this.g,streamBandwidth:this.m,decodedFrames:this.h,droppedFrames:this.j,corruptedFrames:this.B,estimatedBandwidth:this.f,loadLatency:this.w,playTime:Fm(this.a,_.bn),pauseTime:Fm(this.a,_.an),bufferingTime:Fm(this.a,_.Tm),stateHistory:Gm(this.a),switchHistory:Im(this.A)}};_.Lm.prototype.value=function(){void 0==this.a&&(this.a=this.f());return this.a};var Mm=new _.Lm(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.ud],[HTMLMediaElement.HAVE_CURRENT_DATA,_.td],[HTMLMediaElement.HAVE_FUTURE_DATA,uc],[HTMLMediaElement.HAVE_ENOUGH_DATA,vc]])});Rm.prototype.Sb=function(a,b){this.l&&this.l.trigger(new _.I(a,{detail:b}))};Rm.prototype.getState=function(){return Um(this,"")};Rm.prototype.T=function(a){(a=a&&a.detail)&&a.severity&&a.severity===_.M&&Ym(this,_.Zm)};Rm.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.l.namespace());this.a.release()};_.B("clpp.version",_.ia);_.B("clpp.name",_.ta);_.tj="application/x-mpegurl";_.B("clpp.Type",{DASH:_.bc,HLS:_.tj,SMOOTH_STREAMING:_.gc,MP4:_.Re});_.mg="scte35";_.kg=He;_.B("clpp.TimelineCueType",{SCTE35:_.mg,DASH_CALLBACK:_.Gd,UNKNOWN:_.kg});_.B("clpp.utils.media.detectType",dn);var gn=new _.H("clpp.sources");_.v(hn,_.Tj);_.t=hn.prototype;_.t.init=function(a,b){_.Tj.prototype.init.call(this,a,b);this.h=new Rm(this);Ym(this.h,_.Om)};_.t.namespace=function(){return Ic};
396
- _.t.unload=function(){var a=this,b;return _.A(function(c){if(!a.o)return c.H(0);a.log.debug(_.jb,a.o);a.C&&(a.C.stop(),a.C=null);(b=a.getTrackManager())&&b.release();a.A&&(a.A.destroy(),a.A=null);a.J&&(a.J.destroy(),a.J=null);a.j&&a.j.release();a.m&&(a.m.destroy(),a.m=null);_.fg(a.g);a.f&&(a.f=new _.Jm);a.D=null;a.o=null;a.G=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());return _.y(c,mn(a),0)})};
397
- _.t.release=function(){var a=this;return _.Tj.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.h&&Ym(a.h,_.Om)})};
398
- _.t.destroy=function(){var a=this;if(this.w)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.w=!0;return _.Tj.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Ea);var b=a.getTrackManager();b&&b.destroy();a.j&&(a.j.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.j=null);a.h&&(a.h.destroy(),a.h=null);a.f=null})};_.t.getDrmInfo=function(){return this.m?this.m.getDrmInfo():null};
399
- _.t.getTrackManager=function(){return this.Qc};
400
- _.t.load=function(a){var b=this,c,d,e,f,g;return _.A(function(h){switch(h.a){case 1:if(b.w)return h["return"](jn());if(!b.getSurface()||!b.getSurface().getMedia())return h["return"](Promise.reject("No surface or no media element in surface"));c=_.J;d=b.B.getMedia();b.I=Date.now()/1E3;b.f=new _.Jm;b.g.on(b,_.pe,function(){b.f&&_.Em(b.f.a,b.getState())});Ym(b.h,_.$m);b.o=_.fn(a);_.Sj(a)&&(b.configuration=_.Rj(b.xd,a));b.log.debug(_.Sa,b.configuration);b.log.debug(_.eb,b.o);e=_.xm(b.configuration,["html",
401
- "native"]);b.J=e.create(b);b.J.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.Vj(_.xe)&&!_.Vi()&&(b.A=new Bg(b),b.A.start(d));b.j?b.j.release():b.j=new hg(b);jg(b.j,d);f=b.getTrackManager();f.load();d.loop=!!b.configuration.loop;c.R(b.configuration.volume)||b.setVolume(b.configuration.volume);c.R(b.configuration.muted)||b.setMuted(b.configuration.muted);b.g.one(d,uc,function(){b.trigger(new _.I(_.sq))});_.xf(h,2);return _.y(h,ln(b,d),4);case 4:return _.y(h,on(b),5);case 5:return _.y(h,qn(b).P,
402
- 6);case 6:_.yf(h,0);break;case 2:g=_.zf(h),b.G=!1,b.onError(g),_.z(h)}})};_.t.onError=function(a){this.G||(a.severity===_.M&&null!==this.h&&Ym(this.h,_.Zm),this.trigger(new _.I(_.fd,{detail:a})))};_.t.Af=function(){return new qj};_.t.getState=function(){return null!==this.h?this.h.getState().currentState:_.Pm};
403
- _.t.getPresentationStartTime=function(){if(this.a&&this.a.getStartDate&&this.isLive()){var a=this.a.getStartDate();return isNaN(a.getTime())?(this.log.warn("EXT-X-PROGRAM-DATETIME required to get presentation start time as Date!"),null):a.getTime()/1E3}return null};_.t.getSeekRange=function(){var a=this.getSurface().getMedia();if(a&&a.src){a=a.seekable;if(a.length)return this.D=a={start:a.start(0),end:a.end(a.length-1)};if(this.D)return this.D}return{start:0,end:0}};
388
+ 26,58,164,235,113,177,235,207,22,230,8,119,76,167,166,176,173,209,214,53,116,116,231,227,221,238,174,87,249,19,166,195,81,47,210,172,15,75,251,202,192,80,85,213,23,17,178,104,181,193,115,239,91,72,230,167,55,143,10,250,26,54,8,60,13,213,206,235,3,215,179,205,232,1,144,158,35,48,196,149,117,219,63,196,130,117,40,165,193,65,215,122,44,201,218,67,216,6,131,178,5,168,229,21,137,112,215,254,127,48,160,181,68,49,255,64,46,247,236,85,155,146,208,5,219,252,37,174,31,218,136,135,55,119,112]};_.sk.prototype.Ka=function(a,b){this.g[a]=b};_.C("clpp.drm.DrmEnvironment",_.sk);_.sk.prototype.setDrmSystem=_.sk.prototype.Ka;_.uk.prototype.getPosition=function(){return this.a};_.uk.prototype.ya=function(){return this.f.byteLength};_.uk.prototype.seek=function(a){(0>a||a>this.f.byteLength)&&_.vk();this.a=a};_.uk.prototype.seek=_.uk.prototype.seek;_.xk.prototype.getPosition=function(){return this.a};_.xk.prototype.ya=function(){return this.f.byteLength};_.xk.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.zk();this.a+=a};_.xk.prototype.seek=function(a){if(0>a||a>this.f.byteLength)throw _.zk();this.a=a};
389
+ _.C("clpp.utils.dataview.DataViewReader",_.xk);_.t=_.Gk.prototype;_.t.M=function(a,b){var c=Kk(a);this.g[c]=wq;this.f[c]=b;return this};_.t.W=function(a,b){var c=Kk(a);this.g[c]=xq;this.f[c]=b;return this};_.t.stop=function(){this.a=!0};_.t.parse=function(a,b){var c=_.N(a);c=new _.xk(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.yk(c)&&!this.a;)this.Qd(0,c,b)};
390
+ _.t.Qd=function(a,b,c){var d=b.getPosition(),e=_.U(b),f=_.U(b),g=!1;this.h.debug("Parsing MP4 box",_.Lk(f));switch(e){case 0:e=b.ya()-d;break;case 1:e=_.Ek(b),g=!0}var h=this.f[f];if(h){var l=null,m=null;this.g[f]==xq&&(m=_.U(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.ya()&&(n=b.ya());n-=b.getPosition();b=0<n?_.Fk(b,n):new Uint8Array(0);b=new _.xk(new DataView(b.buffer,b.byteOffset,b.byteLength),!1);h({Xa:this,lg:c||!1,version:l,flags:m,G:b,size:e,start:d+a,ve:f,pi:g})}else a=Math.min(d+
391
+ e-b.getPosition(),b.ya()-b.getPosition()),b.skip(a)};_.C("clpp.utils.Mp4Parser",_.Gk);_.Gk.typeToString=_.Lk;_.Gk.allData=_.Jk;_.Gk.sampleDescription=_.Ik;_.Gk.children=_.Hk;_.Gk.prototype.parseNext=_.Gk.prototype.Qd;_.Gk.prototype.parse=_.Gk.prototype.parse;_.Gk.prototype.stop=_.Gk.prototype.stop;_.Gk.prototype.fullBox=_.Gk.prototype.W;_.Gk.prototype.box=_.Gk.prototype.M;_.Gk.headerSize=_.Mk;var wq=0,xq=1;_.C("clpp.utils.FairplayUtils",Nk);Nk.parseFairPlayResponse=_.Tk;Nk.formatFairPlayRequest=_.Sk;Nk.createFairplayPayload=Rk;Nk.extractContentId=_.Pk;Nk.extractExtXKeyUri=Ok;var el=new _.H("clpp.drm.DrmToday"),Vk="PRODUCTION",Wk="STAGING",Xk="TEST",yq={PRODUCTION:Vk,STAGING:Wk,TEST:Xk};_.C("clpp.drm.DrmToday.Environment",yq);_.C("clpp.drm.DrmToday.WidevineCertificates",{V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"});
392
+ for(var Zk="/license-proxy-widevine/cenc/",$k="/license-proxy-headerauth/drmtoday/RightsManager.asmx",al="/license-server-fairplay/",ml={"00000":"Success","01000":"General Internal Error","02000":"General Request Error","03000":"General Request Authentication Error",3E4:"General DRM error",4E4:"General Widevine Modular error",40001:"Widevine Device Certificate Revocation (wv 127)",40002:"Widevine Device Certificate Revocation - Permanently (wv 175)",41E3:"General Widevine Classic error",42E3:"General Playready error",
393
+ 43E3:"General Fairplay error",44E3:"General OMA error",44001:"OMA Device registration failed",45E3:"General CDRM error",45001:"CDRM Device registration failed",6E4:"CSL",60001:"CSL - INVALID",60100:"CSL - Denied by Stream Limiting",7E4:"General Output Protection",70001:"All keys filtered by EOP settings",8E4:"TAKE DOWN",80001:"TAKE DOWN - Denied by Take Down",9E4:"General GBL error",90001:"License delivery prohibited in your region"},zq={video:[_.nb,void 0],audio:[_.mb,void 0]},Aq={video:["3000"],
394
+ audio:["2000"]},Bq=_.u(Object.keys(yq)),Cq=Bq.next();!Cq.done;Cq=Bq.next()){var Uk=Cq.value,Dq=Ba;Uk!==Vk&&(Dq+="_"+Uk);var Eq=new _.sk(Dq),Fq=null;switch(Uk){case Vk:Fq=rk("V1_PROD");break;case Wk:Fq=rk("V2");break;case Xk:Fq=null}Eq.Ka(_.Qc,{licenseUrl:bl(_.Qc),videoRobustness:zq.video,audioRobustness:zq.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:Fq,modifiers:{licenseRequest:_.gl,licenseResponse:_.ll}});Eq.Ka(_.Oc,{licenseUrl:bl(_.Oc),certificateUrl:Yk()+
395
+ "/license-server-fairplay/cert/",modifiers:{licenseRequest:_.il,licenseResponse:_.jl,extractContentId:_.fl,certificateRequest:_.kl}});Eq.Ka(_.Pc,{licenseUrl:bl(_.Pc),videoRobustness:Aq.video,audioRobustness:Aq.audio,modifiers:{licenseRequest:hl}});_.nk(Eq)};_.C("clpp.drm.eme.EmeFactory",ol);var pl=[];ol.Apis={STANDARD:lb,APPLE:"APPLE",WEBKIT:"WEBKIT",NOP:"NOP"};var yl;_.Fl=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];yl=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.v(xl,wl);_.v(_.Bl,wl);Hl.prototype.h=function(a){if(1<a.version)_.G("Unrecognized PSSH version found!");else{var b=_.fk(_.Fk(a.G,16)),c=[];if(0<a.version)for(var d=_.U(a.G),e=0;e<d;++e){var f=_.fk(_.Fk(a.G,16));c.push(f)}d=_.U(a.G);a.G.skip(d);this.g.push.apply(this.g,c);this.f.push(b);this.a.push({start:a.start,end:a.start+a.size-1});a.G.getPosition()!=a.G.ya()&&_.G("Mismatch between box size and data size!")}};_.t=_.Ll.prototype;_.t.destroy=function(){var a=this;return _.B(function(b){if(1==b.a){if(a.j)return _.x(b,a.Ma,0);a.j=!0;return _.x(b,Nl(a),4)}a.Ma.resolve();return b.H(0)})};_.t.keySystem=function(){return this.f?_.jm(this.f.keySystem):""};_.t.getDrmInfo=function(){return this.f};_.t.ig=function(a){var b=this;return _.B(function(c){return b.F&&b.K===Ol?c["return"]():!b.h.delayLicenseRequestUntilPlayed||b.B&&!b.B.paused||b.Sa?_.x(c,um(b,a),0):(b.ba.push(a),c.H(0))})};
396
+ _.t.eg=function(a){var b=this,c=a.target;this.a.info("Key status changed for session",c.sessionId);var d=this.g.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if(typeof h==_.ue){var l=h;h=g;g=l}if(qm(b.f.keySystem)&&16===h.byteLength&&_.Pi()){l=_.mh(h);var m=l.getUint32(0,!0),n=l.getUint16(4,!0),p=l.getUint16(6,!0);l.setUint32(0,m,!1);l.setUint16(4,n,!1);l.setUint16(6,p,!1)}d&&g!==se&&(d.loaded=!0);d&&d.za&&d.za.resolve();"expired"===g&&(e=!0);l=_.N(h);var q=_.fk(l);"00"===q&&d&&d.keyId?q=d.keyId:
397
+ b.f.keySystem.startsWith(_.Oc)&&16!==l.byteLength&&(q=oh(l));(l=q||"")?b.a.info(Ra+q+"': "+g):b.a.info("Key status global keys: "+g);b.m.set(l,g);d&&!d.keyId&&b.g.forEach(function(r,w){w===c||r.keyId!==q||r.loaded||(r.loaded=!0)})});d&&d.loaded&&d.cb.forEach(function(g){b.m.get(g)===se&&(b.a.warn(Ra+g+da),b.m.set(g,_.Sd))});for(a=0;a<this.f.initData.length;a++){var f=this.f.initData[a];f.keyId&&this.m.get(f.keyId)===se&&_.gk(f.initData,d.initData)&&(this.a.warn(Ra+f.keyId+da),this.m.set(f.keyId,_.Sd))}a=
398
+ c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.ob&&(this.a.debug("Session has expired",c.sessionId),(a=this.g.get(c))&&a.Cc&&a.Cc.stop(),this.g["delete"](c),c.close()["catch"](function(){}));lm(this)&&(this.I.resolve(),1!==this.g.size||e?this.aa.Z(.5):Jl(this))};var Ol=0,Il=3;var vm=new Map,wm=new _.H("clpp.text");_.Km.prototype.getStats=function(){return{width:this.o,height:this.g,streamBandwidth:this.m,decodedFrames:this.h,droppedFrames:this.j,corruptedFrames:this.B,estimatedBandwidth:this.f,loadLatency:this.w,playTime:Gm(this.a,_.cn),pauseTime:Gm(this.a,_.bn),bufferingTime:Gm(this.a,_.Um),stateHistory:Hm(this.a),switchHistory:Jm(this.A)}};_.Mm.prototype.value=function(){void 0==this.a&&(this.a=this.f());return this.a};var Nm=new _.Mm(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.vd],[HTMLMediaElement.HAVE_CURRENT_DATA,_.ud],[HTMLMediaElement.HAVE_FUTURE_DATA,uc],[HTMLMediaElement.HAVE_ENOUGH_DATA,vc]])});Sm.prototype.Ub=function(a,b){this.l&&this.l.trigger(new _.J(a,{detail:b}))};Sm.prototype.getState=function(){return Vm(this,"")};Sm.prototype.U=function(a){(a=a&&a.detail)&&a.severity&&a.severity===_.M&&Zm(this,_.$m)};Sm.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.l.namespace());this.a.release()};_.C("clpp.version",_.ea);_.C("clpp.name",_.ta);_.uj="application/x-mpegurl";_.C("clpp.Type",{DASH:_.bc,HLS:_.uj,SMOOTH_STREAMING:_.gc,MP4:_.Se});_.ng="scte35";_.lg=Ie;_.C("clpp.TimelineCueType",{SCTE35:_.ng,DASH_CALLBACK:_.Hd,UNKNOWN:_.lg});_.C("clpp.utils.media.detectType",en);var hn=new _.H("clpp.sources");_.v(jn,_.Uj);_.t=jn.prototype;_.t.init=function(a,b){_.Uj.prototype.init.call(this,a,b);this.h=new Sm(this);Zm(this.h,_.Pm)};_.t.namespace=function(){return Jc};
399
+ _.t.unload=function(){var a=this,b;return _.B(function(c){if(!a.o)return c.H(0);a.log.debug(_.jb,a.o);a.D&&(a.D.stop(),a.D=null);(b=a.getTrackManager())&&b.release();a.A&&(a.A.destroy(),a.A=null);a.K&&(a.K.destroy(),a.K=null);a.j&&a.j.release();a.m&&(a.m.destroy(),a.m=null);_.gg(a.g);a.f&&(a.f=new _.Km);a.F=null;a.o=null;a.I=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());return _.x(c,nn(a),0)})};
400
+ _.t.release=function(){var a=this;return _.Uj.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.h&&Zm(a.h,_.Pm)})};
401
+ _.t.destroy=function(){var a=this;if(this.w)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.w=!0;return _.Uj.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Da);var b=a.getTrackManager();b&&b.destroy();a.j&&(a.j.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.j=null);a.h&&(a.h.destroy(),a.h=null);a.f=null})};_.t.getDrmInfo=function(){return this.m?this.m.getDrmInfo():null};
402
+ _.t.getTrackManager=function(){return this.Sc};
403
+ _.t.load=function(a){var b=this,c,d,e,f,g;return _.B(function(h){switch(h.a){case 1:if(b.w)return h["return"](kn());if(!b.getSurface()||!b.getSurface().getMedia())return h["return"](Promise.reject("No surface or no media element in surface"));c=_.K;d=b.B.getMedia();b.J=Date.now()/1E3;b.f=new _.Km;b.g.on(b,_.re,function(){b.f&&_.Fm(b.f.a,b.getState())});Zm(b.h,_.an);b.o=_.gn(a);_.Tj(a)&&(b.configuration=_.Sj(b.zd,a));b.log.debug(_.Ta,b.configuration);b.log.debug(_.eb,b.o);e=_.ym(b.configuration,["html",
404
+ "native"]);b.K=e.create(b);b.K.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.Wj(_.ye)&&!_.Wi()&&(b.A=new Cg(b),b.A.start(d));b.j?b.j.release():b.j=new ig(b);kg(b.j,d);f=b.getTrackManager();f.load();d.loop=!!b.configuration.loop;c.S(b.configuration.volume)||b.setVolume(b.configuration.volume);c.S(b.configuration.muted)||b.setMuted(b.configuration.muted);b.g.one(d,uc,function(){b.trigger(new _.J(_.uq))});null==b.configuration.startTime&&sn(b,d);_.yf(h,2);return _.x(h,mn(b,d),4);case 4:return _.x(h,
405
+ pn(b),5);case 5:return _.x(h,rn(b).P,6);case 6:_.zf(h,0);break;case 2:g=_.Af(h),b.I=!1,b.onError(g),_.z(h)}})};_.t.onError=function(a){this.I||(a.severity===_.M&&null!==this.h&&Zm(this.h,_.$m),this.trigger(new _.J(_.gd,{detail:a})))};_.t.Cf=function(){return new rj};_.t.getState=function(){return null!==this.h?this.h.getState().currentState:_.Qm};
406
+ _.t.getPresentationStartTime=function(){if(this.a&&this.a.getStartDate&&this.isLive()){var a=this.a.getStartDate();return isNaN(a.getTime())?(this.log.warn("EXT-X-PROGRAM-DATETIME required to get presentation start time as Date!"),null):a.getTime()/1E3}return null};_.t.getSeekRange=function(){var a=this.getSurface().getMedia();if(a&&a.src){a=a.seekable;if(a.length)return this.F=a={start:a.start(0),end:a.end(a.length-1)};if(this.F)return this.F}return{start:0,end:0}};
404
407
  _.t.isLive=function(){return this.a&&this.a.src?Infinity===this.a.duration:!1};
405
- _.t.getStats=function(){if(!this.f||!this.a)return _.Km();this.f&&_.Em(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.o=a.videoWidth;b.g=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.j=Number(a.droppedVideoFrames),b.h=c,this.f.B=Number(a.corruptedVideoFrames));if(a=this.getTrackManager())if(a=a.ea())a.bandwidth&&(this.f.m=a.bandwidth),a.Pc&&(this.f.f=a.Pc);return this.f.getStats()};
406
- _.t.getTimelineCues=function(){return this.j?this.j.getTimelineCues():[]};rn.prototype.a=function(){return Ic};rn.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.bc,e=c===_.gc,f=c===_.tj;return _.Si()||d||e||f&&!_.Ti()?0:""!==Yi().canPlayType(c)?f&&_.Ti()&&window.MediaSource&&MediaSource.isTypeSupported&&!b.streaming.preferNativeHlsOnSafari?1:2:0};rn.prototype.create=function(){return new hn};_.Xf(new rn);_.B("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.B("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1});_.B("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var tn=new _.H("clpp.ads"),sn=[];_.B("clpp.utils.dom.createHTMLElement",_.An);Bn.prototype.set=function(a){this.g.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=Dn(this,a)};Bn.prototype.get=function(){return this.a};_.t=Hn.prototype;_.t.getMedia=function(){return this.g.get()};_.t.getContainer=function(){return this.f.get()};_.t.getSafeContainer=function(){return this.f};_.t.getId=function(){return this.m};_.t.getUniqueCssClass=function(){return this.o};_.t.getCastElement=function(){return this.h};_.t.isFullscreen=function(){return!!document.fullscreenElement};_.t.hideMediaElement=function(){var a=this.getMedia();a?_.yn(a,Ec):this.a.debug("No media element available that could be hidden")};
407
- _.t.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(Ec):this.a.debug("No media element available that could be shown")};_.t.addElementToContainer=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.getContainer();if(!d)throw Error("No container is available. Unable to add element");b&&_.yn(a,_.Dc);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
408
- _.t.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.t.hide=function(a){_.yn(a,Ec)};_.t.show=function(a){a.classList.remove(Ec)};_.t.release=function(){this.j.release()};Hn.prototype.removeElementFromContainer=Hn.prototype.removeElementFromContainer;Hn.prototype.addElementToContainer=Hn.prototype.addElementToContainer;Hn.prototype.getCastElement=Hn.prototype.getCastElement;
409
- Hn.prototype.getContainer=Hn.prototype.getContainer;Hn.prototype.getMedia=Hn.prototype.getMedia;var En={disableContainer:!1,crossorigin:"anonymous",containerEl:null},Fn=1;Jn.prototype.release=function(){this.a.release();Nn(this);this.l=null};_.B("clpp.polyfill.installAll",Qn);var Pn=[];_.B("clpp.polyfill.register",_.Rn);Tn.prototype.verify=function(a,b){var c={kty:"RSA",n:a.n,e:a.e},d=this.g+"."+this.f,e=this.h;return new Promise(function(f,g){try{var h=window&&window.crypto&&window.crypto.subtle}catch(m){}if(h){var l={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};h.importKey("jwk",c,l,!1,["verify"]).then(function(m){var n=_.sh(d),p=_.ck(e);return h.verify(l,m,p.buffer,n.buffer)}).then(function(m){m?f():g(rb)})["catch"](g)}else b?g("Web Crypto API is not supported"):f()})};var Eq={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},Nj="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";Un.prototype.verify=function(){var a=this;return(new Promise(function(b,c){try{var d=Vn(a);b(d)}catch(e){c()}})).then(function(b){return b.verify(Eq)})["catch"](function(b){if(b&&b!==rb){var c=window.location.href;var d=new _.Eg(c);c=d.Ya||d.Na?d:new _.Eg("//"+c);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(c.Na))return Promise.resolve()}throw b;})};var go="vod",fo="live";_.v(V,_.Jj);_.t=V.prototype;_.t.on=function(a,b,c){return _.Jj.prototype.on.call(this,a,b,c)};_.t.one=function(a,b,c){return _.Jj.prototype.one.call(this,a,b,c)};_.t.off=function(a,b){return _.Jj.prototype.off.call(this,a,b)};_.t.init=function(){};_.t.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.I(_.fd,{detail:a}))};_.t.$b=function(a){a=this.L[a];void 0===a&&(a=null);return a};_.t.getSurface=function(){return this.h};_.t.getConfiguration=function(){return _.J.Ma(this.f)};
410
- _.t.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.t.unload=function(){return this.a?this.a.unload():Promise.resolve()};_.t.release=function(){var a=this;if(null!=this.m)return this.g.info("Player release already in progress"),this.m;this.g.debug("Releasing player");this.m=no(this);return this.m["finally"](function(){a.g.debug("Player released");a.m=null})};
411
- _.t.destroy=function(){var a=this;if(this.D)return this.g.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.D=!0;return this.release().then(function(){a.g.debug(Ea);a.trigger(new _.I("destroying"));return a.gc(_.Ld)}).then(function(){a.a&&a.a.removeDelegate(a);a.$c.clear();a.U.release();if(a.a)return a.a.destroy()}).then(function(){Yj(function(b){b.Ca()});_.Uj.clear();a.a=null;a.trigger(new _.I("destroyed"))})};
412
- _.t.load=function(a){var b=this,c;return _.A(function(d){switch(d.a){case 1:return _.xf(d,2),_.y(d,_.qo(b,a),4);case 4:return _.y(d,_.ro(b),5);case 5:return _.y(d,_.to(b),6);case 6:_.yf(d,0);break;case 2:c=_.zf(d);if(b.m)throw b.g.info("Load interrupted while a player release is pending"),new _.L(_.M,7,7E3);throw c;}})};
413
- _.t.gc=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];var e=this;d=this.K.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.kf(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};_.t.use=function(a){a=new a;a.Ja(this);_.Xj(a)};_.t.remove=function(a){if(this.getState()<=_.Om||this.I){var b="";Yj(function(c){c instanceof a&&(b=c.id(),c.Ca())});if(b)return _.Uj["delete"](b),this.J=!0}return!1};
414
- _.t.play=function(){return this.a?this.j&&this.a.namespace()!==_.Fc?this.j.start(this.a):this.a.play():Promise.reject("No player initialized. You need to load content before calling play.")};_.t.pause=function(){return this.a?this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};_.t.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.t.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.Ij};
415
- _.t.getState=function(){return this.a?this.a.getState():_.Om};_.t.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.t.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.t.isPaused=function(){return this.a&&this.a.isPaused()||!1};_.t.getPosition=function(){return this.a?this.a.getPosition():0};_.t.seek=function(a){return this.getState()===_.Zm?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};
408
+ _.t.getStats=function(){if(!this.f||!this.a)return _.Lm();this.f&&_.Fm(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.o=a.videoWidth;b.g=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.j=Number(a.droppedVideoFrames),b.h=c,this.f.B=Number(a.corruptedVideoFrames));if(a=this.getTrackManager())if(a=a.ga())a.bandwidth&&(this.f.m=a.bandwidth),a.Rc&&(this.f.f=a.Rc);return this.f.getStats()};
409
+ _.t.getTimelineCues=function(){return this.j?this.j.getTimelineCues():[]};tn.prototype.a=function(){return Jc};tn.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.bc,e=c===_.gc,f=c===_.uj;return _.Ti()||d||e||f&&!_.Ui()?0:""!==Zi().canPlayType(c)?f&&_.Ui()&&window.MediaSource&&MediaSource.isTypeSupported&&!b.streaming.preferNativeHlsOnSafari?1:2:0};tn.prototype.create=function(){return new jn};_.$f(new tn);_.C("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.C("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1});_.C("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var vn=new _.H("clpp.ads"),un=[];_.C("clpp.utils.dom.createHTMLElement",_.Cn);Dn.prototype.set=function(a){this.g.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=Fn(this,a)};Dn.prototype.get=function(){return this.a};_.t=Jn.prototype;_.t.getMedia=function(){return this.g.get()};_.t.getContainer=function(){return this.f.get()};_.t.getSafeContainer=function(){return this.f};_.t.getId=function(){return this.m};_.t.getUniqueCssClass=function(){return this.o};_.t.getCastElement=function(){return this.h};_.t.isFullscreen=function(){return!!document.fullscreenElement};_.t.hideMediaElement=function(){var a=this.getMedia();a?_.An(a,Fc):this.a.debug("No media element available that could be hidden")};
410
+ _.t.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(Fc):this.a.debug("No media element available that could be shown")};_.t.addElementToContainer=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.getContainer();if(!d)throw Error("No container is available. Unable to add element");b&&_.An(a,_.Ec);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
411
+ _.t.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.t.hide=function(a){_.An(a,Fc)};_.t.show=function(a){a.classList.remove(Fc)};_.t.release=function(){this.j.release()};Jn.prototype.removeElementFromContainer=Jn.prototype.removeElementFromContainer;Jn.prototype.addElementToContainer=Jn.prototype.addElementToContainer;Jn.prototype.getCastElement=Jn.prototype.getCastElement;
412
+ Jn.prototype.getContainer=Jn.prototype.getContainer;Jn.prototype.getMedia=Jn.prototype.getMedia;var Gn={disableContainer:!1,crossorigin:"anonymous",containerEl:null},Hn=1;Ln.prototype.release=function(){this.a.release();Pn(this);this.l=null};_.C("clpp.polyfill.installAll",Sn);var Rn=[];_.C("clpp.polyfill.register",_.Tn);Vn.prototype.verify=function(a,b){var c={kty:"RSA",n:a.n,e:a.e},d=this.g+"."+this.f,e=this.h;return new Promise(function(f,g){try{var h=window&&window.crypto&&window.crypto.subtle}catch(m){}if(h){var l={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};h.importKey("jwk",c,l,!1,["verify"]).then(function(m){var n=_.th(d),p=_.dk(e);return h.verify(l,m,p.buffer,n.buffer)}).then(function(m){m?f():g(qb)})["catch"](g)}else b?g("Web Crypto API is not supported"):f()})};var Gq={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},Oj="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";Wn.prototype.verify=function(){var a=this;return(new Promise(function(b,c){try{var d=Xn(a);b(d)}catch(e){c()}})).then(function(b){return b.verify(Gq)})["catch"](function(b){if(b&&b!==qb){var c=window.location.href;var d=new _.Fg(c);c=d.Za||d.Oa?d:new _.Fg("//"+c);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(c.Oa))return Promise.resolve()}throw b;})};var io="vod",ho="live";_.v(V,_.Kj);_.t=V.prototype;_.t.on=function(a,b,c){return _.Kj.prototype.on.call(this,a,b,c)};_.t.one=function(a,b,c){return _.Kj.prototype.one.call(this,a,b,c)};_.t.off=function(a,b){return _.Kj.prototype.off.call(this,a,b)};_.t.init=function(){};_.t.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.J(_.gd,{detail:a}))};_.t.bc=function(a){a=this.N[a];void 0===a&&(a=null);return a};_.t.getSurface=function(){return this.h};_.t.getConfiguration=function(){return _.K.Na(this.f)};
413
+ _.t.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.t.unload=function(){return this.a?this.a.unload():Promise.resolve()};_.t.release=function(){var a=this;if(null!=this.m)return this.g.info("Player release already in progress"),this.m;this.g.debug("Releasing player");this.m=po(this);return this.m["finally"](function(){a.g.debug("Player released");a.m=null})};
414
+ _.t.destroy=function(){var a=this;if(this.F)return this.g.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.F=!0;return this.release().then(function(){a.g.debug(Da);a.trigger(new _.J("destroying"));return a.hc(_.Md)}).then(function(){a.a&&a.a.removeDelegate(a);a.cd.clear();a.V.release();if(a.a)return a.a.destroy()}).then(function(){Zj(function(b){b.Ca()});_.Vj.clear();a.a=null;a.trigger(new _.J("destroyed"))})};
415
+ _.t.load=function(a){var b=this,c;return _.B(function(d){switch(d.a){case 1:return _.yf(d,2),_.x(d,_.so(b,a),4);case 4:return _.x(d,_.to(b),5);case 5:return _.x(d,_.vo(b),6);case 6:_.zf(d,0);break;case 2:c=_.Af(d);if(b.m)throw b.g.info("Load interrupted while a player release is pending"),new _.L(_.M,7,7E3);throw c;}})};
416
+ _.t.hc=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];var e=this;d=this.L.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.lf(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};_.t.use=function(a){a=new a;a.Ja(this);_.Yj(a)};_.t.remove=function(a){if(this.getState()<=_.Pm||this.J){var b="";Zj(function(c){c instanceof a&&(b=c.id(),c.Ca())});if(b)return _.Vj["delete"](b),this.K=!0}return!1};
417
+ _.t.play=function(){return this.a?this.j&&this.a.namespace()!==_.Gc?this.j.start(this.a):this.a.play():Promise.reject("No player initialized. You need to load content before calling play.")};_.t.pause=function(){return this.a?this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};_.t.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.t.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.Jj};
418
+ _.t.getState=function(){return this.a?this.a.getState():_.Pm};_.t.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.t.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.t.isPaused=function(){return this.a&&this.a.isPaused()||!1};_.t.getPosition=function(){return this.a?this.a.getPosition():0};_.t.seek=function(a){return this.getState()===_.$m?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};
416
419
  _.t.getPresentationStartTime=function(){return this.a?this.a.getPresentationStartTime():null};_.t.getSeekRange=function(){return this.a?this.a.getSeekRange():{start:0,end:0}};_.t.getVolume=function(){return this.a?this.a.getVolume():null};_.t.setVolume=function(a){this.a&&this.a.setVolume(a)};_.t.getDuration=function(){return this.a?this.a.getDuration():-1};_.t.getAdsManager=function(){return this.j};_.t.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};
417
- _.t.canPlay=function(a,b){return this.a?this.a.canPlay(a,b):0};_.t.getPlaybackRate=function(){return this.a?this.a.getPlaybackRate():1};_.t.setPlaybackRate=function(a){this.a&&this.a.setPlaybackRate(a)};_.t.isMuted=function(){return this.a&&this.a.isMuted()||!1};_.t.setMuted=function(a){this.a&&this.a.setMuted(a)};_.t.getNetworkEngine=function(){return this.G};_.t.setNetworkEngine=function(a){this.G=a};_.t.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};
418
- _.t.isLive=function(){return!!this.a&&this.a.isLive()};_.t.getStats=function(){return this.a?this.a.getStats():null};_.t.Ed=function(){return Object.freeze(this.o)};_.t.setSourceIndex=function(a){this.a&&this.a.setSourceIndex(a)};_.t.getSourceIndex=function(){return this.a?this.a.getSourceIndex():-1};_.t.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};_.t.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.t.resetAbr=function(){this.a&&this.a.resetAbr()};
419
- _.t.setDrmCustomDataModifier=function(a){this.Bc=a;po(this)};_.t.setCdnErrorCallback=function(a){this.C=a;this.a&&this.a.setCdnErrorCallback(this.C)};_.t.Wf=function(){this.le=!0};_.B("clpp.Player",V);V.registerPlugin=_.uo;V.prototype.setCdnErrorCallback=V.prototype.setCdnErrorCallback;V.prototype.setDrmCustomDataModifier=V.prototype.setDrmCustomDataModifier;V.prototype.resetAbr=V.prototype.resetAbr;V.prototype.getTimelineCues=V.prototype.getTimelineCues;V.prototype.getLoadedSource=V.prototype.getLoadedSource;
420
- V.prototype.getSources=V.prototype.Ed;V.prototype.getStats=V.prototype.getStats;V.prototype.isLive=V.prototype.isLive;V.prototype.getTextDisplayer=V.prototype.getTextDisplayer;V.prototype.setNetworkEngine=V.prototype.setNetworkEngine;V.prototype.getNetworkEngine=V.prototype.getNetworkEngine;V.prototype.setMuted=V.prototype.setMuted;V.prototype.isMuted=V.prototype.isMuted;V.prototype.setPlaybackRate=V.prototype.setPlaybackRate;V.prototype.getPlaybackRate=V.prototype.getPlaybackRate;
420
+ _.t.canPlay=function(a,b){return this.a?this.a.canPlay(a,b):0};_.t.getPlaybackRate=function(){return this.a?this.a.getPlaybackRate():1};_.t.setPlaybackRate=function(a){this.a&&this.a.setPlaybackRate(a)};_.t.isMuted=function(){return this.a&&this.a.isMuted()||!1};_.t.setMuted=function(a){this.a&&this.a.setMuted(a)};_.t.getNetworkEngine=function(){return this.I};_.t.setNetworkEngine=function(a){this.I=a};_.t.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};
421
+ _.t.isLive=function(){return!!this.a&&this.a.isLive()};_.t.getStats=function(){return this.a?this.a.getStats():null};_.t.Gd=function(){return Object.freeze(this.o)};_.t.setSourceIndex=function(a){this.a&&this.a.setSourceIndex(a)};_.t.getSourceIndex=function(){return this.a?this.a.getSourceIndex():-1};_.t.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};_.t.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.t.resetAbr=function(){this.a&&this.a.resetAbr()};
422
+ _.t.setDrmCustomDataModifier=function(a){this.Dc=a;ro(this)};_.t.setCdnErrorCallback=function(a){this.D=a;this.a&&this.a.setCdnErrorCallback(this.D)};_.t.Zf=function(){this.ne=!0};_.C("clpp.Player",V);V.registerPlugin=_.wo;V.prototype.setCdnErrorCallback=V.prototype.setCdnErrorCallback;V.prototype.setDrmCustomDataModifier=V.prototype.setDrmCustomDataModifier;V.prototype.resetAbr=V.prototype.resetAbr;V.prototype.getTimelineCues=V.prototype.getTimelineCues;V.prototype.getLoadedSource=V.prototype.getLoadedSource;
423
+ V.prototype.getSources=V.prototype.Gd;V.prototype.getStats=V.prototype.getStats;V.prototype.isLive=V.prototype.isLive;V.prototype.getTextDisplayer=V.prototype.getTextDisplayer;V.prototype.setNetworkEngine=V.prototype.setNetworkEngine;V.prototype.getNetworkEngine=V.prototype.getNetworkEngine;V.prototype.setMuted=V.prototype.setMuted;V.prototype.isMuted=V.prototype.isMuted;V.prototype.setPlaybackRate=V.prototype.setPlaybackRate;V.prototype.getPlaybackRate=V.prototype.getPlaybackRate;
421
424
  V.prototype.namespace=V.prototype.namespace;V.prototype.getAdsManager=V.prototype.getAdsManager;V.prototype.getDuration=V.prototype.getDuration;V.prototype.setVolume=V.prototype.setVolume;V.prototype.getVolume=V.prototype.getVolume;V.prototype.getSeekRange=V.prototype.getSeekRange;V.prototype.getPresentationStartTime=V.prototype.getPresentationStartTime;V.prototype.seek=V.prototype.seek;V.prototype.getPosition=V.prototype.getPosition;V.prototype.isPaused=V.prototype.isPaused;V.prototype.isEnded=V.prototype.isEnded;
422
425
  V.prototype.getState=V.prototype.getState;V.prototype.getBufferInfo=V.prototype.getBufferInfo;V.prototype.getTrackManager=V.prototype.getTrackManager;V.prototype.pause=V.prototype.pause;V.prototype.play=V.prototype.play;V.prototype.remove=V.prototype.remove;V.prototype.use=V.prototype.use;V.prototype.load=V.prototype.load;V.prototype.destroy=V.prototype.destroy;V.prototype.release=V.prototype.release;V.prototype.getDrmInfo=V.prototype.getDrmInfo;V.prototype.getConfiguration=V.prototype.getConfiguration;
423
- V.prototype.getSurface=V.prototype.getSurface;V.prototype.getPlugin=V.prototype.$b;V.prototype.off=V.prototype.off;V.prototype.one=V.prototype.one;V.prototype.on=V.prototype.on;_.Om=0;_.$m=1;_.Tm=2;_.bn=3;_.an=4;_.Vm=5;_.Zm=6;_.Pm=7;_.Xm={IDLE:_.Om,PREPARING:_.$m,BUFFERING:_.Tm,PLAYING:_.bn,PAUSED:_.an,ENDED:_.Vm,ERROR:_.Zm,UNSET:_.Pm};V.State=_.Xm;var ko=[];_.t=W.prototype;_.t.sb=function(){};_.t.tb=function(){};_.t.yb=function(){};_.t.getId=function(){};_.t.getCreativeId=function(){};_.t.getApiFramework=function(){};_.t.getAdSystem=function(){};_.t.getAdvertiserName=function(){};_.t.getTitle=function(){};_.t.getDuration=function(){};_.t.getSkipTimeOffset=function(){};_.t.dc=function(){};_.t.Ib=function(){};_.t.getMediaUrl=function(){};_.t.vb=function(){};_.t.ub=function(){};_.t.gb=function(){};_.t.Ua=function(){};_.t.getPodIndex=function(){};
424
- _.t.Jb=function(){};_.t.Kb=function(){};_.t.xb=function(){};_.t.getWrapperAdIds=function(){};_.t.getWrapperAdSystems=function(){};_.t.getWrapperCreativeIds=function(){};_.B("clpp.ads.IAd",W);W.prototype.getWrapperCreativeIds=W.prototype.getWrapperCreativeIds;W.prototype.getWrapperAdSystems=W.prototype.getWrapperAdSystems;W.prototype.getWrapperAdIds=W.prototype.getWrapperAdIds;W.prototype.getSequenceLength=W.prototype.xb;W.prototype.getPositionInSequence=W.prototype.Kb;
425
- W.prototype.getPodTimeOffset=W.prototype.Jb;W.prototype.getPodIndex=W.prototype.getPodIndex;W.prototype.getPodType=W.prototype.Ua;W.prototype.getMediaBitrate=W.prototype.gb;W.prototype.getMediaHeight=W.prototype.ub;W.prototype.getMediaWidth=W.prototype.vb;W.prototype.getMediaUrl=W.prototype.getMediaUrl;W.prototype.getClickThroughUrl=W.prototype.Ib;W.prototype.isBumper=W.prototype.dc;W.prototype.getSkipTimeOffset=W.prototype.getSkipTimeOffset;W.prototype.getDuration=W.prototype.getDuration;
426
- W.prototype.getTitle=W.prototype.getTitle;W.prototype.getAdvertiserName=W.prototype.getAdvertiserName;W.prototype.getAdSystem=W.prototype.getAdSystem;W.prototype.getApiFramework=W.prototype.getApiFramework;W.prototype.getCreativeId=W.prototype.getCreativeId;W.prototype.getId=W.prototype.getId;W.prototype.getTechnology=W.prototype.yb;W.prototype.getAdManagerVersion=W.prototype.tb;W.prototype.getAdManagerName=W.prototype.sb;vo.prototype.name=function(){};vo.prototype.aa=function(){};vo.prototype.create=function(){};_.B("clpp.ads.IAdsManagerFactory",vo);vo.prototype.create=vo.prototype.create;vo.prototype.isSupported=vo.prototype.aa;vo.prototype.name=vo.prototype.name;_.t=wo.prototype;_.t.load=function(){};_.t.start=function(){};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){};_.t.setVolume=function(){};_.t.getPosition=function(){};_.t.dispose=function(){};_.B("clpp.ads.IAdsManager",wo);wo.prototype.getPosition=wo.prototype.getPosition;wo.prototype.setVolume=wo.prototype.setVolume;wo.prototype.getVolume=wo.prototype.getVolume;wo.prototype.skip=wo.prototype.skip;wo.prototype.pause=wo.prototype.pause;
427
- wo.prototype.resume=wo.prototype.resume;_.t=xo.prototype;_.t.load=function(){return Promise.resolve()};_.t.start=function(a){return a.play()};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){return 1};_.t.setVolume=function(){};_.t.getPosition=function(){return-1};_.t.dispose=function(){return _.A(function(a){_.z(a)})};xo.prototype.dispose=xo.prototype.dispose;xo.prototype.getPosition=xo.prototype.getPosition;xo.prototype.setVolume=xo.prototype.setVolume;xo.prototype.getVolume=xo.prototype.getVolume;
428
- xo.prototype.skip=xo.prototype.skip;xo.prototype.pause=xo.prototype.pause;xo.prototype.resume=xo.prototype.resume;xo.prototype.start=xo.prototype.start;xo.prototype.load=xo.prototype.load;vn.prototype.name=function(){return"clpp.ads.NopAdsManagerFactory"};vn.prototype.aa=function(){return!0};vn.prototype.create=function(){return new xo};vn.prototype.create=vn.prototype.create;vn.prototype.isSupported=vn.prototype.aa;vn.prototype.name=vn.prototype.name;yo.prototype.getCuePoints=function(){};yo.prototype.Lb=function(){};yo.prototype.hb=function(){};_.B("clpp.ads.IAdsTimeline",yo);yo.prototype.hasPostroll=yo.prototype.hb;yo.prototype.hasPreroll=yo.prototype.Lb;yo.prototype.getCuePoints=yo.prototype.getCuePoints;_.zo.prototype.Wb=function(){};_.zo.prototype.release=function(){};_.t=Ao.prototype;_.t.ud=function(a){this.a=a};_.t.Uc=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(Va)};_.t.Dd=function(){return this.a&&this.a.mediaKeys};_.t.yc=function(a,b){return navigator.requestMediaKeySystemAccess(a,b)};_.t.Tc=function(){return lb};Bo.prototype.a=function(){return lb};Bo.prototype.aa=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};
429
- Bo.prototype.create=function(){return new Ao};pl(new Bo,1E3);_.t=Co.prototype;_.t.getStatus=function(){return this.a};_.t.forEach=function(a){this.a&&a(this.a,Fq.value())};_.t.get=function(a){if(this.has(a))return this.a};_.t.has=function(a){var b=Fq.value();return this.a&&dh(a,b)?!0:!1};_.t.entries=function(){};_.t.keys=function(){};_.t.values=function(){};var Fq=new _.Lm(function(){return mh(new Uint8Array([0]))});_.t=Eo.prototype;_.t.ud=function(){};_.t.Uc=function(a){_.Qf("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.t.Dd=function(){return null};_.t.yc=function(){_.Qf("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.t.Tc=function(){return"NOP"};Fo.prototype.a=function(){return"NOP"};Fo.prototype.aa=function(){return!0};Fo.prototype.create=function(){return new Eo};
430
- pl(new Fo,-1);_.t=Go.prototype;_.t.ud=function(a){this.f=a};_.t.Uc=function(a){var b=this.a;b&&b!==a&&Jo(b,null);return(this.a=a)?Jo(a,this.f):Promise.resolve()};_.t.Dd=function(){return this.a};_.t.yc=function(a,b){_.Qf("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new Ho(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.t.Tc=function(){return"APPLE"};Ho.prototype.createMediaKeys=function(){var a=new Io(this.keySystem);return Promise.resolve(a)};
431
- Ho.prototype.getConfiguration=function(){_.Qf("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};Io.prototype.createSession=function(a){a=void 0===a?ze:a;this.a.debug("Creating Apple MediaKeys Session");if(a!==ze)throw new TypeError("Session type "+a+ba);return new Ko(this.h,"__session_"+this.j++)};Io.prototype.setServerCertificate=function(){this.a.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.v(Ko,_.Jj);_.t=Ko.prototype;
432
- _.t.generateRequest=function(a,b){var c=this;if(this.m)return Promise.reject(ob);this.f.debug("generateRequest");this.h=new _.Mh;try{var d=this.o.createSession(_.Re,_.N(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,bf,function(e){var f=c.keyStatuses.getStatus();c.f.debug("Received Key Message in "+c.sessionId);c.h&&(c.h.resolve(),c.h=null);e=new _.I(yd,{messageType:void 0===f||f===re?qd:pd,message:mh(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,$e,function(e){c.f.debug("onWebkitKeyAdded_",
433
- e);c.g&&(Lo(c,"usable"),c.g.resolve(),c.g=null)});this.j.on(d,af,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===re)c.f.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.f.error("Received key error in session "+c.sessionId+" with code "+(c.a.error.code+". Session Status ")+(e+".")),e=Error("EME AppleEmeManager key error"),e.errorCode=c.a.error,null!==c.h)c.h.reject(e),c.h=null;else if(null!==c.g)c.g.reject(e),
434
- c.g=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:Lo(c,"output-not-allowed");break;default:Lo(c,_.md)}});Lo(this,re)}catch(e){this.h.reject(e)}return this.h};_.t.load=function(){this.f.debug("load");return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.t.update=function(a){if(this.m)return Promise.reject(ob);this.f.debug("update");this.g=new _.Mh;try{this.a.update(_.N(a))}catch(b){this.g.reject(b)}return this.g};
435
- _.t.close=function(){if(this.m)return this.closed;this.f.info("Closing Key Session "+this.sessionId);this.m=!0;try{this.a.close(),this.closed.resolve(),_.fg(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.t.remove=function(){this.f.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};Mo.prototype.a=function(){return"APPLE"};Mo.prototype.aa=function(){return!!window.WebKitMediaKeys};
436
- Mo.prototype.create=function(){return new Go};pl(new Mo,1100);_.t=No.prototype;_.t.ud=function(a){this.a=a};_.t.Uc=function(a){_.Qf("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(Va);var b=this.f;b&&b!==a&&So(b,null);(this.f=a)&&So(a,this.a);return Promise.resolve()};_.t.Dd=function(){return this.f};_.t.yc=function(a,b){_.Qf("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.Pe);c=d.length?d[0]:document.createElement(_.Pe)}var e=new Oo(this.g,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
437
- _.t.Tc=function(){return"WEBKIT"};Oo.prototype.createMediaKeys=function(){return Promise.resolve(new Po(this.g,this.a))};Oo.prototype.getConfiguration=function(){return this.f};Po.prototype.createSession=function(a){a=void 0===a?ze:a;if(a!==ze&&a!==_.Ud)throw new TypeError("Session type "+a+ba);if(!this.a)throw a=Error("Media element is missing."),a.name=Pa,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new To(this.g,this.a,this.m,a);this.h.push(a);return a};
438
- Po.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.v(To,_.Jj);_.t=To.prototype;_.t.generateRequest=function(a,b){_.Qf("WebkitEmeManager.MediaKeySession.generateRequest");return Vo(this,b,null)};_.t.load=function(a){_.Qf(Bb);return this.j===_.Ud?Vo(this,null,a):Promise.reject(Error(Za))};_.t.update=function(a){_.Qf(Bb);var b=new _.Mh;Wo(this,b,a);return b};
439
- _.t.close=function(){_.Qf("WebkitEmeManager.MediaKeySession.close");if(this.j!==_.Ud){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=Uo(this,"cancelKeyRequest");try{this.h[a](this.g,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.t.remove=function(){_.Qf("WebkitEmeManager.MediaKeySession.remove");return this.j!==_.Ud?Promise.reject(Error(Za)):this.close()};Xo.prototype.a=function(){return"WEBKIT"};
440
- Xo.prototype.aa=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};Xo.prototype.create=function(){return new No};pl(new Xo);_.v(Yo,_.rk);Yo.prototype.hd=function(a,b){for(var c=a.drm.customData.headers||{},d=_.u(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};Yo.prototype.Ef=function(a,b){var c=Nk(b);switch(this.o){case Gq:return c;case Hq:return(new _.mi(c)).f;default:throw Error("Unknown content ID strategy");}};Yo.prototype.$f=function(a,b){b.headers[va]=hc;this.hd(a,b);var c={spc:_.ak(b.body)};b.body=_.uh(_.oi(c,!0))};
441
- Yo.prototype.ag=function(a,b){var c=_.oh(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.ck(c).buffer};_.B(Gc,Yo);Yo.prototype.onFairPlayLicenseResponse=Yo.prototype.ag;Yo.prototype.onFairPlayLicenseRequest=Yo.prototype.$f;Yo.prototype.extractFairPlayContentId=Yo.prototype.Ef;Yo.prototype.onLicenseRequest=Yo.prototype.hd;Yo.prototype.constructor=Yo.prototype.constructor;Yo.NAME=Na;var Hq="hostname",Gq="full-skd";
442
- Yo.FairPlayContentIdStrategy={HOSTNAME:Hq,FULL_SKD:Gq};_.v(Zo,_.zo);_.t=Zo.prototype;_.t.Ja=function(a){this.l=a};_.t.Ca=function(){this.l=null};_.t.Wb=function(){var a=this.l.getConfiguration();if(a.drm&&a.drm&&a.drm.env===Na){a=a.drm.customData;if(!a)throw new _.L(_.M,7,7100,_.Qc);a=new Yo(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||Gq);_.mk(a)}};_.t.release=function(){};_.t.id=function(){return"headerdrm"};_.B("clpp.drm.HeaderDrmComponent",Zo);_.Rn(function(){ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(a,b){b=void 0!==b?b:this.byteLength;a=Math.floor(a);b=Math.floor(b);0>a&&(a+=this.byteLength);0>b&&(b+=this.byteLength);a=Math.min(Math.max(0,a),this.byteLength);b=Math.min(Math.max(0,b),this.byteLength);if(0>=b-a)return new ArrayBuffer(0);var c=new ArrayBuffer(b-a),d=_.N(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.Rn(function(){_.Qf("mathRound.install")});_.Rn(function(){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.webkitExitFullscreen;gd in document||(Object.defineProperty(document,gd,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
443
- {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",$o);document.addEventListener("webkitfullscreenerror",$o);document.addEventListener("mozfullscreenchange",$o);document.addEventListener("mozfullscreenerror",$o);document.addEventListener("MSFullscreenChange",$o);document.addEventListener("MSFullscreenError",$o)}});_.Rn(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Qf("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=bp,document.exitPictureInPicture=cp,document.addEventListener("webkitpresentationmodechanged",ap,!0))}});_.Rn(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=dp)}});_.Rn(function(){if(window.VTTCue)_.Pf("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Pf(Ab),window.VTTCue=ep;else if(6===a)_.Pf("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=fp;else{try{var b=!!ep(1,2,"")}catch(c){b=!1}b&&(_.Pf(Ab),window.VTTCue=ep)}}else _.Rf("VTTCue not available.")});var gp;_.Rn(function(){_.Qf("InputEvent.install");_.Pi("Trident/")&&HTMLInputElement.prototype.addEventListener!==hp&&(_.Pf("Patching input event support on IE."),gp=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=hp)});_.Rn(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.Rn(function(){_.Qf("VideoPlayPromise.install");if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b["catch"](function(){});return b}}});_.pp.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.h(b.contentRect.width,b.contentRect.height,a.f.isFullscreen())});this.a.observe(this.g)};_.pp.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.rp.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.Pe);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.Mh;c=c.play();var e=(new _.Li(function(){b(a)})).Z(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===cb?b(!0):b(!1)}):b(!0);return d};
444
- var qp=new Uint8Array([0,0,0,28,102,116,121,112,105,115,111,109,0,0,2,0,105,115,111,109,105,115,111,50,109,112,52,49,0,0,0,8,102,114,101,101,0,0,2,239,109,100,97,116,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
426
+ V.prototype.getSurface=V.prototype.getSurface;V.prototype.getPlugin=V.prototype.bc;V.prototype.off=V.prototype.off;V.prototype.one=V.prototype.one;V.prototype.on=V.prototype.on;_.Pm=0;_.an=1;_.Um=2;_.cn=3;_.bn=4;_.Wm=5;_.$m=6;_.Qm=7;_.Ym={IDLE:_.Pm,PREPARING:_.an,BUFFERING:_.Um,PLAYING:_.cn,PAUSED:_.bn,ENDED:_.Wm,ERROR:_.$m,UNSET:_.Qm};V.State=_.Ym;var mo=[];_.t=W.prototype;_.t.sb=function(){};_.t.tb=function(){};_.t.yb=function(){};_.t.getId=function(){};_.t.getCreativeId=function(){};_.t.getApiFramework=function(){};_.t.getAdSystem=function(){};_.t.getAdvertiserName=function(){};_.t.getTitle=function(){};_.t.getDuration=function(){};_.t.getSkipTimeOffset=function(){};_.t.fc=function(){};_.t.Kb=function(){};_.t.getMediaUrl=function(){};_.t.vb=function(){};_.t.ub=function(){};_.t.hb=function(){};_.t.Va=function(){};_.t.getPodIndex=function(){};
427
+ _.t.Lb=function(){};_.t.Mb=function(){};_.t.xb=function(){};_.t.getWrapperAdIds=function(){};_.t.getWrapperAdSystems=function(){};_.t.getWrapperCreativeIds=function(){};_.C("clpp.ads.IAd",W);W.prototype.getWrapperCreativeIds=W.prototype.getWrapperCreativeIds;W.prototype.getWrapperAdSystems=W.prototype.getWrapperAdSystems;W.prototype.getWrapperAdIds=W.prototype.getWrapperAdIds;W.prototype.getSequenceLength=W.prototype.xb;W.prototype.getPositionInSequence=W.prototype.Mb;
428
+ W.prototype.getPodTimeOffset=W.prototype.Lb;W.prototype.getPodIndex=W.prototype.getPodIndex;W.prototype.getPodType=W.prototype.Va;W.prototype.getMediaBitrate=W.prototype.hb;W.prototype.getMediaHeight=W.prototype.ub;W.prototype.getMediaWidth=W.prototype.vb;W.prototype.getMediaUrl=W.prototype.getMediaUrl;W.prototype.getClickThroughUrl=W.prototype.Kb;W.prototype.isBumper=W.prototype.fc;W.prototype.getSkipTimeOffset=W.prototype.getSkipTimeOffset;W.prototype.getDuration=W.prototype.getDuration;
429
+ W.prototype.getTitle=W.prototype.getTitle;W.prototype.getAdvertiserName=W.prototype.getAdvertiserName;W.prototype.getAdSystem=W.prototype.getAdSystem;W.prototype.getApiFramework=W.prototype.getApiFramework;W.prototype.getCreativeId=W.prototype.getCreativeId;W.prototype.getId=W.prototype.getId;W.prototype.getTechnology=W.prototype.yb;W.prototype.getAdManagerVersion=W.prototype.tb;W.prototype.getAdManagerName=W.prototype.sb;xo.prototype.name=function(){};xo.prototype.ca=function(){};xo.prototype.create=function(){};_.C("clpp.ads.IAdsManagerFactory",xo);xo.prototype.create=xo.prototype.create;xo.prototype.isSupported=xo.prototype.ca;xo.prototype.name=xo.prototype.name;_.t=yo.prototype;_.t.load=function(){};_.t.start=function(){};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){};_.t.setVolume=function(){};_.t.getPosition=function(){};_.t.dispose=function(){};_.C("clpp.ads.IAdsManager",yo);yo.prototype.getPosition=yo.prototype.getPosition;yo.prototype.setVolume=yo.prototype.setVolume;yo.prototype.getVolume=yo.prototype.getVolume;yo.prototype.skip=yo.prototype.skip;yo.prototype.pause=yo.prototype.pause;
430
+ yo.prototype.resume=yo.prototype.resume;_.t=zo.prototype;_.t.load=function(){return Promise.resolve()};_.t.start=function(a){return a.play()};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){return 1};_.t.setVolume=function(){};_.t.getPosition=function(){return-1};_.t.dispose=function(){return _.B(function(a){_.z(a)})};zo.prototype.dispose=zo.prototype.dispose;zo.prototype.getPosition=zo.prototype.getPosition;zo.prototype.setVolume=zo.prototype.setVolume;zo.prototype.getVolume=zo.prototype.getVolume;
431
+ zo.prototype.skip=zo.prototype.skip;zo.prototype.pause=zo.prototype.pause;zo.prototype.resume=zo.prototype.resume;zo.prototype.start=zo.prototype.start;zo.prototype.load=zo.prototype.load;xn.prototype.name=function(){return"clpp.ads.NopAdsManagerFactory"};xn.prototype.ca=function(){return!0};xn.prototype.create=function(){return new zo};xn.prototype.create=xn.prototype.create;xn.prototype.isSupported=xn.prototype.ca;xn.prototype.name=xn.prototype.name;Ao.prototype.getCuePoints=function(){};Ao.prototype.Nb=function(){};Ao.prototype.ib=function(){};_.C("clpp.ads.IAdsTimeline",Ao);Ao.prototype.hasPostroll=Ao.prototype.ib;Ao.prototype.hasPreroll=Ao.prototype.Nb;Ao.prototype.getCuePoints=Ao.prototype.getCuePoints;_.Bo.prototype.Yb=function(){};_.Bo.prototype.release=function(){};_.t=Co.prototype;_.t.wd=function(a){this.a=a};_.t.Wc=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(Wa)};_.t.Fd=function(){return this.a&&this.a.mediaKeys};_.t.Ac=function(a,b){return navigator.requestMediaKeySystemAccess(a,b)};_.t.Vc=function(){return lb};Do.prototype.a=function(){return lb};Do.prototype.ca=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};
432
+ Do.prototype.create=function(){return new Co};ql(new Do,1E3);_.t=Eo.prototype;_.t.getStatus=function(){return this.a};_.t.forEach=function(a){this.a&&a(this.a,Hq.value())};_.t.get=function(a){if(this.has(a))return this.a};_.t.has=function(a){var b=Hq.value();return this.a&&gh(a,b)?!0:!1};_.t.entries=function(){};_.t.keys=function(){};_.t.values=function(){};var Hq=new _.Mm(function(){return nh(new Uint8Array([0]))});_.t=Go.prototype;_.t.wd=function(){};_.t.Wc=function(a){_.Rf("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.t.Fd=function(){return null};_.t.Ac=function(){_.Rf("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.t.Vc=function(){return"NOP"};Ho.prototype.a=function(){return"NOP"};Ho.prototype.ca=function(){return!0};Ho.prototype.create=function(){return new Go};
433
+ ql(new Ho,-1);_.t=Io.prototype;_.t.wd=function(a){this.f=a};_.t.Wc=function(a){var b=this.a;b&&b!==a&&Lo(b,null);return(this.a=a)?Lo(a,this.f):Promise.resolve()};_.t.Fd=function(){return this.a};_.t.Ac=function(a,b){_.Rf("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new Jo(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.t.Vc=function(){return"APPLE"};Jo.prototype.createMediaKeys=function(){var a=new Ko(this.keySystem);return Promise.resolve(a)};
434
+ Jo.prototype.getConfiguration=function(){_.Rf("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};Ko.prototype.createSession=function(a){a=void 0===a?Ae:a;this.a.debug("Creating Apple MediaKeys Session");if(a!==Ae)throw new TypeError("Session type "+a+ba);return new Mo(this.h,"__session_"+this.j++)};Ko.prototype.setServerCertificate=function(){this.a.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.v(Mo,_.Kj);_.t=Mo.prototype;
435
+ _.t.generateRequest=function(a,b){var c=this;if(this.m)return Promise.reject(ob);this.f.debug("generateRequest");this.h=new _.Nh;try{var d=this.o.createSession(_.Se,_.N(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,cf,function(e){var f=c.keyStatuses.getStatus();c.f.debug("Received Key Message in "+c.sessionId);c.h&&(c.h.resolve(),c.h=null);e=new _.J(zd,{messageType:void 0===f||f===se?rd:qd,message:nh(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,af,function(e){c.f.debug("onWebkitKeyAdded_",
436
+ e);c.g&&(No(c,"usable"),c.g.resolve(),c.g=null)});this.j.on(d,bf,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===se)c.f.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.f.error("Received key error in session "+c.sessionId+" with code "+(c.a.error.code+". Session Status ")+(e+".")),e=Error("EME AppleEmeManager key error"),e.errorCode=c.a.error,null!==c.h)c.h.reject(e),c.h=null;else if(null!==c.g)c.g.reject(e),
437
+ c.g=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:No(c,"output-not-allowed");break;default:No(c,_.nd)}});No(this,se)}catch(e){this.h.reject(e)}return this.h};_.t.load=function(){this.f.debug("load");return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.t.update=function(a){if(this.m)return Promise.reject(ob);this.f.debug("update");this.g=new _.Nh;try{this.a.update(_.N(a))}catch(b){this.g.reject(b)}return this.g};
438
+ _.t.close=function(){if(this.m)return this.closed;this.f.info("Closing Key Session "+this.sessionId);this.m=!0;try{this.a.close(),this.closed.resolve(),_.gg(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.t.remove=function(){this.f.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};Oo.prototype.a=function(){return"APPLE"};Oo.prototype.ca=function(){return!!window.WebKitMediaKeys};
439
+ Oo.prototype.create=function(){return new Io};ql(new Oo,1100);_.t=Po.prototype;_.t.wd=function(a){this.a=a};_.t.Wc=function(a){_.Rf("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(Wa);var b=this.f;b&&b!==a&&Uo(b,null);(this.f=a)&&Uo(a,this.a);return Promise.resolve()};_.t.Fd=function(){return this.f};_.t.Ac=function(a,b){_.Rf("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.Qe);c=d.length?d[0]:document.createElement(_.Qe)}var e=new Qo(this.g,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
440
+ _.t.Vc=function(){return"WEBKIT"};Qo.prototype.createMediaKeys=function(){return Promise.resolve(new Ro(this.g,this.a))};Qo.prototype.getConfiguration=function(){return this.f};Ro.prototype.createSession=function(a){a=void 0===a?Ae:a;if(a!==Ae&&a!==_.Vd)throw new TypeError("Session type "+a+ba);if(!this.a)throw a=Error("Media element is missing."),a.name=Qa,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new Vo(this.g,this.a,this.m,a);this.h.push(a);return a};
441
+ Ro.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.v(Vo,_.Kj);_.t=Vo.prototype;_.t.generateRequest=function(a,b){_.Rf("WebkitEmeManager.MediaKeySession.generateRequest");return Xo(this,b,null)};_.t.load=function(a){_.Rf(Bb);return this.j===_.Vd?Xo(this,null,a):Promise.reject(Error($a))};_.t.update=function(a){_.Rf(Bb);var b=new _.Nh;Yo(this,b,a);return b};
442
+ _.t.close=function(){_.Rf("WebkitEmeManager.MediaKeySession.close");if(this.j!==_.Vd){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=Wo(this,"cancelKeyRequest");try{this.h[a](this.g,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.t.remove=function(){_.Rf("WebkitEmeManager.MediaKeySession.remove");return this.j!==_.Vd?Promise.reject(Error($a)):this.close()};Zo.prototype.a=function(){return"WEBKIT"};
443
+ Zo.prototype.ca=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};Zo.prototype.create=function(){return new Po};ql(new Zo);_.v($o,_.sk);$o.prototype.kd=function(a,b){for(var c=a.drm.customData.headers||{},d=_.u(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};$o.prototype.Gf=function(a,b){var c=Ok(b);switch(this.o){case Iq:return c;case Jq:return(new _.ni(c)).a;default:throw Error("Unknown content ID strategy");}};$o.prototype.cg=function(a,b){b.headers[va]=hc;this.kd(a,b);var c={spc:_.bk(b.body)};b.body=_.vh(_.pi(c,!0))};
444
+ $o.prototype.dg=function(a,b){var c=_.ph(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.dk(c).buffer};_.C(Hc,$o);$o.prototype.onFairPlayLicenseResponse=$o.prototype.dg;$o.prototype.onFairPlayLicenseRequest=$o.prototype.cg;$o.prototype.extractFairPlayContentId=$o.prototype.Gf;$o.prototype.onLicenseRequest=$o.prototype.kd;$o.prototype.constructor=$o.prototype.constructor;$o.NAME=Oa;var Jq="hostname",Iq="full-skd";
445
+ $o.FairPlayContentIdStrategy={HOSTNAME:Jq,FULL_SKD:Iq};_.v(ap,_.Bo);_.t=ap.prototype;_.t.Ja=function(a){this.l=a};_.t.Ca=function(){this.l=null};_.t.Yb=function(){var a=this.l.getConfiguration();if(a.drm&&a.drm&&a.drm.env===Oa){a=a.drm.customData;if(!a)throw new _.L(_.M,7,7100,_.Rc);a=new $o(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||Iq);_.nk(a)}};_.t.release=function(){};_.t.id=function(){return"headerdrm"};_.C("clpp.drm.HeaderDrmComponent",ap);_.Tn(function(){ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(a,b){b=void 0!==b?b:this.byteLength;a=Math.floor(a);b=Math.floor(b);0>a&&(a+=this.byteLength);0>b&&(b+=this.byteLength);a=Math.min(Math.max(0,a),this.byteLength);b=Math.min(Math.max(0,b),this.byteLength);if(0>=b-a)return new ArrayBuffer(0);var c=new ArrayBuffer(b-a),d=_.N(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.Tn(function(){_.Rf("mathRound.install")});_.Tn(function(){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.webkitExitFullscreen;hd in document||(Object.defineProperty(document,hd,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
446
+ {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",bp);document.addEventListener("webkitfullscreenerror",bp);document.addEventListener("mozfullscreenchange",bp);document.addEventListener("mozfullscreenerror",bp);document.addEventListener("MSFullscreenChange",bp);document.addEventListener("MSFullscreenError",bp)}});_.Tn(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Rf("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=dp,document.exitPictureInPicture=ep,document.addEventListener("webkitpresentationmodechanged",cp,!0))}});_.Tn(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=fp)}});_.Tn(function(){if(window.VTTCue)_.Qf("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Qf(Ab),window.VTTCue=gp;else if(6===a)_.Qf("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=hp;else{try{var b=!!gp(1,2,"")}catch(c){b=!1}b&&(_.Qf(Ab),window.VTTCue=gp)}}else _.Sf("VTTCue not available.")});var ip;_.Tn(function(){_.Rf("InputEvent.install");_.Qi("Trident/")&&HTMLInputElement.prototype.addEventListener!==jp&&(_.Qf("Patching input event support on IE."),ip=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=jp)});_.Tn(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.Tn(function(){_.Rf("VideoPlayPromise.install");if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b["catch"](function(){});return b}}});_.rp.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.h(b.contentRect.width,b.contentRect.height,a.f.isFullscreen())});this.a.observe(this.g)};_.rp.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.tp.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.Qe);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.Nh;c=c.play();var e=(new _.Ni(function(){b(a)})).Z(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===cb?b(!0):b(!1)}):b(!0);return d};
447
+ var sp=new Uint8Array([0,0,0,28,102,116,121,112,105,115,111,109,0,0,2,0,105,115,111,109,105,115,111,50,109,112,52,49,0,0,0,8,102,114,101,101,0,0,2,239,109,100,97,116,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
445
448
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
446
449
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,128,0,0,0,0,
447
450
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,0,0,2,194,109,111,111,118,0,0,0,108,109,118,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,232,0,0,0,47,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,1,236,116,114,97,107,0,0,0,92,116,107,104,100,0,0,0,3,0,0,0,0,
448
451
  0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,47,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,101,100,116,115,0,0,0,28,101,108,115,116,0,0,0,0,0,0,0,1,0,0,0,47,0,0,0,0,0,1,0,0,0,0,1,100,109,100,105,97,0,0,0,32,109,100,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,68,0,0,8,0,85,196,0,0,0,0,0,45,104,100,108,114,0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0,0,0,1,15,109,105,110,102,
449
452
  0,0,0,16,115,109,104,100,0,0,0,0,0,0,0,0,0,0,0,36,100,105,110,102,0,0,0,28,100,114,101,102,0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1,0,0,0,211,115,116,98,108,0,0,0,103,115,116,115,100,0,0,0,0,0,0,0,1,0,0,0,87,109,112,52,97,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,2,0,16,0,0,0,0,172,68,0,0,0,0,0,51,101,115,100,115,0,0,0,0,3,128,128,128,34,0,2,0,4,128,128,128,20,64,21,0,0,0,0,1,244,0,0,1,243,249,5,128,128,128,2,18,16,6,128,128,128,1,2,0,0,0,24,115,116,116,115,0,0,0,0,0,0,0,1,0,0,0,2,0,0,4,0,0,0,0,28,
450
- 115,116,115,99,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,28,115,116,115,122,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,115,0,0,1,116,0,0,0,20,115,116,99,111,0,0,0,0,0,0,0,1,0,0,0,44,0,0,0,98,117,100,116,97,0,0,0,90,109,101,116,97,0,0,0,0,0,0,0,33,104,100,108,114,0,0,0,0,0,0,0,0,109,100,105,114,97,112,112,108,0,0,0,0,0,0,0,0,0,0,0,0,45,105,108,115,116,0,0,0,37,169,116,111,111,0,0,0,29,100,97,116,97,0,0,0,1,0,0,0,0,76,97,118,102,53,54,46,52,48,46,49,48,49]);_.up={};_.wp={};var Bp=window.XMLHttpRequest;_.v(Jp,_.Nh);Jp.prototype.then=function(a,b){this.P=this.P.then(a,b);return this};Jp.prototype["catch"]=function(a){this.P=this.P["catch"](a);return this};Jp.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.g.then(function(b){a.m&&clearTimeout(a.m);a.j&&a.j();return b.abort()})["catch"](function(){})};var Pp=window.fetch,Np=window.AbortController,Mp=window.Headers;_.Rp={};_.t=_.Tp.prototype;_.t.getBackgroundColor=function(){return this.J};_.t.setBackgroundColor=function(a){this.J=a;this.ob()};_.t.getWindowColor=function(){return this.U};_.t.setWindowColor=function(a){this.U=a;this.ob()};_.t.getFontFamily=function(){return this.S};_.t.setFontFamily=function(a){this.S=a;this.ob()};_.t.getFontColor=function(){return this.O};_.t.setFontColor=function(a){this.O=a;this.ob()};_.t.getFontSize=function(){return this.G};_.t.setFontSize=function(a){this.G=a;this.ob()};
451
- _.t.getFontSizePercent=function(){return null===this.A?Iq:this.A};_.t.setFontSizePercent=function(a){this.A=a;this.ob()};_.t.getEdgeColor=function(){return this.D};_.t.setEdgeColor=function(a){this.D=a;this.ob()};_.t.getEdgeType=function(){return this.m};_.t.setEdgeType=function(a){this.m=a;this.ob()};_.Tp.prototype.setEdgeType=_.Tp.prototype.setEdgeType;_.Tp.prototype.getEdgeType=_.Tp.prototype.getEdgeType;_.Tp.prototype.setEdgeColor=_.Tp.prototype.setEdgeColor;_.Tp.prototype.getEdgeColor=_.Tp.prototype.getEdgeColor;
452
- _.Tp.prototype.setFontSizePercent=_.Tp.prototype.setFontSizePercent;_.Tp.prototype.getFontSizePercent=_.Tp.prototype.getFontSizePercent;_.Tp.prototype.setFontSize=_.Tp.prototype.setFontSize;_.Tp.prototype.getFontSize=_.Tp.prototype.getFontSize;_.Tp.prototype.setFontColor=_.Tp.prototype.setFontColor;_.Tp.prototype.getFontColor=_.Tp.prototype.getFontColor;_.Tp.prototype.setFontFamily=_.Tp.prototype.setFontFamily;_.Tp.prototype.getFontFamily=_.Tp.prototype.getFontFamily;
453
- _.Tp.prototype.setWindowColor=_.Tp.prototype.setWindowColor;_.Tp.prototype.getWindowColor=_.Tp.prototype.getWindowColor;_.Tp.prototype.setBackgroundColor=_.Tp.prototype.setBackgroundColor;_.Tp.prototype.getBackgroundColor=_.Tp.prototype.getBackgroundColor;var Iq=1/15;var Up="raised",Vp="depressed",Xp="dropshadow",Wp="uniform";_.B("clpp.text.EdgeType",{NONE:_.Hd,RAISED:Up,DEPRESSED:Vp,DROP_SHADOW:Xp,UNIFORM:Wp});Zp.prototype.parseInit=function(a){try{var b=_.Rp[_.dc]||null;if(b){var c=new b(this.g);c.parseInit(a)}else this.f.warn("The clpp.ttml.Mp4TtmlParser class is not available. Please register the ttml component first.")}catch(e){c=null}if(c)this.a=c;else{try{var d=_.Rp[_.ec]||null;d?(c=new d(this.g),c.parseInit(a)):this.f.warn("The clpp.vtt.Mp4VttParser class is not available. Please register the vtt component first.")}catch(e){c=null}if(c)this.a=c;else throw new _.L(_.M,2,2011);}};
454
- Zp.prototype.parseMedia=function(a,b){if(!this.a)throw new _.L(_.M,2,2011);return this.a.parseMedia(a,b)};_.Rp[_.cc]=Zp;_.v(_.aq,_.Tp);_.t=_.aq.prototype;_.t.append=function(){};_.t.remove=function(){return!0};_.t.isTextVisible=function(){return this.o};_.t.setTextVisibility=function(a){this.o=a};
455
- _.t.ob=function(){if(!this.h){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.Yp(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.g.textContent="."+this.f+"::cue {"+b+"}"}};_.t.destroy=function(){this.j.classList.remove(this.f);document.head.removeChild(this.g);this.h=!0;return Promise.resolve()};var $p=0;bq.prototype.aa=function(){return!0};bq.prototype.create=function(a){return new _.aq(a)};_.wm("native",new bq);_.cq.prototype.onContentWillLoad=function(){return Promise.resolve()};_.cq.prototype.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.cq.prototype.onPlayerWillDestroy=function(){};_.cq.prototype.onPlayerWillRelease=function(){};}.call(g,this));
453
+ 115,116,115,99,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,28,115,116,115,122,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,115,0,0,1,116,0,0,0,20,115,116,99,111,0,0,0,0,0,0,0,1,0,0,0,44,0,0,0,98,117,100,116,97,0,0,0,90,109,101,116,97,0,0,0,0,0,0,0,33,104,100,108,114,0,0,0,0,0,0,0,0,109,100,105,114,97,112,112,108,0,0,0,0,0,0,0,0,0,0,0,0,45,105,108,115,116,0,0,0,37,169,116,111,111,0,0,0,29,100,97,116,97,0,0,0,1,0,0,0,0,76,97,118,102,53,54,46,52,48,46,49,48,49]);_.wp={};_.yp={};var Dp=window.XMLHttpRequest;_.v(Lp,_.Oh);Lp.prototype.then=function(a,b){this.P=this.P.then(a,b);return this};Lp.prototype["catch"]=function(a){this.P=this.P["catch"](a);return this};Lp.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.g.then(function(b){a.m&&clearTimeout(a.m);a.j&&a.j();return b.abort()})["catch"](function(){})};var Rp=window.fetch,Pp=window.AbortController,Op=window.Headers;_.Tp={};_.t=_.Vp.prototype;_.t.getBackgroundColor=function(){return this.K};_.t.setBackgroundColor=function(a){this.K=a;this.pb()};_.t.getWindowColor=function(){return this.V};_.t.setWindowColor=function(a){this.V=a;this.pb()};_.t.getFontFamily=function(){return this.T};_.t.setFontFamily=function(a){this.T=a;this.pb()};_.t.getFontColor=function(){return this.R};_.t.setFontColor=function(a){this.R=a;this.pb()};_.t.getFontSize=function(){return this.I};_.t.setFontSize=function(a){this.I=a;this.pb()};
454
+ _.t.getFontSizePercent=function(){return null===this.A?Kq:this.A};_.t.setFontSizePercent=function(a){this.A=a;this.pb()};_.t.getEdgeColor=function(){return this.F};_.t.setEdgeColor=function(a){this.F=a;this.pb()};_.t.getEdgeType=function(){return this.m};_.t.setEdgeType=function(a){this.m=a;this.pb()};_.Vp.prototype.setEdgeType=_.Vp.prototype.setEdgeType;_.Vp.prototype.getEdgeType=_.Vp.prototype.getEdgeType;_.Vp.prototype.setEdgeColor=_.Vp.prototype.setEdgeColor;_.Vp.prototype.getEdgeColor=_.Vp.prototype.getEdgeColor;
455
+ _.Vp.prototype.setFontSizePercent=_.Vp.prototype.setFontSizePercent;_.Vp.prototype.getFontSizePercent=_.Vp.prototype.getFontSizePercent;_.Vp.prototype.setFontSize=_.Vp.prototype.setFontSize;_.Vp.prototype.getFontSize=_.Vp.prototype.getFontSize;_.Vp.prototype.setFontColor=_.Vp.prototype.setFontColor;_.Vp.prototype.getFontColor=_.Vp.prototype.getFontColor;_.Vp.prototype.setFontFamily=_.Vp.prototype.setFontFamily;_.Vp.prototype.getFontFamily=_.Vp.prototype.getFontFamily;
456
+ _.Vp.prototype.setWindowColor=_.Vp.prototype.setWindowColor;_.Vp.prototype.getWindowColor=_.Vp.prototype.getWindowColor;_.Vp.prototype.setBackgroundColor=_.Vp.prototype.setBackgroundColor;_.Vp.prototype.getBackgroundColor=_.Vp.prototype.getBackgroundColor;var Kq=1/15;var Wp="raised",Xp="depressed",Zp="dropshadow",Yp="uniform";_.C("clpp.text.EdgeType",{NONE:_.Id,RAISED:Wp,DEPRESSED:Xp,DROP_SHADOW:Zp,UNIFORM:Yp});aq.prototype.parseInit=function(a){try{var b=_.Tp[_.dc]||null;if(b){var c=new b(this.g);c.parseInit(a)}else this.f.warn("The clpp.ttml.Mp4TtmlParser class is not available. Please register the ttml component first.")}catch(e){c=null}if(c)this.a=c;else{try{var d=_.Tp[_.ec]||null;d?(c=new d(this.g),c.parseInit(a)):this.f.warn("The clpp.vtt.Mp4VttParser class is not available. Please register the vtt component first.")}catch(e){c=null}if(c)this.a=c;else throw new _.L(_.M,2,2011);}};
457
+ aq.prototype.parseMedia=function(a,b){if(!this.a)throw new _.L(_.M,2,2011);return this.a.parseMedia(a,b)};_.Tp[_.cc]=aq;_.v(_.cq,_.Vp);_.t=_.cq.prototype;_.t.append=function(){};_.t.remove=function(){return!0};_.t.isTextVisible=function(){return this.o};_.t.setTextVisibility=function(a){this.o=a};
458
+ _.t.pb=function(){if(!this.h){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.$p(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.g.textContent="."+this.f+"::cue {"+b+"}"}};_.t.destroy=function(){this.j.classList.remove(this.f);document.head.removeChild(this.g);this.h=!0;return Promise.resolve()};var bq=0;dq.prototype.ca=function(){return!0};dq.prototype.create=function(a){return new _.cq(a)};_.xm("native",new dq);_.eq.prototype.onContentWillLoad=function(){return Promise.resolve()};_.eq.prototype.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.eq.prototype.onPlayerWillDestroy=function(){};_.eq.prototype.onPlayerWillRelease=function(){};}.call(g,this));
456
459
  g.clpp._ = _;
457
460
  if (typeof(module)!="undefined"&&module.exports) {module.exports=g.clpp;}
458
461
  else if (typeof(define)!="undefined" && define.amd) {define(function(){return g.clpp;});}