function t(t,c,e){const b=t.animate(c,Object.assign(Object.assign({},e),{fill:"both"}));return b.addEventListener("finish",(()=>{try{b.commitStyles()}catch(t){}b.cancel()})),b}const c={easing:"cubic-bezier(0.390, 0.575, 0.565, 1.000)"},e={fadeIn:[Object.assign(Object.assign({offset:0},c),{opacity:0}),Object.assign(Object.assign({offset:1},c),{opacity:1})],fadeOut:[Object.assign(Object.assign({offset:0},c),{opacity:1}),Object.assign(Object.assign({offset:1},c),{opacity:0})]};export{e as K,t as a}