landingpage/rootfs/usr/share/www/frontend_latest/831.22bf65357a78128d.js

3 lines
38 KiB
JavaScript

/*! For license information please see 831.22bf65357a78128d.js.LICENSE.txt */
export const ids=["831"];export const modules={9559:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(8492),i=t(7128),o=t(2322);(0,o.defineProperty)(Intl,"NumberFormat",{value:r.NumberFormat}),(0,o.defineProperty)(Number.prototype,"toLocaleString",{value:function(e,n){return(0,i.toLocaleString)(this,e,n)}})},8492:function(e,n,t){t(2519),t(2179),t(9256),t(4931),t(8463),t(7449),t(9814),t(3334),Object.defineProperty(n,"__esModule",{value:!0}),n.NumberFormat=void 0;var r=t(9065),i=t(2322),o=t(7913),s=t(3961),u=r.__importDefault(t(6172)),a=r.__importDefault(t(3625)),c=["locale","numberingSystem","style","currency","currencyDisplay","currencySign","unit","unitDisplay","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","useGrouping","notation","compactDisplay","signDisplay"];function l(e){return(0,i.FormatNumericToParts)(this,d(e),{getInternalSlots:a.default})}n.NumberFormat=function(e,t){if(!this||!(0,i.OrdinaryHasInstance)(n.NumberFormat,this))return new n.NumberFormat(e,t);(0,i.InitializeNumberFormat)(this,e,t,{getInternalSlots:a.default,localeData:n.NumberFormat.localeData,availableLocales:n.NumberFormat.availableLocales,getDefaultLocale:n.NumberFormat.getDefaultLocale,currencyDigitsData:o.currencyDigitsData,numberingSystemNames:s.numberingSystemNames});var r=(0,a.default)(this),u=r.dataLocale,c=n.NumberFormat.localeData[u];return(0,i.invariant)(void 0!==c,"Cannot load locale-dependent data for ".concat(u,".")),r.pl=(0,i.createMemoizedPluralRules)(u,{minimumFractionDigits:r.minimumFractionDigits,maximumFractionDigits:r.maximumFractionDigits,minimumIntegerDigits:r.minimumIntegerDigits,minimumSignificantDigits:r.minimumSignificantDigits,maximumSignificantDigits:r.maximumSignificantDigits}),this};try{Object.defineProperty(l,"name",{value:"formatToParts",enumerable:!1,writable:!1,configurable:!0})}catch(e){}(0,i.defineProperty)(n.NumberFormat.prototype,"formatToParts",{value:l}),(0,i.defineProperty)(n.NumberFormat.prototype,"formatRange",{value:function(e,n){return(0,i.FormatNumericRange)(this,d(e),d(n),{getInternalSlots:a.default})}}),(0,i.defineProperty)(n.NumberFormat.prototype,"formatRangeToParts",{value:function(e,n){return(0,i.FormatNumericRangeToParts)(this,d(e),d(n),{getInternalSlots:a.default})}}),(0,i.defineProperty)(n.NumberFormat.prototype,"resolvedOptions",{value:function(){if("object"!=typeof this||!(0,i.OrdinaryHasInstance)(n.NumberFormat,this))throw TypeError("Method Intl.NumberFormat.prototype.resolvedOptions called on incompatible receiver");for(var e=(0,a.default)(this),t={},r=0,o=c;r<o.length;r++){var s=o[r],u=e[s];void 0!==u&&(t[s]=u)}return"morePrecision"===e.roundingType?t.roundingPriority="morePrecision":"lessPrecision"===e.roundingType?t.roundingPriority="lessPrecision":t.roundingPriority="auto",t}});var f={enumerable:!1,configurable:!0,get:function(){if("object"!=typeof this||!(0,i.OrdinaryHasInstance)(n.NumberFormat,this))throw TypeError("Intl.NumberFormat format property accessor called on incompatible receiver");var e=(0,a.default)(this),t=this,r=e.boundFormat;if(void 0===r){r=function(e){var n=d(e);return t.formatToParts(n).map((function(e){return e.value})).join("")};try{Object.defineProperty(r,"name",{configurable:!0,enumerable:!1,writable:!1,value:""})}catch(e){}e.boundFormat=r}return r}};try{Object.defineProperty(f.get,"name",{configurable:!0,enumerable:!1,writable:!1,value:"get format"})}catch(e){}function d(e){return"bigint"==typeof e?new u.default(e.toString()):(0,i.ToNumber)(e)}Object.defineProperty(n.NumberFormat.prototype,"format",f),(0,i.defineProperty)(n.NumberFormat,"supportedLocalesOf",{value:function(e,t){return(0,i.SupportedLocales)(n.NumberFormat.availableLocales,(0,i.CanonicalizeLocaleList)(e),t)}}),n.NumberFormat.__addLocaleData=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,i=e;r<i.length;r++){var o=i[r],s=o.data,u=o.locale,a=new Intl.Locale(u).minimize().toString();n.NumberFormat.localeData[u]=n.NumberFormat.localeData[a]=s,n.NumberFormat.availableLocales.add(a),n.NumberFormat.availableLocales.add(u),n.NumberFormat.__defaultLocale||(n.NumberFormat.__defaultLocale=a)}},n.NumberFormat.__addUnitData=function(e,t){var r=n.NumberFormat.localeData[e];if(!r)throw new Error('Locale data for "'.concat(e,'" has not been loaded in NumberFormat. \nPlease __addLocaleData before adding additional unit data'));for(var i in t.simple)r.units.simple[i]=t.simple[i];for(var i in t.compound)r.units.compound[i]=t.compound[i]},n.NumberFormat.__defaultLocale="",n.NumberFormat.localeData={},n.NumberFormat.availableLocales=new Set,n.NumberFormat.getDefaultLocale=function(){return n.NumberFormat.__defaultLocale},n.NumberFormat.polyfilled=!0;try{"undefined"!=typeof Symbol&&Object.defineProperty(n.NumberFormat.prototype,Symbol.toStringTag,{configurable:!0,enumerable:!1,writable:!1,value:"Intl.NumberFormat"}),Object.defineProperty(n.NumberFormat.prototype.constructor,"length",{configurable:!0,enumerable:!1,writable:!1,value:0}),Object.defineProperty(n.NumberFormat.supportedLocalesOf,"length",{configurable:!0,enumerable:!1,writable:!1,value:1}),Object.defineProperty(n.NumberFormat,"prototype",{configurable:!1,enumerable:!1,writable:!1,value:n.NumberFormat.prototype})}catch(e){}},7913:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.currencyDigitsData=void 0,n.currencyDigitsData={ADP:0,AFN:0,ALL:0,AMD:2,BHD:3,BIF:0,BYN:2,BYR:0,CAD:2,CHF:2,CLF:4,CLP:0,COP:2,CRC:2,CZK:2,DEFAULT:2,DJF:0,DKK:2,ESP:0,GNF:0,GYD:2,HUF:2,IDR:2,IQD:0,IRR:0,ISK:0,ITL:0,JOD:3,JPY:0,KMF:0,KPW:0,KRW:0,KWD:3,LAK:0,LBP:0,LUF:0,LYD:3,MGA:0,MGF:0,MMK:0,MNT:2,MRO:0,MUR:2,NOK:2,OMR:3,PKR:2,PYG:0,RSD:0,RWF:0,SEK:2,SLE:2,SLL:0,SOS:0,STD:0,SYP:0,TMM:0,TND:3,TRL:0,TWD:2,TZS:2,UGX:0,UYI:0,UYW:4,UZS:2,VEF:2,VND:0,VUV:0,XAF:0,XOF:0,XPF:0,YER:0,ZMK:0,ZWD:0}},3625:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n=t.get(e);n||(n=Object.create(null),t.set(e,n));return n};var t=new WeakMap},3961:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.numberingSystemNames=void 0,n.numberingSystemNames=["adlm","ahom","arab","arabext","armn","armnlow","bali","beng","bhks","brah","cakm","cham","cyrl","deva","diak","ethi","fullwide","gara","geor","gong","gonm","grek","greklow","gujr","gukh","guru","hanidays","hanidec","hans","hansfin","hant","hantfin","hebr","hmng","hmnp","java","jpan","jpanfin","jpanyear","kali","kawi","khmr","knda","krai","lana","lanatham","laoo","latn","lepc","limb","mathbold","mathdbl","mathmono","mathsanb","mathsans","mlym","modi","mong","mroo","mtei","mymr","mymrepka","mymrpao","mymrshan","mymrtlng","nagm","newa","nkoo","olck","onao","orya","osma","outlined","rohg","roman","romanlow","saur","segment","shrd","sind","sinh","sora","sund","sunu","takr","talu","taml","tamldec","telu","thai","tibt","tirh","tnsa","vaii","wara","wcho"]},7128:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.toLocaleString=function(e,n,t){return new r.NumberFormat(n,t).format(e)};var r=t(8492)},6172:function(e,n,t){t(2745),t(4283),t(6200),t(5754),t(2246),t(7102),t(5524),t(267),function(n){var t,r,i,o,s=9e15,u=1e9,a="0123456789abcdef",c="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",l="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",f={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-s,maxE:s,crypto:!1},d=!0,m="[DecimalError] ",h=m+"Invalid argument: ",p=m+"Precision limit exceeded",g=m+"crypto unavailable",w="[object Decimal]",v=Math.floor,b=Math.pow,N=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,y=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,F=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,D=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,P=1e7,E=c.length-1,x=l.length-1,S={toStringTag:w};function M(e){var n,t,r,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,n=1;n<i;n++)(t=7-(r=e[n]+"").length)&&(o+=Z(t)),o+=r;(t=7-(r=(s=e[n])+"").length)&&(o+=Z(t))}else if(0===s)return"0";for(;s%10==0;)s/=10;return o+s}function O(e,n,t){if(e!==~~e||e<n||e>t)throw Error(h+e)}function L(e,n,t,r){var i,o,s,u;for(o=e[0];o>=10;o/=10)--n;return--n<0?(n+=7,i=0):(i=Math.ceil((n+1)/7),n%=7),o=b(10,7-n),u=e[i]%o|0,null==r?n<3?(0==n?u=u/100|0:1==n&&(u=u/10|0),s=t<4&&99999==u||t>3&&49999==u||5e4==u||0==u):s=(t<4&&u+1==o||t>3&&u+1==o/2)&&(e[i+1]/o/100|0)==b(10,n-2)-1||(u==o/2||0==u)&&!(e[i+1]/o/100|0):n<4?(0==n?u=u/1e3|0:1==n?u=u/100|0:2==n&&(u=u/10|0),s=(r||t<4)&&9999==u||!r&&t>3&&4999==u):s=((r||t<4)&&u+1==o||!r&&t>3&&u+1==o/2)&&(e[i+1]/o/1e3|0)==b(10,n-3)-1,s}function _(e,n,t){for(var r,i,o=[0],s=0,u=e.length;s<u;){for(i=o.length;i--;)o[i]*=n;for(o[0]+=a.indexOf(e.charAt(s++)),r=0;r<o.length;r++)o[r]>t-1&&(void 0===o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/t|0,o[r]%=t)}return o.reverse()}S.absoluteValue=S.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),R(e)},S.ceil=function(){return R(new this.constructor(this),this.e+1,2)},S.clampedTo=S.clamp=function(e,n){var t=this,r=t.constructor;if(e=new r(e),n=new r(n),!e.s||!n.s)return new r(NaN);if(e.gt(n))throw Error(h+n);return t.cmp(e)<0?e:t.cmp(n)>0?n:new r(t)},S.comparedTo=S.cmp=function(e){var n,t,r,i,o=this,s=o.d,u=(e=new o.constructor(e)).d,a=o.s,c=e.s;if(!s||!u)return a&&c?a!==c?a:s===u?0:!s^a<0?1:-1:NaN;if(!s[0]||!u[0])return s[0]?a:u[0]?-c:0;if(a!==c)return a;if(o.e!==e.e)return o.e>e.e^a<0?1:-1;for(n=0,t=(r=s.length)<(i=u.length)?r:i;n<t;++n)if(s[n]!==u[n])return s[n]>u[n]^a<0?1:-1;return r===i?0:r>i^a<0?1:-1},S.cosine=S.cos=function(){var e,n,t=this,r=t.constructor;return t.d?t.d[0]?(e=r.precision,n=r.rounding,r.precision=e+Math.max(t.e,t.sd())+7,r.rounding=1,t=function(e,n){var t,r,i;if(n.isZero())return n;r=n.d.length,r<32?i=(1/$(4,t=Math.ceil(r/3))).toString():(t=16,i="2.3283064365386962890625e-10");e.precision+=t,n=G(e,1,n.times(i),new e(1));for(var o=t;o--;){var s=n.times(n);n=s.times(s).minus(s).times(8).plus(1)}return e.precision-=t,n}(r,z(r,t)),r.precision=e,r.rounding=n,R(2==o||3==o?t.neg():t,e,n,!0)):new r(1):new r(NaN)},S.cubeRoot=S.cbrt=function(){var e,n,t,r,i,o,s,u,a,c,l=this,f=l.constructor;if(!l.isFinite()||l.isZero())return new f(l);for(d=!1,(o=l.s*b(l.s*l,1/3))&&Math.abs(o)!=1/0?r=new f(o.toString()):(t=M(l.d),(o=((e=l.e)-t.length+1)%3)&&(t+=1==o||-2==o?"0":"00"),o=b(t,1/3),e=v((e+1)/3)-(e%3==(e<0?-1:2)),(r=new f(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)).s=l.s),s=(e=f.precision)+3;;)if(c=(a=(u=r).times(u).times(u)).plus(l),r=T(c.plus(l).times(u),c.plus(a),s+2,1),M(u.d).slice(0,s)===(t=M(r.d)).slice(0,s)){if("9999"!=(t=t.slice(s-3,s+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(R(r,e+1,1),n=!r.times(r).times(r).eq(l));break}if(!i&&(R(u,e+1,0),u.times(u).times(u).eq(l))){r=u;break}s+=4,i=1}return d=!0,R(r,e,f.rounding,n)},S.decimalPlaces=S.dp=function(){var e,n=this.d,t=NaN;if(n){if(t=7*((e=n.length-1)-v(this.e/7)),e=n[e])for(;e%10==0;e/=10)t--;t<0&&(t=0)}return t},S.dividedBy=S.div=function(e){return T(this,new this.constructor(e))},S.dividedToIntegerBy=S.divToInt=function(e){var n=this.constructor;return R(T(this,new n(e),0,1,1),n.precision,n.rounding)},S.equals=S.eq=function(e){return 0===this.cmp(e)},S.floor=function(){return R(new this.constructor(this),this.e+1,3)},S.greaterThan=S.gt=function(e){return this.cmp(e)>0},S.greaterThanOrEqualTo=S.gte=function(e){var n=this.cmp(e);return 1==n||0===n},S.hyperbolicCosine=S.cosh=function(){var e,n,t,r,i,o=this,s=o.constructor,u=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return u;t=s.precision,r=s.rounding,s.precision=t+Math.max(o.e,o.sd())+4,s.rounding=1,(i=o.d.length)<32?n=(1/$(4,e=Math.ceil(i/3))).toString():(e=16,n="2.3283064365386962890625e-10"),o=G(s,1,o.times(n),new s(1),!0);for(var a,c=e,l=new s(8);c--;)a=o.times(o),o=u.minus(a.times(l.minus(a.times(l))));return R(o,s.precision=t,s.rounding=r,!0)},S.hyperbolicSine=S.sinh=function(){var e,n,t,r,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(n=o.precision,t=o.rounding,o.precision=n+Math.max(i.e,i.sd())+4,o.rounding=1,(r=i.d.length)<3)i=G(o,2,i,i,!0);else{e=(e=1.4*Math.sqrt(r))>16?16:0|e,i=G(o,2,i=i.times(1/$(5,e)),i,!0);for(var s,u=new o(5),a=new o(16),c=new o(20);e--;)s=i.times(i),i=i.times(u.plus(s.times(a.times(s).plus(c))))}return o.precision=n,o.rounding=t,R(i,n,t,!0)},S.hyperbolicTangent=S.tanh=function(){var e,n,t=this,r=t.constructor;return t.isFinite()?t.isZero()?new r(t):(e=r.precision,n=r.rounding,r.precision=e+7,r.rounding=1,T(t.sinh(),t.cosh(),r.precision=e,r.rounding=n)):new r(t.s)},S.inverseCosine=S.acos=function(){var e,n=this,t=n.constructor,r=n.abs().cmp(1),i=t.precision,o=t.rounding;return-1!==r?0===r?n.isNeg()?k(t,i,o):new t(0):new t(NaN):n.isZero()?k(t,i+4,o).times(.5):(t.precision=i+6,t.rounding=1,n=n.asin(),e=k(t,i+4,o).times(.5),t.precision=i,t.rounding=o,e.minus(n))},S.inverseHyperbolicCosine=S.acosh=function(){var e,n,t=this,r=t.constructor;return t.lte(1)?new r(t.eq(1)?0:NaN):t.isFinite()?(e=r.precision,n=r.rounding,r.precision=e+Math.max(Math.abs(t.e),t.sd())+4,r.rounding=1,d=!1,t=t.times(t).minus(1).sqrt().plus(t),d=!0,r.precision=e,r.rounding=n,t.ln()):new r(t)},S.inverseHyperbolicSine=S.asinh=function(){var e,n,t=this,r=t.constructor;return!t.isFinite()||t.isZero()?new r(t):(e=r.precision,n=r.rounding,r.precision=e+2*Math.max(Math.abs(t.e),t.sd())+6,r.rounding=1,d=!1,t=t.times(t).plus(1).sqrt().plus(t),d=!0,r.precision=e,r.rounding=n,t.ln())},S.inverseHyperbolicTangent=S.atanh=function(){var e,n,t,r,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,n=o.rounding,r=i.sd(),Math.max(r,e)<2*-i.e-1?R(new o(i),e,n,!0):(o.precision=t=r-i.e,i=T(i.plus(1),new o(1).minus(i),t+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=n,i.times(.5))):new o(NaN)},S.inverseSine=S.asin=function(){var e,n,t,r,i=this,o=i.constructor;return i.isZero()?new o(i):(n=i.abs().cmp(1),t=o.precision,r=o.rounding,-1!==n?0===n?((e=k(o,t+4,r).times(.5)).s=i.s,e):new o(NaN):(o.precision=t+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=t,o.rounding=r,i.times(2)))},S.inverseTangent=S.atan=function(){var e,n,t,r,i,o,s,u,a,c=this,l=c.constructor,f=l.precision,m=l.rounding;if(c.isFinite()){if(c.isZero())return new l(c);if(c.abs().eq(1)&&f+4<=x)return(s=k(l,f+4,m).times(.25)).s=c.s,s}else{if(!c.s)return new l(NaN);if(f+4<=x)return(s=k(l,f+4,m).times(.5)).s=c.s,s}for(l.precision=u=f+10,l.rounding=1,e=t=Math.min(28,u/7+2|0);e;--e)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(d=!1,n=Math.ceil(u/7),r=1,a=c.times(c),s=new l(c),i=c;-1!==e;)if(i=i.times(a),o=s.minus(i.div(r+=2)),i=i.times(a),void 0!==(s=o.plus(i.div(r+=2))).d[n])for(e=n;s.d[e]===o.d[e]&&e--;);return t&&(s=s.times(2<<t-1)),d=!0,R(s,l.precision=f,l.rounding=m,!0)},S.isFinite=function(){return!!this.d},S.isInteger=S.isInt=function(){return!!this.d&&v(this.e/7)>this.d.length-2},S.isNaN=function(){return!this.s},S.isNegative=S.isNeg=function(){return this.s<0},S.isPositive=S.isPos=function(){return this.s>0},S.isZero=function(){return!!this.d&&0===this.d[0]},S.lessThan=S.lt=function(e){return this.cmp(e)<0},S.lessThanOrEqualTo=S.lte=function(e){return this.cmp(e)<1},S.logarithm=S.log=function(e){var n,t,r,i,o,s,u,a,c=this,l=c.constructor,f=l.precision,m=l.rounding;if(null==e)e=new l(10),n=!0;else{if(t=(e=new l(e)).d,e.s<0||!t||!t[0]||e.eq(1))return new l(NaN);n=e.eq(10)}if(t=c.d,c.s<0||!t||!t[0]||c.eq(1))return new l(t&&!t[0]?-1/0:1!=c.s?NaN:t?0:1/0);if(n)if(t.length>1)o=!0;else{for(i=t[0];i%10==0;)i/=10;o=1!==i}if(d=!1,s=B(c,u=f+5),r=n?A(l,u+10):B(e,u),L((a=T(s,r,u,1)).d,i=f,m))do{if(s=B(c,u+=10),r=n?A(l,u+10):B(e,u),a=T(s,r,u,1),!o){+M(a.d).slice(i+1,i+15)+1==1e14&&(a=R(a,f+1,0));break}}while(L(a.d,i+=10,m));return d=!0,R(a,f,m)},S.minus=S.sub=function(e){var n,t,r,i,o,s,u,a,c,l,f,m,h=this,p=h.constructor;if(e=new p(e),!h.d||!e.d)return h.s&&e.s?h.d?e.s=-e.s:e=new p(e.d||h.s!==e.s?h:NaN):e=new p(NaN),e;if(h.s!=e.s)return e.s=-e.s,h.plus(e);if(c=h.d,m=e.d,u=p.precision,a=p.rounding,!c[0]||!m[0]){if(m[0])e.s=-e.s;else{if(!c[0])return new p(3===a?-0:0);e=new p(h)}return d?R(e,u,a):e}if(t=v(e.e/7),l=v(h.e/7),c=c.slice(),o=l-t){for((f=o<0)?(n=c,o=-o,s=m.length):(n=m,t=l,s=c.length),o>(r=Math.max(Math.ceil(u/7),s)+2)&&(o=r,n.length=1),n.reverse(),r=o;r--;)n.push(0);n.reverse()}else{for((f=(r=c.length)<(s=m.length))&&(s=r),r=0;r<s;r++)if(c[r]!=m[r]){f=c[r]<m[r];break}o=0}for(f&&(n=c,c=m,m=n,e.s=-e.s),s=c.length,r=m.length-s;r>0;--r)c[s++]=0;for(r=m.length;r>o;){if(c[--r]<m[r]){for(i=r;i&&0===c[--i];)c[i]=P-1;--c[i],c[r]+=P}c[r]-=m[r]}for(;0===c[--s];)c.pop();for(;0===c[0];c.shift())--t;return c[0]?(e.d=c,e.e=q(c,t),d?R(e,u,a):e):new p(3===a?-0:0)},S.modulo=S.mod=function(e){var n,t=this,r=t.constructor;return e=new r(e),!t.d||!e.s||e.d&&!e.d[0]?new r(NaN):!e.d||t.d&&!t.d[0]?R(new r(t),r.precision,r.rounding):(d=!1,9==r.modulo?(n=T(t,e.abs(),0,3,1)).s*=e.s:n=T(t,e,0,r.modulo,1),n=n.times(e),d=!0,t.minus(n))},S.naturalExponential=S.exp=function(){return K(this)},S.naturalLogarithm=S.ln=function(){return B(this)},S.negated=S.neg=function(){var e=new this.constructor(this);return e.s=-e.s,R(e)},S.plus=S.add=function(e){var n,t,r,i,o,s,u,a,c,l,f=this,m=f.constructor;if(e=new m(e),!f.d||!e.d)return f.s&&e.s?f.d||(e=new m(e.d||f.s===e.s?f:NaN)):e=new m(NaN),e;if(f.s!=e.s)return e.s=-e.s,f.minus(e);if(c=f.d,l=e.d,u=m.precision,a=m.rounding,!c[0]||!l[0])return l[0]||(e=new m(f)),d?R(e,u,a):e;if(o=v(f.e/7),r=v(e.e/7),c=c.slice(),i=o-r){for(i<0?(t=c,i=-i,s=l.length):(t=l,r=o,s=c.length),i>(s=(o=Math.ceil(u/7))>s?o+1:s+1)&&(i=s,t.length=1),t.reverse();i--;)t.push(0);t.reverse()}for((s=c.length)-(i=l.length)<0&&(i=s,t=l,l=c,c=t),n=0;i;)n=(c[--i]=c[i]+l[i]+n)/P|0,c[i]%=P;for(n&&(c.unshift(n),++r),s=c.length;0==c[--s];)c.pop();return e.d=c,e.e=q(c,r),d?R(e,u,a):e},S.precision=S.sd=function(e){var n,t=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(h+e);return t.d?(n=j(t.d),e&&t.e+1>n&&(n=t.e+1)):n=NaN,n},S.round=function(){var e=this,n=e.constructor;return R(new n(e),e.e+1,n.rounding)},S.sine=S.sin=function(){var e,n,t=this,r=t.constructor;return t.isFinite()?t.isZero()?new r(t):(e=r.precision,n=r.rounding,r.precision=e+Math.max(t.e,t.sd())+7,r.rounding=1,t=function(e,n){var t,r=n.d.length;if(r<3)return n.isZero()?n:G(e,2,n,n);t=(t=1.4*Math.sqrt(r))>16?16:0|t,n=n.times(1/$(5,t)),n=G(e,2,n,n);for(var i,o=new e(5),s=new e(16),u=new e(20);t--;)i=n.times(n),n=n.times(o.plus(i.times(s.times(i).minus(u))));return n}(r,z(r,t)),r.precision=e,r.rounding=n,R(o>2?t.neg():t,e,n,!0)):new r(NaN)},S.squareRoot=S.sqrt=function(){var e,n,t,r,i,o,s=this,u=s.d,a=s.e,c=s.s,l=s.constructor;if(1!==c||!u||!u[0])return new l(!c||c<0&&(!u||u[0])?NaN:u?s:1/0);for(d=!1,0==(c=Math.sqrt(+s))||c==1/0?(((n=M(u)).length+a)%2==0&&(n+="0"),c=Math.sqrt(n),a=v((a+1)/2)-(a<0||a%2),r=new l(n=c==1/0?"5e"+a:(n=c.toExponential()).slice(0,n.indexOf("e")+1)+a)):r=new l(c.toString()),t=(a=l.precision)+3;;)if(r=(o=r).plus(T(s,o,t+2,1)).times(.5),M(o.d).slice(0,t)===(n=M(r.d)).slice(0,t)){if("9999"!=(n=n.slice(t-3,t+1))&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(R(r,a+1,1),e=!r.times(r).eq(s));break}if(!i&&(R(o,a+1,0),o.times(o).eq(s))){r=o;break}t+=4,i=1}return d=!0,R(r,a,l.rounding,e)},S.tangent=S.tan=function(){var e,n,t=this,r=t.constructor;return t.isFinite()?t.isZero()?new r(t):(e=r.precision,n=r.rounding,r.precision=e+10,r.rounding=1,(t=t.sin()).s=1,t=T(t,new r(1).minus(t.times(t)).sqrt(),e+10,0),r.precision=e,r.rounding=n,R(2==o||4==o?t.neg():t,e,n,!0)):new r(NaN)},S.times=S.mul=function(e){var n,t,r,i,o,s,u,a,c,l=this,f=l.constructor,m=l.d,h=(e=new f(e)).d;if(e.s*=l.s,!(m&&m[0]&&h&&h[0]))return new f(!e.s||m&&!m[0]&&!h||h&&!h[0]&&!m?NaN:m&&h?0*e.s:e.s/0);for(t=v(l.e/7)+v(e.e/7),(a=m.length)<(c=h.length)&&(o=m,m=h,h=o,s=a,a=c,c=s),o=[],r=s=a+c;r--;)o.push(0);for(r=c;--r>=0;){for(n=0,i=a+r;i>r;)u=o[i]+h[r]*m[i-r-1]+n,o[i--]=u%P|0,n=u/P|0;o[i]=(o[i]+n)%P|0}for(;!o[--s];)o.pop();return n?++t:o.shift(),e.d=o,e.e=q(o,t),d?R(e,f.precision,f.rounding):e},S.toBinary=function(e,n){return J(this,2,e,n)},S.toDecimalPlaces=S.toDP=function(e,n){var t=this,r=t.constructor;return t=new r(t),void 0===e?t:(O(e,0,u),void 0===n?n=r.rounding:O(n,0,8),R(t,e+t.e+1,n))},S.toExponential=function(e,n){var t,r=this,i=r.constructor;return void 0===e?t=I(r,!0):(O(e,0,u),void 0===n?n=i.rounding:O(n,0,8),t=I(r=R(new i(r),e+1,n),!0,e+1)),r.isNeg()&&!r.isZero()?"-"+t:t},S.toFixed=function(e,n){var t,r,i=this,o=i.constructor;return void 0===e?t=I(i):(O(e,0,u),void 0===n?n=o.rounding:O(n,0,8),t=I(r=R(new o(i),e+i.e+1,n),!1,e+r.e+1)),i.isNeg()&&!i.isZero()?"-"+t:t},S.toFraction=function(e){var n,t,r,i,o,s,u,a,c,l,f,m,p=this,g=p.d,w=p.constructor;if(!g)return new w(p);if(c=t=new w(1),r=a=new w(0),s=(o=(n=new w(r)).e=j(g)-p.e-1)%7,n.d[0]=b(10,s<0?7+s:s),null==e)e=o>0?n:c;else{if(!(u=new w(e)).isInt()||u.lt(c))throw Error(h+u);e=u.gt(n)?o>0?n:c:u}for(d=!1,u=new w(M(g)),l=w.precision,w.precision=o=7*g.length*2;f=T(u,n,0,1,1),1!=(i=t.plus(f.times(r))).cmp(e);)t=r,r=i,i=c,c=a.plus(f.times(i)),a=i,i=n,n=u.minus(f.times(i)),u=i;return i=T(e.minus(t),r,0,1,1),a=a.plus(i.times(c)),t=t.plus(i.times(r)),a.s=c.s=p.s,m=T(c,r,o,1).minus(p).abs().cmp(T(a,t,o,1).minus(p).abs())<1?[c,r]:[a,t],w.precision=l,d=!0,m},S.toHexadecimal=S.toHex=function(e,n){return J(this,16,e,n)},S.toNearest=function(e,n){var t=this,r=t.constructor;if(t=new r(t),null==e){if(!t.d)return t;e=new r(1),n=r.rounding}else{if(e=new r(e),void 0===n?n=r.rounding:O(n,0,8),!t.d)return e.s?t:e;if(!e.d)return e.s&&(e.s=t.s),e}return e.d[0]?(d=!1,t=T(t,e,0,n,1).times(e),d=!0,R(t)):(e.s=t.s,t=e),t},S.toNumber=function(){return+this},S.toOctal=function(e,n){return J(this,8,e,n)},S.toPower=S.pow=function(e){var n,t,r,i,o,s,u=this,a=u.constructor,c=+(e=new a(e));if(!(u.d&&e.d&&u.d[0]&&e.d[0]))return new a(b(+u,c));if((u=new a(u)).eq(1))return u;if(r=a.precision,o=a.rounding,e.eq(1))return R(u,r,o);if((n=v(e.e/7))>=e.d.length-1&&(t=c<0?-c:c)<=9007199254740991)return i=U(a,u,t,r),e.s<0?new a(1).div(i):R(i,r,o);if((s=u.s)<0){if(n<e.d.length-1)return new a(NaN);if(1&e.d[n]||(s=1),0==u.e&&1==u.d[0]&&1==u.d.length)return u.s=s,u}return(n=0!=(t=b(+u,c))&&isFinite(t)?new a(t+"").e:v(c*(Math.log("0."+M(u.d))/Math.LN10+u.e+1)))>a.maxE+1||n<a.minE-1?new a(n>0?s/0:0):(d=!1,a.rounding=u.s=1,t=Math.min(12,(n+"").length),(i=K(e.times(B(u,r+t)),r)).d&&L((i=R(i,r+5,1)).d,r,o)&&(n=r+10,+M((i=R(K(e.times(B(u,n+t)),n),n+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=R(i,r+1,0))),i.s=s,d=!0,a.rounding=o,R(i,r,o))},S.toPrecision=function(e,n){var t,r=this,i=r.constructor;return void 0===e?t=I(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(O(e,1,u),void 0===n?n=i.rounding:O(n,0,8),t=I(r=R(new i(r),e,n),e<=r.e||r.e<=i.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+t:t},S.toSignificantDigits=S.toSD=function(e,n){var t=this.constructor;return void 0===e?(e=t.precision,n=t.rounding):(O(e,1,u),void 0===n?n=t.rounding:O(n,0,8)),R(new t(this),e,n)},S.toString=function(){var e=this,n=e.constructor,t=I(e,e.e<=n.toExpNeg||e.e>=n.toExpPos);return e.isNeg()&&!e.isZero()?"-"+t:t},S.truncated=S.trunc=function(){return R(new this.constructor(this),this.e+1,1)},S.valueOf=S.toJSON=function(){var e=this,n=e.constructor,t=I(e,e.e<=n.toExpNeg||e.e>=n.toExpPos);return e.isNeg()?"-"+t:t};var T=function(){function e(e,n,t){var r,i=0,o=e.length;for(e=e.slice();o--;)r=e[o]*n+i,e[o]=r%t|0,i=r/t|0;return i&&e.unshift(i),e}function n(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 t(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,s,u,a,c){var l,f,d,m,h,p,g,w,b,N,y,F,D,E,x,S,M,O,L,_,T=i.constructor,I=i.s==o.s?1:-1,q=i.d,A=o.d;if(!(q&&q[0]&&A&&A[0]))return new T(i.s&&o.s&&(q?!A||q[0]!=A[0]:A)?q&&0==q[0]||!A?0*I:I/0:NaN);for(c?(h=1,f=i.e-o.e):(c=P,h=7,f=v(i.e/h)-v(o.e/h)),L=A.length,M=q.length,N=(b=new T(I)).d=[],d=0;A[d]==(q[d]||0);d++);if(A[d]>(q[d]||0)&&f--,null==s?(E=s=T.precision,u=T.rounding):E=a?s+(i.e-o.e)+1:s,E<0)N.push(1),p=!0;else{if(E=E/h+2|0,d=0,1==L){for(m=0,A=A[0],E++;(d<M||m)&&E--;d++)x=m*c+(q[d]||0),N[d]=x/A|0,m=x%A|0;p=m||d<M}else{for((m=c/(A[0]+1)|0)>1&&(A=e(A,m,c),q=e(q,m,c),L=A.length,M=q.length),S=L,F=(y=q.slice(0,L)).length;F<L;)y[F++]=0;(_=A.slice()).unshift(0),O=A[0],A[1]>=c/2&&++O;do{m=0,(l=n(A,y,L,F))<0?(D=y[0],L!=F&&(D=D*c+(y[1]||0)),(m=D/O|0)>1?(m>=c&&(m=c-1),1==(l=n(g=e(A,m,c),y,w=g.length,F=y.length))&&(m--,t(g,L<w?_:A,w,c))):(0==m&&(l=m=1),g=A.slice()),(w=g.length)<F&&g.unshift(0),t(y,g,F,c),-1==l&&(l=n(A,y,L,F=y.length))<1&&(m++,t(y,L<F?_:A,F,c)),F=y.length):0===l&&(m++,y=[0]),N[d++]=m,l&&y[0]?y[F++]=q[S]||0:(y=[q[S]],F=1)}while((S++<M||void 0!==y[0])&&E--);p=void 0!==y[0]}N[0]||N.shift()}if(1==h)b.e=f,r=p;else{for(d=1,m=N[0];m>=10;m/=10)d++;b.e=d+f*h-1,R(b,a?s+b.e+1:s,u,p)}return b}}();function R(e,n,t,r){var i,o,s,u,a,c,l,f,m,h=e.constructor;e:if(null!=n){if(!(f=e.d))return e;for(i=1,u=f[0];u>=10;u/=10)i++;if((o=n-i)<0)o+=7,s=n,a=(l=f[m=0])/b(10,i-s-1)%10|0;else if((m=Math.ceil((o+1)/7))>=(u=f.length)){if(!r)break e;for(;u++<=m;)f.push(0);l=a=0,i=1,s=(o%=7)-7+1}else{for(l=u=f[m],i=1;u>=10;u/=10)i++;a=(s=(o%=7)-7+i)<0?0:l/b(10,i-s-1)%10|0}if(r=r||n<0||void 0!==f[m+1]||(s<0?l:l%b(10,i-s-1)),c=t<4?(a||r)&&(0==t||t==(e.s<0?3:2)):a>5||5==a&&(4==t||r||6==t&&(o>0?s>0?l/b(10,i-s):0:f[m-1])%10&1||t==(e.s<0?8:7)),n<1||!f[0])return f.length=0,c?(n-=e.e+1,f[0]=b(10,(7-n%7)%7),e.e=-n||0):f[0]=e.e=0,e;if(0==o?(f.length=m,u=1,m--):(f.length=m+1,u=b(10,7-o),f[m]=s>0?(l/b(10,i-s)%b(10,s)|0)*u:0),c)for(;;){if(0==m){for(o=1,s=f[0];s>=10;s/=10)o++;for(s=f[0]+=u,u=1;s>=10;s/=10)u++;o!=u&&(e.e++,f[0]==P&&(f[0]=1));break}if(f[m]+=u,f[m]!=P)break;f[m--]=0,u=1}for(o=f.length;0===f[--o];)f.pop()}return d&&(e.e>h.maxE?(e.d=null,e.e=NaN):e.e<h.minE&&(e.e=0,e.d=[0])),e}function I(e,n,t){if(!e.isFinite())return V(e);var r,i=e.e,o=M(e.d),s=o.length;return n?(t&&(r=t-s)>0?o=o.charAt(0)+"."+o.slice(1)+Z(r):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+Z(-i-1)+o,t&&(r=t-s)>0&&(o+=Z(r))):i>=s?(o+=Z(i+1-s),t&&(r=t-i-1)>0&&(o=o+"."+Z(r))):((r=i+1)<s&&(o=o.slice(0,r)+"."+o.slice(r)),t&&(r=t-s)>0&&(i+1===s&&(o+="."),o+=Z(r))),o}function q(e,n){var t=e[0];for(n*=7;t>=10;t/=10)n++;return n}function A(e,n,t){if(n>E)throw d=!0,t&&(e.precision=t),Error(p);return R(new e(c),n,1,!0)}function k(e,n,t){if(n>x)throw Error(p);return R(new e(l),n,t,!0)}function j(e){var n=e.length-1,t=7*n+1;if(n=e[n]){for(;n%10==0;n/=10)t--;for(n=e[0];n>=10;n/=10)t++}return t}function Z(e){for(var n="";e--;)n+="0";return n}function U(e,n,t,r){var i,o=new e(1),s=Math.ceil(r/7+4);for(d=!1;;){if(t%2&&X((o=o.times(n)).d,s)&&(i=!0),0===(t=v(t/2))){t=o.d.length-1,i&&0===o.d[t]&&++o.d[t];break}X((n=n.times(n)).d,s)}return d=!0,o}function C(e){return 1&e.d[e.d.length-1]}function H(e,n,t){for(var r,i=new e(n[0]),o=0;++o<n.length;){if(!(r=new e(n[o])).s){i=r;break}i[t](r)&&(i=r)}return i}function K(e,n){var t,r,i,o,s,u,a,c=0,l=0,f=0,m=e.constructor,h=m.rounding,p=m.precision;if(!e.d||!e.d[0]||e.e>17)return new m(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==n?(d=!1,a=p):a=n,u=new m(.03125);e.e>-2;)e=e.times(u),f+=5;for(a+=r=Math.log(b(2,f))/Math.LN10*2+5|0,t=o=s=new m(1),m.precision=a;;){if(o=R(o.times(e),a,1),t=t.times(++l),M((u=s.plus(T(o,t,a,1))).d).slice(0,a)===M(s.d).slice(0,a)){for(i=f;i--;)s=R(s.times(s),a,1);if(null!=n)return m.precision=p,s;if(!(c<3&&L(s.d,a-r,h,c)))return R(s,m.precision=p,h,d=!0);m.precision=a+=10,t=o=u=new m(1),l=0,c++}s=u}}function B(e,n){var t,r,i,o,s,u,a,c,l,f,m,h=1,p=e,g=p.d,w=p.constructor,v=w.rounding,b=w.precision;if(p.s<0||!g||!g[0]||!p.e&&1==g[0]&&1==g.length)return new w(g&&!g[0]?-1/0:1!=p.s?NaN:g?0:p);if(null==n?(d=!1,l=b):l=n,w.precision=l+=10,r=(t=M(g)).charAt(0),!(Math.abs(o=p.e)<15e14))return c=A(w,l+2,b).times(o+""),p=B(new w(r+"."+t.slice(1)),l-10).plus(c),w.precision=b,null==n?R(p,b,v,d=!0):p;for(;r<7&&1!=r||1==r&&t.charAt(1)>3;)r=(t=M((p=p.times(e)).d)).charAt(0),h++;for(o=p.e,r>1?(p=new w("0."+t),o++):p=new w(r+"."+t.slice(1)),f=p,a=s=p=T(p.minus(1),p.plus(1),l,1),m=R(p.times(p),l,1),i=3;;){if(s=R(s.times(m),l,1),M((c=a.plus(T(s,new w(i),l,1))).d).slice(0,l)===M(a.d).slice(0,l)){if(a=a.times(2),0!==o&&(a=a.plus(A(w,l+2,b).times(o+""))),a=T(a,new w(h),l,1),null!=n)return w.precision=b,a;if(!L(a.d,l-10,v,u))return R(a,w.precision=b,v,d=!0);w.precision=l+=10,c=s=p=T(f.minus(1),f.plus(1),l,1),m=R(p.times(p),l,1),i=u=1}a=c,i+=2}}function V(e){return String(e.s*e.s/0)}function W(e,n){var t,r,i;for((t=n.indexOf("."))>-1&&(n=n.replace(".","")),(r=n.search(/e/i))>0?(t<0&&(t=r),t+=+n.slice(r+1),n=n.substring(0,r)):t<0&&(t=n.length),r=0;48===n.charCodeAt(r);r++);for(i=n.length;48===n.charCodeAt(i-1);--i);if(n=n.slice(r,i)){if(i-=r,e.e=t=t-r-1,e.d=[],r=(t+1)%7,t<0&&(r+=7),r<i){for(r&&e.d.push(+n.slice(0,r)),i-=7;r<i;)e.d.push(+n.slice(r,r+=7));r=7-(n=n.slice(r)).length}else r-=i;for(;r--;)n+="0";e.d.push(+n),d&&(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 Y(e,n){var r,i,o,s,u,a,c,l,f;if(n.indexOf("_")>-1){if(n=n.replace(/(\d)_(?=\d)/g,"$1"),D.test(n))return W(e,n)}else if("Infinity"===n||"NaN"===n)return+n||(e.s=NaN),e.e=NaN,e.d=null,e;if(y.test(n))r=16,n=n.toLowerCase();else if(N.test(n))r=2;else{if(!F.test(n))throw Error(h+n);r=8}for((s=n.search(/p/i))>0?(c=+n.slice(s+1),n=n.substring(2,s)):n=n.slice(2),u=(s=n.indexOf("."))>=0,i=e.constructor,u&&(s=(a=(n=n.replace(".","")).length)-s,o=U(i,new i(r),s,2*s)),s=f=(l=_(n,r,P)).length-1;0===l[s];--s)l.pop();return s<0?new i(0*e.s):(e.e=q(l,f),e.d=l,d=!1,u&&(e=T(e,o,4*a)),c&&(e=e.times(Math.abs(c)<54?b(2,c):t.pow(2,c))),d=!0,e)}function G(e,n,t,r,i){var o,s,u,a,c=e.precision,l=Math.ceil(c/7);for(d=!1,a=t.times(t),u=new e(r);;){if(s=T(u.times(a),new e(n++*n++),c,1),u=i?r.plus(s):r.minus(s),r=T(s.times(a),new e(n++*n++),c,1),void 0!==(s=u.plus(r)).d[l]){for(o=l;s.d[o]===u.d[o]&&o--;);if(-1==o)break}o=u,u=r,r=s,s=o}return d=!0,s.d.length=l+1,s}function $(e,n){for(var t=e;--n;)t*=e;return t}function z(e,n){var t,r=n.s<0,i=k(e,e.precision,1),s=i.times(.5);if((n=n.abs()).lte(s))return o=r?4:1,n;if((t=n.divToInt(i)).isZero())o=r?3:2;else{if((n=n.minus(t.times(i))).lte(s))return o=C(t)?r?2:3:r?4:1,n;o=C(t)?r?1:4:r?3:2}return n.minus(i).abs()}function J(e,n,t,i){var o,s,c,l,f,d,m,h,p,g=e.constructor,w=void 0!==t;if(w?(O(t,1,u),void 0===i?i=g.rounding:O(i,0,8)):(t=g.precision,i=g.rounding),e.isFinite()){for(w?(o=2,16==n?t=4*t-3:8==n&&(t=3*t-2)):o=n,(c=(m=I(e)).indexOf("."))>=0&&(m=m.replace(".",""),(p=new g(1)).e=m.length-c,p.d=_(I(p),10,o),p.e=p.d.length),s=f=(h=_(m,10,o)).length;0==h[--f];)h.pop();if(h[0]){if(c<0?s--:((e=new g(e)).d=h,e.e=s,h=(e=T(e,p,t,i,0,o)).d,s=e.e,d=r),c=h[t],l=o/2,d=d||void 0!==h[t+1],d=i<4?(void 0!==c||d)&&(0===i||i===(e.s<0?3:2)):c>l||c===l&&(4===i||d||6===i&&1&h[t-1]||i===(e.s<0?8:7)),h.length=t,d)for(;++h[--t]>o-1;)h[t]=0,t||(++s,h.unshift(1));for(f=h.length;!h[f-1];--f);for(c=0,m="";c<f;c++)m+=a.charAt(h[c]);if(w){if(f>1)if(16==n||8==n){for(c=16==n?4:3,--f;f%c;f++)m+="0";for(f=(h=_(m,o,n)).length;!h[f-1];--f);for(c=1,m="1.";c<f;c++)m+=a.charAt(h[c])}else m=m.charAt(0)+"."+m.slice(1);m=m+(s<0?"p":"p+")+s}else if(s<0){for(;++s;)m="0"+m;m="0."+m}else if(++s>f)for(s-=f;s--;)m+="0";else s<f&&(m=m.slice(0,s)+"."+m.slice(s))}else m=w?"0p+0":"0";m=(16==n?"0x":2==n?"0b":8==n?"0o":"")+m}else m=V(e);return e.s<0?"-"+m:m}function X(e,n){if(e.length>n)return e.length=n,!0}function Q(e){return new this(e).abs()}function ee(e){return new this(e).acos()}function ne(e){return new this(e).acosh()}function te(e,n){return new this(e).plus(n)}function re(e){return new this(e).asin()}function ie(e){return new this(e).asinh()}function oe(e){return new this(e).atan()}function se(e){return new this(e).atanh()}function ue(e,n){e=new this(e),n=new this(n);var t,r=this.precision,i=this.rounding,o=r+4;return e.s&&n.s?e.d||n.d?!n.d||e.isZero()?(t=n.s<0?k(this,r,i):new this(0)).s=e.s:!e.d||n.isZero()?(t=k(this,o,1).times(.5)).s=e.s:n.s<0?(this.precision=o,this.rounding=1,t=this.atan(T(e,n,o,1)),n=k(this,o,1),this.precision=r,this.rounding=i,t=e.s<0?t.minus(n):t.plus(n)):t=this.atan(T(e,n,o,1)):(t=k(this,o,1).times(n.s>0?.25:.75)).s=e.s:t=new this(NaN),t}function ae(e){return new this(e).cbrt()}function ce(e){return R(e=new this(e),e.e+1,2)}function le(e,n,t){return new this(e).clamp(n,t)}function fe(e){if(!e||"object"!=typeof e)throw Error(m+"Object expected");var n,t,r,i=!0===e.defaults,o=["precision",1,u,"rounding",0,8,"toExpNeg",-s,0,"toExpPos",0,s,"maxE",0,s,"minE",-s,0,"modulo",0,9];for(n=0;n<o.length;n+=3)if(t=o[n],i&&(this[t]=f[t]),void 0!==(r=e[t])){if(!(v(r)===r&&r>=o[n+1]&&r<=o[n+2]))throw Error(h+t+": "+r);this[t]=r}if(t="crypto",i&&(this[t]=f[t]),void 0!==(r=e[t])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(h+t+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(g);this[t]=!0}else this[t]=!1}return this}function de(e){return new this(e).cos()}function me(e){return new this(e).cosh()}function he(e,n){return new this(e).div(n)}function pe(e){return new this(e).exp()}function ge(e){return R(e=new this(e),e.e+1,3)}function we(){var e,n,t=new this(0);for(d=!1,e=0;e<arguments.length;)if((n=new this(arguments[e++])).d)t.d&&(t=t.plus(n.times(n)));else{if(n.s)return d=!0,new this(1/0);t=n}return d=!0,t.sqrt()}function ve(e){return e instanceof t||e&&e.toStringTag===w||!1}function be(e){return new this(e).ln()}function Ne(e,n){return new this(e).log(n)}function ye(e){return new this(e).log(2)}function Fe(e){return new this(e).log(10)}function De(){return H(this,arguments,"lt")}function Pe(){return H(this,arguments,"gt")}function Ee(e,n){return new this(e).mod(n)}function xe(e,n){return new this(e).mul(n)}function Se(e,n){return new this(e).pow(n)}function Me(e){var n,t,r,i,o=0,s=new this(1),a=[];if(void 0===e?e=this.precision:O(e,1,u),r=Math.ceil(e/7),this.crypto)if(crypto.getRandomValues)for(n=crypto.getRandomValues(new Uint32Array(r));o<r;)(i=n[o])>=429e7?n[o]=crypto.getRandomValues(new Uint32Array(1))[0]:a[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error(g);for(n=crypto.randomBytes(r*=4);o<r;)(i=n[o]+(n[o+1]<<8)+(n[o+2]<<16)+((127&n[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(n,o):(a.push(i%1e7),o+=4);o=r/4}else for(;o<r;)a[o++]=1e7*Math.random()|0;for(e%=7,(r=a[--o])&&e&&(i=b(10,7-e),a[o]=(r/i|0)*i);0===a[o];o--)a.pop();if(o<0)t=0,a=[0];else{for(t=-1;0===a[0];t-=7)a.shift();for(r=1,i=a[0];i>=10;i/=10)r++;r<7&&(t-=7-r)}return s.e=t,s.d=a,s}function Oe(e){return R(e=new this(e),e.e+1,this.rounding)}function Le(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function _e(e){return new this(e).sin()}function Te(e){return new this(e).sinh()}function Re(e){return new this(e).sqrt()}function Ie(e,n){return new this(e).sub(n)}function qe(){var e=0,n=arguments,t=new this(n[e]);for(d=!1;t.s&&++e<n.length;)t=t.plus(n[e]);return d=!0,R(t,this.precision,this.rounding)}function Ae(e){return new this(e).tan()}function ke(e){return new this(e).tanh()}function je(e){return R(e=new this(e),e.e+1,1)}t=function e(n){var t,r,i;function o(e){var n,t,r,i=this;if(!(i instanceof o))return new o(e);if(i.constructor=o,ve(e))return i.s=e.s,void(d?!e.d||e.e>o.maxE?(i.e=NaN,i.d=null):e.e<o.minE?(i.e=0,i.d=[0]):(i.e=e.e,i.d=e.d.slice()):(i.e=e.e,i.d=e.d?e.d.slice():e.d));if("number"===(r=typeof e)){if(0===e)return i.s=1/e<0?-1:1,i.e=0,void(i.d=[0]);if(e<0?(e=-e,i.s=-1):i.s=1,e===~~e&&e<1e7){for(n=0,t=e;t>=10;t/=10)n++;return void(d?n>o.maxE?(i.e=NaN,i.d=null):n<o.minE?(i.e=0,i.d=[0]):(i.e=n,i.d=[e]):(i.e=n,i.d=[e]))}return 0*e!=0?(e||(i.s=NaN),i.e=NaN,void(i.d=null)):W(i,e.toString())}if("string"!==r)throw Error(h+e);return 45===(t=e.charCodeAt(0))?(e=e.slice(1),i.s=-1):(43===t&&(e=e.slice(1)),i.s=1),D.test(e)?W(i,e):Y(i,e)}if(o.prototype=S,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=fe,o.clone=e,o.isDecimal=ve,o.abs=Q,o.acos=ee,o.acosh=ne,o.add=te,o.asin=re,o.asinh=ie,o.atan=oe,o.atanh=se,o.atan2=ue,o.cbrt=ae,o.ceil=ce,o.clamp=le,o.cos=de,o.cosh=me,o.div=he,o.exp=pe,o.floor=ge,o.hypot=we,o.ln=be,o.log=Ne,o.log10=Fe,o.log2=ye,o.max=De,o.min=Pe,o.mod=Ee,o.mul=xe,o.pow=Se,o.random=Me,o.round=Oe,o.sign=Le,o.sin=_e,o.sinh=Te,o.sqrt=Re,o.sub=Ie,o.sum=qe,o.tan=Ae,o.tanh=ke,o.trunc=je,void 0===n&&(n={}),n&&!0!==n.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],t=0;t<i.length;)n.hasOwnProperty(r=i[t++])||(n[r]=this[r]);return o.config(n),o}(f),t.prototype.constructor=t,t.default=t.Decimal=t,c=new t(c),l=new t(l),"function"==typeof define&&define.amd?define((function(){return t})):e.exports?("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator&&(S[Symbol.for("nodejs.util.inspect.custom")]=S.toString,S[Symbol.toStringTag]="Decimal"),e.exports=t):(n||(n="undefined"!=typeof self&&self&&self.self==self?self:window),i=n.Decimal,t.noConflict=function(){return n.Decimal=i,t},n.Decimal=t)}(this)}};
//# sourceMappingURL=831.22bf65357a78128d.js.map