(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,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,n){var a;let s,i=(0,t.useStore)(n),o=(a=i,(s=r.get(a))||(s=new WeakSet,r.set(a,s)),s);for(let[t,...r]of e)(!o.has(t)||(null==n?void 0:n.dangerouslyForceHydrate))&&(o.add(t),i.set(t,...r))}])},284007,e=>{"use strict";var t=e.i(981030);let r=Symbol(""),n=e=>"function"==typeof(null==e?void 0:e.then);function a(e=()=>{try{return window.localStorage}catch(e){return}},t){var r;let s,i,o,u,c={getItem:(r,a)=>{var o,u;let c=e=>{if(s!==(e=e||"")){try{i=JSON.parse(e,null==t?void 0:t.reviver)}catch(e){return a}s=e}return i},l=null!=(u=null==(o=e())?void 0:o.getItem(r))?u:null;return n(l)?l.then(c):c(l)},setItem:(r,n)=>{var a;return null==(a=e())?void 0:a.setItem(r,JSON.stringify(n,null==t?void 0:t.replacer))},removeItem:t=>{var r;return null==(r=e())?void 0:r.removeItem(t)}};try{o=null==(r=e())?void 0:r.subscribe}catch(e){}return!o&&"u">typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(o=(t,r)=>{if(!(e()instanceof window.Storage))return()=>{};let n=n=>{n.storageArea===e()&&n.key===t&&r(n.newValue)};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}}),o&&(u=o,c.subscribe=(e,t,r)=>u(e,e=>{let n;try{n=JSON.parse(e||"")}catch(e){n=r}t(n)})),c}let s=a(),i=new WeakMap,o={state:"loading"};e.s(["RESET",0,r,"atomWithStorage",0,function(e,a,i=s,o){let u=null==o?void 0:o.getOnInit,c=(0,t.atom)(u?i.getItem(e,a):a);return c.onMount=t=>{let r;return t(i.getItem(e,a)),i.subscribe&&(r=i.subscribe(e,t,a)),r},(0,t.atom)(e=>e(c),(t,s,o)=>{let u="function"==typeof o?o(t(c)):o;return u===r?(s(c,a),i.removeItem(e)):n(u)?u.then(t=>(s(c,t),i.setItem(e,t))):(s(c,u),i.setItem(e,u))})},"createJSONStorage",0,a,"loadable",0,function(e){let r;return r=()=>{let r=new WeakMap,n=(0,t.atom)([()=>{},0]);n.unstable_onInit=e=>{e.set(n,([,t])=>[()=>e.set(n,([e,t])=>[e,t+1]),t])};let a=(0,t.atom)(t=>{let a,s,[i]=t(n);try{a=t(e)}catch(e){return{state:"hasError",error:e}}if("function"!=typeof(null==(s=a)?void 0:s.then))return{state:"hasData",data:a};let u=a,c=r.get(u);return c?c:(u.then(e=>{r.set(u,{state:"hasData",data:e}),i()},e=>{r.set(u,{state:"hasError",error:e}),i()}),r.get(u)||(r.set(u,o),o))});return(0,t.atom)(e=>e(a))},(i.has(e)?i:i.set(e,r())).get(e)}])},990033,e=>{"use strict";let t,r="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),n=new Uint8Array(16),a=[];for(let e=0;e= 16");if(c[6]=15&c[6]|64,c[8]=63&c[8]|128,s){if((u=u||0)s.length)throw RangeError(`UUID byte range ${u}:${u+15} is out of buffer bounds`);for(let e=0;e{"use strict";let t=(0,e.i(981030).atom)("");e.s(["adsMetricsUnitAndZoneAtom",0,t])},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),n=(0,t.atom)(null);e.s(["activeEventAtom",0,n,"layoutStateAtom",0,r])},236433,e=>{"use strict";let t=(0,e.i(981030).atom)(null);e.s(["pageAtomsPathnameAtom",0,t])},537989,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["pageIdAtom",0,t])},608201,236593,e=>{"use strict";var t=e.i(284007);let r={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function n(){try{return window.sessionStorage}catch{return r}}let a=(0,t.createJSONStorage)(n),s=(0,t.atomWithStorage)("wx-source-page",null,a,{getOnInit:!0});e.s(["sourcePageAtom",0,s],608201);let i=(0,t.createJSONStorage)(n),o=(0,t.atomWithStorage)("wx-source-module",null,i,{getOnInit:!0});e.s(["sourceModuleAtom",0,o],236593)},736677,220126,e=>{"use strict";var t=e.i(284007);let r=(0,t.createJSONStorage)(()=>sessionStorage),n=(0,t.atomWithStorage)("wx-ht-source-page",null,r);e.s(["sourcePageAtom",0,n],736677);let a=(0,t.createJSONStorage)(()=>sessionStorage),s=(0,t.atomWithStorage)("wx-ht-source-module",null,a);e.s(["sourceModuleAtom",0,s],220126)},122124,e=>{"use strict";var t=e.i(388706);let r=Object.fromEntries(t.PAGE_TYPE_CONFIG.map(e=>[e.suffix,e.urlType])),n=RegExp(`^(?/[a-z]{2}-[A-Z]{2})?/.+/(?:city|locality|neighborhood|postcode|poi|ski|airport)/[^/]+/(?${t.SUFFIX_ALTERNATION})(?:/day-[1-9][0-9]*)?$`);e.s(["getAnonymizedPath",0,function(e){var t,a;let s,i,o,u,c,l=(s=e,i=e?.indexOf?.("?"),o=e?.indexOf?.("#"),i>-1?s=s.substring(0,i):o>-1&&(s=s.substring(0,o)),s);if(t=l,u=n.exec(t)?.groups,a=l=(c=u?.suffix?r[u.suffix]:void 0)?`${u?.locale??""}/${c}/l`:t,"/index.html"===(l=a?.replace?.(/\/l\/[^/]+/gi,"/l"))||"/"===l||""===l)l="/";else{let e=l?.split("/")||[],t=e.length-1,r=e[t]??"";"news"!==(t>0?e[t-1]:"")&&(r.match(/[A-Z]/)||r.match(/[0-9]/)||r.match(/[@#$%&!*:]/)||""===r)&&e.pop(),l=e.join("/")}return l},"stripLastPartOfSlug",0,(e="")=>{let t=e.split("/");return t?.[t.length-1]===""&&t.pop(),t.slice(0,t.length-1).join("/")}])},630986,e=>{"use strict";var t=e.i(546446),r=e.i(604323);e.s(["useCMSAttributes",0,()=>(0,t.useAtomValue)(r.metricsArticleDataAtom)])},947118,221085,e=>{"use strict";let t;var r=e.i(247865);let n=new Set,a=0,s=()=>"function"==typeof window.mParticle?.init,i=()=>{void 0!==t&&(clearInterval(t),t=void 0)},o=()=>{if(!s()||(i(),0===n.size))return;let e=[...n];for(let t of(n.clear(),e))t()},u=()=>{void 0===t&&(a=0,t=setInterval(()=>{a+=100,o(),a>=3e4&&i()},100))},c=e=>(n.add(e),u(),()=>{n.delete(e)}),l=e=>s()?(e(),()=>{}):c(e),d=e=>s()?()=>{}:c(e),m=()=>!1;e.s(["subscribeSdkLoaded",0,l,"useIsSdkLoaded",0,()=>(0,r.useSyncExternalStore)(d,s,m),"watchForSdkLoad",0,e=>{if("u"{};if(s())return o(),()=>{};u();let t=Array.from(document.scripts).find(t=>t.getAttribute("src")===e);if(!t)return()=>{};let r=()=>o();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()}),f=()=>!!window.mParticle?.isInitialized?.(),g=()=>!1;e.s(["useIsInitialized",0,()=>(0,r.useSyncExternalStore)(p,f,g)],947118)},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(),n=t(),a=r.suppressNext,s=r.consume,i=n.suppressNext,o=n.consume;e.s(["consumeHightouchPurchaseAbandonSuppression",0,o,"consumePurchaseAbandonSuppression",0,s,"suppressNextHightouchPurchaseAbandon",0,i,"suppressNextPurchaseAbandon",0,a])},678651,(e,t,r)=>{"use strict";function n(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))void 0!==n&&t.append(r,n);return t}Object.defineProperty(r,"__esModule",{value:!0}),r.queryStringToSearchParams=n,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=n(t.query).toString()),r}},37423,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["dprSdkIsInitializedAtom",0,t])},671525,e=>{"use strict";var t=e.i(725287);let r=()=>{let e=(0,t.useRouter)();return{navigate:(t,r={})=>{let{mpa:n=!0,replace:a=!1}=r;n?a?window.location.replace(t):window.location.href=t:a?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])},763886,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["partnerAtom",0,t])},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 n=(0,e.i(695881).createLogger)("DebugCollector");e.s(["DebugCollectorClient",0,function({componentName:e,data:a,page:s,onUpdateData:i,onSetPageData:o}){let{updateComponentData:u,setPageData:c}=(0,r.useDebugSystem)(),l=(0,t.useRef)(!1),d=i||u,m=o||c;return(0,t.useEffect)(()=>{if(a)return n.lifecycle(`Collecting component data for ${e}`,{dataKeys:Object.keys(a),hasPerformance:!!a.performance,hasContext:!!a.context}),d(e,{...a,_collectedAt:new Date().toISOString()}),()=>{n.lifecycle(`Cleaning up data for ${e}`),d(e,null)}},[e,a,d]),(0,t.useEffect)(()=>{s&&!l.current&&(n.lifecycle("Setting page metadata",{title:s.title,assetName:s.assetName,collection:s.collection}),m({...s,_updatedAt:new Date().toISOString()}),l.current=!0)},[s,m]),null}])},609858,674339,e=>{"use strict";var t=e.i(546446),r=e.i(247865);let n=(0,e.i(981030).atom)({timestamp:new Date().toISOString()});e.s(["debugDataAtom",0,n],674339),e.s(["useDebugSystem",0,function(){let[e,a]=(0,t.useAtom)(n),s=(0,r.useCallback)((e,t)=>{a(r=>{let n=r?.[e]||{},a="object"==typeof t&&null!==t&&"object"==typeof n?{...n,...t}:t;return{...r,[e]:a}})},[a]),i=(0,r.useCallback)((e,t)=>{a(r=>{let n=r||{timestamp:new Date().toISOString()},a=n.components||{};if(null===t){let t={...a};return delete t[e],{...n,components:t}}return{...n,components:{...a,[e]:t}}})},[a]),o=(0,r.useCallback)(e=>{s("page",e)},[s]),u=(0,r.useCallback)(e=>{s("route",e)},[s]),c=(0,r.useCallback)(e=>{Object.entries(e).forEach(([e,t])=>{t&&s(e,t)})},[s]);return{debugData:e,updateSection:s,updateComponentData:i,setPageData:o,clearAllDebugData:(0,r.useCallback)(()=>{a({timestamp:new Date().toISOString()})},[a]),updateRouteInfo:u,updatePageDebug:c}}],609858)},394481,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["privacyRegimeAtom",0,t])},725296,e=>{"use strict";var t,r=e.i(965586),n=((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(n);let a={"usa-ut":"usa"},s=e=>e?a[e]??e:void 0;e.s(["RESTRICTIVE_REGIMES",0,["ca-qc","gdpr","latam-co","latam-do","latam-pe","lgpd","pipl","tr-kvkk"],"Regime",()=>n,"US_REGIMES",0,["usa","usa-ccpa","usa-co","usa-ct","usa-va"],"default",0,n,"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 s(t.slice(e+1))}})()??s((0,r.getCookie)("twc-privacy")?.toString())??"exempt"])},617874,e=>{"use strict";let t="Imperial",r="Metric",n="Hybrid",a={code:"e",name:t,temp:"F",speed:"mph",distance:"mi",accumulation:"in",precip:"in",pressure:"in"},s={code:"m",name:r,temp:"C",speed:"km/h",distance:"km",accumulation:"cm",precip:"mm",pressure:"mb"},i={code:"h",name:n,temp:"C",speed:"mph",distance:"mi",accumulation:"in",precip:"in",pressure:"mb"};e.s(["UNITS_COOKIE_KEY",0,"unitOfMeasurement","UNIT_HYBRID",0,n,"UNIT_IMPERIAL",0,t,"UNIT_METRIC",0,r,"imperial",0,a,"unitsSystemByCode",0,function(e){switch(e?.toLowerCase()){case"e":case"f":return a;case"m":case"c":return s;case"h":return i;default:return null}},"unitsSystemByName",0,function(e=""){switch(e.toLowerCase()){case"imperial":case"Imperial":return a;case"metric":case"Metric":return s;case"hybrid":case"Hybrid":return i;default:return null}}])},756227,e=>{"use strict";var t=e.i(546446),r=e.i(284007),n=e.i(889753),a=e.i(905059),s=e.i(310847),i=e.i(960576),o=e.i(317298),u=e.i(391174),c=e.i(735526),l=e.i(90543);e.s(["useResetAuthState",0,function(){let e=(0,t.useSetAtom)(n.userProfileAtom),d=(0,t.useSetAtom)(s.wxuUserAccountUserAccountResponseAtom),m=(0,t.useSetAtom)(a.mapLayerOrderAtom);return()=>{(0,u.invalidateUpsxCache)(),(0,o.clearNextSessionIntent)(),e(r.RESET),d(null),m(r.RESET),(0,i.clearEarlyAnonId)(),(0,c.clearAccountCreated)(),(0,l.bumpAuthEpoch)()}}])},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",n="wxu-rendered-tier";function a(e){return(0,t.isLocalStorageAvailable)()?localStorage.getItem(e):null}function s(e,r){(0,t.isLocalStorageAvailable)()&&localStorage.setItem(e,r)}e.s(["bumpAuthEpoch",0,function(){s(r,String(Date.now()))},"isStaleRestore",0,function({renderedTier:e,recordedTier:t,epochAtLoad:r,currentEpoch:n}){return null!==t&&t!==e||void 0!==r&&r!==n},"readAuthEpoch",0,function(){return a(r)},"readRecordedTier",0,function(){return a(n)},"recordTier",0,function(e){s(n,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 n=new t.UPSXClient({baseUrl:(0,r.upsxApiUrl)("https://upsx.weather.com")});e.s(["upsxClient",0,n])},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])},889753,301904,e=>{"use strict";var t=e.i(284007),r=e.i(617874),n=e.i(990033),a=e.i(981030),s=e.i(543512);let i={animationSpeed:1,autoplay:!0,opacity:90,roadOverlay:"default",style:"default"};e.s(["DEFAULT_MAP_SETTINGS",0,i],301904);let o=(0,a.atom)(s.UserSubscriptionTiers.none),u=(0,t.atomWithStorage)("userProfile",null,void 0,{getOnInit:!0}),c=(0,t.atomWithStorage)("userPreferences",{userID:(0,n.v4)(),unit:r.UNIT_IMPERIAL,locations:[],locale:"en_US",mapSettings:i,favoriteWeatherComponents:[],favoriteActivityComponents:[],dashboard:[]},void 0,{getOnInit:!0});e.s(["userPreferencesAtom",0,c,"userProfileAtom",0,u,"userTierAtom",0,o],889753)},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])},776169,809991,e=>{"use strict";var t=e.i(546446),r=e.i(889753),n=e.i(301904),a=e.i(905059),s=e.i(901351),i=e.i(310847),o=e.i(528600),u=e.i(617874),c=e.i(540768),l=e.i(553329),d=e.i(247865),m=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,o.useUser)(),n=(0,t.useSetAtom)(a.mapLayerOrderAtom),i=(0,d.useCallback)(async t=>{if(!r)return!1;let{error:n}=await (0,l.tryCatch)(s.upsxClient.preference.updateMapSettings(e,t));if(!n)return!0;if(n instanceof m.APIError&&404===n.code){let{error:r}=await (0,l.tryCatch)(s.upsxClient.preference.createMapSettings(e,t));return!r||(p.warn("Failed to create map settings",r),!1)}return p.warn("Failed to update map settings",n),!1},[r,e]),u=(0,d.useCallback)((e,t)=>{n(e?.layerOrder??t)},[n]),c=(0,d.useCallback)(async t=>{if(!r||0===t.length)return!1;n(t);let{data:a,error:i}=await (0,l.tryCatch)(s.upsxClient.preference.reorderMapSettingsLayers(e,{order:t}));if(!i)return u(a,t),!0;if(i instanceof m.APIError&&404===i.code){let{data:r,error:n}=await (0,l.tryCatch)(s.upsxClient.preference.createMapSettings(e,{layerOrder:t}));if(!n)return u(r,t),!0;if(n instanceof m.APIError&&409===n.code){let{data:r,error:n}=await (0,l.tryCatch)(s.upsxClient.preference.reorderMapSettingsLayers(e,{order:t}));return n?(p.warn("Failed to reorder map layers after create",n),!1):(u(r,t),!0)}return p.warn("Failed to create map settings layer order",n),!1}return p.warn("Failed to reorder map layers",i),!1},[r,e,u,n]),f=(0,d.useCallback)(async(t,a,i)=>{if(!r)return!1;n(i);let{data:o,error:d}=await (0,l.tryCatch)(s.upsxClient.preference.moveMapSettingsLayer(e,t,{placement:a}));return d?d instanceof m.APIError&&(404===d.code||400===d.code)?c(i):(p.warn("Failed to move map layer",d),!1):(u(o,i),!0)},[r,e,u,c,n]);return{saveMapSettings:i,saveLayerOrder:c,moveLayer:f}}],809991),e.s(["usePreferences",0,function(){let{user:{isUserLoggedIn:e}}=(0,o.useUser)(),[d,m]=(0,t.useAtom)(r.userPreferencesAtom),[p,f]=(0,t.useAtom)(i.wxuUserPreferenceAtom),g=(0,t.useSetAtom)(a.mapLayerOrderAtom),S=async()=>{let{data:e,error:t}=await (0,l.tryCatch)(s.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:n,opacity:a,roadOverlay:i,style:o}=e,u={...void 0!==r&&{animationSpeed:r},...void 0!==n&&{autoplay:n},...void 0!==a&&{opacity:a},...void 0!==i&&{roadOverlay:i},...void 0!==o&&{style:o}};return{ok:!0,mapSettings:Object.keys(u).length>0?u:null,layerOrder:e.layerOrder?.length?e.layerOrder:null}},h=async e=>{try{await s.upsxClient.preference.updatePreference(e)}catch(e){return console.error("Failed to sync preferences with server:",e),null}},y=async(t,r=!0)=>{try{let n,a=(n={...d,...t},m(n),f({...p,...t,locations:n.locations}),n);if(t?.unit){let e=(0,u.unitsSystemByName)(t.unit),r=e?.code||"e";(0,c.setCookie)(u.UNITS_COOKIE_KEY,r,{domain:"weather.com"})}return r&&e&&await h(a),{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([s.upsxClient.preference.getPreference(),S()]);if(!e?.userID)return null;let{mapSettings:r,layerOrder:a,ok:i}=t;i&&g(a);let{mapSettings:o,...u}=e,c={...u,mapSettings:{...n.DEFAULT_MAP_SETTINGS,...r}};return y(c,!1),c}catch{return null}},updatePreferences:y}}],776169)},528600,949920,e=>{"use strict";let t;var r=e.i(247865),n=e.i(546446),a=e.i(381477);let s=(0,e.i(66396).withMiddleware)(a.default,e=>(t,r,n)=>(n.revalidateOnFocus=!1,n.revalidateIfStale=!1,n.revalidateOnReconnect=!1,e(t,r,n)));e.s(["default",0,s],949920);var i=e.i(889753),o=e.i(901351),u=e.i(310847),c=e.i(543512),l=e.i(990033),d=e.i(333350),m=e.i(495110),p=e.i(513513),f=e.i(960576);e.s(["useUser",0,function(){let[e,a]=(0,n.useAtom)(i.userProfileAtom),[g,S]=(0,n.useAtom)(u.wxuUserAnonymousIdAtom),[h,y]=(0,n.useAtom)(u.wxuUserAccountUserAccountResponseAtom),[A,w]=(0,r.useState)(!1),v=(0,n.useSetAtom)(u.wxuLoginRedirectPageAtom),I=(0,m.useIsHydratingRender)();d.default&&!A&&(v(window.location.href),w(!0));let b=(0,n.useAtomValue)(i.userTierAtom),C=(0,p.isUserLoggedIn)(b),x=g;!x&&d.default&&(t||(t=(0,f.readEarlyAnonId)()??(0,l.v4)()),x=t),d.default&&!g&&x&&S(x),!e&&h&&a(h);let P=s(C?"upsx/id":null,()=>o.upsxClient.account.getAccountId(),{shouldRetryOnError:e=>"APIError"!==e.name}),{userID:E=""}=P?.data||{},U=s(E&&e?.userID!==E?"upsx/account":null,()=>o.upsxClient.account.getAccount(),{shouldRetryOnError:e=>"APIError"!==e.name,onSuccess:e=>{a(e),y(e)}});return{user:{anonId:x,userID:E,isUserLoggedIn:C,subscriptionTier:b,isUserPremium:(0,p.isUserTierPremium)(b),isUserAdFree:b===c.UserSubscriptionTiers.adFree},userProfile:I?null:e,isUserIdLoading:P.isLoading,profileError:U.error}}],528600)},543512,e=>{"use strict";var t,r=((t={})[t.none=-1]="none",t[t.standard=0]="standard",t[t.premium=1]="premium",t[t.adFree=2]="adFree",t[t.premiumWithAd=3]="premiumWithAd",t);let n=Object.entries(r).reduce((e,[t,r])=>(e[r]=t,e),{});Object.entries(r).reduce((e,[t,r])=>(e[r.toString()]=r,e),{}),e.s(["UserSubscriptionPremiumTiers",0,[1,2,3],"UserSubscriptionTierKeysMap",0,n,"UserSubscriptionTiers",()=>r,"UserSubscriptionTiersMap",0,{standard:0,tier0:1,tier1:1,"ad-free-v2":2,tier3:3}])},960576,e=>{"use strict";let t="wxu-exp-anon-id";e.s(["clearEarlyAnonId",0,function(){try{window.localStorage.removeItem(t)}catch{}},"readEarlyAnonId",0,function(){let e=window.__wxExperimentDeviceId;if("string"==typeof e&&e)return e;try{return window.localStorage.getItem(t)||void 0}catch{return}}])},513513,e=>{"use strict";var t=e.i(543512);t.UserSubscriptionTiers.none,t.UserSubscriptionTiers.standard,t.UserSubscriptionTiers.adFree,t.UserSubscriptionTiers.premium,t.UserSubscriptionTiers.premiumWithAd,e.s(["hasRadarFeature",0,function(e){return void 0!==e&&t.UserSubscriptionPremiumTiers.includes(e)},"isUserLoggedIn",0,function(e){return void 0!==e&&e>t.UserSubscriptionTiers.none},"isUserTierPremium",0,function(e){return t.UserSubscriptionPremiumTiers.includes(e)}],513513)},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";e.i(288906);var t=e.i(245943),r=e.i(810564);let n=new t.UPSXClient({baseUrl:(0,r.upsxApiUrl)("https://upsx.weather.com")});e.s(["upsxClient",0,n])},991511,e=>{"use strict";var t=e.i(247865),r=e.i(806262),n=e.i(546446);e.s(["useRehydrateAtoms",0,e=>{(0,r.useHydrateAtoms)(e);let a=(0,n.useStore)(),s=(0,t.useRef)(e);s.current=e,(0,t.useEffect)(()=>{for(let[e,t]of s.current)a.get(e)!==t&&a.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])}]);