(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,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),o=e.r(678651),i=e.r(414655);async function l(e){let t=(0,n.getLocationSearchUrlConfig)(e),r=(0,o.urlFrom)(t),l=await fetch(r,{headers:{"Accept-Encoding":"gzip"}});return(0,i.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";var t=e.i(477716),r=e.i(147732);function n(e,n){let[o,i]=(0,t.useState)(e);return(0,t.useEffect)(()=>{let t=(0,r.debounce)(e=>{i(e)},n);return t(e),()=>{t.cancel()}},[e,n]),o}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 o=(0,r.memo)(({className:e,unitsClassName:r,units:o,value:i,degreeSymbolClass:l,unitOnly:a})=>{let s=null!=i,c=o?(0,n.unitsSystemByCode)(o):null,d=c?.temp,u=Number.isFinite(i)&&Math.round(i);return(0,t.jsx)("span",{"data-testid":"TemperatureValue",className:e,dir:"ltr",children:s||!s&&a?(0,t.jsxs)(t.Fragment,{children:[s&&u,(0,t.jsx)("span",{className:l,children:"°"}),d&&(0,t.jsx)("span",{className:r,children:d})]}):"--"})});e.s(["Temperature",0,o])},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:o}){return{host:"api.weather.com",protocol:"https",pathname:"/v2/tropical/currentposition",query:{nautical:e,source:t,basin:r,units:n,language:o,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},349262,(e,t,r)=>{"use strict";var n,o,i,l,a,s,c,d,u,f,p,h,I,_,E,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",(h=o||(r.ForecastDuration=o={})).THREE_DAY="3day",h.FIVE_DAY="5day",h.SEVEN_DAY="7day",h.TEN_DAY="10day",h.FIFTEEN_DAY="15day",(I=i||(r.HourlyForecastDuration=i={})).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",(_=l||(r.DayOrNight=l={})).DAY="D",_.NIGHT="N",_.MISSING="X",(E=a||(r.WindDirectionCardinal=a={})).NORTH="N",E.NORTH_NORTHEAST="NNE",E.NORTHEAST="NE",E.EAST_NORTHEAST="ENE",E.EAST="E",E.EAST_SOUTHEAST="ESE",E.SOUTHEAST="SE",E.SOUTH_SOUTHEAST="SSE",E.SOUTH="S",E.SOUTH_SOUTHWEST="SSW",E.SOUTHWEST="SW",E.WEST_SOUTHWEST="WSW",E.WEST="W",E.WEST_NORTHWEST="WNW",E.NORTHWEST="NW",E.NORTH_NORTHWEST="NNW",E.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=d||(r.CloudCoverPhrase=d={})).CLEAR="Clear",m.PARTLY_CLOUDY="Partly Cloudy",m.MOSTLY_CLOUDY="Mostly Cloudy",m.CLOUDY="Cloudy",(A=u||(r.IconCode=u={}))[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),o={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=>o[e]||e},889951,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getCurrentObservations=a;let n=e.r(979777),o=e.r(678651),i=e.r(414655),l=e.r(861160);async function a(e){let t=(0,n.getCurrentObservationsUrlConfig)(e),r=(0,o.urlFrom)(t),a=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}}),s=await (0,i.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 o=(0,t.atom)(e=>e(n.userPreferencesAtom)?.unit||r.UNIT_IMPERIAL),i=(0,t.atom)(e=>e(o)===r.UNIT_IMPERIAL),l=(0,t.atom)(e=>e(o)===r.UNIT_METRIC),a=(0,t.atom)(e=>e(o)===r.UNIT_HYBRID);e.s(["isHybridUnitsAtom",0,a,"isImperialUnitsAtom",0,i,"isMetricUnitsAtom",0,l,"userUnitPreferenceAtom",0,o])},662023,e=>{"use strict";var t=e.i(352194);e.s(["useUrlTranslations",0,({key:e,includeEnUsLocale:r=!1,interpolationArgs:n})=>{let o=(0,t.useTranslations)("Urls"),i=e&&o(e,n)||"";if(!r)if("/en-US"===i)return"/";else return i.replace("/en-US/","/");return i}])},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}])},718043,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getCMSCollectionsUrlConfig=function({collectionId:e,locale:t="en_US"}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/collections/${t}/${e}`}},r.getCMSAssetByIDUrlConfig=function({language:e,assetId:t}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/a/${e}/${t}`}},r.getCMSOrderedCollectionsUrlConfig=function({collectionId:e,language:t="en_US"}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/ordered-collections/${t}/${e}`}},r.getCMSOrderedListUrlConfig=function({collectionId:e,language:t,collectionType:r}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/orderedlist/${t}/${r}/${e}`}},r.getCMSAssetsUrlConfig=function({language:e="en_US",query:t={},skip:r=0,limit:i=10,sort:l="-publishdate"}){let a={q:Object.keys(t).reduce((e,r)=>{let n=t[r];return n instanceof Array?[...e,...n.map(e=>o(r,e))]:[...e,o(r,n)]},[]).join(";"),pg:`${r},${i}`,format:"json",sort:l},s=(0,n.queryStringToSearchParams)(a).toString();return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/assets/${e}`,search:`?${s}`}},r.getCMSAssetsRawQueryUrlConfig=function({language:e="en_US",query:t="",skip:r=0,limit:o=10,sort:i="-publishdate"}){let l={q:t,pg:`${r},${o}`,format:"json",sort:i},a=(0,n.queryStringToSearchParams)(l).toString();return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/assets/${e}`,search:`?${a}`}},r.getCMSAssetsSlideshowUrlConfig=function({offset:e=0,assetId:t,limit:r=500}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/assets/slideshow/${t}/${e},${r}`}},r.getCMSQuickNavUrlConfig=function(){return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/settings/en_US/web/quick_nav"}};let n=e.r(678651);function o(e,t){let r=`'${t.$in}'`;return t.$in instanceof Array&&(r=t.$in.map(e=>`'${e}'`).join(",")),`${e}:$in(${r})`}},526371,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getOrderedCollectionByCollectionName=void 0,r.getVideosByCollectionName=l;let n=e.r(718043),o=e.r(678651),i=e.r(414655);async function l(e,t){let r=t?t.split("-").join("_"):"en_US",l=(0,o.urlFrom)((0,n.getCMSOrderedListUrlConfig)({language:r,collectionId:e,collectionType:"video"})),a=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300,tags:[e]}});return(0,i.handleFetchResponse)(a)}r.getOrderedCollectionByCollectionName=async(e,t)=>{let r=t?t.split("-").join("_"):"en_US",l=(0,o.urlFrom)((0,n.getCMSOrderedCollectionsUrlConfig)({collectionId:e,language:r})),a=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300,tags:[e]}});return(0,i.handleFetchResponse)(a)}},859827,993269,e=>{"use strict";var t=e.i(297647),r=e.i(477716),n=e.i(747961);let o=(0,r.forwardRef)(({title:e,titleId:r,desc:n,descId:o,...i},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":o,...i,children:[n?(0,t.jsx)("desc",{id:o,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"})]})),i=r.default.forwardRef((e,r)=>(0,t.jsx)(n.BaseIcon,{ref:r,icon:o,...e}));i.displayName="Plus",e.s(["Plus",0,i],859827);let l=(0,r.forwardRef)(({title:e,titleId:r,desc:n,descId:o,...i},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":o,...i,children:[n?(0,t.jsx)("desc",{id:o,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),o=e.i(144977),i=e.i(156207),l=e.i(60212),a=e.i(371353),s=e.i(89535),c=e.i(461194);let d=["top","right","bottom","left"],u=Math.min,f=Math.max,p=Math.round,h=Math.floor,I=e=>({x:e,y:e}),_={left:"right",right:"left",bottom:"top",top:"bottom"},E={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 S(e){return e.replace(/start|end/g,e=>E[e])}let C=["left","right"],v=["right","left"],x=["top","bottom"],w=["bottom","top"];function O(e){return e.replace(/left|right|bottom|top/g,e=>_[e])}function D(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:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function b(e,t,r){let n,{reference:o,floating:i}=e,l=y(t),a=A(y(t)),s=T(a),c=N(t),d="y"===l,u=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[s]/2-i[s]/2;switch(c){case"top":n={x:u,y:o.y-i.height};break;case"bottom":n={x:u,y:o.y+o.height};break;case"right":n={x:o.x+o.width,y:f};break;case"left":n={x:o.x-i.width,y:f};break;default:n={x:o.x,y:o.y}}switch(m(t)){case"start":n[a]-=p*(r&&d?-1:1);break;case"end":n[a]+=p*(r&&d?-1:1)}return n}async function H(e,t){var r;void 0===t&&(t={});let{x:n,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:p=0}=R(t,e),h=D(p),I=a[f?"floating"===u?"reference":"floating":u],_=L(await i.getClippingRect({element:null==(r=await (null==i.isElement?void 0:i.isElement(I)))||r?I:I.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:s})),E="floating"===u?{x:n,y:o,width:l.floating.width,height:l.floating.height}:l.reference,N=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),m=await (null==i.isElement?void 0:i.isElement(N))&&await (null==i.getScale?void 0:i.getScale(N))||{x:1,y:1},A=L(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:E,offsetParent:N,strategy:s}):E);return{top:(_.top-A.top+h.top)/m.y,bottom:(A.bottom-_.bottom+h.bottom)/m.y,left:(_.left-A.left+h.left)/m.x,right:(A.right-_.right+h.right)/m.x}}let W=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:l}=r,a=i.filter(Boolean),s=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=b(c,n,s),f=n,p={},h=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:o}=e,i=await (null==n.isRTL?void 0:n.isRTL(o.floating)),l=N(r),a=m(r),s="y"===y(r),c=P.has(l)?-1:1,d=i&&s?-1:1,u=R(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),s?{x:p*d,y:f*c}:{x:f*c,y:p*d}}function j(){return"u">typeof window}function Y(e){return k(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Z(e){var t;return null==(t=(k(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function k(e){return!!j()&&(e instanceof Node||e instanceof U(e).Node)}function z(e){return!!j()&&(e instanceof Element||e instanceof U(e).Element)}function $(e){return!!j()&&(e instanceof HTMLElement||e instanceof U(e).HTMLElement)}function V(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"!==Y(e)),o=null,i="fixed"===el(e).position,l=i?es(e):e;for(;z(l)&&!ei(l);){let t=el(l),r=er(l);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&!!o&&eN.has(o.position)||X(l)&&!r&&function e(t,r){let n=es(t);return!(n===r||!z(n)||ei(n))&&("fixed"===el(n).position||e(n,r))}(e,l))?n=n.filter(e=>e!==l):o=t,l=es(l)}return t.set(e,n),n}(t,this._c):[].concat(r),n],l=i[0],a=i.reduce((e,r)=>{let n=em(t,r,o);return e.top=f(n.top,e.top),e.right=u(n.right,e.right),e.bottom=u(n.bottom,e.bottom),e.left=f(n.left,e.left),e},em(t,l,o));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}=eu(e);return{width:t,height:r}},getScale:ep,isElement:z,isRTL:function(e){return"rtl"===el(e).direction}};function eC(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let ev=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:o,rects:i,platform:l,elements:a,middlewareData:s}=t,{element:c,padding:d=0}=R(e,t)||{};if(null==c)return{};let p=D(d),h={x:r,y:n},I=A(y(o)),_=T(I),E=await l.getDimensions(c),N="y"===I,g=N?"clientHeight":"clientWidth",S=i.reference[_]+i.reference[I]-h[I]-i.floating[_],C=h[I]-i.reference[I],v=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c)),x=v?v[g]:0;x&&await (null==l.isElement?void 0:l.isElement(v))||(x=a.floating[g]||i.floating[_]);let w=x/2-E[_]/2-1,O=u(p[N?"top":"left"],w),L=u(p[N?"bottom":"right"],w),b=x-E[_]-L,H=x/2-E[_]/2+(S/2-C/2),W=f(O,u(H,b)),G=!s.arrow&&null!=m(o)&&H!==W&&i.reference[_]/2-(Htypeof document?r.useLayoutEffect:function(){};function eO(e,t){let r,n,o;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(!eO(e[n],t[n]))return!1;return!0}if((r=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!=n--;){let r=o[n];if(("_owner"!==r||!e.$$typeof)&&!eO(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function eD(e){return"u"{t.current=e}),t}var eH=e.i(556872),eW=r.forwardRef((e,r)=>{let{children:n,width:o=10,height:i=5,...l}=e;return(0,t.jsx)(eH.Primitive.svg,{...l,ref:r,width:o,height:i,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=e.i(853233),eF="Popper",[ej,eY]=(0,i.createContextScope)(eF),[eU,eZ]=ej(eF),ek=e=>{let{__scopePopper:n,children:o}=e,[i,l]=r.useState(null);return(0,t.jsx)(eU,{scope:n,anchor:i,onAnchorChange:l,children:o})};ek.displayName=eF;var ez="PopperAnchor",e$=r.forwardRef((e,n)=>{let{__scopePopper:i,virtualRef:l,...a}=e,s=eZ(ez,i),c=r.useRef(null),d=(0,o.useComposedRefs)(n,c),u=r.useRef(null);return r.useEffect(()=>{let e=u.current;u.current=l?.current||c.current,e!==u.current&&s.onAnchorChange(u.current)}),l?null:(0,t.jsx)(eH.Primitive.div,{...a,ref:d})});e$.displayName=ez;var eV="PopperContent",[eB,eX]=ej(eV),eq=r.forwardRef((e,n)=>{var i,l,a,s,c,d,p,I,_,E,g,D,L;let{__scopePopper:b,side:H="bottom",sideOffset:j=0,align:Y="center",alignOffset:U=0,arrowPadding:k=0,avoidCollisions:z=!0,collisionBoundary:$=[],collisionPadding:V=0,sticky:B="partial",hideWhenDetached:X=!1,updatePositionStrategy:q="optimized",onPlaced:K,...Q}=e,J=eZ(eV,b),[ee,et]=r.useState(null),er=(0,o.useComposedRefs)(n,e=>et(e)),[en,eo]=r.useState(null),ei=(0,eP.useSize)(en),el=ei?.width??0,ea=ei?.height??0,es="number"==typeof V?V:{top:0,right:0,bottom:0,left:0,...V},ed=Array.isArray($)?$:[$],eu=ed.length>0,ep={padding:es,boundary:ed.filter(e0),altBoundary:eu},{refs:eh,floatingStyles:eI,placement:eE,isPositioned:eR,middlewareData:eN}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:l,floating:a}={},transform:s=!0,whileElementsMounted:c,open:d}=e,[u,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(o);eO(p,o)||h(o);let[I,_]=r.useState(null),[E,R]=r.useState(null),N=r.useCallback(e=>{e!==g.current&&(g.current=e,_(e))},[]),m=r.useCallback(e=>{e!==y.current&&(y.current=e,R(e))},[]),A=l||I,T=a||E,g=r.useRef(null),y=r.useRef(null),S=r.useRef(u),C=null!=c,v=eb(c),x=eb(i),w=eb(d),O=r.useCallback(()=>{var e,r;let o,i,l;if(!g.current||!y.current)return;let a={placement:t,strategy:n,middleware:p};x.current&&(a.platform=x.current),(e=g.current,r=y.current,o=new Map,l={...(i={platform:eS,...a}).platform,_c:o},W(e,r,{...i,platform:l})).then(e=>{let t={...e,isPositioned:!1!==w.current};D.current&&!eO(S.current,t)&&(S.current=t,ex.flushSync(()=>{f(t)}))})},[p,t,n,x,w]);ew(()=>{!1===d&&S.current.isPositioned&&(S.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[d]);let D=r.useRef(!1);ew(()=>(D.current=!0,()=>{D.current=!1}),[]),ew(()=>{if(A&&(g.current=A),T&&(y.current=T),A&&T){if(v.current)return v.current(A,T,O);O()}},[A,T,O,v,C]);let L=r.useMemo(()=>({reference:g,floating:y,setReference:N,setFloating:m}),[N,m]),b=r.useMemo(()=>({reference:A,floating:T}),[A,T]),H=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!b.floating)return e;let t=eL(b.floating,u.x),r=eL(b.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...eD(b.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,b.floating,u.x,u.y]);return r.useMemo(()=>({...u,update:O,refs:L,elements:b,floatingStyles:H}),[u,O,L,b,H])}({strategy:"fixed",placement:H+("center"!==Y?"-"+Y:""),whileElementsMounted:(...e)=>(function(e,t,r,n){let o;void 0===n&&(n={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=n,d=ef(e),p=i||l?[...d?ec(d):[],...ec(t)]:[];p.forEach(e=>{i&&e.addEventListener("scroll",r,{passive:!0}),l&&e.addEventListener("resize",r)});let I=d&&s?function(e,t){let r,n=null,o=Z(e);function i(){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),i();let c=e.getBoundingClientRect(),{left:d,top:p,width:I,height:_}=c;if(a||t(),!I||!_)return;let E={rootMargin:-h(p)+"px "+-h(o.clientWidth-(d+I))+"px "+-h(o.clientHeight-(p+_))+"px "+-h(d)+"px",threshold:f(0,u(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||eC(c,e.getBoundingClientRect())||l(),R=!1}try{n=new IntersectionObserver(N,{...E,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(N,E)}n.observe(e)}(!0),i}(d,r):null,_=-1,E=null;a&&(E=new ResizeObserver(e=>{let[n]=e;n&&n.target===d&&E&&(E.unobserve(t),cancelAnimationFrame(_),_=requestAnimationFrame(()=>{var e;null==(e=E)||e.observe(t)})),r()}),d&&!c&&E.observe(d),E.observe(t));let R=c?e_(e):null;return c&&function t(){let n=e_(e);R&&!eC(R,n)&&r(),R=n,o=requestAnimationFrame(t)}(),r(),()=>{var e;p.forEach(e=>{i&&e.removeEventListener("scroll",r),l&&e.removeEventListener("resize",r)}),null==I||I(),null==(e=E)||e.disconnect(),E=null,c&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===q}),elements:{reference:J.anchor},middleware:[{...{name:"offset",options:l=i={mainAxis:j+ea,alignmentAxis:U},async fn(e){var t,r;let{x:n,y:o,placement:i,middlewareData:a}=e,s=await F(e,l);return i===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:n+s.x,y:o+s.y,data:{...s,placement:i}}}},options:[i,void 0]},z&&{...{name:"shift",options:c=s={mainAxis:!0,crossAxis:!1,limiter:"partial"===B?{...(a=void 0,{options:a={},fn(e){let{x:t,y:r,placement:n,rects:o,middlewareData:i}=e,{offset:l=0,mainAxis:s=!0,crossAxis:c=!0}=R(a,e),d={x:t,y:r},u=y(n),f=A(u),p=d[f],h=d[u],I=R(l,e),_="number"==typeof I?{mainAxis:I,crossAxis:0}:{mainAxis:0,crossAxis:0,...I};if(s){let e="y"===f?"height":"width",t=o.reference[f]-o.floating[e]+_.mainAxis,r=o.reference[f]+o.reference[e]-_.mainAxis;pr&&(p=r)}if(c){var E,m;let e="y"===f?"width":"height",t=P.has(N(n)),r=o.reference[u]-o.floating[e]+(t&&(null==(E=i.offset)?void 0:E[u])||0)+(t?0:_.crossAxis),l=o.reference[u]+o.reference[e]+(t?0:(null==(m=i.offset)?void 0:m[u])||0)-(t?_.crossAxis:0);hl&&(h=l)}return{[f]:p,[u]:h}}}),options:[void 0,void 0]}:void 0,...ep},async fn(e){let{x:t,y:r,placement:n,platform:o}=e,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...s}=R(c,e),d={x:t,y:r},p=await o.detectOverflow(e,s),h=y(N(n)),I=A(h),_=d[I],E=d[h];if(i){let e="y"===I?"top":"left",t="y"===I?"bottom":"right",r=_+p[e],n=_-p[t];_=f(r,u(_,n))}if(l){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",r=E+p[e],n=E-p[t];E=f(r,u(E,n))}let m=a.fn({...e,[I]:_,[h]:E});return{...m,data:{x:m.x-t,y:m.y-r,enabled:{[I]:i,[h]:l}}}}},options:[s,void 0]},z&&{...{name:"flip",options:p=d={...ep},async fn(e){var t,r,n,o,i,l,a,s;let c,d,u,{placement:f,middlewareData:h,rects:I,initialPlacement:_,platform:E,elements:g}=e,{mainAxis:D=!0,crossAxis:L=!0,fallbackPlacements:b,fallbackStrategy:H="bestFit",fallbackAxisSideDirection:W="none",flipAlignment:G=!0,...M}=R(p,e);if(null!=(t=h.arrow)&&t.alignmentOffset)return{};let P=N(f),F=y(_),j=N(_)===_,Y=await (null==E.isRTL?void 0:E.isRTL(g.floating)),U=b||(j||!G?[O(_)]:(c=O(_),[S(_),c,S(c)])),Z="none"!==W;!b&&Z&&U.push(...(d=m(_),u=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?v:C;return t?C:v;case"left":case"right":return t?x:w;default:return[]}}(N(_),"start"===W,Y),d&&(u=u.map(e=>e+"-"+d),G&&(u=u.concat(u.map(S)))),u));let k=[_,...U],z=await E.detectOverflow(e,M),$=[],V=(null==(r=h.flip)?void 0:r.overflows)||[];if(D&&$.push(z[P]),L){let e,t,r,n,o=(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=O(n)),[n,O(n)]);$.push(z[o[0]],z[o[1]])}if(V=[...V,{placement:f,overflows:$}],!$.every(e=>ey(e.placement)!==F||e.overflows[0]>0)))return{data:{index:e,overflows:V},reset:{placement:t}};let r=null==(o=V.filter(e=>e.overflows[0]e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(H){case"bestFit":{let e=null==(i=V.filter(e=>{if(Z){let t=y(e.placement);return t===F||"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:i[0];e&&(r=e);break}case"initialPlacement":r=_}if(f!==r)return{reset:{placement:r}}}return{}}},options:[d,void 0]},{...{name:"size",options:_=I={...ep,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:o,height:i}=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",`${o}px`),l.setProperty("--radix-popper-anchor-height",`${i}px`)}},async fn(e){var t,r;let n,o,{placement:i,rects:l,platform:a,elements:s}=e,{apply:c=()=>{},...d}=R(_,e),p=await a.detectOverflow(e,d),h=N(i),I=m(i),E="y"===y(i),{width:A,height:T}=l.floating;"top"===h||"bottom"===h?(n=h,o=I===(await (null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(o=h,n="end"===I?"top":"bottom");let g=T-p.top-p.bottom,S=A-p.left-p.right,C=u(T-p[n],g),v=u(A-p[o],S),x=!e.middlewareData.shift,w=C,O=v;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(O=S),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(w=g),x&&!I){let e=f(p.left,0),t=f(p.right,0),r=f(p.top,0),n=f(p.bottom,0);E?O=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:O,availableHeight:w});let D=await a.getDimensions(s.floating);return A!==D.width||T!==D.height?{reset:{rects:!0}}:{}}},options:[I,void 0]},en&&{...{name:"arrow",options:g=E={element:en,padding:k},fn(e){let{element:t,padding:r}="function"==typeof g?g(e):g;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?ev({element:t.current,padding:r}).fn(e):{}:t?ev({element:t,padding:r}).fn(e):{}}},options:[E,void 0]},e1({arrowWidth:el,arrowHeight:ea}),X&&{...{name:"hide",options:L=D={strategy:"referenceHidden",...ep},async fn(e){let{rects:t,platform:r}=e,{strategy:n="referenceHidden",...o}=R(L,e);switch(n){case"referenceHidden":{let n=G(await r.detectOverflow(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:M(n)}}}case"escaped":{let n=G(await r.detectOverflow(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:M(n)}}}default:return{}}}},options:[D,void 0]}]}),[em,eA]=e7(eE),eT=(0,eG.useCallbackRef)(K);(0,eM.useLayoutEffect)(()=>{eR&&eT?.()},[eR,eT]);let eg=eN.arrow?.x,ey=eN.arrow?.y,eW=eN.arrow?.centerOffset!==0,[eF,ej]=r.useState();return(0,eM.useLayoutEffect)(()=>{ee&&ej(window.getComputedStyle(ee).zIndex)},[ee]),(0,t.jsx)("div",{ref:eh.setFloating,"data-radix-popper-content-wrapper":"",style:{...eI,transform:eR?eI.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eF,"--radix-popper-transform-origin":[eN.transformOrigin?.x,eN.transformOrigin?.y].join(" "),...eN.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,t.jsx)(eB,{scope:b,placedSide:em,onArrowChange:eo,arrowX:eg,arrowY:ey,shouldHideArrow:eW,children:(0,t.jsx)(eH.Primitive.div,{"data-side":em,"data-align":eA,...Q,ref:er,style:{...Q.style,animation:eR?void 0:"none"}})})})});eq.displayName=eV;var eK="PopperArrow",eQ={top:"bottom",right:"left",bottom:"top",left:"right"},eJ=r.forwardRef(function(e,r){let{__scopePopper:n,...o}=e,i=eX(eK,n),l=eQ[i.placedSide];return(0,t.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,t.jsx)(eW,{...o,ref:r,style:{...o.style,display:"block"}})})});function e0(e){return null!==e}eJ.displayName=eK;var e1=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[s,c]=e7(r),d={start:"0%",center:"50%",end:"100%"}[c],u=(o.arrow?.x??0)+l/2,f=(o.arrow?.y??0)+a/2,p="",h="";return"bottom"===s?(p=i?d:`${u}px`,h=`${-a}px`):"top"===s?(p=i?d:`${u}px`,h=`${n.floating.height+a}px`):"right"===s?(p=`${-a}px`,h=i?d:`${f}px`):"left"===s&&(p=`${n.floating.width+a}px`,h=i?d:`${f}px`),{data:{x:p,y:h}}}});function e7(e){let[t,r="center"]=e.split("-");return[t,r]}var e5=e.i(614952),e6=e.i(653747),e2=e.i(93074),e3=e.i(534643),e4=e.i(73772),e8=e.i(927499),e9="Popover",[te,tt]=(0,i.createContextScope)(e9,[eY]),tr=eY(),[tn,to]=te(e9),ti=e=>{let{__scopePopover:n,children:o,open:i,defaultOpen:l,onOpenChange:a,modal:s=!1}=e,d=tr(n),u=r.useRef(null),[f,p]=r.useState(!1),[h,I]=(0,e3.useControllableState)({prop:i,defaultProp:l??!1,onChange:a,caller:e9});return(0,t.jsx)(ek,{...d,children:(0,t.jsx)(tn,{scope:n,contentId:(0,c.useId)(),triggerRef:u,open:h,onOpenChange:I,onOpenToggle:r.useCallback(()=>I(e=>!e),[I]),hasCustomAnchor:f,onCustomAnchorAdd:r.useCallback(()=>p(!0),[]),onCustomAnchorRemove:r.useCallback(()=>p(!1),[]),modal:s,children:o})})};ti.displayName=e9;var tl="PopoverAnchor";r.forwardRef((e,n)=>{let{__scopePopover:o,...i}=e,l=to(tl,o),a=tr(o),{onCustomAnchorAdd:s,onCustomAnchorRemove:c}=l;return r.useEffect(()=>(s(),()=>c()),[s,c]),(0,t.jsx)(e$,{...a,...i,ref:n})}).displayName=tl;var ta="PopoverTrigger",ts=r.forwardRef((e,r)=>{let{__scopePopover:i,...l}=e,a=to(ta,i),s=tr(i),c=(0,o.useComposedRefs)(r,a.triggerRef),d=(0,t.jsx)(eH.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":tA(a.open),...l,ref:c,onClick:(0,n.composeEventHandlers)(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?d:(0,t.jsx)(e$,{asChild:!0,...s,children:d})});ts.displayName=ta;var tc="PopoverPortal",[td,tu]=te(tc,{forceMount:void 0}),tf=e=>{let{__scopePopover:r,forceMount:n,children:o,container:i}=e,l=to(tc,r);return(0,t.jsx)(td,{scope:r,forceMount:n,children:(0,t.jsx)(e6.Presence,{present:n||l.open,children:(0,t.jsx)(e5.Portal,{asChild:!0,container:i,children:o})})})};tf.displayName=tc;var tp="PopoverContent",th=r.forwardRef((e,r)=>{let n=tu(tp,e.__scopePopover),{forceMount:o=n.forceMount,...i}=e,l=to(tp,e.__scopePopover);return(0,t.jsx)(e6.Presence,{present:o||l.open,children:l.modal?(0,t.jsx)(t_,{...i,ref:r}):(0,t.jsx)(tE,{...i,ref:r})})});th.displayName=tp;var tI=(0,e2.createSlot)("PopoverContent.RemoveScroll"),t_=r.forwardRef((e,i)=>{let l=to(tp,e.__scopePopover),a=r.useRef(null),s=(0,o.useComposedRefs)(i,a),c=r.useRef(!1);return r.useEffect(()=>{let e=a.current;if(e)return(0,e4.hideOthers)(e)},[]),(0,t.jsx)(e8.RemoveScroll,{as:tI,allowPinchZoom:!0,children:(0,t.jsx)(tR,{...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})})})}),tE=r.forwardRef((e,n)=>{let o=to(tp,e.__scopePopover),i=r.useRef(!1),l=r.useRef(!1);return(0,t.jsx)(tR,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||o.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,l.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(l.current=!0));let r=t.target;o.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}})}),tR=r.forwardRef((e,r)=>{let{__scopePopover:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:c,disableOutsidePointerEvents:d,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,...I}=e,_=to(tp,n),E=tr(n);return(0,a.useFocusGuards)(),(0,t.jsx)(s.FocusScope,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:c,children:(0,t.jsx)(l.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:d,onInteractOutside:h,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onDismiss:()=>_.onOpenChange(!1),children:(0,t.jsx)(eq,{"data-state":tA(_.open),role:"dialog",id:_.contentId,...E,...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)"}})})})}),tN="PopoverClose";r.forwardRef((e,r)=>{let{__scopePopover:o,...i}=e,l=to(tN,o);return(0,t.jsx)(eH.Primitive.button,{type:"button",...i,ref:r,onClick:(0,n.composeEventHandlers)(e.onClick,()=>l.onOpenChange(!1))})}).displayName=tN;var tm=r.forwardRef((e,r)=>{let{__scopePopover:n,...o}=e,i=tr(n);return(0,t.jsx)(eJ,{...i,...o,ref:r})});function tA(e){return e?"open":"closed"}tm.displayName="PopoverArrow";var tT=e.i(632137);let tg=r.createContext({trigger:"click",onMouseEnter:()=>{},onMouseLeave:()=>{}});function ty({trigger:e="click",openDelay:n=0,closeDelay:o=300,open:i,onOpenChange:l,...a}){let[s,c]=r.useState(i||!1),d=r.useRef(null),u=r.useRef(null);r.useEffect(()=>{void 0!==i&&c(i)},[i]);let f=r.useCallback(e=>{c(e),l?.(e)},[l]);r.useEffect(()=>()=>{d.current&&clearTimeout(d.current),u.current&&clearTimeout(u.current)},[]);let p=r.useCallback(()=>{"hover"===e&&(u.current&&(clearTimeout(u.current),u.current=null),s||(d.current=setTimeout(()=>{f(!0)},n)))},[e,s,n,f]),h=r.useCallback(()=>{"hover"===e&&(d.current&&(clearTimeout(d.current),d.current=null),u.current=setTimeout(()=>{f(!1)},o))},[e,o,f]),I=r.useMemo(()=>({trigger:e,onMouseEnter:p,onMouseLeave:h}),[e,p,h]);return(0,t.jsx)(tg.Provider,{value:I,children:(0,t.jsx)(ti,{"data-slot":"popover",open:s,onOpenChange:f,...a})})}function tS({triggerClass:e,...n}){let{trigger:o,onMouseEnter:i,onMouseLeave:l}=r.useContext(tg);return(0,t.jsx)(ts,{"data-slot":"popover-trigger",className:e,..."hover"===o?{onMouseEnter:i,onMouseLeave:l}:{},...n})}function tC({...e}){return(0,t.jsx)(tm,{"data-slot":"popover-arrow",...e})}function tv({className:e,align:n="center",sideOffset:o=4,children:i,showArrow:l=!0,...a}){let{trigger:s,onMouseEnter:c,onMouseLeave:d}=r.useContext(tg);return(0,t.jsx)(tf,{children:(0,t.jsxs)(th,{"data-slot":"popover-content",align:n,sideOffset:o,className:(0,tT.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:d}:{},...a,children:[l&&(0,t.jsx)(tm,{className:"border-none fill-white",height:12,width:20}),i]})})}e.s(["Popover",()=>ty,"PopoverArrow",()=>tC,"PopoverContent",()=>tv,"PopoverTrigger",()=>tS],287638)},357784,770460,e=>{"use strict";var t=e.i(477716),r=e.i(156207),n=e.i(144977),o=e.i(93074),i=e.i(297647);function l(e){let l=e+"CollectionProvider",[a,s]=(0,r.createContextScope)(l),[c,d]=a(l,{collectionRef:{current:null},itemMap:new Map}),u=e=>{let{scope:r,children:n}=e,o=t.default.useRef(null),l=t.default.useRef(new Map).current;return(0,i.jsx)(c,{scope:r,itemMap:l,collectionRef:o,children:n})};u.displayName=l;let f=e+"CollectionSlot",p=(0,o.createSlot)(f),h=t.default.forwardRef((e,t)=>{let{scope:r,children:o}=e,l=d(f,r),a=(0,n.useComposedRefs)(t,l.collectionRef);return(0,i.jsx)(p,{ref:a,children:o})});h.displayName=f;let I=e+"CollectionItemSlot",_="data-radix-collection-item",E=(0,o.createSlot)(I),R=t.default.forwardRef((e,r)=>{let{scope:o,children:l,...a}=e,s=t.default.useRef(null),c=(0,n.useComposedRefs)(r,s),u=d(I,o);return t.default.useEffect(()=>(u.itemMap.set(s,{ref:s,...a}),()=>void u.itemMap.delete(s))),(0,i.jsx)(E,{...{[_]:""},ref:c,children:l})});return R.displayName=I,[{Provider:u,Slot:h,ItemSlot:R},function(r){let n=d(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${_}]`));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 o,i,l;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let a=(r=e,n=t,o=r.length,(l=(i=c(n))>=0?i:o+i)=o?-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,o=this.has(t),i=this.#e.length,l=c(e),a=l>=0?l:i+l,s=a=i?-1:a;if(s===this.size||o&&s===this.size-1||-1===s)return this.set(t,r),this;let d=this.size+ +!o;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=[],o=0;for(let e of this)Reflect.apply(t,r,[e,o,this])&&n.push(e),o++;return new e(n)}map(t,r){let n=[],o=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,o,this])]),o++;return new e(n)}reduce(...e){let[t,r]=e,n=0,o=r??this.at(0);for(let r of this)o=0===n&&1===e.length?r:Reflect.apply(t,this,[o,r,n,this]),n++;return o}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let o=this.at(r);n=r===this.size-1&&1===e.length?o:Reflect.apply(t,this,[n,o,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,o=this.size-1;if(void 0===t)return n;t0&&(o=r-1);for(let e=t;el],357784);var d=t.createContext(void 0);function u(e){let r=t.useContext(d);return e||r||"ltr"}e.s(["useDirection",()=>u],770460)},665488,e=>{"use strict";var t=e.i(297647),r=e.i(477716),n=e.i(859827),o=e.i(993269),i=e.i(632137),l=e.i(368847),a=e.i(240058),s=e.i(156207),c=e.i(357784),d=e.i(144977),u=e.i(291967),f=e.i(534643),p=e.i(556872),h=e.i(127864),I=e.i(653747),_=e.i(461194),E="Collapsible",[R,N]=(0,s.createContextScope)(E),[m,A]=R(E),T=r.forwardRef((e,n)=>{let{__scopeCollapsible:o,open:i,defaultOpen:l,disabled:a,onOpenChange:s,...c}=e,[d,u]=(0,f.useControllableState)({prop:i,defaultProp:l??!1,onChange:s,caller:E});return(0,t.jsx)(m,{scope:o,disabled:a,contentId:(0,_.useId)(),open:d,onOpenToggle:r.useCallback(()=>u(e=>!e),[u]),children:(0,t.jsx)(p.Primitive.div,{"data-state":x(d),"data-disabled":a?"":void 0,...c,ref:n})})});T.displayName=E;var g="CollapsibleTrigger",y=r.forwardRef((e,r)=>{let{__scopeCollapsible:n,...o}=e,i=A(g,n);return(0,t.jsx)(p.Primitive.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":x(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...o,ref:r,onClick:(0,u.composeEventHandlers)(e.onClick,i.onOpenToggle)})});y.displayName=g;var S="CollapsibleContent",C=r.forwardRef((e,r)=>{let{forceMount:n,...o}=e,i=A(S,e.__scopeCollapsible);return(0,t.jsx)(I.Presence,{present:n||i.open,children:({present:e})=>(0,t.jsx)(v,{...o,ref:r,present:e})})});C.displayName=S;var v=r.forwardRef((e,n)=>{let{__scopeCollapsible:o,present:i,children:l,...a}=e,s=A(S,o),[c,u]=r.useState(i),f=r.useRef(null),I=(0,d.useComposedRefs)(n,f),_=r.useRef(0),E=_.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,h.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();_.current=t.height,R.current=t.width,T.current||(e.style.transitionDuration=g.current.transitionDuration,e.style.animationName=g.current.animationName),u(i)}},[s.open,i]),(0,t.jsx)(p.Primitive.div,{"data-state":x(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!m,...a,ref:I,style:{"--radix-collapsible-content-height":E?`${E}px`:void 0,"--radix-collapsible-content-width":N?`${N}px`:void 0,...e.style},children:m&&l})});function x(e){return e?"open":"closed"}var w=e.i(770460),O="Accordion",D=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[L,b,H]=(0,c.createCollection)(O),[W,G]=(0,s.createContextScope)(O,[H,N]),M=N(),P=r.default.forwardRef((e,r)=>{let{type:n,...o}=e;return(0,t.jsx)(L.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,t.jsx)(k,{...o,ref:r}):(0,t.jsx)(Z,{...o,ref:r})})});P.displayName=O;var[F,j]=W(O),[Y,U]=W(O,{collapsible:!1}),Z=r.default.forwardRef((e,n)=>{let{value:o,defaultValue:i,onValueChange:l=()=>{},collapsible:a=!1,...s}=e,[c,d]=(0,f.useControllableState)({prop:o,defaultProp:i??"",onChange:l,caller:O});return(0,t.jsx)(F,{scope:e.__scopeAccordion,value:r.default.useMemo(()=>c?[c]:[],[c]),onItemOpen:d,onItemClose:r.default.useCallback(()=>a&&d(""),[a,d]),children:(0,t.jsx)(Y,{scope:e.__scopeAccordion,collapsible:a,children:(0,t.jsx)(V,{...s,ref:n})})})}),k=r.default.forwardRef((e,n)=>{let{value:o,defaultValue:i,onValueChange:l=()=>{},...a}=e,[s,c]=(0,f.useControllableState)({prop:o,defaultProp:i??[],onChange:l,caller:O}),d=r.default.useCallback(e=>c((t=[])=>[...t,e]),[c]),u=r.default.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,t.jsx)(F,{scope:e.__scopeAccordion,value:s,onItemOpen:d,onItemClose:u,children:(0,t.jsx)(Y,{scope:e.__scopeAccordion,collapsible:!0,children:(0,t.jsx)(V,{...a,ref:n})})})}),[z,$]=W(O),V=r.default.forwardRef((e,n)=>{let{__scopeAccordion:o,disabled:i,dir:l,orientation:a="vertical",...s}=e,c=r.default.useRef(null),f=(0,d.useComposedRefs)(c,n),h=b(o),I="ltr"===(0,w.useDirection)(l),_=(0,u.composeEventHandlers)(e.onKeyDown,e=>{if(!D.includes(e.key))return;let t=e.target,r=h().filter(e=>!e.ref.current?.disabled),n=r.findIndex(e=>e.ref.current===t),o=r.length;if(-1===n)return;e.preventDefault();let i=n,l=o-1,s=()=>{(i=n+1)>l&&(i=0)},c=()=>{(i=n-1){let{__scopeAccordion:n,value:o,...i}=e,l=$(B,n),a=j(B,n),s=M(n),c=(0,_.useId)(),d=o&&a.value.includes(o)||!1,u=l.disabled||e.disabled;return(0,t.jsx)(X,{scope:n,open:d,disabled:u,triggerId:c,children:(0,t.jsx)(T,{"data-orientation":l.orientation,"data-state":eo(d),...s,...i,ref:r,disabled:u,open:d,onOpenChange:e=>{e?a.onItemOpen(o):a.onItemClose(o)}})})});K.displayName=B;var Q="AccordionHeader",J=r.default.forwardRef((e,r)=>{let{__scopeAccordion:n,...o}=e,i=$(O,n),l=q(Q,n);return(0,t.jsx)(p.Primitive.h3,{"data-orientation":i.orientation,"data-state":eo(l.open),"data-disabled":l.disabled?"":void 0,...o,ref:r})});J.displayName=Q;var ee="AccordionTrigger",et=r.default.forwardRef((e,r)=>{let{__scopeAccordion:n,...o}=e,i=$(O,n),l=q(ee,n),a=U(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":i.orientation,id:l.triggerId,...s,...o,ref:r})})});et.displayName=ee;var er="AccordionContent",en=r.default.forwardRef((e,r)=>{let{__scopeAccordion:n,...o}=e,i=$(O,n),l=q(er,n),a=M(n);return(0,t.jsx)(C,{role:"region","aria-labelledby":l.triggerId,"data-orientation":i.orientation,...a,...o,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function eo(e){return e?"open":"closed"}en.displayName=er,r.forwardRef(({className:e,href:r,children:n,...o},i)=>(0,t.jsx)(a.default,{ref:i,href:r,...o,children:(0,t.jsx)(l.Text,{variant:"Caption.M",color:"secondary",children:n})})).displayName="AccordionTextLink";let ei=r.forwardRef(({className:e,type:r="single",collapsible:n=!0,...o},l)=>{let a={ref:l,type:r,className:(0,i.cn)("w-full",e),"data-slot":"accordion",...o};return"single"===r&&(a.collapsible=n),(0,t.jsx)(P,{...a})});function el({className:e,...r}){return(0,t.jsx)(K,{"data-slot":"accordion-item",className:(0,i.cn)("w-full",e),...r})}function ea({className:e,children:r,triggerContent:a,title:s,number:c,iconClassName:d,iconNodeOverride:u,...f}){return(0,t.jsx)(J,{className:"flex",children:(0,t.jsxs)(et,{"data-slot":"accordion-trigger",className:(0,i.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:u||(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Plus,{className:(0,i.cn)("h-5 w-5 shrink-0 transition-all duration-200",d,"group-data-[state=open]:rotate-45 group-data-[state=open]:opacity-0")}),(0,t.jsx)(o.Minus,{className:(0,i.cn)("absolute h-5 w-5 shrink-0 opacity-0 transition-all duration-200",d,"group-data-[state=open]:opacity-100")})]})})]})})}function es({className:e,animated:r,...n}){return(0,t.jsx)(en,{"data-slot":"accordion-content",className:(0,i.cn)("overflow-hidden text-sm transition-all",{"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down":r},e),...n})}ei.displayName="Accordion",r.forwardRef(({className:e,children:r,enabled:n=!1,...o},a)=>(0,t.jsx)("div",{ref:a,className:(0,i.cn)("mt-4",e),...o,children:(0,t.jsx)(l.Text,{variant:"Caption.M",color:"disabled",children:r})})).displayName="AccordionTextSpotlight",e.s(["Accordion",()=>ei,"AccordionContent",()=>es,"AccordionItem",()=>el,"AccordionTrigger",()=>ea],665488)},598513,e=>{"use strict";var t=e.i(947118),r=e.i(737801),n=e.i(477716);e.s(["useSendInteractionEvent",0,()=>{let e="interaction",o=(0,t.useIsInitialized)(),i=(0,r.useEventAttributes)();return(0,n.useCallback)(t=>{let r={...i,...t};if(!o)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)}},[i,o])}])}]);