@newrelic/video-videojs 3.0.2 → 3.2.0-beta-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.
package/dist/cjs/index.js CHANGED
@@ -1 +1,3 @@
1
- (function(a,b){const Q=a0b,c=a();while(!![]){try{const d=parseInt(Q(0x29a))/0x1*(-parseInt(Q(0x2bb))/0x2)+parseInt(Q(0x14c))/0x3+-parseInt(Q(0x343))/0x4+parseInt(Q(0x16e))/0x5+parseInt(Q(0x169))/0x6+-parseInt(Q(0x152))/0x7*(-parseInt(Q(0x19a))/0x8)+parseInt(Q(0x179))/0x9*(-parseInt(Q(0x319))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0a,0xc31cb),((()=>{'use strict';const dR=a0b;var a={0x26:(f,g,h)=>{const R=a0b;Object['defineProperty'](g,R(0x1f6),{'value':!0x0}),g[R(0x2bd)]=void 0x0;var j,k=(j=h(0x1d8))&&j['__esModule']?j:{'default':j};class l extends k['default']{static[R(0x270)](m){const S=R;return!!m[S(0x1e0)]&&S(0x1cd)!=typeof tv&&tv[S(0x35e)];}[R(0x251)](){const T=R;return T(0x11b);}[R(0x2de)](){const U=R;return U(0x11b);}[R(0x221)](){const V=R;return this[V(0x2d0)][V(0x1e0)][V(0x1c2)];}[R(0x1d5)](){const W=R;if(this[W(0x2d0)][W(0x1d9)]['ad'][W(0x32b)])return 0x3e8*this[W(0x2d0)][W(0x1d9)]['ad'][W(0x32b)]();}[R(0x243)](){const X=R;if(this[X(0x2d0)][X(0x1d9)]['ad'][X(0x31b)])return 0x3e8*this[X(0x2d0)][X(0x1d9)]['ad'][X(0x31b)];}[R(0x35b)](){const Y=R;return this[Y(0x2d0)][Y(0x1d9)]['ad']['id'];}[R(0x164)](){const Z=R;return Z(0x35e);}['getAdCreativeId'](){const a0=R;try{return this[a0(0x2d0)][a0(0x1d9)][a0(0x23c)]['event']['adInstance'][a0(0x22a)]()[a0(0x156)]();}catch(m){}}[R(0x29f)](){const a1=R;try{return this[a1(0x2d0)][a1(0x1d9)][a1(0x23c)][a1(0x34f)][a1(0x1ba)]['getActiveCreativeRendition']()[a1(0x1db)]()[a1(0x23a)]();}catch(m){}}['getTitle'](){const a2=R;try{return this[a2(0x2d0)][a2(0x1d9)]['provider'][a2(0x34f)][a2(0x1ba)]['getActiveCreativeRendition']()[a2(0x1db)]()[a2(0x210)]();}catch(m){}}[R(0x10b)](){const a3=R;switch(this[a3(0x2d0)][a3(0x1d9)]['ad']['type']){case a3(0x335):return nrvideo['Constants']['AdPositions'][a3(0x180)];case a3(0x320):return nrvideo[a3(0x23d)][a3(0x1e1)][a3(0x17c)];case a3(0x208):return nrvideo[a3(0x23d)][a3(0x1e1)][a3(0x1a7)];}}}g[R(0x2bd)]=l;},0x40:(f,g,h)=>{const a4=a0b;Object[a4(0x293)](g,a4(0x1f6),{'value':!0x0}),g[a4(0x2bd)]=void 0x0;var j=l(h(0x22b)),k=l(h(0x1d8));function l(o){const a5=a4;return o&&o[a5(0x1f6)]?o:{'default':o};}class m extends k[a4(0x2bd)]{static[a4(0x270)](o){const a6=a4;return!!o[a6(0x287)];}[a4(0x251)](){return'brightcove-ima-ads';}[a4(0x2de)](){const a7=a4;return a7(0x33b);}[a4(0x1d5)](){const a8=a4;return this[a8(0x2d0)]?.[a8(0x287)]?.[a8(0x1cc)]?.[a8(0x32b)]();}[a4(0x1f2)](){const a9=a4;j[a9(0x2bd)]['Log'][a9(0x289)](this[a9(0x2d0)],[null,a9(0x12c),a9(0x102),a9(0x171),'ima3-started',a9(0x271),'ima3-paused',a9(0x112),a9(0x107),a9(0x17e),a9(0x28c),a9(0x28e),a9(0x18f),a9(0x2ba),'ads-click','ads-pod-started',a9(0x182),'ads-allpods-completed']),this[a9(0x2d0)]['on'](a9(0x101),this[a9(0x138)][a9(0x26c)](this)),this[a9(0x2d0)]['on'](a9(0x23b),this[a9(0x31e)]['bind'](this)),this[a9(0x2d0)]['on'](a9(0x112),this[a9(0x2c0)][a9(0x26c)](this)),this[a9(0x2d0)]['on'](a9(0x271),this[a9(0x193)][a9(0x26c)](this)),this[a9(0x2d0)]['on'](a9(0x17d),this['onSkipped'][a9(0x26c)](this)),this[a9(0x2d0)]['on'](a9(0x32d),this['onError']['bind'](this)),this['player']['on'](a9(0x122),this['onClick'][a9(0x26c)](this));}['unregisterListeners'](){const aa=a4;this[aa(0x2d0)][aa(0x199)](aa(0x101),this['onStarted']),this[aa(0x2d0)][aa(0x199)]('ima3-paused',this['onPaused']),this[aa(0x2d0)][aa(0x199)](aa(0x112),this[aa(0x2c0)]),this['player']['off']('ima3-complete',this[aa(0x193)]),this[aa(0x2d0)][aa(0x199)](aa(0x17d),this[aa(0x27b)]),this[aa(0x2d0)]['off'](aa(0x32d),this['onError']),this[aa(0x2d0)][aa(0x199)](aa(0x122),this[aa(0x1e8)]);}['onStarted'](o){const ab=a4;this[ab(0x13a)](),this['sendStart']();}['onPaused'](o){this['sendPause']();}[a4(0x2c0)](o){this['sendResume']();}['onComplete'](o){this['sendEnd']();}[a4(0x27b)](o){this['sendEnd']({'skipped':!0x0});}['onError'](o){const ac=a4;this[ac(0x32a)]();}[a4(0x1e8)](o){const ad=a4;this[ad(0x2f4)]();}}g['default']=m;},0x101:(f,g)=>{const ae=a0b;Object[ae(0x293)](g,ae(0x1f6),{'value':!0x0}),g[ae(0x2bd)]=void 0x0;class h{constructor(j){const af=ae;this[af(0x14f)]=j[af(0x1d3)];}[ae(0x1eb)](j){const ag=ae;return this[ag(0x14f)][ag(0x2fb)];}['getRenditionName'](j){const ah=ae;try{var k=this['tech'][ah(0x313)][this[ah(0x14f)][ah(0x1fb)]];if(k&&k[ah(0x315)])return k[ah(0x315)];}catch(l){}return null;}[ae(0x2a3)](j){const ai=ae;try{var k=this[ai(0x14f)][ai(0x313)][this['tech'][ai(0x1fb)]];if(k&&k['bitrate'])return k[ai(0x1ff)];}catch(l){}return null;}[ae(0x2cd)](j){const aj=ae;try{var k=this[aj(0x14f)][aj(0x313)][this[aj(0x14f)][aj(0x1fb)]];if(k&&k[aj(0x201)])return k[aj(0x201)];}catch(l){}return null;}[ae(0x2a6)](j){const ak=ae;try{var k=this['tech']['levels'][this['tech']['currentLevel']];if(k&&k[ak(0x348)])return k[ak(0x348)];}catch(l){}return null;}}g[ae(0x2bd)]=h,h[ae(0x270)]=function(j){const al=ae;return!!j[al(0x1d3)];};},0x12a:(f,g,h)=>{const am=a0b;Object[am(0x293)](g,am(0x1f6),{'value':!0x0}),g[am(0x2bd)]=void 0x0;var j=l(h(0x22b)),k=l(h(0x1d8));function l(o){const an=am;return o&&o[an(0x1f6)]?o:{'default':o};}class m extends k[am(0x2bd)]{static[am(0x270)](o){const ao=am;return o['ima']&&ao(0x1cd)!=typeof google;}[am(0x251)](){const ap=am;return ap(0x2b7);}[am(0x2de)](){const aq=am;return aq(0x1ce);}['getPlayerVersion'](){const ar=am;return'ima:\x20'+google[ar(0x1ce)]['VERSION']+ar(0x2ef)+this[ar(0x2d0)][ar(0x1d9)][ar(0x1c2)];}[am(0x20e)](){const as=am;return this[as(0x2d0)][as(0x1ce)][as(0x2f6)]()['getCuePoints']();}[am(0x10b)](){const at=am;if(this[at(0xfe)]&&this[at(0xfe)][at(0x137)]&&void 0x0!==this['lastAdData']['podInfo'][at(0x1ea)]){const o=this[at(0xfe)][at(0x137)]['podIndex'];return 0x0===o?at(0x22e):-0x1===o?'post':'mid';}return null;}[am(0x243)](){const au=am;return this['lastAdData']&&void 0x0!==this[au(0xfe)][au(0x31b)]?0x3e8*this[au(0xfe)][au(0x31b)]:null;}[am(0x35b)](){const av=am;return this[av(0xfe)]&&this[av(0xfe)][av(0x336)]?this[av(0xfe)][av(0x336)]:null;}[am(0x234)](){const aw=am;return this['lastAdData']&&this[aw(0xfe)][aw(0x185)]?this[aw(0xfe)][aw(0x185)]:null;}[am(0x29f)](){const ax=am;return this['lastAdData']&&this[ax(0xfe)][ax(0x2c6)]?this[ax(0xfe)][ax(0x2c6)]:null;}[am(0x362)](){const ay=am;return this[ay(0xfe)]&&this[ay(0xfe)][ay(0x2b1)]?this[ay(0xfe)][ay(0x2b1)]:null;}[am(0x1d5)](){const az=am;let o=this[az(0x2d0)][az(0x1ce)][az(0x2f6)]();if(o)return 0x3e8*(this[az(0x243)]()-o[az(0x2ea)]());}[am(0x262)](){const aA=am;return this['player'][aA(0x284)]();}[am(0x164)](){const aB=am;return aB(0x1ce);}['registerListeners'](){const aC=am;let o=google[aC(0x1ce)][aC(0x2f8)][aC(0x1c1)],p=google[aC(0x1ce)]['AdErrorEvent'][aC(0x1c1)][aC(0x297)];this[aC(0xfe)]=null,j[aC(0x2bd)][aC(0x268)][aC(0x289)](this[aC(0x2d0)]['ima'][aC(0x2e6)],[null,o['ALL_ADS_COMPLETED'],o['LINEAR_CHANGED'],o[aC(0x158)],o[aC(0x2ed)],o['IMPRESSION'],o['CONTENT_PAUSE_REQUESTED'],o[aC(0x147)],o[aC(0x2dc)],o[aC(0x19e)],o[aC(0x26e)],o[aC(0x149)],o['RESUMED'],o[aC(0x2a8)],o[aC(0x33c)],o['AD_METADATA'],o[aC(0x2fc)],o[aC(0x1cf)],o[aC(0x189)],o[aC(0x282)],o[aC(0x280)],o[aC(0x261)],o[aC(0x292)],p]),this[aC(0x2d0)][aC(0x1ce)][aC(0x2e6)](o[aC(0x26e)],this[aC(0x296)][aC(0x26c)](this)),this[aC(0x2d0)][aC(0x1ce)][aC(0x2e6)](o[aC(0x2a8)],this[aC(0x1f0)][aC(0x26c)](this)),this[aC(0x2d0)][aC(0x1ce)][aC(0x2e6)](o['PAUSED'],this[aC(0x31e)][aC(0x26c)](this)),this[aC(0x2d0)][aC(0x1ce)][aC(0x2e6)](o['RESUMED'],this[aC(0x35c)][aC(0x26c)](this)),this[aC(0x2d0)][aC(0x1ce)][aC(0x2e6)](o['COMPLETE'],this['onComplete'][aC(0x26c)](this)),this[aC(0x2d0)][aC(0x1ce)][aC(0x2e6)](o['SKIPPED'],this[aC(0x27b)]['bind'](this)),this[aC(0x2d0)][aC(0x1ce)][aC(0x2e6)](o[aC(0x282)],this[aC(0x1e8)]['bind'](this)),this[aC(0x2d0)]['ima']['addEventListener'](o[aC(0x280)],this[aC(0x22d)]['bind'](this)),this[aC(0x2d0)][aC(0x1ce)][aC(0x2e6)](o[aC(0x261)],this[aC(0x30b)]['bind'](this)),this[aC(0x2d0)]['ima']['addEventListener'](o['THIRD_QUARTILE'],this[aC(0x2f3)][aC(0x26c)](this)),this[aC(0x2d0)][aC(0x1ce)][aC(0x2e6)](p,this[aC(0x228)][aC(0x26c)](this));}[am(0x1bb)](){const aD=am;let o=google['ima'][aD(0x2f8)]['Type'],p=google[aD(0x1ce)][aD(0x184)][aD(0x1c1)]['AD_ERROR'];this[aD(0x2d0)][aD(0x1ce)][aD(0x15f)](o[aD(0x26e)],this[aD(0x296)]),this[aD(0x2d0)][aD(0x1ce)][aD(0x15f)](o[aD(0x2a8)],this['onLoaded'][aD(0x26c)](this)),this[aD(0x2d0)][aD(0x1ce)]['removeEventListener'](o[aD(0x174)],this[aD(0x258)]),this['player'][aD(0x1ce)][aD(0x15f)](o[aD(0x149)],this['onPaused']),this[aD(0x2d0)][aD(0x1ce)][aD(0x15f)](o[aD(0x125)],this[aD(0x35c)]),this[aD(0x2d0)][aD(0x1ce)][aD(0x15f)](o[aD(0x158)],this['onComplete']),this['player'][aD(0x1ce)]['removeEventListener'](o['SKIPPED'],this['onSkipped']),this[aD(0x2d0)][aD(0x1ce)]['removeEventListener'](o['CLICK'],this['onClick']),this[aD(0x2d0)]['ima'][aD(0x15f)](o[aD(0x280)],this['onFirstQuartile']),this['player'][aD(0x1ce)][aD(0x15f)](o['MIDPOINT'],this[aD(0x30b)]),this['player']['ima'][aD(0x15f)](o[aD(0x292)],this[aD(0x2f3)]),this[aD(0x2d0)][aD(0x1ce)]['removeEventListener'](p,this[aD(0x228)]),this['lastAdData']=null;}[am(0x296)](o){const aE=am;this[aE(0xfe)]=this[aE(0x277)](),this[aE(0x13a)]();}[am(0x1f0)](o){const aF=am;this[aF(0xfe)]=this[aF(0x277)](),this[aF(0x141)]();}[am(0x193)](o){const aG=am;this[aG(0x266)](),this[aG(0xfe)]=null;}['onSkipped'](o){const aH=am;this[aH(0x266)]({'skipped':!0x0}),this[aH(0xfe)]=null;}['onError'](o){const aI=am,p=o['getError'](),q=p['getErrorCode'](),u=p[aI(0x1d7)]();this[aI(0x32a)]({'adError':p,'errorCode':q,'errorName':u});}[am(0x1e8)](o){const aJ=am;this[aJ(0x13e)]();}[am(0x22d)](){const aK=am;this[aK(0x309)]({'adQuartile':0x1});}[am(0x30b)](){const aL=am;this[aL(0x309)]({'adQuartile':0x2});}[am(0x2f3)](){const aM=am;this[aM(0x309)]({'adQuartile':0x3});}[am(0x31e)](){const aN=am;this[aN(0x1b3)]();}[am(0x35c)](){const aO=am;this[aO(0x308)]();}[am(0x277)](){const aP=am;try{const o=this[aP(0x2d0)][aP(0x1ce)][aP(0x2f6)]();if(o){const p=o['getCurrentAd']();if(p)return{'adId':p[aP(0x306)](),'creativeId':p['getCreativeId'](),'duration':p['getDuration'](),'mediaUrl':p[aP(0x168)](),'title':p[aP(0x362)](),'podInfo':p[aP(0x211)]()?.['data']};}return null;}catch(q){return null;}}}g['default']=m;},0x12e:(f,g,j)=>{const aQ=a0b;Object[aQ(0x293)](g,aQ(0x1f6),{'value':!0x0}),Object[aQ(0x293)](g,aQ(0x1be),{'enumerable':!0x0,'get':function(){const aR=aQ;return z[aR(0x2bd)];}}),Object[aQ(0x293)](g,'ContribHlsTech',{'enumerable':!0x0,'get':function(){const aS=aQ;return q[aS(0x2bd)];}}),Object['defineProperty'](g,aQ(0x31f),{'enumerable':!0x0,'get':function(){const aT=aQ;return A[aT(0x2bd)];}}),Object[aQ(0x293)](g,aQ(0x332),{'enumerable':!0x0,'get':function(){const aU=aQ;return v[aU(0x2bd)];}}),Object[aQ(0x293)](g,aQ(0x286),{'enumerable':!0x0,'get':function(){const aV=aQ;return y[aV(0x2bd)];}}),Object[aQ(0x293)](g,aQ(0x299),{'enumerable':!0x0,'get':function(){const aW=aQ;return w[aW(0x2bd)];}}),Object['defineProperty'](g,aQ(0x356),{'enumerable':!0x0,'get':function(){return x['default'];}}),g[aQ(0x2bd)]=void 0x0;var k=B(j(0x22b)),m=B(j(0x14a)),q=B(j(0x199)),v=B(j(0x101)),w=B(j(0x152)),x=B(j(0x1d8)),y=B(j(0x12a)),z=B(j(0x40)),A=B(j(0x26));function B(D){const aX=aQ;return D&&D[aX(0x1f6)]?D:{'default':D};}class C extends k[aQ(0x2bd)][aQ(0x2f0)]{constructor(D,E){const aY=aQ;super(D,E),this[aY(0x1df)]=!0x1,this[aY(0x1e2)]='',k['default'][aY(0x1dc)]['addTracker'](this);}['getTech'](){const aZ=aQ;let D=this[aZ(0x2d0)][aZ(0x14f)]({'IWillNotUseThisInPlugins':!0x0});if(D){if(q[aZ(0x2bd)][aZ(0x270)](D))return new q[(aZ(0x2bd))](D);if(v['default'][aZ(0x270)](D))return new v['default'](D);if(w['default'][aZ(0x270)](D))return new w[(aZ(0x2bd))](D);}}[aQ(0x251)](){const b0=aQ;return b0(0x33a);}[aQ(0x2b4)](){const b1=aQ;return b1(0x2af);}[aQ(0x300)](){const b2=aQ;return this[b2(0x2de)]();}['getInstrumentationVersion'](){return this['getPlayerVersion']();}[aQ(0x285)](){return m['default']['version'];}[aQ(0x1d5)](){const b3=aQ;return this[b3(0x2d0)]['ads']&&b3(0x157)===this[b3(0x2d0)][b3(0x1d9)][b3(0x1fa)]&&this[b3(0x2d0)]['ads'][b3(0x181)]&&this[b3(0x2d0)][b3(0x1d9)]['snapshot'][b3(0x32b)]?0x3e8*this[b3(0x2d0)][b3(0x1d9)][b3(0x181)][b3(0x32b)]:this[b3(0x2d0)][b3(0x21e)]?0x3e8*this[b3(0x2d0)]['absoluteTime']():0x3e8*this[b3(0x2d0)]['currentTime']();}['getDuration'](){const b4=aQ;return this[b4(0x2d0)]['mediainfo']&&void 0x0!==this['player'][b4(0x132)]['duration']?0x3e8*this[b4(0x2d0)][b4(0x132)]['duration']:0x3e8*this[b4(0x2d0)][b4(0x31b)]();}['getTitle'](){const b5=aQ;return this[b5(0x2d0)]?.[b5(0x132)]?.[b5(0x315)];}[aQ(0x156)](){const b6=aQ;return this[b6(0x2d0)]?.[b6(0x132)]?.['id'];}[aQ(0x249)](){const b7=aQ;return this[b7(0x2d0)]?.[b7(0x216)]();}[aQ(0x29f)](){const b8=aQ;let D=this[b8(0x134)]();return D&&D[b8(0x29f)]?D['getSrc']():this[b8(0x2d0)][b8(0x143)]();}[aQ(0x2de)](){const b9=aQ;return this[b9(0x2d0)]?.[b9(0x315)]()||b9(0x33a);}[aQ(0x221)](){const ba=aQ;return this[ba(0x2d0)]?.[ba(0x2b6)];}['isMuted'](){const bb=aQ;return this[bb(0x2d0)][bb(0x11f)]();}[aQ(0x1c5)](){const bc=aQ;let D=this[bc(0x134)]();return D?.[bc(0x14f)]?.[bc(0x31c)]?.[bc(0x365)];}['getRenditionName'](){let D=this['getTech']();if(D&&D['getRenditionName'])return D['getRenditionName']();}[aQ(0x2a3)](){const bd=aQ;let D=this[bd(0x134)]();if(D&&D['getRenditionBitrate'])return D['getRenditionBitrate']();}[aQ(0x2a6)](){const be=aQ;let D=this[be(0x134)]();return D&&D[be(0x2a6)]?D[be(0x2a6)]():this[be(0x2d0)][be(0x363)]();}['getRenditionWidth'](){const bf=aQ;let D=this[bf(0x134)]();return D&&D['getRenditionWidth']?D['getRenditionWidth']():this[bf(0x2d0)][bf(0x142)]();}[aQ(0x262)](){const bg=aQ;return this[bg(0x2d0)][bg(0x284)]();}[aQ(0x357)](){const bh=aQ;return this[bh(0x2d0)]['autoplay']();}[aQ(0x2e3)](){const bi=aQ;return this[bi(0x2d0)]['isFullscreen']();}[aQ(0x281)](){const bj=aQ;return this[bj(0x2d0)][bj(0x230)]();}[aQ(0x1f2)](){const bk=aQ;k[bk(0x2bd)][bk(0x268)]['debugCommonVideoEvents'](this[bk(0x2d0)],[bk(0x33f),bk(0x167),bk(0x115),'adsready',bk(0x32d),'dispose']),this[bk(0x2d0)]['on'](bk(0x318),this['onDownload'][bk(0x26c)](this)),this[bk(0x2d0)]['on']('loadeddata',this['onDownload'][bk(0x26c)](this)),this['player']['on'](bk(0x304),this[bk(0x2ab)][bk(0x26c)](this)),this[bk(0x2d0)]['on']('adsready',this['onAdsready'][bk(0x26c)](this)),this[bk(0x2d0)]['on'](bk(0x33f),this['onAdStart'][bk(0x26c)](this)),this[bk(0x2d0)]['on'](bk(0x167),this[bk(0x35d)]['bind'](this)),this[bk(0x2d0)]['on'](bk(0x27d),this['onPlay']['bind'](this)),this[bk(0x2d0)]['on'](bk(0x17a),this[bk(0x2d9)][bk(0x26c)](this)),this[bk(0x2d0)]['on'](bk(0x2c7),this[bk(0x2a2)][bk(0x26c)](this)),this[bk(0x2d0)]['on'](bk(0x1ed),this[bk(0x302)][bk(0x26c)](this)),this['player']['on'](bk(0x18e),this[bk(0x1de)][bk(0x26c)](this)),this[bk(0x2d0)]['on'](bk(0x104),this[bk(0x30a)]['bind'](this)),this[bk(0x2d0)]['on']('seeking',this[bk(0x1c4)]['bind'](this)),this[bk(0x2d0)]['on']('seeked',this[bk(0x1c9)]['bind'](this)),this['player']['on'](bk(0x1a4),this['onError'][bk(0x26c)](this)),this[bk(0x2d0)]['on']('waiting',this[bk(0x301)][bk(0x26c)](this)),this[bk(0x2d0)]['on']('timeupdate',this['onTimeupdate'][bk(0x26c)](this)),this[bk(0x2d0)]['on'](bk(0x124),this[bk(0x128)][bk(0x26c)](this));}[aQ(0x1bb)](){const bl=aQ;this[bl(0x2d0)]['off'](bl(0x318),this[bl(0x2ab)]),this[bl(0x2d0)][bl(0x199)]('loadeddata',this[bl(0x2ab)]),this[bl(0x2d0)]['off'](bl(0x304),this[bl(0x2ab)]),this[bl(0x2d0)]['off'](bl(0x2f1),this['onAdsready']),this[bl(0x2d0)]['off']('adstart',this[bl(0x120)]),this['player'][bl(0x199)](bl(0x167),this[bl(0x35d)]),this['player']['off'](bl(0x27d),this[bl(0x1da)]),this['player'][bl(0x199)](bl(0x17a),this[bl(0x2d9)]),this[bl(0x2d0)][bl(0x199)]('playing',this['onPlaying']),this['player'][bl(0x199)](bl(0x1ed),this[bl(0x302)]),this[bl(0x2d0)][bl(0x199)](bl(0x18e),this[bl(0x1de)]),this[bl(0x2d0)][bl(0x199)](bl(0x104),this[bl(0x30a)]),this[bl(0x2d0)][bl(0x199)](bl(0x1f9),this[bl(0x1c4)]),this['player'][bl(0x199)](bl(0x1b9),this[bl(0x1c9)]),this['player'][bl(0x199)](bl(0x1a4),this[bl(0x228)]),this[bl(0x2d0)][bl(0x199)](bl(0x237),this[bl(0x301)]),this[bl(0x2d0)][bl(0x199)](bl(0x35a),this[bl(0x26f)]),this[bl(0x2d0)][bl(0x199)](bl(0x124),this['OnAdsAllpodsCompleted'][bl(0x26c)](this));}[aQ(0x2ab)](D){const bm=aQ;this[bm(0x32f)]({'state':D[bm(0x12b)]});}[aQ(0x358)](){const bn=aQ;this[bn(0x275)]||(z[bn(0x2bd)]['isUsing'](this[bn(0x2d0)])?this['setAdsTracker'](new z[(bn(0x2bd))](this['player'])):y['default'][bn(0x270)](this[bn(0x2d0)])?this['setAdsTracker'](new y[(bn(0x2bd))](this[bn(0x2d0)])):A['default'][bn(0x270)](this[bn(0x2d0)])?this['setAdsTracker'](new A[(bn(0x2bd))](this['player'])):this[bn(0x131)](new x[(bn(0x2bd))](this['player'])));}[aQ(0x120)](){const bo=aQ;this[bo(0x1ee)]=!0x0,this[bo(0x1e2)]||(this[bo(0x1e2)]=this[bo(0x2d0)]?.[bo(0x1ce)]?.['getAdsManager']()[bo(0x20e)]());}[aQ(0x35d)](){const bp=aQ;this[bp(0x1df)]&&this[bp(0x266)]();}['OnAdsAllpodsCompleted'](){const bq=aQ;this[bq(0x1de)][bq(0x26c)](this),this[bq(0x330)]=!0x0;}['onPlay'](){const br=aQ;this[br(0x13a)]();}['onPause'](){this['sendPause']();}[aQ(0x2a2)](){this['sendResume'](),this['sendBufferEnd']();}['onAbort'](){this['sendEnd']();}[aQ(0x1de)](){const bs=aQ;this[bs(0x275)]?(this[bs(0x1df)]=!0x0,this[bs(0x1e2)]&&!this[bs(0x1e2)][bs(0x2da)](-0x1)&&this[bs(0x266)]()):this['sendEnd']();}['onDispose'](){const bt=aQ;this[bt(0x266)]();}[aQ(0x1c4)](){const bu=aQ;this[bu(0x2ae)]();}['onSeeked'](){const bv=aQ;this[bv(0x110)]();}[aQ(0x228)](){const bw=aQ,D=this[bw(0x2d0)]['error'](),E=D[bw(0x27c)],F=D[bw(0x2ac)];this[bw(0x2d0)][bw(0x1a4)]&&this['player'][bw(0x1a4)]()&&this[bw(0x32a)]({'errorCode':E,'errorName':F});}[aQ(0x301)](D){this['sendBufferStart']();}[aQ(0x26f)](D){const bx=aQ;this['getPlayhead']()>0.1&&this[bx(0x141)]();}}g[aQ(0x2bd)]=C;},0x14a:f=>{const by=a0b;f[by(0x272)]=JSON[by(0x175)]('{\x22name\x22:\x22@newrelic/video-videojs\x22,\x22version\x22:\x223.0.2\x22,\x22description\x22:\x22New\x20relic\x20tracker\x20for\x20Videojs\x22,\x22main\x22:\x22dist/cjs/index.js\x22,\x22module\x22:\x22dist/esm/index.js\x22,\x22scripts\x22:{\x22build\x22:\x22webpack\x20--mode\x20production\x22,\x22build:dev\x22:\x22webpack\x20--mode\x20development\x22,\x22watch\x22:\x22webpack\x20--mode\x20production\x20--progress\x20--color\x20--watch\x22,\x22watch:dev\x22:\x22webpack\x20--progress\x20--color\x20--watch\x20--mode\x20development\x22,\x22prezip\x22:\x22npm\x20run\x20build\x22,\x22zip\x22:\x22zip\x20-P\x20newrelic\x20-x\x20\x27*.DS_Store\x27\x20-x\x20\x27samples/agent.js\x27\x20-r\x20videojs.zip\x20dist\x20samples\x20README.md\x20CHANGELOG.md\x20EULA.md\x22,\x22clean\x22:\x22rm\x20-rf\x20dist\x20*.zip\x22,\x22deploy\x22:\x22node\x20scripts/deploy.js\x22,\x22third-party-updates\x22:\x22oss\x20third-party\x20manifest\x20--includeOptDeps\x20&&\x20oss\x20third-party\x20notices\x20--includeOptDeps\x20&&\x20git\x20add\x20THIRD_PARTY_NOTICES.md\x20third_party_manifest.json\x22},\x22repository\x22:{\x22type\x22:\x22git\x22,\x22url\x22:\x22https://github.com/newrelic/video-videojs-js.git\x22},\x22author\x22:\x22Jordi\x20Aguilar\x22,\x22contributors\x22:[\x22Andreu\x20Santarén\x20Llop\x22],\x22license\x22:\x22MIT\x22,\x22devDependencies\x22:{\x22@babel/core\x22:\x22^7.24.5\x22,\x22@babel/plugin-transform-modules-commonjs\x22:\x22^7.24.1\x22,\x22@babel/preset-env\x22:\x22^7.24.5\x22,\x22@newrelic/newrelic-oss-cli\x22:\x22^0.1.2\x22,\x22aws-sdk\x22:\x22^2.920.0\x22,\x22babel-loader\x22:\x22^9.1.3\x22,\x22videojs-ima\x22:\x222.1.0\x22,\x22webpack\x22:\x22^5.91.0\x22,\x22webpack-cli\x22:\x22^4.9.2\x22,\x22webpack-obfuscator\x22:\x22^3.5.1\x22},\x22dependencies\x22:{\x22@newrelic/video-core\x22:\x22^3.0.1\x22},\x22files\x22:[\x22THIRD_PARTY_NOTICES.md\x22,\x22dist\x22,\x22CHANGELOG.md\x22,\x22README.md\x22,\x22!test\x22],\x22publishConfig\x22:{\x22access\x22:\x22public\x22}}');},0x152:(f,g)=>{const bz=a0b;Object['defineProperty'](g,bz(0x1f6),{'value':!0x0}),g[bz(0x2bd)]=void 0x0;class h{constructor(j){const bA=bz;this[bA(0x14f)]=j['shakaPlayer'];}[bz(0x29f)](j){const bB=bz;try{return this[bB(0x14f)]['getManifestUri']();}catch(k){}return null;}[bz(0x2a3)](j){const bC=bz;try{return this['tech']['getStats']()[bC(0x1e4)];}catch(k){}return null;}[bz(0x2cd)](j){const bD=bz;try{var k=this[bD(0x14f)][bD(0x145)]();for(var l in k){var m=k[l];if(m[bD(0x20f)]&&bD(0x10d)===m[bD(0x12b)])return m[bD(0x201)];}}catch(n){}return null;}[bz(0x2a6)](j){const bE=bz;try{var k=this[bE(0x14f)][bE(0x145)]();for(var l in k){var m=k[l];if(m['active']&&bE(0x10d)===m[bE(0x12b)])return m['height'];}}catch(n){}return null;}}g[bz(0x2bd)]=h,h['isUsing']=function(j){const bF=bz;return!!j[bF(0x150)];};},0x199:(f,g)=>{const bG=a0b;Object[bG(0x293)](g,'__esModule',{'value':!0x0}),g['default']=void 0x0;class h{constructor(j){this['tech']=j['vhs'];}[bG(0x2f2)](){const bH=bG;try{var j=this['tech']['playlists'][bH(0x352)]();if(j&&j[bH(0x1e7)])return j['attributes'][bH(0x34e)];}catch(k){}return null;}['getRenditionBitrate'](){const bI=bG;try{var j=this['tech'][bI(0x207)][bI(0x352)]();if(j&&j[bI(0x1e7)])return j['attributes'][bI(0x15d)];}catch(k){}return null;}[bG(0x2cd)](){const bJ=bG;try{var j=this[bJ(0x14f)][bJ(0x207)]['media']();if(j&&j[bJ(0x1e7)]&&j[bJ(0x1e7)]['RESOLUTION'])return j['attributes'][bJ(0x205)][bJ(0x201)];}catch(k){}return null;}[bG(0x2a6)](){const bK=bG;try{var j=this[bK(0x14f)]['playlists'][bK(0x352)]();if(j&&j[bK(0x1e7)]&&j[bK(0x1e7)][bK(0x205)])return j[bK(0x1e7)]['RESOLUTION'][bK(0x348)];}catch(k){}return null;}}g[bG(0x2bd)]=h,h[bG(0x270)]=function(j){const bL=bG;return!!j[bL(0x2d2)];};},0x1d8:(f,g,h)=>{const bM=a0b;Object[bM(0x293)](g,bM(0x1f6),{'value':!0x0}),g['default']=void 0x0;var j=l(h(0x22b)),k=l(h(0x14a));function l(o){const bN=bM;return o&&o[bN(0x1f6)]?o:{'default':o};}class m extends j['default']['VideoTracker']{[bM(0x251)](){const bO=bM;return bO(0x361);}[bM(0x285)](){const bP=bM;return k[bP(0x2bd)][bP(0x2b6)];}[bM(0x295)](){const bQ=bM;return this[bQ(0x2d0)][bQ(0x11f)]();}[bM(0x2a6)](){return null;}['getRenditionWidth'](){return null;}[bM(0x2de)](){const bR=bM;return bR(0x361);}[bM(0x221)](){const bS=bM;return this[bS(0x2d0)][bS(0x1d9)][bS(0x1c2)];}[bM(0x1f2)](){const bT=bM;j[bT(0x2bd)]['Log'][bT(0x289)](this['player'],[null,bT(0x107),'ads-load','adstart',bT(0x167),'adskip',bT(0x32d),bT(0x122),bT(0x165),bT(0x182),bT(0x195),bT(0x1c3),'ads-third-quartile','ads-pause','ads-play',bT(0x16f)]),this[bT(0x2d0)]['on'](bT(0x107),this[bT(0x1c8)][bT(0x26c)](this)),this[bT(0x2d0)]['on'](bT(0x17e),this[bT(0x21d)][bT(0x26c)](this)),this[bT(0x2d0)]['on'](bT(0x33f),this[bT(0x283)][bT(0x26c)](this)),this[bT(0x2d0)]['on'](bT(0x167),this[bT(0x1b0)][bT(0x26c)](this)),this[bT(0x2d0)]['on']('adskip',this[bT(0x1b6)][bT(0x26c)](this)),this[bT(0x2d0)]['on']('adserror',this['onAdserror'][bT(0x26c)](this)),this[bT(0x2d0)]['on'](bT(0x122),this[bT(0x255)]['bind'](this)),this['player']['on'](bT(0x165),this['onPodStart'][bT(0x26c)](this)),this['player']['on']('ads-pod-ended',this[bT(0x1d1)][bT(0x26c)](this)),this[bT(0x2d0)]['on'](bT(0x195),this['onFirstQuartile'][bT(0x26c)](this)),this[bT(0x2d0)]['on']('ads-midpoint',this[bT(0x30b)][bT(0x26c)](this)),this['player']['on'](bT(0x2ee),this[bT(0x2f3)]['bind'](this)),this[bT(0x2d0)]['on']('ads-pause',this[bT(0x2e2)][bT(0x26c)](this)),this[bT(0x2d0)]['on'](bT(0x2ba),this[bT(0x2d8)][bT(0x26c)](this));}['unregisterListeners'](){const bU=bM;this[bU(0x2d0)][bU(0x199)]('ads-request',this[bU(0x1c8)]),this[bU(0x2d0)][bU(0x199)](bU(0x17e),this['onAdload']),this[bU(0x2d0)]['off'](bU(0x33f),this[bU(0x283)]),this['player'][bU(0x199)]('adend',this['onAdend']),this['player'][bU(0x199)](bU(0x115),this[bU(0x1b6)]),this[bU(0x2d0)]['off'](bU(0x32d),this[bU(0x248)]),this[bU(0x2d0)][bU(0x199)](bU(0x122),this['onAdsClick']),this['player']['off'](bU(0x165),this['onPodStart']),this[bU(0x2d0)][bU(0x199)](bU(0x182),this[bU(0x1d1)]),this[bU(0x2d0)][bU(0x199)](bU(0x195),this[bU(0x22d)]),this[bU(0x2d0)][bU(0x199)](bU(0x1c3),this[bU(0x30b)]),this['player']['off'](bU(0x2ee),this[bU(0x2f3)]),this[bU(0x2d0)]['off'](bU(0x18f),this['onAdspause']),this[bU(0x2d0)][bU(0x199)]('ads-play',this['onAdsplay']);}[bM(0x1c8)](o){const bV=bM;this[bV(0x13a)](),this[bV(0x32f)]({'state':bV(0x107)});}[bM(0x21d)](o){const bW=bM;this['sendDownload']({'state':bW(0x17e)});}[bM(0x283)](o){const bX=bM;this['sendRequest'](),this[bX(0x141)]();}[bM(0x1b0)](o){this['sendEnd']();}[bM(0x1b6)](o){const bY=bM;this[bY(0x266)]({'skipped':!0x0});}['onAdserror'](o){const bZ=bM;this[bZ(0x32a)]();}['onAdsClick'](o){const c0=bM;this[c0(0x13e)]({'url':c0(0xff)});}[bM(0x1c6)](o){const c1=bM;this[c1(0x246)]();}['onPodEnd'](o){const c2=bM;this[c2(0x265)]();}[bM(0x22d)](){const c3=bM;this[c3(0x309)]({'quartile':0x1});}[bM(0x30b)](){const c4=bM;this[c4(0x309)]({'quartile':0x2});}[bM(0x2f3)](){const c5=bM;this[c5(0x309)]({'quartile':0x3});}[bM(0x2e2)](){const c6=bM;this[c6(0x1b3)]();}[bM(0x2d8)](){const c7=bM;this[c7(0x308)]();}}g['default']=m;},0x22b:(f,g,j)=>{j['r'](g),j['d'](g,{'__esModule':()=>v,'default':()=>w}),function(y){const c8=a0b,z=p,A=y();for(;;)try{if(0x806dc===parseInt(z(0x299))/0x1*(parseInt(z(0x1b6))/0x2)+parseInt(z(0x223))/0x3*(parseInt(z(0x286))/0x4)+-parseInt(z(0x1ef))/0x5+-parseInt(z(0x262))/0x6*(-parseInt(z(0x1a4))/0x7)+parseInt(z(0x236))/0x8*(-parseInt(z(0x1f8))/0x9)+parseInt(z(0x1c3))/0xa+-parseInt(z(0x280))/0xb*(-parseInt(z(0x22a))/0xc))break;A[c8(0x24b)](A[c8(0x103)]());}catch(B){A['push'](A[c8(0x103)]());}}(x);var k={0x33:(y,z)=>{const c9=a0b,A=p;Object[A(0x225)](z,A(0x27c),{'value':!0x0}),z[A(0x242)]=void 0x0;class B{}B[A(0x2c8)]={'PRE':A(0x2a2),'MID':A(0x1fc),'POST':A(0x1fa)},z[c9(0x2bd)]=B;},0x90:(y,z)=>{const ca=a0b,A=p;Object[A(0x225)](z,ca(0x1f6),{'value':!0x0}),z[A(0x242)]=void 0x0;class B{static[A(0x212)](){const cb=ca,F=A;for(var G=arguments[cb(0x294)],H=new Array(G),I=0x0;I<G;I++)H[I]=arguments[I];C(H,B[cb(0x2fe)][F(0x17e)],F(0x302));}static[A(0x190)](){const cc=ca,F=A;for(var G=arguments[F(0x222)],H=new Array(G),I=0x0;I<G;I++)H[I]=arguments[I];C(H,B[F(0x17f)][cc(0x267)],F(0x26b));}static[A(0x2b7)](){const cd=ca,F=A;for(var G=arguments[cd(0x294)],H=new Array(G),I=0x0;I<G;I++)H[I]=arguments[I];C([][F(0x21d)][F(0x1db)](arguments),B[cd(0x2fe)][F(0x289)],F(0x237));}static[A(0x248)](){const ce=ca,F=A;for(var G=arguments[F(0x222)],H=new Array(G),I=0x0;I<G;I++)H[I]=arguments[I];C(H,B[F(0x17f)][F(0x2b4)],ce(0x34a));}static['debugCommonVideoEvents'](F,G,H){const cf=ca,I=A;try{if(B[I(0x1f3)]<=B[cf(0x2fe)][I(0x2b4)]){H=H||function(L){const cg=cf,M=I;B[M(0x248)](cg(0x21c)+L[M(0x261)]);};var J=[I(0x20c),I(0x1c4),I(0x24b),cf(0x18e),I(0x26e),'playing',I(0x298),I(0x2f5),I(0x212),I(0x1a1),I(0x1ad),I(0x1df),I(0x2db),I(0x1fd),I(0x275),I(0x18e),I(0x1c8),I(0x228)];G&&(null===G[0x0]?(G[I(0x2aa)](),J=G):J=J[I(0x2fd)](G));for(var K=0x0;K<J[cf(0x294)];K++)I(0x19c)==typeof F?F[I(0x1db)](window,J[K],H):F['on']?F['on'](J[K],H):F[I(0x2d4)]?F[I(0x2d4)](J[K],H):F[I(0x2f6)]?F[I(0x2f6)](J[K],H):B[I(0x190)](I(0x18a),F);}}catch(L){B[cf(0x30c)](L);}}}function C(F,G,H){const ch=ca,I=A;G=G||B[ch(0x2fe)][I(0x289)],H=H||'darkcyan';var J,K,L=B[I(0x277)];B[I(0x300)]&&(L+='['+('0'+(J=new Date())[I(0x209)]())[ch(0x30f)](-0x2)+':'+('0'+J[I(0x217)]())[I(0x21d)](-0x2)+':'+('0'+J[ch(0x307)]())[ch(0x30f)](-0x2)+'.'+('00'+J[I(0x2e3)]())[ch(0x30f)](-0x3)+']\x20'),L+=E[G]+':',B['level']<=G&&G!==B[I(0x17f)][I(0x1ed)]&&(!B['colorful']||I(0x2cc)!=typeof document&&document[ch(0x2cf)]?D(F,L):(K=G===B[I(0x17f)][I(0x17e)]&&console[I(0x212)]?console[I(0x212)]:G===B[ch(0x2fe)][I(0x1c2)]&&console[ch(0x30c)]?console[I(0x190)]:G===B[ch(0x2fe)][I(0x2b4)]&&console[I(0x248)]&&null==window[I(0x20e)]?console[I(0x248)]:console['log'],L='%c'+L,F['splice'](0x0,0x0,L,ch(0x11a)+H),K[ch(0x24c)](console,F)));}function D(F,G){const H=A;if(F instanceof Array){for(var I in F)D(F[I],G);}else H(0x2f1)==typeof F?console[H(0x1f1)](G+'\x20'+F):(console[H(0x1f1)](G+'↵'),console[H(0x1f1)](F));}B[ca(0x2fe)]={'SILENT':0x5,'ERROR':0x4,'WARNING':0x3,'NOTICE':0x2,'DEBUG':0x1,'ALL':0x0},B[A(0x1f3)]=B[A(0x17f)][A(0x17e)],B[A(0x2c6)]=!0x0,B[ca(0x24f)]=!0x0,B[A(0x277)]=A(0x1c9);const E={0x4:'e',0x3:'w',0x2:'n',0x1:'d'};!(function(){const ci=ca,F=A;if(F(0x2cc)!=typeof window&&window[F(0x30e)]&&window[F(0x30e)][F(0x20a)]){var G=/\?.*&*nrvideo-debug=(.+)/i[F(0x231)](window[F(0x30e)]['search']);null!==G&&(F(0x246)===G[0x1]?B['level']=B[F(0x17f)][F(0x1da)]:B[F(0x1f3)]=G[0x1]),null!==/\?.*&*nrvideo-colors=false/i[F(0x231)](window[ci(0x222)][F(0x20a)])&&(B[F(0x2c6)]=!0x1);}}()),z[ca(0x2bd)]=B;},0x92:(y,z)=>{const A=p;Object[A(0x225)](z,A(0x27c),{'value':!0x0}),z[A(0x242)]=void 0x0,z[A(0x242)]=class{constructor(B){const cj=a0b;this[cj(0x19b)]={};}[A(0x257)](B,C){const ck=a0b,D=A;C=Object[ck(0x344)](C||{},this[D(0x234)]);}[A(0x1ae)](B,C){this[A(0x234)][B]=C;}[A(0x2a7)](B){const C=A;this[C(0x234)][C(0x221)](B);}};},0x12e:(y,z,A)=>{const cl=a0b,B=p;Object[B(0x225)](z,cl(0x1f6),{'value':!0x0}),z[B(0x242)]=void 0x0;var C=G(A(0x14a)),D=G(A(0x238)),E=G(A(0x1c7)),F=G(A(0x33));function G(I){return I&&I[B(0x27c)]?I:{'default':I};}class H extends D[B(0x242)]{constructor(I){const cm=cl,J=B;super(),this[J(0x2d7)]={},this[J(0x2d8)]=null,this[J(0x22b)]=null,this[cm(0x256)]=new E[(J(0x242))](),this[cm(0x256)][J(0x1bb)](),this[cm(0x236)]=F[J(0x242)][J(0x2de)],this[J(0x1b0)]=F[J(0x242)][cm(0x338)],I=I||{},this['setOptions'](I);}[B(0x272)](I){const cn=cl,J=B;I&&(I[J(0x22b)]&&(this[J(0x22b)]=I[J(0x22b)]),I[J(0x2d7)]&&(this[cn(0x1cb)]=I[J(0x2d7)]),I[J(0x2d8)]&&(this[J(0x2d8)]=I[cn(0x2c9)]));}[B(0x275)](){this[B(0x1be)]();}[cl(0x1f2)](){}[B(0x1be)](){}[B(0x2b8)](){const co=cl,I=B;return this[I(0x25c)][co(0x33d)]?0x7d0:this[co(0x2c9)]?this[I(0x2d8)]:this[I(0x22b)]&&this[I(0x22b)][I(0x2d8)]?this[I(0x22b)][co(0x2c9)]:0x7530;}[B(0x23f)](){const cp=cl,I=B;this[I(0x29b)]=setInterval(this[I(0x282)][I(0x258)](this),Math[cp(0x311)](this['getHeartbeat'](),0x7d0));}[B(0x241)](){const I=B;this[I(0x29b)]&&clearInterval(this[I(0x29b)]);}[B(0x282)](I){const J=B;this[J(0x1ec)](H[J(0x29e)][J(0x1d6)],I);}[B(0x1af)](I,J){const cq=cl,K=B;(I=I||{})[K(0x2a1)]=this[K(0x1d3)](),I[K(0x233)]=this[cq(0x285)](),I[K(0x1ac)]=C[K(0x242)][K(0x2b9)],I[K(0x1b5)]=this[K(0x187)][K(0x186)]();for(let L in this[cq(0x1cb)])I[L]=this[K(0x2d7)][L];return null!=document[K(0x25e)]&&(I[K(0x17d)]=document[cq(0x29b)]),I;}[B(0x265)](){const I=B;return C[I(0x242)][I(0x2b9)];}[B(0x1d3)](){const cr=cl;return cr(0x13c);}[B(0x1ec)](I,J){const K=B;this[K(0x1d2)](K(0x1bd),I,this[K(0x1af)](J));}[cl(0x18b)](I,J){const cs=cl,K=B;this[cs(0x28b)](K(0x196),I,this['getAttributes'](J));}[B(0x1dc)](I,J){const ct=cl,K=B;let L=this[K(0x25d)]()?ct(0x2eb):K(0x304);this[K(0x1d2)](K(0x1cd),I,this[K(0x1af)](J,L));}[B(0x202)](I,J){const K=B;this[K(0x1d2)](K(0x1de),I,this[K(0x1af)](J,K(0x28f)));}}H['Events']={'HEARTBEAT':cl(0x34c)},z[B(0x242)]=H;},0x148:(y,z,A)=>{const cu=a0b,B=p;Object[B(0x225)](z,B(0x27c),{'value':!0x0}),z[cu(0x2bd)]=void 0x0;var C=E(A(0x1c7)),D=E(A(0x90));function E(F){const cv=cu;return F&&F[cv(0x1f6)]?F:{'default':F};}z[B(0x242)]=class{constructor(){const F=B;this['reset'](),this[F(0x267)]=Date[F(0x256)](),this[F(0x213)]=!0x0,this[F(0x2c7)]=0x0,this['_bufferAcc']=0x0;}[B(0x2fc)](){const cw=cu,F=B;this[F(0x2e6)]=null,this[cw(0x239)]=0x0,this[F(0x291)]=!0x1,this[F(0x1b9)]=0x0,this[F(0x2ac)]=0x0,this[F(0x227)]=0x0,this[F(0x20b)]=0x0,this[cw(0x290)]=0x0,this[F(0x2ad)]=!0x1,this[F(0x29a)]=!0x1,this[F(0x2a4)](),this[F(0x1a7)]();}[B(0x2a4)](){const cx=cu,F=B;this[F(0x266)]=!0x1,this[F(0x19b)]=!0x1,this['isStarted']=!0x1,this[F(0x1ca)]=!0x1,this[F(0x19d)]=!0x1,this[F(0x1b1)]=!0x1,this[cx(0x2e7)]=!0x1;}['resetChronos'](){const cy=cu,F=B;this[F(0x2b5)]=new C[(F(0x242))](),this['timeSinceStarted']=new C[(F(0x242))](),this[cy(0x1f1)]=new C[(F(0x242))](),this[F(0x314)]=new C[(F(0x242))](),this[F(0x2e2)]=new C[(F(0x242))](),this[cy(0x325)]=new C[(F(0x242))](),this[F(0x2b6)]=new C[(F(0x242))](),this[F(0x1e2)]=new C[(cy(0x2bd))](),this[F(0x285)]=new C[(F(0x242))](),this[cy(0x23e)]=new C['default'](),this[F(0x2dc)]=new C[(F(0x242))](),this[F(0x1cc)]=new C[(F(0x242))](),this[F(0x254)]=new C[(F(0x242))](),this[cy(0x105)]=new C[(cy(0x2bd))](),this[F(0x264)]={},this[cy(0x173)]=new C[(F(0x242))](),this[cy(0x231)]=new C[(F(0x242))]();}[cu(0x34b)](){return this[B(0x291)];}[B(0x177)](F){this[B(0x291)]=F;}[B(0x287)](F){const cz=cu;this[B(0x264)][F]=new C[(cz(0x2bd))](),this['customTimeSinceAttributes'][F][cz(0x341)]();}[B(0x2ca)](F){delete this[B(0x264)][F];}['getViewSession'](){const cA=cu,F=B;if(!this[F(0x2e6)]){let G=new Date()[F(0x1c1)](),H=Math[F(0x244)]()['toString'](0x24)[F(0x205)](0x2)+Math[F(0x244)]()[F(0x292)](0x24)[cA(0x1b4)](0x2);this[F(0x2e6)]=G+'-'+H;}return this[F(0x2e6)];}[B(0x293)](){const F=B;return this[F(0x21e)]()+'-'+this[F(0x2bd)];}[cu(0x2a0)](F){const cB=cu,G=B;F=F||{},this[G(0x25d)]()?(this[cB(0x151)]&&(F[G(0x23a)]=this[cB(0x227)]['getDeltaTime'](),F['timeSinceLastAdHeartbeat']=this[G(0x1e2)][G(0x186)]()),this[G(0x2df)]&&(F[G(0x206)]=this[G(0x30d)][G(0x186)]()),this[G(0x1ca)]&&(F[cB(0x117)]=this[G(0x18f)][G(0x186)]()),this[G(0x1b1)]&&(F[G(0x1e8)]=this[cB(0x1bd)][G(0x186)]()),this[cB(0x162)]&&(F[G(0x194)]=this[G(0x314)][G(0x186)]()),this[G(0x2ad)]&&(F['timeSinceAdBreakBegin']=this[G(0x1a2)][G(0x186)]()),F[G(0x2ac)]=this[G(0x2ac)]):(this[G(0x19b)]&&(F[cB(0x227)]=this[G(0x2b5)][G(0x186)](),F[cB(0x29d)]=this[G(0x1e2)]['getDeltaTime']()),this[G(0x2df)]&&(F[G(0x30d)]=this[G(0x30d)][G(0x186)]()),this[cB(0x1a5)]&&(F[G(0x18f)]=this[cB(0x1f1)][G(0x186)]()),this[G(0x1b1)]&&(F[cB(0x1bd)]=this[G(0x2e2)][G(0x186)]()),this[G(0x19d)]&&(F[G(0x314)]=this[G(0x314)][G(0x186)]()),F[G(0x2dc)]=this[cB(0x1a2)][G(0x186)](),F[G(0x227)]=this[G(0x227)]),F[G(0x1b9)]=this[G(0x1b9)],this[G(0x25d)]()||(this[cB(0x105)][G(0x189)]>0x0?F[G(0x279)]=this['playtimeSinceLastEvent'][cB(0x20d)]():F[G(0x279)]=0x0,this['isPlaying']?this[G(0x279)][G(0x1bb)]():this[G(0x279)][cB(0x1a0)](),this[G(0x20b)]+=F[cB(0x105)],F[G(0x20b)]=this[G(0x20b)]);for(const [H,I]of Object[G(0x1d1)](this[G(0x264)]))F[H]=I[G(0x186)]();return F;}[B(0x185)](F){const cC=cu,G=B;let H='';return H=F?G(0x238):this[G(0x19d)]?G(0x1ad):this[G(0x1ca)]?G(0x298):cC(0x331),D[G(0x242)][G(0x248)](G(0x2da)+H),H;}[B(0x245)](){const cD=cu;this[cD(0x239)]++;}[B(0x1bc)](){const F=B;return!this[F(0x266)]&&(this[F(0x266)]=!0x0,!0x0);}['goRequest'](){const cE=cu,F=B;return!this[F(0x19b)]&&(this[F(0x19b)]=!0x0,this[F(0x2dc)]['reset'](),this[cE(0x227)][F(0x1bb)](),!0x0);}[B(0x281)](){const F=B;return!(!this[F(0x19b)]||this[F(0x2df)]||(this[F(0x25d)]()?this[F(0x2ac)]++:this[F(0x227)]++,this[F(0x2df)]=!0x0,this[F(0x27f)]=!0x0,this[F(0x30d)][F(0x1bb)](),this['playtimeSinceLastEvent'][F(0x1bb)](),0x0));}['goEnd'](){const F=B;return!!this['isRequested']&&(this['numberOfErrors']=0x0,this[F(0x2a4)](),this['timeSinceRequested'][F(0x2ba)](),this[F(0x30d)][F(0x2ba)](),this[F(0x279)][F(0x2ba)](),!0x0);}[B(0x249)](){const cF=cu,F=B;return!(!this[F(0x2df)]||this[F(0x1ca)]||(this[F(0x1ca)]=!0x0,this[F(0x27f)]=!0x1,this[F(0x18f)][F(0x1bb)](),this[cF(0x105)][F(0x2ba)](),this[F(0x1cc)][F(0x2fc)](),this[F(0x1b1)]&&(this[F(0x216)]+=this[F(0x18d)][F(0x186)]()),this[F(0x1d5)][F(0x1bb)](),0x0));}[B(0x308)](){const cG=cu,F=B;return!(!this[cG(0x24a)]||!this[F(0x1ca)]||(this[F(0x1ca)]=!0x1,this[cG(0x2e7)]=!0x0,this[F(0x18f)][F(0x2ba)](),this[F(0x1cc)][F(0x1bb)](),this[cG(0x203)]?(this[F(0x2c7)]=this[F(0x1d5)][F(0x186)](),this[F(0x213)]=!0x1):(this[F(0x1b1)]&&this[F(0x18d)][F(0x1bb)](),this[cG(0x31a)]+=this[F(0x1d5)][cG(0x20d)]()),0x0));}[B(0x1d7)](){const cH=cu,F=B;return!(!this[F(0x19b)]||this['isBuffering']||(this[F(0x1b1)]=!0x0,this[F(0x27f)]=!0x1,this[F(0x2e2)][cH(0x341)](),this[F(0x18d)][F(0x1bb)](),0x0));}[B(0x22e)](){const cI=cu,F=B;return!(!this[F(0x19b)]||!this[cI(0x226)]||(this['isBuffering']=!0x1,this[F(0x27f)]=!0x0,this[F(0x2e2)][F(0x2ba)](),this[F(0x213)]?(this[cI(0x1d0)]=this[F(0x18d)][F(0x186)](),this[cI(0x203)]=!0x1):this[cI(0x1d0)]+=this[F(0x18d)][F(0x186)](),0x0));}[B(0x218)](){const cJ=cu,F=B;return!(!this[cJ(0x24a)]||this[F(0x19d)]||(this[F(0x19d)]=!0x0,this[F(0x27f)]=!0x1,this[cJ(0x351)][F(0x1bb)](),this[F(0x254)][F(0x2fc)](),0x0));}[B(0x30b)](){const cK=cu,F=B;return!(!this[cK(0x24a)]||!this[F(0x19d)]||(this[F(0x19d)]=!0x1,this[F(0x27f)]=!0x0,this[F(0x314)][cK(0x100)](),this[F(0x254)][F(0x1bb)](),0x0));}[cu(0x16c)](){const cL=cu,F=B;return!this[F(0x2ad)]&&(this[F(0x2ad)]=!0x0,this[cL(0x325)][F(0x1bb)](),!0x0);}[B(0x284)](){const cM=cu,F=B;return!!this[F(0x2ad)]&&(this[F(0x19b)]=!0x1,this[F(0x2ad)]=!0x1,this[F(0x1c7)]=this[cM(0x325)][F(0x186)](),this[cM(0x325)][F(0x2ba)](),!0x0);}[cu(0x2b9)](){const cN=cu;this[B(0x2b6)][cN(0x341)]();}[cu(0x298)](){const F=B;this[F(0x1e2)][F(0x1bb)]();}[B(0x21a)](){this[B(0x285)]['start']();}[B(0x207)](){const F=B;this[F(0x2bf)][F(0x1bb)]();}[B(0x30f)](){const F=B;this[F(0x297)]=!0x0,this[F(0x1b9)]++;}[cu(0x245)](){const F=B;this[F(0x2dc)][F(0x1bb)]();}};},0x14a:y=>{const z=p;y[z(0x1f9)]=JSON[z(0x2f8)]('{\x22name\x22:\x22@newrelic/video-core\x22,\x22version\x22:\x223.0.1\x22,\x22description\x22:\x22New\x20Relic\x20video\x20tracking\x20core\x20library\x22,\x22main\x22:\x22./dist/cjs/index.js\x22,\x22module\x22:\x22./dist/esm/index.js\x22,\x22scripts\x22:{\x22build\x22:\x22webpack\x20--mode\x20production\x22,\x22build:dev\x22:\x22webpack\x20--mode\x20development\x22,\x22watch\x22:\x22webpack\x20--mode\x20production\x20--progress\x20--color\x20--watch\x22,\x22watch:dev\x22:\x22webpack\x20--progress\x20--color\x20--watch\x22,\x22clean\x22:\x22rm\x20-rf\x20dist\x20coverage\x20doc\x22,\x22test\x22:\x22nyc\x20--reporter=html\x20--reporter=text\x20mocha\x20--require\x20@babel/register\x22,\x22doc\x22:\x22jsdoc\x20-c\x20jsdoc.json\x20-d\x20documentation\x22,\x22deploy\x22:\x22node\x20scripts/deploy.js\x22,\x22third-party-updates\x22:\x22oss\x20third-party\x20manifest\x20--includeOptDeps\x20&&\x20oss\x20third-party\x20notices\x20--includeOptDeps\x20&&\x20git\x20add\x20THIRD_PARTY_NOTICES.md\x20third_party_manifest.json\x22},\x22repository\x22:{\x22type\x22:\x22git\x22,\x22url\x22:\x22https://github.com/newrelic/video-core-js\x22},\x22author\x22:\x22Jordi\x20Aguilar\x22,\x22contributors\x22:[\x22Andreu\x20Santarén\x20Llop\x22],\x22license\x22:\x22MIT\x22,\x22devDependencies\x22:{\x22@babel/core\x22:\x22^7.24.5\x22,\x22@babel/plugin-transform-modules-commonjs\x22:\x22^7.24.1\x22,\x22@babel/preset-env\x22:\x22^7.24.5\x22,\x22@babel/register\x22:\x22^7.24.6\x22,\x22@newrelic/newrelic-oss-cli\x22:\x22^0.1.2\x22,\x22aws-sdk\x22:\x22^2.920.0\x22,\x22babel-loader\x22:\x22^9.1.3\x22,\x22chai\x22:\x22^4.3.4\x22,\x22diff\x22:\x22^5.0.0\x22,\x22jsdom\x22:\x22^25.0.1\x22,\x22mocha\x22:\x22^10.4.0\x22,\x22nyc\x22:\x22^15.1.0\x22,\x22sinon\x22:\x22^2.4.1\x22,\x22webpack\x22:\x22^5.91.0\x22,\x22webpack-cli\x22:\x22^4.9.2\x22,\x22webpack-obfuscator\x22:\x22^3.5.1\x22},\x22files\x22:[\x22THIRD_PARTY_NOTICES.md\x22,\x22dist\x22,\x22CHANGELOG.md\x22,\x22README.md\x22,\x22!test\x22],\x22publishConfig\x22:{\x22access\x22:\x22public\x22}}');},0x18f:(y,z,A)=>{const cO=a0b,B=p;Object[B(0x225)](z,cO(0x1f6),{'value':!0x0}),z[B(0x242)]=void 0x0;var C=E(A(0x90)),D=E(A(0x92));function E(K){return K&&K[B(0x27c)]?K:{'default':K};}class F{static[B(0x2f0)](K){const cP=cO,L=B;K['on']&&K[cP(0x28b)]?(H[L(0x290)](K),K['on']('*',J),L(0x19c)==typeof K[L(0x1cb)]&&K[L(0x1cb)]()):C[cP(0x2bd)][cP(0x1a4)]('Tried\x20to\x20load\x20a\x20non-tracker.',K);}static[cO(0x129)](K){const L=B;K[L(0x1dd)]('*',J),K[L(0x275)]();let M=H[L(0x2b0)](K);-0x1!==M&&H[L(0x176)](M,0x1);}static[B(0x24d)](){return H;}static[B(0x2b2)](){return G;}static[B(0x203)](K){G=K;}static[B(0x257)](K,L,M){const cQ=cO,N=B;null!=F[N(0x2b2)]()&&F[N(0x2b2)]()instanceof D[cQ(0x2bd)]?F[cQ(0x130)]()[cQ(0x12a)](K,L,M):N(0x2cc)!=typeof newrelic&&newrelic[N(0x2f3)]?(void 0x0!==M&&(M[cQ(0x229)]=window[N(0x1fe)][N(0x256)]()/0x3e8),newrelic[N(0x2f3)](K,{'actionName':L,...M})):I||(C[N(0x242)][N(0x212)](N(0x247),cQ(0x121)),I=!0x0);}static[B(0x271)](K){const cR=cO,L=B;F[cR(0x12a)](L(0x17e),K);}}let G,H=[],I=!0x1;function J(K){const cS=cO,L=B;let M=function(N){let O={};for(let P in N)null!==N[P]&&void 0x0!==N[P]&&(O[P]=N[P]);return O;}(K[L(0x1b3)]);C[cS(0x2bd)]['level']<=C[L(0x242)]['Levels'][L(0x2b4)]?C[L(0x242)][cS(0x1b1)](L(0x175),K[L(0x261)],M):C[L(0x242)][cS(0x1b1)](L(0x175),K[L(0x261)]),F[L(0x257)](K[cS(0x264)],K[L(0x261)],M);}z[B(0x242)]=F;},0x196:(y,z,A)=>{const cV=a0b,B=p;Object[B(0x225)](z,B(0x27c),{'value':!0x0}),z[B(0x242)]=void 0x0;var C=E(A(0x92)),D=E(A(0x90));function E(G){return G&&G['__esModule']?G:{'default':G};}class F extends C[B(0x242)]{constructor(G,H){const cT=a0b,I=B;super(),this[I(0x27b)]=G,this[I(0x283)]=H,this[cT(0x202)]='',this[I(0x2fb)]=[],this[cT(0x19d)]=!0x1,this['_lastTimestamp']=0x0,setInterval(()=>{const J=I;this[J(0x22f)](F[J(0x306)][J(0x23c)]);},0x2710);}[B(0x257)](G,H,I){const cU=a0b,J=B;if(this[J(0x1d9)]=G,super[J(0x257)](H,I),this[J(0x2fb)][cU(0x294)]<0x1f4){(I=this['generateAttributes'](I))[cU(0x264)]=this['_eventType'],I[J(0x28a)]=H;let K=Date[J(0x256)]();K>this[cU(0x1e5)]?(I['timestamp']=K,this['_lastTimestamp']=K):(this[cU(0x1e5)]++,I[J(0x1c5)]=this[J(0x2a0)]),this[J(0x2fb)][cU(0x24b)](I);}}[cV(0x1fd)](G){const cW=cV,H=B;G[cW(0x140)]=window[cW(0x222)][H(0x26a)],G[H(0x23d)]=window[H(0x30e)][H(0x21b)]+window[H(0x30e)][H(0x17a)],G[H(0x2c3)]=document[cW(0x250)];let I=H(0x274);-0x1!=navigator[H(0x270)][H(0x2b0)](H(0x1ff))?I=H(0x1f7):-0x1!=navigator[H(0x270)][H(0x2b0)](H(0x260))?I=H(0x260):-0x1!=navigator[H(0x270)][H(0x2b0)](cW(0x2a9))?I=H(0x19f):navigator[H(0x270)][H(0x307)](/iPhone|iPad|iPod/i)?I=H(0x2eb):-0x1!=navigator[H(0x270)][H(0x2b0)](H(0x1a5))?I=H(0x1a5):-0x1!=navigator[H(0x270)][H(0x2b0)](cW(0x15b))&&(I=H(0x1ee)),G[cW(0x33e)]=I;let J=H(0x274);if(-0x1!=navigator[H(0x270)][H(0x2b0)](H(0x240))?J=H(0x240):-0x1!=navigator[H(0x270)][cW(0x2cc)](H(0x2a8))?J=cW(0x14e):-0x1!=navigator[cW(0x136)][H(0x2b0)](cW(0x16a))?J='IE':-0x1!=navigator[H(0x270)][H(0x2b0)](H(0x2e8))?J=H(0x21c):-0x1!=navigator[H(0x270)][H(0x2b0)](H(0x2d3))?J=H(0x2d3):-0x1!=navigator[H(0x270)][H(0x2b0)](H(0x2af))&&(J=H(0x2af)),G[cW(0x176)]=J,!G[H(0x1e3)]){let K=cW(0x353);K=navigator[H(0x270)][H(0x307)](/Tablet|iPad/i)?H(0x251):navigator[cW(0x136)][H(0x307)](/Mobile|Windows Phone|Lumia|Android|webOS|iPhone|iPod|Blackberry|PlayBook|BB10|Opera Mini|\bCrMo\/|Opera Mobi/i)?H(0x1b4):null!=window[H(0x20e)]?H(0x1e4):H(0x278),G[H(0x1e3)]=K;}return G;}[B(0x22f)](G){const cX=cV,H=B;G==F[H(0x306)][H(0x23c)]&&this[H(0x310)]?D[H(0x242)][H(0x248)](cX(0x260)):(this[H(0x310)]=!0x0,this[H(0x2fb)][H(0x222)]>0x0?(D[cX(0x2bd)][H(0x248)](H(0x25a),this[H(0x2fb)]),this[cX(0x28a)](this[H(0x2fb)][H(0x253)]())):this[H(0x310)]=!0x1);}[B(0x178)](G){const cY=cV,H=B,I={'method':cY(0x1a7),'headers':{'Content-Type':H(0x243),'X-Insert-Key':this[H(0x283)]},'body':JSON[H(0x204)](G)},J=H(0x30c)+this[cY(0x1dd)]+H(0x2d1);fetch(J,I)[H(0x29f)](K=>K[H(0x2bb)]())[cY(0x1aa)](K=>{this[H(0x1b2)](K);})[H(0x1e0)](K=>{const cZ=cY,L=H;D[cZ(0x2bd)][L(0x212)](cZ(0x2d6),K,G),this[cZ(0x329)][L(0x290)](G),this[L(0x310)]=!0x1;});}[B(0x1b2)](G){const H=B;this[H(0x22f)](F[H(0x306)][H(0x2e5)]);}}F[cV(0x346)]={'TIMER':cV(0x29e),'FETCH':B(0x2e5)},z[B(0x242)]=F;},0x1c7:(y,z)=>{const d2=a0b,A=p;Object[A(0x225)](z,A(0x27c),{'value':!0x0}),z[A(0x242)]=void 0x0;class B{constructor(){this[A(0x2fc)]();}[A(0x2fc)](){const d0=a0b;this[d0(0x2ca)]=0x0,this[d0(0x316)]=0x0,this['offset']=0x0;}[A(0x186)](){const C=A;return this[C(0x189)]?this[C(0x2cb)]+(new Date()[C(0x1c1)]()-this[C(0x189)]):null;}[A(0x1bb)](){const d1=a0b,C=A;this[d1(0x2ca)]=new Date()[C(0x1c1)](),this[C(0x1f4)]=0x0;}[d2(0x100)](){const C=A;return this['stopTime']=new Date()[C(0x1c1)](),this[C(0x186)]();}['clone'](){const C=A;var D=new B();return D[C(0x189)]=this[C(0x189)],D[C(0x1f4)]=this[C(0x1f4)],D[C(0x2cb)]=this[C(0x2cb)],D;}}z[d2(0x2bd)]=B;},0x238:(y,z)=>{const d3=a0b,A=p;Object[A(0x225)](z,A(0x27c),{'value':!0x0}),z[A(0x242)]=void 0x0,z[d3(0x2bd)]=class{['on'](B,C){const D=A;if(this['_listeners']=this[D(0x2ee)]||{},'function'==typeof C)return this[D(0x2ee)][B]=this[D(0x2ee)][B]||[],this[D(0x2ee)][B][D(0x290)](C),this;}[A(0x1dd)](B,C){const d4=d3,D=A;if(this[D(0x2ee)]=this[D(0x2ee)]||{},this[D(0x2ee)][B]){var E=this[D(0x2ee)][B][D(0x2b0)](C);-0x1!==E&&this[d4(0x17f)][B][D(0x176)](E,0x1);}return this;}[A(0x1d2)](B,C,D){const d6=d3,E=A;return this[E(0x2ee)]=this[E(0x2ee)]||{},D=D||{},Array[E(0x1e1)](this[E(0x2ee)][C])&&this[E(0x2ee)][C][E(0x22c)](F=>{const d5=a0b;F[d5(0x317)](this,{'eventType':B,'type':C,'data':D,'target':this});}),Array[d6(0x279)](this[E(0x2ee)]['*'])&&this[E(0x2ee)]['*'][d6(0x350)](F=>{F[E(0x1db)](this,{'eventType':B,'type':C,'data':D,'target':this});}),this;}};},0x319:(y,z,A)=>{const d7=a0b,B=p;Object[B(0x225)](z,d7(0x1f6),{'value':!0x0}),z[B(0x242)]=void 0x0;var C=G(A(0x90)),D=G(A(0x12e)),E=G(A(0x148)),F=G(A(0x14a));function G(J){return J&&J[B(0x27c)]?J:{'default':J};}class H extends D[B(0x242)]{constructor(J,K){const d8=d7,L=B;super(),this[d8(0x1fa)]=new E['default'](),this[L(0x1a0)]=null,this[L(0x1f5)]=null,this[L(0x309)]=null,K=K||{},this[L(0x272)](K),J&&this[L(0x224)](J,K[L(0x180)]),C[L(0x242)][L(0x2b7)](d8(0x334)+this[L(0x1d3)]()+'\x20v'+this[L(0x265)]()+L(0x226));}[B(0x259)](J){const d9=d7;this[d9(0x1d4)]=J;}[B(0x272)](J){const da=d7,K=B;J&&(J[da(0x275)]&&this[K(0x193)](J[da(0x275)]),K(0x2d5)==typeof J[K(0x25d)]&&this[K(0x177)](J[da(0x34b)]),D[K(0x242)][K(0x305)][K(0x272)][K(0x229)](this,arguments));}[B(0x224)](J,K){const db=d7,L=B;(this[db(0x2d0)]||this[L(0x180)])&&this[L(0x275)](),L(0x2cc)!=typeof document&&document[db(0x19f)]&&(L(0x2f1)==typeof J&&(J=document[L(0x2d0)](J)),L(0x2f1)==typeof K&&(K=document[db(0x19f)](K))),K=K||J,this[L(0x181)]=J,this[db(0x154)]=K,this[db(0x1f2)]();}[d7(0x34b)](){const J=B;return this[J(0x25c)][J(0x25d)]();}[B(0x177)](J){const K=B;this[K(0x25c)][K(0x177)](J);}[B(0x193)](J){const K=B;this[K(0x1a9)](),J&&(this[K(0x1a0)]=J,this['adsTracker'][K(0x177)](!0x0),this['adsTracker'][K(0x22b)]=this,this[K(0x1a0)]['on']('*',I[K(0x258)](this)));}[B(0x1a9)](){const dc=d7,J=B;this[J(0x1a0)]&&(this[dc(0x275)][dc(0x199)]('*',I),this[J(0x1a0)][dc(0x104)]());}[B(0x275)](){const dd=d7,J=B;this[J(0x241)](),this[dd(0x2d7)](),this[J(0x1be)](),this[J(0x181)]=null,this[J(0x180)]=null;}[B(0x1a8)](){}[B(0x1be)](){}[d7(0x2c3)](){const de=d7,J=B;return this[de(0x28f)]?this[J(0x22b)][J(0x293)]():this[J(0x25c)][J(0x293)]();}[B(0x21e)](){const df=d7,J=B;return this[J(0x22b)]?this[df(0x28f)][df(0x10e)]():this[J(0x25c)][df(0x10e)]();}[B(0x1d8)](){return null;}[B(0x235)](){return null;}[B(0x313)](){return null;}[d7(0x1c5)](){return null;}['getWebkitBitrate'](){const dg=d7,J=B;if(this[J(0x180)]&&this['tag'][J(0x27e)]){let K;if(this[J(0x1e5)]){K=this[J(0x180)][J(0x27e)];let L=K-this[dg(0x2e9)],M=this[dg(0x322)]()/0x3e8;K=Math['round'](L/M*0x8);}return this[J(0x1e5)]=this[J(0x180)][J(0x27e)],K||null;}}[B(0x179)](){return null;}[B(0x211)](){return null;}[B(0x219)](J){const dh=d7,K=B;let L,M=this[K(0x211)]();return this[K(0x25d)]()?(L=this[dh(0x22f)],J&&(this[dh(0x22f)]=M)):(L=this[dh(0x1b5)],J&&(this[K(0x210)]=M)),M&&L?M>L?'up':M<L?K(0x1f2):null:null;}[d7(0x2a6)](){const J=B;return this[J(0x180)]?this[J(0x180)][J(0x296)]:null;}[B(0x2e0)](){const di=d7,J=B;return this[J(0x180)]?this[di(0x154)][J(0x18b)]:null;}[B(0x255)](){const J=B;return this[J(0x180)]?this['tag'][J(0x26d)]:null;}[B(0x208)](){const dj=d7,J=B;return this[dj(0x154)]?this[J(0x180)][J(0x2ef)]:null;}[d7(0x249)](){return null;}[B(0x2c0)](){const dk=d7,J=B;return this[J(0x180)]?this[J(0x180)][dk(0x143)]:null;}[B(0x1eb)](){const dl=d7,J=B;return this[J(0x180)]?this[dl(0x154)][J(0x1ce)]:null;}[d7(0x295)](){const dm=d7,J=B;return this[J(0x180)]?this[dm(0x154)][J(0x1a6)]:null;}[d7(0x2e3)](){return null;}[d7(0x2c1)](){return null;}[B(0x268)](){return this[B(0x1d3)]();}[d7(0x221)](){const J=B;return F[J(0x242)][J(0x2b9)];}[B(0x2e4)](){return null;}[d7(0x357)](){const J=B;return this[J(0x180)]?this[J(0x180)]['autoplay']:null;}[B(0x1e9)](){const J=B;return this[J(0x180)]?this[J(0x180)]['preload']:null;}[B(0x2ab)](){return null;}[B(0x2a6)](){const dn=d7,J=B;return this[dn(0x28f)]?this[J(0x22b)][dn(0x1fa)][J(0x2df)]?J(0x1fc):J(0x2a2):null;}[B(0x2fa)](){return null;}[B(0x2ff)](){return null;}['getInstrumentationProvider'](){return null;}[B(0x1ea)](){return null;}[d7(0x1c0)](){return null;}[B(0x1af)](J,K){const dp=d7,L=B;if(void 0x0===(J=D[L(0x242)][L(0x305)][L(0x1af)][L(0x229)](this,arguments))[L(0x25d)]&&(J[L(0x25d)]=this[L(0x25d)]()),J[L(0x2ec)]=this[L(0x21e)](),J[L(0x2d6)]=this[L(0x293)](),J[L(0x2d2)]=this['getPlayerName'](),J['playerVersion']=this[L(0x312)](),J['instrumentation.provider']=this[L(0x191)](),J[L(0x2c5)]=this[L(0x1ea)](),J[L(0x2f7)]=this[L(0x1d4)](),J[L(0x23e)]=this[L(0x309)],J[L(0x214)]=L(0x26c),L(0x28f)===K)return J;try{J[L(0x29d)]=window[L(0x30e)][L(0x26a)];}catch(M){}this[L(0x25d)]()?(J[L(0x1e6)]=this[L(0x1d8)](),J[L(0x1a3)]=this[dp(0x362)](),J[L(0x2f2)]=this[dp(0x29f)](),J[L(0x2b3)]=this[L(0x17b)](),J[L(0x195)]=this['getBitrate']()||this[L(0x25b)]()||this[L(0x211)](),J[L(0x2ed)]=this['getRenditionName'](),J[L(0x30a)]=this[L(0x211)](),J[L(0x2a9)]=this[L(0x201)](),J[L(0x199)]=this[L(0x2e0)](),J[L(0x1fb)]=this[L(0x255)](),J[L(0x24e)]=this[L(0x208)](),J[L(0x28e)]=this[dp(0x249)](),J[dp(0x18c)]=this[L(0x1c6)](),J[L(0x28c)]=this[L(0x2e4)](),J['adPosition']=this[L(0x2a6)](),J[L(0x24c)]=this[L(0x2ff)](),J[L(0x1e7)]=this[dp(0x164)]()):(J[L(0x1b8)]=this[L(0x1d8)](),J[L(0x215)]=this[L(0x235)](),J[L(0x182)]=this[L(0x2c0)](),J[dp(0x146)]=this[L(0x17b)](),J[dp(0x27f)]=this[L(0x208)](),J[dp(0x219)]=this[dp(0x111)](),J[L(0x250)]=this[L(0x184)]()||this[L(0x25b)]()||this[dp(0x2a3)](),J[L(0x25f)]=this[L(0x179)](),J[dp(0x232)]=this[L(0x211)](),J['contentRenditionHeight']=this[L(0x201)](),J[L(0x1f0)]=this[L(0x2e0)](),J[L(0x263)]=this[L(0x255)](),J[L(0x1bf)]=this[L(0x2e7)](),J[L(0x17c)]=this[L(0x1eb)](),J[L(0x1cf)]=this[L(0x18c)](),J[L(0x26f)]=this[L(0x1c6)](),J[L(0x2e1)]=this[L(0x23b)](),J[L(0x27a)]=this[L(0x1e9)](),J[L(0x2bc)]=this[dp(0x178)](),null!=this[L(0x1a0)]&&this[dp(0x275)][L(0x25c)][dp(0x290)]>0x0&&(J[L(0x1c7)]=this[L(0x1a0)][dp(0x1fa)][L(0x1c7)])),this[L(0x25c)][L(0x1b7)](J);for(let N in this[dp(0x1cb)])J[N]=this[L(0x2d7)][N];return J;}[B(0x21f)](J,K,L){const M=B;L=L||{},this[M(0x202)](J,L),this[M(0x25c)][M(0x287)](K);}[B(0x2a3)](J){const dq=d7,K=B;this[K(0x25c)][K(0x1bc)]()&&(J=J||{},this[K(0x1ec)](H[dq(0x13f)][dq(0x1a9)],J));}[d7(0x13a)](J){const dr=d7,K=B;if(this[K(0x25c)][K(0x276)]()){let L;this[K(0x25d)]()?(L=H[K(0x29e)][K(0x198)],this[dr(0x18b)](L,J)):(L=H[K(0x29e)][K(0x2be)],this[K(0x1ec)](L,J));}}['sendStart'](J){const ds=d7,K=B;if(this[K(0x25c)][K(0x281)]()){let L;this[ds(0x34b)]()?(L=H[K(0x29e)][K(0x303)],this[K(0x22b)]&&(this[ds(0x28f)][K(0x25c)][K(0x27f)]=!0x1),this['sendVideoAdAction'](L,J)):(L=H[K(0x29e)][ds(0x1f4)],this[K(0x1ec)](L,J)),this[K(0x23f)](),this[K(0x25c)][K(0x269)]();}}[B(0x188)](J){const dt=d7,K=B;if(this[K(0x25c)][dt(0x119)]()){let L;J=J||{},this[K(0x25d)]()?(L=H[K(0x29e)][K(0x311)],J[dt(0x223)]=this[K(0x25c)][K(0x2b5)][K(0x186)](),J[K(0x206)]=this[K(0x25c)][dt(0x116)][K(0x186)](),this[K(0x22b)]&&(this[K(0x22b)]['state'][K(0x27f)]=!0x0)):(L=H[dt(0x13f)][K(0x29c)],J[K(0x2b5)]=this[dt(0x1fa)][K(0x2b5)][K(0x186)](),J[K(0x30d)]=this[K(0x25c)][K(0x30d)][K(0x186)]()),this[dt(0x1fc)](),this[K(0x25d)]()?this[K(0x288)](L,J):this[dt(0x233)](L,J),this[K(0x22b)]&&this[K(0x25d)]()&&this[K(0x22b)][K(0x25c)][dt(0x245)](),this[K(0x25c)][dt(0x252)](),this[K(0x25c)][K(0x20b)]=0x0;}}[d7(0x1b3)](J){const du=d7,K=B;if(this[K(0x25c)][du(0x20c)]()){let L=this[K(0x25d)]()?H[du(0x13f)][K(0x20d)]:H[K(0x29e)][du(0x314)];this[du(0x34b)]()?this[K(0x288)](L,J):this['sendVideoAction'](L,J);}}[B(0x2d9)](J){const dv=d7,K=B;if(this[K(0x25c)][K(0x308)]()){let L;J=J||{},this[dv(0x34b)]()?(L=H['Events'][dv(0x2e4)],J[K(0x2ea)]=this[K(0x25c)][K(0x18f)][K(0x186)]()):(L=H[K(0x29e)][dv(0x2b5)],J[K(0x18f)]=this[K(0x25c)][K(0x18f)][K(0x186)]()),this[K(0x25d)]()?this[K(0x288)](L,J):this[K(0x1ec)](L,J);}}[B(0x2c4)](J){const dw=d7,K=B;if(this[K(0x25c)][dw(0x2e8)]()){let L;J=J||{},L=this[K(0x25d)]()?H[K(0x29e)][K(0x19e)]:H[K(0x29e)][K(0x1ab)],J=this[K(0x24a)](J),this[K(0x1f5)]=J[K(0x2c1)],this['isAd']()?this[K(0x288)](L,J):this[dw(0x233)](L,J);}}[B(0x301)](J){const dx=d7,K=B;if(this[K(0x25c)][K(0x22e)]()){let L;J=J||{},this[K(0x25d)]()?(L=H[K(0x29e)][K(0x192)],J[K(0x1e8)]=this[K(0x25c)][dx(0x1bd)][K(0x186)]()):(L=H[K(0x29e)][K(0x197)],J[K(0x2e2)]=this['state'][K(0x2e2)][dx(0x20d)]()),J=this[K(0x24a)](J),null!=this[K(0x1f5)]&&(J[K(0x2c1)]=this[K(0x1f5)]),this[K(0x25d)]()?this[K(0x288)](L,J):this[K(0x1ec)](L,J),this[K(0x25c)][K(0x29a)]=!0x0;}}[B(0x24a)](J){const dy=d7,K=B;return null==J[K(0x30d)]||J[K(0x30d)]<0x64?J[dy(0x342)]=!this[K(0x25c)][K(0x29a)]:J[K(0x295)]=!0x1,J[K(0x2c1)]=this[K(0x25c)][K(0x185)](J[K(0x295)]),J[K(0x1cc)]=this[K(0x25c)][dy(0x326)][K(0x186)](),J[dy(0x1bc)]=this[K(0x25c)][dy(0x1bc)][K(0x186)](),J;}[B(0x1f6)](J){const dz=d7,K=B;if(this[K(0x25c)][dz(0x1b8)]()){let L;L=this[K(0x25d)]()?H[K(0x29e)][K(0x2cf)]:H[K(0x29e)][dz(0x2d3)],this[K(0x25d)]()?this[K(0x288)](L,J):this[K(0x1ec)](L,J);}}[B(0x28b)](J){const dA=d7,K=B;if(this[K(0x25c)][dA(0x20b)]()){let L;J=J||{},this[K(0x25d)]()?(L=H[K(0x29e)][K(0x273)],J[dA(0x10f)]=this[K(0x25c)][dA(0x351)][K(0x186)]()):(L=H[K(0x29e)][K(0x183)],J[K(0x314)]=this[K(0x25c)][K(0x314)][K(0x186)]()),this[K(0x25d)]()?this[K(0x288)](L,J):this[dA(0x233)](L,J);}}[B(0x19a)](J){const dB=d7,K=B;(J=J||{})[dB(0x1fa)]||C[K(0x242)][K(0x190)](K(0x220)),this[K(0x1ec)](H[K(0x29e)][K(0x24f)],J),this[K(0x25c)]['goDownload']();}[B(0x271)](J){const dC=d7,K=B;(J=J||{})[K(0x25d)]=this[dC(0x34b)](),this['state'][K(0x30f)]();let L=this[K(0x25d)]()?H[dC(0x13f)][K(0x27d)]:H[dC(0x13f)][K(0x1aa)];this[K(0x1dc)](L,J);}[B(0x1d0)](J){const dD=d7,K=B;let L;(J=J||{})[dD(0x2e1)]=this[K(0x25c)][K(0x285)][K(0x186)](),J['shift']=this[K(0x219)](!0x0),L=this[K(0x25d)]()?H[K(0x29e)][dD(0x177)]:H[K(0x29e)][K(0x232)],this[K(0x25d)]()?this[K(0x288)](L,J):this[K(0x1ec)](L,J),this[K(0x25c)][K(0x21a)]();}[B(0x282)](J){const dE=d7,K=B;if(this[K(0x25c)][K(0x19b)]){let L,M=this[K(0x2b8)]();this[dE(0x1fa)][dE(0x203)]=!0x0,M=this[K(0x22d)](M),this[K(0x25d)]()?(L=H[dE(0x13f)][dE(0x2ad)],dE(0x26d)===this[K(0x268)]()?this[K(0x288)](L,J):this['sendVideoAdAction'](L,{'elapsedTime':M,...J})):(L=H[K(0x29e)][K(0x2c9)],this[K(0x1ec)](L,{'elapsedTime':M,...J})),this[K(0x25c)][K(0x269)]();}}[B(0x22d)](J){const dF=d7,K=B;return this[dF(0x1fa)][K(0x2c7)]&&(J-=this[K(0x25c)][dF(0x31a)],this[K(0x25c)][K(0x2c7)]=0x0),this[K(0x25c)][K(0x1ca)]&&((J-=this[dF(0x1fa)][K(0x1d5)][K(0x186)]())<0xa&&(J=0x0),this['state'][K(0x1d5)][K(0x1bb)]()),this[K(0x25c)][K(0x216)]?(J-=this[K(0x25c)][K(0x216)],this[K(0x25c)][K(0x216)]=0x0):this[K(0x25c)][K(0x1b1)]&&((J-=this[K(0x25c)][K(0x18d)][K(0x186)]())<0x5&&(J=0x0),this[K(0x25c)][K(0x18d)][dF(0x341)]()),Math['max'](0x0,J);}[B(0x230)](J){const dG=d7,K=B;this[K(0x25d)]()&&this[dG(0x1fa)][K(0x1ba)]()&&(this[K(0x25c)][K(0x1c7)]=0x0,this[K(0x22b)]&&(this[dG(0x28f)][K(0x25c)]['isPlaying']=!0x1),this[K(0x288)](H[dG(0x13f)][K(0x2a5)],J));}[B(0x200)](J){const dH=d7,K=B;this['isAd']()&&this[dH(0x1fa)]['goAdBreakEnd']()&&((J=J||{})[K(0x2f9)]=this[K(0x25c)][dH(0x325)][K(0x186)](),this[K(0x288)](H[dH(0x13f)][K(0x2e9)],J),this[K(0x22b)]&&(this[dH(0x28f)][K(0x25c)][K(0x27f)]=!0x0),this[dH(0x1fc)](),this[dH(0x28f)]&&this[dH(0x34b)]()&&this[K(0x22b)][K(0x25c)][K(0x20f)]());}[B(0x2f4)](J){const dI=d7,K=B;this['isAd']()&&((J=J||{})[K(0x239)]||C[dI(0x2bd)][K(0x190)](dI(0x190)),J[K(0x2bf)]=this[K(0x25c)][K(0x2bf)][K(0x186)](),this[K(0x288)](H[K(0x29e)][K(0x2fe)],J),this[K(0x25c)]['goAdQuartile']());}[B(0x28d)](J){const dJ=d7,K=B;this[K(0x25d)]()&&((J=J||{})[dJ(0x2fb)]||C[K(0x242)][K(0x190)](K(0x2dd)),this[K(0x288)](H[dJ(0x13f)][K(0x2c2)],J));}}function I(J){const dK=d7,K=B;this[K(0x288)](J[dK(0x12b)],J[K(0x1b3)]);}H[B(0x29e)]={'PLAYER_READY':B(0x294),'DOWNLOAD':B(0x24f),'ERROR':B(0x17e),'CONTENT_REQUEST':B(0x2be),'CONTENT_START':B(0x2ce),'CONTENT_END':B(0x29c),'CONTENT_PAUSE':B(0x2cd),'CONTENT_RESUME':B(0x2ae),'CONTENT_SEEK_START':B(0x2b1),'CONTENT_SEEK_END':B(0x183),'CONTENT_BUFFER_START':B(0x1ab),'CONTENT_BUFFER_END':B(0x197),'CONTENT_HEARTBEAT':B(0x2c9),'CONTENT_RENDITION_CHANGE':'CONTENT_RENDITION_CHANGE','CONTENT_ERROR':B(0x1aa),'AD_REQUEST':B(0x198),'AD_START':d7(0x34d),'AD_END':d7(0x200),'AD_PAUSE':B(0x20d),'AD_RESUME':B(0x252),'AD_SEEK_START':B(0x2cf),'AD_SEEK_END':d7(0x2bc),'AD_BUFFER_START':d7(0x1ac),'AD_BUFFER_END':d7(0x148),'AD_HEARTBEAT':d7(0x2ad),'AD_RENDITION_CHANGE':B(0x1c0),'AD_ERROR':d7(0x297),'AD_BREAK_START':B(0x2a5),'AD_BREAK_END':B(0x2e9),'AD_QUARTILE':d7(0x26a),'AD_CLICK':B(0x2c2)},z[d7(0x2bd)]=H;}},m={};function p(y,z){const A=x();return(p=function(B,C){return A[B-=0x175];})(y,z);}function q(y){const dL=a0b,z=p;var A=m[y];if(void 0x0!==A)return A[z(0x1f9)];var B=m[y]={'exports':{}};return k[y](B,B[dL(0x272)],q),B['exports'];}var u={};((()=>{const dN=a0b,y=p;var z=u;Object[y(0x225)](z,'B',{'value':!0x0}),z['A']=void 0x0;var B=M(q(0x92)),C=M(q(0x196)),D=M(q(0x18f)),E=M(q(0x33)),F=M(q(0x1c7)),G=M(q(0x90)),H=M(q(0x238)),I=M(q(0x12e)),J=M(q(0x319)),K=M(q(0x148)),L=q(0x14a);function M(O){const dM=a0b;return O&&O[dM(0x1f6)]?O:{'default':O};}const N={'Constants':E[y(0x242)],'Chrono':F[y(0x242)],'Log':G[y(0x242)],'Emitter':H[y(0x242)],'Tracker':I[dN(0x2bd)],'VideoTracker':J[y(0x242)],'VideoTrackerState':K[y(0x242)],'Core':D[y(0x242)],'Backend':B['default'],'NRInsightsBackend':C[y(0x242)],'version':L[y(0x2b9)]};z['A']=N;})());var v=u['B'],w=u['A'];function x(){const dO=a0b,y=[dO(0x24e),dO(0x1a1),'timeSinceAdRequested',dO(0x357),dO(0x29e),dO(0x253),'enduser.id',dO(0x113),dO(0x31d),dO(0x1fc),dO(0x2bd),dO(0x2c2),dO(0x2b3),dO(0x252),dO(0x114),'newrelic.recordCustomEvent()\x20is\x20not\x20available.',dO(0x14d),dO(0x20c),dO(0x2e0),dO(0x237),dO(0x16d),dO(0x166),'adPlayhead','DOWNLOAD',dO(0x1b7),dO(0x188),'AD_RESUME',dO(0x25b),dO(0x1bc),'getDuration',dO(0x1fe),dO(0x12a),dO(0x26c),'setUserId',dO(0x2d5),dO(0x2f9),dO(0x1fa),dO(0x34b),dO(0x29b),dO(0x310),dO(0x161),dO(0x12b),dO(0x269),'contentDuration',dO(0x241),dO(0x285),dO(0x323),'_createdAt',dO(0x2de),'goHeartbeat','href',dO(0x133),dO(0x2be),dO(0x31b),dO(0x27d),dO(0x108),'userAgent',dO(0x32a),dO(0x217),dO(0x2bc),dO(0x353),dO(0x104),dO(0x2c8),dO(0x2e5),dO(0x21a),dO(0x105),dO(0x2ce),dO(0x1dd),dO(0x1f6),'AD_ERROR',dO(0x2a7),'isPlaying',dO(0x35f),dO(0x244),dO(0x333),dO(0x13d),dO(0x224),dO(0x2e1),dO(0x23f),dO(0x276),dO(0x18b),dO(0x2fa),dO(0x328),dO(0x110),dO(0x1bf),dO(0x13e),dO(0x2a1),dO(0x2db),dO(0x24b),dO(0x33d),'toString',dO(0x2c3),'PLAYER_READY','isInitialBuffering','videoHeight',dO(0x1d2),dO(0x17a),dO(0x22c),dO(0x278),dO(0x1d8),dO(0x312),'pageUrl',dO(0x13f),dO(0x1aa),dO(0x1e5),'trackerName','pre','sendPlayerReady',dO(0x15e),dO(0x12e),dO(0x10b),'setAttributes',dO(0x14e),dO(0x1b2),dO(0x103),dO(0x339),'numberOfAds',dO(0x2c5),dO(0x2b5),dO(0x186),'indexOf',dO(0x2d3),dO(0x130),dO(0x274),dO(0x32c),dO(0x227),dO(0x220),dO(0x1b1),dO(0x322),dO(0x2b6),'stop','json',dO(0x2b8),'_viewCount',dO(0x15c),dO(0x23e),dO(0x29f),'bufferType',dO(0x10c),dO(0x11c),'sendBufferStart',dO(0x2c4),dO(0x14b),dO(0x31a),dO(0x1e1),dO(0x170),dO(0x109),dO(0x139),dO(0x1cd),dO(0x314),'CONTENT_START',dO(0x25a),dO(0x19f),dO(0x1d6),dO(0x159),dO(0x305),dO(0x2e6),'boolean',dO(0x1ab),'customData','heartbeat',dO(0x308),dO(0x196),dO(0x1b9),dO(0x1a2),'Called\x20sendAdClick\x20without\x20{\x20url:\x20xxxxx\x20}.',dO(0x191),'isStarted','getRenditionWidth',dO(0x347),dO(0x1bd),dO(0x197),dO(0x178),dO(0x259),'_viewSession',dO(0x249),'Edge',dO(0x1f7),dO(0x117),dO(0x206),dO(0x30e),'adRenditionName',dO(0x17f),dO(0x32b),'addTracker',dO(0x1e9),dO(0x20a),dO(0x273),dO(0x309),dO(0x1e6),dO(0x324),'instrumentation.version',dO(0x175),dO(0x218),dO(0x164),dO(0x329),dO(0x1a0),dO(0x126),dO(0x26a),dO(0x234),dO(0x24f),dO(0x2fd),dO(0x215),dO(0x34d),dO(0x11d),dO(0x1f5),'Source',dO(0x27e),dO(0x263),dO(0x1d4),dO(0x240),dO(0x20b),dO(0x194),dO(0x116),dO(0x222),dO(0x25f),dO(0x19d),'AD_END',dO(0x221),dO(0x111),dO(0x351),'Sent',dO(0x1ec),dO(0x1a3),'pushEventToInsights',dO(0x2f2),dO(0x1a6),dO(0x2c1),dO(0x2d1),dO(0x2ff),'ERROR',dO(0x2fe),dO(0x154),'player',dO(0x25c),'CONTENT_SEEK_END','getBitrate',dO(0x21f),dO(0x20d),'_trackerReadyChrono','sendEnd',dO(0x2ca),dO(0x10a),dO(0x142),dO(0x2e3),dO(0x231),dO(0x118),dO(0x1f1),dO(0x30c),'getInstrumentationProvider',dO(0x148),dO(0x131),'timeSinceAdSeekBegin',dO(0x225),dO(0x257),dO(0x1f3),dO(0x12d),dO(0x1af),'sendDownload','isRequested',dO(0x11e),'isSeeking','AD_BUFFER_START',dO(0x2a9),dO(0x275),dO(0x1ed),dO(0x325),dO(0x354),dO(0x204),dO(0x127),'muted',dO(0x235),dO(0x1f2),dO(0x2d7),dO(0x183),dO(0x337),dO(0x340),dO(0x238),dO(0x2f7),dO(0x19c),dO(0x360),dO(0x226),dO(0x247),'data',dO(0x1e3),'timeSinceTrackerReady',dO(0x359),dO(0x2a0),dO(0x214),'numberOfErrors',dO(0x16c),dO(0x341),dO(0x15a),dO(0x21b),dO(0x1bb),dO(0x2aa),dO(0x177),dO(0x26b),dO(0x267),dO(0x288),dO(0x155),'timestamp','isMuted',dO(0x290),dO(0x318),dO(0x1f8),dO(0x1a5),dO(0x22b),dO(0x326),dO(0x16b),dO(0x284),dO(0x160),dO(0x187),dO(0x32e),'emit',dO(0x251),dO(0x1c0),dO(0x173),dO(0x34c),'goBufferStart',dO(0x35b),dO(0x202),'ALL',dO(0x317),'sendVideoErrorAction',dO(0x199),dO(0x192),dO(0x1f9),dO(0x13b),dO(0x279),dO(0x29d),dO(0x2a4),dO(0x1c7),'_lastWebkitBitrate',dO(0x336),dO(0x172),dO(0x163),dO(0x281),dO(0x300),dO(0x262),'sendVideoAction',dO(0x1ca),'UNIX',dO(0x153),dO(0x18d),'log',dO(0x2ec),dO(0x345),dO(0x316),dO(0x24d),'sendSeekStart','Windows',dO(0x135),dO(0x272),dO(0x2df),'adDuration',dO(0x209),dO(0x17b),dO(0x2dd),dO(0x106),'sendAdBreakEnd',dO(0x2a6),dO(0x254),'setBackend',dO(0x242),dO(0x1b4),dO(0x28d),dO(0x198),dO(0x1d5),dO(0x355),dO(0x2f5),dO(0x2b0),dO(0x1ef),dO(0x349),dO(0x303),dO(0x245),'_lastRendition',dO(0x2a3),dO(0x1a4),dO(0x203),dO(0x25d),dO(0x2d4),dO(0x1d0),dO(0x1a8),dO(0x1b8),dO(0x27a),dO(0x364),dO(0x2a5),dO(0x18a),dO(0x30f),dO(0x10e),dO(0x1ae),dO(0x1ad),dO(0x321),dO(0x294),dO(0x144),dO(0x25e),'defineProperty','\x20is\x20ready.',dO(0x2b2),dO(0x304),'apply',dO(0x14a),dO(0x28f),'forEach','adjustElapsedTimeForPause',dO(0x2cb),dO(0x29c),dO(0x246),dO(0x327),dO(0x12f),'trackerVersion',dO(0x19b),'getTitle',dO(0x212),dO(0x213)];return(x=function(){return y;})();}}},b={};function c(f){const dP=a0b;var g=b[f];if(void 0x0!==g)return g[dP(0x272)];var h=b[f]={'exports':{}};return a[f](h,h[dP(0x272)],c),h['exports'];}c['d']=(f,g)=>{const dQ=a0b;for(var h in g)c['o'](g,h)&&!c['o'](f,h)&&Object[dQ(0x293)](f,h,{'enumerable':!0x0,'get':g[h]});},c['o']=(f,g)=>Object[dR(0x1f5)][dR(0x30d)][dR(0x317)](f,g),c['r']=f=>{const dS=dR;dS(0x1cd)!=typeof Symbol&&Symbol['toStringTag']&&Object[dS(0x293)](f,Symbol[dS(0x291)],{'value':dS(0x123)}),Object[dS(0x293)](f,dS(0x1f6),{'value':!0x0});};var d={};((()=>{const dT=dR;var f=d;Object[dT(0x293)](f,dT(0x1f6),{'value':!0x0}),f[dT(0x2bd)]=void 0x0;var g,h=(g=c(0x12e))&&g[dT(0x1f6)]?g:{'default':g};f[dT(0x2bd)]=h[dT(0x2bd)];})()),module[dR(0x272)][dR(0x2bf)]=d;})()));function a0b(a,b){const c=a0a();return a0b=function(d,e){d=d-0xfe;let f=c[d];return f;},a0b(a,b);}function a0a(){const dU=['stalled','MID','ima3-skipped','ads-load','_listeners','PRE','snapshot','ads-pod-ended','CONTENT_ERROR','AdErrorEvent','creativeId','Opera','sendRenditionChanged','Tablet','LOG','Microsoft\x20Edge','sendVideoAdAction','adIsMuted','contentRenditionWidth','ended','ads-pause','Called\x20sendAdQuartile\x20without\x20{\x20quartile:\x20xxxxx\x20}.','ACTION_TABLE','VideoCustomAction','onComplete','https://insights-collector.newrelic.com/v1/accounts/','ads-first-quartile','Buffer\x20Type\x20=\x20','getMilliseconds','goAdQuartile','off','24Snfhdd','_attributes','getAttributes','_harvestLocked','SKIPPABLE_STATE_CHANGED','getElementById','reset','quartile','timeSinceLastAd','setIsAd','error','isPaused','pathname','POST','getMinutes','PLAYER_READY','then','viewId','AD_BUFFER_START','Called\x20sendDownload\x20without\x20{\x20state:\x20xxxxx\x20}.','sendCustom','adRenditionWidth','onAdend','notice','adRenditionHeight','sendPause','substring','_lastRendition','onAdskip','contentBitrate','goSeekStart','seeked','adInstance','unregisterListeners','timeSinceSeekEnd','timeSinceBufferBegin','BrightcoveImaAdsTracker','adFps','getInstrumentationVersion','Type','VERSION','ads-midpoint','onSeeking','getBitrate','onPodStart','Cast','onAdrequest','onSeeked','SILENT','customData','adPlayer','undefined','ima','AD_BREAK_READY','_bufferAcc','onPodEnd','isError','vhs_','_userId','getPlayhead','/events','getMessage','_heartbeatInterval','ads','onPlay','getPrimaryCreativeRenditionAsset','Core','_accountId','onEnded','isContentEnd','FreeWheelPlugin','AdPositions','imaAdCuePoints','Mobile','streamBandwidth','_lastTimestamp','resume','attributes','onClick','string','podIndex','getResource','splice','abort','currentAdPlaying','canplay','onStart','timeSincePaused','registerListeners','CONTENT_BUFFER_END','CONTENT_START','prototype','__esModule','AD_BREAK_END','[nrvideo]','seeking','state','currentLevel','stopHeartbeat','generateAttributes','now','bitrate','AD_END','width','_eventType','_hb','21CdRMQq','RESOLUTION','iOS','playlists','POSTROLL','mid','adSrc','goSeekEnd','goPause','getDeltaTime','getCuePoints','active','getName','getAdPodInfo','8qAexBD','darkcyan','contentId','darkred','language','setOptions','timeSinceAdBreakBegin','contentIsLive','Desktop','VideoAction','Event:\x20','onAdload','absoluteTime','calculateBufferType','timeSinceLastDownload','getPlayerVersion','location','timeSinceAdRequested','goAdBreakEnd','adBitrate','isBuffering','timeSinceRequested','onError','timeSinceLoad','getActiveCreativeRendition','trackerInit','8OcUMCS','onFirstQuartile','pre','_lastAdRendition','preload','bufferElapsedTime','contentRenditionBitrate','sendVideoAction','getAdCreativeId','resetChronos','_actionTable','waiting','seek','_viewCount','getUrl','ima3-paused','provider','Constants','timeSinceLastAdQuartile','252MNSXIp','adRenditionBitrate','customTimeSinceAttributes','stringify','getDuration','goStart','goLastAd','sendAdBreakStart','insightsRequestResponse','onAdserror','getLanguage','isStarted','push','apply','_lastBufferType','initial','includeTime','referrer','getTrackerName','goViewCountUp','currentUrl','sendVideoCustomAction','onAdsClick','_trackerReadyChrono','VideoAdAction','onImpression','FETCH','AD_SEEK_START','pop','contentSrc','src','setPlayer','goError','Harvest\x20still\x20locked,\x20abort','MIDPOINT','getPlayrate','goResume','eventType','sendAdBreakEnd','sendEnd','WARNING','Log','545616VJwKwZ','AD_QUARTILE','getTime','bind','bitmovin-ads','LOADED','onTimeupdate','isUsing','ima3-complete','exports','recordCustomEvent','adCdn','adsTracker','setTimeSinceAttribute','getAdData','initialBufferingHappened','isArray','getRenditionShift','onSkipped','code','play','match','contentPlayhead','FIRST_QUARTILE','getPreload','CLICK','onAdstart','playbackRate','getTrackerVersion','ImaAdsTracker','ima3','3078480WjqEgU','debugCommonVideoEvents','pushEventToInsights','emit','ads-ad-started','timeSinceAdStarted','ads-ad-ended','parentTracker','totalAdPlaytime','toStringTag','THIRD_QUARTILE','defineProperty','length','isMuted','onLoaded','AD_ERROR','goHeartbeat','ShakaTech','201787KKUbRn','hidden','harvestHandler','timeSinceLastHeartbeat','TIMER','getSrc','getStateAttributes','adLanguage','onPlaying','getRenditionBitrate','deviceType','origin','getRenditionHeight','webkitVideoDecodedByteCount','STARTED','Mac','contentLanguage','onDownload','message','AD_HEARTBEAT','sendSeekStart','New\x20Relic','totalPlaytime','title','numberOfVideos','random','getInstrumentationProvider','CONTENT_RESUME','version','ima-ads','contentFps','goDownload','ads-play','2hssRUZ','AD_SEEK_END','default','Browser','VideojsTracker','onResume','getCdn','application/json','getViewId','instrumentation.name','isAdBreak','mediaUrl','playing','goRequest','heartbeat','startTime','goBufferEnd','indexOf','getRenditionWidth','contentPreload','documentMode','player','contentPlayrate','vhs','CONTENT_SEEK_START','contentTitle','Push\x20events\x20to\x20Insights\x20=\x20','Error:','disposeAdsTracker','onAdsplay','onPause','includes','customAction','SKIPPED','performance','getPlayerName','post','buildBufferAttributes','timeSinceLastRenditionChange','onAdspause','isFullscreen','AD_RESUME','prefix','addEventListener','isPlaying','goBufferStart','_lastWebkitBitrate','getRemainingTime','adError','down','USER_CLOSE','ads-third-quartile',';\x20contrib-ads:\x20','VideoTracker','adsready','getRenditionName','onThirdQuartile','sendClick','search','getAdsManager','setAttribute','AdEvent','getWebkitBitrate','NOTICE','url','EXPANDED_CHANGED','sendBufferEnd','Levels','isBackgroundEvent','getInstrumentationName','onWaiting','onAbort','cast','loadedmetadata','Safari','getAdId','getSeconds','sendResume','sendAdQuartile','onDispose','onMidpoint','warn','hasOwnProperty','viewSession','slice','contentRenditionName','max','CONTENT_END','levels','CONTENT_PAUSE','name','stopTime','call','loadstart','6143210atULBP','_acc','duration','stats','Chrome','onPaused','FreewheelAdsTracker','MIDROLL','append','getHeartbeat','isPlayerReady','addEventHandler','timeSinceAdBreakStart','timeSinceResumed','exec','actionName','_eventBuffer','sendError','currentTime','DEBUG','adserror','entries','sendDownload','FreewheelAdsCompleted','connection','HlsJsTech','sendHeartbeat','Tracker\x20','PREROLL','adId','CONTENT_BUFFER_START','ACTION_AD_TABLE','getAdQuartile','videojs','brightcove-ima-ads','AD_CAN_PLAY','_isAd','userAgentOS','adstart','coreVersion','start','isInitialBuffering','2800456FFXSsq','assign','level','Source','contentIsAutoplayed','height','AD_PAUSE','indigo','isAd','HEARTBEAT','AD_START','NAME','event','forEach','timeSinceSeekBegin','media','Unknown','adTitle','getDate','VideojsAdsTracker','isAutoplayed','onAdsready','147020OgdjfF','timeupdate','getVideoId','onResumed','onAdEnd','freewheel','44JfDnas','_actionAdTable','videojs-ads','getTitle','videoHeight','goRenditionChange','bandwidth','lastAdData','unknown','stop','ima3-started','ima3error','shift','dispose','playtimeSinceLastEvent','Win','ads-request','contentIsMuted','removeTimeSinceAttribute','debugCommonVideoEvents:\x20No\x20common\x20listener\x20function\x20found\x20for\x20','getAdPosition','AD_CLICK','video','getViewSession','timeSinceAdSeekBegin','sendSeekEnd','isLive','ima3-resumed','startHeartbeat','true','adskip','timeSinceStarted','timeSinceAdPaused','loadeddata','goEnd','color:\x20','freewheel-ads','referrerUrl','videoError','function','muted','onAdStart','In\x20order\x20to\x20use\x20NewRelic\x20Video\x20you\x20will\x20need\x20New\x20Relic\x20Browser\x20Agent.','ads-click','Module','ads-allpods-completed','RESUMED','concat','Linux','OnAdsAllpodsCompleted','removeTracker','send','type','ima3-ready','AD_REQUEST','AD_BREAK_START','CONTENT_RENDITION_CHANGE','getBackend','setAdsTracker','mediainfo','darkorange','getTech','4350987ushWod','userAgent','podInfo','onStarted','offset','sendRequest','catch','base-tracker','_apiKey','sendAdClick','Events','pageUrl','sendStart','videoWidth','currentSrc','34563ogCIKi','getVariantTracks','contentCdn','CONTENT_RESUME_REQUESTED','AD_BUFFER_END','PAUSED','279108GQRcNh','colorful','1993830ZesjHW','debug','Firefox','tech','shakaPlayer','isRequested','2628129HqjrEs','4890540LqmQyX','tag','buffering','getId','ads-playback','COMPLETE','playerName','goPlayerReady','X11','CONTENT_REQUEST','BANDWIDTH','resetFlags','removeEventListener','contentIsFullscreen','Android','isSeeking','timeSinceAdBufferBegin','getAdPartner','ads-pod-started','getTrackers','adend','getMediaUrl','3169476IkUBbi','MSIE','VideoErrorAction','goAdBreakStart','adCreativeId','3052625YqIQyM','adtimeout','CONTENT_HEARTBEAT','ima3-ad-error','adPartner','elapsedTime','IMPRESSION','parse','userAgentName','AD_RENDITION_CHANGE','getFps','18vRhCOL','pause'];a0a=function(){return dU;};return a0a();}
1
+ /*! For license information please see index.js.LICENSE.txt */
2
+ (()=>{"use strict";var e={38:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,r=(s=i(472))&&s.__esModule?s:{default:s};class n extends r.default{static isUsing(e){return!!e.FreeWheelPlugin&&"undefined"!=typeof tv&&tv.freewheel}getTrackerName(){return"freewheel-ads"}getPlayerName(){return"freewheel-ads"}getPlayerVersion(){return this.player.FreeWheelPlugin.VERSION}getPlayhead(){if(this.player.ads.ad.currentTime)return 1e3*this.player.ads.ad.currentTime()}getDuration(){if(this.player.ads.ad.duration)return 1e3*this.player.ads.ad.duration}getVideoId(){return this.player.ads.ad.id}getAdPartner(){return"freewheel"}getAdCreativeId(){try{return this.player.ads.provider.event.adInstance.getActiveCreativeRendition().getId()}catch(e){}}getSrc(){try{return this.player.ads.provider.event.adInstance.getActiveCreativeRendition().getPrimaryCreativeRenditionAsset().getUrl()}catch(e){}}getTitle(){try{return this.player.ads.provider.event.adInstance.getActiveCreativeRendition().getPrimaryCreativeRenditionAsset().getName()}catch(e){}}getAdPosition(){switch(this.player.ads.ad.type){case"PREROLL":return nrvideo.Constants.AdPositions.PRE;case"MIDROLL":return nrvideo.Constants.AdPositions.MID;case"POSTROLL":return nrvideo.Constants.AdPositions.POST}}}t.default=n},64:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(i(555)),r=n(i(472));function n(e){return e&&e.__esModule?e:{default:e}}class a extends r.default{static isUsing(e){return!!e.ima3}getTrackerName(){return"brightcove-ima-ads"}getPlayerName(){return"brightcove-ima-ads"}getPlayhead(){return this.player?.ima3?.adPlayer?.currentTime()}registerListeners(){s.default.Log.debugCommonVideoEvents(this.player,[null,"ima3-ready","ima3error","ima3-ad-error","ima3-started","ima3-complete","ima3-paused","ima3-resumed","ads-request","ads-load","ads-ad-started","ads-ad-ended","ads-pause","ads-play","ads-click","ads-pod-started","ads-pod-ended","ads-allpods-completed"]),this.player.on("ima3-started",this.onStarted.bind(this)),this.player.on("ima3-paused",this.onPaused.bind(this)),this.player.on("ima3-resumed",this.onResume.bind(this)),this.player.on("ima3-complete",this.onComplete.bind(this)),this.player.on("ima3-skipped",this.onSkipped.bind(this)),this.player.on("adserror",this.onError.bind(this)),this.player.on("ads-click",this.onClick.bind(this))}unregisterListeners(){this.player.off("ima3-started",this.onStarted),this.player.off("ima3-paused",this.onPaused),this.player.off("ima3-resumed",this.onResume),this.player.off("ima3-complete",this.onComplete),this.player.off("ima3-skipped",this.onSkipped),this.player.off("adserror",this.onError),this.player.off("ads-click",this.onClick)}onStarted(e){this.sendRequest(),this.sendStart()}onPaused(e){this.sendPause()}onResume(e){this.sendResume()}onComplete(e){this.sendEnd()}onSkipped(e){this.sendEnd({skipped:!0})}onError(e){this.sendError()}onClick(e){this.sendClick()}}t.default=a},257:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class i{constructor(e){this.tech=e.vhs_}getResource(e){return this.tech.url}getRenditionName(e){try{var t=this.tech.levels[this.tech.currentLevel];if(t&&t.name)return t.name}catch(e){}return null}getRenditionBitrate(e){try{var t=this.tech.levels[this.tech.currentLevel];if(t&&t.bitrate)return t.bitrate}catch(e){}return null}getRenditionWidth(e){try{var t=this.tech.levels[this.tech.currentLevel];if(t&&t.width)return t.width}catch(e){}return null}getRenditionHeight(e){try{var t=this.tech.levels[this.tech.currentLevel];if(t&&t.height)return t.height}catch(e){}return null}}t.default=i,i.isUsing=function(e){return!!e.vhs_}},298:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(i(555)),r=n(i(472));function n(e){return e&&e.__esModule?e:{default:e}}class a extends r.default{static isUsing(e){return e.ima&&"undefined"!=typeof google}getTrackerName(){return"ima-ads"}getPlayerName(){return"ima"}getPlayerVersion(){return"ima: "+google.ima.VERSION+"; contrib-ads: "+this.player.ads.VERSION}getCuePoints(){return this.player.ima.getAdsManager().getCuePoints()}getAdPosition(){if(this.lastAdData&&this.lastAdData.podInfo&&void 0!==this.lastAdData.podInfo.podIndex){const e=this.lastAdData.podInfo.podIndex;return 0===e?"pre":-1===e?"post":"mid"}return null}getDuration(){return this.lastAdData&&void 0!==this.lastAdData.duration?1e3*this.lastAdData.duration:null}getVideoId(){return this.lastAdData&&this.lastAdData.adId?this.lastAdData.adId:null}getAdCreativeId(){return this.lastAdData&&this.lastAdData.creativeId?this.lastAdData.creativeId:null}getSrc(){return this.lastAdData&&this.lastAdData.mediaUrl?this.lastAdData.mediaUrl:null}getTitle(){return this.lastAdData&&this.lastAdData.title?this.lastAdData.title:null}getPlayhead(){let e=this.player.ima.getAdsManager();if(e)return 1e3*(this.getDuration()-e.getRemainingTime())}getPlayrate(){return this.player.playbackRate()}getAdPartner(){return"ima"}registerListeners(){let e=google.ima.AdEvent.Type,t=google.ima.AdErrorEvent.Type.AD_ERROR;this.lastAdData=null,s.default.Log.debugCommonVideoEvents(this.player.ima.addEventListener,[null,e.ALL_ADS_COMPLETED,e.LINEAR_CHANGED,e.COMPLETE,e.USER_CLOSE,e.IMPRESSION,e.CONTENT_PAUSE_REQUESTED,e.CONTENT_RESUME_REQUESTED,e.SKIPPED,e.SKIPPABLE_STATE_CHANGED,e.LOADED,e.PAUSED,e.RESUMED,e.STARTED,e.AD_CAN_PLAY,e.AD_METADATA,e.EXPANDED_CHANGED,e.AD_BREAK_READY,e.LOG,e.CLICK,e.FIRST_QUARTILE,e.MIDPOINT,e.THIRD_QUARTILE,t]),this.player.ima.addEventListener(e.LOADED,this.onLoaded.bind(this)),this.player.ima.addEventListener(e.STARTED,this.onStart.bind(this)),this.player.ima.addEventListener(e.PAUSED,this.onPaused.bind(this)),this.player.ima.addEventListener(e.RESUMED,this.onResumed.bind(this)),this.player.ima.addEventListener(e.COMPLETE,this.onComplete.bind(this)),this.player.ima.addEventListener(e.SKIPPED,this.onSkipped.bind(this)),this.player.ima.addEventListener(e.CLICK,this.onClick.bind(this)),this.player.ima.addEventListener(e.FIRST_QUARTILE,this.onFirstQuartile.bind(this)),this.player.ima.addEventListener(e.MIDPOINT,this.onMidpoint.bind(this)),this.player.ima.addEventListener(e.THIRD_QUARTILE,this.onThirdQuartile.bind(this)),this.player.ima.addEventListener(t,this.onError.bind(this))}unregisterListeners(){let e=google.ima.AdEvent.Type,t=google.ima.AdErrorEvent.Type.AD_ERROR;this.player.ima.removeEventListener(e.LOADED,this.onLoaded),this.player.ima.removeEventListener(e.STARTED,this.onLoaded.bind(this)),this.player.ima.removeEventListener(e.IMPRESSION,this.onImpression),this.player.ima.removeEventListener(e.PAUSED,this.onPaused),this.player.ima.removeEventListener(e.RESUMED,this.onResumed),this.player.ima.removeEventListener(e.COMPLETE,this.onComplete),this.player.ima.removeEventListener(e.SKIPPED,this.onSkipped),this.player.ima.removeEventListener(e.CLICK,this.onClick),this.player.ima.removeEventListener(e.FIRST_QUARTILE,this.onFirstQuartile),this.player.ima.removeEventListener(e.MIDPOINT,this.onMidpoint),this.player.ima.removeEventListener(e.THIRD_QUARTILE,this.onThirdQuartile),this.player.ima.removeEventListener(t,this.onError),this.lastAdData=null}onLoaded(e){this.lastAdData=this.getAdData(),this.sendRequest()}onStart(e){this.lastAdData=this.getAdData(),this.sendStart()}onComplete(e){this.sendEnd(),this.lastAdData=null}onSkipped(e){this.sendEnd({skipped:!0}),this.lastAdData=null}onError(e){const t=e.getError(),i=t.getErrorCode(),s=t.getMessage();this.sendError({adError:t,errorCode:i,errorMessage:s})}onClick(e){this.sendAdClick()}onFirstQuartile(){this.sendAdQuartile({adQuartile:1})}onMidpoint(){this.sendAdQuartile({adQuartile:2})}onThirdQuartile(){this.sendAdQuartile({adQuartile:3})}onPaused(){this.sendPause()}onResumed(){this.sendResume()}getAdData(){try{const e=this.player.ima.getAdsManager();if(e){const t=e.getCurrentAd();if(t)return{adId:t.getAdId(),creativeId:t.getCreativeId(),duration:t.getDuration(),mediaUrl:t.getMediaUrl(),title:t.getTitle(),podInfo:t.getAdPodInfo()?.data}}return null}catch(e){return null}}}t.default=a},302:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BrightcoveImaAdsTracker",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"ContribHlsTech",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"FreewheelAdsTracker",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"HlsJsTech",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"ImaAdsTracker",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"ShakaTech",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"VideojsAdsTracker",{enumerable:!0,get:function(){return o.default}}),t.default=void 0;var s=c(i(555)),r=c(i(330)),n=c(i(409)),a=c(i(257)),d=c(i(338)),o=c(i(472)),l=c(i(298)),h=c(i(64)),u=c(i(38));function c(e){return e&&e.__esModule?e:{default:e}}class p extends s.default.VideoTracker{constructor(e,t){super(e,t),this.isContentEnd=!1,this.imaAdCuePoints="",s.default.Core.addTracker(this,t)}getTech(){let e=this.player.tech({IWillNotUseThisInPlugins:!0});if(e){if(n.default.isUsing(e))return new n.default(e);if(a.default.isUsing(e))return new a.default(e);if(d.default.isUsing(e))return new d.default(e)}}getTrackerName(){return"videojs"}getInstrumentationProvider(){return"New Relic"}getInstrumentationName(){return this.getPlayerName()}getInstrumentationVersion(){return this.getPlayerVersion()}getTrackerVersion(){return r.default.version}getPlayhead(){return this.player.ads&&"ads-playback"===this.player.ads.state&&this.player.ads.snapshot&&this.player.ads.snapshot.currentTime?1e3*this.player.ads.snapshot.currentTime:this.player.absoluteTime?1e3*this.player.absoluteTime():1e3*this.player.currentTime()}getDuration(){return this.player.mediainfo&&void 0!==this.player.mediainfo.duration?1e3*this.player.mediainfo.duration:1e3*this.player.duration()}getTitle(){return this.player?.mediainfo?.name}getId(){return this.player?.mediainfo?.id}getLanguage(){return this.player?.language()}getSrc(){let e=this.getTech();return e&&e.getSrc?e.getSrc():this.player.currentSrc()}getPlayerName(){return this.player?.name()||"videojs"}getPlayerVersion(){return this.player?.version}isMuted(){return this.player.muted()}getBitrate(){let e=this.getTech();return e?.tech?.stats?.bandwidth}getRenditionName(){let e=this.getTech();if(e&&e.getRenditionName)return e.getRenditionName()}getRenditionBitrate(){let e=this.getTech();if(e&&e.getRenditionBitrate)return e.getRenditionBitrate()}getRenditionHeight(){let e=this.getTech();return e&&e.getRenditionHeight?e.getRenditionHeight():this.player.videoHeight()}getRenditionWidth(){let e=this.getTech();return e&&e.getRenditionWidth?e.getRenditionWidth():this.player.videoWidth()}getPlayrate(){return this.player.playbackRate()}isAutoplayed(){return this.player.autoplay()}isFullscreen(){return this.player.isFullscreen()}getPreload(){return this.player.preload()}registerListeners(){s.default.Log.debugCommonVideoEvents(this.player,["adstart","adend","adskip","adsready","adserror","dispose"]),this.player.on("loadstart",this.onDownload.bind(this)),this.player.on("loadeddata",this.onDownload.bind(this)),this.player.on("loadedmetadata",this.onDownload.bind(this)),this.player.on("adsready",this.onAdsready.bind(this)),this.player.on("adstart",this.onAdStart.bind(this)),this.player.on("adend",this.onAdEnd.bind(this)),this.player.on("play",this.onPlay.bind(this)),this.player.on("pause",this.onPause.bind(this)),this.player.on("playing",this.onPlaying.bind(this)),this.player.on("abort",this.onAbort.bind(this)),this.player.on("ended",this.onEnded.bind(this)),this.player.on("dispose",this.onDispose.bind(this)),this.player.on("seeking",this.onSeeking.bind(this)),this.player.on("seeked",this.onSeeked.bind(this)),this.player.on("error",this.onError.bind(this)),this.player.on("waiting",this.onWaiting.bind(this)),this.player.on("timeupdate",this.onTimeupdate.bind(this)),this.player.on("ads-allpods-completed",this.OnAdsAllpodsCompleted.bind(this))}unregisterListeners(){this.player.off("loadstart",this.onDownload),this.player.off("loadeddata",this.onDownload),this.player.off("loadedmetadata",this.onDownload),this.player.off("adsready",this.onAdsready),this.player.off("adstart",this.onAdStart),this.player.off("adend",this.onAdEnd),this.player.off("play",this.onPlay),this.player.off("pause",this.onPause),this.player.off("playing",this.onPlaying),this.player.off("abort",this.onAbort),this.player.off("ended",this.onEnded),this.player.off("dispose",this.onDispose),this.player.off("seeking",this.onSeeking),this.player.off("seeked",this.onSeeked),this.player.off("error",this.onError),this.player.off("waiting",this.onWaiting),this.player.off("timeupdate",this.onTimeupdate),this.player.off("ads-allpods-completed",this.OnAdsAllpodsCompleted.bind(this))}onDownload(e){this.sendDownload({state:e.type})}onAdsready(){this.adsTracker||(h.default.isUsing(this.player)?this.setAdsTracker(new h.default(this.player)):l.default.isUsing(this.player)?this.setAdsTracker(new l.default(this.player)):u.default.isUsing(this.player)?this.setAdsTracker(new u.default(this.player)):this.setAdsTracker(new o.default(this.player)))}onAdStart(){this.currentAdPlaying=!0,this.imaAdCuePoints||(this.imaAdCuePoints=this.player?.ima?.getAdsManager().getCuePoints())}onAdEnd(){this.isContentEnd&&this.sendEnd()}OnAdsAllpodsCompleted(){this.onEnded.bind(this),this.FreewheelAdsCompleted=!0}onPlay(){this.sendRequest()}onPause(){this.sendPause()}onPlaying(){this.sendResume(),this.sendBufferEnd()}onAbort(){this.sendEnd()}onEnded(){this.adsTracker?(this.isContentEnd=!0,this.imaAdCuePoints&&!this.imaAdCuePoints.includes(-1)&&this.sendEnd()):this.sendEnd()}onDispose(){this.sendEnd()}onSeeking(){this.sendSeekStart()}onSeeked(){this.sendSeekEnd()}onError(){const e=this.player.error(),t=e.code,i=e.message;this.player.error&&this.player.error()&&this.sendError({errorCode:t,errorMessage:i})}onWaiting(e){this.sendBufferStart()}onTimeupdate(e){this.getPlayhead()>.1&&this.sendStart()}}t.default=p},330:e=>{e.exports=JSON.parse('{"name":"@newrelic/video-videojs","version":"3.2.0-beta-0","description":"New relic tracker for Videojs","main":"dist/cjs/index.js","module":"dist/esm/index.js","scripts":{"build":"webpack --mode production","build:dev":"webpack --mode development","watch":"webpack --mode production --progress --color --watch","watch:dev":"webpack --progress --color --watch --mode development","prezip":"npm run build","zip":"zip -P newrelic -x \'*.DS_Store\' -x \'samples/agent.js\' -r videojs.zip dist samples README.md CHANGELOG.md EULA.md","clean":"rm -rf dist *.zip","deploy":"node scripts/deploy.js","third-party-updates":"oss third-party manifest --includeOptDeps && oss third-party notices --includeOptDeps && git add THIRD_PARTY_NOTICES.md third_party_manifest.json"},"repository":{"type":"git","url":"https://github.com/newrelic/video-videojs-js.git"},"author":"Jordi Aguilar","contributors":["Andreu Santarén Llop"],"license":"Apache-2.0","devDependencies":{"@babel/core":"^7.24.5","@babel/plugin-transform-modules-commonjs":"^7.24.1","@babel/preset-env":"^7.24.5","@newrelic/newrelic-oss-cli":"^0.1.2","aws-sdk":"^2.920.0","babel-loader":"^9.1.3","videojs-ima":"2.1.0","webpack":"^5.91.0","webpack-cli":"^4.9.2"},"files":["THIRD_PARTY_NOTICES.md","dist","src","licesnse","CHANGELOG.md","README.md","!test"],"publishConfig":{"access":"public"},"dependencies":{"@newrelic/video-core":"^3.2.0-beta-1"}}')},338:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class i{constructor(e){this.tech=e.shakaPlayer}getSrc(e){try{return this.tech.getManifestUri()}catch(e){}return null}getRenditionBitrate(e){try{return this.tech.getStats().streamBandwidth}catch(e){}return null}getRenditionWidth(e){try{var t=this.tech.getVariantTracks();for(var i in t){var s=t[i];if(s.active&&"video"===s.type)return s.width}}catch(e){}return null}getRenditionHeight(e){try{var t=this.tech.getVariantTracks();for(var i in t){var s=t[i];if(s.active&&"video"===s.type)return s.height}}catch(e){}return null}}t.default=i,i.isUsing=function(e){return!!e.shakaPlayer}},409:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class i{constructor(e){this.tech=e.vhs}getRenditionName(){try{var e=this.tech.playlists.media();if(e&&e.attributes)return e.attributes.NAME}catch(e){}return null}getRenditionBitrate(){try{var e=this.tech.playlists.media();if(e&&e.attributes)return e.attributes.BANDWIDTH}catch(e){}return null}getRenditionWidth(){try{var e=this.tech.playlists.media();if(e&&e.attributes&&e.attributes.RESOLUTION)return e.attributes.RESOLUTION.width}catch(e){}return null}getRenditionHeight(){try{var e=this.tech.playlists.media();if(e&&e.attributes&&e.attributes.RESOLUTION)return e.attributes.RESOLUTION.height}catch(e){}return null}}t.default=i,i.isUsing=function(e){return!!e.vhs}},472:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(i(555)),r=n(i(330));function n(e){return e&&e.__esModule?e:{default:e}}class a extends s.default.VideoTracker{getTrackerName(){return"videojs-ads"}getTrackerVersion(){return r.default.version}isMuted(){return this.player.muted()}getRenditionHeight(){return null}getRenditionWidth(){return null}getPlayerName(){return"videojs-ads"}getPlayerVersion(){return this.player.ads.VERSION}registerListeners(){s.default.Log.debugCommonVideoEvents(this.player,[null,"ads-request","ads-load","adstart","adend","adskip","adserror","ads-click","ads-pod-started","ads-pod-ended","ads-first-quartile","ads-midpoint","ads-third-quartile","ads-pause","ads-play","adtimeout"]),this.player.on("ads-request",this.onAdrequest.bind(this)),this.player.on("ads-load",this.onAdload.bind(this)),this.player.on("adstart",this.onAdstart.bind(this)),this.player.on("adend",this.onAdend.bind(this)),this.player.on("adskip",this.onAdskip.bind(this)),this.player.on("adserror",this.onAdserror.bind(this)),this.player.on("ads-click",this.onAdsClick.bind(this)),this.player.on("ads-pod-started",this.onPodStart.bind(this)),this.player.on("ads-pod-ended",this.onPodEnd.bind(this)),this.player.on("ads-first-quartile",this.onFirstQuartile.bind(this)),this.player.on("ads-midpoint",this.onMidpoint.bind(this)),this.player.on("ads-third-quartile",this.onThirdQuartile.bind(this)),this.player.on("ads-pause",this.onAdspause.bind(this)),this.player.on("ads-play",this.onAdsplay.bind(this))}unregisterListeners(){this.player.off("ads-request",this.onAdrequest),this.player.off("ads-load",this.onAdload),this.player.off("adstart",this.onAdstart),this.player.off("adend",this.onAdend),this.player.off("adskip",this.onAdskip),this.player.off("adserror",this.onAdserror),this.player.off("ads-click",this.onAdsClick),this.player.off("ads-pod-started",this.onPodStart),this.player.off("ads-pod-ended",this.onPodEnd),this.player.off("ads-first-quartile",this.onFirstQuartile),this.player.off("ads-midpoint",this.onMidpoint),this.player.off("ads-third-quartile",this.onThirdQuartile),this.player.off("ads-pause",this.onAdspause),this.player.off("ads-play",this.onAdsplay)}onAdrequest(e){this.sendRequest(),this.sendDownload({state:"ads-request"})}onAdload(e){this.sendDownload({state:"ads-load"})}onAdstart(e){this.sendRequest(),this.sendStart()}onAdend(e){this.sendEnd()}onAdskip(e){this.sendEnd({skipped:!0})}onAdserror(e){this.sendError()}onAdsClick(e){this.sendAdClick({url:"unknown"})}onPodStart(e){this.sendAdBreakStart()}onPodEnd(e){this.sendAdBreakEnd()}onFirstQuartile(){this.sendAdQuartile({quartile:1})}onMidpoint(){this.sendAdQuartile({quartile:2})}onThirdQuartile(){this.sendAdQuartile({quartile:3})}onAdspause(){this.sendPause()}onAdsplay(){this.sendResume()}}t.default=a},555:(e,t,i)=>{i.r(t),i.d(t,{__esModule:()=>d,default:()=>o});var s={51:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class i{}i.AdPositions={PRE:"pre",MID:"mid",POST:"post"},i.INTERVAL=1e4,i.MAX_EVENTS_PER_BATCH=1e3,i.MAX_PAYLOAD_SIZE=1,i.MAX_BEACON_SIZE=.0625,i.MAX_EVENT_SIZE=.0625,i.VALID_EVENT_TYPES=["VideoAction","VideoAdAction","VideoErrorAction","VideoCustomAction"],i.COLLECTOR={US:"bam-cell.nr-data.net",EU:"bam.eu01.nr-data.net",Stage:"staging-bam-cell.nr-data.net",GOV:"gov-bam.nr-data.net"},t.default=i},144:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class i{static error(...e){s(e,i.Levels.ERROR,"darkred")}static warn(...e){s(e,i.Levels.WARNING,"darkorange")}static notice(...e){s([].slice.call(arguments),i.Levels.NOTICE,"darkcyan")}static debug(...e){s(e,i.Levels.DEBUG,"indigo")}static debugCommonVideoEvents(e,t,s){try{if(i.level<=i.Levels.DEBUG){s=s||function(e){i.debug("Event: "+e.type)};var r=["canplay","buffering","waiting","ended","play","playing","pause","resume","error","abort","seek","seeking","seeked","stalled","dispose","loadeddata","loadstart","loadedmetadata"];t&&(null===t[0]?(t.shift(),r=t):r=r.concat(t));for(var n=0;n<r.length;n++)"function"==typeof e?e.call(window,r[n],s):e.on?e.on(r[n],s):e.addEventListener?e.addEventListener(r[n],s):e.addEventHandler?e.addEventHandler(r[n],s):i.warn("debugCommonVideoEvents: No common listener function found for ",e)}}catch(e){i.warn(e)}}}function s(e,t,s){t=t||i.Levels.NOTICE,s=s||"darkcyan";var a,d,o=i.prefix;i.includeTime&&(o+="["+("0"+(a=new Date).getDate()).slice(-2)+":"+("0"+a.getMinutes()).slice(-2)+":"+("0"+a.getSeconds()).slice(-2)+"."+("00"+a.getMilliseconds()).slice(-3)+"] "),o+=function(e){return n[e]}(t)+":",i.level<=t&&t!==i.Levels.SILENT&&(!i.colorful||"undefined"!=typeof document&&document.documentMode?r(e,o):(d=t===i.Levels.ERROR&&console.error?console.error:t===i.Levels.WARNING&&console.warn?console.warn:t===i.Levels.DEBUG&&console.debug&&null==window.cast?console.debug:console.log,o="%c"+o,e.splice(0,0,o,"color: "+s),d.apply(console,e)))}function r(e,t){if(e instanceof Array)for(var i in e)r(e[i],t);else"string"==typeof e?console.log(t+" "+e):(console.log(t+"↵"),console.log(e))}i.Levels={SILENT:5,ERROR:4,WARNING:3,NOTICE:2,DEBUG:1,ALL:0},i.level=i.Levels.ERROR,i.colorful=!0,i.includeTime=!0,i.prefix="[nrvideo]";const n={4:"e",3:"w",2:"n",1:"d"};!function(){if("undefined"!=typeof window&&window.location&&window.location.search){var e=/\?.*&*nrvideo-debug=(.+)/i.exec(window.location.search);null!==e&&("true"===e[1]?i.level=i.Levels.ALL:i.level=e[1]),null!==/\?.*&*nrvideo-colors=false/i.exec(window.location.search)&&(i.colorful=!1)}}(),t.default=i},302:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=d(i(330)),r=d(i(568)),n=d(i(455)),a=d(i(51));function d(e){return e&&e.__esModule?e:{default:e}}class o extends r.default{constructor(e){super(),this.customData={},this.heartbeat=null,this.parentTracker=null,this._trackerReadyChrono=new n.default,this._trackerReadyChrono.start(),this._actionTable=a.default.ACTION_TABLE,this._actionAdTable=a.default.ACTION_AD_TABLE,e=e||{},this.setOptions(e)}setOptions(e){e&&(e.parentTracker&&(this.parentTracker=e.parentTracker),e.customData&&(this.customData=e.customData),e.heartbeat&&(this.heartbeat=e.heartbeat))}dispose(){this.unregisterListeners()}registerListeners(){}unregisterListeners(){}getHeartbeat(){return this.state._isAd?2e3:this.heartbeat?this.heartbeat:this.parentTracker&&this.parentTracker.heartbeat?this.parentTracker.heartbeat:3e4}startHeartbeat(){this._heartbeatInterval=setInterval(this.sendHeartbeat.bind(this),Math.max(this.getHeartbeat(),2e3))}stopHeartbeat(){this._heartbeatInterval&&clearInterval(this._heartbeatInterval)}sendHeartbeat(e){this.sendVideoAction(o.Events.HEARTBEAT,e)}getAttributes(e,t){(e=e||{}).trackerName=this.getTrackerName(),e.trackerVersion=this.getTrackerVersion(),e.coreVersion=s.default.version,e.timeSinceTrackerReady=this._trackerReadyChrono.getDeltaTime();for(let t in this.customData)e[t]=this.customData[t];return null!=document.hidden&&(e.isBackgroundEvent=document.hidden),e}getTrackerVersion(){return s.default.version}getTrackerName(){return"base-tracker"}sendVideoAction(e,t){this.emit("VideoAction",e,this.getAttributes(t))}sendVideoAdAction(e,t){this.emit("VideoAdAction",e,this.getAttributes(t))}sendVideoErrorAction(e,t){let i=this.isAd()?"adError":"videoError";this.emit("VideoErrorAction",e,this.getAttributes(t,i))}sendVideoCustomAction(e,t){this.emit("VideoCustomAction",e,this.getAttributes(t,"customAction"))}}o.Events={HEARTBEAT:"HEARTBEAT"},t.default=o},324:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NRVideoHarvester=void 0;var s=a(i(51)),r=a(i(330)),n=i(347);function a(e){return e&&e.__esModule?e:{default:e}}const{INTERVAL:d,MAX_EVENTS_PER_BATCH:o,MAX_PAYLOAD_SIZE:l,MAX_BEACON_SIZE:h}=s.default;t.NRVideoHarvester=class{#e=!1;#t;#i=null;constructor(e){this.#t=e,window.addEventListener("pagehide",()=>this.triggerHarvest({isFinalHarvest:!0}))}startTimer(){if(this.#e)return;this.#e=!0;const e=()=>{this.triggerHarvest({}),this.#e&&(this.#i=setTimeout(e,d))};this.#i=setTimeout(e,d)}stopTimer(){this.#e=!1,this.#i&&(clearTimeout(this.#i),this.#i=null)}triggerHarvest(e={}){if(!this.#t.isEmpty())try{const t=this.#t.drain(),i=e.isFinalHarvest?h:l,s=this.chunkEvents(t,i);s.forEach((t,i)=>{const r=i===s.length-1;this.sendChunk(t,e,r)})}catch(e){console.error("Error during harvest:",e)}}chunkEvents(e,t){const i=[];let s=[];for(const r of e)if(s.length>=o&&(i.push(s),s=[]),s.push(r),(0,n.getPayloadSize)({ins:s})>t){const e=s.pop();s.length>0&&i.push(s),s=[e]}return s.length>0&&i.push(s),i}sendChunk(e,t,i){const s=this.#s();if(!s)return void this.#t.postHarvestCleanup({retry:!1,status:0});const r={body:{ins:e}};(0,n.callApi)({url:s,payload:r,options:t},t=>{t.retry&&(t.chunk=e),this.#t.postHarvestCleanup(t)})}#s(){try{if(!window.NRVIDEO||!window.NRVIDEO.info)throw new Error("NRVIDEO info is not available.");const{beacon:e,licenseKey:t,applicationID:i,sa:s}=window.NRVIDEO.info;if(!e||!t||!i)throw new Error("Options object provided by New Relic is not correctly initialized");return`https://${e}/ins/1/${t}?a=${i}&v=${r.default.version}&ref=${window.location.href}&ca=VA`}catch(e){return console.error(e.message),null}}}},328:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(i(455)),r=n(i(144));function n(e){return e&&e.__esModule?e:{default:e}}t.default=class{constructor(){this.reset(),this._createdAt=Date.now(),this._hb=!0,this._acc=0,this._bufferAcc=0}reset(){this._viewSession=null,this._viewCount=0,this._isAd=!1,this.numberOfErrors=0,this.numberOfAds=0,this.numberOfVideos=0,this.totalPlaytime=0,this.totalAdPlaytime=0,this.isAdBreak=!1,this.initialBufferingHappened=!1,this.resetFlags(),this.resetChronos()}resetFlags(){this.isPlayerReady=!1,this.isRequested=!1,this.isStarted=!1,this.isPaused=!1,this.isSeeking=!1,this.isBuffering=!1,this.isPlaying=!1}resetChronos(){this.timeSinceRequested=new s.default,this.timeSinceStarted=new s.default,this.timeSincePaused=new s.default,this.timeSinceSeekBegin=new s.default,this.timeSinceBufferBegin=new s.default,this.timeSinceAdBreakStart=new s.default,this.timeSinceLastDownload=new s.default,this.timeSinceLastHeartbeat=new s.default,this.timeSinceLastRenditionChange=new s.default,this.timeSinceLastAdQuartile=new s.default,this.timeSinceLastAd=new s.default,this.timeSinceResumed=new s.default,this.timeSinceSeekEnd=new s.default,this.playtimeSinceLastEvent=new s.default,this.customTimeSinceAttributes={},this.elapsedTime=new s.default,this.bufferElapsedTime=new s.default}isAd(){return this._isAd}setIsAd(e){this._isAd=e}setTimeSinceAttribute(e){this.customTimeSinceAttributes[e]=new s.default,this.customTimeSinceAttributes[e].start()}removeTimeSinceAttribute(e){delete this.customTimeSinceAttributes[e]}getViewSession(){if(!this._viewSession){let e=(new Date).getTime(),t=Math.random().toString(36).substring(2)+Math.random().toString(36).substring(2);this._viewSession=e+"-"+t}return this._viewSession}getViewId(){return this.getViewSession()+"-"+this._viewCount}getStateAttributes(e){e=e||{},this.isAd()?(this.isRequested&&(e.timeSinceAdRequested=this.timeSinceRequested.getDeltaTime(),e.timeSinceLastAdHeartbeat=this.timeSinceLastHeartbeat.getDeltaTime()),this.isStarted&&(e.timeSinceAdStarted=this.timeSinceStarted.getDeltaTime()),this.isPaused&&(e.timeSinceAdPaused=this.timeSincePaused.getDeltaTime()),this.isBuffering&&(e.timeSinceAdBufferBegin=this.timeSinceBufferBegin.getDeltaTime()),this.isSeeking&&(e.timeSinceAdSeekBegin=this.timeSinceSeekBegin.getDeltaTime()),this.isAdBreak&&(e.timeSinceAdBreakBegin=this.timeSinceAdBreakStart.getDeltaTime()),e.numberOfAds=this.numberOfAds):(this.isRequested&&(e.timeSinceRequested=this.timeSinceRequested.getDeltaTime(),e.timeSinceLastHeartbeat=this.timeSinceLastHeartbeat.getDeltaTime()),this.isStarted&&(e.timeSinceStarted=this.timeSinceStarted.getDeltaTime()),this.isPaused&&(e.timeSincePaused=this.timeSincePaused.getDeltaTime()),this.isBuffering&&(e.timeSinceBufferBegin=this.timeSinceBufferBegin.getDeltaTime()),this.isSeeking&&(e.timeSinceSeekBegin=this.timeSinceSeekBegin.getDeltaTime()),e.timeSinceLastAd=this.timeSinceLastAd.getDeltaTime(),e.numberOfVideos=this.numberOfVideos),e.numberOfErrors=this.numberOfErrors,this.isAd()||(this.playtimeSinceLastEvent.startTime>0?e.playtimeSinceLastEvent=this.playtimeSinceLastEvent.getDeltaTime():e.playtimeSinceLastEvent=0,this.isPlaying?this.playtimeSinceLastEvent.start():this.playtimeSinceLastEvent.reset(),this.totalPlaytime+=e.playtimeSinceLastEvent,e.totalPlaytime=this.totalPlaytime);for(const[t,i]of Object.entries(this.customTimeSinceAttributes))e[t]=i.getDeltaTime();return e}calculateBufferType(e){let t="";return t=e?"initial":this.isSeeking?"seek":this.isPaused?"pause":"connection",r.default.debug("Buffer Type = "+t),t}goViewCountUp(){this._viewCount++}goPlayerReady(){return!this.isPlayerReady&&(this.isPlayerReady=!0,!0)}goRequest(){return!this.isRequested&&(this.isRequested=!0,this.timeSinceLastAd.reset(),this.timeSinceRequested.start(),!0)}goStart(){return!(!this.isRequested||this.isStarted||(this.isAd()?this.numberOfAds++:this.numberOfVideos++,this.isStarted=!0,this.isPlaying=!0,this.timeSinceStarted.start(),this.playtimeSinceLastEvent.start(),0))}goEnd(){return!!this.isRequested&&(this.numberOfErrors=0,this.resetFlags(),this.timeSinceRequested.stop(),this.timeSinceStarted.stop(),this.playtimeSinceLastEvent.stop(),!0)}goPause(){return!(!this.isStarted||this.isPaused||(this.isPaused=!0,this.isPlaying=!1,this.timeSincePaused.start(),this.playtimeSinceLastEvent.stop(),this.timeSinceResumed.reset(),this.isBuffering&&(this._bufferAcc+=this.bufferElapsedTime.getDeltaTime()),this.elapsedTime.start(),0))}goResume(){return!(!this.isStarted||!this.isPaused||(this.isPaused=!1,this.isPlaying=!0,this.timeSincePaused.stop(),this.timeSinceResumed.start(),this._hb?(this._acc=this.elapsedTime.getDeltaTime(),this._hb=!1):(this.isBuffering&&this.bufferElapsedTime.start(),this._acc+=this.elapsedTime.getDeltaTime()),0))}goBufferStart(){return!(!this.isRequested||this.isBuffering||(this.isBuffering=!0,this.isPlaying=!1,this.timeSinceBufferBegin.start(),this.bufferElapsedTime.start(),0))}goBufferEnd(){return!(!this.isRequested||!this.isBuffering||(this.isBuffering=!1,this.isPlaying=!0,this.timeSinceBufferBegin.stop(),this._hb?(this._bufferAcc=this.bufferElapsedTime.getDeltaTime(),this._hb=!1):this._bufferAcc+=this.bufferElapsedTime.getDeltaTime(),0))}goSeekStart(){return!(!this.isStarted||this.isSeeking||(this.isSeeking=!0,this.isPlaying=!1,this.timeSinceSeekBegin.start(),this.timeSinceSeekEnd.reset(),0))}goSeekEnd(){return!(!this.isStarted||!this.isSeeking||(this.isSeeking=!1,this.isPlaying=!0,this.timeSinceSeekBegin.stop(),this.timeSinceSeekEnd.start(),0))}goAdBreakStart(){return!this.isAdBreak&&(this.isAdBreak=!0,this.timeSinceAdBreakStart.start(),!0)}goAdBreakEnd(){return!!this.isAdBreak&&(this.isRequested=!1,this.isAdBreak=!1,this.totalAdPlaytime=this.timeSinceAdBreakStart.getDeltaTime(),this.timeSinceAdBreakStart.stop(),!0)}goDownload(){this.timeSinceLastDownload.start()}goHeartbeat(){this.timeSinceLastHeartbeat.start()}goRenditionChange(){this.timeSinceLastRenditionChange.start()}goAdQuartile(){this.timeSinceLastAdQuartile.start()}goError(){this.isError=!0,this.numberOfErrors++}goLastAd(){this.timeSinceLastAd.start()}}},330:e=>{e.exports=JSON.parse('{"name":"@newrelic/video-core","version":"3.2.0-beta-1","description":"New Relic video tracking core library","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","scripts":{"build":"webpack --mode production","build:dev":"webpack --mode development","watch":"webpack --mode production --progress --color --watch","watch:dev":"webpack --progress --color --watch","clean":"rm -rf dist coverage doc","test":"nyc --reporter=html --reporter=text mocha --require @babel/register","doc":"jsdoc -c jsdoc.json -d documentation","deploy":"node scripts/deploy.js","third-party-updates":"oss third-party manifest --includeOptDeps && oss third-party notices --includeOptDeps && git add THIRD_PARTY_NOTICES.md third_party_manifest.json"},"repository":{"type":"git","url":"https://github.com/newrelic/video-core-js"},"author":"Jordi Aguilar","contributors":["Andreu Santarén Llop"],"license":"Apache-2.0","devDependencies":{"@babel/core":"^7.24.5","@babel/plugin-transform-modules-commonjs":"^7.24.1","@babel/preset-env":"^7.24.5","@babel/register":"^7.24.6","@newrelic/newrelic-oss-cli":"^0.1.2","aws-sdk":"^2.920.0","babel-loader":"^9.1.3","chai":"^4.3.4","diff":"^5.0.0","jsdom":"^25.0.1","mocha":"^10.4.0","nyc":"^15.1.0","sinon":"^2.4.1","webpack":"^5.91.0","webpack-cli":"^4.9.2"},"files":["THIRD_PARTY_NOTICES.md","dist","src","CHANGELOG.md","LICENSE","README.md","!test"],"publishConfig":{"access":"public"}}')},347:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.callApi=function({url:e,payload:t,options:i={}},s){if(!e||!t||!s)return console.error("callApi: Missing required parameters"),void(s&&s({retry:!1,status:0}));let r;try{r=JSON.stringify(t.body)}catch(e){return console.error("callApi: Error serializing payload",e),void s({retry:!1,status:0})}if(i.isFinalHarvest&&navigator.sendBeacon)try{const t=navigator.sendBeacon(e,r);s({retry:!t,status:t?200:0})}catch(e){s({retry:!0,status:0})}else fetch(e,{method:"POST",body:r,headers:{"Content-Type":"application/json"},keepalive:i.isFinalHarvest}).then(e=>{const t=function(e){switch(e){case 408:case 429:case 500:return!0;case 401:case 403:case 404:return!1}return e>=502&&e<=504||e>=512&&e<=530}(e.status);s({retry:t,status:e.status,ok:e.ok})}).catch(()=>{s({retry:!0,status:0})})},t.getPayloadSize=function(e){if(!e||"object"!=typeof e)return 0;try{const t=JSON.stringify(e);return(new TextEncoder).encode(t).length/1048576}catch(e){return console.error("getPayloadSize: Error calculating payload size",e),0}}},399:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,r=(s=i(144))&&s.__esModule?s:{default:s},n=i(449),a=i(418);class d{static addTracker(e,t){(0,a.setAuthConfig)(t.info),e.on&&e.emit?(o.push(e),e.on("*",l),"function"==typeof e.trackerInit&&e.trackerInit()):r.default.error("Tried to load a non-tracker.",e)}static removeTracker(e){e.off("*",l),e.dispose();let t=o.indexOf(e);-1!==t&&o.splice(t,1)}static getTrackers(){return o}static send(e,t,i){i.timeSinceLoad=window.performance.now()/1e3,(0,n.recordEvent)(e,{actionName:t,...i})}static sendError(e){d.send("ERROR",e)}}let o=[];function l(e){let t=function(e){let t={};for(let i in e)null!==e[i]&&void 0!==e[i]&&(t[i]=e[i]);return t}(e.data);r.default.level<=r.default.Levels.DEBUG?r.default.notice("Sent",e.type,t):r.default.notice("Sent",e.type),d.send(e.eventType,e.type,t)}t.default=d},418:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setAuthConfig=function(e){try{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("setAuthConfig: info parameter must be a valid object");if(function(e){if(!e||"object"!=typeof e)return!1;const{licenseKey:t,appName:i,region:s,applicationID:r,beacon:n}=e;return!!(t&&"string"==typeof t&&0!==t.trim().length&&(r?n&&"string"==typeof n&&n.trim().length>0:i&&"string"==typeof i&&i.trim().length>0&&s&&"string"==typeof s&&s.trim().length>0))}(e)){const{licenseKey:t,appName:i,region:s,beacon:r,sa:a,applicationID:d}=e;window.NRVIDEO=window.NRVIDEO||{};let o=r;if(!o&&s){if(!n[s])throw new Error(`setAuthConfig: Invalid region '${s}'. Valid regions: ${Object.keys(n).join(", ")}`);o=n[s]}return window.NRVIDEO.info={beacon:o,licenseKey:t,applicationID:d||null,appName:i||null,sa:a||0},!0}{const t=function(e){if(!e||"object"!=typeof e)return"info parameter must be a valid object";const{licenseKey:t,appName:i,region:s,applicationID:r,beacon:n}=e;if(!t||"string"!=typeof t||0===t.trim().length)return"licenseKey is required and must be a non-empty string";if(r){if(!n||"string"!=typeof n||0===n.trim().length)return"beacon URL is required when using applicationID"}else{if(!i||"string"!=typeof i||0===i.trim().length)return"appName is required when not using applicationID";if(!s||"string"!=typeof s||0===s.trim().length)return"region is required when not using applicationID"}return"configuration validation failed"}(e);throw new Error(`setAuthConfig: ${t}`)}}catch(e){return console.error("setAuthConfig:",e.message),!1}};var s,r=(s=i(51))&&s.__esModule?s:{default:s};const{COLLECTOR:n}=r.default},431:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NRVideoEventAggregator=void 0;var s,r=i(347),n=(s=i(51))&&s.__esModule?s:{default:s};const{MAX_EVENTS_PER_BATCH:a,MAX_PAYLOAD_SIZE:d}=n.default;t.NRVideoEventAggregator=class{#r=[];#n=[];isEmpty(){return 0===this.#r.length&&0===this.#n.length}drain(){const e=[...this.#n,...this.#r];return this.#r=[],this.#n=[],e}add(e){this.#r.push(e)}postHarvestCleanup(e){if(e.retry&&e.chunk?.length){for(;this.#n.length>0&&((0,r.getPayloadSize)(this.#n)+(0,r.getPayloadSize)(e.chunk)>d||this.#n.length+e.chunk.length>a);)this.#n.shift();this.#n.push(...e.chunk)}else this.#n=[]}}},449:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.recordEvent=function(e,t={}){if("string"!=typeof e||0===e.length||!d.includes(e))return console.warn("recordEvent: Invalid eventType provided:",e),!1;if(null!==t&&("object"!=typeof t||Array.isArray(t)))return console.warn("recordEvent: attributes must be a plain object"),!1;if(t=t||{},!window.NRVIDEO||!window.NRVIDEO.info)return console.error("recordEvent: NRVIDEO not properly initialized"),!1;try{const{appName:i}=window.NRVIDEO.info,s={...t,eventType:e,appName:i,timestamp:Date.now()},a=(0,n.getPayloadSize)(s);return a>o?(console.warn(`recordEvent: Event size (${a} bytes) exceeds maximum (${o} bytes)`),!1):(r.customEventAggregator.add(s),!0)}catch(e){return console.error("recordEvent: Error recording event:",e),!1}};var s,r=i(487),n=i(347),a=(s=i(51))&&s.__esModule?s:{default:s};const{VALID_EVENT_TYPES:d,MAX_EVENT_SIZE:o}=a.default},455:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class i{constructor(){this.reset()}reset(){this.startTime=0,this.stopTime=0,this.offset=0}getDeltaTime(){return this.startTime?this.offset+((new Date).getTime()-this.startTime):null}start(){this.startTime=(new Date).getTime(),this.stopTime=0}stop(){return this.stopTime=(new Date).getTime(),this.getDeltaTime()}clone(){var e=new i;return e.startTime=this.startTime,e.stopTime=this.stopTime,e.offset=this.offset,e}}t.default=i},487:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.customEventAggregator=void 0;var s=i(431),r=i(324);const n=t.customEventAggregator=new s.NRVideoEventAggregator;new r.NRVideoHarvester(n).startTimer()},568:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{on(e,t){if(this._listeners=this._listeners||{},"function"==typeof t)return this._listeners[e]=this._listeners[e]||[],this._listeners[e].push(t),this}off(e,t){if(this._listeners=this._listeners||{},this._listeners[e]){var i=this._listeners[e].indexOf(t);-1!==i&&this._listeners[e].splice(i,1)}return this}emit(e,t,i){return this._listeners=this._listeners||{},i=i||{},Array.isArray(this._listeners[t])&&this._listeners[t].forEach(s=>{s.call(this,{eventType:e,type:t,data:i,target:this})}),Array.isArray(this._listeners["*"])&&this._listeners["*"].forEach(s=>{s.call(this,{eventType:e,type:t,data:i,target:this})}),this}}},793:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=d(i(144)),r=d(i(302)),n=d(i(328)),a=d(i(330));function d(e){return e&&e.__esModule?e:{default:e}}class o extends r.default{constructor(e,t){super(),this.state=new n.default,this.adsTracker=null,this._lastBufferType=null,this._userId=null,t=t||{},this.setOptions(t),e&&this.setPlayer(e,t.tag),s.default.notice("Tracker "+this.getTrackerName()+" v"+this.getTrackerVersion()+" is ready.")}setUserId(e){this._userId=e}setOptions(e){e&&(e.adsTracker&&this.setAdsTracker(e.adsTracker),"boolean"==typeof e.isAd&&this.setIsAd(e.isAd),r.default.prototype.setOptions.apply(this,arguments))}setPlayer(e,t){(this.player||this.tag)&&this.dispose(),"undefined"!=typeof document&&document.getElementById&&("string"==typeof e&&(e=document.getElementById(e)),"string"==typeof t&&(t=document.getElementById(t))),t=t||e,this.player=e,this.tag=t,this.registerListeners()}isAd(){return this.state.isAd()}setIsAd(e){this.state.setIsAd(e)}setAdsTracker(e){this.disposeAdsTracker(),e&&(this.adsTracker=e,this.adsTracker.setIsAd(!0),this.adsTracker.parentTracker=this,this.adsTracker.on("*",l.bind(this)))}disposeAdsTracker(){this.adsTracker&&(this.adsTracker.off("*",l),this.adsTracker.dispose())}dispose(){this.stopHeartbeat(),this.disposeAdsTracker(),this.unregisterListeners(),this.player=null,this.tag=null}registerListeners(){}unregisterListeners(){}getViewId(){return this.parentTracker?this.parentTracker.getViewId():this.state.getViewId()}getViewSession(){return this.parentTracker?this.parentTracker.getViewSession():this.state.getViewSession()}getVideoId(){return null}getTitle(){return null}isLive(){return null}getBitrate(){return null}getWebkitBitrate(){if(this.tag&&this.tag.webkitVideoDecodedByteCount){let e;if(this._lastWebkitBitrate){e=this.tag.webkitVideoDecodedByteCount;let t=e-this._lastWebkitBitrate,i=this.getHeartbeat()/1e3;e=Math.round(t/i*8)}return this._lastWebkitBitrate=this.tag.webkitVideoDecodedByteCount,e||null}}getRenditionName(){return null}getRenditionBitrate(){return null}getRenditionShift(e){let t,i=this.getRenditionBitrate();return this.isAd()?(t=this._lastAdRendition,e&&(this._lastAdRendition=i)):(t=this._lastRendition,e&&(this._lastRendition=i)),i&&t?i>t?"up":i<t?"down":null:null}getRenditionHeight(){return this.tag?this.tag.videoHeight:null}getRenditionWidth(){return this.tag?this.tag.videoWidth:null}getDuration(){return this.tag?this.tag.duration:null}getPlayhead(){return this.tag?this.tag.currentTime:null}getLanguage(){return null}getSrc(){return this.tag?this.tag.currentSrc:null}getPlayrate(){return this.tag?this.tag.playbackRate:null}isMuted(){return this.tag?this.tag.muted:null}isFullscreen(){return null}getCdn(){return null}getPlayerName(){return this.getTrackerName()}getPlayerVersion(){return a.default.version}getFps(){return null}isAutoplayed(){return this.tag?this.tag.autoplay:null}getPreload(){return this.tag?this.tag.preload:null}getAdQuartile(){return null}getAdPosition(){return this.parentTracker?this.parentTracker.state.isStarted?"mid":"pre":null}getAdPartner(){return null}getAdCreativeId(){return null}getInstrumentationProvider(){return null}getInstrumentationName(){return null}getInstrumentationVersion(){return null}getAttributes(e,t){if(void 0===(e=r.default.prototype.getAttributes.apply(this,arguments)).isAd&&(e.isAd=this.isAd()),e.viewSession=this.getViewSession(),e.viewId=this.getViewId(),e.playerName=this.getPlayerName(),e.playerVersion=this.getPlayerVersion(),e["instrumentation.provider"]=this.getInstrumentationProvider(),e["instrumentation.name"]=this.getInstrumentationName(),e["instrumentation.version"]=this.getInstrumentationVersion(),e["enduser.id"]=this._userId,e.src="Browser","customAction"===t)return e;try{e.pageUrl=window.location.href}catch(e){}this.isAd()?(e.adId=this.getVideoId(),e.adTitle=this.getTitle(),e.adSrc=this.getSrc(),e.adCdn=this.getCdn(),e.adBitrate=this.getBitrate()||this.getWebkitBitrate()||this.getRenditionBitrate(),e.adRenditionName=this.getRenditionName(),e.adRenditionBitrate=this.getRenditionBitrate(),e.adRenditionHeight=this.getRenditionHeight(),e.adRenditionWidth=this.getRenditionWidth(),e.adDuration=this.getDuration(),e.adPlayhead=this.getPlayhead(),e.adLanguage=this.getLanguage(),e.adIsMuted=this.isMuted(),e.adFps=this.getFps(),e.adPosition=this.getAdPosition(),e.adCreativeId=this.getAdCreativeId(),e.adPartner=this.getAdPartner()):(e.contentId=this.getVideoId(),e.contentTitle=this.getTitle(),e.contentSrc=this.getSrc(),e.contentCdn=this.getCdn(),e.contentPlayhead=this.getPlayhead(),e.contentIsLive=this.isLive(),e.contentBitrate=this.getBitrate()||this.getWebkitBitrate()||this.getRenditionBitrate(),e.contentRenditionName=this.getRenditionName(),e.contentRenditionBitrate=this.getRenditionBitrate(),e.contentRenditionHeight=this.getRenditionHeight(),e.contentRenditionWidth=this.getRenditionWidth(),e.contentDuration=this.getDuration(),e.contentLanguage=this.getLanguage(),e.contentPlayrate=this.getPlayrate(),e.contentIsFullscreen=this.isFullscreen(),e.contentIsMuted=this.isMuted(),e.contentIsAutoplayed=this.isAutoplayed(),e.contentPreload=this.getPreload(),e.contentFps=this.getFps(),null!=this.adsTracker&&this.adsTracker.state.totalAdPlaytime>0&&(e.totalAdPlaytime=this.adsTracker.state.totalAdPlaytime)),this.state.getStateAttributes(e);for(let t in this.customData)e[t]=this.customData[t];return e}sendCustom(e,t,i){i=i||{},this.sendVideoCustomAction(e,i),this.state.setTimeSinceAttribute(t)}sendPlayerReady(e){this.state.goPlayerReady()&&(e=e||{},this.sendVideoAction(o.Events.PLAYER_READY,e))}sendRequest(e){if(this.state.goRequest()){let t;this.isAd()?(t=o.Events.AD_REQUEST,this.sendVideoAdAction(t,e)):(t=o.Events.CONTENT_REQUEST,this.sendVideoAction(t,e))}}sendStart(e){if(this.state.goStart()){let t;this.isAd()?(t=o.Events.AD_START,this.parentTracker&&(this.parentTracker.state.isPlaying=!1),this.sendVideoAdAction(t,e)):(t=o.Events.CONTENT_START,this.sendVideoAction(t,e)),this.startHeartbeat(),this.state.goHeartbeat()}}sendEnd(e){if(this.state.goEnd()){let t;e=e||{},this.isAd()?(t=o.Events.AD_END,e.timeSinceAdRequested=this.state.timeSinceRequested.getDeltaTime(),e.timeSinceAdStarted=this.state.timeSinceStarted.getDeltaTime(),this.parentTracker&&(this.parentTracker.state.isPlaying=!0)):(t=o.Events.CONTENT_END,e.timeSinceRequested=this.state.timeSinceRequested.getDeltaTime(),e.timeSinceStarted=this.state.timeSinceStarted.getDeltaTime()),this.stopHeartbeat(),this.isAd()?this.sendVideoAdAction(t,e):this.sendVideoAction(t,e),this.parentTracker&&this.isAd()&&this.parentTracker.state.goLastAd(),this.state.goViewCountUp(),this.state.totalPlaytime=0}}sendPause(e){if(this.state.goPause()){let t=this.isAd()?o.Events.AD_PAUSE:o.Events.CONTENT_PAUSE;this.isAd()?this.sendVideoAdAction(t,e):this.sendVideoAction(t,e)}}sendResume(e){if(this.state.goResume()){let t;e=e||{},this.isAd()?(t=o.Events.AD_RESUME,e.timeSinceAdPaused=this.state.timeSincePaused.getDeltaTime()):(t=o.Events.CONTENT_RESUME,e.timeSincePaused=this.state.timeSincePaused.getDeltaTime()),this.isAd()?this.sendVideoAdAction(t,e):this.sendVideoAction(t,e)}}sendBufferStart(e){if(this.state.goBufferStart()){let t;e=e||{},t=this.isAd()?o.Events.AD_BUFFER_START:o.Events.CONTENT_BUFFER_START,e=this.buildBufferAttributes(e),this._lastBufferType=e.bufferType,this.isAd()?this.sendVideoAdAction(t,e):this.sendVideoAction(t,e)}}sendBufferEnd(e){if(this.state.goBufferEnd()){let t;e=e||{},this.isAd()?(t=o.Events.AD_BUFFER_END,e.timeSinceAdBufferBegin=this.state.timeSinceBufferBegin.getDeltaTime()):(t=o.Events.CONTENT_BUFFER_END,e.timeSinceBufferBegin=this.state.timeSinceBufferBegin.getDeltaTime()),e=this.buildBufferAttributes(e),null!=this._lastBufferType&&(e.bufferType=this._lastBufferType),this.isAd()?this.sendVideoAdAction(t,e):this.sendVideoAction(t,e),this.state.initialBufferingHappened=!0}}buildBufferAttributes(e){return null==e.timeSinceStarted||e.timeSinceStarted<100?e.isInitialBuffering=!this.state.initialBufferingHappened:e.isInitialBuffering=!1,e.bufferType=this.state.calculateBufferType(e.isInitialBuffering),e.timeSinceResumed=this.state.timeSinceResumed.getDeltaTime(),e.timeSinceSeekEnd=this.state.timeSinceSeekEnd.getDeltaTime(),e}sendSeekStart(e){if(this.state.goSeekStart()){let t;t=this.isAd()?o.Events.AD_SEEK_START:o.Events.CONTENT_SEEK_START,this.isAd()?this.sendVideoAdAction(t,e):this.sendVideoAction(t,e)}}sendSeekEnd(e){if(this.state.goSeekEnd()){let t;e=e||{},this.isAd()?(t=o.Events.AD_SEEK_END,e.timeSinceAdSeekBegin=this.state.timeSinceSeekBegin.getDeltaTime()):(t=o.Events.CONTENT_SEEK_END,e.timeSinceSeekBegin=this.state.timeSinceSeekBegin.getDeltaTime()),this.isAd()?this.sendVideoAdAction(t,e):this.sendVideoAction(t,e)}}sendDownload(e){(e=e||{}).state||s.default.warn("Called sendDownload without { state: xxxxx }."),this.sendVideoAction(o.Events.DOWNLOAD,e),this.state.goDownload()}sendError(e){(e=e||{}).isAd=this.isAd(),this.state.goError();let t=this.isAd()?o.Events.AD_ERROR:o.Events.CONTENT_ERROR;this.sendVideoErrorAction(t,e)}sendRenditionChanged(e){let t;(e=e||{}).timeSinceLastRenditionChange=this.state.timeSinceLastRenditionChange.getDeltaTime(),e.shift=this.getRenditionShift(!0),t=this.isAd()?o.Events.AD_RENDITION_CHANGE:o.Events.CONTENT_RENDITION_CHANGE,this.isAd()?this.sendVideoAdAction(t,e):this.sendVideoAction(t,e),this.state.goRenditionChange()}sendHeartbeat(e){if(this.state.isRequested){let t,i=this.getHeartbeat();this.state._hb=!0,i=this.adjustElapsedTimeForPause(i),this.isAd()?(t=o.Events.AD_HEARTBEAT,"bitmovin-ads"===this.getPlayerName()?this.sendVideoAdAction(t,e):this.sendVideoAdAction(t,{elapsedTime:i,...e})):(t=o.Events.CONTENT_HEARTBEAT,this.sendVideoAction(t,{elapsedTime:i,...e})),this.state.goHeartbeat()}}adjustElapsedTimeForPause(e){return this.state._acc&&(e-=this.state._acc,this.state._acc=0),this.state.isPaused&&((e-=this.state.elapsedTime.getDeltaTime())<10&&(e=0),this.state.elapsedTime.start()),this.state._bufferAcc?(e-=this.state._bufferAcc,this.state._bufferAcc=0):this.state.isBuffering&&((e-=this.state.bufferElapsedTime.getDeltaTime())<5&&(e=0),this.state.bufferElapsedTime.start()),Math.max(0,e)}sendAdBreakStart(e){this.isAd()&&this.state.goAdBreakStart()&&(this.state.totalAdPlaytime=0,this.parentTracker&&(this.parentTracker.state.isPlaying=!1),this.sendVideoAdAction(o.Events.AD_BREAK_START,e))}sendAdBreakEnd(e){this.isAd()&&this.state.goAdBreakEnd()&&((e=e||{}).timeSinceAdBreakBegin=this.state.timeSinceAdBreakStart.getDeltaTime(),this.sendVideoAdAction(o.Events.AD_BREAK_END,e),this.parentTracker&&(this.parentTracker.state.isPlaying=!0),this.stopHeartbeat(),this.parentTracker&&this.isAd()&&this.parentTracker.state.goLastAd())}sendAdQuartile(e){this.isAd()&&((e=e||{}).quartile||s.default.warn("Called sendAdQuartile without { quartile: xxxxx }."),e.timeSinceLastAdQuartile=this.state.timeSinceLastAdQuartile.getDeltaTime(),this.sendVideoAdAction(o.Events.AD_QUARTILE,e),this.state.goAdQuartile())}sendAdClick(e){this.isAd()&&((e=e||{}).url||s.default.warn("Called sendAdClick without { url: xxxxx }."),this.sendVideoAdAction(o.Events.AD_CLICK,e))}}function l(e){e.type!==o.Events.AD_ERROR?this.sendVideoAdAction(e.type,e.data):this.sendVideoErrorAction(e.type,e.data)}o.Events={PLAYER_READY:"PLAYER_READY",DOWNLOAD:"DOWNLOAD",ERROR:"ERROR",CONTENT_REQUEST:"CONTENT_REQUEST",CONTENT_START:"CONTENT_START",CONTENT_END:"CONTENT_END",CONTENT_PAUSE:"CONTENT_PAUSE",CONTENT_RESUME:"CONTENT_RESUME",CONTENT_SEEK_START:"CONTENT_SEEK_START",CONTENT_SEEK_END:"CONTENT_SEEK_END",CONTENT_BUFFER_START:"CONTENT_BUFFER_START",CONTENT_BUFFER_END:"CONTENT_BUFFER_END",CONTENT_HEARTBEAT:"CONTENT_HEARTBEAT",CONTENT_RENDITION_CHANGE:"CONTENT_RENDITION_CHANGE",CONTENT_ERROR:"CONTENT_ERROR",AD_REQUEST:"AD_REQUEST",AD_START:"AD_START",AD_END:"AD_END",AD_PAUSE:"AD_PAUSE",AD_RESUME:"AD_RESUME",AD_SEEK_START:"AD_SEEK_START",AD_SEEK_END:"AD_SEEK_END",AD_BUFFER_START:"AD_BUFFER_START",AD_BUFFER_END:"AD_BUFFER_END",AD_HEARTBEAT:"AD_HEARTBEAT",AD_RENDITION_CHANGE:"AD_RENDITION_CHANGE",AD_ERROR:"AD_ERROR",AD_BREAK_START:"AD_BREAK_START",AD_BREAK_END:"AD_BREAK_END",AD_QUARTILE:"AD_QUARTILE",AD_CLICK:"AD_CLICK"},t.default=o}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return s[e](i,i.exports,n),i.exports}var a={};(()=>{var e=a;Object.defineProperty(e,"B",{value:!0}),e.A=void 0;var t=c(n(399)),i=c(n(51)),s=c(n(455)),r=c(n(144)),d=c(n(568)),o=c(n(302)),l=c(n(793)),h=c(n(328)),u=n(330);function c(e){return e&&e.__esModule?e:{default:e}}const p={Constants:i.default,Chrono:s.default,Log:r.default,Emitter:d.default,Tracker:o.default,VideoTracker:l.default,VideoTrackerState:h.default,Core:t.default,version:u.version};e.A=p})();const d=a.B,o=a.A}},t={};function i(s){var r=t[s];if(void 0!==r)return r.exports;var n=t[s]={exports:{}};return e[s](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var s in t)i.o(t,s)&&!i.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};(()=>{var e=s;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,r=(t=i(302))&&t.__esModule?t:{default:t};e.default=r.default})(),module.exports.VideojsTracker=s})();
3
+ //# sourceMappingURL=index.js.map
@@ -1,6 +1,8 @@
1
1
  /*!
2
- * @license MIT
3
- * @newrelic/video-videojs 3.0.2
2
+ * @license Apache-2.0
3
+ * @newrelic/video-videojs 3.2.0-beta-0
4
4
  * Copyright New Relic <http://newrelic.com/>
5
5
  * @author Jordi Aguilar
6
6
  */
7
+
8
+ /*! For license information please see index.js.LICENSE.txt */