zk.cpsp.SPush=zk.$extends(zk.Object,{start:function(a,b,c,d){this.desktop=a;this.min=0<b?b:1E3;this.max=0<c?c:15E3;this.factor=0<d?d:5;a=this.min/4;500>a&&(a=500);this.intv=setInterval(this.proxy(this._do),a)},stop:function(){clearInterval(this.intv);this.intv=null},_do:function(){if(!zAu.processing()){var a=!zAu.doneTime;if(!a){a=(zAu.doneTime-zAu.sentTime)*this.factor;var b=this.max,c=this.min;if(a>b)a=b;else if(isNaN(a)||a<c)a=c;a=jq.now()>zAu.doneTime+a}a&&zAu.send(new zk.Event(this.desktop,"dummy",
null,{ignorable:!0,rtags:{isDummy:!0}}))}}});zk.cpsp.start=function(a,b,c,d){a=zk.Desktop.$(a);a._cpsp&&a._cpsp.stop();(a._cpsp=new zk.cpsp.SPush).start(a,b,c,d)};zk.cpsp.stop=function(a){(a=zk.Desktop.$(a))&&a._cpsp&&(a._cpsp.stop(),a._cpsp=null)};
