1 |
- !function(aD){function aO(h){var f,b,a,d=h.length-1,c="",g=h[0];if(d>0){for(c+=g,f=1;d>f;f++){a=h[f]+"",b=ah-a.length,b&&(c+=aP(b)),c+=a}g=h[f],a=g+"",b=ah-a.length,b&&(c+=aP(b))}else{if(0===g){return"0"}}for(;g%10===0;){g/=10}return c+g}function aK(c,b,a){if(c!==~~c||b>c||c>a){throw Error(aj+c)}}function aw(j,g,c,b){var f,d,h,a;for(d=j[0];d>=10;d/=10){--g}return --g<0?(g+=ah,f=0):(f=Math.ceil((g+1)/ah),g%=ah),d=bc(10,ah-g),a=j[f]%d|0,null==b?3>g?(0==g?a=a/100|0:1==g&&(a=a/10|0),h=4>c&&99999==a||c>3&&49999==a||50000==a||0==a):h=(4>c&&a+1==d||c>3&&a+1==d/2)&&(j[f+1]/d/100|0)==bc(10,g-2)-1||(a==d/2||0==a)&&0==(j[f+1]/d/100|0):4>g?(0==g?a=a/1000|0:1==g?a=a/100|0:2==g&&(a=a/10|0),h=(b||4>c)&&9999==a||!b&&c>3&&4999==a):h=((b||4>c)&&a+1==d||!b&&c>3&&a+1==d/2)&&(j[f+1]/d/1000|0)==bc(10,g-3)-1,h}function ay(j,g,c){for(var b,f,d=[0],h=0,a=j.length;a>h;){for(f=d.length;f--;){d[f]*=g}for(d[0]+=ag.indexOf(j.charAt(h++)),b=0;b<d.length;b++){d[b]>c-1&&(void 0===d[b+1]&&(d[b+1]=0),d[b+1]+=d[b]/c|0,d[b]%=c)}}return d.reverse()}function ax(h,f){var b,a,d=f.d.length;32>d?(b=Math.ceil(d/3),a=Math.pow(4,-b).toString()):(b=16,a="2.3283064365386962890625e-10"),h.precision+=b,f=bl(h,1,f.times(a),new h(1));for(var c=b;c--;){var g=f.times(f);f=g.times(g).minus(g).times(8).plus(1)}return h.precision-=b,f}function aC(j,v,m,A){var b,B,g,z,x,q,y,p,w,k=j.constructor;j:if(null!=v){if(p=j.d,!p){return j}for(b=1,z=p[0];z>=10;z/=10){b++}if(B=v-b,0>B){B+=ah,g=v,y=p[w=0],x=y/bc(10,b-g-1)%10|0}else{if(w=Math.ceil((B+1)/ah),z=p.length,w>=z){if(!A){break j}for(;z++<=w;){p.push(0)}y=x=0,b=1,B%=ah,g=B-ah+1}else{for(y=z=p[w],b=1;z>=10;z/=10){b++}B%=ah,g=B-ah+b,x=0>g?0:y/bc(10,b-g-1)%10|0}}if(A=A||0>v||void 0!==p[w+1]||(0>g?y:y%bc(10,b-g-1)),q=4>m?(x||A)&&(0==m||m==(j.s<0?3:2)):x>5||5==x&&(4==m||A||6==m&&(B>0?g>0?y/bc(10,b-g):0:p[w-1])%10&1||m==(j.s<0?8:7)),1>v||!p[0]){return p.length=0,q?(v-=j.e+1,p[0]=bc(10,(ah-v%ah)%ah),j.e=-v||0):p[0]=j.e=0,j}if(0==B?(p.length=w,z=1,w--):(p.length=w+1,z=bc(10,ah-B),p[w]=g>0?(y/bc(10,b-g)%bc(10,g)|0)*z:0),q){for(;;){if(0==w){for(B=1,g=p[0];g>=10;g/=10){B++}for(g=p[0]+=z,z=1;g>=10;g/=10){z++}B!=z&&(j.e++,p[0]==aH&&(p[0]=1));break}if(p[w]+=z,p[w]!=aH){break}p[w--]=0,z=1}}for(B=p.length;0===p[--B];){p.pop()}}return aU&&(j.e>k.maxE?(j.d=null,j.e=NaN):j.e<k.minE&&(j.e=0,j.d=[0])),j}function av(g,c,b){if(!g.isFinite()){return at(g)}var e,d=g.e,f=aO(g.d),a=f.length;return c?(b&&(e=b-a)>0?f=f.charAt(0)+"."+f.slice(1)+aP(e):a>1&&(f=f.charAt(0)+"."+f.slice(1)),f=f+(g.e<0?"e":"e+")+g.e):0>d?(f="0."+aP(-d-1)+f,b&&(e=b-a)>0&&(f+=aP(e))):d>=a?(f+=aP(d+1-a),b&&(e=b-d-1)>0&&(f=f+"."+aP(e))):((e=d+1)<a&&(f=f.slice(0,e)+"."+f.slice(e)),b&&(e=b-a)>0&&(d+1===a&&(f+="."),f+=aP(e))),f}function aQ(c,b){var a=c[0];for(b*=ah;a>=10;a/=10){b++}return b}function aN(c,b,a){if(b>bi){throw aU=!0,a&&(c.precision=a),Error(bD)}return aC(new c(bt),b,1,!0)}function aS(c,b,a){if(b>aa){throw Error(bD)}return aC(new c(al),b,a,!0)}function aL(c){var b=c.length-1,a=b*ah+1;if(b=c[b]){for(;b%10==0;b/=10){a--}for(b=c[0];b>=10;b/=10){a++}}return a}function aP(b){for(var a="";b--;){a+="0"}return a}function aF(h,f,b,a){var d,c=new h(1),g=Math.ceil(a/ah+4);for(aU=!1;;){if(b%2&&(c=c.times(f),az(c.d,g)&&(d=!0)),b=ae(b/2),0===b){b=c.d.length-1,d&&0===c.d[b]&&++c.d[b];break}f=f.times(f),az(f.d,g)}return aU=!0,c}function aB(a){return 1&a.d[a.d.length-1]}function aM(g,f,b){for(var a,d=new g(f[0]),c=0;++c<f.length;){if(a=new g(f[c]),!a.s){d=a;break}d[b](a)&&(d=a)}return d}function ar(j,q){var b,D,C,z,x,A,t,y=0,o=0,e=0,v=j.constructor,B=v.rounding,k=v.precision;if(!j.d||!j.d[0]||j.e>17){return new v(j.d?j.d[0]?j.s<0?0:1/0:1:j.s?j.s<0?0:j:NaN)}for(null==q?(aU=!1,t=k):t=q,A=new v(0.03125);j.e>-2;){j=j.times(A),e+=5}for(D=Math.log(bc(2,e))/Math.LN10*2+5|0,t+=D,b=z=x=new v(1),v.precision=t;;){if(z=aC(z.times(j),t,1),b=b.times(++o),A=x.plus(bF(z,b,t,1)),aO(A.d).slice(0,t)===aO(x.d).slice(0,t)){for(C=e;C--;){x=aC(x.times(x),t,1)}if(null!=q){return v.precision=k,x}if(!(3>y&&aw(x.d,t-D,B,y))){return aC(x,v.precision=k,B,aU=!0)}v.precision=t+=10,b=z=A=new v(1),o=0,y++}x=A}}function aE(C,F){var A,z,q,J,L,G,I,D,B,H,m,o=1,e=10,K=C,k=K.d,t=K.constructor,f=t.rounding,j=t.precision;if(K.s<0||!k||!k[0]||!K.e&&1==k[0]&&1==k.length){return new t(k&&!k[0]?-1/0:1!=K.s?NaN:k?0:K)}if(null==F?(aU=!1,B=j):B=F,t.precision=B+=e,A=aO(k),z=A.charAt(0),!(Math.abs(J=K.e)<1500000000000000)){return D=aN(t,B+2,j).times(J+""),K=aE(new t(z+"."+A.slice(1)),B-e).plus(D),t.precision=j,null==F?aC(K,j,f,aU=!0):K}for(;7>z&&1!=z||1==z&&A.charAt(1)>3;){K=K.times(C),A=aO(K.d),z=A.charAt(0),o++}for(J=K.e,z>1?(K=new t("0."+A),J++):K=new t(z+"."+A.slice(1)),H=K,I=L=K=bF(K.minus(1),K.plus(1),B,1),m=aC(K.times(K),B,1),q=3;;){if(L=aC(L.times(m),B,1),D=I.plus(bF(L,new t(q),B,1)),aO(D.d).slice(0,B)===aO(I.d).slice(0,B)){if(I=I.times(2),0!==J&&(I=I.plus(aN(t,B+2,j).times(J+""))),I=bF(I,new t(o),B,1),null!=F){return t.precision=j,I}if(!aw(I.d,B-e,f,G)){return aC(I,t.precision=j,f,aU=!0)}t.precision=B+=e,D=L=K=bF(H.minus(1),H.plus(1),B,1),m=aC(K.times(K),B,1),q=G=1}I=D,q+=2}}function at(a){return String(a.s*a.s/0)}function a9(f,d){var b,a,c;for((b=d.indexOf("."))>-1&&(d=d.replace(".","")),(a=d.search(/e/i))>0?(0>b&&(b=a),b+=+d.slice(a+1),d=d.substring(0,a)):0>b&&(b=d.length),a=0;48===d.charCodeAt(a);a++){}for(c=d.length;48===d.charCodeAt(c-1);--c){}if(d=d.slice(a,c)){if(c-=a,f.e=b=b-a-1,f.d=[],a=(b+1)%ah,0>b&&(a+=ah),c>a){for(a&&f.d.push(+d.slice(0,a)),c-=ah;c>a;){f.d.push(+d.slice(a,a+=ah))}d=d.slice(a),a=ah-d.length}else{a-=c}for(;a--;){d+="0"}f.d.push(+d),aU&&(f.e>f.constructor.maxE?(f.d=null,f.e=NaN):f.e<f.constructor.minE&&(f.e=0,f.d=[0]))}else{f.e=0,f.d=[0]}return f}function aR(c,l){var g,r,v,b,q,k,p,j,m;if("Infinity"===l||"NaN"===l){return +l||(c.s=NaN),c.e=NaN,c.d=null,c}if(bA.test(l)){g=16,l=l.toLowerCase()}else{if(ad.test(l)){g=2}else{if(!au.test(l)){throw Error(aj+l)}g=8}}for(b=l.search(/p/i),b>0?(p=+l.slice(b+1),l=l.substring(2,b)):l=l.slice(2),b=l.indexOf("."),q=b>=0,r=c.constructor,q&&(l=l.replace(".",""),k=l.length,b=k-b,v=aF(r,new r(g),b,2*b)),j=ay(l,g,aH),m=j.length-1,b=m;0===j[b];--b){j.pop()}return 0>b?new r(0*c.s):(c.e=aQ(j,m),c.d=j,aU=!1,q&&(c=bF(c,v,4*k)),p&&(c=c.times(Math.abs(p)<54?Math.pow(2,p):bv.pow(2,p))),aU=!0,c)}function aq(j,g){var c,b=g.d.length;if(3>b){return bl(j,2,g,g)}c=1.4*Math.sqrt(b),c=c>16?16:0|c,g=g.times(Math.pow(5,-c)),g=bl(j,2,g,g);for(var f,d=new j(5),h=new j(16),a=new j(20);c--;){f=g.times(g),g=g.times(d.plus(f.times(h.times(f).minus(a))))}return g}function bl(g,m,j,w,b){var x,d,v,p,l=1,q=g.precision,k=Math.ceil(q/ah);for(aU=!1,p=j.times(j),v=new g(w);;){if(d=bF(v.times(p),new g(m++*m++),q,1),v=b?w.plus(d):w.minus(d),w=bF(d.times(p),new g(m++*m++),q,1),d=v.plus(w),void 0!==d.d[k]){for(x=k;d.d[x]===v.d[x]&&x--;){}if(-1==x){break}}x=v,v=w,w=d,d=x,l++}return aU=!0,d.d.length=k+1,d}function bb(g,f){var b,a=f.s<0,d=aS(g,g.precision,1),c=d.times(0.5);if(f=f.abs(),f.lte(c)){return bB=a?4:1,f}if(b=f.divToInt(d),b.isZero()){bB=a?3:2}else{if(f=f.minus(b.times(d)),f.lte(c)){return bB=aB(b)?a?2:3:a?4:1,f}bB=aB(b)?a?1:4:a?3:2}return f.minus(d).abs()}function ap(j,x,C,D){var i,z,v,A,r,y,q,b,u,B=j.constructor,k=void 0!==C;if(k?(aK(C,1,bs),void 0===D?D=B.rounding:aK(D,0,8)):(C=B.precision,D=B.rounding),j.isFinite()){for(q=av(j),v=q.indexOf("."),k?(i=2,16==x?C=4*C-3:8==x&&(C=3*C-2)):i=x,v>=0&&(q=q.replace(".",""),u=new B(1),u.e=q.length-v,u.d=ay(av(u),10,i),u.e=u.d.length),b=ay(q,10,i),z=r=b.length;0==b[--r];){b.pop()}if(b[0]){if(0>v?z--:(j=new B(j),j.d=b,j.e=z,j=bF(j,u,C,D,0,i),b=j.d,z=j.e,y=aY),v=b[C],A=i/2,y=y||void 0!==b[C+1],y=4>D?(void 0!==v||y)&&(0===D||D===(j.s<0?3:2)):v>A||v===A&&(4===D||y||6===D&&1&b[C-1]||D===(j.s<0?8:7)),b.length=C,y){for(;++b[--C]>i-1;){b[C]=0,C||(++z,b.unshift(1))}}for(r=b.length;!b[r-1];--r){}for(v=0,q="";r>v;v++){q+=ag.charAt(b[v])}if(k){if(r>1){if(16==x||8==x){for(v=16==x?4:3,--r;r%v;r++){q+="0"}for(b=ay(q,i,x),r=b.length;!b[r-1];--r){}for(v=1,q="1.";r>v;v++){q+=ag.charAt(b[v])}}else{q=q.charAt(0)+"."+q.slice(1)}}q=q+(0>z?"p":"p+")+z}else{if(0>z){for(;++z;){q="0"+q}q="0."+q}else{if(++z>r){for(z-=r;z--;){q+="0"}}else{r>z&&(q=q.slice(0,z)+"."+q.slice(z))}}}}else{q=k?"0p+0":"0"}q=(16==x?"0x":2==x?"0b":8==x?"0o":"")+q}else{q=at(j)}return j.s<0?"-"+q:q}function az(b,a){return b.length>a?(b.length=a,!0):void 0}function a8(a){return new this(a).abs()}function bk(a){return new this(a).acos()}function bq(a){return new this(a).acosh()}function bm(b,a){return new this(b).plus(a)}function aV(a){return new this(a).asin()}function a7(a){return new this(a).asinh()}function a5(a){return new this(a).atan()}function bd(a){return new this(a).atanh()}function a1(g,f){g=new this(g),f=new this(f);var b,a=this.precision,d=this.rounding,c=a+4;return g.s&&f.s?g.d||f.d?!f.d||g.isZero()?(b=f.s<0?aS(this,a,d):new this(0),b.s=g.s):!g.d||f.isZero()?(b=aS(this,c,1).times(0.5),b.s=g.s):f.s<0?(this.precision=c,this.rounding=1,b=this.atan(bF(g,f,c,1)),f=aS(this,c,1),this.precision=a,this.rounding=d,b=g.s<0?b.minus(f):b.plus(f)):b=this.atan(bF(g,f,c,1)):(b=aS(this,c,1).times(f.s>0?0.25:0.75),b.s=g.s):b=new this(NaN),b}function aT(a){return new this(a).cbrt()}function aI(a){return aC(a=new this(a),a.e+1,2)}function a3(f){if(!f||"object"!=typeof f){throw Error(bE+"Object expected")}var d,b,a,c=["precision",1,bs,"rounding",0,8,"toExpNeg",-ak,0,"toExpPos",0,ak,"maxE",0,ak,"minE",-ak,0,"modulo",0,9];for(d=0;d<c.length;d+=3){if(void 0!==(a=f[b=c[d]])){if(!(ae(a)===a&&a>=c[d+1]&&a<=c[d+2])){throw Error(aj+b+": "+a)}this[b]=a}}if(void 0!==(a=f[b="crypto"])){if(a!==!0&&a!==!1&&0!==a&&1!==a){throw Error(aj+b+": "+a)}if(a){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes){throw Error(bw)}this[b]=!0}else{this[b]=!1}}return this}function a2(a){return new this(a).cos()}function bo(a){return new this(a).cosh()}function bg(f){function d(k){var g,e,j,h=this;if(!(h instanceof d)){return new d(k)}if(h.constructor=d,k instanceof d){return h.s=k.s,h.e=k.e,void (h.d=(k=k.d)?k.slice():k)}if(j=typeof k,"number"===j){if(0===k){return h.s=0>1/k?-1:1,h.e=0,void (h.d=[0])}if(0>k?(k=-k,h.s=-1):h.s=1,k===~~k&&10000000>k){for(g=0,e=k;e>=10;e/=10){g++}return h.e=g,void (h.d=[k])}return 0*k!==0?(k||(h.s=NaN),h.e=NaN,void (h.d=null)):a9(h,k.toString())}if("string"!==j){throw Error(aj+k)}return 45===k.charCodeAt(0)?(k=k.slice(1),h.s=-1):h.s=1,by.test(k)?a9(h,k):aR(h,k)}var b,a,c;if(d.prototype=ac,d.ROUND_UP=0,d.ROUND_DOWN=1,d.ROUND_CEIL=2,d.ROUND_FLOOR=3,d.ROUND_HALF_UP=4,d.ROUND_HALF_DOWN=5,d.ROUND_HALF_EVEN=6,d.ROUND_HALF_CEIL=7,d.ROUND_HALF_FLOOR=8,d.EUCLID=9,d.config=d.set=a3,d.clone=bg,d.abs=a8,d.acos=bk,d.acosh=bq,d.add=bm,d.asin=aV,d.asinh=a7,d.atan=a5,d.atanh=bd,d.atan2=a1,d.cbrt=aT,d.ceil=aI,d.cos=a2,d.cosh=bo,d.div=bh,d.exp=bp,d.floor=a0,d.hypot=bx,d.ln=aJ,d.log=aZ,d.log10=ao,d.log2=bf,d.max=bj,d.min=be,d.mod=a6,d.mul=aX,d.pow=aW,d.random=a4,d.round=ab,d.sign=ba,d.sin=bC,d.sinh=bu,d.sqrt=aA,d.sub=aG,d.tan=am,d.tanh=bz,d.trunc=br,void 0===f&&(f={}),f){for(c=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],b=0;b<c.length;){f.hasOwnProperty(a=c[b++])||(f[a]=this[a])}}return d.config(f),d}function bh(b,a){return new this(b).div(a)}function bp(a){return new this(a).exp()}function a0(a){return aC(a=new this(a),a.e+1,3)}function bx(){var c,b,a=new this(0);for(aU=!1,c=0;c<arguments.length;){if(b=new this(arguments[c++]),b.d){a.d&&(a=a.plus(b.times(b)))}else{if(b.s){return aU=!0,new this(1/0)}a=b}}return aU=!0,a.sqrt()}function aJ(a){return new this(a).ln()}function aZ(b,a){return new this(b).log(a)}function bf(a){return new this(a).log(2)}function ao(a){return new this(a).log(10)}function bj(){return aM(this,arguments,"lt")}function be(){return aM(this,arguments,"gt")}function a6(b,a){return new this(b).mod(a)}function aX(b,a){return new this(b).mul(a)}function aW(b,a){return new this(b).pow(a)}function a4(j){var g,b,f,d,h=0,a=new this(1),i=[];if(void 0===j?j=this.precision:aK(j,1,bs),f=Math.ceil(j/ah),this.crypto){if(crypto.getRandomValues){for(g=crypto.getRandomValues(new Uint32Array(f));f>h;){d=g[h],d>=4290000000?g[h]=crypto.getRandomValues(new Uint32Array(1))[0]:i[h++]=d%10000000}}else{if(!crypto.randomBytes){throw Error(bw)}for(g=crypto.randomBytes(f*=4);f>h;){d=g[h]+(g[h+1]<<8)+(g[h+2]<<16)+((127&g[h+3])<<24),d>=2140000000?crypto.randomBytes(4).copy(g,h):(i.push(d%10000000),h+=4)}h=f/4}}else{for(;f>h;){i[h++]=10000000*Math.random()|0}}for(f=i[--h],j%=ah,f&&j&&(d=bc(10,ah-j),i[h]=(f/d|0)*d);0===i[h];h--){i.pop()}if(0>h){b=0,i=[0]}else{for(b=-1;0===i[0];b-=ah){i.shift()}for(f=1,d=i[0];d>=10;d/=10){f++}ah>f&&(b-=ah-f)}return a.e=b,a.d=i,a}function ab(a){return aC(a=new this(a),a.e+1,this.rounding)}function ba(a){return a=new this(a),a.d?a.d[0]?a.s:0*a.s:a.s||NaN}function bC(a){return new this(a).sin()}function bu(a){return new this(a).sinh()}function aA(a){return new this(a).sqrt()}function aG(b,a){return new this(b).sub(a)}function am(a){return new this(a).tan()}function bz(a){return new this(a).tanh()}function br(a){return aC(a=new this(a),a.e+1,1)}var aY,ai,bB,ak=9000000000000000,bs=1000000000,ag="0123456789abcdef",bt="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",al="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",bv={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-ak,maxE:ak,crypto:!1},aU=!0,bE="[DecimalError] ",aj=bE+"Invalid argument: ",bD=bE+"Precision limit exceeded",bw=bE+"crypto unavailable",ae=Math.floor,bc=Math.pow,ad=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,bA=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,au=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,by=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,aH=10000000,ah=7,af=9007199254740991,bi=bt.length-1,aa=al.length-1,ac={};ac.absoluteValue=ac.abs=function(){var a=new this.constructor(this);return a.s<0&&(a.s=1),aC(a)},ac.ceil=function(){return aC(new this.constructor(this),this.e+1,2)},ac.comparedTo=ac.cmp=function(d){var j,g,m,a,p=this,b=p.d,l=(d=new p.constructor(d)).d,k=p.s,h=d.s;if(!b||!l){return k&&h?k!==h?k:b===l?0:!b^0>k?1:-1:NaN}if(!b[0]||!l[0]){return b[0]?k:l[0]?-h:0}if(k!==h){return k}if(p.e!==d.e){return p.e>d.e^0>k?1:-1}for(m=b.length,a=l.length,j=0,g=a>m?m:a;g>j;++j){if(b[j]!==l[j]){return b[j]>l[j]^0>k?1:-1}}return m===a?0:m>a^0>k?1:-1},ac.cosine=ac.cos=function(){var d,c,b=this,a=b.constructor;return b.d?b.d[0]?(d=a.precision,c=a.rounding,a.precision=d+Math.max(b.e,b.sd())+ah,a.rounding=1,b=ax(a,bb(a,b)),a.precision=d,a.rounding=c,aC(2==bB||3==bB?b.neg():b,d,c,!0)):new a(1):new a(NaN)},ac.cubeRoot=ac.cbrt=function(){var e,j,w,b,x,v,p,m,q,k,o=this,g=o.constructor;if(!o.isFinite()||o.isZero()){return new g(o)}for(aU=!1,v=o.s*Math.pow(o.s*o,1/3),v&&Math.abs(v)!=1/0?b=new g(v.toString()):(w=aO(o.d),e=o.e,(v=(e-w.length+1)%3)&&(w+=1==v||-2==v?"0":"00"),v=Math.pow(w,1/3),e=ae((e+1)/3)-(e%3==(0>e?-1:2)),v==1/0?w="5e"+e:(w=v.toExponential(),w=w.slice(0,w.indexOf("e")+1)+e),b=new g(w),b.s=o.s),p=(e=g.precision)+3;;){if(m=b,q=m.times(m).times(m),k=q.plus(o),b=bF(k.plus(o).times(m),k.plus(q),p+2,1),aO(m.d).slice(0,p)===(w=aO(b.d)).slice(0,p)){if(w=w.slice(p-3,p+1),"9999"!=w&&(x||"4999"!=w)){(!+w||!+w.slice(1)&&"5"==w.charAt(0))&&(aC(b,e+1,1),j=!b.times(b).times(b).eq(o));break}if(!x&&(aC(m,e+1,0),m.times(m).times(m).eq(o))){b=m;break}p+=4,x=1}}return aU=!0,aC(b,e,g.rounding,j)},ac.decimalPlaces=ac.dp=function(){var c,b=this.d,a=NaN;if(b){if(c=b.length-1,a=(c-ae(this.e/ah))*ah,c=b[c]){for(;c%10==0;c/=10){a--}}0>a&&(a=0)}return a},ac.dividedBy=ac.div=function(a){return bF(this,new this.constructor(a))},ac.dividedToIntegerBy=ac.divToInt=function(c){var b=this,a=b.constructor;return aC(bF(b,new a(c),0,1,1),a.precision,a.rounding)},ac.equals=ac.eq=function(a){return 0===this.cmp(a)},ac.floor=function(){return aC(new this.constructor(this),this.e+1,3)},ac.greaterThan=ac.gt=function(a){return this.cmp(a)>0},ac.greaterThanOrEqualTo=ac.gte=function(b){var a=this.cmp(b);return 1==a||0===a},ac.hyperbolicCosine=ac.cosh=function(){var d,l,g,q,b,v=this,p=v.constructor,m=new p(1);if(!v.isFinite()){return new p(v.s?1/0:NaN)}if(v.isZero()){return m}g=p.precision,q=p.rounding,p.precision=g+Math.max(v.e,v.sd())+4,p.rounding=1,b=v.d.length,32>b?(d=Math.ceil(b/3),l=Math.pow(4,-d).toString()):(d=16,l="2.3283064365386962890625e-10"),v=bl(p,1,v.times(l),new p(1),!0);for(var k,o=d,j=new p(8);o--;){k=v.times(v),v=m.minus(k.times(j.minus(k.times(j))))}return aC(v,p.precision=g,p.rounding=q,!0)},ac.hyperbolicSine=ac.sinh=function(){var d,j,g,o,b=this,p=b.constructor;if(!b.isFinite()||b.isZero()){return new p(b)}if(j=p.precision,g=p.rounding,p.precision=j+Math.max(b.e,b.sd())+4,p.rounding=1,o=b.d.length,3>o){b=bl(p,2,b,b,!0)}else{d=1.4*Math.sqrt(o),d=d>16?16:0|d,b=b.times(Math.pow(5,-d)),b=bl(p,2,b,b,!0);for(var m,k=new p(5),h=new p(16),l=new p(20);d--;){m=b.times(b),b=b.times(k.plus(m.times(h.times(m).plus(l))))}}return p.precision=j,p.rounding=g,aC(b,j,g,!0)},ac.hyperbolicTangent=ac.tanh=function(){var d,c,b=this,a=b.constructor;return b.isFinite()?b.isZero()?new a(b):(d=a.precision,c=a.rounding,a.precision=d+7,a.rounding=1,bF(b.sinh(),b.cosh(),a.precision=d,a.rounding=c)):new a(b.s)},ac.inverseCosine=ac.acos=function(){var g,f=this,b=f.constructor,a=f.abs().cmp(1),d=b.precision,c=b.rounding;return -1!==a?0===a?f.isNeg()?aS(b,d,c):new b(0):new b(NaN):f.isZero()?aS(b,d+4,c).times(0.5):(b.precision=d+6,b.rounding=1,f=f.asin(),g=aS(b,d+4,c).times(0.5),b.precision=d,b.rounding=c,g.minus(f))},ac.inverseHyperbolicCosine=ac.acosh=function(){var d,c,b=this,a=b.constructor;return b.lte(1)?new a(b.eq(1)?0:NaN):b.isFinite()?(d=a.precision,c=a.rounding,a.precision=d+Math.max(Math.abs(b.e),b.sd())+4,a.rounding=1,aU=!1,b=b.times(b).minus(1).sqrt().plus(b),aU=!0,a.precision=d,a.rounding=c,b.ln()):new a(b)},ac.inverseHyperbolicSine=ac.asinh=function(){var d,c,b=this,a=b.constructor;return !b.isFinite()||b.isZero()?new a(b):(d=a.precision,c=a.rounding,a.precision=d+2*Math.max(Math.abs(b.e),b.sd())+6,a.rounding=1,aU=!1,b=b.times(b).plus(1).sqrt().plus(b),aU=!0,a.precision=d,a.rounding=c,b.ln())},ac.inverseHyperbolicTangent=ac.atanh=function(){var g,f,b,a,d=this,c=d.constructor;return d.isFinite()?d.e>=0?new c(d.abs().eq(1)?d.s/0:d.isZero()?d:NaN):(g=c.precision,f=c.rounding,a=d.sd(),Math.max(a,g)<2*-d.e-1?aC(new c(d),g,f,!0):(c.precision=b=a-d.e,d=bF(d.plus(1),new c(1).minus(d),b+g,1),c.precision=g+4,c.rounding=1,d=d.ln(),c.precision=g,c.rounding=f,d.times(0.5))):new c(NaN)},ac.inverseSine=ac.asin=function(){var g,f,b,a,d=this,c=d.constructor;return d.isZero()?new c(d):(f=d.abs().cmp(1),b=c.precision,a=c.rounding,-1!==f?0===f?(g=aS(c,b+4,a).times(0.5),g.s=d.s,g):new c(NaN):(c.precision=b+6,c.rounding=1,d=d.div(new c(1).minus(d.times(d)).sqrt().plus(1)).atan(),c.precision=b,c.rounding=a,d.times(2)))},ac.inverseTangent=ac.atan=function(){var g,q,k,y,a,z,x,w,o,m=this,v=m.constructor,j=v.precision,b=v.rounding;if(m.isFinite()){if(m.isZero()){return new v(m)}if(m.abs().eq(1)&&aa>=j+4){return x=aS(v,j+4,b).times(0.25),x.s=m.s,x}}else{if(!m.s){return new v(NaN)}if(aa>=j+4){return x=aS(v,j+4,b).times(0.5),x.s=m.s,x}}for(v.precision=w=j+10,v.rounding=1,k=Math.min(28,w/ah+2|0),g=k;g;--g){m=m.div(m.times(m).plus(1).sqrt().plus(1))}for(aU=!1,q=Math.ceil(w/ah),y=1,o=m.times(m),x=new v(m),a=m;-1!==g;){if(a=a.times(o),z=x.minus(a.div(y+=2)),a=a.times(o),x=z.plus(a.div(y+=2)),void 0!==x.d[q]){for(g=q;x.d[g]===z.d[g]&&g--;){}}}return k&&(x=x.times(2<<k-1)),aU=!0,aC(x,v.precision=j,v.rounding=b,!0)},ac.isFinite=function(){return !!this.d},ac.isInteger=ac.isInt=function(){return !!this.d&&ae(this.e/ah)>this.d.length-2},ac.isNaN=function(){return !this.s},ac.isNegative=ac.isNeg=function(){return this.s<0},ac.isPositive=ac.isPos=function(){return this.s>0},ac.isZero=function(){return !!this.d&&0===this.d[0]},ac.lessThan=ac.lt=function(a){return this.cmp(a)<0},ac.lessThanOrEqualTo=ac.lte=function(a){return this.cmp(a)<1},ac.logarithm=ac.log=function(f){var k,b,B,A,t,x,m,q,j=this,e=j.constructor,o=e.precision,y=e.rounding,z=5;if(null==f){f=new e(10),k=!0}else{if(f=new e(f),b=f.d,f.s<0||!b||!b[0]||f.eq(1)){return new e(NaN)}k=f.eq(10)}if(b=j.d,j.s<0||!b||!b[0]||j.eq(1)){return new e(b&&!b[0]?-1/0:1!=j.s?NaN:b?0:1/0)}if(k){if(b.length>1){t=!0}else{for(A=b[0];A%10===0;){A/=10}t=1!==A}}if(aU=!1,m=o+z,x=aE(j,m),B=k?aN(e,m+10):aE(f,m),q=bF(x,B,m,1),aw(q.d,A=o,y)){do{if(m+=10,x=aE(j,m),B=k?aN(e,m+10):aE(f,m),q=bF(x,B,m,1),!t){+aO(q.d).slice(A+1,A+15)+1==100000000000000&&(q=aC(q,o+1,0));break}}while(aw(q.d,A+=10,y))}return aU=!0,aC(q,o,y)},ac.minus=ac.sub=function(j){var x,m,C,b,D,B,v,z,o,y,k,c,q=this,A=q.constructor;if(j=new A(j),!q.d||!j.d){return q.s&&j.s?q.d?j.s=-j.s:j=new A(j.d||q.s!==j.s?q:NaN):j=new A(NaN),j}if(q.s!=j.s){return j.s=-j.s,q.plus(j)}if(o=q.d,c=j.d,v=A.precision,z=A.rounding,!o[0]||!c[0]){if(c[0]){j.s=-j.s}else{if(!o[0]){return new A(3===z?-0:0)}j=new A(q)}return aU?aC(j,v,z):j}if(m=ae(j.e/ah),y=ae(q.e/ah),o=o.slice(),D=y-m){for(k=0>D,k?(x=o,D=-D,B=c.length):(x=c,m=y,B=o.length),C=Math.max(Math.ceil(v/ah),B)+2,D>C&&(D=C,x.length=1),x.reverse(),C=D;C--;){x.push(0)}x.reverse()}else{for(C=o.length,B=c.length,k=B>C,k&&(B=C),C=0;B>C;C++){if(o[C]!=c[C]){k=o[C]<c[C];break}}D=0}for(k&&(x=o,o=c,c=x,j.s=-j.s),B=o.length,C=c.length-B;C>0;--C){o[B++]=0}for(C=c.length;C>D;){if(o[--C]<c[C]){for(b=C;b&&0===o[--b];){o[b]=aH-1}--o[b],o[C]+=aH}o[C]-=c[C]}for(;0===o[--B];){o.pop()}for(;0===o[0];o.shift()){--m}return o[0]?(j.d=o,j.e=aQ(o,m),aU?aC(j,v,z):j):new A(3===z?-0:0)},ac.modulo=ac.mod=function(d){var c,b=this,a=b.constructor;return d=new a(d),!b.d||!d.s||d.d&&!d.d[0]?new a(NaN):!d.d||b.d&&!b.d[0]?aC(new a(b),a.precision,a.rounding):(aU=!1,9==a.modulo?(c=bF(b,d.abs(),0,3,1),c.s*=d.s):c=bF(b,d,0,a.modulo,1),c=c.times(d),aU=!0,b.minus(c))},ac.naturalExponential=ac.exp=function(){return ar(this)},ac.naturalLogarithm=ac.ln=function(){return aE(this)},ac.negated=ac.neg=function(){var a=new this.constructor(this);return a.s=-a.s,aC(a)},ac.plus=ac.add=function(g){var q,k,y,b,z,x,o,w,m,v,j=this,c=j.constructor;if(g=new c(g),!j.d||!g.d){return j.s&&g.s?j.d||(g=new c(g.d||j.s===g.s?j:NaN)):g=new c(NaN),g}if(j.s!=g.s){return g.s=-g.s,j.minus(g)}if(m=j.d,v=g.d,o=c.precision,w=c.rounding,!m[0]||!v[0]){return v[0]||(g=new c(j)),aU?aC(g,o,w):g}if(z=ae(j.e/ah),y=ae(g.e/ah),m=m.slice(),b=z-y){for(0>b?(k=m,b=-b,x=v.length):(k=v,y=z,x=m.length),z=Math.ceil(o/ah),x=z>x?z+1:x+1,b>x&&(b=x,k.length=1),k.reverse();b--;){k.push(0)}k.reverse()}for(x=m.length,b=v.length,0>x-b&&(b=x,k=v,v=m,m=k),q=0;b;){q=(m[--b]=m[b]+v[b]+q)/aH|0,m[b]%=aH}for(q&&(m.unshift(q),++y),x=m.length;0==m[--x];){m.pop()}return g.d=m,g.e=aQ(m,y),aU?aC(g,o,w):g},ac.precision=ac.sd=function(c){var b,a=this;if(void 0!==c&&c!==!!c&&1!==c&&0!==c){throw Error(aj+c)}return a.d?(b=aL(a.d),c&&a.e+1>b&&(b=a.e+1)):b=NaN,b},ac.round=function(){var b=this,a=b.constructor;return aC(new a(b),b.e+1,a.rounding)},ac.sine=ac.sin=function(){var d,c,b=this,a=b.constructor;return b.isFinite()?b.isZero()?new a(b):(d=a.precision,c=a.rounding,a.precision=d+Math.max(b.e,b.sd())+ah,a.rounding=1,b=aq(a,bb(a,b)),a.precision=d,a.rounding=c,aC(bB>2?b.neg():b,d,c,!0)):new a(NaN)},ac.squareRoot=ac.sqrt=function(){var e,g,q,b,v,p,m=this,k=m.d,o=m.e,j=m.s,l=m.constructor;if(1!==j||!k||!k[0]){return new l(!j||0>j&&(!k||k[0])?NaN:k?m:1/0)}for(aU=!1,j=Math.sqrt(+m),0==j||j==1/0?(g=aO(k),(g.length+o)%2==0&&(g+="0"),j=Math.sqrt(g),o=ae((o+1)/2)-(0>o||o%2),j==1/0?g="1e"+o:(g=j.toExponential(),g=g.slice(0,g.indexOf("e")+1)+o),b=new l(g)):b=new l(j.toString()),q=(o=l.precision)+3;;){if(p=b,b=p.plus(bF(m,p,q+2,1)).times(0.5),aO(p.d).slice(0,q)===(g=aO(b.d)).slice(0,q)){if(g=g.slice(q-3,q+1),"9999"!=g&&(v||"4999"!=g)){(!+g||!+g.slice(1)&&"5"==g.charAt(0))&&(aC(b,o+1,1),e=!b.times(b).eq(m));break}if(!v&&(aC(p,o+1,0),p.times(p).eq(m))){b=p;break}q+=4,v=1}}return aU=!0,aC(b,o,l.rounding,e)},ac.tangent=ac.tan=function(){var d,c,b=this,a=b.constructor;return b.isFinite()?b.isZero()?new a(b):(d=a.precision,c=a.rounding,a.precision=d+10,a.rounding=1,b=b.sin(),b.s=1,b=bF(b,new a(1).minus(b.times(b)).sqrt(),d+10,0),a.precision=d,a.rounding=c,aC(2==bB||4==bB?b.neg():b,d,c,!0)):new a(NaN)},ac.times=ac.mul=function(j){var w,m,A,b,B,z,v,y,o,x=this,k=x.constructor,c=x.d,q=(j=new k(j)).d;if(j.s*=x.s,!(c&&c[0]&&q&&q[0])){return new k(!j.s||c&&!c[0]&&!q||q&&!q[0]&&!c?NaN:c&&q?0*j.s:j.s/0)}for(m=ae(x.e/ah)+ae(j.e/ah),y=c.length,o=q.length,o>y&&(B=c,c=q,q=B,z=y,y=o,o=z),B=[],z=y+o,A=z;A--;){B.push(0)}for(A=o;--A>=0;){for(w=0,b=y+A;b>A;){v=B[b]+q[A]*c[b-A-1]+w,B[b--]=v%aH|0,w=v/aH|0}B[b]=(B[b]+w)%aH|0}for(;!B[--z];){B.pop()}return w?++m:B.shift(),j.d=B,j.e=aQ(B,m),aU?aC(j,k.precision,k.rounding):j},ac.toBinary=function(b,a){return ap(this,2,b,a)},ac.toDecimalPlaces=ac.toDP=function(d,c){var a=this,b=a.constructor;return a=new b(a),void 0===d?a:(aK(d,0,bs),void 0===c?c=b.rounding:aK(c,0,8),aC(a,d+a.e+1,c))},ac.toExponential=function(f,d){var a,c=this,b=c.constructor;return void 0===f?a=av(c,!0):(aK(f,0,bs),void 0===d?d=b.rounding:aK(d,0,8),c=aC(new b(c),f+1,d),a=av(c,!0,f+1)),c.isNeg()&&!c.isZero()?"-"+a:a},ac.toFixed=function(h,f){var a,d,b=this,g=b.constructor;return void 0===h?a=av(b):(aK(h,0,bs),void 0===f?f=g.rounding:aK(f,0,8),d=aC(new g(b),h+b.e+1,f),a=av(d,!1,h+d.e+1)),b.isNeg()&&!b.isZero()?"-"+a:a},ac.toFraction=function(j){var v,E,b,F,h,D,A,y,B,z,q,e,x=this,C=x.d,k=x.constructor;if(!C){return new k(x)}if(B=E=new k(1),b=y=new k(0),v=new k(b),h=v.e=aL(C)-x.e-1,D=h%ah,v.d[0]=bc(10,0>D?ah+D:D),null==j){j=h>0?v:B}else{if(A=new k(j),!A.isInt()||A.lt(B)){throw Error(aj+A)}j=A.gt(v)?h>0?v:B:A}for(aU=!1,A=new k(aO(C)),z=k.precision,k.precision=h=C.length*ah*2;q=bF(A,v,0,1,1),F=E.plus(q.times(b)),1!=F.cmp(j);){E=b,b=F,F=B,B=y.plus(q.times(F)),y=F,F=v,v=A.minus(q.times(F)),A=F}return F=bF(j.minus(E),b,0,1,1),y=y.plus(F.times(B)),E=E.plus(F.times(b)),y.s=B.s=x.s,e=bF(B,b,h,1).minus(x).abs().cmp(bF(y,E,h,1).minus(x).abs())<1?[B,b]:[y,E],k.precision=z,aU=!0,e},ac.toHexadecimal=ac.toHex=function(b,a){return ap(this,16,b,a)},ac.toNearest=function(d,c){var a=this,b=a.constructor;if(a=new b(a),null==d){if(!a.d){return a}d=new b(1),c=b.rounding}else{if(d=new b(d),void 0!==c&&aK(c,0,8),!a.d){return d.s?a:d}if(!d.d){return d.s&&(d.s=a.s),d}}return d.d[0]?(aU=!1,4>c&&(c=[4,5,7,8][c]),a=bF(a,d,0,c,1).times(d),aU=!0,aC(a)):(d.s=a.s,a=d),a},ac.toNumber=function(){return +this},ac.toOctal=function(b,a){return ap(this,8,b,a)},ac.toPower=ac.pow=function(e){var g,b,q,p,m,k,o=this,j=o.constructor,l=+(e=new j(e));if(!(o.d&&e.d&&o.d[0]&&e.d[0])){return new j(bc(+o,l))}if(o=new j(o),o.eq(1)){return o}if(q=j.precision,m=j.rounding,e.eq(1)){return aC(o,q,m)}if(g=ae(e.e/ah),g>=e.d.length-1&&(b=0>l?-l:l)<=af){return p=aF(j,o,b,q),e.s<0?new j(1).div(p):aC(p,q,m)}if(k=o.s,0>k){if(g<e.d.length-1){return new j(NaN)}if(0==(1&e.d[g])&&(k=1),0==o.e&&1==o.d[0]&&1==o.d.length){return o.s=k,o}}return b=bc(+o,l),g=0!=b&&isFinite(b)?new j(b+"").e:ae(l*(Math.log("0."+aO(o.d))/Math.LN10+o.e+1)),g>j.maxE+1||g<j.minE-1?new j(g>0?k/0:0):(aU=!1,j.rounding=o.s=1,b=Math.min(12,(g+"").length),p=ar(e.times(aE(o,q+b)),q),p.d&&(p=aC(p,q+5,1),aw(p.d,q,m)&&(g=q+10,p=aC(ar(e.times(aE(o,g+b)),g),g+5,1),+aO(p.d).slice(q+1,q+15)+1==100000000000000&&(p=aC(p,q+1,0)))),p.s=k,aU=!0,j.rounding=m,aC(p,q,m))},ac.toPrecision=function(f,d){var a,c=this,b=c.constructor;return void 0===f?a=av(c,c.e<=b.toExpNeg||c.e>=b.toExpPos):(aK(f,1,bs),void 0===d?d=b.rounding:aK(d,0,8),c=aC(new b(c),f,d),a=av(c,f<=c.e||c.e<=b.toExpNeg,f)),c.isNeg()&&!c.isZero()?"-"+a:a},ac.toSignificantDigits=ac.toSD=function(d,c){var a=this,b=a.constructor;return void 0===d?(d=b.precision,c=b.rounding):(aK(d,1,bs),void 0===c?c=b.rounding:aK(c,0,8)),aC(new b(a),d,c)},ac.toString=function(){var c=this,b=c.constructor,a=av(c,c.e<=b.toExpNeg||c.e>=b.toExpPos);return c.isNeg()&&!c.isZero()?"-"+a:a},ac.truncated=ac.trunc=function(){return aC(new this.constructor(this),this.e+1,1)},ac.valueOf=ac.toJSON=function(){var c=this,b=c.constructor,a=av(c,c.e<=b.toExpNeg||c.e>=b.toExpPos);return c.isNeg()?"-"+a:a};var bF=function(){function c(k,j,f){var d,h=0,g=k.length;for(k=k.slice();g--;){d=k[g]*j+h,k[g]=d%f|0,h=d/f|0}return h&&k.unshift(h),k}function b(k,j,f,d){var h,g;if(f!=d){g=f>d?1:-1}else{for(h=g=0;f>h;h++){if(k[h]!=j[h]){g=k[h]>j[h]?1:-1;break}}}return g}function a(j,h,f,d){for(var g=0;f--;){j[f]-=g,g=j[f]<h[f]?1:0,j[f]=g*d+j[f]-h[f]}for(;!j[0]&&j.length>1;){j.shift()}}return function(Q,U,T,J,bJ,bH){var bL,bn,bI,an,X,bG,G,Y,H,n,bK,C,K,o,B,V,k,I,W,S,e=Q.constructor,j=Q.s==U.s?1:-1,i=Q.d,z=U.d;if(!(i&&i[0]&&z&&z[0])){return new e(Q.s&&U.s&&(i?!z||i[0]!=z[0]:z)?i&&0==i[0]||!z?0*j:j/0:NaN)}for(bH?(X=1,bn=Q.e-U.e):(bH=aH,X=ah,bn=ae(Q.e/X)-ae(U.e/X)),W=z.length,k=i.length,H=new e(j),n=H.d=[],bI=0;z[bI]==(i[bI]||0);bI++){}if(z[bI]>(i[bI]||0)&&bn--,null==T?(o=T=e.precision,J=e.rounding):o=bJ?T+(Q.e-U.e)+1:T,0>o){n.push(1),bG=!0}else{if(o=o/X+2|0,bI=0,1==W){for(an=0,z=z[0],o++;(k>bI||an)&&o--;bI++){B=an*bH+(i[bI]||0),n[bI]=B/z|0,an=B%z|0}bG=an||k>bI}else{for(an=bH/(z[0]+1)|0,an>1&&(z=c(z,an,bH),i=c(i,an,bH),W=z.length,k=i.length),V=W,bK=i.slice(0,W),C=bK.length;W>C;){bK[C++]=0}S=z.slice(),S.unshift(0),I=z[0],z[1]>=bH/2&&++I;do{an=0,bL=b(z,bK,W,C),0>bL?(K=bK[0],W!=C&&(K=K*bH+(bK[1]||0)),an=K/I|0,an>1?(an>=bH&&(an=bH-1),G=c(z,an,bH),Y=G.length,C=bK.length,bL=b(G,bK,Y,C),1==bL&&(an--,a(G,Y>W?S:z,Y,bH))):(0==an&&(bL=an=1),G=z.slice()),Y=G.length,C>Y&&G.unshift(0),a(bK,G,C,bH),-1==bL&&(C=bK.length,bL=b(z,bK,W,C),1>bL&&(an++,a(bK,C>W?S:z,C,bH))),C=bK.length):0===bL&&(an++,bK=[0]),n[bI++]=an,bL&&bK[0]?bK[C++]=i[V]||0:(bK=[i[V]],C=1)}while((V++<k||void 0!==bK[0])&&o--);bG=void 0!==bK[0]}n[0]||n.shift()}if(1==X){H.e=bn,aY=bG}else{for(bI=1,an=n[0];an>=10;an/=10){bI++}H.e=bI+bn*X-1,aC(H,bJ?T+H.e+1:T,J,bG)}return H}}();bv=bg(bv),bv["default"]=bv.Decimal=bv,bt=new bv(bt),al=new bv(al),"function"==typeof define&&define.amd?define(function(){return bv}):"undefined"!=typeof module&&module.exports?module.exports=bv:(aD||(aD="undefined"!=typeof self&&self&&self.self==self?self:Function("return this")()),ai=aD.Decimal,bv.noConflict=function(){return aD.Decimal=ai,bv},aD.Decimal=bv)}(this);
|