function getStats(n){n=n||{};jQuery.get("https://community.chocolatey.org/stats",function(t){jQuery("section.aggstats").show();update(t,n,"UniquePackages");update(t,n,"Downloads");update(t,n,"TotalPackages");update(t,n,"PackagesReadyForReviewModeration");update(t,n,"TotalPackagesInModeration");update(t,n,"AverageModerationWaitTimeHours");update(t,n,"PackagesPassingVerification");update(t,n,"UpToDatePackages");update(t,n,"OlderThanOneYearPackages")});setTimeout(function(){getStats(n)},3e4)}function update(n,t,i){var s=t[i]||"",f=n[i].toString(),h=jQuery("#"+i),o;if(s!=f){t[i]=f;var u=f.length,r=s.length,e=h.children("span");if(r>u&&(e.slice(0,r-u).remove(),e=e.slice(r-u)),r&&jQuery.each(f.split("").reverse(),function(n,t){(n<=r?s.charAt(r-n-1):"")!=t&&animateEl(jQuery(e[u-n-1]),t)}),r<u){for(o=r;o<u;o++)h.prepend("<span>"+f.charAt(u-o-1)+"<\/span>");e=h.children("span")}}}function animateEl(n,t){t=t||"";var i=n.parent();n.stop(!0,!0).animate({top:.3*parseInt(i.height())},350,"linear",function(){jQuery(this).html(t).css({top:-.8*parseInt(i.height())}).animate({top:0},350,"linear")})}"localhost"!==location.hostname&&"127.0.0.1"!==location.hostname&&""!==location.hostname&&jQuery(getStats)