var e=e=>({animationDuration:e,animationFillMode:`both`}),t=e=>({animationDuration:e,animationFillMode:`both`}),n=(n,r,i,a,o=!1)=>{let s=o?`&`:``;return{[`
      ${s}${n}-enter,
      ${s}${n}-appear
    `]:{...e(a),animationPlayState:`paused`},[`${s}${n}-leave`]:{...t(a),animationPlayState:`paused`},[`
      ${s}${n}-enter${n}-enter-active,
      ${s}${n}-appear${n}-appear-active
    `]:{animationName:r,animationPlayState:`running`},[`${s}${n}-leave${n}-leave-active`]:{animationName:i,animationPlayState:`running`,pointerEvents:`none`}}};export{n as initMotion};