{"size": 3574, "ext": "js", "max_stars_repo_path": "amza-bot-deployable/src/main/home/resources/static/scripts/countUp.min.js", "max_stars_repo_name": "jivesoftware/amza", "max_stars_repo_stars_event_min_datetime": "2015-03-29T09:21:47.000Z", "max_stars_repo_stars_event_max_datetime": "2017-08-05T17:35:03.000Z", "max_issues_repo_path": "amza-bot-deployable/src/main/home/resources/static/scripts/countUp.min.js", "max_issues_repo_name": "jivesoftware/amza", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "amza-bot-deployable/src/main/home/resources/static/scripts/countUp.min.js", "max_forks_repo_name": "jivesoftware/amza", "max_forks_repo_forks_event_min_datetime": "2016-08-01T21:35:57.000Z", "max_forks_repo_forks_event_max_datetime": "2018-03-08T04:17:16.000Z"}
{"max_stars_count": 8, "max_issues_count": null, "max_forks_count": 3, "avg_line_length": 3574.0, "max_line_length": 3574, "alphanum_fraction": 0.7560156687}
!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):a.CountUp=b()}(this,function(){"use strict";var a=function(a,b,c,d,e,f){for(var g=0,h=["webkit","moz","ms","o"],i=0;i<h.length&&!window.requestAnimationFrame;++i)window.requestAnimationFrame=window[h[i]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[h[i]+"CancelAnimationFrame"]||window[h[i]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(a){var c=(new Date).getTime(),d=Math.max(0,16-(c-g)),e=window.setTimeout(function(){a(c+d)},d);return g=c+d,e}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(a){clearTimeout(a)}),this.options={useEasing:!0,useGrouping:!0,separator:",",decimal:"."};for(var j in f)f.hasOwnProperty(j)&&(this.options[j]=f[j]);""==this.options.separator&&(this.options.useGrouping=!1),null==this.options.prefix&&(this.options.prefix=""),null==this.options.suffix&&(this.options.suffix="");var k=this;this.d="string"==typeof a?document.getElementById(a):a,this.startVal=Number(b),this.endVal=Number(c),this.countDown=this.startVal>this.endVal,this.startTime=null,this.timestamp=null,this.remaining=null,this.frameVal=this.startVal,this.rAF=null,this.decimals=Math.max(0,d||0),this.dec=Math.pow(10,this.decimals),this.duration=1e3*e||2e3,this.version=function(){return"1.5.0"},this.printValue=function(a){var b=isNaN(a)?"--":k.formatNumber(a);"INPUT"==k.d.tagName?this.d.value=b:"text"==k.d.tagName?this.d.textContent=b:this.d.innerHTML=b},this.easeOutExpo=function(a,b,c,d){return 1024*c*(-Math.pow(2,-10*a/d)+1)/1023+b},this.count=function(a){null===k.startTime&&(k.startTime=a),k.timestamp=a;var b=a-k.startTime;if(k.remaining=k.duration-b,k.options.useEasing)if(k.countDown){var c=k.easeOutExpo(b,0,k.startVal-k.endVal,k.duration);k.frameVal=k.startVal-c}else k.frameVal=k.easeOutExpo(b,k.startVal,k.endVal-k.startVal,k.duration);else if(k.countDown){var c=(k.startVal-k.endVal)*(b/k.duration);k.frameVal=k.startVal-c}else k.frameVal=k.startVal+(k.endVal-k.startVal)*(b/k.duration);k.frameVal=k.countDown?k.frameVal<k.endVal?k.endVal:k.frameVal:k.frameVal>k.endVal?k.endVal:k.frameVal,k.frameVal=Math.round(k.frameVal*k.dec)/k.dec,k.printValue(k.frameVal),b<k.duration?k.rAF=requestAnimationFrame(k.count):null!=k.callback&&k.callback()},this.start=function(a){return k.callback=a,isNaN(k.endVal)||isNaN(k.startVal)?(console.log("countUp error: startVal or endVal is not a number"),k.printValue()):k.rAF=requestAnimationFrame(k.count),!1},this.pauseResume=function(){k.paused?(k.paused=!1,k.startTime=null,k.duration=k.remaining,k.startVal=k.frameVal,requestAnimationFrame(k.count)):(k.paused=!0,cancelAnimationFrame(k.rAF))},this.stop=function(){cancelAnimationFrame(k.rAF)},this.resume=function(){k.stop(),k.startTime=null,k.duration=k.remaining,k.startVal=k.frameVal,requestAnimationFrame(k.count)},this.reset=function(){k.paused=!1,k.startTime=null,k.startVal=b,cancelAnimationFrame(k.rAF),k.printValue(k.startVal)},this.update=function(a){cancelAnimationFrame(k.rAF),k.paused=!1,k.startTime=null,k.startVal=k.frameVal,k.endVal=Number(a),k.countDown=k.startVal>k.endVal,k.rAF=requestAnimationFrame(k.count)},this.formatNumber=function(a){a=a.toFixed(k.decimals),a+="";var b,c,d,e;if(b=a.split("."),c=b[0],d=b.length>1?k.options.decimal+b[1]:"",e=/(\d+)(\d{3})/,k.options.useGrouping)for(;e.test(c);)c=c.replace(e,"$1"+k.options.separator+"$2");return k.options.prefix+c+d+k.options.suffix},k.printValue(k.startVal)};return a});