(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,235577,e=>{"use strict";var t=e.i(699173),a=e.i(523084),l=e.i(47524),s=e.i(632137),n=e.i(877957);e.s(["ScrollButton",0,function({direction:e,onClick:i,hidden:r,size:c="default",variant:o="light",className:u}){let h="sm"===c,m=(0,s.cn)("text-current",h?"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","dark"===o?"bg-[#252422] text-white hover:bg-[#3a3937] active:bg-[#1a1918]":"solid"===o?"bg-black/80 text-white hover:bg-black/90 active:bg-black":"white"===o?"bg-white/80 text-gray-900 backdrop-blur-[2px] hover:bg-white/95 active:bg-white":"bg-transparent text-gray-900 hover:bg-gray-100 active:bg-gray-200",h?"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",u),children:"left"===e?(0,t.jsx)(a.ChevronLeft,{className:m}):(0,t.jsx)(l.ChevronRight,{className:m})})}])},457492,e=>{"use strict";var t=e.i(699173),a=e.i(147732),l=e.i(592121),s=e.i(632137),n=e.i(546446),i=e.i(663333),r=e.i(235577),c=e.i(240058);let o=(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:a,index:l,link:n}=e,i=a===l,r=(0,s.cn)(o,{"bg-gray-100 text-blue-500":i});if(e.onSelect){let{onSelect:a}=e;return(0,t.jsx)("button",{type:"button",onClick:()=>a(l,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)(c.default,{href:m,mpa:h,className:r,"aria-current":i?"page":void 0,sourceModule:"subnavigation",children:n.label})},h=(0,l.memo)(e=>{let{links:c,activeIndex:o,className:h,constrained:m=!0}=e,[d,v]=(0,l.useState)(!1),[b,p]=(0,l.useState)(!1),g=(0,l.useRef)(null),f=(0,l.useRef)(null),k=(0,l.useRef)(!1),j=(0,n.useAtomValue)(i.deviceClassAtom),x="mobile"!==j&&"tablet"!==j,y=(0,l.useCallback)(()=>{let e=g.current;if(!e||!x){v(!1),p(!1);return}let{scrollLeft:t,scrollWidth:a,clientWidth:l}=e,s=Math.abs(t),n=s>2,i=s+l(0,a.debounce)(y,150),[y]),w=(0,l.useCallback)(()=>{null===f.current&&(f.current=requestAnimationFrame(()=>{y(),f.current=null}))},[y]);(0,l.useEffect)(()=>{let e=g.current;e&&(k.current="rtl"===getComputedStyle(e).direction),y();let t=g.current;return t&&(t.addEventListener("scroll",w),window.addEventListener("resize",P)),()=>{null!==f.current&&(cancelAnimationFrame(f.current),f.current=null),t&&t.removeEventListener("scroll",w),P.cancel(),window.removeEventListener("resize",P)}},[c,y,w,P]);let S=(0,l.useCallback)(()=>{g.current?.scrollBy({left:-200,behavior:"smooth"})},[]),I=(0,l.useCallback)(()=>{g.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:g,className:(0,s.cn)("scrollbar-hide flex h-10 items-center gap-1 overflow-x-auto md:h-12"),children:c.map((a,l)=>e.onSelect?(0,t.jsx)(u,{link:a,index:l,activeIndex:o,onSelect:e.onSelect},`${a.label}_${a.slug}`):(0,t.jsx)(u,{link:a,index:l,activeIndex:o,basePath:e.basePath,mpa:e.mpa},`${a.label}_${a.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":b}),"aria-hidden":"true"}),(0,t.jsx)(r.ScrollButton,{hidden:!b,onClick:I,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,a)=>e.label===t.links[a]?.label&&e.slug===t.links[a]?.slug&&e.href===t.links[a]?.href));h.displayName="SubnavigationUI",e.s(["SubnavigationUI",0,h],457492)},247977,748315,e=>{"use strict";var t=e.i(699173),a=e.i(592121),l=e.i(683903),s=e.i(961123),n=e.i(611540),i=e.i(388706),r=e.i(304116),c=e.i(457492),o=e.i(258990);e.s(["ForecastSubnav",0,function({placeId:e,featureId:u,placeQuery:h,canonicalPath:m,canonicalID:d,locale:v,showHealthTabs:b}){let p=(0,l.useTranslations)("SidebarNavigation"),g=(0,s.usePathname)(),f=e?(0,o.decodeLocId)(e):e,{links:k,basePath:j}=(0,a.useMemo)(()=>{if(m){let e=f?`l/${f}`:void 0,t=b&&e?[{label:"Allergies",slug:"allergy"},{label:"Air Quality",slug:"air-quality"},{label:"Cold & Flu",slug:"cold-flu",href:(0,n.interpolateUrl)(n.URLS.coldFlu,{locale:v,locId:f})}]:[];return{links:[{label:p("today"),slug:"today"},{label:p("hourly"),slug:"hourbyhour"},{label:p("tenday"),slug:"tenday"},...e?[{label:p("monthly"),slug:"monthly",href:(0,n.interpolateUrl)(n.URLS.monthly,{locale:v,locId:f})}]:[],...t],basePath:m}}let e="en-US"===v?"/weather":`/${v}/weather`,t=f??"",a=h?`?${h}`:"",l=e=>u&&i.CANONICAL_PAGE_TYPES.includes(e)?u:t,s=e=>`${(0,r.buildLocationPageHref)({pageType:e,locale:v,canonicalID:d,featureId:u,placeId:t})}${a}`,c=b?[{label:"Allergies",slug:"allergy",href:s("allergy")},{label:"Air Quality",slug:"air-quality",href:s("air-quality")},{label:"Cold & Flu",slug:"cold-flu",href:`${(0,n.interpolateUrl)(n.URLS.coldFlu,{locale:v,locId:l("cold-flu")})}${a}`}]:[];return{links:[{label:p("today"),slug:"today",href:s("today")},{label:p("hourly"),slug:"hourbyhour",href:s("hourbyhour")},{label:p("tenday"),slug:"tenday",href:s("tenday")},{label:p("monthly"),slug:"monthly",href:`${(0,n.interpolateUrl)(n.URLS.monthly,{locale:v,locId:l("monthly")})}${a}`},...c],basePath:e}},[m,d,f,u,h,v,b,p]),x=(0,a.useMemo)(()=>{let e=g.replace(/\/day-\d+$/,""),t=k.findIndex(t=>{let{slug:a}=t,l=i.BASE_BY_PAGE[a];return!!l&&g.includes(`${l}byFeatureId/`)||g.includes(`/weather/${a}/`)||g.includes(`/forecast/${a}/`)||e.endsWith(`/${a}`)});return -1!==t?t:0},[g,k]);return(0,t.jsx)(c.SubnavigationUI,{links:k,basePath:j,activeIndex:x})}],247977);var u=e.i(959194),h=e.i(132084);e.s(["canShowHealthTabs",0,function(e){return"en-US"===e&&(0,u.getPartner)()!==h.Partner.SAMSUNG}],748315)},798725,e=>{"use strict";var t=e.i(699173),a=e.i(961123),l=e.i(64412),s=e.i(559421),n=e.i(330091),i=e.i(247977),r=e.i(748315);e.s(["ForecastSubnavContainer",0,function({locale:e}){let c,o,u=(0,a.useParams)(),{location:h}=(0,l.useLocation)(),m=(0,s.useCanonicalBasePath)();if(m)return(0,t.jsx)(i.ForecastSubnav,{canonicalPath:m,placeId:h?.placeId,locale:e,showHealthTabs:(0,r.canShowHealthTabs)(e)});let d=u.featureId;if(d)return(0,t.jsx)(i.ForecastSubnav,{featureId:d,placeId:h?.placeId,canonicalID:h?.canonicalID,locale:e,showHealthTabs:(0,r.canShowHealthTabs)(e)});let v=u.locId,b=u.canonicalCityId,p=u.locName;return v&&(0,n.testLocId)(v)?.type==="featureId"?(0,t.jsx)(i.ForecastSubnav,{featureId:v,placeId:h?.placeId,canonicalID:h?.canonicalID,locale:e,showHealthTabs:(0,r.canShowHealthTabs)(e)}):(v?c=v:p&&b?(c=p,o=`canonicalCityId=${b}`):b&&(c=b),c)?(0,t.jsx)(i.ForecastSubnav,{placeId:c,placeQuery:o,locale:e,showHealthTabs:(0,r.canShowHealthTabs)(e)}):null}])},186044,e=>{e.v(t=>Promise.all(["static/chunks/14l-6d02kd2fz.js"].map(t=>e.l(t))).then(()=>t(451309)))},171913,e=>{e.v(t=>Promise.all(["static/chunks/3dcs0l5j1g6a_.js"].map(t=>e.l(t))).then(()=>t(927976)))},90,e=>{e.v(t=>Promise.all(["static/chunks/02ppzgv5a8lxs.js"].map(t=>e.l(t))).then(()=>t(22872)))},92368,e=>{e.v(t=>Promise.all(["static/chunks/3i0zaiku7bje6.js"].map(t=>e.l(t))).then(()=>t(789895)))},666922,e=>{e.v(t=>Promise.all(["static/chunks/2_ad85pvnpasr.js"].map(t=>e.l(t))).then(()=>t(856593)))},722332,e=>{e.v(t=>Promise.all(["static/chunks/0lb0gugsiefuf.js"].map(t=>e.l(t))).then(()=>t(476881)))},880187,e=>{e.v(t=>Promise.all(["static/chunks/0ytexffeurca4.js"].map(t=>e.l(t))).then(()=>t(747997)))},744883,e=>{e.v(t=>Promise.all(["static/chunks/0zs2to7zqkb6b.js"].map(t=>e.l(t))).then(()=>t(581947)))},197999,e=>{e.v(t=>Promise.all(["static/chunks/3n-sga4604-oh.js"].map(t=>e.l(t))).then(()=>t(272493)))},407657,e=>{e.v(t=>Promise.all(["static/chunks/32asyc-qi6t0-.js"].map(t=>e.l(t))).then(()=>t(75960)))},650095,e=>{e.v(t=>Promise.all(["static/chunks/2rj208utmr5yr.js"].map(t=>e.l(t))).then(()=>t(601862)))},916531,e=>{e.v(t=>Promise.all(["static/chunks/1edjqytr4b4do.js"].map(t=>e.l(t))).then(()=>t(369675)))},415546,e=>{e.v(t=>Promise.all(["static/chunks/2gbvc82ctdn0a.js"].map(t=>e.l(t))).then(()=>t(446839)))},353962,e=>{e.v(t=>Promise.all(["static/chunks/3bevr2_4h3ua9.js"].map(t=>e.l(t))).then(()=>t(367128)))},391939,e=>{e.v(t=>Promise.all(["static/chunks/0o-5ypipfmvgj.js"].map(t=>e.l(t))).then(()=>t(72575)))},155043,e=>{e.v(t=>Promise.all(["static/chunks/1eisd1srr5_wl.js"].map(t=>e.l(t))).then(()=>t(869146)))},103659,e=>{e.v(t=>Promise.all(["static/chunks/3eonedq0tzhbu.js"].map(t=>e.l(t))).then(()=>t(296920)))},945801,e=>{e.v(t=>Promise.all(["static/chunks/27b4xgp6fncrs.js"].map(t=>e.l(t))).then(()=>t(566248)))},252521,e=>{e.v(t=>Promise.all(["static/chunks/07fx3by0-8gd2.js"].map(t=>e.l(t))).then(()=>t(661446)))},582099,e=>{e.v(t=>Promise.all(["static/chunks/10536z8prxuwv.js"].map(t=>e.l(t))).then(()=>t(654703)))},625303,e=>{e.v(t=>Promise.all(["static/chunks/3_im3i23ahlrn.js"].map(t=>e.l(t))).then(()=>t(718437)))},909969,e=>{e.v(t=>Promise.all(["static/chunks/35zkk3b49wu7f.js"].map(t=>e.l(t))).then(()=>t(218776)))},408674,e=>{e.v(t=>Promise.all(["static/chunks/37zcsfcnoati1.js"].map(t=>e.l(t))).then(()=>t(783769)))},632092,e=>{e.v(t=>Promise.all(["static/chunks/3m9vh4xsqulp_.js"].map(t=>e.l(t))).then(()=>t(45677)))},713848,e=>{e.v(t=>Promise.all(["static/chunks/3erqiumfpcfsb.js"].map(t=>e.l(t))).then(()=>t(889507)))},774463,e=>{e.v(t=>Promise.all(["static/chunks/0qc98scy26su0.js"].map(t=>e.l(t))).then(()=>t(155062)))},494738,e=>{e.v(t=>Promise.all(["static/chunks/35_axkfal7ger.js"].map(t=>e.l(t))).then(()=>t(512028)))},2638,e=>{e.v(t=>Promise.all(["static/chunks/2ve1e19qddzym.js"].map(t=>e.l(t))).then(()=>t(198051)))},67832,e=>{e.v(t=>Promise.all(["static/chunks/2dcwk6m_v4qfi.js"].map(t=>e.l(t))).then(()=>t(414064)))},846784,e=>{e.v(t=>Promise.all(["static/chunks/1e3vb5d7j0x8s.js"].map(t=>e.l(t))).then(()=>t(873667)))},72998,e=>{e.v(t=>Promise.all(["static/chunks/393zgougvvycp.js"].map(t=>e.l(t))).then(()=>t(510110)))},395624,e=>{e.v(t=>Promise.all(["static/chunks/2szbhxkcxvd0v.js"].map(t=>e.l(t))).then(()=>t(600726)))},626117,e=>{e.v(t=>Promise.all(["static/chunks/0_bdyv7xs8xqi.js"].map(t=>e.l(t))).then(()=>t(825086)))},132409,e=>{e.v(t=>Promise.all(["static/chunks/43drnw5w4qy5b.js"].map(t=>e.l(t))).then(()=>t(3017)))},226507,e=>{e.v(t=>Promise.all(["static/chunks/2qf6ha3gakfwh.js"].map(t=>e.l(t))).then(()=>t(538258)))},48208,e=>{e.v(t=>Promise.all(["static/chunks/3msns9jhb6vfx.js"].map(t=>e.l(t))).then(()=>t(625444)))},164295,e=>{e.v(t=>Promise.all(["static/chunks/0z4a_zo6coobc.js"].map(t=>e.l(t))).then(()=>t(702162)))},148486,e=>{e.v(t=>Promise.all(["static/chunks/0zgy365rwmgw6.js"].map(t=>e.l(t))).then(()=>t(946515)))},403395,e=>{e.v(t=>Promise.all(["static/chunks/1xu3zmek98e_j.js"].map(t=>e.l(t))).then(()=>t(573581)))},957284,e=>{e.v(t=>Promise.all(["static/chunks/0_pa8k2y1jvmh.js"].map(t=>e.l(t))).then(()=>t(48914)))},752465,e=>{e.v(t=>Promise.all(["static/chunks/16yf-fk_5dxil.js"].map(t=>e.l(t))).then(()=>t(777844)))},521662,e=>{e.v(t=>Promise.all(["static/chunks/05rm8oago-b2j.js"].map(t=>e.l(t))).then(()=>t(782697)))},661123,e=>{e.v(t=>Promise.all(["static/chunks/1ejdc4_dkaxie.js"].map(t=>e.l(t))).then(()=>t(711818)))},476493,e=>{e.v(t=>Promise.all(["static/chunks/0-juv8n6sj234.js"].map(t=>e.l(t))).then(()=>t(328877)))}]);