(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,253276,e=>{"use strict";var t=e.i(699173),i=e.i(592121);e.s(["default",0,function({candidate:e,failedMessage:s="Authentication failed. Please try again.",protectMessage:n="Remove your adblocker.",fetch:r,refresh:a,getCustomAccountInfo:o}){let[l,c]=(0,i.useState)(""),[u,d]=(0,i.useState)(!1),[m,f]=(0,i.useState)(!1),[h,g]=(0,i.useState)(!1),p=(0,i.useRef)([]);(0,i.useEffect)(()=>{e.id!==p.current[0]&&(p.current=[e.id],e.transactIDs&&p.current.push(...e.transactIDs))},[e.id,e.transactIDs]);let v=(0,i.useCallback)(()=>{try{r("/?adm_get_token=1").then(e=>{e.ok&&a()}).catch(()=>{c(s)})}catch{c(s)}},[r,s,a]),w=(0,i.useMemo)(()=>"u">typeof window?window:{admiral:{}},[]);return(0,i.useEffect)(()=>{typeof window>"u"||(w.admiral=w.admiral||function(...e){(w.admiral.q=w.admiral.q||[]).push(e)},w.admiral("after","measure.detected",function(t){if("abr"==e.requirement)t.adblocking?(c(n),d(!0)):g(!0);else if("account"==e.requirement||"benefits"==e.requirement){let t=!!o;w.admiral("after","visitor.latest",function(i){var s;if("account"===e.requirement)(t?o().registered:i.status.registered)||m||(c(n),d(!0));else if("benefits"===e.requirement){let i=[];if(t)i=o().benefits;else{let e=document.cookie.split(";");e&&(i=(null==(s=e.find(e=>e.startsWith("admbenefits=")))?void 0:s.split(","))??[])}if(i){let t=e.benefits??[];if(0==t.length)return void g(!0);let s=!1;for(let e of t)i.includes(e)&&(s=!0);s?g(!0):(c(n),d(!0))}else c(n),d(!0)}})}}))},[]),(0,i.useEffect)(()=>{h&&(g(!1),v())},[h,v]),(0,i.useEffect)(()=>{m||!u||(f(!0),w.admiral("targeting","force",{candidateIDs:p.current}))},[m,u,p,w]),(0,t.jsxs)("div",{children:[l||null," "]})}])},590238,e=>{"use strict";var t=e.i(537989);e.i(609717);var i=e.i(950771),s=e.i(695203),n=e.i(604323),r=e.i(797770),a=e.i(513539),o=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,o.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[i.pageLocaleAtom,e.pageLocale],[s.deviceClassAtom,e.deviceClass],[n.metricsArticleDataAtom,e.metricsArticleData],[r.adsMetricsUnitAndZoneAtom,e.adsMetricsUnitAndZone??"non_monetized"],[a.layoutStateAtom,e.layoutState??null],[a.activeEventAtom,e.activeEvent??null]]),null)])},853686,e=>{"use strict";e.i(546584);var t=e.i(699173),i=e.i(333350),s=e.i(283366);let n=["cw12138"];function r({flagKey:e}){let t=i.default?function(e){let t=function(e){try{let t=window.localStorage.getItem(`amp-exp-$default_instance-${"client-a74nh7wdmymfO9eOcl5awe1cgB30BDRV".slice(-6)}`);if(!t)return;let i=JSON.parse(t);if(!a(i))return;let s=i[e];if(!a(s)||!s.expKey||!s.key&&!s.value)return;return s}catch{return}}(e);if(t&&function(e){let t=window.__HeliosConfig?.slotsConfig;if(!t)return!1;let i=!1,s=!1;for(let r of Object.values(t)){let t=r?.modules?.refresh?.bidMode;if("atf"!==t&&"btf"!==t)continue;i=!0;let o=a(e)?e[t]:void 0;if(void 0!==o){var n;a(o)&&"number"==typeof(n=o.interval)&&Number.isFinite(n)&&n>=1e4&&n(0,t.jsx)(r,{flagKey:e},e))})}],853686)},855602,e=>{"use strict";var t=e.i(699173),i=e.i(592121),s=e.i(1567),n=e.i(551699);e.s(["ModuleAnalytics",0,({moduleId:e,modulePosition:r,moduleKey:a,variant:o="frontend",children:l})=>{let c=(0,s.useTrackModuleViewed)(),u="admin"===o,d=(0,i.useCallback)(()=>{c({moduleId:e,modulePosition:r})},[c,e,r]),m=(0,i.useRef)(null),[f,h]=(0,i.useState)([]),g=(0,i.useCallback)(()=>{let e=m.current?Array.from(m.current.children):[];h(t=>t.length===e.length&&t.every((t,i)=>t===e[i])?t:e)},[]);return((0,i.useEffect)(()=>{let e=m.current;if(!e||(g(),"u"t.disconnect()},[g,u]),(0,n.useFullVisibilityOnce)(d,{targets:f,disabled:u}),u)?(0,t.jsx)(t.Fragment,{children:l}):(0,t.jsx)("div",{ref:m,className:"hide-empty","data-module-id":e,"data-module-key":a,"data-item-position":r,children:l})}])},115284,e=>{"use strict";var t=e.i(699173),i=e.i(592121),s=e.i(185312),n=e.i(204782);let r=({pageTemplate:e,pageDashboard:r})=>{let a=(0,n.default)();return((0,i.useEffect)(()=>{a&&e&&(window._newsroom=window._newsroom||[],window._newsroom.push({pageTemplate:e}),r&&window._newsroom.push({pageDashboard:r}),window._newsroom.push("auditClicks"),window._newsroom.push("trackPage"))},[a,e,r]),a&&e)?(0,t.jsx)(s.default,{src:"//c2.taboola.com/nr/theweatherchannel/newsroom.js",strategy:"afterInteractive",id:"newsroom_loader_script"}):null};e.s(["Newsroom",0,r,"default",0,r])},576816,703123,e=>{"use strict";var t=e.i(592121),i=e.i(959194),s=e.i(947118),n=e.i(737801);e.s(["useSignupComplete",0,(e={})=>{let r=(0,s.useIsInitialized)(),a=(0,n.useEventAttributes)(),[o,l]=(0,t.useState)(!1),c=(0,t.useRef)(!1),u=(0,t.useMemo)(()=>{let t={...a,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},[a,e.formVariant,e.url,e.sensitiveDataAuthorization,e.deviceTimeZone,e.sourcePage,e.sourceModule,e.sourceElement,e.sourcePosition,e.mParticleGranted]);return(0,t.useEffect)(()=>{(0,i.areObjectValuesDefined)(u)&&!o&&l(!0)},[u,o]),(0,t.useCallback)(async()=>{if(r&&o&&!c.current)try{window.mParticle?.logEvent?.("signup-complete",window.mParticle?.EventType?.Other,u),c.current=!0,console.debug(`MParticle: Event "signup-complete" tracked - ${u.pageId}`)}catch(e){console.error('MParticle: Event "signup-complete" failed',e)}},[r,u,o])}],576816);let r=(0,e.i(981030).atom)({});e.s(["gsiEmailStatesAtom",0,r],703123)},61284,e=>{"use strict";e.s(["PROMO_CHECKOUT_URL",0,"/subscribe/checkout?products=e251f39b-afd7-4ad9-9c87-5e2a8ed63fbb&promoCode=5OFF&tpcc=mktg-5OFF-reg"])},404893,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["googleLoginInitilizedAtom",0,t])},145473,e=>{"use strict";e.i(546584);var t=e.i(699173),i=e.i(592121),s=e.i(185312),n=e.i(546446),r=e.i(683903),a=e.i(671525),o=e.i(901351),l=e.i(310847),c=e.i(776169),u=e.i(422825),d=e.i(837879),m=e.i(576816),f=e.i(553329),h=e.i(695881),g=e.i(143851),p=e.i(703123),v=e.i(61284);let w=(0,h.createLogger)("useGoogleLogin");var x=e.i(404893),b=e.i(367810),y=e.i(792461);e.s(["GoogleAuthScriptClient",0,function({onLoad:e,prompt:h=!0,isUserLoggedIn:j,redirectToCheckoutOnSignup:k}){let I=(0,r.useTranslations)("GoogleLogin"),C=(0,n.useSetAtom)(x.googleLoginInitilizedAtom),{loginWithGoogle:A,error:N,clearError:S}=function(e=!1){let t=(0,r.useTranslations)("GoogleLogin"),[s,h]=(0,i.useState)(null),x=(0,n.useSetAtom)(l.userHasLoggedInBeforeAtom),b=(0,n.useAtomValue)(p.gsiEmailStatesAtom),{updateEmailSubscriptions:y}=(0,u.useEmailPreferences)({skipStatus:!0}),{refresh:j}=(0,a.usePageNavigation)(),{syncPreferencesFromUpsx:k}=(0,c.usePreferences)(),{authSuccess:I,authRedirect:C}=(0,g.useUserLogin)(),A=(0,d.useSubscriptionsEnabled)(),N=(0,m.useSignupComplete)({formVariant:"account page google",sensitiveDataAuthorization:!0,deviceTimeZone:"u">typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:void 0});return{loginWithGoogle:(0,i.useCallback)(async i=>{let{credential:s}=i;h(null);try{let t=await o.upsxClient.auth.loginWithGoogle({google_id_token:s}),i=t?.isFirstLogin;if(await I({email:t.email,userID:t.userID,type:i?"signup":"login"},!1,{skipSignupCompleteEvent:!!i}),i){let{error:e}=await (0,f.tryCatch)(N());e&&w.warn("Failed to track signup-complete for Google signup",e)}let{newsletter:n,weekly:r,onYourRadar:a,marketing:l,alwaysSubscribe:c}=b||{};return(i||c)&&await y({newsletter:n,weekly:r,onYourRadar:a,marketing:l}).catch(e=>{console.error("Failed to update email subscriptions",e)}),i&&e&&A?C(v.PROMO_CHECKOUT_URL):C(),!0}catch(e){console.error("Failed to login with Google",e);try{let i=e?.data,s=i?.messageCode;if(!s)throw Error("No Error Message");switch(s){case 1e3:case 1026:case 1033:h({header:t("emailAlreadyUsedGoogleHeader"),body:t.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:h({header:t("emailAlreadyRegisteredGoogleHeader"),body:t("emailAlreadyRegisteredGoogleBody")});break;default:throw Error("No Specific Error")}}catch(e){h({header:t("somethingWentWrong")})}return!1}},[x,k,j,I,C,y,b,e,A,N]),error:s,clearError:(0,i.useCallback)(()=>{h(null)},[])}}(k),E=(0,y.useRefMemo)(A),_=(0,i.useRef)(null);N&&(_.current=N);let L=_.current;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.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=>{E.current?.(e)}}),C(!0)),e?.(),!j&&h&&t?.prompt()},id:"google-gsi-script"}),L&&(0,t.jsx)(b.Dialog,{open:!!N,onOpenChange:e=>!e&&S(),children:(0,t.jsx)(b.BasicDialog,{showCloseButton:!1,title:L.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:L.body||""}}),primaryAction:{label:I("cancel"),onClick:S}})})]})}],145473)},935762,e=>{"use strict";var t=e.i(699173);let i=["Topic","Topic","Topic"],s={background:"#f2f2f2",borderRadius:16,color:"#252422",fontSize:13,padding:"6px 12px",whiteSpace:"nowrap"};e.s(["TopicChipsAdminBlock",0,function({heading:e,wrapChips:n}){let r=e?.trim()??"Hot Topics:";return(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,minWidth:0,maxWidth:"100%",overflow:"hidden"},children:[(0,t.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:8,minWidth:0},children:[r&&(0,t.jsx)("strong",{style:{fontSize:16},children:r}),i.map((e,i)=>(0,t.jsx)("span",{style:s,children:e},i))]}),(0,t.jsxs)("small",{style:{opacity:.7},children:["Chips come from the selected topic list at render time, following its published links. On the page they"," ",n?"wrap onto multiple lines":"scroll sideways on one line","."]})]})}],935762)},654075,e=>{"use strict";var t=e.i(699173);e.s(["TableAdminBlock",0,function(e){return(0,t.jsx)("div",{children:"Table"})}])},499746,e=>{"use strict";var t=e.i(699173),i=e.i(592121),s=e.i(546446),n=e.i(145651),r=e.i(249725),a=e.i(292980),o=e.i(663333);e.i(101346);var l=e.i(512134),c=e.i(147732),u=e.i(381477),d=e.i(240058),m=e.i(316078),f=e.i(180193),h=e.i(368847),g=e.i(889951),p=e.i(726249),v=e.i(674885),w=e.i(617874),x=e.i(961123),b=e.i(325974),y=e.i(525936);let j=(0,i.memo)(({identifier:e})=>{let n=(0,x.useParams)(),a=n?.locale||"en-US",o=(0,s.useAtomValue)(v.userUnitPreferenceAtom),l=(0,w.unitsSystemByName)(o)?.code,c=(0,r.useRecordFeatureId)(),j=e.placeId?void 0:e.geocode,{location:k,isLoading:I}=function(e,t){let{location:i,isLoading:s}=(0,b.useResolveCanonical)(e,t);return{location:i,isLoading:s}}(e.featureId||e.placeId||e.geocode?{featureId:e.featureId,placeId:e.placeId,geocode:e.geocode?(0,p.formatGeocode)(e.geocode):void 0}:null,{sourceGeocode:j});(0,i.useEffect)(()=>{k?.placeId&&c({placeId:k.placeId,geocode:k.geocode},k.featureId??null)},[k,c]);let{data:C,isLoading:A}=(0,u.default)(k&&["currentObservations",k.geocode,l,a],([e,t,i,s])=>(0,g.getCurrentObservations)({geocode:t,units:i,language:s}),{revalidateOnFocus:!1,dedupingInterval:6e4}),N=k?.placeId??e.placeId,{path:S,isGeolocationLoading:E}=(0,y.default)(N||"",{targetGeocode:k?.geocode??e.geocode,featureId:e.featureId??k?.featureId,canonicalID:k?.canonicalID}),_=I||A||!k||E,L=C?.temperature,P=C?.wxPhraseLong,T=C?.iconCode??-1,O=e.name||k?.name||k?.city||k?.displayName,M=(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":O?`${O} 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.jsx)(h.default,{isLoading:_,skeletonClassName:"h-5 w-28",className:"flex items-center leading-[1.4] font-bold",children:(0,t.jsx)("span",{className:"min-w-0 truncate",children:O})}),(0,t.jsx)(m.WxIcon,{isLoading:_,loadingIconClassName:"h-6 w-6 shrink-0",iconCode:T,className:"h-6 w-6 shrink-0","aria-hidden":"true",iconTheme:"lightBG"})]}),(0,t.jsxs)("div",{className:"flex text-sm",children:[(0,t.jsx)(h.default,{isLoading:_,skeletonClassName:"h-4 w-6 shrink-0",className:"shrink-0 text-sm leading-normal",color:"secondary",children:(0,t.jsx)(f.Temperature,{value:L})})," ",(_||P)&&(0,t.jsx)(h.default,{isLoading:_,skeletonClassName:"h-4 w-22",color:"secondary",className:"truncate text-sm leading-normal",children:P})]})]}),(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.jsx)(h.default,{isLoading:_,skeletonClassName:"h-5 w-28",className:"flex items-center text-xl leading-normal font-bold",children:(0,t.jsx)("span",{className:"min-w-0 truncate",children:O})}),(_||P)&&(0,t.jsx)(h.default,{isLoading:_,skeletonClassName:"h-4 w-24",color:"secondary",className:"truncate text-sm leading-normal",children:P})]}),(0,t.jsx)(m.WxIcon,{isLoading:_,loadingIconClassName:"mr-1 h-12 w-12 shrink-0",iconCode:T,className:"mr-1 h-12 w-12 shrink-0","aria-hidden":"true",iconTheme:"lightBG"}),(0,t.jsx)(h.default,{isLoading:_,skeletonClassName:"h-8 w-12 shrink-0",className:"shrink-0 text-[40px] leading-none font-extrabold",children:(0,t.jsx)(f.Temperature,{value:L})})]})]});return S?(0,t.jsx)(d.default,{href:S,className:"no-underline md:block md:w-full",children:M}):M},(e,t)=>{let i,s;return i=e.identifier,s=t.identifier,i.geocode===s.geocode&&i.placeId===s.placeId&&i.featureId===s.featureId&&i.name===s.name});var k=e.i(523084),I=e.i(47524),C=e.i(632137);let A={left:k.ChevronLeft,right:I.ChevronRight},N=({buttonClassName:e,containerClassName:s,onClick:n,tabIndex:r,direction:a,...o})=>{let[l,c]=(0,i.useState)(!1),u=A[a];return(0,t.jsx)("div",{className:(0,C.cn)("absolute",s),children:(0,t.jsx)("button",{className:(0,C.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",l&&"!h-11 !w-11"),onClick:()=>{c(!0),setTimeout(()=>c(!1),75),n?.()},tabIndex:r,...o,children:(0,t.jsx)(u,{className:(0,C.cn)("text-white transition-[height,width] duration-75 group-hover/scroll-button:h-7 group-hover/scroll-button:w-7",l&&"!h-6 !w-6")})})})},S=({locationIdentifiers:e,showScrollButtons:s})=>{let[n,r]=(0,i.useState)(!1),[a,o]=(0,i.useState)(!1),l=(0,i.useRef)(null),u=(0,i.useRef)(null),d=(0,i.useRef)(!1),m=(0,i.useCallback)(()=>{let e=l.current;if(!e||!s){r(!1),o(!1);return}let{scrollLeft:t,offsetWidth:i,scrollWidth:n}=e,a=Math.abs(t),c=a>0,u=a+i(0,c.debounce)(m,150),[m]);(0,i.useEffect)(()=>{let e=l.current;return e&&(d.current="rtl"===getComputedStyle(e).direction),m(),window.addEventListener("resize",f),()=>{null!==u.current&&cancelAnimationFrame(u.current),f.cancel(),window.removeEventListener("resize",f)}},[m,f]);let h=(0,i.useCallback)(()=>{null===u.current&&(u.current=requestAnimationFrame(()=>{m(),u.current=null}))},[m]),g=(0,i.useCallback)(()=>{l.current?.scrollBy({left:-200,behavior:"smooth"})},[]),p=(0,i.useCallback)(()=>{l.current?.scrollBy({left:200,behavior:"smooth"})},[]);return 0===e.length?null:(0,t.jsxs)("div",{className:"relative -mt-2 -mb-4 overflow-hidden",children:[s&&(0,t.jsx)(N,{containerClassName:(0,C.cn)("absolute top-[50%] -left-14.5 transition-[left] md:-left-13.5",{"left-9.5 md:left-11":n}),onClick:g,tabIndex:n?0:-1,"aria-hidden":!n,"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:h,ref:l,children:e.map((e,i)=>(0,t.jsx)("div",{role:"listitem",children:(0,t.jsx)(j,{identifier:e})},e.placeId??e.geocode??i))}),s&&(0,t.jsx)(N,{containerClassName:(0,C.cn)("absolute top-[50%] -right-14.5 transition-[right] md:-right-13.5",{"right-9.5 md:right-11":a}),onClick:p,tabIndex:a?0:-1,"aria-hidden":!a,"aria-label":"Scroll right",direction:"right"})]})},E=()=>{let{favoriteLocations:e,recentLocations:c}=(0,n.default)(),{resolveFeatureId:u}=(0,r.useLocationFeatureIds)(),{resolveDetails:d}=(0,a.useRecentLocationDetails)(),m=(0,s.useAtomValue)(o.deviceClassAtom),f=(0,l.useIsClient)(),h=(0,i.useMemo)(()=>(function({favoriteLocations:e,recentLocations:t,resolveFeatureId:i,resolveDetails:s=()=>void 0}){let n=[],r=new Set,a=e=>{let t=[];if(e.featureId?t.push(`f:${e.featureId}`):(e.placeId&&t.push(`p:${e.placeId}`),e.geocode&&t.push(`g:${(0,p.formatGeocode)(e.geocode)}`)),0===t.length)return!0;let i=t.some(e=>r.has(e));for(let e of t)r.add(e);return!i};for(let t of e){if(n.length>=5)break;if(!t.coordinate)continue;let e=(0,p.formatGeocode)(t.coordinate),r=t.placeID??void 0,o=(r?s(r)?.featureId:void 0)??i({placeId:r,geocode:e});a({featureId:o,placeId:r,geocode:e})&&n.push({geocode:e,placeId:r,name:t.name??void 0,featureId:o})}for(let e of t){if(n.length>=5)break;let t=s(e),r=t?.featureId??i({placeId:e});a({featureId:r,placeId:e})&&n.push({placeId:e,name:t?.name,featureId:r})}return n})({favoriteLocations:e,recentLocations:c,resolveFeatureId:u,resolveDetails:d}),[e,c,u,d]);return f&&0!==h.length?(0,t.jsx)(S,{locationIdentifiers:h,showScrollButtons:"mobile"!==m&&"tablet"!==m}):null};e.s(["ForecastModule",0,E,"default",0,E],499746)},748907,e=>{"use strict";var t=e.i(699173),i=e.i(592121),s=e.i(645968),n=e.i(742436),r=e.i(949920),a=e.i(553329),o=e.i(901351),l=e.i(317298),c=e.i(528600);async function u(e,t){let{data:i,error:s}=await (0,a.tryCatch)(e?o.upsxClient.segmentation.getUserMetrics():o.upsxClient.segmentation.getAnonymousEndpointMetrics(t));if(s)return null;let n={promotesNews:(0,l.hasNewsIntent)(i?.metrics)};return(0,l.writeNextSessionIntent)(n),n}let d="next-session-intent",m="data-home-news",f={layout:"default",variant:null,eligible:!1};function h(e){document.documentElement.setAttribute(m,e)}function g(){document.documentElement.removeAttribute(m)}function p(){let e=(0,i.useContext)(n.ExperimentContext),s=e?.isFetchComplete??!1,[r,a]=(0,i.useState)(!1),[o,c]=(0,i.useState)(!1),[u,m]=(0,i.useState)(null);(0,i.useEffect)(()=>{let e=window.__wxHomeNews??f;return h(e.layout),a(e.eligible),"pending"===e.layout?c(!0):e.forced||m(e.variant),g},[]);let p=(0,i.useCallback)(e=>{window.__wxHomeNews={...e,eligible:!0},h(e.layout);try{localStorage.setItem("wxu-home-news-layout",JSON.stringify(e))}catch{}c(!1),m(e.variant)},[]);return(0,i.useEffect)(()=>{if(!o)return;let e=setTimeout(()=>{p({layout:"default",variant:null})},2e3);return()=>clearTimeout(e)},[o,p]),(0,i.useEffect)(()=>{var t,i,n;if(!o||!e||!s)return;let{key:r,value:a}=e.variant(d),c="control"===(i=t=r||a)||"v1"===i||"v2"===i?t:null;p({layout:c?(n=(0,l.readNextSessionIntent)()?.promotesNews??!1,"v2"===c||"v1"===c&&n?"first":"default"):"default",variant:c})},[o,e,s,p]),(0,t.jsxs)(t.Fragment,{children:[r&&(0,t.jsx)(v,{}),u&&(0,t.jsx)(w,{})]})}function v(){return!function(){let{user:e}=(0,c.useUser)(),t=e.isUserLoggedIn?"upsx/segmentation/metrics/user":e.anonId?"upsx/segmentation/metrics/endpoint":null,{data:i}=(0,r.default)(t,()=>u(e.isUserLoggedIn,e.anonId),{shouldRetryOnError:!1})}(),null}function w(){return(0,s.default)(d),null}e.s(["HomeNewsFirstResolver",0,p,"default",0,p],748907)},711899,e=>{e.v(t=>Promise.all(["static/chunks/3h5d4ldkyb10q.js"].map(t=>e.l(t))).then(()=>t(758048)))},460988,e=>{e.v(t=>Promise.all(["static/chunks/2bqbjxorsplul.js","static/chunks/1l_zgf63ykum1.js","static/chunks/0oz6wpni3qqor.js","static/chunks/1r4mw2atr0nii.js","static/chunks/00cycl48jrw9g.js","static/chunks/40-ucou5e-s2-.js","static/chunks/06xt5pmddjmc1.js","static/chunks/12ss66w2jz5v6.js","static/chunks/1g9rt823dw_nm.js","static/chunks/3ez2p7_irinam.js","static/chunks/346zwbsmbxc-r.js","static/chunks/038aau537yncy.js"].map(t=>e.l(t))).then(()=>t(636705)))},137688,e=>{e.v(t=>Promise.all(["static/chunks/2pz2-5xjnibsl.js"].map(t=>e.l(t))).then(()=>t(72990)))},467814,e=>{e.v(t=>Promise.all(["static/chunks/2erl34w6o_is1.css","static/chunks/005xev4x8akth.js","static/chunks/3nm34is7_n54q.js","static/chunks/0oz6wpni3qqor.js","static/chunks/40-ucou5e-s2-.js","static/chunks/1r4mw2atr0nii.js","static/chunks/00cycl48jrw9g.js","static/chunks/11_7qjuqtmqrb.js","static/chunks/12ss66w2jz5v6.js","static/chunks/3ez2p7_irinam.js","static/chunks/1g9rt823dw_nm.js","static/chunks/2r4lgx7woy7mq.js","static/chunks/06xt5pmddjmc1.js","static/chunks/1t4lxs4mm2lcx.js"].map(t=>e.l(t))).then(()=>t(469120)))}]);