(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,736593,(e,t,r)=>{"use strict";e.i(288906),Object.defineProperty(r,"__esModule",{value:!0});var l={default:function(){return u},getImageProps:function(){return s}};for(var a in l)Object.defineProperty(r,a,{enumerable:!0,get:l[a]});let c=e.r(836437),o=e.r(507631),i=e.r(56930),n=c._(e.r(165613));function s(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:n.default,imgConf:{deviceSizes:[640,750,828,1080,1280,1600],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image/",loader:"custom",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let u=i.Image},749621,(e,t,r)=>{t.exports=e.r(736593)},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 l=new Set,a=0,c=()=>"function"==typeof window.mParticle?.init,o=()=>{void 0!==t&&(clearInterval(t),t=void 0)},i=()=>{if(!c()||(o(),0===l.size))return;let e=[...l];for(let t of(l.clear(),e))t()},n=()=>{void 0===t&&(a=0,t=setInterval(()=>{a+=100,i(),a>=3e4&&o()},100))},s=e=>(l.add(e),n(),()=>{l.delete(e)}),u=e=>c()?(e(),()=>{}):s(e),d=e=>c()?()=>{}:s(e),m=()=>!1;e.s(["subscribeSdkLoaded",0,u,"useIsSdkLoaded",0,()=>(0,r.useSyncExternalStore)(d,c,m),"watchForSdkLoad",0,e=>{if("u"{};if(c())return i(),()=>{};n();let t=Array.from(document.scripts).find(t=>t.getAttribute("src")===e);if(!t)return()=>{};let r=()=>i();return t.addEventListener("load",r),()=>{t.removeEventListener("load",r)}}],221085);let v=e=>"function"==typeof window.mParticle?.ready?(window.mParticle?.ready?.(e),()=>{}):u(()=>{window.mParticle?.ready?.(e),e()}),f=()=>!!window.mParticle?.isInitialized?.(),h=()=>!1;e.s(["useIsInitialized",0,()=>(0,r.useSyncExternalStore)(v,f,h)],947118)},663333,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["deviceClassAtom",0,t])},498076,e=>{"use strict";var t=e.i(546446),r=e.i(663333);e.s(["useIsMobile",0,function(){return"mobile"===(0,t.useAtomValue)(r.deviceClassAtom)}])},37423,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["dprSdkIsInitializedAtom",0,t])},935807,e=>{"use strict";function t(e,r=[],a=!1,c="US",o){let i,n=r.find(t=>t.placeID===e.placeId);if(n&&a){let t=n.userTag||n.name;if(t&&"Other"!==t){let r=e.displayName,a=l(e,c,""),o="address"===e.type?e.address:void 0;if(t!==r&&t!==a&&t!==o)return t}}if(e?.disputedCountries)i=e.displayName||"";else{switch(e?.type){case"address":i=e?.address?.split(",")[0]?.trim()||"";break;case"city":i=e?.locale?.locale2||"";break;case"locality":i=e?.locale?.locale3||"";break;case"neighborhood":i=e?.locale?.locale4||"";break;case"airport":i=e?.airportName||"";break;case"postal":{let t=e?.locale?.locale4||e?.locale?.locale3||e?.locale?.locale2||"",r=e?.postalCode||"";i=o?`${t} ${r}`.trim():`${t}`.trim();break}default:i=e?.displayName||""}0===i.length&&(i=e?.displayName||"")}return i}function r(e,t=[],a=!1,c="US",o){let i,n=t.find(t=>t.placeID===e.placeId);if(n&&a){let t=n.userTag||n.name;if(t&&"Other"!==t){let r=e.displayName,a=l(e,c,"");if(t!==r&&t!==a)return function(e,t="US"){if(e?.disputedCountries)return e?.displayName||"";let r=t===e?.countryCode?"":e?.country||"";switch(e?.type){case"city":{let t=e?.adminDistrict||"";return[e?.locale?.locale2||"",t,r].filter(Boolean).join(", ")}case"locality":{let t=e?.adminDistrict||e?.locale?.locale2||"";return[e.locale?.locale3||"",t,r].filter(Boolean).join(", ")}case"neighborhood":{let t=e?.adminDistrict||"";return[e?.locale?.locale4||"",e?.locale?.locale3||e?.locale?.locale2||"",t,r].filter(Boolean).join(", ")}case"postal":{let t=e?.adminDistrict||"",l=e?.postalCode||"";return[e?.locale?.locale4||e?.locale?.locale3||e?.locale?.locale2||"",`${t} ${l}`.trim(),r].filter(Boolean).join(", ")}default:{let t=e?.adminDistrict||"";return[e?.locale?.locale2||"",t,r].filter(Boolean).join(", ")}}}(e,c)}}if(e?.disputedCountries)i=e?.displayName||"";else{let t=c===e?.countryCode?"":e?.country||"",r=e?.adminDistrict||"",l=e?.postalCode||"",a=e.city||"";switch(e?.type){case"address":i=[a,r,t].filter(Boolean).join(", ");break;case"city":default:i=[r,t].filter(Boolean).join(", ");break;case"locality":i=[e?.locale?.locale2||"",r,t].filter(Boolean).join(", ");break;case"neighborhood":i=[e?.locale?.locale3||e?.locale?.locale2||"",r,t].filter(Boolean).join(", ");break;case"postal":{let a=r||e?.locale?.locale2||"";i=[o?`${a} ${l}`.trim():a,t].filter(Boolean).join(", ")}}}return i}function l(e,t,r){let{displayName:l,adminDistrictCode:a,adminDistrict:c,countryCode:o,disputedArea:i,country:n}=e,s=[];return l&&s.push(l),"IL"!==t&&(a?s.push(a):c&&s.push(c)),o!==t&&!1===i&&n&&s.push(n),s.join(r)}e.s(["getLocationContext",0,r,"getLocationName",0,t,"getLocationPresentationName",0,function(e,l=[],a=!1,c="US"){let o=t(e,l,a,c,!1),i=r(e,l,a,c,!0),n=e?.separator?e?.separator:o&&i?", ":"";return`${o}${n}${i}`.trim()}])},919101,e=>{"use strict";e.s(["getAddressForLocationData",0,(e,t)=>{if(!e||!Array.isArray(t))return e;let r=t.find(t=>t.placeId===e.placeId);return r?{...e,displayName:r.address,address:r.address}:e}])},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")}])},697380,e=>{"use strict";let t=(0,e.i(981030).atom)(0);e.s(["fixedBottomAdHeightAtom",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 l=(0,e.i(695881).createLogger)("DebugCollector");e.s(["DebugCollectorClient",0,function({componentName:e,data:a,page:c,onUpdateData:o,onSetPageData:i}){let{updateComponentData:n,setPageData:s}=(0,r.useDebugSystem)(),u=(0,t.useRef)(!1),d=o||n,m=i||s;return(0,t.useEffect)(()=>{if(a)return l.lifecycle(`Collecting component data for ${e}`,{dataKeys:Object.keys(a),hasPerformance:!!a.performance,hasContext:!!a.context}),d(e,{...a,_collectedAt:new Date().toISOString()}),()=>{l.lifecycle(`Cleaning up data for ${e}`),d(e,null)}},[e,a,d]),(0,t.useEffect)(()=>{c&&!u.current&&(l.lifecycle("Setting page metadata",{title:c.title,assetName:c.assetName,collection:c.collection}),m({...c,_updatedAt:new Date().toISOString()}),u.current=!0)},[c,m]),null}])},609858,674339,e=>{"use strict";var t=e.i(546446),r=e.i(247865);let l=(0,e.i(981030).atom)({timestamp:new Date().toISOString()});e.s(["debugDataAtom",0,l],674339),e.s(["useDebugSystem",0,function(){let[e,a]=(0,t.useAtom)(l),c=(0,r.useCallback)((e,t)=>{a(r=>{let l=r?.[e]||{},a="object"==typeof t&&null!==t&&"object"==typeof l?{...l,...t}:t;return{...r,[e]:a}})},[a]),o=(0,r.useCallback)((e,t)=>{a(r=>{let l=r||{timestamp:new Date().toISOString()},a=l.components||{};if(null===t){let t={...a};return delete t[e],{...l,components:t}}return{...l,components:{...a,[e]:t}}})},[a]),i=(0,r.useCallback)(e=>{c("page",e)},[c]),n=(0,r.useCallback)(e=>{c("route",e)},[c]),s=(0,r.useCallback)(e=>{Object.entries(e).forEach(([e,t])=>{t&&c(e,t)})},[c]);return{debugData:e,updateSection:c,updateComponentData:o,setPageData:i,clearAllDebugData:(0,r.useCallback)(()=>{a({timestamp:new Date().toISOString()})},[a]),updateRouteInfo:n,updatePageDebug:s}}],609858)},37429,e=>{"use strict";e.i(288906);var t=e.i(902875),r=e.i(247865),l=e.i(749621),a=e.i(632137);let c={square:"Square (1:1)",video:"Video (16:9)",goldenPortrait:"Golden Portrait (1:1.618)",goldenLandscape:"Golden Landscape (1.618:1)","16/9":"16:9","8/5":"8:5","4/3":"4:3","3/2":"3:2","2/3":"2/3","1/1":"1:1",auto:"Auto"};["square","video","goldenPortrait","goldenLandscape","16/9","8/5","4/3","3/2","2/3","1/1","auto"].map(e=>({label:c[e],value:e}));let o={square:"aspect-square",video:"aspect-video",goldenPortrait:"aspect-[1/1.618]",goldenLandscape:"aspect-[1.618/1]","16/9":"aspect-[16/9]","8/5":"aspect-[8/5]","4/3":"aspect-[4/3]","3/2":"aspect-[3/2]","2/3":"aspect-[2/3]","1/1":"aspect-[1/1]",auto:"h-full w-full"},i=(0,r.forwardRef)(({src:e,alt:r,shadow:c,rounded:i=!0,className:n,wrapperClassName:s,width:u,height:d,quality:m,priority:v=!1,loading:f,isFetchPriority:h=!1,objectFit:p,fill:y=!1,sizes:g,aspectRatio:w,isAnimated:S=!1,unoptimized:b,...C},A)=>{if(!e)return null;let I=S||e.toLowerCase().endsWith(".gif"),x=y||!!w,P=p??(w?"cover":"contain"),j=w?o[w]:"",k=(0,t.jsx)(l.default,{ref:A,src:e,alt:r,width:x?void 0:u??320,height:x?void 0:d??180,quality:m,priority:v,loading:f,fetchPriority:h?"high":void 0,fill:x,sizes:g,unoptimized:b??I,className:(0,a.cn)({"shadow-md":c,"rounded-lg":i,"object-contain":"contain"===P,"object-cover":"cover"===P,"object-fill":"fill"===P,"object-none":"none"===P,"object-scale-down":"scale-down"===P,"h-auto w-full":!x},n),...C});return x?(0,t.jsx)("div",{className:(0,a.cn)("relative overflow-hidden",j,!w&&"h-full w-full",s),children:k}):k});i.displayName="Image",e.s(["ASPECT_RATIO_CLASSES",0,o,"Image",0,i,"default",0,i])},521231,335355,e=>{"use strict";var t=e.i(902875),r=e.i(981030),l=e.i(889753);let a=(0,r.atom)(e=>e(l.userPreferencesAtom)?.locale||"en_US");(0,r.atom)(e=>e(a).split("_")[0]);let c=(0,r.atom)(e=>e(a).split("_")[1]);e.s(["userCountryAtom",0,c,"userLocaleAtom",0,a],335355);var o=e.i(546446);let i=["VA","SO"],n=({className:e})=>{let r=(0,o.useAtomValue)(c);return i.includes(r)?(0,t.jsxs)("svg",{className:e,viewBox:"0 0 24 24",children:[(0,t.jsx)("title",{children:"The Weather Channel"}),(0,t.jsx)("path",{d:"M0 0h24v24H0V0zm2.0433 6.807v.657h.9629v3.2794h.8043V7.464h.9402l.1303-.657H2.0433zm3.0982-.0794c.034.119.0567.3908.0567.6627v3.3531h.7703V8.6647c.1699-.1529.4134-.2662.6003-.2662.2153 0 .2946.1076.2946.3965v1.9484h.742V8.7157c0-.3285-.017-.3738-.0737-.538-.0906-.2436-.3965-.4136-.7533-.4136-.2945 0-.623.1246-.8213.3116 0-.034.0114-.153.0114-.2436v-.5777c0-.2776-.017-.5494-.051-.708l-.776.1812zm5.1655 3.2455c-.2322.1926-.4758.2889-.7363.2889-.3908 0-.6117-.2549-.6117-.7024V9.537h1.6765v-.1756c0-.606-.119-.9969-.3851-1.2687-.187-.1926-.5041-.3059-.8383-.3059-.3852 0-.674.1246-.9119.3908-.2549.2832-.3625.6287-.3625 1.1498 0 .912.538 1.501 1.3707 1.501.4078 0 .759-.1303 1.0931-.4022l-.2945-.453zm-8.241 2.1964l.9402 3.9704h.9005l.323-1.6142c.1132-.5778.1925-1.1328.1925-1.1328.0057.034.051.5324.1869 1.1441l.3512 1.6029h.8666l.9515-3.9704h-.8326l-.3228 1.4952c-.068.3286-.204 1.1838-.2153 1.3084 0 0-.0963-.674-.1699-1.0421l-.3625-1.7615h-.8666l-.3512 1.5915c-.1189.5438-.1869 1.1045-.2039 1.2575 0 0-.0453-.5608-.2095-1.2971l-.3399-1.552H2.066zm7.0172 3.1661c-.2322.1926-.4758.289-.7363.289-.3908 0-.6117-.255-.6117-.7024v-.0227h1.6765v-.1756c0-.606-.119-.9968-.3851-1.2687-.187-.1926-.5041-.3059-.8383-.3059-.3851 0-.674.1246-.9119.3908-.2549.2832-.3625.6287-.3625 1.1498 0 .912.538 1.501 1.3707 1.501.4078 0 .759-.1303 1.0931-.4021l-.2945-.4532zm.742-1.7841l.3228.5437c.3115-.2095.5947-.3285.8383-.3285.2775 0 .3398.1076.3398.4305v.119c-.0792-.0058-.1132-.0058-.1699-.0058-.9232 0-1.3933.3172-1.3933.9969 0 .5777.3511.9063.9968.9063.238 0 .4418-.0567.5834-.1586.0567-.0397.068-.051.1756-.153.0737.1473.2323.2776.4078.3512l.4022-.4644c-.221-.1643-.2719-.2833-.2719-.5948v-.051l.017-.9742c0-.3115-.0113-.402-.051-.521-.1133-.3229-.4474-.5041-.9345-.5041-.2663 0-.5098.051-.793.1699-.204.0793-.2832.119-.4701.2379zm4.4009-.3512h-.6797c0-.2945.017-.606.0453-.8723l-.7703.1926c-.0283.2152-.0283.4078-.0283.691h-.2889v.4928h.2889v1.5973c0 .2661.0056.3228.051.4474.085.2549.3964.4248.7816.4248.1982 0 .3965-.0396.6174-.1303l-.0964-.453c-.1359.0396-.2038.0566-.2718.0566-.2606 0-.3285-.0963-.3285-.4645v-1.4783h.4871l.1926-.5041zm.2095-1.1101c.034.1189.0566.3908.0566.6626v3.3531h.7703v-2.0787c.17-.1529.4135-.2662.6004-.2662.2152 0 .2945.1077.2945.3965v1.9484h.742v-2.0277c0-.3285-.017-.3738-.0736-.538-.0907-.2436-.3965-.4135-.7533-.4135-.2946 0-.623.1246-.8213.3115 0-.034.0113-.153.0113-.2435v-.5778c0-.2775-.017-.5494-.051-.708l-.776.1813zm5.1654 3.2454c-.2322.1926-.4757.289-.7363.289-.3908 0-.6117-.255-.6117-.7024v-.0227h1.6765v-.1756c0-.606-.1189-.9968-.385-1.2687-.187-.1926-.5042-.3059-.8383-.3059-.3852 0-.674.1246-.912.3908-.2548.2832-.3625.6287-.3625 1.1498 0 .912.5381 1.501 1.3707 1.501.4078 0 .759-.1303 1.0932-.4021l-.2946-.4532zm.7817-2.0163c.0623.1642.1076.4587.1076.8495v1.9371h.759v-2.0503c.1415-.1643.2945-.2436.4644-.2436.085 0 .1472.017.2209.0567l.2096-.6684c-.119-.051-.17-.0623-.2833-.0623-.085 0-.1869.017-.2492.0453-.1415.068-.3228.221-.4304.3682-.0113-.1643-.051-.2945-.119-.4135l-.6796.1813zM4.9489 17.7585c-.2152-.1869-.606-.3115-.9968-.3115-.6344 0-1.2008.3399-1.5067.912-.1812.3398-.2662.7306-.2662 1.2233 0 .5778.1586 1.0536.4758 1.4104.3229.3682.742.5437 1.2857.5437.4475 0 .7817-.1132 1.0932-.3681l-.3625-.4985a3.6136 3.6136 0 0 1-.0793.0624c-.1926.1302-.3795.1925-.5947.1925-.3399 0-.6004-.1529-.759-.4418-.119-.2152-.1642-.5154-.1642-1.0535 0-.4588.068-.7873.2209-1.0138.1416-.2096.402-.3399.6683-.3399.2209 0 .4305.0737.6287.221l.3568-.5382zm.3908-.3058c.034.119.0566.3908.0566.6627v3.353h.7703v-2.0786c.17-.153.4135-.2662.6004-.2662.2152 0 .2945.1076.2945.3964v1.9485h.742v-2.0277c0-.3286-.017-.3739-.0736-.5381-.0906-.2436-.3965-.4135-.7533-.4135-.2946 0-.623.1246-.8213.3115 0-.034.0113-.153.0113-.2435v-.5778c0-.2775-.017-.5494-.051-.708l-.776.1813zm3.0755 1.4613l.3228.5437c.3115-.2095.5947-.3285.8383-.3285.2775 0 .3398.1077.3398.4305v.119c-.0793-.0057-.1133-.0057-.17-.0057-.9231 0-1.3932.3171-1.3932.9968 0 .5778.3511.9063.9968.9063.2379 0 .4418-.0567.5834-.1586.0566-.0397.068-.051.1756-.153.0736.1473.2322.2776.4078.3512l.4021-.4644c-.2209-.1643-.2718-.2832-.2718-.5947v-.051l.017-.9742c0-.3116-.0114-.4022-.051-.5211-.1133-.3229-.4475-.5041-.9346-.5041-.2662 0-.5097.051-.793.17-.2038.0792-.2831.1189-.47.2378zm2.8546-.2266c.068.1926.102.4305.102.6797v2.1014h.7589V19.418c.1756-.1586.3738-.2606.5267-.2606.1983 0 .255.0963.255.4248v1.8862h.7476V19.35c0-.1812-.017-.3058-.0567-.4134-.0906-.2493-.3738-.4192-.6966-.4192-.17 0-.3682.0453-.5211.1246-.1246.068-.1586.0907-.3342.2152 0-.1189-.0397-.2435-.1076-.3624l-.674.1925zm3.0188 0c.068.1926.102.4305.102.6797v2.1014h.759V19.418c.1755-.1586.3737-.2606.5267-.2606.1982 0 .2549.0963.2549.4248v1.8862h.7476V19.35c0-.1812-.017-.3058-.0566-.4134-.0906-.2493-.3739-.4192-.6967-.4192-.17 0-.3681.0453-.521.1246-.1247.068-.1587.0907-.3342.2152 0-.1189-.0397-.2435-.1077-.3624l-.674.1925zm5.0806 2.0108c-.2323.1925-.4758.2888-.7364.2888-.3908 0-.6117-.2548-.6117-.7023v-.0226h1.6766v-.1757c0-.606-.119-.9968-.3852-1.2687-.1869-.1926-.504-.3058-.8382-.3058-.3852 0-.674.1246-.912.3908-.2548.2832-.3625.6287-.3625 1.1497 0 .912.5381 1.501 1.3707 1.501.4078 0 .759-.1302 1.0932-.4021l-.2945-.4531zm1.5859-3.421l-.776.1755c.0283.2605.0397.4927.0397.8722v2.1637c0 .4135.0113.504.068.6513.0905.2436.3511.3965.674.3965.1642 0 .3228-.0283.453-.0792l-.1302-.4532c-.0396.0113-.0566.0113-.085.0113-.0623 0-.1246-.0283-.1529-.0792-.0453-.0793-.051-.1473-.051-.6458v-2.2599c0-.4078-.0113-.5947-.0396-.7533zM8.9703 8.9818h.878v-.034c0-.2152-.0227-.3285-.0907-.4361-.0736-.1133-.1813-.17-.3342-.17-.2888 0-.453.2266-.453.6288v.0113zm-1.2238 5.3625h.878v-.034c0-.2152-.0227-.3285-.0907-.436-.0736-.1134-.1812-.17-.3342-.17-.2888 0-.4531.2266-.4531.6287v.0113zm3.5683.4928h-.034c-.5267 0-.708.0963-.708.4418 0 .2265.1416.3795.3342.3795.1416 0 .2832-.0737.3965-.1983l.0113-.623zm6.9495-.4928h.878v-.034c0-.2152-.0227-.3285-.0907-.436-.0736-.1134-.1812-.17-.3341-.17-.2889 0-.4532.2266-.4532.6287v.0113zm-8.3595 5.8553h-.034c-.5268 0-.708.0963-.708.4418 0 .2266.1416.3795.3342.3795.1416 0 .2832-.0736.3965-.1982l.0113-.623zm8.1277-.4927h.8779v-.034c0-.2153-.0227-.3285-.0906-.4361-.0737-.1133-.1813-.17-.3342-.17-.2889 0-.4531.2266-.4531.6287v.0114z",fill:"currentColor",fillRule:"evenodd"})]}):(0,t.jsxs)("svg",{className:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 52 48",children:[(0,t.jsx)("title",{children:"The Weather Company"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48 48H0V0h48v48ZM19.197 37.414c-.548 0-1.05.105-1.633.35-.42.163-.583.245-.967.49l.665 1.119c.64-.431 1.224-.676 1.725-.676.571 0 .7.222.7.886v.245a4.025 4.025 0 0 0-.35-.012c-1.9 0-2.868.653-2.868 2.052 0 1.19.722 1.865 2.051 1.865.49 0 .91-.116 1.202-.326.116-.081.14-.104.361-.314.152.303.479.57.84.722l.827-.956c-.455-.338-.56-.583-.56-1.224v-.105l.036-2.006c0-.64-.023-.827-.105-1.072-.233-.664-.921-1.038-1.924-1.038Zm18.107.012c-.793 0-1.388.257-1.877.804-.525.583-.747 1.295-.747 2.368 0 1.877 1.108 3.09 2.822 3.09.84 0 1.562-.27 2.25-.829l-.607-.932c-.478.396-.979.595-1.515.595-.805 0-1.259-.526-1.259-1.447v-.047h3.451v-.361c0-1.247-.245-2.052-.793-2.611-.384-.397-1.038-.63-1.725-.63ZM7.409 35.234c-1.306 0-2.472.7-3.101 1.877-.373.7-.548 1.505-.548 2.519 0 1.189.326 2.169.98 2.903.664.758 1.527 1.12 2.646 1.12.92 0 1.61-.234 2.25-.758l-.745-1.027a7.262 7.262 0 0 1-.164.128c-.397.268-.781.396-1.224.397-.7 0-1.236-.315-1.563-.91-.244-.443-.337-1.06-.337-2.168 0-.945.139-1.621.454-2.087.291-.432.828-.7 1.376-.7.454 0 .886.152 1.294.455l.735-1.108c-.443-.385-1.248-.64-2.053-.64Zm33.404.012c.059.536.081 1.014.081 1.795l.002 4.714c.005.634.035.812.138 1.08.187.502.723.817 1.388.817.338 0 .664-.058.933-.163l-.268-.933a.519.519 0 0 1-.175.023c-.128 0-.257-.058-.315-.163-.093-.163-.105-.304-.105-1.33v-4.945c-.006-.64-.03-.972-.082-1.257l-1.596.362Zm-30.547 0c.07.245.117.804.117 1.363v6.903h1.585v-4.279c.35-.314.851-.547 1.236-.547.443 0 .606.22.606.815v4.01h1.528v-4.173c0-.676-.035-.77-.151-1.108-.187-.5-.817-.851-1.551-.851-.607 0-1.283.257-1.69.642 0-.07.022-.315.022-.502V36.33c0-.57-.035-1.13-.105-1.457l-1.597.373Zm12.207 2.541c.14.397.21.886.21 1.4v4.325h1.562V39.29c.361-.326.77-.536 1.084-.536.408 0 .526.199.526.875v3.882h1.539v-4.36c0-.373-.036-.63-.118-.851-.186-.513-.769-.863-1.433-.864-.35 0-.759.094-1.073.257-.257.14-.327.186-.688.443a1.53 1.53 0 0 0-.222-.746l-1.387.396Zm6.215 0c.14.397.21.886.21 1.4v4.325h1.562V39.29c.361-.326.77-.536 1.084-.536.408 0 .524.199.524.875v3.882h1.54v-4.36c0-.373-.035-.63-.117-.851-.186-.513-.77-.864-1.434-.864-.35 0-.758.094-1.073.257a5.28 5.28 0 0 0-.688.443c0-.245-.081-.502-.22-.746l-1.389.396ZM19.663 40.9l-.023 1.283c-.233.256-.525.408-.817.408-.396 0-.687-.315-.687-.781 0-.711.373-.91 1.457-.91h.07Zm17.664-2.332c.315 0 .536.117.688.35.14.221.186.455.186.898v.07h-1.806v-.023c0-.828.337-1.295.932-1.295ZM22.1 26.375c-.548 0-1.05.106-1.633.35a4.44 4.44 0 0 0-.968.49l.665 1.119c.641-.431 1.224-.676 1.726-.676.57 0 .699.222.699.886v.245a3.99 3.99 0 0 0-.35-.012c-1.9 0-2.868.653-2.868 2.052 0 1.19.723 1.866 2.052 1.866.49 0 .91-.117 1.201-.327.117-.081.14-.105.361-.314.152.303.479.57.84.722l.827-.956c-.454-.338-.56-.583-.56-1.223v-.106l.036-2.006c0-.64-.023-.827-.105-1.072-.233-.664-.92-1.038-1.923-1.038Zm-5.97.012c-.793 0-1.387.257-1.877.804-.525.583-.746 1.295-.746 2.368 0 1.877 1.107 3.09 2.821 3.09.84 0 1.562-.27 2.25-.829l-.606-.932c-.478.396-.98.594-1.516.594-.804 0-1.259-.525-1.259-1.446v-.046h3.451v-.361c0-1.248-.245-2.053-.793-2.612-.384-.397-1.037-.63-1.725-.63Zm21.651 0c-.793 0-1.388.256-1.878.804-.524.583-.746 1.295-.746 2.368 0 1.877 1.109 3.09 2.823 3.09.839 0 1.562-.27 2.25-.829l-.607-.932c-.478.396-.98.594-1.516.594-.804 0-1.26-.525-1.26-1.446v-.046H40.3v-.361c0-1.248-.244-2.053-.792-2.612-.385-.397-1.038-.63-1.726-.63Zm-12.114-1.294c-.058.443-.059.84-.059 1.423h-.594v1.013h.594l.001 3.498c.004.374.025.492.105.712.175.525.816.874 1.608.874a3.28 3.28 0 0 0 1.272-.268l-.199-.933c-.28.082-.42.117-.56.117-.535 0-.676-.198-.676-.956V27.53h1.003l.397-1.037h-1.4c0-.606.036-1.248.094-1.796l-1.586.397Zm-22.14-.723 1.935 8.173h1.854l.664-3.322c.232-1.18.394-2.315.397-2.332.012.07.105 1.097.385 2.355l.722 3.299h1.785l1.958-8.173h-1.713l-.665 3.078c-.14.677-.42 2.437-.443 2.694 0 0-.199-1.388-.35-2.146L9.31 24.37H7.526l-.723 3.276a27.537 27.537 0 0 0-.42 2.588 21.687 21.687 0 0 0-.43-2.67l-.7-3.194H3.527Zm25.463-.163c.07.245.116.805.116 1.364v6.903h1.586v-4.28c.35-.314.851-.547 1.236-.547.443 0 .606.221.606.816v4.01h1.528V28.3c0-.676-.035-.77-.152-1.108-.186-.5-.816-.85-1.55-.85-.607 0-1.283.256-1.691.64 0-.07.023-.314.023-.5v-1.19c0-.571-.035-1.13-.105-1.457l-1.597.373Zm15.285 2.157c-.175 0-.385.035-.513.093-.292.14-.665.455-.886.758a1.918 1.918 0 0 0-.245-.85l-1.399.372c.129.338.221.944.221 1.748v3.989h1.563v-4.221c.291-.338.606-.502.956-.502a.89.89 0 0 1 .455.117l.431-1.376c-.244-.105-.35-.128-.583-.128Zm-21.71 3.497-.023 1.284c-.233.256-.524.408-.815.408-.397 0-.689-.315-.689-.782 0-.71.374-.91 1.458-.91h.07Zm-6.412-2.332c.315 0 .536.118.688.35.14.222.186.455.186.898v.07h-1.806v-.023c0-.828.338-1.295.932-1.295Zm21.65 0c.316 0 .538.118.69.35.139.222.186.455.186.898v.07H36.87v-.023c0-.827.338-1.295.933-1.295ZM18.65 15.35c-.793 0-1.388.256-1.878.804-.524.583-.746 1.294-.746 2.367 0 1.877 1.108 3.09 2.822 3.09.84 0 1.563-.27 2.25-.829l-.606-.932c-.478.396-.98.594-1.515.594-.805 0-1.26-.524-1.26-1.445v-.047h3.451v-.361c0-1.248-.244-2.053-.792-2.613-.385-.396-1.038-.628-1.726-.628ZM3.48 13.33v1.353h1.982v6.75h1.656v-6.75h1.936l.267-1.353h-5.84Zm6.378-.163c.07.245.117.805.117 1.364v6.903h1.585v-4.28c.35-.314.851-.547 1.236-.548.443 0 .606.222.606.817v4.01h1.528V17.26c0-.676-.035-.77-.152-1.108-.186-.501-.816-.851-1.55-.851-.607 0-1.283.257-1.69.641 0-.07.022-.315.022-.502v-1.189c0-.571-.035-1.13-.105-1.457l-1.597.373Zm8.814 3.323c.315 0 .537.117.688.35.14.221.187.454.187.897v.07h-1.808v-.023c0-.828.338-1.294.933-1.294Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M49.97 2.175V.791h.691a.45.45 0 0 1 .203.05.422.422 0 0 1 .24.397.443.443 0 0 1-.25.416.468.468 0 0 1-.213.054h-.492V1.47h.405c.045 0 .09-.02.133-.058.046-.039.068-.096.068-.173 0-.08-.023-.135-.068-.165a.226.226 0 0 0-.127-.045h-.268v1.146h-.323Zm.85-.649.336.649h-.354l-.323-.649h.342ZM50.5 3c-.208 0-.402-.039-.583-.116A1.507 1.507 0 0 1 49 1.5c0-.208.039-.402.116-.583A1.508 1.508 0 0 1 50.5 0c.208 0 .402.039.583.116a1.507 1.507 0 0 1 .8 1.967 1.51 1.51 0 0 1-.8.8A1.467 1.467 0 0 1 50.5 3Zm0-.371c.208 0 .396-.05.566-.152a1.17 1.17 0 0 0 .409-.409c.101-.171.152-.36.152-.568 0-.208-.05-.396-.152-.566a1.144 1.144 0 0 0-.409-.409A1.075 1.075 0 0 0 50.5.371c-.208 0-.397.051-.568.154a1.144 1.144 0 0 0-.409.409c-.101.17-.152.358-.152.566 0 .208.05.397.152.568.101.17.238.306.409.409.171.101.36.152.568.152Z",fill:"currentColor"})]})};e.s(["TwcLogo",0,n,"default",0,n],521231)},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])},776169,809991,e=>{"use strict";var t=e.i(546446),r=e.i(889753),l=e.i(301904),a=e.i(905059),c=e.i(901351),o=e.i(310847),i=e.i(528600),n=e.i(617874),s=e.i(540768),u=e.i(553329),d=e.i(247865),m=e.i(245943);let v=(0,e.i(695881).createLogger)("useMapSettings");e.s(["WEB_MAP_SETTINGS_PLATFORM",0,"twc","useMapSettings",0,function(e="twc"){let{user:{isUserLoggedIn:r}}=(0,i.useUser)(),l=(0,t.useSetAtom)(a.mapLayerOrderAtom),o=(0,d.useCallback)(async t=>{if(!r)return!1;let{error:l}=await (0,u.tryCatch)(c.upsxClient.preference.updateMapSettings(e,t));if(!l)return!0;if(l instanceof m.APIError&&404===l.code){let{error:r}=await (0,u.tryCatch)(c.upsxClient.preference.createMapSettings(e,t));return!r||(v.warn("Failed to create map settings",r),!1)}return v.warn("Failed to update map settings",l),!1},[r,e]),n=(0,d.useCallback)((e,t)=>{l(e?.layerOrder??t)},[l]),s=(0,d.useCallback)(async t=>{if(!r||0===t.length)return!1;l(t);let{data:a,error:o}=await (0,u.tryCatch)(c.upsxClient.preference.reorderMapSettingsLayers(e,{order:t}));if(!o)return n(a,t),!0;if(o instanceof m.APIError&&404===o.code){let{data:r,error:l}=await (0,u.tryCatch)(c.upsxClient.preference.createMapSettings(e,{layerOrder:t}));if(!l)return n(r,t),!0;if(l instanceof m.APIError&&409===l.code){let{data:r,error:l}=await (0,u.tryCatch)(c.upsxClient.preference.reorderMapSettingsLayers(e,{order:t}));return l?(v.warn("Failed to reorder map layers after create",l),!1):(n(r,t),!0)}return v.warn("Failed to create map settings layer order",l),!1}return v.warn("Failed to reorder map layers",o),!1},[r,e,n,l]),f=(0,d.useCallback)(async(t,a,o)=>{if(!r)return!1;l(o);let{data:i,error:d}=await (0,u.tryCatch)(c.upsxClient.preference.moveMapSettingsLayer(e,t,{placement:a}));return d?d instanceof m.APIError&&(404===d.code||400===d.code)?s(o):(v.warn("Failed to move map layer",d),!1):(n(i,o),!0)},[r,e,n,s,l]);return{saveMapSettings:o,saveLayerOrder:s,moveLayer:f}}],809991),e.s(["usePreferences",0,function(){let{user:{isUserLoggedIn:e}}=(0,i.useUser)(),[d,m]=(0,t.useAtom)(r.userPreferencesAtom),[v,f]=(0,t.useAtom)(o.wxuUserPreferenceAtom),h=(0,t.useSetAtom)(a.mapLayerOrderAtom),p=async()=>{let{data:e,error:t}=await (0,u.tryCatch)(c.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:l,opacity:a,roadOverlay:o,style:i}=e,n={...void 0!==r&&{animationSpeed:r},...void 0!==l&&{autoplay:l},...void 0!==a&&{opacity:a},...void 0!==o&&{roadOverlay:o},...void 0!==i&&{style:i}};return{ok:!0,mapSettings:Object.keys(n).length>0?n:null,layerOrder:e.layerOrder?.length?e.layerOrder:null}},y=async e=>{try{await c.upsxClient.preference.updatePreference(e)}catch(e){return console.error("Failed to sync preferences with server:",e),null}},g=async(t,r=!0)=>{try{let l,a=(l={...d,...t},m(l),f({...v,...t,locations:l.locations}),l);if(t?.unit){let e=(0,n.unitsSystemByName)(t.unit),r=e?.code||"e";(0,s.setCookie)(n.UNITS_COOKIE_KEY,r,{domain:"weather.com"})}return r&&e&&await y(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([c.upsxClient.preference.getPreference(),p()]);if(!e?.userID)return null;let{mapSettings:r,layerOrder:a,ok:o}=t;o&&h(a);let{mapSettings:i,...n}=e,s={...n,mapSettings:{...l.DEFAULT_MAP_SETTINGS,...r}};return g(s,!1),s}catch{return null}},updatePreferences:g}}],776169)},792461,e=>{"use strict";var t=e.i(247865);e.s(["useRefMemo",0,e=>{let r=(0,t.useRef)(e);return r.current=e,r}])}]);