(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9043],{53:(e,l)=>{"use strict";var t,a,r,i,n;Object.defineProperty(l,"__esModule",{value:!0}),l.PrecipIntensityCode=l.PrecipTypeCode=l.ThunderCategory=l.PrecipType=l.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"}(t||(l.MoonPhaseCode=t={})),function(e){e.RAIN="rain",e.SNOW="snow",e.PRECIP="precip"}(a||(l.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"}(r||(l.ThunderCategory=r={})),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"}(i||(l.PrecipTypeCode=i={})),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"}(n||(l.PrecipIntensityCode=n={}))},113:(e,l,t)=>{"use strict";t.r(l),t.d(l,{ImageBlock:()=>d,default:()=>c});var a=t(62024),r=t(26404),i=t(80891),n=t(51707),s=t(10436);let o=r.forwardRef((e,l)=>{let{src:t,alt:r,caption:i,credit:o,width:d=320,height:c=180,shadow:u=!0,rounded:m=!0,className:h,sizes:x,priority:v,imageAttributes:p}=e,g=!!(i||o);return(0,a.jsxs)("figure",{ref:l,className:(0,n.cn)(h),children:[(0,a.jsx)(s._,{src:t,alt:r,width:d,height:c,shadow:u,rounded:m,sizes:x,priority:v,...p}),g&&(0,a.jsxs)("figcaption",{className:"mt-2 text-sm leading-tight",children:[i&&(0,a.jsx)("p",{children:i}),o&&(0,a.jsxs)("p",{className:"m-0 text-gray-500",children:["(",o,")"]})]})]})});o.displayName="Figure";let d=e=>{var l,t;let{imageType:r,internalImageId:s,externalImageUrl:d,controls:c,altText:u,isPriorityImage:m,imageAttributes:h,linkUrl:x}=e;if(!r||!s&&!d)return(0,a.jsx)("div",{className:"text-center text-red-500",children:"Error: Missing data for the image block."});let v="internal"===r&&(e=>"object"==typeof e&&null!==e&&"url"in e)(s),p=v?(null==s?void 0:s.url)||"":d||"",g=v?(null==s||null==(l=s.seo)?void 0:l.altText)||"":u||"",f="",y="";(null==c?void 0:c.showCaption)&&((!v||(null==c?void 0:c.useImageCaption))&&"external"!==r?v&&(f=(null==s?void 0:s.caption)||"",y=(null==s||null==(t=s.seo)?void 0:t.credit)||""):(f=(null==c?void 0:c.caption)||"",y=(null==c?void 0:c.credit)||""));let b=(0,a.jsx)(o,{src:p,alt:g,caption:f,credit:y,priority:!!m,className:(0,n.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 x?(0,a.jsx)(i.default,{href:x,target:"_blank",rel:"noopener noreferrer nofollow",children:b}):b},c=d},1133:(e,l,t)=>{"use strict";t.r(l),t.d(l,{LiveblogEntriesBlock:()=>r,default:()=>i});var a=t(62024);t(26404);let r=()=>(0,a.jsx)("div",{children:"Live Blog Entries"}),i=r},1405:(e,l)=>{"use strict";l.C=void 0,l.C=(e,l,t)=>e&&Array.isArray(e)?e.find(e=>e.subscriptionGroupName===l)||t||null:t||null},3109:(e,l,t)=>{"use strict";t.r(l),t.d(l,{BuyButtonBlock:()=>n,default:()=>s});var a=t(62024);t(26404);var r=t(68993),i=t(80891);let n=e=>{let{label:l,url:t,variant:n="bg-gray-900",inline:s=!1,isAffiliate:o=!0}=e;return(0,a.jsx)("div",{className:s?"inline-block":"block",children:(0,a.jsx)(i.default,{href:t,target:"_blank",rel:o?"nofollow noopener noreferrer":"noopener",children:(0,a.jsx)(r.$n,{variant:n,inline:!1,className:"cursor-pointer whitespace-nowrap",children:l})})})},s=n},3278:(e,l,t)=>{"use strict";t.d(l,{j:()=>r,w:()=>i});var a=t(37811);let r=e=>{var l,t,r,i;let n,s=null==(l=null!=(t=a.env.VERCEL_TARGET_ENV)?t:"production")?void 0:l.toLowerCase();a.env.VERCEL_TARGET_ENV,"preview"!==s&&a.env.VERCEL_TARGET_ENV_URL;let o=null!=(r=a.env.VERCEL_BRANCH_URL)?r:"wx-next-web-git-main.vercel.weather.com",d=null!=(i=a.env.VERCEL_TARGET_ENV_URL)?i:"weather.com",c="true"===a.env.NEXT_DEV_SERVER_INSECURE||"true"===a.env.NEXT_PUBLIC_NEXT_DEV_SERVER_INSECURE;switch(s){case"preview":n="https://".concat(o);break;case"development":n=c?"http://".concat(d):"https://".concat(d);break;default:n="https://".concat(d)}return e?new URL(e,n).toString():n},i=e=>{var l,t;a.env.VERCEL_TARGET_ENV_PRODUCTION_URL;let r=null!=(l=a.env.VERCEL_TARGET_ENV_PRODUCTION_URL)?l:"weather.com",i=null!=(t=a.env.VERCEL_PROJECT_PRODUCTION_URL)?t:"wxnext.weather.com",n="https://".concat(null!=r?r:i);return e?new URL(e,n).toString():n}},8257:(e,l,t)=>{"use strict";l.lh=void 0,l.$c=h,l.eH=x;let a=t(65130),r=t(79714),i=t(4843),n=t(82806),s=t(28123),o=t(53),d=t(28123),c=t(46427),u=t(10948),m=t(63045);async function h(e){let t=(0,a.getHourlyForecastUrlConfig)(e),n=(0,r.urlFrom)(t),s=await fetch(n,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}}),o=await (0,i.handleFetchResponse)(s);return(0,l.lh)(o)}async function x(e){let[l,t]=await Promise.all([h(e),(0,u.getHourlyAirQualityForecast)({geocode:e.geocode,language:e.language,scale:m.AirQualityScale.EPA,duration:function(e){switch(e){case s.HourlyForecastDuration.SIX_HOUR:case s.HourlyForecastDuration.TWELVE_HOUR:return m.AirQualityForecastDuration.TWELVE_HOUR;case s.HourlyForecastDuration.ONE_DAY:return m.AirQualityForecastDuration.TWENTY_FOUR_HOUR;case s.HourlyForecastDuration.TWO_DAY:return m.AirQualityForecastDuration.FORTY_EIGHT_HOUR;case s.HourlyForecastDuration.THREE_DAY:case s.HourlyForecastDuration.TEN_DAY:case s.HourlyForecastDuration.FIFTEEN_DAY:default:return m.AirQualityForecastDuration.SEVENTY_TWO_HOUR}}(e.duration)}).catch(()=>null)]);var a=l,r=t;if(!r)return a;let i=new Map(r.forecast.map(e=>[e.validTimeGmt,e]));return a.map(e=>{let l=i.get(e.validTimeUtc);return l?{...e,airQualityIndex:l.airQualityIndex,airQualityCategory:l.airQualityCategory}:e})}l.lh=(0,n.createTransformer)(e=>{var l,t,a,r,i,n,s,u,m,h,x,v,p,g,f,y,b,w,j,N,C,T,A,k,S,I,_,R,M;return{cloudCover:null!=(l=e.cloudCover)?l:0,dayOfWeek:null!=(t=e.dayOfWeek)?t:"",dayOrNight:null!=(a=e.dayOrNight)?a:d.DayOrNight.DAY,expirationTimeUtc:null!=(r=e.expirationTimeUtc)?r:0,iconCode:null!=(i=e.iconCode)?i:0,iconCodeExtend:null!=(n=e.iconCodeExtend)?n:0,precipChance:null!=(s=e.precipChance)?s:0,precipType:null!=(u=e.precipType)?u:o.PrecipType.RAIN,pressureMeanSeaLevel:null!=(m=e.pressureMeanSeaLevel)?m:0,qpf:null!=(h=e.qpf)?h:0,qpfSnow:null!=(x=e.qpfSnow)?x:0,relativeHumidity:null!=(v=e.relativeHumidity)?v:0,temperature:null!=(p=e.temperature)?p:0,temperatureDewPoint:null!=(g=e.temperatureDewPoint)?g:0,temperatureFeelsLike:null!=(f=e.temperatureFeelsLike)?f:0,temperatureHeatIndex:null!=(y=e.temperatureHeatIndex)?y:0,temperatureWindChill:null!=(b=e.temperatureWindChill)?b:0,uvDescription:null!=(w=e.uvDescription)?w:d.UVDescription.LOW,uvIndex:null!=(j=e.uvIndex)?j:0,validTimeLocal:null!=(N=e.validTimeLocal)?N:"",validTimeUtc:null!=(C=e.validTimeUtc)?C:0,visibility:null!=(T=e.visibility)?T:0,windDirection:null!=(A=e.windDirection)?A:0,windDirectionCardinal:(0,c.normalizeCardinal)(null!=(k=e.windDirectionCardinal)?k:d.WindDirectionCardinal.NORTH),windGust:null!=(S=e.windGust)?S:null,windSpeed:null!=(I=e.windSpeed)?I:0,wxPhraseLong:null!=(_=e.wxPhraseLong)?_:"",wxPhraseShort:null!=(R=e.wxPhraseShort)?R:"",wxSeverity:null!=(M=e.wxSeverity)?M:0}})},8417:(e,l,t)=>{"use strict";t.d(l,{K:()=>a});let a=(e,l)=>{var t;if(!(null==l?void 0:l.file))return[];if("string"==typeof e)return(null==l?void 0:l.file)?[l]:[];let a=Array.isArray(e)?e:[];return(null==l?void 0:l.file)&&(!(a.length>0)||(null==(t=a[0])?void 0:t.file)!==(null==l?void 0:l.file))?[l,...a.filter(e=>e.file!==l.file)]:a}},9803:(e,l,t)=>{"use strict";l.Sn=s;let a=t(81896),r=t(79714),i=t(4843),n=t(21613);async function s(e){let{geocode:l,language:t="en-US"}=e,s=(0,r.urlFrom)((0,a.getSunWeatherAlertHeadlinesUrlConfig)({geocode:l,language:t})),o=await fetch(s,{headers:{"Accept-Encoding":"gzip"},cache:"no-store",next:{revalidate:0}}),d=await (0,i.handleFetchResponse)(o);return{...d,alerts:(0,n.getSortedAlerts)(d.alerts)}}},10156:(e,l,t)=>{"use strict";t.d(l,{h:()=>h});var a=t(62024),r=t(26404),i=t(51707),n=t(23504);let s={autoplayadsmuted:!1,client:"googima",vpaidcontrols:!0};var o=t(71842),d=t(96276),c=t.n(d),u=t(10436);let m=(0,o.h)("JWPlayer"),h=e=>{var l,t;let{playlist:o,options:d={},setupParams:h={},events:x=[],className:v="",placeHolder:p}=e,g="player-".concat((0,r.useId)()),{playerId:f="IdNDrRWQ"}=h,y=(0,r.useMemo)(()=>({playlist:o,...(e=>{let{ads:l=!0,showDescriptions:t=!0}=e;return{aspectratio:"16:9",autostart:!0,backgroundLoading:!0,width:"100%",mute:!1,autoPause:{pauseAds:!0,viewability:!0},captions:{backgroundOpacity:50,fontSize:14},...l?{advertising:s}:{},...t?{displaytitle:!0,displaydescription:!0}:{displaytitle:!1,displaydescription:!1}}})({...h}),...d}),[o,h,d]),b=(0,r.useRef)(null),w=(0,r.useRef)(!1),j=null==o||null==(l=o[0])?void 0:l.file,[N,C]=(0,r.useState)(j?"loading":"error");(0,r.useEffect)(()=>{if(w.current||!("jwplayer"in window)||"ready"!==N||!j)return;let e=window.jwplayer(g);b.current=e,w.current=!0,m.info("initialized player"),e.setup(y),x.forEach(l=>{let{eventName:t,callback:a}=l;e.on(t,l=>{a({event:l,player:e})}),m.lifecycle("Registered event handler for ".concat(t))})},[y,x,j,g,N]),(0,r.useEffect)(()=>()=>{if(b.current)try{b.current.remove(),b.current=null,w.current=!1}catch(e){m.error("Error removing JW Player",e)}},[]);let T=p?null==o||null==(t=o[0])?void 0:t.image:"";return(0,a.jsxs)("div",{children:[j&&(0,a.jsx)(n.default,{src:"https://cdn.jwplayer.com/libraries/".concat(f,".js"),onLoad:()=>C("ready"),onReady:()=>C("ready"),onError:()=>C("error")}),(0,a.jsxs)("div",{className:(0,i.cn)("relative overflow-hidden",c().jwplayerContainer,v),children:[T&&(0,a.jsx)(u.A,{fetchPriority:"high",className:"absolute aspect-video w-full",src:T,alt:""}),"loading"===N&&j?(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-t-2 border-b-2 border-white"})}):"error"===N?(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:g,className:"aspect-video w-full bg-black"})]})]})}},10548:(e,l,t)=>{"use strict";t.d(l,{A:()=>f});var a=t(62024);t(26404);var r=t(9803),i=t(87432),n=t(23954),s=t(6341),o=t(44344),d=t(19196),c=t(12565),u=t(51707),m=t(66087),h=t(57246);let x=e=>{let{date:l,locale:t="en-US",timeZone:a}=e;if(!l)return null;let{cDate:r,cTimeZone:i}=(0,h.r)({date:l,locale:t,timeZone:a});return new Intl.DateTimeFormat(t,{weekday:"long",timeZone:i}).format(r)};var v=t(28335),p=t(5996),g=t(35111);let f=e=>{let{location:l,className:t,headlineClassName:h,showSubheadline:f=!1}=e,y=(0,c.useParams)(),b=null==y?void 0:y.locale,w=(0,v.c)("AlertHeadlines"),{data:j,error:N,isLoading:C}=(0,o.Ay)((null==l?void 0:l.geocode)?["alerts",l.geocode]:null,e=>{let[l,t]=e;return(0,r.Sn)({geocode:t,language:b})},{revalidateOnFocus:!1,dedupingInterval:6e4})||{},T=(null==j?void 0:j.alerts)&&j.alerts.length>0?j.alerts[0]:null,A=T?(()=>{if(!T)return null;let{productIdentifier:e,phenomena:l,significance:t}=T;if(!e||!l||!t)return null;let a=(0,i.F)({productIdentifier:e,phenomena:l,significance:t}),r=(0,n.t)({productIdentifier:e||"",phenomena:l,significance:t}),s={1:{icon:"#fff",fill:"#ba0d00",border:"#f0f0f0",textColor:"#FFFFFF",backgroundColor:"#ba0d00",buttonBackgroundColor:"#ba0d00"},2:{icon:"#000",fill:"#e6731f",border:"#f0f0f0",textColor:"#ffffff",backgroundColor:"#25242299",buttonBackgroundColor:"#25242299"},3:{icon:"#000",fill:"#ebbb02",border:"#f0f0f0",textColor:"#ffffff",backgroundColor:"#25242299",buttonBackgroundColor:"#25242299"},4:{icon:"#fff",fill:"#a51ccb",border:"#f0f0f0",textColor:"#FFFFFF",backgroundColor:"#25242299",buttonBackgroundColor:"#ffffff1a"},severe:{icon:"#fff",fill:"#ba0d00",border:"#f0f0f0",textColor:"#FFFFFF",backgroundColor:"#ba0d00",buttonBackgroundColor:"#ba0d00"}};return s[r?"severe":a]||s[4]})():null,k=T?(0,i.F)({productIdentifier:T.productIdentifier,phenomena:T.phenomena,significance:T.significance}):null,S=T?(0,n.t)({productIdentifier:T.productIdentifier,phenomena:T.phenomena,significance:T.significance}):null;if(C||N||!T)return null;let I=T.effectiveTimeLocalTimeZone||T.endTimeLocalTimeZone||"",_=(e=>{let{effectiveTimeLocal:l,endTimeLocal:t}=e,a="";switch(!0){case!!(l&&t):a="subheadlineTextWithStartAndEndTime";break;case!!(!l&&t):a="subheadlineTextWithoutStartTime";break;case!!(l&&!t):a="subheadlineTextWithoutEndTime";break;default:return""}return a})({effectiveTimeLocal:T.effectiveTimeLocal,endTimeLocal:T.endTimeLocal}),R=(0,g.k)({phenomena:T.phenomena,significance:T.significance,areaId:T.areaId,officeCode:T.officeCode,eventTrackingNumber:T.eventTrackingNumber,locId:(null==l?void 0:l.placeId)||""});return(0,a.jsxs)("a",{href:R,className:(0,u.cn)("flex items-center gap-4 rounded-sm px-2 py-2 text-sm",t),style:{backgroundColor:null==A?void 0:A.backgroundColor,color:null==A?void 0:A.textColor},role:"alert","aria-live":"polite",children:[(0,a.jsxs)("div",{className:"flex-1 flex-col",children:[(0,a.jsxs)("div",{className:"flex gap-2",children:[T&&(0,a.jsx)(s.AlertIcon,{productIdentifier:T.productIdentifier,phenomena:T.phenomena,significance:T.significance,className:"h-4 w-4 items-start","aria-hidden":"true"}),(0,a.jsx)("span",{className:(0,u.cn)("uppercase",h),children:T.eventDescription})]}),f&&(0,a.jsx)(p.Ay,{className:"mt-1 uppercase",variant:"Caption.S.Bold",color:"inverse",children:w(_,{[(null==T?void 0:T.effectiveTimeLocal)&&"startTime"]:(0,m.P)({date:T.effectiveTimeLocal,weekday:"short",locale:b,timeZone:T.ianaTimeZone,minutes:!0}),[(null==T?void 0:T.endTimeLocal)&&"endTime"]:(e=>{let{effectiveTimeLocal:l,endTimeLocal:t,locale:a,ianaTimeZone:r}=e,i=x({date:l,locale:a,timeZone:r}),n=x({date:t,locale:a,timeZone:r});return(0,m.P)({date:t,locale:a,weekday:i!==n&&"short"||void 0,timeZone:r,minutes:!0})})({effectiveTimeLocal:T.effectiveTimeLocal||"",endTimeLocal:T.endTimeLocal||"",locale:b,ianaTimeZone:T.ianaTimeZone||""}),timeZone:I})})]}),j&&j.alerts.length>1&&(0,a.jsxs)(d.$n,{variant:"outline",size:"sm",style:{backgroundColor:null==A?void 0:A.buttonBackgroundColor,...1===k||S?{outline:"solid 1px #ffffff"}:{}},className:"flex h-6 items-center justify-center rounded-xs border-0 px-2 py-2 text-xs text-white hover:bg-transparent hover:text-white","aria-label":"View ".concat(j.alerts.length-1," more alerts"),children:["+",j.alerts.length-1," MORE"]})]})}},10948:(e,l,t)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getHourlyAirQualityForecast=s,l.transformHourlyAirQualityForecast=o;let a=t(86938),r=t(79714),i=t(4843),n=t(82806);async function s(e){let l=(0,a.getHourlyAirQualityForecastUrlConfig)(e),t=(0,r.urlFrom)(l),n=await fetch(t,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return o(await (0,i.handleFetchResponse)(n))}function o(e){let l=e.globalairquality,t={validTimeGmt:l.validTimeGmt,airQualityIndex:l.airQualityIndex,airQualityCategory:l.airQualityCategory,airQualityCategoryIndex:l.airQualityCategoryIndex,airQualityCategoryIndexColor:l.airQualityCategoryIndexColor,primaryPollutant:l.primaryPollutant},a=(0,n.createTransformer)((e,t)=>{var a,r;let i=e=>{var a,r,i,n;let s=l.pollutants[e];if(s)return{name:s.name,phrase:s.phrase,amount:null!=(a=s.amount[t])?a:0,unit:s.unit,category:null!=(r=s.category[t])?r:"",categoryIndex:null!=(i=s.categoryIndex[t])?i:0,index:null!=(n=s.index[t])?n:0}};return{...e,pollutants:{CO:i("CO"),NO2:i("NO2"),O3:i("O3"),PM10:i("PM10"),PM2_5:i("PM2.5"),SO2:i("SO2")},messages:{general:null!=(a=l.messages.General[t])?a:{title:"",text:""},sensitiveGroup:null!=(r=l.messages["Sensitive Group"][t])?r:{title:"",text:""}}}})(t);return{latitude:l.latitude,longitude:l.longitude,source:l.source,disclaimer:l.disclaimer,expireTimeGmt:l.expireTimeGmt,forecast:a}}},11685:(e,l,t)=>{"use strict";t.r(l),t.d(l,{CTABlock:()=>i,default:()=>n});var a=t(62024);t(26404);var r=t(10436);let i=e=>{let{title:l,subTitle:t,subText:i,ctaStyle:n,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:"not-prose @container 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(n),children:(0,a.jsxs)("div",{className:"cta-content text-black",children:[(0,a.jsx)("h2",{className:"mb-6 text-2xl font-bold",children:l}),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)(r.A,{src:m,alt:l})})}),t&&(0,a.jsx)("h2",{className:"mb-2 text-lg font-bold",children:t}),i&&(0,a.jsx)("p",{className:"mb-4",children:i}),"standard"===n&&(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"})})]})})})},n=i},14760:(e,l,t)=>{"use strict";t.r(l),t.d(l,{MorningBriefAdminBlock:()=>i,default:()=>n});var a=t(62024);t(26404);var r=t(17638);let i=()=>(0,a.jsx)(r.default,{name:"MorningBrief"}),n=i},15057:(e,l,t)=>{"use strict";t.d(l,{S:()=>d});var a=t(62024);t(26404);var r=t(51707),i=t(57512),n=t(46623),s=t(85759);let o=e=>{let{pressureTendencyCode:l,iconClassName:t}=e;return 1===l?(0,a.jsx)(i.D,{"data-testid":"PressureRisingIcon",className:(0,r.cn)("mr-1 inline-block h-4 w-4",t),"aria-label":"Pressure rising"}):2===l?(0,a.jsx)(n.y,{"data-testid":"PressureFallingIcon",className:(0,r.cn)("mr-1 inline-block h-4 w-4",t),"aria-label":"Pressure falling"}):null},d=e=>{let{className:l,unitsClassName:t,pressureAltimeter:i,pressureMeanSeaLevel:n,pressureTendencyCode:d,units:c,iconClassName:u}=e,m=c?(0,s.Bu)(c):null,h=null==m?void 0:m.pressure,x=(()=>{let e=i&&i>0||n&&n>0?i||n:null;return e?"e"===c?e.toFixed(2):e.toFixed(1):null})();return(0,a.jsx)("span",{"data-testid":"PressureValue",className:(0,r.cn)("inline-flex items-center",l),children:x?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o,{pressureTendencyCode:d,iconClassName:u}),(0,a.jsx)("span",{children:x}),"\xa0",(0,a.jsx)("span",{className:(0,r.cn)(t),children:h})]}):"--"})}},15460:(e,l,t)=>{"use strict";t.r(l),t.d(l,{CurrentConditionsBlock:()=>em,default:()=>eh});var a=t(62024),r=t(26404),i=t(44344),n=t(47107),s=t(45691),o=t(70017),d=t(28123),c=t(16655),u=t(74743),m=t(62792),h=t(85759),x=t(12565),v=t(76315),p=t(10948),g=t(47251),f=t(63045),y=t(28335),b=t(5996),w=t(87682),j=t(30813),N=t(74282),C=t(59139),T=t(91592);let A=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,t?(0,a.jsx)("title",{id:r,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.49 4.488a3.488 3.488 0 1 1-6.977 0 3.488 3.488 0 0 1 6.977 0m-1 0a2.488 2.488 0 1 1-4.977 0 2.488 2.488 0 0 1 4.977 0",clipRule:"evenodd"}),(0,a.jsx)("path",{fill:"currentColor",d:"M2 1.954a.5.5 0 1 0-1 0v.563C1 3.273 1.622 4 2.526 4h2.518a.5.5 0 0 0 0-1H2.526A.507.507 0 0 1 2 2.517zM1.5 7.543a.5.5 0 0 0 .5-.5V6.48c0-.228.199-.483.526-.483h2.518a.5.5 0 0 0 0-1H2.526C1.622 4.997 1 5.725 1 6.48v.562a.5.5 0 0 0 .5.501M6.01 12.506c0-1.275.94-2.496 2.55-2.496h2.947c1.376 0 2.504 1.17 2.504 2.496v1.989a.5.5 0 0 0 1 0v-1.989c0-1.868-1.566-3.496-3.504-3.496H8.559c-2.225 0-3.548 1.734-3.548 3.496v1.989a.5.5 0 0 0 1 0z"})]})}),k=r.forwardRef((e,l)=>(0,a.jsx)(T.h,{ref:l,icon:A,...e}));k.displayName="AirQuality";var S=t(99834),I=t(97349),_=t(40947),R=t(54737),M=t(95190),P=t(45342),L=t(69411),E=t(90681),D=t(15057),F=t(57109),B=t(94825),V=t(83879),z=t(66087),W=t(60057);let H=e=>{let{sunLocalTime:l,locale:t}=e;return(0,a.jsx)("span",{children:l?(0,z.P)({date:(0,W.r)(l),timeZone:"Etc/GMT",locale:t,minutes:!0}):"--"})};var U=t(82480);let O={temperatureMax:-1,temperatureMin:-1,windSpeed:-1,windDirection:-1,windDirectionCardinal:d.WindDirectionCardinal.NORTH_NORTHEAST,relativeHumidity:-1,temperatureDewPoint:-1,pressureAltimeter:-1,pressureTendencyCode:d.PressureTendencyCode.STEADY,uvIndex:-1,visibility:-1},Q=e=>{var l;let{currentDetails:t,isLoading:i}=e,n=(0,y.c)("CurrentDetails"),s=(0,y.c)("DetailsTable"),o=(0,x.useParams)(),d=null==o?void 0:o.locale,c=(0,u.md)(m.Yt),v=null==(l=(0,h.xP)(c))?void 0:l.code,p=(0,r.useMemo)(()=>(e=>{let{data:l,t,unitCode:r,locale:i}=e;return[{Icon:N.Z,label:t("wind"),content:(0,a.jsx)(P.Z,{windSpeed:l.windSpeed,units:r,windDirection:l.windDirection,windDirectionCardinal:l.windDirectionCardinal,displayMode:"directionalAndCardinal"})},{Icon:C.K,label:t("humidity"),content:(0,a.jsx)(L.N,{value:l.relativeHumidity})},{Icon:k,label:t("airQuality"),content:(0,a.jsx)(E.y,{airQualityIndex:l.airQualityIndex,airQualityCategory:l.airQualityCategory})},{Icon:S.$,label:t("dewPoint"),content:(0,a.jsx)(F.B,{value:l.temperatureDewPoint})},{Icon:I.S,label:t("pressure"),content:(0,a.jsx)(D.S,{pressureAltimeter:l.pressureAltimeter,pressureTendencyCode:l.pressureTendencyCode,units:r})},{Icon:_.o,label:t("uvIndex"),content:(0,a.jsx)(B.M,{uvIndex:l.uvIndex})},{Icon:j.S,label:t("visibility"),content:(0,a.jsx)(V.b,{visibility:l.visibility,units:r})},{Icon:e=>(0,a.jsx)(U.r,{...e,moonPhaseCode:l.moonPhaseCode}),label:t("moonPhase"),content:l.moonPhase},{Icon:R.m,label:t("sunrise"),content:(0,a.jsx)(H,{sunLocalTime:l.sunriseTimeLocal,locale:i})},{Icon:M.d,label:t("sunset"),content:(0,a.jsx)(H,{sunLocalTime:l.sunsetTimeLocal,locale:i})}]})({data:i||!t?O:t,t:s,unitCode:v,locale:d}),[i,t,s,d,v]),g=(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"grid grid-cols-2 gap-x-8 gap-y-0",children:p.map(e=>{let{Icon:l,label:r,content:n}=e;return(0,a.jsxs)("div",{className:"flex flex-row items-center gap-2 border-t py-3 first:border-none @max-sm:flex-wrap [&:nth-child(-n+2)]:border-none [&:nth-child(-n+2)]:pt-0 [&:nth-last-child(-n+2)]:pb-0",children:[(0,a.jsx)(l,{className:"size-4 @md/currentDetails:size-5"}),(0,a.jsx)(b.Ay,{variant:"Body.M",className:"grow-1 font-normal whitespace-nowrap",children:r}),(0,a.jsx)(b.Ay,{isLoading:i||!t,skeletonClassName:"h-6 w-20",variant:"Body.M",className:"text-right leading-[1.5] font-bold tracking-normal @max-sm:ml-6 @max-sm:basis-full @max-sm:text-left",children:n})]},r)})})});return(0,a.jsx)(w.Zp,{"aria-label":n("weatherToday"),radius:"lg",border:"none",variant:"outline",className:"@container/currentDetails mt-4 bg-gray-100","data-testid":"current-details",children:(0,a.jsx)(w.Wu,{className:"p-0",children:g})})};var q=t(10548),G=t(51707);let Z=e=>{let{children:l,direction:t="horizontal",height:i,width:n,textVariant:s="Display.L",textColor:o="inverse",translateDistance:d,transitionDuration:c="500ms",className:u,transitionClassName:m,isLoading:h,skeletonClassName:x}=e,[v,p]=(0,r.useState)(!1);(0,r.useEffect)(()=>{v||h||setTimeout(()=>{p(!0)},0)},[v,h]);let g="horizontal"===t?"translateX":"translateY";return(0,a.jsx)(b.Ay,{isLoading:h,skeletonClassName:x,elementType:"div",className:(0,G.cn)("w-max overflow-hidden",u),variant:s,color:o,style:{height:i,width:n},children:(0,a.jsx)("span",{className:(0,G.cn)("transform: flex transition-transform",m),style:{transitionDuration:c,flexDirection:"horizontal"===t?"row":"column",transform:v?"".concat(g,"(-").concat(d,")"):"".concat(g,"(0px)")},children:l})})};var Y=t(55751);let X="https://s.w-x.co/WeatherImages_Web/WeatherImage_",$=[320,480,640,800],J=[{name:"Tornadoes",iconCodes:[0],dayVariants:2,nightVariants:2},{name:"TropicalStorms",iconCodes:[1,2],dayVariants:2,nightVariants:2},{name:"StrongStorms",iconCodes:[3,4],dayVariants:2,nightVariants:2},{name:"RainAndSnow",iconCodes:[5,7],dayVariants:2,nightVariants:2},{name:"RainAndSleet",iconCodes:[6,10,35],dayVariants:2,nightVariants:2},{name:"FreezingDrizzle",iconCodes:[8],dayVariants:2,nightVariants:2},{name:"Drizzle",iconCodes:[9,11,39],dayVariants:2,nightVariants:2},{name:"Rain",iconCodes:[12],dayVariants:2,nightVariants:2},{name:"Flurries",iconCodes:[13],dayVariants:2,nightVariants:2},{name:"SnowShowers",iconCodes:[14,16],dayVariants:2,nightVariants:2},{name:"BlowingSnow",iconCodes:[15,25],dayVariants:2,nightVariants:2},{name:"Hail",iconCodes:[17,18],dayVariants:2,nightVariants:2},{name:"BlowingSand",iconCodes:[19],dayVariants:2,nightVariants:2},{name:"Foggy",iconCodes:[20],dayVariants:2,nightVariants:2},{name:"Haze",iconCodes:[21],dayVariants:2,nightVariants:2},{name:"Smoke",iconCodes:[22],dayVariants:2,nightVariants:2},{name:"Breezy",iconCodes:[23,24],dayVariants:2,nightVariants:2},{name:"Cloudy",iconCodes:[26],dayVariants:2,nightVariants:2},{name:"MostlyCloudy",iconCodes:[27],dayVariants:null,nightVariants:2},{name:"MostlyCloudy",iconCodes:[28],dayVariants:5,nightVariants:null},{name:"PartlyCloudy",iconCodes:[29],dayVariants:null,nightVariants:2},{name:"PartlyCloudy",iconCodes:[30],dayVariants:5,nightVariants:null},{name:"Clear",iconCodes:[31],dayVariants:null,nightVariants:2},{name:"Sunny",iconCodes:[32,36],dayVariants:4,nightVariants:null},{name:"MostlyClear",iconCodes:[33],dayVariants:null,nightVariants:2},{name:"Fair",iconCodes:[34],dayVariants:2,nightVariants:null},{name:"IsolatedThunderstorms",iconCodes:[37],dayVariants:2,nightVariants:null},{name:"ScatteredThunderstorms",iconCodes:[38],dayVariants:2,nightVariants:null},{name:"HeavyRain",iconCodes:[40],dayVariants:2,nightVariants:2},{name:"ScatteredSnowShowers",iconCodes:[41],dayVariants:2,nightVariants:null},{name:"HeavySnow",iconCodes:[42,43],dayVariants:2,nightVariants:2},{name:"Unknown",iconCodes:[44],dayVariants:null,nightVariants:null},{name:"ScatteredShowers",iconCodes:[45],dayVariants:null,nightVariants:2},{name:"ScatteredSnowShowers",iconCodes:[46],dayVariants:null,nightVariants:2},{name:"Thunderstorms",iconCodes:[47],dayVariants:null,nightVariants:2}],K={"--color-blue-800":["BlowingSnow-night","Breezy-night","Clear-night","Fluries-night","HeavySnow-night","MostlyClear-night","PartlyCloudy-night","ScatteredSnowShowers-night","SnowShowers-night","Unknown.jpg"],"--color-teal-700":["BlowingSnow-day","Breezy-day","Fair-day","Flurries-day","HeavySnow-day","PartlyCloudy-day","ScatteredSnowShowers-day","SnowShowers-day","Sunny-day"],"--color-teal-800":["Drizzle-day","FreezingDrizzle-day","Hail-day","HeavyRain-day","IsolatedThunderstorms-day","Rain-day","RainAndSleet-day","RainAndSnow-day","ScatteredThunderstorms-day","StrongStorms-day","Tornadoes-day","TropicalStorms-day"],"--color-teal-900":["Drizzle-night","FreezingDrizzle-night","Hail-night","HeavyRain-night","Rain-night","RainAndSleet-night","RainAndSnow-night","ScatteredShowers-night","StrongStorms-night","Thunderstorms-night","Tornadoes-night","TropicalStorms-night"],"--color-violet-800":["BlowingSand-day","Cloudy-day","Foggy-day","Haze-day","MostlyCloudy-day","Smoke-day"],"--color-indigo-900":["BlowingSand-night","Cloudy-night","Foggy-night","Haze-night","MostlyCloudy-night","Smoke-night"]};var ee=t(35776);let el=function(){let{iconCode:e=44}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=J.find(l=>{var t,a;return null==l||null==(a=l.iconCodes)||null==(t=a.includes)?void 0:t.call(a,e)}),t=J.find(e=>(null==e?void 0:e.name)==="Unknown");return l||t},et=function(){let{width:e=320}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return $.reduce((l,t)=>Math.abs(t-e){let{location:l,weatherData:t,forecastData:r,isLoading:i,error:n}=e;return n?(0,a.jsx)(ei,{error:n}):(0,a.jsx)(er,{isLoading:i,location:l,weatherData:t,forecastData:r})},er=e=>{let{isLoading:l,location:t,weatherData:r,forecastData:i}=e,n=function(){let{iconCode:e=44,dayPart:l="day",variant:t=0,width:a=800,isSevere:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i={src:function(){let{iconCode:e=44,dayPart:l="day",variant:t=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=el({iconCode:e}),r=null==a?void 0:a["".concat(l,"Variants")];if(!r||t>r)return a=el({iconCode:44}),"".concat(X).concat(a.name,".jpg");let i=!!r&&0===t&&((e,l)=>{let t=Math.ceil(e);return Math.floor(Math.random()*(Math.floor(l)-t+1)+t)})(1,r),n="";return i?n="_".concat(i):t&&(n="_".concat(t)),"".concat(X).concat(a.name,"-").concat(l).concat(n,".jpg")}({iconCode:e,dayPart:l,variant:t}),width:et({width:a}),quality:70,format:"pjpg",autoWebP:!0,ratio:"16:9"};return r&&(i.saturation=-100),(0,ee.default)(i)}({iconCode:null==r?void 0:r.iconCode,dayPart:(null==r?void 0:r.dayOrNight)==="D"?"day":"night"}),s=l?"--color-white":(e=>Object.keys(K).find(l=>K[l].find(l=>{var t;return null==e||null==(t=e.includes)?void 0:t.call(e,l)}))||"--color-blue-800")(n),o=(0,y.c)("CurrentConditions");return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(w.Zp,{"aria-label":"Current Conditions",radius:"lg",border:l?"lt":"none",variant:"outline",className:"@container bg-cover bg-center bg-no-repeat","data-testid":"current-conditions",style:{backgroundColor:"var(".concat(s,")"),backgroundImage:l?"":"url(".concat(n,")")},children:(0,a.jsx)(w.Wu,{children:(0,a.jsx)("div",{className:"relative",children:(0,a.jsxs)("div",{className:"relative z-10 flex h-full flex-col text-white",children:[(0,a.jsxs)("div",{className:"mb-3 flex items-center gap-1",children:[(0,a.jsx)("div",{className:"flex h-16 w-16 items-center justify-center",children:(0,a.jsx)(Y.WxIcon,{isLoading:l,loadingIconClassName:"h-16 w-16",iconCode:(null==r?void 0:r.iconCode)||-1,className:"h-16 w-16","aria-label":null==r?void 0:r.wxPhraseLong,iconTheme:"lightBG"})}),(0,a.jsxs)(Z,{isLoading:l,skeletonClassName:"ml-1 h-16 w-22",direction:"vertical",height:"69px",translateDistance:"207px",children:[(0,a.jsx)("span",{children:o("now")}),(0,a.jsx)(F.B,{value:(null==r?void 0:r.temperature)?(null==r?void 0:r.temperature)+2:null}),(0,a.jsx)(F.B,{value:(null==r?void 0:r.temperature)?(null==r?void 0:r.temperature)+1:null}),(0,a.jsx)(b.Ay,{variant:"Display.L",color:"inverse",children:(0,a.jsx)(F.B,{value:null==r?void 0:r.temperature})})]})]}),(0,a.jsx)(b.Ay,{isLoading:l,skeletonClassName:"mt-1 h-6 w-30",variant:"Title.M",color:"inverse",children:null==r?void 0:r.wxPhraseLong}),(0,a.jsxs)(b.Ay,{isLoading:l,skeletonClassName:"mt-3 h-6 w-65",variant:"Body.M",color:"inverse",className:"mt-3","data-testid":"current-conditions-temperatures",children:[o("feelsLike")," ",(0,a.jsx)(F.B,{value:null==r?void 0:r.temperatureFeelsLike})," \xb7"," ",o("dayTempLabel")," ",(0,a.jsx)(F.B,{value:null==i?void 0:i.temperatureMax})," \xb7"," ",o("nightTempLabel")," ",(0,a.jsx)(F.B,{value:null==i?void 0:i.temperatureMin})]}),(0,a.jsx)(q.A,{location:t,showSubheadline:!0,className:"mt-4",headlineClassName:"normal-case"})]})})})})})},ei=e=>{let{error:l}=e;return(0,a.jsx)("div",{className:"overflow-hidden rounded-lg","data-testid":"current-conditions-error",children:(0,a.jsx)("div",{className:"flex min-h-[150px] flex-col bg-white p-8 text-white",children:(0,a.jsx)("div",{className:"flex flex-grow items-center justify-center",children:(0,a.jsx)(b.Ay,{variant:"Display.S",children:(null==l?void 0:l.message)||"Unable to load weather data"})})})})};var en=t(92829);let es=e=>{let{location:l}=e,t=(0,y.c)("CurrentConditions"),r=(0,en.z)();return(0,a.jsx)(b.Ay,{isLoading:!l,variant:r?"Title.S":"Title.M",className:"mb-4",skeletonClassName:"mt-2 h-6 w-65",children:t("locationDisplayName",{presentationName:(null==l?void 0:l.presentationName)||""})})},eo=e=>{let{location:l,weatherData:t,forecastData:r,isCurrentConditionsLoading:i,currentConditionsError:n,currentDetails:s,isCurrentDetailsLoading:o}=e;return(0,a.jsxs)("div",{"aria-label":"CurrentConditionsDetailsView",children:[(0,a.jsx)(es,{location:l}),(0,a.jsx)(ea,{location:l,weatherData:t,forecastData:r,isLoading:i,error:n}),(0,a.jsx)(Q,{currentDetails:s,isLoading:o})]})},ed=e=>{let{location:l}=e,{effectiveLocation:t,isLocationLoading:y,locationError:b}=(0,n.s)({location:l}),{weatherData:w,forecastData:j,isLoading:N,error:C}=function(e){var l,t,a,r,n;let c=(0,x.useParams)(),v=null==c?void 0:c.locale,p=(0,u.md)(m.Yt),g=null==(l=(0,h.xP)(p))?void 0:l.code,{data:f,error:y,isLoading:b}=(0,i.Ay)(e?["observations",e.geocode,g]:null,e=>{let[l,t,a]=e;return(0,s.z)({geocode:t,units:a,language:v})},{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:w,error:j,isLoading:N}=(0,i.Ay)(e?["daily-forecast",e.geocode,g]:null,l=>{let[t,a,r]=l;return e?(0,o.v1)({geocode:a,units:r,language:v}):null},{revalidateOnFocus:!1,dedupingInterval:6e4}),C=f?{temperature:f.temperature,temperatureFeelsLike:f.temperatureFeelsLike,wxPhraseLong:f.wxPhraseLong,iconName:d.ICON_CODE_MAP[f.iconCode]||"na",iconCode:f.iconCode,validTimeLocal:f.validTimeLocal,relativeHumidity:f.relativeHumidity,windSpeed:f.windSpeed,windDirectionCardinal:f.windDirectionCardinal,dayOrNight:f.dayOrNight}:void 0,T=w&&w.length>0?{temperatureMax:null!=(r=null==(t=w[0])?void 0:t.calendarDayTemperatureMax)?r:0,temperatureMin:null!=(n=null==(a=w[0])?void 0:a.calendarDayTemperatureMin)?n:0}:void 0;return{weatherData:C,forecastData:T,isLoading:b||!f||N||!w,error:y||j}}(t),T=N||y,A=C||b,{currentDetails:k,loading:S}=(e=>{var l,t,a,n;let c=(0,u.md)(m.Yt),y=null==(l=(0,h.xP)(c))?void 0:l.code,b=null==(t=(0,x.useParams)())?void 0:t.locale,w=(0,v.A)(),{data:j,error:N,isLoading:C}=(0,i.Ay)(e?["get-current-observations",e.geocode,y,b]:null,e=>{let[l,t,a,r]=e;return(0,s.z)({geocode:t,units:a,language:r})},{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:T,error:A,isLoading:k}=(0,i.Ay)(e?["get-daily-forecast",e.geocode,d.ForecastDuration.THREE_DAY,y,b,"KR"===w?w:void 0]:null,e=>{let[l,t,a,r,i,n]=e;return(0,o.v1)({geocode:t,units:r,language:i,duration:a,cscCountryCode:n})},{revalidateOnFocus:!1,dedupingInterval:6e4}),S=(null==b||null==(n=b.split)||null==(a=n.call(b,"-"))?void 0:a[1])||"US",{data:I,error:_,isLoading:R}=(0,i.Ay)(e?["getHourlyAirQualityForecast",e.geocode]:null,l=>{let[t,a]=l;return e?(0,p.getHourlyAirQualityForecast)({geocode:a,language:b,scale:(0,g.o)({countryCode:S}),duration:f.AirQualityForecastDuration.TWELVE_HOUR}):null},{revalidateOnFocus:!1,dedupingInterval:6e4}),M=null==T?void 0:T[0];return{currentDetails:(0,r.useMemo)(()=>{var e,l,t;return j&&M&&{...j,temperatureMin:M.temperatureMin,temperatureMax:M.temperatureMax,moonPhase:M.moonPhase,moonPhaseCode:M.moonPhaseCode,airQualityIndex:null==I||null==(e=I.forecast[0])?void 0:e.airQualityIndex,airQualityCategory:null!=(t=null==I||null==(l=I.forecast[0])?void 0:l.airQualityCategory)?t:""}},[j,M,I]),loading:C||k||R,error:N||A||_}})(t),I=y||S||!k||!t;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.DebugCollector,{componentName:"CurrentConditionsDetails",data:{props:{location:l},state:{effectiveLocation:t,isLocationLoading:y,isCurrentConditionsLoading:T,weatherData:w,forecastData:j,currentConditionsError:A,componentState:A&&"error"||T&&"loading"||"ready"},performance:{renderCount:void 0}}}),(0,a.jsx)(eo,{location:t,isCurrentConditionsLoading:T,currentConditionsError:A,weatherData:w,forecastData:j,isCurrentDetailsLoading:I,currentDetails:k})]})};var ec=t(2212),eu=t(10478);let em=e=>{let{locationProvider:l,locationEntry:t}=e,r="specified"===l,{specifiedLocationData:i,specifiedLocationError:n,isSpecifiedLocationLoading:s}=(0,ec.v)(r?t:null);return r&&s?(0,a.jsx)("div",{children:"Loading location data..."}):r&&n?(0,a.jsxs)("div",{children:["Error loading location data: ",n.message]}):r&&i&&t?(0,a.jsx)(ed,{location:(0,eu.I)(i)}):r?null:(0,a.jsx)(ed,{})},eh=ed},15697:(e,l,t)=>{"use strict";t.r(l),t.d(l,{BlueskyBlock:()=>d,default:()=>c});var a=t(62024),r=t(26404);let i=(0,t(71842).h)("payload:Bluesky:OEmbed");function n(e){try{if(e.startsWith("at://")){let l=e.match(/^at:\/\/([^/]+)\/app\.bsky\.feed\.post\/([^/?#]+)/);if(l){let e=l[1],t=l[2];if(e&&t)return{handle:e,postId:t}}return null}let l=new URL(e).pathname.split("/");if(l.length>=5&&"profile"===l[1]&&"post"===l[3]){let e=l[2],t=l[4];if(e&&t)return{handle:e,postId:t}}return null}catch(e){return null}}async function s(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{let t=n(e);if(!t)return{error:"invalid_url",message:"Invalid Bluesky URL format"};let a=new URL("https://embed.bsky.app/oembed");a.searchParams.set("url",e),i.debug("Fetching Bluesky oEmbed",{url:e,parsedUrl:t,options:l}),l.maxWidth&&a.searchParams.set("maxwidth",l.maxWidth.toString()),l.maxHeight&&a.searchParams.set("maxheight",l.maxHeight.toString());let r=await fetch(a.toString(),{method:"GET",headers:{Accept:"application/json","User-Agent":"wx-next/1.0"}});if(!r.ok)return{error:"api_error",message:"Bluesky API returned ".concat(r.status,": ").concat(r.statusText)};let s=await r.json();if("rich"!==s.type||!s.html)return{error:"invalid_response",message:"Invalid oEmbed response from Bluesky"};return s}catch(e){return{error:"fetch_error",message:e instanceof Error?e.message:"Unknown error occurred"}}}function o(e){let l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n(e),a=t?"@".concat(t.handle):"Bluesky User";return'\n

\n
\n \n \n \n Bluesky Post\n
\n
\n Post by '.concat(a,'\n
\n
\n \n View on Bluesky →\n \n
\n ').concat(l?'
Thread view enabled
':"","\n
\n ")}let d=e=>{let{entryMethod:l,blueskyURL:t,postId:i,showThread:n=!1}=e,d=(0,r.useRef)(null),[c,u]=(0,r.useState)(!0),[m,h]=(0,r.useState)(null),x=(0,r.useCallback)(()=>"id"===l&&i?null:"url"===l&&t?t:null,[l,i,t]);return((0,r.useEffect)(()=>{(async()=>{let e=x();if(!e){h("No valid Bluesky URL provided"),u(!1);return}if(d.current){u(!0),h(null);try{let l=await s(e,{maxWidth:550,showThread:n});"error"in l?(console.warn("Bluesky oEmbed error:",l),d.current.innerHTML=o(e,n)):d.current.innerHTML=l.html}catch(l){console.error("Failed to load Bluesky embed:",l),d.current.innerHTML=o(e,n)}finally{u(!1)}}})()},[x,n]),c)?(0,a.jsx)("div",{className:"bluesky-embed-loading",style:{border:"1px solid #e1e8ed",borderRadius:"12px",padding:"16px",margin:"16px 0",maxWidth:"550px",background:"#f8f9fa",textAlign:"center"},children:(0,a.jsx)("div",{style:{color:"#536471"},children:"Loading Bluesky post..."})}):m?(0,a.jsxs)("div",{className:"bluesky-embed-error",style:{border:"1px solid #ff6b6b",borderRadius:"12px",padding:"16px",margin:"16px 0",maxWidth:"550px",background:"#fff5f5"},children:[(0,a.jsx)("div",{style:{color:"#d63031",fontWeight:"bold",marginBottom:"8px"},children:"Bluesky Embed Error"}),(0,a.jsx)("div",{style:{color:"#636e72"},children:m})]}):(0,a.jsx)("div",{className:"bluesky-embed-container",ref:d})},c=d},16537:(e,l,t)=>{"use strict";t.r(l),t.d(l,{PrecipIntensityBlock:()=>s,default:()=>o});var a=t(62024),r=t(2212),i=t(10478),n=t(80672);let s=e=>{let{locationEntry:l,locationProvider:t}=e,s="specified"===t,{specifiedLocationData:o,specifiedLocationError:d,isSpecifiedLocationLoading:c}=(0,r.v)(l),u=s&&o&&l?(0,i.I)(o):void 0;return(0,a.jsx)(n.A,{location:u,initializing:s&&c,initialError:s?d:void 0})},o=s},17126:(e,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getEmailPreferencesStatusUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/status"}},l.getEmailPreferencesSetUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/set"}},l.getEmailPreferencesChangeEmailUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/change-email"}}},17638:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>i});var a=t(62024);t(26404);var r=t(88065);let i=e=>{let{name:l,children:t}=e;return(0,a.jsxs)("div",{className:"mb-1 flex w-full min-w-xl flex-col p-3",style:{border:"2px solid var(--theme-elevation-200)",borderRadius:"5px",background:"var(--theme-input-bg)",color:"var(--theme-elevation-800)",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.05)"},children:[(0,a.jsxs)("h4",{className:"flex items-center gap-2 pb-3",style:{borderBottom:"1px solid var(--theme-elevation-200)",marginBottom:"8px"},children:[(0,a.jsx)("span",{className:"flex-grow truncate text-left text-sm font-medium",children:l}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(r.s8,{}),(0,a.jsx)(r.ON,{})]})]}),(0,a.jsx)("div",{className:"text-sm",children:(0,a.jsx)("div",{className:"pt-1",children:t})})]})}},18675:(e,l,t)=>{"use strict";function a(e){return"object"==typeof e&&null!==e&&"url"in e&&("mimeType"in e||"seo"in e&&"altText"in e.seo)}t.d(l,{bt:()=>a})},18802:(e,l,t)=>{"use strict";t.r(l),t.d(l,{DailyForecastAdminBlock:()=>s,default:()=>o});var a=t(62024);t(26404);var r=t(17638),i=t(62194),n=t(82878);let s=()=>{let[e,l]=(0,i.kV6)(),t=(0,n.r)(e,!0);return(0,a.jsxs)(r.default,{name:"DailyForecast",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("b",{children:"Provider"}),": ",t.locationProvider]}),"specified"===t.locationProvider&&(0,a.jsxs)("div",{children:[(0,a.jsx)("b",{children:"Location"}),": ",t.locationEntry]}),(0,a.jsx)("div",{className:"mt-2",children:(0,a.jsx)(i.OcR,{label:"Simplified Version",name:"simplifiedVersion",checked:(null==t?void 0:t.simplifiedVersion)||!1,onToggle:e=>{l({type:"UPDATE",path:"simplifiedVersion",value:e.target.checked})}})})]})},o=s},21613:(e,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getSortedAlerts=void 0,l.getSortedAlerts=e=>[...e].sort((e,l)=>e.displayRank>l.displayRank?1:e.displayRankl.eventTrackingNumber?1:(e.eventTrackingNumber{"use strict";t.r(l),t.d(l,{HurricaneTrackerBlock:()=>_,default:()=>R});var a=t(62024),r=t(2212),i=t(10478),n=t(85759),s=t(26404),o=t(44344),d=t(74743),c=t(73015),u=t(62792),m=t(12565),h=t(29357),x=t(93117),v=t(68285);let p={lod:4,attr:0,format:"png",height:"320",width:"568",product:"9066",basemap:"dark",baseUrl:"https://api.weather.com/v2/maps/dynamic?"},g={revalidateOnFocus:!1,dedupingInterval:6e4};var f=t(28335),y=t(28249),b=t(87682),w=t(45342),j=t(8808),N=t(80891),C=t(79508),T=t(51707);let A={ts:"border-[#61c747] bg-[#224818]",l:"border-[#25bef7] bg-[#093b4d]",cat1:"text-[0.625rem] border-[#ebdb02] bg-[#494501]",cat2:"text-[0.625rem] border-[#ebb700] bg-[#524000]",cat3:"text-[0.625rem] border-[#fc8800] bg-[#502c02]",cat4:"text-[0.625rem] border-[#fc5e00] bg-[#511e00]",cat5:"text-[0.625rem] border-[#ed2325] bg-[#4f0c0d]"},k=e=>{var l;let{titleKey:t,outboundUrl:r,imageUrl:i,stormDetails:o,units:d,loading:c}=e,u=(0,f.c)("HurricaneTracker"),m=(0,f.c)("DetailsTable"),{advisoryTime:h,stormName:x,stormType:v,stormTypeCode:p,stormSubTypeCode:g,maxWind:k,direction:S,speed:I,pressure:_}=o||{},R=(null!=(l=(0,n.Bu)(d))?l:n.AF).speed,M=(0,s.useMemo)(()=>{let e="l";return g&&(e="cat".concat(g)),g||"TS"!==p||(e="ts"),e},[g,p]);return(0,a.jsxs)(b.Zp,{"data-testid":"HurricaneTracker","aria-label":u(t),children:[t&&(0,a.jsx)(b.aR,{text:u(t)}),(0,a.jsx)(b.Wu,{className:"p-0",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)(N.default,{href:r,className:"block",children:[(0,a.jsx)("div",{className:"absolute h-full w-full rounded-lg bg-gradient-to-b from-black via-transparent to-black [background:linear-gradient(0deg,rgba(0,0,0,1)_0%,rgba(0,0,0,0)_20%,rgba(0,0,0,0)_80%,rgba(0,0,0,1)_100%)]"}),(0,a.jsx)("div",{className:"z-0 h-80 w-full rounded-lg bg-[#4d505b] bg-cover bg-center",style:i?{backgroundImage:"url(".concat(i,")")}:void 0}),(0,y.n)(x)&&(0,a.jsxs)("div",{className:"absolute top-0 z-[1] mt-3 ml-4 flex max-w-[60%] text-sm leading-[1.25] text-white",children:[(0,a.jsx)("div",{className:(0,T.cn)("box-border flex h-[35px] w-[35px] min-w-[35px] items-center justify-center rounded-full border-2 border-white bg-gray-500 p-0.5 text-center leading-none font-bold",A[M]),children:p}),(0,a.jsxs)("div",{className:"ml-2.5 flex flex-col",children:[(0,a.jsx)("div",{className:"text-base leading-[1.15] font-bold",children:"".concat(v," ").concat(x)}),(0,a.jsx)("div",{className:"text-xs",children:h})]})]}),(0,y.n)(I)&&(0,y.n)(S)&&(0,a.jsxs)("ul",{className:"absolute bottom-0 z-[1] box-border flex w-full list-none flex-row px-4 py-3 text-sm leading-[1.25] text-white",children:[(0,a.jsxs)("li",{className:"mr-8",children:[(0,a.jsx)("div",{className:"text-xs",children:u("maxWinds")}),(0,a.jsx)("div",{className:"font-bold",children:(0,a.jsx)(w.Z,{windSpeed:null!=k?k:void 0,units:d})})]}),(0,a.jsxs)("li",{className:"mr-8",children:[(0,a.jsx)("div",{className:"text-xs",children:u("movement")}),(0,a.jsx)("div",{className:"font-bold",children:u("directionSpeedUnit",{direction:S,speed:I,windUnit:R})})]}),(0,a.jsxs)("li",{className:"mr-0",children:[(0,a.jsx)("div",{className:"text-xs",children:m("pressure")}),(0,a.jsx)("div",{className:"font-bold",children:_?"".concat(_," mb"):"--"})]})]}),c&&(0,a.jsx)(C.a,{className:"absolute top-1/2 left-1/2 -translate-1/2",variant:"white",size:"lg",label:"Loading"})]}),(0,a.jsx)(j.L,{position:"top-right",color:"white",className:"!top-[13px] !right-4 z-[1] [&_button]:!p-0",stack:!0})]})})]})};var S=t(47107);let I=e=>{var l;let{location:t,titleKey:r,zoom:i,stormId:f,basin:y,showPT:b,initializing:w,initialError:j}=e,{effectiveLocation:N,isLocationLoading:C}=(0,S.s)({location:t}),T=(0,d.md)(u.Yt),A=null==(l=(0,n.xP)(T))?void 0:l.code,{imageUrl:I,interactiveMapUrl:_,stormDetails:R,isLoading:M,error:P}=(e=>{let{location:l,basin:t,showPT:a,stormId:r,overlays:i,zoom:f,stormIdSelectorName:y}=e,{countryCode:b,placeId:w,ianaTimeZone:j}=l||{},N=(0,m.useParams)().locale||"en-US",C=null==N?void 0:N.split("-")[0],T=(0,d.md)(u.Yt),A=((0,n.xP)(T)||n.AF).code,k=(0,x.n)({key:"radar",interpolationArgs:{locale:N,locId:w||""}}),{data:S,isLoading:I,error:_}=(0,o.Ay)(l?["getTropicalCurrentPosition",t||"all","default","false",A,N]:null,e=>{let[l,t,a,r,i,n]=e;return(0,c.x)({basin:t,source:a,nautical:r,units:i,language:n})},g),R=null==S?void 0:S.advisoryinfo,M=(0,s.useMemo)(()=>{if(!R||!R.length)return;let e=new Date(Date.now()),l=[];return R.forEach(t=>{var r;let i=null==t||null==(r=t.currentposition)?void 0:r.storm_type_cd;if("RO"===i||"PT"===i&&!a)return;let n=new Date(t.adv_dt_tm),s=((e,l)=>e&&l?Math.floor((Date.parse(l)-Date.parse(e))/864e5):0)(e.toString(),n.toString());(0===s||-1===s)&&("AL"===t.basin?l.unshift(t):l.push(t))}),l.length>0?l:void 0},[R,a]),P=(0,s.useMemo)(()=>{if(!M||!r)return null;let e=M.find(e=>e.storm_id.toLowerCase()===r.toLowerCase());if(e)return e;let l=M.find(e=>e.storm_name.toLowerCase()===r.toLowerCase());return l||null},[M,r]),L=(0,s.useMemo)(()=>P||y?P:!P&&M?M[0]:null,[M,P,y]),E=(0,s.useMemo)(()=>{var e,l,t,a,r,i,n,s,o,d;if(!L)return null;let c=null==(e=L.currentposition)?void 0:e.storm_type_cd,u=null==(l=L.currentposition)?void 0:l.storm_sub_type_cd,m=L.adv_dt_tm,h=null==(t=L.currentposition)?void 0:t.min_pressure;return h&&"e"===A&&(h=Math.round(33.8639*h)),h||(h=null),{advisoryTime:(e=>{let{date:l,locale:t="en-US",timeZone:a}=e;if(!l)return"";let r={month:"short",day:"numeric",hour:"numeric",hour12:!0,minute:"2-digit"};if(!t.includes("-US"))return delete r.hour12,r.hourCycle="h23",(0,v.w)(l,t,a);let i=(0,v.V)(l,t,a,r),n=i.find(e=>"month"===e.type).value,s=i.find(e=>"day"===e.type).value,o=i.find(e=>"hour"===e.type).value,d=i.find(e=>"minute"===e.type).value,c=i.find(e=>"dayperiod"===e.type.toLowerCase()).value.toLowerCase();return"".concat(n," ").concat(s,", ").concat(o,":").concat(d," ").concat(c)})({date:m,locale:N,timeZone:j||"UTC"}),maxWind:null==(a=L.currentposition)?void 0:a.max_sustained_wind,stormName:L.storm_name,stormSubType:null==(r=L.currentposition)?void 0:r.storm_sub_type,stormSubTypeCode:u,stormType:null==(i=L.currentposition)?void 0:i.storm_type,stormTypeCode:((e,l)=>l?"CAT ".concat(l):"TS"===e?"TS":"L")(c,u),direction:null==(s=L.currentposition)||null==(n=s.heading)?void 0:n.storm_dir_cardinal,speed:null==(d=L.currentposition)||null==(o=d.heading)?void 0:o.storm_spd,pressure:h}},[L,N,j,A]),D=(0,s.useMemo)(()=>{if(!L)return null;let{lod:e,attr:l,format:t,height:a,width:r,product:n,basemap:s,baseUrl:o}=p,d=i||n,c=f||e,u=(0,h.S)(L.currentposition.lat,c),m=(0,h.S)(L.currentposition.lon,c),x=C&&["en","fr","es","de","ru","zu"].indexOf(C)>=0?C:"en",v=null;return"IN"===b&&(v="&region=in"),"".concat(o,"geocode=").concat(u,",").concat(m,"&h=").concat(a,"&w=").concat(r,"&lod=").concat(c)+"&product=".concat(d,"&map=").concat(s,"&format=").concat(t,"&language=").concat(x)+"&apiKey=".concat("71f92ea9dd2f4790b92ea9dd2f779061","&a=").concat(l)+"".concat(v||"")},[L,C,b,i,f]),F=(0,s.useMemo)(()=>{if(!L)return null;let e=!w,l=e?"/redir":k,t=L.storm_name,a=f||6,r=new URLSearchParams;return e&&(r.set("page","radar"),r.set("id","autodetect")),r.set("base","roadsDark"),r.set("zoom",String(a)),t&&r.set("collection",t),"".concat(l,"?").concat(r.toString())},[L,w,k,f]);return{tropicalStorms:R,isLoading:I,error:_,allActiveStorms:M,queriedStorm:P,stormData:L,stormDetails:E,imageUrl:D,interactiveMapUrl:F}})({location:N,zoom:i||void 0,stormId:f||void 0,basin:y||void 0,showPT:b||void 0});return j||P?null:(0,a.jsx)(k,{titleKey:null!=r?r:"title",outboundUrl:null!=_?_:"",imageUrl:I,units:A,stormDetails:R,loading:M||w||C})},_=e=>{let{locationEntry:l,locationProvider:t,hideModule:n,...s}=e,o="specified"===t,{specifiedLocationData:d,specifiedLocationError:c,isSpecifiedLocationLoading:u}=(0,r.v)(n?null:l);if(n)return null;let m=o&&d&&l?(0,i.I)(d):void 0;return(0,a.jsx)(I,{...s,location:m,initializing:o&&u,initialError:o?c:void 0})},R=_},23722:(e,l,t)=>{"use strict";t.r(l),t.d(l,{BlueskyAdminBlock:()=>o,default:()=>d});var a=t(62024),r=t(26404),i=t(62194),n=t(82878),s=t(17638);let o=()=>{let[e,l]=(0,i.kV6)(),t=(0,n.r)(e,!0),[o,d]=(0,r.useState)({blueskyURL:null==t?void 0:t.blueskyURL,postId:null==t?void 0:t.postId});return(0,r.useEffect)(()=>{d({blueskyURL:null==t?void 0:t.blueskyURL,postId:null==t?void 0:t.postId})},[null==t?void 0:t.blueskyURL,null==t?void 0:t.postId]),(0,a.jsxs)(s.default,{name:"Bluesky",children:[(0,a.jsx)("h4",{children:(()=>{switch(null==t?void 0:t.entryMethod){case"url":return o.blueskyURL;case"id":return"Post ID: ".concat(o.postId);default:return"No Bluesky post specified"}})()}),(0,a.jsx)("div",{style:{paddingTop:".3rem"},children:(0,a.jsx)(i.OcR,{label:"Show Thread",name:"showThread",checked:null==t?void 0:t.showThread,readOnly:!0,onToggle:e=>{l({type:"UPDATE",path:"showThread",value:!e})}})})]})},d=o},25884:(e,l,t)=>{"use strict";l.j=n;let a=t(79714),r=t(4843),i=t(17126);async function n(){let e=(0,i.getEmailPreferencesStatusUrlConfig)(),l=(0,a.urlFrom)(e),t=await fetch(l,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"},next:{revalidate:60}});return(0,r.handleFetchResponse)(t)}},26097:(e,l,t)=>{"use strict";t.d(l,{W:()=>c});var a=t(62024),r=t(6384),i=t(83728),n=t(97509),s=t(51707),o=t(69411),d=t(53);let c=e=>{let{precipChance:l=null,precipType:t,showIcon:c=!0,displayMode:u="text",className:m,iconClassName:h,textClassName:x,progressClassName:v,progressBarClassName:p}=e;if((0,r.g)(l))return"--";let g=t===d.PrecipType.SNOW?i.D:n.Y;return(0,a.jsxs)(a.Fragment,{children:[("text"===u||"both"===u)&&(0,a.jsxs)("span",{className:(0,s.cn)(m,x),children:[c&&(0,a.jsx)(g,{className:(0,s.cn)("size-4",h)}),(0,a.jsx)(o.N,{value:l,className:"align-middle"})]}),("progress"===u||"both"===u)&&(0,a.jsxs)("div",{className:(0,s.cn)("relative inline-block h-5 w-26 overflow-hidden rounded-xl bg-[#e9e9e9] align-middle",m,v),children:[(0,a.jsx)("div",{className:(0,s.cn)("bg-brand-100 relative h-full w-full rounded-xl",p),style:{left:"".concat(l-100,"%")}}),(0,a.jsxs)("div",{className:"absolute top-0 bottom-0 flex h-full w-full items-center p-1",children:[c&&(0,a.jsx)(g,{className:(0,s.cn)("size-3.25",h)}),(0,a.jsx)(o.N,{value:l,className:"text-sm"})]})]})]})}},27621:(e,l,t)=>{"use strict";t.d(l,{A:()=>m});var a=t(62024),r=t(26404);let i={src:"/_next/static/media/SlideshowIcon.2da11b0d.png"};var n=t(10436),s=t(5996),o=t(3757),d=t(17166);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 l;let{id:t,assets:r,currentSlideIndex:u,totalAssets:m,previous:h,next:x,sendTrackString:v,rounded:p=!1}=e;if(!r.length||u=r.length)return null;let g=r[u],f="".concat(u+1,"/").concat(m),y=0===u,b=u===m-1;return(0,a.jsxs)("figure",{id:t,className:"relative mt-4 mb-4 w-full max-w-full",children:[(0,a.jsx)("div",{className:p?"overflow-hidden rounded-[16px]":"",children:(0,a.jsx)("div",{className:"relative w-full ".concat(p?"rounded-[16px]":""),children:(0,a.jsx)("div",{className:"relative w-full ".concat(p?"rounded-[16px]":""),style:{paddingTop:"56.25%"},children:(0,a.jsx)(n.A,{className:"absolute top-0 left-0 h-full w-full object-cover",src:g.url||"",alt:(null==(l=g.seo)?void 0:l.altText)||"",rounded:p,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)(n.A,{src:i.src,alt:"Slideshow",width:20,height:20,className:"h-5 w-5",rounded:!1})}),(0,a.jsx)("div",{className:"mr-2 ml-2",children:(0,a.jsx)(s.EY,{variant:"Body.S",color:"primary",children:f})}),(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:y,onClick:()=>{v("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(y?"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:()=>{v("wxnode_slideshow_link-next"),x()},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")})})})})]})}),g.filename&&!c(g.filename)&&(0,a.jsx)(s.EY,{variant:"Title.S",color:"primary",elementType:"h3",className:"mt-0 mb-1",children:g.filename}),g.caption&&(0,a.jsx)(s.EY,{variant:"Body.S",color:"primary",className:"py-1 pb-0 ".concat(g.filename&&!c(g.filename)?"":"mt-0 pt-0"),children:g.caption}),(0,a.jsx)("div",{className:"border-b border-gray-200 py-2"})]})})]})},m=e=>{let{id:l,assets:t=[],allSlides:i=[],totalAssets:n=i.length||0,loadNextSlideshowPage:s,sendTrackString:o=()=>{},rounded:d=!1}=e,c=(0,r.useId)(),m=l||"slideshow-".concat(c),h=i.length>0,[x,v]=(0,r.useState)(0),[p,g]=(0,r.useState)(1),[f,y]=(0,r.useState)(1),[b,w]=(0,r.useState)(h?i.slice(0,20):t),j=(0,r.useCallback)(e=>{if(!e)return!1;let{top:l}=e.getBoundingClientRect();return l>=-100&&l{if(x-1>=0){let e=x-1?Math.ceil((x-1)/20):1;v(x-1),g(e)}},[x]),C=(0,r.useCallback)(()=>{if(x+1=f){let e=20*p;if(e-3t.length&&p>=f){let e=20*p;e-3{if(j(document.querySelector("#".concat(m))))switch(e.key){case"ArrowLeft":N();break;case"ArrowRight":C()}},[m,j,N,C]);return(0,r.useEffect)(()=>(document.body.addEventListener("keydown",T),()=>{document.body.removeEventListener("keydown",T)}),[T]),(0,r.useEffect)(()=>{h&&0===b.length&&w(i.slice(0,20))},[h,i,b.length]),(0,a.jsx)(u,{id:m,assets:h?b:t,currentSlideIndex:x,totalAssets:n,previous:N,next:C,sendTrackString:o,rounded:d})}},30813:(e,l,t)=>{"use strict";t.d(l,{S:()=>s});var a=t(62024),r=t(26404),i=t(91592);let n=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"View"}):t?(0,a.jsx)("title",{id:r,children:t}):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"})]})]})}),s=r.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:n,...e}));s.displayName="View"},31909:(e,l,t)=>{"use strict";t.r(l),t.d(l,{CurrentDetailsBlock:()=>s,default:()=>o});var a=t(62024),r=t(10478),i=t(2212);let n=()=>null,s=e=>{let{locationProvider:l,locationEntry:t}=e,s="specified"===l,{specifiedLocationData:o,specifiedLocationError:d,isSpecifiedLocationLoading:c}=(0,i.v)(s?t:null),u=s&&o&&t?(0,r.I)(o):void 0;return(0,a.jsx)(n,{location:u,initializing:s&&c,initialError:s?d:void 0})},o=s},32184:(e,l,t)=>{"use strict";t.d(l,{c:()=>o});var a=t(26404),r=t(38131),i=t(12565),n=t(23708),s=t(92670);let o=()=>{let e=(0,r.N)(),l=(0,s.A)(),t=(0,i.usePathname)();return(0,a.useCallback)(a=>{var r,i,s,o,d,c;let{eventName:u,eventAttributes:m={}}=a;if(!(null==(i=window.mParticle)||null==(r=i.isInitialized)?void 0:r.call(i)))return void console.warn("MParticle is not initialized");let h={...m,author:(null==l?void 0:l.author)||"",contentId:(null==l?void 0:l.contentId)||m.contentId,...e,url:t?(0,n.EY)(t):""};try{null==(c=window.mParticle)||null==(d=c.logEvent)||d.call(c,u,null==(o=window.mParticle)||null==(s=o.EventType)?void 0:s.Other,h),console.debug('MParticle: Video Event tracked - "'.concat(u,'"'),h)}catch(e){console.error('MParticle: Failed to track Video Event - "'.concat(u,'"'),e)}},[null==l?void 0:l.author,null==l?void 0:l.contentId,e,t])}},34159:(e,l,t)=>{"use strict";l.K=n;let a=t(65139),r=t(79714),i=t(4843);async function n(e){let l=(0,a.getPollenDaypartUrlConfig)(e),t=(0,r.urlFrom)(l),n=await fetch(t,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return await (0,i.handleFetchResponse)(n)}},34246:(e,l,t)=>{"use strict";t.d(l,{A:()=>ee});var a=t(62024),r=t(26404),i=t(74743),n=t(12514),s=t(28335),o=t(74449),d=t(5996),c=t(62792),u=t(61885),m=t(70629),h=t(6384),x=t(7771),v=t(91592);let p=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Rain Snow Wintery Mix"}):t?(0,a.jsx)("title",{id:r,children:t}):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"})]})]})}),g=r.forwardRef((e,l)=>(0,a.jsx)(v.h,{ref:l,icon:p,...e}));g.displayName="RainSnowWinteryMix";var f=t(83728),y=t(97509);let b=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Feels Like"}):t?(0,a.jsx)("title",{id:r,children:t}):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"})]})]})}),w=r.forwardRef((e,l)=>(0,a.jsx)(v.h,{ref:l,icon:b,...e}));w.displayName="FeelsLike";var j=t(74282),N=t(59139),C=t(97349),T=t(40947);let A=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Cloud Cover"}):t?(0,a.jsx)("title",{id:r,children:t}):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"})]})}),k=r.forwardRef((e,l)=>(0,a.jsx)(v.h,{ref:l,icon:A,...e}));k.displayName="CloudCover";var S=t(99834);let I=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Wind Gust"}):t?(0,a.jsx)("title",{id:r,children:t}):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"})]})}),_=r.forwardRef((e,l)=>(0,a.jsx)(v.h,{ref:l,icon:I,...e}));_.displayName="WindGust";var R=t(54737),M=t(95190);let P=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"moonrise"}):t?(0,a.jsx)("title",{id:r,children:t}):null,(0,a.jsx)("g",{fill:"currentColor",children:(0,a.jsx)("path",{d:"M14.5 14h-13a.5.5 0 0 0 0 1h13a.5.5 0 0 0 0-1M12.975 12.501c.027.275-.199.499-.475.499s-.497-.225-.531-.5a4 4 0 0 0-.678-1.774c-.158-.227-.143-.542.063-.726.205-.184.524-.168.687.055.523.717.846 1.562.934 2.446M8.03 12.5c-.034.274-.255.5-.531.5s-.502-.224-.475-.498a4.96 4.96 0 0 1 1.853-3.404 4.005 4.005 0 0 0-4.845 3.404c-.035.274-.256.498-.531.498-.277 0-.503-.225-.475-.5A5.006 5.006 0 0 1 8 8c.772 0 1.533.18 2.223.526a.5.5 0 0 1 0 .895A3.98 3.98 0 0 0 8.03 12.5M8.471 1.195a.667.667 0 0 0-.942 0L5.853 2.871a.499.499 0 0 0 .705.706L7.5 2.64v3.585a.5.5 0 0 0 1 0V2.639l.942.938a.499.499 0 0 0 .705-.706z"})})]})}),L=r.forwardRef((e,l)=>(0,a.jsx)(v.h,{ref:l,icon:P,...e}));L.displayName="Moonrise";let E=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Foggy"}):t?(0,a.jsx)("title",{id:r,children:t}):null,(0,a.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:[(0,a.jsx)("path",{d:"M9.984 3.633c-.602-.476-1.421-.8-2.464-.541-1.904.47-2.363 2.031-2.363 3.037v.5h-.5c-.252 0-.531.081-.783.199-.257.12-.429.25-.474.296a.5.5 0 1 1-.714-.699c.156-.16.442-.353.766-.504.21-.098.46-.19.729-.243.133-1.26.854-3.002 3.099-3.557 1.404-.347 2.534.103 3.324.729a4.6 4.6 0 0 1 1.27 1.568c.955.204 2.28.915 2.542 2.77.145 1.026-.165 1.816-.629 2.375a3.16 3.16 0 0 1-1.456.985.5.5 0 0 1-.29-.958c.26-.078.668-.293.976-.665.296-.356.512-.868.41-1.596-.205-1.445-1.28-1.888-1.97-1.967l-.326-.038-.095-.314c-.076-.25-.429-.883-1.052-1.377M1 12.703a.5.5 0 0 1 .5-.5h6.625a.5.5 0 0 1 0 1H1.5a.5.5 0 0 1-.5-.5"}),(0,a.jsx)("path",{d:"M3.51 10.51a.5.5 0 0 1 .5-.5h6.625a.5.5 0 1 1 0 1H4.009a.5.5 0 0 1-.5-.5M1 8.414a.5.5 0 0 1 .5-.5h6.625a.5.5 0 0 1 0 1H1.5a.5.5 0 0 1-.5-.5"})]})]})}),D=r.forwardRef((e,l)=>(0,a.jsx)(v.h,{ref:l,icon:E,...e}));D.displayName="Foggy";var F=t(30813),B=t(66087),V=t(60057),z=t(85759),W=t(57109),H=t(45342),U=t(69411),O=t(15057),Q=t(83879),q=t(94825),G=t(35505),Z=t(90681),Y=t(82480);let X=e=>!(0,h.g)(e)||null,$={derive:e=>{let{precipType:l}=e;return"precip"===l?g:"snow"===l?f.D:y.Y}},J={temperatureFeelsLike:{label:(e,l)=>{let{t}=l;return t("feelsLike")},icon:w,value:e=>{let{temperatureFeelsLike:l}=e;return X(l)&&(0,a.jsx)(W.B,{value:l})}},windSpeed:{label:(e,l)=>{let{t}=l;return t("wind")},icon:j.Z,value:(e,l)=>{let{windSpeed:t,windDirectionCardinal:r}=e,{unitName:i}=l,n=(0,z.xP)(i);return X(t)&&(0,a.jsx)(H.Z,{className:"whitespace-nowrap",windSpeed:t,windDirectionCardinal:r,units:n.code,displayMode:"directionalAndCardinal"})}},precipChance:{label:(e,l)=>{let{precipType:t}=e,{t:a}=l;return a("chanceOf".concat((0,x.Z)(null!=t?t:"")))},icon:$,value:e=>{let{precipChance:l}=e;return X(l)&&(0,a.jsx)(U.N,{value:l})}},relativeHumidity:{label:(e,l)=>{let{t}=l;return t("humidity")},icon:N.K,value:e=>{let{relativeHumidity:l}=e;return X(l)&&(0,a.jsx)(U.N,{value:l})}},pressureMeanSeaLevel:{label:(e,l)=>{let{t}=l;return t("pressure")},icon:C.S,value:e=>{let{pressureMeanSeaLevel:l}=e;return X(l)&&(0,a.jsx)(O.S,{pressureMeanSeaLevel:l})}},visibility:{label:(e,l)=>{let{t}=l;return t("visibility")},icon:F.S,value:(e,l)=>{let{visibility:t}=e,{unitName:r}=l;return X(t)&&(0,a.jsx)(Q.b,{visibility:t,units:(0,z.xP)(r).code})}},uvIndex:{label:(e,l)=>{let{t}=l;return t("uvIndex")},icon:T.o,value:e=>{let{uvIndex:l}=e;return X(l)&&(0,a.jsx)(q.M,{uvIndex:l})}},cloudCover:{label:(e,l)=>{let{t}=l;return t("cloudCover")},icon:k,value:e=>{let{cloudCover:l}=e;return X(l)&&(0,a.jsx)(U.N,{value:l})}},accumulation:{label:(e,l)=>{let{precipType:t}=e,{t:a}=l;return a("".concat(t,"Amount"))},icon:$,value:(e,l)=>{let{qpf:t,qpfSnow:r,precipType:i}=e,{unitName:n}=l;return X(t)||X(r)?(0,a.jsx)(G.e,{precipType:i,qpf:t,qpfSnow:r,units:(0,z.xP)(n).code}):null}},temperatureDewPoint:{label:(e,l)=>{let{t}=l;return t("dewPoint")},icon:S.$,value:e=>{let{temperatureDewPoint:l}=e;return X(l)&&(0,a.jsx)(W.B,{value:l})}},windGust:{label:(e,l)=>{let{t}=l;return t("windGust")},icon:_,value:(e,l)=>{let{windGust:t}=e,{unitName:r}=l;return(0,a.jsx)(H.Z,{windSpeed:null!=t?t:void 0,units:(0,z.xP)(r).code})}},sunrise:{label:(e,l)=>{let{t}=l;return t("sunrise")},icon:R.m,value:(e,l)=>{let{sunriseTimeLocal:t}=e,{locale:a}=l;return t?(0,B.P)({date:(0,V.r)(t),timeZone:"Etc/GMT",locale:a,minutes:!0}):"--"}},sunset:{label:(e,l)=>{let{t}=l;return t("sunset")},icon:M.d,value:(e,l)=>{let{sunsetTimeLocal:t}=e,{locale:a}=l;return t?(0,B.P)({date:(0,V.r)(t),timeZone:"Etc/GMT",locale:a,minutes:!0}):"--"}},moonrise:{label:(e,l)=>{let{t}=l;return t("moonrise")},icon:L,value:(e,l)=>{let{moonriseTimeLocal:t}=e,{locale:a}=l;return t?(0,B.P)({date:(0,V.r)(t),timeZone:"Etc/GMT",locale:a,minutes:!0}):"--"}},moonset:{label:(e,l)=>{let{t}=l;return t("moonset")},icon:L,value:(e,l)=>{let{moonsetTimeLocal:t}=e,{locale:a}=l;return t?(0,B.P)({date:(0,V.r)(t),timeZone:"Etc/GMT",locale:a,minutes:!0}):"--"}},moonPhase:{label:"",icon:{derive:e=>{let{moonPhaseCode:l}=e;return e=>(0,a.jsx)(Y.r,{...e,moonPhaseCode:l})}},value:e=>{let{moonPhase:l}=e;return X(l)&&l}},airQuality:{label:(e,l)=>{let{t}=l;return t("airQuality")},icon:D,value:e=>{let{airQualityIndex:l,airQualityCategory:t}=e;return X(l)&&(0,a.jsx)(Z.y,{airQualityIndex:l,airQualityCategory:t})}}},K=(0,n.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)]"}}}),ee=(0,r.memo)(e=>{let{dataPoints:l,fields:t,locale:n,columns:h,children:x}=e,{small:v=2,medium:p=3,large:g=4}="object"==typeof h?h||{}:{small:h,medium:h,large:h},[f,y]=(0,u.r)(e=>e>=m.c["@xl"]?g:e>=m.c["@xs"]?p:v),b=f||p,w=(0,s.c)("DetailsTable"),j={unitName:(0,i.md)(c.Yt),t:w,locale:n},N=0;return(0,a.jsx)(o.Zp,{ref:y,className:"border-2xl @container/detailsTable h-full bg-gray-100 p-0",children:(0,a.jsxs)(o.Wu,{className:"px-4 py-4 @xl/detailsTable:px-6",children:[x&&(0,a.jsx)("div",{children:x}),(0,a.jsx)("ul",{className:K({cols:b}),children:t.map((e,i)=>{let n,s=J[e],o=null==s?void 0:s.value(l,j);if(!s||!o)return N++,null;let c="derive"in s.icon?s.icon.derive(l,j):s.icon,u="function"==typeof s.label?s.label(l,j):s.label,m=t.length-N,h=i-N,x=m%b;if(h===m-1&&0!==x){let e=b-x+1;n={gridColumn:"span ".concat(e," / span ").concat(e)}}return(0,a.jsxs)(r.Fragment,{children:[h>0&&h%b==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:"flex gap-1 @md/detailsTable:gap-1.5 @xl/detailsTable:gap-2",style:n,children:[c&&(0,a.jsx)(c,{className:"size-4 @md/detailsTable:size-5"}),(0,a.jsxs)("div",{children:[u&&(0,a.jsx)(d.Ay,{variant:"Body.M",className:"mb-0.5 text-sm leading-normal @xl/detailsTable:text-base",children:u}),(0,a.jsx)(d.Ay,{elementType:"string"==typeof o?"p":"div",variant:"Body.L.Bold",className:"text-sm leading-normal @xl/detailsTable:text-base",children:o})]})]})]},u+h)})})]})})})},34760:(e,l,t)=>{"use strict";t.r(l),t.d(l,{AirQualityIndexBlock:()=>w,default:()=>j});var a=t(62024),r=t(22192),i=t.n(r),n=t(93202),s=t(19196),o=t(74186),d=t(51707),c=t(5996),u=t(34824);let m=e=>{let{airQualityIndex:l,airQualityCategory:t,description:r="Air quality is acceptable; however, for some pollutants there may be a moderate health concern for a very small number of people who are unusually sensitive to air pollution.",source:m,disclaimer:h,detailsUrl:x,className:v}=e;return(0,a.jsxs)("div",{className:(0,d.cn)("bg-card flex flex-col gap-4 border-b border-gray-500 pb-6 pl-3",v),"data-testid":"AirQualityIndex",children:[(0,a.jsx)(c.EY,{variant:"Title.S",className:"pb-4",children:"Air Quality Index"}),(0,a.jsxs)("div",{className:"flex items-center gap-6",children:[(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsx)(n.V,{value:l,maxValue:500,diameter:80,strokeWidth:8,displayValue:l,textClassName:"text-[32px] font-light"})}),(0,a.jsxs)("div",{className:"flex flex-1 flex-col gap-2",children:[(0,a.jsx)(c.EY,{elementType:"h2",className:"text-base leading-tight font-semibold text-gray-900 @md:text-lg @lg:text-xl @xl:text-2xl",children:t}),(0,a.jsxs)(c.EY,{elementType:"p",className:"text-sm font-normal text-gray-500 @md:text-base",children:[" ",r]})]})]}),x&&(0,a.jsx)("div",{className:"flex justify-end",children:(0,a.jsx)(s.$n,{asChild:!0,className:"m-4 mb-0",children:(0,a.jsx)(i(),{href:x,children:"See details"})})}),(0,a.jsxs)(u.AM,{children:[(0,a.jsx)(u.Wv,{asChild:!0,className:"max-w-[140px]",children:(0,a.jsxs)("button",{className:"text-text-secondary hover:text-text-primary flex cursor-pointer items-center gap-2 text-sm transition-colors",children:[(0,a.jsx)(o.A,{className:"h-4 w-4"}),(0,a.jsx)(c.EY,{variant:"Caption.M",className:"text-gray-500",children:"Air Quality Index"})]})}),(0,a.jsx)(u.hl,{align:"start",className:"w-[320px] p-4",children:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsxs)("div",{className:"max-w-[200px] flex-1",children:[(0,a.jsx)("h3",{className:"text-text-primary mb-3 text-sm font-semibold",children:"Levels"}),(0,a.jsx)("div",{className:"space-y-2",children:[{name:"Good",color:"#308020",range:"0-50"},{name:"Moderate",color:"#FFDE33",range:"51-100"},{name:"Unhealthy for Sensitive Groups",color:"#FF9933",range:"101-150"},{name:"Unhealthy",color:"#CC0033",range:"151-200"},{name:"Very Unhealthy",color:"#660099",range:"201-300"},{name:"Hazardous",color:"#660099",range:"301-500"}].map(e=>(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:"h-3 w-3 flex-shrink-0 rounded-full",style:{backgroundColor:e.color}}),(0,a.jsxs)("span",{className:"text-text-primary text-sm",children:[e.name," (",e.range,")"]})]},e.name))})]}),(m||h)&&(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h3",{className:"text-text-primary mb-3 text-sm font-semibold",children:"Source"}),(0,a.jsxs)("div",{className:"text-text-secondary space-y-2 text-xs",children:[m&&(0,a.jsx)("p",{children:m}),h&&(0,a.jsx)("p",{children:h})]})]})]})})]})]})};var h=t(47107),x=t(12565),v=t(44344),p=t(10948),g=t(63045);let f=e=>{var l,t,r,i;let{location:n,initializing:s,initialError:o}=e,{effectiveLocation:d,isLocationLoading:c}=(0,h.s)({location:n}),u=null==(l=(0,x.useParams)())?void 0:l.locale,{airQualityData:f,error:y,isLoading:b}=(e=>{let{effectiveLocation:l,locale:t}=e,{data:a,error:r,isLoading:i}=(0,v.Ay)(l?["get-air-quality-forecast",l.geocode,g.AirQualityForecastDuration.TWENTY_FOUR_HOUR,g.AirQualityScale.EPA,t]:null,e=>{let[l,t,a,r,i]=e;return(0,p.getHourlyAirQualityForecast)({geocode:t,duration:a,scale:r,language:i})},{revalidateOnFocus:!1,dedupingInterval:6e4});return{airQualityData:a,error:r,isLoading:i}})({effectiveLocation:d,locale:u});if(s||b||c||!f)return(0,a.jsx)("div",{className:"flex items-center justify-center p-6",children:(0,a.jsx)("div",{className:"text-text-secondary",children:"Loading air quality data..."})});if(o||y||!(null==f||null==(t=f.forecast)?void 0:t.length))return(0,a.jsx)("div",{className:"flex items-center justify-center p-6",children:(0,a.jsx)("div",{className:"text-text-secondary",children:"Unable to load air quality data"})});let w=f.forecast[0];if(!w)return(0,a.jsx)("div",{className:"flex items-center justify-center p-6",children:(0,a.jsx)("div",{className:"text-text-secondary",children:"Unable to load air quality data"})});let j=d?"/".concat(u,"/forecast/air-quality/l/").concat(d.geocode):void 0;return(0,a.jsx)(m,{airQualityIndex:w.airQualityIndex,airQualityCategory:w.airQualityCategory,description:null==(i=w.messages)||null==(r=i.general)?void 0:r.text,source:f.source,disclaimer:f.disclaimer,detailsUrl:j})};var y=t(2212),b=t(10478);let w=e=>{let{locationProvider:l,locationEntry:t}=e,r="specified"===l,{specifiedLocationData:i,specifiedLocationError:n,isSpecifiedLocationLoading:s}=(0,y.v)(r?t:null),o=r&&i&&t?(0,b.I)(i):void 0;return(0,a.jsx)(f,{location:o,initializing:r&&s,initialError:r?n:void 0})},j=w},35111:(e,l)=>{"use strict";l.k=void 0,l.k=e=>{let{phenomena:l,significance:t,areaId:a,officeCode:r,eventTrackingNumber:i,locId:n}=e;return"".concat("/weather/alerts/localalerts/l/".concat(n),"?phenomena=").concat(l,"&significance=").concat(t,"&areaid=").concat(a,"&office=").concat(r,"&etn=").concat(i)}},35505:(e,l,t)=>{"use strict";t.d(l,{e:()=>n});var a=t(62024);t(26404);var r=t(51707),i=t(85759);let n=e=>{let l,t,{precipType:n="rain",rain:s,snow:o,qpf:d=0,qpfSnow:c=0,units:u,unitOverride:m,className:h,unitClass:x}=e,v=null!=s?s:d,p=null!=o?o:c,g=u?(0,i.Bu)(u):null;if("snow"===n)l=p,t="accumulation";else if("rain"===n)l=v,t="precip";else if("precip"===n){let e=Number(v)>=Number(p);l=e?v:p,t=e?"precip":"accumulation"}else l=v,t="precip";let f=null==g?void 0:g[t];return(0,a.jsxs)("span",{"data-testid":"AccumulationValue",className:(0,r.cn)(h),children:[(0,a.jsx)("span",{children:l})," ",(0,a.jsx)("span",{className:(0,r.cn)(x),children:m||f})]})}},36037:(e,l,t)=>{"use strict";t.r(l),t.d(l,{VideoBlock:()=>j,default:()=>N});var a=t(62024),r=t(26404),i=t(44344),n=t(10156),s=t(90269),o=t(8417),d=t(43781),c=t(85371),u=t(32184),m=t(16655),h=t(88369),x=t(51707),v=t(25890),p=t(92829),g=t(74743),f=t(11525);let y={src:"/_next/static/media/placeholder.6858ca75.jpg"},b=(0,t(71842).h)("video:events"),w=async e=>{let l=await fetch(e);if(!l.ok)throw Error("Failed to fetch video data from ".concat(e));return l.json()},j=e=>{var l;let{file:t,image:j,title:N,description:C,tracks:T=[],playlist:A,custom:k={},playerSettings:S,descriptionAttributes:I,videoReference:_,playlistsReference:R=[]}=e,M="video-player-".concat((0,r.useId)()),P=(0,r.useRef)(!0),L=(0,r.useRef)(null),E=(null==(l=(0,v.J)())?void 0:l.user)||{},D=(0,g.md)(f.a),F=E.isUserPremium||D,B=(0,p.z)(),V=null;_&&("string"==typeof _?V="/api/payload/videos/".concat(_):"object"==typeof _&&(V=(null==_?void 0:_.id)?"/api/payload/videos/".concat(_.id):null));let{data:z,error:W}=(0,i.Ay)(V,w,{revalidateOnFocus:!1,dedupingInterval:3e5}),H=(0,u.c)(),U=(0,r.useMemo)(()=>{let e=[];return!Array.isArray(T)&&(null==T?void 0:T.file)?e.push(T):Array.isArray(T)&&e.push(...T),e},[T]),O=(0,r.useMemo)(()=>z&&Object.keys(z).length>0||_&&"string"!=typeof _,[z,_]),Q=(0,r.useMemo)(()=>z&&Object.keys(z).length>0?z:_&&"string"!=typeof _?_:null,[z,_]),q=(0,r.useMemo)(()=>{var e,l,a,r,i,n,s,o,d;return O&&(null==Q||null==(l=Q.content)||null==(e=l.videoFormatUrls)?void 0:e.length)>0?(null==Q||null==(r=Q.content)||null==(a=r.defaultFormat)?void 0:a.url)?null==Q||null==(d=Q.content)||null==(o=d.defaultFormat)?void 0:o.url:null==Q||null==(s=Q.content)||null==(n=s.videoFormatUrls)||null==(i=n[0])?void 0:i.url:t},[O,Q,t]),G=(0,r.useMemo)(()=>{if(O){var e,l,t;return(null==Q||null==(e=Q.content)?void 0:e.keyFrameImage)||(null==Q||null==(t=Q.seo)||null==(l=t.image)?void 0:l.url)||j}return j},[O,Q,j]),Z=(0,r.useMemo)(()=>O&&(null==Q?void 0:Q.title)||N,[O,Q,N]),Y=(0,r.useMemo)(()=>{if(O&&(null==Q?void 0:Q.description)){var e,l,t;return(null==(t=Q.description.root)||null==(l=t.children[0])||null==(e=l.children[0])?void 0:e.text)||C}return C},[O,Q,C]),X=(0,r.useMemo)(()=>{if(L.current&&JSON.stringify({file:q,image:G,title:Z,description:Y,tracks:U,playlist:A,custom:k})===JSON.stringify(L.current))return L.current;let e=G||(q?(0,s.e)(q):null)||y.src,l={file:q,image:e,title:Z,description:Y,tracks:U,custom:k};return L.current=l,l},[q,G,Z,Y,U,A,k]),$=(0,r.useMemo)(()=>{var e,l,t,a;let r=[];return A&&(r=(0,o.K)(A,X)||[]),R&&R.length,O&&(null==Q||null==(e=Q.content)?void 0:e.playlists)&&Array.isArray(null==Q||null==(l=Q.content)?void 0:l.playlists)&&(null==Q||null==(a=Q.content)||null==(t=a.playlists)||t.length),r.length>0?r:[X]},[A,X,R,Q,O]);if((0,r.useEffect)(()=>{P.current=!0},[$]),_&&"string"==typeof _&&!z&&!W)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-t-2 border-b-2 border-gray-900"})});if(W)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(!q)return null;let J=[...d.v,...c.yW].map(e=>{let{eventName:l,callback:t}=e;return{eventName:l,callback:e=>{let{event:a,player:r}=e;"time"!==l&&b.info("[".concat(l,"]:"),a),t({event:a,player:r,isFirstPlayRef:P,user:E,trackVideoEvent:H,isMobile:B})}}});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.DebugCollector,{componentName:"VideoBlock",data:{props:{file:t,image:j,title:N,description:C,tracksCount:(0,h.J)(U),hasPlaylist:!!A&&A.length>0,custom:k},state:{videoObject:X,playlistItems:$.length,isFirstPlay:P.current,events:J.map(e=>e.eventName)},performance:{}}}),(0,a.jsx)("div",{className:"overflow-hidden rounded-lg",children:(0,a.jsx)(n.h,{playlist:$,events:J,setupParams:{ads:!F}},M)}),(null==S?void 0:S.showDescriptions)&&(0,a.jsx)("p",{...I,className:(0,x.cn)("my-2 text-sm",null==I?void 0:I.className),children:X.title})]})},N=j},40947:(e,l,t)=>{"use strict";t.d(l,{o:()=>s});var a=t(62024),r=t(26404),i=t(91592);let n=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Uv Index"}):t?(0,a.jsx)("title",{id:r,children:t}):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"})]})}),s=r.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:n,...e}));s.displayName="UvIndex"},42149:(e,l,t)=>{"use strict";t.r(l),t.d(l,{PromoDriverBlock:()=>s,default:()=>o});var a=t(62024);t(26404);var r=t(26104),i=t(80891),n=t(18675);let s=e=>{let{title:l,image:t,subtitle:s,bodyText:o,ctaButton:d}=e,c=(null==d?void 0:d.url)&&/^https?:\/\//i.test(d.url),u=(0,n.bt)(t)?t:null;return l||u&&(null==u?void 0:u.url)||s||o||d?(0,a.jsxs)("div",{className:"overflow-hidden rounded-lg bg-white",children:[l&&(0,a.jsx)("div",{className:"p-4",children:(0,a.jsx)("h3",{className:"text-xl font-semibold text-gray-900",children:l})}),(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)(r.default,{src:u.url,alt:l||"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 rounded-lg bg-black px-4 py-2 text-base font-normal text-ellipsis whitespace-nowrap text-white",children:d.text}):(0,a.jsx)(i.default,{href:d.url||"#",target:d.openInNewTab?"_blank":"_self",className:"inline-block max-w-[200px] overflow-hidden rounded-lg bg-black px-4 py-2 text-base font-normal text-ellipsis whitespace-nowrap text-white",children:d.text})})]})]})]}):null},o=s},43781:(e,l,t)=>{"use strict";t.d(l,{v:()=>b});var a=t(71842);let r=(0,a.h)("AdUtils"),i=async e=>{let{player:l,user:t,ctx:a={},isMobile:r=!1}=e;if(!l)return;if(null==t?void 0:t.isUserPremium)return void l.play();let i=await n(a,r);i?l.playAd(i):l.play()},n=async function(e){let l,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!c())return null;let a=o(e,t),i=s({},e.iab);window.__Helios.emit("UPDATE_AD_UNIT_PATH",a);try{var n,u,m;null==(m=window.__Helios.modules)||null==(u=m.iabc)||null==(n=u.update)||n.call(u,{page:i,site:{v1:["IAB15-10_Weather"],v3:["390_Weather"]}})}catch(e){r.error("Error updating IABC parameters",e)}try{l=await d()}catch(e){l=null,r.error("Error getting ad tag",e)}return window.__Helios.emit("UPDATE_AD_UNIT_PATH",a),l},s=(e,l)=>{let t={...e};for(let e in l)Array.isArray(l[e])?(t[e]=[...t[e]||[],...l[e]],t[e]=[...new Set(t[e])]):"object"==typeof l[e]&&null!==l[e]?t[e]=s(t[e]||{},l[e]):t[e]=l[e];return t},o=(e,l)=>{var t,a,r,i,n,s;let o=null==(a=window)||null==(t=a.__HeliosConfig)?void 0:t.generalConfig,d=null!=(n=null==o||null==(r=o.targeting)?void 0:r.networkCode)?n:"/7646",c=null!=(s=null==o||null==(i=o.targeting)?void 0:i.adUnits)?s:l?"mobile_smart_us":"web_weather_us",u=e.collectionAdZone||e.adzone||"video";return"".concat(d,"/").concat(c,"/").concat(u)},d=async()=>{let e=[];try{var l;e=await (null==(l=window)?void 0:l.__Helios.video.requestVideoBids())}catch(e){r.error("Error getting video bids",e)}return await window.__Helios.modules.videoTag.createAdTag(e)},c=()=>{try{var e,l,t,a,r;return"function"==typeof(null==(l=window.__Helios)||null==(e=l.video)?void 0:e.requestVideoBids)&&"function"==typeof(null==(r=window.__Helios)||null==(a=r.modules)||null==(t=a.videoTag)?void 0:t.createAdTag)}catch(e){return!1}},u=function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"https";return e.replace(/^\/\//,"".concat(l,"://"))},m=e=>{let{collectionId:l,videoIndex:t,videoId:a}=e||{};return{videoCount:t,videoId:a,collectionId:l}},h=e=>"GDFP"===e||"AdSense/AdX"===e;t(62024),t(23504);var x=t(37811);let v=(0,a.h)("NewRelic");function p(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var t,a,r;null==(r=window)||null==(a=r.NREUM)||null==(t=a.addPageAction)||t.call(a,e,{...g(l,"meta.")})}catch(e){v.error("New Relic: sendReumEvent error",e instanceof Error?e.message:String(e))}}x.env.NEW_RELIC_RUM_ACCOUNT_ID,x.env.NEW_RELIC_RUM_APP_ID,x.env.NEW_RELIC_RUM_LICENSE_KEY;let g=function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.fromEntries(Object.entries(e).map(e=>{let[t,a]=e;return["".concat(l).concat(t),a]}))},f=(0,a.h)("AdEvents"),y=new Set(["amznbid","crt_pb","hb_pb"]),b=[{eventName:"ready",callback:e=>{let{event:l}=e;p("videoReady",{isViewable:!!l.viewable,setupTime:l.setupTime})}},{eventName:"beforePlay",callback:async e=>{var l;let{event:t,player:a,isFirstPlayRef:r,user:n,isMobile:s}=e;if(!(null==r?void 0:r.current))return;let o=a.getPlaylistItem(),d=null==o||null==(l=o.custom)?void 0:l.ctx;d&&(d.videoIndex=a.getPlaylistIndex()),p("videoBeforePlay",{...m(d),isViewable:!!t.viewable,playReason:t.playReason}),a.stop(),await i({player:a,user:n,ctx:d,isMobile:s}),r.current=!1}},{eventName:"adRequest",callback:e=>{var l;let{event:t,player:a}=e,r=a.getPlaylistItem(),i=null==r||null==(l=r.custom)?void 0:l.ctx,n={},s=m(i);try{let e=u(t.tag||""),l=new URL(e).searchParams.get("cust_params"),a=(e=>e?e.split("&").reduce((e,l)=>{let[t,a]=l.split("=");return t&&a&&(e[t]||(e[t]=[]),e[t].push(a)),e},{}):{})(l);for(let e of Object.keys(a))y.has(e)&&(n["".concat("kv_").concat(e)]="".concat(a[e]))}catch(e){f.error("Error parsing cust_params",e)}p("videoAdRequest",{...s,isViewable:!!t.viewable,roll:t.adposition,...n})}},{eventName:"adStarted",callback:e=>{var l,t,a,r,i,n;let{event:s,player:o}=e,d=o.getPlaylistItem(),c=null==d||null==(l=d.custom)?void 0:l.ctx,{duration:u,adposition:x}=s,v=m(c),g="";try{let e=null==(n=s.ima)||null==(i=n.ad)?void 0:i.data;e&&(g=(e=>{let{adSystem:l,adId:t,adWrapperSystems:a,adWrapperIds:r}={adSystem:"",adId:"",adWrapperSystems:[],adWrapperIds:[],...e};if(h(l))return t;let i=a.findIndex(h);return i>=0&&i{var l;let{event:t,player:a}=e,r=a.getPlaylistItem();p("videoStart",{...m(null==r||null==(l=r.custom)?void 0:l.ctx),isViewable:!!t.viewable,loadTime:t.loadTime})}},{eventName:"complete",callback:e=>{var l;let{player:t}=e,a=t.getPlaylistItem();p("videoComplete",{...m(null==a||null==(l=a.custom)?void 0:l.ctx)})}},{eventName:"adSkipped",callback:e=>{var l;let{player:t}=e,a=t.getPlaylistItem();p("videoAdSkip",{...m(null==a||null==(l=a.custom)?void 0:l.ctx)})}},{eventName:"playlistItem",callback:async e=>{var l;let{event:t,player:a,isFirstPlayRef:r,user:n,isMobile:s}=e;if(null==r?void 0:r.current)return;let{item:o}=t,d=null==o||null==(l=o.custom)?void 0:l.ctx;d.videoIndex=a.getPlaylistIndex(),a.stop(),await i({player:a,user:n,ctx:d,isMobile:s})}},{eventName:"adComplete",callback:async e=>{let{player:l}=e;l.play()}},{eventName:"adError",callback:async e=>{var l;let{event:t,player:a}=e,r=a.getPlaylistItem();p("videoAdError",{...m(null==r||null==(l=r.custom)?void 0:l.ctx),message:t.message,code:t.code,vastCode:t.vastCode,roll:t.adposition}),f.error("Ad error occurred",t),a.play()}},{eventName:"error",callback:async e=>{var l;let{event:t,player:a}=e,r=a.getPlaylistItem();p("videoError",{...m(null==r||null==(l=r.custom)?void 0:l.ctx),message:t.message,code:t.code}),f.error("Video Player error",t)}},{eventName:"setupError",callback:e=>{let{event:l}=e;p("videoSetupError",{message:l.message,code:l.code})}}]},45342:(e,l,t)=>{"use strict";t.d(l,{Z:()=>h});var a=t(62024),r=t(26404),i=t(51707),n=t(46623),s=t(74282),o=t(85759);let d={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},c=e=>{let{windDirection:l,windDirectionCardinal:t,iconClassName:r,iconColor:o,displayWindDirectionIcon:c,displayMode:u,afterSpeed:m,useWindIcon:h}=e;if(!l&&!t)return null;let x=((e,l)=>null!=e&&Number.isFinite(e)?e:l?d[l]:void 0)(l,t);if(!("directional"===u||"directionalAndCardinal"===u||void 0===u&&c||h)||!h&&!Number.isFinite(x))return null;let v=h?s.Z:n.y;return(0,a.jsx)(v,{className:(0,i.cn)("inline-block size-4 align-middle",m?"ml-0.5":"mr-0.5",r),color:o,style:h?void 0:{transform:"rotate(".concat(x,"deg)")},"aria-label":"Wind direction icon","data-testid":"WindDirectionIcon"})},u=e=>{let{windDirection:l,windDirectionCardinal:t,cardinalClassName:r,displayWindDirectionIcon:i,displayMode:n,beforeSpeed:s}=e;return(l||t)&&("cardinal"===n||"directionalAndCardinal"===n||void 0===n&&!i)&&t?(0,a.jsxs)("span",{className:r,children:[!s&&" ",t,s&&" "]}):null},m=e=>{let{units:l,windUnitClass:t}=e,r=l?(0,o.Bu)(l):null,n=null==r?void 0:r.speed;return(0,a.jsx)("span",{className:(0,i.cn)(t),children:n})},h=(0,r.memo)(e=>{let{windSpeed:l,units:t,className:r,windDirection:n,windDirectionCardinal:s,windSpeedClass:o,windUnitClass:d,iconClassName:h,iconColor:x,cardinalClassName:v,iconAfterSpeed:p,cardinalBeforeSpeed:g,spaceWindSpeedAndUnit:f=!0,displayWindDirectionIcon:y=!1,displayMode:b,useWindIcon:w}=e,j=(0,a.jsx)(c,{windDirection:n,windDirectionCardinal:s,iconClassName:h,iconColor:x,displayWindDirectionIcon:y,displayMode:b,afterSpeed:p,useWindIcon:w}),N=(0,a.jsx)(u,{windDirection:n,windDirectionCardinal:s,displayWindDirectionIcon:y,displayMode:b,beforeSpeed:g,cardinalClassName:v});return(0,a.jsxs)("span",{"data-testid":"Wind",className:(0,i.cn)(r),children:[!p&&j,g&&N,Number.isFinite(l)&&t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:(0,i.cn)(o),children:l}),f&&" ",(0,a.jsx)(m,{units:t,windUnitClass:d})]}):"--",!g&&N,p&&j]})})},46623:(e,l,t)=>{"use strict";t.d(l,{y:()=>s});var a=t(62024),r=t(26404),i=t(91592);let n=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Arrow Down"}):t?(0,a.jsx)("title",{id:r,children:t}):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"})]})}),s=r.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:n,...e}));s.displayName="ArrowDown"},47251:(e,l,t)=>{"use strict";l.o=void 0;let a=t(63045),r={US:a.AirQualityScale.EPA,CN:a.AirQualityScale.HJ6332012,FR:a.AirQualityScale.ATMO,DE:a.AirQualityScale.UBA,GB:a.AirQualityScale.DAQI,IN:a.AirQualityScale.NAQI,MX:a.AirQualityScale.IMECA,ES:a.AirQualityScale.CAQI};l.o=e=>{let{countryCode:l}=e;return r[l]||a.AirQualityScale.EPA}},48858:(e,l,t)=>{"use strict";t.r(l),t.d(l,{ImageAdminBlock:()=>d,default:()=>c});var a=t(62024),r=t(26404),i=t(62194),n=t(82878),s=t(17638),o=t(10436);let d=()=>{var e,l,t,d,c,u,m,h,x,v,p,g;let[f]=(0,i.kV6)(),y=(0,n.r)(f,!0),[b,w]=(0,r.useState)({imageType:null==y?void 0:y.imageType,internalImageId:null==y?void 0:y.internalImageId,externalImageUrl:null==y?void 0:y.externalImageUrl,altText:null==y?void 0:y.altText,showCaption:null==y||null==(e=y.controls)?void 0:e.showCaption,useImageCaption:null==y||null==(l=y.controls)?void 0:l.useImageCaption,caption:null==y||null==(t=y.controls)?void 0:t.caption,credit:null==y||null==(d=y.controls)?void 0:d.credit,alignment:null==y||null==(c=y.controls)?void 0:c.alignment,width:null==y||null==(u=y.controls)?void 0:u.width});(0,r.useEffect)(()=>{var e,l,t,a,r,i;w({imageType:null==y?void 0:y.imageType,internalImageId:null==y?void 0:y.internalImageId,externalImageUrl:null==y?void 0:y.externalImageUrl,altText:null==y?void 0:y.altText,showCaption:null==y||null==(e=y.controls)?void 0:e.showCaption,useImageCaption:null==y||null==(l=y.controls)?void 0:l.useImageCaption,caption:null==y||null==(t=y.controls)?void 0:t.caption,credit:null==y||null==(a=y.controls)?void 0:a.credit,alignment:null==y||null==(r=y.controls)?void 0:r.alignment,width:null==y||null==(i=y.controls)?void 0:i.width})},[null==y?void 0:y.imageType,null==y?void 0:y.internalImageId,null==y?void 0:y.externalImageUrl,null==y?void 0:y.altText,null==y||null==(m=y.controls)?void 0:m.showCaption,null==y||null==(h=y.controls)?void 0:h.useImageCaption,null==y||null==(x=y.controls)?void 0:x.caption,null==y||null==(v=y.controls)?void 0:v.credit,null==y||null==(p=y.controls)?void 0:p.alignment,null==y||null==(g=y.controls)?void 0:g.width]);let j=null;[{data:j}]=(0,i.Q0O)("internal"===b.imageType&&b.internalImageId?"/api/payload/images/".concat(b.internalImageId):"");let N="external"===b.imageType?b.externalImageUrl:null==j?void 0:j.url;return(0,a.jsxs)(s.default,{name:"Image",children:[(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Image Type:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:b.imageType||"Not selected"})]}),(()=>{switch(b.imageType){case"internal":return(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Internal Image ID:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:b.internalImageId||"Not selected"})]});case"external":return(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{className:"text-black-800",children:"External Image URL:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:b.externalImageUrl||"Not provided"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Alt Text:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:b.altText||"Not provided"})]})]});default:return(0,a.jsx)("div",{className:"text-red-500",children:"Image type is undecided."})}})(),(()=>{if(b.showCaption){var e;return(0,a.jsxs)("div",{className:"mb-2",children:["internal"===b.imageType&&(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Use Image Caption:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:b.useImageCaption?"Yes":"No"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Caption:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:"internal"===b.imageType&&b.useImageCaption?(null==j?void 0:j.caption)||"":b.caption||"No caption provided"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Credit:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:"internal"===b.imageType&&b.useImageCaption?(null==j||null==(e=j.seo)?void 0:e.credit)||"":b.credit||"No credit provided"})]})]})}return null})(),(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Alignment:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:b.alignment||"Center"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Width:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:b.width||"Full"})]})]}),N&&(0,a.jsx)(o.A,{src:N,alt:"",className:"max-h-[240px] max-w-[240px]"})]})},c=d},50560:(e,l,t)=>{"use strict";t.r(l),t.d(l,{TaboolaBlock:()=>p,TaboolaBlockView:()=>g,default:()=>f});var a=t(62024),r=t(26404),i=t(12565),n=t(3278),s=t(16655),o=t(51707),d=t(74449),c=t(25890),u=t(74743),m=t(11525),h=t(21979);let x=function(){let{user:e}=(0,c.J)(),[l,t]=(0,r.useState)(!1),a=(0,u.md)(h.W);return(0,r.useEffect)(()=>{a&&t((()=>{try{var e,l,t,a;if(void 0!==(null==(e=window)?void 0:e.DprSdk)){let e=null==(t=window)||null==(l=t.DprSdk)?void 0:l.getFeatureFlags();return null==(a=null==e?void 0:e.taboola)||a}return!0}catch(e){return!0}})())},[a]),l&&!(null==e?void 0:e.isUserPremium)},v=(()=>{let e="",l=!1;return()=>({pushTaboolaCommand:(0,r.useCallback)((t,a,r)=>{window._taboola=window._taboola||[],a!==e&&(""===e||l||(window._taboola.push({notify:"newPageLoad"}),l=!0),e=a,l=!1),window._taboola.push({[r]:"auto",url:a}),window._taboola.push(t),window._taboola.push({flush:!0})},[])})})(),p=e=>{let{showTaboola:l=!0,...t}=e,{user:r}=(0,c.J)(),i=(0,u.md)(m.a),n=x();return r.isUserPremium||i||!n||!l?null:(0,a.jsx)(g,{...t})},g=e=>{let{taboolaId:l,taboolaUiMode:t,placementName:c,title:u="",pageType:m,taboolaType:h,loaderUrl:x}=e,p=(0,r.useRef)(null),[g,f]=(0,r.useState)("pending"),y=(0,i.usePathname)(),{isTaboolaLoaded:b}=(e=>{let[l,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(l)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 a=document.createElement("script");a.src=e,a.id="tb_loader_script",a.async=!0,a.onload=()=>{t(!0)},a.onerror=()=>{console.error("Failed to load Taboola script.")},document.body.appendChild(a)},[l,e]),{isTaboolaLoaded:l}})(x),{pushTaboolaCommand:w}=v(),j=(0,r.useMemo)(()=>{let e=(0,n.j)();return"".concat(e).concat(y||"")},[y]),N="empty"!==g,C=(0,r.useMemo)(()=>{let e="taboola-below-content-thumbnails---video"===l||"taboola-below-content-thumbnails-video"===l;return{container:N?"generic"!==h?"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"}},[l,h,N]);return((0,r.useEffect)(()=>{b&&"pending"===g&&w({mode:t,container:l,placement:c,target_type:"mix"},j,m)},[b,g,w,l,t,c,j,m]),(0,r.useEffect)(()=>{let e=p.current;if(!e||!b)return;let l=new MutationObserver((l,t)=>{try{e.hasChildNodes()?(f("populated"),t.disconnect()):"pending"!==g&&(f("empty"),t.disconnect())}catch(e){console.warn("Error in TaboolaBlock content observer",e)}});return l.observe(e,{childList:!0}),e.hasChildNodes()&&(f("populated"),l.disconnect()),()=>l.disconnect()},[b,g]),b)?"invisible"===h?(0,a.jsx)("div",{id:l,ref:p}):(0,a.jsxs)("section",{className:"@container",children:[(0,a.jsx)(s.DebugCollector,{componentName:"TaboolaBlock",data:{props:{taboolaId:l,taboolaUiMode:t,placementName:c,title:u,taboolaType:h,pageType:m,pageUrl:j,taboolaContentState:g,shouldShow:N}}}),"generic"===h?(0,a.jsxs)(d.Zp,{className:C.container,children:[u&&N&&(0,a.jsx)(d.aR,{className:C.headerContainer,children:(0,a.jsx)("h2",{className:C.header,children:u})}),(0,a.jsx)(d.Wu,{className:(0,o.cn)(C.contentContainer),children:(0,a.jsx)("div",{id:l,className:"bg-none",ref:p})})]}):(0,a.jsxs)("div",{className:C.container,children:[u&&N&&(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:u})}),(0,a.jsx)("div",{id:l,className:"flex min-h-[300px] w-full items-center justify-center",ref:p})]})]}):null},f=p},54737:(e,l,t)=>{"use strict";t.d(l,{m:()=>s});var a=t(62024),r=t(26404),i=t(91592);let n=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Sunrise"}):t?(0,a.jsx)("title",{id:r,children:t}):null,(0,a.jsx)("g",{fill:"currentColor",children:(0,a.jsx)("path",{d:"M14.499 13.5a.5.5 0 1 1 0 1H1.5a.5.5 0 0 1 0-1zM3 11a.5.5 0 0 1 0 1H1.5a.5.5 0 1 1 0-1zM8 9a3 3 0 0 1 2.958 2.502c.046.272-.183.497-.459.497s-.493-.227-.562-.494A2 2 0 0 0 8 10a2 2 0 0 0-1.937 1.505c-.069.267-.287.494-.563.494s-.504-.225-.459-.497A3 3 0 0 1 8 9M14.5 11a.5.5 0 0 1 0 1H13a.5.5 0 1 1 0-1zM3.05 7.05a.5.5 0 0 1 .708 0l1.045 1.046a.5.5 0 0 1-.707.707L3.05 7.757a.5.5 0 0 1 0-.707M12.242 7.05a.5.5 0 0 1 .707.707l-1.046 1.046a.5.5 0 0 1-.707-.707zM7.605 2.397a.56.56 0 0 1 .79 0l1.753 1.753a.5.5 0 0 1-.706.706L8.5 3.917v3.585a.5.5 0 0 1-1 0V3.917l-.942.939a.5.5 0 0 1-.705-.706z"})})]})}),s=r.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:n,...e}));s.displayName="Sunrise"},56144:(e,l,t)=>{"use strict";t.d(l,{AnalyticsBoundary:()=>o});var a=t(43265),r=t(19982),i=t(96255),n=t(69936),s=t(48579);let o=e=>((0,s.u)([[a.m,e.pageId],[r.X,e.pageLocale],[i.u,e.deviceClass],[n.$,e.metricsArticleData]]),null)},57512:(e,l,t)=>{"use strict";t.d(l,{D:()=>s});var a=t(62024),r=t(26404),i=t(91592);let n=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Arrow Up"}):t?(0,a.jsx)("title",{id:r,children:t}):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"})]})}),s=r.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:n,...e}));s.displayName="ArrowUp"},59139:(e,l,t)=>{"use strict";t.d(l,{K:()=>s});var a=t(62024),r=t(26404),i=t(91592);let n=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"humidity"}):t?(0,a.jsx)("title",{id:r,children:t}):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"})]})]})}),s=r.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:n,...e}));s.displayName="Humidity"},60057:(e,l,t)=>{"use strict";t.d(l,{r:()=>r});var a=t(49531);let r=e=>e?(0,a.$)(e).replace(/([+-]\d{2}:?\d{2})$/,"+0000"):""},60672:(e,l,t)=>{"use strict";t.r(l),t.d(l,{ContentMediaBlock:()=>g,default:()=>f});var a=t(62024),r=t(88369),i=t(51707),n=t(73070),s=t(87682),o=t(10436),d=t(27621),c=t(26404),u=t(91592);let m=(0,c.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Play"}):t?(0,a.jsx)("title",{id:r,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M3.5 14a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .741-.438l10 5.5a.5.5 0 0 1 0 .876l-10 5.5A.5.5 0 0 1 3.5 14"})]})}),h=c.forwardRef((e,l)=>(0,a.jsx)(u.h,{ref:l,icon:m,...e}));h.displayName="PlayFilledAlt";var x=t(64673);let v=e=>{let{items:l,title:t,showCategory:r,showDescription:c=!0,template:u="grid",gridColumns:m=2,aspectRatio:v="square",heroStyle:p="side-content",hideTitle:g=!1}=e,f="not-prose";if(l.every(e=>"image"===e.contentType)){let e=l.map(e=>({id:e.id,url:e.overrideThumbnail||e.thumbnail||"",filename:e.overrideTitle||"",caption:c&&(e.overrideDescription||e.description)||"",seo:{altText:e.overrideTitle||e.title},createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}));return(0,a.jsx)("section",{className:f,children:(0,a.jsx)(d.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"})})}if("travel-hero"===u){var y,b,w,j;let e=l[0],d=l.slice(1,4);if(!e)return null;let u=e.overrideTitle||e.title,m=e.overrideThumbnail||e.thumbnail||"/placeholder.svg",N=(null==(y=e.category)?void 0:y.title)||"Weather News",C=e.caption||e.description||"",T=e.duration,A=e.url||"#",k="object"==typeof e.provider&&e.provider?e.provider:null,S=k&&"object"==typeof k.partnerLogo&&(null==(j=k.partnerLogo)||null==(w=j.sizes)||null==(b=w.medium)?void 0:b.url)?k.partnerLogo.sizes.medium.url:void 0;return(0,a.jsxs)(s.Zp,{"aria-label":t,className:(0,i.cn)("@container",f),children:[g?null:(0,a.jsx)(s.aR,{text:t}),(0,a.jsxs)(s.Wu,{children:["side-content"===p?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("a",{href:A,className:"group hidden grid-cols-3 gap-6 rounded-2xl p-3 no-underline transition-all duration-150 hover:bg-gray-100 focus-visible:bg-gray-100 focus-visible:outline-none sm:grid",children:[(0,a.jsx)("div",{className:"relative col-span-2 aspect-[8/5] max-h-[480px] w-full overflow-hidden rounded-lg transition-shadow duration-150 group-hover:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)] group-focus-visible:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)]",children:(0,a.jsx)(o.A,{src:m,alt:u,fill:!0,className:"absolute top-0 left-0 h-full w-full scale-[1.01] object-cover transition-transform duration-150 group-hover:scale-[1.02] group-focus-visible:scale-[1.02]",sizes:"(max-width: 1024px) 100vw, 66vw"})}),(0,a.jsxs)("div",{className:"col-span-1 flex flex-col justify-center gap-4",children:[S&&(0,a.jsx)("div",{className:"relative mb-3 w-52",children:(0,a.jsx)(o.A,{src:S,alt:"",width:208,height:0,className:"h-auto max-h-6 w-full rounded-none object-contain object-left",style:{height:"auto"},sizes:"208px"})}),r&&(0,a.jsx)("span",{className:"inline-block self-start rounded-full bg-blue-600 px-3 py-1 text-xs font-medium text-white",children:N}),(0,a.jsx)("h3",{className:"text-2xl leading-tight font-bold text-gray-900",children:u}),c&&C&&(0,a.jsx)("p",{className:"line-clamp-2 text-base text-gray-600 @[654px]:line-clamp-5 @[854px]:line-clamp-none",children:C}),(0,a.jsx)("div",{className:"flex items-center gap-3",children:T?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"inline-flex h-12 items-center gap-2 rounded-md border border-gray-900 bg-transparent px-4 text-sm font-medium text-gray-900 transition-colors hover:bg-gray-50",children:[(0,a.jsx)(h,{className:"h-4 w-4"}),"Watch"]}),(0,a.jsx)("span",{className:"text-sm text-gray-600",children:(0,x.h)(T)})]}):(0,a.jsx)("span",{className:"inline-flex h-12 items-center gap-2 rounded-md border border-gray-900 bg-transparent px-4 text-sm font-medium text-gray-900 transition-colors hover:bg-gray-50",children:"Read more"})})]})]}),(0,a.jsx)("div",{className:"block sm:hidden",children:(0,a.jsxs)("a",{href:A,className:"group flex flex-col gap-4 rounded-2xl p-3 no-underline transition-all duration-150 hover:bg-gray-100 focus-visible:bg-gray-100 focus-visible:outline-none",children:[(0,a.jsx)("div",{className:"relative aspect-video w-full overflow-hidden rounded-lg transition-shadow duration-150 group-hover:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)] group-focus-visible:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)]",children:(0,a.jsx)(o.A,{src:m,alt:u,fill:!0,className:"absolute top-0 left-0 h-full w-full scale-[1.01] object-cover transition-transform duration-150 group-hover:scale-[1.02] group-focus-visible:scale-[1.02]",sizes:"100vw"})}),(0,a.jsxs)("div",{children:[S&&(0,a.jsx)("div",{className:"relative mb-3 w-40",children:(0,a.jsx)(o.A,{src:S,alt:"",width:160,height:0,className:"h-auto max-h-6 w-full rounded-none object-contain object-left",style:{height:"auto"},sizes:"160px"})}),r&&(0,a.jsx)("span",{className:"mb-2 inline-block rounded-full bg-gray-100 px-3 py-1 text-xs font-medium text-gray-700",children:N}),(0,a.jsx)("h3",{className:"mb-2 text-base leading-tight font-semibold text-gray-900 sm:text-lg md:text-xl lg:text-2xl",children:u}),c&&C&&(0,a.jsx)("p",{className:"mb-2 line-clamp-4 text-sm font-normal text-gray-500 sm:text-base",children:C}),T&&(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(h,{className:"h-6 w-6 text-gray-500"}),(0,a.jsx)("span",{className:"text-sm text-gray-500 sm:text-base",children:(0,x.h)(T)})]})]})]})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("a",{href:A,className:"group hidden rounded-2xl p-3 no-underline transition-all duration-150 hover:bg-gray-100 focus-visible:bg-gray-100 focus-visible:outline-none sm:block",children:(0,a.jsxs)("div",{className:"relative aspect-[8/5] max-h-[480px] w-full overflow-hidden rounded-lg transition-shadow duration-150 group-hover:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)] group-focus-visible:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)]",children:[(0,a.jsx)(o.A,{src:m,alt:u,fill:!0,className:"absolute top-0 left-0 h-full w-full scale-[1.01] object-cover transition-transform duration-150 group-hover:scale-[1.02] group-focus-visible:scale-[1.02]",sizes:"100vw"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-[linear-gradient(to_right,rgba(17,30,55,0.76)_0%,rgba(17,30,55,0.61)_33%,rgba(17,30,55,0)_100%)]"}),(0,a.jsxs)("div",{className:"absolute bottom-0 left-0 max-w-full p-6 text-white sm:max-w-[50%] sm:p-8 sm:pr-0",children:[S&&(0,a.jsx)("div",{className:"relative mb-6 w-64",children:(0,a.jsx)(o.A,{src:S,alt:"",width:256,height:0,className:"h-auto max-h-6 w-full rounded-none object-contain object-left brightness-0 invert",style:{height:"auto"},sizes:"256px"})}),r&&(0,a.jsx)("span",{className:"mb-3 inline-block rounded-full bg-white/20 px-3 py-1 text-xs font-medium backdrop-blur-sm",children:N}),(0,a.jsx)("h3",{className:"mb-3 text-2xl leading-tight font-bold sm:text-[32px]",children:u}),c&&C&&(0,a.jsx)("p",{className:"mb-4 line-clamp-2 text-base text-white/90 sm:text-lg @[604px]:line-clamp-5 @[754px]:line-clamp-none",children:C}),(0,a.jsx)("div",{className:"flex items-center gap-3",children:T?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"inline-flex h-12 items-center gap-2 rounded-md border border-gray-900 bg-white px-4 text-sm font-medium text-gray-900 transition-colors hover:bg-gray-50",children:[(0,a.jsx)(h,{className:"h-4 w-4"}),"Watch"]}),(0,a.jsx)("span",{className:"text-sm text-white",children:(0,x.h)(T)})]}):(0,a.jsx)("span",{className:"inline-flex h-12 items-center gap-2 rounded-md border border-gray-900 bg-white px-4 text-sm font-medium text-gray-900 transition-colors hover:bg-gray-50",children:"Read more"})})]})]})}),(0,a.jsx)("div",{className:"block sm:hidden",children:(0,a.jsxs)("a",{href:A,className:"group flex flex-col gap-4 rounded-2xl p-3 no-underline transition-all duration-150 hover:bg-gray-100 focus-visible:bg-gray-100 focus-visible:outline-none",children:[(0,a.jsx)("div",{className:"relative aspect-video w-full overflow-hidden rounded-lg transition-shadow duration-150 group-hover:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)] group-focus-visible:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)]",children:(0,a.jsx)(o.A,{src:m,alt:u,fill:!0,className:"absolute top-0 left-0 h-full w-full scale-[1.01] object-cover transition-transform duration-150 group-hover:scale-[1.02] group-focus-visible:scale-[1.02]",sizes:"100vw"})}),(0,a.jsxs)("div",{children:[S&&(0,a.jsx)("div",{className:"relative mb-3 w-40",children:(0,a.jsx)(o.A,{src:S,alt:"",width:160,height:0,className:"h-auto max-h-6 w-full rounded-none object-contain object-left",style:{height:"auto"},sizes:"160px"})}),r&&(0,a.jsx)("span",{className:"mb-2 inline-block rounded-full bg-gray-100 px-3 py-1 text-xs font-medium text-gray-700",children:N}),(0,a.jsx)("h3",{className:"mb-2 text-base leading-tight font-semibold text-gray-900 sm:text-lg md:text-xl lg:text-2xl",children:u}),c&&C&&(0,a.jsx)("p",{className:"mb-2 line-clamp-4 text-sm font-normal text-gray-500 sm:text-base",children:C}),T&&(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(h,{className:"h-6 w-6 text-gray-500"}),(0,a.jsx)("span",{className:"text-sm text-gray-500 sm:text-base",children:(0,x.h)(T)})]})]})]})})]}),d.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"hidden grid-cols-3 sm:grid",children:d.map(e=>{var l,t,i,s;let o=e.overrideTitle||e.title,d=e.overrideThumbnail||e.thumbnail||"/placeholder.svg",u=(null==(l=e.category)?void 0:l.title)||"Weather News",m=c&&(e.caption||e.description)||void 0,h="object"==typeof e.provider&&e.provider?e.provider:null,x=h&&"object"==typeof h.partnerLogo&&(null==(s=h.partnerLogo)||null==(i=s.sizes)||null==(t=i.small)?void 0:t.url)?h.partnerLogo.sizes.small.url:void 0;return(0,a.jsx)(n.S,{heading:r?u:void 0,description:o,href:e.url,imageUrl:d,showIcon:!1,dir:"col",badgeStyle:!!r,bodyText:m,duration:e.duration||void 0,aspectRatio:v||"square",partnerLogoThumbnailUrl:x,partnerLogoWhite:!0,partnerLogoPosition:"default"},e.id)})}),(0,a.jsx)("div",{className:"flex flex-col sm:hidden",children:d.map(e=>{var l,t,i,s;let o=e.overrideTitle||e.title,d=e.overrideThumbnail||e.thumbnail||"/placeholder.svg",u=(null==(l=e.category)?void 0:l.title)||"Weather News",m=c&&(e.caption||e.description)||void 0,h="object"==typeof e.provider&&e.provider?e.provider:null,x=h&&"object"==typeof h.partnerLogo&&(null==(s=h.partnerLogo)||null==(i=s.sizes)||null==(t=i.small)?void 0:t.url)?h.partnerLogo.sizes.small.url:void 0;return(0,a.jsx)(n.S,{heading:r?u:void 0,description:o,href:e.url,imageUrl:d,showIcon:!1,dir:"row",badgeStyle:!!r,bodyText:m,duration:e.duration||void 0,aspectRatio:v||"square",imageWidth:"w-40 flex-shrink-0",partnerLogoThumbnailUrl:x,partnerLogoWhite:!0,partnerLogoPosition:"compact"},e.id)})})]})]})]})}return(0,a.jsxs)(s.Zp,{"aria-label":t,className:(0,i.cn)("@container",f),children:[g?null:(0,a.jsx)(s.aR,{text:t}),(0,a.jsx)(s.Wu,{className:(()=>{if("list"===u)return"flex flex-col";if("grid"===u){let e={1:"grid-cols-1",2:"grid-cols-1 @md:grid-cols-2",3:"grid-cols-1 @md:grid-cols-2 @lg:grid-cols-3",4:"grid-cols-1 @md:grid-cols-2 @lg:grid-cols-4",5:"grid-cols-1 @md:grid-cols-2 @lg:grid-cols-5",6:"grid-cols-1 @md:grid-cols-2 @lg:grid-cols-3 @xl:grid-cols-6",7:"grid-cols-1 @md:grid-cols-2 @lg:grid-cols-3 @xl:grid-cols-7",8:"grid-cols-1 @md:grid-cols-2 @lg:grid-cols-4 @xl:grid-cols-8"},l=e[null!=m?m:2]||e[2];return"grid ".concat(l)}return"grid grid-cols-1 @md:grid-cols-2"})(),children:l.map(e=>{var l,t,i,s;let o=e.overrideTitle||e.title,d=e.overrideThumbnail||e.thumbnail||"/placeholder.svg",m=(null==(l=e.category)?void 0:l.title)||"Weather News",h=c&&(e.caption||e.description)||void 0,x="object"==typeof e.provider&&e.provider?e.provider:null,p="list"===u?"thumbnail":"small",g=x&&"object"==typeof x.partnerLogo&&(null==(s=x.partnerLogo)||null==(i=s.sizes)||null==(t=i[p])?void 0:t.url)?x.partnerLogo.sizes[p].url:void 0;return(0,a.jsx)(n.S,{heading:r?m:void 0,description:o,href:e.url,imageUrl:d,showIcon:!1,dir:"list"===u?"row":"col",badgeStyle:!!r,bodyText:h,duration:e.duration||void 0,imageWidth:"list"===u?"w-40 h-40 flex-shrink-0":void 0,aspectRatio:v||"square",partnerLogoThumbnailUrl:g,partnerLogoWhite:!0,partnerLogoPosition:"list"===u?"compact":"default"},e.id)})})]})},p=e=>{let{contentQuery:l,limit:t="4",title:i,showCategory:n,showDescription:s,template:o="grid",gridColumns:d=2,aspectRatio:c="square",heroStyle:u="side-content",hideTitle:m=!1}=e,h=(null==l?void 0:l.mergedContent)||[];if(!(0,r.J)(h))return null;let x=h.slice(0,Number(t));return(0,a.jsx)(v,{items:x,title:null!=i?i:void 0,showCategory:null!=n?n:void 0,showDescription:null==s||s,template:null!=o?o:void 0,gridColumns:null!=d?d:void 0,aspectRatio:null!=c?c:void 0,heroStyle:null!=u?u:void 0,hideTitle:null!=m?m:void 0})},g=e=>(0,a.jsx)(p,{...e}),f=g},61885:(e,l,t)=>{"use strict";t.d(l,{r:()=>n});var a=t(26404),r=t(70309),i=t(68434);let n=e=>{let l=(0,a.useRef)(null),[t,n]=(0,a.useState)(i.A?e(window.innerWidth,window.innerHeight):null),s=(0,a.useRef)(!1),o=(0,r.X)(e);return(0,a.useEffect)(()=>{let e=l.current;if(!e||"undefined"==typeof ResizeObserver)return;let t=new ResizeObserver(e=>{for(let l of e){let{right:e,left:t,top:a,bottom:r}=l.contentRect,i=e+t,d=a+r,c=o.current(i,d);s.current=!0,n(c)}});return t.observe(e),()=>{t.disconnect()}},[l,o]),[t,l,s.current]}},62762:(e,l,t)=>{"use strict";t.r(l),t.d(l,{ContentMediaAdminBlock:()=>d,GridLayoutBuilder:()=>o,default:()=>c});var a=t(62024),r=t(26404),i=t(62194),n=t(82878),s=t(17638);let o=e=>{let{path:l}=e,{value:t,setValue:n}=(0,i.MtT)({path:l}),s=l.split(".").slice(0,-1).join("."),{value:o}=(0,i.MtT)({path:"".concat(s,".limit")}),d=Number(o)||4,c={1:[1],2:[1,2],3:[1,3],4:[1,2,4],5:[1,2,5],6:[1,2,3,6],7:[1,2,3,7],8:[1,2,4,8]}[d]||[1,2],u=t||2;(0,r.useEffect)(()=>{c.includes(u)||n(c.includes(2)?2:c[0])},[d,c,u,n]);let m=function(e){let l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=Array.from({length:Math.min(d,8)},(e,l)=>l+1),r=l?60:40;return(0,a.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(".concat(e,", 1fr)"),gap:"".concat(l?8:4,"px"),width:"100%"},children:t.map(e=>(0,a.jsx)("div",{style:{border:"2px dashed #555",borderRadius:"4px",height:"".concat(r,"px"),display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#1a1a1a",fontSize:l?"12px":"10px",fontWeight:"500",color:"#999"},children:l?"Item ".concat(e):e},e))})};return(0,a.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,a.jsx)("label",{style:{display:"block",marginBottom:"8px",fontSize:"13px",fontWeight:"600",color:"#fff"},children:"Grid Columns"}),(0,a.jsxs)("div",{style:{padding:"16px",backgroundColor:"#1a1a1a",borderRadius:"4px",border:"1px solid #333"},children:[(0,a.jsxs)("p",{style:{marginBottom:"12px",fontSize:"12px",color:"#ccc"},children:["Select how many columns to display (",d," item",1!==d?"s":"","):"]}),(0,a.jsx)("div",{style:{display:"flex",gap:"12px",marginBottom:"16px",flexWrap:"wrap"},children:c.map(e=>{let l=e===u;return(0,a.jsxs)("button",{type:"button",onClick:()=>n(e),style:{flex:"1",minWidth:"120px",padding:"12px",border:l?"2px solid #0066cc":"2px solid #444",borderRadius:"6px",backgroundColor:l?"#1a3a52":"#2a2a2a",cursor:"pointer",transition:"all 0.2s",display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"},onMouseEnter:e=>{l||(e.currentTarget.style.borderColor="#666",e.currentTarget.style.backgroundColor="#333")},onMouseLeave:e=>{l||(e.currentTarget.style.borderColor="#444",e.currentTarget.style.backgroundColor="#2a2a2a")},children:[(0,a.jsxs)("span",{style:{fontSize:"14px",fontWeight:"600",color:l?"#66b3ff":"#fff"},children:[e," Column",1!==e?"s":""]}),(0,a.jsx)("div",{style:{width:"100%"},children:m(e,!1)})]},e)})}),(0,a.jsxs)("div",{style:{marginTop:"16px",padding:"16px",backgroundColor:"#0a0a0a",borderRadius:"4px",border:"1px solid #444"},children:[(0,a.jsxs)("p",{style:{marginBottom:"12px",fontSize:"12px",fontWeight:"600",color:"#fff"},children:["Preview: ",u," Column",1!==u?"s":""]}),m(u,!0)]})]})]})},d=()=>{let[e,l]=(0,i.kV6)(),t=(0,n.r)(e,!0),r=(null==t?void 0:t.limit)||"4",o=(null==t?void 0:t.title)||"",d=(null==t?void 0:t.ctaText)||"",c=(null==t?void 0:t.template)||"",u=(null==t?void 0:t.gridColumns)||2,m=(null==t?void 0:t.customItems)||[];return(0,a.jsx)(s.default,{name:"Content Media Block",children:(0,a.jsxs)("div",{style:{fontSize:"14px"},children:[(0,a.jsxs)("div",{style:{marginBottom:"12px"},children:[(0,a.jsxs)("p",{style:{marginBottom:"4px"},children:[(0,a.jsx)("strong",{children:"Template:"})," ",c?"list"===c?"List View":"grid"===c?"Grid View":c:"Not selected"]}),(0,a.jsxs)("p",{style:{marginBottom:"4px"},children:[(0,a.jsx)("strong",{children:"Items to Display:"})," ",(()=>{if("custom"===r){let e=Array.isArray(m)?m.length:0;return"Custom (".concat(e," item").concat(1!==e?"s":""," selected)")}return"1"===r?"1 (Hero)":"".concat(r)})()]}),o&&(0,a.jsxs)("p",{style:{marginBottom:"4px"},children:[(0,a.jsx)("strong",{children:"Title:"})," ",o]}),d&&(0,a.jsxs)("p",{style:{marginBottom:"4px"},children:[(0,a.jsx)("strong",{children:"CTA Button:"})," ",d]})]}),(0,a.jsxs)("div",{style:{marginTop:"16px",padding:"12px",backgroundColor:"#f5f5f5",borderRadius:"4px"},children:[(0,a.jsx)("p",{style:{marginBottom:"8px",fontWeight:"600",fontSize:"13px"},children:"Layout Preview:"}),(()=>{if("custom"===r){if(!Array.isArray(m)||0===m.length)return(0,a.jsx)("div",{style:{padding:"20px",textAlign:"center",color:"#666",fontStyle:"italic"},children:"Add items to see preview. Select up to 12 items from the content query results."});let e=m.map((e,l)=>l+1),l={border:"2px dashed #ccc",borderRadius:"4px",padding:"12px",display:"flex",alignItems:"center",justifyContent:"center",minHeight:"60px",backgroundColor:"#f9f9f9",fontSize:"12px",fontWeight:"500",color:"#666"};if("list"===c)return(0,a.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:e.map(e=>(0,a.jsxs)("div",{style:l,children:["Custom Item ",e]},e))});if("grid"===c)return(0,a.jsx)("div",{style:{display:"grid",gap:"8px",gridTemplateColumns:"repeat(".concat(u,", 1fr)")},children:e.map(e=>(0,a.jsxs)("div",{style:l,children:["Custom Item ",e]},e))})}let e=Array.from({length:Number(r)},(e,l)=>l+1);if(!c)return(0,a.jsx)("div",{style:{padding:"20px",textAlign:"center",color:"#666",fontStyle:"italic"},children:"Please select a template to see the layout preview"});let l={border:"2px dashed #ccc",borderRadius:"4px",padding:"12px",display:"flex",alignItems:"center",justifyContent:"center",minHeight:"60px",backgroundColor:"#f9f9f9",fontSize:"12px",fontWeight:"500",color:"#666"};return"list"===c?(0,a.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:e.map(e=>(0,a.jsxs)("div",{style:l,children:["Item ",e]},e))}):"grid"===c?(0,a.jsx)("div",{style:{display:"grid",gap:"8px",gridTemplateColumns:"repeat(".concat(u,", 1fr)")},children:e.map(e=>(0,a.jsxs)("div",{style:l,children:["Item ",e]},e))}):null})()]})]})})},c=d},63045:(e,l)=>{"use strict";var t,a,r,i;Object.defineProperty(l,"__esModule",{value:!0}),l.PollutantType=l.AirQualityCategory=l.AirQualityForecastDuration=l.AirQualityScale=void 0,function(e){e.EPA="EPA",e.HJ6332012="HJ6332012",e.ATMO="ATMO",e.UBA="UBA",e.DAQI="DAQI",e.NAQI="NAQI",e.IMECA="IMECA",e.CAQI="CAQI"}(t||(l.AirQualityScale=t={})),function(e){e.TWELVE_HOUR="12hour",e.TWENTY_FOUR_HOUR="24hour",e.FORTY_EIGHT_HOUR="48hour",e.SEVENTY_TWO_HOUR="72hour"}(a||(l.AirQualityForecastDuration=a={})),function(e){e.GOOD="Good",e.MODERATE="Moderate",e.UNHEALTHY_FOR_SENSITIVE_GROUPS="Unhealthy for Sensitive Groups",e.UNHEALTHY="Unhealthy",e.VERY_UNHEALTHY="Very Unhealthy",e.HAZARDOUS="Hazardous"}(r||(l.AirQualityCategory=r={})),function(e){e.CO="CO",e.NO2="NO2",e.O3="O3",e.PM10="PM10",e.PM2_5="PM2.5",e.SO2="SO2"}(i||(l.PollutantType=i={}))},64673:(e,l,t)=>{"use strict";t.d(l,{h:()=>a});let a=e=>{let l=e.split(":");""===l[0]&&(l[0]="0");let t=parseInt(l[0]||"0",10).toString();if("0"===t&&3===l.length){let e=parseInt(l[1]||"0",10).toString();return"".concat(e,":").concat(l[2])}return[t,...l.slice(1)].join(":")}},65139:(e,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getPollenDaypartUrlConfig=function(e){let{geocode:l,language:t,duration:a="3day"}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v2/indices/pollen/daypart/".concat(a),query:{geocode:l,format:"json",language:t,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},65179:(e,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.fromCompactResponse=function(e){if(!e)return null;let l=Object.keys(e);return l.length&&l[0]&&void 0!==e[l[0]]&&Array.isArray(e[l[0]])?Array.from({length:e[l[0]].length},(t,a)=>{let r={};return l.forEach(l=>{let t=e[l];void 0!==t&&Array.isArray(t)&&a{"use strict";t.r(l),t.d(l,{HourlyForecastAdminBlock:()=>s,default:()=>o});var a=t(62024);t(26404);var r=t(17638),i=t(62194),n=t(82878);let s=()=>{let[e,l]=(0,i.kV6)(),t=(0,n.r)(e,!0);return(0,a.jsxs)(r.default,{name:"HourlyForecast",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("b",{children:"Provider"}),": ",t.locationProvider]}),"specified"===t.locationProvider&&(0,a.jsxs)("div",{children:[(0,a.jsx)("b",{children:"Location"}),": ",t.locationEntry]}),(0,a.jsx)("div",{className:"mt-2",children:(0,a.jsx)(i.OcR,{label:"Simplified Version",name:"simplifiedVersion",checked:(null==t?void 0:t.simplifiedVersion)||!1,onToggle:e=>{l({type:"UPDATE",path:"simplifiedVersion",value:e.target.checked})}})})]})},o=s},66686:(e,l,t)=>{"use strict";t.r(l),t.d(l,{LiveblogEntriesAdminBlock:()=>r,default:()=>i});var a=t(62024);t(26404);let r=()=>(0,a.jsx)("div",{children:"Live Blog Entries"}),i=r},68285:(e,l,t)=>{"use strict";t.d(l,{V:()=>n,w:()=>i});var a=t(57246);let r=(e,l,t,r)=>{let{cDate:i,cTimeZone:n}=(0,a.r)({date:e,locale:l,timeZone:t}),s=null!=r?r:{year:"numeric",month:"2-digit",day:"2-digit",weekday:"short"};return s.timeZone=n,{cDate:i,cTimeZone:n,formatOptions:s}},i=(e,l,t,a)=>{if(!e)return"";let{cDate:i,formatOptions:n}=r(e,l,t,a);return new Intl.DateTimeFormat(l,n).format(i)},n=(e,l,t,a)=>{if(!e)return[];let{cDate:i,formatOptions:n}=r(e,l,t,a);return new Intl.DateTimeFormat(l,n).formatToParts(i)}},68993:(e,l,t)=>{"use strict";t.d(l,{$n:()=>d});var a=t(62024),r=t(26404),i=t(95637),n=t(12514),s=t(51707);let o=(0,n.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=r.forwardRef((e,l)=>{let{className:t,variant:r,display:n,inline:d=!1,asChild:c=!1,...u}=e,m=c?i.DX:"button";return(0,a.jsx)(m,{className:(0,s.cn)(o({variant:r,display:d?"inline":n,className:t})),ref:l,...u})});d.displayName="Button"},69411:(e,l,t)=>{"use strict";t.d(l,{N:()=>n});var a=t(62024),r=t(26404),i=t(51707);let n=(0,r.memo)(e=>{let{value:l,className:t,roundValue:r}=e,n=r?function(e){return e%5>=2.5?5*parseInt(String(e/5),10)+5:5*parseInt(String(e/5),10)}(l):l;return(0,a.jsx)("span",{"data-testid":"PercentageValue",className:(0,i.cn)(t),children:Number.isFinite(n)&&n>=0?"".concat(n,"%"):"--"})})},69606:(e,l,t)=>{"use strict";t.r(l),t.d(l,{TaboolaAdminBlock:()=>s,default:()=>o});var a=t(62024);t(26404);var r=t(62194),i=t(82878),n=t(17638);let s=()=>{let[e]=(0,r.kV6)(),l=(0,i.r)(e,!0);return(0,a.jsx)(n.default,{name:"Taboola",children:(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Placement Name:"}),(null==l?void 0:l.placementName)||"No Placement Name"]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Taboola ID:"})," ",(null==l?void 0:l.taboolaId)||"No Taboola ID"]}),(null==l?void 0:l.title)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Block Title:"})," ",l.title]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Display Mode:"}),(null==l?void 0:l.taboolaUiMode)||"No Display Mode"]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Page Type:"})," ",(null==l?void 0:l.pageType)||"No Page Type"]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Taboola Type:"})," ",(null==l?void 0:l.taboolaType)||"Generic"]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Loader URL:"})," ",(null==l?void 0:l.loaderUrl)||"No Loader URL"]})]})})},o=s},70017:(e,l,t)=>{"use strict";l.vt=void 0,l.v1=o,l.Jh=d;let a=t(65130),r=t(79714),i=t(4843),n=t(82806),s=t(46427);async function o(e){let t=(0,a.getDailyForecastUrlConfig)(e),n=(0,r.urlFrom)(t),s=await fetch(n,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:1800}}),o=await (0,i.handleFetchResponse)(s);return(0,l.vt)(o)}async function d(e){let l=(0,a.getDailyCognitiveHealthForecastUrlConfig)(e),t=(0,r.urlFrom)(l),n=await fetch(t,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:1800}});return await (0,i.handleFetchResponse)(n)}l.vt=(0,n.createTransformer)((e,l,t)=>{var a,r,i,n,o,d,c,u,m,h,x,v,p,g,f,y,b,w,j,N,C,T;let A=2*l,k=A+1,{daypart:S}=t||{};return{calendarDayTemperatureMax:null!=(a=e.calendarDayTemperatureMax)?a:void 0,calendarDayTemperatureMin:null!=(r=e.calendarDayTemperatureMin)?r:void 0,dayOfWeek:null!=(i=e.dayOfWeek)?i:void 0,expirationTimeUtc:null!=(n=e.expirationTimeUtc)?n:void 0,moonPhase:null!=(o=e.moonPhase)?o:void 0,moonPhaseCode:null!=(d=e.moonPhaseCode)?d:void 0,moonPhaseDay:null!=(c=e.moonPhaseDay)?c:void 0,moonriseTimeLocal:null!=(u=e.moonriseTimeLocal)?u:void 0,moonriseTimeUtc:null!=(m=e.moonriseTimeUtc)?m:void 0,moonsetTimeLocal:null!=(h=e.moonsetTimeLocal)?h:void 0,moonsetTimeUtc:null!=(x=e.moonsetTimeUtc)?x:void 0,narrative:null!=(v=e.narrative)?v:void 0,qpf:null!=(p=e.qpf)?p:void 0,qpfSnow:null!=(g=e.qpfSnow)?g:void 0,sunriseTimeLocal:null!=(f=e.sunriseTimeLocal)?f:void 0,sunriseTimeUtc:null!=(y=e.sunriseTimeUtc)?y:void 0,sunsetTimeLocal:null!=(b=e.sunsetTimeLocal)?b:void 0,sunsetTimeUtc:null!=(w=e.sunsetTimeUtc)?w:void 0,temperatureMax:null!=(j=e.temperatureMax)?j:void 0,temperatureMin:null!=(N=e.temperatureMin)?N:void 0,validTimeLocal:null!=(C=e.validTimeLocal)?C:void 0,validTimeUtc:null!=(T=e.validTimeUtc)?T:void 0,daypart:[A,k].map((l,t)=>{var a,r,i,n,o,d,c,u,m,h,x,v,p,g,f,y,b,w,j,N,C,T,A,k,I,_,R,M,P,L,E,D,F,B,V,z,W,H,U,O,Q,q,G,Z,Y,X,$,J,K,ee,el,et,ea,er,ei,en,es,eo,ed;return(null==S||null==(r=S[0])||null==(a=r.daypartName)?void 0:a[l])?{cloudCover:null!=(L=null==(i=S[0].cloudCover)?void 0:i[l])?L:void 0,dayOrNight:null!=(E=null==(n=S[0].dayOrNight)?void 0:n[l])?E:void 0,daypartName:null!=(D=null==(o=S[0].daypartName)?void 0:o[l])?D:void 0,iconCode:null!=(F=null==(d=S[0].iconCode)?void 0:d[l])?F:void 0,iconCodeExtend:null!=(B=null==(c=S[0].iconCodeExtend)?void 0:c[l])?B:void 0,narrative:null!=(V=null==(u=S[0].narrative)?void 0:u[l])?V:void 0,precipChance:null!=(z=null==(m=S[0].precipChance)?void 0:m[l])?z:void 0,precipType:null!=(W=null==(h=S[0].precipType)?void 0:h[l])?W:void 0,qpf:null!=(H=null==(x=S[0].qpf)?void 0:x[l])?H:void 0,qpfSnow:null!=(U=null==(v=S[0].qpfSnow)?void 0:v[l])?U:void 0,qualifierCode:null!=(O=null==(p=S[0].qualifierCode)?void 0:p[l])?O:void 0,qualifierPhrase:null!=(Q=null==(g=S[0].qualifierPhrase)?void 0:g[l])?Q:void 0,relativeHumidity:null!=(q=null==(f=S[0].relativeHumidity)?void 0:f[l])?q:void 0,snowRange:null!=(G=null==(y=S[0].snowRange)?void 0:y[l])?G:void 0,temperature:null!=(Z=null==(b=S[0].temperature)?void 0:b[l])?Z:void 0,temperatureHeatIndex:(null==(w=S[0].temperatureHeatIndex)?void 0:w[l])||void 0,temperatureWindChill:(null==(j=S[0].temperatureWindChill)?void 0:j[l])||void 0,thunderCategory:null!=(Y=null==(N=S[0].thunderCategory)?void 0:N[l])?Y:void 0,thunderIndex:null!=(X=null==(C=S[0].thunderIndex)?void 0:C[l])?X:void 0,uvDescription:null!=($=null==(T=S[0].uvDescription)?void 0:T[l])?$:void 0,uvIndex:null!=(J=null==(A=S[0].uvIndex)?void 0:A[l])?J:void 0,windDirection:null!=(K=null==(k=S[0].windDirection)?void 0:k[l])?K:void 0,windDirectionCardinal:(null==(I=S[0].windDirectionCardinal)?void 0:I[l])?(0,s.normalizeCardinal)(S[0].windDirectionCardinal[l]):void 0,windPhrase:null!=(ee=null==(_=S[0].windPhrase)?void 0:_[l])?ee:void 0,windSpeed:null!=(el=null==(R=S[0].windSpeed)?void 0:R[l])?el:void 0,wxPhraseLong:null!=(et=null==(M=S[0].wxPhraseLong)?void 0:M[l])?et:void 0,wxPhraseShort:null!=(ea=null==(P=S[0].wxPhraseShort)?void 0:P[l])?ea:void 0,...0===t?{sunriseTimeLocal:null!=(er=e.sunriseTimeLocal)?er:void 0,sunsetTimeLocal:null!=(ei=e.sunsetTimeLocal)?ei:void 0}:{moonPhase:null!=(en=e.moonPhase)?en:void 0,moonPhaseCode:null!=(es=e.moonPhaseCode)?es:void 0,moonriseTimeLocal:null!=(eo=e.moonriseTimeLocal)?eo:void 0,moonsetTimeLocal:null!=(ed=e.moonsetTimeLocal)?ed:void 0}}:void 0})}})},70542:(e,l,t)=>{"use strict";t.r(l),t.d(l,{CurrentConditionsAdminBlock:()=>i,default:()=>n});var a=t(62024);t(26404);var r=t(17638);let i=()=>(0,a.jsx)(r.default,{name:"CurrentConditions"}),n=i},70629:(e,l,t)=>{"use strict";t.d(l,{c:()=>a});let a={"@3xs":256,"@2xs":288,"@xs":320,"@sm":384,"@md":448,"@lg":512,"@xl":576,"@2xl":672,"@3xl":768,"@4xl":896,"@5xl":1024,"@6xl":1152,"@7xl":1280}},73015:(e,l,t)=>{"use strict";l.x=n;let a=t(97098),r=t(79714),i=t(4843);async function n(e){let l=(0,a.getTropicalObservationsCurrentPositionUrlConfig)(e),t=(0,r.urlFrom)(l),n=await fetch(t,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(0,i.handleFetchResponse)(n)}},73070:(e,l,t)=>{"use strict";t.d(l,{S:()=>y});var a=t(62024),r=t(10436),i=t(26404),n=t(91592);let s=(0,i.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Play"}):t?(0,a.jsx)("title",{id:r,children:t}):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=i.forwardRef((e,l)=>(0,a.jsx)(n.h,{ref:l,icon:s,...e}));o.displayName="PlayOutline";let d=(0,i.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Video Player"}):t?(0,a.jsx)("title",{id:r,children:t}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M7.265 5.978a.5.5 0 0 0-.765.424v3.196a.5.5 0 0 0 .765.424l2.557-1.598a.5.5 0 0 0 0-.848z"}),(0,a.jsx)("path",{d:"M14 3H2c-.552 0-1 .449-1 1v8c0 .551.448 1 1 1h12c.552 0 1-.449 1-1V4c0-.551-.448-1-1-1m0 8.5a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 .5.5z"})]})]})}),c=i.forwardRef((e,l)=>(0,a.jsx)(n.h,{ref:l,icon:d,...e}));c.displayName="VideoPlayer";let u=(0,i.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Book"}):t?(0,a.jsx)("title",{id:r,children:t}):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"})]})]})}),m=i.forwardRef((e,l)=>(0,a.jsx)(n.h,{ref:l,icon:u,...e}));m.displayName="Book";var h=t(80891),x=t(51707),v=t(5996),p=t(64673);let g={video:o,article:m},f={col:"flex-col",row:"flex-row","col-reverse":"flex-col-reverse","row-reverse":"flex-row-reverse"},y=e=>{let{heading:l,description:t,content:i,href:n,target:s,imageUrl:o,altText:d,onClick:u,className:m,imageWrapClassName:y,imageClassName:b,contentClassName:w,badge:j,icon:N="video",showIcon:C,iconClassName:T,overlayClassName:A,dir:k="row",isFetchPriority:S,noPadding:I=!1,duration:_,badgeStyle:R=!1,bodyText:M,imageWidth:P,aspectRatio:L="square",partnerLogoThumbnailUrl:E,partnerLogoWhite:D=!1,partnerLogoPosition:F="default"}=e,B=g[N],V=!!(l||t||i),z=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:(0,x.cn)("relative overflow-hidden rounded-lg","transition-shadow duration-150 group-hover:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)] group-focus-visible:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)]",L&&"auto"!==L?"square"===L?"aspect-square":"video"===L?"aspect-video":"aspect-[".concat(L,"]"):"",P||"w-full",y),children:[(0,a.jsx)(r.A,{fetchPriority:S?"high":void 0,src:o,alt:d||t||"",fill:!0,className:(0,x.cn)("absolute top-0 left-0 h-full w-full scale-[1.01] object-cover","transition-transform duration-150 group-hover:scale-[1.02] group-focus-visible:scale-[1.02]",b),sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 25vw"}),(0,a.jsx)("div",{className:(0,x.cn)("absolute inset-0 flex items-center justify-center",A),children:C&&B&&(0,a.jsx)(B,{className:(0,x.cn)("size-10 text-white",T)})}),j&&(0,a.jsx)("div",{className:"absolute right-2 bottom-2 rounded-full bg-black/70 px-[10px] py-2 text-[14px] leading-none text-white md:right-1 md:bottom-1 md:p-1 md:text-[10px]",children:j}),E&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-[linear-gradient(to_bottom,rgba(17,30,55,0)_0%,rgba(17,30,55,0)_50%,rgba(17,30,55,0.4)_100%)]"}),(0,a.jsx)("div",{className:(0,x.cn)("absolute overflow-visible","compact"===F?"bottom-3 left-3":"bottom-4 left-4"),children:(0,a.jsx)("div",{className:(0,x.cn)("relative","compact"===F?"w-24":"w-40"),children:(0,a.jsx)(r.A,{src:E,alt:"",width:"compact"===F?96:160,height:0,className:(0,x.cn)("h-auto max-h-5 w-full rounded-none object-contain object-left",D&&"brightness-0 invert"),style:{height:"auto"},sizes:"compact"===F?"96px":"160px"})})})]})]}),V&&(0,a.jsx)("div",{className:(0,x.cn)(w,"row"===k&&"max-h-40"),children:i||(0,a.jsxs)(a.Fragment,{children:[l&&(R?(0,a.jsx)("span",{className:"mb-2 inline-block rounded-full bg-gray-100 px-3 py-1 text-xs font-medium text-gray-700",children:l}):(0,a.jsx)(v.Ay,{elementType:"span",variant:"Title.S",className:"mb-1 text-xs",color:"placeholder",children:l})),(t||M)&&(0,a.jsxs)("div",{className:(0,x.cn)("row"===k&&!_&&"line-clamp-7 sm:line-clamp-6","row"===k&&_&&"line-clamp-5 sm:line-clamp-4","row"===k&&"overflow-hidden","mb-2"),children:[t&&(0,a.jsx)(v.Ay,{elementType:"h2",className:"mb-2 text-base leading-tight font-semibold text-gray-900 @md:text-lg @lg:text-xl @xl:text-2xl",children:t}),M&&(0,a.jsx)(v.Ay,{elementType:"p",className:"text-sm font-normal text-gray-500 @md:text-base",children:M})]}),_&&(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(c,{className:"size-6 text-gray-500 sm:size-6"}),(0,a.jsx)(v.Ay,{elementType:"span",className:"text-sm text-gray-500 sm:text-base",children:(0,p.h)(_)})]})]})})]}),W=(0,x.cn)("group","not-prose font-normal text-gray-900 no-underline rounded-2xl flex gap-4",!I&&"p-3","transition-all duration-150",!I&&"hover:bg-gray-100 focus-visible:bg-gray-100","focus-visible:outline-none",f[k],m);return!u&&n?(0,a.jsx)(h.default,{className:W,href:n,target:s,children:z}):(0,a.jsx)("div",{className:W,onClick:u,children:z})}},73585:(e,l,t)=>{"use strict";t.d(l,{p:()=>n});var a=t(33333),r=t(26404),i=t(50247);let n=(e,l)=>{var t;let{data:n,isLoading:s}=(0,i.r)({geoCode:null!=(t=null==e?void 0:e.geocode)?t:null,insightType:a.InsightType.PRECIP_INSIGHT,locale:l}),o=(0,r.useMemo)(()=>null==n?void 0:n.find(e=>{var l;return(null==e||null==(l=e.supplement)?void 0:l.precipSource)==="wwir"}),[n]);return{loadingInsight:s,insightHeadline:(null==o?void 0:o.insightHeadline[0])||"",insightTextLong:(null==o?void 0:o.insightTextLong[0])||""}}},73720:(e,l,t)=>{"use strict";t.r(l),t.d(l,{TwitterBlock:()=>n,default:()=>s});var a=t(62024),r=t(26404);let i="twitter-script-loaded",n=e=>{let{entryMethod:l,tweetURL:t,tweetId:n,showThread:s}=e,o=(0,r.useRef)(null),d=(0,r.useCallback)(()=>"id"===l&&n?"https://twitter.com/i/status/".concat(n):"url"===l&&t?t.replace("x.com","twitter.com"):null,[l,n,t]),{isLoaded:c}=function(){let[e,l]=(0,r.useState)(()=>!!(window.twttr&&window.twttr.widgets)),[t,a]=(0,r.useState)(null);return(0,r.useEffect)(()=>{if(e)return;if(!t){if(window.twttr&&window.twttr.widgets)return void l(!0);a(new Promise(e=>{if(window.twttr&&window.twttr.widgets){l(!0),e();return}let t=document.createElement("script");t.src="https://platform.twitter.com/widgets.js",t.async=!0,t.onload=()=>{l(!0);let t=new CustomEvent(i);window.dispatchEvent(t),e()},document.body.appendChild(t)}))}t&&t.then(()=>l(!0));let r=()=>l(!0);return window.addEventListener(i,r),()=>{window.removeEventListener(i,r)}},[e,t]),{isLoaded:e}}();return(0,r.useEffect)(()=>{let e=d();e&&(o.current&&(o.current.innerHTML='\n \n ')),c&&window.twttr&&window.twttr.widgets&&window.twttr.widgets.load(o.current))},[d,n,t,l,s,c]),(0,a.jsx)("div",{className:"flex items-center",ref:o})},s=n},73966:(e,l,t)=>{"use strict";t.r(l),t.d(l,{CurrentDetailsAdminBlock:()=>s,default:()=>o});var a=t(62024);t(26404);var r=t(17638),i=t(62194),n=t(82878);let s=()=>{let[e]=(0,i.kV6)(),l=(0,n.r)(e,!0);return(0,a.jsxs)(r.default,{name:"CurrentDetails",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("b",{children:"Provider"}),": ",l.locationProvider]}),"specified"===l.locationProvider&&(0,a.jsxs)("div",{children:[(0,a.jsx)("b",{children:"Location"}),": ",l.locationEntry]})]})},o=s},74282:(e,l,t)=>{"use strict";t.d(l,{Z:()=>s});var a=t(62024),r=t(26404),i=t(91592);let n=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Wind"}):t?(0,a.jsx)("title",{id:r,children:t}):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"})]})}),s=r.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:n,...e}));s.displayName="Wind"},74294:(e,l,t)=>{"use strict";t.r(l),t.d(l,{YouTubeAdminBlock:()=>o,default:()=>d});var a=t(62024),r=t(26404),i=t(62194),n=t(82878),s=t(17638);let o=()=>{let[e]=(0,i.kV6)(),l=(0,n.r)(e,!0),[t,o]=(0,r.useState)({url:null==l?void 0:l.url,size:null==l?void 0:l.size});return(0,r.useEffect)(()=>{o({url:null==l?void 0:l.url,size:null==l?void 0:l.size})},[null==l?void 0:l.url,null==l?void 0:l.size]),(0,a.jsxs)(s.default,{name:"YouTube",children:[(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Video URL:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:t.url||"Not provided"})]}),(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Embed Size:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:"hero"===t.size?"Hero (Full Width)":"Article (Small)"})]}),(()=>{let e=(e=>{let l=null==e?void 0:e.match(/(?:youtube\.com\/(?:[^\\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\\/\s]{11})/);return l?l[1]:null})(t.url);return e?(0,a.jsx)("div",{className:"mb-2 flex justify-center",children:(0,a.jsx)("iframe",{className:"w-full rounded-lg shadow-lg",style:{height:"hero"===t.size?"300px":"180px",maxWidth:"hero"===t.size?"100%":"320px"},src:"https://www.youtube.com/embed/".concat(e),title:"YouTube Video Preview",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}):(0,a.jsx)("div",{className:"text-red-500",children:"Invalid YouTube URL"})})()]})},d=o},74358:(e,l,t)=>{"use strict";t.r(l),t.d(l,{BuyButtonAdminBlock:()=>c,default:()=>u});var a=t(62024),r=t(26404),i=t(62194),n=t(82878),s=t(68993),o=t(17638),d=t(80891);let c=()=>{let[e]=(0,i.kV6)(),l=(0,n.r)(e,!0),[t,c]=(0,r.useState)({label:(null==l?void 0:l.label)||"Button Label",url:(null==l?void 0:l.url)||"#",variant:(null==l?void 0:l.variant)||"bg-gray-900",inline:(null==l?void 0:l.inline)||!1,isAffiliate:(null==l?void 0:l.isAffiliate)!==!1});(0,r.useEffect)(()=>{c({label:(null==l?void 0:l.label)||"Button Label",url:(null==l?void 0:l.url)||"#",variant:(null==l?void 0:l.variant)||"bg-gray-900",inline:(null==l?void 0:l.inline)||!1,isAffiliate:(null==l?void 0:l.isAffiliate)!==!1})},[null==l?void 0:l.label,null==l?void 0:l.url,null==l?void 0:l.variant,null==l?void 0:l.inline,null==l?void 0:l.isAffiliate]);let u=t.isAffiliate?"nofollow noopener noreferrer":"noopener";return(0,a.jsxs)(o.default,{name:"Buy Button",children:[(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("span",{className:"mb-1 block text-xs",style:{color:"var(--theme-elevation-500)"},children:"Preview:"}),(0,a.jsx)("div",{className:t.inline?"inline-block":"block",children:(0,a.jsx)(d.default,{href:t.url,target:"_blank",rel:u,onClick:e=>e.preventDefault(),children:(0,a.jsx)(s.$n,{variant:(e=>"string"==typeof e&&e&&["bg-brand-200","bg-brand-300","bg-yellow-400","bg-green-600","bg-violet-500","bg-gray-900"].includes(e)?e:"bg-gray-900")(t.variant),inline:!0,className:"cursor-pointer whitespace-nowrap",children:t.label||"Button Label"})})})]}),(0,a.jsxs)("div",{className:"mt-3 text-xs",style:{color:"var(--theme-elevation-500)"},children:[(0,a.jsxs)("div",{className:"mb-1 flex items-center justify-between",children:[(0,a.jsx)("span",{children:"Display:"}),(0,a.jsx)("span",{className:"font-medium",children:t.inline?"Inline":"Block"})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("span",{children:"Link type:"}),(0,a.jsx)("span",{className:"font-medium",children:t.isAffiliate?"Affiliate (nofollow)":"Standard"})]})]})]})},u=c},74449:(e,l,t)=>{"use strict";t.d(l,{Wu:()=>s,Zp:()=>i,aR:()=>n});var a=t(62024);t(26404);var r=t(51707);function i(e){let{className:l,...t}=e;return(0,a.jsx)("div",{"data-slot":"card",className:(0,r.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl py-6",l),...t})}function n(e){let{className:l,...t}=e;return(0,a.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",l),...t})}function s(e){let{className:l,...t}=e;return(0,a.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-6",l),...t})}},77710:(e,l,t)=>{"use strict";t.r(l),t.d(l,{AirQualityIndexAdminBlock:()=>i,default:()=>n});var a=t(62024);t(26404);var r=t(17638);let i=()=>(0,a.jsx)(r.default,{name:"AirQualityIndex"}),n=i},78926:(e,l,t)=>{"use strict";t.r(l),t.d(l,{VideoAdminBlock:()=>u,default:()=>m});var a=t(62024),r=t(26404),i=t(62194),n=t(82878),s=t(17638),o=t(10156),d=t(90269),c=t(8417);let u=()=>{let e="video-player-".concat((0,r.useId)()),[l]=(0,i.kV6)(),t=(0,r.useRef)(null),{file:u,image:m,title:h,description:x,tracks:v,playlist:p,videoReference:g,playlistsReference:f}=(0,r.useMemo)(()=>{let e=(0,n.r)(l,!0);return t.current&&JSON.stringify(e)===JSON.stringify(t.current)?t.current:(t.current=e,e)},[l]),y=null;[{data:y}]=(0,i.Q0O)(g&&"string"==typeof g?"/api/payload/videos/".concat(g):"");let b=(0,r.useMemo)(()=>y&&Object.keys(y).length>0||g&&"string"!=typeof g,[y,g]),w=(0,r.useMemo)(()=>y&&Object.keys(y).length>0?y:g&&"string"!=typeof g?g:null,[y,g]),j=(0,r.useMemo)(()=>{var e,l,t,a,r,i,n,s,o;return b&&(null==w||null==(l=w.content)||null==(e=l.videoFormatUrls)?void 0:e.length)>0?(null==w||null==(a=w.content)||null==(t=a.defaultFormat)?void 0:t.url)?null==w||null==(o=w.content)||null==(s=o.defaultFormat)?void 0:s.url:null==w||null==(n=w.content)||null==(i=n.videoFormatUrls)||null==(r=i[0])?void 0:r.url:u},[b,w,u]),N=(0,r.useMemo)(()=>{if(b){var e;return(null==w||null==(e=w.content)?void 0:e.keyFrameImage)||m}return m},[b,w,m]),C=(0,r.useMemo)(()=>b&&(null==w?void 0:w.title)||h,[b,w,h]),T=(0,r.useMemo)(()=>(b&&(null==w||w.description),x),[b,w,x]),A=(0,r.useMemo)(()=>{let e=[];return(null==v?void 0:v.file)&&e.push(v),{file:j,image:N||(j?(0,d.e)(j):null)||"",title:C,description:T,tracks:e}},[j,N,C,T,v]),k=(0,r.useMemo)(()=>{var e,l,t,a;let r=[];return p&&(r=(0,c.K)(p||[],A)||[]),f&&Array.isArray(f)&&f.length,b&&(null==w||null==(e=w.content)?void 0:e.playlists)&&Array.isArray(null==w||null==(l=w.content)?void 0:l.playlists)&&(null==w||null==(a=w.content)||null==(t=a.playlists)||t.length),r.length>0?r:[A]},[p,A,f,w,b]);return g&&"string"==typeof g&&!y?(0,a.jsx)(s.default,{name:"Video",children:(0,a.jsx)("div",{className:"flex h-32 items-center justify-center border border-dashed border-gray-300",children:(0,a.jsx)("span",{children:"Loading video data..."})})}):j?(0,a.jsx)(s.default,{name:"Video",children:(0,a.jsx)(o.h,{playlist:k,options:{autostart:!1}},e)}):(0,a.jsx)(s.default,{name:"Video",children:(0,a.jsx)("div",{className:"flex h-32 items-center justify-center border border-dashed border-gray-300",children:(0,a.jsx)("span",{children:"No video file provided"})})})},m=u},80672:(e,l,t)=>{"use strict";t.d(l,{A:()=>O});var a=t(62024),r=t(12565),i=t(47107),n=t(26404),s=t(74743),o=t(62792),d=t(85759),c=t(28123),u=t(44344),m=t(8257),h=t(90541),x=t(76315),v=t(49531);let p=["rain","freezing_rain"],g=["snow","sleet"],f="#47A25D",y="#65B0C3",b="#DD85A7",w={300:"rain",310:"rain",400:"rain",402:"rain",410:"rain",412:"rain",500:"rain",510:"rain",600:"rain",601:"rain",610:"rain",611:"rain",700:"sleet",701:"sleet",710:"sleet",711:"sleet",800:"freezing_rain",810:"freezing_rain",850:"freezing_rain",900:"rain",910:"rain",950:"rain",1e3:"freezing_rain",1001:"freezing_rain",1002:"freezing_rain",1010:"freezing_rain",1011:"freezing_rain",1012:"freezing_rain",1051:"freezing_rain",1100:"rain",1110:"rain",1140:"rain",1170:"rain",1200:"rain",1201:"rain",1210:"rain",1211:"rain",1240:"rain",1251:"rain",1270:"rain",1300:"snow",1310:"snow",1400:"snow",1410:"snow",1600:"snow",1601:"snow",1610:"snow",1611:"snow",1651:"snow",1800:"sleet",1801:"sleet",1810:"sleet",1811:"sleet",3700:"rain",3710:"rain",3800:"rain",3810:"rain",3900:"rain",3910:"rain",4e3:"rain",4010:"rain",4100:"snow",4110:"snow",4200:"snow",4210:"snow",4300:"snow",4500:"rain",4510:"rain",4600:"rain",4610:"rain",4700:"snow",4710:"snow",4800:"snow",4810:"snow",4900:"rain",4910:"rain",5e3:"snow",5100:"freezing_rain",5101:"freezing_rain",5110:"freezing_rain",5111:"freezing_rain",5200:"sleet",5210:"sleet",5300:"freezing_rain",5301:"freezing_rain",5302:"freezing_rain",5310:"freezing_rain",5311:"freezing_rain",5312:"freezing_rain",5351:"freezing_rain",5400:"snow",5500:"rain",5600:"snow",5610:"snow",5700:"rain",5710:"rain"},j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;switch(!0){case e>1.65:return 9;case e>.72:return 8;case e>.32:return 7;case e>.14:return 6;case e>.06:return 5;case e>.03:return 4;case e>.01:return 3;case e>0:return 2;case 0===e:return .7;default:return 0}},N=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;switch(!0){case e>1.52:return 9;case e>.48:return 8;case e>.17:return 7;case e>.07:return 6;case e>.03:return 5;case e>.02:return 4;case e>.01:return 3;case e>0:return 2;case 0===e:return .7;default:return 0}};var C=t(73585);let T={revalidateOnFocus:!1,dedupingInterval:6e4};var A=t(28335),k=t(87682),S=t(5996),I=t(80891),_=t(51707),R=t(66087),M=t(61885),P=t(70629),L=t(53),E=t(64715);let D={id:"barBackground",beforeDatasetsDraw(e,l,t){let{ctx:a,chartArea:{top:r},scales:{y:i}}=e;if(!i)return;let n=e.getDatasetMeta(0),s=t.floatPoint||0;n.data.forEach(e=>{var l;let{x:n,width:o}=e.getProps(["x","width"],!0);a.save(),a.fillStyle=t.color||"transparent",function(e,l,t,a,r,i){let n=Math.min(i,a/2,r/2);e.beginPath(),e.moveTo(l+n,t),e.lineTo(l+a-n,t),e.quadraticCurveTo(l+a,t,l+a,t+n),e.lineTo(l+a,t+r-n),e.quadraticCurveTo(l+a,t+r,l+a-n,t+r),e.lineTo(l+n,t+r),e.quadraticCurveTo(l,t+r,l,t+r-n),e.lineTo(l,t+n),e.quadraticCurveTo(l,t,l+n,t),e.closePath(),e.fill()}(a,n-o/2,r,o,i.getPixelForValue(i.min+s)-r,null!=(l=t.borderRadius)?l:8),a.restore()})}},F={id:"extendXAxisLine",afterDraw(e,l,t){var a,r,i,n,s;let{ctx:o,scales:d}=e,c=d.x,u=d.y,m=null!=(a=t.offset)?a:20,h=(null!=(r=null==u?void 0:u.bottom)?r:0)+m;o.save(),o.beginPath(),o.strokeStyle=t.color||"black",o.lineWidth=null!=(i=t.lineWidth)?i:1,o.moveTo((null!=(n=null==c?void 0:c.left)?n:0)-200,h),o.lineTo((null!=(s=null==c?void 0:c.right)?s:0)+200,h),o.stroke(),o.restore()}},B={id:"transitionLines",afterDatasetsDraw(e,l,t){let{ctx:a,scales:{x:r,y:i}}=e;i&&(a.save(),a.lineWidth=1,a.setLineDash([2,2]),(0,E.v)(t.transitionPoints,(l,r)=>{var n;let s=+r,o=e.getDatasetMeta(0),d=o.data[s],c=o.data[s-1];if(!d||!c)return;let{x:u}=d.getProps(["x"],!0),{x:m}=c.getProps(["x"],!0),h=(m+u)/2;a.beginPath(),a.strokeStyle=l,a.moveTo(h,i.top),a.lineTo(h,i.getPixelForValue(i.min+(null!=(n=t.floatPoint)?n:0))),a.stroke()}),a.restore())}},V=e=>{let{data:l,ianaTimeZone:t,locale:r}=e,i=(0,A.c)("PrecipIntensity");return(0,a.jsxs)("table",{className:"hidden",children:[(0,a.jsx)("caption",{children:i("tableCaption")}),(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:i("time")}),(0,a.jsx)("th",{children:i("precipType")}),(0,a.jsx)("th",{children:i("precipLevel")})]})}),(0,a.jsx)("tbody",{children:null==l?void 0:l.map(e=>0!==e.level?(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,R.P)({date:e.validTimeLocal,locale:r,timeZone:t,minutes:!0})}),(0,a.jsx)("td",{children:e.precipType}),(0,a.jsx)("td",{children:e.level})]},e.validTimeLocal):null)})]})},z=e=>{let{rtl:l,isSamsungTheme:t,radius:r=4,legendTypes:i}=e,s=(0,A.c)("PrecipIntensity"),o=(0,n.useMemo)(()=>{let e=[{label:s("legendRain"),type:L.PrecipType.RAIN,color:f},{label:s("legendSnow"),type:L.PrecipType.SNOW,color:y},{label:s(t?"samsungLegendMix":"legendMix"),type:L.PrecipType.PRECIP,color:b}];return l?e.reverse():e},[t,l,s]);return(0,a.jsx)("div",{className:"mt-3 flex items-center justify-center gap-6",children:o.map(e=>{let{label:l,type:t,color:n}=e;return(!i||i[t])&&(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("div",{style:{width:2*r,height:2*r,backgroundColor:n},className:"rounded-full"}),(0,a.jsx)("p",{className:"text-xs",children:l})]},t)})})},W=async()=>{let{Chart:e,CategoryScale:l,LinearScale:a,BarController:r,BarElement:i}=await Promise.all([t.e(9645),t.e(7803)]).then(t.bind(t,36867));return e.register(l,a,r,i),e},H=(0,n.memo)(e=>{let{chartData:l,hasChartData:t,ianaTimeZone:r,locale:i,rootClass:s,rtl:o=!1,removeTransitionLines:d}=e,c=(0,A.c)("PrecipIntensity"),u=(0,n.useRef)(null),m=(0,n.useRef)(null),[h,x]=(0,M.r)(e=>eo?[...l].reverse():l,[l,o]),w=(0,n.useMemo)(()=>l.reduce((e,l)=>{let{precipType:t}=l;return e[t]=!0,e},{}),[l]),j=(0,n.useMemo)(()=>{let e=Object.values(L.PrecipType),l=0;for(let t of e)w[t]&&l++;return l>1},[w]),N=(0,n.useMemo)(()=>{let e=v.map(e=>e.level),l=v.map(e=>{let{validTimeLocal:l}=e;return l}),t=v.map(e=>{let{precipType:l}=e;return l===L.PrecipType.RAIN?f:l===L.PrecipType.SNOW?y:b});return{labels:l,datasets:[{label:c("chartTitle"),data:e,backgroundColor:t,borderWidth:0,maxBarThickness:h?4:8,categoryPercentage:1,stack:"stack1",borderRadius:12,borderSkipped:!1}]}},[h,v,c]),C=(0,n.useMemo)(()=>({responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!1},transitionLines:{floatPoint:.5,transitionPoints:d?void 0:v.reduce((e,l,t)=>{var a;if(t>0&&l.level>0&&v[t-1]&&l.precipType!==(null==(a=v[t-1])?void 0:a.precipType)){let a=b;p.includes(l.precipType)?a=f:g.includes(l.precipType)&&(a=y),e[t]=a}return e},{})},barBackground:{color:"#eeeeee",borderRadius:12,floatPoint:.5},extendXAxisLine:{color:"#eeeeee",lineWidth:1,offset:-2},datasets:{bar:{minBarLength:10}}},scales:{x:{stacked:!0,grid:{display:!0,drawOnChartArea:!1,drawTicks:!0,tickColor:"#676767",tickLength:3,tickWidth:1,tickBorderDashOffset:50,offset:!1},border:{display:!1},ticks:{major:{enabled:!0},display:!0,maxRotation:0,minRotation:0,autoSkip:!1,font:{size:h?12:14},color:"#676767",callback:function(e,l){var t;let a=new Date((null==(t=this.chart.data.labels)?void 0:t[l])||"");return 0===a.getMinutes()?(0,R.P)({date:a,locale:i,timeZone:r,showShortDayperiod:!0}):h?null:""}}},y:{stacked:!0,min:-.5,max:9,position:o?"right":"left",grid:{display:!1,drawBorder:!1},ticks:{count:10,autoSkip:!1,display:!0,crossAlign:"far",font:{size:h?12:14},callback:function(e,l){return 2===l?c("chartLight"):8===l?c("chartHeavy"):""}},border:{display:!1}}}}),[d,v,h,o,c,i,r]);return((0,n.useEffect)(()=>{let e=!1;return!async function(){var l;let t=await W(),a=null==(l=u.current)?void 0:l.getContext("2d");!e&&a&&t&&(m.current=new t(a,{type:"bar",data:N,options:C,plugins:[D,F,B]}))}(),()=>{var l;e=!0,null==(l=m.current)||l.destroy()}},[N,C]),t)?(0,a.jsxs)("div",{ref:x,className:(0,_.cn)("@container/precipChart",s),dir:o?"rtl":void 0,children:[(0,a.jsx)(V,{data:l,ianaTimeZone:r,locale:i}),(0,a.jsx)("div",{className:(0,_.cn)("relative h-26 text-sm text-gray-500 @md/precipChart:h-30",o?"pr-2 @md/precipChart:pr-3 @xl/precipChart:pr-4":"pl-2 @md/precipChart:pl-3 @xl/precipChart:pl-4"),children:(0,a.jsx)("canvas",{ref:u})}),j&&(0,a.jsx)(z,{rtl:o,legendTypes:w,isSamsungTheme:!1})]}):null}),U=e=>{let{location:l,locale:t,onlyChart:r,isLoading:i,chartData:n,hasChartData:s,rtl:o,removeTransitionLines:d,insightTextLong:c}=e,u=(0,A.c)("PrecipIntensity");if(i||!i&&!s)return null;let m=()=>(0,a.jsx)(H,{chartData:n,hasChartData:s,ianaTimeZone:null==l?void 0:l.ianaTimeZone,locale:t,rtl:o,removeTransitionLines:d});return r?m():s&&(0,a.jsxs)(k.Zp,{className:"relative min-h-[100px] overflow-hidden","aria-label":u("chartTitle"),children:[(0,a.jsxs)(k.Wu,{className:"p-0",children:[c&&(0,a.jsxs)(S.Ay,{variant:"Body.M",className:"mb-2",children:[(0,a.jsx)("span",{className:"font-bold",children:"Outlook:"})," ",c]}),m()]}),l&&(0,a.jsx)(I.default,{className:"absolute top-0 right-0 bottom-0 left-0",href:"/weather/hourbyhour/l/".concat(l.placeId),"aria-label":u("viewHourlyForecast"),children:"\xa0"})]})},O=e=>{var l;let{location:t,onlyChart:f,initializing:y,initialError:b}=e,A=null==(l=(0,r.useParams)())?void 0:l.locale,{effectiveLocation:k,isLocationLoading:S}=(0,i.s)({location:t}),{loadingForecast:I,chartData:_,hasChartData:R,insightTextLong:M}=((e,l)=>{let t=(0,s.md)(o.Yt),a=(0,d.xP)(t)||d.AF,r=a.code,i=(0,x.A)(),f="KR"===i,y=f&&(null==e?void 0:e.countryCode)==="KR",{data:b,isLoading:A}=(0,u.Ay)(e&&y?["get-hourly-forecast",e.geocode,r,l,f?i:void 0]:null,e=>{let[l,t,a,r,i]=e;return(0,m.$c)({geocode:t,units:a,language:r,cscCountryCode:i,duration:c.HourlyForecastDuration.TWO_DAY})},T),{data:k,isLoading:S}=(0,u.Ay)(e&&!y?["get-fifteen-minute-forecast",e.geocode,r,l]:null,e=>{let[l,t,a,r]=e;return(0,h.FA)({geocode:t,units:a,language:r})},T),I=y?b:k,_=(0,n.useMemo)(()=>((e,l)=>{if(!(null==e?void 0:e.length))return[];let t=e.map(e=>(0,v.$)(e.validTimeLocal));return l?t.slice(0,7):t})(I,y),[I,y]),R=(0,n.useMemo)(()=>((e,l,t,a)=>e?(a?(null==e?void 0:e.slice(0,7))||[]:e||[]).map((e,r)=>{let i=e.iconCodeExtend,n=e.precipType,s=(e=>{let{precipRate:l,iconCodeExtend:t,precipType:a,unitsSystem:r}=e,i=(null==r?void 0:r.precip)!=="in"?Number((l/25.4).toFixed(2)):l,n="precip"===a||0===l?w[t]:a;switch(!0){case p.includes(n):return j(i);case g.includes(n):return N(i);default:return 0}})({precipRate:a?e.qpf:e.precipRate,iconCodeExtend:i,precipType:n,unitsSystem:l});return{precipType:n,validTimeLocal:t[r],level:s}}):Array(7).fill({precipType:"",validTimeLocal:"",level:0}))(I,a,_,y)||[],[I,y,_,a]),M=(0,n.useMemo)(()=>(e=>!!(null==e?void 0:e.find(e=>{let{level:l}=e;return l>0})))(R),[R]),{loadingInsight:P,insightHeadline:L,insightTextLong:E}=(0,C.p)(e,l);return{loadingForecast:A||S,chartData:R,hasChartData:M,loadingInsight:P,insightHeadline:L,insightTextLong:E}})(k,A);return b?null:(0,a.jsx)(U,{location:k,locale:A,onlyChart:f,isLoading:y||S||I,chartData:_,hasChartData:R,insightTextLong:M})}},81390:(e,l,t)=>{"use strict";t.r(l),t.d(l,{BlockRowAdminBlock:()=>o,default:()=>d});var a=t(62024);t(26404);var r=t(62194),i=t(82878),n=t(17638),s=t(5996);let o=()=>{let[e]=(0,r.kV6)(),{columns:l="2",blocks:t=[]}=(0,i.r)(e),o=parseInt(l,10);return(0,a.jsx)(n.default,{name:"BlockRow",children:(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)(s.Ay,{variant:"Body.S.Bold",children:[o," Column Layout"]}),(0,a.jsxs)(s.Ay,{variant:"Body.S",className:"text-gray-500",children:[t.length,"/",o," blocks"]})]}),(0,a.jsx)("div",{className:"grid gap-2 rounded border-2 border-dashed border-gray-300 bg-gray-50 p-3",style:{gridTemplateColumns:"repeat(".concat(o,", 1fr)")},children:0===t.length?(0,a.jsxs)("div",{className:"col-span-full py-4 text-center text-sm text-gray-400",children:["Add blocks below to see them arranged in ",o," columns"]}):t.map((e,l)=>(0,a.jsxs)("div",{className:"rounded border border-gray-400 bg-white p-3 text-center",children:[(0,a.jsx)(s.Ay,{variant:"Body.S.Bold",children:e.blockType}),e.blockName&&(0,a.jsx)(s.Ay,{variant:"Body.S",className:"mt-1 text-gray-600",children:e.blockName})]},l))}),t.length>o&&(0,a.jsxs)("div",{className:"rounded bg-yellow-50 p-2 text-sm text-yellow-800",children:["⚠️ You have ",t.length," blocks but only ",o," columns. Extra blocks will wrap to new rows."]}),(0,a.jsxs)("div",{className:"rounded bg-blue-50 p-2 text-xs text-blue-800",children:["\uD83D\uDCF1 Responsive: Stacks vertically on mobile, shows ",o," ","columns on desktop"]})]})})},d=o},81896:(e,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getSunWeatherAlertHeadlinesUrlConfig=function(e){let{geocode:l,countryCode:t,areaId:a,adminDistrictCode:r,language:i}=e,n={format:"json",language:i,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return l&&(n.geocode=l),t&&(n.countryCode=t),a&&(n.areaId=a),r&&(n.adminDistrictCode=r),{host:"api.weather.com",protocol:"https",pathname:"/v3/alerts/headlines",query:n}},l.getSunWeatherAlertDetailUrlConfig=function(e){let{detailKey:l,language:t}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/alerts/detail",query:{alertId:l,format:"json",language:t,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},82480:(e,l,t)=>{"use strict";t.d(l,{r:()=>C});var a=t(62024),r=t(26404),i=t(91592);let n=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"New Moon"}):t?(0,a.jsx)("title",{id:r,children:t}):null,(0,a.jsx)("circle",{cx:8,cy:7.613,r:6.4,fill:"currentColor"})]})}),s=r.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:n,...e}));s.displayName="NewMoon";let o=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Waxing Crescent"}):t?(0,a.jsx)("title",{id:r,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M8.01 13.553q2.432 0 4.18-1.742 1.75-1.742 1.75-4.202 0-2.452-1.75-4.198-1.748-1.745-4.18-1.745 1.704 0 2.92 1.745t1.216 4.198q0 2.46-1.216 4.202t-2.92 1.742m-.014-12.34q2.64 0 4.521 1.882Q14.4 4.978 14.4 7.616q0 2.645-1.883 4.521t-4.52 1.876q-2.646 0-4.522-1.876Q1.6 10.262 1.6 7.617q0-2.64 1.875-4.522t4.521-1.882"})]})}),d=r.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:o,...e}));d.displayName="WaxingCrescent";let c=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"First Quarter"}):t?(0,a.jsx)("title",{id:r,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M8.004 13.552q2.446 0 4.19-1.745 1.746-1.745 1.746-4.198 0-2.452-1.745-4.198-1.745-1.745-4.191-1.745zm-.007-12.34q2.644 0 4.524 1.88t1.88 4.517q0 2.64-1.88 4.521-1.879 1.883-4.524 1.883-2.639 0-4.517-1.883Q1.6 10.247 1.6 7.61q0-2.64 1.88-4.518 1.878-1.88 4.517-1.88"})]})}),u=r.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:c,...e}));u.displayName="FirstQuarter";let m=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Waxing Gibbous"}):t?(0,a.jsx)("title",{id:r,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M8.003 1.673q-1.38 0-2.367 1.745-.986 1.746-.986 4.198 0 2.454.986 4.198t2.367 1.745q2.439 0 4.188-1.745 1.748-1.744 1.748-4.198 0-2.452-1.748-4.198-1.749-1.745-4.188-1.745m0 12.34q-2.645 0-4.524-1.88-1.88-1.878-1.88-4.517t1.88-4.52q1.878-1.883 4.524-1.883 2.638 0 4.518 1.882Q14.4 4.978 14.4 7.616q0 2.64-1.88 4.518-1.878 1.879-4.517 1.879"})]})}),h=r.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:m,...e}));h.displayName="WaxingGibbous";let x=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Full Moon"}):t?(0,a.jsx)("title",{id:r,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M7.996 13.553q2.445 0 4.195-1.742 1.748-1.742 1.748-4.202 0-2.452-1.748-4.198-1.749-1.745-4.195-1.745-2.452 0-4.198 1.745Q2.053 5.157 2.053 7.61q0 2.46 1.745 4.202t4.198 1.742m0-12.34q2.64 0 4.521 1.882Q14.4 4.978 14.4 7.616q0 2.645-1.883 4.521t-4.52 1.876q-2.646 0-4.522-1.876Q1.6 10.262 1.6 7.617q0-2.64 1.875-4.522t4.521-1.882"})]})}),v=r.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:x,...e}));v.displayName="FullMoon";let p=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Waning Gibbous"}):t?(0,a.jsx)("title",{id:r,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M7.996 13.553q1.374 0 2.36-1.742t.986-4.202q0-2.452-.986-4.198-.986-1.745-2.36-1.745-2.452 0-4.198 1.745Q2.053 5.157 2.053 7.61q0 2.46 1.745 4.202t4.198 1.742m0-12.34q2.64 0 4.521 1.882Q14.4 4.978 14.4 7.616q0 2.645-1.883 4.521t-4.52 1.876q-2.646 0-4.522-1.876Q1.6 10.262 1.6 7.617q0-2.64 1.875-4.522t4.521-1.882"})]})}),g=r.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:p,...e}));g.displayName="WaningGibbous";let f=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Last Quarter"}):t?(0,a.jsx)("title",{id:r,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M7.997 1.673q-2.439 0-4.188 1.742-1.748 1.74-1.748 4.201 0 2.453 1.748 4.198 1.749 1.745 4.188 1.745zm.007 12.34q-2.64 0-4.521-1.883Q1.6 10.247 1.6 7.61q0-2.646 1.883-4.522 1.883-1.875 4.52-1.875 2.646 0 4.522 1.875Q14.4 4.964 14.4 7.61q0 2.64-1.875 4.521-1.876 1.883-4.521 1.883"})]})}),y=r.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:f,...e}));y.displayName="LastQuarter";let b=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Waning Crescent"}):t?(0,a.jsx)("title",{id:r,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M8.01 1.673q-2.453 0-4.201 1.745-1.75 1.746-1.75 4.198 0 2.454 1.75 4.198 1.748 1.745 4.2 1.745-.975 0-1.676-1.745-.7-1.744-.7-4.198 0-2.452.7-4.198.701-1.745 1.677-1.745m-.007 12.34q-2.645 0-4.524-1.88-1.88-1.878-1.88-4.517t1.88-4.52q1.878-1.883 4.524-1.883 2.638 0 4.518 1.882Q14.4 4.978 14.4 7.616q0 2.64-1.88 4.518-1.878 1.879-4.517 1.879"})]})}),w=r.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:b,...e}));w.displayName="WaningCrescent";var j=t(53);let N={[j.MoonPhaseCode.NEW]:s,[j.MoonPhaseCode.WAXING_CRESCENT]:d,[j.MoonPhaseCode.FIRST_QUARTER]:u,[j.MoonPhaseCode.WAXING_GIBBOUS]:h,[j.MoonPhaseCode.FULL]:v,[j.MoonPhaseCode.WANING_GIBBOUS]:g,[j.MoonPhaseCode.LAST_QUARTER]:y,[j.MoonPhaseCode.WANING_CRESCENT]:w},C=e=>{var l;let{moonPhaseCode:t,...r}=e,i=null!=(l=t&&N[t])?l:s;return(0,a.jsx)(i,{...r})}},82806:(e,l,t)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.createTransformer=function(e){return l=>((0,a.fromCompactResponse)(l)||[]).map((t,a)=>e(t,a,l))};let a=t(65179)},83728:(e,l,t)=>{"use strict";t.d(l,{D:()=>s});var a=t(62024),r=t(26404),i=t(91592);let n=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Snowflake"}):t?(0,a.jsx)("title",{id:r,children:t}):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"})]})]})}),s=r.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:n,...e}));s.displayName="Snowflake"},83879:(e,l,t)=>{"use strict";t.d(l,{b:()=>n});var a=t(62024);t(26404);var r=t(51707),i=t(85759);let n=e=>{let{className:l,units:t,visibility:n,unitsClassName:s}=e,o=t?(0,i.Bu)(t):null,d=null==o?void 0:o.distance,c="";return c=0===n?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:"0"}),(0,a.jsxs)("span",{className:(0,r.cn)(s),children:[" ",d]})]}):!n||n10||"m"===t&&n>16?"Unlimited":(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:n}),(0,a.jsxs)("span",{className:(0,r.cn)(s),children:[" ",d]})]}),(0,a.jsx)("span",{"data-testid":"VisibilityValue",className:(0,r.cn)(l),children:c})}},84230:(e,l,t)=>{"use strict";t.r(l),t.d(l,{TwitterAdminBlock:()=>o,default:()=>d});var a=t(62024),r=t(26404),i=t(62194),n=t(82878),s=t(17638);let o=()=>{let[e,l]=(0,i.kV6)(),t=(0,n.r)(e,!0),[o,d]=(0,r.useState)({tweetURL:null==t?void 0:t.tweetURL,tweetId:null==t?void 0:t.tweetId});return(0,r.useEffect)(()=>{d({tweetURL:null==t?void 0:t.tweetURL,tweetId:null==t?void 0:t.tweetId})},[null==t?void 0:t.tweetURL,null==t?void 0:t.tweetId]),(0,a.jsxs)(s.default,{name:"Twitter",children:[(0,a.jsx)("h4",{children:(()=>{switch(null==t?void 0:t.entryMethod){case"url":return o.tweetURL;case"id":return"Tweet ID: ".concat(o.tweetId);default:return"No tweet specified"}})()}),(0,a.jsx)("div",{style:{paddingTop:".3rem"},children:(0,a.jsx)(i.OcR,{label:"Show Thread",name:"showThread",checked:null==t?void 0:t.showThread,readOnly:!0,onToggle:e=>{l({type:"UPDATE",path:"showThread",value:!e})}})})]})},d=o},85371:(e,l,t)=>{"use strict";t.d(l,{yW:()=>b});var a=t(23708),r=t(31022);let i="",n="",s=1,o=0,d=0,c=0,u=0,m=!1,h=0,x={adImpression:!1,videoAttempt:!1,videoPlayed:!1,videoStarted:!1,videoCompleted:!1,videoEnd:!1},v={autostart:"auto",interaction:"click",external:"externalLink",playlist:"playlistClick","related-interaction":"nextClick","related-auto":"auto"};function p(e){var l;return null!=(l=v[e])?l:"click"}function g(e){let l=e.split(":").map(Number);if(2===l.length){let[e=0,t=0]=l,a=Math.floor(60*e+t);return isNaN(a)?0:a}if(3===l.length){let[e=0,t=0,a=0]=l,r=Math.floor(3600*e+60*t+a);return isNaN(r)?0:r}return 0}function f(){Object.keys(x).map(e=>{x[e]=!1}),o=0,d=0,n=""}function y(e,l){var t,i,n,s,o,d,c,u,m,h,x,v,p,g,f,y,b,w,j,N,C,T,A,k,S,I,_,R,M,P,L,E,D,F,B,V,z;let W=l||e.getPlaylistItem();return{adBlock:e.getAdBlock(),adsMetricsUnitAndZone:null==W||null==(i=W.custom)||null==(t=i.ctx)?void 0:t.adzone,aspectRatio:null==e||null==(n=e.getConfig())?void 0:n.aspectratio,assetName:(0,a.EY)(null!=(V=null==W||null==(o=W.custom)||null==(s=o.ctx)?void 0:s.assetName)?V:""),collection:null==W||null==(c=W.custom)||null==(d=c.ctx)?void 0:d.pcollid,collectionId:null==W||null==(m=W.custom)||null==(u=m.ctx)?void 0:u.pcollid,contentId:null==W||null==(x=W.custom)||null==(h=x.ctx)?void 0:h.id,entitlements:(0,r.X)(null!=(z=null==W||null==(p=W.custom)||null==(v=p.ctx)?void 0:v.entitlements)?z:[]),iabContent:(0,a.IA)((null==W||null==(f=W.custom)||null==(g=f.ctx)?void 0:g.iab)||{}),id:null==W||null==(b=W.custom)||null==(y=b.ctx)?void 0:y.id,duration:null==W||null==(j=W.custom)||null==(w=j.ctx)?void 0:w.duration,lastmodifieddate:null==W||null==(T=W.custom)||null==(C=T.ctx)||null==(N=C.lastmodifieddate)?void 0:N.toString(),muted:e.getMute(),premiumContent:null==W||null==(k=W.custom)||null==(A=k.ctx)?void 0:A.premium,publishdate:null==W||null==(_=W.custom)||null==(I=_.ctx)||null==(S=I.publishdate)?void 0:S.toString(),providerName:null==W||null==(M=W.custom)||null==(R=M.ctx)?void 0:R.providername,tagsGeo:(0,r.X)(null==W||null==(L=W.custom)||null==(P=L.ctx)?void 0:P.tagsGeo),tagsKeyword:(0,r.X)(null==W||null==(D=W.custom)||null==(E=D.ctx)?void 0:E.tagsKeyword),tagsStorm:(0,r.X)(null==W||null==(B=W.custom)||null==(F=B.ctx)?void 0:F.tagsStorm)}}let b=[{eventName:"ready",callback:e=>{let{player:l,trackVideoEvent:t}=e;window.addEventListener("beforeunload",()=>{if(x.videoStarted&&!x.videoEnd){var e,a;let r=l.getPlaylistItem(),d=g(null==r||null==(a=r.custom)||null==(e=a.ctx)?void 0:e.duration);r&&!x.videoAttempt&&t&&(t({eventName:"video-end",eventAttributes:{errorMessage:n,contentWatchedSeconds:o,playReason:i,videoView:s,...y(l)}}),t({eventName:"video-ended",eventAttributes:{errorMessage:n,videoWatchedLength:o,playMethod:i,videoView:s,...y(l),videoLength:d,adLength:c,adWatchedLength:u,adSkipped:m,exitReason:"pageExit"}})),x.videoEnd=!0}})}},{eventName:"adImpression",callback:async e=>{let{player:l,trackVideoEvent:t}=e,a=l.getPlaylistItem();if(n="",f(),console.debug("JW Player callback - adImpression eventSentFlags:",x),x.adImpression=!0,a&&!x.videoAttempt&&t){var r,o;let e=g(null==a||null==(o=a.custom)||null==(r=o.ctx)?void 0:r.duration);t({eventName:"video-attempt",eventAttributes:{errorMessage:n,playReason:i,videoView:s,...y(l)}}),t({eventName:"video-attempted",eventAttributes:{errorMessage:n,playMethod:i,videoLength:e,videoView:s,...y(l)}}),x.videoAttempt=!0}a&&!x.videoPlayed&&t&&(t({eventName:"video-played",eventAttributes:{errorMessage:n,playReason:i,videoView:s,...y(l)}}),x.videoPlayed=!0)}},{eventName:"viewable",callback:async e=>{let{event:l}=e;s=null==l?void 0:l.viewable}},{eventName:"playlistItem",callback:async e=>{let{player:l,trackVideoEvent:t}=e;if(i=p("playlist"),x.videoStarted&&!x.videoCompleted&&!x.videoEnd){var a,r;let e=l.getPlaylistIndex(),d=l.getPlaylistItem(e-1),h=g(null==d||null==(r=d.custom)||null==(a=r.ctx)?void 0:a.duration);t({eventName:"video-end",eventAttributes:{errorMessage:n,contentWatchedSeconds:o,playReason:i,videoView:s,...y(l,d)}}),t({eventName:"video-ended",eventAttributes:{errorMessage:n,videoWatchedLength:o,playMethod:i,videoView:s,...y(l),videoLength:h,adLength:c,adWatchedLength:u,adSkipped:m,exitReason:"nextVideo"}}),x.videoEnd=!0}}},{eventName:"playAttempt",callback:async e=>{let{player:l,trackVideoEvent:t}=e,a=l.getPlaylistItem();if(x.adImpression||(n="",f()),console.debug("JW Player callback - playAttempt eventSentFlags:",x),a&&!x.videoAttempt&&t){var r,o;let e=g(null==a||null==(o=a.custom)||null==(r=o.ctx)?void 0:r.duration);x.videoAttempt=!0,t({eventName:"video-attempt",eventAttributes:{errorMessage:n,playReason:i,videoView:s,...y(l)}}),t({eventName:"video-attempted",eventAttributes:{errorMessage:n,videoLength:e,playMethod:i,videoView:s,...y(l)}})}}},{eventName:"firstFrame",callback:async e=>{let{player:l,trackVideoEvent:t}=e;console.debug("JW Player callback - firstFrame eventSentFlags:",x);let a=l.getPlaylistItem();if(a&&!x.videoPlayed&&t&&(t({eventName:"video-played",eventAttributes:{errorMessage:n,playReason:i,videoView:s,...y(l)}}),x.videoPlayed=!0),a&&!x.videoStarted&&t){var r,o;let e=g(null==a||null==(o=a.custom)||null==(r=o.ctx)?void 0:r.duration);t({eventName:"video-started",eventAttributes:{errorMessage:n,playReason:i,videoView:s,...y(l)}}),t({eventName:"video-begin",eventAttributes:{errorMessage:n,playMethod:i,videoView:s,...y(l),videoLength:e,adLength:c,adWatchedLength:u,adSkipped:m}}),x.videoStarted=!0}}},{eventName:"complete",callback:async e=>{var l,t;let{player:a,trackVideoEvent:r}=e,d=a.getPlaylistItem(),h=g(null==d||null==(t=d.custom)||null==(l=t.ctx)?void 0:l.duration);console.debug("JW Player callback - complete eventSentFlags:",x),d&&!x.videoCompleted&&r&&(r({eventName:"video-completed",eventAttributes:{errorMessage:n,playReason:i,videoView:s,...y(a)}}),x.videoCompleted=!0),x.videoStarted&&!x.videoEnd&&(r({eventName:"video-end",eventAttributes:{errorMessage:n,contentWatchedSeconds:o,playReason:i,videoView:s,...y(a)}}),r({eventName:"video-ended",eventAttributes:{errorMessage:n,videoWatchedLength:o,playMethod:i,videoView:s,...y(a),videoLength:h,adLength:c,adWatchedLength:u,adSkipped:m,exitReason:"complete"}}),x.videoEnd=!0)}},{eventName:"adStarted",callback:async e=>{let{event:l,player:t,trackVideoEvent:a}=e,r=t.getPlaylistItem();c=l.duration,console.debug("JW Player callback - adStarted eventSentFlags:",x),r&&a&&a({eventName:"ad-started",eventAttributes:{errorMessage:n,playReason:i,videoView:s,...y(t)}})}},{eventName:"adSkipped",callback:async e=>{let{player:l,trackVideoEvent:t}=e,a=l.getPlaylistItem();m=!0,a&&t&&t({eventName:"ad-skipped",eventAttributes:{errorMessage:n,playReason:i,videoView:s,...y(l)}})}},{eventName:"adComplete",callback:async e=>{let{event:l,player:t,trackVideoEvent:a}=e,r=t.getPlaylistItem();u=l.duration,console.debug("JW Player callback - adComplete eventSentFlags:",x),r&&a&&a({eventName:"ad-complete",eventAttributes:{errorMessage:n,playReason:i,videoView:s,...y(t)}})}},{eventName:"beforePlay",callback:async e=>{let{event:l}=e;i=p(null==l?void 0:l.playReason)}},{eventName:"adError",callback:async e=>{let{event:l}=e;console.error("Video ad error:",l)}},{eventName:"error",callback:async e=>{let{event:l}=e;n=null==l?void 0:l.message,console.error("Video Player error:",l)}},{eventName:"time",callback:e=>{let{event:l}=e;if("number"==typeof(null==l?void 0:l.position)){let e=l.position-d;o+=e,d=l.position}}},{eventName:"seek",callback:e=>{let{event:l}=e;"number"==typeof(null==l?void 0:l.offset)&&(d=l.offset)}},{eventName:"adTime",callback:async e=>{let{event:l}=e,t=Date.now();t-h>=1e3&&(u=parseFloat(l.position.toFixed(2)),h=t)}}]},86131:(e,l,t)=>{"use strict";t.r(l),t.d(l,{HealthAndActivitiesBlock:()=>P,default:()=>L});var a=t(62024),r=t(26404),i=t(47107),n=t(28335),s=t(87682),o=t(80891),d=t(93202),c=t(91592);let u=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Chevron Right"}):t?(0,a.jsx)("title",{id:r,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M10.414 7.643c.26.26.26.682 0 .943l-4.178 4.178a.495.495 0 1 1-.7-.7l3.95-3.95-3.95-3.95a.495.495 0 1 1 .7-.7z"})]})}),m=r.forwardRef((e,l)=>(0,a.jsx)(c.h,{ref:l,icon:u,...e}));m.displayName="ChevronRight";var h=t(51707);let x=e=>{let{value:l,maxValue:t,strokeColor:r,heading:i,description:s,icon:c,href:u}=e,x=(0,n.c)("HealthAndActivities");return(0,a.jsxs)(o.default,{className:(0,h.cn)("flex items-center justify-between border-[#dedede] not-last:border-b-1","pt-[18px] pr-4 pb-[17px] pl-6"),href:u,children:[(0,a.jsx)(d.V,{value:l,maxValue:t,diameter:50,strokeWidth:4,strokeColor:r,icon:c,className:"min-w-[50px]"}),(0,a.jsxs)("div",{className:"ml-5 grow",children:[(0,a.jsx)("div",{className:"mb-1 text-lg leading-snug",children:x(i)}),(0,a.jsx)("div",{className:"text-sm leading-[1.25] text-[#6f7585]",children:x(s)})]}),(0,a.jsx)(m,{className:"ml-2.5 w-4 shrink-0"})]})},v=e=>{let{data:l=[]}=e,t=(0,n.c)("HealthAndActivities");return l.length?(0,a.jsxs)(s.Zp,{"data-testid":"HealthAndActivitiesModule","aria-label":t("healthAndActivities"),children:[(0,a.jsx)(s.aR,{text:t("healthActivities")}),(0,a.jsx)(s.Wu,{children:l.map(e=>(0,a.jsx)(x,{...e},e.heading))})]}):null};var p=t(16655),g=t(44344),f=t(34159);let y=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"grass"}):t?(0,a.jsx)("title",{id:r,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.366 2.062c.194.108.291.331.238.546-.751 3.018-.824 5.682-.714 7.753.492-1.662 1.312-3.691 2.919-5.446a.494.494 0 0 1 .605-.097c.2.11.296.345.232.564a25.4 25.4 0 0 0-.807 3.851c-.185 1.515-.185 3.022.205 4.113a.493.493 0 0 1-.928.328c-.47-1.312-.444-3.008-.254-4.56.066-.54.153-1.07.25-1.573-.966 1.698-1.384 3.427-1.696 4.715-.101.419-.191.79-.285 1.1a.492.492 0 0 1-.96-.084l-.001-.007c-.213-1.791-.582-4.891.033-8.718-.707 1.279-1.072 2.704-1.268 4.06-.144 1-.195 1.949-.23 2.758l-.012.309c-.027.659-.05 1.245-.127 1.635a.492.492 0 0 1-.97-.025c-.323-2.224-1.173-4.559-2.65-6.574.215.872.401 1.8.55 2.686.283 1.695.441 3.311.38 4.15a.492.492 0 0 1-.983-.072c.053-.711-.086-2.226-.37-3.917-.28-1.68-.693-3.466-1.16-4.71a.49.49 0 0 1 .192-.581.495.495 0 0 1 .613.059c1.71 1.653 2.894 3.65 3.626 5.698a23 23 0 0 1 .166-1.554c.303-2.095 1.007-4.496 2.815-6.323a.495.495 0 0 1 .591-.084",clipRule:"evenodd"})]})}),b=r.forwardRef((e,l)=>(0,a.jsx)(c.h,{ref:l,icon:y,...e}));b.displayName="Grass";var w=t(12565);let j={0:"None",1:"Low",2:"Moderate",3:"High",4:"VeryHigh"},N={0:"veryLowRisk",1:"lowRisk",2:"mediumRisk",3:"highRisk",4:"veryHighRisk"},C={0:"#00e838",1:"#a9eB02",2:"#ebbb02",3:"#f27200",4:"#ff0000"},T={0:"#D9DCFD",1:"#AEAFFF",2:"#868CFF",3:"#5151FF",4:"#17007E"};var A=t(70017);let k=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Flu"}):t?(0,a.jsx)("title",{id:r,children:t}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M8.5 5.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0M11 7.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0M8 8.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M9 10.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0M5.75 9a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5"}),(0,a.jsx)("path",{fillRule:"evenodd",d:"M12.975 7.5H14v-1h1v3h-1v-1h-1.025a4.97 4.97 0 0 1-1.108 2.66l.719.719.707-.707.707.707L11.879 14l-.707-.707.707-.707-.719-.718a4.97 4.97 0 0 1-2.66 1.107V14h1v1h-3v-1h1v-1.025a4.97 4.97 0 0 1-2.66-1.107l-.719.718.707.707-.707.707L2 11.879l.707-.707.707.707.719-.718A4.97 4.97 0 0 1 3.025 8.5H2v1H1v-3h1v1h1.025a4.97 4.97 0 0 1 1.108-2.66l-.719-.719-.707.707L2 4.121 4.121 2l.707.707-.707.707.719.718A4.97 4.97 0 0 1 7.5 3.025V2h-1V1h3v1h-1v1.025a4.97 4.97 0 0 1 2.66 1.107l.719-.718-.707-.707.707-.707L14 4.121l-.707.707-.707-.707-.719.718A4.97 4.97 0 0 1 12.975 7.5m-7.197 3.826a4 4 0 1 0 4.444-6.652 4 4 0 0 0-4.444 6.652",clipRule:"evenodd"})]})]})}),S=r.forwardRef((e,l)=>(0,a.jsx)(c.h,{ref:l,icon:k,...e}));S.displayName="Flu";var I=t(93117);let _=e=>{let{location:l}=e,{effectiveLocation:t,isLocationLoading:r,locationError:n}=(0,i.s)({location:l}),{data:s,isLoading:o,error:d}=(e=>{let l=(0,w.useParams)(),t=null==l?void 0:l.locale,{data:a,error:r,isLoading:i}=(0,g.Ay)(e?["pollen",e.geocode,t]:null,e=>{let[l,t,a]=e;return(0,f.K)({geocode:t,language:a})},{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:n,error:s,isLoading:o}=(0,g.Ay)(e?["cognitiveHealth",e.geocode,t]:null,e=>{let[l,t,a]=e;return(0,A.Jh)({geocode:t,language:a,conditionType:"coldAndFlu"})},{revalidateOnFocus:!1,dedupingInterval:6e4}),d={locId:null==e?void 0:e.placeId,locale:t},c=(0,I.n)({key:"allergy",interpolationArgs:d}),u=a?function(e,l){let{pollenForecast12hour:t}=e,a=Object.entries({grass:t.grassPollenIndex[0]||0,ragweed:t.ragweedPollenIndex[0]||0,tree:t.treePollenIndex[0]||0}).sort((e,l)=>{let[t,a]=e,[r,i]=l;return i-a})[0][0],r=t["".concat(a,"PollenIndex")][0]||0,i=j[r],n="".concat(a,"Pollen").concat(i);return{value:r,maxValue:4,heading:"allergy",description:0!==r?n:"noPollenDetected",strokeColor:C[r],icon:b,href:l}}(a,c):void 0,m=(0,I.n)({key:"coldFlu",interpolationArgs:d});return{data:[u,n?function(e,l){let{riskLevel:t}=(null==e?void 0:e.coldAndFlu)||{},a=null==t?void 0:t[0];return null==a?null:{value:a,maxValue:4,heading:"coldFlu",description:"".concat(N[a],"ColdFlu"),strokeColor:T[a],icon:S,href:l}}(n,m):void 0].filter(Boolean),isLoading:i||o,error:r||s}})(t),c=o||r,u=d||n;return s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.DebugCollector,{componentName:"HealthAndActivities",data:{props:{location:l},state:{effectiveLocation:t,isLocationLoading:r,isLoading:c,data:s,error:u,componentState:u&&"error"||c&&"loading"||"ready"},performance:{renderCount:void 0}}}),(0,a.jsx)(v,{data:s})]}):null};var R=t(2212),M=t(10478);let P=e=>{let{locationProvider:l,locationEntry:t}=e,r="specified"===l,{specifiedLocationData:i,specifiedLocationError:n,isSpecifiedLocationLoading:s}=(0,R.v)(r?t:null);return r&&s?(0,a.jsx)("div",{children:"Loading location data..."}):r&&n?(0,a.jsxs)("div",{children:["Error loading location data: ",n.message]}):r&&i&&t?(0,a.jsx)(_,{location:(0,M.I)(i)}):r?null:(0,a.jsx)(_,{})},L=P},86786:(e,l,t)=>{"use strict";t.r(l),t.d(l,{HourlyForecastBlock:()=>ec,default:()=>eu});var a=t(62024),r=t(26404),i=t(28335),n=t(44344),s=t(8257),o=t(28123),d=t(47107),c=t(74743),u=t(62792),m=t(85759),h=t(12565),x=t(5996),v=t(19196),p=t(80891),g=t(87682),f=t(34246),y=t(66087),b=t(45342),w=t(57109),j=t(69411),N=t(98744),C=t(51707),T=t(26097),A=t(35505),k=t(55751);let S=["temperatureFeelsLike","accumulation","windSpeed","pressureMeanSeaLevel","cloudCover","temperatureDewPoint","uvIndex","visibility","airQuality","relativeHumidity","windGust"],I=e=>{let{text:l}=e;return(0,a.jsx)(x.Ay,{variant:"Caption.M",color:"secondary",className:"mb-1 font-bold @max-md/hourItem:hidden",children:l})},_=e=>{let{forecast:l,timeZone:t,locale:r,itemIndex:n,longPhraseInSet:s}=e,o=(0,i.c)("DetailsTable"),d=(0,c.md)(u.Yt),h=(0,m.xP)(d),v=0===n;return(0,a.jsxs)(N.As,{value:l.validTimeLocal,className:"border-grey-500 @container/hourItem gap-2 border-b py-3",children:[(0,a.jsx)(N.$m,{className:"items-end gap-1 p-0 @md/hourItem:gap-3",iconClassName:"mb-1 size-4",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)(x.Ay,{className:(0,C.cn)("inline-block rounded-[100px] px-2 py-0.5 whitespace-nowrap","group-data-[state=open]:bg-blue-500 group-data-[state=open]:text-white"),children:(0,y.P)({date:l.validTimeLocal,locale:r,timeZone:t})})}),(0,a.jsx)("div",{className:"basis-[40px]",children:(0,a.jsx)(x.Ay,{variant:"Body.L.Bold",children:(0,a.jsx)(w.B,{value:l.temperature})})}),(0,a.jsxs)("div",{className:"relative flex h-6 items-center",children:[(0,a.jsx)(k.WxIcon,{iconCode:l.iconCode,className:"lightBG size-7 @md/hourItem:size-8",size:"lg",iconTheme:"lightBG","aria-label":l.wxPhraseLong||"Weather condition ".concat(l.iconCode)}),(0,a.jsx)(x.Ay,{variant:"Body.M",className:(0,C.cn)("pl-1.5 @max-2xl/hourItem:hidden",s?"min-w-[200px]":"min-w-[110px]"),children:l.wxPhraseLong})]}),(0,a.jsx)("div",{className:"min-w-[50px] items-end @lg/hourItem:min-w-[105px] @lg/hourItem:py-0.5",children:(0,a.jsx)(T.W,{precipChance:l.precipChance,displayMode:"both",textClassName:"@lg/hourItem:hidden",progressClassName:"@max-lg/hourItem:hidden",iconClassName:"@max-lg/hourItem:size-3"})}),(0,a.jsxs)("div",{className:"basis-[72px] items-end @max-md/hourItem:hidden",children:[v&&(0,a.jsx)(I,{text:o("humidity")}),(0,a.jsx)(x.Ay,{children:(0,a.jsx)(j.N,{value:l.relativeHumidity})})]}),(0,a.jsxs)("div",{className:"basis-[76px] items-end",children:[v&&(0,a.jsx)(I,{text:o("wind")}),(0,a.jsx)(x.Ay,{elementType:"div",children:(0,a.jsx)(b.Z,{windSpeed:l.windSpeed,windDirectionCardinal:l.windDirectionCardinal,units:h.code,displayMode:"directional",className:"whitespace-nowrap",iconClassName:"size-3 @md/hourItem:size-4"})})]}),(0,a.jsxs)("div",{className:"min-w-[76px] @max-md/hourItem:hidden",children:[v&&(0,a.jsx)(I,{text:o("precipitation")}),(0,a.jsx)(x.Ay,{children:(0,a.jsx)(A.e,{precipType:l.precipType,qpf:l.qpf,qpfSnow:l.qpfSnow,units:h.code})})]})]})}),(0,a.jsx)(N.ub,{className:"pt-2 pb-2 @md/hourItem:pt-4",children:(0,a.jsx)(f.A,{dataPoints:l,fields:S,locale:r})})]})};var R=t(59933);let M=e=>{let{skeletonColumns:l}=e;return(0,a.jsx)(a.Fragment,{children:Array(l).fill("").map((e,l)=>(0,a.jsx)("div",{className:"border-grey-500 gap-1 border-b py-3",children:(0,a.jsx)(R.A,{skeletonClassName:"mt-1 w-full "+(0===l?"h-69":"h-4")})},"hourly-forecast-skel-".concat(l)))})};var P=t(57246),L=t(10548),E=t(33333),D=t(57512),F=t(46623),B=t(91592);let V=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Sunny Day"}):t?(0,a.jsx)("title",{id:r,children:t}):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"})]})]})}),z=r.forwardRef((e,l)=>(0,a.jsx)(B.h,{ref:l,icon:V,...e}));z.displayName="SunnyDay";let W=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Cloudy"}):t?(0,a.jsx)("title",{id:r,children:t}):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"})]})}),H=r.forwardRef((e,l)=>(0,a.jsx)(B.h,{ref:l,icon:W,...e}));H.displayName="Cloudy";let U=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Rain Heavy"}):t?(0,a.jsx)("title",{id:r,children:t}):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"})]})]})}),O=r.forwardRef((e,l)=>(0,a.jsx)(B.h,{ref:l,icon:U,...e}));O.displayName="RainHeavy";let Q=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Clear Night"}):t?(0,a.jsx)("title",{id:r,children:t}):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"})]})}),q=r.forwardRef((e,l)=>(0,a.jsx)(B.h,{ref:l,icon:Q,...e}));q.displayName="ClearNight";let G=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,t?(0,a.jsx)("title",{id:r,children:t}):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"})]})}),Z=r.forwardRef((e,l)=>(0,a.jsx)(B.h,{ref:l,icon:G,...e}));Z.displayName="FairMostlyClearDay";var Y=t(6341);let X=e=>{let{insightHeadline:l,insightTextLong:t,className:r,headlineClass:i,textClass:n,background:s,weatherMode:o}=e;if(!l&&!t)return null;let d="";return o&&(d="severe"===o?"warning":"watch"),(0,a.jsxs)("div",{className:(0,C.cn)("nowrap flex items-center px-6.5 py-4",r,s&&"bg-[#f6f6f6]","watch"===d&&"bg-[#f6f6f6]","warning"===d&&"bg-[#ba0d00]"),children:[d?(0,a.jsx)(Y.A,{className:"mr-4 size-4.5 shrink-0"}):null,(0,a.jsxs)("div",{children:[l?(0,a.jsx)(x.Ay,{elementType:"h2",variant:"Body.M",className:(0,C.cn)("mb-2.5 text-base font-medium text-gray-500",i),children:l}):null,t?(0,a.jsx)(x.Ay,{variant:"Body.L.Bold",className:(0,C.cn)("font-semibold text-gray-800","watch"===d&&"text-sm text-white","warning"===d&&"text-sm text-[#ba0d00]",n),children:t}):null]})]})};var $=t(80672),J=t(73585);let K={up:D.D,down:F.y,sun:z,cloud:H,rain:O,clear:z,"clear-night":q,fair:Z},ee=e=>{let{location:l,locale:t}=e,{insightTextLong:r}=(0,J.p)(l,t);return r?(0,a.jsx)(X,{className:"px-4 py-2",headlineClass:"hidden",textClass:"text-sm m-0",insightTextLong:r}):null},el=e=>{let{location:l,hourlyForecast:t,isLoading:n,error:s,locale:o,showDayLabel:d,canToggleMultipleItems:c,ctaLink:u,ctaText:m,enableAlertHeadlines:h,insight:f,insightIcon:y,showPrecipIntensity:b,simplifiedVersion:w}=e,j=(0,i.c)("HourlyForecast"),[C,T]=(0,r.useState)(!1),A=y&&K[y];return(0,a.jsxs)(g.Zp,{"aria-label":j("hourlyWeather"),className:"not-prose @container/hourly","data-testid":"hourly-forecast",children:[(0,a.jsx)(g.aR,{text:j("hourlyWeather")}),(0,a.jsxs)(g.Wu,{className:"p-0",children:[n?(0,a.jsx)(R.A,{skeletonClassName:"my-3 h-4 w-20 gap-1"}):f?(0,a.jsxs)("div",{className:"mt-2 mb-4 flex items-center gap-1",children:[A&&(0,a.jsx)("div",{children:(0,a.jsx)(A,{className:"text-brand-light size-5"})}),(0,a.jsx)(x.Ay,{variant:"Body.S.Bold",color:"brandLight",children:f})]}):"",h&&(0,a.jsx)("div",{children:(0,a.jsx)(L.A,{location:l,className:"mx-4 mb-3 inline-flex @lg/hourly:min-w-59"})}),b&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ee,{location:l,locale:o}),(0,a.jsx)("div",{className:"px-4 py-2",children:(0,a.jsx)($.A,{location:l,onlyChart:!0})})]}),(()=>{var e,i;if(s)return(0,a.jsx)(x.Ay,{variant:"Display.S",className:"flex min-h-48 items-center justify-center p-4",children:(null==s?void 0:s.message)||j("errorMsg")});let h=null!=(i=null==(e=t[0])?void 0:e.validTimeLocal)?i:void 0;return(0,a.jsxs)("div",{children:[(0,a.jsx)(N.nD,{...c?{type:"multiple",defaultValue:h?[h]:void 0}:{type:"single",defaultValue:h},children:n?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(M,{skeletonColumns:w?4:76})}):t.map((e,i)=>{var n;return!C&&e.wxPhraseLong.length>15&&T(!0),(0,a.jsxs)(r.Fragment,{children:[d&&(0===i||e.dayOfWeek!==((null==(n=t[i-1])?void 0:n.dayOfWeek)||""))&&(0,a.jsx)(x.Ay,{variant:"Body.L.Bold",className:"border-b border-[#dedede] p-4",children:(e=>{let{date:l,locale:t="en-US",timeZone:a}=e;if(!l)return"";let{cDate:r,cTimeZone:i}=(0,P.r)({date:l,locale:t,timeZone:a});return new Intl.DateTimeFormat(t,{weekday:"long",day:"numeric",month:"long",timeZone:i}).format(r)})({date:e.validTimeLocal,locale:o,timeZone:(null==l?void 0:l.ianaTimeZone)||""})}),(0,a.jsx)(_,{itemIndex:i,forecast:e,timeZone:(null==l?void 0:l.ianaTimeZone)||"",locale:o,longPhraseInSet:C})]},e.validTimeLocal)})},h),u&&m&&(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(v.$n,{asChild:!0,children:(0,a.jsx)(p.default,{href:u,children:m})})})]})})()]})]})};var et=t(90251),ea=t(70017),er=t(50247);let ei=["trendingFeelsLikeInsight","trendingTemperatureInsight","trendingWindInsight","trendingUvIndexInsight"],en=Math.floor(Math.random()*ei.length),es=e=>{var l,t;let{location:x,simplifiedVersion:v,initializing:p,initialError:g}=e,f=(0,h.useParams)(),y=(0,i.c)("HourlyForecast"),{effectiveLocation:b,isLocationLoading:w}=(0,d.s)({location:x}),j=(0,c.md)(u.Yt),N=null==(l=(0,m.xP)(j))?void 0:l.code,C=v?o.HourlyForecastDuration.ONE_DAY:o.HourlyForecastDuration.THREE_DAY,T=null==(t=(0,h.useParams)())?void 0:t.locale,{data:A=[],error:k,isLoading:S}=(0,n.Ay)(b?["get-hourly-forecast",b.geocode,N,C,T]:null,e=>{let[l,t,a,r,i]=e;return(0,s.eH)({geocode:t,units:a,duration:r,language:i})},{revalidateOnFocus:!1,dedupingInterval:6e4}),I=(0,r.useMemo)(()=>v?A.slice(0,4):A,[A,v]),{insight:_,insightIcon:R}=((e,l)=>{var t;let a=(0,c.md)(u.Yt),i=null==(t=(0,m.xP)(a))?void 0:t.code,{data:s,isLoading:d}=(0,er.r)({geoCode:(null==e?void 0:e.geocode)||null,insightType:E.InsightType.ALL,locale:l}),h=(0,r.useMemo)(()=>null==s?void 0:s.reduce((e,l)=>(e[l.insightType]=l,e),{}),[s]),{data:x=[],isLoading:v}=(0,n.Ay)(e?["get-daily-forecast",e.geocode,o.ForecastDuration.THREE_DAY,i,l]:null,e=>{let[l,t,a,r,i]=e;return(0,ea.v1)({geocode:t,units:r,duration:a,language:i})},{revalidateOnFocus:!1,dedupingInterval:6e5}),p=d||v,g=x[0],f=(0,r.useMemo)(()=>{var e,l,t,a,r,i;if(p)return"";let n=null==h||null==(l=h.significantWeatherTodayInsight)||null==(e=l.insightText)?void 0:e[0];if(n)return n;let s=null==g||null==(a=g.daypart)||null==(t=a[0])?void 0:t.narrative;if(s)return s.split(".")[0];let o=ei[en]||ei[0];return(null==h||null==(i=h[o])||null==(r=i.insightText)?void 0:r[0])||""},[p,h,null==g?void 0:g.daypart]);return(0,r.useMemo)(()=>{let e=(0,et.B)(f,[" ","."]),l=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:l}},[f])})(b,T),M=p||S||w||!(null==I?void 0:I.length),P=v?"/weather/hourbyhour/l/".concat((null==b?void 0:b.placeId)||(null==f?void 0:f.locId)):"/weather/tenday/l/".concat((null==b?void 0:b.placeId)||(null==f?void 0:f.locId));return(0,a.jsx)(el,{location:b,hourlyForecast:I,locale:T,isLoading:M,error:g||k,showDayLabel:!v,canToggleMultipleItems:!v,ctaLink:P,ctaText:y(v?"next48":"10DayWeather"),enableAlertHeadlines:!v,insight:_,insightIcon:R,showPrecipIntensity:!v,simplifiedVersion:v})};var eo=t(10478),ed=t(2212);let ec=e=>{let{locationProvider:l,locationEntry:t,simplifiedVersion:r}=e,i="specified"===l,{specifiedLocationData:n,specifiedLocationError:s,isSpecifiedLocationLoading:o}=(0,ed.v)(i?t:null),d=i&&n&&t?(0,eo.I)(n):void 0;return(0,a.jsx)(es,{location:d,simplifiedVersion:null!=r&&r,initializing:i&&o,initialError:i?s:void 0})},eu=ec},86938:(e,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getHourlyAirQualityForecastUrlConfig=function(e){let{geocode:l,language:t,scale:a,duration:r}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/globalAirQuality/forecast/hourly/".concat(r),query:{geocode:l,language:t,scale:a,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},87414:(e,l,t)=>{"use strict";t.r(l),t.d(l,{CallToActionAdminBlock:()=>o,default:()=>d});var a=t(62024);t(26404);var r=t(17638),i=t(82878),n=t(62194),s=t(26104);let o=()=>{var e;let[l]=(0,n.kV6)(),t=(0,i.r)(l,!0),o=null;[{data:o}]=(0,n.Q0O)(t.media?"/api/payload/images/".concat(t.media):"");let d=(null==o?void 0:o.url)?null==o?void 0:o.url:"";return(0,a.jsx)(r.default,{name:null!=(e=null==t?void 0:t.title)?e:"Empty CTA Block",children:(null==t?void 0:t.title)?(0,a.jsxs)("div",{className:"space-y-4 rounded-lg p-4 shadow-sm",children:[(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-black-800",children:"Title:"}),(0,a.jsx)("div",{className:"text-gray-600",children:t.title})]}),t.subTitle&&(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold",children:"Subtitle:"}),(0,a.jsx)("div",{className:"text-gray-700",children:t.subTitle})]}),t.subText&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("span",{className:"font-semibold",children:"Sub Text:"}),(0,a.jsx)("div",{className:"text-gray-700",children:t.subText})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold",children:"CTA Style:"}),(0,a.jsx)("div",{className:"text-gray-700",children:t.ctaStyle})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold",children:"Background:"}),(0,a.jsx)("div",{className:"text-gray-700",children:t.backgroundColor||"white"})]}),t.buttonText&&(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold",children:"Button Text:"}),(0,a.jsx)("div",{className:"text-gray-700",children:t.buttonText})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold",children:"Link URL:"}),(0,a.jsx)("div",{className:"truncate text-gray-700",children:t.linkUrl})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold",children:"Opens in:"}),(0,a.jsx)("div",{className:"text-gray-700",children:t.openInNewTab?"New Tab":"Same Tab"})]})]}),d&&(0,a.jsx)(s.default,{src:d,alt:"",className:"max-h-[240px] max-w-[240px]"})]}):(0,a.jsx)("div",{className:"flex h-32 items-center justify-center border border-dashed border-gray-300",children:(0,a.jsx)("span",{children:"CTA is empty."})})})},d=o},88538:(e,l,t)=>{"use strict";t.r(l),t.d(l,{HealthAndActivitiesAdminBlock:()=>i,default:()=>n});var a=t(62024);t(26404);var r=t(17638);let i=()=>(0,a.jsx)(r.default,{name:"HealthAndActivities"}),n=i},89779:(e,l,t)=>{"use strict";t.r(l),t.d(l,{AdBlock:()=>p,default:()=>f});var a=t(62024),r=t(26404),i=t(16655),n=t(51707),s=t(11685),o=t(25890),d=t(74743),c=t(11525);let u=(0,t(12514).F)("",{variants:{overflow:{hidden:"overflow-hidden",none:""},layout:{flex:"flex-1",block:"block",fixed:"block fixed w-full",fixedBelowBottomNav:"block fixed w-full bottom-[61px] sm:bottom-0 z-[101]",contentTopDiv:"region-contentTop",stickyTopRight:"sticky top-[82px] z-45",default:""},bg:{white:"bg-white",gray:"bg-[#dee0e3]",none:""},radius:{md:"rounded-md",lg:"rounded-lg",none:""},padding:{standard:"px-4 pb-4",noTop:"pt-0 px-4 pb-4",mobile:"p-2",none:""},margin:{bottomMd:"mb-4",bottomLg:"mb-5",topMd:"mt-3",topLg:"mt-4",none:""},shadow:{md:"shadow-md",none:""},special:{hidden:"hidden",none:""}},compoundVariants:[{layout:"flex",margin:"topMd",class:"-mb-3"}],defaultVariants:{overflow:"none",layout:"default",bg:"none",radius:"none",padding:"none",margin:"none",shadow:"none",special:"none"}}),m={WX_WindowShade:{layout:"contentTopDiv",overflow:"hidden",margin:"bottomMd"},WX_Leaderboard:{layout:"contentTopDiv",overflow:"hidden",margin:"bottomMd"},WX_BottomLeader:{bg:"white",radius:"md",overflow:"hidden",padding:"standard",margin:"topLg"},WX_Bot300:{bg:"white",radius:"md",overflow:"hidden",padding:"standard",margin:"topLg"},WX_PromoDriver1:{bg:"white",radius:"md",overflow:"hidden",padding:"standard",margin:"topLg"},WX_MidLeader:{bg:"white",radius:"md",overflow:"hidden",padding:"standard",margin:"topLg"},WX_Top300Small:{bg:"white",radius:"md",overflow:"hidden",padding:"standard"},WX_SpotLight:{overflow:"hidden",bg:"white",margin:"bottomMd"},WX_DriverUnit:{overflow:"hidden",bg:"white",margin:"bottomMd"},WX_Top300Variable:{bg:"white",radius:"md",overflow:"hidden",padding:"standard"},MW_Position1:{layout:"fixedBelowBottomNav",bg:"gray",padding:"mobile"},MW_Position1_Samsung:{layout:"fixedBelowBottomNav",bg:"gray",padding:"mobile"},MW_Position3:{overflow:"hidden",margin:"bottomLg"},MW_Position4:{radius:"lg",overflow:"hidden",bg:"white",padding:"noTop"},MW_Position5:{radius:"lg",overflow:"hidden",bg:"white",padding:"noTop"},MW_Position2:{radius:"lg",overflow:"hidden",bg:"white",padding:"noTop"}},h=new Set(["MW_Position_ContentFeedAd","MW_Position_ContentFeedAd1","MW_Position_ContentFeedAd11","WX_ContentFeed","WX_ContentFeed1","WX_ContentFeedRadar"]),x=e=>h.has(e),v=function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"banner",t=arguments.length>2?arguments[2]:void 0,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(x(e))return t?u({layout:"flex",margin:"topMd"}):"";if("WX_Hidden"===e||!t)return u({special:"hidden"});let r=m[e];return r||(r="banner"===l?{radius:"lg",overflow:"hidden",bg:"white",shadow:"md",margin:"bottomMd"}:{bg:"white",radius:"md",overflow:"hidden",padding:"standard"}),"WX_Top300Variable"===e&&a&&(r={...r,layout:"stickyTopRight"}),u(r)},p=e=>{let{user:l}=(0,o.J)(),t=(0,d.md)(c.a),r=e.adId||("object"==typeof e.adSlot?e.adSlot.slotTarget:void 0);return l.isUserPremium||t||!r?null:(0,a.jsx)(g,{...e,adId:r})},g=e=>{let{adId:l,variant:t="banner",title:o=null,titleAlignment:d="right",height:c="120px",className:u="",sticky:m=!1}=e,[h,p]=(0,r.useState)({loaded:!1,height:c,displayAd:!1}),[g,f]=(0,r.useState)(!1),y=(0,r.useRef)(null),b=(0,r.useRef)(!1),w=(0,r.useRef)(null),j=(0,r.useRef)({resize:null,adFrameMutation:null,adCreativeMutation:null}),N=h.displayAd&&!g,C=(0,r.useMemo)(()=>v(l,t,N,m),[l,t,N,m]),T=(0,r.useMemo)(()=>{let e=h.loaded?"visible":"invisible";return"".concat("text-center w-full h-full flex text-gray-600 text-base leading-none"," ").concat("WX_SpotLight"!==l?"justify-center":""," ").concat(e)},[l,h.loaded]),A=(0,r.useCallback)(e=>{for(let l of e){let e=l.contentRect.height;e>0&&p(l=>({...l,height:"".concat(e+10,"px"),loaded:!0}))}},[]),k=(0,r.useCallback)(e=>{let l=e.some(e=>"childList"===e.type&&e.addedNodes.length>0);p(e=>({...e,displayAd:l}))},[]),S=(0,r.useCallback)(e=>{let l=y.current;if(e.some(e=>{var l;return"childList"===e.type&&e.addedNodes.length>0&&((null==(l=e.addedNodes[0])?void 0:l.textContent)!=="Advertisement"||e.addedNodes.length>1)})&&l){var t,a,r;null==(t=j.current.resize)||t.observe(l),null==(a=j.current.adCreativeMutation)||a.observe(l,{childList:!0,subtree:!0}),p(e=>({...e,loaded:!0})),null==(r=j.current.adFrameMutation)||r.disconnect()}},[]);return(0,r.useEffect)(()=>{p({loaded:!1,height:c,displayAd:!1});let e=new ResizeObserver(A),l=new MutationObserver(k),t=new MutationObserver(S);j.current={resize:e,adCreativeMutation:l,adFrameMutation:t};let a=y.current;return a&&t.observe(a,{childList:!0,subtree:!0}),()=>{e.disconnect(),t.disconnect(),l.disconnect()}},[k,l,c,A,S]),(0,r.useEffect)(()=>{x(l)&&!b.current&&((e=>{try{let l=(e=>{if("MW_Position_ContentFeedAd11"===e)return{currContentFeedIndex:"21",baseNativeAdPosition:"MW_Position_ContentFeedAd1"};if("MW_Position_ContentFeedAd1"===e||"WX_ContentFeed1"===e){let l=e.match(/(\d+)$/);if(l)return{currContentFeedIndex:l[1],baseNativeAdPosition:e.substring(0,l.index)}}return console.error("Could not parse index from ContentFeed adId: ".concat(e)),null})(e);if(l){let{currContentFeedIndex:t,baseNativeAdPosition:a}=l,r=window.__HeliosConfig.slotsConfig[a];if(r){let l="".concat(r.adUnitPath,"/contentfeed").concat(t);window.__HeliosQ=window.__HeliosQ||[],window.__HeliosQ.push(()=>{window.__Helios.waitForEvent("AD_SLOTS_CONNECTED").then(()=>{window.__Helios.emit("AD_RENDER_CONTENT_FEED",{elementId:e,adUnitPath:l,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)}})(l),b.current=!0)},[l]),(0,r.useEffect)(()=>{if("MW_Position1_Samsung"!==l)return;let e=Date.now();return w.current=setInterval(()=>{if(Date.now()-e>=1e4){w.current&&(clearInterval(w.current),w.current=null);return}(()=>{try{var e,l,t,a;let r=null==(e=window.__Helios)?void 0:e.adNodes;if(!r||0===r.length)return!1;let i=r.find(e=>{var l;return(null==e||null==(l=e.config)?void 0:l.pos)==="mw_adhd1"});if(!(null==i?void 0:i.slot))return!1;let n=null==(l=(t=i.slot).getHtml)?void 0:l.call(t);return null!=(a=null==n?void 0:n.includes('
'))&&a}catch(e){return!1}})()&&(f(!0),w.current&&(clearInterval(w.current),w.current=null))},500),()=>{w.current&&(clearInterval(w.current),w.current=null)}},[l]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.DebugCollector,{componentName:"AdBlock",data:{props:{adId:l,variant:t,title:o,titleAlignment:d,height:c,className:u},state:{loaded:h.loaded,height:h.height,displayAd:h.displayAd,isIMAdDetected:g},performance:{renderTime:Date.now()}}}),(0,a.jsxs)("div",{className:(0,n.cn)(C,u),children:[o&&h.loaded&&(0,a.jsx)("div",{className:"text-xxs w-full px-4 py-0.75 text-gray-400 text-".concat(d),children:o}),"WX_PromoDriver1"===l&&!o&&h.loaded&&h.displayAd&&(0,a.jsx)("h2",{className:"my-6 px-2 text-2xl font-bold",children:"Stay Safe"}),(0,a.jsx)("div",{id:l,"data-testid":l,className:T,style:{height:h.loaded?"100%":"0px"},ref:y})]}),"WX_PromoDriver1"===l&&(!h.loaded||!h.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"})]})},f=p},90218:(e,l,t)=>{"use strict";l.p_=n;let a=t(79714),r=t(4843),i=t(17126);async function n(e){let l=(0,i.getEmailPreferencesSetUrlConfig)(),t=(0,a.urlFrom)(l),n=JSON.stringify(function(e){let{subscriptions:l,email:t,mParticleId:a}=e,r={};return l&&(r.subscriptions=l),t&&(r.email=t),a&&(r.mParticleId=a),r}(e)),s=await fetch(t,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:n});if(200===s.status||400===s.status){let e=await s.json();return console.log({json:e}),e}return(0,r.handleFetchResponse)(s)}},90269:(e,l,t)=>{"use strict";t.d(l,{e:()=>r});let a="/placeholder-video-thumbnail.jpg",r=e=>{if(!e)return a;for(let l 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 t=e.match(l);if(t&&t[1])return"https://cdn.jwplayer.com/v2/media/".concat(t[1],"/poster.jpg")}return a}},90541:(e,l,t)=>{"use strict";l.$t=void 0,l.FA=c;let a=t(65130),r=t(79714),i=t(4843),n=t(82806),s=t(53),o=t(28123),d=t(46427);async function c(e){let t=(0,a.getFifteenMinuteForecastUrlConfig)(e),n=(0,r.urlFrom)(t),s=await fetch(n,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:60}}),o=await (0,i.handleFetchResponse)(s);return(0,l.$t)(o)}l.$t=(0,n.createTransformer)(e=>{var l,t,a,r,i,n,c,u,m,h,x,v,p,g,f,y,b;return{dayOfWeek:null!=(l=e.dayOfWeek)?l:"",iconCode:null!=(t=e.iconCode)?t:0,iconCodeExtend:null!=(a=e.iconCodeExtend)?a:0,precipChance:null!=(r=e.precipChance)?r:0,precipRate:null!=(i=e.precipRate)?i:0,precipType:null!=(n=e.precipType)?n:s.PrecipType.RAIN,relativeHumidity:null!=(c=e.relativeHumidity)?c:0,snowRate:null!=(u=e.snowRate)?u:0,temperature:null!=(m=e.temperature)?m:0,temperatureFeelsLike:null!=(h=e.temperatureFeelsLike)?h:0,validTimeLocal:null!=(x=e.validTimeLocal)?x:"",windDirection:null!=(v=e.windDirection)?v:0,windDirectionCardinal:(0,d.normalizeCardinal)(null!=(p=e.windDirectionCardinal)?p:o.WindDirectionCardinal.NORTH),windSpeed:null!=(g=e.windSpeed)?g:0,wxPhraseLong:null!=(f=e.wxPhraseLong)?f:"",wxPhraseShort:null!=(y=e.wxPhraseShort)?y:"",wxSeverity:null!=(b=e.wxSeverity)?b:0}})},90681:(e,l,t)=>{"use strict";t.d(l,{y:()=>n});var a=t(62024),r=t(26404),i=t(6384);let n=(0,r.memo)(e=>{let l,{airQualityIndex:t,airQualityCategory:r,className:n}=e,s=!(0,i.g)(t)&&!Number.isNaN(t),o=!(0,i.g)(r)&&""!==r.trim();return l=s&&o?"".concat(t," - ").concat(r):s?"".concat(t):o?r:"--",(0,a.jsx)("span",{"data-testid":"AirQualityValue",className:n,children:l})})},91086:(e,l,t)=>{"use strict";t.r(l),t.d(l,{AdAdminBlock:()=>s,default:()=>o});var a=t(62024);t(26404);var r=t(62194),i=t(82878),n=t(17638);let s=()=>{let[e]=(0,r.kV6)(),l=(0,i.r)(e,!0);return(0,a.jsx)(n.default,{name:"Ad",children:(0,a.jsxs)("span",{children:["Ad ID: ",(()=>{var e;return"object"==typeof(null==l?void 0:l.adSlot)&&(null==(e=l.adSlot)?void 0:e.slotTarget)?l.adSlot.slotTarget:"No ad slot selected"})()]})})},o=s},91539:(e,l)=>{"use strict";l.J3=l.Ny=l.rn=void 0,l.rn="daily-newsletters-1",l.Ny="marketing-emails-1",l.J3=[{subscriptionGroupName:l.rn,subscriptionGroupId:"",isSubscribed:!1,attributes:{location:""}},{subscriptionGroupName:l.Ny,subscriptionGroupId:"",isSubscribed:!1}]},91909:(e,l,t)=>{"use strict";t.r(l),t.d(l,{DailyForecastBlock:()=>W,default:()=>H});var a=t(62024),r=t(10478),i=t(2212),n=t(26404),s=t(28335),o=t(12565),d=t(47107),c=t(60639);let u=function(e,l){let t=(0,c.G)();return t?t.variant(e,l):l};var m=t(19196),h=t(51707),x=t(74743),v=t(62792),p=t(85759),g=t(5996),f=t(45342),y=t(57109),b=t(98744),w=t(26097),j=t(55751),N=t(34246),C=t(28123);let T=["relativeHumidity","uvIndex","sunrise","sunset"],A=["relativeHumidity","uvIndex","moonrise","moonset","moonPhase"],k=e=>{let{data:l,locale:t,validTime:r}=e,i=(0,s.c)("DailyForecast"),n=(0,x.md)(v.Yt),o=(0,p.xP)(n),d=l.dayOrNight===C.DayOrNight.DAY,c=d?"cols-start-1":"cols-start-2";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:c+" row-start-1 mb-4",children:[(0,a.jsxs)("div",{className:"mb-2 flex justify-between gap-2",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)(g.Ay,{children:[(0,a.jsx)("span",{className:"font-bold",children:r})," | ",i(d?"day":"night")]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(g.Ay,{variant:"Title.XL",elementType:"span",children:(0,a.jsx)(y.B,{value:l.temperature})}),(0,a.jsx)(j.WxIcon,{iconCode:l.iconCode,iconCodeExtend:l.iconCodeExtend,className:"size-11"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col justify-end gap-1",children:[(0,a.jsx)(w.W,{precipChance:l.precipChance,precipType:l.precipType,iconClassName:"mr-1"}),(0,a.jsx)(f.Z,{windSpeed:l.windSpeed,windDirectionCardinal:l.windDirectionCardinal,units:o.code,iconClassName:"mr-1",cardinalBeforeSpeed:!0,useWindIcon:!0})]})]}),(0,a.jsx)(g.Ay,{children:l.narrative})]}),(0,a.jsx)("div",{className:c+" row-start-2 mb-4",children:(0,a.jsx)(N.A,{dataPoints:l,fields:d?T:A,locale:t,columns:2})})]})};var S=t(68285);let I=(e,l,t)=>{var a,r;if(!e)return"";let i=(0,S.V)(e,l,t),n=null==(a=i.find(e=>"day"===e.type))?void 0:a.value,s=null==(r=i.find(e=>"weekday"===e.type))?void 0:r.value;return"".concat(s," ").concat(n)},_=e=>{let{dailyForecast:l,locale:t,timeZone:r,itemIndex:i,isKoreaCscLocation:o,locationDayDate:d}=e,c=(0,x.md)(v.Yt),u=(0,p.xP)(c),m=(0,s.c)("DailyForecast"),h=l.daypart[0],N=l.daypart[1],C=null!=h?h:N,T=null==C?void 0:C.wxPhraseLong,A=(null==l?void 0:l.validTimeLocal)&&I(l.validTimeLocal,t,r),S=(0,n.useMemo)(()=>o?d===A?m("today"):A:0===i&&(null==C?void 0:C.daypartName)?null==C?void 0:C.daypartName:A,[o,i,d,null==C?void 0:C.daypartName,A,m]);return A?(0,a.jsxs)(b.As,{value:l.validTimeLocal||"",className:"border-grey-500 @container/dailyItem gap-1 overflow-hidden border-b py-3",children:[(0,a.jsx)(b.$m,{className:"items-center gap-2 p-0",iconClassName:"size-4",triggerContent:(0,a.jsxs)("div",{className:"flex w-full items-center justify-between gap-1 [&>.openHide]:group-data-[state=open]:invisible",children:[(0,a.jsx)("div",{className:"min-w-[60px]",children:(0,a.jsx)(g.Ay,{className:"whitespace-nowrap group-data-[state=open]:font-bold @max-xs/dailyItem:text-sm",children:S})}),(0,a.jsx)("div",{className:"openHide basis-[90px]",children:(0,a.jsxs)(g.Ay,{variant:"Body.M",elementType:"span",className:"whitespace-nowrap",children:[(0,a.jsx)(g.Ay,{variant:"Body.L.Bold",elementType:"span",children:(0,a.jsx)(y.B,{value:l.temperatureMax})})," / ",(0,a.jsx)(y.B,{value:l.temperatureMin})]})}),(0,a.jsxs)("div",{className:"openHide relative flex h-6 items-center",children:[(0,a.jsx)(j.WxIcon,{iconCode:null==C?void 0:C.iconCode,className:"lightBG size-7",size:"lg",iconTheme:"lightBG","aria-label":T||"Weather condition ".concat(null==C?void 0:C.iconCode)}),(0,a.jsx)(g.Ay,{variant:"Body.M",className:"min-w-[200px] pl-1.5 @max-xl/dailyItem:hidden",children:T})]}),(0,a.jsx)("div",{className:"openHide basis-[60px]",children:(0,a.jsx)(w.W,{precipChance:null==C?void 0:C.precipChance,className:"whitespace-nowrap",iconClassName:"size-3"})}),(0,a.jsx)("div",{className:"openHide basis-[76px]",children:(0,a.jsx)(g.Ay,{elementType:"div",children:(0,a.jsx)(f.Z,{windSpeed:null==C?void 0:C.windSpeed,windDirectionCardinal:null==C?void 0:C.windDirectionCardinal,units:u.code,displayMode:"directional",className:"whitespace-nowrap",iconClassName:"size-3 @md/dailyItem:size-4"})})})]})}),(0,a.jsxs)(b.ub,{className:"mt-2 block auto-cols-[1fr_1fr] gap-x-6 @md/dailyItem:grid @xl/dailyItem:gap-x-8",children:[h&&(0,a.jsx)(k,{data:h,locale:t,validTime:A}),N&&(0,a.jsx)(k,{data:N,locale:t,validTime:A})]})]}):null};var R=t(59933);let M=e=>{let{skeletonColumns:l}=e;return(0,a.jsx)(a.Fragment,{children:Array(l).fill("").map((e,l)=>(0,a.jsx)("div",{className:"border-grey-500 gap-1 border-b py-3",children:(0,a.jsx)(R.A,{skeletonClassName:"mt-0.75 w-full "+(0===l?"h-91":"h-4")})},"daily-forecast-skel-".concat(l)))})};var P=t(87682),L=t(80891);let E=e=>{var l;let{location:t,isLoading:r,error:i,dailyForecasts:o,locale:d,isKoreaCscLocation:c,locationTime:u,canToggleMultipleItems:x,ctaText:v,ctaLink:p,reorderModule:f,simplifiedVersion:y}=e,w=(0,s.c)("DailyForecast"),j=(null==t?void 0:t.ianaTimeZone)||"America/New_York",N=(0,n.useMemo)(()=>j?I(u,d,j):"",[d,j,u]),C=null==o||null==(l=o[0])?void 0:l.validTimeLocal;return(0,a.jsxs)(P.Zp,{className:(0,h.cn)("not-prose @container/daily",f?"-order-1":"order-0"),"aria-label":w("dailyForecast"),"data-testid":"daily-forecast",children:[(0,a.jsx)(P.aR,{text:w("dailyForecast")}),(0,a.jsx)(P.Wu,{className:"p-0",children:i?(0,a.jsx)("div",{className:"flex h-64 items-center justify-center p-6",children:(0,a.jsx)(g.Ay,{variant:"Display.S",children:(null==i?void 0:i.message)||w("unableToLoadData")})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.nD,{...x?{type:"multiple",defaultValue:C?[C]:void 0}:{type:"single",defaultValue:C},children:r?(0,a.jsx)(M,{skeletonColumns:y?4:15}):null==o?void 0:o.map((e,l)=>(0,a.jsx)(_,{itemIndex:l,dailyForecast:e,locale:d,timeZone:j,isKoreaCscLocation:c,locationDayDate:N},e.validTimeLocal))},C),p&&v&&(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(m.$n,{"data-testid":"next-48-hours",asChild:!0,children:(0,a.jsx)(L.default,{href:p,children:v})})})]})})]})};var D=t(44344),F=t(70017),B=t(49531),V=t(76315);let z=e=>{let{location:l,simplifiedVersion:t,initializing:r,initialError:i}=e,c=(0,o.useParams)(),m=null==c?void 0:c.locale,h=(0,s.c)("DailyForecast"),{value:g}=u("reorder-current-conditions-and-forecast","control"),{effectiveLocation:f,isLocationLoading:y}=(0,d.s)({location:l}),{dailyForecasts:b,error:w,isLoading:j,isKoreaCscLocation:N,locationTime:T}=((e,l)=>{var t;let a=(0,o.useParams)(),r=null==a?void 0:a.locale,i=(0,x.md)(v.Yt),s=null==(t=(0,p.xP)(i))?void 0:t.code,d=(0,V.A)(),c="KR"===d,u=c&&(null==e?void 0:e.countryCode)==="KR",m=null==e?void 0:e.ianaTimeZone,h=(0,n.useMemo)(()=>{let e;return m?(e=new Date,(0,B.$)(new Intl.DateTimeFormat("en-US",{timeZone:m,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZoneName:"longOffset"}).format(new Date(e)))):""},[m]),{data:g,error:f,isLoading:y}=(0,D.Ay)(e?["get-daily-forecast",e.geocode,l?C.ForecastDuration.THREE_DAY:C.ForecastDuration.FIFTEEN_DAY,s,r,c?d:void 0]:null,e=>{let[l,t,a,r,i,n]=e;return(0,F.v1)({geocode:t,units:r,duration:a,language:i,cscCountryCode:n})},{revalidateOnFocus:!0,dedupingInterval:6e4});return{dailyForecasts:(0,n.useMemo)(()=>l?null==g?void 0:g.slice(0,4):g,[g,l]),error:f,isLoading:y,isKoreaCscLocation:u,locationTime:h}})(f,t);return(0,a.jsx)(E,{location:f,isLoading:r||j||y||!(null==b?void 0:b.length),error:i||w,dailyForecasts:b,locale:m,isKoreaCscLocation:N,locationTime:T,canToggleMultipleItems:!t,ctaText:t?h("bottomCtaButton"):void 0,ctaLink:t?"/weather/tenday/l/".concat((null==f?void 0:f.placeId)||(null==c?void 0:c.locId)):void 0,reorderModule:"treatment"===g,simplifiedVersion:t})},W=e=>{let{locationProvider:l,locationEntry:t,simplifiedVersion:n}=e,s="specified"===l,{specifiedLocationData:o,specifiedLocationError:d,isSpecifiedLocationLoading:c}=(0,i.v)(s?t:null),u=s&&o&&t?(0,r.I)(o):void 0;return(0,a.jsx)(z,{location:u,simplifiedVersion:null!=n&&n,initializing:s&&c,initialError:s?d:void 0})},H=W},93202:(e,l,t)=>{"use strict";t.d(l,{V:()=>i});var a=t(62024);t(26404);var r=t(51707);let i=e=>{let l,{value:t=0,diameter:i=60,strokeWidth:n=5,strokeColor:s,icon:o,iconSize:d,iconClassName:c,className:u,textClassName:m,displayValue:h,maxValue:x,useExtendedLinecap:v=!1,extendedLinecapProps:p={radius:7,strokeWidth:2},invert:g,textColor:f,textY:y="55%",strokeLinecap:b,railClassName:w}=e,j=i/2,N=j-n/2,C=2*Math.PI*N;l=x?C/100*(t/x*100):C/100*t;let T="".concat(l," ").concat(C),A=l/C*100,k={strokeWidth:n,strokeDasharray:T,stroke:s||((e,l)=>{if(500===l)switch(!0){case e>=0&&e=51&&e=101&&e=151&&e=201:return"#660099";default:return"#a0a0a0"}let t=l?e/l*100:e;switch(!0){case t>=0&&t=20&&t=40&&t=60&&t=80:return"#e82808";default:return"#a0a0a0"}})(t,x)},S="rotate(90 ".concat(j," ").concat(j,")"),I=()=>{if(h||0===h)return(0,a.jsx)("text",{x:"50%",y:y,dominantBaseline:"middle",alignmentBaseline:"middle",textAnchor:"middle",className:(0,r.cn)("fill-text-medium text-[36px] font-extralight",m),"data-testid":"DonutChartValue",fill:f,children:h});if(o){let e=d||Math.floor(j),l=Math.floor(j-e/2),t=Math.floor(j-e/2);return(0,a.jsx)("foreignObject",{x:l,y:t,width:e,height:e,children:(0,a.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,a.jsx)(o,{className:(0,r.cn)("h-full w-full",c),"aria-hidden":"true"})})})}return null};return(0,a.jsxs)("svg",{width:i,height:i,"data-testid":"DonutChart",className:(0,r.cn)("block overflow-visible rounded-full",u,{"scale-x-[-1]":g}),children:[(0,a.jsx)("circle",{r:N,cx:j,cy:j,transform:S,style:{strokeWidth:n},className:(0,r.cn)("fill-transparent stroke-[#E7ECF1]",w)}),t>=0?(0,a.jsx)("circle",{r:N,cx:j,cy:j,transform:S,strokeLinecap:b||"round",style:k,className:"fill-transparent transition-[stroke-dasharray] duration-300 ease-in-out"}):null,g&&I()?(0,a.jsx)("g",{transform:"translate(".concat(i,", 0) scale(-1, 1)"),children:I()}):I(),v&&(0,a.jsx)("circle",{r:p.radius,cx:j,style:{transform:"rotateZ(".concat(360*A/100,"deg)"),transformOrigin:"center"},fill:k.stroke,cy:j+N,strokeWidth:p.strokeWidth,className:"stroke-[var(--backgroundCard)] transition-transform duration-300 ease-in-out"})]})}},93543:(e,l,t)=>{"use strict";t.r(l),t.d(l,{InstagramAdminBlock:()=>c,default:()=>u});var a=t(62024),r=t(26404),i=t(62194),n=t(82878),s=t(17638);let o=/instagram\.com\/(p|reel)\/([^/?#]+)/;var d=t(51707);let c=()=>{let[e]=(0,i.kV6)(),l=(0,n.r)(e,!0),[t,c]=(0,r.useMemo)(()=>(e=>{let l=e.match(o);return[(null==l?void 0:l[1])||null,(null==l?void 0:l[2])||null]})(l.url||""),[l.url]);return(0,a.jsxs)(s.default,{name:"Instagram",children:[(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Post URL:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:l.url||"Not provided"})]}),(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Embed Size:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:"hero"===l.size?"Hero (Full Width)":"Article (Small)"})]}),t&&c?(0,a.jsx)("div",{className:"mb-2 flex justify-center",children:(0,a.jsx)("iframe",{className:(0,d.cn)("h-60 w-full rounded-lg shadow-lg","hero"===l.size?"max-w-full":"max-w-[320px]"),src:"https://www.instagram.com/".concat(t,"/").concat(c,"/embed"),title:"Instagram Preview",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}):(0,a.jsx)("div",{className:"text-red-600",children:"Invalid Instagram URL"})]})},u=c},94088:(e,l,t)=>{"use strict";t.r(l),t.d(l,{TikTokAdminBlock:()=>d,default:()=>c});var a=t(62024);t(26404);var r=t(62194),i=t(82878),n=t(17638),s=t(23504);let o=e=>{let{url:l=""}=e,t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";for(let l of[/tiktok\.com\/@[\w.-]+\/video\/(\d+)/,/tiktok\.com\/v\/(\d+)/,/vm\.tiktok\.com\/([\w-]+)/,/m\.tiktok\.com\/v\/(\d+)/]){let t=null==e?void 0:e.match(l);if(t&&t[1])return t[1]}return null}(l);return t||l.includes("tiktok.com")?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.default,{async:!0,src:"https://www.tiktok.com/embed.js"}),(0,a.jsx)("div",{className:"flex w-full max-w-[605px] items-center justify-center",children:(0,a.jsx)("blockquote",{className:"tiktok-embed",cite:l,"data-video-id":t||void 0,style:{maxWidth:"605px",minWidth:"325px"},children:(0,a.jsx)("section",{children:(0,a.jsx)("a",{target:"_blank",rel:"noopener noreferrer",title:"TikTok Video",href:l,children:"View on TikTok"})})})})]}):null},d=()=>{let[e]=(0,r.kV6)(),l=(0,i.r)(e,!0);return(0,a.jsxs)(n.default,{name:"TikTok",children:[(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Video URL:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:(null==l?void 0:l.url)||"Not provided"})]}),(0,a.jsx)(o,{url:null==l?void 0:l.url})]})},c=d},94825:(e,l,t)=>{"use strict";t.d(l,{M:()=>n});var a=t(62024),r=t(51707),i=t(28335);let n=e=>{let l,{uvIndex:t,uvDescription:n,className:s,descriptionClassName:o}=e,d=(0,i.c)("DetailsTable");return l=!Number.isFinite(t)||t10?d("extreme"):n?t:l=d("uvIndexVal",{val:t,maxVal:11}),(0,a.jsxs)("span",{"data-testid":"UVIndexValue",className:(0,r.cn)(s),children:[l,n&&t{"use strict";t.d(l,{d:()=>s});var a=t(62024),r=t(26404),i=t(91592);let n=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Sunset"}):t?(0,a.jsx)("title",{id:r,children:t}):null,(0,a.jsx)("g",{fill:"currentColor",children:(0,a.jsx)("path",{d:"M14.499 13.502a.5.5 0 0 1 0 1H1.5a.5.5 0 0 1 0-1zM3 11.003a.5.5 0 0 1 0 1H1.5a.5.5 0 0 1 0-1zM14.5 11.003a.5.5 0 0 1 0 1H13a.5.5 0 0 1 0-1zM8 9a3 3 0 0 1 2.958 2.502c.046.272-.183.498-.459.498s-.493-.227-.562-.494A2.006 2.006 0 0 0 8 10a2.004 2.004 0 0 0-1.937 1.506c-.07.267-.287.494-.563.494s-.505-.226-.459-.498A3 3 0 0 1 8 9M3.05 7.053a.5.5 0 0 1 .707 0l1.046 1.046a.5.5 0 0 1-.707.707L3.05 7.76a.5.5 0 0 1 0-.707M12.242 7.053a.5.5 0 0 1 .707.707l-1.046 1.046a.5.5 0 0 1-.707-.707zM8 2.003a.5.5 0 0 1 .5.5v3.585l.941-.939a.5.5 0 0 1 .705.706L8.396 7.607a.56.56 0 0 1-.79 0L5.853 5.855a.5.5 0 0 1 .705-.706l.942.939V2.503a.5.5 0 0 1 .5-.5"})})]})}),s=r.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:n,...e}));s.displayName="Sunset"},96276:e=>{e.exports={jwplayerContainer:"JWPlayer_jwplayerContainer__u4Psj"}},97349:(e,l,t)=>{"use strict";t.d(l,{S:()=>s});var a=t(62024),r=t(26404),i=t(91592);let n=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"pressure"}):t?(0,a.jsx)("title",{id:r,children:t}):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"})]})}),s=r.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:n,...e}));s.displayName="Pressure"},97509:(e,l,t)=>{"use strict";t.d(l,{Y:()=>s});var a=t(62024),r=t(26404),i=t(91592);let n=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Rain Drop"}):t?(0,a.jsx)("title",{id:r,children:t}):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=r.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:n,...e}));s.displayName="RainDrop"},97678:(e,l,t)=>{"use strict";t.r(l),t.d(l,{SlideshowAdminBlock:()=>c,default:()=>u});var a=t(62024),r=t(26404),i=t(62194),n=t(82878),s=t(17638),o=t(26104);let d=e=>e&&""!==e.trim()?(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)))(e)?"":e:"",c=()=>{var e,l,t,c;let[u]=(0,i.kV6)(),m=(0,n.r)(u,!0),[h,x]=(0,r.useState)({slides:(null==m?void 0:m.slides)||[],settings:(null==m?void 0:m.settings)||{}});(0,r.useEffect)(()=>{x({slides:(null==m?void 0:m.slides)||[],settings:(null==m?void 0:m.settings)||{}})},[null==m?void 0:m.slides,null==m?void 0:m.settings]);let v=null==(e=h.slides)?void 0:e[0],p=null==v?void 0:v.imageAsset;return(0,a.jsxs)(s.default,{name:"Slideshow",children:[(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Slideshow Images:"})," ",(0,a.jsxs)("span",{className:"text-gray-600",children:[(null==(l=h.slides)?void 0:l.length)||0," images"]})]}),(null==(t=h.slides)?void 0:t.length)>0&&(0,a.jsxs)("div",{className:"mb-4",children:[d(null==v?void 0:v.imageTitle)?(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"First Image:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:d(null==v?void 0:v.imageTitle)})]}):(0,a.jsx)("div",{className:"mb-2",children:(0,a.jsx)("strong",{className:"text-black-800",children:"First Image"})}),(null==p?void 0:p.url)&&(0,a.jsx)(o.default,{src:p.url,alt:d(null==v?void 0:v.imageTitle),className:"mb-2 max-h-[240px] max-w-[240px]"}),(null==v?void 0:v.description)&&(0,a.jsxs)("div",{className:"mb-1",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Description:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:v.description})]}),(null==v?void 0:v.imageCaption)&&(0,a.jsxs)("div",{className:"mb-1",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Caption:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:v.imageCaption})]}),(null==v?void 0:v.imageByline)&&(0,a.jsxs)("div",{className:"mb-1",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Byline:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:v.imageByline})]}),(null==v?void 0:v.provider)&&(0,a.jsxs)("div",{className:"mb-1",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Provider:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:v.provider})]}),(null==v?void 0:v.property)&&(0,a.jsxs)("div",{className:"mb-1",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Property:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:v.property})]})]}),(0,a.jsx)("div",{className:"mb-2",children:(0,a.jsx)("strong",{className:"text-black-800",children:"Settings:"})}),(0,a.jsxs)("div",{className:"mb-1",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Rounded Corners:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:(null==(c=h.settings)?void 0:c.rounded)?"Yes":"No"})]})]})},u=c},97917:(e,l,t)=>{"use strict";t.r(l),t.d(l,{SlideshowBlock:()=>s,default:()=>o});var a=t(62024);t(26404);var r=t(27621),i=t(18675),n=t(88369);let s=e=>{let{slides:l=[],settings:t={},id:s}=e;if(!(0,n.J)(l))return null;let o=[];for(let e of l){var d;if(!e.imageAsset){console.error("Slide missing imageAsset:",e);continue}let l=(0,i.bt)(e.imageAsset)?e.imageAsset:null;if(!l||!l.url){console.error("Invalid imageAsset or missing URL:",l);continue}let t={...l,seo:{...l.seo,caption:e.imageCaption||l.caption||"",altText:e.imageTitle&&""!==e.imageTitle.trim()?e.imageTitle:(null==(d=l.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(t)}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)(r.A,{id:s||"slideshow-".concat(Math.random().toString(36).substring(2,9)),assets:o.slice(0,20),allSlides:o,totalAssets:o.length,rounded:(null==t?void 0:t.rounded)||!1,blockType:"Slideshow",slides:l,settings:t,sendTrackString:()=>{}})},o=s},99743:(e,l,t)=>{"use strict";t.r(l),t.d(l,{MorningBriefBlock:()=>q,default:()=>G});var a=t(62024),r=t(26404),i=t(53726),n=t(46868),s=t(74186),o=t(19196),d=t(11046),c=t(44344),u=t(64453),m=t(34824),h=t(33738),x=t(64874),v=t(51707);function p(e){let{className:l,...t}=e;return(0,a.jsx)(h.uB,{"data-slot":"command",className:(0,v.cn)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",l),...t})}function g(e){let{className:l,...t}=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)(x.A,{className:"size-4 shrink-0 opacity-50"}),(0,a.jsx)(h.uB.Input,{"data-slot":"command-input",className:(0,v.cn)("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",l),...t})]})}function f(e){let{className:l,...t}=e;return(0,a.jsx)(h.uB.List,{"data-slot":"command-list",className:(0,v.cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",l),...t})}function y(e){let{className:l,...t}=e;return(0,a.jsx)(h.uB.Group,{"data-slot":"command-group",className:(0,v.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",l),...t})}function b(e){let{className:l,...t}=e;return(0,a.jsx)(h.uB.Item,{"data-slot":"command-item",className:(0,v.cn)("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",l),...t})}t(45652);var w=t(95222),j=t(12565);function N(e){var l;let{label:t,placeholder:i,className:s,location:h,onChangeLocation:x}=e,N=(0,j.useParams)(),C=null==N?void 0:N.locale,[T,A]=(0,r.useState)(!1),[k,S]=(0,r.useState)(""),{isLoading:I,data:_}=function(e,l){let t=e.trim().length>0,{isLoading:a,data:r,error:i}=(0,c.Ay)(t?["search/locations",encodeURIComponent(e)]:null,async()=>await (0,d.SK)(e,l));return{isLoading:a,data:r,error:i}}((0,u.A)(k,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,v.cn)("text-muted-foreground flex w-full bg-white px-2 text-nowrap",s),children:[(0,a.jsx)("div",{children:I?(0,a.jsx)(n.A,{className:"animate-spin"}):(0,a.jsx)(w.A,{})}),(0,a.jsx)("div",{className:"flex flex-1 px-2 text-start",children:null!=(l=null==h?void 0:h.displayName)?l:t})]})}),(0,a.jsx)(m.hl,{className:"w-[var(--radix-popover-trigger-width)]",showArrow:!1,children:(0,a.jsxs)(p,{shouldFilter:!1,children:[(0,a.jsx)(g,{placeholder:i,value:k,onValueChange:S}),(0,a.jsx)(f,{children:(0,a.jsx)(y,{children:null==_?void 0:_.map(e=>(0,a.jsx)(b,{value:e.locId,onSelect:()=>{null==x||x(e),A(!1)},children:e.address},e.locId))})})]})})]})}var C=t(86789);function T(e){let{label:l,error:t,className:r,...i}=e;return(0,a.jsxs)("div",{className:"w-full",children:[l&&(0,a.jsx)("label",{className:"text-sm",children:l}),(0,a.jsx)(C.p,{...i,className:t?"".concat(r," border-red-500"):r})]})}var A=t(80891);let k={"{{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 I(){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,l)=>{let t=k["{{".concat(e,"}}")];return t?(0,a.jsx)(A.default,{href:t.url,className:"underline",children:t.text},l):(0,a.jsx)("span",{children:e},l)})})}let _={src:"/_next/static/media/morning-brief-logo.73126316.svg"},R={src:"/_next/static/media/ellipse.b0c8befa.png"};var M=t(60345),P=t(90218),L=t(27792),E=t(38131),D=t(27708),F=t(74743),B=t(25884);let V=(0,t(8177).tG)("emailPreferences",null,void 0,{getOnInit:!0});var z=t(25890),W=t(91539);let H=()=>{let[e,l]=(0,F.fp)(V),{user:t}=(0,z.J)(),a=(null==t?void 0:t.userID)||null,i=(null==t?void 0:t.isUserLoggedIn)||!1,n=(0,r.useCallback)(t=>{a&&l({userId:a,expiry:Date.now()+9e5,subscriptions:function(e,l){let t=(null==l?void 0:l.length)?l:W.J3,a={};return e?(null==t||t.forEach(e=>{a[e.subscriptionGroupName]=e}),e.forEach(e=>{a[e.subscriptionGroupName]=e}),Object.values(a)):t}(t,null==e?void 0:e.subscriptions)})},[a,l,null==e?void 0:e.subscriptions]),s=e&&e.userId===a&&e.expiry&&e.expiry>Date.now();return(0,c.Ay)(a&&i&&!s?"getEmailPreferencesStatus/".concat(a):void 0,()=>(0,B.j)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:0,errorRetryCount:2,onSuccess:e=>{a&&e&&n(e.subscriptions)}}),{subscriptions:a&&e?e.subscriptions:null,updateSubscriptions:n}};async function U(e,l){let{arg:t}=l,{email:a,location:r,locale:i,isAnonymous:n}=t,{location:s}=await (0,D.$M)(r.placeId,i).catch(()=>({location:null})),o={subscriptions:[{subscriptionGroupName:e,isSubscribed:!0,attributes:{location:r.placeId,latitude:r.latitude,longitude:r.longitude,dmaCode:(null==s?void 0:s.dmaCd)||null,adminDistrict:r.adminDistrict,adminDistrictCode:r.adminDistrictCode||null,postalCode:r.postalCode}}]};return n&&(o.email=a),await (0,P.p_)(o).then(e=>({...e,sentSubscriptions:o.subscriptions}))}var O=t(10436),Q=t(1405);let q=()=>{var e,l;let t=(0,j.useParams)(),d=(0,j.useSearchParams)(),c=null==t?void 0:t.locale,{userProfile:u}=(0,z.J)(),[m,h]=(0,r.useState)(null!=(e=null==u?void 0:u.email)?e:""),[x,v]=(0,r.useState)(null),[p,g]=(0,r.useState)(!1),{data:f,loading:y,onSubmit:b,error:w}=function(){let{updateSubscriptions:e}=H(),l=(()=>{let e="alert-subscription-changed",l=(0,L.G)(),t=(0,E.N)();return(0,r.useCallback)(a=>{let{name:r,status:i}=a,n={...t,name:r,status:i?"enabled":"disabled"};if(!l)return void console.warn("MParticle is not initialized");try{var s,o,d,c;null==(c=window.mParticle)||null==(d=c.logEvent)||d.call(c,e,null==(o=window.mParticle)||null==(s=o.EventType)?void 0:s.Other,n),console.debug('MParticle: Event "'.concat(e,'" tracked'),n)}catch(l){console.error('MParticle: Event "'.concat(e,'" failed'),l)}},[t,l])})(),{isMutating:t,trigger:a,data:i,error:n,reset:s}=(0,M.A)("newsletter/signup/daily-newsletters-1",(e,l)=>U("daily-newsletters-1",l));return{loading:t,error:n,data:i,onSubmit:(0,r.useCallback)(async t=>{let r=await a(t);if(r.sentSubscriptions&&e(r.sentSubscriptions),"success"===r.status){var i,n;l({name:"newsletter",status:(null==(n=r.sentSubscriptions)||null==(i=n[0])?void 0:i.isSubscribed)||!1})}return r},[l,a,e]),onReset:s}}(),C=d.get("cm_ven"),A=null==C?void 0:C.startsWith("dnt_newsletter"),{subscriptions:k}=H(),S=(()=>{let e="interaction",l=(0,L.G)(),t=(0,E.N)();return(0,r.useCallback)(a=>{let r={...t,...a};if(!l)return void console.warn("MParticle is not initialized");try{var i,n,s,o;null==(o=window.mParticle)||null==(s=o.logEvent)||s.call(o,e,null==(n=window.mParticle)||null==(i=n.EventType)?void 0:i.Other,r),console.debug('MParticle: Event "'.concat(e,'" tracked'),r)}catch(l){console.error('MParticle: Event "'.concat(e,'" failed'),l)}},[t,l])})(),P=(0,r.useMemo)(()=>(0,Q.C)(k,W.rn),[k]),D=(0,r.useCallback)(async e=>{e.preventDefault(),!y&&m.trim()&&x&&(g(!0),S({interactionElement:"morningbrief signup",interactionType:"click",moduleId:"morning-brief-block"}),await b({email:m,location:x,locale:c,isAnonymous:!(null==u?void 0:u.email)}))},[y,m,x,S,b,c,null==u?void 0:u.email]);return!p&&(null==P?void 0:P.isSubscribed)||A?null:(0,a.jsxs)("div",{"data-flatplan-id":"flatplan_signup_form",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 pr-[30px] pl-5 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)(O.A,{src:_.src,alt:"",className:"m-0 w-37.5",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==f?void 0:f.status)==="success"?(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(i.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:D,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==f?void 0:f.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:x,onChangeLocation:v}),(0,a.jsx)("div",{children:(0,a.jsxs)(o.$n,{type:"submit",className:"flex h-12 items-center gap-1 text-nowrap",disabled:y||!(m&&x),children:[(0,a.jsx)("span",{children:"Sign Up"}),y&&(0,a.jsx)(n.A,{className:"animate-spin"})]})})]}),w&&(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==f?void 0:f.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!=(l=f.emailError)?l:f.error})]}),(0,a.jsx)(I,{})]})};q.displayName="MorningBriefBlock";let G=q},99834:(e,l,t)=>{"use strict";t.d(l,{$:()=>s});var a=t(62024),r=t(26404),i=t(91592);let n=(0,r.forwardRef)((e,l)=>{let{title:t,titleId:r,desc:i,descId:n,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):null,void 0===t?(0,a.jsx)("title",{id:r,children:"Dew Point"}):t?(0,a.jsx)("title",{id:r,children:t}):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"})})]})}),s=r.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:n,...e}));s.displayName="DewPoint"}}]);