(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,198050,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(533760),o=e.i(405341),n=e.i(829065);e.s(["CJUniversalTagScript",0,()=>{let[e,a]=(0,r.useState)(null);return((0,r.useEffect)(()=>{let e=(0,o.getCjConfig)();e&&(0,n.isCjEligible)()&&a(e)},[]),e)?(0,t.jsx)(i.default,{id:"cj-site-page",strategy:"afterInteractive",children:`(function (w, d, src, enterpriseId) { w.cj = w.cj || {}; w.cj.sitePage = { enterpriseId: enterpriseId }; if (d.getElementById('cjapitag')) return; var tag = d.createElement('script'); var first = d.getElementsByTagName('script')[0]; tag.id = 'cjapitag'; tag.async = true; tag.src = src; if (first && first.parentNode) first.parentNode.insertBefore(tag, first); else d.body.appendChild(tag); })(window, document, ${JSON.stringify(e.tagSrc)}, ${JSON.stringify(e.enterpriseId)});`}):null}])},405341,829065,e=>{"use strict";e.s(["CJ_ACTION_ID_DIRECT_PURCHASE",0,521782,"CJ_ACTION_ID_TRIAL_SIGNUP",0,519532,"getCjConfig",0,()=>{let e=Number("1601099".trim()),t="1377327807670".trim();return Number.isInteger(e)&&!(et.US_REGIMES.includes((0,t.getRegime)())],829065)},560542,e=>{"use strict";var t=e.i(247865),r=e.i(293163),i=e.i(695881),o=e.i(553329),n=e.i(405341),a=e.i(829065);let s=(0,i.createLogger)("CommissionJunction");e.s(["useCjConversionTag",0,({shouldFire:e,orderId:i,amount:l,hasTrial:u})=>{let c=(0,t.useRef)(!1);(0,t.useEffect)(()=>{if(!e||c.current||!i)return;let t=(0,n.getCjConfig)();t&&(0,a.isCjEligible)()&&(c.current=!0,(0,o.tryCatch)((async()=>{var e;let o,a,s;return e={orderId:i,amount:l,actionTrackerId:u?n.CJ_ACTION_ID_TRIAL_SIGNUP:n.CJ_ACTION_ID_DIRECT_PURCHASE,cjEventId:(0,r.getCjEvent)()},(o=window).cj=o.cj||{},o.cj.order={enterpriseId:t.enterpriseId,actionTrackerId:e.actionTrackerId,orderId:e.orderId,pageType:"conversionConfirmation",currency:"USD",amount:e.amount,...e.cjEventId?{cjeventOrder:e.cjEventId}:{}},document.getElementById("cjapitag")?.remove(),(a=document.createElement("script")).id="cjapitag",a.async=!0,a.src=t.tagSrc,s=document.getElementsByTagName("script")[0],void(s?.parentNode?s.parentNode.insertBefore(a,s):document.body.appendChild(a))})()).then(({error:e})=>{e&&s.error("conversion tag failed",{orderId:i,error:e})}))},[e,i,l,u])}],560542)},248064,e=>{"use strict";var t=e.i(991511),r=e.i(763886),i=e.i(458001),o=e.i(394481),n=e.i(663333),a=e.i(849177),s=e.i(889753),l=e.i(5397),u=e.i(21121),c=e.i(889781);e.i(647872);var d=e.i(494889),m=e.i(928083),p=e.i(624432),f=e.i(739971),g=e.i(688070),A=e.i(647292),S=e.i(247865),w=e.i(652517),h=e.i(459598),v=e.i(90543);let I=!1,b=!1;function C(){b=!0,(0,h.suppressNextPurchaseAbandon)(),(0,h.suppressNextHightouchPurchaseAbandon)(),(0,w.reloadPage)()}e.s(["FlagsBoundaryClient",0,({params:e})=>{var w;return(0,t.useRehydrateAtoms)([[r.partnerAtom,e.partner],[i.cscCountryCodeAtom,e.cscCountryCode],[o.privacyRegimeAtom,e.privacyRegime],[n.deviceClassAtom,e.deviceClass],[s.userTierAtom,e.userTier],[a.adsDisabledAtom,e.adsDisabled],[l.showAdminHeaderAtom,e.showAdminHeader],[u.showVelvetcakeModuleAtom,e.showVelvetcakeModule],[c.nextgenRadarDriverAtom,e.nextgenRadarDriver],[d.newsHubEnabledAtom,e.newsHubEnabled],[m.activityHubMenuEnabledAtom,e.activityHubMenuEnabled],[p.contentSearchUniversalAtom,e.contentSearchUniversal],[f.subscriptionsEnabledAtom,e.subscriptionsEnabled],[A.webViewPlatformAtom,e.webViewPlatform],[g.isWebViewOnlyAtom,e.isWebViewOnly]]),w=e.userTier,(0,S.useEffect)(()=>{let e=String(w);if(!I&&(I=!0,function(){let[e]=performance.getEntriesByType("navigation");return e?.type==="back_forward"}()&&(0,v.isStaleRestore)({renderedTier:e,recordedTier:(0,v.readRecordedTier)()})))return void C();if(b)return;(0,v.recordTier)(e);let t=(0,v.readAuthEpoch)(),r=r=>{r.persisted&&!b&&(0,v.isStaleRestore)({renderedTier:e,recordedTier:(0,v.readRecordedTier)(),epochAtLoad:t,currentEpoch:(0,v.readAuthEpoch)()})&&C()};return window.addEventListener("pageshow",r),()=>window.removeEventListener("pageshow",r)},[w]),null}],248064)},302027,e=>{"use strict";e.s(["EMBED_CHECKOUT_MESSAGE",0,"wx-checkout-complete","EMBED_RELOAD_FALLBACK_MS",0,3e3])},281468,e=>{"use strict";var t=e.i(288906),r=e.i(247865),i=e.i(725287);function o(){return false}function n(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function a(e){(0,r.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let i=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(i.current)e.route&&i.current(e.route);else{let r=function(e={}){var t;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});let r=e.scriptSrc?e.scriptSrc:o()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${r}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let i=document.createElement("script");return i.src=r,i.defer=!0,i.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),i.dataset.sdkv="1.3.1",e.sampleRate&&(i.dataset.sampleRate=e.sampleRate.toString()),e.route&&(i.dataset.route=e.route),e.endpoint?i.dataset.endpoint=e.endpoint:e.basePath&&(i.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(i.dataset.dsn=e.dsn),o()&&!1===e.debug&&(i.dataset.debug="false"),i.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${r}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(i),{setRoute:e=>{i.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});r&&(i.current=r.setRoute)}},[e.route]),null}function s(e){let o=(()=>{let e=(0,i.useParams)(),t=(0,i.useSearchParams)()||new URLSearchParams,r=(0,i.usePathname)();if(!e)return null;let o=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!r||!o)return r;let a=r;try{let e=Object.entries(o);for(let[t,r]of e)if(!Array.isArray(r)){let e=n(r);e.test(a)&&(a=a.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=n(r.join("/"));e.test(a)&&(a=a.replace(e,`/[...${t}]`))}return a}catch(e){return r}})();return r.default.createElement(a,{route:o,...e,framework:"next",basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}e.s(["SpeedInsights",0,function(e){return r.default.createElement(r.Suspense,{fallback:null},r.default.createElement(s,{...e}))}])},175897,e=>{"use strict";var t,r=e.i(288906),i={scriptHostname:("u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_HOST:void 0)??"https://vercel.live",ownerId:"u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_OWNER_ID:void 0,projectId:"u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_PROJECT_ID:void 0,branch:"u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_BRANCH:void 0,deploymentId:"u">typeof r.default?"dpl_7e4WzbkVZDKncqmnhezhU2V1CnUa":void 0},o=e.i(247865),n=!1;e.s(["UnmountController",0,function({shouldMount:e,nonce:r}){return(0,o.useEffect)(()=>(e&&n&&function(e={}){if(typeof window>"u"||null===document.querySelector("vercel-live-feedback")){Object.assign(i,e);let r=document.createElement("script");for(let[o,n]of(r.src=`${i.scriptHostname}/_next-live/feedback/feedback.js`,r.setAttribute("data-explicit-opt-in","true"),e.nonce&&r.setAttribute("nonce",e.nonce),Object.entries((i.ownerId&&i.projectId?{"data-owner-id":i.ownerId,"data-project-id":i.projectId,"data-branch":t??i.branch}:i.deploymentId?{"data-deployment-id":i.deploymentId}:void 0)??{})))n&&r.setAttribute(o,n);(document.head||document.documentElement).appendChild(r)}}({nonce:r}),n=!0,()=>{(typeof window>"u"?void 0:window.__vercel_toolbar)?.unmount()}),[]),null}],175897)},806262,e=>{"use strict";e.i(247865);var t=e.i(546446);e.i(284007),e.i(981030);let r=new WeakMap;e.s(["useHydrateAtoms",0,function(e,i){var o;let n,a=(0,t.useStore)(i),s=(o=a,(n=r.get(o))||(n=new WeakSet,r.set(o,n)),n);for(let[t,...r]of e)(!s.has(t)||(null==i?void 0:i.dangerouslyForceHydrate))&&(s.add(t),a.set(t,...r))}])},232598,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={callServer:function(){return n.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}};for(var o in i)Object.defineProperty(r,o,{enumerable:!0,get:i[o]});let n=e.r(276247),a=e.r(788443),s=e.r(955011)},797770,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["adsMetricsUnitAndZoneAtom",0,t])},800462,50727,e=>{"use strict";var t=e.i(284007);let r=(0,t.atomWithStorage)("wx-from-search-result",null);e.s(["fromSearchResultAtom",0,r],800462);let i=(0,t.atomWithStorage)("wx-ht-from-search-result",null);e.s(["fromSearchResultAtom",0,i],50727)},604323,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["metricsArticleDataAtom",0,t])},513539,e=>{"use strict";var t=e.i(981030);let r=(0,t.atom)(null),i=(0,t.atom)(null);e.s(["activeEventAtom",0,i,"layoutStateAtom",0,r])},236433,e=>{"use strict";let t=(0,e.i(981030).atom)(null);e.s(["pageAtomsPathnameAtom",0,t])},128541,e=>{"use strict";var t=e.i(284007);let r=(0,t.createJSONStorage)(()=>sessionStorage),i=(0,t.atomWithStorage)("wx-purchase-source-attribution",null,r);e.s(["purchaseSourceAttributionAtom",0,i])},647292,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["webViewPlatformAtom",0,t])},529603,e=>{"use strict";let t=null,r=null,i=e=>{if(t&&e.event.context){let i={...t,...r};e.event.context.traits=e.event.userId?{...i,twcId:String(e.event.userId)}:i}return e};e.s(["setPluginTraits",0,e=>{t=e},"setSignInTraits",0,e=>{r=e},"traitsPlugin",0,{name:"traits-plugin",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:i,page:i}])},947118,221085,e=>{"use strict";let t;var r=e.i(247865);let i=new Set,o=0,n=()=>"function"==typeof window.mParticle?.init,a=()=>{void 0!==t&&(clearInterval(t),t=void 0)},s=()=>{if(!n()||(a(),0===i.size))return;let e=[...i];for(let t of(i.clear(),e))t()},l=()=>{void 0===t&&(o=0,t=setInterval(()=>{o+=100,s(),o>=3e4&&a()},100))},u=e=>(i.add(e),l(),()=>{i.delete(e)}),c=e=>n()?(e(),()=>{}):u(e),d=e=>n()?()=>{}:u(e),m=()=>!1;e.s(["subscribeSdkLoaded",0,c,"useIsSdkLoaded",0,()=>(0,r.useSyncExternalStore)(d,n,m),"watchForSdkLoad",0,e=>{if("u"{};if(n())return s(),()=>{};l();let t=Array.from(document.scripts).find(t=>t.getAttribute("src")===e);if(!t)return()=>{};let r=()=>s();return t.addEventListener("load",r),()=>{t.removeEventListener("load",r)}}],221085);let p=e=>"function"==typeof window.mParticle?.ready?(window.mParticle?.ready?.(e),()=>{}):c(()=>{window.mParticle?.ready?.(e),e()}),f=()=>!!window.mParticle?.isInitialized?.(),g=()=>!1;e.s(["useIsInitialized",0,()=>(0,r.useSyncExternalStore)(p,f,g)],947118)},915044,382602,e=>{"use strict";var t=e.i(247865),r=e.i(947118),i=e.i(546446),o=e.i(293163),n=e.i(160317),a=e.i(981030),s=e.i(889753);let l=(0,a.atom)(e=>e(s.userProfileAtom)?.email),u=(0,a.atom)(e=>e(s.userProfileAtom)?.firstName),c=(0,a.atom)(e=>e(s.userProfileAtom)?.gender);(0,a.atom)(e=>e(s.userProfileAtom)?.emailVerified),e.s(["userEmailAtom",0,l,"userFirstNameAtom",0,u,"userGenderAtom",0,c],382602);var d=e.i(540768),m=e.i(310847),p=e.i(333350),f=e.i(528600);e.s(["useUserAttributes",0,()=>{let e=(0,r.useIsInitialized)(),{user:{isUserLoggedIn:a,isUserPremium:s,subscriptionTier:l}}=(0,f.useUser)(),[g,A]=(0,t.useState)(!1),[S,w]=(0,t.useState)(!1),h=s??!1,v=(0,n.getSubscriptionTierKey)(l),I=(0,i.useAtomValue)(u),b=(0,i.useAtomValue)(c),C=(0,i.useAtomValue)(m.wxuUserAnonymousIdAtom),E=(0,i.useAtomValue)(m.userHasLoggedInBeforeAtom),y=p.default?window?.DprSdk?.getUserConsent("sale-of-data")!==!1:void 0,P=p.default?window?.DprSdk?.getUserConsent("sensitive-data")!==!1:void 0,_=(0,d.getCookie)("subscription")??"",{productID:R=null,expirationDateTime:T=null,transactionDateTime:k=null,firstTransactionDateTime:O=null,autoRenew:N=null,price:L=null,productName:D=null}=(0,o.jwtDecoder)(_)||{},U=(0,t.useMemo)(()=>({premium:h,premiumProductTier:v,premiumExpiration:T,premiumStart:k,premiumFirstTransactionDate:O,premiumProductId:R,premiumProductAutoRenew:N,premiumPrice:L,premiumProductName:D,isRegisteredUser:a||E||!1,isLoggedIn:a,"Amplitude.device_id":C,$Gender:b,$FirstName:I,saleOfDataAuthorization:y,sensitiveDataAuthorization:P,devUser:!1}),[h,v,T,k,O,R,N,L,D,C,a,E,I,b,y,P]);(0,t.useEffect)(()=>{let{$FirstName:e,$Gender:t,...r}=U;(0,o.areObjectValuesDefined)(r)&&!g&&A(!0)},[U,g]);let x=(0,t.useCallback)(()=>{for(let e in U)void 0===U[e]&&delete U[e];if(e&&g&&!S){let e=window.mParticle?.Identity?.getCurrentUser?.();if(!e)return void console.warn("MParticle: No current user");e.setUserAttributes(U),w(!0),console.debug("MParticle: User attributes set - ",U)}},[e,U,g,S]);return{userAttributes:U,setUserAttribute:(0,t.useCallback)((t,r)=>{if(!e)return void console.warn("MParticle is not initialized");let i=window.mParticle?.Identity?.getCurrentUser?.();i?(i.setUserAttribute(t,r),console.debug(`MParticle: User attribute set - ${t}`)):console.warn("MParticle: No current user")},[e]),setUserAttributes:x,removeUserAttribute:(0,t.useCallback)(t=>{if(!e)return void console.warn("MParticle is not initialized");let r=window.mParticle?.Identity?.getCurrentUser?.();r?(r.removeUserAttribute(t),console.debug(`MParticle: User attribute removed - ${t}`)):console.warn("MParticle: No current user")},[e])}}],915044)},658547,e=>{"use strict";var t=e.i(247865),r=e.i(839315),i=e.i(491240);let o=(e,t)=>{let i,o=Date.now()+2e3;return(i=!1,Promise.race([new Promise(e=>{let t=()=>{if(!i){if(window.mParticle?.ready)return void window.mParticle.ready(()=>e());setTimeout(t,50)}};t()}),new Promise((e,t)=>{setTimeout(()=>{t(Error("MParticle did not become ready in time"))},2e3)})]).finally(()=>{i=!0})).then(()=>new Promise(i=>{let n=setTimeout(i,Math.max(0,o-Date.now()));window.mParticle?.Identity?.[e]?.(t,e=>{clearTimeout(n);let t=e?.getUser?.()?.getMPID?.();t&&(0,r.setStoredmParticleId)(t),i()})}))};e.s(["useUserIdentity",0,()=>{let e=(0,t.useCallback)(e=>o("identify",{userIdentities:{customerid:e.customerid,email:e.email,other:(0,i.truncateIdentityValue)(e.other)}}),[]);return{identify:e,login:(0,t.useCallback)(e=>o("login",{userIdentities:{customerid:e.customerid,email:e.email,facebook:e.facebook,facebookcustomaudienceid:e.facebookcustomaudienceid,google:e.google,microsoft:e.microsoft,other:(0,i.truncateIdentityValue)(e.other),other2:(0,i.truncateIdentityValue)(e.other2),other3:(0,i.truncateIdentityValue)(e.other3),other4:(0,i.truncateIdentityValue)(e.other4),twitter:e.twitter,yahoo:e.yahoo}}),[]),logout:(0,t.useCallback)(()=>o("logout",{userIdentities:{}}),[])}}])},491240,e=>{"use strict";let t=(0,e.i(695881).createLogger)("MParticleIdentity");e.s(["truncateIdentityValue",0,e=>"string"==typeof e&&e.length>256?(t.warn(`identity value exceeded 256 chars (${e.length}); truncating`),e.slice(0,256)):e])},459598,e=>{"use strict";let t=()=>{let e,t=!1;return{suppressNext:()=>{t=!0,clearTimeout(e),e=setTimeout(()=>{t=!1},2e3)},consume:()=>!!t&&(t=!1,clearTimeout(e),!0)}},r=t(),i=t(),o=r.suppressNext,n=r.consume,a=i.suppressNext,s=i.consume;e.s(["consumeHightouchPurchaseAbandonSuppression",0,s,"consumePurchaseAbandonSuppression",0,n,"suppressNextHightouchPurchaseAbandon",0,a,"suppressNextPurchaseAbandon",0,o])},663333,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["deviceClassAtom",0,t])},647872,494889,928083,624432,e=>{"use strict";var t=e.i(981030);let r=(0,t.atom)(!1);e.s(["newsHubEnabledAtom",0,r],494889);let i=(0,t.atom)(!1);e.s(["activityHubMenuEnabledAtom",0,i],928083);let o=(0,t.atom)(!1);e.s(["contentSearchUniversalAtom",0,o],624432),e.s([],647872)},849177,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["adsDisabledAtom",0,t])},458001,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["cscCountryCodeAtom",0,t])},763886,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["partnerAtom",0,t])},456215,e=>{"use strict";e.s(["isSnowCastWebView",0,function(e){return"snowcast"===e||e.startsWith("snowcast-")},"isWebViewIos",0,function(e){return"ios"===e||e.endsWith("-ios")}])},889781,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["nextgenRadarDriverAtom",0,t])},5397,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["showAdminHeaderAtom",0,t])},21121,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["showVelvetcakeModuleAtom",0,t])},752496,e=>{"use strict";var t=e.i(247865),r=e.i(609858);let i=(0,e.i(695881).createLogger)("DebugCollector");e.s(["DebugCollectorClient",0,function({componentName:e,data:o,page:n,onUpdateData:a,onSetPageData:s}){let{updateComponentData:l,setPageData:u}=(0,r.useDebugSystem)(),c=(0,t.useRef)(!1),d=a||l,m=s||u;return(0,t.useEffect)(()=>{if(o)return i.lifecycle(`Collecting component data for ${e}`,{dataKeys:Object.keys(o),hasPerformance:!!o.performance,hasContext:!!o.context}),d(e,{...o,_collectedAt:new Date().toISOString()}),()=>{i.lifecycle(`Cleaning up data for ${e}`),d(e,null)}},[e,o,d]),(0,t.useEffect)(()=>{n&&!c.current&&(i.lifecycle("Setting page metadata",{title:n.title,assetName:n.assetName,collection:n.collection}),m({...n,_updatedAt:new Date().toISOString()}),c.current=!0)},[n,m]),null}])},609858,674339,e=>{"use strict";var t=e.i(546446),r=e.i(247865);let i=(0,e.i(981030).atom)({timestamp:new Date().toISOString()});e.s(["debugDataAtom",0,i],674339),e.s(["useDebugSystem",0,function(){let[e,o]=(0,t.useAtom)(i),n=(0,r.useCallback)((e,t)=>{o(r=>{let i=r?.[e]||{},o="object"==typeof t&&null!==t&&"object"==typeof i?{...i,...t}:t;return{...r,[e]:o}})},[o]),a=(0,r.useCallback)((e,t)=>{o(r=>{let i=r||{timestamp:new Date().toISOString()},o=i.components||{};if(null===t){let t={...o};return delete t[e],{...i,components:t}}return{...i,components:{...o,[e]:t}}})},[o]),s=(0,r.useCallback)(e=>{n("page",e)},[n]),l=(0,r.useCallback)(e=>{n("route",e)},[n]),u=(0,r.useCallback)(e=>{Object.entries(e).forEach(([e,t])=>{t&&n(e,t)})},[n]);return{debugData:e,updateSection:n,updateComponentData:a,setPageData:s,clearAllDebugData:(0,r.useCallback)(()=>{o({timestamp:new Date().toISOString()})},[o]),updateRouteInfo:l,updatePageDebug:u}}],609858)},394481,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["privacyRegimeAtom",0,t])},313983,e=>{"use strict";var t,r=((t={}).ESSENTIAL_TECHNOLOGY="essential-technology",t.FUNCTIONAL_TECHNOLOGY="functional-technology",t.GEOGRAPHICALLY_RELEVANT_ADVERTISING="geographically-relevant-advertising",t.INTERNATIONAL_TRANSFER="international-transfer",t.SALE_OF_DATA="sale-of-data",t.SENSITIVE_DATA="sensitive-data",t.SELECT_PERSONALISED_CONTENT="Select personalised content",t.SELECT_PERSONALISED_ADS="Select personalised ads",t.SELECT_BASIC_ADS="Select basic ads",t.CREATE_A_PERSONALISED_ADS_PROFILE="Create a personalised ads profile",t.CREATE_A_PERSONALISED_CONTENT_PROFILE="Create a personalised content profile",t.MEASURE_AD_PERFORMANCE="Measure ad performance",t.APPLY_MARKET_RESEARCH_TO_GENERATE_AUDIENCE_INSIGHTS="Apply market research to generate audience insights",t.DEVELOP_AND_IMPROVE_PRODUCTS="Develop and improve products",t.STORE_AND_OR_ACCESS_INFORMATION_ON_A_DEVICE="Store and/or access information on a device",t.MEASURE_CONTENT_PERFORMANCE="Measure content performance",t);e.s(["Purpose",()=>r])},7150,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["pushlyPromptSuppressedAtom",0,t])},756227,e=>{"use strict";var t=e.i(546446),r=e.i(284007),i=e.i(889753),o=e.i(905059),n=e.i(310847),a=e.i(960576),s=e.i(317298),l=e.i(839315),u=e.i(391174),c=e.i(735526),d=e.i(90543),m=e.i(529603);e.s(["useResetAuthState",0,function(){let e=(0,t.useSetAtom)(i.userProfileAtom),p=(0,t.useSetAtom)(n.wxuUserAccountUserAccountResponseAtom),f=(0,t.useSetAtom)(o.mapLayerOrderAtom);return()=>{(0,u.invalidateUpsxCache)(),(0,s.clearNextSessionIntent)(),e(r.RESET),p(null),f(r.RESET),(0,a.clearEarlyAnonId)(),(0,c.clearAccountCreated)(),(0,m.setSignInTraits)(null),(0,l.clearStoredmParticleId)(),(0,d.bumpAuthEpoch)()}}])},731672,e=>{"use strict";var t=e.i(546446),r=e.i(965586),i=e.i(671525),o=e.i(889753),n=e.i(810564),a=e.i(553329),s=e.i(45846),l=e.i(284007),u=e.i(756227),c=e.i(358273),d=e.i(247865),m=e.i(540768),p=e.i(682142),f=e.i(782937),g=e.i(695881),A=e.i(333350),S=e.i(64412),w=e.i(950771),h=e.i(537989),v=e.i(695203),I=e.i(158662),b=e.i(777638),C=e.i(924776),E=e.i(409628),y=e.i(605781);let P=(0,g.createLogger)("useUserLoggedOut");var _=e.i(658547),R=e.i(472925),T=e.i(529603),k=e.i(160317),O=e.i(543512);let N={isLoggedIn:!1,upsxId:"",registeredEmail:void 0,premium:!1,premiumProductTier:(0,k.getSubscriptionTierKey)(O.UserSubscriptionTiers.none),$FirstName:"",$Gender:"",emailSubscriptions:"[]",premiumProductId:null,premiumExpiration:null,premiumStart:null,premiumFirstTransactionDate:null,premiumProductAutoRenew:null,premiumPrice:null,premiumProductName:null,premiumProductTerm:null};e.s(["useUserLogout",0,function({reload:e=!0,clearOnError:g=!1}={}){let k=(0,t.useSetAtom)(o.userPreferencesAtom),O=(0,u.useResetAuthState)(),{refresh:L}=(0,i.usePageNavigation)(),D=((e={})=>{let r=(0,t.useAtomValue)(h.pageIdAtom),i=(0,t.useAtomValue)(w.pageLocaleAtom),o=(0,t.useAtomValue)(v.deviceClassAtom),n=(0,t.useAtomValue)(I.experimentJoinListAtom),{location:a}=(0,S.useLocation)(),s=(0,C.useIsHightouchReady)(),{url:l,logoutMethod:u}=e;return(0,d.useCallback)(()=>{if(!A.default||!s)return;let e=(0,p.getCICookie)(),t=e?.["TWC-GeoIP-Country"]??(0,m.getCookie)("twc-location-country"),d=e?.["TWC-GeoIP-Region"]??(0,m.getCookie)("twc-location-region"),g=e?.["TWC-Privacy"]??(0,m.getCookie)("twc-privacy"),S=window.DprSdk?.getGdprConsentOptInsString()??"",w=window.DprSdk?.getCcpaSaleOptInString()??"",h=window.navigator?.globalPrivacyControl??!1,v=S?.includes("functional-technology")??!1,I=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,C=navigator?.cookieEnabled??!1,_=(0,m.getCookie)("partner")||"",R=(0,f.getPartnerByPattern)(_)??_,T=(0,c.getMetricsSession)(),k=T?.sessionId||"",O=T?.sessionStartTime||0,N=new Date,L=N.getHours(),D=E.WEEK_DAYS[N.getDay()]??"",U=-N.getTimezoneOffset()/60,x=document.referrer,j={url:l??window.location.pathname,logoutMethod:u??"manual",referrer:x,privProducts:w,deviceTimeZone:U,pageId:r??"",locale:i,deviceClass:o,sessionId:k,sessionStartTime:O,partner:R,wlocCity:a?.city??null,wlocCountry:a?.countryCode??null,wlocState:a?.adminDistrictCode??null,wlocDMA:a?.dmaCd??null,dayOfWeek:D,regime:g??"",cookiesEnabled:C,gpcSignalOptOut:h,functionalTechnologies:v,geographicallyRelevantAds:I,priv:S,hourOfDay:L,physicalCountry:t??"",physicalState:d??"",campaign:(0,b.getCampaign)()??void 0,tpcc:(0,b.getTpcc)(),linkReferral:(0,b.getLinkReferral)(),experimentJoinList:n,weatherMode:"normal",samsungVersion:(0,b.getSamsungVersion)(),appVersion:"a4d101b136e8782701254dc7081d2f3659e224d8".slice(0,10)};try{let e=(0,y.trackUserLoggedout)(j);return P.info('Hightouch: Event "user-loggedout" tracked'),e}catch(e){P.error('Hightouch: Event "user-loggedout" failed',{error:e})}},[l,u,r,i,o,n,a,s])})(),{logout:U}=(0,_.useUserIdentity)();return async()=>{let{error:t}=await (0,a.tryCatch)(s.upsxClient.auth.logout());return t?(console.error("Failed to log out:",t),g&&(O(),k(l.RESET),(0,r.deleteCookie)("twc-user",{domain:(0,n.upsxCookieDomain)(window.location.hostname)})),!1):(await (0,R.settleWithin)(()=>D(),1e3),O(),await (0,a.tryCatch)(U()),(0,T.setSignInTraits)(N),(0,c.regenerateMetricsSession)(),k(l.RESET),(0,r.deleteCookie)("twc-user",{domain:(0,n.upsxCookieDomain)(window.location.hostname)}),e&&L({mpa:!0}),!0)}}],731672)},735526,e=>{"use strict";let t="wx-next/account-created";e.s(["clearAccountCreated",0,function(){try{sessionStorage.removeItem(t)}catch{}},"markAccountCreated",0,function(){try{sessionStorage.setItem(t,"true")}catch{}},"wasAccountCreated",0,function(){try{return"true"===sessionStorage.getItem(t)}catch{return!1}}])},90543,e=>{"use strict";var t=e.i(521350);let r="wxu-auth-epoch",i="wxu-rendered-tier";function o(e){return(0,t.isLocalStorageAvailable)()?localStorage.getItem(e):null}function n(e,r){(0,t.isLocalStorageAvailable)()&&localStorage.setItem(e,r)}e.s(["bumpAuthEpoch",0,function(){n(r,String(Date.now()))},"isStaleRestore",0,function({renderedTier:e,recordedTier:t,epochAtLoad:r,currentEpoch:i}){return null!==t&&t!==e||void 0!==r&&r!==i},"readAuthEpoch",0,function(){return o(r)},"readRecordedTier",0,function(){return o(i)},"recordTier",0,function(e){n(i,e)}])},391174,95870,e=>{"use strict";var t=e.i(613646);e.s(["mutate",()=>t.j],95870);var t=t,r=e.i(892504);e.s(["invalidateUpsxCache",0,()=>{(0,t.j)(e=>"string"==typeof e&&e.startsWith("upsx/"),void 0,{revalidate:!1}),(0,r.clearPurchaseChecked)()}],391174)},45846,e=>{"use strict";e.i(288906);var t=e.i(245943),r=e.i(810564);let i=new t.UPSXClient({baseUrl:(0,r.upsxApiUrl)("https://upsx.weather.com")});e.s(["upsxClient",0,i])},378869,e=>{"use strict";let t=(0,e.i(284007).atomWithStorage)("wxu-web/keyval:emailSubscriptions",null,void 0,{getOnInit:!0});e.s(["emailPreferencesAtom",0,t])},905059,e=>{"use strict";let t=(0,e.i(284007).atomWithStorage)("wx-next/user:mapLayerOrder",null,void 0,{getOnInit:!0});e.s(["mapLayerOrderAtom",0,t])},739971,e=>{"use strict";let t=(0,e.i(981030).atom)(null);e.s(["subscriptionsEnabledAtom",0,t])},249725,e=>{"use strict";var t=e.i(546446),r=e.i(247865),i=e.i(726249),o=e.i(310847);let n=Object.freeze({});function a(){let e=(0,t.useSetAtom)(o.wxuUserLocationFeatureIdsAtom);return(0,r.useCallback)((t,r)=>{let o=[];t.placeId&&o.push(t.placeId),t.geocode&&!r?.startsWith("address.")&&o.push((0,i.formatGeocode)(t.geocode)),0!==o.length&&e(e=>{let t=e??{};if(!o.some(e=>!(e in t)||t[e]!==r))return t;let i={...t};for(let e of o)i[e]=r;return i})},[e])}e.s(["useLocationFeatureIds",0,function(){let e=(0,t.useAtomValue)(o.wxuUserLocationFeatureIdsAtom)??n,s=(0,r.useCallback)(t=>{if(t.placeId){let r=e[t.placeId];if(r)return r}if(t.geocode){let r=e[(0,i.formatGeocode)(t.geocode)];if(r)return r}},[e]),l=(0,r.useCallback)(t=>t in e,[e]);return{featureIds:e,resolveFeatureId:s,hasResolvedPlaceId:l,recordFeatureId:a()}},"useRecordFeatureId",0,a])},145651,e=>{"use strict";var t=e.i(546446),r=e.i(776169),i=e.i(579310),o=e.i(310847),n=e.i(247865);let a=Object.freeze([]),s=Object.freeze([]);e.s(["default",0,()=>{let{updatePreferences:e}=(0,r.usePreferences)(),l=(0,t.useAtomValue)(i.userLocationsAtom),u=(0,n.useMemo)(()=>l?[...l].sort((e,t)=>e.position-t.position):a,[l]),[c,d]=(0,t.useAtom)(o.wxuUserRecentLocationsAtom),[,m]=(0,t.useAtom)(o.wxuUserRecentAddressesAtom),p=(0,n.useCallback)(t=>{let r={...t,position:Math.max(...u.map(e=>e.position),0)+1};e({locations:[...u,r]})},[u,e]),f=(0,n.useCallback)(t=>{e({locations:u.filter(e=>e.placeID!==t)})},[u,e]),g=(0,n.useCallback)(e=>{d(t=>[e,...(t||[]).filter(t=>t!==e)].slice(0,5))},[d]),A=(0,n.useCallback)(e=>{d(t=>(t||[]).filter(t=>t!==e))},[d]),S=(0,n.useCallback)(()=>{d([])},[d]),w=(0,n.useCallback)(e=>{m(t=>(t||[]).filter(t=>t.placeId!==e))},[m]),h=(0,n.useCallback)(e=>{f(e),A(e),w(e)},[f,A,w]);return{addFavoriteLocation:p,removeFavoriteLocation:f,addRecentLocation:g,removeRecentLocation:A,removeRecentAddress:w,clearRecentLocations:S,deleteLocation:h,recentLocations:c||s,favoriteLocations:u}}])},317298,e=>{"use strict";let t="wxu-next-session-intent",r=["fpdprobnsitop1intent","fpdprobnsitop2intent","fpdprobnsitop3intent"];e.s(["clearNextSessionIntent",0,function(){try{localStorage.removeItem(t)}catch{}},"hasRadarIntent",0,function(e){return!!e&&r.some(t=>{let r=e[t];return"string"==typeof r&&"radar"===r.trim().toLowerCase()})},"readNextSessionIntent",0,function(){try{let e=localStorage.getItem(t);if(!e)return null;let r=JSON.parse(e);if(r&&"object"==typeof r&&"promotesRadar"in r&&"boolean"==typeof r.promotesRadar)return{promotesRadar:r.promotesRadar};return null}catch{return null}},"writeNextSessionIntent",0,function(e){try{localStorage.setItem(t,JSON.stringify({promotesRadar:e.promotesRadar}))}catch{}}])},839315,e=>{"use strict";e.i(965586);let t="wxu-web/keyval:mparticleUser";e.s(["clearStoredmParticleId",0,()=>{try{localStorage.removeItem(t)}catch{}},"getStoredmParticleId",0,()=>{try{let e=JSON.parse(localStorage.getItem(t)||"{}");return e?.value?.mpid||null}catch{return null}},"getmParticleCustomerId",0,()=>window?.mParticle?.Identity?.getCurrentUser?.()?.getUserIdentities?.()?.userIdentities?.customerid||null,"getmParticleId",0,()=>{let e=window?.mParticle?.Identity?.getCurrentUser?.()?.getMPID?.();return e||null},"setStoredmParticleId",0,e=>{try{localStorage.setItem(t,JSON.stringify({value:{mpid:e},updatedAt:Date.now()}))}catch{}}])},892504,e=>{"use strict";let t="upsx-purchase-checked-at";e.s(["clearPurchaseChecked",0,()=>{try{localStorage.removeItem(t)}catch{}},"markPurchaseChecked",0,()=>{try{localStorage.setItem(t,String(Date.now()))}catch{}},"purchaseCheckedRecently",0,()=>{try{let e=localStorage.getItem(t);if(!e)return!1;let r=Number(e);if(!Number.isFinite(r))return!1;return Date.now()-r{"use strict";let t=(0,e.i(981030).atom)(null);e.s(["getSmartScriptClickUrl",0,function(e){let t=e?.clickURL;return"string"==typeof t&&t?t:null},"smartScriptClickUrlAtom",0,t,"withCtaAttribution",0,function(e,{trackAdset:t,deepLinkValue:r}){if(!URL.canParse(e))return e;let i=new URL(e);return t&&i.searchParams.set("af_adset",t.replace(/ /g,"_")),r&&i.searchParams.set("deep_link_value",r),i.toString()}])},216809,e=>{"use strict";var t=e.i(247865),r=e.i(553329);e.s(["useAppsFlyerConsent",0,function(){let[e,i]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let e=!1;return(async()=>{let t=window.DprSdk?.isInitialized;if(!t)return;let{error:o}=await (0,r.tryCatch)(t);o||e||i(!!window.DprSdk?.getFeatureFlags()?.appsFlyer)})(),()=>{e=!0}},[]),e}])},991511,e=>{"use strict";var t=e.i(247865),r=e.i(806262),i=e.i(546446);e.s(["useRehydrateAtoms",0,e=>{(0,r.useHydrateAtoms)(e);let o=(0,i.useStore)(),n=(0,t.useRef)(e);n.current=e,(0,t.useEffect)(()=>{for(let[e,t]of n.current)o.get(e)!==t&&o.set(e,t)})}])},472925,e=>{"use strict";var t=e.i(553329);let r=async(e,r)=>{let i;await (0,t.tryCatch)(Promise.race([Promise.resolve().then(e),new Promise(e=>{i=setTimeout(e,r)})])),clearTimeout(i)};e.s(["settleWithin",0,r])}]);