(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,590238,e=>{"use strict";var t=e.i(537989),r=e.i(827049),i=e.i(695203),a=e.i(604323),s=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,s.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[r.pageLocaleAtom,e.pageLocale],[i.deviceClassAtom,e.deviceClass],[a.metricsArticleDataAtom,e.metricsArticleData]]),null)])},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),r=e.i(241722),i=e.i(477716),a=e.i(475566),s=e.i(352194),n=e.i(671525),o=e.i(901351),l=e.i(310847),c=e.i(776169),u=e.i(143851),d=e.i(404893),m=e.i(367810);function h({onLoad:e,prompt:h=!0,isUserLoggedIn:g}){let p=(0,s.useTranslations)("GoogleLogin"),f=(0,a.useSetAtom)(d.googleLoginInitilizedAtom),{loginWithGoogle:v,error:w,clearError:b}=function(){let e=(0,s.useTranslations)("GoogleLogin"),[t,r]=(0,i.useState)(null),d=(0,a.useSetAtom)(l.userHasLoggedInBeforeAtom),{refresh:m}=(0,n.usePageNavigation)(),{syncPreferencesFromUpsx:h}=(0,c.usePreferences)(),{authSuccess:g}=(0,u.useUserLogin)();return{loginWithGoogle:(0,i.useCallback)(async t=>{let{credential:i}=t;r(null);try{let e=await o.upsxClient.auth.loginWithGoogle({google_id_token:i});return await g({email:e.email,userID:e.userID,type:e?.user?.isFirstLogin?"signup":"login"}),!0}catch(t){console.error("Failed to login with Google",t);try{let i=t?.data,a=i?.messageCode;if(!a)throw Error("No Error Message");switch(a){case 1e3:case 1026:case 1033:r({header:e("emailAlreadyUsedGoogleHeader"),body:e.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:r({header:e("emailAlreadyRegisteredGoogleHeader"),body:e("emailAlreadyRegisteredGoogleBody")});break;default:throw Error("No Specific Error")}}catch(t){r({header:e("somethingWentWrong")})}return!1}},[d,h,m,g]),error:t,clearError:(0,i.useCallback)(()=>{r(null)},[])}}();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.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=>{v(e)}}),f(!0)),e?.(),!g&&h&&t?.prompt()},id:"google-gsi-script"}),(0,t.jsx)(m.Dialog,{open:!!w,onOpenChange:e=>!e&&b(),children:(0,t.jsx)(m.BasicDialog,{showCloseButton:!1,title:w?.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:w?.body||""}}),primaryAction:{label:p("cancel")}})})]})}e.s(["GoogleAuthScript",()=>h],874905)},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")},482317,e=>{"use strict";let t=(0,e.i(514514).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",()=>t],482317)},109339,470015,979538,e=>{"use strict";var t=e.i(297647),r=e.i(477716),i=e.i(747961);let a=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:a,...s},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-label":"The Weather Company - Home",viewBox:"0 0 432.96 399.36",ref:n,"aria-labelledby":r,"aria-describedby":a,...s,children:[i?(0,t.jsx)("desc",{id:a,children:i}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"The Weather Channel"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{d:"M152.48 347.3c0 4.02 2.48 6.71 5.9 6.71 2.51 0 5.01-1.3 7.01-3.52l.21-11.03h-.62c-9.31 0-12.5 1.74-12.5 7.84M165.2 144c0-3.81-.4-5.81-1.61-7.72-1.3-1.99-3.2-3.01-5.9-3.01-5.12 0-8.04 4.02-8.04 11.13v.19h15.54V144zm7.82 109.49c0 4.01 2.52 6.72 5.94 6.72 2.5 0 5.01-1.32 7.01-3.52l.21-11.03h-.6c-9.34.01-12.56 1.73-12.56 7.83m-34.34-17.25c0-3.81-.41-5.8-1.6-7.7-1.32-2.02-3.22-3.03-5.94-3.03-5.11 0-8 4.03-8 11.14v.19h15.53v-.6zM316 319.32c-5.1 0-8.01 4.02-8.01 11.15v.19h15.54v-.59c0-3.82-.39-5.83-1.59-7.72-1.32-2.02-3.22-3.03-5.94-3.03"}),(0,t.jsx)("path",{d:"M372.65 228.54c-1.33-.7-2.41-1.01-3.91-1.01-3.02 0-5.74 1.4-8.21 4.3v36.3h-13.46v-34.3c0-6.9-.8-12.13-1.9-15.02l12.02-3.24c1.21 2.11 1.9 4.44 2.12 7.32 1.92-2.59 5.09-5.4 7.63-6.51 1.1-.49 2.9-.81 4.38-.81 2.02 0 2.92.2 5.03 1.11zM360.2 363.13c-5.73 0-10.32-2.69-11.94-7.03-1.01-2.59-1.21-4.18-1.21-11.5v-38.29c0-6.72-.19-10.82-.69-15.45l13.73-3.11c.5 2.81.71 6.14.71 13.33v40c0 8.82.1 10.02.88 11.42.5.89 1.62 1.39 2.72 1.39.5 0 .79 0 1.49-.18l2.3 8.02c-2.29.9-5.08 1.4-7.99 1.4m-22.42-116.48h-29.67v.44c0 7.91 3.91 12.41 10.83 12.41 4.61 0 8.92-1.71 13.03-5.11l5.21 8.04c-5.91 4.8-12.12 7.1-19.34 7.1-14.73 0-24.25-10.43-24.25-26.55 0-9.24 1.89-15.35 6.4-20.35 4.22-4.72 9.33-6.92 16.14-6.92 5.92 0 11.53 1.99 14.85 5.4 4.7 4.83 6.81 11.76 6.81 22.47v3.07zm-.32 93.83H307.8v.41c0 7.9 3.92 12.42 10.83 12.42 4.62 0 8.91-1.72 13.02-5.12l5.23 8.04c-5.92 4.8-12.13 7.1-19.35 7.1-14.74 0-24.26-10.43-24.26-26.55 0-9.23 1.9-15.35 6.4-20.35 4.22-4.73 9.33-6.92 16.14-6.92 5.9 0 11.53 2.01 14.84 5.42 4.71 4.8 6.81 11.73 6.81 22.43zm-50.78-72.34h-13.13v-34.5c0-5.09-1.4-7.01-5.21-7.01-3.31 0-7.63 2.01-10.62 4.73v36.78h-13.63v-59.35c0-4.82-.4-9.61-1-11.73l13.73-3.21c.59 2.81.9 7.61.9 12.52v10.22c0 1.61-.2 3.72-.2 4.32 3.51-3.31 9.31-5.52 14.54-5.52 6.51 0 11.72 2.81 13.33 7.31.99 2.94 1.3 4.63 1.3 9.54v35.9zm-2.73 93.8h-13.23v-33.38c0-5.81-1.01-7.52-4.51-7.52-2.7 0-6.22 1.82-9.31 4.62v36.28h-13.45v-37.19c0-4.41-.6-8.61-1.79-12.04l11.95-3.4c1.18 2.1 1.88 4.31 1.88 6.41 2.01-1.38 3.72-2.6 5.91-3.81 2.73-1.39 6.23-2.19 9.22-2.19 5.71 0 10.73 2.99 12.32 7.42.74 1.9 1.02 4.11 1.02 7.31v37.49zm-57.3-92.61c-6.81 0-12.23-2.99-13.83-7.52-.8-2.23-.9-3.23-.9-7.92v-27.88h-5.11v-9.21h5.11c0-5 0-8.34.5-12.13l13.64-3.4c-.5 4.69-.8 10.32-.8 15.54h12.04l-3.42 9.21h-8.61v25.78c0 6.51 1.19 8.22 5.81 8.22 1.2 0 2.41-.32 4.81-1.01l1.7 8.01c-3.94 1.61-7.43 2.31-10.94 2.31m4.99 92.61H218.4v-33.38c0-5.81-1.01-7.52-4.51-7.52-2.7 0-6.19 1.82-9.32 4.62v36.28h-13.44v-37.19c0-4.41-.58-8.61-1.77-12.04l11.92-3.4c1.2 2.1 1.91 4.31 1.91 6.41 1.99-1.38 3.69-2.6 5.9-3.81 2.7-1.39 6.21-2.19 9.21-2.19 5.72 0 10.74 2.99 12.33 7.42.71 1.9 1.02 4.11 1.02 7.31v37.49zm-55.28-91.9c-11.45 0-17.65-5.83-17.65-16.06 0-12.03 8.31-17.63 24.63-17.63 1.01 0 1.92 0 3.01.09v-2.11c0-5.69-1.09-7.61-6-7.61-4.3 0-9.32 2.13-14.83 5.85l-5.72-9.65c2.72-1.71 4.71-2.71 8.34-4.19 5-2.12 9.32-3.01 14.02-3.01 8.61 0 14.54 3.21 16.55 8.91.69 2.1.99 3.7.89 9.22l-.29 17.26v.9c0 5.5.89 7.58 4.8 10.51l-7.11 8.22c-3.11-1.31-5.92-3.59-7.22-6.22-1 .98-2.11 2.01-3.11 2.71-2.51 1.8-6.11 2.81-10.31 2.81m.06 94.51c-3.1-1.31-5.92-3.61-7.21-6.23-1.01 1.02-2.11 2.01-3.11 2.72-2.51 1.81-6.11 2.8-10.33 2.8-11.43 0-17.65-5.82-17.65-16.02 0-12.04 8.33-17.67 24.67-17.67 1 0 1.91 0 3.01.1v-2.08c0-5.74-1.1-7.63-6.03-7.63-4.32 0-9.34 2.11-14.83 5.82l-5.73-9.64c2.72-1.7 4.73-2.69 8.34-4.19 5.02-2.12 9.32-3.01 14.05-3.01 8.59 0 14.52 3.19 16.51 8.93.72 2.1 1.03 3.72.92 9.21l-.29 17.26v.89c0 5.52.9 7.6 4.82 10.52zM108.4 242.98c0-9.24 1.9-15.35 6.41-20.35 4.22-4.72 9.33-6.92 16.15-6.92 5.91 0 11.54 1.99 14.84 5.4 4.72 4.83 6.83 11.76 6.83 22.47v3.08h-29.68v.44c0 7.91 3.92 12.41 10.82 12.41 4.62 0 8.91-1.71 13.03-5.11l5.22 8.04c-5.92 4.8-12.14 7.1-19.36 7.1-14.73-.01-24.26-10.44-24.26-26.56m20.64 118.96H115.9v-34.5c0-5.1-1.4-7-5.2-7-3.31 0-7.63 1.99-10.63 4.71v36.79H86.44V302.6c0-4.83-.41-9.62-1.01-11.74l13.75-3.2c.58 2.82.89 7.62.89 12.56v10.19c0 1.6-.2 3.72-.2 4.33 3.5-3.32 9.32-5.53 14.53-5.53 6.52 0 11.71 2.81 13.32 7.33 1.01 2.92 1.32 4.61 1.32 9.54zm-69.54 1.19c-9.63 0-17.05-3.09-22.76-9.61-5.62-6.31-8.43-14.73-8.43-24.96 0-8.72 1.52-15.64 4.7-21.65 5.44-10.12 15.46-16.14 26.69-16.14 6.91 0 13.82 2.21 17.64 5.52l-6.32 9.51c-3.51-2.6-7.22-3.9-11.12-3.9-4.72 0-9.33 2.29-11.83 6.01-2.7 4-3.91 9.83-3.91 17.94 0 9.52.79 14.83 2.89 18.65 2.81 5.12 7.42 7.81 13.44 7.81 4.1 0 7.82-1.19 11.93-4.49l6.42 8.81c-5.52 4.49-11.41 6.5-19.34 6.5M40.56 198.45l6 27.48c2.81 13.04 3.72 22.95 3.72 22.95.29-2.7 1.5-12.64 3.59-22.25l6.21-28.18h15.35l6.44 31.19c1.3 6.51 3 18.45 3 18.45.19-2.22 2.39-16.36 3.8-23.18l5.72-26.47h14.73l-16.83 70.27H76.94l-6.23-28.36c-2.1-9.32-3.11-18.34-3.29-20.24 0 0-1.2 9.82-3.34 20.05l-5.8 28.55H42.36l-16.65-70.27h14.85zm-14.34-92.24h50.22l-2.3 11.64H57.5v58.04H43.25v-58.04H26.22zm69.95-4.61c.59 2.81.9 7.62.9 12.53v10.23c0 1.58-.21 3.71-.21 4.31 3.51-3.31 9.32-5.53 14.53-5.53 6.52 0 11.73 2.8 13.35 7.32 1 2.9 1.3 4.61 1.3 9.53v35.89H112.9V141.4c0-5.11-1.4-7.01-5.23-7.01-3.31 0-7.61 1.99-10.61 4.71v36.79H83.44v-59.35c0-4.82-.41-9.61-1.02-11.73zm45.17 28.78c4.21-4.72 9.32-6.94 16.14-6.94 5.9 0 11.52 2.03 14.84 5.44 4.71 4.82 6.81 11.71 6.81 22.45v3.11h-29.66v.41c0 7.92 3.9 12.42 10.81 12.42 4.6 0 8.92-1.69 13.03-5.12l5.23 8.04c-5.93 4.79-12.15 7.1-19.35 7.1-14.75 0-24.27-10.43-24.27-26.54.01-9.26 1.9-15.37 6.42-20.37M.82.04v399.28h399.26V.04z"}),(0,t.jsx)("path",{d:"M316.33 225.51c-5.11 0-8.03 4.03-8.03 11.14v.19h15.55v-.6c0-3.81-.41-5.8-1.61-7.7-1.3-2.02-3.21-3.03-5.91-3.03m101.57-211h2.16c1.87 0 3.69-.1 3.69-2.32 0-1.91-1.65-2.13-3.08-2.13h-2.77zm-2.09-6.16h5.21c3.27 0 4.83 1.3 4.83 3.94 0 2.51-1.59 3.56-3.65 3.78l3.97 6.1h-2.25l-3.75-5.94h-2.26v5.94h-2.09V8.35zm4.51 17.03c5.4 0 9.72-4.38 9.72-10.11 0-5.72-4.32-10.11-9.72-10.11-5.43 0-9.72 4.39-9.72 10.11 0 5.73 4.28 10.11 9.72 10.11m0-21.93c6.42 0 11.82 5.08 11.82 11.82s-5.4 11.82-11.82 11.82c-6.45 0-11.82-5.08-11.82-11.82 0-6.73 5.37-11.82 11.82-11.82"})]})),s=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:a,...e}));function n({isOpen:e,onClose:r}){return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[60] bg-black/50"}),(0,t.jsx)("div",{className:"fixed inset-0 z-[70] flex items-center justify-center p-4",children:(0,t.jsxs)("div",{className:"relative w-full max-w-sm rounded-lg bg-white p-6 pt-7 shadow-lg",children:[(0,t.jsx)("button",{onClick:r,className:"absolute top-2 right-2 flex h-6 w-6 items-center justify-center rounded-full text-xl text-gray-400 hover:bg-gray-100 hover:text-gray-600","aria-label":"Close banner",children:"×"}),(0,t.jsx)("div",{className:"mt-4 mb-4 flex justify-center",children:(0,t.jsx)(s,{className:"h-10 w-auto text-blue-600"})}),(0,t.jsx)("h3",{className:"mb-4 text-center text-lg font-medium text-gray-900",children:"Sign in to join the conversation"}),(0,t.jsx)("button",{onClick:()=>{window.location.href="/login"},className:"w-full rounded-md bg-gray-900 px-4 py-2 text-sm font-medium text-white hover:bg-gray-800",children:"Sign in"})]})})]}):null}s.displayName="TWC",e.s(["SignInModal",()=>n],109339);var o=e.i(877957),l=e.i(705482);function c({isOpen:e,onClose:r,displayName:i,onDisplayNameChange:a,onSubmit:n,isSubmitting:c,error:u}){return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[60] bg-black/50"}),(0,t.jsx)("div",{className:"fixed inset-0 z-[70] flex items-center justify-center p-4",children:(0,t.jsxs)("div",{className:"relative w-full max-w-sm rounded-lg bg-white p-6 shadow-xl",children:[(0,t.jsx)("button",{onClick:r,className:"absolute top-2 right-2 flex h-6 w-6 items-center justify-center rounded-full text-xl text-gray-400 hover:bg-gray-100 hover:text-gray-600","aria-label":"Close dialog",children:"×"}),(0,t.jsx)("div",{className:"mt-4 mb-4 flex justify-center",children:(0,t.jsx)(s,{className:"h-10 w-auto text-blue-600"})}),(0,t.jsx)("h2",{className:"mb-2 text-center text-xl font-semibold text-gray-900",children:"Create a display name"}),(0,t.jsx)("p",{className:"mb-6 text-left text-sm text-gray-600",children:"Your display name is the name others will see when you comment."}),(0,t.jsxs)("form",{onSubmit:n,className:"space-y-4",children:[u&&(0,t.jsx)("div",{className:"rounded-md bg-red-50 p-3 text-sm text-red-700",children:u}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{htmlFor:"displayName",className:"block text-sm font-medium text-gray-700",children:"Display Name"}),(0,t.jsx)(l.Input,{id:"displayName",type:"text",value:i,onChange:e=>a(e.target.value),placeholder:"Enter your display name",required:!0,minLength:3,maxLength:30,className:"w-full"})]}),(0,t.jsx)(o.Button,{type:"submit",disabled:c||!i.trim(),className:"w-full bg-gray-900 text-white",size:"default",children:c?"Creating...":"Create"})]}),(0,t.jsxs)("p",{className:"mt-4 text-left text-xs text-gray-500",children:["Your email address is shared with OpenWeb, the commenting platform. By creating a display name, you agree to the OpenWeb"," ",(0,t.jsx)("a",{href:"https://www.openweb.com/legal-and-privacy/privacy/",target:"_blank",rel:"noopener noreferrer",className:"text-blue-500 underline hover:text-blue-600",children:"Privacy Policy"})," ","and"," ",(0,t.jsx)("a",{href:"https://www.openweb.com/legal-and-privacy/terms-of-use/",target:"_blank",rel:"noopener noreferrer",className:"text-blue-500 underline hover:text-blue-600",children:"Terms of Use"}),"."]})]})})]}):null}e.s(["DisplayNameModal",()=>c],470015),e.i(694914);let u=(0,e.i(695881).createLogger)("OpenWebSdkClient"),d=new class{baseUrl;constructor(){this.baseUrl="https://upsx.weather.com"}async getAccount(e){let t=e?.maxRetries||3,r=e?.delayMs||500,i=null;for(let e=1;esetTimeout(e,t));continue}throw i}let o=await n.json();return u.info(`getAccount - Account found (attempt ${e}/${t}):`,o),o}catch(a){if(u.error(`getAccount - Error (attempt ${e}/${t}):`,a),a instanceof TypeError&&a.message.includes("fetch"))return u.error(`getAccount - Network error, treating as no account (attempt ${e}/${t})`),null;if(i=a instanceof Error?a:Error(String(a)),esetTimeout(e,t));continue}throw i}if(i)throw i;return null}async getCodeB(e,t,r,i){let a=i?.maxRetries||2,s=i?.delayMs||500,n=null,o=e?e.split("?")[0]:"";if(!o)throw Error("Invalid codeA: codeA is required to complete the SSO process");for(let e=1;esetTimeout(e,t));continue}throw n}let m=await d.json();return u.info(`getCodeB - Success, codeB received (attempt ${e}/${a+1}):`,m.codeB?`codeB ${m.codeB}`:"missing"),m.codeB}catch(t){if(u.error(`getCodeB - Error (attempt ${e}/${a+1}):`,t),n=t instanceof Error?t:Error(String(t)),esetTimeout(e,t));continue}throw n}if(n)throw n;return""}};e.s(["openWebClient",0,d],979538)},438335,e=>{"use strict";var t=e.i(694914);e.s(["getPublicProductionURL",0,e=>{let r=t.default.env.VERCEL_TARGET_ENV_PRODUCTION_URL??"weather.com",i=t.default.env.VERCEL_PROJECT_PRODUCTION_URL??"wxnext.weather.com",a=`https://${r??i}`;return e?new URL(e,a).toString():a},"getPublicURL",0,e=>{let r,i=(t.default.env.VERCEL_TARGET_ENV??"production")?.toLowerCase(),a=t.default.env.VERCEL_BRANCH_URL??"wx-next-web-git-releasebranch-2026-03-10.vercel.weather.com",s=t.default.env.VERCEL_TARGET_ENV_URL??"weather.com",n="true"===t.default.env.NEXT_DEV_SERVER_INSECURE||"true"===t.default.env.NEXT_PUBLIC_NEXT_DEV_SERVER_INSECURE;switch(i){case"preview":r=`https://${a}`;break;case"development":r=n?`http://${s}`:`https://${s}`;break;default:r=`https://${s}`}return e?new URL(e,r).toString():r}])},143851,e=>{"use strict";var t=e.i(475566),r=e.i(186316),i=e.i(45846),a=e.i(310847),s=e.i(776169),n=e.i(671525),o=e.i(477716),l=e.i(947118),c=e.i(737801),u=e.i(521350);function d(){let e,d,m,h,g,p=(0,t.useSetAtom)(a.userHasLoggedInBeforeAtom),f=(0,t.useAtomValue)(a.wxuLoginRedirectPageAtom),v=(0,t.useAtomValue)(a.wxuUserAnonymousIdAtom),w=(0,r.useGetCookie)(),{syncPreferencesFromUpsx:b,updatePreferences:x}=(0,s.usePreferences)(),{navigate:y}=(0,n.default)(),{login:E}=(e=(0,l.useIsInitialized)(),d=(0,o.useCallback)(t=>{if(!e)return console.warn("MParticle is not initialized"),Promise.reject(Error("MParticle is not initialized"));let r={userIdentities:{customerid:t.customerid,email:t.email,other:t.other}};return window.mParticle?.Identity?.identify?.(r)},[e]),{identify:d,login:(0,o.useCallback)(t=>{if(!e)return console.warn("MParticle is not initialized"),Promise.reject(Error("MParticle is not initialized"));let r={userIdentities:{customerid:t.customerid,email:t.email,facebook:t.facebook,facebookcustomaudienceid:t.facebookcustomaudienceid,google:t.google,microsoft:t.microsoft,other:t.other,other2:t.other2,other3:t.other3,other4:t.other4,twitter:t.twitter,yahoo:t.yahoo}};return window.mParticle?.Identity?.login?.(r)},[e]),logout:(0,o.useCallback)(()=>e?window.mParticle?.Identity?.logout?.({userIdentities:{}}):(console.warn("MParticle is not initialized"),Promise.reject(Error("MParticle is not initialized"))),[e])}),S=(m=(0,l.useIsInitialized)(),h=(0,c.useEventAttributes)(),g=(0,o.useCallback)((e,t={})=>{let r={...h,...t};if(!m)return void console.warn("MParticle is not initialized");try{window.mParticle.logEvent(e,window.mParticle.EventType.Other,r),console.debug(`MParticle: Event "${e}" tracked`,r)}catch(t){console.error(`MParticle: Event "${e}" failed`,t)}return g},[h,m])),P=async()=>{try{if(w("premium"))return null;return await i.upsxClient.purchase.getPurchaseToken(),!0}catch(e){return console.error("Failed to get UPSX token:",e),!1}},I=()=>{let e=new URLSearchParams(window.location.search).get("ref");y((e&&`https://${e}`)??f)},C=async(e,t=!0)=>{(0,u.isLocalStorageAvailable)()&&localStorage.setItem("PARTNERS_SYNC","true"),p(!0),await b()||await x({}),P(),e?.userID&&(E({email:e.email,customerid:e.userID,other:v}),S("login"===e.type?"user-loggedin":"signup-complete",{url:window.location.pathname})),t&&I()};return{login:async(e,t)=>{try{let r=await i.upsxClient.auth.login({email:e,password:t});return r&&await C({email:r.email,userID:r.userID,type:"login"}),!0}catch(e){return console.error("Failed to login",e),!1}},authSuccess:C,authRedirect:I}}e.s(["useUserLogin",()=>d],143851)},245308,e=>{"use strict";var t=e.i(297647),r=e.i(477716),i=e.i(747961);let a=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:a,...s},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":r,"aria-describedby":a,...s,children:[i?(0,t.jsx)("desc",{id:a,children:i}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"View"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",children:[(0,t.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,t.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=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:a,...e}));s.displayName="View",e.s(["View",0,s])},271818,e=>{"use strict";var t=e.i(477716);e.i(481938);var r=e.i(762073),i=e.i(297647),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,a)=>{let s=(0,r.createSlot)(`Primitive.${a}`),n=t.forwardRef((e,t)=>{let{asChild:r,...n}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(r?s:a,{...n,ref:t})});return n.displayName=`Primitive.${a}`,{...e,[a]:n}},{});e.s(["Primitive",()=>a])},370220,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getEmailPreferencesStatusUrlConfig=function(){return{host:i,protocol:"https",pathname:"/api/v1/email-preferences/status"}},r.getEmailPreferencesSetUrlConfig=function(){return{host:i,protocol:"https",pathname:"/api/v1/email-preferences/set"}},r.getEmailPreferencesChangeEmailUrlConfig=function(){return{host:i,protocol:"https",pathname:"/api/v1/email-preferences/change-email"}};let i="weather.com"},454307,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.setEmailPreferences=n,r.updateSubscription=o;let i=e.r(678651),a=e.r(414655),s=e.r(370220);async function n(e){let t=(0,s.getEmailPreferencesSetUrlConfig)(),r=(0,i.urlFrom)(t),n=JSON.stringify(function(e){let{subscriptions:t,email:r,mParticleId:i}=e,a={};return t&&(a.subscriptions=t),r&&(a.email=r),i&&(a.mParticleId=i),a}(e)),o=await fetch(r,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:n});return 200===o.status||400===o.status?await o.json():(0,a.handleFetchResponse)(o)}async function o(e,t,r){return n({subscriptions:[{subscriptionGroupName:e,isSubscribed:t,...r&&{attributes:r}}]})}},451086,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getEmailPreferencesStatus=n;let i=e.r(678651),a=e.r(414655),s=e.r(370220);async function n(){let e=(0,s.getEmailPreferencesStatusUrlConfig)(),t=(0,i.urlFrom)(e),r=await fetch(t,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"},next:{revalidate:60}});return(0,a.handleFetchResponse)(r)}},952582,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_SUBSCRIPTIONS=r.MARKETING_EMAILS_GROUP=r.WEEKLY_BRIEF_GROUP=r.DAILY_NEWSLETTERS_GROUP=void 0,r.DAILY_NEWSLETTERS_GROUP="daily-newsletters-1",r.WEEKLY_BRIEF_GROUP="weekly-brief",r.MARKETING_EMAILS_GROUP="marketing-emails-1",r.DEFAULT_SUBSCRIPTIONS=[{subscriptionGroupName:r.DAILY_NEWSLETTERS_GROUP,subscriptionGroupId:"",isSubscribed:!1,attributes:{location:""}},{subscriptionGroupName:r.WEEKLY_BRIEF_GROUP,subscriptionGroupId:"",isSubscribed:!1},{subscriptionGroupName:r.MARKETING_EMAILS_GROUP,subscriptionGroupId:"",isSubscribed:!1}]},422825,e=>{"use strict";var t=e.i(475566),r=e.i(381477),i=e.i(454307),a=e.i(451086);let s=(0,e.i(233601).atomWithStorage)("emailPreferences",null,void 0,{getOnInit:!0});var n=e.i(528600),o=e.i(952582),l=e.i(477716);function c(e,t){let r=t?.length?t:o.DEFAULT_SUBSCRIPTIONS,i={};return e?(r?.forEach(e=>{i[e.subscriptionGroupName]=e}),e.forEach(e=>{i[e.subscriptionGroupName]=e}),Object.values(i)):r}e.s(["useEmailPreferences",0,()=>{let[e,o]=(0,t.useAtom)(s),{user:u}=(0,n.useUser)(),d=u?.userID||null,m=u?.isUserLoggedIn||!1,h=(0,l.useCallback)(t=>{d&&o({userId:d,expiry:Date.now()+9e5,subscriptions:c(t,e?.subscriptions)})},[d,o,e?.subscriptions]),g=e&&e.userId===d&&e.expiry&&e.expiry>Date.now();(0,r.default)(d&&m&&!g?`getEmailPreferencesStatus/${d}`:void 0,()=>(0,a.getEmailPreferencesStatus)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:0,errorRetryCount:2,onSuccess:e=>{d&&e&&h(e.subscriptions)}});let p=(0,l.useCallback)(async(t,r)=>{let a=await (0,i.setEmailPreferences)({subscriptions:t,email:m?void 0:r});return"success"===a.status&&h(c(t.map(e=>({...e,subscriptionGroupId:""})),e?.subscriptions)),a},[]);return{subscriptions:d&&e?e.subscriptions:null,updateSubscriptions:h,updateEmailPreference:p}}],422825)},790010,e=>{"use strict";var t=e.i(245943),r=e.i(45846),i=e.i(143851);function a(){let{authSuccess:e,authRedirect:a}=(0,i.useUserLogin)();return{signup:async(i,a=!0)=>{try{let t=await (i.password?r.upsxClient.auth.register({email:i.email,password:i.password,firstName:i.firstName}):r.upsxClient.auth.registerPasswordless({email:i.email,firstName:i.firstName}));return await e({email:t.email,userID:t.userID,type:"signup"},a),{success:!0,data:{email:t.email,userID:t.userID}}}catch(e){if(console.error("Failed to signup",e),e instanceof t.APIError){let t=e.data;return{success:!1,error:{code:e.code,...t}}}return{success:!1,error:{}}}},authRedirect:a}}e.s(["useUserSignup",()=>a])},506424,796424,e=>{"use strict";function t(e){if(!e)return"";let t=("number"==typeof e?new Date(e).toISOString():e instanceof Date?e.toISOString():e.replace(/GMT(?![+-])/,"GMT+0000")).replace(/\.\d+/,"").replace("Z","+0000").replace(/\s+/,"T").replace(/\s+/g,"").replace(/[A-Z]{3,}/,""),r=/([+-])(\d{2})(\d{2})$/;r.test(t)&&(t=t.replace(r,"$1$2:$3"));let i=t.replace(/(\d{4})-(\d{2})-(\d{2})/,"$1/$2/$3").replace("T"," ");return"Invalid Date"===new Date(i).toString()?"Invalid Date"!==new Date(t).toString()?t:"string"==typeof e?e:"":i}e.s(["getNormalizedDateString",()=>t],796424),e.s(["getCompatibleValues",0,({date:e,timeZone:r})=>({cDate:new Date(t(e)),cTimeZone:(e=>{try{return new Intl.DateTimeFormat("en-US",{timeZone:e}),e}catch{return"Etc/UTC"}})(r)})],506424)},289607,e=>{"use strict";var t=e.i(506424);let r=(e,r,i,a)=>{let{cDate:s,cTimeZone:n}=(0,t.getCompatibleValues)({date:e,locale:r,timeZone:i}),o=a??{year:"numeric",month:"2-digit",day:"2-digit",weekday:"short"};return o.timeZone=n,{cDate:s,cTimeZone:n,formatOptions:o}};e.s(["formatIntlDateParts",0,(e,t,i,a)=>{if(!e)return[];let{cDate:s,formatOptions:n}=r(e,t,i,a);return new Intl.DateTimeFormat(t,n).formatToParts(s)},"formatIntlDateString",0,(e,t,i,a)=>{if(!e)return"";let{cDate:s,formatOptions:n}=r(e,t,i,a);return new Intl.DateTimeFormat(t,n).format(s)}])},127667,e=>{"use strict";let t=(0,e.i(514514).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",()=>t],127667)},855602,e=>{"use strict";var t=e.i(297647),r=e.i(477716),i=e.i(947118),a=e.i(737801),s=e.i(333350);e.s(["ModuleAnalytics",0,({moduleId:e,modulePosition:n,variant:o="frontend",children:l})=>{let c,u,d,m=(0,r.useRef)(null),[h,g]=(0,r.useState)(!1),p=(0,r.useRef)(null),f=(c="module-viewed",u=(0,i.useIsInitialized)(),d=(0,a.useEventAttributes)(),(0,r.useCallback)(({moduleId:e,modulePosition:t})=>{if(!u)return void console.warn("MParticle is not initialized");let r={module_id:e,module_position:t,...d};try{window.mParticle?.logEvent?.(c,window.mParticle?.EventType?.Other,r),console.debug(`MParticle: Event "${c}" tracked`,r)}catch(e){console.error(`MParticle: Event "${c}" failed`,e)}},[d,u]));return"admin"===o?(0,t.jsx)(t.Fragment,{children:l}):((0,r.useEffect)(()=>{if(h||!s.default||!m.current)return;let t=m.current,r=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&t.intersectionRatio>=1?p.current||(p.current=setTimeout(()=>{f({moduleId:e,modulePosition:n}),g(!0),p.current=null},2e3)):p.current&&(clearTimeout(p.current),p.current=null)})},{threshold:1});r.observe(t);let i=t.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight,o=window.innerWidth||document.documentElement.clientWidth;return i.top>=0&&i.left>=0&&i.bottom{f({moduleId:e,modulePosition:n}),g(!0),p.current=null},2e3)),()=>{p.current&&clearTimeout(p.current),r.disconnect()}},[h,e,n,f]),(0,t.jsx)("div",{ref:m,className:"hide-empty","data-module-id":e,children:l}))}],855602)},622958,e=>{"use strict";var t=e.i(297647),r=e.i(274432),i=e.i(632137),a=e.i(352194);let s=({outsideLayoutWrapper:e})=>{let s=(0,a.useTranslations)("Header");return(0,t.jsx)("div",{className:(0,i.cn)("md:hidden",{"px-4 pt-4":e,"mb-4":!e}),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,i.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:s("searchPlaceholderText")}),(0,t.jsx)(r.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,s,"default",0,s])}]);