"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};function _asyncToGenerator(n){return function(){var t=n.apply(this,arguments);return new Promise(function(n,r){return function e(o,a){try{var i=t[o](a),c=i.value}catch(n){return void r(n)}if(!i.done)return Promise.resolve(c).then(function(n){e("next",n)},function(n){e("throw",n)});n(c)}("next")})}}define(function(){var n=_asyncToGenerator(regeneratorRuntime.mark(function n(t){var r,e;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=document.createElement("style"),e={toCSSObj:function(n){var t={};return Object.keys(n).forEach(function(r){var e=n[r];if("transform"===r&&"object"==(void 0===e?"undefined":_typeof(e))){var o="";Object.keys(e).forEach(function(n){var t=e[n];o+=n+"("+t+") "}),e=o.slice(0,-1)}t[r]=e}),t},transFrame:function(n){var t="";return Object.keys(n).forEach(function(r){var e=n[r];if("transform"===r&&"object"==(void 0===e?"undefined":_typeof(e))){var o="";Object.keys(e).forEach(function(n){var t=e[n];o+=n+"("+t+") "}),e=o.slice(0,-1)}t+=r+":"+(""===e?'""':e)+";"}),t},transAnimation:function(n,t){var r="",o=n.from,a=n.to;return o?r+="from{\n                    "+e.transFrame(o)+"\n                }\n                to{\n                    "+e.transFrame(a)+"\n                }\n                ":Object.keys(n).forEach(function(t){var o=n[t];r+=t+"%{\n                        "+e.transFrame(o)+"\n                    }\n                    "}),"@keyframes "+t+"{\n                "+r+"\n            }"},initAnimation:function(n){var t="";n.forEach(function(n){var r=e.transAnimation(n.animation,n.animateId);t+=r,t+="\n                ."+n.animateId+"{\n                    animation:"+n.animateId+" ease-in-out .5s;\n                    animation-fill-mode: forwards;\n                }\n                "}),r.innerHTML=t,document.head.appendChild(r)}},n.abrupt("return",e);case 3:case"end":return n.stop()}},n,void 0)}));return function(t){return n.apply(this,arguments)}}());