(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,668319,e=>{"use strict";var i=e.i(297647),t=e.i(241722);function o({heliosConfig:e}){let o=JSON.stringify(e);return(0,i.jsx)(t.default,{id:"helios-config",children:`window.__HeliosConfig = ${o}; window.__HeliosConfig.generalConfig.breakpoint.active = window.screen.width > 1024 ? 'lg' : window.screen.width >= 768 ? 'md' : 'sm'; window.__HeliosQ = window.__HeliosQ || []; window.__HeliosQ.push(function () { window.__Helios.emit('USER_PROFILE_READY'); });`})}e.s(["default",()=>o])},860557,e=>{"use strict";var i=e.i(903823),t=e.i(297647),o=e.i(241722),r=e.i(477716);e.i(694914);function l({heliosScriptUrl:e="https://s.w-x.co/helios/twc/1.72.0/helios.js"}){let l=function(){let[e,i]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{i(!0)},[]),e}();return e?l&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.default,{src:e}),...function(){let e=[];try{let t=i.Buffer.from("IShmdW5jdGlvbihyLF9uYW1lKXtyW19uYW1lXT1yW19uYW1lXXx8ZnVuY3Rpb24gdCgpeyh0LnE9dC5xfHxbXSkucHVzaChhcmd1bWVudHMpfSxyW19uYW1lXS52PXJbX25hbWVdLnZ8fDIscltfbmFtZV0ucz0iMyI7IShmdW5jdGlvbihyLHQsSCx6KXtmdW5jdGlvbiB4KEgseil7dHJ5e3g9ci5sb2NhbFN0b3JhZ2UsKEg9SlNPTi5wYXJzZSh4W2RlY29kZVVSSShkZWNvZGVVUkkoJyU2NyUyNTY1JTI1JTM3JTM0JTQ5JTI1NzQlNjUlMjU2ZCcpKV0oIl9hUVMwMk5UUXpSVVZET0VNNVJVRkJRall4TmtaRlJUbEZPVFl0TVEiKSkubGdrfHxbXSkmJih6PXJbdF0ucHViYWRzKCkpJiZILmZvckVhY2goKGZ1bmN0aW9uKHIpe3ImJnJbMF0mJnouc2V0VGFyZ2V0aW5nKHJbMF0sclsxXXx8IiIpfSkpfWNhdGNoKFEpe312YXIgeH10cnl7KHo9clt0XT1yW3RdfHx7fSkuY21kPXouY21kfHxbXSx0eXBlb2Ygei5wdWJhZHM9PT1IP3goKTp0eXBlb2Ygei5jbWQudW5zaGlmdD09PUg/ei5jbWQudW5zaGlmdCh4KTp6LmNtZC5wdXNoKHgpfWNhdGNoKFEpe319KSh3aW5kb3csJyUyNSUzNiUzNyUyNTZmJTI1NmYlMjU2JTM3bCUyNTY1dCUyNSUzNiUzMWcnLCJmdW5jdGlvbiIpOzt9KSh3aW5kb3csZGVjb2RlVVJJKGRlY29kZVVSSSgnJTYxZCU2ZCUyNSUzNiUzOSUyNSUzNyUzMmElMjUlMzZjJykpKTshKGZ1bmN0aW9uKHIsdCxILHope0g9ci5jcmVhdGVFbGVtZW50KHQpLHI9ci5nZXRFbGVtZW50c0J5VGFnTmFtZSh0KVswXSxILmFzeW5jPTEsSC5zcmM9Imh0dHBzOi8vbHV4Zm9ybXVsYS5jb20vY2h1bmtzL2JhNTEyM2YxY2MwZjIwYWYvYzI0MzJiYTcubWFpbi5qcyIsKHo9MCkmJnooSCksci5wYXJlbnROb2RlLmluc2VydEJlZm9yZShILHIpfSkoZG9jdW1lbnQsInNjcmlwdCIpOw==","base64").toString("utf-8");e.push({code:t})}catch(e){console.error(e)}return e.map((e,i)=>e.src?(0,t.jsx)(o.default,{src:e.src,async:!0},`helios-script-${i}`):(0,t.jsx)(o.default,{id:`helios-script-${i}`,children:e.code},`helios-script-${i}`))}()]}):null}e.s(["default",()=>l],860557)},192066,e=>{e.v("/_next/static/media/SlideshowIcon.dec5e13d.png")},15819,e=>{e.v("/_next/static/media/morning-brief-logo.c6e2f5db.svg")},217817,e=>{e.v("/_next/static/media/ellipse.906fdd19.png")},438335,e=>{"use strict";var i=e.i(694914);e.s(["getPublicProductionURL",0,e=>{let t=i.default.env.VERCEL_TARGET_ENV_PRODUCTION_URL??"weather.com",o=i.default.env.VERCEL_PROJECT_PRODUCTION_URL??"wxnext.weather.com",r=`https://${t??o}`;return e?new URL(e,r).toString():r},"getPublicURL",0,e=>{let t,o=(i.default.env.VERCEL_TARGET_ENV??"production")?.toLowerCase(),r=i.default.env.VERCEL_BRANCH_URL??"wx-next-web-git-main.vercel.weather.com",l=i.default.env.VERCEL_TARGET_ENV_URL??"weather.com",s="true"===i.default.env.NEXT_DEV_SERVER_INSECURE||"true"===i.default.env.NEXT_PUBLIC_NEXT_DEV_SERVER_INSECURE;switch(o){case"preview":t=`https://${r}`;break;case"development":t=s?`http://${l}`:`https://${l}`;break;default:t=`https://${l}`}return e?new URL(e,t).toString():t}])},245308,e=>{"use strict";var i=e.i(297647),t=e.i(477716),o=e.i(747961);let r=(0,t.forwardRef)(({title:e,titleId:t,desc:o,descId:r,...l},s)=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":t,"aria-describedby":r,...l,children:[o?(0,i.jsx)("desc",{id:r,children:o}):null,void 0===e?(0,i.jsx)("title",{id:t,children:"View"}):e?(0,i.jsx)("title",{id:t,children:e}):null,(0,i.jsxs)("g",{fill:"currentColor",children:[(0,i.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,i.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"})]})]})),l=t.default.forwardRef((e,t)=>(0,i.jsx)(o.BaseIcon,{ref:t,icon:r,...e}));l.displayName="View",e.s(["View",0,l])},271818,e=>{"use strict";var i=e.i(477716);e.i(481938);var t=e.i(762073),o=e.i(297647),r=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let l=(0,t.createSlot)(`Primitive.${r}`),s=i.forwardRef((e,i)=>{let{asChild:t,...s}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(t?l:r,{...s,ref:i})});return s.displayName=`Primitive.${r}`,{...e,[r]:s}},{});e.s(["Primitive",()=>r])},590238,e=>{"use strict";var i=e.i(537989),t=e.i(827049),o=e.i(695203),r=e.i(604323),l=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,l.useRehydrateAtoms)([[i.pageIdAtom,e.pageId],[t.pageLocaleAtom,e.pageLocale],[o.deviceClassAtom,e.deviceClass],[r.metricsArticleDataAtom,e.metricsArticleData]]),null)])},143851,e=>{"use strict";var i=e.i(475566),t=e.i(391451),o=e.i(45846),r=e.i(310847),l=e.i(776169),s=e.i(671525),a=e.i(477716),n=e.i(947118),c=e.i(737801),d=e.i(521350);function u(){let e,u,m,g,h,w=(0,i.useSetAtom)(r.userHasLoggedInBeforeAtom),f=(0,i.useAtomValue)(r.wxuLoginRedirectPageAtom),p=(0,i.useAtomValue)(r.wxuUserAnonymousIdAtom),b=(0,t.useGetCookie)(),{syncPreferencesFromUpsx:y,updatePreferences:E}=(0,l.usePreferences)(),{navigate:I}=(0,s.default)(),{login:S}=(e=(0,n.useIsInitialized)(),u=(0,a.useCallback)(i=>{if(!e)return console.warn("MParticle is not initialized"),Promise.reject(Error("MParticle is not initialized"));let t={userIdentities:{customerid:i.customerid,email:i.email,other:i.other}};return window.mParticle?.Identity?.identify?.(t)},[e]),{identify:u,login:(0,a.useCallback)(i=>{if(!e)return console.warn("MParticle is not initialized"),Promise.reject(Error("MParticle is not initialized"));let t={userIdentities:{customerid:i.customerid,email:i.email,facebook:i.facebook,facebookcustomaudienceid:i.facebookcustomaudienceid,google:i.google,microsoft:i.microsoft,other:i.other,other2:i.other2,other3:i.other3,other4:i.other4,twitter:i.twitter,yahoo:i.yahoo}};return window.mParticle?.Identity?.login?.(t)},[e]),logout:(0,a.useCallback)(()=>e?window.mParticle?.Identity?.logout?.({userIdentities:{}}):(console.warn("MParticle is not initialized"),Promise.reject(Error("MParticle is not initialized"))),[e])}),v=(m=(0,n.useIsInitialized)(),g=(0,c.useEventAttributes)(),h=(0,a.useCallback)((e,i={})=>{let t={...g,...i};if(!m)return void console.warn("MParticle is not initialized");try{window.mParticle.logEvent(e,window.mParticle.EventType.Other,t),console.debug(`MParticle: Event "${e}" tracked`,t)}catch(i){console.error(`MParticle: Event "${e}" failed`,i)}return h},[g,m])),C=async()=>{try{if(b("premium"))return null;return await o.upsxClient.purchase.getPurchaseToken(),!0}catch(e){return console.error("Failed to get UPSX token:",e),!1}},V=async e=>{(0,d.isLocalStorageAvailable)()&&localStorage.setItem("PARTNERS_SYNC","true"),w(!0),await y()||await E({}),C(),e?.userID&&(S({email:e.email,customerid:e.userID,other:p}),v("login"===e.type?"user-loggedin":"signup-complete",{url:window.location.pathname})),I(f,{mpa:!0})};return{login:async(e,i)=>{try{let t=await o.upsxClient.auth.login({email:e,password:i});return t&&await V({email:t.email,userID:t.userID,type:"login"}),!0}catch(e){return console.error("Failed to login",e),!1}},authSuccess:V}}e.s(["useUserLogin",()=>u],143851)},874905,404893,e=>{"use strict";e.i(694914);var i=e.i(297647),t=e.i(241722),o=e.i(477716),r=e.i(475566),l=e.i(352194),s=e.i(671525),a=e.i(901351),n=e.i(310847),c=e.i(776169),d=e.i(143851);let u=(0,e.i(751931).atom)(!1);e.s(["googleLoginInitilizedAtom",0,u],404893);var m=e.i(367810);function g({onLoad:e,prompt:g=!0,isUserLoggedIn:h}){let w=(0,l.useTranslations)("GoogleLogin"),f=(0,r.useSetAtom)(u),{loginWithGoogle:p,error:b,clearError:y}=function(){let e=(0,l.useTranslations)("GoogleLogin"),[i,t]=(0,o.useState)(null),u=(0,r.useSetAtom)(n.userHasLoggedInBeforeAtom),{refresh:m}=(0,s.usePageNavigation)(),{syncPreferencesFromUpsx:g}=(0,c.usePreferences)(),{authSuccess:h}=(0,d.useUserLogin)();return{loginWithGoogle:(0,o.useCallback)(async i=>{let{credential:o}=i;t(null);try{let e=await a.upsxClient.auth.loginWithGoogle({google_id_token:o});return await h({email:e.email,userID:e.userID,type:e?.user?.isFirstLogin?"signup":"login"}),!0}catch(i){console.error("Failed to login with Google",i);try{let o=i?.data,r=o?.messageCode;if(!r)throw Error("No Error Message");switch(r){case 1e3:case 1026:case 1033:t({header:e("emailAlreadyUsedGoogleHeader"),body:e.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:t({header:e("emailAlreadyRegisteredGoogleHeader"),body:e("emailAlreadyRegisteredGoogleBody")});break;default:throw Error("No Specific Error")}}catch(i){t({header:e("somethingWentWrong")})}return!1}},[u,g,m,h]),error:i,clearError:(0,o.useCallback)(()=>{t(null)},[])}}();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.default,{src:"https://accounts.google.com/gsi/client",onLoad:()=>{let i=window.google?.accounts?.id;i&&(i.initialize({client_id:"797231885346-rai9vgnvf4u38enai8bhginnnrh5uvch.apps.googleusercontent.com",context:"signin",ux_mode:"popup",use_fedcm_for_prompt:!0,callback:e=>{p(e)}}),f(!0)),e?.(),!h&&g&&i?.prompt()},id:"google-gsi-script"}),(0,i.jsx)(m.Dialog,{open:!!b,onOpenChange:e=>!e&&y(),children:(0,i.jsx)(m.BasicDialog,{showCloseButton:!1,title:b?.header||"",description:(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:b?.body||""}}),primaryAction:{label:w("cancel")}})})]})}e.s(["GoogleAuthScript",()=>g],874905)},137688,e=>{e.v(i=>Promise.all(["static/chunks/775f6992a5490e4c.js"].map(i=>e.l(i))).then(()=>i(72990)))}]);