!function(t,a){"function"==typeof define&&define.amd?define(a):"object"==typeof exports?module.exports=a(require,exports,module):t.countup=a()}(this,function(t,a,e){/* countup.js (c) 2014-2015 @inorganik licensed under the mit license. */ var n=function(t,a,e,n,i,r){for(var o=0,s=["webkit","moz","ms","o"],u=0;uthis.endval,this.frameval=this.startval,this.decimals=math.max(0,n||0),this.dec=math.pow(10,this.decimals),this.duration=1e3*number(i)||2e3;var l=this;this.version=function(){return"1.6.0"},this.printvalue=function(t){var a=isnan(t)?"--":l.formatnumber(t);"input"==l.d.tagname?this.d.value=a:"text"==l.d.tagname||"tspan"==l.d.tagname?this.d.textcontent=a:this.d.innerhtml=a},this.easeoutexpo=function(t,a,e,n){return e*(-math.pow(2,-10*t/n)+1)*1024/1023+a},this.count=function(t){l.starttime||(l.starttime=t),l.timestamp=t;var a=t-l.starttime;l.remaining=l.duration-a,l.options.useeasing?l.countdown?l.frameval=l.startval-l.easeoutexpo(a,0,l.startval-l.endval,l.duration):l.frameval=l.easeoutexpo(a,l.startval,l.endval-l.startval,l.duration):l.countdown?l.frameval=l.startval-(l.startval-l.endval)*(a/l.duration):l.frameval=l.startval+(l.endval-l.startval)*(a/l.duration),l.countdown?l.frameval=l.framevall.endval?l.endval:l.frameval,l.frameval=math.round(l.frameval*l.dec)/l.dec,l.printvalue(l.frameval),al.endval,l.raf=requestanimationframe(l.count)},this.formatnumber=function(t){t=t.tofixed(l.decimals),t+="";var a,e,n,i;if(a=t.split("."),e=a[0],n=a.length>1?l.options.decimal+a[1]:"",i=/(\d+)(\d{3})/,l.options.usegrouping)for(;i.test(e);)e=e.replace(i,"$1"+l.options.separator+"$2");return l.options.prefix+e+n+l.options.suffix},l.printvalue(l.startval)};return n});