(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,26752,e=>{"use strict";e.i(538167);var t=e.i(282446);e.i(74492),e.i(144683);let r=new WeakMap;e.s(["f",0,function(e,i){var n;let a,o=(0,t.f)(i),s=(n=o,(a=r.get(n))||(a=new WeakSet,r.set(n,a)),a);for(let[t,...r]of e)(!s.has(t)||(null==i?void 0:i.dangerouslyForceHydrate))&&(s.add(t),o.set(t,...r))}])},990033,e=>{"use strict";let t,r="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),i=new Uint8Array(16),n=[];for(let e=0;e= 16");if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,a){if((l=l||0)a.length)throw RangeError(`UUID byte range ${l}:${l+15} is out of buffer bounds`);for(let e=0;e{"use strict";let t=(0,e.i(144683).g)("");e.s(["f",0,t])},604323,e=>{"use strict";let t=(0,e.i(144683).g)();e.s(["f",0,t])},513539,e=>{"use strict";var t=e.i(144683);let r=(0,t.g)(null),i=(0,t.g)(null);e.s(["M",0,i,"D",0,r])},236433,e=>{"use strict";let t=(0,e.i(144683).g)(null);e.s(["f",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(["k",0,e=>{t=e},"E",0,e=>{r=e},"Y",0,{name:"traits-plugin",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:i,page:i}])},658547,e=>{"use strict";var t=e.i(538167),r=e.i(839315),i=e.i(491240);let n=(e,t)=>{let i,n=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 a=setTimeout(i,Math.max(0,n-Date.now()));window.mParticle?.Identity?.[e]?.(t,e=>{clearTimeout(a);let t=e?.getUser?.()?.getMPID?.();t&&(0,r._)(t),i()})}))};e.s(["f",0,()=>{let e=(0,t.useCallback)(e=>n("identify",{userIdentities:{customerid:e.customerid,email:e.email,other:(0,i.f)(e.other)}}),[]);return{identify:e,login:(0,t.useCallback)(e=>n("login",{userIdentities:{customerid:e.customerid,email:e.email,facebook:e.facebook,facebookcustomaudienceid:e.facebookcustomaudienceid,google:e.google,microsoft:e.microsoft,other:(0,i.f)(e.other),other2:(0,i.f)(e.other2),other3:(0,i.f)(e.other3),other4:(0,i.f)(e.other4),twitter:e.twitter,yahoo:e.yahoo}}),[]),logout:(0,t.useCallback)(()=>n("logout",{userIdentities:{}}),[])}}])},491240,e=>{"use strict";let t=(0,e.i(695881).createLogger)("MParticleIdentity");e.s(["f",0,e=>"string"==typeof e&&e.length>256?(t.warn(`identity value exceeded 256 chars (${e.length}); truncating`),e.slice(0,256)):e])},671525,e=>{"use strict";var t=e.i(935251),r=e.i(652517);let i=()=>{let e=(0,t.useRouter)();return{navigate:(t,r={})=>{let{mpa:i=!0,replace:n=!1}=r;i?n?window.location.replace(t):window.location.href=t:n?e.replace(t):e.push(t)},refresh:(t={})=>{let{mpa:i=!0}=t;i?(0,r.Q)():e.refresh()},router:e}};e.s(["U",0,i,"Z",0,i])},652517,e=>{"use strict";let t=null;e.s(["Q",0,function(e=()=>window.location.reload()){t?t(e):e()},"x",0,function(e){return t=e,()=>{t===e&&(t=null)}}])},725296,e=>{"use strict";var t,r=e.i(584169),i=((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(i);let n={"usa-ut":"usa"},a=e=>e?n[e]??e:void 0;e.s(["E",0,["ca-qc","gdpr","latam-co","latam-do","latam-pe","lgpd","pipl","tr-kvkk"],"Q",()=>i,"D",0,["usa","usa-ccpa","usa-co","usa-ct","usa-va"],"U",0,i,"o",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 a(t.slice(e+1))}})()??a((0,r.getCookie)("twc-privacy")?.toString())??"exempt"])},617874,e=>{"use strict";let t="Imperial",r="Metric",i="Hybrid",n={code:"e",name:t,temp:"F",speed:"mph",distance:"mi",accumulation:"in",precip:"in",pressure:"in"},a={code:"m",name:r,temp:"C",speed:"km/h",distance:"km",accumulation:"cm",precip:"mm",pressure:"mb"},o={code:"h",name:i,temp:"C",speed:"mph",distance:"mi",accumulation:"in",precip:"in",pressure:"mb"};e.s(["S",0,"unitOfMeasurement","C",0,i,"G",0,t,"Y",0,r,"y",0,n,"i",0,function(e){switch(e?.toLowerCase()){case"e":case"f":return n;case"m":case"c":return a;case"h":return o;default:return null}},"H",0,function(e=""){switch(e.toLowerCase()){case"imperial":case"Imperial":return n;case"metric":case"Metric":return a;case"hybrid":case"Hybrid":return o;default:return null}}])},756227,e=>{"use strict";var t=e.i(282446),r=e.i(74492),i=e.i(889753),n=e.i(905059),a=e.i(310847),o=e.i(960576),s=e.i(317298),l=e.i(839315),u=e.i(391174),c=e.i(735526),d=e.i(90543),f=e.i(529603);e.s(["f",0,function(){let e=(0,t.F)(i.Y),p=(0,t.F)(a.n),m=(0,t.F)(i.s),g=(0,t.F)(n.f);return()=>{(0,u.f)(),(0,s.n)(),e(r.s),p(null),m(r.s),g(r.s),(0,o.c)(),(0,c.K)(),(0,f.E)(null),(0,l.x)(),(0,d.$)()}}])},735526,e=>{"use strict";let t="wx-next/account-created";e.s(["K",0,function(){try{sessionStorage.removeItem(t)}catch{}},"q",0,function(){try{sessionStorage.setItem(t,"true")}catch{}},"$",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 n(e){return(0,t.isLocalStorageAvailable)()?localStorage.getItem(e):null}function a(e,r){(0,t.isLocalStorageAvailable)()&&localStorage.setItem(e,r)}e.s(["$",0,function(){a(r,String(Date.now()))},"T",0,function({renderedTier:e,recordedTier:t,epochAtLoad:r,currentEpoch:i}){return null!==t&&t!==e||void 0!==r&&r!==i},"R",0,function(){return n(r)},"J",0,function(){return n(i)},"K",0,function(e){a(i,e)}])},391174,184059,e=>{"use strict";var t=e.i(284981);e.s(["f",()=>t.j],184059);var t=t,r=e.i(892504);e.s(["f",0,()=>{(0,t.j)(e=>"string"==typeof e&&e.startsWith("upsx/"),void 0,{revalidate:!1}),(0,r.p)()}],391174)},45846,e=>{"use strict";e.i(199690);var t=e.i(245943),r=e.i(810564);let i=new t.UPSXClient({baseUrl:(0,r.Z)("https://upsx.weather.com")});e.s(["f",0,i])},143778,e=>{"use strict";let t=(0,e.i(74492).N)("wxu-web/keyval:emailSubscriptions",null,void 0,{getOnInit:!0});e.s(["f",0,t])},889753,301904,e=>{"use strict";var t=e.i(74492),r=e.i(617874),i=e.i(990033),n=e.i(144683),a=e.i(543512);let o={animationSpeed:1,autoplay:!0,opacity:90,roadOverlay:"default",style:"default"};e.s(["f",0,o],301904);let s=(0,n.g)(a.H.none),l=(0,t.N)("userProfile",null,void 0,{getOnInit:!0}),u=(0,t.N)("twcId",{twcID:null,hashedTwcID:null,expiresAt:null,manifestVersion:null,installationID:null,authSignature:null},void 0,{getOnInit:!0}),c=(0,t.N)("userPreferences",{userID:(0,i.f)(),unit:r.G,locations:[],locale:"en_US",mapSettings:o,favoriteWeatherComponents:[],favoriteActivityComponents:[],dashboard:[]},void 0,{getOnInit:!0});e.s(["s",0,u,"u",0,c,"Y",0,l,"x",0,s],889753)},905059,e=>{"use strict";let t=(0,e.i(74492).N)("wx-next/user:mapLayerOrder",null,void 0,{getOnInit:!0});e.s(["f",0,t])},776169,809991,e=>{"use strict";var t=e.i(282446),r=e.i(889753),i=e.i(301904),n=e.i(905059),a=e.i(901351),o=e.i(310847),s=e.i(528600),l=e.i(617874),u=e.i(201542),c=e.i(553329),d=e.i(538167),f=e.i(245943);let p=(0,e.i(695881).createLogger)("useMapSettings");e.s(["y",0,"twc","b",0,function(e="twc"){let{user:{isUserLoggedIn:r}}=(0,s.f)(),i=(0,t.F)(n.f),o=(0,d.useCallback)(async t=>{if(!r)return!1;let{error:i}=await (0,c.f)(a.f.preference.updateMapSettings(e,t));if(!i)return!0;if(i instanceof f.APIError&&404===i.code){let{error:r}=await (0,c.f)(a.f.preference.createMapSettings(e,t));return!r||(p.warn("Failed to create map settings",r),!1)}return p.warn("Failed to update map settings",i),!1},[r,e]),l=(0,d.useCallback)((e,t)=>{i(e?.layerOrder??t)},[i]),u=(0,d.useCallback)(async t=>{if(!r||0===t.length)return!1;i(t);let{data:n,error:o}=await (0,c.f)(a.f.preference.reorderMapSettingsLayers(e,{order:t}));if(!o)return l(n,t),!0;if(o instanceof f.APIError&&404===o.code){let{data:r,error:i}=await (0,c.f)(a.f.preference.createMapSettings(e,{layerOrder:t}));if(!i)return l(r,t),!0;if(i instanceof f.APIError&&409===i.code){let{data:r,error:i}=await (0,c.f)(a.f.preference.reorderMapSettingsLayers(e,{order:t}));return i?(p.warn("Failed to reorder map layers after create",i),!1):(l(r,t),!0)}return p.warn("Failed to create map settings layer order",i),!1}return p.warn("Failed to reorder map layers",o),!1},[r,e,l,i]),m=(0,d.useCallback)(async(t,n,o)=>{if(!r)return!1;i(o);let{data:s,error:d}=await (0,c.f)(a.f.preference.moveMapSettingsLayer(e,t,{placement:n}));return d?d instanceof f.APIError&&(404===d.code||400===d.code)?u(o):(p.warn("Failed to move map layer",d),!1):(l(s,o),!0)},[r,e,l,u,i]);return{saveMapSettings:o,saveLayerOrder:u,moveLayer:m}}],809991),e.s(["f",0,function(){let{user:{isUserLoggedIn:e}}=(0,s.f)(),[d,f]=(0,t.q)(r.u),[p,m]=(0,t.q)(o.o),g=(0,t.F)(n.f),y=async()=>{let{data:e,error:t}=await (0,c.f)(a.f.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:i,opacity:n,roadOverlay:o,style:s}=e,l={...void 0!==r&&{animationSpeed:r},...void 0!==i&&{autoplay:i},...void 0!==n&&{opacity:n},...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}},w=async e=>{try{await a.f.preference.updatePreference(e)}catch(e){return console.error("Failed to sync preferences with server:",e),null}},h=async(t,r=!0)=>{try{let i,n=(i={...d,...t},f(i),m({...p,...t,locations:i.locations}),i);if(t?.unit){let e=(0,l.H)(t.unit),r=e?.code||"e";(0,u.setCookie)(l.S,r,{domain:"weather.com"})}return r&&e&&await w(n),{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([a.f.preference.getPreference(),y()]);if(!e?.userID)return null;let{mapSettings:r,layerOrder:n,ok:o}=t;o&&g(n);let{mapSettings:s,...l}=e,u={...l,mapSettings:{...i.f,...r}};return h(u,!1),u}catch{return null}},updatePreferences:h}}],776169)},528600,42318,e=>{"use strict";let t;var r=e.i(538167),i=e.i(282446),n=e.i(794120);let a=(0,e.i(831153).K)(n.U,e=>(t,r,i)=>(i.revalidateOnFocus=!1,i.revalidateIfStale=!1,i.revalidateOnReconnect=!1,e(t,r,i)));e.s(["f",0,a],42318);var o=e.i(889753),s=e.i(901351),l=e.i(310847),u=e.i(543512),c=e.i(990033),d=e.i(333350),f=e.i(495110),p=e.i(513513),m=e.i(960576);e.s(["f",0,function(){let[e,n]=(0,i.q)(o.Y),[g,y]=(0,i.q)(l.E),[w,h]=(0,i.q)(l.n),[v,S]=(0,r.useState)(!1),I=(0,i.F)(l.C),b=(0,f.f)();d.default&&!v&&(I(window.location.href),S(!0));let k=(0,i.y)(o.x),P=(0,p.J)(k),x=g;!x&&d.default&&(t||(t=(0,m.L)()??(0,c.f)()),x=t),d.default&&!g&&x&&y(x),!e&&w&&n(w);let A=a(P?"upsx/id":null,()=>s.f.account.getAccountId(),{shouldRetryOnError:e=>"APIError"!==e.name}),{userID:C=""}=A?.data||{},U=a(C&&e?.userID!==C?"upsx/account":null,()=>s.f.account.getAccount(),{shouldRetryOnError:e=>"APIError"!==e.name,onSuccess:e=>{n(e),h(e)}});return{user:{anonId:x,userID:C,isUserLoggedIn:P,subscriptionTier:k,isUserPremium:(0,p.Z)(k),isUserAdFree:k===u.H.adFree},userProfile:b?null:e,isUserIdLoading:A.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 i=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(["L",0,[1,2,3],"m",0,i,"H",()=>r,"j",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(["c",0,function(){try{window.localStorage.removeItem(t)}catch{}},"L",0,function(){let e=window.__wxExperimentDeviceId;if("string"==typeof e&&e)return e;try{return window.localStorage.getItem(t)||void 0}catch{return}}])},160317,e=>{"use strict";var t=e.i(543512);e.s(["f",0,function(e){return t.m[e]??t.m[t.H.none]}])},513513,e=>{"use strict";var t=e.i(543512);t.H.none,t.H.standard,t.H.adFree,t.H.premium,t.H.premiumWithAd,e.s(["O",0,function(e){return void 0!==e&&t.L.includes(e)},"J",0,function(e){return void 0!==e&&e>t.H.none},"Z",0,function(e){return t.L.includes(e)}],513513)},317298,e=>{"use strict";let t="wxu-next-session-intent",r=["fpdprobnsitop1intent","fpdprobnsitop2intent","fpdprobnsitop3intent"];e.s(["n",0,function(){try{localStorage.removeItem(t)}catch{}},"I",0,function(e){return!!e&&r.some(t=>{let r=e[t];return"string"==typeof r&&"radar"===r.trim().toLowerCase()})},"o",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}},"d",0,function(e){try{localStorage.setItem(t,JSON.stringify({promotesRadar:e.promotesRadar}))}catch{}}])},839315,e=>{"use strict";var t=e.i(584169);let r="wxu-web/keyval:mparticleUser";e.s(["x",0,()=>{try{localStorage.removeItem(r)}catch{}},"S",0,({upsxId:e,anonId:t})=>{let r="wxu-web/keyval:airlyticsUserAttributes"in localStorage,i="wxu-web/keyval:airlyticsEventQueue"in localStorage;return r&&i?e?`user:${e}`:`devices:${t}`:null},"d",0,()=>{let e=(0,t.getCookie)("s_vi")?.toString();if(!e||"string"!=typeof e)return null;let r=e.split("|");return r&&Array.isArray(r)&&"string"==typeof r[1]&&r[1].split("[")[0]||null},"t",0,()=>{let e,r,i=(e=window?.top,(r=e?._sp_?.metricData?.propertyId)||null),n=window?.top,a=n?._sp_?.config?.authId||(0,t.getCookie)("consentUUID")?.toString();return a&&i?`${i}:${a}`:null},"N",0,()=>{try{let e=JSON.parse(localStorage.getItem(r)||"{}");return e?.value?.mpid||null}catch{return null}},"H",0,()=>window?.mParticle?.Identity?.getCurrentUser?.()?.getUserIdentities?.()?.userIdentities?.customerid||null,"u",0,()=>{let e=window?.mParticle?.Identity?.getCurrentUser?.()?.getMPID?.();return e||null},"_",0,e=>{try{localStorage.setItem(r,JSON.stringify({value:{mpid:e},updatedAt:Date.now()}))}catch{}}])},892504,e=>{"use strict";let t="upsx-purchase-checked-at";e.s(["p",0,()=>{try{localStorage.removeItem(t)}catch{}},"q",0,()=>{try{localStorage.setItem(t,String(Date.now()))}catch{}},"r",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(199690);var t=e.i(245943),r=e.i(810564);let i=new t.UPSXClient({baseUrl:(0,r.Z)("https://upsx.weather.com")});e.s(["f",0,i])},991511,e=>{"use strict";var t=e.i(538167),r=e.i(26752),i=e.i(282446);e.s(["f",0,e=>{(0,r.f)(e);let n=(0,i.f)(),a=(0,t.useRef)(e);a.current=e,(0,t.useEffect)(()=>{for(let[e,t]of a.current)n.get(e)!==t&&n.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(["f",0,t])}]);