2014-09-13 00:32:05 +08:00
|
|
|
!function(t){function i(t,i,r){null!=t&&("number"==typeof t?this.fromNumber(t,i,r):null==i&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,i))}function r(){return new i(null)}function o(t,i,r,o,s,n){for(;--n>=0;){var h=i*this[t++]+r[o]+s;s=Math.floor(h/67108864),r[o++]=67108863&h}return s}function s(t,i,r,o,s,n){for(var h=32767&i,e=i>>15;--n>=0;){var u=32767&this[t],f=this[t++]>>15,a=e*u+f*h;u=h*u+((32767&a)<<15)+r[o]+(1073741823&s),s=(u>>>30)+(a>>>15)+e*f+(s>>>30),r[o++]=1073741823&u}return s}function n(t,i,r,o,s,n){for(var h=16383&i,e=i>>14;--n>=0;){var u=16383&this[t],f=this[t++]>>14,a=e*u+f*h;u=h*u+((16383&a)<<14)+r[o]+s,s=(u>>28)+(a>>14)+e*f,r[o++]=268435455&u}return s}function h(t){return ai.charAt(t)}function e(t,i){var r=pi[t.charCodeAt(i)];return null==r?-1:r}function u(t){for(var i=this.t-1;i>=0;--i)t[i]=this[i];t.t=this.t,t.s=this.s}function f(t){this.t=1,this.s=0>t?-1:0,t>0?this[0]=t:-1>t?this[0]=t+DV:this.t=0}function a(t){var i=r();return i.fromInt(t),i}function p(t,r){var o;if(16==r)o=4;else if(8==r)o=3;else if(256==r)o=8;else if(2==r)o=1;else if(32==r)o=5;else{if(4!=r)return void this.fromRadix(t,r);o=2}this.t=0,this.s=0;for(var s=t.length,n=!1,h=0;--s>=0;){var u=8==o?255&t[s]:e(t,s);0>u?"-"==t.charAt(s)&&(n=!0):(n=!1,0==h?this[this.t++]=u:h+o>this.DB?(this[this.t-1]|=(u&(1<<this.DB-h)-1)<<h,this[this.t++]=u>>this.DB-h):this[this.t-1]|=u<<h,h+=o,h>=this.DB&&(h-=this.DB))}8==o&&0!=(128&t[0])&&(this.s=-1,h>0&&(this[this.t-1]|=(1<<this.DB-h)-1<<h)),this.clamp(),n&&i.ZERO.subTo(this,this)}function l(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t}function c(t){if(this.s<0)return"-"+this.negate().toString(t);var i;if(16==t)i=4;else if(8==t)i=3;else if(2==t)i=1;else if(32==t)i=5;else{if(4!=t)return this.toRadix(t);i=2}var r,o=(1<<i)-1,s=!1,n="",e=this.t,u=this.DB-e*this.DB%i;if(e-->0)for(u<this.DB&&(r=this[e]>>u)>0&&(s=!0,n=h(r));e>=0;)i>u?(r=(this[e]&(1<<u)-1)<<i-u,r|=this[--e]>>(u+=this.DB-i)):(r=this[e]>>(u-=i)&o,0>=u&&(u+=this.DB,--e)),r>0&&(s=!0),s&&(n+=h(r));return s?n:"0"}function v(){var t=r();return i.ZERO.subTo(this,t),t}function m(){return this.s<0?this.negate():this}function y(t){var i=this.s-t.s;if(0!=i)return i;var r=this.t;if(i=r-t.t,0!=i)return this.s<0?-i:i;for(;--r>=0;)if(0!=(i=this[r]-t[r]))return i;return 0}function T(t){var i,r=1;return 0!=(i=t>>>16)&&(t=i,r+=16),0!=(i=t>>8)&&(t=i,r+=8),0!=(i=t>>4)&&(t=i,r+=4),0!=(i=t>>2)&&(t=i,r+=2),0!=(i=t>>1)&&(t=i,r+=1),r}function d(){return this.t<=0?0:this.DB*(this.t-1)+T(this[this.t-1]^this.s&this.DM)}function D(t,i){var r;for(r=this.t-1;r>=0;--r)i[r+t]=this[r];for(r=t-1;r>=0;--r)i[r]=0;i.t=this.t+t,i.s=this.s}function g(t,i){for(var r=t;r<this.t;++r)i[r-t]=this[r];i.t=Math.max(this.t-t,0),i.s=this.s}function S(t,i){var r,o=t%this.DB,s=this.DB-o,n=(1<<s)-1,h=Math.floor(t/this.DB),e=this.s<<o&this.DM;for(r=this.t-1;r>=0;--r)i[r+h+1]=this[r]>>s|e,e=(this[r]&n)<<o;for(r=h-1;r>=0;--r)i[r]=0;i[h]=e,i.t=this.t+h+1,i.s=this.s,i.clamp()}function b(t,i){i.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)return void(i.t=0);var o=t%this.DB,s=this.DB-o,n=(1<<o)-1;i[0]=this[r]>>o;for(var h=r+1;h<this.t;++h)i[h-r-1]|=(this[h]&n)<<s,i[h-r]=this[h]>>o;o>0&&(i[this.t-r-1]|=(this.s&n)<<s),i.t=this.t-r,i.clamp()}function B(t,i){for(var r=0,o=0,s=Math.min(t.t,this.t);s>r;)o+=this[r]-t[r],i[r++]=o&this.DM,o>>=this.DB;if(t.t<this.t){for(o-=t.s;r<this.t;)o+=this[r],i[r++]=o&this.DM,o>>=this.DB;o+=this.s}else{for(o+=this.s;r<t.t;)o-=t[r],i[r++]=o&this.DM,o>>=this.DB;o-=t.s}i.s=0>o?-1:0,-1>o?i[r++]=this.DV+o:o>0&&(i[r++]=o),i.t=r,i.clamp()}function E(t,r){var o=this.abs(),s=t.abs(),n=o.t;for(r.t=n+s.t;--n>=0;)r[n]=0;for(n=0;n<s.t;++n)r[n+o.t]=o.am(0,s[n],r,n,0,o.t);r.s=0,r.clamp(),this.s!=t.s&&i.ZERO.subTo(r,r)}function M(t){for(var i=this.abs(),r=t.t=2*i.t;--r>=0;)t[r]=0;for(r=0;r<i.t-1;++r){var o=i.am(r,i[r],t,2*r,0,1);(t[r+i.t]+=i.am(r+1,2*i[r],t,2*r+1,o,i.t-r-1))>=i.DV&&(t[r+i.t]-=i.DV,t[r+i.t+1]=1)}t.t>0&&(t[t.t-1]+=i.am(r,i[r],t,2*r,0,1)),t.s=0,t.clamp()}function w(t,o,s){var n=t.abs();if(!(n.t<=0)){var h=this.abs();if(h.t<n.t)return nul
|