(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,752496,e=>{"use strict";var t=e.i(477716),r=e.i(609858);let n=(0,e.i(695881).createLogger)("DebugCollector");function i({componentName:e,data:i,page:o,onUpdateData:l,onSetPageData:a}){let{updateComponentData:s,setPageData:c}=(0,r.useDebugSystem)(),u=(0,t.useRef)(!1),d=l||s,f=a||c;return(0,t.useEffect)(()=>{if(i)return n.lifecycle(`Collecting component data for ${e}`,{dataKeys:Object.keys(i),hasPerformance:!!i.performance,hasContext:!!i.context}),d(e,{...i,_collectedAt:new Date().toISOString()}),()=>{n.lifecycle(`Cleaning up data for ${e}`),d(e,null)}},[e,i,d]),(0,t.useEffect)(()=>{o&&!u.current&&(n.lifecycle("Setting page metadata",{title:o.title,assetName:o.assetName,collection:o.collection}),f({...o,_updatedAt:new Date().toISOString()}),u.current=!0)},[o,f]),null}e.s(["DebugCollectorClient",()=>i])},49893,e=>{"use strict";let t=(0,e.i(751931).atom)();e.s(["adsKillswitchAtom",0,t])},5397,e=>{"use strict";let t=(0,e.i(751931).atom)();e.s(["showAdminHeaderAtom",0,t])},985542,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.searchLocations=l,r.transformLocationSearch=a,r.getLocationsByQuery=s,r.getLocationsByQueryAndType=c;let n=e.r(630585),i=e.r(678651),o=e.r(414655);async function l(e){let t=(0,n.getLocationSearchUrlConfig)(e),r=(0,i.urlFrom)(t),l=await fetch(r,{headers:{"Accept-Encoding":"gzip"}});return(0,o.handleFetchResponse)(l)}function a(e){let t=[];if(!e.location||!e.location.city||0===e.location.city.length)return t;let r=e.location.city.length;for(let n=0;n{"use strict";function t(e,r,{signal:n,edges:i}={}){let o,l=null,a=null!=i&&i.includes("leading"),s=null==i||i.includes("trailing"),c=()=>{null!==l&&(e.apply(o,l),o=void 0,l=null)},u=null,d=()=>{null!=u&&clearTimeout(u),u=setTimeout(()=>{u=null,s&&c(),f()},r)},f=()=>{null!==u&&(clearTimeout(u),u=null),o=void 0,l=null},p=function(...e){if(n?.aborted)return;o=this,l=e;let t=null==u;d(),a&&t&&c()};return p.schedule=d,p.cancel=f,p.flush=()=>{c()},n?.addEventListener("abort",f,{once:!0}),p}e.s(["debounce",()=>t])},612977,e=>{"use strict";var t=e.i(477716),r=e.i(147732);function n(e,n){let[i,o]=(0,t.useState)(e);return(0,t.useEffect)(()=>{let t=(0,r.debounce)(e=>{o(e)},n);return t(e),()=>{t.cancel()}},[e,n]),i}e.s(["default",0,n,"useDebounce",()=>n])},180193,e=>{"use strict";var t=e.i(297647),r=e.i(477716),n=e.i(617874);let i=(0,r.memo)(({className:e,unitsClassName:r,units:i,value:o,degreeSymbolClass:l,unitOnly:a})=>{let s=null!=o,c=i?(0,n.unitsSystemByCode)(i):null,u=c?.temp,d=Number.isFinite(o)&&Math.round(o);return(0,t.jsx)("span",{"data-testid":"TemperatureValue",className:e,dir:"ltr",children:s||!s&&a?(0,t.jsxs)(t.Fragment,{children:[s&&d,(0,t.jsx)("span",{className:l,children:"°"}),u&&(0,t.jsx)("span",{className:r,children:u})]}):"--"})});e.s(["Temperature",0,i])},979777,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getCurrentObservationsUrlConfig=function({geocode:e,units:t,language:r}){return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/observations/current",query:{geocode:e,units:t,language:r,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},r.getTropicalObservationsCurrentPositionUrlConfig=function({nautical:e,source:t,basin:r,units:n,language:i}){return{host:"api.weather.com",protocol:"https",pathname:"/v2/tropical/currentposition",query:{nautical:e,source:t,basin:r,units:n,language:i,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},349262,(e,t,r)=>{"use strict";var n,i,o,l,a,s,c,u,d,f,p,E,I,h,_,R,N,m,A,T;Object.defineProperty(r,"__esModule",{value:!0}),r.ICON_CODE_MAP=r.ICON_CODE_EXTENDED=r.IconCodeExtended=r.IconCode=r.CloudCoverPhrase=r.PressureTendencyCode=r.UVDescription=r.WindDirectionCardinal=r.DayOrNight=r.HourlyForecastDuration=r.ForecastDuration=r.Units=void 0,(p=n||(r.Units=n={})).IMPERIAL="e",p.METRIC="m",p.HYBRID="h",(E=i||(r.ForecastDuration=i={})).THREE_DAY="3day",E.FIVE_DAY="5day",E.SEVEN_DAY="7day",E.TEN_DAY="10day",E.FIFTEEN_DAY="15day",(I=o||(r.HourlyForecastDuration=o={})).SIX_HOUR="6hour",I.TWELVE_HOUR="12hour",I.ONE_DAY="1day",I.TWO_DAY="2day",I.THREE_DAY="3day",I.TEN_DAY="10day",I.FIFTEEN_DAY="15day",(h=l||(r.DayOrNight=l={})).DAY="D",h.NIGHT="N",h.MISSING="X",(_=a||(r.WindDirectionCardinal=a={})).NORTH="N",_.NORTH_NORTHEAST="NNE",_.NORTHEAST="NE",_.EAST_NORTHEAST="ENE",_.EAST="E",_.EAST_SOUTHEAST="ESE",_.SOUTHEAST="SE",_.SOUTH_SOUTHEAST="SSE",_.SOUTH="S",_.SOUTH_SOUTHWEST="SSW",_.SOUTHWEST="SW",_.WEST_SOUTHWEST="WSW",_.WEST="W",_.WEST_NORTHWEST="WNW",_.NORTHWEST="NW",_.NORTH_NORTHWEST="NNW",_.CALM="CALM",(R=s||(r.UVDescription=s={})).NOT_AVAILABLE="-2",R.NO_REPORT="-1",R.LOW="Low",R.MODERATE="Moderate",R.HIGH="High",R.VERY_HIGH="Very High",R.EXTREME="Extreme",(N=c||(r.PressureTendencyCode=c={}))[N.STEADY=0]="STEADY",N[N.RISING=1]="RISING",N[N.FALLING=2]="FALLING",N[N.RAPIDLY_RISING=3]="RAPIDLY_RISING",N[N.RAPIDLY_FALLING=4]="RAPIDLY_FALLING",(m=u||(r.CloudCoverPhrase=u={})).CLEAR="Clear",m.PARTLY_CLOUDY="Partly Cloudy",m.MOSTLY_CLOUDY="Mostly Cloudy",m.CLOUDY="Cloudy",(A=d||(r.IconCode=d={}))[A.TORNADO=0]="TORNADO",A[A.TROPICAL_STORM=1]="TROPICAL_STORM",A[A.HURRICANE=2]="HURRICANE",A[A.STRONG_STORMS=3]="STRONG_STORMS",A[A.THUNDERSTORMS=4]="THUNDERSTORMS",A[A.RAIN_SNOW_WINTERY_MIX=5]="RAIN_SNOW_WINTERY_MIX",A[A.RAIN_SLEET=6]="RAIN_SLEET",A[A.RAIN_SNOW_WINTERY_MIX_ALT=7]="RAIN_SNOW_WINTERY_MIX_ALT",A[A.FREEZING_DRIZZLE_RAIN=8]="FREEZING_DRIZZLE_RAIN",A[A.DRIZZLE=9]="DRIZZLE",A[A.FREEZING_DRIZZLE_RAIN_ALT=10]="FREEZING_DRIZZLE_RAIN_ALT",A[A.SHOWERS=11]="SHOWERS",A[A.RAIN=12]="RAIN",A[A.FLURRIES=13]="FLURRIES",A[A.SNOW_SHOWERS=14]="SNOW_SHOWERS",A[A.BLOWING_DRIFTING_SNOW=15]="BLOWING_DRIFTING_SNOW",A[A.SNOW=16]="SNOW",A[A.HAIL=17]="HAIL",A[A.SLEET=18]="SLEET",A[A.BLOWING_DUST_SANDSTORM=19]="BLOWING_DUST_SANDSTORM",A[A.FOGGY=20]="FOGGY",A[A.HAZE=21]="HAZE",A[A.SMOKE=22]="SMOKE",A[A.BREEZY=23]="BREEZY",A[A.WINDY=24]="WINDY",A[A.BLOWING_DRIFTING_SNOW_ALT=25]="BLOWING_DRIFTING_SNOW_ALT",A[A.CLOUDY=26]="CLOUDY",A[A.MOSTLY_CLOUDY_NIGHT=27]="MOSTLY_CLOUDY_NIGHT",A[A.MOSTLY_CLOUDY_DAY=28]="MOSTLY_CLOUDY_DAY",A[A.PARTLY_CLOUDY_NIGHT=29]="PARTLY_CLOUDY_NIGHT",A[A.PARTLY_CLOUDY_DAY=30]="PARTLY_CLOUDY_DAY",A[A.CLEAR_NIGHT=31]="CLEAR_NIGHT",A[A.SUNNY=32]="SUNNY",A[A.MOSTLY_CLEAR_NIGHT=33]="MOSTLY_CLEAR_NIGHT",A[A.MOSTLY_CLEAR_DAY=34]="MOSTLY_CLEAR_DAY",A[A.MIXED_RAIN_HAIL=35]="MIXED_RAIN_HAIL",A[A.SUNNY_ALT=36]="SUNNY_ALT",A[A.ISOLATED_THUNDERSTORMS=37]="ISOLATED_THUNDERSTORMS",A[A.SCATTERED_THUNDERSTORMS_DAY=38]="SCATTERED_THUNDERSTORMS_DAY",A[A.SCATTERED_SHOWERS_DAY=39]="SCATTERED_SHOWERS_DAY",A[A.HEAVY_RAIN=40]="HEAVY_RAIN",A[A.SCATTERED_SNOW_SHOWERS_DAY=41]="SCATTERED_SNOW_SHOWERS_DAY",A[A.HEAVY_SNOW_BLIZZARD=42]="HEAVY_SNOW_BLIZZARD",A[A.HEAVY_SNOW_BLIZZARD_ALT=43]="HEAVY_SNOW_BLIZZARD_ALT",A[A.NA=44]="NA",A[A.SCATTERED_SHOWERS_NIGHT=45]="SCATTERED_SHOWERS_NIGHT",A[A.SCATTERED_SNOW_SHOWERS_NIGHT=46]="SCATTERED_SNOW_SHOWERS_NIGHT",A[A.SCATTERED_THUNDERSTORMS_NIGHT=47]="SCATTERED_THUNDERSTORMS_NIGHT",(T=f||(r.IconCodeExtended=f={}))[T.STRONG_STORMS=300]="STRONG_STORMS",T[T.STRONG_STORMS_WIND=310]="STRONG_STORMS_WIND",T[T.FREEZING_RAIN=1e3]="FREEZING_RAIN",T[T.LIGHT_FREEZING_RAIN=1001]="LIGHT_FREEZING_RAIN",T[T.HEAVY_FREEZING_RAIN=1002]="HEAVY_FREEZING_RAIN",T[T.FREEZING_RAIN_WIND=1010]="FREEZING_RAIN_WIND",T[T.LIGHTFREEZING_RAIN_WIND=1011]="LIGHTFREEZING_RAIN_WIND",T[T.HEAVY_FREEZING_RAIN_WIND=1012]="HEAVY_FREEZING_RAIN_WIND",T[T.LIGHT_FREEZING_RAIN_FOG=1051]="LIGHT_FREEZING_RAIN_FOG",T[T.SLEET=1800]="SLEET",T[T.LIGHT_SLEET=1801]="LIGHT_SLEET",T[T.SLEET_WIND=1810]="SLEET_WIND",T[T.LIGHT_SLEET_WIND=1811]="LIGHT_SLEET_WIND",T[T.SCATTERED_THUNDERSTORMS_WIND=3819]="SCATTERED_THUNDERSTORMS_WIND",T[T.HEAVY_SNOW=4200]="HEAVY_SNOW",T[T.HEAVY_SNOW_WIND=4210]="HEAVY_SNOW_WIND",T[T.BLIZZARD=4300]="BLIZZARD",T[T.FREEZING_RAIN_SLEET=5100]="FREEZING_RAIN_SLEET",T[T.LIGHT_FREEZING_RAIN_SLEET=5101]="LIGHT_FREEZING_RAIN_SLEET",T[T.FREEZING_RAIN_SLEET_WIND=5110]="FREEZING_RAIN_SLEET_WIND",T[T.LIGHT_FREEZING_RAIN_SLEET_WIND=5111]="LIGHT_FREEZING_RAIN_SLEET_WIND",T[T.RAIN_FREEZING_RAIN=5300]="RAIN_FREEZING_RAIN",T[T.LIGHT_RAIN_FREEZING_RAIN=5301]="LIGHT_RAIN_FREEZING_RAIN",T[T.HEAVY_RAIN_FREEZING_RAIN=5302]="HEAVY_RAIN_FREEZING_RAIN",T[T.RAIN_FREEZING_RAIN_WIND=5310]="RAIN_FREEZING_RAIN_WIND",T[T.LIGHT_RAIN_FREEZING_RAIN_WIND=5311]="LIGHT_RAIN_FREEZING_RAIN_WIND",T[T.HEAVY_RAIN_FREEZING_RAIN_WIND=5312]="HEAVY_RAIN_FREEZING_RAIN_WIND",T[T.LIGHT_RAIN_FREEZING_RAIN_FOG=5351]="LIGHT_RAIN_FREEZING_RAIN_FOG",T[T.THUNDER_SNOW=5600]="THUNDER_SNOW",T[T.THUNDER_SNOW_WIND=5610]="THUNDER_SNOW_WIND",T[T.SCATTERED_STRONG_STORMS=5709]="SCATTERED_STRONG_STORMS",T[T.SCATTERED_STRONG_STORMS_WIND=5719]="SCATTERED_STRONG_STORMS_WIND",T[T.RAIN_ICE_EARLY=6500]="RAIN_ICE_EARLY",T[T.LIGHT_RAIN_ICE_EARLY=6501]="LIGHT_RAIN_ICE_EARLY",T[T.AM_RAIN_ICE=6503]="AM_RAIN_ICE",T[T.AM_LIGHT_RAIN_ICE=6504]="AM_LIGHT_RAIN_ICE",T[T.RAIN_ICE_WIND_EARLY=6510]="RAIN_ICE_WIND_EARLY",T[T.LIGHT_RAIN_ICE_WIND_EARLY=6511]="LIGHT_RAIN_ICE_WIND_EARLY",T[T.AM_RAIN_ICE_WIND=6513]="AM_RAIN_ICE_WIND",T[T.AM_LIGHT_RAIN_ICE_WIND=6514]="AM_LIGHT_RAIN_ICE_WIND",T[T.ICE_EARLY=6600]="ICE_EARLY",T[T.AM_ICE=6603]="AM_ICE",T[T.ICE_WIND_EARLY=6610]="ICE_WIND_EARLY",T[T.AM_ICE_WIND=6613]="AM_ICE_WIND",T[T.RAIN_ICE_LATE=7500]="RAIN_ICE_LATE",T[T.LIGHT_RAIN_ICE_LATE=7501]="LIGHT_RAIN_ICE_LATE",T[T.PM_RAIN_ICE=7503]="PM_RAIN_ICE",T[T.PM_LIGHT_RAIN_ICE=7504]="PM_LIGHT_RAIN_ICE",T[T.RAIN_ICE_WIND_LATE=7510]="RAIN_ICE_WIND_LATE",T[T.LIGHT_RAIN_ICE_WIND_LATE=7511]="LIGHT_RAIN_ICE_WIND_LATE",T[T.PM_RAIN_ICE_WIND=7513]="PM_RAIN_ICE_WIND",T[T.PM_LIGHT_RAIN_ICE_WIND=7514]="PM_LIGHT_RAIN_ICE_WIND",T[T.ICE_LATE=7600]="ICE_LATE",T[T.PM_ICE=7603]="PM_ICE",T[T.ICE_WIND_LATE=7610]="ICE_WIND_LATE",T[T.PM_ICE_WIND=7613]="PM_ICE_WIND",T[T.RAIN_TO_ICE=8100]="RAIN_TO_ICE",T[T.RAIN_TO_ICE_WIND=8110]="RAIN_TO_ICE_WIND",T[T.ICE_TO_RAIN=8500]="ICE_TO_RAIN",T[T.ICE_TO_RAIN_WIND=8510]="ICE_TO_RAIN_WIND",r.ICON_CODE_EXTENDED={300:"STRONG_STORMS",310:"STRONG_STORMS-WIND",1e3:"FREEZING_RAIN",1001:"LIGHT_FREEZING_RAIN",1002:"HEAVY_FREEZING_RAIN",1010:"FREEZING_RAIN-WIND",1011:"LIGHTFREEZING_RAIN-WIND",1012:"HEAVY_FREEZING_RAIN-WIND",1051:"LIGHT_FREEZING_RAIN-FOG",1800:"SLEET",1801:"LIGHT_SLEET",1810:"SLEET-WIND",1811:"LIGHT_SLEET-WIND",3819:"SCATTERED_THUNDERSTORMS-WIND",4200:"HEAVY_SNOW",4210:"HEAVY_SNOW-WIND",4300:"BLIZZARD",5100:"FREEZING_RAIN-SLEET",5101:"LIGHT_FREEZING_RAIN-SLEET",5110:"FREEZING_RAIN-SLEET-WIND",5111:"LIGHT_FREEZING_RAIN-SLEET-WIND",5300:"RAIN-FREEZING_RAIN",5301:"LIGHT_RAIN-FREEZING_RAIN",5302:"HEAVY_RAIN-FREEZING_RAIN",5310:"RAIN-FREEZING_RAIN-WIND",5311:"LIGHT_RAIN-FREEZING_RAIN-WIND",5312:"HEAVY_RAIN-FREEZING_RAIN-WIND",5351:"LIGHT_RAIN-FREEZING_RAIN-FOG",5600:"THUNDER_SNOW",5610:"THUNDER_SNOW-WIND",5709:"SCATTERED_STRONG_STORMS",5719:"SCATTERED_STRONG_STORMS-WIND",6500:"RAIN-ICE_EARLY",6501:"LIGHT_RAIN-ICE_EARLY",6503:"AM_RAIN-ICE",6504:"AM_LIGHT_RAIN-ICE",6510:"RAIN-ICE-WIND_EARLY",6511:"LIGHT_RAIN-ICE-WIND_EARLY",6513:"AM_RAIN-ICE-WIND",6514:"AM_LIGHT_RAIN-ICE-WIND",6600:"ICE_EARLY",6603:"AM_ICE",6610:"ICE-WIND_EARLY",6613:"AM_ICE-WIND",7500:"RAIN-ICE_LATE",7501:"LIGHT_RAIN-ICE_LATE",7503:"PM_RAIN-ICE",7504:"PM_LIGHT_RAIN-ICE",7510:"RAIN-ICE-WIND_LATE",7511:"LIGHT_RAIN-ICE-WIND_LATE",7513:"PM_RAIN-ICE-WIND",7514:"PM_LIGHT_RAIN-ICE-WIND",7600:"ICE_LATE",7603:"PM_ICE",7610:"ICE-WIND_LATE",7613:"PM_ICE-WIND",8100:"RAIN_TO_ICE",8110:"RAIN_TO_ICE-WIND",8500:"ICE_TO_RAIN",8510:"ICE_TO_RAIN-WIND"},r.ICON_CODE_MAP={0:"tornado",1:"tropical-storm",2:"hurricane",3:"strong-storms",4:"thunderstorms",5:"rain-snow-wintery-mix",6:"rain-sleet",7:"rain-snow-wintery-mix",8:"freezing-drizzle-rain",9:"drizzle",10:"freezing-drizzle-rain",11:"showers",12:"rain",13:"flurries",14:"snow-showers",15:"blowing-drifting-snow",16:"snow",17:"hail",18:"sleet",19:"blowing-dust-sandstorm",20:"foggy",21:"haze",22:"smoke",23:"breezy",24:"windy",25:"blowing-drifting-snow",26:"cloudy",27:"mostly-cloudy-night",28:"mostly-cloudy-day",29:"partly-cloudy-night",30:"partly-cloudy-day",31:"clear-night",32:"sunny",33:"mostly-clear-night",34:"mostly-clear-day",35:"mixed-rain-hail",36:"sunny",37:"isolated-thunderstorms",38:"scattered-thunderstorms-day",39:"scattered-showers-day",40:"heavy-rain",41:"scattered-snow-showers-day",42:"heavy-snow-blizzard",43:"heavy-snow-blizzard",44:"na",45:"scattered-showers-night",46:"scattered-snow-showers-night",47:"scattered-thunderstorms-night"}},861160,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.normalizeCardinal=void 0;let n=e.r(349262),i={O:n.WindDirectionCardinal.WEST,NO:n.WindDirectionCardinal.NORTHWEST,NNO:n.WindDirectionCardinal.NORTH_NORTHWEST,ONO:n.WindDirectionCardinal.WEST_NORTHWEST,OSO:n.WindDirectionCardinal.WEST_SOUTHWEST,SO:n.WindDirectionCardinal.SOUTHWEST,SSO:n.WindDirectionCardinal.SOUTH_SOUTHWEST};r.normalizeCardinal=e=>i[e]||e},889951,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getCurrentObservations=a;let n=e.r(979777),i=e.r(678651),o=e.r(414655),l=e.r(861160);async function a(e){let t=(0,n.getCurrentObservationsUrlConfig)(e),r=(0,i.urlFrom)(t),a=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}}),s=await (0,o.handleFetchResponse)(a);return{...s,windDirectionCardinal:(0,l.normalizeCardinal)(s.windDirectionCardinal)}}},674885,e=>{"use strict";var t=e.i(751931),r=e.i(617874),n=e.i(889753);let i=(0,t.atom)(e=>e(n.userPreferencesAtom)?.unit||r.UNIT_IMPERIAL),o=(0,t.atom)(e=>e(i)===r.UNIT_IMPERIAL),l=(0,t.atom)(e=>e(i)===r.UNIT_METRIC),a=(0,t.atom)(e=>e(i)===r.UNIT_HYBRID);e.s(["isHybridUnitsAtom",0,a,"isImperialUnitsAtom",0,o,"isMetricUnitsAtom",0,l,"userUnitPreferenceAtom",0,i])},662023,e=>{"use strict";var t=e.i(352194);e.s(["useUrlTranslations",0,({key:e,includeEnUsLocale:r=!1,interpolationArgs:n})=>{let i=(0,t.useTranslations)("Urls"),o=e&&i(e,n)||"";if(!r)if("/en-US"===o)return"/";else return o.replace("/en-US/","/");return o}])},870393,e=>{"use strict";let t=(0,e.i(514514).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",()=>t],870393)},251392,e=>{"use strict";var t=e.i(477716);e.s(["useRefMemo",0,e=>{let r=(0,t.useRef)(e);return r.current=e,r}])},859827,993269,e=>{"use strict";var t=e.i(297647),r=e.i(477716),n=e.i(747961);let i=(0,r.forwardRef)(({title:e,titleId:r,desc:n,descId:i,...o},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,t.jsx)("desc",{id:i,children:n}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Plus"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M12 8.5a.8.8 0 0 0-.8-.8H8.8V5.3a.8.8 0 1 0-1.6 0v2.4H4.8a.8.8 0 1 0 0 1.6h2.4v2.4a.8.8 0 0 0 1.6 0V9.3h2.4a.8.8 0 0 0 .8-.8"})]})),o=r.default.forwardRef((e,r)=>(0,t.jsx)(n.BaseIcon,{ref:r,icon:i,...e}));o.displayName="Plus",e.s(["Plus",0,o],859827);let l=(0,r.forwardRef)(({title:e,titleId:r,desc:n,descId:i,...o},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,t.jsx)("desc",{id:i,children:n}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Minus"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M12 8.5a.8.8 0 0 0-.8-.8H4.8a.8.8 0 1 0 0 1.6h6.4a.8.8 0 0 0 .8-.8"})]})),a=r.default.forwardRef((e,r)=>(0,t.jsx)(n.BaseIcon,{ref:r,icon:l,...e}));a.displayName="Minus",e.s(["Minus",0,a],993269)},287638,e=>{"use strict";var t=e.i(297647),r=e.i(477716),n=e.i(291967),i=e.i(144977),o=e.i(156207),l=e.i(60212),a=e.i(371353),s=e.i(89535),c=e.i(461194);let u=["top","right","bottom","left"],d=Math.min,f=Math.max,p=Math.round,E=Math.floor,I=e=>({x:e,y:e}),h={left:"right",right:"left",bottom:"top",top:"bottom"},_={start:"end",end:"start"};function R(e,t){return"function"==typeof e?e(t):e}function N(e){return e.split("-")[0]}function m(e){return e.split("-")[1]}function A(e){return"x"===e?"y":"x"}function T(e){return"y"===e?"height":"width"}let g=new Set(["top","bottom"]);function y(e){return g.has(N(e))?"y":"x"}function v(e){return e.replace(/start|end/g,e=>_[e])}let S=["left","right"],x=["right","left"],C=["top","bottom"],w=["bottom","top"];function D(e){return e.replace(/left|right|bottom|top/g,e=>h[e])}function O(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function L(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function b(e,t,r){let n,{reference:i,floating:o}=e,l=y(t),a=A(y(t)),s=T(a),c=N(t),u="y"===l,d=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,p=i[s]/2-o[s]/2;switch(c){case"top":n={x:d,y:i.y-o.height};break;case"bottom":n={x:d,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:f};break;case"left":n={x:i.x-o.width,y:f};break;default:n={x:i.x,y:i.y}}switch(m(t)){case"start":n[a]-=p*(r&&u?-1:1);break;case"end":n[a]+=p*(r&&u?-1:1)}return n}let H=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:l}=r,a=o.filter(Boolean),s=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=b(c,n,s),f=n,p={},E=0;for(let r=0;re[t]>=0)}let P=new Set(["left","top"]);async function F(e,t){let{placement:r,platform:n,elements:i}=e,o=await (null==n.isRTL?void 0:n.isRTL(i.floating)),l=N(r),a=m(r),s="y"===y(r),c=P.has(l)?-1:1,u=o&&s?-1:1,d=R(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:E}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof E&&(p="end"===a?-1*E:E),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}function j(){return"u">typeof window}function k(e){return U(e)?(e.nodeName||"").toLowerCase():"#document"}function Y(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Z(e){var t;return null==(t=(U(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function U(e){return!!j()&&(e instanceof Node||e instanceof Y(e).Node)}function z(e){return!!j()&&(e instanceof Element||e instanceof Y(e).Element)}function V(e){return!!j()&&(e instanceof HTMLElement||e instanceof Y(e).HTMLElement)}function B(e){return!(!j()||"u"{try{return e.matches(t)}catch(e){return!1}})}let J=["transform","translate","scale","rotate","perspective"],ee=["transform","translate","scale","rotate","perspective","filter"],et=["paint","layout","strict","content"];function er(e){let t=en(),r=z(e)?el(e):e;return J.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||ee.some(e=>(r.willChange||"").includes(e))||et.some(e=>(r.contain||"").includes(e))}function en(){return!("u"z(e)&&"body"!==k(e)),i=null,o="fixed"===el(e).position,l=o?es(e):e;for(;z(l)&&!eo(l);){let t=el(l),r=er(l);r||"fixed"!==t.position||(i=null),(o?!r&&!i:!r&&"static"===t.position&&!!i&&eN.has(i.position)||K(l)&&!r&&function e(t,r){let n=es(t);return!(n===r||!z(n)||eo(n))&&("fixed"===el(n).position||e(n,r))}(e,l))?n=n.filter(e=>e!==l):i=t,l=es(l)}return t.set(e,n),n}(t,this._c):[].concat(r),n],l=o[0],a=o.reduce((e,r)=>{let n=em(t,r,i);return e.top=f(n.top,e.top),e.right=d(n.right,e.right),e.bottom=d(n.bottom,e.bottom),e.left=f(n.left,e.left),e},em(t,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:eg,getElementRects:ey,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=ed(e);return{width:t,height:r}},getScale:ep,isElement:z,isRTL:function(e){return"rtl"===el(e).direction}};function eS(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let ex=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:i,rects:o,platform:l,elements:a,middlewareData:s}=t,{element:c,padding:u=0}=R(e,t)||{};if(null==c)return{};let p=O(u),E={x:r,y:n},I=A(y(i)),h=T(I),_=await l.getDimensions(c),N="y"===I,g=N?"clientHeight":"clientWidth",v=o.reference[h]+o.reference[I]-E[I]-o.floating[h],S=E[I]-o.reference[I],x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c)),C=x?x[g]:0;C&&await (null==l.isElement?void 0:l.isElement(x))||(C=a.floating[g]||o.floating[h]);let w=C/2-_[h]/2-1,D=d(p[N?"top":"left"],w),L=d(p[N?"bottom":"right"],w),b=C-_[h]-L,H=C/2-_[h]/2+(v/2-S/2),W=f(D,d(H,b)),G=!s.arrow&&null!=m(i)&&H!==W&&o.reference[h]/2-(Htypeof document?r.useLayoutEffect:function(){};function eD(e,t){let r,n,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!eD(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!e.$$typeof)&&!eD(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function eO(e){return"u"{t.current=e}),t}var eH=e.i(556872),eW=r.forwardRef((e,r)=>{let{children:n,width:i=10,height:o=5,...l}=e;return(0,t.jsx)(eH.Primitive.svg,{...l,ref:r,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,t.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eW.displayName="Arrow";var eG=e.i(252960),eM=e.i(127864),eP="Popper",[eF,ej]=(0,o.createContextScope)(eP),[ek,eY]=eF(eP),eZ=e=>{let{__scopePopper:n,children:i}=e,[o,l]=r.useState(null);return(0,t.jsx)(ek,{scope:n,anchor:o,onAnchorChange:l,children:i})};eZ.displayName=eP;var eU="PopperAnchor",ez=r.forwardRef((e,n)=>{let{__scopePopper:o,virtualRef:l,...a}=e,s=eY(eU,o),c=r.useRef(null),u=(0,i.useComposedRefs)(n,c),d=r.useRef(null);return r.useEffect(()=>{let e=d.current;d.current=l?.current||c.current,e!==d.current&&s.onAnchorChange(d.current)}),l?null:(0,t.jsx)(eH.Primitive.div,{...a,ref:u})});ez.displayName=eU;var eV="PopperContent",[eB,e$]=eF(eV),eK=r.forwardRef((e,n)=>{var o,l,a,s,c,u,p,I,h,_,g,O,L;let{__scopePopper:b,side:j="bottom",sideOffset:k=0,align:Y="center",alignOffset:U=0,arrowPadding:z=0,avoidCollisions:V=!0,collisionBoundary:B=[],collisionPadding:$=0,sticky:K="partial",hideWhenDetached:X=!1,updatePositionStrategy:q="optimized",onPlaced:Q,...J}=e,ee=eY(eV,b),[et,er]=r.useState(null),en=(0,i.useComposedRefs)(n,e=>er(e)),[ei,eo]=r.useState(null),el=function(e){let[t,n]=r.useState(void 0);return(0,eM.useLayoutEffect)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(ei),ea=el?.width??0,es=el?.height??0,eu="number"==typeof $?$:{top:0,right:0,bottom:0,left:0,...$},ed=Array.isArray(B)?B:[B],ep=ed.length>0,eE={padding:eu,boundary:ed.filter(eJ),altBoundary:ep},{refs:eI,floatingStyles:e_,placement:eR,isPositioned:eN,middlewareData:em}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:l,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,E]=r.useState(i);eD(p,i)||E(i);let[I,h]=r.useState(null),[_,R]=r.useState(null),N=r.useCallback(e=>{e!==g.current&&(g.current=e,h(e))},[]),m=r.useCallback(e=>{e!==y.current&&(y.current=e,R(e))},[]),A=l||I,T=a||_,g=r.useRef(null),y=r.useRef(null),v=r.useRef(d),S=null!=c,x=eb(c),C=eb(o),w=eb(u),D=r.useCallback(()=>{var e,r;let i,o,l;if(!g.current||!y.current)return;let a={placement:t,strategy:n,middleware:p};C.current&&(a.platform=C.current),(e=g.current,r=y.current,i=new Map,l={...(o={platform:ev,...a}).platform,_c:i},H(e,r,{...o,platform:l})).then(e=>{let t={...e,isPositioned:!1!==w.current};O.current&&!eD(v.current,t)&&(v.current=t,eC.flushSync(()=>{f(t)}))})},[p,t,n,C,w]);ew(()=>{!1===u&&v.current.isPositioned&&(v.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);let O=r.useRef(!1);ew(()=>(O.current=!0,()=>{O.current=!1}),[]),ew(()=>{if(A&&(g.current=A),T&&(y.current=T),A&&T){if(x.current)return x.current(A,T,D);D()}},[A,T,D,x,S]);let L=r.useMemo(()=>({reference:g,floating:y,setReference:N,setFloating:m}),[N,m]),b=r.useMemo(()=>({reference:A,floating:T}),[A,T]),W=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!b.floating)return e;let t=eL(b.floating,d.x),r=eL(b.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...eO(b.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,b.floating,d.x,d.y]);return r.useMemo(()=>({...d,update:D,refs:L,elements:b,floatingStyles:W}),[d,D,L,b,W])}({strategy:"fixed",placement:j+("center"!==Y?"-"+Y:""),whileElementsMounted:(...e)=>(function(e,t,r,n){let i;void 0===n&&(n={});let{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=n,u=ef(e),p=o||l?[...u?ec(u):[],...ec(t)]:[];p.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),l&&e.addEventListener("resize",r)});let I=u&&s?function(e,t){let r,n=null,i=Z(e);function o(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),o();let c=e.getBoundingClientRect(),{left:u,top:p,width:I,height:h}=c;if(a||t(),!I||!h)return;let _={rootMargin:-E(p)+"px "+-E(i.clientWidth-(u+I))+"px "+-E(i.clientHeight-(p+h))+"px "+-E(u)+"px",threshold:f(0,d(1,s))||1},R=!0;function N(t){let n=t[0].intersectionRatio;if(n!==s){if(!R)return l();n?l(!1,n):r=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==n||eS(c,e.getBoundingClientRect())||l(),R=!1}try{n=new IntersectionObserver(N,{..._,root:i.ownerDocument})}catch(e){n=new IntersectionObserver(N,_)}n.observe(e)}(!0),o}(u,r):null,h=-1,_=null;a&&(_=new ResizeObserver(e=>{let[n]=e;n&&n.target===u&&_&&(_.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=_)||e.observe(t)})),r()}),u&&!c&&_.observe(u),_.observe(t));let R=c?eh(e):null;return c&&function t(){let n=eh(e);R&&!eS(R,n)&&r(),R=n,i=requestAnimationFrame(t)}(),r(),()=>{var e;p.forEach(e=>{o&&e.removeEventListener("scroll",r),l&&e.removeEventListener("resize",r)}),null==I||I(),null==(e=_)||e.disconnect(),_=null,c&&cancelAnimationFrame(i)}})(...e,{animationFrame:"always"===q}),elements:{reference:ee.anchor},middleware:[{...{name:"offset",options:l=o={mainAxis:k+es,alignmentAxis:U},async fn(e){var t,r;let{x:n,y:i,placement:o,middlewareData:a}=e,s=await F(e,l);return o===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:n+s.x,y:i+s.y,data:{...s,placement:o}}}},options:[o,void 0]},V&&{...{name:"shift",options:c=s={mainAxis:!0,crossAxis:!1,limiter:"partial"===K?{...(a=void 0,{options:a={},fn(e){let{x:t,y:r,placement:n,rects:i,middlewareData:o}=e,{offset:l=0,mainAxis:s=!0,crossAxis:c=!0}=R(a,e),u={x:t,y:r},d=y(n),f=A(d),p=u[f],E=u[d],I=R(l,e),h="number"==typeof I?{mainAxis:I,crossAxis:0}:{mainAxis:0,crossAxis:0,...I};if(s){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+h.mainAxis,r=i.reference[f]+i.reference[e]-h.mainAxis;pr&&(p=r)}if(c){var _,m;let e="y"===f?"width":"height",t=P.has(N(n)),r=i.reference[d]-i.floating[e]+(t&&(null==(_=o.offset)?void 0:_[d])||0)+(t?0:h.crossAxis),l=i.reference[d]+i.reference[e]+(t?0:(null==(m=o.offset)?void 0:m[d])||0)-(t?h.crossAxis:0);El&&(E=l)}return{[f]:p,[d]:E}}}),options:[void 0,void 0]}:void 0,...eE},async fn(e){let{x:t,y:r,placement:n}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:l={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...a}=R(c,e),s={x:t,y:r},u=await W(e,a),p=y(N(n)),E=A(p),I=s[E],h=s[p];if(i){let e="y"===E?"top":"left",t="y"===E?"bottom":"right",r=I+u[e],n=I-u[t];I=f(r,d(I,n))}if(o){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",r=h+u[e],n=h-u[t];h=f(r,d(h,n))}let _=l.fn({...e,[E]:I,[p]:h});return{..._,data:{x:_.x-t,y:_.y-r,enabled:{[E]:i,[p]:o}}}}},options:[s,void 0]},V&&{...{name:"flip",options:p=u={...eE},async fn(e){var t,r,n,i,o,l,a,s;let c,u,d,{placement:f,middlewareData:E,rects:I,initialPlacement:h,platform:_,elements:g}=e,{mainAxis:O=!0,crossAxis:L=!0,fallbackPlacements:b,fallbackStrategy:H="bestFit",fallbackAxisSideDirection:G="none",flipAlignment:M=!0,...P}=R(p,e);if(null!=(t=E.arrow)&&t.alignmentOffset)return{};let F=N(f),j=y(h),k=N(h)===h,Y=await (null==_.isRTL?void 0:_.isRTL(g.floating)),Z=b||(k||!M?[D(h)]:(c=D(h),[v(h),c,v(c)])),U="none"!==G;!b&&U&&Z.push(...(u=m(h),d=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?x:S;return t?S:x;case"left":case"right":return t?C:w;default:return[]}}(N(h),"start"===G,Y),u&&(d=d.map(e=>e+"-"+u),M&&(d=d.concat(d.map(v)))),d));let z=[h,...Z],V=await W(e,P),B=[],$=(null==(r=E.flip)?void 0:r.overflows)||[];if(O&&B.push(V[F]),L){let e,t,r,n,i=(l=f,a=I,void 0===(s=Y)&&(s=!1),e=m(l),r=T(t=A(y(l))),n="x"===t?e===(s?"end":"start")?"right":"left":"start"===e?"bottom":"top",a.reference[r]>a.floating[r]&&(n=D(n)),[n,D(n)]);B.push(V[i[0]],V[i[1]])}if($=[...$,{placement:f,overflows:B}],!B.every(e=>ey(e.placement)!==j||e.overflows[0]>0)))return{data:{index:e,overflows:$},reset:{placement:t}};let r=null==(i=$.filter(e=>e.overflows[0]e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!r)switch(H){case"bestFit":{let e=null==(o=$.filter(e=>{if(U){let t=y(e.placement);return t===j||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(r=e);break}case"initialPlacement":r=h}if(f!==r)return{reset:{placement:r}}}return{}}},options:[u,void 0]},{...{name:"size",options:h=I={...eE,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:i,height:o}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${r}px`),l.setProperty("--radix-popper-available-height",`${n}px`),l.setProperty("--radix-popper-anchor-width",`${i}px`),l.setProperty("--radix-popper-anchor-height",`${o}px`)}},async fn(e){var t,r;let n,i,{placement:o,rects:l,platform:a,elements:s}=e,{apply:c=()=>{},...u}=R(h,e),p=await W(e,u),E=N(o),I=m(o),_="y"===y(o),{width:A,height:T}=l.floating;"top"===E||"bottom"===E?(n=E,i=I===(await (null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(i=E,n="end"===I?"top":"bottom");let g=T-p.top-p.bottom,v=A-p.left-p.right,S=d(T-p[n],g),x=d(A-p[i],v),C=!e.middlewareData.shift,w=S,D=x;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(D=v),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(w=g),C&&!I){let e=f(p.left,0),t=f(p.right,0),r=f(p.top,0),n=f(p.bottom,0);_?D=A-2*(0!==e||0!==t?e+t:f(p.left,p.right)):w=T-2*(0!==r||0!==n?r+n:f(p.top,p.bottom))}await c({...e,availableWidth:D,availableHeight:w});let O=await a.getDimensions(s.floating);return A!==O.width||T!==O.height?{reset:{rects:!0}}:{}}},options:[I,void 0]},ei&&{...{name:"arrow",options:g=_={element:ei,padding:z},fn(e){let{element:t,padding:r}="function"==typeof g?g(e):g;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?ex({element:t.current,padding:r}).fn(e):{}:t?ex({element:t,padding:r}).fn(e):{}}},options:[_,void 0]},e0({arrowWidth:ea,arrowHeight:es}),X&&{...{name:"hide",options:L=O={strategy:"referenceHidden",...eE},async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...n}=R(L,e);switch(r){case"referenceHidden":{let r=G(await W(e,{...n,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:M(r)}}}case"escaped":{let r=G(await W(e,{...n,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:M(r)}}}default:return{}}}},options:[O,void 0]}]}),[eA,eT]=e1(eR),eg=(0,eG.useCallbackRef)(Q);(0,eM.useLayoutEffect)(()=>{eN&&eg?.()},[eN,eg]);let ey=em.arrow?.x,eW=em.arrow?.y,eP=em.arrow?.centerOffset!==0,[eF,ej]=r.useState();return(0,eM.useLayoutEffect)(()=>{et&&ej(window.getComputedStyle(et).zIndex)},[et]),(0,t.jsx)("div",{ref:eI.setFloating,"data-radix-popper-content-wrapper":"",style:{...e_,transform:eN?e_.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eF,"--radix-popper-transform-origin":[em.transformOrigin?.x,em.transformOrigin?.y].join(" "),...em.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,t.jsx)(eB,{scope:b,placedSide:eA,onArrowChange:eo,arrowX:ey,arrowY:eW,shouldHideArrow:eP,children:(0,t.jsx)(eH.Primitive.div,{"data-side":eA,"data-align":eT,...J,ref:en,style:{...J.style,animation:eN?void 0:"none"}})})})});eK.displayName=eV;var eX="PopperArrow",eq={top:"bottom",right:"left",bottom:"top",left:"right"},eQ=r.forwardRef(function(e,r){let{__scopePopper:n,...i}=e,o=e$(eX,n),l=eq[o.placedSide];return(0,t.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,t.jsx)(eW,{...i,ref:r,style:{...i.style,display:"block"}})})});function eJ(e){return null!==e}eQ.displayName=eX;var e0=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,l=o?0:e.arrowWidth,a=o?0:e.arrowHeight,[s,c]=e1(r),u={start:"0%",center:"50%",end:"100%"}[c],d=(i.arrow?.x??0)+l/2,f=(i.arrow?.y??0)+a/2,p="",E="";return"bottom"===s?(p=o?u:`${d}px`,E=`${-a}px`):"top"===s?(p=o?u:`${d}px`,E=`${n.floating.height+a}px`):"right"===s?(p=`${-a}px`,E=o?u:`${f}px`):"left"===s&&(p=`${n.floating.width+a}px`,E=o?u:`${f}px`),{data:{x:p,y:E}}}});function e1(e){let[t,r="center"]=e.split("-");return[t,r]}var e7=e.i(614952),e5=e.i(653747),e2=e.i(93074),e6=e.i(534643),e3=e.i(73772),e4=e.i(927499),e8="Popover",[e9,te]=(0,o.createContextScope)(e8,[ej]),tt=ej(),[tr,tn]=e9(e8),ti=e=>{let{__scopePopover:n,children:i,open:o,defaultOpen:l,onOpenChange:a,modal:s=!1}=e,u=tt(n),d=r.useRef(null),[f,p]=r.useState(!1),[E,I]=(0,e6.useControllableState)({prop:o,defaultProp:l??!1,onChange:a,caller:e8});return(0,t.jsx)(eZ,{...u,children:(0,t.jsx)(tr,{scope:n,contentId:(0,c.useId)(),triggerRef:d,open:E,onOpenChange:I,onOpenToggle:r.useCallback(()=>I(e=>!e),[I]),hasCustomAnchor:f,onCustomAnchorAdd:r.useCallback(()=>p(!0),[]),onCustomAnchorRemove:r.useCallback(()=>p(!1),[]),modal:s,children:i})})};ti.displayName=e8;var to="PopoverAnchor";r.forwardRef((e,n)=>{let{__scopePopover:i,...o}=e,l=tn(to,i),a=tt(i),{onCustomAnchorAdd:s,onCustomAnchorRemove:c}=l;return r.useEffect(()=>(s(),()=>c()),[s,c]),(0,t.jsx)(ez,{...a,...o,ref:n})}).displayName=to;var tl="PopoverTrigger",ta=r.forwardRef((e,r)=>{let{__scopePopover:o,...l}=e,a=tn(tl,o),s=tt(o),c=(0,i.useComposedRefs)(r,a.triggerRef),u=(0,t.jsx)(eH.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":tm(a.open),...l,ref:c,onClick:(0,n.composeEventHandlers)(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?u:(0,t.jsx)(ez,{asChild:!0,...s,children:u})});ta.displayName=tl;var ts="PopoverPortal",[tc,tu]=e9(ts,{forceMount:void 0}),td=e=>{let{__scopePopover:r,forceMount:n,children:i,container:o}=e,l=tn(ts,r);return(0,t.jsx)(tc,{scope:r,forceMount:n,children:(0,t.jsx)(e5.Presence,{present:n||l.open,children:(0,t.jsx)(e7.Portal,{asChild:!0,container:o,children:i})})})};td.displayName=ts;var tf="PopoverContent",tp=r.forwardRef((e,r)=>{let n=tu(tf,e.__scopePopover),{forceMount:i=n.forceMount,...o}=e,l=tn(tf,e.__scopePopover);return(0,t.jsx)(e5.Presence,{present:i||l.open,children:l.modal?(0,t.jsx)(tI,{...o,ref:r}):(0,t.jsx)(th,{...o,ref:r})})});tp.displayName=tf;var tE=(0,e2.createSlot)("PopoverContent.RemoveScroll"),tI=r.forwardRef((e,o)=>{let l=tn(tf,e.__scopePopover),a=r.useRef(null),s=(0,i.useComposedRefs)(o,a),c=r.useRef(!1);return r.useEffect(()=>{let e=a.current;if(e)return(0,e3.hideOthers)(e)},[]),(0,t.jsx)(e4.RemoveScroll,{as:tE,allowPinchZoom:!0,children:(0,t.jsx)(t_,{...e,ref:s,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,n.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),c.current||l.triggerRef.current?.focus()}),onPointerDownOutside:(0,n.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;c.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,n.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),th=r.forwardRef((e,n)=>{let i=tn(tf,e.__scopePopover),o=r.useRef(!1),l=r.useRef(!1);return(0,t.jsx)(t_,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||i.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,l.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(l.current=!0));let r=t.target;i.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}})}),t_=r.forwardRef((e,r)=>{let{__scopePopover:n,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:c,disableOutsidePointerEvents:u,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:E,...I}=e,h=tn(tf,n),_=tt(n);return(0,a.useFocusGuards)(),(0,t.jsx)(s.FocusScope,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:c,children:(0,t.jsx)(l.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:E,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onDismiss:()=>h.onOpenChange(!1),children:(0,t.jsx)(eK,{"data-state":tm(h.open),role:"dialog",id:h.contentId,..._,...I,ref:r,style:{...I.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),tR="PopoverClose";r.forwardRef((e,r)=>{let{__scopePopover:i,...o}=e,l=tn(tR,i);return(0,t.jsx)(eH.Primitive.button,{type:"button",...o,ref:r,onClick:(0,n.composeEventHandlers)(e.onClick,()=>l.onOpenChange(!1))})}).displayName=tR;var tN=r.forwardRef((e,r)=>{let{__scopePopover:n,...i}=e,o=tt(n);return(0,t.jsx)(eQ,{...o,...i,ref:r})});function tm(e){return e?"open":"closed"}tN.displayName="PopoverArrow";var tA=e.i(632137);let tT=r.createContext({trigger:"click",onMouseEnter:()=>{},onMouseLeave:()=>{}});function tg({trigger:e="click",openDelay:n=0,closeDelay:i=300,open:o,onOpenChange:l,...a}){let[s,c]=r.useState(o||!1),u=r.useRef(null),d=r.useRef(null);r.useEffect(()=>{void 0!==o&&c(o)},[o]);let f=r.useCallback(e=>{c(e),l?.(e)},[l]);r.useEffect(()=>()=>{u.current&&clearTimeout(u.current),d.current&&clearTimeout(d.current)},[]);let p=r.useCallback(()=>{"hover"===e&&(d.current&&(clearTimeout(d.current),d.current=null),s||(u.current=setTimeout(()=>{f(!0)},n)))},[e,s,n,f]),E=r.useCallback(()=>{"hover"===e&&(u.current&&(clearTimeout(u.current),u.current=null),d.current=setTimeout(()=>{f(!1)},i))},[e,i,f]),I=r.useMemo(()=>({trigger:e,onMouseEnter:p,onMouseLeave:E}),[e,p,E]);return(0,t.jsx)(tT.Provider,{value:I,children:(0,t.jsx)(ti,{"data-slot":"popover",open:s,onOpenChange:f,...a})})}function ty({triggerClass:e,...n}){let{trigger:i,onMouseEnter:o,onMouseLeave:l}=r.useContext(tT);return(0,t.jsx)(ta,{"data-slot":"popover-trigger",className:e,..."hover"===i?{onMouseEnter:o,onMouseLeave:l}:{},...n})}function tv({...e}){return(0,t.jsx)(tN,{"data-slot":"popover-arrow",...e})}function tS({className:e,align:n="center",sideOffset:i=4,children:o,showArrow:l=!0,...a}){let{trigger:s,onMouseEnter:c,onMouseLeave:u}=r.useContext(tT);return(0,t.jsx)(td,{children:(0,t.jsxs)(tp,{"data-slot":"popover-content",align:n,sideOffset:i,className:(0,tA.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border-none p-4 shadow-[0_2px_12px_0_#0003] outline-hidden",e),..."hover"===s?{onMouseEnter:c,onMouseLeave:u}:{},...a,children:[l&&(0,t.jsx)(tN,{className:"border-none fill-white",height:12,width:20}),o]})})}e.s(["Popover",()=>tg,"PopoverArrow",()=>tv,"PopoverContent",()=>tS,"PopoverTrigger",()=>ty],287638)},598513,e=>{"use strict";var t=e.i(947118),r=e.i(737801),n=e.i(477716);e.s(["useSendInteractionEvent",0,()=>{let e="interaction",i=(0,t.useIsInitialized)(),o=(0,r.useEventAttributes)();return(0,n.useCallback)(t=>{let r={...o,...t};if(!i)return void console.warn("MParticle is not initialized");try{window.mParticle?.logEvent?.(e,window.mParticle?.EventType?.Other,r),console.debug(`MParticle: Event "${e}" tracked`,r)}catch(t){console.error(`MParticle: Event "${e}" failed`,t)}},[o,i])}])},604323,e=>{"use strict";let t=(0,e.i(751931).atom)();e.s(["metricsArticleDataAtom",0,t])},630986,e=>{"use strict";var t=e.i(475566),r=e.i(604323);e.s(["useCMSAttributes",0,()=>(0,t.useAtomValue)(r.metricsArticleDataAtom)])},572739,e=>{"use strict";var t=e.i(297647),r=e.i(241722),n=e.i(296835),i=e.i(751931);let o=(0,i.atom)(!1);function l(){try{window.top?.DprSdk&&(window.DprSdk=window.top.DprSdk,window.DprSdk.init({getApplicationInfo:()=>({id:"weather.com",version:"2.0.0"}),getUserRegime:()=>(0,n.getCookie)("twc-privacy")}),(0,i.getDefaultStore)().set(o,!0))}catch(e){}}function a(){return(0,t.jsx)(r.default,{async:!0,src:"https://weather.com/api/v1/script/dprSdkScript.js",onLoad:l})}e.s(["default",()=>a,"dprSdkIsInitializedAtom",0,o])},742436,e=>{"use strict";var t=e.i(694914),r=e.i(297647),n=e.i(477716),i=e.i(241722),o=e.i(333350),l=e.i(310847),a=e.i(475566),s=e.i(737801),c=e.i(528600),u=e.i(391451);let d="client-a74nh7wdmymfO9eOcl5awe1cgB30BDRV",f="production"!==t.default.env.VERCEL_TARGET_ENV,p=(0,n.createContext)(null),E=({children:e,scriptSrc:t})=>{let E,I=(0,a.useAtomValue)(l.wxuUserAnonymousIdAtom),h=(E=(0,s.useEventAttributes)(),(0,n.useCallback)((e,t={})=>{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={...E,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)}},[E])),{user:_}=(0,c.useUser)(),[R,N]=(0,n.useState)(!1),[m,A]=(0,n.useState)(!1),[T,g]=(0,n.useState)({});(0,n.useEffect)(()=>{if(o.default){let e=(0,u.getCookie)("amplitude-variants");if(e)try{let t=JSON.parse(e.toString());g(t),f&&Object.keys(t).length>0&&console.debug("[Experiment] Loaded server variants from cookie:",Object.keys(t))}catch(e){console.error("[Experiment] Failed to parse variants cookie:",e)}}},[]);let y=function(e,t,r){let i=(0,n.useRef)(null),[l,a]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(!l&&o.default&&d&&t){if(!window.Experiment)return void console.error("Amplitude Experiment SDK not loaded. Script may still be loading.");try{let t=Object.keys(r).length>0;i.current=window.Experiment.initialize(d,{debug:f,fetchTimeoutMillis:5e3,retryFetchOnFailure:!0,fetchOnStart:!1,automaticExposureTracking:!0,exposureTrackingProvider:{track:t=>{try{e(t),f&&console.debug("[Experiment] Exposure tracked:",t)}catch(e){console.error("[Experiment] Failed to track exposure:",e)}}},initialVariants:t?r:void 0,source:t?"initialVariants":"localStorage"}),a(!0),f&&(t?console.debug("[Experiment] SDK initialized with server variants:",Object.keys(r)):console.debug("[Experiment] SDK initialized (will fetch from API)"))}catch(e){console.error("Failed to initialize Amplitude Experiment SDK:",e)}}},[l,t,e,r]),i.current}(h,R,T);(0,n.useEffect)(()=>{(async()=>{if(!y)return;let e=(0,u.getCookie)("ANON_C")?.toString(),t=_.userID||e||I;if(!t){f&&console.debug("[Experiment] No user identifier available"),A(!0);return}let r={device_id:I,user_id:t,user_properties:{}};f&&console.debug("[Experiment] Fetching experiments from API for user:",r);try{await y.fetch(r)}catch(e){console.error("[Experiment] Failed to fetch experiments:",e)}finally{A(!0)}})()},[y,I,_.userID]);let v=(0,n.useRef)(!1);return(0,n.useEffect)(()=>{v.current=!1},[_.userID]),(0,n.useEffect)(()=>{if(!y||0===Object.keys(T).length||v.current)return;let e=()=>{if(!v.current){for(let e of Object.keys(T))y.variant(e);v.current=!0,f&&console.debug("[Experiment] Tracked exposures for server variants:",Object.keys(T))}};window.mParticle?.isInitialized?.()?e():window.mParticle?.ready?.(e)},[y,T]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.default,{src:t,strategy:"afterInteractive",onLoad:()=>{N(!0),f&&console.debug("Amplitude Experiment script loaded")},onError:e=>{console.error("Failed to load Amplitude Experiment script:",e)}}),(0,r.jsx)(p.Provider,{value:{client:y,variant:(e,t)=>{if(!y)return t;let r=y.variant(e,t);return f&&console.debug("[Experiment] Current Variant:",r),r},fetch:e=>{if(!y)return Promise.resolve();if(!e){let e=(0,u.getCookie)("ANON_C")?.toString(),t=_.userID||e||I;if(t){let e=_.userID?{user_id:t,user_properties:{}}:{device_id:t,user_properties:{}};return y.fetch(e)}}return y.fetch(e)},isFetchComplete:m},children:e})]})};e.s(["ExperimentProvider",0,E,"default",0,E,"useExperimentContext",0,()=>{let e=(0,n.useContext)(p);if(!e)throw Error("useExperimentContext must be used within an AmplitudeExperimentProvider");return e}],742436)},357784,770460,e=>{"use strict";var t=e.i(477716),r=e.i(156207),n=e.i(144977),i=e.i(93074),o=e.i(297647);function l(e){let l=e+"CollectionProvider",[a,s]=(0,r.createContextScope)(l),[c,u]=a(l,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:r,children:n}=e,i=t.default.useRef(null),l=t.default.useRef(new Map).current;return(0,o.jsx)(c,{scope:r,itemMap:l,collectionRef:i,children:n})};d.displayName=l;let f=e+"CollectionSlot",p=(0,i.createSlot)(f),E=t.default.forwardRef((e,t)=>{let{scope:r,children:i}=e,l=u(f,r),a=(0,n.useComposedRefs)(t,l.collectionRef);return(0,o.jsx)(p,{ref:a,children:i})});E.displayName=f;let I=e+"CollectionItemSlot",h="data-radix-collection-item",_=(0,i.createSlot)(I),R=t.default.forwardRef((e,r)=>{let{scope:i,children:l,...a}=e,s=t.default.useRef(null),c=(0,n.useComposedRefs)(r,s),d=u(I,i);return t.default.useEffect(()=>(d.itemMap.set(s,{ref:s,...a}),()=>void d.itemMap.delete(s))),(0,o.jsx)(_,{...{[h]:""},ref:c,children:l})});return R.displayName=I,[{Provider:d,Slot:E,ItemSlot:R},function(r){let n=u(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(n.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[n.collectionRef,n.itemMap])},s]}var a=new WeakMap;function s(e,t){var r,n;let i,o,l;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let a=(r=e,n=t,i=r.length,(l=(o=c(n))>=0?o:i+o)=i?-1:l);return -1===a?void 0:e[a]}function c(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],a.set(this,!0)}set(e,t){return a.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,i=this.has(t),o=this.#e.length,l=c(e),a=l>=0?l:o+l,s=a=o?-1:a;if(s===this.size||i&&s===this.size-1||-1===s)return this.set(t,r),this;let u=this.size+ +!i;l=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(...e){let[t,r]=e,n=0,i=r??this.at(0);for(let r of this)i=0===n&&1===e.length?r:Reflect.apply(t,this,[i,r,n,this]),n++;return i}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);n=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[n,i,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,i=this.size-1;if(void 0===t)return n;t0&&(i=r-1);for(let e=t;el],357784);var u=t.createContext(void 0);function d(e){let r=t.useContext(u);return e||r||"ltr"}e.s(["useDirection",()=>d],770460)},665488,e=>{"use strict";var t=e.i(297647),r=e.i(477716),n=e.i(859827),i=e.i(993269),o=e.i(632137),l=e.i(368847),a=e.i(240058),s=e.i(156207),c=e.i(357784),u=e.i(144977),d=e.i(291967),f=e.i(534643),p=e.i(556872),E=e.i(127864),I=e.i(653747),h=e.i(461194),_="Collapsible",[R,N]=(0,s.createContextScope)(_),[m,A]=R(_),T=r.forwardRef((e,n)=>{let{__scopeCollapsible:i,open:o,defaultOpen:l,disabled:a,onOpenChange:s,...c}=e,[u,d]=(0,f.useControllableState)({prop:o,defaultProp:l??!1,onChange:s,caller:_});return(0,t.jsx)(m,{scope:i,disabled:a,contentId:(0,h.useId)(),open:u,onOpenToggle:r.useCallback(()=>d(e=>!e),[d]),children:(0,t.jsx)(p.Primitive.div,{"data-state":C(u),"data-disabled":a?"":void 0,...c,ref:n})})});T.displayName=_;var g="CollapsibleTrigger",y=r.forwardRef((e,r)=>{let{__scopeCollapsible:n,...i}=e,o=A(g,n);return(0,t.jsx)(p.Primitive.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":C(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...i,ref:r,onClick:(0,d.composeEventHandlers)(e.onClick,o.onOpenToggle)})});y.displayName=g;var v="CollapsibleContent",S=r.forwardRef((e,r)=>{let{forceMount:n,...i}=e,o=A(v,e.__scopeCollapsible);return(0,t.jsx)(I.Presence,{present:n||o.open,children:({present:e})=>(0,t.jsx)(x,{...i,ref:r,present:e})})});S.displayName=v;var x=r.forwardRef((e,n)=>{let{__scopeCollapsible:i,present:o,children:l,...a}=e,s=A(v,i),[c,d]=r.useState(o),f=r.useRef(null),I=(0,u.useComposedRefs)(n,f),h=r.useRef(0),_=h.current,R=r.useRef(0),N=R.current,m=s.open||c,T=r.useRef(m),g=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>T.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,E.useLayoutEffect)(()=>{let e=f.current;if(e){g.current=g.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();h.current=t.height,R.current=t.width,T.current||(e.style.transitionDuration=g.current.transitionDuration,e.style.animationName=g.current.animationName),d(o)}},[s.open,o]),(0,t.jsx)(p.Primitive.div,{"data-state":C(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!m,...a,ref:I,style:{"--radix-collapsible-content-height":_?`${_}px`:void 0,"--radix-collapsible-content-width":N?`${N}px`:void 0,...e.style},children:m&&l})});function C(e){return e?"open":"closed"}var w=e.i(770460),D="Accordion",O=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[L,b,H]=(0,c.createCollection)(D),[W,G]=(0,s.createContextScope)(D,[H,N]),M=N(),P=r.default.forwardRef((e,r)=>{let{type:n,...i}=e;return(0,t.jsx)(L.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,t.jsx)(U,{...i,ref:r}):(0,t.jsx)(Z,{...i,ref:r})})});P.displayName=D;var[F,j]=W(D),[k,Y]=W(D,{collapsible:!1}),Z=r.default.forwardRef((e,n)=>{let{value:i,defaultValue:o,onValueChange:l=()=>{},collapsible:a=!1,...s}=e,[c,u]=(0,f.useControllableState)({prop:i,defaultProp:o??"",onChange:l,caller:D});return(0,t.jsx)(F,{scope:e.__scopeAccordion,value:r.default.useMemo(()=>c?[c]:[],[c]),onItemOpen:u,onItemClose:r.default.useCallback(()=>a&&u(""),[a,u]),children:(0,t.jsx)(k,{scope:e.__scopeAccordion,collapsible:a,children:(0,t.jsx)(B,{...s,ref:n})})})}),U=r.default.forwardRef((e,n)=>{let{value:i,defaultValue:o,onValueChange:l=()=>{},...a}=e,[s,c]=(0,f.useControllableState)({prop:i,defaultProp:o??[],onChange:l,caller:D}),u=r.default.useCallback(e=>c((t=[])=>[...t,e]),[c]),d=r.default.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,t.jsx)(F,{scope:e.__scopeAccordion,value:s,onItemOpen:u,onItemClose:d,children:(0,t.jsx)(k,{scope:e.__scopeAccordion,collapsible:!0,children:(0,t.jsx)(B,{...a,ref:n})})})}),[z,V]=W(D),B=r.default.forwardRef((e,n)=>{let{__scopeAccordion:i,disabled:o,dir:l,orientation:a="vertical",...s}=e,c=r.default.useRef(null),f=(0,u.useComposedRefs)(c,n),E=b(i),I="ltr"===(0,w.useDirection)(l),h=(0,d.composeEventHandlers)(e.onKeyDown,e=>{if(!O.includes(e.key))return;let t=e.target,r=E().filter(e=>!e.ref.current?.disabled),n=r.findIndex(e=>e.ref.current===t),i=r.length;if(-1===n)return;e.preventDefault();let o=n,l=i-1,s=()=>{(o=n+1)>l&&(o=0)},c=()=>{(o=n-1){let{__scopeAccordion:n,value:i,...o}=e,l=V($,n),a=j($,n),s=M(n),c=(0,h.useId)(),u=i&&a.value.includes(i)||!1,d=l.disabled||e.disabled;return(0,t.jsx)(K,{scope:n,open:u,disabled:d,triggerId:c,children:(0,t.jsx)(T,{"data-orientation":l.orientation,"data-state":ei(u),...s,...o,ref:r,disabled:d,open:u,onOpenChange:e=>{e?a.onItemOpen(i):a.onItemClose(i)}})})});q.displayName=$;var Q="AccordionHeader",J=r.default.forwardRef((e,r)=>{let{__scopeAccordion:n,...i}=e,o=V(D,n),l=X(Q,n);return(0,t.jsx)(p.Primitive.h3,{"data-orientation":o.orientation,"data-state":ei(l.open),"data-disabled":l.disabled?"":void 0,...i,ref:r})});J.displayName=Q;var ee="AccordionTrigger",et=r.default.forwardRef((e,r)=>{let{__scopeAccordion:n,...i}=e,o=V(D,n),l=X(ee,n),a=Y(ee,n),s=M(n);return(0,t.jsx)(L.ItemSlot,{scope:n,children:(0,t.jsx)(y,{"aria-disabled":l.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:l.triggerId,...s,...i,ref:r})})});et.displayName=ee;var er="AccordionContent",en=r.default.forwardRef((e,r)=>{let{__scopeAccordion:n,...i}=e,o=V(D,n),l=X(er,n),a=M(n);return(0,t.jsx)(S,{role:"region","aria-labelledby":l.triggerId,"data-orientation":o.orientation,...a,...i,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function ei(e){return e?"open":"closed"}en.displayName=er,r.forwardRef(({className:e,href:r,children:n,...i},o)=>(0,t.jsx)(a.default,{ref:o,href:r,...i,children:(0,t.jsx)(l.Text,{variant:"Caption.M",color:"secondary",children:n})})).displayName="AccordionTextLink";let eo=r.forwardRef(({className:e,type:r="single",collapsible:n=!0,...i},l)=>{let a={ref:l,type:r,className:(0,o.cn)("w-full",e),"data-slot":"accordion",...i};return"single"===r&&(a.collapsible=n),(0,t.jsx)(P,{...a})});function el({className:e,...r}){return(0,t.jsx)(q,{"data-slot":"accordion-item",className:(0,o.cn)("w-full",e),...r})}function ea({className:e,children:r,triggerContent:a,title:s,number:c,iconClassName:u,iconNodeOverride:d,...f}){return(0,t.jsx)(J,{className:"flex",children:(0,t.jsxs)(et,{"data-slot":"accordion-trigger",className:(0,o.cn)("hover:text-whale-400 group flex flex-1 cursor-pointer items-center justify-between py-4 text-left font-medium transition-all",e),...f,children:[(0,t.jsxs)("div",{className:"flex grow items-center",children:[void 0!==c&&(0,t.jsx)("div",{className:"mr-3 flex h-6 w-6 items-center justify-center rounded-full bg-[#204794] text-sm font-medium text-white",children:(0,t.jsx)("span",{className:"leading-none tracking-wide",children:c})}),a||(s?(0,t.jsx)(l.Text,{variant:"Body.L",children:s}):r)]}),(0,t.jsx)("div",{className:"relative flex items-center",children:d||(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Plus,{className:(0,o.cn)("h-5 w-5 shrink-0 transition-all duration-200",u,"group-data-[state=open]:rotate-45 group-data-[state=open]:opacity-0")}),(0,t.jsx)(i.Minus,{className:(0,o.cn)("absolute h-5 w-5 shrink-0 opacity-0 transition-all duration-200",u,"group-data-[state=open]:opacity-100")})]})})]})})}function es({className:e,animated:r,...n}){return(0,t.jsx)(en,{"data-slot":"accordion-content",className:(0,o.cn)("overflow-hidden text-sm transition-all",{"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down":r},e),...n})}eo.displayName="Accordion",r.forwardRef(({className:e,children:r,enabled:n=!1,...i},a)=>(0,t.jsx)("div",{ref:a,className:(0,o.cn)("mt-4",e),...i,children:(0,t.jsx)(l.Text,{variant:"Caption.M",color:"disabled",children:r})})).displayName="AccordionTextSpotlight",e.s(["Accordion",()=>eo,"AccordionContent",()=>es,"AccordionItem",()=>el,"AccordionTrigger",()=>ea],665488)},436028,e=>{"use strict";e.s(["hasLength",0,e=>Array.isArray(e)&&e.length>0])}]);