text: !function(){"use strict";function a(a){var b='<div class="ngn" ng-class="ngNotify.notifyClass"><span ng-if="ngNotify.notifyHtml" class="ngn-message" ng-bind-html="ngNotify.notifyMessage"></span><span ng-if="!ngNotify.notifyHtml" class="ngn-message" ng-bind="ngNotify.notifyMessage"></span><span ng-show="ngNotify.notifyButton" class="ngn-dismiss" ng-click="dismiss()">&times;</span></div>';a.put(f,b)}function b(a){function b(a,b,c){this.scope=a,this.options=c,this.template=d(b)}var c;b.prototype={show:function(a){this.template.fadeIn(q,a)},dismiss:function(){this.template.fadeOut(m,this.destroy.bind(this))},destroy:function(){a.cancel(c),this.options&&this.options.userCallback&&this.options.userCallback(),this.scope&&this.scope.$destroy(),this.template&&this.template.el.remove(),this.scope=null,this.options=null,this.template=null}};var d=function(a){return new d.fn(a)};return d.fn=function(a){this.el=a},d.fn.prototype._fade=function(b,d,e,f){var g=n/e,h=this.el;h.css("opacity",d);var i=function(){d+=b*g,h.css("opacity",d),(r>=d||d>=s)&&(a.cancel(c),r>=d&&h.css("display","none"),f&&f())};c=a(i,n)},d.fn.prototype.fadeIn=function(a,b){this.el.css("display","block"),this._fade(o,r,a,b)},d.fn.prototype.fadeOut=function(a,b){this._fade(p,s,a,b)},b}function c(){this.$get=["$document","$compile","$log","$rootScope","$timeout","$templateCache","NgNotifyFactory",function(a,b,c,d,m,n,o){var p,q,r={theme:"pure",position:"bottom",duration:l,type:"info",sticky:!1,button:!0,html:!1,target:k},s={notifyClass:"",notifyMessage:""},t={pure:g,prime:"ngn-prime",pastel:"ngn-pastel",pitchy:"ngn-pitchy"},u={info:"ngn-info",error:"ngn-error",success:"ngn-success",warn:"ngn-warn",grimace:"ngn-grimace"},v={bottom:"ngn-bottom",top:"ngn-top"},w=function(){var a=d.$new();return a.ngNotify=angular.extend({},s),a.dismiss=function(){J()},a},x=function(a,c,d){var e={},g=w();"object"==typeof c?e=c:e.type=c;var h=H(e),i={isSticky:C(e),duration:B(e),userCallback:d};angular.extend(g.ngNotify,{notifyHtml:F(e),notifyClass:G(e,i.isSticky,h.found),notifyButton:D(e,i.isSticky),notifyMessage:a});var j=b(n.get(f))(g);return h.target.append(j),new o(g,j,i)},y=function(a){var b=a.type||r.type;return(u[b]||u.info)+h},z=function(a){var b=a.theme||r.theme;return(t[b]||t.pure)+h},A=function(a){var b=a.position||r.position;return(v[b]||v.bottom)+h},B=function(a){var b=a.duration||r.duration;return angular.isNumber(b)?b:l},C=function(a){var b=void 0!==a.sticky?a.sticky:r.sticky;return!!b},D=function(a,b){var c=void 0!==a.button?a.button:r.button;return c&&b},E=function(a){return a.target||r.target},F=function(a){if((a.html||r.html)&&!e)return c.debug("ngNotify warning:\nngSanitize couldn't be located.  In order to use the 'html' option, be sure the ngSanitize source is included in your project."),!1;var b=void 0!==a.html?a.html:r.html;return!!b},G=function(a,b,c){var d=y(a)+z(a)+A(a);return d+=b?i+h:g,d+=E(a)!==k&&c?j+h:g},H=function(a){var b=document.querySelector(E(a));return b?{target:angular.element(b),found:!0}:{target:angular.element(document.querySelector(k)),found:!1}},I=function(){p.options.isSticky||(q=m(function(){p.dismiss()},p.options.duration))},J=function(){p&&p.dismiss()},K=function(a){m.cancel(q),a&&(a.scope&&a.destroy(),a=null)};return{config:function(a){a=a||{},angular.extend(r,a)},set:function(a,b,c){a&&(K(p),p=x(a,b,c),p.show(I))},dismiss:function(){J()},addTheme:function(a,b){a&&b&&(t[a]=b)},addType:function(a,b){a&&b&&(u[a]=b)}}}]}var d=angular.module("ngNotify",[]);d.run(["$templateCache",a]),d.factory("NgNotifyFactory",["$interval",b]),d.provider("ngNotify",c);var e=!1,f="templates/ng-notify/ng-notify.html",g="",h=" ",i="ngn-sticky",j="ngn-component",k="body",l=3e3,m=500,n=25,o=1,p=-1,q=200,r=0,s=1;try{angular.module("ngSanitize")&&(angular.module("ngNotify").requires.push("ngSanitize"),e=!0)}catch(t){}}();
  //# sourceMappingURL=ng-notify.min.js.map