(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,145473,e=>{"use strict";var t=e.i(458201),a=e.i(538167),i=e.i(526932),s=e.i(282446),l=e.i(789422),n=e.i(901351),o=e.i(422825),r=e.i(837879),u=e.i(87809),c=e.i(358233),m=e.i(394481),d=e.i(576816),p=e.i(539353),h=e.i(553329),f=e.i(695881),g=e.i(143851),b=e.i(703123),v=e.i(61284);let k=(0,f.createLogger)("useGoogleLogin");var w=e.i(404893),j=e.i(367810),y=e.i(792461);e.s(["GoogleAuthScriptClient",0,function({onLoad:e,prompt:f=!0,isUserLoggedIn:P,redirectToCheckoutOnSignup:_,oneTapOnly:x=!1}){let I=(0,l.r)("GoogleLogin"),C=(0,s.F)(w.f),{loginWithGoogle:E,error:T,clearError:z}=function(e=!1){let t=(0,l.r)("GoogleLogin"),[i,f]=(0,a.useState)(null),w=(0,s.y)(b.f),{updateEmailSubscriptions:j}=(0,o.f)({skipStatus:!0}),{authSuccess:y,authRedirect:P}=(0,g.f)(),_=(0,r.f)(),x=(0,s.y)(m.f)??u.U.EXEMPT,I=_&&c.D.includes(x)&&x!==u.U.USA_CCPA,{newsletter:C,weekly:E}=w,T=I||w.onYourRadar,z=I||w.marketing,A=(0,d.f)({formVariant:"account page google",sensitiveDataAuthorization:!0,deviceTimeZone:"u">typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:void 0}),S=(0,p.f)({formVariant:"account page google",loginMethod:"Google",marketingOptedIn:!0===z}),F=(0,a.useCallback)(async t=>{let a=await n.f.auth.loginWithGoogle({google_id_token:t}),i=!!a.isFirstLogin;if(await y({email:a.email,userID:a.userID,type:i?"signup":"login"},!1,{skipSignupCompleteEvent:i}),!i)return P(),!0;let{error:s}=await (0,h.f)(A());return s&&k.warn("Failed to track signup-complete for Google signup",s),S(),await j({newsletter:C,weekly:E,onYourRadar:T,marketing:z}).catch(e=>{k.error("Failed to update email subscriptions",e)}),e&&_?P(v.f):P(),!0},[y,P,A,S,j,C,E,T,z,e,_]);return{loginWithGoogle:(0,a.useCallback)(async({credential:e})=>{f(null);let{data:a,error:i}=await (0,h.f)(F(e));if(a)return!0;k.error("Failed to login with Google",i);let{messageCode:s}=i?.data??{};switch(s){case 1e3:case 1026:case 1033:f({header:t("emailAlreadyUsedGoogleHeader"),body:t.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:f({header:t("emailAlreadyRegisteredGoogleHeader"),body:t("emailAlreadyRegisteredGoogleBody")});break;default:f({header:t("somethingWentWrong")})}return!1},[F,t]),error:i,clearError:(0,a.useCallback)(()=>f(null),[])}}(_),A=(0,y.f)(E),S=(0,a.useRef)(null);T&&(S.current=T);let F=S.current;return(0,t.jsxs)(t.Fragment,{children:[!(x&&P)&&(0,t.jsx)(i.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=>{A.current?.(e)}}),C(!0)),e?.(),!P&&f&&t?.prompt()},id:"google-gsi-script",strategy:x?"lazyOnload":"afterInteractive"}),F&&(0,t.jsx)(j.N,{open:!!T,onOpenChange:e=>!e&&z(),children:(0,t.jsx)(j.J,{showCloseButton:!1,title:F.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:F.body||""}}),primaryAction:{label:I("cancel"),onClick:z}})})]})}],145473)},166799,e=>{"use strict";var t=e.i(458201),a=e.i(538167),i=e.i(645968),s=e.i(742436),l=e.i(42318),n=e.i(553329),o=e.i(901351),r=e.i(317298),u=e.i(528600);async function c(e,t){let{data:a,error:i}=await (0,n.f)(e?o.f.segmentation.getUserMetrics():o.f.segmentation.getAnonymousEndpointMetrics(t));if(i)return null;let s={promotesNews:(0,r.B)(a?.metrics)};return(0,r.d)(s),s}let m="cw13257",d="data-today-news",p={layout:"default",variant:null,eligible:!1};function h(e){document.documentElement.setAttribute(d,e)}function f(){document.documentElement.removeAttribute(d)}function g(){return!function(){let{user:e}=(0,u.f)(),t=e.isUserLoggedIn?"upsx/segmentation/metrics/user":e.anonId?"upsx/segmentation/metrics/endpoint":null,{data:a}=(0,l.f)(t,()=>c(e.isUserLoggedIn,e.anonId),{shouldRetryOnError:!1})}(),null}function b(){return(0,i.f)(m),null}e.s(["TodayNewsResolver",0,function(){let e=(0,a.useContext)(s.ExperimentContext),i=e?.isFetchComplete??!1,[l,n]=(0,a.useState)(!1),[o,u]=(0,a.useState)(!1),[c,d]=(0,a.useState)(null);(0,a.useEffect)(()=>{let e=window.__wxTodayNews??p;return h(e.layout),n(e.eligible),"pending"===e.layout?u(!0):e.forced||d(e.variant),f},[]);let v=(0,a.useRef)(!1),k=(0,a.useCallback)(e=>{if(!v.current){v.current=!0,window.__wxTodayNews={...e,eligible:!0},h(e.layout);try{localStorage.setItem("wxu-today-news-layout",JSON.stringify(e))}catch{}u(!1),d(e.variant)}},[]);return(0,a.useEffect)(()=>{if(!o)return;let e=setTimeout(()=>{k({layout:"default",variant:null})},2e3);return()=>clearTimeout(e)},[o,k]),(0,a.useEffect)(()=>{var t,a,s;if(!o||!e||!i)return;let{key:l,value:n}=e.variant(m),u="control"===(a=t=l||n)||"v1"===a||"v2"===a?t:null;k({layout:u?(s=(0,r.o)()?.promotesNews??!1,"v2"===u||"v1"===u&&s?"promoted":"default"):"default",variant:u})},[o,e,i,k]),(0,t.jsxs)(t.Fragment,{children:[l&&(0,t.jsx)(g,{}),c&&(0,t.jsx)(b,{})]})}],166799)},240279,e=>{"use strict";var t=e.i(458201),a=e.i(538167),i=e.i(580547),s=e.i(282446),l=e.i(429745),n=e.i(498076),o=e.i(269153),r=e.i(677691),u=e.i(42318),c=e.i(553329),m=e.i(695881),d=e.i(901351),p=e.i(528600);let h=(0,m.createLogger)("useWebToAppIntent");var f=e.i(598513),g=e.i(7150),b=e.i(521231);let v="wx-next/web-to-app-install-modal:shown-at",k="web-to-app-install-modal",w="both",j=(0,m.createLogger)("WebToAppInstallModal");e.s(["WebToAppInstallModal",0,()=>{let e=(0,n.f)(),m=(0,o.f)(),y=(0,i.X)(),[P,_]=(0,a.useState)(!1),[x,I]=(0,a.useState)(void 0),C=(0,a.useRef)(!1),E=(0,a.useRef)(!1),T=(0,a.useRef)(null),{href:z}=(0,r.f)("web-to-app-install-modal","web-to-app-install-modal"),A=(0,f.f)(),S=(0,s.F)(g.f),F=e&&!m&&"en-US"===y;(0,a.useEffect)(()=>{I(!!F&&!function(){try{let e=localStorage.getItem(v);if(!e)return!1;return Date.now()-parseInt(e,10){var e;let a,i,{data:s,error:l}=await (0,c.f)(t.isUserLoggedIn?d.f.segmentation.getUserMetrics():d.f.segmentation.getAnonymousEndpointMetrics(t.anonId));return l?(h.warn("UPSx web-to-app lookup failed",{error:l}),!1):(e=s?.metrics,"number"==typeof(i="string"==typeof(a=e?.fpdprobwebtoapp)?Number(a):a)&&Number.isFinite(i)&&i>=.5)},{shouldRetryOnError:!1});return i}(!0===x);return((0,a.useEffect)(()=>{if(!x||!D||C.current)return;let e=setTimeout(()=>{C.current=!0;try{localStorage.setItem(v,Date.now().toString())}catch(e){j.warn("localStorage write failed, cooldown will not persist",{error:e})}_(!0),A({moduleId:k,interactionType:"shown",featureFocus:w})},5e3);return()=>clearTimeout(e)},[x,D,A]),(0,a.useEffect)(()=>{let e=void 0===x||x&&void 0===D;S(F&&(e||!0===x&&!0===D))},[F,x,D,S]),(0,a.useEffect)(()=>()=>S(!1),[S]),!0!==x)?null:(0,t.jsx)(l.f,{open:P,onOpenChange:e=>{e||E.current||A({moduleId:k,interactionType:"dismiss-click",interactionElement:T.current??"overlay-or-escape",featureFocus:w}),E.current=!1,T.current=null,_(e)},title:"",imageContent:(0,t.jsx)(b.default,{className:"size-12 text-[#003399]"}),headline:"The Weather Channel is better on the app",description:"Faster performance, severe notifications, and exclusive radar layers.",getAppHref:z,onGetAppClick:()=>{E.current=!0,A({moduleId:k,interactionType:"get-app-click",featureFocus:w}),_(!1)},dismissLabel:"Not now",onDismissClick:()=>{T.current="not-now"},onCloseClick:()=>{T.current="close-button"}})}],240279)},137688,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1dgd-1au-uut5.js"].map(t=>e.l(t))).then(()=>t(72990)))},576816,703123,e=>{"use strict";var t=e.i(538167),a=e.i(293163),i=e.i(947118),s=e.i(737801);e.s(["f",0,(e={})=>{let l=(0,i.f)(),n=(0,s.f)(),[o,r]=(0,t.useState)(!1),u=(0,t.useRef)(!1),c=(0,t.useMemo)(()=>{let t={...n,formVariant:e.formVariant,sensitiveDataAuthorization:e.sensitiveDataAuthorization,deviceTimeZone:e.deviceTimeZone,sourcePage:e.sourcePage,sourceModule:e.sourceModule,sourceElement:e.sourceElement,sourcePosition:e.sourcePosition,mParticleGranted:e.mParticleGranted??!0};return void 0!==e.url&&(t.url=e.url),void 0===t.formVariant&&delete t.formVariant,void 0===t.sensitiveDataAuthorization&&delete t.sensitiveDataAuthorization,void 0===t.deviceTimeZone&&delete t.deviceTimeZone,void 0===t.sourcePage&&delete t.sourcePage,void 0===t.sourceModule&&delete t.sourceModule,void 0===t.sourceElement&&delete t.sourceElement,void 0===t.sourcePosition&&delete t.sourcePosition,t},[n,e.formVariant,e.url,e.sensitiveDataAuthorization,e.deviceTimeZone,e.sourcePage,e.sourceModule,e.sourceElement,e.sourcePosition,e.mParticleGranted]);return(0,t.useEffect)(()=>{(0,a.k)(c)&&!o&&r(!0)},[c,o]),(0,t.useCallback)(async()=>{if((l||window.mParticle?.isInitialized?.())&&o&&!u.current)try{window.mParticle?.logEvent?.("signup-complete",window.mParticle?.EventType?.Other,c),u.current=!0,console.debug(`MParticle: Event "signup-complete" tracked - ${c.pageId}`)}catch(e){console.error('MParticle: Event "signup-complete" failed',e)}},[l,c,o])}],576816);let l=(0,e.i(144683).g)({});e.s(["f",0,l],703123)},711899,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0dbjs_srx7ito.js"].map(t=>e.l(t))).then(()=>t(758048)))},406752,e=>{"use strict";var t=e.i(538167),a=e.i(295553),i=e.i(991511),s=e.i(282446),l=e.i(726249),n=e.i(935807),o=e.i(919101),r=e.i(527091),u=e.i(767685),c=e.i(310847),m=e.i(439766);e.s(["LocationBoundary",0,({locationPoint:e,canonicalLocation:d})=>{let p=(0,s.y)(c.d),h=(0,s.y)(c.z),[,f]=(0,s.q)(a.f),g=(0,s.F)(m.f),b=(0,t.useMemo)(()=>{let t,a;return d?(0,u.f)(d,h):(t=(0,o.f)(e.location,p),a=void 0,{displayName:t.displayName,adminDistrict:t.adminDistrict,geocode:(0,l.formatGeocode)(`${t.latitude},${t.longitude}`),placeId:t.placeId,featureId:t.featureId,city:t.city,countryCode:t.countryCode,adminDistrictCode:t.adminDistrictCode||"",presentationName:(0,n.e)(t,[],!1,a),name:(0,n.P)(t,[],!1,a),context:(0,n.d)(t,[],!1,a),ianaTimeZone:(0,r.f)(t.ianaTimeZone),postalCode:t.postalCode,address:t.address||"",type:t.type,dmaCd:t.dmaCd||"",isDisputedLocation:t.disputedArea})},[d,e,p,h]);(0,i.f)([[a.f,b]]);let v=(0,t.useRef)(null);return(0,t.useEffect)(()=>{f(b);let e=b.placeId;v.current!==e&&(g({placeId:b.placeId,geocode:b.geocode,featureId:b.featureId}),v.current=e)},[b,f,g]),null}],406752)},900635,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1hzjbmj0sm36b.js"].map(t=>e.l(t))).then(()=>t(629004)))},204395,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0_cfh3q2a9_ux.js","static/immutable/chunks/11zbnxs9co_20.js"].map(t=>e.l(t))).then(()=>t(240535)))},226535,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0cbht9sgy1_ye.js"].map(t=>e.l(t))).then(()=>t(513722)))},276866,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2f0asrk37n3-g.js"].map(t=>e.l(t))).then(()=>t(848321)))},837309,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2tn67n6ibb-89.js"].map(t=>e.l(t))).then(()=>t(136535)))},143334,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0hyn6o6gvz5t9.js"].map(t=>e.l(t))).then(()=>t(499484)))},629719,e=>{e.v(t=>Promise.all(["static/immutable/chunks/187zhvpo5j7j3.js"].map(t=>e.l(t))).then(()=>t(904504)))},557537,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2au6lyv-fe4ih.js"].map(t=>e.l(t))).then(()=>t(555575)))},739891,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2yyhhymxklvfs.js"].map(t=>e.l(t))).then(()=>t(507521)))},880074,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0jed3vfk2do11.js"].map(t=>e.l(t))).then(()=>t(95720)))},988740,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1z7jsox9xbr0f.js"].map(t=>e.l(t))).then(()=>t(4498)))},871210,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0e_xdm1m_t55y.js"].map(t=>e.l(t))).then(()=>t(682228)))},788045,e=>{e.v(t=>Promise.all(["static/immutable/chunks/20x21m2n43t8u.js"].map(t=>e.l(t))).then(()=>t(370427)))},155484,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3jyi7humgjpl5.js"].map(t=>e.l(t))).then(()=>t(268272)))},459658,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3zuida-zbpgc9.js"].map(t=>e.l(t))).then(()=>t(741904)))},105879,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0rfzc9yx3jr2z.js"].map(t=>e.l(t))).then(()=>t(538911)))},456925,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2gs_09g-f6_n5.js"].map(t=>e.l(t))).then(()=>t(831433)))},961808,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2m1ot2izdp8u3.js"].map(t=>e.l(t))).then(()=>t(331097)))},657044,e=>{e.v(t=>Promise.all(["static/immutable/chunks/17wnmb_arv4u_.js"].map(t=>e.l(t))).then(()=>t(737953)))},722501,e=>{e.v(t=>Promise.all(["static/immutable/chunks/310u75tuyk7e8.js"].map(t=>e.l(t))).then(()=>t(210223)))},815637,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0oqqcly9ii8yz.js"].map(t=>e.l(t))).then(()=>t(359759)))},826256,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1rtdkwvb2ckg3.js"].map(t=>e.l(t))).then(()=>t(3603)))},99975,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1p6dtrtmk2gko.js"].map(t=>e.l(t))).then(()=>t(81906)))},110539,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0s5d2a1j84j7k.js"].map(t=>e.l(t))).then(()=>t(141096)))},109892,e=>{e.v(t=>Promise.all(["static/immutable/chunks/22qnd1fep5g3m.js"].map(t=>e.l(t))).then(()=>t(130980)))},587313,e=>{e.v(t=>Promise.all(["static/immutable/chunks/08-t9shuexxkb.js"].map(t=>e.l(t))).then(()=>t(698310)))},568089,e=>{e.v(t=>Promise.all(["static/immutable/chunks/44s2f0dc_191a.js"].map(t=>e.l(t))).then(()=>t(849402)))},15859,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1baxyfyk0uw4a.js","static/immutable/chunks/3-h4hg5wwe65o.js"].map(t=>e.l(t))).then(()=>t(831033)))},151775,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2bw_cre76r-hr.js"].map(t=>e.l(t))).then(()=>t(585553)))},168876,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1ajpfq-tvwzpt.js"].map(t=>e.l(t))).then(()=>t(69917)))},831163,e=>{e.v(t=>Promise.all(["static/immutable/chunks/18bqem20n7n97.js"].map(t=>e.l(t))).then(()=>t(53945)))},520848,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3aq8xfrgbzfcq.js"].map(t=>e.l(t))).then(()=>t(721423)))},553277,e=>{e.v(t=>Promise.all(["static/immutable/chunks/25z3mbe3eowc8.js"].map(t=>e.l(t))).then(()=>t(329823)))},850863,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1g6px_w8rpzj_.js"].map(t=>e.l(t))).then(()=>t(539371)))},434989,e=>{e.v(t=>Promise.all(["static/immutable/chunks/43m7bj8q63cl6.js"].map(t=>e.l(t))).then(()=>t(7225)))},550029,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0e8v-uozy8bi5.js"].map(t=>e.l(t))).then(()=>t(906603)))},155945,e=>{e.v(t=>Promise.all(["static/immutable/chunks/04has5f2ikgp1.js","static/immutable/chunks/0sgemuch-62p2.js"].map(t=>e.l(t))).then(()=>t(822342)))},403403,e=>{e.v(t=>Promise.all(["static/immutable/chunks/04afuedyil20q.js"].map(t=>e.l(t))).then(()=>t(749045)))},937491,e=>{e.v(t=>Promise.all(["static/immutable/chunks/44w-7e3akhzd3.js"].map(t=>e.l(t))).then(()=>t(416649)))},874846,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0_jljhmarjnhq.js"].map(t=>e.l(t))).then(()=>t(70726)))},298729,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3pubwep_2_j42.js"].map(t=>e.l(t))).then(()=>t(775668)))},709637,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2_e3bv20ia8s-.js"].map(t=>e.l(t))).then(()=>t(589563)))},296976,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1yts2r8va3dd5.js"].map(t=>e.l(t))).then(()=>t(208772)))},670279,e=>{"use strict";var t=e.i(458201),a=e.i(538167),i=e.i(526932),s=e.i(204782);e.s(["Newsroom",0,({pageTemplate:e,pageDashboard:l})=>{let n=(0,s.f)();return((0,a.useEffect)(()=>{n&&e&&(window._newsroom=window._newsroom||[],window._newsroom.push({pageTemplate:e}),l&&window._newsroom.push({pageDashboard:l}),window._newsroom.push("auditClicks"),window._newsroom.push("trackPage"))},[n,e,l]),n&&e)?(0,t.jsx)(i.default,{src:"//c2.taboola.com/nr/theweatherchannel/newsroom.js",strategy:"afterInteractive",id:"newsroom_loader_script"}):null}])},808110,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3xed0rr42a2uw.js"].map(t=>e.l(t))).then(()=>t(738587)))},460988,e=>{e.v(t=>Promise.all(["static/immutable/chunks/21ul0r6rwg-o8.js","static/immutable/chunks/2mxmecum0d5be.js","static/immutable/chunks/27pfmgqfs7ct6.js","static/immutable/chunks/05crlne1d1azy.js","static/immutable/chunks/11esi59vuay38.js","static/immutable/chunks/3fvkjr0plttut.js"].map(t=>e.l(t))).then(()=>t(636705)))},404893,e=>{"use strict";let t=(0,e.i(144683).g)(!1);e.s(["f",0,t])},61284,e=>{"use strict";e.s(["f",0,"/subscribe/checkout?products=e251f39b-afd7-4ad9-9c87-5e2a8ed63fbb&promoCode=5OFF&tpcc=mktg-5OFF-reg"])}]);