(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8773],{1827:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTransformer=function(e){return t=>((0,a.fromCompactResponse)(t)||[]).map((l,a)=>e(l,a,t))};let a=l(85670)},2101:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSortedAlerts=void 0,t.getSortedAlerts=e=>[...e].sort((e,t)=>e.displayRank>t.displayRank?1:e.displayRankt.eventTrackingNumber?1:(e.eventTrackingNumber{"use strict";l.d(t,{v:()=>i});var a=l(38051),n=l(36489),r=l(92071);let i=e=>{let t=(0,r.useParams)(),l=null==t?void 0:t.locale,{data:i,error:s,isLoading:o}=(0,a.Ay)(e?["specified-location-data",e]:null,()=>e?(0,n.PT)(e,l):null,{revalidateOnFocus:!1,dedupingInterval:3e5});return{specifiedLocationData:i,specifiedLocationError:s,isSpecifiedLocationLoading:o}}},4792:(e,t)=>{"use strict";t.C=void 0,t.C=(e,t,l)=>e&&Array.isArray(e)?e.find(e=>e.subscriptionGroupName===t)||l||null:l||null},7278:(e,t,l)=>{"use strict";l.r(t),l.d(t,{VideoBlock:()=>w,default:()=>b});var a=l(66695),n=l(97839),r=l(38051),i=l(87189);let s="/placeholder-video-thumbnail.jpg";var o=l(33319),d=l(27274),c=l(11737),u=l(98660),m=l(42302),h=l(64070),p=l(4901),x=l(42662);let v={src:"/_next/static/media/placeholder.6858ca75.jpg"},f=(0,l(80917).h)("video:events"),g=async e=>{let t=await fetch(e);if(!t.ok)throw Error("Failed to fetch video data from ".concat(e));return t.json()},w=e=>{var t;let{file:l,image:w,title:b,description:y,tracks:j=[],playlist:N,custom:C={},playerSettings:T,descriptionAttributes:A,videoReference:_,playlistsReference:S=[]}=e,E="video-player-".concat((0,n.useId)()),I=(0,n.useRef)(!0),R=(0,n.useRef)(null),k=(null==(t=(0,p.J)())?void 0:t.user)||{},M=(0,x.z)(),P=null;_&&("string"==typeof _?P="/api/payload/videos/".concat(_):"object"==typeof _&&(P=(null==_?void 0:_.id)?"/api/payload/videos/".concat(_.id):null));let{data:L,error:D}=(0,r.Ay)(P,g,{revalidateOnFocus:!1,dedupingInterval:3e5}),F=(0,c.c)(),W=(0,n.useMemo)(()=>{let e=[];return!Array.isArray(j)&&(null==j?void 0:j.file)?e.push(j):Array.isArray(j)&&e.push(...j),e},[j]),O=(0,n.useMemo)(()=>L&&Object.keys(L).length>0||_&&"string"!=typeof _,[L,_]),U=(0,n.useMemo)(()=>L&&Object.keys(L).length>0?L:_&&"string"!=typeof _?_:null,[L,_]),H=(0,n.useMemo)(()=>{var e,t,a,n,r,i,s,o,d;return O&&(null==U||null==(t=U.content)||null==(e=t.videoFormatUrls)?void 0:e.length)>0?(null==U||null==(n=U.content)||null==(a=n.defaultFormat)?void 0:a.url)?null==U||null==(d=U.content)||null==(o=d.defaultFormat)?void 0:o.url:null==U||null==(s=U.content)||null==(i=s.videoFormatUrls)||null==(r=i[0])?void 0:r.url:l},[O,U,l]),B=(0,n.useMemo)(()=>{if(O){var e,t,l;return(null==U||null==(e=U.content)?void 0:e.keyFrameImage)||(null==U||null==(l=U.seo)||null==(t=l.image)?void 0:t.url)||w}return w},[O,U,w]),z=(0,n.useMemo)(()=>O&&(null==U?void 0:U.title)||b,[O,U,b]),V=(0,n.useMemo)(()=>{if(O&&(null==U?void 0:U.description)){var e,t,l;return(null==(l=U.description.root)||null==(t=l.children[0])||null==(e=t.children[0])?void 0:e.text)||y}return y},[O,U,y]),G=(0,n.useMemo)(()=>{if(R.current&&JSON.stringify({file:H,image:B,title:z,description:V,tracks:W,playlist:N,custom:C})===JSON.stringify(R.current))return R.current;let e=B||(H?(e=>{if(!e)return s;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 s})(H):null)||v.src,t={file:H,image:e,title:z,description:V,tracks:W,custom:C};return R.current=t,t},[H,B,z,V,W,N,C]),q=(0,n.useMemo)(()=>{var e,t,l,a;let n=[];return N&&(n=((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})(N,G)||[]),S&&S.length,O&&(null==U||null==(e=U.content)?void 0:e.playlists)&&Array.isArray(null==U||null==(t=U.content)?void 0:t.playlists)&&(null==U||null==(a=U.content)||null==(l=a.playlists)||l.length),n.length>0?n:[G]},[N,G,S,U,O]);if((0,n.useEffect)(()=>{I.current=!0},[q]),_&&"string"==typeof _&&!L&&!D)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(D)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(!H)return null;let Z=[...o.v,...d.yW].map(e=>{let{eventName:t,callback:l}=e;return{eventName:t,callback:e=>{let{event:a,player:n}=e;"time"!==t&&f.info("[".concat(t,"]:"),a),l({event:a,player:n,isFirstPlayRef:I,user:k,trackVideoEvent:F,isMobile:M})}}});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.DebugCollector,{componentName:"VideoBlock",data:{props:{file:l,image:w,title:b,description:y,tracksCount:(0,m.J)(W),hasPlaylist:!!N&&N.length>0,custom:C},state:{videoObject:G,playlistItems:q.length,isFirstPlay:I.current,events:Z.map(e=>e.eventName)},performance:{}}}),(0,a.jsx)("div",{className:"overflow-hidden rounded-lg",children:(0,a.jsx)(i.h,{playlist:q,events:Z},E)}),(null==T?void 0:T.showDescriptions)&&(0,a.jsx)("p",{...A,className:(0,h.cn)("my-2 text-sm",null==A?void 0:A.className),children:G.title})]})},b=w},11737:(e,t,l)=>{"use strict";l.d(t,{c:()=>d});var a=l(97839),n=l(46124),r=l(55990),i=l(92071),s=l(13235),o=l(15315);let d=()=>{let e=(0,r.N)(),t=(0,o.A)(),l=(0,i.usePathname)();return(0,a.useCallback)(a=>{let{eventName:r,eventAttributes:i={}}=a;if(!n.A.isInitialized())return void console.warn("MParticle is not initialized");let o={...i,author:(null==t?void 0:t.author)||"",contentId:(null==t?void 0:t.contentId)||i.contentId,...e,url:l?(0,s.EY)(l):""};try{n.A.logEvent(r,n.A.EventType.Other,o),console.debug('MParticle: Video Event tracked - "'.concat(r,'"'),o)}catch(e){console.error('MParticle: Failed to track Video Event - "'.concat(r,'"'),e)}},[null==t?void 0:t.author,null==t?void 0:t.contentId,e,l])}},12409:(e,t,l)=>{"use strict";l.r(t),l.d(t,{ImageBlock:()=>d,default:()=>c});var a=l(66695),n=l(97839),r=l(88504),i=l(64070),s=l(36697);let o=n.forwardRef((e,t)=>{let{src:l,alt:n,caption:r,credit:o,width:d=320,height:c=180,shadow:u=!0,rounded:m=!0,className:h,sizes:p,priority:x,imageAttributes:v}=e,f=!!(r||o);return(0,a.jsxs)("figure",{ref:t,className:(0,i.cn)(h),children:[(0,a.jsx)(s._,{src:l,alt:n,width:d,height:c,shadow:u,rounded:m,sizes:p,priority:x,...v}),f&&(0,a.jsxs)("figcaption",{className:"mt-2 text-sm leading-tight",children:[r&&(0,a.jsx)("p",{children:r}),o&&(0,a.jsxs)("p",{className:"m-0 text-gray-500",children:["(",o,")"]})]})]})});o.displayName="Figure";let d=e=>{var t,l;let{imageType:n,internalImageId:s,externalImageUrl:d,controls:c,altText:u,isPriorityImage:m,imageAttributes:h,linkUrl:p}=e;if(!n||!s&&!d)return(0,a.jsx)("div",{className:"text-center text-red-500",children:"Error: Missing data for the image block."});let x="internal"===n&&(e=>"object"==typeof e&&null!==e&&"url"in e)(s),v=x?(null==s?void 0:s.url)||"":d||"",f=x?(null==s||null==(t=s.seo)?void 0:t.altText)||"":u||"",g="",w="";(null==c?void 0:c.showCaption)&&((!x||(null==c?void 0:c.useImageCaption))&&"external"!==n?x&&(g=(null==s?void 0:s.caption)||"",w=(null==s||null==(l=s.seo)?void 0:l.credit)||""):(g=(null==c?void 0:c.caption)||"",w=(null==c?void 0:c.credit)||""));let b=(0,a.jsx)(o,{src:v,alt:f,caption:g,credit:w,priority:!!m,className:(0,i.cn)("my-4 flex flex-col",{"max-w-[480px]":(null==c?void 0:c.width)==="half"}),sizes:"(max-width: 767px) 91vw, (max-width: 1280px) 64vw, 800px",imageAttributes:h});return p?(0,a.jsx)(r.default,{href:p,target:"_blank",rel:"noopener noreferrer nofollow",children:b}):b},c=d},12814:(e,t,l)=>{"use strict";l.d(t,{Wu:()=>s,Zp:()=>r,aR:()=>i});var a=l(66695);l(97839);var n=l(64070);function r(e){let{className:t,...l}=e;return(0,a.jsx)("div",{"data-slot":"card",className:(0,n.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl py-6",t),...l})}function i(e){let{className:t,...l}=e;return(0,a.jsx)("div",{"data-slot":"card-header",className:(0,n.cn)("@container/card-header has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6 grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6",t),...l})}function s(e){let{className:t,...l}=e;return(0,a.jsx)("div",{"data-slot":"card-content",className:(0,n.cn)("px-6",t),...l})}},14183:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDailyForecastUrlConfig=function(e){let{geocode:t,units:l,language:n,duration:r=a.ForecastDuration.FIVE_DAY}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/daily/".concat(r),query:{geocode:t,units:l,language:n,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getHourlyForecastUrlConfig=function(e){let{geocode:t,units:l,language:n,duration:r=a.HourlyForecastDuration.TWO_DAY}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/hourly/".concat(r),query:{geocode:t,units:l,language:n,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getFifteenMinuteForecastUrlConfig=function(e){let{geocode:t,units:l,language:a}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/15minute",query:{geocode:t,units:l,language:a,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getMinutelyPrecipitationForecastUrlConfig=function(e){let{geocode:t,units:l,language:a,duration:n="60minute"}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/minutely/precipitation/".concat(n),query:{geocode:t,units:l,language:a,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}};let a=l(81402)},15400:(e,t,l)=>{"use strict";t.Sn=s;let a=l(73925),n=l(54435),r=l(71744),i=l(2101);async function s(e){let{geocode:t,language:l="en-US"}=e,s=(0,n.urlFrom)((0,a.getSunWeatherAlertHeadlinesUrlConfig)({geocode:t,language:l})),o=await fetch(s,{headers:{"Accept-Encoding":"gzip"},cache:"no-store",next:{revalidate:0}}),d=await (0,r.handleFetchResponse)(o);return{...d,alerts:(0,i.getSortedAlerts)(d.alerts)}}},16074:(e,t,l)=>{"use strict";l.r(t),l.d(t,{TwitterBlock:()=>i,default:()=>s});var a=l(66695),n=l(97839);let r="twitter-script-loaded",i=e=>{let{entryMethod:t,tweetURL:l,tweetId:i,showThread:s}=e,o=(0,n.useRef)(null),d=(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]),{isLoaded:c}=function(){let[e,t]=(0,n.useState)(()=>!!(window.twttr&&window.twttr.widgets)),[l,a]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(e)return;if(!l){if(window.twttr&&window.twttr.widgets)return void t(!0);a(new Promise(e=>{if(window.twttr&&window.twttr.widgets){t(!0),e();return}let l=document.createElement("script");l.src="https://platform.twitter.com/widgets.js",l.async=!0,l.onload=()=>{t(!0);let l=new CustomEvent(r);window.dispatchEvent(l),e()},document.body.appendChild(l)}))}l&&l.then(()=>t(!0));let n=()=>t(!0);return window.addEventListener(r,n),()=>{window.removeEventListener(r,n)}},[e,l]),{isLoaded:e}}();return(0,n.useEffect)(()=>{let e=d();e&&(o.current&&(o.current.innerHTML='\n

\n \n
\n ')),c&&window.twttr&&window.twttr.widgets&&window.twttr.widgets.load(o.current))},[d,i,l,t,s,c]),(0,a.jsx)("div",{className:"flex items-center",ref:o})},s=i},16774:(e,t)=>{"use strict";var l,a,n,r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.PrecipIntensityCode=t.PrecipTypeCode=t.ThunderCategory=t.PrecipType=t.MoonPhaseCode=void 0,function(e){e.WANING_GIBBOUS="WNG",e.WAXING_CRESCENT="WXC",e.FIRST_QUARTER="FQ",e.WANING_CRESCENT="WNC",e.LAST_QUARTER="LQ",e.FULL="F",e.WAXING_GIBBOUS="WXG",e.NEW="N"}(l||(t.MoonPhaseCode=l={})),function(e){e.RAIN="rain",e.SNOW="snow",e.PRECIP="precip"}(a||(t.PrecipType=a={})),function(e){e.NO_THUNDER="0",e.THUNDER_POSSIBLE="1",e.THUNDER_EXPECTED="2",e.SEVERE_THUNDERSTORMS_POSSIBLE="3",e.SEVERE_THUNDERSTORMS_LIKELY="4",e.HIGH_RISK_OF_SEVERE_THUNDERSTORMS="5"}(n||(t.ThunderCategory=n={})),function(e){e[e.NONE=0]="NONE",e[e.RAIN=1]="RAIN",e[e.SNOW=2]="SNOW",e[e.FREEZING_RAIN=3]="FREEZING_RAIN",e[e.THUNDER=4]="THUNDER",e[e.SLEET=5]="SLEET",e[e.HAIL=6]="HAIL"}(r||(t.PrecipTypeCode=r={})),function(e){e[e.NONE=0]="NONE",e[e.VERY_LIGHT=1]="VERY_LIGHT",e[e.LIGHT=2]="LIGHT",e[e.MODERATE=3]="MODERATE",e[e.HEAVY=4]="HEAVY"}(i||(t.PrecipIntensityCode=i={}))},17493:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEmailPreferencesStatusUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/status"}},t.getEmailPreferencesSetUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/set"}},t.getEmailPreferencesChangeEmailUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/change-email"}}},18248:(e,t,l)=>{"use strict";l.r(t),l.d(t,{CurrentConditionsBlock:()=>A,default:()=>_});var a=l(66695);l(97839);var n=l(38051),r=l(79023),i=l(98956),s=l(62974),o=l(81402),d=l(88725),c=l(73237),u=l(60838),m=l(72286);let h=e=>{let{location:t,weatherData:l,forecastData:n,isLoading:r,error:i,formattedTime:s,video:o}=e,d=(0,m.c3)("CurrentConditions");return t?r?(0,a.jsx)(v,{location:t}):!i&&l&&n?(0,a.jsx)(p,{location:t,weatherData:l,forecastData:n,formattedTime:s,video:o}):(0,a.jsx)(x,{location:t,error:i}):(0,a.jsx)(v,{message:d("loadingLocation")})},p=e=>{let{location:t,weatherData:l,forecastData:n,formattedTime:r,video:i}=e,s=(0,m.c3)("CurrentConditions");return(0,a.jsxs)("div",{className:"overflow-hidden rounded-lg",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between bg-teal-800 p-4 text-white",children:[(0,a.jsx)(c.Ay,{variant:"Title.S",color:"inverse",elementType:"h2",children:t.presentationName}),(0,a.jsx)(c.Ay,{color:"inverse",children:s("asOf",{formattedTime:r})})]}),(0,a.jsxs)("div",{className:"flex min-h-[100px] flex-col bg-teal-600 p-4 text-white",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsxs)(c.Ay,{variant:"Display.XL",color:"inverse",elementType:"h2",children:[Math.round(l.temperature),"\xb0"]}),(0,a.jsx)("div",{className:"ml-4",children:(0,a.jsx)(u.WxIcon,{iconCode:l.iconCode,className:"lightBG h-20 w-20","aria-label":l.wxPhraseLong,iconTheme:"lightBG"})})]}),(0,a.jsxs)("div",{className:"mt-auto flex items-end justify-between",children:[(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)(c.Ay,{variant:"Title.M",color:"inverse",elementType:"p",children:l.wxPhraseLong}),(0,a.jsxs)(c.Ay,{className:"mt-2",variant:"Title.M",color:"inverse",elementType:"p",children:[s("dayTempLabel"),"\xa0",Math.round(n.temperatureMax),"\xb0\xa0•\xa0",s("nightTempLabel"),"\xa0",Math.round(n.temperatureMin),"\xb0"]})]}),(0,a.jsx)("div",{className:"max-w-[50%]",children:(0,a.jsx)(d.A,{location:t})})]})]}),i&&(0,a.jsx)(f,{title:i.title,url:i.url})]})},x=e=>{let{location:t,error:l}=e;return(0,a.jsxs)("div",{className:"overflow-hidden rounded-lg",children:[(0,a.jsx)("div",{className:"flex items-center justify-between bg-slate-800 p-4 text-white",children:(0,a.jsx)("h2",{className:"text-xl font-medium",children:t.presentationName})}),(0,a.jsxs)("div",{className:"flex min-h-[100px] flex-col bg-teal-600 p-8 text-white",children:[(0,a.jsx)("div",{className:"flex flex-grow items-center justify-center",children:(0,a.jsx)("div",{className:"text-xl text-red-300",children:(null==l?void 0:l.message)||"Unable to load weather data"})}),(0,a.jsx)("div",{className:"mt-auto flex items-end justify-end",children:(0,a.jsx)("div",{className:"max-w-[50%]",children:(0,a.jsx)(d.A,{location:t})})})]})]})},v=e=>{let{location:t,message:l="Loading weather data..."}=e,n=(0,m.c3)("CurrentConditions");return(0,a.jsxs)("div",{className:"overflow-hidden rounded-lg",children:[(0,a.jsx)("div",{className:"flex items-center justify-between bg-slate-800 p-4 text-white",children:(0,a.jsx)("h2",{className:"text-xl font-medium",children:t?t.presentationName:n("loadingLocation")})}),(0,a.jsxs)("div",{className:"flex min-h-[100px] flex-col bg-teal-600 p-8 text-white",children:[(0,a.jsx)("div",{className:"flex flex-grow items-center justify-center",children:(0,a.jsx)("div",{className:"animate-pulse text-xl",children:l})}),t&&(0,a.jsx)("div",{className:"mt-auto flex items-end justify-end",children:(0,a.jsx)("div",{className:"max-w-[50%]",children:(0,a.jsx)(d.A,{location:t})})})]})]})},f=e=>{let{title:t}=e;return(0,a.jsxs)("div",{className:"flex cursor-pointer items-center gap-3 bg-teal-800 p-4 text-white transition-colors hover:bg-teal-700",children:[(0,a.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-white text-teal-800",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"h-5 w-5",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M4.5 5.653c0-1.426 1.529-2.33 2.779-1.643l11.54 6.348c1.295.712 1.295 2.573 0 3.285L7.28 19.991c-1.25.687-2.779-.217-2.779-1.643V5.653z",clipRule:"evenodd"})})}),(0,a.jsxs)(c.Ay,{color:"inverse",children:["Watch: ",t]})]})};var g=l(98660),w=l(20108),b=l(74249),y=l(69896),j=l(92071);let N=e=>{let{location:t,video:l}=e,{effectiveLocation:d,isLocationLoading:c,locationError:u}=(0,r.s)({location:t}),{weatherData:m,forecastData:p,isLoading:x,error:v,formattedTime:f}=function(e){var t,l,a,r,d;let c=(0,j.useParams)(),u=null==c?void 0:c.locale,m=(0,w.md)(b.Yt),h=null==(t=(0,y.xP)(m))?void 0:t.code,{data:p,error:x,isLoading:v}=(0,n.Ay)(e?["weather",e.geocode,h]:null,e=>{let[t,l,a]=e;return(0,i.z)({geocode:l,units:a,language:u})},{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:f,error:g,isLoading:N}=(0,n.Ay)(e?["daily-forecast",e.geocode,h]:null,t=>{let[l,a,n]=t;return e?(0,s.v1)({geocode:a,units:n,language:u}):null},{revalidateOnFocus:!1,dedupingInterval:6e4}),C=p?{temperature:p.temperature,wxPhraseLong:p.wxPhraseLong,iconName:o.ICON_CODE_MAP[p.iconCode]||"na",iconCode:p.iconCode,validTimeLocal:p.validTimeLocal}:void 0,T=f&&f.length>0?{temperatureMax:null!=(r=null==(l=f[0])?void 0:l.calendarDayTemperatureMax)?r:0,temperatureMin:null!=(d=null==(a=f[0])?void 0:a.calendarDayTemperatureMin)?d:0}:void 0,A=C?((e,t)=>{if(!e)return"";try{let l=new Date(e),a={hour:"numeric",minute:"2-digit",hour12:!0,timeZoneName:"short"};if(!t)return l.toLocaleTimeString("en-US",a);return l.toLocaleTimeString(t,a)}catch(e){return console.error("Error formatting time:",e),""}})(C.validTimeLocal):"";return{weatherData:C,forecastData:T,isLoading:v||N,error:x||g,formattedTime:A}}(d),N=x||c,C=v||u;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g.DebugCollector,{componentName:"CurrentConditions",data:{props:{location:t,video:l},state:{effectiveLocation:d,isLocationLoading:c,isLoading:N,weatherData:m,forecastData:p,formattedTime:f,error:C,componentState:C&&"error"||N&&"loading"||"ready"},performance:{renderCount:void 0}}}),(0,a.jsx)(h,{location:d,weatherData:m,forecastData:p,isLoading:N,error:C,formattedTime:f,video:l})]})};var C=l(6127),T=l(3071);let A=e=>{let{locationProvider:t,locationEntry:l}=e,n="specified"===t,{specifiedLocationData:r,specifiedLocationError:i,isSpecifiedLocationLoading:s}=(0,T.v)(n?l:null);return n&&s?(0,a.jsx)("div",{children:"Loading location data..."}):n&&i?(0,a.jsxs)("div",{children:["Error loading location data: ",i.message]}):n&&r&&l?(0,a.jsx)(N,{location:(0,C.I)(r)}):n?null:(0,a.jsx)(N,{})},_=A},21669:(e,t,l)=>{"use strict";t.j=i;let a=l(54435),n=l(71744),r=l(17493);async function i(){let e=(0,r.getEmailPreferencesStatusUrlConfig)(),t=(0,a.urlFrom)(e),l=await fetch(t,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"},next:{revalidate:60}});return(0,n.handleFetchResponse)(l)}},23610:(e,t,l)=>{"use strict";l.r(t),l.d(t,{AdBlock:()=>d,default:()=>c});var a=l(66695),n=l(97839),r=l(98660),i=l(64070),s=l(68960),o=l(4901);let d=e=>{let{adId:t,variant:l="banner",title:d=null,titleAlignment:c="right",height:u="120px",className:m="",sticky:h=!1}=e,{user:p}=(0,o.J)(),{isUserPremium:x}=p,[v,f]=(0,n.useState)({loaded:!1,height:u,displayAd:!1}),g=(0,n.useRef)(null),w=(0,n.useRef)(!1),b=(0,n.useRef)({resize:null,adFrameMutation:null,adCreativeMutation:null}),y=(0,n.useMemo)(()=>{if("WX_ContentFeed1"===t||"MW_Position_ContentFeedAd1"===t||"MW_Position_ContentFeedAd11"===t)return v.displayAd?"mt-3 flex-1 -mb-3":"";if("WX_Hidden"===t||!v.displayAd)return"hidden";if("WX_WindowShade"===t||"WX_Leaderboard"===t)return"region-contentTop overflow-hidden mb-4";if("WX_BottomLeader"===t||"WX_Bot300"===t||"WX_PromoDriver1"===t||"WX_MidLeader"===t)return"bg-white rounded-md overflow-hidden px-4 pb-4 mt-4";if("WX_Top300Small"===t);else if("WX_SpotLight"===t||"WX_DriverUnit"===t)return"overflow-hidden bg-white mb-4";else if("WX_Top300Variable"===t)return h?"sticky top-[82px] z-45 bg-white rounded-md overflow-hidden px-4 pb-4":"bg-white rounded-md overflow-hidden px-4 pb-4";else if("MW_Position1"===t)return"bottom-[61px] sm:bottom-0 block fixed w-full z-[98] bg-[#dee0e3] p-2";else if("MW_Position1_Samsung"===t)return"bottom-[61px] sm:bottom-0 block fixed w-full z-[98] bg-[#dee0e3] p-2";else if("MW_Position3"===t)return"overflow-hidden mb-5";else if("MW_Position4"===t||"MW_Position5"===t||"MW_Position2"===t)return"rounded-lg overflow-hidden bg-white pt-0 px-4 pb-4";else if("banner"===l)return"rounded-lg overflow-hidden bg-white shadow-md mb-4";return"bg-white rounded-md overflow-hidden px-4 pb-4"},[t,l,v.displayAd,h]),j=(0,n.useMemo)(()=>{let e=v.loaded?"visible":"invisible";return"".concat("text-center w-full h-full flex text-gray-600 text-base leading-none"," ").concat("WX_SpotLight"!==t?"justify-center":""," ").concat(e)},[t,v.loaded]),N=(0,n.useCallback)(e=>{for(let t of e){let e=t.contentRect.height;e>0&&f(t=>({...t,height:"".concat(e+10,"px"),loaded:!0}))}},[]),C=(0,n.useCallback)(e=>{let t=e.some(e=>"childList"===e.type&&e.addedNodes.length>0);f(e=>({...e,displayAd:t}))},[]);return((0,n.useEffect)(()=>{f(e=>({...e,loaded:!1,height:u,displayAd:!1})),b.current.resize&&b.current.resize.disconnect(),b.current.adFrameMutation&&b.current.adFrameMutation.disconnect(),b.current.adCreativeMutation&&b.current.adCreativeMutation.disconnect();let e=new ResizeObserver(N);b.current.resize=e;let t=new MutationObserver(C);b.current.adCreativeMutation=t;let l=new MutationObserver(l=>{l.some(e=>{var t;return"childList"===e.type&&e.addedNodes.length>0&&((null==(t=e.addedNodes[0])?void 0:t.textContent)!=="Advertisement"||e.addedNodes.length>1)})&&g.current&&e&&t&&(e.observe(g.current),f(e=>({...e,loaded:!0})),t.observe(g.current,{childList:!0,subtree:!0}))});b.current.adFrameMutation=l;let a=g.current;return a&&l&&l.observe(a,{childList:!0,subtree:!0}),()=>{e.disconnect(),l.disconnect(),t.disconnect()}},[C,t,u,N]),(0,n.useEffect)(()=>{["MW_Position_ContentFeedAd","MW_Position_ContentFeedAd1","MW_Position_ContentFeedAd11","WX_ContentFeed","WX_ContentFeed1","WX_ContentFeedRadar"].includes(t)&&!w.current&&((e=>{try{let t=(e=>{if("MW_Position_ContentFeedAd11"===e)return{currContentFeedIndex:"21",baseNativeAdPosition:"MW_Position_ContentFeedAd1"};if("MW_Position_ContentFeedAd1"===e||"WX_ContentFeed1"===e){let t=e.match(/(\d+)$/);if(t)return{currContentFeedIndex:t[1],baseNativeAdPosition:e.substring(0,t.index)}}return console.error("Could not parse index from ContentFeed adId: ".concat(e)),null})(e);if(t){let{currContentFeedIndex:l,baseNativeAdPosition:a}=t,n=window.__HeliosConfig.slotsConfig[a];if(n){let t="".concat(n.adUnitPath,"/contentfeed").concat(l);window.__HeliosQ=window.__HeliosQ||[],window.__HeliosQ.push(()=>{window.__Helios.waitForEvent("AD_SLOTS_CONNECTED").then(()=>{window.__Helios.emit("AD_RENDER_CONTENT_FEED",{elementId:e,adUnitPath:t,baseNativeAdPosition:a})})})}else console.error("No config found for ".concat(e," at Helios.slotConfig.").concat(a))}}catch(e){console.error("Error rendering native ad",e)}})(t),w.current=!0)},[t]),!t||x)?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.DebugCollector,{componentName:"AdBlock",data:{props:{adId:t,variant:l,title:d,titleAlignment:c,height:u,className:m},state:{loaded:v.loaded,height:v.height,displayAd:v.displayAd},performance:{renderTime:Date.now()}}}),(0,a.jsxs)("div",{className:(0,i.cn)(y,m),children:[d&&v.loaded&&(0,a.jsx)("div",{className:"py-0.75 text-xxs w-full px-4 text-gray-400 text-".concat(c),children:d}),"WX_PromoDriver1"===t&&!d&&v.loaded&&v.displayAd&&(0,a.jsx)("h2",{className:"my-6 px-2 text-2xl font-bold",children:"Stay Safe"}),(0,a.jsx)("div",{id:t,className:j,style:{height:v.loaded?"100%":"0px"},ref:g})]}),"WX_PromoDriver1"===t&&(!v.loaded||!v.displayAd)&&(0,a.jsx)(s.default,{title:"Stay Safe",ctaStyle:"featured",linkUrl:"/",backgroundColor:"white",media:"https://s-dev.w-x.co/wxnext/img/Screenshot2025-04-17at44929PMpng"})]})},c=d},25192:(e,t,l)=>{"use strict";l.r(t),l.d(t,{PromoDriverBlock:()=>s,default:()=>o});var a=l(66695);l(97839);var n=l(8806),r=l(88504),i=l(72460);let s=e=>{let{title:t,image:l,subtitle:s,bodyText:o,ctaButton:d}=e,c=(null==d?void 0:d.url)&&/^https?:\/\//i.test(d.url),u=(0,i.bt)(l)?l:null;return t||u&&(null==u?void 0:u.url)||s||o||d?(0,a.jsxs)("div",{className:"overflow-hidden rounded-lg bg-white",children:[t&&(0,a.jsx)("div",{className:"p-4",children:(0,a.jsx)("h3",{className:"text-xl font-semibold text-gray-900",children:t})}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(null==u?void 0:u.url)?(0,a.jsx)("div",{className:"relative aspect-[42/13] w-full overflow-hidden bg-white px-4 pt-4",children:(0,a.jsx)("div",{className:"relative h-full w-full overflow-hidden rounded-lg",children:(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)(n.default,{src:u.url,alt:t||"Promo image",fill:!0,className:"object-cover"})})})}):null,(s||o||d)&&(0,a.jsxs)("div",{className:"p-4",children:[s&&(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)("h4",{className:"mb-2 text-base font-bold",children:s})}),o&&(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)("p",{className:"mb-4 text-base",children:o})}),d&&(0,a.jsx)("div",{className:"flex justify-end",children:c?(0,a.jsx)("a",{href:d.url||"#",target:d.openInNewTab?"_blank":"_self",rel:d.openInNewTab?"noopener noreferrer":"",className:"inline-block max-w-[200px] overflow-hidden text-ellipsis whitespace-nowrap rounded-lg bg-black px-4 py-2 text-base font-normal text-white",children:d.text}):(0,a.jsx)(r.default,{href:d.url||"#",target:d.openInNewTab?"_blank":"_self",className:"inline-block max-w-[200px] overflow-hidden text-ellipsis whitespace-nowrap rounded-lg bg-black px-4 py-2 text-base font-normal text-white",children:d.text})})]})]})]}):null},o=s},27274:(e,t,l)=>{"use strict";l.d(t,{yW:()=>h});var a=l(13235),n=l(17943);let r="",i="",s=1,o=0,d=0,c={adImpression:!1,videoAttempt:!1,videoPlayed:!1,videoStarted:!1,videoCompleted:!1,videoEnd:!1};function u(){Object.keys(c).map(e=>{c[e]=!1}),o=0,d=0,i=""}function m(e,t){var l,r,i,s,o,d,c,u,m,h,p,x,v,f,g,w,b,y,j,N,C,T,A,_,S,E,I,R,k,M,P,L,D,F,W,O,U;let H=t||e.getPlaylistItem();return{adBlock:e.getAdBlock(),adsMetricsUnitAndZone:null==H||null==(r=H.custom)||null==(l=r.ctx)?void 0:l.adzone,aspectRatio:null==e||null==(i=e.getConfig())?void 0:i.aspectratio,assetName:(0,a.EY)(null!=(O=null==H||null==(o=H.custom)||null==(s=o.ctx)?void 0:s.assetName)?O:""),collection:null==H||null==(c=H.custom)||null==(d=c.ctx)?void 0:d.pcollid,collectionId:null==H||null==(m=H.custom)||null==(u=m.ctx)?void 0:u.pcollid,contentId:null==H||null==(p=H.custom)||null==(h=p.ctx)?void 0:h.id,entitlements:(0,n.X)(null!=(U=null==H||null==(v=H.custom)||null==(x=v.ctx)?void 0:x.entitlements)?U:[]),iabContent:(0,a.IA)((null==H||null==(g=H.custom)||null==(f=g.ctx)?void 0:f.iab)||{}),id:null==H||null==(b=H.custom)||null==(w=b.ctx)?void 0:w.id,duration:null==H||null==(j=H.custom)||null==(y=j.ctx)?void 0:y.duration,lastmodifieddate:null==H||null==(T=H.custom)||null==(C=T.ctx)||null==(N=C.lastmodifieddate)?void 0:N.toString(),muted:e.getMute(),premiumContent:null==H||null==(_=H.custom)||null==(A=_.ctx)?void 0:A.premium,publishdate:null==H||null==(I=H.custom)||null==(E=I.ctx)||null==(S=E.publishdate)?void 0:S.toString(),providerName:null==H||null==(k=H.custom)||null==(R=k.ctx)?void 0:R.providername,tagsGeo:(0,n.X)(null==H||null==(P=H.custom)||null==(M=P.ctx)?void 0:M.tagsGeo),tagsKeyword:(0,n.X)(null==H||null==(D=H.custom)||null==(L=D.ctx)?void 0:L.tagsKeyword),tagsStorm:(0,n.X)(null==H||null==(W=H.custom)||null==(F=W.ctx)?void 0:F.tagsStorm)}}let h=[{eventName:"ready",callback:e=>{let{player:t,trackVideoEvent:l}=e;window.addEventListener("beforeunload",()=>{c.videoStarted&&!c.videoEnd&&(t.getPlaylistItem()&&!c.videoAttempt&&l&&l({eventName:"video-end",eventAttributes:{errorMessage:i,contentWatchedSeconds:o,playReason:r,videoView:s,...m(t)}}),c.videoEnd=!0)})}},{eventName:"adImpression",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();i="",u(),console.debug("JW Player callback - adImpression eventSentFlags:",c),c.adImpression=!0,a&&!c.videoAttempt&&l&&(l({eventName:"video-attempt",eventAttributes:{errorMessage:i,playReason:r,videoView:s,...m(t)}}),c.videoAttempt=!0),a&&!c.videoPlayed&&l&&(l({eventName:"video-played",eventAttributes:{errorMessage:i,playReason:r,videoView:s,...m(t)}}),c.videoPlayed=!0)}},{eventName:"viewable",callback:async e=>{let{event:t}=e;s=null==t?void 0:t.viewable}},{eventName:"playlistItem",callback:async e=>{let{player:t,trackVideoEvent:l}=e;if(c.videoStarted&&!c.videoCompleted&&!c.videoEnd){let e=t.getPlaylistIndex(),a=t.getPlaylistItem(e-1);l({eventName:"video-end",eventAttributes:{errorMessage:i,contentWatchedSeconds:o,playReason:r,videoView:s,...m(t,a)}}),c.videoEnd=!0}}},{eventName:"playAttempt",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();c.adImpression||(i="",u()),console.debug("JW Player callback - playAttempt eventSentFlags:",c),a&&!c.videoAttempt&&l&&(c.videoAttempt=!0,l({eventName:"video-attempt",eventAttributes:{errorMessage:i,playReason:r,videoView:s,...m(t)}}))}},{eventName:"firstFrame",callback:async e=>{let{player:t,trackVideoEvent:l}=e;console.debug("JW Player callback - firstFrame eventSentFlags:",c);let a=t.getPlaylistItem();a&&!c.videoPlayed&&l&&(l({eventName:"video-played",eventAttributes:{errorMessage:i,playReason:r,videoView:s,...m(t)}}),c.videoPlayed=!0),a&&!c.videoStarted&&l&&(l({eventName:"video-started",eventAttributes:{errorMessage:i,playReason:r,videoView:s,...m(t)}}),c.videoStarted=!0)}},{eventName:"complete",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();console.debug("JW Player callback - complete eventSentFlags:",c),a&&!c.videoCompleted&&l&&(l({eventName:"video-completed",eventAttributes:{errorMessage:i,playReason:r,videoView:s,...m(t)}}),c.videoCompleted=!0),c.videoStarted&&!c.videoEnd&&(l({eventName:"video-end",eventAttributes:{errorMessage:i,contentWatchedSeconds:o,playReason:r,videoView:s,...m(t)}}),c.videoEnd=!0)}},{eventName:"adStarted",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();console.debug("JW Player callback - adStarted eventSentFlags:",c),a&&l&&l({eventName:"ad-started",eventAttributes:{errorMessage:i,playReason:r,videoView:s,...m(t)}})}},{eventName:"adSkipped",callback:async e=>{let{player:t,trackVideoEvent:l}=e;t.getPlaylistItem()&&l&&l({eventName:"ad-skipped",eventAttributes:{errorMessage:i,playReason:r,videoView:s,...m(t)}})}},{eventName:"adComplete",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();console.debug("JW Player callback - adComplete eventSentFlags:",c),a&&l&&l({eventName:"ad-complete",eventAttributes:{errorMessage:i,playReason:r,videoView:s,...m(t)}})}},{eventName:"beforePlay",callback:async e=>{let{event:t}=e;r=null==t?void 0:t.playReason}},{eventName:"adError",callback:async e=>{let{event:t}=e;console.error("Video ad error:",t)}},{eventName:"error",callback:async e=>{let{event:t}=e;i=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-d;o+=e,d=t.position}}},{eventName:"seek",callback:e=>{let{event:t}=e;"number"==typeof(null==t?void 0:t.offset)&&(d=t.offset)}}]},32973:(e,t,l)=>{"use strict";l.r(t),l.d(t,{BuyButtonBlock:()=>u,default:()=>m});var a=l(66695),n=l(97839),r=l(47666),i=l(21455),s=l(64070);let o=(0,i.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:i,inline:d=!1,asChild:c=!1,...u}=e,m=c?r.DX:"button";return(0,a.jsx)(m,{className:(0,s.cn)(o({variant:n,display:d?"inline":i,className:l})),ref:t,...u})});d.displayName="Button";var c=l(88504);let u=e=>{let{label:t,url:l,variant:n="bg-gray-900",inline:r=!1,isAffiliate:i=!0}=e;return(0,a.jsx)("div",{className:r?"inline-block":"block",children:(0,a.jsx)(c.default,{href:l,target:"_blank",rel:i?"nofollow noopener noreferrer":"noopener",children:(0,a.jsx)(d,{variant:n,inline:!1,className:"cursor-pointer whitespace-nowrap",children:t})})})},m=u},33058:e=>{e.exports={jwplayerContainer:"JWPlayer_jwplayerContainer__u4Psj"}},33319:(e,t,l)=>{"use strict";l.d(t,{v:()=>b});var a=l(80917);let n=(0,a.h)("AdUtils"),r=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 r=await i(a,n);r?t.playAd(r):t.play()},i=async function(e){let t,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!c())return null;let a=o(e,l),r=s({},e.iab);window.__Helios.emit("UPDATE_AD_UNIT_PATH",a);try{var i,u,m;null==(m=window.__Helios.modules)||null==(u=m.iabc)||null==(i=u.update)||i.call(u,{page:r,site:{v1:["IAB15-10_Weather"],v3:["390_Weather"]}})}catch(e){n.error("Error updating IABC parameters",e)}try{t=await d()}catch(e){t=null,n.error("Error getting ad tag",e)}return window.__Helios.emit("UPDATE_AD_UNIT_PATH",a),t},s=(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]=s(l[e]||{},t[e]):l[e]=t[e];return l},o=(e,t)=>{let l=e.collectionAdZone||e.adzone||"video";return"".concat("/7646","/").concat("").concat(t?"mobile_smart_us":"web_weather_us","/").concat(l)},d=async()=>{let e=[];try{var t;e=await (null==(t=window)?void 0:t.__Helios.video.requestVideoBids())}catch(e){n.error("Error getting video bids",e)}return await window.__Helios.modules.videoTag.createAdTag(e)},c=()=>{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}},u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"https";return e.replace(/^\/\//,"".concat(t,"://"))},m=e=>{let{collectionId:t,videoIndex:l,videoId:a}=e||{};return{videoCount:l,videoId:a,collectionId:t}},h=e=>"GDFP"===e||"AdSense/AdX"===e;l(66695),l(5498);var p=l(37811);let x=(0,a.h)("NewRelic");function v(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,{...f(t,"meta.")})}catch(e){x.error("New Relic: sendReumEvent error",e instanceof Error?e.message:String(e))}}p.env.NEW_RELIC_RUM_ACCOUNT_ID,p.env.NEW_RELIC_RUM_APP_ID,p.env.NEW_RELIC_RUM_LICENSE_KEY;let f=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]}))},g=(0,a.h)("AdEvents"),w=new Set(["amznbid","crt_pb","hb_pb"]),b=[{eventName:"ready",callback:e=>{let{event:t}=e;v("videoReady",{isViewable:!!t.viewable,setupTime:t.setupTime})}},{eventName:"beforePlay",callback:async e=>{var t;let{event:l,player:a,isFirstPlayRef:n,user:i,isMobile:s}=e;if(!(null==n?void 0:n.current))return;let o=a.getPlaylistItem(),d=null==o||null==(t=o.custom)?void 0:t.ctx;d&&(d.videoIndex=a.getPlaylistIndex()),v("videoBeforePlay",{...m(d),isViewable:!!l.viewable,playReason:l.playReason}),a.stop(),await r({player:a,user:i,ctx:d,isMobile:s}),n.current=!1}},{eventName:"adRequest",callback:e=>{var t;let{event:l,player:a}=e,n=a.getPlaylistItem(),r=null==n||null==(t=n.custom)?void 0:t.ctx,i={},s=m(r);try{let e=u(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))w.has(e)&&(i["".concat("kv_").concat(e)]="".concat(a[e]))}catch(e){g.error("Error parsing cust_params",e)}v("videoAdRequest",{...s,isViewable:!!l.viewable,roll:l.adposition,...i})}},{eventName:"adStarted",callback:e=>{var t,l,a,n,r,i;let{event:s,player:o}=e,d=o.getPlaylistItem(),c=null==d||null==(t=d.custom)?void 0:t.ctx,{duration:u,adposition:p}=s,x=m(c),f="";try{let e=null==(i=s.ima)||null==(r=i.ad)?void 0:r.data;e&&(f=(e=>{let{adSystem:t,adId:l,adWrapperSystems:a,adWrapperIds:n}={adSystem:"",adId:"",adWrapperSystems:[],adWrapperIds:[],...e};if(h(t))return l;let r=a.findIndex(h);return r>=0&&r{var t;let{event:l,player:a}=e,n=a.getPlaylistItem();v("videoStart",{...m(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();v("videoComplete",{...m(null==a||null==(t=a.custom)?void 0:t.ctx)})}},{eventName:"adSkipped",callback:e=>{var t;let{player:l}=e,a=l.getPlaylistItem();v("videoAdSkip",{...m(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:s}=e;if(null==n?void 0:n.current)return;let{item:o}=l,d=null==o||null==(t=o.custom)?void 0:t.ctx;d.videoIndex=a.getPlaylistIndex(),a.stop(),await r({player:a,user:i,ctx:d,isMobile:s})}},{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();v("videoAdError",{...m(null==n||null==(t=n.custom)?void 0:t.ctx),message:l.message,code:l.code,vastCode:l.vastCode,roll:l.adposition}),g.error("Ad error occurred",l),a.play()}},{eventName:"error",callback:async e=>{var t;let{event:l,player:a}=e,n=a.getPlaylistItem();v("videoError",{...m(null==n||null==(t=n.custom)?void 0:t.ctx),message:l.message,code:l.code}),g.error("Video Player error",l)}},{eventName:"setupError",callback:e=>{let{event:t}=e;v("videoSetupError",{message:t.message,code:t.code})}}]},36895:(e,t,l)=>{"use strict";l.r(t),l.d(t,{HourlyForecastBlock:()=>e0,default:()=>e1});var a=l(66695),n=l(97839),r=l(72286),i=l(38051),s=l(83160),o=l(81402),d=l(79023),c=l(20108),u=l(74249),m=l(69896),h=l(92071),p=l(73237),x=l(24765),v=l(88504),f=l(12814),g=l(21455),w=l(31110),b=l(85849);let y={"@xs":320,"@xl":576};var j=l(89010);let N=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Rain Snow Wintery Mix"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{fillRule:"evenodd",d:"M7.982 1.833c-1.303 0-2.391 1.032-2.5 2.37l-.034.407-.405.049c-.67.08-1.209.672-1.209 1.41 0 .724.518 1.307 1.17 1.405l.217.015h4.896l.024.003q.087.008.175.008c1.01 0 1.851-.845 1.851-1.915 0-.946-.66-1.719-1.51-1.882l-.264-.051-.104-.248c-.386-.93-1.279-1.57-2.307-1.57M4.535 3.747C4.843 2.096 6.26.833 7.982.833c1.367 0 2.543.798 3.123 1.95 1.198.352 2.062 1.48 2.062 2.802 0 1.597-1.264 2.915-2.851 2.915a3 3 0 0 1-.245-.01H5.187l-.25-.018H4.92l-.034-.005c-1.168-.16-2.051-1.182-2.051-2.398 0-1.091.71-2.026 1.701-2.322",clipRule:"evenodd","data-figma-bg-blur-radius":20}),(0,a.jsx)("path",{d:"m7.954 9.295-.543 1.491a.5.5 0 0 0 .94.342l.543-1.491a.5.5 0 1 0-.94-.342M10.267 11.085l-.856 2.352a.5.5 0 0 0 .94.342l.856-2.352a.5.5 0 1 0-.94-.342M5.964 11.324a.25.25 0 0 1 .25.25v.152a.25.25 0 0 1 .297.396l-.297.297v2.092l.301.317a.25.25 0 0 1-.301.391v.207a.25.25 0 0 1-.5 0v-.212a.25.25 0 0 1-.309-.389l.309-.315v-2.092l-.307-.307a.25.25 0 0 1 .307-.39v-.147a.25.25 0 0 1 .25-.25"}),(0,a.jsx)("path",{d:"M7.816 12.41a.255.255 0 0 1-.092.345l-.182.107a.253.253 0 0 1-.272.383l-.264-.068-1.792 1.054-.153.366a.247.247 0 0 1-.46-.006l-.152.09a.245.245 0 0 1-.339-.09.255.255 0 0 1 .092-.345l.175-.103a.25.25 0 0 1-.04-.174.25.25 0 0 1 .279-.218l.351.045 1.792-1.054.085-.307a.247.247 0 0 1 .473-.02l.16-.095c.12-.07.271-.03.34.09"}),(0,a.jsx)("path",{d:"M7.815 14.59a.245.245 0 0 1-.339.09l-.16-.094a.247.247 0 0 1-.473-.02l-.084-.308-1.792-1.053-.352.045a.25.25 0 0 1-.279-.219.25.25 0 0 1 .04-.174l-.175-.102a.255.255 0 0 1-.092-.345c.068-.12.22-.16.339-.09l.152.089a.247.247 0 0 1 .46-.006l.154.367 1.791 1.053.265-.067a.25.25 0 0 1 .303.182.25.25 0 0 1-.032.2l.182.107c.119.07.16.225.092.345"})]})]})}),C=n.forwardRef((e,t)=>(0,a.jsx)(j.h,{ref:t,icon:N,...e}));C.displayName="RainSnowWinteryMix";let T=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Snowflake"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:[(0,a.jsx)("path",{d:"M8 1a.5.5 0 0 1 .5.5v13a.5.5 0 0 1-1 0v-13A.5.5 0 0 1 8 1"}),(0,a.jsx)("path",{d:"M5.896 1.896a.5.5 0 0 1 .707 0L8 3.293l1.396-1.397a.5.5 0 1 1 .707.708L8 4.707 5.896 2.604a.5.5 0 0 1 0-.708M5.896 13.854a.5.5 0 0 0 .707 0L8 12.457l1.396 1.397a.5.5 0 0 0 .707-.708L8 11.043l-2.104 2.103a.5.5 0 0 0 0 .708M14.062 4.5a.5.5 0 0 1-.183.683l-11.259 6.5a.5.5 0 0 1-.5-.866l11.259-6.5a.5.5 0 0 1 .683.183"}),(0,a.jsx)("path",{d:"M12.234 3.126a.5.5 0 0 1 .353.613l-.51 1.907 1.907.512a.5.5 0 1 1-.26.965l-2.873-.77.77-2.873a.5.5 0 0 1 .613-.354M1.878 9.105a.5.5 0 0 0 .354.612l1.908.511-.512 1.908a.5.5 0 1 0 .966.259l.77-2.874-2.873-.77a.5.5 0 0 0-.613.354M14.062 11.5a.5.5 0 0 1-.683.183L2.12 5.183a.5.5 0 1 1 .5-.866l11.259 6.5a.5.5 0 0 1 .183.683"}),(0,a.jsx)("path",{d:"M14.337 9.23a.5.5 0 0 1-.353.612l-1.908.511.511 1.908a.5.5 0 1 1-.966.259l-.77-2.874 2.874-.77a.5.5 0 0 1 .612.354M3.982 3.251a.5.5 0 0 0-.354.613L4.14 5.77l-1.908.512a.5.5 0 1 0 .259.965l2.873-.77-.77-2.873a.5.5 0 0 0-.612-.354"})]})]})}),A=n.forwardRef((e,t)=>(0,a.jsx)(j.h,{ref:t,icon:T,...e}));A.displayName="Snowflake";let _=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Rain Drop"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:[(0,a.jsx)("path",{d:"M8 14.256a4.506 4.506 0 0 1-4.5-4.5 5 5 0 0 1 .747-2.478l3.33-5.303a.52.52 0 0 1 .847 0l3.314 5.278a5.03 5.03 0 0 1 .762 2.503 4.506 4.506 0 0 1-4.5 4.5M8 3.18 5.11 7.784a4 4 0 0 0-.61 1.972 3.5 3.5 0 0 0 7 0 4.03 4.03 0 0 0-.624-1.998z"}),(0,a.jsx)("path",{d:"M10.103 9.757a.5.5 0 0 1 .319.631 2.74 2.74 0 0 1-1.747 1.724.5.5 0 0 1-.313-.95c.615-.203.976-.68 1.11-1.086a.5.5 0 0 1 .63-.32"})]})]})}),S=n.forwardRef((e,t)=>(0,a.jsx)(j.h,{ref:t,icon:_,...e}));S.displayName="RainDrop";let E=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Feels Like"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{fillRule:"evenodd",d:"M10.889 4.163A2 2 0 1 0 13.11.837a2 2 0 0 0-2.222 3.326m.555-2.494a1 1 0 1 1 1.112 1.662 1 1 0 0 1-1.112-1.662M11 15h2a1.003 1.003 0 0 0 1-1v-3.5a1.003 1.003 0 0 0 1-1v-3A1.47 1.47 0 0 0 13.5 5h-3A1.473 1.473 0 0 0 9 6.5v3a1.003 1.003 0 0 0 1 1V14a1.003 1.003 0 0 0 1 1m-.696-8.97A.5.5 0 0 1 10.5 6h3a.473.473 0 0 1 .5.5v3h-1V14h-2V9.5h-1v-3a.47.47 0 0 1 .304-.47",clipRule:"evenodd"}),(0,a.jsx)("path",{d:"M5 10.092V6H4v4.092a1.5 1.5 0 1 0 1 0"}),(0,a.jsx)("path",{fillRule:"evenodd",d:"M2.563 14.417c.574.38 1.248.584 1.937.583A3.497 3.497 0 0 0 7 9.055V3.5a2.5 2.5 0 1 0-5 0v5.555a3.497 3.497 0 0 0 .563 5.362M3.44 2.44a1.5 1.5 0 0 1 2.12 0c.281.281.44.662.44 1.06v5.992l.166.149a2.5 2.5 0 1 1-3.332 0L3 9.49V3.5c0-.398.159-.779.44-1.06",clipRule:"evenodd"})]})]})}),I=n.forwardRef((e,t)=>(0,a.jsx)(j.h,{ref:t,icon:E,...e}));I.displayName="FeelsLike";let R=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Wind"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.333 4.626C8.575 3.757 9.41 3 10.648 3c1.497 0 2.39 1.095 2.39 2.165 0 1.069-.893 2.164-2.39 2.164H4.389c-.256 0-.463-.188-.463-.42s.207-.42.463-.42h6.259c.91 0 1.463-.649 1.463-1.324 0-.676-.552-1.325-1.463-1.325-.764 0-1.265.45-1.416.991-.063.225-.315.361-.563.304s-.398-.285-.336-.51M2 9.09c0-.232.207-.42.463-.42h9.148C13.107 8.67 14 9.766 14 10.835S13.107 13 11.61 13c-1.334 0-2.211-.882-2.364-1.694-.043-.228.127-.445.379-.484s.491.115.534.343c.082.435.598.996 1.452.996.91 0 1.462-.65 1.462-1.326 0-.675-.552-1.325-1.462-1.325H2.463C2.207 9.51 2 9.322 2 9.09",clipRule:"evenodd"})]})}),k=n.forwardRef((e,t)=>(0,a.jsx)(j.h,{ref:t,icon:R,...e}));k.displayName="Wind";let M=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"humidity"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{fillRule:"evenodd",d:"M8 13a3.5 3.5 0 0 0 3.5-3.5c0-.59-.276-1.34-.701-2.13-.309-.573-.637-1.068-.907-1.475a26 26 0 0 1-.267-.406 77 77 0 0 1-.564-.9c-.151-.244-.281-.453-.502-.796a43 43 0 0 1-.556-.885c-.14.229-.318.52-.55.883-.238.37-.371.587-.538.86-.13.212-.28.456-.515.832q-.159.25-.35.531c-.257.382-.549.816-.841 1.348C4.78 8.139 4.5 8.886 4.5 9.5A3.5 3.5 0 0 0 8 13m0 1a4.5 4.5 0 0 0 4.5-4.5c0-1.486-1.16-3.231-1.797-4.19q-.136-.206-.234-.358a80 80 0 0 1-.552-.88c-.16-.258-.3-.484-.518-.821-.243-.376-.426-.674-.57-.91-.425-.693-.514-.837-.829-.837s-.395.133-.814.822c-.144.237-.328.54-.575.925-.24.373-.382.606-.556.889-.131.214-.28.457-.503.812-.078.125-.18.276-.296.449C4.606 6.37 3.5 8.017 3.5 9.5A4.5 4.5 0 0 0 8 14",clipRule:"evenodd"}),(0,a.jsx)("path",{d:"M12.5 9.5a4.48 4.48 0 0 1-1.107 2.957L4.845 6.025c.283-.443.545-.814.707-1.073.517-.825.638-1.045 1.059-1.701.966-1.507.967-1.747 1.389-1.747s.438.259 1.399 1.747c.413.64.55.883 1.07 1.701S12.5 7.804 12.5 9.5"})]})]})}),P=n.forwardRef((e,t)=>(0,a.jsx)(j.h,{ref:t,icon:M,...e}));P.displayName="Humidity";let L=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"pressure"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.498 1.022a.5.5 0 0 1 .5.5v3.022H4.841l3.14 2.788 3.16-2.788h-1.13V1.522a.5.5 0 0 1 1 0v2.022h1.453a.5.5 0 0 1 .33.875L8.744 7.993l4.053 3.6a.5.5 0 0 1-.332.874h-1.473v2.022a.5.5 0 0 1-1 0v-3.022h1.157L8.008 8.68l-3.16 2.788h1.13v3.022a.5.5 0 0 1-1 0v-2.022H3.525a.5.5 0 0 1-.33-.875l4.052-3.574-4.054-3.6a.5.5 0 0 1 .332-.874h1.473V1.522a.5.5 0 0 1 .5-.5",clipRule:"evenodd"})]})}),D=n.forwardRef((e,t)=>(0,a.jsx)(j.h,{ref:t,icon:L,...e}));D.displayName="Pressure";let F=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Uv Index"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"m8.022 15.021-1.748-2.94-3.29.932.931-3.284L.977 8.01l2.936-1.72-.924-3.236 3.278.874L8.022.977l1.7 2.949 3.255-.861-.868 3.226 2.853 1.717-2.854 1.718L12.98 13l-3.265-.918zm1.216-4.112 2.325.654-.615-2.306 2.075-1.249-2.075-1.248.615-2.287-2.325.615-1.23-2.132L6.74 5.088l-2.305-.615.653 2.287-2.132 1.248 2.132 1.25-.653 2.305 2.305-.654 1.268 2.133z",clipRule:"evenodd"})]})}),W=n.forwardRef((e,t)=>(0,a.jsx)(j.h,{ref:t,icon:F,...e}));W.displayName="UvIndex";let O=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Cloud Cover"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"m11.109 11.591.06.006q.099.01.204.01c1.17 0 2.176-.984 2.176-2.269 0-1.133-.789-2.04-1.778-2.23l-.66-.128-.258-.62c-.488-1.174-1.607-1.967-2.88-1.967-1.614 0-2.987 1.28-3.125 2.974l-.083 1.017-1.013.122c-.707.085-1.303.718-1.303 1.538 0 .795.562 1.415 1.242 1.528l.276.02zm-7.185 1.25-.363-.025h-.003C2.226 12.633 1.2 11.461 1.2 10.044c0-1.434 1.05-2.616 2.403-2.779.189-2.309 2.073-4.122 4.37-4.122 1.812 0 3.366 1.127 4.035 2.737 1.59.305 2.792 1.737 2.792 3.458 0 1.944-1.534 3.519-3.426 3.519q-.165 0-.324-.016z",clipRule:"evenodd"})]})}),U=n.forwardRef((e,t)=>(0,a.jsx)(j.h,{ref:t,icon:O,...e}));U.displayName="CloudCover";let H=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Dew Point"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:(0,a.jsx)("path",{d:"M10.889 4.663a2 2 0 1 0 2.222-3.326 2 2 0 0 0-2.222 3.326m.555-2.494a1 1 0 1 1 1.112 1.663 1 1 0 0 1-1.112-1.663M5.308 14.199A2.75 2.75 0 0 0 7.25 15 2.75 2.75 0 0 0 10 12.26c0-1.721-2.172-10.507-2.265-10.88a.5.5 0 0 0-.97 0C6.672 1.753 4.5 10.539 4.5 12.26c.002.728.293 1.425.808 1.939M5.5 12.26c0-1.056 1.02-5.57 1.75-8.638C7.98 6.69 9 11.205 9 12.26a1.75 1.75 0 1 1-3.5 0"})})]})}),B=n.forwardRef((e,t)=>(0,a.jsx)(j.h,{ref:t,icon:H,...e}));B.displayName="DewPoint";let z=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Wind Gust"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"m2.5 4.375 4-3a.63.63 0 0 1 .572-.093l11.25 3.75h.001a.624.624 0 0 1 0 1.186l-11.25 3.75a.63.63 0 0 1-.573-.093l-4-3V18.75H1.25V1.25H2.5zm13.75 9.375a2.5 2.5 0 0 1 0 5H7.5V17.5h8.75A1.25 1.25 0 1 0 15 16.25h-1.25a2.503 2.503 0 0 1 2.5-2.5M10 11.25a2.5 2.5 0 0 1 0 5H5V15h5a1.25 1.25 0 1 0-1.25-1.25H7.5a2.5 2.5 0 0 1 2.5-2.5M7.5 8.508l1.25-.417V3.159L7.5 2.742zM2.917 5.625l3.333 2.5v-5zM10 7.675l1.25-.417V3.992L10 3.575zm2.5-.834 3.648-1.216L12.5 4.409z"})]})}),V=n.forwardRef((e,t)=>(0,a.jsx)(j.h,{ref:t,icon:z,...e}));V.displayName="WindGust";let G=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"View"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M15.47 7.83A8.35 8.35 0 0 0 8 2.5 8.35 8.35 0 0 0 .53 7.83a.5.5 0 0 0 0 .34A8.35 8.35 0 0 0 8 13.5a8.35 8.35 0 0 0 7.47-5.33.5.5 0 0 0 0-.34M8 12.5c-2.65 0-5.45-1.965-6.465-4.5C2.55 5.465 5.35 3.5 8 3.5s5.45 1.965 6.465 4.5C13.45 10.535 10.65 12.5 8 12.5"}),(0,a.jsx)("path",{d:"M8 5a3 3 0 1 0 0 6 3 3 0 0 0 0-6m0 5a2 2 0 1 1 0-4 2 2 0 0 1 0 4"})]})]})}),q=n.forwardRef((e,t)=>(0,a.jsx)(j.h,{ref:t,icon:G,...e}));q.displayName="View";var Z=l(69132),X=l(91167),Y=l(64070);let J=(0,n.memo)(e=>{let t,{className:l,unitsClassName:n,units:r,value:i,degreeSymbolClass:s}=e,o=r?(0,m.Bu)(r):null,d=null==o?void 0:o.temp;return Number.isFinite(i)&&(t=Math.round(i)),(0,a.jsx)("span",{"data-testid":"TemperatureValue",className:(0,Y.cn)(l),dir:"ltr",children:null!=t||d?(0,a.jsxs)(a.Fragment,{children:[t,(0,a.jsx)("span",{className:(0,Y.cn)(s),children:"\xb0"}),(0,a.jsx)("span",{className:(0,Y.cn)(n),children:d})]}):"--"})}),$=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Arrow Down"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M3.353 9.767a.499.499 0 0 1 .705-.706L7.5 12.5V2.914a.5.5 0 0 1 1 0V12.5l3.443-3.438a.499.499 0 0 1 .705.706l-3.94 3.94a1 1 0 0 1-1.415 0z"})]})}),K=n.forwardRef((e,t)=>(0,a.jsx)(j.h,{ref:t,icon:$,...e}));K.displayName="ArrowDown";let Q={N:0,NNE:22.5,NE:45,ENE:67.5,E:90,ESE:112.5,SE:135,SSE:157.5,S:180,SSW:202.5,SW:225,WSW:247.5,W:270,WNW:292.5,NW:315,NNW:337.5},ee={O:o.WindDirectionCardinal.WEST,NO:o.WindDirectionCardinal.NORTHWEST,NNO:o.WindDirectionCardinal.NORTH_NORTHWEST,ONO:o.WindDirectionCardinal.WEST_NORTHWEST,OSO:o.WindDirectionCardinal.WEST_SOUTHWEST,SO:o.WindDirectionCardinal.SOUTHWEST,SSO:o.WindDirectionCardinal.SOUTH_SOUTHWEST},et=e=>{let{windDirection:t,windDirectionCardinal:l,iconClassName:n,displayWindDirectionIcon:r,displayMode:i,afterSpeed:s}=e;if(!t&&!l)return null;let o=((e,t)=>null!=e&&Number.isFinite(e)?e:t?Q[t]:void 0)(t,l);return("directional"===i||"directionalAndCardinal"===i||void 0===i&&r)&&Number.isFinite(o)?(0,a.jsx)("span",{className:(0,Y.cn)(s?"ml-0.5":"mr-0.5"),children:(0,a.jsx)(K,{"data-testid":"WindDirectionIcon",className:(0,Y.cn)("inline-block size-4 align-middle",n),style:{transform:"rotate(".concat(o,"deg)")},"aria-label":"Wind direction arrow"})}):null},el=e=>{let{windDirection:t,windDirectionCardinal:l,cardinalClassName:n,displayWindDirectionIcon:r,displayMode:i,beforeSpeed:s}=e;return(t||l)&&("cardinal"===i||"directionalAndCardinal"===i||void 0===i&&!r)&&l?(0,a.jsxs)("span",{className:n,children:[!s&&" ",l,s&&" "]}):null},ea=e=>{let{units:t,windUnitClass:l}=e,n=t?(0,m.Bu)(t):null,r=null==n?void 0:n.speed;return(0,a.jsx)("span",{className:(0,Y.cn)(l),children:r})},en=(0,n.memo)(e=>{let{windSpeed:t,units:l,className:n,windDirection:r,windDirectionCardinal:i,windSpeedClass:s,windUnitClass:o,iconClassName:d,cardinalClassName:c,iconAfterSpeed:u,cardinalBeforeSpeed:m,spaceWindSpeedAndUnit:h=!0,displayWindDirectionIcon:p=!1,displayMode:x}=e;i=i&&(e=>ee[e]||e)(i);let v=(0,a.jsx)(et,{windDirection:r,windDirectionCardinal:i,iconClassName:d,displayWindDirectionIcon:p,displayMode:x,afterSpeed:u}),f=(0,a.jsx)(el,{windDirection:r,windDirectionCardinal:i,displayWindDirectionIcon:p,displayMode:x,beforeSpeed:m,cardinalClassName:c});return(0,a.jsxs)("span",{"data-testid":"Wind",className:(0,Y.cn)(n),children:[!u&&v,m&&f,Number.isFinite(t)&&l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:(0,Y.cn)(s),children:t}),h&&" ",(0,a.jsx)(ea,{units:l,windUnitClass:o})]}):"--",!m&&f,u&&v]})}),er=(0,n.memo)(e=>{let{value:t,className:l,roundValue:n}=e,r=n?function(e){return e%5>=2.5?5*parseInt(String(e/5),10)+5:5*parseInt(String(e/5),10)}(t):t;return(0,a.jsx)("span",{"data-testid":"PercentageValue",className:(0,Y.cn)(l),children:Number.isFinite(r)&&r>=0?"".concat(r,"%"):"--"})}),ei=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Arrow Up"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M3.353 6.647a.499.499 0 0 0 .705.706L7.5 3.915V13.5a.5.5 0 0 0 1 0V3.915l3.443 3.438a.499.499 0 0 0 .705-.706l-3.94-3.94a1 1 0 0 0-1.415 0z"})]})}),es=n.forwardRef((e,t)=>(0,a.jsx)(j.h,{ref:t,icon:ei,...e}));es.displayName="ArrowUp";let eo=e=>{let{pressureTendencyCode:t,iconClassName:l}=e;return 1===t?(0,a.jsx)(es,{"data-testid":"PressureRisingIcon",className:(0,Y.cn)("mr-1 inline-block h-4 w-4",l),"aria-label":"Pressure rising"}):2===t?(0,a.jsx)(K,{"data-testid":"PressureFallingIcon",className:(0,Y.cn)("mr-1 inline-block h-4 w-4",l),"aria-label":"Pressure falling"}):null},ed=e=>{let{className:t,unitsClassName:l,pressureAltimeter:n,pressureMeanSeaLevel:r,pressureTendencyCode:i,units:s,iconClassName:o}=e,d=s?(0,m.Bu)(s):null,c=null==d?void 0:d.pressure,u=(()=>{let e=n&&n>0||r&&r>0?n||r:null;return e?"e"===s?e.toFixed(2):e.toFixed(1):null})();return(0,a.jsx)("span",{"data-testid":"PressureValue",className:(0,Y.cn)("inline-flex items-center",t),children:u?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eo,{pressureTendencyCode:i,iconClassName:o}),(0,a.jsx)("span",{children:u}),"\xa0",(0,a.jsx)("span",{className:(0,Y.cn)(l),children:c})]}):"--"})},ec=e=>{let{className:t,units:l,visibility:n,unitsClassName:r}=e,i=l?(0,m.Bu)(l):null,s=null==i?void 0:i.distance,o="";return o=0===n?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:"0"}),(0,a.jsxs)("span",{className:(0,Y.cn)(r),children:[" ",s]})]}):!n||n10||"m"===l&&n>16?"Unlimited":(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:n}),(0,a.jsxs)("span",{className:(0,Y.cn)(r),children:[" ",s]})]}),(0,a.jsx)("span",{"data-testid":"VisibilityValue",className:(0,Y.cn)(t),children:o})},eu=e=>{let t,{uvIndex:l,uvDescription:n,className:i,descriptionClassName:s}=e,o=(0,r.c3)("DetailsTable");return t=!Number.isFinite(l)||l10?o("extreme"):n?l:t=o("uvIndexVal",{val:l,maxVal:11}),(0,a.jsxs)("span",{"data-testid":"UVIndexValue",className:(0,Y.cn)(i),children:[t,n&&l{let t,l,{precipType:n="rain",rain:r,snow:i,qpf:s=0,qpfSnow:o=0,units:d,unitOverride:c,className:u,unitClass:h}=e,p=null!=r?r:s,x=null!=i?i:o,v=d?(0,m.Bu)(d):null;if("snow"===n)t=x,l="accumulation";else if("rain"===n)t=p,l="precip";else if("precip"===n){let e=Number(p)>=Number(x);t=e?p:x,l=e?"precip":"accumulation"}else t=p,l="precip";let f=null==v?void 0:v[l];return(0,a.jsxs)("span",{"data-testid":"AccumulationValue",className:(0,Y.cn)(u),children:[(0,a.jsx)("span",{children:t})," ",(0,a.jsx)("span",{className:(0,Y.cn)(h),children:c||f})]})},eh=e=>!(0,Z.g)(e)||null,ep={derive:e=>{let{precipType:t}=e;return"precip"===t?C:"snow"===t?A:S}},ex={temperatureFeelsLike:{label:(e,t)=>{let{t:l}=t;return l("feelsLike")},icon:I,value:e=>{let{temperatureFeelsLike:t}=e;return eh(t)&&(0,a.jsx)(J,{value:t})}},windSpeed:{label:(e,t)=>{let{t:l}=t;return l("wind")},icon:k,value:(e,t)=>{let{windSpeed:l,windDirectionCardinal:n}=e,{unitName:r}=t,i=(0,m.xP)(r);return eh(l)&&(0,a.jsx)(en,{className:"whitespace-nowrap",windSpeed:l,windDirectionCardinal:n,units:i.code,displayMode:"directionalAndCardinal"})}},precipChance:{label:(e,t)=>{let{precipType:l}=e,{t:a}=t;return a("chanceOf".concat((0,X.Z)(l)))},icon:ep,value:e=>{let{precipChance:t}=e;return eh(t)&&(0,a.jsx)(er,{value:t})}},relativeHumidity:{label:(e,t)=>{let{t:l}=t;return l("humidity")},icon:P,value:e=>{let{relativeHumidity:t}=e;return eh(t)&&(0,a.jsx)(er,{value:t})}},pressureMeanSeaLevel:{label:(e,t)=>{let{t:l}=t;return l("pressure")},icon:D,value:e=>{let{pressureMeanSeaLevel:t}=e;return eh(t)&&(0,a.jsx)(ed,{pressureMeanSeaLevel:t})}},visibility:{label:(e,t)=>{let{t:l}=t;return l("visibility")},icon:q,value:(e,t)=>{let{visibility:l}=e,{unitName:n}=t;return eh(l)&&(0,a.jsx)(ec,{visibility:l,units:(0,m.xP)(n).code})}},uvIndex:{label:(e,t)=>{let{t:l}=t;return l("uvIndex")},icon:W,value:e=>{let{uvIndex:t}=e;return eh(t)&&(0,a.jsx)(eu,{uvIndex:t})}},cloudCover:{label:(e,t)=>{let{t:l}=t;return l("cloudCover")},icon:U,value:e=>{let{cloudCover:t}=e;return eh(t)&&(0,a.jsx)(er,{value:t})}},accumulation:{label:(e,t)=>{let{precipType:l}=e,{t:a}=t;return a("".concat(l,"Amount"))},icon:ep,value:(e,t)=>{let{qpf:l,qpfSnow:n,precipType:r}=e,{unitName:i}=t;return eh(l)||eh(n)?(0,a.jsx)(em,{precipType:r,qpf:l,qpfSnow:n,units:(0,m.xP)(i).code}):null}},temperatureDewPoint:{label:(e,t)=>{let{t:l}=t;return l("dewPoint")},icon:B,value:e=>{let{temperatureDewPoint:t}=e;return eh(t)&&(0,a.jsx)(J,{value:t})}},windGust:{label:(e,t)=>{let{t:l}=t;return l("windGust")},icon:V,value:(e,t)=>{let{windGust:l}=e,{unitName:n}=t;return(0,a.jsx)(en,{windSpeed:l,units:(0,m.xP)(n).code})}}},ev=(0,g.F)("grid justify-between gap-1",{variants:{cols:{1:"grid-cols-[repeat(1,auto)]",2:"grid-cols-[repeat(2,auto)]",3:"grid-cols-[repeat(3,auto)]",4:"grid-cols-[repeat(4,auto)]",5:"grid-cols-[repeat(5,auto)]",6:"grid-cols-[repeat(6,auto)]"}}}),ef=(0,n.memo)(e=>{let{dataPoints:t,fields:l,columns:i}=e,{small:s=2,medium:o=3,large:d=4}=i||{},[m,h]=(e=>{let t=(0,n.useRef)(null),[l,a]=(0,n.useState)(b.A?e(window.innerWidth,window.innerHeight):null),r=(0,n.useRef)(!1),i=(0,w.X)(e),s=(0,n.useCallback)((e,t)=>i.current(e,t),[i]);return(0,n.useEffect)(()=>{let e=t.current;if(!e||"undefined"==typeof ResizeObserver)return;let l=new ResizeObserver(e=>{for(let t of e){let{right:e,left:l,top:n,bottom:i}=t.contentRect,o=s(e+l,n+i);r.current=!0,a(o)}});return l.observe(e),()=>{l.disconnect()}},[t,s]),[l,t,r.current]})(e=>e>=y["@xl"]?d:e>=y["@xs"]?o:s),x=m||o,v=(0,r.c3)("DetailsTable"),g={unitName:(0,c.md)(u.Yt),t:v},j=0;return(0,a.jsx)(f.Zp,{ref:h,className:"@container/detailsTable border-2xl mb-2 bg-[#e8e8e8] p-0",children:(0,a.jsx)(f.Wu,{className:"@xl/detailsTable:px-6 px-4 py-4",children:(0,a.jsx)("ul",{className:ev({cols:x}),children:l.map((e,l)=>{let r=ex[e],i=null==r?void 0:r.value(t,g);if(!r||!i)return j++,null;let s="derive"in r.icon?r.icon.derive(t,g):r.icon,o="function"==typeof r.label?r.label(t,g):r.label,d=l-j;return(0,a.jsxs)(n.Fragment,{children:[d>0&&d%x==0&&(0,a.jsx)("li",{className:"col-span-full py-3",children:(0,a.jsx)("div",{className:"border-b border-[#dedede]"})}),(0,a.jsxs)("li",{className:"@xl/detailsTable:gap-2 @md/detailsTable:gap-1.5 flex gap-1",children:[s&&(0,a.jsx)(s,{className:"@md/detailsTable:size-5 size-4"}),(0,a.jsxs)("div",{children:[(0,a.jsx)(p.Ay,{variant:"Body.M",className:"@xl/detailsTable:text-base mb-0.5 text-sm leading-normal",children:o}),(0,a.jsx)(p.Ay,{elementType:"string"==typeof i?"p":"div",variant:"Body.L.Bold",className:"@xl/detailsTable:text-base text-sm leading-normal",children:i})]})]})]},o+d)})})})})}),eg=e=>{let{date:t,timeZone:l}=e;return{cDate:new Date(function(e){if(!e)return"";let t=("number"==typeof e?new Date(e).toISOString():e instanceof Date?e.toISOString():e).replace(/\.\d+/,"").replace("Z","+0000").replace(/\s+/,"T").replace(/\s+/g,"").replace(/[A-Z]{3,}/,""),l=/([+-])(\d{2})(\d{2})$/;l.test(t)&&(t=t.replace(l,"$1$2:$3"));let a=t.replace(/(\d{4})-(\d{2})-(\d{2})/,"$1/$2/$3").replace("T"," ");return"Invalid Date"===new Date(a).toString()?"Invalid Date"!==new Date(t).toString()?t:"string"==typeof e?e:"":a}(t)),cTimeZone:(e=>{try{return new Intl.DateTimeFormat("en-US",{timeZone:e}),e}catch(e){return"Etc/UTC"}})(l)}};var ew=l(87043),eb=l(16073),ey=l(18540);n.forwardRef((e,t)=>{let{className:l,href:n,children:r,...i}=e;return(0,a.jsx)(v.default,{ref:t,href:n,...i,children:(0,a.jsx)(p.EY,{variant:"Caption.M",color:"secondary",children:r})})}).displayName="AccordionTextLink";let ej=n.forwardRef((e,t)=>{let{className:l,type:n="single",collapsible:r=!0,...i}=e,s={ref:t,type:n,className:(0,Y.cn)("w-full",l),"data-slot":"accordion",...i};return"single"===n&&(s.collapsible=r),(0,a.jsx)(ey.bL,{...s})});function eN(e){let{className:t,...l}=e;return(0,a.jsx)(ey.q7,{"data-slot":"accordion-item",className:(0,Y.cn)("w-full",t),...l})}function eC(e){let{className:t,children:l,triggerContent:n,title:r,number:i,iconClassName:s,...o}=e;return(0,a.jsx)(ey.Y9,{className:"flex",children:(0,a.jsxs)(ey.l9,{"data-slot":"accordion-trigger",className:(0,Y.cn)("hover:text-whale-400 group flex flex-1 cursor-pointer items-center justify-between py-4 text-left font-medium transition-all",t),...o,children:[(0,a.jsxs)("div",{className:"flex grow items-center",children:[void 0!==i&&(0,a.jsx)("div",{className:"mr-3 flex h-6 w-6 items-center justify-center rounded-full bg-[#204794] text-sm font-medium text-white",children:(0,a.jsx)("span",{className:"leading-none tracking-wide",children:i})}),n||(r?(0,a.jsx)(p.EY,{variant:"Body.L",children:r}):l)]}),(0,a.jsxs)("div",{className:"relative flex items-center",children:[(0,a.jsx)(ew.F,{className:(0,Y.cn)("h-5 w-5 shrink-0 transition-all duration-200",s,"group-data-[state=open]:rotate-45 group-data-[state=open]:opacity-0")}),(0,a.jsx)(eb.H,{className:(0,Y.cn)("absolute h-5 w-5 shrink-0 opacity-0 transition-all duration-200",s,"group-data-[state=open]:opacity-100")})]})]})})}function eT(e){let{className:t,...l}=e;return(0,a.jsx)(ey.UC,{"data-slot":"accordion-content",className:(0,Y.cn)("overflow-hidden text-sm transition-all data-[state=closed]:max-h-0 data-[state=open]:max-h-screen",t),...l})}ej.displayName="Accordion",n.forwardRef((e,t)=>{let{className:l,children:n,enabled:r=!1,...i}=e;return(0,a.jsx)("div",{ref:t,className:(0,Y.cn)("mt-4",l),...i,children:(0,a.jsx)(p.EY,{variant:"Caption.M",color:"disabled",children:n})})}).displayName="AccordionTextSpotlight";let eA=e=>{let{precipChance:t,showIcon:l=!0,displayMode:n="text",className:r,iconClassName:i,textClassName:s,progressClassName:o,progressBarClassName:d}=e;return(0,a.jsxs)(a.Fragment,{children:[("text"===n||"both"===n)&&(0,a.jsxs)("span",{className:(0,Y.cn)(r,s),children:[l&&(0,a.jsx)(S,{className:(0,Y.cn)("size-4",i)}),(0,a.jsx)(er,{value:t,className:"align-middle"})]}),("progress"===n||"both"===n)&&(0,a.jsxs)("div",{className:(0,Y.cn)("w-26 relative inline-block h-5 overflow-hidden rounded-xl bg-[#e9e9e9] align-middle",r,o),children:[(0,a.jsx)("div",{className:(0,Y.cn)("relative h-full w-full rounded-xl bg-[#cbdef0]",d),style:{left:"".concat(t-100,"%")}}),(0,a.jsxs)("div",{className:"absolute bottom-0 top-0 flex h-full w-full items-center p-1",children:[l&&(0,a.jsx)(S,{className:(0,Y.cn)("size-3.25",i)}),(0,a.jsx)(er,{value:t,className:"text-sm"})]})]})]})};var e_=l(60838);let eS=["temperatureFeelsLike","accumulation","windSpeed","pressureMeanSeaLevel","cloudCover","temperatureDewPoint","uvIndex","visibility","relativeHumidity","windGust"],eE=e=>{let{text:t}=e;return(0,a.jsx)(p.Ay,{variant:"Caption.M",color:"secondary",className:"@max-md/hourItem:hidden mb-1 font-bold",children:t})},eI=e=>{let{forecast:t,location:l,locale:n,itemIndex:i,longPhraseInSet:s}=e,o=(0,r.c3)("DetailsTable"),d=(0,c.md)(u.Yt),h=(0,m.xP)(d),x=0===i;return(0,a.jsxs)(eN,{value:t.validTimeLocal,className:"@container/hourItem border-grey-500 gap-2 border-b py-3",children:[(0,a.jsx)(eC,{className:"@md/hourItem:gap-3 items-end gap-1 p-0",iconClassName:"size-4 mb-1",triggerContent:(0,a.jsxs)("div",{className:"flex w-full items-end justify-between gap-1",children:[(0,a.jsx)("div",{className:"min-w-[60px]",children:(0,a.jsx)(p.Ay,{className:(0,Y.cn)("inline-block whitespace-nowrap rounded-[100px] px-2 py-0.5","group-data-[state=open]:bg-blue-500 group-data-[state=open]:text-white"),children:(e=>{var t,l,a,n,r,i,s,o,d;let{date:c,locale:u="en-US",timeZone:m,minutes:h,showTimeZone:p,showShortDayperiod:x,weekday:v}=e;if(!c)return"";let{cDate:f,cTimeZone:g}=eg({date:c,locale:u,timeZone:m}),w={hour:"numeric",hour12:!0,timeZone:g};v&&(w.weekday=v),h&&(w.minute="2-digit"),"en-US"!==u&&"es-US"!==u&&(delete w.hour12,w.minute="2-digit",w.hourCycle="h23"),p&&(w.timeZoneName="short");let b=new Intl.DateTimeFormat(u,w);if(u.includes("-US")){let e=b.formatToParts(f),i=v&&(null==(t=e.find(e=>"weekday"===e.type))?void 0:t.value),s=null==(l=e.find(e=>"hour"===e.type))?void 0:l.value,o=h&&(null==(a=e.find(e=>"minute"===e.type))?void 0:a.value),d=null==(n=e.find(e=>"dayperiod"===e.type.toLowerCase()))?void 0:n.value.toLowerCase(),c=u.includes("en")?d:null==d?void 0:d.replace(/\./g,"").replace(/\s/g,""),m=x?"".concat(null==c?void 0:c[0]," "):" ".concat(c," "),g=p?null==(r=e.find(e=>"timeZoneName"===e.type))?void 0:r.value:"",w=v?"".concat(i," "):"";return"".concat(w).concat(s).concat(h?":".concat(o):"").concat(m).concat(g).trim()}if(x){let e=b.formatToParts(f),t=v&&(null==(i=e.find(e=>"weekday"===e.type))?void 0:i.value),l=null==(s=e.find(e=>"hour"===e.type))?void 0:s.value,a=h&&(null==(o=e.find(e=>"minute"===e.type))?void 0:o.value),n=p?null==(d=e.find(e=>"timeZoneName"===e.type))?void 0:d.value:"";return"".concat(v?"".concat(t," "):"").concat(l).concat(h?":".concat(a):""," ").concat(n).trim()}return b.format(f)})({date:t.validTimeLocal,locale:n,timeZone:l.ianaTimeZone})})}),(0,a.jsx)("div",{className:"basis-[40px]",children:(0,a.jsx)(p.Ay,{variant:"Body.L.Bold",children:(0,a.jsx)(J,{value:t.temperature})})}),(0,a.jsxs)("div",{className:"relative flex h-6 items-center",children:[(0,a.jsx)(e_.WxIcon,{iconCode:t.iconCode,className:"lightBG @md/hourItem:size-8 size-7",size:"lg",iconTheme:"lightBG","aria-label":t.wxPhraseLong||"Weather condition ".concat(t.iconCode)}),(0,a.jsx)(p.Ay,{variant:"Body.M",className:(0,Y.cn)("@max-2xl/hourItem:hidden pl-1.5",s?"min-w-[200px]":"min-w-[110px]"),children:t.wxPhraseLong})]}),(0,a.jsx)("div",{className:"@lg/hourItem:min-w-[105px] @lg/hourItem:py-0.5 min-w-[50px] items-end",children:(0,a.jsx)(eA,{precipChance:t.precipChance,displayMode:"both",textClassName:"@lg/hourItem:hidden",progressClassName:"@max-lg/hourItem:hidden",iconClassName:"@max-lg/hourItem:size-3"})}),(0,a.jsxs)("div",{className:"@max-md/hourItem:hidden basis-[72px] items-end",children:[x&&(0,a.jsx)(eE,{text:o("humidity")}),(0,a.jsx)(p.Ay,{children:(0,a.jsx)(er,{value:t.relativeHumidity})})]}),(0,a.jsxs)("div",{className:"basis-[76px] items-end",children:[x&&(0,a.jsx)(eE,{text:o("wind")}),(0,a.jsx)(p.Ay,{elementType:"div",children:(0,a.jsx)(en,{windSpeed:t.windSpeed,windDirectionCardinal:t.windDirectionCardinal,units:h.code,displayMode:"directional",className:"whitespace-nowrap",iconClassName:"size-3 @md/hourItem:size-4"})})]}),(0,a.jsxs)("div",{className:"@max-md/hourItem:hidden min-w-[76px]",children:[x&&(0,a.jsx)(eE,{text:o("precipitation")}),(0,a.jsx)(p.Ay,{children:(0,a.jsx)(em,{precipType:t.precipType,qpf:t.qpf,qpfSnow:t.qpfSnow,units:h.code})})]})]})}),(0,a.jsx)(eT,{className:"@md/hourItem:pt-4 pt-2",children:(0,a.jsx)(ef,{dataPoints:t,fields:eS})})]})};var eR=l(88725),ek=l(69266);let eM=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Sunny Day"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M7.5 13.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0M7.5 1.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0M13.5 8.5h1a.5.5 0 0 0 0-1h-1a.5.5 0 0 0 0 1M1.5 8.5h1a.5.5 0 0 0 0-1h-1a.5.5 0 0 0 0 1M11.536 12.243l.707.707a.5.5 0 0 0 .707-.707l-.707-.707a.5.5 0 0 0-.707.707M3.05 3.757l.707.707a.5.5 0 0 0 .707-.707l-.707-.707a.5.5 0 1 0-.707.707M12.243 4.464l.707-.707a.5.5 0 1 0-.707-.707l-.707.707a.5.5 0 0 0 .707.707M3.757 12.95l.707-.707a.5.5 0 1 0-.707-.707l-.707.707a.5.5 0 1 0 .707.707"}),(0,a.jsx)("path",{fillRule:"evenodd",d:"M8 10.667a2.667 2.667 0 1 0 0-5.334 2.667 2.667 0 0 0 0 5.334m0 1a3.667 3.667 0 1 0 0-7.334 3.667 3.667 0 0 0 0 7.334",clipRule:"evenodd"})]})]})}),eP=n.forwardRef((e,t)=>(0,a.jsx)(j.h,{ref:t,icon:eM,...e}));eP.displayName="SunnyDay";let eL=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Cloudy"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.063 3c1.877 0 3.35 1.456 3.457 3.53l.035.241.795.084.028.008c.482.124.891.343 1.182.674.295.337.44.757.44 1.227a1.9 1.9 0 0 1-.616 1.395c-.35.33-.838.56-1.457.656.046.156.073.322.073.495 0 .846-.605 1.548-1.388 1.658l-.107.014h-.103l-.006.001-7.808.006q-.111.01-.226.011C2.058 13 1 11.897 1 10.537c0-1.203.828-2.207 1.923-2.42l.701-.138.28-.683a3.49 3.49 0 0 1 1.769-1.858c.033-.45.257-.844.48-1.133.245-.32.53-.569.7-.699C7.454 3.15 8.216 3 9.064 3M7.029 6.019c-1.065 0-1.975.671-2.365 1.625l-.456 1.112-1.135.222c-.716.14-1.246.794-1.246 1.56 0 .864.677 1.587 1.535 1.587q.075 0 .149-.008l.038-.004 7.901-.006.054-.007a.79.79 0 0 0 .669-.79.79.79 0 0 0-.682-.792l-1.755-.216-.147-1.845c-.109-1.354-1.205-2.438-2.56-2.438m2.034-2.171c-.767 0-1.317.139-1.71.437a3 3 0 0 0-.543.541q-.136.177-.214.348.213-.03.433-.031c1.778 0 3.239 1.426 3.384 3.24l.09 1.132 1.083.132c.315.04.602.175.834.376a.4.4 0 0 1 .085-.013c.652-.04 1.067-.242 1.313-.473s.348-.514.348-.773c0-.284-.084-.497-.229-.662-.146-.167-.382-.314-.736-.41l-1.379-.146-.133-.936v-.02c-.078-1.668-1.222-2.742-2.626-2.742",clipRule:"evenodd"})]})}),eD=n.forwardRef((e,t)=>(0,a.jsx)(j.h,{ref:t,icon:eL,...e}));eD.displayName="Cloudy";let eF=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Rain Heavy"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{fillRule:"evenodd",d:"M7.982 1.833c-1.303 0-2.391 1.032-2.5 2.37l-.034.407-.405.049c-.67.08-1.209.672-1.209 1.41 0 .724.518 1.307 1.17 1.405l.217.015h4.896l.024.003q.087.008.175.008c1.01 0 1.851-.845 1.851-1.915 0-.946-.66-1.719-1.51-1.882l-.264-.051-.104-.248c-.386-.93-1.279-1.57-2.307-1.57M4.535 3.747C4.843 2.096 6.26.833 7.982.833c1.367 0 2.543.798 3.123 1.95 1.198.352 2.062 1.48 2.062 2.802 0 1.597-1.264 2.915-2.851 2.915a3 3 0 0 1-.245-.01H5.187l-.25-.018H4.92l-.034-.005c-1.168-.16-2.051-1.182-2.051-2.398 0-1.091.71-2.026 1.701-2.322",clipRule:"evenodd","data-figma-bg-blur-radius":20}),(0,a.jsx)("path",{d:"m7.65 9.47-.711 1.954a.5.5 0 1 0 .94.342l.71-1.954a.5.5 0 1 0-.94-.342M4.882 10.816l-.803 2.205a.5.5 0 0 0 .94.342l.802-2.205a.5.5 0 0 0-.94-.342M10.179 10.918l-.766 2.103a.5.5 0 1 0 .94.342l.765-2.103a.5.5 0 0 0-.94-.342"})]})]})}),eW=n.forwardRef((e,t)=>(0,a.jsx)(j.h,{ref:t,icon:eF,...e}));eW.displayName="RainHeavy";let eO=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Clear Night"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M6.751 2.707a7.54 7.54 0 0 0 5.797 9.097A5.56 5.56 0 0 1 8.561 13.5q-.105.002-.21 0a5.547 5.547 0 0 1-1.6-10.792m.74-1.207a1 1 0 0 0-.088.008 6.548 6.548 0 0 0 .912 12.99c.082.004.164 0 .246 0a6.54 6.54 0 0 0 5.35-2.777.504.504 0 0 0-.391-.782A6.54 6.54 0 0 1 7.945 2.19a.507.507 0 0 0-.455-.69"})]})}),eU=n.forwardRef((e,t)=>(0,a.jsx)(j.h,{ref:t,icon:eO,...e}));eU.displayName="ClearNight";let eH=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M7.5 1.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0M7.5 13.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0M2.5 8.5h-1a.5.5 0 0 1 0-1h1a.5.5 0 0 1 0 1M11.536 12.243l.707.707a.5.5 0 0 0 .707-.707l-.707-.707a.5.5 0 0 0-.707.707M3.757 4.464l-.707-.707a.5.5 0 1 1 .707-.707l.707.707a.5.5 0 0 1-.707.707M12.243 4.464l.707-.707a.5.5 0 1 0-.707-.707l-.707.707a.5.5 0 0 0 .707.707M4.464 12.243l-.707.707a.5.5 0 1 1-.707-.707l.707-.707a.5.5 0 1 1 .707.707M8.72 10.568A2.67 2.67 0 0 1 5.333 8 2.667 2.667 0 0 1 9.85 6.079c.25-.234.55-.414.883-.524a3.667 3.667 0 1 0-.125 5.021H9.217z"}),(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.489 5.9c-.985 0-1.795.747-1.913 1.71a1.25 1.25 0 0 0-1.01 1.231c0 .633.465 1.159 1.07 1.24l.007.002h.004l.148.01h2.97q.07.006.14.006c.845 0 1.528-.694 1.528-1.548 0-.738-.509-1.356-1.192-1.512a1.93 1.93 0 0 0-1.752-1.14m-1.203 1.847a1.22 1.22 0 0 1 1.203-1.133c.488 0 .92.301 1.108.749l.128.305.328.062c.365.07.66.402.66.82a.82.82 0 0 1-.883.831l-.03-.003H9.823l-.107-.007a.53.53 0 0 1-.429-.53.53.53 0 0 1 .455-.534l.503-.06z",clipRule:"evenodd"})]})}),eB=n.forwardRef((e,t)=>(0,a.jsx)(j.h,{ref:t,icon:eH,...e}));eB.displayName="FairMostlyClearDay";let ez={up:es,down:K,sun:eP,cloud:eD,rain:eW,clear:eP,"clear-night":eU,fair:eB},eV=e=>{let{location:t,hourlyForecast:l,isLoading:i,error:s,locale:o,showDayLabel:d,canToggleMultipleItems:c,ctaLink:u,ctaText:m,enableAlertHeadlines:h,insight:g,insightIcon:w}=e,b=(0,r.c3)("HourlyForecast"),[y,j]=(0,n.useState)(!1),N=w&&ez[w];return(0,a.jsxs)(f.Zp,{className:"@container/hourly not-prose gap-0 p-4",children:[(0,a.jsxs)(f.aR,{className:"gap-0 p-0",children:[(0,a.jsx)(p.Ay,{elementType:"h2",variant:"Title.M",className:"mb-4 whitespace-nowrap leading-snug",children:b("hourlyWeather")}),g&&(0,a.jsxs)("div",{className:"mb-4 flex items-center gap-1",children:[N&&(0,a.jsx)("div",{children:(0,a.jsx)(N,{className:"text-brand-light size-5"})}),(0,a.jsx)(p.Ay,{variant:"Body.S.Bold",color:"brandLight",children:g})]})]}),(0,a.jsxs)(f.Wu,{className:"p-0",children:[h&&(0,a.jsx)("div",{children:(0,a.jsx)(eR.A,{location:t,className:"@lg/hourly:min-w-59 mx-4 mb-3 inline-flex"})}),(()=>{var e,r;let h="flex min-h-48 items-center justify-center p-4";if(!t)return(0,a.jsx)("div",{className:"".concat(h," animate-pulse text-xl"),children:b("locationLoading")});if(i)return(0,a.jsx)("div",{className:"".concat(h," animate-pulse text-xl"),children:b("loadingForecast")});if(s||0===l.length)return(0,a.jsx)("div",{className:"".concat(h," text-xl text-red-500"),children:(null==s?void 0:s.message)||b("errorMsg")});let f=null!=(r=null==(e=l[0])?void 0:e.validTimeLocal)?r:void 0;return(0,a.jsxs)("div",{children:[(0,a.jsx)(ej,{...c?{type:"multiple",defaultValue:f?[f]:void 0}:{type:"single",defaultValue:f},children:l.map((e,r)=>{var i;return!y&&e.wxPhraseLong.length>15&&j(!0),(0,a.jsxs)(n.Fragment,{children:[d&&(0===r||e.dayOfWeek!==((null==(i=l[r-1])?void 0:i.dayOfWeek)||""))&&(0,a.jsx)(p.Ay,{variant:"Body.L.Bold",className:"border-b border-[#dedede] p-4",children:(e=>{let{date:t,locale:l="en-US",timeZone:a}=e;if(!t)return"";let{cDate:n,cTimeZone:r}=eg({date:t,locale:l,timeZone:a});return new Intl.DateTimeFormat(l,{weekday:"long",day:"numeric",month:"long",timeZone:r}).format(n)})({date:e.validTimeLocal,locale:o,timeZone:t.ianaTimeZone})}),(0,a.jsx)(eI,{itemIndex:r,forecast:e,location:t,locale:o,longPhraseInSet:y})]},e.validTimeLocal)})}),u&&m&&(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(x.$n,{asChild:!0,children:(0,a.jsx)(v.default,{href:u,children:m})})})]})})()]})]})};var eG=l(64145),eq=l(62974),eZ=l(48340);let eX={revalidateOnFocus:!1,dedupingInterval:6e4},eY=["trendingFeelsLikeInsight","trendingTemperatureInsight","trendingWindInsight","trendingUvIndexInsight"],eJ=Math.floor(Math.random()*eY.length),e$=e=>{var t,l;let{location:p,simplifiedVersion:x}=e,v=(0,r.c3)("HourlyForecast"),{effectiveLocation:f,isLocationLoading:g}=(0,d.s)({location:p}),w=(0,c.md)(u.Yt),b=null==(t=(0,m.xP)(w))?void 0:t.code,y=x?o.HourlyForecastDuration.ONE_DAY:o.HourlyForecastDuration.THREE_DAY,j=null==(l=(0,h.useParams)())?void 0:l.locale,{data:N=[],error:C,isLoading:T}=(0,i.Ay)(f?["get-hourly-forecast",f.geocode,b,y,j]:null,e=>{let[t,l,a,n,r]=e;return(0,s.$c)({geocode:l,units:a,duration:n,language:r})},{revalidateOnFocus:!1,dedupingInterval:6e4}),A=(0,n.useMemo)(()=>x?N.slice(0,4):N,[N,x]),{insight:_,insightIcon:S}=((e,t)=>{var l,a;let r=(0,c.md)(u.Yt),s=null==(l=(0,m.xP)(r))?void 0:l.code,{data:d,isLoading:h}=(e=>{let{geoCode:t,insightType:l,locale:a,par:n="twc"}=e,r=(0,c.md)(u.Yt),s=((0,m.xP)(r)||m.AF).code;return(0,i.Ay)(t?["get-weather-insights",l,t,s,n,a]:null,e=>{let[t,l,a,n,r,i]=e;return(0,eZ.I)({geocode:a,units:n,language:i,insightType:l,par:r})},eX)})({geoCode:(null==e?void 0:e.geocode)||null,insightType:ek.InsightType.ALL,locale:t}),p=(0,n.useMemo)(()=>null==d?void 0:d.reduce((e,t)=>(e[t.insightType]=t,e),{}),[d]),{data:x=[],isLoading:v}=(0,i.Ay)(e?["get-daily-forecast",e.geocode,s,o.ForecastDuration.THREE_DAY,t]:null,e=>{let[t,l,a,n,r]=e;return(0,eq.v1)({geocode:l,units:a,duration:n,language:r})},{revalidateOnFocus:!1,dedupingInterval:6e5}),f=h||v,g=x[0],w=(0,n.useMemo)(()=>{var e,t,l,a,n,r;if(f)return"";let i=null==p||null==(t=p.significantWeatherTodayInsight)||null==(e=t.insightText)?void 0:e[0];if(i)return i;let s=null==g||null==(a=g.daypart)||null==(l=a.narrative)?void 0:l[0];if(s)return s.split(".")[0];let o=eY[eJ]||eY[0];return(null==p||null==(r=p[o])||null==(n=r.insightText)?void 0:n[0])||""},[f,p,null==g||null==(a=g.daypart)?void 0:a.narrative]);return(0,n.useMemo)(()=>{let e=(0,eG.B)(w,[" ","."]),t=e?(e=>{if(e){if(/(warmer|higher)/i.test(e))return"up";else if(/(cooler|lower)/i.test(e))return"down";else if(/(partly cloudy)/i.test(e)||/(sun)/i.test(e)&&/(cloud)/i.test(e))return"fair";else if(/(sunny|sunshine)/i.test(e))return"sun";else if(/(cloudy)/i.test(e))return"cloud";else if(/(shower|rain)/i.test(e))return"rain";else if(/(clear)/i.test(e))return/(night)/i.test(e)?"clear-night":"clear"}return null})(e):null;return{insight:e,insightIcon:t}},[w])})(f,j),E=f?x?"/weather/hourbyhour/l/".concat(f.placeId):"/weather/tenday/l/".concat(f.placeId):"";return(0,a.jsx)(eV,{location:f,hourlyForecast:A,locale:j,isLoading:T||g,error:C,showDayLabel:!x,canToggleMultipleItems:!x,ctaLink:E,ctaText:v(x?"next48":"10DayWeather"),enableAlertHeadlines:!x,insight:_,insightIcon:S})};var eK=l(6127),eQ=l(3071);let e0=e=>{let{locationProvider:t,locationEntry:l,simplifiedVersion:n}=e,r="specified"===t,{specifiedLocationData:i,specifiedLocationError:s,isSpecifiedLocationLoading:o}=(0,eQ.v)(r?l:null);if(r&&o)return(0,a.jsx)("div",{children:"Loading location data..."});if(r&&s)return(0,a.jsxs)("div",{children:["Error loading location data: ",s.message]});let d=r&&i&&l?(0,eK.I)(i):void 0;return(0,a.jsx)(e$,{location:d,simplifiedVersion:n})},e1=e0},41248:(e,t,l)=>{"use strict";l.r(t),l.d(t,{LiveblogEntriesBlock:()=>n,default:()=>r});var a=l(66695);l(97839);let n=()=>(0,a.jsx)("div",{children:"Live Blog Entries"}),r=n},42302:(e,t,l)=>{"use strict";l.d(t,{J:()=>a});let a=e=>Array.isArray(e)&&e.length>0},46848:(e,t,l)=>{"use strict";l.d(t,{lG:()=>u,Cf:()=>p,LC:()=>h,ZJ:()=>m,L3:()=>x});var a=l(66695),n=l(97839),r=l(89516),i=l(89010);let s=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Close"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M12.809 4.113a.652.652 0 1 0-.922-.922L8 7.078 4.113 3.19a.652.652 0 1 0-.922.922L7.078 8 3.19 11.887a.652.652 0 0 0 .922.922L8 8.922l3.887 3.887a.652.652 0 1 0 .922-.922L8.922 8z"})]})}),o=n.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:s,...e}));o.displayName="Close";var d=l(64070);l(24765);var c=l(73237);function u(e){let{...t}=e;return(0,a.jsx)(r.bL,{"data-slot":"dialog",...t})}function m(e){let{...t}=e;return(0,a.jsx)(r.ZL,{"data-slot":"dialog-portal",...t})}function h(e){let{className:t,...l}=e;return(0,a.jsx)(r.hJ,{"data-slot":"dialog-overlay",className:(0,d.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...l})}function p(e){let{className:t,children:l,showCloseButton:n=!0,...i}=e;return(0,a.jsxs)(m,{"data-slot":"dialog-portal",children:[(0,a.jsx)(h,{}),(0,a.jsxs)(r.UC,{"data-slot":"dialog-content",className:(0,d.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] top-[50%] z-50 w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-white shadow-lg duration-200 sm:max-w-md",t),...i,children:[l,n&&(0,a.jsxs)(r.bm,{className:"absolute right-4 top-4 cursor-pointer transition-opacity hover:opacity-70 focus:outline-none",children:[(0,a.jsx)(o,{className:"h-5 w-5 text-black"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function x(e){let{className:t,children:l,...n}=e;return(0,a.jsx)(r.hE,{"data-slot":"dialog-title",className:(0,d.cn)("pt-4 text-center",t),...n,children:(0,a.jsx)(c.EY,{variant:"Title.M",children:l})})}},47373:(e,t,l)=>{"use strict";l.r(t),l.d(t,{DailyForecastBlock:()=>y,default:()=>j});var a=l(66695);l(97839);var n=l(24765),r=l(62974),i=l(81402),s=l(38051),o=l(79023),d=l(64070),c=l(31561);let u=function(e,t){let l=(0,c.G)();return l?l.variant(e,t):t};var m=l(20108),h=l(74249),p=l(72286),x=l(69896),v=l(92071),f=l(60838);let g=e=>{var t;let{location:l}=e,c=(0,p.c3)("DailyForecast"),g=(0,v.useParams)(),w=null==g?void 0:g.locale,{value:b}=u("reorder-current-conditions-and-forecast","control"),{effectiveLocation:y,isLocationLoading:j}=(0,o.s)({location:l}),N=(0,m.md)(h.Yt),C=null==(t=(0,x.xP)(N))?void 0:t.code,{data:T,error:A,isLoading:_}=(0,s.Ay)(y?["daily-forecast",y.geocode,C]:null,e=>{let[t,l,a]=e;return y?(0,r.v1)({geocode:l,units:a,language:w,duration:i.ForecastDuration.THREE_DAY}):null},{revalidateOnFocus:!1,dedupingInterval:6e4}),S=[];if(T&&T[0]&&T[0].daypart){let e=T[0].daypart;if(e&&e.daypartName)for(let t=0;t{let l="Afternoon"===e.name||"Evening"===e.name?"text-blue-600":"text-slate-700";return(0,a.jsxs)("div",{className:"flex items-center justify-between px-6 py-5","data-testid":"forecast-period-".concat(t),children:[(0,a.jsx)("div",{className:"w-1/3 text-xl font-medium text-gray-700","data-testid":"period-name",children:e.name}),(0,a.jsxs)("div",{className:"text-5xl font-bold ".concat(l," w-1/3 text-center"),"data-testid":"temperature",children:[e.temperature,"\xb0"]}),(0,a.jsxs)("div",{className:"flex w-1/3 items-center justify-end",children:[(0,a.jsx)("div",{className:"flex w-12 justify-center","data-testid":"weather-icon",children:(0,a.jsx)(f.WxIcon,{iconCode:e.iconCode,className:"lightBG",size:"xl",iconTheme:"lightBG","aria-label":i.ICON_CODE_MAP[e.iconCode]||"Weather condition ".concat(e.iconCode)})}),(0,a.jsx)("div",{className:"ml-6 w-16 text-xl font-medium text-gray-700","data-testid":"precipitation",children:e.precipitation})]})]},e.name)})}),(0,a.jsx)("div",{className:"flex justify-start p-4",children:(0,a.jsx)(n.$n,{variant:"default",className:"rounded-md bg-slate-900 text-white hover:bg-slate-800","data-testid":"next-48-hours",children:c("bottomCtaButton")})})]}):(0,a.jsxs)("div",{className:"overflow-hidden rounded-lg bg-white shadow-md",children:[(0,a.jsx)("div",{className:"bg-slate-800 p-4 text-white",children:(0,a.jsx)("h2",{className:"text-2xl font-bold",children:c("loadingLocation")})}),(0,a.jsx)("div",{className:"flex h-64 items-center justify-center p-6",children:(0,a.jsx)("div",{className:"animate-pulse text-xl",children:"Determining location..."})})]})};var w=l(6127),b=l(3071);let y=e=>{let{locationProvider:t,locationEntry:l}=e,{specifiedLocationData:n,specifiedLocationError:r,isSpecifiedLocationLoading:i}=(0,b.v)("specified"===t?l:null);return"specified"===t&&i?(0,a.jsx)("div",{children:"Loading location data..."}):"specified"===t&&r?(0,a.jsxs)("div",{children:["Error loading location data: ",r.message]}):"specified"===t&&n&&l?(0,a.jsx)(g,{location:(0,w.I)(n)}):"specified"!==t?(0,a.jsx)(g,{}):null},j=y},48340:(e,t,l)=>{"use strict";t.I=i;let a=l(93323),n=l(54435),r=l(71744);async function i(e){let t=(0,a.getSunV3WeatherInsightsUrlConfig)(e),l=(0,n.urlFrom)(t),i=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(0,r.handleFetchResponse)(i)}},48709:(e,t,l)=>{"use strict";l.r(t),l.d(t,{MorningBriefBlock:()=>V,default:()=>G});var a=l(66695),n=l(97839),r=l(54506),i=l(35744),s=l(73294),o=l(24765),d=l(28105),c=l(38051),u=l(78648),m=l(38389),h=l(47777),p=l(1518),x=l(64070);function v(e){let{className:t,...l}=e;return(0,a.jsx)(h.uB,{"data-slot":"command",className:(0,x.cn)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...l})}function f(e){let{className:t,...l}=e;return(0,a.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,a.jsx)(p.A,{className:"size-4 shrink-0 opacity-50"}),(0,a.jsx)(h.uB.Input,{"data-slot":"command-input",className:(0,x.cn)("placeholder:text-muted-foreground outline-hidden flex h-10 w-full rounded-md bg-transparent py-3 text-sm disabled:cursor-not-allowed disabled:opacity-50",t),...l})]})}function g(e){let{className:t,...l}=e;return(0,a.jsx)(h.uB.List,{"data-slot":"command-list",className:(0,x.cn)("max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden",t),...l})}function w(e){let{className:t,...l}=e;return(0,a.jsx)(h.uB.Group,{"data-slot":"command-group",className:(0,x.cn)("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...l})}function b(e){let{className:t,...l}=e;return(0,a.jsx)(h.uB.Item,{"data-slot":"command-item",className:(0,x.cn)("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",t),...l})}l(46848);var y=l(32370),j=l(92071);function N(e){var t;let{label:l,placeholder:r,className:s,location:h,onChangeLocation:p}=e,N=(0,j.useParams)(),C=null==N?void 0:N.locale,[T,A]=(0,n.useState)(!1),[_,S]=(0,n.useState)(""),{isLoading:E,data:I}=function(e,t){let l=e.trim().length>0,{isLoading:a,data:n,error:r}=(0,c.Ay)(l?["search/locations",encodeURIComponent(e)]:null,async()=>await (0,d.SK)(e,t));return{isLoading:a,data:n,error:r}}((0,u.A)(_,300),C);return(0,a.jsxs)(m.AM,{open:T,onOpenChange:A,children:[(0,a.jsx)(m.Wv,{asChild:!0,children:(0,a.jsxs)(o.$n,{variant:"outline",role:"combobox",className:(0,x.cn)("text-muted-foreground flex w-full text-nowrap bg-white px-2",s),children:[(0,a.jsx)("div",{children:E?(0,a.jsx)(i.A,{className:"animate-spin"}):(0,a.jsx)(y.A,{})}),(0,a.jsx)("div",{className:"flex flex-1 px-2 text-start",children:null!=(t=null==h?void 0:h.displayName)?t:l})]})}),(0,a.jsx)(m.hl,{className:"w-[var(--radix-popover-trigger-width)]",showArrow:!1,children:(0,a.jsxs)(v,{shouldFilter:!1,children:[(0,a.jsx)(f,{placeholder:r,value:_,onValueChange:S}),(0,a.jsx)(g,{children:(0,a.jsx)(w,{children:null==I?void 0:I.map(e=>(0,a.jsx)(b,{value:e.locId,onSelect:()=>{null==p||p(e),A(!1)},children:e.address},e.locId))})})]})})]})}var C=l(54720);function T(e){let{label:t,error:l,className:n,...r}=e;return(0,a.jsxs)("div",{className:"w-full",children:[t&&(0,a.jsx)("label",{className:"text-sm",children:t}),(0,a.jsx)(C.p,{...r,className:l?"".concat(n," border-red-500"):n})]})}var A=l(88504);let _={"{{terms}}":{text:"Terms",url:"https://".concat("weather.com","/legal")},"{{privacy}}":{text:"Privacy Policy",url:"https://".concat("weather.com","/en-US/twc/privacy-policy")}},S=/\{\{(.*?)\}\}/g;function E(){return(0,a.jsx)("div",{className:"mt-4 text-xs",children:"By signing up you agree to the {{terms}} & {{privacy}}. Unsubscribe at any time.".split(S).map((e,t)=>{let l=_["{{".concat(e,"}}")];return l?(0,a.jsx)(A.default,{href:l.url,className:"underline",children:l.text},t):(0,a.jsx)("span",{children:e},t)})})}let I={src:"/_next/static/media/morning-brief-logo.73126316.svg"},R={src:"/_next/static/media/ellipse.b0c8befa.png"};var k=l(82212),M=l(77339),P=l(36489),L=l(20108),D=l(21669);let F=(0,l(99842).tG)("emailPreferences",null,void 0,{getOnInit:!0});var W=l(4901),O=l(89834);let U=()=>{let[e,t]=(0,L.fp)(F),{user:l}=(0,W.J)(),a=(null==l?void 0:l.userID)||null,r=(null==l?void 0:l.isUserLoggedIn)||!1,i=(0,n.useCallback)(l=>{a&&t({userId:a,expiry:Date.now()+9e5,subscriptions:function(e,t){let l=(null==t?void 0:t.length)?t:O.J3,a={};return e?(null==l||l.forEach(e=>{a[e.subscriptionGroupName]=e}),e.forEach(e=>{a[e.subscriptionGroupName]=e}),Object.values(a)):l}(l,null==e?void 0:e.subscriptions)})},[a,t,null==e?void 0:e.subscriptions]),s=e&&e.userId===a&&e.expiry&&e.expiry>Date.now();return(0,c.Ay)(a&&r&&!s?"getEmailPreferencesStatus/".concat(a):void 0,()=>(0,D.j)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:0,errorRetryCount:2,onSuccess:e=>{a&&e&&i(e.subscriptions)}}),{subscriptions:a&&e?e.subscriptions:null,updateSubscriptions:i}};async function H(e,t){let{arg:l}=t,{email:a,location:n,locale:r,isAnonymous:i}=l,{location:s}=await (0,P.$M)(n.placeId,r).catch(()=>({location:null})),o={subscriptions:[{subscriptionGroupName:e,isSubscribed:!0,attributes:{location:n.placeId,latitude:n.latitude,longitude:n.longitude,dmaCode:(null==s?void 0:s.dmaCd)||null,adminDistrict:n.adminDistrict,adminDistrictCode:n.adminDistrictCode||null,postalCode:n.postalCode}}]};return i&&(o.email=a),await (0,M.p_)(o).then(e=>({...e,sentSubscriptions:o.subscriptions}))}var B=l(36697),z=l(4792);let V=()=>{var e,t;let l=(0,j.useParams)(),d=(0,j.useSearchParams)(),c=null==l?void 0:l.locale,{userProfile:u}=(0,W.J)(),[m,h]=(0,n.useState)(null!=(e=null==u?void 0:u.email)?e:""),[p,x]=(0,n.useState)(null),[v,f]=(0,n.useState)(!1),{data:g,loading:w,onSubmit:b,error:y}=function(){let{updateSubscriptions:e}=U(),{isMutating:t,trigger:l,data:a,error:r,reset:i}=(0,k.A)("newsletter/signup/daily-newsletters-1",(e,t)=>H("daily-newsletters-1",t));return{loading:t,error:r,data:a,onSubmit:(0,n.useCallback)(async t=>{let a=await l(t);return a.sentSubscriptions&&e(a.sentSubscriptions),a},[l,e]),onReset:i}}(),C=d.get("cm_ven"),A=null==C?void 0:C.startsWith("dnt_newsletter"),{subscriptions:_}=U(),S=(0,n.useMemo)(()=>(0,z.C)(_,O.rn),[_]),M=(0,n.useCallback)(async e=>{e.preventDefault(),!w&&m.trim()&&p&&(f(!0),await b({email:m,location:p,locale:c,isAnonymous:!(null==u?void 0:u.email)}))},[b,m,p,c,w,null==u?void 0:u.email]);return!v&&(null==S?void 0:S.isSubscribed)||A?null:(0,a.jsxs)("div",{style:{backgroundImage:'url("'.concat(R.src,'")'),backgroundPosition:"right top",backgroundRepeat:"no-repeat",backgroundSize:"70px"},className:"my-4 space-y-2 rounded-xl bg-white py-5 pl-5 pr-[30px] shadow-[0_3px_20px_0_rgba(181,171,162,0.5)]",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:gap-3",children:[(0,a.jsx)(B.A,{src:I.src,alt:"",className:"w-37.5 m-0",rounded:!1}),(0,a.jsx)("div",{className:"mb-1.5 hidden min-h-[24px] min-w-[2px] bg-black sm:block"}),(0,a.jsx)("div",{className:"text-lg font-semibold",children:"Weather in your inbox"})]}),(null==g?void 0:g.status)==="success"?(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(r.A,{className:"h-6 w-6 text-green-500"}),(0,a.jsx)("div",{className:"text-sm text-gray-700",children:(0,a.jsx)("p",{children:"You are subscribed to the Morning Brief newsletter."})})]}):(0,a.jsxs)("form",{onSubmit:M,className:"flex flex-1 flex-col items-end gap-4 pt-4 lg:flex-row",children:[(0,a.jsx)(T,{id:"email",required:!0,type:"email",placeholder:"Email",className:"h-12",value:m,onChange:e=>h(e.target.value),error:!!(null==g?void 0:g.emailError),disabled:!!(null==u?void 0:u.email)}),(0,a.jsx)(N,{label:"Forecast Location",placeholder:"Search City or Zip Code",className:"h-12 items-center text-sm",location:p,onChangeLocation:x}),(0,a.jsx)("div",{children:(0,a.jsxs)(o.$n,{type:"submit",className:"flex h-12 items-center gap-1 text-nowrap",disabled:w||!(m&&p),children:[(0,a.jsx)("span",{children:"Sign Up"}),w&&(0,a.jsx)(i.A,{className:"animate-spin"})]})})]}),y&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,a.jsx)(s.A,{className:"h-6 w-6 text-red-500"}),(0,a.jsx)("div",{className:"text-sm",children:"Failed to subscribe, please try again."})]}),(null==g?void 0:g.status)==="error"&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,a.jsx)(s.A,{className:"h-6 w-6 text-red-500"}),(0,a.jsx)("div",{className:"text-sm",children:null!=(t=g.emailError)?t:g.error})]}),(0,a.jsx)(E,{})]})};V.displayName="MorningBriefBlock";let G=V},54512:(e,t,l)=>{"use strict";l.r(t),l.d(t,{ContentMediaBlock:()=>c,default:()=>u});var a=l(66695),n=l(42302),r=l(88504),i=l(64070),s=l(86028),o=l(82692),d=l(24765);let c=e=>{let{contentQuery:t,limit:l="4",title:c="Trending",ctaText:u="More Stories",ctaLink:m="/",showCategory:h}=e,p=(null==t?void 0:t.mergedContent)||[];if(!(0,n.J)(p))return null;let x="not-prose mx-auto w-full max-w-5xl",v=p.slice(0,Number(l));if(v.every(e=>"image"===e.contentType)){let e=v.map(e=>({id:e.id,url:e.overrideThumbnail||e.thumbnail||"",filename:e.overrideTitle||"",caption:e.overrideDescription||e.description||"",seo:{altText:e.overrideTitle||e.title},createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}));return(0,a.jsx)("section",{className:x,children:(0,a.jsx)(o.A,{id:"content-media-slideshow-".concat(Math.random().toString(36).substring(2,9)),assets:e,allSlides:e,slides:[],totalAssets:e.length,rounded:!0,sendTrackString:()=>{},blockType:"Slideshow"})})}return(0,a.jsxs)("section",{className:(0,i.cn)("@container rounded-xl bg-white p-5",x),children:[(0,a.jsx)("h2",{className:"not-prose mb-4 text-2xl font-bold",children:c}),(0,a.jsx)("div",{className:"@md:grid-cols-2 @lg:grid-cols-4 grid grid-cols-1 gap-4",children:v.map(e=>{var t;let l=e.overrideTitle||e.title,n=e.overrideThumbnail||e.thumbnail||"/placeholder.svg",r=(null==(t=e.url)?void 0:t.includes("video"))||!1,i=e.category||"Weather News";return(0,a.jsx)(s.S,{heading:h?i:void 0,description:l,href:e.url,imageUrl:n,showIcon:r,imageWrapClassName:"mb-2",dir:"col"},e.id)})}),(0,a.jsx)("div",{className:"mt-4 text-right",children:(0,a.jsx)(d.$n,{asChild:!0,className:"rounded bg-gray-900 px-4 py-2 text-sm font-medium text-white hover:bg-gray-800",children:(0,a.jsx)(r.default,{href:null!=m?m:"/",children:u})})})]})},u=c},62974:(e,t,l)=>{"use strict";t.vt=void 0,t.v1=o;let a=l(14183),n=l(54435),r=l(71744),i=l(1827),s=l(16774);async function o(e){let l=(0,a.getDailyForecastUrlConfig)(e),i=(0,n.urlFrom)(l),s=await fetch(i,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:1800}}),o=await (0,r.handleFetchResponse)(s);return(0,t.vt)(o)}t.vt=(0,i.createTransformer)((e,t,l)=>{var a,n,r,i,o,d,c,u,m,h,p,x,v,f,g,w,b,y,j,N,C,T,A,_;return{calendarDayTemperatureMax:null!=(n=e.calendarDayTemperatureMax)?n:0,calendarDayTemperatureMin:null!=(r=e.calendarDayTemperatureMin)?r:0,dayOfWeek:null!=(i=e.dayOfWeek)?i:"",expirationTimeUtc:null!=(o=e.expirationTimeUtc)?o:0,moonPhase:null!=(d=e.moonPhase)?d:"",moonPhaseCode:null!=(c=e.moonPhaseCode)?c:s.MoonPhaseCode.NEW,moonPhaseDay:null!=(u=e.moonPhaseDay)?u:0,moonriseTimeLocal:null!=(m=e.moonriseTimeLocal)?m:"",moonriseTimeUtc:null!=(h=e.moonriseTimeUtc)?h:0,moonsetTimeLocal:null!=(p=e.moonsetTimeLocal)?p:"",moonsetTimeUtc:null!=(x=e.moonsetTimeUtc)?x:0,narrative:null!=(v=e.narrative)?v:"",qpf:null!=(f=e.qpf)?f:0,qpfSnow:null!=(g=e.qpfSnow)?g:0,sunriseTimeLocal:null!=(w=e.sunriseTimeLocal)?w:"",sunriseTimeUtc:null!=(b=e.sunriseTimeUtc)?b:0,sunsetTimeLocal:null!=(y=e.sunsetTimeLocal)?y:"",sunsetTimeUtc:null!=(j=e.sunsetTimeUtc)?j:0,temperatureMax:null!=(N=e.temperatureMax)?N:0,temperatureMin:null!=(C=e.temperatureMin)?C:0,validTimeLocal:null!=(T=e.validTimeLocal)?T:"",validTimeUtc:null!=(A=e.validTimeUtc)?A:0,daypart:null!=(_=null==l||null==(a=l.daypart)?void 0:a[t])?_:{cloudCover:[],dayOrNight:[],daypartName:[],iconCode:[],iconCodeExtend:[],narrative:[],precipChance:[],precipType:[],qpf:[],qpfSnow:[],qualifierCode:[],qualifierPhrase:[],relativeHumidity:[],snowRange:[],temperature:[],temperatureHeatIndex:[],temperatureWindChill:[],thunderCategory:[],thunderIndex:[],uvDescription:[],uvIndex:[],windDirection:[],windDirectionCardinal:[],windPhrase:[],windSpeed:[],wxPhraseLong:[],wxPhraseShort:[]}}})},64263:(e,t,l)=>{"use strict";l.d(t,{j:()=>n,w:()=>r});var a=l(37811);let n=e=>{var t,l,n,r;let i,s=null==(t=null!=(l=a.env.VERCEL_TARGET_ENV)?l:"production")?void 0:t.toLowerCase();a.env.VERCEL_TARGET_ENV,"preview"!==s&&a.env.VERCEL_TARGET_ENV_URL;let o=null!=(n=a.env.VERCEL_URL)?n:"wx-next-1kyir1acd.vercel.weather.com",d=null!=(r=a.env.VERCEL_TARGET_ENV_URL)?r:"weather.com",c="true"===a.env.NEXT_DEV_SERVER_INSECURE||"true"===a.env.NEXT_PUBLIC_NEXT_DEV_SERVER_INSECURE;switch(s){case"preview":i="https://".concat(o);break;case"development":i=c?"http://".concat(d):"https://".concat(d);break;default:i="https://".concat(d)}return e?new URL(e,i).toString():i},r=e=>{var t,l;a.env.VERCEL_TARGET_ENV_PRODUCTION_URL;let n=null!=(t=a.env.VERCEL_TARGET_ENV_PRODUCTION_URL)?t:"weather.com",r=null!=(l=a.env.VERCEL_PROJECT_PRODUCTION_URL)?l:"wxnext.weather.com",i="https://".concat(null!=n?n:r);return e?new URL(e,i).toString():i}},68543:(e,t,l)=>{"use strict";l.r(t),l.d(t,{TaboolaBlock:()=>x,default:()=>v});var a=l(66695),n=l(97839),r=l(92071),i=l(64263),s=l(98660),o=l(64070),d=l(12814),c=l(20108),u=l(4901),m=l(87250);let h=function(){let{DISCONNECTED_user:e}=(0,u.J)(),[t,l]=(0,n.useState)(!1),a=(0,c.md)(m.W);return(0,n.useEffect)(()=>{a&&l((()=>{try{var e,t,l,a;if(void 0!==(null==(e=window)?void 0:e.DprSdk)){let e=null==(l=window)||null==(t=l.DprSdk)?void 0:t.getFeatureFlags();return null==(a=null==e?void 0:e.taboola)||a}return!0}catch(e){return!0}})())},[a]),t&&!(null==e?void 0:e.isUserPremium)},p=(()=>{let e="",t=!1;return()=>({pushTaboolaCommand:(0,n.useCallback)((l,a,n)=>{window._taboola=window._taboola||[],a!==e&&(""===e||t||(window._taboola.push({notify:"newPageLoad"}),t=!0),e=a,t=!1),window._taboola.push({[n]:"auto",url:a}),window._taboola.push(l),window._taboola.push({flush:!0})},[])})})(),x=e=>{let{taboolaId:t,taboolaUiMode:l,placementName:c,targetType:u,title:m="",pageType:x,taboolaType:v,showTaboola:f=!0}=e,g=(0,n.useRef)(null),w=h(),[b,y]=(0,n.useState)("pending"),j=(0,r.usePathname)(),{isTaboolaLoaded:N}=(()=>{let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(e)return;if(document.getElementById("tb_loader_script"))return void t(!0);window._taboola=window._taboola||[],window.performance&&"function"==typeof window.performance.mark&&window.performance.mark("tbl_ic");let l=document.createElement("script");l.src="//cdn.taboola.com/libtrc/theweatherchannel/loader.js",l.id="tb_loader_script",l.async=!0,l.onload=()=>{t(!0)},l.onerror=()=>{console.error("Failed to load Taboola script.")},document.body.appendChild(l)},[e]),{isTaboolaLoaded:e}})(),C=w&&f,{pushTaboolaCommand:T}=p(),A=(0,n.useMemo)(()=>{let e=(0,i.j)();return"".concat(e).concat(j||"")},[j]),_="empty"!==b,S=(0,n.useMemo)(()=>{let e="taboola-below-content-thumbnails---video"===t||"taboola-below-content-thumbnails-video"===t;return{container:_?"generic"!==v?"wx-media-object gradient-overlay thirdparty-feed border":e?"gap-2 py-0 md:rounded-md max-sm:rounded-none":"gap-2 py-5":"hidden",headerContainer:e?"mx-4 px-0 pt-6 max-sm:border-t max-sm:border-gray-200":"px-4",header:e?"text-[20px] font-semibold":"text-xl font-semibold",contentContainer:"z-40 px-4"}},[t,v,_]);return((0,n.useEffect)(()=>{C&&N&&"pending"===b&&T({mode:l,container:t,placement:c,target_type:u},A,x)},[C,N,b,T,t,l,c,u,A,x]),(0,n.useEffect)(()=>{let e=g.current;if(!e||!C||!N)return;let t=new MutationObserver((t,l)=>{try{e.hasChildNodes()?(y("populated"),l.disconnect()):"pending"!==b&&(y("empty"),l.disconnect())}catch(e){console.warn("Error in TaboolaBlock content observer",e)}});return t.observe(e,{childList:!0}),e.hasChildNodes()&&(y("populated"),t.disconnect()),()=>t.disconnect()},[C,N,b]),C&&N)?"invisible"===v?(0,a.jsx)("div",{id:t,ref:g}):(0,a.jsxs)("section",{className:"@container",children:[(0,a.jsx)(s.DebugCollector,{componentName:"TaboolaBlock",data:{props:{taboolaId:t,taboolaUiMode:l,placementName:c,targetType:u,pageUrl:A,pageType:x,taboolaContentState:b,shouldShow:_}}}),"generic"===v?(0,a.jsxs)(d.Zp,{className:S.container,children:[m&&_&&(0,a.jsx)(d.aR,{className:S.headerContainer,children:(0,a.jsx)("h2",{className:S.header,children:m})}),(0,a.jsx)(d.Wu,{className:(0,o.cn)(S.contentContainer),children:(0,a.jsx)("div",{id:t,className:"bg-none",ref:g})})]}):(0,a.jsxs)("div",{className:S.container,children:[m&&_&&(0,a.jsx)("header",{"aria-label":"Taboola",className:"panel-heading mb-2",children:(0,a.jsx)("h2",{"data-testid":"taboolaHeading",className:"text-lg font-medium",children:m})}),(0,a.jsx)("div",{id:t,className:"flex min-h-[300px] w-full items-center justify-center",ref:g})]})]}):null},v=x},68960:(e,t,l)=>{"use strict";l.r(t),l.d(t,{CTABlock:()=>r,default:()=>i});var a=l(66695);l(97839);var n=l(36697);let r=e=>{let{title:t,subTitle:l,subText:r,ctaStyle:i,media:s,buttonText:o,linkUrl:d,openInNewTab:c,backgroundColor:u}=e,m=void 0!=s.url?s.url:"string"==typeof s?s:null;return(0,a.jsx)("section",{className:"@container not-prose mx-auto w-full max-w-4xl rounded-md ".concat({white:"bg-white","light-gray":"bg-gray-100","brand-blue":"bg-blue-500",accent:"bg-accent"}[u||"white"]," p-5 shadow-2xl"),children:(0,a.jsx)("div",{className:"cta-block ".concat(i),children:(0,a.jsxs)("div",{className:"cta-content text-black",children:[(0,a.jsx)("h2",{className:"mb-6 text-2xl font-bold",children:t}),m&&(0,a.jsx)("a",{href:d,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,className:"mb-4 block overflow-hidden rounded-lg",children:(0,a.jsx)("div",{className:"relative w-full",children:(0,a.jsx)(n.A,{src:m,alt:t})})}),l&&(0,a.jsx)("h2",{className:"mb-2 text-lg font-bold",children:l}),r&&(0,a.jsx)("p",{className:"mb-4",children:r}),"standard"===i&&(0,a.jsx)("div",{className:"mt-4 flex justify-end",children:(0,a.jsx)("a",{href:d,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,className:"inline-block rounded-lg bg-black px-6 py-3 text-white transition-colors hover:bg-gray-800",children:o||"Learn More"})})]})})})},i=r},69266:(e,t)=>{"use strict";var l;Object.defineProperty(t,"__esModule",{value:!0}),t.InsightType=void 0,function(e){e.ALL="all",e.BREAKING_VIDEO_INSIGHT="breakingVideoInsight",e.CHANCE_PRECIP_INSIGHT="chancePrecipInsight",e.SUNNY_DAY_INSIGHT="sunnyDayInsight",e.POLLEN_INSIGHT="pollenInsight",e.TEMPERATURE_CHANGE_INSIGHT="temperatureChangeInsight",e.SUN_INSIGHT="sunInsight",e.SHORT_TERM_PRECIP_INSIGHT="shortTermPrecipInsight",e.THUNDERSTORM_SOON_INSIGHT="thunderstormSoonInsight",e.SEVERE_STORM_INSIGHT="severeStormInsight"}(l||(t.InsightType=l={}))},72460:(e,t,l)=>{"use strict";function a(e){return"string"!=typeof e}function n(e){return"object"==typeof e&&null!==e&&"url"in e&&("mimeType"in e||"seo"in e&&"altText"in e.seo)}l.d(t,{QY:()=>a,bt:()=>n})},73925:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSunWeatherAlertHeadlinesUrlConfig=function(e){let{geocode:t,countryCode:l,areaId:a,adminDistrictCode:n,language:r}=e,i={format:"json",language:r,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return t&&(i.geocode=t),l&&(i.countryCode=l),a&&(i.areaId=a),n&&(i.adminDistrictCode=n),{host:"api.weather.com",protocol:"https",pathname:"/v3/alerts/headlines",query:i}},t.getSunWeatherAlertDetailUrlConfig=function(e){let{detailKey:t,language:l}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/alerts/detail",query:{alertId:t,format:"json",language:l,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},77339:(e,t,l)=>{"use strict";t.p_=i;let a=l(54435),n=l(71744),r=l(17493);async function i(e){let t=(0,r.getEmailPreferencesSetUrlConfig)(),l=(0,a.urlFrom)(t),i=JSON.stringify(function(e){let{subscriptions:t,email:l,mParticleId:a}=e,n={};return t&&(n.subscriptions=t),l&&(n.email=l),a&&(n.mParticleId=a),n}(e)),s=await fetch(l,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:i});if(200===s.status||400===s.status){let e=await s.json();return console.log({json:e}),e}return(0,n.handleFetchResponse)(s)}},78784:(e,t,l)=>{"use strict";l.r(t),l.d(t,{SlideshowBlock:()=>s,default:()=>o});var a=l(66695);l(97839);var n=l(82692),r=l(72460),i=l(42302);let s=e=>{let{slides:t=[],settings:l={},id:s}=e;if(!(0,i.J)(t))return null;let o=[];for(let e of t){var d;if(!e.imageAsset){console.error("Slide missing imageAsset:",e);continue}let t=(0,r.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||t.caption||"",altText:e.imageTitle&&""!==e.imageTitle.trim()?e.imageTitle:(null==(d=t.seo)?void 0:d.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}};o.push(l)}return 0===o.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:s||"slideshow-".concat(Math.random().toString(36).substring(2,9)),assets:o.slice(0,20),allSlides:o,totalAssets:o.length,rounded:(null==l?void 0:l.rounded)||!1,blockType:"Slideshow",slides:t,settings:l,sendTrackString:()=>{}})},o=s},82692:(e,t,l)=>{"use strict";l.d(t,{A:()=>m});var a=l(66695),n=l(97839);let r={src:"/_next/static/media/SlideshowIcon.2da11b0d.png"};var i=l(36697),s=l(73237),o=l(20385),d=l(71274);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;let{id:l,assets:n,currentSlideIndex:u,totalAssets:m,previous:h,next:p,sendTrackString:x,rounded:v=!1}=e;if(!n.length||u=n.length)return null;let f=n[u],g="".concat(u+1,"/").concat(m),w=0===u,b=u===m-1;return(0,a.jsxs)("figure",{id:l,className:"relative mb-4 mt-4 w-full max-w-full",children:[(0,a.jsx)("div",{className:v?"overflow-hidden rounded-[16px]":"",children:(0,a.jsx)("div",{className:"relative w-full ".concat(v?"rounded-[16px]":""),children:(0,a.jsx)("div",{className:"relative w-full ".concat(v?"rounded-[16px]":""),style:{paddingTop:"56.25%"},children:(0,a.jsx)(i.A,{className:"absolute left-0 top-0 h-full w-full object-cover",src:f.url||"",alt:(null==(t=f.seo)?void 0:t.altText)||"",rounded:v,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)(i.A,{src:r.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)(s.EY,{variant:"Body.S",color:"primary",children:g})}),(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:()=>{x("wxnode_slideshow_link-previous"),h()},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)(o.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:b,onClick:()=>{x("wxnode_slideshow_link-next"),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 right",children:(0,a.jsx)(d.A,{className:"h-5 w-5 ".concat(b?"text-gray-200":"text-blue-500")})})})})]})}),f.filename&&!c(f.filename)&&(0,a.jsx)(s.EY,{variant:"Title.S",color:"primary",elementType:"h3",className:"mb-1 mt-0",children:f.filename}),f.caption&&(0,a.jsx)(s.EY,{variant:"Body.S",color:"primary",className:"py-1 pb-0 ".concat(f.filename&&!c(f.filename)?"":"mt-0 pt-0"),children:f.caption}),(0,a.jsx)("div",{className:"border-b border-gray-200 py-2"})]})})]})},m=e=>{let{id:t,assets:l=[],allSlides:r=[],totalAssets:i=r.length||0,loadNextSlideshowPage:s,sendTrackString:o=()=>{},rounded:d=!1}=e,c=(0,n.useId)(),m=t||"slideshow-".concat(c),h=r.length>0,[p,x]=(0,n.useState)(0),[v,f]=(0,n.useState)(1),[g,w]=(0,n.useState)(1),[b,y]=(0,n.useState)(h?r.slice(0,20):l),j=(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;x(p-1),f(e)}},[p]),C=(0,n.useCallback)(()=>{if(p+1=g){let e=20*v;if(e-3

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

{if(j(document.querySelector("#".concat(m))))switch(e.key){case"ArrowLeft":N();break;case"ArrowRight":C()}},[m,j,N,C]);return(0,n.useEffect)(()=>(document.body.addEventListener("keydown",T),()=>{document.body.removeEventListener("keydown",T)}),[T]),(0,n.useEffect)(()=>{h&&0===b.length&&y(r.slice(0,20))},[h,r,b.length]),(0,a.jsx)(u,{id:m,assets:h?b:l,currentSlideIndex:p,totalAssets:i,previous:N,next:C,sendTrackString:o,rounded:d})}},83160:(e,t,l)=>{"use strict";t.lh=void 0,t.$c=d;let a=l(14183),n=l(54435),r=l(71744),i=l(1827),s=l(16774),o=l(81402);async function d(e){let l=(0,a.getHourlyForecastUrlConfig)(e),i=(0,n.urlFrom)(l),s=await fetch(i,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}}),o=await (0,r.handleFetchResponse)(s);return(0,t.lh)(o)}t.lh=(0,i.createTransformer)(e=>{var t,l,a,n,r,i,d,c,u,m,h,p,x,v,f,g,w,b,y,j,N,C,T,A,_,S,E,I,R;return{cloudCover:null!=(t=e.cloudCover)?t:0,dayOfWeek:null!=(l=e.dayOfWeek)?l:"",dayOrNight:null!=(a=e.dayOrNight)?a:o.DayOrNight.DAY,expirationTimeUtc:null!=(n=e.expirationTimeUtc)?n:0,iconCode:null!=(r=e.iconCode)?r:0,iconCodeExtend:null!=(i=e.iconCodeExtend)?i:0,precipChance:null!=(d=e.precipChance)?d:0,precipType:null!=(c=e.precipType)?c:s.PrecipType.RAIN,pressureMeanSeaLevel:null!=(u=e.pressureMeanSeaLevel)?u:0,qpf:null!=(m=e.qpf)?m:0,qpfSnow:null!=(h=e.qpfSnow)?h:0,relativeHumidity:null!=(p=e.relativeHumidity)?p:0,temperature:null!=(x=e.temperature)?x:0,temperatureDewPoint:null!=(v=e.temperatureDewPoint)?v:0,temperatureFeelsLike:null!=(f=e.temperatureFeelsLike)?f:0,temperatureHeatIndex:null!=(g=e.temperatureHeatIndex)?g:0,temperatureWindChill:null!=(w=e.temperatureWindChill)?w:0,uvDescription:null!=(b=e.uvDescription)?b:o.UVDescription.LOW,uvIndex:null!=(y=e.uvIndex)?y:0,validTimeLocal:null!=(j=e.validTimeLocal)?j:"",validTimeUtc:null!=(N=e.validTimeUtc)?N:0,visibility:null!=(C=e.visibility)?C:0,windDirection:null!=(T=e.windDirection)?T:0,windDirectionCardinal:null!=(A=e.windDirectionCardinal)?A:o.WindDirectionCardinal.NORTH,windGust:null!=(_=e.windGust)?_:null,windSpeed:null!=(S=e.windSpeed)?S:0,wxPhraseLong:null!=(E=e.wxPhraseLong)?E:"",wxPhraseShort:null!=(I=e.wxPhraseShort)?I:"",wxSeverity:null!=(R=e.wxSeverity)?R:0}})},85670:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromCompactResponse=function(e){if(!e)return null;let t=Object.keys(e);return t.length&&t[0]&&void 0!==e[t[0]]&&Array.isArray(e[t[0]])?Array.from({length:e[t[0]].length},(l,a)=>{let n={};return t.forEach(t=>{let l=e[t];void 0!==l&&Array.isArray(l)&&a{"use strict";l.d(t,{S:()=>v});var a=l(66695),n=l(36697),r=l(97839),i=l(89010);let s=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Play"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M5.5 11.5A.5.5 0 0 1 5 11V5a.5.5 0 0 1 .724-.447l6 3a.5.5 0 0 1 0 .894l-6 3a.5.5 0 0 1-.224.053M6 5.809v4.382L10.382 8z"}),(0,a.jsx)("path",{d:"M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2m0-1a7 7 0 1 0 0 14A7 7 0 0 0 8 1"})]})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:s,...e}));o.displayName="PlayOutline";let d=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Book"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M13 5H9.5v1H13zM13 7.5H9.5v1H13zM13 10H9.5v1H13zM6.5 5H3v1h3.5zM6.5 7.5H3v1h3.5zM6.5 10H3v1h3.5z"}),(0,a.jsx)("path",{d:"M14 2.5H2a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-9a1 1 0 0 0-1-1m-12 1h5.5v9H2zm6.5 9v-9H14v9z"})]})]})}),c=r.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:d,...e}));c.displayName="Book";var u=l(88504),m=l(64070),h=l(73237);let p={video:o,article:c},x={col:"flex-col",row:"flex-row","col-reverse":"flex-col-reverse","row-reverse":"flex-row-reverse"},v=e=>{let{heading:t,description:l,content:r,href:i,target:s,imageUrl:o,altText:d,onClick:c,className:v,imageWrapClassName:f,imageClassName:g,contentClassName:w,badge:b,icon:y="video",showIcon:j,iconClassName:N,overlayClassName:C,dir:T="row"}=e,A=p[y],_=!!(t||l||r),S=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:(0,m.cn)("relative aspect-video w-full overflow-hidden rounded-md",f),children:[(0,a.jsx)(n.A,{src:o,alt:d||l||"",fill:!0,className:(0,m.cn)("absolute left-0 top-0 h-full w-full object-cover",g),sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 25vw"}),(0,a.jsx)("div",{className:(0,m.cn)("absolute inset-0 flex items-center justify-center",C),children:j&&A&&(0,a.jsx)(A,{className:(0,m.cn)("size-10 text-white",N)})}),b&&(0,a.jsx)("div",{className:"absolute bottom-2 right-2 rounded-full bg-black/70 px-[10px] py-2 text-[14px] leading-none text-white md:bottom-1 md:right-1 md:p-1 md:text-[10px]",children:b})]}),_&&(0,a.jsx)("div",{className:w,children:r||(0,a.jsxs)(a.Fragment,{children:[t&&(0,a.jsx)(h.Ay,{elementType:"span",variant:"Title.S",className:"mb-1 text-xs",color:"placeholder",children:t}),l&&(0,a.jsx)(h.Ay,{elementType:"h2",className:"mb-1 font-normal leading-tight",children:l})]})})]}),E=(0,m.cn)("not-prose font-normal text-gray-900 no-underline hover:no-underline flex",x[T],v);return!c&&i?(0,a.jsx)(u.default,{className:E,href:i,target:s,children:S}):(0,a.jsx)("div",{className:E,onClick:c,children:S})}},87189:(e,t,l)=>{"use strict";l.d(t,{h:()=>m});var a=l(66695),n=l(97839),r=l(64070),i=l(5498);let s={autoplayadsmuted:!1,client:"googima",vpaidcontrols:!0};var o=l(80917),d=l(33058),c=l.n(d);let u=(0,o.h)("JWPlayer"),m=e=>{var t;let{playlist:l,options:o={},setupParams:d={},events:m=[],className:h=""}=e,p="player-".concat((0,n.useId)()),{playerId:x="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:s}:{},...l?{displaytitle:!0,displaydescription:!0}:{displaytitle:!1,displaydescription:!1}}})(d),...o}),[l,d,o]),f=(0,n.useRef)(null),g=(0,n.useRef)(!1),w=null==l||null==(t=l[0])?void 0:t.file,[b,y]=(0,n.useState)(w?"loading":"error");return(0,n.useEffect)(()=>{if(g.current||!("jwplayer"in window)||"ready"!==b||!w)return;let e=window.jwplayer(p);f.current=e,g.current=!0,u.info("initialized player"),e.setup(v),m.forEach(t=>{let{eventName:l,callback:a}=t;e.on(l,t=>{a({event:t,player:e})}),u.lifecycle("Registered event handler for ".concat(l))})},[v,m,w,p,b]),(0,n.useEffect)(()=>()=>{if(f.current)try{f.current.remove(),f.current=null,g.current=!1}catch(e){u.error("Error removing JW Player",e)}},[]),(0,a.jsxs)("div",{children:[w&&(0,a.jsx)(i.default,{src:"https://cdn.jwplayer.com/libraries/".concat(x,".js"),strategy:"afterInteractive",onLoad:()=>y("ready"),onReady:()=>y("ready"),onError:()=>y("error")}),(0,a.jsx)("div",{className:(0,r.cn)("overflow-hidden",c().jwplayerContainer,h),children:"loading"===b&&w?(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"===b?(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:p,className:"aspect-video w-full bg-black"})})]})}},88725:(e,t,l)=>{"use strict";l.d(t,{A:()=>m});var a=l(66695);l(97839);var n=l(15400),r=l(47651),i=l(54861),s=l(26404),o=l(38051),d=l(24765),c=l(92071),u=l(64070);let m=e=>{let{location:t,className:l}=e,m=(0,c.useParams)(),h=null==m?void 0:m.locale,{data:p,error:x,isLoading:v}=(0,o.Ay)((null==t?void 0:t.geocode)?["alerts",t.geocode]:null,e=>{let[t,l]=e;return(0,n.Sn)({geocode:l,language:h})},{revalidateOnFocus:!1,dedupingInterval:6e4}),f=(null==p?void 0:p.alerts)&&p.alerts.length>0?p.alerts[0]:null,g=f?(()=>{if(!f)return null;let{productIdentifier:e,phenomena:t,significance:l}=f;if(!e||!t||!l)return null;let a=(0,r.F)({productIdentifier:e,phenomena:t,significance:l}),n=(0,i.t)({productIdentifier:e||"",phenomena:t,significance:l}),s={1:{icon:"#fff",fill:"#ba0d00",border:"#f0f0f0",textColor:"#FFFFFF",backgroundColor:"#ba0d00",buttonBackgroundColor:"#ba0d00"},2:{icon:"#000",fill:"#e6731f",border:"#f0f0f0",textColor:"#ffffff",backgroundColor:"#252422cc",buttonBackgroundColor:"#ffffff1a"},3:{icon:"#000",fill:"#ebbb02",border:"#f0f0f0",textColor:"#ffffff",backgroundColor:"#252422cc",buttonBackgroundColor:"#ffffff1a"},4:{icon:"#fff",fill:"#a51ccb",border:"#f0f0f0",textColor:"#FFFFFF",backgroundColor:"#252422cc",buttonBackgroundColor:"#ffffff1a"},severe:{icon:"#fff",fill:"#ba0d00",border:"#f0f0f0",textColor:"#FFFFFF",backgroundColor:"#ba0d00",buttonBackgroundColor:"#ba0d00"}};return s[n?"severe":a]||s[4]})():null,w=f?(0,r.F)({productIdentifier:f.productIdentifier,phenomena:f.phenomena,significance:f.significance}):null,b=f?(0,i.t)({productIdentifier:f.productIdentifier,phenomena:f.phenomena,significance:f.significance}):null;return v||x||!f?null:(0,a.jsxs)("div",{className:(0,u.cn)("flex items-center gap-4 rounded-sm px-2 py-2 text-sm",l),style:{backgroundColor:null==g?void 0:g.backgroundColor,color:null==g?void 0:g.textColor},role:"alert","aria-live":"polite",children:[(0,a.jsxs)("div",{className:"flex flex-1 gap-2",children:[f&&(0,a.jsx)(s.AlertIcon,{productIdentifier:f.productIdentifier,phenomena:f.phenomena,significance:f.significance,className:"h-4 w-4 items-start","aria-hidden":"true"}),(0,a.jsx)("span",{className:"uppercase",children:f.eventDescription})]}),p&&p.alerts.length>1&&(0,a.jsxs)(d.$n,{variant:"outline",size:"sm",style:{backgroundColor:null==g?void 0:g.buttonBackgroundColor,...1===w||b?{outline:"solid 1px #ffffff"}:{}},className:"rounded-xs flex h-6 items-center justify-center border-0 px-2 py-2 text-xs text-white hover:bg-transparent hover:text-white","aria-label":"View ".concat(p.alerts.length-1," more alerts"),children:["+",p.alerts.length-1," MORE"]})]})}},89834:(e,t)=>{"use strict";t.J3=t.Ny=t.rn=void 0,t.rn="daily-newsletters-1",t.Ny="marketing-emails-1",t.J3=[{subscriptionGroupName:t.rn,subscriptionGroupId:"",isSubscribed:!1,attributes:{location:""}},{subscriptionGroupName:t.Ny,subscriptionGroupId:"",isSubscribed:!1}]},93323:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSunV3WeatherInsightsUrlConfig=function(e){let{geocode:t,placeId:l,postalKey:n,insightType:r=a.InsightType.ALL,units:i,language:s,par:o}=e,d={format:"json",units:i,language:s,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061",insightType:r,par:o};return t?d.geocode=t:l?d.placeid=l:n&&(d.postalKey=n),{host:"api.weather.com",protocol:"https",pathname:"/v3/insights",query:d}};let a=l(69266)},98660:(e,t,l)=>{"use strict";l.r(t),l.d(t,{DebugCollector:()=>i});var a=l(97839),n=l(34851);let r=(0,l(80917).h)("DebugCollector");function i(e){let{componentName:t,data:l,page:i,onUpdateData:s,onSetPageData:o}=e,{updateComponentData:d,setPageData:c}=(0,n.K)(),u=(0,a.useRef)(!1),m=s||d,h=o||c;return(0,a.useEffect)(()=>{if(l)return r.lifecycle("Collecting component data for ".concat(t),{dataKeys:Object.keys(l),hasPerformance:!!l.performance,hasContext:!!l.context}),m(t,{...l,_collectedAt:new Date().toISOString()}),()=>{r.lifecycle("Cleaning up data for ".concat(t)),m(t,null)}},[t,l,m]),(0,a.useEffect)(()=>{i&&!u.current&&(r.lifecycle("Setting page metadata",{title:i.title,assetName:i.assetName,collection:i.collection}),h({...i,_updatedAt:new Date().toISOString()}),u.current=!0)},[i,h]),null}}}]);