(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),a=e.i(533760),i=e.i(405341),n=e.i(829065);e.s(["CJUniversalTagScript",0,()=>{let[e,o]=(0,r.useState)(null);return((0,r.useEffect)(()=>{let e=(0,i.getCjConfig)();e&&(0,n.isCjEligible)()&&o(e)},[]),e)?(0,t.jsx)(a.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),a=e.i(695881),i=e.i(553329),n=e.i(405341),o=e.i(829065);let s=(0,a.createLogger)("CommissionJunction");e.s(["useCjConversionTag",0,({shouldFire:e,orderId:a,amount:l,hasTrial:c})=>{let u=(0,t.useRef)(!1);(0,t.useEffect)(()=>{if(!e||u.current||!a)return;let t=(0,n.getCjConfig)();t&&(0,o.isCjEligible)()&&(u.current=!0,(0,i.tryCatch)((async()=>{var e;let i,o,s;return e={orderId:a,amount:l,actionTrackerId:c?n.CJ_ACTION_ID_TRIAL_SIGNUP:n.CJ_ACTION_ID_DIRECT_PURCHASE,cjEventId:(0,r.getCjEvent)()},(i=window).cj=i.cj||{},i.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(),(o=document.createElement("script")).id="cjapitag",o.async=!0,o.src=t.tagSrc,s=document.getElementsByTagName("script")[0],void(s?.parentNode?s.parentNode.insertBefore(o,s):document.body.appendChild(o))})()).then(({error:e})=>{e&&s.error("conversion tag failed",{orderId:a,error:e})}))},[e,a,l,c])}],560542)},281468,e=>{"use strict";var t=e.i(288906),r=e.i(247865),a=e.i(725287);function i(){return false}function n(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function o(e){(0,r.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let a=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(a.current)e.route&&a.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:i()?"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 a=document.createElement("script");return a.src=r,a.defer=!0,a.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),a.dataset.sdkv="1.3.1",e.sampleRate&&(a.dataset.sampleRate=e.sampleRate.toString()),e.route&&(a.dataset.route=e.route),e.endpoint?a.dataset.endpoint=e.endpoint:e.basePath&&(a.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(a.dataset.dsn=e.dsn),i()&&!1===e.debug&&(a.dataset.debug="false"),a.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(a),{setRoute:e=>{a.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&&(a.current=r.setRoute)}},[e.route]),null}function s(e){let i=(()=>{let e=(0,a.useParams)(),t=(0,a.useSearchParams)()||new URLSearchParams,r=(0,a.usePathname)();if(!e)return null;let i=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!r||!i)return r;let o=r;try{let e=Object.entries(i);for(let[t,r]of e)if(!Array.isArray(r)){let e=n(r);e.test(o)&&(o=o.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=n(r.join("/"));e.test(o)&&(o=o.replace(e,`/[...${t}]`))}return o}catch(e){return r}})();return r.default.createElement(o,{route:i,...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),a={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_C4zMz2iTYaSWqwnJ6pvES7iFkW4R":void 0},i=e.i(247865),n=!1;e.s(["UnmountController",0,function({shouldMount:e,nonce:r}){return(0,i.useEffect)(()=>(e&&n&&function(e={}){if(typeof window>"u"||null===document.querySelector("vercel-live-feedback")){Object.assign(a,e);let r=document.createElement("script");for(let[i,n]of(r.src=`${a.scriptHostname}/_next-live/feedback/feedback.js`,r.setAttribute("data-explicit-opt-in","true"),e.nonce&&r.setAttribute("nonce",e.nonce),Object.entries((a.ownerId&&a.projectId?{"data-owner-id":a.ownerId,"data-project-id":a.projectId,"data-branch":t??a.branch}:a.deploymentId?{"data-deployment-id":a.deploymentId}:void 0)??{})))n&&r.setAttribute(i,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,a){var i;let n,o=(0,t.useStore)(a),s=(i=o,(n=r.get(i))||(n=new WeakSet,r.set(i,n)),n);for(let[t,...r]of e)(!s.has(t)||(null==a?void 0:a.dangerouslyForceHydrate))&&(s.add(t),o.set(t,...r))}])},753764,e=>{"use strict";var t=e.i(730921),r=e.i(902875);e.s(["default",0,function({locale:e,...a}){if(!e)throw Error(void 0);return(0,r.jsx)(t.IntlProvider,{locale:e,...a})}])},232598,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={callServer:function(){return n.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return o.findSourceMapURL}};for(var i in a)Object.defineProperty(r,i,{enumerable:!0,get:a[i]});let n=e.r(276247),o=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 a=(0,t.atomWithStorage)("wx-ht-from-search-result",null);e.s(["fromSearchResultAtom",0,a],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),a=(0,t.atom)(null);e.s(["activeEventAtom",0,a,"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),a=(0,t.atomWithStorage)("wx-purchase-source-attribution",null,r);e.s(["purchaseSourceAttributionAtom",0,a])},947118,221085,e=>{"use strict";let t;var r=e.i(247865);let a=new Set,i=0,n=()=>"function"==typeof window.mParticle?.init,o=()=>{void 0!==t&&(clearInterval(t),t=void 0)},s=()=>{if(!n()||(o(),0===a.size))return;let e=[...a];for(let t of(a.clear(),e))t()},l=()=>{void 0===t&&(i=0,t=setInterval(()=>{i+=100,s(),i>=3e4&&o()},100))},c=e=>(a.add(e),l(),()=>{a.delete(e)}),u=e=>n()?(e(),()=>{}):c(e),d=e=>n()?()=>{}:c(e),f=()=>!1;e.s(["subscribeSdkLoaded",0,u,"useIsSdkLoaded",0,()=>(0,r.useSyncExternalStore)(d,n,f),"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),()=>{}):u(()=>{window.mParticle?.ready?.(e),e()}),m=()=>!!window.mParticle?.isInitialized?.(),g=()=>!1;e.s(["useIsInitialized",0,()=>(0,r.useSyncExternalStore)(p,m,g)],947118)},915044,e=>{"use strict";e.i(288906);var t=e.i(247865),r=e.i(947118),a=e.i(546446),i=e.i(293163),n=e.i(160317),o=e.i(382602),s=e.i(540768),l=e.i(310847),c=e.i(333350),u=e.i(528600);e.s(["useUserAttributes",0,()=>{let e=(0,r.useIsInitialized)(),{user:{isUserLoggedIn:d,isUserPremium:f,subscriptionTier:p}}=(0,u.useUser)(),[m,g]=(0,t.useState)(!1),[S,A]=(0,t.useState)(!1),C=f??!1,w=(0,n.getSubscriptionTierKey)(p),y=(0,a.useAtomValue)(o.userFirstNameAtom),v=(0,a.useAtomValue)(o.userGenderAtom),E=(0,a.useAtomValue)(l.wxuUserAnonymousIdAtom),h=(0,a.useAtomValue)(l.userHasLoggedInBeforeAtom),I=c.default?window?.DprSdk?.getUserConsent("sale-of-data")!==!1:void 0,b=c.default?window?.DprSdk?.getUserConsent("sensitive-data")!==!1:void 0,_=(0,s.getCookie)("subscription")??"",{productID:P=null,expirationDateTime:R=null,transactionDateTime:T=null,firstTransactionDateTime:O=null,autoRenew:k=null,price:L=null,productName:N=null}=(0,i.jwtDecoder)(_)||{},U=(0,t.useMemo)(()=>({premium:C,premiumProductTier:w,premiumExpiration:R,premiumStart:T,premiumFirstTransactionDate:O,premiumProductId:P,premiumProductAutoRenew:k,premiumPrice:L,premiumProductName:N,isRegisteredUser:d||h||!1,isLoggedIn:d,"Amplitude.device_id":E,$Gender:v,$FirstName:y,saleOfDataAuthorization:I,sensitiveDataAuthorization:b,devUser:!1}),[C,w,R,T,O,P,k,L,N,E,d,h,y,v,I,b]);(0,t.useEffect)(()=>{let{$FirstName:e,$Gender:t,...r}=U;(0,i.areObjectValuesDefined)(r)&&!m&&g(!0)},[U,m]);let D=(0,t.useCallback)(()=>{for(let e in U)void 0===U[e]&&delete U[e];if(e&&m&&!S){let e=window.mParticle?.Identity?.getCurrentUser?.();if(!e)return void console.warn("MParticle: No current user");e.setUserAttributes(U),A(!0),console.debug("MParticle: User attributes set - ",U)}},[e,U,m,S]);return{userAttributes:U,setUserAttribute:(0,t.useCallback)((t,r)=>{if(!e)return void console.warn("MParticle is not initialized");let a=window.mParticle?.Identity?.getCurrentUser?.();a?(a.setUserAttribute(t,r),console.debug(`MParticle: User attribute set - ${t}`)):console.warn("MParticle: No current user")},[e]),setUserAttributes:D,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])}}])},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])},678651,(e,t,r)=>{"use strict";function a(e){let t=new URLSearchParams;for(let[r,a]of Object.entries(e))void 0!==a&&t.append(r,a);return t}Object.defineProperty(r,"__esModule",{value:!0}),r.queryStringToSearchParams=a,r.urlFrom=function({host:e,...t}){if(!e)throw Error("Host is missing");let r=new URL(`https://${e}`);return Object.assign(r,{...t,hostname:e}),t.query&&(r.search=a(t.query).toString()),r}},671525,e=>{"use strict";var t=e.i(725287);let r=()=>{let e=(0,t.useRouter)();return{navigate:(t,r={})=>{let{mpa:a=!0,replace:i=!1}=r;a?i?window.location.replace(t):window.location.href=t:i?e.replace(t):e.push(t)},refresh:(t={})=>{let{mpa:r=!0}=t;r?window.location.reload():e.refresh()},router:e}};e.s(["default",0,r,"usePageNavigation",0,r])},5397,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["showAdminHeaderAtom",0,t])},752496,e=>{"use strict";var t=e.i(247865),r=e.i(609858);let a=(0,e.i(695881).createLogger)("DebugCollector");e.s(["DebugCollectorClient",0,function({componentName:e,data:i,page:n,onUpdateData:o,onSetPageData:s}){let{updateComponentData:l,setPageData:c}=(0,r.useDebugSystem)(),u=(0,t.useRef)(!1),d=o||l,f=s||c;return(0,t.useEffect)(()=>{if(i)return a.lifecycle(`Collecting component data for ${e}`,{dataKeys:Object.keys(i),hasPerformance:!!i.performance,hasContext:!!i.context}),d(e,{...i,_collectedAt:new Date().toISOString()}),()=>{a.lifecycle(`Cleaning up data for ${e}`),d(e,null)}},[e,i,d]),(0,t.useEffect)(()=>{n&&!u.current&&(a.lifecycle("Setting page metadata",{title:n.title,assetName:n.assetName,collection:n.collection}),f({...n,_updatedAt:new Date().toISOString()}),u.current=!0)},[n,f]),null}])},609858,674339,e=>{"use strict";var t=e.i(546446),r=e.i(247865);let a=(0,e.i(981030).atom)({timestamp:new Date().toISOString()});e.s(["debugDataAtom",0,a],674339),e.s(["useDebugSystem",0,function(){let[e,i]=(0,t.useAtom)(a),n=(0,r.useCallback)((e,t)=>{i(r=>{let a=r?.[e]||{},i="object"==typeof t&&null!==t&&"object"==typeof a?{...a,...t}:t;return{...r,[e]:i}})},[i]),o=(0,r.useCallback)((e,t)=>{i(r=>{let a=r||{timestamp:new Date().toISOString()},i=a.components||{};if(null===t){let t={...i};return delete t[e],{...a,components:t}}return{...a,components:{...i,[e]:t}}})},[i]),s=(0,r.useCallback)(e=>{n("page",e)},[n]),l=(0,r.useCallback)(e=>{n("route",e)},[n]),c=(0,r.useCallback)(e=>{Object.entries(e).forEach(([e,t])=>{t&&n(e,t)})},[n]);return{debugData:e,updateSection:n,updateComponentData:o,setPageData:s,clearAllDebugData:(0,r.useCallback)(()=>{i({timestamp:new Date().toISOString()})},[i]),updateRouteInfo:l,updatePageDebug:c}}],609858)},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])},725296,e=>{"use strict";var t,r=e.i(965586),a=((t={}).CA="ca",t.CA_QC="ca-qc",t.EXEMPT="exempt",t.GDPR="gdpr",t.JP="jp",t.KR="kr",t.LATAM_CO="latam-co",t.LATAM_DO="latam-do",t.LATAM_PE="latam-pe",t.LGPD="lgpd",t.PIPL="pipl",t.TR_KVKK="tr-kvkk",t.USA="usa",t.USA_CCPA="usa-ccpa",t.USA_CO="usa-co",t.USA_CT="usa-ct",t.USA_VA="usa-va",t);Object.values(a);let i={"usa-ut":"usa"},n=e=>e?i[e]??e:void 0;e.s(["RESTRICTIVE_REGIMES",0,["ca-qc","gdpr","latam-co","latam-do","latam-pe","lgpd","pipl","tr-kvkk"],"Regime",()=>a,"US_REGIMES",0,["usa","usa-ccpa","usa-co","usa-ct","usa-va"],"default",0,a,"getRegime",0,()=>(()=>{let e=(0,r.getCookie)("ci")?.toString();if(e)for(let t of e.split("&")){let e=t.indexOf("=");if(e>-1&&"TWC-Privacy"===t.slice(0,e))return n(t.slice(e+1))}})()??n((0,r.getCookie)("twc-privacy")?.toString())??"exempt"])},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),a=e.i(889753),i=e.i(905059),n=e.i(310847),o=e.i(960576),s=e.i(317298),l=e.i(391174),c=e.i(735526),u=e.i(90543);e.s(["useResetAuthState",0,function(){let e=(0,t.useSetAtom)(a.userProfileAtom),d=(0,t.useSetAtom)(n.wxuUserAccountUserAccountResponseAtom),f=(0,t.useSetAtom)(i.mapLayerOrderAtom);return()=>{(0,l.invalidateUpsxCache)(),(0,s.clearNextSessionIntent)(),e(r.RESET),d(null),f(r.RESET),(0,o.clearEarlyAnonId)(),(0,c.clearAccountCreated)(),(0,u.bumpAuthEpoch)()}}])},731672,e=>{"use strict";var t=e.i(546446),r=e.i(965586),a=e.i(671525),i=e.i(889753),n=e.i(810564),o=e.i(45846),s=e.i(284007),l=e.i(756227),c=e.i(358273),u=e.i(247865),d=e.i(540768),f=e.i(682142),p=e.i(782937),m=e.i(695881),g=e.i(333350),S=e.i(64412),A=e.i(950771),C=e.i(537989),w=e.i(695203),y=e.i(158662),v=e.i(777638),E=e.i(924776),h=e.i(409628),I=e.i(605781);let b=(0,m.createLogger)("useUserLoggedOut");e.s(["useUserLogout",0,function({reload:e=!0}={}){let m=(0,t.useSetAtom)(i.userPreferencesAtom),_=(0,l.useResetAuthState)(),{refresh:P}=(0,a.usePageNavigation)(),R=((e={})=>{let r=(0,t.useAtomValue)(C.pageIdAtom),a=(0,t.useAtomValue)(A.pageLocaleAtom),i=(0,t.useAtomValue)(w.deviceClassAtom),n=(0,t.useAtomValue)(y.experimentJoinListAtom),{location:o}=(0,S.useLocation)(),s=(0,E.useIsHightouchReady)(),{url:l,logoutMethod:m}=e;return(0,u.useCallback)(()=>{if(!g.default||!s)return;let e=(0,f.getCICookie)(),t=e?.["TWC-GeoIP-Country"]??(0,d.getCookie)("twc-location-country"),u=e?.["TWC-GeoIP-Region"]??(0,d.getCookie)("twc-location-region"),S=e?.["TWC-Privacy"]??(0,d.getCookie)("twc-privacy"),A=window.DprSdk?.getGdprConsentOptInsString()??"",C=window.DprSdk?.getCcpaSaleOptInString()??"",w=window.navigator?.globalPrivacyControl??!1,y=A?.includes("functional-technology")??!1,E=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,_=navigator?.cookieEnabled??!1,P=(0,d.getCookie)("partner")||"",R=(0,p.getPartnerByPattern)(P)??P,T=(0,c.getMetricsSession)(),O=T?.sessionId||"",k=T?.sessionStartTime||0,L=new Date,N=L.getHours(),U=h.WEEK_DAYS[L.getDay()]??"",D=-L.getTimezoneOffset()/60,x=document.referrer,j={url:l??window.location.pathname,logoutMethod:m??"manual",referrer:x,privProducts:C,deviceTimeZone:D,pageId:r??"",locale:a,deviceClass:i,sessionId:O,sessionStartTime:k,partner:R,wlocCity:o?.city??null,wlocCountry:o?.countryCode??null,wlocState:o?.adminDistrictCode??null,wlocDMA:o?.dmaCd??null,dayOfWeek:U,regime:S??"",cookiesEnabled:_,gpcSignalOptOut:w,functionalTechnologies:y,geographicallyRelevantAds:E,priv:A,hourOfDay:N,physicalCountry:t??"",physicalState:u??"",campaign:(0,v.getCampaign)()??void 0,tpcc:(0,v.getTpcc)(),linkReferral:(0,v.getLinkReferral)(),experimentJoinList:n,weatherMode:"normal",samsungVersion:(0,v.getSamsungVersion)(),appVersion:"389773fb268e11f29ae005c6d1e2df0edccc3d48".slice(0,10)};try{(0,I.trackUserLoggedout)(j),b.info('Hightouch: Event "user-loggedout" tracked')}catch(e){b.error('Hightouch: Event "user-loggedout" failed',{error:e})}},[l,m,r,a,i,n,o,s])})();return async()=>{try{return(0,c.regenerateMetricsSession)(),await o.upsxClient.auth.logout(),R(),_(),m(s.RESET),(0,r.deleteCookie)("twc-user",{domain:(0,n.upsxCookieDomain)(window.location.hostname)}),e&&P({mpa:!0}),!0}catch(e){return console.error("Failed to log out:",e),!1}}}],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",a="wxu-rendered-tier";function i(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:a}){return null!==t&&t!==e||void 0!==r&&r!==a},"readAuthEpoch",0,function(){return i(r)},"readRecordedTier",0,function(){return i(a)},"recordTier",0,function(e){n(a,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 a=new t.UPSXClient({baseUrl:(0,r.upsxApiUrl)("https://upsx.weather.com")});e.s(["upsxClient",0,a])},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])},382602,e=>{"use strict";var t=e.i(981030),r=e.i(889753);let a=(0,t.atom)(e=>e(r.userProfileAtom)?.email),i=(0,t.atom)(e=>e(r.userProfileAtom)?.firstName),n=(0,t.atom)(e=>e(r.userProfileAtom)?.gender);(0,t.atom)(e=>e(r.userProfileAtom)?.emailVerified),e.s(["userEmailAtom",0,a,"userFirstNameAtom",0,i,"userGenderAtom",0,n])},249725,e=>{"use strict";var t=e.i(546446),r=e.i(247865),a=e.i(726249),i=e.i(310847);let n=Object.freeze({});function o(){let e=(0,t.useSetAtom)(i.wxuUserLocationFeatureIdsAtom);return(0,r.useCallback)((t,r)=>{let i=[];t.placeId&&i.push(t.placeId),t.geocode&&!r?.startsWith("address.")&&i.push((0,a.formatGeocode)(t.geocode)),0!==i.length&&e(e=>{let t=e??{};if(!i.some(e=>!(e in t)||t[e]!==r))return t;let a={...t};for(let e of i)a[e]=r;return a})},[e])}e.s(["useLocationFeatureIds",0,function(){let e=(0,t.useAtomValue)(i.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,a.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:o()}},"useRecordFeatureId",0,o])},776169,809991,e=>{"use strict";var t=e.i(546446),r=e.i(889753),a=e.i(301904),i=e.i(905059),n=e.i(901351),o=e.i(310847),s=e.i(528600),l=e.i(617874),c=e.i(540768),u=e.i(553329),d=e.i(247865),f=e.i(245943);let p=(0,e.i(695881).createLogger)("useMapSettings");e.s(["WEB_MAP_SETTINGS_PLATFORM",0,"twc","useMapSettings",0,function(e="twc"){let{user:{isUserLoggedIn:r}}=(0,s.useUser)(),a=(0,t.useSetAtom)(i.mapLayerOrderAtom),o=(0,d.useCallback)(async t=>{if(!r)return!1;let{error:a}=await (0,u.tryCatch)(n.upsxClient.preference.updateMapSettings(e,t));if(!a)return!0;if(a instanceof f.APIError&&404===a.code){let{error:r}=await (0,u.tryCatch)(n.upsxClient.preference.createMapSettings(e,t));return!r||(p.warn("Failed to create map settings",r),!1)}return p.warn("Failed to update map settings",a),!1},[r,e]),l=(0,d.useCallback)((e,t)=>{a(e?.layerOrder??t)},[a]),c=(0,d.useCallback)(async t=>{if(!r||0===t.length)return!1;a(t);let{data:i,error:o}=await (0,u.tryCatch)(n.upsxClient.preference.reorderMapSettingsLayers(e,{order:t}));if(!o)return l(i,t),!0;if(o instanceof f.APIError&&404===o.code){let{data:r,error:a}=await (0,u.tryCatch)(n.upsxClient.preference.createMapSettings(e,{layerOrder:t}));if(!a)return l(r,t),!0;if(a instanceof f.APIError&&409===a.code){let{data:r,error:a}=await (0,u.tryCatch)(n.upsxClient.preference.reorderMapSettingsLayers(e,{order:t}));return a?(p.warn("Failed to reorder map layers after create",a),!1):(l(r,t),!0)}return p.warn("Failed to create map settings layer order",a),!1}return p.warn("Failed to reorder map layers",o),!1},[r,e,l,a]),m=(0,d.useCallback)(async(t,i,o)=>{if(!r)return!1;a(o);let{data:s,error:d}=await (0,u.tryCatch)(n.upsxClient.preference.moveMapSettingsLayer(e,t,{placement:i}));return d?d instanceof f.APIError&&(404===d.code||400===d.code)?c(o):(p.warn("Failed to move map layer",d),!1):(l(s,o),!0)},[r,e,l,c,a]);return{saveMapSettings:o,saveLayerOrder:c,moveLayer:m}}],809991),e.s(["usePreferences",0,function(){let{user:{isUserLoggedIn:e}}=(0,s.useUser)(),[d,f]=(0,t.useAtom)(r.userPreferencesAtom),[p,m]=(0,t.useAtom)(o.wxuUserPreferenceAtom),g=(0,t.useSetAtom)(i.mapLayerOrderAtom),S=async()=>{let{data:e,error:t}=await (0,u.tryCatch)(n.upsxClient.preference.getMapSettings("twc"));if(t)return{ok:!1,mapSettings:null,layerOrder:null};if(!e)return{ok:!0,mapSettings:null,layerOrder:null};let{animationSpeed:r,autoplay:a,opacity:i,roadOverlay:o,style:s}=e,l={...void 0!==r&&{animationSpeed:r},...void 0!==a&&{autoplay:a},...void 0!==i&&{opacity:i},...void 0!==o&&{roadOverlay:o},...void 0!==s&&{style:s}};return{ok:!0,mapSettings:Object.keys(l).length>0?l:null,layerOrder:e.layerOrder?.length?e.layerOrder:null}},A=async e=>{try{await n.upsxClient.preference.updatePreference(e)}catch(e){return console.error("Failed to sync preferences with server:",e),null}},C=async(t,r=!0)=>{try{let a,i=(a={...d,...t},f(a),m({...p,...t,locations:a.locations}),a);if(t?.unit){let e=(0,l.unitsSystemByName)(t.unit),r=e?.code||"e";(0,c.setCookie)(l.UNITS_COOKIE_KEY,r,{domain:"weather.com"})}return r&&e&&await A(i),{success:!0}}catch(e){return console.error("Failed to update preferences:",e),{success:!1,error:e instanceof Error?e.message:"Failed to update preferences"}}};return{syncPreferencesFromUpsx:async()=>{try{let[e,t]=await Promise.all([n.upsxClient.preference.getPreference(),S()]);if(!e?.userID)return null;let{mapSettings:r,layerOrder:i,ok:o}=t;o&&g(i);let{mapSettings:s,...l}=e,c={...l,mapSettings:{...a.DEFAULT_MAP_SETTINGS,...r}};return C(c,!1),c}catch{return null}},updatePreferences:C}}],776169)},145651,e=>{"use strict";var t=e.i(546446),r=e.i(776169),a=e.i(579310),i=e.i(310847),n=e.i(247865);let o=Object.freeze([]),s=Object.freeze([]);e.s(["default",0,()=>{let{updatePreferences:e}=(0,r.usePreferences)(),l=(0,t.useAtomValue)(a.userLocationsAtom),c=(0,n.useMemo)(()=>l?[...l].sort((e,t)=>e.position-t.position):o,[l]),[u,d]=(0,t.useAtom)(i.wxuUserRecentLocationsAtom),[,f]=(0,t.useAtom)(i.wxuUserRecentAddressesAtom),p=(0,n.useCallback)(t=>{let r={...t,position:Math.max(...c.map(e=>e.position),0)+1};e({locations:[...c,r]})},[c,e]),m=(0,n.useCallback)(t=>{e({locations:c.filter(e=>e.placeID!==t)})},[c,e]),g=(0,n.useCallback)(e=>{d(t=>[e,...(t||[]).filter(t=>t!==e)].slice(0,5))},[d]),S=(0,n.useCallback)(e=>{d(t=>(t||[]).filter(t=>t!==e))},[d]),A=(0,n.useCallback)(()=>{d([])},[d]),C=(0,n.useCallback)(e=>{f(t=>(t||[]).filter(t=>t.placeId!==e))},[f]),w=(0,n.useCallback)(e=>{m(e),S(e),C(e)},[m,S,C]);return{addFavoriteLocation:p,removeFavoriteLocation:m,addRecentLocation:g,removeRecentLocation:S,removeRecentAddress:C,clearRecentLocations:A,deleteLocation:w,recentLocations:u||s,favoriteLocations:c}}])},160317,e=>{"use strict";var t=e.i(543512);e.s(["getSubscriptionTierKey",0,function(e){return t.UserSubscriptionTierKeysMap[e]??t.UserSubscriptionTierKeysMap[t.UserSubscriptionTiers.none]}])},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{}}])},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 a=new URL(e);return t&&a.searchParams.set("af_adset",t.replace(/ /g,"_")),r&&a.searchParams.set("deep_link_value",r),a.toString()}])},216809,e=>{"use strict";var t=e.i(247865),r=e.i(553329);e.s(["useAppsFlyerConsent",0,function(){let[e,a]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let e=!1;return(async()=>{let t=window.DprSdk?.isInitialized;if(!t)return;let{error:i}=await (0,r.tryCatch)(t);i||e||a(!!window.DprSdk?.getFeatureFlags()?.appsFlyer)})(),()=>{e=!0}},[]),e}])},991511,e=>{"use strict";var t=e.i(247865),r=e.i(806262),a=e.i(546446);e.s(["useRehydrateAtoms",0,e=>{(0,r.useHydrateAtoms)(e);let i=(0,a.useStore)(),n=(0,t.useRef)(e);n.current=e,(0,t.useEffect)(()=>{for(let[e,t]of n.current)i.get(e)!==t&&i.set(e,t)})}])},553329,e=>{"use strict";async function t(e){try{return{data:await e,error:null}}catch(e){return{data:null,error:e}}}e.s(["tryCatch",0,t])}]);