"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9452],{2666:(e,t,a)=>{a.d(t,{W:()=>r});let r=e=>e=12?3:(console.error("Default to 0. Could not get precision for level of detail",e),0)},13886:(e,t,a)=>{t.I=l;let r=a(47681),n=a(17681),o=a(36762);async function l(e){let t=(0,r.getSunV3WeatherInsightsUrlConfig)(e),a=(0,n.urlFrom)(t),l=await fetch(a,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(0,o.handleFetchResponse)(l)}},19375:(e,t,a)=>{a.d(t,{A:()=>d,L:()=>c});var r=a(76792),n=a(42292),o=a(48260);let l={"top-left":"top-0 left-0 flex-row","top-right":"top-0 right-0 flex-row-reverse","bottom-left":"bottom-0 left-0 flex-row","bottom-right":"bottom-0 right-0 flex-row-reverse"},i={blue:"fill-brand-300",white:"fill-white"},c=e=>{let{position:t="bottom-right",color:a="blue",className:c="",linksClassName:d="",stack:u=!1}=e,[p,f]=(0,n.useState)(!1);return(0,r.jsxs)("div",{className:(0,o.cn)("absolute flex items-start gap-1",l[t],c),children:[(0,r.jsx)("div",{className:"flex items-center","data-testid":"MapboxAttribution",children:(0,r.jsx)("button",{type:"button",className:(0,o.cn)("cursor-pointer p-0",i[a]),onClick:()=>{f(e=>!e)},"aria-label":"Map Attribution","data-testid":"MapboxLinks",children:(0,r.jsx)(s,{})})},"logo"),(0,r.jsxs)("div",{className:(0,o.cn)("flex-wrap rounded bg-white/75 p-1.5 text-xs shadow-md",p?"flex":"hidden",u?"flex-col space-y-1":"flex-row items-center space-x-2",d),children:[(0,r.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://mapbox.com/about/maps",className:"text-blue-600 hover:underline",children:"\xa9 ".concat(new Date().getFullYear()," Mapbox")}),(0,r.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.openstreetmap.org/about",className:"text-blue-600 hover:underline",children:"\xa9 OpenStreetMap"}),!u&&(0,r.jsx)("span",{className:"text-gray-400",children:"|"}),(0,r.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")]})},s=()=>(0,r.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,r.jsx)("title",{children:"Mapbox Logo"}),(0,r.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,r.jsxs)("g",{children:[(0,r.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,r.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,n.memo)(c)},38577:(e,t,a)=>{t.M=l;let r=a(17681),n=a(36762),o=a(54651);async function l(){let e=(0,o.getTileServerSeriesDynamicMapsUrlConfig)(),t=(0,r.urlFrom)(e),a=await fetch(t,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(await (0,n.handleFetchResponse)(a)).seriesInfo}},39825:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getDailyForecastUrlConfig=function(e){let{geocode:t,units:a,language:n,duration:o=r.ForecastDuration.FIVE_DAY,cscCountryCode:l}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/daily/".concat(o),query:{geocode:t,units:a,language:n,cscCountryCode:l||void 0,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getHourlyForecastUrlConfig=function(e){let{geocode:t,units:a,language:n,duration:o=r.HourlyForecastDuration.TWO_DAY,cscCountryCode:l}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/hourly/".concat(o),query:{geocode:t,units:a,language:n,cscCountryCode:l||void 0,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getFifteenMinuteForecastUrlConfig=function(e){let{geocode:t,units:a,language:r}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/fifteenminute",query:{geocode:t,units:a,language:r,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getMinutelyPrecipitationForecastUrlConfig=function(e){let{geocode:t,units:a,language:r,duration:n="60minute"}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/minutely/precipitation/".concat(n),query:{geocode:t,units:a,language:r,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getWWIRForecastUrlConfig=function(e){let{geocode:t,postalCode:a,units:r,language:n}=e;return{host:"api.weather.com",protocol:"https",pathname:a?"/v1/location/".concat(a,"/forecast/wwir.json"):"/v1/geocode/".concat(null==t?void 0:t.replace(",","/"),"/forecast/wwir.json"),query:{units:r,language:n,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}};let r=a(76088)},40358:(e,t,a)=>{a.d(t,{r:()=>s});var r=a(44615),n=a(13886),o=a(75302),l=a(32035),i=a(71666);let c={revalidateOnFocus:!1,dedupingInterval:6e4},s=e=>{let{key:t="get-weather-insights",geoCode:a,insightType:s,locale:d,par:u="twc",cscCountryCode:p}=e,f=(0,o.md)(l.Yt),h=((0,i.xP)(f)||i.AF).code;return(0,r.Ay)(a?[t,s,a,h,u,d]:null,e=>{let[t,a,r,o,l,i]=e;return(0,n.I)({geocode:r,units:o,language:i,insightType:a,par:l,cscCountryCode:"KR"===p?"KR":void 0})},c)}},44685:(e,t,a)=>{a.d(t,{I:()=>o});var r=a(63255),n=a(67810);function o(e){return{displayName:e.location.displayName,adminDistrict:e.location.adminDistrict,geocode:(0,r.S)("".concat(e.location.latitude,",").concat(e.location.longitude)),placeId:e.location.placeId,city:e.location.city,countryCode:e.location.countryCode,adminDistrictCode:e.location.adminDistrictCode||"",presentationName:(0,n.LM)(e.location),ianaTimeZone:e.location.ianaTimeZone,postalCode:e.location.postalCode}}},46593:(e,t,a)=>{a.d(t,{v:()=>l});var r=a(44615),n=a(87103),o=a(55198);let l=e=>{let t=(0,o.useParams)(),a=null==t?void 0:t.locale,{data:l,error:i,isLoading:c}=(0,r.Ay)(e?["/v3/location/point",e,a]:null,()=>e?(0,n.PT)(e,a):null,{revalidateOnFocus:!1,dedupingInterval:3e5});return{specifiedLocationData:l,specifiedLocationError:i,isSpecifiedLocationLoading:c}}},47681:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSunV3WeatherInsightsUrlConfig=function(e){let{geocode:t,placeId:a,postalKey:n,insightType:o=r.InsightType.ALL,units:l,language:i,par:c,cscCountryCode:s}=e,d={format:"json",units:l,language:i,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061",insightType:o,par:c,cscCountryCode:s};return t?d.geocode=t:a?d.placeid=a:n&&(d.postalKey=n),{host:"api.weather.com",protocol:"https",pathname:"/v3/insights",query:d}};let r=a(56768)},54651:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTileServerSeriesDynamicMapsUrlConfig=function(){return{host:"api.weather.com",protocol:"https",pathname:"/v3/TileServer/series/productSet/dynamicmaps",query:{apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},56768:(e,t)=>{var a;Object.defineProperty(t,"__esModule",{value:!0}),t.InsightType=void 0,function(e){e.ALL="all",e.BREAKING_VIDEO_INSIGHT="breakingVideoInsight",e.CHANCE_PRECIP_INSIGHT="chancePrecipInsight",e.SUNNY_DAY_INSIGHT="sunnyDayInsight",e.POLLEN_INSIGHT="pollenInsight",e.TEMPERATURE_CHANGE_INSIGHT="temperatureChangeInsight",e.TRENDING_TEMPERATURE_INSIGHT="trendingTemperatureInsight",e.SUN_INSIGHT="sunInsight",e.SHORT_TERM_PRECIP_INSIGHT="shortTermPrecipInsight",e.THUNDERSTORM_SOON_INSIGHT="thunderstormSoonInsight",e.SEVERE_STORM_INSIGHT="severeStormInsight",e.PRECIP_INSIGHT="precipInsight"}(a||(t.InsightType=a={}))},59452:(e,t,a)=>{a.r(t),a.d(t,{DynamicMapBlock:()=>L,default:()=>H});var r=a(76792),n=a(46593),o=a(44685),l=a(55198),i=a(61e3),c=a(42292),s=a(44615),d=a(47421),u=a(75302),p=a(66678),f=a(38577),h=a(71666),m=a(32035),g=a(56768),v=a(77962);let b={width:568,height:320},y={sm:b,lg:{width:800,height:600}},w={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"}};var x=a(62596),I=a(66020),N=a(2666);let j=(e,t)=>{let a=(0,N.W)(t);return Number(e.toFixed(a))},C=(e,t,a,r,n,o)=>{var l,i,c,s;let d;return"fts"===e&&0===a||"ts"===e&&a===t.ts.length-1?o:("fts"===e&&(d=(null!=(c=null==(l=t.fts)?void 0:l[a])?c:0)*1e3),"ts"===e&&(d=(null!=(s=null==(i=t.ts)?void 0:i[a])?s:0)*1e3),(0,x.P)({date:d,locale:r,timeZone:n,minutes:!0}))};var M=a(40358);let S={revalidateOnFocus:!1,dedupingInterval:6e4},T=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sm",r=(0,d.c3)("DynamicMap"),n=(0,u.md)(m.Yt),o=((0,h.xP)(n)||h.AF).code,l=(0,v.A)(),{ianaTimeZone:i,countryCode:x,geocode:N}=e||{},{data:j,isLoading:T,error:_}=(0,s.Ay)(N?["get-wwir-forecaset",N,o,t]:null,e=>{let[t,a,r,n]=e;return(0,p.U)({geocode:a,units:r,language:n})},S),{data:D,isLoading:R,error:F}=(0,s.Ay)(N?"get-dynamic-maps-tile-series":null,()=>(0,f.M)(),S),A=null==j?void 0:j.forecast,E=(0,c.useMemo)(()=>{var e;let t=null!=(e=null==A?void 0:A.overall_type)?e:0;return{...A,phrase:(null==A?void 0:A.phrase)||"",product:w[t]}},[A]),{data:P,isLoading:k}=(0,M.r)({geoCode:(null==e?void 0:e.geocode)||null,insightType:g.InsightType.PRECIP_INSIGHT,locale:t,par:"twc",cscCountryCode:l}),V=(null==P?void 0:P.length)?6:9,U=r("now"),L=(0,c.useMemo)(()=>N?((e,t,a)=>{if(!e)return[];let{mapImageSize:r,geocode:n,lod:o,locale:l,timeZone:i,countryCode:c,samsungMA:s,nowText:d}=a,u=t.product,{width:p,height:f}=y[r]||b,[h="",m=""]=n.split(",")||[],g=(0,I.S)(h,o),v=(0,I.S)(m,o),w=((e,t)=>{var a,r;let{layer:n,frameRatio:o,frames:l}=t,i=e[n],c=(null==(r=i.series)||null==(a=r[0])?void 0:a.fts)||null,s=i.series||[];if(c){let e=c.slice().reverse(),t=l>1?e.slice(0,2*l):e.slice(0,1);return o&&(t=((e,t)=>{let a=[];for(let r=0;r{let{geocode:t,lod:a}=e,n=(0,c.useMemo)(()=>{if(!(t&&a))return;let e=function(e,t){let[a="",r=""]=e.split(",")||[],n=parseFloat(a),o=parseFloat(r),l=j(n,t),i=j(o,t),c=n-l;return{dx:Math.abs(111.11*Math.cos((n-c/2)*Math.PI/180)*(o-i))/320*100,dy:Math.abs(111.11*c)/320*100}}(t,a),r={w:20,h:20};return{left:"calc(".concat(50+e.dx,"% - ").concat(r.w/2,"px)"),top:"calc(".concat(50-e.dy,"% - ").concat(r.h,"px)")}},[t,a]);return n?(0,r.jsx)("div",{className:"absolute h-[20px] w-[20px] rounded-full border-2 border-white bg-[#1944DE] opacity-95","data-testid":"LocationPin",style:n}):null},P=e=>{let{mapImages:t,frame:a}=e,n="absolute h-full w-full rounded-lg bg-[#9fcbf9]";return t.length?t.map((e,t)=>(0,r.jsx)("div",{className:"".concat(n," bg-cover bg-center opacity-0 ").concat(a===t?"!opacity-100":""),style:{backgroundImage:"url(".concat(e.url,")")}},e.id)):(0,r.jsx)("div",{className:n})};var k=a(89975);let V=e=>{let{mapImages:t,geocode:a,lod:n=7,wwir:o,ctaLink:l,isLoading:i,enableAnimation:s=!0,enableLocationPin:u=!0,enableWWIRPhrase:p=!0,showMapBoxAttribution:f=!0,title:h,animationTiming:m=500}=e,[g,v]=(0,c.useState)(0),b=(0,d.c3)("DynamicMap"),{frames:y}=o.product,w=(0,c.useMemo)(()=>t.length{let e;if(!(s&&w.length>1))return void v(0);let t=setTimeout(()=>{e=setInterval(()=>{v(e=>(e+1)%w.length)},m)},1500);return()=>{clearTimeout(t),clearInterval(e)}},[w.length,s,m]);let I=o.product.attributionColor,N=l?R.default:"div";return(0,r.jsx)(D.Zp,{className:"@container/dynamicMap border-0","aria-label":"".concat(h||b("radar")," - ").concat(o.phrase),"data-testid":"DynamicMap",children:(0,r.jsxs)(N,{href:l||"",className:"relative block h-80 @md/dynamicMap:h-100",children:[(0,r.jsx)(P,{mapImages:w,frame:g}),u&&t.length>0&&(0,r.jsx)(E,{geocode:a,lod:n}),i&&(0,r.jsx)(k.a,{className:"absolute top-1/2 left-1/2 -translate-1/2",variant:"white",size:"lg",label:"Loading"}),(0,r.jsxs)("div",{className:"absolute top-0 flex w-full items-start justify-between p-3",children:[(null==x?void 0:x.time)?(0,r.jsx)(F.Ay,{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:x.time}):(0,r.jsx)("span",{}),f&&(0,r.jsx)(A.A,{position:"top-right",color:I,className:"relative"})]}),(0,r.jsxs)("div",{className:(0,_.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,r.jsx)("span",{}),p&&o.phrase&&(0,r.jsx)(F.Ay,{variant:"Body.S",className:"max-w-[300px] items-center rounded-xl bg-white/80 px-3 py-2 shadow-lg","data-testid":"DynamicMapWeatherPhrase",children:o.phrase})]})]})})},U=e=>{var t;let{location:a,initializing:n,initialError:o,enableLocationPin:c,enableWWIRPhrase:s,enableAnimation:d,mapImageSize:u,showMapBoxAttribution:p,title:f}=e,h=null==(t=(0,l.useParams)())?void 0:t.locale,{effectiveLocation:m,isLocationLoading:g}=(0,i.s)({location:a}),{loadingData:v,error:b,wwir:y,geocode:w,lod:x,ctaUrl:I,mapImages:N,ctaText:j,isDashboard:C}=T(m,h,null!=u?u:"sm");return o||b?null:(0,r.jsx)(V,{isLoading:n||g||v,enableLocationPin:null!=c?c:void 0,enableWWIRPhrase:null!=s?s:void 0,enableAnimation:null!=d?d:void 0,showMapBoxAttribution:null!=p?p:void 0,title:null!=f?f:void 0,wwir:y,geocode:w,lod:x,ctaLink:I,mapImages:N,ctaText:j,isDashboard:C})},L=e=>{let{enableLocationPin:t,enableWWIRPhrase:a,enableAnimation:l,locationEntry:i,locationProvider:c,mapImageSize:s,showMapBoxAttribution:d,title:u}=e,p="specified"===c,{specifiedLocationData:f,specifiedLocationError:h,isSpecifiedLocationLoading:m}=(0,n.v)(i),g=p&&f&&i?(0,o.I)(f):void 0;return(0,r.jsx)(U,{location:g,initializing:p&&m,initialError:p?h:void 0,enableLocationPin:t,enableWWIRPhrase:a,enableAnimation:l,mapImageSize:s,showMapBoxAttribution:d,title:u})},H=L},62596:(e,t,a)=>{a.d(t,{P:()=>n});var r=a(79315);let n=e=>{var t,a,n,o,l,i,c,s,d;let{date:u,locale:p="en-US",timeZone:f,minutes:h,showTimeZone:m,showShortDayperiod:g,weekday:v}=e;if(!u)return"";let{cDate:b,cTimeZone:y}=(0,r.r)({date:u,locale:p,timeZone:f}),w={hour:"numeric",hour12:!0,timeZone:y};v&&(w.weekday=v),h&&(w.minute="2-digit"),"en-US"!==p&&"es-US"!==p&&(delete w.hour12,w.minute="2-digit",w.hourCycle="h23"),m&&(w.timeZoneName="short");let x=new Intl.DateTimeFormat(p,w);if(p.includes("-US")){let e=x.formatToParts(b),r=v&&(null==(t=e.find(e=>"weekday"===e.type))?void 0:t.value),i=null==(a=e.find(e=>"hour"===e.type))?void 0:a.value,c=h&&(null==(n=e.find(e=>"minute"===e.type))?void 0:n.value),s=null==(o=e.find(e=>"dayperiod"===e.type.toLowerCase()))?void 0:o.value.toLowerCase(),d=p.includes("en")?s:null==s?void 0:s.replace(/\./g,"").replace(/\s/g,""),u=g?"".concat(null==d?void 0:d[0]," "):" ".concat(d," "),f=m?null==(l=e.find(e=>"timeZoneName"===e.type))?void 0:l.value:"",y=v?"".concat(r," "):"";return"".concat(y).concat(i).concat(h?":".concat(c):"").concat(u).concat(f).trim()}if(g){let e=x.formatToParts(b),t=v&&(null==(i=e.find(e=>"weekday"===e.type))?void 0:i.value),a=null==(c=e.find(e=>"hour"===e.type))?void 0:c.value,r=h&&(null==(s=e.find(e=>"minute"===e.type))?void 0:s.value),n=m?null==(d=e.find(e=>"timeZoneName"===e.type))?void 0:d.value:"";return"".concat(v?"".concat(t," "):"").concat(a).concat(h?":".concat(r):""," ").concat(n).trim()}return x.format(b)}},66020:(e,t,a)=>{a.d(t,{S:()=>n});var r=a(2666);let n=(e,t)=>{let a=(0,r.W)(t),[n,o]=e.toString().split(".");if(void 0===o)return a>0?"".concat(n,".").concat("".padEnd(a,"0")):n;if(0===a)return n;let l=o.slice(0,a).split(""),i=parseInt(l[l.length-1],10);return i>0&&i{t.U=l;let r=a(39825),n=a(17681),o=a(36762);async function l(e){let t=(0,r.getWWIRForecastUrlConfig)(e),a=(0,n.urlFrom)(t),l=await fetch(a,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return await (0,o.handleFetchResponse)(l)}},69585:(e,t,a)=>{a.d(t,{Wu:()=>f,Zp:()=>u,aR:()=>p});var r=a(76792),n=a(42292),o=a(84057),l=a(30505),i=a(48260),c=a(68751),s=a(27370);let d=(0,l.F)("flex flex-col",{variants:{variant:{default:"bg-card text-card-foreground border-b",outline:"bg-card text-card-foreground overflow-hidden",ghost:"bg-transparent"},padding:{default:"",none:"",sm:"p-2",md:"p-4",lg:"p-6"},border:{default:"",none:"",lt:"border border-gray-200",md:"border border-gray-400",dk:"border 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:"pb-6 border-gray-500 last-of-type:border-0"},{variant:"outline",radius:"default",class:"rounded-md"},{variant:"outline",border:"default",class:"border bg-gray-100"},{variant:"outline",padding:"default",class:"p-4"}]}),u=n.forwardRef((e,t)=>{let{className:a,variant:n,padding:l,radius:c,border:s,asChild:u=!1,children:p,testId:f,...h}=e,m=u?o.DX:"section";return(0,r.jsx)(m,{className:(0,i.cn)(d({variant:n,padding:l,radius:c,border:s,interactive:u}),a),ref:t,...h,children:p})});u.displayName="Card";let p=n.forwardRef((e,t)=>{let{className:a,textVariant:n="Title.S",text:o,children:l}=e;return(0,r.jsx)(r.Fragment,{children:o?(0,r.jsx)(c.EY,{ref:t,className:(0,i.cn)("flex pb-4",a),variant:n,children:o}):l})});p.displayName="CardHeader";let f=n.forwardRef((e,t)=>{let{className:a,children:n,...o}=e;return(0,r.jsx)("div",{className:(0,i.cn)("flex-1",a),ref:t,...o,children:n})});f.displayName="CardContent",n.forwardRef((e,t)=>{let{className:a,ctaText:n,ctaHref:o,ctaTarget:l="_self",children:c,...d}=e;return(0,r.jsx)("footer",{className:(0,i.cn)("flex items-center pt-4",a),ref:t,...d,children:c||(n&&o?(0,r.jsx)(s.$n,{variant:"default",size:"sm",asChild:!0,children:(0,r.jsx)("a",{href:o,target:l,children:n})}):null)})}).displayName="CardFooter"},77962:(e,t,a)=>{a.d(t,{A:()=>r});let r=()=>""},79315:(e,t,a)=>{a.d(t,{r:()=>n});var r=a(99838);let n=e=>{let{date:t,timeZone:a}=e;return{cDate:new Date((0,r.$)(t)),cTimeZone:(e=>{try{return new Intl.DateTimeFormat("en-US",{timeZone:e}),e}catch(e){return"Etc/UTC"}})(a)}}},89975:(e,t,a)=>{a.d(t,{a:()=>i});var r=a(76792),n=a(30505),o=a(48260);let l=(0,n.F)("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"}}),i=e=>{let{className:t,size:a,variant:n,label:i}=e;return(0,r.jsx)("div",{className:(0,o.cn)(l({size:a,variant:n}),t),"aria-label":i})}},99838:(e,t,a)=>{a.d(t,{$:()=>r});function r(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}}}]);