import{n as e,o as t,t as n}from"./1.65.0B5Dsnp8.js";function r(n,r=200){if(!n||e(n))return;t(n);let i=n.scrollHeight;n.style.setProperty(`--target-height`,`${i}px`),Object.assign(n.style,{height:`0px`,overflow:`hidden`,animationDuration:`${r}ms`}),n.classList.remove(`slide-up`),n.classList.add(`slide-down`),n.addEventListener(`animationend`,()=>{n.classList.remove(`slide-down`),[`animation-duration`,`height`,`overflow`,`--target-height`].forEach(e=>n.style.removeProperty(e))},{once:!0})}function i(t,r=200){if(!t||!e(t))return;let i=t.offsetHeight;t.style.setProperty(`--target-height`,`${i}px`),Object.assign(t.style,{height:`${i}px`,overflow:`hidden`,animationDuration:`${r}ms`}),t.classList.remove(`slide-down`),t.classList.add(`slide-up`),t.addEventListener(`animationend`,()=>{t.classList.remove(`slide-up`),[`animation-duration`,`height`,`overflow`,`--target-height`].forEach(e=>t.style.removeProperty(e)),n(t)},{once:!0})}export{r as n,i as t};