(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/uv-count-to/uv-count-to"],{"03e5":function(t,i,a){},"2a58":function(t,i,a){"use strict";a.r(i);var n=a("cebe"),e=a("5d0d");for(var s in e)["default"].indexOf(s)<0&&function(t){a.d(i,t,(function(){return e[t]}))}(s);a("81ac");var r=a("828b"),l=Object(r["a"])(e["default"],n["b"],n["c"],!1,null,"4c23f32f",null,!1,n["a"],void 0);i["default"]=l.exports},"4b63":function(t,i,a){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n={name:"uv-count-to",props:{startVal:{type:[String,Number],default:0},endVal:{type:[String,Number],default:0},duration:{type:[String,Number],default:2e3},autoplay:{type:Boolean,default:!0},decimals:{type:[String,Number],default:0},useEasing:{type:Boolean,default:!0},decimal:{type:[String,Number],default:"."},color:{type:String,default:"#606266"},fontSize:{type:[String,Number],default:22},bold:{type:Boolean,default:!1},separator:{type:String,default:""}},data:function(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:Number(this.duration),startTime:null,timestamp:null,remaining:null,rAF:null,lastTime:0}},computed:{countDown:function(){return this.startVal>this.endVal}},watch:{startVal:function(){this.autoplay&&this.start()},endVal:function(){console.log(123),this.autoplay&&this.start()}},mounted:function(){this.autoplay&&this.start()},methods:{easingFn:function(t,i,a,n){return a*(1-Math.pow(2,-10*t/n))*1024/1023+i},requestAnimationFrame:function(t){var i=(new Date).getTime(),a=Math.max(0,16-(i-this.lastTime)),n=setTimeout((function(){t(i+a)}),a);return this.lastTime=i+a,n},cancelAnimationFrame:function(t){clearTimeout(t)},start:function(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=this.requestAnimationFrame(this.count)},restart:function(){this.paused?(this.resume(),this.paused=!1):(this.stop(),this.paused=!0)},stop:function(){this.cancelAnimationFrame(this.rAF),this.paused=!0},resume:function(){this.remaining&&(this.startTime=0,this.localDuration=this.remaining,this.localStartVal=this.printVal,this.requestAnimationFrame(this.count))},reset:function(){this.startTime=null,this.cancelAnimationFrame(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count:function(t){this.startTime||(this.startTime=t),this.timestamp=t;var i=t-this.startTime;this.remaining=this.localDuration-i,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(i,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(i,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(i/this.localDuration):this.printVal=this.localStartVal+(this.endVal-this.localStartVal)*(i/this.localDuration),this.countDown?this.printVal=this.printVal<this.endVal?this.endVal:this.printVal:this.printVal=this.printVal>this.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal)||0,i<this.localDuration?this.rAF=this.requestAnimationFrame(this.count):this.$emit("end")},isNumber:function(t){return!isNaN(parseFloat(t))},formatNumber:function(t){t=Number(t),t=t.toFixed(Number(this.decimals)),t+="";var i=t.split("."),a=i[0],n=i.length>1?"".concat(this.decimal).concat(i[1]):"",e=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))while(e.test(a))a=a.replace(e,"$1"+this.separator+"$2");return a+n},destroyed:function(){this.cancelAnimationFrame(this.rAF)}}};i.default=n},"5d0d":function(t,i,a){"use strict";a.r(i);var n=a("4b63"),e=a.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){a.d(i,t,(function(){return n[t]}))}(s);i["default"]=e.a},"81ac":function(t,i,a){"use strict";var n=a("03e5"),e=a.n(n);e.a},cebe:function(t,i,a){"use strict";a.d(i,"b",(function(){return n})),a.d(i,"c",(function(){return e})),a.d(i,"a",(function(){}));var n=function(){var t=this.$createElement;this._self._c},e=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/uv-count-to/uv-count-to-create-component',
    {
        'components/uv-count-to/uv-count-to-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("2a58"))
        })
    },
    [['components/uv-count-to/uv-count-to-create-component']]
]);
