(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,991511,e=>{"use strict";var t=e.i(778235),l=e.i(806262),a=e.i(546446);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(981030).atom)("");e.s(["adsMetricsUnitAndZoneAtom",0,t])},235577,e=>{"use strict";var t=e.i(862494),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})})}])},905392,e=>{"use strict";var t=e.i(862494),l=e.i(147732),a=e.i(778235),s=e.i(632137),n=e.i(546446),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),f=(0,a.useRef)(null),k=(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]),S=(0,a.useCallback)(()=>{null===f.current&&(f.current=requestAnimationFrame(()=>{x(),f.current=null}))},[x]);(0,a.useEffect)(()=>{let e=b.current;e&&(k.current="rtl"===getComputedStyle(e).direction),x();let t=b.current;return t&&(t.addEventListener("scroll",S),window.addEventListener("resize",P)),()=>{null!==f.current&&(cancelAnimationFrame(f.current),f.current=null),t&&t.removeEventListener("scroll",S),P.cancel(),window.removeEventListener("resize",P)}},[o,x,S,P]);let w=(0,a.useCallback)(()=>{b.current?.scrollBy({left:-200,behavior:"smooth"})},[]),$=(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:w,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:$,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],905392)},798725,e=>{"use strict";var t=e.i(862494),l=e.i(561762),a=e.i(959194),s=e.i(472737),n=e.i(778235),i=e.i(769441),r=e.i(611540),o=e.i(905392);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"},{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}`},..."en-US"===u?[{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}/`)||d.includes(`/forecast/${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/06~5uxt44hvfe.js"].map(t=>e.l(t))).then(()=>t(451309)))},171913,e=>{e.v(t=>Promise.all(["static/chunks/0e8b4e~8.08nh.js"].map(t=>e.l(t))).then(()=>t(927976)))},90,e=>{e.v(t=>Promise.all(["static/chunks/11cp-3m4~216o.js"].map(t=>e.l(t))).then(()=>t(22872)))},92368,e=>{e.v(t=>Promise.all(["static/chunks/0dmd_b.jaagyy.js"].map(t=>e.l(t))).then(()=>t(789895)))},666922,e=>{e.v(t=>Promise.all(["static/chunks/02_o369_0q.8v.js"].map(t=>e.l(t))).then(()=>t(856593)))},722332,e=>{e.v(t=>Promise.all(["static/chunks/0nnc7tlsre58y.js"].map(t=>e.l(t))).then(()=>t(476881)))},880187,e=>{e.v(t=>Promise.all(["static/chunks/0z87aubx1xtao.js"].map(t=>e.l(t))).then(()=>t(747997)))},744883,e=>{e.v(t=>Promise.all(["static/chunks/13f0~j8jqpknh.js"].map(t=>e.l(t))).then(()=>t(581947)))},197999,e=>{e.v(t=>Promise.all(["static/chunks/172zj.ko-nt-4.js"].map(t=>e.l(t))).then(()=>t(272493)))},407657,e=>{e.v(t=>Promise.all(["static/chunks/0j-nx0fz9l31r.js"].map(t=>e.l(t))).then(()=>t(75960)))},650095,e=>{e.v(t=>Promise.all(["static/chunks/02891q1zm1itg.js"].map(t=>e.l(t))).then(()=>t(601862)))},916531,e=>{e.v(t=>Promise.all(["static/chunks/0ku4swx44dzqk.js"].map(t=>e.l(t))).then(()=>t(369675)))},415546,e=>{e.v(t=>Promise.all(["static/chunks/0b0fxm22eqyxz.js"].map(t=>e.l(t))).then(()=>t(446839)))},353962,e=>{e.v(t=>Promise.all(["static/chunks/0abne2hgdfjyz.js"].map(t=>e.l(t))).then(()=>t(367128)))},391939,e=>{e.v(t=>Promise.all(["static/chunks/15oud8rownvqe.js"].map(t=>e.l(t))).then(()=>t(72575)))},155043,e=>{e.v(t=>Promise.all(["static/chunks/13m2go67hv1k8.js"].map(t=>e.l(t))).then(()=>t(869146)))},103659,e=>{e.v(t=>Promise.all(["static/chunks/17l_7vaszedtg.js"].map(t=>e.l(t))).then(()=>t(296920)))},945801,e=>{e.v(t=>Promise.all(["static/chunks/02xlav--4u9lm.js"].map(t=>e.l(t))).then(()=>t(566248)))},252521,e=>{e.v(t=>Promise.all(["static/chunks/0ze3yfr55egog.js"].map(t=>e.l(t))).then(()=>t(661446)))},781723,e=>{e.v(t=>Promise.all(["static/chunks/11qld_ho3s81p.js"].map(t=>e.l(t))).then(()=>t(654703)))},625303,e=>{e.v(t=>Promise.all(["static/chunks/0r4yck15ugt2~.js"].map(t=>e.l(t))).then(()=>t(718437)))},909969,e=>{e.v(t=>Promise.all(["static/chunks/07p03ioto_h79.js"].map(t=>e.l(t))).then(()=>t(218776)))},408674,e=>{e.v(t=>Promise.all(["static/chunks/0_pc.1yw0dvfv.js"].map(t=>e.l(t))).then(()=>t(783769)))},632092,e=>{e.v(t=>Promise.all(["static/chunks/10fed26b40yfw.js"].map(t=>e.l(t))).then(()=>t(45677)))},713848,e=>{e.v(t=>Promise.all(["static/chunks/13lb.3~1~v38k.js"].map(t=>e.l(t))).then(()=>t(889507)))},774463,e=>{e.v(t=>Promise.all(["static/chunks/0huyeodn6-t_-.js"].map(t=>e.l(t))).then(()=>t(155062)))},494738,e=>{e.v(t=>Promise.all(["static/chunks/0o6atr5kv6-f8.js"].map(t=>e.l(t))).then(()=>t(512028)))},2638,e=>{e.v(t=>Promise.all(["static/chunks/08i_7ezkx.td1.js"].map(t=>e.l(t))).then(()=>t(198051)))},67832,e=>{e.v(t=>Promise.all(["static/chunks/05t2bwgwai21z.js"].map(t=>e.l(t))).then(()=>t(414064)))},846784,e=>{e.v(t=>Promise.all(["static/chunks/09pbu02d12~2f.js"].map(t=>e.l(t))).then(()=>t(873667)))},72998,e=>{e.v(t=>Promise.all(["static/chunks/155mtke7.mif2.js"].map(t=>e.l(t))).then(()=>t(510110)))},395624,e=>{e.v(t=>Promise.all(["static/chunks/0uyvcu47xjc20.js"].map(t=>e.l(t))).then(()=>t(600726)))},626117,e=>{e.v(t=>Promise.all(["static/chunks/06e~78qd4pu.r.js"].map(t=>e.l(t))).then(()=>t(825086)))},132409,e=>{e.v(t=>Promise.all(["static/chunks/03auez2c4rko-.js"].map(t=>e.l(t))).then(()=>t(3017)))},226507,e=>{e.v(t=>Promise.all(["static/chunks/0.14g.yqfdl89.js"].map(t=>e.l(t))).then(()=>t(538258)))},48208,e=>{e.v(t=>Promise.all(["static/chunks/0.vtiz4_bq-sz.js"].map(t=>e.l(t))).then(()=>t(625444)))},164295,e=>{e.v(t=>Promise.all(["static/chunks/07fmq6a.vl8sk.js"].map(t=>e.l(t))).then(()=>t(702162)))},148486,e=>{e.v(t=>Promise.all(["static/chunks/0t_h5-e5-uhqe.js"].map(t=>e.l(t))).then(()=>t(946515)))},403395,e=>{e.v(t=>Promise.all(["static/chunks/0oesbu7ws23gq.js"].map(t=>e.l(t))).then(()=>t(573581)))},957284,e=>{e.v(t=>Promise.all(["static/chunks/0tt28hpssaxc1.js"].map(t=>e.l(t))).then(()=>t(48914)))},752465,e=>{e.v(t=>Promise.all(["static/chunks/125~7j1c01ka0.js"].map(t=>e.l(t))).then(()=>t(777844)))},521662,e=>{e.v(t=>Promise.all(["static/chunks/0-7u3o_b9-ac8.js"].map(t=>e.l(t))).then(()=>t(782697)))},661123,e=>{e.v(t=>Promise.all(["static/chunks/0yzudpvznu-5j.js"].map(t=>e.l(t))).then(()=>t(711818)))},476493,e=>{e.v(t=>Promise.all(["static/chunks/0jgf9jx~htd0i.js"].map(t=>e.l(t))).then(()=>t(328877)))}]);