(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),s=e.i(405341),o=e.i(829065);e.s(["CJUniversalTagScript",0,()=>{let[e,a]=(0,r.useState)(null);return((0,r.useEffect)(()=>{let e=(0,s.getCjConfig)();e&&(0,o.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),s=e.i(553329),o=e.i(405341),a=e.i(829065);let n=(0,i.createLogger)("CommissionJunction");e.s(["useCjConversionTag",0,({shouldFire:e,orderId:i,amount:c,hasTrial:u})=>{let l=(0,t.useRef)(!1);(0,t.useEffect)(()=>{if(!e||l.current||!i)return;let t=(0,o.getCjConfig)();t&&(0,a.isCjEligible)()&&(l.current=!0,(0,s.tryCatch)((async()=>{var e;let s,a,n;return e={orderId:i,amount:c,actionTrackerId:u?o.CJ_ACTION_ID_TRIAL_SIGNUP:o.CJ_ACTION_ID_DIRECT_PURCHASE,cjEventId:(0,r.getCjEvent)()},(s=window).cj=s.cj||{},s.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,n=document.getElementsByTagName("script")[0],void(n?.parentNode?n.parentNode.insertBefore(a,n):document.body.appendChild(a))})()).then(({error:e})=>{e&&n.error("conversion tag failed",{orderId:i,error:e})}))},[e,i,c,u])}],560542)},248064,e=>{"use strict";var t=e.i(991511),r=e.i(763886),i=e.i(458001),s=e.i(394481),o=e.i(663333),a=e.i(849177),n=e.i(889753),c=e.i(5397),u=e.i(21121),l=e.i(889781);e.i(647872);var d=e.i(494889),m=e.i(928083),p=e.i(624432),g=e.i(739971),f=e.i(688070),A=e.i(647292),S=e.i(247865),C=e.i(459598),w=e.i(90543);let b=!1,h=!1;function v(){h=!0,(0,C.suppressNextPurchaseAbandon)(),(0,C.suppressNextHightouchPurchaseAbandon)(),window.location.reload()}e.s(["FlagsBoundaryClient",0,({params:e})=>{var C;return(0,t.useRehydrateAtoms)([[r.partnerAtom,e.partner],[i.cscCountryCodeAtom,e.cscCountryCode],[s.privacyRegimeAtom,e.privacyRegime],[o.deviceClassAtom,e.deviceClass],[n.userTierAtom,e.userTier],[a.adsDisabledAtom,e.adsDisabled],[c.showAdminHeaderAtom,e.showAdminHeader],[u.showVelvetcakeModuleAtom,e.showVelvetcakeModule],[l.nextgenRadarDriverAtom,e.nextgenRadarDriver],[d.newsHubEnabledAtom,e.newsHubEnabled],[m.activityHubMenuEnabledAtom,e.activityHubMenuEnabled],[p.contentSearchUniversalAtom,e.contentSearchUniversal],[g.subscriptionsEnabledAtom,e.subscriptionsEnabled],[A.webViewPlatformAtom,e.webViewPlatform],[f.isWebViewOnlyAtom,e.isWebViewOnly]]),C=e.userTier,(0,S.useEffect)(()=>{let e=String(C);if(!b&&(b=!0,function(){let[e]=performance.getEntriesByType("navigation");return e?.type==="back_forward"}()&&(0,w.isStaleRestore)({renderedTier:e,recordedTier:(0,w.readRecordedTier)()})))return void v();if(h)return;(0,w.recordTier)(e);let t=(0,w.readAuthEpoch)(),r=r=>{r.persisted&&!h&&(0,w.isStaleRestore)({renderedTier:e,recordedTier:(0,w.readRecordedTier)(),epochAtLoad:t,currentEpoch:(0,w.readAuthEpoch)()})&&v()};return window.addEventListener("pageshow",r),()=>window.removeEventListener("pageshow",r)},[C]),null}],248064)},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 s;let o,a=(0,t.useStore)(i),n=(s=a,(o=r.get(s))||(o=new WeakSet,r.set(s,o)),o);for(let[t,...r]of e)(!n.has(t)||(null==i?void 0:i.dangerouslyForceHydrate))&&(n.add(t),a.set(t,...r))}])},232598,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={callServer:function(){return o.callServer},createServerReference:function(){return n.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}};for(var s in i)Object.defineProperty(r,s,{enumerable:!0,get:i[s]});let o=e.r(276247),a=e.r(788443),n=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])},947118,221085,e=>{"use strict";let t;var r=e.i(247865);let i=new Set,s=0,o=()=>"function"==typeof window.mParticle?.init,a=()=>{void 0!==t&&(clearInterval(t),t=void 0)},n=()=>{if(!o()||(a(),0===i.size))return;let e=[...i];for(let t of(i.clear(),e))t()},c=()=>{void 0===t&&(s=0,t=setInterval(()=>{s+=100,n(),s>=3e4&&a()},100))},u=e=>(i.add(e),c(),()=>{i.delete(e)}),l=e=>o()?(e(),()=>{}):u(e),d=e=>o()?()=>{}:u(e),m=()=>!1;e.s(["subscribeSdkLoaded",0,l,"useIsSdkLoaded",0,()=>(0,r.useSyncExternalStore)(d,o,m),"watchForSdkLoad",0,e=>{if("u"{};if(o())return n(),()=>{};c();let t=Array.from(document.scripts).find(t=>t.getAttribute("src")===e);if(!t)return()=>{};let r=()=>n();return t.addEventListener("load",r),()=>{t.removeEventListener("load",r)}}],221085);let p=e=>"function"==typeof window.mParticle?.ready?(window.mParticle?.ready?.(e),()=>{}):l(()=>{window.mParticle?.ready?.(e),e()}),g=()=>!!window.mParticle?.isInitialized?.(),f=()=>!1;e.s(["useIsInitialized",0,()=>(0,r.useSyncExternalStore)(p,g,f)],947118)},915044,e=>{"use strict";e.i(288906);var t=e.i(247865),r=e.i(947118),i=e.i(546446),s=e.i(293163),o=e.i(160317),a=e.i(382602),n=e.i(540768),c=e.i(310847),u=e.i(333350),l=e.i(528600);e.s(["useUserAttributes",0,()=>{let e=(0,r.useIsInitialized)(),{user:{isUserLoggedIn:d,isUserPremium:m,subscriptionTier:p}}=(0,l.useUser)(),[g,f]=(0,t.useState)(!1),[A,S]=(0,t.useState)(!1),C=m??!1,w=(0,o.getSubscriptionTierKey)(p),b=(0,i.useAtomValue)(a.userFirstNameAtom),h=(0,i.useAtomValue)(a.userGenderAtom),v=(0,i.useAtomValue)(c.wxuUserAnonymousIdAtom),E=(0,i.useAtomValue)(c.userHasLoggedInBeforeAtom),y=u.default?window?.DprSdk?.getUserConsent("sale-of-data")!==!1:void 0,I=u.default?window?.DprSdk?.getUserConsent("sensitive-data")!==!1:void 0,R=(0,n.getCookie)("subscription")??"",{productID:T=null,expirationDateTime:_=null,transactionDateTime:N=null,firstTransactionDateTime:P=null,autoRenew:k=null,price:D=null,productName:O=null}=(0,s.jwtDecoder)(R)||{},U=(0,t.useMemo)(()=>({premium:C,premiumProductTier:w,premiumExpiration:_,premiumStart:N,premiumFirstTransactionDate:P,premiumProductId:T,premiumProductAutoRenew:k,premiumPrice:D,premiumProductName:O,isRegisteredUser:d||E||!1,isLoggedIn:d,"Amplitude.device_id":v,$Gender:h,$FirstName:b,saleOfDataAuthorization:y,sensitiveDataAuthorization:I,devUser:!1}),[C,w,_,N,P,T,k,D,O,v,d,E,b,h,y,I]);(0,t.useEffect)(()=>{let{$FirstName:e,$Gender:t,...r}=U;(0,s.areObjectValuesDefined)(r)&&!g&&f(!0)},[U,g]);let L=(0,t.useCallback)(()=>{for(let e in U)void 0===U[e]&&delete U[e];if(e&&g&&!A){let e=window.mParticle?.Identity?.getCurrentUser?.();if(!e)return void console.warn("MParticle: No current user");e.setUserAttributes(U),S(!0),console.debug("MParticle: User attributes set - ",U)}},[e,U,g,A]);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:L,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])},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(),s=r.suppressNext,o=r.consume,a=i.suppressNext,n=i.consume;e.s(["consumeHightouchPurchaseAbandonSuppression",0,n,"consumePurchaseAbandonSuppression",0,o,"suppressNextHightouchPurchaseAbandon",0,a,"suppressNextPurchaseAbandon",0,s])},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 s=(0,t.atom)(!1);e.s(["contentSearchUniversalAtom",0,s],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:s,page:o,onUpdateData:a,onSetPageData:n}){let{updateComponentData:c,setPageData:u}=(0,r.useDebugSystem)(),l=(0,t.useRef)(!1),d=a||c,m=n||u;return(0,t.useEffect)(()=>{if(s)return i.lifecycle(`Collecting component data for ${e}`,{dataKeys:Object.keys(s),hasPerformance:!!s.performance,hasContext:!!s.context}),d(e,{...s,_collectedAt:new Date().toISOString()}),()=>{i.lifecycle(`Cleaning up data for ${e}`),d(e,null)}},[e,s,d]),(0,t.useEffect)(()=>{o&&!l.current&&(i.lifecycle("Setting page metadata",{title:o.title,assetName:o.assetName,collection:o.collection}),m({...o,_updatedAt:new Date().toISOString()}),l.current=!0)},[o,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,s]=(0,t.useAtom)(i),o=(0,r.useCallback)((e,t)=>{s(r=>{let i=r?.[e]||{},s="object"==typeof t&&null!==t&&"object"==typeof i?{...i,...t}:t;return{...r,[e]:s}})},[s]),a=(0,r.useCallback)((e,t)=>{s(r=>{let i=r||{timestamp:new Date().toISOString()},s=i.components||{};if(null===t){let t={...s};return delete t[e],{...i,components:t}}return{...i,components:{...s,[e]:t}}})},[s]),n=(0,r.useCallback)(e=>{o("page",e)},[o]),c=(0,r.useCallback)(e=>{o("route",e)},[o]),u=(0,r.useCallback)(e=>{Object.entries(e).forEach(([e,t])=>{t&&o(e,t)})},[o]);return{debugData:e,updateSection:o,updateComponentData:a,setPageData:n,clearAllDebugData:(0,r.useCallback)(()=>{s({timestamp:new Date().toISOString()})},[s]),updateRouteInfo:c,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),s=e.i(905059),o=e.i(310847),a=e.i(960576),n=e.i(317298),c=e.i(391174),u=e.i(735526),l=e.i(90543);e.s(["useResetAuthState",0,function(){let e=(0,t.useSetAtom)(i.userProfileAtom),d=(0,t.useSetAtom)(o.wxuUserAccountUserAccountResponseAtom),m=(0,t.useSetAtom)(s.mapLayerOrderAtom);return()=>{(0,c.invalidateUpsxCache)(),(0,n.clearNextSessionIntent)(),e(r.RESET),d(null),m(r.RESET),(0,a.clearEarlyAnonId)(),(0,u.clearAccountCreated)(),(0,l.bumpAuthEpoch)()}}])},731672,e=>{"use strict";var t=e.i(546446),r=e.i(965586),i=e.i(671525),s=e.i(889753),o=e.i(810564),a=e.i(45846),n=e.i(284007),c=e.i(756227),u=e.i(358273),l=e.i(247865),d=e.i(540768),m=e.i(682142),p=e.i(782937),g=e.i(695881),f=e.i(333350),A=e.i(64412),S=e.i(950771),C=e.i(537989),w=e.i(695203),b=e.i(158662),h=e.i(777638),v=e.i(924776),E=e.i(409628),y=e.i(605781);let I=(0,g.createLogger)("useUserLoggedOut");e.s(["useUserLogout",0,function({reload:e=!0}={}){let g=(0,t.useSetAtom)(s.userPreferencesAtom),R=(0,c.useResetAuthState)(),{refresh:T}=(0,i.usePageNavigation)(),_=((e={})=>{let r=(0,t.useAtomValue)(C.pageIdAtom),i=(0,t.useAtomValue)(S.pageLocaleAtom),s=(0,t.useAtomValue)(w.deviceClassAtom),o=(0,t.useAtomValue)(b.experimentJoinListAtom),{location:a}=(0,A.useLocation)(),n=(0,v.useIsHightouchReady)(),{url:c,logoutMethod:g}=e;return(0,l.useCallback)(()=>{if(!f.default||!n)return;let e=(0,m.getCICookie)(),t=e?.["TWC-GeoIP-Country"]??(0,d.getCookie)("twc-location-country"),l=e?.["TWC-GeoIP-Region"]??(0,d.getCookie)("twc-location-region"),A=e?.["TWC-Privacy"]??(0,d.getCookie)("twc-privacy"),S=window.DprSdk?.getGdprConsentOptInsString()??"",C=window.DprSdk?.getCcpaSaleOptInString()??"",w=window.navigator?.globalPrivacyControl??!1,b=S?.includes("functional-technology")??!1,v=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,R=navigator?.cookieEnabled??!1,T=(0,d.getCookie)("partner")||"",_=(0,p.getPartnerByPattern)(T)??T,N=(0,u.getMetricsSession)(),P=N?.sessionId||"",k=N?.sessionStartTime||0,D=new Date,O=D.getHours(),U=E.WEEK_DAYS[D.getDay()]??"",L=-D.getTimezoneOffset()/60,x=document.referrer,j={url:c??window.location.pathname,logoutMethod:g??"manual",referrer:x,privProducts:C,deviceTimeZone:L,pageId:r??"",locale:i,deviceClass:s,sessionId:P,sessionStartTime:k,partner:_,wlocCity:a?.city??null,wlocCountry:a?.countryCode??null,wlocState:a?.adminDistrictCode??null,wlocDMA:a?.dmaCd??null,dayOfWeek:U,regime:A??"",cookiesEnabled:R,gpcSignalOptOut:w,functionalTechnologies:b,geographicallyRelevantAds:v,priv:S,hourOfDay:O,physicalCountry:t??"",physicalState:l??"",campaign:(0,h.getCampaign)()??void 0,tpcc:(0,h.getTpcc)(),linkReferral:(0,h.getLinkReferral)(),experimentJoinList:o,weatherMode:"normal",samsungVersion:(0,h.getSamsungVersion)(),appVersion:"0404f88080af60073c643d025e42bd9b3fcc20b4".slice(0,10)};try{(0,y.trackUserLoggedout)(j),I.info('Hightouch: Event "user-loggedout" tracked')}catch(e){I.error('Hightouch: Event "user-loggedout" failed',{error:e})}},[c,g,r,i,s,o,a,n])})();return async()=>{try{return(0,u.regenerateMetricsSession)(),await a.upsxClient.auth.logout(),_(),R(),g(n.RESET),(0,r.deleteCookie)("twc-user",{domain:(0,o.upsxCookieDomain)(window.location.hostname)}),e&&T({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",i="wxu-rendered-tier";function s(e){return(0,t.isLocalStorageAvailable)()?localStorage.getItem(e):null}function o(e,r){(0,t.isLocalStorageAvailable)()&&localStorage.setItem(e,r)}e.s(["bumpAuthEpoch",0,function(){o(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 s(r)},"readRecordedTier",0,function(){return s(i)},"recordTier",0,function(e){o(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])},382602,e=>{"use strict";var t=e.i(981030),r=e.i(889753);let i=(0,t.atom)(e=>e(r.userProfileAtom)?.email),s=(0,t.atom)(e=>e(r.userProfileAtom)?.firstName),o=(0,t.atom)(e=>e(r.userProfileAtom)?.gender);(0,t.atom)(e=>e(r.userProfileAtom)?.emailVerified),e.s(["userEmailAtom",0,i,"userFirstNameAtom",0,s,"userGenderAtom",0,o])},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),s=e.i(310847);let o=Object.freeze({});function a(){let e=(0,t.useSetAtom)(s.wxuUserLocationFeatureIdsAtom);return(0,r.useCallback)((t,r)=>{let s=[];t.placeId&&s.push(t.placeId),t.geocode&&!r?.startsWith("address.")&&s.push((0,i.formatGeocode)(t.geocode)),0!==s.length&&e(e=>{let t=e??{};if(!s.some(e=>!(e in t)||t[e]!==r))return t;let i={...t};for(let e of s)i[e]=r;return i})},[e])}e.s(["useLocationFeatureIds",0,function(){let e=(0,t.useAtomValue)(s.wxuUserLocationFeatureIdsAtom)??o,n=(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]),c=(0,r.useCallback)(t=>t in e,[e]);return{featureIds:e,resolveFeatureId:n,hasResolvedPlaceId:c,recordFeatureId:a()}},"useRecordFeatureId",0,a])},145651,e=>{"use strict";var t=e.i(546446),r=e.i(776169),i=e.i(579310),s=e.i(310847),o=e.i(247865);let a=Object.freeze([]),n=Object.freeze([]);e.s(["default",0,()=>{let{updatePreferences:e}=(0,r.usePreferences)(),c=(0,t.useAtomValue)(i.userLocationsAtom),u=(0,o.useMemo)(()=>c?[...c].sort((e,t)=>e.position-t.position):a,[c]),[l,d]=(0,t.useAtom)(s.wxuUserRecentLocationsAtom),[,m]=(0,t.useAtom)(s.wxuUserRecentAddressesAtom),p=(0,o.useCallback)(t=>{let r={...t,position:Math.max(...u.map(e=>e.position),0)+1};e({locations:[...u,r]})},[u,e]),g=(0,o.useCallback)(t=>{e({locations:u.filter(e=>e.placeID!==t)})},[u,e]),f=(0,o.useCallback)(e=>{d(t=>[e,...(t||[]).filter(t=>t!==e)].slice(0,5))},[d]),A=(0,o.useCallback)(e=>{d(t=>(t||[]).filter(t=>t!==e))},[d]),S=(0,o.useCallback)(()=>{d([])},[d]),C=(0,o.useCallback)(e=>{m(t=>(t||[]).filter(t=>t.placeId!==e))},[m]),w=(0,o.useCallback)(e=>{g(e),A(e),C(e)},[g,A,C]);return{addFavoriteLocation:p,removeFavoriteLocation:g,addRecentLocation:f,removeRecentLocation:A,removeRecentAddress:C,clearRecentLocations:S,deleteLocation:w,recentLocations:l||n,favoriteLocations:u}}])},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 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:s}=await (0,r.tryCatch)(t);s||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 s=(0,i.useStore)(),o=(0,t.useRef)(e);o.current=e,(0,t.useEffect)(()=>{for(let[e,t]of o.current)s.get(e)!==t&&s.set(e,t)})}])}]);