System.register(["./p-14b5f59f.system.js"],(function(t){"use strict";var i,s,e;return{setters:[function(t){i=t.r;s=t.h;e=t.H}],execute:function(){var n="x-number{display:inline-block}";var h=n;var u=t("x_number",function(){function t(t){i(this,t);this.value=0;this.from=0;this.fixed=0;this.thousandsSeparator=",";this.interval=1;this.withoutAnimation=false;this.lastNumber=undefined;this.actualNumber=undefined;this.typingTimer=undefined}t.prototype.watchValue=function(){if(this.withoutAnimation){this.actualNumber=this.numberWithCommas(this.value);this.lastNumber=this.value}else{clearTimeout(this.typingTimer);this.typingTimer=setTimeout(this.animateNumber,this.interval*1e3)}};t.prototype.componentWillLoad=function(){this.lastNumber=this.from;this.actualNumber=this.from.toFixed(this.fixed)};t.prototype.componentDidLoad=function(){var t=this;if(this.withoutAnimation){this.actualNumber=this.numberWithCommas(this.value)}else{setTimeout((function(){t.animateNumber()}),300)}};t.prototype.animateNumber=function(){var t=this;var i=null;var s=function(e){i!==null&&i!==void 0?i:i=e;var n=Math.min((e-i)/1e3,1);t.actualNumber=t.numberWithCommas(n*(t.value-t.lastNumber)+t.lastNumber);if(n<1){window.requestAnimationFrame(s)}else{t.lastNumber=t.value}};window.requestAnimationFrame(s)};t.prototype.numberWithCommas=function(t){return parseFloat(t).toFixed(this.fixed).replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator)};t.prototype.render=function(){return s(e,{key:"0df9333b9b74a5153c2f904867fe8fb8443f42f5"},this.actualNumber)};Object.defineProperty(t,"watchers",{get:function(){return{value:["watchValue"]}},enumerable:false,configurable:true});return t}());u.style=h}}}));