Build 589089stable
Module 162929
32,129 characters · in 29609.b896f2d9d6398168.jsDependencies
Source Raw
function(e,t,n){"use strict";n.d(t,{W:()=>ez});var r,o,i="0123456789abcdef",a="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",u="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",s={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-9e15,maxE:9e15,crypto:!1},l=!0,c="[DecimalError] ",f=c+"Invalid argument: ",d=c+"Precision limit exceeded",h=c+"crypto unavailable",p="[object Decimal]",m=Math.floor,v=Math.pow,y=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,g=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,b=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,w=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,_=a.length-1,D=u.length-1,k={toStringTag:p};function E(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)(n=7-(r=e[t]+"").length)&&(i+=R(n)),i+=r;(n=7-(r=(a=e[t])+"").length)&&(i+=R(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}function x(e,t,n){if(e!==~~e||e<t||e>n)throw Error(f+e)}function C(e,t,n,r){var o,i,a,u;for(i=e[0];i>=10;i/=10)--t;return--t<0?(t+=7,o=0):(o=Math.ceil((t+1)/7),t%=7),i=v(10,7-t),u=e[o]%i|0,null==r?t<3?(0==t?u=u/100|0:1==t&&(u=u/10|0),a=n<4&&99999==u||n>3&&49999==u||5e4==u||0==u):a=(n<4&&u+1==i||n>3&&u+1==i/2)&&(e[o+1]/i/100|0)==v(10,t-2)-1||(u==i/2||0==u)&&(e[o+1]/i/100|0)==0:t<4?(0==t?u=u/1e3|0:1==t?u=u/100|0:2==t&&(u=u/10|0),a=(r||n<4)&&9999==u||!r&&n>3&&4999==u):a=((r||n<4)&&u+1==i||!r&&n>3&&u+1==i/2)&&(e[o+1]/i/1e3|0)==v(10,t-3)-1,a}function S(e,t,n){for(var r,o,a=[0],u=0,s=e.length;u<s;){for(o=a.length;o--;)a[o]*=t;for(a[0]+=i.indexOf(e.charAt(u++)),r=0;r<a.length;r++)a[r]>n-1&&(void 0===a[r+1]&&(a[r+1]=0),a[r+1]+=a[r]/n|0,a[r]%=n)}return a.reverse()}k.absoluteValue=k.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),O(e)},k.ceil=function(){return O(new this.constructor(this),this.e+1,2)},k.clampedTo=k.clamp=function(e,t){var n=this.constructor;if(e=new n(e),t=new n(t),!e.s||!t.s)return new n(NaN);if(e.gt(t))throw Error(f+t);return 0>this.cmp(e)?e:this.cmp(t)>0?t:new n(this)},k.comparedTo=k.cmp=function(e){var t,n,r,o,i=this.d,a=(e=new this.constructor(e)).d,u=this.s,s=e.s;if(!i||!a)return u&&s?u!==s?u:i===a?0:!i^u<0?1:-1:NaN;if(!i[0]||!a[0])return i[0]?u:a[0]?-s:0;if(u!==s)return u;if(this.e!==e.e)return this.e>e.e^u<0?1:-1;for(t=0,n=(r=i.length)<(o=a.length)?r:o;t<n;++t)if(i[t]!==a[t])return i[t]>a[t]^u<0?1:-1;return r===o?0:r>o^u<0?1:-1},k.cosine=k.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r,o;if(t.isZero())return t;(r=t.d.length)<32?o=(1/W(4,n=Math.ceil(r/3))).toString():(n=16,o="2.3283064365386962890625e-10"),e.precision+=n,t=$(e,1,t.times(o),new e(1));for(var i=n;i--;){var a=t.times(t);t=a.times(a).minus(a).times(8).plus(1)}return e.precision-=n,t}(r,Z(r,n)),r.precision=e,r.rounding=t,O(2==o||3==o?n.neg():n,e,t,!0)):new r(1):new r(NaN)},k.cubeRoot=k.cbrt=function(){var e,t,n,r,o,i,a,u,s,c,f=this.constructor;if(!this.isFinite()||this.isZero())return new f(this);for(l=!1,(i=this.s*v(this.s*this,1/3))&&Math.abs(i)!=1/0?r=new f(i.toString()):(n=E(this.d),(i=((e=this.e)-n.length+1)%3)&&(n+=1==i||-2==i?"0":"00"),i=v(n,1/3),e=m((e+1)/3)-(e%3==(e<0?-1:2)),(r=new f(n=i==1/0?"5e"+e:(n=i.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=this.s),a=(e=f.precision)+3;;)if(r=A((c=(s=(u=r).times(u).times(u)).plus(this)).plus(this).times(u),c.plus(s),a+2,1),E(u.d).slice(0,a)===(n=E(r.d)).slice(0,a)){if("9999"!=(n=n.slice(a-3,a+1))&&(o||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(O(r,e+1,1),t=!r.times(r).times(r).eq(this));break}if(!o&&(O(u,e+1,0),u.times(u).times(u).eq(this))){r=u;break}a+=4,o=1}return l=!0,O(r,e,f.rounding,t)},k.decimalPlaces=k.dp=function(){var e,t=this.d,n=NaN;if(t){if(n=((e=t.length-1)-m(this.e/7))*7,e=t[e])for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},k.dividedBy=k.div=function(e){return A(this,new this.constructor(e))},k.dividedToIntegerBy=k.divToInt=function(e){var t=this.constructor;return O(A(this,new t(e),0,1,1),t.precision,t.rounding)},k.equals=k.eq=function(e){return 0===this.cmp(e)},k.floor=function(){return O(new this.constructor(this),this.e+1,3)},k.greaterThan=k.gt=function(e){return this.cmp(e)>0},k.greaterThanOrEqualTo=k.gte=function(e){var t=this.cmp(e);return 1==t||0===t},k.hyperbolicCosine=k.cosh=function(){var e,t,n,r,o,i=this,a=i.constructor,u=new a(1);if(!i.isFinite())return new a(i.s?1/0:NaN);if(i.isZero())return u;n=a.precision,r=a.rounding,a.precision=n+Math.max(i.e,i.sd())+4,a.rounding=1,(o=i.d.length)<32?t=(1/W(4,e=Math.ceil(o/3))).toString():(e=16,t="2.3283064365386962890625e-10"),i=$(a,1,i.times(t),new a(1),!0);for(var s,l=e,c=new a(8);l--;)s=i.times(i),i=u.minus(s.times(c.minus(s.times(c))));return O(i,a.precision=n,a.rounding=r,!0)},k.hyperbolicSine=k.sinh=function(){var e,t,n,r,o=this,i=o.constructor;if(!o.isFinite()||o.isZero())return new i(o);if(t=i.precision,n=i.rounding,i.precision=t+Math.max(o.e,o.sd())+4,i.rounding=1,(r=o.d.length)<3)o=$(i,2,o,o,!0);else{e=(e=1.4*Math.sqrt(r))>16?16:0|e,o=$(i,2,o=o.times(1/W(5,e)),o,!0);for(var a,u=new i(5),s=new i(16),l=new i(20);e--;)a=o.times(o),o=o.times(u.plus(a.times(s.times(a).plus(l))))}return i.precision=t,i.rounding=n,O(o,t,n,!0)},k.hyperbolicTangent=k.tanh=function(){var e,t,n=this.constructor;return this.isFinite()?this.isZero()?new n(this):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,A(this.sinh(),this.cosh(),n.precision=e,n.rounding=t)):new n(this.s)},k.inverseCosine=k.acos=function(){var e=this,t=e.constructor,n=e.abs().cmp(1),r=t.precision,o=t.rounding;return -1!==n?0===n?e.isNeg()?P(t,r,o):new t(0):new t(NaN):e.isZero()?P(t,r+4,o).times(.5):(t.precision=r+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=r,t.rounding=o,e.times(2))},k.inverseHyperbolicCosine=k.acosh=function(){var e,t,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,t=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,l=!1,n=n.times(n).minus(1).sqrt().plus(n),l=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)},k.inverseHyperbolicSine=k.asinh=function(){var e,t,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,l=!1,n=n.times(n).plus(1).sqrt().plus(n),l=!0,r.precision=e,r.rounding=t,n.ln())},k.inverseHyperbolicTangent=k.atanh=function(){var e,t,n,r,o=this,i=o.constructor;return o.isFinite()?o.e>=0?new i(o.abs().eq(1)?o.s/0:o.isZero()?o:NaN):(e=i.precision,t=i.rounding,Math.max(r=o.sd(),e)<-(2*o.e)-1)?O(new i(o),e,t,!0):(i.precision=n=r-o.e,o=A(o.plus(1),new i(1).minus(o),n+e,1),i.precision=e+4,i.rounding=1,o=o.ln(),i.precision=e,i.rounding=t,o.times(.5)):new i(NaN)},k.inverseSine=k.asin=function(){var e,t,n,r,o=this,i=o.constructor;return o.isZero()?new i(o):(t=o.abs().cmp(1),n=i.precision,r=i.rounding,-1!==t)?0===t?((e=P(i,n+4,r).times(.5)).s=o.s,e):new i(NaN):(i.precision=n+6,i.rounding=1,o=o.div(new i(1).minus(o.times(o)).sqrt().plus(1)).atan(),i.precision=n,i.rounding=r,o.times(2))},k.inverseTangent=k.atan=function(){var e,t,n,r,o,i,a,u,s,c=this,f=c.constructor,d=f.precision,h=f.rounding;if(c.isFinite()){if(c.isZero())return new f(c);else if(c.abs().eq(1)&&d+4<=D)return(a=P(f,d+4,h).times(.25)).s=c.s,a}else{if(!c.s)return new f(NaN);if(d+4<=D)return(a=P(f,d+4,h).times(.5)).s=c.s,a}for(f.precision=u=d+10,f.rounding=1,e=n=Math.min(28,u/7+2|0);e;--e)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(l=!1,t=Math.ceil(u/7),r=1,s=c.times(c),a=new f(c),o=c;-1!==e;)if(o=o.times(s),i=a.minus(o.div(r+=2)),o=o.times(s),void 0!==(a=i.plus(o.div(r+=2))).d[t])for(e=t;a.d[e]===i.d[e]&&e--;);return n&&(a=a.times(2<<n-1)),l=!0,O(a,f.precision=d,f.rounding=h,!0)},k.isFinite=function(){return!!this.d},k.isInteger=k.isInt=function(){return!!this.d&&m(this.e/7)>this.d.length-2},k.isNaN=function(){return!this.s},k.isNegative=k.isNeg=function(){return this.s<0},k.isPositive=k.isPos=function(){return this.s>0},k.isZero=function(){return!!this.d&&0===this.d[0]},k.lessThan=k.lt=function(e){return 0>this.cmp(e)},k.lessThanOrEqualTo=k.lte=function(e){return 1>this.cmp(e)},k.logarithm=k.log=function(e){var t,n,r,o,i,a,u,s=this.constructor,c=s.precision,f=s.rounding;if(null==e)e=new s(10),t=!0;else{if(n=(e=new s(e)).d,e.s<0||!n||!n[0]||e.eq(1))return new s(NaN);t=e.eq(10)}if(n=this.d,this.s<0||!n||!n[0]||this.eq(1))return new s(n&&!n[0]?-1/0:1!=this.s?NaN:n?0:1/0);if(t)if(n.length>1)o=!0;else{for(r=n[0];r%10==0;)r/=10;o=1!==r}if(l=!1,C((u=A(i=I(this,a=c+5),t?F(s,a+10):I(e,a),a,1)).d,r=c,f))do if(a+=10,u=A(i=I(this,a),t?F(s,a+10):I(e,a),a,1),!o){+E(u.d).slice(r+1,r+15)+1==1e14&&(u=O(u,c+1,0));break}while(C(u.d,r+=10,f));return l=!0,O(u,c,f)},k.minus=k.sub=function(e){var t,n,r,o,i,a,u,s,c,f,d,h,p=this.constructor;if(e=new p(e),!this.d||!e.d)return this.s&&e.s?this.d?e.s=-e.s:e=new p(e.d||this.s!==e.s?this:NaN):e=new p(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.plus(e);if(c=this.d,h=e.d,u=p.precision,s=p.rounding,!c[0]||!h[0]){if(h[0])e.s=-e.s;else{if(!c[0])return new p(3===s?-0:0);e=new p(this)}return l?O(e,u,s):e}if(n=m(e.e/7),f=m(this.e/7),c=c.slice(),i=f-n){for((d=i<0)?(t=c,i=-i,a=h.length):(t=h,n=f,a=c.length),i>(r=Math.max(Math.ceil(u/7),a)+2)&&(i=r,t.length=1),t.reverse(),r=i;r--;)t.push(0);t.reverse()}else{for((d=(r=c.length)<(a=h.length))&&(a=r),r=0;r<a;r++)if(c[r]!=h[r]){d=c[r]<h[r];break}i=0}for(d&&(t=c,c=h,h=t,e.s=-e.s),a=c.length,r=h.length-a;r>0;--r)c[a++]=0;for(r=h.length;r>i;){if(c[--r]<h[r]){for(o=r;o&&0===c[--o];)c[o]=1e7-1;--c[o],c[r]+=1e7}c[r]-=h[r]}for(;0===c[--a];)c.pop();for(;0===c[0];c.shift())--n;return c[0]?(e.d=c,e.e=T(c,n),l?O(e,u,s):e):new p(3===s?-0:0)},k.modulo=k.mod=function(e){var t,n=this.constructor;return(e=new n(e),this.d&&e.s&&(!e.d||e.d[0]))?e.d&&(!this.d||this.d[0])?(l=!1,9==n.modulo?(t=A(this,e.abs(),0,3,1),t.s*=e.s):t=A(this,e,0,n.modulo,1),t=t.times(e),l=!0,this.minus(t)):O(new n(this),n.precision,n.rounding):new n(NaN)},k.naturalExponential=k.exp=function(){return L(this)},k.naturalLogarithm=k.ln=function(){return I(this)},k.negated=k.neg=function(){var e=new this.constructor(this);return e.s=-e.s,O(e)},k.plus=k.add=function(e){var t,n,r,o,i,a,u,s,c,f,d=this.constructor;if(e=new d(e),!this.d||!e.d)return this.s&&e.s?this.d||(e=new d(e.d||this.s===e.s?this:NaN)):e=new d(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.minus(e);if(c=this.d,f=e.d,u=d.precision,s=d.rounding,!c[0]||!f[0])return f[0]||(e=new d(this)),l?O(e,u,s):e;if(i=m(this.e/7),r=m(e.e/7),c=c.slice(),o=i-r){for(o<0?(n=c,o=-o,a=f.length):(n=f,r=i,a=c.length),o>(a=(i=Math.ceil(u/7))>a?i+1:a+1)&&(o=a,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((a=c.length)-(o=f.length)<0&&(o=a,n=f,f=c,c=n),t=0;o;)t=(c[--o]=c[o]+f[o]+t)/1e7|0,c[o]%=1e7;for(t&&(c.unshift(t),++r),a=c.length;0==c[--a];)c.pop();return e.d=c,e.e=T(c,r),l?O(e,u,s):e},k.precision=k.sd=function(e){var t;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(f+e);return this.d?(t=z(this.d),e&&this.e+1>t&&(t=this.e+1)):t=NaN,t},k.round=function(){var e=this.constructor;return O(new e(this),this.e+1,e.rounding)},k.sine=k.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:$(e,2,t,t);n=(n=1.4*Math.sqrt(r))>16?16:0|n,t=$(e,2,t=t.times(1/W(5,n)),t);for(var o,i=new e(5),a=new e(16),u=new e(20);n--;)o=t.times(t),t=t.times(i.plus(o.times(a.times(o).minus(u))));return t}(r,Z(r,n)),r.precision=e,r.rounding=t,O(o>2?n.neg():n,e,t,!0)):new r(NaN)},k.squareRoot=k.sqrt=function(){var e,t,n,r,o,i,a=this.d,u=this.e,s=this.s,c=this.constructor;if(1!==s||!a||!a[0])return new c(!s||s<0&&(!a||a[0])?NaN:a?this:1/0);for(l=!1,0==(s=Math.sqrt(+this))||s==1/0?(((t=E(a)).length+u)%2==0&&(t+="0"),s=Math.sqrt(t),u=m((u+1)/2)-(u<0||u%2),r=new c(t=s==1/0?"5e"+u:(t=s.toExponential()).slice(0,t.indexOf("e")+1)+u)):r=new c(s.toString()),n=(u=c.precision)+3;;)if(r=(i=r).plus(A(this,i,n+2,1)).times(.5),E(i.d).slice(0,n)===(t=E(r.d)).slice(0,n)){if("9999"!=(t=t.slice(n-3,n+1))&&(o||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(O(r,u+1,1),e=!r.times(r).eq(this));break}if(!o&&(O(i,u+1,0),i.times(i).eq(this))){r=i;break}n+=4,o=1}return l=!0,O(r,u,c.rounding,e)},k.tangent=k.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,(n=n.sin()).s=1,n=A(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,O(2==o||4==o?n.neg():n,e,t,!0)):new r(NaN)},k.times=k.mul=function(e){var t,n,r,o,i,a,u,s,c,f=this.constructor,d=this.d,h=(e=new f(e)).d;if(e.s*=this.s,!d||!d[0]||!h||!h[0])return new f(!e.s||d&&!d[0]&&!h||h&&!h[0]&&!d?NaN:!d||!h?e.s/0:0*e.s);for(n=m(this.e/7)+m(e.e/7),(s=d.length)<(c=h.length)&&(i=d,d=h,h=i,a=s,s=c,c=a),i=[],r=a=s+c;r--;)i.push(0);for(r=c;--r>=0;){for(t=0,o=s+r;o>r;)u=i[o]+h[r]*d[o-r-1]+t,i[o--]=u%1e7|0,t=u/1e7|0;i[o]=(i[o]+t)%1e7|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=T(i,n),l?O(e,f.precision,f.rounding):e},k.toBinary=function(e,t){return H(this,2,e,t)},k.toDecimalPlaces=k.toDP=function(e,t){var n=this,r=n.constructor;return(n=new r(n),void 0===e)?n:(x(e,0,1e9),void 0===t?t=r.rounding:x(t,0,8),O(n,e+n.e+1,t))},k.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=B(r,!0):(x(e,0,1e9),void 0===t?t=o.rounding:x(t,0,8),n=B(r=O(new o(r),e+1,t),!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},k.toFixed=function(e,t){var n,r,o=this.constructor;return void 0===e?n=B(this):(x(e,0,1e9),void 0===t?t=o.rounding:x(t,0,8),n=B(r=O(new o(this),e+this.e+1,t),!1,e+r.e+1)),this.isNeg()&&!this.isZero()?"-"+n:n},k.toFraction=function(e){var t,n,r,o,i,a,u,s,c,d,h,p,m=this.d,y=this.constructor;if(!m)return new y(this);if(c=n=new y(1),r=s=new y(0),a=(i=(t=new y(r)).e=z(m)-this.e-1)%7,t.d[0]=v(10,a<0?7+a:a),null==e)e=i>0?t:c;else{if(!(u=new y(e)).isInt()||u.lt(c))throw Error(f+u);e=u.gt(t)?i>0?t:c:u}for(l=!1,u=new y(E(m)),d=y.precision,y.precision=i=7*m.length*2;h=A(u,t,0,1,1),1!=(o=n.plus(h.times(r))).cmp(e);)n=r,r=o,o=c,c=s.plus(h.times(o)),s=o,o=t,t=u.minus(h.times(o)),u=o;return o=A(e.minus(n),r,0,1,1),s=s.plus(o.times(c)),n=n.plus(o.times(r)),s.s=c.s=this.s,p=1>A(c,r,i,1).minus(this).abs().cmp(A(s,n,i,1).minus(this).abs())?[c,r]:[s,n],y.precision=d,l=!0,p},k.toHexadecimal=k.toHex=function(e,t){return H(this,16,e,t)},k.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),null==e){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),void 0===t?t=r.rounding:x(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(l=!1,n=A(n,e,0,t,1).times(e),l=!0,O(n)):(e.s=n.s,n=e),n},k.toNumber=function(){return+this},k.toOctal=function(e,t){return H(this,8,e,t)},k.toPower=k.pow=function(e){var t,n,r,o,i,a,u=this,s=u.constructor,c=+(e=new s(e));if(!u.d||!e.d||!u.d[0]||!e.d[0])return new s(v(+u,c));if((u=new s(u)).eq(1))return u;if(r=s.precision,i=s.rounding,e.eq(1))return O(u,r,i);if((t=m(e.e/7))>=e.d.length-1&&(n=c<0?-c:c)<=0x1fffffffffffff)return o=M(s,u,n,r),e.s<0?new s(1).div(o):O(o,r,i);if((a=u.s)<0){if(t<e.d.length-1)return new s(NaN);if((1&e.d[t])==0&&(a=1),0==u.e&&1==u.d[0]&&1==u.d.length)return u.s=a,u}return(t=0!=(n=v(+u,c))&&isFinite(n)?new s(n+"").e:m(c*(Math.log("0."+E(u.d))/Math.LN10+u.e+1)))>s.maxE+1||t<s.minE-1?new s(t>0?a/0:0):(l=!1,s.rounding=u.s=1,n=Math.min(12,(t+"").length),(o=L(e.times(I(u,r+n)),r)).d&&C((o=O(o,r+5,1)).d,r,i)&&(t=r+10,+E((o=O(L(e.times(I(u,t+n)),t),t+5,1)).d).slice(r+1,r+15)+1==1e14&&(o=O(o,r+1,0))),o.s=a,l=!0,s.rounding=i,O(o,r,i))},k.toPrecision=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=B(r,r.e<=o.toExpNeg||r.e>=o.toExpPos):(x(e,1,1e9),void 0===t?t=o.rounding:x(t,0,8),n=B(r=O(new o(r),e,t),e<=r.e||r.e<=o.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n},k.toSignificantDigits=k.toSD=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(x(e,1,1e9),void 0===t?t=n.rounding:x(t,0,8)),O(new n(this),e,t)},k.toString=function(){var e=this.constructor,t=B(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()&&!this.isZero()?"-"+t:t},k.truncated=k.trunc=function(){return O(new this.constructor(this),this.e+1,1)},k.valueOf=k.toJSON=function(){var e=this.constructor,t=B(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()?"-"+t:t};var A=function(){function e(e,t,n){var r,o=0,i=e.length;for(e=e.slice();i--;)r=e[i]*t+o,e[i]=r%n|0,o=r/n|0;return o&&e.unshift(o),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n,r){for(var o=0;n--;)e[n]-=o,o=+(e[n]<t[n]),e[n]=o*r+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(o,i,a,u,s,l){var c,f,d,h,p,v,y,g,b,w,_,D,k,E,x,C,S,A,B,T,F=o.constructor,P=o.s==i.s?1:-1,z=o.d,R=i.d;if(!z||!z[0]||!R||!R[0])return new F(!o.s||!i.s||(z?R&&z[0]==R[0]:!R)?NaN:z&&0==z[0]||!R?0*P:P/0);for(l?(p=1,f=o.e-i.e):(l=1e7,p=7,f=m(o.e/p)-m(i.e/p)),B=R.length,S=z.length,w=(b=new F(P)).d=[],d=0;R[d]==(z[d]||0);d++);if(R[d]>(z[d]||0)&&f--,null==a?(E=a=F.precision,u=F.rounding):E=s?a+(o.e-i.e)+1:a,E<0)w.push(1),v=!0;else{if(E=E/p+2|0,d=0,1==B){for(h=0,R=R[0],E++;(d<S||h)&&E--;d++)x=h*l+(z[d]||0),w[d]=x/R|0,h=x%R|0;v=h||d<S}else{for((h=l/(R[0]+1)|0)>1&&(R=e(R,h,l),z=e(z,h,l),B=R.length,S=z.length),C=B,D=(_=z.slice(0,B)).length;D<B;)_[D++]=0;(T=R.slice()).unshift(0),A=R[0],R[1]>=l/2&&++A;do h=0,(c=t(R,_,B,D))<0?(k=_[0],B!=D&&(k=k*l+(_[1]||0)),(h=k/A|0)>1?(h>=l&&(h=l-1),g=(y=e(R,h,l)).length,D=_.length,1==(c=t(y,_,g,D))&&(h--,n(y,B<g?T:R,g,l))):(0==h&&(c=h=1),y=R.slice()),(g=y.length)<D&&y.unshift(0),n(_,y,D,l),-1==c&&(D=_.length,(c=t(R,_,B,D))<1&&(h++,n(_,B<D?T:R,D,l))),D=_.length):0===c&&(h++,_=[0]),w[d++]=h,c&&_[0]?_[D++]=z[C]||0:(_=[z[C]],D=1);while((C++<S||void 0!==_[0])&&E--);v=void 0!==_[0]}w[0]||w.shift()}if(1==p)b.e=f,r=v;else{for(d=1,h=w[0];h>=10;h/=10)d++;b.e=d+f*p-1,O(b,s?a+b.e+1:a,u,v)}return b}}();function O(e,t,n,r){var o,i,a,u,s,c,f,d,h,p=e.constructor;i:if(null!=t){if(!(d=e.d))return e;for(o=1,u=d[0];u>=10;u/=10)o++;if((i=t-o)<0)i+=7,a=t,s=(f=d[h=0])/v(10,o-a-1)%10|0;else if((h=Math.ceil((i+1)/7))>=(u=d.length))if(r){for(;u++<=h;)d.push(0);f=s=0,o=1,i%=7,a=i-7+1}else break i;else{for(o=1,f=u=d[h];u>=10;u/=10)o++;i%=7,s=(a=i-7+o)<0?0:f/v(10,o-a-1)%10|0}if(r=r||t<0||void 0!==d[h+1]||(a<0?f:f%v(10,o-a-1)),c=n<4?(s||r)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||r||6==n&&(i>0?a>0?f/v(10,o-a):0:d[h-1])%10&1||n==(e.s<0?8:7)),t<1||!d[0])return d.length=0,c?(t-=e.e+1,d[0]=v(10,(7-t%7)%7),e.e=-t||0):d[0]=e.e=0,e;if(0==i?(d.length=h,u=1,h--):(d.length=h+1,u=v(10,7-i),d[h]=a>0?(f/v(10,o-a)%v(10,a)|0)*u:0),c)for(;;)if(0==h){for(i=1,a=d[0];a>=10;a/=10)i++;for(a=d[0]+=u,u=1;a>=10;a/=10)u++;i!=u&&(e.e++,1e7==d[0]&&(d[0]=1));break}else{if(d[h]+=u,1e7!=d[h])break;d[h--]=0,u=1}for(i=d.length;0===d[--i];)d.pop()}return l&&(e.e>p.maxE?(e.d=null,e.e=NaN):e.e<p.minE&&(e.e=0,e.d=[0])),e}function B(e,t,n){if(!e.isFinite())return U(e);var r,o=e.e,i=E(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+R(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(e.e<0?"e":"e+")+e.e):o<0?(i="0."+R(-o-1)+i,n&&(r=n-a)>0&&(i+=R(r))):o>=a?(i+=R(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+R(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=R(r))),i}function T(e,t){var n=e[0];for(t*=7;n>=10;n/=10)t++;return t}function F(e,t,n){if(t>_)throw l=!0,n&&(e.precision=n),Error(d);return O(new e(a),t,1,!0)}function P(e,t,n){if(t>D)throw Error(d);return O(new e(u),t,n,!0)}function z(e){var t=e.length-1,n=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function R(e){for(var t="";e--;)t+="0";return t}function M(e,t,n,r){var o,i=new e(1),a=Math.ceil(r/7+4);for(l=!1;;){if(n%2&&q((i=i.times(t)).d,a)&&(o=!0),0===(n=m(n/2))){n=i.d.length-1,o&&0===i.d[n]&&++i.d[n];break}q((t=t.times(t)).d,a)}return l=!0,i}function N(e){return 1&e.d[e.d.length-1]}function j(e,t,n){for(var r,o,i=new e(t[0]),a=0;++a<t.length;){if(!(o=new e(t[a])).s){i=o;break}((r=i.cmp(o))===n||0===r&&i.s===n)&&(i=o)}return i}function L(e,t){var n,r,o,i,a,u,s,c=0,f=0,d=0,h=e.constructor,p=h.rounding,m=h.precision;if(!e.d||!e.d[0]||e.e>17)return new h(e.d?!e.d[0]?1:e.s<0?0:1/0:e.s?e.s<0?0:e:0/0);for(null==t?(l=!1,s=m):s=t,u=new h(.03125);e.e>-2;)e=e.times(u),d+=5;for(s+=r=Math.log(v(2,d))/Math.LN10*2+5|0,n=i=a=new h(1),h.precision=s;;){if(i=O(i.times(e),s,1),n=n.times(++f),E((u=a.plus(A(i,n,s,1))).d).slice(0,s)===E(a.d).slice(0,s)){for(o=d;o--;)a=O(a.times(a),s,1);if(null!=t)return h.precision=m,a;if(!(c<3&&C(a.d,s-r,p,c)))return O(a,h.precision=m,p,l=!0);h.precision=s+=10,n=i=u=new h(1),f=0,c++}a=u}}function I(e,t){var n,r,o,i,a,u,s,c,f,d,h,p=1,m=e,v=m.d,y=m.constructor,g=y.rounding,b=y.precision;if(m.s<0||!v||!v[0]||!m.e&&1==v[0]&&1==v.length)return new y(v&&!v[0]?-1/0:1!=m.s?NaN:v?0:m);if(null==t?(l=!1,f=b):f=t,y.precision=f+=10,r=(n=E(v)).charAt(0),!(15e14>Math.abs(i=m.e)))return c=F(y,f+2,b).times(i+""),m=I(new y(r+"."+n.slice(1)),f-10).plus(c),y.precision=b,null==t?O(m,b,g,l=!0):m;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=E((m=m.times(e)).d)).charAt(0),p++;for(i=m.e,r>1?(m=new y("0."+n),i++):m=new y(r+"."+n.slice(1)),d=m,s=a=m=A(m.minus(1),m.plus(1),f,1),h=O(m.times(m),f,1),o=3;;){if(a=O(a.times(h),f,1),E((c=s.plus(A(a,new y(o),f,1))).d).slice(0,f)===E(s.d).slice(0,f)){if(s=s.times(2),0!==i&&(s=s.plus(F(y,f+2,b).times(i+""))),s=A(s,new y(p),f,1),null!=t)return y.precision=b,s;if(!C(s.d,f-10,g,u))return O(s,y.precision=b,g,l=!0);y.precision=f+=10,c=a=m=A(d.minus(1),d.plus(1),f,1),h=O(m.times(m),f,1),o=u=1}s=c,o+=2}}function U(e){return String(e.s*e.s/0)}function Y(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);r++);for(o=t.length;48===t.charCodeAt(o-1);--o);if(t=t.slice(r,o)){if(o-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%7,n<0&&(r+=7),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=7;r<o;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=o;for(;r--;)t+="0";e.d.push(+t),l&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function $(e,t,n,r,o){var i,a,u,s,c=e.precision,f=Math.ceil(c/7);for(l=!1,s=n.times(n),u=new e(r);;){if(a=A(u.times(s),new e(t++*t++),c,1),u=o?r.plus(a):r.minus(a),r=A(a.times(s),new e(t++*t++),c,1),void 0!==(a=u.plus(r)).d[f]){for(i=f;a.d[i]===u.d[i]&&i--;);if(-1==i)break}i=u,u=r,r=a,a=i}return l=!0,a.d.length=f+1,a}function W(e,t){for(var n=e;--t;)n*=e;return n}function Z(e,t){var n,r=t.s<0,i=P(e,e.precision,1),a=i.times(.5);if((t=t.abs()).lte(a))return o=r?4:1,t;if((n=t.divToInt(i)).isZero())o=r?3:2;else{if((t=t.minus(n.times(i))).lte(a))return o=N(n)?r?2:3:r?4:1,t;o=N(n)?r?1:4:r?3:2}return t.minus(i).abs()}function H(e,t,n,o){var a,u,s,l,c,f,d,h,p,m=e.constructor,v=void 0!==n;if(v?(x(n,1,1e9),void 0===o?o=m.rounding:x(o,0,8)):(n=m.precision,o=m.rounding),e.isFinite()){for(s=(d=B(e)).indexOf("."),v?(a=2,16==t?n=4*n-3:8==t&&(n=3*n-2)):a=t,s>=0&&(d=d.replace(".",""),(p=new m(1)).e=d.length-s,p.d=S(B(p),10,a),p.e=p.d.length),u=c=(h=S(d,10,a)).length;0==h[--c];)h.pop();if(h[0]){if(s<0?u--:((e=new m(e)).d=h,e.e=u,h=(e=A(e,p,n,o,0,a)).d,u=e.e,f=r),s=h[n],l=a/2,f=f||void 0!==h[n+1],f=o<4?(void 0!==s||f)&&(0===o||o===(e.s<0?3:2)):s>l||s===l&&(4===o||f||6===o&&1&h[n-1]||o===(e.s<0?8:7)),h.length=n,f)for(;++h[--n]>a-1;)h[n]=0,n||(++u,h.unshift(1));for(c=h.length;!h[c-1];--c);for(s=0,d="";s<c;s++)d+=i.charAt(h[s]);if(v){if(c>1)if(16==t||8==t){for(s=16==t?4:3,--c;c%s;c++)d+="0";for(c=(h=S(d,a,t)).length;!h[c-1];--c);for(s=1,d="1.";s<c;s++)d+=i.charAt(h[s])}else d=d.charAt(0)+"."+d.slice(1);d=d+(u<0?"p":"p+")+u}else if(u<0){for(;++u;)d="0"+d;d="0."+d}else if(++u>c)for(u-=c;u--;)d+="0";else u<c&&(d=d.slice(0,u)+"."+d.slice(u))}else d=v?"0p+0":"0";d=(16==t?"0x":2==t?"0b":8==t?"0o":"")+d}else d=U(e);return e.s<0?"-"+d:d}function q(e,t){if(e.length>t)return e.length=t,!0}function V(e){return new this(e).abs()}function K(e){return new this(e).acos()}function Q(e){return new this(e).acosh()}function X(e,t){return new this(e).plus(t)}function G(e){return new this(e).asin()}function J(e){return new this(e).asinh()}function ee(e){return new this(e).atan()}function et(e){return new this(e).atanh()}function en(e,t){e=new this(e),t=new this(t);var n,r=this.precision,o=this.rounding,i=r+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?P(this,r,o):new this(0)).s=e.s:!e.d||t.isZero()?(n=P(this,i,1).times(.5)).s=e.s:t.s<0?(this.precision=i,this.rounding=1,n=this.atan(A(e,t,i,1)),t=P(this,i,1),this.precision=r,this.rounding=o,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(A(e,t,i,1)):(n=P(this,i,1).times(t.s>0?.25:.75)).s=e.s:n=new this(NaN),n}function er(e){return new this(e).cbrt()}function eo(e){return O(e=new this(e),e.e+1,2)}function ei(e,t,n){return new this(e).clamp(t,n)}function ea(e){if(!e||"object"!=typeof e)throw Error(c+"Object expected");var t,n,r,o=!0===e.defaults,i=["precision",1,1e9,"rounding",0,8,"toExpNeg",-9e15,0,"toExpPos",0,9e15,"maxE",0,9e15,"minE",-9e15,0,"modulo",0,9];for(t=0;t<i.length;t+=3)if(n=i[t],o&&(this[n]=s[n]),void 0!==(r=e[n]))if(m(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(f+n+": "+r);if(n="crypto",o&&(this[n]=s[n]),void 0!==(r=e[n]))if(!0===r||!1===r||0===r||1===r)if(r)if("u">typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[n]=!0;else throw Error(h);else this[n]=!1;else throw Error(f+n+": "+r);return this}function eu(e){return new this(e).cos()}function es(e){return new this(e).cosh()}function el(e,t){return new this(e).div(t)}function ec(e){return new this(e).exp()}function ef(e){return O(e=new this(e),e.e+1,3)}function ed(){var e,t,n=new this(0);for(e=0,l=!1;e<arguments.length;)if(t=new this(arguments[e++]),t.d)n.d&&(n=n.plus(t.times(t)));else{if(t.s)return l=!0,new this(1/0);n=t}return l=!0,n.sqrt()}function eh(e){return e instanceof ez||e&&e.toStringTag===p||!1}function ep(e){return new this(e).ln()}function em(e,t){return new this(e).log(t)}function ev(e){return new this(e).log(2)}function ey(e){return new this(e).log(10)}function eg(){return j(this,arguments,-1)}function eb(){return j(this,arguments,1)}function ew(e,t){return new this(e).mod(t)}function e_(e,t){return new this(e).mul(t)}function eD(e,t){return new this(e).pow(t)}function ek(e){var t,n,r,o,i=0,a=new this(1),u=[];if(void 0===e?e=this.precision:x(e,1,1e9),r=Math.ceil(e/7),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(r));i<r;)(o=t[i])>=429e7?t[i]=crypto.getRandomValues(new Uint32Array(1))[0]:u[i++]=o%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(r*=4);i<r;)(o=t[i]+(t[i+1]<<8)+(t[i+2]<<16)+((127&t[i+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,i):(u.push(o%1e7),i+=4);i=r/4}else throw Error(h);else for(;i<r;)u[i++]=1e7*Math.random()|0;for(r=u[--i],e%=7,r&&e&&(o=v(10,7-e),u[i]=(r/o|0)*o);0===u[i];i--)u.pop();if(i<0)n=0,u=[0];else{for(n=-1;0===u[0];n-=7)u.shift();for(r=1,o=u[0];o>=10;o/=10)r++;r<7&&(n-=7-r)}return a.e=n,a.d=u,a}function eE(e){return O(e=new this(e),e.e+1,this.rounding)}function ex(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function eC(e){return new this(e).sin()}function eS(e){return new this(e).sinh()}function eA(e){return new this(e).sqrt()}function eO(e,t){return new this(e).sub(t)}function eB(){var e=0,t=arguments,n=new this(t[0]);for(l=!1;n.s&&++e<t.length;)n=n.plus(t[e]);return l=!0,O(n,this.precision,this.rounding)}function eT(e){return new this(e).tan()}function eF(e){return new this(e).tanh()}function eP(e){return O(e=new this(e),e.e+1,1)}k[Symbol.for("nodejs.util.inspect.custom")]=k.toString,k[Symbol.toStringTag]="Decimal";var ez=k.constructor=function e(t){var n,r,o;function i(e){var t,n,r;if(!(this instanceof i))return new i(e);if(this.constructor=i,eh(e)){this.s=e.s,l?!e.d||e.e>i.maxE?(this.e=NaN,this.d=null):e.e<i.minE?(this.e=0,this.d=[0]):(this.e=e.e,this.d=e.d.slice()):(this.e=e.e,this.d=e.d?e.d.slice():e.d);return}if("number"==(r=typeof e)){if(0===e){this.s=1/e<0?-1:1,this.e=0,this.d=[0];return}if(e<0?(e=-e,this.s=-1):this.s=1,e===~~e&&e<1e7){for(t=0,n=e;n>=10;n/=10)t++;l?t>i.maxE?(this.e=NaN,this.d=null):t<i.minE?(this.e=0,this.d=[0]):(this.e=t,this.d=[e]):(this.e=t,this.d=[e]);return}if(0*e!=0){e||(this.s=NaN),this.e=NaN,this.d=null;return}return Y(this,e.toString())}if("string"===r)return 45===(n=e.charCodeAt(0))?(e=e.slice(1),this.s=-1):(43===n&&(e=e.slice(1)),this.s=1),w.test(e)?Y(this,e):function(e,t){var n,r,o,i,a,u,s,c,d;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),w.test(t))return Y(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(g.test(t))n=16,t=t.toLowerCase();else if(y.test(t))n=2;else if(b.test(t))n=8;else throw Error(f+t);for((i=t.search(/p/i))>0?(s=+t.slice(i+1),t=t.substring(2,i)):t=t.slice(2),a=(i=t.indexOf("."))>=0,r=e.constructor,a&&(i=(u=(t=t.replace(".","")).length)-i,o=M(r,new r(n),i,2*i)),i=d=(c=S(t,n,1e7)).length-1;0===c[i];--i)c.pop();return i<0?new r(0*e.s):(e.e=T(c,d),e.d=c,l=!1,a&&(e=A(e,o,4*u)),s&&(e=e.times(54>Math.abs(s)?v(2,s):ez.pow(2,s))),l=!0,e)}(this,e);if("bigint"===r)return e<0?(e=-e,this.s=-1):this.s=1,Y(this,e.toString());throw Error(f+e)}if(i.prototype=k,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.EUCLID=9,i.config=i.set=ea,i.clone=e,i.isDecimal=eh,i.abs=V,i.acos=K,i.acosh=Q,i.add=X,i.asin=G,i.asinh=J,i.atan=ee,i.atanh=et,i.atan2=en,i.cbrt=er,i.ceil=eo,i.clamp=ei,i.cos=eu,i.cosh=es,i.div=el,i.exp=ec,i.floor=ef,i.hypot=ed,i.ln=ep,i.log=em,i.log10=ey,i.log2=ev,i.max=eg,i.min=eb,i.mod=ew,i.mul=e_,i.pow=eD,i.random=ek,i.round=eE,i.sign=ex,i.sin=eC,i.sinh=eS,i.sqrt=eA,i.sub=eO,i.sum=eB,i.tan=eT,i.tanh=eF,i.trunc=eP,void 0===t&&(t={}),t&&!0!==t.defaults)for(n=0,o=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"];n<o.length;)t.hasOwnProperty(r=o[n++])||(t[r]=this[r]);return i.config(t),i}(s);a=new ez(a),u=new ez(u)}