@castlabs/prestoplay 6.29.0 → 6.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/cjs/cl.adobe.js +3 -3
  3. package/cjs/cl.airplay.js +3 -3
  4. package/cjs/cl.broadpeak.js +7 -7
  5. package/cjs/cl.cast.js +129 -127
  6. package/cjs/cl.conviva.js +32 -32
  7. package/cjs/cl.core.js +619 -621
  8. package/cjs/cl.crypto.js +9 -9
  9. package/cjs/cl.dash.js +92 -89
  10. package/cjs/cl.externs.js +36 -35
  11. package/cjs/cl.freewheel.js +25 -25
  12. package/cjs/cl.hls.js +78 -79
  13. package/cjs/cl.hlssmpte.js +6 -6
  14. package/cjs/cl.htmlcue.js +30 -30
  15. package/cjs/cl.ima.js +25 -24
  16. package/cjs/cl.mediatailor.js +3 -3
  17. package/cjs/cl.mse.js +352 -351
  18. package/cjs/cl.muxdata.js +14 -14
  19. package/cjs/cl.onboard.js +4 -4
  20. package/cjs/cl.persistent.js +15 -15
  21. package/cjs/cl.playlist.js +6 -6
  22. package/cjs/cl.simid.js +16 -16
  23. package/cjs/cl.smooth.js +71 -71
  24. package/cjs/cl.thumbnails.js +26 -26
  25. package/cjs/cl.tizen.js +71 -71
  26. package/cjs/cl.ttml.js +29 -29
  27. package/cjs/cl.verimatrix.js +5 -5
  28. package/cjs/cl.vimond.js +12 -12
  29. package/cjs/cl.vr.js +19 -19
  30. package/cjs/cl.vtt.js +14 -14
  31. package/cjs/cl.yospace.js +4 -4
  32. package/cjs/cl.youbora.js +38 -38
  33. package/cjs/polyfill.min.js +2 -2
  34. package/cl.adobe.js +3 -3
  35. package/cl.airplay.js +3 -3
  36. package/cl.broadpeak.js +6 -6
  37. package/cl.cast.js +101 -99
  38. package/cl.conviva.js +27 -27
  39. package/cl.core.js +486 -486
  40. package/cl.crypto.js +9 -9
  41. package/cl.dash.js +84 -83
  42. package/cl.externs.js +36 -35
  43. package/cl.freewheel.js +19 -19
  44. package/cl.hls.js +82 -82
  45. package/cl.hlssmpte.js +5 -5
  46. package/cl.htmlcue.js +26 -26
  47. package/cl.ima.js +19 -18
  48. package/cl.mediatailor.js +2 -2
  49. package/cl.mse.js +303 -303
  50. package/cl.muxdata.js +13 -13
  51. package/cl.onboard.js +4 -4
  52. package/cl.persistent.js +11 -11
  53. package/cl.playlist.js +5 -5
  54. package/cl.simid.js +14 -14
  55. package/cl.smooth.js +60 -60
  56. package/cl.thumbnails.js +19 -19
  57. package/cl.tizen.js +56 -56
  58. package/cl.ttml.js +22 -22
  59. package/cl.verimatrix.js +4 -4
  60. package/cl.vimond.js +8 -8
  61. package/cl.vr.js +14 -14
  62. package/cl.vtt.js +12 -12
  63. package/cl.yospace.js +3 -3
  64. package/cl.youbora.js +31 -31
  65. package/package.json +1 -1
  66. package/typings.d.ts +11 -1
package/cjs/cl.core.js CHANGED
@@ -1,454 +1,452 @@
1
1
  (function(){var g={}; var _ = {};
2
- (function(window){var ba,ca,ea,fa,ha,qa,ua,ya,za,Ca,Fa,Ga,Ia,La,Na,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,$a,ab,eb,gb,hb,ib,jb,kb,lb,nb,ob,sb,wb,Eb,Fb,Gb,Hb,Ib,Lb,Nb,Qb,Rb,Sb,Vb,Wb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,mc,nc,oc,Nc,Tc,ad,bd,jd,kd,ld,nd,od,pd,qd,sd,td,ud,vd,wd,xd,yd,Dd,Fd,Ld,Rd,Sd,Td,Ud,Vd,Wd,Yd,Zd,$d,ce,de,he,ne,we,ye,ze,He,$e,gf,jf,kf,lf,mf,nf,of,pf,qf,rf,sf,Af,Bf,Cf,Df,Ef,Ff,Hf,Lf,Nf,cg,fg,mg,Bg,Eg,Kg,Tg,Xg,Yg,Zg,$g,ah,ch,dh,eh,jh,nh,rh,th,sh,uh,vh,wh,xh,Ah,Dh,Bh,Ch,Eh,Gh,Hh,Lh,Oh,Th,Xh,bi,hi,ii,ji,ki,li,mi,ni,oi,pi,ti,wi,
3
- ui,xi,yi,Ai,Bi,Ci,Di,Fi,Hi,Gi,Ji,Li,Pi,Ri,Si,Vi,Qi,Mi,$i,aj,bj,dj,fj,gj,tj,vj,wj,xj,Hj,yj,Oj,Nj,Tj,Xj,Zj,ak,ck,bk,fk,gk,ek,Vj,wk,Uj,ik,Wj,xk,hk,Rj,uk,Pj,dk,zk,tk,qk,rk,pk,sk,ok,yk,Bk,vk,Ek,Sj,Qj,jk,Fk,Gk,Dk,Yj,Hk,Ik,Jk,Mk,Nk,Ok,Pk,Rk,Qk,Uk,Vk,Yk,Zk,$k,bl,dl,el,fl,gl,ql,rl,tl,il,jl,hl,ol,ml,nl,sl,Dl,yl,xl,wl,El,Cl,Bl,Il,pl,Kl,Al,zl,Jl,kl,ll,Fl,Nl,Rl,Tl,Ul,Gl,Hl,Ml,Ll,Wl,Ol,Sl,Zl,$l,bm,am,dm,em,fm,gm,cm,mm,pm,qm,rm,om,sm,um,tm,vm,wm,xm,Am,zm,Bm,Cm,ym,Gm,Fm,Jm,Km,Tm,jm,Wm,Xm,Vm,Ym,$m,an,Yl,hm,bn,cn,
4
- fn,on,tn,vn,wn,Bn,Gn,Kn,Mn,Pn,Rn,Sn,Tn,Wn,ao,co,eo,fo,go,ho,io,jo,ko,mo,no,oo,po,lo,to,Eo,xo,Fo,Go,S,Mo,Qo,Oo,Ro,To,So,Vo,Wo,ap,cp,bp,Yo,Lo,Xo,ep,fp,hp,ip,gp,jp,lp,kp,pp,sp,rp,qp,up,xp,wp,vp,np,mp,tp,op,yp,zp,Ap,Lp,Mp,Xp,Yp,Zp,oq,uq,xq,yq,Aq,Bq,Eq,Kq,Oq,Pq,Uq,$q,ar,cr,dr,fr,gr,hr,ir,jr,kr,lr,mr,nr,or,pr,qr,rr,ur,sr,vr,xr,yr,tr,wr,zr,Ar,Br,Cr,Fr,Hr,Ir,Or,Pr,Tr,Zr,hs,es,fs,ls,ns,qs,us,vs,zs,js,ds,Gs,xs,Hs,Js,Is,Rs,Ns,Ms,Ps,Ss,Qs,Us,Os,Ts,Vr,os,Ks,Wr,Fs,cs,Bs,Cs,Xs,Es,is,gs,Yr,ft,ht,it,kt,nt,pt,ot,mt,
5
- qt,lt,tt,rt,st,ut,vt,At,Ct,Et,Ft,Dt,Gt,Ht,Bt,It,Jt,Kt,Lt,Mt,Ot,Pt,Qt,Rt,Nt,Tt,Zt,au,bu,cu,du,iu,ju,ku,ou,mu,pu,hu,qu,su,tu,vu,wu,ru,xu,yu,zu,Au,Bu,Du,Eu,Hu,Iu,Gu,Fu,Lu,Nu,Mu,Qu,Ou,Tu,Uu,Su,Wu,Xu,Yu,Vu,Ku,Zu,Ju,bv,cv,dv,fv,gv,hv,iv,jv,kv,lv,mv,nv,yv,Wv,Xv,$v,dw,lh,fw;_.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.29.0";_.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";qa="CHECKSUM";_.ra="CLOSED-CAPTIONS";_.ta="CODECS";ua="Can not set volume to ";_.va="Cannot retrieve buffer information due to platform limitations";_.xa="CastlabsPlayer";ya="Content-Length";za="Content-Type";_.Aa="Could not find configured DRM environment.";_.Ba="DRM environment '";Ca="DRM licenses loaded";Fa="DRMtoday";Ga="DRMtodayOnboard";_.Ha="DURATION";
7
- Ia="Destroying player";_.Ja="EXT-X-MEDIA";_.Ka="EXT-X-STREAM-INF";La="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: ";ab="Load interrupted while a player release is pending";
8
- _.bb="Loading player with configuration";_.cb="MaxHeight";_.db="MaxWidth";eb="Missing media element";_.fb="NAME";gb="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";hb="No event provided!";ib="No items in the playlist";jb="No sources provided!";kb="No track data attached to the event, unable to add track!";lb="Not a persistent session.";_.mb="Not supported";nb="NotAllowedError";ob="NotSupportedError";_.pb="PLAYLIST";_.qb="POST";_.rb="PlayReady License URL is not defined";
9
- sb="Player not ready yet.";_.tb="Player sources";_.ub="Player state change: ";_.vb="Please make sure ";wb="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";Yb="Will create EME Manager: ";Zb="X-AD-CREATIVE-SIGNALING";$b="X-ASSET-LIST";ac="X-ASSET-URI";
11
- bc="X-GROUPED-ASSET-LIST";cc="X-PLAYOUT-LIMIT";dc="X-RESTRICT";ec="X-RESUME-OFFSET";fc="X-TIMELINE-OCCUPIES";_.gc="ad-break-started";_.hc="ad-break-stopped";_.ic="ad-buffering";_.jc="ad-clicked";_.kc="ad-completed";_.lc="ad-first-quartile";mc="ad-hls-asset-list-request";nc="ad-hls-asset-list-response";oc="ad-hls-resoled";_.qc="ad-impression";_.rc="ad-loaded";_.sc="ad-midpoint";_.tc="ad-paused";_.uc="ad-progress";_.vc="ad-resumed";_.wc="ad-skipped";_.xc="ad-started";_.yc="ad-stopped";_.zc="ad-third-quartile";
12
- _.Ac="addtrack";_.Bc="ads-timeline-changed";_.Cc="airplay-casting-ended";_.Dc="airplay-casting-started";_.Ec="airplay-status-changed";_.Fc="application";_.Gc="application/cea-608";_.Hc="application/dash+xml";_.Ic="application/mp4";_.Jc='application/mp4; codecs\x3d"stpp"';_.Kc='application/mp4; codecs\x3d"wvtt"';_.Lc="application/ttml+xml";_.Mc="application/vnd.ms-sstr+xml";Nc="application/x-www-form-urlencoded";_.Oc="audio";_.Pc="audio/aac";_.Qc="audio/ac3";_.Rc="audio/eac3";_.Sc="audio/mp4";Tc='audio/mp4;codecs\x3d"mp4a.40.2"';
13
- _.Uc="audiobufferchanged";_.Vc="audiotrackchanged";_.Wc="autoplaynotallowed";_.Xc="bitratechanged";_.Yc="boolean";_.Zc="bufferingended";_.$c="bufferingstarted";ad="canplay";bd="canplaythrough";_.cd="caption";_.dd="castingstarted";_.ed="caststatuschanged";_.fd="cdn-switch-success";_.gd="cenc";_.hd="center";jd="certificate-request";kd="change";ld="chrome";_.md="clpp-fill";nd="clpp-hidden";od="clpp-mc-playlist";pd="clpp-visible";qd="clpp.PlayerFleet";_.rd="clpp.cast.CastSender";sd="clpp.drm.DrmToday";
14
- td="clpp.drm.HeaderDrm";ud="clpp.drm.eme.AppleEmeManager";vd="clpp.drm.eme.EmeFactory";wd="clpp.native.Player";xd="clpp.playlist.McPlaylist";yd="clpp.utils.Platform";_.zd="codecs";_.Ad="column-reverse";_.Bd="com.adobe.primetime";_.Cd="com.apple.fps";Dd="com.apple.quicktime.HLS";_.Ed="com.microsoft.playready";Fd="com.microsoft.playready.recommendation";_.Gd="com.widevine.alpha";_.Hd="config.drm.customData is not defined";_.Jd="content-steering-change";_.Kd="content-steering-location-ban-update";
15
- Ld="controls";_.Md="cuechange";_.Nd="decoder";_.Od="destroy()";_.Pd="disabled";_.Qd="div";Rd="drm.license.req.";Sd="drm.mediaKeys.end";Td="drm.mediaKeys.start";Ud="drm.onPlay.end";Vd="drm.onPlay.start";Wd="drm.sess.update.";_.Xd="drmexpirationupdate";Yd="drmlicenserequested";Zd="drmrenewalstarted";$d="drmsessioncreated";_.ae="drmsessionpersisted";_.be="drmsessionupdate";ce="drmtoday";de="durationchange";_.ee="ec-3";he="encrypted";_.ie="end";_.je="ended";_.ke="error";_.le="estimatedThroughputKbps";
16
- _.me="forced";ne="fullscreenElement";_.oe="function";_.pe="height";_.qe="hidden";_.re="hls-daterange";_.se="html";_.te="https://";_.ue="image";_.ve="internal-error";we="keystatuseschange";_.xe="left";ye="license-renewal";ze="license-request";_.Ae="line-left";_.Be="line-right";_.Ce="live-turned-static";_.De="load";_.Ee="loadeddata";_.Fe="loadedmetadata";He="loadstart";_.Ie="main";_.Je="mdat";_.Ke="mdia";_.Le="message";_.Me="metadata";_.Ne="mimeType";_.Oe="minf";_.Pe="moov";_.Qe="mpd-type-changed";
17
- _.Re="mpeg-dash-callback-event";_.Se="none";_.k="number";_.Te="object";_.Ue="onBitrateChanged()";_.Ve="onContentLoaded";_.We="onPlayerError()";_.Xe="onPlayerWillDestroy";_.Ye="onPlayerWillRelease";_.Ze="onStateChanged()";$e="online-status-changed";_.af="optional";_.bf="org.w3.clearkey";_.cf="output-restricted";_.df="pause";_.ef="persistent";_.ff="persistent-license";gf="picture-in-picture";_.hf="play";jf="player.afterLoad.end";kf="player.afterLoad.start";lf="player.appendLoad.end";mf="player.appendLoad.start";
18
- nf="player.beforeLoad.end";of="player.beforeLoad.start";pf="player.load.end";qf="player.load.start";rf="player.setupPlaylist.end";sf="player.setupPlaylist.start";_.tf="playing";_.uf="playlist-item-changed";_.wf="playlist-modified";Af="playlist.next.end";Bf="playlist.next.start";Cf="preload-aborted";Df="preload-failed";Ef="preloaded";Ff="preloading";_.Gf="prevent";Hf="primary-content";_.If="progress";_.Jf="px";_.Kf="ratechange";Lf="released";_.Mf="releasing";Nf="removetrack";_.Of="required";_.Pf="resize";
19
- _.Qf="right";_.Rf="sc-playlist-ended";_.Sf="sc-playlist-item-changed";_.Tf="sc-playlist-live-turned-static";_.Uf="sc-playlist-timeline-changed";_.Vf="scte35";_.Wf="seeked";_.Xf="seeking";_.Yf="showing";_.Zf="simid-creative-started";_.$f="simid-creative-stopped";_.ag="sinf";_.bg="smooth";cg="stalled";_.dg="start";_.eg="statechanged";fg="status-pending";_.gg="stbl";_.hg="string";_.ig="stsd";_.jg="style";_.kg="subtitle";_.lg="subtitles-htmlcue";mg="temporary";_.ng="text";_.og="text/vtt";_.pg="text/xml";
20
- _.qg="texttrackchanged";_.rg="timeline-cue-added";_.sg="timeline-cue-enter";_.tg="timeline-cue-exit";_.ug="timeline-cues-changed";_.vg="timeupdate";_.wg="tracksadded";_.yg="trak";_.zg="ttml-xml";Bg="unauthenticated";_.Cg="und";_.Dg="unknown";Eg="update";_.Fg="urn:scte:scte35";_.Gg="urn:scte:scte35:2014";_.Hg="user-seeked";_.Ig="user-seeking";_.Jg="value";Kg="version";_.Lg="vertical-lr";_.Mg="vertical-rl";_.Ng="video";_.Og="video/mp2t";_.Pg="video/mp4";_.Qg="videobufferchanged";_.Rg="videotrackchanged";
21
- _.Sg="vimond-response";Tg="visibilitychange";_.Ug="vtt-xml";_.Vg="waiting";_.Wg="waitingforkey";Xg="webkit-org.w3.clearkey";Yg="webkitkeyadded";Zg="webkitkeyerror";$g="webkitkeymessage";ah="webkitneedkey";_.bh="width";ch="x-dt-csl-tracking-token";dh="x-dt-follow-up-token";eh="x-dt-resp-code";_.fh="yospace-session-ended";_.gh="yospace-session-started";_.ih=function(a){return function(){return _.hh[a].apply(this,arguments)}};
22
- jh=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:jh(a)}};_.kh=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=lh(b.prototype);a.prototype.constructor=a;if(mh)mh(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]};nh=function(){nh=function(){};oh.Symbol||(oh.Symbol=ph)};rh=function(a,b){this.a=a;qh(this,"description",{configurable:!0,writable:!0,value:b})};
24
- th=function(){nh();var a=oh.Symbol.iterator;a||(a=oh.Symbol.iterator=oh.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.oe&&qh(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return sh(jh(this))}});th=function(){}};sh=function(a){th();a={next:a};a[oh.Symbol.iterator]=function(){return this};return a};uh=function(){this.w=!1;this.l=null;this.f=void 0;this.a=1;this.j=this.o=0;this.B=this.h=null};vh=function(a){if(a.w)throw new TypeError("Generator is already running");a.w=!0};
25
- wh=function(a,b){a.h={Zh:b,Fi:!0};a.a=a.o||a.j};_.x=function(a,b,c){a.a=c;return{value:b}};_.z=function(a){a.a=0};_.F=function(a,b,c){a.o=b;void 0!=c&&(a.j=c)};xh=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.Zh;a.h=null;return b};_.yh=function(a){a.B=[a.h];a.o=0;a.j=0};_.zh=function(a){var b=a.B.splice(0)[0];(b=a.h=a.h||b)?b.Fi?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};Ah=function(a){this.a=new uh;this.f=a};
26
- Dh=function(a,b){vh(a.a);var c=a.a.l;if(c)return Bh(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return Ch(a)};Bh=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,wh(a.a,g),Ch(a)}a.a.l=null;d.call(a.a,f);return Ch(a)};
27
- Ch=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,wh(a.a,c)}a.a.w=!1;if(a.a.h){b=a.a.h;a.a.h=null;if(b.Fi)throw b.Zh;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
28
- Eh=function(a){this.next=function(b){vh(a.a);a.a.l?b=Bh(a,a.a.l.next,b,a.a.A):(a.a.A(b),b=Ch(a));return b};this["throw"]=function(b){vh(a.a);a.a.l?b=Bh(a,a.a.l["throw"],b,a.a.A):(wh(a.a,b),b=Ch(a));return b};this["return"]=function(b){return Dh(a,b)};th();this[Symbol.iterator]=function(){return this}};_.Fh=function(a,b){var c=new Eh(new Ah(b));mh&&mh(c,a.prototype);return c};
29
- Gh=function(a,b){if(b){for(var c=oh,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&&qh(c,d,{configurable:!0,writable:!0,value:f})}};Hh=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())})};_.I=function(a){return Hh(new Eh(new Ah(a)))};
30
- _.K=function(a,b){var c=a.split("."),d=Ih;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};Lh=function(a){return a&&0<=Jh[a]?Jh[a]:Kh};Oh=function(a){if(!a)return _.Mh("clpp.log",Nb+a+ca),-1;var b=Nh[a.toUpperCase()];return void 0===b?(_.Mh("clpp.log",Nb+a+ca),-1):b};_.L=function(a){(this.tag=a)&&void 0===Jh[a]&&(Jh[a]=-1)};_.Qh=function(a){Ph.info.apply(Ph,arguments)};
31
- _.Rh=function(a){Ph.debug.apply(Ph,arguments)};_.Mh=function(a){Ph.warn.apply(Ph,arguments)};_.Sh=function(a){Ph.error.apply(Ph,arguments)};Th=function(a,b){this.jb=a;this.sourceIndex=b};_.Wh=function(a){if(a){var b=a.a();b in _.Uh?_.Vh.warn("Player-Factory '"+b+"' already registered"):(_.Uh[b]=a,_.Vh.info("Registered Player-Factory: '"+b+"'"))}};Xh=function(a){return Object.values(_.Uh).find(a)||null};
32
- _.ai=function(a){0<=Yh.indexOf(a)?$h.warn("Factory '"+a.name()+"' is already registered"):(Yh.push(a),$h.info("Factory '"+a.name()+"' has been registered."))};bi=function(a,b){var c=Yh.find(function(d){return d.a(a,b)})||null;c&&$h.info("Chosen ads manager: "+c.name());return c};_.ci=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.ei=function(a){return _.di.get(a)||null};
33
- _.gi=function(a){_.di.get(a.id())?fi.warn("Component already in use."):_.di.set(a.id(),a)};hi=function(a){return Array.from(_.di.values()).find(function(b){return b instanceof a})||null};ii=function(a){for(var b=_.v(_.di.values()),c=b.next();!c.done;c=b.next())a(c.value)};ji=function(a){ii(function(b){b.playerConstructed(a)})};ki=function(a){ii(function(b){b.beforeLoad(a)})};li=function(a){ii(function(b){b.afterLoad(a)})};mi=function(a){ii(function(b){b.playerDestroyed(a)})};
34
- ni=function(a){if(null!==hi(a))return null;a=new a;a.install();_.gi(a);fi.info("Installed component:",a.id());return a};oi=function(a){if(a=hi(a))a.uninstall(),_.di["delete"](a.id()),fi.info("Uninstalled component:",a.id())};
35
- _.N=function(a,b,c,d,e){var f=Error.call(this,pi(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||_.M.ia(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.N)};pi=function(a,b,c,d){a=(a===_.O?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.M.ia(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};
36
- _.qi=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};_.ri=function(){this.a={}};_.si=function(){this.a=new _.ri};
37
- ti=function(a,b,c){function d(h){for(var l=_.v(e),m=l.next();!m.done;m=l.next())a.off(b,m.value,d);c(h)}for(var e=[he,"msneedkey",ah,"needkey"],f=_.v(e),g=f.next();!g.done;g=f.next())a.on(b,g.value,d)};_.vi=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)ui(c[b]);a.a.clear()};wi=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};ui=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
38
- xi=function(a,b,c,d){this.h=a;this.a=b;this.f=c;this.j=!!d};yi=function(a){this.a=new _.ri;this.f=a};_.zi=function(){this.de=new yi(this);this.$d=[]};Ai=function(){};Bi=function(){};Ci=function(a,b,c,d,e,f,g){this.w=this.o=this.l=!1;this.G=a;this.f=b;this.a=c;this.h=d;this.j=0;this.B=e+":"+b;this.H=e;this.videoEl=null;this.A=f;this.D=g||null};Di=function(a){this.a=a.map(function(b){return{kc:b.getSurface().getMedia().id,player:b,cf:!0,ready:Promise.resolve()}});this.g=new _.L("clpp.playlist.PlayerPool")};
39
- _.Ei=function(a){return Array.isArray(a)?a:[a]};Fi=function(a,b){return a===b?!0:a.length===b.length&&a.every(function(c,d){return c===b[d]})};Hi=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 Gi(a,b)&&Gi(b,a)};Gi=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};
40
- _.Ii=function(a,b){b=void 0===b?{}:b;if(b.Qh){for(var c=[],d={},e=_.v(a),f=e.next();!f.done;d={Re:d.Re},f=e.next())d.Re=f.value,c.some(function(g){return function(h){return b.Qh(g.Re,h)}}(d))||c.push(d.Re);return c}return Array.from((new Set(a)).values())};Ji=function(a,b){var c=new Set(a),d=new Set(b);return{ro:a.filter(function(e){return!d.has(e)}),Np:a.filter(function(e){return d.has(e)}),ak:b.filter(function(e){return!c.has(e)})}};
41
- _.Ki=function(a,b){for(var c=_.v(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};Li=function(){};Pi=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!==b.byteLength)return!1;if(Mi(a)===Mi(b)&&(a.byteOffset||0)===(b.byteOffset||0))return!0;for(var c=_.Ni(a),d=_.Ni(b),e=_.v(Oi(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!==d[f])return!1;return!0};_.Ni=function(a,b,c){c=void 0===c?Infinity:c;return Qi(a,void 0===b?0:b,c,Uint8Array)};
42
- Ri=function(a,b,c){c=void 0===c?Infinity:c;return Qi(a,void 0===b?0:b,c,Uint16Array)};Si=function(a,b,c){c=void 0===c?Infinity:c;return Qi(a,void 0===b?0:b,c,Uint32Array)};_.Ti=function(a,b,c){c=void 0===c?Infinity:c;return Qi(a,void 0===b?0:b,c,Int32Array)};_.Ui=function(a,b,c){c=void 0===c?Infinity:c;return Qi(a,void 0===b?0:b,c,DataView)};Vi=function(a){return a instanceof ArrayBuffer?a:0===a.byteOffset&&a.byteLength===a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
43
- Qi=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=Mi(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)};Mi=function(a){return a instanceof ArrayBuffer?a:a.buffer};_.Wi=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};_.Xi=function(a,b){a.classList.add(b)};
44
- _.Yi=function(a,b){if(a&&typeof b===_.Te)for(var c in b)a.style[c]=b[c]};_.Zi=function(a){return document.createElement(a)};$i=function(){this.a=null;this.h=new Set;this.f=null;this.set(null)};aj=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.h.add(b))};bj=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.h.values());Gi(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.kh(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
45
- _.cj=function(a){this.f=a;this.a=null};dj=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};_.ej=function(a){this.f=a;this.a=null};fj=function(a){return 0>=a?Promise.resolve():new Promise(function(b){setTimeout(function(){b()},1E3*a)})};gj=function(){};_.hj=function(){return!!navigator.userAgent.match(/Edge?\//)};_.jj=function(a){return _.ij("Tizen"+(a?" "+String(a):""))};
46
- _.kj=function(){return _.ij("Web0S")};_.mj=function(){return _.kj()&&79===_.lj().major};_.nj=function(){return _.ij("CrKey")};_.oj=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.jj()};_.pj=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.oj()&&1<navigator.maxTouchPoints};_.qj=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};_.ij=function(a){return(navigator.userAgent||"").includes(a)};
47
- tj=function(){if(rj)return rj;sj||(sj=new _.ej(function(){rj=null}));(rj=document.querySelector(_.Ng)||document.querySelector(_.Oc))||(rj=document.createElement(_.Ng));sj.ha(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};
48
- wj=function(a){var b={major:-1,name:_.Dg};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};
49
- 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};
50
- _.lj=function(){var a=yj(),b=["ie","edge","opera","firefox","safari",ld];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()};
51
- _.Kj=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",ld],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=Jj}return{os:a,osVersion:b,browser:c,browserVersion:_.lj()}};
52
- Oj=function(a,b){this.g=new _.L("clpp.PlayerSurface");this.w=_.M.ra(Lj,b);this.f=new $i;this.h=null;this.a=new $i;this.l=Mj;Mj+=1;this.o="clpp-video-"+this.l;this.j=new _.si;if(null==a)throw new _.N(_.O,7,7102,"No Media element was provided");if(a instanceof Element)var c=a;else if(c=document.getElementById(a),!c)throw new _.N(_.O,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
53
- HTMLMediaElement))throw new _.N(_.O,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 _.N(_.O,7,7006,"Container element is not a direct parent of media element");e=d.containerEl}else{e=document.createElement(_.Qd);c.parentNode?c.parentNode.replaceChild(e,
54
- 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),_.Xi(e,g);e.style.cssText=c.style.cssText;c.removeAttribute(_.jg);f=_.v([_.bh,_.pe]);for(g=f.next();!g.done;g=f.next()){g=g.value;var h=c.getAttribute(g);h=parseInt(h,10);isNaN(h)||(e.style[g]=h+_.Jf);_.jj()||c.removeAttribute(g)}e.appendChild(c)}e&&
55
- (this.a.set(e),aj(this.a,"clpp-container"),aj(this.a,this.o),aj(this.f,_.md),aj(this.f,"clpp-video"));d.webOSStartupPatch&&Nj(this,c,e)}};Nj=function(a,b,c){(_.kj()&&53===_.lj().major||_.kj()&&68===_.lj().major||_.mj())&&!b.hasAttribute(Ld)&&(b.style.opacity="0",b.setAttribute(Ld,""),a.j.one(b,de,function(){b.removeAttribute(Ld);b.style.opacity="1";c&&(c.style.opacity="1")}))};
56
- Tj=function(a){var b=this;this.j=a;this.A=!!a.sideAdContainer;this.l=[];this.a=a.rj;this.H=Pj(a);this.D=[];var c=Qj(this,this.H,this.j.Kl);this.w=new Di(c);this.f=null;this.B=!1;this.o=new Map;this.I=a.toggleVisible;this.g=new _.L("clpp.interstitial.MultiController");this.h=this.G=!1;this.J=a.Ln||function(){};Rj(this).forEach(function(d){return Sj(b,d,!1)})};
57
- Xj=function(a,b){var c,d,e,f,g,h,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=Uj(a);d=a.getCurrentItem();if(!c||!d||!d.$a||null==c.V)return y["return"]();e=a.l.filter(function(B){return!B.primary});f=Math.max.apply(Math,_.kh(e.map(function(B){return B.ub})));if(b>f)return a.g.info("Playout limit is greater than ad pod duration, ignored."),y["return"]();g=d.player.getPosition()+(d.ub-d.duration);h=e.sort(function(B,A){return A.ub-B.ub})[0];l=c.V;m=b<=g;
58
- 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,Vj(a,c.id,_.hf),3)}if(2!=y.a)return h.Ea&&h.Ea(),p=d.$a,a.a.trigger(new _.Q(_.yc,{ad:p})),a.a.trigger(new _.Q(_.kc,{ad:p})),a.a.trigger(new _.Q(_.hc,{id:d.dc})),y["return"]();a.g.warn("Limiting playout of ads to",b);q=e.find(function(B){return b<=B.ub&&b>=B.ub-B.duration});if(!q)return a.g.warn("Cannot find ad hit by limit"),y["return"]();
59
- t=b-(q.ub-q.duration);q.$a.h=t;u=f-b;c.V-=u;a.g.info("Last ad is now ",q.$a.zb(),"with cropped duration",t,"and primary will resume at",c.V.toFixed(1),"instead of",l.toFixed(1));h.Ea&&(q.Ea=h.Ea);q.transition={Df:{position:t,itemId:c.id,V:c.V}};Wj(a,q);_.z(y)})};Zj=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.zd,2):c["return"]();if(4!=c.a)return _.x(c,b.player.play(),4);b.state=_.tf;Yj(b);_.z(c)})};
60
- ak=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(),zd:Promise.resolve()})}))};ck=function(a){return _.I(function(b){return _.x(b,bk(a,a.l.map(function(c){return c.id})),0)})};
61
- bk=function(a,b){var c,d,e,f,g;return _.I(function(h){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(h,Promise.all(d.map(function(l){l.disposers.forEach(function(m){return m()});l.disposers=[];return dk(a,l.id)})),0)})};fk=function(a){var b;return _.I(function(c){b=a.l.filter(function(d){return!d.primary}).map(function(d){return d.id});ek(a);return _.x(c,bk(a,b),0)})};
62
- gk=function(a){var b,c;_.I(function(d){b=a.getCurrentItem();c=b.next[0];if(!(b&&b.primary&&c))return d.C(0);ek(a);return _.x(d,a.play(c),0)})};ek=function(a){var b=Uj(a);b&&(b.transition=void 0,b.next=[],hk(a))};
63
- Vj=function(a,b,c){var d,e,f,g,h,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=ik(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.A?e.primary?jk(a,e,kk):e.player.pause():e.player.pause()),e.primary?jk(a,e,kk):jk(a,e,lk);(f=a.o.has(b))&&a.o["delete"](b);_.F(m,2,3);if(c===_.hf)return(g=e&&d.primary)?_.x(m,ok(a,d),10):f?_.x(m,
64
- 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:Yj(d);case 6:Wj(a,d);d.primary?jk(a,d,lk):jk(a,d,kk);d.$a&&sk(a,d,d.$a);if(d.Ea)d.player.one(_.je,d.Ea);d.Zi&&d.Zi(d.player.getDuration());e&&tk(a,e);case 3:_.yh(m);a.B=!1;uk(a);vk(a,d.next);_.zh(m);break;case 2:h=_.H(m);a.g.error("Item failed to "+c+" (ID: "+b+")",h);if(d.primary)throw h;if(l=Uj(a))return a.g.warn("Ad failed, resuming primary item"),_.x(m,ok(a,l),
65
- 3);m.C(3)}})};wk=function(a,b,c){c=void 0===c?!1:c;if(!a.h){var d=Uj(a);d?(d.V=b,c&&(a.h=!0)):a.g.error("Failed to get primary item. Cannot configure resume position.")}};Uj=function(a){return a.l.find(function(b){return!!b.primary})||null};ik=function(a,b){return a.l.find(function(c){return c.id===b})||null};
66
- Wj=function(a,b){var c=b.transition;if(c&&!c.Aj){if(c.Ea){var d=c.Ea,e=function(){a.g.info("Transition onEnded to (ID: "+d+")");a.play(d)};b.player.one(_.je,e);b.disposers.push(function(){b.player.off(_.je,e)})}c.Df&&xk(a,b,function(){var f=a.f.$a;f&&(b.disposers.forEach(function(g){return g()}),b.disposers=[],a.a.trigger(new _.Q(_.yc,{ad:f})),a.a.trigger(new _.Q(_.kc,{ad:f})),a.a.trigger(new _.Q(_.hc,{id:b.dc})))});c.Aj=!0}};
67
- xk=function(a,b,c){function d(){a.g.info("Stop timeupdate polling");b.player.off(_.vg,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?h=null:h=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.Df,h=null;g.V&&wk(a,
68
- g.V);a.g.info("Start timeupdate polling");b.player.on(_.vg,f);b.disposers.push(function(){null!=h&&(a.g.info("Stop RAF polling"),cancelAnimationFrame(h),h=null)});b.disposers.push(d)};hk=function(a){a.f&&(a.f.disposers.forEach(function(b){return b()}),a.f.disposers=[],a.f.transition&&(a.f.transition.Aj=!1),Wj(a,a.f))};Rj=function(a){return[a.a].concat(_.kh(a.w.a.map(function(b){return b.player})))};uk=function(a){Promise.all(Array.from(a.o.keys()).map(function(b){return dk(a,b)}))};
69
- Pj=function(a){if(a.sideAdContainer)a=a.sideAdContainer;else if(a=a.rj.getSurface().getContainer(),!a)throw Error("Primary player does not have a container");return a};dk=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,yk(a,c.player),3):d.C(3)}a.o["delete"](b);_.z(d)})};zk=function(a){return _.I(function(b){if(1==b.a)return a.f?_.x(b,tk(a,a.f),3):b.C(0);Sj(a,a.a,!0);_.z(b)})};
70
- tk=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.A||Sj(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=Ak;return b.Ng?(a.g.info("Release player (ID: "+b.id+") after delay "+(b.Ng+" ms.")),_.x(d,new Promise(function(e){setTimeout(function(){return _.I(function(f){if(1==f.a)return _.x(f,yk(a,c),2);Sj(a,c,!1);a.a.trigger(new _.Q("ad-hls-released"));
71
- e();_.z(f)})},b.Ng)}),0)):_.x(d,yk(a,c),5)}Sj(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=_.tf;_.z(c)})};rk=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.x(d,Bk(a,!!b.primary),2);if(3!=d.a)return c=d.f,a.f=b,b.role=Ck,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),Sj(a,c,!0),b.state="loading",b.zd=Dk(c,b.config),_.x(d,b.zd,3);b.state="loaded";_.z(d)})};
72
- 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!==Ff){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=Ck;Sj(a,c,!0);if(b.state===Ef)return _.x(d,c.play(),7);if(b.state!==Df){d.C(7);break}return _.x(d,Dk(c,b.config),7);case 7:b.state=_.tf,_.z(d)}})};
73
- sk=function(a,b,c){function d(){a.a.trigger(new _.Q(_.yc,{ad:c}));a.a.trigger(new _.Q(_.kc,{ad:c}));c.f===c.a&&a.a.trigger(new _.Q(_.hc,{id:b.dc}))}function e(){a.a.trigger(new _.Q(_.ic,{ad:c}))}function f(){a.a.trigger(new _.Q(_.vc,{ad:c}))}function g(){l.isEnded()||a.a.trigger(new _.Q(_.tc,{ad:c}))}function h(){var m=l.getPosition(),n=c.getDuration();c.j=m;a.a.trigger(new _.Q(_.uc,{ad:c}));!c.l&&m>=n/4&&(c.l=!0,a.a.trigger(new _.Q(_.lc,{ad:c})));!c.o&&m>=n/2&&(c.o=!0,a.a.trigger(new _.Q(_.sc,{ad:c})));
74
- !c.w&&m>=3*n/4&&(c.w=!0,a.a.trigger(new _.Q(_.zc,{ad:c})))}var l=b.player;l.on(_.vg,h);l.on(_.df,g);l.on(_.tf,f);l.on(_.$c,e);l.one(_.je,d);b.disposers.push(function(){l.off(_.vg,h);l.off(_.df,g);l.off(_.tf,f);l.off(_.$c,e);l.off(_.je,d)});1===c.f&&a.a.trigger(new _.Q(_.gc,{id:b.dc}));c.videoEl=l.getSurface().getMedia();a.a.trigger(new _.Q(_.qc,{ad:c}));a.a.trigger(new _.Q(_.xc,{ad:c}))};
75
- ok=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();a.J();if(b.state!==Ff){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=Ck;Sj(a,b.player,!0);b.state="loading";if(a.A&&(jk(a,b,lk),!b.player.isPaused())){c.C(9);break}return _.x(c,b.player.play(),9);case 9:b.state=_.tf,_.z(c)}})};
76
- yk=function(a,b){return _.I(function(c){return b===a.a?c.C(0):_.x(c,a.w.release(b),0)})};Bk=function(a,b){var c;return _.I(function(d){if(1==d.a)return b?d["return"](a.a):_.x(d,a.w.get(),2);c=d.f;if(!c)throw Error("No player available");return d["return"](c)})};vk=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 Ek(a,e)})),0)})};
77
- Ek=function(a,b){var c,d,e,f,g;return _.I(function(h){switch(h.a){case 1:if(!b.primary){h.C(2);break}b.state=Ff;a.o.set(b.id,b);if(!b.V||a.A){h.C(3);break}c=b.player;a.g.info("Preparing to resume at",b.V);jk(a,b,kk);return _.x(h,c.seek(b.V,!0),3);case 3:return b.state=Ef,h["return"]();case 2:return d=b.id,_.x(h,Bk(a,!1),5);case 5:e=h.f;b.player=e;b.videoEl=e.getSurface().getMedia();b.role=Ak;b.state=Ff;_.F(h,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=Dk(e,b.config);return _.x(h,b.preloadPromise,8);case 8:b.state=Ef;_.G(h,0);break;case 6:g=_.H(h),7001===g.code?(a.g.info("Preload aborted (ID: "+d+")"),b.state=Cf):(a.g.warn("Preload failed (ID: "+d+")",g),b.state=Df),_.z(h)}})};
79
- Sj=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.debug(Hb+b),d.classList.add(pd),d.classList.remove("clpp-hide")):(a.g.debug(Va+b),d.classList.remove(pd),d.classList.add("clpp-hide")),a.I&&a.I(d,c))};
80
- Qj=function(a,b,c){return Array.from({length:2}).map(function(d,e){var f=document.createElement(_.Ng);b.appendChild(f);var g=a.j.jb.create();f=new Oj(f);g.init(f,c);g.setSourceIndex(0);var h=f.getContainer();if(!h)throw Error("Failed to create player surface container element");h.classList.add("secondary");f.getMedia().classList.add("v-"+e);a.D.push(h);return g})};
81
- jk=function(a,b,c){var d=b?b.dc||null:null;a.a.getConfiguration().muted||a.G?(a.a.setMuted(!0),Fk(a,!0)):(b.audio&&(c=b.audio),a.j.onAudioDecision&&(c=a.j.onAudioDecision(d)),c===lk?(a.a.setMuted(!1),Fk(a,!0)):c===kk?(a.a.setMuted(!0),Fk(a,!1)):a.g.warn("Audio decision not supported",c))};Fk=function(a,b){a.l.filter(function(c){return!c.primary&&c.player}).forEach(function(c){return c.player.setMuted(b)})};Gk=function(a){a.D.forEach(function(b){return a.H.removeChild(b)});a.D=[];Sj(a,a.a,!0)};
82
- Dk=function(a,b){return _.I(function(c){return 1==c.a?_.x(c,a.release(),2):_.x(c,a.load(b),0)})};Yj=function(a){if(a.$a){var b=a.player.getDuration();a.maxDuration&&(b=Math.min(b,a.maxDuration));a.$a.h=b}a.Ff&&a.Ff()};Hk=function(a){return"com.apple.hls.interstitial"===a||"com.apple.hls.overlay"===a};Ik=function(a){if(!a)return!1;var b=!!a[ac];a=!!a[$b];return(b||a)&&!(b&&a)};
83
- Jk=function(a){return a&&a.ASSETS&&Array.isArray(a.ASSETS)?a.ASSETS.every(function(b){return typeof b.URI===_.hg&&typeof b.DURATION===_.k}):!1};Mk=function(a){return a.gh&&!(a.once&&a.Bj)&&[Kk,Lk].includes(a.state)};Nk=function(a){a=a.customAttributes[Zb];if(!a)return null;try{return JSON.parse(atob(a))}catch(b){return null}};Ok=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=[Hf],d.transition={Ea:Hf}):(e=a[c+1].id,d.next=[e],d.transition={Ea:e}))}};
84
- Pk=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(h){c.add(h)})});for(var d={},e=_.v(c),f=e.next();!f.done;d={Ib:d.Ib,We:d.We},f=e.next())d.Ib=f.value,d.Ib===dc?(d.We=new Set([]),a.forEach(function(g){return function(h){h[g.Ib]&&h[g.Ib].forEach(function(l){return g.We.add(l)})}}(d)),b[d.Ib]=Array.from(d.We)):d.Ib===ec&&(f=a.reduce(function(g){return function(h,l){return l[g.Ib]?h+l[g.Ib]:h}}(d),0),b[d.Ib]=
85
- f);return b};Rk=function(a,b){if(0===a.length)return a;var c=new Map;1===b?a.forEach(function(g){var h=c.get(g.startTime)||[];h.push(g);c.set(g.startTime,h)}):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=Qk(f),d.push(f));return d};
86
- Qk=function(a){var b=[],c=0;a.forEach(function(f){var g=Math.max(0,f.endTime-f.startTime);c+=g;var h=f.customAttributes[$b];h&&b.push({type:"list",id:f.id,customAttributes:f.customAttributes,Ec:{URI:h,DURATION:0}});if(h=f.customAttributes[ac])g={type:"uri",id:f.id,customAttributes:f.customAttributes,Ec:{URI:h,DURATION:g}},(f=Nk(f))&&(g.Ec[Zb]=f),b.push(g)});var d=Pk(a);d[bc]={entries:b,ma:[]};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})};_.Tk=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.kh(Sk).concat()}};Uk=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||_.kh(Sk).concat()};Vk=function(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b};
88
- _.Xk=function(a,b){_.M.ia(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.Wk,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:_.kh(Sk).concat(),requestStartTimestamp:null};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&
90
- Uk(c,b);return c};_.al=function(a,b,c,d,e,f,g,h){a={uri:e||d,data:b,headers:a,status:c,timeMs:g,responseStartMs:h,request:f};if(Yk(c))return Zk(a);throw $k(a);};Yk=function(a){return 200<=a&&299>=a&&202!==a};Zk=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
- $k=function(a){a=Zk(a);try{var b=_.R.fe(a.data,!0)}catch(d){b=null}_.Rh("HTTP error text:",b);var c=a.request;return new _.N(0<=(c?c.fatalStatusCodes||[]:[]).indexOf(a.status)?_.O:1,1,1001,{url:a.uri,status:a.status,responseText:b,headers:a.headers,request:a.request,response:a})};bl=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};
92
- dl=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};el=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()};fl=function(a){if(null!==a&&void 0!==a)return Number(a)};gl=function(a){return a.reduce(function(b,c){return b+c},0)};
93
- ql=function(a){_.zi.call(this);var b=this;this.j=_.M.ra({lo:.5},a);this.A=this.h=!1;this.g=new _.L("clpp.interstitial.Player");this.l=a.player;this.l.setSeekInterceptor(function(c,d){if(d)return!0;if(b.h)return!1;var e=hl(b);if(e)return b.g.info("Seek ignored while binding interstitial",e.aa),!1;il(b,c);e=jl(b);var f=kl(b,c),g=ll(b,c);if(e){if(f&&f!==e)return ml(b,f,c),!1;if(g&&g!==e)return nl(b,g,c),!1;if(c<e.startTime-b.j.resolutionOffsetSec)return ol(b,e),!0;if(c<e.startTime)return hk(b.a),b.g.info("Seek inside resolution area of",
94
- e.aa),!0;if(c<=e.endTime)return b.g.info("Seek into the scheduled interstitial",e.aa),gk(b.a),!1;if(e.Bh)return b.g.info("Jump over a scheduled interstitial",e.aa),fk(b.a),e.state=Kk,!0;b.g.info("Jump over a scheduled interstitial triggering it",e.aa);gk(b.a);wk(b.a,c,!0);return!1}return f?(ml(b,f,c),!1):g&&!g.Pl?(nl(b,g,c),!1):!0});this.a=new Tj({Kl:this.j.config,rj:a.player,preloadMedia:!0,jb:a.jb,sideAdContainer:this.j.sideAdContainer,onAudioDecision:this.j.onAudioDecision,Ln:function(){b.g.info("Resume primary content")}});
95
- this.o=[];this.f=[];this.w=!1;pl(this,a.player)};rl=function(a){return(a=a.a.getCurrentItem())&&!a.primary?a.player:null};
96
- tl=function(a){var b,c,d;_.I(function(e){var f=a.a;ak(f,[{id:Hf,primary:!0,config:f.a.getConfiguration(),next:[],ub:0,duration:0,dc:null}]);var g=Uj(f);if(!g)throw Error("Failed to find primary item");f.f=g;g.role=Ck;g.player=f.a;g.videoEl=g.player.getSurface().getMedia();Sj(f,g.player,!0);b=a.l;c=b.getConfiguration();d=!c.autoplay;a.w=sl(a,d,b.isLive(),!1);if(a.w){f=a.a;g=f.w;if(g=g.a[0]?g.a[0].player:null)f.A||Sj(f,f.a,!1),Sj(f,g,!0);return e.C(0)}return c.autoplay?_.x(e,Zj(a.a),0):e.C(0)})};
97
- il=function(a,b){var c=a.l.getPosition();b>=c||a.f.filter(function(d){return 1===d.Cd&&!d.once&&d.Qi&&d.startTime>b}).forEach(function(d){d.gh=!0})};jl=function(a){return a.f.find(function(b){return b.state===ul})||null};hl=function(a){return a.f.find(function(b){return b.state===vl})||null};ol=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Unschedule interstitial",b.aa),_.x(c,fk(a.a),2);b.state=Kk;_.z(c)})};
98
- ml=function(a,b,c){var d;_.I(function(e){switch(e.a){case 1:a.h=!0;_.F(e,2,3);d=jl(a);if(!d){e.C(5);break}return _.x(e,ol(a,d),5);case 5:return a.g.info("Seek into interstitial",b.aa),_.x(e,wl(a,b),3);case 3:_.yh(e);a.h=!1;_.zh(e);break;case 2:return _.H(e),_.x(e,a.l.seek(c),3)}})};
99
- nl=function(a,b,c){var d,e;_.I(function(f){switch(f.a){case 1:a.h=!0;_.F(f,2,3);d=jl(a);if(!d){f.C(5);break}return _.x(f,ol(a,d),5);case 5:return a.g.info("Play jumped interstitial",b.aa,"resume at",c.toFixed(2)),_.x(f,wl(a,b,c),3);case 3:_.yh(f);a.h=!1;_.zh(f);break;case 2:return e=_.H(f),a.g.warn("Failed to play jumped interstitial",b.aa,e),b.Pl=new Date,_.x(f,a.l.seek(c),3)}})};
100
- sl=function(a,b,c,d){var e=xl(a);a.g.info("Interstitial cues changed",e);var f=e;if(d){f=Ji(a.f.map(function(q){return q.aa}),e.map(function(q){return q.id}));yl(a,f.ro);var g=new Set(f.ak);f=e.filter(function(q){return g.has(q.id)})}if(!zl(a,f))return!1;var h=[],l=[],m=[];f.forEach(function(q){var t=q.customAttributes.CUE||[];t.includes(_.qb)?l.push(q):!d&&t.includes("PRE")?h.push(q):!c&&q.startTime<a.j.lo?h.push(q):m.push(q)});e=Rk(h,0);f=Rk(l,2);var n=Rk(m,1),p=e.concat(f,n);Al(a,p);0<e.length&&
101
- Bl(a,e[0],b);n.forEach(function(q){return Cl(a,q,1)});0<f.length&&Cl(a,f[0],2);Dl(a,p);return 0<e.length};
102
- Dl=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(h){var l=b.find(function(n){return n.id===h.aa});if(l){var m=l.customAttributes[cc];null==h.uc&&null!=m&&(a.g.info(Rb,l.id,"Playout limit",m),h.uc=m,1===h.Cd&&h.state===ul&&El(a,h))}}),g["return"]();d=b.find(function(h){return h.id===c.dc});if(!d)return g["return"]();e=d.customAttributes[cc];if(null==e)return g["return"]();f=a.f.find(function(h){return h.aa===d.id});
103
- if(!f||null!=f.uc)return g["return"]();a.g.info(Rb,d.id,"Playout limit",e);f.uc=e;return _.x(g,Xj(a.a,e),0)})};yl=function(a,b){var c=new Set(b);a.f.forEach(function(d){c.has(d.aa)&&!Mk(d)&&a.g.warn("Removing an interstitial in active state",d)});a.f=a.f.filter(function(d){return!c.has(d.aa)})};xl=function(a){return a.l.getTimelineCues().filter(function(b){return Hk(b.schemeIdUri)&&b.customAttributes})};
104
- wl=function(a,b,c){var d;return _.I(function(e){if(1==e.a)return _.x(e,Fl(a,b),2);d=e.f;if(!d)throw Error("Failed to bind");return _.x(e,Gl(a,b,1,!1,c),0)})};El=function(a,b){_.I(function(c){return 1==c.a?_.x(c,ol(a,b),2):_.x(c,Hl(a,b,a.l),0)})};
105
- Cl=function(a,b,c){var d=b.customAttributes[ac],e=b.customAttributes[$b],f=b.customAttributes[bc],g=b.customAttributes[ec],h=b.customAttributes[cc],l=b.customAttributes[dc]||[];b.customAttributes[fc]||(b.customAttributes[fc]=null==g||0<g?"RANGE":"POINT");var m=b.customAttributes["X-YOSPACE-AUDIO-PRIORITY"];m="CONTENT"===m?lk:"AD"===m?kk:void 0;b={aa:b.id,startTime:b.startTime,endTime:b.endTime,state:Kk,qh:e,rh:d,ne:f,ma:null,V:null==g?null:Math.max(0,b.startTime+g),wo:g,uc:h,Cd:c,Gm:"POINT"===b.customAttributes[fc],
106
- jk:!l.includes("SKIP"),Bh:!l.includes("JUMP"),Ej:Nk(b),Qi:null!=g&&0>g,once:(b.customAttributes.CUE||[]).includes("ONCE"),Bj:!1,gh:!0,customAttributes:b.customAttributes,audio:m};a.f.push(b);return b};
107
- Bl=function(a,b,c){var d,e,f,g,h;_.I(function(l){switch(l.a){case 1:return d=Cl(a,b,0),_.x(l,Fl(a,d),2);case 2:e=l.f;f=d.ma?d.ma.length:0;if(e&&0<f){_.F(l,8);a.g.info("Player preroll interstitial "+d.aa);var m=Gl(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,zk(a.a),5);case 5:if(c){l.C(0);break}return _.x(l,Zj(a.a),0);case 10:_.G(l,0);break;case 8:g=_.H(l);a.g.error("Preroll interstitial failed.",
108
- g);if(h=Uj(a.a))return _.x(l,a.a.play(h.id),0);l.C(0)}})};Il=function(a){a.o.forEach(function(b){return b()});a.o=[]};
109
- pl=function(a,b){function c(){a.A=!1}function d(){a.A=!0}function e(){sl(a,!1,!0,!0)}function f(){var g,h,l,m,n;return _.I(function(p){switch(p.a){case 1:if(a.h||a.A)return p["return"]();g=b.getPosition();h=Jl(a,g);if(!h){p.C(2);break}return _.x(p,Fl(a,h),3);case 3:(l=p.f)&&Hl(a,h,b);case 2:m=Kl(a);if(!(m&&m.state===Kk&&b.getDuration()-g<a.j.resolutionOffsetSec)){p.C(0);break}return _.x(p,Fl(a,m),5);case 5:if(n=p.f)if(m.ma&&0!==m.ma.length){var q=a.a.getCurrentItem();if(q){var t=Ll(a,m,2);if(0!==
110
- t.length){var u=t[0].id;q.next=[u];q.transition={Ea:u};a.g.info("Schedule postroll interstitial "+m.aa);Ml(a,m,t)}}}else a.g.warn("Postroll interstitial has no assets, ignoring.");_.z(p)}})}b.on(_.vg,f);a.o.push(function(){b.off(_.vg,f)});b.on(_.ug,e);a.o.push(function(){b.off(_.ug,e)});b.on(_.gc,d);a.o.push(function(){b.off(_.gc,d)});b.on(_.hc,c);a.o.push(function(){b.off(_.hc,c)})};Kl=function(a){return a.f.find(function(b){return 2===b.Cd})||null};
111
- Al=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 h=c[g],l=c[g+1];l&&(e=Math.min(e,l.startTime-h.endTime));l&&l.startTime<=h.endTime&&f.push("Interstitials "+h.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(" "))};zl=function(a,b){var c=[];b.forEach(function(d){Ik(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};Jl=function(a,b){return a.f.find(function(c){var d=c.startTime-b;return 1===c.Cd&&Mk(c)&&0<d&&d<=a.j.resolutionOffsetSec})||null};
113
- kl=function(a,b){return a.f.find(function(c){return Mk(c)&&!c.Gm&&1===c.Cd&&b>c.startTime&&b<c.endTime})||null};ll=function(a,b){var c=a.l.getPosition();return a.f.filter(function(d){return 1===d.Cd&&!d.Bh}).sort(function(d,e){return e.startTime-d.startTime}).find(function(d){return d.startTime>c&&d.startTime<b})||null};
114
- Fl=function(a,b){return _.I(function(c){if(1==c.a){b.state=vl;if(b.ne)return _.x(c,Nl(a,b,b.ne),3);if(!b.qh){if(b.rh){b.ma=[{URI:b.rh,DURATION:b.endTime-b.startTime}];var d={URI:b.ma[0].URI,DURATION:b.ma[0].DURATION};b.Ej&&(d[Zb]=b.Ej);Ol(a,new _.Q(oc,{id:b.aa,detail:{ASSETS:[d]}}));b.state=Pl}else b.state=Ql;return c.C(3)}return _.x(c,Rl(a,b,b.qh),3)}return c["return"](b.state===Pl)})};
115
- Nl=function(a,b,c){var d,e,f,g,h,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,Sl(a,n.Ec.URI),3);if(2!=q.a)return p=q.f,q["return"](p.ASSETS.map(function(t){return{id:n.id,customAttributes:n.customAttributes,Ec:t}}));if("uri"===n.type)return q["return"]([{id:n.id,customAttributes:n.customAttributes,Ec:n.Ec}]);throw new _.qi("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,_.kh(n))}),b.ne={entries:e,ma:d},h={ASSETS:d.map(function(n){return n.Ec})},Tl(a,b,h),_.G(m,0);l=_.H(m);a.g.error("Failed to bind grouped asset list for "+b.aa,l);b.state=Ql;_.z(m)})};
117
- Rl=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.aa),Ol(a,new _.Q(mc)),_.x(f,Sl(a,c),4);if(2!=f.a)return d=f.f,Tl(a,b,d),_.G(f,0);e=_.H(f);a.g.error("Failed to load X-ASSET-LIST",e);b.state=Ql;_.z(f)})};
118
- Tl=function(a,b,c){b.ma=c.ASSETS;b.ma&&0!==b.ma.length||a.g.info("Interstitial "+b.aa+" has no assets, will be smoothly skipped");if(null==b.V){var d=gl(b.ma.map(function(e){return e.DURATION}));b.V=b.startTime+(null==b.uc?d:Math.min(b.uc,d))}b.state=Pl;Ol(a,new _.Q(nc));Ol(a,new _.Q(oc,{id:b.aa,detail:c}))};Ul=function(a,b){var c=a.j.jo;if(c){var d=new URL(b);d.searchParams.set("_HLS_primary_id",c);return d.toString()}return b};
119
- Gl=function(a,b,c,d,e){var f,g,h;return _.I(function(l){if(0===b.ma.length)return l["return"]();f=a.a.getCurrentItem();if(!f)return l["return"]();g=Ll(a,b,c);if(0===g.length)return l["return"]();Ml(a,b,g);(h=0===c&&a.l.isLive())||(null!=e?wk(a.a,e,!0):null!=b.V&&wk(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
- Hl=function(a,b,c){if(b.ma)if(0===b.ma.length){var d=function(){c.isLive()?a.g.info("Skipping empty live interstitial "+b.aa):null!=b.V&&0!==b.wo?c.seek(b.V):a.g.info("Empty VOD interstitial "+b.aa+", continuing to next segment")};c.one(_.sg,d);a.o.push(function(){c.off(_.sg,d)});a.g.info(Eb+b.aa+" to be skipped")}else{var e=a.a.getCurrentItem();if(e){var f=Ll(a,b,1);if(0!==f.length){var g=f[0].id;null!=b.V&&wk(a.a,b.V);e.next=[g];e.transition={Df:{position:b.startTime,itemId:g,V:b.V}};a.g.info(Eb+
121
- b.aa+" for "+(b.startTime+" s"));Ml(a,b,f)}}}};Ml=function(a,b,c){ak(a.a,c);c=a.a;hk(c);c.f&&(c.f.$a&&sk(c,c.f,c.f.$a),uk(c),vk(c,c.f.next));b.state=ul;Ol(a,new _.Q(_.rc,{ad:null}))};
122
- Ll=function(a,b,c){var d=0,e=!!b.ne,f=b.ma.map(function(l,m){var n=b.aa;e&&(n=b.ne.ma[m].id);d+=l.DURATION;return{id:n+"-"+m,config:{source:{url:Ul(a,l.URI),type:_.Vl}},duration:l.DURATION,ub:d,dc:n,next:[],$a:new Ci(c,m+1,b.ma.length,l.DURATION,n,b.jk,b.customAttributes||null),audio:b.audio}});Ok(f,c);f.forEach(function(l){l.Ff=function(){var m=l.$a;a.g.info("Playing ad "+(m.f+"/"+m.a)+" of interstitial "+l.dc)}});if(null!=b.uc&&(f=Wl(a,b,f),0===f.length))return[];var g=f[0].Ff;f[0].Ff=function(){b.Bj=
123
- !0;b.Qi&&(b.gh=!1);a.g.info("Playing interstitial "+b.aa+" with "+(b.ma.length+" assets and will resume primary content ")+((b.V?"at "+b.V.toFixed(1)+" s":"after interstitial ended")+"."));g()};f[0].Zi=function(l){null==b.V&&(b.V=b.startTime+l,wk(a.a,b.V),a.g.info("Primary content will resume at",b.V.toFixed(1),"s"));b.state=Xl};var h=f[f.length-1];h.Ea=function(){b.state=Lk;bk(a.a,f.map(function(l){return l.id}));2===c&&zk(a.a)};h.Ng=a.j.adReleaseDelayMs;return f};
124
- Wl=function(a,b,c){var d=b.uc;a.g.info("Playout limit for "+b.aa+" is "+(d+" s"));b=c[c.length-1].ub;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.ub-f.duration<=d});e.forEach(function(f){f.$a.a=e.length});a=e[e.length-1];c=d-(a.ub-a.duration);.1>Math.abs(c-a.duration)?a.transition.Ea=Hf:a.transition.Df={position:c,itemId:Hf,V:null};a.maxDuration=c;return e};
125
- Ol=function(a,b){a.l.trigger(b)};Sl=function(a,b){var c,d,e,f,g,h;return _.I(function(l){if(1==l.a){c=a.a.nf();if(!c)throw Error("No player found");d=c.getNetworkEngine();e=_.Xk(Ul(a,b));return _.x(l,Yl(d,e),2)}f=l.f;if(null===f)return a.g.warn("X-ASSET-LIST "+b+" returned no content"),l["return"]({ASSETS:[]});g=Jk(f);if(!g)throw new _.qi("Invalid X-ASSET-LIST list response");h=f;return l["return"](h)})};Zl=function(){this.a=null};
126
- $l=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)})}};bm=function(a){this.m=a;this.j=this.m.getNetworkEngine();this.a=new _.si;this.h=null;this.f=!0;am(this)};
127
- am=function(a){a.a.on(window,"offline",function(){cm(a,!1)});a.a.on(window,"online",function(){a.f||dm(a)});a.a.on(a.m,cg,function(){return em(a)});a.a.on(a.m,"suspend",function(){return em(a)});a.a.on(a.m,_.Vg,function(){return em(a)});a.a.on(a.m,_.tf,function(){a.f||dm(a)});a.a.on(a.m,_.If,function(){a.f||dm(a)});a.a.on(a.m,_.eg,function(){switch(a.m.getState()){case 2:em(a);break;default:em(a)}})};dm=function(a){a.m.getConfiguration().connectivityCheck&&(fm(a),a.h=(new _.ej(function(){return gm(a)})).ha(5))};
128
- em=function(a){a.f&&dm(a)};fm=function(a){a.h&&(a.h.stop(),a.h=null)};gm=function(a){var b,c;return _.I(function(d){if(1==d.a)return(b=a.m.getConfiguration().connectivityCheck)&&a.m?_.x(d,hm(a.j,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;cm(a,c);_.z(d)})};cm=function(a,b){fm(a);a.f!==b&&(a.f=b,a.m&&a.m.getConfiguration().connectivityCheck&&a.m.trigger(new _.Q($e,{online:a.f})))};_.im=function(){this.a=[]};
129
- _.km=function(a,b){a.a.push(jm(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.lm=function(){var a,b,c=new Promise(function(e,f){a=e;b=f}),d=Object.assign(c,{done:!1,Og:!1,oo:!1,value:null,error:null,resolve:function(e){d.Og=!0;d.done=!0;d.value=e;a(e)},reject:function(e){d.oo=!0;d.done=!0;d.error=e;b(e)}});return d};
130
- _.nm=function(a,b){var c=[a];var d=mm.apply(_.nm,_.kh(c));if(!d||d.protocol.includes("."))c=b?[a,b]:[a,location.href],c=(d=mm.apply(_.nm,_.kh(c)))?c:null;if(!c)throw new _.N(_.O,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("//")};mm=function(a,b){try{return new URL(a,b)}catch(c){return null}};pm=function(){this.a=om()};qm=function(a){return om()-a.a};rm=function(a){var b=new pm;b.a=a.a;return b};
131
- om=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};sm=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.h=new pm};um=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(tm(a,d),dl(c,d.byteLength,qm(a.h)),a.h.a=om());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 um(a,b,c)})})};
132
- tm=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};vm=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.h=b;this.f=0};wm=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
- xm=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.j=new vm(a);this.length=a;this.A=b;this.f=this.a=this.h=0;this.l=null;this.o=-1;this.w=new pm};
134
- Am=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,qm(a.w)),a.w.a=om());if(f)return f=ym(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){wm(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=zm(a);for(f=[];e;)f.push(e),e=zm(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 h=f[f.length-1],
135
- l=h.end-e.start;e={start:e.start,end:h.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 Am(a,b,c,d)})})};zm=function(a){if(0<=a.o&&a.f<a.o)return null;for(var b=Bm(a);null!==b;){if(b.name===_.Je){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=Bm(a)}return null};
136
- Bm=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=Cm(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=Cm(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 _.N(_.O,3,3E3);}if(2097151<e)throw new _.N(_.O,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
- Cm=function(a){var b=a.l.getUint32(a.a,!1);a.a+=4;return b};ym=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 Dm,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new Em,e={Td:!1,Hj:!1};b={T: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.Td||(e.Td=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.Hj=!0;d.abort()},a);b.T=b.T["finally"](function(){window.clearTimeout(f)})}return b};
139
- Fm=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,t,u,y,B,A,C,E,D;return _.I(function(J){switch(J.a){case 1:return e=Hm,f=new pm,g=rm(f),_.F(J,2),_.x(J,e(a,c),4);case 4:h=J.f;l=Vk(h.headers);m={uri:h.url,data:null,headers:l,status:h.status,timeMs:0,responseStartMs:qm(g),request:b};if(Yk(h.status)){J.C(5);break}n=m;return _.x(J,h.arrayBuffer(),6);case 6:throw n.data=J.f,m.timeMs=qm(f),$k(m);case 5:p=h.headers.get(ya);bl(b,p);q=p?parseInt(p,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return B=
140
- h.body.getReader(),A=new xm(q,!b.disableMergedFragments),C=function(P,U){if(d.Td)return null;U&&U.data&&(dl(b,U.data.byteLength,qm(g)),g.a=om());return b.onFragment&&U?b.rateLimitBps?el(b.rateLimitBps,qm(f),b.bytesLoaded).then(function(){return b.onFragment(U)}):b.onFragment(U):null},E=m,_.x(J,Am(A,B,C,b.onProgress),12);t=h.body.getReader();u=new sm(q);return _.x(J,um(u,t,b),9);case 9:y=J.f;if(!b.rateLimitBps){J.C(10);break}return _.x(J,el(b.rateLimitBps,qm(f),y.byteLength),10);case 10:m.data=y;J.C(8);
141
- break;case 12:E.data=J.f;case 8:if(d.Td)throw Error("Request was aborted");m.timeMs=qm(f);return J["return"](Zk(m));case 2:D=_.H(J);if(d.Td)throw new _.N(1,1,7001,{url:a,request:b});if(d.Hj)throw new _.N(1,1,1003,{url:a,request:b});if(D&&1001===D.code)throw D;_.Sh("Error while fetching data:",D);throw new _.N(1,1,1002,{url:a,error:D,request:b,status:-1},D);}})};
142
- Jm=function(a){var b=a.uris[a.uriIndex],c=new Im,d=new pm,e=rm(d),f=0,g,h=new _.lm;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=qm(e));p.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!l&&(p=p.getResponseHeader(ya),bl(a,p),l=!0)};c.onload=function(p){p=p.target;var q=(p.getAllResponseHeaders()||"").trim().split("\r\n"),t={};
143
- 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=qm(e);m||dl(a,p.response?p.response.length:0,y);var B=_.al(t,p.response,p.status,b,p.responseURL,a,y,g);a.rateLimitBps?el(a.rateLimitBps,qm(e),a.bytesLoaded).then(function(){h.resolve(B)}):h.resolve(B)}catch(A){h.reject(A)}};c.onerror=function(p){p=p.target;if(0>=p.status)h.reject(new _.N(1,1,1002,{url:b,request:a,status:p.status}));else{var q=p.getAllResponseHeaders(),t={};if(q){q=
144
- _.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=_.al(t,p.response,p.status,b,p.responseURL,a,qm(e),g);h.resolve(p)}};c.ontimeout=function(){h.reject(new _.N(1,1,1003,{url:b,request:a}))};c.onprogress=function(p){var q=qm(d);d.a=om();if(100<q||p.lengthComputable&&p.loaded===p.total)dl(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);return{T:h,
145
- request:a,abort:function(){c.abort();h.reject(new _.N(1,1,7001,{url:b,request:a}));return Promise.resolve()}}};Km=function(){};_.Mm=function(a,b){b=void 0===b?!0:b;var c=_.Lm(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")};_.Nm=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
- _.Om=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};_.Pm=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};_.Qm=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
- _.Rm=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};_.Lm=function(a){a=_.R.fromCharCode(_.Ni(a));return btoa(a)};
148
- Tm=function(a){try{var b=a.uris[a.uriIndex],c=_.Sm(b);return{T:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{T:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
149
- _.Sm=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Sh("Bad data URI, failed to parse scheme"),new _.N(_.O,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.Sh("Bad data URI, failed to extract encoding and MIME type"),new _.N(_.O,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?_.Nm(a).buffer:_.R.eb(a).buffer,contentType:c}};
150
- _.Um=function(a,b){this.T=a;this.B=b;this.a=!1};jm=function(a,b){a.T.then(function(){return b(!0)},function(){return b(!1)});return a};Wm=function(a,b){_.Um.call(this,new _.lm,function(){return Promise.resolve()});this.D=a;this.h=null;this.w=this.T;this.f=-1;this.j=this.l=this.o=null;this.A=b||null;Vm(this)};Xm=function(a,b,c){a.o=setTimeout(b,c)};
151
- Vm=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=Ym(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*Ym(e.request.fuzzFactor,.5));a.f*=Ym(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.l=h;Xm(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.N(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.T}).then(function(e){a.w.resolve(e)})["catch"](function(e){if(e instanceof _.N){var f=b<d,g=7001!==e.code,h=b<c;if((1===e.severity||f)&&g&&h)return a.A&&a.A(e),Vm(a);g&&e.a(_.O);a.w.reject(e)}else a.w.reject(e)})};Ym=function(a,b){return null===a||void 0===a?b:a};
153
- _.Zm=function(){this.h=[];this.f=[];this.j=[];this.w=!1;this.o=new _.im;this.a={};this.headers=new Map;this.l=0;this.A=null;this.a.data=Tm;!window.fetch||!window.AbortController||_.jj(6)||_.kj()&&68<_.Kj().browserVersion.major?(this.a.http=Jm,this.a.https=Jm):(this.a.http=Gm,this.a.https=Gm)};$m=function(a,b){a.A=b};an=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.Ri(c.ea(d.data)))})};
154
- Yl=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.x(e,an(a,b),2);c=e.f;if(!c)return e["return"](null);try{d=JSON.parse(c);if(null==d||typeof d!==_.Te)throw Error("Not an object");return e["return"](d)}catch(f){throw new _.qi("Failed to parse JSON response","json-failed");}})};
155
- _.dn=function(a,b,c){if(a.w)return new Wm(Promise.reject(new _.N(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;bn(a,b);b.responseModifiers=_.kh(a.j).concat(_.kh(b.responseModifiers||[]));f=d=new _.lm;try{e={};for(var g=_.v([{type:"public",modifiers:b.requestModifiers},{type:"internal",
156
- modifiers:a.f}]),h=g.next();!h.done;e={Ue:e.Ue},h=g.next()){e.Ue=h.value;for(var l={},m=_.v(e.Ue.modifiers),n=m.next();!n.done;l={Te:l.Te},n=m.next())l.Te=n.value,f=f.then(function(t,u){return function(y){if(p.a)throw new _.N(_.O,1,7001,y?{url:y.uris[y.uriIndex],request:y}:null);return"internal"===t.Ue.type?u.Te(y,c)||y:u.Te(y)||y}}(e,l))["catch"](function(t){if(t instanceof _.N)throw t;throw new _.N(_.O,1,1006,null,t);})}f=f.then(function(t){return{request:t,plugin:cn(a,t)}});var p=new Wm(f,a.A);
157
- g={};var q=_.v(b.responseModifiers);for(n=q.next();!n.done;g={Se:g.Se},n=q.next())g.Se=n.value,p.then(function(t){return function(u){function y(){if(p.a)throw new _.N(_.O,1,7001,u?{url:u.request.uris[u.request.uriIndex],request:u.request}:null);}y();var B=t.Se(u)||u;y();return B}}(g))["catch"](function(t){return function(u){if(u instanceof _.N&&u.data&&u.data.response){var y=t.Se(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
- _.N)throw t;throw new _.N(_.O,1,1007,null,t);});_.km(a.o,p);d.resolve(b);return p}catch(t){return new Wm(Promise.reject(t))}};hm=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=_.Xk(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.F(g,4);return _.x(g,a.fetch(e).T,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
- bn=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)}};cn=function(a,b){var c=b.uris[b.uriIndex],d=new _.nm(c,location.href);d=d?d.a.protocol.slice(0,-1):"";var e=a.a[d];if(!e)throw new _.N(_.O,1,1E3,{url:c});return function(f){return e(f)}};fn=function(){en.forEach(function(a){return a()})};_.gn=function(a){en.push(a)};_.jn=function(a){hn&&performance.mark(a)};
160
- _.ln=function(a,b,c){hn&&(b=performance.measure(a,b,c),null!=b&&kn.info('Step: "'+a+'" took '+b.duration.toFixed(0)+" ms."))};on=function(a,b){var c=mn;nn.set(a.toLowerCase().split(";")[0]+"-"+c,{priority:c,plugin:b})};_.sn=function(a,b){for(var c=_.v([pn,qn,rn,mn]),d=c.next();!d.done;d=c.next())if(d=nn.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
- tn=function(a,b){var c=b||Fi,d=null,e=null,f=!1;return function(g){for(var h=[],l=0;l<arguments.length;++l)h[l]=arguments[l];if(f&&c(h,d))return e;f=!0;d=h;return e=a.apply(null,_.kh(h))}};_.un=function(a){return null!=a};vn=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 _.qi("No non-null, non-undefined value found");};
162
- wn=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
- _.xn=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};_.yn=function(a){return a.scheme+"//"+(a.a+(a.port?":"+a.port:"")+a.path+a.h+a.f)};_.zn=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
- Bn=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};_.Cn=function(a,b){if(a.startsWith("http://")||a.startsWith(_.te))return a;var c=b;b.startsWith("//")&&(c=location.protocol+c);c=new URL(c);c.search="";return(new URL(a,c)).toString()};
166
- _.Dn=function(a){if(!a)return null;a=(new _.nm(a)).a.pathname.split("/");if(1>a.length)return null;a=a.pop().split(".");return 1>=a.length?null:a.pop().toLowerCase()};Gn=function(a,b){for(var c=_.v(En[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===_.Fn?"":null};_.Hn=function(a,b){var c=a;b&&(c+=';codecs\x3d"'+b+'"');return c.replace(/\s/g,"")};_.In=function(a){return a.split(";")[0]};
167
- _.Jn=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(","):""};Kn=function(){};
168
- _.On=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.pj()&&(a=360);var b=_.Tk();b.maxAttempts=3;a={source:"",license:Ln,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,ads:{hls:{enable:!0,resolutionOffsetSec:35}},manifest:{attemptParameters:_.Tk(),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:Mn(a),useCmsd:!0},contentSteering:{enabled:!0,attemptParameters:_.Tk()},drm:null,cmcd:{enabled:!1,version:1,rtpMultiplier:5,deliveryMode:"headers"},enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:_.Ie,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:_.Nn,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:_.Gf},restrictions:Mn(),tizen:{sideStreamText:_.jj(2)},safari:{enableHlsVideoTrackInfo:!1,enableMetadata:!1},mse:{sendPlaybackSessionIdHeader:!1},trickPlay:{speedUpMode:_.Nd,
172
- preferTrickPlayTracks:!0},playlist:{timeline:"basic",content:_.Ub,cropTimeline:!1},yospace:{enabled:!1},cmsd:{enabled:!0},mediatailor:{enabled:!1,sessionConfig:{}},disableRestrictions:!1,chromecast:{useSenderAbrConfig:!1,useSenderStreamingConfig:!1}};if(_.jj()||_.kj())a.ads.hls.enable=!1;if(_.ij("Edge/")||_.jj())a.streaming.gapDetectionThreshold=.5;_.kj()&&(a.streaming.stallEnabled=!1);_.mj()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=
173
- .02);_.jj()&&(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
- _.Qn=function(a,b){b=void 0===b?{}:b;if(!a)return _.On();for(var c=[_.On()],d=!1,e=_.v(a),f=e.next();!f.done;f=e.next())f=f.value,null!==f&&void 0!==f&&(_.M.ia(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.yo||null==f.suggestedPresentationDelay||c.push({manifest:{suggestedPresentationDelay:f.suggestedPresentationDelay}}));
175
- c=_.M.ra.apply(null,c);_.M.ia(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.M.P(c.volume)&&(!_.M.ya(c.volume)||_.M.isNaN(c.volume)))throw new _.N(_.O,7,7100,"config.volume is not a number");if(!_.M.P(c.preferredTextLanguage)&&!_.M.ia(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.N(_.O,7,7100,"config.preferredTextLanguage is not a string or an array");if(!_.M.P(c.preferredAudioLanguage)&&!_.M.ia(c.preferredAudioLanguage)&&!Array.isArray(c.preferredAudioLanguage))throw new _.N(_.O,
176
- 7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.M.P(c.preferredAudioCodec)&&!_.M.ia(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.N(_.O,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.M.P(c.preferredVideoCodec)&&!_.M.ia(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.N(_.O,7,7100,"config.preferredVideoCodec is not a string or an array");if(!_.M.P(c.drm)){if(c.drm.env&&!_.M.ia(c.drm.env))throw new _.N(_.O,
177
- 7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.M.ia(c.drm.offlineId))throw new _.N(_.O,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(!_.M.ya(d.bufferingGoal)||_.M.isNaN(d.bufferingGoal))throw new _.N(_.O,7,7100,"config.streaming.bufferingGoal is not a number");
178
- if(!_.M.ya(d.rebufferingGoal)||_.M.isNaN(d.rebufferingGoal))throw new _.N(_.O,7,7100,"config.streaming.rebufferingGoal is not a number");if(d.rebufferingGoal>d.bufferingGoal)throw new _.N(_.O,7,7100,"config.streaming.rebufferingGoal must be \x3e\x3d bufferingGoal");if(!_.M.ya(d.bufferBehind)||_.M.isNaN(d.bufferBehind))throw new _.N(_.O,7,7100,"config.streaming.bufferBehind is not a number");if(!_.M.ya(d.smallGapLimit)||_.M.isNaN(d.smallGapLimit))throw new _.N(_.O,7,7100,"config.streaming.smallGapLimit is not a number");
179
- if(!_.M.ya(d.durationBackoff)||_.M.isNaN(d.durationBackoff))throw new _.N(_.O,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.M.P(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.k)throw new _.N(_.O,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");Pn(c.restrictions);Pn(c.abr.restrictions);c.abr.initialRestrictions&&Pn(c.abr.initialRestrictions)}return c};
180
- Mn=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
- Pn=function(a){_.M.P(a.maxPixels)&&(a.maxPixels=Infinity);_.M.P(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.M.P(a.maxHeight)&&(a.maxHeight=Infinity);_.M.P(a.maxWidth)&&(a.maxWidth=Infinity);_.M.P(a.minPixels)&&(a.minPixels=0);_.M.P(a.minBandwidth)&&(a.minBandwidth=0);_.M.P(a.minHeight)&&(a.minHeight=0);_.M.P(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 _.N(_.O,7,7100,"Restrictions contain NaN");};Rn=function(a){return typeof a===_.Te&&!Array.isArray(a)&&"source"in a};
183
- Sn=function(a){if(!a)return null;a=(new _.nm(a)).a.pathname.toUpperCase();return a.endsWith(".MPD")?_.Hc:a.endsWith(".M3U8")?_.Vl:a.endsWith(".MP4")?_.Pg:a.endsWith(".MP3")?"audio/mp3":a.endsWith("MANIFEST")||a.endsWith(".ISM")?_.Mc:null};_.Un=function(a){var b;Rn(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.hg||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=Tn(b[c]);d&&a.push(d)}return a};
184
- Tn=function(a){var b=null;_.M.ia(a)&&(a={url:a});typeof a===_.Te&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.M.P(a.drmProtected)||typeof a.drmProtected!==_.Yc||(b.drmProtected=a.drmProtected),_.M.P(a.isLive)||typeof a.isLive!==_.Yc||(b.isLive=a.isLive),_.M.P(a.name)||typeof a.name!==_.hg||(b.name=a.name),_.M.P(a.lc)||typeof a.lc!==_.hg||(b.lc=a.lc),_.M.P(a.hb)||typeof a.hb!==_.hg||(b.hb=a.hb));b&&!b.type&&(b.type=Sn(a.url),b.type?Vn.debug("Detect media type "+b.type+" for "+
185
- a.url):Vn.warn("Unable to detect media type for "+a.url));return b};Wn=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};_.Yn=function(a){_.Xn[a.J]=a};
186
- _.$n=function(a){var b={attemptParameters:_.Tk(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,ignoreUnrecognizedInitData:!0,Pa:{},widevineVersion:_.Gd};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===_.hg&&0<a.widevineVersion.length&&(b.widevineVersion=a.widevineVersion),a.env)){var c=_.Xn[a.env]||null;if(!c)throw _.Rh(_.Aa,_.vb+a.env+_.aa),new _.N(_.O,6,6015,_.Ba+a.env+"' is missing.");b.Pa=_.Zn(c,a.customData)||{};_.R.startsWith(a.env.toLowerCase(),ce)&&(b.enforceSingleSession=!0)}return b};
188
- ao=function(a,b,c){var d=_.R.ea;this.h=a;this.f=b;JSON.parse(d(_.Nm(a)));this.a=JSON.parse(d(_.Nm(b)));this.j=c};
189
- co=function(a){var b=bo,c=_.R.eb,d={kty:"RSA",n:b.n,e:b.e},e=a.h+"."+a.f,f=a.j;return new Promise(function(g,h){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=_.Nm(f);return l.verify(m,n,q.buffer,p.buffer)}).then(function(n){n?g():h(new _.qi("Signature Verification failed",Bg))})["catch"](h)}else g()})};eo=function(a){this.f=a;this.a=null;this.g=new _.L("clpp.utils.LicenseKey")};
190
- fo=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 ao(b[0],b[1],b[2]);a.a=b}return a.a};
191
- go=function(a){var b,c,d;return _.I(function(e){if(1==e.a)return b=fo(a),_.F(e,2),_.x(e,co(b),4);if(2!=e.a)return _.G(e,0);if((c=_.H(e))&&c.code===Bg)throw c;d=new _.nm(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
- ho=function(a){switch((a.ca[0]||{src:"",type:""}).type){case _.Hc:a="dash";break;case _.Mc:a="ss";break;case _.Vl:a="hls";break;case _.Pg:a="mp4";break;default:a=""}return a};io=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};jo=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};ko=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};
193
- mo=function(a){var b=a.configuration,c="no";b.drm&&!_.M.ta(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(ce)||lo(a).endsWith("drmtoday.com"))&&(c=ce);return c};no=function(a){a=a.drmInfo;var b="";if(a)switch(a.keySystem){case _.Gd:b="wv";break;case _.Ed:b="pr";break;case _.Cd:b="fps"}return b};oo=function(a){a=a.drmInfo;var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};
194
- po=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};lo=function(a){return(a=(a=a.drmInfo)&&a.licenseServerUri||"")?(new _.nm(a)).a.hostname:""};
195
- to=function(a,b){var c="ie"===_.Kj().browser,d=b.configuration,e=_.kh(Array.from(_.di.keys())).concat(_.kh(b.qj));d={"CL-KEY":a.f,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ia,"CL-USER-ID":io(d),"CL-ASSET-ID":jo(d),"CL-SESSION-ID":ko(d),"CL-PLAYBACK-TYPE":b.isLive?qo:ro,"CL-CONTENT-TYPE":ho(b),"CL-PLUGINS":e.join(" "),"CL-DRM":mo(b),"CL-DRM-CDM":no(b),"CL-DRM-SEC-LEVEL":po(b),"CL-DRM-OFFLINE":oo(b),"CL-DRM-IP":lo(b)};so&&so.companionSdk&&(so.companionSdk.name&&(d["CL-COMPANION-SDK"]=so.companionSdk.name),
196
- so.companionSdk.version&&(d["CL-COMPANION-SDK-VERSION"]=so.companionSdk.version));c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=e);e=_.Xk(["https://downloads.castlabs.com/r/register/"]);e.method="GET";e.headers=d;return(new _.Zm).fetch(e).T.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=fo(a);f=f.data;var h=f.status;if(g.a&&g.a.ilv)f=Promise.resolve();else{switch(h){case 403:case 404:g=7101;
197
- var l="Castlabs Player license is invalid";if(403===h){h=l;l="";try{l=JSON.parse(decodeURIComponent(f.responseText)).message}catch(m){}f=h+(": "+l)}else f=l+"!";l=f;break;case 412:g=7103;l="License requires a viewer ID. It should be supplied either via the `viewerId` config or in case of DRMtoday via the `drm.customData.userID` config.";break;default:f=Promise.resolve();break a}a.g.error($a+l);f=Promise.reject(new _.N(_.O,7,g,l))}}return f})};
198
- _.vo=function(a,b){a=_.uo(a);b=_.uo(b);return a.split("-")[0]===b.split("-")[0]};_.uo=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=wo.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};Eo=function(a){this.m=a;this.f=a.getNetworkEngine();this.h=xo(this);this.f.Nd(this.h);this.a=null};
199
- xo=function(a){return function(b){var c=b.headers,d=b=null,e=_.M.oi(c,"cmsd-dynamic");c=_.M.oi(c,"cmsd-static");e&&(b=Fo(e),a.a=b);if(c)try{e={};var f=c.split(",");for(c=0;c<f.length;c++){var g=Go(f[c]),h=g.key,l=g.value;Object.keys(Ho).includes(h)&&(e[Ho[h]]=l)}d=_.M.Pb(e)?e:null}catch(m){Io.error("CmsdManager parseCmsdStaticHeader_ failed:",m),d=null}(b||d)&&a.m.trigger(new _.Q("cmsd-event",{Bp:b,Pp:d}))}};
200
- Fo=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=Go(c[e]),g=f.key;f=f.value;Object.keys(Jo).includes(g)&&(d[Jo[g]]=f)}return d}).filter(function(c){return _.M.Pb(c)});return 0<b.length?b:null}catch(c){return Io.error("CmsdManager parseCmsdDynamicHeader_ failed:",c),null}};
201
- Go=function(a){var b=a.split("\x3d"),c=b[0];b=b[1];if(!c)throw new _.qi("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 _.qi("Parsing CMSD, not recognized value type of "+a);};
202
- S=function(a,b,c){_.zi.call(this);var d=this;fn();this.g=new _.L("clpp.Player");this.g.info("SDK version: 6.29.0");if(!a)throw new _.N(_.O,7,7102);this.za=new _.si;this.f=this.D=b||_.On();this.l=null;void 0===this.f.license&&(this.f.license=Ln,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 _.N(_.O,7,7101,"No license provided in configuration!");this.j=
203
- new Oj(a,c);this.G=this.A=this.a=this.I=null;this.J=new _.Zm;this.h=null;this.ja=[];this.ka=!0;this.L={};this.Ja=null;this.Z=!0;this.da=this.U=!1;this.O=this.qd=null;this.tg=!1;this.gb=new bm(this);this.B=null;this.on(_.eg,function(){d.getState()===_.Ko&&(d.a?d.a.unload():Promise.resolve())});this.on(_.Dc,function(){d.tg=!0});this.on(_.Cc,function(){d.tg=!1});this.on(_.ug,function(){return Lo(d)});Mo(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(No);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)}}Oo(this,a);this.R=_.pa;ji(this)};
205
- _.Po=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))};Mo=function(a,b){a.I=new eo(b);go(a.I)["catch"](function(c){setTimeout(function(){a.g.error($a+c);a.trigger(new _.Q(_.ke,{detail:new _.N(_.O,7,7101)}));a.destroy()},1E3)})};
206
- Qo=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 eo(a.f.license)),_.F(e,2),a.g.debug("Verifying license remotely"),_.x(e,to(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(Wn,1E3,d,c);_.z(e)})};
207
- Oo=function(a,b){a.ja=b;for(var c=_.v(a.ja),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.L[e]=d)}a.Tc("onPlayerCreated")};
208
- Ro=function(a){var b,c;return _.I(function(d){switch(d.a){case 1:if(a.Z)return a.g.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.za.off(document,Tg);a.trigger(new _.Q(_.Mf));a.j&&a.j.release();if(!a.h){d.C(2);break}return _.x(d,a.h.Gc(),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(_.eg,function(e){b=e}),d["return"](a.Tc(_.Ye).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(_.eg,c);a.trigger(new _.Q(Lf))}));a.trigger(new _.Q(Lf));return d["return"](new Promise(function(e){return e()}))}})};
210
- To=function(a,b,c){if(a.R===_.pb)b=So(b,c);else if(2!==(a.a?a.a.canPlay(b[0],c):0)||a.da){a.da=!1;if(b){for(var d=a=null,e=0;e<b.length;e++);e=Object.values(_.Uh);for(var f=0;f<b.length;f++)for(var g=0;g<e.length;g++){var h={jb:e[g],confidence:e[g].canPlay(b[f],c)};if(null===a||a.confidence<h.confidence)a=h,d=f}a&&typeof d===_.k&&0<a.confidence?(_.Vh.debug("Player Factory '"+a.jb.a()+"' can play",b[d]),b=new Th(a.jb,d)):(_.Vh.debug("No compatible Player Factory found for sources:",b),b=null)}else b=
211
- null;if(!b)throw new _.N(_.O,7,7003,"No player factory compatible with given sources found!");c=b.jb;a=c.create();b={jb:c,player:a,sourceIndex:b.sourceIndex}}else b={jb:a.A,player:a.a,sourceIndex:0};return b};So=function(a,b){var c=Xh(function(d){return d.f(_.pb)&&a.every(function(e){return 2===d.canPlay(e,b)})});if(!c)throw new _.N(_.O,7,7003,"No compatible player implementing playlist mode found!");return{jb:c,player:c.create(),sourceIndex:0}};
212
- Vo=function(a){var b;return _.I(function(c){if(1==c.a){if(!a.a)return a.g.warn(sb),c["return"]();b=a.a;if(!b.Gh)return a.g.warn(wb),c["return"]();a.trigger(new _.Q(He));return _.x(c,b.Gh(),2)}return _.x(c,_.Uo(a),0)})};
213
- _.Zo=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a){if(a.U)throw new _.N(_.O,7,7E3,"Player is already destroyed.");if(!a.j)throw new _.N(_.O,7,7E3,"No surface associated with this player!");_.jn(of);return _.x(f,a.release(),2)}if(3!=f.a){d=c||_.Un(b);if(!b||0===d.length)throw new _.N(_.O,7,7003,jb);a.Ja=d;a.f=_.Qn([a.D,b,{source:d}]);a.Z=!1;e=To(a,d,a.f);_.Po(a,e.player,e.jb);Wo(a,a.a);a.a&&a.a.setSourceIndex(e.sourceIndex);Xo(a);a.a&&a.a.setCdnErrorCallback(a.O);Yo(a,a.f);a.f.cmsd.enabled&&
214
- (a.B=new Eo(a),a.a.setCmsdManager(a.B));if(a.f.pauseWhenInBackground)a.za.on(document,Tg,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});ki(a);return _.x(f,a.Tc("onContentWillLoad",a.f.source[e.sourceIndex]),3)}_.jn(nf);_.ln("player.beforeLoad",of,nf);_.z(f)})};
215
- _.$o=function(a){return _.I(function(b){a.j.getMedia()||a.j.getCastElement();a.trigger(new _.Q(He));return _.x(b,Promise.all([a.a.load(a.f),a.h?a.h.load():Promise.resolve()]),0)})};Wo=function(a,b){try{var c=crypto.randomUUID()}catch(d){c=$l()}a.g.info("Playback session started, ID:",c);b.setPlaybackSessionId(c);a.G=c};ap=function(a){a.G&&(a.g.info("Playback session ended, ID:",a.G),a.G=null,a.a&&a.a.setPlaybackSessionId(null))};
216
- cp=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)}bp(a);_.z(f)})};
217
- bp=function(a){var b=_.Ei(a.f.preferredTextLanguage).filter(function(f){return f}),c=a.f.preferForcedSubtitles,d=a.getTrackManager().pa().filter(function(f){return c?f.kind===_.me:f.kind!==_.me});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().oa();e&&e.language?(e=_.uo(e.language||""),b.push(e)):(e=a.getTrackManager().Ma())&&e.language&&(e=_.uo(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=_.uo(f);if(f=d.find(function(h){h=_.uo(h.language||"");return _.vo(h,g)}))return a.getTrackManager().Za(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
- _.Uo=function(a){var b;return _.I(function(c){if(1==c.a)return _.jn(kf),Qo(a,{configuration:a.getConfiguration(),ca:a.vi(),drmInfo:a.getDrmInfo(),qj:Object.keys(a.L),isLive:a.isLive()}),cp(a),li(a),_.x(c,a.Tc(_.Ve),2);if(3!=c.a)return a.f.autoplay?(b=a.h?a.h.hd():!0)?_.x(c,a.play(),3):c.C(3):c.C(3);_.jn(jf);_.ln("player.afterLoad",kf,jf);_.z(c)})};Yo=function(a,b){var c=bi(a,b);c&&(a.h=c.create(a))};
220
- Lo=function(a){if(!a.h&&a.A&&a.a&&a.f.ads.hls.enable&&a.getTimelineCues().some(function(c){return Hk(c.schemeIdUri)})){var b=a.f.mse.sendPlaybackSessionIdHeader?a.G:null;a.h=new Zl;a.h.ld(a.a,a.A,b)}};Xo=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.I(function(c){return a.tg&&a.qd?_.x(c,a.qd(b),0):c["return"]()})})};_.dp=function(a){a&&(0<=No.indexOf(a)||No.push(a))};ep=function(){this.Pc=null;this.f=[];this.h=[];this.Da=new _.L(qd);this.a=null;this.j=!1};
221
- fp=function(a){return[a.Pc].concat(_.kh(a.f)).filter(function(b){return null!=b})};hp=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,gp(a,c),0)})};ip=function(a,b){var c;return _.I(function(d){c=function(){return Promise.all(fp(a).map(b))};return _.x(d,gp(a,c),0)})};gp=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});_.z(c)})};
222
- jp=function(a){this.m=a;this.l=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.j=new _.si;this.f=new Set;this.a=new Set;this.h=null;this.g=new _.L("clpp.native.Metadata")};lp=function(a,b){a.j.on(b,_.Ac,function(c){c=c.track;c.kind===_.Me&&kp(a,c)})};
223
- kp=function(a,b){a.g.debug("onMetadataTrackAdded_()");b.mode=_.qe;var c=!b.cues||0===b.cues.length;if(a.m.isLive()||!c){var d=b.cues;c=mp(d);np(c);a.a=op(c,a.l);0<a.a.size&&(pp(a,a.a),a.m.trigger(new _.Q(_.ug)));a.j.on(b,_.Md,function(){for(var e=a.m.getPosition(),f=_.v(a.a),g=f.next();!g.done;g=f.next()){var h,l=a;g=g.value;if(Infinity===g.endTime){if(h=!l.f.has(g)){h=g.startTime;var m=h+.5;h=h<=e&&e<=m}h&&(l.f.add(g),l.m.trigger(new _.Q(_.sg,{detail:g})))}else h=g.startTime<=e&&e<=g.endTime,!h&&
224
- l.f.has(g)?(l.f["delete"](g),l.m.trigger(new _.Q(_.tg,{detail:g}))):h&&!l.f.has(g)&&(l.f.add(g),l.m.trigger(new _.Q(_.sg,{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),h=g.next();!h.done;h=g.next())h=h.value,h.endTime<e&&f.push(h);qp(a,b,f);0<f.length&&a.g.debug("Evicted "+f.length+" old cues.");g=_.v(a.a);for(h=g.next();!h.done;h=g.next())h=h.value,h.endTime<e&&a.a["delete"](h);e=0<f.length}else e=!1;rp(a,b);f=mp(d);
225
- var l=op(f,a.l);g=new Set;h=!1;l=_.v(l);for(var m=l.next();!m.done;m=l.next()){m=m.value;var n=sp(a,m);n?(m.customAttributes&&(n.customAttributes=_.M.ra(n.customAttributes||{},m.customAttributes)||void 0),h=!0):(a.a.add(m),g.add(m))}h=0<g.size||h;np(f);(e||h)&&a.m.trigger(new _.Q(_.ug));pp(a,g)},6E3))}};pp=function(a,b){for(var c=_.v(b),d=c.next();!d.done;d=c.next())a.m.trigger(new _.Q(_.rg,{detail:d.value}))};
226
- sp=function(a,b){return Array.from(a.a.values()).find(function(c){return b.startTime===c.startTime&&b.endTime===c.endTime})||null};rp=function(a,b){if(b.cues){var c=tp(b.cues).filter(function(l){return l.type===Dd}),d=c.filter(function(l){return l.Lg}),e=c.filter(function(l){return!l.Lg});c=[];e=_.v(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var g=_.v(d),h=g.next();!h.done;h=g.next())h=h.value,up(f,h)&&(c.push(f),h.Wh=f.startTime)}qp(a,b,c);0<c.length&&a.g.debug("Removed "+c.length+" duplicated cues.")}};
227
- qp=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)}}};up=function(a,b){var c=a.endTime-a.startTime,d=b.endTime-b.startTime,e=a.Wh||a.startTime,f=b.Wh||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
- xp=function(a){var b=[],c={};a=_.v(a);for(var d=a.next();!d.done;c={Hd:c.Hd},d=a.next())c.Hd=d.value,(d=b.find(function(e){return function(f){var g=e.Hd;return f.startTime===g.startTime&&f.endTime===g.endTime}}(c)))?vp(c.Hd,d):(d=wp(c.Hd),b.push(d));return b};wp=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:_.re,eventElement:null};vp(a,b);return b};
229
- vp=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=_.Gg,b.type=_.Vf};np=function(a){a.forEach(function(b){b.Lg=!0})};mp=function(a){return tp(a).filter(function(b){return b.type===Dd&&!b.Lg})};tp=function(a){var b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next())b.push(c.value);return b};
230
- op=function(a,b){var c=a.map(function(d){return{startTime:d.startTime,endTime:d.endTime,key:d.value.key,value:d.value.data,Gi:!1}});c=yp(c);b&&(c=zp(c));return new Set(xp(c))};yp=function(a){var b=new Set(a),c=new Set(a.filter(function(d){return"SCTE35-OUT"===d.key}).map(Ap));a.filter(function(d){return"SCTE35-IN"===d.key}).forEach(function(d){c.has(Ap(d))||(d.Gi=!0)});return Array.from(b.values())};zp=function(a){a.forEach(function(b){b.Gi&&(b.endTime=b.startTime,b.startTime=0)});return a};
231
- Ap=function(a){return a.startTime+"-"+a.endTime};_.Hp=function(a,b,c,d){d=void 0===d?_.Bp:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.Cp;this.writingMode=_.Dp;this.lineInterpretation=_.Ep;this.line=null;this.lineAlign=_.Fp;this.direction=Gp;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
232
- _.Kp=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.Ip;this.scroll=Jp;this.cssClassList=[];this.writingMode=this.displayAlign=null};Lp=function(a){this.m=a;this.l=a.getTextDisplayer();this.f=this.h=null;this.a=new _.si;this.j=!1;this.g=new _.L("clpp.native.CueHandler")};
233
- Mp=function(a,b){var c=b.track;c.kind!==_.Me&&(c.mode===_.Yf&&(c.mode=_.qe),a.a.on(c,_.Md,function(d){d=d.target||d.srcElement;d.mode=_.qe;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.l.append(d,[]))}))};_.Op=function(a,b){for(var c=Np[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===_.Fn?"":null};
234
- _.Qp=function(a,b,c){return a.map(function(d){d=_.Dn(d)||"";return(d=_.Pp[b][d])?d:b===_.Fn?c&&"vtt"!==c?_.Ic:_.og:null}).filter(Boolean)[0]||null};_.Rp=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 _.N(_.O,4,4023,"Required attribute missing: "+b);return a?a.value:c||null};_.Sp=function(a,b){return _.T(a,b,void 0,{required:!0})};
235
- _.Tp=function(a,b){this.name=a;this.value=b};
236
- _.Up=function(a,b,c,d,e,f,g,h,l,m,n,p,q,t,u,y,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;y=void 0===y?function(){return""}:y;this.position=a;this.startTime=b;this.endTime=c;this.Ga=g;this.La=d;this.la=e;this.ga=f;this.keyInfo=(void 0===h?null:h)||null;this.ae=_.M.P(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.le=
237
- y?y:function(){return""};this.Qa=B};_.Vp=function(a,b,c,d,e,f,g,h,l,m,n,p,q,t,u){t=void 0===t?[]:t;_.Up.call(this,a,b,c,d,e,f,g,void 0===h?null:h,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.sa=0};_.Wp=function(a){if(typeof a!==_.hg)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:{oe:a,Le:b,Oo:a*b}};Xp=function(){this.a=this.f=null;this.g=new _.L("clpp.drm.csl")};
238
- Yp=function(a,b){3===b.type&&(a.f&&(a.g.debug("Attaching tracking token"),b.headers[ch]=a.f),a.a&&(b.headers[dh]=a.a))};Zp=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[ch];a.a=b.headers[dh];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.ea(_.Nm(c))),{delay:c.renewalPeriod,pp:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};
239
- _.aq=function(a){a=$p[a];if(!a)return null;var b=_.Kj();return b.os===Bj&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.bq=function(a){this.J=a;this.f={}};
240
- _.Zn=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[_.Gd];g&&(c[_.Gd]={licenseUrl:g.licenseUrl,videoRobustness:wn(d,g.videoRobustness),audioRobustness:wn(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:vn(b?b.widevineDistinctiveIdentifierRequired:void 0,g.distinctiveIdentifierRequired,!1),persistentStateRequired:vn(b?b.widevinePersistentStateRequired:void 0,g.persistentStateRequired,!1),
241
- serverCertificate:_.cq(f,g.serverCertificate)});(g=a.f[_.Cd])&&(c[_.Cd]={licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.f[_.Ed])&&(c[_.Ed]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});return c};
242
- _.cq=function(a,b){return void 0===a?b:null===a?null:typeof a===_.hg?_.aq(a):a};_.dq=function(a,b){b=void 0===b?!1:b;this.f=_.M.ya(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.h=b;this.buffer=this.f.buffer};_.fq=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.Ni(a.f.buffer);b=_.Ni(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.eq()}};_.W=function(a,b){try{a.f.setUint32(a.a,b,a.h),a.a+=4}catch(c){_.eq()}};_.eq=function(){throw new _.N(_.O,3,3E3);};
243
- _.gq=function(a,b){this.f=a;this.h=void 0===b?!0:b;this.a=0};_.hq=function(a){return a.a<a.f.byteLength};_.jq=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.iq()}};_.kq=function(a){try{var b=a.f.getUint16(a.a,a.h);a.a+=2;return b}catch(c){_.iq()}};_.lq=function(a){try{var b=a.f.getUint32(a.a,a.h);a.a+=4;return b}catch(c){_.iq()}};_.mq=function(a){try{var b=a.f.getInt32(a.a,a.h);a.a+=4;return b}catch(c){_.iq()}};
244
- _.nq=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){_.iq()}if(2097151<c)throw new _.N(_.O,3,3001);a.a+=8;return c*Math.pow(2,32)+b};oq=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.jq(a);return c};_.pq=function(a,b){a.a+b>a.f.byteLength&&_.iq();var c=a.a+a.f.byteOffset;c=a.f.buffer.slice(c,c+b);a.a+=b;return _.Ni(c)};
245
- _.iq=function(){throw new _.N(_.O,3,3E3,"Buffer read out of bounds.");};_.qq=function(){this.h=[];this.f=[];this.a=!1;this.g=new _.L("clpp.mp4")};_.rq=function(a){for(;_.hq(a.reader)&&!a.parser.a;)a.parser.Hf(a.start+a.headerSize,a.reader,a.partialOkay)};_.sq=function(a){for(var b=_.lq(a.reader);0<b&&!a.parser.a;--b)a.parser.Hf(a.start+a.headerSize,a.reader,a.partialOkay)};_.tq=function(a){return function(b){var c=b.reader.Va()-b.reader.getPosition();a(_.pq(b.reader,c))}};
246
- uq=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.vq=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};_.wq=function(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)};xq=function(){};yq=function(a){var b="";try{b=_.R.fe(a)}catch(c){}return b};_.zq=function(a){a=yq(a);var b="";a.length&&(b=(new _.xn(a)).a);return b};
247
- Aq=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.R.ea(a)),d=_.Nm(c.sinf[0]);(new _.qq).M(_.ag,_.rq).M("schi",_.rq).M("tenc",function(e){e.reader.skip(6);_.jq(e.reader)&&(e.reader.skip(1),b=_.Pm(_.pq(e.reader,16)));e.parser.stop()}).parse(d)}catch(e){}return b};
248
- Bq=function(a,b,c){if(!c||!c.byteLength)throw new _.N(_.O,6,6102);var d;typeof b===_.hg?d=_.R.Qf(b,!0):d=b;a=_.R.Qf(yq(a),!0);b=new _.dq(12+a.byteLength+d.byteLength+c.byteLength,!0);_.W(b,a.byteLength);_.fq(b,_.Ni(a));_.W(b,d.byteLength);_.fq(b,_.Ni(d));_.W(b,c.byteLength);_.fq(b,_.Ni(c));return _.Ni(b.buffer)};_.Cq=function(a){var b=_.Ni(a.body);b=_.Mm(b);a.headers[za]=Nc;a.body=_.R.eb("spc\x3d"+b).buffer};
249
- _.Dq=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=Vi(_.Nm(b))};Eq=function(){};
250
- Kq=function(){var a=Fq;if(a===Gq)return"https://lic.drmtoday.com";if(a===Hq)return"https://lic.staging.drmtoday.com";if(a===Iq)return"https://lic-demo.staging.drmtoday.com";if(a===Jq)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};Oq=function(a){var b=Kq();if(a===_.Gd)return b+Lq;if(a===_.Ed)return b+Mq;if(a===_.Cd)return b+Nq;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
251
- Pq=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
252
- _.Rq=function(a,b,c){b=yq(b);c=c&&c.customData?c.customData:{};b=new _.xn(Pq(b));var d=Bn(b.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.R.zf(""+a)&&(d.assetId=a,Qq.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.R.zf(""+e)&&(d.variantId=e,Qq.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],Qq.debug("KeyId found in FPS SKD. Removing other parameters")):
253
- a=["assetId","variantId"];b.f=_.zn(d,!1,a);"/"!==b.path||b.j.includes(b.a+"/")||(b.path="");b=_.yn(b);return c.fpsContentId=b};_.Tq=function(a,b,c,d){d=void 0===d?!0:d;c=a.drm;c&&c.env.startsWith(Fa)?c.customData&&(_.Sq(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)):Qq.warn(gb)};
254
- Uq=function(a,b,c){_.Tq(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.nm(b.uris[0]);c.a.searchParams.set(_.ef,a.toString());b.uris[0]=c.toString()};
255
- _.Vq=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.Tq(a,b,c,!1);b.headers[za]=Nc;c={spc:_.Lm(b.body)};if((a=a.drm)&&a.env.startsWith(Ga)&&d){a={};var e=Bn((new _.xn(Pq(d))).f);d=e.keyId;if(e=e.assetId)Qq.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(Qq.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(Qq.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(Qq.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
256
- _.R.Fd(_.zn(c,!0))};_.Wq=function(a,b){Qq.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=_.Nm(c).buffer}};_.Xq=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(Fa))Qq.warn(gb);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(Ga)){var d=new _.nm(b.uris[0]),e=d.a.pathname;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.a.pathname=e;b.uris[0]=d.toString()}};
257
- _.Yq=function(a,b){try{var c=_.Ni(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));Qq.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){Qq.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};
258
- _.Sq=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};_.M.Pb(d)&&(a.headers["dt-custom-data"]=btoa(JSON.stringify(d)));(c=c.customData.authToken)&&(a.headers["x-dt-auth-token"]=c)}};$q=function(a){var b={},c=a?a[eh]:void 0;a=Zq[a?a[eh]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};
259
- ar=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 Qq.warn("Unable to parse DRMtoday License Info header (x-dt-li)",c),null}};_.br=function(a){this.f=a;this.a=void 0};cr=function(){this.size=0;this.a=void 0;this.g=new _.L("clpp.drm.eme.MediaKeyStatusMap")};dr=function(a,b){a.size=void 0===b?0:1;a.g.debug("Setting key status to",b);a.a=b};
260
- fr=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=er.value().get(b),c.one(a,b,d))};gr=function(){this.a=this.f=null};
261
- hr=function(a,b){this.keySystem=a;if(a.startsWith(_.Cd))for(var c=_.v(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.Of)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.af,distinctiveIdentifier:_.af,initDataTypes:e.initDataTypes,sessionTypes:[mg],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=_.v(e.audioCapabilities),l=h.next();!l.done;l=h.next())l=l.value,l.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&
262
- (d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.v(e.videoCapabilities),l=e.next();!l.done;l=e.next())h=l.value,h.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,h.contentType.split(";")[0])&&(d.videoCapabilities.push(h),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,_.Pg));d=g?d:null}if(d){this.a=d;return}}c=Error(Qb);c.name=ob;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
263
- ir=function(a){this.f=null;this.h=new WebKitMediaKeys(a);this.a=new _.si;this.j=0;this.g=new _.L(ud);this.g.info("Created Media Keys for "+a)};
264
- jr=function(a,b){a.f=b;_.vi(a.a);if(!b)return Promise.resolve();a.a.on(b,he,function(c){_.Rh("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,ah,function(c){a.g.debug("Handle webkitNeedKey event");c=_.Ni(c.initData);if(_.Ui(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
265
- c=_.R.Jc(c.subarray(4),!0);c=_.R.eb(c);var d=new Event(he);d.initDataType="skd";d.initData=Vi(c);a.f.dispatchEvent(d)});fr(b,HTMLMediaElement.HAVE_METADATA,a.a,function(){return b.webkitSetMediaKeys(a.h)});return Promise.resolve()};kr=function(a,b){_.zi.call(this);this.a=null;this.o=a;this.f=this.h=null;this.j=new _.si;this.sessionId=b;this.expiration=NaN;this.closed=new _.lm;this.l=!1;this.keyStatuses=new cr;this.g=new _.L(ud)};lr=function(a,b){dr(a.keyStatuses,b);a.dispatchEvent(new _.Q(we))};
266
- mr=function(){};nr=function(){this.a=null;this.g=new _.L("clpp.drm.eme.StandardEmeManager")};or=function(){};pr=function(){this.f=this.a=null;this.h="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.h="webkit")};
267
- qr=function(a,b,c,d){this.h=a;this.a=this.keySystem=c;a=!1;c===_.bf&&(this.a=Xg,a=!1);var e=!1;d=_.v(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=[],h=[],l=!1;if(f.audioCapabilities)for(var m=_.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)&&(h.push(m),e=!0));l||(e=b.canPlayType(_.Pg,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.Of||a||(e=!1);if(e){this.f=f;return}}b=Qb;if(c===_.bf||c===_.Gd)b="None of the requested configurations were supported.";c=Error(b);c.name=ob;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};rr=function(a,b){this.h=a;this.o=b;this.a=null;this.f=new _.si;this.j=[];this.l=new Map};
269
- ur=function(a,b){a.a=b;_.vi(a.f);b&&(a.f.on(b,a.h+"needkey",function(c){var d=new Event(he);d.initDataType=_.gd;d.initData=Vi(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.h+"keymessage",function(c){var d=sr(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.Q(_.Le,{messageType:e?ze:ye,message:c.message});_.Rh("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.Sh("Session not found",c.sessionId)}),a.f.on(b,a.h+"keyadded",function(c){(c=
270
- sr(a,c.sessionId))&&c.ready()}),a.f.on(b,a.h+"keyerror",function(c){var d=sr(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?tr(d,_.cf):1===e?tr(d,"expired"):tr(d,_.ve))}}))};
271
- sr=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};vr=function(a,b,c,d){_.zi.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 _.lm;this.keyStatuses=new cr};
272
- xr=function(a,b,c){if(a.o)return Promise.reject(Error("The session is already initialized."));a.o=!0;try{if(a.l===_.ff)if(c)var d=_.Ni(_.R.eb("LOAD_SESSION|"+c));else{var e=_.R.eb("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.Ni(b),e.byteLength);d=f}else d=_.Ni(b)}catch(h){return Promise.reject(h)}a.f=new _.lm;var g=wr(a,"generateKeyRequest");try{a.j[g](a.h,d)}catch(h){if(h.name!==Xa)return a.f=null,Promise.reject(h);(new _.ej(function(){try{a.j[g](a.h,d)}catch(l){a.f.reject(l),
273
- a.f=null}})).ha(.01)}return a.f};yr=function(a,b,c){if(a.a)a.a.then(function(){return yr(a,b,c)})["catch"](function(){return yr(a,b,c)});else{a.a=b;if(a.h===Xg){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=_.Nm(e.keys[0].k);e=_.Nm(e.keys[0].kid)}else d=_.Ni(c),e=null;var f=wr(a,"addKey");try{a.j[f](a.h,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};tr=function(a,b){dr(a.keyStatuses,b);a.dispatchEvent(new _.Q(we))};
274
- wr=function(a,b){return a.w?a.w+b.charAt(0).toUpperCase()+b.slice(1):b};zr=function(){};Ar=function(){};Br=function(){};Cr=function(){};Fr=function(a,b){var c=Dr;if(a){var d=c.find(function(e){return e.a()===a});if(d)return Er.info(Yb+d.a()),d.create();Er.info("Cannot create selected EME manager, falling back to the default.")}if(b&&(d=c.find(function(e){return e.a()===b})))return Er.info(Yb+d.a()),d.create();c=c[0];if(!c)throw Error("Missing EME managers.");Er.info(Yb+c.a());return c.create()};
275
- _.Gr=function(){};Hr=function(a,b,c){this.j=new Uint8Array(a);this.a=b;this.f=c};Ir=function(){Hr.apply(this,arguments)};_.Kr=function(a){var b=_.Om(a);b=parseInt(b.byteLength,10).toString(16);b=_.Om("12"+b+a);return new Ir(Jr,a,b)};
276
- _.Lr=function(a){function b(t){switch(t){case 0:do if(!_.hq(d))throw Error("not enough data to skip!");while(_.jq(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=_.jq(d),u=(t&127)>>>0,y=7;128<=t&&28>=y;)t=_.jq(d),u=(u|(t&(28>y?127:15))<<y)>>>0,y+=7;return 28<y?-1:u}var d=new _.gq(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.lq(d);var e=_.lq(d);
277
- e=_.vq(e);var f=_.lq(d),g=f>>>24;f&=16777215;var h=_.pq(d,16);h=_.Pm(h);if(0<g){var l=_.lq(d);d.skip(16*l)}l=_.lq(d);for(var m=[],n=null;_.hq(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=oq(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.Rh("Parsed WV PSSH Box","size",a,"name",e,Kg,g,"flags",f,"size",l,"systemId",h,"contentId (base64)",n?_.Lm(n):"","keyIds",m.map(function(t){return _.Pm(t)}));return 0<m.length?_.Kr(_.Pm(m[0])):null};
278
- _.Mr=function(a,b,c,d,e,f){f=void 0===f?null:f;Hr.call(this,a,b,d);this.version=e;this.h=c;this.l=f};
279
- _.Sr=function(a){var b=_.Nr;a:{var c=new _.gq(new DataView(a.buffer),!0);_.lq(c);for(_.kq(c);_.hq(c);)if(1===_.kq(c)){var d=_.kq(c);c=_.pq(c,d);break a}c=null}c||(c=a);a=_.R.Jc(c,!0);d=b.De(a,"WRMHEADER");a=d.getAttribute(Kg)||"";d=b.Ka(d,"DATA");var e=b.Ka(d,"LA_URL");b=e?b.ua(e):"";e=_.Nr;var f=e.Ka(d,"KID");if(f)if(f=e.ua(f)){var g=e.Ka(d,qa);e=g?e.ua(g):null;e={value:f,hg:e}}else e=null;else e=null;d=e?[e]:(e=Or(d))?[e]:(d=Pr(d))?d:null;e=d&&d[0]||{};d=e.hg;e=_.Nm(void 0===e.value?"":e.value);
280
- e=_.Qr(e);e=_.Pm(e);return new _.Mr(_.Rr,e,b,c,a,d)};_.Qr=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=_.Ni(a);a.set(b,0);return a};Or=function(a){var b=_.Nr;a=b.Ka(a,"PROTECTINFO");if(!a)return null;var c=b.Ka(a,"KID");if(!c)return null;b=c.getAttribute("VALUE");if(!b)return null;a=c.getAttribute(qa);c=c.getAttribute("ALGID");return{value:b,hg:a,ck:c}};
281
- Pr=function(a){var b=_.Nr;a=b.Ka(a,"PROTECTINFO");if(!a)return null;a=b.Ka(a,"KIDS");if(!a)return null;a=b.$(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(qa);d=d.getAttribute("ALGID");b.push({value:c,hg:e,ck:d})}}return b.length?b:null};Tr=function(a){this.f=[];this.h=[];this.a=[];8<=a.byteLength&&(new _.qq).ba("pssh",this.j.bind(this)).parse(a.buffer);0===this.a.length&&_.Mh("No pssh box found!")};
282
- _.Xr=function(a,b){var c=this;this.F=a;this.oc=b;this.K=new Set;this.D=this.J=this.l=null;this.da=!1;this.a=null;this.L=Ur;this.B=new _.si;this.R=new Xp;this.h=new Map;this.O=[];this.I=new _.lm;this.Jb=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.ka=new Map;this.fa=new _.ej(function(){return Vr(c)});this.j=!1;this.Ja=new _.lm;this.H=!1;this.ja=[];this.gb=!1;this.Z=0;this.g=new _.L("clpp.drm.DrmEngine");this.za=(new _.ej(function(){Wr(c)})).Hb(1);this.I["catch"](function(){});
283
- this.A=this.G=!1;this.U=null};
284
- Zr=function(a){var b,c,d,e,f;return _.I(function(g){switch(g.a){case 1:a.B.release();a.B=null;a.R.release();a.R=null;a.A=!1;a.G=!1;a.I.reject();a.za.stop();a.za=null;a.fa.stop();a.fa=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.pd&&e.pd.stop();a.h.clear();return _.x(g,Promise.all(b.map(function(h){return Promise.resolve().then(function(){var l;return _.I(function(m){if(1==m.a)return a.g.debug("Closing session",h.sessionId),_.F(m,2),_.x(m,Yr(h),4);
285
- if(2!=m.a)return _.G(m,0);l=_.H(m);a.g.warn("Error while closing session",l);_.z(m)})})})),2);case 2:if(!a.D){g.C(3);break}_.F(g,4);return _.x(g,a.l.Vd(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.O=[],a.f=null,a.w=null,a.F=null,a.Z=0,a.U=null,_.z(g)}})};
286
- _.bs=function(a,b,c){c=void 0===c?[]:c;a.L=$r;a.O=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 _.as(a,b)};
287
- hs=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.M.oh(a.f.Pa);cs(b,d)}var e=a.f.Pa[_.Cd];d=b.some(function(g){return g.drmInfos.some(function(h){return h.keySystem===_.Cd})});if(!1!==a.f.sp&&_.oj()&&!d&&e){var f=_.v(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos.push({keySystem:_.Cd,licenseServerUri:e.licenseUrl,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[],
288
- periodId:null})}if(e=ds(a))for(f=_.v(b),d=f.next();!d.done;d=f.next())d.value.drmInfos=[e];d=es(b);fs(a,d);d=_.v(d);for(e=d.next();!e.done;e=d.next())gs(e.value,a.f.Pa);return c};_.as=function(a,b){var c=hs(a,b),d=es(b);d=_.v(d);for(var e=d.next();!e.done;e=d.next())is(a,e.value,a.f.Pa);d=js(a,b);if(!d.size)return a.da=!0,Promise.resolve();_.jn(Td);d=_.ks(a,d);return(c?d:d["catch"](function(){})).then(function(){_.jn(Sd);_.ln("DRM queryMediaKeys_()",Td,Sd)})};
289
- es=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};fs=function(a,b){for(var c=_.v(b),d=c.next();!d.done;d=c.next())d=d.value,""===d.licenseServerUri||a.f.Pa[d.keySystem]||(a.f.Pa[d.keySystem]={licenseUrl:""})};
290
- ls=function(a){var b;return _.I(function(c){switch(c.a){case 1:if(a.l.qf())return c["return"]();if(!a.U){c.C(2);break}return _.x(c,a.U,3);case 3:return c["return"]();case 2:return _.F(c,4),a.U=a.l.Vd(a.J),_.x(c,a.U,6);case 6:_.G(c,0);break;case 4:b=_.H(c);if(a.j)return c["return"]();a.w(new _.N(_.O,6,6003,b.message,b));_.z(c)}})};
291
- ns=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Handle encrypted event for type "+b.initDataType),_.x(c,ls(a),2);if(!b.initData)return c["return"]();_.ms(a,b.initDataType,_.Ni(b.initData));_.z(c)})};
292
- _.ts=function(a,b){if(!a.J)return ti(a.B,b,function(){a.w(new _.N(_.O,6,6010))}),Promise.resolve();a.D=b;a.l.ff(b);a.B.one(a.D,_.hf,function(){return os(a)});a.B.on(a.D,_.Wg,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.Ud()!==ps||a.O.length)d=ls(a);c=Promise.resolve();_.kj()&&38===_.lj().major||(a.a&&a.a.keySystem!==_.bf&&!a.a.serverCertificate&&
293
- (c=qs(a)),c=c.then(function(){return _.rs(a)}));return Promise.all([d,c]).then(function(){a.j||(_.ss(a),a.B.on(a.D,he,function(e){return ns(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.a&&a.a.keySystem===_.Gd&&1>a.Z&&a.a.serverCertificate&&a.a.serverCertificate.length)return a.g.warn("Detected invalid widevine server certificate!. Retrying"),a.w(new _.N(1,6,6004)),a.a.serverCertificate=null,a.Z++,_.ts(a,b);1<=a.Z&&a.g.info("Could not get valid widevine server certificate. Giving up");
294
- throw e;}})};_.rs=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 _.N(_.O,6,6004,{browserError:c.message});})};
295
- qs=function(a){var b=a.keySystem(),c=a.f.Pa[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.F.getConfiguration();return us(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.Xk([d],a.f.attemptParameters);f.type=3;f.licenseRequestType=jd;g&&f.requestModifiers.push(function(l){return g(e,l)});h&&f.responseModifiers.push(function(l){return h(e,l)});a.g.debug("Fetching certificate");return a.F.Cb.fetch(f).T}).then(function(f){a.a.serverCertificate=
296
- _.Ni(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}:{},$q(g));throw new _.N(_.O,6,6100,g,f);})};us=function(a,b){var c,d;return _.I(function(e){c=a.F.td();return c?(d=b&&b.drm&&b.drm.customData)?_.x(e,c(d),0):e["return"]():e["return"]()})};vs=function(a,b){if(!a)return!1;for(var c=0;c<b.kf.length;c++)if(_.Qm(a,b.kf[c]))return!0;return!1};
297
- _.ss=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=!_.jj(2);if(a.f.enforceSingleSession&&!a.keySystem().startsWith(_.Cd)){var f=a.h.values();f=_.v(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.Qm(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
- ".")),vs(d.initData,g)||(g.kf.push(d.initData),d.keyId&&!g.sb.includes(d.keyId)&&g.sb.push(d.keyId),a.o.get(d.keyId)||a.o.set(d.keyId,fg)),e=!1)}!e||a.H&&a.L===$r||(_.ws(a,d.keyId,d.initData)&&(e=!1),e&&(a.g.info("Request new media key session on create"),xs(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.v(a.O);for(d=c.next();!d.done;d=c.next())_.ys(a,d.value);b.length||a.O.length||(a.A||a.g.info(Ca),a.A=!0,a.G=!1,a.I.resolve());return a.I};
299
- _.ms=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.H||a.L!==$r)){var e=a.keySystem();if(!e.startsWith(_.Cd)&&b===_.gd){var f=new Tr(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
- _.jj(2)||a.keySystem().startsWith(_.Cd)||!_.ws(a,d,c,!0))&&xs(a,d,null,b,c)}};
301
- _.ws=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(_.Qm(c,g.initData))return b?g.sb.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.sb.push(b),a.o.get(b)||a.o.set(b,fg),d&&a.g.info(Ib+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.g.info(Ib+(f.sessionId+"'")),!0;if(vs(c,g))return d&&a.g.info("Skipping Session creation. License for init data was already requested [extra]"),
302
- !0}return!1};zs=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
- js=function(a,b){var c=new Set(es(b)),d=a.H?_.Of:_.af,e=a.H?[_.ff]:[mg],f=new Map,g=_.v(c);for(c=g.next();!c.done;c=g.next())c=c.value,f.set(c.keySystem,{initDataTypes:[_.gd],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.af,persistentState:d,sessionTypes:e,label:c.keySystem,drmInfos:[]});d={};e=_.v(b);for(c=e.next();!c.done;d={Uf:d.Uf,Jd:d.Jd,$f:d.$f,Kd:d.Kd},c=e.next()){c=c.value;g=c.audio;var h=c.video;d.Uf=g?_.As(g):"";d.Jd=null;g&&"ac-3"===g.codecs.toLowerCase()&&_.jj()&&(d.Jd=
304
- _.As(g,_.ee));d.$f=h?_.As(h):"";d.Kd=null;h&&"ac-3"===h.codecs.toLowerCase()&&_.jj()&&(d.Kd=_.As(h,_.ee));var l={},m=_.v(c.drmInfos);for(c=m.next();!c.done;l={fb:l.fb},c=m.next())c=c.value,l.fb=f.get(c.keySystem),l.fb.drmInfos.push(c),c.initData&&c.initData.length&&(l.fb.initDataTypes=_.kh(new Set(c.initData.map(function(n){return n.initDataType}))).concat()),c.distinctiveIdentifierRequired&&(l.fb.distinctiveIdentifier=_.Of),c.persistentStateRequired&&(l.fb.persistentState=_.Of),g&&_.Ei(c.audioRobustness).forEach(function(n,
305
- p){return function(q){var t={robustness:q||"",contentType:n.Uf};p.fb.audioCapabilities.find(function(u){return u.robustness===t.robustness&&u.contentType===t.contentType})||p.fb.audioCapabilities.push(t);n.Jd&&p.fb.audioCapabilities.push({robustness:q||"",contentType:n.Jd})}}(d,l)),h&&_.Ei(c.videoRobustness).forEach(function(n,p){return function(q){var t={robustness:q||"",contentType:n.$f};p.fb.videoCapabilities.find(function(u){return u.robustness===t.robustness&&u.contentType===t.contentType})||
306
- p.fb.videoCapabilities.push(t);n.Kd&&p.fb.videoCapabilities.push({robustness:q||"",contentType:n.Kd})}}(d,l))}return f};_.As=function(a,b){var c=_.Hn(a.mimeType,b||a.codecs);if(_.sn(c,a.type)){var d=a.type,e=_.sn(c,d);e&&(e=e(),c=e.convertCodecs(d,c),e.destroy())}return c};
307
- _.ks=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===_.Ed){if((_.hj()||g.os===Dj&&_.ij("Chrome")&&!_.hj())&&!a.f.Pa[q].useLegacySystem)return p.label=Fd,a.l.Yb(Fd,[p])["catch"](function(){a.g.warn("Unable to create com.microsoft.playready.recommendation. Falling back to com.microsoft.playready.");p.label=_.Ed;Bs(p);return a.l.Yb(q,[p])});Bs(p)}if(q===_.Gd&&a.f.widevineVersion!==_.Gd){var t=a.f.widevineVersion;
308
- if(!t.startsWith(_.Gd))return a.g.error('Invalid "widevineVersion" value "'+t+'".'),Promise.reject();var u=Object.assign({},p,{label:t,distinctiveIdentifier:_.af,persistentState:_.af});return a.l.Yb(t,[u])["catch"](function(){return a.l.Yb(q,[p])})}return a.l.Yb(q,[p])["catch"](function(y){a:{if(q===_.Gd&&Cs(p)){var B=_.Kj();if(Cs(p)&&B.os===Bj&&B.browser===ld){a.g.warn("requestMediaKeySystemAccess() failed",y);a.g.warn("Will try to recover by removing the robustness attribute of videoCapabilities and audioCapabilities.");
309
- Bs(p);y=a.l.Yb(q,[p]);break a}}throw y;}return y})}))}if(1===b.size&&b.has(""))return Promise.reject(new _.N(_.O,6,6E3));null===a.l&&(a.l=Fr(a.f.emeApi,a.oc));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 _.lm,g=_.Kj(),h=a.f.preferredDrmSystem;if(!h)if(e=_.Kj(),e.os===Dj&&10<=e.osVersion.major&&"edge"===e.browser)h=_.Ed;else if("safari"===e.browser)h=
310
- _.Cd;else if(e.browser===ld||"firefox"===e.browser)h=_.Gd;h&&(e=b.get(h))&&(c(!0,e,h),c(!1,e,h));e={};for(var l=_.v([!0,!1]),m=l.next();!m.done;e={Yf:e.Yf},m=l.next())e.Yf=m.value,b.forEach(function(n){return function(p,q){q!==h&&c(n.Yf,p,q)}}(e));f=f["catch"](function(){throw new _.N(_.O,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(_.Ds(n.keySystem));t=[];var u=[],y=[],B=[];Es(p.drmInfos,t,u,y,B);1<u.length&&_.Mh("Multiple unique server certificates found! Only the first will be used.");1<t.length&&_.Mh("Multiple unique license server URIs found! Only the first will be used.");a.a={keySystem:q,licenseServerUri:t[0],
312
- distinctiveIdentifierRequired:p.distinctiveIdentifier===_.Of,persistentStateRequired:p.persistentState===_.Of,audioRobustness:p.audioCapabilities?p.audioCapabilities[0].robustness:"",videoRobustness:p.videoCapabilities?p.videoCapabilities[0].robustness:"",serverCertificate:u[0],initData:y,keyIds:B,periodId:null};if(!a.a.licenseServerUri)throw new _.N(_.O,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.da=
313
- !0)})["catch"](function(n){if(!a.j){a.a=null;a.K.clear();if(n instanceof _.N)throw n;throw new _.N(_.O,6,6002,{browserError:n.message});}});d.reject();return f};
314
- ds=function(a){a=_.M.oh(a.f.Pa[_.bf]||{});if(0===a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.Om(f),h=_.Om(e);g={kty:"oct",kid:_.Mm(g,!1),k:_.Mm(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.R.eb(d),initDataType:"keyids"}];return{keySystem:_.bf,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
2
+ (function(window){var ba,ca,ea,fa,ha,sa,va,za,Aa,Ea,Fa,Ga,Ka,Na,Oa,Sa,Ta,Ua,Va,Wa,Xa,Ya,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,Xb,Zb,$b,ac,bc,cc,fc,gc,hc,ic,pc,rc,tc,Rc,Xc,ed,fd,pd,qd,rd,td,ud,vd,wd,yd,zd,Ad,Bd,Cd,Dd,Ed,Jd,Ld,Sd,Yd,Zd,$d,ae,be,ce,ee,fe,ge,je,le,ne,te,Ce,Ee,Fe,Oe,gf,of,qf,rf,sf,tf,uf,vf,wf,xf,yf,zf,Ef,Ff,Gf,Hf,If,Jf,Lf,Pf,Rf,gg,jg,qg,Gg,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,bi,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,vj,xj,yj,zj,Jj,Aj,Qj,Pj,Vj,Zj,bk,ck,fk,ek,ik,jk,hk,Xj,zk,Wj,lk,Yj,Ak,kk,Tj,xk,Rj,gk,Ck,wk,rk,uk,qk,vk,pk,Bk,Ek,yk,Hk,Uj,Sj,mk,Ik,Jk,Gk,ak,Kk,Lk,Mk,Pk,Qk,Rk,Sk,Uk,Tk,Xk,Yk,al,bl,dl,fl,gl,hl,il,jl,tl,ul,wl,ll,ml,kl,rl,pl,ql,vl,Gl,Bl,Al,zl,Hl,Fl,El,Ll,sl,Nl,Dl,Cl,Ml,nl,ol,Il,Ql,Ul,Wl,Xl,Jl,Kl,Pl,Ol,Zl,Rl,Vl,bm,cm,em,dm,gm,hm,im,jm,fm,pm,sm,tm,um,rm,vm,xm,wm,ym,zm,Am,Dm,Cm,Em,Fm,Bm,Hm,Gm,Im,Jm,Sm,mm,Vm,Wm,Um,Xm,Zm,$m,am,km,an,bn,en,
4
+ nn,sn,un,vn,zn,En,In,Kn,Nn,Pn,Qn,Rn,Un,Zn,ao,bo,co,eo,fo,go,ho,io,ko,lo,mo,no,jo,ro,wo,vo,xo,yo,S,Ko,Oo,Mo,Po,Ro,Qo,To,Uo,Zo,ap,$o,Do,Vo,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,ft,gt,it,lt,nt,mt,kt,ot,jt,
5
+ rt,pt,qt,st,tt,yt,At,Ct,Dt,Bt,Et,Ft,zt,Gt,Ht,It,Jt,Kt,Mt,Nt,Ot,Pt,Lt,Rt,Xt,Zt,$t,au,bu,gu,hu,iu,mu,ku,nu,fu,ou,qu,ru,tu,uu,pu,vu,wu,xu,yu,zu,Au,Bu,Eu,Fu,Du,Cu,Iu,Ku,Ju,Nu,Lu,Qu,Ru,Pu,Tu,Uu,Vu,Su,Hu,Wu,Gu,Zu,$u,av,cv,dv,ev,fv,gv,hv,iv,jv,kv,mv,Qv,Rv,Uv,Yv,qh,$v;_.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.30.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.";_.pa="BANDWIDTH";_.ra="BASIC";sa="CHECKSUM";_.ta="CLOSED-CAPTIONS";_.ua="CODECS";va="Can not set volume to ";_.xa="Cannot retrieve buffer information due to platform limitations";_.ya="CastlabsPlayer";za="Content-Length";Aa="Content-Type";_.Ba="Could not find configured DRM environment.";_.Da="DRM environment '";Ea="DRM licenses loaded";Fa="DRMtoday";Ga="DRMtodayOnboard";_.Ha="DURATION";Ka="Destroying player";
7
+ _.La="EXT-X-MEDIA";_.Ma="EXT-X-STREAM-INF";Na="Error while decoding string!";Oa="Error while fetching certificate!";_.Pa="FairPlay Certificate URL is not defined";_.Qa="FairPlay License URL is not defined";_.Ra="GROUP-ID";Sa="HW_SECURE_ALL";Ta="HW_SECURE_CRYPTO";Ua="HW_SECURE_DECODE";Va="HeaderDrm";Wa="Hide video element .";Xa="Invalid track type: ";Ya="InvalidStateError";Za="Key status for Key ID '";_.$a="LANGUAGE";ab="License verification failed: ";bb="Load interrupted while a player release is pending";
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
+ 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";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";fc="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";rc="ad-hls-asset-list-response";tc="ad-hls-resoled";_.uc="ad-impression";_.vc="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";_.od="center";pd="certificate-request";qd="change";rd="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";_.Pd="config.drm.customData is not defined";_.Qd="content-steering-change";_.Rd="content-steering-location-ban-update";
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";le="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";_.Le="loadeddata";_.Me="loadedmetadata";Oe="loadstart";_.Pe="main";_.Qe="mdat";_.Re="mdia";_.Se="message";_.Te="metadata";_.Ue="mimeType";_.Ve="minf";_.We="moov";_.Xe="mpd-type-changed";
17
+ _.Ye="mpeg-dash-callback-event";_.Ze="none";_.k="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";_.Cf="playlist-item-changed";_.Df="playlist-modified";Ef="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";_.Eg="ttml-xml";Gg="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={hi:b,Ni:!0};a.a=a.o||a.j};_.x=function(a,b,c){a.a=c;return{value:b}};_.z=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.hi;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.Ni?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.Ni)throw b.hi;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
+ _.L=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.kb=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
+ bi=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||_.M.ia(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(_.M.ia(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(h){for(var l=_.v(e),m=l.next();!m.done;m=l.next())a.off(b,m.value,d);c(h)}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.ee=new Ci(this);this.ae=[]};Ei=function(){};Fi=function(){};Gi=function(a,b,c,d,e,f,g){this.w=this.o=this.l=!1;this.G=a;this.f=b;this.a=c;this.h=d;this.j=0;this.B=e+":"+b;this.H=e;this.videoEl=null;this.A=f;this.F=g||null};Hi=function(a){this.a=a.map(function(b){return{lc:b.getSurface().getMedia().id,player:b,ff:!0,ready:Promise.resolve()}});this.g=new _.L("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.Zh){for(var c=[],d={},e=_.v(a),f=e.next();!f.done;d={Te:d.Te},f=e.next())d.Te=f.value,c.some(function(g){return function(h){return b.Zh(g.Te,h)}}(d))||c.push(d.Te);return c}return Array.from((new Set(a)).values())};Ni=function(a,b){var c=new Set(a),d=new Set(b);return{Ao:a.filter(function(e){return!d.has(e)}),Wp:a.filter(function(e){return d.has(e)}),ik: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")};_.oj=function(){return _.mj()&&79===_.nj().major};_.pj=function(){return _.kj("CrKey")};_.qj=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.lj()};_.rj=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.qj()&&1<navigator.maxTouchPoints};_.sj=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};_.kj=function(a){return(navigator.userAgent||"").includes(a)};
46
+ vj=function(){if(tj)return tj;uj||(uj=new _.gj(function(){tj=null}));(tj=document.querySelector(_.Sg)||document.querySelector(_.Sc))||(tj=document.createElement(_.Sg));uj.ha(1);return tj};xj=function(a,b){try{return parseInt(b,10)}catch(c){wj.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
47
+ yj=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=xj(a,c[0]));2<=c.length&&(b.minor=xj(a,c[1]));3<=c.length&&(b.patch=xj(a,c[2]));4<=c.length&&(b.build=xj(a,c[3]));return b};zj=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
+ Jj=function(){var a=Aj();if(!a)return Bj;var b=a.match(/^.+?(?=\))/);if(!b)return Bj;b=b[0];if(zj(b,["iphone","ipad"]))return Cj;if(zj(b,["android"]))return Dj;if(zj(b,["macintosh"]))return Ej;if(zj(b,["windows nt"]))return Fj;if(zj(b,["tizen"]))return Gj;if(zj(b,["web0s"]))return Hj;if(zj(b,["linux"]))return Ij;wj.warn("Unable to identify OS from user agent: "+a);return Bj};
49
+ _.nj=function(){var a=Aj(),b=["ie","edge","opera","firefox","safari",rd];var c=Jj();for(var d=Kj[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return yj(c[1]);return yj("")};Aj=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
50
+ _.Mj=function(){var a=Jj();var b=Jj();var c=Kj[b];if(c){c=Aj().match(c.os_version)[1];c=yj(c);if(b===Fj)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=yj("");a:{c=Aj();var d=["ie","edge","opera","firefox","safari",rd],e=Jj();e=Kj[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=Lj}return{os:a,osVersion:b,browser:c,browserVersion:_.nj()}};
51
+ Qj=function(a,b){this.g=new _.L("clpp.PlayerSurface");this.w=_.M.ra(Nj,b);this.f=new bj;this.h=null;this.a=new bj;this.l=Oj;Oj+=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
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 h=c.getAttribute(g);h=parseInt(h,10);isNaN(h)||(e.style[g]=h+_.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&&Pj(this,c,e)}};Pj=function(a,b,c){(_.mj()&&53===_.nj().major||_.mj()&&68===_.nj().major||_.oj())&&!b.hasAttribute(Sd)&&(b.style.opacity="0",b.setAttribute(Sd,""),a.j.one(b,le,function(){b.removeAttribute(Sd);b.style.opacity="1";c&&(c.style.opacity="1")}))};
55
+ Vj=function(a){var b=this;this.j=a;this.A=!!a.sideAdContainer;this.l=[];this.a=a.zj;this.H=Rj(a);this.F=[];var c=Sj(this,this.H,this.j.Sl);this.w=new Hi(c);this.f=null;this.B=!1;this.o=new Map;this.I=a.toggleVisible;this.g=new _.L("clpp.interstitial.MultiController");this.h=this.G=!1;this.J=a.Un||function(){};Tj(this).forEach(function(d){return Uj(b,d,!1)})};
56
+ Zj=function(a,b){var c,d,e,f,g,h,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=Wj(a);d=a.getCurrentItem();if(!c||!d||!d.bb||null==c.V)return y["return"]();e=a.l.filter(function(D){return!D.primary});f=Math.max.apply(Math,_.ph(e.map(function(D){return D.vb})));if(b>f)return a.g.info("Playout limit is greater than ad pod duration, ignored."),y["return"]();g=d.player.getPosition()+(d.vb-d.duration);h=e.sort(function(D,C){return C.vb-D.vb})[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,Xj(a,c.id,_.pf),3)}if(2!=y.a)return h.Ga&&h.Ga(),p=d.bb,a.a.trigger(new _.Q(_.Cc,{ad:p})),a.a.trigger(new _.Q(_.nc,{ad:p})),a.a.trigger(new _.Q(_.kc,{id:d.ec})),y["return"]();a.g.warn("Limiting playout of ads to",b);q=e.find(function(D){return b<=D.vb&&b>=D.vb-D.duration});if(!q)return a.g.warn("Cannot find ad hit by limit"),y["return"]();
58
+ t=b-(q.vb-q.duration);q.bb.h=t;u=f-b;c.V-=u;a.g.info("Last ad is now ",q.bb.Ab(),"with cropped duration",t,"and primary will resume at",c.V.toFixed(1),"instead of",l.toFixed(1));h.Ga&&(q.Ga=h.Ga);q.transition={If:{position:t,itemId:c.id,V:c.V}};Yj(a,q);_.z(y)})};bk=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.zd,2):c["return"]();if(4!=c.a)return _.x(c,b.player.play(),4);b.state=_.Af;ak(b);_.z(c)})};
59
+ ck=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(),zd:Promise.resolve()})}))};fk=function(a){return _.I(function(b){return _.x(b,ek(a,a.l.map(function(c){return c.id})),0)})};
60
+ ek=function(a,b){var c,d,e,f,g;return _.I(function(h){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(h,Promise.all(d.map(function(l){l.disposers.forEach(function(m){return m()});l.disposers=[];return gk(a,l.id)})),0)})};ik=function(a){var b;return _.I(function(c){b=a.l.filter(function(d){return!d.primary}).map(function(d){return d.id});hk(a);return _.x(c,ek(a,b),0)})};
61
+ jk=function(a){var b,c;_.I(function(d){b=a.getCurrentItem();c=b.next[0];if(!(b&&b.primary&&c))return d.C(0);hk(a);return _.x(d,a.play(c),0)})};hk=function(a){var b=Wj(a);b&&(b.transition=void 0,b.next=[],kk(a))};
62
+ Xj=function(a,b,c){var d,e,f,g,h,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=lk(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.A?e.primary?mk(a,e,nk):e.player.pause():e.player.pause()),e.primary?mk(a,e,nk):mk(a,e,ok);(f=a.o.has(b))&&a.o["delete"](b);_.F(m,2,3);if(c===_.pf)return(g=e&&d.primary)?_.x(m,pk(a,d),10):f?_.x(m,
63
+ qk(a,d),10):_.x(m,rk(a,d),10);if(f){a.g.error("Loading preloaded items is not supported");m.C(6);break}return _.x(m,uk(a,d),6);case 10:ak(d);case 6:Yj(a,d);d.primary?mk(a,d,ok):mk(a,d,nk);d.bb&&vk(a,d,d.bb);if(d.Ga)d.player.one(_.pe,d.Ga);d.gj&&d.gj(d.player.getDuration());e&&wk(a,e);case 3:_.Eh(m);a.B=!1;xk(a);yk(a,d.next);_.Fh(m);break;case 2:h=_.H(m);a.g.error("Item failed to "+c+" (ID: "+b+")",h);if(d.primary)throw h;if(l=Wj(a))return a.g.warn("Ad failed, resuming primary item"),_.x(m,pk(a,l),
64
+ 3);m.C(3)}})};zk=function(a,b,c){c=void 0===c?!1:c;if(!a.h){var d=Wj(a);d?(d.V=b,c&&(a.h=!0)):a.g.error("Failed to get primary item. Cannot configure resume position.")}};Wj=function(a){return a.l.find(function(b){return!!b.primary})||null};lk=function(a,b){return a.l.find(function(c){return c.id===b})||null};
65
+ Yj=function(a,b){var c=b.transition;if(c&&!c.Ij){if(c.Ga){var d=c.Ga,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.If&&Ak(a,b,function(){var f=a.f.bb;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.ec})))});c.Ij=!0}};
66
+ Ak=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?h=null:h=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.If,h=null;g.V&&zk(a,
67
+ g.V);a.g.info("Start timeupdate polling");b.player.on(_.zg,f);b.disposers.push(function(){null!=h&&(a.g.info("Stop RAF polling"),cancelAnimationFrame(h),h=null)});b.disposers.push(d)};kk=function(a){a.f&&(a.f.disposers.forEach(function(b){return b()}),a.f.disposers=[],a.f.transition&&(a.f.transition.Ij=!1),Yj(a,a.f))};Tj=function(a){return[a.a].concat(_.ph(a.w.a.map(function(b){return b.player})))};xk=function(a){Promise.all(Array.from(a.o.keys()).map(function(b){return gk(a,b)}))};
68
+ Rj=function(a){if(a.sideAdContainer)a=a.sideAdContainer;else if(a=a.zj.getSurface().getContainer(),!a)throw Error("Primary player does not have a container");return a};gk=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,Bk(a,c.player),3):d.C(3)}a.o["delete"](b);_.z(d)})};Ck=function(a){return _.I(function(b){if(1==b.a)return a.f?_.x(b,wk(a,a.f),3):b.C(0);Uj(a,a.a,!0);_.z(b)})};
69
+ wk=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.A||Uj(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=Dk;return b.Vg?(a.g.info("Release player (ID: "+b.id+") after delay "+(b.Vg+" ms.")),_.x(d,new Promise(function(e){setTimeout(function(){return _.I(function(f){if(1==f.a)return _.x(f,Bk(a,c),2);Uj(a,c,!1);a.a.trigger(new _.Q("ad-hls-released"));
70
+ e();_.z(f)})},b.Vg)}),0)):_.x(d,Bk(a,c),5)}Uj(a,c,!1);return d.C(0)})};rk=function(a,b){return _.I(function(c){if(1==c.a)return _.x(c,uk(a,b),2);if(3!=c.a)return _.x(c,b.player.play(),3);b.state=_.Af;_.z(c)})};uk=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.x(d,Ek(a,!!b.primary),2);if(3!=d.a)return c=d.f,a.f=b,b.role=Fk,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),Uj(a,c,!0),b.state="loading",b.zd=Gk(c,b.config),_.x(d,b.zd,3);b.state="loaded";_.z(d)})};
71
+ qk=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=Fk;Uj(a,c,!0);if(b.state===If)return _.x(d,c.play(),7);if(b.state!==Hf){d.C(7);break}return _.x(d,Gk(c,b.config),7);case 7:b.state=_.Af,_.z(d)}})};
72
+ vk=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.ec}))}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 h(){var m=l.getPosition(),n=c.getDuration();c.j=m;a.a.trigger(new _.Q(_.yc,{ad:c}));!c.l&&m>=n/4&&(c.l=!0,a.a.trigger(new _.Q(_.oc,{ad:c})));!c.o&&m>=n/2&&(c.o=!0,a.a.trigger(new _.Q(_.wc,{ad:c})));
73
+ !c.w&&m>=3*n/4&&(c.w=!0,a.a.trigger(new _.Q(_.Dc,{ad:c})))}var l=b.player;l.on(_.zg,h);l.on(_.lf,g);l.on(_.Af,f);l.on(_.dd,e);l.one(_.pe,d);b.disposers.push(function(){l.off(_.zg,h);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.ec}));c.videoEl=l.getSurface().getMedia();a.a.trigger(new _.Q(_.uc,{ad:c}));a.a.trigger(new _.Q(_.Bc,{ad:c}))};
74
+ pk=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=Fk;Uj(a,b.player,!0);b.state="loading";if(a.A&&(mk(a,b,ok),!b.player.isPaused())){c.C(9);break}return _.x(c,b.player.play(),9);case 9:b.state=_.Af,_.z(c)}})};
75
+ Bk=function(a,b){return _.I(function(c){return b===a.a?c.C(0):_.x(c,a.w.release(b),0)})};Ek=function(a,b){var c;return _.I(function(d){if(1==d.a)return b?d["return"](a.a):_.x(d,a.w.get(),2);c=d.f;if(!c)throw Error("No player available");return d["return"](c)})};yk=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 Hk(a,e)})),0)})};
76
+ Hk=function(a,b){var c,d,e,f,g;return _.I(function(h){switch(h.a){case 1:if(!b.primary){h.C(2);break}b.state=Jf;a.o.set(b.id,b);if(!b.V||a.A){h.C(3);break}c=b.player;a.g.info("Preparing to resume at",b.V);mk(a,b,nk);return _.x(h,c.seek(b.V,!0),3);case 3:return b.state=If,h["return"]();case 2:return d=b.id,_.x(h,Ek(a,!1),5);case 5:e=h.f;b.player=e;b.videoEl=e.getSurface().getMedia();b.role=Dk;b.state=Jf;_.F(h,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=Gk(e,b.config);return _.x(h,b.preloadPromise,8);case 8:b.state=If;_.G(h,0);break;case 6:g=_.H(h),7001===g.code?(a.g.info("Preload aborted (ID: "+d+")"),b.state=Gf):(a.g.warn("Preload failed (ID: "+d+")",g),b.state=Hf),_.z(h)}})};
78
+ Uj=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(Wa+b),d.classList.remove(vd),d.classList.add("clpp-hide")),a.I&&a.I(d,c))};
79
+ Sj=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.kb.create();f=new Qj(f);g.init(f,c);g.setSourceIndex(0);var h=f.getContainer();if(!h)throw Error("Failed to create player surface container element");h.classList.add("secondary");f.getMedia().classList.add("v-"+e);a.F.push(h);return g})};
80
+ mk=function(a,b,c){var d=b?b.ec||null:null;a.a.getConfiguration().muted||a.G?(a.a.setMuted(!0),Ik(a,!0)):(b.audio&&(c=b.audio),a.j.onAudioDecision&&(c=a.j.onAudioDecision(d)),c===ok?(a.a.setMuted(!1),Ik(a,!0)):c===nk?(a.a.setMuted(!0),Ik(a,!1)):a.g.warn("Audio decision not supported",c))};Ik=function(a,b){a.l.filter(function(c){return!c.primary&&c.player}).forEach(function(c){return c.player.setMuted(b)})};Jk=function(a){a.F.forEach(function(b){return a.H.removeChild(b)});a.F=[];Uj(a,a.a,!0)};
81
+ Gk=function(a,b){return _.I(function(c){return 1==c.a?_.x(c,a.release(),2):_.x(c,a.load(b),0)})};ak=function(a){if(a.bb){var b=a.player.getDuration();a.maxDuration&&(b=Math.min(b,a.maxDuration));a.bb.h=b}a.Kf&&a.Kf()};Kk=function(a){return"com.apple.hls.interstitial"===a||"com.apple.hls.overlay"===a};Lk=function(a){if(!a)return!1;var b=!!a[bc];a=!!a[ac];return(b||a)&&!(b&&a)};
82
+ Mk=function(a){return a&&a.ASSETS&&Array.isArray(a.ASSETS)?a.ASSETS.every(function(b){return typeof b.URI===_.lg&&typeof b.DURATION===_.k}):!1};Pk=function(a){return a.ph&&!(a.once&&a.Jj)&&[Nk,Ok].includes(a.state)};Qk=function(a){a=a.customAttributes[$b];if(!a)return null;try{return JSON.parse(atob(a))}catch(b){return null}};Rk=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={Ga:Lf}):(e=a[c+1].id,d.next=[e],d.transition={Ga:e}))}};
83
+ Sk=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(h){c.add(h)})});for(var d={},e=_.v(c),f=e.next();!f.done;d={Jb:d.Jb,Ye:d.Ye},f=e.next())d.Jb=f.value,d.Jb===gc?(d.Ye=new Set([]),a.forEach(function(g){return function(h){h[g.Jb]&&h[g.Jb].forEach(function(l){return g.Ye.add(l)})}}(d)),b[d.Jb]=Array.from(d.Ye)):d.Jb===hc&&(f=a.reduce(function(g){return function(h,l){return l[g.Jb]?h+l[g.Jb]:h}}(d),0),b[d.Jb]=
84
+ f);return b};Uk=function(a,b){if(0===a.length)return a;var c=new Map;1===b?a.forEach(function(g){var h=c.get(g.startTime)||[];h.push(g);c.set(g.startTime,h)}):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=Tk(f),d.push(f));return d};
85
+ Tk=function(a){var b=[],c=0;a.forEach(function(f){var g=Math.max(0,f.endTime-f.startTime);c+=g;var h=f.customAttributes[ac];h&&b.push({type:"list",id:f.id,customAttributes:f.customAttributes,Gc:{URI:h,DURATION:0}});if(h=f.customAttributes[bc])g={type:"uri",id:f.id,customAttributes:f.customAttributes,Gc:{URI:h,DURATION:g}},(f=Qk(f))&&(g.Gc[$b]=f),b.push(g)});var d=Sk(a);d[cc]={entries:b,ma:[]};var e=a[0];a=a.map(function(f){return f.id}).join("+");return Object.assign({},e,{id:a,endTime:e.startTime+
86
+ c,customAttributes:d})};_.Wk=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.ph(Vk).concat()}};Xk=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(Vk).concat()};Yk=function(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b};
87
+ _.$k=function(a,b){_.M.ia(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.Zk,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||
88
+ [],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(Vk).concat(),requestStartTimestamp:null};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&
89
+ Xk(c,b);return c};_.el=function(a,b,c,d,e,f,g,h){a={uri:e||d,data:b,headers:a,status:c,timeMs:g,responseStartMs:h,request:f};if(al(c))return bl(a);throw dl(a);};al=function(a){return 200<=a&&299>=a&&202!==a};bl=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}};
90
+ dl=function(a){a=bl(a);try{var b=_.R.ge(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})};fl=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};
91
+ gl=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};hl=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()};il=function(a){if(null!==a&&void 0!==a)return Number(a)};jl=function(a){return a.reduce(function(b,c){return b+c},0)};
92
+ tl=function(a){_.Di.call(this);var b=this;this.j=_.M.ra({vo:.5},a);this.A=this.h=!1;this.g=new _.L("clpp.interstitial.Player");this.l=a.player;this.l.setSeekInterceptor(function(c,d){if(d)return!0;if(b.h)return!1;var e=kl(b);if(e)return b.g.info("Seek ignored while binding interstitial",e.aa),!1;ll(b,c);e=ml(b);var f=nl(b,c),g=ol(b,c);if(e){if(f&&f!==e)return pl(b,f,c),!1;if(g&&g!==e)return ql(b,g,c),!1;if(c<e.startTime-b.j.resolutionOffsetSec)return rl(b,e),!0;if(c<e.startTime)return kk(b.a),b.g.info("Seek inside resolution area of",
93
+ e.aa),!0;if(c<=e.endTime)return b.g.info("Seek into the scheduled interstitial",e.aa),jk(b.a),!1;if(e.Kh)return b.g.info("Jump over a scheduled interstitial",e.aa),ik(b.a),e.state=Nk,!0;b.g.info("Jump over a scheduled interstitial triggering it",e.aa);jk(b.a);zk(b.a,c,!0);return!1}return f?(pl(b,f,c),!1):g&&!g.Xl?(ql(b,g,c),!1):!0});this.a=new Vj({Sl:this.j.config,zj:a.player,preloadMedia:!0,kb:a.kb,sideAdContainer:this.j.sideAdContainer,onAudioDecision:this.j.onAudioDecision,Un:function(){b.g.info("Resume primary content")}});
94
+ this.o=[];this.f=[];this.w=!1;sl(this,a.player)};ul=function(a){return(a=a.a.getCurrentItem())&&!a.primary?a.player:null};
95
+ wl=function(a){var b,c,d;_.I(function(e){var f=a.a;ck(f,[{id:Lf,primary:!0,config:f.a.getConfiguration(),next:[],vb:0,duration:0,ec:null}]);var g=Wj(f);if(!g)throw Error("Failed to find primary item");f.f=g;g.role=Fk;g.player=f.a;g.videoEl=g.player.getSurface().getMedia();Uj(f,g.player,!0);b=a.l;c=b.getConfiguration();d=!c.autoplay;a.w=vl(a,d,b.isLive(),!1);if(a.w){f=a.a;g=f.w;if(g=g.a[0]?g.a[0].player:null)f.A||Uj(f,f.a,!1),Uj(f,g,!0);return e.C(0)}return c.autoplay?_.x(e,bk(a.a),0):e.C(0)})};
96
+ ll=function(a,b){var c=a.l.getPosition();b>=c||a.f.filter(function(d){return 1===d.Dd&&!d.once&&d.Yi&&d.startTime>b}).forEach(function(d){d.ph=!0})};ml=function(a){return a.f.find(function(b){return b.state===xl})||null};kl=function(a){return a.f.find(function(b){return b.state===yl})||null};rl=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Unschedule interstitial",b.aa),_.x(c,ik(a.a),2);b.state=Nk;_.z(c)})};
97
+ pl=function(a,b,c){var d;_.I(function(e){switch(e.a){case 1:a.h=!0;_.F(e,2,3);d=ml(a);if(!d){e.C(5);break}return _.x(e,rl(a,d),5);case 5:return a.g.info("Seek into interstitial",b.aa),_.x(e,zl(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)}})};
98
+ ql=function(a,b,c){var d,e;_.I(function(f){switch(f.a){case 1:a.h=!0;_.F(f,2,3);d=ml(a);if(!d){f.C(5);break}return _.x(f,rl(a,d),5);case 5:return a.g.info("Play jumped interstitial",b.aa,"resume at",c.toFixed(2)),_.x(f,zl(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.aa,e),b.Xl=new Date,_.x(f,a.l.seek(c),3)}})};
99
+ vl=function(a,b,c,d){var e=Al(a);a.g.info("Interstitial cues changed",e);var f=e;if(d){f=Ni(a.f.map(function(q){return q.aa}),e.map(function(q){return q.id}));Bl(a,f.Ao);var g=new Set(f.ik);f=e.filter(function(q){return g.has(q.id)})}if(!Cl(a,f))return!1;var h=[],l=[],m=[];f.forEach(function(q){var t=q.customAttributes.CUE||[];t.includes(_.rb)?l.push(q):!d&&t.includes("PRE")?h.push(q):!c&&q.startTime<a.j.vo?h.push(q):m.push(q)});e=Uk(h,0);f=Uk(l,2);var n=Uk(m,1),p=e.concat(f,n);Dl(a,p);0<e.length&&
100
+ El(a,e[0],b);n.forEach(function(q){return Fl(a,q,1)});0<f.length&&Fl(a,f[0],2);Gl(a,p);return 0<e.length};
101
+ Gl=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(h){var l=b.find(function(n){return n.id===h.aa});if(l){var m=l.customAttributes[fc];null==h.wc&&null!=m&&(a.g.info(Rb,l.id,"Playout limit",m),h.wc=m,1===h.Dd&&h.state===xl&&Hl(a,h))}}),g["return"]();d=b.find(function(h){return h.id===c.ec});if(!d)return g["return"]();e=d.customAttributes[fc];if(null==e)return g["return"]();f=a.f.find(function(h){return h.aa===d.id});
102
+ if(!f||null!=f.wc)return g["return"]();a.g.info(Rb,d.id,"Playout limit",e);f.wc=e;return _.x(g,Zj(a.a,e),0)})};Bl=function(a,b){var c=new Set(b);a.f.forEach(function(d){c.has(d.aa)&&!Pk(d)&&a.g.warn("Removing an interstitial in active state",d)});a.f=a.f.filter(function(d){return!c.has(d.aa)})};Al=function(a){return a.l.getTimelineCues().filter(function(b){return Kk(b.schemeIdUri)&&b.customAttributes})};
103
+ zl=function(a,b,c){var d;return _.I(function(e){if(1==e.a)return _.x(e,Il(a,b),2);d=e.f;if(!d)throw Error("Failed to bind");return _.x(e,Jl(a,b,1,!1,c),0)})};Hl=function(a,b){_.I(function(c){return 1==c.a?_.x(c,rl(a,b),2):_.x(c,Kl(a,b,a.l),0)})};
104
+ Fl=function(a,b,c){var d=b.customAttributes[bc],e=b.customAttributes[ac],f=b.customAttributes[cc],g=b.customAttributes[hc],h=b.customAttributes[fc],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?ok:"AD"===m?nk:void 0;b={aa:b.id,startTime:b.startTime,endTime:b.endTime,state:Nk,zh:e,Ah:d,oe:f,ma:null,V:null==g?null:Math.max(0,b.startTime+g),Eo:g,wc:h,Dd:c,Om:"POINT"===b.customAttributes[ic],
105
+ sk:!l.includes("SKIP"),Kh:!l.includes("JUMP"),Mj:Qk(b),Yi:null!=g&&0>g,once:(b.customAttributes.CUE||[]).includes("ONCE"),Jj:!1,ph:!0,customAttributes:b.customAttributes,audio:m};a.f.push(b);return b};
106
+ El=function(a,b,c){var d,e,f,g,h;_.I(function(l){switch(l.a){case 1:return d=Fl(a,b,0),_.x(l,Il(a,d),2);case 2:e=l.f;f=d.ma?d.ma.length:0;if(e&&0<f){_.F(l,8);a.g.info("Player preroll interstitial "+d.aa);var m=Jl(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,Ck(a.a),5);case 5:if(c){l.C(0);break}return _.x(l,bk(a.a),0);case 10:_.G(l,0);break;case 8:g=_.H(l);a.g.error("Preroll interstitial failed.",
107
+ g);if(h=Wj(a.a))return _.x(l,a.a.play(h.id),0);l.C(0)}})};Ll=function(a){a.o.forEach(function(b){return b()});a.o=[]};
108
+ sl=function(a,b){function c(){a.A=!1}function d(){a.A=!0}function e(){vl(a,!1,!0,!0)}function f(){var g,h,l,m,n;return _.I(function(p){switch(p.a){case 1:if(a.h||a.A)return p["return"]();g=b.getPosition();h=Ml(a,g);if(!h){p.C(2);break}return _.x(p,Il(a,h),3);case 3:(l=p.f)&&Kl(a,h,b);case 2:m=Nl(a);if(!(m&&m.state===Nk&&b.getDuration()-g<a.j.resolutionOffsetSec)){p.C(0);break}return _.x(p,Il(a,m),5);case 5:if(n=p.f)if(m.ma&&0!==m.ma.length){var q=a.a.getCurrentItem();if(q){var t=Ol(a,m,2);if(0!==
109
+ t.length){var u=t[0].id;q.next=[u];q.transition={Ga:u};a.g.info("Schedule postroll interstitial "+m.aa);Pl(a,m,t)}}}else a.g.warn("Postroll interstitial has no assets, ignoring.");_.z(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)})};Nl=function(a){return a.f.find(function(b){return 2===b.Dd})||null};
110
+ Dl=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 h=c[g],l=c[g+1];l&&(e=Math.min(e,l.startTime-h.endTime));l&&l.startTime<=h.endTime&&f.push("Interstitials "+h.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. "+
111
+ f.join(" "))};Cl=function(a,b){var c=[];b.forEach(function(d){Lk(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};Ml=function(a,b){return a.f.find(function(c){var d=c.startTime-b;return 1===c.Dd&&Pk(c)&&0<d&&d<=a.j.resolutionOffsetSec})||null};
112
+ nl=function(a,b){return a.f.find(function(c){return Pk(c)&&!c.Om&&1===c.Dd&&b>c.startTime&&b<c.endTime})||null};ol=function(a,b){var c=a.l.getPosition();return a.f.filter(function(d){return 1===d.Dd&&!d.Kh}).sort(function(d,e){return e.startTime-d.startTime}).find(function(d){return d.startTime>c&&d.startTime<b})||null};
113
+ Il=function(a,b){return _.I(function(c){if(1==c.a){b.state=yl;if(b.oe)return _.x(c,Ql(a,b,b.oe),3);if(!b.zh){if(b.Ah){b.ma=[{URI:b.Ah,DURATION:b.endTime-b.startTime}];var d={URI:b.ma[0].URI,DURATION:b.ma[0].DURATION};b.Mj&&(d[$b]=b.Mj);Rl(a,new _.Q(tc,{id:b.aa,detail:{ASSETS:[d]}}));b.state=Sl}else b.state=Tl;return c.C(3)}return _.x(c,Ul(a,b,b.zh),3)}return c["return"](b.state===Sl)})};
114
+ Ql=function(a,b,c){var d,e,f,g,h,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,Vl(a,n.Gc.URI),3);if(2!=q.a)return p=q.f,q["return"](p.ASSETS.map(function(t){return{id:n.id,customAttributes:n.customAttributes,Gc:t}}));if("uri"===n.type)return q["return"]([{id:n.id,customAttributes:n.customAttributes,Gc:n.Gc}]);throw new _.ui("Invalid group asset entry type");})}),_.x(m,Promise.all(f),
115
+ 4);if(2!=m.a)return g=m.f,g.forEach(function(n){return d.push.apply(d,_.ph(n))}),b.oe={entries:e,ma:d},h={ASSETS:d.map(function(n){return n.Gc})},Wl(a,b,h),_.G(m,0);l=_.H(m);a.g.error("Failed to bind grouped asset list for "+b.aa,l);b.state=Tl;_.z(m)})};
116
+ Ul=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.aa),Rl(a,new _.Q(pc)),_.x(f,Vl(a,c),4);if(2!=f.a)return d=f.f,Wl(a,b,d),_.G(f,0);e=_.H(f);a.g.error("Failed to load X-ASSET-LIST",e);b.state=Tl;_.z(f)})};
117
+ Wl=function(a,b,c){b.ma=c.ASSETS;b.ma&&0!==b.ma.length||a.g.info("Interstitial "+b.aa+" has no assets, will be smoothly skipped");if(null==b.V){var d=jl(b.ma.map(function(e){return e.DURATION}));b.V=b.startTime+(null==b.wc?d:Math.min(b.wc,d))}b.state=Sl;Rl(a,new _.Q(rc));Rl(a,new _.Q(tc,{id:b.aa,detail:c}))};Xl=function(a,b){var c=a.j.so;if(c){var d=new URL(b);d.searchParams.set("_HLS_primary_id",c);return d.toString()}return b};
118
+ Jl=function(a,b,c,d,e){var f,g,h;return _.I(function(l){if(0===b.ma.length)return l["return"]();f=a.a.getCurrentItem();if(!f)return l["return"]();g=Ol(a,b,c);if(0===g.length)return l["return"]();Pl(a,b,g);(h=0===c&&a.l.isLive())||(null!=e?zk(a.a,e,!0):null!=b.V&&zk(a.a,b.V));return d?_.x(l,a.a.load(g[0].id),0):_.x(l,a.a.play(g[0].id),0)})};
119
+ Kl=function(a,b,c){if(b.ma)if(0===b.ma.length){var d=function(){c.isLive()?a.g.info("Skipping empty live interstitial "+b.aa):null!=b.V&&0!==b.Eo?c.seek(b.V):a.g.info("Empty VOD interstitial "+b.aa+", continuing to next segment")};c.one(_.wg,d);a.o.push(function(){c.off(_.wg,d)});a.g.info(Eb+b.aa+" to be skipped")}else{var e=a.a.getCurrentItem();if(e){var f=Ol(a,b,1);if(0!==f.length){var g=f[0].id;null!=b.V&&zk(a.a,b.V);e.next=[g];e.transition={If:{position:b.startTime,itemId:g,V:b.V}};a.g.info(Eb+
120
+ b.aa+" for "+(b.startTime+" s"));Pl(a,b,f)}}}};Pl=function(a,b,c){ck(a.a,c);c=a.a;kk(c);c.f&&(c.f.bb&&vk(c,c.f,c.f.bb),xk(c),yk(c,c.f.next));b.state=xl;Rl(a,new _.Q(_.vc,{ad:null}))};
121
+ Ol=function(a,b,c){var d=0,e=!!b.oe,f=b.ma.map(function(l,m){var n=b.aa;e&&(n=b.oe.ma[m].id);d+=l.DURATION;return{id:n+"-"+m,config:{source:{url:Xl(a,l.URI),type:_.Yl}},duration:l.DURATION,vb:d,ec:n,next:[],bb:new Gi(c,m+1,b.ma.length,l.DURATION,n,b.sk,b.customAttributes||null),audio:b.audio}});Rk(f,c);f.forEach(function(l){l.Kf=function(){var m=l.bb;a.g.info("Playing ad "+(m.f+"/"+m.a)+" of interstitial "+l.ec)}});if(null!=b.wc&&(f=Zl(a,b,f),0===f.length))return[];var g=f[0].Kf;f[0].Kf=function(){b.Jj=
122
+ !0;b.Yi&&(b.ph=!1);a.g.info("Playing interstitial "+b.aa+" with "+(b.ma.length+" assets and will resume primary content ")+((b.V?"at "+b.V.toFixed(1)+" s":"after interstitial ended")+"."));g()};f[0].gj=function(l){null==b.V&&(b.V=b.startTime+l,zk(a.a,b.V),a.g.info("Primary content will resume at",b.V.toFixed(1),"s"));b.state=$l};var h=f[f.length-1];h.Ga=function(){b.state=Ok;ek(a.a,f.map(function(l){return l.id}));2===c&&Ck(a.a)};h.Vg=a.j.adReleaseDelayMs;return f};
123
+ Zl=function(a,b,c){var d=b.wc;a.g.info("Playout limit for "+b.aa+" is "+(d+" s"));b=c[c.length-1].vb;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.vb-f.duration<=d});e.forEach(function(f){f.bb.a=e.length});a=e[e.length-1];c=d-(a.vb-a.duration);.1>Math.abs(c-a.duration)?a.transition.Ga=Lf:a.transition.If={position:c,itemId:Lf,V:null};a.maxDuration=c;return e};
124
+ Rl=function(a,b){a.l.trigger(b)};Vl=function(a,b){var c,d,e,f,g,h;return _.I(function(l){if(1==l.a){c=a.a.rf();if(!c)throw Error("No player found");d=c.getNetworkEngine();e=_.$k(Xl(a,b));return _.x(l,am(d,e),2)}f=l.f;if(null===f)return a.g.warn("X-ASSET-LIST "+b+" returned no content"),l["return"]({ASSETS:[]});g=Mk(f);if(!g)throw new _.ui("Invalid X-ASSET-LIST list response");h=f;return l["return"](h)})};bm=function(){this.a=null};
125
+ cm=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)})}};em=function(a){this.m=a;this.j=this.m.getNetworkEngine();this.a=new _.wi;this.h=null;this.f=!0;dm(this)};
126
+ dm=function(a){a.a.on(window,"offline",function(){fm(a,!1)});a.a.on(window,"online",function(){a.f||gm(a)});a.a.on(a.m,gg,function(){return hm(a)});a.a.on(a.m,"suspend",function(){return hm(a)});a.a.on(a.m,_.$g,function(){return hm(a)});a.a.on(a.m,_.Af,function(){a.f||gm(a)});a.a.on(a.m,_.Mf,function(){a.f||gm(a)});a.a.on(a.m,_.ig,function(){switch(a.m.getState()){case 2:hm(a);break;default:hm(a)}})};gm=function(a){a.m.getConfiguration().connectivityCheck&&(im(a),a.h=(new _.gj(function(){return jm(a)})).ha(5))};
127
+ hm=function(a){a.f&&gm(a)};im=function(a){a.h&&(a.h.stop(),a.h=null)};jm=function(a){var b,c;return _.I(function(d){if(1==d.a)return(b=a.m.getConfiguration().connectivityCheck)&&a.m?_.x(d,km(a.j,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;fm(a,c);_.z(d)})};fm=function(a,b){im(a);a.f!==b&&(a.f=b,a.m&&a.m.getConfiguration().connectivityCheck&&a.m.trigger(new _.Q(gf,{online:a.f})))};_.lm=function(){this.a=[]};
128
+ _.nm=function(a,b){a.a.push(mm(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.om=function(){var a,b,c=new Promise(function(e,f){a=e;b=f}),d=Object.assign(c,{done:!1,Wg:!1,xo:!1,value:null,error:null,resolve:function(e){d.Wg=!0;d.done=!0;d.value=e;a(e)},reject:function(e){d.xo=!0;d.done=!0;d.error=e;b(e)}});return d};
129
+ _.qm=function(a,b){var c=[a];var d=pm.apply(_.qm,_.ph(c));if(!d||d.protocol.includes("."))c=b?[a,b]:[a,location.href],c=(d=pm.apply(_.qm,_.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("//")};pm=function(a,b){try{return new URL(a,b)}catch(c){return null}};sm=function(){this.a=rm()};tm=function(a){return rm()-a.a};um=function(a){var b=new sm;b.a=a.a;return b};
130
+ rm=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};vm=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.h=new sm};xm=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(wm(a,d),gl(c,d.byteLength,tm(a.h)),a.h.a=rm());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 xm(a,b,c)})})};
131
+ wm=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};ym=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.h=b;this.f=0};zm=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};
132
+ Am=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.j=new ym(a);this.length=a;this.A=b;this.f=this.a=this.h=0;this.l=null;this.o=-1;this.w=new sm};
133
+ Dm=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,tm(a.w)),a.w.a=rm());if(f)return f=Bm(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){zm(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=Cm(a);for(f=[];e;)f.push(e),e=Cm(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 h=f[f.length-1],
134
+ l=h.end-e.start;e={start:e.start,end:h.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 Dm(a,b,c,d)})})};Cm=function(a){if(0<=a.o&&a.f<a.o)return null;for(var b=Em(a);null!==b;){if(b.name===_.Qe){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=Em(a)}return null};
135
+ Em=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=Fm(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=Fm(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};
136
+ Fm=function(a){var b=a.l.getUint32(a.a,!1);a.a+=4;return b};Bm=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};
137
+ Hm=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={Td:!1,Pj:!1};b={U:Gm(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.Td||(e.Td=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.Pj=!0;d.abort()},a);b.U=b.U["finally"](function(){window.clearTimeout(f)})}return b};
138
+ Gm=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,t,u,y,D,C,B,E;return _.I(function(A){switch(A.a){case 1:return e=new sm,f=um(e),_.F(A,2),_.x(A,window.fetch(a,c),4);case 4:g=A.f;h=Yk(g.headers);l={uri:g.url,data:null,headers:h,status:g.status,timeMs:0,responseStartMs:tm(f),request:b};if(al(g.status)){A.C(5);break}m=l;return _.x(A,g.arrayBuffer(),6);case 6:throw m.data=A.f,l.timeMs=tm(e),dl(l);case 5:n=g.headers.get(za);fl(b,n);p=n?parseInt(n,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return y=
139
+ g.body.getReader(),D=new Am(p,!b.disableMergedFragments),C=function(J,N){if(d.Td)return null;N&&N.data&&(gl(b,N.data.byteLength,tm(f)),f.a=rm());return b.onFragment&&N?b.rateLimitBps?hl(b.rateLimitBps,tm(e),b.bytesLoaded).then(function(){return b.onFragment(N)}):b.onFragment(N):null},B=l,_.x(A,Dm(D,y,C,b.onProgress),12);q=g.body.getReader();t=new vm(p);return _.x(A,xm(t,q,b),9);case 9:u=A.f;if(!b.rateLimitBps){A.C(10);break}return _.x(A,hl(b.rateLimitBps,tm(e),u.byteLength),10);case 10:l.data=u;A.C(8);
140
+ break;case 12:B.data=A.f;case 8:if(d.Td)throw Error("Request was aborted");l.timeMs=tm(e);return A["return"](bl(l));case 2:E=_.H(A);if(d.Td)throw new _.O(1,1,7001,{url:a,request:b});if(d.Pj)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);}})};
141
+ Im=function(a){var b=a.uris[a.uriIndex],c=new window.XMLHttpRequest,d=new sm,e=um(d),f=0,g,h=new _.om;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=tm(e));p.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!l&&(p=p.getResponseHeader(za),fl(a,p),l=!0)};c.onload=function(p){p=p.target;var q=(p.getAllResponseHeaders()||"").trim().split("\r\n"),
142
+ 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=tm(e);m||gl(a,p.response?p.response.length:0,y);var D=_.el(t,p.response,p.status,b,p.responseURL,a,y,g);a.rateLimitBps?hl(a.rateLimitBps,tm(e),a.bytesLoaded).then(function(){h.resolve(D)}):h.resolve(D)}catch(C){h.reject(C)}};c.onerror=function(p){p=p.target;if(0>=p.status)h.reject(new _.O(1,1,1002,{url:b,request:a,status:p.status}));else{var q=p.getAllResponseHeaders(),t=
143
+ {};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=_.el(t,p.response,p.status,b,p.responseURL,a,tm(e),g);h.resolve(p)}};c.ontimeout=function(){h.reject(new _.O(1,1,1003,{url:b,request:a}))};c.onprogress=function(p){var q=tm(d);d.a=rm();if(100<q||p.lengthComputable&&p.loaded===p.total)gl(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);
144
+ return{U:h,request:a,abort:function(){c.abort();h.reject(new _.O(1,1,7001,{url:b,request:a}));return Promise.resolve()}}};Jm=function(){};_.Lm=function(a,b){b=void 0===b?!0:b;var c=_.Km(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")};_.Mm=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};
145
+ _.Nm=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};_.Om=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};_.Pm=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};
146
+ _.Qm=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};_.Km=function(a){a=_.R.fromCharCode(_.Qi(a));return btoa(a)};
147
+ Sm=function(a){try{var b=a.uris[a.uriIndex],c=_.Rm(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()}}}};
148
+ _.Rm=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?_.Mm(a).buffer:_.R.gb(a).buffer,contentType:c}};
149
+ _.Tm=function(a,b){this.U=a;this.B=b;this.a=!1};mm=function(a,b){a.U.then(function(){return b(!0)},function(){return b(!1)});return a};Vm=function(a,b){_.Tm.call(this,new _.om,function(){return Promise.resolve()});this.F=a;this.h=null;this.w=this.U;this.f=-1;this.j=this.l=this.o=null;this.A=b||null;Um(this)};Wm=function(a,b,c){a.o=setTimeout(b,c)};
150
+ Um=function(a){a.h=a.F.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=Xm(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*Xm(e.request.fuzzFactor,.5));a.f*=Xm(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.l=h;Wm(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});
151
+ 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,h=b<c;if((1===e.severity||f)&&g&&h)return a.A&&a.A(e),Um(a);g&&e.a(_.P);a.w.reject(e)}else a.w.reject(e)})};Xm=function(a,b){return null===a||void 0===a?b:a};
152
+ _.Ym=function(){this.h=[];this.f=[];this.j=[];this.w=!1;this.o=new _.lm;this.a={};this.headers=new Map;this.l=0;this.A=null;this.a.data=Sm;!window.fetch||!window.AbortController||_.lj(6)||_.mj()&&68<_.Mj().browserVersion.major?(this.a.http=Im,this.a.https=Im):(this.a.http=Hm,this.a.https=Hm)};Zm=function(a,b){a.A=b};$m=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.Zi(c.ea(d.data)))})};
153
+ am=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.x(e,$m(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");}})};
154
+ _.cn=function(a,b,c){if(a.w)return new Vm(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;an(a,b);b.responseModifiers=_.ph(a.j).concat(_.ph(b.responseModifiers||[]));f=d=new _.om;try{e={};for(var g=_.v([{type:"public",modifiers:b.requestModifiers},{type:"internal",
155
+ modifiers:a.f}]),h=g.next();!h.done;e={We:e.We},h=g.next()){e.We=h.value;for(var l={},m=_.v(e.We.modifiers),n=m.next();!n.done;l={Ve:l.Ve},n=m.next())l.Ve=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.We.type?u.Ve(y,c)||y:u.Ve(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:bn(a,t)}});var p=new Vm(f,a.A);
156
+ g={};var q=_.v(b.responseModifiers);for(n=q.next();!n.done;g={Ue:g.Ue},n=q.next())g.Ue=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 D=t.Ue(u)||u;y();return D}}(g))["catch"](function(t){return function(u){if(u instanceof _.O&&u.data&&u.data.response){var y=t.Ue(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
157
+ _.O)throw t;throw new _.O(_.P,1,1007,null,t);});_.nm(a.o,p);d.resolve(b);return p}catch(t){return new Vm(Promise.reject(t))}};km=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=_.$k(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)}})};
158
+ an=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)}};bn=function(a,b){var c=b.uris[b.uriIndex],d=new _.qm(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)}};en=function(){dn.forEach(function(a){return a()})};_.fn=function(a){dn.push(a)};_.hn=function(a){gn&&performance.mark(a)};
159
+ _.kn=function(a,b,c){gn&&(b=performance.measure(a,b,c),null!=b&&jn.info('Step: "'+a+'" took '+b.duration.toFixed(0)+" ms."))};nn=function(a,b){var c=ln;mn.set(a.toLowerCase().split(";")[0]+"-"+c,{priority:c,plugin:b})};_.rn=function(a,b){for(var c=_.v([on,pn,qn,ln]),d=c.next();!d.done;d=c.next())if(d=mn.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};
160
+ sn=function(a,b){var c=b||Ji,d=null,e=null,f=!1;return function(g){for(var h=[],l=0;l<arguments.length;++l)h[l]=arguments[l];if(f&&c(h,d))return e;f=!0;d=h;return e=a.apply(null,_.ph(h))}};_.tn=function(a){return null!=a};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}throw new _.ui("No non-null, non-undefined value found");};
161
+ vn=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}};
162
+ _.wn=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,
163
+ "/")||(this.path="/"+this.path);this.f=b.search;this.h=b.hash};_.xn=function(a){return a.scheme+"//"+(a.a+(a.port?":"+a.port:"")+a.path+a.h+a.f)};_.yn=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)},""):""};
164
+ zn=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};_.An=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()};
165
+ _.Bn=function(a){if(!a)return null;a=(new _.qm(a)).a.pathname.split("/");if(1>a.length)return null;a=a.pop().split(".");return 1>=a.length?null:a.pop().toLowerCase()};En=function(a,b){for(var c=_.v(Cn[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===_.Dn?"":null};_.Fn=function(a,b){var c=a;b&&(c+=';codecs\x3d"'+b+'"');return c.replace(/\s/g,"")};_.Gn=function(a){return a.split(";")[0]};
166
+ _.Hn=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(","):""};In=function(){};
167
+ _.Mn=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.rj()&&(a=360);var b=_.Wk();b.maxAttempts=3;a={source:"",license:Jn,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,ads:{hls:{enable:!0,resolutionOffsetSec:35}},manifest:{attemptParameters:_.Wk(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0,timeline:{version:1,type:void 0}},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,
168
+ bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,restrictions:Kn(a),useCmsd:!0},contentSteering:{enabled:!0,attemptParameters:_.Wk()},drm:null,cmcd:{enabled:!1,version:1,rtpMultiplier:5,deliveryMode:"headers"},enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:_.Pe,preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],preferSpatialAudio:!1,preferForcedSubtitles:!1,volume:null,startTime:null,loop:!1,lowLatencyMode:!1,
169
+ suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,xmlParser:_.Ln,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,
170
+ 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:Kn(),tizen:{sideStreamText:_.lj(2)},safari:{enableHlsVideoTrackInfo:!1,enableMetadata:!1},mse:{sendPlaybackSessionIdHeader:!1},trickPlay:{speedUpMode:_.Ud,
171
+ preferTrickPlayTracks:!0},playlist:{timeline:"basic",content:_.Ub,cropTimeline:!1},yospace:{enabled:!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);_.oj()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=
172
+ .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};
173
+ _.On=function(a,b){b=void 0===b?{}:b;if(!a)return _.Mn();for(var c=[_.Mn()],d=!1,e=_.v(a),f=e.next();!f.done;f=e.next())f=f.value,null!==f&&void 0!==f&&(_.M.ia(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.Go||null==f.suggestedPresentationDelay||c.push({manifest:{suggestedPresentationDelay:f.suggestedPresentationDelay}}));
174
+ c=_.M.ra.apply(null,c);_.M.ia(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.M.R(c.volume)&&(!_.M.za(c.volume)||_.M.isNaN(c.volume)))throw new _.O(_.P,7,7100,"config.volume is not a number");if(!_.M.R(c.preferredTextLanguage)&&!_.M.ia(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.O(_.P,7,7100,"config.preferredTextLanguage is not a string or an array");if(!_.M.R(c.preferredAudioLanguage)&&!_.M.ia(c.preferredAudioLanguage)&&!Array.isArray(c.preferredAudioLanguage))throw new _.O(_.P,
175
+ 7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.M.R(c.preferredAudioCodec)&&!_.M.ia(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.O(_.P,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.M.R(c.preferredVideoCodec)&&!_.M.ia(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.O(_.P,7,7100,"config.preferredVideoCodec is not a string or an array");if(!_.M.R(c.drm)){if(c.drm.env&&!_.M.ia(c.drm.env))throw new _.O(_.P,
176
+ 7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.M.ia(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(!_.M.za(d.bufferingGoal)||_.M.isNaN(d.bufferingGoal))throw new _.O(_.P,7,7100,"config.streaming.bufferingGoal is not a number");
177
+ if(!_.M.za(d.rebufferingGoal)||_.M.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(!_.M.za(d.bufferBehind)||_.M.isNaN(d.bufferBehind))throw new _.O(_.P,7,7100,"config.streaming.bufferBehind is not a number");if(!_.M.za(d.smallGapLimit)||_.M.isNaN(d.smallGapLimit))throw new _.O(_.P,7,7100,"config.streaming.smallGapLimit is not a number");
178
+ if(!_.M.za(d.durationBackoff)||_.M.isNaN(d.durationBackoff))throw new _.O(_.P,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.M.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.k)throw new _.O(_.P,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");Nn(c.restrictions);Nn(c.abr.restrictions);c.abr.initialRestrictions&&Nn(c.abr.initialRestrictions)}return c};
179
+ Kn=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}};
180
+ Nn=function(a){_.M.R(a.maxPixels)&&(a.maxPixels=Infinity);_.M.R(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.M.R(a.maxHeight)&&(a.maxHeight=Infinity);_.M.R(a.maxWidth)&&(a.maxWidth=Infinity);_.M.R(a.minPixels)&&(a.minPixels=0);_.M.R(a.minBandwidth)&&(a.minBandwidth=0);_.M.R(a.minHeight)&&(a.minHeight=0);_.M.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);
181
+ 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");};Pn=function(a){return typeof a===_.$e&&!Array.isArray(a)&&"source"in a};
182
+ Qn=function(a){if(!a)return null;a=(new _.qm(a)).a.pathname.toUpperCase();return a.endsWith(".MPD")?_.Lc:a.endsWith(".M3U8")?_.Yl:a.endsWith(".MP4")?_.Ug:a.endsWith(".MP3")?"audio/mp3":a.endsWith("MANIFEST")||a.endsWith(".ISM")?_.Qc:null};_.Sn=function(a){var b;Pn(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=Rn(b[c]);d&&a.push(d)}return a};
183
+ Rn=function(a){var b=null;_.M.ia(a)&&(a={url:a});typeof a===_.$e&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.M.R(a.drmProtected)||typeof a.drmProtected!==_.bd||(b.drmProtected=a.drmProtected),_.M.R(a.isLive)||typeof a.isLive!==_.bd||(b.isLive=a.isLive),_.M.R(a.name)||typeof a.name!==_.lg||(b.name=a.name),_.M.R(a.mc)||typeof a.mc!==_.lg||(b.mc=a.mc),_.M.R(a.ib)||typeof a.ib!==_.lg||(b.ib=a.ib));b&&!b.type&&(b.type=Qn(a.url),b.type?Tn.debug("Detect media type "+b.type+" for "+
184
+ a.url):Tn.warn("Unable to detect media type for "+a.url));return b};Un=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};_.Wn=function(a){_.Vn[a.J]=a};
185
+ _.Yn=function(a){var b={attemptParameters:_.Wk(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,ignoreUnrecognizedInitData:!0,Qa:{},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!==
186
+ a.ignoreUnrecognizedInitData&&(b.ignoreUnrecognizedInitData=!!a.ignoreUnrecognizedInitData),typeof a.widevineVersion===_.lg&&0<a.widevineVersion.length&&(b.widevineVersion=a.widevineVersion),a.env)){var c=_.Vn[a.env]||null;if(!c)throw _.Vh(_.Ba,_.wb+a.env+_.aa),new _.O(_.P,6,6015,_.Da+a.env+"' is missing.");b.Qa=_.Xn(c,a.customData)||{};_.R.startsWith(a.env.toLowerCase(),je)&&(b.enforceSingleSession=!0)}return b};
187
+ Zn=function(a,b,c){var d=_.R.ea;this.h=a;this.f=b;JSON.parse(d(_.Mm(a)));this.a=JSON.parse(d(_.Mm(b)));this.j=c};
188
+ ao=function(a){var b=$n,c=_.R.gb,d={kty:"RSA",n:b.n,e:b.e},e=a.h+"."+a.f,f=a.j;return new Promise(function(g,h){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=_.Mm(f);return l.verify(m,n,q.buffer,p.buffer)}).then(function(n){n?g():h(new _.ui("Signature Verification failed",Gg))})["catch"](h)}else g()})};bo=function(a){this.f=a;this.a=null;this.g=new _.L("clpp.utils.LicenseKey")};
189
+ co=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 Zn(b[0],b[1],b[2]);a.a=b}return a.a};
190
+ eo=function(a){var b,c,d;return _.I(function(e){if(1==e.a)return b=co(a),_.F(e,2),_.x(e,ao(b),4);if(2!=e.a)return _.G(e,0);if((c=_.H(e))&&c.code===Gg)throw c;d=new _.qm(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;})};
191
+ fo=function(a){switch((a.ca[0]||{src:"",type:""}).type){case _.Lc:a="dash";break;case _.Qc:a="ss";break;case _.Yl:a="hls";break;case _.Ug:a="mp4";break;default:a=""}return a};go=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};ho=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};io=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};
192
+ ko=function(a){var b=a.configuration,c="no";b.drm&&!_.M.ta(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(je)||jo(a).endsWith("drmtoday.com"))&&(c=je);return c};lo=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};mo=function(a){a=a.drmInfo;var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};
193
+ no=function(a){a=a.drmInfo;var b="";if(a)switch(a.videoRobustness){case Ua:case Sa:b="L1";break;case Ta:b="L2";break;case _.Db:case _.Cb:b="L3"}return b};jo=function(a){return(a=(a=a.drmInfo)&&a.licenseServerUri||"")?(new _.qm(a)).a.hostname:""};
194
+ ro=function(a,b){var c="ie"===_.Mj().browser,d=b.configuration,e=_.ph(Array.from(_.hi.keys())).concat(_.ph(b.yj));d={"CL-KEY":a.f,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ia,"CL-USER-ID":go(d),"CL-ASSET-ID":ho(d),"CL-SESSION-ID":io(d),"CL-PLAYBACK-TYPE":b.isLive?oo:po,"CL-CONTENT-TYPE":fo(b),"CL-PLUGINS":e.join(" "),"CL-DRM":ko(b),"CL-DRM-CDM":lo(b),"CL-DRM-SEC-LEVEL":no(b),"CL-DRM-OFFLINE":mo(b),"CL-DRM-IP":jo(b)};qo&&qo.companionSdk&&(qo.companionSdk.name&&(d["CL-COMPANION-SDK"]=qo.companionSdk.name),
195
+ qo.companionSdk.version&&(d["CL-COMPANION-SDK-VERSION"]=qo.companionSdk.version));c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=e);e=_.$k(["https://downloads.castlabs.com/r/register/"]);e.method="GET";e.headers=d;return(new _.Ym).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=co(a);f=f.data;var h=f.status;if(g.a&&g.a.ilv)f=Promise.resolve();else{switch(h){case 403:case 404:g=7101;
196
+ var l="Castlabs Player license is invalid";if(403===h){h=l;l="";try{l=JSON.parse(decodeURIComponent(f.responseText)).message}catch(m){}f=h+(": "+l)}else f=l+"!";l=f;break;case 412:g=7103;l="License requires a viewer ID. It should be supplied either via the `viewerId` config or in case of DRMtoday via the `drm.customData.userID` config.";break;default:f=Promise.resolve();break a}a.g.error(ab+l);f=Promise.reject(new _.O(_.P,7,g,l))}}return f})};
197
+ _.to=function(a,b){a=_.so(a);b=_.so(b);return a.split("-")[0]===b.split("-")[0]};_.so=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=uo.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};wo=function(a){this.m=a;this.f=a.getNetworkEngine();this.h=vo(this);this.f.Od(this.h);this.a=null};
198
+ vo=function(a){return function(b){var c=b.headers,d=b=null,e=_.M.Ai(c,"cmsd-dynamic");c=_.M.Ai(c,"cmsd-static");e&&(b=xo(e),a.a=b);if(c)try{e={};var f=c.split(",");for(c=0;c<f.length;c++){var g=yo(f[c]),h=g.key,l=g.value;Object.keys(zo).includes(h)&&(e[zo[h]]=l)}d=_.M.Qb(e)?e:null}catch(m){Ao.error("CmsdManager parseCmsdStaticHeader_ failed:",m),d=null}(b||d)&&a.m.trigger(new _.Q("cmsd-event",{Kp:b,Yp:d}))}};
199
+ xo=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=yo(c[e]),g=f.key;f=f.value;Object.keys(Bo).includes(g)&&(d[Bo[g]]=f)}return d}).filter(function(c){return _.M.Qb(c)});return 0<b.length?b:null}catch(c){return Ao.error("CmsdManager parseCmsdDynamicHeader_ failed:",c),null}};
200
+ yo=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);};
201
+ S=function(a,b,c){_.Di.call(this);var d=this;en();this.g=new _.L("clpp.Player");this.g.info("SDK version: 6.30.0");if(!a)throw new _.O(_.P,7,7102);this.Aa=new _.wi;this.f=this.F=b||_.Mn();this.l=null;void 0===this.f.license&&(this.f.license=Jn,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=
202
+ new Qj(a,c);this.G=this.A=this.a=this.I=null;this.J=new _.Ym;this.h=null;this.ja=[];this.ka=!0;this.L={};this.Fa=null;this.Z=!0;this.da=this.T=!1;this.O=this.qd=null;this.Bg=!1;this.Ra=new em(this);this.B=null;this.on(_.ig,function(){d.getState()===_.Co&&(d.a?d.a.unload():Promise.resolve())});this.on(_.Hc,function(){d.Bg=!0});this.on(_.Gc,function(){d.Bg=!1});this.on(_.yg,function(){return Do(d)});Ko(this,this.f.license);this.j.getMedia()&&(a=this.j.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),
203
+ 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(Lo);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)}}Mo(this,a);this.P=_.ra;ni(this)};
204
+ _.No=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.F),b.setNetworkEngine(a.getNetworkEngine()),b.forwardEventsTo(a),a.a=b,a.A=c))};Ko=function(a,b){a.I=new bo(b);eo(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)})};
205
+ Oo=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 bo(a.f.license)),_.F(e,2),a.g.debug("Verifying license remotely"),_.x(e,ro(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(Un,1E3,d,c);_.z(e)})};
206
+ Mo=function(a,b){a.ja=b;for(var c=_.v(a.ja),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.L[e]=d)}a.Uc("onPlayerCreated")};
207
+ Po=function(a){var b,c;return _.I(function(d){switch(d.a){case 1:if(a.Z)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.Ic(),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.Uc(_.ef).then(function(){a.a.stopForwardingEventsTo(a);
208
+ 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()}))}})};
209
+ Ro=function(a,b,c){if(a.P===_.qb)b=Qo(b,c);else if(2!==(a.a?a.a.canPlay(b[0],c):0)||a.da){a.da=!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 h={kb:e[g],confidence:e[g].canPlay(b[f],c)};if(null===a||a.confidence<h.confidence)a=h,d=f}a&&typeof d===_.k&&0<a.confidence?(_.Zh.debug("Player Factory '"+a.kb.a()+"' can play",b[d]),b=new Xh(a.kb,d)):(_.Zh.debug("No compatible Player Factory found for sources:",b),b=null)}else b=
210
+ null;if(!b)throw new _.O(_.P,7,7003,"No player factory compatible with given sources found!");c=b.kb;a=c.create();b={kb:c,player:a,sourceIndex:b.sourceIndex}}else b={kb:a.A,player:a.a,sourceIndex:0};return b};Qo=function(a,b){var c=bi(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{kb:c,player:c.create(),sourceIndex:0}};
211
+ To=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.Ph)return a.g.warn(xb),c["return"]();a.trigger(new _.Q(Oe));return _.x(c,b.Ph(),2)}return _.x(c,_.So(a),0)})};
212
+ _.Xo=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!");_.hn(vf);return _.x(f,a.release(),2)}if(3!=f.a){d=c||_.Sn(b);if(!b||0===d.length)throw new _.O(_.P,7,7003,kb);a.Fa=d;a.f=_.On([a.F,b,{source:d}]);a.Z=!1;e=Ro(a,d,a.f);_.No(a,e.player,e.kb);Uo(a,a.a);a.a&&a.a.setSourceIndex(e.sourceIndex);Vo(a);a.a&&a.a.setCdnErrorCallback(a.O);_.Wo(a,a.f);a.f.cmsd.enabled&&
213
+ (a.B=new wo(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.Uc("onContentWillLoad",a.f.source[e.sourceIndex]),3)}_.hn(uf);_.kn("player.beforeLoad",vf,uf);_.z(f)})};
214
+ _.Yo=function(a){return _.I(function(b){a.j.getMedia()||a.j.getCastElement();a.trigger(new _.Q(Oe));return _.x(b,Promise.all([a.a.load(a.f),a.h?a.h.load():Promise.resolve()]),0)})};Uo=function(a,b){try{var c=crypto.randomUUID()}catch(d){c=cm()}a.g.info("Playback session started, ID:",c);b.setPlaybackSessionId(c);a.G=c};Zo=function(a){a.G&&(a.g.info("Playback session ended, ID:",a.G),a.G=null,a.a&&a.a.setPlaybackSessionId(null))};
215
+ ap=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)}$o(a);_.z(f)})};
216
+ $o=function(a){var b=_.Ii(a.f.preferredTextLanguage).filter(function(f){return f}),c=a.f.preferForcedSubtitles,d=a.getTrackManager().pa().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().oa();e&&e.language?(e=_.so(e.language||""),b.push(e)):(e=a.getTrackManager().Ma())&&e.language&&(e=_.so(e.language||""),b.push(e));0===
217
+ 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=_.so(f);if(f=d.find(function(h){h=_.so(h.language||"");return _.to(h,g)}))return a.getTrackManager().ab(f),!0;c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles match the preferred languages: ",b);return!1})}};
218
+ _.So=function(a){var b;return _.I(function(c){if(1==c.a)return _.hn(rf),Oo(a,{configuration:a.getConfiguration(),ca:a.Ei(),drmInfo:a.getDrmInfo(),yj:Object.keys(a.L),isLive:a.isLive()}),ap(a),pi(a),_.x(c,a.Uc(_.bf),2);if(3!=c.a)return a.f.autoplay?(b=a.h?a.h.jd():!0)?_.x(c,a.play(),3):c.C(3):c.C(3);_.hn(qf);_.kn("player.afterLoad",rf,qf);_.z(c)})};_.Wo=function(a,b){var c=fi(a,b||a.f);c&&(a.h=c.create(a))};
219
+ Do=function(a){if(!a.h&&a.A&&a.a&&a.f.ads.hls.enable&&a.getTimelineCues().some(function(c){return Kk(c.schemeIdUri)})){var b=a.f.mse.sendPlaybackSessionIdHeader?a.G:null;a.h=new bm;a.h.md(a.a,a.A,b)}};Vo=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.I(function(c){return a.Bg&&a.qd?_.x(c,a.qd(b),0):c["return"]()})})};_.bp=function(a){a&&(0<=Lo.indexOf(a)||Lo.push(a))};cp=function(){this.Qc=null;this.f=[];this.h=[];this.Ea=new _.L(wd);this.a=null;this.j=!1};
220
+ dp=function(a){return[a.Qc].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});_.z(c)})};
221
+ 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 _.L("clpp.native.Metadata")};jp=function(a,b){a.j.on(b,_.Ec,function(c){c=c.track;c.kind===_.Te&&ip(a,c)})};
222
+ 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 h,l=a;g=g.value;if(Infinity===g.endTime){if(h=!l.f.has(g)){h=g.startTime;var m=h+.5;h=h<=e&&e<=m}h&&(l.f.add(g),l.m.trigger(new _.Q(_.wg,{detail:g})))}else h=g.startTime<=e&&e<=g.endTime,!h&&
223
+ l.f.has(g)?(l.f["delete"](g),l.m.trigger(new _.Q(_.xg,{detail:g}))):h&&!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),h=g.next();!h.done;h=g.next())h=h.value,h.endTime<e&&f.push(h);op(a,b,f);0<f.length&&a.g.debug("Evicted "+f.length+" old cues.");g=_.v(a.a);for(h=g.next();!h.done;h=g.next())h=h.value,h.endTime<e&&a.a["delete"](h);e=0<f.length}else e=!1;pp(a,b);f=kp(d);
224
+ var l=mp(f,a.l);g=new Set;h=!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=_.M.ra(n.customAttributes||{},m.customAttributes)||void 0),h=!0):(a.a.add(m),g.add(m))}h=0<g.size||h;lp(f);(e||h)&&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}))};
225
+ 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.Tg}),e=c.filter(function(l){return!l.Tg});c=[];e=_.v(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var g=_.v(d),h=g.next();!h.done;h=g.next())h=h.value,sp(f,h)&&(c.push(f),h.ei=f.startTime)}op(a,b,c);0<c.length&&a.g.debug("Removed "+c.length+" duplicated cues.")}};
226
+ 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.ei||a.startTime,f=b.ei||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};
227
+ vp=function(a){var b=[],c={};a=_.v(a);for(var d=a.next();!d.done;c={Jd:c.Jd},d=a.next())c.Jd=d.value,(d=b.find(function(e){return function(f){var g=e.Jd;return f.startTime===g.startTime&&f.endTime===g.endTime}}(c)))?tp(c.Jd,d):(d=up(c.Jd),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};
228
+ 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.Tg=!0})};kp=function(a){return rp(a).filter(function(b){return b.type===Jd&&!b.Tg})};rp=function(a){var b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next())b.push(c.value);return b};
229
+ 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,Oi:!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.Oi=!0)});return Array.from(b.values())};xp=function(a){a.forEach(function(b){b.Oi&&(b.endTime=b.startTime,b.startTime=0)});return a};
230
+ 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};
231
+ _.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 _.L("clpp.native.CueHandler")};
232
+ 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===_.Dn?"":null};
233
+ _.Op=function(a,b,c){return a.map(function(d){d=_.Bn(d)||"";return(d=_.Np[b][d])?d:b===_.Dn?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})};
234
+ _.Rp=function(a,b){this.name=a;this.value=b};
235
+ _.Sp=function(a,b,c,d,e,f,g,h,l,m,n,p,q,t,u,y,D){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.Ha=g;this.La=d;this.la=e;this.ga=f;this.keyInfo=(void 0===h?null:h)||null;this.be=_.M.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.me=
236
+ y?y:function(){return""};this.Sa=D};_.Tp=function(a,b,c,d,e,f,g,h,l,m,n,p,q,t,u){t=void 0===t?[]:t;_.Sp.call(this,a,b,c,d,e,f,g,void 0===h?null:h,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.sa=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:{pe:a,Ne:b,Wo:a*b}};Vp=function(){this.a=this.f=null;this.g=new _.L("clpp.drm.csl")};
237
+ 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.ea(_.Mm(c))),{delay:c.renewalPeriod,yp:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};
238
+ _.Zp=function(a){a=Yp[a];if(!a)return null;var b=_.Mj();return b.os===Dj&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.$p=function(a){this.J=a;this.f={}};
239
+ _.Xn=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:vn(d,g.videoRobustness),audioRobustness:vn(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:un(b?b.widevineDistinctiveIdentifierRequired:void 0,g.distinctiveIdentifierRequired,!1),persistentStateRequired:un(b?b.widevinePersistentStateRequired:void 0,g.persistentStateRequired,!1),
240
+ 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};
241
+ _.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=_.M.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);};
242
+ _.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()}};
243
+ _.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)};
244
+ _.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 _.L("clpp.mp4")};_.pq=function(a){for(;_.fq(a.reader)&&!a.parser.a;)a.parser.Mf(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.Mf(a.start+a.headerSize,a.reader,a.partialOkay)};_.rq=function(a){return function(b){var c=b.reader.Xa()-b.reader.getPosition();a(_.nq(b.reader,c))}};
245
+ 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.ge(a)}catch(c){}return b};_.xq=function(a){a=wq(a);var b="";a.length&&(b=(new _.wn(a)).a);return b};
246
+ yq=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.R.ea(a)),d=_.Mm(c.sinf[0]);(new _.oq).M(_.eg,_.pq).M("schi",_.pq).M("tenc",function(e){e.reader.skip(6);_.hq(e.reader)&&(e.reader.skip(1),b=_.Om(_.nq(e.reader,16)));e.parser.stop()}).parse(d)}catch(e){}return b};
247
+ zq=function(a,b,c){if(!c||!c.byteLength)throw new _.O(_.P,6,6102);var d;typeof b===_.lg?d=_.R.Vf(b,!0):d=b;a=_.R.Vf(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=_.Lm(b);a.headers[Aa]=Rc;a.body=_.R.gb("spc\x3d"+b).buffer};
248
+ _.Bq=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=Xi(_.Mm(b))};Cq=function(){};
249
+ 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!");};
250
+ Nq=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
251
+ _.Pq=function(a,b,c){b=wq(b);c=c&&c.customData?c.customData:{};b=new _.wn(Nq(b));var d=zn(b.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.R.Ef(""+a)&&(d.assetId=a,Oq.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.R.Ef(""+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")):
252
+ a=["assetId","variantId"];b.f=_.yn(d,!1,a);"/"!==b.path||b.j.includes(b.a+"/")||(b.path="");b=_.xn(b);return c.fpsContentId=b};_.Rq=function(a,b,c,d){d=void 0===d?!0:d;c=a.drm;c&&c.env.startsWith(Fa)?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)};
253
+ Sq=function(a,b,c){_.Rq(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.qm(b.uris[0]);c.a.searchParams.set(_.mf,a.toString());b.uris[0]=c.toString()};
254
+ _.Tq=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.Rq(a,b,c,!1);b.headers[Aa]=Rc;c={spc:_.Km(b.body)};if((a=a.drm)&&a.env.startsWith(Ga)&&d){a={};var e=zn((new _.wn(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=
255
+ _.R.Gd(_.yn(c,!0))};_.Uq=function(a,b){Oq.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=_.Mm(c).buffer}};_.Vq=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(Fa))Oq.warn(hb);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(Ga)){var d=new _.qm(b.uris[0]),e=d.a.pathname;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.a.pathname=e;b.uris[0]=d.toString()}};
256
+ _.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")}};
257
+ _.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};_.M.Qb(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};
258
+ 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 _.L("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};
259
+ 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};
260
+ 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 h=_.v(e.audioCapabilities),l=h.next();!l.done;l=h.next())l=l.value,l.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&
261
+ (d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.v(e.videoCapabilities),l=e.next();!l.done;l=e.next())h=l.value,h.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,h.contentType.split(";")[0])&&(d.videoCapabilities.push(h),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,_.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;};
262
+ gr=function(a){this.f=null;this.h=new WebKitMediaKeys(a);this.a=new _.wi;this.j=0;this.g=new _.L(Ad);this.g.info("Created Media Keys for "+a)};
263
+ 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");
264
+ c=_.R.Lc(c.subarray(4),!0);c=_.R.gb(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 _.om;this.l=!1;this.keyStatuses=new ar;this.g=new _.L(Ad)};jr=function(a,b){br(a.keyStatuses,b);a.dispatchEvent(new _.Q(Ce))};
265
+ kr=function(){};lr=function(){this.a=null;this.g=new _.L("clpp.drm.eme.StandardEmeManager")};mr=function(){};nr=function(){this.f=this.a=null;this.h="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.h="webkit")};
266
+ 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=[],h=[],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,
267
+ this.a)&&(h.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};
268
+ 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(_.Se,{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=
269
+ 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))}}))};
270
+ 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 _.om;this.keyStatuses=new ar};
271
+ 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.gb("LOAD_SESSION|"+c));else{var e=_.R.gb("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(h){return Promise.reject(h)}a.f=new _.om;var g=ur(a,"generateKeyRequest");try{a.j[g](a.h,d)}catch(h){if(h.name!==Ya)return a.f=null,Promise.reject(h);(new _.gj(function(){try{a.j[g](a.h,d)}catch(l){a.f.reject(l),
272
+ a.f=null}})).ha(.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.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=_.Mm(e.keys[0].k);e=_.Mm(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))};
273
+ 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()};
274
+ _.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=_.Nm(a);b=parseInt(b.byteLength,10).toString(16);b=_.Nm("12"+b+a);return new Gr(Hr,a,b)};
275
+ _.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);
276
+ e=_.tq(e);var f=_.jq(d),g=f>>>24;f&=16777215;var h=_.nq(d,16);h=_.Om(h);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",h,"contentId (base64)",n?_.Km(n):"","keyIds",m.map(function(t){return _.Om(t)}));return 0<m.length?_.Ir(_.Om(m[0])):null};
277
+ _.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};
278
+ _.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.Lc(c,!0);d=b.Fe(a,"WRMHEADER");a=d.getAttribute(Pg)||"";d=b.Ka(d,"DATA");var e=b.Ka(d,"LA_URL");b=e?b.ua(e):"";e=_.Lr;var f=e.Ka(d,"KID");if(f)if(f=e.ua(f)){var g=e.Ka(d,sa);e=g?e.ua(g):null;e={value:f,mg: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.mg;e=_.Mm(void 0===e.value?"":e.value);
279
+ e=_.Or(e);e=_.Om(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.Ka(a,"PROTECTINFO");if(!a)return null;var c=b.Ka(a,"KID");if(!c)return null;b=c.getAttribute("VALUE");if(!b)return null;a=c.getAttribute(sa);c=c.getAttribute("ALGID");return{value:b,mg:a,kk:c}};
280
+ Nr=function(a){var b=_.Lr;a=b.Ka(a,"PROTECTINFO");if(!a)return null;a=b.Ka(a,"KIDS");if(!a)return null;a=b.$(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(sa);d=d.getAttribute("ALGID");b.push({value:c,mg:e,kk:d})}}return b.length?b:null};Rr=function(a){this.f=[];this.h=[];this.a=[];8<=a.byteLength&&(new _.oq).ba("pssh",this.j.bind(this)).parse(a.buffer);0===this.a.length&&_.Qh("No pssh box found!")};
281
+ _.Vr=function(a,b){var c=this;this.D=a;this.pc=b;this.K=new Set;this.F=this.J=this.l=null;this.da=!1;this.a=null;this.L=Sr;this.B=new _.wi;this.P=new Vp;this.h=new Map;this.O=[];this.I=new _.om;this.Kb=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.ka=new Map;this.fa=new _.gj(function(){return Tr(c)});this.j=!1;this.Fa=new _.om;this.H=!1;this.ja=[];this.Ra=!1;this.Z=0;this.g=new _.L("clpp.drm.DrmEngine");this.Aa=(new _.gj(function(){Ur(c)})).Ib(1);this.I["catch"](function(){});
282
+ this.A=this.G=!1;this.T=null};
283
+ 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.fa.stop();a.fa=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.pd&&e.pd.stop();a.h.clear();return _.x(g,Promise.all(b.map(function(h){return Promise.resolve().then(function(){var l;return _.I(function(m){if(1==m.a)return a.g.debug("Closing session",h.sessionId),_.F(m,2),_.x(m,Wr(h),4);
284
+ if(2!=m.a)return _.G(m,0);l=_.H(m);a.g.warn("Error while closing session",l);_.z(m)})})})),2);case 2:if(!a.F){g.C(3);break}_.F(g,4);return _.x(g,a.l.Vd(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.F=null;case 3:a.l=null,a.a=null,a.K.clear(),a.J=null,a.O=[],a.f=null,a.w=null,a.D=null,a.Z=0,a.T=null,_.z(g)}})};
285
+ _.$r=function(a,b,c){c=void 0===c?[]:c;a.L=Yr;a.O=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)};
286
+ fs=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.M.xh(a.f.Qa);as(b,d)}var e=a.f.Qa[_.Id];d=b.some(function(g){return g.drmInfos.some(function(h){return h.keySystem===_.Id})});if(!1!==a.f.Bp&&_.qj()&&!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:[],
287
+ 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.Qa);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.Qa);d=hs(a,b);if(!d.size)return a.da=!0,Promise.resolve();_.hn($d);d=_.is(a,d);return(c?d:d["catch"](function(){})).then(function(){_.hn(Zd);_.kn("DRM queryMediaKeys_()",$d,Zd)})};
288
+ 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.Qa[d.keySystem]||(a.f.Qa[d.keySystem]={licenseUrl:""})};
289
+ js=function(a){var b;return _.I(function(c){switch(c.a){case 1:if(a.l.uf())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.Vd(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));_.z(c)}})};
290
+ 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));_.z(c)})};
291
+ _.rs=function(a,b){if(!a.J)return xi(a.B,b,function(){a.w(new _.O(_.P,6,6010))}),Promise.resolve();a.F=b;a.l.jf(b);a.B.one(a.F,_.pf,function(){return ms(a)});a.B.on(a.F,_.ah,function(e){var f=a.G;a.G=!a.A;!f&&a.G&&(a.g.info("Waiting for DRM license key delivery"),a.D.onEvent(e))});var c=a.a.initData.find(function(e){return 0<e.initData.length}),d=Promise.resolve();if(c||a.l.Ud()!==ns||a.O.length)d=js(a);c=Promise.resolve();_.mj()&&38===_.nj().major||(a.a&&a.a.keySystem!==_.jf&&!a.a.serverCertificate&&
292
+ (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.F,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.Z&&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.Z++,_.rs(a,b);1<=a.Z&&a.g.info("Could not get valid widevine server certificate. Giving up");
293
+ 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});})};
294
+ os=function(a){var b=a.keySystem(),c=a.f.Qa[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.D.getConfiguration();return ss(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.$k([d],a.f.attemptParameters);f.type=3;f.licenseRequestType=pd;g&&f.requestModifiers.push(function(l){return g(e,l)});h&&f.responseModifiers.push(function(l){return h(e,l)});a.g.debug("Fetching certificate");return a.D.Db.fetch(f).U}).then(function(f){a.a.serverCertificate=
295
+ _.Qi(f.data)})["catch"](function(f){var g=f.data.headers;g=Object.assign({message:Oa,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.D.td();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.nf.length;c++)if(_.Pm(a,b.nf[c]))return!0;return!1};
296
+ _.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,_.Pm(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+
297
+ ".")),ts(d.initData,g)||(g.nf.push(d.initData),d.keyId&&!g.ub.includes(d.keyId)&&g.ub.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.O);for(d=c.next();!d.done;d=c.next())_.ws(a,d.value);b.length||a.O.length||(a.A||a.g.info(Ea),a.A=!0,a.G=!1,a.I.resolve());return a.I};
298
+ _.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.F.webkitCurrentPlaybackTargetIsWireless||
299
+ _.lj(2)||a.keySystem().startsWith(_.Id)||!_.us(a,d,c,!0))&&vs(a,d,null,b,c)}};
300
+ _.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(_.Pm(c,g.initData))return b?g.ub.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.ub.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]"),
301
+ !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};
302
+ 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={Zf:d.Zf,Kd:d.Kd,eg:d.eg,Ld:d.Ld},c=e.next()){c=c.value;g=c.audio;var h=c.video;d.Zf=g?_.ys(g):"";d.Kd=null;g&&"ac-3"===g.codecs.toLowerCase()&&_.lj()&&(d.Kd=
303
+ _.ys(g,_.me));d.eg=h?_.ys(h):"";d.Ld=null;h&&"ac-3"===h.codecs.toLowerCase()&&_.lj()&&(d.Ld=_.ys(h,_.me));var l={},m=_.v(c.drmInfos);for(c=m.next();!c.done;l={hb:l.hb},c=m.next())c=c.value,l.hb=f.get(c.keySystem),l.hb.drmInfos.push(c),c.initData&&c.initData.length&&(l.hb.initDataTypes=_.ph(new Set(c.initData.map(function(n){return n.initDataType}))).concat()),c.distinctiveIdentifierRequired&&(l.hb.distinctiveIdentifier=_.Sf),c.persistentStateRequired&&(l.hb.persistentState=_.Sf),g&&_.Ii(c.audioRobustness).forEach(function(n,
304
+ p){return function(q){var t={robustness:q||"",contentType:n.Zf};p.hb.audioCapabilities.find(function(u){return u.robustness===t.robustness&&u.contentType===t.contentType})||p.hb.audioCapabilities.push(t);n.Kd&&p.hb.audioCapabilities.push({robustness:q||"",contentType:n.Kd})}}(d,l)),h&&_.Ii(c.videoRobustness).forEach(function(n,p){return function(q){var t={robustness:q||"",contentType:n.eg};p.hb.videoCapabilities.find(function(u){return u.robustness===t.robustness&&u.contentType===t.contentType})||
305
+ p.hb.videoCapabilities.push(t);n.Ld&&p.hb.videoCapabilities.push({robustness:q||"",contentType:n.Ld})}}(d,l))}return f};_.ys=function(a,b){var c=_.Fn(a.mimeType,b||a.codecs);if(_.rn(c,a.type)){var d=a.type,e=_.rn(c,d);e&&(e=e(),c=e.convertCodecs(d,c),e.destroy())}return c};
306
+ _.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===Fj&&_.kj("Chrome")&&!_.jj())&&!a.f.Qa[q].useLegacySystem)return p.label=Ld,a.l.Zb(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.Zb(q,[p])});zs(p)}if(q===_.Md&&a.f.widevineVersion!==_.Md){var t=a.f.widevineVersion;
307
+ 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.Zb(t,[u])["catch"](function(){return a.l.Zb(q,[p])})}return a.l.Zb(q,[p])["catch"](function(y){a:{if(q===_.Md&&As(p)){var D=_.Mj();if(As(p)&&D.os===Dj&&D.browser===rd){a.g.warn("requestMediaKeySystemAccess() failed",y);a.g.warn("Will try to recover by removing the robustness attribute of videoCapabilities and audioCapabilities.");
308
+ zs(p);y=a.l.Zb(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.pc));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 _.om,g=_.Mj(),h=a.f.preferredDrmSystem;if(!h)if(e=_.Mj(),e.os===Fj&&10<=e.osVersion.major&&"edge"===e.browser)h=_.Kd;else if("safari"===e.browser)h=
309
+ _.Id;else if(e.browser===rd||"firefox"===e.browser)h=_.Md;h&&(e=b.get(h))&&(c(!0,e,h),c(!1,e,h));e={};for(var l=_.v([!0,!1]),m=l.next();!m.done;e={cg:e.cg},m=l.next())e.cg=m.value,b.forEach(function(n){return function(p,q){q!==h&&c(n.cg,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||
310
+ [],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=[],D=[];Cs(p.drmInfos,t,u,y,D);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],
311
+ 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:D,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.da=
312
+ !0)})["catch"](function(n){if(!a.j){a.a=null;a.K.clear();if(n instanceof _.O)throw n;throw new _.O(_.P,6,6002,{browserError:n.message});}});d.reject();return f};
313
+ bs=function(a){a=_.M.xh(a.f.Qa[_.jf]||{});if(0===a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.Nm(f),h=_.Nm(e);g={kty:"oct",kid:_.Lm(g,!1),k:_.Lm(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.R.gb(d),initDataType:"keyids"}];return{keySystem:_.jf,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
315
314
  initData:d,keyIds:[],periodId:null}};
316
- _.ys=function(a,b){try{a.g.debug("Attempting to load an offline session",b);var c=a.J.createSession(_.ff)}catch(f){var d=new _.N(_.O,6,6005,{browserError:f.message});a.w(d);return Promise.reject(d)}a.B.on(c,_.Le,a.cj.bind(a));a.B.on(c,we,a.Yi.bind(a));var e={initData:null,loaded:!1,yg:Infinity,Ac:null,ob:new _.lm,periodId:null,kf:[],keyId:null,sb:[],initDataType:null,Hc:null,sessionContext:{ldlDelay:0,customData:{}}};e.ob["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 _.N(_.O,6,6013)),null;e.loaded=!0;Fs(a)&&(a.A||a.g.info(Ca),a.A=!0,a.G=!1,a.I.resolve());return c},function(f){a.j||(a.h["delete"](c),a.w(new _.N(_.O,6,6005,{browserError:f.message})))})};Gs=function(a,b,c,d){if(!b&&c!==_.ag)return!1;d=b||Aq(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.sb.includes(b)||c===_.ag&&(e.keyId||Aq(e.initData))===d)return!0;return!1};
318
- xs=function(a,b,c,d,e,f,g){f=void 0===f?null:f;g=void 0===g?!1:g;var h,l,m,n,p,q,t,u,y,B,A,C,E,D,J,P,U,V,sa,Da,wa;_.I(function(Ea){switch(Ea.a){case 1:if(!e.length)return a.g.warn("Empty init data"),Ea["return"]();h=b;if(!h)try{h=Hs(a,d,e,f)}catch(Ma){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:Ma,initDataType:d,
319
- initData:e}),a.f.ignoreUnrecognizedInitData)return Ea["return"]()}if(g){Ea.C(2);break}if(!Gs(a,h,d,e)){Ea.C(2);break}l=!0;if("skd"!==d||a.f.enableSessionCacheForSkd){Ea.C(4);break}m=_.v(a.h.keys());n=m.next();case 5:if(n.done){Ea.C(4);break}p=n.value;q=a.h.get(p);if(!h||q.keyId!==h){Ea.C(6);break}a.g.warn("Close and re-open session for "+h);_.F(Ea,9);return _.x(Ea,p.close(),11);case 11:_.G(Ea,10);break;case 9:t=_.H(Ea),a.g.warn("Unable to close session",t);case 10:l=!1;case 6:n=m.next();Ea.C(5);break;
320
- case 4:if(l)return a.g.warn("Skip creating a new session for "+h),Ea["return"]();case 2:try{y=a.H?_.ff:mg,u=a.J.createSession(y),a.F.onEvent(new _.Q($d,{keySystem:a.keySystem()})),a.g.info("Created new "+y+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(Ma){return a.w(new _.N(_.O,6,6005,{browserError:Ma.message})),Ea["return"]()}a.B.on(u,_.Le,a.cj.bind(a));a.B.on(u,we,a.Yi.bind(a));B={Hc:f,kf:[],initData:e,initDataType:d,keyId:h,sb:h?[h]:[],loaded:!1,yg:Infinity,periodId:c,Ac:null,
321
- ob:new _.lm,sessionContext:{ldlDelay:0,customData:{}}};B.ob["catch"](function(){});f&&(A=a.h.get(f),B.sessionContext=A.sessionContext);a.h.set(u,B);h&&!a.o.get(h)&&a.o.set(h,fg);if(e)for(C=0;C<a.a.initData.length;C++)E=a.a.initData[C],E.keyId&&!B.sb.includes(E.keyId)&&_.Qm(E.initData,e)&&(B.keyId||(B.keyId=E.keyId),B.sb.push(E.keyId),a.o.get(E.keyId)||a.o.set(E.keyId,fg));D=_.M;J=D.Sb;P=a.F.getConfiguration();U=a.keySystem();V=a.f.Pa[U];Da=(sa=V.modifiers)&&sa.transformInitData;J(Da)||(Da=Is);try{e=
322
- Da({playerConfig:P,initData:e,initDataType:d,drmInfo:a.a,drmSystemConfig:V,sessionContext:B.sessionContext,emeApi:a.l.Ud()})}catch(Ma){return wa=Ma,Ma instanceof _.N||(wa=new _.N(_.O,6,6016,Ma)),B.ob&&B.ob.reject(Ma),a.w(wa),Ea["return"]()}a.g.info("Generate License Request for key ID: '"+h+"'");u.generateRequest(d,e.buffer)["catch"](function(Ma){if(!a.j){var xb=null;Ma.errorCode&&Ma.errorCode.systemCode&&(xb=Ma.errorCode.systemCode,0>xb&&(xb+=Math.pow(2,32)),xb="0x"+xb.toString(16));a.w(new _.N(_.O,
323
- 6,6006,{browserError:Ma.message,error:Ma,extended:xb},Ma))}});_.z(Ea)}})};
324
- Hs=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.Pa[f];f=a.F.getConfiguration();g=g&&g.modifiers&&g.modifiers.extractContentId;_.M.Sb(g)||(g=Js);try{var h={ldlDelay:0,customData:{}};e&&(h=a.h.get(e).sessionContext);var l=g(f,c,h);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===_.ag)return Aq(c)||"";if(b===_.gd){m=a.keySystem();try{if(m.match(/^com\.widevine\.alpha/)){var n=
325
- _.Lr(c);if(n)return n.a}else if(Ks(m)){e=new _.gq(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);f=_.lq(e);var p=_.lq(e);g=_.vq(p);var q=_.lq(e);c=q>>>24;l=q&16777215;h=_.pq(e,16);var t=_.Pm(h);if(0<c){var u=_.lq(e);e.skip(16*u)}var y=_.lq(e),B=_.pq(e,y),A=_.Sr(B);_.Rh("Parsed PR PSSH Box","size",f,"name",g,Kg,c,"flags",l,"size",y,"systemId",t,"keyId",A.a);if(A)return A.a}}catch(C){throw a.g.warn("Unable to extract Key ID from PSSH data.",{error:C,keySystem:m}),C;}}return""};
326
- Js=function(a,b){var c=_.zq(b);_.Rh("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
- Is=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===Ls){a=_.M.Sb;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=Js);a="";try{a=e(b,c,f)}catch(h){throw new _.N(_.O,6,6103);}if(!a.length)throw new _.N(_.O,6,6101,"Content ID is an empty string");c=Bq(c,a,d)}return c};
328
- Rs=function(a,b){var c,d,e,f,g,h,l,m,n,p,q,t,u,y,B,A,C,E;return _.I(function(D){switch(D.a){case 1:c=b.target;d=a.h.get(c);if(!d)return a.g.error("Session metadata not found for "+c.sessionId+"."),D["return"]();e=a.a.licenseServerUri;if(!Ms(a,b)){D.C(2);break}return _.x(D,Ns(a,e,b,c,d),3);case 3:return D["return"]();case 2:f=a.Jb;if(!(0<f)){D.C(4);break}a.g.info("Delaying license request by "+f+" s.");return _.x(D,fj(f),5);case 5:if(a.j)return D["return"]();case 4:g=a.keySystem();h=a.f.Pa[g];"individualization-request"===
329
- b.messageType&&h&&h.individualizationServer&&(e=h.individualizationServer);l=_.Xk([e],a.f.attemptParameters);l.type=3;l.body=b.message;l.method=_.qb;l.licenseRequestType=b.messageType===ze&&d.Hc?ye:b.messageType;l.sessionId=c.sessionId;if(l.licenseRequestType===ye)a.F.onEvent(new _.Q(Zd));Ks(a.a.keySystem)&&Os(a,l);Yp(a.R,l);m=String(Math.floor(b.timeStamp));return _.x(D,Ps(a,l,d,m,e,c.sessionId,b.messageType,f),6);case 6:n=D.f;if(!n)return D["return"]();p=Zp(a.R,n);return _.x(D,Qs(a,c,n.data,d,m),
330
- 7);case 7:q=D.f;if(!q)return D["return"]();t=zs(a);u=p?Date.now()+1E3*p.delay:Number.NaN;a.F.onEvent(new _.Q(_.be,{keySystem:g,expirationTime:t,expectedRenewalTime:u}));d.Ac&&d.Ac.resolve();d.Hc&&(y=d.Hc,a.g.info("Closing expired session '"+y.sessionId+"'"),Yr(y)["catch"](function(){a.g.warn("Unable to close expired session in time")}),(B=a.h.get(d.Hc))&&B.pd&&B.pd.stop(),a.h["delete"](d.Hc),d.Hc=null);A=new _.ej(function(){a.j||(d.loaded=!0,d.ob&&d.ob.resolve(),Fs(a)&&(a.A||a.g.info(Ca),a.A=!0,a.G=
331
- !1,a.I.resolve()))});A.ha(5);null!==d.initData&&(0<d.sessionContext.ldlDelay||p&&(_.R.startsWith(g,_.Cd)||_.R.startsWith(g,_.Ed)))&&(C=new _.ej(function(){!a.j&&a.R&&(a.g.info("Updating CSL Sessions"),Ks(g)?xs(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):g.startsWith(_.Cd)&&c.update(_.R.eb("renew")))}),d.pd=C,E=p?p.delay:d.sessionContext.ldlDelay,C.ha(E));_.z(D)}})};
332
- Ns=function(a,b,c,d,e){var f,g,h;return _.I(function(l){if(1==l.a)return f=_.Xk([b],a.f.attemptParameters),f.type=3,f.body=c.message,f.method=_.qb,f.licenseRequestType=jd,f.sessionId=d.sessionId,_.x(l,Ss(a,f,e,b,d.sessionId,c.messageType),2);g=l.f;if(!g)return l["return"]();h=String(Math.floor(c.timeStamp));return _.x(l,Qs(a,d,g.data,e,h),0)})};Ms=function(a,b){return!!a.keySystem().match(/^com\.widevine\.alpha/)&&b.message&&2===b.message.byteLength};
333
- Ps=function(a,b,c,d,e,f,g,h){var l,m,n,p,q,t,u,y,B,A,C,E;return _.I(function(D){switch(D.a){case 1:return a.g.info("License request for SID:'"+(f+"'/KID:'"+c.keyId+"' from msg '")+(g+"'.")),_.x(D,Ts(a,b,c.sessionContext),2);case 2:return a.g.debug("Sending DRM license request to",e,b),a.F.onEvent(new _.Q(Yd,{delay:h})),l=Date.now(),_.jn(Rd+d+ha),m=null,_.F(D,3),_.x(D,a.F.Cb.fetch(b).T,5);case 5:m=D.f;_.G(D,4);break;case 3:n=_.H(D);if(a.j)return D["return"](null);p=n;q=p.data.headers;t=$q(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 _.N(_.O,6,6007,u,p);Us(a,y,c);return D["return"](null);case 4:_.jn(Rd+d+".end");_.ln(Rd+d,Rd+d+ha,Rd+d+".end");B=Date.now()-l;if(A=ar(m.headers))a.Jb=A.delay||0;C="";A&&A.requestId&&(C=" RID:"+A.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?D["return"](null):D["return"](m)}})};
335
- Ss=function(a,b,c,d,e,f){var g,h,l,m,n,p,q,t,u,y,B,A;return _.I(function(C){switch(C.a){case 1:return a.g.info("WV Server certificate request for SID:'"+(e+" from msg '"+f+"'.")),_.x(C,Ts(a,b,c.sessionContext),2);case 2:return a.g.debug("Sending Widevine certificate request to",d,b),g=Date.now(),h=null,_.F(C,3),_.x(C,a.F.Cb.fetch(b).T,5);case 5:h=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=$q(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 _.N(_.O,6,6100,q,m);Us(a,t,c);return C["return"](null);case 4:return u=Date.now()-g,y=ar(h.headers),B="",y&&y.requestId&&(B=" RID:"+y.requestId),A=h.data.byteLength,a.g.info("WV Server certificate response for SID:'"+(e+"' ")+(A+" bytes in ")+(u+"ms"+B)),a.j?C["return"](null):C["return"](h)}})};
337
- Qs=function(a,b,c,d,e){var f,g;return _.I(function(h){switch(h.a){case 1:return _.jn(Wd+e+ha),_.F(h,2),_.x(h,b.update(c),4);case 4:_.G(h,3);break;case 2:f=_.H(h);if(a.j)return h["return"](!1);if(f===Fb)return a.g.info("Ignore update for closed sessions"),h["return"](!1);g=new _.N(_.O,6,6008,{browserError:f.message});Us(a,g,d);return h["return"](!1);case 3:return _.jn(Wd+e+".end"),_.ln(Wd+e,Wd+e+ha,Wd+e+".end"),a.j?h["return"](!1):h["return"](!0)}})};
338
- Us=function(a,b,c){a.j||(a.w(b),c.Ac&&c.Ac.reject(b),c.ob&&c.ob.reject(b))};
339
- Os=function(a,b){var c=_.R.Jc(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(_.Jg).textContent;b.body=_.Nm(c.querySelector("Challenge").textContent).buffer}else a.g.debug("PlayReady request is already unwrapped."),b.headers[za]="text/xml; charset\x3dutf-8"};
340
- Ts=function(a,b,c){var d,e,f,g,h,l;return _.I(function(m){if(1==m.a)return d=a.F.getConfiguration(),_.x(m,us(a,d),2);e=a.keySystem();h=(g=(f=a.f.Pa[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;h?b.requestModifiers.push(function(n){return h(d,n,c)}):e.startsWith(_.Cd)&&b.requestModifiers.push(function(n){return _.Cq(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Cd)&&b.responseModifiers.push(function(n){return _.Dq(n)});_.z(m)})};
341
- Vr=function(a){var b=a.o,c=a.ka;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 _.N(_.O,6,6014));a.F.Cg(_.M.ph(c));a.A||a.g.info(Ca);a.A=!0;a.G=!1};os=function(a){var b;return _.I(function(c){if(1==c.a)return _.jn(Vd),b=a.ja.map(function(d){return Rs(a,d)}),a.gb=!0,a.ja=[],_.x(c,Promise.all(b),2);_.jn(Ud);_.ln("drm.onPlay",Vd,Ud);_.z(c)})};Ks=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};
342
- _.Ds=function(a){return Ks(a)?_.Ed:a};_.Ws=function(a,b){return a.length&&b.length?0<_.Vs(a,b).length:!0};
343
- _.Vs=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={Ld:e.Ld},f++)if(a[d].keySystem===b[f].keySystem&&a[d].periodId===b[f].periodId){var g=a[d];f=b[f];var h=[];h=h.concat(g.initData||[]);h=h.concat(f.initData||[]);e.Ld=_.kh(g.keyIds||[]).concat();f.keyIds&&f.keyIds.length&&f.keyIds.forEach(function(l){return function(m){l.Ld.includes(m)||l.Ld.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:h,keyIds:e.Ld,periodId:g.periodId});break}return c};
345
- Wr=function(a){a.h.forEach(function(b,c){var d=b.yg,e=c.expiration;isNaN(e)&&(e=Infinity);e!==d&&(a.F.Bg(c.sessionId,e),b.yg=e)})};Fs=function(a){a=a.h.values();return _.Ki(a,function(b){return b.loaded})};
346
- cs=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};Bs=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
- Cs=function(a){return(a.audioCapabilities||[]).some(Xs)||(a.videoCapabilities||[]).some(Xs)};Xs=function(a){return null!=a.robustness&&""!==a.robustness};
348
- Es=function(a,b,c,d,e){var f={};a=_.v(a);for(var g=a.next();!g.done;f={Ia:f.Ia},g=a.next()){f.Ia=g.value;b.includes(f.Ia.licenseServerUri)||b.push(f.Ia.licenseServerUri);f.Ia.serverCertificate&&(c.some(function(m){return function(n){return _.Qm(n,m.Ia.serverCertificate)}}(f))||c.push(f.Ia.serverCertificate));if(f.Ia.initData){var h=_.v(f.Ia.initData);for(g=h.next();!g.done;g=h.next())g.value.periodId=f.Ia.periodId;h={};var l=_.v(f.Ia.initData);for(g=l.next();!g.done;h={Qe:h.Qe},g=l.next())h.Qe=g.value,
349
- d.some(function(m){return function(n){var p=m.Qe;return n.keyId&&n.keyId===p.keyId&&n.periodId===p.periodId?!0:!1}}(h))||d.push(h.Qe)}if(f.Ia.keyIds)for(g=0;g<f.Ia.keyIds.length;++g)e.includes(f.Ia.keyIds[g])||e.push(f.Ia.keyIds[g])}};
350
- is=function(a,b,c){var d=_.Ds(b.keySystem);c=c[d];d===_.bf&&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
- gs=function(a,b){var c=b[_.Ds(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
- Yr=function(a){var b,c;return _.I(function(d){if(1==d.a)return b=new Promise(function(e){(new _.ej(e)).ha(1)}),_.x(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.Mh("Timeout waiting for session close");_.z(d)})};_.Ys=function(a){this.f=a;this.a=0};_.Zs=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
- _.$s=function(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new _.N(_.O,4,4016,{invalidTag:b});var d=c[1],e=c[2];c=[];var f;if(e){e=new _.Ys(e);var g;(g=_.Zs(e,/^([^,=]+)(?:,|$)/g))&&g[1]&&(f=g[1].trim());for(var h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.Zs(e,h);)c.push(new _.Tp(g[1],g[2]||g[3]||""))}return new _.Rp(a,d,c,f)};
354
- _.at=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=[]};_.bt=function(a){return a&&a!==_.Cg?a:null};
355
- ft=function(a){if(!a)throw new _.N(_.O,3,3101,Wa+a);if(!_.M.ia(a))throw new _.N(_.O,3,3101,Wa+a+". Track type must be a string!");switch(a.toLowerCase()){case _.ct:return _.ct;case _.X:return _.X;case _.dt:return _.dt;case et:return et}throw new _.N(_.O,3,3101,"Unknown track type: "+a+".");};
356
- ht=function(a,b){a=ft(a);var c=_.bt(b.kind),d=b.id;d||(d=String(_.gt++));d=new _.at(d,c===_.Me?et:a);d.kind=c;d.label=_.bt(b.label);d.language=_.bt(b.language);d.originalLanguage=b.originalLanguage||d.language;return d};it=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};_.jt=function(a,b){this.track=b;this.id=a;this.originalId=this.codec=this.Pd=this.bandwidth=this.height=this.width=null;this.a=!1};
357
- kt=function(a){this.f=a;this.g=new _.L("clpp.native.hls.HlsMetadataParser");this.a=tn(this.h.bind(this),function(b,c){return b[0]===c[0]&&b[1].enableHlsVideoTrackInfo===c[1].enableHlsVideoTrackInfo&&b[1].enableMetadata===c[1].enableMetadata})};
358
- nt=function(a,b,c){var d,e,f,g,h;return _.I(function(l){if(1==l.a)return _.x(l,lt(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.at("dummy",_.dt);h=f.map(function(m,n){var p=new _.jt("R"+n,g);p.bandwidth=m.bandwidth;p.Pd=m.Pd;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});mt(h);return l["return"]({renditions:h,mimeType:e||void 0})})};
359
- pt=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return ot(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};
360
- ot=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.$s(0,a);a=b(_.Kb);a=null!=a?{AUDIO:_.X,VIDEO:_.dt,SUBTITLES:_.ct}[a]:void 0;return{type:a,groupId:b(_.Qa),name:b(_.fb),language:b(_.Za),tp:b("AUTOSELECT"),"default":b("DEFAULT"),Ep:b("FORCED"),Dh:b("CHARACTERISTICS"),uri:b(_.Mb)}};mt=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.");};
361
- qt=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.Xk(b),_.x(e,an(a.f,c),2);d=e.f;return e["return"](d)})};lt=function(a,b,c){var d,e,f,g;return _.I(function(h){if(1==h.a)return d=rt(b),e=st(b,c),f=d[0]?d[0].codec:null,_.x(h,tt(a,e,f),2);g=h.f;return h["return"]({mimeType:g,renditions:d})})};tt=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return b&&c?_.x(f,qt(a,b),2):f["return"](null);d=f.f;e=[ut(d,b),vt(d,b)].filter(Boolean);return f["return"](_.Qp(e,_.Ng,c))})};
362
- rt=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.$s(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,_.ta);c=_.Op(_.Ng,c?c.split(","):[]);return{bandwidth:e,Pd:f,codec:c,width:b,height:d,mimeType:null}})};
363
- st=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?_.Cn(c,b):null};ut=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?_.Cn(c,b):null};vt=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.T(_.$s(0,c),_.Mb))?_.Cn(c,b):null:null};
364
- _.xt=function(a,b,c){for(var d=_.v(_.wt),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.yt=function(a){a=_.wt.indexOf(a);0<=a&&_.wt.splice(a,1)};_.zt=function(){};
365
- At=function(){this.g=new _.L("clpp.native.TrackManager");this.m=null;this.f=new _.si;this.h=[];this.B=0;this.o={};this.D=[];this.a=new Map;this.w=null;this.l=new Map;this.A=!0;this.J=this.Eg.bind(this,_.ct);this.L=this.Gg.bind(this,_.ct);this.K=this.Fg.bind(this,_.ct);this.O=this.Eg.bind(this,_.dt);this.U=this.Gg.bind(this,_.dt);this.R=this.Fg.bind(this,_.dt);this.G=this.Eg.bind(this,_.X);this.I=this.Gg.bind(this,_.X);this.H=this.Fg.bind(this,_.X);this.j=null};
366
- Ct=function(a,b){var c,d,e,f,g,h,l,m,n,p,q;return _.I(function(t){if(1==t.a){c=a.m.getConfiguration();d=_.xt(c,b.mimeType,_.og);if(!d)return a.g.warn("Track MIME type is not supported",b),t["return"]();e=_.Xk(b.url);f=b.mimeType===_.Ic?"tt":"c";g={objectType:f};h=_.dn(a.m.getNetworkEngine(),e,g);return _.x(t,h.T,2)}(l=t.f)&&l.data&&(m="External_"+a.B++,a.o[m]=b,n=d.a(_.Ni(l.data)),p=URL.createObjectURL(new Blob([n])),q={url:p,kind:b.kind,language:b.language,label:b.label,mimeType:_.og},Bt(a,q,m));
367
- _.z(t)})};Et=function(a,b,c){return Dt(a)&&b===_.dt&&!!c.enableHlsVideoTrackInfo};Ft=function(a,b,c){return Dt(a)&&(b===_.X||b===_.ct)&&!!c.enableMetadata};Dt=function(a){a=a.m.getLoadedSource();return!(!a||a.type!==_.Vl&&!a.url.endsWith(".m3u8"))&&_.oj()};
368
- Gt=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}));_.z(f)})};
369
- Ht=function(a,b,c){var d,e,f,g;return _.I(function(h){if(1==h.a)return(d=a.m.getLoadedSource())&&a.j?_.x(h,a.j.a(d.url,c),2):h["return"]();e=h.f;e.Rc&&(f=b.type+":"+b.label,(g=e.Rc.get(f))&&g.Dh&&(b.accessibility=g.Dh.split(",").map(function(l){return l.trim()}).map(function(l){return{value:l,type:b.type,protocol:"HLS"}})));_.z(h)})};
370
- Bt=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.D.push(e)}}};It=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 _.dt:return c.videoTracks;case _.ct:return c.textTracks;default:return null}};
371
- Jt=function(a,b){var c=It(a,b);c&&(c=Array.from(c),b===_.ct&&(c=c.filter(function(d){return d.kind!==_.Me})));return c};Kt=function(a,b){return a.h.filter(function(c){return c.type===b})};Lt=function(a,b){var c=a.a.get(b)||null;return c&&c.renditions[0]};Mt=function(a,b){var c=a.l.get(b);return c&&c.renditions[0]};
372
- Ot=function(a,b,c){var d=Jt(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 _.ct:var g="mode";e=_.Yf;f=_.Pd;break;case _.X:g="enabled";break;case _.dt:g="selected"}if(g){d=_.v(d);for(var h=d.next();!h.done;h=d.next())h=h.value,h[g]=Nt(c,h,c.type)?e:
373
- f}}}else if(a.g.debug("Disable track type "+b),a.a.get(b)&&d&&b===_.ct){g=_.v(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.Pd;a.a.set(b,null)}b===_.X?a.m.trigger(new _.Q(_.Vc)):b===_.ct&&a.m.trigger(new _.Q(_.qg))};Pt=function(a){return a.enabled||a.selected||a.mode===_.Yf||a.mode===_.qe};
374
- Qt=function(a,b,c){c=_.Ei(c).filter(function(e){return e});a.g.info("Find preferred tracks for",b,c);var d=Kt(a,b);c.some(function(e){var f=_.uo(e);return(e=d.find(function(g){g=_.uo(g.language||"");return _.vo(f,g)}))?(a.g.info("Will select track with id",e.id),Ot(a,b,e),!0):!1})};Rt=function(a){(a=a.m.getTextDisplayer())&&a.remove(0,Infinity)};
375
- Nt=function(a,b,c){return a.type!==c?!1:void 0!==b.id&&null!==b.id&&""!==b.id?a.id===b.id:_.M.ta(a,{kind:_.bt(b.kind),language:_.bt(b.language),label:_.bt(b.label)},["kind","language","label"])};Tt=function(a){return a.name===nb&&St.some(function(b){return a.message.startsWith(b)})};
376
- _.Ut=function(a){_.zi.call(this);this.log=new _.L(a);this.configuration=this.Ja=_.On();this.ca=this.D=null;this.xe=this.Yg=!1;this.kh=new _.L("clpp.video.events");this.Sd=null;this.tf=-1;this.Oj=this.qo.bind(this);this.Qd=new _.Zm;this.setNetworkEngine(this.Qd);this.O=new _.si;this.Pg=this.dd=this.qd=this.R=null};_.Xt=function(a,b){a&&b&&(_.Vt.set(a,b),_.Wt.info("Registered TextDisplayerFactory: '"+a+"'"))};
377
- _.Yt=function(a,b){var c=b.find(function(d){return(d=_.Vt.get(d))?d.a(a):!1});if(null==c)return _.Wt.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;_.Wt.info("Chosen the text displayer: "+c);return _.Vt.get(c)};Zt=function(){this.a=null;this.f=[]};_.$t=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})}};
378
- au=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};bu=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};cu=function(){this.h=this.f=this.j=null;this.a=[]};du=function(a){return a.a.map(function(b){return _.M.ib(b)})};
379
- _.eu=function(){this.h=this.w=this.B=this.D=this.l=this.o=this.j=this.A=NaN;this.a=new Zt;this.f=new cu};_.fu=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:[]}};
380
- iu=function(a){this.g=new _.L("clpp.StateManager");this.m=a;this.a=new _.si;this.f=_.gu;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.O=_.oj();this.D=!1;this.J=Date.now();hu(this)};ju=function(a,b){return Object.keys(b)[a]};
381
- ku=function(a,b){var c={type:_.eg};b===_.$c||b===_.Zc?(c.reason=a.w,b===_.$c?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};
382
- ou=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: "+ju(a.w-1,_.lu)),c=ku(a,_.$c),mu(a,_.$c,c)):d&&(a.B=a.o-a.L,a.g.info("Buffering finished. Reason: "+ju(a.w-1,_.lu)+". Buffering time: "+a.B+" ms"),c=ku(a,_.Zc),mu(a,_.Zc,c));c=ju(a.A,_.nu);d=ju(a.f,_.nu);a.g.info(_.ub+c+" -\x3e "+d);mu(a,_.eg,ku(a,""));return!0};
383
- mu=function(a,b,c){a.m&&a.m.trigger(new _.Q(b,{detail:c}))};
384
- pu=function(a,b){if(a.f===_.Ko)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,ou(a,5));else if(b!==_.vg){var e=a.m.getPosition();e=null!==e&&void 0!==e&&0<=e?a.m.getBufferInfo().Sa(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===_.k&&2>a.l&&2===e.networkState;var f=typeof a.l===_.k&&0>=a.H&&a.f===_.gu,g=typeof a.l===_.k&&2>=a.l&&a.j;e=a.h||f||
385
- e||g;!a.O||a.m.isLive()||2!==a.f||e||(f=b===_.Wf&&4===a.l,(g=1===a.A)&&!a.D?e=!0:g||a.D||f||(e=!0));f=!1;e?f=ou(a,2):c?f=ou(a,4):a.G&&(f=ou(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: "+ju(a.f,_.nu))}}};
386
- hu=function(a){function b(d){return pu(a,d.type)}a.g.debug("Start watching for video events for "+a.m.namespace());var c=a.m;a.a.on(c,_.je,function(){a.h||(a.j=!1,ou(a,5))});a.a.on(c,ad,b);a.a.on(c,_.tf,function(){a.G=!0;a.j=!1;pu(a,_.tf)});a.a.on(c,_.df,function(){a.G=!1;a.j=!1;pu(a,_.df)});a.a.on(c,_.vg,b);a.a.on(c,_.Kf,b);a.a.on(c,_.Wf,function(d){a.h=!1;a.j=!1;pu(a,d.type)});a.a.on(c,_.Xf,function(d){a.h=!0;pu(a,d.type)});a.a.on(c,cg,b);a.a.on(c,_.Vg,function(){a.j=!0;pu(a,_.Vg)});a.a.on(c,_.ke,
387
- function(d){(d=d&&d.detail)&&d.severity&&d.severity===_.O&&ou(a,_.Ko)});a.a.on(c,_.Fe,b);a.a.on(c,bd,function(){a.D=!0;pu(a,bd)});a.a.on(c,_.Ig,function(d){a.h=!0;pu(a,d.type)});a.a.on(c,_.Hg,function(d){a.h=!1;a.j=!1;pu(a,d.type)})};qu=function(){_.Ut.call(this,wd);this.w=this.H=!1;this.l=this.A=this.o=this.a=this.j=null;this.h=new _.si;this.G=this.B=this.f=this.I=null};
388
- su=function(a,b){if(a.w)throw new _.N(_.O,7,7E3);a.a||(a.h.on(b,_.ke,function(){var c=ru(a);if(c)a.onError(c)}),a.h.on(b,_.Pf,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(_.Xc,{detail:{width:c,height:d}}))}),a.a=b)};tu=function(a){var b=_.oj()?Ls:void 0;return new _.Xr(a,b)};
389
- vu=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 _.N(_.O,7,7E3)));b=a.ca[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=_.uu;d=_.$n(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=tu({Cb:e,onError:function(h){return a.onError(h)},Cg:function(){},Bg:function(h,l){a.trigger(new _.Q(_.Xd,
390
- {expirationTime:l}))},onEvent:function(h){h instanceof _.Q?a.dispatchEvent(h):a.log.debug(_.Ob,h.type)},getConfiguration:function(){return a.getConfiguration()},td:function(){return a.td()}});a.o.f=d;f={id:0,language:_.Cg,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,
391
- Ga:0,mimeType:_.Pg,codecs:"",encrypted:!0,keyId:null,language:_.Cg,originalLanguage:_.Cg,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,Jp:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,spatialAudio:!1,qp:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.x(g,_.bs(a.o,[f]),2)}return _.x(g,_.ts(a.o,a.a),0)})};
392
- wu=function(a,b){fr(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){a.getState()!==_.Ko&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};ru=function(a){if(null===a.ca||!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 _.N(_.O,3,3016,{code:b,Cp:c,message:a.a.error.message})};
393
- xu=function(a){if(a.w)return new _.Um(Promise.reject(new _.N(_.O,7,7E3)),function(){});var b=a.ca[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.I;c&&wu(a,c);if(d.preload!==_.Se)a.h.one(d,_.Fe,function(){var g=Date.now()/1E3-e;a.f.B=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.jj()||_.kj())&&d.load();var f=new _.lm;a.h.one(d,cg,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.B||(a.B=(new _.ej(function(){f.reject(new _.N(_.O,3,3100,{message:"Unable to load media source successfully from "+
394
- b.url,uri:b.url},d.error))})).ha(g))});fr(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.h,function(){return f.resolve()});d.error?f.reject(ru(a)):d.preload===_.Se&&(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,_.ke,function(){f.reject(ru(a))});
395
- return new _.Um(f,function(){var g=new _.N(_.O,7,7001);f.reject(g);return Promise.resolve()})};
396
- yu=function(a,b){fr(b,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){if(a.isLive()&&a.getState()!==_.Ko){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)}))}})};
397
- zu=function(a,b){var c=!1;a.h.on(b,_.Xf,function(){c=b.paused});a.h.on(b,_.Wf,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())})};Au=function(){};
398
- Bu=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=_.M.ra(this.D,a);this.f=_.M.ra(this.f,a);this.H=0;this.o=[];this.fa=!1;this.w=null;this.K=[]};Du=function(a){a.K.forEach(function(b){return b()});a.K=[]};
399
- Eu=function(a,b){function c(f){a.H=a.o.findIndex(function(g){return g.id===f.id})}a.addEventListener(_.Sf,c);a.K.push(function(){a.removeEventListener(_.Sf,c)});if(b.endTime){var d=b.endTime,e=function(){a.getPosition()>=d&&(a.removeEventListener(_.vg,e),a.g.info("Playlist end time reached. Stopping playback."),a.trigger(new _.Q(_.Rf)),a.pause())};a.addEventListener(_.vg,e);a.K.push(function(){a.removeEventListener(_.vg,e)})}};
400
- Hu=function(a,b){var c,d;return _.I(function(e){switch(e.a){case 1:return _.F(e,2),_.jn(sf),a.R=_.pb,a.ka=!1,c=b.slice(1).map(function(f){return{config:f,ca:_.Un(f)}}),_.x(e,_.Zo(a,b[0]),4);case 4:return c.forEach(function(f){Fu(a,f.config,f.ca)}),a.trigger(new _.Q(He)),_.x(e,a.a.setupPlaylist(b),5);case 5:return _.x(e,_.Uo(a),6);case 6:c.forEach(function(f){Gu(a,f.config,f.ca)});_.jn(rf);_.ln("player.setupPlaylist",sf,rf);_.G(e,0);break;case 2:d=_.H(e);if(a.l)throw a.g.info(ab),new _.N(_.O,7,7E3);
401
- throw d;}})};Iu=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.F(e,2),_.jn(mf),c=_.Un(b),Fu(a,b,c),_.x(e,a.a.appendLoad(b),4);if(2!=e.a)return Gu(a,b,c),_.jn(lf),_.ln("player.appendLoad",mf,lf),_.G(e,0);d=_.H(e);if(a.l)throw a.g.info(ab),new _.N(_.O,7,7E3,{id:b.id});throw d;})};Gu=function(a,b,c){Qo(a,{configuration:b,ca:c,drmInfo:a.getDrmInfo(),qj:Object.keys(a.L),isLive:c[0].isLive})};
402
- Fu=function(a,b,c){if(0===c.length)throw new _.N(_.O,7,7003,{message:jb,id:b.id});if(1<c.length)throw new _.N(_.O,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 _.N(_.O,7,7003,{message:"Source not supported by the current player!",id:b.id,source:c[0]});};
403
- Lu=function(a){_.zi.call(this);var b=this;this.j=_.M.ra({transition:_.df,preloadMedia:!1},a);this.h=[];this.a=0;var c=Ju(a.anchorId,this.j.config);this.w=new Di(c);this.f=null;this.l=!1;this.o=new Map;this.A=a.toggleVisible;this.g=new _.L(xd);this.w.a.forEach(function(d){return Ku(b,d.player,!1)})};Nu=function(a){return Promise.all(Array.from(a.o.keys()).map(function(b){return Mu(a,b)}))};
404
- Mu=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,Ou(a,c),3):d.C(3)}a.o["delete"](b);_.z(d)})};Qu=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Stop current playback (index: "+b.index+")"),b.player.pause(),Ku(a,b.player,!1),_.x(c,Ou(a,b),2);b.player=null;b.videoEl=null;b.role=Pu;_.z(c)})};
405
- Ou=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)})};Tu=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=Ru,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),Ku(a,c,!0),_.x(d,c.load(b.config),3);Su(a,b);return b.config.autoplay?d.C(0):_.x(d,c.play(),0)})};
406
- Uu=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Ff){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=Ru;Ku(a,b.player,!0);if(b.state===Ef)return _.jn(Bf),a.j.preloadMedia?_.x(c,b.player.play(),11):_.x(c,Vo(b.player),11);if(b.state!==Df){c.C(7);break}return _.x(c,b.player.load(b.config),7);case 11:_.jn(Af),_.ln("playlist.next",Bf,Af);case 7:if(Su(a,b),b.config.autoplay)c.C(0);
407
- else return _.x(c,b.player.play(),0)}})};Su=function(a,b){if(a.j.autoplayNext){var c=function(){a.g.info("Automatically transition to next item");a.oj()};b.player.on(_.je,c);var d=b.player;b.disposers.push(function(){d.off(_.je,c)})}};Wu=function(a){var b;return _.I(function(c){b=a.a+1;a.g.info("Preload following item (index: "+b+")");return _.x(c,Vu(a,b),0)})};Xu=function(a){var b;return _.I(function(c){b=a.a-1;a.g.info("Preload preceding item (index: "+b+")");return _.x(c,Vu(a,b),0)})};
408
- Yu=function(a){var b;_.I(function(c){if(0===a.a)return _.x(c,Wu(a),0);if(a.a===a.h.length-1)return _.x(c,Xu(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 Vu(a,d)})),0)})};
409
- Vu=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=Pu,d.state=Ff,a.trigger(new _.Q(Eg)),_.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=
410
- Ef;a.trigger(new _.Q(Eg));_.G(f,0);break;case 3:e=_.H(f),7001===e.code?(a.g.info("Preload aborted (index: "+b+")"),d.state=Cf):(a.g.warn("Preload failed (index: "+b+")",e),a.trigger(new _.Q(_.ke,{detail:e})),d.state=Df),a.trigger(new _.Q(Eg)),_.z(f)}})};Ku=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.info(Hb+b),d.classList.add(pd)):(a.g.info(Va+b),d.classList.remove(pd)),a.A&&a.A(d,c))};
411
- Zu=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(od);b.innerHTML="";_.z(c)})};
412
- Ju=function(a,b){var c=document.getElementById(a);if(!c)throw Error("Anchor element not found");c.classList.add(od);return Array.from({length:3}).map(function(){var d=document.createElement(_.Ng);d.classList.add("clpp-mc-playlist-video-el");var e=document.createElement(_.Qd);e.classList.add("clpp-mc-playlist-item");e.appendChild(d);c.appendChild(e);return new S(d,b)})};
413
- _.av=function(a){if($u.has(a))return $u.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);$u.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),$u.set(a,b),b):!1};bv=function(a){this.h=a;this.f={keepOriginalTimestamps:!0,remux:!1};this.a=new muxjs.mp4.Transmuxer(this.f)};
414
- cv=function(a,b){var c=b.replace(/mp2t/i,"mp4");a===_.Oc&&(c=c.replace(_.Ng,_.Oc));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};dv=function(){};_.ev=function(){};
415
- fv=function(a,b,c,d,e){_.bq.call(this,Ua);this.l=a;this.j=b;this.h=c;this.a=d;this.o=e;this.g=new _.L(td);_.R.empty(this.l)?this.g.warn(_.Xb):this.bb(_.Gd,{licenseUrl:this.l,videoRobustness:[_.Db,void 0],audioRobustness:[_.Cb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.Ce.bind(this)}});_.R.empty(this.j)?this.g.warn(_.rb):this.bb(_.Ed,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.Ce.bind(this)}});
416
- _.R.empty(this.h)?this.g.warn(_.Pa):_.R.empty(this.a)?this.g.warn(_.Oa):this.bb(_.Cd,{licenseUrl:this.h,certificateUrl:this.a,modifiers:{licenseRequest:this.Wi.bind(this),licenseResponse:this.Xi.bind(this),certificateRequest:this.Ce.bind(this),extractContentId:this.ai.bind(this)}})};gv=function(){};hv=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.oe)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
417
- iv=function(a){a=a.target;if(a.webkitPresentationMode===gf){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)};jv=function(){return this.webkitSupportsPresentationMode(gf)?(this.webkitSetPresentationMode(gf),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
418
- kv=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};lv=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};mv=function(a,b,c){return new window.TextTrackCue(a,b,c)};
419
- nv=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};yv=function(a,b,c){if("input"===a)switch(this.type){case "range":a=kd}ov.call(this,a,b,c)};_.Gv=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};_.Hv=function(a,b,c){this.h=a;this.j=b;this.f=c||this.h.getMedia();this.a=null};_.Jv=function(){this.a=new Blob([Iv],{type:_.Pg})};
420
- _.Lv=function(a,b){var c=_.Hn(_.In(a),_.Jn(a));_.Kv[c]=b};_.Mv=function(a){a=_.Hn(_.In(a),_.Jn(a));return _.Kv[a]||null};_.Nv=function(a){a=_.Hn(_.In(a),_.Jn(a));delete _.Kv[a]};
421
- _.Ov=function(a){a=a.getConfiguration();a=_.M.ib(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.hg?a.backgroundColor:null;this.U=typeof a.windowColor===_.hg?a.windowColor:null;this.O=typeof a.fontColor===_.hg?a.fontColor:null;this.R=typeof a.fontFamily===_.hg?a.fontFamily:null;this.I=typeof a.fontSize===_.hg?a.fontSize:null;this.B=typeof a.fontSizePercent===_.k?a.fontSizePercent:null;this.H=typeof a.edgeColor===_.hg?a.edgeColor:"rgba(0, 0, 0, 1)";this.o=null;typeof a.edgeType===
422
- _.hg&&(this.o=a.edgeType)};_.Tv=function(a){if(!a.o)return null;var b=a.H;switch(a.o){case Pv:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case Qv:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case Rv:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case Sv:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.Se}};
423
- _.Vv=function(a){_.Ov.call(this,a);this.l=a.getSurface().getMedia();this.f="clpp-video-"+Uv++;this.h=document.createElement(_.jg);this.j=this.w=!1;_.Xi(this.l,this.f);document.head.appendChild(this.h);this.Vb()};Wv=function(){};Xv=function(a){this.f=a;this.a=null;this.g=new _.L("clpp.text.Mp4TextParser")};_.Yv=function(a,b,c,d){this.id=a;this.f=b;this.a=c;this.h=d};_.Zv=function(){this.a=[];this.f=-1;this.h=null};
424
- _.aw=function(a,b,c,d){var e,f;return _.I(function(g){if(1==g.a)return _.F(g,2),_.x(g,$v(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.H(g);f.a(_.O);throw f;})};
425
- $v=function(a,b,c,d){var e,f,g,h;return _.I(function(l){if(1==l.a){if(d){if(e=_.bw[d.toLowerCase()])return l["return"](e);_.Mh("Could not determine manifest type using MIME type ",d)}if(f=_.Dn(a)){if(g=_.cw[f])return l["return"](g);_.Mh("Could not determine manifest type for extension ",f)}else _.Mh("Could not find extension for ",a);return d?l.C(2):_.x(l,dw(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(h=_.bw[d])return l["return"](h);_.Mh("Could not determine manifest type using MIME type",d)}throw new _.N(_.O,
426
- 4,4E3,{url:a});})};dw=function(a,b,c){var d,e,f;return _.I(function(g){if(1==g.a)return d=_.Xk(a),Uk(d,c),d.type=1,d.method="HEAD",_.x(g,b.fetch(d).T,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.ew=function(){};_.hh=[];lh=typeof Object.create==_.oe?Object.create:function(a){function b(){}b.prototype=a;return new b};
427
- if(typeof Object.setPrototypeOf==_.oe)fw=Object.setPrototypeOf;else{var gw;a:{var hw={Wj:!0},iw={};try{iw.__proto__=hw;gw=iw.Wj;break a}catch(a){}gw=!1}fw=gw?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
428
- var mh=fw,qh=typeof Object.defineProperties==_.oe?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},oh="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;rh.prototype.toString=function(){return this.a};var ph=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new rh("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
429
- uh.prototype.A=function(a){this.f=a};uh.prototype["return"]=function(a){this.h={"return":a};this.a=this.j};uh.prototype.C=function(a){this.a=a};
430
- Gh("Promise",function(a){function b(g){this.f=0;this.l=void 0;this.a=[];var h=this.j();try{g(h.resolve,h.reject)}catch(l){h.reject(l)}}function c(){this.a=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.f=function(g){if(null==this.a){this.a=[];var h=this;this.h(function(){h.l()})}this.a.push(g)};var e=oh.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 h=0;h<g.length;++h){var l=
431
- g[h];g[h]=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(h,n))}}var h=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 _.Te:var h=null!=g;break a;case _.oe:h=!0;break a;default:h=!1}h?this.B(g):this.o(g)}};
432
- b.prototype.B=function(g){var h=void 0;try{h=g.then}catch(l){this.h(l);return}typeof h==_.oe?this.H(h,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,h){if(0!=this.f)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.f);this.f=g;this.l=h;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 h=this.j();
433
- g.df(h.resolve,h.reject)};b.prototype.H=function(g,h){var l=this.j();try{g.call(h,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,h){function l(q,t){return typeof q==_.oe?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.df(l(g,m),l(h,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.df=function(g,h){function l(){switch(m.f){case 1:g(m.l);break;case 2:h(m.l);break;default:throw Error("Unexpected state: "+
434
- m.f);}}var m=this;null==this.a?f.f(l):this.a.push(l)};b.resolve=d;b.reject=function(g){return new b(function(h,l){l(g)})};b.race=function(g){return new b(function(h,l){for(var m=_.v(g),n=m.next();!n.done;n=m.next())d(n.value).df(h,l)})};b.all=function(g){var h=_.v(g),l=h.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).df(p(q.length-1),n),l=h.next();while(!l.done)})};return b});var Ih=this||self;
435
- Ih.a=!0;_.M={Uj:20,ib:function(a){var b=_.M.P,c=_.M.Ii,d=_.M.ra;return b(a)||c(a)?a:d(a)}};_.K("clpp.utils.obj.cloneItem",_.M.ib);_.M.ra=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=_.M.Oi(c,{merging:b[d]},1));return c.merging||null};_.K("clpp.utils.obj.merge",_.M.ra);_.M.Pb=function(a){for(var b in a)if(void 0!==a[b])return!0;return!1};
436
- _.M.Oi=function(a,b,c){var d=_.M.P,e=_.M.Ii,f=_.M.Oi,g=_.M.Sb,h=_.M.Km,l=_.M.ug,m=_.M.Em,n=_.M.xd;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:h(n)?a[p]=n.subarray(0):n instanceof Array?a[p]=f([],n,c):!d(n)&&l(n)&&c<_.M.Uj&&(a[p]=f(a[p],n,c));return a};_.M.Ii=function(a){a=typeof a;return a===_.hg||a===_.k||a===_.Yc};_.M.Em=function(a){return a instanceof Element};_.M.P=function(a){return null===a||"undefined"===typeof a};
437
- _.M.xd=function(a){return typeof a===_.Te};_.M.Sb=function(a){return typeof a===_.oe};_.M.ia=function(a){return typeof a===_.hg};_.M.ya=function(a){return typeof a===_.k};_.M.Ei=function(a){return typeof a===_.Yc};_.M.ug=function(a){var b=_.M.xd,c=_.M.P;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.M.Km=function(a){var b=_.M.xd,c=_.M.Sb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
438
- _.M.ta=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||!_.M.xd(a)||!_.M.xd(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var h=e[g];if(_.M.P(d)||0>d.indexOf(h))if(f[h]=!0,a[h]!==b[h])return!1}if(_.M.P(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.M.P(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
439
- _.M.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.M.Fm=function(a,b,c){return a>=b&&a<=c};_.M.oh=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};_.M.ph=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};
440
- _.M.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};_.M.Ji=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===_.Te&&e&&typeof e===_.Te){if(!_.M.Ji(d,e))return!1}else if(void 0!==d&&void 0!==e&&d!==e)return!1}return!0};
441
- _.M.Ki=function(a,b){if(!_.M.Ji(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===_.Te&&e&&typeof e===_.Te&&_.M.Ki(d,e))return!0}return!1};
442
- _.M.xi=function(a,b){if(a===b||_.M.P(a)||_.M.P(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===_.Te&&typeof e===_.Te){if(_.M.xi(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 Nh={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.K("clpp.log.Level",Nh);var Kh=0,Jh={},jw=[];_.K("clpp.log.getLoggers",function(){return _.M.ib(Jh)});_.K("clpp.log.addInterceptor",function(a){a&&jw.push(a)});_.K("clpp.log.removeInterceptor",function(a){a&&(a=jw.indexOf(a),0<=a&&jw.splice(a,1))});_.K("clpp.log.getTagLevel",Lh);_.K("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Jh[a]});_.K("clpp.log.setTagLevel",function(a,b){a&&(_.M.ia(b)&&(b=Oh(b)),Jh[a]=b)});
443
- _.K("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.M.ia(a)&&(a=Oh(a));Kh=a});_.K("clpp.log.getLogLevel",function(){return Kh});_.r=_.L.prototype;
444
- _.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=Lh(this.tag);if(0<=d){if(d<c)return}else if(Kh<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):
445
- 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.v(jw);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)};
446
- _.r.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.r.El=function(a){return a?this.tag?new _.L(this.tag+"."+a):new _.L(a):this};_.K("clpp.log.Logger",_.L);_.L.prototype.createChild=_.L.prototype.El;_.L.prototype.error=_.L.prototype.error;_.L.prototype.warn=_.L.prototype.warn;_.L.prototype.debug=_.L.prototype.debug;_.L.prototype.info=_.L.prototype.info;_.L.prototype.log=_.L.prototype.log;var Ph=new _.L("clpp");_.K("clpp.log.info",_.Qh);
447
- _.K("clpp.log.debug",_.Rh);_.K("clpp.log.warn",_.Mh);_.K("clpp.log.error",_.Sh);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.Vh=new _.L("clpp.players");_.Uh={};_.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 $h=new _.L("clpp.ads"),Yh=[];_.r=_.ci.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.Xb=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.Ra=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
448
- _.r.Oc=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};
449
- _.r.Sa=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.Ra();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",_.ci);_.ci.prototype.bufferedAheadOf=_.ci.prototype.Sa;
450
- _.ci.prototype.isBuffered=_.ci.prototype.Oc;_.ci.prototype.bufferEnd=_.ci.prototype.Ra;_.ci.prototype.bufferStart=_.ci.prototype.Xb;_.ci.prototype.end=_.ci.prototype.end;_.ci.prototype.start=_.ci.prototype.start;var fi;fi=new _.L("clpp.Components");_.di=new Map;_.K("clpp.install",function(a){ni(a)});_.K("clpp.uninstall",function(a){oi(a)});_.w(_.N,Error);_.N.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=pi(this.severity,this.category,this.code,this.data))};_.N.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.K("clpp.Error",_.N);_.O=2;_.N.Severity={RECOVERABLE:1,FATAL:_.O};_.N.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
451
- _.N.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,
315
+ _.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,_.Se,a.kj.bind(a));a.B.on(c,Ce,a.fj.bind(a));var e={initData:null,loaded:!1,Gg:Infinity,Cc:null,pb:new _.om,periodId:null,nf:[],keyId:null,ub:[],initDataType:null,Jc:null,sessionContext:{ldlDelay:0,customData:{}}};e.pb["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",
316
+ 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.ub.includes(b)||c===_.eg&&(e.keyId||yq(e.initData))===d)return!0;return!1};
317
+ vs=function(a,b,c,d,e,f,g){f=void 0===f?null:f;g=void 0===g?!1:g;var h,l,m,n,p,q,t,u,y,D,C,B,E,A,J,N,V,U,qa,wa,oa;_.I(function(Ca){switch(Ca.a){case 1:if(!e.length)return a.g.warn("Empty init data"),Ca["return"]();h=b;if(!h)try{h=Fs(a,d,e,f)}catch(Ja){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:Ja,initDataType:d,
318
+ initData:e}),a.f.ignoreUnrecognizedInitData)return Ca["return"]()}if(g){Ca.C(2);break}if(!Es(a,h,d,e)){Ca.C(2);break}l=!0;if("skd"!==d||a.f.enableSessionCacheForSkd){Ca.C(4);break}m=_.v(a.h.keys());n=m.next();case 5:if(n.done){Ca.C(4);break}p=n.value;q=a.h.get(p);if(!h||q.keyId!==h){Ca.C(6);break}a.g.warn("Close and re-open session for "+h);_.F(Ca,9);return _.x(Ca,p.close(),11);case 11:_.G(Ca,10);break;case 9:t=_.H(Ca),a.g.warn("Unable to close session",t);case 10:l=!1;case 6:n=m.next();Ca.C(5);break;
319
+ case 4:if(l)return a.g.warn("Skip creating a new session for "+h),Ca["return"]();case 2:try{y=a.H?_.nf:qg,u=a.J.createSession(y),a.D.onEvent(new _.Q(ge,{keySystem:a.keySystem()})),a.g.info("Created new "+y+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(Ja){return a.w(new _.O(_.P,6,6005,{browserError:Ja.message})),Ca["return"]()}a.B.on(u,_.Se,a.kj.bind(a));a.B.on(u,Ce,a.fj.bind(a));D={Jc:f,nf:[],initData:e,initDataType:d,keyId:h,ub:h?[h]:[],loaded:!1,Gg:Infinity,periodId:c,Cc:null,
320
+ pb:new _.om,sessionContext:{ldlDelay:0,customData:{}}};D.pb["catch"](function(){});f&&(C=a.h.get(f),D.sessionContext=C.sessionContext);a.h.set(u,D);h&&!a.o.get(h)&&a.o.set(h,jg);if(e)for(B=0;B<a.a.initData.length;B++)E=a.a.initData[B],E.keyId&&!D.ub.includes(E.keyId)&&_.Pm(E.initData,e)&&(D.keyId||(D.keyId=E.keyId),D.ub.push(E.keyId),a.o.get(E.keyId)||a.o.set(E.keyId,jg));A=_.M;J=A.Tb;N=a.D.getConfiguration();V=a.keySystem();U=a.f.Qa[V];wa=(qa=U.modifiers)&&qa.transformInitData;J(wa)||(wa=Gs);try{e=
321
+ wa({playerConfig:N,initData:e,initDataType:d,drmInfo:a.a,drmSystemConfig:U,sessionContext:D.sessionContext,emeApi:a.l.Ud()})}catch(Ja){return oa=Ja,Ja instanceof _.O||(oa=new _.O(_.P,6,6016,Ja)),D.pb&&D.pb.reject(Ja),a.w(oa),Ca["return"]()}a.g.info("Generate License Request for key ID: '"+h+"'");u.generateRequest(d,e.buffer)["catch"](function(Ja){if(!a.j){var Ia=null;Ja.errorCode&&Ja.errorCode.systemCode&&(Ia=Ja.errorCode.systemCode,0>Ia&&(Ia+=Math.pow(2,32)),Ia="0x"+Ia.toString(16));a.w(new _.O(_.P,
322
+ 6,6006,{browserError:Ja.message,error:Ja,extended:Ia},Ja))}});_.z(Ca)}})};
323
+ 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.Qa[f];f=a.D.getConfiguration();g=g&&g.modifiers&&g.modifiers.extractContentId;_.M.Tb(g)||(g=Hs);try{var h={ldlDelay:0,customData:{}};e&&(h=a.h.get(e).sessionContext);var l=g(f,c,h);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=
324
+ _.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;h=_.nq(e,16);var t=_.Om(h);if(0<c){var u=_.jq(e);e.skip(16*u)}var y=_.jq(e),D=_.nq(e,y),C=_.Qr(D);_.Vh("Parsed PR PSSH Box","size",f,"name",g,Pg,c,"flags",l,"size",y,"systemId",t,"keyId",C.a);if(C)return C.a}}catch(B){throw a.g.warn("Unable to extract Key ID from PSSH data.",{error:B,keySystem:m}),B;}}return""};
325
+ 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};
326
+ 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=_.M.Tb;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=Hs);a="";try{a=e(b,c,f)}catch(h){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};
327
+ Ps=function(a,b){var c,d,e,f,g,h,l,m,n,p,q,t,u,y,D,C,B,E;return _.I(function(A){switch(A.a){case 1:c=b.target;d=a.h.get(c);if(!d)return a.g.error("Session metadata not found for "+c.sessionId+"."),A["return"]();e=a.a.licenseServerUri;if(!Ks(a,b)){A.C(2);break}return _.x(A,Ls(a,e,b,c,d),3);case 3:return A["return"]();case 2:f=a.Kb;if(!(0<f)){A.C(4);break}a.g.info("Delaying license request by "+f+" s.");return _.x(A,hj(f),5);case 5:if(a.j)return A["return"]();case 4:g=a.keySystem();h=a.f.Qa[g];"individualization-request"===
328
+ b.messageType&&h&&h.individualizationServer&&(e=h.individualizationServer);l=_.$k([e],a.f.attemptParameters);l.type=3;l.body=b.message;l.method=_.rb;l.licenseRequestType=b.messageType===Fe&&d.Jc?Ee:b.messageType;l.sessionId=c.sessionId;if(l.licenseRequestType===Ee)a.D.onEvent(new _.Q(fe));Is(a.a.keySystem)&&Ms(a,l);Wp(a.P,l);m=String(Math.floor(b.timeStamp));return _.x(A,Ns(a,l,d,m,e,c.sessionId,b.messageType,f),6);case 6:n=A.f;if(!n)return A["return"]();p=Xp(a.P,n);return _.x(A,Os(a,c,n.data,d,m),
329
+ 7);case 7:q=A.f;if(!q)return A["return"]();t=xs(a);u=p?Date.now()+1E3*p.delay:Number.NaN;a.D.onEvent(new _.Q(_.ie,{keySystem:g,expirationTime:t,expectedRenewalTime:u}));d.Cc&&d.Cc.resolve();d.Jc&&(y=d.Jc,a.g.info("Closing expired session '"+y.sessionId+"'"),Wr(y)["catch"](function(){a.g.warn("Unable to close expired session in time")}),(D=a.h.get(d.Jc))&&D.pd&&D.pd.stop(),a.h["delete"](d.Jc),d.Jc=null);C=new _.gj(function(){a.j||(d.loaded=!0,d.pb&&d.pb.resolve(),Ds(a)&&(a.A||a.g.info(Ea),a.A=!0,a.G=
330
+ !1,a.I.resolve()))});C.ha(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.gb("renew")))}),d.pd=B,E=p?p.delay:d.sessionContext.ldlDelay,B.ha(E));_.z(A)}})};
331
+ Ls=function(a,b,c,d,e){var f,g,h;return _.I(function(l){if(1==l.a)return f=_.$k([b],a.f.attemptParameters),f.type=3,f.body=c.message,f.method=_.rb,f.licenseRequestType=pd,f.sessionId=d.sessionId,_.x(l,Qs(a,f,e,b,d.sessionId,c.messageType),2);g=l.f;if(!g)return l["return"]();h=String(Math.floor(c.timeStamp));return _.x(l,Os(a,d,g.data,e,h),0)})};Ks=function(a,b){return!!a.keySystem().match(/^com\.widevine\.alpha/)&&b.message&&2===b.message.byteLength};
332
+ Ns=function(a,b,c,d,e,f,g,h){var l,m,n,p,q,t,u,y,D,C,B,E;return _.I(function(A){switch(A.a){case 1:return a.g.info("License request for SID:'"+(f+"'/KID:'"+c.keyId+"' from msg '")+(g+"'.")),_.x(A,Rs(a,b,c.sessionContext),2);case 2:return a.g.debug("Sending DRM license request to",e,b),a.D.onEvent(new _.Q(ee,{delay:h})),l=Date.now(),_.hn(Yd+d+ha),m=null,_.F(A,3),_.x(A,a.D.Db.fetch(b).U,5);case 5:m=A.f;_.G(A,4);break;case 3:n=_.H(A);if(a.j)return A["return"](null);p=n;q=p.data.headers;t=Yq(q);u=Object.assign({message:"Error while fetching DRM license!",
333
+ 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 A["return"](null);case 4:_.hn(Yd+d+".end");_.kn(Yd+d,Yd+d+ha,Yd+d+".end");D=Date.now()-l;if(C=Zq(m.headers))a.Kb=C.delay||0;B="";C&&C.requestId&&(B=" RID:"+C.requestId);E=m.data.byteLength;a.g.info("License response for SID:'"+(f+"'/KID:'")+(c.keyId+"' ")+(E+" bytes in ")+(D+"ms"+B));return a.j?A["return"](null):A["return"](m)}})};
334
+ Qs=function(a,b,c,d,e,f){var g,h,l,m,n,p,q,t,u,y,D,C;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(),h=null,_.F(B,3),_.x(B,a.D.Db.fetch(b).U,5);case 5:h=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:Oa,url:m.data.url,status:m.data.status,
335
+ 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(h.headers),D="",y&&y.requestId&&(D=" RID:"+y.requestId),C=h.data.byteLength,a.g.info("WV Server certificate response for SID:'"+(e+"' ")+(C+" bytes in ")+(u+"ms"+D)),a.j?B["return"](null):B["return"](h)}})};
336
+ Os=function(a,b,c,d,e){var f,g;return _.I(function(h){switch(h.a){case 1:return _.hn(ce+e+ha),_.F(h,2),_.x(h,b.update(c),4);case 4:_.G(h,3);break;case 2:f=_.H(h);if(a.j)return h["return"](!1);if(f===Fb)return a.g.info("Ignore update for closed sessions"),h["return"](!1);g=new _.O(_.P,6,6008,{browserError:f.message});Ss(a,g,d);return h["return"](!1);case 3:return _.hn(ce+e+".end"),_.kn(ce+e,ce+e+ha,ce+e+".end"),a.j?h["return"](!1):h["return"](!0)}})};
337
+ Ss=function(a,b,c){a.j||(a.w(b),c.Cc&&c.Cc.reject(b),c.pb&&c.pb.reject(b))};
338
+ Ms=function(a,b){var c=_.R.Lc(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=_.Mm(c.querySelector("Challenge").textContent).buffer}else a.g.debug("PlayReady request is already unwrapped."),b.headers[Aa]="text/xml; charset\x3dutf-8"};
339
+ Rs=function(a,b,c){var d,e,f,g,h,l;return _.I(function(m){if(1==m.a)return d=a.D.getConfiguration(),_.x(m,ss(a,d),2);e=a.keySystem();h=(g=(f=a.f.Qa[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;h?b.requestModifiers.push(function(n){return h(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)});_.z(m)})};
340
+ Tr=function(a){var b=a.o,c=a.ka;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.D.Kg(_.M.yh(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 _.hn(be),b=a.ja.map(function(d){return Ps(a,d)}),a.Ra=!0,a.ja=[],_.x(c,Promise.all(b),2);_.hn(ae);_.kn("drm.onPlay",be,ae);_.z(c)})};Is=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};
341
+ _.Bs=function(a){return Is(a)?_.Kd:a};_.Us=function(a,b){return a.length&&b.length?0<_.Ts(a,b).length:!0};
342
+ _.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={Md:e.Md},f++)if(a[d].keySystem===b[f].keySystem&&a[d].periodId===b[f].periodId){var g=a[d];f=b[f];var h=[];h=h.concat(g.initData||[]);h=h.concat(f.initData||[]);e.Md=_.ph(g.keyIds||[]).concat();f.keyIds&&f.keyIds.length&&f.keyIds.forEach(function(l){return function(m){l.Md.includes(m)||l.Md.push(m)}}(e));c.push({keySystem:g.keySystem,licenseServerUri:g.licenseServerUri||f.licenseServerUri,
343
+ 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:h,keyIds:e.Md,periodId:g.periodId});break}return c};
344
+ Ur=function(a){a.h.forEach(function(b,c){var d=b.Gg,e=c.expiration;isNaN(e)&&(e=Infinity);e!==d&&(a.D.Jg(c.sessionId,e),b.Gg=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};
345
+ 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};
346
+ As=function(a){return(a.audioCapabilities||[]).some(Vs)||(a.videoCapabilities||[]).some(Vs)};Vs=function(a){return null!=a.robustness&&""!==a.robustness};
347
+ Cs=function(a,b,c,d,e){var f={};a=_.v(a);for(var g=a.next();!g.done;f={Ja:f.Ja},g=a.next()){f.Ja=g.value;b.includes(f.Ja.licenseServerUri)||b.push(f.Ja.licenseServerUri);f.Ja.serverCertificate&&(c.some(function(m){return function(n){return _.Pm(n,m.Ja.serverCertificate)}}(f))||c.push(f.Ja.serverCertificate));if(f.Ja.initData){var h=_.v(f.Ja.initData);for(g=h.next();!g.done;g=h.next())g.value.periodId=f.Ja.periodId;h={};var l=_.v(f.Ja.initData);for(g=l.next();!g.done;h={Se:h.Se},g=l.next())h.Se=g.value,
348
+ d.some(function(m){return function(n){var p=m.Se;return n.keyId&&n.keyId===p.keyId&&n.periodId===p.periodId?!0:!1}}(h))||d.push(h.Se)}if(f.Ja.keyIds)for(g=0;g<f.Ja.keyIds.length;++g)e.includes(f.Ja.keyIds[g])||e.push(f.Ja.keyIds[g])}};
349
+ 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)};
350
+ 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))};
351
+ Wr=function(a){var b,c;return _.I(function(d){if(1==d.a)return b=new Promise(function(e){(new _.gj(e)).ha(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");_.z(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};
352
+ _.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 h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.Xs(e,h);)c.push(new _.Rp(g[1],g[2]||g[3]||""))}return new _.Pp(a,d,c,f)};
353
+ _.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};
354
+ dt=function(a){if(!a)throw new _.O(_.P,3,3101,Xa+a);if(!_.M.ia(a))throw new _.O(_.P,3,3101,Xa+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+".");};
355
+ ft=function(a,b){a=dt(a);var c=_.$s(b.kind),d=b.id;d||(d=String(_.et++));d=new _.Zs(d,c===_.Te?ct:a);d.kind=c;d.label=_.$s(b.label);d.language=_.$s(b.language);d.originalLanguage=b.originalLanguage||d.language;return d};gt=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};_.ht=function(a,b){this.track=b;this.id=a;this.originalId=this.codec=this.Pd=this.bandwidth=this.height=this.width=null;this.a=!1};
356
+ it=function(a){this.f=a;this.g=new _.L("clpp.native.hls.HlsMetadataParser");this.a=sn(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
+ lt=function(a,b,c){var d,e,f,g,h;return _.I(function(l){if(1==l.a)return _.x(l,jt(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.Zs("dummy",_.bt);h=f.map(function(m,n){var p=new _.ht("R"+n,g);p.bandwidth=m.bandwidth;p.Pd=m.Pd;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});kt(h);return l["return"]({renditions:h,mimeType:e||void 0})})};
358
+ nt=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return mt(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
+ mt=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(_.Ra),name:b(_.gb),language:b(_.$a),Cp:b("AUTOSELECT"),"default":b("DEFAULT"),Np:b("FORCED"),Mh:b("CHARACTERISTICS"),uri:b(_.Mb)}};kt=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
+ ot=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.$k(b),_.x(e,$m(a.f,c),2);d=e.f;return e["return"](d)})};jt=function(a,b,c){var d,e,f,g;return _.I(function(h){if(1==h.a)return d=pt(b),e=qt(b,c),f=d[0]?d[0].codec:null,_.x(h,rt(a,e,f),2);g=h.f;return h["return"]({mimeType:g,renditions:d})})};rt=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return b&&c?_.x(f,ot(a,b),2):f["return"](null);d=f.f;e=[st(d,b),tt(d,b)].filter(Boolean);return f["return"](_.Op(e,_.Sg,c))})};
361
+ pt=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,_.pa);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,Pd:f,codec:c,width:b,height:d,mimeType:null}})};
362
+ qt=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?_.An(c,b):null};st=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?_.An(c,b):null};tt=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))?_.An(c,b):null:null};
363
+ _.vt=function(a,b,c){for(var d=_.v(_.ut),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.wt=function(a){a=_.ut.indexOf(a);0<=a&&_.ut.splice(a,1)};_.xt=function(){};
364
+ yt=function(){this.g=new _.L("clpp.native.TrackManager");this.m=null;this.f=new _.wi;this.h=[];this.B=0;this.o={};this.F=[];this.a=new Map;this.w=null;this.l=new Map;this.A=!0;this.J=this.Mg.bind(this,_.at);this.L=this.Og.bind(this,_.at);this.K=this.Ng.bind(this,_.at);this.O=this.Mg.bind(this,_.bt);this.T=this.Og.bind(this,_.bt);this.P=this.Ng.bind(this,_.bt);this.G=this.Mg.bind(this,_.X);this.I=this.Og.bind(this,_.X);this.H=this.Ng.bind(this,_.X);this.j=null};
365
+ At=function(a,b){var c,d,e,f,g,h,l,m,n,p,q;return _.I(function(t){if(1==t.a){c=a.m.getConfiguration();d=_.vt(c,b.mimeType,_.sg);if(!d)return a.g.warn("Track MIME type is not supported",b),t["return"]();e=_.$k(b.url);f=b.mimeType===_.Mc?"tt":"c";g={objectType:f};h=_.cn(a.m.getNetworkEngine(),e,g);return _.x(t,h.U,2)}(l=t.f)&&l.data&&(m="External_"+a.B++,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},zt(a,q,m));
366
+ _.z(t)})};Ct=function(a,b,c){return Bt(a)&&b===_.bt&&!!c.enableHlsVideoTrackInfo};Dt=function(a,b,c){return Bt(a)&&(b===_.X||b===_.at)&&!!c.enableMetadata};Bt=function(a){a=a.m.getLoadedSource();return!(!a||a.type!==_.Yl&&!a.url.endsWith(".m3u8"))&&_.qj()};
367
+ Et=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}));_.z(f)})};
368
+ Ft=function(a,b,c){var d,e,f,g;return _.I(function(h){if(1==h.a)return(d=a.m.getLoadedSource())&&a.j?_.x(h,a.j.a(d.url,c),2):h["return"]();e=h.f;e.Sc&&(f=b.type+":"+b.label,(g=e.Sc.get(f))&&g.Mh&&(b.accessibility=g.Mh.split(",").map(function(l){return l.trim()}).map(function(l){return{value:l,type:b.type,protocol:"HLS"}})));_.z(h)})};
369
+ zt=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.F.push(e)}}};Gt=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
+ Ht=function(a,b){var c=Gt(a,b);c&&(c=Array.from(c),b===_.at&&(c=c.filter(function(d){return d.kind!==_.Te})));return c};It=function(a,b){return a.h.filter(function(c){return c.type===b})};Jt=function(a,b){var c=a.a.get(b)||null;return c&&c.renditions[0]};Kt=function(a,b){var c=a.l.get(b);return c&&c.renditions[0]};
371
+ Mt=function(a,b,c){var d=Ht(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 h=d.next();!h.done;h=d.next())h=h.value,h[g]=Lt(c,h,c.type)?e:
372
+ f}}}else if(a.g.debug("Disable track type "+b),a.a.get(b)&&d&&b===_.at){g=_.v(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.Wd;a.a.set(b,null)}b===_.X?a.m.trigger(new _.Q(_.Zc)):b===_.at&&a.m.trigger(new _.Q(_.ug))};Nt=function(a){return a.enabled||a.selected||a.mode===_.bg||a.mode===_.we};
373
+ Ot=function(a,b,c){c=_.Ii(c).filter(function(e){return e});a.g.info("Find preferred tracks for",b,c);var d=It(a,b);c.some(function(e){var f=_.so(e);return(e=d.find(function(g){g=_.so(g.language||"");return _.to(f,g)}))?(a.g.info("Will select track with id",e.id),Mt(a,b,e),!0):!1})};Pt=function(a){(a=a.m.getTextDisplayer())&&a.remove(0,Infinity)};
374
+ Lt=function(a,b,c){return a.type!==c?!1:void 0!==b.id&&null!==b.id&&""!==b.id?a.id===b.id:_.M.ta(a,{kind:_.$s(b.kind),language:_.$s(b.language),label:_.$s(b.label)},["kind","language","label"])};Rt=function(a){return a.name===ob&&Qt.some(function(b){return a.message.startsWith(b)})};
375
+ _.St=function(a){_.Di.call(this);this.log=new _.L(a);this.configuration=this.Fa=_.Mn();this.ca=this.F=null;this.ye=this.hh=!1;this.th=new _.L("clpp.video.events");this.Sd=null;this.wf=-1;this.Wj=this.zo.bind(this);this.Qd=new _.Ym;this.setNetworkEngine(this.Qd);this.O=new _.wi;this.Yg=this.ed=this.qd=this.P=null};_.Vt=function(a,b){a&&b&&(_.Tt.set(a,b),_.Ut.info("Registered TextDisplayerFactory: '"+a+"'"))};
376
+ _.Wt=function(a,b){var c=b.find(function(d){return(d=_.Tt.get(d))?d.a(a):!1});if(null==c)return _.Ut.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;_.Ut.info("Chosen the text displayer: "+c);return _.Tt.get(c)};Xt=function(){this.a=null;this.f=[]};_.Yt=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
+ Zt=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};$t=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};au=function(){this.h=this.f=this.j=null;this.a=[]};bu=function(a){return a.a.map(function(b){return _.M.jb(b)})};
378
+ _.cu=function(){this.h=this.w=this.B=this.F=this.l=this.o=this.j=this.A=NaN;this.a=new Xt;this.f=new au};_.du=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
+ gu=function(a){this.g=new _.L("clpp.StateManager");this.m=a;this.a=new _.wi;this.f=_.eu;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.O=_.qj();this.F=!1;this.J=Date.now();fu(this)};hu=function(a,b){return Object.keys(b)[a]};
380
+ iu=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
+ mu=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: "+hu(a.w-1,_.ju)),c=iu(a,_.dd),ku(a,_.dd,c)):d&&(a.B=a.o-a.L,a.g.info("Buffering finished. Reason: "+hu(a.w-1,_.ju)+". Buffering time: "+a.B+" ms"),c=iu(a,_.cd),ku(a,_.cd,c));c=hu(a.A,_.lu);d=hu(a.f,_.lu);a.g.info(_.vb+c+" -\x3e "+d);ku(a,_.ig,iu(a,""));return!0};
382
+ ku=function(a,b,c){a.m&&a.m.trigger(new _.Q(b,{detail:c}))};
383
+ nu=function(a,b){if(a.f===_.Co)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,mu(a,5));else if(b!==_.zg){var e=a.m.getPosition();e=null!==e&&void 0!==e&&0<=e?a.m.getBufferInfo().Ua(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===_.k&&2>a.l&&2===e.networkState;var f=typeof a.l===_.k&&0>=a.H&&a.f===_.eu,g=typeof a.l===_.k&&2>=a.l&&a.j;e=a.h||f||
384
+ e||g;!a.O||a.m.isLive()||2!==a.f||e||(f=b===_.$f&&4===a.l,(g=1===a.A)&&!a.F?e=!0:g||a.F||f||(e=!0));f=!1;e?f=mu(a,2):c?f=mu(a,4):a.G&&(f=mu(a,3));f&&(a.F=!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: "+hu(a.f,_.lu))}}};
385
+ fu=function(a){function b(d){return nu(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,mu(a,5))});a.a.on(c,ed,b);a.a.on(c,_.Af,function(){a.G=!0;a.j=!1;nu(a,_.Af)});a.a.on(c,_.lf,function(){a.G=!1;a.j=!1;nu(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;nu(a,d.type)});a.a.on(c,_.ag,function(d){a.h=!0;nu(a,d.type)});a.a.on(c,gg,b);a.a.on(c,_.$g,function(){a.j=!0;nu(a,_.$g)});a.a.on(c,_.qe,
386
+ function(d){(d=d&&d.detail)&&d.severity&&d.severity===_.P&&mu(a,_.Co)});a.a.on(c,_.Me,b);a.a.on(c,fd,function(){a.F=!0;nu(a,fd)});a.a.on(c,_.Ng,function(d){a.h=!0;nu(a,d.type)});a.a.on(c,_.Mg,function(d){a.h=!1;a.j=!1;nu(a,d.type)})};ou=function(){_.St.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
+ qu=function(a,b){if(a.w)throw new _.O(_.P,7,7E3);a.a||(a.h.on(b,_.qe,function(){var c=pu(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)};ru=function(a){var b=_.qj()?Js:void 0;return new _.Vr(a,b)};
388
+ tu=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.ca[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=_.su;d=_.Yn(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=ru({Db:e,onError:function(h){return a.onError(h)},Kg:function(){},Jg:function(h,l){a.trigger(new _.Q(_.de,
389
+ {expirationTime:l}))},onEvent:function(h){h instanceof _.Q?a.dispatchEvent(h):a.log.debug(_.Ob,h.type)},getConfiguration:function(){return a.getConfiguration()},td:function(){return a.td()}});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
+ Ha:0,mimeType:_.Ug,codecs:"",encrypted:!0,keyId:null,language:_.Hg,originalLanguage:_.Hg,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,Sp:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,spatialAudio:!1,zp: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
+ uu=function(a,b){dr(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){a.getState()!==_.Co&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};pu=function(a){if(null===a.ca||!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,Lp:c,message:a.a.error.message})};
392
+ vu=function(a){if(a.w)return new _.Tm(Promise.reject(new _.O(_.P,7,7E3)),function(){});var b=a.ca[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.I;c&&uu(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;(_.lj()||_.mj())&&d.load();var f=new _.om;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))})).ha(g))});dr(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.h,function(){return f.resolve()});d.error?f.reject(pu(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(pu(a))});
394
+ return new _.Tm(f,function(){var g=new _.O(_.P,7,7001);f.reject(g);return Promise.resolve()})};
395
+ wu=function(a,b){dr(b,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){if(a.isLive()&&a.getState()!==_.Co){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
+ xu=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())})};yu=function(){};
397
+ zu=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.F=_.M.ra(this.F,a);this.f=_.M.ra(this.f,a);this.H=0;this.o=[];this.fa=!1;this.w=null;this.K=[]};Au=function(a){a.K.forEach(function(b){return b()});a.K=[]};
398
+ Bu=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
+ Eu=function(a,b){var c,d;return _.I(function(e){switch(e.a){case 1:return _.F(e,2),_.hn(zf),a.P=_.qb,a.ka=!1,c=b.slice(1).map(function(f){return{config:f,ca:_.Sn(f)}}),_.x(e,_.Xo(a,b[0]),4);case 4:return c.forEach(function(f){Cu(a,f.config,f.ca)}),a.trigger(new _.Q(Oe)),_.x(e,a.a.setupPlaylist(b),5);case 5:return _.x(e,_.So(a),6);case 6:c.forEach(function(f){Du(a,f.config,f.ca)});_.hn(yf);_.kn("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;}})};Fu=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.F(e,2),_.hn(tf),c=_.Sn(b),Cu(a,b,c),_.x(e,a.a.appendLoad(b),4);if(2!=e.a)return Du(a,b,c),_.hn(sf),_.kn("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;})};Du=function(a,b,c){Oo(a,{configuration:b,ca:c,drmInfo:a.getDrmInfo(),yj:Object.keys(a.L),isLive:c[0].isLive})};
401
+ Cu=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
+ Iu=function(a){_.Di.call(this);var b=this;this.j=_.M.ra({transition:_.lf,preloadMedia:!1},a);this.h=[];this.a=0;var c=Gu(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 _.L(Dd);this.w.a.forEach(function(d){return Hu(b,d.player,!1)})};Ku=function(a){return Promise.all(Array.from(a.o.keys()).map(function(b){return Ju(a,b)}))};
403
+ Ju=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,Lu(a,c),3):d.C(3)}a.o["delete"](b);_.z(d)})};Nu=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Stop current playback (index: "+b.index+")"),b.player.pause(),Hu(a,b.player,!1),_.x(c,Lu(a,b),2);b.player=null;b.videoEl=null;b.role=Mu;_.z(c)})};
404
+ Lu=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)})};Qu=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=Ou,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),Hu(a,c,!0),_.x(d,c.load(b.config),3);Pu(a,b);return b.config.autoplay?d.C(0):_.x(d,c.play(),0)})};
405
+ Ru=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=Ou;Hu(a,b.player,!0);if(b.state===If)return _.hn(Ff),a.j.preloadMedia?_.x(c,b.player.play(),11):_.x(c,To(b.player),11);if(b.state!==Hf){c.C(7);break}return _.x(c,b.player.load(b.config),7);case 11:_.hn(Ef),_.kn("playlist.next",Ff,Ef);case 7:if(Pu(a,b),b.config.autoplay)c.C(0);
406
+ else return _.x(c,b.player.play(),0)}})};Pu=function(a,b){if(a.j.autoplayNext){var c=function(){a.g.info("Automatically transition to next item");a.wj()};b.player.on(_.pe,c);var d=b.player;b.disposers.push(function(){d.off(_.pe,c)})}};Tu=function(a){var b;return _.I(function(c){b=a.a+1;a.g.info("Preload following item (index: "+b+")");return _.x(c,Su(a,b),0)})};Uu=function(a){var b;return _.I(function(c){b=a.a-1;a.g.info("Preload preceding item (index: "+b+")");return _.x(c,Su(a,b),0)})};
407
+ Vu=function(a){var b;_.I(function(c){if(0===a.a)return _.x(c,Tu(a),0);if(a.a===a.h.length-1)return _.x(c,Uu(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 Su(a,d)})),0)})};
408
+ Su=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=Mu,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)),_.z(f)}})};Hu=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(Wa+b),d.classList.remove(vd)),a.A&&a.A(d,c))};
410
+ Wu=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="";_.z(c)})};
411
+ Gu=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
+ _.Yu=function(a){if(Xu.has(a))return Xu.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);Xu.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),Xu.set(a,b),b):!1};Zu=function(a){this.h=a;this.f={keepOriginalTimestamps:!0,remux:!1};this.a=new muxjs.mp4.Transmuxer(this.f)};
413
+ $u=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};av=function(){};_.bv=function(){};
414
+ cv=function(a,b,c,d,e){_.$p.call(this,Va);this.l=a;this.j=b;this.h=c;this.a=d;this.o=e;this.g=new _.L(zd);_.R.empty(this.l)?this.g.warn(_.Yb):this.eb(_.Md,{licenseUrl:this.l,videoRobustness:[_.Db,void 0],audioRobustness:[_.Cb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.Ee.bind(this)}});_.R.empty(this.j)?this.g.warn(_.sb):this.eb(_.Kd,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.Ee.bind(this)}});
415
+ _.R.empty(this.h)?this.g.warn(_.Qa):_.R.empty(this.a)?this.g.warn(_.Pa):this.eb(_.Id,{licenseUrl:this.h,certificateUrl:this.a,modifiers:{licenseRequest:this.dj.bind(this),licenseResponse:this.ej.bind(this),certificateRequest:this.Ee.bind(this),extractContentId:this.ji.bind(this)}})};dv=function(){};ev=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
+ fv=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)};gv=function(){return this.webkitSupportsPresentationMode(of)?(this.webkitSetPresentationMode(of),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
417
+ hv=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};iv=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};jv=function(a,b,c){return new window.TextTrackCue(a,b,c)};
418
+ kv=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};mv=function(a,b,c){if("input"===a)switch(this.type){case "range":a=qd}lv.call(this,a,b,c)};_.nv=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};_.ov=function(a,b,c){this.h=a;this.j=b;this.f=c||this.h.getMedia();this.a=null};_.qv=function(){this.a=new Blob([pv],{type:_.Ug})};
419
+ _.sv=function(a,b){var c=_.Fn(_.Gn(a),_.Hn(a));_.rv[c]=b};_.zv=function(a){a=_.Fn(_.Gn(a),_.Hn(a));return _.rv[a]||null};_.Hv=function(a){a=_.Fn(_.Gn(a),_.Hn(a));delete _.rv[a]};
420
+ _.Iv=function(a){a=a.getConfiguration();a=_.M.jb(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.lg?a.backgroundColor:null;this.T=typeof a.windowColor===_.lg?a.windowColor:null;this.O=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===_.k?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)};_.Nv=function(a){if(!a.o)return null;var b=a.H;switch(a.o){case Jv:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case Kv:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case Lv:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case Mv:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.Ze}};
422
+ _.Pv=function(a){_.Iv.call(this,a);this.l=a.getSurface().getMedia();this.f="clpp-video-"+Ov++;this.h=document.createElement(_.ng);this.j=this.w=!1;_.Zi(this.l,this.f);document.head.appendChild(this.h);this.Wb()};Qv=function(){};Rv=function(a){this.f=a;this.a=null;this.g=new _.L("clpp.text.Mp4TextParser")};_.Sv=function(a,b,c,d){this.id=a;this.f=b;this.a=c;this.h=d};_.Tv=function(){this.a=[];this.f=-1;this.h=null};
423
+ _.Vv=function(a,b,c,d){var e,f;return _.I(function(g){if(1==g.a)return _.F(g,2),_.x(g,Uv(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
+ Uv=function(a,b,c,d){var e,f,g,h;return _.I(function(l){if(1==l.a){if(d){if(e=_.Wv[d.toLowerCase()])return l["return"](e);_.Qh("Could not determine manifest type using MIME type ",d)}if(f=_.Bn(a)){if(g=_.Xv[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,Yv(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(h=_.Wv[d])return l["return"](h);_.Qh("Could not determine manifest type using MIME type",d)}throw new _.O(_.P,
425
+ 4,4E3,{url:a});})};Yv=function(a,b,c){var d,e,f;return _.I(function(g){if(1==g.a)return d=_.$k(a),Xk(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():"")})};_.Zv=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)$v=Object.setPrototypeOf;else{var aw;a:{var bw={dk:!0},cw={};try{cw.__proto__=bw;aw=cw.dk;break a}catch(a){}aw=!1}$v=aw?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
427
+ var rh=$v,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 h=this.j();try{g(h.resolve,h.reject)}catch(l){h.reject(l)}}function c(){this.a=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.f=function(g){if(null==this.a){this.a=[];var h=this;this.h(function(){h.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 h=0;h<g.length;++h){var l=
429
+ g[h];g[h]=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(h,n))}}var h=this,l=!1;return{resolve:g(this.F),reject:g(this.h)}};b.prototype.F=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 h=null!=g;break a;case _.ue:h=!0;break a;default:h=!1}h?this.B(g):this.o(g)}};
430
+ b.prototype.B=function(g){var h=void 0;try{h=g.then}catch(l){this.h(l);return}typeof h==_.ue?this.H(h,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,h){if(0!=this.f)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.f);this.f=g;this.l=h;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 h=this.j();
431
+ g.gf(h.resolve,h.reject)};b.prototype.H=function(g,h){var l=this.j();try{g.call(h,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,h){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.gf(l(g,m),l(h,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.gf=function(g,h){function l(){switch(m.f){case 1:g(m.l);break;case 2:h(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(h,l){l(g)})};b.race=function(g){return new b(function(h,l){for(var m=_.v(g),n=m.next();!n.done;n=m.next())d(n.value).gf(h,l)})};b.all=function(g){var h=_.v(g),l=h.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).gf(p(q.length-1),n),l=h.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;_.M={bk:20,jb:function(a){var b=_.M.R,c=_.M.Qi,d=_.M.ra;return b(a)||c(a)?a:d(a)}};_.K("clpp.utils.obj.cloneItem",_.M.jb);_.M.ra=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=_.M.Wi(c,{merging:b[d]},1));return c.merging||null};_.K("clpp.utils.obj.merge",_.M.ra);_.M.Qb=function(a){for(var b in a)if(void 0!==a[b])return!0;return!1};
434
+ _.M.Wi=function(a,b,c){var d=_.M.R,e=_.M.Qi,f=_.M.Wi,g=_.M.Tb,h=_.M.Sm,l=_.M.Cg,m=_.M.Mm,n=_.M.xd;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:h(n)?a[p]=n.subarray(0):n instanceof Array?a[p]=f([],n,c):!d(n)&&l(n)&&c<_.M.bk&&(a[p]=f(a[p],n,c));return a};_.M.Qi=function(a){a=typeof a;return a===_.lg||a===_.k||a===_.bd};_.M.Mm=function(a){return a instanceof Element};_.M.R=function(a){return null===a||"undefined"===typeof a};
435
+ _.M.xd=function(a){return typeof a===_.$e};_.M.Tb=function(a){return typeof a===_.ue};_.M.ia=function(a){return typeof a===_.lg};_.M.za=function(a){return typeof a===_.k};_.M.Mi=function(a){return typeof a===_.bd};_.M.Cg=function(a){var b=_.M.xd,c=_.M.R;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.M.Sm=function(a){var b=_.M.xd,c=_.M.Tb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
436
+ _.M.ta=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||!_.M.xd(a)||!_.M.xd(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var h=e[g];if(_.M.R(d)||0>d.indexOf(h))if(f[h]=!0,a[h]!==b[h])return!1}if(_.M.R(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.M.R(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
437
+ _.M.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.M.Nm=function(a,b,c){return a>=b&&a<=c};_.M.xh=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};_.M.yh=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};
438
+ _.M.Ai=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};_.M.Ri=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(!_.M.Ri(d,e))return!1}else if(void 0!==d&&void 0!==e&&d!==e)return!1}return!0};
439
+ _.M.Si=function(a,b){if(!_.M.Ri(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&&_.M.Si(d,e))return!0}return!1};
440
+ _.M.Gi=function(a,b){if(a===b||_.M.R(a)||_.M.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(_.M.Gi(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={},dw=[];_.K("clpp.log.getLoggers",function(){return _.M.jb(Nh)});_.K("clpp.log.addInterceptor",function(a){a&&dw.push(a)});_.K("clpp.log.removeInterceptor",function(a){a&&(a=dw.indexOf(a),0<=a&&dw.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&&(_.M.ia(b)&&(b=Sh(b)),Nh[a]=b)});
441
+ _.K("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.M.ia(a)&&(a=Sh(a));Oh=a});_.K("clpp.log.getLogLevel",function(){return Oh});_.r=_.L.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(dw);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.Ml=function(a){return a?this.tag?new _.L(this.tag+"."+a):new _.L(a):this};_.K("clpp.log.Logger",_.L);_.L.prototype.createChild=_.L.prototype.Ml;_.L.prototype.error=_.L.prototype.error;_.L.prototype.warn=_.L.prototype.warn;_.L.prototype.debug=_.L.prototype.debug;_.L.prototype.info=_.L.prototype.info;_.L.prototype.log=_.L.prototype.log;var Th=new _.L("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 _.L("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 _.L("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.Yb=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.Ta=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
446
+ _.r.tc=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.Ua=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.Ta();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.Ua;
448
+ _.gi.prototype.isBuffered=_.gi.prototype.tc;_.gi.prototype.bufferEnd=_.gi.prototype.Ta;_.gi.prototype.bufferStart=_.gi.prototype.Yb;_.gi.prototype.end=_.gi.prototype.end;_.gi.prototype.start=_.gi.prototype.start;var ji;ji=new _.L("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};
449
+ _.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,
452
450
  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,
453
451
  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
452
  HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_COULD_NOT_GUESS_MIME_TYPE:4021,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_LIMIT:4028,HLS_COULD_NOT_PARSE_SEGMENT_START_TIME:4030,CONTENT_UNSUPPORTED_BY_BROWSER:4032,SMOOTH_INVALID_MANIFEST_XML:4033,
@@ -456,76 +454,76 @@ SMOOTH_EMPTY_PRESENTATION:4034,SMOOTH_MEDIA_PROCESSING_ERROR:4035,SMOOTH_INVALID
456
454
  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,
457
455
  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,
458
456
  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,
459
- 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(_.qi,Error);_.Q.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.Q.prototype.stopImmediatePropagation=function(){this.f=!0};_.Q.prototype.stopPropagation=function(){};_.r=_.ri.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])};_.si.prototype.release=function(){_.vi(this)};_.si.prototype.on=function(a,b,c,d){a=new wi(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.si.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)};_.si.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||(ui(f),this.a.remove(b,f))}};xi.prototype.trigger=function(a){try{this.a.handleEvent?this.a.handleEvent(a):this.a.call(this.f,a)}catch(b){_.Sh("clpp","Uncaught exception in event handler for event '"+this.h+"'",b,b?b.message:null,b?b.stack:null)}};_.r=yi.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 xi(a,b,c||this.f));return b};_.r.one=function(a,b,c){this.a.push(a,new xi(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=_.zi.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.de.on(a,b,c)};_.r.one=function(a,b,c){return this.de.one(a,b,c)};_.r.off=function(a,b){return this.de.off(a,b)};_.r.forwardEventsTo=function(a){a&&(0<=this.$d.indexOf(a)||this.$d.push(a))};_.r.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};
460
- _.r.stopForwardingEventsTo=function(a){a&&(a=this.$d.indexOf(a),0<=a&&this.$d.splice(a,1))};_.r.trigger=function(a){this.de.trigger(a);for(var b=_.v(this.$d),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.zi.prototype.off=_.zi.prototype.off;_.zi.prototype.one=_.zi.prototype.one;_.zi.prototype.on=_.zi.prototype.on;_.zi.prototype.removeEventListener=_.zi.prototype.removeEventListener;_.zi.prototype.addEventListener=_.zi.prototype.addEventListener;_.r=Ai.prototype;_.r.load=function(){};_.r.start=function(){};_.r.ld=function(){};_.r.resume=function(){};_.r.pause=function(){};_.r.skip=function(){};_.r.getVolume=function(){};_.r.setVolume=function(){};_.r.getPosition=function(){};_.r.Gc=function(){};_.r.hd=function(){};_.K("clpp.ads.IAdsManager",Ai);Ai.prototype.getPosition=Ai.prototype.getPosition;Ai.prototype.setVolume=Ai.prototype.setVolume;Ai.prototype.getVolume=Ai.prototype.getVolume;Ai.prototype.skip=Ai.prototype.skip;
461
- Ai.prototype.pause=Ai.prototype.pause;Ai.prototype.resume=Ai.prototype.resume;_.K("clpp.events.ERROR",_.ke);_.K("clpp.events.LOADEDMETADATA",_.Fe);_.K("clpp.events.BUFFERING_ENDED",_.Zc);_.K("clpp.events.BUFFERING_STARTED",_.$c);_.K("clpp.events.STATE_CHANGED",_.eg);_.K("clpp.events.AUDIO_TRACK_CHANGED",_.Vc);_.K("clpp.events.TEXT_TRACK_CHANGED",_.qg);_.K("clpp.events.VIDEO_TRACK_CHANGED",_.Rg);_.K("clpp.events.BITRATE_CHANGED",_.Xc);_.K("clpp.events.TRACKS_ADDED",_.wg);_.K("clpp.events.LOAD_START",He);_.K("clpp.events.RELEASING",_.Mf);_.K("clpp.events.RELEASED",Lf);
462
- _.K("clpp.events.DESTROYING","destroying");_.K("clpp.events.DESTROYED","destroyed");_.K("clpp.events.VIDEO_BUFFER_CHANGED",_.Qg);_.K("clpp.events.AUDIO_BUFFER_CHANGED",_.Uc);_.K("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.K("clpp.events.DRM_SESSION_CREATED",$d);_.K("clpp.events.DRM_SESSION_UPDATE",_.be);_.K("clpp.events.DRM_SESSION_PERSISTED",_.ae);_.K("clpp.events.DRM_RENEWAL_STARTED",Zd);_.K("clpp.events.DRM_EXPIRATION_UPDATE",_.Xd);_.K("clpp.events.DRM_LICENSE_REQUESTED",Yd);
463
- _.K("clpp.events.AUTOPLAY_NOT_ALLOWED",_.Wc);_.K("clpp.events.PLAY",_.hf);_.K("clpp.events.SEEKING",_.Xf);_.K("clpp.events.SEEKED",_.Wf);_.K("clpp.events.USER_SEEKING",_.Ig);_.K("clpp.events.USER_SEEKED",_.Hg);_.lu={SEEKING:1,NO_DATA:2};_.K("clpp.events.BufferingReasons",_.lu);_.K("clpp.events.ADS_TIMELINE_CHANGED",_.Bc);_.K("clpp.events.AD_LOADED",_.rc);_.K("clpp.events.AD_BREAK_STARTED",_.gc);_.K("clpp.events.AD_STARTED",_.xc);_.K("clpp.events.AD_BUFFERING",_.ic);_.K("clpp.events.AD_PROGRESS",_.uc);
464
- _.K("clpp.events.AD_FIRST_QUARTILE",_.lc);_.K("clpp.events.AD_MIDPOINT",_.sc);_.K("clpp.events.AD_THIRD_QUARTILE",_.zc);_.K("clpp.events.AD_PAUSED",_.tc);_.K("clpp.events.AD_RESUMED",_.vc);_.K("clpp.events.AD_SKIPPED",_.wc);_.K("clpp.events.AD_CLICKED",_.jc);_.K("clpp.events.AD_IMPRESSION",_.qc);_.K("clpp.events.AD_COMPLETED",_.kc);_.K("clpp.events.AD_STOPPED",_.yc);_.K("clpp.events.AD_BREAK_STOPPED",_.hc);_.K("clpp.events.AD_HLS_ASSET_LIST_REQUEST",mc);
465
- _.K("clpp.events.AD_HLS_ASSET_LIST_RESPONSE",nc);_.K("clpp.events.AD_HLS_RESOLVED",oc);_.K("clpp.events.SIMID_CREATIVE_STARTED",_.Zf);_.K("clpp.events.SIMID_CREATIVE_STOPPED",_.$f);_.K("clpp.events.CASTING_STARTED",_.dd);_.K("clpp.events.CASTING_ENDED","castingended");_.K("clpp.events.CAST_STATUS_CHANGED",_.ed);_.K("clpp.events.AIRPLAY_STATUS_CHANGED",_.Ec);_.K("clpp.events.AIRPLAY_CASTING_STARTED",_.Dc);_.K("clpp.events.AIRPLAY_CASTING_ENDED",_.Cc);_.K("clpp.events.TIMELINE_CUE_ADDED",_.rg);
466
- _.K("clpp.events.TIMELINE_CUE_ENTER",_.sg);_.K("clpp.events.TIMELINE_CUE_EXIT",_.tg);_.K("clpp.events.TIMELINE_CUES_CHANGED",_.ug);_.K("clpp.events.MPD_TYPE_CHANGED",_.Qe);_.K("clpp.events.LIVE_TURNED_STATIC",_.Ce);_.K("clpp.events.VIMOND_RESPONSE",_.Sg);_.K("clpp.events.PLAYLIST_ITEM_CHANGED",_.uf);_.K("clpp.events.PLAYLIST_MODIFIED",_.wf);_.K("clpp.events.SC_PLAYLIST_TIMELINE_CHANGED",_.Uf);_.K("clpp.events.SC_PLAYLIST_ITEM_CHANGED",_.Sf);_.K("clpp.events.SC_PLAYLIST_ENDED",_.Rf);
467
- _.K("clpp.events.SC_PLAYLIST_LIVE_TURNED_STATIC",_.Tf);_.K("clpp.events.CDN_SWITCH_SUCCESS",_.fd);_.K("clpp.events.ONLINE_STATUS_CHANGED",$e);_.K("clpp.events.CMSD_EVENT","cmsd-event");_.K("clpp.events.YOSPACE_SESSION_STARTED",_.gh);_.K("clpp.events.YOSPACE_SESSION_ENDED",_.fh);_.K("clpp.events.CONTENT_STEERING_CHANGE",_.Jd);_.K("clpp.events.CONTENT_STEERING_LOCATION_BAN_UPDATE",_.Kd);_.r=Bi.prototype;_.r.vb=function(){};_.r.wb=function(){};_.r.Bb=function(){};_.r.getId=function(){};_.r.getCreativeId=function(){};_.r.$b=function(){};_.r.getApiFramework=function(){};_.r.getAdSystem=function(){};_.r.getAdvertiserName=function(){};_.r.getTitle=function(){};_.r.getDuration=function(){};_.r.getPosition=function(){};_.r.getSkipTimeOffset=function(){};_.r.ec=function(){};_.r.xb=function(){};_.r.getMediaUrl=function(){};_.r.lb=function(){};_.r.kb=function(){};_.r.Wa=function(){};
468
- _.r.Xa=function(){};_.r.getPodIndex=function(){};_.r.Ob=function(){};_.r.zb=function(){};_.r.nb=function(){};_.r.getWrapperAdIds=function(){};_.r.getWrapperAdSystems=function(){};_.r.getWrapperCreativeIds=function(){};_.r.cc=function(){};_.r.canSeek=function(){};_.K("clpp.ads.IAd",Bi);Bi.prototype.canSeek=Bi.prototype.canSeek;Bi.prototype.getVideoElement=Bi.prototype.cc;Bi.prototype.getWrapperCreativeIds=Bi.prototype.getWrapperCreativeIds;Bi.prototype.getWrapperAdSystems=Bi.prototype.getWrapperAdSystems;
469
- Bi.prototype.getWrapperAdIds=Bi.prototype.getWrapperAdIds;Bi.prototype.getSequenceLength=Bi.prototype.nb;Bi.prototype.getPositionInSequence=Bi.prototype.zb;Bi.prototype.getPodTimeOffset=Bi.prototype.Ob;Bi.prototype.getPodIndex=Bi.prototype.getPodIndex;Bi.prototype.getPodType=Bi.prototype.Xa;Bi.prototype.getMediaBitrate=Bi.prototype.Wa;Bi.prototype.getMediaHeight=Bi.prototype.kb;Bi.prototype.getMediaWidth=Bi.prototype.lb;Bi.prototype.getMediaUrl=Bi.prototype.getMediaUrl;
470
- Bi.prototype.getClickThroughUrl=Bi.prototype.xb;Bi.prototype.isBumper=Bi.prototype.ec;Bi.prototype.getSkipTimeOffset=Bi.prototype.getSkipTimeOffset;Bi.prototype.getPosition=Bi.prototype.getPosition;Bi.prototype.getDuration=Bi.prototype.getDuration;Bi.prototype.getTitle=Bi.prototype.getTitle;Bi.prototype.getAdvertiserName=Bi.prototype.getAdvertiserName;Bi.prototype.getAdSystem=Bi.prototype.getAdSystem;Bi.prototype.getApiFramework=Bi.prototype.getApiFramework;Bi.prototype.getSourceId=Bi.prototype.$b;
471
- Bi.prototype.getCreativeId=Bi.prototype.getCreativeId;Bi.prototype.getId=Bi.prototype.getId;Bi.prototype.getTechnology=Bi.prototype.Bb;Bi.prototype.getAdManagerVersion=Bi.prototype.wb;Bi.prototype.getAdManagerName=Bi.prototype.vb;_.r=Ci.prototype;_.r.vb=function(){return""};_.r.wb=function(){return""};_.r.Bb=function(){return 2};_.r.getId=function(){return this.B};_.r.getCreativeId=function(){return""};_.r.$b=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.j};_.r.getSkipTimeOffset=function(){return-1};
472
- _.r.canSeek=function(){return this.A};_.r.ec=function(){return!1};_.r.xb=function(){return null};_.r.getMediaUrl=function(){return null};_.r.lb=function(){return 0};_.r.kb=function(){return 0};_.r.Wa=function(){return 0};_.r.Xa=function(){return this.G};_.r.getPodIndex=function(){return 0};_.r.Ob=function(){return 0};_.r.zb=function(){return this.f};_.r.nb=function(){return this.a};_.r.getWrapperAdIds=function(){return[]};_.r.getWrapperAdSystems=function(){return[]};_.r.getWrapperCreativeIds=function(){return[]};
473
- _.r.cc=function(){return this.videoEl};_.r.hm=function(){return this.D};Ci.prototype.getCustomAttributes=Ci.prototype.hm;Ci.prototype.getVideoElement=Ci.prototype.cc;Ci.prototype.getWrapperCreativeIds=Ci.prototype.getWrapperCreativeIds;Ci.prototype.getWrapperAdSystems=Ci.prototype.getWrapperAdSystems;Ci.prototype.getWrapperAdIds=Ci.prototype.getWrapperAdIds;Ci.prototype.getSequenceLength=Ci.prototype.nb;Ci.prototype.getPositionInSequence=Ci.prototype.zb;Ci.prototype.getPodTimeOffset=Ci.prototype.Ob;
474
- Ci.prototype.getPodIndex=Ci.prototype.getPodIndex;Ci.prototype.getPodType=Ci.prototype.Xa;Ci.prototype.getMediaBitrate=Ci.prototype.Wa;Ci.prototype.getMediaHeight=Ci.prototype.kb;Ci.prototype.getMediaWidth=Ci.prototype.lb;Ci.prototype.getMediaUrl=Ci.prototype.getMediaUrl;Ci.prototype.getClickThroughUrl=Ci.prototype.xb;Ci.prototype.isBumper=Ci.prototype.ec;Ci.prototype.canSeek=Ci.prototype.canSeek;Ci.prototype.getSkipTimeOffset=Ci.prototype.getSkipTimeOffset;Ci.prototype.getPosition=Ci.prototype.getPosition;
475
- Ci.prototype.getDuration=Ci.prototype.getDuration;Ci.prototype.getTitle=Ci.prototype.getTitle;Ci.prototype.getAdvertiserName=Ci.prototype.getAdvertiserName;Ci.prototype.getAdSystem=Ci.prototype.getAdSystem;Ci.prototype.getApiFramework=Ci.prototype.getApiFramework;Ci.prototype.getSourceId=Ci.prototype.$b;Ci.prototype.getCreativeId=Ci.prototype.getCreativeId;Ci.prototype.getId=Ci.prototype.getId;Ci.prototype.getTechnology=Ci.prototype.Bb;Ci.prototype.getAdManagerVersion=Ci.prototype.wb;
476
- Ci.prototype.getAdManagerName=Ci.prototype.vb;Di.prototype.has=function(){return this.a.some(function(a){return a.cf})};Di.prototype.get=function(){var a=this,b;return _.I(function(c){if(1==c.a){b=a.a.find(function(d){return d.cf});if(!b)throw Error("No available players in the pool");b.cf=!1;return _.x(c,b.ready,2)}return c["return"](b.player)})};
477
- Di.prototype.release=function(a){var b=this,c=this.a.find(function(d){return d.player===a});if(!c)return Promise.resolve();c.cf=!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};Di.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)})};var Oi=function kw(a){var c;return _.Fh(kw,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.x(d,c,3):d.C(0);c++;return d.C(2)})};_.K("clpp.utils.BufferUtils",Li);Li.toArrayBuffer=Vi;Li.toDataView=_.Ui;Li.toInt32Array=_.Ti;Li.toUint32Array=Si;Li.toUint16Array=Ri;Li.toUint8Array=_.Ni;Li.equal=Pi;_.R={};_.R.Da=new _.L("clpp.utils.strings");_.R.Tj=16E3;_.R.fromCharCode=function(a){for(var b=_.R.Tj,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=_.Ni(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(La);return a}a=escape(_.R.fromCharCode(a));try{return decodeURIComponent(a)}catch(b){throw Error(La);}};
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.ee.on(a,b,c)};_.r.one=function(a,b,c){return this.ee.one(a,b,c)};_.r.off=function(a,b){return this.ee.off(a,b)};_.r.forwardEventsTo=function(a){a&&(0<=this.ae.indexOf(a)||this.ae.push(a))};_.r.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};
458
+ _.r.stopForwardingEventsTo=function(a){a&&(a=this.ae.indexOf(a),0<=a&&this.ae.splice(a,1))};_.r.trigger=function(a){this.ee.trigger(a);for(var b=_.v(this.ae),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.Cd=function(){};_.r.md=function(){};_.r.resume=function(){};_.r.pause=function(){};_.r.skip=function(){};_.r.getVolume=function(){};_.r.setVolume=function(){};_.r.getPosition=function(){};_.r.Ic=function(){};_.r.jd=function(){};_.K("clpp.ads.IAdsManager",Ei);Ei.prototype.getPosition=Ei.prototype.getPosition;Ei.prototype.setVolume=Ei.prototype.setVolume;Ei.prototype.getVolume=Ei.prototype.getVolume;Ei.prototype.skip=Ei.prototype.skip;Ei.prototype.pause=Ei.prototype.pause;
459
+ Ei.prototype.resume=Ei.prototype.resume;_.K("clpp.events.ERROR",_.qe);_.K("clpp.events.LOADEDMETADATA",_.Me);_.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",Oe);_.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);_.ju={SEEKING:1,NO_DATA:2};_.K("clpp.events.BufferingReasons",_.ju);_.K("clpp.events.ADS_TIMELINE_CHANGED",_.Fc);_.K("clpp.events.AD_LOADED",_.vc);_.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",_.uc);_.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",rc);_.K("clpp.events.AD_HLS_RESOLVED",tc);_.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",_.Cf);_.K("clpp.events.PLAYLIST_MODIFIED",_.Df);_.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",_.Qd);_.K("clpp.events.CONTENT_STEERING_LOCATION_BAN_UPDATE",_.Rd);_.r=Fi.prototype;_.r.wb=function(){};_.r.xb=function(){};_.r.Cb=function(){};_.r.getId=function(){};_.r.getCreativeId=function(){};_.r.ac=function(){};_.r.getApiFramework=function(){};_.r.getAdSystem=function(){};_.r.getAdvertiserName=function(){};_.r.getTitle=function(){};_.r.getDuration=function(){};_.r.getPosition=function(){};_.r.getSkipTimeOffset=function(){};_.r.fc=function(){};_.r.yb=function(){};_.r.getMediaUrl=function(){};_.r.nb=function(){};_.r.lb=function(){};_.r.Ya=function(){};
466
+ _.r.Za=function(){};_.r.getPodIndex=function(){};_.r.Pb=function(){};_.r.Ab=function(){};_.r.ob=function(){};_.r.getWrapperAdIds=function(){};_.r.getWrapperAdSystems=function(){};_.r.getWrapperCreativeIds=function(){};_.r.dc=function(){};_.r.canSeek=function(){};_.K("clpp.ads.IAd",Fi);Fi.prototype.canSeek=Fi.prototype.canSeek;Fi.prototype.getVideoElement=Fi.prototype.dc;Fi.prototype.getWrapperCreativeIds=Fi.prototype.getWrapperCreativeIds;Fi.prototype.getWrapperAdSystems=Fi.prototype.getWrapperAdSystems;
467
+ Fi.prototype.getWrapperAdIds=Fi.prototype.getWrapperAdIds;Fi.prototype.getSequenceLength=Fi.prototype.ob;Fi.prototype.getPositionInSequence=Fi.prototype.Ab;Fi.prototype.getPodTimeOffset=Fi.prototype.Pb;Fi.prototype.getPodIndex=Fi.prototype.getPodIndex;Fi.prototype.getPodType=Fi.prototype.Za;Fi.prototype.getMediaBitrate=Fi.prototype.Ya;Fi.prototype.getMediaHeight=Fi.prototype.lb;Fi.prototype.getMediaWidth=Fi.prototype.nb;Fi.prototype.getMediaUrl=Fi.prototype.getMediaUrl;
468
+ Fi.prototype.getClickThroughUrl=Fi.prototype.yb;Fi.prototype.isBumper=Fi.prototype.fc;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.ac;
469
+ Fi.prototype.getCreativeId=Fi.prototype.getCreativeId;Fi.prototype.getId=Fi.prototype.getId;Fi.prototype.getTechnology=Fi.prototype.Cb;Fi.prototype.getAdManagerVersion=Fi.prototype.xb;Fi.prototype.getAdManagerName=Fi.prototype.wb;_.r=Gi.prototype;_.r.wb=function(){return""};_.r.xb=function(){return""};_.r.Cb=function(){return 2};_.r.getId=function(){return this.B};_.r.getCreativeId=function(){return""};_.r.ac=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.j};_.r.getSkipTimeOffset=function(){return-1};
470
+ _.r.canSeek=function(){return this.A};_.r.fc=function(){return!1};_.r.yb=function(){return null};_.r.getMediaUrl=function(){return null};_.r.nb=function(){return 0};_.r.lb=function(){return 0};_.r.Ya=function(){return 0};_.r.Za=function(){return this.G};_.r.getPodIndex=function(){return 0};_.r.Pb=function(){return 0};_.r.Ab=function(){return this.f};_.r.ob=function(){return this.a};_.r.getWrapperAdIds=function(){return[]};_.r.getWrapperAdSystems=function(){return[]};_.r.getWrapperCreativeIds=function(){return[]};
471
+ _.r.dc=function(){return this.videoEl};_.r.pm=function(){return this.F};Gi.prototype.getCustomAttributes=Gi.prototype.pm;Gi.prototype.getVideoElement=Gi.prototype.dc;Gi.prototype.getWrapperCreativeIds=Gi.prototype.getWrapperCreativeIds;Gi.prototype.getWrapperAdSystems=Gi.prototype.getWrapperAdSystems;Gi.prototype.getWrapperAdIds=Gi.prototype.getWrapperAdIds;Gi.prototype.getSequenceLength=Gi.prototype.ob;Gi.prototype.getPositionInSequence=Gi.prototype.Ab;Gi.prototype.getPodTimeOffset=Gi.prototype.Pb;
472
+ Gi.prototype.getPodIndex=Gi.prototype.getPodIndex;Gi.prototype.getPodType=Gi.prototype.Za;Gi.prototype.getMediaBitrate=Gi.prototype.Ya;Gi.prototype.getMediaHeight=Gi.prototype.lb;Gi.prototype.getMediaWidth=Gi.prototype.nb;Gi.prototype.getMediaUrl=Gi.prototype.getMediaUrl;Gi.prototype.getClickThroughUrl=Gi.prototype.yb;Gi.prototype.isBumper=Gi.prototype.fc;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.ac;Gi.prototype.getCreativeId=Gi.prototype.getCreativeId;Gi.prototype.getId=Gi.prototype.getId;Gi.prototype.getTechnology=Gi.prototype.Cb;Gi.prototype.getAdManagerVersion=Gi.prototype.xb;
474
+ Gi.prototype.getAdManagerName=Gi.prototype.wb;Hi.prototype.has=function(){return this.a.some(function(a){return a.ff})};Hi.prototype.get=function(){var a=this,b;return _.I(function(c){if(1==c.a){b=a.a.find(function(d){return d.ff});if(!b)throw Error("No available players in the pool");b.ff=!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.ff=!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.Ea=new _.L("clpp.utils.strings");_.R.ak=16E3;_.R.fromCharCode=function(a){for(var b=_.R.ak,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=_.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(Na);return a}a=escape(_.R.fromCharCode(a));try{return decodeURIComponent(a)}catch(b){throw Error(Na);}};
478
476
  _.K("clpp.utils.strings.fromUtf8",_.R.ea);
479
- _.R.Jc=function(a,b,c){if(!a)return"";var d=_.R.Da;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=_.Ni(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(_.Ni(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)};
480
- _.R.fe=function(a,b){if(_.M.ia(a))return a;var c="",d=!!b,e=_.Ni(a);239===e[0]&&187===e[1]&&191===e[2]?c=_.R.ea(e):254===e[0]&&255===e[1]?c=_.R.Jc(e.subarray(2),!1):255===e[0]&&254===e[1]&&(c=_.R.Jc(e.subarray(2),!0));var f=function(g,h){return g.byteLength<=h||32<=g[h]&&126>=g[h]}.bind(null,e);_.R.Da.debug("Unable to find byte-order-mark, making an educated guess.");0===e[0]&&0===e[2]?c=_.R.Jc(a,!1):0===e[1]&&0===e[3]?c=_.R.Jc(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.R.ea(a));if(c)return d&&(c=escape(c)),
481
- c;throw Error("Unable to detect text encoding");};_.K("clpp.utils.strings.fromBytesAutoDetect",_.R.fe);_.R.eb=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.eb);_.R.Qf=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};
482
- _.K("clpp.utils.strings.toUtf16",_.R.Qf);_.R.Fd=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=Si(e):2===c?f=Ri(e):f=_.Ni(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};_.K("clpp.utils.strings.toByteArray",_.R.Fd);_.R.startsWith=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.K("clpp.utils.strings.startsWith",_.R.startsWith);
483
- _.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.zf=function(a){return!!(a&&0<a.length)};_.R.empty=function(a){return!a||0===a.length};_.R.vp=function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()};_.R.yp=function(a){return a.replace(/-(\w)/g,function(b,c){return c.toUpperCase()})};
484
- _.R.eg=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.M.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.eg);
485
- _.R.Ml=function(a,b){function c(h){return function(l,m){return d(h,m.length-1)}}function d(h,l){return h.length<l?d("0"+h,l):h}b=void 0===b?"%h:%mm:%ss":b;if(null===a||void 0===a)a=0;if(null===b||void 0===b)b="%h:%mm:%ss";var e=Math.floor(a/3600),f=Math.floor((a-3600*e)/60),g=Math.floor(a-3600*e-60*f);return b.replace(/(%h+)/,c(String(e))).replace(/(%m+)/,c(String(f))).replace(/(%s+)/,c(String(g)))};_.K("clpp.utils.strings.durationToString",_.R.Ml);
486
- _.R.Ol=function(a,b){for(var c in b)if(b[c]===a)return c;return""};_.R.wm=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.wm);_.R.Uo=function(a){_.R.Dj.innerHTML=a;return _.R.Dj.textContent};_.R.Dj=document.createElement("span");_.R.Wg=function(a){a=a.replace(/<[^>]+>/gi,"");a=_.R.Uo(a);return a=a.replace(/<[^>]+>/gi,"")};_.R.Ri=function(a){return a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")};_.K("clpp.utils.dom.createHTMLElement",_.Zi);$i.prototype.set=function(a){this.h.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=bj(this,a)};$i.prototype.get=function(){return this.a};_.cj.prototype.ha=function(a){return dj(this,a,!1)};_.cj.prototype.Hb=function(a){return dj(this,a,!0)};_.cj.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.ej.prototype.Zg=function(){this.stop();this.f();return this};_.ej.prototype.ha=function(a){var b=this;this.stop();this.a=(new _.cj(function(){b.f()})).ha(a);return this};_.ej.prototype.Hb=function(a){var b=this;this.stop();this.a=(new _.cj(function(){b.f()})).Hb(a);return this};_.ej.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.K("clpp.utils.Timer",_.ej);_.ej.prototype.stop=_.ej.prototype.stop;_.ej.prototype.tickEvery=_.ej.prototype.Hb;_.ej.prototype.tickAfter=_.ej.prototype.ha;
487
- _.ej.prototype.tickNow=_.ej.prototype.Zg;_.K(yd,gj);gj.getInfo=_.Kj;
488
- var sj=null,rj=null,uj=new _.L(yd),Bj="android",Aj="ios",Gj="linux",Cj="osx",Dj="windows",Ej="tizen",Fj="webos",zj=_.Dg,Jj=_.Dg,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,
477
+ _.R.Lc=function(a,b,c){if(!a)return"";var d=_.R.Ea;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.ge=function(a,b){if(_.M.ia(a))return a;var c="",d=!!b,e=_.Qi(a);239===e[0]&&187===e[1]&&191===e[2]?c=_.R.ea(e):254===e[0]&&255===e[1]?c=_.R.Lc(e.subarray(2),!1):255===e[0]&&254===e[1]&&(c=_.R.Lc(e.subarray(2),!0));var f=function(g,h){return g.byteLength<=h||32<=g[h]&&126>=g[h]}.bind(null,e);_.R.Ea.debug("Unable to find byte-order-mark, making an educated guess.");0===e[0]&&0===e[2]?c=_.R.Lc(a,!1):0===e[1]&&0===e[3]?c=_.R.Lc(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.R.ea(a));if(c)return d&&(c=escape(c)),
479
+ c;throw Error("Unable to detect text encoding");};_.K("clpp.utils.strings.fromBytesAutoDetect",_.R.ge);_.R.gb=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.gb);_.R.Vf=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.Vf);_.R.Gd=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.Gd);_.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.Ef=function(a){return!!(a&&0<a.length)};_.R.empty=function(a){return!a||0===a.length};_.R.Ep=function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()};_.R.Hp=function(a){return a.replace(/-(\w)/g,function(b,c){return c.toUpperCase()})};
482
+ _.R.jg=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.M.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.jg);
483
+ _.R.Ul=function(a,b){function c(h){return function(l,m){return d(h,m.length-1)}}function d(h,l){return h.length<l?d("0"+h,l):h}b=void 0===b?"%h:%mm:%ss":b;if(null===a||void 0===a)a=0;if(null===b||void 0===b)b="%h:%mm:%ss";var e=Math.floor(a/3600),f=Math.floor((a-3600*e)/60),g=Math.floor(a-3600*e-60*f);return b.replace(/(%h+)/,c(String(e))).replace(/(%m+)/,c(String(f))).replace(/(%s+)/,c(String(g)))};_.K("clpp.utils.strings.durationToString",_.R.Ul);
484
+ _.R.Wl=function(a,b){for(var c in b)if(b[c]===a)return c;return""};_.R.Em=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.Em);_.R.bp=function(a){_.R.Lj.innerHTML=a;return _.R.Lj.textContent};_.R.Lj=document.createElement("span");_.R.fh=function(a){a=a.replace(/<[^>]+>/gi,"");a=_.R.bp(a);return a=a.replace(/<[^>]+>/gi,"")};_.R.Zi=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.ha=function(a){return fj(this,a,!1)};_.ej.prototype.Ib=function(a){return fj(this,a,!0)};_.ej.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.gj.prototype.ih=function(){this.stop();this.f();return this};_.gj.prototype.ha=function(a){var b=this;this.stop();this.a=(new _.ej(function(){b.f()})).ha(a);return this};_.gj.prototype.Ib=function(a){var b=this;this.stop();this.a=(new _.ej(function(){b.f()})).Ib(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.Ib;_.gj.prototype.tickAfter=_.gj.prototype.ha;
485
+ _.gj.prototype.tickNow=_.gj.prototype.ih;_.K(Ed,ij);ij.getInfo=_.Mj;
486
+ var uj=null,tj=null,wj=new _.L(Ed),Dj="android",Cj="ios",Ij="linux",Ej="osx",Fj="windows",Gj="tizen",Hj="webos",Bj=_.Ig,Lj=_.Ig,Kj={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,
489
487
  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,
490
488
  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},
491
- 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=Oj.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?_.Xi(a,nd):this.g.debug("No media element available that could be hidden")};
492
- _.r.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(nd):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&&_.Xi(a,_.md);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
493
- _.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){_.Xi(a,nd)};_.r.show=function(a){a.classList.remove(nd)};_.r.release=function(){this.j.release()};Oj.prototype.removeElementFromContainer=Oj.prototype.removeElementFromContainer;Oj.prototype.addElementToContainer=Oj.prototype.addElementToContainer;Oj.prototype.getCastElement=Oj.prototype.getCastElement;
494
- Oj.prototype.getContainer=Oj.prototype.getContainer;Oj.prototype.getMedia=Oj.prototype.getMedia;var Lj={disableContainer:!1,webOSStartupPatch:!0,crossorigin:"anonymous",containerEl:null},Mj=1;_.r=Tj.prototype;_.r.getCurrentItem=function(){return this.f};_.r.nf=function(){return this.f?this.f.player:null};_.r.mi=function(){return Array.from(this.o.values())};_.r.qe=function(){return 0<this.o.size};_.r.play=function(a){return Vj(this,a,_.hf)};_.r.load=function(a){return Vj(this,a,_.De)};_.r.release=function(){var a=this,b,c;return _.I(function(d){if(1==d.a)return b=Promise,c=b.all,_.x(d,ck(a),3);if(2!=d.a)return _.x(d,c.call(b,[d.f,a.f?tk(a,a.f):Promise.resolve()]),2);a.f=null;a.B=!1;_.z(d)})};
495
- _.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.w.destroy(),3);Gk(a);_.z(b)})};_.r.isMuted=function(){return this.G};var Ak="preload",Ck=_.Ie,lk="primary",kk="ad";var Sk=[403,401];_.K("clpp.net.DEFAULT_FATAL_STATUS_CODES",Sk);_.K("clpp.net.makeRequest",_.Xk);_.Wk=6;_.K("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.Wk,CONTENT_STEERING:7});_.w(ql,_.zi);_.r=ql.prototype;_.r.destroy=function(){var a=this;return _.I(function(b){Il(a);a.f=[];a.w=!1;a.l.setSeekInterceptor(null);return _.x(b,a.a.destroy(),0)})};_.r.Rb=function(){return this.w};_.r.setMuted=function(a){var b=this.a;(b.G=a)?(b.a.setMuted(!0),Fk(b,!0)):(a=b.getCurrentItem(),jk(b,a,a&&a.dc?kk:lk))};_.r.isMuted=function(){return this.a.isMuted()};_.r.isLive=function(){var a=this.a.nf();return a?a.isLive():null};var Kk=0,vl=1,Pl=2,Ql=3,ul=4,Xl=5,Lk=6;_.r=Zl.prototype;_.r.load=function(){return Promise.resolve()};_.r.start=function(){return Promise.resolve()};_.r.ld=function(a,b,c){var d=a.getConfiguration();a=Object.assign({},{config:d,player:a,jb:b},d.ads.hls||{},{jo:c});this.a=new ql(a);tl(this.a)};_.r.setMuted=function(a){this.a&&this.a.setMuted(a)};_.r.isMuted=function(){return this.a?this.a.isMuted():!0};_.r.resume=function(){var a=rl(this.a);a&&a.play()};_.r.pause=function(){var a=rl(this.a);a&&a.pause()};_.r.skip=function(){};
496
- _.r.getVolume=function(){var a=rl(this.a);return a?a.getVolume()||0:0};_.r.setVolume=function(a){var b=rl(this.a);if(b)return b.setVolume(a)};_.r.getPosition=function(){var a=rl(this.a);return a?a.getPosition():-1};_.r.hd=function(){return!this.a.Rb()};_.r.Gc=function(){return this.a.destroy()};Zl.prototype.getPosition=Zl.prototype.getPosition;Zl.prototype.setVolume=Zl.prototype.setVolume;Zl.prototype.getVolume=Zl.prototype.getVolume;Zl.prototype.skip=Zl.prototype.skip;Zl.prototype.pause=Zl.prototype.pause;
497
- Zl.prototype.resume=Zl.prototype.resume;bm.prototype.release=function(){this.a.release();fm(this);this.m=null};_.im.prototype.destroy=function(){for(var a=[],b=_.v(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.T["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.lm.prototype.resolve=function(){};_.lm.prototype.reject=function(){};_.nm.prototype.toString=function(){var a=this.a.toString();return this.f?a.replace(lw,""):a};var lw=/^[A-Za-z]+:/;var Hm=window.fetch,Em=window.AbortController,Dm=window.Headers;var Im=window.XMLHttpRequest;_.K("clpp.utils.Uint8ArrayUtils",Km);Km.toStandardBase64=_.Lm;Km.concat=_.Rm;Km.equal=_.Qm;Km.toHex=_.Pm;Km.fromHex=_.Om;Km.fromBase64=_.Nm;Km.toBase64Url=_.Mm;_.Um.prototype.abort=function(){this.a=!0;return this.B()};_.w(Wm,_.Um);Wm.prototype.then=function(a,b){this.T=this.T.then(a,b);return this};Wm.prototype["catch"]=function(a){this.T=this.T["catch"](a);return this};Wm.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=_.Zm.prototype;_.r.Ho=function(a){0<a?_.Mh("Rate limit set to "+a+"bps"):_.Mh("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.nh=function(a){this.h.push(a)};_.r.Nd=function(a){this.j.push(a)};_.r.vj=function(a){this.h=this.h.filter(function(b){return b!==a})};_.r.Mf=function(a){this.j=this.j.filter(function(b){return b!==a})};
498
- _.r.fetch=function(a){var b=void 0;1===a.type&&(b={objectType:mw});return _.dn(this,a,b)};_.K("clpp.net.NetworkEngine",_.Zm);_.Zm.prototype.fetch=_.Zm.prototype.fetch;_.Zm.prototype.removeResponseModifier=_.Zm.prototype.Mf;_.Zm.prototype.removeRequestModifier=_.Zm.prototype.vj;_.Zm.prototype.addResponseModifier=_.Zm.prototype.Nd;_.Zm.prototype.addRequestModifier=_.Zm.prototype.nh;_.Zm.prototype.setRateLimit=_.Zm.prototype.Ho;var en=[];var hn=!!(performance&&performance.mark&&performance.measure),kn=new _.L("clpp.perf");_.K("clpp.version",_.ia);_.K("clpp.name",_.xa);var so=null;_.K("clpp.configure",function(a){so=a});_.Vl="application/x-mpegurl";_.K("clpp.Type",{DASH:_.Hc,HLS:_.Vl,SMOOTH_STREAMING:_.Mc,MP4:_.Pg,MP3:"audio/mp3"});_.K("clpp.TimelineCueType",{SCTE35:_.Vf,DASH_CALLBACK:_.Re,HLS_DATERANGE:_.re,UNKNOWN:_.Dg});_.K("clpp.SpeedUpMode",{DECODER:_.Nd,SEEK:"seek"});_.K("clpp.CodecSwitchingStrategy",{PREVENT:_.Gf,SMOOTH:_.bg});var nn=new Map,mn=1,rn=2,qn=3,pn=4;_.K("clpp.utils.url.queryString",_.zn);var En;_.Fn=_.ng;_.uu={VIDEO:_.Ng,AUDIO:_.Oc,TEXT:_.Fn,bp:_.Fc,IMAGE:_.ue,mh:_.kg};_.nw=1/15;En={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/]};En[_.Fn]=[/^vtt$/,/^wvtt/,/^stpp/];_.ow=(new Map).set(_.zd,_.zd).set("frameRate","framerate").set("bandwidth","bitrate").set(_.bh,_.bh).set(_.pe,_.pe).set("channelsCount","channels");var mw="m";_.K("clpp.utils.PlayerConfiguration",Kn);Kn.create=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return _.Qn(b,{yo:!1})};Kn.build=_.Qn;_.K("clpp.utils.media.detectType",Sn);var Vn=new _.L("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:_.Se,CLEAR_KEY:_.bf,WIDEVINE:_.Gd,PLAYREADY:_.Ed,FAIRPLAY:_.Cd,PRIMETIME:_.Bd});_.Xn={};_.K("clpp.drm.registerDrmEnvironment",_.Yn);var bo={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},Ln="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";var ro="vod",qo="live";var wo=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",
499
- "cs"],["dan","da"],["deu","de"],[_.Qd,"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",
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=Qj.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()};Qj.prototype.removeElementFromContainer=Qj.prototype.removeElementFromContainer;Qj.prototype.addElementToContainer=Qj.prototype.addElementToContainer;Qj.prototype.getCastElement=Qj.prototype.getCastElement;
492
+ Qj.prototype.getContainer=Qj.prototype.getContainer;Qj.prototype.getMedia=Qj.prototype.getMedia;var Nj={disableContainer:!1,webOSStartupPatch:!0,crossorigin:"anonymous",containerEl:null},Oj=1;_.r=Vj.prototype;_.r.getCurrentItem=function(){return this.f};_.r.rf=function(){return this.f?this.f.player:null};_.r.yi=function(){return Array.from(this.o.values())};_.r.re=function(){return 0<this.o.size};_.r.play=function(a){return Xj(this,a,_.pf)};_.r.load=function(a){return Xj(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,fk(a),3);if(2!=d.a)return _.x(d,c.call(b,[d.f,a.f?wk(a,a.f):Promise.resolve()]),2);a.f=null;a.B=!1;_.z(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.w.destroy(),3);Jk(a);_.z(b)})};_.r.isMuted=function(){return this.G};var Dk="preload",Fk=_.Pe,ok="primary",nk="ad";var Vk=[403,401];_.K("clpp.net.DEFAULT_FATAL_STATUS_CODES",Vk);_.K("clpp.net.makeRequest",_.$k);_.Zk=6;_.K("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.Zk,CONTENT_STEERING:7});_.w(tl,_.Di);_.r=tl.prototype;_.r.destroy=function(){var a=this;return _.I(function(b){Ll(a);a.f=[];a.w=!1;a.l.setSeekInterceptor(null);return _.x(b,a.a.destroy(),0)})};_.r.Sb=function(){return this.w};_.r.setMuted=function(a){var b=this.a;(b.G=a)?(b.a.setMuted(!0),Ik(b,!0)):(a=b.getCurrentItem(),mk(b,a,a&&a.ec?nk:ok))};_.r.isMuted=function(){return this.a.isMuted()};_.r.isLive=function(){var a=this.a.rf();return a?a.isLive():null};var Nk=0,yl=1,Sl=2,Tl=3,xl=4,$l=5,Ok=6;_.r=bm.prototype;_.r.load=function(){return Promise.resolve()};_.r.Cd=function(){return!0};_.r.md=function(a,b,c){var d=a.getConfiguration();a=Object.assign({},{config:d,player:a,kb:b},d.ads.hls||{},{so:c});this.a=new tl(a);wl(this.a)};_.r.setMuted=function(a){this.a&&this.a.setMuted(a)};_.r.isMuted=function(){return this.a?this.a.isMuted():!0};_.r.resume=function(){var a=ul(this.a);a&&a.play()};_.r.pause=function(){var a=ul(this.a);a&&a.pause()};_.r.skip=function(){};
494
+ _.r.getVolume=function(){var a=ul(this.a);return a?a.getVolume()||0:0};_.r.setVolume=function(a){var b=ul(this.a);if(b)return b.setVolume(a)};_.r.getPosition=function(){var a=ul(this.a);return a?a.getPosition():-1};_.r.jd=function(){return!this.a.Sb()};_.r.Ic=function(){return this.a.destroy()};bm.prototype.getPosition=bm.prototype.getPosition;bm.prototype.setVolume=bm.prototype.setVolume;bm.prototype.getVolume=bm.prototype.getVolume;bm.prototype.skip=bm.prototype.skip;bm.prototype.pause=bm.prototype.pause;
495
+ bm.prototype.resume=bm.prototype.resume;em.prototype.release=function(){this.a.release();im(this);this.m=null};_.lm.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)};_.om.prototype.resolve=function(){};_.om.prototype.reject=function(){};_.qm.prototype.toString=function(){var a=this.a.toString();return this.f?a.replace(ew,""):a};var ew=/^[A-Za-z]+:/;_.K("clpp.utils.Uint8ArrayUtils",Jm);Jm.toStandardBase64=_.Km;Jm.concat=_.Qm;Jm.equal=_.Pm;Jm.toHex=_.Om;Jm.fromHex=_.Nm;Jm.fromBase64=_.Mm;Jm.toBase64Url=_.Lm;_.Tm.prototype.abort=function(){this.a=!0;return this.B()};_.w(Vm,_.Tm);Vm.prototype.then=function(a,b){this.U=this.U.then(a,b);return this};Vm.prototype["catch"]=function(a){this.U=this.U["catch"](a);return this};Vm.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=_.Ym.prototype;_.r.Po=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.wh=function(a){this.h.push(a)};_.r.Od=function(a){this.j.push(a)};_.r.Dj=function(a){this.h=this.h.filter(function(b){return b!==a})};_.r.Rf=function(a){this.j=this.j.filter(function(b){return b!==a})};
496
+ _.r.fetch=function(a){var b=void 0;1===a.type&&(b={objectType:fw});return _.cn(this,a,b)};_.K("clpp.net.NetworkEngine",_.Ym);_.Ym.prototype.fetch=_.Ym.prototype.fetch;_.Ym.prototype.removeResponseModifier=_.Ym.prototype.Rf;_.Ym.prototype.removeRequestModifier=_.Ym.prototype.Dj;_.Ym.prototype.addResponseModifier=_.Ym.prototype.Od;_.Ym.prototype.addRequestModifier=_.Ym.prototype.wh;_.Ym.prototype.setRateLimit=_.Ym.prototype.Po;var dn=[];var gn=!!(performance&&performance.mark&&performance.measure),jn=new _.L("clpp.perf");_.K("clpp.version",_.ia);_.K("clpp.name",_.ya);var qo=null;_.K("clpp.configure",function(a){qo=a});_.Yl="application/x-mpegurl";_.K("clpp.Type",{DASH:_.Lc,HLS:_.Yl,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 mn=new Map,ln=1,qn=2,pn=3,on=4;_.K("clpp.utils.url.queryString",_.yn);var Cn;_.Dn=_.rg;_.su={VIDEO:_.Sg,AUDIO:_.Sc,TEXT:_.Dn,lp:_.Jc,IMAGE:_.Ae,vh:_.og};_.gw=1/15;Cn={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/]};Cn[_.Dn]=[/^vtt$/,/^wvtt/,/^stpp/];var fw="m";_.K("clpp.utils.PlayerConfiguration",In);In.create=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return _.On(b,{Go:!1})};In.build=_.On;_.K("clpp.utils.media.detectType",Qn);var Tn=new _.L("clpp.sources");_.K("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.Cb,SW_SECURE_DECODE:_.Db,HW_SECURE_CRYPTO:Ta,HW_SECURE_DECODE:Ua,HW_SECURE_ALL:Sa});_.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});_.Vn={};_.K("clpp.drm.registerDrmEnvironment",_.Wn);var $n={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},Jn="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";var po="vod",oo="live";var uo=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",
497
+ "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",
500
498
  "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",
501
499
  "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",
502
500
  "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",
503
- "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var Jo,Ho,Io;Eo.prototype.release=function(){this.a=null;this.f.Mf(this.h)};_.pw="maxSuggestedBitrateKbps";Jo={du:"duress",etp:_.le,mb:_.pw,rd:"responseDelay",rtt:"roundTripTime"};Ho={at:"availabilityTime",br:"encodedBitrateKbps",ht:"heldTime",n:"intermediaryIdentifier",nor:"nextObjectResponse",nrr:"nextRangeResponse",d:"objectDuration",ot:"objectType",su:"startup",st:"streamType",sf:"streamingFormat",v:Kg};Io=new _.L("clpp.net.CmsdManager");_.w(S,_.zi);_.r=S.prototype;_.r.on=function(a,b,c){return _.zi.prototype.on.call(this,a,b,c)};_.r.one=function(a,b,c){return _.zi.prototype.one.call(this,a,b,c)};_.r.off=function(a,b){return _.zi.prototype.off.call(this,a,b)};_.r.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.Q(_.ke,{detail:a}))};_.r.je=function(a){a=this.L[a];void 0===a&&(a=null);return a};_.r.getSurface=function(){return this.j};_.r.getConfiguration=function(){return _.M.ib(this.f)};
504
- _.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=Ro(this);return this.l["finally"](function(){ap(a);a.g.debug("Player released");a.l=null})};
505
- _.r.destroy=function(){var a=this;if(this.U)return this.g.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.U=!0;return this.release().then(function(){a.g.debug(Ia);a.trigger(new _.Q("destroying"));return a.Tc(_.Xe)}).then(function(){a.a&&a.a.stopForwardingEventsTo(a);a.de.clear();a.gb.release();if(a.a)return a.a.destroy()}).then(function(){return a.J.destroy()}).then(function(){mi(a);a.a=null;a.A=null;a.trigger(new _.Q("destroyed"))})};
506
- _.r.load=function(a){var b=this,c,d,e;return _.I(function(f){switch(f.a){case 1:_.F(f,2);_.jn(qf);b.R=_.pa;b.ka=!0;c=_.Un(a);d=Rn(a)?a:{};if(d.license)throw new _.N(_.O,7,7100,"License cannot be passed into the load method.");return _.x(f,_.Zo(b,d,c),4);case 4:return _.x(f,_.$o(b),5);case 5:return _.x(f,_.Uo(b),6);case 6:_.jn(pf);_.ln("player.load",qf,pf);_.G(f,0);break;case 2:e=_.H(f);ap(b);if(b.l)throw b.g.info(ab),new _.N(_.O,7,7E3);throw e;}})};
507
- _.r.preload=function(a){var b=this,c;return _.I(function(d){if(1==d.a)return _.x(d,_.Zo(b,a),2);if(!b.a)return b.g.warn(sb),d["return"]();c=b.a;return c.preload?_.x(d,c.preload(b.f),0):(b.g.warn(wb),d["return"]())})};_.r.Tc=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!this.ka)return Promise.resolve();var e=this;d=this.ja.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.kh(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};
508
- _.r.use=function(a){(a=ni(a))&&a.playerConstructed(this)};_.r.remove=function(a){return(this.getState()<=_.gu||this.Z)&&null!==hi(a)?(oi(a),this.da=!0):!1};_.r.play=function(){return this.a?!this.h||this.h instanceof Zl||this.a.namespace()===_.rd?this.a.play():this.h.start(this.a):Promise.reject("No player initialized. You need to load content before calling play.")};_.r.pause=function(){return this.a?this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};
509
- _.r.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.r.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.ci};_.r.getState=function(){return this.a?this.a.getState():_.gu};_.r.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.r.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.r.isPaused=function(){return this.a&&this.a.isPaused()||!1};_.r.getPosition=function(){return this.a?this.a.getPosition():0};
510
- _.r.seek=function(a){return this.getState()===_.Ko?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.Kc=function(){var a=this.a;return a&&a.Kc?a.Kc():null};_.r.getVolume=function(){return this.a?this.a.getVolume():null};_.r.setVolume=function(a){this.a&&this.a.setVolume(a)};
511
- _.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.h&&this.h instanceof Zl?this.h.isMuted():this.a&&this.a.isMuted()||!1};
512
- _.r.setMuted=function(a){this.a&&this.a.setMuted(a);this.h&&this.h instanceof Zl&&this.h.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.vi=function(){return Object.freeze(this.Ja)};_.r.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};
513
- _.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.qd=a;Xo(this)};_.r.setCdnErrorCallback=function(a){this.O=a;this.a&&this.a.setCdnErrorCallback(this.O)};_.K("clpp.Player",S);S.registerPlugin=_.dp;S.prototype.setCdnErrorCallback=S.prototype.setCdnErrorCallback;S.prototype.setDrmCustomDataModifier=S.prototype.setDrmCustomDataModifier;
514
- S.prototype.resetAbr=S.prototype.resetAbr;S.prototype.getTimelineCues=S.prototype.getTimelineCues;S.prototype.getLoadedSource=S.prototype.getLoadedSource;S.prototype.getSources=S.prototype.vi;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;
515
- 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.Kc;S.prototype.getSeekRange=S.prototype.getSeekRange;
501
+ "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var Bo,zo,Ao;wo.prototype.release=function(){this.a=null;this.f.Rf(this.h)};_.hw="maxSuggestedBitrateKbps";Bo={du:"duress",etp:_.re,mb:_.hw,rd:"responseDelay",rtt:"roundTripTime"};zo={at:"availabilityTime",br:"encodedBitrateKbps",ht:"heldTime",n:"intermediaryIdentifier",nor:"nextObjectResponse",nrr:"nextRangeResponse",d:"objectDuration",ot:"objectType",su:"startup",st:"streamType",sf:"streamingFormat",v:Pg};Ao=new _.L("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.ke=function(a){a=this.L[a];void 0===a&&(a=null);return a};_.r.getSurface=function(){return this.j};_.r.getConfiguration=function(){return _.M.jb(this.f)};
502
+ _.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=Po(this);return this.l["finally"](function(){Zo(a);a.g.debug("Player released");a.l=null})};
503
+ _.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(Ka);a.trigger(new _.Q("destroying"));return a.Uc(_.df)}).then(function(){a.a&&a.a.stopForwardingEventsTo(a);a.ee.clear();a.Ra.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"))})};
504
+ _.r.load=function(a){var b=this,c,d,e;return _.I(function(f){switch(f.a){case 1:_.F(f,2);_.hn(xf);b.P=_.ra;b.ka=!0;c=_.Sn(a);d=Pn(a)?a:{};if(d.license)throw new _.O(_.P,7,7100,"License cannot be passed into the load method.");return _.x(f,_.Xo(b,d,c),4);case 4:return _.x(f,_.Yo(b),5);case 5:return _.x(f,_.So(b),6);case 6:_.hn(wf);_.kn("player.load",xf,wf);_.G(f,0);break;case 2:e=_.H(f);Zo(b);if(b.l)throw b.g.info(bb),new _.O(_.P,7,7E3);throw e;}})};
505
+ _.r.preload=function(a){var b=this,c;return _.I(function(d){if(1==d.a)return _.x(d,_.Xo(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.Uc=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!this.ka)return Promise.resolve();var e=this;d=this.ja.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)};
506
+ _.r.use=function(a){(a=ri(a))&&a.playerConstructed(this)};_.r.remove=function(a){return(this.getState()<=_.eu||this.Z)&&null!==li(a)?(si(a),this.da=!0):!1};_.r.play=function(){return this.a?this.h&&!this.h.Cd()?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.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};
507
+ _.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():_.eu};_.r.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.r.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.r.isPaused=function(){return this.a&&this.a.isPaused()||!1};_.r.getPosition=function(){return this.a?this.a.getPosition():0};
508
+ _.r.seek=function(a){return this.getState()===_.Co?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.Mc=function(){var a=this.a;return a&&a.Mc?a.Mc():null};_.r.getVolume=function(){return this.a?this.a.getVolume():null};_.r.setVolume=function(a){this.a&&this.a.setVolume(a)};
509
+ _.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.h&&this.h instanceof bm?this.h.isMuted():this.a&&this.a.isMuted()||!1};
510
+ _.r.setMuted=function(a){this.a&&this.a.setMuted(a);this.h&&this.h instanceof bm&&this.h.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.Ei=function(){return Object.freeze(this.Fa)};_.r.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};
511
+ _.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.qd=a;Vo(this)};_.r.setCdnErrorCallback=function(a){this.O=a;this.a&&this.a.setCdnErrorCallback(this.O)};_.K("clpp.Player",S);S.registerPlugin=_.bp;S.prototype.setCdnErrorCallback=S.prototype.setCdnErrorCallback;S.prototype.setDrmCustomDataModifier=S.prototype.setDrmCustomDataModifier;
512
+ S.prototype.resetAbr=S.prototype.resetAbr;S.prototype.getTimelineCues=S.prototype.getTimelineCues;S.prototype.getLoadedSource=S.prototype.getLoadedSource;S.prototype.getSources=S.prototype.Ei;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;
513
+ 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.Mc;S.prototype.getSeekRange=S.prototype.getSeekRange;
516
514
  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;
517
- 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.je;S.prototype.off=S.prototype.off;S.prototype.one=S.prototype.one;S.prototype.on=S.prototype.on;_.gu=0;_.Ko=6;
518
- _.nu={IDLE:_.gu,PREPARING:1,BUFFERING:2,PLAYING:3,PAUSED:4,ENDED:5,ERROR:_.Ko,UNSET:7};S.State=_.nu;var No=[];_.r=ep.prototype;_.r.load=function(a){var b=this;return _.I(function(c){return b.Pc?_.x(c,ip(b,function(d){return _.I(function(e){return _.x(e,d.load(a),0)})}),0):(b.Da.warn("No main player, cannot load."),c["return"]())})};_.r.Eo=function(a){this.j=a;this.Da.info("Looping set to",a)};_.r.$j=function(a){this.f.push(a)};
519
- _.r.Zj=function(a){if(this.Pc)this.Da.warn("Main player already set.");else{this.Pc=a;var b=this.Wm.bind(this),c=this.Xm.bind(this),d=this.nk.bind(this);a.on(_.eg,b);a.on(_.vg,c);a.on(_.je,d);this.h.push(function(){a.off(_.eg,b);a.off(_.vg,c);a.on(_.je,d)})}};_.r.clear=function(){this.Pc=null;this.f=[];this.h.forEach(function(a){return a()});this.h=[]};
520
- _.r.nk=function(){var a=this;return _.I(function(b){if(!a.j)return b.C(0);a.Da.info("Looping playback.");return _.x(b,ip(a,function(c){return _.I(function(d){return 1==d.a?_.x(d,c.seek(0),2):_.x(d,c.play(),0)})}),0)})};
521
- _.r.Wm=function(a){var b=this;this.a||(a=a.detail.currentState,3===a?(this.Da.info("Mirroring playing."),hp(this,function(c){return _.I(function(d){return _.x(d,c.play(),0)})})):[4,2,_.Ko].includes(a)&&(this.Da.info("Mirroring paused/buffering/error."),hp(this,function(c){var d,e;return _.I(function(f){if(1==f.a)return d=Math.round(b.Pc.getPosition())-.1,_.x(f,c.seek(d),2);if(3!=f.a)return _.x(f,fj(.2),3);e=c.getState();return 3!==e&&2!==e?f.C(0):_.x(f,c.pause(),0)})})))};
522
- _.r.Xm=function(){var a=this;this.a||hp(this,function(b){var c,d,e,f,g,h,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.Pc.getPosition();d=b.getPosition();e=c-d;f=Math.abs(e);g=b.getPlaybackRate();h=b.getState();if(3!==h||.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===
523
- l)return 1!==l&&a.Da.info("Delta "+e.toFixed(1)+" s."),m["return"]();1===l?a.Da.info("Secondary caught up."):1>l?a.Da.info("Secondary slowing down to catch up. Rate: "+(l.toFixed(1)+", delta: "+e.toFixed(1)+" s")):1<l&&a.Da.info("Secondary speeding up to catch up. Rate: "+(l.toFixed(1)+", delta: "+e.toFixed(1)+" s"));b.setPlaybackRate(l);_.z(m)}})})};_.K(qd,ep);ep.prototype.clear=ep.prototype.clear;ep.prototype.addMainPlayer=ep.prototype.Zj;ep.prototype.addSecondaryPlayer=ep.prototype.$j;
524
- ep.prototype.setLoop=ep.prototype.Eo;ep.prototype.load=ep.prototype.load;jp.prototype.release=function(){this.j.release();this.a=new Set;this.f.clear();null!=this.h&&(clearInterval(this.h),this.h=null)};jp.prototype.destroy=function(){var a=this;return _.I(function(b){a.release();_.z(b)})};jp.prototype.getTimelineCues=function(){return Array.from(this.a.values()).sort(function(a,b){return a.startTime-b.startTime})};_.Hp.prototype.ta=function(a){return this.payload===a.payload&&this.startTime===a.startTime&&this.endTime===a.endTime&&this.payloadType===a.payloadType};_.K("clpp.text.Cue",_.Hp);_.Hp.positionAlign={LEFT:_.Ae,RIGHT:_.Be,CENTER:_.hd,AUTO:"auto"};_.Bp=_.ng;_.Hp.payloadType={TEXT:_.Bp,VTT_XML:_.Ug,TTML_XML:_.zg};_.Cp=_.hd;_.qw={LEFT:_.xe,RIGHT:_.Qf,CENTER:_.Cp,START:_.dg,END:_.ie};_.Hp.textAlign=_.qw;var Gp="ltr";_.Hp.direction={HORIZONTAL_LEFT_TO_RIGHT:Gp,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.Dp="horizontal-tb";
525
- _.Hp.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Dp,VERTICAL_LEFT_TO_RIGHT:_.Lg,VERTICAL_RIGHT_TO_LEFT:_.Mg};_.Ep=0;_.Hp.lineInterpretation={LINE_NUMBER:_.Ep,PERCENTAGE:1};_.Fp=_.dg;_.rw={CENTER:_.hd,START:_.Fp,END:_.ie};_.Hp.lineAlign=_.rw;_.K("clpp.text.CueRegion",_.Kp);_.Ip=1;_.Kp.units={PX:0,PERCENTAGE:_.Ip,LINES:2};var Jp="";_.Kp.scrollMode={NONE:Jp,UP:"up"};_.Kp.displayAlign={BEFORE:"flex-end",CENTER:_.hd,AFTER:"flex-start"};
526
- _.Kp.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Ad,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};Lp.prototype.destroy=function(){this.a.release();this.j=!1;this.l=this.a=this.h=this.f=null;return Promise.resolve()};Lp.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,_.Ac,function(c){return Mp(b,c)}),this.a.on(this.f,kd,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.Yf&&(e.mode=_.qe)}}))};
527
- Lp.prototype.o=function(a){var b=new _.Hp(a.startTime,a.endTime,a.text,_.Ug);if(_.M.ia(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Lg;break;case "rl":b.writingMode=_.Mg}_.M.ya(a.size)&&(b.size=a.size);if(_.M.ia(a.align))switch(a.align){case _.xe:case _.dg:b.textAlign=_.dg;break;case _.hd:b.textAlign=_.Cp;break;case _.Qf:case _.ie:b.textAlign=_.ie}_.M.ya(a.position)&&(b.position=a.position);if(_.M.ia(a.positionAlign))switch(a.positionAlign){case _.Ae:b.positionAlign=_.Ae;break;case _.hd:b.positionAlign=
528
- _.hd;break;case _.Be:b.positionAlign=_.Be}_.M.ya(a.line)&&(b.line=a.line);if(_.M.ia(a.lineAlign))switch(a.lineAlign){case _.dg:b.lineAlign=_.Fp;break;case _.hd:b.lineAlign=_.hd;break;case _.ie:b.lineAlign=_.ie}_.M.Ei(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.Ep:1);return b};var Np={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av0?1/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.Pp={text:{mp4:_.Ic,m4s:_.Ic,m4i:_.Ic,cmft:_.Ic,vtt:_.og,ttml:_.Lc},video:{mp4:_.Pg,m4s:_.Pg,m4f:_.Pg,m4i:_.Pg,m4v:_.Pg,cmfv:_.Pg,ts:_.Og},audio:{mp4:_.Sc,m4s:_.Sc,m4f:_.Sc,m4i:_.Sc,m4a:_.Sc,cmfa:_.Sc,ts:_.Og,aac:_.Pc,ec3:_.Rc,ac3:_.Qc},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.Rp.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};_.Rp.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name===a});return b.length?b[0]:null};_.Rp.prototype.hasAttribute=function(a){return null!=this.getAttribute(a)};_.Up.prototype.getPosition=function(){return this.position};_.Up.prototype.me=function(){return this.ga?this.ga-this.la+1:null};_.Up.prototype.f=_.ih(0);_.w(_.Vp,_.Up);Xp.prototype.release=function(){this.a=this.f=null};var $p={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,
515
+ 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.ke;S.prototype.off=S.prototype.off;S.prototype.one=S.prototype.one;S.prototype.on=S.prototype.on;_.eu=0;_.Co=6;
516
+ _.lu={IDLE:_.eu,PREPARING:1,BUFFERING:2,PLAYING:3,PAUSED:4,ENDED:5,ERROR:_.Co,UNSET:7};S.State=_.lu;var Lo=[];_.r=cp.prototype;_.r.load=function(a){var b=this;return _.I(function(c){return b.Qc?_.x(c,gp(b,function(d){return _.I(function(e){return _.x(e,d.load(a),0)})}),0):(b.Ea.warn("No main player, cannot load."),c["return"]())})};_.r.Mo=function(a){this.j=a;this.Ea.info("Looping set to",a)};_.r.hk=function(a){this.f.push(a)};
517
+ _.r.gk=function(a){if(this.Qc)this.Ea.warn("Main player already set.");else{this.Qc=a;var b=this.dn.bind(this),c=this.en.bind(this),d=this.wk.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.Qc=null;this.f=[];this.h.forEach(function(a){return a()});this.h=[]};
518
+ _.r.wk=function(){var a=this;return _.I(function(b){if(!a.j)return b.C(0);a.Ea.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)})};
519
+ _.r.dn=function(a){var b=this;this.a||(a=a.detail.currentState,3===a?(this.Ea.info("Mirroring playing."),fp(this,function(c){return _.I(function(d){return _.x(d,c.play(),0)})})):[4,2,_.Co].includes(a)&&(this.Ea.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.Qc.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)})})))};
520
+ _.r.en=function(){var a=this;this.a||fp(this,function(b){var c,d,e,f,g,h,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.Qc.getPosition();d=b.getPosition();e=c-d;f=Math.abs(e);g=b.getPlaybackRate();h=b.getState();if(3!==h||.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===
521
+ l)return 1!==l&&a.Ea.info("Delta "+e.toFixed(1)+" s."),m["return"]();1===l?a.Ea.info("Secondary caught up."):1>l?a.Ea.info("Secondary slowing down to catch up. Rate: "+(l.toFixed(1)+", delta: "+e.toFixed(1)+" s")):1<l&&a.Ea.info("Secondary speeding up to catch up. Rate: "+(l.toFixed(1)+", delta: "+e.toFixed(1)+" s"));b.setPlaybackRate(l);_.z(m)}})})};_.K(wd,cp);cp.prototype.clear=cp.prototype.clear;cp.prototype.addMainPlayer=cp.prototype.gk;cp.prototype.addSecondaryPlayer=cp.prototype.hk;
522
+ cp.prototype.setLoop=cp.prototype.Mo;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();_.z(b)})};hp.prototype.getTimelineCues=function(){return Array.from(this.a.values()).sort(function(a,b){return a.startTime-b.startTime})};_.Fp.prototype.ta=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:_.od,AUTO:"auto"};_.zp=_.rg;_.Fp.payloadType={TEXT:_.zp,VTT_XML:_.Zg,TTML_XML:_.Eg};_.Ap=_.od;_.iw={LEFT:_.De,RIGHT:_.Uf,CENTER:_.Ap,START:_.hg,END:_.oe};_.Fp.textAlign=_.iw;var Ep="ltr";_.Fp.direction={HORIZONTAL_LEFT_TO_RIGHT:Ep,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.Bp="horizontal-tb";
523
+ _.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;_.jw={CENTER:_.od,START:_.Dp,END:_.oe};_.Fp.lineAlign=_.jw;_.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:_.od,AFTER:"flex-start"};
524
+ _.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,qd,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.bg&&(e.mode=_.we)}}))};
525
+ Jp.prototype.o=function(a){var b=new _.Fp(a.startTime,a.endTime,a.text,_.Zg);if(_.M.ia(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Qg;break;case "rl":b.writingMode=_.Rg}_.M.za(a.size)&&(b.size=a.size);if(_.M.ia(a.align))switch(a.align){case _.De:case _.hg:b.textAlign=_.hg;break;case _.od:b.textAlign=_.Ap;break;case _.Uf:case _.oe:b.textAlign=_.oe}_.M.za(a.position)&&(b.position=a.position);if(_.M.ia(a.positionAlign))switch(a.positionAlign){case _.Ge:b.positionAlign=_.Ge;break;case _.od:b.positionAlign=
526
+ _.od;break;case _.He:b.positionAlign=_.He}_.M.za(a.line)&&(b.line=a.line);if(_.M.ia(a.lineAlign))switch(a.lineAlign){case _.hg:b.lineAlign=_.Dp;break;case _.od:b.lineAlign=_.od;break;case _.oe:b.lineAlign=_.oe}_.M.Mi(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.ne=function(){return this.ga?this.ga-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,
529
527
  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,
530
528
  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,
531
529
  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,
@@ -539,122 +537,122 @@ _.hd;break;case _.Be:b.positionAlign=_.Be}_.M.ya(a.line)&&(b.line=a.line);if(_.M
539
537
  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,
540
538
  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,
541
539
  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,
542
- 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]};_.bq.prototype.bb=function(a,b){this.f[a]=b};_.K("clpp.drm.DrmEnvironment",_.bq);_.bq.prototype.setDrmSystem=_.bq.prototype.bb;_.dq.prototype.getPosition=function(){return this.a};_.dq.prototype.Va=function(){return this.f.byteLength};_.dq.prototype.seek=function(a){(0>a||a>=this.f.byteLength)&&_.eq();this.a=a};_.gq.prototype.getPosition=function(){return this.a};_.gq.prototype.Va=function(){return this.f.byteLength};_.gq.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.iq();this.a+=a};_.gq.prototype.seek=function(a){if(0>a||a>=this.f.byteLength)throw _.iq();this.a=a};_.K("clpp.utils.dataview.DataViewReader",_.gq);_.r=_.qq.prototype;_.r.M=function(a,b){var c=uq(a);this.h[c]=sw;this.f[c]=b;return this};_.r.ba=function(a,b){var c=uq(a);this.h[c]=tw;this.f[c]=b;return this};_.r.stop=function(){this.a=!0};_.r.parse=function(a,b){var c=_.Ni(a);c=new _.gq(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.hq(c)&&!this.a;)this.Hf(0,c,b)};
543
- _.r.Hf=function(a,b,c){var d=b.getPosition(),e=_.lq(b),f=_.lq(b),g=!1;this.g.debug("Parsing MP4 box",_.vq(f));switch(e){case 0:e=b.Va()-d;break;case 1:e=_.nq(b),g=!0}var h=this.f[f];if(h){var l=null,m=null;this.h[f]===tw&&(m=_.lq(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.Va()&&(n=b.Va());n-=b.getPosition();b=0<n?_.pq(b,n):new Uint8Array(0);b=new _.gq(new DataView(b.buffer,b.byteOffset,b.byteLength),!1);h({parser:this,partialOkay:c||!1,version:l,flags:m,reader:b,size:e,start:d+
544
- a,headerSize:f,has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.Va()-b.getPosition()),b.skip(a)};_.K("clpp.utils.Mp4Parser",_.qq);_.qq.typeToString=_.vq;_.qq.allData=_.tq;_.qq.sampleDescription=_.sq;_.qq.children=_.rq;_.qq.prototype.parseNext=_.qq.prototype.Hf;_.qq.prototype.parse=_.qq.prototype.parse;_.qq.prototype.stop=_.qq.prototype.stop;_.qq.prototype.fullBox=_.qq.prototype.ba;_.qq.prototype.box=_.qq.prototype.M;_.qq.headerSize=_.wq;var sw=0,tw=1;_.K("clpp.utils.FairplayUtils",xq);xq.parseFairPlayResponse=_.Dq;xq.formatFairPlayRequest=_.Cq;xq.createFairplayPayload=Bq;xq.extractContentId=_.zq;xq.extractExtXKeyUri=yq;_.K(sd,Eq);var Qq=new _.L(sd),Gq="PRODUCTION",Hq="STAGING",Iq="DEMO",Jq="TEST",uw={PRODUCTION:Gq,STAGING:Hq,DEMO:Iq,TEST:Jq};Eq.Environment=uw;Eq.WidevineCertificates={V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"};
545
- for(var Lq="/license-proxy-widevine/cenc/",Mq="/license-proxy-headerauth/drmtoday/RightsManager.asmx",Nq="/license-server-fairplay/",Zq={"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",
546
- 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"},vw={video:[Ra,Ta,Sa,_.Db,_.Cb],audio:[Ra,
547
- Ta,Sa,_.Db,_.Cb]},ww={video:["3000","2000","150"],audio:["2000","150"]},xw=_.v(Object.keys(uw)),yw=xw.next();!yw.done;yw=xw.next()){var Fq=yw.value,zw=Fa;Fq!==Gq&&(zw+="_"+Fq);var Aw=new _.bq(zw),Bw=null;switch(Fq){case Gq:case Hq:case Iq:Bw=_.aq("V2");break;case Jq:Bw=null}Aw.bb(_.Gd,{licenseUrl:Oq(_.Gd),videoRobustness:vw.video,audioRobustness:vw.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:Bw,modifiers:{licenseRequest:_.Tq,licenseResponse:_.Yq}});Aw.bb(_.Cd,
548
- {licenseUrl:Oq(_.Cd),certificateUrl:Kq()+"/license-server-fairplay/cert/",modifiers:{licenseRequest:_.Vq,licenseResponse:_.Wq,extractContentId:_.Rq,certificateRequest:_.Xq}});Aw.bb(_.Ed,{licenseUrl:Oq(_.Ed),videoRobustness:ww.video,audioRobustness:ww.audio,modifiers:{licenseRequest:Uq}});_.Yn(Aw)};_.br.prototype.value=function(){void 0===this.a&&(this.a=this.f());return this.a};_.r=cr.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&&Pi(a,b)?!0:!1};_.r.entries=function(){};_.r.keys=function(){};_.r.values=function(){};var Cw=new _.br(function(){return Vi(new Uint8Array([0]))});var er=new _.br(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.Fe],[HTMLMediaElement.HAVE_CURRENT_DATA,_.Ee],[HTMLMediaElement.HAVE_FUTURE_DATA,ad],[HTMLMediaElement.HAVE_ENOUGH_DATA,bd]])});_.r=gr.prototype;_.r.ff=function(a){this.f=a};_.r.Vd=function(a){var b=this.a;b&&b!==a&&jr(b,null);return(this.a=a)?jr(a,this.f):Promise.resolve()};_.r.qf=function(){return this.a};_.r.Yb=function(a,b){_.Rh("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new hr(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.r.Ud=function(){return Ls};hr.prototype.createMediaKeys=function(){var a=new ir(this.keySystem);return Promise.resolve(a)};
549
- hr.prototype.getConfiguration=function(){_.Rh("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};ir.prototype.createSession=function(a){a=void 0===a?mg:a;this.g.debug("Creating Apple MediaKeys Session");if(a!==mg)throw new TypeError("Session type "+a+ba);return new kr(this.h,"__session_"+this.j++)};ir.prototype.setServerCertificate=function(){this.g.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.w(kr,_.zi);_.r=kr.prototype;
550
- _.r.generateRequest=function(a,b){var c=this;if(this.l)return Promise.reject(Fb);this.g.debug("generateRequest");this.h=new _.lm;try{var d=this.o.createSession(_.Pg,_.Ni(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,$g,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(_.Le,{messageType:void 0===f||f===fg?ze:ye,message:Vi(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,Yg,function(e){c.g.debug("onWebkitKeyAdded_",
551
- e);c.f&&(lr(c,"usable"),c.f.resolve(),c.f=null)});this.j.on(d,Zg,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===fg)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),
552
- c.f=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:lr(c,"output-not-allowed");break;default:lr(c,_.ve)}});lr(this,fg)}catch(e){this.h.reject(e)}return this.h};_.r.load=function(){this.g.debug(_.De);return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.r.update=function(a){if(this.l)return Promise.reject(Fb);this.g.debug(Eg);this.f=new _.lm;try{this.a.update(_.Ni(a))}catch(b){this.f.reject(b)}return this.f};
553
- _.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(),_.vi(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"))};mr.prototype.a=function(){return Ls};mr.prototype.f=function(){return!!window.WebKitMediaKeys};
554
- mr.prototype.create=function(){return new gr};_.r=nr.prototype;_.r.ff=function(a){this.a=a};_.r.Vd=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(eb)};_.r.qf=function(){return this.a&&this.a.mediaKeys};
555
- _.r.Yb=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.Ud=function(){return ps};or.prototype.a=function(){return ps};
556
- or.prototype.f=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};or.prototype.create=function(){return new nr};_.r=pr.prototype;_.r.ff=function(a){this.a=a};_.r.Vd=function(a){_.Rh("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(eb);var b=this.f;b&&b!==a&&ur(b,null);(this.f=a)&&ur(a,this.a);return Promise.resolve()};_.r.qf=function(){return this.f};_.r.Yb=function(a,b){_.Rh("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.Ng);c=d.length?d[0]:document.createElement(_.Ng)}var e=new qr(this.h,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
557
- _.r.Ud=function(){return Dw};qr.prototype.createMediaKeys=function(){return Promise.resolve(new rr(this.h,this.a))};qr.prototype.getConfiguration=function(){return this.f};rr.prototype.createSession=function(a){a=void 0===a?mg:a;if(a!==mg&&a!==_.ff)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 vr(this.h,this.a,this.o,a);this.j.push(a);return a};
558
- rr.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.w(vr,_.zi);_.r=vr.prototype;_.r.ready=function(){_.Rh("WebkitEmeManager.MediaKeySession.ready");tr(this,"usable");this.a&&this.a.resolve();this.a=null};_.r.generateRequest=function(a,b){_.Rh("WebkitEmeManager.MediaKeySession.generateRequest");return xr(this,b,null)};_.r.load=function(a){_.Rh(Wb);return this.l===_.ff?xr(this,null,a):Promise.reject(Error(lb))};_.r.update=function(a){_.Rh(Wb);var b=new _.lm;yr(this,b,a);return b};
559
- _.r.close=function(){_.Rh("WebkitEmeManager.MediaKeySession.close");if(this.l!==_.ff){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=wr(this,"cancelKeyRequest");try{this.j[a](this.h,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.r.remove=function(){_.Rh("WebkitEmeManager.MediaKeySession.remove");return this.l!==_.ff?Promise.reject(Error(lb)):this.close()};zr.prototype.a=function(){return Dw};
560
- zr.prototype.f=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};zr.prototype.create=function(){return new pr};_.r=Ar.prototype;_.r.ff=function(){};_.r.Vd=function(a){_.Rh("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.r.qf=function(){return null};_.r.Yb=function(){_.Rh("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.r.Ud=function(){return Ew};Br.prototype.a=function(){return Ew};Br.prototype.f=function(){return!0};Br.prototype.create=function(){return new Ar};_.K(vd,Cr);var Er=new _.L(vd),Dr=[];Dr=[new or,new mr,new zr,new Br].filter(function(a){return a.f()});var ps="STANDARD",Ls="APPLE",Dw="WEBKIT",Ew="NOP";Cr.Apis={STANDARD:ps,APPLE:Ls,WEBKIT:Dw,NOP:Ew};_.r=_.Gr.prototype;_.r.Ka=function(a,b){var c=this.$(a,b);return 1!==c.length?null:c[0]};_.r.Zb=_.ih(2);_.r.$=function(a,b){return Array.from(a.childNodes).filter(function(c){return c instanceof Element&&c.tagName===b})};_.r.Ic=_.ih(4);_.r.getAttributeNS=function(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null};_.r.ua=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};
561
- _.r.W=_.ih(6);_.r.De=function(a,b){var c=new DOMParser,d=null;try{d=c.parseFromString(a,_.pg)}catch(e){}if(!d)return null;c=d.documentElement;return b&&c.tagName!==b||0<d.getElementsByTagName("parsererror").length?null:c};_.r.mf=_.ih(8);_.r.nd=_.ih(10);_.r.Kf=_.ih(12);_.r.removeChild=function(a,b){a.removeChild(b)};_.r.wf=_.ih(14);_.r.vf=_.ih(16);_.r.Lf=_.ih(18);_.r.Je=_.ih(20);_.Nr=new _.Gr;_.Fw=new _.L("clpp.xml.Parser");_.Nn="dom";var Jr;_.Rr=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];Jr=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.w(Ir,Hr);_.w(_.Mr,Hr);Tr.prototype.j=function(a){if(1<a.version)_.Mh("Unrecognized PSSH version found!");else{var b=_.Pm(_.pq(a.reader,16)),c=[];if(0<a.version)for(var d=_.lq(a.reader),e=0;e<d;++e){var f=_.Pm(_.pq(a.reader,16));c.push(f)}d=_.lq(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.Va()&&_.Mh("Mismatch between box size and data size!")}};_.r=_.Xr.prototype;_.r.destroy=function(){var a=this;return _.I(function(b){if(1==b.a){if(a.j)return _.x(b,a.Ja,0);a.j=!0;return _.x(b,Zr(a),4)}a.Ja.resolve();return b.C(0)})};_.r.keySystem=function(){return this.a?_.Ds(this.a.keySystem):""};_.r.getDrmInfo=function(){return this.a};_.r.cj=function(a){var b=this;return _.I(function(c){return b.H&&b.L===$r?c["return"]():!b.f.delayLicenseRequestUntilPlayed||b.D&&!b.D.paused||b.gb?_.x(c,Rs(b,a),0):(b.ja.push(a),c.C(0))})};
562
- _.r.Yi=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,h){if(typeof h===_.hg){var l=h;h=g;g=l}if(Ks(b.a.keySystem)&&16===h.byteLength&&_.hj()){l=_.Ui(h);var m=l.getUint32(0,!0),n=l.getUint16(4,!0),p=l.getUint16(6,!0);l.setUint32(0,m,!1);l.setUint16(4,n,!1);l.setUint16(6,p,!1)}d&&g!==fg&&(d.loaded=!0);d&&d.ob&&d.ob.resolve();"expired"===g&&(e=!0);l=_.Ni(h);var q=_.Pm(l);"00"===q&&d&&d.keyId?q=d.keyId:
563
- b.a.keySystem.startsWith(_.Cd)&&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.sb.forEach(function(g){b.o.get(g)===fg&&(b.g.warn(Ya+g+ea),b.o.set(g,_.cf))});for(a=0;a<this.a.initData.length;a++){var f=this.a.initData[a];f.keyId&&this.o.get(f.keyId)===fg&&_.Qm(f.initData,d.initData)&&(this.g.warn(Ya+f.keyId+ea),this.o.set(f.keyId,
564
- _.cf))}a=c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.Ac&&(this.g.debug("Session has expired",c.sessionId),(a=this.h.get(c))&&a.pd&&a.pd.stop(),this.h["delete"](c),c.close()["catch"](function(){}));Fs(this)&&(this.I.resolve(),1!==this.h.size||e?this.fa.ha(.5):Vr(this))};var $r=0,Ur=3;_.Y={rc:function(a,b){return a.filter(function(c){return c.name===b})},Ij:function(a){var b=/^[a-zA-Z0-9_-]+$/,c=new Set;a.forEach(function(d){var e=_.T(d,"VALUE"),f=_.T(d,_.fb),g=_.T(d,"IMPORT"),h=_.T(d,"QUERYPARAM");if(1!==[f,g,h].filter(Boolean).length||f&&null==e)throw new _.N(_.O,4,4044,{message:"Invalid tag.",text:d.toString()});d=f||g||h;if(c.has(d))throw new _.N(_.O,4,4044,'EXT-X-DEFINE redefined variable "'+d+'".');if(!b.test(d))throw new _.N(_.O,4,4044,'EXT-X-DEFINE invalid variable name "'+
565
- d+'".');c.add(d)})},pg:function(a,b){var c=Array.isArray(b)?b:[b];return a.filter(function(d){d=_.Sp(d,_.Kb);return c.includes(d)})},Lc:function(a,b){return a.some(function(c){return c.name===b})},Ua: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 _.N(_.O,4,4024,{missingTag:b});return a},ri:function(a,b){return _.Y.Ua(a,b,{required:!0})},km:function(a,b,c){c=void 0===c?0:c;return(a=_.Y.Ua(a,b))?Number(a.value):c},Dp:function(a,b,c){return a.filter(function(d){var e=
566
- d.getAttribute(_.Kb);d=d.getAttribute(_.Qa);return e.value===b&&d.value===c})},co:function(a){var b=_.Y.Ua(a,"EXT-X-TILES");if(!b)return{oe:1,Le:1,durationPerTile:null};a=_.T(b,"LAYOUT")||"1x1";b=_.T(b,_.Ha);a=_.Wp(a);return{oe:a.oe,Le:a.Le,durationPerTile:b?Number(b):null}},Cm:function(a){return/^#(?!EXT)/m.test(a)},Im:function(a){return/^(#EXT)/.test(a)},Mm:function(a,b){Array.isArray(a)||(a=[a]);a.forEach(function(c){for(var d=_.v(_.Y.Of(c)),e=d.next();!e.done;e=d.next())b(e.value,c)})},Of:function(a){var b=
567
- 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)},xm:function(a){return a.some(function(b){return _.Y.Lc(b.Y,"EXT-X-ENDLIST")})},fk:function(a){return _.Y.Of(a).filter(_.Y.Di)},lj:function(a){if(_.Y.Ua(a,"EXT-X-ENDLIST"))return _.Ub;a=_.Y.Ua(a,"EXT-X-PLAYLIST-TYPE");if(!a)return"LIVE";if(a.value===_.Ub)return _.Ub;if("EVENT"===a.value)return"EVENT";
568
- throw new _.N(_.O,4,4044,"Invalid EXT-X-PLAYLIST-TYPE value: "+a.value);},Rh:function(a){a={AUDIO:_.Oc,VIDEO:_.Ng,SUBTITLES:_.Fn,"CLOSED-CAPTIONS":_.Fn}[a.toUpperCase()];if(!a)throw new _.N(_.O,4,4044,"EXT-X-MEDIA tag has an invalid TYPE attribute.");return a},Dl:function(a){var b=_.Sp(a,_.Kb).toUpperCase();if(_.Y.Rh(b)!==_.Fn)return null;a=a.getAttribute("FORCED");a=!(!a||!a.value||"YES"!==a.value.toUpperCase());var c=_.kg;b===_.ra&&(c=_.cd);a&&(c=_.me);return c},hj:function(a,b,c){c=void 0===c?
569
- !1:c;var d=0,e=null;if(a){d=a.split("@");a=Number(d[0]);if(0>=a)throw new _.N(_.O,4,4044,"Byte range length must be positive.");if(d[1]){if(d=Number(d[1]),0>d)throw new _.N(_.O,4,4044,"Byte range start byte must not be negative.");}else{if(c)throw new _.N(_.O,4,4044,"Invalid byte range, offset is required but missing.");if(null==b)throw new _.N(_.O,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}},jj:function(a,b){var c=_.Y.Ua(a,
570
- "EXT-X-BYTERANGE");return _.Y.hj(c?c.value:null,b)},kj:function(a){a=_.Y.ri(a,"EXTINF").value.split(",");var b=Number(a[0]);if(isNaN(b))throw new _.N(_.O,4,4044,"#EXTINF must be a number.");return{duration:b,title:a[1]||null}},mj:function(a,b){function c(f){return null==f?null:Number(f)}b=void 0===b?{}:b;var d={Ah:!1,kk:!1,lk:null,ym:null,nj:null},e=_.Y.Ua(a,"EXT-X-SERVER-CONTROL",{required:b.yj});if(!e)return d;d.Ah="YES"===_.T(e,"CAN-BLOCK-RELOAD");d.kk="YES"===_.T(e,"CAN-SKIP-DATERANGES");d.lk=
571
- c(_.T(e,"CAN-SKIP-UNTIL"));d.ym=c(_.T(e,"HOLD-BACK"));d.nj=c(_.T(e,"PART-HOLD-BACK",void 0,{required:b.yj}));return d},ij:function(a,b,c){c=void 0===c?!1:c;a=_.T(a,"BYTERANGE");return _.Y.hj(a,b,c)},bo:function(a){var b=_.Y.rc(a,_.Ja),c=_.Y.rc(a,_.Ka);a=_.Y.rc(a,"EXT-X-IMAGE-STREAM-INF");return{Rc:{uh:_.Y.pg(b,[_.ja,_.Tb]),closedCaptions:_.Y.pg(b,_.ra),Mo:_.Y.pg(b,_.Bb)},Me:c,rg:a}},Fl:function(a,b){var c=_.Y.jj(a.Y,null);return new _.Vp(0,0,0,function(){return[a.a]},c.la,c.ga,0,b)},rm:function(a){var b=
572
- a.S;a=b[0].startTime;b=b[b.length-1].endTime;return{tc:a,uf:b,duration:b-a}},om:function(a){var b=Infinity,c=Infinity;_.Y.fk(a).forEach(function(d){d=_.Y.rm(d);b=Math.min(b,d.tc);c=Math.min(c,d.duration)});return{tc:b,duration:c}},Di:function(a){return a.type===_.Oc||a.type===_.Ng},Ql:function(a){return a.filter(_.Y.Di)},mm:function(a){return a.map(function(b){return _.Y.om(b).duration}).reduce(function(b,c){return b+c},0)},em:function(a,b){return a&&b?_.Ws(a.drmInfos,b.drmInfos)?_.Vs(a.drmInfos,
573
- b.drmInfos):null:a?a.drmInfos:b?b.drmInfos:null},Hl:function(a,b){return(b?b.bc():"")+" - "+(a?a.bc():"")},Sh:function(a){return(a.video?a.video.Bc:"")+" - "+(a.audio?a.audio.Bc:"")},ao:function(a,b,c,d,e){if(b===_.Ub)return{delay:0,Ke:0};b=_.Y.Ua(a,"EXT-X-PART-INF");if(c&&b)return e=Number(_.Sp(b,"PART-TARGET")),null!=d?{delay:d,Ke:e}:{delay:_.Y.mj(a,{yj:!0}).nj,Ke:e};a=_.Y.ri(a,"EXT-X-TARGETDURATION");a=Number(a.value);e=e||a;return null!=d?{delay:d,Ke:e}:{delay:3*a,Ke:e}},hf:function(a,b){return a+
574
- ":"+b},Qo:function(a){var b=_.Y.hf,c=new Map;a.forEach(function(d){var e=b(d.a(),d.f());c.has(e)?(e=c.get(e),e.includes(d)||e.push(d)):c.set(e,[d])});return c},li:function(a){return _.uo(a||_.Cg)},Vn: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=_.Sp(c,_.Qa);c=_.Sp(c,"INSTREAM-ID");b.has(e)||b.set(e,new Map);b.get(e).set(c,d)}return b},Ll:function(a){return a.filter(function(b){return"mp4a.40.34"!==b})},eo:function(a){if(!a.hasAttribute("FRAME-RATE")&&
575
- !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:fl(b),width:fl(a),height:fl(c)}},Lm:function(a){return a.name!==_.Ja?!0:_.T(a,_.Kb)===_.Bb},Wn:function(a,b,c,d,e){var f=e&&e.Ie,g=e&&e.schemeIdUri,h=_.T(a,"ID");f=_.T(a,"START-DATE")||f;if(null===h||!f)return _.Y.g.warn("Invalid EXT-X-DATERANGE missing mandatory ID or required START-DATE attribute, ignoring the EXT-X-DATERANGE tag.",a),
576
- null;b=d?c-b:-b;d=new Date(f);c=d.getTime()/1E3+b;h={id:h,startTime:c,startDate:d,Ie:f};f=fl(_.T(a,_.Ha));void 0!==f&&0<=f&&(h.duration=f);f=fl(_.T(a,"PLANNED-DURATION"));void 0!==f&&0<=f&&(h.plannedDuration=f);g=_.T(a,"CLASS")||g||null;null!==g&&(h.schemeIdUri=g);f=(f=_.T(a,"END-DATE"))?new Date(f):null;null!==f&&f.getTime()>=d.getTime()&&(h.endDate=f);d=_.Y.Un(a)||{};(f=_.T(a,"CUE"))&&(d.CUE=f.split(","));Hk(g)&&(f=_.Y.Zn(a))&&(d=Object.assign(d,f));_.M.Pb(d)&&(h.customAttributes=d);if(_.M.xi(e,
577
- h))return _.Y.g.warn("EXT-X-DATERANGE augmented and previous values differ.Ignoring the EXT-X-DATERANGE tag.",a),null;h=_.M.ra(e,h);if(Hk(g)&&!Ik(h.customAttributes))return _.Y.g.warn("Invalid EXT-X-DATERANGE Interstitial attributes X-ASSET-URI, X-ASSET-LIST"),null;var l;h.endDate?l=h.endDate.getTime()/1E3+b:h.duration?l=c+h.duration:h.plannedDuration?l=c+h.plannedDuration:l=c;h.endTime=l;h.type=_.re;return h},Un:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.v(b);for(var c=b.next();!c.done;c=
578
- b.next())c=c.value,c.name.trim().startsWith("X-")&&(a[c.name]=c.value);return _.M.Pb(a)?a:null},Zn: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 ac:a[ac]=c.value;break;case $b:a[$b]=c.value;break;case ec:a[ec]=fl(c.value);break;case cc:a[cc]=fl(c.value);break;case "X-SNAP":a["X-SNAP"]=c.value.split(",");break;case dc:a[dc]=c.value.split(",")}return _.M.Pb(a)?a:null},bi:function(a,b){if(!a)return null;var c=a.Bc;
579
- return b.find(function(d){return d.bc()===c})||null},hi:function(a){return(a=_.T(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}};_.Y.g=new _.L("clpp.hls.Utils");var et;_.at.prototype.ta=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&&Hi(this.roles,a.roles)&&Hi(this.accessibility,a.accessibility,it)};_.at.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.K("clpp.Track",_.at);
580
- _.at.prototype.toString=_.at.prototype.toString;_.K("clpp.Rendition",_.jt);_.gt=1;_.dt=_.Ng;_.X=_.Oc;_.ct=_.ng;et=_.Me;_.Gw={VIDEO:_.dt,AUDIO:_.X,TEXT:_.ct,METADATA:et};_.at.Type=_.Gw;kt.prototype.h=function(a,b){var c=this,d,e,f,g,h,l,m;return _.I(function(n){switch(n.a){case 1:return d=null,_.F(n,2),_.x(n,qt(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,nt(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:h=_.H(n),c.g.warn("Failed to parse video metadata from HLS playlist.",
581
- h.message);case 6:return _.F(n,9),_.x(n,pt(d),11);case 11:l=n.f;f.Rc=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)}})};_.wt=[];_.r=_.zt.prototype;_.r.gg=function(){return!0};_.r.Xl=function(a){return this.getVideoTracks().find(function(b){return _.M.ta(b,a,a&&Object.keys(a))})};_.r.Tl=function(a){return this.getAudioTracks().find(function(b){return _.M.ta(b,a,a&&Object.keys(a))})};_.r.Vl=function(a){return this.pa().find(function(b){return _.M.ta(b,a,a&&Object.keys(a))})};_.r.Wl=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.M.ta(b,a,a&&Object.keys(a))})};
582
- _.r.Sl=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.M.ta(b,a,a&&Object.keys(a))})};_.r.Ul=function(a){return this.pa().flatMap(function(b){return b.renditions}).find(function(b){return _.M.ta(b,a,a&&Object.keys(a))})};_.K("clpp.TrackManager",_.zt);_.zt.prototype.isAbrEnabled=_.zt.prototype.xa;_.zt.prototype.addTextTrack=_.zt.prototype.addTextTrack;_.zt.prototype.findTextRendition=_.zt.prototype.Ul;_.zt.prototype.findAudioRendition=_.zt.prototype.Sl;
583
- _.zt.prototype.findVideoRendition=_.zt.prototype.Wl;_.zt.prototype.findTextTrack=_.zt.prototype.Vl;_.zt.prototype.findAudioTrack=_.zt.prototype.Tl;_.zt.prototype.findVideoTrack=_.zt.prototype.Xl;_.zt.prototype.setTextRendition=_.zt.prototype.Fb;_.zt.prototype.setAudioRendition=_.zt.prototype.Eb;_.zt.prototype.setVideoRendition=_.zt.prototype.qb;_.zt.prototype.setTextTrack=_.zt.prototype.Za;_.zt.prototype.setAudioTrack=_.zt.prototype.Ha;_.zt.prototype.setVideoTrack=_.zt.prototype.Gb;
584
- _.zt.prototype.getTextTrack=_.zt.prototype.wa;_.zt.prototype.getAudioTrack=_.zt.prototype.oa;_.zt.prototype.getVideoTrack=_.zt.prototype.Ma;_.zt.prototype.getLoadingTextRendition=_.zt.prototype.Nb;_.zt.prototype.getLoadingAudioRendition=_.zt.prototype.Mb;_.zt.prototype.getLoadingVideoRendition=_.zt.prototype.yb;_.zt.prototype.getTextRendition=_.zt.prototype.Ya;_.zt.prototype.getAudioRendition=_.zt.prototype.Ta;_.zt.prototype.getVideoRendition=_.zt.prototype.qa;_.zt.prototype.getTextTracks=_.zt.prototype.pa;
585
- _.zt.prototype.getAudioTracks=_.zt.prototype.getAudioTracks;_.zt.prototype.getVideoTracks=_.zt.prototype.getVideoTracks;_.zt.prototype.canSelectVideoTracks=_.zt.prototype.gg;_.w(At,_.zt);_.r=At.prototype;_.r.gg=function(){return!_.oj()};
586
- _.r.Eg=function(a,b){var c=this,d,e,f,g,h,l,m,n,p,q,t,u,y,B,A,C,E,D;return _.I(function(J){if(1==J.a){if(!b)return c.g.warn(hb),J["return"]();d=b.track;if(!d)return c.g.warn(kb),J["return"]();e=a===_.X;f=a===_.dt;g=a===_.ct;h=e||f;l=b.target;if(m=c.h.find(function(P){return Nt(P,d,a)}))return c.g.warn("Track from event already exists",d,m),J["return"]();n=ht(a,d);p=Pt(d);if(g){if(d.kind===_.Me)return J["return"]();void 0!==d.id?q=c.o[d.id]:(t=Object.values(c.o),q=t.find(function(P){return Nt(n,P,
587
- a)}));n.kind&&"captions"===n.kind&&(n.mimeType=_.Gc);q&&(n.src=q.url,n.mimeType=q.mimeType)}else if(m=c.h.find(function(P){return P.type===a&&_.M.ta(P,n,["kind","label","language"])}))return m.id=d.id,p&&(c.g.debug(Gb+a+" track active"),c.a.set(a,m)),c.g.debug("Track from event seems to already exists, flipped native track to",d),J["return"]();_.F(J,2);u=new _.jt(n.id,n);n.renditions.push(u);c.h.push(n);y=c.m.getConfiguration().safari;return Et(c,a,y)?_.x(J,Gt(c,n,y),5):Ft(c,a,y)?_.x(J,Ht(c,n,y),
588
- 5):J.C(5)}if(2!=J.a)return c.g.debug(a+" Track added",n),c.m.trigger(new _.Q(_.wg)),B=Kt(c,a).length,A=!(!l||!l.length),C=l&&l.length||0,E=function(){c.g.debug(Gb+a+" track active. Native track active: "+(p+". Number of tracks: ")+B,d);c.a.set(a,n)},p?E():1===B&&h&&(f?E():A&&1!==C||E()),_.G(J,0);D=_.H(J);c.g.error("Error while converting track data",D);_.z(J)})};
589
- _.r.Gg=function(a,b){if(b){var c=b.track;if(!c)this.g.warn(kb);else if(a===_.ct&&c.kind!==_.Me){var d=this.h.find(function(e){return Nt(e,c,a)});d&&(this.h.splice(this.h.indexOf(d),1),(this.a.get(a)||null)===d&&(this.a.set(a,null),Rt(this)),this.g.debug(a+" Track removed, id: ",d.id))}}else this.g.warn(hb)};
590
- _.r.Fg=function(a,b){this.g.debug(a+" Track changed",b);a===_.ct&&Rt(this);var c=Jt(this,a);if(c)for(var d={$c:0};d.$c<c.length;d={$c:d.$c},++d.$c)if(Pt(c[d.$c])){if(d=this.h.find(function(e){return function(f){return Nt(f,c[e.$c],a)}}(d)))this.a.set(a,d),this.g.debug("Track change detected, id:",d.id),d===this.l.get(a)&&this.l.set(a,null),a===_.X?this.m.trigger(new _.Q(_.Vc)):a===_.ct&&this.m.trigger(new _.Q(_.qg));break}};_.r.initialize=function(a){this.m=a;this.j=new kt(a.getNetworkEngine())};
591
- _.r.load=function(){this.A=!1;var a=It(this,_.ct);a&&(this.f.on(a,_.Ac,this.J),this.f.on(a,Nf,this.L),this.f.on(a,kd,this.K));if(a=It(this,_.X))this.f.on(a,_.Ac,this.G),this.f.on(a,Nf,this.I),this.f.on(a,kd,this.H);if(a=It(this,_.dt))this.f.on(a,_.Ac,this.O),this.f.on(a,Nf,this.U),this.f.on(a,kd,this.R);this.f.one(this.m,bd,this.ml.bind(this))};_.r.release=function(){this.A=!0;this.h=[];this.o={};this.a.clear();this.l.clear();this.f.release()};_.r.destroy=function(){this.release();this.m=null};
592
- _.r.getVideoTracks=function(){return Kt(this,_.dt)};_.r.getAudioTracks=function(){return Kt(this,_.X)};_.r.pa=function(){return Kt(this,_.ct)};_.r.qa=function(){var a=this,b=this.a.get(_.dt)||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.Ta=function(){return Lt(this,_.X)};_.r.Ya=function(){return Lt(this,_.ct)};_.r.yb=function(){return Mt(this,_.dt)};
593
- _.r.Mb=function(){return Mt(this,_.X)};_.r.Nb=function(){return Mt(this,_.ct)};_.r.Ma=function(){return this.a.get(_.dt)||null};_.r.oa=function(){return this.a.get(_.X)||null};_.r.wa=function(){return this.a.get(_.ct)||null};_.r.Gb=function(a){Ot(this,_.dt,a)};_.r.Ha=function(a){Ot(this,_.X,a)};_.r.Za=function(a){Ot(this,_.ct,a)};_.r.qb=function(a){Ot(this,_.dt,a&&a.track)};_.r.Eb=function(a){Ot(this,_.X,a&&a.track)};_.r.Fb=function(a){Ot(this,_.ct,a&&a.track)};
594
- _.r.addTextTrack=function(a){var b=this,c;return _.I(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.B++,b.o[c]=a,Bt(b,a,c),d.C(0)):_.x(d,Ct(b,a),0)})};_.r.xa=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};
595
- _.r.ml=function(){var a=this,b,c,d;return _.I(function(e){if(1==e.a){b=a.m.getConfiguration();Qt(a,_.X,b.preferredAudioLanguage);c=Jt(a,_.ct);if(c.some(function(f){return Pt(f)}))return e.C(2);d=It(a,_.ct);return _.x(e,new Promise(function(f){a.f.one(d,kd,f);(new _.ej(f)).ha(1)}),2)}if(a.A)return e["return"]();Qt(a,_.ct,b.preferredTextLanguage);_.z(e)})};At.prototype.isAbrEnabled=At.prototype.xa;At.prototype.addTextTrack=At.prototype.addTextTrack;At.prototype.setTextRendition=At.prototype.Fb;
596
- At.prototype.setAudioRendition=At.prototype.Eb;At.prototype.setVideoRendition=At.prototype.qb;At.prototype.setTextTrack=At.prototype.Za;At.prototype.setAudioTrack=At.prototype.Ha;At.prototype.setVideoTrack=At.prototype.Gb;At.prototype.getTextTrack=At.prototype.wa;At.prototype.getAudioTrack=At.prototype.oa;At.prototype.getVideoTrack=At.prototype.Ma;At.prototype.getLoadingTextRendition=At.prototype.Nb;At.prototype.getLoadingAudioRendition=At.prototype.Mb;At.prototype.getLoadingVideoRendition=At.prototype.yb;
597
- At.prototype.getTextRendition=At.prototype.Ya;At.prototype.getAudioRendition=At.prototype.Ta;At.prototype.getVideoRendition=At.prototype.qa;At.prototype.getTextTracks=At.prototype.pa;At.prototype.getAudioTracks=At.prototype.getAudioTracks;At.prototype.getVideoTracks=At.prototype.getVideoTracks;At.prototype.canSelectVideoTracks=At.prototype.gg;var St=["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 Hw=["abort",ad,bd,de,"emptied",he,_.je,_.ke,"interruptbegin","interruptend",_.Ee,_.Fe,He,"mozaudioavailable",_.df,_.hf,_.tf,_.If,_.Kf,_.Wf,_.Xf,cg,"suspend",_.vg,"volumechange",_.Vg,_.Wg,_.Pf,ah,$g,Yg,Zg];_.w(_.Ut,_.zi);_.r=_.Ut.prototype;_.r.init=function(a,b){this.configuration=this.Ja=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(Hw),e=d.next();!e.done;e=d.next())e=e.value,this.O.on(c,e,this.Oj,e!==_.ke);this.Sd||(this.Sd=this.Th());this.Sd.initialize(this);this.D.showMediaElement()};_.r.release=function(){this.R&&(this.R.destroy(),this.R=null);return Promise.resolve()};
598
- _.r.destroy=function(){this.O.release();return this.Qd.release()};_.r.canPlay=function(a,b){return _.Uh[this.namespace()].canPlay(a,b)};_.r.getTimeline=function(){return null};_.r.setupPlaylist=function(){return Promise.reject(_.mb)};_.r.appendLoad=function(){return Promise.reject(_.mb)};_.r.seekWith=function(){return Promise.reject(_.mb)};_.r.detach=function(){return Promise.resolve()};_.r.setSeekInterceptor=function(){};_.r.setPlaybackSessionId=function(){};_.r.getBandwidthEstimate=function(){return null};
599
- _.r.play=function(){var a=this;if(!this.ca)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||""};Tt(d)?(a.trigger(new _.Q(_.Wc)),a.log.warn(_.na)):d.name===nb&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
600
- _.r.pause=function(){var a=this;return this.ca?new Promise(function(b,c){var d=a.getState();if(2!==d&&5!==d&&3!==d&&4!==d)c(new _.N(_.O,7,3201,"The player state does not allow pause."));else if(a.D.getMedia().pause(),3===a.getState())a.O.one(a,_.eg,function(){b()});else b()}):Promise.reject(new _.N(_.O,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};
601
- _.r.getConfiguration=function(){return this.configuration};_.r.setDrmCustomDataModifier=function(a){this.qd=a};_.r.setCdnErrorCallback=function(a){this.dd=a};_.r.td=function(){return this.qd};_.r.getSurface=function(){return this.D};_.r.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.ci(b?b.buffered:void 0,a)};_.r.getPosition=function(){return this.getMediaPosition()};
602
- _.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};
603
- _.r.seek=function(a){var b=this,c=this.getMediaPosition();if(void 0===a||null===a||typeof a!==_.k||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 h(){if(d.readyState>HTMLMediaElement.HAVE_NOTHING)m();else b.O.one(d,_.Fe,m)}function l(n){var p=b.getMediaPosition(),
604
- q=.1>=Math.abs(a-p),t=.25<p-a,u=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,y=n.type===_.Wf,B=n.type===_.If,A=n.type===_.vg,C=B&&u;t=y||q&&C||A&&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:",A,"Progress:",B,"ReadyState:",u,"Progress Ready:",C);t?(b.Yg=!1,b.xe=!1,b.O.off(d,_.Wf,l),b.O.off(d,_.vg,l),b.O.off(d,_.If,l),b.dj(),b.trigger(new _.Q(_.Hg)),f()):B&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
605
- d.currentTime=a)}function m(){b.trigger(new _.Q(_.Ig));b.O.on(d,_.Wf,l);b.O.on(d,_.vg,l);b.O.on(d,_.If,l);b.log.info("Seeking to "+a+". Delta "+e);b.Yg=!0;b.xe=!0;d.currentTime=a}b.getState()===_.gu?(b.log.debug("Player is in IDLE state. Postpone seek."),b.O.one(b,_.eg,function(){switch(b.getState()){case 2:case 3:case 4:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
606
- _.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?_.M.ya(a)?0>a||1<a?this.log.warn(ua+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(ua+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};
607
- _.r.setMuted=function(a){var b=this.D.getMedia();typeof a===_.Yc&&(b.muted=a)};_.r.getDuration=function(){return this.getMediaDuration()};_.r.getMediaDuration=function(){return this.ca?this.D.getMedia().duration:-1};_.r.getTrackManager=function(){return this.Sd};_.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.tf=a};_.r.getSourceIndex=function(){return this.tf};
608
- _.r.getLoadedSource=function(){return this.ca&&-1!==this.tf?this.ca[this.tf]:null};_.r.getPeriods=function(){return[]};_.r.getNetworkEngine=function(){return this.Qd};_.r.setNetworkEngine=function(a){var b=this;this.Qd=a;$m(this.Qd,function(c){b.onError(c)})};_.r.setCmsdManager=function(a){this.Pg=a};_.r.getTextDisplayer=function(){return this.R};_.r.getTimelineCues=function(){return[]};_.r.getCueTimeline=function(){return null};_.r.resetAbr=function(){};
609
- _.r.qo=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.vg||a.type===_.If)this.kh.debug(d);else{var e="";switch(a.type){case _.Kf:e="Rate: "+this.getPlaybackRate();break;case de:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.hf:case _.tf:case "suspend":case _.Vg:case cg:case _.Xf:case _.Wf:case _.vg:case _.If:case ad:case bd:b=
610
- this.getBufferInfo().Sa(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.Pf:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.kh.info(d)}a.type!==_.ke&&this.trigger(new _.Q(a.type,{detail:a}))};_.r.dj=function(){};_.Vt=new Map;_.Wt=new _.L("clpp.text");_.eu.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:au(this.a,3),pauseTime:au(this.a,4),bufferingTime:au(this.a,2),stateHistory:bu(this.a),switchHistory:du(this.f)}};iu.prototype.getState=function(){return ku(this,"")};iu.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.m.namespace());this.a.release()};_.w(qu,_.Ut);_.r=qu.prototype;_.r.init=function(a,b){_.Ut.prototype.init.call(this,a,b);this.j=new iu(this);ou(this.j,_.gu)};_.r.namespace=function(){return wd};
611
- _.r.unload=function(){var a=this,b;return _.I(function(c){if(a.ca){a.log.debug("Releasing player with source",a.ca);a.B&&(a.B.stop(),a.B=null);(b=a.getTrackManager())&&b.release();a.A&&(a.A.destroy(),a.A=null);a.R&&(a.R.destroy(),a.R=null);a.l&&a.l.release();a.o&&(a.o.destroy(),a.o=null);_.vi(a.h);a.f&&(a.f=new _.eu);a.G=null;a.ca=null;a.H=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());if(a.w)throw new _.N(_.O,7,7E3);if(a.a){var d=a.a;a.h.off(d,_.ke);a.h.off(d,_.Pf);a.a=null}}_.z(c)})};
612
- _.r.release=function(){var a=this;return _.Ut.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.j&&ou(a.j,_.gu)})};
613
- _.r.destroy=function(){var a=this;if(this.w)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.w=!0;return _.Ut.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Ia);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};
540
+ 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.eb=function(a,b){this.f[a]=b};_.K("clpp.drm.DrmEnvironment",_.$p);_.$p.prototype.setDrmSystem=_.$p.prototype.eb;_.bq.prototype.getPosition=function(){return this.a};_.bq.prototype.Xa=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.Xa=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.M=function(a,b){var c=sq(a);this.h[c]=kw;this.f[c]=b;return this};_.r.ba=function(a,b){var c=sq(a);this.h[c]=lw;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.Mf(0,c,b)};
541
+ _.r.Mf=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.Xa()-d;break;case 1:e=_.lq(b),g=!0}var h=this.f[f];if(h){var l=null,m=null;this.h[f]===lw&&(m=_.jq(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.Xa()&&(n=b.Xa());n-=b.getPosition();b=0<n?_.nq(b,n):new Uint8Array(0);b=new _.eq(new DataView(b.buffer,b.byteOffset,b.byteLength),!1);h({parser:this,partialOkay:c||!1,version:l,flags:m,reader:b,size:e,start:d+
542
+ a,headerSize:f,has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.Xa()-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.Mf;_.oq.prototype.parse=_.oq.prototype.parse;_.oq.prototype.stop=_.oq.prototype.stop;_.oq.prototype.fullBox=_.oq.prototype.ba;_.oq.prototype.box=_.oq.prototype.M;_.oq.headerSize=_.uq;var kw=0,lw=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 _.L(yd),Eq="PRODUCTION",Fq="STAGING",Gq="DEMO",Hq="TEST",mw={PRODUCTION:Eq,STAGING:Fq,DEMO:Gq,TEST:Hq};Cq.Environment=mw;Cq.WidevineCertificates={V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"};
543
+ 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",
544
+ 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"},nw={video:[Sa,Ua,Ta,_.Db,_.Cb],audio:[Sa,
545
+ Ua,Ta,_.Db,_.Cb]},ow={video:["3000","2000","150"],audio:["2000","150"]},pw=_.v(Object.keys(mw)),qw=pw.next();!qw.done;qw=pw.next()){var Dq=qw.value,rw=Fa;Dq!==Eq&&(rw+="_"+Dq);var sw=new _.$p(rw),tw=null;switch(Dq){case Eq:case Fq:case Gq:tw=_.Zp("V2");break;case Hq:tw=null}sw.eb(_.Md,{licenseUrl:Mq(_.Md),videoRobustness:nw.video,audioRobustness:nw.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:tw,modifiers:{licenseRequest:_.Rq,licenseResponse:_.Wq}});sw.eb(_.Id,
546
+ {licenseUrl:Mq(_.Id),certificateUrl:Iq()+"/license-server-fairplay/cert/",modifiers:{licenseRequest:_.Tq,licenseResponse:_.Uq,extractContentId:_.Pq,certificateRequest:_.Vq}});sw.eb(_.Kd,{licenseUrl:Mq(_.Kd),videoRobustness:ow.video,audioRobustness:ow.audio,modifiers:{licenseRequest:Sq}});_.Wn(sw)};_.$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,uw.value())};_.r.get=function(a){if(this.has(a))return this.a};_.r.has=function(a){var b=uw.value();return this.a&&Ri(a,b)?!0:!1};_.r.entries=function(){};_.r.keys=function(){};_.r.values=function(){};var uw=new _.$q(function(){return Xi(new Uint8Array([0]))});var cr=new _.$q(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.Me],[HTMLMediaElement.HAVE_CURRENT_DATA,_.Le],[HTMLMediaElement.HAVE_FUTURE_DATA,ed],[HTMLMediaElement.HAVE_ENOUGH_DATA,fd]])});_.r=er.prototype;_.r.jf=function(a){this.f=a};_.r.Vd=function(a){var b=this.a;b&&b!==a&&hr(b,null);return(this.a=a)?hr(a,this.f):Promise.resolve()};_.r.uf=function(){return this.a};_.r.Zb=function(a,b){_.Vh("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new fr(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.r.Ud=function(){return Js};fr.prototype.createMediaKeys=function(){var a=new gr(this.keySystem);return Promise.resolve(a)};
547
+ 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;
548
+ _.r.generateRequest=function(a,b){var c=this;if(this.l)return Promise.reject(Fb);this.g.debug("generateRequest");this.h=new _.om;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(_.Se,{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_",
549
+ 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),
550
+ 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 _.om;try{this.a.update(_.Qi(a))}catch(b){this.f.reject(b)}return this.f};
551
+ _.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};
552
+ kr.prototype.create=function(){return new er};_.r=lr.prototype;_.r.jf=function(a){this.a=a};_.r.Vd=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(fb)};_.r.uf=function(){return this.a&&this.a.mediaKeys};
553
+ _.r.Zb=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.Ud=function(){return ns};mr.prototype.a=function(){return ns};
554
+ 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.jf=function(a){this.a=a};_.r.Vd=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.uf=function(){return this.f};_.r.Zb=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)}};
555
+ _.r.Ud=function(){return vw};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=Ya,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};
556
+ 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(Xb);return this.l===_.nf?vr(this,null,a):Promise.reject(Error(mb))};_.r.update=function(a){_.Vh(Xb);var b=new _.om;wr(this,b,a);return b};
557
+ _.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 vw};
558
+ xr.prototype.f=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};xr.prototype.create=function(){return new nr};_.r=yr.prototype;_.r.jf=function(){};_.r.Vd=function(a){_.Vh("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.r.uf=function(){return null};_.r.Zb=function(){_.Vh("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.r.Ud=function(){return ww};zr.prototype.a=function(){return ww};zr.prototype.f=function(){return!0};zr.prototype.create=function(){return new yr};_.K(Bd,Ar);var Cr=new _.L(Bd),Br=[];Br=[new mr,new kr,new xr,new zr].filter(function(a){return a.f()});var ns="STANDARD",Js="APPLE",vw="WEBKIT",ww="NOP";Ar.Apis={STANDARD:ns,APPLE:Js,WEBKIT:vw,NOP:ww};_.r=_.Er.prototype;_.r.Ka=function(a,b){var c=this.$(a,b);return 1!==c.length?null:c[0]};_.r.$b=_.nh(2);_.r.$=function(a,b){return Array.from(a.childNodes).filter(function(c){return c instanceof Element&&c.tagName===b})};_.r.Kc=_.nh(4);_.r.getAttributeNS=function(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null};_.r.ua=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};
559
+ _.r.X=_.nh(6);_.r.Fe=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.qf=_.nh(8);_.r.nd=_.nh(10);_.r.Pf=_.nh(12);_.r.removeChild=function(a,b){a.removeChild(b)};_.r.Bf=_.nh(14);_.r.Af=_.nh(16);_.r.Qf=_.nh(18);_.r.Le=_.nh(20);_.Lr=new _.Er;_.xw=new _.L("clpp.xml.Parser");_.Ln="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=_.Om(_.nq(a.reader,16)),c=[];if(0<a.version)for(var d=_.jq(a.reader),e=0;e<d;++e){var f=_.Om(_.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.Xa()&&_.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.Fa,0);a.j=!0;return _.x(b,Xr(a),4)}a.Fa.resolve();return b.C(0)})};_.r.keySystem=function(){return this.a?_.Bs(this.a.keySystem):""};_.r.getDrmInfo=function(){return this.a};_.r.kj=function(a){var b=this;return _.I(function(c){return b.H&&b.L===Yr?c["return"]():!b.f.delayLicenseRequestUntilPlayed||b.F&&!b.F.paused||b.Ra?_.x(c,Ps(b,a),0):(b.ja.push(a),c.C(0))})};
560
+ _.r.fj=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,h){if(typeof h===_.lg){var l=h;h=g;g=l}if(Is(b.a.keySystem)&&16===h.byteLength&&_.jj()){l=_.Wi(h);var m=l.getUint32(0,!0),n=l.getUint16(4,!0),p=l.getUint16(6,!0);l.setUint32(0,m,!1);l.setUint16(4,n,!1);l.setUint16(6,p,!1)}d&&g!==jg&&(d.loaded=!0);d&&d.pb&&d.pb.resolve();"expired"===g&&(e=!0);l=_.Qi(h);var q=_.Om(l);"00"===q&&d&&d.keyId?q=d.keyId:
561
+ 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.ub.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&&_.Pm(f.initData,d.initData)&&(this.g.warn(Za+f.keyId+ea),this.o.set(f.keyId,
562
+ _.kf))}a=c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.Cc&&(this.g.debug("Session has expired",c.sessionId),(a=this.h.get(c))&&a.pd&&a.pd.stop(),this.h["delete"](c),c.close()["catch"](function(){}));Ds(this)&&(this.I.resolve(),1!==this.h.size||e?this.fa.ha(.5):Tr(this))};var Yr=0,Sr=3;_.Y={sc:function(a,b){return a.filter(function(c){return c.name===b})},Qj: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"),h=_.T(d,"QUERYPARAM");if(1!==[f,g,h].filter(Boolean).length||f&&null==e)throw new _.O(_.P,4,4044,{message:"Invalid tag.",text:d.toString()});d=f||g||h;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 "'+
563
+ d+'".');c.add(d)})},vg:function(a,b){var c=Array.isArray(b)?b:[b];return a.filter(function(d){d=_.Qp(d,_.Kb);return c.includes(d)})},Nc:function(a,b){return a.some(function(c){return c.name===b})},Wa: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},Ci:function(a,b){return _.Y.Wa(a,b,{required:!0})},sm:function(a,b,c){c=void 0===c?0:c;return(a=_.Y.Wa(a,b))?Number(a.value):c},Mp:function(a,b,c){return a.filter(function(d){var e=
564
+ d.getAttribute(_.Kb);d=d.getAttribute(_.Ra);return e.value===b&&d.value===c})},no:function(a){var b=_.Y.Wa(a,"EXT-X-TILES");if(!b)return{pe:1,Ne:1,durationPerTile:null};a=_.T(b,"LAYOUT")||"1x1";b=_.T(b,_.Ha);a=_.Up(a);return{pe:a.pe,Ne:a.Ne,durationPerTile:b?Number(b):null}},Km:function(a){return/^#(?!EXT)/m.test(a)},Qm:function(a){return/^(#EXT)/.test(a)},Um:function(a,b){Array.isArray(a)||(a=[a]);a.forEach(function(c){for(var d=_.v(_.Y.Tf(c)),e=d.next();!e.done;e=d.next())b(e.value,c)})},Tf:function(a){var b=
565
+ 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)},Fm:function(a){return a.some(function(b){return _.Y.Nc(b.Y,"EXT-X-ENDLIST")})},nk:function(a){return _.Y.Tf(a).filter(_.Y.Li)},tj:function(a){if(_.Y.Wa(a,"EXT-X-ENDLIST"))return _.Ub;a=_.Y.Wa(a,"EXT-X-PLAYLIST-TYPE");if(!a)return"LIVE";if(a.value===_.Ub)return _.Ub;if("EVENT"===a.value)return"EVENT";
566
+ throw new _.O(_.P,4,4044,"Invalid EXT-X-PLAYLIST-TYPE value: "+a.value);},$h:function(a){a={AUDIO:_.Sc,VIDEO:_.Sg,SUBTITLES:_.Dn,"CLOSED-CAPTIONS":_.Dn}[a.toUpperCase()];if(!a)throw new _.O(_.P,4,4044,"EXT-X-MEDIA tag has an invalid TYPE attribute.");return a},Ll:function(a){var b=_.Qp(a,_.Kb).toUpperCase();if(_.Y.$h(b)!==_.Dn)return null;a=a.getAttribute("FORCED");a=!(!a||!a.value||"YES"!==a.value.toUpperCase());var c=_.og;b===_.ta&&(c=_.gd);a&&(c=_.se);return c},pj:function(a,b,c){c=void 0===c?
567
+ !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}},rj:function(a,b){var c=_.Y.Wa(a,
568
+ "EXT-X-BYTERANGE");return _.Y.pj(c?c.value:null,b)},sj:function(a){a=_.Y.Ci(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}},uj:function(a,b){function c(f){return null==f?null:Number(f)}b=void 0===b?{}:b;var d={Jh:!1,tk:!1,uk:null,Gm:null,vj:null},e=_.Y.Wa(a,"EXT-X-SERVER-CONTROL",{required:b.Gj});if(!e)return d;d.Jh="YES"===_.T(e,"CAN-BLOCK-RELOAD");d.tk="YES"===_.T(e,"CAN-SKIP-DATERANGES");d.uk=
569
+ c(_.T(e,"CAN-SKIP-UNTIL"));d.Gm=c(_.T(e,"HOLD-BACK"));d.vj=c(_.T(e,"PART-HOLD-BACK",void 0,{required:b.Gj}));return d},qj:function(a,b,c){c=void 0===c?!1:c;a=_.T(a,"BYTERANGE");return _.Y.pj(a,b,c)},mo:function(a){var b=_.Y.sc(a,_.La),c=_.Y.sc(a,_.Ma);a=_.Y.sc(a,"EXT-X-IMAGE-STREAM-INF");return{Sc:{Dh:_.Y.vg(b,[_.ja,_.Tb]),closedCaptions:_.Y.vg(b,_.ta),Uo:_.Y.vg(b,_.Bb)},Oe:c,yg:a}},Nl:function(a,b){var c=_.Y.rj(a.Y,null);return new _.Tp(0,0,0,function(){return[a.a]},c.la,c.ga,0,b)},zm:function(a){var b=
570
+ a.S;a=b[0].startTime;b=b[b.length-1].endTime;return{vc:a,yf:b,duration:b-a}},wm:function(a){var b=Infinity,c=Infinity;_.Y.nk(a).forEach(function(d){d=_.Y.zm(d);b=Math.min(b,d.vc);c=Math.min(c,d.duration)});return{vc:b,duration:c}},Li:function(a){return a.type===_.Sc||a.type===_.Sg},Yl:function(a){return a.filter(_.Y.Li)},um:function(a){return a.map(function(b){return _.Y.wm(b).duration}).reduce(function(b,c){return b+c},0)},mm:function(a,b){return a&&b?_.Us(a.drmInfos,b.drmInfos)?_.Ts(a.drmInfos,
571
+ b.drmInfos):null:a?a.drmInfos:b?b.drmInfos:null},Pl:function(a,b){return(b?b.cc():"")+" - "+(a?a.cc():"")},ai:function(a){return(a.video?a.video.Dc:"")+" - "+(a.audio?a.audio.Dc:"")},lo:function(a,b,c,d,e){if(b===_.Ub)return{delay:0,Me:0};b=_.Y.Wa(a,"EXT-X-PART-INF");if(c&&b)return e=Number(_.Qp(b,"PART-TARGET")),null!=d?{delay:d,Me:e}:{delay:_.Y.uj(a,{Gj:!0}).vj,Me:e};a=_.Y.Ci(a,"EXT-X-TARGETDURATION");a=Number(a.value);e=e||a;return null!=d?{delay:d,Me:e}:{delay:3*a,Me:e}},lf:function(a,b){return a+
572
+ ":"+b},Yo:function(a){var b=_.Y.lf,c=new Map;a.forEach(function(d){var e=b(d.a(),d.f());c.has(e)?(e=c.get(e),e.includes(d)||e.push(d)):c.set(e,[d])});return c},xi:function(a){return _.so(a||_.Hg)},eo: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.xi(d);var e=_.Qp(c,_.Ra);c=_.Qp(c,"INSTREAM-ID");b.has(e)||b.set(e,new Map);b.get(e).set(c,d)}return b},Tl:function(a){return a.filter(function(b){return"mp4a.40.34"!==b})},oo:function(a){if(!a.hasAttribute("FRAME-RATE")&&
573
+ !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:il(b),width:il(a),height:il(c)}},Tm:function(a){return a.name!==_.La?!0:_.T(a,_.Kb)===_.Bb},fo:function(a,b,c,d,e){var f=e&&e.Ke,g=e&&e.schemeIdUri,h=_.T(a,"ID");f=_.T(a,"START-DATE")||f;if(null===h||!f)return _.Y.g.warn("Invalid EXT-X-DATERANGE missing mandatory ID or required START-DATE attribute, ignoring the EXT-X-DATERANGE tag.",a),
574
+ null;b=d?c-b:-b;d=new Date(f);c=d.getTime()/1E3+b;h={id:h,startTime:c,startDate:d,Ke:f};f=il(_.T(a,_.Ha));void 0!==f&&0<=f&&(h.duration=f);f=il(_.T(a,"PLANNED-DURATION"));void 0!==f&&0<=f&&(h.plannedDuration=f);g=_.T(a,"CLASS")||g||null;null!==g&&(h.schemeIdUri=g);f=(f=_.T(a,"END-DATE"))?new Date(f):null;null!==f&&f.getTime()>=d.getTime()&&(h.endDate=f);d=_.Y.co(a)||{};(f=_.T(a,"CUE"))&&(d.CUE=f.split(","));Kk(g)&&(f=_.Y.jo(a))&&(d=Object.assign(d,f));_.M.Qb(d)&&(h.customAttributes=d);if(_.M.Gi(e,
575
+ h))return _.Y.g.warn("EXT-X-DATERANGE augmented and previous values differ.Ignoring the EXT-X-DATERANGE tag.",a),null;h=_.M.ra(e,h);if(Kk(g)&&!Lk(h.customAttributes))return _.Y.g.warn("Invalid EXT-X-DATERANGE Interstitial attributes X-ASSET-URI, X-ASSET-LIST"),null;var l;h.endDate?l=h.endDate.getTime()/1E3+b:h.duration?l=c+h.duration:h.plannedDuration?l=c+h.plannedDuration:l=c;h.endTime=l;h.type=_.xe;return h},co:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.v(b);for(var c=b.next();!c.done;c=
576
+ b.next())c=c.value,c.name.trim().startsWith("X-")&&(a[c.name]=c.value);return _.M.Qb(a)?a:null},jo: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]=il(c.value);break;case fc:a[fc]=il(c.value);break;case "X-SNAP":a["X-SNAP"]=c.value.split(",");break;case gc:a[gc]=c.value.split(",")}return _.M.Qb(a)?a:null},ki:function(a,b){if(!a)return null;var c=a.Dc;
577
+ return b.find(function(d){return d.cc()===c})||null},ri:function(a){return(a=_.T(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}};_.Y.g=new _.L("clpp.hls.Utils");var ct;_.Zs.prototype.ta=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,gt)};_.Zs.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.K("clpp.Track",_.Zs);
578
+ _.Zs.prototype.toString=_.Zs.prototype.toString;_.K("clpp.Rendition",_.ht);_.et=1;_.bt=_.Sg;_.X=_.Sc;_.at=_.rg;ct=_.Te;_.yw={VIDEO:_.bt,AUDIO:_.X,TEXT:_.at,METADATA:ct};_.Zs.Type=_.yw;it.prototype.h=function(a,b){var c=this,d,e,f,g,h,l,m;return _.I(function(n){switch(n.a){case 1:return d=null,_.F(n,2),_.x(n,ot(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,lt(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:h=_.H(n),c.g.warn("Failed to parse video metadata from HLS playlist.",
579
+ h.message);case 6:return _.F(n,9),_.x(n,nt(d),11);case 11:l=n.f;f.Sc=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)}})};_.ut=[];_.r=_.xt.prototype;_.r.lg=function(){return!0};_.r.em=function(a){return this.getVideoTracks().find(function(b){return _.M.ta(b,a,a&&Object.keys(a))})};_.r.am=function(a){return this.getAudioTracks().find(function(b){return _.M.ta(b,a,a&&Object.keys(a))})};_.r.cm=function(a){return this.pa().find(function(b){return _.M.ta(b,a,a&&Object.keys(a))})};_.r.dm=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.M.ta(b,a,a&&Object.keys(a))})};
580
+ _.r.$l=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.M.ta(b,a,a&&Object.keys(a))})};_.r.bm=function(a){return this.pa().flatMap(function(b){return b.renditions}).find(function(b){return _.M.ta(b,a,a&&Object.keys(a))})};_.K("clpp.TrackManager",_.xt);_.xt.prototype.isAbrEnabled=_.xt.prototype.ya;_.xt.prototype.addTextTrack=_.xt.prototype.addTextTrack;_.xt.prototype.findTextRendition=_.xt.prototype.bm;_.xt.prototype.findAudioRendition=_.xt.prototype.$l;
581
+ _.xt.prototype.findVideoRendition=_.xt.prototype.dm;_.xt.prototype.findTextTrack=_.xt.prototype.cm;_.xt.prototype.findAudioTrack=_.xt.prototype.am;_.xt.prototype.findVideoTrack=_.xt.prototype.em;_.xt.prototype.setTextRendition=_.xt.prototype.Gb;_.xt.prototype.setAudioRendition=_.xt.prototype.Fb;_.xt.prototype.setVideoRendition=_.xt.prototype.rb;_.xt.prototype.setTextTrack=_.xt.prototype.ab;_.xt.prototype.setAudioTrack=_.xt.prototype.Ia;_.xt.prototype.setVideoTrack=_.xt.prototype.Hb;
582
+ _.xt.prototype.getTextTrack=_.xt.prototype.xa;_.xt.prototype.getAudioTrack=_.xt.prototype.oa;_.xt.prototype.getVideoTrack=_.xt.prototype.Ma;_.xt.prototype.getLoadingTextRendition=_.xt.prototype.Ob;_.xt.prototype.getLoadingAudioRendition=_.xt.prototype.Nb;_.xt.prototype.getLoadingVideoRendition=_.xt.prototype.zb;_.xt.prototype.getTextRendition=_.xt.prototype.$a;_.xt.prototype.getAudioRendition=_.xt.prototype.Va;_.xt.prototype.getVideoRendition=_.xt.prototype.qa;_.xt.prototype.getTextTracks=_.xt.prototype.pa;
583
+ _.xt.prototype.getAudioTracks=_.xt.prototype.getAudioTracks;_.xt.prototype.getVideoTracks=_.xt.prototype.getVideoTracks;_.xt.prototype.canSelectVideoTracks=_.xt.prototype.lg;_.w(yt,_.xt);_.r=yt.prototype;_.r.lg=function(){return!_.qj()};
584
+ _.r.Mg=function(a,b){var c=this,d,e,f,g,h,l,m,n,p,q,t,u,y,D,C,B,E,A;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;h=e||f;l=b.target;if(m=c.h.find(function(N){return Lt(N,d,a)}))return c.g.warn("Track from event already exists",d,m),J["return"]();n=ft(a,d);p=Nt(d);if(g){if(d.kind===_.Te)return J["return"]();void 0!==d.id?q=c.o[d.id]:(t=Object.values(c.o),q=t.find(function(N){return Lt(n,N,
585
+ a)}));n.kind&&"captions"===n.kind&&(n.mimeType=_.Kc);q&&(n.src=q.url,n.mimeType=q.mimeType)}else if(m=c.h.find(function(N){return N.type===a&&_.M.ta(N,n,["kind","label","language"])}))return m.id=d.id,p&&(c.g.debug(Gb+a+" track active"),c.a.set(a,m)),c.g.debug("Track from event seems to already exists, flipped native track to",d),J["return"]();_.F(J,2);u=new _.ht(n.id,n);n.renditions.push(u);c.h.push(n);y=c.m.getConfiguration().safari;return Ct(c,a,y)?_.x(J,Et(c,n,y),5):Dt(c,a,y)?_.x(J,Ft(c,n,y),
586
+ 5):J.C(5)}if(2!=J.a)return c.g.debug(a+" Track added",n),c.m.trigger(new _.Q(_.Ag)),D=It(c,a).length,C=!(!l||!l.length),B=l&&l.length||0,E=function(){c.g.debug(Gb+a+" track active. Native track active: "+(p+". Number of tracks: ")+D,d);c.a.set(a,n)},p?E():1===D&&h&&(f?E():C&&1!==B||E()),_.G(J,0);A=_.H(J);c.g.error("Error while converting track data",A);_.z(J)})};
587
+ _.r.Og=function(a,b){if(b){var c=b.track;if(!c)this.g.warn(lb);else if(a===_.at&&c.kind!==_.Te){var d=this.h.find(function(e){return Lt(e,c,a)});d&&(this.h.splice(this.h.indexOf(d),1),(this.a.get(a)||null)===d&&(this.a.set(a,null),Pt(this)),this.g.debug(a+" Track removed, id: ",d.id))}}else this.g.warn(ib)};
588
+ _.r.Ng=function(a,b){this.g.debug(a+" Track changed",b);a===_.at&&Pt(this);var c=Ht(this,a);if(c)for(var d={bd:0};d.bd<c.length;d={bd:d.bd},++d.bd)if(Nt(c[d.bd])){if(d=this.h.find(function(e){return function(f){return Lt(f,c[e.bd],a)}}(d)))this.a.set(a,d),this.g.debug("Track change detected, id:",d.id),d===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 it(a.getNetworkEngine())};
589
+ _.r.load=function(){this.A=!1;var a=Gt(this,_.at);a&&(this.f.on(a,_.Ec,this.J),this.f.on(a,Rf,this.L),this.f.on(a,qd,this.K));if(a=Gt(this,_.X))this.f.on(a,_.Ec,this.G),this.f.on(a,Rf,this.I),this.f.on(a,qd,this.H);if(a=Gt(this,_.bt))this.f.on(a,_.Ec,this.O),this.f.on(a,Rf,this.T),this.f.on(a,qd,this.P);this.f.one(this.m,fd,this.ul.bind(this))};_.r.release=function(){this.A=!0;this.h=[];this.o={};this.a.clear();this.l.clear();this.f.release()};_.r.destroy=function(){this.release();this.m=null};
590
+ _.r.getVideoTracks=function(){return It(this,_.bt)};_.r.getAudioTracks=function(){return It(this,_.X)};_.r.pa=function(){return It(this,_.at)};_.r.qa=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.Va=function(){return Jt(this,_.X)};_.r.$a=function(){return Jt(this,_.at)};_.r.zb=function(){return Kt(this,_.bt)};
591
+ _.r.Nb=function(){return Kt(this,_.X)};_.r.Ob=function(){return Kt(this,_.at)};_.r.Ma=function(){return this.a.get(_.bt)||null};_.r.oa=function(){return this.a.get(_.X)||null};_.r.xa=function(){return this.a.get(_.at)||null};_.r.Hb=function(a){Mt(this,_.bt,a)};_.r.Ia=function(a){Mt(this,_.X,a)};_.r.ab=function(a){Mt(this,_.at,a)};_.r.rb=function(a){Mt(this,_.bt,a&&a.track)};_.r.Fb=function(a){Mt(this,_.X,a&&a.track)};_.r.Gb=function(a){Mt(this,_.at,a&&a.track)};
592
+ _.r.addTextTrack=function(a){var b=this,c;return _.I(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.B++,b.o[c]=a,zt(b,a,c),d.C(0)):_.x(d,At(b,a),0)})};_.r.ya=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};
593
+ _.r.ul=function(){var a=this,b,c,d;return _.I(function(e){if(1==e.a){b=a.m.getConfiguration();Ot(a,_.X,b.preferredAudioLanguage);c=Ht(a,_.at);if(c.some(function(f){return Nt(f)}))return e.C(2);d=Gt(a,_.at);return _.x(e,new Promise(function(f){a.f.one(d,qd,f);(new _.gj(f)).ha(1)}),2)}if(a.A)return e["return"]();Ot(a,_.at,b.preferredTextLanguage);_.z(e)})};yt.prototype.isAbrEnabled=yt.prototype.ya;yt.prototype.addTextTrack=yt.prototype.addTextTrack;yt.prototype.setTextRendition=yt.prototype.Gb;
594
+ yt.prototype.setAudioRendition=yt.prototype.Fb;yt.prototype.setVideoRendition=yt.prototype.rb;yt.prototype.setTextTrack=yt.prototype.ab;yt.prototype.setAudioTrack=yt.prototype.Ia;yt.prototype.setVideoTrack=yt.prototype.Hb;yt.prototype.getTextTrack=yt.prototype.xa;yt.prototype.getAudioTrack=yt.prototype.oa;yt.prototype.getVideoTrack=yt.prototype.Ma;yt.prototype.getLoadingTextRendition=yt.prototype.Ob;yt.prototype.getLoadingAudioRendition=yt.prototype.Nb;yt.prototype.getLoadingVideoRendition=yt.prototype.zb;
595
+ yt.prototype.getTextRendition=yt.prototype.$a;yt.prototype.getAudioRendition=yt.prototype.Va;yt.prototype.getVideoRendition=yt.prototype.qa;yt.prototype.getTextTracks=yt.prototype.pa;yt.prototype.getAudioTracks=yt.prototype.getAudioTracks;yt.prototype.getVideoTracks=yt.prototype.getVideoTracks;yt.prototype.canSelectVideoTracks=yt.prototype.lg;var Qt=["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,le,"emptied",ne,_.pe,_.qe,"interruptbegin","interruptend",_.Le,_.Me,Oe,"mozaudioavailable",_.lf,_.pf,_.Af,_.Mf,_.Of,_.$f,_.ag,gg,"suspend",_.zg,"volumechange",_.$g,_.ah,_.Tf,fh,eh,ch,dh];_.w(_.St,_.Di);_.r=_.St.prototype;_.r.init=function(a,b){this.configuration=this.Fa=b;this.F=a;this.log.info("Initializing Player surface");var c=this.F.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.O.on(c,e,this.Wj,e!==_.qe);this.Sd||(this.Sd=this.bi());this.Sd.initialize(this);this.F.showMediaElement()};_.r.release=function(){this.P&&(this.P.destroy(),this.P=null);return Promise.resolve()};
596
+ _.r.destroy=function(){this.O.release();return this.Qd.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};
597
+ _.r.play=function(){var a=this;if(!this.ca)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.F.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||""};Rt(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;})};
598
+ _.r.pause=function(){var a=this;return this.ca?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.F.getMedia().pause(),3===a.getState())a.O.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.F.getMedia().paused};_.r.isEnded=function(){return this.F.getMedia().ended};
599
+ _.r.getConfiguration=function(){return this.configuration};_.r.setDrmCustomDataModifier=function(a){this.qd=a};_.r.setCdnErrorCallback=function(a){this.ed=a};_.r.td=function(){return this.qd};_.r.getSurface=function(){return this.F};_.r.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.gi(b?b.buffered:void 0,a)};_.r.getPosition=function(){return this.getMediaPosition()};
600
+ _.r.getMediaPosition=function(){var a=this.F.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
601
+ _.r.seek=function(a){var b=this,c=this.getMediaPosition();if(void 0===a||null===a||typeof a!==_.k||a===c)return Promise.resolve();var d=this.F.getMedia();if(!d)return this.log.warn("No media element available, can not set current time!"),Promise.reject();var e=a-c;return.1>=Math.abs(e)?(this.log.info("Skip seek. Delta "+Math.abs(e)+" \x3c 0.1"),Promise.resolve()):new Promise(function(f,g){function h(){if(d.readyState>HTMLMediaElement.HAVE_NOTHING)m();else b.O.one(d,_.Me,m)}function l(n){var p=b.getMediaPosition(),
602
+ q=.1>=Math.abs(a-p),t=.25<p-a,u=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,y=n.type===_.$f,D=n.type===_.Mf,C=n.type===_.zg,B=D&&u;t=y||q&&B||C&&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:",C,"Progress:",D,"ReadyState:",u,"Progress Ready:",B);t?(b.hh=!1,b.ye=!1,b.O.off(d,_.$f,l),b.O.off(d,_.zg,l),b.O.off(d,_.Mf,l),b.lj(),b.trigger(new _.Q(_.Mg)),f()):D&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
603
+ d.currentTime=a)}function m(){b.trigger(new _.Q(_.Ng));b.O.on(d,_.$f,l);b.O.on(d,_.zg,l);b.O.on(d,_.Mf,l);b.log.info("Seeking to "+a+". Delta "+e);b.hh=!0;b.ye=!0;d.currentTime=a}b.getState()===_.eu?(b.log.debug("Player is in IDLE state. Postpone seek."),b.O.one(b,_.ig,function(){switch(b.getState()){case 2:case 3:case 4:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
604
+ _.r.getVolume=function(){var a=this.F.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.F.getMedia();b?_.M.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.F.getMedia().muted};
605
+ _.r.setMuted=function(a){var b=this.F.getMedia();typeof a===_.bd&&(b.muted=a)};_.r.getDuration=function(){return this.getMediaDuration()};_.r.getMediaDuration=function(){return this.ca?this.F.getMedia().duration:-1};_.r.getTrackManager=function(){return this.Sd};_.r.getPlaybackRate=function(){var a=this.F.getMedia();return a&&a.playbackRate||1};_.r.setPlaybackRate=function(a){var b=this.F.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.r.setSourceIndex=function(a){this.wf=a};_.r.getSourceIndex=function(){return this.wf};
606
+ _.r.getLoadedSource=function(){return this.ca&&-1!==this.wf?this.ca[this.wf]:null};_.r.getPeriods=function(){return[]};_.r.getNetworkEngine=function(){return this.Qd};_.r.setNetworkEngine=function(a){var b=this;this.Qd=a;Zm(this.Qd,function(c){b.onError(c)})};_.r.setCmsdManager=function(a){this.Yg=a};_.r.getTextDisplayer=function(){return this.P};_.r.getTimelineCues=function(){return[]};_.r.getCueTimeline=function(){return null};_.r.resetAbr=function(){};
607
+ _.r.zo=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.th.debug(d);else{var e="";switch(a.type){case _.Of:e="Rate: "+this.getPlaybackRate();break;case le: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=
608
+ this.getBufferInfo().Ua(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.th.info(d)}a.type!==_.qe&&this.trigger(new _.Q(a.type,{detail:a}))};_.r.lj=function(){};_.Tt=new Map;_.Ut=new _.L("clpp.text");_.cu.prototype.getStats=function(){return{width:this.A,height:this.j,streamBandwidth:this.w,decodedFrames:this.l,droppedFrames:this.o,corruptedFrames:this.F,estimatedBandwidth:this.h,loadLatency:this.B,playTime:Zt(this.a,3),pauseTime:Zt(this.a,4),bufferingTime:Zt(this.a,2),stateHistory:$t(this.a),switchHistory:bu(this.f)}};gu.prototype.getState=function(){return iu(this,"")};gu.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.m.namespace());this.a.release()};_.w(ou,_.St);_.r=ou.prototype;_.r.init=function(a,b){_.St.prototype.init.call(this,a,b);this.j=new gu(this);mu(this.j,_.eu)};_.r.namespace=function(){return Cd};
609
+ _.r.unload=function(){var a=this,b;return _.I(function(c){if(a.ca){a.log.debug("Releasing player with source",a.ca);a.B&&(a.B.stop(),a.B=null);(b=a.getTrackManager())&&b.release();a.A&&(a.A.destroy(),a.A=null);a.P&&(a.P.destroy(),a.P=null);a.l&&a.l.release();a.o&&(a.o.destroy(),a.o=null);_.zi(a.h);a.f&&(a.f=new _.cu);a.G=null;a.ca=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}}_.z(c)})};
610
+ _.r.release=function(){var a=this;return _.St.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.j&&mu(a.j,_.eu)})};
611
+ _.r.destroy=function(){var a=this;if(this.w)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.w=!0;return _.St.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Ka);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};
614
612
  _.r.getTrackManager=function(){return this.Sd};
615
- _.r.load=function(a){var b=this,c,d,e,f,g;return _.I(function(h){switch(h.a){case 1:if(b.w)return h["return"](Promise.reject(new _.N(_.O,7,7E3)));if(!b.getSurface()||!b.getSurface().getMedia())return h["return"](Promise.reject("No surface or no media element in surface"));c=_.M;d=b.D.getMedia();b.I=Date.now()/1E3;b.f=new _.eu;b.h.on(b,_.eg,function(){b.f&&_.$t(b.f.a,b.getState())});ou(b.j,1);b.ca=_.Un(a);b.configuration=_.Qn([b.Ja,a]);b.log.debug(_.bb,b.configuration);b.log.debug(_.tb,b.ca);e=_.Yt(b.configuration,
616
- [_.se,"native"]);b.R=e.create(b);b.R.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.ei(_.lg)&&!_.qj()&&(b.A=new Lp(b),b.A.start(d));b.l?b.l.release():b.l=new jp(b);d.textTracks&&lp(b.l,d.textTracks);f=b.getTrackManager();f.load();d.loop=!!b.configuration.loop;c.P(b.configuration.volume)||b.setVolume(b.configuration.volume);c.P(b.configuration.muted)||b.setMuted(b.configuration.muted);b.h.one(d,ad,function(){b.trigger(new _.Q(_.wg))});null==b.configuration.startTime&&yu(b,d);_.oj()&&zu(b,d);
617
- _.F(h,2);su(b,d);return _.x(h,vu(b),4);case 4:return _.x(h,xu(b).T,5);case 5:_.G(h,0);break;case 2:g=_.H(h),b.H=!1,b.onError(g),_.z(h)}})};_.r.onError=function(a){this.H||(a.severity===_.O&&null!==this.j&&ou(this.j,_.Ko),this.trigger(new _.Q(_.ke,{detail:a})))};_.r.Th=function(){return new At};_.r.getState=function(){return null!==this.j?this.j.getState().currentState:7};
613
+ _.r.load=function(a){var b=this,c,d,e,f,g;return _.I(function(h){switch(h.a){case 1:if(b.w)return h["return"](Promise.reject(new _.O(_.P,7,7E3)));if(!b.getSurface()||!b.getSurface().getMedia())return h["return"](Promise.reject("No surface or no media element in surface"));c=_.M;d=b.F.getMedia();b.I=Date.now()/1E3;b.f=new _.cu;b.h.on(b,_.ig,function(){b.f&&_.Yt(b.f.a,b.getState())});mu(b.j,1);b.ca=_.Sn(a);b.configuration=_.On([b.Fa,a]);b.log.debug(_.cb,b.configuration);b.log.debug(_.ub,b.ca);e=_.Wt(b.configuration,
614
+ [_.ye,"native"]);b.P=e.create(b);b.P.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.ii(_.pg)&&!_.sj()&&(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&&wu(b,d);_.qj()&&xu(b,d);
615
+ _.F(h,2);qu(b,d);return _.x(h,tu(b),4);case 4:return _.x(h,vu(b).U,5);case 5:_.G(h,0);break;case 2:g=_.H(h),b.H=!1,b.onError(g),_.z(h)}})};_.r.onError=function(a){this.H||(a.severity===_.P&&null!==this.j&&mu(this.j,_.Co),this.trigger(new _.Q(_.qe,{detail:a})))};_.r.bi=function(){return new yt};_.r.getState=function(){return null!==this.j?this.j.getState().currentState:7};
618
616
  _.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};
619
- _.r.getStats=function(){if(!this.f||!this.a)return _.fu();this.f&&_.$t(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.qa())a.bandwidth&&(this.f.w=a.bandwidth),a.Pd&&(this.f.h=a.Pd);return this.f.getStats()};
620
- _.r.getTimelineCues=function(){return this.l?this.l.getTimelineCues():[]};_.r.getCueTimeline=function(){return null};Au.prototype.a=function(){return wd};Au.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.Hc,e=c===_.Mc,f=c===_.Vl;return _.nj()||d||e||f&&!_.oj()?0:""!==tj().canPlayType(c)?f&&_.oj()&&(window.ManagedMediaSource||window.MediaSource&&MediaSource.isTypeSupported)&&!b.streaming.preferNativeHlsOnSafari?1:2:0};Au.prototype.f=function(a){return a===_.pa};Au.prototype.create=function(){return new qu};_.w(Bu,S);_.r=Bu.prototype;
621
- _.r.open=function(a,b){var c=this,d,e,f,g,h,l,m;return _.I(function(n){if(1==n.a){if(c.w)throw new _.N(_.O,7,7008,"Cannot call open() while "+c.w+fa);if(0!==a)throw new _.N(_.O,7,7007,"The index parameter only supports the value of 0.");if(0===b.length)throw new _.N(_.O,7,7003,jb);if(b.some(function(p){return!p.id||!p.source}))throw new _.N(_.O,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 _.N(_.O,7,
622
- 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 _.N(_.O,7,7100,"Unsupported `playlist.timeline` config value!");h=e.startTime;if(null!=h&&(typeof h!==_.k||0>h))throw new _.N(_.O,7,7100,"Invalid `playlist.startTime` config value!");l=e.endTime;if(null!=l&&(typeof l!==_.k||0>l||null!=h&&l<=h))throw new _.N(_.O,7,7100,"Invalid `playlist.endTime` config value!");m=e.content;if("DVR"===m&&!l)throw new _.N(_.O,7,
623
- 7100,"`playlist.endTime` config value is required for DVR content!");}xh(n);Du(c);c.w="open";return _.x(n,Hu(c,b),4)}2!=n.a&&(c.H=0,c.o=b,c.fa=!0,Eu(c,b[0].playlist||{}));_.yh(n);c.w=null;return _.zh(n)})};
624
- _.r.Yj=function(a){var b=this,c;return _.I(function(d){if(1==d.a){if(b.w)throw new _.N(_.O,7,7008,"Cannot call addItem() while "+b.w+fa);if(!b.fa)throw new _.N(_.O,7,7008,"open() must be called before addItem()!");if(!a.id||!a.source)throw new _.N(_.O,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 _.N(_.O,7,7100,"A config with this `id` already exists in the playlist!");xh(d);b.w="addItem";b.o.push(a);return _.x(d,
625
- Iu(b,a),2)}_.yh(d);b.w=null;return _.zh(d)})};_.r.getCurrentItem=function(){return this.o[this.H]||null};_.r.getCurrentItemIndex=function(){return this.H};_.r.pm=function(){return _.kh(this.o).concat()};_.r.me=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.fa=!1;return S.prototype.release.call(this)};
626
- _.r.destroy=function(){Du(this);return S.prototype.destroy.call(this)};_.r.setCdnErrorCallback=function(){throw new _.N(1,7,7009,"CDN switching is not supported!");};_.K("clpp.playlist.ScPlaylist",Bu);Bu.prototype.setCdnErrorCallback=Bu.prototype.setCdnErrorCallback;Bu.prototype.destroy=Bu.prototype.destroy;Bu.prototype.release=Bu.prototype.release;Bu.prototype.seekWith=Bu.prototype.seekWith;Bu.prototype.getTimeline=Bu.prototype.getTimeline;Bu.prototype.getSize=Bu.prototype.me;
627
- Bu.prototype.getPlaylist=Bu.prototype.pm;Bu.prototype.getCurrentItemIndex=Bu.prototype.getCurrentItemIndex;Bu.prototype.getCurrentItem=Bu.prototype.getCurrentItem;Bu.prototype.addItem=Bu.prototype.Yj;Bu.prototype.open=Bu.prototype.open;_.w(Lu,_.zi);_.r=Lu.prototype;_.r.Lb=function(){return this.f};_.r.nf=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.Co=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:[]}})};
628
- _.r.Bo=function(a){if(0===this.h.length)throw Error(ib);if(0>a||a>this.h.length-1)throw Error("Index out of bounds");this.a=a};_.r.qe=function(){return this.a<this.h.length-1};_.r.yi=function(){return 0<this.a};
629
- _.r.ho=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(ib),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,Tu(a,b),5);case 5:a.g.info("First playing (index: "+a.a+")");case 3:_.yh(d);a.l=!1;Yu(a);_.zh(d);break;case 2:throw c=_.H(d),a.g.error("First failed (index: "+a.a+")"),c;}})};
630
- _.r.oj=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.qe())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===_.df&&b.player.pause();Mu(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,Uu(a,c),5);case 5:a.g.info("Next playing (index: "+a.a+")");case 3:_.yh(e);
631
- a.l=!1;b&&Qu(a,b);Yu(a);_.zh(e);break;case 2:throw d=_.H(e),a.g.error("Next failed (index: "+a.a+")"),d;}})};
632
- _.r.io=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.yi())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===_.df&&b.player.pause();Mu(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,Uu(a,c),5);case 5:a.g.info("Previous playing (index: "+
633
- a.a+")");case 3:_.yh(e);a.l=!1;b&&Qu(a,b);Yu(a);_.zh(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([Nu(a),a.f?Qu(a,a.f):Promise.resolve()]),2)):_.x(b,Zu(a),0)})};_.K(xd,Lu);Lu.prototype.destroy=Lu.prototype.destroy;Lu.prototype.playPrev=Lu.prototype.io;Lu.prototype.playNext=Lu.prototype.oj;Lu.prototype.playFirst=Lu.prototype.ho;Lu.prototype.hasPrev=Lu.prototype.yi;
634
- Lu.prototype.hasNext=Lu.prototype.qe;Lu.prototype.setIndex=Lu.prototype.Bo;Lu.prototype.setItems=Lu.prototype.Co;Lu.prototype.getPreloading=Lu.prototype.mi;Lu.prototype.getPrev=Lu.prototype.ni;Lu.prototype.getNext=Lu.prototype.ki;Lu.prototype.getCurrentPlayer=Lu.prototype.nf;Lu.prototype.getCurrent=Lu.prototype.Lb;var Pu="preload",Ru=_.Ie;var $u=new Map;_.r=bv.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]===_.Pc;if(!window.muxjs||!c&&!d)return!1;if(d)return _.av(Tc);if(b)return _.av(cv(b,a));c=cv(_.Oc,a);d=cv(_.Ng,a);return _.av(c)||_.av(d)};_.r.isMuxed=function(a,b){return 1<this.demuxMimeTypes(a,b).size};
635
- _.r.demuxMimeTypes=function(a,b){var c=new Map;c.set(a,b);try{var d=_.In(b),e=_.Jn(b).split(","),f=new Map,g=Gn(_.Oc,e),h=Gn(_.Ng,e);g&&f.set(_.Oc,this.convertCodecs(_.Oc,_.Hn(d,g)));h&&f.set(_.Ng,this.convertCodecs(_.Ng,_.Hn(d,h)));return f}catch(l){return c}};_.r.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]===_.Pc?Tc:"mp2t"===b.toLowerCase().split(";")[0].split("/")[1]?cv(a,b):b};_.r.getOriginalMimeType=function(){return this.h};
636
- _.r.transmux=function(a){function b(){g={video:_.Rm.apply(Km,_.kh(d)),captions:f,audio:_.Rm.apply(Km,_.kh(e))}}function c(h){f=h.captions;var l=new Uint8Array(h.data.byteLength+h.initSegment.byteLength);l.set(h.initSegment,0);l.set(h.data,h.initSegment.byteLength);h.type===Iw?d.push(l):h.type===Jw&&e.push(l)}var d=[],e=[],f=[],g=null;a=_.Ni(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 _.N(_.O,3,3018);return g};
637
- var Jw=_.Oc,Iw=_.Ng;dv.prototype.getCuePoints=function(){};dv.prototype.Rb=function(){};dv.prototype.Qb=function(){};_.K("clpp.ads.IAdsTimeline",dv);dv.prototype.hasPostroll=dv.prototype.Qb;dv.prototype.hasPreroll=dv.prototype.Rb;dv.prototype.getCuePoints=dv.prototype.getCuePoints;_.r=_.ev.prototype;_.r.install=function(){};_.r.uninstall=function(){};_.r.beforeLoad=function(){};_.r.afterLoad=function(){};_.r.playerConstructed=function(){};_.r.playerDestroyed=function(){};_.w(fv,_.bq);fv.prototype.Ce=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]};fv.prototype.ai=function(a,b){var c=yq(b);switch(this.o){case Kw:return c;case Lw:return(new _.xn(c)).a;default:throw Error("Unknown content ID strategy");}};fv.prototype.Wi=function(a,b){b.headers[za]=Nc;this.Ce(a,b);var c={spc:_.Lm(b.body)};b.body=_.R.Fd(_.zn(c,!0))};
638
- fv.prototype.Xi=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=_.Nm(c).buffer};_.K(td,fv);fv.prototype.onFairPlayLicenseResponse=fv.prototype.Xi;fv.prototype.onFairPlayLicenseRequest=fv.prototype.Wi;fv.prototype.extractFairPlayContentId=fv.prototype.ai;fv.prototype.onLicenseRequest=fv.prototype.Ce;fv.prototype.constructor=fv.prototype.constructor;fv.NAME=Ua;var Lw="hostname",Kw="full-skd";
639
- fv.FairPlayContentIdStrategy={HOSTNAME:Lw,FULL_SKD:Kw};_.w(gv,_.ev);gv.prototype.beforeLoad=function(a){a=a.getConfiguration();if(a.drm&&a.drm&&a.drm.env===Ua){a=a.drm.customData;if(!a)throw new _.N(_.O,7,7100,_.Hd);a=new fv(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||Kw);_.Yn(a)}};gv.prototype.uninstall=function(){delete _.Xn.HeaderDrm};gv.prototype.id=function(){return"headerdrm"};_.K("clpp.drm.HeaderDrmComponent",gv);var ov;_.Hv.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)};_.Hv.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.Jv.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.Ng);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.lm;c=c.play();var e=(new _.ej(function(){b(a)})).ha(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===ob?b(!0):b(!1)}):b(!0);return d};
640
- var Iv=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,
617
+ _.r.getStats=function(){if(!this.f||!this.a)return _.du();this.f&&_.Yt(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.F=Number(a.corruptedVideoFrames));if(a=this.getTrackManager())if(a=a.qa())a.bandwidth&&(this.f.w=a.bandwidth),a.Pd&&(this.f.h=a.Pd);return this.f.getStats()};
618
+ _.r.getTimelineCues=function(){return this.l?this.l.getTimelineCues():[]};_.r.getCueTimeline=function(){return null};yu.prototype.a=function(){return Cd};yu.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.Lc,e=c===_.Qc,f=c===_.Yl;return _.pj()||d||e||f&&!_.qj()?0:""!==vj().canPlayType(c)?f&&_.qj()&&(window.ManagedMediaSource||window.MediaSource&&MediaSource.isTypeSupported)&&!b.streaming.preferNativeHlsOnSafari?1:2:0};yu.prototype.f=function(a){return a===_.ra};yu.prototype.create=function(){return new ou};_.w(zu,S);_.r=zu.prototype;
619
+ _.r.open=function(a,b){var c=this,d,e,f,g,h,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,
620
+ 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!");h=e.startTime;if(null!=h&&(typeof h!==_.k||0>h))throw new _.O(_.P,7,7100,"Invalid `playlist.startTime` config value!");l=e.endTime;if(null!=l&&(typeof l!==_.k||0>l||null!=h&&l<=h))throw new _.O(_.P,7,7100,"Invalid `playlist.endTime` config value!");m=e.content;if("DVR"===m&&!l)throw new _.O(_.P,7,
621
+ 7100,"`playlist.endTime` config value is required for DVR content!");}Dh(n);Au(c);c.w="open";return _.x(n,Eu(c,b),4)}2!=n.a&&(c.H=0,c.o=b,c.fa=!0,Bu(c,b[0].playlist||{}));_.Eh(n);c.w=null;return _.Fh(n)})};
622
+ _.r.fk=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.fa)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,
623
+ Fu(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.xm=function(){return _.ph(this.o).concat()};_.r.ne=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.fa=!1;return S.prototype.release.call(this)};
624
+ _.r.destroy=function(){Au(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",zu);zu.prototype.setCdnErrorCallback=zu.prototype.setCdnErrorCallback;zu.prototype.destroy=zu.prototype.destroy;zu.prototype.release=zu.prototype.release;zu.prototype.seekWith=zu.prototype.seekWith;zu.prototype.getTimeline=zu.prototype.getTimeline;zu.prototype.getSize=zu.prototype.ne;
625
+ zu.prototype.getPlaylist=zu.prototype.xm;zu.prototype.getCurrentItemIndex=zu.prototype.getCurrentItemIndex;zu.prototype.getCurrentItem=zu.prototype.getCurrentItem;zu.prototype.addItem=zu.prototype.fk;zu.prototype.open=zu.prototype.open;_.w(Iu,_.Di);_.r=Iu.prototype;_.r.Mb=function(){return this.f};_.r.rf=function(){return this.f?this.f.player:null};_.r.wi=function(){return this.o.get(this.a+1)||null};_.r.zi=function(){return this.o.get(this.a-1)||null};_.r.yi=function(){return[this.zi(),this.wi()].filter(Boolean)};_.r.Ko=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:[]}})};
626
+ _.r.Jo=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.re=function(){return this.a<this.h.length-1};_.r.Hi=function(){return 0<this.a};
627
+ _.r.qo=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,Qu(a,b),5);case 5:a.g.info("First playing (index: "+a.a+")");case 3:_.Eh(d);a.l=!1;Vu(a);_.Fh(d);break;case 2:throw c=_.H(d),a.g.error("First failed (index: "+a.a+")"),c;}})};
628
+ _.r.wj=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.re())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();Ju(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,Ru(a,c),5);case 5:a.g.info("Next playing (index: "+a.a+")");case 3:_.Eh(e);
629
+ a.l=!1;b&&Nu(a,b);Vu(a);_.Fh(e);break;case 2:throw d=_.H(e),a.g.error("Next failed (index: "+a.a+")"),d;}})};
630
+ _.r.ro=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.Hi())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();Ju(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,Ru(a,c),5);case 5:a.g.info("Previous playing (index: "+
631
+ a.a+")");case 3:_.Eh(e);a.l=!1;b&&Nu(a,b);Vu(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([Ku(a),a.f?Nu(a,a.f):Promise.resolve()]),2)):_.x(b,Wu(a),0)})};_.K(Dd,Iu);Iu.prototype.destroy=Iu.prototype.destroy;Iu.prototype.playPrev=Iu.prototype.ro;Iu.prototype.playNext=Iu.prototype.wj;Iu.prototype.playFirst=Iu.prototype.qo;Iu.prototype.hasPrev=Iu.prototype.Hi;
632
+ Iu.prototype.hasNext=Iu.prototype.re;Iu.prototype.setIndex=Iu.prototype.Jo;Iu.prototype.setItems=Iu.prototype.Ko;Iu.prototype.getPreloading=Iu.prototype.yi;Iu.prototype.getPrev=Iu.prototype.zi;Iu.prototype.getNext=Iu.prototype.wi;Iu.prototype.getCurrentPlayer=Iu.prototype.rf;Iu.prototype.getCurrent=Iu.prototype.Mb;var Mu="preload",Ou=_.Pe;var Xu=new Map;_.r=Zu.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 _.Yu(Xc);if(b)return _.Yu($u(b,a));c=$u(_.Sc,a);d=$u(_.Sg,a);return _.Yu(c)||_.Yu(d)};_.r.isMuxed=function(a,b){return 1<this.demuxMimeTypes(a,b).size};
633
+ _.r.demuxMimeTypes=function(a,b){var c=new Map;c.set(a,b);try{var d=_.Gn(b),e=_.Hn(b).split(","),f=new Map,g=En(_.Sc,e),h=En(_.Sg,e);g&&f.set(_.Sc,this.convertCodecs(_.Sc,_.Fn(d,g)));h&&f.set(_.Sg,this.convertCodecs(_.Sg,_.Fn(d,h)));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]?$u(a,b):b};_.r.getOriginalMimeType=function(){return this.h};
634
+ _.r.transmux=function(a){function b(){g={video:_.Qm.apply(Jm,_.ph(d)),captions:f,audio:_.Qm.apply(Jm,_.ph(e))}}function c(h){f=h.captions;var l=new Uint8Array(h.data.byteLength+h.initSegment.byteLength);l.set(h.initSegment,0);l.set(h.data,h.initSegment.byteLength);h.type===Aw?d.push(l):h.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};
635
+ var Bw=_.Sc,Aw=_.Sg;av.prototype.getCuePoints=function(){};av.prototype.Sb=function(){};av.prototype.Rb=function(){};_.K("clpp.ads.IAdsTimeline",av);av.prototype.hasPostroll=av.prototype.Rb;av.prototype.hasPreroll=av.prototype.Sb;av.prototype.getCuePoints=av.prototype.getCuePoints;_.r=_.bv.prototype;_.r.install=function(){};_.r.uninstall=function(){};_.r.beforeLoad=function(){};_.r.afterLoad=function(){};_.r.playerConstructed=function(){};_.r.playerDestroyed=function(){};_.w(cv,_.$p);cv.prototype.Ee=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]};cv.prototype.ji=function(a,b){var c=wq(b);switch(this.o){case Cw:return c;case Dw:return(new _.wn(c)).a;default:throw Error("Unknown content ID strategy");}};cv.prototype.dj=function(a,b){b.headers[Aa]=Rc;this.Ee(a,b);var c={spc:_.Km(b.body)};b.body=_.R.Gd(_.yn(c,!0))};
636
+ cv.prototype.ej=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=_.Mm(c).buffer};_.K(zd,cv);cv.prototype.onFairPlayLicenseResponse=cv.prototype.ej;cv.prototype.onFairPlayLicenseRequest=cv.prototype.dj;cv.prototype.extractFairPlayContentId=cv.prototype.ji;cv.prototype.onLicenseRequest=cv.prototype.Ee;cv.prototype.constructor=cv.prototype.constructor;cv.NAME=Va;var Dw="hostname",Cw="full-skd";
637
+ cv.FairPlayContentIdStrategy={HOSTNAME:Dw,FULL_SKD:Cw};_.w(dv,_.bv);dv.prototype.beforeLoad=function(a){a=a.getConfiguration();if(a.drm&&a.drm&&a.drm.env===Va){a=a.drm.customData;if(!a)throw new _.O(_.P,7,7100,_.Pd);a=new cv(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||Cw);_.Wn(a)}};dv.prototype.uninstall=function(){delete _.Vn.HeaderDrm};dv.prototype.id=function(){return"headerdrm"};_.K("clpp.drm.HeaderDrmComponent",dv);var lv;_.ov.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)};_.ov.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.qv.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 _.om;c=c.play();var e=(new _.gj(function(){b(a)})).ha(.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};
638
+ var pv=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,
641
639
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
642
640
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
643
641
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
644
642
  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,
645
643
  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,
646
- 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]);_.Kv={};_.r=_.Ov.prototype;_.r.getBackgroundColor=function(){return this.K};_.r.setBackgroundColor=function(a){this.K=a;this.Vb()};_.r.getWindowColor=function(){return this.U};_.r.setWindowColor=function(a){this.U=a;this.Vb()};_.r.getFontFamily=function(){return this.R};_.r.setFontFamily=function(a){this.R=a;this.Vb()};_.r.getFontColor=function(){return this.O};_.r.setFontColor=function(a){this.O=a;this.Vb()};_.r.getFontSize=function(){return this.I};_.r.setFontSize=function(a){this.I=a;this.Vb()};
647
- _.r.getFontSizePercent=function(){return null===this.B?Mw:this.B};_.r.setFontSizePercent=function(a){this.B=a;this.Vb()};_.r.getEdgeColor=function(){return this.H};_.r.setEdgeColor=function(a){this.H=a;this.Vb()};_.r.getEdgeType=function(){return this.o};_.r.setEdgeType=function(a){this.o=a;this.Vb()};_.Ov.prototype.setEdgeType=_.Ov.prototype.setEdgeType;_.Ov.prototype.getEdgeType=_.Ov.prototype.getEdgeType;_.Ov.prototype.setEdgeColor=_.Ov.prototype.setEdgeColor;_.Ov.prototype.getEdgeColor=_.Ov.prototype.getEdgeColor;
648
- _.Ov.prototype.setFontSizePercent=_.Ov.prototype.setFontSizePercent;_.Ov.prototype.getFontSizePercent=_.Ov.prototype.getFontSizePercent;_.Ov.prototype.setFontSize=_.Ov.prototype.setFontSize;_.Ov.prototype.getFontSize=_.Ov.prototype.getFontSize;_.Ov.prototype.setFontColor=_.Ov.prototype.setFontColor;_.Ov.prototype.getFontColor=_.Ov.prototype.getFontColor;_.Ov.prototype.setFontFamily=_.Ov.prototype.setFontFamily;_.Ov.prototype.getFontFamily=_.Ov.prototype.getFontFamily;
649
- _.Ov.prototype.setWindowColor=_.Ov.prototype.setWindowColor;_.Ov.prototype.getWindowColor=_.Ov.prototype.getWindowColor;_.Ov.prototype.setBackgroundColor=_.Ov.prototype.setBackgroundColor;_.Ov.prototype.getBackgroundColor=_.Ov.prototype.getBackgroundColor;var Mw=1/15;_.w(_.Vv,_.Ov);_.r=_.Vv.prototype;_.r.append=function(){};_.r.remove=function(){return!0};_.r.isTextVisible=function(){return this.w};_.r.setTextVisibility=function(a){this.w=a};
650
- _.r.Vb=function(){if(!this.j){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.Tv(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 Uv=0;Wv.prototype.a=function(){return!0};Wv.prototype.create=function(a){return new _.Vv(a)};Xv.prototype.parseInit=function(a){try{var b=_.Mv(_.Jc);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=_.Mv(_.Kc);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 _.N(_.O,2,2011);}};
651
- Xv.prototype.parseMedia=function(a,b){if(!this.a)throw new _.N(_.O,2,2011);return this.a.parseMedia(a,b)};_.gn(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=_.Ni(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});
652
- _.gn(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;ne in document||(Object.defineProperty(document,ne,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
653
- {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",hv);document.addEventListener("webkitfullscreenerror",hv);document.addEventListener("mozfullscreenchange",hv);document.addEventListener("mozfullscreenerror",hv);document.addEventListener("MSFullscreenChange",hv);document.addEventListener("MSFullscreenError",hv)}});
654
- _.gn(function(){_.Rh("InputEvent.install");_.ij("Trident/")&&HTMLInputElement.prototype.addEventListener!==yv&&(_.Qh("Patching input event support on IE."),ov=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=yv)});_.gn(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.gn(function(){_.Rh("mathRound.install")});
655
- _.gn(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Rh("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=jv,document.exitPictureInPicture=kv,document.addEventListener("webkitpresentationmodechanged",iv,!0))}});
656
- _.gn(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=lv)}});_.gn(function(){_.Rh("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}}});
657
- _.gn(function(){if(window.VTTCue)_.Qh("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Qh(Sb),window.VTTCue=mv;else if(6===a)_.Qh("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=nv;else{try{var b=!!mv(1,2,"")}catch(c){b=!1}b&&(_.Qh(Sb),window.VTTCue=mv)}}else _.Sh("VTTCue not available.")});_.Wh(new Au);_.Lv(_.Ic,Xv);_.Xt("native",new Wv);on(_.Pc,function(){return new bv(_.Pc)});on(_.Og,function(){return new bv(_.Og)});_.r=_.Yv.prototype;_.r.getDuration=function(){return this.a};_.r.getId=function(){return this.id};_.r.ac=function(){return this.f};_.r.ue=function(){return this.h};_.r.ta=function(a){return this.getId()===a.getId()&&this.ac()===a.ac()&&this.getDuration()===a.getDuration()&&this.ue()===a.ue()};_.K("clpp.media.TimelineWindow",_.Yv);_.Yv.prototype.isDynamic=_.Yv.prototype.ue;_.Yv.prototype.getStart=_.Yv.prototype.ac;_.Yv.prototype.getId=_.Yv.prototype.getId;_.Yv.prototype.getDuration=_.Yv.prototype.getDuration;_.Nw=new _.L("clpp.media.TimestampParser");_.r=_.Zv.prototype;_.r.sm=function(a){return this.a[a]||null};_.r.tm=function(){return this.a.length};_.r.um=function(){return this.a};_.r.ii=function(){return this.a[this.f]||null};_.r.gm=function(){return this.f};_.K("clpp.media.Timeline",_.Zv);_.Zv.prototype.getCurrentWindowIndex=_.Zv.prototype.gm;_.Zv.prototype.getCurrentWindow=_.Zv.prototype.ii;_.Zv.prototype.getWindows=_.Zv.prototype.um;_.Zv.prototype.getWindowCount=_.Zv.prototype.tm;_.Zv.prototype.getWindow=_.Zv.prototype.sm;_.bw={};_.cw={};var Pv="raised",Qv="depressed",Sv="dropshadow",Rv="uniform";_.K("clpp.text.EdgeType",{NONE:_.Se,RAISED:Pv,DEPRESSED:Qv,DROP_SHADOW:Sv,UNIFORM:Rv});_.r=_.ew.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));
644
+ 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]);_.rv={};_.r=_.Iv.prototype;_.r.getBackgroundColor=function(){return this.K};_.r.setBackgroundColor=function(a){this.K=a;this.Wb()};_.r.getWindowColor=function(){return this.T};_.r.setWindowColor=function(a){this.T=a;this.Wb()};_.r.getFontFamily=function(){return this.P};_.r.setFontFamily=function(a){this.P=a;this.Wb()};_.r.getFontColor=function(){return this.O};_.r.setFontColor=function(a){this.O=a;this.Wb()};_.r.getFontSize=function(){return this.I};_.r.setFontSize=function(a){this.I=a;this.Wb()};
645
+ _.r.getFontSizePercent=function(){return null===this.B?Ew:this.B};_.r.setFontSizePercent=function(a){this.B=a;this.Wb()};_.r.getEdgeColor=function(){return this.H};_.r.setEdgeColor=function(a){this.H=a;this.Wb()};_.r.getEdgeType=function(){return this.o};_.r.setEdgeType=function(a){this.o=a;this.Wb()};_.Iv.prototype.setEdgeType=_.Iv.prototype.setEdgeType;_.Iv.prototype.getEdgeType=_.Iv.prototype.getEdgeType;_.Iv.prototype.setEdgeColor=_.Iv.prototype.setEdgeColor;_.Iv.prototype.getEdgeColor=_.Iv.prototype.getEdgeColor;
646
+ _.Iv.prototype.setFontSizePercent=_.Iv.prototype.setFontSizePercent;_.Iv.prototype.getFontSizePercent=_.Iv.prototype.getFontSizePercent;_.Iv.prototype.setFontSize=_.Iv.prototype.setFontSize;_.Iv.prototype.getFontSize=_.Iv.prototype.getFontSize;_.Iv.prototype.setFontColor=_.Iv.prototype.setFontColor;_.Iv.prototype.getFontColor=_.Iv.prototype.getFontColor;_.Iv.prototype.setFontFamily=_.Iv.prototype.setFontFamily;_.Iv.prototype.getFontFamily=_.Iv.prototype.getFontFamily;
647
+ _.Iv.prototype.setWindowColor=_.Iv.prototype.setWindowColor;_.Iv.prototype.getWindowColor=_.Iv.prototype.getWindowColor;_.Iv.prototype.setBackgroundColor=_.Iv.prototype.setBackgroundColor;_.Iv.prototype.getBackgroundColor=_.Iv.prototype.getBackgroundColor;var Ew=1/15;_.w(_.Pv,_.Iv);_.r=_.Pv.prototype;_.r.append=function(){};_.r.remove=function(){return!0};_.r.isTextVisible=function(){return this.w};_.r.setTextVisibility=function(a){this.w=a};
648
+ _.r.Wb=function(){if(!this.j){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.Nv(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 Ov=0;Qv.prototype.a=function(){return!0};Qv.prototype.create=function(a){return new _.Pv(a)};Rv.prototype.parseInit=function(a){try{var b=_.zv(_.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=_.zv(_.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);}};
649
+ Rv.prototype.parseMedia=function(a,b){if(!this.a)throw new _.O(_.P,2,2011);return this.a.parseMedia(a,b)};_.fn(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})});
650
+ _.fn(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",
651
+ {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",ev);document.addEventListener("webkitfullscreenerror",ev);document.addEventListener("mozfullscreenchange",ev);document.addEventListener("mozfullscreenerror",ev);document.addEventListener("MSFullscreenChange",ev);document.addEventListener("MSFullscreenError",ev)}});
652
+ _.fn(function(){_.Vh("InputEvent.install");_.kj("Trident/")&&HTMLInputElement.prototype.addEventListener!==mv&&(_.Uh("Patching input event support on IE."),lv=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=mv)});_.fn(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.fn(function(){_.Vh("mathRound.install")});
653
+ _.fn(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=gv,document.exitPictureInPicture=hv,document.addEventListener("webkitpresentationmodechanged",fv,!0))}});
654
+ _.fn(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=iv)}});_.fn(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}}});
655
+ _.fn(function(){if(window.VTTCue)_.Uh("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Uh(Sb),window.VTTCue=jv;else if(6===a)_.Uh("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=kv;else{try{var b=!!jv(1,2,"")}catch(c){b=!1}b&&(_.Uh(Sb),window.VTTCue=jv)}}else _.Wh("VTTCue not available.")});_.$h(new yu);_.sv(_.Mc,Rv);_.Vt("native",new Qv);nn(_.Tc,function(){return new Zu(_.Tc)});nn(_.Tg,function(){return new Zu(_.Tg)});_.r=_.Sv.prototype;_.r.getDuration=function(){return this.a};_.r.getId=function(){return this.id};_.r.bc=function(){return this.f};_.r.ve=function(){return this.h};_.r.ta=function(a){return this.getId()===a.getId()&&this.bc()===a.bc()&&this.getDuration()===a.getDuration()&&this.ve()===a.ve()};_.K("clpp.media.TimelineWindow",_.Sv);_.Sv.prototype.isDynamic=_.Sv.prototype.ve;_.Sv.prototype.getStart=_.Sv.prototype.bc;_.Sv.prototype.getId=_.Sv.prototype.getId;_.Sv.prototype.getDuration=_.Sv.prototype.getDuration;_.Fw=new _.L("clpp.media.TimestampParser");_.r=_.Tv.prototype;_.r.Am=function(a){return this.a[a]||null};_.r.Bm=function(){return this.a.length};_.r.Cm=function(){return this.a};_.r.si=function(){return this.a[this.f]||null};_.r.om=function(){return this.f};_.K("clpp.media.Timeline",_.Tv);_.Tv.prototype.getCurrentWindowIndex=_.Tv.prototype.om;_.Tv.prototype.getCurrentWindow=_.Tv.prototype.si;_.Tv.prototype.getWindows=_.Tv.prototype.Cm;_.Tv.prototype.getWindowCount=_.Tv.prototype.Bm;_.Tv.prototype.getWindow=_.Tv.prototype.Am;_.Wv={};_.Xv={};var Jv="raised",Kv="depressed",Mv="dropshadow",Lv="uniform";_.K("clpp.text.EdgeType",{NONE:_.Ze,RAISED:Jv,DEPRESSED:Kv,DROP_SHADOW:Mv,UNIFORM:Lv});_.r=_.Zv.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));
658
656
  g.clpp._ = _;
659
657
  if (typeof(module)!="undefined"&&module.exports) {module.exports=g.clpp;}
660
658
  else if (typeof(define)!="undefined" && define.amd) {define(function(){return g.clpp;});}