(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,590238,e=>{"use strict";var t=e.i(537989),a=e.i(827049),l=e.i(695203),r=e.i(604323),i=e.i(797770),n=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,n.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[a.pageLocaleAtom,e.pageLocale],[l.deviceClassAtom,e.deviceClass],[r.metricsArticleDataAtom,e.metricsArticleData],[i.adsMetricsUnitAndZoneAtom,e.adsMetricsUnitAndZone??"non_monetized"]]),null)])},703123,e=>{"use strict";let t=(0,e.i(751931).atom)({});e.s(["gsiEmailStatesAtom",0,t])},404893,e=>{"use strict";let t=(0,e.i(751931).atom)(!1);e.s(["googleLoginInitilizedAtom",0,t])},874905,e=>{"use strict";e.i(694914);var t=e.i(297647),a=e.i(241722),l=e.i(477716),r=e.i(475566),i=e.i(352194),n=e.i(671525),o=e.i(901351),s=e.i(310847),c=e.i(776169),d=e.i(422825),u=e.i(143851),m=e.i(703123),h=e.i(404893),g=e.i(367810),f=e.i(251392);function b({onLoad:e,prompt:b=!0,isUserLoggedIn:p}){let x=(0,i.useTranslations)("GoogleLogin"),v=(0,r.useSetAtom)(h.googleLoginInitilizedAtom),{loginWithGoogle:w,error:j,clearError:k}=function(){let e=(0,i.useTranslations)("GoogleLogin"),[t,a]=(0,l.useState)(null),h=(0,r.useSetAtom)(s.userHasLoggedInBeforeAtom),g=(0,r.useAtomValue)(m.gsiEmailStatesAtom),{updateEmailSubscriptions:f}=(0,d.useEmailPreferences)(),{refresh:b}=(0,n.usePageNavigation)(),{syncPreferencesFromUpsx:p}=(0,c.usePreferences)(),{authSuccess:x,authRedirect:v}=(0,u.useUserLogin)();return{loginWithGoogle:(0,l.useCallback)(async t=>{let{credential:l}=t;a(null);try{let e=await o.upsxClient.auth.loginWithGoogle({google_id_token:l}),t=e?.isFirstLogin;await x({email:e.email,userID:e.userID,type:t?"signup":"login"},!1);let{newsletter:a,weekly:r,marketing:i,alwaysSubscribe:n}=g||{};return(t||n)&&await f({newsletter:a,weekly:r,marketing:i}).catch(e=>{console.error("Failed to update email subscriptions",e)}),v(),!0}catch(t){console.error("Failed to login with Google",t);try{let l=t?.data,r=l?.messageCode;if(!r)throw Error("No Error Message");switch(r){case 1e3:case 1026:case 1033:a({header:e("emailAlreadyUsedGoogleHeader"),body:e.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:a({header:e("emailAlreadyRegisteredGoogleHeader"),body:e("emailAlreadyRegisteredGoogleBody")});break;default:throw Error("No Specific Error")}}catch(t){a({header:e("somethingWentWrong")})}return!1}},[h,p,b,x,v,f,g]),error:t,clearError:(0,l.useCallback)(()=>{a(null)},[])}}(),y=(0,f.useRefMemo)(w);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.default,{src:"https://accounts.google.com/gsi/client",onLoad:()=>{let t=window.google?.accounts?.id;t&&(t.initialize({client_id:"797231885346-rai9vgnvf4u38enai8bhginnnrh5uvch.apps.googleusercontent.com",context:"signin",ux_mode:"popup",use_fedcm_for_prompt:!0,callback:e=>{y.current?.(e)}}),v(!0)),e?.(),!p&&b&&t?.prompt()},id:"google-gsi-script"}),(0,t.jsx)(g.Dialog,{open:!!j,onOpenChange:e=>!e&&k(),children:(0,t.jsx)(g.BasicDialog,{showCloseButton:!1,title:j?.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:j?.body||""}}),primaryAction:{label:x("cancel")}})})]})}e.s(["GoogleAuthScript",()=>b],874905)},622958,e=>{"use strict";var t=e.i(297647),a=e.i(274432),l=e.i(632137),r=e.i(352194);let i=()=>{let e=(0,r.useTranslations)("Header");return(0,t.jsx)("div",{className:(0,l.cn)("relative z-[42] mx-4 my-2 md:hidden"),children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("button",{style:{boxShadow:"0 4px 16px 0 rgba(0, 0, 0, 0.08), 0 0 32px 0 rgba(0, 0, 0, 0.12)"},className:(0,l.cn)("box-border flex h-12 w-full items-center rounded-3xl border-2 border-[#3A61CC00] bg-white! pl-9.5 text-gray-900 outline-0! transition-all hover:border-blue-500 focus-visible:border-blue-500 focus-visible:text-gray-400"),type:"button",onClick:()=>{document?.querySelector?.(".twcSearchTrigger")?.click?.()},children:e("searchPlaceholderText")}),(0,t.jsx)(a.Search,{className:"absolute top-1/2 left-4 flex size-4 -translate-y-1/2 transform items-center text-gray-900"})]})})};e.s(["FakeSearchBar",0,i,"default",0,i])},633647,e=>{"use strict";var t=e.i(297647),a=e.i(523084),l=e.i(47524),r=e.i(632137),i=e.i(477716);let n={left:a.ChevronLeft,right:l.ChevronRight};e.s(["default",0,({buttonClassName:e,containerClassName:a,onClick:l,tabIndex:o,direction:s,...c})=>{let[d,u]=(0,i.useState)(!1),m=n[s];return(0,t.jsx)("div",{className:(0,r.cn)("absolute",a),children:(0,t.jsx)("button",{className:(0,r.cn)("group/scroll-button absolute flex h-11 w-11 transform-[translate(-50%,-50%)] cursor-pointer items-center justify-center rounded-full bg-black opacity-80 transition-[opacity,height,width] duration-75 ease-linear hover:h-12 hover:w-12 hover:opacity-100",d&&"!h-11 !w-11"),onClick:()=>{u(!0),setTimeout(()=>u(!1),75),l?.()},tabIndex:o,...c,children:(0,t.jsx)(m,{className:(0,r.cn)("text-white transition-[height,width] duration-75 group-hover/scroll-button:h-7 group-hover/scroll-button:w-7",d&&"!h-6 !w-6")})})})}])},890972,e=>{"use strict";var t=e.i(297647),a=e.i(147732),l=e.i(477716),r=e.i(240058),i=e.i(375570),n=e.i(632137),o=e.i(475566),s=e.i(663333),c=e.i(633647);let d=(0,l.memo)(({links:e,basePath:d,className:u,mpa:m})=>{let[h,g]=(0,l.useState)(!1),[f,b]=(0,l.useState)(!1),[p,x]=(0,l.useState)(!1),v=(0,l.useRef)(null),w=(0,l.useRef)(null),j=(0,l.useRef)(null),k=(0,l.useRef)(null),y=(0,l.useRef)(!1),C=(0,o.useAtomValue)(s.deviceClassAtom),N="mobile"!==C&&"tablet"!==C,A=(0,i.usePathname)(),L=(()=>{if(A===d||A===`${d}/`)return 0;if(d.includes("/weather")){let t=e.findIndex(e=>{let t=e.slug.split("/")[0];return A.includes(`/weather/${t}/`)});return -1!==t?t:0}{let t=e.findIndex(e=>A.includes(`${d}/${e.slug}`));return -1!==t?t:0}})(),I=(0,l.useCallback)(()=>{let e=v.current;if(!e||!N){g(!1),b(!1);return}let{scrollLeft:t,scrollWidth:a,clientWidth:l}=e,r=Math.abs(t),i=r>2,n=r+l(0,a.debounce)(I,150),[I]),P=(0,l.useCallback)(()=>{null===j.current&&(j.current=requestAnimationFrame(()=>{I(),j.current=null}))},[I]);(0,l.useEffect)(()=>{let e=v.current;e&&(y.current="rtl"===getComputedStyle(e).direction),I();let t=v.current;return t&&(t.addEventListener("scroll",P),window.addEventListener("resize",S)),()=>{null!==j.current&&(cancelAnimationFrame(j.current),j.current=null),t&&t.removeEventListener("scroll",P),S.cancel(),window.removeEventListener("resize",S)}},[e,I,P,S]);let _=(0,l.useCallback)(()=>{null===k.current&&(k.current=requestAnimationFrame(()=>{w.current&&x(w.current.getBoundingClientRect().top(_(),window.addEventListener("scroll",_,{passive:!0}),()=>{null!==k.current&&(cancelAnimationFrame(k.current),k.current=null),window.removeEventListener("scroll",_)}),[_]);let B=(0,l.useCallback)(()=>{v.current?.scrollBy({left:-200,behavior:"smooth"})},[]),E=(0,l.useCallback)(()=>{v.current?.scrollBy({left:200,behavior:"smooth"})},[]);return(0,t.jsx)("div",{ref:w,className:"pointer-events-none sticky top-0 z-[41] md:px-4 md:py-2 md:text-center",children:(0,t.jsx)("div",{className:(0,n.cn)("pointer-events-auto overflow-hidden backdrop-blur-md max-md:bg-[linear-gradient(180deg,#FFF_0%,rgba(255,255,255,0.90)_50%,rgba(255,255,255,0.50)_100%)]","md:top-2 md:mx-auto md:w-fit md:max-w-[min(958px,100%)] md:rounded-[28px] md:bg-[#ffffffd6] md:p-1 md:transition-[box-shadow]",p&&"md:shadow-[0_4px_16px_0_rgba(0,0,0,0.08),_0_0_32px_0_rgba(0,0,0,0.12)]",u),"data-testid":"subnavigation",children:(0,t.jsxs)("div",{className:(0,n.cn)("relative max-md:py-2"),children:[(0,t.jsx)("div",{className:(0,n.cn)("pointer-events-none absolute top-0 -left-25 z-[5] h-16 w-24 bg-gradient-to-r from-white from-0% via-white via-60% to-transparent transition-[left] md:-top-1 md:h-14 md:rounded-s-[28px]",{"-left-1":h}),"aria-hidden":"true"}),(0,t.jsx)(c.default,{containerClassName:(0,n.cn)("absolute top-[50%] -left-17.5 z-10 transition-[left]",{"left-9.5 md:left-6":h}),onClick:B,tabIndex:h?0:-1,"aria-hidden":!h,"aria-label":"Scroll left",direction:"left"}),(0,t.jsx)("div",{ref:v,className:(0,n.cn)("scrollbar-hide flex h-12 items-center gap-2 overflow-x-auto px-1 max-md:px-5"),children:e.map((e,a)=>{let l=L===a,i=e.href??("/"===e.slug?d||"/":`${d}/${e.slug}`),o=(0,n.cn)("h-11 rounded-full px-4 py-2 text-sm whitespace-nowrap transition-[outline-color,border-color,outline-width] duration-150 ease-out","border border-[#0000001a] bg-transparent text-black","inline-flex items-center focus-visible:ring-1 focus-visible:ring-black focus-visible:outline-none",l?"border-transparent font-semibold outline outline-2 outline-black":"font-semibold hover:border-transparent hover:outline hover:outline-2 hover:outline-black");return(0,t.jsx)(r.default,{href:i,mpa:m,className:o,"aria-current":l?"page":void 0,sourceModule:"subnavigation",children:e.label},e.slug)})}),(0,t.jsx)("div",{className:(0,n.cn)("pointer-events-none absolute top-0 -right-25 z-[5] h-16 w-24 bg-gradient-to-l from-white from-0% via-white via-60% to-transparent transition-[right] md:-top-1 md:h-14 md:rounded-e-[28px]",{"-right-1":f}),"aria-hidden":"true"}),(0,t.jsx)(c.default,{containerClassName:(0,n.cn)("absolute top-[50%] -right-17.5 z-10 transition-[right]",{"right-9.5 md:right-6":f}),onClick:E,tabIndex:f?0:-1,"aria-hidden":!f,"aria-label":"Scroll right",direction:"right"})]})})})},(e,t)=>e.basePath===t.basePath&&e.mpa===t.mpa&&e.links.length===t.links.length&&e.links.every((e,a)=>e.label===t.links[a]?.label&&e.slug===t.links[a]?.slug&&e.href===t.links[a]?.href));d.displayName="SubnavigationUI",e.s(["SubnavigationUI",0,d])},275466,e=>{"use strict";var t=e.i(297647),a=e.i(477716),l=e.i(352194),r=e.i(959194),i=e.i(890972);function n({links:e,locale:n}){let o=(0,l.useTranslations)("ExploreSubnav"),s=(0,r.getPartner)(),c=o("topStories"),{navLinks:d,basePath:u}=(0,a.useMemo)(()=>({navLinks:[{label:c,slug:"/"},...e.map(e=>({...e,slug:`explore/${e.slug}`}))],basePath:"en-US"===n?"":`/${n}`}),[e,n,c]);return"samsung"===s?null:(0,t.jsx)(i.SubnavigationUI,{links:d,basePath:u})}e.s(["ExploreSubnav",()=>n])},499746,e=>{"use strict";var t=e.i(297647),a=e.i(477716),l=e.i(475566),r=e.i(427309),i=e.i(579310),n=e.i(310847),o=e.i(528600),s=e.i(405052),c=e.i(147732),d=e.i(381477),u=e.i(240058),m=e.i(316078),h=e.i(180193),g=e.i(368847),f=e.i(889951),b=e.i(343277),p=e.i(674885),x=e.i(617874),v=e.i(375570),w=e.i(693796),j=e.i(747961);let k=(0,a.forwardRef)(({title:e,titleId:a,desc:l,descId:r,...i},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":r,...i,children:[l?(0,t.jsx)("desc",{id:r,children:l}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Current Location"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M2 6.491a.5.5 0 0 0 .315.473l4.8 1.92 1.92 4.801A.5.5 0 0 0 9.5 14h.008a.5.5 0 0 0 .462-.329l4-11a.5.5 0 0 0-.64-.64l-11 4A.5.5 0 0 0 2 6.49"})]})),y=a.default.forwardRef((e,a)=>(0,t.jsx)(j.BaseIcon,{ref:a,icon:k,...e}));y.displayName="CurrentLocationFilled";var C=e.i(222127);let N=({identifier:e})=>{let a=(0,v.useParams)(),r=a?.locale||"en-US",i=(0,l.useAtomValue)(p.userUnitPreferenceAtom),n=(0,x.unitsSystemByName)(i)?.code,{fromLocationPoint:o}=(0,w.useLocationData)(),s=e.geocode?["/v3/location/point/geocode",e.geocode,r]:e.placeId?["/v3/location/point/placeId",e.placeId,r]:null,{data:c,isLoading:j}=(0,d.default)(s,()=>e.geocode?(0,b.getLocationPointByGeocode)(e.geocode,r):e.placeId?(0,b.getLocationPointByPlaceId)(e.placeId,r):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),k=c?o(c):void 0,{data:N,isLoading:A}=(0,d.default)(k?.geocode?["observations",k.geocode,n,r]:null,([e,t,a,l])=>(0,f.getCurrentObservations)({geocode:t,units:a,language:l}),{revalidateOnFocus:!1,dedupingInterval:6e4}),L=c?.location?.placeId??e.placeId,{path:I,isGeolocationLoading:S}=(0,C.default)(L||""),P=j||A||!k||S,_=N?.temperature,B=N?.wxPhraseLong,E=N?.iconCode??-1,G=k?.name||k?.city||k?.displayName,R=(0,t.jsxs)("div",{className:"default-hover-box-shadow box-border w-fit max-w-90 cursor-pointer rounded-2xl border border-[#0000001a] transition-[box-shadow,border] hover:border-transparent","aria-label":G?`${G} weather`:"Location weather",children:[(0,t.jsxs)("div",{className:"flex h-16 flex-col justify-center px-3 md:hidden",children:[(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsxs)(g.default,{isLoading:P,skeletonClassName:"h-5 w-28",className:"truncate leading-[1.4] font-bold",children:[e?.isGeoIPLocation&&(0,t.jsx)(y,{className:"mr-2 h-4 w-4"}),G]}),(0,t.jsx)(m.WxIcon,{isLoading:P,loadingIconClassName:"h-6 w-6 shrink-0",iconCode:E,className:"h-6 w-6 shrink-0","aria-hidden":"true",iconTheme:"lightBG"})]}),(0,t.jsxs)("div",{className:"flex text-sm",children:[(0,t.jsx)(g.default,{isLoading:P,skeletonClassName:"h-4 w-6 shrink-0",className:"shrink-0 text-sm leading-normal",color:"secondary",children:(0,t.jsx)(h.Temperature,{value:_})})," ",(P||B)&&(0,t.jsx)(g.default,{isLoading:P,skeletonClassName:"h-4 w-22",color:"secondary",className:"truncate text-sm leading-normal",children:B})]})]}),(0,t.jsxs)("div",{className:"hidden h-20 items-center px-3 pl-4 md:flex",children:[(0,t.jsxs)("div",{className:"mr-2 flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsxs)(g.default,{isLoading:P,skeletonClassName:"h-5 w-28",className:"truncate text-xl leading-normal font-bold",children:[e?.isGeoIPLocation&&(0,t.jsx)(y,{className:"mr-2 h-4 w-4"}),G]}),(P||B)&&(0,t.jsx)(g.default,{isLoading:P,skeletonClassName:"h-4 w-24",color:"secondary",className:"truncate text-sm leading-normal",children:B})]}),(0,t.jsx)(m.WxIcon,{isLoading:P,loadingIconClassName:"mr-1 h-12 w-12 shrink-0",iconCode:E,className:"mr-1 h-12 w-12 shrink-0","aria-hidden":"true",iconTheme:"lightBG"}),(0,t.jsx)(g.default,{isLoading:P,skeletonClassName:"h-8 w-12 shrink-0",className:"shrink-0 text-[40px] leading-none font-extrabold",children:(0,t.jsx)(h.Temperature,{value:_})})]})]});return I?(0,t.jsx)(u.default,{href:I,className:"no-underline md:block md:w-full",children:R}):R};var A=e.i(633647),L=e.i(632137);let I=({locationIdentifiers:e,showScrollButtons:l})=>{let[r,i]=(0,a.useState)(!1),[n,o]=(0,a.useState)(!1),s=(0,a.useRef)(null),d=(0,a.useRef)(null),u=(0,a.useRef)(!1),m=(0,a.useCallback)(()=>{let e=s.current;if(!e||!l){i(!1),o(!1);return}let{scrollLeft:t,offsetWidth:a,scrollWidth:r}=e,n=Math.abs(t),c=n>0,d=n+a(0,c.debounce)(m,150),[m]);(0,a.useEffect)(()=>{let e=s.current;return e&&(u.current="rtl"===getComputedStyle(e).direction),m(),window.addEventListener("resize",h),()=>{null!==d.current&&cancelAnimationFrame(d.current),h.cancel(),window.removeEventListener("resize",h)}},[m,h]);let g=(0,a.useCallback)(()=>{null===d.current&&(d.current=requestAnimationFrame(()=>{m(),d.current=null}))},[m]),f=(0,a.useCallback)(()=>{s.current?.scrollBy({left:-200,behavior:"smooth"})},[]),b=(0,a.useCallback)(()=>{s.current?.scrollBy({left:200,behavior:"smooth"})},[]);return 0===e.length?null:(0,t.jsxs)("div",{className:"relative -mt-2 -mb-4 overflow-hidden",children:[l&&(0,t.jsx)(A.default,{containerClassName:(0,L.cn)("absolute top-[50%] -left-14.5 transition-[left] md:-left-13.5",{"left-9.5 md:left-11":r}),onClick:f,tabIndex:r?0:-1,"aria-hidden":!r,"aria-label":"Scroll left",direction:"left"}),(0,t.jsx)("div",{className:"scrollbar-hide flex gap-2 overflow-x-auto p-4 py-6",role:"list","data-testid":"forecast-module",onScroll:g,ref:s,children:e.map((e,a)=>(0,t.jsx)("div",{role:"listitem",children:(0,t.jsx)(N,{identifier:e})},e.placeId??e.geocode??a))}),l&&(0,t.jsx)(A.default,{containerClassName:(0,L.cn)("absolute top-[50%] -right-14.5 transition-[right] md:-right-13.5",{"right-9.5 md:right-11":n}),onClick:b,tabIndex:n?0:-1,"aria-hidden":!n,"aria-label":"Scroll right",direction:"right"})]})};var S=e.i(663333);let P=()=>{let e=(0,l.useAtomValue)(r.geoipGeocode),c=(0,l.useAtomValue)(i.userLocationsGetAtom),d=(0,l.useAtomValue)(n.wxuUserRecentLocationsAtom),u=(0,l.useAtomValue)(S.deviceClassAtom),{user:m}=(0,o.useUser)(),h=m.isUserLoggedIn,g=(0,a.useMemo)(()=>{let t=[],a=new Set,l=new Set;if(e){let l=(0,s.formatGeocode)(e);t.push({geocode:l,isGeoIPLocation:!0}),a.add(l)}if(h&&c)for(let e of c){if(t.length>=5)break;if(!e.coordinate)continue;let r=(0,s.formatGeocode)(e.coordinate);!a.has(r)&&(t.push({geocode:r,placeId:e.placeID??void 0}),a.add(r),e.placeID&&l.add(e.placeID))}if(d)for(let e of d){if(t.length>=5)break;l.has(e)||(t.push({placeId:e}),l.add(e))}return t},[e,c,d,h]);return 0===g.length?null:(0,t.jsx)(I,{locationIdentifiers:g,showScrollButtons:"mobile"!==u&&"tablet"!==u})};e.s(["ForecastModule",0,P,"default",0,P],499746)},711899,e=>{e.v(t=>Promise.all(["static/chunks/8198254d842f31ab.js"].map(t=>e.l(t))).then(()=>t(171714)))},137688,e=>{e.v(t=>Promise.all(["static/chunks/775f6992a5490e4c.js"].map(t=>e.l(t))).then(()=>t(72990)))}]);