(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,16838,e=>{"use strict";var t=e.i(297647),a=e.i(752496);function r({enabled:e=!1,...r}){return e?(0,t.jsx)(a.DebugCollectorClient,{...r}):null}e.s(["DebugCollector",()=>r])},649054,e=>{"use strict";var t=e.i(297647),a=e.i(37429);let r=({title:e,subTitle:r,subText:i,ctaStyle:l,media:n,buttonText:s,linkUrl:o,openInNewTab:d,backgroundColor:c})=>{let u=void 0!=n.url?n.url:"string"==typeof n?n:null;return(0,t.jsx)("section",{className:`not-prose @container mx-auto w-full max-w-4xl rounded-md ${{white:"bg-white","light-gray":"bg-gray-100","brand-blue":"bg-blue-500",accent:"bg-accent"}[c||"white"]} p-5 shadow-2xl`,children:(0,t.jsx)("div",{className:`cta-block ${l}`,children:(0,t.jsxs)("div",{className:"cta-content text-black",children:[(0,t.jsx)("h2",{className:"mb-6 text-2xl font-bold",children:e}),u&&(0,t.jsx)("a",{href:o,target:d?"_blank":"_self",rel:d?"noopener noreferrer":void 0,className:"mb-4 block overflow-hidden rounded-lg",children:(0,t.jsx)("div",{className:"relative w-full",children:(0,t.jsx)(a.default,{src:u,alt:e})})}),r&&(0,t.jsx)("h2",{className:"mb-2 text-lg font-bold",children:r}),i&&(0,t.jsx)("p",{className:"mb-4",children:i}),"standard"===l&&(0,t.jsx)("div",{className:"mt-4 flex justify-end",children:(0,t.jsx)("a",{href:o,target:d?"_blank":"_self",rel:d?"noopener noreferrer":void 0,className:"inline-block rounded-lg bg-black px-6 py-3 text-white transition-colors hover:bg-gray-800",children:s||"Learn More"})})]})})})};e.s(["CTABlock",0,r,"default",0,r])},495406,e=>{"use strict";var t=e.i(297647),a=e.i(477716),r=e.i(16838),i=e.i(632137),l=e.i(649054),n=e.i(528600),s=e.i(475566),o=e.i(49893),d=e.i(5397),c=e.i(333350);let u=(0,e.i(294237).cva)("",{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"]),p=e=>{let{user:a}=(0,n.useUser)(),r=(0,s.useAtomValue)(o.adsKillswitchAtom),i=e.adId||("object"==typeof e.adSlot?e.adSlot.slotTarget:void 0);return a.isUserPremium||r||!i?null:(0,t.jsx)(f,{...e,adId:i})},f=({adId:e,variant:n="banner",title:o=null,titleAlignment:p="right",height:f="120px",className:x="",sticky:g=!1})=>{let v=(0,s.useAtomValue)(d.showAdminHeaderAtom),[y,b]=(0,a.useState)({loaded:!1,height:f,displayAd:!1}),[w,j]=(0,a.useState)(!1),C=(0,a.useRef)(null),N=(0,a.useRef)(!1),T=(0,a.useRef)(null),I=(0,a.useRef)(c.default?document.body.style.paddingBottom:""),S=(0,a.useRef)({resize:null,adFrameMutation:null,adCreativeMutation:null}),A=y.displayAd&&!w,M=(0,a.useMemo)(()=>((e,t="banner",a,r=!1)=>{if(h.has(e))return a?u({layout:"flex",margin:"topMd"}):"";if("WX_Hidden"===e||!a)return u({special:"hidden"});let i=m[e];return i||(i="banner"===t?{radius:"lg",overflow:"hidden",bg:"white",shadow:"md",margin:"bottomMd"}:{bg:"white",radius:"md",overflow:"hidden",padding:"standard"}),"WX_Top300Variable"===e&&r&&(i={...i,layout:"stickyTopRight"}),u(i)})(e,n,A,g),[e,n,A,g]),_=(0,a.useMemo)(()=>{let t=y.loaded?"visible":"invisible";return`text-center w-full h-full flex text-gray-600 text-base leading-none ${"WX_SpotLight"!==e?"justify-center":""} ${t}`},[e,y.loaded]),k=(0,a.useCallback)(e=>{for(let t of e){let e=t.contentRect.height;e>0&&b(t=>({...t,height:`${e+10}px`,loaded:!0}))}},[]),R=(0,a.useCallback)(e=>{let t=e.some(e=>"childList"===e.type&&e.addedNodes.length>0);b(e=>({...e,displayAd:t}))},[]),P=(0,a.useCallback)(e=>{let t=C.current;e.some(e=>"childList"===e.type&&e.addedNodes.length>0&&(e.addedNodes[0]?.textContent!=="Advertisement"||e.addedNodes.length>1))&&t&&(S.current.resize?.observe(t),S.current.adCreativeMutation?.observe(t,{childList:!0,subtree:!0}),b(e=>({...e,loaded:!0})),S.current.adFrameMutation?.disconnect())},[]);(0,a.useEffect)(()=>{b({loaded:!1,height:f,displayAd:!1});let e=new ResizeObserver(k),t=new MutationObserver(R),a=new MutationObserver(P);S.current={resize:e,adCreativeMutation:t,adFrameMutation:a};let r=C.current;return r&&a.observe(r,{childList:!0,subtree:!0}),()=>{e.disconnect(),a.disconnect(),t.disconnect()}},[R,e,f,k,P]),(0,a.useEffect)(()=>{if(h.has(e)&&!N.current){try{let t=(e=>{if("MW_Position_ContentFeedAd11"===e)return{currContentFeedIndex:"21",baseNativeAdPosition:"MW_Position_ContentFeedAd1"};if("MW_Position_ContentFeedAd1"===e||"WX_ContentFeed1"===e){let t=e.match(/(\d+)$/);if(t)return{currContentFeedIndex:t[1],baseNativeAdPosition:e.substring(0,t.index)}}return console.error(`Could not parse index from ContentFeed adId: ${e}`),null})(e);if(t){let{currContentFeedIndex:a,baseNativeAdPosition:r}=t,i=window.__HeliosConfig.slotsConfig[r];if(i){let t=`${i.adUnitPath}/contentfeed${a}`;window.__HeliosQ=window.__HeliosQ||[],window.__HeliosQ.push(()=>{window.__Helios.waitForEvent("AD_SLOTS_CONNECTED").then(()=>{window.__Helios.emit("AD_RENDER_CONTENT_FEED",{elementId:e,adUnitPath:t,baseNativeAdPosition:r})})})}else console.error(`No config found for ${e} at Helios.slotConfig.${r}`)}}catch(e){console.error("Error rendering native ad",e)}N.current=!0}},[e]),(0,a.useEffect)(()=>{if("MW_Position1_Samsung"!==e)return;let t=Date.now();return T.current=setInterval(()=>{if(Date.now()-t>=1e4){T.current&&(clearInterval(T.current),T.current=null);return}(()=>{try{let e=window.__Helios?.adNodes;if(!e||0===e.length)return!1;let t=e.find(e=>e?.config?.pos==="mw_adhd1");if(!t?.slot)return!1;let a=t.slot.getHtml?.();return a?.includes('

')??!1}catch(e){return!1}})()&&(j(!0),T.current&&(clearInterval(T.current),T.current=null))},500),()=>{T.current&&(clearInterval(T.current),T.current=null)}},[e]);let L="banner"===n&&("MW_Position1"===e||"MW_Position1_Samsung"===e);return(0,a.useEffect)(()=>{if(!L||!A||!y.loaded)return;document.body.style.paddingBottom=y.height;let e=I.current;return()=>{document.body.style.paddingBottom=e}},[L,A,y.loaded,y.height]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.DebugCollector,{componentName:"AdBlock",data:{props:{adId:e,variant:n,title:o,titleAlignment:p,height:f,className:x},state:{loaded:y.loaded,height:y.height,displayAd:y.displayAd,isIMAdDetected:w},performance:{renderTime:Date.now()}},enabled:v}),(0,t.jsxs)("div",{className:(0,i.cn)(M,x),children:[o&&y.loaded&&(0,t.jsx)("div",{className:`text-xxs w-full px-4 py-0.75 text-gray-400 text-${p}`,children:o}),"WX_PromoDriver1"===e&&!o&&y.loaded&&y.displayAd&&(0,t.jsx)("h2",{className:"my-6 px-2 text-2xl font-bold",children:"Stay Safe"}),(0,t.jsx)("div",{id:e,"data-testid":e,className:_,style:{height:y.loaded?"100%":"0px"},ref:C})]}),"WX_PromoDriver1"===e&&(!y.loaded||!y.displayAd)&&(0,t.jsx)(l.default,{title:"Stay Safe",ctaStyle:"featured",linkUrl:"/",backgroundColor:"white",media:"https://s-dev.w-x.co/wxnext/img/Screenshot2025-04-17at44929PMpng"})]})};e.s(["AdBlock",0,p,"default",0,p],495406)},170689,e=>{"use strict";var t=e.i(297647),a=e.i(632137);e.s(["DonutChart",0,({value:e=0,diameter:r=60,strokeWidth:i=5,strokeColor:l,icon:n,iconSize:s,iconClassName:o,className:d,textClassName:c,displayValue:u,maxValue:m,useExtendedLinecap:h=!1,extendedLinecapProps:p={radius:7,strokeWidth:2},invert:f,textColor:x,textY:g="55%",strokeLinecap:v,railClassName:y})=>{let b,w=r/2,j=w-i/2,C=2*Math.PI*j;b=m?C/100*(e/m*100):C/100*e;let N={strokeWidth:i,strokeDasharray:`${b} ${C}`,stroke:l||((e,t)=>{if(500===t)switch(!0){case e>=0&&e=51&&e=101&&e=151&&e=201:return"#660099";default:return"#a0a0a0"}let a=t?e/t*100:e;switch(!0){case a>=0&&a=20&&a=40&&a=60&&a=80:return"#e82808";default:return"#a0a0a0"}})(e,m)},T=`rotate(90 ${w} ${w})`,I=()=>{if(u||0===u)return(0,t.jsx)("text",{x:"50%",y:g,dominantBaseline:"middle",alignmentBaseline:"middle",textAnchor:"middle",className:(0,a.cn)("fill-text-medium text-[36px] font-extralight",c),"data-testid":"DonutChartValue",fill:x,children:u});if(n){let e=s||Math.floor(w),r=Math.floor(w-e/2),i=Math.floor(w-e/2);return(0,t.jsx)("foreignObject",{x:r,y:i,width:e,height:e,children:(0,t.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,t.jsx)(n,{className:(0,a.cn)("h-full w-full",o),"aria-hidden":"true"})})})}return null};return(0,t.jsxs)("svg",{width:r,height:r,"data-testid":"DonutChart",className:(0,a.cn)("block overflow-visible rounded-full",d,{"scale-x-[-1]":f}),children:[(0,t.jsx)("circle",{r:j,cx:w,cy:w,transform:T,style:{strokeWidth:i},className:(0,a.cn)("fill-transparent stroke-[#E7ECF1]",y)}),e>=0?(0,t.jsx)("circle",{r:j,cx:w,cy:w,transform:T,strokeLinecap:v||"round",style:N,className:"fill-transparent transition-[stroke-dasharray] duration-300 ease-in-out"}):null,f&&I()?(0,t.jsx)("g",{transform:`translate(${r}, 0) scale(-1, 1)`,children:I()}):I(),h&&(0,t.jsx)("circle",{r:p.radius,cx:w,style:{transform:`rotateZ(${b/C*100*360/100}deg)`,transformOrigin:"center"},fill:N.stroke,cy:w+j,strokeWidth:p.strokeWidth,className:"stroke-[var(--backgroundCard)] transition-transform duration-300 ease-in-out"})]})}])},163163,e=>{"use strict";let t=(0,e.i(514514).default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);e.s(["Info",()=>t],163163)},267084,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getHourlyAirQualityForecastUrlConfig=function({geocode:e,language:t,scale:a,duration:r}){return{host:"api.weather.com",protocol:"https",pathname:`/v3/wx/globalAirQuality/forecast/hourly/${r}`,query:{geocode:e,language:t,scale:a,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},155123,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.fromCompactResponse=function(e){if(!e)return null;let t=Object.keys(e);return t.length&&t[0]&&void 0!==e[t[0]]&&Array.isArray(e[t[0]])?Array.from({length:e[t[0]].length},(a,r)=>{let i={};return t.forEach(t=>{let a=e[t];void 0!==a&&Array.isArray(a)&&r{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.createTransformer=function(e){return t=>((0,r.fromCompactResponse)(t)||[]).map((a,r)=>e(a,r,t))};let r=e.r(155123)},228071,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getHourlyAirQualityForecast=s,a.transformHourlyAirQualityForecast=o;let r=e.r(267084),i=e.r(678651),l=e.r(414655),n=e.r(992591);async function s(e){let t=(0,r.getHourlyAirQualityForecastUrlConfig)(e),a=(0,i.urlFrom)(t),n=await fetch(a,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return o(await (0,l.handleFetchResponse)(n))}function o(e){let t=e.globalairquality,a={validTimeGmt:t.validTimeGmt,airQualityIndex:t.airQualityIndex,airQualityCategory:t.airQualityCategory,airQualityCategoryIndex:t.airQualityCategoryIndex,airQualityCategoryIndexColor:t.airQualityCategoryIndexColor,primaryPollutant:t.primaryPollutant},r=(0,n.createTransformer)((e,a)=>{let r=e=>{let r=t.pollutants[e];if(r)return{name:r.name,phrase:r.phrase,amount:r.amount[a]??0,unit:r.unit,category:r.category[a]??"",categoryIndex:r.categoryIndex[a]??0,index:r.index[a]??0}};return{...e,pollutants:{CO:r("CO"),NO2:r("NO2"),O3:r("O3"),PM10:r("PM10"),PM2_5:r("PM2.5"),SO2:r("SO2")},messages:{general:t.messages.General[a]??{title:"",text:""},sensitiveGroup:t.messages["Sensitive Group"][a]??{title:"",text:""}}}})(a);return{latitude:t.latitude,longitude:t.longitude,source:t.source,disclaimer:t.disclaimer,expireTimeGmt:t.expireTimeGmt,forecast:r}}},980108,(e,t,a)=>{"use strict";var r,i,l,n,s,o,d,c;Object.defineProperty(a,"__esModule",{value:!0}),a.PollutantType=a.AirQualityCategory=a.AirQualityForecastDuration=a.AirQualityScale=void 0,(s=r||(a.AirQualityScale=r={})).EPA="EPA",s.HJ6332012="HJ6332012",s.ATMO="ATMO",s.UBA="UBA",s.DAQI="DAQI",s.NAQI="NAQI",s.IMECA="IMECA",s.CAQI="CAQI",(o=i||(a.AirQualityForecastDuration=i={})).TWELVE_HOUR="12hour",o.TWENTY_FOUR_HOUR="24hour",o.FORTY_EIGHT_HOUR="48hour",o.SEVENTY_TWO_HOUR="72hour",(d=l||(a.AirQualityCategory=l={})).GOOD="Good",d.MODERATE="Moderate",d.UNHEALTHY_FOR_SENSITIVE_GROUPS="Unhealthy for Sensitive Groups",d.UNHEALTHY="Unhealthy",d.VERY_UNHEALTHY="Very Unhealthy",d.HAZARDOUS="Hazardous",(c=n||(a.PollutantType=n={})).CO="CO",c.NO2="NO2",c.O3="O3",c.PM10="PM10",c.PM2_5="PM2.5",c.SO2="SO2"},754500,e=>{"use strict";var t=e.i(381477),a=e.i(343277),r=e.i(375570);e.s(["useSpecifiedLocation",0,e=>{let i=(0,r.useParams)(),l=i?.locale,{data:n,error:s,isLoading:o}=(0,t.default)(e?["/v3/location/point",e,l]:null,()=>e?(0,a.getLocationPointByGeocode)(e,l):null,{revalidateOnFocus:!1,dedupingInterval:3e5});return{specifiedLocationData:n,specifiedLocationError:s,isSpecifiedLocationLoading:o}}])},710402,e=>{"use strict";var t=e.i(405052),a=e.i(935807),r=e.i(919101);function i(e,i){let l=(0,r.getAddressForLocationData)(e.location,i);return{displayName:l.displayName,adminDistrict:l.adminDistrict,geocode:(0,t.formatGeocode)(`${l.latitude},${l.longitude}`),placeId:l.placeId,city:l.city,countryCode:l.countryCode,adminDistrictCode:l.adminDistrictCode||"",presentationName:(0,a.getLocationPresentationName)(l),ianaTimeZone:l.ianaTimeZone,postalCode:l.postalCode}}e.s(["fromLocationPoint",()=>i])},39543,e=>{"use strict";var t=e.i(297647),a=e.i(87328),r=e.i(170689),i=e.i(877957),l=e.i(163163),n=e.i(632137),s=e.i(368847),o=e.i(287638);let d=({airQualityIndex:e,airQualityCategory:d,description:c="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:u,disclaimer:m,detailsUrl:h,className:p})=>(0,t.jsxs)("div",{className:(0,n.cn)("bg-card flex flex-col gap-4 border-b border-gray-500 pb-6 pl-3",p),"data-testid":"AirQualityIndex",children:[(0,t.jsx)(s.Text,{variant:"Title.S",className:"pb-4",children:"Air Quality Index"}),(0,t.jsxs)("div",{className:"flex items-center gap-6",children:[(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)(r.DonutChart,{value:e,maxValue:500,diameter:80,strokeWidth:8,displayValue:e,textClassName:"text-[32px] font-light"})}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-2",children:[(0,t.jsx)(s.Text,{elementType:"h2",className:"text-base leading-tight font-semibold text-gray-900 @md:text-lg @lg:text-xl @xl:text-2xl",children:d}),(0,t.jsxs)(s.Text,{elementType:"p",className:"text-sm font-normal text-gray-500 @md:text-base",children:[" ",c]})]})]}),h&&(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(i.Button,{asChild:!0,className:"m-4 mb-0",children:(0,t.jsx)(a.default,{href:h,children:"See details"})})}),(0,t.jsxs)(o.Popover,{children:[(0,t.jsx)(o.PopoverTrigger,{asChild:!0,className:"max-w-[140px]",children:(0,t.jsxs)("button",{className:"text-text-secondary hover:text-text-primary flex cursor-pointer items-center gap-2 text-sm transition-colors",children:[(0,t.jsx)(l.Info,{className:"h-4 w-4"}),(0,t.jsx)(s.Text,{variant:"Caption.M",className:"text-gray-500",children:"Air Quality Index"})]})}),(0,t.jsx)(o.PopoverContent,{align:"start",className:"w-[320px] p-4",children:(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)("div",{className:"max-w-[200px] flex-1",children:[(0,t.jsx)("h3",{className:"text-text-primary mb-3 text-sm font-semibold",children:"Levels"}),(0,t.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,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"h-3 w-3 flex-shrink-0 rounded-full",style:{backgroundColor:e.color}}),(0,t.jsxs)("span",{className:"text-text-primary text-sm",children:[e.name," (",e.range,")"]})]},e.name))})]}),(u||m)&&(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("h3",{className:"text-text-primary mb-3 text-sm font-semibold",children:"Source"}),(0,t.jsxs)("div",{className:"text-text-secondary space-y-2 text-xs",children:[u&&(0,t.jsx)("p",{children:u}),m&&(0,t.jsx)("p",{children:m})]})]})]})})]})]});var c=e.i(472737),u=e.i(375570),m=e.i(381477),h=e.i(228071),p=e.i(980108);let f=({location:e,initializing:a,initialError:r})=>{let{effectiveLocation:i,isLocationLoading:l}=(0,c.useLocationSource)({location:e}),n=(0,u.useParams)()?.locale,{airQualityData:s,error:o,isLoading:f}=(({effectiveLocation:e,locale:t})=>{let{data:a,error:r,isLoading:i}=(0,m.default)(e?["get-air-quality-forecast",e.geocode,p.AirQualityForecastDuration.TWENTY_FOUR_HOUR,p.AirQualityScale.EPA,t]:null,([e,t,a,r,i])=>(0,h.getHourlyAirQualityForecast)({geocode:t,duration:a,scale:r,language:i}),{revalidateOnFocus:!1,dedupingInterval:6e4});return{airQualityData:a,error:r,isLoading:i}})({effectiveLocation:i,locale:n});if(a||f||l||!s)return(0,t.jsx)("div",{className:"flex items-center justify-center p-6",children:(0,t.jsx)("div",{className:"text-text-secondary",children:"Loading air quality data..."})});if(r||o||!s?.forecast?.length)return(0,t.jsx)("div",{className:"flex items-center justify-center p-6",children:(0,t.jsx)("div",{className:"text-text-secondary",children:"Unable to load air quality data"})});let x=s.forecast[0];if(!x)return(0,t.jsx)("div",{className:"flex items-center justify-center p-6",children:(0,t.jsx)("div",{className:"text-text-secondary",children:"Unable to load air quality data"})});let g=i?`/${n}/forecast/air-quality/l/${i.geocode}`:void 0;return(0,t.jsx)(d,{airQualityIndex:x.airQualityIndex,airQualityCategory:x.airQualityCategory,description:x.messages?.general?.text,source:s.source,disclaimer:s.disclaimer,detailsUrl:g})};var x=e.i(754500),g=e.i(710402),v=e.i(310847),y=e.i(475566);let b=({locationProvider:e,locationEntry:a})=>{let r="specified"===e,{specifiedLocationData:i,specifiedLocationError:l,isSpecifiedLocationLoading:n}=(0,x.useSpecifiedLocation)(r?a:null),s=(0,y.useAtomValue)(v.wxuUserRecentAddressesAtom),o=r&&i&&a?(0,g.fromLocationPoint)(i,s):void 0;return(0,t.jsx)(f,{location:o,initializing:r&&n,initialError:r?l:void 0})};e.s(["AirQualityIndexBlock",0,b,"default",0,b],39543)},679374,e=>{"use strict";var t=e.i(297647),a=e.i(477716);let r=(0,e.i(695881).createLogger)("payload:Bluesky:OEmbed");function i(e){try{if(e.startsWith("at://")){let t=e.match(/^at:\/\/([^/]+)\/app\.bsky\.feed\.post\/([^/?#]+)/);if(t){let e=t[1],a=t[2];if(e&&a)return{handle:e,postId:a}}return null}let t=new URL(e).pathname.split("/");if(t.length>=5&&"profile"===t[1]&&"post"===t[3]){let e=t[2],a=t[4];if(e&&a)return{handle:e,postId:a}}return null}catch{return null}}async function l(e,t={}){try{let a=i(e);if(!a)return{error:"invalid_url",message:"Invalid Bluesky URL format"};let l=new URL("https://embed.bsky.app/oembed");l.searchParams.set("url",e),r.debug("Fetching Bluesky oEmbed",{url:e,parsedUrl:a,options:t}),t.maxWidth&&l.searchParams.set("maxwidth",t.maxWidth.toString()),t.maxHeight&&l.searchParams.set("maxheight",t.maxHeight.toString());let n=await fetch(l.toString(),{method:"GET",headers:{Accept:"application/json","User-Agent":"wx-next/1.0"}});if(!n.ok)return{error:"api_error",message:`Bluesky API returned ${n.status}: ${n.statusText}`};let s=await n.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 n(e,t=!1){let a=i(e),r=a?`@${a.handle}`:"Bluesky User";return`
Bluesky Post
Post by ${r}
View on Bluesky →
${t?'
Thread view enabled
':""}
`}let s=({entryMethod:e,blueskyURL:r,postId:i,showThread:s=!1})=>{let o=(0,a.useRef)(null),[d,c]=(0,a.useState)(!0),[u,m]=(0,a.useState)(null),h=(0,a.useCallback)(()=>"id"===e&&i?null:"url"===e&&r?r:null,[e,i,r]);return((0,a.useEffect)(()=>{(async()=>{let e=h();if(!e){m("No valid Bluesky URL provided"),c(!1);return}if(o.current){c(!0),m(null);try{let t=await l(e,{maxWidth:550,showThread:s});"error"in t?(console.warn("Bluesky oEmbed error:",t),o.current.innerHTML=n(e,s)):o.current.innerHTML=t.html}catch(t){console.error("Failed to load Bluesky embed:",t),o.current.innerHTML=n(e,s)}finally{c(!1)}}})()},[h,s]),d)?(0,t.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,t.jsx)("div",{style:{color:"#536471"},children:"Loading Bluesky post..."})}):u?(0,t.jsxs)("div",{className:"bluesky-embed-error",style:{border:"1px solid #ff6b6b",borderRadius:"12px",padding:"16px",margin:"16px 0",maxWidth:"550px",background:"#fff5f5"},children:[(0,t.jsx)("div",{style:{color:"#d63031",fontWeight:"bold",marginBottom:"8px"},children:"Bluesky Embed Error"}),(0,t.jsx)("div",{style:{color:"#636e72"},children:u})]}):(0,t.jsx)("div",{className:"bluesky-embed-container",ref:o})};e.s(["BlueskyBlock",0,s,"default",0,s],679374)},977437,e=>{"use strict";var t=e.i(297647),a=e.i(477716),r=e.i(762073),i=e.i(294237),l=e.i(632137);let n=(0,i.cva)("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"}}),s=a.default.forwardRef(({className:e,variant:a,display:i,inline:s=!1,asChild:o=!1,...d},c)=>{let u=o?r.Slot:"button";return(0,t.jsx)(u,{className:(0,l.cn)(n({variant:a,display:s?"inline":i,className:e})),ref:c,...d})});s.displayName="Button";var o=e.i(240058);let d=({label:e,url:a,variant:r="bg-gray-900",inline:i=!1,isAffiliate:l=!0})=>(0,t.jsx)("div",{className:i?"inline-block":"block",children:(0,t.jsx)(o.default,{href:a,target:"_blank",rel:l?"nofollow noopener noreferrer":"noopener",children:(0,t.jsx)(s,{variant:r,inline:!1,className:"cursor-pointer whitespace-nowrap",children:e})})});e.s(["BuyButtonBlock",0,d,"default",0,d],977437)},380993,e=>{"use strict";var t=e.i(297647),a=e.i(477716),r=e.i(762073),i=e.i(294237),l=e.i(632137),n=e.i(368847),s=e.i(877957);let o={default:"Default",bottom:"Bottom Border",outline:"Outline",ghost:"Ghost (Transparent)"};["default","bottom","outline","ghost"].map(e=>({label:o[e],value:e}));let d={default:"Default",none:"None",lt:"Light",md:"Medium",dk:"Dark"};["default","none","lt","md","dk"].map(e=>({label:d[e],value:e}));let c=(0,i.cva)("flex flex-col @container/card",{variants:{variant:{default:"bg-card text-card-foreground border-b pb-6",bottom:"bg-card text-card-foreground border-b pb-6",outline:"bg-card text-card-foreground overflow-hidden border",ghost:"bg-transparent"},padding:{default:"",none:"",sm:"p-2",md:"p-4",lg:"p-6"},border:{default:"",none:"border-0",lt:"border-gray-200",md:"border-gray-400",dk:"border-gray-600"},background:{default:"",none:"",lt:"bg-gray-100",md:"bg-gray-300",dk:"bg-gray-500"},radius:{none:"",default:"",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"},interactive:{true:"focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500 hover:outline hover:outline-2 hover:outline-offset-2 hover:outline-blue-500",false:""}},defaultVariants:{variant:"default",padding:"default",border:"default",radius:"default",background:"default",interactive:!1},compoundVariants:[{variant:"default",padding:"default",border:"default",class:"border-gray-500"},{variant:"outline",radius:"default",class:"rounded-md"},{variant:"outline",border:"default",class:"border bg-gray-100"},{variant:"outline",padding:"default",class:"p-4"}]}),u=a.forwardRef(({className:e,variant:a,padding:i,radius:n,border:s,asChild:o=!1,children:d,testId:u,...m},h)=>{let p=o?r.Slot:"section";return(0,t.jsx)(p,{className:(0,l.cn)(c({variant:a,padding:i,radius:n,border:s,interactive:o}),e),ref:h,...m,children:d})});u.displayName="Card";let m=a.forwardRef(({className:e,textVariant:a="Title.S",text:r,children:i},s)=>(0,t.jsx)(t.Fragment,{children:r?(0,t.jsx)(n.Text,{ref:s,className:(0,l.cn)("flex pb-4",e),variant:a,children:r}):i}));m.displayName="CardHeader";let h=a.forwardRef(({className:e,children:a,...r},i)=>(0,t.jsx)("div",{className:(0,l.cn)("flex-1",e),ref:i,...r,children:a}));h.displayName="CardContent",a.forwardRef(({className:e,ctaText:a,ctaHref:r,ctaTarget:i="_self",children:n,...o},d)=>(0,t.jsx)("footer",{className:(0,l.cn)("flex items-center pt-4",e),ref:d,...o,children:n||(a&&r?(0,t.jsx)(s.Button,{variant:"default",size:"sm",asChild:!0,children:(0,t.jsx)("a",{href:r,target:i,children:a})}):null)})).displayName="CardFooter",e.s(["Card",()=>u,"CardContent",()=>h,"CardHeader",()=>m])},864943,e=>{"use strict";var t=e.i(297647),a=e.i(37429),r=e.i(877957),i=e.i(477716),l=e.i(747961);let n=(0,i.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Video Player"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",children:[(0,t.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,t.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"})]})]})),s=i.default.forwardRef((e,a)=>(0,t.jsx)(l.BaseIcon,{ref:a,icon:n,...e}));s.displayName="VideoPlayer";let o=(0,i.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Play"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.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"})]})),d=i.default.forwardRef((e,a)=>(0,t.jsx)(l.BaseIcon,{ref:a,icon:o,...e}));d.displayName="PlayFilledAlt";var c=e.i(240058),u=e.i(632137),m=e.i(368847);let h=e=>{let t=e.split(":");""===t[0]&&(t[0]="0");let a=parseInt(t[0]||"0",10).toString();if("0"===a&&3===t.length){let e=parseInt(t[1]||"0",10).toString();return`${e}:${t[2]}`}return[a,...t.slice(1)].join(":")};var p=e.i(294237);let f=(0,p.cva)("group no-underline rounded flex gap-4 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600",{variants:{layout:{row:"flex-row items-center",column:"flex-col",overlay:"relative"},hoverEffect:{none:"",shadow:"",default:"hover:bg-gray-100 focus-visible:bg-gray-100",featured:"p-3 rounded hover:bg-gray-100 focus-visible:bg-gray-100",scaled:""},padding:{none:"",default:"p-3"}},defaultVariants:{layout:"column",hoverEffect:"scaled",padding:"none"}}),x=(0,p.cva)("rounded-lg",{variants:{hoverEffect:{none:"",shadow:"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)]",default:"",featured:"transition-shadow duration-150 group-hover:shadow-lg group-focus-visible:shadow-lg",scaled:"transition-shadow duration-150 group-hover:shadow-lg group-focus-visible:shadow-lg"}},defaultVariants:{hoverEffect:"scaled"}}),g=(0,p.cva)("",{variants:{hoverEffect:{none:"",shadow:"",default:"",featured:"transition-transform duration-150 group-hover:scale-105 group-focus-visible:scale-105",scaled:"transition-transform duration-150 group-hover:scale-105 group-focus-visible:scale-105"}},defaultVariants:{hoverEffect:"scaled"}}),v={sm:"Title.XS",md:"Title.S",lg:"Title.M",xl:"Title.L"},y={sm:"Body.S",md:"Body.M",lg:"Body.L",xl:"Body.L"},b={sm:"Body.S",md:"Body.S",lg:"Body.M",xl:"Body.M"},w=(0,p.cva)("pb-0.5",{variants:{textSize:{sm:"mb-0.5",md:"mb-1",lg:"mb-1.5",xl:"mb-1.5"}},defaultVariants:{textSize:"md"}}),j=(0,p.cva)("absolute inset-0",{variants:{overlayGradient:{bottom:"bg-[linear-gradient(to_bottom,rgba(17,30,55,0)_0%,rgba(17,30,55,0)_50%,rgba(17,30,55,0.4)_100%)]",horizontal:"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%)]",full:"bg-black/40"}},defaultVariants:{overlayGradient:"bottom"}}),C=({src:e,alt:r="",aspectRatio:i="square",overlayGradient:l,partnerLogo:n,className:s,layout:o,hoverEffect:d,isFetchPriority:c,isLive:m,sizes:h="auto, (max-width: 768px) 640px, 1280px"})=>(0,t.jsxs)("div",{className:(0,u.cn)("relative overflow-hidden",x({hoverEffect:d}),"overlay"===o&&"w-full","row"===o&&"w-[50%] max-w-[320px] min-w-30",s),children:[(0,t.jsx)(a.default,{src:e,alt:r,aspectRatio:i,className:(0,u.cn)("scale-[1.01]",g({hoverEffect:d})),sizes:h,isFetchPriority:c}),(n||l)&&(0,t.jsx)("div",{className:j({overlayGradient:l})}),m&&(0,t.jsx)("div",{className:"absolute top-3 left-3 z-10 flex h-6 w-[41px] cursor-pointer items-center justify-center rounded bg-[#cb4a14] text-xs font-bold text-white no-underline shadow-md",children:"Live"}),n&&(0,t.jsx)(a.default,{src:n.src,alt:n.altText,className:(0,u.cn)("absolute bottom-3 left-3 h-auto max-h-5 w-40 max-w-[70%] rounded-none object-contain object-left",n.forceWhite&&"brightness-0 invert"),sizes:"160px"})]});C.displayName="MediaObject.Image";let N=({children:e,className:a})=>(0,t.jsx)("div",{className:(0,u.cn)("flex w-full flex-col",a),children:e});N.displayName="MediaObject.Content";let T=({title:e,className:a,responsive:r,textSize:i="md",inverse:l=!1,lineClamp:n})=>(0,t.jsx)(m.Text,{elementType:"h2",variant:v[i],color:l?"inverse":void 0,responsive:r,className:(0,u.cn)(w({textSize:i}),a),lineClamp:n,children:e});T.displayName="MediaObject.Title";let I=({description:e,className:a,responsive:r,textSize:i="md",inverse:l=!1,lineClamp:n})=>(0,t.jsx)(m.Text,{elementType:"p",variant:y[i],color:l?"inverse":"secondary",responsive:r,className:(0,u.cn)("mb-2",a),lineClamp:n,children:e});I.displayName="MediaObject.Description";let S={sm:"md",md:"md",lg:"lg",xl:"lg"},A=({duration:e,className:a,responsive:r,textSize:i="md",iconSize:l,inverse:n=!1})=>(0,t.jsxs)("div",{className:(0,u.cn)("flex items-center gap-1",a),children:[(0,t.jsx)(s,{size:l||S[i],className:(0,u.cn)(n&&"text-white")}),(0,t.jsx)(m.Text,{variant:b[i],color:n?"inverse":void 0,responsive:r,children:h(e)})]});A.displayName="MediaObject.Duration";let M=({text:e,variant:a,duration:i,className:l,inverse:n=!1,size:s="sm"})=>(0,t.jsxs)("div",{className:(0,u.cn)("@container/button flex items-center gap-3",l),children:[(0,t.jsx)(r.Button,{asChild:!0,variant:a,size:s,children:(0,t.jsxs)("span",{children:[i&&(0,t.jsx)(d,{className:"mr-2",size:"sm",color:n?void 0:"inverse"}),e]})}),i&&(0,t.jsx)(m.Text,{className:"ml-2 hidden @[180px]/button:inline",elementType:"span",variant:"Body.M",color:n?"inverse":void 0,children:h(i)})]});M.displayName="MediaObject.Button";let _=({children:e,url:a,target:r,onClick:i,className:l,thumbnail:n,altText:s,aspectRatio:o="square",partnerLogo:d,overlayGradient:m,title:h,description:p,duration:x,button:g,responsive:v,isFetchPriority:y,lineClamp:b,isLive:w,sizes:j,textSize:S,layout:_="column",hoverEffect:k,padding:R})=>{let P,L=(0,u.cn)(f({layout:_,hoverEffect:k,padding:R}),l);if(e)P=e;else{let e=!!(h||p||x||g),a="overlay"===_;P=(0,t.jsxs)(t.Fragment,{children:[n&&(0,t.jsx)(C,{src:n,alt:s,aspectRatio:o,overlayGradient:a?"full":m,partnerLogo:d,layout:_,hoverEffect:k,isFetchPriority:y,isLive:w,sizes:j}),e&&(0,t.jsxs)(N,{className:(0,u.cn)(a&&"min-w[300px] absolute bottom-[6%] left-[4%] w-[50%]"),children:[h&&(0,t.jsx)(T,{title:h,textSize:S,responsive:v,inverse:a,lineClamp:b}),p&&(0,t.jsx)(I,{description:p,textSize:S,responsive:v,inverse:a,lineClamp:b}),g?(0,t.jsx)(M,{text:g.text,duration:x,inverse:a,variant:g.variant||(a?"secondary":void 0)}):x?(0,t.jsx)(A,{duration:x,textSize:S,responsive:v,inverse:a}):null]})]})}return a?(0,t.jsx)(c.default,{className:L,href:a,target:r,children:P}):(0,t.jsx)("button",{className:(0,u.cn)("cursor-pointer text-left",L),onClick:i,children:P})};_.displayName="MediaObject";let k=Object.assign(_,{Image:C,Content:N,Title:T,Description:I,Duration:A,Button:M});e.s(["MediaObject",0,k],864943)},103860,e=>{"use strict";var t=e.i(297647),a=e.i(477716);let r={src:e.i(192066).default,width:21,height:21,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAs0lEQVR42l2PzQrCMBCE09LEVkggPZS22H8ohOipJ99D8CzeBLGKVqQonn1qd4uR0oU5JPPtMEu01teiKJ5ZlvVGdV2/fN+vCA6YN0qpcF134XlehQqCYBOG4ZYxNidpmp6klOskSc5RFO1QcRwf4H2BpOMA4AbnfEVGY9v2LM/zOwLtD1iOAcuyGHgddniUZfmZJvwBKCih0F4I0cAnNXIch+PyQEPJBlLecGJnBGavlGq/aBQeMbilbuQAAAAASUVORK5CYII="};var i=e.i(37429),l=e.i(368847);let n=(0,e.i(514514).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var s=e.i(870393);let o=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)),d=({id:e,assets:a,currentSlideIndex:d,totalAssets:c,previous:u,next:m,sendTrackString:h,rounded:p=!1})=>{if(!a.length||d=a.length)return null;let f=a[d],x=`${d+1}/${c}`,g=0===d,v=d===c-1;return(0,t.jsxs)("figure",{id:e,className:"relative mt-4 mb-4 w-full max-w-full",children:[(0,t.jsx)("div",{className:p?"overflow-hidden rounded-[16px]":"",children:(0,t.jsx)("div",{className:`relative w-full ${p?"rounded-[16px]":""}`,children:(0,t.jsx)("div",{className:`relative w-full ${p?"rounded-[16px]":""}`,style:{paddingTop:"56.25%"},children:(0,t.jsx)(i.default,{className:"absolute top-0 left-0 h-full w-full object-cover",src:f.url||"",alt:f.seo?.altText||"",rounded:p,width:800,height:450,sizes:"(max-width: 767px) 91vw, (max-width: 1280px) 64vw, 800px"})})})}),(0,t.jsx)("figcaption",{children:(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("div",{className:"flex items-center pt-2",children:(0,t.jsxs)("div",{className:"relative flex w-full items-center",children:[(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsx)(i.default,{src:r.src,alt:"Slideshow",width:20,height:20,className:"h-5 w-5",rounded:!1})}),(0,t.jsx)("div",{className:"mr-2 ml-2",children:(0,t.jsx)(l.Text,{variant:"Body.S",color:"primary",children:x})}),(0,t.jsx)("div",{className:"flex-grow"}),(0,t.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:g,onClick:()=>{h("wxnode_slideshow_link-previous"),u()},children:(0,t.jsx)("span",{className:"flex items-center justify-center",children:(0,t.jsx)("span",{className:"flex items-center justify-center","aria-label":"chevron left",children:(0,t.jsx)(n,{className:`h-5 w-5 ${g?"text-gray-200":"text-blue-500"}`})})})}),(0,t.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:v,onClick:()=>{h("wxnode_slideshow_link-next"),m()},children:(0,t.jsx)("span",{className:"flex items-center justify-center",children:(0,t.jsx)("span",{className:"flex items-center justify-center","aria-label":"chevron right",children:(0,t.jsx)(s.ChevronRight,{className:`h-5 w-5 ${v?"text-gray-200":"text-blue-500"}`})})})})]})}),f.filename&&!o(f.filename)&&(0,t.jsx)(l.Text,{variant:"Title.S",color:"primary",elementType:"h3",className:"mt-0 mb-1",children:f.filename}),f.caption&&(0,t.jsx)(l.Text,{variant:"Body.S",color:"primary",className:`py-1 pb-0 ${!(f.filename&&!o(f.filename))?"mt-0 pt-0":""}`,children:f.caption}),(0,t.jsx)("div",{className:"border-b border-gray-200 py-2"})]})})]})};e.s(["default",0,({id:e,assets:r=[],allSlides:i=[],totalAssets:l=i.length||0,loadNextSlideshowPage:n,sendTrackString:s=()=>{},rounded:o=!1})=>{let c=(0,a.useId)(),u=e||`slideshow-${c}`,m=i.length>0,[h,p]=(0,a.useState)(0),[f,x]=(0,a.useState)(1),[g,v]=(0,a.useState)(1),[y,b]=(0,a.useState)(m?i.slice(0,20):r),w=(0,a.useCallback)(e=>{if(!e)return!1;let{top:t}=e.getBoundingClientRect();return t>=-100&&t{if(h-1>=0){let e=h-1?Math.ceil((h-1)/20):1;p(h-1),x(e)}},[h]),C=(0,a.useCallback)(()=>{if(h+1=g){let e=20*f;if(e-3r.length&&f>=g){let e=20*f;e-3{if(w(document.querySelector(`#${u}`)))switch(e.key){case"ArrowLeft":j();break;case"ArrowRight":C()}},[u,w,j,C]);return(0,a.useEffect)(()=>(document.body.addEventListener("keydown",N),()=>{document.body.removeEventListener("keydown",N)}),[N]),(0,a.useEffect)(()=>{m&&0===y.length&&b(i.slice(0,20))},[m,i,y.length]),(0,t.jsx)(d,{id:u,assets:m?y:r,currentSlideIndex:h,totalAssets:l,previous:j,next:C,sendTrackString:s,rounded:o})}],103860)},30917,e=>{"use strict";var t=e.i(297647),a=e.i(436028),r=e.i(380993),i=e.i(632137),l=e.i(864943),n=e.i(294237);let s=[1,2,3,4],o={1:"1 Column",2:"2 Columns",3:"3 Columns",4:"4 Columns"};s.map(e=>({label:o[e],value:String(e)}));let d=(0,n.cva)("",{variants:{columns:{1:"",2:"",3:"",4:"",5:""},items:{1:"",2:"",3:"",4:"",5:"",6:"",7:"",8:"",9:"",10:""}},compoundVariants:[{columns:1,items:1,class:"grid-cols-1"},{columns:1,items:2,class:"grid-cols-1"},{columns:2,items:2,class:"grid-cols-1 @md/grid:grid-cols-2"},{columns:1,items:3,class:"grid-cols-1"},{columns:3,items:3,class:"grid-cols-1 @lg/grid:grid-cols-3"},{columns:1,items:4,class:"grid-cols-1"},{columns:2,items:4,class:"grid-cols-1 @md/grid:grid-cols-2"},{columns:4,items:4,class:"grid-cols-1 @md/grid:grid-cols-2 @xl/grid:grid-cols-4"},{columns:1,items:5,class:"grid-cols-1"},{columns:1,items:6,class:"grid-cols-1"},{columns:2,items:6,class:"grid-cols-1 @md/grid:grid-cols-2"},{columns:3,items:6,class:"grid-cols-1 @md/grid:grid-cols-2 @lg/grid:grid-cols-3"},{columns:1,items:7,class:"grid-cols-1"},{columns:2,items:7,class:"grid-cols-1 @md/grid:grid-cols-2"},{columns:4,items:7,class:"grid-cols-1 @md/grid:grid-cols-2 @xl/grid:grid-cols-4"},{columns:1,items:8,class:"grid-cols-1"},{columns:2,items:8,class:"grid-cols-1 @md/grid:grid-cols-2"},{columns:4,items:8,class:"grid-cols-1 @md/grid:grid-cols-2 @xl/grid:grid-cols-4"},{columns:1,items:9,class:"grid-cols-1"},{columns:3,items:9,class:"grid-cols-1 @md/grid:grid-cols-2 @lg/grid:grid-cols-3"}]});function c(e,t){switch(e){case"hero":return"auto, (max-width: 2048px) 100vw, 2048px";case"row":return"auto, (max-width: 640px) 50vw, 320px";case"column":if(!t)return"auto, (max-width: 768px) 100vw, 640px";if(t%2==0)return"auto, (max-width: 768px) 50vw, 640px";return"auto, (max-width: 768px) 100vw, 640px";default:return"auto, 640px"}}let u=({items:e,aspectRatio:a,gridColumns:r=3,isFetchPriority:n=!1,hideItemTitles:s=!1})=>{if(0===e.length)return null;let o=Math.min(e.length,10),u=1===r,m=[3,5,9].includes(o);return(0,t.jsxs)("div",{className:"@container/grid",children:[!u&&(0,t.jsx)("div",{className:(0,i.cn)("flex flex-col gap-4",m?"@lg/grid:hidden":"@md/grid:hidden"),children:e.map(e=>(0,t.jsx)(l.MediaObject,{thumbnail:e.thumbnail,altText:e.altText,title:s?void 0:e.title,description:e.description,duration:e.duration,url:e.url,partnerLogo:e.partnerLogo,isLive:e.isLive,layout:"row",aspectRatio:a,textSize:"md",responsive:!0,isFetchPriority:n,sizes:c("row")},e.id))}),(0,t.jsx)("div",{className:(0,i.cn)(u?"grid":m?"hidden @lg/grid:grid":"hidden @md/grid:grid","gap-4",d({columns:r,items:o})),children:e.map(e=>(0,t.jsx)(l.MediaObject,{thumbnail:e.thumbnail,altText:e.altText,title:s?void 0:e.title,description:e.description,duration:e.duration,url:e.url,partnerLogo:e.partnerLogo,isLive:e.isLive,layout:"column",aspectRatio:a,overlayGradient:"bottom",textSize:"md",responsive:!0,isFetchPriority:n,sizes:c("column",r)},e.id))})]})},m=({items:e,title:a,hideTitle:l=!1,gridColumns:n=2,aspectRatio:s="square",cardVariant:o="default",border:d="default",hideItemTitles:c=!1,className:m})=>(0,t.jsxs)(r.Card,{"aria-label":a,variant:o,border:d,className:(0,i.cn)(m),children:[!l&&(0,t.jsx)(r.CardHeader,{text:a}),(0,t.jsx)(r.CardContent,{children:(0,t.jsx)(u,{items:e,aspectRatio:s,gridColumns:n,hideItemTitles:c})})]}),h=({items:e,title:a,hideTitle:n=!1,aspectRatio:s="square",cardVariant:o="default",border:d="default",hideThumbnails:u=!1,className:m})=>(0,t.jsxs)(r.Card,{"aria-label":a,variant:o,border:d,className:(0,i.cn)(m),children:[!n&&(0,t.jsx)(r.CardHeader,{text:a}),(0,t.jsx)(r.CardContent,{className:"flex flex-col gap-4",children:e.map(e=>(0,t.jsx)(l.MediaObject,{thumbnail:u?void 0:e.thumbnail,altText:e.altText,title:e.title,description:e.description,duration:e.duration,url:e.url,partnerLogo:e.partnerLogo,isLive:e.isLive,layout:"row",aspectRatio:s,textSize:"md",responsive:!0,sizes:c("row"),lineClamp:3},e.id))})]});var p=e.i(103860);let f=({items:e,showDescription:a=!0})=>{let r=e.map(e=>({id:e.id,url:e.overrideThumbnail||e.thumbnail||"",filename:e.overrideTitle||"",caption:a&&(e.overrideDescription||e.description)||"",seo:{altText:e.overrideTitle||e.title},createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}));return(0,t.jsx)("section",{className:"not-prose",children:(0,t.jsx)(p.default,{id:`content-media-slideshow-${Math.random().toString(36).substring(2,9)}`,assets:r,allSlides:r,slides:[],totalAssets:r.length,rounded:!0,sendTrackString:()=>{},blockType:"Slideshow"})})},x=({heroItem:e,secondaryItems:a=[],aspectRatio:r="square",gridColumns:n=3})=>{let s=a.length>0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.MediaObject,{url:e.url,className:(0,i.cn)("@container/hero-item",s&&"mb-4"),children:(0,t.jsxs)("div",{className:"flex flex-col @xl/hero-item:relative",children:[(0,t.jsxs)("div",{className:"relative w-full overflow-hidden rounded-lg",children:[(0,t.jsx)(l.MediaObject.Image,{src:e.thumbnail,alt:e.altText,aspectRatio:"auto",hoverEffect:"scaled",className:"aspect-[8/5] max-h-[400px] w-full",isFetchPriority:!0,isLive:e.isLive,sizes:c("hero")}),(0,t.jsx)("div",{className:"absolute inset-0 hidden bg-black/40 @xl/hero-item:block"})]}),(0,t.jsxs)(l.MediaObject.Content,{className:(0,i.cn)("@xl/hero-item:absolute @xl/hero-item:bottom-[6%] @xl/hero-item:left-[4%] @xl/hero-item:w-1/2 @xl/hero-item:p-0"),children:[e.partnerLogo?.src&&(0,t.jsx)("img",{src:e.partnerLogo.src,alt:e.partnerLogo.altText,className:(0,i.cn)("my-3 max-h-6 object-contain object-left",e.partnerLogo.forceWhite&&"@xl/hero-item:brightness-0 @xl/hero-item:invert")}),(0,t.jsx)(l.MediaObject.Title,{title:e.title,textSize:"xl",responsive:!0,className:"@xl/hero-item:text-white"}),e.description&&(0,t.jsx)(l.MediaObject.Description,{description:e.description,textSize:"xl",responsive:!0,className:"@xl/hero-item:text-white"}),(0,t.jsx)(l.MediaObject.Button,{text:e.duration?"Watch":"Read more",duration:e.duration,variant:"secondary",size:"lg",className:"hidden @xl/hero-item:block",inverse:!0})]})]})}),s&&(0,t.jsx)(u,{items:a,aspectRatio:r,gridColumns:n,isFetchPriority:!0})]})},g=({heroItem:e,secondaryItems:a=[],aspectRatio:r="square",gridColumns:n=3})=>{let s=a.length>0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.MediaObject,{url:e.url,className:(0,i.cn)("@container/hero-item",s&&"mb-4"),children:(0,t.jsxs)("div",{className:(0,i.cn)("flex flex-col","@xl/hero-item:grid @xl/hero-item:grid-cols-3 @xl/hero-item:gap-6"),children:[(0,t.jsx)("div",{className:(0,i.cn)("relative w-full","@xl/hero-item:col-span-2"),children:(0,t.jsx)(l.MediaObject.Image,{src:e.thumbnail,alt:e.altText,aspectRatio:"8/5",hoverEffect:"scaled",isFetchPriority:!0,isLive:e.isLive})}),(0,t.jsxs)(l.MediaObject.Content,{className:(0,i.cn)("@xl/hero-item:col-span-1 @xl/hero-item:flex @xl/hero-item:flex-col @xl/hero-item:justify-center @xl/hero-item:p-0"),children:[e.partnerLogo?.src&&(0,t.jsx)("img",{src:e.partnerLogo.src,alt:e.partnerLogo.altText,className:"my-3 max-h-6 object-contain object-left @xl/hero-item:block"}),(0,t.jsx)(l.MediaObject.Title,{title:e.title,textSize:"xl",responsive:!0,lineClamp:4}),e.description&&(0,t.jsx)(l.MediaObject.Description,{description:e.description,textSize:"xl",responsive:!0,lineClamp:3}),(0,t.jsx)(l.MediaObject.Button,{text:e.duration?"Watch":"Read more",duration:e.duration,size:"lg",className:"hidden @xl/hero-item:block"})]})]})}),s&&(0,t.jsx)(u,{items:a,aspectRatio:r,gridColumns:n,isFetchPriority:!0})]})},v=e=>{let{contentQuery:i,title:l,showDescription:n,template:o="grid",gridColumns:d=3,aspectRatio:c="square",hideTitle:u=!1,cardVariant:p="default",border:v="default",displayPartnerLogo:y="enable",hideItemTitles:b=!1,hideThumbnails:w=!1,hideDuration:j=!1}=e,C="travel-hero"===o?3:function(e){let t="string"==typeof e?parseInt(e,10):e;if(t&&s.includes(t))return t}(d),N=i?.mergedContent||[];if(!(0,a.hasLength)(N))return null;let T="travel-hero"===o?"hero-overlay":o;if(N.every(e=>"image"===e.contentType))return(0,t.jsx)(f,{items:N,showDescription:n});let I=function(e,t={}){return e.map((e,a)=>(function(e,t={}){let{showDescription:a=!0,displayPartnerLogo:r="enable",hideDuration:i=!1,itemIndex:l=0}=t,n=(()=>{switch(r){case"disable":return!1;case"leader":return 0===l;default:return!0}})(),s=e.tags?.keyword?.some(e=>e.toLowerCase().includes("liveBlog"))||!1,o=(()=>{if(!e.eventStartTime||!e.eventEndTime)return!1;let t=new Date,a=new Date(e.eventStartTime),r=new Date(e.eventEndTime);return t>=a&&t{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getDailyForecastUrlConfig=function({geocode:e,units:t,language:a,duration:i=r.ForecastDuration.FIVE_DAY,cscCountryCode:l}){return{host:"api.weather.com",protocol:"https",pathname:`/v3/wx/forecast/daily/${i}`,query:{geocode:e,units:t,language:a,cscCountryCode:l||void 0,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},a.getDailyCognitiveHealthForecastUrlConfig=function({geocode:e,language:t,conditionType:a,duration:i=r.ForecastDuration.FIVE_DAY}){return{host:"api.weather.com",protocol:"https",pathname:`/v3/wx/forecast/daily/${i}/cognitiveHealth`,query:{geocode:e,language:t,conditionType:a,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},a.getHourlyForecastUrlConfig=function({geocode:e,units:t,language:a,duration:i=r.HourlyForecastDuration.TWO_DAY,cscCountryCode:l}){return{host:"api.weather.com",protocol:"https",pathname:`/v3/wx/forecast/hourly/${i}`,query:{geocode:e,units:t,language:a,cscCountryCode:l||void 0,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},a.getFifteenMinuteForecastUrlConfig=function({geocode:e,units:t,language:a}){return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/fifteenminute",query:{geocode:e,units:t,language:a,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},a.getMinutelyPrecipitationForecastUrlConfig=function({geocode:e,units:t,language:a,duration:r="60minute"}){return{host:"api.weather.com",protocol:"https",pathname:`/v3/wx/forecast/minutely/precipitation/${r}`,query:{geocode:e,units:t,language:a,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},a.getWWIRForecastUrlConfig=function({geocode:e,postalCode:t,units:a,language:r}){return{host:"api.weather.com",protocol:"https",pathname:t?`/v1/location/${t}/forecast/wwir.json`:`/v1/geocode/${e?.replace(",","/")}/forecast/wwir.json`,query:{units:a,language:r,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}};let r=e.r(349262)},738634,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.transformDailyForecast=void 0,a.getDailyForecast=o,a.getDailyCognitiveHealthForecast=d;let r=e.r(417669),i=e.r(678651),l=e.r(414655),n=e.r(992591),s=e.r(861160);async function o(e){let t=(0,r.getDailyForecastUrlConfig)(e),n=(0,i.urlFrom)(t),s=await fetch(n,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:1800}}),o=await (0,l.handleFetchResponse)(s);return(0,a.transformDailyForecast)(o)}async function d(e){let t=(0,r.getDailyCognitiveHealthForecastUrlConfig)(e),a=(0,i.urlFrom)(t),n=await fetch(a,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:1800}});return await (0,l.handleFetchResponse)(n)}a.transformDailyForecast=(0,n.createTransformer)((e,t,a)=>{let r=2*t,i=r+1,{daypart:l}=a||{};return{calendarDayTemperatureMax:e.calendarDayTemperatureMax??void 0,calendarDayTemperatureMin:e.calendarDayTemperatureMin??void 0,dayOfWeek:e.dayOfWeek??void 0,expirationTimeUtc:e.expirationTimeUtc??void 0,moonPhase:e.moonPhase??void 0,moonPhaseCode:e.moonPhaseCode??void 0,moonPhaseDay:e.moonPhaseDay??void 0,moonriseTimeLocal:e.moonriseTimeLocal??void 0,moonriseTimeUtc:e.moonriseTimeUtc??void 0,moonsetTimeLocal:e.moonsetTimeLocal??void 0,moonsetTimeUtc:e.moonsetTimeUtc??void 0,narrative:e.narrative??void 0,qpf:e.qpf??void 0,qpfSnow:e.qpfSnow??void 0,sunriseTimeLocal:e.sunriseTimeLocal??void 0,sunriseTimeUtc:e.sunriseTimeUtc??void 0,sunsetTimeLocal:e.sunsetTimeLocal??void 0,sunsetTimeUtc:e.sunsetTimeUtc??void 0,temperatureMax:e.temperatureMax??void 0,temperatureMin:e.temperatureMin??void 0,validTimeLocal:e.validTimeLocal??void 0,validTimeUtc:e.validTimeUtc??void 0,daypart:[r,i].map((t,a)=>l?.[0]?.daypartName?.[t]?{cloudCover:l[0].cloudCover?.[t]??void 0,dayOrNight:l[0].dayOrNight?.[t]??void 0,daypartName:l[0].daypartName?.[t]??void 0,iconCode:l[0].iconCode?.[t]??void 0,iconCodeExtend:l[0].iconCodeExtend?.[t]??void 0,narrative:l[0].narrative?.[t]??void 0,precipChance:l[0].precipChance?.[t]??void 0,precipType:l[0].precipType?.[t]??void 0,qpf:l[0].qpf?.[t]??void 0,qpfSnow:l[0].qpfSnow?.[t]??void 0,qualifierCode:l[0].qualifierCode?.[t]??void 0,qualifierPhrase:l[0].qualifierPhrase?.[t]??void 0,relativeHumidity:l[0].relativeHumidity?.[t]??void 0,snowRange:l[0].snowRange?.[t]??void 0,temperature:l[0].temperature?.[t]??void 0,temperatureHeatIndex:l[0].temperatureHeatIndex?.[t]||void 0,temperatureWindChill:l[0].temperatureWindChill?.[t]||void 0,thunderCategory:l[0].thunderCategory?.[t]??void 0,thunderIndex:l[0].thunderIndex?.[t]??void 0,uvDescription:l[0].uvDescription?.[t]??void 0,uvIndex:l[0].uvIndex?.[t]??void 0,windDirection:l[0].windDirection?.[t]??void 0,windDirectionCardinal:l[0].windDirectionCardinal?.[t]?(0,s.normalizeCardinal)(l[0].windDirectionCardinal[t]):void 0,windPhrase:l[0].windPhrase?.[t]??void 0,windSpeed:l[0].windSpeed?.[t]??void 0,wxPhraseLong:l[0].wxPhraseLong?.[t]??void 0,wxPhraseShort:l[0].wxPhraseShort?.[t]??void 0,...0===a?{sunriseTimeLocal:e.sunriseTimeLocal??void 0,sunsetTimeLocal:e.sunsetTimeLocal??void 0}:{moonPhase:e.moonPhase??void 0,moonPhaseCode:e.moonPhaseCode??void 0,moonriseTimeLocal:e.moonriseTimeLocal??void 0,moonsetTimeLocal:e.moonsetTimeLocal??void 0}}:void 0)}})},467741,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getAirQualityScale=void 0;let r=e.r(980108),i={US:r.AirQualityScale.EPA,CN:r.AirQualityScale.HJ6332012,FR:r.AirQualityScale.ATMO,DE:r.AirQualityScale.UBA,GB:r.AirQualityScale.DAQI,IN:r.AirQualityScale.NAQI,MX:r.AirQualityScale.IMECA,ES:r.AirQualityScale.CAQI};a.getAirQualityScale=({countryCode:e})=>i[e]||r.AirQualityScale.EPA},548888,763635,955105,e=>{"use strict";var t=e.i(297647),a=e.i(477716),r=e.i(632137),i=e.i(747961);let l=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Arrow Down"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.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"})]})),n=a.default.forwardRef((e,a)=>(0,t.jsx)(i.BaseIcon,{ref:a,icon:l,...e}));n.displayName="ArrowDown",e.s(["ArrowDown",0,n],763635);let s=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Wind"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.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"})]})),o=a.default.forwardRef((e,a)=>(0,t.jsx)(i.BaseIcon,{ref:a,icon:s,...e}));o.displayName="Wind",e.s(["Wind",0,o],955105);var d=e.i(617874);let c={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},u=({windDirection:e,windDirectionCardinal:a,iconClassName:i,iconColor:l,displayWindDirectionIcon:s,displayMode:d,afterSpeed:u,useWindIcon:m})=>{var h,p;if(!e&&!a)return null;let f=(h=e,p=a,null!=h&&Number.isFinite(h)?h:p?c[p]:void 0);if(!("directional"===d||"directionalAndCardinal"===d||void 0===d&&s||m)||!m&&!Number.isFinite(f))return null;let x=m?o:n,g=m?void 0:{transform:`rotate(${f}deg)`};return(0,t.jsx)(x,{className:(0,r.cn)("inline-block size-4 align-middle",u?"ml-0.5":"mr-0.5",i),color:l,style:g,"aria-label":"Wind direction icon","data-testid":"WindDirectionIcon"})},m=({windDirection:e,windDirectionCardinal:a,cardinalClassName:r,displayWindDirectionIcon:i,displayMode:l,beforeSpeed:n})=>(e||a)&&("cardinal"===l||"directionalAndCardinal"===l||void 0===l&&!i)&&a?(0,t.jsxs)("span",{className:r,children:[!n&&" ",a,n&&" "]}):null,h=({units:e,windUnitClass:a})=>{let i=e?(0,d.unitsSystemByCode)(e):null,l=i?.speed;return(0,t.jsx)("span",{className:(0,r.cn)(a),children:l})},p=(0,a.memo)(({windSpeed:e,units:a,className:i,windDirection:l,windDirectionCardinal:n,windSpeedClass:s,windUnitClass:o,iconClassName:d,iconColor:c,cardinalClassName:p,iconAfterSpeed:f,cardinalBeforeSpeed:x,spaceWindSpeedAndUnit:g=!0,displayWindDirectionIcon:v=!1,displayMode:y,useWindIcon:b})=>{let w=(0,t.jsx)(u,{windDirection:l,windDirectionCardinal:n,iconClassName:d,iconColor:c,displayWindDirectionIcon:v,displayMode:y,afterSpeed:f,useWindIcon:b}),j=(0,t.jsx)(m,{windDirection:l,windDirectionCardinal:n,displayWindDirectionIcon:v,displayMode:y,beforeSpeed:x,cardinalClassName:p});return(0,t.jsxs)("span",{"data-testid":"Wind",className:(0,r.cn)(i),children:[!f&&w,x&&j,Number.isFinite(e)&&a?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:(0,r.cn)(s),children:e}),g&&" ",(0,t.jsx)(h,{units:a,windUnitClass:o})]}):"--",!x&&j,f&&w]})});e.s(["Wind",0,p],548888)},796424,506424,e=>{"use strict";function t(e){if(!e)return"";let t=("number"==typeof e?new Date(e).toISOString():e instanceof Date?e.toISOString():e.replace(/GMT(?![+-])/,"GMT+0000")).replace(/\.\d+/,"").replace("Z","+0000").replace(/\s+/,"T").replace(/\s+/g,"").replace(/[A-Z]{3,}/,""),a=/([+-])(\d{2})(\d{2})$/;a.test(t)&&(t=t.replace(a,"$1$2:$3"));let r=t.replace(/(\d{4})-(\d{2})-(\d{2})/,"$1/$2/$3").replace("T"," ");return"Invalid Date"===new Date(r).toString()?"Invalid Date"!==new Date(t).toString()?t:"string"==typeof e?e:"":r}e.s(["getNormalizedDateString",()=>t],796424),e.s(["getCompatibleValues",0,({date:e,timeZone:a})=>({cDate:new Date(t(e)),cTimeZone:(e=>{try{return new Intl.DateTimeFormat("en-US",{timeZone:e}),e}catch{return"Etc/UTC"}})(a)})],506424)},911927,742740,e=>{"use strict";e.s(["useCscCountryCode",0,()=>""],911927);var t=e.i(506424);e.s(["formatHourlyDate",0,({date:e,locale:a="en-US",timeZone:r,minutes:i,showTimeZone:l,showShortDayperiod:n,weekday:s})=>{if(!e)return"";let{cDate:o,cTimeZone:d}=(0,t.getCompatibleValues)({date:e,locale:a,timeZone:r}),c={hour:"numeric",hour12:!0,timeZone:d};s&&(c.weekday=s),i&&(c.minute="2-digit"),"en-US"!==a&&"es-US"!==a&&(delete c.hour12,c.minute="2-digit",c.hourCycle="h23"),l&&(c.timeZoneName="short");let u=new Intl.DateTimeFormat(a,c);if(a.includes("-US")){let e=u.formatToParts(o),t=s&&e.find(e=>"weekday"===e.type)?.value,r=e.find(e=>"hour"===e.type)?.value,d=i&&e.find(e=>"minute"===e.type)?.value,c=e.find(e=>"dayperiod"===e.type.toLowerCase())?.value.toLowerCase(),m=a.includes("en")?c:c?.replace(/\./g,"").replace(/\s/g,""),h=n?`${m?.[0]} `:` ${m} `,p=l?e.find(e=>"timeZoneName"===e.type)?.value:"",f=i?`:${d}`:"",x=s?`${t} `:"";return`${x}${r}${f}${h}${p}`.trim()}if(n){let e=u.formatToParts(o),t=s&&e.find(e=>"weekday"===e.type)?.value,a=e.find(e=>"hour"===e.type)?.value,r=i&&e.find(e=>"minute"===e.type)?.value,n=l?e.find(e=>"timeZoneName"===e.type)?.value:"",d=i?`:${r}`:"";return`${s?`${t} `:""}${a}${d} ${n}`.trim()}return u.format(o)}],742740)},358025,(e,t,a)=>{"use strict";var r,i,l,n,s,o,d,c,u,m;Object.defineProperty(a,"__esModule",{value:!0}),a.PrecipIntensityCode=a.PrecipTypeCode=a.ThunderCategory=a.PrecipType=a.MoonPhaseCode=void 0,(o=r||(a.MoonPhaseCode=r={})).WANING_GIBBOUS="WNG",o.WAXING_CRESCENT="WXC",o.FIRST_QUARTER="FQ",o.WANING_CRESCENT="WNC",o.LAST_QUARTER="LQ",o.FULL="F",o.WAXING_GIBBOUS="WXG",o.NEW="N",(d=i||(a.PrecipType=i={})).RAIN="rain",d.SNOW="snow",d.PRECIP="precip",(c=l||(a.ThunderCategory=l={})).NO_THUNDER="0",c.THUNDER_POSSIBLE="1",c.THUNDER_EXPECTED="2",c.SEVERE_THUNDERSTORMS_POSSIBLE="3",c.SEVERE_THUNDERSTORMS_LIKELY="4",c.HIGH_RISK_OF_SEVERE_THUNDERSTORMS="5",(u=n||(a.PrecipTypeCode=n={}))[u.NONE=0]="NONE",u[u.RAIN=1]="RAIN",u[u.SNOW=2]="SNOW",u[u.FREEZING_RAIN=3]="FREEZING_RAIN",u[u.THUNDER=4]="THUNDER",u[u.SLEET=5]="SLEET",u[u.HAIL=6]="HAIL",(m=s||(a.PrecipIntensityCode=s={}))[m.NONE=0]="NONE",m[m.VERY_LIGHT=1]="VERY_LIGHT",m[m.LIGHT=2]="LIGHT",m[m.MODERATE=3]="MODERATE",m[m.HEAVY=4]="HEAVY"},196481,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getSunWeatherAlertHeadlinesUrlConfig=function({geocode:e,countryCode:t,areaId:a,adminDistrictCode:r,language:i}){let l={format:"json",language:i,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return e&&(l.geocode=e),t&&(l.countryCode=t),a&&(l.areaId=a),r&&(l.adminDistrictCode=r),{host:"api.weather.com",protocol:"https",pathname:"/v3/alerts/headlines",query:l}},a.getSunWeatherAlertDetailUrlConfig=function({detailKey:e,language:t}){return{host:"api.weather.com",protocol:"https",pathname:"/v3/alerts/detail",query:{alertId:e,format:"json",language:t,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},10992,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getSortedAlerts=void 0,a.getSortedAlerts=e=>[...e].sort((e,t)=>e.displayRank>t.displayRank?1:e.displayRankt.eventTrackingNumber?1:(e.eventTrackingNumber{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getWeatherAlertHeadlines=s,a.getWeatherAlertHeadlinesByCountryCode=o,a.getAllWeatherAlertHeadlines=d,a.getAllWeatherAlertHeadlinesByCountryCode=c,a.getWeatherAlertHeadlinesByAreaId=u,a.getAllWeatherAlertHeadlinesByAreaId=m,a.getWeatherAlertHeadlinesByAdminDistrictCode=h,a.getAllWeatherAlertHeadlinesByAdminDistrictCode=p;let r=e.r(196481),i=e.r(678651),l=e.r(414655),n=e.r(10992);async function s({geocode:e,language:t="en-US"}){let a=(0,i.urlFrom)((0,r.getSunWeatherAlertHeadlinesUrlConfig)({geocode:e,language:t})),s=await fetch(a,{headers:{"Accept-Encoding":"gzip"},cache:"no-store",next:{revalidate:0}}),o=await (0,l.handleFetchResponse)(s);return{...o,alerts:(0,n.getSortedAlerts)(o.alerts)}}async function o({countryCode:e,language:t="en-US"}){let a=(0,i.urlFrom)((0,r.getSunWeatherAlertHeadlinesUrlConfig)({countryCode:e,language:t})),s=await fetch(a,{headers:{"Accept-Encoding":"gzip"},cache:"no-store",next:{revalidate:0}}),o=await (0,l.handleFetchResponse)(s);return{...o,alerts:(0,n.getSortedAlerts)(o.alerts)}}async function d({geocode:e,language:t="en-US"}){let a={metadata:{next:null},alerts:[]},s=null;do{let n=(0,i.urlFrom)({...(0,r.getSunWeatherAlertHeadlinesUrlConfig)({geocode:e,language:t}),query:{...(0,r.getSunWeatherAlertHeadlinesUrlConfig)({geocode:e,language:t}).query,...s?{next:s.toString()}:{}}}),o=await fetch(n,{headers:{"Accept-Encoding":"gzip"},cache:"no-store",next:{revalidate:0}}),d=await (0,l.handleFetchResponse)(o);a.alerts=[...a.alerts,...d.alerts],s=d.metadata.next,a.metadata.next=s}while(null!==s)return{...a,alerts:(0,n.getSortedAlerts)(a.alerts)}}async function c({countryCode:e,language:t="en-US"}){let a={metadata:{next:null},alerts:[]},s=null;do{let n=(0,i.urlFrom)({...(0,r.getSunWeatherAlertHeadlinesUrlConfig)({countryCode:e,language:t}),query:{...(0,r.getSunWeatherAlertHeadlinesUrlConfig)({countryCode:e,language:t}).query,...s?{next:s.toString()}:{}}}),o=await fetch(n,{headers:{"Accept-Encoding":"gzip"},cache:"no-store",next:{revalidate:0}}),d=await (0,l.handleFetchResponse)(o);a.alerts=[...a.alerts,...d.alerts],s=d.metadata.next,a.metadata.next=s}while(null!==s)return{...a,alerts:(0,n.getSortedAlerts)(a.alerts)}}async function u({areaId:e,language:t="en-US"}){let a=(0,i.urlFrom)((0,r.getSunWeatherAlertHeadlinesUrlConfig)({areaId:e,language:t})),s=await fetch(a,{headers:{"Accept-Encoding":"gzip"},cache:"no-store",next:{revalidate:0}}),o=await (0,l.handleFetchResponse)(s);return{...o,alerts:(0,n.getSortedAlerts)(o.alerts)}}async function m({areaId:e,language:t="en-US"}){let a={metadata:{next:null},alerts:[]},s=null;do{let n=(0,i.urlFrom)({...(0,r.getSunWeatherAlertHeadlinesUrlConfig)({areaId:e,language:t}),query:{...(0,r.getSunWeatherAlertHeadlinesUrlConfig)({areaId:e,language:t}).query,...s?{next:s.toString()}:{}}}),o=await fetch(n,{headers:{"Accept-Encoding":"gzip"},cache:"no-store",next:{revalidate:0}}),d=await (0,l.handleFetchResponse)(o);a.alerts=[...a.alerts,...d.alerts],s=d.metadata.next,a.metadata.next=s}while(null!==s)return{...a,alerts:(0,n.getSortedAlerts)(a.alerts)}}async function h({adminDistrictCode:e,language:t="en-US"}){let a=(0,i.urlFrom)((0,r.getSunWeatherAlertHeadlinesUrlConfig)({adminDistrictCode:e,language:t})),s=await fetch(a,{headers:{"Accept-Encoding":"gzip"},cache:"no-store",next:{revalidate:0}}),o=await (0,l.handleFetchResponse)(s);return{...o,alerts:(0,n.getSortedAlerts)(o.alerts)}}async function p({adminDistrictCode:e,language:t="en-US"}){let a={metadata:{next:null},alerts:[]},s=null;do{let n=(0,i.urlFrom)({...(0,r.getSunWeatherAlertHeadlinesUrlConfig)({adminDistrictCode:e,language:t}),query:{...(0,r.getSunWeatherAlertHeadlinesUrlConfig)({adminDistrictCode:e,language:t}).query,...s?{next:s.toString()}:{}}}),o=await fetch(n,{headers:{"Accept-Encoding":"gzip"},cache:"no-store",next:{revalidate:0}}),d=await (0,l.handleFetchResponse)(o);a.alerts=[...a.alerts,...d.alerts],s=d.metadata.next,a.metadata.next=s}while(null!==s)return{...a,alerts:(0,n.getSortedAlerts)(a.alerts)}}},110617,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getAlertDetailsPath=void 0,a.getAlertDetailsPath=({phenomena:e,significance:t,areaId:a,officeCode:r,eventTrackingNumber:i,locId:l})=>{let n=`/weather/alerts/localalerts/l/${l}`;return`${n}?phenomena=${e}&significance=${t}&areaid=${a}&office=${r}&etn=${i}`}},899507,713602,721395,955377,331163,324079,166812,249115,546505,952693,636791,67538,284251,411325,896325,23123,e=>{"use strict";function t(e){return null==e}e.s(["isNil",()=>t],899507);var a=e.i(297647),r=e.i(477716),i=e.i(747961);let l=(0,r.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...l},n)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":t,"aria-describedby":i,...l,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,a.jsx)("title",{id:t,children:"humidity"}):e?(0,a.jsx)("title",{id:t,children:e}):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"})]})]})),n=r.default.forwardRef((e,t)=>(0,a.jsx)(i.BaseIcon,{ref:t,icon:l,...e}));n.displayName="Humidity",e.s(["Humidity",0,n],713602);let s=(0,r.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...l},n)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":t,"aria-describedby":i,...l,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,a.jsx)("title",{id:t,children:"pressure"}):e?(0,a.jsx)("title",{id:t,children:e}):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"})]})),o=r.default.forwardRef((e,t)=>(0,a.jsx)(i.BaseIcon,{ref:t,icon:s,...e}));o.displayName="Pressure",e.s(["Pressure",0,o],721395);let d=(0,r.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...l},n)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":t,"aria-describedby":i,...l,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,a.jsx)("title",{id:t,children:"Uv Index"}):e?(0,a.jsx)("title",{id:t,children:e}):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"})]})),c=r.default.forwardRef((e,t)=>(0,a.jsx)(i.BaseIcon,{ref:t,icon:d,...e}));c.displayName="UvIndex",e.s(["UvIndex",0,c],955377);let u=(0,r.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...l},n)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":t,"aria-describedby":i,...l,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,a.jsx)("title",{id:t,children:"Dew Point"}):e?(0,a.jsx)("title",{id:t,children:e}):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"})})]})),m=r.default.forwardRef((e,t)=>(0,a.jsx)(i.BaseIcon,{ref:t,icon:u,...e}));m.displayName="DewPoint",e.s(["DewPoint",0,m],331163);let h=(0,r.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...l},n)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":t,"aria-describedby":i,...l,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,a.jsx)("title",{id:t,children:"Sunrise"}):e?(0,a.jsx)("title",{id:t,children:e}):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"})})]})),p=r.default.forwardRef((e,t)=>(0,a.jsx)(i.BaseIcon,{ref:t,icon:h,...e}));p.displayName="Sunrise",e.s(["Sunrise",0,p],324079);let f=(0,r.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...l},n)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":t,"aria-describedby":i,...l,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,a.jsx)("title",{id:t,children:"Sunset"}):e?(0,a.jsx)("title",{id:t,children:e}):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"})})]})),x=r.default.forwardRef((e,t)=>(0,a.jsx)(i.BaseIcon,{ref:t,icon:f,...e}));x.displayName="Sunset",e.s(["Sunset",0,x],166812);var g=e.i(796424);e.s(["dateInGMTTimezone",0,e=>e?(0,g.getNormalizedDateString)(e).replace(/([+-]\d{2}:?\d{2})$/,"+0000"):""],249115);var v=e.i(632137);let y=(0,r.memo)(({value:e,className:t,roundValue:r})=>{let i=r?e%5>=2.5?5*parseInt(String(e/5),10)+5:5*parseInt(String(e/5),10):e;return(0,a.jsx)("span",{"data-testid":"PercentageValue",className:(0,v.cn)(t),children:Number.isFinite(i)&&i>=0?`${i}%`:"--"})});e.s(["Percentage",0,y],546505);let b=(0,r.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...l},n)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":t,"aria-describedby":i,...l,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,a.jsx)("title",{id:t,children:"Arrow Up"}):e?(0,a.jsx)("title",{id:t,children:e}):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"})]})),w=r.default.forwardRef((e,t)=>(0,a.jsx)(i.BaseIcon,{ref:t,icon:b,...e}));w.displayName="ArrowUp",e.s(["ArrowUp",0,w],952693);var j=e.i(763635),C=e.i(617874);let N=({pressureTendencyCode:e,iconClassName:t})=>1===e?(0,a.jsx)(w,{"data-testid":"PressureRisingIcon",className:(0,v.cn)("mr-1 inline-block h-4 w-4",t),"aria-label":"Pressure rising"}):2===e?(0,a.jsx)(j.ArrowDown,{"data-testid":"PressureFallingIcon",className:(0,v.cn)("mr-1 inline-block h-4 w-4",t),"aria-label":"Pressure falling"}):null;e.s(["Pressure",0,({className:e,unitsClassName:t,pressureAltimeter:r,pressureMeanSeaLevel:i,pressureTendencyCode:l,units:n,iconClassName:s})=>{let o,d=n?(0,C.unitsSystemByCode)(n):null,c=d?.pressure,u=(o=r&&r>0||i&&i>0?r||i:null)?"e"===n?o.toFixed(2):o.toFixed(1):null;return(0,a.jsx)("span",{"data-testid":"PressureValue",className:(0,v.cn)("inline-flex items-center",e),children:u?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(N,{pressureTendencyCode:l,iconClassName:s}),(0,a.jsx)("span",{children:u})," ",(0,a.jsx)("span",{className:(0,v.cn)(t),children:c})]}):"--"})}],636791),e.s(["Visibility",0,({className:e,units:t,visibility:r,unitsClassName:i})=>{let l=t?(0,C.unitsSystemByCode)(t):null,n=l?.distance,s="";return s=0===r?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:"0"}),(0,a.jsxs)("span",{className:(0,v.cn)(i),children:[" ",n]})]}):!r||r10||"m"===t&&r>16?"Unlimited":(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:r}),(0,a.jsxs)("span",{className:(0,v.cn)(i),children:[" ",n]})]}),(0,a.jsx)("span",{"data-testid":"VisibilityValue",className:(0,v.cn)(e),children:s})}],67538);var T=e.i(352194);e.s(["UVIndex",0,({uvIndex:e,uvDescription:t,className:r,descriptionClassName:i})=>{let l,n=(0,T.useTranslations)("DetailsTable");return l=!Number.isFinite(e)||e10?n("extreme"):t?e:l=n("uvIndexVal",{val:e,maxVal:11}),(0,a.jsxs)("span",{"data-testid":"UVIndexValue",className:(0,v.cn)(r),children:[l,t&&e{let l,n=!t(e)&&!Number.isNaN(e),s=!t(r)&&""!==r.trim();return l=n&&s?`${e} - ${r}`:n?`${e}`:s?r:"--",(0,a.jsx)("span",{"data-testid":"AirQualityValue",className:i,children:l})});e.s(["AirQuality",0,I],411325);let S=(0,r.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...l},n)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":t,"aria-describedby":i,...l,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,a.jsx)("title",{id:t,children:"First Quarter"}):e?(0,a.jsx)("title",{id:t,children:e}):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"})]})),A=r.default.forwardRef((e,t)=>(0,a.jsx)(i.BaseIcon,{ref:t,icon:S,...e}));A.displayName="FirstQuarter";let M=(0,r.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...l},n)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":t,"aria-describedby":i,...l,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,a.jsx)("title",{id:t,children:"Full Moon"}):e?(0,a.jsx)("title",{id:t,children:e}):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"})]})),_=r.default.forwardRef((e,t)=>(0,a.jsx)(i.BaseIcon,{ref:t,icon:M,...e}));_.displayName="FullMoon";let k=(0,r.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...l},n)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":t,"aria-describedby":i,...l,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,a.jsx)("title",{id:t,children:"Last Quarter"}):e?(0,a.jsx)("title",{id:t,children:e}):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"})]})),R=r.default.forwardRef((e,t)=>(0,a.jsx)(i.BaseIcon,{ref:t,icon:k,...e}));R.displayName="LastQuarter";let P=(0,r.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...l},n)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":t,"aria-describedby":i,...l,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,a.jsx)("title",{id:t,children:"New Moon"}):e?(0,a.jsx)("title",{id:t,children:e}):null,(0,a.jsx)("circle",{cx:8,cy:7.613,r:6.4,fill:"currentColor"})]})),L=r.default.forwardRef((e,t)=>(0,a.jsx)(i.BaseIcon,{ref:t,icon:P,...e}));L.displayName="NewMoon";let E=(0,r.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...l},n)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":t,"aria-describedby":i,...l,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,a.jsx)("title",{id:t,children:"Waning Crescent"}):e?(0,a.jsx)("title",{id:t,children:e}):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"})]})),D=r.default.forwardRef((e,t)=>(0,a.jsx)(i.BaseIcon,{ref:t,icon:E,...e}));D.displayName="WaningCrescent";let F=(0,r.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...l},n)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":t,"aria-describedby":i,...l,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,a.jsx)("title",{id:t,children:"Waning Gibbous"}):e?(0,a.jsx)("title",{id:t,children:e}):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"})]})),B=r.default.forwardRef((e,t)=>(0,a.jsx)(i.BaseIcon,{ref:t,icon:F,...e}));B.displayName="WaningGibbous";let H=(0,r.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...l},n)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":t,"aria-describedby":i,...l,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,a.jsx)("title",{id:t,children:"Waxing Crescent"}):e?(0,a.jsx)("title",{id:t,children:e}):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"})]})),O=r.default.forwardRef((e,t)=>(0,a.jsx)(i.BaseIcon,{ref:t,icon:H,...e}));O.displayName="WaxingCrescent";let U=(0,r.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...l},n)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":t,"aria-describedby":i,...l,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,a.jsx)("title",{id:t,children:"Waxing Gibbous"}):e?(0,a.jsx)("title",{id:t,children:e}):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"})]})),V=r.default.forwardRef((e,t)=>(0,a.jsx)(i.BaseIcon,{ref:t,icon:U,...e}));V.displayName="WaxingGibbous";var z=e.i(358025);let W={[z.MoonPhaseCode.NEW]:L,[z.MoonPhaseCode.WAXING_CRESCENT]:O,[z.MoonPhaseCode.FIRST_QUARTER]:A,[z.MoonPhaseCode.WAXING_GIBBOUS]:V,[z.MoonPhaseCode.FULL]:_,[z.MoonPhaseCode.WANING_GIBBOUS]:B,[z.MoonPhaseCode.LAST_QUARTER]:R,[z.MoonPhaseCode.WANING_CRESCENT]:D};e.s(["MoonIcon",0,({moonPhaseCode:e,...t})=>{let r=(e&&W[e])??L;return(0,a.jsx)(r,{...t})}],896325);var $=e.i(402625),G=e.i(877957),q=e.i(240058),Q=e.i(368847),Z=e.i(472737),K=e.i(381477),Y=e.i(375570),X=e.i(691307),J=e.i(110617),ee=e.i(742740),et=e.i(527428),ea=e.i(928410);let er={1:{containerClasses:"bg-black/60",iconClasses:"text-white",textClasses:"text-white",buttonClasses:"bg-white/10 text-white hover:bg-white/20",buttonBorderClasses:"outline outline-1 outline-white"},2:{containerClasses:"bg-black/60",iconClasses:"text-black",textClasses:"text-white",buttonClasses:"bg-black/10 text-white hover:bg-black/20"},3:{containerClasses:"bg-black/60",iconClasses:"text-black",textClasses:"text-white",buttonClasses:"bg-black/10 text-white hover:bg-black/20"},4:{containerClasses:"bg-black/60",iconClasses:"text-white",textClasses:"text-white",buttonClasses:"bg-white/10 text-white hover:bg-white/20"},severe:{containerClasses:"bg-black/60",iconClasses:"text-white",textClasses:"text-white",buttonClasses:"bg-white/10 text-white hover:bg-white/20",buttonBorderClasses:"outline outline-1 outline-white"}};var ei=e.i(506424);let el=({date:e,locale:t="en-US",timeZone:a})=>{if(!e)return null;let{cDate:r,cTimeZone:i}=(0,ei.getCompatibleValues)({date:e,locale:t,timeZone:a});return new Intl.DateTimeFormat(t,{weekday:"long",timeZone:i}).format(r)};e.s(["AlertHeadlines",0,({location:e,className:t,headlineClassName:i,showSubheadline:l=!0,initializing:n=!1,initialError:s})=>{let{effectiveLocation:o,isLocationLoading:d}=(0,Z.useLocationSource)({location:e}),{primaryAlert:c,error:u,isLoading:m,alertStyles:h,alertUrl:p,subheadlineData:f,additionalAlertsCount:x}=(({location:e,showSubheadline:t=!1})=>{let a=(0,Y.useParams)(),i=a?.locale,l=(0,T.useTranslations)("AlertHeadlines"),{data:n,error:s,isLoading:o}=(0,K.default)(e?.geocode?["alerts",e.geocode,i]:null,([e,t,a])=>(0,X.getWeatherAlertHeadlines)({geocode:t,language:a}),{revalidateOnFocus:!1,dedupingInterval:6e4}),d=n?.alerts&&n.alerts.length>0?n.alerts[0]:null,c=(0,r.useMemo)(()=>{var e;let t;return d?(e={productIdentifier:d.productIdentifier,phenomena:d.phenomena,significance:d.significance},t=(0,et.getAlertLevel)(e),er[(0,ea.isAlertSevere)(e)?"severe":t]||er[4]):null},[d]),u=(0,r.useMemo)(()=>d&&e?(0,J.getAlertDetailsPath)({phenomena:d.phenomena,significance:d.significance,areaId:d.areaId,officeCode:d.officeCode,eventTrackingNumber:d.eventTrackingNumber,locId:e.placeId||""}):null,[d,e]),m=(0,r.useMemo)(()=>{if(!t||!d)return null;let e=(({effectiveTimeLocal:e,endTimeLocal:t})=>{let a="";switch(!0){case!!(e&&t):a="subheadlineTextWithStartAndEndTime";break;case!!(!e&&t):a="subheadlineTextWithoutStartTime";break;case!!(e&&!t):a="subheadlineTextWithoutEndTime";break;default:return""}return a})({effectiveTimeLocal:d.effectiveTimeLocal,endTimeLocal:d.endTimeLocal}),a=d.effectiveTimeLocalTimeZone||d.endTimeLocalTimeZone||"";return{text:l(e,{...d?.effectiveTimeLocal&&{startTime:(0,ee.formatHourlyDate)({date:d.effectiveTimeLocal,weekday:"short",locale:i,timeZone:d.ianaTimeZone,minutes:!0})},...d?.endTimeLocal&&{endTime:(({effectiveTimeLocal:e,endTimeLocal:t,locale:a,ianaTimeZone:r})=>{let i=el({date:e,locale:a,timeZone:r}),l=el({date:t,locale:a,timeZone:r});return(0,ee.formatHourlyDate)({date:t,locale:a,weekday:i!==l&&"short"||void 0,timeZone:r,minutes:!0})})({effectiveTimeLocal:d.effectiveTimeLocal||"",endTimeLocal:d.endTimeLocal||"",locale:i,ianaTimeZone:d.ianaTimeZone||""})},timeZone:a})}},[t,d,i,l]),h=(0,r.useMemo)(()=>!n?.alerts||n.alerts.length0&&(0,a.jsxs)(G.Button,{variant:"outline",size:"sm",className:(0,v.cn)("flex h-6 items-center justify-center rounded-xs border-0 px-2 py-2 text-xs",h.buttonClasses,h.buttonBorderClasses),"aria-label":`View ${x} more alert${1!==x?"s":""}`,children:["+",x," MORE"]})]})}],23123)},116326,e=>{"use strict";var t=e.i(297647),a=e.i(381477),r=e.i(472737),i=e.i(889951),l=e.i(738634),n=e.i(349262),s=e.i(16838),o=e.i(475566),d=e.i(674885),c=e.i(5397),u=e.i(617874),m=e.i(375570),h=e.i(477716),p=e.i(911927),f=e.i(228071),x=e.i(467741),g=e.i(980108),v=e.i(352194),y=e.i(368847),b=e.i(380993),w=e.i(245308),j=e.i(331163),C=e.i(713602),N=e.i(747961);let T=(0,h.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.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,t.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"})]})),I=h.default.forwardRef((e,a)=>(0,t.jsx)(N.BaseIcon,{ref:a,icon:T,...e}));I.displayName="AirQuality";var S=e.i(955105),A=e.i(721395),M=e.i(955377),_=e.i(324079),k=e.i(166812),R=e.i(548888),P=e.i(546505),L=e.i(411325),E=e.i(636791),D=e.i(180193),F=e.i(284251),B=e.i(67538),H=e.i(742740),O=e.i(249115);let U=({sunLocalTime:e,locale:a})=>(0,t.jsx)("span",{children:e?(0,H.formatHourlyDate)({date:(0,O.dateInGMTTimezone)(e),timeZone:"Etc/GMT",locale:a,minutes:!0}):"--"});var V=e.i(896325);let z={temperatureMax:-1,temperatureMin:-1,windSpeed:-1,windDirection:-1,windDirectionCardinal:n.WindDirectionCardinal.NORTH_NORTHEAST,relativeHumidity:-1,temperatureDewPoint:-1,pressureAltimeter:-1,pressureTendencyCode:n.PressureTendencyCode.STEADY,uvIndex:-1,visibility:-1},W=({currentDetails:e,isLoading:a})=>{let r=(0,v.useTranslations)("CurrentDetails"),i=(0,v.useTranslations)("DetailsTable"),l=(0,m.useParams)(),n=l?.locale,s=(0,o.useAtomValue)(d.userUnitPreferenceAtom),c=(0,u.unitsSystemByName)(s)?.code,p=(0,h.useMemo)(()=>(({data:e,t:a,unitCode:r,locale:i})=>[{Icon:S.Wind,label:a("wind"),content:(0,t.jsx)(R.Wind,{windSpeed:e.windSpeed,units:r,windDirection:e.windDirection,windDirectionCardinal:e.windDirectionCardinal,displayMode:"directionalAndCardinal"})},{Icon:C.Humidity,label:a("humidity"),content:(0,t.jsx)(P.Percentage,{value:e.relativeHumidity})},{Icon:I,label:a("airQuality"),content:(0,t.jsx)(L.AirQuality,{airQualityIndex:e.airQualityIndex,airQualityCategory:e.airQualityCategory})},{Icon:j.DewPoint,label:a("dewPoint"),content:(0,t.jsx)(D.Temperature,{value:e.temperatureDewPoint})},{Icon:A.Pressure,label:a("pressure"),content:(0,t.jsx)(E.Pressure,{pressureAltimeter:e.pressureAltimeter,pressureTendencyCode:e.pressureTendencyCode,units:r})},{Icon:M.UvIndex,label:a("uvIndex"),content:(0,t.jsx)(F.UVIndex,{uvIndex:e.uvIndex})},{Icon:w.View,label:a("visibility"),content:(0,t.jsx)(B.Visibility,{visibility:e.visibility,units:r})},{Icon:a=>(0,t.jsx)(V.MoonIcon,{...a,moonPhaseCode:e.moonPhaseCode}),label:a("moonPhase"),content:e.moonPhase},{Icon:_.Sunrise,label:a("sunrise"),content:(0,t.jsx)(U,{sunLocalTime:e.sunriseTimeLocal,locale:i})},{Icon:k.Sunset,label:a("sunset"),content:(0,t.jsx)(U,{sunLocalTime:e.sunsetTimeLocal,locale:i})}])({data:a||!e?z:e,t:i,unitCode:c,locale:n}),[a,e,i,n,c]),f=(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"grid grid-cols-2 gap-x-8 gap-y-0",children:p.map(({Icon:r,label:i,content:l})=>(0,t.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,t.jsx)(r,{className:"size-4 @md/currentDetails:size-5"}),(0,t.jsx)(y.default,{variant:"Body.M",className:"grow-1 font-normal whitespace-nowrap",children:i}),(0,t.jsx)(y.default,{isLoading:a||!e,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:l})]},i))})});return(0,t.jsx)(b.Card,{"aria-label":r("weatherToday"),radius:"lg",border:"none",variant:"outline",className:"@container/currentDetails mt-4 bg-gray-100","data-testid":"current-details",children:(0,t.jsx)(b.CardContent,{className:"p-0",children:f})})};var $=e.i(632137);let G=({children:e,direction:a="horizontal",height:r,width:i,textVariant:l="Display.L",textColor:n="inverse",translateDistance:s,transitionDuration:o="500ms",className:d,transitionClassName:c,isLoading:u,skeletonClassName:m})=>{let[p,f]=(0,h.useState)(!1);(0,h.useEffect)(()=>{p||u||setTimeout(()=>{f(!0)},0)},[p,u]);let x="horizontal"===a?"translateX":"translateY";return(0,t.jsx)(y.default,{isLoading:u,skeletonClassName:m,elementType:"div",className:(0,$.cn)("w-max overflow-hidden",d),variant:l,color:n,style:{height:r,width:i},children:(0,t.jsx)("span",{className:(0,$.cn)("transform: flex transition-transform",c),style:{transitionDuration:o,flexDirection:"horizontal"===a?"row":"column",transform:p?`${x}(-${s})`:`${x}(0px)`},children:e})})};var q=e.i(316078);let Q="https://s.w-x.co/WeatherImages_Web/WeatherImage_",Z=[320,480,640,800],K=[{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}],Y={"--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 X=e.i(165613);let J=({iconCode:e=44}={})=>{let t=K.find(t=>t?.iconCodes?.includes?.(e)),a=K.find(e=>e?.name==="Unknown");return t||a};var ee=e.i(23123);let et=({location:e,weatherData:a,forecastData:r,isLoading:i,error:l})=>l?(0,t.jsx)(er,{error:l}):(0,t.jsx)(ea,{isLoading:i,location:e,weatherData:a,forecastData:r}),ea=({isLoading:e,location:a,weatherData:r,forecastData:i})=>{let l=function({iconCode:e=44,dayPart:t="day",variant:a=0,width:r=800,isSevere:i=!1}={}){let l={src:function({iconCode:e=44,dayPart:t="day",variant:a=0}={}){let r,i=J({iconCode:e}),l=i?.[`${t}Variants`];if(!l||a>l)return i=J({iconCode:44}),`${Q}${i.name}.jpg`;let n=!!l&&0===a&&Math.floor(Math.random()*(Math.floor(l)-(r=Math.ceil(1))+1)+r),s="";return n?s=`_${n}`:a&&(s=`_${a}`),`${Q}${i.name}-${t}${s}.jpg`}({iconCode:e,dayPart:t,variant:a}),width:(({width:e=320}={})=>Z.reduce((t,a)=>Math.abs(a-e)Y[e].find(e=>l?.includes?.(e)))||"--color-blue-800",s=(0,v.useTranslations)("CurrentConditions");return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(b.Card,{"aria-label":"Current Conditions",radius:"lg",border:e?"lt":"none",variant:"outline",className:"@container bg-cover bg-center bg-no-repeat","data-testid":"current-conditions",style:{backgroundColor:`var(${n})`,backgroundImage:e?"":`url(${l})`},children:(0,t.jsx)(b.CardContent,{children:(0,t.jsx)("div",{className:"relative",children:(0,t.jsxs)("div",{className:"relative z-10 flex h-full flex-col text-white",children:[(0,t.jsxs)("div",{className:"mb-3 flex items-center gap-1",children:[(0,t.jsx)("div",{className:"flex h-16 w-16 items-center justify-center",children:(0,t.jsx)(q.WxIcon,{isLoading:e,loadingIconClassName:"h-16 w-16",iconCode:r?.iconCode||-1,className:"h-16 w-16","aria-label":r?.wxPhraseLong,iconTheme:"lightBG"})}),(0,t.jsxs)(G,{isLoading:e,skeletonClassName:"ml-1 h-16 w-22",direction:"vertical",height:"69px",translateDistance:"207px",children:[(0,t.jsx)("span",{children:s("now")}),(0,t.jsx)(D.Temperature,{value:r?.temperature?r?.temperature+2:null}),(0,t.jsx)(D.Temperature,{value:r?.temperature?r?.temperature+1:null}),(0,t.jsx)(y.default,{variant:"Display.L",color:"inverse",children:(0,t.jsx)(D.Temperature,{value:r?.temperature})})]})]}),(0,t.jsx)(y.default,{isLoading:e,skeletonClassName:"mt-1 h-6 w-30",variant:"Title.M",color:"inverse",children:r?.wxPhraseLong}),(0,t.jsxs)(y.default,{isLoading:e,skeletonClassName:"mt-3 h-6 w-65",variant:"Body.M",color:"inverse",className:"mt-3","data-testid":"current-conditions-temperatures",children:[s("feelsLike")," ",(0,t.jsx)(D.Temperature,{value:r?.temperatureFeelsLike})," ·"," ",s("dayTempLabel")," ",(0,t.jsx)(D.Temperature,{value:i?.temperatureMax})," ·"," ",s("nightTempLabel")," ",(0,t.jsx)(D.Temperature,{value:i?.temperatureMin})]}),(0,t.jsx)(ee.AlertHeadlines,{className:"mt-4",location:a})]})})})})})},er=({error:e})=>(0,t.jsx)("div",{className:"overflow-hidden rounded-lg","data-testid":"current-conditions-error",children:(0,t.jsx)("div",{className:"flex min-h-[150px] flex-col bg-white p-8 text-white",children:(0,t.jsx)("div",{className:"flex flex-grow items-center justify-center",children:(0,t.jsx)(y.default,{variant:"Display.S",children:e?.message||"Unable to load weather data"})})})});var ei=e.i(909232);let el=({location:e})=>{let a=(0,v.useTranslations)("CurrentConditions"),r=(0,ei.useClientMobileMedia)();return(0,t.jsx)(y.default,{isLoading:!e,variant:r?"Title.S":"Title.M",className:"mb-4",skeletonClassName:"mt-2 h-6 w-65",children:a("locationDisplayName",{presentationName:e?.presentationName||""})})},en=({location:e,weatherData:a,forecastData:r,isCurrentConditionsLoading:i,currentConditionsError:l,currentDetails:n,isCurrentDetailsLoading:s})=>(0,t.jsxs)("div",{"aria-label":"CurrentConditionsDetailsView",children:[(0,t.jsx)(el,{location:e}),(0,t.jsx)(et,{location:e,weatherData:a,forecastData:r,isLoading:i,error:l}),(0,t.jsx)(W,{currentDetails:n,isLoading:s})]}),es=({location:e})=>{let{effectiveLocation:v,isLocationLoading:y,locationError:b}=(0,r.useLocationSource)({location:e}),{weatherData:w,forecastData:j,isLoading:C,error:N}=function(e){let t=(0,m.useParams)(),r=t?.locale,s=(0,o.useAtomValue)(d.userUnitPreferenceAtom),c=(0,u.unitsSystemByName)(s)?.code,{data:h,error:p,isLoading:f}=(0,a.default)(e?["observations",e.geocode,c]:null,([e,t,a])=>(0,i.getCurrentObservations)({geocode:t,units:a,language:r}),{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:x,error:g,isLoading:v}=(0,a.default)(e?["daily-forecast",e.geocode,c]:null,([t,a,i])=>e?(0,l.getDailyForecast)({geocode:a,units:i,language:r}):null,{revalidateOnFocus:!1,dedupingInterval:6e4}),y=h?{temperature:h.temperature,temperatureFeelsLike:h.temperatureFeelsLike,wxPhraseLong:h.wxPhraseLong,iconName:n.ICON_CODE_MAP[h.iconCode]||"na",iconCode:h.iconCode,validTimeLocal:h.validTimeLocal,relativeHumidity:h.relativeHumidity,windSpeed:h.windSpeed,windDirectionCardinal:h.windDirectionCardinal,dayOrNight:h.dayOrNight}:void 0,b=x&&x.length>0?{temperatureMax:x[0]?.calendarDayTemperatureMax??0,temperatureMin:x[0]?.calendarDayTemperatureMin??0}:void 0;return{weatherData:y,forecastData:b,isLoading:f||!h||v||!x,error:p||g}}(v),T=C||y,I=N||b,{currentDetails:S,loading:A}=(e=>{let t=(0,o.useAtomValue)(d.userUnitPreferenceAtom),r=(0,u.unitsSystemByName)(t)?.code,s=(0,m.useParams)()?.locale,c=(0,p.useCscCountryCode)(),{data:v,error:y,isLoading:b}=(0,a.default)(e?["get-current-observations",e.geocode,r,s]:null,([e,t,a,r])=>(0,i.getCurrentObservations)({geocode:t,units:a,language:r}),{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:w,error:j,isLoading:C}=(0,a.default)(e?["get-daily-forecast",e.geocode,n.ForecastDuration.THREE_DAY,r,s,"KR"===c?c:void 0]:null,([e,t,a,r,i,n])=>(0,l.getDailyForecast)({geocode:t,units:r,language:i,duration:a,cscCountryCode:n}),{revalidateOnFocus:!1,dedupingInterval:6e4}),N=s?.split?.("-")?.[1]||"US",{data:T,error:I,isLoading:S}=(0,a.default)(e?["getHourlyAirQualityForecast",e.geocode]:null,([t,a])=>e?(0,f.getHourlyAirQualityForecast)({geocode:a,language:s,scale:(0,x.getAirQualityScale)({countryCode:N}),duration:g.AirQualityForecastDuration.TWELVE_HOUR}):null,{revalidateOnFocus:!1,dedupingInterval:6e4}),A=w?.[0];return{currentDetails:(0,h.useMemo)(()=>v&&A&&{...v,temperatureMin:A.temperatureMin,temperatureMax:A.temperatureMax,moonPhase:A.moonPhase,moonPhaseCode:A.moonPhaseCode,airQualityIndex:T?.forecast[0]?.airQualityIndex,airQualityCategory:T?.forecast[0]?.airQualityCategory??""},[v,A,T]),loading:b||C||S,error:y||j||I}})(v),M=y||A||!S||!v,_=(0,o.useAtomValue)(c.showAdminHeaderAtom);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.DebugCollector,{componentName:"CurrentConditionsDetails",data:{props:{location:e},state:{effectiveLocation:v,isLocationLoading:y,isCurrentConditionsLoading:T,weatherData:w,forecastData:j,currentConditionsError:I,componentState:I&&"error"||T&&"loading"||"ready"},performance:{renderCount:void 0}},enabled:_}),(0,t.jsx)(en,{location:v,isCurrentConditionsLoading:T,currentConditionsError:I,weatherData:w,forecastData:j,isCurrentDetailsLoading:M,currentDetails:S})]})};var eo=e.i(754500),ed=e.i(710402),ec=e.i(310847);e.s(["CurrentConditionsBlock",0,({locationProvider:e,locationEntry:a})=>{let r="specified"===e,{specifiedLocationData:i,specifiedLocationError:l,isSpecifiedLocationLoading:n}=(0,eo.useSpecifiedLocation)(r?a:null),s=(0,o.useAtomValue)(ec.wxuUserRecentAddressesAtom);return r&&n?(0,t.jsx)("div",{children:"Loading location data..."}):r&&l?(0,t.jsxs)("div",{children:["Error loading location data: ",l.message]}):r&&i&&a?(0,t.jsx)(es,{location:(0,ed.fromLocationPoint)(i,s)}):r?null:(0,t.jsx)(es,{})},"default",0,es],116326)},782328,e=>{"use strict";var t=e.i(297647),a=e.i(710402),r=e.i(754500);let i=()=>null;var l=e.i(475566),n=e.i(310847);let s=({locationProvider:e,locationEntry:s})=>{let o="specified"===e,{specifiedLocationData:d,specifiedLocationError:c,isSpecifiedLocationLoading:u}=(0,r.useSpecifiedLocation)(o?s:null),m=(0,l.useAtomValue)(n.wxuUserRecentAddressesAtom),h=o&&d&&s?(0,a.fromLocationPoint)(d,m):void 0;return(0,t.jsx)(i,{location:h,initializing:o&&u,initialError:o?c:void 0})};e.s(["CurrentDetailsBlock",0,s,"default",0,s],782328)},650561,e=>{"use strict";var t=e.i(297647),a=e.i(632137);function r({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card",className:(0,a.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl py-6",e),...r})}function i({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,a.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",e),...r})}function l({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-6",e),...r})}e.s(["Card",()=>r,"CardContent",()=>l,"CardHeader",()=>i])},385277,307215,e=>{"use strict";var t=e.i(477716),a=e.i(251392),r=e.i(333350);e.s(["useClientContainerSize",0,e=>{let i=(0,t.useRef)(null),[l,n]=(0,t.useState)(r.default?e(window.innerWidth,window.innerHeight):null),s=(0,t.useRef)(!1),o=(0,a.useRefMemo)(e);return(0,t.useEffect)(()=>{let e=i.current;if(!e||"u"{window.requestAnimationFrame(()=>{for(let t of e){let{right:e,left:a,top:r,bottom:i}=t.contentRect,l=e+a,d=r+i,c=o.current(l,d);s.current=!0,n(c)}})});return t.observe(e),()=>{t.disconnect()}},[i,o]),[l,i,s.current]}],385277),e.s(["containerSizes",0,{"@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}],307215)},761243,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getContentByAssetId=l;let r=e.r(678651),i=e.r(414655);async function l(e,t="en-US"){let a=(0,r.urlFrom)({host:"weather.com",protocol:"https",pathname:"/api/payload/v1/content/query",query:{assetId:e}}),n=await fetch(a,{headers:{"Accept-Encoding":"gzip","Accept-Language":t},next:{revalidate:300,tags:[`content-by-asset-${e}`]}});return await (0,i.handleFetchResponse)(n)||[]}},506371,e=>{e.v({jwplayerContainer:"JWPlayer-module-scss-module__bzwBeG__jwplayerContainer"})},777430,484758,617843,33078,e=>{"use strict";var t=e.i(297647),a=e.i(477716),r=e.i(632137),i=e.i(241722);let l={autoplayadsmuted:!1,client:"googima",vpaidcontrols:!0};var n=e.i(695881),s=e.i(506371),o=e.i(37429);let d=(0,n.createLogger)("JWPlayer");e.s(["JWPlayer",0,({playlist:e,options:n={},setupParams:c={},events:u=[],className:m="",placeHolder:h})=>{let p=`player-${(0,a.useId)()}`,{playerId:f="IdNDrRWQ"}=c,x=(0,a.useMemo)(()=>({playlist:e,...(e=>{let{ads:t=!0,showDescriptions:a=!0}=e;return{aspectratio:"16:9",autostart:!0,backgroundLoading:!0,width:"100%",mute:!1,autoPause:{pauseAds:!0,viewability:!0},captions:{backgroundOpacity:50,fontSize:14},...t?{advertising:l}:{},...a?{displaytitle:!0,displaydescription:!0}:{displaytitle:!1,displaydescription:!1}}})({...c}),...n,floating:{dismissible:!0}}),[e,c,n]),g=(0,a.useRef)(null),v=(0,a.useRef)(!1),y=e?.[0]?.file,[b,w]=(0,a.useState)(y?"loading":"error");(0,a.useEffect)(()=>{if(v.current||!("jwplayer"in window)||"ready"!==b||!y)return;let e=window.jwplayer(p);g.current=e,v.current=!0,d.info("initialized player"),e.setup(x),u.forEach(({eventName:t,callback:a})=>{e.on(t,t=>{a({event:t,player:e})}),d.lifecycle(`Registered event handler for ${t}`)})},[x,u,y,p,b]),(0,a.useEffect)(()=>()=>{if(g.current)try{g.current.remove(),g.current=null,v.current=!1}catch(e){d.error("Error removing JW Player",e)}},[]);let j=h?e?.[0]?.image:"";return(0,t.jsxs)("div",{children:[y&&(0,t.jsx)(i.default,{src:`https://cdn.jwplayer.com/libraries/${f}.js`,onLoad:()=>w("ready"),onReady:()=>w("ready"),onError:()=>w("error")}),(0,t.jsxs)("div",{className:(0,r.cn)("relative overflow-hidden",s.default.jwplayerContainer,m),children:[j&&(0,t.jsx)(o.default,{fetchPriority:"high",className:"absolute aspect-video w-full",src:j,alt:""}),"loading"===b&&y?(0,t.jsx)("div",{className:"flex aspect-video w-full items-center justify-center bg-black",children:(0,t.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-t-2 border-b-2 border-white"})}):"error"===b?(0,t.jsx)("div",{className:"flex aspect-video w-full items-center justify-center bg-black text-white",children:"Failed to initialize video player"}):(0,t.jsx)("div",{id:p,className:"aspect-video w-full bg-black"})]})]})}],777430);let c=(0,n.createLogger)("AdUtils"),u=async({player:e,user:t,ctx:a={},isMobile:r=!1})=>{if(!e)return;if(t?.isUserPremium)return void e.play();let i=await m(a,r);i?e.playAd(i):e.play()},m=async(e,t=!1)=>{let a;if(!x())return null;let r=p(e,t),i=h({},e.iab);window.__Helios.emit("UPDATE_AD_UNIT_PATH",r);try{window.__Helios.modules?.iabc?.update?.({page:i,site:{v1:["IAB15-10_Weather"],v3:["390_Weather"]}})}catch(e){c.error("Error updating IABC parameters",e)}try{a=await f()}catch(e){a=null,c.error("Error getting ad tag",e)}return window.__Helios.emit("UPDATE_AD_UNIT_PATH",r),a},h=(e,t)=>{let a={...e};for(let e in t)Array.isArray(t[e])?(a[e]=[...a[e]||[],...t[e]],a[e]=[...new Set(a[e])]):"object"==typeof t[e]&&null!==t[e]?a[e]=h(a[e]||{},t[e]):a[e]=t[e];return a},p=(e,t)=>{let a=window?.__HeliosConfig?.generalConfig,r=a?.targeting?.networkCode??"/7646",i=a?.targeting?.adUnits??(t?"mobile_smart_us":"web_weather_us"),l=e.collectionAdZone||e.adzone||"video";return`${r}/${i}/${l}`},f=async()=>{let e=[];try{e=await window?.__Helios.video.requestVideoBids()}catch(e){c.error("Error getting video bids",e)}return await window.__Helios.modules.videoTag.createAdTag(e)},x=()=>{try{return"function"==typeof window.__Helios?.video?.requestVideoBids&&"function"==typeof window.__Helios?.modules?.videoTag?.createAdTag}catch{return!1}},g=e=>{let{collectionId:t,videoIndex:a,videoId:r}=e||{};return{videoCount:a,videoId:r,collectionId:t}},v=e=>"GDFP"===e||"AdSense/AdX"===e;var y=e.i(694914);let b=(0,n.createLogger)("NewRelic");function w(e,t={}){try{window?.NREUM?.addPageAction?.(e,{...j(t,"meta.")})}catch(e){b.error("New Relic: sendReumEvent error",e instanceof Error?e.message:String(e))}}y.default.env.NEW_RELIC_RUM_ACCOUNT_ID,y.default.env.NEW_RELIC_RUM_APP_ID,y.default.env.NEW_RELIC_RUM_LICENSE_KEY;let j=(e,t="")=>Object.fromEntries(Object.entries(e).map(([e,a])=>[`${t}${e}`,a])),C=(0,n.createLogger)("AdEvents"),N=new Set(["amznbid","crt_pb","hb_pb"]),T=[{eventName:"ready",callback:({event:e})=>{w("videoReady",{isViewable:!!e.viewable,setupTime:e.setupTime})}},{eventName:"beforePlay",callback:async({event:e,player:t,isFirstPlayRef:a,user:r,isMobile:i})=>{if(!a?.current)return;let l=t.getPlaylistItem(),n=l?.custom?.ctx;n&&(n.videoIndex=t.getPlaylistIndex()),w("videoBeforePlay",{...g(n),isViewable:!!e.viewable,playReason:e.playReason}),t.stop(),await u({player:t,user:r,ctx:n,isMobile:i}),a.current=!1}},{eventName:"adRequest",callback:({event:e,player:t})=>{let a=t.getPlaylistItem(),r=a?.custom?.ctx,i={},l=g(r);try{var n;let t=((e,t="https")=>e.replace(/^\/\//,`${t}://`))(e.tag||""),a=(n=new URL(t).searchParams.get("cust_params"))?n.split("&").reduce((e,t)=>{let[a,r]=t.split("=");return a&&r&&(e[a]||(e[a]=[]),e[a].push(r)),e},{}):{};for(let e of Object.keys(a))N.has(e)&&(i[`kv_${e}`]=`${a[e]}`)}catch(e){C.error("Error parsing cust_params",e)}w("videoAdRequest",{...l,isViewable:!!e.viewable,roll:e.adposition,...i})}},{eventName:"adStarted",callback:({event:e,player:t})=>{let a=t.getPlaylistItem(),r=a?.custom?.ctx,{duration:i,adposition:l}=e,n=g(r),s="";try{let t=e.ima?.ad?.data;t&&(s=(e=>{let{adSystem:t,adId:a,adWrapperSystems:r,adWrapperIds:i}={adSystem:"",adId:"",adWrapperSystems:[],adWrapperIds:[],...e};if(v(t))return a;let l=r.findIndex(v);return l>=0&&l{let a=t.getPlaylistItem();w("videoStart",{...g(a?.custom?.ctx),isViewable:!!e.viewable,loadTime:e.loadTime})}},{eventName:"complete",callback:({player:e})=>{let t=e.getPlaylistItem();w("videoComplete",{...g(t?.custom?.ctx)})}},{eventName:"adSkipped",callback:({player:e})=>{let t=e.getPlaylistItem();w("videoAdSkip",{...g(t?.custom?.ctx)})}},{eventName:"playlistItem",callback:async({event:e,player:t,isFirstPlayRef:a,user:r,isMobile:i})=>{if(a?.current)return;let{item:l}=e,n=l?.custom?.ctx;n.videoIndex=t.getPlaylistIndex(),t.stop(),await u({player:t,user:r,ctx:n,isMobile:i})}},{eventName:"adComplete",callback:async({player:e})=>{e.play()}},{eventName:"adError",callback:async({event:e,player:t})=>{let a=t.getPlaylistItem();w("videoAdError",{...g(a?.custom?.ctx),message:e.message,code:e.code,vastCode:e.vastCode,roll:e.adposition}),C.error("Ad error occurred",e),t.play()}},{eventName:"error",callback:async({event:e,player:t})=>{let a=t.getPlaylistItem();w("videoError",{...g(a?.custom?.ctx),message:e.message,code:e.code}),C.error("Video Player error",e)}},{eventName:"setupError",callback:({event:e})=>{w("videoSetupError",{message:e.message,code:e.code})}}];e.s(["adEvents",0,T],484758);var I=e.i(959194),S=e.i(896363);let A="",M="",_=1,k=0,R=0,P=0,L=0,E=!1,D=0,F={adImpression:!1,videoAttempt:!1,videoStarted:!1,videoCompleted:!1},B={autostart:"auto",interaction:"click",external:"externalLink",playlist:"playlistClick","related-interaction":"nextClick","related-auto":"auto"};function H(e){return B[e]??"click"}function O(e){let t=e.split(":").map(Number);if(2===t.length){let[e=0,a=0]=t,r=Math.floor(60*e+a);return isNaN(r)?0:r}if(3===t.length){let[e=0,a=0,r=0]=t,i=Math.floor(3600*e+60*a+r);return isNaN(i)?0:i}return 0}function U(){Object.keys(F).map(e=>{F[e]=!1}),k=0,R=0,M=""}function V(e,t){let a=t||e.getPlaylistItem();return{adBlock:e.getAdBlock(),adsMetricsUnitAndZone:a?.custom?.ctx?.adzone,aspectRatio:e?.getConfig()?.aspectratio,assetName:(0,I.stripLastPartOfSlug)(a?.custom?.ctx?.assetName??""),collection:a?.custom?.ctx?.pcollid,collectionId:a?.custom?.ctx?.pcollid,contentId:a?.custom?.ctx?.id,entitlements:(0,S.parseArrayToString)(a?.custom?.ctx?.entitlements??[]),iabContent:(0,I.mapIabTagsToIabContent)(a?.custom?.ctx?.iab||{}),id:a?.custom?.ctx?.id,duration:a?.custom?.ctx?.duration,lastmodifieddate:a?.custom?.ctx?.lastmodifieddate?.toString(),muted:e.getMute(),premiumContent:a?.custom?.ctx?.premium,publishdate:a?.custom?.ctx?.publishdate?.toString(),providerName:a?.custom?.ctx?.providername,tagsGeo:(0,S.parseArrayToString)(a?.custom?.ctx?.tagsGeo),tagsKeyword:(0,S.parseArrayToString)(a?.custom?.ctx?.tagsKeyword),tagsStorm:(0,S.parseArrayToString)(a?.custom?.ctx?.tagsStorm)}}let z=[{eventName:"ready",callback:({player:e,trackVideoEvent:t})=>{window.addEventListener("beforeunload",()=>{if(F.videoStarted&&!F.videoCompleted){let a=e.getPlaylistItem(),r=O(a?.custom?.ctx?.duration),i=a?.custom?.ctx?.aspectRatio;a&&!F.videoAttempt&&t&&t({eventName:"video-ended",eventAttributes:{errorMessage:M,videoWatchedLength:k,playMethod:A,videoView:_,...V(e),videoLength:r,adLength:P,adWatchedLength:L,adSkipped:E,exitReason:"pageExit",orientation:i}}),F.videoCompleted=!0}})}},{eventName:"adImpression",callback:async({player:e,trackVideoEvent:t})=>{let a=e.getPlaylistItem();if(M="",U(),console.debug("JW Player callback - adImpression eventSentFlags:",F),F.adImpression=!0,a&&!F.videoAttempt&&t){let r=O(a?.custom?.ctx?.duration),i=a?.custom?.ctx?.aspectRatio;t({eventName:"video-attempted",eventAttributes:{errorMessage:M,playMethod:A,videoLength:r,videoView:_,orientation:i,...V(e)}}),F.videoAttempt=!0}}},{eventName:"viewable",callback:async({event:e})=>{_=e?.viewable}},{eventName:"playlistItem",callback:async({player:e,trackVideoEvent:t})=>{if(A=H("playlist"),F.videoStarted&&!F.videoCompleted){let a=e.getPlaylistIndex(),r=e.getPlaylistItem(a-1),i=O(r?.custom?.ctx?.duration),l=r?.custom?.ctx?.aspectRatio;t({eventName:"video-ended",eventAttributes:{errorMessage:M,videoWatchedLength:k,playMethod:A,videoView:_,...V(e),videoLength:i,adLength:P,adWatchedLength:L,adSkipped:E,exitReason:"nextVideo",orientation:l}}),F.videoCompleted=!0}}},{eventName:"playAttempt",callback:async({player:e,trackVideoEvent:t})=>{let a=e.getPlaylistItem();if(F.adImpression||(M="",U()),console.debug("JW Player callback - playAttempt eventSentFlags:",F),a&&!F.videoAttempt&&t){let r=O(a?.custom?.ctx?.duration),i=a?.custom?.ctx?.aspectRatio;F.videoAttempt=!0,t({eventName:"video-attempted",eventAttributes:{errorMessage:M,videoLength:r,playMethod:A,videoView:_,orientation:i,...V(e)}})}}},{eventName:"firstFrame",callback:async({player:e,trackVideoEvent:t})=>{console.debug("JW Player callback - firstFrame eventSentFlags:",F);let a=e.getPlaylistItem();if(a&&!F.videoStarted&&t){let r=O(a?.custom?.ctx?.duration),i=a?.custom?.ctx?.aspectRatio;t({eventName:"video-begin",eventAttributes:{errorMessage:M,playMethod:A,videoView:_,...V(e),videoLength:r,adLength:P,adWatchedLength:L,adSkipped:E,orientation:i}}),F.videoStarted=!0}}},{eventName:"complete",callback:async({player:e,trackVideoEvent:t})=>{let a=e.getPlaylistItem(),r=O(a?.custom?.ctx?.duration),i=a?.custom?.ctx?.aspectRatio;console.debug("JW Player callback - complete eventSentFlags:",F),a&&!F.videoCompleted&&t&&(t({eventName:"video-ended",eventAttributes:{errorMessage:M,videoWatchedLength:k,playMethod:A,videoView:_,...V(e),videoLength:r,adLength:P,adWatchedLength:L,adSkipped:E,exitReason:"complete",orientation:i}}),F.videoCompleted=!0)}},{eventName:"adStarted",callback:async({event:e,player:t,trackVideoEvent:a})=>{let r=t.getPlaylistItem();P=e.duration,console.debug("JW Player callback - adStarted eventSentFlags:",F),r&&a&&a({eventName:"ad-started",eventAttributes:{errorMessage:M,playReason:A,videoView:_,...V(t)}})}},{eventName:"adSkipped",callback:async({player:e,trackVideoEvent:t})=>{let a=e.getPlaylistItem();E=!0,a&&t&&t({eventName:"ad-skipped",eventAttributes:{errorMessage:M,playReason:A,videoView:_,...V(e)}})}},{eventName:"adComplete",callback:async({event:e,player:t,trackVideoEvent:a})=>{let r=t.getPlaylistItem();L=e.duration,console.debug("JW Player callback - adComplete eventSentFlags:",F),r&&a&&a({eventName:"ad-complete",eventAttributes:{errorMessage:M,playReason:A,videoView:_,...V(t)}})}},{eventName:"beforePlay",callback:async({event:e})=>{A=H(e?.playReason)}},{eventName:"adError",callback:async({event:e})=>{console.error("Video ad error:",e)}},{eventName:"error",callback:async({event:e})=>{M=e?.message,console.error("Video Player error:",e)}},{eventName:"time",callback:({event:e})=>{if("number"==typeof e?.position){let t=e.position-R;k+=t,R=e.position}}},{eventName:"seek",callback:({event:e})=>{"number"==typeof e?.offset&&(R=e.offset)}},{eventName:"adTime",callback:async({event:e})=>{let t=Date.now();t-D>=1e3&&(L=parseFloat(e.position.toFixed(2)),D=t)}}];e.s(["metricEvents",0,z],617843);var W=e.i(737801),$=e.i(375570),G=e.i(630986),q=e.i(472737);e.s(["useTrackVideoEvent",0,()=>{let e=(0,W.useEventAttributes)(),t=(0,G.useCMSAttributes)(),r=(0,$.usePathname)(),i=(0,q.useLocationSource)({}),l=i?.effectiveLocation?.ianaTimeZone??"Etc/UTC";return(0,a.useCallback)(({eventName:a,eventAttributes:i={}})=>{if(!window.mParticle?.isInitialized?.())return void console.warn("MParticle is not initialized");let n={...i,author:t?.author||"",contentId:t?.contentId||i.contentId,...e,url:r?(0,I.stripLastPartOfSlug)(r):""};["video-ended","video-begin","video-attempted"].includes(a)&&(delete n.duration,delete n.muted,delete n.lastmodifieddate,delete n.publishdate,delete n.providerName,delete n.id,delete n.aspectRatio,delete n.pageCount,n.deviceTimeZone=(0,I.getTimezoneOffsetInHours)(l));try{window.mParticle?.logEvent?.(a,window.mParticle?.EventType?.Other,n),console.debug(`MParticle: Video Event tracked - "${a}"`,n)}catch(e){console.error(`MParticle: Failed to track Video Event - "${a}"`,e)}},[t?.author,t?.contentId,e,r])}],33078)},753145,e=>{"use strict";let t="/placeholder-video-thumbnail.jpg";e.s(["getVideoThumbnail",0,e=>{if(!e)return t;for(let t of[/(?:cdn\.jwplayer\.com\/(?:videos|manifests|previews)\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/,/(?:content\.jwplatform\.com\/(?:videos|manifests)\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/,/(?:players\.jwplayer\.com\/preview\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/]){let a=e.match(t);if(a&&a[1])return`https://cdn.jwplayer.com/v2/media/${a[1]}/poster.jpg`}return t}])},289607,e=>{"use strict";var t=e.i(506424);let a=(e,a,r,i)=>{let{cDate:l,cTimeZone:n}=(0,t.getCompatibleValues)({date:e,locale:a,timeZone:r}),s=i??{year:"numeric",month:"2-digit",day:"2-digit",weekday:"short"};return s.timeZone=n,{cDate:l,cTimeZone:n,formatOptions:s}};e.s(["formatIntlDateParts",0,(e,t,r,i)=>{if(!e)return[];let{cDate:l,formatOptions:n}=a(e,t,r,i);return new Intl.DateTimeFormat(t,n).formatToParts(l)},"formatIntlDateString",0,(e,t,r,i)=>{if(!e)return"";let{cDate:l,formatOptions:n}=a(e,t,r,i);return new Intl.DateTimeFormat(t,n).format(l)}])},575658,529014,35520,652673,409846,713272,e=>{"use strict";var t=e.i(297647),a=e.i(477716),r=e.i(475566),i=e.i(294237),l=e.i(352194),n=e.i(650561),s=e.i(368847),o=e.i(674885),d=e.i(385277),c=e.i(307215),u=e.i(899507),m=e.i(747961);let h=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Cloud Cover"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.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"})]})),p=a.default.forwardRef((e,a)=>(0,t.jsx)(m.BaseIcon,{ref:a,icon:h,...e}));p.displayName="CloudCover";let f=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Feels Like"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",children:[(0,t.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,t.jsx)("path",{d:"M5 10.092V6H4v4.092a1.5 1.5 0 1 0 1 0"}),(0,t.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"})]})]})),x=a.default.forwardRef((e,a)=>(0,t.jsx)(m.BaseIcon,{ref:a,icon:f,...e}));x.displayName="FeelsLike";let g=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Foggy"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:[(0,t.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,t.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"})]})]})),v=a.default.forwardRef((e,a)=>(0,t.jsx)(m.BaseIcon,{ref:a,icon:g,...e}));v.displayName="Foggy";var y=e.i(713602),b=e.i(721395);let w=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Rain Drop"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:[(0,t.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,t.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"})]})]})),j=a.default.forwardRef((e,a)=>(0,t.jsx)(m.BaseIcon,{ref:a,icon:w,...e}));j.displayName="RainDrop";let C=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Rain Snow Wintery Mix"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",children:[(0,t.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,t.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,t.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,t.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"})]})]})),N=a.default.forwardRef((e,a)=>(0,t.jsx)(m.BaseIcon,{ref:a,icon:C,...e}));N.displayName="RainSnowWinteryMix";let T=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Snowflake"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:[(0,t.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,t.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,t.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,t.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"})]})]})),I=a.default.forwardRef((e,a)=>(0,t.jsx)(m.BaseIcon,{ref:a,icon:T,...e}));I.displayName="Snowflake";var S=e.i(955377),A=e.i(955105),M=e.i(331163);let _=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",ref:n,"aria-labelledby":a,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Wind Gust"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.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"})]})),k=a.default.forwardRef((e,a)=>(0,t.jsx)(m.BaseIcon,{ref:a,icon:_,...e}));k.displayName="WindGust";var R=e.i(324079),P=e.i(166812);let L=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"moonrise"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("g",{fill:"currentColor",children:(0,t.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"})})]})),E=a.default.forwardRef((e,a)=>(0,t.jsx)(m.BaseIcon,{ref:a,icon:L,...e}));E.displayName="Moonrise";var D=e.i(245308),F=e.i(742740),B=e.i(249115),H=e.i(617874),O=e.i(180193),U=e.i(548888),V=e.i(546505),z=e.i(636791),W=e.i(67538),$=e.i(284251),G=e.i(632137);let q=({precipType:e="rain",rain:a,snow:r,qpf:i=0,qpfSnow:l=0,units:n,unitOverride:s,className:o,unitClass:d})=>{let c,u,m=a??i,h=r??l,p=n?(0,H.unitsSystemByCode)(n):null;if("snow"===e)c=h,u="accumulation";else if("rain"===e)c=m,u="precip";else if("precip"===e){let e=Number(m)>=Number(h);c=e?m:h,u=e?"precip":"accumulation"}else c=m,u="precip";let f=p?.[u];return(0,t.jsxs)("span",{"data-testid":"AccumulationValue",className:(0,G.cn)(o),children:[(0,t.jsx)("span",{children:c})," ",(0,t.jsx)("span",{className:(0,G.cn)(d),children:s||f})]})};e.s(["Accumulation",0,q],529014);var Q=e.i(411325),Z=e.i(896325);let K=e=>!(0,u.isNil)(e)||null,Y={derive:({precipType:e})=>"precip"===e?N:"snow"===e?I:j},X={temperatureFeelsLike:{label:(e,{t})=>t("feelsLike"),icon:x,value:({temperatureFeelsLike:e})=>K(e)&&(0,t.jsx)(O.Temperature,{value:e})},windSpeed:{label:(e,{t})=>t("wind"),icon:A.Wind,value:({windSpeed:e,windDirectionCardinal:a},{unitName:r})=>{let i=(0,H.unitsSystemByName)(r);return K(e)&&(0,t.jsx)(U.Wind,{className:"whitespace-nowrap",windSpeed:e,windDirectionCardinal:a,units:i.code,displayMode:"directionalAndCardinal"})}},precipChance:{label:({precipType:e},{t})=>{var a;return t(`chanceOf${(a=e??"").substring(0,1).toUpperCase()+a.substring(1)}`)},icon:Y,value:({precipChance:e})=>K(e)&&(0,t.jsx)(V.Percentage,{value:e})},relativeHumidity:{label:(e,{t})=>t("humidity"),icon:y.Humidity,value:({relativeHumidity:e})=>K(e)&&(0,t.jsx)(V.Percentage,{value:e})},pressureMeanSeaLevel:{label:(e,{t})=>t("pressure"),icon:b.Pressure,value:({pressureMeanSeaLevel:e})=>K(e)&&(0,t.jsx)(z.Pressure,{pressureMeanSeaLevel:e})},visibility:{label:(e,{t})=>t("visibility"),icon:D.View,value:({visibility:e},{unitName:a})=>K(e)&&(0,t.jsx)(W.Visibility,{visibility:e,units:(0,H.unitsSystemByName)(a).code})},uvIndex:{label:(e,{t})=>t("uvIndex"),icon:S.UvIndex,value:({uvIndex:e})=>K(e)&&(0,t.jsx)($.UVIndex,{uvIndex:e})},cloudCover:{label:(e,{t})=>t("cloudCover"),icon:p,value:({cloudCover:e})=>K(e)&&(0,t.jsx)(V.Percentage,{value:e})},accumulation:{label:({precipType:e},{t})=>t(`${e}Amount`),icon:Y,value:({qpf:e,qpfSnow:a,precipType:r},{unitName:i})=>K(e)||K(a)?(0,t.jsx)(q,{precipType:r,qpf:e,qpfSnow:a,units:(0,H.unitsSystemByName)(i).code}):null},temperatureDewPoint:{label:(e,{t})=>t("dewPoint"),icon:M.DewPoint,value:({temperatureDewPoint:e})=>K(e)&&(0,t.jsx)(O.Temperature,{value:e})},windGust:{label:(e,{t})=>t("windGust"),icon:k,value:({windGust:e},{unitName:a})=>(0,t.jsx)(U.Wind,{windSpeed:e??void 0,units:(0,H.unitsSystemByName)(a).code})},sunrise:{label:(e,{t})=>t("sunrise"),icon:R.Sunrise,value:({sunriseTimeLocal:e},{locale:t})=>e?(0,F.formatHourlyDate)({date:(0,B.dateInGMTTimezone)(e),timeZone:"Etc/GMT",locale:t,minutes:!0}):"--"},sunset:{label:(e,{t})=>t("sunset"),icon:P.Sunset,value:({sunsetTimeLocal:e},{locale:t})=>e?(0,F.formatHourlyDate)({date:(0,B.dateInGMTTimezone)(e),timeZone:"Etc/GMT",locale:t,minutes:!0}):"--"},moonrise:{label:(e,{t})=>t("moonrise"),icon:E,value:({moonriseTimeLocal:e},{locale:t})=>e?(0,F.formatHourlyDate)({date:(0,B.dateInGMTTimezone)(e),timeZone:"Etc/GMT",locale:t,minutes:!0}):"--"},moonset:{label:(e,{t})=>t("moonset"),icon:E,value:({moonsetTimeLocal:e},{locale:t})=>e?(0,F.formatHourlyDate)({date:(0,B.dateInGMTTimezone)(e),timeZone:"Etc/GMT",locale:t,minutes:!0}):"--"},moonPhase:{label:"",icon:{derive:({moonPhaseCode:e})=>a=>(0,t.jsx)(Z.MoonIcon,{...a,moonPhaseCode:e})},value:({moonPhase:e})=>K(e)&&e},airQuality:{label:(e,{t})=>t("airQuality"),icon:v,value:({airQualityIndex:e,airQualityCategory:a})=>K(e)&&(0,t.jsx)(Q.AirQuality,{airQualityIndex:e,airQualityCategory:a})}},J=(0,i.cva)("grid justify-between gap-1",{variants:{cols:{1:"grid-cols-[repeat(1,1fr)]",2:"grid-cols-[repeat(2,1fr)]",3:"grid-cols-[repeat(3,1fr)]",4:"grid-cols-[repeat(4,1fr)]",5:"grid-cols-[repeat(5,1fr)]",6:"grid-cols-[repeat(6,1fr)]"}}}),ee=(0,a.memo)(({dataPoints:e,fields:i,locale:u,columns:m,children:h,className:p})=>{let{small:f=2,medium:x=3,large:g=4}="object"==typeof m?m||{}:{small:m,medium:m,large:m},[v,y]=(0,d.useClientContainerSize)(e=>e>=c.containerSizes["@xl"]?g:e>=c.containerSizes["@xs"]?x:f),b=v||x,w=(0,l.useTranslations)("DetailsTable"),j={unitName:(0,r.useAtomValue)(o.userUnitPreferenceAtom),t:w,locale:u},C=0;return(0,t.jsx)(n.Card,{ref:y,className:(0,G.cn)("border-2xl @container/detailsTable h-full bg-gray-100 p-0",p),children:(0,t.jsxs)(n.CardContent,{className:"px-4 py-4 @xl/detailsTable:px-6",children:[h&&(0,t.jsx)("div",{children:h}),(0,t.jsx)("ul",{className:J({cols:b}),children:i.map((r,l)=>{let n,o=X[r],d=o?.value(e,j);if(!o||!d)return C++,null;let c="derive"in o.icon?o.icon.derive(e,j):o.icon,u="function"==typeof o.label?o.label(e,j):o.label,m=i.length-C,h=l-C,p=m%b;if(h===m-1&&0!==p){let e=b-p+1;n={gridColumn:`span ${e} / span ${e}`}}return(0,t.jsxs)(a.Fragment,{children:[h>0&&h%b==0&&(0,t.jsx)("li",{className:"col-span-full py-3",children:(0,t.jsx)("div",{className:"border-b border-[#dedede]"})}),(0,t.jsxs)("li",{className:"flex gap-1 @md/detailsTable:gap-1.5 @xl/detailsTable:gap-2",style:n,children:[c&&(0,t.jsx)(c,{className:"size-4 shrink-0 @md/detailsTable:size-5"}),(0,t.jsxs)("div",{children:[u&&(0,t.jsx)(s.default,{variant:"Body.M",className:"mb-0.5 text-sm leading-normal @xl/detailsTable:text-base",children:u}),(0,t.jsx)(s.default,{elementType:"string"==typeof d?"p":"div",variant:"Body.L.Bold",className:"text-sm leading-normal @xl/detailsTable:text-base",children:d})]})]})]},u+h)})})]})})});e.s(["default",0,ee],575658);var et=e.i(358025);e.s(["PrecipChance",0,({precipChance:e=null,precipType:a,showIcon:r=!0,displayMode:i="text",className:l,iconClassName:n,textClassName:s,progressClassName:o,progressBarClassName:d})=>{if((0,u.isNil)(e))return"--";let c=a===et.PrecipType.SNOW?I:j;return(0,t.jsxs)(t.Fragment,{children:[("text"===i||"both"===i)&&(0,t.jsxs)("span",{className:(0,G.cn)("whitespace-nowrap",l,s),children:[r&&(0,t.jsx)(c,{className:(0,G.cn)("size-4",n)}),(0,t.jsx)(V.Percentage,{value:e,className:"align-middle"})]}),("progress"===i||"both"===i)&&(0,t.jsxs)("div",{className:(0,G.cn)("relative inline-block h-5 w-26 overflow-hidden rounded-xl bg-[#e9e9e9] align-middle",l,o),children:[(0,t.jsx)("div",{className:(0,G.cn)("bg-brand-100 relative h-full w-full rounded-xl",d),style:{left:`${e-100}%`}}),(0,t.jsxs)("div",{className:"absolute top-0 bottom-0 flex h-full w-full items-center p-1",children:[r&&(0,t.jsx)(c,{className:(0,G.cn)("size-3.25",n)}),(0,t.jsx)(V.Percentage,{value:e,className:"text-sm"})]})]})]})}],35520);let ea=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Location"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M8 1a5.507 5.507 0 0 0-5.5 5.5 5.44 5.44 0 0 0 1.108 3.3s.15.197.174.226L8 15l4.22-4.976c.022-.027.172-.224.172-.224v-.001A5.44 5.44 0 0 0 13.5 6.5 5.507 5.507 0 0 0 8 1m0 7.5a2 2 0 1 1 0-4 2 2 0 0 1 0 4"})]})),er=a.default.forwardRef((e,a)=>(0,t.jsx)(m.BaseIcon,{ref:a,icon:ea,...e}));er.displayName="LocationFilled",e.s(["LocationFilled",0,er],652673),e.s(["formatTime",0,(e,t)=>{if(!e)return"";try{let a=new Date(e),r={hour:"numeric",minute:"2-digit",hour12:!0,timeZoneName:"short"};if(!t)return a.toLocaleTimeString("en-US",r);return a.toLocaleTimeString(t,r)}catch(e){return console.error("Error formatting time:",e),""}}],409846);var ei=e.i(796424);e.s(["convertToTimeInTimezone",0,(e,t)=>(0,ei.getNormalizedDateString)(new Intl.DateTimeFormat("en-US",{timeZone:t,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)))],713272)},30023,e=>{"use strict";var t=e.i(297647),a=e.i(710402),r=e.i(754500),i=e.i(352194),l=e.i(375570),n=e.i(472737),s=e.i(742436);let o=function(e,t){let a=(0,s.useExperimentContext)();return a?a.variant(e,t):t};var d=e.i(477716),c=e.i(877957),u=e.i(632137),m=e.i(475566),h=e.i(674885),p=e.i(617874),f=e.i(368847),x=e.i(548888),g=e.i(180193),v=e.i(665488),y=e.i(35520),b=e.i(316078),w=e.i(575658),j=e.i(349262),C=e.i(381477),N=e.i(761243),T=e.i(777430),I=e.i(484758),S=e.i(617843),A=e.i(33078),M=e.i(528600),_=e.i(909232),k=e.i(49893),R=e.i(753145),P=e.i(695881),L=e.i(747961);let E=(0,d.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Play"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",children:[(0,t.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,t.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"})]})]})),D=d.default.forwardRef((e,a)=>(0,t.jsx)(L.BaseIcon,{ref:a,icon:E,...e}));D.displayName="PlayOutline";let F=(0,P.createLogger)("DailyForecast:EmbeddedContent"),B=({playlist:e,events:a,disableAds:r,className:i})=>(0,t.jsx)("div",{className:i,children:(0,t.jsx)(T.JWPlayer,{playlist:e,events:a,setupParams:{ads:!r}})}),H=({title:e,className:a})=>(0,t.jsx)("p",{className:a,children:e||"Records In Jeopardy From Great Lakes To Northeast"}),O=()=>(0,t.jsx)("li",{className:"col-span-full list-none py-3",children:(0,t.jsx)("div",{className:"border-b border-[#dedede]"})}),U=({contentQueryId:e})=>{let[a,r]=(0,d.useState)(!1),i=(0,d.useRef)(!0),l=(0,M.useUser)(),n=(0,d.useMemo)(()=>l?.user||{},[l?.user]),s=(0,m.useAtomValue)(k.adsKillswitchAtom),o=!!(n.isUserPremium||s),c=(0,_.useClientMobileMedia)(),u=(0,A.useTrackVideoEvent)(),h="string"==typeof e?e:e?.id,{data:p,error:f}=(0,C.default)(h?["content-by-asset",h]:null,()=>(0,N.getContentByAssetId)(h,"en-US"),{revalidateOnFocus:!1,dedupingInterval:3e5}),x=(0,d.useMemo)(()=>{if(!p?.length)return F.info("No content data available"),null;let e=p.find(e=>"video"===e.contentType);if(!e)return F.info("No video found in content data"),null;F.info("Found video content:",{id:e.id,contentType:e.contentType,webVideoData:e.webVideoData,url:e.url});let t=e.webVideoData?.web||e.webVideoData?.mweb||e.url;if(!t)return F.warn("No valid video URL found",{webVideoData:e.webVideoData,url:e.url}),null;F.info("Using video URL:",t);try{new URL(t)}catch(e){return F.error("Invalid video URL format:",t,e),null}let a=e.overrideThumbnail||e.thumbnail||(0,R.getVideoThumbnail)(t),r=e.overrideTitle||e.title,i={file:t,image:a,title:r,description:e.overrideDescription||e.description||"",custom:{jwplayer:"",adzone:"",pcollid:""}};return F.info("Created playlist item:",{file:i.file,image:i.image,title:i.title}),i},[p]),g=(0,d.useMemo)(()=>x?[x]:[],[x]),v=(0,d.useMemo)(()=>[{eventName:"play",callback:()=>{r(!0)}},{eventName:"error",callback:({event:e,player:t})=>{F.error("JWPlayer error occurred:",{message:e.message,code:e.code,type:e.type,sourceError:e.sourceError,playlistItem:t.getPlaylistItem(),playlistIndex:t.getPlaylistIndex()})}},{eventName:"setupError",callback:({event:e})=>{F.error("JWPlayer setup error:",{message:e.message,code:e.code,type:e.type})}},...[...I.adEvents,...S.metricEvents].map(({eventName:e,callback:t})=>({eventName:e,callback:({event:a,player:r})=>{"time"!==e&&F.info(`[${e}]:`,a),t({event:a,player:r,isFirstPlayRef:i,user:n,trackVideoEvent:u,isMobile:c})}}))],[n,u,c]);return p||f?f?(F.error("Failed to load content:",f),null):x&&0!==g.length?a?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(B,{playlist:g,events:v,disableAds:o,className:"overflow-hidden rounded-lg"}),(0,t.jsx)("div",{className:"pt-3",children:(0,t.jsx)(H,{title:x?.title,className:"text-sm leading-tight font-semibold text-gray-900"})})]}),(0,t.jsx)(O,{})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)(B,{playlist:g,events:v,disableAds:o,className:"w-[140px] flex-shrink-0 overflow-hidden rounded-lg"}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-sm text-gray-600",children:[(0,t.jsx)(D,{className:"size-4"}),(0,t.jsx)("span",{children:"Heads-up"})]}),(0,t.jsx)(H,{title:x?.title,className:"text-sm leading-tight font-semibold text-gray-900"})]})]}),(0,t.jsx)(O,{})]}):(F.info("No video content found"),null):(0,t.jsx)("div",{className:"flex aspect-video w-full items-center justify-center bg-gray-100",children:(0,t.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-t-2 border-b-2 border-gray-900"})})},V=["relativeHumidity","uvIndex","sunrise","sunset"],z=["relativeHumidity","uvIndex","moonrise","moonset","moonPhase"],W=({data:e,locale:a,validTime:r,embedContent:l,embeddedContentQuery:n})=>{let s=(0,i.useTranslations)("DailyForecast"),o=(0,m.useAtomValue)(h.userUnitPreferenceAtom),d=(0,p.unitsSystemByName)(o),c=e.dayOrNight===j.DayOrNight.DAY,u=c?"cols-start-1":"cols-start-2";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:u+" row-start-1 mb-4",children:[(0,t.jsxs)("div",{className:"mb-2 flex justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)(f.default,{children:[(0,t.jsx)("span",{className:"font-bold",children:r})," | ",s(c?"day":"night")]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(f.default,{variant:"Title.XL",elementType:"span",children:(0,t.jsx)(g.Temperature,{value:e.temperature})}),(0,t.jsx)(b.WxIcon,{iconCode:e.iconCode,iconCodeExtend:e.iconCodeExtend,className:"size-11"})]})]}),(0,t.jsxs)("div",{className:"flex flex-col justify-end gap-1",children:[(0,t.jsx)(y.PrecipChance,{precipChance:e.precipChance,precipType:e.precipType,iconClassName:"mr-1"}),(0,t.jsx)(x.Wind,{windSpeed:e.windSpeed,windDirectionCardinal:e.windDirectionCardinal,units:d.code,iconClassName:"mr-1",cardinalBeforeSpeed:!0,useWindIcon:!0})]})]}),(0,t.jsx)(f.default,{children:e.narrative})]}),(0,t.jsx)("div",{className:u+" row-start-2 mb-4",children:(0,t.jsx)(w.default,{dataPoints:e,fields:c?V:z,locale:a,columns:2,children:l&&n&&(0,t.jsx)(U,{contentQueryId:n})})})]})};var $=e.i(289607);let G=(e,t,a)=>{if(!e)return"";let r=(0,$.formatIntlDateParts)(e,t,a),i=r.find(e=>"day"===e.type)?.value,l=r.find(e=>"weekday"===e.type)?.value;return`${l} ${i}`},q=({dailyForecast:e,locale:a,timeZone:r,itemIndex:l,isKoreaCscLocation:n,locationDayDate:s,embedContent:o,embeddedContentQuery:c})=>{let u=(0,m.useAtomValue)(h.userUnitPreferenceAtom),w=(0,p.unitsSystemByName)(u),j=(0,i.useTranslations)("DailyForecast"),C=e.daypart[0],N=e.daypart[1],T=C??N,I=T?.wxPhraseLong,S=e?.validTimeLocal&&G(e.validTimeLocal,a,r),A=(0,d.useMemo)(()=>n?s===S?j("today"):S:0===l&&T?.daypartName?T?.daypartName:S,[n,l,s,T?.daypartName,S,j]);return S?(0,t.jsxs)(v.AccordionItem,{value:e.validTimeLocal||"",className:"border-grey-500 @container/dailyItem gap-1 overflow-hidden border-b py-3",children:[(0,t.jsx)(v.AccordionTrigger,{className:"items-center gap-2 p-0",iconClassName:"size-4",triggerContent:(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-1 [&>.openHide]:group-data-[state=open]:invisible",children:[(0,t.jsx)("div",{className:"min-w-[60px]",children:(0,t.jsx)(f.default,{className:"whitespace-nowrap group-data-[state=open]:font-bold @max-xs/dailyItem:text-sm",children:A})}),(0,t.jsx)("div",{className:"openHide basis-[90px]",children:(0,t.jsxs)(f.default,{variant:"Body.M",elementType:"span",className:"whitespace-nowrap",children:[(0,t.jsx)(f.default,{variant:"Body.L.Bold",elementType:"span",children:(0,t.jsx)(g.Temperature,{value:e.temperatureMax})})," / ",(0,t.jsx)(g.Temperature,{value:e.temperatureMin})]})}),(0,t.jsxs)("div",{className:"openHide relative flex h-6 items-center",children:[(0,t.jsx)(b.WxIcon,{iconCode:T?.iconCode,className:"lightBG size-7",size:"lg",iconTheme:"lightBG","aria-label":I||`Weather condition ${T?.iconCode}`}),(0,t.jsx)(f.default,{variant:"Body.M",className:"min-w-[200px] pl-1.5 @max-xl/dailyItem:hidden",children:I})]}),(0,t.jsx)("div",{className:"openHide basis-[60px]",children:(0,t.jsx)(y.PrecipChance,{precipChance:T?.precipChance,className:"whitespace-nowrap",iconClassName:"size-3"})}),(0,t.jsx)("div",{className:"openHide basis-[76px]",children:(0,t.jsx)(f.default,{elementType:"div",children:(0,t.jsx)(x.Wind,{windSpeed:T?.windSpeed,windDirectionCardinal:T?.windDirectionCardinal,units:w.code,displayMode:"directional",className:"whitespace-nowrap",iconClassName:"size-3 @md/dailyItem:size-4"})})})]})}),(0,t.jsxs)(v.AccordionContent,{className:"mt-2 block auto-cols-[1fr_1fr] gap-x-6 @md/dailyItem:grid @xl/dailyItem:gap-x-8",children:[C&&(0,t.jsx)(W,{data:C,locale:a,validTime:S,embedContent:o,embeddedContentQuery:c}),N&&(0,t.jsx)(W,{data:N,locale:a,validTime:S,embedContent:C?void 0:o,embeddedContentQuery:C?void 0:c})]})]}):null};var Q=e.i(23123),Z=e.i(380993),K=e.i(240058),Y=e.i(652673),X=e.i(409846),J=e.i(495406),ee=e.i(341669);let et=({firstRow:e})=>(0,t.jsx)("div",{className:"border-grey-500 gap-1 border-b py-3",children:(0,t.jsx)(ee.default,{skeletonClassName:`mt-0.75 w-full ${e?"h-91":"h-4"}`})}),ea=({adBlocks:e,adIndices:a,currentIndex:r})=>{let i=a.find(e=>e.adIndex===r);if(!i)return null;let l=e[a.indexOf(i)];return(0,t.jsx)(J.AdBlock,{className:"border-grey-500 my-0 border-b py-4 shadow-none",...l})},er=({location:e,isLoading:a,error:r,dailyForecasts:l,locale:n,isKoreaCscLocation:s,locationTime:o,canToggleMultipleItems:m,ctaText:h,ctaLink:p,reorderModule:x,simplifiedVersion:g,embedContent:y,embeddedContentQuery:b,adBlocks:w,adIndices:j})=>{let C=(0,i.useTranslations)("DailyForecast"),N=e?.ianaTimeZone||"America/New_York",T=(0,d.useMemo)(()=>G(o,n,N),[n,N,o]),I=l?.[0]?.validTimeLocal,S=(0,d.useMemo)(()=>o?(0,X.formatTime)(o,n):"",[o,n]);return(0,t.jsxs)(Z.Card,{className:(0,u.cn)("not-prose @container/daily",x?"-order-1":"order-0"),"aria-label":C("dailyForecast"),"data-testid":"daily-forecast",children:[(0,t.jsxs)(f.default,{elementType:"h1",variant:"Title.S",className:g?"pb-4":void 0,children:[C("dailyForecast"),e?.presentationName&&S&&!g&&(0,t.jsxs)(f.default,{elementType:"span",variant:"Body.S",className:"flex items-center gap-1 pt-2",children:[(0,t.jsx)(Y.LocationFilled,{className:"size-4 text-gray-500"}),(0,t.jsx)(f.default,{elementType:"span",variant:"Body.S",color:"primary",children:e?.presentationName}),(0,t.jsxs)(f.default,{elementType:"span",variant:"Body.S",color:"secondary",children:["· as of ",S]})]})]}),(0,t.jsxs)(Z.CardContent,{className:"p-0",children:[!g&&(0,t.jsx)(Q.AlertHeadlines,{className:"my-4",location:e}),(()=>{if(r)return(0,t.jsx)("div",{className:"flex h-64 items-center justify-center p-6",children:(0,t.jsx)(f.default,{variant:"Display.S",children:r?.message||C("unableToLoadData")})});let e=[],i=g?4:15;for(let r=0;r{let g=(0,l.useParams)(),v=g?.locale,y=(0,i.useTranslations)("DailyForecast"),{value:b}=o("reorder-current-conditions-and-forecast","control"),{effectiveLocation:w,isLocationLoading:N}=(0,n.useLocationSource)({location:e}),{dailyForecasts:T,error:I,isLoading:S,isKoreaCscLocation:A,locationTime:M}=((e,t)=>{let a=(0,l.useParams)(),r=a?.locale,i=(0,m.useAtomValue)(h.userUnitPreferenceAtom),n=(0,p.unitsSystemByName)(i)?.code,s=(0,en.useCscCountryCode)(),o="KR"===s,c=o&&e?.countryCode==="KR",u=e?.ianaTimeZone,f=(0,d.useMemo)(()=>u?(0,el.convertToTimeInTimezone)(new Date,u):"",[u]),{data:x,error:g,isLoading:v}=(0,C.default)(e?["get-daily-forecast",e.geocode,t?j.ForecastDuration.THREE_DAY:j.ForecastDuration.FIFTEEN_DAY,n,r,o?s:void 0]:null,([e,t,a,r,i,l])=>(0,ei.getDailyForecast)({geocode:t,units:r,duration:a,language:i,cscCountryCode:l}),{revalidateOnFocus:!0,dedupingInterval:6e4});return{dailyForecasts:(0,d.useMemo)(()=>t?x?.slice(0,4):x,[x,t]),error:g,isLoading:v,isKoreaCscLocation:c,locationTime:f}})(w,a);return(0,t.jsx)(er,{location:w,isLoading:r||S||N||!T?.length,error:s||I,dailyForecasts:T,locale:v,isKoreaCscLocation:A,locationTime:M,canToggleMultipleItems:!a,ctaText:a?y("bottomCtaButton"):void 0,ctaLink:a?`/weather/tenday/l/${w?.placeId||g?.locId}`:void 0,reorderModule:"treatment"===b,simplifiedVersion:a,embedContent:c,embeddedContentQuery:u,adBlocks:f,adIndices:x})},eo=({locationProvider:e,locationEntry:i,simplifiedVersion:l,embedContent:n,embeddedContentQuery:s,adBlocks:o,adIndices:d})=>{let c="specified"===e,{specifiedLocationData:u,specifiedLocationError:m,isSpecifiedLocationLoading:h}=(0,r.useSpecifiedLocation)(c?i:null),p=c&&u&&i?(0,a.fromLocationPoint)(u):void 0;return(0,t.jsx)(es,{location:p,simplifiedVersion:l??!1,initializing:c&&h,initialError:c?m:void 0,embedContent:n??void 0,embeddedContentQuery:s??void 0,adBlocks:o??[],adIndices:d??[]})};e.s(["DailyForecastBlock",0,eo,"default",0,eo],30023)},535836,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getWWIRForecast=n;let r=e.r(417669),i=e.r(678651),l=e.r(414655);async function n(e){let t=(0,r.getWWIRForecastUrlConfig)(e),a=(0,i.urlFrom)(t),n=await fetch(a,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return await (0,l.handleFetchResponse)(n)}},231486,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getTileServerSeriesDynamicMapsUrlConfig=function(){return{host:"api.weather.com",protocol:"https",pathname:"/v3/TileServer/series/productSet/dynamicmaps",query:{apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},61576,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getDynamicMapsTileSeries=n;let r=e.r(678651),i=e.r(414655),l=e.r(231486);async function n(){let e=(0,l.getTileServerSeriesDynamicMapsUrlConfig)(),t=(0,r.urlFrom)(e),a=await fetch(t,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(await (0,i.handleFetchResponse)(a)).seriesInfo}},474245,(e,t,a)=>{"use strict";var r,i;Object.defineProperty(a,"__esModule",{value:!0}),a.InsightType=void 0,(i=r||(a.InsightType=r={})).ALL="all",i.BREAKING_VIDEO_INSIGHT="breakingVideoInsight",i.CHANCE_PRECIP_INSIGHT="chancePrecipInsight",i.SUNNY_DAY_INSIGHT="sunnyDayInsight",i.POLLEN_INSIGHT="pollenInsight",i.TEMPERATURE_CHANGE_INSIGHT="temperatureChangeInsight",i.TRENDING_TEMPERATURE_INSIGHT="trendingTemperatureInsight",i.SUN_INSIGHT="sunInsight",i.SHORT_TERM_PRECIP_INSIGHT="shortTermPrecipInsight",i.THUNDERSTORM_SOON_INSIGHT="thunderstormSoonInsight",i.SEVERE_STORM_INSIGHT="severeStormInsight",i.PRECIP_INSIGHT="precipInsight"},449802,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getSunV3WeatherInsightsUrlConfig=function({geocode:e,placeId:t,postalKey:a,insightType:i=r.InsightType.ALL,units:l,language:n,par:s,cscCountryCode:o}){let d={format:"json",units:l,language:n,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061",insightType:i,par:s,cscCountryCode:o};return e?d.geocode=e:t?d.placeid=t:a&&(d.postalKey=a),{host:"api.weather.com",protocol:"https",pathname:"/v3/insights",query:d}};let r=e.r(474245)},698674,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getWeatherInsights=n;let r=e.r(449802),i=e.r(678651),l=e.r(414655);async function n(e){let t=(0,r.getSunV3WeatherInsightsUrlConfig)(e),a=(0,i.urlFrom)(t),n=await fetch(a,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(0,l.handleFetchResponse)(n)}},11697,e=>{"use strict";var t=e.i(381477),a=e.i(698674),r=e.i(475566),i=e.i(674885),l=e.i(617874);let n={revalidateOnFocus:!1,dedupingInterval:6e4};e.s(["useGetWeatherInsights",0,({key:e="get-weather-insights",geoCode:s,insightType:o,locale:d,par:c="twc",cscCountryCode:u})=>{let m=(0,r.useAtomValue)(i.userUnitPreferenceAtom),h=((0,l.unitsSystemByName)(m)||l.imperial).code;return(0,t.default)(s?[e,o,s,h,c,d]:null,([e,t,r,i,l,n])=>(0,a.getWeatherInsights)({geocode:r,units:i,language:n,insightType:t,par:l,cscCountryCode:"KR"===u?"KR":void 0}),n)}])},395800,209241,892186,846871,e=>{"use strict";let t=e=>e=12?3:(console.error("Default to 0. Could not get precision for level of detail",e),0);e.s(["getLODPrecision",0,t],209241),e.s(["getRoundedGeocode",0,(e,a)=>{let r=t(a),[i,l]=e.toString().split(".");if(void 0===l)return r>0?`${i}.${"".padEnd(r,"0")}`:i;if(0===r)return i;let n=l.slice(0,r).split(""),s=parseInt(n[n.length-1],10);return s>0&&s{let[u,m]=(0,r.useState)(!1);return(0,a.jsxs)("div",{className:(0,i.cn)("absolute flex items-start gap-1",l[e],s),children:[(0,a.jsx)("div",{className:"flex items-center","data-testid":"MapboxAttribution",children:(0,a.jsx)("button",{type:"button",className:(0,i.cn)("cursor-pointer p-0",n[t]),onClick:()=>{m(e=>!e)},"aria-label":"Map Attribution","data-testid":"MapboxLinks",children:(0,a.jsx)(o,{})})},"logo"),(0,a.jsxs)("div",{className:(0,i.cn)("flex-wrap rounded bg-white/75 p-1.5 text-xs shadow-md",u?"flex":"hidden",c?"flex-col space-y-1":"flex-row items-center space-x-2",d),children:[(0,a.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://mapbox.com/about/maps",className:"text-blue-600 hover:underline",children:`\xa9 ${new Date().getFullYear()} Mapbox`}),(0,a.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.openstreetmap.org/about",className:"text-blue-600 hover:underline",children:"© OpenStreetMap"}),!c&&(0,a.jsx)("span",{className:"text-gray-400",children:"|"}),(0,a.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.mapbox.com/map-feedback/",className:"text-blue-600 hover:underline",children:"Improve this map"})]},"links")]})},o=()=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 800 180",className:"w-18.75 opacity-75 drop-shadow-[0_0_2px_black]",children:[(0,a.jsx)("title",{children:"Mapbox Logo"}),(0,a.jsx)("path",{d:"M594.6 49.8c-9.9 0-19.4 4.1-26.3 11.3V23c0-1.2-1-2.2-2.2-2.2h-13.4c-1.2 0-2.2 1-2.2 2.2v103c0 1.2 1 2.2 2.2 2.2h13.4c1.2 0 2.2-1 2.2-2.2v-7.1c6.9 7.2 16.3 11.3 26.3 11.3 20.9 0 37.8-18 37.8-40.2s-16.9-40.2-37.8-40.2zm-3.1 64.3c-12.7 0-23-10.6-23.1-23.8v-.6c.2-13.2 10.4-23.8 23.1-23.8 12.8 0 23.1 10.8 23.1 24.1s-10.4 24.1-23.1 24.1zM681.7 49.8c-22.6 0-40.9 18-40.9 40.2s18.3 40.2 40.9 40.2c22.6 0 40.9-18 40.9-40.2s-18.3-40.2-40.9-40.2zm-.1 64.3c-12.8 0-23.1-10.8-23.1-24.1s10.4-24.1 23.1-24.1 23.1 10.8 23.1 24.1-10.4 24.1-23.1 24.1zM431.6 51.8h-13.4c-1.2 0-2.2 1-2.2 2.2v7.1c-6.9-7.2-16.3-11.3-26.3-11.3-20.9 0-37.8 18-37.8 40.2s16.9 40.2 37.8 40.2c9.9 0 19.4-4.1 26.3-11.3v7.1c0 1.2 1 2.2 2.2 2.2h13.4c1.2 0 2.2-1 2.2-2.2V54c0-1.2-1-2.2-2.2-2.2zm-38.8 62.3c-12.8 0-23.1-10.8-23.1-24.1s10.4-24.1 23.1-24.1c12.7 0 23 10.6 23.1 23.8v.6c-.1 13.2-10.4 23.8-23.1 23.8zM498.5 49.8c-9.9 0-19.4 4.1-26.3 11.3V54c0-1.2-1-2.2-2.2-2.2h-13.4c-1.2 0-2.2 1-2.2 2.2v103c0 1.2 1 2.2 2.2 2.2H470c1.2 0 2.2-1 2.2-2.2v-38.1c6.9 7.2 16.3 11.3 26.3 11.3 20.9 0 37.8-18 37.8-40.2s-16.9-40.2-37.8-40.2zm-3.1 64.3c-12.7 0-23-10.6-23.1-23.8v-.6c.2-13.2 10.4-23.8 23.1-23.8 12.8 0 23.1 10.8 23.1 24.1s-10.3 24.1-23.1 24.1zM311.8 49.8c-10 .1-19.1 5.9-23.4 15-4.9-9.3-14.7-15.1-25.2-15-8.2 0-15.9 4-20.7 10.6V54c0-1.2-1-2.2-2.2-2.2h-13.4c-1.2 0-2.2 1-2.2 2.2v72c0 1.2 1 2.2 2.2 2.2h13.4c1.2 0 2.2-1 2.2-2.2V82.9c.5-9.6 7.2-17.3 15.4-17.3 8.5 0 15.6 7.1 15.6 16.4v44c0 1.2 1 2.2 2.2 2.2h13.5c1.2 0 2.2-1 2.2-2.2l-.1-44.8c1.2-8.8 7.5-15.6 15.2-15.6 8.5 0 15.6 7.1 15.6 16.4v44c0 1.2 1 2.2 2.2 2.2h13.5c1.2 0 2.2-1 2.2-2.2l-.1-49.5c0-14.8-12.6-26.7-28.1-26.7zM794.7 125.1l-23.2-35.3 23-35c.6-.9.3-2.2-.6-2.8-.3-.2-.7-.3-1.1-.3h-15.5c-1.2 0-2.3.6-2.9 1.6L760.9 76l-13.5-22.6c-.6-1-1.7-1.6-2.9-1.6H729c-1.1 0-2 .9-2 2 0 .4.1.8.3 1.1l23 35-23.2 35.3c-.6.9-.3 2.2.6 2.8.3.2.7.3 1.1.3h15.5c1.2 0 2.3-.6 2.9-1.6l13.8-23 13.8 23c.6 1 1.7 1.6 2.9 1.6H793c1.1 0 2-.9 2-2 0-.4-.1-.8-.3-1.2z"}),(0,a.jsxs)("g",{children:[(0,a.jsx)("path",{d:"M93.9 1.1C44.8 1.1 5 40.9 5 90s39.8 88.9 88.9 88.9 88.9-39.8 88.9-88.9c0-49.1-39.8-88.9-88.9-88.9zm42.2 110.7c-30.4 30.4-84.7 20.7-84.7 20.7s-9.8-54.2 20.7-84.7C89 30.9 117 31.6 134.7 49.2s18.3 45.7 1.4 62.6z"}),(0,a.jsx)("path",{d:"M104.1 53.2l-8.7 17.9-17.9 8.7 17.9 8.7 8.7 17.9 8.7-17.9 17.9-8.7-17.9-8.7z"})]})]}),d=(0,r.memo)(s);e.s(["MapboxAttribution",0,s,"default",0,d],892186);let c=(0,e.i(294237).cva)("inline-block rounded-full border-solid animate-spin box-border",{variants:{size:{sm:"w-4 h-4 border-[2px]",md:"w-6 h-6 border-[2px]",lg:"w-8 h-8 border-[3px]"},variant:{white:"border-white border-b-transparent",primary:"border-brand-400 border-b-transparent",black:"border-[#252422] border-b-transparent"}},defaultVariants:{size:"sm",variant:"black"}});e.s(["Loader",0,({className:e,size:t,variant:r,label:l})=>(0,a.jsx)("div",{className:(0,i.cn)(c({size:t,variant:r}),e),"aria-label":l})],846871)},955230,e=>{"use strict";var t=e.i(297647),a=e.i(754500),r=e.i(710402),i=e.i(375570),l=e.i(472737),n=e.i(477716),s=e.i(381477),o=e.i(352194),d=e.i(475566),c=e.i(535836),u=e.i(61576),m=e.i(617874),h=e.i(674885),p=e.i(474245),f=e.i(911927);let x={width:568,height:320},g={sm:x,lg:{width:800,height:600}},v={0:{title:"Local Radar",layer:"twcRadarHcMosaic",style:"light",key:"radar",frames:1,frameRatio:2,attributionColor:"white"},1:{title:"Rain is in View",layer:"radarFcstV2",style:"light",key:"rainView",frames:13,frameRatio:2,attributionColor:"white"},2:{title:"Snow is in View",layer:"radarFcstV2",style:"light",key:"snowView",frames:12,frameRatio:2,attributionColor:"white"},3:{title:"Wintry Mix is in View",layer:"radarFcstV2",style:"light",key:"mixView",frames:13,frameRatio:2,attributionColor:"white"},4:{title:"Storms in View",layer:"radarFcstV2",style:"light",key:"stormView",frames:13,frameRatio:2,attributionColor:"white"},5:{title:"Lightning in View",layer:"radarFcstV2",vector:"600",style:"light",key:"lightningView",frames:13,frameRatio:2,attributionColor:"white"}};e.i(694914);var y=e.i(742740),b=e.i(395800),w=e.i(209241);let j=(e,t)=>{let a=(0,w.getLODPrecision)(t);return Number(e.toFixed(a))},C=(e,t,a,r,i,l)=>{let n;return"fts"===e&&0===a||"ts"===e&&a===t.ts.length-1?l:("fts"===e&&(n=(t.fts?.[a]??0)*1e3),"ts"===e&&(n=(t.ts?.[a]??0)*1e3),(0,y.formatHourlyDate)({date:n,locale:r,timeZone:i,minutes:!0}))};var N=e.i(11697);let T={revalidateOnFocus:!1,dedupingInterval:6e4};var I=e.i(632137),S=e.i(380993),A=e.i(240058),M=e.i(368847),_=e.i(892186);let k=({geocode:e,lod:a})=>{let r=(0,n.useMemo)(()=>{if(!(e&&a))return;let t=function(e,t){let[a="",r=""]=e.split(",")||[],i=parseFloat(a),l=parseFloat(r),n=j(i,t),s=j(l,t),o=i-n;return{dx:Math.abs(111.11*Math.cos((i-o/2)*Math.PI/180)*(l-s))/320*100,dy:Math.abs(111.11*o)/320*100}}(e,a);return{left:`calc(${50+t.dx}% - ${10}px)`,top:`calc(${50-t.dy}% - 20px)`}},[e,a]);return r?(0,t.jsx)("div",{className:"absolute h-[20px] w-[20px] rounded-full border-2 border-white bg-[#1944DE] opacity-95","data-testid":"LocationPin",style:r}):null},R=({mapImages:e,frame:a})=>{let r="absolute h-full w-full rounded-lg bg-[#9fcbf9]";return e.length?e.map((e,i)=>(0,t.jsx)("div",{className:`${r} bg-cover bg-center opacity-0 ${a===i?"!opacity-100":""}`,style:{backgroundImage:`url(${e.url})`}},e.id)):(0,t.jsx)("div",{className:r})};var P=e.i(846871);let L=({mapImages:e,geocode:a,lod:r=7,wwir:i,ctaLink:l,isLoading:s,enableAnimation:d=!0,enableLocationPin:c=!0,enableWWIRPhrase:u=!0,showMapBoxAttribution:m=!0,title:h,animationTiming:p=500})=>{let[f,x]=(0,n.useState)(0),g=(0,o.useTranslations)("DynamicMap"),{frames:v}=i.product,y=(0,n.useMemo)(()=>e.length{let e;if(!(d&&y.length>1))return void x(0);let t=setTimeout(()=>{e=setInterval(()=>{x(e=>(e+1)%y.length)},p)},1500);return()=>{clearTimeout(t),clearInterval(e)}},[y.length,d,p]);let w=i.product.attributionColor,j=l?A.default:"div";return(0,t.jsx)(S.Card,{className:"@container/dynamicMap","aria-label":`${h||g("radar")} - ${i.phrase}`,"data-testid":"DynamicMap",children:(0,t.jsxs)(j,{href:l||"#",className:"relative block h-80 @md/dynamicMap:h-100",children:[(0,t.jsx)(R,{mapImages:y,frame:f}),c&&e.length>0&&(0,t.jsx)(k,{geocode:a,lod:r}),s&&(0,t.jsx)(P.Loader,{className:"absolute top-1/2 left-1/2 -translate-1/2",variant:"white",size:"lg",label:"Loading"}),(0,t.jsxs)("div",{className:"absolute top-0 flex w-full items-start justify-between p-3",children:[b?.time?(0,t.jsx)(M.default,{variant:"Body.S",className:"justify-center rounded-lg bg-[rgba(37,36,34,0.8)] px-3 py-2 text-white","data-testid":"DynamicMapTimeStamp",children:b.time}):(0,t.jsx)("span",{}),m&&(0,t.jsx)(_.default,{position:"top-right",color:w,className:"relative"})]}),(0,t.jsxs)("div",{className:(0,I.cn)("absolute bottom-0 flex w-full items-end justify-between gap-1 p-3","@max-md/dynamicMap:flex-col @max-md/dynamicMap:items-start"),children:[(0,t.jsx)("span",{}),u&&i.phrase&&(0,t.jsx)(M.default,{variant:"Body.S",className:"max-w-[300px] items-center rounded-xl bg-white/80 px-3 py-2 shadow-lg","data-testid":"DynamicMapWeatherPhrase",children:i.phrase})]})]})})},E=({location:e,initializing:a,initialError:r,enableLocationPin:y,enableWWIRPhrase:w,enableAnimation:j,mapImageSize:I,showMapBoxAttribution:S,title:A})=>{let M=(0,i.useParams)()?.locale,{effectiveLocation:_,isLocationLoading:k}=(0,l.useLocationSource)({location:e}),{loadingData:R,error:P,wwir:E,geocode:D,lod:F,ctaUrl:B,mapImages:H,ctaText:O,isDashboard:U}=((e,t,a="sm")=>{let r=(0,o.useTranslations)("DynamicMap"),i=(0,d.useAtomValue)(h.userUnitPreferenceAtom),l=((0,m.unitsSystemByName)(i)||m.imperial).code,y=(0,f.useCscCountryCode)(),{ianaTimeZone:w,countryCode:j,geocode:I}=e||{},{data:S,isLoading:A,error:M}=(0,s.default)(I?["get-wwir-forecaset",I,l,t]:null,([e,t,a,r])=>(0,c.getWWIRForecast)({geocode:t,units:a,language:r}),T),{data:_,isLoading:k,error:R}=(0,s.default)(I?"get-dynamic-maps-tile-series":null,()=>(0,u.getDynamicMapsTileSeries)(),T),P=S?.forecast,L=(0,n.useMemo)(()=>{let e=P?.overall_type??0;return{...P,phrase:P?.phrase||"",product:v[e]}},[P]),{data:E,isLoading:D}=(0,N.useGetWeatherInsights)({geoCode:e?.geocode||null,insightType:p.InsightType.PRECIP_INSIGHT,locale:t,par:"twc",cscCountryCode:y}),F=E?.length?6:9,B=r("now"),H=(0,n.useMemo)(()=>I?((e,t,a)=>{if(!e)return[];let{mapImageSize:r,geocode:i,lod:l,locale:n,timeZone:s,countryCode:o,samsungMA:d,nowText:c}=a,u=t.product,{width:m,height:h}=g[r]||x,[p="",f=""]=i.split(",")||[],v=(0,b.getRoundedGeocode)(p,l),y=(0,b.getRoundedGeocode)(f,l),w=((e,t)=>{let{layer:a,frameRatio:r,frames:i}=t,l=e[a],n=l.series?.[0]?.fts||null,s=l.series||[];if(n){let e=n.slice().reverse(),t=i>1?e.slice(0,2*i):e.slice(0,1);return r&&(t=((e,t)=>{let a=[];for(let r=0;r{let u="specified"===s,{specifiedLocationData:m,specifiedLocationError:h,isSpecifiedLocationLoading:p}=(0,a.useSpecifiedLocation)(n),f=u&&m&&n?(0,r.fromLocationPoint)(m):void 0;return(0,t.jsx)(E,{location:f,initializing:u&&p,initialError:u?h:void 0,enableLocationPin:e,enableWWIRPhrase:i,enableAnimation:l,mapImageSize:o,showMapBoxAttribution:d,title:c})};e.s(["DynamicMapBlock",0,D,"default",0,D],955230)},481463,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getPollenDaypartUrlConfig=function({geocode:e,language:t,duration:a="3day"}){return{host:"api.weather.com",protocol:"https",pathname:`/v2/indices/pollen/daypart/${a}`,query:{geocode:e,format:"json",language:t,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},550008,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getPollenDaypart=n;let r=e.r(481463),i=e.r(678651),l=e.r(414655);async function n(e){let t=(0,r.getPollenDaypartUrlConfig)(e),a=(0,i.urlFrom)(t),n=await fetch(a,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return await (0,l.handleFetchResponse)(n)}},964530,e=>{"use strict";var t=e.i(297647),a=e.i(472737),r=e.i(352194),i=e.i(380993),l=e.i(240058),n=e.i(170689),s=e.i(47524),o=e.i(632137);let d=({value:e,maxValue:a,strokeColor:i,heading:d,description:c,icon:u,href:m})=>{let h=(0,r.useTranslations)("HealthAndActivities");return(0,t.jsxs)(l.default,{className:(0,o.cn)("flex items-center justify-between border-[#dedede] not-last:border-b-1","pt-[18px] pr-4 pb-[17px] pl-6"),href:m,children:[(0,t.jsx)(n.DonutChart,{value:e,maxValue:a,diameter:50,strokeWidth:4,strokeColor:i,icon:u,className:"min-w-[50px]"}),(0,t.jsxs)("div",{className:"ml-5 grow",children:[(0,t.jsx)("div",{className:"mb-1 text-lg leading-snug",children:h(d)}),(0,t.jsx)("div",{className:"text-sm leading-[1.25] text-[#6f7585]",children:h(c)})]}),(0,t.jsx)(s.ChevronRight,{className:"ml-2.5 w-4 shrink-0"})]})},c=({data:e=[]})=>{let a=(0,r.useTranslations)("HealthAndActivities");return e.length?(0,t.jsxs)(i.Card,{"data-testid":"HealthAndActivitiesModule","aria-label":a("healthAndActivities"),children:[(0,t.jsx)(i.CardHeader,{text:a("healthActivities")}),(0,t.jsx)(i.CardContent,{children:e.map(e=>(0,t.jsx)(d,{...e},e.heading))})]}):null};var u=e.i(16838),m=e.i(381477),h=e.i(550008),p=e.i(477716),f=e.i(747961);let x=(0,p.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"grass"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.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"})]})),g=p.default.forwardRef((e,a)=>(0,t.jsx)(f.BaseIcon,{ref:a,icon:x,...e}));g.displayName="Grass";var v=e.i(375570);let y={0:"None",1:"Low",2:"Moderate",3:"High",4:"VeryHigh"},b={0:"veryLowRisk",1:"lowRisk",2:"mediumRisk",3:"highRisk",4:"veryHighRisk"},w={0:"#00e838",1:"#a9eB02",2:"#ebbb02",3:"#f27200",4:"#ff0000"},j={0:"#D9DCFD",1:"#AEAFFF",2:"#868CFF",3:"#5151FF",4:"#17007E"};var C=e.i(738634);let N=(0,p.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Flu"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",children:[(0,t.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,t.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"})]})]})),T=p.default.forwardRef((e,a)=>(0,t.jsx)(f.BaseIcon,{ref:a,icon:N,...e}));T.displayName="Flu";var I=e.i(662023),S=e.i(475566),A=e.i(5397);let M=({location:e})=>{let{effectiveLocation:r,isLocationLoading:i,locationError:l}=(0,a.useLocationSource)({location:e}),{data:n,isLoading:s,error:o}=(e=>{let t=(0,v.useParams)(),a=t?.locale,{data:r,error:i,isLoading:l}=(0,m.default)(e?["pollen",e.geocode,a]:null,([e,t,a])=>(0,h.getPollenDaypart)({geocode:t,language:a}),{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:n,error:s,isLoading:o}=(0,m.default)(e?["cognitiveHealth",e.geocode,a]:null,([e,t,a])=>(0,C.getDailyCognitiveHealthForecast)({geocode:t,language:a,conditionType:"coldAndFlu"}),{revalidateOnFocus:!1,dedupingInterval:6e4}),d={locId:e?.placeId,locale:a},c=(0,I.useUrlTranslations)({key:"allergy",interpolationArgs:d}),u=r?function(e,t){let{pollenForecast12hour:a}=e,r=Object.entries({grass:a.grassPollenIndex[0]||0,ragweed:a.ragweedPollenIndex[0]||0,tree:a.treePollenIndex[0]||0}).sort(([e,t],[a,r])=>r-t)[0][0],i=a[`${r}PollenIndex`][0]||0,l=y[i],n=`${r}Pollen${l}`;return{value:i,maxValue:4,heading:"allergy",description:0!==i?n:"noPollenDetected",strokeColor:w[i],icon:g,href:t}}(r,c):void 0,p=(0,I.useUrlTranslations)({key:"coldFlu",interpolationArgs:d});return{data:[u,n?function(e,t){let{riskLevel:a}=e?.coldAndFlu||{},r=a?.[0];return null==r?null:{value:r,maxValue:4,heading:"coldFlu",description:`${b[r]}ColdFlu`,strokeColor:j[r],icon:T,href:t}}(n,p):void 0].filter(Boolean),isLoading:l||o,error:i||s}})(r),d=s||i,p=o||l,f=(0,S.useAtomValue)(A.showAdminHeaderAtom);return n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.DebugCollector,{componentName:"HealthAndActivities",data:{props:{location:e},state:{effectiveLocation:r,isLocationLoading:i,isLoading:d,data:n,error:p,componentState:p&&"error"||d&&"loading"||"ready"},performance:{renderCount:void 0}},enabled:f}),(0,t.jsx)(c,{data:n})]}):null};var _=e.i(754500),k=e.i(710402);let R=({locationProvider:e,locationEntry:a})=>{let r="specified"===e,{specifiedLocationData:i,specifiedLocationError:l,isSpecifiedLocationLoading:n}=(0,_.useSpecifiedLocation)(r?a:null);return r&&n?(0,t.jsx)("div",{children:"Loading location data..."}):r&&l?(0,t.jsxs)("div",{children:["Error loading location data: ",l.message]}):r&&i&&a?(0,t.jsx)(M,{location:(0,k.fromLocationPoint)(i)}):r?null:(0,t.jsx)(M,{})};e.s(["HealthAndActivitiesBlock",0,R,"default",0,R],964530)},495892,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.transformHourlyForecast=void 0,a.getHourlyForecast=h,a.mergeHourlyForecastWithAirQuality=p,a.getHourlyForecastWithAirQuality=f;let r=e.r(417669),i=e.r(678651),l=e.r(414655),n=e.r(992591),s=e.r(349262),o=e.r(358025),d=e.r(349262),c=e.r(861160),u=e.r(228071),m=e.r(980108);async function h(e){let t=(0,r.getHourlyForecastUrlConfig)(e),n=(0,i.urlFrom)(t),s=await fetch(n,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}}),o=await (0,l.handleFetchResponse)(s);return(0,a.transformHourlyForecast)(o)}function p(e,t){if(!t)return e;let a=new Map(t.forecast.map(e=>[e.validTimeGmt,e]));return e.map(e=>{let t=a.get(e.validTimeUtc);return t?{...e,airQualityIndex:t.airQualityIndex,airQualityCategory:t.airQualityCategory}:e})}async function f(e){let[t,a]=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)]);return p(t,a)}a.transformHourlyForecast=(0,n.createTransformer)(e=>({cloudCover:e.cloudCover??0,dayOfWeek:e.dayOfWeek??"",dayOrNight:e.dayOrNight??d.DayOrNight.DAY,expirationTimeUtc:e.expirationTimeUtc??0,iconCode:e.iconCode??0,iconCodeExtend:e.iconCodeExtend??0,precipChance:e.precipChance??0,precipType:e.precipType??o.PrecipType.RAIN,pressureMeanSeaLevel:e.pressureMeanSeaLevel??0,qpf:e.qpf??0,qpfSnow:e.qpfSnow??0,relativeHumidity:e.relativeHumidity??0,temperature:e.temperature??0,temperatureDewPoint:e.temperatureDewPoint??0,temperatureFeelsLike:e.temperatureFeelsLike??0,temperatureHeatIndex:e.temperatureHeatIndex??0,temperatureWindChill:e.temperatureWindChill??0,uvDescription:e.uvDescription??d.UVDescription.LOW,uvIndex:e.uvIndex??0,validTimeLocal:e.validTimeLocal??"",validTimeUtc:e.validTimeUtc??0,visibility:e.visibility??0,windDirection:e.windDirection??0,windDirectionCardinal:(0,c.normalizeCardinal)(e.windDirectionCardinal??d.WindDirectionCardinal.NORTH),windGust:e.windGust??null,windSpeed:e.windSpeed??0,wxPhraseLong:e.wxPhraseLong??"",wxPhraseShort:e.wxPhraseShort??"",wxSeverity:e.wxSeverity??0}))},986519,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.transformFifteenMinuteForecast=void 0,a.getFifteenMinuteForecast=c;let r=e.r(417669),i=e.r(678651),l=e.r(414655),n=e.r(992591),s=e.r(358025),o=e.r(349262),d=e.r(861160);async function c(e){let t=(0,r.getFifteenMinuteForecastUrlConfig)(e),n=(0,i.urlFrom)(t),s=await fetch(n,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:60}}),o=await (0,l.handleFetchResponse)(s);return(0,a.transformFifteenMinuteForecast)(o)}a.transformFifteenMinuteForecast=(0,n.createTransformer)(e=>({dayOfWeek:e.dayOfWeek??"",iconCode:e.iconCode??0,iconCodeExtend:e.iconCodeExtend??0,precipChance:e.precipChance??0,precipRate:e.precipRate??0,precipType:e.precipType??s.PrecipType.RAIN,relativeHumidity:e.relativeHumidity??0,snowRate:e.snowRate??0,temperature:e.temperature??0,temperatureFeelsLike:e.temperatureFeelsLike??0,validTimeLocal:e.validTimeLocal??"",windDirection:e.windDirection??0,windDirectionCardinal:(0,d.normalizeCardinal)(e.windDirectionCardinal??o.WindDirectionCardinal.NORTH),windSpeed:e.windSpeed??0,wxPhraseLong:e.wxPhraseLong??"",wxPhraseShort:e.wxPhraseShort??"",wxSeverity:e.wxSeverity??0}))},922033,505307,e=>{"use strict";var t=e.i(297647),a=e.i(375570),r=e.i(472737),i=e.i(477716),l=e.i(475566),n=e.i(674885),s=e.i(617874),o=e.i(349262),d=e.i(381477),c=e.i(495892),u=e.i(986519),m=e.i(911927),h=e.i(796424);let p=["rain","freezing_rain"],f=["snow","sleet"],x="#47A25D",g="#65B0C3",v="#DD85A7",y={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"};var b=e.i(474245),w=e.i(11697);let j=(e,t)=>{let{data:a,isLoading:r}=(0,w.useGetWeatherInsights)({geoCode:e?.geocode??null,insightType:b.InsightType.PRECIP_INSIGHT,locale:t}),l=(0,i.useMemo)(()=>a?.find(e=>e?.supplement?.precipSource==="wwir"),[a]);return{loadingInsight:r,insightHeadline:l?.insightHeadline[0]||"",insightTextLong:l?.insightTextLong[0]||""}};e.s(["usePrecipInsight",0,j],505307);let C={revalidateOnFocus:!1,dedupingInterval:6e4};var N=e.i(352194),T=e.i(380993),I=e.i(368847),S=e.i(240058),A=e.i(632137),M=e.i(742740),_=e.i(385277),k=e.i(307215),R=e.i(358025);let P={id:"barBackground",beforeDatasetsDraw(e,t,a){let{ctx:r,chartArea:{top:i},scales:{y:l}}=e;if(!l)return;let n=e.getDatasetMeta(0),s=a.floatPoint||0;n.data.forEach(e=>{var t,n,o,d,c;let u,{x:m,width:h}=e.getProps(["x","width"],!0);r.save(),r.fillStyle=a.color||"transparent",t=r,n=m-h/2,o=i,d=h,c=l.getPixelForValue(l.min+s)-i,u=Math.min(a.borderRadius??8,d/2,c/2),t.beginPath(),t.moveTo(n+u,o),t.lineTo(n+d-u,o),t.quadraticCurveTo(n+d,o,n+d,o+u),t.lineTo(n+d,o+c-u),t.quadraticCurveTo(n+d,o+c,n+d-u,o+c),t.lineTo(n+u,o+c),t.quadraticCurveTo(n,o+c,n,o+c-u),t.lineTo(n,o+u),t.quadraticCurveTo(n,o,n+u,o),t.closePath(),t.fill(),r.restore()})}},L={id:"extendXAxisLine",afterDraw(e,t,a){let{ctx:r,scales:i}=e,l=i.x,n=i.y,s=a.offset??20,o=(n?.bottom??0)+s;r.save(),r.beginPath(),r.strokeStyle=a.color||"black",r.lineWidth=a.lineWidth??1,r.moveTo((l?.left??0)-200,o),r.lineTo((l?.right??0)+200,o),r.stroke(),r.restore()}},E={id:"transitionLines",afterDatasetsDraw(e,t,a){let{ctx:r,scales:{x:i,y:l}}=e;l&&(r.save(),r.lineWidth=1,r.setLineDash([2,2]),function(e,t=function(e){return e}){if(null!=e){for(let a in e)if(!1===t(e[a],a,e))break}}(a.transitionPoints,(t,i)=>{let n=+i,s=e.getDatasetMeta(0),o=s.data[n],d=s.data[n-1];if(!o||!d)return;let{x:c}=o.getProps(["x"],!0),{x:u}=d.getProps(["x"],!0),m=(u+c)/2;r.beginPath(),r.strokeStyle=t,r.moveTo(m,l.top),r.lineTo(m,l.getPixelForValue(l.min+(a.floatPoint??0))),r.stroke()}),r.restore())}},D=({data:e,ianaTimeZone:a,locale:r})=>{let i=(0,N.useTranslations)("PrecipIntensity");return(0,t.jsxs)("table",{className:"hidden",children:[(0,t.jsx)("caption",{children:i("tableCaption")}),(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:i("time")}),(0,t.jsx)("th",{children:i("precipType")}),(0,t.jsx)("th",{children:i("precipLevel")})]})}),(0,t.jsx)("tbody",{children:e?.map(e=>0!==e.level?(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,M.formatHourlyDate)({date:e.validTimeLocal,locale:r,timeZone:a,minutes:!0})}),(0,t.jsx)("td",{children:e.precipType}),(0,t.jsx)("td",{children:e.level})]},e.validTimeLocal):null)})]})},F=({rtl:e,isSamsungTheme:a,radius:r=4,legendTypes:l})=>{let n=(0,N.useTranslations)("PrecipIntensity"),s=(0,i.useMemo)(()=>{let t=[{label:n("legendRain"),type:R.PrecipType.RAIN,color:x},{label:n("legendSnow"),type:R.PrecipType.SNOW,color:g},{label:n(a?"samsungLegendMix":"legendMix"),type:R.PrecipType.PRECIP,color:v}];return e?t.reverse():t},[a,e,n]);return(0,t.jsx)("div",{className:"mt-3 flex items-center justify-center gap-6",children:s.map(({label:e,type:a,color:i})=>(!l||l[a])&&(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("div",{style:{width:2*r,height:2*r,backgroundColor:i},className:"rounded-full"}),(0,t.jsx)("p",{className:"text-xs",children:e})]},a))})},B=async()=>{let{Chart:t,CategoryScale:a,LinearScale:r,BarController:i,BarElement:l}=await e.A(137688);return t.register(a,r,i,l),t},H=(0,i.memo)(({chartData:e,hasChartData:a,ianaTimeZone:r,locale:l,rootClass:n,rtl:s=!1,removeTransitionLines:o})=>{let d=(0,N.useTranslations)("PrecipIntensity"),c=(0,i.useRef)(null),u=(0,i.useRef)(null),[m,h]=(0,_.useClientContainerSize)(e=>es?[...e].reverse():e,[e,s]),b=(0,i.useMemo)(()=>e.reduce((e,{precipType:t})=>(e[t]=!0,e),{}),[e]),w=(0,i.useMemo)(()=>{let e=Object.values(R.PrecipType),t=0;for(let a of e)b[a]&&t++;return t>1},[b]),j=(0,i.useMemo)(()=>{let e=y.map(e=>e.level),t=y.map(({validTimeLocal:e})=>e),a=y.map(({precipType:e})=>e===R.PrecipType.RAIN?x:e===R.PrecipType.SNOW?g:v);return{labels:t,datasets:[{label:d("chartTitle"),data:e,backgroundColor:a,borderWidth:0,maxBarThickness:m?4:8,categoryPercentage:1,stack:"stack1",borderRadius:12,borderSkipped:!1}]}},[m,y,d]),C=(0,i.useMemo)(()=>({responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!1},transitionLines:{floatPoint:.5,transitionPoints:o?void 0:y.reduce((e,t,a)=>{if(a>0&&t.level>0&&y[a-1]&&t.precipType!==y[a-1]?.precipType){let r=v;p.includes(t.precipType)?r=x:f.includes(t.precipType)&&(r=g),e[a]=r}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:m?12:14},color:"#676767",callback:function(e,t){let a=new Date(this.chart.data.labels?.[t]||"");return 0===a.getMinutes()?(0,M.formatHourlyDate)({date:a,locale:l,timeZone:r,showShortDayperiod:!0}):m?null:""}}},y:{stacked:!0,min:-.5,max:9,position:s?"right":"left",grid:{display:!1,drawBorder:!1},ticks:{count:10,autoSkip:!1,display:!0,crossAlign:"far",font:{size:m?12:14},callback:function(e,t){return 2===t?d("chartLight"):8===t?d("chartHeavy"):""}},border:{display:!1}}}}),[o,y,m,s,d,l,r]);return((0,i.useEffect)(()=>{let e=!1;return!async function(){let t=await B(),a=c.current?.getContext("2d");e||a&&t&&(u.current=new t(a,{type:"bar",data:j,options:C,plugins:[P,L,E]}))}(),()=>{e=!0,u.current?.destroy()}},[j,C]),a)?(0,t.jsxs)("div",{ref:h,className:(0,A.cn)("@container/precipChart",n),dir:s?"rtl":void 0,children:[(0,t.jsx)(D,{data:e,ianaTimeZone:r,locale:l}),(0,t.jsx)("div",{className:(0,A.cn)("relative h-26 text-sm text-gray-500 @md/precipChart:h-30",s?"pr-2 @md/precipChart:pr-3 @xl/precipChart:pr-4":"pl-2 @md/precipChart:pl-3 @xl/precipChart:pl-4"),children:(0,t.jsx)("canvas",{ref:c})}),w&&(0,t.jsx)(F,{rtl:s,legendTypes:b,isSamsungTheme:!1})]}):null}),O=({location:e,locale:a,onlyChart:r,isLoading:i,chartData:l,hasChartData:n,rtl:s,removeTransitionLines:o,insightTextLong:d})=>{let c=(0,N.useTranslations)("PrecipIntensity");if(i||!i&&!n)return null;let u=()=>(0,t.jsx)(H,{chartData:l,hasChartData:n,ianaTimeZone:e?.ianaTimeZone,locale:a,rtl:s,removeTransitionLines:o});return r?u():n&&(0,t.jsxs)(T.Card,{className:"relative min-h-[100px] overflow-hidden","aria-label":c("chartTitle"),children:[(0,t.jsxs)(T.CardContent,{className:"p-0",children:[d&&(0,t.jsxs)(I.default,{variant:"Body.M",className:"mb-2",children:[(0,t.jsx)("span",{className:"font-bold",children:"Outlook:"})," ",d]}),u()]}),e&&(0,t.jsx)(S.default,{className:"absolute top-0 right-0 bottom-0 left-0",href:`/weather/hourbyhour/l/${e.placeId}`,"aria-label":c("viewHourlyForecast"),children:" "})]})};e.s(["default",0,({location:e,onlyChart:x,initializing:g,initialError:v})=>{let b=(0,a.useParams)()?.locale,{effectiveLocation:w,isLocationLoading:N}=(0,r.useLocationSource)({location:e}),{loadingForecast:T,chartData:I,hasChartData:S,insightTextLong:A}=((e,t)=>{let a=(0,l.useAtomValue)(n.userUnitPreferenceAtom),r=(0,s.unitsSystemByName)(a)||s.imperial,x=r.code,g=(0,m.useCscCountryCode)(),v="KR"===g,b=v&&e?.countryCode==="KR",{data:w,isLoading:N}=(0,d.default)(e&&b?["get-hourly-forecast",e.geocode,x,t,v?g:void 0]:null,([e,t,a,r,i])=>(0,c.getHourlyForecast)({geocode:t,units:a,language:r,cscCountryCode:i,duration:o.HourlyForecastDuration.TWO_DAY}),C),{data:T,isLoading:I}=(0,d.default)(e&&!b?["get-fifteen-minute-forecast",e.geocode,x,t]:null,([e,t,a,r])=>(0,u.getFifteenMinuteForecast)({geocode:t,units:a,language:r}),C),S=b?w:T,A=(0,i.useMemo)(()=>((e,t)=>{if(!e?.length)return[];let a=e.map(e=>(0,h.getNormalizedDateString)(e.validTimeLocal));return t?a.slice(0,7):a})(S,b),[S,b]),M=(0,i.useMemo)(()=>(S?(b?S?.slice(0,7)||[]:S||[]).map((e,t)=>{let a=e.iconCodeExtend,i=e.precipType,l=(({precipRate:e,iconCodeExtend:t,precipType:a,unitsSystem:r})=>{let i=r?.precip!=="in"?Number((e/25.4).toFixed(2)):e,l="precip"===a||0===e?y[t]:a;switch(!0){case p.includes(l):return((e=-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}})(i);case f.includes(l):return((e=-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}})(i);default:return 0}})({precipRate:b?e.qpf:e.precipRate,iconCodeExtend:a,precipType:i,unitsSystem:r});return{precipType:i,validTimeLocal:A[t],level:l}}):Array(7).fill({precipType:"",validTimeLocal:"",level:0}))||[],[S,b,A,r]),_=(0,i.useMemo)(()=>!!M?.find(({level:e})=>e>0),[M]),{loadingInsight:k,insightHeadline:R,insightTextLong:P}=j(e,t);return{loadingForecast:N||I,chartData:M,hasChartData:_,loadingInsight:k,insightHeadline:R,insightTextLong:P}})(w,b);return v?null:(0,t.jsx)(O,{location:w,locale:b,onlyChart:x,isLoading:g||N||T,chartData:I,hasChartData:S,insightTextLong:A})}],922033)},186526,e=>{"use strict";var t=e.i(297647),a=e.i(352194),r=e.i(472737),i=e.i(375570),l=e.i(477716),n=e.i(368847),s=e.i(877957),o=e.i(240058),d=e.i(380993),c=e.i(575658),u=e.i(475566),m=e.i(674885),h=e.i(617874),p=e.i(742740),f=e.i(548888),x=e.i(180193),g=e.i(546505),v=e.i(665488),y=e.i(632137),b=e.i(35520),w=e.i(529014),j=e.i(316078);let C=["temperatureFeelsLike","accumulation","windSpeed","pressureMeanSeaLevel","cloudCover","temperatureDewPoint","uvIndex","visibility","airQuality","relativeHumidity","windGust"],N=({forecast:e,timeZone:a,locale:r,fifteenMinute:i})=>{let l=(0,u.useAtomValue)(m.userUnitPreferenceAtom),s=(0,h.unitsSystemByName)(l);return(0,t.jsxs)("div",{className:(0,y.cn)("flex w-full items-center gap-4","@max-md/hourItem:gap-2"),children:[(0,t.jsx)("div",{className:(0,y.cn)("min-w-0","flex-[0_0_25%]","@md/hourItem:flex-[0_0_15%]","@lg/hourItem:flex-[0_0_14%]","@2xl/hourItem:flex-[0_0_12%]",{"pl-3":i}),children:(0,t.jsx)(n.default,{className:(0,y.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,p.formatHourlyDate)({date:e.validTimeLocal,locale:r,timeZone:a,minutes:i})})}),(0,t.jsx)("div",{className:(0,y.cn)("min-w-0","flex-[0_0_12%]","@md/hourItem:flex-[0_0_9%]","@lg/hourItem:flex-[0_0_8%]","@2xl/hourItem:flex-[0_0_8%]",{"pl-3":i}),children:(0,t.jsx)(n.default,{variant:i?"Body.M.Bold":"Body.L.Bold",children:(0,t.jsx)(x.Temperature,{value:e.temperature})})}),(0,t.jsxs)("div",{className:(0,y.cn)("min-w-0","relative flex h-6 items-center","flex-[0_0_10%]","@md/hourItem:flex-[0_0_6%]","@lg/hourItem:flex-[0_0_7%]","@2xl/hourItem:flex-[1_1_0%]"),children:[(0,t.jsx)(j.WxIcon,{iconCode:e.iconCode,className:"lightBG size-7 shrink-0 @md/hourItem:size-8",size:"lg",iconTheme:"lightBG","aria-label":e.wxPhraseLong||`Weather condition ${e.iconCode}`}),(0,t.jsx)(n.default,{variant:"Body.M",style:{wordBreak:"break-word"},className:"shrink pl-1.5 @max-2xl/hourItem:hidden",lineClamp:2,children:e.wxPhraseLong})]}),(0,t.jsx)("div",{className:(0,y.cn)("min-w-0","items-end @lg/hourItem:py-0.5","flex-[1_0_14.5%]","@md/hourItem:flex-[0_0_12.5%]","@lg/hourItem:flex-[0_0_20%]","@2xl/hourItem:flex-[0_0_20%]"),children:(0,t.jsx)(b.PrecipChance,{precipChance:e.precipChance,displayMode:"both",textClassName:"@lg/hourItem:hidden",progressClassName:"@max-lg/hourItem:hidden",iconClassName:"@max-lg/hourItem:size-3"})}),(0,t.jsx)("div",{className:(0,y.cn)("min-w-0","items-end @max-md/hourItem:hidden","@md/hourItem:flex-[0_0_13%]","@lg/hourItem:flex-[0_0_11%]","@2xl/hourItem:flex-[0_0_10%]"),children:(0,t.jsx)(n.default,{children:(0,t.jsx)(g.Percentage,{value:e.relativeHumidity})})}),(0,t.jsx)("div",{className:(0,y.cn)("min-w-0","items-end","flex-[0_0_23%]","@md/hourItem:flex-[0_0_15%]","@lg/hourItem:flex-[0_0_15%]","@2xl/hourItem:flex-[0_0_10%]"),children:(0,t.jsx)(n.default,{elementType:"div",children:(0,t.jsx)(f.Wind,{windSpeed:e.windSpeed,windDirectionCardinal:e.windDirectionCardinal,units:s.code,displayMode:"directional",className:"whitespace-nowrap",iconClassName:"size-3 @md/hourItem:size-4"})})}),(0,t.jsx)("div",{className:(0,y.cn)("min-w-0","@max-md/hourItem:hidden","@md/hourItem:flex-[0_0_15%]","@lg/hourItem:flex-[0_0_15%]","@2xl/hourItem:flex-[0_0_10%]"),children:(0,t.jsx)(n.default,{children:(0,t.jsx)(w.Accumulation,{precipType:e.precipType,qpf:"precipRate"in e?e.precipRate:e.qpf,qpfSnow:"snowRate"in e?e.snowRate:e.qpfSnow,units:s.code})})})]})},T=({forecast:e,fifteenMinuteItems:a,initial15MinsItems:r,timeZone:i,locale:l,itemIndex:n})=>(0,t.jsxs)(t.Fragment,{children:[!!r?.length&&(0,t.jsx)("div",{className:"border-grey-500 @container/hourItem gap-2 border-b",children:r.map(e=>(0,t.jsx)("div",{className:"py-3.5 pr-7",children:(0,t.jsx)(N,{forecast:e,locale:l,timeZone:i,fifteenMinute:!0})},e.validTimeLocal))}),(0,t.jsxs)(v.AccordionItem,{value:e.validTimeLocal,className:(0,y.cn)("border-grey-500 @container/hourItem gap-2 border-b py-3.5",{"[&[data-state=open]]:pb-0":!!a?.length}),children:[(0,t.jsx)(v.AccordionTrigger,{className:"items-center gap-1 p-0 @md/hourItem:gap-3",iconClassName:"mb-1 size-4",triggerContent:(0,t.jsx)(N,{forecast:e,locale:l,timeZone:i,showHeading:0===n})}),(0,t.jsxs)(v.AccordionContent,{children:[(0,t.jsx)(c.default,{dataPoints:e,fields:C,locale:l,className:"my-2 @md/hourItem:mt-4"}),!!a?.length&&(0,t.jsx)("div",{children:a.map(e=>(0,t.jsx)("div",{className:"py-3.5 pr-7 @max-md/hourItem:pr-5",children:(0,t.jsx)(N,{forecast:e,locale:l,timeZone:i,fifteenMinute:!0})},e.validTimeLocal))})]})]})]});var I=e.i(341669),S=e.i(506424);let A=({date:e,locale:t="en-US",timeZone:a})=>{if(!e)return"";let{cDate:r,cTimeZone:i}=(0,S.getCompatibleValues)({date:e,locale:t,timeZone:a});return new Intl.DateTimeFormat(t,{weekday:"long",day:"numeric",month:"long",timeZone:i}).format(r)};var M=e.i(23123),_=e.i(474245),k=e.i(952693),R=e.i(763635),P=e.i(747961);let L=(0,l.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.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,t.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"})]})),E=l.default.forwardRef((e,a)=>(0,t.jsx)(P.BaseIcon,{ref:a,icon:L,...e}));E.displayName="FairMostlyClearDay";let D=(0,l.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Sunny Day"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",children:[(0,t.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,t.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"})]})]})),F=l.default.forwardRef((e,a)=>(0,t.jsx)(P.BaseIcon,{ref:a,icon:D,...e}));F.displayName="SunnyDay";let B=(0,l.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Cloudy"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.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=l.default.forwardRef((e,a)=>(0,t.jsx)(P.BaseIcon,{ref:a,icon:B,...e}));H.displayName="Cloudy";let O=(0,l.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Rain Heavy"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",children:[(0,t.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,t.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"})]})]})),U=l.default.forwardRef((e,a)=>(0,t.jsx)(P.BaseIcon,{ref:a,icon:O,...e}));U.displayName="RainHeavy";let V=(0,l.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Clear Night"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.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"})]})),z=l.default.forwardRef((e,a)=>(0,t.jsx)(P.BaseIcon,{ref:a,icon:V,...e}));z.displayName="ClearNight";var W=e.i(402625);let $=({insightHeadline:e,insightTextLong:a,className:r,headlineClass:i,textClass:l,background:s,weatherMode:o})=>{if(!e&&!a)return null;let d="";return o&&(d="severe"===o?"warning":"watch"),(0,t.jsxs)("div",{className:(0,y.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,t.jsx)(W.default,{className:"mr-4 size-4.5 shrink-0"}):null,(0,t.jsxs)("div",{children:[e?(0,t.jsx)(n.default,{elementType:"h2",variant:"Body.M",className:(0,y.cn)("mb-2.5 text-base font-medium text-gray-500",i),children:e}):null,a?(0,t.jsx)(n.default,{variant:"Body.L.Bold",className:(0,y.cn)("font-semibold text-gray-800","watch"===d&&"text-sm text-white","warning"===d&&"text-sm text-[#ba0d00]",l),children:a}):null]})]})};var G=e.i(11697),q=e.i(922033),Q=e.i(505307);let Z=()=>{let e=(0,a.useTranslations)("DetailsTable");return(0,t.jsx)("div",{className:"@container/hourItem",children:(0,t.jsx)("div",{className:"mt-2 items-end gap-1 p-0 pr-7 @md/hourItem:gap-3",children:(0,t.jsxs)("div",{className:(0,y.cn)("flex w-full items-end gap-4","@max-md/hourItem:gap-2"),children:[(0,t.jsx)("div",{className:(0,y.cn)("min-w-0","flex-[0_0_25%]","@md/hourItem:flex-[0_0_15%]","@lg/hourItem:flex-[0_0_14%]","@2xl/hourItem:flex-[0_0_12%]")}),(0,t.jsx)("div",{className:(0,y.cn)("min-w-0","flex-[0_0_12%]","@md/hourItem:flex-[0_0_9%]","@lg/hourItem:flex-[0_0_8%]","@2xl/hourItem:flex-[0_0_8%]")}),(0,t.jsx)("div",{className:(0,y.cn)("min-w-0","flex-[0_0_10%]","@md/hourItem:flex-[0_0_6%]","@lg/hourItem:flex-[0_0_7%]","@2xl/hourItem:flex-[1_1_0%]")}),(0,t.jsx)("div",{className:(0,y.cn)("min-w-0","flex-[1_0_12.5%]","@md/hourItem:flex-[0_0_12.5%]","@lg/hourItem:flex-[0_0_20%]","@2xl/hourItem:flex-[0_0_20%]")}),(0,t.jsx)("div",{className:(0,y.cn)("min-w-0","items-end @max-md/hourItem:hidden","@md/hourItem:flex-[0_0_13%]","@lg/hourItem:flex-[0_0_11%]","@2xl/hourItem:flex-[0_0_10%]"),children:(0,t.jsx)(n.default,{variant:"Caption.M",color:"secondary",className:"hidden font-bold @md/hourItem:block",children:e("humidity")})}),(0,t.jsx)("div",{className:(0,y.cn)("min-w-0","items-end","flex-[0_0_23%]","@md/hourItem:flex-[0_0_15%]","@lg/hourItem:flex-[0_0_15%]","@2xl/hourItem:flex-[0_0_10%]"),children:(0,t.jsx)(n.default,{variant:"Caption.M",color:"secondary",className:"hidden font-bold @md/hourItem:block",children:e("wind")})}),(0,t.jsx)("div",{className:(0,y.cn)("min-w-0","@md/hourItem:flex-[0_0_15%]","@lg/hourItem:flex-[0_0_15%]","@2xl/hourItem:flex-[0_0_10%]"),children:(0,t.jsx)(n.default,{variant:"Caption.M",color:"secondary",className:"hidden font-bold @md/hourItem:block",children:e("precipitation")})})]})})})};var K=e.i(495406),Y=e.i(528600);let X=()=>(0,t.jsx)("div",{className:"relative z-1 -mt-32 -mb-2 flex items-center px-4 pb-4 max-lg:-mt-60 max-lg:h-60 max-lg:items-end max-lg:justify-center max-lg:px-2.5 max-lg:pb-2.5",style:{background:"linear-gradient(rgba(255, 255, 255, 0) 0%, #ffffff 100%)"},children:(0,t.jsxs)("div",{className:"border-brand-active box-border flex w-full rounded-md border bg-[rgba(255,255,255,0.75)]",children:[(0,t.jsxs)("div",{className:"box-content flex pl-[15px] max-lg:h-[53px] max-lg:pt-[15px]",children:[(0,t.jsxs)("svg",{width:"53px",height:"auto",viewBox:"0 0 52 52",children:[(0,t.jsx)("title",{children:"Hourly Subscription"}),(0,t.jsxs)("defs",{children:[(0,t.jsxs)("linearGradient",{x1:"50%",y1:"27.1512732%",x2:"50%",y2:"84.0143092%",id:"linearGradient-1",children:[(0,t.jsx)("stop",{stopColor:"#05336B",offset:"0%"}),(0,t.jsx)("stop",{stopColor:"#0D5AB9",offset:"100%"})]}),(0,t.jsx)("rect",{id:"path-2",x:"0",y:"0",width:"52",height:"52",rx:"26"}),(0,t.jsxs)("linearGradient",{x1:"54.1576441%",y1:"61.5117056%",x2:"79.7438622%",y2:"30.8238101%",id:"linearGradient-4",children:[(0,t.jsx)("stop",{stopColor:"#EBEBEB",stopOpacity:"0",offset:"0%"}),(0,t.jsx)("stop",{stopColor:"#FEFEFE",stopOpacity:"0.97187323",offset:"100%"}),(0,t.jsx)("stop",{stopColor:"#FFFFFF",offset:"100%"})]}),(0,t.jsxs)("linearGradient",{x1:"60.2488094%",y1:"60.0107334%",x2:"22.3406732%",y2:"37.5678784%",id:"linearGradient-5",children:[(0,t.jsx)("stop",{stopColor:"#EBEBEB",stopOpacity:"0",offset:"0%"}),(0,t.jsx)("stop",{stopColor:"#FFFFFF",offset:"100%"})]}),(0,t.jsx)("path",{d:"M15.2478169,12.7427796 C16.2855935,8.94382485 20.260057,6.66445201 24.1241188,7.6630344 C24.1241188,7.6630344 24.4111634,7.72815934 24.8969312,7.85840922 C26.1334309,3.34308016 30.328698,0 35.3188578,0 C40.7285443,0 45.210856,3.92920461 45.9836684,9.0306581 C46.1603112,8.98724148 46.2707129,8.96553317 46.2707129,8.96553317 C49.5386052,8.14061728 52.8948189,10.0509488 53.7559526,13.2637791 C53.9546758,14.02357 53.9988365,14.783361 53.9325955,15.5214436 C55.5665416,15.9556099 56.5822378,16.2161096 56.5822378,16.2161096 C58.1278625,16.6285676 59.033157,18.1698578 58.6136303,19.6894397 C58.2603447,21.0136467 57.0017645,21.8602709 55.654863,21.795146 L22.4680923,21.795146 C22.4680923,21.795146 21.0991104,21.7300211 20.3925391,21.5563546 C16.5284774,20.4926472 14.2100403,16.5634426 15.2478169,12.7427796 Z",id:"path-6"}),(0,t.jsxs)("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"linearGradient-7",children:[(0,t.jsx)("stop",{stopColor:"#FFFFFF",stopOpacity:"0.188717165",offset:"0%"}),(0,t.jsx)("stop",{stopColor:"#F7FDFF",stopOpacity:"0.2319848",offset:"0%"}),(0,t.jsx)("stop",{stopColor:"#6ADEF8",offset:"100%"})]}),(0,t.jsxs)("filter",{x:"-35.3%",y:"-35.3%",width:"170.6%",height:"170.6%",filterUnits:"objectBoundingBox",id:"filter-8",children:[(0,t.jsx)("feOffset",{dx:"0",dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"2",in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),(0,t.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0",type:"matrix",in:"shadowBlurOuter1",result:"shadowMatrixOuter1"}),(0,t.jsxs)("feMerge",{children:[(0,t.jsx)("feMergeNode",{in:"shadowMatrixOuter1"}),(0,t.jsx)("feMergeNode",{in:"SourceGraphic"})]})]})]}),(0,t.jsx)("g",{id:"Gating-Strategy-(Hourly/Daily)",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,t.jsx)("g",{id:"Desktop:-15-Minute-and-Hourly",transform:"translate(-458.000000, -3354.000000)",children:(0,t.jsx)("g",{id:"Group-14",transform:"translate(438.000000, 3328.000000)",children:(0,t.jsxs)("g",{id:"Circle",transform:"translate(20.000000, 26.000000)",children:[(0,t.jsx)("mask",{id:"mask-3",fill:"white",children:(0,t.jsx)("use",{xlinkHref:"#path-2"})}),(0,t.jsx)("use",{id:"Mask",fill:"url(#linearGradient-1)",xlinkHref:"#path-2"}),(0,t.jsxs)("g",{id:"Shape-Copy",opacity:"0.9",mask:"url(#mask-3)",transform:"translate(36.858083, 10.899327) scale(-1, 1) translate(-36.858083, -10.899327) ",children:[(0,t.jsx)("use",{fill:"url(#linearGradient-4)",xlinkHref:"#path-6"}),(0,t.jsx)("use",{fill:"url(#linearGradient-5)",xlinkHref:"#path-6"})]}),(0,t.jsx)("path",{d:"M45.2830915,24.2783054 L45.3612761,24.2922867 C45.5945778,24.357602 45.7348071,24.6087404 45.671311,24.8514433 L45.671311,24.8514433 L45.6638652,24.8902468 L43.6421232,32.7247054 L43.6321955,32.7488069 L41.9037354,39.4618191 C41.55461,40.7529406 40.2724844,41.5164785 39.0251058,41.1689338 C37.7675927,40.8189789 37.0225988,39.4777262 37.3580736,38.1721437 C37.4240516,37.9195592 37.5237427,37.6896302 37.6521827,37.4813926 L37.6521827,37.4813926 L44.8493772,24.5373997 C44.9416224,24.3429 45.15238,24.2346839 45.3612761,24.2922867 Z M52.8495881,22.2062839 C52.9669456,21.9961173 53.2148697,21.8990263 53.4432342,21.986645 C53.700811,22.0902483 53.8354419,22.3844815 53.7452646,22.652666 L53.7452646,22.652666 L53.7315475,22.6944033 L50.8006582,31.2520327 C50.4861807,32.1234842 49.5524011,32.5645381 48.698384,32.2291595 C47.8367462,31.895853 47.3856057,30.9033338 47.6906844,30.0117537 C47.747331,29.8415483 47.8321738,29.6873275 47.932766,29.5505712 L47.932766,29.5505712 L52.848572,22.2062839 Z",id:"Rain",fill:"url(#linearGradient-7)",mask:"url(#mask-3)"}),(0,t.jsx)("g",{id:"icon/common/clock",filter:"url(#filter-8)",mask:"url(#mask-3)",fill:"#EBBB02",children:(0,t.jsx)("g",{transform:"translate(-2.000000, 24.000000)",id:"icon-color",children:(0,t.jsx)("path",{d:"M17,0.333333333 C26.2039303,0.333333333 33.6666667,7.79517329 33.6666667,17 C33.6666667,26.2048267 26.2039303,33.6666667 17,33.6666667 C7.79249781,33.6666667 0.333333333,26.206606 0.333333333,17 C0.333333333,7.79339402 7.79249781,0.333333333 17,0.333333333 Z M17,2.8974359 C9.20868152,2.8974359 2.8974359,9.20943981 2.8974359,17 C2.8974359,24.7905602 9.20868152,31.1025641 17,31.1025641 C24.7878845,31.1025641 31.1025641,24.788643 31.1025641,17 C31.1025641,9.21135699 24.7878845,2.8974359 17,2.8974359 Z M17,6.1025641 C17.7080574,6.1025641 18.2820513,6.67655801 18.2820513,7.38461538 L18.2820513,14.1677705 C18.2820513,15.6411955 18.8673671,17.0542728 19.9092358,18.0961415 L25.5988548,23.7857605 C26.099527,24.2864327 26.099527,25.0981827 25.5988548,25.5988548 C25.0981827,26.099527 24.2864327,26.099527 23.7857605,25.5988548 L18.0961415,19.9092358 C16.5734102,18.3865046 15.7179487,16.3212377 15.7179487,14.1677705 L15.7179487,7.38461538 C15.7179487,6.67655801 16.2919426,6.1025641 17,6.1025641 Z"})})})]})})})})]}),(0,t.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",className:"relative -left-4.5 h-auto pb-9",children:[(0,t.jsx)("title",{children:"Lock"}),(0,t.jsxs)("g",{transform:"translate(1 1)",fill:"none",fillRule:"evenodd",children:[(0,t.jsx)("circle",{stroke:"#FFF",strokeWidth:"1.5",fill:"#000",cx:"9",cy:"9",r:"9"}),(0,t.jsx)("path",{d:"M5.775 8h6.45c.29 0 .525.235.525.525v4.45c0 .29-.235.525-.525.525h-6.45a.525.525 0 01-.525-.525v-4.45c0-.29.235-.525.525-.525zM9 4.5A2.5 2.5 0 0111.5 7v1h-5V7A2.5 2.5 0 019 4.5zm0 5.25a.5.5 0 01.5.5v1a.5.5 0 01-1 0v-1a.5.5 0 01.5-.5zM10.5 8V7a1.5 1.5 0 00-3 0v1h3z",fill:"#FFF"})]})]})]}),(0,t.jsxs)("div",{className:"flex grow-1 items-center gap-2 max-lg:ml-[-5px] max-lg:block",children:[(0,t.jsxs)("div",{className:"grow-1 py-[15px] max-lg:pr-[15px] max-lg:pb-0",children:[(0,t.jsx)("span",{className:"block text-[13px] leading-none text-[#838783] max-lg:pb-1",children:"Premium"}),(0,t.jsx)("span",{className:"block text-lg leading-[1.8] font-extrabold text-[#2b2b2b] max-lg:h-fit max-lg:pb-1 max-lg:leading-[1]",children:"Unlock more hourly forecasts"}),(0,t.jsxs)("div",{className:"tracking[-0.28px] inline-block text-sm leading-[1.3]",children:[(0,t.jsx)("span",{children:"Upgrade to Premium and get 192-hour forecasts, so you can plan further ahead."}),(0,t.jsx)("span",{className:"hidden pl-[5px] text-sm italic md:inline",children:"Level up your forecast."})]})]}),(0,t.jsx)("div",{className:"flex items-center py-[5px] pr-7.5 max-lg:block max-lg:px-0 max-lg:pb-2.5",children:(0,t.jsx)(o.default,{href:"/subscribe?tpcc=mktg-hourly-hourlyupsell-gopremium",className:(0,y.cn)("px-6 py-[9px] text-center text-sm font-semibold whitespace-nowrap normal-case max-lg:px-7.5 max-lg:py-2","bg-brand-400 text-primary-foreground inline-flex h-10 cursor-pointer items-center justify-center rounded-lg px-4 py-3 hover:bg-[#252C3F] focus:ring-2 focus:ring-blue-500 focus:ring-offset-0 focus:outline-none active:bg-[#0C1226]"),children:"Go Premium"})})]})]})});var J=e.i(652673),ee=e.i(409846);let et=({firstRow:e})=>(0,t.jsx)("div",{className:"border-grey-500 gap-1 border-b py-3",children:(0,t.jsx)(I.default,{skeletonClassName:`mt-1 w-full ${e?"h-69":"h-4"}`})}),ea={up:k.ArrowUp,down:R.ArrowDown,sun:F,cloud:H,rain:U,clear:F,"clear-night":z,fair:E},er=({location:e,locale:a})=>{let{insightTextLong:r}=(0,Q.usePrecipInsight)(e,a);return r?(0,t.jsx)($,{className:"px-4 py-2",headlineClass:"hidden",textClass:"text-sm m-0",insightTextLong:r}):null},ei=({adBlocks:e,adIndices:a,currentIndex:r})=>{let i=a.find(e=>e.adIndex===r);if(!i)return null;let l=e[a.indexOf(i)];return(0,t.jsx)(K.AdBlock,{className:"border-grey-500 my-0 border-b py-4 shadow-none",...l})},el=({location:e,hourlyForecast:r,mapped15MinsItems:i,initial15MinsItems:c,isLoading:u,error:m,locale:h,showDayLabel:p,canToggleMultipleItems:f,ctaLink:x,ctaText:g,insight:y,insightIcon:b,showPrecipIntensity:w,simplifiedVersion:j,adBlocks:C,adIndices:N,locationTime:S})=>{let _=(0,a.useTranslations)("HourlyForecast"),k=(0,l.useMemo)(()=>S?(0,ee.formatTime)(S,h):"",[S,h]),R=b&&ea[b],{user:P}=(0,Y.useUser)(),{isUserPremium:L}=P,E=!L&&!j,D=r.length-1;return(0,t.jsxs)(d.Card,{"aria-label":_("hourlyWeather"),className:"not-prose @container/hourly","data-testid":"hourly-forecast",children:[(0,t.jsxs)(n.default,{elementType:"h1",variant:"Title.S",className:j?"pb-4":void 0,children:[_("hourlyWeather"),e?.presentationName&&k&&!j&&(0,t.jsxs)(n.default,{elementType:"span",variant:"Body.S",className:"block items-center pt-2",children:[(0,t.jsx)(J.LocationFilled,{className:"mr-1 size-4 align-text-top text-gray-500"}),(0,t.jsx)(n.default,{elementType:"span",variant:"Body.S",color:"primary",children:e?.presentationName}),(0,t.jsxs)(n.default,{elementType:"span",variant:"Body.S",color:"secondary",children:[" · as of ",k]})]})]}),(0,t.jsxs)(d.CardContent,{className:"p-0",children:[!j&&(0,t.jsx)(M.AlertHeadlines,{className:"my-4",location:e}),u?(0,t.jsx)(I.default,{skeletonClassName:"my-3 h-4 w-20 gap-1"}):y?(0,t.jsxs)("div",{className:"mt-2 mb-4 flex items-center gap-1",children:[R&&(0,t.jsx)("div",{children:(0,t.jsx)(R,{className:"text-brand-light size-5"})}),(0,t.jsx)(n.default,{variant:"Body.S.Bold",color:"brandLight",children:y})]}):"",w&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(er,{location:e,locale:h}),(0,t.jsx)("div",{className:"px-4 py-2",children:(0,t.jsx)(q.default,{location:e,onlyChart:!0})})]}),(()=>{if(m)return(0,t.jsx)(n.default,{variant:"Display.S",className:"flex min-h-48 items-center justify-center p-4",children:m?.message||_("errorMsg")});let a=[],d=j?4:192;for(let s=0;s(0,t.jsx)("div",{className:"blur-[6px]",children:(0,t.jsx)(T,{itemIndex:D,forecast:r[D],timeZone:e?.ianaTimeZone||"",locale:h,fifteenMinuteItems:i?.[D]})},l))]},y),x&&g&&!E&&(0,t.jsx)("div",{className:"pt-6",children:(0,t.jsx)(s.Button,{asChild:!0,children:(0,t.jsx)(o.default,{href:x,children:g})})}),E&&(0,t.jsx)(X,{})]})})()]})]})};var en=e.i(381477),es=e.i(495892),eo=e.i(349262),ed=e.i(738634);let ec=["trendingFeelsLikeInsight","trendingTemperatureInsight","trendingWindInsight","trendingUvIndexInsight"],eu=Math.floor(Math.random()*ec.length);var em=e.i(986519),eh=e.i(713272);let ep=({location:e,simplifiedVersion:n,initializing:s,initialError:o,adBlocks:d,adIndices:c})=>{let p=(0,i.useParams)(),f=p?.locale,x=(0,a.useTranslations)("HourlyForecast"),{effectiveLocation:g,isLocationLoading:v}=(0,r.useLocationSource)({location:e}),{hourlyForecast:y,loading:b,error:w,insight:j,insightIcon:C,mapped15MinsItems:N,initial15MinsItems:T,locationTime:I}=((e,t)=>{let a,r=(0,i.useParams)(),n=r?.locale,s=(0,u.useAtomValue)(m.userUnitPreferenceAtom),o=(0,h.unitsSystemByName)(s)?.code,{isUserPremium:d}=(0,Y.useUser)().user;a=t?eo.HourlyForecastDuration.ONE_DAY:d?eo.HourlyForecastDuration.TEN_DAY:eo.HourlyForecastDuration.THREE_DAY;let{data:c=[],error:p,isLoading:f}=(0,en.default)(e?["get-hourly-forecast",e.geocode,o,a,n]:null,([e,t,a,r,i])=>(0,es.getHourlyForecastWithAirQuality)({geocode:t,units:a,duration:r,language:i}),{revalidateOnFocus:!1,dedupingInterval:6e4}),x=(0,l.useMemo)(()=>t?c.slice(0,4):d?c.slice(0,192):c.slice(0,48),[c,t,d]),g=!d,{insight:v,insightIcon:y}=((e,t)=>{let a=(0,u.useAtomValue)(m.userUnitPreferenceAtom),r=(0,h.unitsSystemByName)(a)?.code,{data:i,isLoading:n}=(0,G.useGetWeatherInsights)({geoCode:e?.geocode||null,insightType:_.InsightType.ALL,locale:t}),s=(0,l.useMemo)(()=>i?.reduce((e,t)=>(e[t.insightType]=t,e),{}),[i]),{data:o=[],isLoading:d}=(0,en.default)(e?["get-daily-forecast",e.geocode,eo.ForecastDuration.THREE_DAY,r,t]:null,([e,t,a,r,i])=>(0,ed.getDailyForecast)({geocode:t,units:r,duration:a,language:i}),{revalidateOnFocus:!1,dedupingInterval:6e5}),c=n||d,p=o[0],f=(0,l.useMemo)(()=>{if(c)return"";let e=s?.significantWeatherTodayInsight?.insightText?.[0];if(e)return e;let t=p?.daypart?.[0]?.narrative;if(t)return t.split(".")[0];let a=ec[eu]||ec[0];return s?.[a]?.insightText?.[0]||""},[c,s,p?.daypart]);return(0,l.useMemo)(()=>{let e=function(e,t){if(void 0===t)return e.trim();var a=function(e,t){if(void 0===t)return e.trimEnd();let a=e.length;switch(typeof t){case"string":if(1!==t.length)throw Error("The 'chars' parameter should be a single character string.");for(;a>0&&e[a-1]===t;)a--;break;case"object":for(;a>0&&t.includes(e[a-1]);)a--}return e.substring(0,a)}(e,t);if(void 0===t)return a.trimStart();let r=0;switch(typeof t){case"string":for(;r{if(e){if(/(warmer|higher)/i.test(e))return"up";else if(/(cooler|lower)/i.test(e))return"down";else if(/(partly cloudy)/i.test(e)||/(sun)/i.test(e)&&/(cloud)/i.test(e))return"fair";else if(/(sunny|sunshine)/i.test(e))return"sun";else if(/(cloudy)/i.test(e))return"cloud";else if(/(shower|rain)/i.test(e))return"rain";else if(/(clear)/i.test(e))return/(night)/i.test(e)?"clear-night":"clear"}return null})(e):null;return{insight:e,insightIcon:t}},[f])})(e,n),{data:b=[],isLoading:w}=(0,en.default)(!t&&e?["get-fifteen-minute-forecast",e.geocode,o,n]:null,([e,t,a,r])=>(0,em.getFifteenMinuteForecast)({geocode:t,units:a,language:r}),{revalidateOnFocus:!1,dedupingInterval:6e4}),{mapped15MinsItems:j,initial15MinsItems:C}=(0,l.useMemo)(()=>t?{mapped15MinsItems:void 0,initial15MinsItems:void 0}:((e,t,a=!1)=>{if(!e.length||!t.length)return{mapped15MinsItems:[],initial15MinsItems:[]};let r=[],i=[],l=0,n=0,s=a?4:1/0,o=new Date(e[0].validTimeLocal).getTime();for(;l{let r=new Date(e.validTimeLocal).getTime(),o=r+36e5,d=[];for(;l=o)break;a!==r&&(d.push(e),n++),l++}i[a]=d}),{mapped15MinsItems:i,initial15MinsItems:r}})(x,b,g),[t,x,g,b]),N=e?.ianaTimeZone;return{hourlyForecast:x,loading:f||w,error:p,insight:v,insightIcon:y,mapped15MinsItems:j,initial15MinsItems:C,locationTime:(0,l.useMemo)(()=>N?(0,eh.convertToTimeInTimezone)(new Date,N):"",[N])}})(g,n),S=s||b||v||!y?.length;return(0,t.jsx)(el,{location:g,hourlyForecast:y,mapped15MinsItems:N,initial15MinsItems:T,locale:f,isLoading:S,error:o||w,showDayLabel:!n,canToggleMultipleItems:!n,ctaLink:n?`/weather/hourbyhour/l/${g?.placeId||p?.locId}`:`/weather/tenday/l/${g?.placeId||p?.locId}`,ctaText:x(n?"next48":"10DayWeather"),insight:j,insightIcon:C,showPrecipIntensity:!n,simplifiedVersion:n,adBlocks:d,adIndices:c,locationTime:I})};var ef=e.i(710402),ex=e.i(754500);let eg=({locationProvider:e,locationEntry:a,simplifiedVersion:r,adBlocks:i,adIndices:l})=>{let n="specified"===e,{specifiedLocationData:s,specifiedLocationError:o,isSpecifiedLocationLoading:d}=(0,ex.useSpecifiedLocation)(n?a:null),c=n&&s&&a?(0,ef.fromLocationPoint)(s):void 0;return(0,t.jsx)(ep,{location:c,simplifiedVersion:r??!1,initializing:n&&d,initialError:n?o:void 0,adBlocks:i??[],adIndices:l??[]})};e.s(["HourlyForecastBlock",0,eg,"default",0,eg],186526)},643548,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getTropicalCurrentPosition=n;let r=e.r(979777),i=e.r(678651),l=e.r(414655);async function n(e){let t=(0,r.getTropicalObservationsCurrentPositionUrlConfig)(e),a=(0,i.urlFrom)(t),n=await fetch(a,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(0,l.handleFetchResponse)(n)}},304524,e=>{"use strict";var t=e.i(297647),a=e.i(754500),r=e.i(710402),i=e.i(617874);e.i(694914);var l=e.i(477716),n=e.i(381477),s=e.i(475566),o=e.i(643548),d=e.i(674885),c=e.i(375570),u=e.i(395800),m=e.i(662023),h=e.i(289607);let p={lod:4,attr:0,format:"png",height:"320",width:"568",product:"9066",basemap:"dark",baseUrl:"https://api.weather.com/v2/maps/dynamic?"},f={revalidateOnFocus:!1,dedupingInterval:6e4};var x=e.i(352194),g=e.i(380993),v=e.i(548888),y=e.i(892186),b=e.i(240058),w=e.i(846871),j=e.i(632137);let C={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]"},N=({titleKey:e,outboundUrl:a,imageUrl:r,stormDetails:n,units:s,loading:o})=>{let d=(0,x.useTranslations)("HurricaneTracker"),c=(0,x.useTranslations)("DetailsTable"),{advisoryTime:u,stormName:m,stormType:h,stormTypeCode:p,stormSubTypeCode:f,maxWind:N,direction:T,speed:I,pressure:S}=n||{},A=((0,i.unitsSystemByCode)(s)??i.imperial).speed,M=(0,l.useMemo)(()=>{let e="l";return f&&(e=`cat${f}`),f||"TS"!==p||(e="ts"),e},[f,p]);return(0,t.jsxs)(g.Card,{"data-testid":"HurricaneTracker","aria-label":d(e),children:[e&&(0,t.jsx)(g.CardHeader,{text:d(e)}),(0,t.jsx)(g.CardContent,{className:"p-0",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)(b.default,{href:a,className:"block",children:[(0,t.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,t.jsx)("div",{className:"z-0 h-80 w-full rounded-lg bg-[#4d505b] bg-cover bg-center",style:r?{backgroundImage:`url(${r})`}:void 0}),null!=m&&(0,t.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,t.jsx)("div",{className:(0,j.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",C[M]),children:p}),(0,t.jsxs)("div",{className:"ml-2.5 flex flex-col",children:[(0,t.jsx)("div",{className:"text-base leading-[1.15] font-bold",children:`${h} ${m}`}),(0,t.jsx)("div",{className:"text-xs",children:u})]})]}),null!=I&&null!=T&&(0,t.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,t.jsxs)("li",{className:"mr-8",children:[(0,t.jsx)("div",{className:"text-xs",children:d("maxWinds")}),(0,t.jsx)("div",{className:"font-bold",children:(0,t.jsx)(v.Wind,{windSpeed:N??void 0,units:s})})]}),(0,t.jsxs)("li",{className:"mr-8",children:[(0,t.jsx)("div",{className:"text-xs",children:d("movement")}),(0,t.jsx)("div",{className:"font-bold",children:d("directionSpeedUnit",{direction:T,speed:I,windUnit:A})})]}),(0,t.jsxs)("li",{className:"mr-0",children:[(0,t.jsx)("div",{className:"text-xs",children:c("pressure")}),(0,t.jsx)("div",{className:"font-bold",children:S?`${S} mb`:"--"})]})]}),o&&(0,t.jsx)(w.Loader,{className:"absolute top-1/2 left-1/2 -translate-1/2",variant:"white",size:"lg",label:"Loading"})]}),(0,t.jsx)(y.MapboxAttribution,{position:"top-right",color:"white",className:"!top-[13px] !right-4 z-[1] [&_button]:!p-0",stack:!0})]})})]})};var T=e.i(472737);let I=({location:e,titleKey:a,zoom:r,stormId:x,basin:g,showPT:v,initializing:y,initialError:b})=>{let{effectiveLocation:w,isLocationLoading:j}=(0,T.useLocationSource)({location:e}),C=(0,s.useAtomValue)(d.userUnitPreferenceAtom),I=(0,i.unitsSystemByName)(C)?.code,{imageUrl:S,interactiveMapUrl:A,stormDetails:M,isLoading:_,error:k}=(({location:e,basin:t,showPT:a,stormId:r,overlays:x,zoom:g,stormIdSelectorName:v})=>{let{countryCode:y,placeId:b,ianaTimeZone:w}=e||{},j=(0,c.useParams)().locale||"en-US",C=j?.split("-")[0],N=(0,s.useAtomValue)(d.userUnitPreferenceAtom),T=((0,i.unitsSystemByName)(N)||i.imperial).code,I=(0,m.useUrlTranslations)({key:"radar",interpolationArgs:{locale:j,locId:b||""}}),{data:S,isLoading:A,error:M}=(0,n.default)(e?["getTropicalCurrentPosition",t||"all","default","false",T,j]:null,([e,t,a,r,i,l])=>(0,o.getTropicalCurrentPosition)({basin:t,source:a,nautical:r,units:i,language:l}),f),_=S?.advisoryinfo,k=(0,l.useMemo)(()=>{if(!_||!_.length)return;let e=new Date(Date.now()),t=[];return _.forEach(r=>{var i,l;let n=r?.currentposition?.storm_type_cd;if("RO"===n||"PT"===n&&!a)return;let s=new Date(r.adv_dt_tm),o=(i=e.toString(),l=s.toString(),i&&l?Math.floor((Date.parse(l)-Date.parse(i))/864e5):0);(0===o||-1===o)&&("AL"===r.basin?t.unshift(r):t.push(r))}),t.length>0?t:void 0},[_,a]),R=(0,l.useMemo)(()=>{if(!k||!r)return null;let e=k.find(e=>e.storm_id.toLowerCase()===r.toLowerCase());if(e)return e;let t=k.find(e=>e.storm_name.toLowerCase()===r.toLowerCase());return t||null},[k,r]),P=(0,l.useMemo)(()=>R||v?R:!R&&k?k[0]:null,[k,R,v]),L=(0,l.useMemo)(()=>{if(!P)return null;let e=P.currentposition?.storm_type_cd,t=P.currentposition?.storm_sub_type_cd,a=P.adv_dt_tm,r=P.currentposition?.min_pressure;return r&&"e"===T&&(r=Math.round(33.8639*r)),r||(r=null),{advisoryTime:(({date:e,locale:t="en-US",timeZone:a})=>{if(!e)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,h.formatIntlDateString)(e,t,a);let i=(0,h.formatIntlDateParts)(e,t,a,r),l=i.find(e=>"month"===e.type).value,n=i.find(e=>"day"===e.type).value,s=i.find(e=>"hour"===e.type).value,o=i.find(e=>"minute"===e.type).value,d=i.find(e=>"dayperiod"===e.type.toLowerCase()).value.toLowerCase();return`${l} ${n}, ${s}:${o} ${d}`})({date:a,locale:j,timeZone:w||"UTC"}),maxWind:P.currentposition?.max_sustained_wind,stormName:P.storm_name,stormSubType:P.currentposition?.storm_sub_type,stormSubTypeCode:t,stormType:P.currentposition?.storm_type,stormTypeCode:t?`CAT ${t}`:"TS"===e?"TS":"L",direction:P.currentposition?.heading?.storm_dir_cardinal,speed:P.currentposition?.heading?.storm_spd,pressure:r}},[P,j,w,T]),E=(0,l.useMemo)(()=>{if(!P)return null;let{lod:e,attr:t,format:a,height:r,width:i,product:l,basemap:n,baseUrl:s}=p,o=x||l,d=g||e,c=(0,u.getRoundedGeocode)(P.currentposition.lat,d),m=(0,u.getRoundedGeocode)(P.currentposition.lon,d),h=C&&["en","fr","es","de","ru","zu"].indexOf(C)>=0?C:"en",f=null;return"IN"===y&&(f="&region=in"),`${s}geocode=${c},${m}&h=${r}&w=${i}&lod=${d}&product=${o}&map=${n}&format=${a}&language=${h}&apiKey=71f92ea9dd2f4790b92ea9dd2f779061&a=${t}${f||""}`},[P,C,y,x,g]),D=(0,l.useMemo)(()=>{if(!P)return null;let e=!b,t=e?"/redir":I,a=P.storm_name,r=g||6,i=new URLSearchParams;return e&&(i.set("page","radar"),i.set("id","autodetect")),i.set("base","roadsDark"),i.set("zoom",String(r)),a&&i.set("collection",a),`${t}?${i.toString()}`},[P,b,I,g]);return{tropicalStorms:_,isLoading:A,error:M,allActiveStorms:k,queriedStorm:R,stormData:P,stormDetails:L,imageUrl:E,interactiveMapUrl:D}})({location:w,zoom:r||void 0,stormId:x||void 0,basin:g||void 0,showPT:v||void 0});return b||k?null:(0,t.jsx)(N,{titleKey:a??"title",outboundUrl:A??"",imageUrl:S,units:I,stormDetails:M,loading:_||y||j})},S=({locationEntry:e,locationProvider:i,hideModule:l,...n})=>{let s="specified"===i,{specifiedLocationData:o,specifiedLocationError:d,isSpecifiedLocationLoading:c}=(0,a.useSpecifiedLocation)(l?null:e);if(l)return null;let u=s&&o&&e?(0,r.fromLocationPoint)(o):void 0;return(0,t.jsx)(I,{...n,location:u,initializing:s&&c,initialError:s?d:void 0})};e.s(["HurricaneTrackerBlock",0,S,"default",0,S],304524)},118794,e=>{"use strict";var t=e.i(297647),a=e.i(240058),r=e.i(632137),i=e.i(477716),l=e.i(37429);let n=i.default.forwardRef(({src:e,alt:a,caption:i,credit:n,width:s=320,height:o=180,shadow:d=!0,rounded:c=!0,className:u,sizes:m,priority:h,imageAttributes:p},f)=>{let x=!!(i||n);return(0,t.jsxs)("figure",{ref:f,className:(0,r.cn)(u),children:[(0,t.jsx)(l.Image,{src:e,alt:a,width:s,height:o,shadow:d,rounded:c,sizes:m,priority:h,...p}),x&&(0,t.jsxs)("figcaption",{className:"mt-2 text-sm leading-tight",children:[i&&(0,t.jsx)("p",{children:i}),n&&(0,t.jsxs)("p",{className:"m-0 text-gray-500",children:["(",n,")"]})]})]})});n.displayName="Figure";let s=({imageType:e,internalImageId:i,externalImageUrl:l,controls:s,altText:o,isPriorityImage:d,imageAttributes:c,linkUrl:u})=>{if(!e||!i&&!l)return(0,t.jsx)("div",{className:"text-center text-red-500",children:"Error: Missing data for the image block."});let m="internal"===e&&"object"==typeof i&&null!==i&&"url"in i,h=m?i?.url||"":l||"",p=m?i?.seo?.altText||"":o||"",f="",x="";s?.showCaption&&(m&&!s?.useImageCaption||"external"===e?(f=s?.caption||"",x=s?.credit||""):m&&(f=i?.caption||"",x=i?.seo?.credit||""));let g=(0,t.jsx)(n,{src:h,alt:p,caption:f,credit:x,priority:!!d,className:(0,r.cn)("my-4 flex flex-col",{"max-w-[480px]":s?.width==="half"}),sizes:"(max-width: 767px) 91vw, (max-width: 1280px) 64vw, 800px",imageAttributes:c});return u?(0,t.jsx)(a.default,{href:u,target:"_blank",rel:"noopener noreferrer nofollow",children:g}):g};e.s(["ImageBlock",0,s,"default",0,s],118794)},237454,e=>{"use strict";var t=e.i(297647);let a=()=>(0,t.jsx)("div",{children:"Live Blog Entries"});e.s(["LiveblogEntriesBlock",0,a,"default",0,a])},729496,e=>{"use strict";let t=(0,e.i(514514).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",()=>t],729496)},370220,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getEmailPreferencesStatusUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/status"}},a.getEmailPreferencesSetUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/set"}},a.getEmailPreferencesChangeEmailUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/change-email"}}},454307,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.setEmailPreferences=n,a.updateSubscription=s;let r=e.r(678651),i=e.r(414655),l=e.r(370220);async function n(e){let t=(0,l.getEmailPreferencesSetUrlConfig)(),a=(0,r.urlFrom)(t),n=JSON.stringify(function(e){let{subscriptions:t,email:a,mParticleId:r}=e,i={};return t&&(i.subscriptions=t),a&&(i.email=a),r&&(i.mParticleId=r),i}(e)),s=await fetch(a,{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,i.handleFetchResponse)(s)}async function s(e,t,a){return n({subscriptions:[{subscriptionGroupName:e,isSubscribed:t,...a&&{attributes:a}}]})}},451086,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getEmailPreferencesStatus=n;let r=e.r(678651),i=e.r(414655),l=e.r(370220);async function n(){let e=(0,l.getEmailPreferencesStatusUrlConfig)(),t=(0,r.urlFrom)(e),a=await fetch(t,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"},next:{revalidate:60}});return(0,i.handleFetchResponse)(a)}},952582,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.DEFAULT_SUBSCRIPTIONS=a.MARKETING_EMAILS_GROUP=a.DAILY_NEWSLETTERS_GROUP=void 0,a.DAILY_NEWSLETTERS_GROUP="daily-newsletters-1",a.MARKETING_EMAILS_GROUP="marketing-emails-1",a.DEFAULT_SUBSCRIPTIONS=[{subscriptionGroupName:a.DAILY_NEWSLETTERS_GROUP,subscriptionGroupId:"",isSubscribed:!1,attributes:{location:""}},{subscriptionGroupName:a.MARKETING_EMAILS_GROUP,subscriptionGroupId:"",isSubscribed:!1}]},695478,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.findSubscriptionGroup=void 0,a.findSubscriptionGroup=(e,t,a)=>e&&Array.isArray(e)?e.find(e=>e.subscriptionGroupName===t)||a||null:a||null},882684,e=>{"use strict";var t=e.i(297647),a=e.i(477716),r=e.i(729496),i=e.i(163163),l=e.i(514514);let n=(0,l.default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);var s=e.i(877957),o=e.i(985542),d=e.i(381477),c=e.i(612977),u=e.i(287638),m=/[\\\/_+.#"@\[\(\{&]/,h=/[\\\/_+.#"@\[\(\{&]/g,p=/[\s-]/,f=/[\s-]/g;function x(e){return e.toLowerCase().replace(f," ")}var g=e.i(867013),v=e.i(271818),y=e.i(461194),b=e.i(144977),w='[cmdk-group=""]',j='[cmdk-group-items=""]',C='[cmdk-item=""]',N=`${C}:not([aria-disabled="true"])`,T="cmdk-item-select",I="data-value",S=(e,t,a)=>{var r;return r=e,function e(t,a,r,i,l,n,s){if(n===a.length)return l===t.length?1:.99;var o=`${l},${n}`;if(void 0!==s[o])return s[o];for(var d,c,u,x,g=i.charAt(n),v=r.indexOf(g,l),y=0;v>=0;)(d=e(t,a,r,i,v+1,n+1,s))>y&&(v===l?d*=1:m.test(t.charAt(v-1))?(d*=.8,(u=t.slice(l,v-1).match(h))&&l>0&&(d*=Math.pow(.999,u.length))):p.test(t.charAt(v-1))?(d*=.9,(x=t.slice(l,v-1).match(f))&&l>0&&(d*=Math.pow(.999,x.length))):(d*=.17,l>0&&(d*=Math.pow(.999,v-l))),t.charAt(v)!==a.charAt(n)&&(d*=.9999)),(d<.1>d&&(d=.1*c),d>y&&(y=d),v=r.indexOf(g,v+1);return s[o]=y,y}(r=a&&a.length>0?`${r+" "+a.join(" ")}`:r,t,x(r),x(t),0,0,{})},A=a.createContext(void 0),M=a.createContext(void 0),_=a.createContext(void 0),k=a.forwardRef((e,t)=>{let r=U(()=>{var t,a;return{search:"",value:null!=(a=null!=(t=e.value)?t:e.defaultValue)?a:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),i=U(()=>new Set),l=U(()=>new Map),n=U(()=>new Map),s=U(()=>new Set),o=H(e),{label:d,children:c,value:u,onValueChange:m,filter:h,shouldFilter:p,loop:f,disablePointerSelection:x=!1,vimBindings:g=!0,...b}=e,_=(0,y.useId)(),k=(0,y.useId)(),R=(0,y.useId)(),P=a.useRef(null),L=W();O(()=>{if(void 0!==u){let e=u.trim();r.current.value=e,E.emit()}},[u]),O(()=>{L(6,q)},[]);let E=a.useMemo(()=>({subscribe:e=>(s.current.add(e),()=>s.current.delete(e)),snapshot:()=>r.current,setState:(e,t,a)=>{var i,l,n,s;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)z(),B(),L(1,V);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(R);e?e.focus():null==(i=document.getElementById(_))||i.focus()}if(L(7,()=>{var e;r.current.selectedItemId=null==(e=Q())?void 0:e.id,E.emit()}),a||L(5,q),(null==(l=o.current)?void 0:l.value)!==void 0){null==(s=(n=o.current).onValueChange)||s.call(n,null!=t?t:"");return}}E.emit()}},emit:()=>{s.current.forEach(e=>e())}}),[]),D=a.useMemo(()=>({value:(e,t,a)=>{var i;t!==(null==(i=n.current.get(e))?void 0:i.value)&&(n.current.set(e,{value:t,keywords:a}),r.current.filtered.items.set(e,F(t,a)),L(2,()=>{B(),E.emit()}))},item:(e,t)=>(i.current.add(e),t&&(l.current.has(t)?l.current.get(t).add(e):l.current.set(t,new Set([e]))),L(3,()=>{z(),B(),r.current.value||V(),E.emit()}),()=>{n.current.delete(e),i.current.delete(e),r.current.filtered.items.delete(e);let t=Q();L(4,()=>{z(),(null==t?void 0:t.getAttribute("id"))===e&&V(),E.emit()})}),group:e=>(l.current.has(e)||l.current.set(e,new Set),()=>{n.current.delete(e),l.current.delete(e)}),filter:()=>o.current.shouldFilter,label:d||e["aria-label"],getDisablePointerSelection:()=>o.current.disablePointerSelection,listId:_,inputId:R,labelId:k,listInnerRef:P}),[]);function F(e,t){var a,i;let l=null!=(i=null==(a=o.current)?void 0:a.filter)?i:S;return e?l(e,r.current.search,t):0}function B(){if(!r.current.search||!1===o.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(a=>{let r=l.current.get(a),i=0;r.forEach(t=>{i=Math.max(e.get(t),i)}),t.push([a,i])});let a=P.current;Z().sort((t,a)=>{var r,i;let l=t.getAttribute("id"),n=a.getAttribute("id");return(null!=(r=e.get(n))?r:0)-(null!=(i=e.get(l))?i:0)}).forEach(e=>{let t=e.closest(j);t?t.appendChild(e.parentElement===t?e:e.closest(`${j} > *`)):a.appendChild(e.parentElement===a?e:e.closest(`${j} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let a=null==(t=P.current)?void 0:t.querySelector(`${w}[${I}="${encodeURIComponent(e[0])}"]`);null==a||a.parentElement.appendChild(a)})}function V(){let e=Z().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(I);E.setState("value",t||void 0)}function z(){var e,t,a,s;if(!r.current.search||!1===o.current.shouldFilter){r.current.filtered.count=i.current.size;return}r.current.filtered.groups=new Set;let d=0;for(let l of i.current){let i=F(null!=(t=null==(e=n.current.get(l))?void 0:e.value)?t:"",null!=(s=null==(a=n.current.get(l))?void 0:a.keywords)?s:[]);r.current.filtered.items.set(l,i),i>0&&d++}for(let[e,t]of l.current)for(let a of t)if(r.current.filtered.items.get(a)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=d}function q(){var e,t,a;let r=Q();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(a=null==(t=r.closest(w))?void 0:t.querySelector('[cmdk-group-heading=""]'))||a.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function Q(){var e;return null==(e=P.current)?void 0:e.querySelector(`${C}[aria-selected="true"]`)}function Z(){var e;return Array.from((null==(e=P.current)?void 0:e.querySelectorAll(N))||[])}function K(e){let t=Z()[e];t&&E.setState("value",t.getAttribute(I))}function Y(e){var t;let a=Q(),r=Z(),i=r.findIndex(e=>e===a),l=r[i+e];null!=(t=o.current)&&t.loop&&(l=i+e0?function(e,t){let a=e.nextElementSibling;for(;a;){if(a.matches(t))return a;a=a.nextElementSibling}}(a,w):function(e,t){let a=e.previousElementSibling;for(;a;){if(a.matches(t))return a;a=a.previousElementSibling}}(a,w))?void 0:a.querySelector(N);r?E.setState("value",r.getAttribute(I)):Y(e)}let J=()=>K(Z().length-1),ee=e=>{e.preventDefault(),e.metaKey?J():e.altKey?X(1):Y(1)},et=e=>{e.preventDefault(),e.metaKey?K(0):e.altKey?X(-1):Y(-1)};return a.createElement(v.Primitive.div,{ref:t,tabIndex:-1,...b,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=b.onKeyDown)||t.call(b,e);let a=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||a))switch(e.key){case"n":case"j":g&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":g&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),K(0);break;case"End":e.preventDefault(),J();break;case"Enter":{e.preventDefault();let t=Q();if(t){let e=new Event(T);t.dispatchEvent(e)}}}}},a.createElement("label",{"cmdk-label":"",htmlFor:D.inputId,id:D.labelId,style:G},d),$(e,e=>a.createElement(M.Provider,{value:E},a.createElement(A.Provider,{value:D},e))))}),R=a.forwardRef((e,t)=>{var r,i;let l=(0,y.useId)(),n=a.useRef(null),s=a.useContext(_),o=a.useContext(A),d=H(e),c=null!=(i=null==(r=d.current)?void 0:r.forceMount)?i:null==s?void 0:s.forceMount;O(()=>{if(!c)return o.item(l,null==s?void 0:s.id)},[c]);let u=z(l,n,[e.value,e.children,n],e.keywords),m=a.useContext(M),h=V(e=>e.value&&e.value===u.current),p=V(e=>!!c||!1===o.filter()||!e.search||e.filtered.items.get(l)>0);function f(){var e,t;x(),null==(t=(e=d.current).onSelect)||t.call(e,u.current)}function x(){m.setState("value",u.current,!0)}if(a.useEffect(()=>{let t=n.current;if(!(!t||e.disabled))return t.addEventListener(T,f),()=>t.removeEventListener(T,f)},[p,e.onSelect,e.disabled]),!p)return null;let{disabled:g,value:w,onSelect:j,forceMount:C,keywords:N,...I}=e;return a.createElement(v.Primitive.div,{ref:(0,b.composeRefs)(n,t),...I,id:l,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!h,"data-disabled":!!g,"data-selected":!!h,onPointerMove:g||o.getDisablePointerSelection()?void 0:x,onClick:g?void 0:f},e.children)}),P=a.forwardRef((e,t)=>{let{heading:r,children:i,forceMount:l,...n}=e,s=(0,y.useId)(),o=a.useRef(null),d=a.useRef(null),c=(0,y.useId)(),u=a.useContext(A),m=V(e=>!!l||!1===u.filter()||!e.search||e.filtered.groups.has(s));O(()=>u.group(s),[]),z(s,o,[e.value,e.heading,d]);let h=a.useMemo(()=>({id:s,forceMount:l}),[l]);return a.createElement(v.Primitive.div,{ref:(0,b.composeRefs)(o,t),...n,"cmdk-group":"",role:"presentation",hidden:!m||void 0},r&&a.createElement("div",{ref:d,"cmdk-group-heading":"","aria-hidden":!0,id:c},r),$(e,e=>a.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?c:void 0},a.createElement(_.Provider,{value:h},e))))}),L=a.forwardRef((e,t)=>{let{alwaysRender:r,...i}=e,l=a.useRef(null),n=V(e=>!e.search);return r||n?a.createElement(v.Primitive.div,{ref:(0,b.composeRefs)(l,t),...i,"cmdk-separator":"",role:"separator"}):null}),E=a.forwardRef((e,t)=>{let{onValueChange:r,...i}=e,l=null!=e.value,n=a.useContext(M),s=V(e=>e.search),o=V(e=>e.selectedItemId),d=a.useContext(A);return a.useEffect(()=>{null!=e.value&&n.setState("search",e.value)},[e.value]),a.createElement(v.Primitive.input,{ref:t,...i,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":d.listId,"aria-labelledby":d.labelId,"aria-activedescendant":o,id:d.inputId,type:"text",value:l?e.value:s,onChange:e=>{l||n.setState("search",e.target.value),null==r||r(e.target.value)}})}),D=a.forwardRef((e,t)=>{let{children:r,label:i="Suggestions",...l}=e,n=a.useRef(null),s=a.useRef(null),o=V(e=>e.selectedItemId),d=a.useContext(A);return a.useEffect(()=>{if(s.current&&n.current){let e=s.current,t=n.current,a,r=new ResizeObserver(()=>{a=requestAnimationFrame(()=>{let a=e.offsetHeight;t.style.setProperty("--cmdk-list-height",a.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(a),r.unobserve(e)}}},[]),a.createElement(v.Primitive.div,{ref:(0,b.composeRefs)(n,t),...l,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":o,"aria-label":i,id:d.listId},$(e,e=>a.createElement("div",{ref:(0,b.composeRefs)(s,d.listInnerRef),"cmdk-list-sizer":""},e)))}),F=a.forwardRef((e,t)=>{let{open:r,onOpenChange:i,overlayClassName:l,contentClassName:n,container:s,...o}=e;return a.createElement(g.Root,{open:r,onOpenChange:i},a.createElement(g.Portal,{container:s},a.createElement(g.Overlay,{"cmdk-overlay":"",className:l}),a.createElement(g.Content,{"aria-label":e.label,"cmdk-dialog":"",className:n},a.createElement(k,{ref:t,...o}))))}),B=Object.assign(k,{List:D,Item:R,Input:E,Group:P,Separator:L,Dialog:F,Empty:a.forwardRef((e,t)=>V(e=>0===e.filtered.count)?a.createElement(v.Primitive.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:a.forwardRef((e,t)=>{let{progress:r,children:i,label:l="Loading...",...n}=e;return a.createElement(v.Primitive.div,{ref:t,...n,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":l},$(e,e=>a.createElement("div",{"aria-hidden":!0},e)))})});function H(e){let t=a.useRef(e);return O(()=>{t.current=e}),t}var O="u"e(t.snapshot());return a.useSyncExternalStore(t.subscribe,r,r)}function z(e,t,r,i=[]){let l=a.useRef(),n=a.useContext(A);return O(()=>{var a;let s=(()=>{var e;for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():l.current}})(),o=i.map(e=>e.trim());n.value(e,s,o),null==(a=t.current)||a.setAttribute(I,s),l.current=s}),l}var W=()=>{let[e,t]=a.useState(),r=U(()=>new Map);return O(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,a)=>{r.current.set(e,a),t({})}};function $({asChild:e,children:t},r){let i;return e&&a.isValidElement(t)?a.cloneElement("function"==typeof(i=t.type)?i(t.props):"render"in i?i.render(t.props):t,{ref:t.ref},r(t.props.children)):r(t)}var G={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};let q=(0,l.default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);var Q=e.i(632137);function Z({className:e,...a}){return(0,t.jsx)(B,{"data-slot":"command",className:(0,Q.cn)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...a})}function K({className:e,...a}){return(0,t.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,t.jsx)(q,{className:"size-4 shrink-0 opacity-50"}),(0,t.jsx)(B.Input,{"data-slot":"command-input",className:(0,Q.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",e),...a})]})}function Y({className:e,...a}){return(0,t.jsx)(B.List,{"data-slot":"command-list",className:(0,Q.cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...a})}function X({className:e,...a}){return(0,t.jsx)(B.Group,{"data-slot":"command-group",className:(0,Q.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",e),...a})}function J({className:e,...a}){return(0,t.jsx)(B.Item,{"data-slot":"command-item",className:(0,Q.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",e),...a})}e.i(367810);let ee=(0,l.default)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);var et=e.i(375570);function ea({label:e,placeholder:r,className:i,location:l,onChangeLocation:m}){let h=(0,et.useParams)(),p=h?.locale,[f,x]=(0,a.useState)(!1),[g,v]=(0,a.useState)(""),{isLoading:y,data:b}=function(e,t){let a=e.trim().length>0,{isLoading:r,data:i,error:l}=(0,d.default)(a?["search/locations",encodeURIComponent(e)]:null,async()=>await (0,o.getLocationsByQuery)(e,t));return{isLoading:r,data:i,error:l}}((0,c.default)(g,300),p);return(0,t.jsxs)(u.Popover,{open:f,onOpenChange:x,children:[(0,t.jsx)(u.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)(s.Button,{variant:"outline",role:"combobox",className:(0,Q.cn)("text-muted-foreground flex w-full bg-white px-2 text-nowrap",i),children:[(0,t.jsx)("div",{children:y?(0,t.jsx)(n,{className:"animate-spin"}):(0,t.jsx)(ee,{})}),(0,t.jsx)("div",{className:"flex flex-1 px-2 text-start",children:l?.displayName??e})]})}),(0,t.jsx)(u.PopoverContent,{className:"w-[var(--radix-popover-trigger-width)]",showArrow:!1,children:(0,t.jsxs)(Z,{shouldFilter:!1,children:[(0,t.jsx)(K,{placeholder:r,value:g,onValueChange:v}),(0,t.jsx)(Y,{children:(0,t.jsx)(X,{children:b?.map(e=>(0,t.jsx)(J,{value:e.locId,onSelect:()=>{m?.(e),x(!1)},children:e.address},e.locId))})})]})})]})}var er=e.i(705482);function ei({label:e,error:a,className:r,...i}){return(0,t.jsxs)("div",{className:"w-full",children:[e&&(0,t.jsx)("label",{className:"text-sm",children:e}),(0,t.jsx)(er.Input,{...i,className:a?`${r} border-red-500`:r})]})}var el=e.i(240058);e.i(694914);let en={"{{terms}}":{text:"Terms",url:"https://weather.com/legal"},"{{privacy}}":{text:"Privacy Policy",url:"https://weather.com/en-US/twc/privacy-policy"}},es=/\{\{(.*?)\}\}/g;function eo(){return(0,t.jsx)("div",{className:"mt-4 text-xs",children:"By signing up you agree to the {{terms}} & {{privacy}}. Unsubscribe at any time.".split(es).map((e,a)=>{let r=en[`{{${e}}}`];return r?(0,t.jsx)(el.default,{href:r.url,className:"underline",children:r.text},a):(0,t.jsx)("span",{children:e},a)})})}let ed={src:e.i(15819).default,width:260,height:56,blurWidth:0,blurHeight:0},ec={src:e.i(217817).default,width:211,height:210,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAmElEQVR42n3KOwuCUACG4YNg2hAtRRcKotZIUmhpaAga+jlBe2sFDq0tTYEIgqOgm4uXP+DgJiiKg4OLyvEyOOnxhW/6HhCr+yg3mRw1YItbqxP8HqsvNBiIBOfD4OTLlIcEZA8j2NvilWp02gqqZiN8Irw3XNaCQN18jE8/9yUbKlRQHrABqvoERl6Pwwv/XP9daedkOp0Uh5SWl9jDjhIAAAAASUVORK5CYII="};var eu=e.i(66396),em=e.i(78160),eh=e.i(354622),ep=e.i(676037),ef=e.i(582853),ex=e.i(527983),eg=e.i(895711);let ev=em.IS_REACT_LEGACY?e=>{e()}:a.default.startTransition,ey=(0,eu.withMiddleware)(d.default,()=>(e,t,r={})=>{let{mutate:i}=(0,eu.useSWRConfig)(),l=(0,a.useRef)(e),n=(0,a.useRef)(t),s=(0,a.useRef)(r),o=(0,a.useRef)(0),[d,c,u]=(e=>{let[,t]=(0,a.useState)({}),r=(0,a.useRef)(!1),i=(0,a.useRef)(e),l=(0,a.useRef)({data:!1,error:!1,isValidating:!1}),n=(0,a.useCallback)(e=>{let a=!1,n=i.current;for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&n[t]!==e[t]&&(n[t]=e[t],l.current[t]&&(a=!0));a&&!r.current&&t({})},[]);return(0,eh.useIsomorphicLayoutEffect)(()=>(r.current=!1,()=>{r.current=!0})),[i,l.current,n]})({data:eg.UNDEFINED,error:eg.UNDEFINED,isMutating:!1}),m=d.current,h=(0,a.useCallback)(async(e,t)=>{let[a,r]=(0,ep.serialize)(l.current);if(!n.current)throw Error("Can’t trigger the mutation: missing fetcher.");if(!a)throw Error("Can’t trigger the mutation: missing key.");let d=(0,ef.mergeObjects)((0,ef.mergeObjects)({populateCache:!1,throwOnError:!0},s.current),t),c=(0,ex.getTimestamp)();o.current=c,u({isMutating:!0});try{let t=await i(a,n.current(r,{arg:e}),(0,ef.mergeObjects)(d,{throwOnError:!0}));return o.currentu({data:t,isMutating:!1,error:void 0})),null==d.onSuccess||d.onSuccess.call(d,t,a,d)),t}catch(e){if(o.currentu({error:e,isMutating:!1})),null==d.onError||d.onError.call(d,e,a,d),d.throwOnError))throw e}},[]),p=(0,a.useCallback)(()=>{o.current=(0,ex.getTimestamp)(),u({data:eg.UNDEFINED,error:eg.UNDEFINED,isMutating:!1})},[]);return(0,eh.useIsomorphicLayoutEffect)(()=>{l.current=e,n.current=t,s.current=r}),{trigger:h,reset:p,get data(){return c.data=!0,m.data},get error(){return c.error=!0,m.error},get isMutating(){return c.isMutating=!0,m.isMutating}}});var eb=e.i(454307),ew=e.i(947118),ej=e.i(737801),eC=e.i(343277),eN=e.i(475566),eT=e.i(451086);let eI=(0,e.i(233601).atomWithStorage)("emailPreferences",null,void 0,{getOnInit:!0});var eS=e.i(528600),eA=e.i(952582);let eM=()=>{let[e,t]=(0,eN.useAtom)(eI),{user:r}=(0,eS.useUser)(),i=r?.userID||null,l=r?.isUserLoggedIn||!1,n=(0,a.useCallback)(a=>{if(i){var r;let l,n;t({userId:i,expiry:Date.now()+9e5,subscriptions:(r=e?.subscriptions,l=r?.length?r:eA.DEFAULT_SUBSCRIPTIONS,n={},a?(l?.forEach(e=>{n[e.subscriptionGroupName]=e}),a.forEach(e=>{n[e.subscriptionGroupName]=e}),Object.values(n)):l)})}},[i,t,e?.subscriptions]),s=e&&e.userId===i&&e.expiry&&e.expiry>Date.now();return(0,d.default)(i&&l&&!s?`getEmailPreferencesStatus/${i}`:void 0,()=>(0,eT.getEmailPreferencesStatus)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:0,errorRetryCount:2,onSuccess:e=>{i&&e&&n(e.subscriptions)}}),{subscriptions:i&&e?e.subscriptions:null,updateSubscriptions:n}};async function e_(e,{arg:t}){let{email:a,location:r,locale:i,isAnonymous:l}=t,{location:n}=await (0,eC.getLocationPointByPlaceId)(r.placeId,i).catch(()=>({location:null})),s={subscriptions:[{subscriptionGroupName:e,isSubscribed:!0,attributes:{location:r.placeId,latitude:r.latitude,longitude:r.longitude,dmaCode:n?.dmaCd||null,adminDistrict:r.adminDistrict,adminDistrictCode:r.adminDistrictCode||null,postalCode:r.postalCode}}]};return l&&(s.email=a),await (0,eb.setEmailPreferences)(s).then(e=>({...e,sentSubscriptions:s.subscriptions}))}var ek=e.i(598513),eR=e.i(37429),eP=e.i(695478);let eL=()=>{let e=(0,et.useParams)(),l=(0,et.useSearchParams)(),o=e?.locale,{userProfile:d}=(0,eS.useUser)(),[c,u]=(0,a.useState)(d?.email??""),[m,h]=(0,a.useState)(null),[p,f]=(0,a.useState)(!1),{data:x,loading:g,onSubmit:v,error:y}=function(){let e,t,r,{updateSubscriptions:i}=eM(),l=(e="alert-subscription-changed",t=(0,ew.useIsInitialized)(),r=(0,ej.useEventAttributes)(),(0,a.useCallback)(({name:a,status:i})=>{let l={...r,name:a,status:i?"enabled":"disabled"};if(!t)return void console.warn("MParticle is not initialized");try{window.mParticle?.logEvent?.(e,window.mParticle?.EventType?.Other,l),console.debug(`MParticle: Event "${e}" tracked`,l)}catch(t){console.error(`MParticle: Event "${e}" failed`,t)}},[r,t])),{isMutating:n,trigger:s,data:o,error:d,reset:c}=ey("newsletter/signup/daily-newsletters-1",(e,t)=>e_("daily-newsletters-1",t));return{loading:n,error:d,data:o,onSubmit:(0,a.useCallback)(async e=>{let t=await s(e);return t.sentSubscriptions&&i(t.sentSubscriptions),"success"===t.status&&l({name:"newsletter",status:t.sentSubscriptions?.[0]?.isSubscribed||!1}),t},[l,s,i]),onReset:c}}(),b=l.get("cm_ven"),w=b?.startsWith("dnt_newsletter"),{subscriptions:j}=eM(),C=(0,ek.useSendInteractionEvent)(),N=(0,a.useMemo)(()=>(0,eP.findSubscriptionGroup)(j,eA.DAILY_NEWSLETTERS_GROUP),[j]),T=(0,a.useCallback)(async e=>{e.preventDefault(),!g&&c.trim()&&m&&(f(!0),C({interactionElement:"morningbrief signup",interactionType:"click",moduleId:"morning-brief-block"}),await v({email:c,location:m,locale:o,isAnonymous:!d?.email}))},[g,c,m,C,v,o,d?.email]);return!p&&N?.isSubscribed||w?null:(0,t.jsxs)("div",{"data-flatplan-id":"flatplan_signup_form",style:{backgroundImage:`url("${ec.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,t.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:gap-3",children:[(0,t.jsx)(eR.default,{src:ed.src,alt:"",className:"m-0 w-37.5",rounded:!1}),(0,t.jsx)("div",{className:"mb-1.5 hidden min-h-[24px] min-w-[2px] bg-black sm:block"}),(0,t.jsx)("div",{className:"text-lg font-semibold",children:"Weather in your inbox"})]}),x?.status==="success"?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(r.Check,{className:"h-6 w-6 text-green-500"}),(0,t.jsx)("div",{className:"text-sm text-gray-700",children:(0,t.jsx)("p",{children:"You are subscribed to the Morning Brief newsletter."})})]}):(0,t.jsxs)("form",{onSubmit:T,className:"flex flex-1 flex-col items-end gap-4 pt-4 lg:flex-row",children:[(0,t.jsx)(ei,{id:"email",required:!0,type:"email",placeholder:"Email",className:"h-12",value:c,onChange:e=>u(e.target.value),error:!!x?.emailError,disabled:!!d?.email}),(0,t.jsx)(ea,{label:"Forecast Location",placeholder:"Search City or Zip Code",className:"h-12 items-center text-sm",location:m,onChangeLocation:h}),(0,t.jsx)("div",{children:(0,t.jsxs)(s.Button,{type:"submit",className:"flex h-12 items-center gap-1 text-nowrap",disabled:g||!(c&&m),children:[(0,t.jsx)("span",{children:"Sign Up"}),g&&(0,t.jsx)(n,{className:"animate-spin"})]})})]}),y&&(0,t.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,t.jsx)(i.Info,{className:"h-6 w-6 text-red-500"}),(0,t.jsx)("div",{className:"text-sm",children:"Failed to subscribe, please try again."})]}),x?.status==="error"&&(0,t.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,t.jsx)(i.Info,{className:"h-6 w-6 text-red-500"}),(0,t.jsx)("div",{className:"text-sm",children:x.emailError??x.error})]}),(0,t.jsx)(eo,{})]})};eL.displayName="MorningBriefBlock",e.s(["MorningBriefBlock",0,eL,"default",0,eL],882684)},101676,e=>{"use strict";var t=e.i(297647),a=e.i(754500),r=e.i(710402),i=e.i(922033);let l=({locationEntry:e,locationProvider:l})=>{let n="specified"===l,{specifiedLocationData:s,specifiedLocationError:o,isSpecifiedLocationLoading:d}=(0,a.useSpecifiedLocation)(e),c=n&&s&&e?(0,r.fromLocationPoint)(s):void 0;return(0,t.jsx)(i.default,{location:c,initializing:n&&d,initialError:n?o:void 0})};e.s(["PrecipIntensityBlock",0,l,"default",0,l])},155879,e=>{"use strict";function t(e){return"object"==typeof e&&null!==e&&"url"in e&&("mimeType"in e||"seo"in e&&"altText"in e.seo)}e.s(["isImageObject",()=>t])},421956,e=>{"use strict";var t=e.i(297647),a=e.i(973421),r=e.i(240058),i=e.i(155879);let l=({title:e,image:l,subtitle:n,bodyText:s,ctaButton:o})=>{let d=o?.url&&/^https?:\/\//i.test(o.url),c=(0,i.isImageObject)(l)?l:null;return e||c&&c?.url||n||s||o?(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg bg-white",children:[e&&(0,t.jsx)("div",{className:"p-4",children:(0,t.jsx)("h3",{className:"text-xl font-semibold text-gray-900",children:e})}),(0,t.jsxs)("div",{className:"flex flex-col",children:[c?.url?(0,t.jsx)("div",{className:"relative aspect-[42/13] w-full overflow-hidden bg-white px-4 pt-4",children:(0,t.jsx)("div",{className:"relative h-full w-full overflow-hidden rounded-lg",children:(0,t.jsx)("a",{href:o&&o.url||"#",children:(0,t.jsx)(a.default,{src:c.url,alt:e||"Promo image",fill:!0,className:"object-cover"})})})}):null,(n||s||o)&&(0,t.jsxs)("div",{className:"p-4",children:[n&&(0,t.jsx)("a",{href:o&&o.url||"#",children:(0,t.jsx)("h4",{className:"mb-2 text-base font-bold",children:n})}),s&&(0,t.jsx)("a",{href:o&&o.url||"#",children:(0,t.jsx)("p",{className:"mb-4 text-base",children:s})}),o&&(0,t.jsx)("div",{className:"flex justify-end",children:d?(0,t.jsx)("a",{href:o.url||"#",target:o.openInNewTab?"_blank":"_self",rel:o.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:o.text}):(0,t.jsx)(r.default,{href:o.url||"#",target:o.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:o.text})})]})]})]}):null};e.s(["PromoDriverBlock",0,l,"default",0,l])},902748,e=>{"use strict";var t=e.i(297647),a=e.i(103860),r=e.i(155879),i=e.i(436028);let l=({slides:e=[],settings:l={},id:n})=>{if(!(0,i.hasLength)(e))return null;let s=[];for(let t of e){if(!t.imageAsset){console.error("Slide missing imageAsset:",t);continue}let e=(0,r.isImageObject)(t.imageAsset)?t.imageAsset:null;if(!e||!e.url){console.error("Invalid imageAsset or missing URL:",e);continue}let a={...e,seo:{...e.seo,caption:t.imageCaption||e.caption||"",altText:t.imageTitle&&""!==t.imageTitle.trim()?t.imageTitle:e.seo?.altText||""},...!t.imageTitle||""===t.imageTitle.trim()||/\.(jpg|jpeg|png|gif|webp|bmp|tiff|svg)$/i.test(t.imageTitle)||/^[A-Z0-9_]+\d*\.[a-zA-Z]+$/i.test(t.imageTitle)||/^[a-zA-Z0-9_-]+\d+$/i.test(t.imageTitle)||/[._][0-9]+/i.test(t.imageTitle)||/^[A-Z0-9_]+$/i.test(t.imageTitle)?{}:{filename:t.imageTitle}};s.push(a)}return 0===s.length?(console.error("SlideshowBlock - No valid assets after transformation"),(0,t.jsx)("div",{className:"text-center text-red-500",children:"Error: Could not load images for the slideshow."})):(0,t.jsx)(a.default,{id:n||`slideshow-${Math.random().toString(36).substring(2,9)}`,assets:s.slice(0,20),allSlides:s,totalAssets:s.length,rounded:l?.rounded||!1,blockType:"Slideshow",slides:e,settings:l,sendTrackString:()=>{}})};e.s(["SlideshowBlock",0,l,"default",0,l])},589234,e=>{"use strict";let t,a;var r=e.i(297647),i=e.i(477716),l=e.i(375570),n=e.i(438335),s=e.i(16838),o=e.i(632137),d=e.i(650561),c=e.i(528600),u=e.i(475566),m=e.i(49893),h=e.i(5397),p=e.i(572739);let f=function(){let{user:e}=(0,c.useUser)(),[t,a]=(0,i.useState)(!1),r=(0,u.useAtomValue)(p.dprSdkIsInitializedAtom);return(0,i.useEffect)(()=>{r&&a((()=>{try{if(void 0!==window?.DprSdk){let e=window?.DprSdk?.getFeatureFlags();return e?.taboola??!0}return!0}catch(e){return!0}})())},[r]),t&&!e?.isUserPremium},x=(t="",a=!1,()=>({pushTaboolaCommand:(0,i.useCallback)((e,r,i)=>{window._taboola=window._taboola||[],r!==t&&(""===t||a||(window._taboola.push({notify:"newPageLoad"}),a=!0),t=r,a=!1),window._taboola.push({[i]:"auto",url:r}),window._taboola.push(e),window._taboola.push({flush:!0})},[])})),g=({showTaboola:e=!0,...t})=>{let{user:a}=(0,c.useUser)(),i=(0,u.useAtomValue)(m.adsKillswitchAtom),l=f();return a.isUserPremium||i||!l||!e?null:(0,r.jsx)(v,{...t})},v=({taboolaId:e,taboolaUiMode:t,placementName:a,title:c="",pageType:m,taboolaType:p,loaderUrl:f})=>{let g=(0,i.useRef)(null),[v,y]=(0,i.useState)("pending"),b=(0,l.usePathname)(),{isTaboolaLoaded:w}=(e=>{let[t,a]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(t)return;if(document.getElementById("tb_loader_script"))return void a(!0);window._taboola=window._taboola||[],window.performance&&"function"==typeof window.performance.mark&&window.performance.mark("tbl_ic");let r=document.createElement("script");r.src=e,r.id="tb_loader_script",r.async=!0,r.onload=()=>{a(!0)},r.onerror=()=>{console.error("Failed to load Taboola script.")},document.body.appendChild(r)},[t,e]),{isTaboolaLoaded:t}})(f),{pushTaboolaCommand:j}=x(),C=(0,u.useAtomValue)(h.showAdminHeaderAtom),N=(0,i.useMemo)(()=>{let e=(0,n.getPublicURL)();return`${e}${b||""}`},[b]),T="empty"!==v,I=(0,i.useMemo)(()=>{let t="taboola-below-content-thumbnails---video"===e||"taboola-below-content-thumbnails-video"===e;return{container:T?"generic"!==p?"wx-media-object gradient-overlay thirdparty-feed border":t?"gap-2 py-0 md:rounded-md max-sm:rounded-none":"gap-2 py-5":"hidden",headerContainer:t?"mx-4 px-0 pt-6 max-sm:border-t max-sm:border-gray-200":"px-4",header:t?"text-[20px] font-semibold":"text-xl font-semibold",contentContainer:"z-40 px-4"}},[e,p,T]);return((0,i.useEffect)(()=>{w&&"pending"===v&&j({mode:t,container:e,placement:a,target_type:"mix"},N,m)},[w,v,j,e,t,a,N,m]),(0,i.useEffect)(()=>{let e=g.current;if(!e||!w)return;let t=new MutationObserver((t,a)=>{try{e.hasChildNodes()?(y("populated"),a.disconnect()):"pending"!==v&&(y("empty"),a.disconnect())}catch(e){console.warn("Error in TaboolaBlock content observer",e)}});return t.observe(e,{childList:!0}),e.hasChildNodes()&&(y("populated"),t.disconnect()),()=>t.disconnect()},[w,v]),w)?"invisible"===p?(0,r.jsx)("div",{id:e,ref:g}):(0,r.jsxs)("section",{className:"@container",children:[(0,r.jsx)(s.DebugCollector,{componentName:"TaboolaBlock",data:{props:{taboolaId:e,taboolaUiMode:t,placementName:a,title:c,taboolaType:p,pageType:m,pageUrl:N,taboolaContentState:v,shouldShow:T}},enabled:C}),"generic"===p?(0,r.jsxs)(d.Card,{className:I.container,children:[c&&T&&(0,r.jsx)(d.CardHeader,{className:I.headerContainer,children:(0,r.jsx)("h2",{className:I.header,children:c})}),(0,r.jsx)(d.CardContent,{className:(0,o.cn)(I.contentContainer),children:(0,r.jsx)("div",{id:e,className:"bg-none",ref:g})})]}):(0,r.jsxs)("div",{className:I.container,children:[c&&T&&(0,r.jsx)("header",{"aria-label":"Taboola",className:"panel-heading mb-2",children:(0,r.jsx)("h2",{"data-testid":"taboolaHeading",className:"text-lg font-medium",children:c})}),(0,r.jsx)("div",{id:e,className:"flex min-h-[300px] w-full items-center justify-center",ref:g})]})]}):null};e.s(["TaboolaBlock",0,g,"TaboolaBlockView",0,v,"default",0,g],589234)},621750,e=>{"use strict";var t=e.i(297647),a=e.i(477716);let r="twitter-script-loaded",i=({entryMethod:e,tweetURL:i,tweetId:l,showThread:n})=>{let s=(0,a.useRef)(null),o=(0,a.useCallback)(()=>"id"===e&&l?`https://twitter.com/i/status/${l}`:"url"===e&&i?i.replace("x.com","twitter.com"):null,[e,l,i]),{isLoaded:d}=function(){let[e,t]=(0,a.useState)(()=>!!(window.twttr&&window.twttr.widgets)),[i,l]=(0,a.useState)(null);return(0,a.useEffect)(()=>{if(e)return;if(!i){if(window.twttr&&window.twttr.widgets)return void t(!0);l(new Promise(e=>{if(window.twttr&&window.twttr.widgets){t(!0),e();return}let a=document.createElement("script");a.src="https://platform.twitter.com/widgets.js",a.async=!0,a.onload=()=>{t(!0);let a=new CustomEvent(r);window.dispatchEvent(a),e()},document.body.appendChild(a)}))}i&&i.then(()=>t(!0));let a=()=>t(!0);return window.addEventListener(r,a),()=>{window.removeEventListener(r,a)}},[e,i]),{isLoaded:e}}();return(0,a.useEffect)(()=>{let e=o();e&&(s.current&&(s.current.innerHTML=` `),d&&window.twttr&&window.twttr.widgets&&window.twttr.widgets.load(s.current))},[o,l,i,e,n,d]),(0,t.jsx)("div",{className:"flex items-center",ref:s})};e.s(["TwitterBlock",0,i,"default",0,i],621750)},286028,e=>{"use strict";var t=e.i(297647),a=e.i(477716),r=e.i(381477),i=e.i(777430),l=e.i(753145),n=e.i(484758),s=e.i(617843),o=e.i(33078),d=e.i(16838),c=e.i(436028),u=e.i(632137),m=e.i(528600),h=e.i(909232),p=e.i(475566),f=e.i(49893),x=e.i(5397);let g=(0,e.i(695881).createLogger)("video:events"),v=async e=>{let t=await fetch(e);if(!t.ok)throw Error(`Failed to fetch video data from ${e}`);return t.json()},y=({file:e,image:y,title:b,description:w,tracks:j=[],playlist:C,custom:N={},playerSettings:T,descriptionAttributes:I,videoReference:S,playlistsReference:A=[]})=>{let M=`video-player-${(0,a.useId)()}`,_=(0,a.useRef)(!0),k=(0,a.useRef)(null),R=(0,m.useUser)()?.user||{},P=(0,p.useAtomValue)(f.adsKillswitchAtom),L=(0,p.useAtomValue)(x.showAdminHeaderAtom),E=R.isUserPremium||P,D=(0,h.useClientMobileMedia)(),F=null;S&&("string"==typeof S?F=`/api/payload/videos/${S}`:"object"==typeof S&&(F=S?.id?`/api/payload/videos/${S.id}`:null));let{data:B,error:H}=(0,r.default)(F,v,{revalidateOnFocus:!1,dedupingInterval:3e5}),O=(0,o.useTrackVideoEvent)(),U=(0,a.useMemo)(()=>{let e=[];return!Array.isArray(j)&&j?.file?e.push(j):Array.isArray(j)&&e.push(...j),e},[j]),V=(0,a.useMemo)(()=>B&&Object.keys(B).length>0||S&&"string"!=typeof S,[B,S]),z=(0,a.useMemo)(()=>B&&Object.keys(B).length>0?B:S&&"string"!=typeof S?S:null,[B,S]),W=(0,a.useMemo)(()=>V&&z?.content?.videoFormatUrls?.length>0?z?.content?.defaultFormat?.url?z?.content?.defaultFormat?.url:z?.content?.videoFormatUrls?.[0]?.url:e,[V,z,e]),$=(0,a.useMemo)(()=>V&&(z?.content?.keyFrameImage||z?.seo?.image?.url)||y,[V,z,y]),G=(0,a.useMemo)(()=>V&&z?.title||b,[V,z,b]),q=(0,a.useMemo)(()=>V&&z?.description&&z.description.root?.children[0]?.children[0]?.text||w,[V,z,w]),Q=(0,a.useMemo)(()=>{if(k.current&&JSON.stringify({file:W,image:$,title:G,description:q,tracks:U,playlist:C,custom:N})===JSON.stringify(k.current))return k.current;let e=$||(W?(0,l.getVideoThumbnail)(W):null)||"https://s.w-x.co/wxnext/video-placeholder.jpg",t={file:W,image:e,title:G,description:q,tracks:U,custom:N};return k.current=t,t},[W,$,G,q,U,C,N]),Z=(0,a.useMemo)(()=>{let e=[];return C&&(e=((e,t)=>{if(!t?.file)return[];if("string"==typeof e)return t?.file?[t]:[];let a=Array.isArray(e)?e:[];return!t?.file||a.length>0&&a[0]?.file===t?.file?a:[t,...a.filter(e=>e.file!==t.file)]})(C,Q)||[]),A&&A.length,V&&z?.content?.playlists&&Array.isArray(z?.content?.playlists)&&z?.content?.playlists?.length,e.length>0?e:[Q]},[C,Q,A,z,V]);if((0,a.useEffect)(()=>{_.current=!0},[Z]),S&&"string"==typeof S&&!B&&!H)return(0,t.jsx)("div",{className:"flex h-32 items-center justify-center bg-gray-100",children:(0,t.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-t-2 border-b-2 border-gray-900"})});if(H)return(0,t.jsx)("div",{className:"flex h-32 items-center justify-center bg-red-100 text-red-800",children:(0,t.jsx)("span",{children:"Failed to load video data"})});if(!W)return null;let K=[...n.adEvents,...s.metricEvents].map(({eventName:e,callback:t})=>({eventName:e,callback:({event:a,player:r})=>{"time"!==e&&g.info(`[${e}]:`,a),t({event:a,player:r,isFirstPlayRef:_,user:R,trackVideoEvent:O,isMobile:D})}}));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.DebugCollector,{componentName:"VideoBlock",data:{props:{file:e,image:y,title:b,description:w,tracksCount:(0,c.hasLength)(U),hasPlaylist:!!C&&C.length>0,custom:N},state:{videoObject:Q,playlistItems:Z.length,isFirstPlay:_.current,events:K.map(e=>e.eventName)},performance:{}},enabled:L}),(0,t.jsx)("div",{className:"overflow-hidden rounded-lg",children:(0,t.jsx)(i.JWPlayer,{playlist:Z,events:K,setupParams:{ads:!E}},M)}),T?.showDescriptions&&(0,t.jsx)("p",{...I,className:(0,u.cn)("my-2 text-sm",I?.className),children:Q.title})]})};e.s(["VideoBlock",0,y,"default",0,y],286028)}]);