define(async e=>{let n=document.createElement("style"),t={toCSSObj(e){let n={};return Object.keys(e).forEach(t=>{let a=e[t];if("transform"===t&&"object"==typeof a){let e="";Object.keys(a).forEach(n=>{let t=a[n];e+=`${n}(${t}) `}),a=e.slice(0,-1)}n[t]=a}),n},transFrame(e){let n="";return Object.keys(e).forEach(t=>{let a=e[t];if("transform"===t&&"object"==typeof a){let e="";Object.keys(a).forEach(n=>{let t=a[n];e+=`${n}(${t}) `}),a=e.slice(0,-1)}n+=`${t}:${""===a?'""':a};`}),n},transAnimation(e,n){let a="",{from:r,to:o}=e;return r?a+=`from{\n                    ${t.transFrame(r)}\n                }\n                to{\n                    ${t.transFrame(o)}\n                }\n                `:Object.keys(e).forEach(n=>{let r=e[n];a+=`${n}%{\n                        ${t.transFrame(r)}\n                    }\n                    `}),`@keyframes ${n}{\n                ${a}\n            }`},initAnimation(e){let a="";e.forEach(e=>{let n=t.transAnimation(e.animation,e.animateId);a+=n,a+=`\n                .${e.animateId}{\n                    animation:${e.animateId} ease-in-out .5s;\n                    animation-fill-mode: forwards;\n                }\n                `}),n.innerHTML=a,document.head.appendChild(n)}};return t});