text: !function(t,n){function e(e,s){function f(){function i(){s.animateOnInit&&s.animateOnAppear&&u(e)&&(t(n).off("scroll touchmove",i),F.call(M))}p();var a,o,l,r=h(),c=d();r||(a=g())&&("number"!=typeof s.value?s.value=a.nodeValue:s.count=a.nodeValue),c||(o=x())&&(s.max=o.nodeValue),(l=w.find("script[type*='text/x-']")).length&&(s.template=l.html(),l.remove()),t(n).on("resize",function(){v.call(M)}),t(n).on("scroll touchmove",i),s.animateOnInit?s.animateOnAppear&&u(e)?(s.count="number"==typeof r?r:0,F.call(M)):b.call(this):(s.count=p(),b.call(this)),v.call(this)}function m(){var t=parseFloat(s.min);return isNaN(t)?0:t}function d(){var t=parseFloat(s.max);return isNaN(t)?0:t}function p(){d();var t=m(),n=(h(),parseFloat(s.value));return isNaN(n)&&(n=t),n}function h(){d();var t=m(),n=parseFloat(s.count);return isNaN(n)&&(n=t),n}function v(){}function g(t){var n=w.find(s.countSelector)[0];return n||(n=w.find("*").last().siblings().addBack()[0]),r(n||e)[0]}function x(t){var n=w.find(s.maxSelector)[0];return n?r(n)[0]:null}function y(t){var n=s.decimals,e=s.decimalDelimiter,i=s.thousandDelimiter,a=o(t,n,e,i);return a=l(a,s.pad)}function b(){var a,o,l,r,u,c,f,v,b=d(),N=m(),F=p(),O=h(),S=y(O),T=y(F),A=y(b),M=y(N),w=s.engine||void 0!==n.Handlebars?n.Handlebars:null,D=s.template;try{D=(l=t(s.template)).length&&l[0].innerHTML||D}catch(t){}w&&D?((r=w.compile(D))&&(a=r(t.extend({},s,{count:S,value:T,max:A,min:M}))),(o=document.createElement("div")).innerHTML=a,u=o.childNodes,t(e).contents().remove(),t(e).append(u)):((c=g())&&(c.nodeValue=S),(f=x())&&(f.nodeValue=A),c||f||(e.innerHTML=S)),s.style&&(v=t.fn[i].getStyle(s.style))&&v.render&&v.render.call(e,O,s)}function N(t){s.value=t,D||F()}function F(){D||(T=(new Date).getTime(),A=h(),D=!0,"function"==typeof s.start&&s.start.call(e),c(O))}function O(){var t=s.duration,n=(d(),p()),i=(new Date).getTime(),a=T+t,o=Math.min((t-(a-i))/t,1),l=A+o*(n-A);s.count=l,b.call(this),"function"==typeof s.step&&s.step.call(e,l,s),o<1&&D?c(O):S.call(this)}function S(){D=!1,"function"==typeof s.complete&&s.complete.call(e)}var T,A,M=this,w=t(e),D=!1;s=t.extend({},a,s,w.data()),this.resize=function(){v.call(this)},this.animate=function(t){N.call(this,t)},this.setOptions=function(n){var e=this.getOptions();t.extend(!0,s,n),s.value!==e.value&&F()},this.getOptions=function(){return t.extend(!0,{},s)},f.call(this)}var i="countimator",a={count:0,value:null,min:null,max:0,duration:1e3,countSelector:".counter-count",maxSelector:".counter-max",template:null,engine:null,animateOnInit:!0,animateOnAppear:!0,decimals:0,decimalDelimiter:".",thousandDelimiter:null,pad:!1,style:null,start:function(){},step:function(t){},complete:function(){}},o=function(t,n,e,i){n=isNaN(n=Math.abs(n))?2:n,e=void 0===e?".":e,i="string"==typeof(i=void 0===i?",":i)?i:"";var a=t<0?"-":"",o=Math.abs(+t||0).toFixed(n),l=String(parseInt(o)),r=l.length>3?l.length%3:0;return a+(r?l.substr(0,r)+i:"")+l.substr(r).replace(/(\d{3})(?=\d)/g,"$1"+i)+(n?e+Math.abs(o-l).toFixed(n).slice(2):"")},l=function(t,n){for(var e=""+t;e.length<n;)e="0"+e;return e},r=function(n){return t(n).contents().filter(function(){return 3===this.nodeType})},u=function(e){var i=t(e),a=t(n),o=a.scrollTop(),l=o+a.height(),r=i.offset().top;return r+i.height()<=l&&r>=o},c=n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||n.msRequestAnimationFrame||n.oRequestAnimationFrame||function(t){n.setTimeout(t,1e3/60)};t.fn[i]=function(n){return this.each(function(){var a=t.extend(!0,{},n),o=t(this).data(i);return o?o.setOptions(a):t(this).data(i,new e(this,a)),t(this)})},function(){var n={};t.fn[i].registerStyle=function(t,e){n[t]=e},t.fn[i].getStyle=function(t){return n[t]}}()}(jQuery,window);