@castlabs/prestoplay 6.31.0 → 6.32.0-beta.2

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 (68) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +2 -2
  3. package/cjs/cl.adobe.js +3 -3
  4. package/cjs/cl.airplay.js +3 -3
  5. package/cjs/cl.broadpeak.js +18 -18
  6. package/cjs/cl.cast.js +127 -125
  7. package/cjs/cl.cdn.js +13 -0
  8. package/cjs/cl.conviva.js +32 -32
  9. package/cjs/cl.core.js +615 -610
  10. package/cjs/cl.crypto.js +9 -9
  11. package/cjs/cl.dash.js +101 -95
  12. package/cjs/cl.externs.js +113 -44
  13. package/cjs/cl.freewheel.js +26 -26
  14. package/cjs/cl.hls.js +78 -78
  15. package/cjs/cl.hlssmpte.js +6 -6
  16. package/cjs/cl.htmlcue.js +30 -30
  17. package/cjs/cl.ima.js +26 -26
  18. package/cjs/cl.mediatailor.js +3 -3
  19. package/cjs/cl.mse.js +351 -350
  20. package/cjs/cl.muxdata.js +14 -14
  21. package/cjs/cl.onboard.js +4 -4
  22. package/cjs/cl.persistent.js +14 -14
  23. package/cjs/cl.playlist.js +6 -6
  24. package/cjs/cl.simid.js +16 -16
  25. package/cjs/cl.smooth.js +71 -71
  26. package/cjs/cl.thumbnails.js +26 -26
  27. package/cjs/cl.tizen.js +71 -71
  28. package/cjs/cl.ttml.js +29 -29
  29. package/cjs/cl.verimatrix.js +5 -5
  30. package/cjs/cl.vimond.js +11 -11
  31. package/cjs/cl.vr.js +19 -19
  32. package/cjs/cl.vtt.js +14 -14
  33. package/cjs/cl.yospace.js +4 -4
  34. package/cjs/cl.youbora.js +40 -40
  35. package/cl.adobe.js +3 -3
  36. package/cl.airplay.js +3 -3
  37. package/cl.broadpeak.js +14 -14
  38. package/cl.cast.js +102 -101
  39. package/cl.cdn.js +7 -0
  40. package/cl.conviva.js +27 -27
  41. package/cl.core.js +498 -495
  42. package/cl.crypto.js +9 -9
  43. package/cl.dash.js +91 -87
  44. package/cl.externs.js +109 -44
  45. package/cl.freewheel.js +20 -20
  46. package/cl.hls.js +82 -82
  47. package/cl.hlssmpte.js +5 -5
  48. package/cl.htmlcue.js +26 -26
  49. package/cl.ima.js +20 -20
  50. package/cl.mediatailor.js +2 -2
  51. package/cl.mse.js +301 -300
  52. package/cl.muxdata.js +13 -13
  53. package/cl.onboard.js +4 -4
  54. package/cl.persistent.js +10 -10
  55. package/cl.playlist.js +5 -5
  56. package/cl.simid.js +14 -14
  57. package/cl.smooth.js +61 -61
  58. package/cl.thumbnails.js +19 -19
  59. package/cl.tizen.js +56 -56
  60. package/cl.ttml.js +22 -22
  61. package/cl.verimatrix.js +4 -4
  62. package/cl.vimond.js +8 -8
  63. package/cl.vr.js +14 -14
  64. package/cl.vtt.js +12 -12
  65. package/cl.yospace.js +3 -3
  66. package/cl.youbora.js +31 -31
  67. package/package.json +10 -1
  68. package/typings.d.ts +328 -114
package/cjs/cl.core.js CHANGED
@@ -1,451 +1,455 @@
1
1
  (function(){var g={}; var _ = {};
2
- (function(window){var ba,ca,ea,fa,ha,ra,va,Aa,Ba,Ea,Ga,Ha,Ja,Ma,Na,Ra,Sa,Ta,Ua,Va,Wa,Xa,Za,ab,bb,fb,hb,ib,jb,kb,lb,mb,ob,pb,tb,xb,Eb,Fb,Gb,Hb,Ib,Lb,Nb,Qb,Rb,Sb,Vb,Wb,Zb,$b,ac,bc,cc,dc,gc,hc,ic,pc,qc,rc,Rc,Xc,ed,fd,nd,od,pd,td,ud,vd,wd,yd,zd,Ad,Bd,Cd,Dd,Ed,Jd,Ld,Sd,Yd,Zd,$d,ae,be,ce,ee,fe,ge,je,ke,ne,te,Ce,Ee,Fe,Me,gf,of,qf,rf,sf,tf,uf,vf,wf,xf,yf,zf,Df,Ff,Gf,Hf,If,Jf,Lf,Pf,Rf,gg,jg,qg,Fg,Jg,Pg,bh,ch,dh,eh,fh,hh,ih,jh,oh,uh,vh,xh,zh,yh,Ah,Bh,Ch,Dh,Gh,Jh,Hh,Ih,Kh,Lh,Ph,Sh,Xh,ai,fi,li,mi,ni,oi,pi,qi,ri,si,ti,xi,Ai,yi,
3
- Bi,Ci,Ei,Fi,Gi,Hi,Ji,Li,Ki,Ni,Oi,Ri,Ti,Ui,Xi,Si,Pi,bj,cj,dj,fj,hj,ij,tj,vj,wj,xj,Hj,yj,Pj,Oj,Uj,Yj,ak,bk,ek,ck,hk,ik,gk,Wj,yk,Vj,kk,Xj,zk,jk,Sj,wk,Qj,fk,Bk,vk,qk,rk,pk,uk,ok,Ak,Dk,xk,Gk,Tj,Rj,lk,Hk,Ik,Fk,Zj,Jk,Kk,Lk,Ok,Pk,Qk,Rk,Tk,Sk,Wk,Xk,$k,al,bl,el,fl,gl,hl,il,sl,tl,vl,kl,ll,jl,ql,ol,pl,ul,Fl,Al,zl,yl,Gl,El,Dl,Kl,rl,Ml,Cl,Bl,Ll,ml,nl,Hl,Pl,Tl,Vl,Wl,Il,Jl,Ol,Nl,Yl,Ql,Ul,am,bm,dm,cm,fm,gm,hm,im,em,om,rm,sm,tm,qm,um,wm,vm,xm,ym,zm,Cm,Bm,Dm,Em,Am,Gm,Fm,Hm,Im,Rm,lm,Um,Vm,Tm,Wm,Ym,Zm,$l,jm,$m,an,dn,
4
- mn,rn,tn,un,yn,Dn,Hn,Jn,Mn,On,Pn,Qn,Tn,Yn,$n,ao,bo,co,eo,fo,go,ho,jo,ko,lo,mo,io,qo,vo,uo,wo,xo,S,Do,No,Lo,Oo,Qo,Po,So,To,Yo,$o,Zo,ap,Co,Uo,cp,dp,fp,gp,ep,hp,jp,ip,np,qp,pp,op,sp,vp,up,tp,lp,kp,rp,mp,wp,xp,yp,Jp,Kp,Vp,Wp,Xp,mq,sq,vq,wq,yq,zq,Cq,Iq,Mq,Nq,Sq,Yq,Zq,ar,br,dr,er,fr,gr,hr,ir,jr,kr,lr,mr,nr,or,pr,sr,qr,tr,vr,wr,rr,ur,xr,yr,zr,Ar,Dr,Fr,Gr,Mr,Nr,Rr,Xr,fs,cs,ds,js,ls,os,ss,ts,xs,hs,bs,Es,vs,Fs,Hs,Gs,Ps,Ls,Ks,Ns,Qs,Os,Ss,Ms,Rs,Tr,ms,Is,Ur,Ds,as,zs,As,Vs,Cs,gs,es,Wr,dt,et,ft,ht,kt,mt,lt,jt,nt,
5
- it,qt,ot,pt,rt,st,xt,zt,Bt,Ct,At,Dt,Et,yt,Ft,Gt,Ht,It,Jt,Lt,Mt,Nt,Ot,Kt,Qt,Wt,Yt,Zt,$t,au,fu,gu,hu,lu,ju,mu,eu,nu,pu,qu,su,tu,ou,uu,vu,wu,xu,yu,zu,Au,Du,Eu,Cu,Bu,Hu,Ju,Iu,Mu,Ku,Pu,Qu,Ou,Su,Tu,Uu,Ru,Gu,Vu,Fu,Yu,Zu,$u,bv,cv,dv,ev,fv,gv,hv,iv,jv,lv,Pv,Qv,Tv,Xv,qh,Zv;_.aa=" is registered.";ba=" is unsupported on this platform.";ca=" to a log level. Falling back to default!";_.da="#text";ea="': 'output-restricted'";fa="() is ongoing!";ha=".start";_.ia="6.31.0";_.ja="AUDIO";_.ka="AdaptationSet";_.la="Already destroyed. No-op";
6
- _.ma="Already released. No-op";_.na="Autoplay is not allowed due to browser policy.";_.oa="BANDWIDTH";_.pa="BASIC";ra="CHECKSUM";_.sa="CLOSED-CAPTIONS";_.ua="CODECS";va="Can not set volume to ";_.xa="Cannot retrieve buffer information due to platform limitations";_.ya="CastlabsPlayer";Aa="Content-Length";Ba="Content-Type";_.Ca="Could not find configured DRM environment.";_.Da="DRM environment '";Ea="DRM licenses loaded";Ga="DRMtoday";Ha="DRMtodayOnboard";_.Ia="DURATION";Ja="Destroying player";
7
- _.Ka="EXT-X-MEDIA";_.La="EXT-X-STREAM-INF";Ma="Error while decoding string!";Na="Error while fetching certificate!";_.Oa="FairPlay Certificate URL is not defined";_.Pa="FairPlay License URL is not defined";_.Qa="GROUP-ID";Ra="HW_SECURE_ALL";Sa="HW_SECURE_CRYPTO";Ta="HW_SECURE_DECODE";Ua="HeaderDrm";Va="Hide video element .";Wa="Invalid track type: ";Xa="InvalidStateError";Za="Key status for Key ID '";_.$a="LANGUAGE";ab="License verification failed: ";bb="Load interrupted while a player release is pending";
2
+ (function(window){var ba,ca,ea,fa,ha,ra,wa,Aa,Ba,Ea,Ga,Ha,Ja,Ma,Na,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,$a,bb,fb,hb,ib,jb,kb,lb,mb,ob,pb,tb,xb,Eb,Fb,Gb,Hb,Ib,Lb,Ob,Rb,Sb,Tb,Wb,Xb,Zb,$b,ac,bc,cc,dc,ec,gc,hc,oc,pc,qc,Rc,Yc,fd,gd,od,pd,qd,sd,ud,vd,wd,yd,zd,Ad,Bd,Cd,Dd,Ed,Jd,Ld,Sd,Yd,Zd,$d,ae,be,ce,ee,fe,ge,je,ke,ne,te,De,Fe,Ge,Ne,gf,of,qf,rf,sf,tf,uf,vf,wf,xf,yf,zf,Df,Ef,Gf,If,Kf,Lf,Nf,Rf,Tf,ig,lg,Fg,Jg,Qg,ch,dh,eh,fh,gh,ih,jh,kh,lh,mh,th,zh,Ah,Ch,Eh,Dh,Fh,Gh,Hh,Ih,Lh,Oh,Mh,Nh,Ph,Qh,Uh,Xh,bi,gi,li,ri,si,ti,ui,vi,wi,xi,yi,Ci,Fi,Di,
3
+ Gi,Hi,Ji,Ki,Li,Mi,Oi,Qi,Pi,Si,Ti,Wi,Yi,Zi,bj,Xi,Ui,gj,hj,ij,kj,mj,nj,yj,Aj,Bj,Cj,Mj,Dj,Uj,Tj,Zj,dk,fk,gk,ik,hk,lk,mk,kk,bk,Ck,ak,ok,ck,Dk,nk,Xj,Ak,Vj,jk,Fk,zk,uk,vk,tk,yk,sk,Ek,Hk,Bk,Kk,Yj,Wj,pk,Lk,Mk,Jk,ek,Nk,Ok,Pk,Sk,Tk,Uk,Vk,Xk,Wk,$k,al,el,fl,gl,il,jl,kl,ll,ml,wl,xl,zl,ol,pl,nl,ul,sl,tl,yl,Jl,El,Dl,Cl,Kl,Il,Hl,Ol,vl,Ql,Gl,Fl,Pl,ql,rl,Ll,Tl,Xl,Zl,$l,Ml,Nl,Sl,Rl,bm,Ul,Yl,em,fm,hm,gm,jm,km,lm,mm,im,sm,vm,wm,xm,um,ym,Am,zm,Bm,Cm,Dm,Gm,Fm,Hm,Im,Em,Km,Jm,Lm,Mm,Vm,pm,Ym,Zm,Xm,$m,bn,cn,dm,nm,dn,en,hn,
4
+ qn,vn,xn,yn,Cn,Hn,Ln,Nn,Qn,Sn,Tn,Un,Xn,bo,eo,fo,go,ho,io,jo,ko,lo,no,oo,po,qo,mo,uo,zo,yo,Ao,Bo,S,Ho,Ro,Po,So,Uo,To,Wo,Xo,bp,dp,cp,ep,Go,Yo,gp,hp,jp,kp,ip,lp,np,mp,rp,up,tp,sp,wp,zp,yp,xp,pp,op,vp,qp,Ap,Bp,Cp,Np,Op,Zp,$p,bq,aq,rq,xq,Aq,Bq,Dq,Eq,Hq,Nq,Rq,br,Sq,Tq,cr,ar,gr,hr,jr,kr,mr,nr,or,pr,qr,rr,sr,tr,ur,vr,wr,xr,yr,Br,zr,Cr,Er,Fr,Ar,Dr,Gr,Hr,Ir,Jr,Mr,Or,Pr,Vr,Wr,$r,fs,os,ls,ms,ss,us,xs,Bs,Cs,Gs,qs,ks,Ns,Es,Os,Qs,Ps,Ys,Us,Ts,Ws,Zs,Xs,at,Vs,$s,bs,vs,Rs,cs,Ms,js,Is,Js,dt,Ls,ps,ns,es,mt,nt,ot,qt,tt,
5
+ vt,ut,st,wt,rt,zt,xt,yt,At,Bt,Gt,It,Kt,Lt,Jt,Mt,Nt,Ht,Ot,Pt,Qt,Rt,St,Ut,Vt,Wt,Xt,Tt,Zt,eu,gu,hu,iu,ju,ou,pu,qu,uu,su,vu,nu,wu,yu,zu,Bu,Cu,xu,Du,Eu,Fu,Gu,Hu,Iu,Ju,Mu,Nu,Lu,Ku,Qu,Su,Ru,Vu,Tu,Yu,Zu,Xu,av,bv,cv,$u,Pu,dv,Ou,gv,hv,iv,kv,lv,mv,nv,ov,pv,qv,rv,sv,vv,Rv,Zv,bw,fw,vh,hw;_.aa=" is registered.";ba=" is unsupported on this platform.";ca=" to a log level. Falling back to default!";_.da="#text";ea="': 'output-restricted'";fa="() is ongoing!";ha=".start";_.ia="6.32.0-beta.2";_.ja="AUDIO";_.ka="AdaptationSet";
6
+ _.la="Already destroyed. No-op";_.ma="Already released. No-op";_.na="Autoplay is not allowed due to browser policy.";_.oa="BANDWIDTH";_.pa="BASIC";ra="CHECKSUM";_.sa="CLOSED-CAPTIONS";_.ua="CODECS";wa="Can not set volume to ";_.xa="Cannot retrieve buffer information due to platform limitations";_.ya="CastlabsPlayer";Aa="Content-Length";Ba="Content-Type";_.Ca="Could not find configured DRM environment.";_.Da="DRM environment '";Ea="DRM licenses loaded";Ga="DRMtoday";Ha="DRMtodayOnboard";_.Ia="DURATION";
7
+ Ja="Destroying player";_.Ka="EXT-X-MEDIA";_.La="EXT-X-STREAM-INF";Ma="Error while decoding string!";Na="Error while fetching certificate!";_.Oa="FairPlay Certificate URL is not defined";_.Pa="FairPlay License URL is not defined";_.Qa="GROUP-ID";Ra="HW_SECURE_ALL";Sa="HW_SECURE_CRYPTO";Ta="HW_SECURE_DECODE";Ua="HeaderDrm";Va="Hide video element .";Wa="Invalid track type: ";Xa="InvalidStateError";Ya="Key status for Key ID '";_.Za="LANGUAGE";$a="License verification failed: ";bb="Load interrupted while a player release is pending";
8
8
  _.cb="Loading player with configuration";_.db="MaxHeight";_.eb="MaxWidth";fb="Missing media element";_.gb="NAME";hb="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";ib="No event provided!";jb="No items in the playlist";kb="No sources provided!";lb="No track data attached to the event, unable to add track!";mb="Not a persistent session.";_.nb="Not supported";ob="NotAllowedError";pb="NotSupportedError";_.qb="PLAYLIST";_.rb="POST";_.sb="PlayReady License URL is not defined";
9
9
  tb="Player not ready yet.";_.ub="Player sources";_.vb="Player state change: ";_.wb="Please make sure ";xb="Preloading is not supported by this player.";_.yb="QualityLevel";_.zb="RESOLUTION";_.Ab="Representation";_.Bb="SUBTITLES";_.Cb="SW_SECURE_CRYPTO";_.Db="SW_SECURE_DECODE";Eb="Schedule interstitial ";Fb="Session is closed";Gb="Setting native ";Hb="Show video element .";Ib="Skipping Session creation. License for init data was already requested in Session: '";_.Jb="SmoothStreamingMedia";_.Kb="TYPE";
10
- Lb="The index is not in the allowed range.";_.Mb="URI";Nb="Unable to translate ";_.Ob="Unhandled/ignored event";_.Pb="Unregistering listeners";Qb="Unsupported keySystem";Rb="Updating playout limit for interstitial";Sb="Using VTTCue polyfill from 3 argument TextTrackCue.";_.Tb="VIDEO";_.Ub="VOD";Vb="Wait for preloading to finish";Wb="WebkitEmeManager.MediaKeySession.load";_.Xb="Widevine License URL is not defined";Zb="Will create EME Manager: ";$b="X-AD-CREATIVE-SIGNALING";ac="X-ASSET-LIST";bc="X-ASSET-URI";
11
- cc="X-GROUPED-ASSET-LIST";dc="X-PLAYOUT-LIMIT";gc="X-RESTRICT";hc="X-RESUME-OFFSET";ic="X-TIMELINE-OCCUPIES";_.jc="ad-break-started";_.kc="ad-break-stopped";_.lc="ad-buffering";_.mc="ad-clicked";_.nc="ad-completed";_.oc="ad-first-quartile";pc="ad-hls-asset-list-request";qc="ad-hls-asset-list-response";rc="ad-hls-resoled";_.sc="ad-impression";_.uc="ad-loaded";_.wc="ad-midpoint";_.xc="ad-paused";_.yc="ad-progress";_.zc="ad-resumed";_.Ac="ad-skipped";_.Bc="ad-started";_.Cc="ad-stopped";_.Dc="ad-third-quartile";
12
- _.Ec="addtrack";_.Fc="ads-timeline-changed";_.Gc="airplay-casting-ended";_.Hc="airplay-casting-started";_.Ic="airplay-status-changed";_.Jc="application";_.Kc="application/cea-608";_.Lc="application/dash+xml";_.Mc="application/mp4";_.Nc='application/mp4; codecs\x3d"stpp"';_.Oc='application/mp4; codecs\x3d"wvtt"';_.Pc="application/ttml+xml";_.Qc="application/vnd.ms-sstr+xml";Rc="application/x-www-form-urlencoded";_.Sc="audio";_.Tc="audio/aac";_.Uc="audio/ac3";_.Vc="audio/eac3";_.Wc="audio/mp4";Xc='audio/mp4;codecs\x3d"mp4a.40.2"';
13
- _.Yc="audiobufferchanged";_.Zc="audiotrackchanged";_.$c="autoplaynotallowed";_.ad="bitratechanged";_.bd="boolean";_.cd="bufferingended";_.dd="bufferingstarted";ed="canplay";fd="canplaythrough";_.gd="caption";_.hd="castingstarted";_.id="caststatuschanged";_.jd="castvisibilitychanged";_.kd="cdn-switch-success";_.ld="cenc";_.md="center";nd="certificate-request";od="change";pd="chrome";_.sd="clpp-fill";td="clpp-hidden";ud="clpp-mc-playlist";vd="clpp-visible";wd="clpp.PlayerFleet";_.xd="clpp.cast.CastSender";
14
- yd="clpp.drm.DrmToday";zd="clpp.drm.HeaderDrm";Ad="clpp.drm.eme.AppleEmeManager";Bd="clpp.drm.eme.EmeFactory";Cd="clpp.native.Player";Dd="clpp.playlist.McPlaylist";Ed="clpp.utils.Platform";_.Fd="codecs";_.Gd="column-reverse";_.Hd="com.adobe.primetime";_.Id="com.apple.fps";Jd="com.apple.quicktime.HLS";_.Kd="com.microsoft.playready";Ld="com.microsoft.playready.recommendation";_.Md="com.widevine.alpha";_.Nd="config.drm.customData is not defined";_.Od="content-steering-change";_.Rd="content-steering-location-ban-update";
10
+ Lb="The index is not in the allowed range.";_.Mb="URI";Ob="Unable to translate ";_.Pb="Unhandled/ignored event";_.Qb="Unregistering listeners";Rb="Unsupported keySystem";Sb="Updating playout limit for interstitial";Tb="Using VTTCue polyfill from 3 argument TextTrackCue.";_.Ub="VIDEO";_.Vb="VOD";Wb="Wait for preloading to finish";Xb="WebkitEmeManager.MediaKeySession.load";_.Yb="Widevine License URL is not defined";Zb="Will create EME Manager: ";$b="X-AD-CREATIVE-SIGNALING";ac="X-ASSET-LIST";bc="X-ASSET-URI";
11
+ cc="X-GROUPED-ASSET-LIST";dc="X-PLAYOUT-LIMIT";ec="X-RESTRICT";gc="X-RESUME-OFFSET";hc="X-TIMELINE-OCCUPIES";_.ic="ad-break-started";_.jc="ad-break-stopped";_.kc="ad-buffering";_.lc="ad-clicked";_.mc="ad-completed";_.nc="ad-first-quartile";oc="ad-hls-asset-list-request";pc="ad-hls-asset-list-response";qc="ad-hls-resoled";_.rc="ad-impression";_.tc="ad-loaded";_.vc="ad-midpoint";_.xc="ad-paused";_.yc="ad-progress";_.zc="ad-resumed";_.Ac="ad-skipped";_.Bc="ad-started";_.Cc="ad-stopped";_.Dc="ad-third-quartile";
12
+ _.Ec="addtrack";_.Fc="ads-timeline-changed";_.Gc="airplay-casting-ended";_.Hc="airplay-casting-started";_.Ic="airplay-status-changed";_.Jc="application";_.Kc="application/cea-608";_.Lc="application/dash+xml";_.Mc="application/mp4";_.Nc='application/mp4; codecs\x3d"stpp"';_.Oc='application/mp4; codecs\x3d"wvtt"';_.Pc="application/ttml+xml";_.Qc="application/vnd.ms-sstr+xml";Rc="application/x-www-form-urlencoded";_.Sc="audio";_.Tc="audio/aac";_.Vc="audio/ac3";_.Wc="audio/eac3";_.Xc="audio/mp4";Yc='audio/mp4;codecs\x3d"mp4a.40.2"';
13
+ _.Zc="audiobufferchanged";_.$c="audiotrackchanged";_.ad="autoplaynotallowed";_.bd="bitratechanged";_.cd="boolean";_.dd="bufferingended";_.ed="bufferingstarted";fd="canplay";gd="canplaythrough";_.hd="caption";_.id="castingstarted";_.jd="caststatuschanged";_.kd="castvisibilitychanged";_.ld="cdn-switch-success";_.md="cenc";_.nd="center";od="certificate-request";pd="change";qd="chrome";_.rd="clpp-fill";sd="clpp-hidden";ud="clpp-mc-playlist";vd="clpp-visible";wd="clpp.PlayerFleet";_.xd="clpp.cast.CastSender";
14
+ yd="clpp.drm.DrmToday";zd="clpp.drm.HeaderDrm";Ad="clpp.drm.eme.AppleEmeManager";Bd="clpp.drm.eme.EmeFactory";Cd="clpp.native.Player";Dd="clpp.playlist.McPlaylist";Ed="clpp.utils.Platform";_.Fd="codecs";_.Gd="column-reverse";_.Hd="com.adobe.primetime";_.Id="com.apple.fps";Jd="com.apple.quicktime.HLS";_.Kd="com.microsoft.playready";Ld="com.microsoft.playready.recommendation";_.Md="com.widevine.alpha";_.Nd="config.drm.customData is not defined";_.Od="content-steering-change";_.Qd="content-steering-location-ban-update";
15
15
  Sd="controls";_.Td="cuechange";_.Ud="decoder";_.Vd="destroy()";_.Wd="disabled";_.Xd="div";Yd="drm.license.req.";Zd="drm.mediaKeys.end";$d="drm.mediaKeys.start";ae="drm.onPlay.end";be="drm.onPlay.start";ce="drm.sess.update.";_.de="drmexpirationupdate";ee="drmlicenserequested";fe="drmrenewalstarted";ge="drmsessioncreated";_.he="drmsessionpersisted";_.ie="drmsessionupdate";je="drmtoday";ke="durationchange";_.me="ec-3";ne="encrypted";_.oe="end";_.pe="ended";_.qe="error";_.re="estimatedThroughputKbps";
16
- _.se="forced";te="fullscreenElement";_.ue="function";_.ve="height";_.we="hidden";_.xe="hls-daterange";_.ye="html";_.ze="https://";_.Ae="image";_.Be="internal-error";Ce="keystatuseschange";_.De="left";Ee="license-renewal";Fe="license-request";_.Ge="line-left";_.He="line-right";_.Ie="live-turned-static";_.Je="load";_.Ke="loadeddata";_.Le="loadedmetadata";Me="loadstart";_.Ne="main";_.Oe="mdat";_.Qe="mdia";_.Re="message";_.Te="metadata";_.Ue="mimeType";_.Ve="minf";_.We="moov";_.Xe="mpd-type-changed";
16
+ _.se="forced";te="fullscreenElement";_.ue="function";_.ve="height";_.we="hidden";_.xe="hls-daterange";_.ye="html";_.ze="http://";_.Ae="https://";_.Be="image";_.Ce="internal-error";De="keystatuseschange";_.Ee="left";Fe="license-renewal";Ge="license-request";_.He="line-left";_.Ie="line-right";_.Je="live-turned-static";_.Ke="load";_.Le="loadeddata";_.Me="loadedmetadata";Ne="loadstart";_.Oe="main";_.Pe="mdat";_.Qe="mdia";_.Re="message";_.Se="metadata";_.Ue="mimeType";_.Ve="minf";_.We="moov";_.Xe="mpd-type-changed";
17
17
  _.Ye="mpeg-dash-callback-event";_.Ze="none";_.h="number";_.$e="object";_.af="onBitrateChanged()";_.bf="onContentLoaded";_.cf="onPlayerError()";_.df="onPlayerWillDestroy";_.ef="onPlayerWillRelease";_.ff="onStateChanged()";gf="online-status-changed";_.hf="optional";_.jf="org.w3.clearkey";_.kf="output-restricted";_.lf="pause";_.mf="persistent";_.nf="persistent-license";of="picture-in-picture";_.pf="play";qf="player.afterLoad.end";rf="player.afterLoad.start";sf="player.appendLoad.end";tf="player.appendLoad.start";
18
- uf="player.beforeLoad.end";vf="player.beforeLoad.start";wf="player.load.end";xf="player.load.start";yf="player.setupPlaylist.end";zf="player.setupPlaylist.start";_.Af="playing";_.Bf="playlist-item-changed";_.Cf="playlist-modified";Df="playlist.next.end";Ff="playlist.next.start";Gf="preload-aborted";Hf="preload-failed";If="preloaded";Jf="preloading";_.Kf="prevent";Lf="primary-content";_.Mf="progress";_.Nf="px";_.Of="ratechange";Pf="released";_.Qf="releasing";Rf="removetrack";_.Sf="required";_.Tf="resize";
19
- _.Uf="right";_.Vf="sc-playlist-ended";_.Wf="sc-playlist-item-changed";_.Xf="sc-playlist-live-turned-static";_.Yf="sc-playlist-timeline-changed";_.Zf="scte35";_.$f="seeked";_.ag="seeking";_.bg="showing";_.cg="simid-creative-started";_.dg="simid-creative-stopped";_.eg="sinf";_.fg="smooth";gg="stalled";_.hg="start";_.ig="statechanged";jg="status-pending";_.kg="stbl";_.lg="string";_.mg="stsd";_.ng="style";_.og="subtitle";_.pg="subtitles-htmlcue";qg="temporary";_.rg="text";_.sg="text/vtt";_.tg="text/xml";
20
- _.ug="texttrackchanged";_.vg="timeline-cue-added";_.wg="timeline-cue-enter";_.xg="timeline-cue-exit";_.yg="timeline-cues-changed";_.zg="timeupdate";_.Ag="tracksadded";_.Bg="trak";_.Cg="ttml-xml";Fg="unauthenticated";_.Hg="und";_.Ig="unknown";Jg="update";_.Kg="urn:scte:scte35";_.Lg="urn:scte:scte35:2014";_.Mg="user-seeked";_.Ng="user-seeking";_.Og="value";Pg="version";_.Qg="vertical-lr";_.Rg="vertical-rl";_.Sg="video";_.Tg="video/mp2t";_.Ug="video/mp4";_.Vg="videobufferchanged";_.Wg="videotrackchanged";
21
- _.Xg="vimond-response";_.Yg="visibilitychange";_.Zg="vtt-xml";_.$g="waiting";_.ah="waitingforkey";bh="webkit-org.w3.clearkey";ch="webkitkeyadded";dh="webkitkeyerror";eh="webkitkeymessage";fh="webkitneedkey";_.gh="width";hh="x-dt-csl-tracking-token";ih="x-dt-follow-up-token";jh="x-dt-resp-code";_.kh="yospace-session-ended";_.lh="yospace-session-started";_.nh=function(a){return function(){return _.mh[a].apply(this,arguments)}};
22
- oh=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};_.v=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:oh(a)}};_.ph=function(a){if(!(a instanceof Array)){a=_.v(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};
23
- _.w=function(a,b){a.prototype=qh(b.prototype);a.prototype.constructor=a;if(rh)rh(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]};uh=function(a,b){if(b){for(var c=sh,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&&th(c,d,{configurable:!0,writable:!0,value:f})}};vh=function(){vh=function(){};sh.Symbol||(sh.Symbol=wh)};
24
- xh=function(a,b){this.a=a;th(this,"description",{configurable:!0,writable:!0,value:b})};zh=function(){vh();var a=sh.Symbol.iterator;a||(a=sh.Symbol.iterator=sh.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.ue&&th(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return yh(oh(this))}});zh=function(){}};yh=function(a){zh();a={next:a};a[sh.Symbol.iterator]=function(){return this};return a};
25
- Ah=function(){this.w=!1;this.l=null;this.f=void 0;this.a=1;this.j=this.o=0;this.B=this.h=null};Bh=function(a){if(a.w)throw new TypeError("Generator is already running");a.w=!0};Ch=function(a,b){a.h={li:b,Ri:!0};a.a=a.o||a.j};_.x=function(a,b,c){a.a=c;return{value:b}};_.A=function(a){a.a=0};_.F=function(a,b,c){a.o=b;void 0!=c&&(a.j=c)};Dh=function(a){a.o=0;a.j=2};_.G=function(a,b){a.a=b;a.o=0};_.H=function(a){a.o=0;var b=a.h.li;a.h=null;return b};_.Eh=function(a){a.B=[a.h];a.o=0;a.j=0};
26
- _.Fh=function(a){var b=a.B.splice(0)[0];(b=a.h=a.h||b)?b.Ri?a.a=a.o||a.j:void 0!=b.C&&a.j<b.C?(a.a=b.C,a.h=null):a.a=a.j:a.a=0};Gh=function(a){this.a=new Ah;this.f=a};Jh=function(a,b){Bh(a.a);var c=a.a.l;if(c)return Hh(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return Ih(a)};
27
- Hh=function(a,b,c,d){try{var e=b.call(a.a.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.a.w=!1,e;var f=e.value}catch(g){return a.a.l=null,Ch(a.a,g),Ih(a)}a.a.l=null;d.call(a.a,f);return Ih(a)};Ih=function(a){for(;a.a.a;)try{var b=a.f(a.a);if(b)return a.a.w=!1,{value:b.value,done:!1}}catch(c){a.a.f=void 0,Ch(a.a,c)}a.a.w=!1;if(a.a.h){b=a.a.h;a.a.h=null;if(b.Ri)throw b.li;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
28
- Kh=function(a){this.next=function(b){Bh(a.a);a.a.l?b=Hh(a,a.a.l.next,b,a.a.A):(a.a.A(b),b=Ih(a));return b};this["throw"]=function(b){Bh(a.a);a.a.l?b=Hh(a,a.a.l["throw"],b,a.a.A):(Ch(a.a,b),b=Ih(a));return b};this["return"]=function(b){return Jh(a,b)};zh();this[Symbol.iterator]=function(){return this}};Lh=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())})};
29
- _.I=function(a){return Lh(new Kh(new Gh(a)))};_.K=function(a,b){var c=a.split("."),d=Mh;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};Ph=function(a){return a&&0<=Nh[a]?Nh[a]:Oh};Sh=function(a){if(!a)return _.Qh("clpp.log",Nb+a+ca),-1;var b=Rh[a.toUpperCase()];return void 0===b?(_.Qh("clpp.log",Nb+a+ca),-1):b};
30
- _.M=function(a){(this.tag=a)&&void 0===Nh[a]&&(Nh[a]=-1)};_.Uh=function(a){Th.info.apply(Th,arguments)};_.Vh=function(a){Th.debug.apply(Th,arguments)};_.Qh=function(a){Th.warn.apply(Th,arguments)};_.Wh=function(a){Th.error.apply(Th,arguments)};Xh=function(a,b){this.xb=a;this.sourceIndex=b};_.$h=function(a){if(a){var b=a.a();b in _.Yh?_.Zh.warn("Player-Factory '"+b+"' already registered"):(_.Yh[b]=a,_.Zh.info("Registered Player-Factory: '"+b+"'"))}};
31
- ai=function(a){return Object.values(_.Yh).find(a)||null};_.ei=function(a){0<=ci.indexOf(a)?di.warn("Factory '"+a.name()+"' is already registered"):(ci.push(a),di.info("Factory '"+a.name()+"' has been registered."))};fi=function(a,b){var c=ci.find(function(d){return d.a(a,b)})||null;c&&di.info("Chosen ads manager: "+c.name());return c};_.gi=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.ii=function(a){return _.hi.get(a)||null};
32
- _.ki=function(a){_.hi.get(a.id())?ji.warn("Component already in use."):_.hi.set(a.id(),a)};li=function(a){return Array.from(_.hi.values()).find(function(b){return b instanceof a})||null};mi=function(a){for(var b=_.v(_.hi.values()),c=b.next();!c.done;c=b.next())a(c.value)};ni=function(a){mi(function(b){b.playerConstructed(a)})};oi=function(a){mi(function(b){b.beforeLoad(a)})};pi=function(a){mi(function(b){b.afterLoad(a)})};qi=function(a){mi(function(b){b.playerDestroyed(a)})};
33
- ri=function(a){if(null!==li(a))return null;a=new a;a.install();_.ki(a);ji.info("Installed component:",a.id());return a};si=function(a){if(a=li(a))a.uninstall(),_.hi["delete"](a.id()),ji.info("Uninstalled component:",a.id())};
34
- _.O=function(a,b,c,d,e){var f=Error.call(this,ti(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||_.N.ja(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.O)};ti=function(a,b,c,d){a=(a===_.P?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.N.ja(d))a+=": "+d;else if(null!=d)if(null!=d.message)a+=": "+d.message,delete d.message;else try{a+=": "+JSON.stringify(d)}catch(e){}return a};
35
- _.ui=function(a,b){var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=b};_.Q=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};_.vi=function(){this.a={}};_.wi=function(){this.a=new _.vi};
36
- xi=function(a,b,c){function d(k){for(var l=_.v(e),m=l.next();!m.done;m=l.next())a.off(b,m.value,d);c(k)}for(var e=[ne,"msneedkey",fh,"needkey"],f=_.v(e),g=f.next();!g.done;g=f.next())a.on(b,g.value,d)};_.zi=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)yi(c[b]);a.a.clear()};Ai=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};yi=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
37
- Bi=function(a,b,c,d){this.h=a;this.a=b;this.f=c;this.j=!!d};Ci=function(a){this.a=new _.vi;this.f=a};_.Di=function(){this.je=new Ci(this);this.fe=[]};Ei=function(){};Fi=function(){};Gi=function(a,b,c,d,e,f,g){this.o=this.l=this.j=!1;this.G=a;this.f=b;this.a=c;this.h=d;this.w=0;this.B=e+":"+b;this.H=e;this.videoEl=null;this.A=f;this.D=g||null};Hi=function(a){this.a=a.map(function(b){return{rc:b.getSurface().getMedia().id,player:b,jf:!0,ready:Promise.resolve()}});this.g=new _.M("clpp.playlist.PlayerPool")};
38
- _.Ii=function(a){return Array.isArray(a)?a:[a]};Ji=function(a,b){return a===b?!0:a.length===b.length&&a.every(function(c,d){return c===b[d]})};Li=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 Ki(a,b)&&Ki(b,a)};Ki=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};
39
- _.Mi=function(a,b){b=void 0===b?{}:b;if(b.ci){for(var c=[],d={},e=_.v(a),f=e.next();!f.done;d={Xe:d.Xe},f=e.next())d.Xe=f.value,c.some(function(g){return function(k){return b.ci(g.Xe,k)}}(d))||c.push(d.Xe);return c}return Array.from((new Set(a)).values())};Ni=function(a,b){var c=new Set(a),d=new Set(b);return{Eo:a.filter(function(e){return!d.has(e)}),aq:a.filter(function(e){return d.has(e)}),kk:b.filter(function(e){return!c.has(e)})}};Oi=function(){};
40
- Ri=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!==b.byteLength)return!1;if(Pi(a)===Pi(b)&&(a.byteOffset||0)===(b.byteOffset||0))return!0;for(var c=_.Qi(a),d=_.Qi(b),e=0;e<a.byteLength;e++)if(c[e]!==d[e])return!1;return!0};_.Qi=function(a,b,c){c=void 0===c?Infinity:c;return Si(a,void 0===b?0:b,c,Uint8Array)};Ti=function(a,b,c){c=void 0===c?Infinity:c;return Si(a,void 0===b?0:b,c,Uint16Array)};Ui=function(a,b,c){c=void 0===c?Infinity:c;return Si(a,void 0===b?0:b,c,Uint32Array)};
41
- _.Vi=function(a,b,c){c=void 0===c?Infinity:c;return Si(a,void 0===b?0:b,c,Int32Array)};_.Wi=function(a,b,c){c=void 0===c?Infinity:c;return Si(a,void 0===b?0:b,c,DataView)};Xi=function(a){return a instanceof ArrayBuffer?a:0===a.byteOffset&&a.byteLength===a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
42
- Si=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=Pi(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)};Pi=function(a){return a instanceof ArrayBuffer?a:a.buffer};_.Yi=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};_.Zi=function(a,b){a.classList.add(b)};
43
- _.$i=function(a,b){if(a&&typeof b===_.$e)for(var c in b)a.style[c]=b[c]};_.aj=function(a){return document.createElement(a)};bj=function(){this.a=null;this.h=new Set;this.f=null;this.set(null)};cj=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.h.add(b))};dj=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.h.values());Ki(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.ph(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
44
- _.ej=function(a){this.f=a;this.a=null};fj=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};_.gj=function(a){this.f=a;this.a=null};hj=function(a){return 0>=a?Promise.resolve():new Promise(function(b){setTimeout(function(){b()},1E3*a)})};ij=function(){};_.jj=function(){return!!navigator.userAgent.match(/Edge?\//)};_.lj=function(a){return _.kj("Tizen"+(a?" "+String(a):""))};
45
- _.mj=function(){return _.kj("Web0S")};_.nj=function(){return _.kj("CrKey")};_.oj=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.lj()};_.pj=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.oj()&&1<navigator.maxTouchPoints};_.qj=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};_.kj=function(a){return(navigator.userAgent||"").includes(a)};
46
- tj=function(){if(rj)return rj;sj||(sj=new _.gj(function(){rj=null}));(rj=document.querySelector(_.Sg)||document.querySelector(_.Sc))||(rj=document.createElement(_.Sg));sj.ia(1);return rj};vj=function(a,b){try{return parseInt(b,10)}catch(c){uj.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
47
- wj=function(a){var b={major:-1,name:_.Ig};if(!a)return b;var c=a.replace(/_/g,".");b.name=c;c=c.split(".");1<=c.length&&(b.major=vj(a,c[0]));2<=c.length&&(b.minor=vj(a,c[1]));3<=c.length&&(b.patch=vj(a,c[2]));4<=c.length&&(b.build=vj(a,c[3]));return b};xj=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};
48
- Hj=function(){var a=yj();if(!a)return zj;var b=a.match(/^.+?(?=\))/);if(!b)return zj;b=b[0];if(xj(b,["iphone","ipad"]))return Aj;if(xj(b,["android"]))return Bj;if(xj(b,["macintosh"]))return Cj;if(xj(b,["windows nt"]))return Dj;if(xj(b,["tizen"]))return Ej;if(xj(b,["web0s"]))return Fj;if(xj(b,["linux"]))return Gj;uj.warn("Unable to identify OS from user agent: "+a);return zj};
49
- _.Jj=function(){var a=yj(),b=["ie","edge","opera","firefox","safari",pd];var c=Hj();for(var d=Ij[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return wj(c[1]);return wj("")};yj=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
50
- _.Lj=function(){var a=Hj();var b=Hj();var c=Ij[b];if(c){c=yj().match(c.os_version)[1];c=wj(c);if(b===Dj)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=wj("");a:{c=yj();var d=["ie","edge","opera","firefox","safari",pd],e=Hj();e=Ij[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=Kj}return{os:a,osVersion:b,browser:c,browserVersion:_.Jj()}};
51
- Pj=function(a,b){this.g=new _.M("clpp.PlayerSurface");this.w=_.N.ta(Mj,b);this.f=new bj;this.h=null;this.a=new bj;this.l=Nj;Nj+=1;this.o="clpp-video-"+this.l;this.j=new _.wi;if(null==a)throw new _.O(_.P,7,7102,"No Media element was provided");if(a instanceof Element)var c=a;else if(c=document.getElementById(a),!c)throw new _.O(_.P,7,7004,"Media element not found");var d=this.w;this.g.debug("Initializing Player Surface on ",c);if("cast-media-player"===c.tagName.toLowerCase())this.h=c;else{if(!(c instanceof
18
+ uf="player.beforeLoad.end";vf="player.beforeLoad.start";wf="player.open.end";xf="player.open.start";yf="player.setupPlaylist.end";zf="player.setupPlaylist.start";_.Af="playing";_.Bf="playlist-item-changed";_.Cf="playlist-modified";Df="playlist.next.end";Ef="playlist.next.start";Gf="preload-aborted";If="preload-failed";Kf="preloaded";Lf="preloading";_.Mf="prevent";Nf="primary-content";_.Of="progress";_.Pf="px";_.Qf="ratechange";Rf="released";_.Sf="releasing";Tf="removetrack";_.Uf="required";_.Vf="resize";
19
+ _.Wf="right";_.Xf="sc-playlist-ended";_.Yf="sc-playlist-item-changed";_.Zf="sc-playlist-live-turned-static";_.$f="sc-playlist-timeline-changed";_.ag="scte35";_.bg="seeked";_.cg="seeking";_.dg="showing";_.eg="simid-creative-started";_.fg="simid-creative-stopped";_.gg="sinf";_.hg="smooth";ig="stalled";_.jg="start";_.kg="statechanged";lg="status-pending";_.mg="stbl";_.ng="string";_.og="stsd";_.pg="style";_.qg="subtitle";_.rg="subtitles-htmlcue";_.sg="temporary";_.tg="text";_.ug="text/vtt";_.vg="text/xml";
20
+ _.wg="texttrackchanged";_.xg="timeline-cue-added";_.yg="timeline-cue-enter";_.zg="timeline-cue-exit";_.Ag="timeline-cues-changed";_.Bg="timeupdate";_.Cg="tracksadded";_.Dg="trak";_.Eg="ttml-xml";Fg="unauthenticated";_.Gg="und";_.Hg="unknown";Jg="update";_.Lg="urn:scte:scte35";_.Mg="urn:scte:scte35:2014";_.Ng="user-seeked";_.Og="user-seeking";_.Pg="value";Qg="version";_.Rg="vertical-lr";_.Sg="vertical-rl";_.Tg="video";_.Ug="video/mp2t";_.Vg="video/mp4";_.Wg="videobufferchanged";_.Xg="videotrackchanged";
21
+ _.Yg="vimond-response";_.Zg="visibilitychange";_.$g="vtt-xml";_.ah="waiting";_.bh="waitingforkey";ch="webkit-org.w3.clearkey";dh="webkitkeyadded";eh="webkitkeyerror";fh="webkitkeymessage";gh="webkitneedkey";_.hh="width";ih="x-dt-auth-token";jh="x-dt-csl-renewal-info";kh="x-dt-csl-tracking-token";lh="x-dt-follow-up-token";mh="x-dt-resp-code";_.nh="x-dt-session-info";_.oh="x-dt-session-token";_.ph="yospace-session-ended";_.qh="yospace-session-started";
22
+ _.sh=function(a){return function(){return _.rh[a].apply(this,arguments)}};th=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};_.v=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:th(a)}};_.uh=function(a){if(!(a instanceof Array)){a=_.v(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};
23
+ _.w=function(a,b){a.prototype=vh(b.prototype);a.prototype.constructor=a;if(wh)wh(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]};zh=function(a,b){if(b){for(var c=xh,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&&yh(c,d,{configurable:!0,writable:!0,value:f})}};Ah=function(){Ah=function(){};xh.Symbol||(xh.Symbol=Bh)};
24
+ Ch=function(a,b){this.a=a;yh(this,"description",{configurable:!0,writable:!0,value:b})};Eh=function(){Ah();var a=xh.Symbol.iterator;a||(a=xh.Symbol.iterator=xh.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.ue&&yh(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return Dh(th(this))}});Eh=function(){}};Dh=function(a){Eh();a={next:a};a[xh.Symbol.iterator]=function(){return this};return a};
25
+ Fh=function(){this.w=!1;this.l=null;this.f=void 0;this.a=1;this.j=this.o=0;this.B=this.h=null};Gh=function(a){if(a.w)throw new TypeError("Generator is already running");a.w=!0};Hh=function(a,b){a.h={yi:b,$i:!0};a.a=a.o||a.j};_.y=function(a,b,c){a.a=c;return{value:b}};_.A=function(a){a.a=0};_.F=function(a,b,c){a.o=b;void 0!=c&&(a.j=c)};Ih=function(a){a.o=0;a.j=2};_.G=function(a,b){a.a=b;a.o=0};_.H=function(a){a.o=0;var b=a.h.yi;a.h=null;return b};_.Jh=function(a){a.B=[a.h];a.o=0;a.j=0};
26
+ _.Kh=function(a){var b=a.B.splice(0)[0];(b=a.h=a.h||b)?b.$i?a.a=a.o||a.j:void 0!=b.C&&a.j<b.C?(a.a=b.C,a.h=null):a.a=a.j:a.a=0};Lh=function(a){this.a=new Fh;this.f=a};Oh=function(a,b){Gh(a.a);var c=a.a.l;if(c)return Mh(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return Nh(a)};
27
+ Mh=function(a,b,c,d){try{var e=b.call(a.a.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.a.w=!1,e;var f=e.value}catch(g){return a.a.l=null,Hh(a.a,g),Nh(a)}a.a.l=null;d.call(a.a,f);return Nh(a)};Nh=function(a){for(;a.a.a;)try{var b=a.f(a.a);if(b)return a.a.w=!1,{value:b.value,done:!1}}catch(c){a.a.f=void 0,Hh(a.a,c)}a.a.w=!1;if(a.a.h){b=a.a.h;a.a.h=null;if(b.$i)throw b.yi;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
28
+ Ph=function(a){this.next=function(b){Gh(a.a);a.a.l?b=Mh(a,a.a.l.next,b,a.a.A):(a.a.A(b),b=Nh(a));return b};this["throw"]=function(b){Gh(a.a);a.a.l?b=Mh(a,a.a.l["throw"],b,a.a.A):(Hh(a.a,b),b=Nh(a));return b};this["return"]=function(b){return Oh(a,b)};Eh();this[Symbol.iterator]=function(){return this}};Qh=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())})};
29
+ _.I=function(a){return Qh(new Ph(new Lh(a)))};_.K=function(a,b){var c=a.split("."),d=Rh;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};Uh=function(a){return a&&0<=Sh[a]?Sh[a]:Th};Xh=function(a){if(!a)return _.Vh("clpp.log",Ob+a+ca),-1;var b=Wh[a.toUpperCase()];return void 0===b?(_.Vh("clpp.log",Ob+a+ca),-1):b};
30
+ _.M=function(a){(this.tag=a)&&void 0===Sh[a]&&(Sh[a]=-1)};_.Zh=function(a){Yh.info.apply(Yh,arguments)};_.$h=function(a){Yh.debug.apply(Yh,arguments)};_.Vh=function(a){Yh.warn.apply(Yh,arguments)};_.ai=function(a){Yh.error.apply(Yh,arguments)};bi=function(a,b){this.yb=a;this.sourceIndex=b};_.fi=function(a){if(a){var b=a.a();b in _.ci?_.di.warn("Player-Factory '"+b+"' already registered"):(_.ci[b]=a,_.di.info("Registered Player-Factory: '"+b+"'"))}};
31
+ gi=function(a){return Object.values(_.ci).find(a)||null};_.ki=function(a){0<=hi.indexOf(a)?ji.warn("Factory '"+a.name()+"' is already registered"):(hi.push(a),ji.info("Factory '"+a.name()+"' has been registered."))};li=function(a,b){var c=hi.find(function(d){return d.a(a,b)})||null;c&&ji.info("Chosen ads manager: "+c.name());return c};_.mi=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.oi=function(a){return _.ni.get(a)||null};
32
+ _.qi=function(a){_.ni.get(a.id())?pi.warn("Component already in use."):_.ni.set(a.id(),a)};ri=function(a){return Array.from(_.ni.values()).find(function(b){return b instanceof a})||null};si=function(a){for(var b=_.v(_.ni.values()),c=b.next();!c.done;c=b.next())a(c.value)};ti=function(a){si(function(b){b.playerConstructed(a)})};ui=function(a){si(function(b){b.beforeLoad(a)})};vi=function(a){si(function(b){b.afterLoad(a)})};
33
+ wi=function(a){if(null!==ri(a))return null;a=new a;a.install();_.qi(a);pi.info("Installed component:",a.id());return a};xi=function(a){if(a=ri(a))a.uninstall(),_.ni["delete"](a.id()),pi.info("Uninstalled component:",a.id())};
34
+ _.O=function(a,b,c,d,e){var f=Error.call(this,yi(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||_.N.ja(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.O)};yi=function(a,b,c,d){a=(a===_.P?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.N.ja(d))a+=": "+d;else if(null!=d)if(null!=d.message)a+=": "+d.message,delete d.message;else try{a+=": "+JSON.stringify(d)}catch(e){}return a};
35
+ _.zi=function(a,b){var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=b};_.Q=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};_.Ai=function(){this.a={}};_.Bi=function(){this.a=new _.Ai};
36
+ Ci=function(a,b,c){function d(k){for(var l=_.v(e),m=l.next();!m.done;m=l.next())a.off(b,m.value,d);c(k)}for(var e=[ne,"msneedkey",gh,"needkey"],f=_.v(e),g=f.next();!g.done;g=f.next())a.on(b,g.value,d)};_.Ei=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)Di(c[b]);a.a.clear()};Fi=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};Di=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
37
+ Gi=function(a,b,c,d){this.h=a;this.a=b;this.f=c;this.j=!!d};Hi=function(a){this.a=new _.Ai;this.f=a};_.Ii=function(){this.ue=new Hi(this);this.qe=[]};Ji=function(){};Ki=function(){};Li=function(a,b,c,d,e,f,g){this.o=this.l=this.j=!1;this.G=a;this.f=b;this.a=c;this.h=d;this.w=0;this.B=e+":"+b;this.H=e;this.videoEl=null;this.A=f;this.D=g||null};Mi=function(a){this.a=a.map(function(b){return{wc:b.getSurface().getMedia().id,player:b,vf:!0,ready:Promise.resolve()}});this.g=new _.M("clpp.playlist.PlayerPool")};
38
+ _.Ni=function(a){return Array.isArray(a)?a:[a]};Oi=function(a,b){return a===b?!0:a.length===b.length&&a.every(function(c,d){return c===b[d]})};Qi=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 Pi(a,b)&&Pi(b,a)};Pi=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};
39
+ _.Ri=function(a,b){b=void 0===b?{}:b;if(b.mi){for(var c=[],d={},e=_.v(a),f=e.next();!f.done;d={hf:d.hf},f=e.next())d.hf=f.value,c.some(function(g){return function(k){return b.mi(g.hf,k)}}(d))||c.push(d.hf);return c}return Array.from((new Set(a)).values())};Si=function(a,b){var c=new Set(a),d=new Set(b);return{Oo:a.filter(function(e){return!d.has(e)}),jq:a.filter(function(e){return d.has(e)}),tk:b.filter(function(e){return!c.has(e)})}};Ti=function(){};
40
+ Wi=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!==b.byteLength)return!1;if(Ui(a)===Ui(b)&&(a.byteOffset||0)===(b.byteOffset||0))return!0;for(var c=_.Vi(a),d=_.Vi(b),e=0;e<a.byteLength;e++)if(c[e]!==d[e])return!1;return!0};_.Vi=function(a,b,c){c=void 0===c?Infinity:c;return Xi(a,void 0===b?0:b,c,Uint8Array)};Yi=function(a,b,c){c=void 0===c?Infinity:c;return Xi(a,void 0===b?0:b,c,Uint16Array)};Zi=function(a,b,c){c=void 0===c?Infinity:c;return Xi(a,void 0===b?0:b,c,Uint32Array)};
41
+ _.$i=function(a,b,c){c=void 0===c?Infinity:c;return Xi(a,void 0===b?0:b,c,Int32Array)};_.aj=function(a,b,c){c=void 0===c?Infinity:c;return Xi(a,void 0===b?0:b,c,DataView)};bj=function(a){return a instanceof ArrayBuffer?a:0===a.byteOffset&&a.byteLength===a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
42
+ Xi=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=Ui(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)};Ui=function(a){return a instanceof ArrayBuffer?a:a.buffer};_.cj=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};_.dj=function(a,b){a.classList.add(b)};
43
+ _.ej=function(a,b){if(a&&typeof b===_.$e)for(var c in b)a.style[c]=b[c]};_.fj=function(a){return document.createElement(a)};gj=function(){this.a=null;this.h=new Set;this.f=null;this.set(null)};hj=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.h.add(b))};ij=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.h.values());Pi(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.uh(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
44
+ _.jj=function(a){this.f=a;this.a=null};kj=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};_.lj=function(a){this.f=a;this.a=null};mj=function(a){return 0>=a?Promise.resolve():new Promise(function(b){setTimeout(function(){b()},1E3*a)})};nj=function(){};_.oj=function(){return!!navigator.userAgent.match(/Edge?\//)};_.qj=function(a){return _.pj("Tizen"+(a?" "+String(a):""))};
45
+ _.rj=function(){return _.pj("Web0S")};_.sj=function(){return _.pj("CrKey")};_.tj=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.qj()};_.uj=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.tj()&&1<navigator.maxTouchPoints};_.vj=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};_.pj=function(a){return(navigator.userAgent||"").includes(a)};
46
+ yj=function(){if(wj)return wj;xj||(xj=new _.lj(function(){wj=null}));(wj=document.querySelector(_.Tg)||document.querySelector(_.Sc))||(wj=document.createElement(_.Tg));xj.ia(1);return wj};Aj=function(a,b){try{return parseInt(b,10)}catch(c){zj.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
47
+ Bj=function(a){var b={major:-1,name:_.Hg};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};Cj=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};
48
+ Mj=function(){var a=Dj();if(!a)return Ej;var b=a.match(/^.+?(?=\))/);if(!b)return Ej;b=b[0];if(Cj(b,["iphone","ipad"]))return Fj;if(Cj(b,["android"]))return Gj;if(Cj(b,["macintosh"]))return Hj;if(Cj(b,["windows nt"]))return Ij;if(Cj(b,["tizen"]))return Jj;if(Cj(b,["web0s"]))return Kj;if(Cj(b,["linux"]))return Lj;zj.warn("Unable to identify OS from user agent: "+a);return Ej};
49
+ _.Oj=function(){var a=Dj(),b=["ie","edge","opera","firefox","safari",qd];var c=Mj();for(var d=Nj[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("")};Dj=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
50
+ _.Qj=function(){var a=Mj();var b=Mj();var c=Nj[b];if(c){c=Dj().match(c.os_version)[1];c=Bj(c);if(b===Ij)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=Dj();var d=["ie","edge","opera","firefox","safari",qd],e=Mj();e=Nj[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:_.Oj()}};
51
+ Uj=function(a,b){this.g=new _.M("clpp.PlayerSurface");this.w=_.N.ta(Rj,b);this.f=new gj;this.h=null;this.a=new gj;this.l=Sj;Sj+=1;this.o="clpp-video-"+this.l;this.j=new _.Bi;if(null==a)throw new _.O(_.P,7,7102,"No Media element was provided");if(a instanceof Element)var c=a;else if(c=document.getElementById(a),!c)throw new _.O(_.P,7,7004,"Media element not found");var d=this.w;this.g.debug("Initializing Player Surface on ",c);if("cast-media-player"===c.tagName.toLowerCase())this.h=c;else{if(!(c instanceof
52
52
  HTMLMediaElement))throw new _.O(_.P,7,7005,"Media element is not instance of HTMLMediaElement");if(!c.hasAttribute("crossorigin")){var e=d.crossorigin;this.g.info("Setting media elements crossorigin to "+e);c.setAttribute("crossorigin",e)}this.f.set(c);if(d.disableContainer)e=null;else if(d.containerEl){if(c.parentNode!==d.containerEl)throw new _.O(_.P,7,7006,"Container element is not a direct parent of media element");e=d.containerEl}else{e=document.createElement(_.Xd);c.parentNode?c.parentNode.replaceChild(e,
53
- c):this.g.warn("Player Surface Element has no parent. Can not inject container. You have to manually add playerSurface.getContainer() to the DOM!");for(var f=[],g=0;g<c.classList.length;g++)f.push(c.classList[g]);f=_.v(f);for(g=f.next();!g.done;g=f.next())g=g.value,c.classList.remove(g),_.Zi(e,g);e.style.cssText=c.style.cssText;c.removeAttribute(_.ng);f=_.v([_.gh,_.ve]);for(g=f.next();!g.done;g=f.next()){g=g.value;var k=c.getAttribute(g);k=parseInt(k,10);isNaN(k)||(e.style[g]=k+_.Nf);_.lj()||c.removeAttribute(g)}e.appendChild(c)}e&&
54
- (this.a.set(e),cj(this.a,"clpp-container"),cj(this.a,this.o),cj(this.f,_.sd),cj(this.f,"clpp-video"));d.webOSStartupPatch&&Oj(this,c,e)}};Oj=function(a,b,c){b.hasAttribute(Sd)||(b.style.opacity="0",b.setAttribute(Sd,""),a.j.one(b,ke,function(){b.removeAttribute(Sd);b.style.opacity="1";c&&(c.style.opacity="1")}))};
55
- Uj=function(a){var b=this;this.j=a;this.w=!!a.sideAdContainer;this.l=[];this.a=a.Bj;this.H=Qj(a);this.D=[];var c=Rj(this,this.H,this.j.Ul);this.A=new Hi(c);this.f=null;this.B=!1;this.o=new Map;this.I=a.toggleVisible;this.g=new _.M("clpp.interstitial.MultiController");this.h=this.G=!1;this.J=a.Xn||function(){};Sj(this).forEach(function(d){return Tj(b,d,!1)})};
56
- Yj=function(a,b){var c,d,e,f,g,k,l,m,n,p,q,t,u;return _.I(function(y){if(1==y.a){a.g.info("Crop ads by playout limit",b);c=Vj(a);d=a.getCurrentItem();if(!c||!d||!d.Wa||null==c.V)return y["return"]();e=a.l.filter(function(C){return!C.primary});f=Math.max.apply(Math,_.ph(e.map(function(C){return C.Eb})));if(b>f)return a.g.info("Playout limit is greater than ad pod duration, ignored."),y["return"]();g=d.player.getPosition()+(d.Eb-d.duration);k=e.sort(function(C,D){return D.Eb-C.Eb})[0];l=c.V;m=b<=g;
57
- if(!m)return y.C(2);n=f-g;c.V-=n;a.g.warn("Playout limit exceeded, immediately returning to primary at "+(c.V.toFixed(1)+" instead of ")+l.toFixed(1));return _.x(y,Wj(a,c.id,_.pf),3)}if(2!=y.a)return k.Ja&&k.Ja(),p=d.Wa,a.a.trigger(new _.Q(_.Cc,{ad:p})),a.a.trigger(new _.Q(_.nc,{ad:p})),a.a.trigger(new _.Q(_.kc,{id:d.ic})),y["return"]();a.g.warn("Limiting playout of ads to",b);q=e.find(function(C){return b<=C.Eb&&b>=C.Eb-C.duration});if(!q)return a.g.warn("Cannot find ad hit by limit"),y["return"]();
58
- t=b-(q.Eb-q.duration);q.Wa.h=t;u=f-b;c.V-=u;a.g.info("Last ad is now ",q.Wa.lb(),"with cropped duration",t,"and primary will resume at",c.V.toFixed(1),"instead of",l.toFixed(1));k.Ja&&(q.Ja=k.Ja);q.transition={Mf:{position:t,itemId:c.id,V:c.V}};Xj(a,q);_.A(y)})};ak=function(a){var b;return _.I(function(c){if(1==c.a)return(b=a.f)?"loaded"===b.state?c.C(2):_.x(c,b.Hd,2):c["return"]();if(4!=c.a)return _.x(c,b.player.play(),4);b.state=_.Af;Zj(b);_.A(c)})};
59
- bk=function(a,b){a.g.info("Add items",b);a.l=a.l.concat(b.map(function(c){return Object.assign({},c,{state:"idle",disposers:[],preloadPromise:Promise.resolve(),Hd:Promise.resolve()})}))};ek=function(a){return _.I(function(b){return _.x(b,ck(a,a.l.map(function(c){return c.id})),0)})};
60
- ck=function(a,b){var c,d,e,f,g;return _.I(function(k){a.g.info("Remove items",b);c=[];d=[];e=_.v(a.l);for(f=e.next();!f.done;f=e.next())g=f.value,b.includes(g.id)?d.push(g):c.push(g);a.l=c;return _.x(k,Promise.all(d.map(function(l){l.disposers.forEach(function(m){return m()});l.disposers=[];return fk(a,l.id)})),0)})};hk=function(a){var b;return _.I(function(c){b=a.l.filter(function(d){return!d.primary}).map(function(d){return d.id});gk(a);return _.x(c,ck(a,b),0)})};
61
- ik=function(a){var b,c;_.I(function(d){b=a.getCurrentItem();c=b.next[0];if(!(b&&b.primary&&c))return d.C(0);gk(a);return _.x(d,a.play(c),0)})};gk=function(a){var b=Vj(a);b&&(b.transition=void 0,b.next=[],jk(a))};
62
- Wj=function(a,b,c){var d,e,f,g,k,l;return _.I(function(m){switch(m.a){case 1:if(a.B)return a.g.warn("Cannot "+c+" item while busy (ID: "+b+")"),m["return"]();d=kk(a,b);if(!d)return a.g.warn("Item not found (ID: "+b+")"),m["return"]();a.g.info(c+" item (ID: "+b+")");a.B=!0;if(e=a.f)e.player.isPaused()||(a.w?e.primary?lk(a,e,mk):e.player.pause():e.player.pause()),e.primary?lk(a,e,mk):lk(a,e,nk);(f=a.o.has(b))&&a.o["delete"](b);_.F(m,2,3);if(c===_.pf)return(g=e&&d.primary)?_.x(m,ok(a,d),10):f?_.x(m,
63
- pk(a,d),10):_.x(m,qk(a,d),10);if(f){a.g.error("Loading preloaded items is not supported");m.C(6);break}return _.x(m,rk(a,d),6);case 10:Zj(d);case 6:Xj(a,d);d.primary?lk(a,d,nk):lk(a,d,mk);d.Wa&&uk(a,d,d.Wa);if(d.Ja)d.player.one(_.pe,d.Ja);e&&vk(a,e);case 3:_.Eh(m);a.B=!1;wk(a);xk(a,d.next);_.Fh(m);break;case 2:k=_.H(m);a.g.error("Item failed to "+c+" (ID: "+b+")",k);if(d.primary)throw k;if(l=Vj(a))return a.g.warn("Ad failed, resuming primary item"),_.x(m,ok(a,l),3);m.C(3)}})};
64
- yk=function(a,b,c){c=void 0===c?!1:c;if(!a.h){var d=Vj(a);d?(d.V=b,c&&(a.h=!0)):a.g.error("Failed to get primary item. Cannot configure resume position.")}};Vj=function(a){return a.l.find(function(b){return!!b.primary})||null};kk=function(a,b){return a.l.find(function(c){return c.id===b})||null};
65
- Xj=function(a,b){var c=b.transition;if(c&&!c.Kj){if(c.Ja){var d=c.Ja,e=function(){a.g.info("Transition onEnded to (ID: "+d+")");a.play(d)};b.player.one(_.pe,e);b.disposers.push(function(){b.player.off(_.pe,e)})}c.Mf&&zk(a,b,function(){var f=a.f.Wa;f&&(b.disposers.forEach(function(g){return g()}),b.disposers=[],a.a.trigger(new _.Q(_.Cc,{ad:f})),a.a.trigger(new _.Q(_.nc,{ad:f})),a.a.trigger(new _.Q(_.kc,{id:b.ic})))});c.Kj=!0}};
66
- zk=function(a,b,c){function d(){a.g.info("Stop timeupdate polling");b.player.off(_.zg,f)}function e(){var l=b.player.getPosition();l>=g.position?(c(),a.g.info("Transition onPosition to (ID: "+g.itemId+"), playback position: "+(l.toFixed(3)+" s, transition point: ")+(g.position.toFixed(3)+" s. ")),a.play(g.itemId),l=!0):l=!1;l?k=null:k=requestAnimationFrame(e)}function f(){var l=b.player.getPosition();.5>=g.position-l&&(a.g.info("Start RAF polling"),d(),e())}var g=b.transition.Mf,k=null;g.V&&yk(a,
67
- g.V);a.g.info("Start timeupdate polling");b.player.on(_.zg,f);b.disposers.push(function(){null!=k&&(a.g.info("Stop RAF polling"),cancelAnimationFrame(k),k=null)});b.disposers.push(d)};jk=function(a){a.f&&(a.f.disposers.forEach(function(b){return b()}),a.f.disposers=[],a.f.transition&&(a.f.transition.Kj=!1),Xj(a,a.f))};Sj=function(a){return[a.a].concat(_.ph(a.A.a.map(function(b){return b.player})))};wk=function(a){Promise.all(Array.from(a.o.keys()).map(function(b){return fk(a,b)}))};
68
- Qj=function(a){if(a.sideAdContainer)a=a.sideAdContainer;else if(a=a.Bj.getSurface().getContainer(),!a)throw Error("Primary player does not have a container");return a};fk=function(a,b){var c;return _.I(function(d){if(1==d.a){c=a.o.get(b);if(!c)return d.C(0);a.g.info("Stop preloading item (ID: "+b+")");return c.player?_.x(d,Ak(a,c.player),3):d.C(3)}a.o["delete"](b);_.A(d)})};Bk=function(a){return _.I(function(b){if(1==b.a)return a.f?_.x(b,vk(a,a.f),3):b.C(0);Tj(a,a.a,!0);_.A(b)})};
69
- vk=function(a,b){var c;return _.I(function(d){if(1==d.a){c=b.player;if(b.primary)return a.g.info("Pause primary playback"),a.w||Tj(a,c,!1),d.C(0);a.g.info("Stop previous playback (ID: "+b.id+")");b.disposers.forEach(function(e){return e()});b.disposers=[];b.player=null;b.videoEl=null;b.role=Ck;return b.$g?(a.g.info("Release player (ID: "+b.id+") after delay "+(b.$g+" ms.")),_.x(d,new Promise(function(e){setTimeout(function(){return _.I(function(f){if(1==f.a)return _.x(f,Ak(a,c),2);Tj(a,c,!1);a.a.trigger(new _.Q("ad-hls-released"));
70
- e();_.A(f)})},b.$g)}),0)):_.x(d,Ak(a,c),5)}Tj(a,c,!1);return d.C(0)})};qk=function(a,b){return _.I(function(c){if(1==c.a)return _.x(c,rk(a,b),2);if(3!=c.a)return _.x(c,b.player.play(),3);b.state=_.Af;_.A(c)})};rk=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.x(d,Dk(a,!!b.primary),2);if(3!=d.a)return c=d.f,a.f=b,b.role=Ek,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),Tj(a,c,!0),b.state="loading",b.Hd=Fk(a,c,b.config,b.Ie),_.x(d,b.Hd,3);b.state="loaded";_.A(d)})};
71
- pk=function(a,b){var c;return _.I(function(d){switch(d.a){case 1:c=b.player;if(!c)return d["return"]();if(b.state!==Jf){d.C(2);break}a.g.info(Vb);_.F(d,3);return _.x(d,b.preloadPromise,5);case 5:_.G(d,2);break;case 3:_.H(d);case 2:a.f=b;b.role=Ek;Tj(a,c,!0);if(b.state===If)return _.x(d,c.play(),7);if(b.state!==Hf){d.C(7);break}return _.x(d,Fk(a,c,b.config,b.Ie),7);case 7:b.state=_.Af,_.A(d)}})};
72
- uk=function(a,b,c){function d(){a.a.trigger(new _.Q(_.Cc,{ad:c}));a.a.trigger(new _.Q(_.nc,{ad:c}));c.f===c.a&&a.a.trigger(new _.Q(_.kc,{id:b.ic}))}function e(){a.a.trigger(new _.Q(_.lc,{ad:c}))}function f(){a.a.trigger(new _.Q(_.zc,{ad:c}))}function g(){l.isEnded()||a.a.trigger(new _.Q(_.xc,{ad:c}))}function k(){var m=l.getPosition(),n=c.getDuration();c.w=m;a.a.trigger(new _.Q(_.yc,{ad:c}));!c.j&&m>=n/4&&(c.j=!0,a.a.trigger(new _.Q(_.oc,{ad:c})));!c.l&&m>=n/2&&(c.l=!0,a.a.trigger(new _.Q(_.wc,{ad:c})));
73
- !c.o&&m>=3*n/4&&(c.o=!0,a.a.trigger(new _.Q(_.Dc,{ad:c})))}var l=b.player;l.on(_.zg,k);l.on(_.lf,g);l.on(_.Af,f);l.on(_.dd,e);l.one(_.pe,d);b.disposers.push(function(){l.off(_.zg,k);l.off(_.lf,g);l.off(_.Af,f);l.off(_.dd,e);l.off(_.pe,d)});1===c.f&&a.a.trigger(new _.Q(_.jc,{id:b.ic}));c.videoEl=l.getSurface().getMedia();a.a.trigger(new _.Q(_.sc,{ad:c}));a.a.trigger(new _.Q(_.Bc,{ad:c}))};
74
- ok=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();a.J();if(b.state!==Jf){c.C(2);break}a.g.info("Wait for seek to finish");_.F(c,3);return _.x(c,b.preloadPromise,5);case 5:_.G(c,2);break;case 3:_.H(c);case 2:a.h=!1;if(!b.V){c.C(6);break}return _.x(c,b.player.seek(b.V,!0),6);case 6:a.f=b;b.role=Ek;Tj(a,b.player,!0);b.state="loading";if(a.w&&(lk(a,b,nk),!b.player.isPaused())){c.C(9);break}return _.x(c,b.player.play(),9);case 9:b.state=_.Af,_.A(c)}})};
75
- Ak=function(a,b){return _.I(function(c){return b===a.a?c.C(0):_.x(c,a.A.release(b),0)})};Dk=function(a,b){var c;return _.I(function(d){if(1==d.a)return b?d["return"](a.a):_.x(d,a.A.get(),2);c=d.f;if(!c)throw Error("No player available");return d["return"](c)})};xk=function(a,b){var c;_.I(function(d){if(0===b.length)return d["return"]();a.g.info("Preload items (IDs: "+b+")");c=a.l.filter(function(e){return b.includes(e.id)})||[];return _.x(d,Promise.all(c.map(function(e){return Gk(a,e)})),0)})};
76
- Gk=function(a,b){var c,d,e,f,g;return _.I(function(k){switch(k.a){case 1:if(!b.primary){k.C(2);break}b.state=Jf;a.o.set(b.id,b);if(!b.V||a.w){k.C(3);break}c=b.player;a.g.info("Preparing to resume at",b.V);lk(a,b,mk);return _.x(k,c.seek(b.V,!0),3);case 3:return b.state=If,k["return"]();case 2:return d=b.id,_.x(k,Dk(a,!1),5);case 5:e=k.f;b.player=e;b.videoEl=e.getSurface().getMedia();b.role=Ck;b.state=Jf;_.F(k,6);a.o.set(d,b);b.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (ID: "+
77
- (d+")")),b.config.autoplay=!1);if(f=a.a.getBandwidthEstimate())b.config.abr||(b.config.abr={}),b.config.abr.defaultBandwidthEstimate=f;b.preloadPromise=Fk(a,e,b.config,b.Ie);return _.x(k,b.preloadPromise,8);case 8:b.state=If;_.G(k,0);break;case 6:g=_.H(k),7001===g.code?(a.g.info("Preload aborted (ID: "+d+")"),b.state=Gf):(a.g.warn("Preload failed (ID: "+d+")",g),b.state=Hf),_.A(k)}})};
78
- Tj=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.debug(Hb+b),d.classList.add(vd),d.classList.remove("clpp-hide")):(a.g.debug(Va+b),d.classList.remove(vd),d.classList.add("clpp-hide")),a.I&&a.I(d,c))};
79
- Rj=function(a,b,c){return Array.from({length:2}).map(function(d,e){var f=document.createElement(_.Sg);b.appendChild(f);var g=a.j.xb.create();f=new Pj(f);g.init(f,c);g.setSourceIndex(0);var k=f.getContainer();if(!k)throw Error("Failed to create player surface container element");k.classList.add("secondary");f.getMedia().classList.add("v-"+e);a.D.push(k);return g})};
80
- lk=function(a,b,c){var d=b?b.ic||null:null;a.G?(a.a.setMuted(!0),Hk(a,!0)):(b.audio&&(c=b.audio),a.j.onAudioDecision&&(c=a.j.onAudioDecision(d)),c===nk?(a.a.setMuted(!1),Hk(a,!0)):c===mk?(a.a.setMuted(!0),Hk(a,!1)):a.g.warn("Audio decision not supported",c))};Hk=function(a,b){a.l.filter(function(c){return!c.primary&&c.player}).forEach(function(c){return c.player.setMuted(b)})};Ik=function(a){a.D.forEach(function(b){return a.H.removeChild(b)});a.D=[];Tj(a,a.a,!0)};
81
- Fk=function(a,b,c,d){var e,f;return _.I(function(g){if(1==g.a)return _.x(g,b.release(),2);if(3!=g.a)return _.x(g,b.load(c),3);d&&d(b.getDuration());a.f&&a.f.player&&(e=a.f.player.getVolume(),f=null==e?1:e,b.setVolume(f),b.setMuted(a.f.player.isMuted()||!1));_.A(g)})};Zj=function(a){if(a.Wa){var b=a.player.getDuration();a.maxDuration&&(b=Math.min(b,a.maxDuration));a.Wa.h=b}a.Of&&a.Of()};Jk=function(a){return"com.apple.hls.interstitial"===a||"com.apple.hls.overlay"===a};
82
- Kk=function(a){if(!a)return!1;var b=!!a[bc];a=!!a[ac];return(b||a)&&!(b&&a)};Lk=function(a){return a&&a.ASSETS&&Array.isArray(a.ASSETS)?a.ASSETS.every(function(b){return typeof b.URI===_.lg&&typeof b.DURATION===_.h}):!1};Ok=function(a){return a.th&&!(a.once&&a.Lj)&&[Mk,Nk].includes(a.state)};Pk=function(a){a=a.customAttributes[$b];if(!a)return null;try{return JSON.parse(atob(a))}catch(b){return null}};
83
- Qk=function(a,b){for(var c=0;c<a.length;c++){var d=a[c],e=c===a.length-1;e&&2===b||(e?(d.next=[Lf],d.transition={Ja:Lf}):(e=a[c+1].id,d.next=[e],d.transition={Ja:e}))}};
84
- Rk=function(a){var b={};a=a.map(function(g){return g.customAttributes||{}});var c=new Set;a.forEach(function(g){Object.keys(g).forEach(function(k){c.add(k)})});for(var d={},e=_.v(c),f=e.next();!f.done;d={Qb:d.Qb,bf:d.bf},f=e.next())d.Qb=f.value,d.Qb===gc?(d.bf=new Set([]),a.forEach(function(g){return function(k){k[g.Qb]&&k[g.Qb].forEach(function(l){return g.bf.add(l)})}}(d)),b[d.Qb]=Array.from(d.bf)):d.Qb===hc&&(f=a.reduce(function(g){return function(k,l){return l[g.Qb]?k+l[g.Qb]:k}}(d),0),b[d.Qb]=
85
- f);return b};Tk=function(a,b){if(0===a.length)return a;var c=new Map;1===b?a.forEach(function(g){var k=c.get(g.startTime)||[];k.push(g);c.set(g.startTime,k)}):c.set(0,a);for(var d=[],e=_.v(c.values()),f=e.next();!f.done;f=e.next())f=f.value,1===f.length?d.push(f[0]):(f=Sk(f),d.push(f));return d};
86
- Sk=function(a){var b=[],c=0;a.forEach(function(f){var g=Math.max(0,f.endTime-f.startTime);c+=g;var k=f.customAttributes[ac];k&&b.push({type:"list",id:f.id,customAttributes:f.customAttributes,Lc:{URI:k,DURATION:0}});if(k=f.customAttributes[bc])g={type:"uri",id:f.id,customAttributes:f.customAttributes,Lc:{URI:k,DURATION:g}},(f=Pk(f))&&(g.Lc[$b]=f),b.push(g)});var d=Rk(a);d[cc]={entries:b,oa:[]};var e=a[0];a=a.map(function(f){return f.id}).join("+");return Object.assign({},e,{id:a,endTime:e.startTime+
87
- c,customAttributes:d})};_.Vk=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.ph(Uk).concat()}};Wk=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||_.ph(Uk).concat()};Xk=function(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b};
88
- _.Zk=function(a,b){_.N.ja(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.Yk,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||
89
- [],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:_.ph(Uk).concat(),requestStartTimestamp:null};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&
90
- Wk(c,b);return c};_.dl=function(a,b,c,d,e,f,g,k){a={uri:e||d,data:b,headers:a,status:c,timeMs:g,responseStartMs:k,request:f};if($k(c))return al(a);throw bl(a);};$k=function(a){return 200<=a&&299>=a&&202!==a};al=function(a){return{uri:a.uri,data:a.data||new ArrayBuffer(0),headers:a.headers,status:a.status,fromCache:!!a.headers["x-shaka-from-cache"],timeMs:a.timeMs,responseStartMs:a.responseStartMs,request:a.request}};
91
- bl=function(a){a=al(a);try{var b=_.R.le(a.data,!0)}catch(d){b=null}_.Vh("HTTP error text:",b);var c=a.request;return new _.O(0<=(c?c.fatalStatusCodes||[]:[]).indexOf(a.status)?_.P:1,1,1001,{url:a.uri,status:a.status,responseText:b,headers:a.headers,request:a.request,response:a})};el=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};
92
- fl=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};gl=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()};hl=function(a){if(null!==a&&void 0!==a)return Number(a)};il=function(a){return a.reduce(function(b,c){return b+c},0)};
93
- sl=function(a){_.Di.call(this);var b=this;this.j=_.N.ta({zo:.5},a);this.A=this.h=!1;this.g=new _.M("clpp.interstitial.Player");this.l=a.player;this.l.setSeekInterceptor(function(c,d){if(d)return!0;if(b.h)return!1;var e=jl(b);if(e)return b.g.info("Seek ignored while binding interstitial",e.ca),!1;kl(b,c);e=ll(b);var f=ml(b,c),g=nl(b,c);if(e){if(f&&f!==e)return ol(b,f,c),!1;if(g&&g!==e)return pl(b,g,c),!1;if(c<e.startTime-b.j.resolutionOffsetSec)return ql(b,e),!0;if(c<e.startTime)return jk(b.a),b.g.info("Seek inside resolution area of",
94
- e.ca),!0;if(c<=e.endTime)return b.g.info("Seek into the scheduled interstitial",e.ca),ik(b.a),!1;if(e.Oh)return b.g.info("Jump over a scheduled interstitial",e.ca),hk(b.a),e.state=Mk,!0;b.g.info("Jump over a scheduled interstitial triggering it",e.ca);ik(b.a);yk(b.a,c,!0);return!1}return f?(ol(b,f,c),!1):g&&!g.Zl?(pl(b,g,c),!1):!0});this.a=new Uj({Ul:this.j.config,Bj:a.player,preloadMedia:!0,xb:a.xb,sideAdContainer:this.j.sideAdContainer,onAudioDecision:this.j.onAudioDecision,Xn:function(){b.g.info("Resume primary content")}});
95
- this.o=[];this.f=[];this.w=!1;rl(this,a.player)};tl=function(a){return(a=a.a.getCurrentItem())&&!a.primary?a.player:null};
96
- vl=function(a){var b,c,d;_.I(function(e){var f=a.a;bk(f,[{id:Lf,primary:!0,config:f.a.getConfiguration(),next:[],Eb:0,duration:0,ic:null}]);var g=Vj(f);if(!g)throw Error("Failed to find primary item");f.f=g;g.role=Ek;g.player=f.a;g.videoEl=g.player.getSurface().getMedia();Tj(f,g.player,!0);b=a.l;c=b.getConfiguration();d=!c.autoplay;a.w=ul(a,d,b.isLive(),!1);if(a.w){f=a.a;g=f.A;if(g=g.a[0]?g.a[0].player:null)f.w||Tj(f,f.a,!1),Tj(f,g,!0);return e.C(0)}return c.autoplay?_.x(e,ak(a.a),0):e.C(0)})};
97
- kl=function(a,b){var c=a.l.getPosition();b>=c||a.f.filter(function(d){return 1===d.Kd&&!d.once&&d.aj&&d.startTime>b}).forEach(function(d){d.th=!0})};ll=function(a){return a.f.find(function(b){return b.state===wl})||null};jl=function(a){return a.f.find(function(b){return b.state===xl})||null};ql=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Unschedule interstitial",b.ca),_.x(c,hk(a.a),2);b.state=Mk;_.A(c)})};
98
- ol=function(a,b,c){var d;_.I(function(e){switch(e.a){case 1:a.h=!0;_.F(e,2,3);d=ll(a);if(!d){e.C(5);break}return _.x(e,ql(a,d),5);case 5:return a.g.info("Seek into interstitial",b.ca),_.x(e,yl(a,b),3);case 3:_.Eh(e);a.h=!1;_.Fh(e);break;case 2:return _.H(e),_.x(e,a.l.seek(c),3)}})};
99
- pl=function(a,b,c){var d,e;_.I(function(f){switch(f.a){case 1:a.h=!0;_.F(f,2,3);d=ll(a);if(!d){f.C(5);break}return _.x(f,ql(a,d),5);case 5:return a.g.info("Play jumped interstitial",b.ca,"resume at",c.toFixed(2)),_.x(f,yl(a,b,c),3);case 3:_.Eh(f);a.h=!1;_.Fh(f);break;case 2:return e=_.H(f),a.g.warn("Failed to play jumped interstitial",b.ca,e),b.Zl=new Date,_.x(f,a.l.seek(c),3)}})};
100
- ul=function(a,b,c,d){var e=zl(a);a.g.info("Interstitial cues changed",e);var f=e;if(d){f=Ni(a.f.map(function(q){return q.ca}),e.map(function(q){return q.id}));Al(a,f.Eo);var g=new Set(f.kk);f=e.filter(function(q){return g.has(q.id)})}if(!Bl(a,f))return!1;var k=[],l=[],m=[];f.forEach(function(q){var t=q.customAttributes.CUE||[];t.includes(_.rb)?l.push(q):!d&&t.includes("PRE")?k.push(q):!c&&q.startTime<a.j.zo?k.push(q):m.push(q)});e=Tk(k,0);f=Tk(l,2);var n=Tk(m,1),p=e.concat(f,n);Cl(a,p);0<e.length&&
101
- Dl(a,e[0],b);n.forEach(function(q){return El(a,q,1)});0<f.length&&El(a,f[0],2);Fl(a,p);return 0<e.length};
102
- Fl=function(a,b){var c,d,e,f;_.I(function(g){c=a.a.getCurrentItem();if(!c)return g["return"]();if(c.primary)return a.f.forEach(function(k){var l=b.find(function(n){return n.id===k.ca});if(l){var m=l.customAttributes[dc];null==k.Cc&&null!=m&&(a.g.info(Rb,l.id,"Playout limit",m),k.Cc=m,1===k.Kd&&k.state===wl&&Gl(a,k))}}),g["return"]();d=b.find(function(k){return k.id===c.ic});if(!d)return g["return"]();e=d.customAttributes[dc];if(null==e)return g["return"]();f=a.f.find(function(k){return k.ca===d.id});
103
- if(!f||null!=f.Cc)return g["return"]();a.g.info(Rb,d.id,"Playout limit",e);f.Cc=e;return _.x(g,Yj(a.a,e),0)})};Al=function(a,b){var c=new Set(b);a.f.forEach(function(d){c.has(d.ca)&&!Ok(d)&&a.g.warn("Removing an interstitial in active state",d)});a.f=a.f.filter(function(d){return!c.has(d.ca)})};zl=function(a){return a.l.getTimelineCues().filter(function(b){return Jk(b.schemeIdUri)&&b.customAttributes})};
104
- yl=function(a,b,c){var d;return _.I(function(e){if(1==e.a)return _.x(e,Hl(a,b),2);d=e.f;if(!d)throw Error("Failed to bind");return _.x(e,Il(a,b,1,!1,c),0)})};Gl=function(a,b){_.I(function(c){return 1==c.a?_.x(c,ql(a,b),2):_.x(c,Jl(a,b,a.l),0)})};
105
- El=function(a,b,c){var d=b.customAttributes[bc],e=b.customAttributes[ac],f=b.customAttributes[cc],g=b.customAttributes[hc],k=b.customAttributes[dc],l=b.customAttributes[gc]||[];b.customAttributes[ic]||(b.customAttributes[ic]=null==g||0<g?"RANGE":"POINT");var m=b.customAttributes["X-YOSPACE-AUDIO-PRIORITY"];m="CONTENT"===m?nk:"AD"===m?mk:void 0;b={ca:b.id,startTime:b.startTime,endTime:b.endTime,state:Mk,Dh:e,Eh:d,re:f,oa:null,V:null==g?null:Math.max(0,b.startTime+g),Io:g,Cc:k,Kd:c,Rm:"POINT"===b.customAttributes[ic],
106
- uk:!l.includes("SKIP"),Oh:!l.includes("JUMP"),Oj:Pk(b),aj:null!=g&&0>g,once:(b.customAttributes.CUE||[]).includes("ONCE"),Lj:!1,th:!0,customAttributes:b.customAttributes,audio:m};a.f.push(b);return b};
107
- Dl=function(a,b,c){var d,e,f,g,k;_.I(function(l){switch(l.a){case 1:return d=El(a,b,0),_.x(l,Hl(a,d),2);case 2:e=l.f;f=d.oa?d.oa.length:0;if(e&&0<f){_.F(l,8);a.g.info("Player preroll interstitial "+d.ca);var m=Il(a,d,0,c);return _.x(l,m,10)}e?a.g.warn("Preroll interstitial has no assets, skipping"):a.g.error("Preroll interstitial failed, skipping");return _.x(l,Bk(a.a),5);case 5:if(c){l.C(0);break}return _.x(l,ak(a.a),0);case 10:_.G(l,0);break;case 8:g=_.H(l);a.g.error("Preroll interstitial failed.",
108
- g);if(k=Vj(a.a))return _.x(l,a.a.play(k.id),0);l.C(0)}})};Kl=function(a){a.o.forEach(function(b){return b()});a.o=[]};
109
- rl=function(a,b){function c(){a.A=!1}function d(){a.A=!0}function e(){ul(a,!1,!0,!0)}function f(){var g,k,l,m,n;return _.I(function(p){switch(p.a){case 1:if(a.h||a.A)return p["return"]();g=b.getPosition();k=Ll(a,g);if(!k){p.C(2);break}return _.x(p,Hl(a,k),3);case 3:(l=p.f)&&Jl(a,k,b);case 2:m=Ml(a);if(!(m&&m.state===Mk&&b.getDuration()-g<a.j.resolutionOffsetSec)){p.C(0);break}return _.x(p,Hl(a,m),5);case 5:if(n=p.f)if(m.oa&&0!==m.oa.length){var q=a.a.getCurrentItem();if(q){var t=Nl(a,m,2);if(0!==
110
- t.length){var u=t[0].id;q.next=[u];q.transition={Ja:u};a.g.info("Schedule postroll interstitial "+m.ca);Ol(a,m,t)}}}else a.g.warn("Postroll interstitial has no assets, ignoring.");_.A(p)}})}b.on(_.zg,f);a.o.push(function(){b.off(_.zg,f)});b.on(_.yg,e);a.o.push(function(){b.off(_.yg,e)});b.on(_.jc,d);a.o.push(function(){b.off(_.jc,d)});b.on(_.kc,c);a.o.push(function(){b.off(_.kc,c)})};Ml=function(a){return a.f.find(function(b){return 2===b.Kd})||null};
111
- Cl=function(a,b){for(var c=b.sort(function(m,n){return m.startTime-n.startTime}),d=a.j.resolutionOffsetSec,e=Infinity,f=[],g=0;g<c.length-1;g++){var k=c[g],l=c[g+1];l&&(e=Math.min(e,l.startTime-k.endTime));l&&l.startTime<=k.endTime&&f.push("Interstitials "+k.id+" and "+l.id+" overlap.")}e<d&&(c=e/2,a.j.resolutionOffsetSec=c,a.g.info("Interstitials are closer than configured resolutionOffsetSec ("+(d+" s) auto-reconfiguring to ")+(c+" s.")));0<f.length&&a.g.warn("Unsupported format of interstitials, playback may not behave correctly. "+
112
- f.join(" "))};Bl=function(a,b){var c=[];b.forEach(function(d){Kk(d.customAttributes)||c.push("Interstitial cue "+d.id+" is invalid it must contain exactly one of X-ASSET-LIST or X-ASSET-URI.")});0<c.length&&a.g.error("Invalid interstitials, all interstitials will be skipped. "+c.join(" "));return 0===c.length};Ll=function(a,b){return a.f.find(function(c){var d=c.startTime-b;return 1===c.Kd&&Ok(c)&&0<d&&d<=a.j.resolutionOffsetSec})||null};
113
- ml=function(a,b){return a.f.find(function(c){return Ok(c)&&!c.Rm&&1===c.Kd&&b>c.startTime&&b<c.endTime})||null};nl=function(a,b){var c=a.l.getPosition();return a.f.filter(function(d){return 1===d.Kd&&!d.Oh}).sort(function(d,e){return e.startTime-d.startTime}).find(function(d){return d.startTime>c&&d.startTime<b})||null};
114
- Hl=function(a,b){return _.I(function(c){if(1==c.a){b.state=xl;if(b.re)return _.x(c,Pl(a,b,b.re),3);if(!b.Dh){if(b.Eh){b.oa=[{URI:b.Eh,DURATION:b.endTime-b.startTime}];var d={URI:b.oa[0].URI,DURATION:b.oa[0].DURATION};b.Oj&&(d[$b]=b.Oj);Ql(a,new _.Q(rc,{id:b.ca,detail:{ASSETS:[d]}}));b.state=Rl}else b.state=Sl;return c.C(3)}return _.x(c,Tl(a,b,b.Dh),3)}return c["return"](b.state===Rl)})};
115
- Pl=function(a,b,c){var d,e,f,g,k,l;return _.I(function(m){if(1==m.a)return _.F(m,2),d=[],e=c.entries,f=e.map(function(n){var p;return _.I(function(q){if(1==q.a)return"list"!==n.type?q.C(2):_.x(q,Ul(a,n.Lc.URI),3);if(2!=q.a)return p=q.f,q["return"](p.ASSETS.map(function(t){return{id:n.id,customAttributes:n.customAttributes,Lc:t}}));if("uri"===n.type)return q["return"]([{id:n.id,customAttributes:n.customAttributes,Lc:n.Lc}]);throw new _.ui("Invalid group asset entry type");})}),_.x(m,Promise.all(f),
116
- 4);if(2!=m.a)return g=m.f,g.forEach(function(n){return d.push.apply(d,_.ph(n))}),b.re={entries:e,oa:d},k={ASSETS:d.map(function(n){return n.Lc})},Vl(a,b,k),_.G(m,0);l=_.H(m);a.g.error("Failed to bind grouped asset list for "+b.ca,l);b.state=Sl;_.A(m)})};
117
- Tl=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return _.F(f,2),a.g.info("Load X-ASSET-LIST for "+b.ca),Ql(a,new _.Q(pc)),_.x(f,Ul(a,c),4);if(2!=f.a)return d=f.f,Vl(a,b,d),_.G(f,0);e=_.H(f);a.g.error("Failed to load X-ASSET-LIST",e);b.state=Sl;_.A(f)})};
118
- Vl=function(a,b,c){b.oa=c.ASSETS;b.oa&&0!==b.oa.length||a.g.info("Interstitial "+b.ca+" has no assets, will be smoothly skipped");if(null==b.V){var d=il(b.oa.map(function(e){return e.DURATION}));b.V=b.startTime+(null==b.Cc?d:Math.min(b.Cc,d))}b.state=Rl;Ql(a,new _.Q(qc));Ql(a,new _.Q(rc,{id:b.ca,detail:c}))};Wl=function(a,b){var c=a.j.xo;if(c){var d=new URL(b);d.searchParams.set("_HLS_primary_id",c);return d.toString()}return b};
119
- Il=function(a,b,c,d,e){var f,g,k;return _.I(function(l){if(0===b.oa.length)return l["return"]();f=a.a.getCurrentItem();if(!f)return l["return"]();g=Nl(a,b,c);if(0===g.length)return l["return"]();Ol(a,b,g);(k=0===c&&a.l.isLive())||(null!=e?yk(a.a,e,!0):null!=b.V&&yk(a.a,b.V));return d?_.x(l,a.a.load(g[0].id),0):_.x(l,a.a.play(g[0].id),0)})};
120
- Jl=function(a,b,c){if(b.oa)if(0===b.oa.length){var d=function(){c.isLive()?a.g.info("Skipping empty live interstitial "+b.ca):null!=b.V&&0!==b.Io?c.seek(b.V):a.g.info("Empty VOD interstitial "+b.ca+", continuing to next segment")};c.one(_.wg,d);a.o.push(function(){c.off(_.wg,d)});a.g.info(Eb+b.ca+" to be skipped")}else{var e=a.a.getCurrentItem();if(e){var f=Nl(a,b,1);if(0!==f.length){var g=f[0].id;null!=b.V&&yk(a.a,b.V);e.next=[g];e.transition={Mf:{position:b.startTime,itemId:g,V:b.V}};a.g.info(Eb+
121
- b.ca+" for "+(b.startTime+" s"));Ol(a,b,f)}}}};Ol=function(a,b,c){bk(a.a,c);a=a.a;jk(a);a.f&&(a.f.Wa&&uk(a,a.f,a.f.Wa),wk(a),xk(a,a.f.next));b.state=wl};
122
- Nl=function(a,b,c){var d=0,e=!!b.re,f=b.oa.map(function(m,n){var p=b.ca;e&&(p=b.re.oa[n].id);d+=m.DURATION;return{id:p+"-"+n,config:{source:{url:Wl(a,m.URI),type:_.Xl}},duration:m.DURATION,Eb:d,ic:p,next:[],Wa:new Gi(c,n+1,b.oa.length,m.DURATION,p,b.uk,b.customAttributes||null),audio:b.audio}});Qk(f,c);f.forEach(function(m){m.Of=function(){var n=m.Wa;a.g.info("Playing ad "+(n.f+"/"+n.a)+" of interstitial "+m.ic)};m.Ie=function(){Ql(a,new _.Q(_.uc,{ad:m.Wa}))}});if(null!=b.Cc&&(f=Yl(a,b,f),0===f.length))return[];
123
- var g=f[0].Of;f[0].Of=function(){b.state=Zl;b.Lj=!0;b.aj&&(b.th=!1);a.g.info("Playing interstitial "+b.ca+" with "+(b.oa.length+" assets and will resume primary content ")+((b.V?"at "+b.V.toFixed(1)+" s":"after interstitial ended")+"."));g()};var k=f[0].Ie;f[0].Ie=function(m){null==b.V&&(b.V=b.startTime+m,yk(a.a,b.V),a.g.info("Primary content will resume at",b.V.toFixed(1),"s"));k(m)};var l=f[f.length-1];l.Ja=function(){b.state=Nk;ck(a.a,f.map(function(m){return m.id}));2===c&&Bk(a.a)};l.$g=a.j.adReleaseDelayMs;
124
- return f};Yl=function(a,b,c){var d=b.Cc;a.g.info("Playout limit for "+b.ca+" is "+(d+" s"));b=c[c.length-1].Eb;if(d>=b)return a.g.info("Playout limit ("+d+") islarger or equal to total duration: ("+(b+").")),c;if(0>=d)return a.g.info("Discarding all ads."),[];var e=c.filter(function(f){return f.Eb-f.duration<=d});e.forEach(function(f){f.Wa.a=e.length});a=e[e.length-1];c=d-(a.Eb-a.duration);.1>Math.abs(c-a.duration)?a.transition.Ja=Lf:a.transition.Mf={position:c,itemId:Lf,V:null};a.maxDuration=c;return e};
125
- Ql=function(a,b){a.l.trigger(b)};Ul=function(a,b){var c,d,e,f,g,k;return _.I(function(l){if(1==l.a){c=a.a.wf();if(!c)throw Error("No player found");d=c.getNetworkEngine();e=_.Zk(Wl(a,b));return _.x(l,$l(d,e),2)}f=l.f;if(null===f)return a.g.warn("X-ASSET-LIST "+b+" returned no content"),l["return"]({ASSETS:[]});g=Lk(f);if(!g)throw new _.ui("Invalid X-ASSET-LIST list response");k=f;return l["return"](k)})};am=function(){this.a=null};
126
- bm=function(){try{var a=URL.createObjectURL(new Blob);URL.revokeObjectURL(a);return a.slice(a.lastIndexOf("/")+1)}catch(c){var b=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(d){var e=(b+16*Math.random())%16|0;b=Math.floor(b/16);return("x"===d?e:e&3|8).toString(16)})}};dm=function(a){this.m=a;this.j=this.m.getNetworkEngine();this.a=new _.wi;this.h=null;this.f=!0;cm(this)};
127
- cm=function(a){a.a.on(window,"offline",function(){em(a,!1)});a.a.on(window,"online",function(){a.f||fm(a)});a.a.on(a.m,gg,function(){return gm(a)});a.a.on(a.m,"suspend",function(){return gm(a)});a.a.on(a.m,_.$g,function(){return gm(a)});a.a.on(a.m,_.Af,function(){a.f||fm(a)});a.a.on(a.m,_.Mf,function(){a.f||fm(a)});a.a.on(a.m,_.ig,function(){switch(a.m.getState()){case 2:gm(a);break;default:gm(a)}})};fm=function(a){a.m.getConfiguration().connectivityCheck&&(hm(a),a.h=(new _.gj(function(){return im(a)})).ia(5))};
128
- gm=function(a){a.f&&fm(a)};hm=function(a){a.h&&(a.h.stop(),a.h=null)};im=function(a){var b,c;return _.I(function(d){if(1==d.a)return(b=a.m.getConfiguration().connectivityCheck)&&a.m?_.x(d,jm(a.j,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;em(a,c);_.A(d)})};em=function(a,b){hm(a);a.f!==b&&(a.f=b,a.m&&a.m.getConfiguration().connectivityCheck&&a.m.trigger(new _.Q(gf,{online:a.f})))};_.km=function(){this.a=[]};
129
- _.mm=function(a,b){a.a.push(lm(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.nm=function(){var a,b,c=new Promise(function(e,f){a=e;b=f}),d=Object.assign(c,{done:!1,ah:!1,Bo:!1,value:null,error:null,resolve:function(e){d.ah=!0;d.done=!0;d.value=e;a(e)},reject:function(e){d.Bo=!0;d.done=!0;d.error=e;b(e)}});return d};
130
- _.pm=function(a,b){var c=[a];var d=om.apply(_.pm,_.ph(c));if(!d||d.protocol.includes("."))c=b?[a,b]:[a,location.href],c=(d=om.apply(_.pm,_.ph(c)))?c:null;if(!c)throw new _.O(_.P,1,1011,{message:"The provided URL is invalid.",url:a,base:b});d=_.v(c);c=d.next().value;d=d.next().value;this.a=new URL(c,d);this.f=a.startsWith("//")};om=function(a,b){try{return new URL(a,b)}catch(c){return null}};rm=function(){this.a=qm()};sm=function(a){return qm()-a.a};tm=function(a){var b=new rm;b.a=a.a;return b};
131
- qm=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};um=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.h=new rm};wm=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(vm(a,d),fl(c,d.byteLength,sm(a.h)),a.h.a=qm());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 wm(a,b,c)})})};
132
- vm=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};xm=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.h=b;this.f=0};ym=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.h),c));a.a.set(d)}a.a.set(b,a.f);a.f+=b.byteLength};
133
- zm=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.j=new xm(a);this.length=a;this.A=b;this.f=this.a=this.h=0;this.l=null;this.o=-1;this.w=new rm};
134
- Cm=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,sm(a.w)),a.w.a=qm());if(f)return f=Am(a),(f=c(!0,f))?f.then(function(){return a.j.a.buffer}):Promise.resolve(a.j.a.buffer);var g=Promise.resolve();if(null!=e){ym(a.j,e);a.a=a.h;a.f=a.j.f;a.l=new DataView(a.j.a.buffer,0,a.j.f);e=Bm(a);for(f=[];e;)f.push(e),e=Bm(a);if(!a.A)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 k=f[f.length-1],
135
- l=k.end-e.start;e={start:e.start,end:k.end,length:l,data:new DataView(a.j.a.buffer,e.start,l),count:f.length}}(f=c(!1,e))&&(g=f)}}return g.then(function(){return Cm(a,b,c,d)})})};Bm=function(a){if(0<=a.o&&a.f<a.o)return null;for(var b=Dm(a);null!==b;){if(b.name===_.Oe){var c={start:a.h,end:b.end,length:b.end-a.h,data:new DataView(a.j.a.buffer,a.h,b.end-a.h),count:1};a.h=b.end;return c}b=Dm(a)}return null};
136
- Dm=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=Em(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=Em(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.l.getUint32(a.a,!1);var f=a.l.getUint32(a.a+4,!1)}catch(g){throw new _.O(_.P,3,3E3);}if(2097151<e)throw new _.O(_.P,3,3E3);a.a+=8;c=e*Math.pow(2,32)+f}c=b+c;a.o=c;return a.f>=c?(a.a=c,{name:d,start:b,end:c}):null};
137
- Em=function(a){var b=a.l.getUint32(a.a,!1);a.a+=4;return b};Am=function(a){var b=null;a.h!==a.f&&(b={start:a.h,end:a.f,length:a.f-a.h,data:new DataView(a.j.a.buffer,a.h,a.f-a.h),count:-1});return b};
138
- Gm=function(a){var b=new window.Headers,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new window.AbortController,e={Zd:!1,Rj:!1};b={U:Fm(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.Zd||(e.Zd=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.Rj=!0;d.abort()},a);b.U=b.U["finally"](function(){window.clearTimeout(f)})}return b};
139
- Fm=function(a,b,c,d){var e,f,g,k,l,m,n,p,q,t,u,y,C,D,B,E;return _.I(function(z){switch(z.a){case 1:return e=new rm,f=tm(e),_.F(z,2),_.x(z,window.fetch(a,c),4);case 4:g=z.f;k=Xk(g.headers);l={uri:g.url,data:null,headers:k,status:g.status,timeMs:0,responseStartMs:sm(f),request:b};if($k(g.status)){z.C(5);break}m=l;return _.x(z,g.arrayBuffer(),6);case 6:throw m.data=z.f,l.timeMs=sm(e),bl(l);case 5:n=g.headers.get(Aa);el(b,n);p=n?parseInt(n,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return y=
140
- g.body.getReader(),C=new zm(p,!b.disableMergedFragments),D=function(L,J){if(d.Zd)return null;J&&J.data&&(fl(b,J.data.byteLength,sm(f)),f.a=qm());return b.onFragment&&J?b.rateLimitBps?gl(b.rateLimitBps,sm(e),b.bytesLoaded).then(function(){return b.onFragment(J)}):b.onFragment(J):null},B=l,_.x(z,Cm(C,y,D,b.onProgress),12);q=g.body.getReader();t=new um(p);return _.x(z,wm(t,q,b),9);case 9:u=z.f;if(!b.rateLimitBps){z.C(10);break}return _.x(z,gl(b.rateLimitBps,sm(e),u.byteLength),10);case 10:l.data=u;z.C(8);
141
- break;case 12:B.data=z.f;case 8:if(d.Zd)throw Error("Request was aborted");l.timeMs=sm(e);return z["return"](al(l));case 2:E=_.H(z);if(d.Zd)throw new _.O(1,1,7001,{url:a,request:b});if(d.Rj)throw new _.O(1,1,1003,{url:a,request:b});if(E&&1001===E.code)throw E;_.Wh("Error while fetching data:",E);throw new _.O(1,1,1002,{url:a,error:E,request:b,status:-1},E);}})};
142
- Hm=function(a){var b=a.uris[a.uriIndex],c=new window.XMLHttpRequest,d=new rm,e=tm(d),f=0,g,k=new _.nm;c.open(a.method,b,!0);c.responseType="arraybuffer";c.timeout=a.timeout;c.withCredentials=a.allowCrossSiteCredentials;var l=!1,m=!1;c.onreadystatechange=function(p){p=p.target;p.readyState>=XMLHttpRequest.LOADING&&0===f&&(g=sm(e));p.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!l&&(p=p.getResponseHeader(Aa),el(a,p),l=!0)};c.onload=function(p){p=p.target;var q=(p.getAllResponseHeaders()||"").trim().split("\r\n"),
143
- t={};q=_.v(q);for(var u=q.next();!u.done;u=q.next())u=u.value.split(": "),t[u[0].toLowerCase()]=u.slice(1).join(": ");try{var y=sm(e);m||fl(a,p.response?p.response.length:0,y);var C=_.dl(t,p.response,p.status,b,p.responseURL,a,y,g);a.rateLimitBps?gl(a.rateLimitBps,sm(e),a.bytesLoaded).then(function(){k.resolve(C)}):k.resolve(C)}catch(D){k.reject(D)}};c.onerror=function(p){p=p.target;if(0>=p.status)k.reject(new _.O(1,1,1002,{url:b,request:a,status:p.status}));else{var q=p.getAllResponseHeaders(),t=
144
- {};if(q){q=_.v(q.trim().split("\r\n"));for(var u=q.next();!u.done;u=q.next())u=u.value.split(": "),t[u[0].toLowerCase()]=u.slice(1).join(": ")}p=_.dl(t,p.response,p.status,b,p.responseURL,a,sm(e),g);k.resolve(p)}};c.ontimeout=function(){k.reject(new _.O(1,1,1003,{url:b,request:a}))};c.onprogress=function(p){var q=sm(d);d.a=qm();if(100<q||p.lengthComputable&&p.loaded===p.total)fl(a,p.loaded-f,q),f=p.loaded,m=!0};for(var n in a.headers)c.setRequestHeader(n.toLowerCase(),a.headers[n]);c.send(a.body);
145
- return{U:k,request:a,abort:function(){c.abort();k.reject(new _.O(1,1,7001,{url:b,request:a}));return Promise.resolve()}}};Im=function(){};_.Km=function(a,b){b=void 0===b?!0:b;var c=_.Jm(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")};_.Lm=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};
146
- _.Mm=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};_.Nm=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};_.Om=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};
147
- _.Pm=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};_.Jm=function(a){a=_.R.fromCharCode(_.Qi(a));return btoa(a)};
148
- Rm=function(a){try{var b=a.uris[a.uriIndex],c=_.Qm(b);return{U:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{U:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
149
- _.Qm=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Wh("Bad data URI, failed to parse scheme"),new _.O(_.P,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.Wh("Bad data URI, failed to extract encoding and MIME type"),new _.O(_.P,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?_.Lm(a).buffer:_.R.sb(a).buffer,contentType:c}};
150
- _.Sm=function(a,b){this.U=a;this.B=b;this.a=!1};lm=function(a,b){a.U.then(function(){return b(!0)},function(){return b(!1)});return a};Um=function(a,b){_.Sm.call(this,new _.nm,function(){return Promise.resolve()});this.D=a;this.h=null;this.w=this.U;this.f=-1;this.j=this.l=this.o=null;this.A=b||null;Tm(this)};Vm=function(a,b,c){a.o=setTimeout(b,c)};
151
- Tm=function(a){a.h=a.D.then(function(e){a.j=e.request;e.request.uriIndex=e.request.currentAttempt%e.request.uris.length;if(0<e.request.currentAttempt){-1===a.f&&(a.f=Wm(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*Wm(e.request.fuzzFactor,.5));a.f*=Wm(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,k){a.l=k;Vm(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.O(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
152
- return e.plugin(e.request)});var b=0,c=0,d=0;return a.h.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.U}).then(function(e){a.w.resolve(e)})["catch"](function(e){if(e instanceof _.O){var f=b<d,g=7001!==e.code,k=b<c;if((1===e.severity||f)&&g&&k)return a.A&&a.A(e),Tm(a);g&&e.a(_.P);a.w.reject(e)}else a.w.reject(e)})};Wm=function(a,b){return null===a||void 0===a?b:a};
153
- _.Xm=function(){this.h=[];this.f=[];this.j=[];this.w=!1;this.o=new _.km;this.a={};this.headers=new Map;this.l=0;this.A=null;this.a.data=Rm;!window.fetch||!window.AbortController||_.lj(6)||_.mj()&&68<_.Lj().browserVersion.major?(this.a.http=Hm,this.a.https=Hm):(this.a.http=Gm,this.a.https=Gm)};Ym=function(a,b){a.A=b};Zm=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.R,_.x(e,a.fetch(b),2);d=e.f;return e["return"](c.bj(c.ga(d.data)))})};
154
- $l=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.x(e,Zm(a,b),2);c=e.f;if(!c)return e["return"](null);try{d=JSON.parse(c);if(null==d||typeof d!==_.$e)throw Error("Not an object");return e["return"](d)}catch(f){throw new _.ui("Failed to parse JSON response","json-failed");}})};
155
- _.bn=function(a,b,c){if(a.w)return new Um(Promise.reject(new _.O(1,1,7001,{url:b.uris[b.uriIndex],request:b})));a.l&&0<a.l&&(b.rateLimitBps=a.l);for(var d=[],e=_.v(a.h),f=e.next();!f.done;f=e.next())d.push(f.value);if(b.requestModifiers)for(e=_.v(b.requestModifiers),f=e.next();!f.done;f=e.next())d.push(f.value);b.requestModifiers=d;$m(a,b);b.responseModifiers=_.ph(a.j).concat(_.ph(b.responseModifiers||[]));f=d=new _.nm;try{e={};for(var g=_.v([{type:"public",modifiers:b.requestModifiers},{type:"internal",
156
- modifiers:a.f}]),k=g.next();!k.done;e={$e:e.$e},k=g.next()){e.$e=k.value;for(var l={},m=_.v(e.$e.modifiers),n=m.next();!n.done;l={Ze:l.Ze},n=m.next())l.Ze=n.value,f=f.then(function(t,u){return function(y){if(p.a)throw new _.O(_.P,1,7001,y?{url:y.uris[y.uriIndex],request:y}:null);return"internal"===t.$e.type?u.Ze(y,c)||y:u.Ze(y)||y}}(e,l))["catch"](function(t){if(t instanceof _.O)throw t;throw new _.O(_.P,1,1006,null,t);})}f=f.then(function(t){return{request:t,plugin:an(a,t)}});var p=new Um(f,a.A);
157
- g={};var q=_.v(b.responseModifiers);for(n=q.next();!n.done;g={Ye:g.Ye},n=q.next())g.Ye=n.value,p.then(function(t){return function(u){function y(){if(p.a)throw new _.O(_.P,1,7001,u?{url:u.request.uris[u.request.uriIndex],request:u.request}:null);}y();var C=t.Ye(u)||u;y();return C}}(g))["catch"](function(t){return function(u){if(u instanceof _.O&&u.data&&u.data.response){var y=t.Ye(u.data.response);if(y&&y.then)return y.then(function(){return Promise.reject(u)})}return Promise.reject(u)}}(g))["catch"](function(t){if(t instanceof
158
- _.O)throw t;throw new _.O(_.P,1,1007,null,t);});_.mm(a.o,p);d.resolve(b);return p}catch(t){return new Um(Promise.reject(t))}};jm=function(a,b,c,d){d=void 0===d?"HEAD":d;var e,f;return _.I(function(g){switch(g.a){case 1:if(!navigator.onLine)return g["return"](!1);if(!b){g.C(2);break}e=_.Zk(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.F(g,4);return _.x(g,a.fetch(e).U,6);case 6:_.G(g,2);break;case 4:if(f=_.H(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};
159
- $m=function(a,b){for(var c=_.v(a.headers),d=c.next();!d.done;d=c.next()){var e=_.v(d.value);d=e.next().value;e=e.next().value;b.headers[d]||(b.headers[d]=e)}};an=function(a,b){var c=b.uris[b.uriIndex],d=new _.pm(c,location.href);d=d?d.a.protocol.slice(0,-1):"";var e=a.a[d];if(!e)throw new _.O(_.P,1,1E3,{url:c});return function(f){return e(f)}};dn=function(){cn.forEach(function(a){return a()})};_.en=function(a){cn.push(a)};_.gn=function(a){fn&&performance.mark(a)};
160
- _.jn=function(a,b,c){fn&&(b=performance.measure(a,b,c),null!=b&&hn.info('Step: "'+a+'" took '+b.duration.toFixed(0)+" ms."))};mn=function(a,b){var c=kn;ln.set(a.toLowerCase().split(";")[0]+"-"+c,{priority:c,plugin:b})};_.qn=function(a,b){for(var c=_.v([nn,on,pn,kn]),d=c.next();!d.done;d=c.next())if(d=ln.get(a.toLowerCase().split(";")[0]+"-"+d.value)){var e=d.plugin(),f=e.isSupported(a,b);e.destroy();if(f)return d.plugin}return null};
161
- rn=function(a,b){var c=b||Ji,d=null,e=null,f=!1;return function(g){for(var k=[],l=0;l<arguments.length;++l)k[l]=arguments[l];if(f&&c(k,d))return e;f=!0;d=k;return e=a.apply(null,_.ph(k))}};_.sn=function(a){return null!=a};tn=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}throw new _.ui("No non-null, non-undefined value found");};
162
- un=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}};
163
- _.vn=function(a){this.j=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;_.R.startsWith(this.path,
164
- "/")||(this.path="/"+this.path);this.f=b.search;this.h=b.hash};_.wn=function(a){return a.scheme+"//"+(a.a+(a.port?":"+a.port:"")+a.path+a.h+a.f)};_.xn=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)},""):""};
165
- yn=function(a){var b={};a=a||"";a=a.substring(a.indexOf("?")+1);a=_.v(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};_.zn=function(a,b){if(a.startsWith("http://")||a.startsWith(_.ze))return a;var c=b;b.startsWith("//")&&(c=location.protocol+c);c=new URL(c);c.search="";return(new URL(a,c)).toString()};
166
- _.An=function(a){if(!a)return null;a=(new _.pm(a)).a.pathname.split("/");if(1>a.length)return null;a=a.pop().split(".");return 1>=a.length?null:a.pop().toLowerCase()};Dn=function(a,b){for(var c=_.v(Bn[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=_.v(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a===_.Cn?"":null};_.En=function(a,b){var c=a;b&&(c+=';codecs\x3d"'+b+'"');return c.replace(/\s/g,"")};_.Fn=function(a){return a.split(";")[0]};
167
- _.Gn=function(a){a=a.split(/\s*;\s*/);a.shift();return(a=a.find(function(b){return b.startsWith("codecs\x3d")}))?a.split("\x3d")[1].replace(/^"|"$/g,"").split(/\s*,\s*/).join(","):""};Hn=function(){};
168
- _.Ln=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.pj()&&(a=360);var b=_.Vk();b.maxAttempts=3;a={source:"",license:In,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,ads:{hls:{enable:!0,resolutionOffsetSec:35}},manifest:{attemptParameters:_.Vk(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0,timeline:{version:1,type:void 0}},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,
169
- bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,restrictions:Jn(a),useCmsd:!0},contentSteering:{enabled:!0,attemptParameters:_.Vk()},drm:null,cmcd:{enabled:!1,version:1,rtpMultiplier:5,deliveryMode:"headers"},enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:_.Ne,preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],preferSpatialAudio:!1,preferForcedSubtitles:!1,volume:null,startTime:null,loop:!1,lowLatencyMode:!1,
170
- suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,xmlParser:_.Kn,streaming:{attemptParameters:b,bufferingGoal:10,rebufferingGoal:2,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,relativeTextTimestamp:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.1,disableAudioTracks:!1,disableVideoTracks:!1,smallGapLimit:.5,jumpLargeGaps:!0,gapTolerance:.001,durationBackoff:1,maxSegmentToMediaOffset:1,forceNativeTS:!1,preferNativeHlsOnSafari:!0,safeSeekOffset:5,stallEnabled:!0,
171
- 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,ignoreManagedMediaSourceStreamingHints:!1},mediaSource:{codecSwitchingStrategy:_.Kf},restrictions:Jn(),tizen:{sideStreamText:_.lj(2)},safari:{enableHlsVideoTrackInfo:!1,enableMetadata:!1},mse:{sendPlaybackSessionIdHeader:!1},trickPlay:{speedUpMode:_.Ud,
172
- preferTrickPlayTracks:!0},playlist:{timeline:"basic",content:_.Ub,cropTimeline:!1},yospace:{enabled:!1},broadpeak:{adTracking:!1},cmsd:{enabled:!0},mediatailor:{enabled:!1,sessionConfig:{}},disableRestrictions:!1,chromecast:{useSenderAbrConfig:!1,useSenderStreamingConfig:!1}};if(_.lj()||_.mj())a.ads.hls.enable=!1;if(_.kj("Edge/")||_.lj())a.streaming.gapDetectionThreshold=.5;_.mj()&&(a.streaming.stallEnabled=!1);_.mj()&&79===_.Jj().major&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=
173
- 1,a.streaming.gapDetectionThreshold=.02);_.lj()&&(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};
174
- _.Nn=function(a,b){b=void 0===b?{}:b;if(!a)return _.Ln();for(var c=[_.Ln()],d=!1,e=_.v(a),f=e.next();!f.done;f=e.next())f=f.value,null!==f&&void 0!==f&&(_.N.ja(f)&&(f={source:f}),f.lowLatencyMode&&!d&&(c.push({streaming:{rebufferingGoal:.1,bufferLimitUpdateInterval:.01,attemptParameters:{maxAttempts:3,baseDelay:250,backoffFactor:1}},abr:{bandwidthUpgradeTarget:.6,bandwidthDowngradeTarget:.95},manifest:{lowLatencyMode:!0}}),d=!0),c.push(f),b.Ko||null==f.suggestedPresentationDelay||c.push({manifest:{suggestedPresentationDelay:f.suggestedPresentationDelay}}));
175
- c=_.N.ta.apply(null,c);_.N.ja(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.N.R(c.volume)&&(!_.N.za(c.volume)||_.N.isNaN(c.volume)))throw new _.O(_.P,7,7100,"config.volume is not a number");if(!_.N.R(c.preferredTextLanguage)&&!_.N.ja(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.O(_.P,7,7100,"config.preferredTextLanguage is not a string or an array");if(!_.N.R(c.preferredAudioLanguage)&&!_.N.ja(c.preferredAudioLanguage)&&!Array.isArray(c.preferredAudioLanguage))throw new _.O(_.P,
53
+ c):this.g.warn("Player Surface Element has no parent. Can not inject container. You have to manually add playerSurface.getContainer() to the DOM!");for(var f=[],g=0;g<c.classList.length;g++)f.push(c.classList[g]);f=_.v(f);for(g=f.next();!g.done;g=f.next())g=g.value,c.classList.remove(g),_.dj(e,g);e.style.cssText=c.style.cssText;c.removeAttribute(_.pg);f=_.v([_.hh,_.ve]);for(g=f.next();!g.done;g=f.next()){g=g.value;var k=c.getAttribute(g);k=parseInt(k,10);isNaN(k)||(e.style[g]=k+_.Pf);_.qj()||c.removeAttribute(g)}e.appendChild(c)}e&&
54
+ (this.a.set(e),hj(this.a,"clpp-container"),hj(this.a,this.o),hj(this.f,_.rd),hj(this.f,"clpp-video"));d.webOSStartupPatch&&Tj(this,c,e)}};Tj=function(a,b,c){b.hasAttribute(Sd)||(b.style.opacity="0",b.setAttribute(Sd,""),a.j.one(b,ke,function(){b.removeAttribute(Sd);b.style.opacity="1";c&&(c.style.opacity="1")}))};
55
+ Zj=function(a){var b=this;this.j=a;this.w=!!a.sideAdContainer;this.l=[];this.a=a.Kj;this.H=Vj(a);this.D=[];var c=Wj(this,this.H,this.j.cm);this.A=new Mi(c);this.f=null;this.B=!1;this.o=new Map;this.I=a.toggleVisible;this.g=new _.M("clpp.interstitial.MultiController");this.h=this.G=!1;this.J=a.ho||function(){};Xj(this).forEach(function(d){return Yj(b,d,!1)})};
56
+ dk=function(a,b){var c,d,e,f,g,k,l,m,n,p,q,t,u;return _.I(function(z){if(1==z.a){a.g.info("Crop ads by playout limit",b);c=ak(a);d=a.getCurrentItem();if(!c||!d||!d.Wa||null==c.V)return z["return"]();e=a.l.filter(function(B){return!B.primary});f=Math.max.apply(Math,_.uh(e.map(function(B){return B.Gb})));if(b>f)return a.g.info("Playout limit is greater than ad pod duration, ignored."),z["return"]();g=d.player.getPosition()+(d.Gb-d.duration);k=e.sort(function(B,D){return D.Gb-B.Gb})[0];l=c.V;m=b<=g;
57
+ if(!m)return z.C(2);n=f-g;c.V-=n;a.g.warn("Playout limit exceeded, immediately returning to primary at "+(c.V.toFixed(1)+" instead of ")+l.toFixed(1));return _.y(z,bk(a,c.id,_.pf),3)}if(2!=z.a)return k.Ja&&k.Ja(),p=d.Wa,a.a.trigger(new _.Q(_.Cc,{ad:p})),a.a.trigger(new _.Q(_.mc,{ad:p})),a.a.trigger(new _.Q(_.jc,{id:d.lc})),z["return"]();a.g.warn("Limiting playout of ads to",b);q=e.find(function(B){return b<=B.Gb&&b>=B.Gb-B.duration});if(!q)return a.g.warn("Cannot find ad hit by limit"),z["return"]();
58
+ t=b-(q.Gb-q.duration);q.Wa.h=t;u=f-b;c.V-=u;a.g.info("Last ad is now ",q.Wa.ob(),"with cropped duration",t,"and primary will resume at",c.V.toFixed(1),"instead of",l.toFixed(1));k.Ja&&(q.Ja=k.Ja);q.transition={Xf:{position:t,itemId:c.id,V:c.V}};ck(a,q);_.A(z)})};fk=function(a){var b;return _.I(function(c){if(1==c.a)return(b=a.f)?"loaded"===b.state?c.C(2):_.y(c,b.Rd,2):c["return"]();if(4!=c.a)return _.y(c,b.player.play(),4);b.state=_.Af;ek(b);_.A(c)})};
59
+ gk=function(a,b){a.g.info("Add items",b);a.l=a.l.concat(b.map(function(c){return Object.assign({},c,{state:"idle",disposers:[],preloadPromise:Promise.resolve(),Rd:Promise.resolve()})}))};ik=function(a){return _.I(function(b){return _.y(b,hk(a,a.l.map(function(c){return c.id})),0)})};
60
+ hk=function(a,b){var c,d,e,f,g;return _.I(function(k){a.g.info("Remove items",b);c=[];d=[];e=_.v(a.l);for(f=e.next();!f.done;f=e.next())g=f.value,b.includes(g.id)?d.push(g):c.push(g);a.l=c;return _.y(k,Promise.all(d.map(function(l){l.disposers.forEach(function(m){return m()});l.disposers=[];return jk(a,l.id)})),0)})};lk=function(a){var b;return _.I(function(c){b=a.l.filter(function(d){return!d.primary}).map(function(d){return d.id});kk(a);return _.y(c,hk(a,b),0)})};
61
+ mk=function(a){var b,c;_.I(function(d){b=a.getCurrentItem();c=b.next[0];if(!(b&&b.primary&&c))return d.C(0);kk(a);return _.y(d,a.play(c),0)})};kk=function(a){var b=ak(a);b&&(b.transition=void 0,b.next=[],nk(a))};
62
+ bk=function(a,b,c){var d,e,f,g,k,l;return _.I(function(m){switch(m.a){case 1:if(a.B)return a.g.warn("Cannot "+c+" item while busy (ID: "+b+")"),m["return"]();d=ok(a,b);if(!d)return a.g.warn("Item not found (ID: "+b+")"),m["return"]();a.g.info(c+" item (ID: "+b+")");a.B=!0;if(e=a.f)e.player.isPaused()||(a.w?e.primary?pk(a,e,qk):e.player.pause():a.a.isLive()||e.player.pause()),e.primary?pk(a,e,qk):pk(a,e,rk);(f=a.o.has(b))&&a.o["delete"](b);_.F(m,2,3);if(c===_.pf)return(g=e&&d.primary)?_.y(m,sk(a,d),
63
+ 10):f?_.y(m,tk(a,d),10):_.y(m,uk(a,d),10);if(f){a.g.error("Loading preloaded items is not supported");m.C(6);break}return _.y(m,vk(a,d),6);case 10:ek(d);case 6:ck(a,d);d.primary?pk(a,d,rk):pk(a,d,qk);d.Wa&&yk(a,d,d.Wa);if(d.Ja)d.player.one(_.pe,d.Ja);e&&zk(a,e);case 3:_.Jh(m);a.B=!1;Ak(a);Bk(a,d.next);_.Kh(m);break;case 2:k=_.H(m);a.g.error("Item failed to "+c+" (ID: "+b+")",k);if(d.primary)throw k;if(l=ak(a))return a.g.warn("Ad failed, resuming primary item"),_.y(m,sk(a,l),3);m.C(3)}})};
64
+ Ck=function(a,b,c){c=void 0===c?!1:c;if(!a.h&&!a.a.isLive()){var d=ak(a);d?(d.V=b,c&&(a.h=!0)):a.g.error("Failed to get primary item. Cannot configure resume position.")}};ak=function(a){return a.l.find(function(b){return!!b.primary})||null};ok=function(a,b){return a.l.find(function(c){return c.id===b})||null};
65
+ ck=function(a,b){var c=b.transition;if(c&&!c.Sj){if(c.Ja){var d=c.Ja,e=function(){a.g.info("Transition onEnded to (ID: "+d+")");a.play(d)};b.player.one(_.pe,e);b.disposers.push(function(){b.player.off(_.pe,e)})}c.Xf&&Dk(a,b,function(){var f=a.f.Wa;f&&(b.disposers.forEach(function(g){return g()}),b.disposers=[],a.a.trigger(new _.Q(_.Cc,{ad:f})),a.a.trigger(new _.Q(_.mc,{ad:f})),a.a.trigger(new _.Q(_.jc,{id:b.lc})))});c.Sj=!0}};
66
+ Dk=function(a,b,c){function d(){a.g.info("Stop timeupdate polling");b.player.off(_.Bg,f)}function e(){var l=b.player.getPosition();l>=g.position?(c(),a.g.info("Transition onPosition to (ID: "+g.itemId+"), playback position: "+(l.toFixed(3)+" s, transition point: ")+(g.position.toFixed(3)+" s. ")),a.play(g.itemId),l=!0):l=!1;l?k=null:k=requestAnimationFrame(e)}function f(){var l=b.player.getPosition();.5>=g.position-l&&(a.g.info("Start RAF polling"),d(),e())}var g=b.transition.Xf,k=null;g.V&&Ck(a,
67
+ g.V);a.g.info("Start timeupdate polling");b.player.on(_.Bg,f);b.disposers.push(function(){null!=k&&(a.g.info("Stop RAF polling"),cancelAnimationFrame(k),k=null)});b.disposers.push(d)};nk=function(a){a.f&&(a.f.disposers.forEach(function(b){return b()}),a.f.disposers=[],a.f.transition&&(a.f.transition.Sj=!1),ck(a,a.f))};Xj=function(a){return[a.a].concat(_.uh(a.A.a.map(function(b){return b.player})))};Ak=function(a){Promise.all(Array.from(a.o.keys()).map(function(b){return jk(a,b)}))};
68
+ Vj=function(a){if(a.sideAdContainer)a=a.sideAdContainer;else if(a=a.Kj.getSurface().getContainer(),!a)throw Error("Primary player does not have a container");return a};jk=function(a,b){var c;return _.I(function(d){if(1==d.a){c=a.o.get(b);if(!c)return d.C(0);a.g.info("Stop preloading item (ID: "+b+")");return c.player?_.y(d,Ek(a,c.player),3):d.C(3)}a.o["delete"](b);_.A(d)})};Fk=function(a){return _.I(function(b){if(1==b.a)return a.f?_.y(b,zk(a,a.f),3):b.C(0);Yj(a,a.a,!0);_.A(b)})};
69
+ zk=function(a,b){var c;return _.I(function(d){if(1==d.a){c=b.player;if(b.primary)return a.g.info("Pause primary playback"),a.w||Yj(a,c,!1),d.C(0);a.g.info("Stop previous playback (ID: "+b.id+")");b.disposers.forEach(function(e){return e()});b.disposers=[];b.player=null;b.videoEl=null;b.role=Gk;return b.kh?(a.g.info("Release player (ID: "+b.id+") after delay "+(b.kh+" ms.")),_.y(d,new Promise(function(e){setTimeout(function(){return _.I(function(f){if(1==f.a)return _.y(f,Ek(a,c),2);Yj(a,c,!1);a.a.trigger(new _.Q("ad-hls-released"));
70
+ e();_.A(f)})},b.kh)}),0)):_.y(d,Ek(a,c),5)}Yj(a,c,!1);return d.C(0)})};uk=function(a,b){return _.I(function(c){if(1==c.a)return _.y(c,vk(a,b),2);if(3!=c.a)return _.y(c,b.player.play(),3);b.state=_.Af;_.A(c)})};vk=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.y(d,Hk(a,!!b.primary),2);if(3!=d.a)return c=d.f,a.f=b,b.role=Ik,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),Yj(a,c,!0),b.state="loading",b.Rd=Jk(a,c,b.config,b.Se),_.y(d,b.Rd,3);b.state="loaded";_.A(d)})};
71
+ tk=function(a,b){var c;return _.I(function(d){switch(d.a){case 1:c=b.player;if(!c)return d["return"]();if(b.state!==Lf){d.C(2);break}a.g.info(Wb);_.F(d,3);return _.y(d,b.preloadPromise,5);case 5:_.G(d,2);break;case 3:_.H(d);case 2:a.f=b;b.role=Ik;Yj(a,c,!0);if(b.state===Kf)return _.y(d,c.play(),7);if(b.state!==If){d.C(7);break}return _.y(d,Jk(a,c,b.config,b.Se),7);case 7:b.state=_.Af,_.A(d)}})};
72
+ yk=function(a,b,c){function d(){a.a.trigger(new _.Q(_.Cc,{ad:c}));a.a.trigger(new _.Q(_.mc,{ad:c}));c.f===c.a&&a.a.trigger(new _.Q(_.jc,{id:b.lc}))}function e(){a.a.trigger(new _.Q(_.kc,{ad:c}))}function f(){a.a.trigger(new _.Q(_.zc,{ad:c}))}function g(){l.isEnded()||a.a.trigger(new _.Q(_.xc,{ad:c}))}function k(){var m=l.getPosition(),n=c.getDuration();c.setPosition(m);a.a.trigger(new _.Q(_.yc,{ad:c}));!c.j&&m>=n/4&&(c.j=!0,a.a.trigger(new _.Q(_.nc,{ad:c})));!c.l&&m>=n/2&&(c.l=!0,a.a.trigger(new _.Q(_.vc,
73
+ {ad:c})));!c.o&&m>=3*n/4&&(c.o=!0,a.a.trigger(new _.Q(_.Dc,{ad:c})))}var l=b.player;l.on(_.Bg,k);l.on(_.lf,g);l.on(_.Af,f);l.on(_.ed,e);l.one(_.pe,d);b.disposers.push(function(){l.off(_.Bg,k);l.off(_.lf,g);l.off(_.Af,f);l.off(_.ed,e);l.off(_.pe,d)});1===c.f&&a.a.trigger(new _.Q(_.ic,{id:b.lc}));c.videoEl=l.getSurface().getMedia();a.a.trigger(new _.Q(_.rc,{ad:c}));a.a.trigger(new _.Q(_.Bc,{ad:c}))};
74
+ sk=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();a.J();if(b.state!==Lf){c.C(2);break}a.g.info("Wait for seek to finish");_.F(c,3);return _.y(c,b.preloadPromise,5);case 5:_.G(c,2);break;case 3:_.H(c);case 2:a.h=!1;if(!b.V){c.C(6);break}return _.y(c,b.player.seek(b.V,!0),6);case 6:a.f=b;b.role=Ik;Yj(a,b.player,!0);b.state="loading";if(a.w){pk(a,b,rk);if(!b.player.isPaused()){c.C(9);break}return _.y(c,b.player.play(),9)}if(!a.a.isPaused()){c.C(9);break}return _.y(c,
75
+ b.player.play(),9);case 9:b.state=_.Af,_.A(c)}})};Ek=function(a,b){return _.I(function(c){return b===a.a?c.C(0):_.y(c,a.A.release(b),0)})};Hk=function(a,b){var c;return _.I(function(d){if(1==d.a)return b?d["return"](a.a):_.y(d,a.A.get(),2);c=d.f;if(!c)throw Error("No player available");return d["return"](c)})};
76
+ Bk=function(a,b){var c;_.I(function(d){if(0===b.length)return d["return"]();a.g.info("Preload items (IDs: "+b+")");c=a.l.filter(function(e){return b.includes(e.id)})||[];return _.y(d,Promise.all(c.map(function(e){return Kk(a,e)})),0)})};
77
+ Kk=function(a,b){var c,d,e,f,g;return _.I(function(k){switch(k.a){case 1:if(!b.primary){k.C(2);break}b.state=Lf;a.o.set(b.id,b);if(!b.V||a.w){k.C(3);break}c=b.player;a.g.info("Preparing to resume at",b.V);pk(a,b,qk);return _.y(k,c.seek(b.V,!0),3);case 3:return b.state=Kf,k["return"]();case 2:return d=b.id,_.y(k,Hk(a,!1),5);case 5:e=k.f;b.player=e;b.videoEl=e.getSurface().getMedia();b.role=Gk;b.state=Lf;_.F(k,6);a.o.set(d,b);b.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (ID: "+
78
+ (d+")")),b.config.autoplay=!1);if(f=a.a.getBandwidthEstimate())b.config.abr||(b.config.abr={}),b.config.abr.defaultBandwidthEstimate=f;b.preloadPromise=Jk(a,e,b.config,b.Se);return _.y(k,b.preloadPromise,8);case 8:b.state=Kf;_.G(k,0);break;case 6:g=_.H(k),7001===g.code?(a.g.info("Preload aborted (ID: "+d+")"),b.state=Gf):(a.g.warn("Preload failed (ID: "+d+")",g),b.state=If),_.A(k)}})};
79
+ Yj=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.debug(Hb+b),d.classList.add(vd),d.classList.remove("clpp-hide")):(a.g.debug(Va+b),d.classList.remove(vd),d.classList.add("clpp-hide")),a.I&&a.I(d,c))};
80
+ Wj=function(a,b,c){return Array.from({length:2}).map(function(d,e){var f=document.createElement(_.Tg);b.appendChild(f);var g=a.j.yb.create();f=new Uj(f);g.init(f,c);g.setSourceIndex(0);var k=f.getContainer();if(!k)throw Error("Failed to create player surface container element");k.classList.add("secondary");f.getMedia().classList.add("v-"+e);a.D.push(k);return g})};
81
+ pk=function(a,b,c){var d=b?b.lc||null:null;a.G?(a.a.setMuted(!0),Lk(a,!0)):(b.audio&&(c=b.audio),a.j.onAudioDecision&&(c=a.j.onAudioDecision(d)),c===rk?(a.a.setMuted(!1),Lk(a,!0)):c===qk?(a.a.setMuted(!0),Lk(a,!1)):a.g.warn("Audio decision not supported",c))};Lk=function(a,b){a.l.filter(function(c){return!c.primary&&c.player}).forEach(function(c){return c.player.setMuted(b)})};Mk=function(a){a.D.forEach(function(b){return a.H.removeChild(b)});a.D=[];Yj(a,a.a,!0)};
82
+ Jk=function(a,b,c,d){var e,f;return _.I(function(g){if(1==g.a)return _.y(g,b.release(),2);if(3!=g.a)return _.y(g,b.load(c),3);d&&d(b.getDuration());a.f&&a.f.player&&(e=a.f.player.getVolume(),f=null==e?1:e,b.setVolume(f),b.setMuted(a.f.player.isMuted()||!1));_.A(g)})};ek=function(a){if(a.Wa){var b=a.player.getDuration();a.maxDuration&&(b=Math.min(b,a.maxDuration));a.Wa.h=b}a.Zf&&a.Zf()};Nk=function(a){return"com.apple.hls.interstitial"===a||"com.apple.hls.overlay"===a};
83
+ Ok=function(a){if(!a)return!1;var b=!!a[bc];a=!!a[ac];return(b||a)&&!(b&&a)};Pk=function(a){return a&&a.ASSETS&&Array.isArray(a.ASSETS)?a.ASSETS.every(function(b){return typeof b.URI===_.ng&&typeof b.DURATION===_.h}):!1};Sk=function(a){return a.Eh&&!(a.once&&a.Tj)&&[Qk,Rk].includes(a.state)};Tk=function(a){a=a.customAttributes[$b];if(!a)return null;try{return JSON.parse(atob(a))}catch(b){return null}};
84
+ Uk=function(a,b){for(var c=0;c<a.length;c++){var d=a[c],e=c===a.length-1;e&&2===b||(e?(d.next=[Nf],d.transition={Ja:Nf}):(e=a[c+1].id,d.next=[e],d.transition={Ja:e}))}};
85
+ Vk=function(a){var b={};a=a.map(function(g){return g.customAttributes||{}});var c=new Set;a.forEach(function(g){Object.keys(g).forEach(function(k){c.add(k)})});for(var d={},e=_.v(c),f=e.next();!f.done;d={Sb:d.Sb,nf:d.nf},f=e.next())d.Sb=f.value,d.Sb===ec?(d.nf=new Set([]),a.forEach(function(g){return function(k){k[g.Sb]&&k[g.Sb].forEach(function(l){return g.nf.add(l)})}}(d)),b[d.Sb]=Array.from(d.nf)):d.Sb===gc&&(f=a.reduce(function(g){return function(k,l){return l[g.Sb]?k+l[g.Sb]:k}}(d),0),b[d.Sb]=
86
+ f);return b};Xk=function(a,b){if(0===a.length)return a;var c=new Map;1===b?a.forEach(function(g){var k=c.get(g.startTime)||[];k.push(g);c.set(g.startTime,k)}):c.set(0,a);for(var d=[],e=_.v(c.values()),f=e.next();!f.done;f=e.next())f=f.value,1===f.length?d.push(f[0]):(f=Wk(f),d.push(f));return d};
87
+ Wk=function(a){var b=[],c=0;a.forEach(function(f){var g=Math.max(0,f.endTime-f.startTime);c+=g;var k=f.customAttributes[ac];k&&b.push({type:"list",id:f.id,customAttributes:f.customAttributes,Sc:{URI:k,DURATION:0}});if(k=f.customAttributes[bc])g={type:"uri",id:f.id,customAttributes:f.customAttributes,Sc:{URI:k,DURATION:g}},(f=Tk(f))&&(g.Sc[$b]=f),b.push(g)});var d=Vk(a);d[cc]={entries:b,oa:[]};var e=a[0];a=a.map(function(f){return f.id}).join("+");return Object.assign({},e,{id:a,endTime:e.startTime+
88
+ c,customAttributes:d})};_.Zk=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.uh(Yk).concat()}};$k=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||_.uh(Yk).concat()};al=function(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b};
89
+ _.dl=function(a,b){_.N.ja(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.bl,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||
90
+ [],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:_.uh(Yk).concat(),requestStartTimestamp:null};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&
91
+ $k(c,b);return c};_.hl=function(a,b,c,d,e,f,g,k){a={uri:e||d,data:b,headers:a,status:c,timeMs:g,responseStartMs:k,request:f};if(el(c))return fl(a);throw gl(a);};el=function(a){return 200<=a&&299>=a&&202!==a};fl=function(a){return{uri:a.uri,data:a.data||new ArrayBuffer(0),headers:a.headers,status:a.status,fromCache:!!a.headers["x-shaka-from-cache"],timeMs:a.timeMs,responseStartMs:a.responseStartMs,request:a.request}};
92
+ gl=function(a){a=fl(a);try{var b=_.R.we(a.data,!0)}catch(d){b=null}_.$h("HTTP error text:",b);var c=a.request;return new _.O(0<=(c?c.fatalStatusCodes||[]:[]).indexOf(a.status)?_.P:1,1,1001,{url:a.uri,status:a.status,responseText:b,headers:a.headers,request:a.request,response:a})};il=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};
93
+ jl=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};kl=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()};ll=function(a){if(null!==a&&void 0!==a)return Number(a)};ml=function(a){return a.reduce(function(b,c){return b+c},0)};
94
+ wl=function(a){_.Ii.call(this);var b=this;this.j=_.N.ta({Jo:.5},a);this.A=this.h=!1;this.g=new _.M("clpp.interstitial.Player");this.l=a.player;this.l.setSeekInterceptor(function(c,d){if(d)return!0;if(b.h)return!1;var e=nl(b);if(e)return b.g.info("Seek ignored while binding interstitial",e.ca),!1;ol(b,c);e=pl(b);var f=ql(b,c),g=rl(b,c);if(e){if(f&&f!==e)return sl(b,f,c),!1;if(g&&g!==e)return tl(b,g,c),!1;if(c<e.startTime-b.j.resolutionOffsetSec)return ul(b,e),!0;if(c<e.startTime)return nk(b.a),b.g.info("Seek inside resolution area of",
95
+ e.ca),!0;if(c<=e.endTime)return b.g.info("Seek into the scheduled interstitial",e.ca),mk(b.a),!1;if(e.Yh)return b.g.info("Jump over a scheduled interstitial",e.ca),lk(b.a),e.state=Qk,!0;b.g.info("Jump over a scheduled interstitial triggering it",e.ca);mk(b.a);Ck(b.a,c,!0);return!1}return f?(sl(b,f,c),!1):g&&!g.hm?(tl(b,g,c),!1):!0});this.a=new Zj({cm:this.j.config,Kj:a.player,preloadMedia:!0,yb:a.yb,sideAdContainer:this.j.sideAdContainer,onAudioDecision:this.j.onAudioDecision,ho:function(){b.g.info("Resume primary content")}});
96
+ this.o=[];this.f=[];this.w=!1;vl(this,a.player)};xl=function(a){return(a=a.a.getCurrentItem())&&!a.primary?a.player:null};
97
+ zl=function(a){var b,c,d;_.I(function(e){var f=a.a;gk(f,[{id:Nf,primary:!0,config:f.a.getConfiguration(),next:[],Gb:0,duration:0,lc:null}]);var g=ak(f);if(!g)throw Error("Failed to find primary item");f.f=g;g.role=Ik;g.player=f.a;g.videoEl=g.player.getSurface().getMedia();Yj(f,g.player,!0);b=a.l;c=b.getConfiguration();d=!c.autoplay;a.w=yl(a,d,b.isLive(),!1);if(a.w){f=a.a;g=f.A;if(g=g.a[0]?g.a[0].player:null)f.w||Yj(f,f.a,!1),Yj(f,g,!0);return e.C(0)}return c.autoplay?_.y(e,fk(a.a),0):e.C(0)})};
98
+ ol=function(a,b){var c=a.l.getPosition();b>=c||a.f.filter(function(d){return 1===d.Td&&!d.once&&d.jj&&d.startTime>b}).forEach(function(d){d.Eh=!0})};pl=function(a){return a.f.find(function(b){return b.state===Al})||null};nl=function(a){return a.f.find(function(b){return b.state===Bl})||null};ul=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Unschedule interstitial",b.ca),_.y(c,lk(a.a),2);b.state=Qk;_.A(c)})};
99
+ sl=function(a,b,c){var d;_.I(function(e){switch(e.a){case 1:a.h=!0;_.F(e,2,3);d=pl(a);if(!d){e.C(5);break}return _.y(e,ul(a,d),5);case 5:return a.g.info("Seek into interstitial",b.ca),_.y(e,Cl(a,b),3);case 3:_.Jh(e);a.h=!1;_.Kh(e);break;case 2:return _.H(e),_.y(e,a.l.seek(c),3)}})};
100
+ tl=function(a,b,c){var d,e;_.I(function(f){switch(f.a){case 1:a.h=!0;_.F(f,2,3);d=pl(a);if(!d){f.C(5);break}return _.y(f,ul(a,d),5);case 5:return a.g.info("Play jumped interstitial",b.ca,"resume at",c.toFixed(2)),_.y(f,Cl(a,b,c),3);case 3:_.Jh(f);a.h=!1;_.Kh(f);break;case 2:return e=_.H(f),a.g.warn("Failed to play jumped interstitial",b.ca,e),b.hm=new Date,_.y(f,a.l.seek(c),3)}})};
101
+ yl=function(a,b,c,d){var e=Dl(a);a.g.info("Interstitial cues changed",e);var f=e;if(d){f=Si(a.f.map(function(q){return q.ca}),e.map(function(q){return q.id}));El(a,f.Oo);var g=new Set(f.tk);f=e.filter(function(q){return g.has(q.id)})}if(!Fl(a,f))return!1;var k=[],l=[],m=[];f.forEach(function(q){var t=q.customAttributes.CUE||[];t.includes(_.rb)?l.push(q):!d&&t.includes("PRE")?k.push(q):!c&&q.startTime<a.j.Jo?k.push(q):m.push(q)});e=Xk(k,0);f=Xk(l,2);var n=Xk(m,1),p=e.concat(f,n);Gl(a,p);0<e.length&&
102
+ Hl(a,e[0],b);n.forEach(function(q){return Il(a,q,1)});0<f.length&&Il(a,f[0],2);Jl(a,p);return 0<e.length};
103
+ Jl=function(a,b){var c,d,e,f;_.I(function(g){c=a.a.getCurrentItem();if(!c)return g["return"]();if(c.primary)return a.f.forEach(function(k){var l=b.find(function(n){return n.id===k.ca});if(l){var m=l.customAttributes[dc];null==k.Jc&&null!=m&&(a.g.info(Sb,l.id,"Playout limit",m),k.Jc=m,1===k.Td&&k.state===Al&&Kl(a,k))}}),g["return"]();d=b.find(function(k){return k.id===c.lc});if(!d)return g["return"]();e=d.customAttributes[dc];if(null==e)return g["return"]();f=a.f.find(function(k){return k.ca===d.id});
104
+ if(!f||null!=f.Jc)return g["return"]();a.g.info(Sb,d.id,"Playout limit",e);f.Jc=e;return _.y(g,dk(a.a,e),0)})};El=function(a,b){var c=new Set(b);a.f.forEach(function(d){c.has(d.ca)&&!Sk(d)&&a.g.warn("Removing an interstitial in active state",d)});a.f=a.f.filter(function(d){return!c.has(d.ca)})};Dl=function(a){return a.l.getTimelineCues().filter(function(b){return Nk(b.schemeIdUri)&&b.customAttributes})};
105
+ Cl=function(a,b,c){var d;return _.I(function(e){if(1==e.a)return _.y(e,Ll(a,b),2);d=e.f;if(!d)throw Error("Failed to bind");return _.y(e,Ml(a,b,1,!1,c),0)})};Kl=function(a,b){_.I(function(c){return 1==c.a?_.y(c,ul(a,b),2):_.y(c,Nl(a,b,a.l),0)})};
106
+ Il=function(a,b,c){var d=b.customAttributes[bc],e=b.customAttributes[ac],f=b.customAttributes[cc],g=b.customAttributes[gc],k=b.customAttributes[dc],l=b.customAttributes[ec]||[];b.customAttributes[hc]||(b.customAttributes[hc]=null==g||0<g?"RANGE":"POINT");var m=b.customAttributes["X-YOSPACE-AUDIO-PRIORITY"];m="CONTENT"===m?rk:"AD"===m?qk:void 0;b={ca:b.id,startTime:b.startTime,endTime:b.endTime,state:Qk,Nh:e,Oh:d,Ce:f,oa:null,V:null==g?null:Math.max(0,b.startTime+g),So:g,Jc:k,Td:c,$m:"POINT"===b.customAttributes[hc],
107
+ Dk:!l.includes("SKIP"),Yh:!l.includes("JUMP"),Wj:Tk(b),jj:null!=g&&0>g,once:(b.customAttributes.CUE||[]).includes("ONCE"),Tj:!1,Eh:!0,customAttributes:b.customAttributes,audio:m};a.f.push(b);return b};
108
+ Hl=function(a,b,c){var d,e,f,g,k;_.I(function(l){switch(l.a){case 1:return d=Il(a,b,0),_.y(l,Ll(a,d),2);case 2:e=l.f;f=d.oa?d.oa.length:0;if(e&&0<f){_.F(l,8);a.g.info("Player preroll interstitial "+d.ca);var m=Ml(a,d,0,c);return _.y(l,m,10)}e?a.g.warn("Preroll interstitial has no assets, skipping"):a.g.error("Preroll interstitial failed, skipping");return _.y(l,Fk(a.a),5);case 5:if(c){l.C(0);break}return _.y(l,fk(a.a),0);case 10:_.G(l,0);break;case 8:g=_.H(l);a.g.error("Preroll interstitial failed.",
109
+ g);if(k=ak(a.a))return _.y(l,a.a.play(k.id),0);l.C(0)}})};Ol=function(a){a.o.forEach(function(b){return b()});a.o=[]};
110
+ vl=function(a,b){function c(){a.A=!1}function d(){a.A=!0}function e(){yl(a,!1,!0,!0)}function f(){var g,k,l,m,n;return _.I(function(p){switch(p.a){case 1:if(a.h||a.A)return p["return"]();g=b.getPosition();k=Pl(a,g);if(!k){p.C(2);break}return _.y(p,Ll(a,k),3);case 3:(l=p.f)&&Nl(a,k,b);case 2:m=Ql(a);if(!(m&&m.state===Qk&&b.getDuration()-g<a.j.resolutionOffsetSec)){p.C(0);break}return _.y(p,Ll(a,m),5);case 5:if(n=p.f)if(m.oa&&0!==m.oa.length){var q=a.a.getCurrentItem();if(q){var t=Rl(a,m,2);if(0!==
111
+ t.length){var u=t[0].id;q.next=[u];q.transition={Ja:u};a.g.info("Schedule postroll interstitial "+m.ca);Sl(a,m,t)}}}else a.g.warn("Postroll interstitial has no assets, ignoring.");_.A(p)}})}b.on(_.Bg,f);a.o.push(function(){b.off(_.Bg,f)});b.on(_.Ag,e);a.o.push(function(){b.off(_.Ag,e)});b.on(_.ic,d);a.o.push(function(){b.off(_.ic,d)});b.on(_.jc,c);a.o.push(function(){b.off(_.jc,c)})};Ql=function(a){return a.f.find(function(b){return 2===b.Td})||null};
112
+ Gl=function(a,b){for(var c=b.sort(function(m,n){return m.startTime-n.startTime}),d=a.j.resolutionOffsetSec,e=Infinity,f=[],g=0;g<c.length-1;g++){var k=c[g],l=c[g+1];l&&(e=Math.min(e,l.startTime-k.endTime));l&&l.startTime<=k.endTime&&f.push("Interstitials "+k.id+" and "+l.id+" overlap.")}e<d&&(c=e/2,a.j.resolutionOffsetSec=c,a.g.info("Interstitials are closer than configured resolutionOffsetSec ("+(d+" s) auto-reconfiguring to ")+(c+" s.")));0<f.length&&a.g.warn("Unsupported format of interstitials, playback may not behave correctly. "+
113
+ f.join(" "))};Fl=function(a,b){var c=[];b.forEach(function(d){Ok(d.customAttributes)||c.push("Interstitial cue "+d.id+" is invalid it must contain exactly one of X-ASSET-LIST or X-ASSET-URI.")});0<c.length&&a.g.error("Invalid interstitials, all interstitials will be skipped. "+c.join(" "));return 0===c.length};Pl=function(a,b){return a.f.find(function(c){var d=c.startTime-b;return 1===c.Td&&Sk(c)&&0<d&&d<=a.j.resolutionOffsetSec})||null};
114
+ ql=function(a,b){return a.f.find(function(c){return Sk(c)&&!c.$m&&1===c.Td&&b>c.startTime&&b<c.endTime})||null};rl=function(a,b){var c=a.l.getPosition();return a.f.filter(function(d){return 1===d.Td&&!d.Yh}).sort(function(d,e){return e.startTime-d.startTime}).find(function(d){return d.startTime>c&&d.startTime<b})||null};
115
+ Ll=function(a,b){return _.I(function(c){if(1==c.a){b.state=Bl;if(b.Ce)return _.y(c,Tl(a,b,b.Ce),3);if(!b.Nh){if(b.Oh){b.oa=[{URI:b.Oh,DURATION:b.endTime-b.startTime}];var d={URI:b.oa[0].URI,DURATION:b.oa[0].DURATION};b.Wj&&(d[$b]=b.Wj);Ul(a,new _.Q(qc,{id:b.ca,detail:{ASSETS:[d]}}));b.state=Vl}else b.state=Wl;return c.C(3)}return _.y(c,Xl(a,b,b.Nh),3)}return c["return"](b.state===Vl)})};
116
+ Tl=function(a,b,c){var d,e,f,g,k,l;return _.I(function(m){if(1==m.a)return _.F(m,2),d=[],e=c.entries,f=e.map(function(n){var p;return _.I(function(q){if(1==q.a)return"list"!==n.type?q.C(2):_.y(q,Yl(a,n.Sc.URI),3);if(2!=q.a)return p=q.f,q["return"](p.ASSETS.map(function(t){return{id:n.id,customAttributes:n.customAttributes,Sc:t}}));if("uri"===n.type)return q["return"]([{id:n.id,customAttributes:n.customAttributes,Sc:n.Sc}]);throw new _.zi("Invalid group asset entry type");})}),_.y(m,Promise.all(f),
117
+ 4);if(2!=m.a)return g=m.f,g.forEach(function(n){return d.push.apply(d,_.uh(n))}),b.Ce={entries:e,oa:d},k={ASSETS:d.map(function(n){return n.Sc})},Zl(a,b,k),_.G(m,0);l=_.H(m);a.g.error("Failed to bind grouped asset list for "+b.ca,l);b.state=Wl;_.A(m)})};
118
+ Xl=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return _.F(f,2),a.g.info("Load X-ASSET-LIST for "+b.ca),Ul(a,new _.Q(oc)),_.y(f,Yl(a,c),4);if(2!=f.a)return d=f.f,Zl(a,b,d),_.G(f,0);e=_.H(f);a.g.error("Failed to load X-ASSET-LIST",e);b.state=Wl;_.A(f)})};
119
+ Zl=function(a,b,c){b.oa=c.ASSETS;b.oa&&0!==b.oa.length||a.g.info("Interstitial "+b.ca+" has no assets, will be smoothly skipped");if(null==b.V){var d=ml(b.oa.map(function(e){return e.DURATION}));b.V=b.startTime+(null==b.Jc?d:Math.min(b.Jc,d))}b.state=Vl;Ul(a,new _.Q(pc));Ul(a,new _.Q(qc,{id:b.ca,detail:c}))};$l=function(a,b){var c=a.j.Ho;if(c){var d=new URL(b);d.searchParams.set("_HLS_primary_id",c);return d.toString()}return b};
120
+ Ml=function(a,b,c,d,e){var f,g,k;return _.I(function(l){if(0===b.oa.length)return l["return"]();f=a.a.getCurrentItem();if(!f)return l["return"]();g=Rl(a,b,c);if(0===g.length)return l["return"]();Sl(a,b,g);(k=0===c&&a.l.isLive())||(null!=e?Ck(a.a,e,!0):null!=b.V&&Ck(a.a,b.V));return d?_.y(l,a.a.load(g[0].id),0):_.y(l,a.a.play(g[0].id),0)})};
121
+ Nl=function(a,b,c){if(b.oa)if(0===b.oa.length){var d=function(){c.isLive()?a.g.info("Skipping empty live interstitial "+b.ca):null!=b.V&&0!==b.So?c.seek(b.V):a.g.info("Empty VOD interstitial "+b.ca+", continuing to next segment")};c.one(_.yg,d);a.o.push(function(){c.off(_.yg,d)});a.g.info(Eb+b.ca+" to be skipped")}else{var e=a.a.getCurrentItem();if(e){var f=Rl(a,b,1);if(0!==f.length){var g=f[0].id;null!=b.V&&Ck(a.a,b.V);e.next=[g];e.transition={Xf:{position:b.startTime,itemId:g,V:b.V}};a.g.info(Eb+
122
+ b.ca+" for "+(b.startTime+" s"));Sl(a,b,f)}}}};Sl=function(a,b,c){gk(a.a,c);a=a.a;nk(a);a.f&&(a.f.Wa&&yk(a,a.f,a.f.Wa),Ak(a),Bk(a,a.f.next));b.state=Al};
123
+ Rl=function(a,b,c){var d=0,e=!!b.Ce,f=b.oa.map(function(m,n){var p=b.ca;e&&(p=b.Ce.oa[n].id);d+=m.DURATION;return{id:p+"-"+n,config:{source:{url:$l(a,m.URI),type:_.am}},duration:m.DURATION,Gb:d,lc:p,next:[],Wa:new Li(c,n+1,b.oa.length,m.DURATION,p,b.Dk,b.customAttributes||null),audio:b.audio}});Uk(f,c);f.forEach(function(m){m.Zf=function(){var n=m.Wa;a.g.info("Playing ad "+(n.f+"/"+n.a)+" of interstitial "+m.lc)};m.Se=function(){Ul(a,new _.Q(_.tc,{ad:m.Wa}))}});if(null!=b.Jc&&(f=bm(a,b,f),0===f.length))return[];
124
+ var g=f[0].Zf;f[0].Zf=function(){b.state=cm;b.Tj=!0;b.jj&&(b.Eh=!1);a.g.info("Playing interstitial "+b.ca+" with "+(b.oa.length+" assets and will resume primary content ")+((b.V?"at "+b.V.toFixed(1)+" s":"after interstitial ended")+"."));g()};var k=f[0].Se;f[0].Se=function(m){null==b.V&&(b.V=b.startTime+m,Ck(a.a,b.V),a.g.info("Primary content will resume at",b.V.toFixed(1),"s"));k(m)};var l=f[f.length-1];l.Ja=function(){b.state=Rk;hk(a.a,f.map(function(m){return m.id}));2===c&&Fk(a.a)};l.kh=a.j.adReleaseDelayMs;
125
+ return f};bm=function(a,b,c){var d=b.Jc;a.g.info("Playout limit for "+b.ca+" is "+(d+" s"));b=c[c.length-1].Gb;if(d>=b)return a.g.info("Playout limit ("+d+") islarger or equal to total duration: ("+(b+").")),c;if(0>=d)return a.g.info("Discarding all ads."),[];var e=c.filter(function(f){return f.Gb-f.duration<=d});e.forEach(function(f){f.Wa.a=e.length});a=e[e.length-1];c=d-(a.Gb-a.duration);.1>Math.abs(c-a.duration)?a.transition.Ja=Nf:a.transition.Xf={position:c,itemId:Nf,V:null};a.maxDuration=c;return e};
126
+ Ul=function(a,b){a.l.trigger(b)};Yl=function(a,b){var c,d,e,f,g,k;return _.I(function(l){if(1==l.a){c=a.a.Jf();if(!c)throw Error("No player found");d=c.getNetworkEngine();e=_.dl($l(a,b));return _.y(l,dm(d,e),2)}f=l.f;if(null===f)return a.g.warn("X-ASSET-LIST "+b+" returned no content"),l["return"]({ASSETS:[]});g=Pk(f);if(!g)throw new _.zi("Invalid X-ASSET-LIST list response");k=f;return l["return"](k)})};em=function(){this.a=null};
127
+ fm=function(){try{var a=URL.createObjectURL(new Blob);URL.revokeObjectURL(a);return a.slice(a.lastIndexOf("/")+1)}catch(c){var b=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(d){var e=(b+16*Math.random())%16|0;b=Math.floor(b/16);return("x"===d?e:e&3|8).toString(16)})}};hm=function(a){this.m=a;this.j=this.m.getNetworkEngine();this.a=new _.Bi;this.h=null;this.f=!0;gm(this)};
128
+ gm=function(a){a.a.on(window,"offline",function(){im(a,!1)});a.a.on(window,"online",function(){a.f||jm(a)});a.a.on(a.m,ig,function(){return km(a)});a.a.on(a.m,"suspend",function(){return km(a)});a.a.on(a.m,_.ah,function(){return km(a)});a.a.on(a.m,_.Af,function(){a.f||jm(a)});a.a.on(a.m,_.Of,function(){a.f||jm(a)});a.a.on(a.m,_.kg,function(){switch(a.m.getState()){case 2:km(a);break;default:km(a)}})};jm=function(a){a.m.getConfiguration().connectivityCheck&&(lm(a),a.h=(new _.lj(function(){return mm(a)})).ia(5))};
129
+ km=function(a){a.f&&jm(a)};lm=function(a){a.h&&(a.h.stop(),a.h=null)};mm=function(a){var b,c;return _.I(function(d){if(1==d.a)return(b=a.m.getConfiguration().connectivityCheck)&&a.m?_.y(d,nm(a.j,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;im(a,c);_.A(d)})};im=function(a,b){lm(a);a.f!==b&&(a.f=b,a.m&&a.m.getConfiguration().connectivityCheck&&a.m.trigger(new _.Q(gf,{online:a.f})))};_.om=function(){this.a=[]};
130
+ _.qm=function(a,b){a.a.push(pm(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.rm=function(){var a,b,c=new Promise(function(e,f){a=e;b=f}),d=Object.assign(c,{done:!1,mh:!1,Lo:!1,value:null,error:null,resolve:function(e){d.mh=!0;d.done=!0;d.value=e;a(e)},reject:function(e){d.Lo=!0;d.done=!0;d.error=e;b(e)}});return d};
131
+ _.tm=function(a,b){var c=[a];var d=sm.apply(_.tm,_.uh(c));if(!d||d.protocol.includes("."))c=b?[a,b]:[a,location.href],c=(d=sm.apply(_.tm,_.uh(c)))?c:null;if(!c)throw new _.O(_.P,1,1011,{message:"The provided URL is invalid.",url:a,base:b});d=_.v(c);c=d.next().value;d=d.next().value;this.a=new URL(c,d);this.f=a.startsWith("//")};sm=function(a,b){try{return new URL(a,b)}catch(c){return null}};vm=function(){this.a=um()};wm=function(a){return um()-a.a};xm=function(a){var b=new vm;b.a=a.a;return b};
132
+ um=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};ym=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.h=new vm};Am=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(zm(a,d),jl(c,d.byteLength,wm(a.h)),a.h.a=um());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 Am(a,b,c)})})};
133
+ zm=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};Bm=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.h=b;this.f=0};Cm=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.h),c));a.a.set(d)}a.a.set(b,a.f);a.f+=b.byteLength};
134
+ Dm=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.j=new Bm(a);this.length=a;this.A=b;this.f=this.a=this.h=0;this.l=null;this.o=-1;this.w=new vm};
135
+ Gm=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,wm(a.w)),a.w.a=um());if(f)return f=Em(a),(f=c(!0,f))?f.then(function(){return a.j.a.buffer}):Promise.resolve(a.j.a.buffer);var g=Promise.resolve();if(null!=e){Cm(a.j,e);a.a=a.h;a.f=a.j.f;a.l=new DataView(a.j.a.buffer,0,a.j.f);e=Fm(a);for(f=[];e;)f.push(e),e=Fm(a);if(!a.A)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 k=f[f.length-1],
136
+ l=k.end-e.start;e={start:e.start,end:k.end,length:l,data:new DataView(a.j.a.buffer,e.start,l),count:f.length}}(f=c(!1,e))&&(g=f)}}return g.then(function(){return Gm(a,b,c,d)})})};Fm=function(a){if(0<=a.o&&a.f<a.o)return null;for(var b=Hm(a);null!==b;){if(b.name===_.Pe){var c={start:a.h,end:b.end,length:b.end-a.h,data:new DataView(a.j.a.buffer,a.h,b.end-a.h),count:1};a.h=b.end;return c}b=Hm(a)}return null};
137
+ Hm=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=Im(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=Im(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.l.getUint32(a.a,!1);var f=a.l.getUint32(a.a+4,!1)}catch(g){throw new _.O(_.P,3,3E3);}if(2097151<e)throw new _.O(_.P,3,3E3);a.a+=8;c=e*Math.pow(2,32)+f}c=b+c;a.o=c;return a.f>=c?(a.a=c,{name:d,start:b,end:c}):null};
138
+ Im=function(a){var b=a.l.getUint32(a.a,!1);a.a+=4;return b};Em=function(a){var b=null;a.h!==a.f&&(b={start:a.h,end:a.f,length:a.f-a.h,data:new DataView(a.j.a.buffer,a.h,a.f-a.h),count:-1});return b};
139
+ Km=function(a){var b=new window.Headers,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new window.AbortController,e={je:!1,Zj:!1};b={U:Jm(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.je||(e.je=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.Zj=!0;d.abort()},a);b.U=b.U["finally"](function(){window.clearTimeout(f)})}return b};
140
+ Jm=function(a,b,c,d){var e,f,g,k,l,m,n,p,q,t,u,z,B,D,C,E;return _.I(function(x){switch(x.a){case 1:return e=new vm,f=xm(e),_.F(x,2),_.y(x,window.fetch(a,c),4);case 4:g=x.f;k=al(g.headers);l={uri:g.url,data:null,headers:k,status:g.status,timeMs:0,responseStartMs:wm(f),request:b};if(el(g.status)||428===g.status){x.C(5);break}m=l;return _.y(x,g.arrayBuffer(),6);case 6:throw m.data=x.f,l.timeMs=wm(e),gl(l);case 5:n=g.headers.get(Aa);il(b,n);p=n?parseInt(n,10):0;if(b.onFragment&&!b.disableFragmentSupport&&
141
+ 2===b.type)return z=g.body.getReader(),B=new Dm(p,!b.disableMergedFragments),D=function(J,L){if(d.je)return null;L&&L.data&&(jl(b,L.data.byteLength,wm(f)),f.a=um());return b.onFragment&&L?b.rateLimitBps?kl(b.rateLimitBps,wm(e),b.bytesLoaded).then(function(){return b.onFragment(L)}):b.onFragment(L):null},C=l,_.y(x,Gm(B,z,D,b.onProgress),12);q=g.body.getReader();t=new ym(p);return _.y(x,Am(t,q,b),9);case 9:u=x.f;if(!b.rateLimitBps){x.C(10);break}return _.y(x,kl(b.rateLimitBps,wm(e),u.byteLength),10);
142
+ case 10:l.data=u;x.C(8);break;case 12:C.data=x.f;case 8:if(d.je)throw Error("Request was aborted");l.timeMs=wm(e);return x["return"](fl(l));case 2:E=_.H(x);if(d.je)throw new _.O(1,1,7001,{url:a,request:b});if(d.Zj)throw new _.O(1,1,1003,{url:a,request:b});if(E&&1001===E.code)throw E;_.ai("Error while fetching data:",E);throw new _.O(1,1,1002,{url:a,error:E,request:b,status:-1},E);}})};
143
+ Lm=function(a){var b=a.uris[a.uriIndex],c=new window.XMLHttpRequest,d=new vm,e=xm(d),f=0,g,k=new _.rm;c.open(a.method,b,!0);c.responseType="arraybuffer";c.timeout=a.timeout;c.withCredentials=a.allowCrossSiteCredentials;var l=!1,m=!1;c.onreadystatechange=function(p){p=p.target;p.readyState>=XMLHttpRequest.LOADING&&0===f&&(g=wm(e));p.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!l&&(p=p.getResponseHeader(Aa),il(a,p),l=!0)};c.onload=function(p){p=p.target;var q=(p.getAllResponseHeaders()||"").trim().split("\r\n"),
144
+ t={};q=_.v(q);for(var u=q.next();!u.done;u=q.next())u=u.value.split(": "),t[u[0].toLowerCase()]=u.slice(1).join(": ");try{var z=wm(e);m||jl(a,p.response?p.response.length:0,z);var B=_.hl(t,p.response,p.status,b,p.responseURL,a,z,g);a.rateLimitBps?kl(a.rateLimitBps,wm(e),a.bytesLoaded).then(function(){k.resolve(B)}):k.resolve(B)}catch(D){k.reject(D)}};c.onerror=function(p){p=p.target;if(0>=p.status)k.reject(new _.O(1,1,1002,{url:b,request:a,status:p.status}));else{var q=p.getAllResponseHeaders(),t=
145
+ {};if(q){q=_.v(q.trim().split("\r\n"));for(var u=q.next();!u.done;u=q.next())u=u.value.split(": "),t[u[0].toLowerCase()]=u.slice(1).join(": ")}p=_.hl(t,p.response,p.status,b,p.responseURL,a,wm(e),g);k.resolve(p)}};c.ontimeout=function(){k.reject(new _.O(1,1,1003,{url:b,request:a}))};c.onprogress=function(p){var q=wm(d);d.a=um();if(100<q||p.lengthComputable&&p.loaded===p.total)jl(a,p.loaded-f,q),f=p.loaded,m=!0};for(var n in a.headers)c.setRequestHeader(n.toLowerCase(),a.headers[n]);c.send(a.body);
146
+ return{U:k,request:a,abort:function(){c.abort();k.reject(new _.O(1,1,7001,{url:b,request:a}));return Promise.resolve()}}};Mm=function(){};_.Om=function(a,b){b=void 0===b?!0:b;var c=_.Nm(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")};_.Pm=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};
147
+ _.Qm=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};_.Rm=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};_.Sm=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};
148
+ _.Tm=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};_.Nm=function(a){a=_.R.fromCharCode(_.Vi(a));return btoa(a)};
149
+ Vm=function(a){try{var b=a.uris[a.uriIndex],c=_.Um(b);return{U:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{U:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
150
+ _.Um=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.ai("Bad data URI, failed to parse scheme"),new _.O(_.P,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.ai("Bad data URI, failed to extract encoding and MIME type"),new _.O(_.P,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?_.Pm(a).buffer:_.R.ub(a).buffer,contentType:c}};
151
+ _.Wm=function(a,b){this.U=a;this.B=b;this.a=!1};pm=function(a,b){a.U.then(function(){return b(!0)},function(){return b(!1)});return a};Ym=function(a,b){_.Wm.call(this,new _.rm,function(){return Promise.resolve()});this.D=a;this.h=null;this.w=this.U;this.f=-1;this.j=this.l=this.o=null;this.A=b||null;Xm(this)};Zm=function(a,b,c){a.o=setTimeout(b,c)};
152
+ Xm=function(a){a.h=a.D.then(function(e){a.j=e.request;e.request.uriIndex=e.request.currentAttempt%e.request.uris.length;if(0<e.request.currentAttempt){-1===a.f&&(a.f=$m(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*$m(e.request.fuzzFactor,.5));a.f*=$m(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,k){a.l=k;Zm(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.O(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
153
+ return e.plugin(e.request)});var b=0,c=0,d=0;return a.h.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.U}).then(function(e){a.w.resolve(e)})["catch"](function(e){if(e instanceof _.O){var f=b<d,g=7001!==e.code,k=b<c;if((1===e.severity||f)&&g&&k)return a.A&&a.A(e),Xm(a);g&&e.a(_.P);a.w.reject(e)}else a.w.reject(e)})};$m=function(a,b){return null===a||void 0===a?b:a};
154
+ _.an=function(){this.h=[];this.f=[];this.j=[];this.w=!1;this.o=new _.om;this.a={};this.headers=new Map;this.l=0;this.A=null;this.a.data=Vm;!window.fetch||!window.AbortController||_.qj(6)||_.rj()&&68<_.Qj().browserVersion.major?(this.a.http=Lm,this.a.https=Lm):(this.a.http=Km,this.a.https=Km)};bn=function(a,b){a.A=b};cn=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.R,_.y(e,a.fetch(b),2);d=e.f;return e["return"](c.kj(c.ea(d.data)))})};
155
+ dm=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.y(e,cn(a,b),2);c=e.f;if(!c)return e["return"](null);try{d=JSON.parse(c);if(null==d||typeof d!==_.$e)throw Error("Not an object");return e["return"](d)}catch(f){throw new _.zi("Failed to parse JSON response","json-failed");}})};
156
+ _.fn=function(a,b,c){if(a.w)return new Ym(Promise.reject(new _.O(1,1,7001,{url:b.uris[b.uriIndex],request:b})));a.l&&0<a.l&&(b.rateLimitBps=a.l);for(var d=[],e=_.v(a.h),f=e.next();!f.done;f=e.next())d.push(f.value);if(b.requestModifiers)for(e=_.v(b.requestModifiers),f=e.next();!f.done;f=e.next())d.push(f.value);b.requestModifiers=d;dn(a,b);b.responseModifiers=_.uh(a.j).concat(_.uh(b.responseModifiers||[]));f=d=new _.rm;try{e={};for(var g=_.v([{type:"public",modifiers:b.requestModifiers},{type:"internal",
157
+ modifiers:a.f}]),k=g.next();!k.done;e={lf:e.lf},k=g.next()){e.lf=k.value;for(var l={},m=_.v(e.lf.modifiers),n=m.next();!n.done;l={kf:l.kf},n=m.next())l.kf=n.value,f=f.then(function(t,u){return function(z){if(p.a)throw new _.O(_.P,1,7001,z?{url:z.uris[z.uriIndex],request:z}:null);return"internal"===t.lf.type?u.kf(z,c)||z:u.kf(z)||z}}(e,l))["catch"](function(t){if(t instanceof _.O)throw t;throw new _.O(_.P,1,1006,null,t);})}f=f.then(function(t){return{request:t,plugin:en(a,t)}});var p=new Ym(f,a.A);
158
+ g={};var q=_.v(b.responseModifiers);for(n=q.next();!n.done;g={jf:g.jf},n=q.next())g.jf=n.value,p.then(function(t){return function(u){function z(){if(p.a)throw new _.O(_.P,1,7001,u?{url:u.request.uris[u.request.uriIndex],request:u.request}:null);}z();var B=t.jf(u)||u;z();return B}}(g))["catch"](function(t){return function(u){if(u instanceof _.O&&u.data&&u.data.response){var z=t.jf(u.data.response);if(z&&z.then)return z.then(function(){return Promise.reject(u)})}return Promise.reject(u)}}(g))["catch"](function(t){if(t instanceof
159
+ _.O)throw t;throw new _.O(_.P,1,1007,null,t);});_.qm(a.o,p);d.resolve(b);return p}catch(t){return new Ym(Promise.reject(t))}};nm=function(a,b,c,d){d=void 0===d?"HEAD":d;var e,f;return _.I(function(g){switch(g.a){case 1:if(!navigator.onLine)return g["return"](!1);if(!b){g.C(2);break}e=_.dl(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.F(g,4);return _.y(g,a.fetch(e).U,6);case 6:_.G(g,2);break;case 4:if(f=_.H(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};
160
+ dn=function(a,b){for(var c=_.v(a.headers),d=c.next();!d.done;d=c.next()){var e=_.v(d.value);d=e.next().value;e=e.next().value;b.headers[d]||(b.headers[d]=e)}};en=function(a,b){var c=b.uris[b.uriIndex],d=new _.tm(c,location.href);d=d?d.a.protocol.slice(0,-1):"";var e=a.a[d];if(!e)throw new _.O(_.P,1,1E3,{url:c});return function(f){return e(f)}};hn=function(){gn.forEach(function(a){return a()})};_.jn=function(a){gn.push(a)};_.ln=function(a){kn&&performance.mark(a)};
161
+ _.nn=function(a,b,c){kn&&(b=performance.measure(a,b,c),null!=b&&mn.info('Step: "'+a+'" took '+b.duration.toFixed(0)+" ms."))};qn=function(a,b){var c=on;pn.set(a.toLowerCase().split(";")[0]+"-"+c,{priority:c,plugin:b})};_.un=function(a,b){for(var c=_.v([rn,sn,tn,on]),d=c.next();!d.done;d=c.next())if(d=pn.get(a.toLowerCase().split(";")[0]+"-"+d.value)){var e=d.plugin(),f=e.isSupported(a,b);e.destroy();if(f)return d.plugin}return null};
162
+ vn=function(a,b){var c=b||Oi,d=null,e=null,f=!1;return function(g){for(var k=[],l=0;l<arguments.length;++l)k[l]=arguments[l];if(f&&c(k,d))return e;f=!0;d=k;return e=a.apply(null,_.uh(k))}};_.wn=function(a){return null!=a};xn=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}throw new _.zi("No non-null, non-undefined value found");};
163
+ yn=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}};
164
+ _.zn=function(a){this.j=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;_.R.startsWith(this.path,
165
+ "/")||(this.path="/"+this.path);this.f=b.search;this.h=b.hash};_.An=function(a){return a.scheme+"//"+(a.a+(a.port?":"+a.port:"")+a.path+a.h+a.f)};_.Bn=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)},""):""};
166
+ Cn=function(a){var b={};a=a||"";a=a.substring(a.indexOf("?")+1);a=_.v(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};_.Dn=function(a,b){if(a.startsWith(_.ze)||a.startsWith(_.Ae))return a;var c=b;b.startsWith("//")&&(c=location.protocol+c);c=new URL(c);c.search="";return(new URL(a,c)).toString()};
167
+ _.En=function(a){if(!a)return null;a=(new _.tm(a)).a.pathname.split("/");if(1>a.length)return null;a=a.pop().split(".");return 1>=a.length?null:a.pop().toLowerCase()};Hn=function(a,b){for(var c=_.v(Fn[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=_.v(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a===_.Gn?"":null};_.In=function(a,b){var c=a;b&&(c+=';codecs\x3d"'+b+'"');return c.replace(/\s/g,"")};_.Jn=function(a){return a.split(";")[0]};
168
+ _.Kn=function(a){a=a.split(/\s*;\s*/);a.shift();return(a=a.find(function(b){return b.startsWith("codecs\x3d")}))?a.split("\x3d")[1].replace(/^"|"$/g,"").split(/\s*,\s*/).join(","):""};Ln=function(){};
169
+ _.Pn=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.uj()&&(a=360);var b=_.Zk();b.maxAttempts=3;a={source:"",license:Mn,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,ads:{hls:{enable:!0,resolutionOffsetSec:35}},manifest:{attemptParameters:_.Zk(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0,timeline:{version:1,type:void 0}},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,
170
+ bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,restrictions:Nn(a),useCmsd:!0},contentSteering:{enabled:!0,attemptParameters:_.Zk()},drm:null,cmcd:{enabled:!1,version:1,rtpMultiplier:5,deliveryMode:"headers"},enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:_.Oe,preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],preferSpatialAudio:!1,preferForcedSubtitles:!1,volume:null,startTime:null,loop:!1,lowLatencyMode:!1,
171
+ suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,xmlParser:_.On,streaming:{attemptParameters:b,bufferingGoal:10,rebufferingGoal:2,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,relativeTextTimestamp:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.1,disableAudioTracks:!1,disableVideoTracks:!1,smallGapLimit:.5,jumpLargeGaps:!0,gapTolerance:.001,durationBackoff:1,maxSegmentToMediaOffset:1,forceNativeTS:!1,preferNativeHlsOnSafari:!0,safeSeekOffset:5,stallEnabled:!0,
172
+ 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,ignoreManagedMediaSourceStreamingHints:!1},mediaSource:{codecSwitchingStrategy:_.Mf},restrictions:Nn(),tizen:{sideStreamText:_.qj(2)},safari:{enableHlsVideoTrackInfo:!1,enableMetadata:!1},mse:{sendPlaybackSessionIdHeader:!1},trickPlay:{speedUpMode:_.Ud,
173
+ preferTrickPlayTracks:!0},playlist:{timeline:"basic",content:_.Vb,cropTimeline:!1},yospace:{enabled:!1},broadpeak:{adTracking:!1},cmsd:{enabled:!0},mediatailor:{enabled:!1,sessionConfig:{}},disableRestrictions:!1,chromecast:{useSenderAbrConfig:!1,useSenderStreamingConfig:!1}};if(_.qj()||_.rj())a.ads.hls.enable=!1;if(_.pj("Edge/")||_.qj())a.streaming.gapDetectionThreshold=.5;_.rj()&&(a.streaming.stallEnabled=!1);_.rj()&&79===_.Oj().major&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=
174
+ 1,a.streaming.gapDetectionThreshold=.02);_.qj()&&(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};
175
+ _.Rn=function(a,b){b=void 0===b?{}:b;if(!a)return _.Pn();for(var c=[_.Pn()],d=!1,e=_.v(a),f=e.next();!f.done;f=e.next())f=f.value,null!==f&&void 0!==f&&(_.N.ja(f)&&(f={source:f}),f.lowLatencyMode&&!d&&(c.push({streaming:{rebufferingGoal:.1,bufferLimitUpdateInterval:.01,attemptParameters:{maxAttempts:3,baseDelay:250,backoffFactor:1}},abr:{bandwidthUpgradeTarget:.6,bandwidthDowngradeTarget:.95},manifest:{lowLatencyMode:!0}}),d=!0),c.push(f),b.Uo||null==f.suggestedPresentationDelay||c.push({manifest:{suggestedPresentationDelay:f.suggestedPresentationDelay}}));
176
+ c=_.N.ta.apply(null,c);_.N.ja(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.N.R(c.volume)&&(!_.N.ya(c.volume)||_.N.isNaN(c.volume)))throw new _.O(_.P,7,7100,"config.volume is not a number");if(!_.N.R(c.preferredTextLanguage)&&!_.N.ja(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.O(_.P,7,7100,"config.preferredTextLanguage is not a string or an array");if(!_.N.R(c.preferredAudioLanguage)&&!_.N.ja(c.preferredAudioLanguage)&&!Array.isArray(c.preferredAudioLanguage))throw new _.O(_.P,
176
177
  7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.N.R(c.preferredAudioCodec)&&!_.N.ja(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.O(_.P,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.N.R(c.preferredVideoCodec)&&!_.N.ja(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.O(_.P,7,7100,"config.preferredVideoCodec is not a string or an array");if(!_.N.R(c.drm)){if(c.drm.env&&!_.N.ja(c.drm.env))throw new _.O(_.P,
177
- 7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.N.ja(c.drm.offlineId))throw new _.O(_.P,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(!_.N.za(d.bufferingGoal)||_.N.isNaN(d.bufferingGoal))throw new _.O(_.P,7,7100,"config.streaming.bufferingGoal is not a number");
178
- if(!_.N.za(d.rebufferingGoal)||_.N.isNaN(d.rebufferingGoal))throw new _.O(_.P,7,7100,"config.streaming.rebufferingGoal is not a number");if(d.rebufferingGoal>d.bufferingGoal)throw new _.O(_.P,7,7100,"config.streaming.rebufferingGoal must be \x3e\x3d bufferingGoal");if(!_.N.za(d.bufferBehind)||_.N.isNaN(d.bufferBehind))throw new _.O(_.P,7,7100,"config.streaming.bufferBehind is not a number");if(!_.N.za(d.smallGapLimit)||_.N.isNaN(d.smallGapLimit))throw new _.O(_.P,7,7100,"config.streaming.smallGapLimit is not a number");
179
- if(!_.N.za(d.durationBackoff)||_.N.isNaN(d.durationBackoff))throw new _.O(_.P,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.N.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.h)throw new _.O(_.P,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");Mn(c.restrictions);Mn(c.abr.restrictions);c.abr.initialRestrictions&&Mn(c.abr.initialRestrictions)}return c};
180
- Jn=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}};
181
- Mn=function(a){_.N.R(a.maxPixels)&&(a.maxPixels=Infinity);_.N.R(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.N.R(a.maxHeight)&&(a.maxHeight=Infinity);_.N.R(a.maxWidth)&&(a.maxWidth=Infinity);_.N.R(a.minPixels)&&(a.minPixels=0);_.N.R(a.minBandwidth)&&(a.minBandwidth=0);_.N.R(a.minHeight)&&(a.minHeight=0);_.N.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);
182
- 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 _.O(_.P,7,7100,"Restrictions contain NaN");};On=function(a){return typeof a===_.$e&&!Array.isArray(a)&&"source"in a};
183
- Pn=function(a){if(!a)return null;a=(new _.pm(a)).a.pathname.toUpperCase();return a.endsWith(".MPD")?_.Lc:a.endsWith(".M3U8")?_.Xl:a.endsWith(".MP4")?_.Ug:a.endsWith(".MP3")?"audio/mp3":a.endsWith("MANIFEST")||a.endsWith(".ISM")?_.Qc:null};_.Rn=function(a){var b;On(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.lg||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=Qn(b[c]);d&&a.push(d)}return a};
184
- Qn=function(a){var b=null;_.N.ja(a)&&(a={url:a});typeof a===_.$e&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.N.R(a.drmProtected)||typeof a.drmProtected!==_.bd||(b.drmProtected=a.drmProtected),_.N.R(a.isLive)||typeof a.isLive!==_.bd||(b.isLive=a.isLive),_.N.R(a.name)||typeof a.name!==_.lg||(b.name=a.name),_.N.R(a.sc)||typeof a.sc!==_.lg||(b.sc=a.sc),_.N.R(a.vb)||typeof a.vb!==_.lg||(b.vb=a.vb));b&&!b.type&&(b.type=Pn(a.url),b.type?Sn.debug("Detect media type "+b.type+" for "+
185
- a.url):Sn.warn("Unable to detect media type for "+a.url));return b};Tn=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};_.Vn=function(a){_.Un[a.J]=a};
186
- _.Xn=function(a){var b={attemptParameters:_.Vk(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,ignoreUnrecognizedInitData:!0,Ua:{},widevineVersion:_.Md};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,void 0!==
187
- a.ignoreUnrecognizedInitData&&(b.ignoreUnrecognizedInitData=!!a.ignoreUnrecognizedInitData),typeof a.widevineVersion===_.lg&&0<a.widevineVersion.length&&(b.widevineVersion=a.widevineVersion),a.env)){var c=_.Un[a.env]||null;if(!c)throw _.Vh(_.Ca,_.wb+a.env+_.aa),new _.O(_.P,6,6015,_.Da+a.env+"' is missing.");b.Ua=_.Wn(c,a.customData)||{};_.R.startsWith(a.env.toLowerCase(),je)&&(b.enforceSingleSession=!0)}return b};
188
- Yn=function(a,b,c){var d=_.R.ga;this.h=a;this.f=b;JSON.parse(d(_.Lm(a)));this.a=JSON.parse(d(_.Lm(b)));this.j=c};
189
- $n=function(a){var b=Zn,c=_.R.sb,d={kty:"RSA",n:b.n,e:b.e},e=a.h+"."+a.f,f=a.j;return new Promise(function(g,k){try{var l=window&&window.crypto&&window.crypto.subtle}catch(n){}if(l){var m={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};l.importKey("jwk",d,m,!1,["verify"]).then(function(n){var p=c(e),q=_.Lm(f);return l.verify(m,n,q.buffer,p.buffer)}).then(function(n){n?g():k(new _.ui("Signature Verification failed",Fg))})["catch"](k)}else g()})};ao=function(a){this.f=a;this.a=null;this.g=new _.M("clpp.utils.LicenseKey")};
190
- bo=function(a){if(!a.a){var b=a.f.split(".");if(3!==b.length)throw Error("Expected to find 3 data sections in JWT raw data");b=new Yn(b[0],b[1],b[2]);a.a=b}return a.a};
191
- co=function(a){var b,c,d;return _.I(function(e){if(1==e.a)return b=bo(a),_.F(e,2),_.x(e,$n(b),4);if(2!=e.a)return _.G(e,0);if((c=_.H(e))&&c.code===Fg)throw c;d=new _.pm(window.location.href);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(d.a.hostname))return e["return"]();throw c;})};
192
- eo=function(a){switch((a.ea[0]||{src:"",type:""}).type){case _.Lc:a="dash";break;case _.Qc:a="ss";break;case _.Xl:a="hls";break;case _.Ug:a="mp4";break;default:a=""}return a};fo=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};go=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};ho=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};
193
- jo=function(a){var b=a.configuration,c="no";b.drm&&!_.N.ua(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(je)||io(a).endsWith("drmtoday.com"))&&(c=je);return c};ko=function(a){a=a.drmInfo;var b="";if(a)switch(a.keySystem){case _.Md:b="wv";break;case _.Kd:b="pr";break;case _.Id:b="fps"}return b};lo=function(a){a=a.drmInfo;var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};
194
- mo=function(a){a=a.drmInfo;var b="";if(a)switch(a.videoRobustness){case Ta:case Ra:b="L1";break;case Sa:b="L2";break;case _.Db:case _.Cb:b="L3"}return b};io=function(a){return(a=(a=a.drmInfo)&&a.licenseServerUri||"")?(new _.pm(a)).a.hostname:""};
195
- qo=function(a,b){var c="ie"===_.Lj().browser,d=b.configuration,e=_.ph(Array.from(_.hi.keys())).concat(_.ph(b.Aj));d={"CL-KEY":a.f,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ia,"CL-USER-ID":fo(d),"CL-ASSET-ID":go(d),"CL-SESSION-ID":ho(d),"CL-PLAYBACK-TYPE":b.isLive?no:oo,"CL-CONTENT-TYPE":eo(b),"CL-PLUGINS":e.join(" "),"CL-DRM":jo(b),"CL-DRM-CDM":ko(b),"CL-DRM-SEC-LEVEL":mo(b),"CL-DRM-OFFLINE":lo(b),"CL-DRM-IP":io(b)};po&&po.companionSdk&&(po.companionSdk.name&&(d["CL-COMPANION-SDK"]=po.companionSdk.name),
196
- po.companionSdk.version&&(d["CL-COMPANION-SDK-VERSION"]=po.companionSdk.version));c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=e);e=_.Zk(["https://downloads.castlabs.com/r/register/"]);e.method="GET";e.headers=d;return(new _.Xm).fetch(e).U.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=bo(a);f=f.data;var k=f.status;if(g.a&&g.a.ilv)f=Promise.resolve();else{switch(k){case 403:case 404:g=7101;
197
- var l="Castlabs Player license is invalid";if(403===k){k=l;l="";try{l=JSON.parse(decodeURIComponent(f.responseText)).message}catch(m){}f=k+(": "+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.g.error(ab+l);f=Promise.reject(new _.O(_.P,7,g,l))}}return f})};
198
- _.so=function(a,b){a=_.ro(a);b=_.ro(b);return a.split("-")[0]===b.split("-")[0]};_.ro=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=to.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};vo=function(a){this.m=a;this.f=a.getNetworkEngine();this.h=uo(this);this.f.Ud(this.h);this.a=null};
199
- uo=function(a){return function(b){var c=b.headers,d=b=null,e=_.N.Ei(c,"cmsd-dynamic");c=_.N.Ei(c,"cmsd-static");e&&(b=wo(e),a.a=b);if(c)try{e={};var f=c.split(",");for(c=0;c<f.length;c++){var g=xo(f[c]),k=g.key,l=g.value;Object.keys(yo).includes(k)&&(e[yo[k]]=l)}d=_.N.Wb(e)?e:null}catch(m){zo.error("CmsdManager parseCmsdStaticHeader_ failed:",m),d=null}(b||d)&&a.m.trigger(new _.Q("cmsd-event",{Pp:b,cq:d}))}};
200
- wo=function(a){try{var b=a.split(",").map(function(c){var d={};c=c.split(";");for(var e=0;e<c.length;e++){var f=xo(c[e]),g=f.key;f=f.value;Object.keys(Ao).includes(g)&&(d[Ao[g]]=f)}return d}).filter(function(c){return _.N.Wb(c)});return 0<b.length?b:null}catch(c){return zo.error("CmsdManager parseCmsdDynamicHeader_ failed:",c),null}};
201
- xo=function(a){var b=a.split("\x3d"),c=b[0];b=b[1];if(!c)throw new _.ui("Parsing CMSD, missing parameter or wrong format");if(c&&!b)return{key:c,value:!0};var d=b[0];if('"'===d&&'"'===b[b.length-1])return{key:c,value:b.replaceAll(/(^")|("$)/g,"")};if(/^[-0-9]/.test(d))return{key:c,value:parseInt(b,10)};if(/^[a-zA-Z*]/.test(d))return{key:c,value:b};throw new _.ui("Parsing CMSD, not recognized value type of "+a);};
202
- S=function(a,b,c){_.Di.call(this);var d=this;dn();this.g=new _.M("clpp.Player");this.g.info("SDK version: 6.31.0");if(!a)throw new _.O(_.P,7,7102);this.Aa=new _.wi;this.f=this.D=b||_.Ln();this.l=null;void 0===this.f.license&&(this.f.license=In,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 _.O(_.P,7,7101,"No license provided in configuration!");this.j=
203
- new Pj(a,c);this.G=this.A=this.a=this.I=null;this.J=new _.Xm;this.h=null;this.ha=[];this.ma=!0;this.L={};this.Ba=null;this.W=!0;this.X=this.T=!1;this.M=this.wd=null;this.Fg=!1;this.Va=new dm(this);this.B=null;this.on(_.ig,function(){d.getState()===_.Bo&&(d.a?d.a.unload():Promise.resolve())});this.on(_.Hc,function(){d.Fg=!0});this.on(_.Gc,function(){d.Fg=!1});this.on(_.yg,function(){return Co(d)});Do(this,this.f.license);this.j.getMedia()&&(a=this.j.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),
204
- this.g.debug("Removed autoplay attribute from video element. Auto play will be handled by configuration."),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=_.v(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);this.P=_.pa;ni(this)};
205
- _.Mo=function(a,b,c){c=void 0===c?null:c;null!=b&&b===a.a?a.a.forwardEventsTo(a):(a.a&&(a.a.stopForwardingEventsTo(a),a.a.destroy(),a.a=null,a.A=null),b&&(b.init(a.j,a.D),b.setNetworkEngine(a.getNetworkEngine()),b.forwardEventsTo(a),a.a=b,a.A=c))};Do=function(a,b){a.I=new ao(b);co(a.I)["catch"](function(c){setTimeout(function(){a.g.error(ab+c);a.trigger(new _.Q(_.qe,{detail:new _.O(_.P,7,7101)}));a.destroy()},1E3)})};
206
- No=function(a,b){var c,d;_.I(function(e){if(1==e.a)return a.j.getMedia()||a.j.getCastElement(),a.I||(a.I=new ao(a.f.license)),_.F(e,2),a.g.debug("Verifying license remotely"),_.x(e,qo(a.I,b),4);if(2!=e.a)return a.g.debug("License verified remotely"),_.G(e,0);c=_.H(e);a.g.debug("License rejected by remote",c);d={release:a.release.bind(a),destroy:a.destroy.bind(a),onError:a.onError.bind(a)};setTimeout(Tn,1E3,d,c);_.A(e)})};
207
- Lo=function(a,b){a.ha=b;for(var c=_.v(a.ha),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.L[e]=d)}a.Zc("onPlayerCreated")};
208
- Oo=function(a){var b,c;return _.I(function(d){switch(d.a){case 1:if(a.W)return a.g.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.Aa.off(document,_.Yg);a.trigger(new _.Q(_.Qf));a.j&&a.j.release();if(!a.h){d.C(2);break}return _.x(d,a.h.xc(),3);case 3:a.h=null;case 2:if(!a.B){d.C(4);break}return _.x(d,a.B.release(),5);case 5:a.B=null;case 4:if(a.a)return b=null,c=a.a.on(_.ig,function(e){b=e}),d["return"](a.Zc(_.ef).then(function(){a.a.stopForwardingEventsTo(a);
209
- return Promise.all([a.a.release(),a.J.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(_.ig,c);a.trigger(new _.Q(Pf))}));a.trigger(new _.Q(Pf));return d["return"](new Promise(function(e){return e()}))}})};
210
- Qo=function(a,b,c){if(a.P===_.qb)b=Po(b,c);else if(2!==(a.a?a.a.canPlay(b[0],c):0)||a.X){a.X=!1;if(b){for(var d=a=null,e=0;e<b.length;e++);e=Object.values(_.Yh);for(var f=0;f<b.length;f++)for(var g=0;g<e.length;g++){var k={xb:e[g],confidence:e[g].canPlay(b[f],c)};if(null===a||a.confidence<k.confidence)a=k,d=f}a&&typeof d===_.h&&0<a.confidence?(_.Zh.debug("Player Factory '"+a.xb.a()+"' can play",b[d]),b=new Xh(a.xb,d)):(_.Zh.debug("No compatible Player Factory found for sources:",b),b=null)}else b=
211
- null;if(!b)throw new _.O(_.P,7,7003,"No player factory compatible with given sources found!");c=b.xb;a=c.create();b={xb:c,player:a,sourceIndex:b.sourceIndex}}else b={xb:a.A,player:a.a,sourceIndex:0};return b};Po=function(a,b){var c=ai(function(d){return d.f(_.qb)&&a.every(function(e){return 2===d.canPlay(e,b)})});if(!c)throw new _.O(_.P,7,7003,"No compatible player implementing playlist mode found!");return{xb:c,player:c.create(),sourceIndex:0}};
212
- So=function(a){var b;return _.I(function(c){if(1==c.a){if(!a.a)return a.g.warn(tb),c["return"]();b=a.a;if(!b.Th)return a.g.warn(xb),c["return"]();a.trigger(new _.Q(Me));return _.x(c,b.Th(),2)}return _.x(c,_.Ro(a),0)})};
213
- _.Wo=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a){if(a.T)throw new _.O(_.P,7,7E3,"Player is already destroyed.");if(!a.j)throw new _.O(_.P,7,7E3,"No surface associated with this player!");_.gn(vf);return _.x(f,a.release(),2)}if(3!=f.a){d=c||_.Rn(b);if(!b||0===d.length)throw new _.O(_.P,7,7003,kb);a.Ba=d;a.f=_.Nn([a.D,b,{source:d}]);a.W=!1;e=Qo(a,d,a.f);_.Mo(a,e.player,e.xb);To(a,a.a);a.a&&a.a.setSourceIndex(e.sourceIndex);Uo(a);a.a&&a.a.setCdnErrorCallback(a.M);_.Vo(a,a.f);a.f.cmsd.enabled&&
214
- (a.B=new vo(a),a.a.setCmsdManager(a.B));if(a.f.pauseWhenInBackground)a.Aa.on(document,_.Yg,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});oi(a);return _.x(f,a.Zc("onContentWillLoad",a.f.source[e.sourceIndex]),3)}_.gn(uf);_.jn("player.beforeLoad",vf,uf);_.A(f)})};
215
- _.Xo=function(a){return _.I(function(b){a.j.getMedia()||a.j.getCastElement();a.trigger(new _.Q(Me));return _.x(b,Promise.all([a.a.load(a.f),a.h?a.h.load():Promise.resolve()]),0)})};To=function(a,b){try{var c=crypto.randomUUID()}catch(d){c=bm()}a.g.info("Playback session started, ID:",c);b.setPlaybackSessionId(c);a.G=c};Yo=function(a){a.G&&(a.g.info("Playback session ended, ID:",a.G),a.G=null,a.a&&a.a.setPlaybackSessionId(null))};
216
- $o=function(a){var b,c,d,e;_.I(function(f){if(1==f.a){b=[];if(a.f.remoteTextTracks)for(c=_.v(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)}Zo(a);_.A(f)})};
217
- Zo=function(a){var b=_.Ii(a.f.preferredTextLanguage).filter(function(f){return f}),c=a.f.preferForcedSubtitles,d=a.getTrackManager().ra().filter(function(f){return c?f.kind===_.se:f.kind!==_.se});if(0===d.length)c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles are available.");else{if(c&&0===b.length){var e=a.getTrackManager().qa();e&&e.language?(e=_.ro(e.language||""),b.push(e)):(e=a.getTrackManager().Qa())&&e.language&&(e=_.ro(e.language||""),b.push(e));0===
218
- b.length&&a.g.warn("Forced subtitles are configured to be preferred, but neither the preferred text language is set, nor the audio or video track language is available to determine which forced subtitles language to select.")}b.some(function(f){var g=_.ro(f);if(f=d.find(function(k){k=_.ro(k.language||"");return _.so(k,g)}))return a.getTrackManager().ib(f),!0;c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles match the preferred languages: ",b);return!1})}};
219
- _.Ro=function(a){var b;return _.I(function(c){if(1==c.a)return _.gn(rf),No(a,{configuration:a.getConfiguration(),ea:a.Ii(),drmInfo:a.getDrmInfo(),Aj:Object.keys(a.L),isLive:a.isLive()}),$o(a),pi(a),_.x(c,a.Zc(_.bf),2);if(3!=c.a)return a.f.autoplay?(b=a.h?a.h.Kc():!0)?_.x(c,a.play(),3):c.C(3):c.C(3);_.gn(qf);_.jn("player.afterLoad",rf,qf);_.A(c)})};_.Vo=function(a,b){var c=b||a.f,d=fi(a,c);d&&(d=d.create(a),ap(a,d,c))};ap=function(a,b,c){a.h=b;b.Oa(null==c.volume?1:c.volume);b.setMuted(c.muted||!1)};
220
- Co=function(a){if(!a.h&&a.A&&a.a&&a.f.ads.hls.enable&&a.getTimelineCues().some(function(c){return Jk(c.schemeIdUri)})){var b=new am;b.Nc(a.a,a.A,a.f.mse.sendPlaybackSessionIdHeader?a.G:null);ap(a,b,a.f)}};Uo=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.I(function(c){return a.Fg&&a.wd?_.x(c,a.wd(b),0):c["return"]()})})};_.bp=function(a){a&&(0<=Ko.indexOf(a)||Ko.push(a))};cp=function(){this.Vc=null;this.f=[];this.h=[];this.Fa=new _.M(wd);this.a=null;this.j=!1};
221
- dp=function(a){return[a.Vc].concat(_.ph(a.f)).filter(function(b){return null!=b})};fp=function(a,b){var c;_.I(function(d){c=function(){return Promise.all(a.f.filter(function(e){return null!=e.getLoadedSource()}).map(b))};return _.x(d,ep(a,c),0)})};gp=function(a,b){var c;return _.I(function(d){c=function(){return Promise.all(dp(a).map(b))};return _.x(d,ep(a,c),0)})};ep=function(a,b){return _.I(function(c){if(1==c.a)return a.a?_.x(c,a.a,2):c.C(2);a.a=b().then(function(){a.a=null});_.A(c)})};
222
- hp=function(a){this.m=a;this.l=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.j=new _.wi;this.f=new Set;this.a=new Set;this.h=null;this.g=new _.M("clpp.native.Metadata")};jp=function(a,b){a.j.on(b,_.Ec,function(c){c=c.track;c.kind===_.Te&&ip(a,c)})};
223
- ip=function(a,b){a.g.debug("onMetadataTrackAdded_()");b.mode=_.we;var c=!b.cues||0===b.cues.length;if(a.m.isLive()||!c){var d=b.cues;c=kp(d);lp(c);a.a=mp(c,a.l);0<a.a.size&&(np(a,a.a),a.m.trigger(new _.Q(_.yg)));a.j.on(b,_.Td,function(){for(var e=a.m.getPosition(),f=_.v(a.a),g=f.next();!g.done;g=f.next()){var k,l=a;g=g.value;if(Infinity===g.endTime){if(k=!l.f.has(g)){k=g.startTime;var m=k+.5;k=k<=e&&e<=m}k&&(l.f.add(g),l.m.trigger(new _.Q(_.wg,{detail:g})))}else k=g.startTime<=e&&e<=g.endTime,!k&&
224
- l.f.has(g)?(l.f["delete"](g),l.m.trigger(new _.Q(_.xg,{detail:g}))):k&&!l.f.has(g)&&(l.f.add(g),l.m.trigger(new _.Q(_.wg,{detail:g})))}});a.m.isLive()&&(a.h=setInterval(function(){if(b.cues){var e=a.m.getSeekRange().start;for(var f=[],g=_.v(b.cues),k=g.next();!k.done;k=g.next())k=k.value,k.endTime<e&&f.push(k);op(a,b,f);0<f.length&&a.g.debug("Evicted "+f.length+" old cues.");g=_.v(a.a);for(k=g.next();!k.done;k=g.next())k=k.value,k.endTime<e&&a.a["delete"](k);e=0<f.length}else e=!1;pp(a,b);f=kp(d);
225
- var l=mp(f,a.l);g=new Set;k=!1;l=_.v(l);for(var m=l.next();!m.done;m=l.next()){m=m.value;var n=qp(a,m);n?(m.customAttributes&&(n.customAttributes=_.N.ta(n.customAttributes||{},m.customAttributes)||void 0),k=!0):(a.a.add(m),g.add(m))}k=0<g.size||k;lp(f);(e||k)&&a.m.trigger(new _.Q(_.yg));np(a,g)},6E3))}};np=function(a,b){for(var c=_.v(b),d=c.next();!d.done;d=c.next())a.m.trigger(new _.Q(_.vg,{detail:d.value}))};
226
- qp=function(a,b){return Array.from(a.a.values()).find(function(c){return b.startTime===c.startTime&&b.endTime===c.endTime})||null};pp=function(a,b){if(b.cues){var c=rp(b.cues).filter(function(l){return l.type===Jd}),d=c.filter(function(l){return l.Yg}),e=c.filter(function(l){return!l.Yg});c=[];e=_.v(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var g=_.v(d),k=g.next();!k.done;k=g.next())k=k.value,sp(f,k)&&(c.push(f),k.ii=f.startTime)}op(a,b,c);0<c.length&&a.g.debug("Removed "+c.length+" duplicated cues.")}};
227
- op=function(a,b,c){c=_.v(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;try{b.removeCue(d)}catch(e){a.g.debug("Failed to remove cue",d,e)}}};sp=function(a,b){var c=a.endTime-a.startTime,d=b.endTime-b.startTime,e=a.ii||a.startTime,f=b.ii||b.startTime;return(Infinity===c&&Infinity===d||.01>Math.abs(c-d))&&.5>Math.abs(e-f)&&a.value.key===b.value.key&&a.value.data===b.value.data};
228
- vp=function(a){var b=[],c={};a=_.v(a);for(var d=a.next();!d.done;c={Pd:c.Pd},d=a.next())c.Pd=d.value,(d=b.find(function(e){return function(f){var g=e.Pd;return f.startTime===g.startTime&&f.endTime===g.endTime}}(c)))?tp(c.Pd,d):(d=up(c.Pd),b.push(d));return b};up=function(a){var b=a.startTime,c=a.endTime;b={schemeIdUri:"",value:"",startTime:b,endTime:c,id:"T"+b.toFixed(2)+"-"+c.toFixed(2),type:_.xe,eventElement:null};tp(a,b);return b};
229
- tp=function(a,b){if(a.key.startsWith("X-"))b.customAttributes||(b.customAttributes={}),b.customAttributes[a.key]=a.value,"X-CUSTOM-ID"===a.key&&(b.id=a.value);else if("SCTE35-OUT"===a.key||"SCTE35-IN"===a.key)b.schemeIdUri=_.Lg,b.type=_.Zf};lp=function(a){a.forEach(function(b){b.Yg=!0})};kp=function(a){return rp(a).filter(function(b){return b.type===Jd&&!b.Yg})};rp=function(a){var b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next())b.push(c.value);return b};
230
- mp=function(a,b){var c=a.map(function(d){return{startTime:d.startTime,endTime:d.endTime,key:d.value.key,value:d.value.data,Si:!1}});c=wp(c);b&&(c=xp(c));return new Set(vp(c))};wp=function(a){var b=new Set(a),c=new Set(a.filter(function(d){return"SCTE35-OUT"===d.key}).map(yp));a.filter(function(d){return"SCTE35-IN"===d.key}).forEach(function(d){c.has(yp(d))||(d.Si=!0)});return Array.from(b.values())};xp=function(a){a.forEach(function(b){b.Si&&(b.endTime=b.startTime,b.startTime=0)});return a};
231
- yp=function(a){return a.startTime+"-"+a.endTime};_.Fp=function(a,b,c,d){d=void 0===d?_.zp:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.Ap;this.writingMode=_.Bp;this.lineInterpretation=_.Cp;this.line=null;this.lineAlign=_.Dp;this.direction=Ep;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
232
- _.Ip=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.Gp;this.scroll=Hp;this.cssClassList=[];this.writingMode=this.displayAlign=null};Jp=function(a){this.m=a;this.l=a.getTextDisplayer();this.f=this.h=null;this.a=new _.wi;this.j=!1;this.g=new _.M("clpp.native.CueHandler")};
233
- Kp=function(a,b){var c=b.track;c.kind!==_.Te&&(c.mode===_.bg&&(c.mode=_.we),a.a.on(c,_.Td,function(d){d=d.target||d.srcElement;d.mode=_.we;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.l.append(d,[]))}))};_.Mp=function(a,b){for(var c=Lp[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===_.Cn?"":null};
234
- _.Op=function(a,b,c){return a.map(function(d){d=_.An(d)||"";return(d=_.Np[b][d])?d:b===_.Cn?c&&"vtt"!==c?_.Mc:_.sg:null}).filter(Boolean)[0]||null};_.Pp=function(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d};_.T=function(a,b,c,d){d=void 0===d?{}:d;a=a.getAttribute(b);if(!a&&d.required)throw new _.O(_.P,4,4023,"Required attribute missing: "+b);return a?a.value:c||null};_.Qp=function(a,b){return _.T(a,b,void 0,{required:!0})};
235
- _.Rp=function(a,b){this.name=a;this.value=b};
236
- _.Sp=function(a,b,c,d,e,f,g,k,l,m,n,p,q,t,u,y,C){l=void 0===l?!1:l;m=void 0===m?null:m;n=void 0===n?null:n;p=void 0===p?null:p;q=void 0===q?null:q;t=void 0===t?[]:t;u=void 0===u?null:u;y=void 0===y?function(){return""}:y;this.position=a;this.startTime=b;this.endTime=c;this.Sa=g;this.Ia=d;this.la=e;this.fa=f;this.keyInfo=(void 0===k?null:k)||null;this.vd=_.N.R(l)?!1:!!l;this.timescale=m;this.horizontalTiles=n;this.verticalTiles=p;this.durationPerTile=q;this.a=t||[];this.h=!1;this.initSegment=u;this.zd=
237
- y?y:function(){return""};this.Na=C};_.Tp=function(a,b,c,d,e,f,g,k,l,m,n,p,q,t,u){t=void 0===t?[]:t;_.Sp.call(this,a,b,c,d,e,f,g,void 0===k?null:k,void 0===l?!1:l,void 0===m?null:m,void 0===n?null:n,void 0===p?null:p,void 0===q?null:q,t,void 0===u?null:u);this.ka=0};_.Up=function(a){if(typeof a!==_.lg)return null;var b=a.trim().match(/^(\d+)x(\d+)$/);if(!b)return null;a=parseInt(b[1],10);b=parseInt(b[2],10);return 0>=a||0>=b?null:{se:a,Re:b,$o:a*b}};Vp=function(){this.a=this.f=null;this.g=new _.M("clpp.drm.csl")};
238
- Wp=function(a,b){3===b.type&&(a.f&&(a.g.debug("Attaching tracking token"),b.headers[hh]=a.f),a.a&&(b.headers[ih]=a.a))};Xp=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[hh];a.a=b.headers[ih];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(_.R.ga(_.Lm(c))),{delay:c.renewalPeriod,Dp:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};
239
- _.Zp=function(a){a=Yp[a];if(!a)return null;var b=_.Lj();return b.os===Bj&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.$p=function(a){this.J=a;this.f={}};
240
- _.Wn=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.f[_.Md];g&&(c[_.Md]={licenseUrl:g.licenseUrl,videoRobustness:un(d,g.videoRobustness),audioRobustness:un(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:tn(b?b.widevineDistinctiveIdentifierRequired:void 0,g.distinctiveIdentifierRequired,!1),persistentStateRequired:tn(b?b.widevinePersistentStateRequired:void 0,g.persistentStateRequired,!1),
241
- serverCertificate:_.aq(f,g.serverCertificate)});(g=a.f[_.Id])&&(c[_.Id]={licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.f[_.Kd])&&(c[_.Kd]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});return c};
242
- _.aq=function(a,b){return void 0===a?b:null===a?null:typeof a===_.lg?_.Zp(a):a};_.bq=function(a,b){b=void 0===b?!1:b;this.f=_.N.za(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.h=b;this.buffer=this.f.buffer};_.dq=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.Qi(a.f.buffer);b=_.Qi(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.cq()}};_.W=function(a,b){try{a.f.setUint32(a.a,b,a.h),a.a+=4}catch(c){_.cq()}};_.cq=function(){throw new _.O(_.P,3,3E3);};
243
- _.eq=function(a,b){this.f=a;this.h=void 0===b?!0:b;this.a=0};_.fq=function(a){return a.a<a.f.byteLength};_.hq=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.gq()}};_.iq=function(a){try{var b=a.f.getUint16(a.a,a.h);a.a+=2;return b}catch(c){_.gq()}};_.jq=function(a){try{var b=a.f.getUint32(a.a,a.h);a.a+=4;return b}catch(c){_.gq()}};_.kq=function(a){try{var b=a.f.getInt32(a.a,a.h);a.a+=4;return b}catch(c){_.gq()}};
244
- _.lq=function(a){var b=0,c=0;try{!0===a.h?(b=a.f.getUint32(a.a,!0),c=a.f.getUint32(a.a+4,!0)):(c=a.f.getUint32(a.a,!1),b=a.f.getUint32(a.a+4,!1))}catch(d){_.gq()}if(2097151<c)throw new _.O(_.P,3,3001);a.a+=8;return c*Math.pow(2,32)+b};mq=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.hq(a);return c};_.nq=function(a,b){a.a+b>a.f.byteLength&&_.gq();var c=a.a+a.f.byteOffset;c=a.f.buffer.slice(c,c+b);a.a+=b;return _.Qi(c)};
245
- _.gq=function(){throw new _.O(_.P,3,3E3,"Buffer read out of bounds.");};_.oq=function(){this.h=[];this.f=[];this.a=!1;this.g=new _.M("clpp.mp4")};_.pq=function(a){for(;_.fq(a.reader)&&!a.parser.a;)a.parser.Qf(a.start+a.headerSize,a.reader,a.partialOkay)};_.qq=function(a){for(var b=_.jq(a.reader);0<b&&!a.parser.a;--b)a.parser.Qf(a.start+a.headerSize,a.reader,a.partialOkay)};_.rq=function(a){return function(b){var c=b.reader.bb()-b.reader.getPosition();a(_.nq(b.reader,c))}};
246
- sq=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.tq=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};_.uq=function(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)};vq=function(){};wq=function(a){var b="";try{b=_.R.le(a)}catch(c){}return b};_.xq=function(a){a=wq(a);var b="";a.length&&(b=(new _.vn(a)).a);return b};
247
- yq=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.R.ga(a)),d=_.Lm(c.sinf[0]);(new _.oq).N(_.eg,_.pq).N("schi",_.pq).N("tenc",function(e){e.reader.skip(6);_.hq(e.reader)&&(e.reader.skip(1),b=_.Nm(_.nq(e.reader,16)));e.parser.stop()}).parse(d)}catch(e){}return b};
248
- zq=function(a,b,c){if(!c||!c.byteLength)throw new _.O(_.P,6,6102);var d;typeof b===_.lg?d=_.R.Zf(b,!0):d=b;a=_.R.Zf(wq(a),!0);b=new _.bq(12+a.byteLength+d.byteLength+c.byteLength,!0);_.W(b,a.byteLength);_.dq(b,_.Qi(a));_.W(b,d.byteLength);_.dq(b,_.Qi(d));_.W(b,c.byteLength);_.dq(b,_.Qi(c));return _.Qi(b.buffer)};_.Aq=function(a){var b=_.Qi(a.body);b=_.Km(b);a.headers[Ba]=Rc;a.body=_.R.sb("spc\x3d"+b).buffer};
249
- _.Bq=function(a){try{var b=_.R.ga(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=Xi(_.Lm(b))};Cq=function(){};
250
- Iq=function(){var a=Dq;if(a===Eq)return"https://lic.drmtoday.com";if(a===Fq)return"https://lic.staging.drmtoday.com";if(a===Gq)return"https://lic-demo.staging.drmtoday.com";if(a===Hq)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};Mq=function(a){var b=Iq();if(a===_.Md)return b+Jq;if(a===_.Kd)return b+Kq;if(a===_.Id)return b+Lq;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
251
- Nq=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
252
- _.Pq=function(a,b,c){b=wq(b);c=c&&c.customData?c.customData:{};b=new _.vn(Nq(b));var d=yn(b.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.R.If(""+a)&&(d.assetId=a,Oq.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.R.If(""+e)&&(d.variantId=e,Oq.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],Oq.debug("KeyId found in FPS SKD. Removing other parameters")):
253
- a=["assetId","variantId"];b.f=_.xn(d,!1,a);"/"!==b.path||b.j.includes(b.a+"/")||(b.path="");b=_.wn(b);return c.fpsContentId=b};_.Rq=function(a,b,c,d){d=void 0===d?!0:d;c=a.drm;c&&c.env.startsWith(Ga)?c.customData&&(_.Qq(b,a),a=b.uris[0],d&&c.customData.assetId&&(a+="?assetId\x3d"+encodeURI(""+c.customData.assetId),c.customData.variantId&&(a+="\x26variantId\x3d"+encodeURI(""+c.customData.variantId)),b.uris[0]=a)):Oq.warn(hb)};
254
- Sq=function(a,b,c){_.Rq(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.pm(b.uris[0]);c.a.searchParams.set(_.mf,a.toString());b.uris[0]=c.toString()};
255
- _.Tq=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.Rq(a,b,c,!1);b.headers[Ba]=Rc;c={spc:_.Jm(b.body)};if((a=a.drm)&&a.env.startsWith(Ha)&&d){a={};var e=yn((new _.vn(Nq(d))).f);d=e.keyId;if(e=e.assetId)Oq.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(Oq.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(Oq.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(Oq.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
256
- _.R.Nd(_.xn(c,!0))};_.Uq=function(a,b){Oq.debug("Clearing response data");if(200===b.status){var c=_.R.ga(b.data).trim();"\x3cckc\x3e"===c.substr(0,5)&&"\x3c/ckc\x3e"===c.substr(-6)&&(c=c.slice(5,-6));b.data=_.Lm(c).buffer}};_.Vq=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(Ga))Oq.warn(hb);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(Ha)){var d=new _.pm(b.uris[0]),e=d.a.pathname;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.a.pathname=e;b.uris[0]=d.toString()}};
257
- _.Wq=function(a,b){try{var c=_.Qi(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));Oq.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){Oq.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};
258
- _.Qq=function(a,b){var c=b.drm;if(c&&c.customData){var d={userId:c.customData.userId,sessionId:c.customData.sessionId,merchant:c.customData.merchant};_.N.Wb(d)&&(a.headers["dt-custom-data"]=btoa(JSON.stringify(d)));(c=c.customData.authToken)&&(a.headers["x-dt-auth-token"]=c)}};Yq=function(a){var b={},c=a?a[jh]:void 0;a=Xq[a?a[jh]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};
259
- Zq=function(a){a=a["x-dt-li"];if(!a)return null;try{var b=JSON.parse(atob(a));a={};b.ti&&(a.requestId=b.ti);b.rpd&&(a.delay=Number(b.rpd)/1E3);return a}catch(c){return Oq.warn("Unable to parse DRMtoday License Info header (x-dt-li)",c),null}};_.$q=function(a){this.f=a;this.a=void 0};ar=function(){this.size=0;this.a=void 0;this.g=new _.M("clpp.drm.eme.MediaKeyStatusMap")};br=function(a,b){a.size=void 0===b?0:1;a.g.debug("Setting key status to",b);a.a=b};
260
- dr=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=cr.value().get(b),c.one(a,b,d))};er=function(){this.a=this.f=null};
261
- fr=function(a,b){this.keySystem=a;if(a.startsWith(_.Id))for(var c=_.v(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.Sf)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.hf,distinctiveIdentifier:_.hf,initDataTypes:e.initDataTypes,sessionTypes:[qg],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var k=_.v(e.audioCapabilities),l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&
262
- (d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.v(e.videoCapabilities),l=e.next();!l.done;l=e.next())k=l.value,k.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,k.contentType.split(";")[0])&&(d.videoCapabilities.push(k),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,_.Ug));d=g?d:null}if(d){this.a=d;return}}c=Error(Qb);c.name=pb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
263
- gr=function(a){this.f=null;this.h=new WebKitMediaKeys(a);this.a=new _.wi;this.j=0;this.g=new _.M(Ad);this.g.info("Created Media Keys for "+a)};
264
- hr=function(a,b){a.f=b;_.zi(a.a);if(!b)return Promise.resolve();a.a.on(b,ne,function(c){_.Vh("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);"MediaEncryptedEvent"in window&&c instanceof MediaEncryptedEvent&&(a.g.info("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.a.on(b,fh,function(c){a.g.debug("Handle webkitNeedKey event");c=_.Qi(c.initData);if(_.Wi(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
265
- c=_.R.Qc(c.subarray(4),!0);c=_.R.sb(c);var d=new Event(ne);d.initDataType="skd";d.initData=Xi(c);a.f.dispatchEvent(d)});dr(b,HTMLMediaElement.HAVE_METADATA,a.a,function(){return b.webkitSetMediaKeys(a.h)});return Promise.resolve()};ir=function(a,b){_.Di.call(this);this.a=null;this.o=a;this.f=this.h=null;this.j=new _.wi;this.sessionId=b;this.expiration=NaN;this.closed=new _.nm;this.l=!1;this.keyStatuses=new ar;this.g=new _.M(Ad)};jr=function(a,b){br(a.keyStatuses,b);a.dispatchEvent(new _.Q(Ce))};
266
- kr=function(){};lr=function(){this.a=null;this.g=new _.M("clpp.drm.eme.StandardEmeManager")};mr=function(){};nr=function(){this.f=this.a=null;this.h="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.h="webkit")};
267
- or=function(a,b,c,d){this.h=a;this.a=this.keySystem=c;a=!1;c===_.jf&&(this.a=bh,a=!1);var e=!1;d=_.v(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=[],k=[],l=!1;if(f.audioCapabilities)for(var m=_.v(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=_.v(f.videoCapabilities),n=g.next();!n.done;n=g.next())m=n.value,m.contentType&&(l=!0,b.canPlayType(m.contentType,
268
- this.a)&&(k.push(m),e=!0));l||(e=b.canPlayType(_.Ug,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.Sf||a||(e=!1);if(e){this.f=f;return}}b=Qb;if(c===_.jf||c===_.Md)b="None of the requested configurations were supported.";c=Error(b);c.name=pb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};pr=function(a,b){this.h=a;this.o=b;this.a=null;this.f=new _.wi;this.j=[];this.l=new Map};
269
- sr=function(a,b){a.a=b;_.zi(a.f);b&&(a.f.on(b,a.h+"needkey",function(c){var d=new Event(ne);d.initDataType=_.ld;d.initData=Xi(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.h+"keymessage",function(c){var d=qr(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.Q(_.Re,{messageType:e?Fe:Ee,message:c.message});_.Vh("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.Wh("Session not found",c.sessionId)}),a.f.on(b,a.h+"keyadded",function(c){(c=
270
- qr(a,c.sessionId))&&c.ready()}),a.f.on(b,a.h+"keyerror",function(c){var d=qr(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?rr(d,_.kf):1===e?rr(d,"expired"):rr(d,_.Be))}}))};
271
- qr=function(a,b){var c=a.l.get(b);return c?c:(c=a.j.shift())?(c.sessionId=b,a.l.set(b,c),c):null};tr=function(a,b,c,d){_.Di.call(this);this.w=a;this.j=b;this.o=!1;this.a=this.f=null;this.h=c;this.l=d;this.sessionId="";this.expiration=NaN;this.closed=new _.nm;this.keyStatuses=new ar};
272
- vr=function(a,b,c){if(a.o)return Promise.reject(Error("The session is already initialized."));a.o=!0;try{if(a.l===_.nf)if(c)var d=_.Qi(_.R.sb("LOAD_SESSION|"+c));else{var e=_.R.sb("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.Qi(b),e.byteLength);d=f}else d=_.Qi(b)}catch(k){return Promise.reject(k)}a.f=new _.nm;var g=ur(a,"generateKeyRequest");try{a.j[g](a.h,d)}catch(k){if(k.name!==Xa)return a.f=null,Promise.reject(k);(new _.gj(function(){try{a.j[g](a.h,d)}catch(l){a.f.reject(l),
273
- a.f=null}})).ia(.01)}return a.f};wr=function(a,b,c){if(a.a)a.a.then(function(){return wr(a,b,c)})["catch"](function(){return wr(a,b,c)});else{a.a=b;if(a.h===bh){var d=_.R.ga(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=_.Lm(e.keys[0].k);e=_.Lm(e.keys[0].kid)}else d=_.Qi(c),e=null;var f=ur(a,"addKey");try{a.j[f](a.h,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};rr=function(a,b){br(a.keyStatuses,b);a.dispatchEvent(new _.Q(Ce))};
274
- ur=function(a,b){return a.w?a.w+b.charAt(0).toUpperCase()+b.slice(1):b};xr=function(){};yr=function(){};zr=function(){};Ar=function(){};Dr=function(a,b){var c=Br;if(a){var d=c.find(function(e){return e.a()===a});if(d)return Cr.info(Zb+d.a()),d.create();Cr.info("Cannot create selected EME manager, falling back to the default.")}if(b&&(d=c.find(function(e){return e.a()===b})))return Cr.info(Zb+d.a()),d.create();c=c[0];if(!c)throw Error("Missing EME managers.");Cr.info(Zb+c.a());return c.create()};
275
- _.Er=function(){};Fr=function(a,b,c){this.j=new Uint8Array(a);this.a=b;this.f=c};Gr=function(){Fr.apply(this,arguments)};_.Ir=function(a){var b=_.Mm(a);b=parseInt(b.byteLength,10).toString(16);b=_.Mm("12"+b+a);return new Gr(Hr,a,b)};
276
- _.Jr=function(a){function b(t){switch(t){case 0:do if(!_.fq(d))throw Error("not enough data to skip!");while(_.hq(d)&128);break;case 1:d.skip(8);break;case 2:d.skip(c());break;case 3:for(;4!==(t=c()&7);)b(t);break;case 5:d.skip(4);break;default:throw Error("invalid wire type "+t);}}function c(){for(var t=_.hq(d),u=(t&127)>>>0,y=7;128<=t&&28>=y;)t=_.hq(d),u=(u|(t&(28>y?127:15))<<y)>>>0,y+=7;return 28<y?-1:u}var d=new _.eq(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.jq(d);var e=_.jq(d);
277
- e=_.tq(e);var f=_.jq(d),g=f>>>24;f&=16777215;var k=_.nq(d,16);k=_.Nm(k);if(0<g){var l=_.jq(d);d.skip(16*l)}l=_.jq(d);for(var m=[],n=null;_.fq(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=mq(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.Vh("Parsed WV PSSH Box","size",a,"name",e,Pg,g,"flags",f,"size",l,"systemId",k,"contentId (base64)",n?_.Jm(n):"","keyIds",m.map(function(t){return _.Nm(t)}));return 0<m.length?_.Ir(_.Nm(m[0])):null};
278
- _.Kr=function(a,b,c,d,e,f){f=void 0===f?null:f;Fr.call(this,a,b,d);this.version=e;this.h=c;this.l=f};
279
- _.Qr=function(a){var b=_.Lr;a:{var c=new _.eq(new DataView(a.buffer),!0);_.jq(c);for(_.iq(c);_.fq(c);)if(1===_.iq(c)){var d=_.iq(c);c=_.nq(c,d);break a}c=null}c||(c=a);a=_.R.Qc(c,!0);d=b.Je(a,"WRMHEADER");a=d.getAttribute(Pg)||"";d=b.Pa(d,"DATA");var e=b.Pa(d,"LA_URL");b=e?b.va(e):"";e=_.Lr;var f=e.Pa(d,"KID");if(f)if(f=e.va(f)){var g=e.Pa(d,ra);e=g?e.va(g):null;e={value:f,rg:e}}else e=null;else e=null;d=e?[e]:(e=Mr(d))?[e]:(d=Nr(d))?d:null;e=d&&d[0]||{};d=e.rg;e=_.Lm(void 0===e.value?"":e.value);
280
- e=_.Or(e);e=_.Nm(e);return new _.Kr(_.Pr,e,b,c,a,d)};_.Or=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=_.Qi(a);a.set(b,0);return a};Mr=function(a){var b=_.Lr;a=b.Pa(a,"PROTECTINFO");if(!a)return null;var c=b.Pa(a,"KID");if(!c)return null;b=c.getAttribute("VALUE");if(!b)return null;a=c.getAttribute(ra);c=c.getAttribute("ALGID");return{value:b,rg:a,mk:c}};
281
- Nr=function(a){var b=_.Lr;a=b.Pa(a,"PROTECTINFO");if(!a)return null;a=b.Pa(a,"KIDS");if(!a)return null;a=b.aa(a,"KID");if(!a.length)return null;b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;if(c=d.getAttribute("VALUE")){var e=d.getAttribute(ra);d=d.getAttribute("ALGID");b.push({value:c,rg:e,mk:d})}}return b.length?b:null};Rr=function(a){this.f=[];this.h=[];this.a=[];8<=a.byteLength&&(new _.oq).da("pssh",this.j.bind(this)).parse(a.buffer);0===this.a.length&&_.Qh("No pssh box found!")};
282
- _.Vr=function(a,b){var c=this;this.F=a;this.dc=b;this.K=new Set;this.D=this.J=this.l=null;this.X=!1;this.a=null;this.L=Sr;this.B=new _.wi;this.P=new Vp;this.h=new Map;this.M=[];this.I=new _.nm;this.Rb=0;this.f=null;this.w=function(d){c.A=!0;c.G=!1;c.I.reject(d);a.onError(d)};this.o=new Map;this.ma=new Map;this.ba=new _.gj(function(){return Tr(c)});this.j=!1;this.Ba=new _.nm;this.H=!1;this.ha=[];this.Va=!1;this.W=0;this.g=new _.M("clpp.drm.DrmEngine");this.Aa=(new _.gj(function(){Ur(c)})).Pb(1);this.I["catch"](function(){});
178
+ 7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.N.ja(c.drm.offlineId))throw new _.O(_.P,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(!_.N.ya(d.bufferingGoal)||_.N.isNaN(d.bufferingGoal))throw new _.O(_.P,7,7100,"config.streaming.bufferingGoal is not a number");
179
+ if(!_.N.ya(d.rebufferingGoal)||_.N.isNaN(d.rebufferingGoal))throw new _.O(_.P,7,7100,"config.streaming.rebufferingGoal is not a number");if(d.rebufferingGoal>d.bufferingGoal)throw new _.O(_.P,7,7100,"config.streaming.rebufferingGoal must be \x3e\x3d bufferingGoal");if(!_.N.ya(d.bufferBehind)||_.N.isNaN(d.bufferBehind))throw new _.O(_.P,7,7100,"config.streaming.bufferBehind is not a number");if(!_.N.ya(d.smallGapLimit)||_.N.isNaN(d.smallGapLimit))throw new _.O(_.P,7,7100,"config.streaming.smallGapLimit is not a number");
180
+ if(!_.N.ya(d.durationBackoff)||_.N.isNaN(d.durationBackoff))throw new _.O(_.P,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.N.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.h)throw new _.O(_.P,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");Qn(c.restrictions);Qn(c.abr.restrictions);c.abr.initialRestrictions&&Qn(c.abr.initialRestrictions)}return c};
181
+ Nn=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}};
182
+ Qn=function(a){_.N.R(a.maxPixels)&&(a.maxPixels=Infinity);_.N.R(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.N.R(a.maxHeight)&&(a.maxHeight=Infinity);_.N.R(a.maxWidth)&&(a.maxWidth=Infinity);_.N.R(a.minPixels)&&(a.minPixels=0);_.N.R(a.minBandwidth)&&(a.minBandwidth=0);_.N.R(a.minHeight)&&(a.minHeight=0);_.N.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);
183
+ 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 _.O(_.P,7,7100,"Restrictions contain NaN");};Sn=function(a){return typeof a===_.$e&&!Array.isArray(a)&&"source"in a};
184
+ Tn=function(a){if(!a)return null;a=(new _.tm(a)).a.pathname.toUpperCase();return a.endsWith(".MPD")?_.Lc:a.endsWith(".M3U8")?_.am:a.endsWith(".MP4")?_.Vg:a.endsWith(".MP3")?"audio/mp3":a.endsWith("MANIFEST")||a.endsWith(".ISM")?_.Qc:null};_.Vn=function(a){var b;Sn(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.ng||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=Un(b[c]);d&&a.push(d)}return a};
185
+ Un=function(a){var b=null;_.N.ja(a)&&(a={url:a});typeof a===_.$e&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.N.R(a.drmProtected)||typeof a.drmProtected!==_.cd||(b.drmProtected=a.drmProtected),_.N.R(a.isLive)||typeof a.isLive!==_.cd||(b.isLive=a.isLive),_.N.R(a.name)||typeof a.name!==_.ng||(b.name=a.name),_.N.R(a.xc)||typeof a.xc!==_.ng||(b.xc=a.xc),_.N.R(a.wb)||typeof a.wb!==_.ng||(b.wb=a.wb));b&&!b.type&&(b.type=Tn(a.url),b.type?Wn.debug("Detect media type "+b.type+" for "+
186
+ a.url):Wn.warn("Unable to detect media type for "+a.url));return b};Xn=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};_.Zn=function(a){_.Yn[a.J]=a};
187
+ _.ao=function(a){var b={attemptParameters:_.Zk(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,ignoreUnrecognizedInitData:!0,Ua:{},widevineVersion:_.Md};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,void 0!==
188
+ a.ignoreUnrecognizedInitData&&(b.ignoreUnrecognizedInitData=!!a.ignoreUnrecognizedInitData),typeof a.widevineVersion===_.ng&&0<a.widevineVersion.length&&(b.widevineVersion=a.widevineVersion),a.env)){var c=_.Yn[a.env]||null;if(!c)throw _.$h(_.Ca,_.wb+a.env+_.aa),new _.O(_.P,6,6015,_.Da+a.env+"' is missing.");b.Ua=_.$n(c,a.customData)||{};_.R.startsWith(a.env.toLowerCase(),je)&&(b.enforceSingleSession=!0)}return b};
189
+ bo=function(a,b,c){var d=_.R.ea;this.h=a;this.f=b;JSON.parse(d(_.Pm(a)));this.a=JSON.parse(d(_.Pm(b)));this.j=c};
190
+ eo=function(a){var b=co,c=_.R.ub,d={kty:"RSA",n:b.n,e:b.e},e=a.h+"."+a.f,f=a.j;return new Promise(function(g,k){try{var l=window&&window.crypto&&window.crypto.subtle}catch(n){}if(l){var m={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};l.importKey("jwk",d,m,!1,["verify"]).then(function(n){var p=c(e),q=_.Pm(f);return l.verify(m,n,q.buffer,p.buffer)}).then(function(n){n?g():k(new _.zi("Signature Verification failed",Fg))})["catch"](k)}else g()})};fo=function(a){this.f=a;this.a=null;this.g=new _.M("clpp.utils.LicenseKey")};
191
+ go=function(a){if(!a.a){var b=a.f.split(".");if(3!==b.length)throw Error("Expected to find 3 data sections in JWT raw data");b=new bo(b[0],b[1],b[2]);a.a=b}return a.a};
192
+ ho=function(a){var b,c,d;return _.I(function(e){if(1==e.a)return b=go(a),_.F(e,2),_.y(e,eo(b),4);if(2!=e.a)return _.G(e,0);if((c=_.H(e))&&c.code===Fg)throw c;d=new _.tm(window.location.href);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(d.a.hostname))return e["return"]();throw c;})};
193
+ io=function(a){switch((a.fa[0]||{src:"",type:""}).type){case _.Lc:a="dash";break;case _.Qc:a="ss";break;case _.am:a="hls";break;case _.Vg:a="mp4";break;default:a=""}return a};jo=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};ko=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};lo=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};
194
+ no=function(a){var b=a.configuration,c="no";b.drm&&!_.N.ua(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(je)||mo(a).endsWith("drmtoday.com"))&&(c=je);return c};oo=function(a){a=a.drmInfo;var b="";if(a)switch(a.keySystem){case _.Md:b="wv";break;case _.Kd:b="pr";break;case _.Id:b="fps"}return b};po=function(a){a=a.drmInfo;var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};
195
+ qo=function(a){a=a.drmInfo;var b="";if(a)switch(a.videoRobustness){case Ta:case Ra:b="L1";break;case Sa:b="L2";break;case _.Db:case _.Cb:b="L3"}return b};mo=function(a){return(a=(a=a.drmInfo)&&a.licenseServerUri||"")?(new _.tm(a)).a.hostname:""};
196
+ uo=function(a,b){var c="ie"===_.Qj().browser,d=b.configuration,e=_.uh(Array.from(_.ni.keys())).concat(_.uh(b.Jj));d={"CL-KEY":a.f,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ia,"CL-USER-ID":jo(d),"CL-ASSET-ID":ko(d),"CL-SESSION-ID":lo(d),"CL-PLAYBACK-TYPE":b.isLive?ro:so,"CL-CONTENT-TYPE":io(b),"CL-PLUGINS":e.join(" "),"CL-DRM":no(b),"CL-DRM-CDM":oo(b),"CL-DRM-SEC-LEVEL":qo(b),"CL-DRM-OFFLINE":po(b),"CL-DRM-IP":mo(b)};to&&to.companionSdk&&(to.companionSdk.name&&(d["CL-COMPANION-SDK"]=to.companionSdk.name),
197
+ to.companionSdk.version&&(d["CL-COMPANION-SDK-VERSION"]=to.companionSdk.version));c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=e);e=_.dl(["https://downloads.castlabs.com/r/register/"]);e.method="GET";e.headers=d;return(new _.an).fetch(e).U.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=go(a);f=f.data;var k=f.status;if(g.a&&g.a.ilv)f=Promise.resolve();else{switch(k){case 403:case 404:g=7101;
198
+ var l="Castlabs Player license is invalid";if(403===k){k=l;l="";try{l=JSON.parse(decodeURIComponent(f.responseText)).message}catch(m){}f=k+(": "+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.g.error($a+l);f=Promise.reject(new _.O(_.P,7,g,l))}}return f})};
199
+ _.wo=function(a,b){a=_.vo(a);b=_.vo(b);return a.split("-")[0]===b.split("-")[0]};_.vo=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=xo.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};zo=function(a){this.m=a;this.f=a.getNetworkEngine();this.h=yo(this);this.f.yd(this.h);this.a=null};
200
+ yo=function(a){return function(b){var c=b.headers,d=b=null,e=_.N.Oi(c,"cmsd-dynamic");c=_.N.Oi(c,"cmsd-static");e&&(b=Ao(e),a.a=b);if(c)try{e={};var f=c.split(",");for(c=0;c<f.length;c++){var g=Bo(f[c]),k=g.key,l=g.value;Object.keys(Co).includes(k)&&(e[Co[k]]=l)}d=_.N.Zb(e)?e:null}catch(m){Do.error("CmsdManager parseCmsdStaticHeader_ failed:",m),d=null}(b||d)&&a.m.trigger(new _.Q("cmsd-event",{Xp:b,nq:d}))}};
201
+ Ao=function(a){try{var b=a.split(",").map(function(c){var d={};c=c.split(";");for(var e=0;e<c.length;e++){var f=Bo(c[e]),g=f.key;f=f.value;Object.keys(Eo).includes(g)&&(d[Eo[g]]=f)}return d}).filter(function(c){return _.N.Zb(c)});return 0<b.length?b:null}catch(c){return Do.error("CmsdManager parseCmsdDynamicHeader_ failed:",c),null}};
202
+ Bo=function(a){var b=a.split("\x3d"),c=b[0];b=b[1];if(!c)throw new _.zi("Parsing CMSD, missing parameter or wrong format");if(c&&!b)return{key:c,value:!0};var d=b[0];if('"'===d&&'"'===b[b.length-1])return{key:c,value:b.replaceAll(/(^")|("$)/g,"")};if(/^[-0-9]/.test(d))return{key:c,value:parseInt(b,10)};if(/^[a-zA-Z*]/.test(d))return{key:c,value:b};throw new _.zi("Parsing CMSD, not recognized value type of "+a);};
203
+ S=function(a,b,c){_.Ii.call(this);var d=this;hn();this.g=new _.M("clpp.Player");this.g.info("SDK version: 6.32.0-beta.2");if(!a)throw new _.O(_.P,7,7102);this.Aa=new _.Bi;this.f=this.D=b||_.Pn();this.l=null;void 0===this.f.license&&(this.f.license=Mn,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 _.O(_.P,7,7101,"No license provided in configuration!");
204
+ this.j=new Uj(a,c);this.G=this.A=this.a=this.I=null;this.J=new _.an;this.h=null;this.ha=[];this.ma=!0;this.L={};this.Ba=null;this.W=!0;this.X=this.T=!1;this.M=this.Fd=null;this.Pg=!1;this.Va=new hm(this);this.B=null;this.on(_.kg,function(){d.getState()===_.Fo&&(d.a?d.a.unload():Promise.resolve())});this.on(_.Hc,function(){d.Pg=!0});this.on(_.Gc,function(){d.Pg=!1});this.on(_.Ag,function(){return Go(d)});Ho(this,this.f.license);this.j.getMedia()&&(a=this.j.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),
205
+ this.g.debug("Removed autoplay attribute from video element. Auto play will be handled by configuration."),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=_.v(Io);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)}}Po(this,a);this.P=_.pa;ti(this)};
206
+ _.Qo=function(a,b,c){c=void 0===c?null:c;null!=b&&b===a.a?a.a.forwardEventsTo(a):(a.a&&(a.a.stopForwardingEventsTo(a),a.a.destroy(),a.a=null,a.A=null),b&&(b.init(a.j,a.D),b.setNetworkEngine(a.getNetworkEngine()),b.forwardEventsTo(a),a.a=b,a.A=c))};Ho=function(a,b){a.I=new fo(b);ho(a.I)["catch"](function(c){setTimeout(function(){a.g.error($a+c);a.trigger(new _.Q(_.qe,{detail:new _.O(_.P,7,7101)}));a.destroy()},1E3)})};
207
+ Ro=function(a,b){var c,d;_.I(function(e){if(1==e.a)return a.j.getMedia()||a.j.getCastElement(),a.I||(a.I=new fo(a.f.license)),_.F(e,2),a.g.debug("Verifying license remotely"),_.y(e,uo(a.I,b),4);if(2!=e.a)return a.g.debug("License verified remotely"),_.G(e,0);c=_.H(e);a.g.debug("License rejected by remote",c);d={release:a.release.bind(a),destroy:a.destroy.bind(a),onError:a.onError.bind(a)};setTimeout(Xn,1E3,d,c);_.A(e)})};
208
+ Po=function(a,b){a.ha=b;for(var c=_.v(a.ha),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.L[e]=d)}a.jd("onPlayerCreated")};
209
+ So=function(a){var b,c;return _.I(function(d){switch(d.a){case 1:if(a.W)return a.g.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.Aa.off(document,_.Zg);a.trigger(new _.Q(_.Sf));a.j&&a.j.release();if(!a.h){d.C(2);break}return _.y(d,a.h.Cc(),3);case 3:a.h=null;case 2:if(!a.B){d.C(4);break}return _.y(d,a.B.release(),5);case 5:a.B=null;case 4:if(a.a)return b=null,c=a.a.on(_.kg,function(e){b=e}),d["return"](a.jd(_.ef).then(function(){a.a.stopForwardingEventsTo(a);
210
+ return Promise.all([a.a.release(),a.J.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(_.kg,c);a.trigger(new _.Q(Rf))}));a.trigger(new _.Q(Rf));return d["return"](new Promise(function(e){return e()}))}})};
211
+ Uo=function(a,b,c){if(a.P===_.qb)b=To(b,c);else if(2!==(a.a?a.a.canPlay(b[0],c):0)||a.X){a.X=!1;if(b){for(var d=a=null,e=0;e<b.length;e++);e=Object.values(_.ci);for(var f=0;f<b.length;f++)for(var g=0;g<e.length;g++){var k={yb:e[g],confidence:e[g].canPlay(b[f],c)};if(null===a||a.confidence<k.confidence)a=k,d=f}a&&typeof d===_.h&&0<a.confidence?(_.di.debug("Player Factory '"+a.yb.a()+"' can play",b[d]),b=new bi(a.yb,d)):(_.di.debug("No compatible Player Factory found for sources:",b),b=null)}else b=
212
+ null;if(!b)throw new _.O(_.P,7,7003,"No player factory compatible with given sources found!");c=b.yb;a=c.create();b={yb:c,player:a,sourceIndex:b.sourceIndex}}else b={yb:a.A,player:a.a,sourceIndex:0};return b};To=function(a,b){var c=gi(function(d){return d.f(_.qb)&&a.every(function(e){return 2===d.canPlay(e,b)})});if(!c)throw new _.O(_.P,7,7003,"No compatible player implementing playlist mode found!");return{yb:c,player:c.create(),sourceIndex:0}};
213
+ Wo=function(a){var b;return _.I(function(c){if(1==c.a){if(!a.a)return a.g.warn(tb),c["return"]();b=a.a;if(!b.ci)return a.g.warn(xb),c["return"]();a.trigger(new _.Q(Ne));return _.y(c,b.ci(),2)}return _.y(c,_.Vo(a),0)})};
214
+ _.$o=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a){if(a.T)throw new _.O(_.P,7,7E3,"Player is already destroyed.");if(!a.j)throw new _.O(_.P,7,7E3,"No surface associated with this player!");_.ln(vf);return _.y(f,a.release(),2)}if(3!=f.a){d=c||_.Vn(b);if(!b||0===d.length)throw new _.O(_.P,7,7003,kb);a.Ba=d;a.f=_.Rn([a.D,b,{source:d}]);a.W=!1;e=Uo(a,d,a.f);_.Qo(a,e.player,e.yb);Xo(a,a.a);a.a&&a.a.setSourceIndex(e.sourceIndex);Yo(a);a.a&&a.a.setCdnErrorCallback(a.M);_.Zo(a,a.f);a.f.cmsd.enabled&&
215
+ (a.B=new zo(a),a.a.setCmsdManager(a.B));if(a.f.pauseWhenInBackground)a.Aa.on(document,_.Zg,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});ui(a);return _.y(f,a.jd("onContentWillLoad",a.f.source[e.sourceIndex]),3)}_.ln(uf);_.nn("player.beforeLoad",vf,uf);_.A(f)})};
216
+ _.ap=function(a){return _.I(function(b){a.j.getMedia()||a.j.getCastElement();a.trigger(new _.Q(Ne));return _.y(b,Promise.all([a.a.load(a.f),a.h?a.h.load():Promise.resolve()]),0)})};Xo=function(a,b){try{var c=crypto.randomUUID()}catch(d){c=fm()}a.g.info("Playback session started, ID:",c);b.setPlaybackSessionId(c);a.G=c};bp=function(a){a.G&&(a.g.info("Playback session ended, ID:",a.G),a.G=null,a.a&&a.a.setPlaybackSessionId(null))};
217
+ dp=function(a){var b,c,d,e;_.I(function(f){if(1==f.a){b=[];if(a.f.remoteTextTracks)for(c=_.v(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)}cp(a);_.A(f)})};
218
+ cp=function(a){var b=_.Ni(a.f.preferredTextLanguage).filter(function(f){return f}),c=a.f.preferForcedSubtitles,d=a.getTrackManager().ra().filter(function(f){return c?f.kind===_.se:f.kind!==_.se});if(0===d.length)c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles are available.");else{if(c&&0===b.length){var e=a.getTrackManager().qa();e&&e.language?(e=_.vo(e.language||""),b.push(e)):(e=a.getTrackManager().Ra())&&e.language&&(e=_.vo(e.language||""),b.push(e));0===
219
+ b.length&&a.g.warn("Forced subtitles are configured to be preferred, but neither the preferred text language is set, nor the audio or video track language is available to determine which forced subtitles language to select.")}b.some(function(f){var g=_.vo(f);if(f=d.find(function(k){k=_.vo(k.language||"");return _.wo(k,g)}))return a.getTrackManager().kb(f),!0;c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles match the preferred languages: ",b);return!1})}};
220
+ _.Vo=function(a){var b;return _.I(function(c){if(1==c.a)return _.ln(rf),Ro(a,{configuration:a.getConfiguration(),fa:a.Ri(),drmInfo:a.getDrmInfo(),Jj:Object.keys(a.L),isLive:a.isLive()}),dp(a),vi(a),_.y(c,a.jd(_.bf),2);if(3!=c.a)return a.f.autoplay?(b=a.h?a.h.Rc():!0)?_.y(c,a.play(),3):c.C(3):c.C(3);_.ln(qf);_.nn("player.afterLoad",rf,qf);_.A(c)})};_.Zo=function(a,b){var c=b||a.f,d=li(a,c);d&&(d=d.create(a),ep(a,d,c))};ep=function(a,b,c){a.h=b;b.Pa(null==c.volume?1:c.volume);b.setMuted(c.muted||!1)};
221
+ Go=function(a){if(!a.h&&a.A&&a.a&&a.f.ads.hls.enable&&a.getTimelineCues().some(function(c){return Nk(c.schemeIdUri)})){var b=new em;b.Uc(a.a,a.A,a.f.mse.sendPlaybackSessionIdHeader?a.G:null);ep(a,b,a.f)}};Yo=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.I(function(c){return a.Pg&&a.Fd?_.y(c,a.Fd(b),0):c["return"]()})})};_.fp=function(a){a&&(0<=Io.indexOf(a)||Io.push(a))};gp=function(){this.ed=null;this.f=[];this.h=[];this.Fa=new _.M(wd);this.a=null;this.j=!1};
222
+ hp=function(a){return[a.ed].concat(_.uh(a.f)).filter(function(b){return null!=b})};jp=function(a,b){var c;_.I(function(d){c=function(){return Promise.all(a.f.filter(function(e){return null!=e.ab()}).map(b))};return _.y(d,ip(a,c),0)})};kp=function(a,b){var c;return _.I(function(d){c=function(){return Promise.all(hp(a).map(b))};return _.y(d,ip(a,c),0)})};ip=function(a,b){return _.I(function(c){if(1==c.a)return a.a?_.y(c,a.a,2):c.C(2);a.a=b().then(function(){a.a=null});_.A(c)})};
223
+ lp=function(a){this.m=a;this.l=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.j=new _.Bi;this.f=new Set;this.a=new Set;this.h=null;this.g=new _.M("clpp.native.Metadata")};np=function(a,b){a.j.on(b,_.Ec,function(c){c=c.track;c.kind===_.Se&&mp(a,c)})};
224
+ mp=function(a,b){a.g.debug("onMetadataTrackAdded_()");b.mode=_.we;var c=!b.cues||0===b.cues.length;if(a.m.isLive()||!c){var d=b.cues;c=op(d);pp(c);a.a=qp(c,a.l);0<a.a.size&&(rp(a,a.a),a.m.trigger(new _.Q(_.Ag)));a.j.on(b,_.Td,function(){for(var e=a.m.getPosition(),f=_.v(a.a),g=f.next();!g.done;g=f.next()){var k,l=a;g=g.value;if(Infinity===g.endTime){if(k=!l.f.has(g)){k=g.startTime;var m=k+.5;k=k<=e&&e<=m}k&&(l.f.add(g),l.m.trigger(new _.Q(_.yg,{detail:g})))}else k=g.startTime<=e&&e<=g.endTime,!k&&
225
+ l.f.has(g)?(l.f["delete"](g),l.m.trigger(new _.Q(_.zg,{detail:g}))):k&&!l.f.has(g)&&(l.f.add(g),l.m.trigger(new _.Q(_.yg,{detail:g})))}});a.m.isLive()&&(a.h=setInterval(function(){if(b.cues){var e=a.m.getSeekRange().start;for(var f=[],g=_.v(b.cues),k=g.next();!k.done;k=g.next())k=k.value,k.endTime<e&&f.push(k);sp(a,b,f);0<f.length&&a.g.debug("Evicted "+f.length+" old cues.");g=_.v(a.a);for(k=g.next();!k.done;k=g.next())k=k.value,k.endTime<e&&a.a["delete"](k);e=0<f.length}else e=!1;tp(a,b);f=op(d);
226
+ var l=qp(f,a.l);g=new Set;k=!1;l=_.v(l);for(var m=l.next();!m.done;m=l.next()){m=m.value;var n=up(a,m);n?(m.customAttributes&&(n.customAttributes=_.N.ta(n.customAttributes||{},m.customAttributes)||void 0),k=!0):(a.a.add(m),g.add(m))}k=0<g.size||k;pp(f);(e||k)&&a.m.trigger(new _.Q(_.Ag));rp(a,g)},6E3))}};rp=function(a,b){for(var c=_.v(b),d=c.next();!d.done;d=c.next())a.m.trigger(new _.Q(_.xg,{detail:d.value}))};
227
+ up=function(a,b){return Array.from(a.a.values()).find(function(c){return b.startTime===c.startTime&&b.endTime===c.endTime})||null};tp=function(a,b){if(b.cues){var c=vp(b.cues).filter(function(l){return l.type===Jd}),d=c.filter(function(l){return l.ih}),e=c.filter(function(l){return!l.ih});c=[];e=_.v(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var g=_.v(d),k=g.next();!k.done;k=g.next())k=k.value,wp(f,k)&&(c.push(f),k.vi=f.startTime)}sp(a,b,c);0<c.length&&a.g.debug("Removed "+c.length+" duplicated cues.")}};
228
+ sp=function(a,b,c){c=_.v(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;try{b.removeCue(d)}catch(e){a.g.debug("Failed to remove cue",d,e)}}};wp=function(a,b){var c=a.endTime-a.startTime,d=b.endTime-b.startTime,e=a.vi||a.startTime,f=b.vi||b.startTime;return(Infinity===c&&Infinity===d||.01>Math.abs(c-d))&&.5>Math.abs(e-f)&&a.value.key===b.value.key&&a.value.data===b.value.data};
229
+ zp=function(a){var b=[],c={};a=_.v(a);for(var d=a.next();!d.done;c={$d:c.$d},d=a.next())c.$d=d.value,(d=b.find(function(e){return function(f){var g=e.$d;return f.startTime===g.startTime&&f.endTime===g.endTime}}(c)))?xp(c.$d,d):(d=yp(c.$d),b.push(d));return b};yp=function(a){var b=a.startTime,c=a.endTime;b={schemeIdUri:"",value:"",startTime:b,endTime:c,id:"T"+b.toFixed(2)+"-"+c.toFixed(2),type:_.xe,eventElement:null};xp(a,b);return b};
230
+ xp=function(a,b){if(a.key.startsWith("X-"))b.customAttributes||(b.customAttributes={}),b.customAttributes[a.key]=a.value,"X-CUSTOM-ID"===a.key&&(b.id=a.value);else if("SCTE35-OUT"===a.key||"SCTE35-IN"===a.key)b.schemeIdUri=_.Mg,b.type=_.ag};pp=function(a){a.forEach(function(b){b.ih=!0})};op=function(a){return vp(a).filter(function(b){return b.type===Jd&&!b.ih})};vp=function(a){var b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next())b.push(c.value);return b};
231
+ qp=function(a,b){var c=a.map(function(d){return{startTime:d.startTime,endTime:d.endTime,key:d.value.key,value:d.value.data,aj:!1}});c=Ap(c);b&&(c=Bp(c));return new Set(zp(c))};Ap=function(a){var b=new Set(a),c=new Set(a.filter(function(d){return"SCTE35-OUT"===d.key}).map(Cp));a.filter(function(d){return"SCTE35-IN"===d.key}).forEach(function(d){c.has(Cp(d))||(d.aj=!0)});return Array.from(b.values())};Bp=function(a){a.forEach(function(b){b.aj&&(b.endTime=b.startTime,b.startTime=0)});return a};
232
+ Cp=function(a){return a.startTime+"-"+a.endTime};_.Jp=function(a,b,c,d){d=void 0===d?_.Dp:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.Ep;this.writingMode=_.Fp;this.lineInterpretation=_.Gp;this.line=null;this.lineAlign=_.Hp;this.direction=Ip;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
233
+ _.Mp=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.Kp;this.scroll=Lp;this.cssClassList=[];this.writingMode=this.displayAlign=null};Np=function(a){this.m=a;this.l=a.getTextDisplayer();this.f=this.h=null;this.a=new _.Bi;this.j=!1;this.g=new _.M("clpp.native.CueHandler")};
234
+ Op=function(a,b){var c=b.track;c.kind!==_.Se&&(c.mode===_.dg&&(c.mode=_.we),a.a.on(c,_.Td,function(d){d=d.target||d.srcElement;d.mode=_.we;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.l.append(d,[]))}))};_.Qp=function(a,b){for(var c=Pp[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===_.Gn?"":null};
235
+ _.Sp=function(a,b,c){return a.map(function(d){d=_.En(d)||"";return(d=_.Rp[b][d])?d:b===_.Gn?c&&"vtt"!==c?_.Mc:_.ug:null}).filter(Boolean)[0]||null};_.Tp=function(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d};_.T=function(a,b,c,d){d=void 0===d?{}:d;a=a.getAttribute(b);if(!a&&d.required)throw new _.O(_.P,4,4023,"Required attribute missing: "+b);return a?a.value:c||null};_.Up=function(a,b){return _.T(a,b,void 0,{required:!0})};
236
+ _.Vp=function(a,b){this.name=a;this.value=b};
237
+ _.Wp=function(a,b,c,d,e,f,g,k,l,m,n,p,q,t,u,z,B){l=void 0===l?!1:l;m=void 0===m?null:m;n=void 0===n?null:n;p=void 0===p?null:p;q=void 0===q?null:q;t=void 0===t?[]:t;u=void 0===u?null:u;z=void 0===z?function(){return""}:z;this.position=a;this.startTime=b;this.endTime=c;this.Ta=g;this.Ia=d;this.la=e;this.ga=f;this.keyInfo=(void 0===k?null:k)||null;this.Ed=_.N.R(l)?!1:!!l;this.timescale=m;this.horizontalTiles=n;this.verticalTiles=p;this.durationPerTile=q;this.a=t||[];this.h=!1;this.initSegment=u;this.Jd=
238
+ z?z:function(){return""};this.Oa=B};_.Xp=function(a,b,c,d,e,f,g,k,l,m,n,p,q,t,u){t=void 0===t?[]:t;_.Wp.call(this,a,b,c,d,e,f,g,void 0===k?null:k,void 0===l?!1:l,void 0===m?null:m,void 0===n?null:n,void 0===p?null:p,void 0===q?null:q,t,void 0===u?null:u);this.ka=0};_.Yp=function(a){if(typeof a!==_.ng)return null;var b=a.trim().match(/^(\d+)x(\d+)$/);if(!b)return null;a=parseInt(b[1],10);b=parseInt(b[2],10);return 0>=a||0>=b?null:{De:a,bf:b,jp:a*b}};Zp=function(){this.h=this.a=this.f=null;this.g=new _.M("clpp.drm.csl")};
239
+ $p=function(a,b){3===b.type&&(a.h?(a.g.debug("Attaching session token as Bearer"),b.headers.Authorization="Bearer "+a.h,delete b.headers[ih]):a.f&&(a.g.debug("Attaching tracking token"),b.headers[kh]=a.f),a.a&&(b.headers[lh]=a.a))};
240
+ bq=function(a,b){if(b.request&&3===b.request.type){var c=b.headers[_.oh],d=b.headers[_.nh];if(c){a.h=c;a.g.debug("Loaded session token");a.f=b.headers[kh]||null;a.a=b.headers[lh]||null;if(d){try{try{var e=JSON.parse(_.R.ea(_.Pm(d)))}catch(m){e=JSON.parse(d)}var f=e.renewal;if(f){var g=f.retryInterval||10,k=f.graceDuration||60;a.g.debug("Parsed session info: interval\x3d"+f.interval+"s, retryInterval\x3d"+g+"s, graceDuration\x3d"+k+"s");var l={delay:f.interval,xk:{maxAttempts:Math.ceil(k/g),baseDelay:1E3*
241
+ g,backoffFactor:1,fuzzFactor:0,timeout:0}}}else a.g.warn("Session info missing renewal data"),l=null}catch(m){a.g.warn("Unable to parse session info",m),l=null}return l}return(c=b.headers[jh])?aq(a,c):null}a.h=null;a.f=b.headers[kh];a.a=b.headers[lh];c=b.headers[jh];a.f&&a.g.debug("Loaded tracking token "+a.f);a.a&&a.g.debug("Loaded followup token "+a.a);if(c)return aq(a,c)}return null};
242
+ aq=function(a,b){try{var c=JSON.parse(_.R.ea(_.Pm(b)));return{delay:c.renewalPeriod,xk:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}catch(d){return a.g.warn("Failed to parse legacy renewal info",d),null}};_.dq=function(a){a=_.cq[a];if(!a)return null;var b=_.Qj();return b.os===Gj&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.eq=function(a){this.J=a;this.f={}};
243
+ _.$n=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.f[_.Md];g&&(c[_.Md]={licenseUrl:g.licenseUrl,videoRobustness:yn(d,g.videoRobustness),audioRobustness:yn(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:xn(b?b.widevineDistinctiveIdentifierRequired:void 0,g.distinctiveIdentifierRequired,!1),persistentStateRequired:xn(b?b.widevinePersistentStateRequired:void 0,g.persistentStateRequired,!1),
244
+ serverCertificate:_.fq(f,g.serverCertificate)});(g=a.f[_.Id])&&(c[_.Id]={licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.f[_.Kd])&&(c[_.Kd]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});return c};
245
+ _.fq=function(a,b){return void 0===a?b:null===a?null:typeof a===_.ng?_.dq(a):a};_.gq=function(a,b){b=void 0===b?!1:b;this.f=_.N.ya(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.h=b;this.buffer=this.f.buffer};_.iq=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.Vi(a.f.buffer);b=_.Vi(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.hq()}};_.W=function(a,b){try{a.f.setUint32(a.a,b,a.h),a.a+=4}catch(c){_.hq()}};_.hq=function(){throw new _.O(_.P,3,3E3);};
246
+ _.jq=function(a,b){this.f=a;this.h=void 0===b?!0:b;this.a=0};_.kq=function(a){return a.a<a.f.byteLength};_.mq=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.lq()}};_.nq=function(a){try{var b=a.f.getUint16(a.a,a.h);a.a+=2;return b}catch(c){_.lq()}};_.oq=function(a){try{var b=a.f.getUint32(a.a,a.h);a.a+=4;return b}catch(c){_.lq()}};_.pq=function(a){try{var b=a.f.getInt32(a.a,a.h);a.a+=4;return b}catch(c){_.lq()}};
247
+ _.qq=function(a){var b=0,c=0;try{!0===a.h?(b=a.f.getUint32(a.a,!0),c=a.f.getUint32(a.a+4,!0)):(c=a.f.getUint32(a.a,!1),b=a.f.getUint32(a.a+4,!1))}catch(d){_.lq()}if(2097151<c)throw new _.O(_.P,3,3001);a.a+=8;return c*Math.pow(2,32)+b};rq=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.mq(a);return c};_.sq=function(a,b){a.a+b>a.f.byteLength&&_.lq();var c=a.a+a.f.byteOffset;c=a.f.buffer.slice(c,c+b);a.a+=b;return _.Vi(c)};
248
+ _.lq=function(){throw new _.O(_.P,3,3E3,"Buffer read out of bounds.");};_.tq=function(){this.h=[];this.f=[];this.a=!1;this.g=new _.M("clpp.mp4")};_.uq=function(a){for(;_.kq(a.reader)&&!a.parser.a;)a.parser.ag(a.start+a.headerSize,a.reader,a.partialOkay)};_.vq=function(a){for(var b=_.oq(a.reader);0<b&&!a.parser.a;--b)a.parser.ag(a.start+a.headerSize,a.reader,a.partialOkay)};_.wq=function(a){return function(b){var c=b.reader.cb()-b.reader.getPosition();a(_.sq(b.reader,c))}};
249
+ xq=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.yq=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};_.zq=function(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)};Aq=function(){};Bq=function(a){var b="";try{b=_.R.we(a)}catch(c){}return b};_.Cq=function(a){a=Bq(a);var b="";a.length&&(b=(new _.zn(a)).a);return b};
250
+ Dq=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.R.ea(a)),d=_.Pm(c.sinf[0]);(new _.tq).N(_.gg,_.uq).N("schi",_.uq).N("tenc",function(e){e.reader.skip(6);_.mq(e.reader)&&(e.reader.skip(1),b=_.Rm(_.sq(e.reader,16)));e.parser.stop()}).parse(d)}catch(e){}return b};
251
+ Eq=function(a,b,c){if(!c||!c.byteLength)throw new _.O(_.P,6,6102);var d;typeof b===_.ng?d=_.R.kg(b,!0):d=b;a=_.R.kg(Bq(a),!0);b=new _.gq(12+a.byteLength+d.byteLength+c.byteLength,!0);_.W(b,a.byteLength);_.iq(b,_.Vi(a));_.W(b,d.byteLength);_.iq(b,_.Vi(d));_.W(b,c.byteLength);_.iq(b,_.Vi(c));return _.Vi(b.buffer)};_.Fq=function(a){var b=_.Vi(a.body);b=_.Om(b);a.headers[Ba]=Rc;a.body=_.R.ub("spc\x3d"+b).buffer};
252
+ _.Gq=function(a){try{var b=_.R.ea(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=bj(_.Pm(b))};Hq=function(){};
253
+ Nq=function(){var a=Iq;if(a===Jq)return"https://lic.drmtoday.com";if(a===Kq)return"https://lic.staging.drmtoday.com";if(a===Lq)return"https://lic-demo.staging.drmtoday.com";if(a===Mq)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};Rq=function(a){var b=Nq();if(a===_.Md)return b+Oq;if(a===_.Kd)return b+Pq;if(a===_.Id)return b+Qq;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
254
+ br=function(a,b,c){function d(g,k){return g?g.startsWith(_.ze)||g.startsWith(_.Ae)?g:b+g:b+k}var e=Sq(),f=Tq();b.endsWith("/")||(b+="/");c=c||{};a=new _.eq(a);a.Ma(_.Md,{licenseUrl:d(c.widevineUrl,Oq),videoRobustness:e.video,audioRobustness:e.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:_.Uq,licenseResponse:_.Vq}});a.Ma(_.Id,{licenseUrl:d(c.fairplayUrl,Qq),certificateUrl:d(c.fairplayCertificateUrl||c.fairplayUrl,Wq),modifiers:{licenseRequest:_.Xq,
255
+ licenseResponse:_.Yq,extractContentId:_.Zq,certificateRequest:_.$q}});a.Ma(_.Kd,{licenseUrl:d(c.playreadyUrl,Pq),videoRobustness:f.video,audioRobustness:f.audio,modifiers:{licenseRequest:ar}});_.Zn(a)};Sq=function(){return{video:[Ra,Ta,Sa,_.Db,_.Cb],audio:[Ra,Ta,Sa,_.Db,_.Cb]}};Tq=function(){return{video:["3000","2000","150"],audio:["2000","150"]}};cr=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
256
+ _.Zq=function(a,b,c){b=Bq(b);c=c&&c.customData?c.customData:{};b=new _.zn(cr(b));var d=Cn(b.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.R.Tf(""+a)&&(d.assetId=a,dr.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.R.Tf(""+e)&&(d.variantId=e,dr.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],dr.debug("KeyId found in FPS SKD. Removing other parameters")):
257
+ a=["assetId","variantId"];b.f=_.Bn(d,!1,a);"/"!==b.path||b.j.includes(b.a+"/")||(b.path="");b=_.An(b);return c.fpsContentId=b};_.Uq=function(a,b,c,d){d=void 0===d?!0:d;c=a.drm;c&&c.env.startsWith(Ga)?c.customData&&(_.er(b,a),a=b.uris[0],d&&c.customData.assetId&&(a+="?assetId\x3d"+encodeURI(""+c.customData.assetId),c.customData.variantId&&(a+="\x26variantId\x3d"+encodeURI(""+c.customData.variantId)),b.uris[0]=a)):dr.warn(hb)};
258
+ ar=function(a,b,c){_.Uq(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.tm(b.uris[0]);c.a.searchParams.set(_.mf,a.toString());b.uris[0]=c.toString()};
259
+ _.Xq=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.Uq(a,b,c,!1);b.headers[Ba]=Rc;c={spc:_.Nm(b.body)};if((a=a.drm)&&a.env.startsWith(Ha)&&d){a={};var e=Cn((new _.zn(cr(d))).f);d=e.keyId;if(e=e.assetId)dr.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(dr.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(dr.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(dr.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
260
+ _.R.Yd(_.Bn(c,!0))};_.Yq=function(a,b){dr.debug("Clearing response data");if(200===b.status){var c=_.R.ea(b.data).trim();"\x3cckc\x3e"===c.substr(0,5)&&"\x3c/ckc\x3e"===c.substr(-6)&&(c=c.slice(5,-6));b.data=_.Pm(c).buffer}};_.$q=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(Ga))dr.warn(hb);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(Ha)){var d=new _.tm(b.uris[0]),e=d.a.pathname;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.a.pathname=e;b.uris[0]=d.toString()}};
261
+ _.Vq=function(a,b){try{var c=_.Vi(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));dr.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){dr.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};
262
+ _.er=function(a,b){var c=b.drm;if(c&&c.customData){var d={userId:c.customData.userId,sessionId:c.customData.sessionId,merchant:c.customData.merchant};_.N.Zb(d)&&(a.headers["dt-custom-data"]=btoa(JSON.stringify(d)));(c=c.customData.authToken)&&(a.headers[ih]=c)}};gr=function(a){var b={},c=a?a[mh]:void 0;a=fr[a?a[mh]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};
263
+ hr=function(a){a=a["x-dt-li"];if(!a)return null;try{var b=JSON.parse(atob(a));a={};b.ti&&(a.requestId=b.ti);b.rpd&&(a.delay=Number(b.rpd)/1E3);return a}catch(c){return dr.warn("Unable to parse DRMtoday License Info header (x-dt-li)",c),null}};_.ir=function(a){this.f=a;this.a=void 0};jr=function(){this.size=0;this.a=void 0;this.g=new _.M("clpp.drm.eme.MediaKeyStatusMap")};kr=function(a,b){a.size=void 0===b?0:1;a.g.debug("Setting key status to",b);a.a=b};
264
+ mr=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=lr.value().get(b),c.one(a,b,d))};nr=function(){this.a=this.f=null};
265
+ or=function(a,b){this.keySystem=a;if(a.startsWith(_.Id))for(var c=_.v(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.Uf)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.hf,distinctiveIdentifier:_.hf,initDataTypes:e.initDataTypes,sessionTypes:[_.sg],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var k=_.v(e.audioCapabilities),l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&
266
+ (d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.v(e.videoCapabilities),l=e.next();!l.done;l=e.next())k=l.value,k.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,k.contentType.split(";")[0])&&(d.videoCapabilities.push(k),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,_.Vg));d=g?d:null}if(d){this.a=d;return}}c=Error(Rb);c.name=pb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
267
+ pr=function(a){this.f=null;this.h=new WebKitMediaKeys(a);this.a=new _.Bi;this.j=0;this.g=new _.M(Ad);this.g.info("Created Media Keys for "+a)};
268
+ qr=function(a,b){a.f=b;_.Ei(a.a);if(!b)return Promise.resolve();a.a.on(b,ne,function(c){_.$h("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);"MediaEncryptedEvent"in window&&c instanceof MediaEncryptedEvent&&(a.g.info("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.a.on(b,gh,function(c){a.g.debug("Handle webkitNeedKey event");c=_.Vi(c.initData);if(_.aj(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
269
+ c=_.R.Yc(c.subarray(4),!0);c=_.R.ub(c);var d=new Event(ne);d.initDataType="skd";d.initData=bj(c);a.f.dispatchEvent(d)});mr(b,HTMLMediaElement.HAVE_METADATA,a.a,function(){return b.webkitSetMediaKeys(a.h)});return Promise.resolve()};rr=function(a,b){_.Ii.call(this);this.a=null;this.o=a;this.f=this.h=null;this.j=new _.Bi;this.sessionId=b;this.expiration=NaN;this.closed=new _.rm;this.l=!1;this.keyStatuses=new jr;this.g=new _.M(Ad)};sr=function(a,b){kr(a.keyStatuses,b);a.dispatchEvent(new _.Q(De))};
270
+ tr=function(){};ur=function(){this.a=null;this.g=new _.M("clpp.drm.eme.StandardEmeManager")};vr=function(){};wr=function(){this.f=this.a=null;this.h="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.h="webkit")};
271
+ xr=function(a,b,c,d){this.h=a;this.a=this.keySystem=c;a=!1;c===_.jf&&(this.a=ch,a=!1);var e=!1;d=_.v(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=[],k=[],l=!1;if(f.audioCapabilities)for(var m=_.v(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=_.v(f.videoCapabilities),n=g.next();!n.done;n=g.next())m=n.value,m.contentType&&(l=!0,b.canPlayType(m.contentType,
272
+ this.a)&&(k.push(m),e=!0));l||(e=b.canPlayType(_.Vg,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.Uf||a||(e=!1);if(e){this.f=f;return}}b=Rb;if(c===_.jf||c===_.Md)b="None of the requested configurations were supported.";c=Error(b);c.name=pb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};yr=function(a,b){this.h=a;this.o=b;this.a=null;this.f=new _.Bi;this.j=[];this.l=new Map};
273
+ Br=function(a,b){a.a=b;_.Ei(a.f);b&&(a.f.on(b,a.h+"needkey",function(c){var d=new Event(ne);d.initDataType=_.md;d.initData=bj(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.h+"keymessage",function(c){var d=zr(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.Q(_.Re,{messageType:e?Ge:Fe,message:c.message});_.$h("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.ai("Session not found",c.sessionId)}),a.f.on(b,a.h+"keyadded",function(c){(c=
274
+ zr(a,c.sessionId))&&c.ready()}),a.f.on(b,a.h+"keyerror",function(c){var d=zr(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?Ar(d,_.kf):1===e?Ar(d,"expired"):Ar(d,_.Ce))}}))};
275
+ zr=function(a,b){var c=a.l.get(b);return c?c:(c=a.j.shift())?(c.sessionId=b,a.l.set(b,c),c):null};Cr=function(a,b,c,d){_.Ii.call(this);this.w=a;this.j=b;this.o=!1;this.a=this.f=null;this.h=c;this.l=d;this.sessionId="";this.expiration=NaN;this.closed=new _.rm;this.keyStatuses=new jr};
276
+ Er=function(a,b,c){if(a.o)return Promise.reject(Error("The session is already initialized."));a.o=!0;try{if(a.l===_.nf)if(c)var d=_.Vi(_.R.ub("LOAD_SESSION|"+c));else{var e=_.R.ub("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.Vi(b),e.byteLength);d=f}else d=_.Vi(b)}catch(k){return Promise.reject(k)}a.f=new _.rm;var g=Dr(a,"generateKeyRequest");try{a.j[g](a.h,d)}catch(k){if(k.name!==Xa)return a.f=null,Promise.reject(k);(new _.lj(function(){try{a.j[g](a.h,d)}catch(l){a.f.reject(l),
277
+ a.f=null}})).ia(.01)}return a.f};Fr=function(a,b,c){if(a.a)a.a.then(function(){return Fr(a,b,c)})["catch"](function(){return Fr(a,b,c)});else{a.a=b;if(a.h===ch){var d=_.R.ea(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=_.Pm(e.keys[0].k);e=_.Pm(e.keys[0].kid)}else d=_.Vi(c),e=null;var f=Dr(a,"addKey");try{a.j[f](a.h,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};Ar=function(a,b){kr(a.keyStatuses,b);a.dispatchEvent(new _.Q(De))};
278
+ Dr=function(a,b){return a.w?a.w+b.charAt(0).toUpperCase()+b.slice(1):b};Gr=function(){};Hr=function(){};Ir=function(){};Jr=function(){};Mr=function(a,b){var c=Kr;if(a){var d=c.find(function(e){return e.a()===a});if(d)return Lr.info(Zb+d.a()),d.create();Lr.info("Cannot create selected EME manager, falling back to the default.")}if(b&&(d=c.find(function(e){return e.a()===b})))return Lr.info(Zb+d.a()),d.create();c=c[0];if(!c)throw Error("Missing EME managers.");Lr.info(Zb+c.a());return c.create()};
279
+ _.Nr=function(){};Or=function(a,b,c){this.j=new Uint8Array(a);this.a=b;this.f=c};Pr=function(){Or.apply(this,arguments)};_.Rr=function(a){var b=_.Qm(a);b=parseInt(b.byteLength,10).toString(16);b=_.Qm("12"+b+a);return new Pr(Qr,a,b)};
280
+ _.Sr=function(a){function b(t){switch(t){case 0:do if(!_.kq(d))throw Error("not enough data to skip!");while(_.mq(d)&128);break;case 1:d.skip(8);break;case 2:d.skip(c());break;case 3:for(;4!==(t=c()&7);)b(t);break;case 5:d.skip(4);break;default:throw Error("invalid wire type "+t);}}function c(){for(var t=_.mq(d),u=(t&127)>>>0,z=7;128<=t&&28>=z;)t=_.mq(d),u=(u|(t&(28>z?127:15))<<z)>>>0,z+=7;return 28<z?-1:u}var d=new _.jq(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.oq(d);var e=_.oq(d);
281
+ e=_.yq(e);var f=_.oq(d),g=f>>>24;f&=16777215;var k=_.sq(d,16);k=_.Rm(k);if(0<g){var l=_.oq(d);d.skip(16*l)}l=_.oq(d);for(var m=[],n=null;_.kq(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=rq(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.$h("Parsed WV PSSH Box","size",a,"name",e,Qg,g,"flags",f,"size",l,"systemId",k,"contentId (base64)",n?_.Nm(n):"","keyIds",m.map(function(t){return _.Rm(t)}));return 0<m.length?_.Rr(_.Rm(m[0])):null};
282
+ _.Tr=function(a,b,c,d,e,f){f=void 0===f?null:f;Or.call(this,a,b,d);this.version=e;this.h=c;this.l=f};
283
+ _.Zr=function(a){var b=_.Ur;a:{var c=new _.jq(new DataView(a.buffer),!0);_.oq(c);for(_.nq(c);_.kq(c);)if(1===_.nq(c)){var d=_.nq(c);c=_.sq(c,d);break a}c=null}c||(c=a);a=_.R.Yc(c,!0);d=b.Te(a,"WRMHEADER");a=d.getAttribute(Qg)||"";d=b.Qa(d,"DATA");var e=b.Qa(d,"LA_URL");b=e?b.va(e):"";e=_.Ur;var f=e.Qa(d,"KID");if(f)if(f=e.va(f)){var g=e.Qa(d,ra);e=g?e.va(g):null;e={value:f,Cg:e}}else e=null;else e=null;d=e?[e]:(e=Vr(d))?[e]:(d=Wr(d))?d:null;e=d&&d[0]||{};d=e.Cg;e=_.Pm(void 0===e.value?"":e.value);
284
+ e=_.Xr(e);e=_.Rm(e);return new _.Tr(_.Yr,e,b,c,a,d)};_.Xr=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=_.Vi(a);a.set(b,0);return a};Vr=function(a){var b=_.Ur;a=b.Qa(a,"PROTECTINFO");if(!a)return null;var c=b.Qa(a,"KID");if(!c)return null;b=c.getAttribute("VALUE");if(!b)return null;a=c.getAttribute(ra);c=c.getAttribute("ALGID");return{value:b,Cg:a,vk:c}};
285
+ Wr=function(a){var b=_.Ur;a=b.Qa(a,"PROTECTINFO");if(!a)return null;a=b.Qa(a,"KIDS");if(!a)return null;a=b.aa(a,"KID");if(!a.length)return null;b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;if(c=d.getAttribute("VALUE")){var e=d.getAttribute(ra);d=d.getAttribute("ALGID");b.push({value:c,Cg:e,vk:d})}}return b.length?b:null};$r=function(a){this.f=[];this.h=[];this.a=[];8<=a.byteLength&&(new _.tq).da("pssh",this.j.bind(this)).parse(a.buffer);0===this.a.length&&_.Vh("No pssh box found!")};
286
+ _.ds=function(a,b){var c=this;this.F=a;this.gc=b;this.K=new Set;this.D=this.J=this.l=null;this.X=!1;this.a=null;this.L=as;this.B=new _.Bi;this.P=new Zp;this.h=new Map;this.M=[];this.I=new _.rm;this.Tb=0;this.f=null;this.w=function(d){c.A=!0;c.G=!1;c.I.reject(d);a.onError(d)};this.o=new Map;this.ma=new Map;this.ba=new _.lj(function(){return bs(c)});this.j=!1;this.Ba=new _.rm;this.H=!1;this.ha=[];this.Va=!1;this.W=0;this.g=new _.M("clpp.drm.DrmEngine");this.Aa=(new _.lj(function(){cs(c)})).Rb(1);this.I["catch"](function(){});
283
287
  this.A=this.G=!1;this.T=null};
284
- Xr=function(a){var b,c,d,e,f;return _.I(function(g){switch(g.a){case 1:a.B.release();a.B=null;a.P.release();a.P=null;a.A=!1;a.G=!1;a.I.reject();a.Aa.stop();a.Aa=null;a.ba.stop();a.ba=null;b=Array.from(a.h.keys());c=_.v(a.h.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.ud&&e.ud.stop();a.h.clear();return _.x(g,Promise.all(b.map(function(k){return Promise.resolve().then(function(){var l;return _.I(function(m){if(1==m.a)return a.g.debug("Closing session",k.sessionId),_.F(m,2),_.x(m,Wr(k),4);
285
- if(2!=m.a)return _.G(m,0);l=_.H(m);a.g.warn("Error while closing session",l);_.A(m)})})})),2);case 2:if(!a.D){g.C(3);break}_.F(g,4);return _.x(g,a.l.ae(null),6);case 6:_.G(g,5);break;case 4:f=_.H(g),a.g.warn("Error while resetting media keys",f);case 5:a.D=null;case 3:a.l=null,a.a=null,a.K.clear(),a.J=null,a.M=[],a.f=null,a.w=null,a.F=null,a.W=0,a.T=null,_.A(g)}})};
286
- _.$r=function(a,b,c){c=void 0===c?[]:c;a.L=Yr;a.M=c;a.H=0<c.length;a.g.debug("Using Persisted Licenses: "+a.H);a.f&&a.f.enableSessionCacheForSkd&&a.g.info("Enabled session cache for SKD license requests");return _.Zr(a,b)};
287
- fs=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.N.Bh(a.f.Ua);as(b,d)}var e=a.f.Ua[_.Id];d=b.some(function(g){return g.drmInfos.some(function(k){return k.keySystem===_.Id})});if(!1!==a.f.Gp&&_.oj()&&!d&&e){var f=_.v(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos.push({keySystem:_.Id,licenseServerUri:e.licenseUrl,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[],
288
- periodId:null})}if(e=bs(a))for(f=_.v(b),d=f.next();!d.done;d=f.next())d.value.drmInfos=[e];d=cs(b);ds(a,d);d=_.v(d);for(e=d.next();!e.done;e=d.next())es(e.value,a.f.Ua);return c};_.Zr=function(a,b){var c=fs(a,b),d=cs(b);d=_.v(d);for(var e=d.next();!e.done;e=d.next())gs(a,e.value,a.f.Ua);d=hs(a,b);if(!d.size)return a.X=!0,Promise.resolve();_.gn($d);d=_.is(a,d);return(c?d:d["catch"](function(){})).then(function(){_.gn(Zd);_.jn("DRM queryMediaKeys_()",$d,Zd)})};
289
- cs=function(a){var b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next()){c=_.v(c.value.drmInfos);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};ds=function(a,b){for(var c=_.v(b),d=c.next();!d.done;d=c.next())d=d.value,""===d.licenseServerUri||a.f.Ua[d.keySystem]||(a.f.Ua[d.keySystem]={licenseUrl:""})};
290
- js=function(a){var b;return _.I(function(c){switch(c.a){case 1:if(a.l.yf())return c["return"]();if(!a.T){c.C(2);break}return _.x(c,a.T,3);case 3:return c["return"]();case 2:return _.F(c,4),a.T=a.l.ae(a.J),_.x(c,a.T,6);case 6:_.G(c,0);break;case 4:b=_.H(c);if(a.j)return c["return"]();a.w(new _.O(_.P,6,6003,b.message,b));_.A(c)}})};
291
- ls=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Handle encrypted event for type "+b.initDataType),_.x(c,js(a),2);if(!b.initData)return c["return"]();_.ks(a,b.initDataType,_.Qi(b.initData));_.A(c)})};
292
- _.rs=function(a,b){if(!a.J)return xi(a.B,b,function(){a.w(new _.O(_.P,6,6010))}),Promise.resolve();a.D=b;a.l.mf(b);a.B.one(a.D,_.pf,function(){return ms(a)});a.B.on(a.D,_.ah,function(e){var f=a.G;a.G=!a.A;!f&&a.G&&(a.g.info("Waiting for DRM license key delivery"),a.F.onEvent(e))});var c=a.a.initData.find(function(e){return 0<e.initData.length}),d=Promise.resolve();if(c||a.l.$d()!==ns||a.M.length)d=js(a);c=Promise.resolve();_.mj()&&38===_.Jj().major||(a.a&&a.a.keySystem!==_.jf&&!a.a.serverCertificate&&
293
- (c=os(a)),c=c.then(function(){return _.ps(a)}));return Promise.all([d,c]).then(function(){a.j||(_.qs(a),a.B.on(a.D,ne,function(e){return ls(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.a&&a.a.keySystem===_.Md&&1>a.W&&a.a.serverCertificate&&a.a.serverCertificate.length)return a.g.warn("Detected invalid widevine server certificate!. Retrying"),a.w(new _.O(1,6,6004)),a.a.serverCertificate=null,a.W++,_.rs(a,b);1<=a.W&&a.g.info("Could not get valid widevine server certificate. Giving up");
294
- throw e;}})};_.ps=function(a){var b,c;return _.I(function(d){if(1==d.a){if(!(a.J&&a.a&&a.a.serverCertificate&&a.a.serverCertificate.length))return d.C(0);_.F(d,3);return _.x(d,a.J.setServerCertificate(a.a.serverCertificate),5)}if(3!=d.a)return b=d.f,void 0===b||b||a.g.debug("Server certificates are not supported by the key system. The server certificate has been ignored."),_.G(d,0);c=_.H(d);throw new _.O(_.P,6,6004,{browserError:c.message});})};
295
- os=function(a){var b=a.keySystem(),c=a.f.Ua[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.F.getConfiguration();return ss(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,k=f&&f.certificateResponse;f=_.Zk([d],a.f.attemptParameters);f.type=3;f.licenseRequestType=nd;g&&f.requestModifiers.push(function(l){return g(e,l)});k&&f.responseModifiers.push(function(l){return k(e,l)});a.g.debug("Fetching certificate");return a.F.Kb.fetch(f).U}).then(function(f){a.a.serverCertificate=
296
- _.Qi(f.data)})["catch"](function(f){var g=f.data.headers;g=Object.assign({message:Na,url:f.data.url,status:f.data.status,response:f.data.response},g?{headers:g}:{},Yq(g));throw new _.O(_.P,6,6100,g,f);})};ss=function(a,b){var c,d;return _.I(function(e){c=a.F.yd();return c?(d=b&&b.drm&&b.drm.customData)?_.x(e,c(d),0):e["return"]():e["return"]()})};ts=function(a,b){if(!a)return!1;for(var c=0;c<b.tf.length;c++)if(_.Om(a,b.tf[c]))return!0;return!1};
297
- _.qs=function(a){for(var b=a.a?a.a.initData||[]:[],c=_.v(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.lj(2);if(a.f.enforceSingleSession&&!a.keySystem().startsWith(_.Id)){var f=a.h.values();f=_.v(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.Om(d.initData,g.initData)?(a.g.info("Skipping Session creation. Existing init data in single session mode!"),e=!1):g.periodId===d.periodId&&(a.g.info("Skipping Session creation. Merging init data for period in single session mode for Key ID "+(d.keyId+
298
- ".")),ts(d.initData,g)||(g.tf.push(d.initData),d.keyId&&!g.Db.includes(d.keyId)&&g.Db.push(d.keyId),a.o.get(d.keyId)||a.o.set(d.keyId,jg)),e=!1)}!e||a.H&&a.L===Yr||(_.us(a,d.keyId,d.initData)&&(e=!1),e&&(a.g.info("Request new media key session on create"),vs(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.v(a.M);for(d=c.next();!d.done;d=c.next())_.ws(a,d.value);b.length||a.M.length||(a.A||a.g.info(Ea),a.A=!0,a.G=!1,a.I.resolve());return a.I};
299
- _.ks=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.H||a.L!==Yr)){var e=a.keySystem();if(!e.startsWith(_.Id)&&b===_.ld){var f=new Rr(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.D.webkitCurrentPlaybackTargetIsWireless||
300
- _.lj(2)||a.keySystem().startsWith(_.Id)||!_.us(a,d,c,!0))&&vs(a,d,null,b,c)}};
301
- _.us=function(a,b,c,d){d=void 0===d?!1:d;for(var e=_.v(a.h.keys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.h.get(f);if(_.Om(c,g.initData))return b?g.Db.includes(b)?d&&a.g.info("Skipping Session creation. License for init data with Key ID "+(b+" was already requested in Session: '")+(f.sessionId+"'. ")):(g.Db.push(b),a.o.get(b)||a.o.set(b,jg),d&&a.g.info(Ib+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.g.info(Ib+(f.sessionId+"'")),!0;if(ts(c,g))return d&&a.g.info("Skipping Session creation. License for init data was already requested [extra]"),
302
- !0}return!1};xs=function(a){var b=Infinity;a=a.h.keys();a=_.v(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};
303
- hs=function(a,b){var c=new Set(cs(b)),d=a.H?_.Sf:_.hf,e=a.H?[_.nf]:[qg],f=new Map,g=_.v(c);for(c=g.next();!c.done;c=g.next())c=c.value,f.set(c.keySystem,{initDataTypes:[_.ld],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.hf,persistentState:d,sessionTypes:e,label:c.keySystem,drmInfos:[]});d={};e=_.v(b);for(c=e.next();!c.done;d={cg:d.cg,Qd:d.Qd,ig:d.ig,Rd:d.Rd},c=e.next()){c=c.value;g=c.audio;var k=c.video;d.cg=g?_.ys(g):"";d.Qd=null;g&&"ac-3"===g.codecs.toLowerCase()&&_.lj()&&(d.Qd=
304
- _.ys(g,_.me));d.ig=k?_.ys(k):"";d.Rd=null;k&&"ac-3"===k.codecs.toLowerCase()&&_.lj()&&(d.Rd=_.ys(k,_.me));var l={},m=_.v(c.drmInfos);for(c=m.next();!c.done;l={ub:l.ub},c=m.next())c=c.value,l.ub=f.get(c.keySystem),l.ub.drmInfos.push(c),c.initData&&c.initData.length&&(l.ub.initDataTypes=_.ph(new Set(c.initData.map(function(n){return n.initDataType}))).concat()),c.distinctiveIdentifierRequired&&(l.ub.distinctiveIdentifier=_.Sf),c.persistentStateRequired&&(l.ub.persistentState=_.Sf),g&&_.Ii(c.audioRobustness).forEach(function(n,
305
- p){return function(q){var t={robustness:q||"",contentType:n.cg};p.ub.audioCapabilities.find(function(u){return u.robustness===t.robustness&&u.contentType===t.contentType})||p.ub.audioCapabilities.push(t);n.Qd&&p.ub.audioCapabilities.push({robustness:q||"",contentType:n.Qd})}}(d,l)),k&&_.Ii(c.videoRobustness).forEach(function(n,p){return function(q){var t={robustness:q||"",contentType:n.ig};p.ub.videoCapabilities.find(function(u){return u.robustness===t.robustness&&u.contentType===t.contentType})||
306
- p.ub.videoCapabilities.push(t);n.Rd&&p.ub.videoCapabilities.push({robustness:q||"",contentType:n.Rd})}}(d,l))}return f};_.ys=function(a,b){var c=_.En(a.mimeType,b||a.codecs);if(_.qn(c,a.type)){var d=a.type,e=_.qn(c,d);e&&(e=e(),c=e.convertCodecs(d,c),e.destroy())}return c};
307
- _.is=function(a,b){function c(n,p,q){p.drmInfos.some(function(t){return!!t.licenseServerUri})===n&&(f=f["catch"](function(){if(a.j)return null;if(q===_.Kd){if((_.jj()||g.os===Dj&&_.kj("Chrome")&&!_.jj())&&!a.f.Ua[q].useLegacySystem)return p.label=Ld,a.l.fc(Ld,[p])["catch"](function(){a.g.warn("Unable to create com.microsoft.playready.recommendation. Falling back to com.microsoft.playready.");p.label=_.Kd;zs(p);return a.l.fc(q,[p])});zs(p)}if(q===_.Md&&a.f.widevineVersion!==_.Md){var t=a.f.widevineVersion;
308
- if(!t.startsWith(_.Md))return a.g.error('Invalid "widevineVersion" value "'+t+'".'),Promise.reject();var u=Object.assign({},p,{label:t,distinctiveIdentifier:_.hf,persistentState:_.hf});return a.l.fc(t,[u])["catch"](function(){return a.l.fc(q,[p])})}return a.l.fc(q,[p])["catch"](function(y){a:{if(q===_.Md&&As(p)){var C=_.Lj();if(As(p)&&C.os===Bj&&C.browser===pd){a.g.warn("requestMediaKeySystemAccess() failed",y);a.g.warn("Will try to recover by removing the robustness attribute of videoCapabilities and audioCapabilities.");
309
- zs(p);y=a.l.fc(q,[p]);break a}}throw y;}return y})}))}if(1===b.size&&b.has(""))return Promise.reject(new _.O(_.P,6,6E3));null===a.l&&(a.l=Dr(a.f.emeApi,a.dc));for(var d=_.v(b.values()),e=d.next();!e.done;e=d.next())e=e.value,0===e.audioCapabilities.length&&delete e.audioCapabilities,0===e.videoCapabilities.length&&delete e.videoCapabilities;var f=d=new _.nm,g=_.Lj(),k=a.f.preferredDrmSystem;if(!k)if(e=_.Lj(),e.os===Dj&&10<=e.osVersion.major&&"edge"===e.browser)k=_.Kd;else if("safari"===e.browser)k=
310
- _.Id;else if(e.browser===pd||"firefox"===e.browser)k=_.Md;k&&(e=b.get(k))&&(c(!0,e,k),c(!1,e,k));e={};for(var l=_.v([!0,!1]),m=l.next();!m.done;e={gg:e.gg},m=l.next())e.gg=m.value,b.forEach(function(n){return function(p,q){q!==k&&c(n.gg,p,q)}}(e));f=f["catch"](function(){throw new _.O(_.P,6,6001,"Failed to get MediaKeySystemAccess.");});f=f.then(function(n){if(a.j)return null;a.K.clear();var p=n.getConfiguration();a.g.info("Got MediaKeySystemAccess with configuration",p);var q=p.videoCapabilities||
311
- [],t=_.v(p.audioCapabilities||[]);for(p=t.next();!p.done;p=t.next())a.K.add(p.value.contentType.toLowerCase());q=_.v(q);for(p=q.next();!p.done;p=q.next())a.K.add(p.value.contentType.toLowerCase());q=n.keySystem;p=b.get(_.Bs(n.keySystem));t=[];var u=[],y=[],C=[];Cs(p.drmInfos,t,u,y,C);1<u.length&&_.Qh("Multiple unique server certificates found! Only the first will be used.");1<t.length&&_.Qh("Multiple unique license server URIs found! Only the first will be used.");a.a={keySystem:q,licenseServerUri:t[0],
312
- distinctiveIdentifierRequired:p.distinctiveIdentifier===_.Sf,persistentStateRequired:p.persistentState===_.Sf,audioRobustness:p.audioCapabilities?p.audioCapabilities[0].robustness:"",videoRobustness:p.videoCapabilities?p.videoCapabilities[0].robustness:"",serverCertificate:u[0],initData:y,keyIds:C,periodId:null};if(!a.a.licenseServerUri)throw new _.O(_.P,6,6012,a.a.keySystem);return n.createMediaKeys()}).then(function(n){a.j||(a.g.info("Created MediaKeys for key system",a.a.keySystem),a.J=n,a.X=!0)})["catch"](function(n){if(!a.j){a.a=
288
+ fs=function(a){var b,c,d,e,f;return _.I(function(g){switch(g.a){case 1:a.B.release();a.B=null;a.P.release();a.P=null;a.A=!1;a.G=!1;a.I.reject();a.Aa.stop();a.Aa=null;a.ba.stop();a.ba=null;b=Array.from(a.h.keys());c=_.v(a.h.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.Vd&&e.Vd.stop();a.h.clear();return _.y(g,Promise.all(b.map(function(k){return Promise.resolve().then(function(){var l;return _.I(function(m){if(1==m.a)return a.g.debug("Closing session",k.sessionId),_.F(m,2),_.y(m,es(k),4);
289
+ if(2!=m.a)return _.G(m,0);l=_.H(m);a.g.warn("Error while closing session",l);_.A(m)})})})),2);case 2:if(!a.D){g.C(3);break}_.F(g,4);return _.y(g,a.l.le(null),6);case 6:_.G(g,5);break;case 4:f=_.H(g),a.g.warn("Error while resetting media keys",f);case 5:a.D=null;case 3:a.l=null,a.a=null,a.K.clear(),a.J=null,a.M=[],a.f=null,a.w=null,a.F=null,a.W=0,a.T=null,_.A(g)}})};
290
+ _.is=function(a,b,c){c=void 0===c?[]:c;a.L=gs;a.M=c;a.H=0<c.length;a.g.debug("Using Persisted Licenses: "+a.H);a.f&&a.f.enableSessionCacheForSkd&&a.g.info("Enabled session cache for SKD license requests");return _.hs(a,b)};
291
+ os=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.N.Lh(a.f.Ua);js(b,d)}var e=a.f.Ua[_.Id];d=b.some(function(g){return g.drmInfos.some(function(k){return k.keySystem===_.Id})});if(!1!==a.f.Op&&_.tj()&&!d&&e){var f=_.v(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos.push({keySystem:_.Id,licenseServerUri:e.licenseUrl,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[],
292
+ periodId:null})}if(e=ks(a))for(f=_.v(b),d=f.next();!d.done;d=f.next())d.value.drmInfos=[e];d=ls(b);ms(a,d);d=_.v(d);for(e=d.next();!e.done;e=d.next())ns(e.value,a.f.Ua);return c};_.hs=function(a,b){var c=os(a,b),d=ls(b);d=_.v(d);for(var e=d.next();!e.done;e=d.next())ps(a,e.value,a.f.Ua);d=qs(a,b);if(!d.size)return a.X=!0,Promise.resolve();_.ln($d);d=_.rs(a,d);return(c?d:d["catch"](function(){})).then(function(){_.ln(Zd);_.nn("DRM queryMediaKeys_()",$d,Zd)})};
293
+ ls=function(a){var b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next()){c=_.v(c.value.drmInfos);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};ms=function(a,b){for(var c=_.v(b),d=c.next();!d.done;d=c.next())d=d.value,""===d.licenseServerUri||a.f.Ua[d.keySystem]||(a.f.Ua[d.keySystem]={licenseUrl:""})};
294
+ ss=function(a){var b;return _.I(function(c){switch(c.a){case 1:if(a.l.Lf())return c["return"]();if(!a.T){c.C(2);break}return _.y(c,a.T,3);case 3:return c["return"]();case 2:return _.F(c,4),a.T=a.l.le(a.J),_.y(c,a.T,6);case 6:_.G(c,0);break;case 4:b=_.H(c);if(a.j)return c["return"]();a.w(new _.O(_.P,6,6003,b.message,b));_.A(c)}})};
295
+ us=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Handle encrypted event for type "+b.initDataType),_.y(c,ss(a),2);if(!b.initData)return c["return"]();_.ts(a,b.initDataType,_.Vi(b.initData));_.A(c)})};
296
+ _.As=function(a,b){if(!a.J)return Ci(a.B,b,function(){a.w(new _.O(_.P,6,6010))}),Promise.resolve();a.D=b;a.l.zf(b);a.B.one(a.D,_.pf,function(){return vs(a)});a.B.on(a.D,_.bh,function(e){var f=a.G;a.G=!a.A;!f&&a.G&&(a.g.info("Waiting for DRM license key delivery"),a.F.onEvent(e))});var c=a.a.initData.find(function(e){return 0<e.initData.length}),d=Promise.resolve();if(c||a.l.ke()!==ws||a.M.length)d=ss(a);c=Promise.resolve();_.rj()&&38===_.Oj().major||(a.a&&a.a.keySystem!==_.jf&&!a.a.serverCertificate&&
297
+ (c=xs(a)),c=c.then(function(){return _.ys(a)}));return Promise.all([d,c]).then(function(){a.j||(_.zs(a),a.B.on(a.D,ne,function(e){return us(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.a&&a.a.keySystem===_.Md&&1>a.W&&a.a.serverCertificate&&a.a.serverCertificate.length)return a.g.warn("Detected invalid widevine server certificate!. Retrying"),a.w(new _.O(1,6,6004)),a.a.serverCertificate=null,a.W++,_.As(a,b);1<=a.W&&a.g.info("Could not get valid widevine server certificate. Giving up");
298
+ throw e;}})};_.ys=function(a){var b,c;return _.I(function(d){if(1==d.a){if(!(a.J&&a.a&&a.a.serverCertificate&&a.a.serverCertificate.length))return d.C(0);_.F(d,3);return _.y(d,a.J.setServerCertificate(a.a.serverCertificate),5)}if(3!=d.a)return b=d.f,void 0===b||b||a.g.debug("Server certificates are not supported by the key system. The server certificate has been ignored."),_.G(d,0);c=_.H(d);throw new _.O(_.P,6,6004,{browserError:c.message});})};
299
+ xs=function(a){var b=a.keySystem(),c=a.f.Ua[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.F.getConfiguration();return Bs(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,k=f&&f.certificateResponse;f=_.dl([d],a.f.attemptParameters);f.type=3;f.licenseRequestType=od;g&&f.requestModifiers.push(function(l){return g(e,l)});k&&f.responseModifiers.push(function(l){return k(e,l)});a.g.debug("Fetching certificate");return a.F.Mb.fetch(f).U}).then(function(f){a.a.serverCertificate=
300
+ _.Vi(f.data)})["catch"](function(f){var g=f.data.headers;g=Object.assign({message:Na,url:f.data.url,status:f.data.status,response:f.data.response},g?{headers:g}:{},gr(g));throw new _.O(_.P,6,6100,g,f);})};Bs=function(a,b){var c,d;return _.I(function(e){c=a.F.Hd();return c?(d=b&&b.drm&&b.drm.customData)?_.y(e,c(d),0):e["return"]():e["return"]()})};Cs=function(a,b){if(!a)return!1;for(var c=0;c<b.Ff.length;c++)if(_.Sm(a,b.Ff[c]))return!0;return!1};
301
+ _.zs=function(a){for(var b=a.a?a.a.initData||[]:[],c=_.v(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.qj(2);if(a.f.enforceSingleSession&&!a.keySystem().startsWith(_.Id)){var f=a.h.values();f=_.v(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.Sm(d.initData,g.initData)?(a.g.info("Skipping Session creation. Existing init data in single session mode!"),e=!1):g.periodId===d.periodId&&(a.g.info("Skipping Session creation. Merging init data for period in single session mode for Key ID "+(d.keyId+
302
+ ".")),Cs(d.initData,g)||(g.Ff.push(d.initData),d.keyId&&!g.Fb.includes(d.keyId)&&g.Fb.push(d.keyId),a.o.get(d.keyId)||a.o.set(d.keyId,lg)),e=!1)}!e||a.H&&a.L===gs||(_.Ds(a,d.keyId,d.initData)&&(e=!1),e&&(a.g.info("Request new media key session on create"),Es(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.v(a.M);for(d=c.next();!d.done;d=c.next())_.Fs(a,d.value);b.length||a.M.length||(a.A||a.g.info(Ea),a.A=!0,a.G=!1,a.I.resolve());return a.I};
303
+ _.ts=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.H||a.L!==gs)){var e=a.keySystem();if(!e.startsWith(_.Id)&&b===_.md){var f=new $r(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.D.webkitCurrentPlaybackTargetIsWireless||
304
+ _.qj(2)||a.keySystem().startsWith(_.Id)||!_.Ds(a,d,c,!0))&&Es(a,d,null,b,c)}};
305
+ _.Ds=function(a,b,c,d){d=void 0===d?!1:d;for(var e=_.v(a.h.keys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.h.get(f);if(_.Sm(c,g.initData))return b?g.Fb.includes(b)?d&&a.g.info("Skipping Session creation. License for init data with Key ID "+(b+" was already requested in Session: '")+(f.sessionId+"'. ")):(g.Fb.push(b),a.o.get(b)||a.o.set(b,lg),d&&a.g.info(Ib+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.g.info(Ib+(f.sessionId+"'")),!0;if(Cs(c,g))return d&&a.g.info("Skipping Session creation. License for init data was already requested [extra]"),
306
+ !0}return!1};Gs=function(a){var b=Infinity;a=a.h.keys();a=_.v(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};
307
+ qs=function(a,b){var c=new Set(ls(b)),d=a.H?_.Uf:_.hf,e=a.H?[_.nf]:[_.sg],f=new Map,g=_.v(c);for(c=g.next();!c.done;c=g.next())c=c.value,f.set(c.keySystem,{initDataTypes:[_.md],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.hf,persistentState:d,sessionTypes:e,label:c.keySystem,drmInfos:[]});d={};e=_.v(b);for(c=e.next();!c.done;d={og:d.og,ae:d.ae,sg:d.sg,be:d.be},c=e.next()){c=c.value;g=c.audio;var k=c.video;d.og=g?_.Hs(g):"";d.ae=null;g&&"ac-3"===g.codecs.toLowerCase()&&_.qj()&&
308
+ (d.ae=_.Hs(g,_.me));d.sg=k?_.Hs(k):"";d.be=null;k&&"ac-3"===k.codecs.toLowerCase()&&_.qj()&&(d.be=_.Hs(k,_.me));var l={},m=_.v(c.drmInfos);for(c=m.next();!c.done;l={vb:l.vb},c=m.next())c=c.value,l.vb=f.get(c.keySystem),l.vb.drmInfos.push(c),c.initData&&c.initData.length&&(l.vb.initDataTypes=_.uh(new Set(c.initData.map(function(n){return n.initDataType}))).concat()),c.distinctiveIdentifierRequired&&(l.vb.distinctiveIdentifier=_.Uf),c.persistentStateRequired&&(l.vb.persistentState=_.Uf),g&&_.Ni(c.audioRobustness).forEach(function(n,
309
+ p){return function(q){var t={robustness:q||"",contentType:n.og};p.vb.audioCapabilities.find(function(u){return u.robustness===t.robustness&&u.contentType===t.contentType})||p.vb.audioCapabilities.push(t);n.ae&&p.vb.audioCapabilities.push({robustness:q||"",contentType:n.ae})}}(d,l)),k&&_.Ni(c.videoRobustness).forEach(function(n,p){return function(q){var t={robustness:q||"",contentType:n.sg};p.vb.videoCapabilities.find(function(u){return u.robustness===t.robustness&&u.contentType===t.contentType})||
310
+ p.vb.videoCapabilities.push(t);n.be&&p.vb.videoCapabilities.push({robustness:q||"",contentType:n.be})}}(d,l))}return f};_.Hs=function(a,b){var c=_.In(a.mimeType,b||a.codecs);if(_.un(c,a.type)){var d=a.type,e=_.un(c,d);e&&(e=e(),c=e.convertCodecs(d,c),e.destroy())}return c};
311
+ _.rs=function(a,b){function c(n,p,q){p.drmInfos.some(function(t){return!!t.licenseServerUri})===n&&(f=f["catch"](function(){if(a.j)return null;if(q===_.Kd){if((_.oj()||g.os===Ij&&_.pj("Chrome")&&!_.oj())&&!a.f.Ua[q].useLegacySystem)return p.label=Ld,a.l.ic(Ld,[p])["catch"](function(){a.g.warn("Unable to create com.microsoft.playready.recommendation. Falling back to com.microsoft.playready.");p.label=_.Kd;Is(p);return a.l.ic(q,[p])});Is(p)}if(q===_.Md&&a.f.widevineVersion!==_.Md){var t=a.f.widevineVersion;
312
+ if(!t.startsWith(_.Md))return a.g.error('Invalid "widevineVersion" value "'+t+'".'),Promise.reject();var u=Object.assign({},p,{label:t,distinctiveIdentifier:_.hf,persistentState:_.hf});return a.l.ic(t,[u])["catch"](function(){return a.l.ic(q,[p])})}return a.l.ic(q,[p])["catch"](function(z){a:{if(q===_.Md&&Js(p)){var B=_.Qj();if(Js(p)&&B.os===Gj&&B.browser===qd){a.g.warn("requestMediaKeySystemAccess() failed",z);a.g.warn("Will try to recover by removing the robustness attribute of videoCapabilities and audioCapabilities.");
313
+ Is(p);z=a.l.ic(q,[p]);break a}}throw z;}return z})}))}if(1===b.size&&b.has(""))return Promise.reject(new _.O(_.P,6,6E3));null===a.l&&(a.l=Mr(a.f.emeApi,a.gc));for(var d=_.v(b.values()),e=d.next();!e.done;e=d.next())e=e.value,0===e.audioCapabilities.length&&delete e.audioCapabilities,0===e.videoCapabilities.length&&delete e.videoCapabilities;var f=d=new _.rm,g=_.Qj(),k=a.f.preferredDrmSystem;if(!k)if(e=_.Qj(),e.os===Ij&&10<=e.osVersion.major&&"edge"===e.browser)k=_.Kd;else if("safari"===e.browser)k=
314
+ _.Id;else if(e.browser===qd||"firefox"===e.browser)k=_.Md;k&&(e=b.get(k))&&(c(!0,e,k),c(!1,e,k));e={};for(var l=_.v([!0,!1]),m=l.next();!m.done;e={rg:e.rg},m=l.next())e.rg=m.value,b.forEach(function(n){return function(p,q){q!==k&&c(n.rg,p,q)}}(e));f=f["catch"](function(){throw new _.O(_.P,6,6001,"Failed to get MediaKeySystemAccess.");});f=f.then(function(n){if(a.j)return null;a.K.clear();var p=n.getConfiguration();a.g.info("Got MediaKeySystemAccess with configuration",p);var q=p.videoCapabilities||
315
+ [],t=_.v(p.audioCapabilities||[]);for(p=t.next();!p.done;p=t.next())a.K.add(p.value.contentType.toLowerCase());q=_.v(q);for(p=q.next();!p.done;p=q.next())a.K.add(p.value.contentType.toLowerCase());q=n.keySystem;p=b.get(_.Ks(n.keySystem));t=[];var u=[],z=[],B=[];Ls(p.drmInfos,t,u,z,B);1<u.length&&_.Vh("Multiple unique server certificates found! Only the first will be used.");1<t.length&&_.Vh("Multiple unique license server URIs found! Only the first will be used.");a.a={keySystem:q,licenseServerUri:t[0],
316
+ distinctiveIdentifierRequired:p.distinctiveIdentifier===_.Uf,persistentStateRequired:p.persistentState===_.Uf,audioRobustness:p.audioCapabilities?p.audioCapabilities[0].robustness:"",videoRobustness:p.videoCapabilities?p.videoCapabilities[0].robustness:"",serverCertificate:u[0],initData:z,keyIds:B,periodId:null};if(!a.a.licenseServerUri)throw new _.O(_.P,6,6012,a.a.keySystem);return n.createMediaKeys()}).then(function(n){a.j||(a.g.info("Created MediaKeys for key system",a.a.keySystem),a.J=n,a.X=!0)})["catch"](function(n){if(!a.j){a.a=
313
317
  null;a.K.clear();if(n instanceof _.O)throw n;throw new _.O(_.P,6,6002,{browserError:n.message});}});d.reject();return f};
314
- bs=function(a){a=_.N.Bh(a.f.Ua[_.jf]||{});if(0===a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.Mm(f),k=_.Mm(e);g={kty:"oct",kid:_.Km(g,!1),k:_.Km(k,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.R.sb(d),initDataType:"keyids"}];return{keySystem:_.jf,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
318
+ ks=function(a){a=_.N.Lh(a.f.Ua[_.jf]||{});if(0===a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.Qm(f),k=_.Qm(e);g={kty:"oct",kid:_.Om(g,!1),k:_.Om(k,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.R.ub(d),initDataType:"keyids"}];return{keySystem:_.jf,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
315
319
  initData:d,keyIds:[],periodId:null}};
316
- _.ws=function(a,b){try{a.g.debug("Attempting to load an offline session",b);var c=a.J.createSession(_.nf)}catch(f){var d=new _.O(_.P,6,6005,{browserError:f.message});a.w(d);return Promise.reject(d)}a.B.on(c,_.Re,a.mj.bind(a));a.B.on(c,Ce,a.ij.bind(a));var e={initData:null,loaded:!1,Lg:Infinity,Hc:null,zb:new _.nm,periodId:null,tf:[],keyId:null,Db:[],initDataType:null,Oc:null,sessionContext:{ldlDelay:0,customData:{}}};e.zb["catch"](function(){});a.h.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.g.debug("Loaded offline session",
317
- b,f);if(!f)return a.h["delete"](c),a.w(new _.O(_.P,6,6013)),null;e.loaded=!0;Ds(a)&&(a.A||a.g.info(Ea),a.A=!0,a.G=!1,a.I.resolve());return c},function(f){a.j||(a.h["delete"](c),a.w(new _.O(_.P,6,6005,{browserError:f.message})))})};Es=function(a,b,c,d){if(!b&&c!==_.eg)return!1;d=b||yq(d);a=_.v(a.h.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||b&&e.Db.includes(b)||c===_.eg&&(e.keyId||yq(e.initData))===d)return!0;return!1};
318
- vs=function(a,b,c,d,e,f,g){f=void 0===f?null:f;g=void 0===g?!1:g;var k,l,m,n,p,q,t,u,y,C,D,B,E,z,L,J,V,U,ta,wa,qa;_.I(function(za){switch(za.a){case 1:if(!e.length)return a.g.warn("Empty init data"),za["return"]();k=b;if(!k)try{k=Fs(a,d,e,f)}catch(Fa){if(a.g.warn("Ignoring unrecognized init data. This may be caused by unsupported or malformed init data. Set `drm.ignoreUnrecognizedInitData \x3d false` if you want to override this behavior and use the init data after all.",{error:Fa,initDataType:d,
319
- initData:e}),a.f.ignoreUnrecognizedInitData)return za["return"]()}if(g){za.C(2);break}if(!Es(a,k,d,e)){za.C(2);break}l=!0;if("skd"!==d||a.f.enableSessionCacheForSkd){za.C(4);break}m=_.v(a.h.keys());n=m.next();case 5:if(n.done){za.C(4);break}p=n.value;q=a.h.get(p);if(!k||q.keyId!==k){za.C(6);break}a.g.warn("Close and re-open session for "+k);_.F(za,9);return _.x(za,p.close(),11);case 11:_.G(za,10);break;case 9:t=_.H(za),a.g.warn("Unable to close session",t);case 10:l=!1;case 6:n=m.next();za.C(5);break;
320
- case 4:if(l)return a.g.warn("Skip creating a new session for "+k),za["return"]();case 2:try{y=a.H?_.nf:qg,u=a.J.createSession(y),a.F.onEvent(new _.Q(ge,{keySystem:a.keySystem()})),a.g.info("Created new "+y+" session for Key ID: '"+k+"'. Init data type: "+(d+"."))}catch(Fa){return a.w(new _.O(_.P,6,6005,{browserError:Fa.message})),za["return"]()}a.B.on(u,_.Re,a.mj.bind(a));a.B.on(u,Ce,a.ij.bind(a));C={Oc:f,tf:[],initData:e,initDataType:d,keyId:k,Db:k?[k]:[],loaded:!1,Lg:Infinity,periodId:c,Hc:null,
321
- zb:new _.nm,sessionContext:{ldlDelay:0,customData:{}}};C.zb["catch"](function(){});f&&(D=a.h.get(f),C.sessionContext=D.sessionContext);a.h.set(u,C);k&&!a.o.get(k)&&a.o.set(k,jg);if(e)for(B=0;B<a.a.initData.length;B++)E=a.a.initData[B],E.keyId&&!C.Db.includes(E.keyId)&&_.Om(E.initData,e)&&(C.keyId||(C.keyId=E.keyId),C.Db.push(E.keyId),a.o.get(E.keyId)||a.o.set(E.keyId,jg));z=_.N;L=z.Zb;J=a.F.getConfiguration();V=a.keySystem();U=a.f.Ua[V];wa=(ta=U.modifiers)&&ta.transformInitData;L(wa)||(wa=Gs);try{e=
322
- wa({playerConfig:J,initData:e,initDataType:d,drmInfo:a.a,drmSystemConfig:U,sessionContext:C.sessionContext,emeApi:a.l.$d()})}catch(Fa){return qa=Fa,Fa instanceof _.O||(qa=new _.O(_.P,6,6016,Fa)),C.zb&&C.zb.reject(Fa),a.w(qa),za["return"]()}a.g.info("Generate License Request for key ID: '"+k+"'");u.generateRequest(d,e.buffer)["catch"](function(Fa){if(!a.j){var Ya=null;Fa.errorCode&&Fa.errorCode.systemCode&&(Ya=Fa.errorCode.systemCode,0>Ya&&(Ya+=Math.pow(2,32)),Ya="0x"+Ya.toString(16));a.w(new _.O(_.P,
323
- 6,6006,{browserError:Fa.message,error:Fa,extended:Ya},Fa))}});_.A(za)}})};
324
- Fs=function(a,b,c,d){d=void 0===d?null:d;if("skd"===b){a:{var e=d;e=void 0===e?null:e;var f=a.keySystem(),g=a.f.Ua[f];f=a.F.getConfiguration();g=g&&g.modifiers&&g.modifiers.extractContentId;_.N.Zb(g)||(g=Hs);try{var k={ldlDelay:0,customData:{}};e&&(k=a.h.get(e).sessionContext);var l=g(f,c,k);a.g.debug("Extracted Content ID '"+l+"' from SKD");var m=l;break a}catch(B){a.g.warn("Unable to extract Content ID from SKD",B)}m=""}return m}if(b===_.eg)return yq(c)||"";if(b===_.ld){m=a.keySystem();try{if(m.match(/^com\.widevine\.alpha/)){var n=
325
- _.Jr(c);if(n)return n.a}else if(Is(m)){e=new _.eq(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);f=_.jq(e);var p=_.jq(e);g=_.tq(p);var q=_.jq(e);c=q>>>24;l=q&16777215;k=_.nq(e,16);var t=_.Nm(k);if(0<c){var u=_.jq(e);e.skip(16*u)}var y=_.jq(e),C=_.nq(e,y),D=_.Qr(C);_.Vh("Parsed PR PSSH Box","size",f,"name",g,Pg,c,"flags",l,"size",y,"systemId",t,"keyId",D.a);if(D)return D.a}}catch(B){throw a.g.warn("Unable to extract Key ID from PSSH data.",{error:B,keySystem:m}),B;}}return""};
326
- Hs=function(a,b){var c=_.xq(b);_.Vh("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
327
- Gs=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&&g===Js){a=_.N.Zb;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=Hs);a="";try{a=e(b,c,f)}catch(k){throw new _.O(_.P,6,6103);}if(!a.length)throw new _.O(_.P,6,6101,"Content ID is an empty string");c=zq(c,a,d)}return c};
328
- Ps=function(a,b){var c,d,e,f,g,k,l,m,n,p,q,t,u,y,C,D,B,E;return _.I(function(z){switch(z.a){case 1:c=b.target;d=a.h.get(c);if(!d)return a.g.error("Session metadata not found for "+c.sessionId+"."),z["return"]();e=a.a.licenseServerUri;if(!Ks(a,b)){z.C(2);break}return _.x(z,Ls(a,e,b,c,d),3);case 3:return z["return"]();case 2:f=a.Rb;if(!(0<f)){z.C(4);break}a.g.info("Delaying license request by "+f+" s.");return _.x(z,hj(f),5);case 5:if(a.j)return z["return"]();case 4:g=a.keySystem();k=a.f.Ua[g];"individualization-request"===
329
- b.messageType&&k&&k.individualizationServer&&(e=k.individualizationServer);l=_.Zk([e],a.f.attemptParameters);l.type=3;l.body=b.message;l.method=_.rb;l.licenseRequestType=b.messageType===Fe&&d.Oc?Ee:b.messageType;l.sessionId=c.sessionId;if(l.licenseRequestType===Ee)a.F.onEvent(new _.Q(fe));Is(a.a.keySystem)&&Ms(a,l);Wp(a.P,l);m=String(Math.floor(b.timeStamp));return _.x(z,Ns(a,l,d,m,e,c.sessionId,b.messageType,f),6);case 6:n=z.f;if(!n)return z["return"]();p=Xp(a.P,n);return _.x(z,Os(a,c,n.data,d,m),
330
- 7);case 7:q=z.f;if(!q)return z["return"]();t=xs(a);u=p?Date.now()+1E3*p.delay:Number.NaN;a.F.onEvent(new _.Q(_.ie,{keySystem:g,expirationTime:t,expectedRenewalTime:u}));d.Hc&&d.Hc.resolve();d.Oc&&(y=d.Oc,a.g.info("Closing expired session '"+y.sessionId+"'"),Wr(y)["catch"](function(){a.g.warn("Unable to close expired session in time")}),(C=a.h.get(d.Oc))&&C.ud&&C.ud.stop(),a.h["delete"](d.Oc),d.Oc=null);D=new _.gj(function(){a.j||(d.loaded=!0,d.zb&&d.zb.resolve(),Ds(a)&&(a.A||a.g.info(Ea),a.A=!0,a.G=
331
- !1,a.I.resolve()))});D.ia(5);null!==d.initData&&(0<d.sessionContext.ldlDelay||p&&(_.R.startsWith(g,_.Id)||_.R.startsWith(g,_.Kd)))&&(B=new _.gj(function(){!a.j&&a.P&&(a.g.info("Updating CSL Sessions"),Is(g)?vs(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):g.startsWith(_.Id)&&c.update(_.R.sb("renew")))}),d.ud=B,E=p?p.delay:d.sessionContext.ldlDelay,B.ia(E));_.A(z)}})};
332
- Ls=function(a,b,c,d,e){var f,g,k;return _.I(function(l){if(1==l.a)return f=_.Zk([b],a.f.attemptParameters),f.type=3,f.body=c.message,f.method=_.rb,f.licenseRequestType=nd,f.sessionId=d.sessionId,_.x(l,Qs(a,f,e,b,d.sessionId,c.messageType),2);g=l.f;if(!g)return l["return"]();k=String(Math.floor(c.timeStamp));return _.x(l,Os(a,d,g.data,e,k),0)})};Ks=function(a,b){return!!a.keySystem().match(/^com\.widevine\.alpha/)&&b.message&&2===b.message.byteLength};
333
- Ns=function(a,b,c,d,e,f,g,k){var l,m,n,p,q,t,u,y,C,D,B,E;return _.I(function(z){switch(z.a){case 1:return a.g.info("License request for SID:'"+(f+"'/KID:'"+c.keyId+"' from msg '")+(g+"'.")),_.x(z,Rs(a,b,c.sessionContext),2);case 2:return a.g.debug("Sending DRM license request to",e,b),a.F.onEvent(new _.Q(ee,{delay:k})),l=Date.now(),_.gn(Yd+d+ha),m=null,_.F(z,3),_.x(z,a.F.Kb.fetch(b).U,5);case 5:m=z.f;_.G(z,4);break;case 3:n=_.H(z);if(a.j)return z["return"](null);p=n;q=p.data.headers;t=Yq(q);u=Object.assign({message:"Error while fetching DRM license!",
334
- url:p.data.url,status:p.data.status,response:p.data.response},q?{headers:q}:{},t);y=new _.O(_.P,6,6007,u,p);Ss(a,y,c);return z["return"](null);case 4:_.gn(Yd+d+".end");_.jn(Yd+d,Yd+d+ha,Yd+d+".end");C=Date.now()-l;if(D=Zq(m.headers))a.Rb=D.delay||0;B="";D&&D.requestId&&(B=" RID:"+D.requestId);E=m.data.byteLength;a.g.info("License response for SID:'"+(f+"'/KID:'")+(c.keyId+"' ")+(E+" bytes in ")+(C+"ms"+B));return a.j?z["return"](null):z["return"](m)}})};
335
- Qs=function(a,b,c,d,e,f){var g,k,l,m,n,p,q,t,u,y,C,D;return _.I(function(B){switch(B.a){case 1:return a.g.info("WV Server certificate request for SID:'"+(e+" from msg '"+f+"'.")),_.x(B,Rs(a,b,c.sessionContext),2);case 2:return a.g.debug("Sending Widevine certificate request to",d,b),g=Date.now(),k=null,_.F(B,3),_.x(B,a.F.Kb.fetch(b).U,5);case 5:k=B.f;_.G(B,4);break;case 3:l=_.H(B);if(a.j)return B["return"](null);m=l;n=m.data.headers;p=Yq(n);q=Object.assign({message:Na,url:m.data.url,status:m.data.status,
336
- response:m.data.response},n?{headers:n}:{},p);t=new _.O(_.P,6,6100,q,m);Ss(a,t,c);return B["return"](null);case 4:return u=Date.now()-g,y=Zq(k.headers),C="",y&&y.requestId&&(C=" RID:"+y.requestId),D=k.data.byteLength,a.g.info("WV Server certificate response for SID:'"+(e+"' ")+(D+" bytes in ")+(u+"ms"+C)),a.j?B["return"](null):B["return"](k)}})};
337
- Os=function(a,b,c,d,e){var f,g;return _.I(function(k){switch(k.a){case 1:return _.gn(ce+e+ha),_.F(k,2),_.x(k,b.update(c),4);case 4:_.G(k,3);break;case 2:f=_.H(k);if(a.j)return k["return"](!1);if(f===Fb)return a.g.info("Ignore update for closed sessions"),k["return"](!1);g=new _.O(_.P,6,6008,{browserError:f.message});Ss(a,g,d);return k["return"](!1);case 3:return _.gn(ce+e+".end"),_.jn(ce+e,ce+e+ha,ce+e+".end"),a.j?k["return"](!1):k["return"](!0)}})};
338
- Ss=function(a,b,c){a.j||(a.w(b),c.Hc&&c.Hc.reject(b),c.zb&&c.zb.reject(b))};
339
- Ms=function(a,b){var c=_.R.Qc(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.g.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(_.Og).textContent;b.body=_.Lm(c.querySelector("Challenge").textContent).buffer}else a.g.debug("PlayReady request is already unwrapped."),b.headers[Ba]="text/xml; charset\x3dutf-8"};
340
- Rs=function(a,b,c){var d,e,f,g,k,l;return _.I(function(m){if(1==m.a)return d=a.F.getConfiguration(),_.x(m,ss(a,d),2);e=a.keySystem();k=(g=(f=a.f.Ua[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;k?b.requestModifiers.push(function(n){return k(d,n,c)}):e.startsWith(_.Id)&&b.requestModifiers.push(function(n){return _.Aq(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Id)&&b.responseModifiers.push(function(n){return _.Bq(n)});_.A(m)})};
341
- Tr=function(a){var b=a.o,c=a.ma;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.w(new _.O(_.P,6,6014));a.F.Pg(_.N.Ch(c));a.A||a.g.info(Ea);a.A=!0;a.G=!1};ms=function(a){var b;return _.I(function(c){if(1==c.a)return _.gn(be),b=a.ha.map(function(d){return Ps(a,d)}),a.Va=!0,a.ha=[],_.x(c,Promise.all(b),2);_.gn(ae);_.jn("drm.onPlay",be,ae);_.A(c)})};Is=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};
342
- _.Bs=function(a){return Is(a)?_.Kd:a};_.Us=function(a,b){return a.length&&b.length?0<_.Ts(a,b).length:!0};
343
- _.Ts=function(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=0;d<a.length;d++)for(var e={},f=0;f<b.length;e={Sd:e.Sd},f++)if(a[d].keySystem===b[f].keySystem&&a[d].periodId===b[f].periodId){var g=a[d];f=b[f];var k=[];k=k.concat(g.initData||[]);k=k.concat(f.initData||[]);e.Sd=_.ph(g.keyIds||[]).concat();f.keyIds&&f.keyIds.length&&f.keyIds.forEach(function(l){return function(m){l.Sd.includes(m)||l.Sd.push(m)}}(e));c.push({keySystem:g.keySystem,licenseServerUri:g.licenseServerUri||f.licenseServerUri,
344
- licenseServerUriOrigin:g.licenseServerUriOrigin||f.licenseServerUriOrigin,distinctiveIdentifierRequired:g.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:g.persistentStateRequired||f.persistentStateRequired,videoRobustness:g.videoRobustness||f.videoRobustness,audioRobustness:g.audioRobustness||f.audioRobustness,serverCertificate:g.serverCertificate||f.serverCertificate,initData:k,keyIds:e.Sd,periodId:g.periodId});break}return c};
345
- Ur=function(a){a.h.forEach(function(b,c){var d=b.Lg,e=c.expiration;isNaN(e)&&(e=Infinity);e!==d&&(a.F.Og(c.sessionId,e),b.Lg=e)})};Ds=function(a){a=_.v(a.h.values());for(var b=a.next();!b.done;b=a.next())if(!b.value.loaded)return!1;return!0};
346
- as=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=_.v(a),e=d.next();!e.done;e=d.next())e.value.drmInfos=c};zs=function(a){for(var b=_.v(a.audioCapabilities||[]),c=b.next();!c.done;c=b.next())delete c.value.robustness;a=_.v(a.videoCapabilities||[]);for(b=a.next();!b.done;b=a.next())delete b.value.robustness};
347
- As=function(a){return(a.audioCapabilities||[]).some(Vs)||(a.videoCapabilities||[]).some(Vs)};Vs=function(a){return null!=a.robustness&&""!==a.robustness};
348
- Cs=function(a,b,c,d,e){var f={};a=_.v(a);for(var g=a.next();!g.done;f={Ma:f.Ma},g=a.next()){f.Ma=g.value;b.includes(f.Ma.licenseServerUri)||b.push(f.Ma.licenseServerUri);f.Ma.serverCertificate&&(c.some(function(m){return function(n){return _.Om(n,m.Ma.serverCertificate)}}(f))||c.push(f.Ma.serverCertificate));if(f.Ma.initData){var k=_.v(f.Ma.initData);for(g=k.next();!g.done;g=k.next())g.value.periodId=f.Ma.periodId;k={};var l=_.v(f.Ma.initData);for(g=l.next();!g.done;k={We:k.We},g=l.next())k.We=g.value,
349
- d.some(function(m){return function(n){var p=m.We;return n.keyId&&n.keyId===p.keyId&&n.periodId===p.periodId?!0:!1}}(k))||d.push(k.We)}if(f.Ma.keyIds)for(g=0;g<f.Ma.keyIds.length;++g)e.includes(f.Ma.keyIds[g])||e.push(f.Ma.keyIds[g])}};
350
- gs=function(a,b,c){var d=_.Bs(b.keySystem);c=c[d];d===_.jf&&b.licenseServerUri?a.g.debug("Using Clear Key data URI for",d):c&&c.licenseUrl?(b.licenseServerUri=c.licenseUrl,a.g.debug("Using license server URI from user-configured clpp.drm.DrmEnvironment (licenseUrl) for",d)):a.g.debug("Using license server URI from the manifest for ",d)};
351
- es=function(a,b){var c=b[_.Bs(a.keySystem)];a.keyIds||(a.keyIds=[]);c&&(a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness||""),a.audioRobustness||(a.audioRobustness=c.audioRobustness||""),a.serverCertificate||(a.serverCertificate=c.serverCertificate||null))};
352
- Wr=function(a){var b,c;return _.I(function(d){if(1==d.a)return b=new Promise(function(e){(new _.gj(e)).ia(1)}),_.x(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.Qh("Timeout waiting for session close");_.A(d)})};_.Ws=function(a){this.f=a;this.a=0};_.Xs=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};
353
- _.Ys=function(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new _.O(_.P,4,4016,{invalidTag:b});var d=c[1],e=c[2];c=[];var f;if(e){e=new _.Ws(e);var g;(g=_.Xs(e,/^([^,=]+)(?:,|$)/g))&&g[1]&&(f=g[1].trim());for(var k=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.Xs(e,k);)c.push(new _.Rp(g[1],g[2]||g[3]||""))}return new _.Pp(a,d,c,f)};
354
- _.Zs=function(a,b){this.id=a;this.type=b;this.roles=[];this.frameRate=this.label=this.originalLanguage=this.language=this.kind=null;this.trickPlay=!1;this.channelsCount=this.src=this.mimeType=null;this.spatialAudio=!1;this.renditions=[];this.accessibility=[]};_.$s=function(a){return a&&a!==_.Hg?a:null};
355
- dt=function(a){if(!a)throw new _.O(_.P,3,3101,Wa+a);if(!_.N.ja(a))throw new _.O(_.P,3,3101,Wa+a+". Track type must be a string!");switch(a.toLowerCase()){case _.at:return _.at;case _.X:return _.X;case _.bt:return _.bt;case ct:return ct}throw new _.O(_.P,3,3101,"Unknown track type: "+a+".");};et=function(a,b,c){a=dt(a);var d=_.$s(c.kind);a=new _.Zs(b,d===_.Te?ct:a);a.kind=d;a.label=_.$s(c.label);a.language=_.$s(c.language);a.originalLanguage=c.originalLanguage||a.language;return a};
356
- ft=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};_.gt=function(a,b){this.track=b;this.id=a;this.originalId=this.codec=this.Vd=this.bandwidth=this.height=this.width=null;this.a=!1};ht=function(a){this.f=a;this.g=new _.M("clpp.native.hls.HlsMetadataParser");this.a=rn(this.h.bind(this),function(b,c){return b[0]===c[0]&&b[1].enableHlsVideoTrackInfo===c[1].enableHlsVideoTrackInfo&&b[1].enableMetadata===c[1].enableMetadata})};
357
- kt=function(a,b,c){var d,e,f,g,k;return _.I(function(l){if(1==l.a)return _.x(l,it(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.Zs("dummy",_.bt);k=f.map(function(m,n){var p=new _.gt("R"+n,g);p.bandwidth=m.bandwidth;p.Vd=m.Vd;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});jt(k);return l["return"]({renditions:k,mimeType:e||void 0})})};
358
- mt=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return lt(c)});var b=new Map;a.forEach(function(c){if(c.type&&c.name){var d=c.type+":"+c.name;if(b.has(d))throw Error("#EXT-X-MEDIA:NAME attributes are not unique. It is impossible to map HLS metadata to Safari data structures.");b.set(d,c)}});return b};
359
- lt=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.Ys(0,a);a=b(_.Kb);a=null!=a?{AUDIO:_.X,VIDEO:_.bt,SUBTITLES:_.at}[a]:void 0;return{type:a,groupId:b(_.Qa),name:b(_.gb),language:b(_.$a),Hp:b("AUTOSELECT"),"default":b("DEFAULT"),Sp:b("FORCED"),Qh:b("CHARACTERISTICS"),uri:b(_.Mb)}};jt=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.");};
360
- nt=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.Zk(b),_.x(e,Zm(a.f,c),2);d=e.f;return e["return"](d)})};it=function(a,b,c){var d,e,f,g;return _.I(function(k){if(1==k.a)return d=ot(b),e=pt(b,c),f=d[0]?d[0].codec:null,_.x(k,qt(a,e,f),2);g=k.f;return k["return"]({mimeType:g,renditions:d})})};qt=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return b&&c?_.x(f,nt(a,b),2):f["return"](null);d=f.f;e=[rt(d,b),st(d,b)].filter(Boolean);return f["return"](_.Op(e,_.Sg,c))})};
361
- ot=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.Ys(0,b);if(c.getAttribute(_.Tb))throw Error("Playlist contains alternative video streams.");var d=_.T(c,_.zb);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.T(c,_.oa);e=e?Number(e):null;var f=_.T(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.T(c,_.ua);c=_.Mp(_.Sg,c?c.split(","):[]);return{bandwidth:e,Vd:f,codec:c,width:b,height:d,mimeType:null}})};
362
- pt=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?_.zn(c,b):null};rt=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?_.zn(c,b):null};st=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.T(_.Ys(0,c),_.Mb))?_.zn(c,b):null:null};
363
- _.ut=function(a,b,c){for(var d=_.v(_.tt),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.vt=function(a){a=_.tt.indexOf(a);0<=a&&_.tt.splice(a,1)};_.wt=function(){};
364
- xt=function(){this.g=new _.M("clpp.native.TrackManager");this.m=null;this.f=new _.wi;this.h=[];this.D=0;this.o={};this.G=[];this.a=new Map;this.w=null;this.l=new Map;this.A=new Map;this.B=!0;this.K=this.Rg.bind(this,_.at);this.M=this.Tg.bind(this,_.at);this.L=this.Sg.bind(this,_.at);this.P=this.Rg.bind(this,_.bt);this.W=this.Tg.bind(this,_.bt);this.T=this.Sg.bind(this,_.bt);this.H=this.Rg.bind(this,_.X);this.J=this.Tg.bind(this,_.X);this.I=this.Sg.bind(this,_.X);this.j=null};
365
- zt=function(a,b){var c,d,e,f,g,k,l,m,n,p,q;return _.I(function(t){if(1==t.a){c=a.m.getConfiguration();d=_.ut(c,b.mimeType,_.sg);if(!d)return a.g.warn("Track MIME type is not supported",b),t["return"]();e=_.Zk(b.url);f=b.mimeType===_.Mc?"tt":"c";g={objectType:f};k=_.bn(a.m.getNetworkEngine(),e,g);return _.x(t,k.U,2)}(l=t.f)&&l.data&&(m="External_"+a.D++,a.o[m]=b,n=d.a(_.Qi(l.data)),p=URL.createObjectURL(new Blob([n])),q={url:p,kind:b.kind,language:b.language,label:b.label,mimeType:_.sg},yt(a,q,m));
366
- _.A(t)})};Bt=function(a,b,c){return At(a)&&b===_.bt&&!!c.enableHlsVideoTrackInfo};Ct=function(a,b,c){return At(a)&&(b===_.X||b===_.at)&&!!c.enableMetadata};At=function(a){a=a.m.getLoadedSource();return!(!a||a.type!==_.Xl&&!a.url.endsWith(".m3u8"))&&_.oj()};
367
- Dt=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return(d=a.m.getLoadedSource())&&a.j?_.x(f,a.j.a(d.url,c),2):f["return"]();e=f.f;e.mimeType&&(b.mimeType=e.mimeType);e.renditions&&0<e.renditions.length&&(b.renditions=e.renditions,b.renditions.forEach(function(g){g.track=b}));_.A(f)})};
368
- Et=function(a,b,c){var d,e,f,g;return _.I(function(k){if(1==k.a)return(d=a.m.getLoadedSource())&&a.j?_.x(k,a.j.a(d.url,c),2):k["return"]();e=k.f;e.Xc&&(f=b.type+":"+b.label,(g=e.Xc.get(f))&&g.Qh&&(b.accessibility=g.Qh.split(",").map(function(l){return l.trim()}).map(function(l){return{value:l,type:b.type,protocol:"HLS"}})));_.A(k)})};
369
- yt=function(a,b,c){if(a.m){var d=a.m.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);_.R.empty(b.url)?e.src=URL.createObjectURL(new Blob([])):e.src=b.url;d.appendChild(e);a.G.push(e)}}};Ft=function(a,b){if(!a.m)return null;var c=a.m.getSurface();if(!c)return null;c=c.getMedia();if(!c)return null;switch(b){case _.X:return c.audioTracks;case _.bt:return c.videoTracks;case _.at:return c.textTracks;default:return null}};
370
- Gt=function(a,b){var c=Ft(a,b);c&&(c=Array.from(c),b===_.at&&(c=c.filter(function(d){return d.kind!==_.Te})));return c};Ht=function(a,b){return a.h.filter(function(c){return c.type===b})};It=function(a,b){var c=a.a.get(b)||null;return c&&c.renditions[0]};Jt=function(a,b){var c=a.l.get(b);return c&&c.renditions[0]};
371
- Lt=function(a,b,c){var d=Gt(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.g.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.l.set(b,c);var e=!0,f=!1;switch(b){case _.at:var g="mode";e=_.bg;f=_.Wd;break;case _.X:g="enabled";break;case _.bt:g="selected"}if(g){d=_.v(d);for(var k=d.next();!k.done;k=d.next())k=k.value,k[g]=Kt(a,c,k,c.type)?
372
- e:f}}}else if(a.g.debug("Disable track type "+b),a.a.get(b)&&d&&b===_.at){g=_.v(d);for(k=g.next();!k.done;k=g.next())k.value.mode=_.Wd;a.a.set(b,null)}b===_.X?a.m.trigger(new _.Q(_.Zc)):b===_.at&&a.m.trigger(new _.Q(_.ug))};Mt=function(a){return a.enabled||a.selected||a.mode===_.bg||a.mode===_.we};
373
- Nt=function(a,b,c){c=_.Ii(c).filter(function(e){return e});a.g.info("Find preferred tracks for",b,c);var d=Ht(a,b);c.some(function(e){var f=_.ro(e);return(e=d.find(function(g){g=_.ro(g.language||"");return _.so(f,g)}))?(a.g.info("Will select track with id",e.id),Lt(a,b,e),!0):!1})};Ot=function(a){(a=a.m.getTextDisplayer())&&a.remove(0,Infinity)};
374
- Kt=function(a,b,c,d){return b.type!==d?!1:d===_.X&&(a=a.A.get(b.id),void 0!==a)?a===c:void 0!==c.id&&null!==c.id&&""!==c.id?b.id===c.id:_.N.ua(b,{kind:_.$s(c.kind),language:_.$s(c.language),label:_.$s(c.label)},["kind","language","label"])};Qt=function(a){return a.name===ob&&Pt.some(function(b){return a.message.startsWith(b)})};
375
- _.Rt=function(a){_.Di.call(this);this.log=new _.M(a);this.configuration=this.Va=_.Ln();this.ea=this.D=null;this.Be=this.lh=!1;this.xh=new _.M("clpp.video.events");this.Yd=null;this.Af=-1;this.Yj=this.Do.bind(this);this.Wd=new _.Xm;this.setNetworkEngine(this.Wd);this.M=new _.wi;this.bh=this.ld=this.wd=this.T=null};_.Ut=function(a,b){a&&b&&(_.St.set(a,b),_.Tt.info("Registered TextDisplayerFactory: '"+a+"'"))};
376
- _.Vt=function(a,b){var c=b.find(function(d){return(d=_.St.get(d))?d.a(a):!1});if(null==c)return _.Tt.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;_.Tt.info("Chosen the text displayer: "+c);return _.St.get(c)};Wt=function(){this.a=null;this.f=[]};_.Xt=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})}};
377
- Yt=function(a,b){var c=0;a.a&&a.a.state===b&&(c+=a.a.duration);for(var d=_.v(a.f),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state===b?e.duration:0;return c};Zt=function(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=_.v(a.f),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};$t=function(){this.h=this.f=this.j=null;this.a=[]};au=function(a){return a.a.map(function(b){return _.N.wb(b)})};
378
- _.bu=function(){this.h=this.w=this.B=this.D=this.l=this.o=this.j=this.A=NaN;this.a=new Wt;this.f=new $t};_.cu=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:[]}};
379
- fu=function(a){this.g=new _.M("clpp.StateManager");this.m=a;this.a=new _.wi;this.f=_.du;this.A=7;this.I=0;this.w=-1;this.L=this.o=this.J=this.B=0;this.j=this.h=this.G=!1;this.H=0;this.l=null;this.K=0;this.M=_.oj();this.D=!1;this.J=Date.now();eu(this)};gu=function(a,b){return Object.keys(b)[a]};
380
- hu=function(a,b){var c={type:_.ig};b===_.dd||b===_.cd?(c.reason=a.w,b===_.dd?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.B):(2===a.f&&(c.reason=a.w),2===a.A&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
381
- lu=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=2===a.f;a.A=a.f;a.f=b;5===a.A&&(a.J=c,a.o=0);a.o||(a.o=a.J||c);a.I=c-a.o;a.o=c;2===b?(a.L=a.o,a.w=a.h?1:2,a.g.info("Buffering started. Reason: "+gu(a.w-1,_.iu)),c=hu(a,_.dd),ju(a,_.dd,c)):d&&(a.B=a.o-a.L,a.g.info("Buffering finished. Reason: "+gu(a.w-1,_.iu)+". Buffering time: "+a.B+" ms"),c=hu(a,_.cd),ju(a,_.cd,c));c=gu(a.A,_.ku);d=gu(a.f,_.ku);a.g.info(_.vb+c+" -\x3e "+d);ju(a,_.ig,hu(a,""));return!0};
382
- ju=function(a,b,c){a.m&&a.m.trigger(new _.Q(b,{detail:c}))};
383
- mu=function(a,b){if(a.f===_.Bo)a.g.warn("Player is in error state, aborting any further state checks");else{var c=a.m.isPaused(),d=a.m?a.m.isEnded():!1;if(d)a.h||(a.j=!1,lu(a,5));else if(b!==_.zg){var e=a.m.getPosition();e=null!==e&&void 0!==e&&0<=e?a.m.getBufferInfo().Ya(e,!0):-1;a.H=e;e=a.m.getSurface().getMedia();a.l=e?e.readyState:null;a.K=a.m.getPlaybackRate()||1;e=typeof a.l===_.h&&2>a.l&&2===e.networkState;var f=typeof a.l===_.h&&0>=a.H&&a.f===_.du,g=typeof a.l===_.h&&2>=a.l&&a.j;e=a.h||f||
384
- e||g;!a.M||a.m.isLive()||2!==a.f||e||(f=b===_.$f&&4===a.l,(g=1===a.A)&&!a.D?e=!0:g||a.D||f||(e=!0));f=!1;e?f=lu(a,2):c?f=lu(a,4):a.G&&(f=lu(a,3));f&&(a.D=!1);a.g.debug("Video state check for event "+b+":: seeking: "+a.h+", waiting: "+a.j+", playing: "+a.G+", paused: "+c+", readyState: "+a.l+", rate: "+a.K+", buffer: "+a.H+", ended: "+d+". Changed state: "+f+", Current state: "+gu(a.f,_.ku))}}};
385
- eu=function(a){function b(d){return mu(a,d.type)}a.g.debug("Start watching for video events for "+a.m.namespace());var c=a.m;a.a.on(c,_.pe,function(){a.h||(a.j=!1,lu(a,5))});a.a.on(c,ed,b);a.a.on(c,_.Af,function(){a.G=!0;a.j=!1;mu(a,_.Af)});a.a.on(c,_.lf,function(){a.G=!1;a.j=!1;mu(a,_.lf)});a.a.on(c,_.zg,b);a.a.on(c,_.Of,b);a.a.on(c,_.$f,function(d){a.h=!1;a.j=!1;mu(a,d.type)});a.a.on(c,_.ag,function(d){a.h=!0;mu(a,d.type)});a.a.on(c,gg,b);a.a.on(c,_.$g,function(){a.j=!0;mu(a,_.$g)});a.a.on(c,_.qe,
386
- function(d){(d=d&&d.detail)&&d.severity&&d.severity===_.P&&lu(a,_.Bo)});a.a.on(c,_.Le,b);a.a.on(c,fd,function(){a.D=!0;mu(a,fd)});a.a.on(c,_.Ng,function(d){a.h=!0;mu(a,d.type)});a.a.on(c,_.Mg,function(d){a.h=!1;a.j=!1;mu(a,d.type)})};nu=function(){_.Rt.call(this,Cd);this.w=this.H=!1;this.l=this.A=this.o=this.a=this.j=null;this.h=new _.wi;this.G=this.B=this.f=this.I=null};
387
- pu=function(a,b){if(a.w)throw new _.O(_.P,7,7E3);a.a||(a.h.on(b,_.qe,function(){var c=ou(a);if(c)a.onError(c)}),a.h.on(b,_.Tf,function(){var c=b.videoWidth,d=b.videoHeight,e=a.getTrackManager();e&&0<c&&0<d&&(e.w={width:c,height:d});a.trigger(new _.Q(_.ad,{detail:{width:c,height:d}}))}),a.a=b)};qu=function(a){var b=_.oj()?Js:void 0;return new _.Vr(a,b)};
388
- su=function(a){var b,c,d,e,f;return _.I(function(g){if(1==g.a){if(a.w)return g["return"](Promise.reject(new _.O(_.P,7,7E3)));b=a.ea[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=_.ru;d=_.Xn(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=qu({Kb:e,onError:function(k){return a.onError(k)},Pg:function(){},Og:function(k,l){a.trigger(new _.Q(_.de,
389
- {expirationTime:l}))},onEvent:function(k){k instanceof _.Q?a.dispatchEvent(k):a.log.debug(_.Ob,k.type)},getConfiguration:function(){return a.getConfiguration()},yd:function(){return a.yd()}});a.o.f=d;f={id:0,language:_.Hg,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,
390
- Sa:0,mimeType:_.Ug,codecs:"",encrypted:!0,keyId:null,language:_.Hg,originalLanguage:_.Hg,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,Xp:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,spatialAudio:!1,Ep:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.x(g,_.$r(a.o,[f]),2)}return _.x(g,_.rs(a.o,a.a),0)})};
391
- tu=function(a,b){dr(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){a.getState()!==_.Bo&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};ou=function(a){if(null===a.ea||!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 _.O(_.P,3,3016,{code:b,Qp:c,message:a.a.error.message})};
392
- uu=function(a){if(a.w)return new _.Sm(Promise.reject(new _.O(_.P,7,7E3)),function(){});var b=a.ea[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.I;c&&tu(a,c);if(d.preload!==_.Ze)a.h.one(d,_.Le,function(){var g=Date.now()/1E3-e;a.f.B=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.lj()||_.mj())&&d.load();var f=new _.nm;a.h.one(d,gg,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.B||(a.B=(new _.gj(function(){f.reject(new _.O(_.P,3,3100,{message:"Unable to load media source successfully from "+
393
- b.url,uri:b.url},d.error))})).ia(g))});dr(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.h,function(){return f.resolve()});d.error?f.reject(ou(a)):d.preload===_.Ze&&(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.h.one(d,_.qe,function(){f.reject(ou(a))});
394
- return new _.Sm(f,function(){var g=new _.O(_.P,7,7001);f.reject(g);return Promise.resolve()})};
395
- vu=function(a,b){dr(b,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){if(a.isLive()&&a.getState()!==_.Bo){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)}))}})};
396
- wu=function(a,b){var c=!1;a.h.on(b,_.ag,function(){c=b.paused});a.h.on(b,_.$f,function(){.2>b.duration-b.currentTime&&b.paused&&!c&&(a.log.warn("Player was auto-paused during seek to the end, auto-resuming."),b.play())})};xu=function(){};
397
- yu=function(a,b,c){S.call(this,a,b,c);a={manifest:{timeline:{version:2},keepTimelineLive:!0},streaming:{preferNativeHlsOnSafari:!1,enableLiveEdgeChasing:!1,startAtSegmentBoundary:!1}};this.D=_.N.ta(this.D,a);this.f=_.N.ta(this.f,a);this.H=0;this.o=[];this.ba=!1;this.w=null;this.K=[]};zu=function(a){a.K.forEach(function(b){return b()});a.K=[]};
398
- Au=function(a,b){function c(f){a.H=a.o.findIndex(function(g){return g.id===f.id})}a.addEventListener(_.Wf,c);a.K.push(function(){a.removeEventListener(_.Wf,c)});if(b.endTime){var d=b.endTime,e=function(){a.getPosition()>=d&&(a.removeEventListener(_.zg,e),a.g.info("Playlist end time reached. Stopping playback."),a.trigger(new _.Q(_.Vf)),a.pause())};a.addEventListener(_.zg,e);a.K.push(function(){a.removeEventListener(_.zg,e)})}};
399
- Du=function(a,b){var c,d;return _.I(function(e){switch(e.a){case 1:return _.F(e,2),_.gn(zf),a.P=_.qb,a.ma=!1,c=b.slice(1).map(function(f){return{config:f,ea:_.Rn(f)}}),_.x(e,_.Wo(a,b[0]),4);case 4:return c.forEach(function(f){Bu(a,f.config,f.ea)}),a.trigger(new _.Q(Me)),_.x(e,a.a.setupPlaylist(b),5);case 5:return _.x(e,_.Ro(a),6);case 6:c.forEach(function(f){Cu(a,f.config,f.ea)});_.gn(yf);_.jn("player.setupPlaylist",zf,yf);_.G(e,0);break;case 2:d=_.H(e);if(a.l)throw a.g.info(bb),new _.O(_.P,7,7E3);
400
- throw d;}})};Eu=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.F(e,2),_.gn(tf),c=_.Rn(b),Bu(a,b,c),_.x(e,a.a.appendLoad(b),4);if(2!=e.a)return Cu(a,b,c),_.gn(sf),_.jn("player.appendLoad",tf,sf),_.G(e,0);d=_.H(e);if(a.l)throw a.g.info(bb),new _.O(_.P,7,7E3,{id:b.id});throw d;})};Cu=function(a,b,c){No(a,{configuration:b,ea:c,drmInfo:a.getDrmInfo(),Aj:Object.keys(a.L),isLive:c[0].isLive})};
401
- Bu=function(a,b,c){if(0===c.length)throw new _.O(_.P,7,7003,{message:kb,id:b.id});if(1<c.length)throw new _.O(_.P,7,7003,{message:"Multiple sources not supported!",id:b.id,source:c});if(2!==(a.a?a.a.canPlay(c[0],a.f):0))throw new _.O(_.P,7,7003,{message:"Source not supported by the current player!",id:b.id,source:c[0]});};
402
- Hu=function(a){_.Di.call(this);var b=this;this.j=_.N.ta({transition:_.lf,preloadMedia:!1},a);this.h=[];this.a=0;var c=Fu(a.anchorId,this.j.config);this.w=new Hi(c);this.f=null;this.l=!1;this.o=new Map;this.A=a.toggleVisible;this.g=new _.M(Dd);this.w.a.forEach(function(d){return Gu(b,d.player,!1)})};Ju=function(a){return Promise.all(Array.from(a.o.keys()).map(function(b){return Iu(a,b)}))};
403
- Iu=function(a,b){var c;return _.I(function(d){if(1==d.a){c=a.o.get(b);if(!c)return d.C(0);a.g.info("Stop preloading item (index: "+b+")");return c.player?_.x(d,Ku(a,c),3):d.C(3)}a.o["delete"](b);_.A(d)})};Mu=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Stop current playback (index: "+b.index+")"),b.player.pause(),Gu(a,b.player,!1),_.x(c,Ku(a,b),2);b.player=null;b.videoEl=null;b.role=Lu;_.A(c)})};
404
- Ku=function(a,b){return _.I(function(c){b.disposers.forEach(function(d){return d()});b.disposers=[];return b.player?_.x(c,a.w.release(b.player),0):c.C(0)})};Pu=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.x(d,a.w.get(),2);if(3!=d.a)return c=d.f,a.f=b,b.role=Nu,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),Gu(a,c,!0),_.x(d,c.load(b.config),3);Ou(a,b);return b.config.autoplay?d.C(0):_.x(d,c.play(),0)})};
405
- Qu=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Jf){c.C(2);break}a.g.info(Vb);_.F(c,3);return _.x(c,b.preloadPromise,5);case 5:_.G(c,2);break;case 3:_.H(c);case 2:a.f=b;b.role=Nu;Gu(a,b.player,!0);if(b.state===If)return _.gn(Ff),a.j.preloadMedia?_.x(c,b.player.play(),11):_.x(c,So(b.player),11);if(b.state!==Hf){c.C(7);break}return _.x(c,b.player.load(b.config),7);case 11:_.gn(Df),_.jn("playlist.next",Ff,Df);case 7:if(Ou(a,b),b.config.autoplay)c.C(0);
406
- else return _.x(c,b.player.play(),0)}})};Ou=function(a,b){if(a.j.autoplayNext){var c=function(){a.g.info("Automatically transition to next item");a.yj()};b.player.on(_.pe,c);var d=b.player;b.disposers.push(function(){d.off(_.pe,c)})}};Su=function(a){var b;return _.I(function(c){b=a.a+1;a.g.info("Preload following item (index: "+b+")");return _.x(c,Ru(a,b),0)})};Tu=function(a){var b;return _.I(function(c){b=a.a-1;a.g.info("Preload preceding item (index: "+b+")");return _.x(c,Ru(a,b),0)})};
407
- Uu=function(a){var b;_.I(function(c){if(0===a.a)return _.x(c,Su(a),0);if(a.a===a.h.length-1)return _.x(c,Tu(a),0);b=[a.a-1,a.a+1];a.g.info("Preload items (indices: "+b+")");return _.x(c,Promise.all(b.map(function(d){return Ru(a,d)})),0)})};
408
- Ru=function(a,b){var c,d,e;return _.I(function(f){switch(f.a){case 1:return _.x(f,a.w.get(),2);case 2:return c=f.f,d=a.h[b],d.player=c,d.videoEl=c.getSurface().getMedia(),d.role=Lu,d.state=Jf,a.trigger(new _.Q(Jg)),_.F(f,3),a.o.set(b,d),a.j.preloadMedia?(d.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (index: "+(b+")")),d.config.autoplay=!1),d.preloadPromise=c.load(d.config)):d.preloadPromise=c.preload(d.config),_.x(f,d.preloadPromise,5);case 5:d.state=
409
- If;a.trigger(new _.Q(Jg));_.G(f,0);break;case 3:e=_.H(f),7001===e.code?(a.g.info("Preload aborted (index: "+b+")"),d.state=Gf):(a.g.warn("Preload failed (index: "+b+")",e),a.trigger(new _.Q(_.qe,{detail:e})),d.state=Hf),a.trigger(new _.Q(Jg)),_.A(f)}})};Gu=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.info(Hb+b),d.classList.add(vd)):(a.g.info(Va+b),d.classList.remove(vd)),a.A&&a.A(d,c))};
410
- Vu=function(a){var b;return _.I(function(c){if(1==c.a)return _.x(c,a.w.destroy(),2);b=document.getElementById(a.j.anchorId);if(!b)return c["return"]();b.classList.remove(ud);b.innerHTML="";_.A(c)})};
411
- Fu=function(a,b){var c=document.getElementById(a);if(!c)throw Error("Anchor element not found");c.classList.add(ud);return Array.from({length:3}).map(function(){var d=document.createElement(_.Sg);d.classList.add("clpp-mc-playlist-video-el");var e=document.createElement(_.Xd);e.classList.add("clpp-mc-playlist-item");e.appendChild(d);c.appendChild(e);return new S(d,b)})};
412
- _.Xu=function(a){if(Wu.has(a))return Wu.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);Wu.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),Wu.set(a,b),b):!1};Yu=function(a){this.h=a;this.f={keepOriginalTimestamps:!0,remux:!1};this.a=new muxjs.mp4.Transmuxer(this.f)};
413
- Zu=function(a,b){var c=b.replace(/mp2t/i,"mp4");a===_.Sc&&(c=c.replace(_.Sg,_.Sc));var d=/avc1\.(66|77|100)\.(\d+)/.exec(c);if(d){var e="avc1.",f=d[1],g=Number(d[2]);e=("66"===f?e+"4200":"77"===f?e+"4d00":e+"6400")+(g>>4).toString(16);e+=(g&15).toString(16);c=c.replace(d[0],e)}return c};$u=function(){};_.av=function(){};
414
- bv=function(a,b,c,d,e){_.$p.call(this,Ua);this.l=a;this.j=b;this.h=c;this.a=d;this.o=e;this.g=new _.M(zd);_.R.empty(this.l)?this.g.warn(_.Xb):this.qb(_.Md,{licenseUrl:this.l,videoRobustness:[_.Db,void 0],audioRobustness:[_.Cb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.He.bind(this)}});_.R.empty(this.j)?this.g.warn(_.sb):this.qb(_.Kd,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.He.bind(this)}});
415
- _.R.empty(this.h)?this.g.warn(_.Pa):_.R.empty(this.a)?this.g.warn(_.Oa):this.qb(_.Id,{licenseUrl:this.h,certificateUrl:this.a,modifiers:{licenseRequest:this.gj.bind(this),licenseResponse:this.hj.bind(this),certificateRequest:this.He.bind(this),extractContentId:this.ni.bind(this)}})};cv=function(){};dv=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.ue)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
416
- ev=function(a){a=a.target;if(a.webkitPresentationMode===of){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)};fv=function(){return this.webkitSupportsPresentationMode(of)?(this.webkitSetPresentationMode(of),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
417
- gv=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};hv=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};iv=function(a,b,c){return new window.TextTrackCue(a,b,c)};
418
- jv=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};lv=function(a,b,c){if("input"===a)switch(this.type){case "range":a=od}kv.call(this,a,b,c)};_.mv=function(a){var b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next()){c=_.v(c.value.variants);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};_.nv=function(a,b,c){this.h=a;this.j=b;this.f=c||this.h.getMedia();this.a=null};_.pv=function(){this.a=new Blob([ov],{type:_.Ug})};
419
- _.rv=function(a,b){var c=_.En(_.Fn(a),_.Gn(a));_.qv[c]=b};_.sv=function(a){a=_.En(_.Fn(a),_.Gn(a));return _.qv[a]||null};_.uv=function(a){a=_.En(_.Fn(a),_.Gn(a));delete _.qv[a]};
420
- _.vv=function(a){a=a.getConfiguration();a=_.N.wb(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.lg?a.backgroundColor:null;this.T=typeof a.windowColor===_.lg?a.windowColor:null;this.M=typeof a.fontColor===_.lg?a.fontColor:null;this.P=typeof a.fontFamily===_.lg?a.fontFamily:null;this.I=typeof a.fontSize===_.lg?a.fontSize:null;this.B=typeof a.fontSizePercent===_.h?a.fontSizePercent:null;this.H=typeof a.edgeColor===_.lg?a.edgeColor:"rgba(0, 0, 0, 1)";this.o=null;typeof a.edgeType===
421
- _.lg&&(this.o=a.edgeType)};_.Fv=function(a){if(!a.o)return null;var b=a.H;switch(a.o){case wv:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case xv:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case yv:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case zv:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.Ze}};
422
- _.Ov=function(a){_.vv.call(this,a);this.l=a.getSurface().getMedia();this.f="clpp-video-"+Nv++;this.h=document.createElement(_.ng);this.j=this.w=!1;_.Zi(this.l,this.f);document.head.appendChild(this.h);this.bc()};Pv=function(){};Qv=function(a){this.f=a;this.a=null;this.g=new _.M("clpp.text.Mp4TextParser")};_.Rv=function(a,b,c,d){this.id=a;this.f=b;this.a=c;this.h=d};_.Sv=function(){this.a=[];this.f=-1;this.h=null};
423
- _.Uv=function(a,b,c,d){var e,f;return _.I(function(g){if(1==g.a)return _.F(g,2),_.x(g,Tv(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.H(g);f.a(_.P);throw f;})};
424
- Tv=function(a,b,c,d){var e,f,g,k;return _.I(function(l){if(1==l.a){if(d){if(e=_.Vv[d.toLowerCase()])return l["return"](e);_.Qh("Could not determine manifest type using MIME type ",d)}if(f=_.An(a)){if(g=_.Wv[f])return l["return"](g);_.Qh("Could not determine manifest type for extension ",f)}else _.Qh("Could not find extension for ",a);return d?l.C(2):_.x(l,Xv(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(k=_.Vv[d])return l["return"](k);_.Qh("Could not determine manifest type using MIME type",d)}throw new _.O(_.P,
425
- 4,4E3,{url:a});})};Xv=function(a,b,c){var d,e,f;return _.I(function(g){if(1==g.a)return d=_.Zk(a),Wk(d,c),d.type=1,d.method="HEAD",_.x(g,b.fetch(d).U,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.Yv=function(){};_.mh=[];qh=typeof Object.create==_.ue?Object.create:function(a){function b(){}b.prototype=a;return new b};
426
- if(typeof Object.setPrototypeOf==_.ue)Zv=Object.setPrototypeOf;else{var $v;a:{var aw={fk:!0},bw={};try{bw.__proto__=aw;$v=bw.fk;break a}catch(a){}$v=!1}Zv=$v?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
427
- var rh=Zv,sh="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,th=typeof Object.defineProperties==_.ue?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};
428
- uh("Promise",function(a){function b(g){this.f=0;this.l=void 0;this.a=[];var k=this.j();try{g(k.resolve,k.reject)}catch(l){k.reject(l)}}function c(){this.a=null}function d(g){return g instanceof b?g:new b(function(k){k(g)})}if(a)return a;c.prototype.f=function(g){if(null==this.a){this.a=[];var k=this;this.h(function(){k.l()})}this.a.push(g)};var e=sh.setTimeout;c.prototype.h=function(g){e(g,0)};c.prototype.l=function(){for(;this.a&&this.a.length;){var g=this.a;this.a=[];for(var k=0;k<g.length;++k){var l=
320
+ _.Fs=function(a,b){try{a.g.debug("Attempting to load an offline session",b);var c=a.J.createSession(_.nf)}catch(f){var d=new _.O(_.P,6,6005,{browserError:f.message});a.w(d);return Promise.reject(d)}a.B.on(c,_.Re,a.vj.bind(a));a.B.on(c,De,a.rj.bind(a));var e={initData:null,loaded:!1,Vg:Infinity,Oc:null,Bb:new _.rm,periodId:null,Ff:[],keyId:null,Fb:[],initDataType:null,Wc:null,sessionContext:{ldlDelay:0,customData:{}}};e.Bb["catch"](function(){});a.h.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.g.debug("Loaded offline session",
321
+ b,f);if(!f)return a.h["delete"](c),a.w(new _.O(_.P,6,6013)),null;e.loaded=!0;Ms(a)&&(a.A||a.g.info(Ea),a.A=!0,a.G=!1,a.I.resolve());return c},function(f){a.j||(a.h["delete"](c),a.w(new _.O(_.P,6,6005,{browserError:f.message})))})};Ns=function(a,b,c,d){if(!b&&c!==_.gg)return!1;d=b||Dq(d);a=_.v(a.h.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||b&&e.Fb.includes(b)||c===_.gg&&(e.keyId||Dq(e.initData))===d)return!0;return!1};
322
+ Es=function(a,b,c,d,e,f,g){f=void 0===f?null:f;g=void 0===g?!1:g;var k,l,m,n,p,q,t,u,z,B,D,C,E,x,J,L,U,V,ta,za,va;_.I(function(qa){switch(qa.a){case 1:if(!e.length)return a.g.warn("Empty init data"),qa["return"]();k=b;if(!k)try{k=Os(a,d,e,f)}catch(Fa){if(a.g.warn("Ignoring unrecognized init data. This may be caused by unsupported or malformed init data. Set `drm.ignoreUnrecognizedInitData \x3d false` if you want to override this behavior and use the init data after all.",{error:Fa,initDataType:d,
323
+ initData:e}),a.f.ignoreUnrecognizedInitData)return qa["return"]()}if(g){qa.C(2);break}if(!Ns(a,k,d,e)){qa.C(2);break}l=!0;if("skd"!==d||a.f.enableSessionCacheForSkd){qa.C(4);break}m=_.v(a.h.keys());n=m.next();case 5:if(n.done){qa.C(4);break}p=n.value;q=a.h.get(p);if(!k||q.keyId!==k){qa.C(6);break}a.g.warn("Close and re-open session for "+k);_.F(qa,9);return _.y(qa,p.close(),11);case 11:_.G(qa,10);break;case 9:t=_.H(qa),a.g.warn("Unable to close session",t);case 10:l=!1;case 6:n=m.next();qa.C(5);break;
324
+ case 4:if(l)return a.g.warn("Skip creating a new session for "+k),qa["return"]();case 2:try{z=a.H?_.nf:_.sg,u=a.J.createSession(z),a.F.onEvent(new _.Q(ge,{keySystem:a.keySystem()})),a.g.info("Created new "+z+" session for Key ID: '"+k+"'. Init data type: "+(d+"."))}catch(Fa){return a.w(new _.O(_.P,6,6005,{browserError:Fa.message})),qa["return"]()}a.B.on(u,_.Re,a.vj.bind(a));a.B.on(u,De,a.rj.bind(a));B={Wc:f,Ff:[],initData:e,initDataType:d,keyId:k,Fb:k?[k]:[],loaded:!1,Vg:Infinity,periodId:c,Oc:null,
325
+ Bb:new _.rm,sessionContext:{ldlDelay:0,customData:{}}};B.Bb["catch"](function(){});f&&(D=a.h.get(f),B.sessionContext=D.sessionContext);a.h.set(u,B);k&&!a.o.get(k)&&a.o.set(k,lg);if(e)for(C=0;C<a.a.initData.length;C++)E=a.a.initData[C],E.keyId&&!B.Fb.includes(E.keyId)&&_.Sm(E.initData,e)&&(B.keyId||(B.keyId=E.keyId),B.Fb.push(E.keyId),a.o.get(E.keyId)||a.o.set(E.keyId,lg));x=_.N;J=x.bc;L=a.F.getConfiguration();U=a.keySystem();V=a.f.Ua[U];za=(ta=V.modifiers)&&ta.transformInitData;J(za)||(za=Ps);try{e=
326
+ za({playerConfig:L,initData:e,initDataType:d,drmInfo:a.a,drmSystemConfig:V,sessionContext:B.sessionContext,emeApi:a.l.ke()})}catch(Fa){return va=Fa,Fa instanceof _.O||(va=new _.O(_.P,6,6016,Fa)),B.Bb&&B.Bb.reject(Fa),a.w(va),qa["return"]()}a.g.info("Generate License Request for key ID: '"+k+"'");u.generateRequest(d,e.buffer)["catch"](function(Fa){if(!a.j){var sc=null;Fa.errorCode&&Fa.errorCode.systemCode&&(sc=Fa.errorCode.systemCode,0>sc&&(sc+=Math.pow(2,32)),sc="0x"+sc.toString(16));a.w(new _.O(_.P,
327
+ 6,6006,{browserError:Fa.message,error:Fa,extended:sc},Fa))}});_.A(qa)}})};
328
+ Os=function(a,b,c,d){d=void 0===d?null:d;if("skd"===b){a:{var e=d;e=void 0===e?null:e;var f=a.keySystem(),g=a.f.Ua[f];f=a.F.getConfiguration();g=g&&g.modifiers&&g.modifiers.extractContentId;_.N.bc(g)||(g=Qs);try{var k={ldlDelay:0,customData:{}};e&&(k=a.h.get(e).sessionContext);var l=g(f,c,k);a.g.debug("Extracted Content ID '"+l+"' from SKD");var m=l;break a}catch(C){a.g.warn("Unable to extract Content ID from SKD",C)}m=""}return m}if(b===_.gg)return Dq(c)||"";if(b===_.md){m=a.keySystem();try{if(m.match(/^com\.widevine\.alpha/)){var n=
329
+ _.Sr(c);if(n)return n.a}else if(Rs(m)){e=new _.jq(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);f=_.oq(e);var p=_.oq(e);g=_.yq(p);var q=_.oq(e);c=q>>>24;l=q&16777215;k=_.sq(e,16);var t=_.Rm(k);if(0<c){var u=_.oq(e);e.skip(16*u)}var z=_.oq(e),B=_.sq(e,z),D=_.Zr(B);_.$h("Parsed PR PSSH Box","size",f,"name",g,Qg,c,"flags",l,"size",z,"systemId",t,"keyId",D.a);if(D)return D.a}}catch(C){throw a.g.warn("Unable to extract Key ID from PSSH data.",{error:C,keySystem:m}),C;}}return""};
330
+ Qs=function(a,b){var c=_.Cq(b);_.$h("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
331
+ Ps=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&&g===Ss){a=_.N.bc;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=Qs);a="";try{a=e(b,c,f)}catch(k){throw new _.O(_.P,6,6103);}if(!a.length)throw new _.O(_.P,6,6101,"Content ID is an empty string");c=Eq(c,a,d)}return c};
332
+ Ys=function(a,b){var c,d,e,f,g,k,l,m,n,p,q,t,u,z,B,D,C,E;return _.I(function(x){switch(x.a){case 1:c=b.target;d=a.h.get(c);if(!d)return a.g.error("Session metadata not found for "+c.sessionId+"."),x["return"]();e=a.a.licenseServerUri;if(!Ts(a,b)){x.C(2);break}return _.y(x,Us(a,e,b,c,d),3);case 3:return x["return"]();case 2:f=a.Tb;if(!(0<f)){x.C(4);break}a.g.info("Delaying license request by "+f+" s.");return _.y(x,mj(f),5);case 5:if(a.j)return x["return"]();case 4:g=a.keySystem();k=a.f.Ua[g];"individualization-request"===
333
+ b.messageType&&k&&k.individualizationServer&&(e=k.individualizationServer);l=_.dl([e],a.f.attemptParameters);l.type=3;l.body=b.message;l.method=_.rb;l.licenseRequestType=b.messageType===Ge&&d.Wc?Fe:b.messageType;l.sessionId=c.sessionId;if(l.licenseRequestType===Fe)a.F.onEvent(new _.Q(fe));Rs(a.a.keySystem)&&Vs(a,l);$p(a.P,l);m=String(Math.floor(b.timeStamp));return _.y(x,Ws(a,l,d,m,e,c.sessionId,b.messageType,f),6);case 6:n=x.f;if(!n)return x["return"]();p=bq(a.P,n);return _.y(x,Xs(a,c,n.data,d,m),
334
+ 7);case 7:q=x.f;if(!q)return x["return"]();t=Gs(a);u=p?Date.now()+1E3*p.delay:Number.NaN;a.F.onEvent(new _.Q(_.ie,{keySystem:g,expirationTime:t,expectedRenewalTime:u}));d.Oc&&d.Oc.resolve();d.Wc&&(z=d.Wc,a.g.info("Closing expired session '"+z.sessionId+"'"),es(z)["catch"](function(){a.g.warn("Unable to close expired session in time")}),(B=a.h.get(d.Wc))&&B.Vd&&B.Vd.stop(),a.h["delete"](d.Wc),d.Wc=null);D=new _.lj(function(){a.j||(d.loaded=!0,d.Bb&&d.Bb.resolve(),Ms(a)&&(a.A||a.g.info(Ea),a.A=!0,a.G=
335
+ !1,a.I.resolve()))});D.ia(5);null!==d.initData&&(0<d.sessionContext.ldlDelay||p&&(_.R.startsWith(g,_.Id)||_.R.startsWith(g,_.Kd)))&&(C=new _.lj(function(){!a.j&&a.P&&(a.g.info("Triggering DRM session renewal"),Rs(g)?Es(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):g.startsWith(_.Id)&&c.update(_.R.ub("renew")))}),d.Vd=C,E=p?p.delay:d.sessionContext.ldlDelay,C.ia(E));_.A(x)}})};
336
+ Us=function(a,b,c,d,e){var f,g,k;return _.I(function(l){if(1==l.a)return f=_.dl([b],a.f.attemptParameters),f.type=3,f.body=c.message,f.method=_.rb,f.licenseRequestType=od,f.sessionId=d.sessionId,_.y(l,Zs(a,f,e,b,d.sessionId,c.messageType),2);g=l.f;if(!g)return l["return"]();k=String(Math.floor(c.timeStamp));return _.y(l,Xs(a,d,g.data,e,k),0)})};Ts=function(a,b){return!!a.keySystem().match(/^com\.widevine\.alpha/)&&b.message&&2===b.message.byteLength};
337
+ Ws=function(a,b,c,d,e,f,g,k){var l,m,n,p,q,t,u,z,B,D,C,E;return _.I(function(x){switch(x.a){case 1:return a.g.info("License request for SID:'"+(f+"'/KID:'"+c.keyId+"' from msg '")+(g+"'.")),_.y(x,$s(a,b,c.sessionContext),2);case 2:return a.g.debug("Sending DRM license request to",e,b),a.F.onEvent(new _.Q(ee,{delay:k})),l=Date.now(),_.ln(Yd+d+ha),m=null,_.F(x,3),_.y(x,a.F.Mb.fetch(b).U,5);case 5:m=x.f;_.G(x,4);break;case 3:n=_.H(x);if(a.j)return x["return"](null);p=n;q=p.data.headers;t=gr(q);u=Object.assign({message:"Error while fetching DRM license!",
338
+ url:p.data.url,status:p.data.status,response:p.data.response},q?{headers:q}:{},t);z=new _.O(_.P,6,6007,u,p);at(a,z,c);return x["return"](null);case 4:_.ln(Yd+d+".end");_.nn(Yd+d,Yd+d+ha,Yd+d+".end");B=Date.now()-l;if(D=hr(m.headers))a.Tb=D.delay||0;C="";D&&D.requestId&&(C=" RID:"+D.requestId);E=m.data.byteLength;a.g.info("License response for SID:'"+(f+"'/KID:'")+(c.keyId+"' ")+(E+" bytes in ")+(B+"ms"+C));return a.j?x["return"](null):x["return"](m)}})};
339
+ Zs=function(a,b,c,d,e,f){var g,k,l,m,n,p,q,t,u,z,B,D;return _.I(function(C){switch(C.a){case 1:return a.g.info("WV Server certificate request for SID:'"+(e+" from msg '"+f+"'.")),_.y(C,$s(a,b,c.sessionContext),2);case 2:return a.g.debug("Sending Widevine certificate request to",d,b),g=Date.now(),k=null,_.F(C,3),_.y(C,a.F.Mb.fetch(b).U,5);case 5:k=C.f;_.G(C,4);break;case 3:l=_.H(C);if(a.j)return C["return"](null);m=l;n=m.data.headers;p=gr(n);q=Object.assign({message:Na,url:m.data.url,status:m.data.status,
340
+ response:m.data.response},n?{headers:n}:{},p);t=new _.O(_.P,6,6100,q,m);at(a,t,c);return C["return"](null);case 4:return u=Date.now()-g,z=hr(k.headers),B="",z&&z.requestId&&(B=" RID:"+z.requestId),D=k.data.byteLength,a.g.info("WV Server certificate response for SID:'"+(e+"' ")+(D+" bytes in ")+(u+"ms"+B)),a.j?C["return"](null):C["return"](k)}})};
341
+ Xs=function(a,b,c,d,e){var f,g;return _.I(function(k){switch(k.a){case 1:return _.ln(ce+e+ha),_.F(k,2),_.y(k,b.update(c),4);case 4:_.G(k,3);break;case 2:f=_.H(k);if(a.j)return k["return"](!1);if(f===Fb)return a.g.info("Ignore update for closed sessions"),k["return"](!1);g=new _.O(_.P,6,6008,{browserError:f.message});at(a,g,d);return k["return"](!1);case 3:return _.ln(ce+e+".end"),_.nn(ce+e,ce+e+ha,ce+e+".end"),a.j?k["return"](!1):k["return"](!0)}})};
342
+ at=function(a,b,c){a.j||(a.w(b),c.Oc&&c.Oc.reject(b),c.Bb&&c.Bb.reject(b))};
343
+ Vs=function(a,b){var c=_.R.Yc(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.g.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(_.Pg).textContent;b.body=_.Pm(c.querySelector("Challenge").textContent).buffer}else a.g.debug("PlayReady request is already unwrapped."),b.headers[Ba]="text/xml; charset\x3dutf-8"};
344
+ $s=function(a,b,c){var d,e,f,g,k,l;return _.I(function(m){if(1==m.a)return d=a.F.getConfiguration(),_.y(m,Bs(a,d),2);e=a.keySystem();k=(g=(f=a.f.Ua[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;k?b.requestModifiers.push(function(n){return k(d,n,c)}):e.startsWith(_.Id)&&b.requestModifiers.push(function(n){return _.Fq(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Id)&&b.responseModifiers.push(function(n){return _.Gq(n)});_.A(m)})};
345
+ bs=function(a){var b=a.o,c=a.ma;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.w(new _.O(_.P,6,6014));a.F.Zg(_.N.Mh(c));a.A||a.g.info(Ea);a.A=!0;a.G=!1};vs=function(a){var b;return _.I(function(c){if(1==c.a)return _.ln(be),b=a.ha.map(function(d){return Ys(a,d)}),a.Va=!0,a.ha=[],_.y(c,Promise.all(b),2);_.ln(ae);_.nn("drm.onPlay",be,ae);_.A(c)})};Rs=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};
346
+ _.Ks=function(a){return Rs(a)?_.Kd:a};_.ct=function(a,b){return a.length&&b.length?0<_.bt(a,b).length:!0};
347
+ _.bt=function(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=0;d<a.length;d++)for(var e={},f=0;f<b.length;e={ce:e.ce},f++)if(a[d].keySystem===b[f].keySystem&&a[d].periodId===b[f].periodId){var g=a[d];f=b[f];var k=[];k=k.concat(g.initData||[]);k=k.concat(f.initData||[]);e.ce=_.uh(g.keyIds||[]).concat();f.keyIds&&f.keyIds.length&&f.keyIds.forEach(function(l){return function(m){l.ce.includes(m)||l.ce.push(m)}}(e));c.push({keySystem:g.keySystem,licenseServerUri:g.licenseServerUri||f.licenseServerUri,
348
+ licenseServerUriOrigin:g.licenseServerUriOrigin||f.licenseServerUriOrigin,distinctiveIdentifierRequired:g.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:g.persistentStateRequired||f.persistentStateRequired,videoRobustness:g.videoRobustness||f.videoRobustness,audioRobustness:g.audioRobustness||f.audioRobustness,serverCertificate:g.serverCertificate||f.serverCertificate,initData:k,keyIds:e.ce,periodId:g.periodId});break}return c};
349
+ cs=function(a){a.h.forEach(function(b,c){var d=b.Vg,e=c.expiration;isNaN(e)&&(e=Infinity);e!==d&&(a.F.Yg(c.sessionId,e),b.Vg=e)})};Ms=function(a){a=_.v(a.h.values());for(var b=a.next();!b.done;b=a.next())if(!b.value.loaded)return!1;return!0};
350
+ js=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=_.v(a),e=d.next();!e.done;e=d.next())e.value.drmInfos=c};Is=function(a){for(var b=_.v(a.audioCapabilities||[]),c=b.next();!c.done;c=b.next())delete c.value.robustness;a=_.v(a.videoCapabilities||[]);for(b=a.next();!b.done;b=a.next())delete b.value.robustness};
351
+ Js=function(a){return(a.audioCapabilities||[]).some(dt)||(a.videoCapabilities||[]).some(dt)};dt=function(a){return null!=a.robustness&&""!==a.robustness};
352
+ Ls=function(a,b,c,d,e){var f={};a=_.v(a);for(var g=a.next();!g.done;f={Na:f.Na},g=a.next()){f.Na=g.value;b.includes(f.Na.licenseServerUri)||b.push(f.Na.licenseServerUri);f.Na.serverCertificate&&(c.some(function(m){return function(n){return _.Sm(n,m.Na.serverCertificate)}}(f))||c.push(f.Na.serverCertificate));if(f.Na.initData){var k=_.v(f.Na.initData);for(g=k.next();!g.done;g=k.next())g.value.periodId=f.Na.periodId;k={};var l=_.v(f.Na.initData);for(g=l.next();!g.done;k={gf:k.gf},g=l.next())k.gf=g.value,
353
+ d.some(function(m){return function(n){var p=m.gf;return n.keyId&&n.keyId===p.keyId&&n.periodId===p.periodId?!0:!1}}(k))||d.push(k.gf)}if(f.Na.keyIds)for(g=0;g<f.Na.keyIds.length;++g)e.includes(f.Na.keyIds[g])||e.push(f.Na.keyIds[g])}};
354
+ ps=function(a,b,c){var d=_.Ks(b.keySystem);c=c[d];d===_.jf&&b.licenseServerUri?a.g.debug("Using Clear Key data URI for",d):c&&c.licenseUrl?(b.licenseServerUri=c.licenseUrl,a.g.debug("Using license server URI from user-configured clpp.drm.DrmEnvironment (licenseUrl) for",d)):a.g.debug("Using license server URI from the manifest for ",d)};
355
+ ns=function(a,b){var c=b[_.Ks(a.keySystem)];a.keyIds||(a.keyIds=[]);c&&(a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness||""),a.audioRobustness||(a.audioRobustness=c.audioRobustness||""),a.serverCertificate||(a.serverCertificate=c.serverCertificate||null))};
356
+ es=function(a){var b,c;return _.I(function(d){if(1==d.a)return b=new Promise(function(e){(new _.lj(e)).ia(1)}),_.y(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.Vh("Timeout waiting for session close");_.A(d)})};_.et=function(a){this.f=a;this.a=0};_.ft=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};
357
+ _.gt=function(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new _.O(_.P,4,4016,{invalidTag:b});var d=c[1],e=c[2];c=[];var f;if(e){e=new _.et(e);var g;(g=_.ft(e,/^([^,=]+)(?:,|$)/g))&&g[1]&&(f=g[1].trim());for(var k=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.ft(e,k);)c.push(new _.Vp(g[1],g[2]||g[3]||""))}return new _.Tp(a,d,c,f)};
358
+ _.ht=function(a,b){this.id=a;this.type=b;this.roles=[];this.frameRate=this.label=this.originalLanguage=this.language=this.kind=null;this.trickPlay=!1;this.channelsCount=this.src=this.mimeType=null;this.spatialAudio=!1;this.renditions=[];this.accessibility=[]};_.it=function(a){return a&&a!==_.Gg?a:null};
359
+ mt=function(a){if(!a)throw new _.O(_.P,3,3101,Wa+a);if(!_.N.ja(a))throw new _.O(_.P,3,3101,Wa+a+". Track type must be a string!");switch(a.toLowerCase()){case _.jt:return _.jt;case _.X:return _.X;case _.kt:return _.kt;case lt:return lt}throw new _.O(_.P,3,3101,"Unknown track type: "+a+".");};nt=function(a,b,c){a=mt(a);var d=_.it(c.kind);a=new _.ht(b,d===_.Se?lt:a);a.kind=d;a.label=_.it(c.label);a.language=_.it(c.language);a.originalLanguage=c.originalLanguage||a.language;return a};
360
+ ot=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};_.pt=function(a,b){this.track=b;this.id=a;this.originalId=this.codec=this.ee=this.bandwidth=this.height=this.width=null;this.a=!1};qt=function(a){this.f=a;this.g=new _.M("clpp.native.hls.HlsMetadataParser");this.a=vn(this.h.bind(this),function(b,c){return b[0]===c[0]&&b[1].enableHlsVideoTrackInfo===c[1].enableHlsVideoTrackInfo&&b[1].enableMetadata===c[1].enableMetadata})};
361
+ tt=function(a,b,c){var d,e,f,g,k;return _.I(function(l){if(1==l.a)return _.y(l,rt(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.ht("dummy",_.kt);k=f.map(function(m,n){var p=new _.pt("R"+n,g);p.bandwidth=m.bandwidth;p.ee=m.ee;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});st(k);return l["return"]({renditions:k,mimeType:e||void 0})})};
362
+ vt=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return ut(c)});var b=new Map;a.forEach(function(c){if(c.type&&c.name){var d=c.type+":"+c.name;if(b.has(d))throw Error("#EXT-X-MEDIA:NAME attributes are not unique. It is impossible to map HLS metadata to Safari data structures.");b.set(d,c)}});return b};
363
+ ut=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.gt(0,a);a=b(_.Kb);a=null!=a?{AUDIO:_.X,VIDEO:_.kt,SUBTITLES:_.jt}[a]:void 0;return{type:a,groupId:b(_.Qa),name:b(_.gb),language:b(_.Za),Pp:b("AUTOSELECT"),"default":b("DEFAULT"),$p:b("FORCED"),$h:b("CHARACTERISTICS"),uri:b(_.Mb)}};st=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.");};
364
+ wt=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.dl(b),_.y(e,cn(a.f,c),2);d=e.f;return e["return"](d)})};rt=function(a,b,c){var d,e,f,g;return _.I(function(k){if(1==k.a)return d=xt(b),e=yt(b,c),f=d[0]?d[0].codec:null,_.y(k,zt(a,e,f),2);g=k.f;return k["return"]({mimeType:g,renditions:d})})};zt=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return b&&c?_.y(f,wt(a,b),2):f["return"](null);d=f.f;e=[At(d,b),Bt(d,b)].filter(Boolean);return f["return"](_.Sp(e,_.Tg,c))})};
365
+ xt=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.gt(0,b);if(c.getAttribute(_.Ub))throw Error("Playlist contains alternative video streams.");var d=_.T(c,_.zb);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.T(c,_.oa);e=e?Number(e):null;var f=_.T(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.T(c,_.ua);c=_.Qp(_.Tg,c?c.split(","):[]);return{bandwidth:e,ee:f,codec:c,width:b,height:d,mimeType:null}})};
366
+ yt=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?_.Dn(c,b):null};At=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?_.Dn(c,b):null};Bt=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.T(_.gt(0,c),_.Mb))?_.Dn(c,b):null:null};
367
+ _.Dt=function(a,b,c){for(var d=_.v(_.Ct),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.Et=function(a){a=_.Ct.indexOf(a);0<=a&&_.Ct.splice(a,1)};_.Ft=function(){};
368
+ Gt=function(){this.g=new _.M("clpp.native.TrackManager");this.m=null;this.f=new _.Bi;this.h=[];this.D=0;this.o={};this.G=[];this.a=new Map;this.w=null;this.l=new Map;this.A=new Map;this.B=!0;this.K=this.ah.bind(this,_.jt);this.M=this.dh.bind(this,_.jt);this.L=this.bh.bind(this,_.jt);this.P=this.ah.bind(this,_.kt);this.W=this.dh.bind(this,_.kt);this.T=this.bh.bind(this,_.kt);this.H=this.ah.bind(this,_.X);this.J=this.dh.bind(this,_.X);this.I=this.bh.bind(this,_.X);this.j=null};
369
+ It=function(a,b){var c,d,e,f,g,k,l,m,n,p,q;return _.I(function(t){if(1==t.a){c=a.m.getConfiguration();d=_.Dt(c,b.mimeType,_.ug);if(!d)return a.g.warn("Track MIME type is not supported",b),t["return"]();e=_.dl(b.url);f=b.mimeType===_.Mc?"tt":"c";g={objectType:f};k=_.fn(a.m.getNetworkEngine(),e,g);return _.y(t,k.U,2)}(l=t.f)&&l.data&&(m="External_"+a.D++,a.o[m]=b,n=d.a(_.Vi(l.data)),p=URL.createObjectURL(new Blob([n])),q={url:p,kind:b.kind,language:b.language,label:b.label,mimeType:_.ug},Ht(a,q,m));
370
+ _.A(t)})};Kt=function(a,b,c){return Jt(a)&&b===_.kt&&!!c.enableHlsVideoTrackInfo};Lt=function(a,b,c){return Jt(a)&&(b===_.X||b===_.jt)&&!!c.enableMetadata};Jt=function(a){a=a.m.getLoadedSource();return!(!a||a.type!==_.am&&!a.url.endsWith(".m3u8"))&&_.tj()};
371
+ Mt=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return(d=a.m.getLoadedSource())&&a.j?_.y(f,a.j.a(d.url,c),2):f["return"]();e=f.f;e.mimeType&&(b.mimeType=e.mimeType);e.renditions&&0<e.renditions.length&&(b.renditions=e.renditions,b.renditions.forEach(function(g){g.track=b}));_.A(f)})};
372
+ Nt=function(a,b,c){var d,e,f,g;return _.I(function(k){if(1==k.a)return(d=a.m.getLoadedSource())&&a.j?_.y(k,a.j.a(d.url,c),2):k["return"]();e=k.f;e.gd&&(f=b.type+":"+b.label,(g=e.gd.get(f))&&g.$h&&(b.accessibility=g.$h.split(",").map(function(l){return l.trim()}).map(function(l){return{value:l,type:b.type,protocol:"HLS"}})));_.A(k)})};
373
+ Ht=function(a,b,c){if(a.m){var d=a.m.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);_.R.empty(b.url)?e.src=URL.createObjectURL(new Blob([])):e.src=b.url;d.appendChild(e);a.G.push(e)}}};Ot=function(a,b){if(!a.m)return null;var c=a.m.getSurface();if(!c)return null;c=c.getMedia();if(!c)return null;switch(b){case _.X:return c.audioTracks;case _.kt:return c.videoTracks;case _.jt:return c.textTracks;default:return null}};
374
+ Pt=function(a,b){var c=Ot(a,b);c&&(c=Array.from(c),b===_.jt&&(c=c.filter(function(d){return d.kind!==_.Se})));return c};Qt=function(a,b){return a.h.filter(function(c){return c.type===b})};Rt=function(a,b){var c=a.a.get(b)||null;return c&&c.renditions[0]};St=function(a,b){var c=a.l.get(b);return c&&c.renditions[0]};
375
+ Ut=function(a,b,c){var d=Pt(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.g.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.l.set(b,c);var e=!0,f=!1;switch(b){case _.jt:var g="mode";e=_.dg;f=_.Wd;break;case _.X:g="enabled";break;case _.kt:g="selected"}if(g){d=_.v(d);for(var k=d.next();!k.done;k=d.next())k=k.value,k[g]=Tt(a,c,k,c.type)?
376
+ e:f}}}else if(a.g.debug("Disable track type "+b),a.a.get(b)&&d&&b===_.jt){g=_.v(d);for(k=g.next();!k.done;k=g.next())k.value.mode=_.Wd;a.a.set(b,null)}b===_.X?a.m.trigger(new _.Q(_.$c)):b===_.jt&&a.m.trigger(new _.Q(_.wg))};Vt=function(a){return a.enabled||a.selected||a.mode===_.dg||a.mode===_.we};
377
+ Wt=function(a,b,c){c=_.Ni(c).filter(function(e){return e});a.g.info("Find preferred tracks for",b,c);var d=Qt(a,b);c.some(function(e){var f=_.vo(e);return(e=d.find(function(g){g=_.vo(g.language||"");return _.wo(f,g)}))?(a.g.info("Will select track with id",e.id),Ut(a,b,e),!0):!1})};Xt=function(a){(a=a.m.getTextDisplayer())&&a.remove(0,Infinity)};
378
+ Tt=function(a,b,c,d){return b.type!==d?!1:d===_.X&&(a=a.A.get(b.id),void 0!==a)?a===c:void 0!==c.id&&null!==c.id&&""!==c.id?b.id===c.id:_.N.ua(b,{kind:_.it(c.kind),language:_.it(c.language),label:_.it(c.label)},["kind","language","label"])};Zt=function(a){return a.name===ob&&Yt.some(function(b){return a.message.startsWith(b)})};
379
+ _.$t=function(a){_.Ii.call(this);this.log=new _.M(a);this.configuration=this.Va=_.Pn();this.fa=this.D=null;this.Me=this.wh=!1;this.Ih=new _.M("clpp.video.events");this.he=null;this.Nf=-1;this.fk=this.No.bind(this);this.fe=new _.an;this.setNetworkEngine(this.fe);this.M=new _.Bi;this.nh=this.ud=this.Fd=this.T=null};_.cu=function(a,b){a&&b&&(_.au.set(a,b),_.bu.info("Registered TextDisplayerFactory: '"+a+"'"))};
380
+ _.du=function(a,b){var c=b.find(function(d){return(d=_.au.get(d))?d.a(a):!1});if(null==c)return _.bu.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;_.bu.info("Chosen the text displayer: "+c);return _.au.get(c)};eu=function(){this.a=null;this.f=[]};_.fu=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})}};
381
+ gu=function(a,b){var c=0;a.a&&a.a.state===b&&(c+=a.a.duration);for(var d=_.v(a.f),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state===b?e.duration:0;return c};hu=function(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=_.v(a.f),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};iu=function(){this.h=this.f=this.j=null;this.a=[]};ju=function(a){return a.a.map(function(b){return _.N.xb(b)})};
382
+ _.ku=function(){this.h=this.w=this.B=this.D=this.l=this.o=this.j=this.A=NaN;this.a=new eu;this.f=new iu};_.lu=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:[]}};
383
+ ou=function(a){this.g=new _.M("clpp.StateManager");this.m=a;this.a=new _.Bi;this.f=_.mu;this.A=7;this.I=0;this.w=-1;this.L=this.o=this.J=this.B=0;this.j=this.h=this.G=!1;this.H=0;this.l=null;this.K=0;this.M=_.tj();this.D=!1;this.J=Date.now();nu(this)};pu=function(a,b){return Object.keys(b)[a]};
384
+ qu=function(a,b){var c={type:_.kg};b===_.ed||b===_.dd?(c.reason=a.w,b===_.ed?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.B):(2===a.f&&(c.reason=a.w),2===a.A&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
385
+ uu=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=2===a.f;a.A=a.f;a.f=b;5===a.A&&(a.J=c,a.o=0);a.o||(a.o=a.J||c);a.I=c-a.o;a.o=c;2===b?(a.L=a.o,a.w=a.h?1:2,a.g.info("Buffering started. Reason: "+pu(a.w-1,_.ru)),c=qu(a,_.ed),su(a,_.ed,c)):d&&(a.B=a.o-a.L,a.g.info("Buffering finished. Reason: "+pu(a.w-1,_.ru)+". Buffering time: "+a.B+" ms"),c=qu(a,_.dd),su(a,_.dd,c));c=pu(a.A,_.tu);d=pu(a.f,_.tu);a.g.info(_.vb+c+" -\x3e "+d);su(a,_.kg,qu(a,""));return!0};
386
+ su=function(a,b,c){a.m&&a.m.trigger(new _.Q(b,{detail:c}))};
387
+ vu=function(a,b){if(a.f===_.Fo)a.g.warn("Player is in error state, aborting any further state checks");else{var c=a.m.isPaused(),d=a.m?a.m.isEnded():!1;if(d)a.h||(a.j=!1,uu(a,5));else if(b!==_.Bg){var e=a.m.getPosition();e=null!==e&&void 0!==e&&0<=e?a.m.getBufferInfo().Ya(e,!0):-1;a.H=e;e=a.m.getSurface().getMedia();a.l=e?e.readyState:null;a.K=a.m.getPlaybackRate()||1;e=typeof a.l===_.h&&2>a.l&&2===e.networkState;var f=typeof a.l===_.h&&0>=a.H&&a.f===_.mu,g=typeof a.l===_.h&&2>=a.l&&a.j;e=a.h||f||
388
+ e||g;!a.M||a.m.isLive()||2!==a.f||e||(f=b===_.bg&&4===a.l,(g=1===a.A)&&!a.D?e=!0:g||a.D||f||(e=!0));f=!1;e?f=uu(a,2):c?f=uu(a,4):a.G&&(f=uu(a,3));f&&(a.D=!1);a.g.debug("Video state check for event "+b+":: seeking: "+a.h+", waiting: "+a.j+", playing: "+a.G+", paused: "+c+", readyState: "+a.l+", rate: "+a.K+", buffer: "+a.H+", ended: "+d+". Changed state: "+f+", Current state: "+pu(a.f,_.tu))}}};
389
+ nu=function(a){function b(d){return vu(a,d.type)}a.g.debug("Start watching for video events for "+a.m.namespace());var c=a.m;a.a.on(c,_.pe,function(){a.h||(a.j=!1,uu(a,5))});a.a.on(c,fd,b);a.a.on(c,_.Af,function(){a.G=!0;a.j=!1;vu(a,_.Af)});a.a.on(c,_.lf,function(){a.G=!1;a.j=!1;vu(a,_.lf)});a.a.on(c,_.Bg,b);a.a.on(c,_.Qf,b);a.a.on(c,_.bg,function(d){a.h=!1;a.j=!1;vu(a,d.type)});a.a.on(c,_.cg,function(d){a.h=!0;vu(a,d.type)});a.a.on(c,ig,b);a.a.on(c,_.ah,function(){a.j=!0;vu(a,_.ah)});a.a.on(c,_.qe,
390
+ function(d){(d=d&&d.detail)&&d.severity&&d.severity===_.P&&uu(a,_.Fo)});a.a.on(c,_.Me,b);a.a.on(c,gd,function(){a.D=!0;vu(a,gd)});a.a.on(c,_.Og,function(d){a.h=!0;vu(a,d.type)});a.a.on(c,_.Ng,function(d){a.h=!1;a.j=!1;vu(a,d.type)})};wu=function(){_.$t.call(this,Cd);this.w=this.H=!1;this.l=this.A=this.o=this.a=this.j=null;this.h=new _.Bi;this.G=this.B=this.f=this.I=null};
391
+ yu=function(a,b){if(a.w)throw new _.O(_.P,7,7E3);a.a||(a.h.on(b,_.qe,function(){var c=xu(a);if(c)a.onError(c)}),a.h.on(b,_.Vf,function(){var c=b.videoWidth,d=b.videoHeight,e=a.getTrackManager();e&&0<c&&0<d&&(e.w={width:c,height:d});a.trigger(new _.Q(_.bd,{detail:{width:c,height:d}}))}),a.a=b)};zu=function(a){var b=_.tj()?Ss:void 0;return new _.ds(a,b)};
392
+ Bu=function(a){var b,c,d,e,f;return _.I(function(g){if(1==g.a){if(a.w)return g["return"](Promise.reject(new _.O(_.P,7,7E3)));b=a.fa[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=_.Au;d=_.ao(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=zu({Mb:e,onError:function(k){return a.onError(k)},Zg:function(){},Yg:function(k,l){a.trigger(new _.Q(_.de,
393
+ {expirationTime:l}))},onEvent:function(k){k instanceof _.Q?a.dispatchEvent(k):a.log.debug(_.Pb,k.type)},getConfiguration:function(){return a.getConfiguration()},Hd:function(){return a.Hd()}});a.o.f=d;f={id:0,language:_.Gg,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,
394
+ Ta:0,mimeType:_.Vg,codecs:"",encrypted:!0,keyId:null,language:_.Gg,originalLanguage:_.Gg,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,fq:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,spatialAudio:!1,Mp:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.y(g,_.is(a.o,[f]),2)}return _.y(g,_.As(a.o,a.a),0)})};
395
+ Cu=function(a,b){mr(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){a.getState()!==_.Fo&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};xu=function(a){if(null===a.fa||!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 _.O(_.P,3,3016,{code:b,Yp:c,message:a.a.error.message})};
396
+ Du=function(a){if(a.w)return new _.Wm(Promise.reject(new _.O(_.P,7,7E3)),function(){});var b=a.fa[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.I;c&&Cu(a,c);if(d.preload!==_.Ze)a.h.one(d,_.Me,function(){var g=Date.now()/1E3-e;a.f.B=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.qj()||_.rj())&&d.load();var f=new _.rm;a.h.one(d,ig,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.B||(a.B=(new _.lj(function(){f.reject(new _.O(_.P,3,3100,{message:"Unable to load media source successfully from "+
397
+ b.url,uri:b.url},d.error))})).ia(g))});mr(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.h,function(){return f.resolve()});d.error?f.reject(xu(a)):d.preload===_.Ze&&(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.h.one(d,_.qe,function(){f.reject(xu(a))});
398
+ return new _.Wm(f,function(){var g=new _.O(_.P,7,7001);f.reject(g);return Promise.resolve()})};
399
+ Eu=function(a,b){mr(b,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){if(a.isLive()&&a.getState()!==_.Fo){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)}))}})};
400
+ Fu=function(a,b){var c=!1;a.h.on(b,_.cg,function(){c=b.paused});a.h.on(b,_.bg,function(){.2>b.duration-b.currentTime&&b.paused&&!c&&(a.log.warn("Player was auto-paused during seek to the end, auto-resuming."),b.play())})};Gu=function(){};
401
+ Hu=function(a,b,c){S.call(this,a,b,c);a={manifest:{timeline:{version:2},keepTimelineLive:!0},streaming:{preferNativeHlsOnSafari:!1,enableLiveEdgeChasing:!1,startAtSegmentBoundary:!1}};this.D=_.N.ta(this.D,a);this.f=_.N.ta(this.f,a);this.H=0;this.o=[];this.ba=!1;this.w=null;this.K=[]};Iu=function(a){a.K.forEach(function(b){return b()});a.K=[]};
402
+ Ju=function(a,b){function c(f){a.H=a.o.findIndex(function(g){return g.id===f.id})}a.addEventListener(_.Yf,c);a.K.push(function(){a.removeEventListener(_.Yf,c)});if(b.endTime){var d=b.endTime,e=function(){a.getPosition()>=d&&(a.removeEventListener(_.Bg,e),a.g.info("Playlist end time reached. Stopping playback."),a.trigger(new _.Q(_.Xf)),a.pause())};a.addEventListener(_.Bg,e);a.K.push(function(){a.removeEventListener(_.Bg,e)})}};
403
+ Mu=function(a,b){var c,d;return _.I(function(e){switch(e.a){case 1:return _.F(e,2),_.ln(zf),a.P=_.qb,a.ma=!1,c=b.slice(1).map(function(f){return{config:f,fa:_.Vn(f)}}),_.y(e,_.$o(a,b[0]),4);case 4:return c.forEach(function(f){Ku(a,f.config,f.fa)}),a.trigger(new _.Q(Ne)),_.y(e,a.a.setupPlaylist(b),5);case 5:return _.y(e,_.Vo(a),6);case 6:c.forEach(function(f){Lu(a,f.config,f.fa)});_.ln(yf);_.nn("player.setupPlaylist",zf,yf);_.G(e,0);break;case 2:d=_.H(e);if(a.l)throw a.g.info(bb),new _.O(_.P,7,7E3);
404
+ throw d;}})};Nu=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.F(e,2),_.ln(tf),c=_.Vn(b),Ku(a,b,c),_.y(e,a.a.appendLoad(b),4);if(2!=e.a)return Lu(a,b,c),_.ln(sf),_.nn("player.appendLoad",tf,sf),_.G(e,0);d=_.H(e);if(a.l)throw a.g.info(bb),new _.O(_.P,7,7E3,{id:b.id});throw d;})};Lu=function(a,b,c){Ro(a,{configuration:b,fa:c,drmInfo:a.getDrmInfo(),Jj:Object.keys(a.L),isLive:c[0].isLive})};
405
+ Ku=function(a,b,c){if(0===c.length)throw new _.O(_.P,7,7003,{message:kb,id:b.id});if(1<c.length)throw new _.O(_.P,7,7003,{message:"Multiple sources not supported!",id:b.id,source:c});if(2!==(a.a?a.a.canPlay(c[0],a.f):0))throw new _.O(_.P,7,7003,{message:"Source not supported by the current player!",id:b.id,source:c[0]});};
406
+ Qu=function(a){_.Ii.call(this);var b=this;this.j=_.N.ta({transition:_.lf,preloadMedia:!1},a);this.h=[];this.a=0;var c=Ou(a.anchorId,this.j.config);this.w=new Mi(c);this.f=null;this.l=!1;this.o=new Map;this.A=a.toggleVisible;this.g=new _.M(Dd);this.w.a.forEach(function(d){return Pu(b,d.player,!1)})};Su=function(a){return Promise.all(Array.from(a.o.keys()).map(function(b){return Ru(a,b)}))};
407
+ Ru=function(a,b){var c;return _.I(function(d){if(1==d.a){c=a.o.get(b);if(!c)return d.C(0);a.g.info("Stop preloading item (index: "+b+")");return c.player?_.y(d,Tu(a,c),3):d.C(3)}a.o["delete"](b);_.A(d)})};Vu=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Stop current playback (index: "+b.index+")"),b.player.pause(),Pu(a,b.player,!1),_.y(c,Tu(a,b),2);b.player=null;b.videoEl=null;b.role=Uu;_.A(c)})};
408
+ Tu=function(a,b){return _.I(function(c){b.disposers.forEach(function(d){return d()});b.disposers=[];return b.player?_.y(c,a.w.release(b.player),0):c.C(0)})};Yu=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.y(d,a.w.get(),2);if(3!=d.a)return c=d.f,a.f=b,b.role=Wu,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),Pu(a,c,!0),_.y(d,c.open(b.config),3);Xu(a,b);return b.config.autoplay?d.C(0):_.y(d,c.play(),0)})};
409
+ Zu=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Lf){c.C(2);break}a.g.info(Wb);_.F(c,3);return _.y(c,b.preloadPromise,5);case 5:_.G(c,2);break;case 3:_.H(c);case 2:a.f=b;b.role=Wu;Pu(a,b.player,!0);if(b.state===Kf)return _.ln(Ef),a.j.preloadMedia?_.y(c,b.player.play(),11):_.y(c,Wo(b.player),11);if(b.state!==If){c.C(7);break}return _.y(c,b.player.open(b.config),7);case 11:_.ln(Df),_.nn("playlist.next",Ef,Df);case 7:if(Xu(a,b),b.config.autoplay)c.C(0);
410
+ else return _.y(c,b.player.play(),0)}})};Xu=function(a,b){if(a.j.autoplayNext){var c=function(){a.g.info("Automatically transition to next item");a.Hj()};b.player.on(_.pe,c);var d=b.player;b.disposers.push(function(){d.off(_.pe,c)})}};av=function(a){var b;return _.I(function(c){b=a.a+1;a.g.info("Preload following item (index: "+b+")");return _.y(c,$u(a,b),0)})};bv=function(a){var b;return _.I(function(c){b=a.a-1;a.g.info("Preload preceding item (index: "+b+")");return _.y(c,$u(a,b),0)})};
411
+ cv=function(a){var b;_.I(function(c){if(0===a.a)return _.y(c,av(a),0);if(a.a===a.h.length-1)return _.y(c,bv(a),0);b=[a.a-1,a.a+1];a.g.info("Preload items (indices: "+b+")");return _.y(c,Promise.all(b.map(function(d){return $u(a,d)})),0)})};
412
+ $u=function(a,b){var c,d,e;return _.I(function(f){switch(f.a){case 1:return _.y(f,a.w.get(),2);case 2:return c=f.f,d=a.h[b],d.player=c,d.videoEl=c.getSurface().getMedia(),d.role=Uu,d.state=Lf,a.trigger(new _.Q(Jg)),_.F(f,3),a.o.set(b,d),a.j.preloadMedia?(d.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (index: "+(b+")")),d.config.autoplay=!1),d.preloadPromise=c.open(d.config)):d.preloadPromise=c.preload(d.config),_.y(f,d.preloadPromise,5);case 5:d.state=
413
+ Kf;a.trigger(new _.Q(Jg));_.G(f,0);break;case 3:e=_.H(f),7001===e.code?(a.g.info("Preload aborted (index: "+b+")"),d.state=Gf):(a.g.warn("Preload failed (index: "+b+")",e),a.trigger(new _.Q(_.qe,{detail:e})),d.state=If),a.trigger(new _.Q(Jg)),_.A(f)}})};Pu=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.info(Hb+b),d.classList.add(vd)):(a.g.info(Va+b),d.classList.remove(vd)),a.A&&a.A(d,c))};
414
+ dv=function(a){var b;return _.I(function(c){if(1==c.a)return _.y(c,a.w.destroy(),2);b=document.getElementById(a.j.anchorId);if(!b)return c["return"]();b.classList.remove(ud);b.innerHTML="";_.A(c)})};
415
+ Ou=function(a,b){var c=document.getElementById(a);if(!c)throw Error("Anchor element not found");c.classList.add(ud);return Array.from({length:3}).map(function(){var d=document.createElement(_.Tg);d.classList.add("clpp-mc-playlist-video-el");var e=document.createElement(_.Xd);e.classList.add("clpp-mc-playlist-item");e.appendChild(d);c.appendChild(e);return new S(d,b)})};
416
+ _.fv=function(a){if(ev.has(a))return ev.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);ev.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),ev.set(a,b),b):!1};gv=function(a){this.h=a;this.f={keepOriginalTimestamps:!0,remux:!1};this.a=new muxjs.mp4.Transmuxer(this.f)};
417
+ hv=function(a,b){var c=b.replace(/mp2t/i,"mp4");a===_.Sc&&(c=c.replace(_.Tg,_.Sc));var d=/avc1\.(66|77|100)\.(\d+)/.exec(c);if(d){var e="avc1.",f=d[1],g=Number(d[2]);e=("66"===f?e+"4200":"77"===f?e+"4d00":e+"6400")+(g>>4).toString(16);e+=(g&15).toString(16);c=c.replace(d[0],e)}return c};iv=function(){};_.jv=function(){};
418
+ kv=function(a,b,c,d,e){_.eq.call(this,Ua);this.l=a;this.j=b;this.h=c;this.a=d;this.o=e;this.g=new _.M(zd);_.R.empty(this.l)?this.g.warn(_.Yb):this.Ma(_.Md,{licenseUrl:this.l,videoRobustness:[_.Db,void 0],audioRobustness:[_.Cb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.Re.bind(this)}});_.R.empty(this.j)?this.g.warn(_.sb):this.Ma(_.Kd,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.Re.bind(this)}});
419
+ _.R.empty(this.h)?this.g.warn(_.Pa):_.R.empty(this.a)?this.g.warn(_.Oa):this.Ma(_.Id,{licenseUrl:this.h,certificateUrl:this.a,modifiers:{licenseRequest:this.pj.bind(this),licenseResponse:this.qj.bind(this),certificateRequest:this.Re.bind(this),extractContentId:this.Ai.bind(this)}})};lv=function(){};mv=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.ue)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
420
+ nv=function(a){a=a.target;if(a.webkitPresentationMode===of){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)};ov=function(){return this.webkitSupportsPresentationMode(of)?(this.webkitSetPresentationMode(of),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
421
+ pv=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};qv=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};rv=function(a,b,c){return new window.TextTrackCue(a,b,c)};
422
+ sv=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};vv=function(a,b,c){if("input"===a)switch(this.type){case "range":a=pd}uv.call(this,a,b,c)};_.wv=function(a){var b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next()){c=_.v(c.value.variants);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};_.xv=function(a,b,c){this.h=a;this.j=b;this.f=c||this.h.getMedia();this.a=null};_.zv=function(){this.a=new Blob([yv],{type:_.Vg})};
423
+ _.Bv=function(a,b){var c=_.In(_.Jn(a),_.Kn(a));_.Av[c]=b};_.Cv=function(a){a=_.In(_.Jn(a),_.Kn(a));return _.Av[a]||null};_.Dv=function(a){a=_.In(_.Jn(a),_.Kn(a));delete _.Av[a]};
424
+ _.Ev=function(a){a=a.getConfiguration();a=_.N.xb(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.ng?a.backgroundColor:null;this.T=typeof a.windowColor===_.ng?a.windowColor:null;this.M=typeof a.fontColor===_.ng?a.fontColor:null;this.P=typeof a.fontFamily===_.ng?a.fontFamily:null;this.I=typeof a.fontSize===_.ng?a.fontSize:null;this.B=typeof a.fontSizePercent===_.h?a.fontSizePercent:null;this.H=typeof a.edgeColor===_.ng?a.edgeColor:"rgba(0, 0, 0, 1)";this.o=null;typeof a.edgeType===
425
+ _.ng&&(this.o=a.edgeType)};_.Jv=function(a){if(!a.o)return null;var b=a.H;switch(a.o){case Fv:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case Gv:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case Hv:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case Iv:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.Ze}};
426
+ _.Lv=function(a){_.Ev.call(this,a);this.l=a.getSurface().getMedia();this.f="clpp-video-"+Kv++;this.h=document.createElement(_.pg);this.j=this.w=!1;_.dj(this.l,this.f);document.head.appendChild(this.h);this.ec()};Rv=function(){};Zv=function(a){this.f=a;this.a=null;this.g=new _.M("clpp.text.Mp4TextParser")};_.$v=function(a,b,c,d){this.id=a;this.f=b;this.a=c;this.h=d};_.aw=function(){this.a=[];this.f=-1;this.h=null};
427
+ _.cw=function(a,b,c,d){var e,f;return _.I(function(g){if(1==g.a)return _.F(g,2),_.y(g,bw(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.H(g);f.a(_.P);throw f;})};
428
+ bw=function(a,b,c,d){var e,f,g,k;return _.I(function(l){if(1==l.a){if(d){if(e=_.dw[d.toLowerCase()])return l["return"](e);_.Vh("Could not determine manifest type using MIME type ",d)}if(f=_.En(a)){if(g=_.ew[f])return l["return"](g);_.Vh("Could not determine manifest type for extension ",f)}else _.Vh("Could not find extension for ",a);return d?l.C(2):_.y(l,fw(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(k=_.dw[d])return l["return"](k);_.Vh("Could not determine manifest type using MIME type",d)}throw new _.O(_.P,
429
+ 4,4E3,{url:a});})};fw=function(a,b,c){var d,e,f;return _.I(function(g){if(1==g.a)return d=_.dl(a),$k(d,c),d.type=1,d.method="HEAD",_.y(g,b.fetch(d).U,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.gw=function(){};_.rh=[];vh=typeof Object.create==_.ue?Object.create:function(a){function b(){}b.prototype=a;return new b};
430
+ if(typeof Object.setPrototypeOf==_.ue)hw=Object.setPrototypeOf;else{var iw;a:{var jw={nk:!0},kw={};try{kw.__proto__=jw;iw=kw.nk;break a}catch(a){}iw=!1}hw=iw?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
431
+ var wh=hw,xh="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,yh=typeof Object.defineProperties==_.ue?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};
432
+ zh("Promise",function(a){function b(g){this.f=0;this.l=void 0;this.a=[];var k=this.j();try{g(k.resolve,k.reject)}catch(l){k.reject(l)}}function c(){this.a=null}function d(g){return g instanceof b?g:new b(function(k){k(g)})}if(a)return a;c.prototype.f=function(g){if(null==this.a){this.a=[];var k=this;this.h(function(){k.l()})}this.a.push(g)};var e=xh.setTimeout;c.prototype.h=function(g){e(g,0)};c.prototype.l=function(){for(;this.a&&this.a.length;){var g=this.a;this.a=[];for(var k=0;k<g.length;++k){var l=
429
433
  g[k];g[k]=null;try{l()}catch(m){this.j(m)}}}this.a=null};c.prototype.j=function(g){this.h(function(){throw g;})};b.prototype.j=function(){function g(m){return function(n){l||(l=!0,m.call(k,n))}}var k=this,l=!1;return{resolve:g(this.D),reject:g(this.h)}};b.prototype.D=function(g){if(g===this)this.h(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.G(g);else{a:switch(typeof g){case _.$e:var k=null!=g;break a;case _.ue:k=!0;break a;default:k=!1}k?this.B(g):this.o(g)}};
430
434
  b.prototype.B=function(g){var k=void 0;try{k=g.then}catch(l){this.h(l);return}typeof k==_.ue?this.H(k,g):this.o(g)};b.prototype.h=function(g){this.w(2,g)};b.prototype.o=function(g){this.w(1,g)};b.prototype.w=function(g,k){if(0!=this.f)throw Error("Cannot settle("+g+", "+k+"): Promise already settled in state"+this.f);this.f=g;this.l=k;this.A()};b.prototype.A=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.G=function(g){var k=this.j();
431
- g.kf(k.resolve,k.reject)};b.prototype.H=function(g,k){var l=this.j();try{g.call(k,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,k){function l(q,t){return typeof q==_.ue?function(u){try{m(q(u))}catch(y){n(y)}}:t}var m,n,p=new b(function(q,t){m=q;n=t});this.kf(l(g,m),l(k,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.kf=function(g,k){function l(){switch(m.f){case 1:g(m.l);break;case 2:k(m.l);break;default:throw Error("Unexpected state: "+
432
- 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(k,l){l(g)})};b.race=function(g){return new b(function(k,l){for(var m=_.v(g),n=m.next();!n.done;n=m.next())d(n.value).kf(k,l)})};b.all=function(g){var k=_.v(g),l=k.next();return l.done?d([]):new b(function(m,n){function p(u){return function(y){q[u]=y;t--;0==t&&m(q)}}var q=[],t=0;do q.push(void 0),t++,d(l.value).kf(p(q.length-1),n),l=k.next();while(!l.done)})};return b});
433
- xh.prototype.toString=function(){return this.a};var wh=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new xh("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();Ah.prototype.A=function(a){this.f=a};Ah.prototype["return"]=function(a){this.h={"return":a};this.a=this.j};Ah.prototype.C=function(a){this.a=a};var Mh=this||self;Mh.a=!0;_.N={dk:20,wb:function(a){var b=_.N.R,c=_.N.Ti,d=_.N.ta;return b(a)||c(a)?a:d(a)}};_.K("clpp.utils.obj.cloneItem",_.N.wb);_.N.ta=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=_.N.Zi(c,{merging:b[d]},1));return c.merging||null};_.K("clpp.utils.obj.merge",_.N.ta);_.N.Wb=function(a){for(var b in a)if(void 0!==a[b])return!0;return!1};
434
- _.N.Zi=function(a,b,c){var d=_.N.R,e=_.N.Ti,f=_.N.Zi,g=_.N.Zb,k=_.N.Um,l=_.N.Gg,m=_.N.Om,n=_.N.Fd;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:n instanceof Date?a[p]=n:k(n)?a[p]=n.subarray(0):n instanceof Array?a[p]=f([],n,c):!d(n)&&l(n)&&c<_.N.dk&&(a[p]=f(a[p],n,c));return a};_.N.Ti=function(a){a=typeof a;return a===_.lg||a===_.h||a===_.bd};_.N.Om=function(a){return a instanceof Element};_.N.R=function(a){return null===a||"undefined"===typeof a};
435
- _.N.Fd=function(a){return typeof a===_.$e};_.N.Zb=function(a){return typeof a===_.ue};_.N.ja=function(a){return typeof a===_.lg};_.N.za=function(a){return typeof a===_.h};_.N.Qi=function(a){return typeof a===_.bd};_.N.Gg=function(a){var b=_.N.Fd,c=_.N.R;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.N.Um=function(a){var b=_.N.Fd,c=_.N.Zb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
436
- _.N.ua=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||!_.N.Fd(a)||!_.N.Fd(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var k=e[g];if(_.N.R(d)||0>d.indexOf(k))if(f[k]=!0,a[k]!==b[k])return!1}if(_.N.R(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.N.R(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
437
- _.N.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.N.Pm=function(a,b,c){return a>=b&&a<=c};_.N.Bh=function(a){for(var b=new Map,c=_.v(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.N.Ch=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};
438
- _.N.Ei=function(a,b){for(var c=b.toLowerCase(),d=_.v(Object.entries(a)),e=d.next();!e.done;e=d.next()){var f=_.v(e.value);e=f.next().value;f=f.next().value;if(e.toLowerCase()===c)return f}return null};_.N.Ui=function(a,b){for(var c in a){if(!(c in b))return!1;var d=a[c],e=b[c];if(d&&typeof d===_.$e&&e&&typeof e===_.$e){if(!_.N.Ui(d,e))return!1}else if(void 0!==d&&void 0!==e&&d!==e)return!1}return!0};
439
- _.N.Vi=function(a,b){if(!_.N.Ui(a,b))return!1;for(var c in b){if(!(c in a))return!0;var d=a[c],e=b[c];if(!d&&e||d&&typeof d===_.$e&&e&&typeof e===_.$e&&_.N.Vi(d,e))return!0}return!1};
440
- _.N.Ki=function(a,b){if(a===b||_.N.R(a)||_.N.R(b))return!1;for(var c=Object.keys(a),d=0;d<c.length;d++){var e=c[d];if(e in b){var f=a[e];e=b[e];if(f instanceof Date&&e instanceof Date&&f.getTime()!==e.getTime())return!0;if(typeof f===_.$e&&typeof e===_.$e){if(_.N.Ki(f,e))return!0}else{if(f instanceof Array&&e instanceof Array){if(f.length!==e.length)return!0;for(var g=0;g<f.length;g++)if(f[g]!==e[g])return!0}if(f!==e)return!0}}}return!1};var Rh={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.K("clpp.log.Level",Rh);var Oh=0,Nh={},cw=[];_.K("clpp.log.getLoggers",function(){return _.N.wb(Nh)});_.K("clpp.log.addInterceptor",function(a){a&&cw.push(a)});_.K("clpp.log.removeInterceptor",function(a){a&&(a=cw.indexOf(a),0<=a&&cw.splice(a,1))});_.K("clpp.log.getTagLevel",Ph);_.K("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Nh[a]});_.K("clpp.log.setTagLevel",function(a,b){a&&(_.N.ja(b)&&(b=Sh(b)),Nh[a]=b)});
441
- _.K("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.N.ja(a)&&(a=Sh(a));Oh=a});_.K("clpp.log.getLogLevel",function(){return Oh});_.r=_.M.prototype;
442
- _.r.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=Ph(this.tag);if(0<=d){if(d<c)return}else if(Oh<c)return;this.tag&&Array.prototype.unshift.call(arguments,"["+this.tag+"]");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):
443
- 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.v(cw);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.r.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.r.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.r.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
444
- _.r.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.r.Ol=function(a){return a?this.tag?new _.M(this.tag+"."+a):new _.M(a):this};_.K("clpp.log.Logger",_.M);_.M.prototype.createChild=_.M.prototype.Ol;_.M.prototype.error=_.M.prototype.error;_.M.prototype.warn=_.M.prototype.warn;_.M.prototype.debug=_.M.prototype.debug;_.M.prototype.info=_.M.prototype.info;_.M.prototype.log=_.M.prototype.log;var Th=new _.M("clpp");_.K("clpp.log.info",_.Uh);
445
- _.K("clpp.log.debug",_.Vh);_.K("clpp.log.warn",_.Qh);_.K("clpp.log.error",_.Wh);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.Zh=new _.M("clpp.players");_.Yh={};_.K("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.K("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1,SERVER_GUIDED:2});_.K("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var di=new _.M("clpp.ads"),ci=[];_.r=_.gi.prototype;_.r.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(Lb);};_.r.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(Lb);};_.r.ec=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)};_.r.Xa=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
446
- _.r.Ac=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};
447
- _.r.Ya=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};_.r.toString=function(){for(var a="",b=0;b<this.length;b++)0<b&&(a+=" "),a+=this.start(b).toFixed(3)+"-"+this.end(b).toFixed(3);return a};_.K("clpp.BufferInfo",_.gi);_.gi.prototype.bufferedAheadOf=_.gi.prototype.Ya;
448
- _.gi.prototype.isBuffered=_.gi.prototype.Ac;_.gi.prototype.bufferEnd=_.gi.prototype.Xa;_.gi.prototype.bufferStart=_.gi.prototype.ec;_.gi.prototype.end=_.gi.prototype.end;_.gi.prototype.start=_.gi.prototype.start;var ji;ji=new _.M("clpp.Components");_.hi=new Map;_.K("clpp.install",function(a){ri(a)});_.K("clpp.uninstall",function(a){si(a)});_.w(_.O,Error);_.O.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=ti(this.severity,this.category,this.code,this.data))};_.O.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.K("clpp.Error",_.O);_.P=2;_.O.Severity={RECOVERABLE:1,FATAL:_.P};_.O.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
435
+ g.wf(k.resolve,k.reject)};b.prototype.H=function(g,k){var l=this.j();try{g.call(k,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,k){function l(q,t){return typeof q==_.ue?function(u){try{m(q(u))}catch(z){n(z)}}:t}var m,n,p=new b(function(q,t){m=q;n=t});this.wf(l(g,m),l(k,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.wf=function(g,k){function l(){switch(m.f){case 1:g(m.l);break;case 2:k(m.l);break;default:throw Error("Unexpected state: "+
436
+ 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(k,l){l(g)})};b.race=function(g){return new b(function(k,l){for(var m=_.v(g),n=m.next();!n.done;n=m.next())d(n.value).wf(k,l)})};b.all=function(g){var k=_.v(g),l=k.next();return l.done?d([]):new b(function(m,n){function p(u){return function(z){q[u]=z;t--;0==t&&m(q)}}var q=[],t=0;do q.push(void 0),t++,d(l.value).wf(p(q.length-1),n),l=k.next();while(!l.done)})};return b});
437
+ Ch.prototype.toString=function(){return this.a};var Bh=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new Ch("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();Fh.prototype.A=function(a){this.f=a};Fh.prototype["return"]=function(a){this.h={"return":a};this.a=this.j};Fh.prototype.C=function(a){this.a=a};var Rh=this||self;Rh.a=!0;_.N={lk:20,xb:function(a){var b=_.N.R,c=_.N.bj,d=_.N.ta;return b(a)||c(a)?a:d(a)}};_.K("clpp.utils.obj.cloneItem",_.N.xb);_.N.ta=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=_.N.hj(c,{merging:b[d]},1));return c.merging||null};_.K("clpp.utils.obj.merge",_.N.ta);_.N.Zb=function(a){for(var b in a)if(void 0!==a[b])return!0;return!1};
438
+ _.N.hj=function(a,b,c){var d=_.N.R,e=_.N.bj,f=_.N.hj,g=_.N.bc,k=_.N.cn,l=_.N.Qg,m=_.N.Xm,n=_.N.Pd;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:n instanceof Date?a[p]=n:k(n)?a[p]=n.subarray(0):n instanceof Array?a[p]=f([],n,c):!d(n)&&l(n)&&c<_.N.lk&&(a[p]=f(a[p],n,c));return a};_.N.bj=function(a){a=typeof a;return a===_.ng||a===_.h||a===_.cd};_.N.Xm=function(a){return a instanceof Element};_.N.R=function(a){return null===a||"undefined"===typeof a};
439
+ _.N.Pd=function(a){return typeof a===_.$e};_.N.bc=function(a){return typeof a===_.ue};_.N.ja=function(a){return typeof a===_.ng};_.N.ya=function(a){return typeof a===_.h};_.N.Zi=function(a){return typeof a===_.cd};_.N.Qg=function(a){var b=_.N.Pd,c=_.N.R;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.N.cn=function(a){var b=_.N.Pd,c=_.N.bc;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
440
+ _.N.ua=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||!_.N.Pd(a)||!_.N.Pd(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var k=e[g];if(_.N.R(d)||0>d.indexOf(k))if(f[k]=!0,a[k]!==b[k])return!1}if(_.N.R(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.N.R(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
441
+ _.N.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.N.Ym=function(a,b,c){return a>=b&&a<=c};_.N.Lh=function(a){for(var b=new Map,c=_.v(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.N.Mh=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};
442
+ _.N.Oi=function(a,b){for(var c=b.toLowerCase(),d=_.v(Object.entries(a)),e=d.next();!e.done;e=d.next()){var f=_.v(e.value);e=f.next().value;f=f.next().value;if(e.toLowerCase()===c)return f}return null};_.N.cj=function(a,b){for(var c in a){if(!(c in b))return!1;var d=a[c],e=b[c];if(d&&typeof d===_.$e&&e&&typeof e===_.$e){if(!_.N.cj(d,e))return!1}else if(void 0!==d&&void 0!==e&&d!==e)return!1}return!0};
443
+ _.N.dj=function(a,b){if(!_.N.cj(a,b))return!1;for(var c in b){if(!(c in a))return!0;var d=a[c],e=b[c];if(!d&&e||d&&typeof d===_.$e&&e&&typeof e===_.$e&&_.N.dj(d,e))return!0}return!1};
444
+ _.N.Ti=function(a,b){if(a===b||_.N.R(a)||_.N.R(b))return!1;for(var c=Object.keys(a),d=0;d<c.length;d++){var e=c[d];if(e in b){var f=a[e];e=b[e];if(f instanceof Date&&e instanceof Date&&f.getTime()!==e.getTime())return!0;if(typeof f===_.$e&&typeof e===_.$e){if(_.N.Ti(f,e))return!0}else{if(f instanceof Array&&e instanceof Array){if(f.length!==e.length)return!0;for(var g=0;g<f.length;g++)if(f[g]!==e[g])return!0}if(f!==e)return!0}}}return!1};var Wh={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.K("clpp.log.Level",Wh);var Th=0,Sh={},lw=[];_.K("clpp.log.getLoggers",function(){return _.N.xb(Sh)});_.K("clpp.log.addInterceptor",function(a){a&&lw.push(a)});_.K("clpp.log.removeInterceptor",function(a){a&&(a=lw.indexOf(a),0<=a&&lw.splice(a,1))});_.K("clpp.log.getTagLevel",Uh);_.K("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Sh[a]});_.K("clpp.log.setTagLevel",function(a,b){a&&(_.N.ja(b)&&(b=Xh(b)),Sh[a]=b)});
445
+ _.K("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.N.ja(a)&&(a=Xh(a));Th=a});_.K("clpp.log.getLogLevel",function(){return Th});_.r=_.M.prototype;
446
+ _.r.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=Uh(this.tag);if(0<=d){if(d<c)return}else if(Th<c)return;this.tag&&Array.prototype.unshift.call(arguments,"["+this.tag+"]");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):
447
+ 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.v(lw);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.r.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.r.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.r.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
448
+ _.r.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.r.Xl=function(a){return a?this.tag?new _.M(this.tag+"."+a):new _.M(a):this};_.K("clpp.log.Logger",_.M);_.M.prototype.createChild=_.M.prototype.Xl;_.M.prototype.error=_.M.prototype.error;_.M.prototype.warn=_.M.prototype.warn;_.M.prototype.debug=_.M.prototype.debug;_.M.prototype.info=_.M.prototype.info;_.M.prototype.log=_.M.prototype.log;var Yh=new _.M("clpp");_.K("clpp.log.info",_.Zh);
449
+ _.K("clpp.log.debug",_.$h);_.K("clpp.log.warn",_.Vh);_.K("clpp.log.error",_.ai);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.di=new _.M("clpp.players");_.ci={};_.K("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.K("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1,SERVER_GUIDED:2});_.K("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var ji=new _.M("clpp.ads"),hi=[];_.r=_.mi.prototype;_.r.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(Lb);};_.r.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(Lb);};_.r.hc=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)};_.r.Xa=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
450
+ _.r.Gc=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};
451
+ _.r.Ya=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};_.r.toString=function(){for(var a="",b=0;b<this.length;b++)0<b&&(a+=" "),a+=this.start(b).toFixed(3)+"-"+this.end(b).toFixed(3);return a};_.K("clpp.BufferInfo",_.mi);_.mi.prototype.bufferedAheadOf=_.mi.prototype.Ya;
452
+ _.mi.prototype.isBuffered=_.mi.prototype.Gc;_.mi.prototype.bufferEnd=_.mi.prototype.Xa;_.mi.prototype.bufferStart=_.mi.prototype.hc;_.mi.prototype.end=_.mi.prototype.end;_.mi.prototype.start=_.mi.prototype.start;var pi;pi=new _.M("clpp.Components");_.ni=new Map;_.K("clpp.install",function(a){wi(a)});_.K("clpp.uninstall",function(a){xi(a)});_.w(_.O,Error);_.O.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=yi(this.severity,this.category,this.code,this.data))};_.O.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.K("clpp.Error",_.O);_.P=2;_.O.Severity={RECOVERABLE:1,FATAL:_.P};_.O.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
449
453
  _.O.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_MODIFIER_ERROR:1006,RESPONSE_MODIFIER_ERROR:1007,MALFORMED_TEST_URI:1008,MALFORMED_URL:1011,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,FETCH_OR_APPEND_ERROR:2010,INVALID_MP4:2011,TEXT_PARSER_MISSING:2012,THUMBNAILS_FAILED_TO_LOAD:2013,THUMBNAIL_ERROR:2014,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,
450
454
  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,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,
451
455
  MP4_PARSER_ERROR:3019,MEDIA_LOAD_ERROR:3100,INVALID_TRACK_TYPE:3101,MEDIA_DECRYPTION_ERROR:3103,PAUSE_FAILED:3201,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,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,UNPLAYABLE_PERIOD:4011,RESTRICTIONS_CANNOT_BE_MET:4012,NO_PERIODS:4014,
@@ -454,77 +458,78 @@ SMOOTH_EMPTY_PRESENTATION:4034,SMOOTH_MEDIA_PROCESSING_ERROR:4035,SMOOTH_INVALID
454
458
  NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,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,
455
459
  NO_CONTENT_ID:6101,SERVER_CERTIFICATE_REQUIRED:6102,EXTRACT_CONTENT_ID_MODIFIER_ERROR:6103,FAILED_TO_PERSIST_SESSION:6200,FAILED_TO_REMOVE_SESSION:6201,INVALID_SESSION_STORAGE_IMPLEMENTATION:6202,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,CANNOT_LOAD_SOURCE:7003,MEDIA_ELEMENT_NOT_FOUND:7004,INVALID_MEDIA_ELEMENT:7005,INVALID_CONTAINER_ELEMENT:7006,INVALID_ARGUMENT:7007,WRONG_ORDER_OF_OPERATIONS:7008,NOT_SUPPORTED:7009,INVALID_CONFIGURATION:7100,INVALID_LICENSE:7101,NO_ELEMENT:7102,USER_ID_NOT_PROVIDED:7103,
456
460
  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,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,
457
- MUX_SDK_MISSING:9301,MUXDATA_INIT_ERROR:9302,IMA_SDK_MISSING:1E4,IMA_INVALID_CONFIGURATION:10001,IMA_UNSUPPORTED_PLATFORM:10002,AD_ERROR:10003,SIMID_CONTAINER_MISSING:10100,BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3,SESSIONS_INVALID_CONFIGURATION:15E3};_.w(_.ui,Error);_.Q.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.Q.prototype.stopImmediatePropagation=function(){this.f=!0};_.Q.prototype.stopPropagation=function(){};_.r=_.vi.prototype;_.r.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.r.get=function(a){return(a=this.a[a])?a.slice():[]};_.r.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};_.r.clear=function(){this.a={}};_.r.forEach=function(a){for(var b in this.a)a(b,this.a[b])};_.wi.prototype.release=function(){_.zi(this)};_.wi.prototype.on=function(a,b,c,d){a=new Ai(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.wi.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)};_.wi.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||(yi(f),this.a.remove(b,f))}};Bi.prototype.trigger=function(a){try{this.a.handleEvent?this.a.handleEvent(a):this.a.call(this.f,a)}catch(b){_.Wh("clpp","Uncaught exception in event handler for event '"+this.h+"'",b,b?b.message:null,b?b.stack:null)}};_.r=Ci.prototype;_.r.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].trigger(a),b[c].j&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.r.on=function(a,b,c){this.a.push(a,new Bi(a,b,c||this.f));return b};_.r.one=function(a,b,c){this.a.push(a,new Bi(a,b,c||this.f,!0));return b};_.r.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].a===b&&(d=this.a.remove(a,c[e])||d);return d};_.r.clear=function(){this.a.clear()};_.r=_.Di.prototype;_.r.addEventListener=function(a,b){this.on(a,b)};_.r.removeEventListener=function(a,b){this.off(a,b)};_.r.on=function(a,b,c){return this.je.on(a,b,c)};_.r.one=function(a,b,c){return this.je.one(a,b,c)};_.r.off=function(a,b){return this.je.off(a,b)};_.r.forwardEventsTo=function(a){a&&(0<=this.fe.indexOf(a)||this.fe.push(a))};_.r.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};
458
- _.r.stopForwardingEventsTo=function(a){a&&(a=this.fe.indexOf(a),0<=a&&this.fe.splice(a,1))};_.r.trigger=function(a){this.je.trigger(a);for(var b=_.v(this.fe),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.Di.prototype.off=_.Di.prototype.off;_.Di.prototype.one=_.Di.prototype.one;_.Di.prototype.on=_.Di.prototype.on;_.Di.prototype.removeEventListener=_.Di.prototype.removeEventListener;_.Di.prototype.addEventListener=_.Di.prototype.addEventListener;_.r=Ei.prototype;_.r.load=function(){};_.r.Ab=function(){};_.r.Nc=function(){};_.r.resume=function(){};_.r.pause=function(){};_.r.pb=function(){};_.r.isPaused=function(){};_.r.skip=function(){};_.r.getVolume=function(){};_.r.getAdVolume=function(){};_.r.setVolume=function(){};_.r.Oa=function(){};_.r.setMuted=function(){};_.r.isMuted=function(){};_.r.jc=function(){};_.r.getPosition=function(){};_.r.xc=function(){};_.r.Kc=function(){};_.K("clpp.ads.IAdsManager",Ei);Ei.prototype.getPosition=Ei.prototype.getPosition;
459
- Ei.prototype.setVolume=Ei.prototype.setVolume;Ei.prototype.getVolume=Ei.prototype.getVolume;Ei.prototype.skip=Ei.prototype.skip;Ei.prototype.pause=Ei.prototype.pause;Ei.prototype.resume=Ei.prototype.resume;_.K("clpp.events.ERROR",_.qe);_.K("clpp.events.LOADEDMETADATA",_.Le);_.K("clpp.events.BUFFERING_ENDED",_.cd);_.K("clpp.events.BUFFERING_STARTED",_.dd);_.K("clpp.events.STATE_CHANGED",_.ig);_.K("clpp.events.AUDIO_TRACK_CHANGED",_.Zc);_.K("clpp.events.TEXT_TRACK_CHANGED",_.ug);_.K("clpp.events.VIDEO_TRACK_CHANGED",_.Wg);_.K("clpp.events.BITRATE_CHANGED",_.ad);_.K("clpp.events.TRACKS_ADDED",_.Ag);_.K("clpp.events.LOAD_START",Me);_.K("clpp.events.RELEASING",_.Qf);_.K("clpp.events.RELEASED",Pf);
460
- _.K("clpp.events.DESTROYING","destroying");_.K("clpp.events.DESTROYED","destroyed");_.K("clpp.events.VIDEO_BUFFER_CHANGED",_.Vg);_.K("clpp.events.AUDIO_BUFFER_CHANGED",_.Yc);_.K("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.K("clpp.events.DRM_SESSION_CREATED",ge);_.K("clpp.events.DRM_SESSION_UPDATE",_.ie);_.K("clpp.events.DRM_SESSION_PERSISTED",_.he);_.K("clpp.events.DRM_RENEWAL_STARTED",fe);_.K("clpp.events.DRM_EXPIRATION_UPDATE",_.de);_.K("clpp.events.DRM_LICENSE_REQUESTED",ee);
461
- _.K("clpp.events.AUTOPLAY_NOT_ALLOWED",_.$c);_.K("clpp.events.PLAY",_.pf);_.K("clpp.events.SEEKING",_.ag);_.K("clpp.events.SEEKED",_.$f);_.K("clpp.events.USER_SEEKING",_.Ng);_.K("clpp.events.USER_SEEKED",_.Mg);_.iu={SEEKING:1,NO_DATA:2};_.K("clpp.events.BufferingReasons",_.iu);_.K("clpp.events.ADS_TIMELINE_CHANGED",_.Fc);_.K("clpp.events.AD_LOADED",_.uc);_.K("clpp.events.AD_BREAK_STARTED",_.jc);_.K("clpp.events.AD_STARTED",_.Bc);_.K("clpp.events.AD_BUFFERING",_.lc);_.K("clpp.events.AD_PROGRESS",_.yc);
462
- _.K("clpp.events.AD_FIRST_QUARTILE",_.oc);_.K("clpp.events.AD_MIDPOINT",_.wc);_.K("clpp.events.AD_THIRD_QUARTILE",_.Dc);_.K("clpp.events.AD_PAUSED",_.xc);_.K("clpp.events.AD_RESUMED",_.zc);_.K("clpp.events.AD_SKIPPED",_.Ac);_.K("clpp.events.AD_CLICKED",_.mc);_.K("clpp.events.AD_IMPRESSION",_.sc);_.K("clpp.events.AD_COMPLETED",_.nc);_.K("clpp.events.AD_STOPPED",_.Cc);_.K("clpp.events.AD_BREAK_STOPPED",_.kc);_.K("clpp.events.AD_HLS_ASSET_LIST_REQUEST",pc);
463
- _.K("clpp.events.AD_HLS_ASSET_LIST_RESPONSE",qc);_.K("clpp.events.AD_HLS_RESOLVED",rc);_.K("clpp.events.SIMID_CREATIVE_STARTED",_.cg);_.K("clpp.events.SIMID_CREATIVE_STOPPED",_.dg);_.K("clpp.events.CASTING_STARTED",_.hd);_.K("clpp.events.CASTING_ENDED","castingended");_.K("clpp.events.CAST_STATUS_CHANGED",_.id);_.K("clpp.events.CAST_VISIBILITY_CHANGED",_.jd);_.K("clpp.events.AIRPLAY_STATUS_CHANGED",_.Ic);_.K("clpp.events.AIRPLAY_CASTING_STARTED",_.Hc);_.K("clpp.events.AIRPLAY_CASTING_ENDED",_.Gc);
464
- _.K("clpp.events.TIMELINE_CUE_ADDED",_.vg);_.K("clpp.events.TIMELINE_CUE_ENTER",_.wg);_.K("clpp.events.TIMELINE_CUE_EXIT",_.xg);_.K("clpp.events.TIMELINE_CUES_CHANGED",_.yg);_.K("clpp.events.MPD_TYPE_CHANGED",_.Xe);_.K("clpp.events.LIVE_TURNED_STATIC",_.Ie);_.K("clpp.events.VIMOND_RESPONSE",_.Xg);_.K("clpp.events.PLAYLIST_ITEM_CHANGED",_.Bf);_.K("clpp.events.PLAYLIST_MODIFIED",_.Cf);_.K("clpp.events.SC_PLAYLIST_TIMELINE_CHANGED",_.Yf);_.K("clpp.events.SC_PLAYLIST_ITEM_CHANGED",_.Wf);
465
- _.K("clpp.events.SC_PLAYLIST_ENDED",_.Vf);_.K("clpp.events.SC_PLAYLIST_LIVE_TURNED_STATIC",_.Xf);_.K("clpp.events.CDN_SWITCH_SUCCESS",_.kd);_.K("clpp.events.ONLINE_STATUS_CHANGED",gf);_.K("clpp.events.CMSD_EVENT","cmsd-event");_.K("clpp.events.YOSPACE_SESSION_STARTED",_.lh);_.K("clpp.events.YOSPACE_SESSION_ENDED",_.kh);_.K("clpp.events.CONTENT_STEERING_CHANGE",_.Od);_.K("clpp.events.CONTENT_STEERING_LOCATION_BAN_UPDATE",_.Rd);_.r=Fi.prototype;_.r.jb=function(){};_.r.kb=function(){};_.r.nb=function(){};_.r.getId=function(){};_.r.getCreativeId=function(){};_.r.Hb=function(){};_.r.getApiFramework=function(){};_.r.getAdSystem=function(){};_.r.getAdvertiserName=function(){};_.r.getTitle=function(){};_.r.getDuration=function(){};_.r.getPosition=function(){};_.r.getSkipTimeOffset=function(){};_.r.Jb=function(){};_.r.$a=function(){};_.r.getMediaUrl=function(){};_.r.eb=function(){};_.r.cb=function(){};_.r.Ga=function(){};
466
- _.r.Ha=function(){};_.r.getPodIndex=function(){};_.r.yb=function(){};_.r.lb=function(){};_.r.fb=function(){};_.r.getWrapperAdIds=function(){};_.r.getWrapperAdSystems=function(){};_.r.getWrapperCreativeIds=function(){};_.r.Ib=function(){};_.r.canSeek=function(){};_.K("clpp.ads.IAd",Fi);Fi.prototype.canSeek=Fi.prototype.canSeek;Fi.prototype.getVideoElement=Fi.prototype.Ib;Fi.prototype.getWrapperCreativeIds=Fi.prototype.getWrapperCreativeIds;Fi.prototype.getWrapperAdSystems=Fi.prototype.getWrapperAdSystems;
467
- Fi.prototype.getWrapperAdIds=Fi.prototype.getWrapperAdIds;Fi.prototype.getSequenceLength=Fi.prototype.fb;Fi.prototype.getPositionInSequence=Fi.prototype.lb;Fi.prototype.getPodTimeOffset=Fi.prototype.yb;Fi.prototype.getPodIndex=Fi.prototype.getPodIndex;Fi.prototype.getPodType=Fi.prototype.Ha;Fi.prototype.getMediaBitrate=Fi.prototype.Ga;Fi.prototype.getMediaHeight=Fi.prototype.cb;Fi.prototype.getMediaWidth=Fi.prototype.eb;Fi.prototype.getMediaUrl=Fi.prototype.getMediaUrl;
468
- Fi.prototype.getClickThroughUrl=Fi.prototype.$a;Fi.prototype.isBumper=Fi.prototype.Jb;Fi.prototype.getSkipTimeOffset=Fi.prototype.getSkipTimeOffset;Fi.prototype.getPosition=Fi.prototype.getPosition;Fi.prototype.getDuration=Fi.prototype.getDuration;Fi.prototype.getTitle=Fi.prototype.getTitle;Fi.prototype.getAdvertiserName=Fi.prototype.getAdvertiserName;Fi.prototype.getAdSystem=Fi.prototype.getAdSystem;Fi.prototype.getApiFramework=Fi.prototype.getApiFramework;Fi.prototype.getSourceId=Fi.prototype.Hb;
469
- Fi.prototype.getCreativeId=Fi.prototype.getCreativeId;Fi.prototype.getId=Fi.prototype.getId;Fi.prototype.getTechnology=Fi.prototype.nb;Fi.prototype.getAdManagerVersion=Fi.prototype.kb;Fi.prototype.getAdManagerName=Fi.prototype.jb;_.r=Gi.prototype;_.r.jb=function(){return""};_.r.kb=function(){return""};_.r.nb=function(){return 2};_.r.getId=function(){return this.B};_.r.getCreativeId=function(){return""};_.r.Hb=function(){return this.H};_.r.getApiFramework=function(){return null};_.r.getAdSystem=function(){return""};_.r.getAdvertiserName=function(){return""};_.r.getTitle=function(){return""};_.r.getDuration=function(){return this.h};_.r.getPosition=function(){return this.w};_.r.getSkipTimeOffset=function(){return-1};
470
- _.r.canSeek=function(){return this.A};_.r.Jb=function(){return!1};_.r.$a=function(){return null};_.r.getMediaUrl=function(){return null};_.r.eb=function(){return 0};_.r.cb=function(){return 0};_.r.Ga=function(){return 0};_.r.Ha=function(){return this.G};_.r.getPodIndex=function(){return 0};_.r.yb=function(){return 0};_.r.lb=function(){return this.f};_.r.fb=function(){return this.a};_.r.getWrapperAdIds=function(){return[]};_.r.getWrapperAdSystems=function(){return[]};_.r.getWrapperCreativeIds=function(){return[]};
471
- _.r.Ib=function(){return this.videoEl};_.r.rm=function(){return this.D};Gi.prototype.getCustomAttributes=Gi.prototype.rm;Gi.prototype.getVideoElement=Gi.prototype.Ib;Gi.prototype.getWrapperCreativeIds=Gi.prototype.getWrapperCreativeIds;Gi.prototype.getWrapperAdSystems=Gi.prototype.getWrapperAdSystems;Gi.prototype.getWrapperAdIds=Gi.prototype.getWrapperAdIds;Gi.prototype.getSequenceLength=Gi.prototype.fb;Gi.prototype.getPositionInSequence=Gi.prototype.lb;Gi.prototype.getPodTimeOffset=Gi.prototype.yb;
472
- Gi.prototype.getPodIndex=Gi.prototype.getPodIndex;Gi.prototype.getPodType=Gi.prototype.Ha;Gi.prototype.getMediaBitrate=Gi.prototype.Ga;Gi.prototype.getMediaHeight=Gi.prototype.cb;Gi.prototype.getMediaWidth=Gi.prototype.eb;Gi.prototype.getMediaUrl=Gi.prototype.getMediaUrl;Gi.prototype.getClickThroughUrl=Gi.prototype.$a;Gi.prototype.isBumper=Gi.prototype.Jb;Gi.prototype.canSeek=Gi.prototype.canSeek;Gi.prototype.getSkipTimeOffset=Gi.prototype.getSkipTimeOffset;Gi.prototype.getPosition=Gi.prototype.getPosition;
473
- Gi.prototype.getDuration=Gi.prototype.getDuration;Gi.prototype.getTitle=Gi.prototype.getTitle;Gi.prototype.getAdvertiserName=Gi.prototype.getAdvertiserName;Gi.prototype.getAdSystem=Gi.prototype.getAdSystem;Gi.prototype.getApiFramework=Gi.prototype.getApiFramework;Gi.prototype.getSourceId=Gi.prototype.Hb;Gi.prototype.getCreativeId=Gi.prototype.getCreativeId;Gi.prototype.getId=Gi.prototype.getId;Gi.prototype.getTechnology=Gi.prototype.nb;Gi.prototype.getAdManagerVersion=Gi.prototype.kb;
474
- Gi.prototype.getAdManagerName=Gi.prototype.jb;Hi.prototype.has=function(){return this.a.some(function(a){return a.jf})};Hi.prototype.get=function(){var a=this,b;return _.I(function(c){if(1==c.a){b=a.a.find(function(d){return d.jf});if(!b)throw Error("No available players in the pool");b.jf=!1;return _.x(c,b.ready,2)}return c["return"](b.player)})};
475
- Hi.prototype.release=function(a){var b=this,c=this.a.find(function(d){return d.player===a});if(!c)return Promise.resolve();c.jf=!0;c.ready=new Promise(function(d){a.release()["catch"](function(e){b.g.error("Failed to unload player",e)}).then(d)});return c.ready};Hi.prototype.destroy=function(){var a=this;return _.I(function(b){return _.x(b,Promise.all(a.a.map(function(c){return c.player.destroy()})),0)})};_.K("clpp.utils.BufferUtils",Oi);Oi.toArrayBuffer=Xi;Oi.toDataView=_.Wi;Oi.toInt32Array=_.Vi;Oi.toUint32Array=Ui;Oi.toUint16Array=Ti;Oi.toUint8Array=_.Qi;Oi.equal=Ri;_.R={};_.R.Fa=new _.M("clpp.utils.strings");_.R.ck=16E3;_.R.fromCharCode=function(a){for(var b=_.R.ck,c="",d=0;d<a.length;d+=b)c+=String.fromCharCode.apply(null,a.subarray(d,d+b));return c};_.R.ga=function(a){if(!a)return"";a=_.Qi(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(Ma);return a}a=escape(_.R.fromCharCode(a));try{return decodeURIComponent(a)}catch(b){throw Error(Ma);}};
476
- _.K("clpp.utils.strings.fromUtf8",_.R.ga);
477
- _.R.Qc=function(a,b,c){if(!a)return"";var d=_.R.Fa;if(!c&&0!==a.byteLength%2)throw d.error("Data has an incorrect length, must be even."),Error("Data does not seem to be UTF-16 encoded!");c=_.Qi(a);if(b&&255===c[0]&&254===c[1]||254===c[0]&&255===c[1])a=c.subarray(2);a instanceof ArrayBuffer?d=a:(c=new Uint8Array(a.byteLength),c.set(_.Qi(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 _.R.fromCharCode(c)};
478
- _.R.le=function(a,b){if(_.N.ja(a))return a;var c="",d=!!b,e=_.Qi(a);239===e[0]&&187===e[1]&&191===e[2]?c=_.R.ga(e):254===e[0]&&255===e[1]?c=_.R.Qc(e.subarray(2),!1):255===e[0]&&254===e[1]&&(c=_.R.Qc(e.subarray(2),!0));var f=function(g,k){return g.byteLength<=k||32<=g[k]&&126>=g[k]}.bind(null,e);_.R.Fa.debug("Unable to find byte-order-mark, making an educated guess.");0===e[0]&&0===e[2]?c=_.R.Qc(a,!1):0===e[1]&&0===e[3]?c=_.R.Qc(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.R.ga(a));if(c)return d&&(c=escape(c)),
479
- c;throw Error("Unable to detect text encoding");};_.K("clpp.utils.strings.fromBytesAutoDetect",_.R.le);_.R.sb=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};_.K("clpp.utils.strings.toUtf8",_.R.sb);_.R.Zf=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};
480
- _.K("clpp.utils.strings.toUtf16",_.R.Zf);_.R.Nd=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=Ui(e):2===c?f=Ti(e):f=_.Qi(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};_.K("clpp.utils.strings.toByteArray",_.R.Nd);_.R.startsWith=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.K("clpp.utils.strings.startsWith",_.R.startsWith);
481
- _.R.endsWith=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};_.K("clpp.utils.strings.endsWith",_.R.endsWith);_.R.If=function(a){return!!(a&&0<a.length)};_.R.empty=function(a){return!a||0===a.length};_.R.Jp=function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()};_.R.Mp=function(a){return a.replace(/-(\w)/g,function(b,c){return c.toUpperCase()})};
482
- _.R.og=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.N.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""}};_.K("clpp.utils.strings.bitrateToString",_.R.og);
483
- _.R.Wl=function(a,b){function c(k){return function(l,m){return d(k,m.length-1)}}function d(k,l){return k.length<l?d("0"+k,l):k}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)))};_.K("clpp.utils.strings.durationToString",_.R.Wl);
484
- _.R.Yl=function(a,b){for(var c in b)if(b[c]===a)return c;return""};_.R.Gm=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};_.K("clpp.utils.strings.hashCode",_.R.Gm);_.R.gp=function(a){_.R.Nj.innerHTML=a;return _.R.Nj.textContent};_.R.Nj=document.createElement("span");_.R.jh=function(a){a=a.replace(/<[^>]+>/gi,"");a=_.R.gp(a);return a=a.replace(/<[^>]+>/gi,"")};_.R.bj=function(a){return a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")};_.K("clpp.utils.dom.createHTMLElement",_.aj);bj.prototype.set=function(a){this.h.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=dj(this,a)};bj.prototype.get=function(){return this.a};_.ej.prototype.ia=function(a){return fj(this,a,!1)};_.ej.prototype.Pb=function(a){return fj(this,a,!0)};_.ej.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.gj.prototype.mh=function(){this.stop();this.f();return this};_.gj.prototype.ia=function(a){var b=this;this.stop();this.a=(new _.ej(function(){b.f()})).ia(a);return this};_.gj.prototype.Pb=function(a){var b=this;this.stop();this.a=(new _.ej(function(){b.f()})).Pb(a);return this};_.gj.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.K("clpp.utils.Timer",_.gj);_.gj.prototype.stop=_.gj.prototype.stop;_.gj.prototype.tickEvery=_.gj.prototype.Pb;_.gj.prototype.tickAfter=_.gj.prototype.ia;
485
- _.gj.prototype.tickNow=_.gj.prototype.mh;_.K(Ed,ij);ij.getInfo=_.Lj;
486
- var sj=null,rj=null,uj=new _.M(Ed),Bj="android",Aj="ios",Gj="linux",Cj="osx",Dj="windows",Ej="tizen",Fj="webos",zj=_.Ig,Kj=_.Ig,Ij={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,
461
+ MUX_SDK_MISSING:9301,MUXDATA_INIT_ERROR:9302,IMA_SDK_MISSING:1E4,IMA_INVALID_CONFIGURATION:10001,IMA_UNSUPPORTED_PLATFORM:10002,AD_ERROR:10003,SIMID_CONTAINER_MISSING:10100,BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3,SESSIONS_INVALID_CONFIGURATION:15E3};_.w(_.zi,Error);_.Q.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.Q.prototype.stopImmediatePropagation=function(){this.f=!0};_.Q.prototype.stopPropagation=function(){};_.r=_.Ai.prototype;_.r.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.r.get=function(a){return(a=this.a[a])?a.slice():[]};_.r.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};_.r.clear=function(){this.a={}};_.r.forEach=function(a){for(var b in this.a)a(b,this.a[b])};_.Bi.prototype.release=function(){_.Ei(this)};_.Bi.prototype.on=function(a,b,c,d){a=new Fi(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.Bi.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)};_.Bi.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||(Di(f),this.a.remove(b,f))}};Gi.prototype.trigger=function(a){try{this.a.handleEvent?this.a.handleEvent(a):this.a.call(this.f,a)}catch(b){_.ai("clpp","Uncaught exception in event handler for event '"+this.h+"'",b,b?b.message:null,b?b.stack:null)}};_.r=Hi.prototype;_.r.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].trigger(a),b[c].j&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.r.on=function(a,b,c){this.a.push(a,new Gi(a,b,c||this.f));return b};_.r.one=function(a,b,c){this.a.push(a,new Gi(a,b,c||this.f,!0));return b};_.r.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].a===b&&(d=this.a.remove(a,c[e])||d);return d};_.r.clear=function(){this.a.clear()};_.r=_.Ii.prototype;_.r.addEventListener=function(a,b){this.on(a,b)};_.r.removeEventListener=function(a,b){this.off(a,b)};_.r.on=function(a,b,c){return this.ue.on(a,b,c)};_.r.one=function(a,b,c){return this.ue.one(a,b,c)};_.r.off=function(a,b){return this.ue.off(a,b)};_.r.forwardEventsTo=function(a){a&&(0<=this.qe.indexOf(a)||this.qe.push(a))};_.r.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};
462
+ _.r.stopForwardingEventsTo=function(a){a&&(a=this.qe.indexOf(a),0<=a&&this.qe.splice(a,1))};_.r.trigger=function(a){this.ue.trigger(a);for(var b=_.v(this.qe),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.Ii.prototype.off=_.Ii.prototype.off;_.Ii.prototype.one=_.Ii.prototype.one;_.Ii.prototype.on=_.Ii.prototype.on;_.Ii.prototype.removeEventListener=_.Ii.prototype.removeEventListener;_.Ii.prototype.addEventListener=_.Ii.prototype.addEventListener;_.r=Ji.prototype;_.r.load=function(){};_.r.Cb=function(){};_.r.Uc=function(){};_.r.resume=function(){};_.r.pause=function(){};_.r.rb=function(){};_.r.isPaused=function(){};_.r.skip=function(){};_.r.getVolume=function(){};_.r.getAdVolume=function(){};_.r.setVolume=function(){};_.r.Pa=function(){};_.r.setMuted=function(){};_.r.isMuted=function(){};_.r.Ab=function(){};_.r.getPosition=function(){};_.r.Cc=function(){};_.r.Rc=function(){};_.K("clpp.ads.IAdsManager",Ji);Ji.prototype.getPosition=Ji.prototype.getPosition;
463
+ Ji.prototype.setVolume=Ji.prototype.setVolume;Ji.prototype.getVolume=Ji.prototype.getVolume;Ji.prototype.skip=Ji.prototype.skip;Ji.prototype.pause=Ji.prototype.pause;Ji.prototype.resume=Ji.prototype.resume;_.K("clpp.events.ERROR",_.qe);_.K("clpp.events.LOADEDMETADATA",_.Me);_.K("clpp.events.BUFFERING_ENDED",_.dd);_.K("clpp.events.BUFFERING_STARTED",_.ed);_.K("clpp.events.STATE_CHANGED",_.kg);_.K("clpp.events.AUDIO_TRACK_CHANGED",_.$c);_.K("clpp.events.TEXT_TRACK_CHANGED",_.wg);_.K("clpp.events.VIDEO_TRACK_CHANGED",_.Xg);_.K("clpp.events.BITRATE_CHANGED",_.bd);_.K("clpp.events.TRACKS_ADDED",_.Cg);_.K("clpp.events.LOAD_START",Ne);_.K("clpp.events.RELEASING",_.Sf);_.K("clpp.events.RELEASED",Rf);
464
+ _.K("clpp.events.DESTROYING","destroying");_.K("clpp.events.DESTROYED","destroyed");_.K("clpp.events.VIDEO_BUFFER_CHANGED",_.Wg);_.K("clpp.events.AUDIO_BUFFER_CHANGED",_.Zc);_.K("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.K("clpp.events.DRM_SESSION_CREATED",ge);_.K("clpp.events.DRM_SESSION_UPDATE",_.ie);_.K("clpp.events.DRM_SESSION_PERSISTED",_.he);_.K("clpp.events.DRM_RENEWAL_STARTED",fe);_.K("clpp.events.DRM_EXPIRATION_UPDATE",_.de);_.K("clpp.events.DRM_LICENSE_REQUESTED",ee);
465
+ _.K("clpp.events.AUTOPLAY_NOT_ALLOWED",_.ad);_.K("clpp.events.PLAY",_.pf);_.K("clpp.events.SEEKING",_.cg);_.K("clpp.events.SEEKED",_.bg);_.K("clpp.events.USER_SEEKING",_.Og);_.K("clpp.events.USER_SEEKED",_.Ng);_.ru={SEEKING:1,NO_DATA:2};_.K("clpp.events.BufferingReasons",_.ru);_.K("clpp.events.ADS_TIMELINE_CHANGED",_.Fc);_.K("clpp.events.AD_LOADED",_.tc);_.K("clpp.events.AD_BREAK_STARTED",_.ic);_.K("clpp.events.AD_STARTED",_.Bc);_.K("clpp.events.AD_BUFFERING",_.kc);_.K("clpp.events.AD_PROGRESS",_.yc);
466
+ _.K("clpp.events.AD_FIRST_QUARTILE",_.nc);_.K("clpp.events.AD_MIDPOINT",_.vc);_.K("clpp.events.AD_THIRD_QUARTILE",_.Dc);_.K("clpp.events.AD_PAUSED",_.xc);_.K("clpp.events.AD_RESUMED",_.zc);_.K("clpp.events.AD_SKIPPED",_.Ac);_.K("clpp.events.AD_CLICKED",_.lc);_.K("clpp.events.AD_IMPRESSION",_.rc);_.K("clpp.events.AD_COMPLETED",_.mc);_.K("clpp.events.AD_STOPPED",_.Cc);_.K("clpp.events.AD_BREAK_STOPPED",_.jc);_.K("clpp.events.AD_HLS_ASSET_LIST_REQUEST",oc);
467
+ _.K("clpp.events.AD_HLS_ASSET_LIST_RESPONSE",pc);_.K("clpp.events.AD_HLS_RESOLVED",qc);_.K("clpp.events.SIMID_CREATIVE_STARTED",_.eg);_.K("clpp.events.SIMID_CREATIVE_STOPPED",_.fg);_.K("clpp.events.CASTING_STARTED",_.id);_.K("clpp.events.CASTING_ENDED","castingended");_.K("clpp.events.CAST_STATUS_CHANGED",_.jd);_.K("clpp.events.CAST_VISIBILITY_CHANGED",_.kd);_.K("clpp.events.AIRPLAY_STATUS_CHANGED",_.Ic);_.K("clpp.events.AIRPLAY_CASTING_STARTED",_.Hc);_.K("clpp.events.AIRPLAY_CASTING_ENDED",_.Gc);
468
+ _.K("clpp.events.TIMELINE_CUE_ADDED",_.xg);_.K("clpp.events.TIMELINE_CUE_ENTER",_.yg);_.K("clpp.events.TIMELINE_CUE_EXIT",_.zg);_.K("clpp.events.TIMELINE_CUES_CHANGED",_.Ag);_.K("clpp.events.MPD_TYPE_CHANGED",_.Xe);_.K("clpp.events.LIVE_TURNED_STATIC",_.Je);_.K("clpp.events.VIMOND_RESPONSE",_.Yg);_.K("clpp.events.PLAYLIST_ITEM_CHANGED",_.Bf);_.K("clpp.events.PLAYLIST_MODIFIED",_.Cf);_.K("clpp.events.SC_PLAYLIST_TIMELINE_CHANGED",_.$f);_.K("clpp.events.SC_PLAYLIST_ITEM_CHANGED",_.Yf);
469
+ _.K("clpp.events.SC_PLAYLIST_ENDED",_.Xf);_.K("clpp.events.SC_PLAYLIST_LIVE_TURNED_STATIC",_.Zf);_.K("clpp.events.CDN_SWITCH_SUCCESS",_.ld);_.K("clpp.events.ONLINE_STATUS_CHANGED",gf);_.K("clpp.events.CMSD_EVENT","cmsd-event");_.K("clpp.events.YOSPACE_SESSION_STARTED",_.qh);_.K("clpp.events.YOSPACE_SESSION_ENDED",_.ph);_.K("clpp.events.CONTENT_STEERING_CHANGE",_.Od);_.K("clpp.events.CONTENT_STEERING_LOCATION_BAN_UPDATE",_.Qd);_.r=Ki.prototype;_.r.lb=function(){};_.r.nb=function(){};_.r.pb=function(){};_.r.getId=function(){};_.r.getCreativeId=function(){};_.r.Jb=function(){};_.r.getApiFramework=function(){};_.r.getAdSystem=function(){};_.r.getAdvertiserName=function(){};_.r.getTitle=function(){};_.r.getDuration=function(){};_.r.getPosition=function(){};_.r.getSkipTimeOffset=function(){};_.r.Lb=function(){};_.r.$a=function(){};_.r.getMediaUrl=function(){};_.r.fb=function(){};_.r.eb=function(){};_.r.Ga=function(){};
470
+ _.r.Ha=function(){};_.r.getPodIndex=function(){};_.r.zb=function(){};_.r.ob=function(){};_.r.gb=function(){};_.r.getWrapperAdIds=function(){};_.r.getWrapperAdSystems=function(){};_.r.getWrapperCreativeIds=function(){};_.r.Kb=function(){};_.r.canSeek=function(){};_.K("clpp.ads.IAd",Ki);Ki.prototype.canSeek=Ki.prototype.canSeek;Ki.prototype.getVideoElement=Ki.prototype.Kb;Ki.prototype.getWrapperCreativeIds=Ki.prototype.getWrapperCreativeIds;Ki.prototype.getWrapperAdSystems=Ki.prototype.getWrapperAdSystems;
471
+ Ki.prototype.getWrapperAdIds=Ki.prototype.getWrapperAdIds;Ki.prototype.getSequenceLength=Ki.prototype.gb;Ki.prototype.getPositionInSequence=Ki.prototype.ob;Ki.prototype.getPodTimeOffset=Ki.prototype.zb;Ki.prototype.getPodIndex=Ki.prototype.getPodIndex;Ki.prototype.getPodType=Ki.prototype.Ha;Ki.prototype.getMediaBitrate=Ki.prototype.Ga;Ki.prototype.getMediaHeight=Ki.prototype.eb;Ki.prototype.getMediaWidth=Ki.prototype.fb;Ki.prototype.getMediaUrl=Ki.prototype.getMediaUrl;
472
+ Ki.prototype.getClickThroughUrl=Ki.prototype.$a;Ki.prototype.isBumper=Ki.prototype.Lb;Ki.prototype.getSkipTimeOffset=Ki.prototype.getSkipTimeOffset;Ki.prototype.getPosition=Ki.prototype.getPosition;Ki.prototype.getDuration=Ki.prototype.getDuration;Ki.prototype.getTitle=Ki.prototype.getTitle;Ki.prototype.getAdvertiserName=Ki.prototype.getAdvertiserName;Ki.prototype.getAdSystem=Ki.prototype.getAdSystem;Ki.prototype.getApiFramework=Ki.prototype.getApiFramework;Ki.prototype.getSourceId=Ki.prototype.Jb;
473
+ Ki.prototype.getCreativeId=Ki.prototype.getCreativeId;Ki.prototype.getId=Ki.prototype.getId;Ki.prototype.getTechnology=Ki.prototype.pb;Ki.prototype.getAdManagerVersion=Ki.prototype.nb;Ki.prototype.getAdManagerName=Ki.prototype.lb;_.r=Li.prototype;_.r.lb=function(){return""};_.r.nb=function(){return""};_.r.pb=function(){return 2};_.r.getId=function(){return this.B};_.r.getCreativeId=function(){return""};_.r.Jb=function(){return this.H};_.r.getApiFramework=function(){return null};_.r.getAdSystem=function(){return""};_.r.getAdvertiserName=function(){return""};_.r.getTitle=function(){return""};_.r.getDuration=function(){return this.h};_.r.setPosition=function(a){this.w=a};_.r.getPosition=function(){return this.w};
474
+ _.r.getSkipTimeOffset=function(){return-1};_.r.canSeek=function(){return this.A};_.r.Lb=function(){return!1};_.r.$a=function(){return null};_.r.getMediaUrl=function(){return null};_.r.fb=function(){return 0};_.r.eb=function(){return 0};_.r.Ga=function(){return 0};_.r.Ha=function(){return this.G};_.r.getPodIndex=function(){return 0};_.r.zb=function(){return 0};_.r.ob=function(){return this.f};_.r.gb=function(){return this.a};_.r.getWrapperAdIds=function(){return[]};_.r.getWrapperAdSystems=function(){return[]};
475
+ _.r.getWrapperCreativeIds=function(){return[]};_.r.Kb=function(){return this.videoEl};_.r.Am=function(){return this.D};Li.prototype.getCustomAttributes=Li.prototype.Am;Li.prototype.getVideoElement=Li.prototype.Kb;Li.prototype.getWrapperCreativeIds=Li.prototype.getWrapperCreativeIds;Li.prototype.getWrapperAdSystems=Li.prototype.getWrapperAdSystems;Li.prototype.getWrapperAdIds=Li.prototype.getWrapperAdIds;Li.prototype.getSequenceLength=Li.prototype.gb;Li.prototype.getPositionInSequence=Li.prototype.ob;
476
+ Li.prototype.getPodTimeOffset=Li.prototype.zb;Li.prototype.getPodIndex=Li.prototype.getPodIndex;Li.prototype.getPodType=Li.prototype.Ha;Li.prototype.getMediaBitrate=Li.prototype.Ga;Li.prototype.getMediaHeight=Li.prototype.eb;Li.prototype.getMediaWidth=Li.prototype.fb;Li.prototype.getMediaUrl=Li.prototype.getMediaUrl;Li.prototype.getClickThroughUrl=Li.prototype.$a;Li.prototype.isBumper=Li.prototype.Lb;Li.prototype.canSeek=Li.prototype.canSeek;Li.prototype.getSkipTimeOffset=Li.prototype.getSkipTimeOffset;
477
+ Li.prototype.getPosition=Li.prototype.getPosition;Li.prototype.getDuration=Li.prototype.getDuration;Li.prototype.getTitle=Li.prototype.getTitle;Li.prototype.getAdvertiserName=Li.prototype.getAdvertiserName;Li.prototype.getAdSystem=Li.prototype.getAdSystem;Li.prototype.getApiFramework=Li.prototype.getApiFramework;Li.prototype.getSourceId=Li.prototype.Jb;Li.prototype.getCreativeId=Li.prototype.getCreativeId;Li.prototype.getId=Li.prototype.getId;Li.prototype.getTechnology=Li.prototype.pb;
478
+ Li.prototype.getAdManagerVersion=Li.prototype.nb;Li.prototype.getAdManagerName=Li.prototype.lb;Mi.prototype.has=function(){return this.a.some(function(a){return a.vf})};Mi.prototype.get=function(){var a=this,b;return _.I(function(c){if(1==c.a){b=a.a.find(function(d){return d.vf});if(!b)throw Error("No available players in the pool");b.vf=!1;return _.y(c,b.ready,2)}return c["return"](b.player)})};
479
+ Mi.prototype.release=function(a){var b=this,c=this.a.find(function(d){return d.player===a});if(!c)return Promise.resolve();c.vf=!0;c.ready=new Promise(function(d){a.release()["catch"](function(e){b.g.error("Failed to unload player",e)}).then(d)});return c.ready};Mi.prototype.destroy=function(){var a=this;return _.I(function(b){return _.y(b,Promise.all(a.a.map(function(c){return c.player.destroy()})),0)})};_.K("clpp.utils.BufferUtils",Ti);Ti.toArrayBuffer=bj;Ti.toDataView=_.aj;Ti.toInt32Array=_.$i;Ti.toUint32Array=Zi;Ti.toUint16Array=Yi;Ti.toUint8Array=_.Vi;Ti.equal=Wi;_.R={};_.R.Fa=new _.M("clpp.utils.strings");_.R.kk=16E3;_.R.fromCharCode=function(a){for(var b=_.R.kk,c="",d=0;d<a.length;d+=b)c+=String.fromCharCode.apply(null,a.subarray(d,d+b));return c};_.R.ea=function(a){if(!a)return"";a=_.Vi(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(Ma);return a}a=escape(_.R.fromCharCode(a));try{return decodeURIComponent(a)}catch(b){throw Error(Ma);}};
480
+ _.K("clpp.utils.strings.fromUtf8",_.R.ea);
481
+ _.R.Yc=function(a,b,c){if(!a)return"";var d=_.R.Fa;if(!c&&0!==a.byteLength%2)throw d.error("Data has an incorrect length, must be even."),Error("Data does not seem to be UTF-16 encoded!");c=_.Vi(a);if(b&&255===c[0]&&254===c[1]||254===c[0]&&255===c[1])a=c.subarray(2);a instanceof ArrayBuffer?d=a:(c=new Uint8Array(a.byteLength),c.set(_.Vi(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 _.R.fromCharCode(c)};
482
+ _.R.we=function(a,b){if(_.N.ja(a))return a;var c="",d=!!b,e=_.Vi(a);239===e[0]&&187===e[1]&&191===e[2]?c=_.R.ea(e):254===e[0]&&255===e[1]?c=_.R.Yc(e.subarray(2),!1):255===e[0]&&254===e[1]&&(c=_.R.Yc(e.subarray(2),!0));var f=function(g,k){return g.byteLength<=k||32<=g[k]&&126>=g[k]}.bind(null,e);_.R.Fa.debug("Unable to find byte-order-mark, making an educated guess.");0===e[0]&&0===e[2]?c=_.R.Yc(a,!1):0===e[1]&&0===e[3]?c=_.R.Yc(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.R.ea(a));if(c)return d&&(c=escape(c)),
483
+ c;throw Error("Unable to detect text encoding");};_.K("clpp.utils.strings.fromBytesAutoDetect",_.R.we);_.R.ub=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};_.K("clpp.utils.strings.toUtf8",_.R.ub);_.R.kg=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};
484
+ _.K("clpp.utils.strings.toUtf16",_.R.kg);_.R.Yd=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=Zi(e):2===c?f=Yi(e):f=_.Vi(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};_.K("clpp.utils.strings.toByteArray",_.R.Yd);_.R.startsWith=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.K("clpp.utils.strings.startsWith",_.R.startsWith);
485
+ _.R.endsWith=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};_.K("clpp.utils.strings.endsWith",_.R.endsWith);_.R.Tf=function(a){return!!(a&&0<a.length)};_.R.empty=function(a){return!a||0===a.length};_.R.Rp=function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()};_.R.Up=function(a){return a.replace(/-(\w)/g,function(b,c){return c.toUpperCase()})};
486
+ _.R.zg=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.N.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""}};_.K("clpp.utils.strings.bitrateToString",_.R.zg);
487
+ _.R.em=function(a,b){function c(k){return function(l,m){return d(k,m.length-1)}}function d(k,l){return k.length<l?d("0"+k,l):k}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)))};_.K("clpp.utils.strings.durationToString",_.R.em);
488
+ _.R.gm=function(a,b){for(var c in b)if(b[c]===a)return c;return""};_.R.Pm=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};_.K("clpp.utils.strings.hashCode",_.R.Pm);_.R.pp=function(a){_.R.Vj.innerHTML=a;return _.R.Vj.textContent};_.R.Vj=document.createElement("span");_.R.uh=function(a){a=a.replace(/<[^>]+>/gi,"");a=_.R.pp(a);return a=a.replace(/<[^>]+>/gi,"")};_.R.kj=function(a){return a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")};_.K("clpp.utils.dom.createHTMLElement",_.fj);gj.prototype.set=function(a){this.h.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=ij(this,a)};gj.prototype.get=function(){return this.a};_.jj.prototype.ia=function(a){return kj(this,a,!1)};_.jj.prototype.Rb=function(a){return kj(this,a,!0)};_.jj.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.lj.prototype.xh=function(){this.stop();this.f();return this};_.lj.prototype.ia=function(a){var b=this;this.stop();this.a=(new _.jj(function(){b.f()})).ia(a);return this};_.lj.prototype.Rb=function(a){var b=this;this.stop();this.a=(new _.jj(function(){b.f()})).Rb(a);return this};_.lj.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.K("clpp.utils.Timer",_.lj);_.lj.prototype.stop=_.lj.prototype.stop;_.lj.prototype.tickEvery=_.lj.prototype.Rb;_.lj.prototype.tickAfter=_.lj.prototype.ia;
489
+ _.lj.prototype.tickNow=_.lj.prototype.xh;_.K(Ed,nj);nj.getInfo=_.Qj;
490
+ var xj=null,wj=null,zj=new _.M(Ed),Gj="android",Fj="ios",Lj="linux",Hj="osx",Ij="windows",Jj="tizen",Kj="webos",Ej=_.Hg,Pj=_.Hg,Nj={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,
487
491
  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,
488
492
  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},
489
- 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}};_.r=Pj.prototype;_.r.getMedia=function(){return this.f.get()};_.r.getContainer=function(){return this.a.get()};_.r.getSafeContainer=function(){return this.a};_.r.getId=function(){return this.l};_.r.getUniqueCssClass=function(){return this.o};_.r.getCastElement=function(){return this.h};_.r.isFullscreen=function(){return!!document.fullscreenElement};_.r.hideMediaElement=function(){var a=this.getMedia();a?_.Zi(a,td):this.g.debug("No media element available that could be hidden")};
490
- _.r.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(td):this.g.debug("No media element available that could be shown")};_.r.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&&_.Zi(a,_.sd);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
491
- _.r.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.r.hide=function(a){_.Zi(a,td)};_.r.show=function(a){a.classList.remove(td)};_.r.release=function(){this.j.release()};Pj.prototype.removeElementFromContainer=Pj.prototype.removeElementFromContainer;Pj.prototype.addElementToContainer=Pj.prototype.addElementToContainer;Pj.prototype.getCastElement=Pj.prototype.getCastElement;
492
- Pj.prototype.getContainer=Pj.prototype.getContainer;Pj.prototype.getMedia=Pj.prototype.getMedia;var Mj={disableContainer:!1,webOSStartupPatch:!1,crossorigin:"anonymous",containerEl:null},Nj=1;_.r=Uj.prototype;_.r.getCurrentItem=function(){return this.f};_.r.wf=function(){return this.f?this.f.player:null};_.r.Ci=function(){return Array.from(this.o.values())};_.r.ue=function(){return 0<this.o.size};_.r.play=function(a){return Wj(this,a,_.pf)};_.r.load=function(a){return Wj(this,a,_.Je)};_.r.release=function(){var a=this,b,c;return _.I(function(d){if(1==d.a)return b=Promise,c=b.all,_.x(d,ek(a),3);if(2!=d.a)return _.x(d,c.call(b,[d.f,a.f?vk(a,a.f):Promise.resolve()]),2);a.f=null;a.B=!1;_.A(d)})};
493
- _.r.destroy=function(){var a=this;return _.I(function(b){if(1==b.a)return a.g.info("Destroy"),_.x(b,a.release(),2);if(3!=b.a)return _.x(b,a.A.destroy(),3);Ik(a);_.A(b)})};_.r.isMuted=function(){return this.G};var Ck="preload",Ek=_.Ne,nk="primary",mk="ad";var Uk=[403,401];_.K("clpp.net.DEFAULT_FATAL_STATUS_CODES",Uk);_.K("clpp.net.makeRequest",_.Zk);_.Yk=6;_.K("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.Yk,CONTENT_STEERING:7});_.w(sl,_.Di);_.r=sl.prototype;_.r.destroy=function(){var a=this;return _.I(function(b){Kl(a);a.f=[];a.w=!1;a.l.setSeekInterceptor(null);return _.x(b,a.a.destroy(),0)})};_.r.Yb=function(){return this.w};_.r.setMuted=function(a){var b=this.a;b.G=a;b.w?a?(b.a.setMuted(!0),Hk(b,!0)):(a=b.getCurrentItem(),lk(b,a,a&&a.ic?mk:nk)):(b.a.setMuted(a),Hk(b,a))};_.r.isMuted=function(){return this.a.isMuted()};_.r.setVolume=function(a){Sj(this.a).forEach(function(b){b.setVolume(a)})};
494
- _.r.isLive=function(){var a=this.a.wf();return a?a.isLive():null};var Mk=0,xl=1,Rl=2,Sl=3,wl=4,Zl=5,Nk=6;_.r=am.prototype;_.r.load=function(){return Promise.resolve()};_.r.Ab=function(){var a=tl(this.a);return a?(a.play(),!1):!0};_.r.Nc=function(a,b,c){var d=a.getConfiguration();a=Object.assign({},{config:d,player:a,xb:b},d.ads.hls||{},{xo:c});this.a=new sl(a);vl(this.a)};_.r.setMuted=function(a){this.a&&this.a.setMuted(a)};_.r.isMuted=function(){return this.a?this.a.isMuted():!0};_.r.jc=function(){return null!==tl(this.a)};_.r.pb=function(){var a=tl(this.a);a&&a.pause()};
495
- _.r.isPaused=function(){var a=tl(this.a);return a?a.isPaused():!1};_.r.skip=function(){};_.r.getAdVolume=function(){var a=tl(this.a);return a?a.getVolume()||0:0};_.r.Oa=function(a){this.a.setVolume(a)};_.r.getPosition=function(){var a=tl(this.a);return a?a.getPosition():-1};_.r.Kc=function(){return!this.a.Yb()};_.r.xc=function(){return this.a.destroy()};_.r.setVolume=function(a){this.Oa(a)};_.r.getVolume=function(){return this.getAdVolume()};_.r.pause=function(){this.pb()};_.r.resume=function(){this.Ab()};
496
- am.prototype.resume=am.prototype.resume;am.prototype.pause=am.prototype.pause;am.prototype.getVolume=am.prototype.getVolume;am.prototype.setVolume=am.prototype.setVolume;am.prototype.getPosition=am.prototype.getPosition;am.prototype.skip=am.prototype.skip;dm.prototype.release=function(){this.a.release();hm(this);this.m=null};_.km.prototype.destroy=function(){for(var a=[],b=_.v(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.U["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.nm.prototype.resolve=function(){};_.nm.prototype.reject=function(){};_.pm.prototype.toString=function(){var a=this.a.toString();return this.f?a.replace(dw,""):a};var dw=/^[A-Za-z]+:/;_.K("clpp.utils.Uint8ArrayUtils",Im);Im.toStandardBase64=_.Jm;Im.concat=_.Pm;Im.equal=_.Om;Im.toHex=_.Nm;Im.fromHex=_.Mm;Im.fromBase64=_.Lm;Im.toBase64Url=_.Km;_.Sm.prototype.abort=function(){this.a=!0;return this.B()};_.w(Um,_.Sm);Um.prototype.then=function(a,b){this.U=this.U.then(a,b);return this};Um.prototype["catch"]=function(a){this.U=this.U["catch"](a);return this};Um.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.h.then(function(b){a.o&&clearTimeout(a.o);a.l&&a.l();return b.abort()})["catch"](function(){})};_.r=_.Xm.prototype;_.r.To=function(a){0<a?_.Qh("Rate limit set to "+a+"bps"):_.Qh("Rate limit disabled");this.l=a};_.r.release=function(){return this.o.destroy()};_.r.destroy=function(){this.w=!0;this.h=[];this.f=[];this.j=[];return this.o.destroy()};_.r.Ah=function(a){this.h.push(a)};_.r.Ud=function(a){this.j.push(a)};_.r.Fj=function(a){this.h=this.h.filter(function(b){return b!==a})};_.r.Vf=function(a){this.j=this.j.filter(function(b){return b!==a})};
497
- _.r.fetch=function(a){var b=void 0;1===a.type&&(b={objectType:ew});return _.bn(this,a,b)};_.K("clpp.net.NetworkEngine",_.Xm);_.Xm.prototype.fetch=_.Xm.prototype.fetch;_.Xm.prototype.removeResponseModifier=_.Xm.prototype.Vf;_.Xm.prototype.removeRequestModifier=_.Xm.prototype.Fj;_.Xm.prototype.addResponseModifier=_.Xm.prototype.Ud;_.Xm.prototype.addRequestModifier=_.Xm.prototype.Ah;_.Xm.prototype.setRateLimit=_.Xm.prototype.To;var cn=[];var fn=!!(performance&&performance.mark&&performance.measure),hn=new _.M("clpp.perf");_.K("clpp.version",_.ia);_.K("clpp.name",_.ya);var po=null;_.K("clpp.configure",function(a){po=a});_.Xl="application/x-mpegurl";_.K("clpp.Type",{DASH:_.Lc,HLS:_.Xl,SMOOTH_STREAMING:_.Qc,MP4:_.Ug,MP3:"audio/mp3"});_.K("clpp.TimelineCueType",{SCTE35:_.Zf,DASH_CALLBACK:_.Ye,HLS_DATERANGE:_.xe,UNKNOWN:_.Ig});_.K("clpp.SpeedUpMode",{DECODER:_.Ud,SEEK:"seek"});_.K("clpp.CodecSwitchingStrategy",{PREVENT:_.Kf,SMOOTH:_.fg});var ln=new Map,kn=1,pn=2,on=3,nn=4;_.K("clpp.utils.url.queryString",_.xn);var Bn;_.Cn=_.rg;_.ru={VIDEO:_.Sg,AUDIO:_.Sc,TEXT:_.Cn,qp:_.Jc,IMAGE:_.Ae,zh:_.og};_.fw=1/15;Bn={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4/,/^dts[cex]$/,/^iamf/,/^mhm[12]/],video:[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/,/^dva/,/^dav/]};Bn[_.Cn]=[/^vtt$/,/^wvtt/,/^stpp/];var ew="m";_.K("clpp.utils.PlayerConfiguration",Hn);Hn.create=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return _.Nn(b,{Ko:!1})};Hn.build=_.Nn;_.K("clpp.utils.media.detectType",Pn);var Sn=new _.M("clpp.sources");_.K("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.Cb,SW_SECURE_DECODE:_.Db,HW_SECURE_CRYPTO:Sa,HW_SECURE_DECODE:Ta,HW_SECURE_ALL:Ra});_.K("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.K("clpp.drm.KeySystem",{NONE:_.Ze,CLEAR_KEY:_.jf,WIDEVINE:_.Md,PLAYREADY:_.Kd,FAIRPLAY:_.Id,PRIMETIME:_.Hd});_.Un={};_.K("clpp.drm.registerDrmEnvironment",_.Vn);var Zn={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},In="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";var oo="vod",no="live";var to=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",
493
+ 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}};_.r=Uj.prototype;_.r.getMedia=function(){return this.f.get()};_.r.getContainer=function(){return this.a.get()};_.r.getSafeContainer=function(){return this.a};_.r.getId=function(){return this.l};_.r.getUniqueCssClass=function(){return this.o};_.r.getCastElement=function(){return this.h};_.r.isFullscreen=function(){return!!document.fullscreenElement};_.r.hideMediaElement=function(){var a=this.getMedia();a?_.dj(a,sd):this.g.debug("No media element available that could be hidden")};
494
+ _.r.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(sd):this.g.debug("No media element available that could be shown")};_.r.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&&_.dj(a,_.rd);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
495
+ _.r.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.r.hide=function(a){_.dj(a,sd)};_.r.show=function(a){a.classList.remove(sd)};_.r.release=function(){this.j.release()};Uj.prototype.removeElementFromContainer=Uj.prototype.removeElementFromContainer;Uj.prototype.addElementToContainer=Uj.prototype.addElementToContainer;Uj.prototype.getCastElement=Uj.prototype.getCastElement;
496
+ Uj.prototype.getContainer=Uj.prototype.getContainer;Uj.prototype.getMedia=Uj.prototype.getMedia;var Rj={disableContainer:!1,webOSStartupPatch:!1,crossorigin:"anonymous",containerEl:null},Sj=1;_.r=Zj.prototype;_.r.getCurrentItem=function(){return this.f};_.r.Jf=function(){return this.f?this.f.player:null};_.r.Mi=function(){return Array.from(this.o.values())};_.r.Fe=function(){return 0<this.o.size};_.r.play=function(a){return bk(this,a,_.pf)};_.r.load=function(a){return bk(this,a,_.Ke)};_.r.release=function(){var a=this,b,c;return _.I(function(d){if(1==d.a)return b=Promise,c=b.all,_.y(d,ik(a),3);if(2!=d.a)return _.y(d,c.call(b,[d.f,a.f?zk(a,a.f):Promise.resolve()]),2);a.f=null;a.B=!1;_.A(d)})};
497
+ _.r.destroy=function(){var a=this;return _.I(function(b){if(1==b.a)return a.g.info("Destroy"),_.y(b,a.release(),2);if(3!=b.a)return _.y(b,a.A.destroy(),3);Mk(a);_.A(b)})};_.r.isMuted=function(){return this.G};var Gk="preload",Ik=_.Oe,rk="primary",qk="ad";var Yk=[403,401];_.K("clpp.net.DEFAULT_FATAL_STATUS_CODES",Yk);_.K("clpp.net.makeRequest",_.dl);_.bl=6;_.K("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.bl,CONTENT_STEERING:7});_.w(wl,_.Ii);_.r=wl.prototype;_.r.destroy=function(){var a=this;return _.I(function(b){Ol(a);a.f=[];a.w=!1;a.l.setSeekInterceptor(null);return _.y(b,a.a.destroy(),0)})};_.r.ac=function(){return this.w};_.r.setMuted=function(a){var b=this.a;b.G=a;b.w?a?(b.a.setMuted(!0),Lk(b,!0)):(a=b.getCurrentItem(),pk(b,a,a&&a.lc?qk:rk)):(b.a.setMuted(a),Lk(b,a))};_.r.isMuted=function(){return this.a.isMuted()};_.r.setVolume=function(a){Xj(this.a).forEach(function(b){b.setVolume(a)})};
498
+ _.r.isLive=function(){var a=this.a.Jf();return a?a.isLive():null};var Qk=0,Bl=1,Vl=2,Wl=3,Al=4,cm=5,Rk=6;_.r=em.prototype;_.r.load=function(){return Promise.resolve()};_.r.Cb=function(){var a=xl(this.a);return a?(a.play(),!1):!0};_.r.Uc=function(a,b,c){var d=a.getConfiguration();a=Object.assign({},{config:d,player:a,yb:b},d.ads.hls||{},{Ho:c});this.a=new wl(a);zl(this.a)};_.r.setMuted=function(a){this.a&&this.a.setMuted(a)};_.r.isMuted=function(){return this.a?this.a.isMuted():!0};_.r.Ab=function(){return null!==xl(this.a)};_.r.rb=function(){var a=xl(this.a);a&&a.pause()};
499
+ _.r.isPaused=function(){var a=xl(this.a);return a?a.isPaused():!1};_.r.skip=function(){};_.r.getAdVolume=function(){var a=xl(this.a);return a?a.getVolume()||0:0};_.r.Pa=function(a){this.a.setVolume(a)};_.r.getPosition=function(){var a=xl(this.a);return a?a.getPosition():-1};_.r.Rc=function(){return!this.a.ac()};_.r.Cc=function(){return this.a.destroy()};_.r.setVolume=function(a){this.Pa(a)};_.r.getVolume=function(){return this.getAdVolume()};_.r.pause=function(){this.rb()};_.r.resume=function(){this.Cb()};
500
+ em.prototype.resume=em.prototype.resume;em.prototype.pause=em.prototype.pause;em.prototype.getVolume=em.prototype.getVolume;em.prototype.setVolume=em.prototype.setVolume;em.prototype.getPosition=em.prototype.getPosition;em.prototype.skip=em.prototype.skip;hm.prototype.release=function(){this.a.release();lm(this);this.m=null};_.om.prototype.destroy=function(){for(var a=[],b=_.v(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.U["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.rm.prototype.resolve=function(){};_.rm.prototype.reject=function(){};_.tm.prototype.toString=function(){var a=this.a.toString();return this.f?a.replace(mw,""):a};var mw=/^[A-Za-z]+:/;_.K("clpp.utils.Uint8ArrayUtils",Mm);Mm.toStandardBase64=_.Nm;Mm.concat=_.Tm;Mm.equal=_.Sm;Mm.toHex=_.Rm;Mm.fromHex=_.Qm;Mm.fromBase64=_.Pm;Mm.toBase64Url=_.Om;_.Wm.prototype.abort=function(){this.a=!0;return this.B()};_.w(Ym,_.Wm);Ym.prototype.then=function(a,b){this.U=this.U.then(a,b);return this};Ym.prototype["catch"]=function(a){this.U=this.U["catch"](a);return this};Ym.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.h.then(function(b){a.o&&clearTimeout(a.o);a.l&&a.l();return b.abort()})["catch"](function(){})};_.r=_.an.prototype;_.r.bp=function(a){0<a?_.Vh("Rate limit set to "+a+"bps"):_.Vh("Rate limit disabled");this.l=a};_.r.release=function(){return this.o.destroy()};_.r.destroy=function(){this.w=!0;this.h=[];this.f=[];this.j=[];return this.o.destroy()};_.r.vg=function(a){this.h.push(a)};_.r.yd=function(a){this.j.push(a)};_.r.lh=function(a){this.h=this.h.filter(function(b){return b!==a})};_.r.Ve=function(a){this.j=this.j.filter(function(b){return b!==a})};
501
+ _.r.fetch=function(a){var b=void 0;1===a.type&&(b={objectType:nw});return _.fn(this,a,b)};_.K("clpp.net.NetworkEngine",_.an);_.an.prototype.fetch=_.an.prototype.fetch;_.an.prototype.removeResponseModifier=_.an.prototype.Ve;_.an.prototype.removeRequestModifier=_.an.prototype.lh;_.an.prototype.addResponseModifier=_.an.prototype.yd;_.an.prototype.addRequestModifier=_.an.prototype.vg;_.an.prototype.setRateLimit=_.an.prototype.bp;var gn=[];var kn=!!(performance&&performance.mark&&performance.measure),mn=new _.M("clpp.perf");_.K("clpp.version",_.ia);_.K("clpp.name",_.ya);var to=null;_.K("clpp.configure",function(a){to=a});_.am="application/x-mpegurl";_.K("clpp.Type",{DASH:_.Lc,HLS:_.am,SMOOTH_STREAMING:_.Qc,MP4:_.Vg,MP3:"audio/mp3"});_.K("clpp.TimelineCueType",{SCTE35:_.ag,DASH_CALLBACK:_.Ye,HLS_DATERANGE:_.xe,UNKNOWN:_.Hg});_.K("clpp.SpeedUpMode",{DECODER:_.Ud,SEEK:"seek"});_.K("clpp.CodecSwitchingStrategy",{PREVENT:_.Mf,SMOOTH:_.hg});var pn=new Map,on=1,tn=2,sn=3,rn=4;_.K("clpp.utils.url.queryString",_.Bn);var Fn;_.Gn=_.tg;_.Au={VIDEO:_.Tg,AUDIO:_.Sc,TEXT:_.Gn,zp:_.Jc,IMAGE:_.Be,Kh:_.qg};_.ow=1/15;Fn={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4/,/^dts[cex]$/,/^iamf/,/^mhm[12]/],video:[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/,/^dva/,/^dav/]};Fn[_.Gn]=[/^vtt$/,/^wvtt/,/^stpp/];var nw="m";_.K("clpp.utils.PlayerConfiguration",Ln);Ln.create=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return _.Rn(b,{Uo:!1})};Ln.build=_.Rn;_.K("clpp.utils.media.detectType",Tn);var Wn=new _.M("clpp.sources");_.K("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.Cb,SW_SECURE_DECODE:_.Db,HW_SECURE_CRYPTO:Sa,HW_SECURE_DECODE:Ta,HW_SECURE_ALL:Ra});_.K("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.K("clpp.drm.KeySystem",{NONE:_.Ze,CLEAR_KEY:_.jf,WIDEVINE:_.Md,PLAYREADY:_.Kd,FAIRPLAY:_.Id,PRIMETIME:_.Hd});_.Yn={};_.K("clpp.drm.registerDrmEnvironment",_.Zn);var co={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},Mn="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";var so="vod",ro="live";var xo=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",
498
502
  "cs"],["dan","da"],["deu","de"],[_.Xd,"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",
499
503
  "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",
500
504
  "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",
501
505
  "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",
502
- "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var Ao,yo,zo;vo.prototype.release=function(){this.a=null;this.f.Vf(this.h)};_.gw="maxSuggestedBitrateKbps";Ao={du:"duress",etp:_.re,mb:_.gw,rd:"responseDelay",rtt:"roundTripTime"};yo={at:"availabilityTime",br:"encodedBitrateKbps",ht:"heldTime",n:"intermediaryIdentifier",nor:"nextObjectResponse",nrr:"nextRangeResponse",d:"objectDuration",ot:"objectType",su:"startup",st:"streamType",sf:"streamingFormat",v:Pg};zo=new _.M("clpp.net.CmsdManager");_.w(S,_.Di);_.r=S.prototype;_.r.on=function(a,b,c){return _.Di.prototype.on.call(this,a,b,c)};_.r.one=function(a,b,c){return _.Di.prototype.one.call(this,a,b,c)};_.r.off=function(a,b){return _.Di.prototype.off.call(this,a,b)};_.r.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.Q(_.qe,{detail:a}))};_.r.oe=function(a){a=this.L[a];void 0===a&&(a=null);return a};_.r.getSurface=function(){return this.j};_.r.getConfiguration=function(){return _.N.wb(this.f)};
503
- _.r.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.r.detach=function(){return this.a?this.a.detach():Promise.resolve()};_.r.release=function(){var a=this;if(null!=this.l)return this.g.info("Player release already in progress"),this.l;this.g.debug("Releasing player");this.l=Oo(this);return this.l["finally"](function(){Yo(a);a.g.debug("Player released");a.l=null})};
504
- _.r.destroy=function(){var a=this;if(this.T)return this.g.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.T=!0;return this.release().then(function(){a.g.debug(Ja);a.trigger(new _.Q("destroying"));return a.Zc(_.df)}).then(function(){a.a&&a.a.stopForwardingEventsTo(a);a.je.clear();a.Va.release();if(a.a)return a.a.destroy()}).then(function(){return a.J.destroy()}).then(function(){qi(a);a.a=null;a.A=null;a.trigger(new _.Q("destroyed"))})};
505
- _.r.load=function(a){var b=this,c,d,e;return _.I(function(f){switch(f.a){case 1:_.F(f,2);_.gn(xf);b.P=_.pa;b.ma=!0;c=_.Rn(a);d=On(a)?a:{};if(d.license)throw new _.O(_.P,7,7100,"License cannot be passed into the load method.");return _.x(f,_.Wo(b,d,c),4);case 4:return _.x(f,_.Xo(b),5);case 5:return _.x(f,_.Ro(b),6);case 6:_.gn(wf);_.jn("player.load",xf,wf);_.G(f,0);break;case 2:e=_.H(f);Yo(b);if(b.l)throw b.g.info(bb),new _.O(_.P,7,7E3);throw e;}})};
506
- _.r.preload=function(a){var b=this,c;return _.I(function(d){if(1==d.a)return _.x(d,_.Wo(b,a),2);if(!b.a)return b.g.warn(tb),d["return"]();c=b.a;return c.preload?_.x(d,c.preload(b.f),0):(b.g.warn(xb),d["return"]())})};_.r.Zc=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!this.ma)return Promise.resolve();var e=this;d=this.ha.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.ph(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};
507
- _.r.use=function(a){(a=ri(a))&&a.playerConstructed(this)};_.r.remove=function(a){return(this.getState()<=_.du||this.W)&&null!==li(a)?(si(a),this.X=!0):!1};_.r.play=function(){return this.a?this.h&&!this.h.Ab()?Promise.resolve():this.a.play():Promise.reject("No player initialized. You need to load content before calling play.")};_.r.pause=function(){return this.a?this.h&&this.h.jc()?(this.h.pb(),Promise.resolve()):this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};
508
- _.r.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.r.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.gi};_.r.getState=function(){return this.a?this.a.getState():_.du};_.r.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.r.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.r.isPaused=function(){return this.h&&this.h.jc()?this.h.isPaused():this.a?this.a.isPaused():!1};_.r.getPosition=function(){return this.a?this.a.getPosition():0};
509
- _.r.seek=function(a){return this.getState()===_.Bo?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};_.r.getPresentationStartTime=function(){return this.a?this.a.getPresentationStartTime():null};_.r.getSeekRange=function(){return this.a?this.a.getSeekRange():{start:0,end:0}};_.r.Rc=function(){var a=this.a;return a&&a.Rc?a.Rc():null};_.r.getVolume=function(){return this.a?this.a.getVolume():null};
510
- _.r.setVolume=function(a){this.h&&this.h.Oa(a);this.a&&this.a.setVolume(a)};_.r.getDuration=function(){return this.a?this.a.getDuration():-1};_.r.getAdsManager=function(){return this.h};_.r.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};_.r.getPlaybackRate=function(){return this.a?this.a.getPlaybackRate():1};_.r.setPlaybackRate=function(a,b){this.a&&this.a.setPlaybackRate(a,b)};_.r.isMuted=function(){return this.a?!!this.a.isMuted():!1};
511
- _.r.setMuted=function(a){this.h&&this.h.setMuted(a);this.a&&this.a.setMuted(a)};_.r.getNetworkEngine=function(){return this.J};_.r.setNetworkEngine=function(a){this.J=a};_.r.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};_.r.isLive=function(){return!!this.a&&this.a.isLive()};_.r.getStats=function(){return this.a?this.a.getStats():null};_.r.Ii=function(){return Object.freeze(this.Ba)};_.r.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};
512
- _.r.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.r.getCueTimeline=function(){return this.a?this.a.getCueTimeline():null};_.r.resetAbr=function(){this.a&&this.a.resetAbr()};_.r.setDrmCustomDataModifier=function(a){this.wd=a;Uo(this)};_.r.setCdnErrorCallback=function(a){this.M=a;this.a&&this.a.setCdnErrorCallback(this.M)};_.K("clpp.Player",S);S.registerPlugin=_.bp;S.prototype.setCdnErrorCallback=S.prototype.setCdnErrorCallback;S.prototype.setDrmCustomDataModifier=S.prototype.setDrmCustomDataModifier;
513
- S.prototype.resetAbr=S.prototype.resetAbr;S.prototype.getTimelineCues=S.prototype.getTimelineCues;S.prototype.getLoadedSource=S.prototype.getLoadedSource;S.prototype.getSources=S.prototype.Ii;S.prototype.getStats=S.prototype.getStats;S.prototype.isLive=S.prototype.isLive;S.prototype.getTextDisplayer=S.prototype.getTextDisplayer;S.prototype.setNetworkEngine=S.prototype.setNetworkEngine;S.prototype.getNetworkEngine=S.prototype.getNetworkEngine;S.prototype.setMuted=S.prototype.setMuted;
514
- S.prototype.isMuted=S.prototype.isMuted;S.prototype.setPlaybackRate=S.prototype.setPlaybackRate;S.prototype.getPlaybackRate=S.prototype.getPlaybackRate;S.prototype.namespace=S.prototype.namespace;S.prototype.getAdsManager=S.prototype.getAdsManager;S.prototype.getDuration=S.prototype.getDuration;S.prototype.setVolume=S.prototype.setVolume;S.prototype.getVolume=S.prototype.getVolume;S.prototype.getTimelineOffset=S.prototype.Rc;S.prototype.getSeekRange=S.prototype.getSeekRange;
515
- S.prototype.getPresentationStartTime=S.prototype.getPresentationStartTime;S.prototype.seek=S.prototype.seek;S.prototype.getPosition=S.prototype.getPosition;S.prototype.isPaused=S.prototype.isPaused;S.prototype.isEnded=S.prototype.isEnded;S.prototype.getState=S.prototype.getState;S.prototype.getBufferInfo=S.prototype.getBufferInfo;S.prototype.getTrackManager=S.prototype.getTrackManager;S.prototype.pause=S.prototype.pause;S.prototype.play=S.prototype.play;S.prototype.remove=S.prototype.remove;
516
- S.prototype.use=S.prototype.use;S.prototype.load=S.prototype.load;S.prototype.destroy=S.prototype.destroy;S.prototype.release=S.prototype.release;S.prototype.getDrmInfo=S.prototype.getDrmInfo;S.prototype.getConfiguration=S.prototype.getConfiguration;S.prototype.getSurface=S.prototype.getSurface;S.prototype.getPlugin=S.prototype.oe;S.prototype.off=S.prototype.off;S.prototype.one=S.prototype.one;S.prototype.on=S.prototype.on;_.du=0;_.Bo=6;
517
- _.ku={IDLE:_.du,PREPARING:1,BUFFERING:2,PLAYING:3,PAUSED:4,ENDED:5,ERROR:_.Bo,UNSET:7};S.State=_.ku;var Ko=[];_.r=cp.prototype;_.r.load=function(a){var b=this;return _.I(function(c){return b.Vc?_.x(c,gp(b,function(d){return _.I(function(e){return _.x(e,d.load(a),0)})}),0):(b.Fa.warn("No main player, cannot load."),c["return"]())})};_.r.Qo=function(a){this.j=a;this.Fa.info("Looping set to",a)};_.r.jk=function(a){this.f.push(a)};
518
- _.r.ik=function(a){if(this.Vc)this.Fa.warn("Main player already set.");else{this.Vc=a;var b=this.fn.bind(this),c=this.gn.bind(this),d=this.yk.bind(this);a.on(_.ig,b);a.on(_.zg,c);a.on(_.pe,d);this.h.push(function(){a.off(_.ig,b);a.off(_.zg,c);a.on(_.pe,d)})}};_.r.clear=function(){this.Vc=null;this.f=[];this.h.forEach(function(a){return a()});this.h=[]};
519
- _.r.yk=function(){var a=this;return _.I(function(b){if(!a.j)return b.C(0);a.Fa.info("Looping playback.");return _.x(b,gp(a,function(c){return _.I(function(d){return 1==d.a?_.x(d,c.seek(0),2):_.x(d,c.play(),0)})}),0)})};
520
- _.r.fn=function(a){var b=this;this.a||(a=a.detail.currentState,3===a?(this.Fa.info("Mirroring playing."),fp(this,function(c){return _.I(function(d){return _.x(d,c.play(),0)})})):[4,2,_.Bo].includes(a)&&(this.Fa.info("Mirroring paused/buffering/error."),fp(this,function(c){var d,e;return _.I(function(f){if(1==f.a)return d=Math.round(b.Vc.getPosition())-.1,_.x(f,c.seek(d),2);if(3!=f.a)return _.x(f,hj(.2),3);e=c.getState();return 3!==e&&2!==e?f.C(0):_.x(f,c.pause(),0)})})))};
521
- _.r.gn=function(){var a=this;this.a||fp(this,function(b){var c,d,e,f,g,k,l;return _.I(function(m){switch(m.a){case 1:if(!b.isPaused()){m.C(2);break}return _.x(m,b.play(),2);case 2:c=a.Vc.getPosition();d=b.getPosition();e=c-d;f=Math.abs(e);g=b.getPlaybackRate();k=b.getState();if(3!==k||.05>=f)return m["return"]();var n=Math.abs(e);l=Math.min(Math.max(1+(.05>=n?0:n/(1>n?6:3))*Math.sign(e),.2),5);if(!(5<=f)){m.C(4);break}b.setPlaybackRate(1);return _.x(m,b.seek(c),5);case 5:return m["return"]();case 4:if(g===
522
- l)return 1!==l&&a.Fa.info("Delta "+e.toFixed(1)+" s."),m["return"]();1===l?a.Fa.info("Secondary caught up."):1>l?a.Fa.info("Secondary slowing down to catch up. Rate: "+(l.toFixed(1)+", delta: "+e.toFixed(1)+" s")):1<l&&a.Fa.info("Secondary speeding up to catch up. Rate: "+(l.toFixed(1)+", delta: "+e.toFixed(1)+" s"));b.setPlaybackRate(l);_.A(m)}})})};_.K(wd,cp);cp.prototype.clear=cp.prototype.clear;cp.prototype.addMainPlayer=cp.prototype.ik;cp.prototype.addSecondaryPlayer=cp.prototype.jk;
523
- cp.prototype.setLoop=cp.prototype.Qo;cp.prototype.load=cp.prototype.load;hp.prototype.release=function(){this.j.release();this.a=new Set;this.f.clear();null!=this.h&&(clearInterval(this.h),this.h=null)};hp.prototype.destroy=function(){var a=this;return _.I(function(b){a.release();_.A(b)})};hp.prototype.getTimelineCues=function(){return Array.from(this.a.values()).sort(function(a,b){return a.startTime-b.startTime})};_.Fp.prototype.ua=function(a){return this.payload===a.payload&&this.startTime===a.startTime&&this.endTime===a.endTime&&this.payloadType===a.payloadType};_.K("clpp.text.Cue",_.Fp);_.Fp.positionAlign={LEFT:_.Ge,RIGHT:_.He,CENTER:_.md,AUTO:"auto"};_.zp=_.rg;_.Fp.payloadType={TEXT:_.zp,VTT_XML:_.Zg,TTML_XML:_.Cg};_.Ap=_.md;_.hw={LEFT:_.De,RIGHT:_.Uf,CENTER:_.Ap,START:_.hg,END:_.oe};_.Fp.textAlign=_.hw;var Ep="ltr";_.Fp.direction={HORIZONTAL_LEFT_TO_RIGHT:Ep,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.Bp="horizontal-tb";
524
- _.Fp.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Bp,VERTICAL_LEFT_TO_RIGHT:_.Qg,VERTICAL_RIGHT_TO_LEFT:_.Rg};_.Cp=0;_.Fp.lineInterpretation={LINE_NUMBER:_.Cp,PERCENTAGE:1};_.Dp=_.hg;_.iw={CENTER:_.md,START:_.Dp,END:_.oe};_.Fp.lineAlign=_.iw;_.K("clpp.text.CueRegion",_.Ip);_.Gp=1;_.Ip.units={PX:0,PERCENTAGE:_.Gp,LINES:2};var Hp="";_.Ip.scrollMode={NONE:Hp,UP:"up"};_.Ip.displayAlign={BEFORE:"flex-end",CENTER:_.md,AFTER:"flex-start"};
525
- _.Ip.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Gd,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};Jp.prototype.destroy=function(){this.a.release();this.j=!1;this.l=this.a=this.h=this.f=null;return Promise.resolve()};Jp.prototype.start=function(a){var b=this;this.j?this.g.warn("Already started. Ignoring request..."):(this.j=!0,this.h=a,this.f=this.h.textTracks,this.a.on(this.f,_.Ec,function(c){return Kp(b,c)}),this.a.on(this.f,od,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.bg&&(e.mode=_.we)}}))};
526
- Jp.prototype.o=function(a){var b=new _.Fp(a.startTime,a.endTime,a.text,_.Zg);if(_.N.ja(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Qg;break;case "rl":b.writingMode=_.Rg}_.N.za(a.size)&&(b.size=a.size);if(_.N.ja(a.align))switch(a.align){case _.De:case _.hg:b.textAlign=_.hg;break;case _.md:b.textAlign=_.Ap;break;case _.Uf:case _.oe:b.textAlign=_.oe}_.N.za(a.position)&&(b.position=a.position);if(_.N.ja(a.positionAlign))switch(a.positionAlign){case _.Ge:b.positionAlign=_.Ge;break;case _.md:b.positionAlign=
527
- _.md;break;case _.He:b.positionAlign=_.He}_.N.za(a.line)&&(b.line=a.line);if(_.N.ja(a.lineAlign))switch(a.lineAlign){case _.hg:b.lineAlign=_.Dp;break;case _.md:b.lineAlign=_.md;break;case _.oe:b.lineAlign=_.oe}_.N.Qi(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.Cp:1);return b};var Lp={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av0?1/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.Np={text:{mp4:_.Mc,m4s:_.Mc,m4i:_.Mc,cmft:_.Mc,vtt:_.sg,ttml:_.Pc},video:{mp4:_.Ug,m4s:_.Ug,m4f:_.Ug,m4i:_.Ug,m4v:_.Ug,cmfv:_.Ug,ts:_.Tg},audio:{mp4:_.Wc,m4s:_.Wc,m4f:_.Wc,m4i:_.Wc,m4a:_.Wc,cmfa:_.Wc,ts:_.Tg,aac:_.Tc,ec3:_.Vc,ac3:_.Uc},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.Pp.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};_.Pp.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name===a});return b.length?b[0]:null};_.Pp.prototype.hasAttribute=function(a){return null!=this.getAttribute(a)};_.Sp.prototype.getPosition=function(){return this.position};_.Sp.prototype.qe=function(){return this.fa?this.fa-this.la+1:null};_.Sp.prototype.f=_.nh(0);_.w(_.Tp,_.Sp);Vp.prototype.release=function(){this.a=this.f=null};var Yp={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,
506
+ "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var Eo,Co,Do;zo.prototype.release=function(){this.a=null;this.f.Ve(this.h)};_.pw="maxSuggestedBitrateKbps";Eo={du:"duress",etp:_.re,mb:_.pw,rd:"responseDelay",rtt:"roundTripTime"};Co={at:"availabilityTime",br:"encodedBitrateKbps",ht:"heldTime",n:"intermediaryIdentifier",nor:"nextObjectResponse",nrr:"nextRangeResponse",d:"objectDuration",ot:"objectType",su:"startup",st:"streamType",sf:"streamingFormat",v:Qg};Do=new _.M("clpp.net.CmsdManager");_.w(S,_.Ii);_.r=S.prototype;_.r.on=function(a,b,c){return _.Ii.prototype.on.call(this,a,b,c)};_.r.one=function(a,b,c){return _.Ii.prototype.one.call(this,a,b,c)};_.r.off=function(a,b){return _.Ii.prototype.off.call(this,a,b)};_.r.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.Q(_.qe,{detail:a}))};_.r.ze=function(a){a=this.L[a];void 0===a&&(a=null);return a};_.r.getSurface=function(){return this.j};_.r.getConfiguration=function(){return _.N.xb(this.f)};
507
+ _.r.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.r.detach=function(){return this.a?this.a.detach():Promise.resolve()};_.r.release=function(){var a=this;if(null!=this.l)return this.g.info("Player release already in progress"),this.l;this.g.debug("Releasing player");this.l=So(this);return this.l["finally"](function(){bp(a);a.g.debug("Player released");a.l=null})};_.r.stop=function(){return this.release()};
508
+ _.r.destroy=function(){var a=this;if(this.T)return this.g.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.T=!0;return this.release().then(function(){a.g.debug(Ja);a.trigger(new _.Q("destroying"));return a.jd(_.df)}).then(function(){a.a&&a.a.stopForwardingEventsTo(a);a.ue.clear();a.Va.release();if(a.a)return a.a.destroy()}).then(function(){return a.J.destroy()}).then(function(){a.a=null;a.A=null;a.trigger(new _.Q("destroyed"))})};
509
+ _.r.open=function(a){var b=this,c,d,e;return _.I(function(f){switch(f.a){case 1:_.F(f,2);_.ln(xf);b.P=_.pa;b.ma=!0;c=_.Vn(a);d=Sn(a)?a:{};if(d.license)throw new _.O(_.P,7,7100,"License cannot be passed into the open method.");return _.y(f,_.$o(b,d,c),4);case 4:return _.y(f,_.ap(b),5);case 5:return _.y(f,_.Vo(b),6);case 6:_.ln(wf);_.nn("player.open",xf,wf);_.G(f,0);break;case 2:e=_.H(f);bp(b);if(b.l)throw b.g.info(bb),new _.O(_.P,7,7E3);throw e;}})};_.r.load=function(a){return this.open(a)};
510
+ _.r.preload=function(a){var b=this,c;return _.I(function(d){if(1==d.a)return _.y(d,_.$o(b,a),2);if(!b.a)return b.g.warn(tb),d["return"]();c=b.a;return c.preload?_.y(d,c.preload(b.f),0):(b.g.warn(xb),d["return"]())})};_.r.jd=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!this.ma)return Promise.resolve();var e=this;d=this.ha.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.uh(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};
511
+ _.r.use=function(a){(a=wi(a))&&a.playerConstructed(this)};_.r.remove=function(a){return(this.getState()<=_.mu||this.W)&&null!==ri(a)?(xi(a),this.X=!0):!1};_.r.play=function(){return this.a?this.h&&!this.h.Cb()?Promise.resolve():this.a.play():Promise.reject("No player initialized. You need to load content before calling play.")};_.r.pause=function(){return this.a?this.h&&this.h.Ab()?(this.h.rb(),Promise.resolve()):this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};
512
+ _.r.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.r.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.mi};_.r.getState=function(){return this.a?this.a.getState():_.mu};_.r.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.r.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.r.isPaused=function(){return this.h&&this.h.Ab()?this.h.isPaused():this.a?this.a.isPaused():!1};_.r.getPosition=function(){return this.a?this.a.getPosition():0};
513
+ _.r.setPosition=function(a){return this.getState()===_.Fo?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};_.r.seek=function(a){return this.setPosition(a)};_.r.getPresentationStartTime=function(){return this.a?this.a.getPresentationStartTime():null};_.r.getSeekRange=function(){return this.a?this.a.getSeekRange():{start:0,end:0}};_.r.$c=function(){var a=this.a;return a&&a.$c?a.$c():null};
514
+ _.r.getVolume=function(){return this.a?this.a.getVolume():null};_.r.setVolume=function(a){this.h&&this.h.Pa(a);this.a&&this.a.setVolume(a)};_.r.getDuration=function(){return this.a?this.a.getDuration():-1};_.r.getAdsManager=function(){return this.h};_.r.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};_.r.Ab=function(){return this.h?this.h.Ab():!1};_.r.Ec=function(){return this.a?this.a.getPlaybackRate():1};_.r.getPlaybackRate=function(){return this.Ec()};
515
+ _.r.Wd=function(a,b){this.a&&this.a.setPlaybackRate(a,b)};_.r.setPlaybackRate=function(a,b){this.Wd(a,b)};_.r.isMuted=function(){return this.a?!!this.a.isMuted():!1};_.r.setMuted=function(a){this.h&&this.h.setMuted(a);this.a&&this.a.setMuted(a)};_.r.getNetworkEngine=function(){return this.J};_.r.setNetworkEngine=function(a){this.J=a};_.r.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};_.r.isLive=function(){return!!this.a&&this.a.isLive()};
516
+ _.r.getStats=function(){return this.a?this.a.getStats():null};_.r.Ri=function(){return Object.freeze(this.Ba)};_.r.ab=function(){return this.a&&this.a.getLoadedSource()};_.r.getLoadedSource=function(){return this.ab()};_.r.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.r.getCueTimeline=function(){return this.a?this.a.getCueTimeline():null};_.r.resetAbr=function(){this.a&&this.a.resetAbr()};_.r.setDrmCustomDataModifier=function(a){this.Fd=a;Yo(this)};
517
+ _.r.setCdnErrorCallback=function(a){this.M=a;this.a&&this.a.setCdnErrorCallback(this.M)};_.K("clpp.Player",S);S.registerPlugin=_.fp;S.prototype.setCdnErrorCallback=S.prototype.setCdnErrorCallback;S.prototype.setDrmCustomDataModifier=S.prototype.setDrmCustomDataModifier;S.prototype.resetAbr=S.prototype.resetAbr;S.prototype.getTimelineCues=S.prototype.getTimelineCues;S.prototype.getLoadedSource=S.prototype.getLoadedSource;S.prototype.getCurrentSource=S.prototype.ab;S.prototype.getSources=S.prototype.Ri;
518
+ S.prototype.getStats=S.prototype.getStats;S.prototype.isLive=S.prototype.isLive;S.prototype.getTextDisplayer=S.prototype.getTextDisplayer;S.prototype.setNetworkEngine=S.prototype.setNetworkEngine;S.prototype.getNetworkEngine=S.prototype.getNetworkEngine;S.prototype.setMuted=S.prototype.setMuted;S.prototype.isMuted=S.prototype.isMuted;S.prototype.setPlaybackRate=S.prototype.setPlaybackRate;S.prototype.setRate=S.prototype.Wd;S.prototype.getPlaybackRate=S.prototype.getPlaybackRate;
519
+ S.prototype.getRate=S.prototype.Ec;S.prototype.isPlayingAd=S.prototype.Ab;S.prototype.namespace=S.prototype.namespace;S.prototype.getAdsManager=S.prototype.getAdsManager;S.prototype.getDuration=S.prototype.getDuration;S.prototype.setVolume=S.prototype.setVolume;S.prototype.getVolume=S.prototype.getVolume;S.prototype.getTimelineOffset=S.prototype.$c;S.prototype.getSeekRange=S.prototype.getSeekRange;S.prototype.getPresentationStartTime=S.prototype.getPresentationStartTime;S.prototype.seek=S.prototype.seek;
520
+ S.prototype.setPosition=S.prototype.setPosition;S.prototype.getPosition=S.prototype.getPosition;S.prototype.isPaused=S.prototype.isPaused;S.prototype.isEnded=S.prototype.isEnded;S.prototype.getState=S.prototype.getState;S.prototype.getBufferInfo=S.prototype.getBufferInfo;S.prototype.getTrackManager=S.prototype.getTrackManager;S.prototype.pause=S.prototype.pause;S.prototype.play=S.prototype.play;S.prototype.remove=S.prototype.remove;S.prototype.use=S.prototype.use;S.prototype.load=S.prototype.load;
521
+ S.prototype.open=S.prototype.open;S.prototype.destroy=S.prototype.destroy;S.prototype.stop=S.prototype.stop;S.prototype.release=S.prototype.release;S.prototype.getDrmInfo=S.prototype.getDrmInfo;S.prototype.getConfiguration=S.prototype.getConfiguration;S.prototype.getSurface=S.prototype.getSurface;S.prototype.getPlugin=S.prototype.ze;S.prototype.off=S.prototype.off;S.prototype.one=S.prototype.one;S.prototype.on=S.prototype.on;_.mu=0;_.Fo=6;
522
+ _.tu={IDLE:_.mu,PREPARING:1,BUFFERING:2,PLAYING:3,PAUSED:4,ENDED:5,ERROR:_.Fo,UNSET:7};S.State=_.tu;var Io=[];_.r=gp.prototype;_.r.load=function(a){var b=this;return _.I(function(c){return b.ed?_.y(c,kp(b,function(d){return _.I(function(e){return _.y(e,d.open(a),0)})}),0):(b.Fa.warn("No main player, cannot load."),c["return"]())})};_.r.$o=function(a){this.j=a;this.Fa.info("Looping set to",a)};_.r.sk=function(a){this.f.push(a)};
523
+ _.r.rk=function(a){if(this.ed)this.Fa.warn("Main player already set.");else{this.ed=a;var b=this.qn.bind(this),c=this.rn.bind(this),d=this.Hk.bind(this);a.on(_.kg,b);a.on(_.Bg,c);a.on(_.pe,d);this.h.push(function(){a.off(_.kg,b);a.off(_.Bg,c);a.on(_.pe,d)})}};_.r.clear=function(){this.ed=null;this.f=[];this.h.forEach(function(a){return a()});this.h=[]};
524
+ _.r.Hk=function(){var a=this;return _.I(function(b){if(!a.j)return b.C(0);a.Fa.info("Looping playback.");return _.y(b,kp(a,function(c){return _.I(function(d){return 1==d.a?_.y(d,c.setPosition(0),2):_.y(d,c.play(),0)})}),0)})};
525
+ _.r.qn=function(a){var b=this;this.a||(a=a.detail.currentState,3===a?(this.Fa.info("Mirroring playing."),jp(this,function(c){return _.I(function(d){return _.y(d,c.play(),0)})})):[4,2,_.Fo].includes(a)&&(this.Fa.info("Mirroring paused/buffering/error."),jp(this,function(c){var d,e;return _.I(function(f){if(1==f.a)return d=Math.round(b.ed.getPosition())-.1,_.y(f,c.setPosition(d),2);if(3!=f.a)return _.y(f,mj(.2),3);e=c.getState();return 3!==e&&2!==e?f.C(0):_.y(f,c.pause(),0)})})))};
526
+ _.r.rn=function(){var a=this;this.a||jp(this,function(b){var c,d,e,f,g,k,l;return _.I(function(m){switch(m.a){case 1:if(!b.isPaused()){m.C(2);break}return _.y(m,b.play(),2);case 2:c=a.ed.getPosition();d=b.getPosition();e=c-d;f=Math.abs(e);g=b.Ec();k=b.getState();if(3!==k||.05>=f)return m["return"]();var n=Math.abs(e);l=Math.min(Math.max(1+(.05>=n?0:n/(1>n?6:3))*Math.sign(e),.2),5);if(!(5<=f)){m.C(4);break}b.Wd(1);return _.y(m,b.setPosition(c),5);case 5:return m["return"]();case 4:if(g===l)return 1!==
527
+ l&&a.Fa.info("Delta "+e.toFixed(1)+" s."),m["return"]();1===l?a.Fa.info("Secondary caught up."):1>l?a.Fa.info("Secondary slowing down to catch up. Rate: "+(l.toFixed(1)+", delta: "+e.toFixed(1)+" s")):1<l&&a.Fa.info("Secondary speeding up to catch up. Rate: "+(l.toFixed(1)+", delta: "+e.toFixed(1)+" s"));b.Wd(l);_.A(m)}})})};_.K(wd,gp);gp.prototype.clear=gp.prototype.clear;gp.prototype.addMainPlayer=gp.prototype.rk;gp.prototype.addSecondaryPlayer=gp.prototype.sk;gp.prototype.setLoop=gp.prototype.$o;
528
+ gp.prototype.load=gp.prototype.load;lp.prototype.release=function(){this.j.release();this.a=new Set;this.f.clear();null!=this.h&&(clearInterval(this.h),this.h=null)};lp.prototype.destroy=function(){var a=this;return _.I(function(b){a.release();_.A(b)})};lp.prototype.getTimelineCues=function(){return Array.from(this.a.values()).sort(function(a,b){return a.startTime-b.startTime})};_.Jp.prototype.ua=function(a){return this.payload===a.payload&&this.startTime===a.startTime&&this.endTime===a.endTime&&this.payloadType===a.payloadType};_.K("clpp.text.Cue",_.Jp);_.Jp.positionAlign={LEFT:_.He,RIGHT:_.Ie,CENTER:_.nd,AUTO:"auto"};_.Dp=_.tg;_.Jp.payloadType={TEXT:_.Dp,VTT_XML:_.$g,TTML_XML:_.Eg};_.Ep=_.nd;_.qw={LEFT:_.Ee,RIGHT:_.Wf,CENTER:_.Ep,START:_.jg,END:_.oe};_.Jp.textAlign=_.qw;var Ip="ltr";_.Jp.direction={HORIZONTAL_LEFT_TO_RIGHT:Ip,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.Fp="horizontal-tb";
529
+ _.Jp.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Fp,VERTICAL_LEFT_TO_RIGHT:_.Rg,VERTICAL_RIGHT_TO_LEFT:_.Sg};_.Gp=0;_.Jp.lineInterpretation={LINE_NUMBER:_.Gp,PERCENTAGE:1};_.Hp=_.jg;_.rw={CENTER:_.nd,START:_.Hp,END:_.oe};_.Jp.lineAlign=_.rw;_.K("clpp.text.CueRegion",_.Mp);_.Kp=1;_.Mp.units={PX:0,PERCENTAGE:_.Kp,LINES:2};var Lp="";_.Mp.scrollMode={NONE:Lp,UP:"up"};_.Mp.displayAlign={BEFORE:"flex-end",CENTER:_.nd,AFTER:"flex-start"};
530
+ _.Mp.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Gd,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};Np.prototype.destroy=function(){this.a.release();this.j=!1;this.l=this.a=this.h=this.f=null;return Promise.resolve()};Np.prototype.start=function(a){var b=this;this.j?this.g.warn("Already started. Ignoring request..."):(this.j=!0,this.h=a,this.f=this.h.textTracks,this.a.on(this.f,_.Ec,function(c){return Op(b,c)}),this.a.on(this.f,pd,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.dg&&(e.mode=_.we)}}))};
531
+ Np.prototype.o=function(a){var b=new _.Jp(a.startTime,a.endTime,a.text,_.$g);if(_.N.ja(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Rg;break;case "rl":b.writingMode=_.Sg}_.N.ya(a.size)&&(b.size=a.size);if(_.N.ja(a.align))switch(a.align){case _.Ee:case _.jg:b.textAlign=_.jg;break;case _.nd:b.textAlign=_.Ep;break;case _.Wf:case _.oe:b.textAlign=_.oe}_.N.ya(a.position)&&(b.position=a.position);if(_.N.ja(a.positionAlign))switch(a.positionAlign){case _.He:b.positionAlign=_.He;break;case _.nd:b.positionAlign=
532
+ _.nd;break;case _.Ie:b.positionAlign=_.Ie}_.N.ya(a.line)&&(b.line=a.line);if(_.N.ja(a.lineAlign))switch(a.lineAlign){case _.jg:b.lineAlign=_.Hp;break;case _.nd:b.lineAlign=_.nd;break;case _.oe:b.lineAlign=_.oe}_.N.Zi(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.Gp:1);return b};var Pp={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av0?1/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.Rp={text:{mp4:_.Mc,m4s:_.Mc,m4i:_.Mc,cmft:_.Mc,vtt:_.ug,ttml:_.Pc},video:{mp4:_.Vg,m4s:_.Vg,m4f:_.Vg,m4i:_.Vg,m4v:_.Vg,cmfv:_.Vg,ts:_.Ug},audio:{mp4:_.Xc,m4s:_.Xc,m4f:_.Xc,m4i:_.Xc,m4a:_.Xc,cmfa:_.Xc,ts:_.Ug,aac:_.Tc,ec3:_.Wc,ac3:_.Vc},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.Tp.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};_.Tp.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name===a});return b.length?b[0]:null};_.Tp.prototype.hasAttribute=function(a){return null!=this.getAttribute(a)};_.Wp.prototype.getPosition=function(){return this.position};_.Wp.prototype.Be=function(){return this.ga?this.ga-this.la+1:null};_.Wp.prototype.f=_.sh(0);_.w(_.Xp,_.Wp);Zp.prototype.release=function(){this.h=this.a=this.f=null};_.cq={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,
528
533
  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,
529
534
  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,
530
535
  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,
@@ -538,122 +543,122 @@ _.md;break;case _.He:b.positionAlign=_.He}_.N.za(a.line)&&(b.line=a.line);if(_.N
538
543
  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,
539
544
  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,
540
545
  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,
541
- 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]};_.$p.prototype.qb=function(a,b){this.f[a]=b};_.K("clpp.drm.DrmEnvironment",_.$p);_.$p.prototype.setDrmSystem=_.$p.prototype.qb;_.bq.prototype.getPosition=function(){return this.a};_.bq.prototype.bb=function(){return this.f.byteLength};_.bq.prototype.seek=function(a){(0>a||a>=this.f.byteLength)&&_.cq();this.a=a};_.eq.prototype.getPosition=function(){return this.a};_.eq.prototype.bb=function(){return this.f.byteLength};_.eq.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.gq();this.a+=a};_.eq.prototype.seek=function(a){if(0>a||a>=this.f.byteLength)throw _.gq();this.a=a};_.K("clpp.utils.dataview.DataViewReader",_.eq);_.r=_.oq.prototype;_.r.N=function(a,b){var c=sq(a);this.h[c]=jw;this.f[c]=b;return this};_.r.da=function(a,b){var c=sq(a);this.h[c]=kw;this.f[c]=b;return this};_.r.stop=function(){this.a=!0};_.r.parse=function(a,b){var c=_.Qi(a);c=new _.eq(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.fq(c)&&!this.a;)this.Qf(0,c,b)};
542
- _.r.Qf=function(a,b,c){var d=b.getPosition(),e=_.jq(b),f=_.jq(b),g=!1;this.g.debug("Parsing MP4 box",_.tq(f));switch(e){case 0:e=b.bb()-d;break;case 1:e=_.lq(b),g=!0}var k=this.f[f];if(k){var l=null,m=null;this.h[f]===kw&&(m=_.jq(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.bb()&&(n=b.bb());n-=b.getPosition();b=0<n?_.nq(b,n):new Uint8Array(0);b=new _.eq(new DataView(b.buffer,b.byteOffset,b.byteLength),!1);k({parser:this,partialOkay:c||!1,version:l,flags:m,reader:b,size:e,start:d+
543
- a,headerSize:f,has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.bb()-b.getPosition()),b.skip(a)};_.K("clpp.utils.Mp4Parser",_.oq);_.oq.typeToString=_.tq;_.oq.allData=_.rq;_.oq.sampleDescription=_.qq;_.oq.children=_.pq;_.oq.prototype.parseNext=_.oq.prototype.Qf;_.oq.prototype.parse=_.oq.prototype.parse;_.oq.prototype.stop=_.oq.prototype.stop;_.oq.prototype.fullBox=_.oq.prototype.da;_.oq.prototype.box=_.oq.prototype.N;_.oq.headerSize=_.uq;var jw=0,kw=1;_.K("clpp.utils.FairplayUtils",vq);vq.parseFairPlayResponse=_.Bq;vq.formatFairPlayRequest=_.Aq;vq.createFairplayPayload=zq;vq.extractContentId=_.xq;vq.extractExtXKeyUri=wq;_.K(yd,Cq);var Oq=new _.M(yd),Eq="PRODUCTION",Fq="STAGING",Gq="DEMO",Hq="TEST",lw={PRODUCTION:Eq,STAGING:Fq,DEMO:Gq,TEST:Hq};Cq.Environment=lw;Cq.WidevineCertificates={V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"};
544
- for(var Jq="/license-proxy-widevine/cenc/",Kq="/license-proxy-headerauth/drmtoday/RightsManager.asmx",Lq="/license-server-fairplay/",Xq={"00000":"Success","01000":"General Internal Error","02000":"General Request Error","03000":"General Request Authentication Error",10001:"Bad Request",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",
545
- 42E3:"General Playready error",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"},mw={video:[Ra,Ta,Sa,_.Db,_.Cb],audio:[Ra,
546
- Ta,Sa,_.Db,_.Cb]},nw={video:["3000","2000","150"],audio:["2000","150"]},ow=_.v(Object.keys(lw)),pw=ow.next();!pw.done;pw=ow.next()){var Dq=pw.value,qw=Ga;Dq!==Eq&&(qw+="_"+Dq);var rw=new _.$p(qw),sw=null;switch(Dq){case Eq:case Fq:case Gq:sw=_.Zp("V2");break;case Hq:sw=null}rw.qb(_.Md,{licenseUrl:Mq(_.Md),videoRobustness:mw.video,audioRobustness:mw.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:sw,modifiers:{licenseRequest:_.Rq,licenseResponse:_.Wq}});rw.qb(_.Id,
547
- {licenseUrl:Mq(_.Id),certificateUrl:Iq()+"/license-server-fairplay/cert/",modifiers:{licenseRequest:_.Tq,licenseResponse:_.Uq,extractContentId:_.Pq,certificateRequest:_.Vq}});rw.qb(_.Kd,{licenseUrl:Mq(_.Kd),videoRobustness:nw.video,audioRobustness:nw.audio,modifiers:{licenseRequest:Sq}});_.Vn(rw)};_.$q.prototype.value=function(){void 0===this.a&&(this.a=this.f());return this.a};_.r=ar.prototype;_.r.getStatus=function(){return this.a};_.r.forEach=function(a){this.a&&a(this.a,tw.value())};_.r.get=function(a){if(this.has(a))return this.a};_.r.has=function(a){var b=tw.value();return this.a&&Ri(a,b)?!0:!1};_.r.entries=function(){};_.r.keys=function(){};_.r.values=function(){};var tw=new _.$q(function(){return Xi(new Uint8Array([0]))});var cr=new _.$q(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.Le],[HTMLMediaElement.HAVE_CURRENT_DATA,_.Ke],[HTMLMediaElement.HAVE_FUTURE_DATA,ed],[HTMLMediaElement.HAVE_ENOUGH_DATA,fd]])});_.r=er.prototype;_.r.mf=function(a){this.f=a};_.r.ae=function(a){var b=this.a;b&&b!==a&&hr(b,null);return(this.a=a)?hr(a,this.f):Promise.resolve()};_.r.yf=function(){return this.a};_.r.fc=function(a,b){_.Vh("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new fr(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.r.$d=function(){return Js};fr.prototype.createMediaKeys=function(){var a=new gr(this.keySystem);return Promise.resolve(a)};
548
- fr.prototype.getConfiguration=function(){_.Vh("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};gr.prototype.createSession=function(a){a=void 0===a?qg:a;this.g.debug("Creating Apple MediaKeys Session");if(a!==qg)throw new TypeError("Session type "+a+ba);return new ir(this.h,"__session_"+this.j++)};gr.prototype.setServerCertificate=function(){this.g.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.w(ir,_.Di);_.r=ir.prototype;
549
- _.r.generateRequest=function(a,b){var c=this;if(this.l)return Promise.reject(Fb);this.g.debug("generateRequest");this.h=new _.nm;try{var d=this.o.createSession(_.Ug,_.Qi(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,eh,function(e){var f=c.keyStatuses.getStatus();c.g.debug("Received Key Message in "+c.sessionId);c.h&&(c.h.resolve(),c.h=null);e=new _.Q(_.Re,{messageType:void 0===f||f===jg?Fe:Ee,message:Xi(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,ch,function(e){c.g.debug("onWebkitKeyAdded_",
550
- e);c.f&&(jr(c,"usable"),c.f.resolve(),c.f=null)});this.j.on(d,dh,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===jg)c.g.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.g.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.f)c.f.reject(e),
551
- c.f=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:jr(c,"output-not-allowed");break;default:jr(c,_.Be)}});jr(this,jg)}catch(e){this.h.reject(e)}return this.h};_.r.load=function(){this.g.debug(_.Je);return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.r.update=function(a){if(this.l)return Promise.reject(Fb);this.g.debug(Jg);this.f=new _.nm;try{this.a.update(_.Qi(a))}catch(b){this.f.reject(b)}return this.f};
552
- _.r.close=function(){if(this.l)return this.closed;this.g.info("Closing Key Session "+this.sessionId);this.l=!0;try{this.a.close(),this.closed.resolve(),_.zi(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.r.remove=function(){this.g.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};kr.prototype.a=function(){return Js};kr.prototype.f=function(){return!!window.WebKitMediaKeys};
553
- kr.prototype.create=function(){return new er};_.r=lr.prototype;_.r.mf=function(a){this.a=a};_.r.ae=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(fb)};_.r.yf=function(){return this.a&&this.a.mediaKeys};
554
- _.r.fc=function(a,b){var c=this;this.g.info("Requesting media key system access for",a,b.map(function(d){return Object.assign({},d,{drmInfos:d.drmInfos.map(function(){return"_anonymous_"})})}));return navigator.requestMediaKeySystemAccess(a,b)["catch"](function(d){c.g.info("Failed to request media key system access for "+(a+"."),d);return Promise.reject(d)})};_.r.$d=function(){return ns};mr.prototype.a=function(){return ns};
555
- mr.prototype.f=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};mr.prototype.create=function(){return new lr};_.r=nr.prototype;_.r.mf=function(a){this.a=a};_.r.ae=function(a){_.Vh("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(fb);var b=this.f;b&&b!==a&&sr(b,null);(this.f=a)&&sr(a,this.a);return Promise.resolve()};_.r.yf=function(){return this.f};_.r.fc=function(a,b){_.Vh("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.Sg);c=d.length?d[0]:document.createElement(_.Sg)}var e=new or(this.h,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
556
- _.r.$d=function(){return uw};or.prototype.createMediaKeys=function(){return Promise.resolve(new pr(this.h,this.a))};or.prototype.getConfiguration=function(){return this.f};pr.prototype.createSession=function(a){a=void 0===a?qg:a;if(a!==qg&&a!==_.nf)throw new TypeError("Session type "+a+ba);if(!this.a)throw a=Error("Media element is missing."),a.name=Xa,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new tr(this.h,this.a,this.o,a);this.j.push(a);return a};
557
- pr.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.w(tr,_.Di);_.r=tr.prototype;_.r.ready=function(){_.Vh("WebkitEmeManager.MediaKeySession.ready");rr(this,"usable");this.a&&this.a.resolve();this.a=null};_.r.generateRequest=function(a,b){_.Vh("WebkitEmeManager.MediaKeySession.generateRequest");return vr(this,b,null)};_.r.load=function(a){_.Vh(Wb);return this.l===_.nf?vr(this,null,a):Promise.reject(Error(mb))};_.r.update=function(a){_.Vh(Wb);var b=new _.nm;wr(this,b,a);return b};
558
- _.r.close=function(){_.Vh("WebkitEmeManager.MediaKeySession.close");if(this.l!==_.nf){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=ur(this,"cancelKeyRequest");try{this.j[a](this.h,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.r.remove=function(){_.Vh("WebkitEmeManager.MediaKeySession.remove");return this.l!==_.nf?Promise.reject(Error(mb)):this.close()};xr.prototype.a=function(){return uw};
559
- xr.prototype.f=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};xr.prototype.create=function(){return new nr};_.r=yr.prototype;_.r.mf=function(){};_.r.ae=function(a){_.Vh("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.r.yf=function(){return null};_.r.fc=function(){_.Vh("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.r.$d=function(){return vw};zr.prototype.a=function(){return vw};zr.prototype.f=function(){return!0};zr.prototype.create=function(){return new yr};_.K(Bd,Ar);var Cr=new _.M(Bd),Br=[];Br=[new mr,new kr,new xr,new zr].filter(function(a){return a.f()});var ns="STANDARD",Js="APPLE",uw="WEBKIT",vw="NOP";Ar.Apis={STANDARD:ns,APPLE:Js,WEBKIT:uw,NOP:vw};_.r=_.Er.prototype;_.r.Pa=function(a,b){var c=this.aa(a,b);return 1!==c.length?null:c[0]};_.r.gc=_.nh(2);_.r.aa=function(a,b){return Array.from(a.childNodes).filter(function(c){return c instanceof Element&&c.tagName===b})};_.r.Pc=_.nh(4);_.r.getAttributeNS=function(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null};_.r.va=function(a){return Array.from(a.childNodes).every(function(b){return b.nodeType===Node.TEXT_NODE||b.nodeType===Node.CDATA_SECTION_NODE})?a.textContent.trim():null};
560
- _.r.Z=_.nh(6);_.r.Je=function(a,b){var c=new DOMParser,d=null;try{d=c.parseFromString(a,_.tg)}catch(e){}if(!d)return null;c=d.documentElement;return b&&c.tagName!==b||0<d.getElementsByTagName("parsererror").length?null:c};_.r.vf=_.nh(8);_.r.sd=_.nh(10);_.r.Tf=_.nh(12);_.r.removeChild=function(a,b){a.removeChild(b)};_.r.Ff=_.nh(14);_.r.Ef=_.nh(16);_.r.Uf=_.nh(18);_.r.Pe=_.nh(20);_.Lr=new _.Er;_.ww=new _.M("clpp.xml.Parser");_.Kn="dom";var Hr;_.Pr=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];Hr=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.w(Gr,Fr);_.w(_.Kr,Fr);Rr.prototype.j=function(a){if(1<a.version)_.Qh("Unrecognized PSSH version found!");else{var b=_.Nm(_.nq(a.reader,16)),c=[];if(0<a.version)for(var d=_.jq(a.reader),e=0;e<d;++e){var f=_.Nm(_.nq(a.reader,16));c.push(f)}d=_.jq(a.reader);a.reader.skip(d);this.h.push.apply(this.h,c);this.f.push(b);this.a.push({start:a.start,end:a.start+a.size-1});a.reader.getPosition()!==a.reader.bb()&&_.Qh("Mismatch between box size and data size!")}};_.r=_.Vr.prototype;_.r.destroy=function(){var a=this;return _.I(function(b){if(1==b.a){if(a.j)return _.x(b,a.Ba,0);a.j=!0;return _.x(b,Xr(a),4)}a.Ba.resolve();return b.C(0)})};_.r.keySystem=function(){return this.a?_.Bs(this.a.keySystem):""};_.r.getDrmInfo=function(){return this.a};_.r.mj=function(a){var b=this;return _.I(function(c){return b.H&&b.L===Yr?c["return"]():!b.f.delayLicenseRequestUntilPlayed||b.D&&!b.D.paused||b.Va?_.x(c,Ps(b,a),0):(b.ha.push(a),c.C(0))})};
561
- _.r.ij=function(a){var b=this,c=a.target;this.g.info("Key status changed for session",c.sessionId);var d=this.h.get(c),e=!1;c.keyStatuses.forEach(function(g,k){if(typeof k===_.lg){var l=k;k=g;g=l}if(Is(b.a.keySystem)&&16===k.byteLength&&_.jj()){l=_.Wi(k);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!==jg&&(d.loaded=!0);d&&d.zb&&d.zb.resolve();"expired"===g&&(e=!0);l=_.Qi(k);var q=_.Nm(l);"00"===q&&d&&d.keyId?q=d.keyId:
562
- b.a.keySystem.startsWith(_.Id)&&16!==l.byteLength&&(q=_.R.fromCharCode(l));(l=q||"")?b.g.info(Za+q+"': "+g):b.g.info("Key status global keys: "+g);b.o.set(l,g);d&&!d.keyId&&b.h.forEach(function(t,u){u===c||t.keyId!==q||t.loaded||(t.loaded=!0)})});d&&d.loaded&&d.Db.forEach(function(g){b.o.get(g)===jg&&(b.g.warn(Za+g+ea),b.o.set(g,_.kf))});for(a=0;a<this.a.initData.length;a++){var f=this.a.initData[a];f.keyId&&this.o.get(f.keyId)===jg&&_.Om(f.initData,d.initData)&&(this.g.warn(Za+f.keyId+ea),this.o.set(f.keyId,
563
- _.kf))}a=c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.Hc&&(this.g.debug("Session has expired",c.sessionId),(a=this.h.get(c))&&a.ud&&a.ud.stop(),this.h["delete"](c),c.close()["catch"](function(){}));Ds(this)&&(this.I.resolve(),1!==this.h.size||e?this.ba.ia(.5):Tr(this))};var Yr=0,Sr=3;_.Y={yc:function(a,b){return a.filter(function(c){return c.name===b})},Sj:function(a){var b=/^[a-zA-Z0-9_-]+$/,c=new Set;a.forEach(function(d){var e=_.T(d,"VALUE"),f=_.T(d,_.gb),g=_.T(d,"IMPORT"),k=_.T(d,"QUERYPARAM");if(1!==[f,g,k].filter(Boolean).length||f&&null==e)throw new _.O(_.P,4,4044,{message:"Invalid tag.",text:d.toString()});d=f||g||k;if(c.has(d))throw new _.O(_.P,4,4044,'EXT-X-DEFINE redefined variable "'+d+'".');if(!b.test(d))throw new _.O(_.P,4,4044,'EXT-X-DEFINE invalid variable name "'+
564
- d+'".');c.add(d)})},Ag:function(a,b){var c=Array.isArray(b)?b:[b];return a.filter(function(d){d=_.Qp(d,_.Kb);return c.includes(d)})},Tc:function(a,b){return a.some(function(c){return c.name===b})},ab:function(a,b,c){c=void 0===c?{}:c;a=a.find(function(d){return d.name===b})||null;if(!a&&c.required)throw new _.O(_.P,4,4024,{missingTag:b});return a},Gi:function(a,b){return _.Y.ab(a,b,{required:!0})},um:function(a,b,c){c=void 0===c?0:c;return(a=_.Y.ab(a,b))?Number(a.value):c},Rp:function(a,b,c){return a.filter(function(d){var e=
565
- d.getAttribute(_.Kb);d=d.getAttribute(_.Qa);return e.value===b&&d.value===c})},ro:function(a){var b=_.Y.ab(a,"EXT-X-TILES");if(!b)return{se:1,Re:1,durationPerTile:null};a=_.T(b,"LAYOUT")||"1x1";b=_.T(b,_.Ia);a=_.Up(a);return{se:a.se,Re:a.Re,durationPerTile:b?Number(b):null}},Mm:function(a){return/^#(?!EXT)/m.test(a)},Sm:function(a){return/^(#EXT)/.test(a)},Wm:function(a,b){Array.isArray(a)||(a=[a]);a.forEach(function(c){for(var d=_.v(_.Y.Xf(c)),e=d.next();!e.done;e=d.next())b(e.value,c)})},Xf:function(a){var b=
566
- new Set;a.variants.forEach(function(c){c.audio&&b.add(c.audio);c.video&&b.add(c.video)});a.textStreams.forEach(function(c){return b.add(c)});a.thumbStreams.forEach(function(c){return b.add(c)});return Array.from(b)},Hm:function(a){return a.some(function(b){return _.Y.Tc(b.$,"EXT-X-ENDLIST")})},qk:function(a){return _.Y.Xf(a).filter(_.Y.Pi)},vj:function(a){if(_.Y.ab(a,"EXT-X-ENDLIST"))return _.Ub;a=_.Y.ab(a,"EXT-X-PLAYLIST-TYPE");if(!a)return"LIVE";if(a.value===_.Ub)return _.Ub;if("EVENT"===a.value)return"EVENT";
567
- throw new _.O(_.P,4,4044,"Invalid EXT-X-PLAYLIST-TYPE value: "+a.value);},di:function(a){a={AUDIO:_.Sc,VIDEO:_.Sg,SUBTITLES:_.Cn,"CLOSED-CAPTIONS":_.Cn}[a.toUpperCase()];if(!a)throw new _.O(_.P,4,4044,"EXT-X-MEDIA tag has an invalid TYPE attribute.");return a},Nl:function(a){var b=_.Qp(a,_.Kb).toUpperCase();if(_.Y.di(b)!==_.Cn)return null;a=a.getAttribute("FORCED");a=!(!a||!a.value||"YES"!==a.value.toUpperCase());var c=_.og;b===_.sa&&(c=_.gd);a&&(c=_.se);return c},rj:function(a,b,c){c=void 0===c?
568
- !1:c;var d=0,e=null;if(a){d=a.split("@");a=Number(d[0]);if(0>=a)throw new _.O(_.P,4,4044,"Byte range length must be positive.");if(d[1]){if(d=Number(d[1]),0>d)throw new _.O(_.P,4,4044,"Byte range start byte must not be negative.");}else{if(c)throw new _.O(_.P,4,4044,"Invalid byte range, offset is required but missing.");if(null==b)throw new _.O(_.P,4,4044,"Invalid byte range, cannot calculate offset based on previous byte ranges.");d=b+1}e=d+a-1}return{la:d,fa:e}},tj:function(a,b){var c=_.Y.ab(a,
569
- "EXT-X-BYTERANGE");return _.Y.rj(c?c.value:null,b)},uj:function(a){a=_.Y.Gi(a,"EXTINF").value.split(",");var b=Number(a[0]);if(isNaN(b))throw new _.O(_.P,4,4044,"#EXTINF must be a number.");return{duration:b,title:a[1]||null}},wj:function(a,b){function c(f){return null==f?null:Number(f)}b=void 0===b?{}:b;var d={Nh:!1,vk:!1,wk:null,Im:null,xj:null},e=_.Y.ab(a,"EXT-X-SERVER-CONTROL",{required:b.Ij});if(!e)return d;d.Nh="YES"===_.T(e,"CAN-BLOCK-RELOAD");d.vk="YES"===_.T(e,"CAN-SKIP-DATERANGES");d.wk=
570
- c(_.T(e,"CAN-SKIP-UNTIL"));d.Im=c(_.T(e,"HOLD-BACK"));d.xj=c(_.T(e,"PART-HOLD-BACK",void 0,{required:b.Ij}));return d},sj:function(a,b,c){c=void 0===c?!1:c;a=_.T(a,"BYTERANGE");return _.Y.rj(a,b,c)},qo:function(a){var b=_.Y.yc(a,_.Ka),c=_.Y.yc(a,_.La);a=_.Y.yc(a,"EXT-X-IMAGE-STREAM-INF");return{Xc:{Hh:_.Y.Ag(b,[_.ja,_.Tb]),closedCaptions:_.Y.Ag(b,_.sa),Yo:_.Y.Ag(b,_.Bb)},Se:c,Dg:a}},Pl:function(a,b){var c=_.Y.tj(a.$,null);return new _.Tp(0,0,0,function(){return[a.a]},c.la,c.fa,0,b)},Bm:function(a){var b=
571
- a.S;a=b[0].startTime;b=b[b.length-1].endTime;return{Bc:a,Cf:b,duration:b-a}},ym:function(a){var b=Infinity,c=Infinity;_.Y.qk(a).forEach(function(d){d=_.Y.Bm(d);b=Math.min(b,d.Bc);c=Math.min(c,d.duration)});return{Bc:b,duration:c}},Pi:function(a){return a.type===_.Sc||a.type===_.Sg},$l:function(a){return a.filter(_.Y.Pi)},wm:function(a){return a.map(function(b){return _.Y.ym(b).duration}).reduce(function(b,c){return b+c},0)},om:function(a,b){return a&&b?_.Us(a.drmInfos,b.drmInfos)?_.Ts(a.drmInfos,
572
- b.drmInfos):null:a?a.drmInfos:b?b.drmInfos:null},Rl:function(a,b){return(b?b.zc():"")+" - "+(a?a.zc():"")},ei:function(a){return(a.video?a.video.bd:"")+" - "+(a.audio?a.audio.bd:"")},po:function(a,b,c,d,e){if(b===_.Ub)return{delay:0,Qe:0};b=_.Y.ab(a,"EXT-X-PART-INF");if(c&&b)return e=Number(_.Qp(b,"PART-TARGET")),null!=d?{delay:d,Qe:e}:{delay:_.Y.wj(a,{Ij:!0}).xj,Qe:e};a=_.Y.Gi(a,"EXT-X-TARGETDURATION");a=Number(a.value);e=e||a;return null!=d?{delay:d,Qe:e}:{delay:3*a,Qe:e}},qf:function(a,b){return a+
573
- ":"+b},bp:function(a){var b=_.Y.qf,c=new Map;a.forEach(function(d){var e=b(d.Sc(),d.a());c.has(e)?(e=c.get(e),e.includes(d)||e.push(d)):c.set(e,[d])});return c},Bi:function(a){return _.ro(a||_.Hg)},jo:function(a){var b=new Map;a=_.v(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=_.T(c,_.$a);d=_.Y.Bi(d);var e=_.Qp(c,_.Qa);c=_.Qp(c,"INSTREAM-ID");b.has(e)||b.set(e,new Map);b.get(e).set(c,d)}return b},Vl:function(a){return a.filter(function(b){return"mp4a.40.34"!==b})},so:function(a){if(!a.hasAttribute("FRAME-RATE")&&
574
- !a.hasAttribute(_.zb))return null;var b=_.T(a,"FRAME-RATE");a=_.T(a,_.zb);var c=_.v(a?a.split("x"):[null,null]);a=c.next().value;c=c.next().value;return{frameRate:hl(b),width:hl(a),height:hl(c)}},Vm:function(a){return a.name!==_.Ka?!0:_.T(a,_.Kb)===_.Bb},ko:function(a,b,c,d,e){var f=e&&e.Oe,g=e&&e.schemeIdUri,k=_.T(a,"ID");f=_.T(a,"START-DATE")||f;if(null===k||!f)return _.Y.g.warn("Invalid EXT-X-DATERANGE missing mandatory ID or required START-DATE attribute, ignoring the EXT-X-DATERANGE tag.",a),
575
- null;b=d?c-b:-b;d=new Date(f);c=d.getTime()/1E3+b;k={id:k,startTime:c,startDate:d,Oe:f};f=hl(_.T(a,_.Ia));void 0!==f&&0<=f&&(k.duration=f);f=hl(_.T(a,"PLANNED-DURATION"));void 0!==f&&0<=f&&(k.plannedDuration=f);g=_.T(a,"CLASS")||g||null;null!==g&&(k.schemeIdUri=g);f=(f=_.T(a,"END-DATE"))?new Date(f):null;null!==f&&f.getTime()>=d.getTime()&&(k.endDate=f);d=_.Y.io(a)||{};(f=_.T(a,"CUE"))&&(d.CUE=f.split(","));Jk(g)&&(f=_.Y.no(a))&&(d=Object.assign(d,f));_.N.Wb(d)&&(k.customAttributes=d);if(_.N.Ki(e,
576
- k))return _.Y.g.warn("EXT-X-DATERANGE augmented and previous values differ.Ignoring the EXT-X-DATERANGE tag.",a),null;k=_.N.ta(e,k);if(Jk(g)&&!Kk(k.customAttributes))return _.Y.g.warn("Invalid EXT-X-DATERANGE Interstitial attributes X-ASSET-URI, X-ASSET-LIST"),null;var l;k.endDate?l=k.endDate.getTime()/1E3+b:k.duration?l=c+k.duration:k.plannedDuration?l=c+k.plannedDuration:l=c;k.endTime=l;k.type=_.xe;return k},io:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.v(b);for(var c=b.next();!c.done;c=
577
- b.next())c=c.value,c.name.trim().startsWith("X-")&&(a[c.name]=c.value);return _.N.Wb(a)?a:null},no:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.v(b);for(var c=b.next();!c.done;c=b.next())switch(c=c.value,c.name){case bc:a[bc]=c.value;break;case ac:a[ac]=c.value;break;case hc:a[hc]=hl(c.value);break;case dc:a[dc]=hl(c.value);break;case "X-SNAP":a["X-SNAP"]=c.value.split(",");break;case gc:a[gc]=c.value.split(",")}return _.N.Wb(a)?a:null},oi:function(a,b){if(!a)return null;var c=a.bd;
578
- return b.find(function(d){return d.zc()===c})||null},xi:function(a){return(a=_.T(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}};_.Y.g=new _.M("clpp.hls.Utils");var ct;_.Zs.prototype.ua=function(a){return this.type===a.type&&this.channelsCount===a.channelsCount&&this.frameRate===a.frameRate&&this.trickPlay===a.trickPlay&&this.kind===a.kind&&this.label===a.label&&this.language===a.language&&this.mimeType===a.mimeType&&Li(this.roles,a.roles)&&Li(this.accessibility,a.accessibility,ft)};_.Zs.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.K("clpp.Track",_.Zs);
579
- _.Zs.prototype.toString=_.Zs.prototype.toString;_.K("clpp.Rendition",_.gt);_.xw=1;_.bt=_.Sg;_.X=_.Sc;_.at=_.rg;ct=_.Te;_.yw={VIDEO:_.bt,AUDIO:_.X,TEXT:_.at,METADATA:ct};_.Zs.Type=_.yw;ht.prototype.h=function(a,b){var c=this,d,e,f,g,k,l,m;return _.I(function(n){switch(n.a){case 1:return d=null,_.F(n,2),_.x(n,nt(c,a),4);case 4:d=n.f;_.G(n,3);break;case 2:return e=_.H(n),c.g.warn("Failed to fetch playlist in order metadata from HLS playlist.",e.message),n["return"](Promise.resolve({}));case 3:f={};_.F(n,5);if(!b.enableHlsVideoTrackInfo){n.C(7);break}return _.x(n,kt(c,d,a),8);case 8:g=n.f,f.renditions=g.renditions,f.mimeType=g.mimeType;case 7:_.G(n,6);break;case 5:k=_.H(n),c.g.warn("Failed to parse video metadata from HLS playlist.",
580
- k.message);case 6:return _.F(n,9),_.x(n,mt(d),11);case 11:l=n.f;f.Xc=l;_.G(n,10);break;case 9:m=_.H(n),c.g.warn("Failed to parse metadata from HLS playlist.",m.message);case 10:return n["return"](f)}})};_.tt=[];_.r=_.wt.prototype;_.r.qg=function(){return!0};_.r.gm=function(a){return this.getVideoTracks().find(function(b){return _.N.ua(b,a,a&&Object.keys(a))})};_.r.cm=function(a){return this.getAudioTracks().find(function(b){return _.N.ua(b,a,a&&Object.keys(a))})};_.r.em=function(a){return this.ra().find(function(b){return _.N.ua(b,a,a&&Object.keys(a))})};_.r.fm=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.N.ua(b,a,a&&Object.keys(a))})};
581
- _.r.bm=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.N.ua(b,a,a&&Object.keys(a))})};_.r.dm=function(a){return this.ra().flatMap(function(b){return b.renditions}).find(function(b){return _.N.ua(b,a,a&&Object.keys(a))})};_.K("clpp.TrackManager",_.wt);_.wt.prototype.isAbrEnabled=_.wt.prototype.ya;_.wt.prototype.addTextTrack=_.wt.prototype.addTextTrack;_.wt.prototype.findTextRendition=_.wt.prototype.dm;_.wt.prototype.findAudioRendition=_.wt.prototype.bm;
582
- _.wt.prototype.findVideoRendition=_.wt.prototype.fm;_.wt.prototype.findTextTrack=_.wt.prototype.em;_.wt.prototype.findAudioTrack=_.wt.prototype.cm;_.wt.prototype.findVideoTrack=_.wt.prototype.gm;_.wt.prototype.setTextRendition=_.wt.prototype.Nb;_.wt.prototype.setAudioRendition=_.wt.prototype.Mb;_.wt.prototype.setVideoRendition=_.wt.prototype.Bb;_.wt.prototype.setTextTrack=_.wt.prototype.ib;_.wt.prototype.setAudioTrack=_.wt.prototype.La;_.wt.prototype.setVideoTrack=_.wt.prototype.Ob;
583
- _.wt.prototype.getTextTrack=_.wt.prototype.xa;_.wt.prototype.getAudioTrack=_.wt.prototype.qa;_.wt.prototype.getVideoTrack=_.wt.prototype.Qa;_.wt.prototype.getLoadingTextRendition=_.wt.prototype.Vb;_.wt.prototype.getLoadingAudioRendition=_.wt.prototype.Ub;_.wt.prototype.getLoadingVideoRendition=_.wt.prototype.Fb;_.wt.prototype.getTextRendition=_.wt.prototype.gb;_.wt.prototype.getAudioRendition=_.wt.prototype.Za;_.wt.prototype.getVideoRendition=_.wt.prototype.sa;_.wt.prototype.getTextTracks=_.wt.prototype.ra;
584
- _.wt.prototype.getAudioTracks=_.wt.prototype.getAudioTracks;_.wt.prototype.getVideoTracks=_.wt.prototype.getVideoTracks;_.wt.prototype.canSelectVideoTracks=_.wt.prototype.qg;_.w(xt,_.wt);_.r=xt.prototype;_.r.qg=function(){return!_.oj()};
585
- _.r.Rg=function(a,b){var c=this,d,e,f,g,k,l,m,n,p,q,t,u,y,C,D,B,E,z,L;return _.I(function(J){if(1==J.a){if(!b)return c.g.warn(ib),J["return"]();d=b.track;if(!d)return c.g.warn(lb),J["return"]();e=a===_.X;f=a===_.bt;g=a===_.at;k=e||f;l=a===_.X?String(_.xw++):d.id;m=et(a,l,d);e&&c.A.set(l,d);n=Mt(d);if(g){if(d.kind===_.Te)return J["return"]();void 0!==d.id?p=c.o[d.id]:(q=Object.values(c.o),p=q.find(function(V){return Kt(c,m,V,a)}));m.kind&&"captions"===m.kind&&(m.mimeType=_.Kc);p&&(m.src=p.url,m.mimeType=
586
- p.mimeType)}else if(t=c.h.find(function(V){return V.type===a&&_.N.ua(V,m,["kind","label","language"])}))return e?c.A.set(t.id,d):t.id=d.id,n&&(c.g.debug(Gb+a+" track active"),c.a.set(a,t)),c.g.debug("Track from event seems to already exists, flipped native track to",d),J["return"]();_.F(J,2);u=new _.gt(m.id,m);m.renditions.push(u);c.h.push(m);y=c.m.getConfiguration().safari;return Bt(c,a,y)?_.x(J,Dt(c,m,y),5):Ct(c,a,y)?_.x(J,Et(c,m,y),5):J.C(5)}if(2!=J.a)return c.g.debug(a+" Track added",m),c.m.trigger(new _.Q(_.Ag)),
587
- C=Ht(c,a).length,D=b.target,B=!(!D||!D.length),E=D&&D.length||0,z=function(){c.g.debug(Gb+a+" track active. Native track active: "+(n+". Number of tracks: ")+C,d);c.a.set(a,m)},n?z():1===C&&k&&(f?z():B&&1!==E||z()),_.G(J,0);L=_.H(J);c.g.error("Error while converting track data",L);_.A(J)})};
588
- _.r.Tg=function(a,b){var c=this;if(b){var d=b.track;if(!d)this.g.warn(lb);else if(a===_.at&&d.kind!==_.Te){var e=this.h.find(function(f){return Kt(c,f,d,a)});e&&(this.h.splice(this.h.indexOf(e),1),(this.a.get(a)||null)===e&&(this.a.set(a,null),Ot(this)),this.g.debug(a+" Track removed, id: ",e.id))}}else this.g.warn(ib)};
589
- _.r.Sg=function(a,b){var c=this;this.g.debug(a+" Track changed",b);a===_.at&&Ot(this);var d=Gt(this,a);if(d)for(var e={hd:0};e.hd<d.length;e={hd:e.hd},++e.hd)if(Mt(d[e.hd])){if(e=this.h.find(function(f){return function(g){return Kt(c,g,d[f.hd],a)}}(e)))this.a.set(a,e),this.g.debug("Track change detected, id:",e.id),e===this.l.get(a)&&this.l.set(a,null),a===_.X?this.m.trigger(new _.Q(_.Zc)):a===_.at&&this.m.trigger(new _.Q(_.ug));break}};_.r.initialize=function(a){this.m=a;this.j=new ht(a.getNetworkEngine())};
590
- _.r.load=function(){this.B=!1;var a=Ft(this,_.at);a&&(this.f.on(a,_.Ec,this.K),this.f.on(a,Rf,this.M),this.f.on(a,od,this.L));if(a=Ft(this,_.X))this.f.on(a,_.Ec,this.H),this.f.on(a,Rf,this.J),this.f.on(a,od,this.I);if(a=Ft(this,_.bt))this.f.on(a,_.Ec,this.P),this.f.on(a,Rf,this.W),this.f.on(a,od,this.T);this.f.one(this.m,fd,this.wl.bind(this))};_.r.release=function(){this.B=!0;this.h=[];this.o={};this.a.clear();this.l.clear();this.A.clear();this.f.release()};
591
- _.r.destroy=function(){this.release();this.m=null};_.r.getVideoTracks=function(){return Ht(this,_.bt)};_.r.getAudioTracks=function(){return Ht(this,_.X)};_.r.ra=function(){return Ht(this,_.at)};_.r.sa=function(){var a=this,b=this.a.get(_.bt)||null;if(!b)return null;if(this.w){var c=b.renditions.find(function(d){return d.width===a.w.width&&d.height===a.w.height});if(c)return c}return b.renditions[0]||null};_.r.Za=function(){return It(this,_.X)};_.r.gb=function(){return It(this,_.at)};
592
- _.r.Fb=function(){return Jt(this,_.bt)};_.r.Ub=function(){return Jt(this,_.X)};_.r.Vb=function(){return Jt(this,_.at)};_.r.Qa=function(){return this.a.get(_.bt)||null};_.r.qa=function(){return this.a.get(_.X)||null};_.r.xa=function(){return this.a.get(_.at)||null};_.r.Ob=function(a){Lt(this,_.bt,a)};_.r.La=function(a){Lt(this,_.X,a)};_.r.ib=function(a){Lt(this,_.at,a)};_.r.Bb=function(a){Lt(this,_.bt,a&&a.track)};_.r.Mb=function(a){Lt(this,_.X,a&&a.track)};_.r.Nb=function(a){Lt(this,_.at,a&&a.track)};
593
- _.r.addTextTrack=function(a){var b=this,c;return _.I(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.D++,b.o[c]=a,yt(b,a,c),d.C(0)):_.x(d,zt(b,a),0)})};_.r.ya=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};
594
- _.r.wl=function(){var a=this,b,c,d;return _.I(function(e){if(1==e.a){b=a.m.getConfiguration();Nt(a,_.X,b.preferredAudioLanguage);c=Gt(a,_.at);if(c.some(function(f){return Mt(f)}))return e.C(2);d=Ft(a,_.at);return _.x(e,new Promise(function(f){a.f.one(d,od,f);(new _.gj(f)).ia(1)}),2)}if(a.B)return e["return"]();Nt(a,_.at,b.preferredTextLanguage);_.A(e)})};xt.prototype.isAbrEnabled=xt.prototype.ya;xt.prototype.addTextTrack=xt.prototype.addTextTrack;xt.prototype.setTextRendition=xt.prototype.Nb;
595
- xt.prototype.setAudioRendition=xt.prototype.Mb;xt.prototype.setVideoRendition=xt.prototype.Bb;xt.prototype.setTextTrack=xt.prototype.ib;xt.prototype.setAudioTrack=xt.prototype.La;xt.prototype.setVideoTrack=xt.prototype.Ob;xt.prototype.getTextTrack=xt.prototype.xa;xt.prototype.getAudioTrack=xt.prototype.qa;xt.prototype.getVideoTrack=xt.prototype.Qa;xt.prototype.getLoadingTextRendition=xt.prototype.Vb;xt.prototype.getLoadingAudioRendition=xt.prototype.Ub;xt.prototype.getLoadingVideoRendition=xt.prototype.Fb;
596
- xt.prototype.getTextRendition=xt.prototype.gb;xt.prototype.getAudioRendition=xt.prototype.Za;xt.prototype.getVideoRendition=xt.prototype.sa;xt.prototype.getTextTracks=xt.prototype.ra;xt.prototype.getAudioTracks=xt.prototype.getAudioTracks;xt.prototype.getVideoTracks=xt.prototype.getVideoTracks;xt.prototype.canSelectVideoTracks=xt.prototype.qg;var Pt=["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"];var zw=["abort",ed,fd,ke,"emptied",ne,_.pe,_.qe,"interruptbegin","interruptend",_.Ke,_.Le,Me,"mozaudioavailable",_.lf,_.pf,_.Af,_.Mf,_.Of,_.$f,_.ag,gg,"suspend",_.zg,"volumechange",_.$g,_.ah,_.Tf,fh,eh,ch,dh];_.w(_.Rt,_.Di);_.r=_.Rt.prototype;_.r.init=function(a,b){this.configuration=this.Va=b;this.D=a;this.log.info("Initializing Player surface");var c=this.D.getMedia();this.log.info("Attaching media element listeners");for(var d=_.v(zw),e=d.next();!e.done;e=d.next())e=e.value,this.M.on(c,e,this.Yj,e!==_.qe);this.Yd||(this.Yd=this.fi());this.Yd.initialize(this);this.D.showMediaElement()};_.r.release=function(){this.T&&(this.T.destroy(),this.T=null);return Promise.resolve()};
597
- _.r.destroy=function(){this.M.release();return this.Wd.release()};_.r.canPlay=function(a,b){return _.Yh[this.namespace()].canPlay(a,b)};_.r.getTimeline=function(){return null};_.r.setupPlaylist=function(){return Promise.reject(_.nb)};_.r.appendLoad=function(){return Promise.reject(_.nb)};_.r.seekWith=function(){return Promise.reject(_.nb)};_.r.detach=function(){return Promise.resolve()};_.r.setSeekInterceptor=function(){};_.r.setPlaybackSessionId=function(){};_.r.getBandwidthEstimate=function(){return null};
598
- _.r.play=function(){var a=this;if(!this.ea)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.D.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||""};Qt(d)?(a.trigger(new _.Q(_.$c)),a.log.warn(_.na)):d.name===ob&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
599
- _.r.pause=function(){var a=this;return this.ea?new Promise(function(b,c){var d=a.getState();if(2!==d&&5!==d&&3!==d&&4!==d)c(new _.O(_.P,7,3201,"The player state does not allow pause."));else if(a.D.getMedia().pause(),3===a.getState())a.M.one(a,_.ig,function(){b()});else b()}):Promise.reject(new _.O(_.P,7,3201,"No sources specified yet. You need to load content before calling pause."))};_.r.isPaused=function(){return this.D.getMedia().paused};_.r.isEnded=function(){return this.D.getMedia().ended};
600
- _.r.getConfiguration=function(){return this.configuration};_.r.setDrmCustomDataModifier=function(a){this.wd=a};_.r.setCdnErrorCallback=function(a){this.ld=a};_.r.yd=function(){return this.wd};_.r.getSurface=function(){return this.D};_.r.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.gi(b?b.buffered:void 0,a)};_.r.getPosition=function(){return this.getMediaPosition()};
546
+ 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]};_.eq.prototype.Ma=function(a,b){this.f[a]=b};_.K("clpp.drm.DrmEnvironment",_.eq);_.eq.prototype.setDrmSystem=_.eq.prototype.Ma;_.gq.prototype.getPosition=function(){return this.a};_.gq.prototype.cb=function(){return this.f.byteLength};_.gq.prototype.seek=function(a){(0>a||a>=this.f.byteLength)&&_.hq();this.a=a};_.jq.prototype.getPosition=function(){return this.a};_.jq.prototype.cb=function(){return this.f.byteLength};_.jq.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.lq();this.a+=a};_.jq.prototype.seek=function(a){if(0>a||a>=this.f.byteLength)throw _.lq();this.a=a};_.K("clpp.utils.dataview.DataViewReader",_.jq);_.r=_.tq.prototype;_.r.N=function(a,b){var c=xq(a);this.h[c]=sw;this.f[c]=b;return this};_.r.da=function(a,b){var c=xq(a);this.h[c]=tw;this.f[c]=b;return this};_.r.stop=function(){this.a=!0};_.r.parse=function(a,b){var c=_.Vi(a);c=new _.jq(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.kq(c)&&!this.a;)this.ag(0,c,b)};
547
+ _.r.ag=function(a,b,c){var d=b.getPosition(),e=_.oq(b),f=_.oq(b),g=!1;this.g.debug("Parsing MP4 box",_.yq(f));switch(e){case 0:e=b.cb()-d;break;case 1:e=_.qq(b),g=!0}var k=this.f[f];if(k){var l=null,m=null;this.h[f]===tw&&(m=_.oq(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.cb()&&(n=b.cb());n-=b.getPosition();b=0<n?_.sq(b,n):new Uint8Array(0);b=new _.jq(new DataView(b.buffer,b.byteOffset,b.byteLength),!1);k({parser:this,partialOkay:c||!1,version:l,flags:m,reader:b,size:e,start:d+
548
+ a,headerSize:f,has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.cb()-b.getPosition()),b.skip(a)};_.K("clpp.utils.Mp4Parser",_.tq);_.tq.typeToString=_.yq;_.tq.allData=_.wq;_.tq.sampleDescription=_.vq;_.tq.children=_.uq;_.tq.prototype.parseNext=_.tq.prototype.ag;_.tq.prototype.parse=_.tq.prototype.parse;_.tq.prototype.stop=_.tq.prototype.stop;_.tq.prototype.fullBox=_.tq.prototype.da;_.tq.prototype.box=_.tq.prototype.N;_.tq.headerSize=_.zq;var sw=0,tw=1;_.K("clpp.utils.FairplayUtils",Aq);Aq.parseFairPlayResponse=_.Gq;Aq.formatFairPlayRequest=_.Fq;Aq.createFairplayPayload=Eq;Aq.extractContentId=_.Cq;Aq.extractExtXKeyUri=Bq;_.K(yd,Hq);Hq.registerCustom=br;var dr=new _.M(yd),Jq="PRODUCTION",Kq="STAGING",Lq="DEMO",Mq="TEST",uw={PRODUCTION:Jq,STAGING:Kq,DEMO:Lq,TEST:Mq};Hq.Environment=uw;Hq.WidevineCertificates={V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"};
549
+ for(var Oq="/license-proxy-widevine/cenc/",Pq="/license-proxy-headerauth/drmtoday/RightsManager.asmx",Qq="/license-server-fairplay/",Wq="/license-server-fairplay/cert/",fr={"00000":"Success","01000":"General Internal Error","02000":"General Request Error","03000":"General Request Authentication Error",10001:"Bad Request",3E4:"General DRM error",4E4:"General Widevine Modular error",40001:"Widevine Device Certificate Revocation (wv 127)",40002:"Widevine Device Certificate Revocation - Permanently (wv 175)",
550
+ 41E3:"General Widevine Classic error",42E3:"General Playready error",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"},
551
+ vw=Sq(),ww=Tq(),xw=_.v(Object.keys(uw)),yw=xw.next();!yw.done;yw=xw.next()){var Iq=yw.value,zw=Ga;Iq!==Jq&&(zw+="_"+Iq);var Aw=new _.eq(zw),Bw=null;switch(Iq){case Jq:case Kq:case Lq:Bw=_.dq("V2");break;case Mq:Bw=null}Aw.Ma(_.Md,{licenseUrl:Rq(_.Md),videoRobustness:vw.video,audioRobustness:vw.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:Bw,modifiers:{licenseRequest:_.Uq,licenseResponse:_.Vq}});Aw.Ma(_.Id,{licenseUrl:Rq(_.Id),certificateUrl:Nq()+Wq,modifiers:{licenseRequest:_.Xq,
552
+ licenseResponse:_.Yq,extractContentId:_.Zq,certificateRequest:_.$q}});Aw.Ma(_.Kd,{licenseUrl:Rq(_.Kd),videoRobustness:ww.video,audioRobustness:ww.audio,modifiers:{licenseRequest:ar}});_.Zn(Aw)}_.K("clpp.drm.registerCustomDrmToday",function(a,b,c){br(a,b,c)});_.ir.prototype.value=function(){void 0===this.a&&(this.a=this.f());return this.a};_.r=jr.prototype;_.r.getStatus=function(){return this.a};_.r.forEach=function(a){this.a&&a(this.a,Cw.value())};_.r.get=function(a){if(this.has(a))return this.a};_.r.has=function(a){var b=Cw.value();return this.a&&Wi(a,b)?!0:!1};_.r.entries=function(){};_.r.keys=function(){};_.r.values=function(){};var Cw=new _.ir(function(){return bj(new Uint8Array([0]))});var lr=new _.ir(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.Me],[HTMLMediaElement.HAVE_CURRENT_DATA,_.Le],[HTMLMediaElement.HAVE_FUTURE_DATA,fd],[HTMLMediaElement.HAVE_ENOUGH_DATA,gd]])});_.r=nr.prototype;_.r.zf=function(a){this.f=a};_.r.le=function(a){var b=this.a;b&&b!==a&&qr(b,null);return(this.a=a)?qr(a,this.f):Promise.resolve()};_.r.Lf=function(){return this.a};_.r.ic=function(a,b){_.$h("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new or(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.r.ke=function(){return Ss};or.prototype.createMediaKeys=function(){var a=new pr(this.keySystem);return Promise.resolve(a)};
553
+ or.prototype.getConfiguration=function(){_.$h("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};pr.prototype.createSession=function(a){a=void 0===a?_.sg:a;this.g.debug("Creating Apple MediaKeys Session");if(a!==_.sg)throw new TypeError("Session type "+a+ba);return new rr(this.h,"__session_"+this.j++)};pr.prototype.setServerCertificate=function(){this.g.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.w(rr,_.Ii);_.r=rr.prototype;
554
+ _.r.generateRequest=function(a,b){var c=this;if(this.l)return Promise.reject(Fb);this.g.debug("generateRequest");this.h=new _.rm;try{var d=this.o.createSession(_.Vg,_.Vi(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,fh,function(e){var f=c.keyStatuses.getStatus();c.g.debug("Received Key Message in "+c.sessionId);c.h&&(c.h.resolve(),c.h=null);e=new _.Q(_.Re,{messageType:void 0===f||f===lg?Ge:Fe,message:bj(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,dh,function(e){c.g.debug("onWebkitKeyAdded_",
555
+ e);c.f&&(sr(c,"usable"),c.f.resolve(),c.f=null)});this.j.on(d,eh,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===lg)c.g.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.g.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.f)c.f.reject(e),
556
+ c.f=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:sr(c,"output-not-allowed");break;default:sr(c,_.Ce)}});sr(this,lg)}catch(e){this.h.reject(e)}return this.h};_.r.load=function(){this.g.debug(_.Ke);return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.r.update=function(a){if(this.l)return Promise.reject(Fb);this.g.debug(Jg);this.f=new _.rm;try{this.a.update(_.Vi(a))}catch(b){this.f.reject(b)}return this.f};
557
+ _.r.close=function(){if(this.l)return this.closed;this.g.info("Closing Key Session "+this.sessionId);this.l=!0;try{this.a.close(),this.closed.resolve(),_.Ei(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.r.remove=function(){this.g.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};tr.prototype.a=function(){return Ss};tr.prototype.f=function(){return!!window.WebKitMediaKeys};
558
+ tr.prototype.create=function(){return new nr};_.r=ur.prototype;_.r.zf=function(a){this.a=a};_.r.le=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(fb)};_.r.Lf=function(){return this.a&&this.a.mediaKeys};
559
+ _.r.ic=function(a,b){var c=this;this.g.info("Requesting media key system access for",a,b.map(function(d){return Object.assign({},d,{drmInfos:d.drmInfos.map(function(){return"_anonymous_"})})}));return navigator.requestMediaKeySystemAccess(a,b)["catch"](function(d){c.g.info("Failed to request media key system access for "+(a+"."),d);return Promise.reject(d)})};_.r.ke=function(){return ws};vr.prototype.a=function(){return ws};
560
+ vr.prototype.f=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};vr.prototype.create=function(){return new ur};_.r=wr.prototype;_.r.zf=function(a){this.a=a};_.r.le=function(a){_.$h("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(fb);var b=this.f;b&&b!==a&&Br(b,null);(this.f=a)&&Br(a,this.a);return Promise.resolve()};_.r.Lf=function(){return this.f};_.r.ic=function(a,b){_.$h("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.Tg);c=d.length?d[0]:document.createElement(_.Tg)}var e=new xr(this.h,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
561
+ _.r.ke=function(){return Dw};xr.prototype.createMediaKeys=function(){return Promise.resolve(new yr(this.h,this.a))};xr.prototype.getConfiguration=function(){return this.f};yr.prototype.createSession=function(a){a=void 0===a?_.sg:a;if(a!==_.sg&&a!==_.nf)throw new TypeError("Session type "+a+ba);if(!this.a)throw a=Error("Media element is missing."),a.name=Xa,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new Cr(this.h,this.a,this.o,a);this.j.push(a);return a};
562
+ yr.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.w(Cr,_.Ii);_.r=Cr.prototype;_.r.ready=function(){_.$h("WebkitEmeManager.MediaKeySession.ready");Ar(this,"usable");this.a&&this.a.resolve();this.a=null};_.r.generateRequest=function(a,b){_.$h("WebkitEmeManager.MediaKeySession.generateRequest");return Er(this,b,null)};_.r.load=function(a){_.$h(Xb);return this.l===_.nf?Er(this,null,a):Promise.reject(Error(mb))};_.r.update=function(a){_.$h(Xb);var b=new _.rm;Fr(this,b,a);return b};
563
+ _.r.close=function(){_.$h("WebkitEmeManager.MediaKeySession.close");if(this.l!==_.nf){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=Dr(this,"cancelKeyRequest");try{this.j[a](this.h,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.r.remove=function(){_.$h("WebkitEmeManager.MediaKeySession.remove");return this.l!==_.nf?Promise.reject(Error(mb)):this.close()};Gr.prototype.a=function(){return Dw};
564
+ Gr.prototype.f=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};Gr.prototype.create=function(){return new wr};_.r=Hr.prototype;_.r.zf=function(){};_.r.le=function(a){_.$h("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.r.Lf=function(){return null};_.r.ic=function(){_.$h("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.r.ke=function(){return Ew};Ir.prototype.a=function(){return Ew};Ir.prototype.f=function(){return!0};Ir.prototype.create=function(){return new Hr};_.K(Bd,Jr);var Lr=new _.M(Bd),Kr=[];Kr=[new vr,new tr,new Gr,new Ir].filter(function(a){return a.f()});var ws="STANDARD",Ss="APPLE",Dw="WEBKIT",Ew="NOP";Jr.Apis={STANDARD:ws,APPLE:Ss,WEBKIT:Dw,NOP:Ew};_.r=_.Nr.prototype;_.r.Qa=function(a,b){var c=this.aa(a,b);return 1!==c.length?null:c[0]};_.r.jc=_.sh(2);_.r.aa=function(a,b){return Array.from(a.childNodes).filter(function(c){return c instanceof Element&&c.tagName===b})};_.r.Xc=_.sh(4);_.r.getAttributeNS=function(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null};_.r.va=function(a){return Array.from(a.childNodes).every(function(b){return b.nodeType===Node.TEXT_NODE||b.nodeType===Node.CDATA_SECTION_NODE})?a.textContent.trim():null};
565
+ _.r.Z=_.sh(6);_.r.Te=function(a,b){var c=new DOMParser,d=null;try{d=c.parseFromString(a,_.vg)}catch(e){}if(!d)return null;c=d.documentElement;return b&&c.tagName!==b||0<d.getElementsByTagName("parsererror").length?null:c};_.r.If=_.sh(8);_.r.Cd=_.sh(10);_.r.dg=_.sh(12);_.r.removeChild=function(a,b){a.removeChild(b)};_.r.Qf=_.sh(14);_.r.Pf=_.sh(16);_.r.eg=_.sh(18);_.r.$e=_.sh(20);_.Ur=new _.Nr;_.Fw=new _.M("clpp.xml.Parser");_.On="dom";var Qr;_.Yr=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];Qr=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.w(Pr,Or);_.w(_.Tr,Or);$r.prototype.j=function(a){if(1<a.version)_.Vh("Unrecognized PSSH version found!");else{var b=_.Rm(_.sq(a.reader,16)),c=[];if(0<a.version)for(var d=_.oq(a.reader),e=0;e<d;++e){var f=_.Rm(_.sq(a.reader,16));c.push(f)}d=_.oq(a.reader);a.reader.skip(d);this.h.push.apply(this.h,c);this.f.push(b);this.a.push({start:a.start,end:a.start+a.size-1});a.reader.getPosition()!==a.reader.cb()&&_.Vh("Mismatch between box size and data size!")}};_.r=_.ds.prototype;_.r.destroy=function(){var a=this;return _.I(function(b){if(1==b.a){if(a.j)return _.y(b,a.Ba,0);a.j=!0;return _.y(b,fs(a),4)}a.Ba.resolve();return b.C(0)})};_.r.keySystem=function(){return this.a?_.Ks(this.a.keySystem):""};_.r.getDrmInfo=function(){return this.a};_.r.vj=function(a){var b=this;return _.I(function(c){return b.H&&b.L===gs?c["return"]():!b.f.delayLicenseRequestUntilPlayed||b.D&&!b.D.paused||b.Va?_.y(c,Ys(b,a),0):(b.ha.push(a),c.C(0))})};
566
+ _.r.rj=function(a){var b=this,c=a.target;this.g.info("Key status changed for session",c.sessionId);var d=this.h.get(c),e=!1;c.keyStatuses.forEach(function(g,k){if(typeof k===_.ng){var l=k;k=g;g=l}if(Rs(b.a.keySystem)&&16===k.byteLength&&_.oj()){l=_.aj(k);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!==lg&&(d.loaded=!0);d&&d.Bb&&d.Bb.resolve();"expired"===g&&(e=!0);l=_.Vi(k);var q=_.Rm(l);"00"===q&&d&&d.keyId?q=d.keyId:
567
+ b.a.keySystem.startsWith(_.Id)&&16!==l.byteLength&&(q=_.R.fromCharCode(l));(l=q||"")?b.g.info(Ya+q+"': "+g):b.g.info("Key status global keys: "+g);b.o.set(l,g);d&&!d.keyId&&b.h.forEach(function(t,u){u===c||t.keyId!==q||t.loaded||(t.loaded=!0)})});d&&d.loaded&&d.Fb.forEach(function(g){b.o.get(g)===lg&&(b.g.warn(Ya+g+ea),b.o.set(g,_.kf))});for(a=0;a<this.a.initData.length;a++){var f=this.a.initData[a];f.keyId&&this.o.get(f.keyId)===lg&&_.Sm(f.initData,d.initData)&&(this.g.warn(Ya+f.keyId+ea),this.o.set(f.keyId,
568
+ _.kf))}a=c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.Oc&&(this.g.debug("Session has expired",c.sessionId),(a=this.h.get(c))&&a.Vd&&a.Vd.stop(),this.h["delete"](c),c.close()["catch"](function(){}));Ms(this)&&(this.I.resolve(),1!==this.h.size||e?this.ba.ia(.5):bs(this))};var gs=0,as=3;_.Y={Dc:function(a,b){return a.filter(function(c){return c.name===b})},$j:function(a){var b=/^[a-zA-Z0-9_-]+$/,c=new Set;a.forEach(function(d){var e=_.T(d,"VALUE"),f=_.T(d,_.gb),g=_.T(d,"IMPORT"),k=_.T(d,"QUERYPARAM");if(1!==[f,g,k].filter(Boolean).length||f&&null==e)throw new _.O(_.P,4,4044,{message:"Invalid tag.",text:d.toString()});d=f||g||k;if(c.has(d))throw new _.O(_.P,4,4044,'EXT-X-DEFINE redefined variable "'+d+'".');if(!b.test(d))throw new _.O(_.P,4,4044,'EXT-X-DEFINE invalid variable name "'+
569
+ d+'".');c.add(d)})},Lg:function(a,b){var c=Array.isArray(b)?b:[b];return a.filter(function(d){d=_.Up(d,_.Kb);return c.includes(d)})},cd:function(a,b){return a.some(function(c){return c.name===b})},bb:function(a,b,c){c=void 0===c?{}:c;a=a.find(function(d){return d.name===b})||null;if(!a&&c.required)throw new _.O(_.P,4,4024,{missingTag:b});return a},Pi:function(a,b){return _.Y.bb(a,b,{required:!0})},Dm:function(a,b,c){c=void 0===c?0:c;return(a=_.Y.bb(a,b))?Number(a.value):c},Zp:function(a,b,c){return a.filter(function(d){var e=
570
+ d.getAttribute(_.Kb);d=d.getAttribute(_.Qa);return e.value===b&&d.value===c})},Co:function(a){var b=_.Y.bb(a,"EXT-X-TILES");if(!b)return{De:1,bf:1,durationPerTile:null};a=_.T(b,"LAYOUT")||"1x1";b=_.T(b,_.Ia);a=_.Yp(a);return{De:a.De,bf:a.bf,durationPerTile:b?Number(b):null}},Vm:function(a){return/^#(?!EXT)/m.test(a)},an:function(a){return/^(#EXT)/.test(a)},en:function(a,b){Array.isArray(a)||(a=[a]);a.forEach(function(c){for(var d=_.v(_.Y.ig(c)),e=d.next();!e.done;e=d.next())b(e.value,c)})},ig:function(a){var b=
571
+ new Set;a.variants.forEach(function(c){c.audio&&b.add(c.audio);c.video&&b.add(c.video)});a.textStreams.forEach(function(c){return b.add(c)});a.thumbStreams.forEach(function(c){return b.add(c)});return Array.from(b)},Qm:function(a){return a.some(function(b){return _.Y.cd(b.$,"EXT-X-ENDLIST")})},zk:function(a){return _.Y.ig(a).filter(_.Y.Yi)},Ej:function(a){if(_.Y.bb(a,"EXT-X-ENDLIST"))return _.Vb;a=_.Y.bb(a,"EXT-X-PLAYLIST-TYPE");if(!a)return"LIVE";if(a.value===_.Vb)return _.Vb;if("EVENT"===a.value)return"EVENT";
572
+ throw new _.O(_.P,4,4044,"Invalid EXT-X-PLAYLIST-TYPE value: "+a.value);},ni:function(a){a={AUDIO:_.Sc,VIDEO:_.Tg,SUBTITLES:_.Gn,"CLOSED-CAPTIONS":_.Gn}[a.toUpperCase()];if(!a)throw new _.O(_.P,4,4044,"EXT-X-MEDIA tag has an invalid TYPE attribute.");return a},Wl:function(a){var b=_.Up(a,_.Kb).toUpperCase();if(_.Y.ni(b)!==_.Gn)return null;a=a.getAttribute("FORCED");a=!(!a||!a.value||"YES"!==a.value.toUpperCase());var c=_.qg;b===_.sa&&(c=_.hd);a&&(c=_.se);return c},Aj:function(a,b,c){c=void 0===c?
573
+ !1:c;var d=0,e=null;if(a){d=a.split("@");a=Number(d[0]);if(0>=a)throw new _.O(_.P,4,4044,"Byte range length must be positive.");if(d[1]){if(d=Number(d[1]),0>d)throw new _.O(_.P,4,4044,"Byte range start byte must not be negative.");}else{if(c)throw new _.O(_.P,4,4044,"Invalid byte range, offset is required but missing.");if(null==b)throw new _.O(_.P,4,4044,"Invalid byte range, cannot calculate offset based on previous byte ranges.");d=b+1}e=d+a-1}return{la:d,ga:e}},Cj:function(a,b){var c=_.Y.bb(a,
574
+ "EXT-X-BYTERANGE");return _.Y.Aj(c?c.value:null,b)},Dj:function(a){a=_.Y.Pi(a,"EXTINF").value.split(",");var b=Number(a[0]);if(isNaN(b))throw new _.O(_.P,4,4044,"#EXTINF must be a number.");return{duration:b,title:a[1]||null}},Fj:function(a,b){function c(f){return null==f?null:Number(f)}b=void 0===b?{}:b;var d={Xh:!1,Ek:!1,Fk:null,Rm:null,Gj:null},e=_.Y.bb(a,"EXT-X-SERVER-CONTROL",{required:b.Qj});if(!e)return d;d.Xh="YES"===_.T(e,"CAN-BLOCK-RELOAD");d.Ek="YES"===_.T(e,"CAN-SKIP-DATERANGES");d.Fk=
575
+ c(_.T(e,"CAN-SKIP-UNTIL"));d.Rm=c(_.T(e,"HOLD-BACK"));d.Gj=c(_.T(e,"PART-HOLD-BACK",void 0,{required:b.Qj}));return d},Bj:function(a,b,c){c=void 0===c?!1:c;a=_.T(a,"BYTERANGE");return _.Y.Aj(a,b,c)},Bo:function(a){var b=_.Y.Dc(a,_.Ka),c=_.Y.Dc(a,_.La);a=_.Y.Dc(a,"EXT-X-IMAGE-STREAM-INF");return{gd:{Rh:_.Y.Lg(b,[_.ja,_.Ub]),closedCaptions:_.Y.Lg(b,_.sa),hp:_.Y.Lg(b,_.Bb)},cf:c,Ng:a}},Yl:function(a,b){var c=_.Y.Cj(a.$,null);return new _.Xp(0,0,0,function(){return[a.a]},c.la,c.ga,0,b)},Km:function(a){var b=
576
+ a.S;a=b[0].startTime;b=b[b.length-1].endTime;return{Ic:a,Of:b,duration:b-a}},Hm:function(a){var b=Infinity,c=Infinity;_.Y.zk(a).forEach(function(d){d=_.Y.Km(d);b=Math.min(b,d.Ic);c=Math.min(c,d.duration)});return{Ic:b,duration:c}},Yi:function(a){return a.type===_.Sc||a.type===_.Tg},im:function(a){return a.filter(_.Y.Yi)},Fm:function(a){return a.map(function(b){return _.Y.Hm(b).duration}).reduce(function(b,c){return b+c},0)},xm:function(a,b){return a&&b?_.ct(a.drmInfos,b.drmInfos)?_.bt(a.drmInfos,
577
+ b.drmInfos):null:a?a.drmInfos:b?b.drmInfos:null},$l:function(a,b){return(b?b.Fc():"")+" - "+(a?a.Fc():"")},oi:function(a){return(a.video?a.video.ld:"")+" - "+(a.audio?a.audio.ld:"")},Ao:function(a,b,c,d,e){if(b===_.Vb)return{delay:0,af:0};b=_.Y.bb(a,"EXT-X-PART-INF");if(c&&b)return e=Number(_.Up(b,"PART-TARGET")),null!=d?{delay:d,af:e}:{delay:_.Y.Fj(a,{Qj:!0}).Gj,af:e};a=_.Y.Pi(a,"EXT-X-TARGETDURATION");a=Number(a.value);e=e||a;return null!=d?{delay:d,af:e}:{delay:3*a,af:e}},Cf:function(a,b){return a+
578
+ ":"+b},lp:function(a){var b=_.Y.Cf,c=new Map;a.forEach(function(d){var e=b(d.bd(),d.a());c.has(e)?(e=c.get(e),e.includes(d)||e.push(d)):c.set(e,[d])});return c},Li:function(a){return _.vo(a||_.Gg)},uo:function(a){var b=new Map;a=_.v(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=_.T(c,_.Za);d=_.Y.Li(d);var e=_.Up(c,_.Qa);c=_.Up(c,"INSTREAM-ID");b.has(e)||b.set(e,new Map);b.get(e).set(c,d)}return b},dm:function(a){return a.filter(function(b){return"mp4a.40.34"!==b})},Do:function(a){if(!a.hasAttribute("FRAME-RATE")&&
579
+ !a.hasAttribute(_.zb))return null;var b=_.T(a,"FRAME-RATE");a=_.T(a,_.zb);var c=_.v(a?a.split("x"):[null,null]);a=c.next().value;c=c.next().value;return{frameRate:ll(b),width:ll(a),height:ll(c)}},dn:function(a){return a.name!==_.Ka?!0:_.T(a,_.Kb)===_.Bb},vo:function(a,b,c,d,e){var f=e&&e.Ze,g=e&&e.schemeIdUri,k=_.T(a,"ID");f=_.T(a,"START-DATE")||f;if(null===k||!f)return _.Y.g.warn("Invalid EXT-X-DATERANGE missing mandatory ID or required START-DATE attribute, ignoring the EXT-X-DATERANGE tag.",a),
580
+ null;b=d?c-b:-b;d=new Date(f);c=d.getTime()/1E3+b;k={id:k,startTime:c,startDate:d,Ze:f};f=ll(_.T(a,_.Ia));void 0!==f&&0<=f&&(k.duration=f);f=ll(_.T(a,"PLANNED-DURATION"));void 0!==f&&0<=f&&(k.plannedDuration=f);g=_.T(a,"CLASS")||g||null;null!==g&&(k.schemeIdUri=g);f=(f=_.T(a,"END-DATE"))?new Date(f):null;null!==f&&f.getTime()>=d.getTime()&&(k.endDate=f);d=_.Y.so(a)||{};(f=_.T(a,"CUE"))&&(d.CUE=f.split(","));Nk(g)&&(f=_.Y.yo(a))&&(d=Object.assign(d,f));_.N.Zb(d)&&(k.customAttributes=d);if(_.N.Ti(e,
581
+ k))return _.Y.g.warn("EXT-X-DATERANGE augmented and previous values differ.Ignoring the EXT-X-DATERANGE tag.",a),null;k=_.N.ta(e,k);if(Nk(g)&&!Ok(k.customAttributes))return _.Y.g.warn("Invalid EXT-X-DATERANGE Interstitial attributes X-ASSET-URI, X-ASSET-LIST"),null;var l;k.endDate?l=k.endDate.getTime()/1E3+b:k.duration?l=c+k.duration:k.plannedDuration?l=c+k.plannedDuration:l=c;k.endTime=l;k.type=_.xe;return k},so:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.v(b);for(var c=b.next();!c.done;c=
582
+ b.next())c=c.value,c.name.trim().startsWith("X-")&&(a[c.name]=c.value);return _.N.Zb(a)?a:null},yo:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.v(b);for(var c=b.next();!c.done;c=b.next())switch(c=c.value,c.name){case bc:a[bc]=c.value;break;case ac:a[ac]=c.value;break;case gc:a[gc]=ll(c.value);break;case dc:a[dc]=ll(c.value);break;case "X-SNAP":a["X-SNAP"]=c.value.split(",");break;case ec:a[ec]=c.value.split(",")}return _.N.Zb(a)?a:null},Bi:function(a,b){if(!a)return null;var c=a.ld;
583
+ return b.find(function(d){return d.Fc()===c})||null},Hi:function(a){return(a=_.T(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}};_.Y.g=new _.M("clpp.hls.Utils");var lt;_.ht.prototype.ua=function(a){return this.type===a.type&&this.channelsCount===a.channelsCount&&this.frameRate===a.frameRate&&this.trickPlay===a.trickPlay&&this.kind===a.kind&&this.label===a.label&&this.language===a.language&&this.mimeType===a.mimeType&&Qi(this.roles,a.roles)&&Qi(this.accessibility,a.accessibility,ot)};_.ht.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.K("clpp.Track",_.ht);
584
+ _.ht.prototype.toString=_.ht.prototype.toString;_.K("clpp.Rendition",_.pt);_.Gw=1;_.kt=_.Tg;_.X=_.Sc;_.jt=_.tg;lt=_.Se;_.Hw={VIDEO:_.kt,AUDIO:_.X,TEXT:_.jt,METADATA:lt};_.ht.Type=_.Hw;qt.prototype.h=function(a,b){var c=this,d,e,f,g,k,l,m;return _.I(function(n){switch(n.a){case 1:return d=null,_.F(n,2),_.y(n,wt(c,a),4);case 4:d=n.f;_.G(n,3);break;case 2:return e=_.H(n),c.g.warn("Failed to fetch playlist in order metadata from HLS playlist.",e.message),n["return"](Promise.resolve({}));case 3:f={};_.F(n,5);if(!b.enableHlsVideoTrackInfo){n.C(7);break}return _.y(n,tt(c,d,a),8);case 8:g=n.f,f.renditions=g.renditions,f.mimeType=g.mimeType;case 7:_.G(n,6);break;case 5:k=_.H(n),c.g.warn("Failed to parse video metadata from HLS playlist.",
585
+ k.message);case 6:return _.F(n,9),_.y(n,vt(d),11);case 11:l=n.f;f.gd=l;_.G(n,10);break;case 9:m=_.H(n),c.g.warn("Failed to parse metadata from HLS playlist.",m.message);case 10:return n["return"](f)}})};_.Ct=[];_.r=_.Ft.prototype;_.r.Bg=function(){return!0};_.r.pm=function(a){return this.getVideoTracks().find(function(b){return _.N.ua(b,a,a&&Object.keys(a))})};_.r.lm=function(a){return this.getAudioTracks().find(function(b){return _.N.ua(b,a,a&&Object.keys(a))})};_.r.nm=function(a){return this.ra().find(function(b){return _.N.ua(b,a,a&&Object.keys(a))})};_.r.om=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.N.ua(b,a,a&&Object.keys(a))})};
586
+ _.r.km=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.N.ua(b,a,a&&Object.keys(a))})};_.r.mm=function(a){return this.ra().flatMap(function(b){return b.renditions}).find(function(b){return _.N.ua(b,a,a&&Object.keys(a))})};_.K("clpp.TrackManager",_.Ft);_.Ft.prototype.isAbrEnabled=_.Ft.prototype.xa;_.Ft.prototype.addTextTrack=_.Ft.prototype.addTextTrack;_.Ft.prototype.findTextRendition=_.Ft.prototype.mm;_.Ft.prototype.findAudioRendition=_.Ft.prototype.km;
587
+ _.Ft.prototype.findVideoRendition=_.Ft.prototype.om;_.Ft.prototype.findTextTrack=_.Ft.prototype.nm;_.Ft.prototype.findAudioTrack=_.Ft.prototype.lm;_.Ft.prototype.findVideoTrack=_.Ft.prototype.pm;_.Ft.prototype.setTextRendition=_.Ft.prototype.Pb;_.Ft.prototype.setAudioRendition=_.Ft.prototype.Ob;_.Ft.prototype.setVideoRendition=_.Ft.prototype.Db;_.Ft.prototype.setTextTrack=_.Ft.prototype.kb;_.Ft.prototype.setAudioTrack=_.Ft.prototype.La;_.Ft.prototype.setVideoTrack=_.Ft.prototype.Qb;
588
+ _.Ft.prototype.getTextTrack=_.Ft.prototype.wa;_.Ft.prototype.getAudioTrack=_.Ft.prototype.qa;_.Ft.prototype.getVideoTrack=_.Ft.prototype.Ra;_.Ft.prototype.getLoadingTextRendition=_.Ft.prototype.Yb;_.Ft.prototype.getLoadingAudioRendition=_.Ft.prototype.Xb;_.Ft.prototype.getLoadingVideoRendition=_.Ft.prototype.Hb;_.Ft.prototype.getTextRendition=_.Ft.prototype.hb;_.Ft.prototype.getAudioRendition=_.Ft.prototype.Za;_.Ft.prototype.getVideoRendition=_.Ft.prototype.sa;_.Ft.prototype.getTextTracks=_.Ft.prototype.ra;
589
+ _.Ft.prototype.getAudioTracks=_.Ft.prototype.getAudioTracks;_.Ft.prototype.getVideoTracks=_.Ft.prototype.getVideoTracks;_.Ft.prototype.canSelectVideoTracks=_.Ft.prototype.Bg;_.w(Gt,_.Ft);_.r=Gt.prototype;_.r.Bg=function(){return!_.tj()};
590
+ _.r.ah=function(a,b){var c=this,d,e,f,g,k,l,m,n,p,q,t,u,z,B,D,C,E,x,J;return _.I(function(L){if(1==L.a){if(!b)return c.g.warn(ib),L["return"]();d=b.track;if(!d)return c.g.warn(lb),L["return"]();e=a===_.X;f=a===_.kt;g=a===_.jt;k=e||f;l=a===_.X?String(_.Gw++):d.id;m=nt(a,l,d);e&&c.A.set(l,d);n=Vt(d);if(g){if(d.kind===_.Se)return L["return"]();void 0!==d.id?p=c.o[d.id]:(q=Object.values(c.o),p=q.find(function(U){return Tt(c,m,U,a)}));m.kind&&"captions"===m.kind&&(m.mimeType=_.Kc);p&&(m.src=p.url,m.mimeType=
591
+ p.mimeType)}else if(t=c.h.find(function(U){return U.type===a&&_.N.ua(U,m,["kind","label","language"])}))return e?c.A.set(t.id,d):t.id=d.id,n&&(c.g.debug(Gb+a+" track active"),c.a.set(a,t)),c.g.debug("Track from event seems to already exists, flipped native track to",d),L["return"]();_.F(L,2);u=new _.pt(m.id,m);m.renditions.push(u);c.h.push(m);z=c.m.getConfiguration().safari;return Kt(c,a,z)?_.y(L,Mt(c,m,z),5):Lt(c,a,z)?_.y(L,Nt(c,m,z),5):L.C(5)}if(2!=L.a)return c.g.debug(a+" Track added",m),c.m.trigger(new _.Q(_.Cg)),
592
+ B=Qt(c,a).length,D=b.target,C=!(!D||!D.length),E=D&&D.length||0,x=function(){c.g.debug(Gb+a+" track active. Native track active: "+(n+". Number of tracks: ")+B,d);c.a.set(a,m)},n?x():1===B&&k&&(f?x():C&&1!==E||x()),_.G(L,0);J=_.H(L);c.g.error("Error while converting track data",J);_.A(L)})};
593
+ _.r.dh=function(a,b){var c=this;if(b){var d=b.track;if(!d)this.g.warn(lb);else if(a===_.jt&&d.kind!==_.Se){var e=this.h.find(function(f){return Tt(c,f,d,a)});e&&(this.h.splice(this.h.indexOf(e),1),(this.a.get(a)||null)===e&&(this.a.set(a,null),Xt(this)),this.g.debug(a+" Track removed, id: ",e.id))}}else this.g.warn(ib)};
594
+ _.r.bh=function(a,b){var c=this;this.g.debug(a+" Track changed",b);a===_.jt&&Xt(this);var d=Pt(this,a);if(d)for(var e={sd:0};e.sd<d.length;e={sd:e.sd},++e.sd)if(Vt(d[e.sd])){if(e=this.h.find(function(f){return function(g){return Tt(c,g,d[f.sd],a)}}(e)))this.a.set(a,e),this.g.debug("Track change detected, id:",e.id),e===this.l.get(a)&&this.l.set(a,null),a===_.X?this.m.trigger(new _.Q(_.$c)):a===_.jt&&this.m.trigger(new _.Q(_.wg));break}};_.r.initialize=function(a){this.m=a;this.j=new qt(a.getNetworkEngine())};
595
+ _.r.load=function(){this.B=!1;var a=Ot(this,_.jt);a&&(this.f.on(a,_.Ec,this.K),this.f.on(a,Tf,this.M),this.f.on(a,pd,this.L));if(a=Ot(this,_.X))this.f.on(a,_.Ec,this.H),this.f.on(a,Tf,this.J),this.f.on(a,pd,this.I);if(a=Ot(this,_.kt))this.f.on(a,_.Ec,this.P),this.f.on(a,Tf,this.W),this.f.on(a,pd,this.T);this.f.one(this.m,gd,this.Fl.bind(this))};_.r.release=function(){this.B=!0;this.h=[];this.o={};this.a.clear();this.l.clear();this.A.clear();this.f.release()};
596
+ _.r.destroy=function(){this.release();this.m=null};_.r.getVideoTracks=function(){return Qt(this,_.kt)};_.r.getAudioTracks=function(){return Qt(this,_.X)};_.r.ra=function(){return Qt(this,_.jt)};_.r.sa=function(){var a=this,b=this.a.get(_.kt)||null;if(!b)return null;if(this.w){var c=b.renditions.find(function(d){return d.width===a.w.width&&d.height===a.w.height});if(c)return c}return b.renditions[0]||null};_.r.Za=function(){return Rt(this,_.X)};_.r.hb=function(){return Rt(this,_.jt)};
597
+ _.r.Hb=function(){return St(this,_.kt)};_.r.Xb=function(){return St(this,_.X)};_.r.Yb=function(){return St(this,_.jt)};_.r.Ra=function(){return this.a.get(_.kt)||null};_.r.qa=function(){return this.a.get(_.X)||null};_.r.wa=function(){return this.a.get(_.jt)||null};_.r.Qb=function(a){Ut(this,_.kt,a)};_.r.La=function(a){Ut(this,_.X,a)};_.r.kb=function(a){Ut(this,_.jt,a)};_.r.Db=function(a){Ut(this,_.kt,a&&a.track)};_.r.Ob=function(a){Ut(this,_.X,a&&a.track)};_.r.Pb=function(a){Ut(this,_.jt,a&&a.track)};
598
+ _.r.addTextTrack=function(a){var b=this,c;return _.I(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.D++,b.o[c]=a,Ht(b,a,c),d.C(0)):_.y(d,It(b,a),0)})};_.r.xa=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};
599
+ _.r.Fl=function(){var a=this,b,c,d;return _.I(function(e){if(1==e.a){b=a.m.getConfiguration();Wt(a,_.X,b.preferredAudioLanguage);c=Pt(a,_.jt);if(c.some(function(f){return Vt(f)}))return e.C(2);d=Ot(a,_.jt);return _.y(e,new Promise(function(f){a.f.one(d,pd,f);(new _.lj(f)).ia(1)}),2)}if(a.B)return e["return"]();Wt(a,_.jt,b.preferredTextLanguage);_.A(e)})};Gt.prototype.isAbrEnabled=Gt.prototype.xa;Gt.prototype.addTextTrack=Gt.prototype.addTextTrack;Gt.prototype.setTextRendition=Gt.prototype.Pb;
600
+ Gt.prototype.setAudioRendition=Gt.prototype.Ob;Gt.prototype.setVideoRendition=Gt.prototype.Db;Gt.prototype.setTextTrack=Gt.prototype.kb;Gt.prototype.setAudioTrack=Gt.prototype.La;Gt.prototype.setVideoTrack=Gt.prototype.Qb;Gt.prototype.getTextTrack=Gt.prototype.wa;Gt.prototype.getAudioTrack=Gt.prototype.qa;Gt.prototype.getVideoTrack=Gt.prototype.Ra;Gt.prototype.getLoadingTextRendition=Gt.prototype.Yb;Gt.prototype.getLoadingAudioRendition=Gt.prototype.Xb;Gt.prototype.getLoadingVideoRendition=Gt.prototype.Hb;
601
+ Gt.prototype.getTextRendition=Gt.prototype.hb;Gt.prototype.getAudioRendition=Gt.prototype.Za;Gt.prototype.getVideoRendition=Gt.prototype.sa;Gt.prototype.getTextTracks=Gt.prototype.ra;Gt.prototype.getAudioTracks=Gt.prototype.getAudioTracks;Gt.prototype.getVideoTracks=Gt.prototype.getVideoTracks;Gt.prototype.canSelectVideoTracks=Gt.prototype.Bg;var Yt=["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"];var Iw=["abort",fd,gd,ke,"emptied",ne,_.pe,_.qe,"interruptbegin","interruptend",_.Le,_.Me,Ne,"mozaudioavailable",_.lf,_.pf,_.Af,_.Of,_.Qf,_.bg,_.cg,ig,"suspend",_.Bg,"volumechange",_.ah,_.bh,_.Vf,gh,fh,dh,eh];_.w(_.$t,_.Ii);_.r=_.$t.prototype;_.r.init=function(a,b){this.configuration=this.Va=b;this.D=a;this.log.info("Initializing Player surface");var c=this.D.getMedia();this.log.info("Attaching media element listeners");for(var d=_.v(Iw),e=d.next();!e.done;e=d.next())e=e.value,this.M.on(c,e,this.fk,e!==_.qe);this.he||(this.he=this.pi());this.he.initialize(this);this.D.showMediaElement()};_.r.release=function(){this.T&&(this.T.destroy(),this.T=null);return Promise.resolve()};
602
+ _.r.destroy=function(){this.M.release();return this.fe.release()};_.r.canPlay=function(a,b){return _.ci[this.namespace()].canPlay(a,b)};_.r.getTimeline=function(){return null};_.r.setupPlaylist=function(){return Promise.reject(_.nb)};_.r.appendLoad=function(){return Promise.reject(_.nb)};_.r.seekWith=function(){return Promise.reject(_.nb)};_.r.detach=function(){return Promise.resolve()};_.r.setSeekInterceptor=function(){};_.r.setPlaybackSessionId=function(){};_.r.getBandwidthEstimate=function(){return null};
603
+ _.r.play=function(){var a=this;if(!this.fa)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.D.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||""};Zt(d)?(a.trigger(new _.Q(_.ad)),a.log.warn(_.na)):d.name===ob&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
604
+ _.r.pause=function(){var a=this;return this.fa?new Promise(function(b,c){var d=a.getState();if(2!==d&&5!==d&&3!==d&&4!==d)c(new _.O(_.P,7,3201,"The player state does not allow pause."));else if(a.D.getMedia().pause(),3===a.getState())a.M.one(a,_.kg,function(){b()});else b()}):Promise.reject(new _.O(_.P,7,3201,"No sources specified yet. You need to load content before calling pause."))};_.r.isPaused=function(){return this.D.getMedia().paused};_.r.isEnded=function(){return this.D.getMedia().ended};
605
+ _.r.getConfiguration=function(){return this.configuration};_.r.setDrmCustomDataModifier=function(a){this.Fd=a};_.r.setCdnErrorCallback=function(a){this.ud=a};_.r.Hd=function(){return this.Fd};_.r.getSurface=function(){return this.D};_.r.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.mi(b?b.buffered:void 0,a)};_.r.getPosition=function(){return this.getMediaPosition()};
601
606
  _.r.getMediaPosition=function(){var a=this.D.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
602
- _.r.seek=function(a){var b=this,c=this.getMediaPosition();if(void 0===a||null===a||typeof a!==_.h||a===c)return Promise.resolve();var d=this.D.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 k(){if(d.readyState>HTMLMediaElement.HAVE_NOTHING)m();else b.M.one(d,_.Le,m)}function l(n){var p=b.getMediaPosition(),
603
- q=.1>=Math.abs(a-p),t=.25<p-a,u=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,y=n.type===_.$f,C=n.type===_.Mf,D=n.type===_.zg,B=C&&u;t=y||q&&B||D&&t;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",t,"Current Time:",p,"Target Time:",a,"Native Event:",y,"Time reached",q,"Timeupdate:",D,"Progress:",C,"ReadyState:",u,"Progress Ready:",B);t?(b.lh=!1,b.Be=!1,b.M.off(d,_.$f,l),b.M.off(d,_.zg,l),b.M.off(d,_.Mf,l),b.nj(),b.trigger(new _.Q(_.Mg)),f()):C&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
604
- d.currentTime=a)}function m(){b.trigger(new _.Q(_.Ng));b.M.on(d,_.$f,l);b.M.on(d,_.zg,l);b.M.on(d,_.Mf,l);b.log.info("Seeking to "+a+". Delta "+e);b.lh=!0;b.Be=!0;d.currentTime=a}b.getState()===_.du?(b.log.debug("Player is in IDLE state. Postpone seek."),b.M.one(b,_.ig,function(){switch(b.getState()){case 2:case 3:case 4:b.log.debug("Valid seek state reached.");k();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):k()})};
605
- _.r.getVolume=function(){var a=this.D.getMedia();if(a)return a.volume;this.log.warn("No media element available, can not report volume!");return null};_.r.setVolume=function(a){var b=this.D.getMedia();b?_.N.za(a)?0>a||1<a?this.log.warn(va+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(va+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.r.isMuted=function(){return this.D.getMedia().muted};
606
- _.r.setMuted=function(a){var b=this.D.getMedia();typeof a===_.bd&&(b.muted=a)};_.r.getDuration=function(){return this.getMediaDuration()};_.r.getMediaDuration=function(){return this.ea?this.D.getMedia().duration:-1};_.r.getTrackManager=function(){return this.Yd};_.r.getPlaybackRate=function(){var a=this.D.getMedia();return a&&a.playbackRate||1};_.r.setPlaybackRate=function(a){var b=this.D.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.r.setSourceIndex=function(a){this.Af=a};_.r.getSourceIndex=function(){return this.Af};
607
- _.r.getLoadedSource=function(){return this.ea&&-1!==this.Af?this.ea[this.Af]:null};_.r.getPeriods=function(){return[]};_.r.getNetworkEngine=function(){return this.Wd};_.r.setNetworkEngine=function(a){var b=this;this.Wd=a;Ym(this.Wd,function(c){b.onError(c)})};_.r.setCmsdManager=function(a){this.bh=a};_.r.getTextDisplayer=function(){return this.T};_.r.getTimelineCues=function(){return[]};_.r.getCueTimeline=function(){return null};_.r.resetAbr=function(){};
608
- _.r.Do=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.zg||a.type===_.Mf)this.xh.debug(d);else{var e="";switch(a.type){case _.Of:e="Rate: "+this.getPlaybackRate();break;case ke:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.pf:case _.Af:case "suspend":case _.$g:case gg:case _.ag:case _.$f:case _.zg:case _.Mf:case ed:case fd:b=
609
- this.getBufferInfo().Ya(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.Tf:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.xh.info(d)}a.type!==_.qe&&this.trigger(new _.Q(a.type,{detail:a}))};_.r.nj=function(){};_.St=new Map;_.Tt=new _.M("clpp.text");_.bu.prototype.getStats=function(){return{width:this.A,height:this.j,streamBandwidth:this.w,decodedFrames:this.l,droppedFrames:this.o,corruptedFrames:this.D,estimatedBandwidth:this.h,loadLatency:this.B,playTime:Yt(this.a,3),pauseTime:Yt(this.a,4),bufferingTime:Yt(this.a,2),stateHistory:Zt(this.a),switchHistory:au(this.f)}};fu.prototype.getState=function(){return hu(this,"")};fu.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.m.namespace());this.a.release()};_.w(nu,_.Rt);_.r=nu.prototype;_.r.init=function(a,b){_.Rt.prototype.init.call(this,a,b);this.j=new fu(this);lu(this.j,_.du)};_.r.namespace=function(){return Cd};
610
- _.r.unload=function(){var a=this,b;return _.I(function(c){if(a.ea){a.log.debug("Releasing player with source",a.ea);a.B&&(a.B.stop(),a.B=null);(b=a.getTrackManager())&&b.release();a.A&&(a.A.destroy(),a.A=null);a.T&&(a.T.destroy(),a.T=null);a.l&&a.l.release();a.o&&(a.o.destroy(),a.o=null);_.zi(a.h);a.f&&(a.f=new _.bu);a.G=null;a.ea=null;a.H=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());if(a.w)throw new _.O(_.P,7,7E3);if(a.a){var d=a.a;a.h.off(d,_.qe);a.h.off(d,_.Tf);a.a=null}}_.A(c)})};
611
- _.r.release=function(){var a=this;return _.Rt.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.j&&lu(a.j,_.du)})};
612
- _.r.destroy=function(){var a=this;if(this.w)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.w=!0;return _.Rt.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Ja);var b=a.getTrackManager();b&&b.destroy();a.l&&(a.l.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.l=null);a.j&&(a.j.destroy(),a.j=null);a.f=null})};_.r.getDrmInfo=function(){return this.o?this.o.getDrmInfo():null};
613
- _.r.getTrackManager=function(){return this.Yd};
614
- _.r.load=function(a){var b=this,c,d,e,f,g;return _.I(function(k){switch(k.a){case 1:if(b.w)return k["return"](Promise.reject(new _.O(_.P,7,7E3)));if(!b.getSurface()||!b.getSurface().getMedia())return k["return"](Promise.reject("No surface or no media element in surface"));c=_.N;d=b.D.getMedia();b.I=Date.now()/1E3;b.f=new _.bu;b.h.on(b,_.ig,function(){b.f&&_.Xt(b.f.a,b.getState())});lu(b.j,1);b.ea=_.Rn(a);b.configuration=_.Nn([b.Va,a]);b.log.debug(_.cb,b.configuration);b.log.debug(_.ub,b.ea);e=_.Vt(b.configuration,
615
- [_.ye,"native"]);b.T=e.create(b);b.T.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.ii(_.pg)&&!_.qj()&&(b.A=new Jp(b),b.A.start(d));b.l?b.l.release():b.l=new hp(b);d.textTracks&&jp(b.l,d.textTracks);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.h.one(d,ed,function(){b.trigger(new _.Q(_.Ag))});null==b.configuration.startTime&&vu(b,d);_.oj()&&wu(b,d);
616
- _.F(k,2);pu(b,d);return _.x(k,su(b),4);case 4:return _.x(k,uu(b).U,5);case 5:_.G(k,0);break;case 2:g=_.H(k),b.H=!1,b.onError(g),_.A(k)}})};_.r.onError=function(a){this.H||(a.severity===_.P&&null!==this.j&&lu(this.j,_.Bo),this.trigger(new _.Q(_.qe,{detail:a})))};_.r.fi=function(){return new xt};_.r.getState=function(){return null!==this.j?this.j.getState().currentState:7};
607
+ _.r.seek=function(a){var b=this,c=this.getMediaPosition();if(void 0===a||null===a||typeof a!==_.h||a===c)return Promise.resolve();var d=this.D.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 k(){if(d.readyState>HTMLMediaElement.HAVE_NOTHING)m();else b.M.one(d,_.Me,m)}function l(n){var p=b.getMediaPosition(),
608
+ q=.1>=Math.abs(a-p),t=.25<p-a,u=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,z=n.type===_.bg,B=n.type===_.Of,D=n.type===_.Bg,C=B&&u;t=z||q&&C||D&&t;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",t,"Current Time:",p,"Target Time:",a,"Native Event:",z,"Time reached",q,"Timeupdate:",D,"Progress:",B,"ReadyState:",u,"Progress Ready:",C);t?(b.wh=!1,b.Me=!1,b.M.off(d,_.bg,l),b.M.off(d,_.Bg,l),b.M.off(d,_.Of,l),b.wj(),b.trigger(new _.Q(_.Ng)),f()):B&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
609
+ d.currentTime=a)}function m(){b.trigger(new _.Q(_.Og));b.M.on(d,_.bg,l);b.M.on(d,_.Bg,l);b.M.on(d,_.Of,l);b.log.info("Seeking to "+a+". Delta "+e);b.wh=!0;b.Me=!0;d.currentTime=a}b.getState()===_.mu?(b.log.debug("Player is in IDLE state. Postpone seek."),b.M.one(b,_.kg,function(){switch(b.getState()){case 2:case 3:case 4:b.log.debug("Valid seek state reached.");k();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):k()})};
610
+ _.r.getVolume=function(){var a=this.D.getMedia();if(a)return a.volume;this.log.warn("No media element available, can not report volume!");return null};_.r.setVolume=function(a){var b=this.D.getMedia();b?_.N.ya(a)?0>a||1<a?this.log.warn(wa+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(wa+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.r.isMuted=function(){return this.D.getMedia().muted};
611
+ _.r.setMuted=function(a){var b=this.D.getMedia();typeof a===_.cd&&(b.muted=a)};_.r.getDuration=function(){return this.getMediaDuration()};_.r.getMediaDuration=function(){return this.fa?this.D.getMedia().duration:-1};_.r.getTrackManager=function(){return this.he};_.r.getPlaybackRate=function(){var a=this.D.getMedia();return a&&a.playbackRate||1};_.r.setPlaybackRate=function(a){var b=this.D.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.r.setSourceIndex=function(a){this.Nf=a};_.r.getSourceIndex=function(){return this.Nf};
612
+ _.r.getLoadedSource=function(){return this.fa&&-1!==this.Nf?this.fa[this.Nf]:null};_.r.getPeriods=function(){return[]};_.r.getNetworkEngine=function(){return this.fe};_.r.setNetworkEngine=function(a){var b=this;this.fe=a;bn(this.fe,function(c){b.onError(c)})};_.r.setCmsdManager=function(a){this.nh=a};_.r.getTextDisplayer=function(){return this.T};_.r.getTimelineCues=function(){return[]};_.r.getCueTimeline=function(){return null};_.r.resetAbr=function(){};
613
+ _.r.No=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.Bg||a.type===_.Of)this.Ih.debug(d);else{var e="";switch(a.type){case _.Qf:e="Rate: "+this.getPlaybackRate();break;case ke:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.pf:case _.Af:case "suspend":case _.ah:case ig:case _.cg:case _.bg:case _.Bg:case _.Of:case fd:case gd:b=
614
+ this.getBufferInfo().Ya(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.Vf:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.Ih.info(d)}a.type!==_.qe&&this.trigger(new _.Q(a.type,{detail:a}))};_.r.wj=function(){};_.au=new Map;_.bu=new _.M("clpp.text");_.ku.prototype.getStats=function(){return{width:this.A,height:this.j,streamBandwidth:this.w,decodedFrames:this.l,droppedFrames:this.o,corruptedFrames:this.D,estimatedBandwidth:this.h,loadLatency:this.B,playTime:gu(this.a,3),pauseTime:gu(this.a,4),bufferingTime:gu(this.a,2),stateHistory:hu(this.a),switchHistory:ju(this.f)}};ou.prototype.getState=function(){return qu(this,"")};ou.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.m.namespace());this.a.release()};_.w(wu,_.$t);_.r=wu.prototype;_.r.init=function(a,b){_.$t.prototype.init.call(this,a,b);this.j=new ou(this);uu(this.j,_.mu)};_.r.namespace=function(){return Cd};
615
+ _.r.unload=function(){var a=this,b;return _.I(function(c){if(a.fa){a.log.debug("Releasing player with source",a.fa);a.B&&(a.B.stop(),a.B=null);(b=a.getTrackManager())&&b.release();a.A&&(a.A.destroy(),a.A=null);a.T&&(a.T.destroy(),a.T=null);a.l&&a.l.release();a.o&&(a.o.destroy(),a.o=null);_.Ei(a.h);a.f&&(a.f=new _.ku);a.G=null;a.fa=null;a.H=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());if(a.w)throw new _.O(_.P,7,7E3);if(a.a){var d=a.a;a.h.off(d,_.qe);a.h.off(d,_.Vf);a.a=null}}_.A(c)})};
616
+ _.r.release=function(){var a=this;return _.$t.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.j&&uu(a.j,_.mu)})};
617
+ _.r.destroy=function(){var a=this;if(this.w)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.w=!0;return _.$t.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Ja);var b=a.getTrackManager();b&&b.destroy();a.l&&(a.l.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.l=null);a.j&&(a.j.destroy(),a.j=null);a.f=null})};_.r.getDrmInfo=function(){return this.o?this.o.getDrmInfo():null};
618
+ _.r.getTrackManager=function(){return this.he};
619
+ _.r.load=function(a){var b=this,c,d,e,f,g;return _.I(function(k){switch(k.a){case 1:if(b.w)return k["return"](Promise.reject(new _.O(_.P,7,7E3)));if(!b.getSurface()||!b.getSurface().getMedia())return k["return"](Promise.reject("No surface or no media element in surface"));c=_.N;d=b.D.getMedia();b.I=Date.now()/1E3;b.f=new _.ku;b.h.on(b,_.kg,function(){b.f&&_.fu(b.f.a,b.getState())});uu(b.j,1);b.fa=_.Vn(a);b.configuration=_.Rn([b.Va,a]);b.log.debug(_.cb,b.configuration);b.log.debug(_.ub,b.fa);e=_.du(b.configuration,
620
+ [_.ye,"native"]);b.T=e.create(b);b.T.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.oi(_.rg)&&!_.vj()&&(b.A=new Np(b),b.A.start(d));b.l?b.l.release():b.l=new lp(b);d.textTracks&&np(b.l,d.textTracks);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.h.one(d,fd,function(){b.trigger(new _.Q(_.Cg))});null==b.configuration.startTime&&Eu(b,d);_.tj()&&Fu(b,d);
621
+ _.F(k,2);yu(b,d);return _.y(k,Bu(b),4);case 4:return _.y(k,Du(b).U,5);case 5:_.G(k,0);break;case 2:g=_.H(k),b.H=!1,b.onError(g),_.A(k)}})};_.r.onError=function(a){this.H||(a.severity===_.P&&null!==this.j&&uu(this.j,_.Fo),this.trigger(new _.Q(_.qe,{detail:a})))};_.r.pi=function(){return new Gt};_.r.getState=function(){return null!==this.j?this.j.getState().currentState:7};
617
622
  _.r.getPresentationStartTime=function(){if(this.a&&this.a.getStartDate&&this.isLive()){var a=this.a.getStartDate();return isNaN(a.getTime())?null:a.getTime()/1E3}return null};_.r.getSeekRange=function(){var a=this.getSurface().getMedia();if(a&&a.src){a=a.seekable;if(a.length)return this.G=a={start:a.start(0),end:a.end(a.length-1)};if(this.G)return this.G}return{start:0,end:0}};_.r.isLive=function(){return this.a&&this.a.src?Infinity===this.a.duration:!1};
618
- _.r.getStats=function(){if(!this.f||!this.a)return _.cu();this.f&&_.Xt(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.A=a.videoWidth;b.j=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.o=Number(a.droppedVideoFrames),b.l=c,this.f.D=Number(a.corruptedVideoFrames));if(a=this.getTrackManager())if(a=a.sa())a.bandwidth&&(this.f.w=a.bandwidth),a.Vd&&(this.f.h=a.Vd);return this.f.getStats()};
619
- _.r.getTimelineCues=function(){return this.l?this.l.getTimelineCues():[]};_.r.getCueTimeline=function(){return null};xu.prototype.a=function(){return Cd};xu.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.Lc,e=c===_.Qc,f=c===_.Xl;return _.nj()||d||e||f&&!_.oj()?0:""!==tj().canPlayType(c)?f&&_.oj()&&(window.ManagedMediaSource||window.MediaSource&&MediaSource.isTypeSupported)&&!b.streaming.preferNativeHlsOnSafari?1:2:0};xu.prototype.f=function(a){return a===_.pa};xu.prototype.create=function(){return new nu};_.w(yu,S);_.r=yu.prototype;
620
- _.r.open=function(a,b){var c=this,d,e,f,g,k,l,m;return _.I(function(n){if(1==n.a){if(c.w)throw new _.O(_.P,7,7008,"Cannot call open() while "+c.w+fa);if(0!==a)throw new _.O(_.P,7,7007,"The index parameter only supports the value of 0.");if(0===b.length)throw new _.O(_.P,7,7003,kb);if(b.some(function(p){return!p.id||!p.source}))throw new _.O(_.P,7,7100,"Some config is missing required properties `id` or `source`!");d=new Set(b.map(function(p){return p.id}));if(d.size!==b.length)throw new _.O(_.P,7,
621
- 7100,"Some config contains a non-unique property `id`!");if(e=b[0].playlist){f=e.timeline;g=["flat","basic"];if(f&&!g.includes(f))throw new _.O(_.P,7,7100,"Unsupported `playlist.timeline` config value!");k=e.startTime;if(null!=k&&(typeof k!==_.h||0>k))throw new _.O(_.P,7,7100,"Invalid `playlist.startTime` config value!");l=e.endTime;if(null!=l&&(typeof l!==_.h||0>l||null!=k&&l<=k))throw new _.O(_.P,7,7100,"Invalid `playlist.endTime` config value!");m=e.content;if("DVR"===m&&!l)throw new _.O(_.P,7,
622
- 7100,"`playlist.endTime` config value is required for DVR content!");}Dh(n);zu(c);c.w="open";return _.x(n,Du(c,b),4)}2!=n.a&&(c.H=0,c.o=b,c.ba=!0,Au(c,b[0].playlist||{}));_.Eh(n);c.w=null;return _.Fh(n)})};
623
- _.r.hk=function(a){var b=this,c;return _.I(function(d){if(1==d.a){if(b.w)throw new _.O(_.P,7,7008,"Cannot call addItem() while "+b.w+fa);if(!b.ba)throw new _.O(_.P,7,7008,"open() must be called before addItem()!");if(!a.id||!a.source)throw new _.O(_.P,7,7100,"The config is missing required properties `id` or `source`!");c=new Set(b.o.map(function(e){return e.id}));if(c.has(a.id))throw new _.O(_.P,7,7100,"A config with this `id` already exists in the playlist!");Dh(d);b.w="addItem";b.o.push(a);return _.x(d,
624
- Eu(b,a),2)}_.Eh(d);b.w=null;return _.Fh(d)})};_.r.getCurrentItem=function(){return this.o[this.H]||null};_.r.getCurrentItemIndex=function(){return this.H};_.r.zm=function(){return _.ph(this.o).concat()};_.r.qe=function(){return this.o.length};_.r.getTimeline=function(){return this.a?this.a.getTimeline():null};_.r.seekWith=function(a){return this.a?this.a.seekWith(a):Promise.resolve()};_.r.release=function(){this.o=[];this.H=0;this.ba=!1;return S.prototype.release.call(this)};
625
- _.r.destroy=function(){zu(this);return S.prototype.destroy.call(this)};_.r.setCdnErrorCallback=function(){throw new _.O(1,7,7009,"CDN switching is not supported!");};_.K("clpp.playlist.ScPlaylist",yu);yu.prototype.setCdnErrorCallback=yu.prototype.setCdnErrorCallback;yu.prototype.destroy=yu.prototype.destroy;yu.prototype.release=yu.prototype.release;yu.prototype.seekWith=yu.prototype.seekWith;yu.prototype.getTimeline=yu.prototype.getTimeline;yu.prototype.getSize=yu.prototype.qe;
626
- yu.prototype.getPlaylist=yu.prototype.zm;yu.prototype.getCurrentItemIndex=yu.prototype.getCurrentItemIndex;yu.prototype.getCurrentItem=yu.prototype.getCurrentItem;yu.prototype.addItem=yu.prototype.hk;yu.prototype.open=yu.prototype.open;_.w(Hu,_.Di);_.r=Hu.prototype;_.r.Tb=function(){return this.f};_.r.wf=function(){return this.f?this.f.player:null};_.r.Ai=function(){return this.o.get(this.a+1)||null};_.r.Di=function(){return this.o.get(this.a-1)||null};_.r.Ci=function(){return[this.Di(),this.Ai()].filter(Boolean)};_.r.Oo=function(a){if(0<this.h.length)throw Error("Cannot re-set items in the playlist");this.g.info("Set items",a);this.h=a.map(function(b,c){return{config:b,index:c,preloadPromise:Promise.resolve(),disposers:[]}})};
627
- _.r.No=function(a){if(0===this.h.length)throw Error(jb);if(0>a||a>this.h.length-1)throw Error("Index out of bounds");this.a=a};_.r.ue=function(){return this.a<this.h.length-1};_.r.Li=function(){return 0<this.a};
628
- _.r.vo=function(){var a=this,b,c;return _.I(function(d){switch(d.a){case 1:if(a.l)return a.g.warn("Cannot play first item while busy"),d["return"]();if(0===a.h.length)return a.g.warn(jb),d["return"]();a.l=!0;a.g.info("First (index: "+a.a+")");b=a.h[a.a];_.F(d,2,3);a.g.info("First loading (index: "+a.a+")");return _.x(d,Pu(a,b),5);case 5:a.g.info("First playing (index: "+a.a+")");case 3:_.Eh(d);a.l=!1;Uu(a);_.Fh(d);break;case 2:throw c=_.H(d),a.g.error("First failed (index: "+a.a+")"),c;}})};
629
- _.r.yj=function(){var a=this,b,c,d;return _.I(function(e){switch(e.a){case 1:if(a.l)return a.g.warn("Cannot play next item while busy"),e["return"]();if(!a.ue())return a.g.warn("There are no more items in the playlist"),e["return"]();a.l=!0;a.a+=1;a.g.info("Next (index: "+a.a+")");b=a.f;a.j.transition===_.lf&&b.player.pause();Iu(a,a.a+-2);a.o["delete"](a.a);c=a.h[a.a];_.F(e,2,3);a.g.info("Next loading (index: "+a.a+")");return _.x(e,Qu(a,c),5);case 5:a.g.info("Next playing (index: "+a.a+")");case 3:_.Eh(e);
630
- a.l=!1;if(!b){e.C(6);break}return _.x(e,Mu(a,b),6);case 6:Uu(a);_.Fh(e);break;case 2:throw d=_.H(e),a.g.error("Next failed (index: "+a.a+")"),d;}})};
631
- _.r.wo=function(){var a=this,b,c,d;return _.I(function(e){switch(e.a){case 1:if(a.l)return a.g.warn("Cannot play previous item while busy"),e["return"]();if(!a.Li())return a.g.warn("There are no more previous items in the playlist"),e["return"]();a.l=!0;--a.a;a.g.info("Previous (index: "+a.a+")");b=a.f;a.j.transition===_.lf&&b.player.pause();Iu(a,a.a+2);a.o["delete"](a.a);c=a.h[a.a];_.F(e,2,3);a.g.info("Previous loading (index: "+a.a+")");return _.x(e,Qu(a,c),5);case 5:a.g.info("Previous playing (index: "+
632
- a.a+")");case 3:_.Eh(e);a.l=!1;if(!b){e.C(6);break}return _.x(e,Mu(a,b),6);case 6:Uu(a);_.Fh(e);break;case 2:throw d=_.H(e),a.g.error("Previous failed (index: "+a.a+")"),d;}})};_.r.destroy=function(){var a=this;return _.I(function(b){return 1==b.a?(a.g.info("Destroy"),_.x(b,Promise.all([Ju(a),a.f?Mu(a,a.f):Promise.resolve()]),2)):_.x(b,Vu(a),0)})};_.K(Dd,Hu);Hu.prototype.destroy=Hu.prototype.destroy;Hu.prototype.playPrev=Hu.prototype.wo;Hu.prototype.playNext=Hu.prototype.yj;
633
- Hu.prototype.playFirst=Hu.prototype.vo;Hu.prototype.hasPrev=Hu.prototype.Li;Hu.prototype.hasNext=Hu.prototype.ue;Hu.prototype.setIndex=Hu.prototype.No;Hu.prototype.setItems=Hu.prototype.Oo;Hu.prototype.getPreloading=Hu.prototype.Ci;Hu.prototype.getPrev=Hu.prototype.Di;Hu.prototype.getNext=Hu.prototype.Ai;Hu.prototype.getCurrentPlayer=Hu.prototype.wf;Hu.prototype.getCurrent=Hu.prototype.Tb;var Lu="preload",Nu=_.Ne;var Wu=new Map;_.r=Yu.prototype;_.r.destroy=function(){this.a.dispose();this.a=null};_.r.reset=function(){this.a=new muxjs.mp4.Transmuxer(this.f)};_.r.isSupported=function(a,b){var c="mp2t"===a.toLowerCase().split(";")[0].split("/")[1],d=a.toLowerCase().split(";")[0]===_.Tc;if(!window.muxjs||!c&&!d)return!1;if(d)return _.Xu(Xc);if(b)return _.Xu(Zu(b,a));c=Zu(_.Sc,a);d=Zu(_.Sg,a);return _.Xu(c)||_.Xu(d)};_.r.isMuxed=function(a,b){return 1<this.demuxMimeTypes(a,b).size};
634
- _.r.demuxMimeTypes=function(a,b){var c=new Map;c.set(a,b);try{var d=_.Fn(b),e=_.Gn(b).split(","),f=new Map,g=Dn(_.Sc,e),k=Dn(_.Sg,e);g&&f.set(_.Sc,this.convertCodecs(_.Sc,_.En(d,g)));k&&f.set(_.Sg,this.convertCodecs(_.Sg,_.En(d,k)));return f}catch(l){return c}};_.r.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]===_.Tc?Xc:"mp2t"===b.toLowerCase().split(";")[0].split("/")[1]?Zu(a,b):b};_.r.getOriginalMimeType=function(){return this.h};
635
- _.r.transmux=function(a){function b(){g={video:_.Pm.apply(Im,_.ph(d)),captions:f,audio:_.Pm.apply(Im,_.ph(e))}}function c(k){f=k.captions;var l=new Uint8Array(k.data.byteLength+k.initSegment.byteLength);l.set(k.initSegment,0);l.set(k.data,k.initSegment.byteLength);k.type===Aw?d.push(l):k.type===Bw&&e.push(l)}var d=[],e=[],f=[],g=null;a=_.Qi(a);this.a.on("data",c);this.a.on("done",b);this.a.push(a);this.a.flush();this.a.off("data",c);this.a.off("done",b);if(!g)throw new _.O(_.P,3,3018);return g};
636
- var Bw=_.Sc,Aw=_.Sg;$u.prototype.getCuePoints=function(){};$u.prototype.Yb=function(){};$u.prototype.Xb=function(){};_.K("clpp.ads.IAdsTimeline",$u);$u.prototype.hasPostroll=$u.prototype.Xb;$u.prototype.hasPreroll=$u.prototype.Yb;$u.prototype.getCuePoints=$u.prototype.getCuePoints;_.r=_.av.prototype;_.r.install=function(){};_.r.uninstall=function(){};_.r.beforeLoad=function(){};_.r.afterLoad=function(){};_.r.playerConstructed=function(){};_.r.playerDestroyed=function(){};_.w(bv,_.$p);bv.prototype.He=function(a,b){for(var c=a.drm.customData.headers||{},d=_.v(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};bv.prototype.ni=function(a,b){var c=wq(b);switch(this.o){case Cw:return c;case Dw:return(new _.vn(c)).a;default:throw Error("Unknown content ID strategy");}};bv.prototype.gj=function(a,b){b.headers[Ba]=Rc;this.He(a,b);var c={spc:_.Jm(b.body)};b.body=_.R.Nd(_.xn(c,!0))};
637
- bv.prototype.hj=function(a,b){var c=_.R.ga(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.Lm(c).buffer};_.K(zd,bv);bv.prototype.onFairPlayLicenseResponse=bv.prototype.hj;bv.prototype.onFairPlayLicenseRequest=bv.prototype.gj;bv.prototype.extractFairPlayContentId=bv.prototype.ni;bv.prototype.onLicenseRequest=bv.prototype.He;bv.prototype.constructor=bv.prototype.constructor;bv.NAME=Ua;var Dw="hostname",Cw="full-skd";
638
- bv.FairPlayContentIdStrategy={HOSTNAME:Dw,FULL_SKD:Cw};_.w(cv,_.av);cv.prototype.beforeLoad=function(a){a=a.getConfiguration();if(a.drm&&a.drm&&a.drm.env===Ua){a=a.drm.customData;if(!a)throw new _.O(_.P,7,7100,_.Nd);a=new bv(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||Cw);_.Vn(a)}};cv.prototype.uninstall=function(){delete _.Un.HeaderDrm};cv.prototype.id=function(){return"headerdrm"};_.K("clpp.drm.HeaderDrmComponent",cv);var kv;_.nv.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.j(b.contentRect.width,b.contentRect.height,a.h.isFullscreen())});this.f&&this.a.observe(this.f)};_.nv.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.pv.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.Sg);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.nm;c=c.play();var e=(new _.gj(function(){b(a)})).ia(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===pb?b(!0):b(!1)}):b(!0);return d};
639
- var ov=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,
623
+ _.r.getStats=function(){if(!this.f||!this.a)return _.lu();this.f&&_.fu(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.A=a.videoWidth;b.j=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.o=Number(a.droppedVideoFrames),b.l=c,this.f.D=Number(a.corruptedVideoFrames));if(a=this.getTrackManager())if(a=a.sa())a.bandwidth&&(this.f.w=a.bandwidth),a.ee&&(this.f.h=a.ee);return this.f.getStats()};
624
+ _.r.getTimelineCues=function(){return this.l?this.l.getTimelineCues():[]};_.r.getCueTimeline=function(){return null};Gu.prototype.a=function(){return Cd};Gu.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.Lc,e=c===_.Qc,f=c===_.am;return _.sj()||d||e||f&&!_.tj()?0:""!==yj().canPlayType(c)?f&&_.tj()&&(window.ManagedMediaSource||window.MediaSource&&MediaSource.isTypeSupported)&&!b.streaming.preferNativeHlsOnSafari?1:2:0};Gu.prototype.f=function(a){return a===_.pa};Gu.prototype.create=function(){return new wu};_.w(Hu,S);_.r=Hu.prototype;
625
+ _.r.ro=function(a,b){var c=this,d,e,f,g,k,l,m;return _.I(function(n){if(1==n.a){if(c.w)throw new _.O(_.P,7,7008,"Cannot call openPlaylist() while "+c.w+fa);if(0!==a)throw new _.O(_.P,7,7007,"The index parameter only supports the value of 0.");if(0===b.length)throw new _.O(_.P,7,7003,kb);if(b.some(function(p){return!p.id||!p.source}))throw new _.O(_.P,7,7100,"Some config is missing required properties `id` or `source`!");d=new Set(b.map(function(p){return p.id}));if(d.size!==b.length)throw new _.O(_.P,
626
+ 7,7100,"Some config contains a non-unique property `id`!");if(e=b[0].playlist){f=e.timeline;g=["flat","basic"];if(f&&!g.includes(f))throw new _.O(_.P,7,7100,"Unsupported `playlist.timeline` config value!");k=e.startTime;if(null!=k&&(typeof k!==_.h||0>k))throw new _.O(_.P,7,7100,"Invalid `playlist.startTime` config value!");l=e.endTime;if(null!=l&&(typeof l!==_.h||0>l||null!=k&&l<=k))throw new _.O(_.P,7,7100,"Invalid `playlist.endTime` config value!");m=e.content;if("DVR"===m&&!l)throw new _.O(_.P,
627
+ 7,7100,"`playlist.endTime` config value is required for DVR content!");}Ih(n);Iu(c);c.w="openPlaylist";return _.y(n,Mu(c,b),4)}2!=n.a&&(c.H=0,c.o=b,c.ba=!0,Ju(c,b[0].playlist||{}));_.Jh(n);c.w=null;return _.Kh(n)})};
628
+ _.r.qk=function(a){var b=this,c;return _.I(function(d){if(1==d.a){if(b.w)throw new _.O(_.P,7,7008,"Cannot call addItem() while "+b.w+fa);if(!b.ba)throw new _.O(_.P,7,7008,"openPlaylist() must be called before addItem()!");if(!a.id||!a.source)throw new _.O(_.P,7,7100,"The config is missing required properties `id` or `source`!");c=new Set(b.o.map(function(e){return e.id}));if(c.has(a.id))throw new _.O(_.P,7,7100,"A config with this `id` already exists in the playlist!");Ih(d);b.w="addItem";b.o.push(a);
629
+ return _.y(d,Nu(b,a),2)}_.Jh(d);b.w=null;return _.Kh(d)})};_.r.getCurrentItem=function(){return this.o[this.H]||null};_.r.getCurrentItemIndex=function(){return this.H};_.r.Im=function(){return _.uh(this.o).concat()};_.r.Be=function(){return this.o.length};_.r.getTimeline=function(){return this.a?this.a.getTimeline():null};_.r.seekWith=function(a){return this.a?this.a.seekWith(a):Promise.resolve()};_.r.release=function(){this.o=[];this.H=0;this.ba=!1;return S.prototype.release.call(this)};
630
+ _.r.destroy=function(){Iu(this);return S.prototype.destroy.call(this)};_.r.setCdnErrorCallback=function(){throw new _.O(1,7,7009,"CDN switching is not supported!");};_.K("clpp.playlist.ScPlaylist",Hu);Hu.prototype.setCdnErrorCallback=Hu.prototype.setCdnErrorCallback;Hu.prototype.destroy=Hu.prototype.destroy;Hu.prototype.release=Hu.prototype.release;Hu.prototype.seekWith=Hu.prototype.seekWith;Hu.prototype.getTimeline=Hu.prototype.getTimeline;Hu.prototype.getSize=Hu.prototype.Be;
631
+ Hu.prototype.getPlaylist=Hu.prototype.Im;Hu.prototype.getCurrentItemIndex=Hu.prototype.getCurrentItemIndex;Hu.prototype.getCurrentItem=Hu.prototype.getCurrentItem;Hu.prototype.addItem=Hu.prototype.qk;Hu.prototype.openPlaylist=Hu.prototype.ro;_.w(Qu,_.Ii);_.r=Qu.prototype;_.r.Wb=function(){return this.f};_.r.Jf=function(){return this.f?this.f.player:null};_.r.Ki=function(){return this.o.get(this.a+1)||null};_.r.Ni=function(){return this.o.get(this.a-1)||null};_.r.Mi=function(){return[this.Ni(),this.Ki()].filter(Boolean)};_.r.Yo=function(a){if(0<this.h.length)throw Error("Cannot re-set items in the playlist");this.g.info("Set items",a);this.h=a.map(function(b,c){return{config:b,index:c,preloadPromise:Promise.resolve(),disposers:[]}})};
632
+ _.r.Xo=function(a){if(0===this.h.length)throw Error(jb);if(0>a||a>this.h.length-1)throw Error("Index out of bounds");this.a=a};_.r.Fe=function(){return this.a<this.h.length-1};_.r.Ui=function(){return 0<this.a};
633
+ _.r.Fo=function(){var a=this,b,c;return _.I(function(d){switch(d.a){case 1:if(a.l)return a.g.warn("Cannot play first item while busy"),d["return"]();if(0===a.h.length)return a.g.warn(jb),d["return"]();a.l=!0;a.g.info("First (index: "+a.a+")");b=a.h[a.a];_.F(d,2,3);a.g.info("First loading (index: "+a.a+")");return _.y(d,Yu(a,b),5);case 5:a.g.info("First playing (index: "+a.a+")");case 3:_.Jh(d);a.l=!1;cv(a);_.Kh(d);break;case 2:throw c=_.H(d),a.g.error("First failed (index: "+a.a+")"),c;}})};
634
+ _.r.Hj=function(){var a=this,b,c,d;return _.I(function(e){switch(e.a){case 1:if(a.l)return a.g.warn("Cannot play next item while busy"),e["return"]();if(!a.Fe())return a.g.warn("There are no more items in the playlist"),e["return"]();a.l=!0;a.a+=1;a.g.info("Next (index: "+a.a+")");b=a.f;a.j.transition===_.lf&&b.player.pause();Ru(a,a.a+-2);a.o["delete"](a.a);c=a.h[a.a];_.F(e,2,3);a.g.info("Next loading (index: "+a.a+")");return _.y(e,Zu(a,c),5);case 5:a.g.info("Next playing (index: "+a.a+")");case 3:_.Jh(e);
635
+ a.l=!1;if(!b){e.C(6);break}return _.y(e,Vu(a,b),6);case 6:cv(a);_.Kh(e);break;case 2:throw d=_.H(e),a.g.error("Next failed (index: "+a.a+")"),d;}})};
636
+ _.r.Go=function(){var a=this,b,c,d;return _.I(function(e){switch(e.a){case 1:if(a.l)return a.g.warn("Cannot play previous item while busy"),e["return"]();if(!a.Ui())return a.g.warn("There are no more previous items in the playlist"),e["return"]();a.l=!0;--a.a;a.g.info("Previous (index: "+a.a+")");b=a.f;a.j.transition===_.lf&&b.player.pause();Ru(a,a.a+2);a.o["delete"](a.a);c=a.h[a.a];_.F(e,2,3);a.g.info("Previous loading (index: "+a.a+")");return _.y(e,Zu(a,c),5);case 5:a.g.info("Previous playing (index: "+
637
+ a.a+")");case 3:_.Jh(e);a.l=!1;if(!b){e.C(6);break}return _.y(e,Vu(a,b),6);case 6:cv(a);_.Kh(e);break;case 2:throw d=_.H(e),a.g.error("Previous failed (index: "+a.a+")"),d;}})};_.r.destroy=function(){var a=this;return _.I(function(b){return 1==b.a?(a.g.info("Destroy"),_.y(b,Promise.all([Su(a),a.f?Vu(a,a.f):Promise.resolve()]),2)):_.y(b,dv(a),0)})};_.K(Dd,Qu);Qu.prototype.destroy=Qu.prototype.destroy;Qu.prototype.playPrev=Qu.prototype.Go;Qu.prototype.playNext=Qu.prototype.Hj;
638
+ Qu.prototype.playFirst=Qu.prototype.Fo;Qu.prototype.hasPrev=Qu.prototype.Ui;Qu.prototype.hasNext=Qu.prototype.Fe;Qu.prototype.setIndex=Qu.prototype.Xo;Qu.prototype.setItems=Qu.prototype.Yo;Qu.prototype.getPreloading=Qu.prototype.Mi;Qu.prototype.getPrev=Qu.prototype.Ni;Qu.prototype.getNext=Qu.prototype.Ki;Qu.prototype.getCurrentPlayer=Qu.prototype.Jf;Qu.prototype.getCurrent=Qu.prototype.Wb;var Uu="preload",Wu=_.Oe;var ev=new Map;_.r=gv.prototype;_.r.destroy=function(){this.a.dispose();this.a=null};_.r.reset=function(){this.a=new muxjs.mp4.Transmuxer(this.f)};_.r.isSupported=function(a,b){var c="mp2t"===a.toLowerCase().split(";")[0].split("/")[1],d=a.toLowerCase().split(";")[0]===_.Tc;if(!window.muxjs||!c&&!d)return!1;if(d)return _.fv(Yc);if(b)return _.fv(hv(b,a));c=hv(_.Sc,a);d=hv(_.Tg,a);return _.fv(c)||_.fv(d)};_.r.isMuxed=function(a,b){return 1<this.demuxMimeTypes(a,b).size};
639
+ _.r.demuxMimeTypes=function(a,b){var c=new Map;c.set(a,b);try{var d=_.Jn(b),e=_.Kn(b).split(","),f=new Map,g=Hn(_.Sc,e),k=Hn(_.Tg,e);g&&f.set(_.Sc,this.convertCodecs(_.Sc,_.In(d,g)));k&&f.set(_.Tg,this.convertCodecs(_.Tg,_.In(d,k)));return f}catch(l){return c}};_.r.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]===_.Tc?Yc:"mp2t"===b.toLowerCase().split(";")[0].split("/")[1]?hv(a,b):b};_.r.getOriginalMimeType=function(){return this.h};
640
+ _.r.transmux=function(a){function b(){g={video:_.Tm.apply(Mm,_.uh(d)),captions:f,audio:_.Tm.apply(Mm,_.uh(e))}}function c(k){f=k.captions;var l=new Uint8Array(k.data.byteLength+k.initSegment.byteLength);l.set(k.initSegment,0);l.set(k.data,k.initSegment.byteLength);k.type===Jw?d.push(l):k.type===Kw&&e.push(l)}var d=[],e=[],f=[],g=null;a=_.Vi(a);this.a.on("data",c);this.a.on("done",b);this.a.push(a);this.a.flush();this.a.off("data",c);this.a.off("done",b);if(!g)throw new _.O(_.P,3,3018);return g};
641
+ var Kw=_.Sc,Jw=_.Tg;iv.prototype.getCuePoints=function(){};iv.prototype.ac=function(){};iv.prototype.$b=function(){};_.K("clpp.ads.IAdsTimeline",iv);iv.prototype.hasPostroll=iv.prototype.$b;iv.prototype.hasPreroll=iv.prototype.ac;iv.prototype.getCuePoints=iv.prototype.getCuePoints;_.r=_.jv.prototype;_.r.install=function(){};_.r.uninstall=function(){};_.r.beforeLoad=function(){};_.r.afterLoad=function(){};_.r.playerConstructed=function(){};_.w(kv,_.eq);kv.prototype.Re=function(a,b){for(var c=a.drm.customData.headers||{},d=_.v(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};kv.prototype.Ai=function(a,b){var c=Bq(b);switch(this.o){case Lw:return c;case Mw:return(new _.zn(c)).a;default:throw Error("Unknown content ID strategy");}};kv.prototype.pj=function(a,b){b.headers[Ba]=Rc;this.Re(a,b);var c={spc:_.Nm(b.body)};b.body=_.R.Yd(_.Bn(c,!0))};
642
+ kv.prototype.qj=function(a,b){var c=_.R.ea(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.Pm(c).buffer};_.K(zd,kv);kv.prototype.onFairPlayLicenseResponse=kv.prototype.qj;kv.prototype.onFairPlayLicenseRequest=kv.prototype.pj;kv.prototype.extractFairPlayContentId=kv.prototype.Ai;kv.prototype.onLicenseRequest=kv.prototype.Re;kv.prototype.constructor=kv.prototype.constructor;kv.NAME=Ua;var Mw="hostname",Lw="full-skd";
643
+ kv.FairPlayContentIdStrategy={HOSTNAME:Mw,FULL_SKD:Lw};_.w(lv,_.jv);lv.prototype.beforeLoad=function(a){a=a.getConfiguration();if(a.drm&&a.drm&&a.drm.env===Ua){a=a.drm.customData;if(!a)throw new _.O(_.P,7,7100,_.Nd);a=new kv(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||Lw);_.Zn(a)}};lv.prototype.uninstall=function(){delete _.Yn.HeaderDrm};lv.prototype.id=function(){return"headerdrm"};_.K("clpp.drm.HeaderDrmComponent",lv);var uv;_.xv.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.j(b.contentRect.width,b.contentRect.height,a.h.isFullscreen())});this.f&&this.a.observe(this.f)};_.xv.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.zv.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.Tg);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.rm;c=c.play();var e=(new _.lj(function(){b(a)})).ia(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===pb?b(!0):b(!1)}):b(!0);return d};
644
+ var yv=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,
640
645
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
641
646
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
642
647
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
643
648
  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,
644
649
  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,
645
- 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]);_.qv={};_.r=_.vv.prototype;_.r.getBackgroundColor=function(){return this.K};_.r.setBackgroundColor=function(a){this.K=a;this.bc()};_.r.getWindowColor=function(){return this.T};_.r.setWindowColor=function(a){this.T=a;this.bc()};_.r.getFontFamily=function(){return this.P};_.r.setFontFamily=function(a){this.P=a;this.bc()};_.r.getFontColor=function(){return this.M};_.r.setFontColor=function(a){this.M=a;this.bc()};_.r.getFontSize=function(){return this.I};_.r.setFontSize=function(a){this.I=a;this.bc()};
646
- _.r.getFontSizePercent=function(){return null===this.B?Ew:this.B};_.r.setFontSizePercent=function(a){this.B=a;this.bc()};_.r.getEdgeColor=function(){return this.H};_.r.setEdgeColor=function(a){this.H=a;this.bc()};_.r.getEdgeType=function(){return this.o};_.r.setEdgeType=function(a){this.o=a;this.bc()};_.vv.prototype.setEdgeType=_.vv.prototype.setEdgeType;_.vv.prototype.getEdgeType=_.vv.prototype.getEdgeType;_.vv.prototype.setEdgeColor=_.vv.prototype.setEdgeColor;_.vv.prototype.getEdgeColor=_.vv.prototype.getEdgeColor;
647
- _.vv.prototype.setFontSizePercent=_.vv.prototype.setFontSizePercent;_.vv.prototype.getFontSizePercent=_.vv.prototype.getFontSizePercent;_.vv.prototype.setFontSize=_.vv.prototype.setFontSize;_.vv.prototype.getFontSize=_.vv.prototype.getFontSize;_.vv.prototype.setFontColor=_.vv.prototype.setFontColor;_.vv.prototype.getFontColor=_.vv.prototype.getFontColor;_.vv.prototype.setFontFamily=_.vv.prototype.setFontFamily;_.vv.prototype.getFontFamily=_.vv.prototype.getFontFamily;
648
- _.vv.prototype.setWindowColor=_.vv.prototype.setWindowColor;_.vv.prototype.getWindowColor=_.vv.prototype.getWindowColor;_.vv.prototype.setBackgroundColor=_.vv.prototype.setBackgroundColor;_.vv.prototype.getBackgroundColor=_.vv.prototype.getBackgroundColor;var Ew=1/15;_.w(_.Ov,_.vv);_.r=_.Ov.prototype;_.r.append=function(){};_.r.remove=function(){return!0};_.r.isTextVisible=function(){return this.w};_.r.setTextVisibility=function(a){this.w=a};
649
- _.r.bc=function(){if(!this.j){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.Fv(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.h.textContent="."+this.f+"::cue {"+b+"}"}};_.r.destroy=function(){this.l.classList.remove(this.f);document.head.removeChild(this.h);this.j=!0;return Promise.resolve()};var Nv=0;Pv.prototype.a=function(){return!0};Pv.prototype.create=function(a){return new _.Ov(a)};Qv.prototype.parseInit=function(a){try{var b=_.sv(_.Nc);if(b){var c=new b(this.f);c.parseInit(a)}else this.g.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=_.sv(_.Oc);d?(c=new d(this.f),c.parseInit(a)):this.g.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 _.O(_.P,2,2011);}};
650
- Qv.prototype.parseMedia=function(a,b){if(!this.a)throw new _.O(_.P,2,2011);return this.a.parseMedia(a,b)};_.en(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=_.Qi(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});
651
- _.en(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;te in document||(Object.defineProperty(document,te,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
652
- {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",dv);document.addEventListener("webkitfullscreenerror",dv);document.addEventListener("mozfullscreenchange",dv);document.addEventListener("mozfullscreenerror",dv);document.addEventListener("MSFullscreenChange",dv);document.addEventListener("MSFullscreenError",dv)}});
653
- _.en(function(){_.Vh("InputEvent.install");_.kj("Trident/")&&HTMLInputElement.prototype.addEventListener!==lv&&(_.Uh("Patching input event support on IE."),kv=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=lv)});_.en(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.en(function(){_.Vh("mathRound.install")});
654
- _.en(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Vh("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=fv,document.exitPictureInPicture=gv,document.addEventListener("webkitpresentationmodechanged",ev,!0))}});
655
- _.en(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=hv)}});_.en(function(){_.Vh("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}}});
656
- _.en(function(){if(window.VTTCue)_.Uh("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Uh(Sb),window.VTTCue=iv;else if(6===a)_.Uh("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=jv;else{try{var b=!!iv(1,2,"")}catch(c){b=!1}b&&(_.Uh(Sb),window.VTTCue=iv)}}else _.Wh("VTTCue not available.")});_.$h(new xu);_.rv(_.Mc,Qv);_.Ut("native",new Pv);mn(_.Tc,function(){return new Yu(_.Tc)});mn(_.Tg,function(){return new Yu(_.Tg)});_.r=_.Rv.prototype;_.r.getDuration=function(){return this.a};_.r.getId=function(){return this.id};_.r.hc=function(){return this.f};_.r.ye=function(){return this.h};_.r.ua=function(a){return this.getId()===a.getId()&&this.hc()===a.hc()&&this.getDuration()===a.getDuration()&&this.ye()===a.ye()};_.K("clpp.media.TimelineWindow",_.Rv);_.Rv.prototype.isDynamic=_.Rv.prototype.ye;_.Rv.prototype.getStart=_.Rv.prototype.hc;_.Rv.prototype.getId=_.Rv.prototype.getId;_.Rv.prototype.getDuration=_.Rv.prototype.getDuration;_.Fw=new _.M("clpp.media.TimestampParser");_.r=_.Sv.prototype;_.r.Cm=function(a){return this.a[a]||null};_.r.Dm=function(){return this.a.length};_.r.Em=function(){return this.a};_.r.yi=function(){return this.a[this.f]||null};_.r.qm=function(){return this.f};_.K("clpp.media.Timeline",_.Sv);_.Sv.prototype.getCurrentWindowIndex=_.Sv.prototype.qm;_.Sv.prototype.getCurrentWindow=_.Sv.prototype.yi;_.Sv.prototype.getWindows=_.Sv.prototype.Em;_.Sv.prototype.getWindowCount=_.Sv.prototype.Dm;_.Sv.prototype.getWindow=_.Sv.prototype.Cm;_.Vv={};_.Wv={};var wv="raised",xv="depressed",zv="dropshadow",yv="uniform";_.K("clpp.text.EdgeType",{NONE:_.Ze,RAISED:wv,DEPRESSED:xv,DROP_SHADOW:zv,UNIFORM:yv});_.r=_.Yv.prototype;_.r.onPlayerCreated=function(){};_.r.onContentWillLoad=function(){return Promise.resolve()};_.r.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.r.onPlayerWillDestroy=function(){};_.r.onPlayerWillRelease=function(){};}.call(g,this));
650
+ 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]);_.Av={};_.r=_.Ev.prototype;_.r.getBackgroundColor=function(){return this.K};_.r.setBackgroundColor=function(a){this.K=a;this.ec()};_.r.getWindowColor=function(){return this.T};_.r.setWindowColor=function(a){this.T=a;this.ec()};_.r.getFontFamily=function(){return this.P};_.r.setFontFamily=function(a){this.P=a;this.ec()};_.r.getFontColor=function(){return this.M};_.r.setFontColor=function(a){this.M=a;this.ec()};_.r.getFontSize=function(){return this.I};_.r.setFontSize=function(a){this.I=a;this.ec()};
651
+ _.r.getFontSizePercent=function(){return null===this.B?Nw:this.B};_.r.setFontSizePercent=function(a){this.B=a;this.ec()};_.r.getEdgeColor=function(){return this.H};_.r.setEdgeColor=function(a){this.H=a;this.ec()};_.r.getEdgeType=function(){return this.o};_.r.setEdgeType=function(a){this.o=a;this.ec()};_.Ev.prototype.setEdgeType=_.Ev.prototype.setEdgeType;_.Ev.prototype.getEdgeType=_.Ev.prototype.getEdgeType;_.Ev.prototype.setEdgeColor=_.Ev.prototype.setEdgeColor;_.Ev.prototype.getEdgeColor=_.Ev.prototype.getEdgeColor;
652
+ _.Ev.prototype.setFontSizePercent=_.Ev.prototype.setFontSizePercent;_.Ev.prototype.getFontSizePercent=_.Ev.prototype.getFontSizePercent;_.Ev.prototype.setFontSize=_.Ev.prototype.setFontSize;_.Ev.prototype.getFontSize=_.Ev.prototype.getFontSize;_.Ev.prototype.setFontColor=_.Ev.prototype.setFontColor;_.Ev.prototype.getFontColor=_.Ev.prototype.getFontColor;_.Ev.prototype.setFontFamily=_.Ev.prototype.setFontFamily;_.Ev.prototype.getFontFamily=_.Ev.prototype.getFontFamily;
653
+ _.Ev.prototype.setWindowColor=_.Ev.prototype.setWindowColor;_.Ev.prototype.getWindowColor=_.Ev.prototype.getWindowColor;_.Ev.prototype.setBackgroundColor=_.Ev.prototype.setBackgroundColor;_.Ev.prototype.getBackgroundColor=_.Ev.prototype.getBackgroundColor;var Nw=1/15;_.w(_.Lv,_.Ev);_.r=_.Lv.prototype;_.r.append=function(){};_.r.remove=function(){return!0};_.r.isTextVisible=function(){return this.w};_.r.setTextVisibility=function(a){this.w=a};
654
+ _.r.ec=function(){if(!this.j){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.Jv(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.h.textContent="."+this.f+"::cue {"+b+"}"}};_.r.destroy=function(){this.l.classList.remove(this.f);document.head.removeChild(this.h);this.j=!0;return Promise.resolve()};var Kv=0;Rv.prototype.a=function(){return!0};Rv.prototype.create=function(a){return new _.Lv(a)};Zv.prototype.parseInit=function(a){try{var b=_.Cv(_.Nc);if(b){var c=new b(this.f);c.parseInit(a)}else this.g.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=_.Cv(_.Oc);d?(c=new d(this.f),c.parseInit(a)):this.g.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 _.O(_.P,2,2011);}};
655
+ Zv.prototype.parseMedia=function(a,b){if(!this.a)throw new _.O(_.P,2,2011);return this.a.parseMedia(a,b)};_.jn(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=_.Vi(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});
656
+ _.jn(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;te in document||(Object.defineProperty(document,te,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
657
+ {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",mv);document.addEventListener("webkitfullscreenerror",mv);document.addEventListener("mozfullscreenchange",mv);document.addEventListener("mozfullscreenerror",mv);document.addEventListener("MSFullscreenChange",mv);document.addEventListener("MSFullscreenError",mv)}});
658
+ _.jn(function(){_.$h("InputEvent.install");_.pj("Trident/")&&HTMLInputElement.prototype.addEventListener!==vv&&(_.Zh("Patching input event support on IE."),uv=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=vv)});_.jn(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.jn(function(){_.$h("mathRound.install")});
659
+ _.jn(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.$h("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=ov,document.exitPictureInPicture=pv,document.addEventListener("webkitpresentationmodechanged",nv,!0))}});
660
+ _.jn(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=qv)}});_.jn(function(){_.$h("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}}});
661
+ _.jn(function(){if(window.VTTCue)_.Zh("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Zh(Tb),window.VTTCue=rv;else if(6===a)_.Zh("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=sv;else{try{var b=!!rv(1,2,"")}catch(c){b=!1}b&&(_.Zh(Tb),window.VTTCue=rv)}}else _.ai("VTTCue not available.")});_.fi(new Gu);_.Bv(_.Mc,Zv);_.cu("native",new Rv);qn(_.Tc,function(){return new gv(_.Tc)});qn(_.Ug,function(){return new gv(_.Ug)});_.r=_.$v.prototype;_.r.getDuration=function(){return this.a};_.r.getId=function(){return this.id};_.r.kc=function(){return this.f};_.r.Je=function(){return this.h};_.r.ua=function(a){return this.getId()===a.getId()&&this.kc()===a.kc()&&this.getDuration()===a.getDuration()&&this.Je()===a.Je()};_.K("clpp.media.TimelineWindow",_.$v);_.$v.prototype.isDynamic=_.$v.prototype.Je;_.$v.prototype.getStart=_.$v.prototype.kc;_.$v.prototype.getId=_.$v.prototype.getId;_.$v.prototype.getDuration=_.$v.prototype.getDuration;_.Ow=new _.M("clpp.media.TimestampParser");_.r=_.aw.prototype;_.r.Lm=function(a){return this.a[a]||null};_.r.Mm=function(){return this.a.length};_.r.Nm=function(){return this.a};_.r.Ii=function(){return this.a[this.f]||null};_.r.zm=function(){return this.f};_.K("clpp.media.Timeline",_.aw);_.aw.prototype.getCurrentWindowIndex=_.aw.prototype.zm;_.aw.prototype.getCurrentWindow=_.aw.prototype.Ii;_.aw.prototype.getWindows=_.aw.prototype.Nm;_.aw.prototype.getWindowCount=_.aw.prototype.Mm;_.aw.prototype.getWindow=_.aw.prototype.Lm;_.dw={};_.ew={};var Fv="raised",Gv="depressed",Iv="dropshadow",Hv="uniform";_.K("clpp.text.EdgeType",{NONE:_.Ze,RAISED:Fv,DEPRESSED:Gv,DROP_SHADOW:Iv,UNIFORM:Hv});_.r=_.gw.prototype;_.r.onPlayerCreated=function(){};_.r.onContentWillLoad=function(){return Promise.resolve()};_.r.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.r.onPlayerWillDestroy=function(){};_.r.onPlayerWillRelease=function(){};}.call(g,this));
657
662
  g.clpp._ = _;
658
663
  if (typeof(module)!="undefined"&&module.exports) {module.exports=g.clpp;}
659
664
  else if (typeof(define)!="undefined" && define.amd) {define(function(){return g.clpp;});}