"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7978],{96242:function(e,t,n){n.d(t,{C:function(){return H},W:function(){return F}});var i=n(70865),a=n(92228),r=n(52322),o=n(14865),s=n(77290),l=n(2784),c=n(73857),d=n(19596),u=n(17523),v=n(45103),p=n(91842),f=n(90551),h=n(50911),y=n(26688),g=n(85285),m=n(9263),I=n(72471),b=n(11869),P=n(19471),w=n(87993),E=n(66383),T=n(30382),_=n.n(T),C=n(48543);function A(){var e=(0,a.Z)(["\n mutation AddReaction($entityId: ID!, $reactionId: ID!) {\n react(\n input: {\n addReactionInputs: [\n { entityId: $entityId, reactionId: $reactionId }\n ]\n }\n ) {\n message {\n value\n }\n userReactions {\n reaction {\n id\n reactionId\n }\n }\n success\n }\n }\n"]);return A=function(){return e},e}function S(){var e=(0,a.Z)(["\n mutation DeleteReaction($entityId: ID!, $reactionId: ID!) {\n react(\n input: {\n deleteReactionInputs: [\n { entityId: $entityId, reactionId: $reactionId }\n ]\n }\n ) {\n message {\n value\n }\n userReactions {\n reaction {\n id\n reactionId\n }\n }\n success\n }\n }\n"]);return S=function(){return e},e}var M=_()(A()),x=_()(S()),N=function(e){var t=(0,b.og)(),n=t.addUserReaction,i=t.deleteUserReaction,a=function(){var e=(0,E.Z)((0,C.y)(M),2)[1],t=(0,E.Z)((0,C.y)(x),2)[1];return{addReaction:function(t,n){return e({entityId:t,reactionId:n})},deleteReaction:function(e,n){return t({entityId:e,reactionId:n})}}}(),r=a.addReaction,o=a.deleteReaction,s=function(t){r(e,t),n(e,t),g.kL[t]&&i(e,g.kL[t])},c=function(t){o(e,t),i(e,t)};return l.useMemo((function(){return{deleteReaction:c,addReaction:s}}),[e])},k=n(42886),R=n(43814),j=n(95460),O=function(e,t,n,i){if((0,o.getIsBrowser)()){var a=(0,j.RC)(t),r=(0,j.SQ)(t,n,i,e,void 0,a);return navigator.sendBeacon(r)}};function L(){var e=(0,a.Z)(["\n min-height: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n"]);return L=function(){return e},e}function D(){var e=(0,a.Z)(["\n display: none;\n"]);return D=function(){return e},e}function V(){var e=(0,a.Z)(["\n width: ",";\n"]);return V=function(){return e},e}var H="with-reaction-selector",U=function(e){var t=e.associatedConstId,n=e.entityType,i=e.initialAggregateData,a=e.initialUserData,o=e.className,s=e.hideReactionChipList,d=e.forceCloseButtonMenuSwitch,v=e.associatedEntityName,p=void 0===v?"":v,E=e.refMarkerPrefix,T=e.csmOnLoadHandler,_=e.csaOnLoadHandler,C=e.onReactionSelectorMenuChange,A=e.cel_widget_id,S=(0,c.Z)(),M=(0,f.n)(),x=function(e,t){var n=(0,f.n)(),i=(0,R.Vu)(),a=(0,l.useMemo)((function(){return e?"".concat(e,"_").concat(g.Ev.REACTION_AFFIX):""}),[e]);return{logReactionRef:(0,l.useCallback)((function(e,r){var o=n?"":"".concat(g.Ev.SIGNED_OUT_PREFIX,"-"),s=r?g.Ev.REACTION_UPDATE_STATE.ADD:g.Ev.REACTION_UPDATE_STATE.DELETE,l="".concat(o).concat(g.Ev.REACTION_AFFIX,"-").concat(g.Ev.REACTION_IDS_PREFIX[e],"-").concat(s,"-").concat(t);(n?j.K8:O)(a,i,l)}),[a,t,n,i]),logReactionMenuRef:(0,l.useCallback)((function(){(0,j.K8)(a,i,"".concat(g.Ev.REACTION_AFFIX,"-").concat(g.Ev.REACTION_MENU_OPEN,"-").concat(t))}),[a,t,i])}}(E,t),L=x.logReactionRef,D=x.logReactionMenuRef;(0,k.Z)({associatedConstId:t,entityType:n,initialAggregateData:i,initialUserData:a});var V=(0,m.i9)(t,g.ly.EMOJI),H=(0,m.i9)(t,g.ly.INTERESTING),U=N(t),F=U.addReaction,z=U.deleteReaction,W=(0,b.VB)(t),X=(0,m.AE)(t,M);(0,h.LQ)({fetching:X===I.e.FETCHING,error:X===I.e.ERROR?{name:"",message:"",graphQLErrors:[]}:void 0,data:X===I.e.FETCHED},T,_);var Y=l.useMemo((function(){return(0,P.BO)(H,W,n,S,t,p)}),[H,W,n,S,p]),J=l.useMemo((function(){return(0,P.Fh)(V,W,n,S,t,p)}),[V,W,n,S,p]),q=l.useCallback((function(e,t){L(e,t),M?t?F(e):z(e):(0,y.r)()}),[L,F,z]),Q=l.useCallback((function(){D(),null===C||void 0===C||C(!0)}),[D,C]),K=l.useCallback((function(){null===C||void 0===C||C(!1)}),[C]);if(X===I.e.FETCHING)return(0,r.jsx)(B,{className:o});if(X===I.e.ERROR||!V||!H)return(0,r.jsx)(G,{className:o,"data-testid":g.z7.REACTION_SELECTOR_SPACER});var $=S.formatMessage(g.N2.SELECTOR_EMOJI_DROPDOWN_BUTTON);return(0,r.jsx)(Z,{cel_widget_id:A,className:o,children:(0,r.jsx)(u.jk,{thumbData:Y,reactionData:J,onSelect:q,reactionSelectorButtonAriaLabel:$,hideReactionChipList:s,onReactionSelectorMenuOpen:Q,onReactionSelectorMenuClosed:K,forceCloseButtonMenuSwitch:d,"data-testid":g.z7.REACTION_SELECTOR,reactionSelectorMenuButtonTestId:(0,w.F)(t)},"rsw-".concat(t))})},B=function(e){return(0,r.jsx)(Z,{className:e.className,children:(0,r.jsx)(z,{type:"dot"})})},F=function(e){return o.isBrowser?(0,r.jsx)(U,(0,i.Z)({},e)):(0,r.jsx)(B,(0,i.Z)({},e))},Z=d.default.div.withConfig({shouldForwardProp:function(e){return"string"!==typeof e||((0,s.Z)(e)||["cel_widget_id"].includes(e))}}).withConfig({componentId:"sc-41aa4f4e-0"})(L(),p.spacing.xxl),G=d.default.div.withConfig({componentId:"sc-41aa4f4e-1"})(D()),z=(0,d.default)(v.Loader).withConfig({componentId:"sc-41aa4f4e-2"})(V(),p.spacing.l)},65245:function(e,t,n){n.d(t,{T:function(){return o}});var i=n(2784),a=n(92232),r=n(37633),o=function(e,t){var n=(0,i.useState)(!1),o=n[0],s=n[1],l=(0,i.useState)(!1),c=l[0],d=l[1];(0,i.useEffect)((function(){o&&!c&&d(!0)}),[o,c]);var u=(0,r.Jf)(e,c,s);return(0,a.S)(e,u,t),c}},91025:function(e,t,n){n.d(t,{V:function(){return r}});var i=n(25140),a=["googlebot","bingbot","adidxbot"];function r(){var e,t=null===(e=(0,i.B)().context.headers)||void 0===e?void 0:e["user-agent"];if(!t)return!1;var n=t.toLowerCase();return a.some((function(e){return n.includes(e)}))}},56446:function(e,t,n){n.d(t,{k:function(){return c}});var i=n(52322),a=n(70314),r=n.n(a),o=n(45847),s=n.n(o),l=(n(2784),"next-jw-src"),c=function(){var e,t,n=null===(e=r()())||void 0===e||null===(t=e.publicRuntimeConfig)||void 0===t?void 0:t.jwPlayerAssetEndpoint;return(0,i.jsx)(s(),{src:n,id:l,strategy:"beforeInteractive"},"VideoEmbedJWPlayerAssets")}},25176:function(e,t,n){n.d(t,{G:function(){return o}});var i=n(52322),a=(n(2784),n(87206)),r=n(50911),o=function(e){var t,n,o,s=e.video,l=null===(t=s.timedTextTracks)||void 0===t?void 0:t.map((function(e){return(0,i.jsx)("track",{kind:"captions",src:e.url,srcLang:e.language,label:e.displayName.value},"".concat(s.id,"-ttt-").concat(e.language))}));return(0,i.jsx)(r.wW,{componentId:a.NG.VideoRobotDetection,children:(0,i.jsxs)("video",{poster:s.thumbnail.url,"data-testid":"video-fallback-player",style:{height:"100%",width:"100%"},controls:!0,children:[(0,i.jsx)("source",{src:null===(n=s.playbackURLs)||void 0===n?void 0:n[0].url,type:null===(o=s.playbackURLs)||void 0===o?void 0:o[0].videoMimeType}),l]})})}},57978:function(e,t,n){n.d(t,{Y:function(){return ia}});var i=n(47842),a=n(70865),r=n(96670),o=n(26297),s=n(52322),l=n(72779),c=n.n(l),d=n(2784),u=n(91025),v=n(87206),p=n(50911),f=n(9850),h=n.n(f),y=n(16189),g=n(78754),m=(0,y.createLogger)()("VideoPlayer"),I={jwPlayerConfig:{options:{autostart:"viewable",displaydescription:!1,displaytitle:!1,height:"100%",mute:!0,stretching:"fill",width:"100%"},eventHandlers:function(){return{playlistItem:function(e){this.jwPlayerInstance.play()},firstFrame:function(e){m.info("VideoPlayer-JW-FirstFrame",{jwContext:e}),(0,g.P6)("VideoPlayer-JW-FirstFrame")},setupError:function(e){m.error("VideoPlayer-JW-SetupError",{jwErrorContext:e})},error:function(e){m.error("VideoPlayer-JW-PlaybackError",{jwErrorContext:e})}}}}},b={jwPlayerConfig:{options:{autostart:"false",preload:"metadata",displaydescription:!1,displaytitle:!1,controls:!0,height:"100%",width:"100%",pipIcon:"disabled"},eventHandlers:function(e){return{playlistItem:function(){var t,n,i=this;if(this.jwPlayerPercentageTriggered)this.resetPercentageTriggeredMap();else{var a={0:[function(){var e;return null===(e=i.businessMetricsReporter)||void 0===e?void 0:e.reportContentT0()}],25:[function(){var e;return null===(e=i.businessMetricsReporter)||void 0===e?void 0:e.reportContentT25()}],50:[function(){var e;return null===(e=i.businessMetricsReporter)||void 0===e?void 0:e.reportContentT50()}],75:[function(){var e;return null===(e=i.businessMetricsReporter)||void 0===e?void 0:e.reportContentT75()}],90:[function(){var e;return null===(e=i.businessMetricsReporter)||void 0===e?void 0:e.reportContentT100()}]};this.createPercentageTriggeredMap(a)}if(this.jwPlayerViewTimeTriggered)this.resetViewTimeTriggeredMap();else{var r={2:[function(){var e;return null===(e=i.businessMetricsReporter)||void 0===e?void 0:e.reportViewTime(2)}],5:[function(){var e;return null===(e=i.businessMetricsReporter)||void 0===e?void 0:e.reportViewTime(5)}],10:[function(){var e;return null===(e=i.businessMetricsReporter)||void 0===e?void 0:e.reportViewTime(10)}]};this.createViewTimeHandlerMap(r)}null===e||void 0===e||null===(t=e.onPlayerReady)||void 0===t||t.call(e),null===(n=this.businessMetricsReporter)||void 0===n||n.reportLoadData()},ready:function(e){var t,n=e.setupTime;null===(t=this.operationalMetricsReporter)||void 0===t||t.videoReady(n)},firstFrame:function(e){var t,n,i=e.loadTime;null===(t=this.businessMetricsReporter)||void 0===t||t.reportContentStart(i),null===(n=this.operationalMetricsReporter)||void 0===n||n.videoStarted(i)},beforePlay:function(){var e;"playing"!==this.jwPlayerInstance.getState()&&(null===(e=this.businessMetricsReporter)||void 0===e||e.reportPlay())},play:function(t){var n,i=t.playReason;"interaction"===i&&this.setHasUserInteracted(!0);var a="interaction"===i?"interaction":"external";this.latestPlayerInteractionState={interactionType:a,interactedAction:"play"},null===e||void 0===e||null===(n=e.onPlaybackStart)||void 0===n||n.call(e)},pause:function(t){var n,i,a=t.pauseReason;"interaction"===a&&this.setHasUserInteracted(!0);var r="interaction"===a?"interaction":"external";this.latestPlayerInteractionState={interactionType:r,interactedAction:"pause"},null===(n=this.businessMetricsReporter)||void 0===n||n.reportPause(),null===e||void 0===e||null===(i=e.onPlaybackPaused)||void 0===i||i.call(e)},complete:function(){var t;this.hasNextPlaylistItem||(this.latestPlayerInteractionState={interactionType:void 0,interactedAction:void 0},this.setHasUserInteracted(!1)),this.autoStartReplayAttempted=!1,this.resetViewTimeTriggeredMap(),this.resetPercentageTriggeredMap(),null===e||void 0===e||null===(t=e.onPlaybackComplete)||void 0===t||t.call(e)},stopped:function(){var t;this.latestPlayerInteractionState={interactionType:void 0,interactedAction:void 0},this.setHasUserInteracted(!1),null===e||void 0===e||null===(t=e.onPlaybackStopped)||void 0===t||t.call(e)},mute:function(t){var n,i,a=t.mute;null===(n=this.businessMetricsReporter)||void 0===n||n.reportMute(a),a||(this.setHasUserInteracted(!0),this.setControls(!0)),null===e||void 0===e||null===(i=e.onPlayerMute)||void 0===i||i.call(e,a)},time:function(e){var t=e.currentTime,n=e.duration,i=e.position;this.triggerViewTimeHandlers(Math.floor(t)),this.triggerPercentageHandlers(n,i)},fullscreen:function(e){var t,n=e.fullscreen;this.setControls(!0),null===(t=this.businessMetricsReporter)||void 0===t||t.reportFullscreen(n)},setupError:function(e){var t;null===(t=this.operationalMetricsReporter)||void 0===t||t.setupError(e)},error:function(e){var t;null===(t=this.operationalMetricsReporter)||void 0===t||t.videoError(e)},buffer:function(e){var t;null===(t=this.operationalMetricsReporter)||void 0===t||t.videoBuffered(e)}}}}},P=n(20753),w={jwPlayerConfig:{options:{autostart:"false",controls:!1,mute:!0,preload:"auto",repeat:!0},eventHandlers:function(){return{playlistItem:function(e){this.jwPlayerInstance.pause(),window!==window.parent&&window.parent.postMessage(P.mB.playerReadyMessage,window.location.origin)},time:function(e){e.position>10&&this.jwPlayerInstance.seek(0)}}}},domHandler:function(e){return function(t){if(t.origin===window.location.origin)switch(t.data){case P.mB.signalPlayMessage:e.play();break;case P.mB.signalPauseMessage:e.pause()}}}},E=n(17068),T={jwPlayerConfig:{options:{displaydescription:!1,displaytitle:!1,height:"100%",mute:!0,preload:"metadata",repeat:!1,width:"100%",controls:!1,advertising:{client:"vast",vpaidcontrols:!0,creativeTimeout:3e3,requestTimeout:3e3},pipIcon:"disabled",aspectratio:"16:9",floating:{dismissible:!0,mode:"never"},autoPause:{pauseAds:!1,viewability:!1}},eventHandlers:function(e){var t=!1,n=!1;return{playlistItem:function(){var t,n,i=this;if(this.jwPlayerPercentageTriggered)this.resetPercentageTriggeredMap();else{var a={0:[function(){var e;return null===(e=i.businessMetricsReporter)||void 0===e?void 0:e.reportContentT0()}],25:[function(){var e;return null===(e=i.businessMetricsReporter)||void 0===e?void 0:e.reportContentT25()}],50:[function(){var e;return null===(e=i.businessMetricsReporter)||void 0===e?void 0:e.reportContentT50()}],75:[function(){var e;return null===(e=i.businessMetricsReporter)||void 0===e?void 0:e.reportContentT75()}],90:[function(){var e;return null===(e=i.businessMetricsReporter)||void 0===e?void 0:e.reportContentT100()}]};this.createPercentageTriggeredMap(a)}if(this.jwPlayerViewTimeTriggered)this.resetViewTimeTriggeredMap();else{var r={2:[function(){var e;return null===(e=i.businessMetricsReporter)||void 0===e?void 0:e.reportViewTime(2)}],5:[function(){var e;return null===(e=i.businessMetricsReporter)||void 0===e?void 0:e.reportViewTime(5)}],10:[function(){var e;return null===(e=i.businessMetricsReporter)||void 0===e?void 0:e.reportViewTime(10)}]};this.createViewTimeHandlerMap(r)}null===e||void 0===e||null===(t=e.onPlayerReady)||void 0===t||t.call(e),null===(n=this.businessMetricsReporter)||void 0===n||n.reportLoadData()},ready:function(e){var t,n=e.setupTime;null===(t=this.operationalMetricsReporter)||void 0===t||t.videoReady(n)},firstFrame:function(e){var t,n,i=e.loadTime;null===(t=this.businessMetricsReporter)||void 0===t||t.reportContentStart(i),null===(n=this.operationalMetricsReporter)||void 0===n||n.videoStarted(i)},adPlay:function(i){var a,r,o=i.playReason,s=i.adposition;(t="pre"===s,n)||(null===(r=this.businessMetricsReporter)||void 0===r||r.reportPlay());n=!1,"interaction"===o&&this.setHasUserInteracted(!0);var l="interaction"===o?"interaction":"external";this.latestPlayerInteractionState={interactionType:l,interactedAction:"play"},null===e||void 0===e||null===(a=e.onPlaybackStart)||void 0===a||a.call(e)},play:function(i){var a,r,o=i.playReason;t||this.playerState.beforeBufferState===E.QT.playing||n||(null===(r=this.businessMetricsReporter)||void 0===r||r.reportPlay());t=!1,n=!1,"interaction"===o&&this.setHasUserInteracted(!0);var s="interaction"===o?"interaction":"external";this.latestPlayerInteractionState={interactionType:s,interactedAction:"play"},null===e||void 0===e||null===(a=e.onPlaybackStart)||void 0===a||a.call(e)},adPause:function(t){var n,i,a=t.pauseReason;"interaction"===a&&this.setHasUserInteracted(!0);var r="interaction"===a?"interaction":"external";this.latestPlayerInteractionState={interactionType:r,interactedAction:"pause"},null===(n=this.businessMetricsReporter)||void 0===n||n.reportPause(),null===e||void 0===e||null===(i=e.onPlaybackPaused)||void 0===i||i.call(e)},pause:function(t){var n,i,a=t.pauseReason;"interaction"===a&&this.setHasUserInteracted(!0);var r="interaction"===a?"interaction":"external";this.latestPlayerInteractionState={interactionType:r,interactedAction:"pause"},null===(n=this.businessMetricsReporter)||void 0===n||n.reportPause(),null===e||void 0===e||null===(i=e.onPlaybackPaused)||void 0===i||i.call(e)},complete:function(){var t;this.hasNextPlaylistItem||(this.latestPlayerInteractionState={interactionType:void 0,interactedAction:void 0},this.setHasUserInteracted(!1)),this.resetViewTimeTriggeredMap(),this.resetPercentageTriggeredMap(),null===e||void 0===e||null===(t=e.onPlaybackComplete)||void 0===t||t.call(e)},stopped:function(){var t;this.latestPlayerInteractionState={interactionType:void 0,interactedAction:void 0},this.setHasUserInteracted(!1),null===e||void 0===e||null===(t=e.onPlaybackStopped)||void 0===t||t.call(e)},mute:function(t){var n,i,a=t.mute;null===(n=this.businessMetricsReporter)||void 0===n||n.reportMute(a),a||(this.setHasUserInteracted(!0),this.setControls(!0)),null===e||void 0===e||null===(i=e.onPlayerMute)||void 0===i||i.call(e,a)},time:function(e){var t=e.currentTime,n=e.duration,i=e.position;this.triggerViewTimeHandlers(Math.floor(t)),this.triggerPercentageHandlers(n,i)},fullscreen:function(e){var t,n=e.fullscreen;this.setControls(!0),null===(t=this.businessMetricsReporter)||void 0===t||t.reportFullscreen(n)},setupError:function(e){var t;null===(t=this.operationalMetricsReporter)||void 0===t||t.setupError(e)},error:function(e){var t;null===(t=this.operationalMetricsReporter)||void 0===t||t.videoError(e)},buffer:function(e){var t;null===(t=this.operationalMetricsReporter)||void 0===t||t.videoBuffered(e)},ageGate:function(e){var t;!e.enabled||n||this.playerState.hasPlayed||(null===(t=this.businessMetricsReporter)||void 0===t||t.reportVideoStart(),n=!0)}}}}},_=(0,y.createLogger)()("VideoPlayer"),C={jwPlayerConfig:{options:{controls:!1,displaydescription:!1,displaytitle:!1,height:"100%",mute:!0,preload:"metadata",repeat:!1,stretching:"fill",width:"100%"},eventHandlers:function(){return{playlistItem:function(e){this.jwPlayerInstance.pause(),window!==window.parent&&window.parent.postMessage(P.mB.playerReadyMessage,window.location.origin)},beforePlay:function(){window!==window.parent&&window.parent.postMessage(P.mB.playerPlaybackStartedMessage,window.location.origin)},complete:function(){window!==window.parent&&window.parent.postMessage(P.mB.playerPlaybackCompletedMessage,window.location.origin)},stopped:function(){window!==window.parent&&window.parent.postMessage(P.mB.playerPlaybackStoppedMessage,window.location.origin)},firstFrame:function(e){_.info("VideoPlayer-JW-FirstFrame",{jwContext:e}),(0,g.P6)("VideoPlayer-JW-FirstFrame")},setupError:function(e){_.info("VideoPlayer-JW-SetupError",{jwErrorContext:e})},error:function(e){_.error("VideoPlayer-JW-PlaybackError",{jwErrorContext:e})}}}},domHandler:function(e){return function(t){if(t.origin===window.location.origin)switch(t.data){case P.mB.signalPlayMessage:e.play();break;case P.mB.signalPauseMessage:e.pause();break;case P.mB.signalStopMessage:e.stop()}}}},A={jwPlayerConfig:{options:{autostart:"viewable",autoPause:{pauseAds:!1,viewability:!1},preload:"metadata",displaydescription:!1,displaytitle:!1,height:"100%",mute:!1,controls:!0,width:"100%",advertising:{client:"vast",vpaidcontrols:!0,creativeTimeout:3e3,requestTimeout:3e3},pipIcon:"disabled"},eventHandlers:function(e){return{playlistItem:function(){var t,n,i=this;if(this.jwPlayerPercentageTriggered)this.resetPercentageTriggeredMap();else{var a={0:[function(){var e;return null===(e=i.businessMetricsReporter)||void 0===e?void 0:e.reportContentT0()}],25:[function(){var e;return null===(e=i.businessMetricsReporter)||void 0===e?void 0:e.reportContentT25()}],50:[function(){var e;return null===(e=i.businessMetricsReporter)||void 0===e?void 0:e.reportContentT50()}],75:[function(){var e;return null===(e=i.businessMetricsReporter)||void 0===e?void 0:e.reportContentT75()}],90:[function(){var e;return null===(e=i.businessMetricsReporter)||void 0===e?void 0:e.reportContentT100()}]};this.createPercentageTriggeredMap(a)}if(this.jwPlayerViewTimeTriggered)this.resetViewTimeTriggeredMap();else{var r={2:[function(){var e;return null===(e=i.businessMetricsReporter)||void 0===e?void 0:e.reportViewTime(2)}],5:[function(){var e;return null===(e=i.businessMetricsReporter)||void 0===e?void 0:e.reportViewTime(5)}],10:[function(){var e;return null===(e=i.businessMetricsReporter)||void 0===e?void 0:e.reportViewTime(10)}]};this.createViewTimeHandlerMap(r)}null===e||void 0===e||null===(t=e.onPlayerReady)||void 0===t||t.call(e),null===(n=this.businessMetricsReporter)||void 0===n||n.reportLoadData()},ready:function(e){var t,n=e.setupTime;null===(t=this.operationalMetricsReporter)||void 0===t||t.videoReady(n)},firstFrame:function(e){var t,n,i=e.loadTime;null===(t=this.businessMetricsReporter)||void 0===t||t.reportContentStart(i),null===(n=this.operationalMetricsReporter)||void 0===n||n.videoStarted(i)},beforePlay:function(){var e;"playing"!==this.jwPlayerInstance.getState()&&(null===(e=this.businessMetricsReporter)||void 0===e||e.reportPlay())},play:function(t){var n,i=t.playReason;"interaction"===i&&this.setHasUserInteracted(!0);var a="interaction"===i?"interaction":"external";this.latestPlayerInteractionState={interactionType:a,interactedAction:"play"},null===e||void 0===e||null===(n=e.onPlaybackStart)||void 0===n||n.call(e)},pause:function(t){var n,i,a,r=t.pauseReason;if("autostart"===r&&!this.autoStartReplayAttempted)return null===(a=this.jwPlayerInstance)||void 0===a||a.play(),void(this.autoStartReplayAttempted=!0);"interaction"===r&&this.setHasUserInteracted(!0);var o="interaction"===r?"interaction":"external";this.latestPlayerInteractionState={interactionType:o,interactedAction:"pause"},null===(n=this.businessMetricsReporter)||void 0===n||n.reportPause(),null===e||void 0===e||null===(i=e.onPlaybackPaused)||void 0===i||i.call(e)},complete:function(){var t;this.hasNextPlaylistItem||(this.latestPlayerInteractionState={interactionType:void 0,interactedAction:void 0},this.setHasUserInteracted(!1)),this.autoStartReplayAttempted=!1,this.resetViewTimeTriggeredMap(),this.resetPercentageTriggeredMap(),null===e||void 0===e||null===(t=e.onPlaybackComplete)||void 0===t||t.call(e)},stopped:function(){var t;this.latestPlayerInteractionState={interactionType:void 0,interactedAction:void 0},this.setHasUserInteracted(!1),null===e||void 0===e||null===(t=e.onPlaybackStopped)||void 0===t||t.call(e)},mute:function(t){var n,i,a=t.mute;null===(n=this.businessMetricsReporter)||void 0===n||n.reportMute(a),a||(this.setHasUserInteracted(!0),this.setControls(!0)),null===e||void 0===e||null===(i=e.onPlayerMute)||void 0===i||i.call(e,a)},time:function(e){var t=e.currentTime,n=e.duration,i=e.position;this.triggerViewTimeHandlers(Math.floor(t)),this.triggerPercentageHandlers(n,i)},fullscreen:function(e){var t,n=e.fullscreen;this.setControls(!0),null===(t=this.businessMetricsReporter)||void 0===t||t.reportFullscreen(n)},setupError:function(e){var t;null===(t=this.operationalMetricsReporter)||void 0===t||t.setupError(e)},error:function(e){var t;null===(t=this.operationalMetricsReporter)||void 0===t||t.videoError(e)},buffer:function(e){var t;null===(t=this.operationalMetricsReporter)||void 0===t||t.videoBuffered(e)}}}}},S=(0,y.createLogger)()("VideoPlayer"),M={jwPlayerConfig:{options:{controls:!1,displaydescription:!1,displaytitle:!1,height:"100%",mute:!0,preload:"metadata",repeat:!1,stretching:"fill",width:"100%",aspectratio:"16:9"},eventHandlers:function(e){return{playlistItem:function(t){var n;this.jwPlayerInstance.pause(),null===e||void 0===e||null===(n=e.onPlayerReady)||void 0===n||n.call(e)},play:function(){var t;null===e||void 0===e||null===(t=e.onPlaybackStart)||void 0===t||t.call(e)},pause:function(){var t;null===e||void 0===e||null===(t=e.onPlaybackPaused)||void 0===t||t.call(e)},beforePlay:function(){},complete:function(){var t;null===e||void 0===e||null===(t=e.onPlaybackComplete)||void 0===t||t.call(e)},stopped:function(){var t;null===e||void 0===e||null===(t=e.onPlaybackStopped)||void 0===t||t.call(e)},firstFrame:function(e){S.info("VideoPlayer-JW-FirstFrame",{jwContext:e}),(0,g.P6)("VideoPlayer-JW-FirstFrame")},setupError:function(e){S.info("VideoPlayer-JW-SetupError",{jwErrorContext:e})},error:function(e){S.error("VideoPlayer-JW-PlaybackError",{jwErrorContext:e})}}}}},x=n(57862),N=h()(A);N.jwPlayerConfig.options=(0,r.Z)((0,a.Z)({},N.jwPlayerConfig.options),{controls:!1,advertising:(0,r.Z)((0,a.Z)({},N.jwPlayerConfig.options.advertising),{client:"vast",autoplayadsmuted:!0})});var k=h()(N);k.jwPlayerConfig.options=(0,r.Z)((0,a.Z)({},k.jwPlayerConfig.options),{mute:!0});var R,j=h()(b);j.jwPlayerConfig.options.autostart="true";var O,L=(R={},(0,i.Z)(R,x.$.DEFAULT_CONFIG,I),(0,i.Z)(R,x.$.EMBED_VIDEO_PLAYBACK,b),(0,i.Z)(R,x.$.EMBED_VIDEO_PLAYBACK_PRO,j),(0,i.Z)(R,x.$.INLINE_HOVER_PREVIEW,w),(0,i.Z)(R,x.$.INLINE_VIDEO_PLAYBACK,T),(0,i.Z)(R,x.$.INLINE_VIDEO_PREVIEW,C),(0,i.Z)(R,x.$.NATIVE_VIDEO_PREVIEW,M),(0,i.Z)(R,x.$.PLAYBACK_PAGE_PLAYER_CONFIG,A),(0,i.Z)(R,x.$.PLAYBACK_PAGE_PLAYER_CONFIG_AUTOPAUSE,N),(0,i.Z)(R,x.$.PLAYBACK_PAGE_PLAYER_CONFIG_AUTOPAUSE_MUTED,k),R),D=function(e){var t=e.container,n=e.checkAddedElementIsTarget,i=e.observerOptions,a=void 0===i?{subtree:!0,childList:!0}:i,r=(0,d.useState)(null),o=r[0],s=r[1];return(0,d.useEffect)((function(){if(t&&null===o){var e=new MutationObserver((function(t){t.forEach((function(t){var i;if("childList"===t.type){var a=null===(i=t.addedNodes)||void 0===i?void 0:i[0];if(a)return n(a)?(s(a),void e.disconnect()):void 0}}))}));return e.observe(t,a),function(){e.disconnect()}}}),[t,n,a]),o},V=n(83535),H=n(14462),U=n(45103),B=function(e){var t=e.playbackData,n=e.playerInstance,i=e.isStickyPlayerActive,a=(0,d.useState)(!1),r=a[0],o=a[1],s=(0,d.useState)(!1),l=s[0],c=s[1],u=(0,U.useBreakpointsAsConfig)(),v=u.xs||u.s;(0,d.useEffect)((function(){c(v||i)}),[v,i]),(0,d.useEffect)((function(){var e=(null===t||void 0===t?void 0:t.isMature)||!1;o(e),null===n||void 0===n||n.setIsAgeGateEnabled(e)}),[t,n]);return{shouldShowAgeGate:r,onAgeGateSubmit:function(e){var t=function(e){var t=new Date,n=t.getFullYear()-e.getFullYear(),i=t.getMonth()-e.getMonth();return(i<0||0===i&&t.getDate()=17}(e);return o(!t),null===n||void 0===n||n.setIsAgeGateEnabled(!t),t&&((null===n||void 0===n?void 0:n.getCanEnableStickyPlayer())&&(null===n||void 0===n?void 0:n.getIsPlayerDismissed())&&(null===n||void 0===n||n.setIsPlayerDismissed(!1),null===n||void 0===n||n.setHasUserInteracted(!0)),null===n||void 0===n||n.play()),{isValidated:t}},shouldEnableCTA:l}},F=n(66383),Z=function(e){var t=e.wrapperElement,n=e.playerInstance,i=(0,F.Z)(d.useState(void 0),2),a=i[0],r=i[1],o=(0,F.Z)(d.useState(!!(null===n||void 0===n?void 0:n.getControls())),2),s=o[0],l=o[1];return function(e,t){D({container:e,checkAddedElementIsTarget:function(e){var n;return!!(null===e||void 0===e||null===(n=e.classList)||void 0===n?void 0:n.contains(V.pn.CONTROLS_CONTAINER))&&(t(e),!0)}})}(t,r),d.useEffect((function(){null===n||void 0===n||n.setEventHandlers({onControls:function(e){var t=e.eventData.controls;s!==t&&l(t)}});var e=!!(null===n||void 0===n?void 0:n.getControls());s!==e&&l(e)}),[n]),!!a&&s},G=n(14865),z=n(25140),W=n(43814),X=n(98788),Y=n(90581),J=n(45680),q=n(28683),Q=n(50930),K=n(29092),$=n(91842),ee=n(37437),te=n(95507),ne=n(97537),ie=n(25436),ae=n(34889),re=n(21495),oe=(0,y.createLogger)()("OperationalMetricsReporter"),se=function(){function e(t,n){(0,Y.Z)(this,e),this.playerState=n,this.reset(t)}var t=e.prototype;return t.reset=function(e){this.options=e,this._metricData=new re.j({requestContext:e.requestContext})},t.reportMetric=function(e){var t=this;return(0,X.Z)((function(){var n,i,r;return(0,J.__generator)(this,(function(o){switch(o.label){case 0:if(n=Array.isArray(e)?e:[e],0===(i=n.map((function(e){var n=t._metricData.get(e);return n&&(n.context=(0,a.Z)({},n.context,t.options.metadata)),n||oe.error("No metric data found: ".concat(e)),n})).filter((function(e){return!!e}))).length)return[2];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,(0,ae.cY)(i)];case 2:return o.sent(),[3,4];case 3:return r=o.sent(),oe.error("Error reporting Video Operational Metrics",n,r),[3,4];case 4:return[2]}}))}))()},t.calculateRebufferDuration=function(e){var t=this._metricData.getMetricValue(ie.NextClientMetrics.VIDEO_REBUFFER_COUNT)||0,n=Math.round(e),i=0===t?0:n/t;this._metricData.set({metricName:ie.NextClientMetrics.VIDEO_REBUFFER_DURATION,value:n,unit:ie.Unit.MILLISECONDS}),this._metricData.set({metricName:ie.NextClientMetrics.VIDEO_AVG_BUFFER,value:i,unit:ie.Unit.MILLISECONDS})},t.adError=function(e){this._metricData.set({metricName:ie.NextClientMetrics.AD_VIDEO_ERROR,value:1,unit:ie.Unit.COUNT,context:{time:(new Date).getTime(),errorCode:e.code,message:e.message,suspectAdBlock:e.suspectAdBlock}}),this.reportMetric(ie.NextClientMetrics.AD_VIDEO_ERROR)},t.adImpression=function(e){this._metricData.set([{metricName:ie.NextClientMetrics.AD_VIDEO_START,value:1,unit:ie.Unit.COUNT},{metricName:ie.NextClientMetrics.AD_VIDEO_FIRST_FRAME,value:Math.round(e),unit:ie.Unit.MILLISECONDS}]),this.reportMetric([ie.NextClientMetrics.AD_VIDEO_START,ie.NextClientMetrics.AD_VIDEO_FIRST_FRAME])},t.setupError=function(e){var t;this._metricData.set({metricName:ie.NextClientMetrics.VIDEO_SETUP_ERROR,value:1,unit:ie.Unit.COUNT,context:{time:(new Date).getTime(),errorCode:e.code,sourceError:(null===(t=e.sourceError)||void 0===t?void 0:t.message)||void 0}}),this.reportMetric(ie.NextClientMetrics.VIDEO_SETUP_ERROR)},t.videoBuffered=function(e){e.newstate!==E.QT.buffering||e.oldstate!==E.QT.playing||this._metricData.get(ie.NextClientMetrics.VIDEO_STALL)||this.playerState.isSeek||(this._metricData.set({metricName:ie.NextClientMetrics.VIDEO_STALL,value:1,unit:ie.Unit.COUNT}),this.reportMetric(ie.NextClientMetrics.VIDEO_STALL)),this._metricData.increment(ie.NextClientMetrics.VIDEO_REBUFFER_COUNT)},t.videoError=function(e){var t;this._metricData.set({metricName:ie.NextClientMetrics.VIDEO_ERROR,value:1,unit:ie.Unit.COUNT,context:{time:(new Date).getTime(),errorCode:e.code,sourceError:(null===(t=e.sourceError)||void 0===t?void 0:t.message)||void 0}}),this.reportMetric(ie.NextClientMetrics.VIDEO_ERROR)},t.videoReady=function(e){this._metricData.set({metricName:ie.NextClientMetrics.VIDEO_READY,value:Math.round(e),unit:ie.Unit.MILLISECONDS}),this.reportMetric(ie.NextClientMetrics.VIDEO_READY)},t.videoStarted=function(e){this._metricData.set([{metricName:ie.NextClientMetrics.VIDEO_FIRST_FRAME,value:Math.round(e),unit:ie.Unit.MILLISECONDS},{metricName:ie.NextClientMetrics.VIDEO_START,value:1,unit:ie.Unit.COUNT}]),this.reportMetric([ie.NextClientMetrics.VIDEO_FIRST_FRAME,ie.NextClientMetrics.VIDEO_START])},e}(),le=n(75502),ce=function(){function e(t){(0,Y.Z)(this,e),this.permissionData={permission:ee.y.PENDING,key:""},this.assetName=t}var t=e.prototype;return t.setup=function(e){if(!this.assetName)throw new Error("No asset name provided.");if(this.mediaOrchestrator=window.MediaOrchestrator_V1,!this.mediaOrchestrator)throw new Error("MediaOrchestrator_V1 not found on window.");this.mediaOrchestrator.subscribeToNotifications(this.assetName,e)},t.isAllowedToPlay=function(e,t){return!(!this.mediaOrchestrator||!this.assetName)&&(this.mediaOrchestrator.requestPlayback({name:this.assetName,userInitiated:t,videoFrame:e}),!(this.permissionData.permission!==ee.y.GRANTED||!this.permissionData.key))},t.setPlay=function(){var e;null===(e=this.mediaOrchestrator)||void 0===e||e.setMediaPlay({key:this.permissionData.key})},t.setPaused=function(){var e;null===(e=this.mediaOrchestrator)||void 0===e||e.setMediaPaused({key:this.permissionData.key})},t.setEnded=function(){var e;null===(e=this.mediaOrchestrator)||void 0===e||e.setMediaEnded({key:this.permissionData.key})},t.setPermissionData=function(e){this.permissionData.permission=e.permission,this.permissionData.key=e.key},t.resizeVideoFrame=function(e){var t;null===(t=this.mediaOrchestrator)||void 0===t||t.updateAssetFrameLocation(this.assetName,e)},e}();!function(e){e.UPDATED="permissionUpdated"}(O||(O={}));var de,ue=function(e,t){var n=this;this.canActivateStickyPlayer;var i={overrideIsUserInitiated:!1},r=(0,y.createLogger)()("MediaInteroperabilityPlugin"),o=function(e){return"[".concat(t.assetName,"] ").concat(e)},s=new ce(t.assetName);try{s.setup((function(t){s.setPermissionData(t),e.trigger(O.UPDATED,t)}))}catch(v){return void r.error(o("Media Interoperability could not be set up. Error: ".concat(v)))}var l=function(t){var n,i=e.getContainer(),a=e.getFloating(),r=a?null===(n=i.querySelector(V.CF))||void 0===n?void 0:n.getBoundingClientRect():i.getBoundingClientRect(),o=e.getFullscreen();return{x:r.x+(o?0:window.scrollX),y:r.y+(o?0:window.scrollY),height:r.height,width:r.width,isFullscreen:o,isSticky:t||a}},c=function(t){(function(){var t,n=window.event;return!(!n||!/^(?:mouse|pointer|touch|gesture|click|key)/.test(n.type))&&!!(null===(t=e.getContainer())||void 0===t?void 0:t.contains(n.target))})()||t.reason!==E.qh.USER_INTERACTION||(t.reason=E.qh.EXTERNAL,r.log(o("Override ".concat(E.qh.USER_INTERACTION," with ").concat(E.qh.EXTERNAL))))},d=(0,a.Z)({},e);Object.assign(e,{play:function(e){var t=(null===e||void 0===e?void 0:e.reason)===E.qh.USER_INTERACTION||i.overrideIsUserInitiated;if(i.overrideIsUserInitiated=!1,r.log(o("play attempt - isUserInitiated: ".concat(t))),s.isAllowedToPlay(l(),t))return c(e),d.play.call(this,e);r.log(o("play ABORTED - Asset denied."))},pause:function(e){return c(e),d.pause.call(this,e)},stop:function(){var e=d.stop.call(this);return s.setEnded(),r.log(o("stopped - ".concat(t.assetName," has ended"))),e}}),e.on("play",(function(){s.setPlay(),r.log(o("play"))})),e.on("adPlay",(function(){s.setPlay(),r.log(o("play"))})),e.on("pause",(function(){s.setPaused(),r.log(o("pause"))})),e.on("adPause",(function(){s.setPaused(),r.log(o("pause"))})),e.on("idle",(function(){s.setPaused(),r.log(o("idle - ".concat(t.assetName," has paused")))})),Object.assign(this,{resize:function(){s.resizeVideoFrame(l()),r.log(o("resize"))},forceUserInitiated:function(){i.overrideIsUserInitiated=!0},getVideoFrame:function(){return l()},endMediaInteroperability:function(){s.setEnded()},setCanActivateStickyPlayer:function(e){this.canActivateStickyPlayer=e}});var u=new IntersectionObserver((function(e){e.forEach((function(e){var t,i,a=!!(null===(i=(t=n).canActivateStickyPlayer)||void 0===i?void 0:i.call(t,e.isIntersecting));s.resizeVideoFrame(l(a))}))}),{root:null,threshold:.5});e.on("ready",(function(){u.observe(e.getContainer())})),e.on("remove",(function(){u.unobserve(e.getContainer())}))},ve=10303,pe=["pointerdown","mousedown","touchstart"],fe={SMALL:12.44,MED:14.44,LARGE:16.43},he={SMALL:15.43,MED:17.91,LARGE:20.41},ye=function(e){e.stopImmediatePropagation()},ge=function(){function e(t){var n=t.playerElement,i=t.configPresetName,o=void 0===i?x.$.DEFAULT_CONFIG:i,s=t.configEventHandlers,l=t.playerEventHandlers,c=t.assetName,d=t.disableBIMetrics,u=this;(0,Y.Z)(this,e),this.hasUserInteracted=!1,this.hasNextPlaylistItem=!1,this.hasPreviousPlaylistItem=!1,this.isAgeGateEnabled=!1,this.shouldToggleVideoControlsForAgeGate=!1,this.isPlayerDismissed=!1,this.shouldActivateStickyOnExitFullscreen=!1,this.hasStickyPlayerConfig=!1,this.autoStartReplayAttempted=!1,this.autostartTriggeredForVideo=!1,this.startedObservingControlsChanges=!1,this.latestPlayerInteractionState={interactedAction:void 0,interactionType:void 0},this.latestTimedTextTrackStyle={},this.latestVideoWidth=Number.MAX_VALUE,this.assetMediaOrchestrationInfo={name:void 0,permission:ee.y.PENDING,key:void 0},this.playerReadyPromise=function(){return new Promise((function(e){var t;null===(t=u.jwPlayerInstance)||void 0===t||t.on("ready",(function(){e()}))}))},this.bindEventHandlers=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.keys(u._defaultEventHandlers).forEach((function(e){var t;null===(t=u.jwPlayerInstance)||void 0===t||t.on(e,u._defaultEventHandlers[e],u)})),Object.keys(e).forEach((function(t){var n;null===(n=u.jwPlayerInstance)||void 0===n||n.on(t,e[t],u)}))},this._defaultEventHandlers={ready:function(e){var t,n,i,a,r=this;this.hasStickyPlayerConfig&&(null===(a=null===(i=this.jwPlayerInstance)||void 0===i?void 0:i.getPlugin("MediaInteroperabilityPlugin"))||void 0===a||a.setCanActivateStickyPlayer((function(e){return r._canActivateStickyPlayer(e)})));null===(t=this.playerEventHandlers)||void 0===t||null===(n=t.onReady)||void 0===n||n.call(t,{videoInstance:this,eventData:e}),this.startedObservingControlsChanges||this._observeControls()},adPlay:function(e){var t,n;this.playerState.isAdPresent=!0,this.playerState.hasPlayed=!0,this.playerState.isSeek=!1,this.playerState.isNavigating=!1,null===(t=this.playerEventHandlers)||void 0===t||null===(n=t.onAdPlay)||void 0===n||n.call(t,{videoInstance:this,eventData:(0,r.Z)((0,a.Z)({},e),{newstate:E.fy[e.newstate],oldstate:E.fy[e.oldstate]})})},beforePlay:function(){var e,t;null===(e=this.playerEventHandlers)||void 0===e||null===(t=e.onBeforePlay)||void 0===t||t.call(e,{videoInstance:this})},play:function(e){var t,n,i=e.playReason,a=e.oldstate;this.playerState.hasPlayed=!0,this.playerState.isSeek=!1,this.playerState.isNavigating=!1;var r={playReason:E.rb[i],oldstate:E.fy[a]};null===(t=this.playerEventHandlers)||void 0===t||null===(n=t.onPlay)||void 0===n||n.call(t,{videoInstance:this,eventData:r})},pause:function(e){var t,n,i=e.pauseReason,a=e.oldstate;this.playerState.isSeek=!1;var r={pauseReason:E.rb[i],oldstate:E.fy[a]};null===(t=this.playerEventHandlers)||void 0===t||null===(n=t.onPause)||void 0===n||n.call(t,{videoInstance:this,eventData:r})},idle:function(){this.playerState.isSeek=!1},stopped:function(e){var t,n,i=e.oldstate;this.playerState.isSeek=!1;var a={oldstate:E.fy[i]};null===(t=this.playerEventHandlers)||void 0===t||null===(n=t.onStop)||void 0===n||n.call(t,{videoInstance:this,eventData:a})},buffer:function(e){this.playerState.beforeBufferState=e.oldstate},seek:function(){this.playerState.isSeek=!0},beforeComplete:function(){this.hasNextPlaylistItem&&(this.playerState.isNavigating=!0)},complete:function(){var e,t;this.playerState.hasPlayed=!1,null===(e=this.playerEventHandlers)||void 0===e||null===(t=e.onComplete)||void 0===t||t.call(e,{videoInstance:this}),this.hasNextPlaylistItem&&this._onNextPlaylistItem({trigger:"complete"})},mute:function(e){var t,n,i={mute:e.mute};null===(t=this.playerEventHandlers)||void 0===t||null===(n=t.onMute)||void 0===n||n.call(t,{videoInstance:this,eventData:i})},playlistItem:function(e){var t,n,i,a=e.index,r=e.item;this.autostartTriggeredForVideo=!1;var o,s=null===(t=r.sources)||void 0===t?void 0:t[0].isMature;s&&(null===(o=this.jwPlayerInstance)||void 0===o||o.setConfig({autostart:!1}));var l={index:a};null===(n=this.playerEventHandlers)||void 0===n||null===(i=n.onPlaylistItemUpdate)||void 0===i||i.call(n,{videoInstance:this,eventData:l}),this.firstPlaylistItemLoadFile?this.firstPlaylistItemLoadFile!==r.file&&(this.firstPlaylistItemLoadFile=r.file,s||this.play()):this.firstPlaylistItemLoadFile=r.file},adBreakStart:function(){var e,t;null===(e=this.playerEventHandlers)||void 0===e||null===(t=e.onAdBreakStart)||void 0===t||t.call(e,{videoInstance:this})},adImpression:function(e){var t,n,i,a,r,o=e.timeLoading;null===(t=this.businessMetricsReporter)||void 0===t||t.reportAdT0(),null===(n=this.operationalMetricsReporter)||void 0===n||n.adImpression(o),this.showControlsAfterAd=null===(i=this.jwPlayerInstance)||void 0===i?void 0:i.getControls(),this.setControls(!0,!0),null===(a=this.playerEventHandlers)||void 0===a||null===(r=a.onAdImpression)||void 0===r||r.call(a,{videoInstance:this})},adComplete:function(){var e;this.playerState.isAdPresent=!1,null===(e=this.businessMetricsReporter)||void 0===e||e.reportAdT100(),this.setControls(this.showControlsAfterAd,!0)},adSkipped:function(){var e;this.playerState.isAdPresent=!1,null===(e=this.businessMetricsReporter)||void 0===e||e.reportAdSkipped(),this.setControls(this.showControlsAfterAd,!0)},adError:function(e){var t,n;this.playerState.isAdPresent=!1,e.adErrorCode!==ve&&(null===(t=this.operationalMetricsReporter)||void 0===t||t.adError({code:e.adErrorCode,message:e.message,adURL:e.tag,suspectAdBlock:null===(n=this.jwPlayerInstance)||void 0===n?void 0:n.getAdBlock()}))},adBreakEnd:function(){var e,t;this.playerState.isAdPresent=!1,this.setControls(this.showControlsAfterAd,!0),null===(e=this.playerEventHandlers)||void 0===e||null===(t=e.onAdBreakEnd)||void 0===t||t.call(e,{videoInstance:this})},adLoadedXML:function(e){var t,n;null===(t=this.playerEventHandlers)||void 0===t||null===(n=t.onAdLoadedXML)||void 0===n||n.call(t,{videoInstance:this,eventData:e})},permissionUpdated:function(e){var t,n,i=e.permission,a=e.key;this.assetMediaOrchestrationInfo.permission=i,this.assetMediaOrchestrationInfo.key=a,null===(t=this.playerEventHandlers)||void 0===t||null===(n=t.onPermissionUpdated)||void 0===n||n.call(t,{videoInstance:this,eventData:{permission:i,key:a}})},playAttemptFailed:function(e){var t;this.autostartTriggeredForVideo||"NotAllowedError"!==e.error.name||(null===(t=this.businessMetricsReporter)||void 0===t||t.reportAutoplayBlocked(),this.autostartTriggeredForVideo=!0)},autostartNotAllowed:function(e){var t,n,i;this.autostartTriggeredForVideo||"NotAllowedError"!==e.error.name||(null===(i=this.businessMetricsReporter)||void 0===i||i.reportAutoplayBlocked(),this.autostartTriggeredForVideo=!0);null===(t=this.playerEventHandlers)||void 0===t||null===(n=t.onAutoStartNotAllowed)||void 0===n||n.call(t,{videoInstance:this,eventData:e})},fullscreen:function(e){e.fullscreen&&this.getIsStickyPlayerActive()&&(this.setStickyPlayerActiveState(!1),this.shouldActivateStickyOnExitFullscreen=!0),!e.fullscreen&&this.shouldActivateStickyOnExitFullscreen&&(this.shouldActivateStickyOnExitFullscreen=!1,this.isPlayerDismissed||this.setStickyPlayerActiveState(!0))},playerDismiss:function(e){var t,n;null===(t=this.playerEventHandlers)||void 0===t||null===(n=t.onPlayerDismiss)||void 0===n||n.call(t,{videoInstance:this,eventData:e})},float:function(e){var t,n;null===(t=this.playerEventHandlers)||void 0===t||null===(n=t.onFloat)||void 0===n||n.call(t,{videoInstance:this,eventData:e})},captionsList:function(e){var t,n;null===(t=this.playerEventHandlers)||void 0===t||null===(n=t.onCaptionsList)||void 0===n||n.call(t,{videoInstance:this,eventData:e})},firstFrame:function(e){var t,n;null===(t=this.playerEventHandlers)||void 0===t||null===(n=t.onFirstFrame)||void 0===n||n.call(t,{videoInstance:this,eventData:e})},ageGate:function(e){var t,n;null===(t=this.playerEventHandlers)||void 0===t||null===(n=t.onAgeGate)||void 0===n||n.call(t,{videoInstance:this,eventData:e})},resize:function(e){this.latestVideoWidth=e.width,this.setTimedTextTrackStyle(this.latestTimedTextTrackStyle)},controls:function(e){var t,n;null===(t=this.playerEventHandlers)||void 0===t||null===(n=t.onControls)||void 0===n||n.call(t,{videoInstance:this,eventData:e})}},this.jwPlayerElement=n,this.jwPlayerConfig=L[o].jwPlayerConfig,this.jwPlayerEventHandlers=this.jwPlayerConfig.eventHandlers(s),this.playerEventHandlers=l,this.assetMediaOrchestrationInfo.name=c,this.disableBIMetrics=null!==d&&void 0!==d&&d,this.playerState={isSeek:!1,hasPlayed:!1,beforeBufferState:E.QT.idle,isNavigating:!1,isAdPresent:!1},this.showControlsAfterAd=void 0===this.jwPlayerConfig.options.controls||this.jwPlayerConfig.options.controls,this.hasStickyPlayerConfig=!!this.jwPlayerConfig.options.floating}var t=e.prototype;return t.initialize=function(e,t,n,i,o,s){var l=this;return(0,X.Z)((function(){var c,d,u,v;return(0,J.__generator)(this,(function(p){switch(p.label){case 0:return l.currentPlaylistItem=e,window.jwplayer?[3,2]:[4,new Promise((function(e){var t=setInterval((function(){if(window.jwplayer)return clearInterval(t),e()}),50)}))];case 1:p.sent(),p.label=2;case 2:return l.disableBIMetrics||(d={type:i.type,subType:i.subType||"",id:t,pageActionConst:n.pageConst||""},l.businessMetricsReporter=new ne.LI(d),l.businessMetricsReporter.setAdTrackers(o)),l.operationalMetricsReporter=new se({requestContext:n,metadata:{viconst:t}},l.playerState),(u=window.jwplayer).key=P.XW,u().registerPlugin("MediaInteroperabilityPlugin","8.0",ue),v=!!l.assetMediaOrchestrationInfo.name,l.jwPlayerInstance=u(l.jwPlayerElement.id),null===(c=l.jwPlayerInstance)||void 0===c||c.setup((0,a.Z)((0,r.Z)((0,a.Z)({},l.jwPlayerConfig.options),{logo:s,playlist:[e]}),v&&{plugins:{MediaInteroperabilityPlugin:{assetName:l.assetMediaOrchestrationInfo.name}}})),l.bindEventHandlers(l.jwPlayerEventHandlers),[4,l.playerReadyPromise()];case 3:return p.sent(),[2,l]}}))}))()},t.load=function(e,t,n,i,a){var r;if(this.currentPlaylistItem=e,n){var o,s,l,c={type:(null===i||void 0===i?void 0:i.type)||n.pageType,subType:(null===i||void 0===i?void 0:i.subType)||n.subPageType||"",id:t,pageActionConst:n.pageConst||""};null===(o=this.businessMetricsReporter)||void 0===o||o.updateBusinessMetricsContext(c),null===(s=this.businessMetricsReporter)||void 0===s||s.setAdTrackers(a),null===(l=this.operationalMetricsReporter)||void 0===l||l.reset({requestContext:n,metadata:{viconst:t}})}null===(r=this.jwPlayerInstance)||void 0===r||r.load([e])},t.setEventHandlers=function(e){this.playerEventHandlers=Object.assign({},this.playerEventHandlers,e)},t.removeEventHandlers=function(e){var t=this;e.forEach((function(e){var n;(null===(n=t.playerEventHandlers)||void 0===n?void 0:n[e])&&delete t.playerEventHandlers[e]}))},t.triggerPercentageHandlers=function(e,t){var n=this;this.jwPlayerPercentageTriggered&&Object.keys(this.jwPlayerPercentageTriggered).forEach((function(i){var a=(0,F.Z)(n.jwPlayerPercentageTriggered[i],2),r=a[0],o=a[1];r||Math.floor(t/e*100)>=parseInt(i)&&(o.forEach((function(e){return e()})),n.jwPlayerPercentageTriggered[i][0]=!0)}))},t.createPercentageTriggeredMap=function(e){this.jwPlayerPercentageTriggered=Object.keys(e).reduce((function(t,n){return t[n]=[!1,e[n]],t}),{})},t.resetPercentageTriggeredMap=function(){var e=this;this.jwPlayerPercentageTriggered&&Object.keys(this.jwPlayerPercentageTriggered).forEach((function(t){e.jwPlayerPercentageTriggered[t][0]=!1}))},t.createViewTimeHandlerMap=function(e){this.jwPlayerViewTimeTriggered=Object.keys(e).reduce((function(t,n){return t[n]=[!1,e[n]],t}),{})},t.resetViewTimeTriggeredMap=function(){var e=this;this.jwPlayerViewTimeTriggered&&Object.keys(this.jwPlayerViewTimeTriggered).forEach((function(t){e.jwPlayerViewTimeTriggered[t][0]=!1}))},t.triggerViewTimeHandlers=function(e){var t=this;this.jwPlayerViewTimeTriggered&&Object.keys(this.jwPlayerViewTimeTriggered).forEach((function(n){var i=(0,F.Z)(t.jwPlayerViewTimeTriggered[n],2),a=i[0],r=i[1];a||e>=parseInt(n)&&(r.forEach((function(e){return e()})),t.jwPlayerViewTimeTriggered[n][0]=!0)}))},t.trigger=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i1&&void 0!==arguments[1]&&arguments[1];null===(t=this.jwPlayerInstance)||void 0===t||t.setControls(e),this.trigger("controls",{controls:e}),n||(this.showControlsAfterAd=e)},t.getHasUserInteracted=function(){return this.hasUserInteracted},t.setHasUserInteracted=function(e){this.hasUserInteracted=e},t.getLatestPlayerInteractionState=function(){return this.latestPlayerInteractionState},t.hasPlayed=function(){return this.playerState.hasPlayed},t.setHasNextPlaylistItem=function(e){this.hasNextPlaylistItem=e},t.setHasPreviousPlaylistItem=function(e){this.hasPreviousPlaylistItem=e},t.getIsAgeGateEnabled=function(){return this.isAgeGateEnabled},t.setIsAgeGateEnabled=function(e){var t;if(e!==this.isAgeGateEnabled){this.isAgeGateEnabled=e,this.trigger("ageGate",{enabled:e});var n,i,a,r=null===(t=this.jwPlayerInstance)||void 0===t?void 0:t.getContainer();if(e)null===r||void 0===r||r.classList.add(V.pn.AGE_GATE_FLAG),this.shouldToggleVideoControlsForAgeGate=this.shouldToggleVideoControlsForAgeGate||(null===(n=this.jwPlayerInstance)||void 0===n?void 0:n.getControls()),this.setControls(!1);else null===(i=this.jwPlayerInstance)||void 0===i||i.setConfig({autostart:null!==(a=this.jwPlayerConfig.options.autostart)&&void 0!==a&&a}),null===r||void 0===r||r.classList.remove(V.pn.AGE_GATE_FLAG),this.shouldToggleVideoControlsForAgeGate&&(this.setControls(!0),this.shouldToggleVideoControlsForAgeGate=!1)}},t.getCanEnableStickyPlayer=function(){return!!this.hasStickyPlayerConfig},t.setStickyPlayerActiveState=function(e){this._disableDragUi(e),e?this._activateStickyPlayer():this._deactivateStickyPlayer()},t.getIsStickyPlayerActive=function(){var e;return!!(null===(e=this.jwPlayerInstance)||void 0===e?void 0:e.getFloating())},t.setIsPlayerDismissed=function(e){var t=this.isPlayerDismissed;if(this.isPlayerDismissed=e,e){var n,i,a,r,o;if(this.setStickyPlayerActiveState(!1),(null===(n=this.jwPlayerInstance)||void 0===n?void 0:n.getFullscreen())&&document.exitFullscreen(),this.playerState.isAdPresent)null===(o=this.jwPlayerInstance)||void 0===o||o.pauseAd();else this.stop();null===(a=null===(i=this.jwPlayerInstance)||void 0===i?void 0:i.getPlugin("MediaInteroperabilityPlugin"))||void 0===a||a.endMediaInteroperability(),null===(r=this.businessMetricsReporter)||void 0===r||r.reportVideoClose()}else if(t){var s;null===(s=this.jwPlayerInstance)||void 0===s||s.load([this.currentPlaylistItem]),this.resetViewTimeTriggeredMap(),this.resetPercentageTriggeredMap()}this.trigger("playerDismiss",{dismissed:e})},t.getIsPlayerDismissed=function(){return this.isPlayerDismissed},t.addButton=function(e,t,n,i,a){var r;null===(r=this.jwPlayerInstance)||void 0===r||r.addButton(e,t,n,i,a)},t.removeButton=function(e){var t;null===(t=this.jwPlayerInstance)||void 0===t||t.removeButton(e)},t.disableTimedTextTrack=function(){var e;null===(e=this.jwPlayerInstance)||void 0===e||e.setCurrentCaptions(0)},t.setCurrentTimedTextTrack=function(e){var t;null===(t=this.jwPlayerInstance)||void 0===t||t.setCurrentCaptions(e+1)},t.getCurrentTimedTextTrack=function(){var e,t=null===(e=this.jwPlayerInstance)||void 0===e?void 0:e.getCurrentCaptions();return t?t-1:null},t.setTimedTextTrackStyle=function(e){var t;this.latestTimedTextTrackStyle=e,null===(t=this.jwPlayerInstance)||void 0===t||t.setCaptions(this._adjustStylesObjectForJWPlayer(e))},t.getContainerElement=function(){var e;return(null===(e=this.jwPlayerInstance)||void 0===e?void 0:e.getContainer())||this.jwPlayerElement},t.getControls=function(){var e;return null===(e=this.jwPlayerInstance)||void 0===e?void 0:e.getControls()},t._adjustStylesObjectForJWPlayer=function(e){var t=fe;this.latestVideoWidth<=$.breakpoints.breakpointsNumbers.s&&(t=he);var n=t.SMALL;switch(e.fontSize){case"medium":n=t.MED;break;case"large":n=t.LARGE}return{fontSize:n,windowOpacity:50,backgroundOpacity:0}},t._setNavigationControls=function(e){var t=this,n=e.querySelector(".".concat(V.pn.DISPLAY_CONTROLS_CONTAINER)),i=n.querySelector(".".concat(V.pn.LEGACY_NEXT_BUTTON_CONTAINER)),a=null===i||void 0===i?void 0:i.cloneNode(!0);a.classList.remove(V.pn.LEGACY_NEXT_BUTTON_CONTAINER),a.classList.add(V.pn.PREVIOUS_BUTTON_CONTAINER),null===i||void 0===i||i.classList.remove(V.pn.LEGACY_NEXT_BUTTON_CONTAINER),null===i||void 0===i||i.classList.add(V.pn.NEXT_BUTTON_CONTAINER);var r=a.firstChild;r.classList.remove(V.pn.NEXT_BUTTON_ICON),r.classList.add(V.pn.PREVIOUS_BUTTON_ICON),r.setAttribute("aria-label","Previous"),null===i||void 0===i||i.removeAttribute("style"),a.removeAttribute("style"),n.prepend(a),a.addEventListener("click",(function(){t._onPreviousPlaylistItem()})),null===i||void 0===i||i.addEventListener("click",(function(){t._onNextPlaylistItem({trigger:"click"})}))},t._observeControls=function(){var e,t=this,n=(null===(e=this.jwPlayerInstance)||void 0===e?void 0:e.getContainer()).querySelector(".".concat(V.pn.WRAPPER_CONTAINER));n||console.error("'".concat(V.pn.WRAPPER_CONTAINER,"' div not found. Unable to set custom UI Controls")),this.startedObservingControlsChanges=!0;var i=null===n||void 0===n?void 0:n.querySelector(".".concat(V.pn.CONTROLS_CONTAINER));i&&this._setNavigationControls(i);var a=new MutationObserver((function(e){e.some((function(e){var n,i,a=null===(n=e.addedNodes)||void 0===n?void 0:n[0];if(null===a||void 0===a||null===(i=a.classList)||void 0===i?void 0:i.contains(V.pn.CONTROLS_CONTAINER))return t._setNavigationControls(a),!0}))}));n&&a.observe(n,{childList:!0})},t._disableDragUi=function(e){var t,n=null===(t=this.jwPlayerInstance)||void 0===t?void 0:t.getContainer(),i=null===n||void 0===n?void 0:n.querySelector(".".concat(V.pn.MEDIA_CONTAINER));i&&(e?pe.forEach((function(e){i.addEventListener(e,ye,!0)})):pe.forEach((function(e){i.removeEventListener(e,ye,!0)})))},t._getStickyPlayerContainer=function(){var e,t=null===(e=this.jwPlayerInstance)||void 0===e?void 0:e.getContainer();return null===t||void 0===t?void 0:t.querySelector(V.CF)},t._handlePreferenceButtonStyle=function(e){var t=document.querySelector(".".concat(te.u5.container));e?null===t||void 0===t||t.classList.add(te.u5.stickyActive):null===t||void 0===t||t.classList.remove(te.u5.stickyActive)},t._activateStickyPlayer=function(){var e,t=this;null===(e=this.jwPlayerInstance)||void 0===e||e.setFloating(!0);var n=this._getStickyPlayerContainer();if(n)if(n.classList.add(K.pF),(0,V.cZ)(window.innerWidth))this._handlePreferenceButtonStyle(!0);else{var i=function(){t._handlePreferenceButtonStyle(!0),null===n||void 0===n||n.removeEventListener("animationend",i)};n.addEventListener("animationend",i)}},t._deactivateStickyPlayer=function(){var e=this,t=this._getStickyPlayerContainer();if(t)if(t.classList.remove(K.pF),this._handlePreferenceButtonStyle(!1),(0,V.cZ)(window.innerWidth)){var n;null===(n=this.jwPlayerInstance)||void 0===n||n.setFloating(!1)}else{var i=function(){var n;t.classList.remove("exit"),null===(n=e.jwPlayerInstance)||void 0===n||n.setFloating(!1),t.removeEventListener("animationend",i)};t.classList.add("exit"),t.addEventListener("animationend",i)}},t._onNextPlaylistItem=function(e){var t,n;this.playerState.isNavigating=!0,this.playerState.hasPlayed=!1,null===(t=this.playerEventHandlers)||void 0===t||null===(n=t.onNextPlaylistItem)||void 0===n||n.call(t,{videoInstance:this,eventData:e})},t._onPreviousPlaylistItem=function(){var e,t;this.playerState.isNavigating=!0,this.playerState.hasPlayed=!1,null===(e=this.playerEventHandlers)||void 0===e||null===(t=e.onPreviousPlaylistItem)||void 0===t||t.call(e,{videoInstance:this})},t._canActivateStickyPlayer=function(e){var t;return(0,le.y)({isMainPlayerInView:e,hasUserInteracted:!!this.getHasUserInteracted(),isPlayerDismissed:!!this.getIsPlayerDismissed(),mainPlayerTopPosition:null===(t=this.jwPlayerInstance)||void 0===t?void 0:t.getContainer().getBoundingClientRect().top})},e}(),me=n(93130),Ie=(de={},(0,i.Z)(de,me.ds.Mp4,"video/mp4"),(0,i.Z)(de,me.ds.Webm,"video/webm"),(0,i.Z)(de,me.ds.M3U8,"application/x-mpegurl"),de),be=function(){function e(t){var n=t.id,i=t.viconst,a=t.container,r=t.configPresetName,o=t.configEventHandlers,s=t.playerEventHandlers,l=t.assetName,c=t.disableBIMetrics;(0,Y.Z)(this,e),this._customButtons={},this._customHandlers={},this.id=P.Je+n,this.container=a,this.viconst=i,this.configPresetName=r,this.configEventHandlers=o,this.playerEventHandlers=s,this.assetName=l,this.disableBIMetrics=c}var t=e.prototype;return t.createElementForJWPlayer=function(){var e=document.createElement("div");return e.id=this.id,this.container.appendChild(e),e},t.setupDomHandlers=function(){if(this.configPresetName){var e=L[this.configPresetName].domHandler;e&&window.addEventListener("message",e(this.playerInstance))}},t.initializeJW=function(e,t,n,i,a){var r=this;return(0,X.Z)((function(){var o;return(0,J.__generator)(this,(function(s){switch(s.label){case 0:return o=Object.assign({},r.playerEventHandlers,r._customHandlers),r.playerInstance=new ge({playerElement:r.createElementForJWPlayer(),configPresetName:r.configPresetName,configEventHandlers:r.configEventHandlers,playerEventHandlers:o,assetName:r.assetName,disableBIMetrics:r.disableBIMetrics}),[4,r.playerInstance.initialize(e,r.viconst,t,n,i,a)];case 1:return s.sent(),r.setupDomHandlers(),r.initializeCustomButtons(),[2]}}))}))()},t.load=function(e,t,n,i){var r=this;return(0,X.Z)((function(){var o,s;return(0,J.__generator)(this,(function(l){switch(l.label){case 0:return o=(0,q.RQ)(),s=function(e,t){var n=e.videoLegacyAdUrl,i=void 0===n?"":n,r=e.videoLegacyEncodings,o=void 0===r?[]:r,s=e.videoThumbnailImageSource,l=void 0===s?"":s,c=e.timedTextTrackInfo,d=void 0===c?[]:c,u=e.isMature,v=t&&t.length>0,p=null===d||void 0===d?void 0:d.map((function(e){return{kind:"captions",file:e.url,label:e.language}}));return(0,a.Z)({sources:o.map((function(e){var t=e.videoDefinition,n=e.videoMimeType,i=e.displayName;return{file:e.url,label:i,type:Ie[n],default:t===me.O1.DefAuto,isMature:u}})),tracks:p,image:l},!v&&i&&{adschedule:[{offset:"pre",tag:i}]})}(e,o),r.viconst=e.viconst,r.playerInstance?[3,2]:[4,r.initializeJW(s,t,n,o,i)];case 1:return l.sent(),[3,3];case 2:r.playerInstance.load(s,r.viconst,t,n,o),l.label=3;case 3:return[2]}}))}))()},t.initializeCustomButtons=function(){if(this.playerInstance){var e=!0,t=!1,n=void 0;try{for(var i,a=Object.keys(this._customButtons)[Symbol.iterator]();!(e=(i=a.next()).done);e=!0){var r=i.value;this.playerInstance.addButton(this._customButtons[r].svgImage,this._customButtons[r].tooltipText,this._customButtons[r].buttonClickAction,r,this._customButtons[r].buttonClass)}}catch(o){t=!0,n=o}finally{try{e||null==a.return||a.return()}finally{if(t)throw n}}}},t.addCustomPlayerButton=function(e){this._customButtons[e.buttonId]=e,this.initializeCustomButtons()},t.deleteCustomPlayerButton=function(e){var t;delete this._customButtons[e],null===(t=this.playerInstance)||void 0===t||t.removeButton(e)},t.setTimedTextTrackStyle=function(e){var t;null===(t=this.playerInstance)||void 0===t||t.setTimedTextTrackStyle(e)},t.disableTimedTextTrack=function(){var e;null===(e=this.playerInstance)||void 0===e||e.disableTimedTextTrack()},t.setCurrentTimedTextTrack=function(e){var t;null===(t=this.playerInstance)||void 0===t||t.setCurrentTimedTextTrack(e)},t.onComplete=function(e){e()},t.getPlayerElementId=function(){return this.id},t.getState=function(){var e;return null===(e=this.playerInstance)||void 0===e?void 0:e.getState()},t.play=function(e){var t,n=this.getState();if(n!==E.QT.playing&&n!==E.QT.buffering){var i,a,r,o;if(e)null===(i=this.playerInstance)||void 0===i||null===(a=i.businessMetricsReporter)||void 0===a||a.setBusinessMetricsContextByAction(ne.oU.play,e);if((null===(t=this.playerInstance)||void 0===t?void 0:t.play())||!e);else null===(r=this.playerInstance)||void 0===r||null===(o=r.businessMetricsReporter)||void 0===o||o.resetBusinessMetricsContextByAction(ne.oU.play)}},t.pause=function(e){var t,n,i=this.getState();if(i!==E.QT.idle&&i!==E.QT.paused&&!(null===(t=this.playerInstance)||void 0===t?void 0:t.getIsStickyPlayerActive())){var a,r;if(e)null===(a=this.playerInstance)||void 0===a||null===(r=a.businessMetricsReporter)||void 0===r||r.setBusinessMetricsContextByAction(ne.oU.pause,e);null===(n=this.playerInstance)||void 0===n||n.pause()}},t.stop=function(e){var t,n,i;e&&(null===(n=this.playerInstance)||void 0===n||null===(i=n.businessMetricsReporter)||void 0===i||i.setBusinessMetricsContextByAction(ne.oU.stop,e));null===(t=this.playerInstance)||void 0===t||t.stop()},t.setMute=function(e){var t;null===(t=this.playerInstance)||void 0===t||t.setMute(e)},t.setControls=function(e){var t;null===(t=this.playerInstance)||void 0===t||t.setControls(e)},t.getControls=function(){var e;return!!(null===(e=this.playerInstance)||void 0===e?void 0:e.getControls())},t.setHasUserInteracted=function(e){var t;null===(t=this.playerInstance)||void 0===t||t.setHasUserInteracted(e)},t.setEventHandlers=function(e){var t;this.playerInstance?null===(t=this.playerInstance)||void 0===t||t.setEventHandlers(e):this._customHandlers=Object.assign(this._customHandlers,e)},t.removeEventHandlers=function(e){var t;null===(t=this.playerInstance)||void 0===t||t.removeEventHandlers(e)},t.getHasUserInteracted=function(){var e;return null===(e=this.playerInstance)||void 0===e?void 0:e.getHasUserInteracted()},t.getLatestPlayerInteractionState=function(){var e;return null===(e=this.playerInstance)||void 0===e?void 0:e.getLatestPlayerInteractionState()},t.getMute=function(){var e;return null===(e=this.playerInstance)||void 0===e?void 0:e.getMute()},t.hasPlayed=function(){var e;return!!(null===(e=this.playerInstance)||void 0===e?void 0:e.hasPlayed())},t.setHasNextPlaylistItem=function(e){var t;null===(t=this.playerInstance)||void 0===t||t.setHasNextPlaylistItem(e)},t.setHasPreviousPlaylistItem=function(e){var t;null===(t=this.playerInstance)||void 0===t||t.setHasPreviousPlaylistItem(e)},t.getIsAgeGateEnabled=function(){var e;return!!(null===(e=this.playerInstance)||void 0===e?void 0:e.getIsAgeGateEnabled())},t.setIsAgeGateEnabled=function(e){var t;null===(t=this.playerInstance)||void 0===t||t.setIsAgeGateEnabled(e)},t.getCanEnableStickyPlayer=function(){var e;return!!(null===(e=this.playerInstance)||void 0===e?void 0:e.getCanEnableStickyPlayer())},t.setStickyPlayerActiveState=function(e){var t;null===(t=this.playerInstance)||void 0===t||t.setStickyPlayerActiveState(e)},t.getIsStickyPlayerActive=function(){var e;return!!(null===(e=this.playerInstance)||void 0===e?void 0:e.getIsStickyPlayerActive())},t.setIsPlayerDismissed=function(e){var t;null===(t=this.playerInstance)||void 0===t||t.setIsPlayerDismissed(e)},t.getIsPlayerDismissed=function(){var e;return null===(e=this.playerInstance)||void 0===e?void 0:e.getIsPlayerDismissed()},t.reportVideoTapMetric=function(){var e,t;null===(e=this.playerInstance)||void 0===e||null===(t=e.businessMetricsReporter)||void 0===t||t.reportVideoTap()},t.getPlayerContainerElement=function(){var e;return null===(e=this.playerInstance)||void 0===e?void 0:e.getContainerElement()},e}(),Pe=function(e,t){var n,i,r;return(0,a.Z)({viconst:e.id,isMature:e.isMature,playbackURLs:t.map((function(e){return{url:e.url,displayName:e.displayName.value,videoMimeType:e.videoMimeType,videoDefinition:e.videoDefinition}})),thumbnail:{url:e.thumbnail.url,caption:(null===(n=e.description)||void 0===n?void 0:n.value)&&(null===(i=e.description)||void 0===i?void 0:i.language)?e.description.value:e.name.value},timedTextTracks:null===(r=e.timedTextTracks)||void 0===r?void 0:r.map((function(e){return{url:e.url,language:e.displayName.value}}))},e.webAdURL&&{webAdURL:e.webAdURL})},we=n(11998),Ee=function(e){return(0,s.jsx)("div",(0,r.Z)((0,a.Z)({},e),{onKeyDown:function(t){var n;((0,we.isEnterOrSpaceKey)(t)||e.captureAll)&&t.stopPropagation(),null===(n=e.onKeyDown)||void 0===n||n.call(e,t)}}))},Te=n(92228),_e=n(73857),Ce=n(19596);function Ae(){var e=(0,Te.Z)(["\n ","\n\n "," {\n margin: 1.5rem;\n margin-bottom: 0;\n }\n"]);return Ae=function(){return e},e}function Se(){var e=(0,Te.Z)(["\n ",";\n margin-bottom: 1.25rem;\n"]);return Se=function(){return e},e}function Me(){var e=(0,Te.Z)(["\n padding-top: 1rem;\n padding-bottom: 1rem;\n margin-bottom: 1.25rem;\n"]);return Me=function(){return e},e}function xe(){var e=(0,Te.Z)(["\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n gap: 1rem;\n padding-right: 0.25rem;\n padding-left: 0.25rem;\n\n "," {\n flex-direction: column-reverse;\n }\n"]);return xe=function(){return e},e}var Ne="sponsored_content_info_prompt",ke="sponsored_content_info_continue",Re="sponsored_content_info_cancel",je="sponsored_content_info_loading",Oe=function(e){var t=(0,_e.Z)(),n=t.formatMessage({id:"videoplayer_sponsor_info_header",defaultMessage:"Sponsored Content"}),i=t.formatMessage({id:"videoplayer_sponsor_info_message",defaultMessage:"Continue to Amazon Ads to learn more or give feedback."}),l=t.formatMessage({id:"common_buttons_continue",defaultMessage:"Continue"}),c=t.formatMessage({id:"common_buttons_cancel",defaultMessage:"Cancel"}),d=t.formatMessage({id:"common_buttons_close",defaultMessage:"Close"}),u=t.formatMessage({id:"common_ariaLabel_loading",defaultMessage:"Loading"}),v=e.sponsorLink,p=(0,o.Z)(e,["sponsorLink"]);return(0,s.jsx)(U.Prompt,(0,r.Z)((0,a.Z)({},p),{closePromptLabel:d,children:(0,s.jsxs)(Le,{"data-testid":Ne,children:[(0,s.jsx)(De,{children:n}),(0,s.jsx)(Ve,{children:i}),(0,s.jsxs)(He,{children:[(0,s.jsx)(U.TextButton,{onClick:p.onCloseClicked,width:"double-padding","data-testid":Re,children:c}),v?(0,s.jsx)(U.SecondaryButton,{href:v,linkType:"launch",postIcon:"launch",width:"double-padding","data-testid":ke,children:l}):(0,s.jsx)(U.SecondaryButton,{width:"double-padding",disabled:!0,ariaLabel:u,"data-testid":je,children:(0,s.jsx)(U.Loader,{type:"dot"})})]})]})}))},Le=Ce.default.div.withConfig({componentId:"sc-7d428128-0"})(Ae(),(0,$.setPropertyToColorVar)("color","ipt-on-baseAlt-textPrimary-color"),$.mediaQueries.breakpoints.below.m),De=Ce.default.header.withConfig({componentId:"sc-7d428128-1"})(Se(),(0,$.setTypographyType)("headline5")),Ve=Ce.default.p.withConfig({componentId:"sc-7d428128-2"})(Me()),He=Ce.default.div.withConfig({componentId:"sc-7d428128-3"})(xe(),$.mediaQueries.breakpoints.below.s),Ue=n(30382),Be=n.n(Ue),Fe=n(35355);function Ze(){var e=(0,Te.Z)(["\n query videoAdFeedbackUrl($videoAdXml: String!) {\n videoAdFeedbackUrl(input: { videoAdXml: $videoAdXml })\n }\n"]);return Ze=function(){return e},e}var Ge,ze=Be()(Ze()),We=n(48090),Xe=n(31619),Ye="sponsored-info-button",Je="sponsored-info-button",qe=function(e,t,n){var i=We.renderToString((0,s.jsx)(U.Icon,{name:"info"}));e.addCustomPlayerButton({svgImage:i,tooltipText:t,buttonClickAction:n,buttonId:Ye,buttonClass:Je})},Qe={adXML:void 0,adXMLString:void 0};function Ke(e,t){switch(t.type){case Ge.UPDATE_AD_XML:return"vmap:VMAP"!==t.payload.documentElement.nodeName?e:(0,r.Z)((0,a.Z)({},e),{adXML:t.payload});case Ge.SERIALIZE_AD_XML:return e.adXML?e.adXMLString?e:(0,r.Z)((0,a.Z)({},e),{adXMLString:(new XMLSerializer).serializeToString(e.adXML)}):e;case Ge.RESET:return Qe}}!function(e){e[e.UPDATE_AD_XML=0]="UPDATE_AD_XML",e[e.SERIALIZE_AD_XML=1]="SERIALIZE_AD_XML",e[e.RESET=2]="RESET"}(Ge||(Ge={}));var $e=function(e){var t=(0,d.useReducer)(Ke,Qe),n=t[0],i=t[1],a=(0,F.Z)(function(e){var t=e.player,n=(0,d.useState)(!1),i=n[0],a=n[1],r=(0,d.useState)(!1),o=r[0],s=r[1];return[i,(0,d.useCallback)((function(e){t?(e?t.getState()===E.QT.playing&&(t.pause(),s(!0)):o&&(t.play(),s(!1)),a(e)):a(e)}),[t,o])]}({player:e.player}),2),r=a[0],o=a[1];!function(e){var t=e.player,n=e.parentEventHandlers,i=e.onClick,a=e.onAdBreakStart,r=e.onAdBreakEnd,o=(0,Xe.N)({id:"videoplayer_sponsor_info",defaultMessage:"Sponsor info"});(0,d.useEffect)((function(){t&&t.setEventHandlers({onAdBreakStart:function(e){var r;null===(r=n.onAdBreakStart)||void 0===r||r.call(n,e),qe(t,o,i),null===a||void 0===a||a()},onAdBreakEnd:function(e){var i;null===(i=n.onAdBreakEnd)||void 0===i||i.call(n,e),t.deleteCustomPlayerButton(Ye),null===r||void 0===r||r()}})}),[t,n])}({player:e.player,parentEventHandlers:e.parentEventHandlers,onClick:function(){return o(!0)},onAdBreakStart:function(){return i({type:Ge.RESET})}}),et({player:e.player,parentEventHandlers:e.parentEventHandlers,onAdXMLLoaded:function(e){i({type:Ge.UPDATE_AD_XML,payload:e})}}),(0,d.useEffect)((function(){r&&n.adXML&&!n.adXMLString&&i({type:Ge.SERIALIZE_AD_XML})}),[r,n.adXML]);var l=(0,F.Z)(function(e){var t=e.videoAdXML,n=e.shouldPause;return(0,Fe.E8)({query:ze,context:{serverSideCacheable:!1,personalized:!0},variables:{videoAdXml:t},pause:n})}({videoAdXML:n.adXMLString,shouldPause:!n.adXMLString}),1)[0],c=l.data,u=l.fetching;if(!e.player)return null;var v,p=!u&&n.adXMLString?null!==(v=null===c||void 0===c?void 0:c.videoAdFeedbackUrl)&&void 0!==v?v:"/adfeedback/error":void 0;return(0,s.jsx)(Ee,{children:(0,s.jsx)(Oe,{isOpen:r,onCloseClicked:function(){o(!1)},"data-testid":e["data-testid"],customContainer:e.playerPromptRoot,sponsorLink:p})})},et=function(e){(0,d.useEffect)((function(){e.player&&e.player.setEventHandlers({onAdLoadedXML:function(t){var n,i;null===(i=(n=e.parentEventHandlers).onAdLoadedXML)||void 0===i||i.call(n,t),e.onAdXMLLoaded(t.eventData.xml)}})}),[e.player,e.parentEventHandlers])},tt=n(76510),nt=n(81303),it=n(6488),at=n(84712);function rt(){var e=(0,Te.Z)(["\n ."," {\n padding: 0;\n }\n"]);return rt=function(){return e},e}function ot(){var e=(0,Te.Z)(["\n padding: 0;\n"]);return ot=function(){return e},e}function st(){var e=(0,Te.Z)(["\n &:not(:last-child) {\n border-bottom-style: solid;\n border-bottom-width: 1px;\n ","\n }\n\n &:first-child {\n margin-top: -0.5rem;\n }\n\n &:last-child {\n margin-bottom: -0.5rem;\n }\n\n padding: 1rem;\n height: auto;\n"]);return st=function(){return e},e}function lt(){var e=(0,Te.Z)(["\n &:not(:last-child) {\n border-bottom-style: solid;\n border-bottom-width: 1px;\n ","\n }\n\n "," {\n display: none;\n }\n\n padding: 1rem;\n height: auto;\n"]);return lt=function(){return e},e}function ct(){var e=(0,Te.Z)(["\n height: auto;\n padding-top: 1rem;\n padding-bottom: 1rem;\n\n &:first-child {\n padding-top: 1.5rem;\n }\n\n &:last-child {\n padding-bottom: 1.5rem;\n }\n"]);return ct=function(){return e},e}function dt(){var e=(0,Te.Z)(["\n ","\n"]);return dt=function(){return e},e}function ut(){var e=(0,Te.Z)(["\n ","\n ","\n\n "," {\n max-width: 260px;\n }\n"]);return ut=function(){return e},e}var vt,pt,ft,ht,yt=(0,tt.vU)({captionSettings:{defaultMessage:"Caption settings",id:"videoplayer_timed_text_prompt_settings"},captionDisplay:{defaultMessage:"Caption display",id:"videoplayer_timed_text_prompt_display_options"},captionLanguage:{defaultMessage:"Caption language",id:"videoplayer_timed_text_prompt_language_options"},captionFontSize:{defaultMessage:"Font size",id:"videoplayer_timed_text_prompt_size_options"},captionOff:{defaultMessage:"Off",id:"videoplayer_timed_text_prompt_display_off"},captionOnMuted:{defaultMessage:"On when muted",id:"videoplayer_timed_text_prompt_display_on_mute"},captionAlwaysOn:{defaultMessage:"Always on",id:"videoplayer_timed_text_prompt_display_always"},captionSizeSmall:{defaultMessage:"Small",id:"videoplayer_timed_text_prompt_size_small"},captionSizeMed:{defaultMessage:"Medium",id:"videoplayer_timed_text_prompt_size_medium"},captionSizeLrg:{defaultMessage:"Large",id:"videoplayer_timed_text_prompt_size_large"},captionsTooltip:{defaultMessage:"Closed Captions",id:"videoplayer_timed_text_prompt_tooltip"}});!function(e){e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg"}(vt||(vt={})),function(e){e.OFF="off",e.ON_WHEN_MUTED="mute",e.ALWAYS_ON="always"}(pt||(pt={})),function(e){e[e.MAIN=0]="MAIN",e[e.SETTING=1]="SETTING",e[e.LANGUAGE=2]="LANGUAGE",e[e.SIZE=3]="SIZE"}(ft||(ft={})),function(e){e.CC="CLOSED_CAPTION",e.SUB="SUBTITLE"}(ht||(ht={}));var gt="ttt-prompt",mt="ttt-button",It="timedtexttracksettings";function bt(e,t){return e.filter((function(e){return e.language===t}))[0]}function Pt(e,t){return!!bt(e,t)}function wt(e,t,n){return!!function(e,t,n){var i=n===ht.SUB?me.nO.Subtitle:me.nO.ClosedCaption;return e.filter((function(e){return e.language===t&&e.type===i}))[0]}(e,t,n)}function Et(e,t){var n=bt(e.tracks,t.language);return n?(0,s.jsx)(s.Fragment,{children:n.displayName.value}):(0,s.jsx)(nt.q,{id:"videoplayer_timed_text_prompt_language_unknown",defaultMessage:"Unknown"})}function Tt(e,t,n,i){return function(a){var r=Object.assign({},t);switch(e){case ft.LANGUAGE:r.language=a;break;case ft.SETTING:r.setting=a,function(e,t){if(e)switch(t){case pt.ALWAYS_ON:var n,i;null===(n=e.playerInstance)||void 0===n||null===(i=n.businessMetricsReporter)||void 0===i||i.reportTimedTextTrackTurnedAlwaysOn();break;case pt.OFF:var a,r;null===(a=e.playerInstance)||void 0===a||null===(r=a.businessMetricsReporter)||void 0===r||r.reportTimedTextTrackTurnedOff();break;case pt.ON_WHEN_MUTED:var o,s;null===(o=e.playerInstance)||void 0===o||null===(s=o.businessMetricsReporter)||void 0===s||s.reportTimedTextTrackTurnedOnForMute()}}(n,a);break;case ft.SIZE:r.size=a}(0,it._2)(It,r),i(r)}}function _t(e,t,n,i){var a=function(e,t,n){switch(e){case ft.SIZE:return Object.values(vt).map((function(e){return[e,At(e)]}));case ft.LANGUAGE:return t.tracks.length?t.tracks.map((function(e){return[e.language,(0,s.jsx)(s.Fragment,{children:e.displayName.value})]})):[[n.language,Et(t,n)]];default:return Object.values(pt).map((function(e){return[e,Ct(e)]}))}}(e,t,n),r=function(e,t){switch(e){case ft.SIZE:return t.size;case ft.LANGUAGE:return t.language;default:return t.setting}}(e,n),o=Tt(e,n,t.player,i);return a.map((function(e){var t=e[0]===r;return(0,s.jsx)(Bt,{indentLevel:t?0:1,preIconName:t?"done":void 0,onClick:function(){!t&&o(e[0])},children:e[1]},"ttt-option-".concat(e))}))}function Ct(e){var t={id:"",defaultMessage:""};switch(e){case pt.OFF:t=yt.captionOff;break;case pt.ALWAYS_ON:t=yt.captionAlwaysOn;break;case pt.ON_WHEN_MUTED:t=yt.captionOnMuted}return(0,s.jsx)(nt.q,(0,a.Z)({},t))}function At(e){var t={id:"",defaultMessage:""};switch(e){case vt.SMALL:t=yt.captionSizeSmall;break;case vt.MEDIUM:t=yt.captionSizeMed;break;case vt.LARGE:t=yt.captionSizeLrg}return(0,s.jsx)(nt.q,(0,a.Z)({},t))}function St(e){var t={id:"",defaultMessage:""};switch(e){case ft.SETTING:t=yt.captionDisplay;break;case ft.SIZE:t=yt.captionFontSize;break;case ft.LANGUAGE:t=yt.captionLanguage}var n=(0,s.jsx)(nt.q,(0,a.Z)({},yt.captionSettings)),i=(0,s.jsx)(nt.q,(0,a.Z)({},t));return(0,s.jsxs)(s.Fragment,{children:[n," > ",i]})}function Mt(e,t,n,i,r){return e===ft.MAIN?function(e,t,n){return(0,s.jsxs)(Vt,{children:[(0,s.jsxs)(Ht,{postIconName:"chevron-right",onClick:function(){return n(ft.SETTING)},children:[(0,s.jsx)(Ft,{children:(0,s.jsx)(nt.q,(0,a.Z)({},yt.captionDisplay))}),(0,s.jsx)(Zt,{children:Ct(t.setting)})]},"ttt-opt-disp"),(0,s.jsxs)(Ht,{postIconName:"chevron-right",onClick:function(){return n(ft.LANGUAGE)},children:[(0,s.jsx)(Ft,{children:(0,s.jsx)(nt.q,(0,a.Z)({},yt.captionLanguage))}),(0,s.jsx)(Zt,{children:Et(e,t)})]},"ttt-opt-lang"),(0,s.jsxs)(Ht,{postIconName:"chevron-right",onClick:function(){return n(ft.SIZE)},children:[(0,s.jsx)(Ft,{children:(0,s.jsx)(nt.q,(0,a.Z)({},yt.captionFontSize))}),(0,s.jsx)(Zt,{children:At(t.size)})]},"ttt-opt-size")]})}(t,n,i):function(e,t,n,i,a){return(0,s.jsxs)(Vt,{children:[(0,s.jsx)(Ut,{onClick:function(){return n(ft.MAIN)},children:St(e)},"ttt-header"),(0,s.jsx)("div",{children:_t(e,t,i,a)},"ttt-submenu")]})}(e,t,i,n,r)}function xt(e,t){if(null!==t.type){var n=t.type===ht.SUB?me.nO.Subtitle:me.nO.ClosedCaption;return e.indexOf(e.filter((function(e){return e.language===t.language&&e.type===n}))[0])}return e.indexOf(e.filter((function(e){return e.language===t.language}))[0])}function Nt(e,t,n){switch(n.setting){case pt.OFF:e.disableTimedTextTrack();break;case pt.ON_WHEN_MUTED:e.getMute()?e.setCurrentTimedTextTrack(xt(t,n)):e.disableTimedTextTrack();break;case pt.ALWAYS_ON:e.setCurrentTimedTextTrack(xt(t,n))}}function kt(e,t){e.player&&(Nt(e.player,e.tracks,t),function(e,t){var n="medium";switch(t.size){case vt.SMALL:n="small";break;case vt.LARGE:n="large"}e.setTimedTextTrackStyle({fontSize:n})}(e.player,t))}function Rt(e,t){var n=function(e,t){var n=e.recTrackLanguage,i=null===t||void 0===t?void 0:t.language;return i&&Pt(e.tracks,i)&&(n=i),n}(e,t),i=e.preferredTrackLanguage,a=e.type;return i&&(a?wt(e.tracks,i,a)&&(n=i):Pt(e.tracks,i)&&(n=i)),n}function jt(e,t){var n=e.status,i=null===t||void 0===t?void 0:t.setting;return n||(n=i||pt.ON_WHEN_MUTED),n}function Ot(e){var t,n,i=null===(t=e.player)||void 0===t||null===(n=t.playerInstance)||void 0===n?void 0:n.getCurrentTimedTextTrack();if(null!==i&&void 0!==i){var a,r,o,s=e.tracks[i].refTagFragment||"cc-".concat(e.tracks[i].language);null===(a=e.player)||void 0===a||null===(r=a.playerInstance)||void 0===r||null===(o=r.businessMetricsReporter)||void 0===o||o.reportVideoStartWithCaptions(s)}}var Lt=function(e){var t=(0,it.ID)(It),n=(0,F.Z)(d.useState(ft.MAIN),2),i=n[0],a=n[1],r=(0,F.Z)(d.useState(!1),2),o=r[0],l=r[1],c=(0,F.Z)(d.useState({language:Rt(e,t),size:t?t.size:vt.SMALL,setting:jt(e,t),type:e.type?e.type:null}),2),u=c[0],v=c[1],p=(0,F.Z)(d.useState(!1),2),f=p[0],h=p[1];kt(e,u),(0,d.useEffect)((function(){var n=Rt(e,t);u.language!==n&&v(Object.assign({},u,{language:n}))}),[e.tracks]);var y=(0,Xe.N)(yt.captionsTooltip);return(0,d.useEffect)((function(){if(e.player)return function(e,t,n,i){if(e.player)if(e.tracks.length){var a=(0,at.$r)();t.setting===pt.OFF&&(a=(0,at.mG)()),e.player.addCustomPlayerButton({svgImage:a,tooltipText:n,buttonClickAction:function(){i(!0)},buttonId:mt})}else e.player.deleteCustomPlayerButton(mt)}(e,u,y,l),e.player.setEventHandlers(Object.assign({},e.parentEventHandlers,{onMute:function(t){var n,i;null===(i=(n=e.parentEventHandlers).onMute)||void 0===i||i.call(n,t),e.player&&Nt(e.player,e.tracks,u)},onCaptionsList:function(t){var n,i;null===(i=(n=e.parentEventHandlers).onCaptionsList)||void 0===i||i.call(n,t),kt(e,u)},onReady:function(t){var n,i;null===(i=(n=e.parentEventHandlers).onReady)||void 0===i||i.call(n,t),kt(e,u)},onPlay:function(t){var n,i;null===(i=(n=e.parentEventHandlers).onPlay)||void 0===i||i.call(n,t),f&&(Ot(e),h(!1))},onStop:function(t){var n,i;null===(i=(n=e.parentEventHandlers).onStop)||void 0===i||i.call(n,t),h(!0)},onFirstFrame:function(t){var n,i;null===(i=(n=e.parentEventHandlers).onFirstFrame)||void 0===i||i.call(n,t),Ot(e)}})),function(){var t;null===(t=e.player)||void 0===t||t.deleteCustomPlayerButton(mt)}}),[e.player,e.tracks,e.parentEventHandlers,u,f]),e.playerPromptRoot?(0,s.jsx)(Ee,{children:(0,s.jsx)(Dt,{isOpen:o,onCloseClicked:function(){var e;e=a,l(!1),e(ft.MAIN)},"data-testid":e.testId,panelClassName:gt,customContainer:e.playerPromptRoot,children:Mt(i,e,u,a,v)})}):null},Dt=(0,Ce.default)(U.Prompt).withConfig({componentId:"sc-167f977e-0"})(rt(),gt),Vt=(0,Ce.default)(U.List).withConfig({componentId:"sc-167f977e-1"})(ot()),Ht=(0,Ce.default)(U.ListItem).withConfig({componentId:"sc-167f977e-2"})(st(),(0,$.setPropertyToColorVar)("border-bottom-color","ipt-on-baseAlt-textHint-color")),Ut=(0,Ce.default)(U.ListItem).withConfig({componentId:"sc-167f977e-3"})(lt(),(0,$.setPropertyToColorVar)("border-bottom-color","ipt-on-baseAlt-textHint-color"),$.mediaQueries.breakpoints.below.m),Bt=(0,Ce.default)(U.ListItem).withConfig({componentId:"sc-167f977e-4"})(ct()),Ft=Ce.default.div.withConfig({componentId:"sc-167f977e-5"})(dt(),(0,$.setTypographyType)("body")),Zt=Ce.default.div.withConfig({componentId:"sc-167f977e-6"})(ut(),(0,$.setPropertyToColorVar)("color","ipt-on-baseAlt-textHint-color"),(0,$.setTypographyType)("bodySmall"),$.mediaQueries.breakpoints.above.m),Gt=n(3358),zt=n(81611),Wt=n(65245);function Xt(){var e=(0,Te.Z)(["\n max-width: 500px;\n margin: 0;\n padding-left: ",";\n overflow: hidden;\n white-space: nowrap;\n"]);return Xt=function(){return e},e}function Yt(){var e=(0,Te.Z)(["\n padding: 0 ",";\n\n svg {\n margin: 0;\n }\n\n "," {\n padding: 0;\n opacity: 0.01;\n visibility: hidden;\n max-width: 0;\n }\n"]);return Yt=function(){return e},e}function Jt(){var e=(0,Te.Z)(["\n &,\n * {\n transition: all "," ease-out;\n }\n "]);return Jt=function(){return e},e}function qt(){var e=(0,Te.Z)(["\n min-width: auto;\n padding: 0 "," 0 ",";\n\n svg {\n margin-left: 0;\n }\n"]);return qt=function(){return e},e}function Qt(){var e=(0,Te.Z)(["\n "," {\n ",";\n\n ","\n }\n"]);return Qt=function(){return e},e}function Kt(){var e=(0,Te.Z)(["\n &.enter-done "," {\n ",";\n\n ","\n }\n"]);return Kt=function(){return e},e}var $t="animated-icon-button",en={root:null,threshold:.5},tn=Ce.default.p.withConfig({componentId:"sc-f529582e-0"})(Xt(),$.spacing.xxs),nn=(0,Ce.css)(Yt(),$.spacing.xs,tn),an=function(e){return(0,Ce.css)(Jt(),e)},rn=(0,Ce.default)(U.SecondaryButton).withConfig({componentId:"sc-f529582e-1"})(qt(),$.spacing.m,$.spacing.xs),on=(0,Ce.css)(Qt(),rn,nn,an("0.2s")),sn=Ce.default.div.withConfig({componentId:"sc-f529582e-2"})(Kt(),rn,nn,an("0.5s"));function ln(){var e=(0,Te.Z)(["\n &.container-full-size-button {\n position: absolute;\n bottom: ",";\n left: ",";\n }\n"]);return ln=function(){return e},e}function cn(){var e=(0,Te.Z)(["\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: 1;\n\n &.container-button-size {\n bottom: ",";\n left: ",";\n width: auto;\n height: auto;\n }\n\n cursor: pointer;\n\n &:focus {\n ","\n }\n\n &.exit,\n &.exit-active,\n &.exit-done {\n opacity: 0.01;\n visibility: hidden;\n transition: all 0.3s ease-out;\n\n ","\n }\n"]);return cn=function(){return e},e}var dn,un="videoplayback-unmute-button",vn=function(e){var t=e.onClick,n=e.show,i=e.className,a=e.isContainerButtonSize,r=(0,d.useState)(n),o=r[0],l=r[1],u=(0,d.useRef)(null);(0,d.useEffect)((function(){l(n)}),[n]);var v=c()(i,{"container-button-size":a}),p=c()({"container-full-size-button":!a}),f=(0,Xe.N)({id:"video_playback_unmute_button",defaultMessage:"Tap to unmute"}),h=function(){t(),l(!1)};return(0,s.jsx)(Gt.Z,{children:(0,s.jsx)(zt.Z,{timeout:300,in:o,appear:!0,unmountOnExit:!0,nodeRef:u,children:(0,s.jsx)(s.Fragment,{children:o&&(0,s.jsx)(fn,{"aria-label":f,role:"button",onClick:h,onKeyDown:function(e){(0,we.isEnterOrSpaceKey)(e)&&h()},tabIndex:0,"data-testid":un,className:v,ref:u,children:(0,s.jsx)(pn,{className:p,delay:3e3,label:f,preIcon:"volume-off",baseColor:"baseAlt",bgColor:"shade2",onColor:"textPrimary"})})})},"display-".concat(o))})},pn=(0,Ce.default)((function(e){var t=(0,d.useRef)(null),n=(0,Wt.T)(t,en),i=e.label,l=e.delay,c=e.className,u=(0,o.Z)(e,["label","delay","className"]);return(0,s.jsx)(zt.Z,{timeout:l,in:n,appear:!0,nodeRef:t,children:(0,s.jsx)(sn,{className:c,ref:t,"data-testid":$t,children:(0,s.jsx)(rn,(0,r.Z)((0,a.Z)({},u),{children:(0,s.jsx)(tn,{children:i})}))})})})).withConfig({componentId:"sc-eaf6c1a2-0"})(ln(),$.spacing.xxl,$.spacing.m),fn=Ce.default.div.withConfig({componentId:"sc-eaf6c1a2-1"})(cn(),$.spacing.xxl,$.spacing.m,(0,$.focusOnBaseAlt)(),on),hn=n(28316);!function(e){e.VideoAgeGate="video_age_gate",e.VideoAgeGateValidation="video_age_gate_validation",e.VideoAgeGateForm="video_age_gate_form",e.VideoAgeGateSubmit="video_age_gate_submit",e.VideoAgeGateCTA="video_age_gate_cta",e.VideoAgeGateCTAButton="video_age_gate_cta_button",e.VideoAgeGatePrompt="video_age_gate_prompt"}(dn||(dn={}));var yn="This video is not intended for all audiences. Enter birthdate to view age-restricted video.",gn="We're sorry. You are not old enough to watch this video.",mn="Submit",In="This video is not intended for all audiences.",bn="Enter birthdate";function Pn(){var e=(0,Te.Z)(["\n position: absolute;\n width: 100%;\n height: 100%;\n background: ",";\n padding: ",";\n z-index: 5;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n top: 0;\n left: 0;\n"]);return Pn=function(){return e},e}function wn(){var e=(0,Te.Z)(["\n ",";\n margin-bottom: ",";\n"]);return wn=function(){return e},e}var En=function(e){var t=e.setIsPromptOpened,n={description:(0,Xe.N)({id:"video_playback_age_gate_cta_description",defaultMessage:In}),button:(0,Xe.N)({id:"video_playback_age_gate_cta_button",defaultMessage:bn})};return(0,s.jsxs)(Tn,{"data-testid":dn.VideoAgeGateCTA,children:[(0,s.jsx)(_n,{children:n.description}),(0,s.jsx)(U.Button,{"data-testid":dn.VideoAgeGateCTAButton,onClick:function(){t(!0)},children:n.button})]})},Tn=Ce.default.div.withConfig({componentId:"sc-3270480e-0"})(Pn(),(0,$.setPropertyToColorVar)("background","ipt-baseAlt-bg"),$.spacing.xl),_n=Ce.default.div.withConfig({componentId:"sc-3270480e-1"})(wn(),(0,$.setTypographyType)("bodySmall"),$.spacing.m),Cn=n(79020);function An(){var e=(0,Te.Z)(["\n position: absolute;\n width: 100%;\n height: 100%;\n background: ",";\n z-index: 5;\n display: flex;\n justify-content: center;\n align-items: center;\n top: 0;\n left: 0;\n &."," {\n position: relative;\n background: unset;\n }\n"]);return An=function(){return e},e}function Sn(){var e=(0,Te.Z)(["\n padding: ",";\n background: ",";\n"]);return Sn=function(){return e},e}function Mn(){var e=(0,Te.Z)(["\n ","\n"]);return Mn=function(){return e},e}function xn(){var e=(0,Te.Z)(["\n margin-top: ",";\n"]);return xn=function(){return e},e}function Nn(){var e=(0,Te.Z)(["\n margin-top: ",";\n"]);return Nn=function(){return e},e}var kn=function(e){var t=e.onSubmit,n=e.isDenied,a=e.shouldEnableCTA,r=(0,d.useState)(new Date),o=r[0],l=r[1],u=(0,d.useState)(!1),v=u[0],p=u[1],f=(0,Xe.N)({id:"video_playback_age_gate",defaultMessage:yn}),h=(0,Xe.N)({id:"video_playback_age_gate_denied",defaultMessage:gn}),y=(0,Xe.N)({id:"common_submit",defaultMessage:mn}),g={month:(0,Xe.N)({id:"common_date_month"}),day:(0,Xe.N)({id:"common_date_day"}),year:(0,Xe.N)({id:"common_date_year"}),months:[(0,Xe.N)({id:"common_date_january"}),(0,Xe.N)({id:"common_date_february"}),(0,Xe.N)({id:"common_date_march"}),(0,Xe.N)({id:"common_date_april"}),(0,Xe.N)({id:"common_date_may"}),(0,Xe.N)({id:"common_date_june"}),(0,Xe.N)({id:"common_date_july"}),(0,Xe.N)({id:"common_date_august"}),(0,Xe.N)({id:"common_date_september"}),(0,Xe.N)({id:"common_date_october"}),(0,Xe.N)({id:"common_date_november"}),(0,Xe.N)({id:"common_date_december"})]};return(0,s.jsx)(Rn,{"data-testid":dn.VideoAgeGateValidation,className:c()((0,i.Z)({},dn.VideoAgeGatePrompt,a)),children:(0,s.jsxs)(jn,{children:[(0,s.jsx)(On,{children:n?h:f}),!v&&(0,s.jsxs)(Ln,{"data-testid":dn.VideoAgeGateForm,children:[(0,s.jsx)(Cn.M,{translatedStrings:g,onChange:function(e){l(new Date(e.year,e.month-1,e.day))}}),(0,s.jsx)(Dn,{"data-testid":dn.VideoAgeGateSubmit,onClick:function(){t(o),p(!0)},children:y})]})]})})},Rn=Ce.default.div.withConfig({componentId:"sc-5d524b6c-0"})(An(),(0,$.setPropertyToColorVar)("background","ipt-baseAlt-bg"),dn.VideoAgeGatePrompt),jn=Ce.default.div.withConfig({componentId:"sc-5d524b6c-1"})(Sn(),$.spacing.xl,(0,$.setPropertyToColorVar)("background","ipt-baseAlt-shade1-bg")),On=Ce.default.div.withConfig({componentId:"sc-5d524b6c-2"})(Mn(),(0,$.setTypographyType)("bodySmall")),Ln=Ce.default.div.withConfig({componentId:"sc-5d524b6c-3"})(xn(),$.spacing.m),Dn=(0,Ce.default)(U.Button).withConfig({componentId:"sc-5d524b6c-4"})(Nn(),$.spacing.s),Vn=function(e){var t=e.isOpen,n=e.setIsOpen,i=e.shouldEnableCTA,a=e.children,r=e.playerPromptRoot;return i?(0,s.jsx)(U.Prompt,{isOpen:t,customContainer:r,onCloseClicked:function(){n(!1)},children:a}):(0,s.jsx)(s.Fragment,{children:a})},Hn=function(e){var t=e.shouldShowAgeGate,n=e.onAgeGateSubmit,i=e.shouldEnableCTA,a=e.playerPromptRoot,r=(0,d.useState)(!1),o=r[0],l=r[1],c=(0,d.useState)(!1),u=c[0],f=c[1];return(0,d.useEffect)((function(){u&&l(!1)}),[u]),t?(0,s.jsx)(p.wW,{componentId:v.NG.VideoAgeGate,children:(0,s.jsxs)(Ee,{"data-testid":dn.VideoAgeGate,captureAll:!0,children:[i&&(0,s.jsx)(En,{setIsPromptOpened:f}),(0,s.jsx)(Vn,{isOpen:u,setIsOpen:f,shouldEnableCTA:!!i,playerPromptRoot:a,children:(0,s.jsx)(kn,{onSubmit:function(e){n(e).isValidated?f(!1):l(!0)},isDenied:o,shouldEnableCTA:!!i})})]})}):null},Un=function(e){return e.wrapperRoot?hn.createPortal((0,s.jsx)(Hn,(0,a.Z)({},e)),e.wrapperRoot):null},Bn=n(56446),Fn="videoPlayer-dismiss-button";function Zn(){var e=(0,Te.Z)(["\n top: ",";\n left: ",";\n position: absolute;\n border: 0;\n padding: ",";\n pointer-events: all;\n transition-delay: 0s, 250ms;\n z-index: 6;\n"]);return Zn=function(){return e},e}var Gn=(0,Ce.default)(U.IconBorderButton).withConfig({componentId:"sc-749e7894-0"})(Zn(),$.spacing.xs,$.spacing.xs,$.spacing.xs),zn=function(e){var t=e.playerInstance,n=(0,Xe.N)({id:"videoplayer_dismiss",defaultMessage:"Dismiss player"});return(0,s.jsx)(Gn,{onClick:function(){null===t||void 0===t||t.setIsPlayerDismissed(!0)},"data-testid":"player-dismiss-button",className:Fn,name:"clear",label:n})},Wn=function(e){var t=e.playerInstance,n=e.container,i=null===t||void 0===t?void 0:t.getCanEnableStickyPlayer();return n&&i?hn.createPortal((0,s.jsx)(Ee,{children:(0,s.jsx)(zn,{playerInstance:t})}),n):null},Xn=n(45060),Yn=n(89254),Jn="videoPlayer-header-info",qn="videoPlayer-header-prompt__panel",Qn="videoPlayer-header-prompt__content",Kn="videoPlayer-header",$n="videoPlayer-header-name",ei="videoPlayer-header-title",ti="videoPlayer-header-info-button",ni="videoPlayer-header-info-prompt",ii="ext_shr_emb_vi",ai="ext_shr_emb_tt",ri="ext-shr-emb",oi=n(92050),si=n(91793);function li(){var e=(0,Te.Z)(["\n position: absolute;\n top: 0;\n left: 0;\n\n pointer-events: all;\n transition-delay: 0s, 250ms;\n z-index: 6; // z-index value is 6 to be on top of age gate\n\n // Similar to video player control bar gradient\n background: linear-gradient(\n to bottom,\n rgba(0, 0, 0, 0.7) 20%,\n rgba(0, 0, 0, 0.6) 67%,\n transparent\n )\n 100% 100%/100% 200px no-repeat transparent;\n transition: opacity 250ms cubic-bezier(0, 0.25, 0.25, 1),\n background-size 250ms cubic-bezier(0, 0.25, 0.25, 1);\n color: ",";\n\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n"]);return li=function(){return e},e}function ci(){var e=(0,Te.Z)(["\n display: flex;\n flex-direction: column;\n align-items: left;\n padding-top: ",";\n padding-left: ",";\n padding-bottom: ",";\n flex-grow: 1;\n"]);return ci=function(){return e},e}function di(){var e=(0,Te.Z)(["\n font-size: 1.5rem;\n line-height: 1.75rem;\n\n "," {\n font-size: 1.25rem;\n line-height: 1.5rem;\n }\n"]);return di=function(){return e},e}function ui(){var e=(0,Te.Z)(["\n padding-top: ",";\n font-size: 1rem;\n line-height: 1.25rem;\n\n "," {\n display: none;\n }\n"]);return ui=function(){return e},e}function vi(){var e=(0,Te.Z)(["\n ",";\n // override lineClamp display to be inline\n @supports (-webkit-line-clamp: 1) {\n display: -webkit-inline-box;\n }\n text-align: left;\n"]);return vi=function(){return e},e}function pi(){var e=(0,Te.Z)(["\n ","\n"]);return pi=function(){return e},e}function fi(){var e=(0,Te.Z)(["\n ","\n"]);return fi=function(){return e},e}function hi(){var e=(0,Te.Z)(["\n margin-right: ",";\n\n // Pro icon button default to black, so forcing all these values to be white\n color: ",";\n &:focus {\n outline-color: ",";\n }\n\n &:hover {\n color: ",";\n }\n"]);return hi=function(){return e},e}function yi(){var e=(0,Te.Z)(["\n // Pro icon button default to black, so forcing all these values to be white\n color: ",";\n &:focus {\n outline-color: ",";\n }\n\n &:hover {\n color: ",";\n }\n"]);return yi=function(){return e},e}function gi(){var e=(0,Te.Z)(["\n ."," {\n padding: ",";\n }\n\n "," {\n ."," {\n position: fixed;\n right: ",";\n top: calc(24px + 4.5rem);\n padding: ",";\n max-width: 320px;\n }\n }\n"]);return gi=function(){return e},e}var mi=(0,Ce.default)(Ee).withConfig({componentId:"sc-2026b1f8-0"})(li(),(0,$.getColorVarValue)("ipt-on-baseAlt-color")),Ii=Ce.default.div.withConfig({componentId:"sc-2026b1f8-1"})(ci(),$.spacing.s,$.spacing.s,$.spacing.l),bi=Ce.default.div.withConfig({componentId:"sc-2026b1f8-2"})(di(),$.mediaQueries.breakpoints.below.l),Pi=Ce.default.div.withConfig({componentId:"sc-2026b1f8-3"})(ui(),$.spacing.xxs,$.mediaQueries.breakpoints.below.s),wi=(0,Ce.css)(vi(),(0,si.S)(1)),Ei=Ce.default.span.withConfig({componentId:"sc-2026b1f8-4"})(pi(),wi),Ti=(0,Ce.default)(U.TextLink).withConfig({componentId:"sc-2026b1f8-5"})(fi(),wi),_i=(0,Ce.default)(U.IconButton).withConfig({componentId:"sc-2026b1f8-6"})(hi(),$.spacing.xs,(0,$.getColorVarValue)("ipt-on-baseAlt-color"),(0,$.getColorVarValue)("ipt-on-baseAlt-color"),(0,$.getColorVarValue)("ipt-on-baseAlt-color")),Ci=(0,Ce.default)(oi.ZP).withConfig({componentId:"sc-2026b1f8-7"})(yi(),(0,$.getColorVarValue)("ipt-on-baseAlt-color"),(0,$.getColorVarValue)("ipt-on-baseAlt-color"),(0,$.getColorVarValue)("ipt-on-baseAlt-color")),Ai=(0,Ce.default)(U.Prompt).withConfig({componentId:"sc-2026b1f8-8"})(gi(),qn,$.spacing.xs,$.mediaQueries.breakpoints.above.m,qn,$.spacing.xxs,$.spacing.l),Si=function(e){var t,n=e.video,i=e.isProPage,a=e.container;return a?hn.createPortal((0,s.jsxs)(mi,{className:Jn,"data-testid":Kn,captureAll:!0,children:[(0,s.jsx)(xi,{video:n,isProPage:i}),(0,s.jsx)("div",{children:(0,s.jsx)(Mi,{isProPage:i,videoId:n.id})}),(0,s.jsx)(Ni,{videoDescription:null===(t=n.description)||void 0===t?void 0:t.value,container:a})]}),a):null},Mi=function(e){var t=e.isProPage,n=e.videoId,i={shareEmailSubject:(0,Xe.N)({id:"video_singlepage_actionBar_shareEmailSubject",defaultMessage:"Watch this video on IMDb!"}),shareBody:(0,Xe.N)({id:"video_singlepage_actionBar_shareBody",defaultMessage:"Checkout this video on IMDb"})},a={emailSubject:i.shareEmailSubject,shareBody:i.shareBody},r=t?"/videoproembed/".concat(n):"/video/".concat(n);return(0,s.jsx)(Ci,{shareProps:a,pageActionPrefix:ri,url:r})},xi=function(e){var t=e.video,n=e.isProPage;return(0,s.jsxs)(Ii,{children:[(0,s.jsx)(ki,{isProPage:n,videoName:t.name.value,videoId:t.id}),t.primaryTitle&&(0,s.jsx)(Ri,{associatedTitle:t.primaryTitle})]})},Ni=function(e){var t=e.videoDescription,n=e.container,i=(0,F.Z)(d.useState(!1),2),a=i[0],r=i[1],o=(0,Xe.N)({id:"common_featureHeader_link_info",defaultMessage:"More information"});return t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_i,{name:Xn.IconNameList.INFO,"data-testid":ti,label:o,onSelect:function(){return r(!a)}}),(0,s.jsx)(Ai,{isOpen:a,customContainer:n,onCloseClicked:function(){r(!1)},panelClassName:qn,contentClassName:Qn,children:(0,s.jsx)("div",{"data-testid":ni,children:t})})]}):null},ki=function(e){var t=e.videoName,n=e.videoId,i=e.isProPage,a="/video/".concat(n,"?ref_=").concat(ii);return(0,s.jsx)(bi,{"data-testid":$n,children:i?(0,s.jsx)(Ei,{children:t}):(0,s.jsx)(Ti,{inheritColor:!0,href:a,text:t,type:"in_iframe"})})},Ri=function(e){var t,n,i,a=e.associatedTitle,r=(0,Yn.K)({originalTitleText:null===(t=a.originalTitleText)||void 0===t?void 0:t.text,titleText:null===(n=a.titleText)||void 0===n?void 0:n.text}),o="/title/".concat(a.id,"?ref_=").concat(ai),l=r,c=null===(i=a.releaseYear)||void 0===i?void 0:i.year;return c&&(l="".concat(r," (").concat(c,")")),(0,s.jsx)(Pi,{"data-testid":ei,children:(0,s.jsx)(Ti,{inheritColor:!0,href:o,text:l,type:"in_iframe"})})},ji=n(96242),Oi="videoplayer-reaction-bar-selector",Li="videoplayer-reaction-bar-selector-inner",Di="videoplayer-reaction-bar-summary";function Vi(){var e=(0,Te.Z)(["\n position: absolute;\n bottom: 0;\n width: 100%;\n ","\n border-radius: 0 0 8px 8px;\n box-shadow: 0 2px 4px 0 rgb(0 0 0 / 54%);\n transition: transform 200ms ease 50ms, opacity 100ms ease-out 0s;\n opacity: 0;\n visibility: hidden;\n transform: translate(0, 0);\n display: flex;\n flex-direction: row;\n align-items: center;\n"]);return Vi=function(){return e},e}var Hi=function(e){var t=e.viconst,n=e.videoName,i=e.refMarker,a=e.container,r=e.canMount,o=e.inSticky,l=e.testId,c=e.onReactionSelectorMenuChange;return a&&r?hn.createPortal((0,s.jsx)(Ui,{className:Oi,"data-testid":l,children:(0,s.jsx)(ji.W,{className:Li,associatedConstId:t,entityType:"video",refMarkerPrefix:i,associatedEntityName:n,hideReactionChipList:o,forceCloseButtonMenuSwitch:o,onReactionSelectorMenuChange:c})}),a):null},Ui=(0,Ce.default)(Ee).withConfig({componentId:"sc-9006f6de-0"})(Vi(),(0,$.setPropertyToColorVar)("background-color","ipt-baseAlt-shade2-bg")),Bi=n(59411);function Fi(){var e=(0,Te.Z)(["\n position: absolute;\n bottom: ",";\n right: ",";\n"]);return Fi=function(){return e},e}var Zi=function(e){var t=e.viconst,n=e.container,i=e.testId;return n?hn.createPortal((0,s.jsx)(Gi,{className:Di,"data-testid":i,children:(0,s.jsx)(Bi.I,{associatedConstId:t,entityType:"video"})}),n):null},Gi=Ce.default.div.withConfig({componentId:"sc-b98848dd-0"})(Fi(),$.spacing.m,$.spacing.xs),zi=n(25176),Wi=n(77290);function Xi(){var e=(0,Te.Z)(["\n #","\n .","\n .","::-webkit-media-text-track-display {\n background-color: rgba(0, 0, 0, 0) !important;\n }\n\n height: 100%;\n width: 100%;\n"]);return Xi=function(){return e},e}function Yi(){var e=(0,Te.Z)(["\n height: 100%;\n width: 100%;\n position: relative;\n"]);return Yi=function(){return e},e}function Ji(){var e=(0,Te.Z)(['\n background: black;\n width: 100%;\n height: 100%;\n\n /*******\n * Hide the JWPlayer right click context menu\n ********/\n .jw-rightclick {\n display: none;\n &.jw-open {\n display: none;\n }\n }\n\n /******************************************************\n * JWPlayer Query Selector Overrides for enabling custom playlisting navigation\n * These overrides only are visible when JWPlayer "controls" config attribute is true\n * See: https://developer.jwplayer.com/jwplayer/docs/jw8-player-configuration-reference#setup-options\n *******************************************************/\n\n /*******\n * Show the rewind button within the control bar\n * This is needed as JW Player hides this button by default for small screens\n ********/\n .jw-flag-small-player:not(.jw-flag-audio-player):not(.jw-flag-ads)\n .jw-controlbar\n .jw-button-container\n > .jw-icon-rewind {\n display: flex;\n }\n\n /*******\n * Show the controls on the video display for all screens\n ********/\n .jwplayer.jw-state-playing:not(.jw-flag-touch):not(.jw-flag-small-player):not(.jw-flag-casting)\n .jw-display,\n .jwplayer.jw-state-paused:not(.jw-flag-touch):not(.jw-flag-small-player):not(.jw-flag-casting):not(.jw-flag-play-rejected)\n .jw-display {\n display: flex;\n }\n\n /*******\n * Hide the rewind button on the video display \n *******/\n .'," {\n display: none;\n }\n\n /*******\n * Hide the default caption button on the video display \n *******/\n ."," {\n display: none;\n }\n\n /*****\n * Mimic spacing that comes from the square icons in the command bar\n *****/\n ."," {\n margin-right: 5.5px;\n\n "," {\n margin-right: 13.5px;\n }\n }\n\n ."," {\n margin-top: 0.5em;\n padding: 0 0.25em;\n }\n\n /*******\n * Hide navigation arrows by default (when there's no next/previous playlist item available)\n *******/\n ."," {\n /*******\n * Rotate Previous navigation icon as it is based on JW PLayer Next navigation icon\n *******/\n svg {\n transform: rotate(180deg);\n }\n visibility: hidden;\n display: inline-block;\n }\n\n ."," {\n visibility: hidden;\n }\n\n /*******\n * Hide display controls when an ad is playing\n ********/\n ."," {\n ."," {\n display: none;\n }\n\n ."," {\n display: none;\n }\n }\n\n /*******\n * Enable Sponsor Info Button when ad is playing.\n ********/\n\n // This solution works because the visual and logical ordering of the DOM are still in sync.\n // The SPACER is only used for visual purposes, so it can be moved.\n // This solution essentially shifts the SPACER back one place to separate visually.\n // If a new button is added to the ad UI it must keep visual order in sync with the DOM logical ordering.\n // Otherwise using a solution with a MutationObserver may be preferred to monitor and move elements.\n // If the visual and logical ordering differ it can create accessibility issues.\n // See: https://www.w3.org/TR/css-flexbox-1/#order-accessibility\n // And: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_flexible_box_layout/Ordering_flex_items#the_order_property_and_accessibility\n\n --sponsored-info-button-order: 1;\n\n ."," {\n display: none;\n }\n\n .","."," {\n ."," {\n order: calc(var(--sponsored-info-button-order) + 1);\n }\n // maintains ordering for future button placements.\n ."," ~ * {\n order: calc(var(--sponsored-info-button-order) + 2);\n }\n ."," {\n // By default the JWPlayer hides custom buttons in the ad ux.\n display: flex !important;\n order: var(--sponsored-info-button-order);\n svg {\n transform: scale(0.8);\n }\n }\n }\n\n /*******\n * Show navigation arrows when there's a next/previous playlist item available and there's no ad playing\n *******/\n &."," {\n .jwplayer:not(.jw-state-playing) .jw-display,\n .jwplayer:not(.jw-flag-user-inactive) .jw-display {\n ."," {\n visibility: visible;\n }\n }\n }\n\n &."," {\n .jwplayer:not(.jw-state-playing) .jw-display,\n .jwplayer:not(.jw-flag-user-inactive) .jw-display {\n ."," {\n visibility: visible;\n }\n }\n }\n\n /*******\n * Video Player Header related styles\n *******/\n .jw-flag-user-inactive.jw-state-playing\n .",",\n .jw-flag-user-inactive.jw-state-buffering\n ."," {\n visibility: hidden;\n pointer-events: none;\n opacity: 0;\n }\n\n /*******\n * Sticky player related styles\n *******/\n .jw-flag-user-inactive.jw-state-playing\n .",",\n .jw-flag-user-inactive.jw-state-buffering\n .",",\n .jw-flag-controls-hidden:not(.",")\n ."," {\n visibility: hidden;\n pointer-events: none;\n opacity: 0;\n }\n\n .","\n ."," {\n transform: scale(0.8);\n }\n "," {\n margin: 0;\n top: 0;\n right: 0;\n bottom: auto;\n }\n "," {\n display: none;\n pointer-events: none;\n }\n .","."," {\n background-image: none !important;\n z-index: 10;\n }\n "," {\n "," {\n animation: sticky-player-float-enter 200ms ease-in forwards 1 !important;\n }\n ",".exit {\n animation: sticky-player-float-exit 200ms ease-out forwards 1 !important;\n }\n }\n "," {\n "," {\n max-width: 100% !important;\n }\n }\n "," {\n "," {\n max-width: 320px !important;\n }\n }\n "," {\n "," {\n max-width: 330px !important;\n }\n }\n "," {\n "," {\n max-width: 407px !important;\n }\n }\n @keyframes sticky-player-float-enter {\n from {\n transform: translateX(-40%);\n opacity: 0;\n }\n to {\n transform: translateX(0);\n opacity: 1;\n }\n }\n @keyframes sticky-player-float-exit {\n from {\n transform: translateX(0);\n opacity: 1;\n }\n to {\n transform: translateX(-40%);\n opacity: 0;\n }\n }\n\n &."," {\n .jwplayer:not(.jw-flag-controls-hidden, .jw-flag-user-inactive, .jw-state-idle),\n .jwplayer.jw-state-paused.jw-flag-user-inactive,\n &."," .jwplayer {\n overflow: visible;\n\n &:not(.jw-flag-ads) ."," {\n transform: translate(0, 100%);\n opacity: 1;\n visibility: visible;\n transition: transform 200ms ease 0ms, opacity 100ms ease-in 50ms;\n }\n\n ."," {\n display: none;\n }\n }\n\n .jwplayer.jw-flag-ads ."," {\n display: none;\n }\n\n /* Disable Inline Reactions during fullsceen playback. */\n .jwplayer.jw-flag-fullscreen {\n .",",\n ."," {\n display: none;\n }\n }\n\n /* Adding this slight animation allows the mimic of the transition on initial display and\n prevents a timing issue on render when transitioning out of sticky with the player open */\n ."," {\n animation: reaction-bar-fade-in 200ms ease-in;\n }\n }\n\n @keyframes reaction-bar-fade-in {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n"]);return Ji=function(){return e},e}var qi="has-previous-playlist-item",Qi="has-next-playlist-item",Ki="vp-reaction-inline",$i="vp-reaction-inline-menu-open",ea=Ce.default.div.withConfig({shouldForwardProp:function(e){return"string"!==typeof e||((0,Wi.Z)(e)||["cel_widget_id"].includes(e))}}).withConfig({componentId:"sc-2bff8bee-0"})(Xi(),P.LU,V.pn.MEDIA_CONTAINER,V.pn.VIDEO),ta=Ce.default.div.withConfig({componentId:"sc-2bff8bee-1"})(Yi()),na=Ce.default.div.withConfig({componentId:"sc-2bff8bee-2"})(Ji(),V.pn.REWIND_BUTTON_CONTAINER,V.pn.DEFAULT_CAPTION_ICON_CONTAINER,V.pn.LOGO_ICON_CONTAINER,$.mediaQueries.breakpoints.above.xl,V.pn.TEXT_TRACK_DISPLAY,V.pn.PREVIOUS_BUTTON_CONTAINER,V.pn.NEXT_BUTTON_CONTAINER,V.pn.ADS_PLAYING_FLAG,V.pn.DISPLAY_CONTROLS_CONTAINER,V.pn.FULL_SCREEN_CONTROL,Je,V.pn.JW_PLAYER,V.pn.ADS_PLAYING_FLAG,V.pn.SPACER,V.pn.SPACER,Je,qi,V.pn.PREVIOUS_BUTTON_CONTAINER,Qi,V.pn.NEXT_BUTTON_CONTAINER,Jn,Jn,Fn,Fn,V.pn.AGE_GATE_FLAG,Fn,V.pn.STICKY_PLAYER_FLAG,Fn,V.CF,V.mj,V.pn.JW_PLAYER,V.pn.STICKY_PLAYER_FLAG,$.mediaQueries.breakpoints.above.s,V.CF,V.CF,$.mediaQueries.breakpoints.below.s,V.CF,$.mediaQueries.breakpoints.only.m,V.CF,$.mediaQueries.breakpoints.only.l,V.CF,$.mediaQueries.breakpoints.above.xl,V.CF,Ki,$i,Oi,Di,Di,Oi,Di,Li);var ia=(0,d.forwardRef)((function(e,t){var n,l,f,h=(0,d.useRef)(null),y=(0,u.V)(),g=(0,d.useState)(void 0),m=g[0],I=g[1],b=(0,d.useState)(void 0),w=b[0],E=b[1],T=(0,d.useState)(!1),_=T[0],C=T[1],A=(0,d.useCallback)((function(e){C(e)}),[]),S=e.video,M=e.videoPlayerId,x=e.configPresetName,N=e.playbackType,k=void 0===N?"playback":N,R=e.assetName,j=e.className,O=e.refMarker,U=e.children,F=e.hasNextPlaylistItem,X=e.hasPreviousPlaylistItem,Y=e["data-testid"],J=e.videoContainerOnClick,q=e.unmuteButtonConfig,Q=e.enableHeader,K=void 0!==Q&&Q,$=e.isProPage,ee=void 0!==$&&$,te=e.logoConfig,ne=e.timedTextTrackConfig,ie=e.enableInlineReactions,ae=(0,o.Z)(e,["video","videoPlayerId","configPresetName","playbackType","assetName","className","refMarker","children","hasNextPlaylistItem","hasPreviousPlaylistItem","data-testid","videoContainerOnClick","unmuteButtonConfig","enableHeader","isProPage","logoConfig","timedTextTrackConfig","enableInlineReactions"]),re=(0,v.o3)(M),oe="preview"!==k,se=(0,d.useMemo)((function(){var e="playback"===k?function(e){if(!e.playbackURLs||e.playbackURLs.length<1)return null;var t=e.playbackURLs.filter((function(e){return e.videoDefinition===me.O1.Def_480p}));return 0===t.length&&(t=e.playbackURLs),Pe(e,t)}(S):function(e){var t;return!e.previewURLs||(null===(t=e.previewURLs)||void 0===t?void 0:t.length)<1?null:Pe(e,e.previewURLs)}(S);return{viconst:(null===e||void 0===e?void 0:e.viconst)||"",videoLegacyEncodings:(null===e||void 0===e?void 0:e.playbackURLs)||[],isMature:null===e||void 0===e?void 0:e.isMature,videoThumbnailImageSource:(0,H.c)(null===e||void 0===e?void 0:e.thumbnail.url),videoLegacyAdUrl:null===e||void 0===e?void 0:e.webAdURL,timedTextTrackInfo:oe?null===e||void 0===e?void 0:e.timedTextTracks:null}}),[S,k]),le=function(e){var t=e.id,n=e.viconst,i=e.container,o=e.configPresetName,s=e.playbackData,l=e.configEventHandlers,c=e.playerEventHandlers,u=e.hasPreviousPlaylistItem,v=e.hasNextPlaylistItem,p=e.assetName,f=e.skipEventHandlerUpdates,h=e.logoConfig,y=e.disableBIMetrics,g=(0,z.B)().context,m=(0,W.Vu)(),I=(0,d.useState)(null),b=I[0],P=I[1];return(0,d.useEffect)((function(){if(i.current){var e=new be({id:t,viconst:n,container:i.current,configPresetName:o,configEventHandlers:l,playerEventHandlers:c,assetName:p,disableBIMetrics:y});P(e)}}),[i]),(0,d.useEffect)((function(){G.isNode||s.videoLegacyEncodings.length>0&&(null===b||void 0===b||b.load(s,(0,r.Z)((0,a.Z)({},g),{pageConst:g.pageConst||n}),m,h))}),[n,s,b]),(0,d.useEffect)((function(){null===b||void 0===b||b.setHasNextPlaylistItem(!!v)}),[b,v]),(0,d.useEffect)((function(){null===b||void 0===b||b.setHasPreviousPlaylistItem(!!u)}),[b,u]),(0,d.useEffect)((function(){c&&!f&&(null===b||void 0===b||b.setEventHandlers(c))}),[c,f]),b}({id:M,viconst:S.id,container:h,configPresetName:x,playbackData:se,hasNextPlaylistItem:F,hasPreviousPlaylistItem:X,playerEventHandlers:ae,assetName:R,skipEventHandlerUpdates:oe,logoConfig:te,disableBIMetrics:ee}),ce=function(e){var t=(0,d.useState)(!1),n=t[0],i=t[1];return(0,d.useEffect)((function(){null===e||void 0===e||e.setEventHandlers({onFloat:function(e){var t=e.eventData.floating;i(t)}})}),[e]),n}(le);n=null===le||void 0===le?void 0:le.container,l=E,f=I,D({container:n,checkAddedElementIsTarget:function(e){var t;if(!(null===(t=e.id)||void 0===t?void 0:t.startsWith(P.Je)))return!1;var n=e.querySelector(".".concat(V.pn.WRAPPER_CONTAINER));if(n){var i=document.createElement("div");i.id="".concat(P.Je,"-root");var a,r,o=n.nextElementSibling;return o?null===(a=n.parentElement)||void 0===a||a.insertBefore(i,o):null===(r=n.parentElement)||void 0===r||r.appendChild(i),l(n),f(i),!0}return!1}});var de,ue=Z({wrapperElement:w,playerInstance:le}),ve=B({playbackData:se,playerInstance:le,isStickyPlayerActive:ce}),pe=ve.shouldShowAgeGate,fe=ve.onAgeGateSubmit,he=ve.shouldEnableCTA;if((0,d.useImperativeHandle)(t,(function(){return{containerRef:h,playerInstance:le}}),[h,le]),y)return(0,s.jsx)(zi.G,{video:S});var ye=c()((de={},(0,i.Z)(de,Qi,F),(0,i.Z)(de,qi,X),(0,i.Z)(de,Ki,ie),(0,i.Z)(de,$i,_),de)),ge=null;if(oe){var Ie,we=(null===ne||void 0===ne?void 0:ne.timedTextTrackSetting)?function(e){var t=null,n=null;switch(e){case"off":t=pt.OFF;break;case"auto":t=pt.ALWAYS_ON;break;case"sb":t=pt.ALWAYS_ON,n=ht.SUB;break;case"cc":t=pt.ALWAYS_ON,n=ht.CC}return{timedTextTrackStatus:t,timedTextTrackType:n}}(null===ne||void 0===ne?void 0:ne.timedTextTrackSetting):void 0;ge=(0,s.jsx)(Lt,{tracks:S.timedTextTracks||[],player:le,recTrackLanguage:null===(Ie=S.recommendedTimedTextTrack)||void 0===Ie?void 0:Ie.language,preferredTrackLanguage:null===ne||void 0===ne?void 0:ne.timedTextTrackLocale,parentEventHandlers:ae,playerPromptRoot:m,status:null===we||void 0===we?void 0:we.timedTextTrackStatus,type:null===we||void 0===we?void 0:we.timedTextTrackType})}var Ee=L[x].jwPlayerConfig.options.advertising;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Bn.k,{}),(0,s.jsx)(p.wW,{componentId:re,children:(0,s.jsx)(ea,{"data-testid":"".concat(M,"-player-container"),children:(0,s.jsxs)(ta,{className:j,id:P.LU,children:[(0,s.jsx)(Un,{onAgeGateSubmit:fe,shouldShowAgeGate:pe,playerPromptRoot:m,wrapperRoot:w,shouldEnableCTA:he}),(0,s.jsx)(Wn,{playerInstance:le,container:w}),ie&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Zi,{viconst:S.id,container:w,testId:"".concat(M,"-reactions-summary")}),(0,s.jsx)(Hi,{viconst:S.id,videoName:S.name.value,refMarker:O,canMount:ue,container:w,inSticky:ce,testId:"".concat(M,"-reactions-bar"),onReactionSelectorMenuChange:A})]}),K&&(0,s.jsx)(Si,{video:S,isProPage:ee,container:m}),q&&(0,s.jsx)(vn,(0,r.Z)((0,a.Z)({},q),{onClick:function(){var e;null===(e=q.onClick)||void 0===e||e.call(q),null===le||void 0===le||le.setMute(!1),null===le||void 0===le||le.setControls(!0)}})),U,(0,s.jsx)(na,{ref:h,"data-testid":Y,className:ye,onClick:J})]})})}),ge,Ee&&(0,s.jsx)($e,{player:le,parentEventHandlers:ae,playerPromptRoot:m})]})}))},95507:function(e,t,n){n.d(t,{Ez:function(){return a},fP:function(){return i},u5:function(){return r}});var i={TITLE_LINK:"vp_vi_tt",TITLE_POSTER_LINK:"vp_vi_tt_p",WATCHLIST_RIBBON_ACTION:"vp_vi_wl_rbn",WATCH_OPTIONS_BASE:"vp_wbr_btf"},a={pageType:"video",subPageType:"details",refTag:i.WATCHLIST_RIBBON_ACTION},r={container:"video-preference",stickyActive:"stickyActive"}},57862:function(e,t,n){var i;n.d(t,{$:function(){return i}}),function(e){e.DEFAULT_CONFIG="default_config",e.EMBED_VIDEO_PLAYBACK="embed_video_playback",e.EMBED_VIDEO_PLAYBACK_PRO="embed_video_playback_pro",e.INLINE_VIDEO_PLAYBACK="inline_video_playback",e.INLINE_VIDEO_PREVIEW="inline_video_preview",e.NATIVE_VIDEO_PREVIEW="native_video_preview",e.INLINE_HOVER_PREVIEW="hover_preview",e.PLAYBACK_PAGE_PLAYER_CONFIG="playback_page_player_config",e.PLAYBACK_PAGE_PLAYER_CONFIG_AUTOPAUSE="playback_page_player_config_autopause",e.PLAYBACK_PAGE_PLAYER_CONFIG_AUTOPAUSE_MUTED="playback_page_player_config_autopause_muted"}(i||(i={}))},75502:function(e,t,n){n.d(t,{y:function(){return i}});var i=function(e){var t=e.isPlayerDismissed,n=e.hasUserInteracted,i=e.isMainPlayerInView,a=e.mainPlayerTopPosition;return!i&&!!(!t&&window.scrollY>a&&n)}},14462:function(e,t,n){n.d(t,{c:function(){return a}});var i=n(1768);function a(e){if(e)try{return(0,i.F2)((0,i.F2)(e,"SY720_"),"QL75_")}catch(t){return e}}},84712:function(e,t,n){n.d(t,{$r:function(){return i},cc:function(){return r},mG:function(){return a}});var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return'')},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return'')},r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return'\n \n \n \n \n \n ')}}}]);