text: /*! Notify - v0.0.2 - 2017-03-03
  * Copyright (c) 2017 Martin Laritz;
  * Contributor(s): David Castillo;
   Licensed MIT */
  !function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.vNotify=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){b.exports=function(){var a={topCenter:"topCenter",topLeft:"topLeft",topRight:"topRight",bottomLeft:"bottomLeft",bottomRight:"bottomRight",center:"center"},b={fadeInDuration:600,fadeOutDuration:1e3,fadeInterval:50,visibleDuration:5e3,postHoverVisibleDuration:500,position:a.topRight,sticky:!1,showClose:!0},c=function(a){var b=document.createElement("div");return b.classList.add("vnotify-text"),b.innerHTML=a,b},d=function(a){var b=document.createElement("div");return b.classList.add("vnotify-title"),b.innerHTML=a,b},e=function(a){a.style.display="none",a.outerHTML="",a=null},f=function(a){var b=document.createElement("span");return b.classList.add("vn-close"),b.addEventListener("click",function(){e(a)}),b},g=function(a){var b=document.createDocumentFragment(),c=document.createElement("div");return c.classList.add("vnotify-container"),c.classList.add(a),c.setAttribute("role","alert"),b.appendChild(c),document.body.appendChild(b),c},h=function(b){return b===a.topCenter?"vn-top-center":b===a.topLeft?"vn-top-left":b===a.topRight?"vn-top-right":b===a.bottomRight?"vn-bottom-right":b===a.bottomLeft?"vn-bottom-left":b===a.center?"vn-center":"vn-top-right"},i=function(a){var b=h(a),c=document.querySelector("."+b);return c?c:g(b)},j=function(a){return{fadeInDuration:a.fadeInDuration||b.fadeInDuration,fadeOutDuration:a.fadeOutDuration||b.fadeOutDuration,fadeInterval:a.fadeInterval||b.fadeInterval,visibleDuration:a.visibleDuration||b.visibleDuration,postHoverVisibleDuration:a.postHoverVisibleDuration||b.postHoverVisibleDuration,position:a.position||b.position,sticky:null!==a.sticky?a.sticky:b.sticky,showClose:null!==a.showClose?a.showClose:b.showClose}},k=function(){if(!document.querySelector(".vnotify-item"))for(var a=document.querySelectorAll(".vnotify-container"),b=0;b<a.length;b++)a[b].outerHTML="",a[b]=null},l=function(a,c,d){var f="in"===a,g=f?0:d.style.opacity||1,h=f?.95:0,i=b.fadeInterval/c;f&&(d.style.display="block",d.style.opacity=g);var j,l=function(){g=f?g+i:g-i,d.style.opacity=g,g<=0&&(e(d),k()),(!f&&g<=h||f&&g>=h)&&window.clearInterval(j)};return j=window.setInterval(l,b.fadeInterval)},m=function(a){if(!a.title&&!a.text)return null;var b=document.createDocumentFragment(),e=document.createElement("div");e.classList.add("vnotify-item"),e.classList.add(a.notifyClass),e.style.opacity=0,e.options=j(a),a.title&&e.appendChild(d(a.title)),a.text&&e.appendChild(c(a.text)),e.options.showClose&&e.appendChild(f(e)),e.visibleDuration=e.options.visibleDuration;var g=function(){e.fadeInterval=l("out",e.options.fadeOutDuration,e)},h=function(){clearTimeout(e.interval),clearTimeout(e.fadeInterval),e.style.opacity=null,e.visibleDuration=e.options.postHoverVisibleDuration},k=function(){e.interval=setTimeout(g,e.visibleDuration)};return b.appendChild(e),i(e.options.position).appendChild(b),e.addEventListener("mouseover",h),l("in",e.options.fadeInDuration,e),e.options.sticky||(e.addEventListener("mouseout",k),k()),e};return{info:function(a){return a.notifyClass="vnotify-info",m(a)},success:function(a){return a.notifyClass="vnotify-success",m(a)},error:function(a){return a.notifyClass="vnotify-error",m(a)},warning:function(a){return a.notifyClass="vnotify-warning",m(a)},notify:function(a){return a.notifyClass="vnotify-notify",m(a)},custom:function(a){return m(a)},options:b,positionOption:a}}()},{}]},{},[1])(1)});