Comparing version 0.8.94 to 0.8.95
@@ -1,1 +0,1 @@ | ||
!function(e){function n(t){if(r[t])return r[t].exports;var i=r[t]={"i":t,"l":!1,"exports":{}};return e[t].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var r={};n.m=e,n.c=r,n.i=function(e){return e},n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{"configurable":!1,"enumerable":!0,"get":t})},n.n=function(e){var r=e&&e.__esModule?function(){return e['default']}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s=4)}([function(e,n,r){"use strict";var t,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(o){function u(e){function n(e,r){var t,i,o,u,f,s,c,a,h=this;if(!(h instanceof n))return new n(e,r);if(null==r){if(e&&!0===e._isBigNumber)return h.s=e.s,void(!e.c||e.e>M?h.c=h.e=null:e.e<C?h.c=[h.e=0]:(h.e=e.e,h.c=e.c.slice()));if((s="number"==typeof e)&&0*e==0){if(h.s=1/e<0?(e=-e,-1):1,e===~~e){for(u=0,f=e;f>=10;f/=10,u++);return void(u>M?h.c=h.e=null:(h.e=u,h.c=[e]))}a=String(e)}else{if(!d.test(a=String(e)))return B(h,a,s);h.s=45==a.charCodeAt(0)?(a=a.slice(1),-1):1}(u=a.indexOf("."))>-1&&(a=a.replace(".","")),(f=a.search(/e/i))>0?(u<0&&(u=f),u+=+a.slice(f+1),a=a.substring(0,f)):u<0&&(u=a.length)}else{if(l(r,2,G.length,"Base"),10==r)return h=new n(e),g(h,D+h.e+1,I);if(a=String(e),s="number"==typeof e){if(0*e!=0)return B(h,a,s,r);if(h.s=1/e<0?(a=a.slice(1),-1):1,n.DEBUG&&a.replace(/^0\.0*|\./,"").length>15)throw Error(y+e)}else h.s=45===a.charCodeAt(0)?(a=a.slice(1),-1):1;for(t=G.slice(0,r),u=f=0,c=a.length;f<c;f++)if(t.indexOf(i=a.charAt(f))<0){if("."==i){if(f>u){u=c;continue}}else if(!o&&(a==a.toUpperCase()&&(a=a.toLowerCase())||a==a.toLowerCase()&&(a=a.toUpperCase()))){o=!0,f=-1,u=0;continue}return B(h,String(e),s,r)}s=!1,a=P(a,r,10,h.s),(u=a.indexOf("."))>-1?a=a.replace(".",""):u=a.length}for(f=0;48===a.charCodeAt(f);f++);for(c=a.length;48===a.charCodeAt(--c););if(a=a.slice(f,++c)){if(c-=f,s&&n.DEBUG&&c>15&&(e>O||e!==b(e)))throw Error(y+h.s*e);if((u=u-f-1)>M)h.c=h.e=null;else if(u<C)h.c=[h.e=0];else{if(h.e=u,h.c=[],f=(u+1)%N,u<0&&(f+=N),f<c){for(f&&h.c.push(+a.slice(0,f)),c-=N;f<c;)h.c.push(+a.slice(f,f+=N));f=N-(a=a.slice(f)).length}else f-=c;for(;f--;a+="0");h.c.push(+a)}}else h.c=[h.e=0]}function r(e,r,t,i){var o,u,f,c,a;if(null==t?t=I:l(t,0,8),!e.c)return e.toString();if(o=e.c[0],f=e.e,null==r)a=s(e.c),a=1==i||2==i&&(f<=L||f>=U)?h(a,f):p(a,f,"0");else if(e=g(new n(e),r,t),u=e.e,a=s(e.c),c=a.length,1==i||2==i&&(r<=u||u<=L)){for(;c<r;a+="0",c++);a=h(a,u)}else if(r-=f,a=p(a,u,"0"),u+1>c){if(--r>0)for(a+=".";r--;a+="0");}else if((r+=u-c)>0)for(u+1==c&&(a+=".");r--;a+="0");return e.s<0&&o?"-"+a:a}function t(e,r){for(var t,i=1,o=new n(e[0]);i<e.length;i++){if(t=new n(e[i]),!t.s){o=t;break}r.call(o,t)&&(o=t)}return o}function o(e,n,r){for(var t=1,i=n.length;!n[--i];n.pop());for(i=n[0];i>=10;i/=10,t++);return(r=t+r*N-1)>M?e.c=e.e=null:r<C?e.c=[e.e=0]:(e.e=r,e.c=n),e}function g(e,n,r,t){var i,o,u,f,s,c,l,a=e.c,h=E;if(a){e:{for(i=1,f=a[0];f>=10;f/=10,i++);if((o=n-i)<0)o+=N,u=n,s=a[c=0],l=s/h[i-u-1]%10|0;else if((c=m((o+1)/N))>=a.length){if(!t)break e;for(;a.length<=c;a.push(0));s=l=0,i=1,o%=N,u=o-N+1}else{for(s=f=a[c],i=1;f>=10;f/=10,i++);o%=N,u=o-N+i,l=u<0?0:s/h[i-u-1]%10|0}if(t=t||n<0||null!=a[c+1]||(u<0?s:s%h[i-u-1]),t=r<4?(l||t)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||t||6==r&&(o>0?u>0?s/h[i-u]:0:a[c-1])%10&1||r==(e.s<0?8:7)),n<1||!a[0])return a.length=0,t?(n-=e.e+1,a[0]=h[(N-n%N)%N],e.e=-n||0):a[0]=e.e=0,e;if(0==o?(a.length=c,f=1,c--):(a.length=c+1,f=h[N-o],a[c]=u>0?b(s/h[i-u]%h[u])*f:0),t)for(;;){if(0==c){for(o=1,u=a[0];u>=10;u/=10,o++);for(u=a[0]+=f,f=1;u>=10;u/=10,f++);o!=f&&(e.e++,a[0]==v&&(a[0]=1));break}if(a[c]+=f,a[c]!=v)break;a[c--]=0,f=1}for(o=a.length;0===a[--o];a.pop());}e.e>M?e.c=e.e=null:e.e<C&&(e.c=[e.e=0])}return e}function A(e){var n,r=e.e;return null===r?e.toString():(n=s(e.c),n=r<=L||r>=U?h(n,r):p(n,r,"0"),e.s<0?"-"+n:n)}var x,P,B,T=n.prototype={"constructor":n,"toString":null,"valueOf":null},R=new n(1),D=20,I=4,L=-7,U=21,C=-1e7,M=1e7,k=!1,j=1,q=0,F={"prefix":"","groupSize":3,"secondaryGroupSize":0,"groupSeparator":",","decimalSeparator":".","fractionGroupSize":0,"fractionGroupSeparator":" ","suffix":""},G="0123456789abcdefghijklmnopqrstuvwxyz";return n.clone=u,n.ROUND_UP=0,n.ROUND_DOWN=1,n.ROUND_CEIL=2,n.ROUND_FLOOR=3,n.ROUND_HALF_UP=4,n.ROUND_HALF_DOWN=5,n.ROUND_HALF_EVEN=6,n.ROUND_HALF_CEIL=7,n.ROUND_HALF_FLOOR=8,n.EUCLID=9,n.config=n.set=function(e){var n,r;if(null!=e){if("object"!=(void 0===e?"undefined":i(e)))throw Error(w+"Object expected: "+e);if(e.hasOwnProperty(n="DECIMAL_PLACES")&&(r=e[n],l(r,0,S,n),D=r),e.hasOwnProperty(n="ROUNDING_MODE")&&(r=e[n],l(r,0,8,n),I=r),e.hasOwnProperty(n="EXPONENTIAL_AT")&&(r=e[n],r&&r.pop?(l(r[0],-S,0,n),l(r[1],0,S,n),L=r[0],U=r[1]):(l(r,-S,S,n),L=-(U=r<0?-r:r))),e.hasOwnProperty(n="RANGE"))if((r=e[n])&&r.pop)l(r[0],-S,-1,n),l(r[1],1,S,n),C=r[0],M=r[1];else{if(l(r,-S,S,n),!r)throw Error(w+n+" cannot be zero: "+r);C=-(M=r<0?-r:r)}if(e.hasOwnProperty(n="CRYPTO")){if((r=e[n])!==!!r)throw Error(w+n+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw k=!r,Error(w+"crypto unavailable");k=r}else k=r}if(e.hasOwnProperty(n="MODULO_MODE")&&(r=e[n],l(r,0,9,n),j=r),e.hasOwnProperty(n="POW_PRECISION")&&(r=e[n],l(r,0,S,n),q=r),e.hasOwnProperty(n="FORMAT")){if(r=e[n],"object"!=(void 0===r?"undefined":i(r)))throw Error(w+n+" not an object: "+r);F=r}if(e.hasOwnProperty(n="ALPHABET")){if("string"!=typeof(r=e[n])||/^.$|[+-.\s]|(.).*\1/.test(r))throw Error(w+n+" invalid: "+r);G=r}}return{"DECIMAL_PLACES":D,"ROUNDING_MODE":I,"EXPONENTIAL_AT":[L,U],"RANGE":[C,M],"CRYPTO":k,"MODULO_MODE":j,"POW_PRECISION":q,"FORMAT":F,"ALPHABET":G}},n.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!n.DEBUG)return!0;var r,t,i=e.c,o=e.e,u=e.s;e:if("[object Array]"=={}.toString.call(i)){if((1===u||-1===u)&&o>=-S&&o<=S&&o===b(o)){if(0===i[0]){if(0===o&&1===i.length)return!0;break e}if(r=(o+1)%N,r<1&&(r+=N),String(i[0]).length==r){for(r=0;r<i.length;r++)if((t=i[r])<0||t>=v||t!==b(t))break e;if(0!==t)return!0}}}else if(null===i&&null===o&&(null===u||1===u||-1===u))return!0;throw Error(w+"Invalid BigNumber: "+e)},n.maximum=n.max=function(){return t(arguments,T.lt)},n.minimum=n.min=function(){return t(arguments,T.gt)},n.random=function(){var e=9007199254740992*Math.random()&2097151?function(){return b(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(r){var t,i,o,u,f,s=0,c=[],a=new n(R);if(null==r?r=D:l(r,0,S),u=m(r/N),k)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(u*=2));s<u;)f=131072*t[s]+(t[s+1]>>>11),f>=9e15?(i=crypto.getRandomValues(new Uint32Array(2)),t[s]=i[0],t[s+1]=i[1]):(c.push(f%1e14),s+=2);s=u/2}else{if(!crypto.randomBytes)throw k=!1,Error(w+"crypto unavailable");for(t=crypto.randomBytes(u*=7);s<u;)f=281474976710656*(31&t[s])+1099511627776*t[s+1]+4294967296*t[s+2]+16777216*t[s+3]+(t[s+4]<<16)+(t[s+5]<<8)+t[s+6],f>=9e15?crypto.randomBytes(7).copy(t,s):(c.push(f%1e14),s+=7);s=u/7}if(!k)for(;s<u;)(f=e())<9e15&&(c[s++]=f%1e14);for(u=c[--s],r%=N,u&&r&&(f=E[N-r],c[s]=b(u/f)*f);0===c[s];c.pop(),s--);if(s<0)c=[o=0];else{for(o=-1;0===c[0];c.splice(0,1),o-=N);for(s=1,f=c[0];f>=10;f/=10,s++);s<N&&(o-=N-s)}return a.e=o,a.c=c,a}}(),n.sum=function(){for(var e=1,r=arguments,t=new n(r[0]);e<r.length;)t=t.plus(r[e++]);return t},P=function(){function e(e,n,r,t){for(var i,o,u=[0],f=0,s=e.length;f<s;){for(o=u.length;o--;u[o]*=n);for(u[0]+=t.indexOf(e.charAt(f++)),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(r,t,i,o,u){var f,c,l,a,h,g,d,m,b=r.indexOf("."),w=D,y=I;for(b>=0&&(a=q,q=0,r=r.replace(".",""),m=new n(t),g=m.pow(r.length-b),q=a,m.c=e(p(s(g.c),g.e,"0"),10,i,"0123456789"),m.e=m.c.length),d=e(r,t,i,u?(f=G,"0123456789"):(f="0123456789",G)),l=a=d.length;0==d[--a];d.pop());if(!d[0])return f.charAt(0);if(b<0?--l:(g.c=d,g.e=l,g.s=o,g=x(g,m,w,y,i),d=g.c,h=g.r,l=g.e),c=l+w+1,b=d[c],a=i/2,h=h||c<0||null!=d[c+1],h=y<4?(null!=b||h)&&(0==y||y==(g.s<0?3:2)):b>a||b==a&&(4==y||h||6==y&&1&d[c-1]||y==(g.s<0?8:7)),c<1||!d[0])r=h?p(f.charAt(1),-w,f.charAt(0)):f.charAt(0);else{if(d.length=c,h)for(--i;++d[--c]>i;)d[c]=0,c||(++l,d=[1].concat(d));for(a=d.length;!d[--a];);for(b=0,r="";b<=a;r+=f.charAt(d[b++]));r=p(r,l,f.charAt(0))}return r}}(),x=function(){function e(e,n,r){var t,i,o,u,f=0,s=e.length,c=n%_,l=n/_|0;for(e=e.slice();s--;)o=e[s]%_,u=e[s]/_|0,t=l*o+u*c,i=c*o+t%_*_+f,f=(i/r|0)+(t/_|0)+l*u,e[s]=i%r;return f&&(e=[f].concat(e)),e}function r(e,n,r,t){var i,o;if(r!=t)o=r>t?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=n[i]){o=e[i]>n[i]?1:-1;break}return o}function t(e,n,r,t){for(var i=0;r--;)e[r]-=i,i=e[r]<n[r]?1:0,e[r]=i*t+e[r]-n[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(i,o,u,s,c){var l,a,h,p,d,m,w,y,O,E,_,S,A,x,P,B,T,R=i.s==o.s?1:-1,D=i.c,I=o.c;if(!(D&&D[0]&&I&&I[0]))return new n(i.s&&o.s&&(D?!I||D[0]!=I[0]:I)?D&&0==D[0]||!I?0*R:R/0:NaN);for(y=new n(R),O=y.c=[],a=i.e-o.e,R=u+a+1,c||(c=v,a=f(i.e/N)-f(o.e/N),R=R/N|0),h=0;I[h]==(D[h]||0);h++);if(I[h]>(D[h]||0)&&a--,R<0)O.push(1),p=!0;else{for(x=D.length,B=I.length,h=0,R+=2,d=b(c/(I[0]+1)),d>1&&(I=e(I,d,c),D=e(D,d,c),B=I.length,x=D.length),A=B,E=D.slice(0,B),_=E.length;_<B;E[_++]=0);T=I.slice(),T=[0].concat(T),P=I[0],I[1]>=c/2&&P++;do{if(d=0,(l=r(I,E,B,_))<0){if(S=E[0],B!=_&&(S=S*c+(E[1]||0)),(d=b(S/P))>1)for(d>=c&&(d=c-1),m=e(I,d,c),w=m.length,_=E.length;1==r(m,E,w,_);)d--,t(m,B<w?T:I,w,c),w=m.length,l=1;else 0==d&&(l=d=1),m=I.slice(),w=m.length;if(w<_&&(m=[0].concat(m)),t(E,m,_,c),_=E.length,-1==l)for(;r(I,E,B,_)<1;)d++,t(E,B<_?T:I,_,c),_=E.length}else 0===l&&(d++,E=[0]);O[h++]=d,E[0]?E[_++]=D[A]||0:(E=[D[A]],_=1)}while((A++<x||null!=E[0])&&R--);p=null!=E[0],O[0]||O.splice(0,1)}if(c==v){for(h=1,R=O[0];R>=10;R/=10,h++);g(y,u+(y.e=h+a*N-1)+1,s,p)}else y.e=a,y.r=+p;return y}}(),B=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,r=/^([^.]+)\.$/,t=/^\.([^.]+)$/,i=/^-?(Infinity|NaN)$/,o=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(u,f,s,c){var l,a=s?f:f.replace(o,"");if(i.test(a))u.s=isNaN(a)?null:a<0?-1:1;else{if(!s&&(a=a.replace(e,function(e,n,r){return l="x"==(r=r.toLowerCase())?16:"b"==r?2:8,c&&c!=l?e:n}),c&&(l=c,a=a.replace(r,"$1").replace(t,"0.$1")),f!=a))return new n(a,l);if(n.DEBUG)throw Error(w+"Not a"+(c?" base "+c:"")+" number: "+f);u.s=null}u.c=u.e=null}}(),T.absoluteValue=T.abs=function(){var e=new n(this);return e.s<0&&(e.s=1),e},T.comparedTo=function(e,r){return c(this,new n(e,r))},T.decimalPlaces=T.dp=function(e,r){var t,i,o,u=this;if(null!=e)return l(e,0,S),null==r?r=I:l(r,0,8),g(new n(u),e+u.e+1,r);if(!(t=u.c))return null;if(i=((o=t.length-1)-f(this.e/N))*N,o=t[o])for(;o%10==0;o/=10,i--);return i<0&&(i=0),i},T.dividedBy=T.div=function(e,r){return x(this,new n(e,r),D,I)},T.dividedToIntegerBy=T.idiv=function(e,r){return x(this,new n(e,r),0,1)},T.exponentiatedBy=T.pow=function(e,r){var t,i,o,u,f,s,c,l,h=this;if(e=new n(e),e.c&&!e.isInteger())throw Error(w+"Exponent not an integer: "+A(e));if(null!=r&&(r=new n(r)),f=e.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return l=new n(Math.pow(+A(h),f?2-a(e):+A(e))),r?l.mod(r):l;if(s=e.s<0,r){if(r.c?!r.c[0]:!r.s)return new n(NaN);i=!s&&h.isInteger()&&r.isInteger(),i&&(h=h.mod(r))}else{if(e.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||f&&h.c[1]>=24e7:h.c[0]<8e13||f&&h.c[0]<=9999975e7)))return u=h.s<0&&a(e)?-0:0,h.e>-1&&(u=1/u),new n(s?1/u:u);q&&(u=m(q/N+2))}for(f?(t=new n(.5),s&&(e.s=1),c=a(e)):(o=Math.abs(+A(e)),c=o%2),l=new n(R);;){if(c){if(l=l.times(h),!l.c)break;u?l.c.length>u&&(l.c.length=u):i&&(l=l.mod(r))}if(o){if(0===(o=b(o/2)))break;c=o%2}else if(e=e.times(t),g(e,e.e+1,1),e.e>14)c=a(e);else{if(0===(o=+A(e)))break;c=o%2}h=h.times(h),u?h.c&&h.c.length>u&&(h.c.length=u):i&&(h=h.mod(r))}return i?l:(s&&(l=R.div(l)),r?l.mod(r):u?g(l,q,I,void 0):l)},T.integerValue=function(e){var r=new n(this);return null==e?e=I:l(e,0,8),g(r,r.e+1,e)},T.isEqualTo=T.eq=function(e,r){return 0===c(this,new n(e,r))},T.isFinite=function(){return!!this.c},T.isGreaterThan=T.gt=function(e,r){return c(this,new n(e,r))>0},T.isGreaterThanOrEqualTo=T.gte=function(e,r){return 1===(r=c(this,new n(e,r)))||0===r},T.isInteger=function(){return!!this.c&&f(this.e/N)>this.c.length-2},T.isLessThan=T.lt=function(e,r){return c(this,new n(e,r))<0},T.isLessThanOrEqualTo=T.lte=function(e,r){return-1===(r=c(this,new n(e,r)))||0===r},T.isNaN=function(){return!this.s},T.isNegative=function(){return this.s<0},T.isPositive=function(){return this.s>0},T.isZero=function(){return!!this.c&&0==this.c[0]},T.minus=function(e,r){var t,i,u,s,c=this,l=c.s;if(e=new n(e,r),r=e.s,!l||!r)return new n(NaN);if(l!=r)return e.s=-r,c.plus(e);var a=c.e/N,h=e.e/N,p=c.c,g=e.c;if(!a||!h){if(!p||!g)return p?(e.s=-r,e):new n(g?c:NaN);if(!p[0]||!g[0])return g[0]?(e.s=-r,e):new n(p[0]?c:3==I?-0:0)}if(a=f(a),h=f(h),p=p.slice(),l=a-h){for((s=l<0)?(l=-l,u=p):(h=a,u=g),u.reverse(),r=l;r--;u.push(0));u.reverse()}else for(i=(s=(l=p.length)<(r=g.length))?l:r,l=r=0;r<i;r++)if(p[r]!=g[r]){s=p[r]<g[r];break}if(s&&(u=p,p=g,g=u,e.s=-e.s),(r=(i=g.length)-(t=p.length))>0)for(;r--;p[t++]=0);for(r=v-1;i>l;){if(p[--i]<g[i]){for(t=i;t&&!p[--t];p[t]=r);--p[t],p[i]+=v}p[i]-=g[i]}for(;0==p[0];p.splice(0,1),--h);return p[0]?o(e,p,h):(e.s=3==I?-1:1,e.c=[e.e=0],e)},T.modulo=T.mod=function(e,r){var t,i,o=this;return e=new n(e,r),!o.c||!e.s||e.c&&!e.c[0]?new n(NaN):!e.c||o.c&&!o.c[0]?new n(o):(9==j?(i=e.s,e.s=1,t=x(o,e,0,3),e.s=i,t.s*=i):t=x(o,e,0,j),e=o.minus(t.times(e)),e.c[0]||1!=j||(e.s=o.s),e)},T.multipliedBy=T.times=function(e,r){var t,i,u,s,c,l,a,h,p,g,d,m,b,w,y,O=this,E=O.c,S=(e=new n(e,r)).c;if(!(E&&S&&E[0]&&S[0]))return!O.s||!e.s||E&&!E[0]&&!S||S&&!S[0]&&!E?e.c=e.e=e.s=null:(e.s*=O.s,E&&S?(e.c=[0],e.e=0):e.c=e.e=null),e;for(i=f(O.e/N)+f(e.e/N),e.s*=O.s,a=E.length,g=S.length,a<g&&(b=E,E=S,S=b,u=a,a=g,g=u),u=a+g,b=[];u--;b.push(0));for(w=v,y=_,u=g;--u>=0;){for(t=0,d=S[u]%y,m=S[u]/y|0,c=a,s=u+c;s>u;)h=E[--c]%y,p=E[c]/y|0,l=m*h+p*d,h=d*h+l%y*y+b[s]+t,t=(h/w|0)+(l/y|0)+m*p,b[s--]=h%w;b[s]=t}return t?++i:b.splice(0,1),o(e,b,i)},T.negated=function(){var e=new n(this);return e.s=-e.s||null,e},T.plus=function(e,r){var t,i=this,u=i.s;if(e=new n(e,r),r=e.s,!u||!r)return new n(NaN);if(u!=r)return e.s=-r,i.minus(e);var s=i.e/N,c=e.e/N,l=i.c,a=e.c;if(!s||!c){if(!l||!a)return new n(u/0);if(!l[0]||!a[0])return a[0]?e:new n(l[0]?i:0*u)}if(s=f(s),c=f(c),l=l.slice(),u=s-c){for(u>0?(c=s,t=a):(u=-u,t=l),t.reverse();u--;t.push(0));t.reverse()}for(u=l.length,r=a.length,u-r<0&&(t=a,a=l,l=t,r=u),u=0;r;)u=(l[--r]=l[r]+a[r]+u)/v|0,l[r]=v===l[r]?0:l[r]%v;return u&&(l=[u].concat(l),++c),o(e,l,c)},T.precision=T.sd=function(e,r){var t,i,o,u=this;if(null!=e&&e!==!!e)return l(e,1,S),null==r?r=I:l(r,0,8),g(new n(u),e,r);if(!(t=u.c))return null;if(o=t.length-1,i=o*N+1,o=t[o]){for(;o%10==0;o/=10,i--);for(o=t[0];o>=10;o/=10,i++);}return e&&u.e+1>i&&(i=u.e+1),i},T.shiftedBy=function(e){return l(e,-O,O),this.times("1e"+e)},T.squareRoot=T.sqrt=function(){var e,r,t,i,o,u=this,c=u.c,l=u.s,a=u.e,h=D+4,p=new n("0.5");if(1!==l||!c||!c[0])return new n(!l||l<0&&(!c||c[0])?NaN:c?u:1/0);if(l=Math.sqrt(+A(u)),0==l||l==1/0?(r=s(c),(r.length+a)%2==0&&(r+="0"),l=Math.sqrt(+r),a=f((a+1)/2)-(a<0||a%2),l==1/0?r="1e"+a:(r=l.toExponential(),r=r.slice(0,r.indexOf("e")+1)+a),t=new n(r)):t=new n(l+""),t.c[0])for(a=t.e,l=a+h,l<3&&(l=0);;)if(o=t,t=p.times(o.plus(x(u,o,h,1))),s(o.c).slice(0,l)===(r=s(t.c)).slice(0,l)){if(t.e<a&&--l,"9999"!=(r=r.slice(l-3,l+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(g(t,t.e+D+2,1),e=!t.times(t).eq(u));break}if(!i&&(g(o,o.e+D+2,0),o.times(o).eq(u))){t=o;break}h+=4,l+=4,i=1}return g(t,t.e+D+1,I,e)},T.toExponential=function(e,n){return null!=e&&(l(e,0,S),e++),r(this,e,n,1)},T.toFixed=function(e,n){return null!=e&&(l(e,0,S),e=e+this.e+1),r(this,e,n)},T.toFormat=function(e,n,r){var t,o=this;if(null==r)null!=e&&n&&"object"==(void 0===n?"undefined":i(n))?(r=n,n=null):e&&"object"==(void 0===e?"undefined":i(e))?(r=e,e=n=null):r=F;else if("object"!=(void 0===r?"undefined":i(r)))throw Error(w+"Argument not an object: "+r);if(t=o.toFixed(e,n),o.c){var u,f=t.split("."),s=+r.groupSize,c=+r.secondaryGroupSize,l=r.groupSeparator||"",a=f[0],h=f[1],p=o.s<0,g=p?a.slice(1):a,d=g.length;if(c&&(u=s,s=c,c=u,d-=u),s>0&&d>0){for(u=d%s||s,a=g.substr(0,u);u<d;u+=s)a+=l+g.substr(u,s);c>0&&(a+=l+g.slice(u)),p&&(a="-"+a)}t=h?a+(r.decimalSeparator||"")+((c=+r.fractionGroupSize)?h.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):h):a}return(r.prefix||"")+t+(r.suffix||"")},T.toFraction=function(e){var r,t,i,o,u,f,c,l,a,h,p,g,d=this,m=d.c;if(null!=e&&(c=new n(e),!c.isInteger()&&(c.c||1!==c.s)||c.lt(R)))throw Error(w+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+A(c));if(!m)return new n(d);for(r=new n(R),a=t=new n(R),i=l=new n(R),g=s(m),u=r.e=g.length-d.e-1,r.c[0]=E[(f=u%N)<0?N+f:f],e=!e||c.comparedTo(r)>0?u>0?r:a:c,f=M,M=1/0,c=new n(g),l.c[0]=0;h=x(c,r,0,1),o=t.plus(h.times(i)),1!=o.comparedTo(e);)t=i,i=o,a=l.plus(h.times(o=a)),l=o,r=c.minus(h.times(o=r)),c=o;return o=x(e.minus(t),i,0,1),l=l.plus(o.times(a)),t=t.plus(o.times(i)),l.s=a.s=d.s,u*=2,p=x(a,i,u,I).minus(d).abs().comparedTo(x(l,t,u,I).minus(d).abs())<1?[a,i]:[l,t],M=f,p},T.toNumber=function(){return+A(this)},T.toPrecision=function(e,n){return null!=e&&l(e,1,S),r(this,e,n,2)},T.toString=function(e){var r,t=this,i=t.s,o=t.e;return null===o?i?(r="Infinity",i<0&&(r="-"+r)):r="NaN":(null==e?r=o<=L||o>=U?h(s(t.c),o):p(s(t.c),o,"0"):10===e?(t=g(new n(t),D+o+1,I),r=p(s(t.c),t.e,"0")):(l(e,2,G.length,"Base"),r=P(p(s(t.c),o,"0"),10,e,i,!0)),i<0&&t.c[0]&&(r="-"+r)),r},T.valueOf=T.toJSON=function(){return A(this)},T._isBigNumber=!0,null!=e&&n.set(e),n}function f(e){var n=0|e;return e>0||e===n?n:n-1}function s(e){for(var n,r,t=1,i=e.length,o=e[0]+"";t<i;){for(n=e[t++]+"",r=N-n.length;r--;n="0"+n);o+=n}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function c(e,n){var r,t,i=e.c,o=n.c,u=e.s,f=n.s,s=e.e,c=n.e;if(!u||!f)return null;if(r=i&&!i[0],t=o&&!o[0],r||t)return r?t?0:-f:u;if(u!=f)return u;if(r=u<0,t=s==c,!i||!o)return t?0:!i^r?1:-1;if(!t)return s>c^r?1:-1;for(f=(s=i.length)<(c=o.length)?s:c,u=0;u<f;u++)if(i[u]!=o[u])return i[u]>o[u]^r?1:-1;return s==c?0:s>c^r?1:-1}function l(e,n,r,t){if(e<n||e>r||e!==b(e))throw Error(w+(t||"Argument")+("number"==typeof e?e<n||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function a(e){var n=e.c.length-1;return f(e.e/N)==n&&e.c[n]%2!=0}function h(e,n){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(n<0?"e":"e+")+n}function p(e,n,r){var t,i;if(n<0){for(i=r+".";++n;i+=r);e=i+e}else if(t=e.length,++n>t){for(i=r,n-=t;--n;i+=r);e+=i}else n<t&&(e=e.slice(0,n)+"."+e.slice(n));return e}var g,d=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,m=Math.ceil,b=Math.floor,w="[BigNumber Error] ",y=w+"Number primitive has more than 15 significant digits: ",v=1e14,N=14,O=9007199254740991,E=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],_=1e7,S=1e9;g=u(),g['default']=g.BigNumber=g,void 0!==(t=function(){return g}.call(n,r,n,e))&&(e.exports=t)}()},function(e,n,r){"use strict";!function(){"function"!=typeof Promise.prototype.finally&&(Promise.prototype.finally=function(e){return this.then(function(n){return this.constructor.resolve(e()).then(function(){return n})})['catch'](function(n){return this.constructor.resolve(e()).then(function(){throw n})})})}()},function(e,n,r){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i="function"==typeof Symbol&&"symbol"===t(Symbol.iterator)?function(e){return void 0===e?"undefined":t(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":t(e)},o=r(0);n.bigint=function(e){return n.bigint_check(e)?"string"==typeof e?e.length>=15?new o(e):Number(e):e:Number.NaN},n.bigint_check=function(e){if(Number.isInteger(e))return!0;if(!e)return!1;var n=void 0===e?"undefined":i(e);if("string"===n){if(e.length>22||e.length<1)return!1;for(var r=1;r<e.length;r++)if(e[r]<"0"||e[r]>"9")return!1;if(1==e.length)return!(e[0]<"0"||e[0]>"9");if("-"==e[0]){if(e.length<2||e[1]<"1"||e[1]>"9")return!1}else if(e[0]<"1"||e[0]>"9")return!1;return!0}return"object"===n&&!!e.isBigNumber},n.bigint_add=function(e,n){return e instanceof o||(e=new o(e)),e.plus(n)},n.bigint_minus=function(e,n){return e instanceof o||(e=new o(e)),e.minus(n)},n.bigint_dividedBy=function(e,n){return e instanceof o||(e=new o(e)),e.dividedBy(n)},n.bigint_mul=function(e,n){return e instanceof o||(e=new o(e)),e.times(n)},n.bigint_equal=function(e,n){return e instanceof o||(e=new o(e)),e.equals(n)},n.bigint_more_than=function(e,n){return e instanceof o||(e=new o(e)),e.greaterThan(n)},n.bigint_more_than_e=function(e,n){return e instanceof o||(e=new o(e)),e.greaterThanOrEqualTo(n)},n.bigint_less_than=function(e,n){return e instanceof o||(e=new o(e)),e.lessThan(n)},n.bigint_less_than_e=function(e,n){return e instanceof o||(e=new o(e)),e.lessThanOrEqualTo(n)},n.bigint_mod=function(e,n){return Number.isInteger(e)?Number.isInteger(n)?e%n:new o(e).mod(n):(e instanceof o||(e=new o(e)),e.mod(n))},n.bigint_toFixed=function(e,n){return n=n||0,e instanceof o||(e=new o(e)),e.toFixed(n)}},function(e,n,r){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{"enumerable":!0,"get":function(){return e.l}}),Object.defineProperty(e,"id",{"enumerable":!0,"get":function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,n,r){"use strict";(function(e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r(1),function(r,t){"object"===n(e)&&"object"===n(e.exports)?e.exports=r.document?t(r,!0):function(e){if(!e.document)throw new Error("febs requires a window with a document");return t(e)}:t(r)}("undefined"!=typeof window?window:void 0,function(e,n){var t={};if(t.__debug=e.__debug,t.utils=r(2),t.BigNumber=r(0),e.febs)if(e.febs.utils)for(var i in t.utils)e.febs.utils[i]=t.utils[i];else e.febs.utils=t.utils;else e.febs=t;return t})}).call(n,r(3)(e))}]); | ||
!function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={"i":r,"l":!1,"exports":{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var t={};n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{"configurable":!1,"enumerable":!0,"get":r})},n.n=function(e){var t=e&&e.__esModule?function(){return e['default']}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s=4)}([function(e,n,t){"use strict";var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(o){function u(e){function n(e,r){var i,o,u,f,s,c,l=this;if(!(l instanceof n))return z&&P(26,"constructor call without new",e),new n(e,r);if(null!=r&&V(r,2,64,B,"base")){if(r|=0,c=e+"",10==r)return l=new n(e instanceof n?e:c),T(l,M+l.e+1,k);if((f="number"==typeof e)&&0*e!=0||!new RegExp("^-?"+(i="["+_.slice(0,r)+"]+")+"(?:\\."+i+")?$",r<37?"i":"").test(c))return q(l,c,f,r);f?(l.s=1/e<0?(c=c.slice(1),-1):1,z&&c.replace(/^0\.0*|\./,"").length>15&&P(B,S,e),f=!1):l.s=45===c.charCodeAt(0)?(c=c.slice(1),-1):1,c=t(c,10,r,l.s)}else{if(e instanceof n)return l.s=e.s,l.e=e.e,l.c=(e=e.c)?e.slice():e,void(B=0);if((f="number"==typeof e)&&0*e==0){if(l.s=1/e<0?(e=-e,-1):1,e===~~e){for(o=0,u=e;u>=10;u/=10,o++);return l.e=o,l.c=[e],void(B=0)}c=e+""}else{if(!b.test(c=e+""))return q(l,c,f);l.s=45===c.charCodeAt(0)?(c=c.slice(1),-1):1}}for((o=c.indexOf("."))>-1&&(c=c.replace(".","")),(u=c.search(/e/i))>0?(o<0&&(o=u),o+=+c.slice(u+1),c=c.substring(0,u)):o<0&&(o=c.length),u=0;48===c.charCodeAt(u);u++);for(s=c.length;48===c.charCodeAt(--s););if(c=c.slice(u,s+1))if(s=c.length,f&&z&&s>15&&(e>E||e!==w(e))&&P(B,S,l.s*e),(o=o-u-1)>G)l.c=l.e=null;else if(o<$)l.c=[l.e=0];else{if(l.e=o,l.c=[],u=(o+1)%x,o<0&&(u+=x),u<s){for(u&&l.c.push(+c.slice(0,u)),s-=x;u<s;)l.c.push(+c.slice(u,u+=x));c=c.slice(u),u=x-c.length}else u-=s;for(;u--;c+="0");l.c.push(+c)}else l.c=[l.e=0];B=0}function t(e,t,r,i){var o,u,f,c,l,a,g,d=e.indexOf("."),m=M,b=k;for(r<37&&(e=e.toLowerCase()),d>=0&&(f=J,J=0,e=e.replace(".",""),g=new n(r),l=g.pow(e.length-d),J=f,g.c=h(p(s(l.c),l.e),10,t),g.e=g.c.length),a=h(e,r,t),u=f=a.length;0==a[--f];a.pop());if(!a[0])return"0";if(d<0?--u:(l.c=a,l.e=u,l.s=i,l=D(l,g,m,b,t),a=l.c,c=l.r,u=l.e),o=u+m+1,d=a[o],f=t/2,c=c||o<0||null!=a[o+1],c=b<4?(null!=d||c)&&(0==b||b==(l.s<0?3:2)):d>f||d==f&&(4==b||c||6==b&&1&a[o-1]||b==(l.s<0?8:7)),o<1||!a[0])e=c?p("1",-m):"0";else{if(a.length=o,c)for(--t;++a[--o]>t;)a[o]=0,o||(++u,a.unshift(1));for(f=a.length;!a[--f];);for(d=0,e="";d<=f;e+=_.charAt(a[d++]));e=p(e,u)}return e}function r(e,t,r,i){var o,u,f,c,l;if(r=null!=r&&V(r,0,8,i,N)?0|r:k,!e.c)return e.toString();if(o=e.c[0],f=e.e,null==t)l=s(e.c),l=19==i||24==i&&f<=C?g(l,f):p(l,f);else if(e=T(new n(e),t,r),u=e.e,l=s(e.c),c=l.length,19==i||24==i&&(t<=u||u<=C)){for(;c<t;l+="0",c++);l=g(l,u)}else if(t-=f,l=p(l,u),u+1>c){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=u-c)>0)for(u+1==c&&(l+=".");t--;l+="0");return e.s<0&&o?"-"+l:l}function o(e,t){var r,i,o=0;for(a(e[0])&&(e=e[0]),r=new n(e[0]);++o<e.length;){if(i=new n(e[o]),!i.s){r=i;break}t.call(r,i)&&(r=i)}return r}function m(e,n,t,r,i){return(e<n||e>t||e!=d(e))&&P(r,(i||"decimal places")+(e<n||e>t?" out of range":" not an integer"),e),!0}function F(e,n,t){for(var r=1,i=n.length;!n[--i];n.pop());for(i=n[0];i>=10;i/=10,r++);return(t=r+t*x-1)>G?e.c=e.e=null:t<$?e.c=[e.e=0]:(e.e=t,e.c=n),e}function P(e,n,t){var r=new Error(["new BigNumber","cmp","config","div","divToInt","eq","gt","gte","lt","lte","minus","mod","plus","precision","random","round","shift","times","toDigits","toExponential","toFixed","toFormat","toFraction","pow","toPrecision","toString","BigNumber"][e]+"() "+n+": "+t);throw r.name="BigNumber Error",B=0,r}function T(e,n,t,r){var i,o,u,f,s,c,l,a=e.c,h=R;if(a){e:{for(i=1,f=a[0];f>=10;f/=10,i++);if((o=n-i)<0)o+=x,u=n,s=a[c=0],l=s/h[i-u-1]%10|0;else if((c=y((o+1)/x))>=a.length){if(!r)break e;for(;a.length<=c;a.push(0));s=l=0,i=1,o%=x,u=o-x+1}else{for(s=f=a[c],i=1;f>=10;f/=10,i++);o%=x,u=o-x+i,l=u<0?0:s/h[i-u-1]%10|0}if(r=r||n<0||null!=a[c+1]||(u<0?s:s%h[i-u-1]),r=t<4?(l||r)&&(0==t||t==(e.s<0?3:2)):l>5||5==l&&(4==t||r||6==t&&(o>0?u>0?s/h[i-u]:0:a[c-1])%10&1||t==(e.s<0?8:7)),n<1||!a[0])return a.length=0,r?(n-=e.e+1,a[0]=h[(x-n%x)%x],e.e=-n||0):a[0]=e.e=0,e;if(0==o?(a.length=c,f=1,c--):(a.length=c+1,f=h[x-o],a[c]=u>0?w(s/h[i-u]%h[u])*f:0),r)for(;;){if(0==c){for(o=1,u=a[0];u>=10;u/=10,o++);for(u=a[0]+=f,f=1;u>=10;u/=10,f++);o!=f&&(e.e++,a[0]==O&&(a[0]=1));break}if(a[c]+=f,a[c]!=O)break;a[c--]=0,f=1}for(o=a.length;0===a[--o];a.pop());}e.e>G?e.c=e.e=null:e.e<$&&(e.c=[e.e=0])}return e}var D,q,B=0,L=n.prototype,U=new n(1),M=20,k=4,C=-7,j=21,$=-1e7,G=1e7,z=!0,V=m,H=!1,W=1,J=0,X={"decimalSeparator":".","groupSeparator":",","groupSize":3,"secondaryGroupSize":0,"fractionGroupSeparator":" ","fractionGroupSize":0};return n.another=u,n.ROUND_UP=0,n.ROUND_DOWN=1,n.ROUND_CEIL=2,n.ROUND_FLOOR=3,n.ROUND_HALF_UP=4,n.ROUND_HALF_DOWN=5,n.ROUND_HALF_EVEN=6,n.ROUND_HALF_CEIL=7,n.ROUND_HALF_FLOOR=8,n.EUCLID=9,n.config=n.set=function(){var e,n,t=0,r={},o=arguments,u=o[0],f=u&&"object"==(void 0===u?"undefined":i(u))?function(){if(u.hasOwnProperty(n))return null!=(e=u[n])}:function(){if(o.length>t)return null!=(e=o[t++])};return f(n="DECIMAL_PLACES")&&V(e,0,I,2,n)&&(M=0|e),r[n]=M,f(n="ROUNDING_MODE")&&V(e,0,8,2,n)&&(k=0|e),r[n]=k,f(n="EXPONENTIAL_AT")&&(a(e)?V(e[0],-I,0,2,n)&&V(e[1],0,I,2,n)&&(C=0|e[0],j=0|e[1]):V(e,-I,I,2,n)&&(C=-(j=0|(e<0?-e:e)))),r[n]=[C,j],f(n="RANGE")&&(a(e)?V(e[0],-I,-1,2,n)&&V(e[1],1,I,2,n)&&($=0|e[0],G=0|e[1]):V(e,-I,I,2,n)&&(0|e?$=-(G=0|(e<0?-e:e)):z&&P(2,n+" cannot be zero",e))),r[n]=[$,G],f(n="ERRORS")&&(e===!!e||1===e||0===e?(B=0,V=(z=!!e)?m:l):z&&P(2,n+v,e)),r[n]=z,f(n="CRYPTO")&&(!0===e||!1===e||1===e||0===e?e?(e="undefined"==typeof crypto,!e&&crypto&&(crypto.getRandomValues||crypto.randomBytes)?H=!0:z?P(2,"crypto unavailable",e?void 0:crypto):H=!1):H=!1:z&&P(2,n+v,e)),r[n]=H,f(n="MODULO_MODE")&&V(e,0,9,2,n)&&(W=0|e),r[n]=W,f(n="POW_PRECISION")&&V(e,0,I,2,n)&&(J=0|e),r[n]=J,f(n="FORMAT")&&("object"==(void 0===e?"undefined":i(e))?X=e:z&&P(2,n+" not an object",e)),r[n]=X,r},n.max=function(){return o(arguments,L.lt)},n.min=function(){return o(arguments,L.gt)},n.random=function(){var e=9007199254740992*Math.random()&2097151?function(){return w(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(t){var r,i,o,u,f,s=0,c=[],l=new n(U);if(t=null!=t&&V(t,0,I,14)?0|t:M,u=y(t/x),H)if(crypto.getRandomValues){for(r=crypto.getRandomValues(new Uint32Array(u*=2));s<u;)f=131072*r[s]+(r[s+1]>>>11),f>=9e15?(i=crypto.getRandomValues(new Uint32Array(2)),r[s]=i[0],r[s+1]=i[1]):(c.push(f%1e14),s+=2);s=u/2}else if(crypto.randomBytes){for(r=crypto.randomBytes(u*=7);s<u;)f=281474976710656*(31&r[s])+1099511627776*r[s+1]+4294967296*r[s+2]+16777216*r[s+3]+(r[s+4]<<16)+(r[s+5]<<8)+r[s+6],f>=9e15?crypto.randomBytes(7).copy(r,s):(c.push(f%1e14),s+=7);s=u/7}else H=!1,z&&P(14,"crypto unavailable",crypto);if(!H)for(;s<u;)(f=e())<9e15&&(c[s++]=f%1e14);for(u=c[--s],t%=x,u&&t&&(f=R[x-t],c[s]=w(u/f)*f);0===c[s];c.pop(),s--);if(s<0)c=[o=0];else{for(o=-1;0===c[0];c.shift(),o-=x);for(s=1,f=c[0];f>=10;f/=10,s++);s<x&&(o-=x-s)}return l.e=o,l.c=c,l}}(),D=function(){function e(e,n,t){var r,i,o,u,f=0,s=e.length,c=n%A,l=n/A|0;for(e=e.slice();s--;)o=e[s]%A,u=e[s]/A|0,r=l*o+u*c,i=c*o+r%A*A+f,f=(i/t|0)+(r/A|0)+l*u,e[s]=i%t;return f&&e.unshift(f),e}function t(e,n,t,r){var i,o;if(t!=r)o=t>r?1:-1;else for(i=o=0;i<t;i++)if(e[i]!=n[i]){o=e[i]>n[i]?1:-1;break}return o}function r(e,n,t,r){for(var i=0;t--;)e[t]-=i,i=e[t]<n[t]?1:0,e[t]=i*r+e[t]-n[t];for(;!e[0]&&e.length>1;e.shift());}return function(i,o,u,s,c){var l,a,h,g,p,d,m,b,y,v,N,S,_,E,R,A,I,F=i.s==o.s?1:-1,P=i.c,D=o.c;if(!(P&&P[0]&&D&&D[0]))return new n(i.s&&o.s&&(P?!D||P[0]!=D[0]:D)?P&&0==P[0]||!D?0*F:F/0:NaN);for(b=new n(F),y=b.c=[],a=i.e-o.e,F=u+a+1,c||(c=O,a=f(i.e/x)-f(o.e/x),F=F/x|0),h=0;D[h]==(P[h]||0);h++);if(D[h]>(P[h]||0)&&a--,F<0)y.push(1),g=!0;else{for(E=P.length,A=D.length,h=0,F+=2,p=w(c/(D[0]+1)),p>1&&(D=e(D,p,c),P=e(P,p,c),A=D.length,E=P.length),_=A,v=P.slice(0,A),N=v.length;N<A;v[N++]=0);I=D.slice(),I.unshift(0),R=D[0],D[1]>=c/2&&R++;do{if(p=0,(l=t(D,v,A,N))<0){if(S=v[0],A!=N&&(S=S*c+(v[1]||0)),(p=w(S/R))>1)for(p>=c&&(p=c-1),d=e(D,p,c),m=d.length,N=v.length;1==t(d,v,m,N);)p--,r(d,A<m?I:D,m,c),m=d.length,l=1;else 0==p&&(l=p=1),d=D.slice(),m=d.length;if(m<N&&d.unshift(0),r(v,d,N,c),N=v.length,-1==l)for(;t(D,v,A,N)<1;)p++,r(v,A<N?I:D,N,c),N=v.length}else 0===l&&(p++,v=[0]);y[h++]=p,v[0]?v[N++]=P[_]||0:(v=[P[_]],N=1)}while((_++<E||null!=v[0])&&F--);g=null!=v[0],y[0]||y.shift()}if(c==O){for(h=1,F=y[0];F>=10;F/=10,h++);T(b,u+(b.e=h+a*x-1)+1,s,g)}else b.e=a,b.r=+g;return b}}(),q=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,r=/^\.([^.]+)$/,i=/^-?(Infinity|NaN)$/,o=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(u,f,s,c){var l,a=s?f:f.replace(o,"");if(i.test(a))u.s=isNaN(a)?null:a<0?-1:1;else{if(!s&&(a=a.replace(e,function(e,n,t){return l="x"==(t=t.toLowerCase())?16:"b"==t?2:8,c&&c!=l?e:n}),c&&(l=c,a=a.replace(t,"$1").replace(r,"0.$1")),f!=a))return new n(a,l);z&&P(B,"not a"+(c?" base "+c:"")+" number",f),u.s=null}u.c=u.e=null,B=0}}(),L.absoluteValue=L.abs=function(){var e=new n(this);return e.s<0&&(e.s=1),e},L.ceil=function(){return T(new n(this),this.e+1,2)},L.comparedTo=L.cmp=function(e,t){return B=1,c(this,new n(e,t))},L.decimalPlaces=L.dp=function(){var e,n,t=this.c;if(!t)return null;if(e=((n=t.length-1)-f(this.e/x))*x,n=t[n])for(;n%10==0;n/=10,e--);return e<0&&(e=0),e},L.dividedBy=L.div=function(e,t){return B=3,D(this,new n(e,t),M,k)},L.dividedToIntegerBy=L.divToInt=function(e,t){return B=4,D(this,new n(e,t),0,1)},L.equals=L.eq=function(e,t){return B=5,0===c(this,new n(e,t))},L.floor=function(){return T(new n(this),this.e+1,3)},L.greaterThan=L.gt=function(e,t){return B=6,c(this,new n(e,t))>0},L.greaterThanOrEqualTo=L.gte=function(e,t){return B=7,1===(t=c(this,new n(e,t)))||0===t},L.isFinite=function(){return!!this.c},L.isInteger=L.isInt=function(){return!!this.c&&f(this.e/x)>this.c.length-2},L.isNaN=function(){return!this.s},L.isNegative=L.isNeg=function(){return this.s<0},L.isZero=function(){return!!this.c&&0==this.c[0]},L.lessThan=L.lt=function(e,t){return B=8,c(this,new n(e,t))<0},L.lessThanOrEqualTo=L.lte=function(e,t){return B=9,-1===(t=c(this,new n(e,t)))||0===t},L.minus=L.sub=function(e,t){var r,i,o,u,s=this,c=s.s;if(B=10,e=new n(e,t),t=e.s,!c||!t)return new n(NaN);if(c!=t)return e.s=-t,s.plus(e);var l=s.e/x,a=e.e/x,h=s.c,g=e.c;if(!l||!a){if(!h||!g)return h?(e.s=-t,e):new n(g?s:NaN);if(!h[0]||!g[0])return g[0]?(e.s=-t,e):new n(h[0]?s:3==k?-0:0)}if(l=f(l),a=f(a),h=h.slice(),c=l-a){for((u=c<0)?(c=-c,o=h):(a=l,o=g),o.reverse(),t=c;t--;o.push(0));o.reverse()}else for(i=(u=(c=h.length)<(t=g.length))?c:t,c=t=0;t<i;t++)if(h[t]!=g[t]){u=h[t]<g[t];break}if(u&&(o=h,h=g,g=o,e.s=-e.s),(t=(i=g.length)-(r=h.length))>0)for(;t--;h[r++]=0);for(t=O-1;i>c;){if(h[--i]<g[i]){for(r=i;r&&!h[--r];h[r]=t);--h[r],h[i]+=O}h[i]-=g[i]}for(;0==h[0];h.shift(),--a);return h[0]?F(e,h,a):(e.s=3==k?-1:1,e.c=[e.e=0],e)},L.modulo=L.mod=function(e,t){var r,i,o=this;return B=11,e=new n(e,t),!o.c||!e.s||e.c&&!e.c[0]?new n(NaN):!e.c||o.c&&!o.c[0]?new n(o):(9==W?(i=e.s,e.s=1,r=D(o,e,0,3),e.s=i,r.s*=i):r=D(o,e,0,W),o.minus(r.times(e)))},L.negated=L.neg=function(){var e=new n(this);return e.s=-e.s||null,e},L.plus=L.add=function(e,t){var r,i=this,o=i.s;if(B=12,e=new n(e,t),t=e.s,!o||!t)return new n(NaN);if(o!=t)return e.s=-t,i.minus(e);var u=i.e/x,s=e.e/x,c=i.c,l=e.c;if(!u||!s){if(!c||!l)return new n(o/0);if(!c[0]||!l[0])return l[0]?e:new n(c[0]?i:0*o)}if(u=f(u),s=f(s),c=c.slice(),o=u-s){for(o>0?(s=u,r=l):(o=-o,r=c),r.reverse();o--;r.push(0));r.reverse()}for(o=c.length,t=l.length,o-t<0&&(r=l,l=c,c=r,t=o),o=0;t;)o=(c[--t]=c[t]+l[t]+o)/O|0,c[t]=O===c[t]?0:c[t]%O;return o&&(c.unshift(o),++s),F(e,c,s)},L.precision=L.sd=function(e){var n,t,r=this,i=r.c;if(null!=e&&e!==!!e&&1!==e&&0!==e&&(z&&P(13,"argument"+v,e),e!=!!e&&(e=null)),!i)return null;if(t=i.length-1,n=t*x+1,t=i[t]){for(;t%10==0;t/=10,n--);for(t=i[0];t>=10;t/=10,n++);}return e&&r.e+1>n&&(n=r.e+1),n},L.round=function(e,t){var r=new n(this);return(null==e||V(e,0,I,15))&&T(r,~~e+this.e+1,null!=t&&V(t,0,8,15,N)?0|t:k),r},L.shift=function(e){var t=this;return V(e,-E,E,16,"argument")?t.times("1e"+d(e)):new n(t.c&&t.c[0]&&(e<-E||e>E)?t.s*(e<0?0:1/0):t)},L.squareRoot=L.sqrt=function(){var e,t,r,i,o,u=this,c=u.c,l=u.s,a=u.e,h=M+4,g=new n("0.5");if(1!==l||!c||!c[0])return new n(!l||l<0&&(!c||c[0])?NaN:c?u:1/0);if(l=Math.sqrt(+u),0==l||l==1/0?(t=s(c),(t.length+a)%2==0&&(t+="0"),l=Math.sqrt(t),a=f((a+1)/2)-(a<0||a%2),l==1/0?t="1e"+a:(t=l.toExponential(),t=t.slice(0,t.indexOf("e")+1)+a),r=new n(t)):r=new n(l+""),r.c[0])for(a=r.e,l=a+h,l<3&&(l=0);;)if(o=r,r=g.times(o.plus(D(u,o,h,1))),s(o.c).slice(0,l)===(t=s(r.c)).slice(0,l)){if(r.e<a&&--l,"9999"!=(t=t.slice(l-3,l+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(T(r,r.e+M+2,1),e=!r.times(r).eq(u));break}if(!i&&(T(o,o.e+M+2,0),o.times(o).eq(u))){r=o;break}h+=4,l+=4,i=1}return T(r,r.e+M+1,k,e)},L.times=L.mul=function(e,t){var r,i,o,u,s,c,l,a,h,g,p,d,m,b,y,w=this,v=w.c,N=(B=17,e=new n(e,t)).c;if(!(v&&N&&v[0]&&N[0]))return!w.s||!e.s||v&&!v[0]&&!N||N&&!N[0]&&!v?e.c=e.e=e.s=null:(e.s*=w.s,v&&N?(e.c=[0],e.e=0):e.c=e.e=null),e;for(i=f(w.e/x)+f(e.e/x),e.s*=w.s,l=v.length,g=N.length,l<g&&(m=v,v=N,N=m,o=l,l=g,g=o),o=l+g,m=[];o--;m.push(0));for(b=O,y=A,o=g;--o>=0;){for(r=0,p=N[o]%y,d=N[o]/y|0,s=l,u=o+s;u>o;)a=v[--s]%y,h=v[s]/y|0,c=d*a+h*p,a=p*a+c%y*y+m[u]+r,r=(a/b|0)+(c/y|0)+d*h,m[u--]=a%b;m[u]=r}return r?++i:m.shift(),F(e,m,i)},L.toDigits=function(e,t){var r=new n(this);return e=null!=e&&V(e,1,I,18,"precision")?0|e:null,t=null!=t&&V(t,0,8,18,N)?0|t:k,e?T(r,e,t):r},L.toExponential=function(e,n){return r(this,null!=e&&V(e,0,I,19)?1+~~e:null,n,19)},L.toFixed=function(e,n){return r(this,null!=e&&V(e,0,I,20)?~~e+this.e+1:null,n,20)},L.toFormat=function(e,n){var t=r(this,null!=e&&V(e,0,I,21)?~~e+this.e+1:null,n,21);if(this.c){var i,o=t.split("."),u=+X.groupSize,f=+X.secondaryGroupSize,s=X.groupSeparator,c=o[0],l=o[1],a=this.s<0,h=a?c.slice(1):c,g=h.length;if(f&&(i=u,u=f,f=i,g-=i),u>0&&g>0){for(i=g%u||u,c=h.substr(0,i);i<g;i+=u)c+=s+h.substr(i,u);f>0&&(c+=s+h.slice(i)),a&&(c="-"+c)}t=l?c+X.decimalSeparator+((f=+X.fractionGroupSize)?l.replace(new RegExp("\\d{"+f+"}\\B","g"),"$&"+X.fractionGroupSeparator):l):c}return t},L.toFraction=function(e){var t,r,i,o,u,f,c,l,a,h=z,g=this,p=g.c,d=new n(U),m=r=new n(U),b=c=new n(U);if(null!=e&&(z=!1,f=new n(e),z=h,(h=f.isInt())&&!f.lt(U)||(z&&P(22,"max denominator "+(h?"out of range":"not an integer"),e),e=!h&&f.c&&T(f,f.e+1,1).gte(U)?f:null)),!p)return g.toString();for(a=s(p),o=d.e=a.length-g.e-1,d.c[0]=R[(u=o%x)<0?x+u:u],e=!e||f.cmp(d)>0?o>0?d:m:f,u=G,G=1/0,f=new n(a),c.c[0]=0;l=D(f,d,0,1),i=r.plus(l.times(b)),1!=i.cmp(e);)r=b,b=i,m=c.plus(l.times(i=m)),c=i,d=f.minus(l.times(i=d)),f=i;return i=D(e.minus(r),b,0,1),c=c.plus(i.times(m)),r=r.plus(i.times(b)),c.s=m.s=g.s,o*=2,t=D(m,b,o,k).minus(g).abs().cmp(D(c,r,o,k).minus(g).abs())<1?[m.toString(),b.toString()]:[c.toString(),r.toString()],G=u,t},L.toNumber=function(){return+this},L.toPower=L.pow=function(e,t){var r,i,o,u=w(e<0?-e:+e),f=this;if(null!=t&&(B=23,t=new n(t)),!V(e,-E,E,23,"exponent")&&(!isFinite(e)||u>E&&(e/=0)||parseFloat(e)!=e&&!(e=NaN))||0==e)return r=Math.pow(+f,e),new n(t?r%t:r);for(t?e>1&&f.gt(U)&&f.isInt()&&t.gt(U)&&t.isInt()?f=f.mod(t):(o=t,t=null):J&&(r=y(J/x+2)),i=new n(U);;){if(u%2){if(i=i.times(f),!i.c)break;r?i.c.length>r&&(i.c.length=r):t&&(i=i.mod(t))}if(!(u=w(u/2)))break;f=f.times(f),r?f.c&&f.c.length>r&&(f.c.length=r):t&&(f=f.mod(t))}return t?i:(e<0&&(i=U.div(i)),o?i.mod(o):r?T(i,J,k):i)},L.toPrecision=function(e,n){return r(this,null!=e&&V(e,1,I,24,"precision")?0|e:null,n,24)},L.toString=function(e){var n,r=this,i=r.s,o=r.e;return null===o?i?(n="Infinity",i<0&&(n="-"+n)):n="NaN":(n=s(r.c),n=null!=e&&V(e,2,64,25,"base")?t(p(n,o),0|e,10,i):o<=C||o>=j?g(n,o):p(n,o),i<0&&r.c[0]&&(n="-"+n)),n},L.truncated=L.trunc=function(){return T(new n(this),this.e+1,1)},L.valueOf=L.toJSON=function(){var e,n=this,t=n.e;return null===t?n.toString():(e=s(n.c),e=t<=C||t>=j?g(e,t):p(e,t),n.s<0?"-"+e:e)},L.isBigNumber=!0,null!=e&&n.config(e),n}function f(e){var n=0|e;return e>0||e===n?n:n-1}function s(e){for(var n,t,r=1,i=e.length,o=e[0]+"";r<i;){for(n=e[r++]+"",t=x-n.length;t--;n="0"+n);o+=n}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function c(e,n){var t,r,i=e.c,o=n.c,u=e.s,f=n.s,s=e.e,c=n.e;if(!u||!f)return null;if(t=i&&!i[0],r=o&&!o[0],t||r)return t?r?0:-f:u;if(u!=f)return u;if(t=u<0,r=s==c,!i||!o)return r?0:!i^t?1:-1;if(!r)return s>c^t?1:-1;for(f=(s=i.length)<(c=o.length)?s:c,u=0;u<f;u++)if(i[u]!=o[u])return i[u]>o[u]^t?1:-1;return s==c?0:s>c^t?1:-1}function l(e,n,t){return(e=d(e))>=n&&e<=t}function a(e){return"[object Array]"==Object.prototype.toString.call(e)}function h(e,n,t){for(var r,i,o=[0],u=0,f=e.length;u<f;){for(i=o.length;i--;o[i]*=n);for(o[r=0]+=_.indexOf(e.charAt(u++));r<o.length;r++)o[r]>t-1&&(null==o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/t|0,o[r]%=t)}return o.reverse()}function g(e,n){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(n<0?"e":"e+")+n}function p(e,n){var t,r;if(n<0){for(r="0.";++n;r+="0");e=r+e}else if(t=e.length,++n>t){for(r="0",n-=t;--n;r+="0");e+=r}else n<t&&(e=e.slice(0,n)+"."+e.slice(n));return e}function d(e){return e=parseFloat(e),e<0?y(e):w(e)}var m,b=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,y=Math.ceil,w=Math.floor,v=" not a boolean or binary digit",N="rounding mode",S="number type has more than 15 significant digits",_="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",O=1e14,x=14,E=9007199254740991,R=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],A=1e7,I=1e9;m=u(),m['default']=m.BigNumber=m,void 0!==(r=function(){return m}.call(n,t,n,e))&&(e.exports=r)}()},function(e,n,t){"use strict";!function(){"function"!=typeof Promise.prototype.finally&&(Promise.prototype.finally=function(e){return this.then(function(n){return this.constructor.resolve(e()).then(function(){return n})})['catch'](function(n){return this.constructor.resolve(e()).then(function(){throw n})})})}()},function(e,n,t){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return void 0===e?"undefined":r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":r(e)},o=t(0);n.bigint=function(e){return n.bigint_check(e)?"string"==typeof e?e.length>=15?new o(e):Number(e):e:Number.NaN},n.bigint_check=function(e){if(Number.isInteger(e))return!0;if(!e)return!1;var n=void 0===e?"undefined":i(e);if("string"===n){if(e.length>22||e.length<1)return!1;for(var t=1;t<e.length;t++)if(e[t]<"0"||e[t]>"9")return!1;if(1==e.length)return!(e[0]<"0"||e[0]>"9");if("-"==e[0]){if(e.length<2||e[1]<"1"||e[1]>"9")return!1}else if(e[0]<"1"||e[0]>"9")return!1;return!0}return"object"===n&&!!e.isBigNumber},n.bigint_add=function(e,n){return e instanceof o||(e=new o(e)),e.plus(n)},n.bigint_minus=function(e,n){return e instanceof o||(e=new o(e)),e.minus(n)},n.bigint_dividedBy=function(e,n){return e instanceof o||(e=new o(e)),e.dividedBy(n)},n.bigint_mul=function(e,n){return e instanceof o||(e=new o(e)),e.times(n)},n.bigint_equal=function(e,n){return e instanceof o||(e=new o(e)),e.equals(n)},n.bigint_more_than=function(e,n){return e instanceof o||(e=new o(e)),e.greaterThan(n)},n.bigint_more_than_e=function(e,n){return e instanceof o||(e=new o(e)),e.greaterThanOrEqualTo(n)},n.bigint_less_than=function(e,n){return e instanceof o||(e=new o(e)),e.lessThan(n)},n.bigint_less_than_e=function(e,n){return e instanceof o||(e=new o(e)),e.lessThanOrEqualTo(n)},n.bigint_mod=function(e,n){return Number.isInteger(e)?Number.isInteger(n)?e%n:new o(e).mod(n):(e instanceof o||(e=new o(e)),e.mod(n))},n.bigint_toFixed=function(e,n){return n=n||0,e instanceof o||(e=new o(e)),e.toFixed(n)}},function(e,n,t){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{"enumerable":!0,"get":function(){return e.l}}),Object.defineProperty(e,"id",{"enumerable":!0,"get":function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,n,t){"use strict";(function(e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t(1),function(t,r){"object"===n(e)&&"object"===n(e.exports)?e.exports=t.document?r(t,!0):function(e){if(!e.document)throw new Error("febs requires a window with a document");return r(e)}:r(t)}("undefined"!=typeof window?window:void 0,function(e,n){var r={};if(r.__debug=e.__debug,r.utils=t(2),r.BigNumber=t(0),e.febs)if(e.febs.utils)for(var i in r.utils)e.febs.utils[i]=r.utils[i];else e.febs.utils=r.utils;else e.febs=r;return r})}).call(n,t(3)(e))}]); |
{ | ||
"description": "febs is a useful utilities set in browser", | ||
"dependencies": { | ||
"bignumber.js": "^9.0.0", | ||
"bignumber.js": "^4.0.1", | ||
"md5": "^2.2.1", | ||
@@ -81,3 +81,3 @@ "sha1": "^1.1.1" | ||
"name": "febs-browser", | ||
"version": "0.8.93" | ||
"version": "0.8.94" | ||
} |
@@ -5,3 +5,3 @@ { | ||
"assert": "^1.3.0", | ||
"bignumber.js": "^9.0.0", | ||
"bignumber.js": "^4.0.1", | ||
"co-busboy": "^1.4.0", | ||
@@ -67,3 +67,3 @@ "md5": "^2.2.1", | ||
"name": "febs", | ||
"version": "0.8.94" | ||
"version": "0.8.95" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3571222
39964
+ Addedbignumber.js@4.1.0(transitive)
- Removedbignumber.js@9.1.2(transitive)
Updatedbignumber.js@^4.0.1