1
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Noty",[],e):"object"==typeof exports?exports.Noty=e():t.Noty=e()}
2
(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}
3
}
4
;return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}
5
var n={}
6
;return e.m=t,e.c=n,e.i=function(t){return t}
7
,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o}
8
)}
9
,e.n=function(t){var n=t&&t.__esModule?function(){return t.default}
10
:function(){return t}
11
;return e.d(n,"a",n),n}
12
,e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}
13
,e.p="",e(e.s=6)}
14
([function(t,e,n){"use strict";function o(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e=e.split(" ");for(var i=0;i<e.length;i++)document.addEventListener?t.addEventListener(e[i],n,o):document.attachEvent&&t.attachEvent("on"+e[i],n)}
15
function i(t,e){return("string"==typeof t?t:s(t)).indexOf(" "+e+" ")>=0}
16
function r(t){t.parentNode&&t.parentNode.removeChild(t)}
17
function s(t){return(" "+(t&&t.className||"")+" ").replace(/\s+/gi," ")}
18
function u(){function t(){c.PageHidden=document[n],e()}
19
function e(){c.PageHidden?setTimeout(function(){Object.keys(c.Store).forEach(function(t){c.Store.hasOwnProperty(t)&&c.Store[t].options.visibilityControl&&c.Store[t].stop()}
20
)}
21
,100):setTimeout(function(){Object.keys(c.Store).forEach(function(t){c.Store.hasOwnProperty(t)&&c.Store[t].options.visibilityControl&&c.Store[t].resume()}
22
),c.queueRenderAll()}
23
,100)}
24
var n=void 0,i=void 0;void 0!==document.hidden?(n="hidden",i="visibilitychange"):void 0!==document.msHidden?(n="msHidden",i="msvisibilitychange"):void 0!==document.webkitHidden&&(n="webkitHidden",i="webkitvisibilitychange"),i&&o(document,i,t),o(window,"blur",function(){c.PageHidden=!0,e()}
25
),o(window,"focus",function(){c.PageHidden=!1,e()}
26
)}
27
Object.defineProperty(e,"__esModule",{value:!0}
28
),e.css=e.deepExtend=e.animationEndEvents=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}
29
:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}
30
;e.inArray=function(t,e,n){var o=void 0;if(n){for(o in e)if(e.hasOwnProperty(o)&&e[o]===t)return!0}
31
else for(o in e)if(e.hasOwnProperty(o)&&e[o]===t)return!0;return!1}
32
,e.stopPropagation=function(t){void 0!==(t=t||window.event).stopPropagation?t.stopPropagation():t.cancelBubble=!0}
33
,e.generateID=function(){var t="noty_"+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")+"_";return t+="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}
34
)}
35
,e.outerHeight=function(t){var e=t.offsetHeight,n=window.getComputedStyle(t);return e+=parseInt(n.marginTop)+parseInt(n.marginBottom)}
36
,e.addListener=o,e.hasClass=i,e.addClass=function(t,e){var n=s(t),o=n+e;i(n,e)||(t.className=o.substring(1))}
37
,e.removeClass=function(t,e){var n=s(t),o=void 0;i(t,e)&&(o=n.replace(" "+e+" "," "),t.className=o.substring(1,o.length-1))}
38
,e.remove=r,e.classList=s,e.visibilityChangeFlow=u,e.createAudioElements=function(t){if(t.hasSound){var e=document.createElement("audio");t.options.sounds.sources.forEach(function(t){var n=document.createElement("source");n.src=t,n.type="audio/"+t.match(/\.([^.]+)$/)[1],e.appendChild(n)}
39
),t.barDom?t.barDom.appendChild(e):document.querySelector("body").appendChild(e),e.volume=t.options.sounds.volume,t.soundPlayed||(e.play(),t.soundPlayed=!0),e.onended=function(){r(e)}
40
}
...
</html>