New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@waves/bignumber

Package Overview
Dependencies
Maintainers
16
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@waves/bignumber - npm Package Compare versions

Comparing version 0.0.1-a3 to 0.0.1-a4

15

dist/BigNumber.js

@@ -185,2 +185,17 @@ "use strict";

exports.BigNumber = BigNumber;
(function (BigNumber) {
var ROUND_MODE;
(function (ROUND_MODE) {
ROUND_MODE[ROUND_MODE["ROUND_UP"] = 0] = "ROUND_UP";
ROUND_MODE[ROUND_MODE["ROUND_DOWN"] = 1] = "ROUND_DOWN";
ROUND_MODE[ROUND_MODE["ROUND_CEIL"] = 2] = "ROUND_CEIL";
ROUND_MODE[ROUND_MODE["ROUND_FLOOR"] = 3] = "ROUND_FLOOR";
ROUND_MODE[ROUND_MODE["ROUND_HALF_UP"] = 4] = "ROUND_HALF_UP";
ROUND_MODE[ROUND_MODE["ROUND_HALF_DOWN"] = 5] = "ROUND_HALF_DOWN";
ROUND_MODE[ROUND_MODE["ROUND_HALF_EVEN"] = 6] = "ROUND_HALF_EVEN";
ROUND_MODE[ROUND_MODE["ROUND_HALF_CEIL"] = 7] = "ROUND_HALF_CEIL";
ROUND_MODE[ROUND_MODE["ROUND_HALF_FLOOR"] = 8] = "ROUND_HALF_FLOOR";
})(ROUND_MODE = BigNumber.ROUND_MODE || (BigNumber.ROUND_MODE = {}));
})(BigNumber = exports.BigNumber || (exports.BigNumber = {}));
exports.BigNumber = BigNumber;
//# sourceMappingURL=BigNumber.js.map

2

dist/bignumber.umd.min.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).BigNumber={})}(this,function(e){"use strict";var t=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,r=Math.ceil,n=Math.floor,i="[BigNumber Error] ",o=i+"Number primitive has more than 15 significant digits: ",u=1e14,s=14,f=9007199254740991,c=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],l=1e7,a=1e9;function h(e){var t=0|e;return e>0||e===t?t:t-1}function p(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(t=e[n++]+"",r=s-t.length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function g(e,t){var r,n,i=e.c,o=t.c,u=e.s,s=t.s,f=e.e,c=t.e;if(!u||!s)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:u;if(u!=s)return u;if(r=u<0,n=f==c,!i||!o)return n?0:!i^r?1:-1;if(!n)return f>c^r?1:-1;for(s=(f=i.length)<(c=o.length)?f:c,u=0;u<s;u++)if(i[u]!=o[u])return i[u]>o[u]^r?1:-1;return f==c?0:f>c^r?1:-1}function m(e,t,r,o){if(e<t||e>r||e!==n(e))throw Error(i+(o||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function w(e){var t=e.c.length-1;return h(e.e/s)==t&&e.c[t]%2!=0}function d(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function b(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(++t>(n=e.length)){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}var y=function e(y){var N,v,O,A,E,B,S,_,x,L=J.prototype={constructor:J,toString:null,valueOf:null},R=new J(1),T=20,U=4,D=-7,F=21,M=-1e7,I=1e7,P=!1,C=1,G=0,j={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},q="0123456789abcdefghijklmnopqrstuvwxyz";function J(e,r){var i,u,c,l,a,h,p,g,w=this;if(!(w instanceof J))return new J(e,r);if(null==r){if(e&&!0===e._isBigNumber)return w.s=e.s,void(!e.c||e.e>I?w.c=w.e=null:e.e<M?w.c=[w.e=0]:(w.e=e.e,w.c=e.c.slice()));if((h="number"==typeof e)&&0*e==0){if(w.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,a=e;a>=10;a/=10,l++);return void(l>I?w.c=w.e=null:(w.e=l,w.c=[e]))}g=String(e)}else{if(!t.test(g=String(e)))return O(w,g,h);w.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(l=g.indexOf("."))>-1&&(g=g.replace(".","")),(a=g.search(/e/i))>0?(l<0&&(l=a),l+=+g.slice(a+1),g=g.substring(0,a)):l<0&&(l=g.length)}else{if(m(r,2,q.length,"Base"),10==r)return $(w=new J(e),T+w.e+1,U);if(g=String(e),h="number"==typeof e){if(0*e!=0)return O(w,g,h,r);if(w.s=1/e<0?(g=g.slice(1),-1):1,J.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(o+e)}else w.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(i=q.slice(0,r),l=a=0,p=g.length;a<p;a++)if(i.indexOf(u=g.charAt(a))<0){if("."==u){if(a>l){l=p;continue}}else if(!c&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){c=!0,a=-1,l=0;continue}return O(w,String(e),h,r)}h=!1,(l=(g=v(g,r,10,w.s)).indexOf("."))>-1?g=g.replace(".",""):l=g.length}for(a=0;48===g.charCodeAt(a);a++);for(p=g.length;48===g.charCodeAt(--p););if(g=g.slice(a,++p)){if(p-=a,h&&J.DEBUG&&p>15&&(e>f||e!==n(e)))throw Error(o+w.s*e);if((l=l-a-1)>I)w.c=w.e=null;else if(l<M)w.c=[w.e=0];else{if(w.e=l,w.c=[],a=(l+1)%s,l<0&&(a+=s),a<p){for(a&&w.c.push(+g.slice(0,a)),p-=s;a<p;)w.c.push(+g.slice(a,a+=s));a=s-(g=g.slice(a)).length}else a-=p;for(;a--;g+="0");w.c.push(+g)}}else w.c=[w.e=0]}function k(e,t,r,n){var i,o,u,s,f;if(null==r?r=U:m(r,0,8),!e.c)return e.toString();if(i=e.c[0],u=e.e,null==t)f=p(e.c),f=1==n||2==n&&(u<=D||u>=F)?d(f,u):b(f,u,"0");else if(o=(e=$(new J(e),t,r)).e,s=(f=p(e.c)).length,1==n||2==n&&(t<=o||o<=D)){for(;s<t;f+="0",s++);f=d(f,o)}else if(t-=u,f=b(f,o,"0"),o+1>s){if(--t>0)for(f+=".";t--;f+="0");}else if((t+=o-s)>0)for(o+1==s&&(f+=".");t--;f+="0");return e.s<0&&i?"-"+f:f}function z(e,t){for(var r,n=1,i=new J(e[0]);n<e.length;n++){if(!(r=new J(e[n])).s){i=r;break}t.call(i,r)&&(i=r)}return i}function V(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+r*s-1)>I?e.c=e.e=null:r<M?e.c=[e.e=0]:(e.e=r,e.c=t),e}function $(e,t,i,o){var f,l,a,h,p,g,m,w=e.c,d=c;if(w){e:{for(f=1,h=w[0];h>=10;h/=10,f++);if((l=t-f)<0)l+=s,a=t,m=(p=w[g=0])/d[f-a-1]%10|0;else if((g=r((l+1)/s))>=w.length){if(!o)break e;for(;w.length<=g;w.push(0));p=m=0,f=1,a=(l%=s)-s+1}else{for(p=h=w[g],f=1;h>=10;h/=10,f++);m=(a=(l%=s)-s+f)<0?0:p/d[f-a-1]%10|0}if(o=o||t<0||null!=w[g+1]||(a<0?p:p%d[f-a-1]),o=i<4?(m||o)&&(0==i||i==(e.s<0?3:2)):m>5||5==m&&(4==i||o||6==i&&(l>0?a>0?p/d[f-a]:0:w[g-1])%10&1||i==(e.s<0?8:7)),t<1||!w[0])return w.length=0,o?(t-=e.e+1,w[0]=d[(s-t%s)%s],e.e=-t||0):w[0]=e.e=0,e;if(0==l?(w.length=g,h=1,g--):(w.length=g+1,h=d[s-l],w[g]=a>0?n(p/d[f-a]%d[a])*h:0),o)for(;;){if(0==g){for(l=1,a=w[0];a>=10;a/=10,l++);for(a=w[0]+=h,h=1;a>=10;a/=10,h++);l!=h&&(e.e++,w[0]==u&&(w[0]=1));break}if(w[g]+=h,w[g]!=u)break;w[g--]=0,h=1}for(l=w.length;0===w[--l];w.pop());}e.e>I?e.c=e.e=null:e.e<M&&(e.c=[e.e=0])}return e}function H(e){var t,r=e.e;return null===r?e.toString():(t=p(e.c),t=r<=D||r>=F?d(t,r):b(t,r,"0"),e.s<0?"-"+t:t)}return J.clone=e,J.ROUND_UP=0,J.ROUND_DOWN=1,J.ROUND_CEIL=2,J.ROUND_FLOOR=3,J.ROUND_HALF_UP=4,J.ROUND_HALF_DOWN=5,J.ROUND_HALF_EVEN=6,J.ROUND_HALF_CEIL=7,J.ROUND_HALF_FLOOR=8,J.EUCLID=9,J.config=J.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(i+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(m(r=e[t],0,a,t),T=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(r=e[t],0,8,t),U=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(m(r[0],-a,0,t),m(r[1],0,a,t),D=r[0],F=r[1]):(m(r,-a,a,t),D=-(F=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)m(r[0],-a,-1,t),m(r[1],1,a,t),M=r[0],I=r[1];else{if(m(r,-a,a,t),!r)throw Error(i+t+" cannot be zero: "+r);M=-(I=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(i+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw P=!r,Error(i+"crypto unavailable");P=r}else P=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(m(r=e[t],0,9,t),C=r),e.hasOwnProperty(t="POW_PRECISION")&&(m(r=e[t],0,a,t),G=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(i+t+" not an object: "+r);j=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.$|[+-.\s]|(.).*\1/.test(r))throw Error(i+t+" invalid: "+r);q=r}}return{DECIMAL_PLACES:T,ROUNDING_MODE:U,EXPONENTIAL_AT:[D,F],RANGE:[M,I],CRYPTO:P,MODULO_MODE:C,POW_PRECISION:G,FORMAT:j,ALPHABET:q}},J.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!J.DEBUG)return!0;var t,r,o=e.c,f=e.e,c=e.s;e:if("[object Array]"=={}.toString.call(o)){if((1===c||-1===c)&&f>=-a&&f<=a&&f===n(f)){if(0===o[0]){if(0===f&&1===o.length)return!0;break e}if((t=(f+1)%s)<1&&(t+=s),String(o[0]).length==t){for(t=0;t<o.length;t++)if((r=o[t])<0||r>=u||r!==n(r))break e;if(0!==r)return!0}}}else if(null===o&&null===f&&(null===c||1===c||-1===c))return!0;throw Error(i+"Invalid BigNumber: "+e)},J.maximum=J.max=function(){return z(arguments,L.lt)},J.minimum=J.min=function(){return z(arguments,L.gt)},J.random=(A=9007199254740992*Math.random()&2097151?function(){return n(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,o,u,f,l,h=0,p=[],g=new J(R);if(null==e?e=T:m(e,0,a),f=r(e/s),P)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(f*=2));h<f;)(l=131072*t[h]+(t[h+1]>>>11))>=9e15?(o=crypto.getRandomValues(new Uint32Array(2)),t[h]=o[0],t[h+1]=o[1]):(p.push(l%1e14),h+=2);h=f/2}else{if(!crypto.randomBytes)throw P=!1,Error(i+"crypto unavailable");for(t=crypto.randomBytes(f*=7);h<f;)(l=281474976710656*(31&t[h])+1099511627776*t[h+1]+4294967296*t[h+2]+16777216*t[h+3]+(t[h+4]<<16)+(t[h+5]<<8)+t[h+6])>=9e15?crypto.randomBytes(7).copy(t,h):(p.push(l%1e14),h+=7);h=f/7}if(!P)for(;h<f;)(l=A())<9e15&&(p[h++]=l%1e14);for(f=p[--h],e%=s,f&&e&&(l=c[s-e],p[h]=n(f/l)*l);0===p[h];p.pop(),h--);if(h<0)p=[u=0];else{for(u=-1;0===p[0];p.splice(0,1),u-=s);for(h=1,l=p[0];l>=10;l/=10,h++);h<s&&(u-=s-h)}return g.e=u,g.c=p,g}),J.sum=function(){for(var e=1,t=arguments,r=new J(t[0]);e<t.length;)r=r.plus(t[e++]);return r},v=function(){function e(e,t,r,n){for(var i,o,u=[0],s=0,f=e.length;s<f;){for(o=u.length;o--;u[o]*=t);for(u[0]+=n.indexOf(e.charAt(s++)),i=0;i<u.length;i++)u[i]>r-1&&(null==u[i+1]&&(u[i+1]=0),u[i+1]+=u[i]/r|0,u[i]%=r)}return u.reverse()}return function(t,r,n,i,o){var u,s,f,c,l,a,h,g,m=t.indexOf("."),w=T,d=U;for(m>=0&&(c=G,G=0,t=t.replace(".",""),a=(g=new J(r)).pow(t.length-m),G=c,g.c=e(b(p(a.c),a.e,"0"),10,n,"0123456789"),g.e=g.c.length),f=c=(h=e(t,r,n,o?(u=q,"0123456789"):(u="0123456789",q))).length;0==h[--c];h.pop());if(!h[0])return u.charAt(0);if(m<0?--f:(a.c=h,a.e=f,a.s=i,h=(a=N(a,g,w,d,n)).c,l=a.r,f=a.e),m=h[s=f+w+1],c=n/2,l=l||s<0||null!=h[s+1],l=d<4?(null!=m||l)&&(0==d||d==(a.s<0?3:2)):m>c||m==c&&(4==d||l||6==d&&1&h[s-1]||d==(a.s<0?8:7)),s<1||!h[0])t=l?b(u.charAt(1),-w,u.charAt(0)):u.charAt(0);else{if(h.length=s,l)for(--n;++h[--s]>n;)h[s]=0,s||(++f,h=[1].concat(h));for(c=h.length;!h[--c];);for(m=0,t="";m<=c;t+=u.charAt(h[m++]));t=b(t,f,u.charAt(0))}return t}}(),N=function(){function e(e,t,r){var n,i,o,u,s=0,f=e.length,c=t%l,a=t/l|0;for(e=e.slice();f--;)s=((i=c*(o=e[f]%l)+(n=a*o+(u=e[f]/l|0)*c)%l*l+s)/r|0)+(n/l|0)+a*u,e[f]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(i,o,f,c,l){var a,p,g,m,w,d,b,y,N,v,O,A,E,B,S,_,x,L=i.s==o.s?1:-1,R=i.c,T=o.c;if(!(R&&R[0]&&T&&T[0]))return new J(i.s&&o.s&&(R?!T||R[0]!=T[0]:T)?R&&0==R[0]||!T?0*L:L/0:NaN);for(N=(y=new J(L)).c=[],L=f+(p=i.e-o.e)+1,l||(l=u,p=h(i.e/s)-h(o.e/s),L=L/s|0),g=0;T[g]==(R[g]||0);g++);if(T[g]>(R[g]||0)&&p--,L<0)N.push(1),m=!0;else{for(B=R.length,_=T.length,g=0,L+=2,(w=n(l/(T[0]+1)))>1&&(T=e(T,w,l),R=e(R,w,l),_=T.length,B=R.length),E=_,O=(v=R.slice(0,_)).length;O<_;v[O++]=0);x=T.slice(),x=[0].concat(x),S=T[0],T[1]>=l/2&&S++;do{if(w=0,(a=t(T,v,_,O))<0){if(A=v[0],_!=O&&(A=A*l+(v[1]||0)),(w=n(A/S))>1)for(w>=l&&(w=l-1),b=(d=e(T,w,l)).length,O=v.length;1==t(d,v,b,O);)w--,r(d,_<b?x:T,b,l),b=d.length,a=1;else 0==w&&(a=w=1),b=(d=T.slice()).length;if(b<O&&(d=[0].concat(d)),r(v,d,O,l),O=v.length,-1==a)for(;t(T,v,_,O)<1;)w++,r(v,_<O?x:T,O,l),O=v.length}else 0===a&&(w++,v=[0]);N[g++]=w,v[0]?v[O++]=R[E]||0:(v=[R[E]],O=1)}while((E++<B||null!=v[0])&&L--);m=null!=v[0],N[0]||N.splice(0,1)}if(l==u){for(g=1,L=N[0];L>=10;L/=10,g++);$(y,f+(y.e=g+p*s-1)+1,c,m)}else y.e=p,y.r=+m;return y}}(),E=/^(-?)0([xbo])(?=\w[\w.]*$)/i,B=/^([^.]+)\.$/,S=/^\.([^.]+)$/,_=/^-?(Infinity|NaN)$/,x=/^\s*\+(?=[\w.])|^\s+|\s+$/g,O=function(e,t,r,n){var o,u=r?t:t.replace(x,"");if(_.test(u))e.s=isNaN(u)?null:u<0?-1:1;else{if(!r&&(u=u.replace(E,function(e,t,r){return o="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=o?e:t}),n&&(o=n,u=u.replace(B,"$1").replace(S,"0.$1")),t!=u))return new J(u,o);if(J.DEBUG)throw Error(i+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},L.absoluteValue=L.abs=function(){var e=new J(this);return e.s<0&&(e.s=1),e},L.comparedTo=function(e,t){return g(this,new J(e,t))},L.decimalPlaces=L.dp=function(e,t){var r,n,i,o=this;if(null!=e)return m(e,0,a),null==t?t=U:m(t,0,8),$(new J(o),e+o.e+1,t);if(!(r=o.c))return null;if(n=((i=r.length-1)-h(this.e/s))*s,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},L.dividedBy=L.div=function(e,t){return N(this,new J(e,t),T,U)},L.dividedToIntegerBy=L.idiv=function(e,t){return N(this,new J(e,t),0,1)},L.exponentiatedBy=L.pow=function(e,t){var o,u,f,c,l,a,h,p,g=this;if((e=new J(e)).c&&!e.isInteger())throw Error(i+"Exponent not an integer: "+H(e));if(null!=t&&(t=new J(t)),l=e.e>14,!g.c||!g.c[0]||1==g.c[0]&&!g.e&&1==g.c.length||!e.c||!e.c[0])return p=new J(Math.pow(+H(g),l?2-w(e):+H(e))),t?p.mod(t):p;if(a=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new J(NaN);(u=!a&&g.isInteger()&&t.isInteger())&&(g=g.mod(t))}else{if(e.e>9&&(g.e>0||g.e<-1||(0==g.e?g.c[0]>1||l&&g.c[1]>=24e7:g.c[0]<8e13||l&&g.c[0]<=9999975e7)))return c=g.s<0&&w(e)?-0:0,g.e>-1&&(c=1/c),new J(a?1/c:c);G&&(c=r(G/s+2))}for(l?(o=new J(.5),a&&(e.s=1),h=w(e)):h=(f=Math.abs(+H(e)))%2,p=new J(R);;){if(h){if(!(p=p.times(g)).c)break;c?p.c.length>c&&(p.c.length=c):u&&(p=p.mod(t))}if(f){if(0===(f=n(f/2)))break;h=f%2}else if($(e=e.times(o),e.e+1,1),e.e>14)h=w(e);else{if(0==(f=+H(e)))break;h=f%2}g=g.times(g),c?g.c&&g.c.length>c&&(g.c.length=c):u&&(g=g.mod(t))}return u?p:(a&&(p=R.div(p)),t?p.mod(t):c?$(p,G,U,void 0):p)},L.integerValue=function(e){var t=new J(this);return null==e?e=U:m(e,0,8),$(t,t.e+1,e)},L.isEqualTo=L.eq=function(e,t){return 0===g(this,new J(e,t))},L.isFinite=function(){return!!this.c},L.isGreaterThan=L.gt=function(e,t){return g(this,new J(e,t))>0},L.isGreaterThanOrEqualTo=L.gte=function(e,t){return 1===(t=g(this,new J(e,t)))||0===t},L.isInteger=function(){return!!this.c&&h(this.e/s)>this.c.length-2},L.isLessThan=L.lt=function(e,t){return g(this,new J(e,t))<0},L.isLessThanOrEqualTo=L.lte=function(e,t){return-1===(t=g(this,new J(e,t)))||0===t},L.isNaN=function(){return!this.s},L.isNegative=function(){return this.s<0},L.isPositive=function(){return this.s>0},L.isZero=function(){return!!this.c&&0==this.c[0]},L.minus=function(e,t){var r,n,i,o,f=this,c=f.s;if(t=(e=new J(e,t)).s,!c||!t)return new J(NaN);if(c!=t)return e.s=-t,f.plus(e);var l=f.e/s,a=e.e/s,p=f.c,g=e.c;if(!l||!a){if(!p||!g)return p?(e.s=-t,e):new J(g?f:NaN);if(!p[0]||!g[0])return g[0]?(e.s=-t,e):new J(p[0]?f:3==U?-0:0)}if(l=h(l),a=h(a),p=p.slice(),c=l-a){for((o=c<0)?(c=-c,i=p):(a=l,i=g),i.reverse(),t=c;t--;i.push(0));i.reverse()}else for(n=(o=(c=p.length)<(t=g.length))?c:t,c=t=0;t<n;t++)if(p[t]!=g[t]){o=p[t]<g[t];break}if(o&&(i=p,p=g,g=i,e.s=-e.s),(t=(n=g.length)-(r=p.length))>0)for(;t--;p[r++]=0);for(t=u-1;n>c;){if(p[--n]<g[n]){for(r=n;r&&!p[--r];p[r]=t);--p[r],p[n]+=u}p[n]-=g[n]}for(;0==p[0];p.splice(0,1),--a);return p[0]?V(e,p,a):(e.s=3==U?-1:1,e.c=[e.e=0],e)},L.modulo=L.mod=function(e,t){var r,n,i=this;return e=new J(e,t),!i.c||!e.s||e.c&&!e.c[0]?new J(NaN):!e.c||i.c&&!i.c[0]?new J(i):(9==C?(n=e.s,e.s=1,r=N(i,e,0,3),e.s=n,r.s*=n):r=N(i,e,0,C),(e=i.minus(r.times(e))).c[0]||1!=C||(e.s=i.s),e)},L.multipliedBy=L.times=function(e,t){var r,n,i,o,f,c,a,p,g,m,w,d,b,y,N,v=this,O=v.c,A=(e=new J(e,t)).c;if(!(O&&A&&O[0]&&A[0]))return!v.s||!e.s||O&&!O[0]&&!A||A&&!A[0]&&!O?e.c=e.e=e.s=null:(e.s*=v.s,O&&A?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=h(v.e/s)+h(e.e/s),e.s*=v.s,(a=O.length)<(m=A.length)&&(b=O,O=A,A=b,i=a,a=m,m=i),i=a+m,b=[];i--;b.push(0));for(y=u,N=l,i=m;--i>=0;){for(r=0,w=A[i]%N,d=A[i]/N|0,o=i+(f=a);o>i;)r=((p=w*(p=O[--f]%N)+(c=d*p+(g=O[f]/N|0)*w)%N*N+b[o]+r)/y|0)+(c/N|0)+d*g,b[o--]=p%y;b[o]=r}return r?++n:b.splice(0,1),V(e,b,n)},L.negated=function(){var e=new J(this);return e.s=-e.s||null,e},L.plus=function(e,t){var r,n=this,i=n.s;if(t=(e=new J(e,t)).s,!i||!t)return new J(NaN);if(i!=t)return e.s=-t,n.minus(e);var o=n.e/s,f=e.e/s,c=n.c,l=e.c;if(!o||!f){if(!c||!l)return new J(i/0);if(!c[0]||!l[0])return l[0]?e:new J(c[0]?n:0*i)}if(o=h(o),f=h(f),c=c.slice(),i=o-f){for(i>0?(f=o,r=l):(i=-i,r=c),r.reverse();i--;r.push(0));r.reverse()}for((i=c.length)-(t=l.length)<0&&(r=l,l=c,c=r,t=i),i=0;t;)i=(c[--t]=c[t]+l[t]+i)/u|0,c[t]=u===c[t]?0:c[t]%u;return i&&(c=[i].concat(c),++f),V(e,c,f)},L.precision=L.sd=function(e,t){var r,n,i,o=this;if(null!=e&&e!==!!e)return m(e,1,a),null==t?t=U:m(t,0,8),$(new J(o),e,t);if(!(r=o.c))return null;if(n=(i=r.length-1)*s+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&o.e+1>n&&(n=o.e+1),n},L.shiftedBy=function(e){return m(e,-f,f),this.times("1e"+e)},L.squareRoot=L.sqrt=function(){var e,t,r,n,i,o=this,u=o.c,s=o.s,f=o.e,c=T+4,l=new J("0.5");if(1!==s||!u||!u[0])return new J(!s||s<0&&(!u||u[0])?NaN:u?o:1/0);if(0==(s=Math.sqrt(+H(o)))||s==1/0?(((t=p(u)).length+f)%2==0&&(t+="0"),s=Math.sqrt(+t),f=h((f+1)/2)-(f<0||f%2),r=new J(t=s==1/0?"1e"+f:(t=s.toExponential()).slice(0,t.indexOf("e")+1)+f)):r=new J(s+""),r.c[0])for((s=(f=r.e)+c)<3&&(s=0);;)if(i=r,r=l.times(i.plus(N(o,i,c,1))),p(i.c).slice(0,s)===(t=p(r.c)).slice(0,s)){if(r.e<f&&--s,"9999"!=(t=t.slice(s-3,s+1))&&(n||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||($(r,r.e+T+2,1),e=!r.times(r).eq(o));break}if(!n&&($(i,i.e+T+2,0),i.times(i).eq(o))){r=i;break}c+=4,s+=4,n=1}return $(r,r.e+T+1,U,e)},L.toExponential=function(e,t){return null!=e&&(m(e,0,a),e++),k(this,e,t,1)},L.toFixed=function(e,t){return null!=e&&(m(e,0,a),e=e+this.e+1),k(this,e,t)},L.toFormat=function(e,t,r){var n,o=this;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=j;else if("object"!=typeof r)throw Error(i+"Argument not an object: "+r);if(n=o.toFixed(e,t),o.c){var u,s=n.split("."),f=+r.groupSize,c=+r.secondaryGroupSize,l=r.groupSeparator||"",a=s[0],h=s[1],p=o.s<0,g=p?a.slice(1):a,m=g.length;if(c&&(u=f,f=c,c=u,m-=u),f>0&&m>0){for(u=m%f||f,a=g.substr(0,u);u<m;u+=f)a+=l+g.substr(u,f);c>0&&(a+=l+g.slice(u)),p&&(a="-"+a)}n=h?a+(r.decimalSeparator||"")+((c=+r.fractionGroupSize)?h.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):h):a}return(r.prefix||"")+n+(r.suffix||"")},L.toFraction=function(e){var t,r,n,o,u,f,l,a,h,g,m,w,d=this,b=d.c;if(null!=e&&(!(l=new J(e)).isInteger()&&(l.c||1!==l.s)||l.lt(R)))throw Error(i+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+H(l));if(!b)return new J(d);for(t=new J(R),h=r=new J(R),n=a=new J(R),w=p(b),u=t.e=w.length-d.e-1,t.c[0]=c[(f=u%s)<0?s+f:f],e=!e||l.comparedTo(t)>0?u>0?t:h:l,f=I,I=1/0,l=new J(w),a.c[0]=0;g=N(l,t,0,1),1!=(o=r.plus(g.times(n))).comparedTo(e);)r=n,n=o,h=a.plus(g.times(o=h)),a=o,t=l.minus(g.times(o=t)),l=o;return o=N(e.minus(r),n,0,1),a=a.plus(o.times(h)),r=r.plus(o.times(n)),a.s=h.s=d.s,m=N(h,n,u*=2,U).minus(d).abs().comparedTo(N(a,r,u,U).minus(d).abs())<1?[h,n]:[a,r],I=f,m},L.toNumber=function(){return+H(this)},L.toPrecision=function(e,t){return null!=e&&m(e,1,a),k(this,e,t,2)},L.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=i<=D||i>=F?d(p(r.c),i):b(p(r.c),i,"0"):10===e?t=b(p((r=$(new J(r),T+i+1,U)).c),r.e,"0"):(m(e,2,q.length,"Base"),t=v(b(p(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},L.valueOf=L.toJSON=function(){return H(this)},L._isBigNumber=!0,L[Symbol.toStringTag]="BigNumber",L[Symbol.for("nodejs.util.inspect.custom")]=L.valueOf,null!=y&&J.set(y),J}(),N=function(){return(N=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},v=function(){function e(){this.format=e.DEFAULT_FORMAT,y.config({FORMAT:this.format})}return e.prototype.set=function(e){"FORMAT"in e&&(this.format=N({},this.format,e.FORMAT),e.FORMAT=this.format),y.config(e)},e.DEFAULT_FORMAT={prefix:"",decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:" ",fractionGroupSize:0,suffix:""},e}(),O=function(){function e(t){this.bn=e.toBigNumberJs(t)}return e.prototype.clone=function(){return new e(this)},e.prototype.add=function(t){return new e(this.bn.plus(e.toBigNumberJs(t)))},e.prototype.sub=function(t){return new e(this.bn.minus(e.toBigNumberJs(t)))},e.prototype.mul=function(t){return new e(this.bn.times(e.toBigNumberJs(t)))},e.prototype.div=function(t){return new e(this.bn.div(e.toBigNumberJs(t)))},e.prototype.pow=function(t){return new e(this.bn.pow(e.toBigNumberJs(t)))},e.prototype.abs=function(){return new e(this.bn.abs())},e.prototype.mod=function(t){return new e(this.bn.mod(e.toBigNumberJs(t)))},e.prototype.roundTo=function(t,r){return void 0===t&&(t=0),void 0===r&&(r=4),new e(this.bn.dp(t||0,r))},e.prototype.eq=function(t){return this.bn.eq(e.toBigNumberJs(t))},e.prototype.lt=function(t){return this.bn.lt(e.toBigNumberJs(t))},e.prototype.gt=function(t){return this.bn.gt(e.toBigNumberJs(t))},e.prototype.lte=function(t){return this.bn.lte(e.toBigNumberJs(t))},e.prototype.gte=function(t){return this.bn.gte(e.toBigNumberJs(t))},e.prototype.isNaN=function(){return this.bn.isNaN()},e.prototype.isFinite=function(){return this.bn.isFinite()},e.prototype.isZero=function(){return this.eq(0)},e.prototype.isPositive=function(){return this.gt(0)},e.prototype.isNegative=function(){return this.lt(0)},e.prototype.isInt=function(){return this.bn.isInteger()},e.prototype.getDecimalsCount=function(){return this.bn.dp()},e.prototype.isEven=function(){return this.mod(2).eq(0)},e.prototype.isOdd=function(){return!this.isEven()},e.prototype.toBytes=function(){if(!this.isInt())throw new Error("Cant create bytes from number with decimals!");var t=this.isNegative(),r=t?"1":"0",n=e._toLength(64,this.bn.plus(r).abs().toString(2).replace("-","")).split(""),i=[];do{i.push(parseInt(n.splice(0,8).join(""),2))}while(n.length);return t?Uint8Array.from(i.map(function(e){return 255-e})):Uint8Array.from(i)},e.prototype.toFormat=function(e,t){return this.bn.toFormat(e,t)},e.prototype.toFixed=function(e,t){return null==e?this.bn.toFixed():this.bn.toFixed(e,t)},e.prototype.toJSON=function(){return this.bn.toFixed()},e.fromBytes=function(t){if(8!==t.length)throw new Error("Wrong bytes length! Need 8 bytes!");var r=t[0]>127,n=Array.from(t).map(function(e){return r?255-e:e}).map(function(t){return e._toLength(8,t.toString(2))}).join(""),i=new e(new y(n,2));return r?i.mul(-1).sub(1):i},e.max=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.toBigNumber(t).reduce(function(e,t){return e.gte(t)?e:t})},e.min=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.toBigNumber(t).reduce(function(e,t){return e.lte(t)?e:t})},e.sum=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.toBigNumber(t).reduce(function(e,t){return e.add(t)})},e.toBigNumber=function(t){return Array.isArray(t)?t.map(function(t){return new e(t)}):new e(t)},e.toBigNumberJs=function(t){return y.isBigNumber(t)?t:t instanceof e?t.bn:new y(t)},e._toLength=function(e,t){return new Array(e).fill("0",0,e).concat(t.split("")).slice(-e).join("")},e.MAX_VALUE=new e("9223372036854775807"),e.MIN_VALUE=new e("-9223372036854775808"),e.MAX_UNSIGNED_VALUE=new e("18446744073709551615"),e.config=new v,e}();e.BigNumber=O,e.default=O,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).BigNumber={})}(this,function(e){"use strict";var t=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,r=Math.ceil,n=Math.floor,i="[BigNumber Error] ",o=i+"Number primitive has more than 15 significant digits: ",u=1e14,s=14,f=9007199254740991,c=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],l=1e7,a=1e9;function h(e){var t=0|e;return e>0||e===t?t:t-1}function p(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(t=e[n++]+"",r=s-t.length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function g(e,t){var r,n,i=e.c,o=t.c,u=e.s,s=t.s,f=e.e,c=t.e;if(!u||!s)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:u;if(u!=s)return u;if(r=u<0,n=f==c,!i||!o)return n?0:!i^r?1:-1;if(!n)return f>c^r?1:-1;for(s=(f=i.length)<(c=o.length)?f:c,u=0;u<s;u++)if(i[u]!=o[u])return i[u]>o[u]^r?1:-1;return f==c?0:f>c^r?1:-1}function m(e,t,r,o){if(e<t||e>r||e!==n(e))throw Error(i+(o||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function w(e){var t=e.c.length-1;return h(e.e/s)==t&&e.c[t]%2!=0}function N(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function b(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(++t>(n=e.length)){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}var d=function e(d){var O,y,v,A,E,_,R,D,U,L=q.prototype={constructor:q,toString:null,valueOf:null},B=new q(1),F=20,S=4,x=-7,I=21,P=-1e7,M=1e7,T=!1,C=1,G=0,j={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},H="0123456789abcdefghijklmnopqrstuvwxyz";function q(e,r){var i,u,c,l,a,h,p,g,w=this;if(!(w instanceof q))return new q(e,r);if(null==r){if(e&&!0===e._isBigNumber)return w.s=e.s,void(!e.c||e.e>M?w.c=w.e=null:e.e<P?w.c=[w.e=0]:(w.e=e.e,w.c=e.c.slice()));if((h="number"==typeof e)&&0*e==0){if(w.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,a=e;a>=10;a/=10,l++);return void(l>M?w.c=w.e=null:(w.e=l,w.c=[e]))}g=String(e)}else{if(!t.test(g=String(e)))return v(w,g,h);w.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(l=g.indexOf("."))>-1&&(g=g.replace(".","")),(a=g.search(/e/i))>0?(l<0&&(l=a),l+=+g.slice(a+1),g=g.substring(0,a)):l<0&&(l=g.length)}else{if(m(r,2,H.length,"Base"),10==r)return z(w=new q(e),F+w.e+1,S);if(g=String(e),h="number"==typeof e){if(0*e!=0)return v(w,g,h,r);if(w.s=1/e<0?(g=g.slice(1),-1):1,q.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(o+e)}else w.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(i=H.slice(0,r),l=a=0,p=g.length;a<p;a++)if(i.indexOf(u=g.charAt(a))<0){if("."==u){if(a>l){l=p;continue}}else if(!c&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){c=!0,a=-1,l=0;continue}return v(w,String(e),h,r)}h=!1,(l=(g=y(g,r,10,w.s)).indexOf("."))>-1?g=g.replace(".",""):l=g.length}for(a=0;48===g.charCodeAt(a);a++);for(p=g.length;48===g.charCodeAt(--p););if(g=g.slice(a,++p)){if(p-=a,h&&q.DEBUG&&p>15&&(e>f||e!==n(e)))throw Error(o+w.s*e);if((l=l-a-1)>M)w.c=w.e=null;else if(l<P)w.c=[w.e=0];else{if(w.e=l,w.c=[],a=(l+1)%s,l<0&&(a+=s),a<p){for(a&&w.c.push(+g.slice(0,a)),p-=s;a<p;)w.c.push(+g.slice(a,a+=s));a=s-(g=g.slice(a)).length}else a-=p;for(;a--;g+="0");w.c.push(+g)}}else w.c=[w.e=0]}function J(e,t,r,n){var i,o,u,s,f;if(null==r?r=S:m(r,0,8),!e.c)return e.toString();if(i=e.c[0],u=e.e,null==t)f=p(e.c),f=1==n||2==n&&(u<=x||u>=I)?N(f,u):b(f,u,"0");else if(o=(e=z(new q(e),t,r)).e,s=(f=p(e.c)).length,1==n||2==n&&(t<=o||o<=x)){for(;s<t;f+="0",s++);f=N(f,o)}else if(t-=u,f=b(f,o,"0"),o+1>s){if(--t>0)for(f+=".";t--;f+="0");}else if((t+=o-s)>0)for(o+1==s&&(f+=".");t--;f+="0");return e.s<0&&i?"-"+f:f}function k(e,t){for(var r,n=1,i=new q(e[0]);n<e.length;n++){if(!(r=new q(e[n])).s){i=r;break}t.call(i,r)&&(i=r)}return i}function V(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+r*s-1)>M?e.c=e.e=null:r<P?e.c=[e.e=0]:(e.e=r,e.c=t),e}function z(e,t,i,o){var f,l,a,h,p,g,m,w=e.c,N=c;if(w){e:{for(f=1,h=w[0];h>=10;h/=10,f++);if((l=t-f)<0)l+=s,a=t,m=(p=w[g=0])/N[f-a-1]%10|0;else if((g=r((l+1)/s))>=w.length){if(!o)break e;for(;w.length<=g;w.push(0));p=m=0,f=1,a=(l%=s)-s+1}else{for(p=h=w[g],f=1;h>=10;h/=10,f++);m=(a=(l%=s)-s+f)<0?0:p/N[f-a-1]%10|0}if(o=o||t<0||null!=w[g+1]||(a<0?p:p%N[f-a-1]),o=i<4?(m||o)&&(0==i||i==(e.s<0?3:2)):m>5||5==m&&(4==i||o||6==i&&(l>0?a>0?p/N[f-a]:0:w[g-1])%10&1||i==(e.s<0?8:7)),t<1||!w[0])return w.length=0,o?(t-=e.e+1,w[0]=N[(s-t%s)%s],e.e=-t||0):w[0]=e.e=0,e;if(0==l?(w.length=g,h=1,g--):(w.length=g+1,h=N[s-l],w[g]=a>0?n(p/N[f-a]%N[a])*h:0),o)for(;;){if(0==g){for(l=1,a=w[0];a>=10;a/=10,l++);for(a=w[0]+=h,h=1;a>=10;a/=10,h++);l!=h&&(e.e++,w[0]==u&&(w[0]=1));break}if(w[g]+=h,w[g]!=u)break;w[g--]=0,h=1}for(l=w.length;0===w[--l];w.pop());}e.e>M?e.c=e.e=null:e.e<P&&(e.c=[e.e=0])}return e}function $(e){var t,r=e.e;return null===r?e.toString():(t=p(e.c),t=r<=x||r>=I?N(t,r):b(t,r,"0"),e.s<0?"-"+t:t)}return q.clone=e,q.ROUND_UP=0,q.ROUND_DOWN=1,q.ROUND_CEIL=2,q.ROUND_FLOOR=3,q.ROUND_HALF_UP=4,q.ROUND_HALF_DOWN=5,q.ROUND_HALF_EVEN=6,q.ROUND_HALF_CEIL=7,q.ROUND_HALF_FLOOR=8,q.EUCLID=9,q.config=q.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(i+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(m(r=e[t],0,a,t),F=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(r=e[t],0,8,t),S=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(m(r[0],-a,0,t),m(r[1],0,a,t),x=r[0],I=r[1]):(m(r,-a,a,t),x=-(I=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)m(r[0],-a,-1,t),m(r[1],1,a,t),P=r[0],M=r[1];else{if(m(r,-a,a,t),!r)throw Error(i+t+" cannot be zero: "+r);P=-(M=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(i+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw T=!r,Error(i+"crypto unavailable");T=r}else T=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(m(r=e[t],0,9,t),C=r),e.hasOwnProperty(t="POW_PRECISION")&&(m(r=e[t],0,a,t),G=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(i+t+" not an object: "+r);j=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.$|[+-.\s]|(.).*\1/.test(r))throw Error(i+t+" invalid: "+r);H=r}}return{DECIMAL_PLACES:F,ROUNDING_MODE:S,EXPONENTIAL_AT:[x,I],RANGE:[P,M],CRYPTO:T,MODULO_MODE:C,POW_PRECISION:G,FORMAT:j,ALPHABET:H}},q.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!q.DEBUG)return!0;var t,r,o=e.c,f=e.e,c=e.s;e:if("[object Array]"=={}.toString.call(o)){if((1===c||-1===c)&&f>=-a&&f<=a&&f===n(f)){if(0===o[0]){if(0===f&&1===o.length)return!0;break e}if((t=(f+1)%s)<1&&(t+=s),String(o[0]).length==t){for(t=0;t<o.length;t++)if((r=o[t])<0||r>=u||r!==n(r))break e;if(0!==r)return!0}}}else if(null===o&&null===f&&(null===c||1===c||-1===c))return!0;throw Error(i+"Invalid BigNumber: "+e)},q.maximum=q.max=function(){return k(arguments,L.lt)},q.minimum=q.min=function(){return k(arguments,L.gt)},q.random=(A=9007199254740992*Math.random()&2097151?function(){return n(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,o,u,f,l,h=0,p=[],g=new q(B);if(null==e?e=F:m(e,0,a),f=r(e/s),T)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(f*=2));h<f;)(l=131072*t[h]+(t[h+1]>>>11))>=9e15?(o=crypto.getRandomValues(new Uint32Array(2)),t[h]=o[0],t[h+1]=o[1]):(p.push(l%1e14),h+=2);h=f/2}else{if(!crypto.randomBytes)throw T=!1,Error(i+"crypto unavailable");for(t=crypto.randomBytes(f*=7);h<f;)(l=281474976710656*(31&t[h])+1099511627776*t[h+1]+4294967296*t[h+2]+16777216*t[h+3]+(t[h+4]<<16)+(t[h+5]<<8)+t[h+6])>=9e15?crypto.randomBytes(7).copy(t,h):(p.push(l%1e14),h+=7);h=f/7}if(!T)for(;h<f;)(l=A())<9e15&&(p[h++]=l%1e14);for(f=p[--h],e%=s,f&&e&&(l=c[s-e],p[h]=n(f/l)*l);0===p[h];p.pop(),h--);if(h<0)p=[u=0];else{for(u=-1;0===p[0];p.splice(0,1),u-=s);for(h=1,l=p[0];l>=10;l/=10,h++);h<s&&(u-=s-h)}return g.e=u,g.c=p,g}),q.sum=function(){for(var e=1,t=arguments,r=new q(t[0]);e<t.length;)r=r.plus(t[e++]);return r},y=function(){function e(e,t,r,n){for(var i,o,u=[0],s=0,f=e.length;s<f;){for(o=u.length;o--;u[o]*=t);for(u[0]+=n.indexOf(e.charAt(s++)),i=0;i<u.length;i++)u[i]>r-1&&(null==u[i+1]&&(u[i+1]=0),u[i+1]+=u[i]/r|0,u[i]%=r)}return u.reverse()}return function(t,r,n,i,o){var u,s,f,c,l,a,h,g,m=t.indexOf("."),w=F,N=S;for(m>=0&&(c=G,G=0,t=t.replace(".",""),a=(g=new q(r)).pow(t.length-m),G=c,g.c=e(b(p(a.c),a.e,"0"),10,n,"0123456789"),g.e=g.c.length),f=c=(h=e(t,r,n,o?(u=H,"0123456789"):(u="0123456789",H))).length;0==h[--c];h.pop());if(!h[0])return u.charAt(0);if(m<0?--f:(a.c=h,a.e=f,a.s=i,h=(a=O(a,g,w,N,n)).c,l=a.r,f=a.e),m=h[s=f+w+1],c=n/2,l=l||s<0||null!=h[s+1],l=N<4?(null!=m||l)&&(0==N||N==(a.s<0?3:2)):m>c||m==c&&(4==N||l||6==N&&1&h[s-1]||N==(a.s<0?8:7)),s<1||!h[0])t=l?b(u.charAt(1),-w,u.charAt(0)):u.charAt(0);else{if(h.length=s,l)for(--n;++h[--s]>n;)h[s]=0,s||(++f,h=[1].concat(h));for(c=h.length;!h[--c];);for(m=0,t="";m<=c;t+=u.charAt(h[m++]));t=b(t,f,u.charAt(0))}return t}}(),O=function(){function e(e,t,r){var n,i,o,u,s=0,f=e.length,c=t%l,a=t/l|0;for(e=e.slice();f--;)s=((i=c*(o=e[f]%l)+(n=a*o+(u=e[f]/l|0)*c)%l*l+s)/r|0)+(n/l|0)+a*u,e[f]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(i,o,f,c,l){var a,p,g,m,w,N,b,d,O,y,v,A,E,_,R,D,U,L=i.s==o.s?1:-1,B=i.c,F=o.c;if(!(B&&B[0]&&F&&F[0]))return new q(i.s&&o.s&&(B?!F||B[0]!=F[0]:F)?B&&0==B[0]||!F?0*L:L/0:NaN);for(O=(d=new q(L)).c=[],L=f+(p=i.e-o.e)+1,l||(l=u,p=h(i.e/s)-h(o.e/s),L=L/s|0),g=0;F[g]==(B[g]||0);g++);if(F[g]>(B[g]||0)&&p--,L<0)O.push(1),m=!0;else{for(_=B.length,D=F.length,g=0,L+=2,(w=n(l/(F[0]+1)))>1&&(F=e(F,w,l),B=e(B,w,l),D=F.length,_=B.length),E=D,v=(y=B.slice(0,D)).length;v<D;y[v++]=0);U=F.slice(),U=[0].concat(U),R=F[0],F[1]>=l/2&&R++;do{if(w=0,(a=t(F,y,D,v))<0){if(A=y[0],D!=v&&(A=A*l+(y[1]||0)),(w=n(A/R))>1)for(w>=l&&(w=l-1),b=(N=e(F,w,l)).length,v=y.length;1==t(N,y,b,v);)w--,r(N,D<b?U:F,b,l),b=N.length,a=1;else 0==w&&(a=w=1),b=(N=F.slice()).length;if(b<v&&(N=[0].concat(N)),r(y,N,v,l),v=y.length,-1==a)for(;t(F,y,D,v)<1;)w++,r(y,D<v?U:F,v,l),v=y.length}else 0===a&&(w++,y=[0]);O[g++]=w,y[0]?y[v++]=B[E]||0:(y=[B[E]],v=1)}while((E++<_||null!=y[0])&&L--);m=null!=y[0],O[0]||O.splice(0,1)}if(l==u){for(g=1,L=O[0];L>=10;L/=10,g++);z(d,f+(d.e=g+p*s-1)+1,c,m)}else d.e=p,d.r=+m;return d}}(),E=/^(-?)0([xbo])(?=\w[\w.]*$)/i,_=/^([^.]+)\.$/,R=/^\.([^.]+)$/,D=/^-?(Infinity|NaN)$/,U=/^\s*\+(?=[\w.])|^\s+|\s+$/g,v=function(e,t,r,n){var o,u=r?t:t.replace(U,"");if(D.test(u))e.s=isNaN(u)?null:u<0?-1:1;else{if(!r&&(u=u.replace(E,function(e,t,r){return o="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=o?e:t}),n&&(o=n,u=u.replace(_,"$1").replace(R,"0.$1")),t!=u))return new q(u,o);if(q.DEBUG)throw Error(i+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},L.absoluteValue=L.abs=function(){var e=new q(this);return e.s<0&&(e.s=1),e},L.comparedTo=function(e,t){return g(this,new q(e,t))},L.decimalPlaces=L.dp=function(e,t){var r,n,i,o=this;if(null!=e)return m(e,0,a),null==t?t=S:m(t,0,8),z(new q(o),e+o.e+1,t);if(!(r=o.c))return null;if(n=((i=r.length-1)-h(this.e/s))*s,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},L.dividedBy=L.div=function(e,t){return O(this,new q(e,t),F,S)},L.dividedToIntegerBy=L.idiv=function(e,t){return O(this,new q(e,t),0,1)},L.exponentiatedBy=L.pow=function(e,t){var o,u,f,c,l,a,h,p,g=this;if((e=new q(e)).c&&!e.isInteger())throw Error(i+"Exponent not an integer: "+$(e));if(null!=t&&(t=new q(t)),l=e.e>14,!g.c||!g.c[0]||1==g.c[0]&&!g.e&&1==g.c.length||!e.c||!e.c[0])return p=new q(Math.pow(+$(g),l?2-w(e):+$(e))),t?p.mod(t):p;if(a=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new q(NaN);(u=!a&&g.isInteger()&&t.isInteger())&&(g=g.mod(t))}else{if(e.e>9&&(g.e>0||g.e<-1||(0==g.e?g.c[0]>1||l&&g.c[1]>=24e7:g.c[0]<8e13||l&&g.c[0]<=9999975e7)))return c=g.s<0&&w(e)?-0:0,g.e>-1&&(c=1/c),new q(a?1/c:c);G&&(c=r(G/s+2))}for(l?(o=new q(.5),a&&(e.s=1),h=w(e)):h=(f=Math.abs(+$(e)))%2,p=new q(B);;){if(h){if(!(p=p.times(g)).c)break;c?p.c.length>c&&(p.c.length=c):u&&(p=p.mod(t))}if(f){if(0===(f=n(f/2)))break;h=f%2}else if(z(e=e.times(o),e.e+1,1),e.e>14)h=w(e);else{if(0==(f=+$(e)))break;h=f%2}g=g.times(g),c?g.c&&g.c.length>c&&(g.c.length=c):u&&(g=g.mod(t))}return u?p:(a&&(p=B.div(p)),t?p.mod(t):c?z(p,G,S,void 0):p)},L.integerValue=function(e){var t=new q(this);return null==e?e=S:m(e,0,8),z(t,t.e+1,e)},L.isEqualTo=L.eq=function(e,t){return 0===g(this,new q(e,t))},L.isFinite=function(){return!!this.c},L.isGreaterThan=L.gt=function(e,t){return g(this,new q(e,t))>0},L.isGreaterThanOrEqualTo=L.gte=function(e,t){return 1===(t=g(this,new q(e,t)))||0===t},L.isInteger=function(){return!!this.c&&h(this.e/s)>this.c.length-2},L.isLessThan=L.lt=function(e,t){return g(this,new q(e,t))<0},L.isLessThanOrEqualTo=L.lte=function(e,t){return-1===(t=g(this,new q(e,t)))||0===t},L.isNaN=function(){return!this.s},L.isNegative=function(){return this.s<0},L.isPositive=function(){return this.s>0},L.isZero=function(){return!!this.c&&0==this.c[0]},L.minus=function(e,t){var r,n,i,o,f=this,c=f.s;if(t=(e=new q(e,t)).s,!c||!t)return new q(NaN);if(c!=t)return e.s=-t,f.plus(e);var l=f.e/s,a=e.e/s,p=f.c,g=e.c;if(!l||!a){if(!p||!g)return p?(e.s=-t,e):new q(g?f:NaN);if(!p[0]||!g[0])return g[0]?(e.s=-t,e):new q(p[0]?f:3==S?-0:0)}if(l=h(l),a=h(a),p=p.slice(),c=l-a){for((o=c<0)?(c=-c,i=p):(a=l,i=g),i.reverse(),t=c;t--;i.push(0));i.reverse()}else for(n=(o=(c=p.length)<(t=g.length))?c:t,c=t=0;t<n;t++)if(p[t]!=g[t]){o=p[t]<g[t];break}if(o&&(i=p,p=g,g=i,e.s=-e.s),(t=(n=g.length)-(r=p.length))>0)for(;t--;p[r++]=0);for(t=u-1;n>c;){if(p[--n]<g[n]){for(r=n;r&&!p[--r];p[r]=t);--p[r],p[n]+=u}p[n]-=g[n]}for(;0==p[0];p.splice(0,1),--a);return p[0]?V(e,p,a):(e.s=3==S?-1:1,e.c=[e.e=0],e)},L.modulo=L.mod=function(e,t){var r,n,i=this;return e=new q(e,t),!i.c||!e.s||e.c&&!e.c[0]?new q(NaN):!e.c||i.c&&!i.c[0]?new q(i):(9==C?(n=e.s,e.s=1,r=O(i,e,0,3),e.s=n,r.s*=n):r=O(i,e,0,C),(e=i.minus(r.times(e))).c[0]||1!=C||(e.s=i.s),e)},L.multipliedBy=L.times=function(e,t){var r,n,i,o,f,c,a,p,g,m,w,N,b,d,O,y=this,v=y.c,A=(e=new q(e,t)).c;if(!(v&&A&&v[0]&&A[0]))return!y.s||!e.s||v&&!v[0]&&!A||A&&!A[0]&&!v?e.c=e.e=e.s=null:(e.s*=y.s,v&&A?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=h(y.e/s)+h(e.e/s),e.s*=y.s,(a=v.length)<(m=A.length)&&(b=v,v=A,A=b,i=a,a=m,m=i),i=a+m,b=[];i--;b.push(0));for(d=u,O=l,i=m;--i>=0;){for(r=0,w=A[i]%O,N=A[i]/O|0,o=i+(f=a);o>i;)r=((p=w*(p=v[--f]%O)+(c=N*p+(g=v[f]/O|0)*w)%O*O+b[o]+r)/d|0)+(c/O|0)+N*g,b[o--]=p%d;b[o]=r}return r?++n:b.splice(0,1),V(e,b,n)},L.negated=function(){var e=new q(this);return e.s=-e.s||null,e},L.plus=function(e,t){var r,n=this,i=n.s;if(t=(e=new q(e,t)).s,!i||!t)return new q(NaN);if(i!=t)return e.s=-t,n.minus(e);var o=n.e/s,f=e.e/s,c=n.c,l=e.c;if(!o||!f){if(!c||!l)return new q(i/0);if(!c[0]||!l[0])return l[0]?e:new q(c[0]?n:0*i)}if(o=h(o),f=h(f),c=c.slice(),i=o-f){for(i>0?(f=o,r=l):(i=-i,r=c),r.reverse();i--;r.push(0));r.reverse()}for((i=c.length)-(t=l.length)<0&&(r=l,l=c,c=r,t=i),i=0;t;)i=(c[--t]=c[t]+l[t]+i)/u|0,c[t]=u===c[t]?0:c[t]%u;return i&&(c=[i].concat(c),++f),V(e,c,f)},L.precision=L.sd=function(e,t){var r,n,i,o=this;if(null!=e&&e!==!!e)return m(e,1,a),null==t?t=S:m(t,0,8),z(new q(o),e,t);if(!(r=o.c))return null;if(n=(i=r.length-1)*s+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&o.e+1>n&&(n=o.e+1),n},L.shiftedBy=function(e){return m(e,-f,f),this.times("1e"+e)},L.squareRoot=L.sqrt=function(){var e,t,r,n,i,o=this,u=o.c,s=o.s,f=o.e,c=F+4,l=new q("0.5");if(1!==s||!u||!u[0])return new q(!s||s<0&&(!u||u[0])?NaN:u?o:1/0);if(0==(s=Math.sqrt(+$(o)))||s==1/0?(((t=p(u)).length+f)%2==0&&(t+="0"),s=Math.sqrt(+t),f=h((f+1)/2)-(f<0||f%2),r=new q(t=s==1/0?"1e"+f:(t=s.toExponential()).slice(0,t.indexOf("e")+1)+f)):r=new q(s+""),r.c[0])for((s=(f=r.e)+c)<3&&(s=0);;)if(i=r,r=l.times(i.plus(O(o,i,c,1))),p(i.c).slice(0,s)===(t=p(r.c)).slice(0,s)){if(r.e<f&&--s,"9999"!=(t=t.slice(s-3,s+1))&&(n||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(z(r,r.e+F+2,1),e=!r.times(r).eq(o));break}if(!n&&(z(i,i.e+F+2,0),i.times(i).eq(o))){r=i;break}c+=4,s+=4,n=1}return z(r,r.e+F+1,S,e)},L.toExponential=function(e,t){return null!=e&&(m(e,0,a),e++),J(this,e,t,1)},L.toFixed=function(e,t){return null!=e&&(m(e,0,a),e=e+this.e+1),J(this,e,t)},L.toFormat=function(e,t,r){var n,o=this;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=j;else if("object"!=typeof r)throw Error(i+"Argument not an object: "+r);if(n=o.toFixed(e,t),o.c){var u,s=n.split("."),f=+r.groupSize,c=+r.secondaryGroupSize,l=r.groupSeparator||"",a=s[0],h=s[1],p=o.s<0,g=p?a.slice(1):a,m=g.length;if(c&&(u=f,f=c,c=u,m-=u),f>0&&m>0){for(u=m%f||f,a=g.substr(0,u);u<m;u+=f)a+=l+g.substr(u,f);c>0&&(a+=l+g.slice(u)),p&&(a="-"+a)}n=h?a+(r.decimalSeparator||"")+((c=+r.fractionGroupSize)?h.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):h):a}return(r.prefix||"")+n+(r.suffix||"")},L.toFraction=function(e){var t,r,n,o,u,f,l,a,h,g,m,w,N=this,b=N.c;if(null!=e&&(!(l=new q(e)).isInteger()&&(l.c||1!==l.s)||l.lt(B)))throw Error(i+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+$(l));if(!b)return new q(N);for(t=new q(B),h=r=new q(B),n=a=new q(B),w=p(b),u=t.e=w.length-N.e-1,t.c[0]=c[(f=u%s)<0?s+f:f],e=!e||l.comparedTo(t)>0?u>0?t:h:l,f=M,M=1/0,l=new q(w),a.c[0]=0;g=O(l,t,0,1),1!=(o=r.plus(g.times(n))).comparedTo(e);)r=n,n=o,h=a.plus(g.times(o=h)),a=o,t=l.minus(g.times(o=t)),l=o;return o=O(e.minus(r),n,0,1),a=a.plus(o.times(h)),r=r.plus(o.times(n)),a.s=h.s=N.s,m=O(h,n,u*=2,S).minus(N).abs().comparedTo(O(a,r,u,S).minus(N).abs())<1?[h,n]:[a,r],M=f,m},L.toNumber=function(){return+$(this)},L.toPrecision=function(e,t){return null!=e&&m(e,1,a),J(this,e,t,2)},L.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=i<=x||i>=I?N(p(r.c),i):b(p(r.c),i,"0"):10===e?t=b(p((r=z(new q(r),F+i+1,S)).c),r.e,"0"):(m(e,2,H.length,"Base"),t=y(b(p(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},L.valueOf=L.toJSON=function(){return $(this)},L._isBigNumber=!0,L[Symbol.toStringTag]="BigNumber",L[Symbol.for("nodejs.util.inspect.custom")]=L.valueOf,null!=d&&q.set(d),q}(),O=function(){return(O=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},y=function(){function e(){this.format=e.DEFAULT_FORMAT,d.config({FORMAT:this.format})}return e.prototype.set=function(e){"FORMAT"in e&&(this.format=O({},this.format,e.FORMAT),e.FORMAT=this.format),d.config(e)},e.DEFAULT_FORMAT={prefix:"",decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:" ",fractionGroupSize:0,suffix:""},e}();e.BigNumber=function(){function e(t){this.bn=e.toBigNumberJs(t)}return e.prototype.clone=function(){return new e(this)},e.prototype.add=function(t){return new e(this.bn.plus(e.toBigNumberJs(t)))},e.prototype.sub=function(t){return new e(this.bn.minus(e.toBigNumberJs(t)))},e.prototype.mul=function(t){return new e(this.bn.times(e.toBigNumberJs(t)))},e.prototype.div=function(t){return new e(this.bn.div(e.toBigNumberJs(t)))},e.prototype.pow=function(t){return new e(this.bn.pow(e.toBigNumberJs(t)))},e.prototype.abs=function(){return new e(this.bn.abs())},e.prototype.mod=function(t){return new e(this.bn.mod(e.toBigNumberJs(t)))},e.prototype.roundTo=function(t,r){return void 0===t&&(t=0),void 0===r&&(r=4),new e(this.bn.dp(t||0,r))},e.prototype.eq=function(t){return this.bn.eq(e.toBigNumberJs(t))},e.prototype.lt=function(t){return this.bn.lt(e.toBigNumberJs(t))},e.prototype.gt=function(t){return this.bn.gt(e.toBigNumberJs(t))},e.prototype.lte=function(t){return this.bn.lte(e.toBigNumberJs(t))},e.prototype.gte=function(t){return this.bn.gte(e.toBigNumberJs(t))},e.prototype.isNaN=function(){return this.bn.isNaN()},e.prototype.isFinite=function(){return this.bn.isFinite()},e.prototype.isZero=function(){return this.eq(0)},e.prototype.isPositive=function(){return this.gt(0)},e.prototype.isNegative=function(){return this.lt(0)},e.prototype.isInt=function(){return this.bn.isInteger()},e.prototype.getDecimalsCount=function(){return this.bn.dp()},e.prototype.isEven=function(){return this.mod(2).eq(0)},e.prototype.isOdd=function(){return!this.isEven()},e.prototype.toBytes=function(){if(!this.isInt())throw new Error("Cant create bytes from number with decimals!");var t=this.isNegative(),r=t?"1":"0",n=e._toLength(64,this.bn.plus(r).abs().toString(2).replace("-","")).split(""),i=[];do{i.push(parseInt(n.splice(0,8).join(""),2))}while(n.length);return t?Uint8Array.from(i.map(function(e){return 255-e})):Uint8Array.from(i)},e.prototype.toFormat=function(e,t){return this.bn.toFormat(e,t)},e.prototype.toFixed=function(e,t){return null==e?this.bn.toFixed():this.bn.toFixed(e,t)},e.prototype.toJSON=function(){return this.bn.toFixed()},e.fromBytes=function(t){if(8!==t.length)throw new Error("Wrong bytes length! Need 8 bytes!");var r=t[0]>127,n=Array.from(t).map(function(e){return r?255-e:e}).map(function(t){return e._toLength(8,t.toString(2))}).join(""),i=new e(new d(n,2));return r?i.mul(-1).sub(1):i},e.max=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.toBigNumber(t).reduce(function(e,t){return e.gte(t)?e:t})},e.min=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.toBigNumber(t).reduce(function(e,t){return e.lte(t)?e:t})},e.sum=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.toBigNumber(t).reduce(function(e,t){return e.add(t)})},e.toBigNumber=function(t){return Array.isArray(t)?t.map(function(t){return new e(t)}):new e(t)},e.toBigNumberJs=function(t){return d.isBigNumber(t)?t:t instanceof e?t.bn:new d(t)},e._toLength=function(e,t){return new Array(e).fill("0",0,e).concat(t.split("")).slice(-e).join("")},e.MAX_VALUE=new e("9223372036854775807"),e.MIN_VALUE=new e("-9223372036854775808"),e.MAX_UNSIGNED_VALUE=new e("18446744073709551615"),e.config=new y,e}(),function(e){!function(e){e[e.ROUND_UP=0]="ROUND_UP",e[e.ROUND_DOWN=1]="ROUND_DOWN",e[e.ROUND_CEIL=2]="ROUND_CEIL",e[e.ROUND_FLOOR=3]="ROUND_FLOOR",e[e.ROUND_HALF_UP=4]="ROUND_HALF_UP",e[e.ROUND_HALF_DOWN=5]="ROUND_HALF_DOWN",e[e.ROUND_HALF_EVEN=6]="ROUND_HALF_EVEN",e[e.ROUND_HALF_CEIL=7]="ROUND_HALF_CEIL",e[e.ROUND_HALF_FLOOR=8]="ROUND_HALF_FLOOR"}(e.ROUND_MODE||(e.ROUND_MODE={}))}(e.BigNumber||(e.BigNumber={}));var v=e.BigNumber;e.default=v,Object.defineProperty(e,"__esModule",{value:!0})});
{
"name": "@waves/bignumber",
"version": "0.0.1-a3",
"version": "0.0.1-a4",
"description": "Waves Library for work with Bignumber in javascript",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc