(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[900],{568:(e,l,t)=>{"use strict";t.r(l),t.d(l,{TikTokAdminBlock:()=>d,default:()=>c});var a=t(76792);t(42292);var n=t(8818),i=t(82188),r=t(22901),s=t(73675);let o=e=>{let{url:l=""}=e,t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";for(let l of[/tiktok\.com\/@[\w.-]+\/video\/(\d+)/,/tiktok\.com\/v\/(\d+)/,/vm\.tiktok\.com\/([\w-]+)/,/m\.tiktok\.com\/v\/(\d+)/]){let t=null==e?void 0:e.match(l);if(t&&t[1])return t[1]}return null}(l);return t||l.includes("tiktok.com")?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.default,{async:!0,src:"https://www.tiktok.com/embed.js"}),(0,a.jsx)("div",{className:"flex w-full max-w-[605px] items-center justify-center",children:(0,a.jsx)("blockquote",{className:"tiktok-embed",cite:l,"data-video-id":t||void 0,style:{maxWidth:"605px",minWidth:"325px"},children:(0,a.jsx)("section",{children:(0,a.jsx)("a",{target:"_blank",rel:"noopener noreferrer",title:"TikTok Video",href:l,children:"View on TikTok"})})})})]}):null},d=()=>{let[e]=(0,n.kV6)(),l=(0,i.r)(e,!0);return(0,a.jsxs)(r.default,{name:"TikTok",children:[(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Video URL:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:(null==l?void 0:l.url)||"Not provided"})]}),(0,a.jsx)(o,{url:null==l?void 0:l.url})]})},c=d},1247:(e,l,t)=>{"use strict";l.j=r;let a=t(17681),n=t(36762),i=t(84015);async function r(){let e=(0,i.getEmailPreferencesStatusUrlConfig)(),l=(0,a.urlFrom)(e),t=await fetch(l,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"},next:{revalidate:60}});return(0,n.handleFetchResponse)(t)}},2362:(e,l)=>{"use strict";l.C=void 0,l.C=(e,l,t)=>e&&Array.isArray(e)?e.find(e=>e.subscriptionGroupName===l)||t||null:t||null},3916:(e,l,t)=>{"use strict";t.d(l,{y:()=>s});var a=t(76792),n=t(42292),i=t(23233);let r=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Arrow Down"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M3.353 9.767a.499.499 0 0 1 .705-.706L7.5 12.5V2.914a.5.5 0 0 1 1 0V12.5l3.443-3.438a.499.499 0 0 1 .705.706l-3.94 3.94a1 1 0 0 1-1.415 0z"})]})}),s=n.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:r,...e}));s.displayName="ArrowDown"},4459:(e,l,t)=>{"use strict";t.r(l),t.d(l,{MorningBriefBlock:()=>G,default:()=>Z});var a=t(76792),n=t(42292),i=t(29385),r=t(97935),s=t(4963),o=t(27370),d=t(94591),c=t(44615),u=t(46178),m=t(99551),h=t(31892),x=t(73455),v=t(48260);function p(e){let{className:l,...t}=e;return(0,a.jsx)(h.uB,{"data-slot":"command",className:(0,v.cn)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",l),...t})}function g(e){let{className:l,...t}=e;return(0,a.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,a.jsx)(x.A,{className:"size-4 shrink-0 opacity-50"}),(0,a.jsx)(h.uB.Input,{"data-slot":"command-input",className:(0,v.cn)("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",l),...t})]})}function f(e){let{className:l,...t}=e;return(0,a.jsx)(h.uB.List,{"data-slot":"command-list",className:(0,v.cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",l),...t})}function y(e){let{className:l,...t}=e;return(0,a.jsx)(h.uB.Group,{"data-slot":"command-group",className:(0,v.cn)("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",l),...t})}function b(e){let{className:l,...t}=e;return(0,a.jsx)(h.uB.Item,{"data-slot":"command-item",className:(0,v.cn)("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",l),...t})}t(79442);var w=t(65485),j=t(55198);function N(e){var l;let{label:t,placeholder:i,className:s,location:h,onChangeLocation:x}=e,N=(0,j.useParams)(),C=null==N?void 0:N.locale,[T,k]=(0,n.useState)(!1),[A,S]=(0,n.useState)(""),{isLoading:I,data:M}=function(e,l){let t=e.trim().length>0,{isLoading:a,data:n,error:i}=(0,c.Ay)(t?["search/locations",encodeURIComponent(e)]:null,async()=>await (0,d.SK)(e,l));return{isLoading:a,data:n,error:i}}((0,u.A)(A,300),C);return(0,a.jsxs)(m.AM,{open:T,onOpenChange:k,children:[(0,a.jsx)(m.Wv,{asChild:!0,children:(0,a.jsxs)(o.$n,{variant:"outline",role:"combobox",className:(0,v.cn)("text-muted-foreground flex w-full bg-white px-2 text-nowrap",s),children:[(0,a.jsx)("div",{children:I?(0,a.jsx)(r.A,{className:"animate-spin"}):(0,a.jsx)(w.A,{})}),(0,a.jsx)("div",{className:"flex flex-1 px-2 text-start",children:null!=(l=null==h?void 0:h.displayName)?l:t})]})}),(0,a.jsx)(m.hl,{className:"w-[var(--radix-popover-trigger-width)]",showArrow:!1,children:(0,a.jsxs)(p,{shouldFilter:!1,children:[(0,a.jsx)(g,{placeholder:i,value:A,onValueChange:S}),(0,a.jsx)(f,{children:(0,a.jsx)(y,{children:null==M?void 0:M.map(e=>(0,a.jsx)(b,{value:e.locId,onSelect:()=>{null==x||x(e),k(!1)},children:e.address},e.locId))})})]})})]})}var C=t(77722);function T(e){let{label:l,error:t,className:n,...i}=e;return(0,a.jsxs)("div",{className:"w-full",children:[l&&(0,a.jsx)("label",{className:"text-sm",children:l}),(0,a.jsx)(C.p,{...i,className:t?"".concat(n," border-red-500"):n})]})}var k=t(9198);let A={"{{terms}}":{text:"Terms",url:"https://".concat("weather.com","/legal")},"{{privacy}}":{text:"Privacy Policy",url:"https://".concat("weather.com","/en-US/twc/privacy-policy")}},S=/\{\{(.*?)\}\}/g;function I(){return(0,a.jsx)("div",{className:"mt-4 text-xs",children:"By signing up you agree to the {{terms}} & {{privacy}}. Unsubscribe at any time.".split(S).map((e,l)=>{let t=A["{{".concat(e,"}}")];return t?(0,a.jsx)(k.default,{href:t.url,className:"underline",children:t.text},l):(0,a.jsx)("span",{children:e},l)})})}let M={src:"/_next/static/media/morning-brief-logo.73126316.svg"},_={src:"/_next/static/media/ellipse.b0c8befa.png"};var R=t(89512),P=t(27301),L=t(16151),E=t(92700),D=t(87103),F=t(75302),B=t(1247);let z=(0,t(20156).tG)("emailPreferences",null,void 0,{getOnInit:!0});var V=t(89170),W=t(82304);let U=()=>{let[e,l]=(0,F.fp)(z),{user:t}=(0,V.J)(),a=(null==t?void 0:t.userID)||null,i=(null==t?void 0:t.isUserLoggedIn)||!1,r=(0,n.useCallback)(t=>{a&&l({userId:a,expiry:Date.now()+9e5,subscriptions:function(e,l){let t=(null==l?void 0:l.length)?l:W.J3,a={};return e?(null==t||t.forEach(e=>{a[e.subscriptionGroupName]=e}),e.forEach(e=>{a[e.subscriptionGroupName]=e}),Object.values(a)):t}(t,null==e?void 0:e.subscriptions)})},[a,l,null==e?void 0:e.subscriptions]),s=e&&e.userId===a&&e.expiry&&e.expiry>Date.now();return(0,c.Ay)(a&&i&&!s?"getEmailPreferencesStatus/".concat(a):void 0,()=>(0,B.j)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:0,errorRetryCount:2,onSuccess:e=>{a&&e&&r(e.subscriptions)}}),{subscriptions:a&&e?e.subscriptions:null,updateSubscriptions:r}};async function H(e,l){let{arg:t}=l,{email:a,location:n,locale:i,isAnonymous:r}=t,{location:s}=await (0,D.$M)(n.placeId,i).catch(()=>({location:null})),o={subscriptions:[{subscriptionGroupName:e,isSubscribed:!0,attributes:{location:n.placeId,latitude:n.latitude,longitude:n.longitude,dmaCode:(null==s?void 0:s.dmaCd)||null,adminDistrict:n.adminDistrict,adminDistrictCode:n.adminDistrictCode||null,postalCode:n.postalCode}}]};return r&&(o.email=a),await (0,P.p_)(o).then(e=>({...e,sentSubscriptions:o.subscriptions}))}var O=t(22627),q=t(2362);let G=()=>{var e,l;let t=(0,j.useParams)(),d=(0,j.useSearchParams)(),c=null==t?void 0:t.locale,{userProfile:u}=(0,V.J)(),[m,h]=(0,n.useState)(null!=(e=null==u?void 0:u.email)?e:""),[x,v]=(0,n.useState)(null),[p,g]=(0,n.useState)(!1),{data:f,loading:y,onSubmit:b,error:w}=function(){let{updateSubscriptions:e}=U(),l=(()=>{let e="alert-subscription-changed",l=(0,L.G)(),t=(0,E.N)();return(0,n.useCallback)(a=>{let{name:n,status:i}=a,r={...t,name:n,status:i?"enabled":"disabled"};if(!l)return void console.warn("MParticle is not initialized");try{var s,o,d,c;null==(c=window.mParticle)||null==(d=c.logEvent)||d.call(c,e,null==(o=window.mParticle)||null==(s=o.EventType)?void 0:s.Other,r),console.debug('MParticle: Event "'.concat(e,'" tracked'),r)}catch(l){console.error('MParticle: Event "'.concat(e,'" failed'),l)}},[t,l])})(),{isMutating:t,trigger:a,data:i,error:r,reset:s}=(0,R.A)("newsletter/signup/daily-newsletters-1",(e,l)=>H("daily-newsletters-1",l));return{loading:t,error:r,data:i,onSubmit:(0,n.useCallback)(async t=>{let n=await a(t);if(n.sentSubscriptions&&e(n.sentSubscriptions),"success"===n.status){var i,r;l({name:"newsletter",status:(null==(r=n.sentSubscriptions)||null==(i=r[0])?void 0:i.isSubscribed)||!1})}return n},[l,a,e]),onReset:s}}(),C=d.get("cm_ven"),k=null==C?void 0:C.startsWith("dnt_newsletter"),{subscriptions:A}=U(),S=(()=>{let e="interaction",l=(0,L.G)(),t=(0,E.N)();return(0,n.useCallback)(a=>{let n={...t,...a};if(!l)return void console.warn("MParticle is not initialized");try{var i,r,s,o;null==(o=window.mParticle)||null==(s=o.logEvent)||s.call(o,e,null==(r=window.mParticle)||null==(i=r.EventType)?void 0:i.Other,n),console.debug('MParticle: Event "'.concat(e,'" tracked'),n)}catch(l){console.error('MParticle: Event "'.concat(e,'" failed'),l)}},[t,l])})(),P=(0,n.useMemo)(()=>(0,q.C)(A,W.rn),[A]),D=(0,n.useCallback)(async e=>{e.preventDefault(),!y&&m.trim()&&x&&(g(!0),S({interactionElement:"morningbrief signup",interactionType:"click",moduleId:"morning-brief-block"}),await b({email:m,location:x,locale:c,isAnonymous:!(null==u?void 0:u.email)}))},[y,m,x,S,b,c,null==u?void 0:u.email]);return!p&&(null==P?void 0:P.isSubscribed)||k?null:(0,a.jsxs)("div",{"data-flatplan-id":"flatplan_signup_form",style:{backgroundImage:'url("'.concat(_.src,'")'),backgroundPosition:"right top",backgroundRepeat:"no-repeat",backgroundSize:"70px"},className:"my-4 space-y-2 rounded-xl bg-white py-5 pr-[30px] pl-5 shadow-[0_3px_20px_0_rgba(181,171,162,0.5)]",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:gap-3",children:[(0,a.jsx)(O.A,{src:M.src,alt:"",className:"m-0 w-37.5",rounded:!1}),(0,a.jsx)("div",{className:"mb-1.5 hidden min-h-[24px] min-w-[2px] bg-black sm:block"}),(0,a.jsx)("div",{className:"text-lg font-semibold",children:"Weather in your inbox"})]}),(null==f?void 0:f.status)==="success"?(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(i.A,{className:"h-6 w-6 text-green-500"}),(0,a.jsx)("div",{className:"text-sm text-gray-700",children:(0,a.jsx)("p",{children:"You are subscribed to the Morning Brief newsletter."})})]}):(0,a.jsxs)("form",{onSubmit:D,className:"flex flex-1 flex-col items-end gap-4 pt-4 lg:flex-row",children:[(0,a.jsx)(T,{id:"email",required:!0,type:"email",placeholder:"Email",className:"h-12",value:m,onChange:e=>h(e.target.value),error:!!(null==f?void 0:f.emailError),disabled:!!(null==u?void 0:u.email)}),(0,a.jsx)(N,{label:"Forecast Location",placeholder:"Search City or Zip Code",className:"h-12 items-center text-sm",location:x,onChangeLocation:v}),(0,a.jsx)("div",{children:(0,a.jsxs)(o.$n,{type:"submit",className:"flex h-12 items-center gap-1 text-nowrap",disabled:y||!(m&&x),children:[(0,a.jsx)("span",{children:"Sign Up"}),y&&(0,a.jsx)(r.A,{className:"animate-spin"})]})})]}),w&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,a.jsx)(s.A,{className:"h-6 w-6 text-red-500"}),(0,a.jsx)("div",{className:"text-sm",children:"Failed to subscribe, please try again."})]}),(null==f?void 0:f.status)==="error"&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,a.jsx)(s.A,{className:"h-6 w-6 text-red-500"}),(0,a.jsx)("div",{className:"text-sm",children:null!=(l=f.emailError)?l:f.error})]}),(0,a.jsx)(I,{})]})};G.displayName="MorningBriefBlock";let Z=G},4883:(e,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getSunWeatherAlertHeadlinesUrlConfig=function(e){let{geocode:l,countryCode:t,areaId:a,adminDistrictCode:n,language:i}=e,r={format:"json",language:i,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return l&&(r.geocode=l),t&&(r.countryCode=t),a&&(r.areaId=a),n&&(r.adminDistrictCode=n),{host:"api.weather.com",protocol:"https",pathname:"/v3/alerts/headlines",query:r}},l.getSunWeatherAlertDetailUrlConfig=function(e){let{detailKey:l,language:t}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/alerts/detail",query:{alertId:l,format:"json",language:t,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},5305:(e,l,t)=>{"use strict";t.r(l),t.d(l,{MorningBriefAdminBlock:()=>i,default:()=>r});var a=t(76792);t(42292);var n=t(22901);let i=()=>(0,a.jsx)(n.default,{name:"MorningBrief"}),r=i},6106:(e,l,t)=>{"use strict";t.r(l),t.d(l,{LiveblogEntriesBlock:()=>n,default:()=>i});var a=t(76792);t(42292);let n=()=>(0,a.jsx)("div",{children:"Live Blog Entries"}),i=n},6626:(e,l,t)=>{"use strict";t.r(l),t.d(l,{SlideshowBlock:()=>s,default:()=>o});var a=t(76792);t(42292);var n=t(49192),i=t(98066),r=t(18556);let s=e=>{let{slides:l=[],settings:t={},id:s}=e;if(!(0,r.J)(l))return null;let o=[];for(let e of l){var d;if(!e.imageAsset){console.error("Slide missing imageAsset:",e);continue}let l=(0,i.bt)(e.imageAsset)?e.imageAsset:null;if(!l||!l.url){console.error("Invalid imageAsset or missing URL:",l);continue}let t={...l,seo:{...l.seo,caption:e.imageCaption||l.caption||"",altText:e.imageTitle&&""!==e.imageTitle.trim()?e.imageTitle:(null==(d=l.seo)?void 0:d.altText)||""},...!e.imageTitle||""===e.imageTitle.trim()||/\.(jpg|jpeg|png|gif|webp|bmp|tiff|svg)$/i.test(e.imageTitle)||/^[A-Z0-9_]+\d*\.[a-zA-Z]+$/i.test(e.imageTitle)||/^[a-zA-Z0-9_-]+\d+$/i.test(e.imageTitle)||/[._][0-9]+/i.test(e.imageTitle)||/^[A-Z0-9_]+$/i.test(e.imageTitle)?{}:{filename:e.imageTitle}};o.push(t)}return 0===o.length?(console.error("SlideshowBlock - No valid assets after transformation"),(0,a.jsx)("div",{className:"text-center text-red-500",children:"Error: Could not load images for the slideshow."})):(0,a.jsx)(n.A,{id:s||"slideshow-".concat(Math.random().toString(36).substring(2,9)),assets:o.slice(0,20),allSlides:o,totalAssets:o.length,rounded:(null==t?void 0:t.rounded)||!1,blockType:"Slideshow",slides:l,settings:t,sendTrackString:()=>{}})},o=s},6775:(e,l,t)=>{"use strict";t.r(l),t.d(l,{VideoAdminBlock:()=>u,default:()=>m});var a=t(76792),n=t(42292),i=t(8818),r=t(82188),s=t(22901),o=t(86605),d=t(35242),c=t(37768);let u=()=>{let e="video-player-".concat((0,n.useId)()),[l]=(0,i.kV6)(),t=(0,n.useRef)(null),{file:u,image:m,title:h,description:x,tracks:v,playlist:p,videoReference:g,playlistsReference:f}=(0,n.useMemo)(()=>{let e=(0,r.r)(l,!0);return t.current&&JSON.stringify(e)===JSON.stringify(t.current)?t.current:(t.current=e,e)},[l]),y=null;[{data:y}]=(0,i.Q0O)(g&&"string"==typeof g?"/api/payload/videos/".concat(g):"");let b=(0,n.useMemo)(()=>y&&Object.keys(y).length>0||g&&"string"!=typeof g,[y,g]),w=(0,n.useMemo)(()=>y&&Object.keys(y).length>0?y:g&&"string"!=typeof g?g:null,[y,g]),j=(0,n.useMemo)(()=>{var e,l,t,a,n,i,r,s,o;return b&&(null==w||null==(l=w.content)||null==(e=l.videoFormatUrls)?void 0:e.length)>0?(null==w||null==(a=w.content)||null==(t=a.defaultFormat)?void 0:t.url)?null==w||null==(o=w.content)||null==(s=o.defaultFormat)?void 0:s.url:null==w||null==(r=w.content)||null==(i=r.videoFormatUrls)||null==(n=i[0])?void 0:n.url:u},[b,w,u]),N=(0,n.useMemo)(()=>{if(b){var e;return(null==w||null==(e=w.content)?void 0:e.keyFrameImage)||m}return m},[b,w,m]),C=(0,n.useMemo)(()=>b&&(null==w?void 0:w.title)||h,[b,w,h]),T=(0,n.useMemo)(()=>(b&&(null==w||w.description),x),[b,w,x]),k=(0,n.useMemo)(()=>{let e=[];return(null==v?void 0:v.file)&&e.push(v),{file:j,image:N||(j?(0,d.e)(j):null)||"",title:C,description:T,tracks:e}},[j,N,C,T,v]),A=(0,n.useMemo)(()=>{var e,l,t,a;let n=[];return p&&(n=(0,c.K)(p||[],k)||[]),f&&Array.isArray(f)&&f.length,b&&(null==w||null==(e=w.content)?void 0:e.playlists)&&Array.isArray(null==w||null==(l=w.content)?void 0:l.playlists)&&(null==w||null==(a=w.content)||null==(t=a.playlists)||t.length),n.length>0?n:[k]},[p,k,f,w,b]);return g&&"string"==typeof g&&!y?(0,a.jsx)(s.default,{name:"Video",children:(0,a.jsx)("div",{className:"flex h-32 items-center justify-center border border-dashed border-gray-300",children:(0,a.jsx)("span",{children:"Loading video data..."})})}):j?(0,a.jsx)(s.default,{name:"Video",children:(0,a.jsx)(o.h,{playlist:A,options:{autostart:!1}},e)}):(0,a.jsx)(s.default,{name:"Video",children:(0,a.jsx)("div",{className:"flex h-32 items-center justify-center border border-dashed border-gray-300",children:(0,a.jsx)("span",{children:"No video file provided"})})})},m=u},7886:(e,l,t)=>{"use strict";t.d(l,{e:()=>r});var a=t(76792);t(42292);var n=t(48260),i=t(71666);let r=e=>{let l,t,{precipType:r="rain",rain:s,snow:o,qpf:d=0,qpfSnow:c=0,units:u,unitOverride:m,className:h,unitClass:x}=e,v=null!=s?s:d,p=null!=o?o:c,g=u?(0,i.Bu)(u):null;if("snow"===r)l=p,t="accumulation";else if("rain"===r)l=v,t="precip";else if("precip"===r){let e=Number(v)>=Number(p);l=e?v:p,t=e?"precip":"accumulation"}else l=v,t="precip";let f=null==g?void 0:g[t];return(0,a.jsxs)("span",{"data-testid":"AccumulationValue",className:(0,n.cn)(h),children:[(0,a.jsx)("span",{children:l})," ",(0,a.jsx)("span",{className:(0,n.cn)(x),children:m||f})]})}},8366:(e,l,t)=>{"use strict";t.d(l,{o:()=>s});var a=t(76792),n=t(42292),i=t(23233);let r=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Uv Index"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"m8.022 15.021-1.748-2.94-3.29.932.931-3.284L.977 8.01l2.936-1.72-.924-3.236 3.278.874L8.022.977l1.7 2.949 3.255-.861-.868 3.226 2.853 1.717-2.854 1.718L12.98 13l-3.265-.918zm1.216-4.112 2.325.654-.615-2.306 2.075-1.249-2.075-1.248.615-2.287-2.325.615-1.23-2.132L6.74 5.088l-2.305-.615.653 2.287-2.132 1.248 2.132 1.25-.653 2.305 2.305-.654 1.268 2.133z",clipRule:"evenodd"})]})}),s=n.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:r,...e}));s.displayName="UvIndex"},9946:(e,l)=>{"use strict";l.k=void 0,l.k=e=>{let{phenomena:l,significance:t,areaId:a,officeCode:n,eventTrackingNumber:i,locId:r}=e;return"".concat("/weather/alerts/localalerts/l/".concat(r),"?phenomena=").concat(l,"&significance=").concat(t,"&areaid=").concat(a,"&office=").concat(n,"&etn=").concat(i)}},10298:(e,l,t)=>{"use strict";t.d(l,{$n:()=>d});var a=t(76792),n=t(42292),i=t(84057),r=t(30505),s=t(48260);let o=(0,r.F)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 my-1 mx-1 py-2 px-4",{variants:{variant:{"bg-brand-200":"bg-brand-200 text-black hover:bg-brand-200/90","bg-brand-300":"bg-brand-300 text-white hover:bg-brand-300/90","bg-yellow-400":"bg-yellow-400 text-black hover:bg-yellow-400/90","bg-green-600":"bg-green-600 text-white hover:bg-green-500/90","bg-violet-500":"bg-violet-500 text-white hover:bg-violet-500/90","bg-gray-900":"bg-gray-900 text-white hover:bg-gray-900/90"},display:{block:"block",inline:"inline-block"}},defaultVariants:{variant:"bg-gray-900",display:"block"}}),d=n.forwardRef((e,l)=>{let{className:t,variant:n,display:r,inline:d=!1,asChild:c=!1,...u}=e,m=c?i.DX:"button";return(0,a.jsx)(m,{className:(0,s.cn)(o({variant:n,display:d?"inline":r,className:t})),ref:l,...u})});d.displayName="Button"},11806:(e,l,t)=>{"use strict";t.r(l),t.d(l,{TwitterBlock:()=>r,default:()=>s});var a=t(76792),n=t(42292);let i="twitter-script-loaded",r=e=>{let{entryMethod:l,tweetURL:t,tweetId:r,showThread:s}=e,o=(0,n.useRef)(null),d=(0,n.useCallback)(()=>"id"===l&&r?"https://twitter.com/i/status/".concat(r):"url"===l&&t?t.replace("x.com","twitter.com"):null,[l,r,t]),{isLoaded:c}=function(){let[e,l]=(0,n.useState)(()=>!!(window.twttr&&window.twttr.widgets)),[t,a]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(e)return;if(!t){if(window.twttr&&window.twttr.widgets)return void l(!0);a(new Promise(e=>{if(window.twttr&&window.twttr.widgets){l(!0),e();return}let t=document.createElement("script");t.src="https://platform.twitter.com/widgets.js",t.async=!0,t.onload=()=>{l(!0);let t=new CustomEvent(i);window.dispatchEvent(t),e()},document.body.appendChild(t)}))}t&&t.then(()=>l(!0));let n=()=>l(!0);return window.addEventListener(i,n),()=>{window.removeEventListener(i,n)}},[e,t]),{isLoaded:e}}();return(0,n.useEffect)(()=>{let e=d();e&&(o.current&&(o.current.innerHTML='\n

\n \n
\n ')),c&&window.twttr&&window.twttr.widgets&&window.twttr.widgets.load(o.current))},[d,r,t,l,s,c]),(0,a.jsx)("div",{className:"flex items-center",ref:o})},s=r},12962:(e,l,t)=>{"use strict";l.lh=void 0,l.$c=h,l.eH=x;let a=t(39825),n=t(17681),i=t(36762),r=t(35181),s=t(76088),o=t(73923),d=t(76088),c=t(50532),u=t(76159),m=t(43716);async function h(e){let t=(0,a.getHourlyForecastUrlConfig)(e),r=(0,n.urlFrom)(t),s=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}}),o=await (0,i.handleFetchResponse)(s);return(0,l.lh)(o)}async function x(e){let[l,t]=await Promise.all([h(e),(0,u.getHourlyAirQualityForecast)({geocode:e.geocode,language:e.language,scale:m.AirQualityScale.EPA,duration:function(e){switch(e){case s.HourlyForecastDuration.SIX_HOUR:case s.HourlyForecastDuration.TWELVE_HOUR:return m.AirQualityForecastDuration.TWELVE_HOUR;case s.HourlyForecastDuration.ONE_DAY:return m.AirQualityForecastDuration.TWENTY_FOUR_HOUR;case s.HourlyForecastDuration.TWO_DAY:return m.AirQualityForecastDuration.FORTY_EIGHT_HOUR;case s.HourlyForecastDuration.THREE_DAY:case s.HourlyForecastDuration.TEN_DAY:case s.HourlyForecastDuration.FIFTEEN_DAY:default:return m.AirQualityForecastDuration.SEVENTY_TWO_HOUR}}(e.duration)}).catch(()=>null)]);var a=l,n=t;if(!n)return a;let i=new Map(n.forecast.map(e=>[e.validTimeGmt,e]));return a.map(e=>{let l=i.get(e.validTimeUtc);return l?{...e,airQualityIndex:l.airQualityIndex,airQualityCategory:l.airQualityCategory}:e})}l.lh=(0,r.createTransformer)(e=>{var l,t,a,n,i,r,s,u,m,h,x,v,p,g,f,y,b,w,j,N,C,T,k,A,S,I,M,_,R;return{cloudCover:null!=(l=e.cloudCover)?l:0,dayOfWeek:null!=(t=e.dayOfWeek)?t:"",dayOrNight:null!=(a=e.dayOrNight)?a:d.DayOrNight.DAY,expirationTimeUtc:null!=(n=e.expirationTimeUtc)?n:0,iconCode:null!=(i=e.iconCode)?i:0,iconCodeExtend:null!=(r=e.iconCodeExtend)?r:0,precipChance:null!=(s=e.precipChance)?s:0,precipType:null!=(u=e.precipType)?u:o.PrecipType.RAIN,pressureMeanSeaLevel:null!=(m=e.pressureMeanSeaLevel)?m:0,qpf:null!=(h=e.qpf)?h:0,qpfSnow:null!=(x=e.qpfSnow)?x:0,relativeHumidity:null!=(v=e.relativeHumidity)?v:0,temperature:null!=(p=e.temperature)?p:0,temperatureDewPoint:null!=(g=e.temperatureDewPoint)?g:0,temperatureFeelsLike:null!=(f=e.temperatureFeelsLike)?f:0,temperatureHeatIndex:null!=(y=e.temperatureHeatIndex)?y:0,temperatureWindChill:null!=(b=e.temperatureWindChill)?b:0,uvDescription:null!=(w=e.uvDescription)?w:d.UVDescription.LOW,uvIndex:null!=(j=e.uvIndex)?j:0,validTimeLocal:null!=(N=e.validTimeLocal)?N:"",validTimeUtc:null!=(C=e.validTimeUtc)?C:0,visibility:null!=(T=e.visibility)?T:0,windDirection:null!=(k=e.windDirection)?k:0,windDirectionCardinal:(0,c.normalizeCardinal)(null!=(A=e.windDirectionCardinal)?A:d.WindDirectionCardinal.NORTH),windGust:null!=(S=e.windGust)?S:null,windSpeed:null!=(I=e.windSpeed)?I:0,wxPhraseLong:null!=(M=e.wxPhraseLong)?M:"",wxPhraseShort:null!=(_=e.wxPhraseShort)?_:"",wxSeverity:null!=(R=e.wxSeverity)?R:0}})},14124:(e,l,t)=>{"use strict";l.vt=void 0,l.v1=o;let a=t(39825),n=t(17681),i=t(36762),r=t(35181),s=t(50532);async function o(e){let t=(0,a.getDailyForecastUrlConfig)(e),r=(0,n.urlFrom)(t),s=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:1800}}),o=await (0,i.handleFetchResponse)(s);return(0,l.vt)(o)}l.vt=(0,r.createTransformer)((e,l,t)=>{var a,n,i,r,o,d,c,u,m,h,x,v,p,g,f,y,b,w,j,N,C,T;let k=2*l,A=k+1,{daypart:S}=t||{};return{calendarDayTemperatureMax:null!=(a=e.calendarDayTemperatureMax)?a:void 0,calendarDayTemperatureMin:null!=(n=e.calendarDayTemperatureMin)?n:void 0,dayOfWeek:null!=(i=e.dayOfWeek)?i:void 0,expirationTimeUtc:null!=(r=e.expirationTimeUtc)?r:void 0,moonPhase:null!=(o=e.moonPhase)?o:void 0,moonPhaseCode:null!=(d=e.moonPhaseCode)?d:void 0,moonPhaseDay:null!=(c=e.moonPhaseDay)?c:void 0,moonriseTimeLocal:null!=(u=e.moonriseTimeLocal)?u:void 0,moonriseTimeUtc:null!=(m=e.moonriseTimeUtc)?m:void 0,moonsetTimeLocal:null!=(h=e.moonsetTimeLocal)?h:void 0,moonsetTimeUtc:null!=(x=e.moonsetTimeUtc)?x:void 0,narrative:null!=(v=e.narrative)?v:void 0,qpf:null!=(p=e.qpf)?p:void 0,qpfSnow:null!=(g=e.qpfSnow)?g:void 0,sunriseTimeLocal:null!=(f=e.sunriseTimeLocal)?f:void 0,sunriseTimeUtc:null!=(y=e.sunriseTimeUtc)?y:void 0,sunsetTimeLocal:null!=(b=e.sunsetTimeLocal)?b:void 0,sunsetTimeUtc:null!=(w=e.sunsetTimeUtc)?w:void 0,temperatureMax:null!=(j=e.temperatureMax)?j:void 0,temperatureMin:null!=(N=e.temperatureMin)?N:void 0,validTimeLocal:null!=(C=e.validTimeLocal)?C:void 0,validTimeUtc:null!=(T=e.validTimeUtc)?T:void 0,daypart:[k,A].map((l,t)=>{var a,n,i,r,o,d,c,u,m,h,x,v,p,g,f,y,b,w,j,N,C,T,k,A,I,M,_,R,P,L,E,D,F,B,z,V,W,U,H,O,q,G,Z,Q,Y,X,$,J,K,ee,el,et,ea,en,ei,er,es,eo,ed;return(null==S||null==(n=S[0])||null==(a=n.daypartName)?void 0:a[l])?{cloudCover:null!=(L=null==(i=S[0].cloudCover)?void 0:i[l])?L:void 0,dayOrNight:null!=(E=null==(r=S[0].dayOrNight)?void 0:r[l])?E:void 0,daypartName:null!=(D=null==(o=S[0].daypartName)?void 0:o[l])?D:void 0,iconCode:null!=(F=null==(d=S[0].iconCode)?void 0:d[l])?F:void 0,iconCodeExtend:null!=(B=null==(c=S[0].iconCodeExtend)?void 0:c[l])?B:void 0,narrative:null!=(z=null==(u=S[0].narrative)?void 0:u[l])?z:void 0,precipChance:null!=(V=null==(m=S[0].precipChance)?void 0:m[l])?V:void 0,precipType:null!=(W=null==(h=S[0].precipType)?void 0:h[l])?W:void 0,qpf:null!=(U=null==(x=S[0].qpf)?void 0:x[l])?U:void 0,qpfSnow:null!=(H=null==(v=S[0].qpfSnow)?void 0:v[l])?H:void 0,qualifierCode:null!=(O=null==(p=S[0].qualifierCode)?void 0:p[l])?O:void 0,qualifierPhrase:null!=(q=null==(g=S[0].qualifierPhrase)?void 0:g[l])?q:void 0,relativeHumidity:null!=(G=null==(f=S[0].relativeHumidity)?void 0:f[l])?G:void 0,snowRange:null!=(Z=null==(y=S[0].snowRange)?void 0:y[l])?Z:void 0,temperature:null!=(Q=null==(b=S[0].temperature)?void 0:b[l])?Q:void 0,temperatureHeatIndex:(null==(w=S[0].temperatureHeatIndex)?void 0:w[l])||void 0,temperatureWindChill:(null==(j=S[0].temperatureWindChill)?void 0:j[l])||void 0,thunderCategory:null!=(Y=null==(N=S[0].thunderCategory)?void 0:N[l])?Y:void 0,thunderIndex:null!=(X=null==(C=S[0].thunderIndex)?void 0:C[l])?X:void 0,uvDescription:null!=($=null==(T=S[0].uvDescription)?void 0:T[l])?$:void 0,uvIndex:null!=(J=null==(k=S[0].uvIndex)?void 0:k[l])?J:void 0,windDirection:null!=(K=null==(A=S[0].windDirection)?void 0:A[l])?K:void 0,windDirectionCardinal:(null==(I=S[0].windDirectionCardinal)?void 0:I[l])?(0,s.normalizeCardinal)(S[0].windDirectionCardinal[l]):void 0,windPhrase:null!=(ee=null==(M=S[0].windPhrase)?void 0:M[l])?ee:void 0,windSpeed:null!=(el=null==(_=S[0].windSpeed)?void 0:_[l])?el:void 0,wxPhraseLong:null!=(et=null==(R=S[0].wxPhraseLong)?void 0:R[l])?et:void 0,wxPhraseShort:null!=(ea=null==(P=S[0].wxPhraseShort)?void 0:P[l])?ea:void 0,...0===t?{sunriseTimeLocal:null!=(en=e.sunriseTimeLocal)?en:void 0,sunsetTimeLocal:null!=(ei=e.sunsetTimeLocal)?ei:void 0}:{moonPhase:null!=(er=e.moonPhase)?er:void 0,moonPhaseCode:null!=(es=e.moonPhaseCode)?es:void 0,moonriseTimeLocal:null!=(eo=e.moonriseTimeLocal)?eo:void 0,moonsetTimeLocal:null!=(ed=e.moonsetTimeLocal)?ed:void 0}}:void 0})}})},15008:(e,l,t)=>{"use strict";t.r(l),t.d(l,{CurrentDetailsBlock:()=>Y,default:()=>X});var a=t(76792),n=t(44685),i=t(46593),r=t(44615),s=t(86942),o=t(55198),d=t(75302),c=t(32035),u=t(71666),m=t(76088),h=t(14124),x=t(42292),v=t(77962),p=t(47421),g=t(68751),f=t(48260),y=t(69585),b=t(40640),w=t(23233);let j=(0,x.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"temperature"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{fillRule:"evenodd",d:"M6.5 8.63V3a2 2 0 1 0-4 0v5.63a3.5 3.5 0 1 0 4 0M4.5 2a1 1 0 0 1 1 1v3.5h-2V3a1 1 0 0 1 1-1m0 12a2.5 2.5 0 0 1-1.25-4.665l.25-.14V7.5h2v1.695l.25.14A2.5 2.5 0 0 1 4.5 14",clipRule:"evenodd"}),(0,a.jsx)("path",{d:"M9.938 2.466a.5.5 0 0 1 .5-.5h4.087a.5.5 0 0 1 0 1h-4.087a.5.5 0 0 1-.5-.5M10.438 4.996a.5.5 0 1 0 0 1h2.63a.5.5 0 0 0 0-1zM9.938 11.509a.5.5 0 0 1 .5-.5h2.63a.5.5 0 0 1 0 1h-2.63a.5.5 0 0 1-.5-.5M10.438 8.002a.5.5 0 1 0 0 1h4.087a.5.5 0 0 0 0-1z"})]})]})}),N=x.forwardRef((e,l)=>(0,a.jsx)(w.h,{ref:l,icon:j,...e}));N.displayName="Temperature";var C=t(60393),T=t(75848),k=t(56157),A=t(49694),S=t(8366),I=t(55406),M=t(81217),_=t(28004),R=t(46670),P=t(48834),L=t(63236),E=t(43436),D=t(81692),F=t(23376),B=t(21021);let z=(e,l)=>{var t,a,n,i,r,s,o,d,c,u,m,h;if(!e)return!1;let{top:x,right:v,bottom:p,left:g,width:f,height:y}=e.getBoundingClientRect(),b={t:p,r:window.innerWidth-g,b:window.innerHeight-x,l:v},w={x:(null!=(o=null==l||null==(t=l.threshold)?void 0:t.x)?o:0)*f,y:(null!=(d=null==l||null==(a=l.threshold)?void 0:a.y)?d:0)*y},j={top:null!=(c=null==l||null==(n=l.offset)?void 0:n.top)?c:0,right:null!=(u=null==l||null==(i=l.offset)?void 0:i.right)?u:0,bottom:null!=(m=null==l||null==(r=l.offset)?void 0:r.bottom)?m:0,left:null!=(h=null==l||null==(s=l.offset)?void 0:s.left)?h:0};return b.t>j.top+w.y&&b.r>j.right+w.x&&b.b>j.bottom+w.y&&b.l>j.left+w.x};var V=t(62596),W=t(99838);let U=e=>{let{date:l,normalizeString:t=!0,resetToStartOfHour:a,resetToOffset:n,resetToStartOfMonth:i,resetToEndOfMonth:r,resetToStartOfWeek:s,resetToEndOfWeek:o,resetToHour:d,daysFromDate:c,daysBeforeDate:u,monthsBeforeDate:m,monthsAfterDate:h,yearsBeforeDate:x,yearsAfterDate:v}=e;if(!l)return new Date;let p=t||"string"!=typeof l?(0,W.$)(l):l,g=/([+-]\d{2}:?\d{2})$/,f=p.match(g),y=new Date(p.replace(g,""));if(c&&y.setDate(y.getDate()+c),u&&y.setDate(y.getDate()-u),m&&y.setMonth(y.getMonth()-m),h&&y.setMonth(y.getMonth()+h),a&&(y.setMinutes(0),y.setSeconds(0)),n&&f){let e,l=f[0];l.includes(":")?[,e]=l.split(":"):e=l.slice(-2),y.setMinutes(parseInt(e||"0",10)),y.setSeconds(0)}if(i&&y.setDate(1),r){let e=y.getMonth(),l=y.getFullYear();y.setMonth(e+1),y.setDate(0),y.setFullYear(l)}return s&&y.setDate(y.getDate()-y.getDay()),o&&y.setDate(y.getDate()-y.getDay()+6),d&&y.setHours(d),x&&y.setFullYear(y.getFullYear()-1),v&&y.setFullYear(y.getFullYear()+1),y},H=(0,a.jsxs)("svg",{children:[(0,a.jsx)("title",{children:"Daylight"}),(0,a.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:"#FFF"}),(0,a.jsx)("path",{fill:"#FFB900",d:"M18.405 17.661a1 1 0 0 1-1.437 1.391l-1.665-1.72a1 1 0 1 1 1.437-1.39l1.665 1.72zm-5.541 2.651a1 1 0 0 1-2 0v-2.366a1 1 0 1 1 2 0v2.366zm-6.718-1.624a1 1 0 0 1-1.357-1.469l1.758-1.624a1 1 0 1 1 1.357 1.47l-1.758 1.623zm-2.753-5.769a1 1 0 1 1 .002-2l2.422.001a1 1 0 0 1-.001 2l-2.423-.001zm1.77-6.115A1 1 0 0 1 6.6 5.414l1.664 1.719a1 1 0 0 1-1.436 1.391l-1.665-1.72zm5.751-3.391a1 1 0 1 1 2 0v2.366a1 1 0 0 1-2 0V3.413zm6.5 1.903a1 1 0 1 1 1.356 1.47l-1.757 1.623a1 1 0 1 1-1.357-1.47l1.758-1.623zm3.005 6.114a1 1 0 0 1-.002 2l-2.422-.001a1 1 0 0 1 .001-2l2.423.001z"}),(0,a.jsx)("ellipse",{fill:"#FFB900",cx:"11.85",cy:"11.935",rx:"3.225",ry:"3.256"})]}),O=(0,x.memo)(e=>{var l;let{isLoading:t,sunriseTimeLocal:n,sunsetTimeLocal:i,ianaTimeZone:r,validTimeLocal:s,width:d=100,className:c}=e,u=null==(l=(0,o.useParams)())?void 0:l.locale,m=(0,x.useRef)(null),h=(0,x.useRef)(null),[v,p]=(0,x.useState)(0),f=d/2,y=(0,x.useMemo)(()=>({formattedTime:(0,V.P)({date:n,timeZone:r,locale:u,minutes:!0}),dateTime:U({date:n})}),[r,u,n]),b=(0,x.useMemo)(()=>({formattedTime:(0,V.P)({date:i,timeZone:r,locale:u,minutes:!0}),dateTime:U({date:i})}),[r,u,i]),w=(0,x.useMemo)(()=>U({date:s}),[s]),j=b.dateTime.getTime()-y.dateTime.getTime(),N=(w.getTime()-y.dateTime.getTime())*180/j,C=(e,l)=>{let t="x"===e?Math.cos:Math.sin;return Math.round(1e4*(("y"===e?f-6:f)*(t((l+180)*Math.PI/180)+1)+1.5))/1e4},T=(0,x.useCallback)(()=>{let e=0,l=setInterval(()=>{e>=N?clearInterval(l):p(e=Math.min(e+1,N))},10)},[N]),k=(0,x.useMemo)(()=>(0,D.n)(()=>{m.current&&z(m.current)&&y&&b&&(T(),window.removeEventListener("scroll",k))},400),[T,y,b]);(0,x.useEffect)(()=>(y&&b&&(m.current&&z(m.current)?T():window.addEventListener("scroll",k)),()=>{window.removeEventListener("scroll",k)}),[T,k,y,b]);let A=w.getTime()=y.dateTime.getTime();return y&&b?(0,a.jsx)("div",{ref:m,className:c,children:(0,a.jsxs)("div",{"data-testid":"sunriseSunsetContainer",className:"flex flex-col items-center",children:[(0,a.jsxs)("svg",{"data-testid":"TwcSunChartGraph",className:"mx-auto my-0 block",width:d+27,height:d/2+27-6,children:[(0,a.jsx)("path",{d:"M ".concat(-13.5," ").concat(f-13.5," a 1 1 0 0 0 ").concat(d," 0"),className:"transform-[rotate(180deg)] fill-none stroke-[#252422] stroke-3 [stroke-linecap:round]",style:{transformOrigin:"".concat(f,"px ").concat(f,"px")}}),A&&(0,a.jsx)("g",{ref:h,style:{transform:"translate(".concat(C("x",v),"px, ").concat(C("y",v),"px)")},children:H})]}),(0,a.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,a.jsxs)("div",{"data-testid":"SunriseValue",className:"flex items-center justify-end gap-1.25",children:[(0,a.jsx)(F.m,{}),(0,a.jsx)(g.Ay,{isLoading:t,skeletonClassName:"h-4 w-12",variant:"Body.S",className:"text-sm font-normal",children:y.formattedTime.toLowerCase()})]}),(0,a.jsxs)("div",{"data-testid":"SunsetValue",className:"flex items-center justify-end gap-1.25",children:[(0,a.jsx)(B.d,{}),(0,a.jsx)(g.Ay,{isLoading:t,skeletonClassName:"h-4 w-12",variant:"Body.S",className:"text-sm font-normal",children:b.formattedTime.toLowerCase()})]})]})]})}):null}),q={temperatureMax:-1,temperatureMin:-1,windSpeed:-1,windDirection:-1,windDirectionCardinal:m.WindDirectionCardinal.NORTH_NORTHEAST,relativeHumidity:-1,temperatureDewPoint:-1,pressureAltimeter:-1,pressureTendencyCode:m.PressureTendencyCode.STEADY,uvIndex:-1,visibility:-1},G=e=>{var l;let{currentDetails:t,location:n,isLoading:i}=e,r=(0,p.c3)("CurrentDetails"),s=(0,p.c3)("DetailsTable"),o=(0,d.md)(c.Yt),m=null==(l=(0,u.xP)(o))?void 0:l.code,h=(0,x.useMemo)(()=>((e,l,t)=>[{Icon:N,label:"".concat(l("high")," / ").concat(l("low")),content:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(I.B,{value:e.temperatureMax})," / ",(0,a.jsx)(I.B,{value:e.temperatureMin})]})},{Icon:C.Z,label:l("wind"),content:(0,a.jsx)(M.Z,{windSpeed:e.windSpeed,units:t,windDirection:e.windDirection,windDirectionCardinal:e.windDirectionCardinal,displayMode:"directionalAndCardinal"})},{Icon:T.K,label:l("humidity"),content:(0,a.jsx)(_.N,{value:e.relativeHumidity})},{Icon:k.$,label:l("dewPoint"),content:(0,a.jsx)(I.B,{value:e.temperatureDewPoint})},{Icon:A.S,label:l("pressure"),content:(0,a.jsx)(R.S,{pressureAltimeter:e.pressureAltimeter,pressureTendencyCode:e.pressureTendencyCode,units:t})},{Icon:S.o,label:l("uvIndex"),content:(0,a.jsx)(P.M,{uvIndex:e.uvIndex})},{Icon:b.S,label:l("visibility"),content:(0,a.jsx)(L.b,{visibility:e.visibility,units:t})},{Icon:l=>(0,a.jsx)(E.r,{...l,moonPhaseCode:e.moonPhaseCode}),label:l("moonPhase"),content:e.moonPhase}])(i||!t?q:t,s,m),[i,t,s,m]),v=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"mb-3 flex w-full items-end @md/currentDetails:mb-4",children:[(0,a.jsxs)("div",{className:"grow-1",children:[(0,a.jsx)(g.Ay,{className:"text-sm leading-normal @md/currentDetails:text-base",children:r("feelsLike")}),(0,a.jsx)(g.Ay,{variant:"Display.L",className:"text-[40px] leading-normal font-medium @md/currentDetails:text-5xl",isLoading:i,skeletonClassName:"mt-2 h-12 w-16 @md:h-14 @md:w-22",children:(0,a.jsx)(I.B,{value:null==t?void 0:t.temperatureFeelsLike})})]}),(0,a.jsx)(O,{isLoading:i,sunriseTimeLocal:(null==t?void 0:t.sunriseTimeLocal)||"",sunsetTimeLocal:(null==t?void 0:t.sunsetTimeLocal)||"",validTimeLocal:(null==t?void 0:t.validTimeLocal)||"",ianaTimeZone:null==n?void 0:n.ianaTimeZone,className:"mb-1 @md/currentDetails:mb-2"})]}),(0,a.jsx)("div",{className:"grid gap-x-8 gap-y-0 @md/currentDetails:grid-cols-2",children:h.map(e=>{let{Icon:l,label:n,content:r}=e;return(0,a.jsxs)("div",{className:"flex items-center gap-1.5 border-t py-3 [&:first-child]:border-none @md/currentDetails:[&:nth-child(-n+2)]:border-none",children:[(0,a.jsx)(l,{className:"size-4 @md/currentDetails:size-5"}),(0,a.jsx)(g.Ay,{variant:"Body.M",className:"grow-1 font-normal whitespace-nowrap @2xl/currentDetails:text-lg",children:n}),(0,a.jsx)(g.Ay,{isLoading:i||!t,skeletonClassName:"h-6 w-20",variant:"Body.M",className:"text-right leading-[1.5] font-normal tracking-normal @2xl/currentDetails:text-lg",children:r})]},n)})})]});return(0,a.jsxs)(y.Zp,{"aria-label":r("weatherToday"),className:"@container/currentDetails","data-testid":"current-details",children:[(0,a.jsx)(y.aR,{text:i?void 0:"".concat(r("weatherToday")," ").concat(null==n?void 0:n.presentationName),children:i?(0,a.jsx)("span",{className:(0,f.cn)("square inline-block h-6 w-[70%] animate-pulse rounded bg-gray-200")}):null}),(0,a.jsx)(y.Wu,{className:"p-0",children:v})]})};var Z=t(61e3);let Q=e=>{let{location:l,initializing:t,initialError:n}=e,{effectiveLocation:i,isLocationLoading:p}=(0,Z.s)({location:l}),{currentDetails:g,loading:f}=(e=>{var l,t;let a=(0,d.md)(c.Yt),n=null==(l=(0,u.xP)(a))?void 0:l.code,i=null==(t=(0,o.useParams)())?void 0:t.locale,p=(0,v.A)(),{data:g,error:f,isLoading:y}=(0,r.Ay)(e?["get-current-observations",e.geocode,n,i]:null,e=>{let[l,t,a,n]=e;return(0,s.z)({geocode:t,units:a,language:n})},{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:b,error:w,isLoading:j}=(0,r.Ay)(e?["get-daily-forecast",e.geocode,m.ForecastDuration.THREE_DAY,n,i,"KR"===p?p:void 0]:null,e=>{let[l,t,a,n,i,r]=e;return(0,h.v1)({geocode:t,units:n,language:i,duration:a,cscCountryCode:r})},{revalidateOnFocus:!1,dedupingInterval:6e4}),N=null==b?void 0:b[0];return{currentDetails:(0,x.useMemo)(()=>g&&N&&{...g,temperatureMin:N.temperatureMin,temperatureMax:N.temperatureMax,moonPhase:N.moonPhase,moonPhaseCode:N.moonPhaseCode},[g,N]),loading:y||j,error:f||w}})(i),y=t||p||f||!g||!i;return n?null:(0,a.jsx)(G,{location:i,currentDetails:g,isLoading:y})},Y=e=>{let{locationProvider:l,locationEntry:t}=e,r="specified"===l,{specifiedLocationData:s,specifiedLocationError:o,isSpecifiedLocationLoading:d}=(0,i.v)(r?t:null),c=r&&s&&t?(0,n.I)(s):void 0;return(0,a.jsx)(Q,{location:c,initializing:r&&d,initialError:r?o:void 0})},X=Y},15031:(e,l,t)=>{"use strict";t.r(l),t.d(l,{ContentMediaAdminBlock:()=>d,GridLayoutBuilder:()=>o,default:()=>c});var a=t(76792),n=t(42292),i=t(8818),r=t(82188),s=t(22901);let o=e=>{let{path:l}=e,{value:t,setValue:r}=(0,i.MtT)({path:l}),s=l.split(".").slice(0,-1).join("."),{value:o}=(0,i.MtT)({path:"".concat(s,".limit")}),d=Number(o)||4,c={1:[1],2:[1,2],3:[1,3],4:[1,2,4],5:[1,2,5],6:[1,2,3,6],7:[1,2,3,7],8:[1,2,4,8]}[d]||[1,2],u=t||2;(0,n.useEffect)(()=>{c.includes(u)||r(c.includes(2)?2:c[0])},[d,c,u,r]);let m=function(e){let l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=Array.from({length:Math.min(d,8)},(e,l)=>l+1),n=l?60:40;return(0,a.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(".concat(e,", 1fr)"),gap:"".concat(l?8:4,"px"),width:"100%"},children:t.map(e=>(0,a.jsx)("div",{style:{border:"2px dashed #555",borderRadius:"4px",height:"".concat(n,"px"),display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#1a1a1a",fontSize:l?"12px":"10px",fontWeight:"500",color:"#999"},children:l?"Item ".concat(e):e},e))})};return(0,a.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,a.jsx)("label",{style:{display:"block",marginBottom:"8px",fontSize:"13px",fontWeight:"600",color:"#fff"},children:"Grid Columns"}),(0,a.jsxs)("div",{style:{padding:"16px",backgroundColor:"#1a1a1a",borderRadius:"4px",border:"1px solid #333"},children:[(0,a.jsxs)("p",{style:{marginBottom:"12px",fontSize:"12px",color:"#ccc"},children:["Select how many columns to display (",d," item",1!==d?"s":"","):"]}),(0,a.jsx)("div",{style:{display:"flex",gap:"12px",marginBottom:"16px",flexWrap:"wrap"},children:c.map(e=>{let l=e===u;return(0,a.jsxs)("button",{type:"button",onClick:()=>r(e),style:{flex:"1",minWidth:"120px",padding:"12px",border:l?"2px solid #0066cc":"2px solid #444",borderRadius:"6px",backgroundColor:l?"#1a3a52":"#2a2a2a",cursor:"pointer",transition:"all 0.2s",display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"},onMouseEnter:e=>{l||(e.currentTarget.style.borderColor="#666",e.currentTarget.style.backgroundColor="#333")},onMouseLeave:e=>{l||(e.currentTarget.style.borderColor="#444",e.currentTarget.style.backgroundColor="#2a2a2a")},children:[(0,a.jsxs)("span",{style:{fontSize:"14px",fontWeight:"600",color:l?"#66b3ff":"#fff"},children:[e," Column",1!==e?"s":""]}),(0,a.jsx)("div",{style:{width:"100%"},children:m(e,!1)})]},e)})}),(0,a.jsxs)("div",{style:{marginTop:"16px",padding:"16px",backgroundColor:"#0a0a0a",borderRadius:"4px",border:"1px solid #444"},children:[(0,a.jsxs)("p",{style:{marginBottom:"12px",fontSize:"12px",fontWeight:"600",color:"#fff"},children:["Preview: ",u," Column",1!==u?"s":""]}),m(u,!0)]})]})]})},d=()=>{let[e,l]=(0,i.kV6)(),t=(0,r.r)(e,!0),n=(null==t?void 0:t.limit)||"4",o=(null==t?void 0:t.title)||"",d=(null==t?void 0:t.ctaText)||"",c=(null==t?void 0:t.template)||"",u=(null==t?void 0:t.gridColumns)||2,m=(null==t?void 0:t.customItems)||[];return(0,a.jsx)(s.default,{name:"Content Media Block",children:(0,a.jsxs)("div",{style:{fontSize:"14px"},children:[(0,a.jsxs)("div",{style:{marginBottom:"12px"},children:[(0,a.jsxs)("p",{style:{marginBottom:"4px"},children:[(0,a.jsx)("strong",{children:"Template:"})," ",c?"list"===c?"List View":"grid"===c?"Grid View":c:"Not selected"]}),(0,a.jsxs)("p",{style:{marginBottom:"4px"},children:[(0,a.jsx)("strong",{children:"Items to Display:"})," ",(()=>{if("custom"===n){let e=Array.isArray(m)?m.length:0;return"Custom (".concat(e," item").concat(1!==e?"s":""," selected)")}return"1"===n?"1 (Hero)":"".concat(n)})()]}),o&&(0,a.jsxs)("p",{style:{marginBottom:"4px"},children:[(0,a.jsx)("strong",{children:"Title:"})," ",o]}),d&&(0,a.jsxs)("p",{style:{marginBottom:"4px"},children:[(0,a.jsx)("strong",{children:"CTA Button:"})," ",d]})]}),(0,a.jsxs)("div",{style:{marginTop:"16px",padding:"12px",backgroundColor:"#f5f5f5",borderRadius:"4px"},children:[(0,a.jsx)("p",{style:{marginBottom:"8px",fontWeight:"600",fontSize:"13px"},children:"Layout Preview:"}),(()=>{if("custom"===n){if(!Array.isArray(m)||0===m.length)return(0,a.jsx)("div",{style:{padding:"20px",textAlign:"center",color:"#666",fontStyle:"italic"},children:"Add items to see preview. Select up to 12 items from the content query results."});let e=m.map((e,l)=>l+1),l={border:"2px dashed #ccc",borderRadius:"4px",padding:"12px",display:"flex",alignItems:"center",justifyContent:"center",minHeight:"60px",backgroundColor:"#f9f9f9",fontSize:"12px",fontWeight:"500",color:"#666"};if("list"===c)return(0,a.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:e.map(e=>(0,a.jsxs)("div",{style:l,children:["Custom Item ",e]},e))});if("grid"===c)return(0,a.jsx)("div",{style:{display:"grid",gap:"8px",gridTemplateColumns:"repeat(".concat(u,", 1fr)")},children:e.map(e=>(0,a.jsxs)("div",{style:l,children:["Custom Item ",e]},e))})}let e=Array.from({length:Number(n)},(e,l)=>l+1);if(!c)return(0,a.jsx)("div",{style:{padding:"20px",textAlign:"center",color:"#666",fontStyle:"italic"},children:"Please select a template to see the layout preview"});let l={border:"2px dashed #ccc",borderRadius:"4px",padding:"12px",display:"flex",alignItems:"center",justifyContent:"center",minHeight:"60px",backgroundColor:"#f9f9f9",fontSize:"12px",fontWeight:"500",color:"#666"};return"list"===c?(0,a.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:e.map(e=>(0,a.jsxs)("div",{style:l,children:["Item ",e]},e))}):"grid"===c?(0,a.jsx)("div",{style:{display:"grid",gap:"8px",gridTemplateColumns:"repeat(".concat(u,", 1fr)")},children:e.map(e=>(0,a.jsxs)("div",{style:l,children:["Item ",e]},e))}):null})()]})]})})},c=d},15201:(e,l,t)=>{"use strict";t.r(l),t.d(l,{VideoBlock:()=>j,default:()=>N});var a=t(76792),n=t(42292),i=t(44615),r=t(86605),s=t(35242),o=t(37768),d=t(46859),c=t(95624),u=t(99343),m=t(58010),h=t(18556),x=t(48260),v=t(89170),p=t(70412),g=t(75302),f=t(13942);let y={src:"/_next/static/media/placeholder.6858ca75.jpg"},b=(0,t(23803).h)("video:events"),w=async e=>{let l=await fetch(e);if(!l.ok)throw Error("Failed to fetch video data from ".concat(e));return l.json()},j=e=>{var l;let{file:t,image:j,title:N,description:C,tracks:T=[],playlist:k,custom:A={},playerSettings:S,descriptionAttributes:I,videoReference:M,playlistsReference:_=[]}=e,R="video-player-".concat((0,n.useId)()),P=(0,n.useRef)(!0),L=(0,n.useRef)(null),E=(null==(l=(0,v.J)())?void 0:l.user)||{},D=(0,g.md)(f.a),F=E.isUserPremium||D,B=(0,p.z)(),z=null;M&&("string"==typeof M?z="/api/payload/videos/".concat(M):"object"==typeof M&&(z=(null==M?void 0:M.id)?"/api/payload/videos/".concat(M.id):null));let{data:V,error:W}=(0,i.Ay)(z,w,{revalidateOnFocus:!1,dedupingInterval:3e5}),U=(0,u.c)(),H=(0,n.useMemo)(()=>{let e=[];return!Array.isArray(T)&&(null==T?void 0:T.file)?e.push(T):Array.isArray(T)&&e.push(...T),e},[T]),O=(0,n.useMemo)(()=>V&&Object.keys(V).length>0||M&&"string"!=typeof M,[V,M]),q=(0,n.useMemo)(()=>V&&Object.keys(V).length>0?V:M&&"string"!=typeof M?M:null,[V,M]),G=(0,n.useMemo)(()=>{var e,l,a,n,i,r,s,o,d;return O&&(null==q||null==(l=q.content)||null==(e=l.videoFormatUrls)?void 0:e.length)>0?(null==q||null==(n=q.content)||null==(a=n.defaultFormat)?void 0:a.url)?null==q||null==(d=q.content)||null==(o=d.defaultFormat)?void 0:o.url:null==q||null==(s=q.content)||null==(r=s.videoFormatUrls)||null==(i=r[0])?void 0:i.url:t},[O,q,t]),Z=(0,n.useMemo)(()=>{if(O){var e,l,t;return(null==q||null==(e=q.content)?void 0:e.keyFrameImage)||(null==q||null==(t=q.seo)||null==(l=t.image)?void 0:l.url)||j}return j},[O,q,j]),Q=(0,n.useMemo)(()=>O&&(null==q?void 0:q.title)||N,[O,q,N]),Y=(0,n.useMemo)(()=>{if(O&&(null==q?void 0:q.description)){var e,l,t;return(null==(t=q.description.root)||null==(l=t.children[0])||null==(e=l.children[0])?void 0:e.text)||C}return C},[O,q,C]),X=(0,n.useMemo)(()=>{if(L.current&&JSON.stringify({file:G,image:Z,title:Q,description:Y,tracks:H,playlist:k,custom:A})===JSON.stringify(L.current))return L.current;let e=Z||(G?(0,s.e)(G):null)||y.src,l={file:G,image:e,title:Q,description:Y,tracks:H,custom:A};return L.current=l,l},[G,Z,Q,Y,H,k,A]),$=(0,n.useMemo)(()=>{var e,l,t,a;let n=[];return k&&(n=(0,o.K)(k,X)||[]),_&&_.length,O&&(null==q||null==(e=q.content)?void 0:e.playlists)&&Array.isArray(null==q||null==(l=q.content)?void 0:l.playlists)&&(null==q||null==(a=q.content)||null==(t=a.playlists)||t.length),n.length>0?n:[X]},[k,X,_,q,O]);if((0,n.useEffect)(()=>{P.current=!0},[$]),M&&"string"==typeof M&&!V&&!W)return(0,a.jsx)("div",{className:"flex h-32 items-center justify-center bg-gray-100",children:(0,a.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-t-2 border-b-2 border-gray-900"})});if(W)return(0,a.jsx)("div",{className:"flex h-32 items-center justify-center bg-red-100 text-red-800",children:(0,a.jsx)("span",{children:"Failed to load video data"})});if(!G)return null;let J=[...d.v,...c.yW].map(e=>{let{eventName:l,callback:t}=e;return{eventName:l,callback:e=>{let{event:a,player:n}=e;"time"!==l&&b.info("[".concat(l,"]:"),a),t({event:a,player:n,isFirstPlayRef:P,user:E,trackVideoEvent:U,isMobile:B})}}});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.DebugCollector,{componentName:"VideoBlock",data:{props:{file:t,image:j,title:N,description:C,tracksCount:(0,h.J)(H),hasPlaylist:!!k&&k.length>0,custom:A},state:{videoObject:X,playlistItems:$.length,isFirstPlay:P.current,events:J.map(e=>e.eventName)},performance:{}}}),(0,a.jsx)("div",{className:"overflow-hidden rounded-lg",children:(0,a.jsx)(r.h,{playlist:$,events:J,setupParams:{ads:!F}},R)}),(null==S?void 0:S.showDescriptions)&&(0,a.jsx)("p",{...I,className:(0,x.cn)("my-2 text-sm",null==I?void 0:I.className),children:X.title})]})},N=j},21021:(e,l,t)=>{"use strict";t.d(l,{d:()=>s});var a=t(76792),n=t(42292),i=t(23233);let r=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Sunset"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsx)("g",{fill:"currentColor",children:(0,a.jsx)("path",{d:"M14.499 13.502a.5.5 0 0 1 0 1H1.5a.5.5 0 0 1 0-1zM3 11.003a.5.5 0 0 1 0 1H1.5a.5.5 0 0 1 0-1zM14.5 11.003a.5.5 0 0 1 0 1H13a.5.5 0 0 1 0-1zM8 9a3 3 0 0 1 2.958 2.502c.046.272-.183.498-.459.498s-.493-.227-.562-.494A2.006 2.006 0 0 0 8 10a2.004 2.004 0 0 0-1.937 1.506c-.07.267-.287.494-.563.494s-.505-.226-.459-.498A3 3 0 0 1 8 9M3.05 7.053a.5.5 0 0 1 .707 0l1.046 1.046a.5.5 0 0 1-.707.707L3.05 7.76a.5.5 0 0 1 0-.707M12.242 7.053a.5.5 0 0 1 .707.707l-1.046 1.046a.5.5 0 0 1-.707-.707zM8 2.003a.5.5 0 0 1 .5.5v3.585l.941-.939a.5.5 0 0 1 .705.706L8.396 7.607a.56.56 0 0 1-.79 0L5.853 5.855a.5.5 0 0 1 .705-.706l.942.939V2.503a.5.5 0 0 1 .5-.5"})})]})}),s=n.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:r,...e}));s.displayName="Sunset"},21230:(e,l,t)=>{"use strict";t.d(l,{c:()=>a});let a={"@3xs":256,"@2xs":288,"@xs":320,"@sm":384,"@md":448,"@lg":512,"@xl":576,"@2xl":672,"@3xl":768,"@4xl":896,"@5xl":1024,"@6xl":1152,"@7xl":1280}},22901:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>i});var a=t(76792);t(42292);var n=t(38798);let i=e=>{let{name:l,children:t}=e;return(0,a.jsxs)("div",{className:"mb-1 flex w-full min-w-xl flex-col p-3",style:{border:"2px solid var(--theme-elevation-200)",borderRadius:"5px",background:"var(--theme-input-bg)",color:"var(--theme-elevation-800)",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.05)"},children:[(0,a.jsxs)("h4",{className:"flex items-center gap-2 pb-3",style:{borderBottom:"1px solid var(--theme-elevation-200)",marginBottom:"8px"},children:[(0,a.jsx)("span",{className:"flex-grow truncate text-left text-sm font-medium",children:l}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(n.s8,{}),(0,a.jsx)(n.ON,{})]})]}),(0,a.jsx)("div",{className:"text-sm",children:(0,a.jsx)("div",{className:"pt-1",children:t})})]})}},23376:(e,l,t)=>{"use strict";t.d(l,{m:()=>s});var a=t(76792),n=t(42292),i=t(23233);let r=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Sunrise"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsx)("g",{fill:"currentColor",children:(0,a.jsx)("path",{d:"M14.499 13.5a.5.5 0 1 1 0 1H1.5a.5.5 0 0 1 0-1zM3 11a.5.5 0 0 1 0 1H1.5a.5.5 0 1 1 0-1zM8 9a3 3 0 0 1 2.958 2.502c.046.272-.183.497-.459.497s-.493-.227-.562-.494A2 2 0 0 0 8 10a2 2 0 0 0-1.937 1.505c-.069.267-.287.494-.563.494s-.504-.225-.459-.497A3 3 0 0 1 8 9M14.5 11a.5.5 0 0 1 0 1H13a.5.5 0 1 1 0-1zM3.05 7.05a.5.5 0 0 1 .708 0l1.045 1.046a.5.5 0 0 1-.707.707L3.05 7.757a.5.5 0 0 1 0-.707M12.242 7.05a.5.5 0 0 1 .707.707l-1.046 1.046a.5.5 0 0 1-.707-.707zM7.605 2.397a.56.56 0 0 1 .79 0l1.753 1.753a.5.5 0 0 1-.706.706L8.5 3.917v3.585a.5.5 0 0 1-1 0V3.917l-.942.939a.5.5 0 0 1-.705-.706z"})})]})}),s=n.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:r,...e}));s.displayName="Sunrise"},25895:(e,l,t)=>{"use strict";t.d(l,{A:()=>el});var a=t(76792),n=t(42292),i=t(75302),r=t(30505),s=t(47421),o=t(70336),d=t(68751),c=t(32035),u=t(50772),m=t(21230),h=t(58196),x=t(20135),v=t(23233);let p=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Rain Snow Wintery Mix"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{fillRule:"evenodd",d:"M7.982 1.833c-1.303 0-2.391 1.032-2.5 2.37l-.034.407-.405.049c-.67.08-1.209.672-1.209 1.41 0 .724.518 1.307 1.17 1.405l.217.015h4.896l.024.003q.087.008.175.008c1.01 0 1.851-.845 1.851-1.915 0-.946-.66-1.719-1.51-1.882l-.264-.051-.104-.248c-.386-.93-1.279-1.57-2.307-1.57M4.535 3.747C4.843 2.096 6.26.833 7.982.833c1.367 0 2.543.798 3.123 1.95 1.198.352 2.062 1.48 2.062 2.802 0 1.597-1.264 2.915-2.851 2.915a3 3 0 0 1-.245-.01H5.187l-.25-.018H4.92l-.034-.005c-1.168-.16-2.051-1.182-2.051-2.398 0-1.091.71-2.026 1.701-2.322",clipRule:"evenodd","data-figma-bg-blur-radius":20}),(0,a.jsx)("path",{d:"m7.954 9.295-.543 1.491a.5.5 0 0 0 .94.342l.543-1.491a.5.5 0 1 0-.94-.342M10.267 11.085l-.856 2.352a.5.5 0 0 0 .94.342l.856-2.352a.5.5 0 1 0-.94-.342M5.964 11.324a.25.25 0 0 1 .25.25v.152a.25.25 0 0 1 .297.396l-.297.297v2.092l.301.317a.25.25 0 0 1-.301.391v.207a.25.25 0 0 1-.5 0v-.212a.25.25 0 0 1-.309-.389l.309-.315v-2.092l-.307-.307a.25.25 0 0 1 .307-.39v-.147a.25.25 0 0 1 .25-.25"}),(0,a.jsx)("path",{d:"M7.816 12.41a.255.255 0 0 1-.092.345l-.182.107a.253.253 0 0 1-.272.383l-.264-.068-1.792 1.054-.153.366a.247.247 0 0 1-.46-.006l-.152.09a.245.245 0 0 1-.339-.09.255.255 0 0 1 .092-.345l.175-.103a.25.25 0 0 1-.04-.174.25.25 0 0 1 .279-.218l.351.045 1.792-1.054.085-.307a.247.247 0 0 1 .473-.02l.16-.095c.12-.07.271-.03.34.09"}),(0,a.jsx)("path",{d:"M7.815 14.59a.245.245 0 0 1-.339.09l-.16-.094a.247.247 0 0 1-.473-.02l-.084-.308-1.792-1.053-.352.045a.25.25 0 0 1-.279-.219.25.25 0 0 1 .04-.174l-.175-.102a.255.255 0 0 1-.092-.345c.068-.12.22-.16.339-.09l.152.089a.247.247 0 0 1 .46-.006l.154.367 1.791 1.053.265-.067a.25.25 0 0 1 .303.182.25.25 0 0 1-.032.2l.182.107c.119.07.16.225.092.345"})]})]})}),g=n.forwardRef((e,l)=>(0,a.jsx)(v.h,{ref:l,icon:p,...e}));g.displayName="RainSnowWinteryMix";var f=t(60645),y=t(51254);let b=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Feels Like"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{fillRule:"evenodd",d:"M10.889 4.163A2 2 0 1 0 13.11.837a2 2 0 0 0-2.222 3.326m.555-2.494a1 1 0 1 1 1.112 1.662 1 1 0 0 1-1.112-1.662M11 15h2a1.003 1.003 0 0 0 1-1v-3.5a1.003 1.003 0 0 0 1-1v-3A1.47 1.47 0 0 0 13.5 5h-3A1.473 1.473 0 0 0 9 6.5v3a1.003 1.003 0 0 0 1 1V14a1.003 1.003 0 0 0 1 1m-.696-8.97A.5.5 0 0 1 10.5 6h3a.473.473 0 0 1 .5.5v3h-1V14h-2V9.5h-1v-3a.47.47 0 0 1 .304-.47",clipRule:"evenodd"}),(0,a.jsx)("path",{d:"M5 10.092V6H4v4.092a1.5 1.5 0 1 0 1 0"}),(0,a.jsx)("path",{fillRule:"evenodd",d:"M2.563 14.417c.574.38 1.248.584 1.937.583A3.497 3.497 0 0 0 7 9.055V3.5a2.5 2.5 0 1 0-5 0v5.555a3.497 3.497 0 0 0 .563 5.362M3.44 2.44a1.5 1.5 0 0 1 2.12 0c.281.281.44.662.44 1.06v5.992l.166.149a2.5 2.5 0 1 1-3.332 0L3 9.49V3.5c0-.398.159-.779.44-1.06",clipRule:"evenodd"})]})]})}),w=n.forwardRef((e,l)=>(0,a.jsx)(v.h,{ref:l,icon:b,...e}));w.displayName="FeelsLike";var j=t(60393),N=t(75848),C=t(49694),T=t(8366);let k=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Cloud Cover"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"m11.109 11.591.06.006q.099.01.204.01c1.17 0 2.176-.984 2.176-2.269 0-1.133-.789-2.04-1.778-2.23l-.66-.128-.258-.62c-.488-1.174-1.607-1.967-2.88-1.967-1.614 0-2.987 1.28-3.125 2.974l-.083 1.017-1.013.122c-.707.085-1.303.718-1.303 1.538 0 .795.562 1.415 1.242 1.528l.276.02zm-7.185 1.25-.363-.025h-.003C2.226 12.633 1.2 11.461 1.2 10.044c0-1.434 1.05-2.616 2.403-2.779.189-2.309 2.073-4.122 4.37-4.122 1.812 0 3.366 1.127 4.035 2.737 1.59.305 2.792 1.737 2.792 3.458 0 1.944-1.534 3.519-3.426 3.519q-.165 0-.324-.016z",clipRule:"evenodd"})]})}),A=n.forwardRef((e,l)=>(0,a.jsx)(v.h,{ref:l,icon:k,...e}));A.displayName="CloudCover";var S=t(56157);let I=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Wind Gust"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",d:"m2.5 4.375 4-3a.63.63 0 0 1 .572-.093l11.25 3.75h.001a.624.624 0 0 1 0 1.186l-11.25 3.75a.63.63 0 0 1-.573-.093l-4-3V18.75H1.25V1.25H2.5zm13.75 9.375a2.5 2.5 0 0 1 0 5H7.5V17.5h8.75A1.25 1.25 0 1 0 15 16.25h-1.25a2.503 2.503 0 0 1 2.5-2.5M10 11.25a2.5 2.5 0 0 1 0 5H5V15h5a1.25 1.25 0 1 0-1.25-1.25H7.5a2.5 2.5 0 0 1 2.5-2.5M7.5 8.508l1.25-.417V3.159L7.5 2.742zM2.917 5.625l3.333 2.5v-5zM10 7.675l1.25-.417V3.992L10 3.575zm2.5-.834 3.648-1.216L12.5 4.409z"})]})}),M=n.forwardRef((e,l)=>(0,a.jsx)(v.h,{ref:l,icon:I,...e}));M.displayName="WindGust";var _=t(23376),R=t(21021);let P=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"moonrise"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsx)("g",{fill:"currentColor",children:(0,a.jsx)("path",{d:"M14.5 14h-13a.5.5 0 0 0 0 1h13a.5.5 0 0 0 0-1M12.975 12.501c.027.275-.199.499-.475.499s-.497-.225-.531-.5a4 4 0 0 0-.678-1.774c-.158-.227-.143-.542.063-.726.205-.184.524-.168.687.055.523.717.846 1.562.934 2.446M8.03 12.5c-.034.274-.255.5-.531.5s-.502-.224-.475-.498a4.96 4.96 0 0 1 1.853-3.404 4.005 4.005 0 0 0-4.845 3.404c-.035.274-.256.498-.531.498-.277 0-.503-.225-.475-.5A5.006 5.006 0 0 1 8 8c.772 0 1.533.18 2.223.526a.5.5 0 0 1 0 .895A3.98 3.98 0 0 0 8.03 12.5M8.471 1.195a.667.667 0 0 0-.942 0L5.853 2.871a.499.499 0 0 0 .705.706L7.5 2.64v3.585a.5.5 0 0 0 1 0V2.639l.942.938a.499.499 0 0 0 .705-.706z"})})]})}),L=n.forwardRef((e,l)=>(0,a.jsx)(v.h,{ref:l,icon:P,...e}));L.displayName="Moonrise";let E=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Foggy"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:[(0,a.jsx)("path",{d:"M9.984 3.633c-.602-.476-1.421-.8-2.464-.541-1.904.47-2.363 2.031-2.363 3.037v.5h-.5c-.252 0-.531.081-.783.199-.257.12-.429.25-.474.296a.5.5 0 1 1-.714-.699c.156-.16.442-.353.766-.504.21-.098.46-.19.729-.243.133-1.26.854-3.002 3.099-3.557 1.404-.347 2.534.103 3.324.729a4.6 4.6 0 0 1 1.27 1.568c.955.204 2.28.915 2.542 2.77.145 1.026-.165 1.816-.629 2.375a3.16 3.16 0 0 1-1.456.985.5.5 0 0 1-.29-.958c.26-.078.668-.293.976-.665.296-.356.512-.868.41-1.596-.205-1.445-1.28-1.888-1.97-1.967l-.326-.038-.095-.314c-.076-.25-.429-.883-1.052-1.377M1 12.703a.5.5 0 0 1 .5-.5h6.625a.5.5 0 0 1 0 1H1.5a.5.5 0 0 1-.5-.5"}),(0,a.jsx)("path",{d:"M3.51 10.51a.5.5 0 0 1 .5-.5h6.625a.5.5 0 1 1 0 1H4.009a.5.5 0 0 1-.5-.5M1 8.414a.5.5 0 0 1 .5-.5h6.625a.5.5 0 0 1 0 1H1.5a.5.5 0 0 1-.5-.5"})]})]})}),D=n.forwardRef((e,l)=>(0,a.jsx)(v.h,{ref:l,icon:E,...e}));D.displayName="Foggy";var F=t(40640),B=t(62596),z=t(99838);let V=e=>e?(0,z.$)(e).replace(/([+-]\d{2}:?\d{2})$/,"+0000"):"";var W=t(71666),U=t(55406),H=t(81217),O=t(28004),q=t(46670),G=t(63236),Z=t(48834),Q=t(7886);let Y=(0,n.memo)(e=>{let l,{airQualityIndex:t,airQualityCategory:n,className:i}=e,r=!(0,h.g)(t)&&!Number.isNaN(t),s=!(0,h.g)(n)&&""!==n.trim();return l=r&&s?"".concat(t," - ").concat(n):r?"".concat(t):s?n:"--",(0,a.jsx)("span",{"data-testid":"AirQualityValue",className:i,children:l})});var X=t(43436);let $=e=>!(0,h.g)(e)||null,J={derive:e=>{let{precipType:l}=e;return"precip"===l?g:"snow"===l?f.D:y.Y}},K={temperatureFeelsLike:{label:(e,l)=>{let{t}=l;return t("feelsLike")},icon:w,value:e=>{let{temperatureFeelsLike:l}=e;return $(l)&&(0,a.jsx)(U.B,{value:l})}},windSpeed:{label:(e,l)=>{let{t}=l;return t("wind")},icon:j.Z,value:(e,l)=>{let{windSpeed:t,windDirectionCardinal:n}=e,{unitName:i}=l,r=(0,W.xP)(i);return $(t)&&(0,a.jsx)(H.Z,{className:"whitespace-nowrap",windSpeed:t,windDirectionCardinal:n,units:r.code,displayMode:"directionalAndCardinal"})}},precipChance:{label:(e,l)=>{let{precipType:t}=e,{t:a}=l;return a("chanceOf".concat((0,x.Z)(null!=t?t:"")))},icon:J,value:e=>{let{precipChance:l}=e;return $(l)&&(0,a.jsx)(O.N,{value:l})}},relativeHumidity:{label:(e,l)=>{let{t}=l;return t("humidity")},icon:N.K,value:e=>{let{relativeHumidity:l}=e;return $(l)&&(0,a.jsx)(O.N,{value:l})}},pressureMeanSeaLevel:{label:(e,l)=>{let{t}=l;return t("pressure")},icon:C.S,value:e=>{let{pressureMeanSeaLevel:l}=e;return $(l)&&(0,a.jsx)(q.S,{pressureMeanSeaLevel:l})}},visibility:{label:(e,l)=>{let{t}=l;return t("visibility")},icon:F.S,value:(e,l)=>{let{visibility:t}=e,{unitName:n}=l;return $(t)&&(0,a.jsx)(G.b,{visibility:t,units:(0,W.xP)(n).code})}},uvIndex:{label:(e,l)=>{let{t}=l;return t("uvIndex")},icon:T.o,value:e=>{let{uvIndex:l}=e;return $(l)&&(0,a.jsx)(Z.M,{uvIndex:l})}},cloudCover:{label:(e,l)=>{let{t}=l;return t("cloudCover")},icon:A,value:e=>{let{cloudCover:l}=e;return $(l)&&(0,a.jsx)(O.N,{value:l})}},accumulation:{label:(e,l)=>{let{precipType:t}=e,{t:a}=l;return a("".concat(t,"Amount"))},icon:J,value:(e,l)=>{let{qpf:t,qpfSnow:n,precipType:i}=e,{unitName:r}=l;return $(t)||$(n)?(0,a.jsx)(Q.e,{precipType:i,qpf:t,qpfSnow:n,units:(0,W.xP)(r).code}):null}},temperatureDewPoint:{label:(e,l)=>{let{t}=l;return t("dewPoint")},icon:S.$,value:e=>{let{temperatureDewPoint:l}=e;return $(l)&&(0,a.jsx)(U.B,{value:l})}},windGust:{label:(e,l)=>{let{t}=l;return t("windGust")},icon:M,value:(e,l)=>{let{windGust:t}=e,{unitName:n}=l;return(0,a.jsx)(H.Z,{windSpeed:null!=t?t:void 0,units:(0,W.xP)(n).code})}},sunrise:{label:(e,l)=>{let{t}=l;return t("sunrise")},icon:_.m,value:(e,l)=>{let{sunriseTimeLocal:t}=e,{locale:a}=l;return t?(0,B.P)({date:V(t),timeZone:"Etc/GMT",locale:a,minutes:!0}):"--"}},sunset:{label:(e,l)=>{let{t}=l;return t("sunset")},icon:R.d,value:(e,l)=>{let{sunsetTimeLocal:t}=e,{locale:a}=l;return t?(0,B.P)({date:V(t),timeZone:"Etc/GMT",locale:a,minutes:!0}):"--"}},moonrise:{label:(e,l)=>{let{t}=l;return t("moonrise")},icon:L,value:(e,l)=>{let{moonriseTimeLocal:t}=e,{locale:a}=l;return t?(0,B.P)({date:V(t),timeZone:"Etc/GMT",locale:a,minutes:!0}):"--"}},moonset:{label:(e,l)=>{let{t}=l;return t("moonset")},icon:L,value:(e,l)=>{let{moonsetTimeLocal:t}=e,{locale:a}=l;return t?(0,B.P)({date:V(t),timeZone:"Etc/GMT",locale:a,minutes:!0}):"--"}},moonPhase:{label:"",icon:{derive:e=>{let{moonPhaseCode:l}=e;return e=>(0,a.jsx)(X.r,{...e,moonPhaseCode:l})}},value:e=>{let{moonPhase:l}=e;return $(l)&&l}},airQuality:{label:(e,l)=>{let{t}=l;return t("airQuality")},icon:D,value:e=>{let{airQualityIndex:l,airQualityCategory:t}=e;return $(l)&&(0,a.jsx)(Y,{airQualityIndex:l,airQualityCategory:t})}}},ee=(0,r.F)("grid justify-between gap-1",{variants:{cols:{1:"grid-cols-[repeat(1,auto)]",2:"grid-cols-[repeat(2,auto)]",3:"grid-cols-[repeat(3,auto)]",4:"grid-cols-[repeat(4,auto)]",5:"grid-cols-[repeat(5,auto)]",6:"grid-cols-[repeat(6,auto)]"}}}),el=(0,n.memo)(e=>{let{dataPoints:l,fields:t,locale:r,columns:h,children:x}=e,{small:v=2,medium:p=3,large:g=4}="object"==typeof h?h||{}:{small:h,medium:h,large:h},[f,y]=(0,u.r)(e=>e>=m.c["@xl"]?g:e>=m.c["@xs"]?p:v),b=f||p,w=(0,s.c3)("DetailsTable"),j={unitName:(0,i.md)(c.Yt),t:w,locale:r},N=0;return(0,a.jsx)(o.Zp,{ref:y,className:"border-2xl @container/detailsTable h-full bg-gray-100 p-0",children:(0,a.jsxs)(o.Wu,{className:"px-4 py-4 @xl/detailsTable:px-6",children:[x&&(0,a.jsx)("div",{children:x}),(0,a.jsx)("ul",{className:ee({cols:b}),children:t.map((e,i)=>{let r,s=K[e],o=null==s?void 0:s.value(l,j);if(!s||!o)return N++,null;let c="derive"in s.icon?s.icon.derive(l,j):s.icon,u="function"==typeof s.label?s.label(l,j):s.label,m=t.length-N,h=i-N,x=m%b;if(h===m-1&&0!==x){let e=b-x+1;r={gridColumn:"span ".concat(e," / span ").concat(e)}}return(0,a.jsxs)(n.Fragment,{children:[h>0&&h%b==0&&(0,a.jsx)("li",{className:"col-span-full py-3",children:(0,a.jsx)("div",{className:"border-b border-[#dedede]"})}),(0,a.jsxs)("li",{className:"flex gap-1 @md/detailsTable:gap-1.5 @xl/detailsTable:gap-2",style:r,children:[c&&(0,a.jsx)(c,{className:"size-4 @md/detailsTable:size-5"}),(0,a.jsxs)("div",{children:[u&&(0,a.jsx)(d.Ay,{variant:"Body.M",className:"mb-0.5 text-sm leading-normal @xl/detailsTable:text-base",children:u}),(0,a.jsx)(d.Ay,{elementType:"string"==typeof o?"p":"div",variant:"Body.L.Bold",className:"text-sm leading-normal @xl/detailsTable:text-base",children:o})]})]})]},u+h)})})]})})})},26106:(e,l,t)=>{"use strict";t.r(l),t.d(l,{TaboolaBlock:()=>p,TaboolaBlockView:()=>g,default:()=>f});var a=t(76792),n=t(42292),i=t(55198),r=t(54909),s=t(58010),o=t(48260),d=t(70336),c=t(89170),u=t(75302),m=t(13942),h=t(64996);let x=function(){let{DISCONNECTED_user:e}=(0,c.J)(),[l,t]=(0,n.useState)(!1),a=(0,u.md)(h.W);return(0,n.useEffect)(()=>{a&&t((()=>{try{var e,l,t,a;if(void 0!==(null==(e=window)?void 0:e.DprSdk)){let e=null==(t=window)||null==(l=t.DprSdk)?void 0:l.getFeatureFlags();return null==(a=null==e?void 0:e.taboola)||a}return!0}catch(e){return!0}})())},[a]),l&&!(null==e?void 0:e.isUserPremium)},v=(()=>{let e="",l=!1;return()=>({pushTaboolaCommand:(0,n.useCallback)((t,a,n)=>{window._taboola=window._taboola||[],a!==e&&(""===e||l||(window._taboola.push({notify:"newPageLoad"}),l=!0),e=a,l=!1),window._taboola.push({[n]:"auto",url:a}),window._taboola.push(t),window._taboola.push({flush:!0})},[])})})(),p=e=>{let{showTaboola:l=!0,...t}=e,{user:n}=(0,c.J)(),i=(0,u.md)(m.a),r=x();return n.isUserPremium||i||!r||!l?null:(0,a.jsx)(g,{...t})},g=e=>{let{taboolaId:l,taboolaUiMode:t,placementName:c,title:u="",pageType:m,taboolaType:h,loaderUrl:x}=e,p=(0,n.useRef)(null),[g,f]=(0,n.useState)("pending"),y=(0,i.usePathname)(),{isTaboolaLoaded:b}=(e=>{let[l,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(l)return;if(document.getElementById("tb_loader_script"))return void t(!0);window._taboola=window._taboola||[],window.performance&&"function"==typeof window.performance.mark&&window.performance.mark("tbl_ic");let a=document.createElement("script");a.src=e,a.id="tb_loader_script",a.async=!0,a.onload=()=>{t(!0)},a.onerror=()=>{console.error("Failed to load Taboola script.")},document.body.appendChild(a)},[l,e]),{isTaboolaLoaded:l}})(x),{pushTaboolaCommand:w}=v(),j=(0,n.useMemo)(()=>{let e=(0,r.j)();return"".concat(e).concat(y||"")},[y]),N="empty"!==g,C=(0,n.useMemo)(()=>{let e="taboola-below-content-thumbnails---video"===l||"taboola-below-content-thumbnails-video"===l;return{container:N?"generic"!==h?"wx-media-object gradient-overlay thirdparty-feed border":e?"gap-2 py-0 md:rounded-md max-sm:rounded-none":"gap-2 py-5":"hidden",headerContainer:e?"mx-4 px-0 pt-6 max-sm:border-t max-sm:border-gray-200":"px-4",header:e?"text-[20px] font-semibold":"text-xl font-semibold",contentContainer:"z-40 px-4"}},[l,h,N]);return((0,n.useEffect)(()=>{b&&"pending"===g&&w({mode:t,container:l,placement:c,target_type:"mix"},j,m)},[b,g,w,l,t,c,j,m]),(0,n.useEffect)(()=>{let e=p.current;if(!e||!b)return;let l=new MutationObserver((l,t)=>{try{e.hasChildNodes()?(f("populated"),t.disconnect()):"pending"!==g&&(f("empty"),t.disconnect())}catch(e){console.warn("Error in TaboolaBlock content observer",e)}});return l.observe(e,{childList:!0}),e.hasChildNodes()&&(f("populated"),l.disconnect()),()=>l.disconnect()},[b,g]),b)?"invisible"===h?(0,a.jsx)("div",{id:l,ref:p}):(0,a.jsxs)("section",{className:"@container",children:[(0,a.jsx)(s.DebugCollector,{componentName:"TaboolaBlock",data:{props:{taboolaId:l,taboolaUiMode:t,placementName:c,title:u,taboolaType:h,pageType:m,pageUrl:j,taboolaContentState:g,shouldShow:N}}}),"generic"===h?(0,a.jsxs)(d.Zp,{className:C.container,children:[u&&N&&(0,a.jsx)(d.aR,{className:C.headerContainer,children:(0,a.jsx)("h2",{className:C.header,children:u})}),(0,a.jsx)(d.Wu,{className:(0,o.cn)(C.contentContainer),children:(0,a.jsx)("div",{id:l,className:"bg-none",ref:p})})]}):(0,a.jsxs)("div",{className:C.container,children:[u&&N&&(0,a.jsx)("header",{"aria-label":"Taboola",className:"panel-heading mb-2",children:(0,a.jsx)("h2",{"data-testid":"taboolaHeading",className:"text-lg font-medium",children:u})}),(0,a.jsx)("div",{id:l,className:"flex min-h-[300px] w-full items-center justify-center",ref:p})]})]}):null},f=p},27301:(e,l,t)=>{"use strict";l.p_=r;let a=t(17681),n=t(36762),i=t(84015);async function r(e){let l=(0,i.getEmailPreferencesSetUrlConfig)(),t=(0,a.urlFrom)(l),r=JSON.stringify(function(e){let{subscriptions:l,email:t,mParticleId:a}=e,n={};return l&&(n.subscriptions=l),t&&(n.email=t),a&&(n.mParticleId=a),n}(e)),s=await fetch(t,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:r});if(200===s.status||400===s.status){let e=await s.json();return console.log({json:e}),e}return(0,n.handleFetchResponse)(s)}},27863:(e,l,t)=>{"use strict";t.r(l),t.d(l,{CallToActionAdminBlock:()=>o,default:()=>d});var a=t(76792);t(42292);var n=t(22901),i=t(82188),r=t(8818),s=t(57965);let o=()=>{var e;let[l]=(0,r.kV6)(),t=(0,i.r)(l,!0),o=null;[{data:o}]=(0,r.Q0O)(t.media?"/api/payload/images/".concat(t.media):"");let d=(null==o?void 0:o.url)?null==o?void 0:o.url:"";return(0,a.jsx)(n.default,{name:null!=(e=null==t?void 0:t.title)?e:"Empty CTA Block",children:(null==t?void 0:t.title)?(0,a.jsxs)("div",{className:"space-y-4 rounded-lg p-4 shadow-sm",children:[(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-black-800",children:"Title:"}),(0,a.jsx)("div",{className:"text-gray-600",children:t.title})]}),t.subTitle&&(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold",children:"Subtitle:"}),(0,a.jsx)("div",{className:"text-gray-700",children:t.subTitle})]}),t.subText&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("span",{className:"font-semibold",children:"Sub Text:"}),(0,a.jsx)("div",{className:"text-gray-700",children:t.subText})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold",children:"CTA Style:"}),(0,a.jsx)("div",{className:"text-gray-700",children:t.ctaStyle})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold",children:"Background:"}),(0,a.jsx)("div",{className:"text-gray-700",children:t.backgroundColor||"white"})]}),t.buttonText&&(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold",children:"Button Text:"}),(0,a.jsx)("div",{className:"text-gray-700",children:t.buttonText})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold",children:"Link URL:"}),(0,a.jsx)("div",{className:"truncate text-gray-700",children:t.linkUrl})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold",children:"Opens in:"}),(0,a.jsx)("div",{className:"text-gray-700",children:t.openInNewTab?"New Tab":"Same Tab"})]})]}),d&&(0,a.jsx)(s.default,{src:d,alt:"",className:"max-h-[240px] max-w-[240px]"})]}):(0,a.jsx)("div",{className:"flex h-32 items-center justify-center border border-dashed border-gray-300",children:(0,a.jsx)("span",{children:"CTA is empty."})})})},d=o},28004:(e,l,t)=>{"use strict";t.d(l,{N:()=>r});var a=t(76792),n=t(42292),i=t(48260);let r=(0,n.memo)(e=>{let{value:l,className:t,roundValue:n}=e,r=n?function(e){return e%5>=2.5?5*parseInt(String(e/5),10)+5:5*parseInt(String(e/5),10)}(l):l;return(0,a.jsx)("span",{"data-testid":"PercentageValue",className:(0,i.cn)(t),children:Number.isFinite(r)&&r>=0?"".concat(r,"%"):"--"})})},28935:(e,l,t)=>{"use strict";t.r(l),t.d(l,{CurrentConditionsAdminBlock:()=>i,default:()=>r});var a=t(76792);t(42292);var n=t(22901);let i=()=>(0,a.jsx)(n.default,{name:"CurrentConditions"}),r=i},29458:(e,l,t)=>{"use strict";t.r(l),t.d(l,{HurricaneTrackerBlock:()=>M,default:()=>_});var a=t(76792),n=t(46593),i=t(44685),r=t(71666),s=t(42292),o=t(44615),d=t(75302),c=t(78782),u=t(32035),m=t(55198),h=t(66020),x=t(74728),v=t(69914);let p={lod:4,attr:0,format:"png",height:"320",width:"568",product:"9066",basemap:"dark",baseUrl:"https://api.weather.com/v2/maps/dynamic?"},g={revalidateOnFocus:!1,dedupingInterval:6e4};var f=t(47421),y=t(29005),b=t(69585),w=t(81217),j=t(19375),N=t(9198),C=t(89975),T=t(48260);let k={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]"},A=e=>{var l;let{titleKey:t,outboundUrl:n,imageUrl:i,stormDetails:o,units:d,loading:c}=e,u=(0,f.c3)("HurricaneTracker"),m=(0,f.c3)("DetailsTable"),{advisoryTime:h,stormName:x,stormType:v,stormTypeCode:p,stormSubTypeCode:g,maxWind:A,direction:S,speed:I,pressure:M}=o||{},_=(null!=(l=(0,r.Bu)(d))?l:r.AF).speed,R=(0,s.useMemo)(()=>{let e="l";return g&&(e="cat".concat(g)),g||"TS"!==p||(e="ts"),e},[g,p]);return(0,a.jsxs)(b.Zp,{"data-testid":"HurricaneTracker","aria-label":u(t),children:[t&&(0,a.jsx)(b.aR,{text:u(t)}),(0,a.jsx)(b.Wu,{className:"p-0",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)(N.default,{href:n,className:"block",children:[(0,a.jsx)("div",{className:"absolute h-full w-full rounded-lg bg-gradient-to-b from-black via-transparent to-black [background:linear-gradient(0deg,rgba(0,0,0,1)_0%,rgba(0,0,0,0)_20%,rgba(0,0,0,0)_80%,rgba(0,0,0,1)_100%)]"}),(0,a.jsx)("div",{className:"z-0 h-80 w-full rounded-lg bg-[#4d505b] bg-cover bg-center",style:i?{backgroundImage:"url(".concat(i,")")}:void 0}),(0,y.n)(x)&&(0,a.jsxs)("div",{className:"absolute top-0 z-[1] mt-3 ml-4 flex max-w-[60%] text-sm leading-[1.25] text-white",children:[(0,a.jsx)("div",{className:(0,T.cn)("box-border flex h-[35px] w-[35px] min-w-[35px] items-center justify-center rounded-full border-2 border-white bg-gray-500 p-0.5 text-center leading-none font-bold",k[R]),children:p}),(0,a.jsxs)("div",{className:"ml-2.5 flex flex-col",children:[(0,a.jsx)("div",{className:"text-base leading-[1.15] font-bold",children:"".concat(v," ").concat(x)}),(0,a.jsx)("div",{className:"text-xs",children:h})]})]}),(0,y.n)(I)&&(0,y.n)(S)&&(0,a.jsxs)("ul",{className:"absolute bottom-0 z-[1] box-border flex w-full list-none flex-row px-4 py-3 text-sm leading-[1.25] text-white",children:[(0,a.jsxs)("li",{className:"mr-8",children:[(0,a.jsx)("div",{className:"text-xs",children:u("maxWinds")}),(0,a.jsx)("div",{className:"font-bold",children:(0,a.jsx)(w.Z,{windSpeed:null!=A?A:void 0,units:d})})]}),(0,a.jsxs)("li",{className:"mr-8",children:[(0,a.jsx)("div",{className:"text-xs",children:u("movement")}),(0,a.jsx)("div",{className:"font-bold",children:u("directionSpeedUnit",{direction:S,speed:I,windUnit:_})})]}),(0,a.jsxs)("li",{className:"mr-0",children:[(0,a.jsx)("div",{className:"text-xs",children:m("pressure")}),(0,a.jsx)("div",{className:"font-bold",children:M?"".concat(M," mb"):"--"})]})]}),c&&(0,a.jsx)(C.a,{className:"absolute top-1/2 left-1/2 -translate-1/2",variant:"white",size:"lg",label:"Loading"})]}),(0,a.jsx)(j.L,{position:"top-right",color:"white",className:"!top-[13px] !right-4 z-[1] [&_button]:!p-0",stack:!0})]})})]})};var S=t(61e3);let I=e=>{var l;let{location:t,titleKey:n,zoom:i,stormId:f,basin:y,showPT:b,initializing:w,initialError:j}=e,{effectiveLocation:N,isLocationLoading:C}=(0,S.s)({location:t}),T=(0,d.md)(u.Yt),k=null==(l=(0,r.xP)(T))?void 0:l.code,{imageUrl:I,interactiveMapUrl:M,stormDetails:_,isLoading:R,error:P}=(e=>{let{location:l,basin:t,showPT:a,stormId:n,overlays:i,zoom:f,stormIdSelectorName:y}=e,{countryCode:b,placeId:w,ianaTimeZone:j}=l||{},N=(0,m.useParams)().locale||"en-US",C=null==N?void 0:N.split("-")[0],T=(0,d.md)(u.Yt),k=((0,r.xP)(T)||r.AF).code,A=(0,x.n)({key:"radar",interpolationArgs:{locale:N,locId:w||""}}),{data:S,isLoading:I,error:M}=(0,o.Ay)(l?["getTropicalCurrentPosition",t||"all","default","false",k,N]:null,e=>{let[l,t,a,n,i,r]=e;return(0,c.x)({basin:t,source:a,nautical:n,units:i,language:r})},g),_=null==S?void 0:S.advisoryinfo,R=(0,s.useMemo)(()=>{if(!_||!_.length)return;let e=new Date(Date.now()),l=[];return _.forEach(t=>{var n;let i=null==t||null==(n=t.currentposition)?void 0:n.storm_type_cd;if("RO"===i||"PT"===i&&!a)return;let r=new Date(t.adv_dt_tm),s=((e,l)=>e&&l?Math.floor((Date.parse(l)-Date.parse(e))/864e5):0)(e.toString(),r.toString());(0===s||-1===s)&&("AL"===t.basin?l.unshift(t):l.push(t))}),l.length>0?l:void 0},[_,a]),P=(0,s.useMemo)(()=>{if(!R||!n)return null;let e=R.find(e=>e.storm_id.toLowerCase()===n.toLowerCase());if(e)return e;let l=R.find(e=>e.storm_name.toLowerCase()===n.toLowerCase());return l||null},[R,n]),L=(0,s.useMemo)(()=>P||y?P:!P&&R?R[0]:null,[R,P,y]),E=(0,s.useMemo)(()=>{var e,l,t,a,n,i,r,s,o,d;if(!L)return null;let c=null==(e=L.currentposition)?void 0:e.storm_type_cd,u=null==(l=L.currentposition)?void 0:l.storm_sub_type_cd,m=L.adv_dt_tm,h=null==(t=L.currentposition)?void 0:t.min_pressure;return h&&"e"===k&&(h=Math.round(33.8639*h)),h||(h=null),{advisoryTime:(e=>{let{date:l,locale:t="en-US",timeZone:a}=e;if(!l)return"";let n={month:"short",day:"numeric",hour:"numeric",hour12:!0,minute:"2-digit"};if(!t.includes("-US"))return delete n.hour12,n.hourCycle="h23",(0,v.w)(l,t,a);let i=(0,v.V)(l,t,a,n),r=i.find(e=>"month"===e.type).value,s=i.find(e=>"day"===e.type).value,o=i.find(e=>"hour"===e.type).value,d=i.find(e=>"minute"===e.type).value,c=i.find(e=>"dayperiod"===e.type.toLowerCase()).value.toLowerCase();return"".concat(r," ").concat(s,", ").concat(o,":").concat(d," ").concat(c)})({date:m,locale:N,timeZone:j||"UTC"}),maxWind:null==(a=L.currentposition)?void 0:a.max_sustained_wind,stormName:L.storm_name,stormSubType:null==(n=L.currentposition)?void 0:n.storm_sub_type,stormSubTypeCode:u,stormType:null==(i=L.currentposition)?void 0:i.storm_type,stormTypeCode:((e,l)=>l?"CAT ".concat(l):"TS"===e?"TS":"L")(c,u),direction:null==(s=L.currentposition)||null==(r=s.heading)?void 0:r.storm_dir_cardinal,speed:null==(d=L.currentposition)||null==(o=d.heading)?void 0:o.storm_spd,pressure:h}},[L,N,j,k]),D=(0,s.useMemo)(()=>{if(!L)return null;let{lod:e,attr:l,format:t,height:a,width:n,product:r,basemap:s,baseUrl:o}=p,d=i||r,c=f||e,u=(0,h.S)(L.currentposition.lat,c),m=(0,h.S)(L.currentposition.lon,c),x=C&&["en","fr","es","de","ru","zu"].indexOf(C)>=0?C:"en",v=null;return"IN"===b&&(v="&region=in"),"".concat(o,"geocode=").concat(u,",").concat(m,"&h=").concat(a,"&w=").concat(n,"&lod=").concat(c)+"&product=".concat(d,"&map=").concat(s,"&format=").concat(t,"&language=").concat(x)+"&apiKey=".concat("71f92ea9dd2f4790b92ea9dd2f779061","&a=").concat(l)+"".concat(v||"")},[L,C,b,i,f]),F=(0,s.useMemo)(()=>{if(!L)return null;let e=!w,l=e?"/redir":A,t=L.storm_name,a=f||6,n=new URLSearchParams;return e&&(n.set("page","radar"),n.set("id","autodetect")),n.set("base","roadsDark"),n.set("zoom",String(a)),t&&n.set("collection",t),"".concat(l,"?").concat(n.toString())},[L,w,A,f]);return{tropicalStorms:_,isLoading:I,error:M,allActiveStorms:R,queriedStorm:P,stormData:L,stormDetails:E,imageUrl:D,interactiveMapUrl:F}})({location:N,zoom:i||void 0,stormId:f||void 0,basin:y||void 0,showPT:b||void 0});return j||P?null:(0,a.jsx)(A,{titleKey:null!=n?n:"title",outboundUrl:null!=M?M:"",imageUrl:I,units:k,stormDetails:_,loading:R||w||C})},M=e=>{let{locationEntry:l,locationProvider:t,hideModule:r,...s}=e,o="specified"===t,{specifiedLocationData:d,specifiedLocationError:c,isSpecifiedLocationLoading:u}=(0,n.v)(r?null:l);if(r)return null;let m=o&&d&&l?(0,i.I)(d):void 0;return(0,a.jsx)(I,{...s,location:m,initializing:o&&u,initialError:o?c:void 0})},_=M},30253:(e,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getHourlyAirQualityForecastUrlConfig=function(e){let{geocode:l,language:t,scale:a,duration:n}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/globalAirQuality/forecast/hourly/".concat(n),query:{geocode:l,language:t,scale:a,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},31607:(e,l,t)=>{"use strict";t.d(l,{D:()=>s});var a=t(76792),n=t(42292),i=t(23233);let r=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Arrow Up"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M3.353 6.647a.499.499 0 0 0 .705.706L7.5 3.915V13.5a.5.5 0 0 0 1 0V3.915l3.443 3.438a.499.499 0 0 0 .705-.706l-3.94-3.94a1 1 0 0 0-1.415 0z"})]})}),s=n.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:r,...e}));s.displayName="ArrowUp"},34256:(e,l,t)=>{"use strict";t.r(l),t.d(l,{HourlyForecastBlock:()=>ec,default:()=>eu});var a=t(76792),n=t(42292),i=t(47421),r=t(44615),s=t(12962),o=t(76088),d=t(61e3),c=t(75302),u=t(32035),m=t(71666),h=t(55198),x=t(68751),v=t(27370),p=t(9198),g=t(69585),f=t(25895),y=t(62596),b=t(81217),w=t(55406),j=t(28004),N=t(82903),C=t(48260),T=t(69474),k=t(7886),A=t(11340);let S=["temperatureFeelsLike","accumulation","windSpeed","pressureMeanSeaLevel","cloudCover","temperatureDewPoint","uvIndex","visibility","airQuality","relativeHumidity","windGust"],I=e=>{let{text:l}=e;return(0,a.jsx)(x.Ay,{variant:"Caption.M",color:"secondary",className:"mb-1 font-bold @max-md/hourItem:hidden",children:l})},M=e=>{let{forecast:l,timeZone:t,locale:n,itemIndex:r,longPhraseInSet:s}=e,o=(0,i.c3)("DetailsTable"),d=(0,c.md)(u.Yt),h=(0,m.xP)(d),v=0===r;return(0,a.jsxs)(N.As,{value:l.validTimeLocal,className:"border-grey-500 @container/hourItem gap-2 border-b py-3",children:[(0,a.jsx)(N.$m,{className:"items-end gap-1 p-0 @md/hourItem:gap-3",iconClassName:"mb-1 size-4",triggerContent:(0,a.jsxs)("div",{className:"flex w-full items-end justify-between gap-1",children:[(0,a.jsx)("div",{className:"min-w-[60px]",children:(0,a.jsx)(x.Ay,{className:(0,C.cn)("inline-block rounded-[100px] px-2 py-0.5 whitespace-nowrap","group-data-[state=open]:bg-blue-500 group-data-[state=open]:text-white"),children:(0,y.P)({date:l.validTimeLocal,locale:n,timeZone:t})})}),(0,a.jsx)("div",{className:"basis-[40px]",children:(0,a.jsx)(x.Ay,{variant:"Body.L.Bold",children:(0,a.jsx)(w.B,{value:l.temperature})})}),(0,a.jsxs)("div",{className:"relative flex h-6 items-center",children:[(0,a.jsx)(A.WxIcon,{iconCode:l.iconCode,className:"lightBG size-7 @md/hourItem:size-8",size:"lg",iconTheme:"lightBG","aria-label":l.wxPhraseLong||"Weather condition ".concat(l.iconCode)}),(0,a.jsx)(x.Ay,{variant:"Body.M",className:(0,C.cn)("pl-1.5 @max-2xl/hourItem:hidden",s?"min-w-[200px]":"min-w-[110px]"),children:l.wxPhraseLong})]}),(0,a.jsx)("div",{className:"min-w-[50px] items-end @lg/hourItem:min-w-[105px] @lg/hourItem:py-0.5",children:(0,a.jsx)(T.W,{precipChance:l.precipChance,displayMode:"both",textClassName:"@lg/hourItem:hidden",progressClassName:"@max-lg/hourItem:hidden",iconClassName:"@max-lg/hourItem:size-3"})}),(0,a.jsxs)("div",{className:"basis-[72px] items-end @max-md/hourItem:hidden",children:[v&&(0,a.jsx)(I,{text:o("humidity")}),(0,a.jsx)(x.Ay,{children:(0,a.jsx)(j.N,{value:l.relativeHumidity})})]}),(0,a.jsxs)("div",{className:"basis-[76px] items-end",children:[v&&(0,a.jsx)(I,{text:o("wind")}),(0,a.jsx)(x.Ay,{elementType:"div",children:(0,a.jsx)(b.Z,{windSpeed:l.windSpeed,windDirectionCardinal:l.windDirectionCardinal,units:h.code,displayMode:"directional",className:"whitespace-nowrap",iconClassName:"size-3 @md/hourItem:size-4"})})]}),(0,a.jsxs)("div",{className:"min-w-[76px] @max-md/hourItem:hidden",children:[v&&(0,a.jsx)(I,{text:o("precipitation")}),(0,a.jsx)(x.Ay,{children:(0,a.jsx)(k.e,{precipType:l.precipType,qpf:l.qpf,qpfSnow:l.qpfSnow,units:h.code})})]})]})}),(0,a.jsx)(N.ub,{className:"pt-2 pb-2 @md/hourItem:pt-4",children:(0,a.jsx)(f.A,{dataPoints:l,fields:S,locale:n})})]})};var _=t(22712);let R=e=>{let{skeletonColumns:l}=e;return(0,a.jsx)(a.Fragment,{children:Array(l).fill("").map((e,l)=>(0,a.jsx)("div",{className:"border-grey-500 gap-1 border-b py-3",children:(0,a.jsx)(_.A,{skeletonClassName:"mt-1 w-full "+(0===l?"h-69":"h-4")})},"hourly-forecast-skel-".concat(l)))})};var P=t(79315),L=t(46828),E=t(56768),D=t(31607),F=t(3916),B=t(23233);let z=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Sunny Day"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M7.5 13.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0M7.5 1.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0M13.5 8.5h1a.5.5 0 0 0 0-1h-1a.5.5 0 0 0 0 1M1.5 8.5h1a.5.5 0 0 0 0-1h-1a.5.5 0 0 0 0 1M11.536 12.243l.707.707a.5.5 0 0 0 .707-.707l-.707-.707a.5.5 0 0 0-.707.707M3.05 3.757l.707.707a.5.5 0 0 0 .707-.707l-.707-.707a.5.5 0 1 0-.707.707M12.243 4.464l.707-.707a.5.5 0 1 0-.707-.707l-.707.707a.5.5 0 0 0 .707.707M3.757 12.95l.707-.707a.5.5 0 1 0-.707-.707l-.707.707a.5.5 0 1 0 .707.707"}),(0,a.jsx)("path",{fillRule:"evenodd",d:"M8 10.667a2.667 2.667 0 1 0 0-5.334 2.667 2.667 0 0 0 0 5.334m0 1a3.667 3.667 0 1 0 0-7.334 3.667 3.667 0 0 0 0 7.334",clipRule:"evenodd"})]})]})}),V=n.forwardRef((e,l)=>(0,a.jsx)(B.h,{ref:l,icon:z,...e}));V.displayName="SunnyDay";let W=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Cloudy"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.063 3c1.877 0 3.35 1.456 3.457 3.53l.035.241.795.084.028.008c.482.124.891.343 1.182.674.295.337.44.757.44 1.227a1.9 1.9 0 0 1-.616 1.395c-.35.33-.838.56-1.457.656.046.156.073.322.073.495 0 .846-.605 1.548-1.388 1.658l-.107.014h-.103l-.006.001-7.808.006q-.111.01-.226.011C2.058 13 1 11.897 1 10.537c0-1.203.828-2.207 1.923-2.42l.701-.138.28-.683a3.49 3.49 0 0 1 1.769-1.858c.033-.45.257-.844.48-1.133.245-.32.53-.569.7-.699C7.454 3.15 8.216 3 9.064 3M7.029 6.019c-1.065 0-1.975.671-2.365 1.625l-.456 1.112-1.135.222c-.716.14-1.246.794-1.246 1.56 0 .864.677 1.587 1.535 1.587q.075 0 .149-.008l.038-.004 7.901-.006.054-.007a.79.79 0 0 0 .669-.79.79.79 0 0 0-.682-.792l-1.755-.216-.147-1.845c-.109-1.354-1.205-2.438-2.56-2.438m2.034-2.171c-.767 0-1.317.139-1.71.437a3 3 0 0 0-.543.541q-.136.177-.214.348.213-.03.433-.031c1.778 0 3.239 1.426 3.384 3.24l.09 1.132 1.083.132c.315.04.602.175.834.376a.4.4 0 0 1 .085-.013c.652-.04 1.067-.242 1.313-.473s.348-.514.348-.773c0-.284-.084-.497-.229-.662-.146-.167-.382-.314-.736-.41l-1.379-.146-.133-.936v-.02c-.078-1.668-1.222-2.742-2.626-2.742",clipRule:"evenodd"})]})}),U=n.forwardRef((e,l)=>(0,a.jsx)(B.h,{ref:l,icon:W,...e}));U.displayName="Cloudy";let H=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Rain Heavy"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{fillRule:"evenodd",d:"M7.982 1.833c-1.303 0-2.391 1.032-2.5 2.37l-.034.407-.405.049c-.67.08-1.209.672-1.209 1.41 0 .724.518 1.307 1.17 1.405l.217.015h4.896l.024.003q.087.008.175.008c1.01 0 1.851-.845 1.851-1.915 0-.946-.66-1.719-1.51-1.882l-.264-.051-.104-.248c-.386-.93-1.279-1.57-2.307-1.57M4.535 3.747C4.843 2.096 6.26.833 7.982.833c1.367 0 2.543.798 3.123 1.95 1.198.352 2.062 1.48 2.062 2.802 0 1.597-1.264 2.915-2.851 2.915a3 3 0 0 1-.245-.01H5.187l-.25-.018H4.92l-.034-.005c-1.168-.16-2.051-1.182-2.051-2.398 0-1.091.71-2.026 1.701-2.322",clipRule:"evenodd","data-figma-bg-blur-radius":20}),(0,a.jsx)("path",{d:"m7.65 9.47-.711 1.954a.5.5 0 1 0 .94.342l.71-1.954a.5.5 0 1 0-.94-.342M4.882 10.816l-.803 2.205a.5.5 0 0 0 .94.342l.802-2.205a.5.5 0 0 0-.94-.342M10.179 10.918l-.766 2.103a.5.5 0 1 0 .94.342l.765-2.103a.5.5 0 0 0-.94-.342"})]})]})}),O=n.forwardRef((e,l)=>(0,a.jsx)(B.h,{ref:l,icon:H,...e}));O.displayName="RainHeavy";let q=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Clear Night"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M6.751 2.707a7.54 7.54 0 0 0 5.797 9.097A5.56 5.56 0 0 1 8.561 13.5q-.105.002-.21 0a5.547 5.547 0 0 1-1.6-10.792m.74-1.207a1 1 0 0 0-.088.008 6.548 6.548 0 0 0 .912 12.99c.082.004.164 0 .246 0a6.54 6.54 0 0 0 5.35-2.777.504.504 0 0 0-.391-.782A6.54 6.54 0 0 1 7.945 2.19a.507.507 0 0 0-.455-.69"})]})}),G=n.forwardRef((e,l)=>(0,a.jsx)(B.h,{ref:l,icon:q,...e}));G.displayName="ClearNight";let Z=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M7.5 1.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0M7.5 13.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0M2.5 8.5h-1a.5.5 0 0 1 0-1h1a.5.5 0 0 1 0 1M11.536 12.243l.707.707a.5.5 0 0 0 .707-.707l-.707-.707a.5.5 0 0 0-.707.707M3.757 4.464l-.707-.707a.5.5 0 1 1 .707-.707l.707.707a.5.5 0 0 1-.707.707M12.243 4.464l.707-.707a.5.5 0 1 0-.707-.707l-.707.707a.5.5 0 0 0 .707.707M4.464 12.243l-.707.707a.5.5 0 1 1-.707-.707l.707-.707a.5.5 0 1 1 .707.707M8.72 10.568A2.67 2.67 0 0 1 5.333 8 2.667 2.667 0 0 1 9.85 6.079c.25-.234.55-.414.883-.524a3.667 3.667 0 1 0-.125 5.021H9.217z"}),(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.489 5.9c-.985 0-1.795.747-1.913 1.71a1.25 1.25 0 0 0-1.01 1.231c0 .633.465 1.159 1.07 1.24l.007.002h.004l.148.01h2.97q.07.006.14.006c.845 0 1.528-.694 1.528-1.548 0-.738-.509-1.356-1.192-1.512a1.93 1.93 0 0 0-1.752-1.14m-1.203 1.847a1.22 1.22 0 0 1 1.203-1.133c.488 0 .92.301 1.108.749l.128.305.328.062c.365.07.66.402.66.82a.82.82 0 0 1-.883.831l-.03-.003H9.823l-.107-.007a.53.53 0 0 1-.429-.53.53.53 0 0 1 .455-.534l.503-.06z",clipRule:"evenodd"})]})}),Q=n.forwardRef((e,l)=>(0,a.jsx)(B.h,{ref:l,icon:Z,...e}));Q.displayName="FairMostlyClearDay";var Y=t(79770);let X=e=>{let{insightHeadline:l,insightTextLong:t,className:n,headlineClass:i,textClass:r,background:s,weatherMode:o}=e;if(!l&&!t)return null;let d="";return o&&(d="severe"===o?"warning":"watch"),(0,a.jsxs)("div",{className:(0,C.cn)("nowrap flex items-center px-6.5 py-4",n,s&&"bg-[#f6f6f6]","watch"===d&&"bg-[#f6f6f6]","warning"===d&&"bg-[#ba0d00]"),children:[d?(0,a.jsx)(Y.A,{className:"mr-4 size-4.5 shrink-0"}):null,(0,a.jsxs)("div",{children:[l?(0,a.jsx)(x.Ay,{elementType:"h2",variant:"Body.M",className:(0,C.cn)("mb-2.5 text-base font-medium text-gray-500",i),children:l}):null,t?(0,a.jsx)(x.Ay,{variant:"Body.L.Bold",className:(0,C.cn)("font-semibold text-gray-800","watch"===d&&"text-sm text-white","warning"===d&&"text-sm text-[#ba0d00]",r),children:t}):null]})]})};var $=t(68577),J=t(44936);let K={up:D.D,down:F.y,sun:V,cloud:U,rain:O,clear:V,"clear-night":G,fair:Q},ee=e=>{let{location:l,locale:t}=e,{insightTextLong:n}=(0,J.p)(l,t);return n?(0,a.jsx)(X,{className:"px-4 py-2",headlineClass:"hidden",textClass:"text-sm m-0",insightTextLong:n}):null},el=e=>{let{location:l,hourlyForecast:t,isLoading:r,error:s,locale:o,showDayLabel:d,canToggleMultipleItems:c,ctaLink:u,ctaText:m,enableAlertHeadlines:h,insight:f,insightIcon:y,showPrecipIntensity:b,simplifiedVersion:w}=e,j=(0,i.c3)("HourlyForecast"),[C,T]=(0,n.useState)(!1),k=y&&K[y];return(0,a.jsxs)(g.Zp,{"aria-label":j("hourlyWeather"),className:"not-prose @container/hourly","data-testid":"hourly-forecast",children:[(0,a.jsx)(g.aR,{text:j("hourlyWeather")}),(0,a.jsxs)(g.Wu,{className:"p-0",children:[r?(0,a.jsx)(_.A,{skeletonClassName:"my-3 h-4 w-20 gap-1"}):f?(0,a.jsxs)("div",{className:"mt-2 mb-4 flex items-center gap-1",children:[k&&(0,a.jsx)("div",{children:(0,a.jsx)(k,{className:"text-brand-light size-5"})}),(0,a.jsx)(x.Ay,{variant:"Body.S.Bold",color:"brandLight",children:f})]}):"",h&&(0,a.jsx)("div",{children:(0,a.jsx)(L.A,{location:l,className:"mx-4 mb-3 inline-flex @lg/hourly:min-w-59"})}),b&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ee,{location:l,locale:o}),(0,a.jsx)("div",{className:"px-4 py-2",children:(0,a.jsx)($.A,{location:l,onlyChart:!0})})]}),(()=>{var e,i;if(s)return(0,a.jsx)(x.Ay,{variant:"Display.S",className:"flex min-h-48 items-center justify-center p-4",children:(null==s?void 0:s.message)||j("errorMsg")});let h=null!=(i=null==(e=t[0])?void 0:e.validTimeLocal)?i:void 0;return(0,a.jsxs)("div",{children:[(0,a.jsx)(N.nD,{...c?{type:"multiple",defaultValue:h?[h]:void 0}:{type:"single",defaultValue:h},children:r?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(R,{skeletonColumns:w?4:76})}):t.map((e,i)=>{var r;return!C&&e.wxPhraseLong.length>15&&T(!0),(0,a.jsxs)(n.Fragment,{children:[d&&(0===i||e.dayOfWeek!==((null==(r=t[i-1])?void 0:r.dayOfWeek)||""))&&(0,a.jsx)(x.Ay,{variant:"Body.L.Bold",className:"border-b border-[#dedede] p-4",children:(e=>{let{date:l,locale:t="en-US",timeZone:a}=e;if(!l)return"";let{cDate:n,cTimeZone:i}=(0,P.r)({date:l,locale:t,timeZone:a});return new Intl.DateTimeFormat(t,{weekday:"long",day:"numeric",month:"long",timeZone:i}).format(n)})({date:e.validTimeLocal,locale:o,timeZone:(null==l?void 0:l.ianaTimeZone)||""})}),(0,a.jsx)(M,{itemIndex:i,forecast:e,timeZone:(null==l?void 0:l.ianaTimeZone)||"",locale:o,longPhraseInSet:C})]},e.validTimeLocal)})},h),u&&m&&(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(v.$n,{asChild:!0,children:(0,a.jsx)(p.default,{href:u,children:m})})})]})})()]})]})};var et=t(23189),ea=t(14124),en=t(40358);let ei=["trendingFeelsLikeInsight","trendingTemperatureInsight","trendingWindInsight","trendingUvIndexInsight"],er=Math.floor(Math.random()*ei.length),es=e=>{var l,t;let{location:x,simplifiedVersion:v,initializing:p,initialError:g}=e,f=(0,h.useParams)(),y=(0,i.c3)("HourlyForecast"),{effectiveLocation:b,isLocationLoading:w}=(0,d.s)({location:x}),j=(0,c.md)(u.Yt),N=null==(l=(0,m.xP)(j))?void 0:l.code,C=v?o.HourlyForecastDuration.ONE_DAY:o.HourlyForecastDuration.THREE_DAY,T=null==(t=(0,h.useParams)())?void 0:t.locale,{data:k=[],error:A,isLoading:S}=(0,r.Ay)(b?["get-hourly-forecast",b.geocode,N,C,T]:null,e=>{let[l,t,a,n,i]=e;return(0,s.eH)({geocode:t,units:a,duration:n,language:i})},{revalidateOnFocus:!1,dedupingInterval:6e4}),I=(0,n.useMemo)(()=>v?k.slice(0,4):k,[k,v]),{insight:M,insightIcon:_}=((e,l)=>{var t;let a=(0,c.md)(u.Yt),i=null==(t=(0,m.xP)(a))?void 0:t.code,{data:s,isLoading:d}=(0,en.r)({geoCode:(null==e?void 0:e.geocode)||null,insightType:E.InsightType.ALL,locale:l}),h=(0,n.useMemo)(()=>null==s?void 0:s.reduce((e,l)=>(e[l.insightType]=l,e),{}),[s]),{data:x=[],isLoading:v}=(0,r.Ay)(e?["get-daily-forecast",e.geocode,o.ForecastDuration.THREE_DAY,i,l]:null,e=>{let[l,t,a,n,i]=e;return(0,ea.v1)({geocode:t,units:n,duration:a,language:i})},{revalidateOnFocus:!1,dedupingInterval:6e5}),p=d||v,g=x[0],f=(0,n.useMemo)(()=>{var e,l,t,a,n,i;if(p)return"";let r=null==h||null==(l=h.significantWeatherTodayInsight)||null==(e=l.insightText)?void 0:e[0];if(r)return r;let s=null==g||null==(a=g.daypart)||null==(t=a[0])?void 0:t.narrative;if(s)return s.split(".")[0];let o=ei[er]||ei[0];return(null==h||null==(i=h[o])||null==(n=i.insightText)?void 0:n[0])||""},[p,h,null==g?void 0:g.daypart]);return(0,n.useMemo)(()=>{let e=(0,et.B)(f,[" ","."]),l=e?(e=>{if(e){if(/(warmer|higher)/i.test(e))return"up";else if(/(cooler|lower)/i.test(e))return"down";else if(/(partly cloudy)/i.test(e)||/(sun)/i.test(e)&&/(cloud)/i.test(e))return"fair";else if(/(sunny|sunshine)/i.test(e))return"sun";else if(/(cloudy)/i.test(e))return"cloud";else if(/(shower|rain)/i.test(e))return"rain";else if(/(clear)/i.test(e))return/(night)/i.test(e)?"clear-night":"clear"}return null})(e):null;return{insight:e,insightIcon:l}},[f])})(b,T),R=p||S||w||!(null==I?void 0:I.length),P=v?"/weather/hourbyhour/l/".concat((null==b?void 0:b.placeId)||(null==f?void 0:f.locId)):"/weather/tenday/l/".concat((null==b?void 0:b.placeId)||(null==f?void 0:f.locId));return(0,a.jsx)(el,{location:b,hourlyForecast:I,locale:T,isLoading:R,error:g||A,showDayLabel:!v,canToggleMultipleItems:!v,ctaLink:P,ctaText:y(v?"next48":"10DayWeather"),enableAlertHeadlines:!v,insight:M,insightIcon:_,showPrecipIntensity:!v,simplifiedVersion:v})};var eo=t(44685),ed=t(46593);let ec=e=>{let{locationProvider:l,locationEntry:t,simplifiedVersion:n}=e,i="specified"===l,{specifiedLocationData:r,specifiedLocationError:s,isSpecifiedLocationLoading:o}=(0,ed.v)(i?t:null),d=i&&r&&t?(0,eo.I)(r):void 0;return(0,a.jsx)(es,{location:d,simplifiedVersion:null!=n&&n,initializing:i&&o,initialError:i?s:void 0})},eu=ec},34672:(e,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.fromCompactResponse=function(e){if(!e)return null;let l=Object.keys(e);return l.length&&l[0]&&void 0!==e[l[0]]&&Array.isArray(e[l[0]])?Array.from({length:e[l[0]].length},(t,a)=>{let n={};return l.forEach(l=>{let t=e[l];void 0!==t&&Array.isArray(t)&&a{"use strict";t.r(l),t.d(l,{ImageAdminBlock:()=>d,default:()=>c});var a=t(76792),n=t(42292),i=t(8818),r=t(82188),s=t(22901),o=t(22627);let d=()=>{var e,l,t,d,c,u,m,h,x,v,p,g;let[f]=(0,i.kV6)(),y=(0,r.r)(f,!0),[b,w]=(0,n.useState)({imageType:null==y?void 0:y.imageType,internalImageId:null==y?void 0:y.internalImageId,externalImageUrl:null==y?void 0:y.externalImageUrl,altText:null==y?void 0:y.altText,showCaption:null==y||null==(e=y.controls)?void 0:e.showCaption,useImageCaption:null==y||null==(l=y.controls)?void 0:l.useImageCaption,caption:null==y||null==(t=y.controls)?void 0:t.caption,credit:null==y||null==(d=y.controls)?void 0:d.credit,alignment:null==y||null==(c=y.controls)?void 0:c.alignment,width:null==y||null==(u=y.controls)?void 0:u.width});(0,n.useEffect)(()=>{var e,l,t,a,n,i;w({imageType:null==y?void 0:y.imageType,internalImageId:null==y?void 0:y.internalImageId,externalImageUrl:null==y?void 0:y.externalImageUrl,altText:null==y?void 0:y.altText,showCaption:null==y||null==(e=y.controls)?void 0:e.showCaption,useImageCaption:null==y||null==(l=y.controls)?void 0:l.useImageCaption,caption:null==y||null==(t=y.controls)?void 0:t.caption,credit:null==y||null==(a=y.controls)?void 0:a.credit,alignment:null==y||null==(n=y.controls)?void 0:n.alignment,width:null==y||null==(i=y.controls)?void 0:i.width})},[null==y?void 0:y.imageType,null==y?void 0:y.internalImageId,null==y?void 0:y.externalImageUrl,null==y?void 0:y.altText,null==y||null==(m=y.controls)?void 0:m.showCaption,null==y||null==(h=y.controls)?void 0:h.useImageCaption,null==y||null==(x=y.controls)?void 0:x.caption,null==y||null==(v=y.controls)?void 0:v.credit,null==y||null==(p=y.controls)?void 0:p.alignment,null==y||null==(g=y.controls)?void 0:g.width]);let j=null;[{data:j}]=(0,i.Q0O)("internal"===b.imageType&&b.internalImageId?"/api/payload/images/".concat(b.internalImageId):"");let N="external"===b.imageType?b.externalImageUrl:null==j?void 0:j.url;return(0,a.jsxs)(s.default,{name:"Image",children:[(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Image Type:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:b.imageType||"Not selected"})]}),(()=>{switch(b.imageType){case"internal":return(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Internal Image ID:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:b.internalImageId||"Not selected"})]});case"external":return(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{className:"text-black-800",children:"External Image URL:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:b.externalImageUrl||"Not provided"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Alt Text:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:b.altText||"Not provided"})]})]});default:return(0,a.jsx)("div",{className:"text-red-500",children:"Image type is undecided."})}})(),(()=>{if(b.showCaption){var e;return(0,a.jsxs)("div",{className:"mb-2",children:["internal"===b.imageType&&(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Use Image Caption:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:b.useImageCaption?"Yes":"No"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Caption:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:"internal"===b.imageType&&b.useImageCaption?(null==j?void 0:j.caption)||"":b.caption||"No caption provided"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Credit:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:"internal"===b.imageType&&b.useImageCaption?(null==j||null==(e=j.seo)?void 0:e.credit)||"":b.credit||"No credit provided"})]})]})}return null})(),(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Alignment:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:b.alignment||"Center"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Width:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:b.width||"Full"})]})]}),N&&(0,a.jsx)(o.A,{src:N,alt:"",className:"max-h-[240px] max-w-[240px]"})]})},c=d},35181:(e,l,t)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.createTransformer=function(e){return l=>((0,a.fromCompactResponse)(l)||[]).map((t,a)=>e(t,a,l))};let a=t(34672)},35242:(e,l,t)=>{"use strict";t.d(l,{e:()=>n});let a="/placeholder-video-thumbnail.jpg",n=e=>{if(!e)return a;for(let l of[/(?:cdn\.jwplayer\.com\/(?:videos|manifests|previews)\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/,/(?:content\.jwplatform\.com\/(?:videos|manifests)\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/,/(?:players\.jwplayer\.com\/preview\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/]){let t=e.match(l);if(t&&t[1])return"https://cdn.jwplayer.com/v2/media/".concat(t[1],"/poster.jpg")}return a}},35555:(e,l,t)=>{"use strict";t.r(l),t.d(l,{ImageBlock:()=>d,default:()=>c});var a=t(76792),n=t(42292),i=t(9198),r=t(48260),s=t(22627);let o=n.forwardRef((e,l)=>{let{src:t,alt:n,caption:i,credit:o,width:d=320,height:c=180,shadow:u=!0,rounded:m=!0,className:h,sizes:x,priority:v,imageAttributes:p}=e,g=!!(i||o);return(0,a.jsxs)("figure",{ref:l,className:(0,r.cn)(h),children:[(0,a.jsx)(s._,{src:t,alt:n,width:d,height:c,shadow:u,rounded:m,sizes:x,priority:v,...p}),g&&(0,a.jsxs)("figcaption",{className:"mt-2 text-sm leading-tight",children:[i&&(0,a.jsx)("p",{children:i}),o&&(0,a.jsxs)("p",{className:"m-0 text-gray-500",children:["(",o,")"]})]})]})});o.displayName="Figure";let d=e=>{var l,t;let{imageType:n,internalImageId:s,externalImageUrl:d,controls:c,altText:u,isPriorityImage:m,imageAttributes:h,linkUrl:x}=e;if(!n||!s&&!d)return(0,a.jsx)("div",{className:"text-center text-red-500",children:"Error: Missing data for the image block."});let v="internal"===n&&(e=>"object"==typeof e&&null!==e&&"url"in e)(s),p=v?(null==s?void 0:s.url)||"":d||"",g=v?(null==s||null==(l=s.seo)?void 0:l.altText)||"":u||"",f="",y="";(null==c?void 0:c.showCaption)&&((!v||(null==c?void 0:c.useImageCaption))&&"external"!==n?v&&(f=(null==s?void 0:s.caption)||"",y=(null==s||null==(t=s.seo)?void 0:t.credit)||""):(f=(null==c?void 0:c.caption)||"",y=(null==c?void 0:c.credit)||""));let b=(0,a.jsx)(o,{src:p,alt:g,caption:f,credit:y,priority:!!m,className:(0,r.cn)("my-4 flex flex-col",{"max-w-[480px]":(null==c?void 0:c.width)==="half"}),sizes:"(max-width: 767px) 91vw, (max-width: 1280px) 64vw, 800px",imageAttributes:h});return x?(0,a.jsx)(i.default,{href:x,target:"_blank",rel:"noopener noreferrer nofollow",children:b}):b},c=d},36116:(e,l,t)=>{"use strict";l.$t=void 0,l.FA=c;let a=t(39825),n=t(17681),i=t(36762),r=t(35181),s=t(73923),o=t(76088),d=t(50532);async function c(e){let t=(0,a.getFifteenMinuteForecastUrlConfig)(e),r=(0,n.urlFrom)(t),s=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:60}}),o=await (0,i.handleFetchResponse)(s);return(0,l.$t)(o)}l.$t=(0,r.createTransformer)(e=>{var l,t,a,n,i,r,c,u,m,h,x,v,p,g,f,y,b;return{dayOfWeek:null!=(l=e.dayOfWeek)?l:"",iconCode:null!=(t=e.iconCode)?t:0,iconCodeExtend:null!=(a=e.iconCodeExtend)?a:0,precipChance:null!=(n=e.precipChance)?n:0,precipRate:null!=(i=e.precipRate)?i:0,precipType:null!=(r=e.precipType)?r:s.PrecipType.RAIN,relativeHumidity:null!=(c=e.relativeHumidity)?c:0,snowRate:null!=(u=e.snowRate)?u:0,temperature:null!=(m=e.temperature)?m:0,temperatureFeelsLike:null!=(h=e.temperatureFeelsLike)?h:0,validTimeLocal:null!=(x=e.validTimeLocal)?x:"",windDirection:null!=(v=e.windDirection)?v:0,windDirectionCardinal:(0,d.normalizeCardinal)(null!=(p=e.windDirectionCardinal)?p:o.WindDirectionCardinal.NORTH),windSpeed:null!=(g=e.windSpeed)?g:0,wxPhraseLong:null!=(f=e.wxPhraseLong)?f:"",wxPhraseShort:null!=(y=e.wxPhraseShort)?y:"",wxSeverity:null!=(b=e.wxSeverity)?b:0}})},37663:(e,l,t)=>{"use strict";t.r(l),t.d(l,{LiveblogEntriesAdminBlock:()=>n,default:()=>i});var a=t(76792);t(42292);let n=()=>(0,a.jsx)("div",{children:"Live Blog Entries"}),i=n},37768:(e,l,t)=>{"use strict";t.d(l,{K:()=>a});let a=(e,l)=>{var t;if(!(null==l?void 0:l.file))return[];if("string"==typeof e)return(null==l?void 0:l.file)?[l]:[];let a=Array.isArray(e)?e:[];return(null==l?void 0:l.file)&&(!(a.length>0)||(null==(t=a[0])?void 0:t.file)!==(null==l?void 0:l.file))?[l,...a.filter(e=>e.file!==l.file)]:a}},39695:(e,l,t)=>{"use strict";t.r(l),t.d(l,{TaboolaAdminBlock:()=>s,default:()=>o});var a=t(76792);t(42292);var n=t(8818),i=t(82188),r=t(22901);let s=()=>{let[e]=(0,n.kV6)(),l=(0,i.r)(e,!0);return(0,a.jsx)(r.default,{name:"Taboola",children:(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Placement Name:"}),(null==l?void 0:l.placementName)||"No Placement Name"]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Taboola ID:"})," ",(null==l?void 0:l.taboolaId)||"No Taboola ID"]}),(null==l?void 0:l.title)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Block Title:"})," ",l.title]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Display Mode:"}),(null==l?void 0:l.taboolaUiMode)||"No Display Mode"]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Page Type:"})," ",(null==l?void 0:l.pageType)||"No Page Type"]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Taboola Type:"})," ",(null==l?void 0:l.taboolaType)||"Generic"]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Loader URL:"})," ",(null==l?void 0:l.loaderUrl)||"No Loader URL"]})]})})},o=s},39795:(e,l,t)=>{"use strict";t.r(l),t.d(l,{DailyForecastAdminBlock:()=>s,default:()=>o});var a=t(76792);t(42292);var n=t(22901),i=t(8818),r=t(82188);let s=()=>{let[e,l]=(0,i.kV6)(),t=(0,r.r)(e,!0);return(0,a.jsxs)(n.default,{name:"DailyForecast",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("b",{children:"Provider"}),": ",t.locationProvider]}),"specified"===t.locationProvider&&(0,a.jsxs)("div",{children:[(0,a.jsx)("b",{children:"Location"}),": ",t.locationEntry]}),(0,a.jsx)("div",{className:"mt-2",children:(0,a.jsx)(i.OcR,{label:"Simplified Version",name:"simplifiedVersion",checked:(null==t?void 0:t.simplifiedVersion)||!1,onToggle:e=>{l({type:"UPDATE",path:"simplifiedVersion",value:e.target.checked})}})})]})},o=s},40640:(e,l,t)=>{"use strict";t.d(l,{S:()=>s});var a=t(76792),n=t(42292),i=t(23233);let r=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"View"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M15.47 7.83A8.35 8.35 0 0 0 8 2.5 8.35 8.35 0 0 0 .53 7.83a.5.5 0 0 0 0 .34A8.35 8.35 0 0 0 8 13.5a8.35 8.35 0 0 0 7.47-5.33.5.5 0 0 0 0-.34M8 12.5c-2.65 0-5.45-1.965-6.465-4.5C2.55 5.465 5.35 3.5 8 3.5s5.45 1.965 6.465 4.5C13.45 10.535 10.65 12.5 8 12.5"}),(0,a.jsx)("path",{d:"M8 5a3 3 0 1 0 0 6 3 3 0 0 0 0-6m0 5a2 2 0 1 1 0-4 2 2 0 0 1 0 4"})]})]})}),s=n.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:r,...e}));s.displayName="View"},41751:(e,l,t)=>{"use strict";t.r(l),t.d(l,{YouTubeAdminBlock:()=>o,default:()=>d});var a=t(76792),n=t(42292),i=t(8818),r=t(82188),s=t(22901);let o=()=>{let[e]=(0,i.kV6)(),l=(0,r.r)(e,!0),[t,o]=(0,n.useState)({url:null==l?void 0:l.url,size:null==l?void 0:l.size});return(0,n.useEffect)(()=>{o({url:null==l?void 0:l.url,size:null==l?void 0:l.size})},[null==l?void 0:l.url,null==l?void 0:l.size]),(0,a.jsxs)(s.default,{name:"YouTube",children:[(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Video URL:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:t.url||"Not provided"})]}),(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Embed Size:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:"hero"===t.size?"Hero (Full Width)":"Article (Small)"})]}),(()=>{let e=(e=>{let l=null==e?void 0:e.match(/(?:youtube\.com\/(?:[^\\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\\/\s]{11})/);return l?l[1]:null})(t.url);return e?(0,a.jsx)("div",{className:"mb-2 flex justify-center",children:(0,a.jsx)("iframe",{className:"w-full rounded-lg shadow-lg",style:{height:"hero"===t.size?"300px":"180px",maxWidth:"hero"===t.size?"100%":"320px"},src:"https://www.youtube.com/embed/".concat(e),title:"YouTube Video Preview",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}):(0,a.jsx)("div",{className:"text-red-500",children:"Invalid YouTube URL"})})()]})},d=o},43266:(e,l,t)=>{"use strict";t.r(l),t.d(l,{InstagramAdminBlock:()=>c,default:()=>u});var a=t(76792),n=t(42292),i=t(8818),r=t(82188),s=t(22901);let o=/instagram\.com\/(p|reel)\/([^/?#]+)/;var d=t(48260);let c=()=>{let[e]=(0,i.kV6)(),l=(0,r.r)(e,!0),[t,c]=(0,n.useMemo)(()=>(e=>{let l=e.match(o);return[(null==l?void 0:l[1])||null,(null==l?void 0:l[2])||null]})(l.url||""),[l.url]);return(0,a.jsxs)(s.default,{name:"Instagram",children:[(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Post URL:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:l.url||"Not provided"})]}),(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Embed Size:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:"hero"===l.size?"Hero (Full Width)":"Article (Small)"})]}),t&&c?(0,a.jsx)("div",{className:"mb-2 flex justify-center",children:(0,a.jsx)("iframe",{className:(0,d.cn)("h-60 w-full rounded-lg shadow-lg","hero"===l.size?"max-w-full":"max-w-[320px]"),src:"https://www.instagram.com/".concat(t,"/").concat(c,"/embed"),title:"Instagram Preview",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}):(0,a.jsx)("div",{className:"text-red-600",children:"Invalid Instagram URL"})]})},u=c},43436:(e,l,t)=>{"use strict";t.d(l,{r:()=>C});var a=t(76792),n=t(42292),i=t(23233);let r=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"New Moon"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsx)("circle",{cx:8,cy:7.613,r:6.4,fill:"currentColor"})]})}),s=n.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:r,...e}));s.displayName="NewMoon";let o=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Waxing Crescent"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M8.01 13.553q2.432 0 4.18-1.742 1.75-1.742 1.75-4.202 0-2.452-1.75-4.198-1.748-1.745-4.18-1.745 1.704 0 2.92 1.745t1.216 4.198q0 2.46-1.216 4.202t-2.92 1.742m-.014-12.34q2.64 0 4.521 1.882Q14.4 4.978 14.4 7.616q0 2.645-1.883 4.521t-4.52 1.876q-2.646 0-4.522-1.876Q1.6 10.262 1.6 7.617q0-2.64 1.875-4.522t4.521-1.882"})]})}),d=n.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:o,...e}));d.displayName="WaxingCrescent";let c=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"First Quarter"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M8.004 13.552q2.446 0 4.19-1.745 1.746-1.745 1.746-4.198 0-2.452-1.745-4.198-1.745-1.745-4.191-1.745zm-.007-12.34q2.644 0 4.524 1.88t1.88 4.517q0 2.64-1.88 4.521-1.879 1.883-4.524 1.883-2.639 0-4.517-1.883Q1.6 10.247 1.6 7.61q0-2.64 1.88-4.518 1.878-1.88 4.517-1.88"})]})}),u=n.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:c,...e}));u.displayName="FirstQuarter";let m=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Waxing Gibbous"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M8.003 1.673q-1.38 0-2.367 1.745-.986 1.746-.986 4.198 0 2.454.986 4.198t2.367 1.745q2.439 0 4.188-1.745 1.748-1.744 1.748-4.198 0-2.452-1.748-4.198-1.749-1.745-4.188-1.745m0 12.34q-2.645 0-4.524-1.88-1.88-1.878-1.88-4.517t1.88-4.52q1.878-1.883 4.524-1.883 2.638 0 4.518 1.882Q14.4 4.978 14.4 7.616q0 2.64-1.88 4.518-1.878 1.879-4.517 1.879"})]})}),h=n.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:m,...e}));h.displayName="WaxingGibbous";let x=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Full Moon"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M7.996 13.553q2.445 0 4.195-1.742 1.748-1.742 1.748-4.202 0-2.452-1.748-4.198-1.749-1.745-4.195-1.745-2.452 0-4.198 1.745Q2.053 5.157 2.053 7.61q0 2.46 1.745 4.202t4.198 1.742m0-12.34q2.64 0 4.521 1.882Q14.4 4.978 14.4 7.616q0 2.645-1.883 4.521t-4.52 1.876q-2.646 0-4.522-1.876Q1.6 10.262 1.6 7.617q0-2.64 1.875-4.522t4.521-1.882"})]})}),v=n.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:x,...e}));v.displayName="FullMoon";let p=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Waning Gibbous"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M7.996 13.553q1.374 0 2.36-1.742t.986-4.202q0-2.452-.986-4.198-.986-1.745-2.36-1.745-2.452 0-4.198 1.745Q2.053 5.157 2.053 7.61q0 2.46 1.745 4.202t4.198 1.742m0-12.34q2.64 0 4.521 1.882Q14.4 4.978 14.4 7.616q0 2.645-1.883 4.521t-4.52 1.876q-2.646 0-4.522-1.876Q1.6 10.262 1.6 7.617q0-2.64 1.875-4.522t4.521-1.882"})]})}),g=n.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:p,...e}));g.displayName="WaningGibbous";let f=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Last Quarter"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M7.997 1.673q-2.439 0-4.188 1.742-1.748 1.74-1.748 4.201 0 2.453 1.748 4.198 1.749 1.745 4.188 1.745zm.007 12.34q-2.64 0-4.521-1.883Q1.6 10.247 1.6 7.61q0-2.646 1.883-4.522 1.883-1.875 4.52-1.875 2.646 0 4.522 1.875Q14.4 4.964 14.4 7.61q0 2.64-1.875 4.521-1.876 1.883-4.521 1.883"})]})}),y=n.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:f,...e}));y.displayName="LastQuarter";let b=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Waning Crescent"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M8.01 1.673q-2.453 0-4.201 1.745-1.75 1.746-1.75 4.198 0 2.454 1.75 4.198 1.748 1.745 4.2 1.745-.975 0-1.676-1.745-.7-1.744-.7-4.198 0-2.452.7-4.198.701-1.745 1.677-1.745m-.007 12.34q-2.645 0-4.524-1.88-1.88-1.878-1.88-4.517t1.88-4.52q1.878-1.883 4.524-1.883 2.638 0 4.518 1.882Q14.4 4.978 14.4 7.616q0 2.64-1.88 4.518-1.878 1.879-4.517 1.879"})]})}),w=n.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:b,...e}));w.displayName="WaningCrescent";var j=t(73923);let N={[j.MoonPhaseCode.NEW]:s,[j.MoonPhaseCode.WAXING_CRESCENT]:d,[j.MoonPhaseCode.FIRST_QUARTER]:u,[j.MoonPhaseCode.WAXING_GIBBOUS]:h,[j.MoonPhaseCode.FULL]:v,[j.MoonPhaseCode.WANING_GIBBOUS]:g,[j.MoonPhaseCode.LAST_QUARTER]:y,[j.MoonPhaseCode.WANING_CRESCENT]:w},C=e=>{var l;let{moonPhaseCode:t,...n}=e,i=null!=(l=t&&N[t])?l:s;return(0,a.jsx)(i,{...n})}},43635:(e,l,t)=>{"use strict";t.r(l),t.d(l,{AdBlock:()=>p,default:()=>f});var a=t(76792),n=t(42292),i=t(58010),r=t(48260),s=t(74130),o=t(89170),d=t(75302),c=t(13942);let u=(0,t(30505).F)("",{variants:{overflow:{hidden:"overflow-hidden",none:""},layout:{flex:"flex-1",block:"block",fixed:"block fixed w-full",fixedBelowBottomNav:"block fixed w-full bottom-[61px] sm:bottom-0 z-[101]",contentTopDiv:"region-contentTop",stickyTopRight:"sticky top-[82px] z-45",default:""},bg:{white:"bg-white",gray:"bg-[#dee0e3]",none:""},radius:{md:"rounded-md",lg:"rounded-lg",none:""},padding:{standard:"px-4 pb-4",noTop:"pt-0 px-4 pb-4",mobile:"p-2",none:""},margin:{bottomMd:"mb-4",bottomLg:"mb-5",topMd:"mt-3",topLg:"mt-4",none:""},shadow:{md:"shadow-md",none:""},special:{hidden:"hidden",none:""}},compoundVariants:[{layout:"flex",margin:"topMd",class:"-mb-3"}],defaultVariants:{overflow:"none",layout:"default",bg:"none",radius:"none",padding:"none",margin:"none",shadow:"none",special:"none"}}),m={WX_WindowShade:{layout:"contentTopDiv",overflow:"hidden",margin:"bottomMd"},WX_Leaderboard:{layout:"contentTopDiv",overflow:"hidden",margin:"bottomMd"},WX_BottomLeader:{bg:"white",radius:"md",overflow:"hidden",padding:"standard",margin:"topLg"},WX_Bot300:{bg:"white",radius:"md",overflow:"hidden",padding:"standard",margin:"topLg"},WX_PromoDriver1:{bg:"white",radius:"md",overflow:"hidden",padding:"standard",margin:"topLg"},WX_MidLeader:{bg:"white",radius:"md",overflow:"hidden",padding:"standard",margin:"topLg"},WX_Top300Small:{bg:"white",radius:"md",overflow:"hidden",padding:"standard"},WX_SpotLight:{overflow:"hidden",bg:"white",margin:"bottomMd"},WX_DriverUnit:{overflow:"hidden",bg:"white",margin:"bottomMd"},WX_Top300Variable:{bg:"white",radius:"md",overflow:"hidden",padding:"standard"},MW_Position1:{layout:"fixedBelowBottomNav",bg:"gray",padding:"mobile"},MW_Position1_Samsung:{layout:"fixedBelowBottomNav",bg:"gray",padding:"mobile"},MW_Position3:{overflow:"hidden",margin:"bottomLg"},MW_Position4:{radius:"lg",overflow:"hidden",bg:"white",padding:"noTop"},MW_Position5:{radius:"lg",overflow:"hidden",bg:"white",padding:"noTop"},MW_Position2:{radius:"lg",overflow:"hidden",bg:"white",padding:"noTop"}},h=new Set(["MW_Position_ContentFeedAd","MW_Position_ContentFeedAd1","MW_Position_ContentFeedAd11","WX_ContentFeed","WX_ContentFeed1","WX_ContentFeedRadar"]),x=e=>h.has(e),v=function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"banner",t=arguments.length>2?arguments[2]:void 0,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(x(e))return t?u({layout:"flex",margin:"topMd"}):"";if("WX_Hidden"===e||!t)return u({special:"hidden"});let n=m[e];return n||(n="banner"===l?{radius:"lg",overflow:"hidden",bg:"white",shadow:"md",margin:"bottomMd"}:{bg:"white",radius:"md",overflow:"hidden",padding:"standard"}),"WX_Top300Variable"===e&&a&&(n={...n,layout:"stickyTopRight"}),u(n)},p=e=>{let{user:l}=(0,o.J)(),t=(0,d.md)(c.a),n=e.adId||("object"==typeof e.adSlot?e.adSlot.slotTarget:void 0);return l.isUserPremium||t||!n?null:(0,a.jsx)(g,{...e,adId:n})},g=e=>{let{adId:l,variant:t="banner",title:o=null,titleAlignment:d="right",height:c="120px",className:u="",sticky:m=!1}=e,[h,p]=(0,n.useState)({loaded:!1,height:c,displayAd:!1}),[g,f]=(0,n.useState)(!1),y=(0,n.useRef)(null),b=(0,n.useRef)(!1),w=(0,n.useRef)(null),j=(0,n.useRef)({resize:null,adFrameMutation:null,adCreativeMutation:null}),N=h.displayAd&&!g,C=(0,n.useMemo)(()=>v(l,t,N,m),[l,t,N,m]),T=(0,n.useMemo)(()=>{let e=h.loaded?"visible":"invisible";return"".concat("text-center w-full h-full flex text-gray-600 text-base leading-none"," ").concat("WX_SpotLight"!==l?"justify-center":""," ").concat(e)},[l,h.loaded]),k=(0,n.useCallback)(e=>{for(let l of e){let e=l.contentRect.height;e>0&&p(l=>({...l,height:"".concat(e+10,"px"),loaded:!0}))}},[]),A=(0,n.useCallback)(e=>{let l=e.some(e=>"childList"===e.type&&e.addedNodes.length>0);p(e=>({...e,displayAd:l}))},[]),S=(0,n.useCallback)(e=>{let l=y.current;if(e.some(e=>{var l;return"childList"===e.type&&e.addedNodes.length>0&&((null==(l=e.addedNodes[0])?void 0:l.textContent)!=="Advertisement"||e.addedNodes.length>1)})&&l){var t,a,n;null==(t=j.current.resize)||t.observe(l),null==(a=j.current.adCreativeMutation)||a.observe(l,{childList:!0,subtree:!0}),p(e=>({...e,loaded:!0})),null==(n=j.current.adFrameMutation)||n.disconnect()}},[]);return(0,n.useEffect)(()=>{p({loaded:!1,height:c,displayAd:!1});let e=new ResizeObserver(k),l=new MutationObserver(A),t=new MutationObserver(S);j.current={resize:e,adCreativeMutation:l,adFrameMutation:t};let a=y.current;return a&&t.observe(a,{childList:!0,subtree:!0}),()=>{e.disconnect(),t.disconnect(),l.disconnect()}},[A,l,c,k,S]),(0,n.useEffect)(()=>{x(l)&&!b.current&&((e=>{try{let l=(e=>{if("MW_Position_ContentFeedAd11"===e)return{currContentFeedIndex:"21",baseNativeAdPosition:"MW_Position_ContentFeedAd1"};if("MW_Position_ContentFeedAd1"===e||"WX_ContentFeed1"===e){let l=e.match(/(\d+)$/);if(l)return{currContentFeedIndex:l[1],baseNativeAdPosition:e.substring(0,l.index)}}return console.error("Could not parse index from ContentFeed adId: ".concat(e)),null})(e);if(l){let{currContentFeedIndex:t,baseNativeAdPosition:a}=l,n=window.__HeliosConfig.slotsConfig[a];if(n){let l="".concat(n.adUnitPath,"/contentfeed").concat(t);window.__HeliosQ=window.__HeliosQ||[],window.__HeliosQ.push(()=>{window.__Helios.waitForEvent("AD_SLOTS_CONNECTED").then(()=>{window.__Helios.emit("AD_RENDER_CONTENT_FEED",{elementId:e,adUnitPath:l,baseNativeAdPosition:a})})})}else console.error("No config found for ".concat(e," at Helios.slotConfig.").concat(a))}}catch(e){console.error("Error rendering native ad",e)}})(l),b.current=!0)},[l]),(0,n.useEffect)(()=>{if("MW_Position1_Samsung"!==l)return;let e=Date.now();return w.current=setInterval(()=>{if(Date.now()-e>=1e4){w.current&&(clearInterval(w.current),w.current=null);return}(()=>{try{var e,l,t,a;let n=null==(e=window.__Helios)?void 0:e.adNodes;if(!n||0===n.length)return!1;let i=n.find(e=>{var l;return(null==e||null==(l=e.config)?void 0:l.pos)==="mw_adhd1"});if(!(null==i?void 0:i.slot))return!1;let r=null==(l=(t=i.slot).getHtml)?void 0:l.call(t);return null!=(a=null==r?void 0:r.includes('
'))&&a}catch(e){return!1}})()&&(f(!0),w.current&&(clearInterval(w.current),w.current=null))},500),()=>{w.current&&(clearInterval(w.current),w.current=null)}},[l]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.DebugCollector,{componentName:"AdBlock",data:{props:{adId:l,variant:t,title:o,titleAlignment:d,height:c,className:u},state:{loaded:h.loaded,height:h.height,displayAd:h.displayAd,isIMAdDetected:g},performance:{renderTime:Date.now()}}}),(0,a.jsxs)("div",{className:(0,r.cn)(C,u),children:[o&&h.loaded&&(0,a.jsx)("div",{className:"text-xxs w-full px-4 py-0.75 text-gray-400 text-".concat(d),children:o}),"WX_PromoDriver1"===l&&!o&&h.loaded&&h.displayAd&&(0,a.jsx)("h2",{className:"my-6 px-2 text-2xl font-bold",children:"Stay Safe"}),(0,a.jsx)("div",{id:l,"data-testid":l,className:T,style:{height:h.loaded?"100%":"0px"},ref:y})]}),"WX_PromoDriver1"===l&&(!h.loaded||!h.displayAd)&&(0,a.jsx)(s.default,{title:"Stay Safe",ctaStyle:"featured",linkUrl:"/",backgroundColor:"white",media:"https://s-dev.w-x.co/wxnext/img/Screenshot2025-04-17at44929PMpng"})]})},f=p},43716:(e,l)=>{"use strict";var t,a,n,i;Object.defineProperty(l,"__esModule",{value:!0}),l.PollutantType=l.AirQualityCategory=l.AirQualityForecastDuration=l.AirQualityScale=void 0,function(e){e.EPA="EPA",e.HJ6332012="HJ6332012",e.ATMO="ATMO",e.UBA="UBA",e.DAQI="DAQI",e.NAQI="NAQI",e.IMECA="IMECA",e.CAQI="CAQI"}(t||(l.AirQualityScale=t={})),function(e){e.TWELVE_HOUR="12hour",e.TWENTY_FOUR_HOUR="24hour",e.FORTY_EIGHT_HOUR="48hour",e.SEVENTY_TWO_HOUR="72hour"}(a||(l.AirQualityForecastDuration=a={})),function(e){e.GOOD="Good",e.MODERATE="Moderate",e.UNHEALTHY_FOR_SENSITIVE_GROUPS="Unhealthy for Sensitive Groups",e.UNHEALTHY="Unhealthy",e.VERY_UNHEALTHY="Very Unhealthy",e.HAZARDOUS="Hazardous"}(n||(l.AirQualityCategory=n={})),function(e){e.CO="CO",e.NO2="NO2",e.O3="O3",e.PM10="PM10",e.PM2_5="PM2.5",e.SO2="SO2"}(i||(l.PollutantType=i={}))},43834:(e,l,t)=>{"use strict";t.r(l),t.d(l,{PromoDriverBlock:()=>s,default:()=>o});var a=t(76792);t(42292);var n=t(57965),i=t(9198),r=t(98066);let s=e=>{let{title:l,image:t,subtitle:s,bodyText:o,ctaButton:d}=e,c=(null==d?void 0:d.url)&&/^https?:\/\//i.test(d.url),u=(0,r.bt)(t)?t:null;return l||u&&(null==u?void 0:u.url)||s||o||d?(0,a.jsxs)("div",{className:"overflow-hidden rounded-lg bg-white",children:[l&&(0,a.jsx)("div",{className:"p-4",children:(0,a.jsx)("h3",{className:"text-xl font-semibold text-gray-900",children:l})}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(null==u?void 0:u.url)?(0,a.jsx)("div",{className:"relative aspect-[42/13] w-full overflow-hidden bg-white px-4 pt-4",children:(0,a.jsx)("div",{className:"relative h-full w-full overflow-hidden rounded-lg",children:(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)(n.default,{src:u.url,alt:l||"Promo image",fill:!0,className:"object-cover"})})})}):null,(s||o||d)&&(0,a.jsxs)("div",{className:"p-4",children:[s&&(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)("h4",{className:"mb-2 text-base font-bold",children:s})}),o&&(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)("p",{className:"mb-4 text-base",children:o})}),d&&(0,a.jsx)("div",{className:"flex justify-end",children:c?(0,a.jsx)("a",{href:d.url||"#",target:d.openInNewTab?"_blank":"_self",rel:d.openInNewTab?"noopener noreferrer":"",className:"inline-block max-w-[200px] overflow-hidden rounded-lg bg-black px-4 py-2 text-base font-normal text-ellipsis whitespace-nowrap text-white",children:d.text}):(0,a.jsx)(i.default,{href:d.url||"#",target:d.openInNewTab?"_blank":"_self",className:"inline-block max-w-[200px] overflow-hidden rounded-lg bg-black px-4 py-2 text-base font-normal text-ellipsis whitespace-nowrap text-white",children:d.text})})]})]})]}):null},o=s},44936:(e,l,t)=>{"use strict";t.d(l,{p:()=>r});var a=t(56768),n=t(42292),i=t(40358);let r=(e,l)=>{var t;let{data:r,isLoading:s}=(0,i.r)({geoCode:null!=(t=null==e?void 0:e.geocode)?t:null,insightType:a.InsightType.PRECIP_INSIGHT,locale:l}),o=(0,n.useMemo)(()=>null==r?void 0:r.find(e=>{var l;return(null==e||null==(l=e.supplement)?void 0:l.precipSource)==="wwir"}),[r]);return{loadingInsight:s,insightHeadline:(null==o?void 0:o.insightHeadline[0])||"",insightTextLong:(null==o?void 0:o.insightTextLong[0])||""}}},46565:(e,l,t)=>{"use strict";t.r(l),t.d(l,{HourlyForecastAdminBlock:()=>s,default:()=>o});var a=t(76792);t(42292);var n=t(22901),i=t(8818),r=t(82188);let s=()=>{let[e,l]=(0,i.kV6)(),t=(0,r.r)(e,!0);return(0,a.jsxs)(n.default,{name:"HourlyForecast",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("b",{children:"Provider"}),": ",t.locationProvider]}),"specified"===t.locationProvider&&(0,a.jsxs)("div",{children:[(0,a.jsx)("b",{children:"Location"}),": ",t.locationEntry]}),(0,a.jsx)("div",{className:"mt-2",children:(0,a.jsx)(i.OcR,{label:"Simplified Version",name:"simplifiedVersion",checked:(null==t?void 0:t.simplifiedVersion)||!1,onToggle:e=>{l({type:"UPDATE",path:"simplifiedVersion",value:e.target.checked})}})})]})},o=s},46670:(e,l,t)=>{"use strict";t.d(l,{S:()=>d});var a=t(76792);t(42292);var n=t(48260),i=t(31607),r=t(3916),s=t(71666);let o=e=>{let{pressureTendencyCode:l,iconClassName:t}=e;return 1===l?(0,a.jsx)(i.D,{"data-testid":"PressureRisingIcon",className:(0,n.cn)("mr-1 inline-block h-4 w-4",t),"aria-label":"Pressure rising"}):2===l?(0,a.jsx)(r.y,{"data-testid":"PressureFallingIcon",className:(0,n.cn)("mr-1 inline-block h-4 w-4",t),"aria-label":"Pressure falling"}):null},d=e=>{let{className:l,unitsClassName:t,pressureAltimeter:i,pressureMeanSeaLevel:r,pressureTendencyCode:d,units:c,iconClassName:u}=e,m=c?(0,s.Bu)(c):null,h=null==m?void 0:m.pressure,x=(()=>{let e=i&&i>0||r&&r>0?i||r:null;return e?"e"===c?e.toFixed(2):e.toFixed(1):null})();return(0,a.jsx)("span",{"data-testid":"PressureValue",className:(0,n.cn)("inline-flex items-center",l),children:x?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o,{pressureTendencyCode:d,iconClassName:u}),(0,a.jsx)("span",{children:x}),"\xa0",(0,a.jsx)("span",{className:(0,n.cn)(t),children:h})]}):"--"})}},46828:(e,l,t)=>{"use strict";t.d(l,{A:()=>f});var a=t(76792);t(42292);var n=t(93146),i=t(63481),r=t(29963),s=t(79770),o=t(44615),d=t(27370),c=t(55198),u=t(48260),m=t(62596),h=t(79315);let x=e=>{let{date:l,locale:t="en-US",timeZone:a}=e;if(!l)return null;let{cDate:n,cTimeZone:i}=(0,h.r)({date:l,locale:t,timeZone:a});return new Intl.DateTimeFormat(t,{weekday:"long",timeZone:i}).format(n)};var v=t(47421),p=t(68751),g=t(9946);let f=e=>{let{location:l,className:t,headlineClassName:h,showSubheadline:f=!1}=e,y=(0,c.useParams)(),b=null==y?void 0:y.locale,w=(0,v.c3)("AlertHeadlines"),{data:j,error:N,isLoading:C}=(0,o.Ay)((null==l?void 0:l.geocode)?["alerts",l.geocode]:null,e=>{let[l,t]=e;return(0,n.Sn)({geocode:t,language:b})},{revalidateOnFocus:!1,dedupingInterval:6e4})||{},T=(null==j?void 0:j.alerts)&&j.alerts.length>0?j.alerts[0]:null,k=T?(()=>{if(!T)return null;let{productIdentifier:e,phenomena:l,significance:t}=T;if(!e||!l||!t)return null;let a=(0,i.F)({productIdentifier:e,phenomena:l,significance:t}),n=(0,r.t)({productIdentifier:e||"",phenomena:l,significance:t}),s={1:{icon:"#fff",fill:"#ba0d00",border:"#f0f0f0",textColor:"#FFFFFF",backgroundColor:"#ba0d00",buttonBackgroundColor:"#ba0d00"},2:{icon:"#000",fill:"#e6731f",border:"#f0f0f0",textColor:"#ffffff",backgroundColor:"#25242299",buttonBackgroundColor:"#25242299"},3:{icon:"#000",fill:"#ebbb02",border:"#f0f0f0",textColor:"#ffffff",backgroundColor:"#25242299",buttonBackgroundColor:"#25242299"},4:{icon:"#fff",fill:"#a51ccb",border:"#f0f0f0",textColor:"#FFFFFF",backgroundColor:"#25242299",buttonBackgroundColor:"#ffffff1a"},severe:{icon:"#fff",fill:"#ba0d00",border:"#f0f0f0",textColor:"#FFFFFF",backgroundColor:"#ba0d00",buttonBackgroundColor:"#ba0d00"}};return s[n?"severe":a]||s[4]})():null,A=T?(0,i.F)({productIdentifier:T.productIdentifier,phenomena:T.phenomena,significance:T.significance}):null,S=T?(0,r.t)({productIdentifier:T.productIdentifier,phenomena:T.phenomena,significance:T.significance}):null;if(C||N||!T)return null;let I=T.effectiveTimeLocalTimeZone||T.endTimeLocalTimeZone||"",M=(e=>{let{effectiveTimeLocal:l,endTimeLocal:t}=e,a="";switch(!0){case!!(l&&t):a="subheadlineTextWithStartAndEndTime";break;case!!(!l&&t):a="subheadlineTextWithoutStartTime";break;case!!(l&&!t):a="subheadlineTextWithoutEndTime";break;default:return""}return a})({effectiveTimeLocal:T.effectiveTimeLocal,endTimeLocal:T.endTimeLocal}),_=(0,g.k)({phenomena:T.phenomena,significance:T.significance,areaId:T.areaId,officeCode:T.officeCode,eventTrackingNumber:T.eventTrackingNumber,locId:(null==l?void 0:l.placeId)||""});return(0,a.jsxs)("a",{href:_,className:(0,u.cn)("flex items-center gap-4 rounded-sm px-2 py-2 text-sm",t),style:{backgroundColor:null==k?void 0:k.backgroundColor,color:null==k?void 0:k.textColor},role:"alert","aria-live":"polite",children:[(0,a.jsxs)("div",{className:"flex-1 flex-col",children:[(0,a.jsxs)("div",{className:"flex gap-2",children:[T&&(0,a.jsx)(s.AlertIcon,{productIdentifier:T.productIdentifier,phenomena:T.phenomena,significance:T.significance,className:"h-4 w-4 items-start","aria-hidden":"true"}),(0,a.jsx)("span",{className:(0,u.cn)("uppercase",h),children:T.eventDescription})]}),f&&(0,a.jsx)(p.Ay,{className:"mt-1 uppercase",variant:"Caption.S.Bold",color:"inverse",children:w(M,{[(null==T?void 0:T.effectiveTimeLocal)&&"startTime"]:(0,m.P)({date:T.effectiveTimeLocal,weekday:"short",locale:b,timeZone:T.ianaTimeZone,minutes:!0}),[(null==T?void 0:T.endTimeLocal)&&"endTime"]:(e=>{let{effectiveTimeLocal:l,endTimeLocal:t,locale:a,ianaTimeZone:n}=e,i=x({date:l,locale:a,timeZone:n}),r=x({date:t,locale:a,timeZone:n});return(0,m.P)({date:t,locale:a,weekday:i!==r&&"short"||void 0,timeZone:n,minutes:!0})})({effectiveTimeLocal:T.effectiveTimeLocal||"",endTimeLocal:T.endTimeLocal||"",locale:b,ianaTimeZone:T.ianaTimeZone||""}),timeZone:I})})]}),j&&j.alerts.length>1&&(0,a.jsxs)(d.$n,{variant:"outline",size:"sm",style:{backgroundColor:null==k?void 0:k.buttonBackgroundColor,...1===A||S?{outline:"solid 1px #ffffff"}:{}},className:"flex h-6 items-center justify-center rounded-xs border-0 px-2 py-2 text-xs text-white hover:bg-transparent hover:text-white","aria-label":"View ".concat(j.alerts.length-1," more alerts"),children:["+",j.alerts.length-1," MORE"]})]})}},46859:(e,l,t)=>{"use strict";t.d(l,{v:()=>b});var a=t(23803);let n=(0,a.h)("AdUtils"),i=async e=>{let{player:l,user:t,ctx:a={},isMobile:n=!1}=e;if(!l)return;if(null==t?void 0:t.isUserPremium)return void l.play();let i=await r(a,n);i?l.playAd(i):l.play()},r=async function(e){let l,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!c())return null;let a=o(e,t),i=s({},e.iab);window.__Helios.emit("UPDATE_AD_UNIT_PATH",a);try{var r,u,m;null==(m=window.__Helios.modules)||null==(u=m.iabc)||null==(r=u.update)||r.call(u,{page:i,site:{v1:["IAB15-10_Weather"],v3:["390_Weather"]}})}catch(e){n.error("Error updating IABC parameters",e)}try{l=await d()}catch(e){l=null,n.error("Error getting ad tag",e)}return window.__Helios.emit("UPDATE_AD_UNIT_PATH",a),l},s=(e,l)=>{let t={...e};for(let e in l)Array.isArray(l[e])?(t[e]=[...t[e]||[],...l[e]],t[e]=[...new Set(t[e])]):"object"==typeof l[e]&&null!==l[e]?t[e]=s(t[e]||{},l[e]):t[e]=l[e];return t},o=(e,l)=>{var t,a,n,i,r,s;let o=null==(a=window)||null==(t=a.__HeliosConfig)?void 0:t.generalConfig,d=null!=(r=null==o||null==(n=o.targeting)?void 0:n.networkCode)?r:"/7646",c=null!=(s=null==o||null==(i=o.targeting)?void 0:i.adUnits)?s:l?"mobile_smart_us":"web_weather_us",u=e.collectionAdZone||e.adzone||"video";return"".concat(d,"/").concat(c,"/").concat(u)},d=async()=>{let e=[];try{var l;e=await (null==(l=window)?void 0:l.__Helios.video.requestVideoBids())}catch(e){n.error("Error getting video bids",e)}return await window.__Helios.modules.videoTag.createAdTag(e)},c=()=>{try{var e,l,t,a,n;return"function"==typeof(null==(l=window.__Helios)||null==(e=l.video)?void 0:e.requestVideoBids)&&"function"==typeof(null==(n=window.__Helios)||null==(a=n.modules)||null==(t=a.videoTag)?void 0:t.createAdTag)}catch(e){return!1}},u=function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"https";return e.replace(/^\/\//,"".concat(l,"://"))},m=e=>{let{collectionId:l,videoIndex:t,videoId:a}=e||{};return{videoCount:t,videoId:a,collectionId:l}},h=e=>"GDFP"===e||"AdSense/AdX"===e;t(76792),t(73675);var x=t(37811);let v=(0,a.h)("NewRelic");function p(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var t,a,n;null==(n=window)||null==(a=n.NREUM)||null==(t=a.addPageAction)||t.call(a,e,{...g(l,"meta.")})}catch(e){v.error("New Relic: sendReumEvent error",e instanceof Error?e.message:String(e))}}x.env.NEW_RELIC_RUM_ACCOUNT_ID,x.env.NEW_RELIC_RUM_APP_ID,x.env.NEW_RELIC_RUM_LICENSE_KEY;let g=function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.fromEntries(Object.entries(e).map(e=>{let[t,a]=e;return["".concat(l).concat(t),a]}))},f=(0,a.h)("AdEvents"),y=new Set(["amznbid","crt_pb","hb_pb"]),b=[{eventName:"ready",callback:e=>{let{event:l}=e;p("videoReady",{isViewable:!!l.viewable,setupTime:l.setupTime})}},{eventName:"beforePlay",callback:async e=>{var l;let{event:t,player:a,isFirstPlayRef:n,user:r,isMobile:s}=e;if(!(null==n?void 0:n.current))return;let o=a.getPlaylistItem(),d=null==o||null==(l=o.custom)?void 0:l.ctx;d&&(d.videoIndex=a.getPlaylistIndex()),p("videoBeforePlay",{...m(d),isViewable:!!t.viewable,playReason:t.playReason}),a.stop(),await i({player:a,user:r,ctx:d,isMobile:s}),n.current=!1}},{eventName:"adRequest",callback:e=>{var l;let{event:t,player:a}=e,n=a.getPlaylistItem(),i=null==n||null==(l=n.custom)?void 0:l.ctx,r={},s=m(i);try{let e=u(t.tag||""),l=new URL(e).searchParams.get("cust_params"),a=(e=>e?e.split("&").reduce((e,l)=>{let[t,a]=l.split("=");return t&&a&&(e[t]||(e[t]=[]),e[t].push(a)),e},{}):{})(l);for(let e of Object.keys(a))y.has(e)&&(r["".concat("kv_").concat(e)]="".concat(a[e]))}catch(e){f.error("Error parsing cust_params",e)}p("videoAdRequest",{...s,isViewable:!!t.viewable,roll:t.adposition,...r})}},{eventName:"adStarted",callback:e=>{var l,t,a,n,i,r;let{event:s,player:o}=e,d=o.getPlaylistItem(),c=null==d||null==(l=d.custom)?void 0:l.ctx,{duration:u,adposition:x}=s,v=m(c),g="";try{let e=null==(r=s.ima)||null==(i=r.ad)?void 0:i.data;e&&(g=(e=>{let{adSystem:l,adId:t,adWrapperSystems:a,adWrapperIds:n}={adSystem:"",adId:"",adWrapperSystems:[],adWrapperIds:[],...e};if(h(l))return t;let i=a.findIndex(h);return i>=0&&i{var l;let{event:t,player:a}=e,n=a.getPlaylistItem();p("videoStart",{...m(null==n||null==(l=n.custom)?void 0:l.ctx),isViewable:!!t.viewable,loadTime:t.loadTime})}},{eventName:"complete",callback:e=>{var l;let{player:t}=e,a=t.getPlaylistItem();p("videoComplete",{...m(null==a||null==(l=a.custom)?void 0:l.ctx)})}},{eventName:"adSkipped",callback:e=>{var l;let{player:t}=e,a=t.getPlaylistItem();p("videoAdSkip",{...m(null==a||null==(l=a.custom)?void 0:l.ctx)})}},{eventName:"playlistItem",callback:async e=>{var l;let{event:t,player:a,isFirstPlayRef:n,user:r,isMobile:s}=e;if(null==n?void 0:n.current)return;let{item:o}=t,d=null==o||null==(l=o.custom)?void 0:l.ctx;d.videoIndex=a.getPlaylistIndex(),a.stop(),await i({player:a,user:r,ctx:d,isMobile:s})}},{eventName:"adComplete",callback:async e=>{let{player:l}=e;l.play()}},{eventName:"adError",callback:async e=>{var l;let{event:t,player:a}=e,n=a.getPlaylistItem();p("videoAdError",{...m(null==n||null==(l=n.custom)?void 0:l.ctx),message:t.message,code:t.code,vastCode:t.vastCode,roll:t.adposition}),f.error("Ad error occurred",t),a.play()}},{eventName:"error",callback:async e=>{var l;let{event:t,player:a}=e,n=a.getPlaylistItem();p("videoError",{...m(null==n||null==(l=n.custom)?void 0:l.ctx),message:t.message,code:t.code}),f.error("Video Player error",t)}},{eventName:"setupError",callback:e=>{let{event:l}=e;p("videoSetupError",{message:l.message,code:l.code})}}]},48834:(e,l,t)=>{"use strict";t.d(l,{M:()=>r});var a=t(76792),n=t(48260),i=t(47421);let r=e=>{let l,{uvIndex:t,uvDescription:r,className:s,descriptionClassName:o}=e,d=(0,i.c3)("DetailsTable");return l=!Number.isFinite(t)||t10?d("extreme"):r?t:l=d("uvIndexVal",{val:t,maxVal:11}),(0,a.jsxs)("span",{"data-testid":"UVIndexValue",className:(0,n.cn)(s),children:[l,r&&t{"use strict";t.d(l,{A:()=>m});var a=t(76792),n=t(42292);let i={src:"/_next/static/media/SlideshowIcon.2da11b0d.png"};var r=t(22627),s=t(68751),o=t(64868),d=t(11181);let c=e=>!!e&&""!==e.trim()&&(/\.(jpg|jpeg|png|gif|webp|bmp|tiff|svg)$/i.test(e)||/^[A-Z0-9_]+\d*\.[a-zA-Z]+$/i.test(e)||/^[a-zA-Z0-9_-]+\d+$/i.test(e)||/[._][0-9]+/i.test(e)||/^[A-Z0-9_]+$/i.test(e)),u=e=>{var l;let{id:t,assets:n,currentSlideIndex:u,totalAssets:m,previous:h,next:x,sendTrackString:v,rounded:p=!1}=e;if(!n.length||u=n.length)return null;let g=n[u],f="".concat(u+1,"/").concat(m),y=0===u,b=u===m-1;return(0,a.jsxs)("figure",{id:t,className:"relative mt-4 mb-4 w-full max-w-full",children:[(0,a.jsx)("div",{className:p?"overflow-hidden rounded-[16px]":"",children:(0,a.jsx)("div",{className:"relative w-full ".concat(p?"rounded-[16px]":""),children:(0,a.jsx)("div",{className:"relative w-full ".concat(p?"rounded-[16px]":""),style:{paddingTop:"56.25%"},children:(0,a.jsx)(r.A,{className:"absolute top-0 left-0 h-full w-full object-cover",src:g.url||"",alt:(null==(l=g.seo)?void 0:l.altText)||"",rounded:p,width:800,height:450,sizes:"(max-width: 767px) 91vw, (max-width: 1280px) 64vw, 800px"})})})}),(0,a.jsx)("figcaption",{children:(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)("div",{className:"flex items-center pt-2",children:(0,a.jsxs)("div",{className:"relative flex w-full items-center",children:[(0,a.jsx)("div",{className:"flex items-center",children:(0,a.jsx)(r.A,{src:i.src,alt:"Slideshow",width:20,height:20,className:"h-5 w-5",rounded:!1})}),(0,a.jsx)("div",{className:"mr-2 ml-2",children:(0,a.jsx)(s.EY,{variant:"Body.S",color:"primary",children:f})}),(0,a.jsx)("div",{className:"flex-grow"}),(0,a.jsx)("button",{type:"button","aria-label":"Previous",className:"mr-[10px] flex cursor-pointer items-center justify-center border-none bg-transparent p-2 disabled:cursor-not-allowed disabled:opacity-50",disabled:y,onClick:()=>{v("wxnode_slideshow_link-previous"),h()},children:(0,a.jsx)("span",{className:"flex items-center justify-center",children:(0,a.jsx)("span",{className:"flex items-center justify-center","aria-label":"chevron left",children:(0,a.jsx)(o.A,{className:"h-5 w-5 ".concat(y?"text-gray-200":"text-blue-500")})})})}),(0,a.jsx)("button",{type:"button","aria-label":"Next",className:"ml-auto flex cursor-pointer items-center justify-center border-none bg-transparent p-2 disabled:cursor-not-allowed disabled:opacity-50",disabled:b,onClick:()=>{v("wxnode_slideshow_link-next"),x()},children:(0,a.jsx)("span",{className:"flex items-center justify-center",children:(0,a.jsx)("span",{className:"flex items-center justify-center","aria-label":"chevron right",children:(0,a.jsx)(d.A,{className:"h-5 w-5 ".concat(b?"text-gray-200":"text-blue-500")})})})})]})}),g.filename&&!c(g.filename)&&(0,a.jsx)(s.EY,{variant:"Title.S",color:"primary",elementType:"h3",className:"mt-0 mb-1",children:g.filename}),g.caption&&(0,a.jsx)(s.EY,{variant:"Body.S",color:"primary",className:"py-1 pb-0 ".concat(g.filename&&!c(g.filename)?"":"mt-0 pt-0"),children:g.caption}),(0,a.jsx)("div",{className:"border-b border-gray-200 py-2"})]})})]})},m=e=>{let{id:l,assets:t=[],allSlides:i=[],totalAssets:r=i.length||0,loadNextSlideshowPage:s,sendTrackString:o=()=>{},rounded:d=!1}=e,c=(0,n.useId)(),m=l||"slideshow-".concat(c),h=i.length>0,[x,v]=(0,n.useState)(0),[p,g]=(0,n.useState)(1),[f,y]=(0,n.useState)(1),[b,w]=(0,n.useState)(h?i.slice(0,20):t),j=(0,n.useCallback)(e=>{if(!e)return!1;let{top:l}=e.getBoundingClientRect();return l>=-100&&l{if(x-1>=0){let e=x-1?Math.ceil((x-1)/20):1;v(x-1),g(e)}},[x]),C=(0,n.useCallback)(()=>{if(x+1=f){let e=20*p;if(e-3t.length&&p>=f){let e=20*p;e-3{if(j(document.querySelector("#".concat(m))))switch(e.key){case"ArrowLeft":N();break;case"ArrowRight":C()}},[m,j,N,C]);return(0,n.useEffect)(()=>(document.body.addEventListener("keydown",T),()=>{document.body.removeEventListener("keydown",T)}),[T]),(0,n.useEffect)(()=>{h&&0===b.length&&w(i.slice(0,20))},[h,i,b.length]),(0,a.jsx)(u,{id:m,assets:h?b:t,currentSlideIndex:x,totalAssets:r,previous:N,next:C,sendTrackString:o,rounded:d})}},49694:(e,l,t)=>{"use strict";t.d(l,{S:()=>s});var a=t(76792),n=t(42292),i=t(23233);let r=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"pressure"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.498 1.022a.5.5 0 0 1 .5.5v3.022H4.841l3.14 2.788 3.16-2.788h-1.13V1.522a.5.5 0 0 1 1 0v2.022h1.453a.5.5 0 0 1 .33.875L8.744 7.993l4.053 3.6a.5.5 0 0 1-.332.874h-1.473v2.022a.5.5 0 0 1-1 0v-3.022h1.157L8.008 8.68l-3.16 2.788h1.13v3.022a.5.5 0 0 1-1 0v-2.022H3.525a.5.5 0 0 1-.33-.875l4.052-3.574-4.054-3.6a.5.5 0 0 1 .332-.874h1.473V1.522a.5.5 0 0 1 .5-.5",clipRule:"evenodd"})]})}),s=n.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:r,...e}));s.displayName="Pressure"},50772:(e,l,t)=>{"use strict";t.d(l,{r:()=>r});var a=t(42292),n=t(55680),i=t(1843);let r=e=>{let l=(0,a.useRef)(null),[t,r]=(0,a.useState)(i.A?e(window.innerWidth,window.innerHeight):null),s=(0,a.useRef)(!1),o=(0,n.X)(e);return(0,a.useEffect)(()=>{let e=l.current;if(!e||"undefined"==typeof ResizeObserver)return;let t=new ResizeObserver(e=>{for(let l of e){let{right:e,left:t,top:a,bottom:n}=l.contentRect,i=e+t,d=a+n,c=o.current(i,d);s.current=!0,r(c)}});return t.observe(e),()=>{t.disconnect()}},[l,o]),[t,l,s.current]}},51254:(e,l,t)=>{"use strict";t.d(l,{Y:()=>s});var a=t(76792),n=t(42292),i=t(23233);let r=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Rain Drop"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:[(0,a.jsx)("path",{d:"M8 14.256a4.506 4.506 0 0 1-4.5-4.5 5 5 0 0 1 .747-2.478l3.33-5.303a.52.52 0 0 1 .847 0l3.314 5.278a5.03 5.03 0 0 1 .762 2.503 4.506 4.506 0 0 1-4.5 4.5M8 3.18 5.11 7.784a4 4 0 0 0-.61 1.972 3.5 3.5 0 0 0 7 0 4.03 4.03 0 0 0-.624-1.998z"}),(0,a.jsx)("path",{d:"M10.103 9.757a.5.5 0 0 1 .319.631 2.74 2.74 0 0 1-1.747 1.724.5.5 0 0 1-.313-.95c.615-.203.976-.68 1.11-1.086a.5.5 0 0 1 .63-.32"})]})]})}),s=n.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:r,...e}));s.displayName="RainDrop"},53955:(e,l,t)=>{"use strict";t.r(l),t.d(l,{AdAdminBlock:()=>s,default:()=>o});var a=t(76792);t(42292);var n=t(8818),i=t(82188),r=t(22901);let s=()=>{let[e]=(0,n.kV6)(),l=(0,i.r)(e,!0);return(0,a.jsx)(r.default,{name:"Ad",children:(0,a.jsxs)("span",{children:["Ad ID: ",(()=>{var e;return"object"==typeof(null==l?void 0:l.adSlot)&&(null==(e=l.adSlot)?void 0:e.slotTarget)?l.adSlot.slotTarget:"No ad slot selected"})()]})})},o=s},53976:(e,l,t)=>{"use strict";t.d(l,{S:()=>y});var a=t(76792),n=t(22627),i=t(42292),r=t(23233);let s=(0,i.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Play"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M5.5 11.5A.5.5 0 0 1 5 11V5a.5.5 0 0 1 .724-.447l6 3a.5.5 0 0 1 0 .894l-6 3a.5.5 0 0 1-.224.053M6 5.809v4.382L10.382 8z"}),(0,a.jsx)("path",{d:"M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2m0-1a7 7 0 1 0 0 14A7 7 0 0 0 8 1"})]})]})}),o=i.forwardRef((e,l)=>(0,a.jsx)(r.h,{ref:l,icon:s,...e}));o.displayName="PlayOutline";let d=(0,i.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Video Player"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M7.265 5.978a.5.5 0 0 0-.765.424v3.196a.5.5 0 0 0 .765.424l2.557-1.598a.5.5 0 0 0 0-.848z"}),(0,a.jsx)("path",{d:"M14 3H2c-.552 0-1 .449-1 1v8c0 .551.448 1 1 1h12c.552 0 1-.449 1-1V4c0-.551-.448-1-1-1m0 8.5a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 .5.5z"})]})]})}),c=i.forwardRef((e,l)=>(0,a.jsx)(r.h,{ref:l,icon:d,...e}));c.displayName="VideoPlayer";let u=(0,i.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Book"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M13 5H9.5v1H13zM13 7.5H9.5v1H13zM13 10H9.5v1H13zM6.5 5H3v1h3.5zM6.5 7.5H3v1h3.5zM6.5 10H3v1h3.5z"}),(0,a.jsx)("path",{d:"M14 2.5H2a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-9a1 1 0 0 0-1-1m-12 1h5.5v9H2zm6.5 9v-9H14v9z"})]})]})}),m=i.forwardRef((e,l)=>(0,a.jsx)(r.h,{ref:l,icon:u,...e}));m.displayName="Book";var h=t(9198),x=t(48260),v=t(68751),p=t(54086);let g={video:o,article:m},f={col:"flex-col",row:"flex-row","col-reverse":"flex-col-reverse","row-reverse":"flex-row-reverse"},y=e=>{let{heading:l,description:t,content:i,href:r,target:s,imageUrl:o,altText:d,onClick:u,className:m,imageWrapClassName:y,imageClassName:b,contentClassName:w,badge:j,icon:N="video",showIcon:C,iconClassName:T,overlayClassName:k,dir:A="row",isFetchPriority:S,noPadding:I=!1,duration:M,badgeStyle:_=!1,bodyText:R,imageWidth:P,aspectRatio:L="square",partnerLogoThumbnailUrl:E,partnerLogoWhite:D=!1,partnerLogoPosition:F="default"}=e,B=g[N],z=!!(l||t||i),V=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:(0,x.cn)("relative overflow-hidden rounded-lg","transition-shadow duration-150 group-hover:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)] group-focus-visible:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)]",L&&"auto"!==L?"square"===L?"aspect-square":"video"===L?"aspect-video":"aspect-[".concat(L,"]"):"",P||"w-full",y),children:[(0,a.jsx)(n.A,{fetchPriority:S?"high":void 0,src:o,alt:d||t||"",fill:!0,className:(0,x.cn)("absolute top-0 left-0 h-full w-full scale-[1.01] object-cover","transition-transform duration-150 group-hover:scale-[1.02] group-focus-visible:scale-[1.02]",b),sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 25vw"}),(0,a.jsx)("div",{className:(0,x.cn)("absolute inset-0 flex items-center justify-center",k),children:C&&B&&(0,a.jsx)(B,{className:(0,x.cn)("size-10 text-white",T)})}),j&&(0,a.jsx)("div",{className:"absolute right-2 bottom-2 rounded-full bg-black/70 px-[10px] py-2 text-[14px] leading-none text-white md:right-1 md:bottom-1 md:p-1 md:text-[10px]",children:j}),E&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-[linear-gradient(to_bottom,rgba(17,30,55,0)_0%,rgba(17,30,55,0)_50%,rgba(17,30,55,0.4)_100%)]"}),(0,a.jsx)("div",{className:(0,x.cn)("absolute overflow-visible","compact"===F?"bottom-3 left-3":"bottom-4 left-4"),children:(0,a.jsx)("div",{className:(0,x.cn)("relative","compact"===F?"w-24":"w-40"),children:(0,a.jsx)(n.A,{src:E,alt:"",width:"compact"===F?96:160,height:0,className:(0,x.cn)("h-auto max-h-5 w-full rounded-none object-contain object-left",D&&"brightness-0 invert"),style:{height:"auto"},sizes:"compact"===F?"96px":"160px"})})})]})]}),z&&(0,a.jsx)("div",{className:(0,x.cn)(w,"row"===A&&"max-h-40"),children:i||(0,a.jsxs)(a.Fragment,{children:[l&&(_?(0,a.jsx)("span",{className:"mb-2 inline-block rounded-full bg-gray-100 px-3 py-1 text-xs font-medium text-gray-700",children:l}):(0,a.jsx)(v.Ay,{elementType:"span",variant:"Title.S",className:"mb-1 text-xs",color:"placeholder",children:l})),(t||R)&&(0,a.jsxs)("div",{className:(0,x.cn)("row"===A&&!M&&"line-clamp-7 sm:line-clamp-6","row"===A&&M&&"line-clamp-5 sm:line-clamp-4","row"===A&&"overflow-hidden","mb-2"),children:[t&&(0,a.jsx)(v.Ay,{elementType:"h2",className:"mb-2 text-base leading-tight font-semibold text-gray-900 @md:text-lg @lg:text-xl @xl:text-2xl",children:t}),R&&(0,a.jsx)(v.Ay,{elementType:"p",className:"text-sm font-normal text-gray-500 @md:text-base",children:R})]}),M&&(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(c,{className:"size-6 text-gray-500 sm:size-6"}),(0,a.jsx)(v.Ay,{elementType:"span",className:"text-sm text-gray-500 sm:text-base",children:(0,p.h)(M)})]})]})})]}),W=(0,x.cn)("group","not-prose font-normal text-gray-900 no-underline rounded-2xl flex gap-4",!I&&"p-3","transition-all duration-150",!I&&"hover:bg-gray-100 focus-visible:bg-gray-100","focus-visible:outline-none",f[A],m);return!u&&r?(0,a.jsx)(h.default,{className:W,href:r,target:s,children:V}):(0,a.jsx)("div",{className:W,onClick:u,children:V})}},54086:(e,l,t)=>{"use strict";t.d(l,{h:()=>a});let a=e=>{let l=e.split(":");""===l[0]&&(l[0]="0");let t=parseInt(l[0]||"0",10).toString();if("0"===t&&3===l.length){let e=parseInt(l[1]||"0",10).toString();return"".concat(e,":").concat(l[2])}return[t,...l.slice(1)].join(":")}},54909:(e,l,t)=>{"use strict";t.d(l,{j:()=>n,w:()=>i});var a=t(37811);let n=e=>{var l,t,n,i;let r,s=null==(l=null!=(t=a.env.VERCEL_TARGET_ENV)?t:"production")?void 0:l.toLowerCase();a.env.VERCEL_TARGET_ENV,"preview"!==s&&a.env.VERCEL_TARGET_ENV_URL;let o=null!=(n=a.env.VERCEL_URL)?n:"wx-next-j68owomu4.vercel.weather.com",d=null!=(i=a.env.VERCEL_TARGET_ENV_URL)?i:"weather.com",c="true"===a.env.NEXT_DEV_SERVER_INSECURE||"true"===a.env.NEXT_PUBLIC_NEXT_DEV_SERVER_INSECURE;switch(s){case"preview":r="https://".concat(o);break;case"development":r=c?"http://".concat(d):"https://".concat(d);break;default:r="https://".concat(d)}return e?new URL(e,r).toString():r},i=e=>{var l,t;a.env.VERCEL_TARGET_ENV_PRODUCTION_URL;let n=null!=(l=a.env.VERCEL_TARGET_ENV_PRODUCTION_URL)?l:"weather.com",i=null!=(t=a.env.VERCEL_PROJECT_PRODUCTION_URL)?t:"wxnext.weather.com",r="https://".concat(null!=n?n:i);return e?new URL(e,r).toString():r}},56157:(e,l,t)=>{"use strict";t.d(l,{$:()=>s});var a=t(76792),n=t(42292),i=t(23233);let r=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Dew Point"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsx)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:(0,a.jsx)("path",{d:"M10.889 4.663a2 2 0 1 0 2.222-3.326 2 2 0 0 0-2.222 3.326m.555-2.494a1 1 0 1 1 1.112 1.663 1 1 0 0 1-1.112-1.663M5.308 14.199A2.75 2.75 0 0 0 7.25 15 2.75 2.75 0 0 0 10 12.26c0-1.721-2.172-10.507-2.265-10.88a.5.5 0 0 0-.97 0C6.672 1.753 4.5 10.539 4.5 12.26c.002.728.293 1.425.808 1.939M5.5 12.26c0-1.056 1.02-5.57 1.75-8.638C7.98 6.69 9 11.205 9 12.26a1.75 1.75 0 1 1-3.5 0"})})]})}),s=n.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:r,...e}));s.displayName="DewPoint"},56791:(e,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getSortedAlerts=void 0,l.getSortedAlerts=e=>[...e].sort((e,l)=>e.displayRank>l.displayRank?1:e.displayRankl.eventTrackingNumber?1:(e.eventTrackingNumber{"use strict";t.r(l),t.d(l,{AirQualityIndexBlock:()=>w,default:()=>j});var a=t(76792),n=t(83357),i=t.n(n);t(42292);var r=t(48260);let s=e=>{let l,{value:t=0,diameter:n=60,strokeWidth:i=5,strokeColor:s,icon:o,iconSize:d,iconClassName:c,className:u,textClassName:m,displayValue:h,maxValue:x,useExtendedLinecap:v=!1,extendedLinecapProps:p={radius:7,strokeWidth:2},invert:g,textColor:f,textY:y="55%",strokeLinecap:b,railClassName:w}=e,j=n/2,N=j-i/2,C=2*Math.PI*N;l=x?C/100*(t/x*100):C/100*t;let T="".concat(l," ").concat(C),k=l/C*100,A={strokeWidth:i,strokeDasharray:T,stroke:s||((e,l)=>{if(500===l)switch(!0){case e>=0&&e=51&&e=101&&e=151&&e=201:return"#660099";default:return"#a0a0a0"}let t=l?e/l*100:e;switch(!0){case t>=0&&t=20&&t=40&&t=60&&t=80:return"#e82808";default:return"#a0a0a0"}})(t,x)},S="rotate(90 ".concat(j," ").concat(j,")"),I=()=>{if(h||0===h)return(0,a.jsx)("text",{x:"50%",y:y,dominantBaseline:"middle",alignmentBaseline:"middle",textAnchor:"middle",className:(0,r.cn)("fill-text-medium text-[36px] font-extralight",m),"data-testid":"DonutChartValue",fill:f,children:h});if(o){let e=d||Math.floor(j),l=Math.floor(j-e/2),t=Math.floor(j-e/2);return(0,a.jsx)("foreignObject",{x:l,y:t,width:e,height:e,children:(0,a.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,a.jsx)(o,{className:(0,r.cn)("h-full w-full",c),"aria-hidden":"true"})})})}return null};return(0,a.jsxs)("svg",{width:n,height:n,"data-testid":"DonutChart",className:(0,r.cn)("block overflow-visible rounded-full",u,{"scale-x-[-1]":g}),children:[(0,a.jsx)("circle",{r:N,cx:j,cy:j,transform:S,style:{strokeWidth:i},className:(0,r.cn)("fill-transparent stroke-[#E7ECF1]",w)}),t>=0?(0,a.jsx)("circle",{r:N,cx:j,cy:j,transform:S,strokeLinecap:b||"round",style:A,className:"fill-transparent transition-[stroke-dasharray] duration-300 ease-in-out"}):null,g&&I()?(0,a.jsx)("g",{transform:"translate(".concat(n,", 0) scale(-1, 1)"),children:I()}):I(),v&&(0,a.jsx)("circle",{r:p.radius,cx:j,style:{transform:"rotateZ(".concat(360*k/100,"deg)"),transformOrigin:"center"},fill:A.stroke,cy:j+N,strokeWidth:p.strokeWidth,className:"stroke-[var(--backgroundCard)] transition-transform duration-300 ease-in-out"})]})};var o=t(27370),d=t(4963),c=t(68751),u=t(99551);let m=e=>{let{airQualityIndex:l,airQualityCategory:t,description:n="Air quality is acceptable; however, for some pollutants there may be a moderate health concern for a very small number of people who are unusually sensitive to air pollution.",source:m,disclaimer:h,detailsUrl:x,className:v}=e;return(0,a.jsxs)("div",{className:(0,r.cn)("bg-card flex flex-col gap-4 border-b border-gray-500 pb-6 pl-3",v),"data-testid":"AirQualityIndex",children:[(0,a.jsx)(c.EY,{variant:"Title.S",className:"pb-4",children:"Air Quality Index"}),(0,a.jsxs)("div",{className:"flex items-center gap-6",children:[(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsx)(s,{value:l,maxValue:500,diameter:80,strokeWidth:8,displayValue:l,textClassName:"text-[32px] font-light"})}),(0,a.jsxs)("div",{className:"flex flex-1 flex-col gap-2",children:[(0,a.jsx)(c.EY,{elementType:"h2",className:"text-base leading-tight font-semibold text-gray-900 @md:text-lg @lg:text-xl @xl:text-2xl",children:t}),(0,a.jsxs)(c.EY,{elementType:"p",className:"text-sm font-normal text-gray-500 @md:text-base",children:[" ",n]})]})]}),x&&(0,a.jsx)("div",{className:"flex justify-end",children:(0,a.jsx)(o.$n,{asChild:!0,className:"m-4 mb-0",children:(0,a.jsx)(i(),{href:x,children:"See details"})})}),(0,a.jsxs)(u.AM,{children:[(0,a.jsx)(u.Wv,{asChild:!0,className:"max-w-[140px]",children:(0,a.jsxs)("button",{className:"text-text-secondary hover:text-text-primary flex cursor-pointer items-center gap-2 text-sm transition-colors",children:[(0,a.jsx)(d.A,{className:"h-4 w-4"}),(0,a.jsx)(c.EY,{variant:"Caption.M",className:"text-gray-500",children:"Air Quality Index"})]})}),(0,a.jsx)(u.hl,{align:"start",className:"w-[320px] p-4",children:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsxs)("div",{className:"max-w-[200px] flex-1",children:[(0,a.jsx)("h3",{className:"text-text-primary mb-3 text-sm font-semibold",children:"Levels"}),(0,a.jsx)("div",{className:"space-y-2",children:[{name:"Good",color:"#308020",range:"0-50"},{name:"Moderate",color:"#FFDE33",range:"51-100"},{name:"Unhealthy for Sensitive Groups",color:"#FF9933",range:"101-150"},{name:"Unhealthy",color:"#CC0033",range:"151-200"},{name:"Very Unhealthy",color:"#660099",range:"201-300"},{name:"Hazardous",color:"#660099",range:"301-500"}].map(e=>(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:"h-3 w-3 flex-shrink-0 rounded-full",style:{backgroundColor:e.color}}),(0,a.jsxs)("span",{className:"text-text-primary text-sm",children:[e.name," (",e.range,")"]})]},e.name))})]}),(m||h)&&(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h3",{className:"text-text-primary mb-3 text-sm font-semibold",children:"Source"}),(0,a.jsxs)("div",{className:"text-text-secondary space-y-2 text-xs",children:[m&&(0,a.jsx)("p",{children:m}),h&&(0,a.jsx)("p",{children:h})]})]})]})})]})]})};var h=t(61e3),x=t(55198),v=t(44615),p=t(76159),g=t(43716);let f=e=>{var l,t,n,i;let{location:r,initializing:s,initialError:o}=e,{effectiveLocation:d,isLocationLoading:c}=(0,h.s)({location:r}),u=null==(l=(0,x.useParams)())?void 0:l.locale,{airQualityData:f,error:y,isLoading:b}=(e=>{let{effectiveLocation:l,locale:t}=e,{data:a,error:n,isLoading:i}=(0,v.Ay)(l?["get-air-quality-forecast",l.geocode,g.AirQualityForecastDuration.TWENTY_FOUR_HOUR,g.AirQualityScale.EPA,t]:null,e=>{let[l,t,a,n,i]=e;return(0,p.getHourlyAirQualityForecast)({geocode:t,duration:a,scale:n,language:i})},{revalidateOnFocus:!1,dedupingInterval:6e4});return{airQualityData:a,error:n,isLoading:i}})({effectiveLocation:d,locale:u});if(s||b||c||!f)return(0,a.jsx)("div",{className:"flex items-center justify-center p-6",children:(0,a.jsx)("div",{className:"text-text-secondary",children:"Loading air quality data..."})});if(o||y||!(null==f||null==(t=f.forecast)?void 0:t.length))return(0,a.jsx)("div",{className:"flex items-center justify-center p-6",children:(0,a.jsx)("div",{className:"text-text-secondary",children:"Unable to load air quality data"})});let w=f.forecast[0];if(!w)return(0,a.jsx)("div",{className:"flex items-center justify-center p-6",children:(0,a.jsx)("div",{className:"text-text-secondary",children:"Unable to load air quality data"})});let j=d?"/".concat(u,"/forecast/air-quality/l/").concat(d.geocode):void 0;return(0,a.jsx)(m,{airQualityIndex:w.airQualityIndex,airQualityCategory:w.airQualityCategory,description:null==(i=w.messages)||null==(n=i.general)?void 0:n.text,source:f.source,disclaimer:f.disclaimer,detailsUrl:j})};var y=t(46593),b=t(44685);let w=e=>{let{locationProvider:l,locationEntry:t}=e,n="specified"===l,{specifiedLocationData:i,specifiedLocationError:r,isSpecifiedLocationLoading:s}=(0,y.v)(n?t:null),o=n&&i&&t?(0,b.I)(i):void 0;return(0,a.jsx)(f,{location:o,initializing:n&&s,initialError:n?r:void 0})},j=w},60393:(e,l,t)=>{"use strict";t.d(l,{Z:()=>s});var a=t(76792),n=t(42292),i=t(23233);let r=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Wind"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.333 4.626C8.575 3.757 9.41 3 10.648 3c1.497 0 2.39 1.095 2.39 2.165 0 1.069-.893 2.164-2.39 2.164H4.389c-.256 0-.463-.188-.463-.42s.207-.42.463-.42h6.259c.91 0 1.463-.649 1.463-1.324 0-.676-.552-1.325-1.463-1.325-.764 0-1.265.45-1.416.991-.063.225-.315.361-.563.304s-.398-.285-.336-.51M2 9.09c0-.232.207-.42.463-.42h9.148C13.107 8.67 14 9.766 14 10.835S13.107 13 11.61 13c-1.334 0-2.211-.882-2.364-1.694-.043-.228.127-.445.379-.484s.491.115.534.343c.082.435.598.996 1.452.996.91 0 1.462-.65 1.462-1.326 0-.675-.552-1.325-1.462-1.325H2.463C2.207 9.51 2 9.322 2 9.09",clipRule:"evenodd"})]})}),s=n.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:r,...e}));s.displayName="Wind"},60645:(e,l,t)=>{"use strict";t.d(l,{D:()=>s});var a=t(76792),n=t(42292),i=t(23233);let r=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Snowflake"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:[(0,a.jsx)("path",{d:"M8 1a.5.5 0 0 1 .5.5v13a.5.5 0 0 1-1 0v-13A.5.5 0 0 1 8 1"}),(0,a.jsx)("path",{d:"M5.896 1.896a.5.5 0 0 1 .707 0L8 3.293l1.396-1.397a.5.5 0 1 1 .707.708L8 4.707 5.896 2.604a.5.5 0 0 1 0-.708M5.896 13.854a.5.5 0 0 0 .707 0L8 12.457l1.396 1.397a.5.5 0 0 0 .707-.708L8 11.043l-2.104 2.103a.5.5 0 0 0 0 .708M14.062 4.5a.5.5 0 0 1-.183.683l-11.259 6.5a.5.5 0 0 1-.5-.866l11.259-6.5a.5.5 0 0 1 .683.183"}),(0,a.jsx)("path",{d:"M12.234 3.126a.5.5 0 0 1 .353.613l-.51 1.907 1.907.512a.5.5 0 1 1-.26.965l-2.873-.77.77-2.873a.5.5 0 0 1 .613-.354M1.878 9.105a.5.5 0 0 0 .354.612l1.908.511-.512 1.908a.5.5 0 1 0 .966.259l.77-2.874-2.873-.77a.5.5 0 0 0-.613.354M14.062 11.5a.5.5 0 0 1-.683.183L2.12 5.183a.5.5 0 1 1 .5-.866l11.259 6.5a.5.5 0 0 1 .183.683"}),(0,a.jsx)("path",{d:"M14.337 9.23a.5.5 0 0 1-.353.612l-1.908.511.511 1.908a.5.5 0 1 1-.966.259l-.77-2.874 2.874-.77a.5.5 0 0 1 .612.354M3.982 3.251a.5.5 0 0 0-.354.613L4.14 5.77l-1.908.512a.5.5 0 1 0 .259.965l2.873-.77-.77-2.873a.5.5 0 0 0-.612-.354"})]})]})}),s=n.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:r,...e}));s.displayName="Snowflake"},60827:(e,l,t)=>{"use strict";t.r(l),t.d(l,{BlueskyBlock:()=>d,default:()=>c});var a=t(76792),n=t(42292);let i=(0,t(23803).h)("payload:Bluesky:OEmbed");function r(e){try{if(e.startsWith("at://")){let l=e.match(/^at:\/\/([^/]+)\/app\.bsky\.feed\.post\/([^/?#]+)/);if(l){let e=l[1],t=l[2];if(e&&t)return{handle:e,postId:t}}return null}let l=new URL(e).pathname.split("/");if(l.length>=5&&"profile"===l[1]&&"post"===l[3]){let e=l[2],t=l[4];if(e&&t)return{handle:e,postId:t}}return null}catch(e){return null}}async function s(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{let t=r(e);if(!t)return{error:"invalid_url",message:"Invalid Bluesky URL format"};let a=new URL("https://embed.bsky.app/oembed");a.searchParams.set("url",e),i.debug("Fetching Bluesky oEmbed",{url:e,parsedUrl:t,options:l}),l.maxWidth&&a.searchParams.set("maxwidth",l.maxWidth.toString()),l.maxHeight&&a.searchParams.set("maxheight",l.maxHeight.toString());let n=await fetch(a.toString(),{method:"GET",headers:{Accept:"application/json","User-Agent":"wx-next/1.0"}});if(!n.ok)return{error:"api_error",message:"Bluesky API returned ".concat(n.status,": ").concat(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 o(e){let l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=r(e),a=t?"@".concat(t.handle):"Bluesky User";return'\n
\n
\n \n \n \n Bluesky Post\n
\n
\n Post by '.concat(a,'\n
\n \n ').concat(l?'
Thread view enabled
':"","\n
\n ")}let d=e=>{let{entryMethod:l,blueskyURL:t,postId:i,showThread:r=!1}=e,d=(0,n.useRef)(null),[c,u]=(0,n.useState)(!0),[m,h]=(0,n.useState)(null),x=(0,n.useCallback)(()=>"id"===l&&i?null:"url"===l&&t?t:null,[l,i,t]);return((0,n.useEffect)(()=>{(async()=>{let e=x();if(!e){h("No valid Bluesky URL provided"),u(!1);return}if(d.current){u(!0),h(null);try{let l=await s(e,{maxWidth:550,showThread:r});"error"in l?(console.warn("Bluesky oEmbed error:",l),d.current.innerHTML=o(e,r)):d.current.innerHTML=l.html}catch(l){console.error("Failed to load Bluesky embed:",l),d.current.innerHTML=o(e,r)}finally{u(!1)}}})()},[x,r]),c)?(0,a.jsx)("div",{className:"bluesky-embed-loading",style:{border:"1px solid #e1e8ed",borderRadius:"12px",padding:"16px",margin:"16px 0",maxWidth:"550px",background:"#f8f9fa",textAlign:"center"},children:(0,a.jsx)("div",{style:{color:"#536471"},children:"Loading Bluesky post..."})}):m?(0,a.jsxs)("div",{className:"bluesky-embed-error",style:{border:"1px solid #ff6b6b",borderRadius:"12px",padding:"16px",margin:"16px 0",maxWidth:"550px",background:"#fff5f5"},children:[(0,a.jsx)("div",{style:{color:"#d63031",fontWeight:"bold",marginBottom:"8px"},children:"Bluesky Embed Error"}),(0,a.jsx)("div",{style:{color:"#636e72"},children:m})]}):(0,a.jsx)("div",{className:"bluesky-embed-container",ref:d})},c=d},60935:(e,l,t)=>{"use strict";t.r(l),t.d(l,{AirQualityIndexAdminBlock:()=>i,default:()=>r});var a=t(76792);t(42292);var n=t(22901);let i=()=>(0,a.jsx)(n.default,{name:"AirQualityIndex"}),r=i},62647:(e,l,t)=>{"use strict";t.r(l),t.d(l,{TwitterAdminBlock:()=>o,default:()=>d});var a=t(76792),n=t(42292),i=t(8818),r=t(82188),s=t(22901);let o=()=>{let[e,l]=(0,i.kV6)(),t=(0,r.r)(e,!0),[o,d]=(0,n.useState)({tweetURL:null==t?void 0:t.tweetURL,tweetId:null==t?void 0:t.tweetId});return(0,n.useEffect)(()=>{d({tweetURL:null==t?void 0:t.tweetURL,tweetId:null==t?void 0:t.tweetId})},[null==t?void 0:t.tweetURL,null==t?void 0:t.tweetId]),(0,a.jsxs)(s.default,{name:"Twitter",children:[(0,a.jsx)("h4",{children:(()=>{switch(null==t?void 0:t.entryMethod){case"url":return o.tweetURL;case"id":return"Tweet ID: ".concat(o.tweetId);default:return"No tweet specified"}})()}),(0,a.jsx)("div",{style:{paddingTop:".3rem"},children:(0,a.jsx)(i.OcR,{label:"Show Thread",name:"showThread",checked:null==t?void 0:t.showThread,readOnly:!0,onToggle:e=>{l({type:"UPDATE",path:"showThread",value:!e})}})})]})},d=o},63236:(e,l,t)=>{"use strict";t.d(l,{b:()=>r});var a=t(76792);t(42292);var n=t(48260),i=t(71666);let r=e=>{let{className:l,units:t,visibility:r,unitsClassName:s}=e,o=t?(0,i.Bu)(t):null,d=null==o?void 0:o.distance,c="";return c=0===r?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:"0"}),(0,a.jsxs)("span",{className:(0,n.cn)(s),children:[" ",d]})]}):!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,n.cn)(s),children:[" ",d]})]}),(0,a.jsx)("span",{"data-testid":"VisibilityValue",className:(0,n.cn)(l),children:c})}},67496:(e,l,t)=>{"use strict";t.r(l),t.d(l,{CurrentConditionsBlock:()=>z,default:()=>V});var a=t(76792),n=t(42292),i=t(44615),r=t(61e3),s=t(86942),o=t(14124),d=t(76088),c=t(46828),u=t(68751),m=t(48260);let h=e=>{let{children:l,direction:t="horizontal",height:i,width:r,textVariant:s="Display.L",textColor:o="inverse",translateDistance:d,transitionDuration:c="500ms",className:h,transitionClassName:x,isLoading:v,skeletonClassName:p}=e,[g,f]=(0,n.useState)(!1);(0,n.useEffect)(()=>{g||v||setTimeout(()=>{f(!0)},0)},[g,v]);let y="horizontal"===t?"translateX":"translateY";return(0,a.jsx)(u.Ay,{isLoading:v,skeletonClassName:p,elementType:"div",className:(0,m.cn)("w-max overflow-hidden",h),variant:s,color:o,style:{height:i,width:r},children:(0,a.jsx)("span",{className:(0,m.cn)("transform: flex transition-transform",x),style:{transitionDuration:c,flexDirection:"horizontal"===t?"row":"column",transform:g?"".concat(y,"(-").concat(d,")"):"".concat(y,"(0px)")},children:l})})};var x=t(11340);let v="https://s.w-x.co/WeatherImages_Web/WeatherImage_",p=[320,480,640,800],g=[{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}],f={"--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 y=t(98833);let b=function(){let{iconCode:e=44}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=g.find(l=>{var t,a;return null==l||null==(a=l.iconCodes)||null==(t=a.includes)?void 0:t.call(a,e)}),t=g.find(e=>(null==e?void 0:e.name)==="Unknown");return l||t},w=function(){let{width:e=320}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p.reduce((l,t)=>Math.abs(t-e){let{location:l}=e,t=(0,j.c3)("CurrentConditions"),n=(0,k.z)();return(0,a.jsx)(u.Ay,{variant:n?"Title.S":"Title.M",className:"mb-4",children:l?t("locationDisplayName",{presentationName:l.presentationName||""}):(0,a.jsx)(T.Ay,{type:T.ue.default,defaultAnimationStrings:["Location name placeholder"]})})},S=e=>{let{location:l,weatherData:t,forecastData:n,isLoading:i,error:r}=e;return r?(0,a.jsx)(M,{error:r}):(0,a.jsx)(I,{isLoading:i,location:l,weatherData:t,forecastData:n})},I=e=>{let{isLoading:l,location:t,weatherData:n,forecastData:i}=e,r=function(){let{iconCode:e=44,dayPart:l="day",variant:t=0,width:a=800,isSevere:n=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i={src:function(){let{iconCode:e=44,dayPart:l="day",variant:t=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=b({iconCode:e}),n=null==a?void 0:a["".concat(l,"Variants")];if(!n||t>n)return a=b({iconCode:44}),"".concat(v).concat(a.name,".jpg");let i=!!n&&0===t&&((e,l)=>{let t=Math.ceil(e);return Math.floor(Math.random()*(Math.floor(l)-t+1)+t)})(1,n),r="";return i?r="_".concat(i):t&&(r="_".concat(t)),"".concat(v).concat(a.name,"-").concat(l).concat(r,".jpg")}({iconCode:e,dayPart:l,variant:t}),width:w({width:a}),quality:70,format:"pjpg",autoWebP:!0,ratio:"16:9"};return n&&(i.saturation=-100),(0,y.default)(i)}({iconCode:null==n?void 0:n.iconCode,dayPart:(null==n?void 0:n.dayOrNight)==="D"?"day":"night"}),s=l?"--color-white":(e=>Object.keys(f).find(l=>f[l].find(l=>{var t;return null==e||null==(t=e.includes)?void 0:t.call(e,l)}))||"--color-blue-800")(r),o=(0,j.c3)("CurrentConditions");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(A,{location:t}),(0,a.jsx)(C.Zp,{"aria-label":"Current Conditions",radius:"lg",border:"none",variant:"outline",className:"@container bg-cover bg-center bg-no-repeat","data-testid":"current-conditions",style:{backgroundColor:"var(".concat(s,")"),backgroundImage:l?"":"url(".concat(r,")")},children:(0,a.jsx)(C.Wu,{children:(0,a.jsx)("div",{className:"relative",children:(0,a.jsxs)("div",{className:"relative z-10 flex h-full flex-col text-white",children:[(0,a.jsxs)("div",{className:"mb-3 flex items-center gap-1",children:[(0,a.jsx)("div",{className:"flex h-16 w-16 items-center justify-center",children:(0,a.jsx)(x.WxIcon,{isLoading:l,loadingIconClassName:"h-16 w-16",iconCode:(null==n?void 0:n.iconCode)||-1,className:"h-16 w-16","aria-label":null==n?void 0:n.wxPhraseLong,iconTheme:"lightBG"})}),(0,a.jsxs)(h,{isLoading:l,skeletonClassName:"ml-1 h-16 w-22",direction:"vertical",height:"69px",translateDistance:"207px",children:[(0,a.jsx)("span",{children:o("now")}),(0,a.jsx)(N.B,{value:(null==n?void 0:n.temperature)?(null==n?void 0:n.temperature)+2:null}),(0,a.jsx)(N.B,{value:(null==n?void 0:n.temperature)?(null==n?void 0:n.temperature)+1:null}),(0,a.jsx)(u.Ay,{variant:"Display.L",color:"inverse",children:(0,a.jsx)(N.B,{value:null==n?void 0:n.temperature})})]})]}),(0,a.jsx)(u.Ay,{isLoading:l,skeletonClassName:"mt-1 h-6 w-30",variant:"Title.M",color:"inverse",children:null==n?void 0:n.wxPhraseLong}),(0,a.jsxs)(u.Ay,{isLoading:l,skeletonClassName:"mt-3 h-6 w-65",variant:"Body.M",color:"inverse",className:"mt-3","data-testid":"current-conditions-temperatures",children:[o("feelsLike")," ",(0,a.jsx)(N.B,{value:null==n?void 0:n.temperatureFeelsLike})," \xb7"," ",o("dayTempLabel")," ",(0,a.jsx)(N.B,{value:null==i?void 0:i.temperatureMax})," \xb7"," ",o("nightTempLabel")," ",(0,a.jsx)(N.B,{value:null==i?void 0:i.temperatureMin})]}),(0,a.jsx)(c.A,{location:t,showSubheadline:!0,className:"mt-4",headlineClassName:"normal-case"})]})})})})]})},M=e=>{let{error:l}=e;return(0,a.jsx)("div",{className:"overflow-hidden rounded-lg","data-testid":"current-conditions-error",children:(0,a.jsx)("div",{className:"flex min-h-[150px] flex-col bg-white p-8 text-white",children:(0,a.jsx)("div",{className:"flex flex-grow items-center justify-center",children:(0,a.jsx)(u.Ay,{variant:"Display.S",children:(null==l?void 0:l.message)||"Unable to load weather data"})})})})};var _=t(58010),R=t(75302),P=t(32035),L=t(71666),E=t(55198);let D=e=>{let{location:l}=e,{effectiveLocation:t,isLocationLoading:n,locationError:c}=(0,r.s)({location:l}),{weatherData:u,forecastData:m,isLoading:h,error:x}=function(e){var l,t,a,n,r;let c=(0,E.useParams)(),u=null==c?void 0:c.locale,m=(0,R.md)(P.Yt),h=null==(l=(0,L.xP)(m))?void 0:l.code,{data:x,error:v,isLoading:p}=(0,i.Ay)(e?["observations",e.geocode,h]:null,e=>{let[l,t,a]=e;return(0,s.z)({geocode:t,units:a,language:u})},{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:g,error:f,isLoading:y}=(0,i.Ay)(e?["daily-forecast",e.geocode,h]:null,l=>{let[t,a,n]=l;return e?(0,o.v1)({geocode:a,units:n,language:u}):null},{revalidateOnFocus:!1,dedupingInterval:6e4}),b=x?{temperature:x.temperature,temperatureFeelsLike:x.temperatureFeelsLike,wxPhraseLong:x.wxPhraseLong,iconName:d.ICON_CODE_MAP[x.iconCode]||"na",iconCode:x.iconCode,validTimeLocal:x.validTimeLocal,relativeHumidity:x.relativeHumidity,windSpeed:x.windSpeed,windDirectionCardinal:x.windDirectionCardinal,dayOrNight:x.dayOrNight}:void 0,w=g&&g.length>0?{temperatureMax:null!=(n=null==(t=g[0])?void 0:t.calendarDayTemperatureMax)?n:0,temperatureMin:null!=(r=null==(a=g[0])?void 0:a.calendarDayTemperatureMin)?r:0}:void 0;return{weatherData:b,forecastData:w,isLoading:p||!x||y||!g,error:v||f}}(t),v=h||n,p=x||c;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(_.DebugCollector,{componentName:"CurrentConditions",data:{props:{location:l},state:{effectiveLocation:t,isLocationLoading:n,isLoading:v,weatherData:u,forecastData:m,error:p,componentState:p&&"error"||v&&"loading"||"ready"},performance:{renderCount:void 0}}}),(0,a.jsx)(S,{location:t,weatherData:u,forecastData:m,isLoading:v,error:p})]})};var F=t(46593),B=t(44685);let z=e=>{let{locationProvider:l,locationEntry:t}=e,n="specified"===l,{specifiedLocationData:i,specifiedLocationError:r,isSpecifiedLocationLoading:s}=(0,F.v)(n?t:null);return n&&s?(0,a.jsx)("div",{children:"Loading location data..."}):n&&r?(0,a.jsxs)("div",{children:["Error loading location data: ",r.message]}):n&&i&&t?(0,a.jsx)(D,{location:(0,B.I)(i)}):n?null:(0,a.jsx)(D,{})},V=z},68577:(e,l,t)=>{"use strict";t.d(l,{A:()=>O});var a=t(76792),n=t(55198),i=t(61e3),r=t(42292),s=t(75302),o=t(32035),d=t(71666),c=t(76088),u=t(44615),m=t(12962),h=t(36116),x=t(77962),v=t(99838);let p=["rain","freezing_rain"],g=["snow","sleet"],f="#47A25D",y="#65B0C3",b="#DD85A7",w={300:"rain",310:"rain",400:"rain",402:"rain",410:"rain",412:"rain",500:"rain",510:"rain",600:"rain",601:"rain",610:"rain",611:"rain",700:"sleet",701:"sleet",710:"sleet",711:"sleet",800:"freezing_rain",810:"freezing_rain",850:"freezing_rain",900:"rain",910:"rain",950:"rain",1e3:"freezing_rain",1001:"freezing_rain",1002:"freezing_rain",1010:"freezing_rain",1011:"freezing_rain",1012:"freezing_rain",1051:"freezing_rain",1100:"rain",1110:"rain",1140:"rain",1170:"rain",1200:"rain",1201:"rain",1210:"rain",1211:"rain",1240:"rain",1251:"rain",1270:"rain",1300:"snow",1310:"snow",1400:"snow",1410:"snow",1600:"snow",1601:"snow",1610:"snow",1611:"snow",1651:"snow",1800:"sleet",1801:"sleet",1810:"sleet",1811:"sleet",3700:"rain",3710:"rain",3800:"rain",3810:"rain",3900:"rain",3910:"rain",4e3:"rain",4010:"rain",4100:"snow",4110:"snow",4200:"snow",4210:"snow",4300:"snow",4500:"rain",4510:"rain",4600:"rain",4610:"rain",4700:"snow",4710:"snow",4800:"snow",4810:"snow",4900:"rain",4910:"rain",5e3:"snow",5100:"freezing_rain",5101:"freezing_rain",5110:"freezing_rain",5111:"freezing_rain",5200:"sleet",5210:"sleet",5300:"freezing_rain",5301:"freezing_rain",5302:"freezing_rain",5310:"freezing_rain",5311:"freezing_rain",5312:"freezing_rain",5351:"freezing_rain",5400:"snow",5500:"rain",5600:"snow",5610:"snow",5700:"rain",5710:"rain"},j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;switch(!0){case e>1.65:return 9;case e>.72:return 8;case e>.32:return 7;case e>.14:return 6;case e>.06:return 5;case e>.03:return 4;case e>.01:return 3;case e>0:return 2;case 0===e:return .7;default:return 0}},N=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;switch(!0){case e>1.52:return 9;case e>.48:return 8;case e>.17:return 7;case e>.07:return 6;case e>.03:return 5;case e>.02:return 4;case e>.01:return 3;case e>0:return 2;case 0===e:return .7;default:return 0}};var C=t(44936);let T={revalidateOnFocus:!1,dedupingInterval:6e4};var k=t(47421),A=t(69585),S=t(68751),I=t(9198),M=t(48260),_=t(62596),R=t(50772),P=t(21230),L=t(73923),E=t(82170);let D={id:"barBackground",beforeDatasetsDraw(e,l,t){let{ctx:a,chartArea:{top:n},scales:{y:i}}=e;if(!i)return;let r=e.getDatasetMeta(0),s=t.floatPoint||0;r.data.forEach(e=>{var l;let{x:r,width:o}=e.getProps(["x","width"],!0);a.save(),a.fillStyle=t.color||"transparent",function(e,l,t,a,n,i){let r=Math.min(i,a/2,n/2);e.beginPath(),e.moveTo(l+r,t),e.lineTo(l+a-r,t),e.quadraticCurveTo(l+a,t,l+a,t+r),e.lineTo(l+a,t+n-r),e.quadraticCurveTo(l+a,t+n,l+a-r,t+n),e.lineTo(l+r,t+n),e.quadraticCurveTo(l,t+n,l,t+n-r),e.lineTo(l,t+r),e.quadraticCurveTo(l,t,l+r,t),e.closePath(),e.fill()}(a,r-o/2,n,o,i.getPixelForValue(i.min+s)-n,null!=(l=t.borderRadius)?l:8),a.restore()})}},F={id:"extendXAxisLine",afterDraw(e,l,t){var a,n,i,r,s;let{ctx:o,scales:d}=e,c=d.x,u=d.y,m=null!=(a=t.offset)?a:20,h=(null!=(n=null==u?void 0:u.bottom)?n:0)+m;o.save(),o.beginPath(),o.strokeStyle=t.color||"black",o.lineWidth=null!=(i=t.lineWidth)?i:1,o.moveTo((null!=(r=null==c?void 0:c.left)?r:0)-200,h),o.lineTo((null!=(s=null==c?void 0:c.right)?s:0)+200,h),o.stroke(),o.restore()}},B={id:"transitionLines",afterDatasetsDraw(e,l,t){let{ctx:a,scales:{x:n,y:i}}=e;i&&(a.save(),a.lineWidth=1,a.setLineDash([2,2]),(0,E.v)(t.transitionPoints,(l,n)=>{var r;let s=+n,o=e.getDatasetMeta(0),d=o.data[s],c=o.data[s-1];if(!d||!c)return;let{x:u}=d.getProps(["x"],!0),{x:m}=c.getProps(["x"],!0),h=(m+u)/2;a.beginPath(),a.strokeStyle=l,a.moveTo(h,i.top),a.lineTo(h,i.getPixelForValue(i.min+(null!=(r=t.floatPoint)?r:0))),a.stroke()}),a.restore())}},z=e=>{let{data:l,ianaTimeZone:t,locale:n}=e,i=(0,k.c3)("PrecipIntensity");return(0,a.jsxs)("table",{className:"hidden",children:[(0,a.jsx)("caption",{children:i("tableCaption")}),(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:i("time")}),(0,a.jsx)("th",{children:i("precipType")}),(0,a.jsx)("th",{children:i("precipLevel")})]})}),(0,a.jsx)("tbody",{children:null==l?void 0:l.map(e=>0!==e.level?(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,_.P)({date:e.validTimeLocal,locale:n,timeZone:t,minutes:!0})}),(0,a.jsx)("td",{children:e.precipType}),(0,a.jsx)("td",{children:e.level})]},e.validTimeLocal):null)})]})},V=e=>{let{rtl:l,isSamsungTheme:t,radius:n=4,legendTypes:i}=e,s=(0,k.c3)("PrecipIntensity"),o=(0,r.useMemo)(()=>{let e=[{label:s("legendRain"),type:L.PrecipType.RAIN,color:f},{label:s("legendSnow"),type:L.PrecipType.SNOW,color:y},{label:s(t?"samsungLegendMix":"legendMix"),type:L.PrecipType.PRECIP,color:b}];return l?e.reverse():e},[t,l,s]);return(0,a.jsx)("div",{className:"mt-3 flex items-center justify-center gap-6",children:o.map(e=>{let{label:l,type:t,color:r}=e;return(!i||i[t])&&(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("div",{style:{width:2*n,height:2*n,backgroundColor:r},className:"rounded-full"}),(0,a.jsx)("p",{className:"text-xs",children:l})]},t)})})},W=async()=>{let{Chart:e,CategoryScale:l,LinearScale:a,BarController:n,BarElement:i}=await Promise.all([t.e(9645),t.e(675)]).then(t.bind(t,46354));return e.register(l,a,n,i),e},U=(0,r.memo)(e=>{let{chartData:l,hasChartData:t,ianaTimeZone:n,locale:i,rootClass:s,rtl:o=!1,removeTransitionLines:d}=e,c=(0,k.c3)("PrecipIntensity"),u=(0,r.useRef)(null),m=(0,r.useRef)(null),[h,x]=(0,R.r)(e=>eo?[...l].reverse():l,[l,o]),w=(0,r.useMemo)(()=>l.reduce((e,l)=>{let{precipType:t}=l;return e[t]=!0,e},{}),[l]),j=(0,r.useMemo)(()=>{let e=Object.values(L.PrecipType),l=0;for(let t of e)w[t]&&l++;return l>1},[w]),N=(0,r.useMemo)(()=>{let e=v.map(e=>e.level),l=v.map(e=>{let{validTimeLocal:l}=e;return l}),t=v.map(e=>{let{precipType:l}=e;return l===L.PrecipType.RAIN?f:l===L.PrecipType.SNOW?y:b});return{labels:l,datasets:[{label:c("chartTitle"),data:e,backgroundColor:t,borderWidth:0,maxBarThickness:h?4:8,categoryPercentage:1,stack:"stack1",borderRadius:12,borderSkipped:!1}]}},[h,v,c]),C=(0,r.useMemo)(()=>({responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!1},transitionLines:{floatPoint:.5,transitionPoints:d?void 0:v.reduce((e,l,t)=>{var a;if(t>0&&l.level>0&&v[t-1]&&l.precipType!==(null==(a=v[t-1])?void 0:a.precipType)){let a=b;p.includes(l.precipType)?a=f:g.includes(l.precipType)&&(a=y),e[t]=a}return e},{})},barBackground:{color:"#eeeeee",borderRadius:12,floatPoint:.5},extendXAxisLine:{color:"#eeeeee",lineWidth:1,offset:-2},datasets:{bar:{minBarLength:10}}},scales:{x:{stacked:!0,grid:{display:!0,drawOnChartArea:!1,drawTicks:!0,tickColor:"#676767",tickLength:3,tickWidth:1,tickBorderDashOffset:50,offset:!1},border:{display:!1},ticks:{major:{enabled:!0},display:!0,maxRotation:0,minRotation:0,autoSkip:!1,font:{size:h?12:14},color:"#676767",callback:function(e,l){var t;let a=new Date((null==(t=this.chart.data.labels)?void 0:t[l])||"");return 0===a.getMinutes()?(0,_.P)({date:a,locale:i,timeZone:n,showShortDayperiod:!0}):h?null:""}}},y:{stacked:!0,min:-.5,max:9,position:o?"right":"left",grid:{display:!1,drawBorder:!1},ticks:{count:10,autoSkip:!1,display:!0,crossAlign:"far",font:{size:h?12:14},callback:function(e,l){return 2===l?c("chartLight"):8===l?c("chartHeavy"):""}},border:{display:!1}}}}),[d,v,h,o,c,i,n]);return((0,r.useEffect)(()=>{let e=!1;return!async function(){var l;let t=await W(),a=null==(l=u.current)?void 0:l.getContext("2d");!e&&a&&t&&(m.current=new t(a,{type:"bar",data:N,options:C,plugins:[D,F,B]}))}(),()=>{var l;e=!0,null==(l=m.current)||l.destroy()}},[N,C]),t)?(0,a.jsxs)("div",{ref:x,className:(0,M.cn)("@container/precipChart",s),dir:o?"rtl":void 0,children:[(0,a.jsx)(z,{data:l,ianaTimeZone:n,locale:i}),(0,a.jsx)("div",{className:(0,M.cn)("relative h-26 text-sm text-gray-500 @md/precipChart:h-30",o?"pr-2 @md/precipChart:pr-3 @xl/precipChart:pr-4":"pl-2 @md/precipChart:pl-3 @xl/precipChart:pl-4"),children:(0,a.jsx)("canvas",{ref:u})}),j&&(0,a.jsx)(V,{rtl:o,legendTypes:w,isSamsungTheme:!1})]}):null}),H=e=>{let{location:l,locale:t,onlyChart:n,isLoading:i,chartData:r,hasChartData:s,rtl:o,removeTransitionLines:d,insightTextLong:c}=e,u=(0,k.c3)("PrecipIntensity");if(i||!i&&!s)return null;let m=()=>(0,a.jsx)(U,{chartData:r,hasChartData:s,ianaTimeZone:null==l?void 0:l.ianaTimeZone,locale:t,rtl:o,removeTransitionLines:d});return n?m():s&&(0,a.jsxs)(A.Zp,{className:"relative min-h-[100px] overflow-hidden","aria-label":u("chartTitle"),children:[(0,a.jsxs)(A.Wu,{className:"p-0",children:[c&&(0,a.jsxs)(S.Ay,{variant:"Body.M",className:"mb-2",children:[(0,a.jsx)("span",{className:"font-bold",children:"Outlook:"})," ",c]}),m()]}),l&&(0,a.jsx)(I.default,{className:"absolute top-0 right-0 bottom-0 left-0",href:"/weather/hourbyhour/l/".concat(l.placeId),"aria-label":u("viewHourlyForecast"),children:"\xa0"})]})},O=e=>{var l;let{location:t,onlyChart:f,initializing:y,initialError:b}=e,k=null==(l=(0,n.useParams)())?void 0:l.locale,{effectiveLocation:A,isLocationLoading:S}=(0,i.s)({location:t}),{loadingForecast:I,chartData:M,hasChartData:_,insightTextLong:R}=((e,l)=>{let t=(0,s.md)(o.Yt),a=(0,d.xP)(t)||d.AF,n=a.code,i=(0,x.A)(),f="KR"===i,y=f&&(null==e?void 0:e.countryCode)==="KR",{data:b,isLoading:k}=(0,u.Ay)(e&&y?["get-hourly-forecast",e.geocode,n,l,f?i:void 0]:null,e=>{let[l,t,a,n,i]=e;return(0,m.$c)({geocode:t,units:a,language:n,cscCountryCode:i,duration:c.HourlyForecastDuration.TWO_DAY})},T),{data:A,isLoading:S}=(0,u.Ay)(e&&!y?["get-fifteen-minute-forecast",e.geocode,n,l]:null,e=>{let[l,t,a,n]=e;return(0,h.FA)({geocode:t,units:a,language:n})},T),I=y?b:A,M=(0,r.useMemo)(()=>((e,l)=>{if(!(null==e?void 0:e.length))return[];let t=e.map(e=>(0,v.$)(e.validTimeLocal));return l?t.slice(0,7):t})(I,y),[I,y]),_=(0,r.useMemo)(()=>((e,l,t,a)=>e?(a?(null==e?void 0:e.slice(0,7))||[]:e||[]).map((e,n)=>{let i=e.iconCodeExtend,r=e.precipType,s=(e=>{let{precipRate:l,iconCodeExtend:t,precipType:a,unitsSystem:n}=e,i=(null==n?void 0:n.precip)!=="in"?Number((l/25.4).toFixed(2)):l,r="precip"===a||0===l?w[t]:a;switch(!0){case p.includes(r):return j(i);case g.includes(r):return N(i);default:return 0}})({precipRate:a?e.qpf:e.precipRate,iconCodeExtend:i,precipType:r,unitsSystem:l});return{precipType:r,validTimeLocal:t[n],level:s}}):Array(7).fill({precipType:"",validTimeLocal:"",level:0}))(I,a,M,y)||[],[I,y,M,a]),R=(0,r.useMemo)(()=>(e=>!!(null==e?void 0:e.find(e=>{let{level:l}=e;return l>0})))(_),[_]),{loadingInsight:P,insightHeadline:L,insightTextLong:E}=(0,C.p)(e,l);return{loadingForecast:k||S,chartData:_,hasChartData:R,loadingInsight:P,insightHeadline:L,insightTextLong:E}})(A,k);return b?null:(0,a.jsx)(H,{location:A,locale:k,onlyChart:f,isLoading:y||S||I,chartData:M,hasChartData:_,insightTextLong:R})}},69474:(e,l,t)=>{"use strict";t.d(l,{W:()=>c});var a=t(76792),n=t(58196),i=t(60645),r=t(51254),s=t(48260),o=t(28004),d=t(73923);let c=e=>{let{precipChance:l=null,precipType:t,showIcon:c=!0,displayMode:u="text",className:m,iconClassName:h,textClassName:x,progressClassName:v,progressBarClassName:p}=e;if((0,n.g)(l))return"--";let g=t===d.PrecipType.SNOW?i.D:r.Y;return(0,a.jsxs)(a.Fragment,{children:[("text"===u||"both"===u)&&(0,a.jsxs)("span",{className:(0,s.cn)(m,x),children:[c&&(0,a.jsx)(g,{className:(0,s.cn)("size-4",h)}),(0,a.jsx)(o.N,{value:l,className:"align-middle"})]}),("progress"===u||"both"===u)&&(0,a.jsxs)("div",{className:(0,s.cn)("relative inline-block h-5 w-26 overflow-hidden rounded-xl bg-[#e9e9e9] align-middle",m,v),children:[(0,a.jsx)("div",{className:(0,s.cn)("bg-brand-100 relative h-full w-full rounded-xl",p),style:{left:"".concat(l-100,"%")}}),(0,a.jsxs)("div",{className:"absolute top-0 bottom-0 flex h-full w-full items-center p-1",children:[c&&(0,a.jsx)(g,{className:(0,s.cn)("size-3.25",h)}),(0,a.jsx)(o.N,{value:l,className:"text-sm"})]})]})]})}},69914:(e,l,t)=>{"use strict";t.d(l,{V:()=>r,w:()=>i});var a=t(79315);let n=(e,l,t,n)=>{let{cDate:i,cTimeZone:r}=(0,a.r)({date:e,locale:l,timeZone:t}),s=null!=n?n:{year:"numeric",month:"2-digit",day:"2-digit",weekday:"short"};return s.timeZone=r,{cDate:i,cTimeZone:r,formatOptions:s}},i=(e,l,t,a)=>{if(!e)return"";let{cDate:i,formatOptions:r}=n(e,l,t,a);return new Intl.DateTimeFormat(l,r).format(i)},r=(e,l,t,a)=>{if(!e)return[];let{cDate:i,formatOptions:r}=n(e,l,t,a);return new Intl.DateTimeFormat(l,r).formatToParts(i)}},70336:(e,l,t)=>{"use strict";t.d(l,{Wu:()=>s,Zp:()=>i,aR:()=>r});var a=t(76792);t(42292);var n=t(48260);function i(e){let{className:l,...t}=e;return(0,a.jsx)("div",{"data-slot":"card",className:(0,n.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl py-6",l),...t})}function r(e){let{className:l,...t}=e;return(0,a.jsx)("div",{"data-slot":"card-header",className:(0,n.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",l),...t})}function s(e){let{className:l,...t}=e;return(0,a.jsx)("div",{"data-slot":"card-content",className:(0,n.cn)("px-6",l),...t})}},73923:(e,l)=>{"use strict";var t,a,n,i,r;Object.defineProperty(l,"__esModule",{value:!0}),l.PrecipIntensityCode=l.PrecipTypeCode=l.ThunderCategory=l.PrecipType=l.MoonPhaseCode=void 0,function(e){e.WANING_GIBBOUS="WNG",e.WAXING_CRESCENT="WXC",e.FIRST_QUARTER="FQ",e.WANING_CRESCENT="WNC",e.LAST_QUARTER="LQ",e.FULL="F",e.WAXING_GIBBOUS="WXG",e.NEW="N"}(t||(l.MoonPhaseCode=t={})),function(e){e.RAIN="rain",e.SNOW="snow",e.PRECIP="precip"}(a||(l.PrecipType=a={})),function(e){e.NO_THUNDER="0",e.THUNDER_POSSIBLE="1",e.THUNDER_EXPECTED="2",e.SEVERE_THUNDERSTORMS_POSSIBLE="3",e.SEVERE_THUNDERSTORMS_LIKELY="4",e.HIGH_RISK_OF_SEVERE_THUNDERSTORMS="5"}(n||(l.ThunderCategory=n={})),function(e){e[e.NONE=0]="NONE",e[e.RAIN=1]="RAIN",e[e.SNOW=2]="SNOW",e[e.FREEZING_RAIN=3]="FREEZING_RAIN",e[e.THUNDER=4]="THUNDER",e[e.SLEET=5]="SLEET",e[e.HAIL=6]="HAIL"}(i||(l.PrecipTypeCode=i={})),function(e){e[e.NONE=0]="NONE",e[e.VERY_LIGHT=1]="VERY_LIGHT",e[e.LIGHT=2]="LIGHT",e[e.MODERATE=3]="MODERATE",e[e.HEAVY=4]="HEAVY"}(r||(l.PrecipIntensityCode=r={}))},74130:(e,l,t)=>{"use strict";t.r(l),t.d(l,{CTABlock:()=>i,default:()=>r});var a=t(76792);t(42292);var n=t(22627);let i=e=>{let{title:l,subTitle:t,subText:i,ctaStyle:r,media:s,buttonText:o,linkUrl:d,openInNewTab:c,backgroundColor:u}=e,m=void 0!=s.url?s.url:"string"==typeof s?s:null;return(0,a.jsx)("section",{className:"not-prose @container mx-auto w-full max-w-4xl rounded-md ".concat({white:"bg-white","light-gray":"bg-gray-100","brand-blue":"bg-blue-500",accent:"bg-accent"}[u||"white"]," p-5 shadow-2xl"),children:(0,a.jsx)("div",{className:"cta-block ".concat(r),children:(0,a.jsxs)("div",{className:"cta-content text-black",children:[(0,a.jsx)("h2",{className:"mb-6 text-2xl font-bold",children:l}),m&&(0,a.jsx)("a",{href:d,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,className:"mb-4 block overflow-hidden rounded-lg",children:(0,a.jsx)("div",{className:"relative w-full",children:(0,a.jsx)(n.A,{src:m,alt:l})})}),t&&(0,a.jsx)("h2",{className:"mb-2 text-lg font-bold",children:t}),i&&(0,a.jsx)("p",{className:"mb-4",children:i}),"standard"===r&&(0,a.jsx)("div",{className:"mt-4 flex justify-end",children:(0,a.jsx)("a",{href:d,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,className:"inline-block rounded-lg bg-black px-6 py-3 text-white transition-colors hover:bg-gray-800",children:o||"Learn More"})})]})})})},r=i},74223:(e,l,t)=>{"use strict";t.r(l),t.d(l,{DailyForecastBlock:()=>W,default:()=>U});var a=t(76792),n=t(44685),i=t(46593),r=t(42292),s=t(47421),o=t(55198),d=t(61e3),c=t(99530);let u=function(e,l){let t=(0,c.G)();return t?t.variant(e,l):l};var m=t(27370),h=t(48260),x=t(75302),v=t(32035),p=t(71666),g=t(68751),f=t(81217),y=t(55406),b=t(82903),w=t(69474),j=t(11340),N=t(25895),C=t(76088);let T=["relativeHumidity","uvIndex","sunrise","sunset"],k=["relativeHumidity","uvIndex","moonrise","moonset","moonPhase"],A=e=>{let{data:l,locale:t,validTime:n}=e,i=(0,s.c3)("DailyForecast"),r=(0,x.md)(v.Yt),o=(0,p.xP)(r),d=l.dayOrNight===C.DayOrNight.DAY,c=d?"cols-start-1":"cols-start-2";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:c+" row-start-1 mb-4",children:[(0,a.jsxs)("div",{className:"mb-2 flex justify-between gap-2",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)(g.Ay,{children:[(0,a.jsx)("span",{className:"font-bold",children:n})," | ",i(d?"day":"night")]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(g.Ay,{variant:"Title.XL",elementType:"span",children:(0,a.jsx)(y.B,{value:l.temperature})}),(0,a.jsx)(j.WxIcon,{iconCode:l.iconCode,iconCodeExtend:l.iconCodeExtend,className:"size-11"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col justify-end gap-1",children:[(0,a.jsx)(w.W,{precipChance:l.precipChance,precipType:l.precipType,iconClassName:"mr-1"}),(0,a.jsx)(f.Z,{windSpeed:l.windSpeed,windDirectionCardinal:l.windDirectionCardinal,units:o.code,iconClassName:"mr-1",cardinalBeforeSpeed:!0,useWindIcon:!0})]})]}),(0,a.jsx)(g.Ay,{children:l.narrative})]}),(0,a.jsx)("div",{className:c+" row-start-2 mb-4",children:(0,a.jsx)(N.A,{dataPoints:l,fields:d?T:k,locale:t,columns:2})})]})};var S=t(69914);let I=(e,l,t)=>{var a,n;if(!e)return"";let i=(0,S.V)(e,l,t),r=null==(a=i.find(e=>"day"===e.type))?void 0:a.value,s=null==(n=i.find(e=>"weekday"===e.type))?void 0:n.value;return"".concat(s," ").concat(r)},M=e=>{let{dailyForecast:l,locale:t,timeZone:n,itemIndex:i,isKoreaCscLocation:o,locationDayDate:d}=e,c=(0,x.md)(v.Yt),u=(0,p.xP)(c),m=(0,s.c3)("DailyForecast"),h=l.daypart[0],N=l.daypart[1],C=null!=h?h:N,T=null==C?void 0:C.wxPhraseLong,k=(null==l?void 0:l.validTimeLocal)&&I(l.validTimeLocal,t,n),S=(0,r.useMemo)(()=>o?d===k?m("today"):k:0===i&&(null==C?void 0:C.daypartName)?null==C?void 0:C.daypartName:k,[o,i,d,null==C?void 0:C.daypartName,k,m]);return k?(0,a.jsxs)(b.As,{value:l.validTimeLocal||"",className:"border-grey-500 @container/dailyItem gap-1 overflow-hidden border-b py-3",children:[(0,a.jsx)(b.$m,{className:"items-center gap-2 p-0",iconClassName:"size-4",triggerContent:(0,a.jsxs)("div",{className:"flex w-full items-center justify-between gap-1 [&>.openHide]:group-data-[state=open]:invisible",children:[(0,a.jsx)("div",{className:"min-w-[60px]",children:(0,a.jsx)(g.Ay,{className:"whitespace-nowrap group-data-[state=open]:font-bold @max-xs/dailyItem:text-sm",children:S})}),(0,a.jsx)("div",{className:"openHide basis-[90px]",children:(0,a.jsxs)(g.Ay,{variant:"Body.M",elementType:"span",className:"whitespace-nowrap",children:[(0,a.jsx)(g.Ay,{variant:"Body.L.Bold",elementType:"span",children:(0,a.jsx)(y.B,{value:l.temperatureMax})})," / ",(0,a.jsx)(y.B,{value:l.temperatureMin})]})}),(0,a.jsxs)("div",{className:"openHide relative flex h-6 items-center",children:[(0,a.jsx)(j.WxIcon,{iconCode:null==C?void 0:C.iconCode,className:"lightBG size-7",size:"lg",iconTheme:"lightBG","aria-label":T||"Weather condition ".concat(null==C?void 0:C.iconCode)}),(0,a.jsx)(g.Ay,{variant:"Body.M",className:"min-w-[200px] pl-1.5 @max-xl/dailyItem:hidden",children:T})]}),(0,a.jsx)("div",{className:"openHide basis-[60px]",children:(0,a.jsx)(w.W,{precipChance:null==C?void 0:C.precipChance,className:"whitespace-nowrap",iconClassName:"size-3"})}),(0,a.jsx)("div",{className:"openHide basis-[76px]",children:(0,a.jsx)(g.Ay,{elementType:"div",children:(0,a.jsx)(f.Z,{windSpeed:null==C?void 0:C.windSpeed,windDirectionCardinal:null==C?void 0:C.windDirectionCardinal,units:u.code,displayMode:"directional",className:"whitespace-nowrap",iconClassName:"size-3 @md/dailyItem:size-4"})})})]})}),(0,a.jsxs)(b.ub,{className:"mt-2 block auto-cols-[1fr_1fr] gap-x-6 @md/dailyItem:grid @xl/dailyItem:gap-x-8",children:[h&&(0,a.jsx)(A,{data:h,locale:t,validTime:k}),N&&(0,a.jsx)(A,{data:N,locale:t,validTime:k})]})]}):null};var _=t(22712);let R=e=>{let{skeletonColumns:l}=e;return(0,a.jsx)(a.Fragment,{children:Array(l).fill("").map((e,l)=>(0,a.jsx)("div",{className:"border-grey-500 gap-1 border-b py-3",children:(0,a.jsx)(_.A,{skeletonClassName:"mt-0.75 w-full "+(0===l?"h-91":"h-4")})},"daily-forecast-skel-".concat(l)))})};var P=t(69585),L=t(9198);let E=e=>{var l;let{location:t,isLoading:n,error:i,dailyForecasts:o,locale:d,isKoreaCscLocation:c,locationTime:u,canToggleMultipleItems:x,ctaText:v,ctaLink:p,reorderModule:f,simplifiedVersion:y}=e,w=(0,s.c3)("DailyForecast"),j=(null==t?void 0:t.ianaTimeZone)||"America/New_York",N=(0,r.useMemo)(()=>j?I(u,d,j):"",[d,j,u]),C=null==o||null==(l=o[0])?void 0:l.validTimeLocal;return(0,a.jsxs)(P.Zp,{className:(0,h.cn)("not-prose @container/daily",f?"-order-1":"order-0"),"aria-label":w("dailyForecast"),"data-testid":"daily-forecast",children:[(0,a.jsx)(P.aR,{text:w("dailyForecast")}),(0,a.jsx)(P.Wu,{className:"p-0",children:i?(0,a.jsx)("div",{className:"flex h-64 items-center justify-center p-6",children:(0,a.jsx)(g.Ay,{variant:"Display.S",children:(null==i?void 0:i.message)||w("unableToLoadData")})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.nD,{...x?{type:"multiple",defaultValue:C?[C]:void 0}:{type:"single",defaultValue:C},children:n?(0,a.jsx)(R,{skeletonColumns:y?4:15}):null==o?void 0:o.map((e,l)=>(0,a.jsx)(M,{itemIndex:l,dailyForecast:e,locale:d,timeZone:j,isKoreaCscLocation:c,locationDayDate:N},e.validTimeLocal))},C),p&&v&&(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(m.$n,{"data-testid":"next-48-hours",asChild:!0,children:(0,a.jsx)(L.default,{href:p,children:v})})})]})})]})};var D=t(44615),F=t(14124),B=t(99838),z=t(77962);let V=e=>{let{location:l,simplifiedVersion:t,initializing:n,initialError:i}=e,c=(0,o.useParams)(),m=null==c?void 0:c.locale,h=(0,s.c3)("DailyForecast"),{value:g}=u("reorder-current-conditions-and-forecast","control"),{effectiveLocation:f,isLocationLoading:y}=(0,d.s)({location:l}),{dailyForecasts:b,error:w,isLoading:j,isKoreaCscLocation:N,locationTime:T}=((e,l)=>{var t;let a=(0,o.useParams)(),n=null==a?void 0:a.locale,i=(0,x.md)(v.Yt),s=null==(t=(0,p.xP)(i))?void 0:t.code,d=(0,z.A)(),c="KR"===d,u=c&&(null==e?void 0:e.countryCode)==="KR",m=null==e?void 0:e.ianaTimeZone,h=(0,r.useMemo)(()=>{let e;return m?(e=new Date,(0,B.$)(new Intl.DateTimeFormat("en-US",{timeZone:m,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZoneName:"longOffset"}).format(new Date(e)))):""},[m]),{data:g,error:f,isLoading:y}=(0,D.Ay)(e?["get-daily-forecast",e.geocode,l?C.ForecastDuration.THREE_DAY:C.ForecastDuration.FIFTEEN_DAY,s,n,c?d:void 0]:null,e=>{let[l,t,a,n,i,r]=e;return(0,F.v1)({geocode:t,units:n,duration:a,language:i,cscCountryCode:r})},{revalidateOnFocus:!0,dedupingInterval:6e4});return{dailyForecasts:(0,r.useMemo)(()=>l?null==g?void 0:g.slice(0,4):g,[g,l]),error:f,isLoading:y,isKoreaCscLocation:u,locationTime:h}})(f,t);return(0,a.jsx)(E,{location:f,isLoading:n||j||y||!(null==b?void 0:b.length),error:i||w,dailyForecasts:b,locale:m,isKoreaCscLocation:N,locationTime:T,canToggleMultipleItems:!t,ctaText:t?h("bottomCtaButton"):void 0,ctaLink:t?"/weather/tenday/l/".concat((null==f?void 0:f.placeId)||(null==c?void 0:c.locId)):void 0,reorderModule:"treatment"===g,simplifiedVersion:t})},W=e=>{let{locationProvider:l,locationEntry:t,simplifiedVersion:r}=e,s="specified"===l,{specifiedLocationData:o,specifiedLocationError:d,isSpecifiedLocationLoading:c}=(0,i.v)(s?t:null),u=s&&o&&t?(0,n.I)(o):void 0;return(0,a.jsx)(V,{location:u,simplifiedVersion:null!=r&&r,initializing:s&&c,initialError:s?d:void 0})},U=W},75782:(e,l,t)=>{"use strict";t.r(l),t.d(l,{PrecipIntensityBlock:()=>s,default:()=>o});var a=t(76792),n=t(46593),i=t(44685),r=t(68577);let s=e=>{let{locationEntry:l,locationProvider:t}=e,s="specified"===t,{specifiedLocationData:o,specifiedLocationError:d,isSpecifiedLocationLoading:c}=(0,n.v)(l),u=s&&o&&l?(0,i.I)(o):void 0;return(0,a.jsx)(r.A,{location:u,initializing:s&&c,initialError:s?d:void 0})},o=s},75848:(e,l,t)=>{"use strict";t.d(l,{K:()=>s});var a=t(76792),n=t(42292),i=t(23233);let r=(0,n.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"humidity"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{fillRule:"evenodd",d:"M8 13a3.5 3.5 0 0 0 3.5-3.5c0-.59-.276-1.34-.701-2.13-.309-.573-.637-1.068-.907-1.475a26 26 0 0 1-.267-.406 77 77 0 0 1-.564-.9c-.151-.244-.281-.453-.502-.796a43 43 0 0 1-.556-.885c-.14.229-.318.52-.55.883-.238.37-.371.587-.538.86-.13.212-.28.456-.515.832q-.159.25-.35.531c-.257.382-.549.816-.841 1.348C4.78 8.139 4.5 8.886 4.5 9.5A3.5 3.5 0 0 0 8 13m0 1a4.5 4.5 0 0 0 4.5-4.5c0-1.486-1.16-3.231-1.797-4.19q-.136-.206-.234-.358a80 80 0 0 1-.552-.88c-.16-.258-.3-.484-.518-.821-.243-.376-.426-.674-.57-.91-.425-.693-.514-.837-.829-.837s-.395.133-.814.822c-.144.237-.328.54-.575.925-.24.373-.382.606-.556.889-.131.214-.28.457-.503.812-.078.125-.18.276-.296.449C4.606 6.37 3.5 8.017 3.5 9.5A4.5 4.5 0 0 0 8 14",clipRule:"evenodd"}),(0,a.jsx)("path",{d:"M12.5 9.5a4.48 4.48 0 0 1-1.107 2.957L4.845 6.025c.283-.443.545-.814.707-1.073.517-.825.638-1.045 1.059-1.701.966-1.507.967-1.747 1.389-1.747s.438.259 1.399 1.747c.413.64.55.883 1.07 1.701S12.5 7.804 12.5 9.5"})]})]})}),s=n.forwardRef((e,l)=>(0,a.jsx)(i.h,{ref:l,icon:r,...e}));s.displayName="Humidity"},76159:(e,l,t)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getHourlyAirQualityForecast=s;let a=t(30253),n=t(17681),i=t(36762),r=t(35181);async function s(e){let l=(0,a.getHourlyAirQualityForecastUrlConfig)(e),t=(0,n.urlFrom)(l),s=await fetch(t,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return function(e){let l=e.globalairquality,t={validTimeGmt:l.validTimeGmt,airQualityIndex:l.airQualityIndex,airQualityCategory:l.airQualityCategory,airQualityCategoryIndex:l.airQualityCategoryIndex,airQualityCategoryIndexColor:l.airQualityCategoryIndexColor,primaryPollutant:l.primaryPollutant},a=(0,r.createTransformer)((e,t)=>{var a,n;let i=e=>{var a,n,i,r;let s=l.pollutants[e];if(s)return{name:s.name,phrase:s.phrase,amount:null!=(a=s.amount[t])?a:0,unit:s.unit,category:null!=(n=s.category[t])?n:"",categoryIndex:null!=(i=s.categoryIndex[t])?i:0,index:null!=(r=s.index[t])?r:0}};return{...e,pollutants:{CO:i("CO"),NO2:i("NO2"),O3:i("O3"),PM10:i("PM10"),PM2_5:i("PM2.5"),SO2:i("SO2")},messages:{general:null!=(a=l.messages.General[t])?a:{title:"",text:""},sensitiveGroup:null!=(n=l.messages["Sensitive Group"][t])?n:{title:"",text:""}}}})(t);return{latitude:l.latitude,longitude:l.longitude,source:l.source,disclaimer:l.disclaimer,expireTimeGmt:l.expireTimeGmt,forecast:a}}(await (0,i.handleFetchResponse)(s))}},78782:(e,l,t)=>{"use strict";l.x=r;let a=t(75207),n=t(17681),i=t(36762);async function r(e){let l=(0,a.getTropicalObservationsCurrentPositionUrlConfig)(e),t=(0,n.urlFrom)(l),r=await fetch(t,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(0,i.handleFetchResponse)(r)}},79791:(e,l,t)=>{"use strict";t.d(l,{Ay:()=>r,ue:()=>i});var a=t(76792);t(42292);var n=t(48260),i=function(e){return e.default="default",e}({});let r=e=>{let l,{type:t,defaultAnimationStrings:i}=e;return("default"===t&&i&&(l=()=>i.map(e=>(0,a.jsx)("span",{"data-nosnippet":!0,className:(0,n.cn)("animate-pulse","bg-gray-200","text-transparent","rounded-sm","box-decoration-clone"),children:e},e))),l)?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(l,{})}):null}},81217:(e,l,t)=>{"use strict";t.d(l,{Z:()=>h});var a=t(76792),n=t(42292),i=t(48260),r=t(3916),s=t(60393),o=t(71666);let d={N:0,NNE:22.5,NE:45,ENE:67.5,E:90,ESE:112.5,SE:135,SSE:157.5,S:180,SSW:202.5,SW:225,WSW:247.5,W:270,WNW:292.5,NW:315,NNW:337.5},c=e=>{let{windDirection:l,windDirectionCardinal:t,iconClassName:n,iconColor:o,displayWindDirectionIcon:c,displayMode:u,afterSpeed:m,useWindIcon:h}=e;if(!l&&!t)return null;let x=((e,l)=>null!=e&&Number.isFinite(e)?e:l?d[l]:void 0)(l,t);if(!("directional"===u||"directionalAndCardinal"===u||void 0===u&&c||h)||!h&&!Number.isFinite(x))return null;let v=h?s.Z:r.y;return(0,a.jsx)(v,{className:(0,i.cn)("inline-block size-4 align-middle",m?"ml-0.5":"mr-0.5",n),color:o,style:h?void 0:{transform:"rotate(".concat(x,"deg)")},"aria-label":"Wind direction icon","data-testid":"WindDirectionIcon"})},u=e=>{let{windDirection:l,windDirectionCardinal:t,cardinalClassName:n,displayWindDirectionIcon:i,displayMode:r,beforeSpeed:s}=e;return(l||t)&&("cardinal"===r||"directionalAndCardinal"===r||void 0===r&&!i)&&t?(0,a.jsxs)("span",{className:n,children:[!s&&" ",t,s&&" "]}):null},m=e=>{let{units:l,windUnitClass:t}=e,n=l?(0,o.Bu)(l):null,r=null==n?void 0:n.speed;return(0,a.jsx)("span",{className:(0,i.cn)(t),children:r})},h=(0,n.memo)(e=>{let{windSpeed:l,units:t,className:n,windDirection:r,windDirectionCardinal:s,windSpeedClass:o,windUnitClass:d,iconClassName:h,iconColor:x,cardinalClassName:v,iconAfterSpeed:p,cardinalBeforeSpeed:g,spaceWindSpeedAndUnit:f=!0,displayWindDirectionIcon:y=!1,displayMode:b,useWindIcon:w}=e,j=(0,a.jsx)(c,{windDirection:r,windDirectionCardinal:s,iconClassName:h,iconColor:x,displayWindDirectionIcon:y,displayMode:b,afterSpeed:p,useWindIcon:w}),N=(0,a.jsx)(u,{windDirection:r,windDirectionCardinal:s,displayWindDirectionIcon:y,displayMode:b,beforeSpeed:g,cardinalClassName:v});return(0,a.jsxs)("span",{"data-testid":"Wind",className:(0,i.cn)(n),children:[!p&&j,g&&N,Number.isFinite(l)&&t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:(0,i.cn)(o),children:l}),f&&" ",(0,a.jsx)(m,{units:t,windUnitClass:d})]}):"--",!g&&N,p&&j]})})},82255:(e,l,t)=>{"use strict";t.r(l),t.d(l,{BuyButtonAdminBlock:()=>c,default:()=>u});var a=t(76792),n=t(42292),i=t(8818),r=t(82188),s=t(10298),o=t(22901),d=t(9198);let c=()=>{let[e]=(0,i.kV6)(),l=(0,r.r)(e,!0),[t,c]=(0,n.useState)({label:(null==l?void 0:l.label)||"Button Label",url:(null==l?void 0:l.url)||"#",variant:(null==l?void 0:l.variant)||"bg-gray-900",inline:(null==l?void 0:l.inline)||!1,isAffiliate:(null==l?void 0:l.isAffiliate)!==!1});(0,n.useEffect)(()=>{c({label:(null==l?void 0:l.label)||"Button Label",url:(null==l?void 0:l.url)||"#",variant:(null==l?void 0:l.variant)||"bg-gray-900",inline:(null==l?void 0:l.inline)||!1,isAffiliate:(null==l?void 0:l.isAffiliate)!==!1})},[null==l?void 0:l.label,null==l?void 0:l.url,null==l?void 0:l.variant,null==l?void 0:l.inline,null==l?void 0:l.isAffiliate]);let u=t.isAffiliate?"nofollow noopener noreferrer":"noopener";return(0,a.jsxs)(o.default,{name:"Buy Button",children:[(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("span",{className:"mb-1 block text-xs",style:{color:"var(--theme-elevation-500)"},children:"Preview:"}),(0,a.jsx)("div",{className:t.inline?"inline-block":"block",children:(0,a.jsx)(d.default,{href:t.url,target:"_blank",rel:u,onClick:e=>e.preventDefault(),children:(0,a.jsx)(s.$n,{variant:(e=>"string"==typeof e&&e&&["bg-brand-200","bg-brand-300","bg-yellow-400","bg-green-600","bg-violet-500","bg-gray-900"].includes(e)?e:"bg-gray-900")(t.variant),inline:!0,className:"cursor-pointer whitespace-nowrap",children:t.label||"Button Label"})})})]}),(0,a.jsxs)("div",{className:"mt-3 text-xs",style:{color:"var(--theme-elevation-500)"},children:[(0,a.jsxs)("div",{className:"mb-1 flex items-center justify-between",children:[(0,a.jsx)("span",{children:"Display:"}),(0,a.jsx)("span",{className:"font-medium",children:t.inline?"Inline":"Block"})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("span",{children:"Link type:"}),(0,a.jsx)("span",{className:"font-medium",children:t.isAffiliate?"Affiliate (nofollow)":"Standard"})]})]})]})},u=c},82304:(e,l)=>{"use strict";l.J3=l.Ny=l.rn=void 0,l.rn="daily-newsletters-1",l.Ny="marketing-emails-1",l.J3=[{subscriptionGroupName:l.rn,subscriptionGroupId:"",isSubscribed:!1,attributes:{location:""}},{subscriptionGroupName:l.Ny,subscriptionGroupId:"",isSubscribed:!1}]},82442:(e,l,t)=>{"use strict";t.r(l),t.d(l,{BuyButtonBlock:()=>r,default:()=>s});var a=t(76792);t(42292);var n=t(10298),i=t(9198);let r=e=>{let{label:l,url:t,variant:r="bg-gray-900",inline:s=!1,isAffiliate:o=!0}=e;return(0,a.jsx)("div",{className:s?"inline-block":"block",children:(0,a.jsx)(i.default,{href:t,target:"_blank",rel:o?"nofollow noopener noreferrer":"noopener",children:(0,a.jsx)(n.$n,{variant:r,inline:!1,className:"cursor-pointer whitespace-nowrap",children:l})})})},s=r},84015:(e,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getEmailPreferencesStatusUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/status"}},l.getEmailPreferencesSetUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/set"}},l.getEmailPreferencesChangeEmailUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/change-email"}}},86605:(e,l,t)=>{"use strict";t.d(l,{h:()=>h});var a=t(76792),n=t(42292),i=t(48260),r=t(73675);let s={autoplayadsmuted:!1,client:"googima",vpaidcontrols:!0};var o=t(23803),d=t(92928),c=t.n(d),u=t(22627);let m=(0,o.h)("JWPlayer"),h=e=>{var l,t;let{playlist:o,options:d={},setupParams:h={},events:x=[],className:v="",placeHolder:p}=e,g="player-".concat((0,n.useId)()),{playerId:f="IdNDrRWQ"}=h,y=(0,n.useMemo)(()=>({playlist:o,...(e=>{let{ads:l=!0,showDescriptions:t=!0}=e;return{aspectratio:"16:9",autostart:!0,backgroundLoading:!0,width:"100%",mute:!1,autoPause:{pauseAds:!0,viewability:!0},captions:{backgroundOpacity:50,fontSize:14},...l?{advertising:s}:{},...t?{displaytitle:!0,displaydescription:!0}:{displaytitle:!1,displaydescription:!1}}})({...h}),...d}),[o,h,d]),b=(0,n.useRef)(null),w=(0,n.useRef)(!1),j=null==o||null==(l=o[0])?void 0:l.file,[N,C]=(0,n.useState)(j?"loading":"error");(0,n.useEffect)(()=>{if(w.current||!("jwplayer"in window)||"ready"!==N||!j)return;let e=window.jwplayer(g);b.current=e,w.current=!0,m.info("initialized player"),e.setup(y),x.forEach(l=>{let{eventName:t,callback:a}=l;e.on(t,l=>{a({event:l,player:e})}),m.lifecycle("Registered event handler for ".concat(t))})},[y,x,j,g,N]),(0,n.useEffect)(()=>()=>{if(b.current)try{b.current.remove(),b.current=null,w.current=!1}catch(e){m.error("Error removing JW Player",e)}},[]);let T=p?null==o||null==(t=o[0])?void 0:t.image:"";return(0,a.jsxs)("div",{children:[j&&(0,a.jsx)(r.default,{src:"https://cdn.jwplayer.com/libraries/".concat(f,".js"),onLoad:()=>C("ready"),onReady:()=>C("ready"),onError:()=>C("error")}),(0,a.jsxs)("div",{className:(0,i.cn)("relative overflow-hidden",c().jwplayerContainer,v),children:[T&&(0,a.jsx)(u.A,{fetchPriority:"high",className:"absolute aspect-video w-full",src:T,alt:""}),"loading"===N&&j?(0,a.jsx)("div",{className:"flex aspect-video w-full items-center justify-center bg-black",children:(0,a.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-t-2 border-b-2 border-white"})}):"error"===N?(0,a.jsx)("div",{className:"flex aspect-video w-full items-center justify-center bg-black text-white",children:"Failed to initialize video player"}):(0,a.jsx)("div",{id:g,className:"aspect-video w-full bg-black"})]})]})}},90019:(e,l,t)=>{"use strict";t.r(l),t.d(l,{BlueskyAdminBlock:()=>o,default:()=>d});var a=t(76792),n=t(42292),i=t(8818),r=t(82188),s=t(22901);let o=()=>{let[e,l]=(0,i.kV6)(),t=(0,r.r)(e,!0),[o,d]=(0,n.useState)({blueskyURL:null==t?void 0:t.blueskyURL,postId:null==t?void 0:t.postId});return(0,n.useEffect)(()=>{d({blueskyURL:null==t?void 0:t.blueskyURL,postId:null==t?void 0:t.postId})},[null==t?void 0:t.blueskyURL,null==t?void 0:t.postId]),(0,a.jsxs)(s.default,{name:"Bluesky",children:[(0,a.jsx)("h4",{children:(()=>{switch(null==t?void 0:t.entryMethod){case"url":return o.blueskyURL;case"id":return"Post ID: ".concat(o.postId);default:return"No Bluesky post specified"}})()}),(0,a.jsx)("div",{style:{paddingTop:".3rem"},children:(0,a.jsx)(i.OcR,{label:"Show Thread",name:"showThread",checked:null==t?void 0:t.showThread,readOnly:!0,onToggle:e=>{l({type:"UPDATE",path:"showThread",value:!e})}})})]})},d=o},92928:e=>{e.exports={jwplayerContainer:"JWPlayer_jwplayerContainer__u4Psj"}},93146:(e,l,t)=>{"use strict";l.Sn=s;let a=t(4883),n=t(17681),i=t(36762),r=t(56791);async function s(e){let{geocode:l,language:t="en-US"}=e,s=(0,n.urlFrom)((0,a.getSunWeatherAlertHeadlinesUrlConfig)({geocode:l,language:t})),o=await fetch(s,{headers:{"Accept-Encoding":"gzip"},cache:"no-store",next:{revalidate:0}}),d=await (0,i.handleFetchResponse)(o);return{...d,alerts:(0,r.getSortedAlerts)(d.alerts)}}},95624:(e,l,t)=>{"use strict";t.d(l,{yW:()=>b});var a=t(95913),n=t(90937);let i="",r="",s=1,o=0,d=0,c=0,u=0,m=!1,h=0,x={adImpression:!1,videoAttempt:!1,videoPlayed:!1,videoStarted:!1,videoCompleted:!1,videoEnd:!1},v={autostart:"auto",interaction:"click",external:"externalLink",playlist:"playlistClick","related-interaction":"nextClick","related-auto":"auto"};function p(e){var l;return null!=(l=v[e])?l:"click"}function g(e){let l=e.split(":").map(Number);if(2===l.length){let[e=0,t=0]=l,a=Math.floor(60*e+t);return isNaN(a)?0:a}if(3===l.length){let[e=0,t=0,a=0]=l,n=Math.floor(3600*e+60*t+a);return isNaN(n)?0:n}return 0}function f(){Object.keys(x).map(e=>{x[e]=!1}),o=0,d=0,r=""}function y(e,l){var t,i,r,s,o,d,c,u,m,h,x,v,p,g,f,y,b,w,j,N,C,T,k,A,S,I,M,_,R,P,L,E,D,F,B,z,V;let W=l||e.getPlaylistItem();return{adBlock:e.getAdBlock(),adsMetricsUnitAndZone:null==W||null==(i=W.custom)||null==(t=i.ctx)?void 0:t.adzone,aspectRatio:null==e||null==(r=e.getConfig())?void 0:r.aspectratio,assetName:(0,a.EY)(null!=(z=null==W||null==(o=W.custom)||null==(s=o.ctx)?void 0:s.assetName)?z:""),collection:null==W||null==(c=W.custom)||null==(d=c.ctx)?void 0:d.pcollid,collectionId:null==W||null==(m=W.custom)||null==(u=m.ctx)?void 0:u.pcollid,contentId:null==W||null==(x=W.custom)||null==(h=x.ctx)?void 0:h.id,entitlements:(0,n.X)(null!=(V=null==W||null==(p=W.custom)||null==(v=p.ctx)?void 0:v.entitlements)?V:[]),iabContent:(0,a.IA)((null==W||null==(f=W.custom)||null==(g=f.ctx)?void 0:g.iab)||{}),id:null==W||null==(b=W.custom)||null==(y=b.ctx)?void 0:y.id,duration:null==W||null==(j=W.custom)||null==(w=j.ctx)?void 0:w.duration,lastmodifieddate:null==W||null==(T=W.custom)||null==(C=T.ctx)||null==(N=C.lastmodifieddate)?void 0:N.toString(),muted:e.getMute(),premiumContent:null==W||null==(A=W.custom)||null==(k=A.ctx)?void 0:k.premium,publishdate:null==W||null==(M=W.custom)||null==(I=M.ctx)||null==(S=I.publishdate)?void 0:S.toString(),providerName:null==W||null==(R=W.custom)||null==(_=R.ctx)?void 0:_.providername,tagsGeo:(0,n.X)(null==W||null==(L=W.custom)||null==(P=L.ctx)?void 0:P.tagsGeo),tagsKeyword:(0,n.X)(null==W||null==(D=W.custom)||null==(E=D.ctx)?void 0:E.tagsKeyword),tagsStorm:(0,n.X)(null==W||null==(B=W.custom)||null==(F=B.ctx)?void 0:F.tagsStorm)}}let b=[{eventName:"ready",callback:e=>{let{player:l,trackVideoEvent:t}=e;window.addEventListener("beforeunload",()=>{if(x.videoStarted&&!x.videoEnd){var e,a;let n=l.getPlaylistItem(),d=g(null==n||null==(a=n.custom)||null==(e=a.ctx)?void 0:e.duration);n&&!x.videoAttempt&&t&&(t({eventName:"video-end",eventAttributes:{errorMessage:r,contentWatchedSeconds:o,playReason:i,videoView:s,...y(l)}}),t({eventName:"video-ended",eventAttributes:{errorMessage:r,videoWatchedLength:o,playMethod:i,videoView:s,...y(l),videoLength:d,adLength:c,adWatchedLength:u,adSkipped:m,exitReason:"pageExit"}})),x.videoEnd=!0}})}},{eventName:"adImpression",callback:async e=>{let{player:l,trackVideoEvent:t}=e,a=l.getPlaylistItem();if(r="",f(),console.debug("JW Player callback - adImpression eventSentFlags:",x),x.adImpression=!0,a&&!x.videoAttempt&&t){var n,o;let e=g(null==a||null==(o=a.custom)||null==(n=o.ctx)?void 0:n.duration);t({eventName:"video-attempt",eventAttributes:{errorMessage:r,playReason:i,videoView:s,...y(l)}}),t({eventName:"video-attempted",eventAttributes:{errorMessage:r,playMethod:i,videoLength:e,videoView:s,...y(l)}}),x.videoAttempt=!0}a&&!x.videoPlayed&&t&&(t({eventName:"video-played",eventAttributes:{errorMessage:r,playReason:i,videoView:s,...y(l)}}),x.videoPlayed=!0)}},{eventName:"viewable",callback:async e=>{let{event:l}=e;s=null==l?void 0:l.viewable}},{eventName:"playlistItem",callback:async e=>{let{player:l,trackVideoEvent:t}=e;if(i=p("playlist"),x.videoStarted&&!x.videoCompleted&&!x.videoEnd){var a,n;let e=l.getPlaylistIndex(),d=l.getPlaylistItem(e-1),h=g(null==d||null==(n=d.custom)||null==(a=n.ctx)?void 0:a.duration);t({eventName:"video-end",eventAttributes:{errorMessage:r,contentWatchedSeconds:o,playReason:i,videoView:s,...y(l,d)}}),t({eventName:"video-ended",eventAttributes:{errorMessage:r,videoWatchedLength:o,playMethod:i,videoView:s,...y(l),videoLength:h,adLength:c,adWatchedLength:u,adSkipped:m,exitReason:"nextVideo"}}),x.videoEnd=!0}}},{eventName:"playAttempt",callback:async e=>{let{player:l,trackVideoEvent:t}=e,a=l.getPlaylistItem();if(x.adImpression||(r="",f()),console.debug("JW Player callback - playAttempt eventSentFlags:",x),a&&!x.videoAttempt&&t){var n,o;let e=g(null==a||null==(o=a.custom)||null==(n=o.ctx)?void 0:n.duration);x.videoAttempt=!0,t({eventName:"video-attempt",eventAttributes:{errorMessage:r,playReason:i,videoView:s,...y(l)}}),t({eventName:"video-attempted",eventAttributes:{errorMessage:r,videoLength:e,playMethod:i,videoView:s,...y(l)}})}}},{eventName:"firstFrame",callback:async e=>{let{player:l,trackVideoEvent:t}=e;console.debug("JW Player callback - firstFrame eventSentFlags:",x);let a=l.getPlaylistItem();if(a&&!x.videoPlayed&&t&&(t({eventName:"video-played",eventAttributes:{errorMessage:r,playReason:i,videoView:s,...y(l)}}),x.videoPlayed=!0),a&&!x.videoStarted&&t){var n,o;let e=g(null==a||null==(o=a.custom)||null==(n=o.ctx)?void 0:n.duration);t({eventName:"video-started",eventAttributes:{errorMessage:r,playReason:i,videoView:s,...y(l)}}),t({eventName:"video-begin",eventAttributes:{errorMessage:r,playMethod:i,videoView:s,...y(l),videoLength:e,adLength:c,adWatchedLength:u,adSkipped:m}}),x.videoStarted=!0}}},{eventName:"complete",callback:async e=>{var l,t;let{player:a,trackVideoEvent:n}=e,d=a.getPlaylistItem(),h=g(null==d||null==(t=d.custom)||null==(l=t.ctx)?void 0:l.duration);console.debug("JW Player callback - complete eventSentFlags:",x),d&&!x.videoCompleted&&n&&(n({eventName:"video-completed",eventAttributes:{errorMessage:r,playReason:i,videoView:s,...y(a)}}),x.videoCompleted=!0),x.videoStarted&&!x.videoEnd&&(n({eventName:"video-end",eventAttributes:{errorMessage:r,contentWatchedSeconds:o,playReason:i,videoView:s,...y(a)}}),n({eventName:"video-ended",eventAttributes:{errorMessage:r,videoWatchedLength:o,playMethod:i,videoView:s,...y(a),videoLength:h,adLength:c,adWatchedLength:u,adSkipped:m,exitReason:"complete"}}),x.videoEnd=!0)}},{eventName:"adStarted",callback:async e=>{let{event:l,player:t,trackVideoEvent:a}=e,n=t.getPlaylistItem();c=l.duration,console.debug("JW Player callback - adStarted eventSentFlags:",x),n&&a&&a({eventName:"ad-started",eventAttributes:{errorMessage:r,playReason:i,videoView:s,...y(t)}})}},{eventName:"adSkipped",callback:async e=>{let{player:l,trackVideoEvent:t}=e,a=l.getPlaylistItem();m=!0,a&&t&&t({eventName:"ad-skipped",eventAttributes:{errorMessage:r,playReason:i,videoView:s,...y(l)}})}},{eventName:"adComplete",callback:async e=>{let{event:l,player:t,trackVideoEvent:a}=e,n=t.getPlaylistItem();u=l.duration,console.debug("JW Player callback - adComplete eventSentFlags:",x),n&&a&&a({eventName:"ad-complete",eventAttributes:{errorMessage:r,playReason:i,videoView:s,...y(t)}})}},{eventName:"beforePlay",callback:async e=>{let{event:l}=e;i=p(null==l?void 0:l.playReason)}},{eventName:"adError",callback:async e=>{let{event:l}=e;console.error("Video ad error:",l)}},{eventName:"error",callback:async e=>{let{event:l}=e;r=null==l?void 0:l.message,console.error("Video Player error:",l)}},{eventName:"time",callback:e=>{let{event:l}=e;if("number"==typeof(null==l?void 0:l.position)){let e=l.position-d;o+=e,d=l.position}}},{eventName:"seek",callback:e=>{let{event:l}=e;"number"==typeof(null==l?void 0:l.offset)&&(d=l.offset)}},{eventName:"adTime",callback:async e=>{let{event:l}=e,t=Date.now();t-h>=1e3&&(u=parseFloat(l.position.toFixed(2)),h=t)}}]},96599:(e,l,t)=>{"use strict";t.r(l),t.d(l,{CurrentDetailsAdminBlock:()=>s,default:()=>o});var a=t(76792);t(42292);var n=t(22901),i=t(8818),r=t(82188);let s=()=>{let[e]=(0,i.kV6)(),l=(0,r.r)(e,!0);return(0,a.jsxs)(n.default,{name:"CurrentDetails",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("b",{children:"Provider"}),": ",l.locationProvider]}),"specified"===l.locationProvider&&(0,a.jsxs)("div",{children:[(0,a.jsx)("b",{children:"Location"}),": ",l.locationEntry]})]})},o=s},97812:(e,l,t)=>{"use strict";t.r(l),t.d(l,{ContentMediaBlock:()=>g,default:()=>f});var a=t(76792),n=t(18556),i=t(48260),r=t(53976),s=t(69585),o=t(22627),d=t(49192),c=t(42292),u=t(23233);let m=(0,c.forwardRef)((e,l)=>{let{title:t,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===t?(0,a.jsx)("title",{id:n,children:"Play"}):t?(0,a.jsx)("title",{id:n,children:t}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M3.5 14a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .741-.438l10 5.5a.5.5 0 0 1 0 .876l-10 5.5A.5.5 0 0 1 3.5 14"})]})}),h=c.forwardRef((e,l)=>(0,a.jsx)(u.h,{ref:l,icon:m,...e}));h.displayName="PlayFilledAlt";var x=t(54086);let v=e=>{let{items:l,title:t,showCategory:n,showDescription:c=!0,template:u="grid",gridColumns:m=2,aspectRatio:v="square",heroStyle:p="side-content",hideTitle:g=!1}=e,f="not-prose";if(l.every(e=>"image"===e.contentType)){let e=l.map(e=>({id:e.id,url:e.overrideThumbnail||e.thumbnail||"",filename:e.overrideTitle||"",caption:c&&(e.overrideDescription||e.description)||"",seo:{altText:e.overrideTitle||e.title},createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}));return(0,a.jsx)("section",{className:f,children:(0,a.jsx)(d.A,{id:"content-media-slideshow-".concat(Math.random().toString(36).substring(2,9)),assets:e,allSlides:e,slides:[],totalAssets:e.length,rounded:!0,sendTrackString:()=>{},blockType:"Slideshow"})})}if("travel-hero"===u){var y,b,w,j;let e=l[0],d=l.slice(1,4);if(!e)return null;let u=e.overrideTitle||e.title,m=e.overrideThumbnail||e.thumbnail||"/placeholder.svg",N=(null==(y=e.category)?void 0:y.title)||"Weather News",C=e.caption||e.description||"",T=e.duration,k=e.url||"#",A="object"==typeof e.provider&&e.provider?e.provider:null,S=A&&"object"==typeof A.partnerLogo&&(null==(j=A.partnerLogo)||null==(w=j.sizes)||null==(b=w.medium)?void 0:b.url)?A.partnerLogo.sizes.medium.url:void 0;return(0,a.jsxs)(s.Zp,{"aria-label":t,className:(0,i.cn)("@container",f),children:[g?null:(0,a.jsx)(s.aR,{text:t}),(0,a.jsxs)(s.Wu,{children:["side-content"===p?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("a",{href:k,className:"group hidden grid-cols-3 gap-6 rounded-2xl p-3 no-underline transition-all duration-150 hover:bg-gray-100 focus-visible:bg-gray-100 focus-visible:outline-none sm:grid",children:[(0,a.jsx)("div",{className:"relative col-span-2 aspect-[8/5] max-h-[480px] w-full overflow-hidden rounded-lg transition-shadow duration-150 group-hover:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)] group-focus-visible:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)]",children:(0,a.jsx)(o.A,{src:m,alt:u,fill:!0,className:"absolute top-0 left-0 h-full w-full scale-[1.01] object-cover transition-transform duration-150 group-hover:scale-[1.02] group-focus-visible:scale-[1.02]",sizes:"(max-width: 1024px) 100vw, 66vw"})}),(0,a.jsxs)("div",{className:"col-span-1 flex flex-col justify-center gap-4",children:[S&&(0,a.jsx)("div",{className:"relative mb-3 w-52",children:(0,a.jsx)(o.A,{src:S,alt:"",width:208,height:0,className:"h-auto max-h-6 w-full rounded-none object-contain object-left",style:{height:"auto"},sizes:"208px"})}),n&&(0,a.jsx)("span",{className:"inline-block self-start rounded-full bg-blue-600 px-3 py-1 text-xs font-medium text-white",children:N}),(0,a.jsx)("h3",{className:"text-2xl leading-tight font-bold text-gray-900",children:u}),c&&C&&(0,a.jsx)("p",{className:"line-clamp-2 text-base text-gray-600 @[654px]:line-clamp-5 @[854px]:line-clamp-none",children:C}),(0,a.jsx)("div",{className:"flex items-center gap-3",children:T?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"inline-flex h-12 items-center gap-2 rounded-md border border-gray-900 bg-transparent px-4 text-sm font-medium text-gray-900 transition-colors hover:bg-gray-50",children:[(0,a.jsx)(h,{className:"h-4 w-4"}),"Watch"]}),(0,a.jsx)("span",{className:"text-sm text-gray-600",children:(0,x.h)(T)})]}):(0,a.jsx)("span",{className:"inline-flex h-12 items-center gap-2 rounded-md border border-gray-900 bg-transparent px-4 text-sm font-medium text-gray-900 transition-colors hover:bg-gray-50",children:"Read more"})})]})]}),(0,a.jsx)("div",{className:"block sm:hidden",children:(0,a.jsxs)("a",{href:k,className:"group flex flex-col gap-4 rounded-2xl p-3 no-underline transition-all duration-150 hover:bg-gray-100 focus-visible:bg-gray-100 focus-visible:outline-none",children:[(0,a.jsx)("div",{className:"relative aspect-video w-full overflow-hidden rounded-lg transition-shadow duration-150 group-hover:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)] group-focus-visible:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)]",children:(0,a.jsx)(o.A,{src:m,alt:u,fill:!0,className:"absolute top-0 left-0 h-full w-full scale-[1.01] object-cover transition-transform duration-150 group-hover:scale-[1.02] group-focus-visible:scale-[1.02]",sizes:"100vw"})}),(0,a.jsxs)("div",{children:[S&&(0,a.jsx)("div",{className:"relative mb-3 w-40",children:(0,a.jsx)(o.A,{src:S,alt:"",width:160,height:0,className:"h-auto max-h-6 w-full rounded-none object-contain object-left",style:{height:"auto"},sizes:"160px"})}),n&&(0,a.jsx)("span",{className:"mb-2 inline-block rounded-full bg-gray-100 px-3 py-1 text-xs font-medium text-gray-700",children:N}),(0,a.jsx)("h3",{className:"mb-2 text-base leading-tight font-semibold text-gray-900 sm:text-lg md:text-xl lg:text-2xl",children:u}),c&&C&&(0,a.jsx)("p",{className:"mb-2 line-clamp-4 text-sm font-normal text-gray-500 sm:text-base",children:C}),T&&(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(h,{className:"h-6 w-6 text-gray-500"}),(0,a.jsx)("span",{className:"text-sm text-gray-500 sm:text-base",children:(0,x.h)(T)})]})]})]})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("a",{href:k,className:"group hidden rounded-2xl p-3 no-underline transition-all duration-150 hover:bg-gray-100 focus-visible:bg-gray-100 focus-visible:outline-none sm:block",children:(0,a.jsxs)("div",{className:"relative aspect-[8/5] max-h-[480px] w-full overflow-hidden rounded-lg transition-shadow duration-150 group-hover:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)] group-focus-visible:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)]",children:[(0,a.jsx)(o.A,{src:m,alt:u,fill:!0,className:"absolute top-0 left-0 h-full w-full scale-[1.01] object-cover transition-transform duration-150 group-hover:scale-[1.02] group-focus-visible:scale-[1.02]",sizes:"100vw"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-[linear-gradient(to_right,rgba(17,30,55,0.76)_0%,rgba(17,30,55,0.61)_33%,rgba(17,30,55,0)_100%)]"}),(0,a.jsxs)("div",{className:"absolute bottom-0 left-0 max-w-full p-6 text-white sm:max-w-[50%] sm:p-8 sm:pr-0",children:[S&&(0,a.jsx)("div",{className:"relative mb-6 w-64",children:(0,a.jsx)(o.A,{src:S,alt:"",width:256,height:0,className:"h-auto max-h-6 w-full rounded-none object-contain object-left brightness-0 invert",style:{height:"auto"},sizes:"256px"})}),n&&(0,a.jsx)("span",{className:"mb-3 inline-block rounded-full bg-white/20 px-3 py-1 text-xs font-medium backdrop-blur-sm",children:N}),(0,a.jsx)("h3",{className:"mb-3 text-2xl leading-tight font-bold sm:text-[32px]",children:u}),c&&C&&(0,a.jsx)("p",{className:"mb-4 line-clamp-2 text-base text-white/90 sm:text-lg @[604px]:line-clamp-5 @[754px]:line-clamp-none",children:C}),(0,a.jsx)("div",{className:"flex items-center gap-3",children:T?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"inline-flex h-12 items-center gap-2 rounded-md border border-gray-900 bg-white px-4 text-sm font-medium text-gray-900 transition-colors hover:bg-gray-50",children:[(0,a.jsx)(h,{className:"h-4 w-4"}),"Watch"]}),(0,a.jsx)("span",{className:"text-sm text-white",children:(0,x.h)(T)})]}):(0,a.jsx)("span",{className:"inline-flex h-12 items-center gap-2 rounded-md border border-gray-900 bg-white px-4 text-sm font-medium text-gray-900 transition-colors hover:bg-gray-50",children:"Read more"})})]})]})}),(0,a.jsx)("div",{className:"block sm:hidden",children:(0,a.jsxs)("a",{href:k,className:"group flex flex-col gap-4 rounded-2xl p-3 no-underline transition-all duration-150 hover:bg-gray-100 focus-visible:bg-gray-100 focus-visible:outline-none",children:[(0,a.jsx)("div",{className:"relative aspect-video w-full overflow-hidden rounded-lg transition-shadow duration-150 group-hover:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)] group-focus-visible:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)]",children:(0,a.jsx)(o.A,{src:m,alt:u,fill:!0,className:"absolute top-0 left-0 h-full w-full scale-[1.01] object-cover transition-transform duration-150 group-hover:scale-[1.02] group-focus-visible:scale-[1.02]",sizes:"100vw"})}),(0,a.jsxs)("div",{children:[S&&(0,a.jsx)("div",{className:"relative mb-3 w-40",children:(0,a.jsx)(o.A,{src:S,alt:"",width:160,height:0,className:"h-auto max-h-6 w-full rounded-none object-contain object-left",style:{height:"auto"},sizes:"160px"})}),n&&(0,a.jsx)("span",{className:"mb-2 inline-block rounded-full bg-gray-100 px-3 py-1 text-xs font-medium text-gray-700",children:N}),(0,a.jsx)("h3",{className:"mb-2 text-base leading-tight font-semibold text-gray-900 sm:text-lg md:text-xl lg:text-2xl",children:u}),c&&C&&(0,a.jsx)("p",{className:"mb-2 line-clamp-4 text-sm font-normal text-gray-500 sm:text-base",children:C}),T&&(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(h,{className:"h-6 w-6 text-gray-500"}),(0,a.jsx)("span",{className:"text-sm text-gray-500 sm:text-base",children:(0,x.h)(T)})]})]})]})})]}),d.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"hidden grid-cols-3 sm:grid",children:d.map(e=>{var l,t,i,s;let o=e.overrideTitle||e.title,d=e.overrideThumbnail||e.thumbnail||"/placeholder.svg",u=(null==(l=e.category)?void 0:l.title)||"Weather News",m=c&&(e.caption||e.description)||void 0,h="object"==typeof e.provider&&e.provider?e.provider:null,x=h&&"object"==typeof h.partnerLogo&&(null==(s=h.partnerLogo)||null==(i=s.sizes)||null==(t=i.small)?void 0:t.url)?h.partnerLogo.sizes.small.url:void 0;return(0,a.jsx)(r.S,{heading:n?u:void 0,description:o,href:e.url,imageUrl:d,showIcon:!1,dir:"col",badgeStyle:!!n,bodyText:m,duration:e.duration||void 0,aspectRatio:v||"square",partnerLogoThumbnailUrl:x,partnerLogoWhite:!0,partnerLogoPosition:"default"},e.id)})}),(0,a.jsx)("div",{className:"flex flex-col sm:hidden",children:d.map(e=>{var l,t,i,s;let o=e.overrideTitle||e.title,d=e.overrideThumbnail||e.thumbnail||"/placeholder.svg",u=(null==(l=e.category)?void 0:l.title)||"Weather News",m=c&&(e.caption||e.description)||void 0,h="object"==typeof e.provider&&e.provider?e.provider:null,x=h&&"object"==typeof h.partnerLogo&&(null==(s=h.partnerLogo)||null==(i=s.sizes)||null==(t=i.small)?void 0:t.url)?h.partnerLogo.sizes.small.url:void 0;return(0,a.jsx)(r.S,{heading:n?u:void 0,description:o,href:e.url,imageUrl:d,showIcon:!1,dir:"row",badgeStyle:!!n,bodyText:m,duration:e.duration||void 0,aspectRatio:v||"square",imageWidth:"w-40 flex-shrink-0",partnerLogoThumbnailUrl:x,partnerLogoWhite:!0,partnerLogoPosition:"compact"},e.id)})})]})]})]})}return(0,a.jsxs)(s.Zp,{"aria-label":t,className:(0,i.cn)("@container",f),children:[g?null:(0,a.jsx)(s.aR,{text:t}),(0,a.jsx)(s.Wu,{className:(()=>{if("list"===u)return"flex flex-col";if("grid"===u){let e={1:"grid-cols-1",2:"grid-cols-1 @md:grid-cols-2",3:"grid-cols-1 @md:grid-cols-2 @lg:grid-cols-3",4:"grid-cols-1 @md:grid-cols-2 @lg:grid-cols-4",5:"grid-cols-1 @md:grid-cols-2 @lg:grid-cols-5",6:"grid-cols-1 @md:grid-cols-2 @lg:grid-cols-3 @xl:grid-cols-6",7:"grid-cols-1 @md:grid-cols-2 @lg:grid-cols-3 @xl:grid-cols-7",8:"grid-cols-1 @md:grid-cols-2 @lg:grid-cols-4 @xl:grid-cols-8"},l=e[null!=m?m:2]||e[2];return"grid ".concat(l)}return"grid grid-cols-1 @md:grid-cols-2"})(),children:l.map(e=>{var l,t,i,s;let o=e.overrideTitle||e.title,d=e.overrideThumbnail||e.thumbnail||"/placeholder.svg",m=(null==(l=e.category)?void 0:l.title)||"Weather News",h=c&&(e.caption||e.description)||void 0,x="object"==typeof e.provider&&e.provider?e.provider:null,p="list"===u?"thumbnail":"small",g=x&&"object"==typeof x.partnerLogo&&(null==(s=x.partnerLogo)||null==(i=s.sizes)||null==(t=i[p])?void 0:t.url)?x.partnerLogo.sizes[p].url:void 0;return(0,a.jsx)(r.S,{heading:n?m:void 0,description:o,href:e.url,imageUrl:d,showIcon:!1,dir:"list"===u?"row":"col",badgeStyle:!!n,bodyText:h,duration:e.duration||void 0,imageWidth:"list"===u?"w-40 h-40 flex-shrink-0":void 0,aspectRatio:v||"square",partnerLogoThumbnailUrl:g,partnerLogoWhite:!0,partnerLogoPosition:"list"===u?"compact":"default"},e.id)})})]})},p=e=>{let{contentQuery:l,limit:t="4",title:i,showCategory:r,showDescription:s,template:o="grid",gridColumns:d=2,aspectRatio:c="square",heroStyle:u="side-content",hideTitle:m=!1}=e,h=(null==l?void 0:l.mergedContent)||[];if(!(0,n.J)(h))return null;let x=h.slice(0,Number(t));return(0,a.jsx)(v,{items:x,title:null!=i?i:void 0,showCategory:null!=r?r:void 0,showDescription:null==s||s,template:null!=o?o:void 0,gridColumns:null!=d?d:void 0,aspectRatio:null!=c?c:void 0,heroStyle:null!=u?u:void 0,hideTitle:null!=m?m:void 0})},g=e=>(0,a.jsx)(p,{...e}),f=g},98066:(e,l,t)=>{"use strict";function a(e){return"object"==typeof e&&null!==e&&"url"in e&&("mimeType"in e||"seo"in e&&"altText"in e.seo)}t.d(l,{bt:()=>a})},98439:(e,l,t)=>{"use strict";t.r(l),t.d(l,{SlideshowAdminBlock:()=>c,default:()=>u});var a=t(76792),n=t(42292),i=t(8818),r=t(82188),s=t(22901),o=t(57965);let d=e=>e&&""!==e.trim()?(e=>!!e&&""!==e.trim()&&(/\.(jpg|jpeg|png|gif|webp|bmp|tiff|svg)$/i.test(e)||/^[A-Z0-9_]+\d*\.[a-zA-Z]+$/i.test(e)||/^[a-zA-Z0-9_-]+\d+$/i.test(e)||/[._][0-9]+/i.test(e)||/^[A-Z0-9_]+$/i.test(e)))(e)?"":e:"",c=()=>{var e,l,t,c;let[u]=(0,i.kV6)(),m=(0,r.r)(u,!0),[h,x]=(0,n.useState)({slides:(null==m?void 0:m.slides)||[],settings:(null==m?void 0:m.settings)||{}});(0,n.useEffect)(()=>{x({slides:(null==m?void 0:m.slides)||[],settings:(null==m?void 0:m.settings)||{}})},[null==m?void 0:m.slides,null==m?void 0:m.settings]);let v=null==(e=h.slides)?void 0:e[0],p=null==v?void 0:v.imageAsset;return(0,a.jsxs)(s.default,{name:"Slideshow",children:[(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Slideshow Images:"})," ",(0,a.jsxs)("span",{className:"text-gray-600",children:[(null==(l=h.slides)?void 0:l.length)||0," images"]})]}),(null==(t=h.slides)?void 0:t.length)>0&&(0,a.jsxs)("div",{className:"mb-4",children:[d(null==v?void 0:v.imageTitle)?(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"First Image:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:d(null==v?void 0:v.imageTitle)})]}):(0,a.jsx)("div",{className:"mb-2",children:(0,a.jsx)("strong",{className:"text-black-800",children:"First Image"})}),(null==p?void 0:p.url)&&(0,a.jsx)(o.default,{src:p.url,alt:d(null==v?void 0:v.imageTitle),className:"mb-2 max-h-[240px] max-w-[240px]"}),(null==v?void 0:v.description)&&(0,a.jsxs)("div",{className:"mb-1",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Description:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:v.description})]}),(null==v?void 0:v.imageCaption)&&(0,a.jsxs)("div",{className:"mb-1",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Caption:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:v.imageCaption})]}),(null==v?void 0:v.imageByline)&&(0,a.jsxs)("div",{className:"mb-1",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Byline:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:v.imageByline})]}),(null==v?void 0:v.provider)&&(0,a.jsxs)("div",{className:"mb-1",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Provider:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:v.provider})]}),(null==v?void 0:v.property)&&(0,a.jsxs)("div",{className:"mb-1",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Property:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:v.property})]})]}),(0,a.jsx)("div",{className:"mb-2",children:(0,a.jsx)("strong",{className:"text-black-800",children:"Settings:"})}),(0,a.jsxs)("div",{className:"mb-1",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Rounded Corners:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:(null==(c=h.settings)?void 0:c.rounded)?"Yes":"No"})]})]})},u=c},99343:(e,l,t)=>{"use strict";t.d(l,{c:()=>o});var a=t(42292),n=t(92700),i=t(55198),r=t(95913),s=t(153);let o=()=>{let e=(0,n.N)(),l=(0,s.A)(),t=(0,i.usePathname)();return(0,a.useCallback)(a=>{var n,i,s,o,d,c;let{eventName:u,eventAttributes:m={}}=a;if(!(null==(i=window.mParticle)||null==(n=i.isInitialized)?void 0:n.call(i)))return void console.warn("MParticle is not initialized");let h={...m,author:(null==l?void 0:l.author)||"",contentId:(null==l?void 0:l.contentId)||m.contentId,...e,url:t?(0,r.EY)(t):""};try{null==(c=window.mParticle)||null==(d=c.logEvent)||d.call(c,u,null==(o=window.mParticle)||null==(s=o.EventType)?void 0:s.Other,h),console.debug('MParticle: Video Event tracked - "'.concat(u,'"'),h)}catch(e){console.error('MParticle: Failed to track Video Event - "'.concat(u,'"'),e)}},[null==l?void 0:l.author,null==l?void 0:l.contentId,e,t])}}}]);