!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7f562265-4fde-4cc7-a7d4-1cd4436dbb61",e._sentryDebugIdIdentifier="sentry-dbid-7f562265-4fde-4cc7-a7d4-1cd4436dbb61")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"cnet-neutron@cnet.prod.254f83"},(window.webpackJsonp=window.webpackJsonp||[]).push([[326],{1670:function(e,t,o){var content=o(2343);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(248).default)("398f5216",content,!0,{sourceMap:!1})},2340:function(e,t,o){var d=o(2341);o(22),o(18),o(26);var n,l={},r=!1;function c(t,o,d,n,r,c){return null==l[t]&&(l[t]={target:null,lastEvent:{},timeWatched:0,eventTypes:d,interval:null,percentWatched:0,lastVol:0,muted:!1,inView:!1,autostart:r,isFullscreen:!1,placement:n,adsEnabled:c}),o?new YT.Player("iframe-".concat(t),{playerVars:{listType:"playlist",list:t,rel:0},host:"https://www.youtube.com",events:{onReady:v,onStateChange:m}}):new YT.Player("iframe-".concat(t),{videoId:t,playerVars:{modestbranding:1,rel:0},host:"https://www.youtube.com",events:{onReady:v,onStateChange:m}}),["","webkit","moz","ms"].forEach((e=>document.addEventListener(e+"fullscreenchange",(function(){null===document.fullscreenElement?l[t].isFullscreen=!1:document.fullscreenElement.id.includes(t)&&(l[t].isFullscreen=!l[t].isFullscreen)}),!1))),window.onscroll=function(){for(var t in l)if(l[t].target){var o=document.getElementById("iframe-".concat(t)),d=o.getBoundingClientRect();d.top-d.height<=0&&d.top+d.height>0&&!1===l[t].inView?(l[t].inView=!0,o.dispatchEvent(new CustomEvent("stateChange-".concat(t),{detail:{payload:{"@type":"core.videoViewed.v1",videoContext:e.exports.getVideoContext(l[t].target)}}}))):(d.top+d.height<=0||d.top-d.height>0)&&!0===l[t].inView&&(l[t].inView=!1)}},document.getElementById("iframe-".concat(t))}function v(t){var o,d,n,r=null!==(o=t.target)&&void 0!==o&&o.getPlaylistId()?null===(d=t.target)||void 0===d?void 0:d.getPlaylistId():null===(n=t.target)||void 0===n||null===(n=n.getVideoData())||void 0===n?void 0:n.video_id,c=document.getElementById("iframe-".concat(r));l[r].target=t.target,l[r].autostart&&t.target.playVideo(),c.dispatchEvent(new CustomEvent("stateChange-".concat(r),{detail:{payload:{"@type":"core.videoLoaded.v1",videoContext:e.exports.getVideoContext(t.target)}}}))}function m(t){null===(o=t.target.playerInfo)||void 0===o||o.currentTime;var o,d,n,r,c,v,m=null!==(d=t.target)&&void 0!==d&&d.getPlaylistId()?null===(n=t.target)||void 0===n?void 0:n.getPlaylistId():null===(r=t.target)||void 0===r||null===(r=r.getVideoData())||void 0===r?void 0:r.video_id,y=document.getElementById("iframe-".concat(m)),h=l[m].eventTypes,C=l[m].lastEvent;if(1!==t.data&&null!==l[m].interval&&clearInterval(l[m].interval),0===t.data&&h.includes("completed"))c="videoCompleted";else if(1===t.data){var f,x;l[m].lastVol=null===(f=t.target.playerInfo)||void 0===f?void 0:f.volume,l[m].muted=t.target.isMuted(),l[m].interval=setInterval((function(){!function(t,o){var d,n=document.getElementById("iframe-".concat(o));if(l[o].eventTypes.includes("watched")){var r,c;l[o].timeWatched+=1;var v=null===(r=t.target.playerInfo)||void 0===r?void 0:r.duration,m=null===(c=t.target.playerInfo)||void 0===c?void 0:c.currentTime;m>=v-3&&l[o].percentWatched<100?(n.dispatchEvent(new CustomEvent("stateChange-".concat(o),{detail:{payload:{"@type":"core.videoWatched.v1",videoContext:e.exports.getVideoContext(t.target),videoWatched:100,videoWatchedTime:Math.floor(l[o].timeWatched)}}})),l[o].percentWatched=100):m>=v*(3/4)&&l[o].percentWatched<75?(n.dispatchEvent(new CustomEvent("stateChange-".concat(o),{detail:{payload:{"@type":"core.videoWatched.v1",videoContext:e.exports.getVideoContext(t.target),videoWatched:75,videoWatchedTime:Math.floor(l[o].timeWatched)}}})),l[o].percentWatched=75):m>=v/2&&l[o].percentWatched<50?(n.dispatchEvent(new CustomEvent("stateChange-".concat(o),{detail:{payload:{"@type":"core.videoWatched.v1",videoContext:e.exports.getVideoContext(t.target),videoWatched:50,videoWatchedTime:Math.floor(l[o].timeWatched)}}})),l[o].percentWatched=50):m>=v/4&&l[o].percentWatched<25&&(n.dispatchEvent(new CustomEvent("stateChange-".concat(o),{detail:{payload:{"@type":"core.videoWatched.v1",videoContext:e.exports.getVideoContext(t.target),videoWatched:25,videoWatchedTime:Math.floor(l[o].timeWatched)}}})),l[o].percentWatched=25)}if(l[o].eventTypes.includes("volume")&&(l[o].muted!==t.target.isMuted()||l[o].lastVol!==(null===(d=t.target.playerInfo)||void 0===d?void 0:d.volume))){var y;n.dispatchEvent(new CustomEvent("stateChange-".concat(o),{detail:{payload:{"@type":"core.videoVolumeChanged.v1",videoContext:e.exports.getVideoContext(t.target),videoMuted:t.target.isMuted()}}})),l[o].lastVol=null===(y=t.target.playerInfo)||void 0===y?void 0:y.volume,l[o].muted=t.target.isMuted()}}(t,m)}),1e3),"videoSeekStarted"===C.type||(null===(x=t.target.playerInfo)||void 0===x?void 0:x.currentTime)-C.videoTime>1&&h.includes("seek")?(l[m].timeWatched-C.videoTime>0&&(l[m].timeWatched=l[m].timeWatched-(l[m].timeWatched-C.videoTime)),c="videoSeekCompleted"):h.includes("playing")&&(c="notStarted"===l[m].lastEvent.type?"videoStarted":"videoPlayed")}else if(2===t.data){var P;0!=C.eventTime&&Math.abs(.001*(Date.now()-C.eventTime)-((null===(P=t.target.playerInfo)||void 0===P?void 0:P.currentTime)-C.videoTime))<2&&h.includes("paused")?c="videoPaused":h.includes("seek")&&(c="videoSeekStarted")}else if(3===t.data)"notStarted"!==C.type&&"videoSeekStarted"!==C.type&&(c="videoInterrupted");else if(-1===t.data){var V;l[m].lastEvent={type:"notStarted",eventTime:Date.now(),videoTime:null===(V=t.target.playerInfo)||void 0===V?void 0:V.currentTime}}void 0!==c&&(l[m].lastEvent={type:c,eventTime:Date.now(),videoTime:null===(v=t.target.playerInfo)||void 0===v?void 0:v.currentTime},y.dispatchEvent(new CustomEvent("stateChange-".concat(m),{detail:{payload:{"@type":"core."+c+".v1",videoContext:e.exports.getVideoContext(t.target)}}})),"videoCompleted"===c&&(l[m].timeWatched=0,l[m].interval=null,l[m].percentWatched=0,l[m].lastEvent={}))}function y(t){t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoVolumeChanged.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}function h(t,o,d){var n=window.uvpjs.getVideoManager().VCIs[t];if(n&&t===(null==d?void 0:d.target)){var r={"@type":"core.".concat(o),videoContext:e.exports.getUVPVideoContext(t)},c=o.toLowerCase();c.includes("videoad")&&(null!=l[t].adData.videoAdTitle?(r.videoAdContext={videoAdId:l[t].adData.videoAdId,videoAdTitle:l[t].adData.videoAdTitle,adRollPosition:l[t].adData.adRollPosition},null!=l[t].adData.adSkippable?r.videoAdContext.adSkippable=l[t].adData.adSkippable:null!=d&&null!=d.payload.adData&&null!=d.payload.imaAdData&&(l[t].adData.adSkippable=d.payload.imaAdData.skipTimeOffset>-1,r.videoAdContext.adSkippable=d.payload.imaAdData.skipTimeOffset>-1)):null!=d&&null!=d.payload.adData&&(r.videoAdContext={videoAdId:d.payload.adData.adVideoId?d.payload.adData.adVideoId:null,videoAdTitle:d.payload.adData.adVideoTitle?d.payload.adData.adVideoTitle:null,adRollPosition:d.payload.adData.adType?d.payload.adData.adType.charAt(0).toUpperCase()+d.payload.adData.adType.slice(1):null},null!=d.payload.imaAdData&&(r.videoAdContext.adSkippable=d.payload.imaAdData.skipTimeOffset>-1),l[t].adData=r.videoAdContext)),c.includes("volume")?(c.includes("videoad")?r.videoAdMuted=n.getPlayerMuted():r.videoMuted=n.getPlayerMuted(),r.previousVolumeLevel=l[t].previousVolumeLevel,l[t].previousVolumeLevel=n.getPlayerMuted()?0:Math.round(100*n.getVolume())):c.includes("interrupted")?r.method=d.payload.errorInfo.message?d.payload.errorInfo.message:"":c.includes("paused")?(r.pauseType=d.payload.autoPause?"auto":"manual",c.includes("videoAd")&&(r.autostart=n._autoPlay)):c.includes("played")||c.includes("seekstarted")&&(r.videoContext.playheadPosition=Math.ceil(d.payload.seekFromTime)),document.getElementById(t).dispatchEvent(new CustomEvent("stateChange-".concat(t),{detail:{payload:r}}))}}function C(e){var t=window.uvpjs.getVideoManager().VCIs[e];l[e]={timeSkipped:0,interval:null,percentWatched:0,previousVolumeLevel:t.getPlayerMuted()?0:Math.round(100*t.getVolume()),metadata:{},adData:{},isAd:!1,isContextual:!!l[e].isContextual&&l[e].isContextual,initialVideoId:l[e].initialVideoId?l[e].initialVideoId:null,location:l[e].location?l[e].location:null,articlePlacement:l[e].articlePlacement?l[e].articlePlacement:null}}e.exports.createVideoPlayer=function(){var e=d((function*(e,t,o,d,n,l){0==o.length&&(o=["playing","paused","completed","seek","volume","watched","interrupted","ad"]);var v=yield function(e,t,o,d,n,l){return new Promise(((v,m)=>{var y;if(0==document.querySelectorAll('script[src="https://www.youtube.com/iframe_api"]').length){var h=document.createElement("script");h.src="https://www.youtube.com/iframe_api";var C=document.getElementsByTagName("script")[0];C.parentNode.insertBefore(h,C)}void 0!==(null===(y=window.YT)||void 0===y?void 0:y.Player)?v(c(e,t,o,d,n,l)):(window.addEventListener("youtube_ready",(function(){v(c(e,t,o,d,n,l))})),window.onYouTubeIframeAPIReady=function(){window.YT.ready((()=>{r=!0;var e=new Event("youtube_ready");window.dispatchEvent(e)}))}),setTimeout((()=>{r||(r=!0,m(new Error("Iframe is not ready")))}),1e4)}))}(e,t,o,d,n,l);return v}));return function(t,o,d,n,l,r){return e.apply(this,arguments)}}(),e.exports.getVideoContext=e=>{var t,o,d,n,r,c,v,m,y,h,C,f,x,P,V=null!=e&&e.getPlaylistId()?null==e?void 0:e.getPlaylistId():null==e||null===(t=e.getVideoData())||void 0===t?void 0:t.video_id;return{videoId:null===(o=e.playerInfo)||void 0===o?void 0:o.videoData.video_id,videoTitle:null===(d=e.playerInfo)||void 0===d?void 0:d.videoData.title,sequenceType:null!==(n=e.playerInfo)&&void 0!==n&&n.playlistId?"playlist":"single",playlistId:null!==(r=e.playerInfo)&&void 0!==r&&r.playlistId?null===(c=e.playerInfo)||void 0===c||null===(c=c.videoData)||void 0===c?void 0:c.playlistId:"",playlistTitle:null!==(v=e.playerInfo)&&void 0!==v&&v.playlistTitle?null===(m=e.playerInfo)||void 0===m||null===(m=m.videoData)||void 0===m?void 0:m.playlistTitle:"",playlistIndex:null!==(y=e.playerInfo)&&void 0!==y&&y.playlistIndex?null===(h=e.playerInfo)||void 0===h?void 0:h.playlistIndex:0,videoPlayer:"Youtube",videoLength:Math.round(null===(C=e.playerInfo)||void 0===C?void 0:C.duration),playheadPosition:Math.round(null===(f=e.playerInfo)||void 0===f?void 0:f.currentTime),volumeLevel:e.isMuted()?0:null===(x=e.playerInfo)||void 0===x?void 0:x.volume,videoQuality:null===(P=e.playerInfo)||void 0===P?void 0:P.playbackQuality,fullScreenEnabled:l[V].isFullscreen,adEnabled:!(!l[V].adsEnabled||l[V].autostart),brand:l[V].placement.brand?l[V].placement.brand:"",category:l[V].placement.category?l[V].placement.category:"",productId:l[V].placement.productId?l[V].placement.productId:"",location:l[V].placement.location?l[V].placement.location:"UNKNOWN",articlePlacement:l[V].placement.articlePlacement?l[V].placement.articlePlacement:"",autoplay:l[V].autostart,name:l[V].placement.name?l[V].placement.name:""}},e.exports.trackJWPlayer=(t,o,d,n,r)=>{0==o.length&&(o=["playing","paused","completed","seek","volume","watched","interrupted","ad"]),t.on("beforePlay",(e=>{var o=t.getPlaylistItem().mediaid;null==l[o]&&(l[o]={type:"",timeWatched:0,percentWatched:0,autostart:n,placement:d,quality:null,timeSkipped:0,seekStart:0,lastEvent:"",adsEnabled:r})})),t.on("playlistItem",(o=>{var c=t.getPlaylistItem().mediaid;null==l[c]&&(l[c]={type:"",timeWatched:0,percentWatched:0,autostart:n,placement:d,quality:null,timeSkipped:0,seekStart:0,lastEvent:"",adsEnabled:r}),function(t){t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoLoaded.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),o.includes("playing")&&t.on("play",(o=>{!function(t){l[t.getPlaylistItem().mediaid].lastEvent="play",t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoPlayed.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),o.includes("paused")&&t.on("pause",(o=>{!function(t){l[t.getPlaylistItem().mediaid].lastEvent="pause",t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoPaused.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),o.includes("completed")&&t.on("complete",(o=>{!function(t){l[t.getPlaylistItem().mediaid].lastEvent="completed",t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoCompleted.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),o.includes("seek")&&(t.on("seek",(o=>{!function(t){l[t.getPlaylistItem().mediaid].lastEvent="seek",l[t.getPlaylistItem().mediaid].seekStart=t.getPosition(),t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoSeekStarted.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),t.on("seeked",(o=>{!function(t){l[t.getPlaylistItem().mediaid].lastEvent="seek",l[t.getPlaylistItem().mediaid].timeSkipped=Math.round(t.getPosition()-l[t.getPlaylistItem().mediaid].seekStart),t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoSeekCompleted.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)}))),o.includes("volume")&&(t.on("mute",(e=>{y(t)})),t.on("volume",(e=>{y(t)}))),o.includes("watched")&&t.on("time",(o=>{!function(t){var o=t.getPlaylistItem().mediaid,d=t.getPlaylistItem().feedid,n=t.getDuration(),r=t.getPosition();r>=n-3&&l[o].percentWatched<100?(l[o].percentWatched=100,t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(d),{detail:{payload:{"@type":"core.videoWatched.v1",videoContext:e.exports.getJWVideoContext(t),videoWatched:100,videoWatchedTime:Math.round(r-l[o].timeSkipped)}}}))):r>=.75*n&&l[o].percentWatched<75?(l[o].percentWatched=75,t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(d),{detail:{payload:{"@type":"core.videoWatched.v1",videoContext:e.exports.getJWVideoContext(t),videoWatched:75,videoWatchedTime:Math.round(r-l[o].timeSkipped)}}}))):r>=.5*n&&l[o].percentWatched<50?(l[o].percentWatched=50,t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(d),{detail:{payload:{"@type":"core.videoWatched.v1",videoContext:e.exports.getJWVideoContext(t),videoWatched:50,videoWatchedTime:Math.round(r-l[o].timeSkipped)}}}))):r>=.25*n&&l[t.getPlaylistItem().mediaid].percentWatched<25&&(l[o].percentWatched=25,t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(d),{detail:{payload:{"@type":"core.videoWatched.v1",videoContext:e.exports.getJWVideoContext(t),videoWatched:25,videoWatchedTime:Math.round(r-l[o].timeSkipped)}}})))}(t)})),o.includes("interrupted")&&t.on("firstFrame",(o=>{!function(t){t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoStarted.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t),t.on("buffer",(o=>{!function(t,o){var d=l[t.getPlaylistItem().mediaid].lastEvent;"play"===d&&t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoInterrupted.v1",videoContext:e.exports.getJWVideoContext(t),method:o.reason}}}))}(t,o)}))})),o.includes("ad")&&(t.on("adRequest",(o=>{!function(t){t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoAdRequested.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),t.on("adStarted",(o=>{!function(t){t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoAdStarted.v2",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),t.on("adPause",(o=>{!function(t){t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoAdPaused.v2",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),t.on("adComplete",(o=>{!function(t){t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoAdCompleted.v2",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),t.on("adSkipped",(o=>{!function(t){t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoAdSkipped.v2",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),t.on("adTime",(o=>{!function(t){t.on("viewable",(o=>{!function(t){t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoAdViewed.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),t.on("volume",(o=>{!function(t){t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoAdVolumeChanged.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoAdWatched.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),t.on("adSchedule",(o=>{!function(t){t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoAdLoaded.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)}))),t.on("visualQuality",(e=>{l[t.getPlaylistItem().mediaid].quality=t.getVisualQuality()})),t.on("viewable",(o=>{!function(t){t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoViewed.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)}))},e.exports.getJWVideoContext=e=>{var t=e.getPlaylistItem(),o=t.mediaid;return{videoId:o,videoTitle:t.title,sequenceType:t.feedData.feedid?"playlist":"single",playlistId:t.feedData.feedid?t.feedData.feedid:"",playlistTitle:t.feedData.feedid?t.feedData.title:"",playlistIndex:e.getPlaylistIndex(),videoPlayer:e.getProvider().name,videoLength:t.duration,playheadPosition:Math.round(e.getPosition()),volumeLevel:e.getMute()?0:e.getVolume(),videoQuality:null!=e.getVisualQuality()?e.getVisualQuality().level.label:l[o].quality,fullScreenEnabled:e.getFullscreen(),adEnabled:!l[o].adsEnabled,brand:l[o].placement.brand?l[o].placement.brand:"",category:l[o].placement.category?l[o].placement.category:"",productId:l[o].placement.productId?l[o].placement.productId:"",location:l[o].placement.location?l[o].placement.location:"",articlePlacement:l[o].placement.articlePlacement?l[o].placement.articlePlacement:"",name:l[o].placement.name?l[o].placement.name:"",bitRate:null!=e.getVisualQuality()?e.getVisualQuality().level.bitrate:l[o].quality}},e.exports.trackUVP=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=window.uvpjs.getVideoManager().VCIs[t];l[t]={timeSkipped:0,interval:null,percentWatched:0,previousVolumeLevel:d.getPlayerMuted()?0:Math.round(100*d.getVolume()),metadata:{},adData:{},isAd:!1,isContextual:!!o.isContextual&&o.isContextual,initialVideoId:o.initialVideoId?o.initialVideoId:null,location:o.location?o.location:null,articlePlacement:o.articlePlacement?o.articlePlacement:null},function(e){n=new IntersectionObserver(((t,o)=>{t.forEach((t=>{t.isIntersecting&&(l[e].isAd?h(e,"videoAdViewed.v2"):h(e,"videoViewed.v1"))}))}));var t=document.getElementById(e);n.observe(t)}(t),d.addEventListener("contextMetadata.trackUVP"+t,(e=>{l[t].metadata=e.payload.contextMetadata})),d.addEventListener("onAdRequest.trackUVP"+t,(e=>{h(t,"videoAdRequested.v1",e)})),d.addEventListener("onAdLoaded.trackUVP"+t,(e=>{h(t,"videoAdLoaded.v2",e)})),d.addEventListener("onAdStart.trackUVP"+t,(e=>{l[t].isAd=!0,h(t,"videoAdStarted.v3",e)})),d.addEventListener("onAdSkipped.trackUVP"+t,(e=>{h(t,"videoAdSkipped.v3",e)})),d.addEventListener("onAdEnd.trackUVP"+t,(e=>{!function(e,t){clearInterval(l[t].interval),100===l[t].percentWatched&&h(t,"videoAdCompleted.v3",e);C(t)}(e,t)})),d.addEventListener("onStateChange.trackUVP"+t,(o=>{switch(1!==o.payload.newState&&null!==l[t].interval&&clearInterval(l[t].interval),o.payload.newState){case 0:o.payload.isAd||(h(t,"videoCompleted.v1",o),C(t));break;case 1:l[t].interval=setInterval((function(){!function(t,o){var d=document.getElementById(t),n=window.uvpjs.getVideoManager().VCIs[t],r="videoWatched",c={};o&&(r="videoAdWatched",c=l[t].adData);var v=n.getCurrentPlaybackState().duration,m=n.getCurrentPlaybackState().currentTime,y=l[t].timeSkipped>0?n.getCurrentPlaybackState().currentTime-l[t].timeSkipped:n.getCurrentPlaybackState().currentTime;m>=v-3&&l[t].percentWatched<100?(o?d.dispatchEvent(new CustomEvent("stateChange-".concat(t),{detail:{payload:{"@type":"core."+r+".v2",videoContext:e.exports.getUVPVideoContext(t),videoAdContext:c,videoAdWatched:100,videoAdWatchedTime:Math.floor(y)}}})):d.dispatchEvent(new CustomEvent("stateChange-".concat(t),{detail:{payload:{"@type":"core."+r+".v1",videoContext:e.exports.getUVPVideoContext(t),videoWatched:100,videoWatchedTime:Math.floor(y)}}})),l[t].percentWatched=100):m>=v*(3/4)&&l[t].percentWatched<75?(o?d.dispatchEvent(new CustomEvent("stateChange-".concat(t),{detail:{payload:{"@type":"core."+r+".v2",videoContext:e.exports.getUVPVideoContext(t),videoAdContext:c,videoAdWatched:75,videoAdWatchedTime:Math.floor(y)}}})):d.dispatchEvent(new CustomEvent("stateChange-".concat(t),{detail:{payload:{"@type":"core."+r+".v1",videoContext:e.exports.getUVPVideoContext(t),videoWatched:75,videoWatchedTime:Math.floor(y)}}})),l[t].percentWatched=75):m>=v/2&&l[t].percentWatched<50?(o?d.dispatchEvent(new CustomEvent("stateChange-".concat(t),{detail:{payload:{"@type":"core."+r+".v2",videoContext:e.exports.getUVPVideoContext(t),videoAdContext:c,videoAdWatched:50,videoAdWatchedTime:Math.floor(y)}}})):d.dispatchEvent(new CustomEvent("stateChange-".concat(t),{detail:{payload:{"@type":"core."+r+".v1",videoContext:e.exports.getUVPVideoContext(t),videoWatched:50,videoWatchedTime:Math.floor(y)}}})),l[t].percentWatched=50):m>=v/4&&l[t].percentWatched<25&&(o?d.dispatchEvent(new CustomEvent("stateChange-".concat(t),{detail:{payload:{"@type":"core."+r+".v2",videoContext:e.exports.getUVPVideoContext(t),videoAdContext:c,videoAdWatched:25,videoAdWatchedTime:Math.floor(y)}}})):d.dispatchEvent(new CustomEvent("stateChange-".concat(t),{detail:{payload:{"@type":"core."+r+".v1",videoContext:e.exports.getUVPVideoContext(t),videoWatched:25,videoWatchedTime:Math.floor(y)}}})),l[t].percentWatched=25)}(t,o.payload.isAd)}),1e3),o.payload.isAd||h(t,"videoPlayed.v1",o)}})),d.addEventListener("seekDone.trackUVP"+t,(e=>{!function(e,t){l[t].timeSkipped+=e.payload.seekToTime-e.payload.seekFromTime,h(t,"videoSeekStarted.v1",e),h(t,"videoSeekCompleted.v1",e)}(e,t)})),d.addEventListener("videoPlaybackError.trackUVP"+t,(e=>{h(t,"videoInterrupted.v1",e)})),d.addEventListener("onContentStart.trackUVP"+t,(e=>{l[t].isAd=!1,h(t,"videoStarted.v1",e)})),d.addEventListener("onContentDataLoaded.trackUVP"+t,(e=>{h(t,"videoLoaded.v1",e)})),d.addEventListener("controlPause.trackUVP"+t,(e=>{l[t].isAd?h(t,"videoAdPaused.v3",e):h(t,"videoPaused.v1",e)})),d.addEventListener("controlVolumeChange.trackUVP"+t,(e=>{h(t,"videoVolumeChanged.v1",e)})),d.addEventListener("onAdVolumeChange.trackUVP"+t,(e=>{h(t,"videoAdVolumeChanged.v2",e)}))},e.exports.getUVPVideoContext=e=>{var t,o=window.uvpjs.getVideoManager().VCIs[e],d=null===(t=window.uvpjs)||void 0===t||null===(t=t.getVideoManager())||void 0===t||null===(t=t.VCIs[e])||void 0===t?void 0:t.getContentVideoData(),n=null==d?void 0:d.cmsRefGuid,r=[];return void 0!==window.utag_data&&Array.isArray(window.utag_data.tagSlugs)&&window.utag_data.tagSlugs.forEach((e=>{r.push({key:"utag",value:e})})),{videoId:n,videoTitle:null==d?void 0:d.videoTitle,sequenceType:o.rcoIdIndex>1?"playlist":"single",videoPlayer:"UVP",videoLength:Math.ceil(o.getContentVideoData().duration),playheadPosition:Math.ceil(o.getCurrentPlaybackState().currentTime),volumeLevel:o.getPlayerMuted()?0:Math.round(100*o.getVolume()),fullScreenEnabled:!(!document.fullscreenElement||!document.fullscreenElement.classList.contains("uvpjs")),livestream:o.getCurrentPlaybackState().isPlayingLive,brand:l[e].metadata.topicPrimaryId?l[e].metadata.topicPrimaryId:"",category:l[e].metadata.siteHier?l[e].metadata.siteHier:"",location:l[e].location?l[e].location:"UNKNOWN",articlePlacement:l[e].articlePlacement?l[e].articlePlacement:null,bitRate:o.getCurrentPlaybackState().facadeState?o.getCurrentPlaybackState().facadeState.currentBitrate:null,frameRate:o.getCurrentPlaybackState().facadeState?o.getCurrentPlaybackState().facadeState.playbackFramerate:null,autoplay:o._autoPlay,tags:r.length>0?r:null,isContextual:l[e].isContextual&&n==l[e].initialVideoId}},e.exports.removeUVPTracking=e=>{var t=window.uvpjs.getVideoManager().VCIs[e];clearInterval(l[e].interval),n.disconnect();["contextMetadata.trackUVP","onAdRequest.trackUVP","onAdLoaded.trackUVP","onAdStart.trackUVP","onAdSkipped.trackUVP","onAdEnd.trackUVP","onStateChange.trackUVP","seekDone.trackUVP","videoPlaybackError.trackUVP","onContentStart.trackUVP","onContentDataLoaded.trackUVP","controlPause.trackUVP","controlVolumeChange.trackUVP","onAdVolumeChange.trackUVP"].forEach((o=>{t.removeEventListener(o+e)}))}},2341:function(e,t){function o(e,t,o,d,n,l,r){try{var c=e[l](r),v=c.value}catch(e){return void o(e)}c.done?t(v):Promise.resolve(v).then(d,n)}e.exports=function(e){return function(){var t=this,d=arguments;return new Promise((function(n,l){var r=e.apply(t,d);function c(e){o(r,n,l,c,v,"next",e)}function v(e){o(r,n,l,c,v,"throw",e)}c(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},2342:function(e,t,o){"use strict";o(1670)},2343:function(e,t,o){var d=o(247)((function(i){return i[1]}));d.push([e.i,".c-shortcodeYoutubeVideo{height:0;margin-bottom:2rem;overflow:hidden;padding-bottom:56.25%;position:relative;text-align:center;width:100%}.c-shortcodeYoutubeVideo iframe{height:100%;left:0;position:absolute;top:0;width:100%}",""]),d.locals={},e.exports=d},3174:function(e,t,o){"use strict";o.r(t);o(27);var d=o(12),n=o(2340),l=o.n(n),r=Object(d.defineComponent)({name:"ShortcodeYoutubeVideo",inheritAttrs:!1,props:{autoplay:{default:"",type:String},float:{default:"",type:String},fs:{default:"",type:String},loop:{default:"",type:String},oembed:{default:"",type:String},rel:{default:"",type:String},size:{default:"",type:String},start:{default:"",type:String},url:{default:"",type:String}},data:()=>({pattern:/^https?:\/\/(?:www.)?youtu(?:\.be\/|be\.com\/(?:embed\/|live\/|shorts\/|watch\?v=|watch\?.+?&v=|v\/|playlist\?list=))([^(?|&|$|#|\n)]+)/,player:null}),computed:{youtubeTitle(){try{var e=this.oembed?JSON.parse(this.oembed):null;return(null==e?void 0:e.title)||""}catch(e){return""}},iframeLabelId(){var e=this.pattern.exec(this.url),t=(null==e?void 0:e.length)>1?e[1]:"";return"iframe-".concat(t)},videoId(){return this.url?this.pattern.exec(this.url)[1]:""}},beforeMount(){this.$store.dispatch("tracking/setPageComponents",{vo02:!0})},mounted(){this.player=l.a.createVideoPlayer(this.videoId,!1,["loaded","started","playing","paused","completed","watched","viewed","seek"],{articlePlacement:"Youtube Embed",location:"CONTENTBLOCK"},!1,!1),this.player.then((e=>{null==e||e.addEventListener("stateChange-".concat(this.videoId),(e=>{window.tagular("beam",e.detail.payload)}))})),this.$store.commit("reviews/setHasVideo",this.iframeLabelId)},methods:{}}),c=(o(2342),o(121)),component=Object(c.a)(r,(function(){var e=this,t=e._self._c;e._self._setupProxy;return e.$services.isFeatureEnabled("youtube")?t("div",{staticClass:"c-shortcodeYoutubeVideo"},[t("div",{attrs:{id:e.iframeLabelId,title:e.youtubeTitle}})]):e._e()}),[],!1,null,null,null);t.default=component.exports}}]);