function _typeof(f){"@babel/helpers - typeof";_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"===typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g};return _typeof(f)} !function(f,g){"object"===("undefined"===typeof exports?"undefined":_typeof(exports))&&"undefined"!==typeof module?module.exports=g():"function"===typeof define&&define.amd?define(g):(f=f||self,f.cocoMessage=g())}(void 0,function(){function f(a,b){var c=document.createElement("div");for(e in a){var d=a[e];if("className"==e){var e="class";c.setAttribute(e,d)}else"_"==e[0]&&c.addEventListener(e.slice(1),d)}if("string"==typeof b)c.innerHTML=b;else if("object"==_typeof(b)&&b.tagName)c.appendChild(b); else if(b)for(a=0;a\n ', success:'\n \n ', warning:'\n \n ', error:'\n \n ',loading:'\n
\n \n \n \n
\n '}[b]); d=f({className:"coco-msg-content"},d);e={className:"coco-msg-wait "+(q?"coco-msg-pointer":""),_click:function(){q&&l(k,p)}};var k=f({className:"coco-msg-wrapper"},[f({className:"coco-msg coco-msg-fade-in "+b},[a,d,f(e,q?'\n \n ':'\n \n \n \n ')])]); if(d=k.querySelector(".coco-msg__circle"))t(d,{animation:"coco-msg_"+b+" "+c+"ms linear"}),"onanimationend"in window?g(d,function(){l(k,p)}):setTimeout(function(){l(k,p)},c);"loading"==b&&0!==c&&setTimeout(function(){l(k,p)},c);h.children.length||document.body.appendChild(h);h.appendChild(k);t(k,{height:k.offsetHeight+"px"});setTimeout(function(){var r=k.children[0],m=r.className||"";if(-1