@everymatrix/player-elevate-points-history 1.76.3 → 1.76.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/bonus-pagination-limits_6.cjs.entry.js +102 -85
- package/dist/esm/bonus-pagination-limits_6.entry.js +102 -85
- package/dist/player-elevate-points-history/bonus-pagination-limits_6.entry.js +3 -3
- package/package.json +1 -1
- /package/dist/types/Users/{sebastian.strulea/Documents/work → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
- /package/dist/types/Users/{sebastian.strulea/Documents/work → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/stencil.config.d.ts +0 -0
- /package/dist/types/Users/{sebastian.strulea/Documents/work → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/stencil.config.dev.d.ts +0 -0
- /package/dist/types/Users/{sebastian.strulea/Documents/work → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/storybook/main.d.ts +0 -0
- /package/dist/types/Users/{sebastian.strulea/Documents/work → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/storybook/preview.d.ts +0 -0
- /package/dist/types/Users/{sebastian.strulea/Documents/work → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{sebastian.strulea/Documents/work → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{sebastian.strulea/Documents/work → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{sebastian.strulea/Documents/work → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1174,10 +1174,10 @@ var decimal = {exports: {}};
|
|
|
1174
1174
|
|
|
1175
1175
|
|
|
1176
1176
|
/*!
|
|
1177
|
-
* decimal.js v10.
|
|
1177
|
+
* decimal.js v10.5.0
|
|
1178
1178
|
* An arbitrary-precision Decimal type for JavaScript.
|
|
1179
1179
|
* https://github.com/MikeMcl/decimal.js
|
|
1180
|
-
* Copyright (c)
|
|
1180
|
+
* Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
|
|
1181
1181
|
* MIT Licence
|
|
1182
1182
|
*/
|
|
1183
1183
|
|
|
@@ -1389,8 +1389,8 @@ var decimal = {exports: {}};
|
|
|
1389
1389
|
* Return a new Decimal whose value is the value of this Decimal clamped to the range
|
|
1390
1390
|
* delineated by `min` and `max`.
|
|
1391
1391
|
*
|
|
1392
|
-
* min {number|string|Decimal}
|
|
1393
|
-
* max {number|string|Decimal}
|
|
1392
|
+
* min {number|string|bigint|Decimal}
|
|
1393
|
+
* max {number|string|bigint|Decimal}
|
|
1394
1394
|
*
|
|
1395
1395
|
*/
|
|
1396
1396
|
P.clampedTo = P.clamp = function (min, max) {
|
|
@@ -1894,8 +1894,7 @@ var decimal = {exports: {}};
|
|
|
1894
1894
|
*
|
|
1895
1895
|
*/
|
|
1896
1896
|
P.inverseCosine = P.acos = function () {
|
|
1897
|
-
var
|
|
1898
|
-
x = this,
|
|
1897
|
+
var x = this,
|
|
1899
1898
|
Ctor = x.constructor,
|
|
1900
1899
|
k = x.abs().cmp(1),
|
|
1901
1900
|
pr = Ctor.precision,
|
|
@@ -1916,13 +1915,13 @@ var decimal = {exports: {}};
|
|
|
1916
1915
|
Ctor.precision = pr + 6;
|
|
1917
1916
|
Ctor.rounding = 1;
|
|
1918
1917
|
|
|
1919
|
-
|
|
1920
|
-
|
|
1918
|
+
// See https://github.com/MikeMcl/decimal.js/pull/217
|
|
1919
|
+
x = new Ctor(1).minus(x).div(x.plus(1)).sqrt().atan();
|
|
1921
1920
|
|
|
1922
1921
|
Ctor.precision = pr;
|
|
1923
1922
|
Ctor.rounding = rm;
|
|
1924
1923
|
|
|
1925
|
-
return
|
|
1924
|
+
return x.times(2);
|
|
1926
1925
|
};
|
|
1927
1926
|
|
|
1928
1927
|
|
|
@@ -2296,7 +2295,7 @@ var decimal = {exports: {}};
|
|
|
2296
2295
|
* log[b](Infinity) = Infinity
|
|
2297
2296
|
* log[b](NaN) = NaN
|
|
2298
2297
|
*
|
|
2299
|
-
* [base] {number|string|Decimal} The base of the logarithm.
|
|
2298
|
+
* [base] {number|string|bigint|Decimal} The base of the logarithm.
|
|
2300
2299
|
*
|
|
2301
2300
|
*/
|
|
2302
2301
|
P.logarithm = P.log = function (base) {
|
|
@@ -2390,11 +2389,11 @@ var decimal = {exports: {}};
|
|
|
2390
2389
|
/*
|
|
2391
2390
|
* Return a new Decimal whose value is the maximum of the arguments and the value of this Decimal.
|
|
2392
2391
|
*
|
|
2393
|
-
* arguments {number|string|Decimal}
|
|
2392
|
+
* arguments {number|string|bigint|Decimal}
|
|
2394
2393
|
*
|
|
2395
2394
|
P.max = function () {
|
|
2396
2395
|
Array.prototype.push.call(arguments, this);
|
|
2397
|
-
return maxOrMin(this.constructor, arguments,
|
|
2396
|
+
return maxOrMin(this.constructor, arguments, -1);
|
|
2398
2397
|
};
|
|
2399
2398
|
*/
|
|
2400
2399
|
|
|
@@ -2402,11 +2401,11 @@ var decimal = {exports: {}};
|
|
|
2402
2401
|
/*
|
|
2403
2402
|
* Return a new Decimal whose value is the minimum of the arguments and the value of this Decimal.
|
|
2404
2403
|
*
|
|
2405
|
-
* arguments {number|string|Decimal}
|
|
2404
|
+
* arguments {number|string|bigint|Decimal}
|
|
2406
2405
|
*
|
|
2407
2406
|
P.min = function () {
|
|
2408
2407
|
Array.prototype.push.call(arguments, this);
|
|
2409
|
-
return maxOrMin(this.constructor, arguments,
|
|
2408
|
+
return maxOrMin(this.constructor, arguments, 1);
|
|
2410
2409
|
};
|
|
2411
2410
|
*/
|
|
2412
2411
|
|
|
@@ -3225,7 +3224,7 @@ var decimal = {exports: {}};
|
|
|
3225
3224
|
* denominator. If a maximum denominator is not specified, the denominator will be the lowest
|
|
3226
3225
|
* value necessary to represent the number exactly.
|
|
3227
3226
|
*
|
|
3228
|
-
* [maxD] {number|string|Decimal} Maximum denominator. Integer >= 1 and < Infinity.
|
|
3227
|
+
* [maxD] {number|string|bigint|Decimal} Maximum denominator. Integer >= 1 and < Infinity.
|
|
3229
3228
|
*
|
|
3230
3229
|
*/
|
|
3231
3230
|
P.toFraction = function (maxD) {
|
|
@@ -3313,7 +3312,7 @@ var decimal = {exports: {}};
|
|
|
3313
3312
|
*
|
|
3314
3313
|
* The return value is not affected by the value of `precision`.
|
|
3315
3314
|
*
|
|
3316
|
-
* y {number|string|Decimal} The magnitude to round to a multiple of.
|
|
3315
|
+
* y {number|string|bigint|Decimal} The magnitude to round to a multiple of.
|
|
3317
3316
|
* [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
|
|
3318
3317
|
*
|
|
3319
3318
|
* 'toNearest() rounding mode not an integer: {rm}'
|
|
@@ -3433,7 +3432,7 @@ var decimal = {exports: {}};
|
|
|
3433
3432
|
*
|
|
3434
3433
|
* If a result is incorrectly rounded the maximum error will be 1 ulp (unit in last place).
|
|
3435
3434
|
*
|
|
3436
|
-
* y {number|string|Decimal} The power to which to raise this Decimal.
|
|
3435
|
+
* y {number|string|bigint|Decimal} The power to which to raise this Decimal.
|
|
3437
3436
|
*
|
|
3438
3437
|
*/
|
|
3439
3438
|
P.toPower = P.pow = function (y) {
|
|
@@ -4417,19 +4416,25 @@ var decimal = {exports: {}};
|
|
|
4417
4416
|
|
|
4418
4417
|
|
|
4419
4418
|
/*
|
|
4420
|
-
* Handle `max` and `min
|
|
4419
|
+
* Handle `max` (`n` is -1) and `min` (`n` is 1).
|
|
4421
4420
|
*/
|
|
4422
|
-
function maxOrMin(Ctor, args,
|
|
4423
|
-
var y,
|
|
4421
|
+
function maxOrMin(Ctor, args, n) {
|
|
4422
|
+
var k, y,
|
|
4424
4423
|
x = new Ctor(args[0]),
|
|
4425
4424
|
i = 0;
|
|
4426
4425
|
|
|
4427
4426
|
for (; ++i < args.length;) {
|
|
4428
4427
|
y = new Ctor(args[i]);
|
|
4428
|
+
|
|
4429
|
+
// NaN?
|
|
4429
4430
|
if (!y.s) {
|
|
4430
4431
|
x = y;
|
|
4431
4432
|
break;
|
|
4432
|
-
}
|
|
4433
|
+
}
|
|
4434
|
+
|
|
4435
|
+
k = x.cmp(y);
|
|
4436
|
+
|
|
4437
|
+
if (k === n || k === 0 && x.s === n) {
|
|
4433
4438
|
x = y;
|
|
4434
4439
|
}
|
|
4435
4440
|
}
|
|
@@ -4688,6 +4693,8 @@ var decimal = {exports: {}};
|
|
|
4688
4693
|
function parseDecimal(x, str) {
|
|
4689
4694
|
var e, i, len;
|
|
4690
4695
|
|
|
4696
|
+
// TODO BigInt str: no need to check for decimal point, exponential form or leading zeros.
|
|
4697
|
+
|
|
4691
4698
|
// Decimal point?
|
|
4692
4699
|
if ((e = str.indexOf('.')) > -1) str = str.replace('.', '');
|
|
4693
4700
|
|
|
@@ -5153,7 +5160,7 @@ var decimal = {exports: {}};
|
|
|
5153
5160
|
/*
|
|
5154
5161
|
* Return a new Decimal whose value is the absolute value of `x`.
|
|
5155
5162
|
*
|
|
5156
|
-
* x {number|string|Decimal}
|
|
5163
|
+
* x {number|string|bigint|Decimal}
|
|
5157
5164
|
*
|
|
5158
5165
|
*/
|
|
5159
5166
|
function abs(x) {
|
|
@@ -5164,7 +5171,7 @@ var decimal = {exports: {}};
|
|
|
5164
5171
|
/*
|
|
5165
5172
|
* Return a new Decimal whose value is the arccosine in radians of `x`.
|
|
5166
5173
|
*
|
|
5167
|
-
* x {number|string|Decimal}
|
|
5174
|
+
* x {number|string|bigint|Decimal}
|
|
5168
5175
|
*
|
|
5169
5176
|
*/
|
|
5170
5177
|
function acos(x) {
|
|
@@ -5176,7 +5183,7 @@ var decimal = {exports: {}};
|
|
|
5176
5183
|
* Return a new Decimal whose value is the inverse of the hyperbolic cosine of `x`, rounded to
|
|
5177
5184
|
* `precision` significant digits using rounding mode `rounding`.
|
|
5178
5185
|
*
|
|
5179
|
-
* x {number|string|Decimal} A value in radians.
|
|
5186
|
+
* x {number|string|bigint|Decimal} A value in radians.
|
|
5180
5187
|
*
|
|
5181
5188
|
*/
|
|
5182
5189
|
function acosh(x) {
|
|
@@ -5188,8 +5195,8 @@ var decimal = {exports: {}};
|
|
|
5188
5195
|
* Return a new Decimal whose value is the sum of `x` and `y`, rounded to `precision` significant
|
|
5189
5196
|
* digits using rounding mode `rounding`.
|
|
5190
5197
|
*
|
|
5191
|
-
* x {number|string|Decimal}
|
|
5192
|
-
* y {number|string|Decimal}
|
|
5198
|
+
* x {number|string|bigint|Decimal}
|
|
5199
|
+
* y {number|string|bigint|Decimal}
|
|
5193
5200
|
*
|
|
5194
5201
|
*/
|
|
5195
5202
|
function add(x, y) {
|
|
@@ -5201,7 +5208,7 @@ var decimal = {exports: {}};
|
|
|
5201
5208
|
* Return a new Decimal whose value is the arcsine in radians of `x`, rounded to `precision`
|
|
5202
5209
|
* significant digits using rounding mode `rounding`.
|
|
5203
5210
|
*
|
|
5204
|
-
* x {number|string|Decimal}
|
|
5211
|
+
* x {number|string|bigint|Decimal}
|
|
5205
5212
|
*
|
|
5206
5213
|
*/
|
|
5207
5214
|
function asin(x) {
|
|
@@ -5213,7 +5220,7 @@ var decimal = {exports: {}};
|
|
|
5213
5220
|
* Return a new Decimal whose value is the inverse of the hyperbolic sine of `x`, rounded to
|
|
5214
5221
|
* `precision` significant digits using rounding mode `rounding`.
|
|
5215
5222
|
*
|
|
5216
|
-
* x {number|string|Decimal} A value in radians.
|
|
5223
|
+
* x {number|string|bigint|Decimal} A value in radians.
|
|
5217
5224
|
*
|
|
5218
5225
|
*/
|
|
5219
5226
|
function asinh(x) {
|
|
@@ -5225,7 +5232,7 @@ var decimal = {exports: {}};
|
|
|
5225
5232
|
* Return a new Decimal whose value is the arctangent in radians of `x`, rounded to `precision`
|
|
5226
5233
|
* significant digits using rounding mode `rounding`.
|
|
5227
5234
|
*
|
|
5228
|
-
* x {number|string|Decimal}
|
|
5235
|
+
* x {number|string|bigint|Decimal}
|
|
5229
5236
|
*
|
|
5230
5237
|
*/
|
|
5231
5238
|
function atan(x) {
|
|
@@ -5237,7 +5244,7 @@ var decimal = {exports: {}};
|
|
|
5237
5244
|
* Return a new Decimal whose value is the inverse of the hyperbolic tangent of `x`, rounded to
|
|
5238
5245
|
* `precision` significant digits using rounding mode `rounding`.
|
|
5239
5246
|
*
|
|
5240
|
-
* x {number|string|Decimal} A value in radians.
|
|
5247
|
+
* x {number|string|bigint|Decimal} A value in radians.
|
|
5241
5248
|
*
|
|
5242
5249
|
*/
|
|
5243
5250
|
function atanh(x) {
|
|
@@ -5252,8 +5259,8 @@ var decimal = {exports: {}};
|
|
|
5252
5259
|
* Domain: [-Infinity, Infinity]
|
|
5253
5260
|
* Range: [-pi, pi]
|
|
5254
5261
|
*
|
|
5255
|
-
* y {number|string|Decimal} The y-coordinate.
|
|
5256
|
-
* x {number|string|Decimal} The x-coordinate.
|
|
5262
|
+
* y {number|string|bigint|Decimal} The y-coordinate.
|
|
5263
|
+
* x {number|string|bigint|Decimal} The x-coordinate.
|
|
5257
5264
|
*
|
|
5258
5265
|
* atan2(±0, -0) = ±pi
|
|
5259
5266
|
* atan2(±0, +0) = ±0
|
|
@@ -5318,7 +5325,7 @@ var decimal = {exports: {}};
|
|
|
5318
5325
|
* Return a new Decimal whose value is the cube root of `x`, rounded to `precision` significant
|
|
5319
5326
|
* digits using rounding mode `rounding`.
|
|
5320
5327
|
*
|
|
5321
|
-
* x {number|string|Decimal}
|
|
5328
|
+
* x {number|string|bigint|Decimal}
|
|
5322
5329
|
*
|
|
5323
5330
|
*/
|
|
5324
5331
|
function cbrt(x) {
|
|
@@ -5329,7 +5336,7 @@ var decimal = {exports: {}};
|
|
|
5329
5336
|
/*
|
|
5330
5337
|
* Return a new Decimal whose value is `x` rounded to an integer using `ROUND_CEIL`.
|
|
5331
5338
|
*
|
|
5332
|
-
* x {number|string|Decimal}
|
|
5339
|
+
* x {number|string|bigint|Decimal}
|
|
5333
5340
|
*
|
|
5334
5341
|
*/
|
|
5335
5342
|
function ceil(x) {
|
|
@@ -5340,9 +5347,9 @@ var decimal = {exports: {}};
|
|
|
5340
5347
|
/*
|
|
5341
5348
|
* Return a new Decimal whose value is `x` clamped to the range delineated by `min` and `max`.
|
|
5342
5349
|
*
|
|
5343
|
-
* x {number|string|Decimal}
|
|
5344
|
-
* min {number|string|Decimal}
|
|
5345
|
-
* max {number|string|Decimal}
|
|
5350
|
+
* x {number|string|bigint|Decimal}
|
|
5351
|
+
* min {number|string|bigint|Decimal}
|
|
5352
|
+
* max {number|string|bigint|Decimal}
|
|
5346
5353
|
*
|
|
5347
5354
|
*/
|
|
5348
5355
|
function clamp(x, min, max) {
|
|
@@ -5416,7 +5423,7 @@ var decimal = {exports: {}};
|
|
|
5416
5423
|
* Return a new Decimal whose value is the cosine of `x`, rounded to `precision` significant
|
|
5417
5424
|
* digits using rounding mode `rounding`.
|
|
5418
5425
|
*
|
|
5419
|
-
* x {number|string|Decimal} A value in radians.
|
|
5426
|
+
* x {number|string|bigint|Decimal} A value in radians.
|
|
5420
5427
|
*
|
|
5421
5428
|
*/
|
|
5422
5429
|
function cos(x) {
|
|
@@ -5428,7 +5435,7 @@ var decimal = {exports: {}};
|
|
|
5428
5435
|
* Return a new Decimal whose value is the hyperbolic cosine of `x`, rounded to precision
|
|
5429
5436
|
* significant digits using rounding mode `rounding`.
|
|
5430
5437
|
*
|
|
5431
|
-
* x {number|string|Decimal} A value in radians.
|
|
5438
|
+
* x {number|string|bigint|Decimal} A value in radians.
|
|
5432
5439
|
*
|
|
5433
5440
|
*/
|
|
5434
5441
|
function cosh(x) {
|
|
@@ -5448,7 +5455,7 @@ var decimal = {exports: {}};
|
|
|
5448
5455
|
* The Decimal constructor and exported function.
|
|
5449
5456
|
* Return a new Decimal instance.
|
|
5450
5457
|
*
|
|
5451
|
-
* v {number|string|Decimal} A numeric value.
|
|
5458
|
+
* v {number|string|bigint|Decimal} A numeric value.
|
|
5452
5459
|
*
|
|
5453
5460
|
*/
|
|
5454
5461
|
function Decimal(v) {
|
|
@@ -5462,7 +5469,6 @@ var decimal = {exports: {}};
|
|
|
5462
5469
|
// which points to Object.
|
|
5463
5470
|
x.constructor = Decimal;
|
|
5464
5471
|
|
|
5465
|
-
// Duplicate.
|
|
5466
5472
|
if (isDecimalInstance(v)) {
|
|
5467
5473
|
x.s = v.s;
|
|
5468
5474
|
|
|
@@ -5527,9 +5533,10 @@ var decimal = {exports: {}};
|
|
|
5527
5533
|
}
|
|
5528
5534
|
|
|
5529
5535
|
return;
|
|
5536
|
+
}
|
|
5530
5537
|
|
|
5531
|
-
// Infinity
|
|
5532
|
-
|
|
5538
|
+
// Infinity or NaN?
|
|
5539
|
+
if (v * 0 !== 0) {
|
|
5533
5540
|
if (!v) x.s = NaN;
|
|
5534
5541
|
x.e = NaN;
|
|
5535
5542
|
x.d = null;
|
|
@@ -5537,22 +5544,32 @@ var decimal = {exports: {}};
|
|
|
5537
5544
|
}
|
|
5538
5545
|
|
|
5539
5546
|
return parseDecimal(x, v.toString());
|
|
5547
|
+
}
|
|
5548
|
+
|
|
5549
|
+
if (t === 'string') {
|
|
5550
|
+
if ((i = v.charCodeAt(0)) === 45) { // minus sign
|
|
5551
|
+
v = v.slice(1);
|
|
5552
|
+
x.s = -1;
|
|
5553
|
+
} else {
|
|
5554
|
+
if (i === 43) v = v.slice(1); // plus sign
|
|
5555
|
+
x.s = 1;
|
|
5556
|
+
}
|
|
5540
5557
|
|
|
5541
|
-
|
|
5542
|
-
throw Error(invalidArgument + v);
|
|
5558
|
+
return isDecimal.test(v) ? parseDecimal(x, v) : parseOther(x, v);
|
|
5543
5559
|
}
|
|
5544
5560
|
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5561
|
+
if (t === 'bigint') {
|
|
5562
|
+
if (v < 0) {
|
|
5563
|
+
v = -v;
|
|
5564
|
+
x.s = -1;
|
|
5565
|
+
} else {
|
|
5566
|
+
x.s = 1;
|
|
5567
|
+
}
|
|
5568
|
+
|
|
5569
|
+
return parseDecimal(x, v.toString());
|
|
5553
5570
|
}
|
|
5554
5571
|
|
|
5555
|
-
|
|
5572
|
+
throw Error(invalidArgument + v);
|
|
5556
5573
|
}
|
|
5557
5574
|
|
|
5558
5575
|
Decimal.prototype = P;
|
|
@@ -5629,8 +5646,8 @@ var decimal = {exports: {}};
|
|
|
5629
5646
|
* Return a new Decimal whose value is `x` divided by `y`, rounded to `precision` significant
|
|
5630
5647
|
* digits using rounding mode `rounding`.
|
|
5631
5648
|
*
|
|
5632
|
-
* x {number|string|Decimal}
|
|
5633
|
-
* y {number|string|Decimal}
|
|
5649
|
+
* x {number|string|bigint|Decimal}
|
|
5650
|
+
* y {number|string|bigint|Decimal}
|
|
5634
5651
|
*
|
|
5635
5652
|
*/
|
|
5636
5653
|
function div(x, y) {
|
|
@@ -5642,7 +5659,7 @@ var decimal = {exports: {}};
|
|
|
5642
5659
|
* Return a new Decimal whose value is the natural exponential of `x`, rounded to `precision`
|
|
5643
5660
|
* significant digits using rounding mode `rounding`.
|
|
5644
5661
|
*
|
|
5645
|
-
* x {number|string|Decimal} The power to which to raise the base of the natural log.
|
|
5662
|
+
* x {number|string|bigint|Decimal} The power to which to raise the base of the natural log.
|
|
5646
5663
|
*
|
|
5647
5664
|
*/
|
|
5648
5665
|
function exp(x) {
|
|
@@ -5653,7 +5670,7 @@ var decimal = {exports: {}};
|
|
|
5653
5670
|
/*
|
|
5654
5671
|
* Return a new Decimal whose value is `x` round to an integer using `ROUND_FLOOR`.
|
|
5655
5672
|
*
|
|
5656
|
-
* x {number|string|Decimal}
|
|
5673
|
+
* x {number|string|bigint|Decimal}
|
|
5657
5674
|
*
|
|
5658
5675
|
*/
|
|
5659
5676
|
function floor(x) {
|
|
@@ -5667,7 +5684,7 @@ var decimal = {exports: {}};
|
|
|
5667
5684
|
*
|
|
5668
5685
|
* hypot(a, b, ...) = sqrt(a^2 + b^2 + ...)
|
|
5669
5686
|
*
|
|
5670
|
-
* arguments {number|string|Decimal}
|
|
5687
|
+
* arguments {number|string|bigint|Decimal}
|
|
5671
5688
|
*
|
|
5672
5689
|
*/
|
|
5673
5690
|
function hypot() {
|
|
@@ -5709,7 +5726,7 @@ var decimal = {exports: {}};
|
|
|
5709
5726
|
* Return a new Decimal whose value is the natural logarithm of `x`, rounded to `precision`
|
|
5710
5727
|
* significant digits using rounding mode `rounding`.
|
|
5711
5728
|
*
|
|
5712
|
-
* x {number|string|Decimal}
|
|
5729
|
+
* x {number|string|bigint|Decimal}
|
|
5713
5730
|
*
|
|
5714
5731
|
*/
|
|
5715
5732
|
function ln(x) {
|
|
@@ -5723,8 +5740,8 @@ var decimal = {exports: {}};
|
|
|
5723
5740
|
*
|
|
5724
5741
|
* log[y](x)
|
|
5725
5742
|
*
|
|
5726
|
-
* x {number|string|Decimal} The argument of the logarithm.
|
|
5727
|
-
* y {number|string|Decimal} The base of the logarithm.
|
|
5743
|
+
* x {number|string|bigint|Decimal} The argument of the logarithm.
|
|
5744
|
+
* y {number|string|bigint|Decimal} The base of the logarithm.
|
|
5728
5745
|
*
|
|
5729
5746
|
*/
|
|
5730
5747
|
function log(x, y) {
|
|
@@ -5736,7 +5753,7 @@ var decimal = {exports: {}};
|
|
|
5736
5753
|
* Return a new Decimal whose value is the base 2 logarithm of `x`, rounded to `precision`
|
|
5737
5754
|
* significant digits using rounding mode `rounding`.
|
|
5738
5755
|
*
|
|
5739
|
-
* x {number|string|Decimal}
|
|
5756
|
+
* x {number|string|bigint|Decimal}
|
|
5740
5757
|
*
|
|
5741
5758
|
*/
|
|
5742
5759
|
function log2(x) {
|
|
@@ -5748,7 +5765,7 @@ var decimal = {exports: {}};
|
|
|
5748
5765
|
* Return a new Decimal whose value is the base 10 logarithm of `x`, rounded to `precision`
|
|
5749
5766
|
* significant digits using rounding mode `rounding`.
|
|
5750
5767
|
*
|
|
5751
|
-
* x {number|string|Decimal}
|
|
5768
|
+
* x {number|string|bigint|Decimal}
|
|
5752
5769
|
*
|
|
5753
5770
|
*/
|
|
5754
5771
|
function log10(x) {
|
|
@@ -5759,22 +5776,22 @@ var decimal = {exports: {}};
|
|
|
5759
5776
|
/*
|
|
5760
5777
|
* Return a new Decimal whose value is the maximum of the arguments.
|
|
5761
5778
|
*
|
|
5762
|
-
* arguments {number|string|Decimal}
|
|
5779
|
+
* arguments {number|string|bigint|Decimal}
|
|
5763
5780
|
*
|
|
5764
5781
|
*/
|
|
5765
5782
|
function max() {
|
|
5766
|
-
return maxOrMin(this, arguments,
|
|
5783
|
+
return maxOrMin(this, arguments, -1);
|
|
5767
5784
|
}
|
|
5768
5785
|
|
|
5769
5786
|
|
|
5770
5787
|
/*
|
|
5771
5788
|
* Return a new Decimal whose value is the minimum of the arguments.
|
|
5772
5789
|
*
|
|
5773
|
-
* arguments {number|string|Decimal}
|
|
5790
|
+
* arguments {number|string|bigint|Decimal}
|
|
5774
5791
|
*
|
|
5775
5792
|
*/
|
|
5776
5793
|
function min() {
|
|
5777
|
-
return maxOrMin(this, arguments,
|
|
5794
|
+
return maxOrMin(this, arguments, 1);
|
|
5778
5795
|
}
|
|
5779
5796
|
|
|
5780
5797
|
|
|
@@ -5782,8 +5799,8 @@ var decimal = {exports: {}};
|
|
|
5782
5799
|
* Return a new Decimal whose value is `x` modulo `y`, rounded to `precision` significant digits
|
|
5783
5800
|
* using rounding mode `rounding`.
|
|
5784
5801
|
*
|
|
5785
|
-
* x {number|string|Decimal}
|
|
5786
|
-
* y {number|string|Decimal}
|
|
5802
|
+
* x {number|string|bigint|Decimal}
|
|
5803
|
+
* y {number|string|bigint|Decimal}
|
|
5787
5804
|
*
|
|
5788
5805
|
*/
|
|
5789
5806
|
function mod(x, y) {
|
|
@@ -5795,8 +5812,8 @@ var decimal = {exports: {}};
|
|
|
5795
5812
|
* Return a new Decimal whose value is `x` multiplied by `y`, rounded to `precision` significant
|
|
5796
5813
|
* digits using rounding mode `rounding`.
|
|
5797
5814
|
*
|
|
5798
|
-
* x {number|string|Decimal}
|
|
5799
|
-
* y {number|string|Decimal}
|
|
5815
|
+
* x {number|string|bigint|Decimal}
|
|
5816
|
+
* y {number|string|bigint|Decimal}
|
|
5800
5817
|
*
|
|
5801
5818
|
*/
|
|
5802
5819
|
function mul(x, y) {
|
|
@@ -5808,8 +5825,8 @@ var decimal = {exports: {}};
|
|
|
5808
5825
|
* Return a new Decimal whose value is `x` raised to the power `y`, rounded to precision
|
|
5809
5826
|
* significant digits using rounding mode `rounding`.
|
|
5810
5827
|
*
|
|
5811
|
-
* x {number|string|Decimal} The base.
|
|
5812
|
-
* y {number|string|Decimal} The exponent.
|
|
5828
|
+
* x {number|string|bigint|Decimal} The base.
|
|
5829
|
+
* y {number|string|bigint|Decimal} The exponent.
|
|
5813
5830
|
*
|
|
5814
5831
|
*/
|
|
5815
5832
|
function pow(x, y) {
|
|
@@ -5927,7 +5944,7 @@ var decimal = {exports: {}};
|
|
|
5927
5944
|
*
|
|
5928
5945
|
* To emulate `Math.round`, set rounding to 7 (ROUND_HALF_CEIL).
|
|
5929
5946
|
*
|
|
5930
|
-
* x {number|string|Decimal}
|
|
5947
|
+
* x {number|string|bigint|Decimal}
|
|
5931
5948
|
*
|
|
5932
5949
|
*/
|
|
5933
5950
|
function round(x) {
|
|
@@ -5943,7 +5960,7 @@ var decimal = {exports: {}};
|
|
|
5943
5960
|
* -0 if x is -0,
|
|
5944
5961
|
* NaN otherwise
|
|
5945
5962
|
*
|
|
5946
|
-
* x {number|string|Decimal}
|
|
5963
|
+
* x {number|string|bigint|Decimal}
|
|
5947
5964
|
*
|
|
5948
5965
|
*/
|
|
5949
5966
|
function sign(x) {
|
|
@@ -5956,7 +5973,7 @@ var decimal = {exports: {}};
|
|
|
5956
5973
|
* Return a new Decimal whose value is the sine of `x`, rounded to `precision` significant digits
|
|
5957
5974
|
* using rounding mode `rounding`.
|
|
5958
5975
|
*
|
|
5959
|
-
* x {number|string|Decimal} A value in radians.
|
|
5976
|
+
* x {number|string|bigint|Decimal} A value in radians.
|
|
5960
5977
|
*
|
|
5961
5978
|
*/
|
|
5962
5979
|
function sin(x) {
|
|
@@ -5968,7 +5985,7 @@ var decimal = {exports: {}};
|
|
|
5968
5985
|
* Return a new Decimal whose value is the hyperbolic sine of `x`, rounded to `precision`
|
|
5969
5986
|
* significant digits using rounding mode `rounding`.
|
|
5970
5987
|
*
|
|
5971
|
-
* x {number|string|Decimal} A value in radians.
|
|
5988
|
+
* x {number|string|bigint|Decimal} A value in radians.
|
|
5972
5989
|
*
|
|
5973
5990
|
*/
|
|
5974
5991
|
function sinh(x) {
|
|
@@ -5980,7 +5997,7 @@ var decimal = {exports: {}};
|
|
|
5980
5997
|
* Return a new Decimal whose value is the square root of `x`, rounded to `precision` significant
|
|
5981
5998
|
* digits using rounding mode `rounding`.
|
|
5982
5999
|
*
|
|
5983
|
-
* x {number|string|Decimal}
|
|
6000
|
+
* x {number|string|bigint|Decimal}
|
|
5984
6001
|
*
|
|
5985
6002
|
*/
|
|
5986
6003
|
function sqrt(x) {
|
|
@@ -5992,8 +6009,8 @@ var decimal = {exports: {}};
|
|
|
5992
6009
|
* Return a new Decimal whose value is `x` minus `y`, rounded to `precision` significant digits
|
|
5993
6010
|
* using rounding mode `rounding`.
|
|
5994
6011
|
*
|
|
5995
|
-
* x {number|string|Decimal}
|
|
5996
|
-
* y {number|string|Decimal}
|
|
6012
|
+
* x {number|string|bigint|Decimal}
|
|
6013
|
+
* y {number|string|bigint|Decimal}
|
|
5997
6014
|
*
|
|
5998
6015
|
*/
|
|
5999
6016
|
function sub(x, y) {
|
|
@@ -6007,7 +6024,7 @@ var decimal = {exports: {}};
|
|
|
6007
6024
|
*
|
|
6008
6025
|
* Only the result is rounded, not the intermediate calculations.
|
|
6009
6026
|
*
|
|
6010
|
-
* arguments {number|string|Decimal}
|
|
6027
|
+
* arguments {number|string|bigint|Decimal}
|
|
6011
6028
|
*
|
|
6012
6029
|
*/
|
|
6013
6030
|
function sum() {
|
|
@@ -6027,7 +6044,7 @@ var decimal = {exports: {}};
|
|
|
6027
6044
|
* Return a new Decimal whose value is the tangent of `x`, rounded to `precision` significant
|
|
6028
6045
|
* digits using rounding mode `rounding`.
|
|
6029
6046
|
*
|
|
6030
|
-
* x {number|string|Decimal} A value in radians.
|
|
6047
|
+
* x {number|string|bigint|Decimal} A value in radians.
|
|
6031
6048
|
*
|
|
6032
6049
|
*/
|
|
6033
6050
|
function tan(x) {
|
|
@@ -6039,7 +6056,7 @@ var decimal = {exports: {}};
|
|
|
6039
6056
|
* Return a new Decimal whose value is the hyperbolic tangent of `x`, rounded to `precision`
|
|
6040
6057
|
* significant digits using rounding mode `rounding`.
|
|
6041
6058
|
*
|
|
6042
|
-
* x {number|string|Decimal} A value in radians.
|
|
6059
|
+
* x {number|string|bigint|Decimal} A value in radians.
|
|
6043
6060
|
*
|
|
6044
6061
|
*/
|
|
6045
6062
|
function tanh(x) {
|
|
@@ -6050,7 +6067,7 @@ var decimal = {exports: {}};
|
|
|
6050
6067
|
/*
|
|
6051
6068
|
* Return a new Decimal whose value is `x` truncated to an integer.
|
|
6052
6069
|
*
|
|
6053
|
-
* x {number|string|Decimal}
|
|
6070
|
+
* x {number|string|bigint|Decimal}
|
|
6054
6071
|
*
|
|
6055
6072
|
*/
|
|
6056
6073
|
function trunc(x) {
|