(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,991511,e=>{"use strict";var t=e.i(539922),l=e.i(538107),a=e.i(475566);e.s(["useRehydrateAtoms",0,e=>{(0,l.useHydrateAtoms)(e);let s=(0,a.useStore)(),n=(0,t.useRef)(e);n.current=e,(0,t.useEffect)(()=>{for(let[e,t]of n.current)s.get(e)!==t&&s.set(e,t)})}])},797770,e=>{"use strict";let t=(0,e.i(751931).atom)("");e.s(["adsMetricsUnitAndZoneAtom",0,t])},235577,e=>{"use strict";var t=e.i(648198),l=e.i(523084),a=e.i(47524),s=e.i(632137),n=e.i(877957);e.s(["ScrollButton",0,function({direction:e,onClick:i,hidden:r,size:o="default"}){let c="sm"===o,u=(0,s.cn)("text-current",c?"size-4":"size-6 transition-[width,height] duration-150 group-hover:size-7 group-active:size-6 group-active:duration-100");return(0,t.jsx)(n.Button,{type:"button",onClick:i,"aria-hidden":"true",tabIndex:-1,className:(0,s.cn)("group absolute top-1/2 z-10 flex -translate-y-1/2 cursor-pointer items-center justify-center rounded-full p-0 transition-all duration-150 ease-in-out active:duration-100","bg-transparent text-gray-900 hover:bg-gray-100 active:bg-gray-200",c?"size-8":"size-12","left"===e&&"left-1","right"===e&&"right-1",r&&"left"===e&&"-translate-x-[calc(100%+1.5rem)]",r&&"right"===e&&"translate-x-[calc(100%+1.5rem)]",r&&"pointer-events-none opacity-0"),children:"left"===e?(0,t.jsx)(l.ChevronLeft,{className:u}):(0,t.jsx)(a.ChevronRight,{className:u})})}])},457492,e=>{"use strict";var t=e.i(648198),l=e.i(147732),a=e.i(539922),s=e.i(632137),n=e.i(475566),i=e.i(663333),r=e.i(235577),o=e.i(240058);let c=(0,s.cn)("h-full rounded-3xl px-4 text-sm whitespace-nowrap transition-colors text-gray-900 font-bold","inline-flex items-center hover:bg-gray-100 active:bg-gray-200 focus-visible:outline-none focus-visible:bg-gray-100"),u=e=>{let{activeIndex:l,index:a,link:n}=e,i=l===a,r=(0,s.cn)(c,{"bg-gray-100 text-blue-500":i});if(e.onSelect){let{onSelect:l}=e;return(0,t.jsx)("button",{type:"button",onClick:()=>l(a,n),className:(0,s.cn)("cursor-pointer",r),"aria-current":i?"page":void 0,children:n.label})}let{basePath:u,mpa:h}=e,m=n.href??("/"===n.slug?u||"/":`${u}/${n.slug}`);return(0,t.jsx)(o.default,{href:m,mpa:h,className:r,"aria-current":i?"page":void 0,sourceModule:"subnavigation",children:n.label})},h=(0,a.memo)(e=>{let{links:o,activeIndex:c,className:h,constrained:m=!0}=e,[d,p]=(0,a.useState)(!1),[v,g]=(0,a.useState)(!1),b=(0,a.useRef)(null),k=(0,a.useRef)(null),f=(0,a.useRef)(!1),j=(0,n.useAtomValue)(i.deviceClassAtom),y="mobile"!==j&&"tablet"!==j,x=(0,a.useCallback)(()=>{let e=b.current;if(!e||!y){p(!1),g(!1);return}let{scrollLeft:t,scrollWidth:l,clientWidth:a}=e,s=Math.abs(t),n=s>2,i=s+a(0,l.debounce)(x,150),[x]),w=(0,a.useCallback)(()=>{null===k.current&&(k.current=requestAnimationFrame(()=>{x(),k.current=null}))},[x]);(0,a.useEffect)(()=>{let e=b.current;e&&(f.current="rtl"===getComputedStyle(e).direction),x();let t=b.current;return t&&(t.addEventListener("scroll",w),window.addEventListener("resize",P)),()=>{null!==k.current&&(cancelAnimationFrame(k.current),k.current=null),t&&t.removeEventListener("scroll",w),P.cancel(),window.removeEventListener("resize",P)}},[o,x,w,P]);let S=(0,a.useCallback)(()=>{b.current?.scrollBy({left:-200,behavior:"smooth"})},[]),z=(0,a.useCallback)(()=>{b.current?.scrollBy({left:200,behavior:"smooth"})},[]);return(0,t.jsxs)("div",{className:(0,s.cn)("relative overflow-hidden rounded-3xl bg-white p-1 shadow-[0_4px_16px_0_rgba(0,0,0,0.08),_0_0_32px_0_rgba(0,0,0,0.12)]","md:rounded-4xl md:rounded-[28px]",m&&"md:mr-auto md:max-w-[min(958px,100%)]",h),"data-testid":"subnavigation",children:[(0,t.jsx)("div",{className:(0,s.cn)("pointer-events-none absolute top-0 -left-25 z-[5] h-full w-24 bg-gradient-to-r from-white from-0% via-white via-60% to-transparent transition-[left] md:-top-1 md:h-14 md:rounded-s-[28px]",{"-left-1":d}),"aria-hidden":"true"}),(0,t.jsx)(r.ScrollButton,{hidden:!d,onClick:S,direction:"left"}),(0,t.jsx)("div",{ref:b,className:(0,s.cn)("scrollbar-hide flex h-10 items-center gap-1 overflow-x-auto md:h-12"),children:o.map((l,a)=>e.onSelect?(0,t.jsx)(u,{link:l,index:a,activeIndex:c,onSelect:e.onSelect},`${l.label}_${l.slug}`):(0,t.jsx)(u,{link:l,index:a,activeIndex:c,basePath:e.basePath,mpa:e.mpa},`${l.label}_${l.slug}`))}),(0,t.jsx)("div",{className:(0,s.cn)("pointer-events-none absolute top-0 -right-25 z-[5] h-full w-24 bg-gradient-to-l from-white from-0% via-white via-60% to-transparent transition-[right] md:-top-1 md:h-14 md:rounded-e-[28px]",{"-right-1":v}),"aria-hidden":"true"}),(0,t.jsx)(r.ScrollButton,{hidden:!v,onClick:z,direction:"right"})]})},(e,t)=>e.activeIndex===t.activeIndex&&e.basePath===t.basePath&&e.mpa===t.mpa&&e.onSelect===t.onSelect&&e.constrained===t.constrained&&e.links.length===t.links.length&&e.links.every((e,l)=>e.label===t.links[l]?.label&&e.slug===t.links[l]?.slug&&e.href===t.links[l]?.href));h.displayName="SubnavigationUI",e.s(["SubnavigationUI",0,h],457492)},798725,e=>{"use strict";var t=e.i(648198),l=e.i(25681),a=e.i(959194),s=e.i(472737),n=e.i(539922),i=e.i(547100),r=e.i(611540),o=e.i(457492);function c({placeId:e,placeQuery:a,canonicalPath:s,locale:u,showHealthTabs:h}){let m=(0,i.useTranslations)("SidebarNavigation"),d=(0,l.usePathname)(),{links:p,basePath:v}=(0,n.useMemo)(()=>{if(s){let t=e?`l/${e}`:void 0,l=h&&t?[{label:"Allergies",slug:"allergy",href:(0,r.interpolateUrl)(r.URLS.allergy,{locale:u,locId:e})},{label:"Air Quality",slug:"air-quality",href:(0,r.interpolateUrl)(r.URLS.airQuality,{locale:u,locId:e})},{label:"Cold & Flu",slug:"cold-flu",href:(0,r.interpolateUrl)(r.URLS.coldFlu,{locale:u,locId:e})}]:[];return{links:[{label:m("today"),slug:"today"},{label:m("hourly"),slug:"hourbyhour"},{label:m("tenday"),slug:"tenday"},...t?[{label:m("monthly"),slug:"monthly",href:(0,r.interpolateUrl)(r.URLS.monthly,{locale:u,locId:e})}]:[],...l],basePath:s}}let t="en-US"===u?"/weather":`/${u}/weather`,l=e??"",n=a?`?${a}`:"",i=h?[{label:"Allergies",slug:"allergy",href:`${(0,r.interpolateUrl)(r.URLS.allergy,{locale:u,locId:l})}${n}`},{label:"Air Quality",slug:"air-quality",href:`${(0,r.interpolateUrl)(r.URLS.airQuality,{locale:u,locId:l})}${n}`},{label:"Cold & Flu",slug:"cold-flu",href:`${(0,r.interpolateUrl)(r.URLS.coldFlu,{locale:u,locId:l})}${n}`}]:[];return{links:[{label:m("today"),slug:"today",href:`${(0,r.interpolateUrl)(r.URLS.today,{locale:u,locId:l})}${n}`},{label:m("hourly"),slug:"hourbyhour",href:`${(0,r.interpolateUrl)(r.URLS.hourly,{locale:u,locId:l})}${n}`},{label:m("tenday"),slug:"tenday",href:`${(0,r.interpolateUrl)(r.URLS.tenday,{locale:u,locId:l})}${n}`},{label:m("monthly"),slug:"monthly",href:`${(0,r.interpolateUrl)(r.URLS.monthly,{locale:u,locId:l})}${n}`},{label:"Gardening",slug:"gardening",href:"https://labs.weather.com/labs/home-and-garden"},...i],basePath:t}},[s,e,a,u,h,m]),g=(0,n.useMemo)(()=>{if(d===v||d===`${v}/`)return 0;let e=p.findIndex(e=>{let t=e.slug.split("/")[0];return s?d===`${v}/${t}`||d.startsWith(`${v}/${t}/`):d.includes(`/weather/${t}/`)});return -1!==e?e:0},[d,v,p,s]);return(0,t.jsx)(o.SubnavigationUI,{links:p,basePath:v,activeIndex:g})}e.s(["ForecastSubnavContainer",0,function({locale:e}){let n,i,r=(0,l.usePathname)(),o=(0,l.useParams)(),{effectiveLocation:u}=(0,s.useLocationSource)({}),h=o.canonicalLocation;if(h&&h.length>0){let l=r.substring(0,r.lastIndexOf("/")),s="en-US"===e&&"samsung"!==(0,a.getPartner)();return(0,t.jsx)(c,{canonicalPath:l,placeId:u?.placeId,locale:e,showHealthTabs:s})}let m=o.locId,d=o.canonicalCityId,p=o.locName;if(m?n=m:p&&d?(n=p,i=`canonicalCityId=${d}`):d&&(n=d),!n)return null;let v="en-US"===e&&"samsung"!==(0,a.getPartner)();return(0,t.jsx)(c,{placeId:n,placeQuery:i,locale:e,showHealthTabs:v})}],798725)},186044,e=>{e.v(t=>Promise.all(["static/chunks/119.ldodxuu5y.js"].map(t=>e.l(t))).then(()=>t(451309)))},171913,e=>{e.v(t=>Promise.all(["static/chunks/0okt7_5aoyj97.js"].map(t=>e.l(t))).then(()=>t(927976)))},90,e=>{e.v(t=>Promise.all(["static/chunks/0q~y4~ass47t1.js"].map(t=>e.l(t))).then(()=>t(22872)))},92368,e=>{e.v(t=>Promise.all(["static/chunks/0buhwlcf78_w~.js"].map(t=>e.l(t))).then(()=>t(789895)))},666922,e=>{e.v(t=>Promise.all(["static/chunks/0btt8e.w2998y.js"].map(t=>e.l(t))).then(()=>t(856593)))},722332,e=>{e.v(t=>Promise.all(["static/chunks/0qdzin7jq-t0n.js"].map(t=>e.l(t))).then(()=>t(476881)))},880187,e=>{e.v(t=>Promise.all(["static/chunks/0kf66z_pyjq5p.js"].map(t=>e.l(t))).then(()=>t(747997)))},744883,e=>{e.v(t=>Promise.all(["static/chunks/0vbxjr0dtmf24.js"].map(t=>e.l(t))).then(()=>t(581947)))},197999,e=>{e.v(t=>Promise.all(["static/chunks/0j21g.dzlsnqg.js"].map(t=>e.l(t))).then(()=>t(272493)))},407657,e=>{e.v(t=>Promise.all(["static/chunks/0p2ktp05rk3xz.js"].map(t=>e.l(t))).then(()=>t(75960)))},650095,e=>{e.v(t=>Promise.all(["static/chunks/13kujd~v5v7zq.js"].map(t=>e.l(t))).then(()=>t(601862)))},916531,e=>{e.v(t=>Promise.all(["static/chunks/12h9z21kdivud.js"].map(t=>e.l(t))).then(()=>t(369675)))},415546,e=>{e.v(t=>Promise.all(["static/chunks/0f88zoot8s3x2.js"].map(t=>e.l(t))).then(()=>t(446839)))},353962,e=>{e.v(t=>Promise.all(["static/chunks/12-5wkx0_44y~.js"].map(t=>e.l(t))).then(()=>t(367128)))},391939,e=>{e.v(t=>Promise.all(["static/chunks/07qje0x8hgnos.js"].map(t=>e.l(t))).then(()=>t(72575)))},155043,e=>{e.v(t=>Promise.all(["static/chunks/16hrrocbx8ky4.js"].map(t=>e.l(t))).then(()=>t(869146)))},103659,e=>{e.v(t=>Promise.all(["static/chunks/0d5j9--8ep9.5.js"].map(t=>e.l(t))).then(()=>t(296920)))},945801,e=>{e.v(t=>Promise.all(["static/chunks/0kk9ta2je.os6.js"].map(t=>e.l(t))).then(()=>t(566248)))},252521,e=>{e.v(t=>Promise.all(["static/chunks/0.115df9iepp..js"].map(t=>e.l(t))).then(()=>t(661446)))},781723,e=>{e.v(t=>Promise.all(["static/chunks/00yhu8-au2xtm.js"].map(t=>e.l(t))).then(()=>t(654703)))},625303,e=>{e.v(t=>Promise.all(["static/chunks/14g0yp8qw6boc.js"].map(t=>e.l(t))).then(()=>t(718437)))},909969,e=>{e.v(t=>Promise.all(["static/chunks/0pdoss~kzo-3a.js"].map(t=>e.l(t))).then(()=>t(218776)))},408674,e=>{e.v(t=>Promise.all(["static/chunks/16qliw_ryk34~.js"].map(t=>e.l(t))).then(()=>t(783769)))},632092,e=>{e.v(t=>Promise.all(["static/chunks/0c2mnp7d6zvy4.js"].map(t=>e.l(t))).then(()=>t(45677)))},713848,e=>{e.v(t=>Promise.all(["static/chunks/01ti_judx9upc.js"].map(t=>e.l(t))).then(()=>t(889507)))},774463,e=>{e.v(t=>Promise.all(["static/chunks/0jx6aovh_sks5.js"].map(t=>e.l(t))).then(()=>t(155062)))},494738,e=>{e.v(t=>Promise.all(["static/chunks/01kpi4f4oaqx1.js"].map(t=>e.l(t))).then(()=>t(512028)))},2638,e=>{e.v(t=>Promise.all(["static/chunks/10kr9ynttwisa.js"].map(t=>e.l(t))).then(()=>t(198051)))},67832,e=>{e.v(t=>Promise.all(["static/chunks/0uhiyk7_t8r4h.js"].map(t=>e.l(t))).then(()=>t(414064)))},846784,e=>{e.v(t=>Promise.all(["static/chunks/0ez3~ss3eemug.js"].map(t=>e.l(t))).then(()=>t(873667)))},72998,e=>{e.v(t=>Promise.all(["static/chunks/0zx6yan2n6~xe.js"].map(t=>e.l(t))).then(()=>t(510110)))},395624,e=>{e.v(t=>Promise.all(["static/chunks/0q4ce.smoohbk.js"].map(t=>e.l(t))).then(()=>t(600726)))},626117,e=>{e.v(t=>Promise.all(["static/chunks/0-h0gp~482ho0.js"].map(t=>e.l(t))).then(()=>t(825086)))},132409,e=>{e.v(t=>Promise.all(["static/chunks/0h85ui4izlyhk.js"].map(t=>e.l(t))).then(()=>t(3017)))},226507,e=>{e.v(t=>Promise.all(["static/chunks/09-tk8n4q58po.js"].map(t=>e.l(t))).then(()=>t(538258)))},48208,e=>{e.v(t=>Promise.all(["static/chunks/0kub5jz~dgvk9.js"].map(t=>e.l(t))).then(()=>t(625444)))},164295,e=>{e.v(t=>Promise.all(["static/chunks/13dro2bryfnqv.js"].map(t=>e.l(t))).then(()=>t(702162)))},148486,e=>{e.v(t=>Promise.all(["static/chunks/0.zwch585zmc6.js"].map(t=>e.l(t))).then(()=>t(946515)))},403395,e=>{e.v(t=>Promise.all(["static/chunks/0flj335d124fp.js"].map(t=>e.l(t))).then(()=>t(573581)))},957284,e=>{e.v(t=>Promise.all(["static/chunks/112qnh7mmox4g.js"].map(t=>e.l(t))).then(()=>t(48914)))},752465,e=>{e.v(t=>Promise.all(["static/chunks/0h-18~iytrh99.js"].map(t=>e.l(t))).then(()=>t(777844)))},521662,e=>{e.v(t=>Promise.all(["static/chunks/0wlw983-r_egz.js"].map(t=>e.l(t))).then(()=>t(782697)))},661123,e=>{e.v(t=>Promise.all(["static/chunks/05uqt20dla4m3.js"].map(t=>e.l(t))).then(()=>t(711818)))},476493,e=>{e.v(t=>Promise.all(["static/chunks/0pxzsgbzzsd4z.js"].map(t=>e.l(t))).then(()=>t(328877)))}]);