"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7633],{43814:function(t,e,n){n.d(e,{Vu:function(){return u},mW:function(){return o}});var r=n(52322),i=n(2784),s=i.createContext({type:void 0,subType:void 0,id:void 0}),o=function(t){var e=t.value,n=t.children;return(0,r.jsx)(s.Provider,{value:e,children:n})},u=function(){return i.useContext(s)}},92232:function(t,e,n){n.d(e,{S:function(){return i}});var r=n(2784),i=function(t,e,n){var i=(0,r.useState)(!1),s=i[0],o=i[1];return(0,r.useEffect)((function(){try{var r=new IntersectionObserver(e,n);if(!(null===t||void 0===t?void 0:t.current))return;return o(!0),r.observe(t.current),function(){return r.disconnect()}}catch(i){o(!1)}}),[t,e,n]),s}},78754:function(t,e,n){n.d(e,{K8:function(){return i.K8},P6:function(){return r.P},ar:function(){return i.ar},qB:function(){return i.qB}});var r=n(20701),i=n(95460)},97537:function(t,e,n){n.d(e,{LI:function(){return _},fP:function(){return E},fZ:function(){return A},oU:function(){return a}});var r,i=n(90581),s=n(28683),o=n(78754);!function(t){t.LOAD_DATA="vp-load-data",t.MUTE="vp-user-mute",t.UNMUTE="vp-user-unmute",t.NORMAL_SCREEN="vp-size-normal",t.FULLSCREEN="vp-size-fullscreen",t.TAP="vp-player-interactive",t.CLOSE="vp-close",t.BROWSER_BLOCKED_AUTOPLAY_AUDIO="vp-browser-blocked-attempt"}(r||(r={}));var u,c,a;!function(t){t.T0="video-view-t0",t.T25="video-view-t25",t.T50="video-view-t50",t.T75="video-view-t75",t.T100="video-view-t100"}(u||(u={})),function(t){t.T0="jw-ad-view-t0",t.T100="jw-ad-view-t100",t.SKIPPED="jw-ad-skip"}(c||(c={})),function(t){t.play="vp-user-play",t.stop="vp-user-stop",t.pause="vp-user-pause"}(a||(a={}));var p,f=function(t){return"vp-auto-on-".concat(t)},T="vp-sub-display-alwayson",d="vp-sub-display-alwaysoff",v="vp-sub-display-onmuted";!function(t){t.AUTOPLAY_BLOCKED="vp-browser-blocked-autoplay"}(p||(p={}));var E,A={videoStart:function(t){return"vp-video-start-".concat(t)},autoStart:function(t){return"vp-video-start-as-".concat(t)}};!function(t){t.TITLE_START="tt_ov_vi",t.NAME_START="nm_ov_vi",t.RELATED_AUTOPLAY="vp_rv_ap_0",t.PLAYLIST_AUTOPLAY_PREFIX="vp_pl_ap_",t.PLAYLIST_PLAY_NEXT_BUTTON="vp_nxt_btn",t.PLAYLIST_PLAY_PREVIOUS_BUTTON="vp_prev_btn",t.PLAYLIST_PLAY_SELECTED_VIDEO_PREFIX="vp_pl_",t.RELATED_PLAY_SELECTED_VIDEO_PREFIX="vp_rv_"}(E||(E={}));var _=function(){function t(e){(0,i.Z)(this,t),this.businessMetricsContextCache={},this.businessMetricsContext=e}var e=t.prototype;return e.reportBusinessMetric=function(t,e){(0,o.ar)({type:this.businessMetricsContext.type,subType:this.businessMetricsContext.subType,id:this.businessMetricsContext.id},t,void 0,e)},e.updateBusinessMetricsContext=function(t){this.businessMetricsContext=t},e.setAdTrackers=function(t){this.adTrackers=t},e.setPlayMetricContext=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.setBusinessMetricsContextByAction(a.play,{refMarker:t,pageAction:e?A.autoStart(this.businessMetricsContext.pageActionConst):A.videoStart(this.businessMetricsContext.pageActionConst)})},e.resetBusinessMetricsContextByAction=function(t){this.businessMetricsContextCache[t]=null},e.setBusinessMetricsContextByAction=function(t,e){this.businessMetricsContextCache[t]||(this.businessMetricsContextCache[t]=e)},e.reportLoadData=function(){this.reportBusinessMetric(r.LOAD_DATA)},e.reportContentStart=function(t){t&&"number"===typeof t&&this.reportBusinessMetric("qos-ttff-".concat(Math.round(t))),this.reportAdTracker(s.C5.activate)},e.reportContentT0=function(){this.reportBusinessMetric(u.T0)},e.reportContentT25=function(){this.reportBusinessMetric(u.T25),this.reportAdTracker(s.C5.midpoint1)},e.reportContentT50=function(){this.reportBusinessMetric(u.T50),this.reportAdTracker(s.C5.midpoint2)},e.reportContentT75=function(){this.reportBusinessMetric(u.T75),this.reportAdTracker(s.C5.midpoint3)},e.reportContentT100=function(){this.reportBusinessMetric(u.T100),this.reportAdTracker(s.C5.complete)},e.reportAdT0=function(){this.reportBusinessMetric(c.T0)},e.reportAdT100=function(){this.reportBusinessMetric(c.T100)},e.reportAdSkipped=function(){this.reportBusinessMetric(c.SKIPPED)},e.reportViewTime=function(t){this.reportBusinessMetric("".concat("video-view","-").concat(t,"s"))},e.reportPlay=function(){var t=this.businessMetricsContextCache[a.play];this.reportBusinessMetric((null===t||void 0===t?void 0:t.pageAction)||a.play,null===t||void 0===t?void 0:t.refMarker),this.resetBusinessMetricsContextByAction(a.play)},e.reportPause=function(){var t=this.businessMetricsContextCache[a.pause];this.reportBusinessMetric((null===t||void 0===t?void 0:t.pageAction)||a.pause,null===t||void 0===t?void 0:t.refMarker),this.resetBusinessMetricsContextByAction(a.pause)},e.reportStop=function(){var t=this.businessMetricsContextCache[a.stop];this.reportBusinessMetric((null===t||void 0===t?void 0:t.pageAction)||a.stop,null===t||void 0===t?void 0:t.refMarker),this.resetBusinessMetricsContextByAction(a.stop)},e.reportMute=function(t){this.reportBusinessMetric(t?r.MUTE:r.UNMUTE)},e.reportFullscreen=function(t){this.reportBusinessMetric(t?r.FULLSCREEN:r.NORMAL_SCREEN,"vp_size_btn")},e.reportAdTracker=function(t){if(this.adTrackers){var e=this.adTrackers.filter((function(e){return e.when===t}));e.length>0&&e.forEach((function(t){(0,s.EQ)(t.track)}))}},e.reportAutoplayBlocked=function(){this.reportBusinessMetric(p.AUTOPLAY_BLOCKED)},e.reportVideoClose=function(){this.reportBusinessMetric(r.CLOSE)},e.reportVideoTap=function(){this.reportBusinessMetric(r.TAP)},e.reportVideoStart=function(){var t=this.businessMetricsContextCache[a.play];this.reportBusinessMetric(A.videoStart(this.businessMetricsContext.pageActionConst),null===t||void 0===t?void 0:t.refMarker),this.resetBusinessMetricsContextByAction(a.play)},e.reportVideoStartWithCaptions=function(t){this.reportBusinessMetric(f(t))},e.reportTimedTextTrackTurnedOff=function(){this.reportBusinessMetric(d)},e.reportTimedTextTrackTurnedAlwaysOn=function(){this.reportBusinessMetric(T)},e.reportTimedTextTrackTurnedOnForMute=function(){this.reportBusinessMetric(v)},e.reportBrowserBlockedAutoplayAudio=function(){this.reportBusinessMetric(r.BROWSER_BLOCKED_AUTOPLAY_AUDIO)},t}()},71601:function(t,e,n){n.d(e,{F1:function(){return c},Oh:function(){return a}});var r=n(66383),i=n(52322),s=n(2784),o=n(6488),u=s.createContext({}),c=function(t){var e=t.children,n=(0,r.Z)(s.useState(!1),2),o=n[0],c=n[1],a=(0,r.Z)(s.useState(!1),2),p=a[0],d=a[1],v=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];T(t),c(t),e&&d(!0)};s.useEffect((function(){v(f(),!0)}),[]);var E={isPreferenceEnabled:o,setIsPreferenceEnabled:v,initialPreferenceHasSet:p};return(0,i.jsx)(u.Provider,{value:E,children:e})},a=function(){return s.useContext(u)},p="hero_video_autoplay_disabled",f=function(){return!(!0===(0,o.ID)(p))},T=function(t){t?(0,o.dZ)(p):(0,o._2)(p,!0)}},37633:function(t,e,n){n.d(e,{Jf:function(){return i}});var r;n(2784),n(97537),n(92232),n(97299),n(46312),n(17068),n(43955),n(81186),n(71601);!function(t){t.AUTO_PAUSE="vp-auto-pause",t.AUTO_PLAY="vp-auto-play"}(r||(r={}));var i=function(t,e,n){return function(r,i){e&&(null===t||void 0===t?void 0:t.current)&&i.unobserve(t.current),n(r[0].isIntersecting)}}},46312:function(t,e,n){n.d(e,{d:function(){return u}});var r=n(2784),i=n(15907),s=n(95460),o=n(43814),u=function(t,e,n){var u=(0,r.useState)(!1),c=u[0],a=u[1],p=(0,r.useState)(!1),f=p[0],T=p[1],d=(0,o.Vu)();(0,r.useEffect)((function(){t&&!c&&((0,s.ar)(d,"".concat(n,"-playerready")),a(!0)),e&&!f&&t&&((0,s.ar)(d,function(t){var e={UNSUPPORTED_ACTION:"".concat(t,"-unsupported"),NO_AD:"".concat(t,"-no-ad"),THIRD_PARTY_AD:"".concat(t,"-3p-ad"),FIRST_PARTY_NO_VIDEO:"".concat(t,"-1p-novid"),FIRST_PARTY_VIDEO_FIRED:"".concat(t,"-1p-vidfire")};if(!window.mediaOrchestrator)return e.NO_AD;var n=window.mediaOrchestrator.getEventsLogForEvent(i.MediaEvent.MEDIA_PLAYBACK_EVENT_NAME);if(0===n.length)return e.UNSUPPORTED_ACTION;switch(n[0].type){case i.AdVideoEventType.NO_AUTOPLAY_VIDEO_DETECTED_EVENT_TYPE:return e.NO_AD;case i.AdVideoEventType.THIRD_PARTY_AD_DETECTED_EVENT_TYPE:return e.THIRD_PARTY_AD;case i.AdVideoEventType.AUTOPLAY_VIDEO_MAYBE_PRESENT_EVENT_TYPE:var r=new Set(n.map((function(t){return t.type})));return r.has(i.AdVideoEventType.NO_AUTOPLAY_VIDEO_DETECTED_EVENT_TYPE)?e.FIRST_PARTY_NO_VIDEO:r.has(i.AdVideoEventType.PLAY)?e.FIRST_PARTY_VIDEO_FIRED:e.UNSUPPORTED_ACTION;default:return e.UNSUPPORTED_ACTION}}(n)),T(!0))}),[t,e])}},17068:function(t,e,n){var r,i;n.d(e,{QT:function(){return r},fy:function(){return u},qh:function(){return i},rb:function(){return o}}),function(t){t.idle="idle",t.buffering="buffering",t.playing="playing",t.paused="paused"}(r||(r={})),function(t){t.USER_INTERACTION="interaction",t.EXTERNAL="external"}(i||(i={}));var s,o={interaction:i.USER_INTERACTION,external:i.EXTERNAL};!function(t){t.PLAYING="playing",t.BUFFERING="buffering",t.IDLE="idle",t.PAUSED="paused"}(s||(s={}));var u={playing:s.PLAYING,buffering:s.BUFFERING,idle:s.IDLE,paused:s.PAUSED}}}]);