zul.inp.SimpleSpinnerConstraint=zk.$extends(zul.inp.SimpleConstraint,{$define:{min:_zkf=function(){},max:_zkf},parseConstraint_:function(g){var a=g.replace(/ +/g," ").split(/[, ]/),f=a.length,b=this._cstArr;if(a.$contains("max")&&a.$contains("min")){b[b.length]="maxmin";var c=!0}for(var d=0;d<f+1;d++){var e=a[d];if("min"==e||"max"==e)c||(b[b.length]=e,c=!0),this["_"+e]=+a[++d]}if(!c)return this.$supers("parseConstraint_",arguments)},validate:function(g,a){var f=this.$supers("validate",arguments);
switch(typeof a){case "number":var b=this._max&&a>this._max,c=this._min&&a<this._min;if(b||c)var d=(b=(c=this._errmsg.maxmin)?c:b?this._errmsg.max:this._errmsg.min)?b:msgzul.OUT_OF_RANGE+": "+(null!=this._min?null!=this._max?this._min+" - "+this._max:">= "+this._min:"<= "+this._max)}return d||f}});
