zk.BigDecimal=zk.$extends(zk.Object,{_precision:0,$define:{precision:null},$init:function(t){for(var i=-1,e=0,n=(t=t?""+t:"0").length;e<n;++e){var s=t.charAt(e);if(0!=e||"-"!=s){if((s<"0"||"9"<s)&&"-"!=s&&"+"!=s||e&&("-"==s||"+"==s)){if(!(i<0&&"."==s)){t=t.substring(0,e);break}i=e}}else this._negative=!0,t=t.substring(1)}0<=i&&(t=t.substring(0,i)+t.substring(i+1),this._precision=t.length-i,this._dot=!0),this._value=t},$toNumber:function(){var t,i=parseFloat(this._value);return this._negative&&(i*=-1),(t=this._precision)&&(i/=Math.pow(10,t)),i},$toString:function(){if(0==this._value.length)return"";var t=this._value.length-this._precision,i="";if(t<0)for(var e=-t;0<e--;)i+="0";return(this._negative?"-":"")+this._value.substring(0,t)+(this._dot||this._precision?"."+i+this._value.substring(t):"")},$toLocaleString:function(){if(0==this._value.length)return"";var t=this._value.length-this._precision;if(t<=0){for(var i="",e=-t;0<e--;)i+="0";return(this._negative?zk.MINUS:"")+"0"+(this._precision?zk.DECIMAL+i+this._value:"")}return(this._negative?zk.MINUS:"")+this._value.substring(0,t)+(this._precision?zk.DECIMAL+this._value.substring(t):"")}}),zk.Long=zk.$extends(zk.Object,{$init:function(t){for(var i,e=(t=t?""+t:"0").length,n=0;n<e;++n)if(((i=t.charAt(n))<"0"||"9"<i)&&(0<n||"-"!=i&&"+"!=i)){t=t.substring(0,n);break}1==e&&((i=t.charAt(0))<"0"||"9"<i)&&(t="NaN"),this._value=t},scale:function(t){var i=this._value||"",e=i.length;if(e)if(0<t){if(1<e||"0"!=i.charAt(0))for(;0<t--;)i+="0"}else t<0&&(this._value=(e+=t)<=0?"0":i.substring(0,e))},$toNumber:function(){return parseFloat(this._value)},$toString:_zkf=function(){return this._value},$toLocaleString:_zkf});