"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4332],{11390:(e,t,l)=>{l.d(t,{K:()=>a});let a=(e,t)=>{var l;if(!(null==t?void 0:t.file))return[];if("string"==typeof e)return(null==t?void 0:t.file)?[t]:[];let a=Array.isArray(e)?e:[];return(null==t?void 0:t.file)&&(!(a.length>0)||(null==(l=a[0])?void 0:l.file)!==(null==t?void 0:t.file))?[t,...a.filter(e=>e.file!==t.file)]:a}},13177:(e,t,l)=>{l.r(t),l.d(t,{VideoBlock:()=>K,default:()=>X});var a=l(66881),n=l(89925),i=l(29992),r=l(61021),o=l(83176),s=l(11390),d=l(381);let c=(0,d.h)("AdUtils"),u=async e=>{let{player:t,user:l,ctx:a={},isMobile:n=!1}=e;if(!t)return;if(null==l?void 0:l.isUserPremium)return void t.play();let i=await m(a,n);i?t.playAd(i):t.play()},m=async function(e){let t,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!g())return null;let a=p(e,l),n=v({},e.iab);window.__Helios.emit("UPDATE_AD_UNIT_PATH",a);try{var i,r,o;null==(o=window.__Helios.modules)||null==(r=o.iabc)||null==(i=r.update)||i.call(r,{page:n,site:{v1:["IAB15-10_Weather"],v3:["390_Weather"]}})}catch(e){c.error("Error updating IABC parameters",e)}try{t=await f()}catch(e){t=null,c.error("Error getting ad tag",e)}return window.__Helios.emit("UPDATE_AD_UNIT_PATH",a),t},v=(e,t)=>{let l={...e};for(let e in t)Array.isArray(t[e])?(l[e]=[...l[e]||[],...t[e]],l[e]=[...new Set(l[e])]):"object"==typeof t[e]&&null!==t[e]?l[e]=v(l[e]||{},t[e]):l[e]=t[e];return l},p=(e,t)=>{let l=e.collectionAdZone||e.adzone||"video";return"".concat("/7646","/").concat("").concat(t?"mobile_smart_us":"web_weather_us","/").concat(l)},f=async()=>{let e=[];try{var t;e=await (null==(t=window)?void 0:t.__Helios.video.requestVideoBids())}catch(e){c.error("Error getting video bids",e)}return await window.__Helios.modules.videoTag.createAdTag(e)},g=()=>{try{var e,t,l,a,n;return"function"==typeof(null==(t=window.__Helios)||null==(e=t.video)?void 0:e.requestVideoBids)&&"function"==typeof(null==(n=window.__Helios)||null==(a=n.modules)||null==(l=a.videoTag)?void 0:l.createAdTag)}catch(e){return!1}},y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"https";return e.replace(/^\/\//,"".concat(t,"://"))},b=e=>{let{collectionId:t,videoIndex:l,videoId:a}=e||{};return{videoCount:l,videoId:a,collectionId:t}},h=e=>"GDFP"===e||"AdSense/AdX"===e;l(55180);var w=l(37811);let x=(0,d.h)("NewRelic");function N(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var l,a,n;null==(n=window)||null==(a=n.NREUM)||null==(l=a.addPageAction)||l.call(a,e,{...k(t,"meta.")})}catch(e){x.error("New Relic: sendReumEvent error",e instanceof Error?e.message:String(e))}}w.env.NEW_RELIC_RUM_ACCOUNT_ID,w.env.NEW_RELIC_RUM_APP_ID,w.env.NEW_RELIC_RUM_LICENSE_KEY;let k=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.fromEntries(Object.entries(e).map(e=>{let[l,a]=e;return["".concat(t).concat(l),a]}))},j=(0,d.h)("AdEvents"),A=new Set(["amznbid","crt_pb","hb_pb"]),I=[{eventName:"ready",callback:e=>{let{event:t}=e;N("videoReady",{isViewable:!!t.viewable,setupTime:t.setupTime})}},{eventName:"beforePlay",callback:async e=>{var t;let{event:l,player:a,isFirstPlayRef:n,user:i,isMobile:r}=e;if(!(null==n?void 0:n.current))return;let o=a.getPlaylistItem(),s=null==o||null==(t=o.custom)?void 0:t.ctx;s.videoIndex=a.getPlaylistIndex(),N("videoBeforePlay",{...b(s),isViewable:!!l.viewable,playReason:l.playReason}),a.stop(),await u({player:a,user:i,ctx:s,isMobile:r}),n.current=!1}},{eventName:"adRequest",callback:e=>{var t;let{event:l,player:a}=e,n=a.getPlaylistItem(),i=null==n||null==(t=n.custom)?void 0:t.ctx,r={},o=b(i);try{let e=y(l.tag||""),t=new URL(e).searchParams.get("cust_params"),a=(e=>e?e.split("&").reduce((e,t)=>{let[l,a]=t.split("=");return l&&a&&(e[l]||(e[l]=[]),e[l].push(a)),e},{}):{})(t);for(let e of Object.keys(a))A.has(e)&&(r["".concat("kv_").concat(e)]="".concat(a[e]))}catch(e){j.error("Error parsing cust_params",e)}N("videoAdRequest",{...o,isViewable:!!l.viewable,roll:l.adposition,...r})}},{eventName:"adStarted",callback:e=>{var t,l,a,n,i,r;let{event:o,player:s}=e,d=s.getPlaylistItem(),c=null==d||null==(t=d.custom)?void 0:t.ctx,{duration:u,adposition:m}=o,v=b(c),p="";try{let e=null==(r=o.ima)||null==(i=r.ad)?void 0:i.data;e&&(p=(e=>{let{adSystem:t,adId:l,adWrapperSystems:a,adWrapperIds:n}={adSystem:"",adId:"",adWrapperSystems:[],adWrapperIds:[],...e};if(h(t))return l;let i=a.findIndex(h);return i>=0&&i{var t;let{event:l,player:a}=e,n=a.getPlaylistItem();N("videoStart",{...b(null==n||null==(t=n.custom)?void 0:t.ctx),isViewable:!!l.viewable,loadTime:l.loadTime})}},{eventName:"complete",callback:e=>{var t;let{player:l}=e,a=l.getPlaylistItem();N("videoComplete",{...b(null==a||null==(t=a.custom)?void 0:t.ctx)})}},{eventName:"adSkipped",callback:e=>{var t;let{player:l}=e,a=l.getPlaylistItem();N("videoAdSkip",{...b(null==a||null==(t=a.custom)?void 0:t.ctx)})}},{eventName:"playlistItem",callback:async e=>{var t;let{event:l,player:a,isFirstPlayRef:n,user:i,isMobile:r}=e;if(null==n?void 0:n.current)return;let{item:o}=l,s=null==o||null==(t=o.custom)?void 0:t.ctx;s.videoIndex=a.getPlaylistIndex(),a.stop(),await u({player:a,user:i,ctx:s,isMobile:r})}},{eventName:"adComplete",callback:async e=>{let{player:t}=e;t.play()}},{eventName:"adError",callback:async e=>{var t;let{event:l,player:a}=e,n=a.getPlaylistItem();N("videoAdError",{...b(null==n||null==(t=n.custom)?void 0:t.ctx),message:l.message,code:l.code,vastCode:l.vastCode,roll:l.adposition}),j.error("Ad error occurred",l),a.play()}},{eventName:"error",callback:async e=>{var t;let{event:l,player:a}=e,n=a.getPlaylistItem();N("videoError",{...b(null==n||null==(t=n.custom)?void 0:t.ctx),message:l.message,code:l.code}),j.error("Video Player error",l)}},{eventName:"setupError",callback:e=>{let{event:t}=e;N("videoSetupError",{message:t.message,code:t.code})}}];var E=l(74011),_=l(71503);let S="",P="",C=1,R=0,T=0,M={adImpression:!1,videoAttempt:!1,videoPlayed:!1,videoStarted:!1,videoCompleted:!1,videoEnd:!1};function F(){Object.keys(M).map(e=>{M[e]=!1}),R=0,T=0}function B(e,t){var l,a,n,i,r,o,s,d,c,u,m,v,p,f,g,y,b,h,w,x,N,k,j,A,I,S,P,C,R,T,M,F,B,z,L,O,U;let W=t||e.getPlaylistItem();return{adBlock:e.getAdBlock(),adsMetricsUnitAndZone:null==W||null==(a=W.custom)||null==(l=a.ctx)?void 0:l.adzone,aspectRatio:null==e||null==(n=e.getConfig())?void 0:n.aspectratio,assetName:(0,E.EY)(null!=(O=null==W||null==(r=W.custom)||null==(i=r.ctx)?void 0:i.assetName)?O:""),collection:null==W||null==(s=W.custom)||null==(o=s.ctx)?void 0:o.pcollid,collectionId:null==W||null==(c=W.custom)||null==(d=c.ctx)?void 0:d.pcollid,contentId:null==W||null==(m=W.custom)||null==(u=m.ctx)?void 0:u.id,entitlements:(0,_.X)(null!=(U=null==W||null==(p=W.custom)||null==(v=p.ctx)?void 0:v.entitlements)?U:[]),iabContent:(0,E.IA)((null==W||null==(g=W.custom)||null==(f=g.ctx)?void 0:f.iab)||{}),id:null==W||null==(b=W.custom)||null==(y=b.ctx)?void 0:y.id,duration:null==W||null==(w=W.custom)||null==(h=w.ctx)?void 0:h.duration,lastmodifieddate:null==W||null==(k=W.custom)||null==(N=k.ctx)||null==(x=N.lastmodifieddate)?void 0:x.toString(),muted:e.getMute(),premiumContent:null==W||null==(A=W.custom)||null==(j=A.ctx)?void 0:j.premium,publishdate:null==W||null==(P=W.custom)||null==(S=P.ctx)||null==(I=S.publishdate)?void 0:I.toString(),providerName:null==W||null==(R=W.custom)||null==(C=R.ctx)?void 0:C.providername,tagsGeo:(0,_.X)(null==W||null==(M=W.custom)||null==(T=M.ctx)?void 0:T.tagsGeo),tagsKeyword:(0,_.X)(null==W||null==(B=W.custom)||null==(F=B.ctx)?void 0:F.tagsKeyword),tagsStorm:(0,_.X)(null==W||null==(L=W.custom)||null==(z=L.ctx)?void 0:z.tagsStorm)}}let z=[{eventName:"ready",callback:e=>{let{player:t,trackVideoEvent:l}=e;window.addEventListener("beforeunload",()=>{M.videoStarted&&!M.videoEnd&&(t.getPlaylistItem()&&!M.videoAttempt&&l&&l({eventName:"video-end",eventAttributes:{adtitle:S,errorMessage:P,contentWatchedSeconds:R,playReason:"",videoView:C,...B(t)}}),M.videoEnd=!0)})}},{eventName:"adImpression",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e,n=l.getPlaylistItem();F(),console.debug("JW Player callback - adImpression eventSentFlags:",M),S=null==t?void 0:t.adtitle,M.adImpression=!0,n&&!M.videoAttempt&&a&&(a({eventName:"video-attempt",eventAttributes:{adtitle:S,errorMessage:P,playReason:"",videoView:C,...B(l)}}),M.videoAttempt=!0),n&&!M.videoPlayed&&a&&(a({eventName:"video-played",eventAttributes:{adtitle:S,errorMessage:P,playReason:"",videoView:C,...B(l)}}),M.videoPlayed=!0)}},{eventName:"viewable",callback:async e=>{let{event:t}=e;C=null==t?void 0:t.viewable}},{eventName:"playlistItem",callback:async e=>{let{player:t,trackVideoEvent:l}=e;if(M.videoStarted&&!M.videoCompleted&&!M.videoEnd){let e=t.getPlaylistIndex(),a=t.getPlaylistItem(e-1);l({eventName:"video-end",eventAttributes:{adtitle:S,errorMessage:P,contentWatchedSeconds:R,playReason:"",videoView:C,...B(t,a)}}),M.videoEnd=!0}}},{eventName:"playAttempt",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();M.adImpression||F(),P="",console.debug("JW Player callback - playAttempt eventSentFlags:",M),a&&!M.videoAttempt&&l&&(M.videoAttempt=!0,l({eventName:"video-attempt",eventAttributes:{adtitle:S,errorMessage:P,playReason:"",videoView:C,...B(t)}}))}},{eventName:"firstFrame",callback:async e=>{let{player:t,trackVideoEvent:l}=e;console.debug("JW Player callback - firstFrame eventSentFlags:",M);let a=t.getPlaylistItem();a&&!M.videoPlayed&&l&&(l({eventName:"video-played",eventAttributes:{adtitle:S,errorMessage:P,playReason:"",videoView:C,...B(t)}}),M.videoPlayed=!0),a&&!M.videoStarted&&l&&(l({eventName:"video-started",eventAttributes:{adtitle:S,errorMessage:P,playReason:"",videoView:C,...B(t)}}),M.videoStarted=!0)}},{eventName:"complete",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();console.debug("JW Player callback - complete eventSentFlags:",M),a&&!M.videoCompleted&&l&&(l({eventName:"video-completed",eventAttributes:{adtitle:S,errorMessage:P,playReason:"",videoView:C,...B(t)}}),M.videoCompleted=!0),M.videoStarted&&!M.videoEnd&&(l({eventName:"video-end",eventAttributes:{adtitle:S,errorMessage:P,contentWatchedSeconds:R,playReason:"",videoView:C,...B(t)}}),M.videoEnd=!0)}},{eventName:"adStarted",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e,n=l.getPlaylistItem();console.debug("JW Player callback - adStarted eventSentFlags:",M),S=null==t?void 0:t.adtitle,n&&a&&a({eventName:"ad-started",eventAttributes:{adtitle:S,errorMessage:P,playReason:"",videoView:C,...B(l)}})}},{eventName:"adSkipped",callback:async e=>{let{player:t,trackVideoEvent:l}=e;t.getPlaylistItem()&&l&&l({eventName:"ad-skipped",eventAttributes:{adtitle:S,errorMessage:P,playReason:"",videoView:C,...B(t)}})}},{eventName:"adComplete",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e,n=l.getPlaylistItem();console.debug("JW Player callback - adComplete eventSentFlags:",M),S=null==t?void 0:t.adtitle,n&&a&&a({eventName:"ad-complete",eventAttributes:{adtitle:S,errorMessage:P,playReason:"",videoView:C,...B(l)}})}},{eventName:"adError",callback:async e=>{let{event:t}=e;console.error("Video ad error:",t)}},{eventName:"error",callback:async e=>{let{event:t}=e;P=null==t?void 0:t.message,console.error("Video Player error:",t)}},{eventName:"time",callback:e=>{let{event:t}=e;if("number"==typeof(null==t?void 0:t.position)){let e=t.position-T;R+=e,T=t.position}}},{eventName:"seek",callback:e=>{let{event:t}=e;"number"==typeof(null==t?void 0:t.offset)&&(T=t.offset)}}];var L=l(68825),O=l(57934),U=l(31321),W=l(23435),Z=l(21453),D=l(60012),V=l(79670),J=l(51310),H=l(98173),$=l(79347);let q=async e=>{let t=await fetch(e);if(!t.ok)throw Error("Failed to fetch video data from ".concat(e));return t.json()},K=e=>{var t;let{file:l,image:d,title:c,description:u,tracks:m=[],playlist:v,custom:p={},playerSettings:f,descriptionAttributes:g,videoReference:y,playlistsReference:b=[]}=e,h="video-player-".concat((0,n.useId)()),w=(0,n.useRef)(!0),x=(0,n.useRef)(null),N=(null==(t=(0,H.J)())?void 0:t.user)||{},k=(0,$.i)(),j=null;y&&("string"==typeof y?j="/api/payload/videos/".concat(y):"object"==typeof y&&(j=(null==y?void 0:y.id)?"/api/payload/videos/".concat(y.id):null));let{data:A,error:_}=(0,i.Ay)(j,q,{revalidateOnFocus:!1,dedupingInterval:3e5}),S=(()=>{let e=(0,Z.q)(),t=(0,O.N)({effectiveLocation:e}),l=(0,W.A)(),a=(0,U.usePathname)();return(0,n.useCallback)(e=>{let{eventName:n,eventAttributes:i={}}=e;if(!L.A.isInitialized())return void console.warn("MParticle is not initialized");let r={...i,author:(null==l?void 0:l.author)||"",contentId:(null==l?void 0:l.contentId)||i.contentId,teaserTitle:"",title:"",...t,url:a?(0,E.EY)(a):""};try{L.A.logEvent(n,L.A.EventType.Other,r),console.debug('MParticle: Video Event tracked - "'.concat(n,'"'),r)}catch(e){console.error('MParticle: Failed to track Video Event - "'.concat(n,'"'),e)}},[null==l?void 0:l.author,null==l?void 0:l.contentId,t,a])})(),P=(0,n.useMemo)(()=>{let e=[];return!Array.isArray(m)&&(null==m?void 0:m.file)?e.push(m):Array.isArray(m)&&e.push(...m),e},[m]),C=(0,n.useMemo)(()=>A&&Object.keys(A).length>0||y&&"string"!=typeof y,[A,y]),R=(0,n.useMemo)(()=>A&&Object.keys(A).length>0?A:y&&"string"!=typeof y?y:null,[A,y]),T=(0,n.useMemo)(()=>{var e,t,a,n,i,r,o,s,d;return C&&(null==R||null==(t=R.content)||null==(e=t.videoFormatUrls)?void 0:e.length)>0?(null==R||null==(n=R.content)||null==(a=n.defaultFormat)?void 0:a.url)?null==R||null==(d=R.content)||null==(s=d.defaultFormat)?void 0:s.url:null==R||null==(o=R.content)||null==(r=o.videoFormatUrls)||null==(i=r[0])?void 0:i.url:l},[C,R,l]),M=(0,n.useMemo)(()=>{if(C){var e;return(null==R||null==(e=R.content)?void 0:e.keyFrameImage)||d}return d},[C,R,d]),F=(0,n.useMemo)(()=>C&&(null==R?void 0:R.title)||c,[C,R,c]),B=(0,n.useMemo)(()=>(C&&(null==R||R.description),u),[C,R,u]),K=(0,n.useMemo)(()=>{if(x.current&&JSON.stringify({file:T,image:M,title:F,description:B,tracks:P,playlist:v,custom:p})===JSON.stringify(x.current))return x.current;let e=M||(T?(0,o.e)(T):null)||"/placeholder.jpg",t={file:T,image:e,title:F,description:B,tracks:P,custom:p};return x.current=t,t},[T,M,F,B,P,v,p]),X=(0,n.useMemo)(()=>{var e,t,l,a;let n=[];return v&&(n=(0,s.K)(v,K)||[]),b&&b.length,C&&(null==R||null==(e=R.content)?void 0:e.playlists)&&Array.isArray(null==R||null==(t=R.content)?void 0:t.playlists)&&(null==R||null==(a=R.content)||null==(l=a.playlists)||l.length),n.length>0?n:[K]},[v,K,b,R,C]);if((0,n.useEffect)(()=>{w.current=!0},[X]),y&&"string"==typeof y&&!A&&!_)return(0,a.jsx)("div",{className:"flex h-32 items-center justify-center bg-gray-100",children:(0,a.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-b-2 border-t-2 border-gray-900"})});if(_)return(0,a.jsx)("div",{className:"flex h-32 items-center justify-center bg-red-100 text-red-800",children:(0,a.jsx)("span",{children:"Failed to load video data"})});if(!T)return null;let Y=[...I,...z].map(e=>{let{eventName:t,callback:l}=e;return{eventName:t,callback:e=>{let{event:t,player:a}=e;return l({event:t,player:a,isFirstPlayRef:w,user:N,trackVideoEvent:S,isMobile:k})}}});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(D.DebugCollector,{componentName:"VideoBlock",data:{props:{file:l,image:d,title:c,description:u,tracksCount:(0,V.J)(P),hasPlaylist:!!v&&v.length>0,custom:p},state:{videoObject:K,playlistItems:X.length,isFirstPlay:w.current,events:Y.map(e=>e.eventName)},performance:{}}}),(0,a.jsx)(r.h,{playlist:X,events:Y},h),(null==f?void 0:f.showDescriptions)&&(0,a.jsx)("p",{...g,className:(0,J.cn)("my-2 text-sm",null==g?void 0:g.className),children:K.title})]})},X=K},20232:(e,t,l)=>{l.r(t),l.d(t,{LiveblogEntriesBlock:()=>n,default:()=>i});var a=l(66881);l(89925);let n=()=>(0,a.jsx)("div",{children:"Live Blog Entries"}),i=n},24592:(e,t,l)=>{l.r(t),l.d(t,{TwitterBlock:()=>i,default:()=>r});var a=l(66881),n=l(89925);let i=e=>{let{entryMethod:t,tweetURL:l,tweetId:i,showThread:r}=e,o=(0,n.useRef)(null),s=(0,n.useCallback)(()=>"id"===t&&i?"https://twitter.com/i/status/".concat(i):"url"===t&&l?l.replace("x.com","twitter.com"):null,[t,i,l]);return(0,n.useEffect)(()=>{let e=s();if(e)if(o.current&&(o.current.innerHTML='\n

\n \n
\n ')),window.twttr&&window.twttr.widgets)window.twttr.widgets.load(o.current);else{let e=document.createElement("script");e.src="https://platform.twitter.com/widgets.js",e.async=!0,document.body.appendChild(e),e.onload=()=>window.twttr.widgets.load(o.current)}},[s,i,l,t,r]),(0,a.jsx)("div",{className:"flex items-center",ref:o})},r=i},27801:(e,t,l)=>{l.d(t,{A:()=>m});var a=l(66881),n=l(89925);let i={src:"/_next/static/media/SlideshowIcon.2da11b0d.png"};var r=l(881),o=l(63629),s=l(90593),d=l(6986);let c=e=>!!e&&""!==e.trim()&&(/\.(jpg|jpeg|png|gif|webp|bmp|tiff|svg)$/i.test(e)||/^[A-Z0-9_]+\d*\.[a-zA-Z]+$/i.test(e)||/^[a-zA-Z0-9_-]+\d+$/i.test(e)||/[._][0-9]+/i.test(e)||/^[A-Z0-9_]+$/i.test(e)),u=e=>{var t,l;let{id:n,assets:u,currentSlideIndex:m,totalAssets:v,previous:p,next:f,sendTrackString:g,rounded:y=!1}=e;if(!u.length||m=u.length)return null;let b=u[m],h="".concat(m+1,"/").concat(v),w=0===m,x=m===v-1;return(0,a.jsxs)("figure",{id:n,className:"relative mb-4 mt-4 w-full max-w-full",children:[(0,a.jsx)("div",{className:y?"overflow-hidden rounded-[16px]":"",children:(0,a.jsx)("div",{className:"relative w-full ".concat(y?"rounded-[16px]":""),children:(0,a.jsx)("div",{className:"relative w-full ".concat(y?"rounded-[16px]":""),style:{paddingTop:"56.25%"},children:(0,a.jsx)(r.A,{className:"absolute left-0 top-0 h-full w-full object-cover",src:b.url||"",alt:(null==(t=b.seo)?void 0:t.altText)||"",rounded:y,width:800,height:450,sizes:"(max-width: 767px) 91vw, (max-width: 1280px) 64vw, 800px"})})})}),(0,a.jsx)("figcaption",{children:(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)("div",{className:"flex items-center pt-2",children:(0,a.jsxs)("div",{className:"relative flex w-full items-center",children:[(0,a.jsx)("div",{className:"flex items-center",children:(0,a.jsx)(r.A,{src:i.src,alt:"Slideshow",width:20,height:20,className:"h-5 w-5",rounded:!1})}),(0,a.jsx)("div",{className:"ml-2 mr-2",children:(0,a.jsx)(o.EY,{variant:"Body.S",color:"primary",children:h})}),(0,a.jsx)("div",{className:"flex-grow"}),(0,a.jsx)("button",{type:"button","aria-label":"Previous",className:"mr-[10px] flex cursor-pointer items-center justify-center border-none bg-transparent p-2 disabled:cursor-not-allowed disabled:opacity-50",disabled:w,onClick:()=>{g("wxnode_slideshow_link-previous"),p()},children:(0,a.jsx)("span",{className:"flex items-center justify-center",children:(0,a.jsx)("span",{className:"flex items-center justify-center","aria-label":"chevron left",children:(0,a.jsx)(s.A,{className:"h-5 w-5 ".concat(w?"text-gray-200":"text-blue-500")})})})}),(0,a.jsx)("button",{type:"button","aria-label":"Next",className:"ml-auto flex cursor-pointer items-center justify-center border-none bg-transparent p-2 disabled:cursor-not-allowed disabled:opacity-50",disabled:x,onClick:()=>{g("wxnode_slideshow_link-next"),f()},children:(0,a.jsx)("span",{className:"flex items-center justify-center",children:(0,a.jsx)("span",{className:"flex items-center justify-center","aria-label":"chevron right",children:(0,a.jsx)(d.A,{className:"h-5 w-5 ".concat(x?"text-gray-200":"text-blue-500")})})})})]})}),b.filename&&!c(b.filename)&&(0,a.jsx)(o.EY,{variant:"Title.S",color:"primary",elementType:"h3",className:"mb-1 mt-0",children:b.filename}),(null==(l=b.seo)?void 0:l.caption)&&(0,a.jsx)(o.EY,{variant:"Body.S",color:"primary",className:"py-1 pb-0 ".concat(b.filename&&!c(b.filename)?"":"mt-0 pt-0"),children:b.seo.caption}),(0,a.jsx)("div",{className:"border-b border-gray-200 py-2"})]})})]})},m=e=>{let{id:t,assets:l=[],allSlides:i=[],totalAssets:r=i.length||0,loadNextSlideshowPage:o,sendTrackString:s=()=>{},rounded:d=!1}=e,c=(0,n.useId)(),m=t||"slideshow-".concat(c),v=i.length>0,[p,f]=(0,n.useState)(0),[g,y]=(0,n.useState)(1),[b,h]=(0,n.useState)(1),[w,x]=(0,n.useState)(v?i.slice(0,20):l),N=(0,n.useCallback)(e=>{if(!e)return!1;let{top:t}=e.getBoundingClientRect();return t>=-100&&t{if(p-1>=0){let e=p-1?Math.ceil((p-1)/20):1;f(p-1),y(e)}},[p]),j=(0,n.useCallback)(()=>{if(p+1=b){let e=20*g;if(e-3

l.length&&g>=b){let e=20*g;e-3

{if(N(document.querySelector("#".concat(m))))switch(e.key){case"ArrowLeft":k();break;case"ArrowRight":j()}},[m,N,k,j]);return(0,n.useEffect)(()=>(document.body.addEventListener("keydown",A),()=>{document.body.removeEventListener("keydown",A)}),[A]),(0,n.useEffect)(()=>{v&&0===w.length&&x(i.slice(0,20))},[v,i,w.length]),(0,a.jsx)(u,{id:m,assets:v?w:l,currentSlideIndex:p,totalAssets:r,previous:k,next:j,sendTrackString:s,rounded:d})}},43764:(e,t,l)=>{l.d(t,{$n:()=>d});var a=l(66881),n=l(89925),i=l(79145),r=l(60823),o=l(51310);let s=(0,r.F)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 my-1 mx-1 py-2 px-4",{variants:{variant:{"bg-brand-200":"bg-brand-200 text-black hover:bg-brand-200/90","bg-brand-300":"bg-brand-300 text-white hover:bg-brand-300/90","bg-yellow-400":"bg-yellow-400 text-black hover:bg-yellow-400/90","bg-green-600":"bg-green-600 text-white hover:bg-green-500/90","bg-violet-500":"bg-violet-500 text-white hover:bg-violet-500/90","bg-gray-900":"bg-gray-900 text-white hover:bg-gray-900/90"},display:{block:"block",inline:"inline-block"}},defaultVariants:{variant:"bg-gray-900",display:"block"}}),d=n.forwardRef((e,t)=>{let{className:l,variant:n,display:r,inline:d=!1,asChild:c=!1,...u}=e,m=c?i.DX:"button";return(0,a.jsx)(m,{className:(0,o.cn)(s({variant:n,display:d?"inline":r,className:l})),ref:t,...u})});d.displayName="Button"},51096:(e,t,l)=>{l.r(t),l.d(t,{BuyButtonBlock:()=>r,default:()=>o});var a=l(66881);l(89925);var n=l(43764),i=l(91152);let r=e=>{let{label:t,url:l,variant:r="bg-gray-900",inline:o=!1,isAffiliate:s=!0}=e;return(0,a.jsx)("div",{className:o?"inline-block":"block",children:(0,a.jsx)(i.default,{href:l,target:"_blank",rel:s?"nofollow noopener noreferrer":"noopener",children:(0,a.jsx)(n.$n,{variant:r,inline:!1,className:"cursor-pointer whitespace-nowrap",children:t})})})},o=r},60012:(e,t,l)=>{l.r(t),l.d(t,{DebugCollector:()=>r});var a=l(89925),n=l(51179);let i=(0,l(381).h)("DebugCollector");function r(e){let{componentName:t,data:l,page:r,onUpdateData:o,onSetPageData:s}=e,{updateComponentData:d,setPageData:c}=(0,n.K)(),u=(0,a.useRef)(!1),m=o||d,v=s||c;return(0,a.useEffect)(()=>{if(l)return i.lifecycle("Collecting component data for ".concat(t),{dataKeys:Object.keys(l),hasPerformance:!!l.performance,hasContext:!!l.context}),m(t,{...l,_collectedAt:new Date().toISOString()}),()=>{i.lifecycle("Cleaning up data for ".concat(t)),m(t,null)}},[t,l,m]),(0,a.useEffect)(()=>{r&&!u.current&&(i.lifecycle("Setting page metadata",{title:r.title,assetName:r.assetName,collection:r.collection}),v({...r,_updatedAt:new Date().toISOString()}),u.current=!0)},[r,v]),null}},61021:(e,t,l)=>{l.d(t,{h:()=>s});var a=l(66881),n=l(89925),i=l(55180);let r={autoplayadsmuted:!1,client:"googima",vpaidcontrols:!0},o=(0,l(381).h)("JWPlayer"),s=e=>{var t;let{playlist:l,options:s={},setupParams:d={},events:c=[]}=e,u="player-".concat((0,n.useId)()),{playerId:m="IdNDrRWQ"}=d,v=(0,n.useMemo)(()=>({playlist:l,...(e=>{let{ads:t=!0,showDescriptions:l=!0}=e;return{aspectratio:"16:9",autostart:!0,backgroundLoading:!0,width:"100%",mute:!1,autoPause:{pauseAds:!0,viewability:!0},captions:{backgroundOpacity:50,fontSize:14},...t?{advertising:r}:{},...l?{displaytitle:!0,displaydescription:!0}:{displaytitle:!1,displaydescription:!1}}})(d),...s}),[l,d,s]),p=(0,n.useRef)(null),f=(0,n.useRef)(!1),g=null==l||null==(t=l[0])?void 0:t.file,[y,b]=(0,n.useState)(g?"loading":"error");return(0,n.useEffect)(()=>{if(f.current||!("jwplayer"in window)||"ready"!==y||!g)return;let e=window.jwplayer(u);p.current=e,f.current=!0,o.info("initialized player"),e.setup(v),c.forEach(t=>{let{eventName:l,callback:a}=t;e.on(l,t=>{a({event:t,player:e})}),o.lifecycle("Registered event handler for ".concat(l))})},[v,c,g,u,y]),(0,n.useEffect)(()=>()=>{if(p.current)try{p.current.remove(),p.current=null,f.current=!1}catch(e){o.error("Error removing JW Player",e)}},[]),(0,a.jsxs)("div",{children:[g&&(0,a.jsx)(i.default,{src:"https://cdn.jwplayer.com/libraries/".concat(m,".js"),strategy:"afterInteractive",onLoad:()=>b("ready"),onReady:()=>b("ready"),onError:()=>b("error")}),(0,a.jsx)("div",{className:"overflow-hidden rounded-lg",children:"loading"===y&&g?(0,a.jsx)("div",{className:"flex aspect-video w-full items-center justify-center bg-black",children:(0,a.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-b-2 border-t-2 border-white"})}):"error"===y?(0,a.jsx)("div",{className:"flex aspect-video w-full items-center justify-center bg-black text-white",children:"Failed to initialize video player"}):(0,a.jsx)("div",{id:u,className:"aspect-video w-full bg-black"})})]})}},79670:(e,t,l)=>{l.d(t,{J:()=>a});let a=e=>Array.isArray(e)&&e.length>0},83176:(e,t,l)=>{l.d(t,{e:()=>n});let a="/placeholder.jpg",n=e=>{if(!e)return a;for(let t of[/(?:cdn\.jwplayer\.com\/(?:videos|manifests|previews)\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/,/(?:content\.jwplatform\.com\/(?:videos|manifests)\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/,/(?:players\.jwplayer\.com\/preview\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/]){let l=e.match(t);if(l&&l[1])return"https://cdn.jwplayer.com/v2/media/".concat(l[1],"/poster.jpg")}return a}},88360:(e,t,l)=>{l.r(t),l.d(t,{ImageBlock:()=>d,default:()=>c});var a=l(66881),n=l(89925),i=l(91152),r=l(51310),o=l(881);let s=n.forwardRef((e,t)=>{let{src:l,alt:n,caption:i,credit:s,width:d=320,height:c=180,shadow:u=!0,rounded:m=!0,className:v,sizes:p,priority:f,imageAttributes:g}=e,y=!!(i||s);return(0,a.jsxs)("figure",{ref:t,className:(0,r.cn)(v),children:[(0,a.jsx)(o._,{src:l,alt:n,width:d,height:c,shadow:u,rounded:m,sizes:p,priority:f,...g}),y&&(0,a.jsxs)("figcaption",{className:"mt-2 text-sm leading-tight",children:[i&&(0,a.jsx)("p",{className:"",children:i}),s&&(0,a.jsxs)("p",{className:"text-gray-500",children:["(",s,")"]})]})]})});s.displayName="Figure";let d=e=>{var t,l,n;let{imageType:o,internalImageId:d,externalImageUrl:c,controls:u,altText:m,isPriorityImage:v,imageAttributes:p,linkUrl:f}=e;if(!o||!d&&!c)return(0,a.jsx)("div",{className:"text-center text-red-500",children:"Error: Missing data for the image block."});let g="internal"===o&&(e=>"object"==typeof e&&null!==e&&"url"in e)(d),y=g?(null==d?void 0:d.url)||"":c||"",b=g?(null==d||null==(t=d.seo)?void 0:t.altText)||"":m||"",h="",w="";(null==u?void 0:u.showCaption)&&((!g||(null==u?void 0:u.useImageCaption))&&"external"!==o?g&&(h=(null==d||null==(l=d.seo)?void 0:l.caption)||"",w=(null==d||null==(n=d.seo)?void 0:n.credit)||""):(h=(null==u?void 0:u.caption)||"",w=(null==u?void 0:u.credit)||""));let x=(0,a.jsx)(s,{src:y,alt:b,caption:h,credit:w,priority:!!v,className:(0,r.cn)("my-4 flex flex-col",{"max-w-[480px]":(null==u?void 0:u.width)==="half"}),sizes:"(max-width: 767px) 91vw, (max-width: 1280px) 64vw, 800px",imageAttributes:p});return f?(0,a.jsx)(i.default,{href:f,target:"_blank",rel:"noopener noreferrer nofollow",children:x}):x},c=d},91336:(e,t,l)=>{l.r(t),l.d(t,{SlideshowBlock:()=>o,default:()=>s});var a=l(66881);l(89925);var n=l(27801),i=l(97172),r=l(79670);let o=e=>{let{slides:t=[],settings:l={},id:o}=e;if(!(0,r.J)(t))return null;let s=[];for(let e of t){var d,c;if(!e.imageAsset){console.error("Slide missing imageAsset:",e);continue}let t=(0,i.bt)(e.imageAsset)?e.imageAsset:null;if(!t||!t.url){console.error("Invalid imageAsset or missing URL:",t);continue}let l={...t,seo:{...t.seo,caption:e.imageCaption||(null==(d=t.seo)?void 0:d.caption)||"",altText:e.imageTitle&&""!==e.imageTitle.trim()?e.imageTitle:(null==(c=t.seo)?void 0:c.altText)||""},...!e.imageTitle||""===e.imageTitle.trim()||/\.(jpg|jpeg|png|gif|webp|bmp|tiff|svg)$/i.test(e.imageTitle)||/^[A-Z0-9_]+\d*\.[a-zA-Z]+$/i.test(e.imageTitle)||/^[a-zA-Z0-9_-]+\d+$/i.test(e.imageTitle)||/[._][0-9]+/i.test(e.imageTitle)||/^[A-Z0-9_]+$/i.test(e.imageTitle)?{}:{filename:e.imageTitle}};s.push(l)}return 0===s.length?(console.error("SlideshowBlock - No valid assets after transformation"),(0,a.jsx)("div",{className:"text-center text-red-500",children:"Error: Could not load images for the slideshow."})):(0,a.jsx)(n.A,{id:o||"slideshow-".concat(Math.random().toString(36).substring(2,9)),assets:s.slice(0,20),allSlides:s,totalAssets:s.length,rounded:(null==l?void 0:l.rounded)||!1,blockType:"Slideshow",slides:t,settings:l,sendTrackString:()=>{}})},s=o},97172:(e,t,l)=>{l.d(t,{bt:()=>a});function a(e){return"object"==typeof e&&null!==e&&"url"in e}}}]);