(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,609858,674339,e=>{"use strict";var t=e.i(546446),r=e.i(592121);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),s=(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]),n=(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]),o=(0,r.useCallback)(e=>{s("page",e)},[s]),l=(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:n,setPageData:o,clearAllDebugData:(0,r.useCallback)(()=>{i({timestamp:new Date().toISOString()})},[i]),updateRouteInfo:l,updatePageDebug:c}}],609858)},752496,e=>{"use strict";var t=e.i(592121),r=e.i(609858);let a=(0,e.i(695881).createLogger)("DebugCollector");e.s(["DebugCollectorClient",0,function({componentName:e,data:i,page:s,onUpdateData:n,onSetPageData:o}){let{updateComponentData:l,setPageData:c}=(0,r.useDebugSystem)(),u=(0,t.useRef)(!1),d=n||l,p=o||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)(()=>{s&&!u.current&&(a.lifecycle("Setting page metadata",{title:s.title,assetName:s.assetName,collection:s.collection}),p({...s,_updatedAt:new Date().toISOString()}),u.current=!0)},[s,p]),null}])},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])},776169,809991,e=>{"use strict";var t=e.i(546446),r=e.i(889753),a=e.i(301904),i=e.i(901351),s=e.i(310847),n=e.i(528600),o=e.i(617874),l=e.i(864723),c=e.i(553329),u=e.i(592121),d=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:t}}=(0,n.useUser)();return{saveMapSettings:(0,u.useCallback)(async r=>{if(!t)return!1;let{error:a}=await (0,c.tryCatch)(i.upsxClient.preference.updateMapSettings(e,r));if(!a)return!0;if(a instanceof d.APIError&&404===a.code){let{error:t}=await (0,c.tryCatch)(i.upsxClient.preference.createMapSettings(e,r));return!t||(p.warn("Failed to create map settings",t),!1)}return p.warn("Failed to update map settings",a),!1},[t,e])}}],809991),e.s(["usePreferences",0,function(){let{user:{isUserLoggedIn:e}}=(0,n.useUser)(),[u,d]=(0,t.useAtom)(r.userPreferencesAtom),[p,m]=(0,t.useAtom)(s.wxuUserPreferenceAtom),f=async()=>{let{data:e,error:t}=await (0,c.tryCatch)(i.upsxClient.preference.getMapSettings("twc"));if(t||!e)return null;let{animationSpeed:r,autoplay:a,opacity:s,roadOverlay:n,style:o}=e,l={...void 0!==r&&{animationSpeed:r},...void 0!==a&&{autoplay:a},...void 0!==s&&{opacity:s},...void 0!==n&&{roadOverlay:n},...void 0!==o&&{style:o}};return Object.keys(l).length>0?l:null},h=async e=>{try{await i.upsxClient.preference.updatePreference(e)}catch(e){return console.error("Failed to sync preferences with server:",e),null}},g=async(t,r=!0)=>{try{let a,i=(a={...u,...t},d(a),m({...p,...t,locations:a.locations}),a);if(t?.unit){let e=(0,o.unitsSystemByName)(t.unit),r=e?.code||"e";(0,l.setCookie)(o.UNITS_COOKIE_KEY,r,{domain:"weather.com"})}return r&&e&&await h(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([i.upsxClient.preference.getPreference(),f()]);if(!e?.userID)return null;let{mapSettings:r,...s}=e,n={...s,mapSettings:{...a.DEFAULT_MAP_SETTINGS,...t}};return g(n,!1),n}catch{return null}},updatePreferences:g}}],776169)},491045,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])},185312,(e,t,r)=>{t.exports=e.r(16129)},318849,e=>{"use strict";let t=!1,r="upsx-recent-purchase-at";e.s(["SWR_CACHE_LEGACY_STORAGE_KEY",0,"app-cache","SWR_CACHE_STORAGE_KEY",0,"wxu-swr-cache-v1","disableSwrPersist",0,()=>{t=!0},"hasRecentPurchase",0,e=>{try{let t=localStorage.getItem(r);if(!t)return!1;let a=Number(t);if(!Number.isFinite(a))return!1;return Date.now()-at,"markRecentPurchase",0,()=>{try{localStorage.setItem(r,String(Date.now()))}catch{}}])},45846,e=>{"use strict";let t=new(e.i(245943)).UPSXClient({baseUrl:"https://upsx.weather.com"});e.s(["upsxClient",0,t])},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])},806262,e=>{"use strict";e.i(592121);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 s,n=(0,t.useStore)(a),o=(i=n,(s=r.get(i))||(s=new WeakSet,r.set(i,s)),s);for(let[t,...r]of e)(!o.has(t)||(null==a?void 0:a.dangerouslyForceHydrate))&&(o.add(t),n.set(t,...r))}])},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])},991511,e=>{"use strict";var t=e.i(592121),r=e.i(806262),a=e.i(546446);e.s(["useRehydrateAtoms",0,e=>{(0,r.useHydrateAtoms)(e);let i=(0,a.useStore)(),s=(0,t.useRef)(e);s.current=e,(0,t.useEffect)(()=>{for(let[e,t]of s.current)i.get(e)!==t&&i.set(e,t)})}])},797770,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["adsMetricsUnitAndZoneAtom",0,t])},688070,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["isWebViewOnlyAtom",0,t])},630986,e=>{"use strict";var t=e.i(546446),r=e.i(604323);e.s(["useCMSAttributes",0,()=>(0,t.useAtomValue)(r.metricsArticleDataAtom)])},742436,283366,e=>{"use strict";e.s(["ExperimentContext",()=>$,"ExperimentProvider",()=>D,"default",()=>j,"useExperimentContext",()=>L],742436);var t=e.i(546584),r=e.i(699173),a=e.i(592121),i=e.i(185312),s=e.i(333350),n=e.i(546446),o=e.i(737801),l=e.i(688070),c=e.i(158662),u=e.i(528600),d=e.i(553329);let p="production"!==t.default.env.VERCEL_TARGET_ENV,m=new Set;e.s(["getExposureVariantOverride",()=>k,"resetExposures",()=>E,"useExposure",()=>I],283366);var f=e.i(695881),h=e.i(358273);let g=(0,f.createLogger)("useExposure"),y="wxu-exp-exposed:",v=new Set,x=()=>{try{return(0,h.getMetricsSession)()?.sessionId||null}catch{return null}},w=e=>{try{let t=localStorage.getItem(y+e);return new Set(t?JSON.parse(t):[])}catch{return new Set}},S=(e,t)=>{try{for(let t=localStorage.length-1;t>=0;t--){let r=localStorage.key(t);r?.startsWith(y)&&r!==y+e&&localStorage.removeItem(r)}localStorage.setItem(y+e,JSON.stringify([...t]))}catch{}},A=e=>{if(0===v.size)return;let t=w(e);for(let e of v)t.add(e);S(e,t),v.clear()},C=e=>{let t=x();return t?(A(t),w(t).has(e)):v.has(e)},b=new Map;function k(e){return b.get(e)}function E(){v.clear(),b.clear();let e=x();if(e)try{localStorage.removeItem(y+e)}catch{}}function I(e,t){let r=void 0!==t,i=t?.variant,n=(0,a.useContext)($);(0,a.useEffect)(()=>{if(!s.default||!n||C(e)||r&&void 0===i)return;let{client:t}=n;if(!t)return;let a=()=>{if(!C(e)){(e=>{let t=x();if(!t)return v.add(e);A(t);let r=w(t);r.add(e),S(t,r)})(e),void 0!==i&&b.set(e,i);try{t.exposure(e)}catch(e){g.error("Failed to track exposure:",e)}}};window.mParticle?.isInitialized?.()?a():window.mParticle?.ready?.(a)},[n,e,r,i])}let _="client-a74nh7wdmymfO9eOcl5awe1cgB30BDRV",P="production"!==t.default.env.VERCEL_TARGET_ENV,$=(0,a.createContext)(null),D=({children:e,scriptSrc:t})=>{let f,h,g=(f=(0,o.useEventAttributes)(),h=(0,n.useAtomValue)(l.isWebViewOnlyAtom),(0,a.useCallback)((e,t={})=>{if(h)return void console.debug("Skipping enrolled-in-experiment in webview mode");if(!window.mParticle?.isInitialized?.())return void console.warn("MParticle is not initialized");if(!e)return void console.warn("No exposure data provided to trackEnrolledInExperiment");if(!e.experiment_key)return void console.debug(`[Experiment] Skipping exposure tracking for ${e.flag_key} - no experiment_key (feature flag only)`);try{let r={...f,newVariant:e.variant||"",newExperiment:e.experiment_key,newExperimentReceivedAt:Date.now()};window.mParticle?.logEvent?.("enrolled-in-experiment",window.mParticle?.EventType?.Other,r,t),console.debug(`MParticle: Event tracked - enrolled-in-experiment for ${e.flag_key||"unknown"}:${e.variant}`)}catch(e){console.error("MParticle: Failed to track event",e)}},[f,h])),y=(0,n.useSetAtom)(c.experimentJoinListAtom),{user:v}=(0,u.useUser)(),[x,w]=(0,a.useState)(!1),[S,A]=(0,a.useState)(!1),[,C]=(0,a.useState)(0),b=(0,a.useRef)(void 0),I=(0,a.useRef)(void 0);b.current=v.userID||void 0,I.current=v.anonId||void 0;let D=(0,a.useRef)(new Set),L=(0,a.useRef)({}),j=function(e,t){let r=(0,a.useRef)(null),[i,n]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(!i&&s.default&&_&&t){if(!window.Experiment)return void console.error("Amplitude Experiment SDK not loaded. Script may still be loading.");try{r.current=window.Experiment.initialize(_,{debug:P,fetchTimeoutMillis:5e3,retryFetchOnFailure:!0,fetchOnStart:!1,automaticExposureTracking:!1,exposureTrackingProvider:{track:t=>{try{e(t),P&&console.debug("[Experiment] Exposure tracked:",t)}catch(e){console.error("[Experiment] Failed to track exposure:",e)}}},source:"localStorage"}),n(!0),P&&console.debug("[Experiment] SDK initialized (will fetch from API)")}catch(e){console.error("Failed to initialize Amplitude Experiment SDK:",e)}}},[i,t,e]),r.current}((0,a.useCallback)(e=>{let t=k(e.flag_key),r=void 0!==t?{...e,variant:t}:e,a=`${r.flag_key}::${r.variant??""}`;if(D.current.has(a))return;D.current.add(a);let[i]=JSON.parse(JSON.stringify(Object.entries({[r.flag_key]:{key:r.variant}}).filter(([,e])=>!!e?.key).map(([e,t])=>{let r=t.key??"",a=Math.floor(Date.now()/1e3);return`${e},${r},${a}`})));i&&(L.current={...L.current,[r.flag_key]:i},y(JSON.stringify(Object.values(L.current)))),g(r),function({exposure:e,userId:t,deviceId:r}){if(!e.experiment_key){p&&console.debug(`[Experiment] Skipping Amplitude HTTP exposure for ${e.flag_key} — no experiment_key (feature flag only)`);return}if(!t&&!r){p&&console.debug("[Experiment] Skipping Amplitude HTTP exposure — no user identity");return}let a=`${e.flag_key}::${e.variant??""}`;if(m.has(a)){p&&console.debug(`[Experiment] Skipping duplicate Amplitude HTTP exposure: ${a}`);return}m.add(a);let i={api_key:"bb1117981ed2a95dc4fa64b75661d681",events:[{event_type:"$exposure",user_id:t,device_id:r,ip:"$remote",event_properties:{flag_key:e.flag_key,variant:e.variant,experiment_key:e.experiment_key,platform:"web",app_name:"wx-next-web",environment:p?"dev":"prod",experimentation_platform:"amplitude_experiment"}}]};(async()=>{let{data:t,error:r}=await (0,d.tryCatch)(fetch("https://api2.amplitude.com/2/httpapi",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i),keepalive:!0}));return r?console.error("[Experiment] Failed to send exposure to Amplitude HTTP API:",r):t&&!t.ok?console.error(`[Experiment] Amplitude HTTP API returned ${t.status}`):p&&console.debug("[Experiment] Amplitude HTTP exposure sent:",{flag_key:e.flag_key,variant:e.variant})})()}({exposure:r,userId:b.current,deviceId:I.current})},[g,y]),x);return(0,a.useEffect)(()=>{(async()=>{if(!j)return;let e=v.anonId;if(!e&&!v.userID){P&&console.debug("[Experiment] No user identifier available"),A(!0);return}let t={device_id:e,...v.userID?{user_id:v.userID}:{},user_properties:{}};P&&console.debug("[Experiment] Fetching experiments from API for user:",t);try{await j.fetch(t)}catch(e){console.error("[Experiment] Failed to fetch experiments:",e)}finally{A(!0)}})()},[j,v.anonId,v.userID]),(0,a.useEffect)(()=>{D.current.clear(),m.clear(),E(),L.current={},y(null),C(e=>e+1)},[v.userID,y]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.default,{src:t,strategy:"afterInteractive",onLoad:()=>{w(!0),P&&console.debug("Amplitude Experiment script loaded")},onError:e=>{console.error("Failed to load Amplitude Experiment script:",e)}}),(0,r.jsx)($.Provider,{value:{client:j,variant:(e,t)=>{if(!j)return t;let r=j.variant(e,t);return P&&console.debug("[Experiment] Current Variant:",r),r},fetch:e=>{if(!j)return Promise.resolve();if(!e){let e=v.anonId;if(e||v.userID){let t={device_id:e,...v.userID?{user_id:v.userID}:{},user_properties:{}};return j.fetch(t)}}return j.fetch(e)},isFetchComplete:S},children:e})]})},L=()=>{let e=(0,a.useContext)($);if(!e)throw Error("useExperimentContext must be used within an AmplitudeExperimentProvider");return e},j=D},5397,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["showAdminHeaderAtom",0,t])},37423,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["dprSdkIsInitializedAtom",0,t])},436028,e=>{"use strict";e.s(["hasLength",0,e=>Array.isArray(e)&&e.length>0])},458001,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["cscCountryCodeAtom",0,t])},49893,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["adsKillswitchAtom",0,t])},21121,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["showVelvetcakeModuleAtom",0,t])},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}])},935807,e=>{"use strict";function t(e,r=[],i=!1,s="US",n){let o,l=r.find(t=>t.placeID===e.placeId);if(l&&i){let t=l.userTag||l.name;if(t&&"Other"!==t){let r=e.displayName,i=a(e,s,""),n="address"===e.type?e.address:void 0;if(t!==r&&t!==i&&t!==n)return t}}if(e?.disputedCountries)o=e.displayName||"";else{switch(e?.type){case"address":o=e?.address?.split(",")[0]?.trim()||"";break;case"city":o=e?.locale?.locale2||"";break;case"locality":o=e?.locale?.locale3||"";break;case"neighborhood":o=e?.locale?.locale4||"";break;case"airport":o=e?.airportName||"";break;case"postal":{let t=e?.locale?.locale4||e?.locale?.locale3||e?.locale?.locale2||"",r=e?.postalCode||"";o=n?`${t} ${r}`.trim():`${t}`.trim();break}default:o=e?.displayName||""}0===o.length&&(o=e?.displayName||"")}return o}function r(e,t=[],i=!1,s="US",n){let o,l=t.find(t=>t.placeID===e.placeId);if(l&&i){let t=l.userTag||l.name;if(t&&"Other"!==t){let r=e.displayName,i=a(e,s,"");if(t!==r&&t!==i)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||"",a=e?.postalCode||"";return[e?.locale?.locale4||e?.locale?.locale3||e?.locale?.locale2||"",`${t} ${a}`.trim(),r].filter(Boolean).join(", ")}default:{let t=e?.adminDistrict||"";return[e?.locale?.locale2||"",t,r].filter(Boolean).join(", ")}}}(e,s)}}if(e?.disputedCountries)o=e?.displayName||"";else{let t=s===e?.countryCode?"":e?.country||"",r=e?.adminDistrict||"",a=e?.postalCode||"",i=e.city||"";switch(e?.type){case"address":o=[i,r,t].filter(Boolean).join(", ");break;case"city":default:o=[r,t].filter(Boolean).join(", ");break;case"locality":o=[e?.locale?.locale2||"",r,t].filter(Boolean).join(", ");break;case"neighborhood":o=[e?.locale?.locale3||e?.locale?.locale2||"",r,t].filter(Boolean).join(", ");break;case"postal":{let i=r||e?.locale?.locale2||"";o=[n?`${i} ${a}`.trim():i,t].filter(Boolean).join(", ")}}}return o}function a(e,t,r){let{displayName:a,adminDistrictCode:i,adminDistrict:s,countryCode:n,disputedArea:o,country:l}=e,c=[];return a&&c.push(a),"IL"!==t&&(i?c.push(i):s&&c.push(s)),n!==t&&!1===o&&l&&c.push(l),c.join(r)}e.s(["getLocationContext",0,r,"getLocationName",0,t,"getLocationPresentationName",0,function(e,a=[],i=!1,s="US"){let n=t(e,a,i,s,!1),o=r(e,a,i,s,!0),l=e?.separator?e?.separator:n&&o?", ":"";return`${n}${l}${o}`.trim()}])},718043,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getCMSCollectionsUrlConfig=function({collectionId:e,locale:t="en_US"}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/collections/${t}/${e}`}},r.getCMSAssetByIDUrlConfig=function({language:e,assetId:t}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/a/${e}/${t}`}},r.getCMSOrderedCollectionsUrlConfig=function({collectionId:e,language:t="en_US"}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/ordered-collections/${t}/${e}`}},r.getCMSOrderedListUrlConfig=function({collectionId:e,language:t,collectionType:r}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/orderedlist/${t}/${r}/${e}`}},r.getCMSAssetsUrlConfig=function({language:e="en_US",query:t={},skip:r=0,limit:s=10,sort:n="-publishdate"}){let o={q:Object.keys(t).reduce((e,r)=>{let a=t[r];return a instanceof Array?[...e,...a.map(e=>i(r,e))]:[...e,i(r,a)]},[]).join(";"),pg:`${r},${s}`,format:"json",sort:n},l=(0,a.queryStringToSearchParams)(o).toString();return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/assets/${e}`,search:`?${l}`}},r.getCMSAssetsRawQueryUrlConfig=function({language:e="en_US",query:t="",skip:r=0,limit:i=10,sort:s="-publishdate"}){let n={q:t,pg:`${r},${i}`,format:"json",sort:s},o=(0,a.queryStringToSearchParams)(n).toString();return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/assets/${e}`,search:`?${o}`}},r.getCMSAssetsSlideshowUrlConfig=function({offset:e=0,assetId:t,limit:r=500}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/assets/slideshow/${t}/${e},${r}`}},r.getCMSQuickNavUrlConfig=function(){return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/settings/en_US/web/quick_nav"}};let a=e.r(678651);function i(e,t){let r=`'${t.$in}'`;return t.$in instanceof Array&&(r=t.$in.map(e=>`'${e}'`).join(",")),`${e}:$in(${r})`}},427977,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getQuickNav=void 0;let a=e.r(414655),i=e.r(678651),s=e.r(718043);r.getQuickNav=async()=>{let e=(0,i.urlFrom)((0,s.getCMSQuickNavUrlConfig)()),t=await fetch(e,{headers:{"Accept-Encoding":"gzip"}});return await (0,a.handleFetchResponse)(t)}},527207,e=>{"use strict";var t=e.i(699173),r=e.i(592121),a=e.i(747961);let i=(0,r.forwardRef)(({title:e,titleId:r,desc:a,descId:i,...s},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":r,"aria-describedby":i,...s,children:[a?(0,t.jsx)("desc",{id:i,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Chevron Up"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M8.471 5.7a.667.667 0 0 0-.942 0L3.35 9.88a.495.495 0 1 0 .7.7L8 6.629l3.95 3.95a.495.495 0 0 0 .7-.7z"})]})),s=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:i,...e}));s.displayName="ChevronUp",e.s(["ChevronUp",0,s])},616448,e=>{"use strict";var t=e.i(699173),r=e.i(592121),a=e.i(747961);let i=(0,r.forwardRef)(({title:e,titleId:r,desc:a,descId:i,...s},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":r,"aria-describedby":i,...s,children:[a?(0,t.jsx)("desc",{id:i,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Current Location"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"m7.885 8.115 1.593 3.983 3.186-8.763-8.762 3.186zM2.329 6.029l11-4a.5.5 0 0 1 .641.641l-4 11a.5.5 0 0 1-.462.33H9.5a.5.5 0 0 1-.464-.315l-1.92-4.8-4.801-1.921a.5.5 0 0 1 .014-.935m7.635 7.285",clipRule:"evenodd"})]})),s=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:i,...e}));s.displayName="CurrentLocation",e.s(["CurrentLocation",0,s])},525936,586754,e=>{"use strict";var t=e.i(650130),r=e.i(343277);e.i(304158);var a=e.i(485737),i=e.i(150137),s=e.i(381477),n=e.i(726249),o=e.i(919101),l=e.i(546446),c=e.i(310847);let u=(e,t)=>{let a=(0,l.useAtomValue)(c.wxuUserRecentAddressesAtom),{data:i}=(0,s.default)(e?(0,n.pointKey)({kind:"placeId",value:e},t):null,()=>e?(0,r.getLocationPointByPlaceId)(e,t):null,{revalidateOnFocus:!1,dedupingInterval:3e5});return i?.location?(0,o.getAddressForLocationData)(i.location,a):i?.location};e.s(["useGetLocationById",0,u],586754);var d=e.i(942400),p=e.i(304116),m=e.i(520938),f=e.i(132084),h=e.i(831826),g=e.i(646341),y=e.i(553329),v=e.i(695881),x=e.i(592121),w=e.i(961123);let S=(0,v.createLogger)("useUpdatedPathname");e.s(["default",0,(e,s)=>{let n=s?.defer??!1,o=s?.targetGeocode,c=s?.featureId?.startsWith("address.")?void 0:s?.featureId,v=s?.canonicalID,A=c??e,C=(0,w.useParams)(),b=C?.locId,k=C?.canonicalLocation,E=(0,w.usePathname)(),I=(0,d.usePageLocale)(),_=(0,l.useAtomValue)(i.preciseGeocodeAtom),P=(0,l.useAtomValue)(a.geoipGeocode),$=_||P,D=!!b||!!k?.length||E.includes(m.LOC_ID_SEGMENT),L=u(n||o?null:e,I),j=o??(L?`${L.latitude},${L.longitude}`:void 0),O=(0,x.useMemo)(()=>(0,h.getPartnerByPattern)((0,g.getCookie)("partner")?.toString()??"")===f.Partner.SAMSUNG,[]),N=(0,x.useCallback)(r=>{let a=(0,m.swapLocationOnCurrentPage)({pathname:E,locId:b,canonicalLocation:k,locale:I,identifier:A,featureId:c,placeId:e,canonicalID:v,skipCanonical:O});if(null!==a)return a;let i=t=>(0,p.buildLocationPageHref)({pageType:t,locale:I,canonicalID:v,featureId:c,placeId:e,skipCanonical:O}),s=i("today");if(O||!$||!r)return s;let n=function(e,r){let[a,i]=e.split(",").map(e=>parseFloat(e??"")),[s,n]=r.split(",").map(e=>parseFloat(e??""));return[a,i,s,n].some(e=>Number.isNaN(e))?null:.621371*(0,t.calculateDistance)(a,i,s,n)}($,r);return null===n?s:n>=250?i("tenday"):n>=100?i("hourbyhour"):s},[b,k,E,A,c,e,v,I,O,$]);return{path:N(j),isGeolocationLoading:!1,resolvePath:(0,x.useCallback)(async()=>{if(D)return N(void 0);let{data:t,error:a}=await (0,y.tryCatch)((0,r.getLocationPointByPlaceId)(e,I));return a||!t?.location?(S.warn("resolvePath: point fetch failed, falling back to Today",a),N(void 0)):N(`${t.location.latitude},${t.location.longitude}`)},[D,e,I,N])}}],525936)},292980,e=>{"use strict";var t=e.i(546446),r=e.i(592121),a=e.i(310847);e.s(["useRecentLocationDetails",0,function(){let[e,i]=(0,t.useAtom)(a.wxuUserRecentLocationsDataAtom),s=e??{},n=(0,r.useCallback)(e=>s[e],[s]);return{details:s,resolveDetails:n,recordDetails:(0,r.useCallback)((e,t)=>{e&&i(r=>{let a=r??{},i=a[e];return i&&i.name===t.name&&i.nameContext===t.nameContext&&i.geocode===t.geocode&&i.featureId===t.featureId&&i.type===t.type&&i.presentationName===t.presentationName&&i.displayName===t.displayName&&i.address===t.address?a:{...a,[e]:t}})},[i])}}])},296990,e=>{"use strict";var t=e.i(699173),r=e.i(592121),a=e.i(747961);let i=(0,r.forwardRef)(({title:e,titleId:r,desc:a,descId:i,...s},n)=>(0,t.jsxs)("svg",{fill:"currentColor",viewBox:"0 0 24 24",ref:n,"aria-labelledby":r,"aria-describedby":i,...s,children:[a?(0,t.jsx)("desc",{id:i,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Globe"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{d:"M14.227 8.016h-.141c-.047-.023-.352.305-.352.305s-.234.094-.258.141c0 .047-.07 0-.023.07.023.07.164.023.234-.07.094-.07.258-.117.328-.164.07-.07.094-.047.234-.117.141-.047.234-.07.188-.141-.023-.023-.07-.023-.117-.023h-.117zm-1.243-.375c-.117 0-.258.047-.328.164-.047.117 0 .305-.023.398s-.047.305.07.328c.141.023.141-.188.117-.234s-.023-.281.047-.328c.047-.047.117-.164.258-.164.141-.023.258.094.234.211s.023.234.07.234.211-.094.164-.164.047-.352.047-.258.117.164.188.141-.07-.258-.164-.258c-.094-.023-.281-.023-.328 0-.023 0-.094 0-.164-.023s-.141-.023-.188-.023h-.023zm-.679-.305c-.164.07-.234.047-.234.141 0 .07.141.07.211.047a.7.7 0 0 1 .258-.07c.047-.023.023.07.141.07s.281.047.305.023.164-.164.047-.188c-.094-.023-.234-.117-.328-.188-.023-.023-.023-.023-.047-.023-.094 0-.234.141-.398.188zM6.68 7.242c.07.047.211.047.211.117s.047.234.117.211.07-.164.023-.211-.258-.211-.305-.211-.117-.07-.164-.094h-.023c-.07 0 .07.164.117.211zM2.953 5.555c-.141.094-.211.047-.281.117s-.281.141-.211-.023.07-.188-.047-.141-.141.141-.141.211-.188.164-.188.164.164.023.234 0 .023.141-.047.188-.164.141-.281.117-.117-.117-.188-.141c-.047 0-.094.023-.188.07A11.9 11.9 0 0 0 .045 12c0 6.563 5.344 11.93 11.93 11.906.984 0 1.945-.141 2.859-.375a.174.174 0 0 1-.117-.211c.047-.141-.07-.141-.141-.211-.07-.094.094-.141.07-.188s-.141-.023-.164-.117.094-.258.117-.281c0-.047-.094-.141-.117-.188 0-.047.047-.117.164-.234.094-.094.164-.234.164-.281s-.07-.164-.07-.281c0-.094.07-.141.094-.305 0-.141-.094-.117-.094-.211 0-.117.141-.07.117-.211-.023-.117.07-.211.117-.281s.07-.211.141-.305c.047-.094-.047-.305-.047-.352s.164-.094.094-.188c-.094-.07.023-.141.117-.211.07-.07-.023-.258.047-.516.047-.234.07-.656.07-.703s0-.211-.047-.305c-.07-.117-.141-.188-.234-.234s-.211-.164-.281-.188c-.07 0-.398-.117-.398-.328 0-.188-.234-.328-.258-.469s-.211-.422-.234-.563c0-.117-.305-.164-.328-.328-.047-.164.141-.258.164-.352s-.094-.305-.117-.375c0-.047.211-.258.281-.305s.141-.211.188-.211.047-.141.094-.305c.047-.141-.023-.352-.07-.375s-.094-.188-.141-.258c-.07-.047-.188-.023-.188-.023s.023.141-.094.188c-.141.047-.164-.023-.188-.047-.047-.047-.188-.047-.258-.117s-.164-.164-.258-.188c-.07-.047-.211-.07-.188-.234 0-.164-.164-.258-.234-.281-.047-.023-.164-.094-.234-.047-.047.023-.094 0-.141-.023s-.094-.047-.141-.047c-.094 0-.281-.164-.352-.234s-.117-.164-.234-.164-.141.047-.211.141c-.094.094-.211-.07-.234-.117-.047-.047-.141-.047-.281-.047-.164 0-.258-.211-.305-.234l-.516-.258c-.094-.047-.188-.258-.141-.305s-.07-.234-.07-.234-.188-.211-.258-.211-.281-.375-.398-.492-.398-.352-.445-.469-.07-.305-.188-.211c-.141.094-.023.188.117.305s.117.211.305.352.117.305.188.352c.07.07.352.234.234.328-.117.117-.234-.141-.305-.141-.047-.023-.164-.047-.164-.117.023-.07-.094-.141-.188-.258s-.141-.047-.258-.047 0-.141.047-.211c.07-.07-.07-.164-.141-.188s-.188-.328-.305-.516-.188-.281-.305-.258-.164-.141-.258-.188c-.07-.047-.211-.305-.328-.445-.141-.141-.258-.398-.234-.539s.047-.516.047-.609-.07-.328-.07-.352c0-.047-.07-.117-.117-.117-.047-.023-.211-.211-.328-.211s-.188-.141-.164-.234c.047-.094-.117-.258-.164-.258-.07 0-.164-.164-.211-.258s-.141-.094-.117-.047 0 .141.047.164c.07.023.117.234.07.281-.047.023-.188-.094-.305-.141-.141-.07-.07-.328-.07-.398s-.188-.141-.281-.141c-.07 0-.164.023-.164-.164 0-.164-.258-.258-.328-.258-.094 0-.516-.164-.656-.164s-.375-.117-.445-.07-.234-.094-.305-.094-.07.047-.234.141zm11.203 6.703c.117-.023.211.188.047.211h-.023c-.117 0-.141-.211-.023-.234zm1.782-.141c.117-.023.211.164.047.211h-.023c-.117 0-.141-.211-.023-.234zm-.774.164c-.07-.047-.117-.094-.234-.094-.07 0-.234-.023-.234-.023s.234-.211.328-.211c.094-.023.211-.047.305-.023.117.023.281.094.281.281-.023.164-.094.023-.141.023-.023 0-.141.07-.234.07h-.047zm-2.062-.773s.328-.094.398-.094.281 0 .398.094.305.211.398.188.258.141.234.188-.234.047-.305-.023c-.07-.047-.305-.164-.375-.234-.047-.07-.352-.047-.492-.047h-.164c-.07 0-.141-.023-.117-.094zm1.007-.375c.117-.023.211.117.047.141h-.023c-.117 0-.141-.117-.023-.141zm-.375-5.86c.117-.047.164.07.094.117h-.047c-.094 0-.164-.07-.047-.117m-.515-.093c.094-.094.234 0 .188.047 0 .023-.023.023-.07.023-.07 0-.164-.047-.141-.07zm-2.578-1.711c.07-.023.305-.047.352 0 .07.047.117.234.07.258-.047 0-.023.07-.188.164-.164.07-.211-.164-.234-.211 0-.023-.07-.023-.141 0-.047 0-.094.023-.141.023-.094 0-.141-.141-.07-.188.047-.047.141-.023.211-.023h.141zm.656.094c-.023-.07.258-.188.328-.211s.141.047.234.07c.094 0 .07.141 0 .164-.07 0-.258.023-.375.047h-.047c-.094 0-.141-.047-.141-.047zm-.024-.375c.047-.117.281-.07.305.047.023.047-.047.07-.094.07-.094 0-.234-.047-.211-.094zm-.539-.211c.164-.023.234.07.234.117s-.117.188-.234.164h-.07c-.047 0-.047 0-.094-.07-.047-.094-.328-.047-.375-.047s-.094.164-.164.188-.117-.07-.07-.07c.023-.023-.047-.211.023-.258.047-.047.281-.047.469-.023zm-3.468-.071c.047 0 .398-.117.586-.141s.258.07.281.117.445.07.445.07.211.117.234.141c.047.023.141 0 .188-.047s.07-.117.211-.141.141.117.234.141c.07.023.117 0 .188-.047.094-.047.141.047.141.047s-.047.164-.047.234c0 .047-.094.07-.117.117s-.305 0-.422-.023c-.094-.023-.328-.023-.398 0s-.258.023-.328 0-.07-.141-.141-.188c-.047-.047-.188.07-.258.094s-.188-.117-.164-.188c0-.07-.258-.023-.305 0s-.234.023-.352.023-.211 0-.188-.047c.023-.07.117-.07.188-.07s-.047-.117 0-.117zm4.922.399s-.258-.07-.305-.164c-.07-.094-.305-.094-.422-.141s-.281-.117-.375-.164-.047-.188-.047-.164.188.07.305.094c.234.047.211.047.305.07s.281.164.375.211c.07.047.164.117.258.117h1.102c.07 0 .422.07.398.094s-.047.094-.211.094-.469-.023-.68-.047-.398.023-.398.023l-.281-.023zm-3.61-.586c.164-.047.305-.164.422-.164s.047.188.047.234c.023.047-.117.07-.188.047-.047-.047-.234.023-.305.023s-.094-.094 0-.141zm1.195-.117c.023-.117.141-.094.258-.117.117 0 .281 0 .422.047.164.047.141.047.211.117s.094.188.023.188-.117-.023-.258-.047c-.117-.023-.094-.047-.117-.094s-.258 0-.352 0-.188-.047-.188-.117zM3.234 3.961c.188.023.469.023.516.023s.328.094.492.047.258.023.305.047.07.023.141.094.141.023.234-.047c.094-.047.07-.117.07-.117l.094-.023c.07-.023.141.023.352.047.234.023.164-.047.328-.094a.5.5 0 0 1 .258.023c.047.023.094.047.117.023.047-.023.117-.117.164-.07s.117.164.117.164.164-.141.211-.141.211.047.305.047c.094-.023.445-.023.539.047.07.07.281.047.398.117s.211-.047.164-.07-.188-.141-.188-.141-.211-.234-.234-.281-.07-.047-.117.07-.258.117-.492.117-.07-.117-.328-.117c-.258-.023-.164-.117-.07-.117.07 0 .141-.164.164-.258s.117-.07.305-.07h.422c.094.023.141 0 .188-.023s.094-.047.188-.023c.188.023.094.047.188.117.117.07.164.047.328.117.141.07.094.07.164.07.07.023.281-.023.422-.047s.234-.023.305.047.047.164.141.234-.047-.234-.047-.352.188-.023.305-.023.258-.047.281.023c.023.047-.188.141-.07.258s.211.164.305.164.352.023.234.164-.398.141-.492.141-.258.047-.211.141c.047.07.258.047.398.047s.609.047.727 0 .094-.188-.047-.234-.023-.117.117-.094c.07.023.117 0 .164 0s.094-.023.07 0c-.023.047.023.141.023.234q0 .175.141.141c.141-.034.117-.047.211-.047.094-.023.047-.234-.023-.352-.047-.117-.094-.188-.07-.258 0-.07.164-.07.234-.023.07.07.188.211.188.211s.164.094.211.211.07.07.188.023c.117-.07.141-.047.234.023s.023.211.023.234c0 .047.117 0 .141-.07 0-.094.141-.094.188-.117.07-.023.07-.188.07-.188s-.164-.047-.352-.023c-.164.023-.234-.023-.375-.117s-.047-.164-.117-.258.211-.141.398-.234c.164-.07.328-.023.305.164-.023.211-.047.164.141.141.164-.047-.047-.211.07-.234a3 3 0 0 1 .398-.047c.094.023.516-.047.633-.047s.281.094.398.164c.141.07.469.164.539.211.094.047.633.117.703.141.047.023.047.188.117.328.047.141.188.047.258.047.047 0 .234.094.281.164s.445.117.445.117-.117.117-.141.164c-.047.047-.164.07-.211.117-.094.047-.164-.023-.281-.07-.094-.07-.281-.117-.328-.094s0 .07.023.117c.047.047.211.094.328.188.141.07.094.164.117.258 0 .117-.094-.047-.234-.07s-.141.117-.141.117-.164-.023-.234-.023c-.094 0 0 0-.164-.117-.07-.07-.117-.023-.141 0s-.023.047-.07.023c-.094-.047-.164-.141-.188-.117s-.07-.023-.117-.047-.094-.07-.141-.047h-.211c-.117 0-.234-.023-.281 0-.07.023-.141.023-.211.047-.094.023-.094-.188-.07-.258.047-.07.141-.07.328-.047.164.047.188 0 .234-.07s.07-.141.258-.188 0-.094-.07-.117c-.047-.023-.117-.07-.164 0s-.141.164-.141.164-.094 0-.258-.023-.047-.07.023-.094c.047-.023.141-.188.07-.234s-.094-.07-.211-.047-.047-.094-.117-.141c-.094-.047-.047.023-.047.07s-.117.047-.117.047-.188-.023-.258 0-.188.07-.141.117.164.047.211.164-.164.141-.211.164c-.047 0-.188.07-.188.07s-.164-.047-.305-.047-.164.023-.141.07.094.023.141.023.047.07.141.047c.117-.023.094-.07.211.047s.211.094.398.188-.023.211-.117.211-.094-.07-.141-.164c-.07-.07-.281.023-.281.023s-.188.094-.281.094-.164-.023-.047-.117-.141-.094-.141-.234-.047.141-.047.211c0 .047-.047.047-.117.023h-.211c-.234.023-.188.117-.492.305-.281.188-.352.234-.328.398s.094.117.211.164c.117.023.07.234.188.211.094-.023.164-.07.352.023s.281.117.516.164.375.117.492.07c.141-.023.188 0 .188.117 0 .094.094.117.07.234 0 .117.141-.117.141-.117s.07.211.023.234c-.07.023.023.141.07.141h.07c.047 0 .117.023.164-.023.07-.07-.047-.258-.047-.352 0-.07-.07-.117-.117-.211-.047-.07.094-.094.164-.023.047.07.141.023.234-.047s.094-.188.094-.188-.164-.211-.281-.258-.047-.07.07-.094 0-.07.023-.211c.047-.141.047-.234.117-.234.047 0 .305-.047.492-.023s.305.164.422.164c.141 0 .352.047.398.117s-.164.07-.047.188c.094.117.094.094.188.141s.211.023.328-.141c.094-.164.164-.164.211-.117.047.023.305.328.375.398s.188.211.211.281.188.07.258.07c.047 0 .258.141.281.234 0 .094.047.117.234.141.188.047 0 .188-.023.281-.047.07-.047.117-.117.211-.023.047-.023.047 0 .047s.047-.023.07 0c.07.047.094.094.188.07s.141 0 .188.094c.047.07.117.141.141.211s0 .164-.07.117c-.07-.07-.234-.023-.234-.023s-.094.07-.117.047c-.023-.047-.07-.094-.188-.07a.2.2 0 0 1-.164 0h-.117c-.094.023-.141-.047-.07-.117.07-.047.07-.258.211-.328s.094-.211 0-.211-.141.117-.188.141c-.07.023-.141.023-.258.094-.094.07-.352.047-.234.07.094.023-.164.141-.211.141-.094 0-.07-.164-.07-.234s-.117.047-.117.047-.211-.117-.281-.047-.188.117-.305.211c-.094.07-.328.211-.328.211s.094-.047.234-.07c.164-.047.141-.023.281-.094s.258-.094.375.023c.094.117-.023.188-.023.188s.047.094.117.117c.047.023.047-.023.141-.07s.047.117.07.164c.047.047.117.047.188 0 .07-.07.094-.117.141-.07s.07.141.117.234-.258.117-.328.141c-.07 0-.305.07-.352.07-.047.023-.164.141-.281.141s-.094-.164-.117-.258c0-.094-.117.023-.141.047-.023.047-.141.023-.234.047-.094 0-.258.094-.258.211s.094.164.07.211-.258.094-.352.07-.234.047-.188.094.047.141-.07.117c-.094 0-.094.094-.07.164.047.07-.117.211-.141.141-.047-.047-.117-.07-.117 0s.023.141.117.258c.07.117-.164.164-.281.258-.094.07-.398.352-.539.398s-.141.234-.07.305c.094.07.141.352.188.445s-.023.352-.141.352c-.117-.023-.07-.164-.188-.211s-.188-.281-.211-.445c-.047-.164-.07-.07-.141-.023-.094.047-.164-.117-.188-.141s-.117 0-.211 0c-.07 0-.164.023-.234.023-.164-.023-.211.07-.211.094 0 .047-.023.164-.188.07-.141-.07-.164-.07-.328-.07-.141 0-.281 0-.305.047s-.164.164-.258.188-.281.164-.188.188c.07.023.07.211.023.328s-.047.305-.023.492.188.305.328.422.211.164.352.047.211-.047.234-.023c.047.023.141-.07.117-.188-.047-.117.047-.234.188-.211.047 0 .117 0 .188-.023.07 0 .141-.023.188-.023.117 0 .141.258 0 .375-.164.117-.07.281-.094.398s-.141.141 0 .141.094.023.188.047.164-.07.281-.094c.094 0 .328.211.281.305a1 1 0 0 0-.07.469c.047.164.07.164.117.234.023.047.141.164.258.117s.234-.094.281-.141.305.094.281.141c-.023.023.094.07.164.023.094-.023.117-.094.188-.211a.7.7 0 0 1 .281-.211c.047 0 .211-.164.328-.141.094.023-.047.164-.047.234 0 .094 0 .305.047.328.07 0 .047-.164.117-.281.07-.141.211-.188.281-.188s.117.258.211.211c.094-.07.281-.047.328.023.023.07.07.117.07.117s.07-.047.07-.117c0-.094.211-.141.352-.07s.094.094.164.117c.07 0 .141-.164.164-.188.047-.023 0 .211-.094.328-.117.094.07.07.094.117.023.023.047.023.094 0 .047 0 .117 0 .141.023.047.047.164.094.234.258.094.117.211.094.375.07s.375.07.539.258c.164.164.117.305.234.305s.141.141.141.188-.234.164-.352.188c-.141 0-.141.141.07.117.211-.047.117-.117.258-.141.141-.047.258.047.164.211-.141.164-.375.164-.164.188s.094-.047.211-.188c.117-.164.117-.117.188-.117.094 0 .258.047.328.094s.234.141.352.188c.117.07.258.047.328.023s.328.07.398.188c.07.094.258.117.375.164.094.047.234.188.234.328.023.141-.141.422-.141.492-.023.047-.234.305-.422.469s-.07.352-.07.422c.023.07-.141.375-.094.445s-.047.211-.141.328c-.094.094-.141.258-.188.352-.07.094-.234.07-.398.117-.164.023-.234.07-.234.07s-.305.117-.445.234c-.164.117.047.305-.023.445s-.164.141-.234.305c-.047.117-.094.094-.117.07-.023 0-.047-.023-.07 0-.07.047-.117.141-.117.258-.023.094-.141.211-.328.375-.164.164-.281.141-.469.07-.188-.047-.164-.516-.188-.445s-.023.305.023.352c.023.047.117.211.164.234.07.047.047.117 0 .164-.047.07-.211.305-.258.328s-.469.07-.563.023c-.07-.047-.117.094-.117.188.023.094.094.164-.07.141s-.352-.117-.352-.047.047.211.117.211.164-.047.117.047-.141.164-.211.211c-.047.047-.117.164-.258.258s-.141.141-.117.188.234.023.281.047-.047.211-.094.258-.281.234-.375.281-.094.211-.047.328c4.453-1.406 7.781-5.344 8.273-10.125-.117-.094-.047-.211-.07-.328-.023-.141-.164-.188-.094-.211s.047-.094.234-.281c0-.141.023-.281.023-.422v-.094c-.047-.094-.117-.258-.023-.422a11.77 11.77 0 0 0-2.766-7.125 6 6 0 0 1-.398.047c-.094 0-.234.211-.258.258s-.328 0-.422 0-.188.117-.375.141c-.164.023-.094.141-.07.234 0 .094-.047.141-.141.117-.117-.023-.094.047-.117.117s.023.188-.094.281c-.094.07-.141.117-.258.094-.117 0-.117-.211-.141-.188-.047 0-.234.141-.281.07s-.281-.234-.375-.258c-.094-.047-.164-.188-.188-.258-.047-.07.117-.07.07-.07-.047-.023-.211-.047-.258-.094s-.141-.258-.164-.328c0-.07.141-.164.141-.211 0-.023-.141-.023-.188-.023s-.117-.141-.047-.281.211-.094.211-.094h.117c.07 0 .047.164.023.234s.047.07.094.094.07-.07.07-.117c0-.07-.117-.211-.188-.281-.047-.07-.234-.094-.258-.047s-.164.234-.211.188-.047-.445-.117-.563-.328-.141-.445-.211c-.094-.047-.492-.117-.563-.117-.023 0-.094 0-.141.023a.5.5 0 0 1-.258 0c-.094-.023-.094-.211-.094-.211s-.07.188-.094.234c-.047.047-.141.07-.188.047s-.164-.234-.281-.258h-.117c-.047 0-.094 0-.164-.047-.141-.117.258-.094.281-.094s.328-.07.352-.141c0-.094.094-.188.234-.141.141.023.211-.094.188-.211s.258-.234.305-.164c.047.047.281 0 .211-.117s.281-.211.609-.234.422.023.492.07.281.047.398-.023A11.9 11.9 0 0 0 11.992.304c-3.469 0-6.586 1.5-8.766 3.867z"})]})),s=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:i,...e}));s.displayName="Globe",e.s(["Globe",0,s])},357508,e=>{"use strict";var t=e.i(699173),r=e.i(592121),a=e.i(546446),i=e.i(632137),s=e.i(35137),n=e.i(121301);let o=(0,r.forwardRef)(({isImperial:e,isMetric:a,isHybrid:o,locale:l,LOCALE_DATA:c,handleUnitChange:u,handleLocaleChange:d,onClose:p},m)=>{let[f,h]=(0,r.useState)(!1);return(0,t.jsx)("div",{ref:m,className:(0,i.cn)("absolute top-full right-0 left-0 z-110 flex w-full flex-col bg-white","max-h-[calc(100vh-56px)] overflow-hidden border-b border-[#2524221A] md:max-h-[calc(100vh-73px)]"),children:f?(0,t.jsx)("div",{className:"flex min-h-0 flex-1 flex-col",children:(0,t.jsx)(s.default,{locale:l,LOCALE_DATA:c,handleLocaleChange:d,onBack:()=>h(!1),onClose:p})}):(0,t.jsx)("div",{className:"overflow-y-auto pt-2 pb-3",children:(0,t.jsx)(n.default,{isImperial:e,isMetric:a,isHybrid:o,locale:l,LOCALE_DATA:c,handleUnitChange:u,onOpenLocationLanguage:()=>h(!0)})})})});o.displayName="SettingsMenuContent";var l=e.i(674885),c=e.i(166763),u=e.i(646341),d=e.i(889753),p=e.i(617874),m=e.i(776169),f=e.i(314552),h=e.i(961123),g=e.i(537989),y=e.i(611540),v=e.i(436066);let x=new Set(["article","video","index"]);e.s(["default",0,function({open:e,onOpenChange:i}={}){let s=(0,a.useAtomValue)(v.settingsMenuOpenAtom),n=(0,a.useSetAtom)(v.settingsMenuOpenAtom),w=void 0!==e,S=w?e:s,A=(0,r.useCallback)(()=>{w?i?.(!1):n(!1)},[w,i,n]),C=(0,r.useRef)(null),b=(0,a.useAtomValue)(l.isImperialUnitsAtom),k=(0,a.useAtomValue)(l.isMetricUnitsAtom),E=(0,a.useAtomValue)(l.isHybridUnitsAtom),I=(0,h.useParams)(),_=I?.locale||"en-US",P=I?.locId,$=(0,a.useAtomValue)(g.pageIdAtom),{updatePreferences:D}=(0,m.usePreferences)(),L=(0,a.useAtomValue)(d.userPreferencesAtom);(0,r.useEffect)(()=>{let e=(0,u.getCookie)("unitOfMeasurement")?.toString();if(e){let t=(0,p.unitsSystemByCode)(e),r=t?.name,a=L?.unit;r&&r!==a&&D({unit:r})}},[D,L?.unit]);let j=async e=>{try{await D({unit:e})}catch(e){console.error("Failed to update unit preference:",e)}},O=async e=>{try{let t=(0,c.convertLocaleFormat)(e);if(await D({locale:t}),(0,u.setCookie)("sitePref",e,{domain:`.${window.location.hostname}`}),A(),$&&x.has($)){window.location.href=e===f.defaultLocale?"/":`/${e}`;return}let r=$?y.URLS[$]:void 0,a=r&&P?(0,y.interpolateUrl)(r,{locale:e,locId:P}):null;if(a){window.location.href=a;return}let i=_!==f.defaultLocale&&window.location.pathname.startsWith(`/${_}`)?window.location.pathname.slice(`/${_}`.length)||"/":window.location.pathname;window.location.href=e===f.defaultLocale?i:`/${e}${i}`}catch(e){console.error("Failed to update locale preference:",e)}};return((0,r.useEffect)(()=>{function e(e){if(!S)return;let t=e.target;C.current&&t&&!C.current.contains(t)&&!t.closest("[data-settings-menu-trigger]")&&A()}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[A,S]),S)?(0,t.jsx)(o,{ref:C,isImperial:b,isMetric:k,isHybrid:E,locale:_,LOCALE_DATA:c.LOCALE_DATA,handleUnitChange:j,handleLocaleChange:O,onClose:A}):null}],357508)}]);