ADAPT-Chase commited on
Commit
97b1fa9
·
verified ·
1 Parent(s): a303500

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/bitwiseOR.js +14 -0
  2. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/bitwiseXOR.js +14 -0
  3. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/divide.js +20 -0
  4. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/equal.js +13 -0
  5. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/exponentiate.js +29 -0
  6. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/index.js +43 -0
  7. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/leftShift.js +14 -0
  8. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/lessThan.js +14 -0
  9. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/multiply.js +14 -0
  10. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/remainder.js +28 -0
  11. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/sameValue.js +15 -0
  12. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/sameValueZero.js +15 -0
  13. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/signedRightShift.js +15 -0
  14. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/subtract.js +14 -0
  15. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/toString.js +16 -0
  16. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/unaryMinus.js +22 -0
  17. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/unsignedRightShift.js +13 -0
  18. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/add.js +31 -0
  19. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/bitwiseAND.js +14 -0
  20. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/bitwiseNOT.js +16 -0
  21. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/bitwiseOR.js +14 -0
  22. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/bitwiseXOR.js +14 -0
  23. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/divide.js +18 -0
  24. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/equal.js +18 -0
  25. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/exponentiate.js +74 -0
  26. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/index.js +43 -0
  27. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/leftShift.js +22 -0
  28. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/lessThan.js +22 -0
  29. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/multiply.js +29 -0
  30. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/remainder.js +28 -0
  31. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/sameValue.js +18 -0
  32. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/sameValueZero.js +20 -0
  33. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/signedRightShift.js +22 -0
  34. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/subtract.js +15 -0
  35. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/toString.js +16 -0
  36. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/unaryMinus.js +17 -0
  37. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/unsignedRightShift.js +22 -0
  38. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/tables/typed-array-objects.js +36 -0
  39. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2022/BigInt/add.js +14 -0
  40. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2022/BigInt/bitwiseAND.js +14 -0
  41. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2022/BigInt/bitwiseNOT.js +15 -0
  42. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2022/BigInt/bitwiseOR.js +14 -0
  43. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2022/BigInt/bitwiseXOR.js +14 -0
  44. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2022/BigInt/divide.js +20 -0
  45. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2022/BigInt/equal.js +13 -0
  46. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2022/BigInt/exponentiate.js +29 -0
  47. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2022/BigInt/index.js +43 -0
  48. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2022/BigInt/leftShift.js +14 -0
  49. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2022/BigInt/lessThan.js +14 -0
  50. novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2022/BigInt/multiply.js +14 -0
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/bitwiseOR.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ var BigIntBitwiseOp = require('../BigIntBitwiseOp');
6
+
7
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-bitwiseOR
8
+
9
+ module.exports = function BigIntBitwiseOR(x, y) {
10
+ if (typeof x !== 'bigint' || typeof y !== 'bigint') {
11
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
12
+ }
13
+ return BigIntBitwiseOp('|', x, y);
14
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/bitwiseXOR.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ var BigIntBitwiseOp = require('../BigIntBitwiseOp');
6
+
7
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-bitwiseXOR
8
+
9
+ module.exports = function BigIntBitwiseXOR(x, y) {
10
+ if (typeof x !== 'bigint' || typeof y !== 'bigint') {
11
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
12
+ }
13
+ return BigIntBitwiseOp('^', x, y);
14
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/divide.js ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var GetIntrinsic = require('get-intrinsic');
4
+
5
+ var $BigInt = GetIntrinsic('%BigInt%', true);
6
+ var $RangeError = require('es-errors/range');
7
+ var $TypeError = require('es-errors/type');
8
+
9
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-divide
10
+
11
+ module.exports = function BigIntDivide(x, y) {
12
+ if (typeof x !== 'bigint' || typeof y !== 'bigint') {
13
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
14
+ }
15
+ if (y === $BigInt(0)) {
16
+ throw new $RangeError('Division by zero');
17
+ }
18
+ // shortcut for the actual spec mechanics
19
+ return x / y;
20
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/equal.js ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-equal
6
+
7
+ module.exports = function BigIntEqual(x, y) {
8
+ if (typeof x !== 'bigint' || typeof y !== 'bigint') {
9
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
10
+ }
11
+ // shortcut for the actual spec mechanics
12
+ return x === y;
13
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/exponentiate.js ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var GetIntrinsic = require('get-intrinsic');
4
+
5
+ var $BigInt = GetIntrinsic('%BigInt%', true);
6
+ var $RangeError = require('es-errors/range');
7
+ var $TypeError = require('es-errors/type');
8
+
9
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-exponentiate
10
+
11
+ module.exports = function BigIntExponentiate(base, exponent) {
12
+ if (typeof base !== 'bigint' || typeof exponent !== 'bigint') {
13
+ throw new $TypeError('Assertion failed: `base` and `exponent` arguments must be BigInts');
14
+ }
15
+ if (exponent < $BigInt(0)) {
16
+ throw new $RangeError('Exponent must be positive');
17
+ }
18
+ if (/* base === $BigInt(0) && */ exponent === $BigInt(0)) {
19
+ return $BigInt(1);
20
+ }
21
+
22
+ var square = base;
23
+ var remaining = exponent;
24
+ while (remaining > $BigInt(0)) {
25
+ square += exponent;
26
+ --remaining; // eslint-disable-line no-plusplus
27
+ }
28
+ return square;
29
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/index.js ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var add = require('./add');
4
+ var bitwiseAND = require('./bitwiseAND');
5
+ var bitwiseNOT = require('./bitwiseNOT');
6
+ var bitwiseOR = require('./bitwiseOR');
7
+ var bitwiseXOR = require('./bitwiseXOR');
8
+ var divide = require('./divide');
9
+ var equal = require('./equal');
10
+ var exponentiate = require('./exponentiate');
11
+ var leftShift = require('./leftShift');
12
+ var lessThan = require('./lessThan');
13
+ var multiply = require('./multiply');
14
+ var remainder = require('./remainder');
15
+ var sameValue = require('./sameValue');
16
+ var sameValueZero = require('./sameValueZero');
17
+ var signedRightShift = require('./signedRightShift');
18
+ var subtract = require('./subtract');
19
+ var toString = require('./toString');
20
+ var unaryMinus = require('./unaryMinus');
21
+ var unsignedRightShift = require('./unsignedRightShift');
22
+
23
+ module.exports = {
24
+ add: add,
25
+ bitwiseAND: bitwiseAND,
26
+ bitwiseNOT: bitwiseNOT,
27
+ bitwiseOR: bitwiseOR,
28
+ bitwiseXOR: bitwiseXOR,
29
+ divide: divide,
30
+ equal: equal,
31
+ exponentiate: exponentiate,
32
+ leftShift: leftShift,
33
+ lessThan: lessThan,
34
+ multiply: multiply,
35
+ remainder: remainder,
36
+ sameValue: sameValue,
37
+ sameValueZero: sameValueZero,
38
+ signedRightShift: signedRightShift,
39
+ subtract: subtract,
40
+ toString: toString,
41
+ unaryMinus: unaryMinus,
42
+ unsignedRightShift: unsignedRightShift
43
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/leftShift.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-leftShift
6
+
7
+ module.exports = function BigIntLeftShift(x, y) {
8
+ if (typeof x !== 'bigint' || typeof y !== 'bigint') {
9
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
10
+ }
11
+
12
+ // shortcut for the actual spec mechanics
13
+ return x << y;
14
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/lessThan.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-lessThan
6
+
7
+ module.exports = function BigIntLessThan(x, y) {
8
+ if (typeof x !== 'bigint' || typeof y !== 'bigint') {
9
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
10
+ }
11
+
12
+ // shortcut for the actual spec mechanics
13
+ return x < y;
14
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/multiply.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-multiply
6
+
7
+ module.exports = function BigIntMultiply(x, y) {
8
+ if (typeof x !== 'bigint' || typeof y !== 'bigint') {
9
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
10
+ }
11
+
12
+ // shortcut for the actual spec mechanics
13
+ return x * y;
14
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/remainder.js ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var GetIntrinsic = require('get-intrinsic');
4
+
5
+ var $BigInt = GetIntrinsic('%BigInt%', true);
6
+ var $RangeError = require('es-errors/range');
7
+ var $TypeError = require('es-errors/type');
8
+
9
+ var zero = $BigInt && $BigInt(0);
10
+
11
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-remainder
12
+
13
+ module.exports = function BigIntRemainder(n, d) {
14
+ if (typeof n !== 'bigint' || typeof d !== 'bigint') {
15
+ throw new $TypeError('Assertion failed: `n` and `d` arguments must be BigInts');
16
+ }
17
+
18
+ if (d === zero) {
19
+ throw new $RangeError('Division by zero');
20
+ }
21
+
22
+ if (n === zero) {
23
+ return zero;
24
+ }
25
+
26
+ // shortcut for the actual spec mechanics
27
+ return n % d;
28
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/sameValue.js ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ var BigIntEqual = require('./equal');
6
+
7
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-sameValue
8
+
9
+ module.exports = function BigIntSameValue(x, y) {
10
+ if (typeof x !== 'bigint' || typeof y !== 'bigint') {
11
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
12
+ }
13
+
14
+ return BigIntEqual(x, y);
15
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/sameValueZero.js ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ var BigIntEqual = require('./equal');
6
+
7
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-sameValueZero
8
+
9
+ module.exports = function BigIntSameValueZero(x, y) {
10
+ if (typeof x !== 'bigint' || typeof y !== 'bigint') {
11
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
12
+ }
13
+
14
+ return BigIntEqual(x, y);
15
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/signedRightShift.js ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ var BigIntLeftShift = require('./leftShift');
6
+
7
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-signedRightShift
8
+
9
+ module.exports = function BigIntSignedRightShift(x, y) {
10
+ if (typeof x !== 'bigint' || typeof y !== 'bigint') {
11
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
12
+ }
13
+
14
+ return BigIntLeftShift(x, -y);
15
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/subtract.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-subtract
6
+
7
+ module.exports = function BigIntSubtract(x, y) {
8
+ if (typeof x !== 'bigint' || typeof y !== 'bigint') {
9
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
10
+ }
11
+
12
+ // shortcut for the actual spec mechanics
13
+ return x - y;
14
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/toString.js ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var GetIntrinsic = require('get-intrinsic');
4
+
5
+ var $String = GetIntrinsic('%String%');
6
+ var $TypeError = require('es-errors/type');
7
+
8
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-tostring
9
+
10
+ module.exports = function BigIntToString(x) {
11
+ if (typeof x !== 'bigint') {
12
+ throw new $TypeError('Assertion failed: `x` must be a BigInt');
13
+ }
14
+
15
+ return $String(x);
16
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/unaryMinus.js ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var GetIntrinsic = require('get-intrinsic');
4
+
5
+ var $BigInt = GetIntrinsic('%BigInt%', true);
6
+ var $TypeError = require('es-errors/type');
7
+
8
+ var zero = $BigInt && $BigInt(0);
9
+
10
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-unaryMinus
11
+
12
+ module.exports = function BigIntUnaryMinus(x) {
13
+ if (typeof x !== 'bigint') {
14
+ throw new $TypeError('Assertion failed: `x` argument must be a BigInt');
15
+ }
16
+
17
+ if (x === zero) {
18
+ return zero;
19
+ }
20
+
21
+ return -x;
22
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/BigInt/unsignedRightShift.js ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-unsignedRightShift
6
+
7
+ module.exports = function BigIntUnsignedRightShift(x, y) {
8
+ if (typeof x !== 'bigint' || typeof y !== 'bigint') {
9
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
10
+ }
11
+
12
+ throw new $TypeError('BigInts have no unsigned right shift, use >> instead');
13
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/add.js ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+ var isFinite = require('math-intrinsics/isFinite');
5
+ var isNaN = require('math-intrinsics/isNaN');
6
+
7
+ // https://262.ecma-international.org/12.0/#sec-numeric-types-number-add
8
+
9
+ module.exports = function NumberAdd(x, y) {
10
+ if (typeof x !== 'number' || typeof y !== 'number') {
11
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers');
12
+ }
13
+
14
+ if (isNaN(x) || isNaN(y) || (x === Infinity && y === -Infinity) || (x === -Infinity && y === Infinity)) {
15
+ return NaN;
16
+ }
17
+
18
+ if (!isFinite(x)) {
19
+ return x;
20
+ }
21
+ if (!isFinite(y)) {
22
+ return y;
23
+ }
24
+
25
+ if (x === y && x === 0) { // both zeroes
26
+ return Infinity / x === -Infinity && Infinity / y === -Infinity ? -0 : +0;
27
+ }
28
+
29
+ // shortcut for the actual spec mechanics
30
+ return x + y;
31
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/bitwiseAND.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ var NumberBitwiseOp = require('../NumberBitwiseOp');
6
+
7
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-number-bitwiseAND
8
+
9
+ module.exports = function NumberBitwiseAND(x, y) {
10
+ if (typeof x !== 'number' || typeof y !== 'number') {
11
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers');
12
+ }
13
+ return NumberBitwiseOp('&', x, y);
14
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/bitwiseNOT.js ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ var ToInt32 = require('../ToInt32');
6
+
7
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-number-bitwiseNOT
8
+
9
+ module.exports = function NumberBitwiseNOT(x) {
10
+ if (typeof x !== 'number') {
11
+ throw new $TypeError('Assertion failed: `x` argument must be a Number');
12
+ }
13
+ var oldValue = ToInt32(x);
14
+ // Return the result of applying the bitwise operator op to lnum and rnum. The result is a signed 32-bit integer.
15
+ return ~oldValue;
16
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/bitwiseOR.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ var NumberBitwiseOp = require('../NumberBitwiseOp');
6
+
7
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-number-bitwiseOR
8
+
9
+ module.exports = function NumberBitwiseOR(x, y) {
10
+ if (typeof x !== 'number' || typeof y !== 'number') {
11
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers');
12
+ }
13
+ return NumberBitwiseOp('|', x, y);
14
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/bitwiseXOR.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ var NumberBitwiseOp = require('../NumberBitwiseOp');
6
+
7
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-number-bitwiseXOR
8
+
9
+ module.exports = function NumberBitwiseXOR(x, y) {
10
+ if (typeof x !== 'number' || typeof y !== 'number') {
11
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers');
12
+ }
13
+ return NumberBitwiseOp('^', x, y);
14
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/divide.js ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+ var isFinite = require('math-intrinsics/isFinite');
5
+ var isNaN = require('math-intrinsics/isNaN');
6
+
7
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-number-divide
8
+
9
+ module.exports = function NumberDivide(x, y) {
10
+ if (typeof x !== 'number' || typeof y !== 'number') {
11
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers');
12
+ }
13
+ if (isNaN(x) || isNaN(y) || (!isFinite(x) && !isFinite(y))) {
14
+ return NaN;
15
+ }
16
+ // shortcut for the actual spec mechanics
17
+ return x / y;
18
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/equal.js ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ var isNaN = require('../../helpers/isNaN');
6
+
7
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-number-equal
8
+
9
+ module.exports = function NumberEqual(x, y) {
10
+ if (typeof x !== 'number' || typeof y !== 'number') {
11
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers');
12
+ }
13
+ if (isNaN(x) || isNaN(y)) {
14
+ return false;
15
+ }
16
+ // shortcut for the actual spec mechanics
17
+ return x === y;
18
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/exponentiate.js ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ // var isNegativeZero = require('math-intrinsics/isNegativeZero');
4
+ var $pow = require('math-intrinsics/pow');
5
+
6
+ var $TypeError = require('es-errors/type');
7
+
8
+ /*
9
+ var abs = require('math-intrinsics/abs');
10
+ var isFinite = require('math-intrinsics/isFinite');
11
+ var isNaN = require('math-intrinsics/isNaN');
12
+
13
+ var IsInteger = require('math-intrinsics/isInteger');
14
+ */
15
+
16
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-number-exponentiate
17
+
18
+ /* eslint max-lines-per-function: 0, max-statements: 0 */
19
+
20
+ module.exports = function NumberExponentiate(base, exponent) {
21
+ if (typeof base !== 'number' || typeof exponent !== 'number') {
22
+ throw new $TypeError('Assertion failed: `base` and `exponent` arguments must be Numbers');
23
+ }
24
+ return $pow(base, exponent);
25
+ /*
26
+ if (isNaN(exponent)) {
27
+ return NaN;
28
+ }
29
+ if (exponent === 0) {
30
+ return 1;
31
+ }
32
+ if (isNaN(base)) {
33
+ return NaN;
34
+ }
35
+ var aB = abs(base);
36
+ if (aB > 1 && exponent === Infinity) {
37
+ return Infinity;
38
+ }
39
+ if (aB > 1 && exponent === -Infinity) {
40
+ return 0;
41
+ }
42
+ if (aB === 1 && (exponent === Infinity || exponent === -Infinity)) {
43
+ return NaN;
44
+ }
45
+ if (aB < 1 && exponent === Infinity) {
46
+ return +0;
47
+ }
48
+ if (aB < 1 && exponent === -Infinity) {
49
+ return Infinity;
50
+ }
51
+ if (base === Infinity) {
52
+ return exponent > 0 ? Infinity : 0;
53
+ }
54
+ if (base === -Infinity) {
55
+ var isOdd = true;
56
+ if (exponent > 0) {
57
+ return isOdd ? -Infinity : Infinity;
58
+ }
59
+ return isOdd ? -0 : 0;
60
+ }
61
+ if (exponent > 0) {
62
+ return isNegativeZero(base) ? Infinity : 0;
63
+ }
64
+ if (isNegativeZero(base)) {
65
+ if (exponent > 0) {
66
+ return isOdd ? -0 : 0;
67
+ }
68
+ return isOdd ? -Infinity : Infinity;
69
+ }
70
+ if (base < 0 && isFinite(base) && isFinite(exponent) && !IsInteger(exponent)) {
71
+ return NaN;
72
+ }
73
+ */
74
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/index.js ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var add = require('./add');
4
+ var bitwiseAND = require('./bitwiseAND');
5
+ var bitwiseNOT = require('./bitwiseNOT');
6
+ var bitwiseOR = require('./bitwiseOR');
7
+ var bitwiseXOR = require('./bitwiseXOR');
8
+ var divide = require('./divide');
9
+ var equal = require('./equal');
10
+ var exponentiate = require('./exponentiate');
11
+ var leftShift = require('./leftShift');
12
+ var lessThan = require('./lessThan');
13
+ var multiply = require('./multiply');
14
+ var remainder = require('./remainder');
15
+ var sameValue = require('./sameValue');
16
+ var sameValueZero = require('./sameValueZero');
17
+ var signedRightShift = require('./signedRightShift');
18
+ var subtract = require('./subtract');
19
+ var toString = require('./toString');
20
+ var unaryMinus = require('./unaryMinus');
21
+ var unsignedRightShift = require('./unsignedRightShift');
22
+
23
+ module.exports = {
24
+ add: add,
25
+ bitwiseAND: bitwiseAND,
26
+ bitwiseNOT: bitwiseNOT,
27
+ bitwiseOR: bitwiseOR,
28
+ bitwiseXOR: bitwiseXOR,
29
+ divide: divide,
30
+ equal: equal,
31
+ exponentiate: exponentiate,
32
+ leftShift: leftShift,
33
+ lessThan: lessThan,
34
+ multiply: multiply,
35
+ remainder: remainder,
36
+ sameValue: sameValue,
37
+ sameValueZero: sameValueZero,
38
+ signedRightShift: signedRightShift,
39
+ subtract: subtract,
40
+ toString: toString,
41
+ unaryMinus: unaryMinus,
42
+ unsignedRightShift: unsignedRightShift
43
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/leftShift.js ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ var ToInt32 = require('../ToInt32');
6
+ var ToUint32 = require('../ToUint32');
7
+ var modulo = require('../modulo');
8
+
9
+ // https://262.ecma-international.org/12.0/#sec-numeric-types-number-leftShift
10
+
11
+ module.exports = function NumberLeftShift(x, y) {
12
+ if (typeof x !== 'number' || typeof y !== 'number') {
13
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers');
14
+ }
15
+
16
+ var lnum = ToInt32(x);
17
+ var rnum = ToUint32(y);
18
+
19
+ var shiftCount = modulo(rnum, 32);
20
+
21
+ return lnum << shiftCount;
22
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/lessThan.js ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ var isNaN = require('../../helpers/isNaN');
6
+
7
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-number-lessThan
8
+
9
+ module.exports = function NumberLessThan(x, y) {
10
+ if (typeof x !== 'number' || typeof y !== 'number') {
11
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers');
12
+ }
13
+
14
+ // If x is NaN, return undefined.
15
+ // If y is NaN, return undefined.
16
+ if (isNaN(x) || isNaN(y)) {
17
+ return void undefined;
18
+ }
19
+
20
+ // shortcut for the actual spec mechanics
21
+ return x < y;
22
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/multiply.js ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ var isNaN = require('../../helpers/isNaN');
6
+
7
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-number-multiply
8
+
9
+ module.exports = function NumberMultiply(x, y) {
10
+ if (typeof x !== 'number' || typeof y !== 'number') {
11
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers');
12
+ }
13
+
14
+ if (isNaN(x) || isNaN(y) || (x === 0 && !isFinite(y)) || (!isFinite(x) && y === 0)) {
15
+ return NaN;
16
+ }
17
+ if (!isFinite(x) && !isFinite(y)) {
18
+ return x === y ? Infinity : -Infinity;
19
+ }
20
+ if (!isFinite(x) && y !== 0) {
21
+ return x > 0 ? Infinity : -Infinity;
22
+ }
23
+ if (!isFinite(y) && x !== 0) {
24
+ return y > 0 ? Infinity : -Infinity;
25
+ }
26
+
27
+ // shortcut for the actual spec mechanics
28
+ return x * y;
29
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/remainder.js ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ var isNaN = require('../../helpers/isNaN');
6
+
7
+ // https://262.ecma-international.org/12.0/#sec-numeric-types-number-remainder
8
+
9
+ module.exports = function NumberRemainder(n, d) {
10
+ if (typeof n !== 'number' || typeof d !== 'number') {
11
+ throw new $TypeError('Assertion failed: `n` and `d` arguments must be Numbers');
12
+ }
13
+
14
+ // If either operand is NaN, the result is NaN.
15
+ // If the dividend is an infinity, or the divisor is a zero, or both, the result is NaN.
16
+ if (isNaN(n) || isNaN(d) || !isFinite(n) || d === 0) {
17
+ return NaN;
18
+ }
19
+
20
+ // If the dividend is finite and the divisor is an infinity, the result equals the dividend.
21
+ // If the dividend is a zero and the divisor is nonzero and finite, the result is the same as the dividend.
22
+ if (!isFinite(d) || n === 0) {
23
+ return n;
24
+ }
25
+
26
+ // In the remaining cases, where neither an infinity, nor a zero, nor NaN is involved…
27
+ return n % d;
28
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/sameValue.js ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var isNegativeZero = require('math-intrinsics/isNegativeZero');
4
+ var $TypeError = require('es-errors/type');
5
+
6
+ var NumberSameValueZero = require('./sameValueZero');
7
+
8
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-number-sameValue
9
+
10
+ module.exports = function NumberSameValue(x, y) {
11
+ if (typeof x !== 'number' || typeof y !== 'number') {
12
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers');
13
+ }
14
+ if (x === 0 && y === 0) {
15
+ return !(isNegativeZero(x) ^ isNegativeZero(y));
16
+ }
17
+ return NumberSameValueZero(x, y);
18
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/sameValueZero.js ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ var isNaN = require('../../helpers/isNaN');
6
+
7
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-number-sameValueZero
8
+
9
+ module.exports = function NumberSameValueZero(x, y) {
10
+ if (typeof x !== 'number' || typeof y !== 'number') {
11
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers');
12
+ }
13
+
14
+ var xNaN = isNaN(x);
15
+ var yNaN = isNaN(y);
16
+ if (xNaN || yNaN) {
17
+ return xNaN === yNaN;
18
+ }
19
+ return x === y;
20
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/signedRightShift.js ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ var ToInt32 = require('../ToInt32');
6
+ var ToUint32 = require('../ToUint32');
7
+ var modulo = require('../modulo');
8
+
9
+ // https://262.ecma-international.org/12.0/#sec-numeric-types-number-signedRightShift
10
+
11
+ module.exports = function NumberSignedRightShift(x, y) {
12
+ if (typeof x !== 'number' || typeof y !== 'number') {
13
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers');
14
+ }
15
+
16
+ var lnum = ToInt32(x);
17
+ var rnum = ToUint32(y);
18
+
19
+ var shiftCount = modulo(rnum, 32);
20
+
21
+ return lnum >> shiftCount;
22
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/subtract.js ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ var NumberAdd = require('./add');
6
+ var NumberUnaryMinus = require('./unaryMinus');
7
+
8
+ // https://262.ecma-international.org/12.0/#sec-numeric-types-number-subtract
9
+
10
+ module.exports = function NumberSubtract(x, y) {
11
+ if (typeof x !== 'number' || typeof y !== 'number') {
12
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers');
13
+ }
14
+ return NumberAdd(x, NumberUnaryMinus(y));
15
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/toString.js ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var GetIntrinsic = require('get-intrinsic');
4
+
5
+ var $String = GetIntrinsic('%String%');
6
+ var $TypeError = require('es-errors/type');
7
+
8
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-number-tostring
9
+
10
+ module.exports = function NumberToString(x) {
11
+ if (typeof x !== 'number') {
12
+ throw new $TypeError('Assertion failed: `x` must be a Number');
13
+ }
14
+
15
+ return $String(x);
16
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/unaryMinus.js ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ var isNaN = require('../../helpers/isNaN');
6
+
7
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-number-unaryMinus
8
+
9
+ module.exports = function NumberUnaryMinus(x) {
10
+ if (typeof x !== 'number') {
11
+ throw new $TypeError('Assertion failed: `x` argument must be a Number');
12
+ }
13
+ if (isNaN(x)) {
14
+ return NaN;
15
+ }
16
+ return -x;
17
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/Number/unsignedRightShift.js ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ var ToInt32 = require('../ToInt32');
6
+ var ToUint32 = require('../ToUint32');
7
+ var modulo = require('../modulo');
8
+
9
+ // https://262.ecma-international.org/12.0/#sec-numeric-types-number-unsignedRightShift
10
+
11
+ module.exports = function NumberUnsignedRightShift(x, y) {
12
+ if (typeof x !== 'number' || typeof y !== 'number') {
13
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers');
14
+ }
15
+
16
+ var lnum = ToInt32(x);
17
+ var rnum = ToUint32(y);
18
+
19
+ var shiftCount = modulo(rnum, 32);
20
+
21
+ return lnum >>> shiftCount;
22
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2021/tables/typed-array-objects.js ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ // https://262.ecma-international.org/11.0/#table-the-typedarray-constructors
4
+
5
+ module.exports = {
6
+ __proto__: null,
7
+ name: {
8
+ __proto__: null,
9
+ $Int8Array: 'Int8',
10
+ $Uint8Array: 'Uint8',
11
+ $Uint8ClampedArray: 'Uint8C',
12
+ $Int16Array: 'Int16',
13
+ $Uint16Array: 'Uint16',
14
+ $Int32Array: 'Int32',
15
+ $Uint32Array: 'Uint32',
16
+ $BigInt64Array: 'BigInt64',
17
+ $BigUint64Array: 'BigUint64',
18
+ $Float32Array: 'Float32',
19
+ $Float64Array: 'Float64'
20
+ },
21
+ size: {
22
+ __proto__: null,
23
+ $Int8: 1,
24
+ $Uint8: 1,
25
+ $Uint8C: 1,
26
+ $Int16: 2,
27
+ $Uint16: 2,
28
+ $Int32: 4,
29
+ $Uint32: 4,
30
+ $BigInt64: 8,
31
+ $BigUint64: 8,
32
+ $Float32: 4,
33
+ $Float64: 8
34
+ },
35
+ choices: '"Int8", "Uint8", "Uint8C", "Int16", "Uint16", "Int32", "Uint32", "BigInt64", "BigUint64", "Float32", or "Float64"'
36
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2022/BigInt/add.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-add
6
+
7
+ module.exports = function BigIntAdd(x, y) {
8
+ if (typeof x !== 'bigint' || typeof y !== 'bigint') {
9
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
10
+ }
11
+
12
+ // shortcut for the actual spec mechanics
13
+ return x + y;
14
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2022/BigInt/bitwiseAND.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ var BigIntBitwiseOp = require('../BigIntBitwiseOp');
6
+
7
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-bitwiseAND
8
+
9
+ module.exports = function BigIntBitwiseAND(x, y) {
10
+ if (typeof x !== 'bigint' || typeof y !== 'bigint') {
11
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
12
+ }
13
+ return BigIntBitwiseOp('&', x, y);
14
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2022/BigInt/bitwiseNOT.js ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var GetIntrinsic = require('get-intrinsic');
4
+
5
+ var $BigInt = GetIntrinsic('%BigInt%', true);
6
+ var $TypeError = require('es-errors/type');
7
+
8
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-bitwiseNOT
9
+
10
+ module.exports = function BigIntBitwiseNOT(x) {
11
+ if (typeof x !== 'bigint') {
12
+ throw new $TypeError('Assertion failed: `x` argument must be a BigInt');
13
+ }
14
+ return -x - $BigInt(1);
15
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2022/BigInt/bitwiseOR.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ var BigIntBitwiseOp = require('../BigIntBitwiseOp');
6
+
7
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-bitwiseOR
8
+
9
+ module.exports = function BigIntBitwiseOR(x, y) {
10
+ if (typeof x !== 'bigint' || typeof y !== 'bigint') {
11
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
12
+ }
13
+ return BigIntBitwiseOp('|', x, y);
14
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2022/BigInt/bitwiseXOR.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ var BigIntBitwiseOp = require('../BigIntBitwiseOp');
6
+
7
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-bitwiseXOR
8
+
9
+ module.exports = function BigIntBitwiseXOR(x, y) {
10
+ if (typeof x !== 'bigint' || typeof y !== 'bigint') {
11
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
12
+ }
13
+ return BigIntBitwiseOp('^', x, y);
14
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2022/BigInt/divide.js ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var GetIntrinsic = require('get-intrinsic');
4
+
5
+ var $BigInt = GetIntrinsic('%BigInt%', true);
6
+ var $RangeError = require('es-errors/range');
7
+ var $TypeError = require('es-errors/type');
8
+
9
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-divide
10
+
11
+ module.exports = function BigIntDivide(x, y) {
12
+ if (typeof x !== 'bigint' || typeof y !== 'bigint') {
13
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
14
+ }
15
+ if (y === $BigInt(0)) {
16
+ throw new $RangeError('Division by zero');
17
+ }
18
+ // shortcut for the actual spec mechanics
19
+ return x / y;
20
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2022/BigInt/equal.js ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-equal
6
+
7
+ module.exports = function BigIntEqual(x, y) {
8
+ if (typeof x !== 'bigint' || typeof y !== 'bigint') {
9
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
10
+ }
11
+ // shortcut for the actual spec mechanics
12
+ return x === y;
13
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2022/BigInt/exponentiate.js ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var GetIntrinsic = require('get-intrinsic');
4
+
5
+ var $BigInt = GetIntrinsic('%BigInt%', true);
6
+ var $RangeError = require('es-errors/range');
7
+ var $TypeError = require('es-errors/type');
8
+
9
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-exponentiate
10
+
11
+ module.exports = function BigIntExponentiate(base, exponent) {
12
+ if (typeof base !== 'bigint' || typeof exponent !== 'bigint') {
13
+ throw new $TypeError('Assertion failed: `base` and `exponent` arguments must be BigInts');
14
+ }
15
+ if (exponent < $BigInt(0)) {
16
+ throw new $RangeError('Exponent must be positive');
17
+ }
18
+ if (/* base === $BigInt(0) && */ exponent === $BigInt(0)) {
19
+ return $BigInt(1);
20
+ }
21
+
22
+ var square = base;
23
+ var remaining = exponent;
24
+ while (remaining > $BigInt(0)) {
25
+ square += exponent;
26
+ --remaining; // eslint-disable-line no-plusplus
27
+ }
28
+ return square;
29
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2022/BigInt/index.js ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var add = require('./add');
4
+ var bitwiseAND = require('./bitwiseAND');
5
+ var bitwiseNOT = require('./bitwiseNOT');
6
+ var bitwiseOR = require('./bitwiseOR');
7
+ var bitwiseXOR = require('./bitwiseXOR');
8
+ var divide = require('./divide');
9
+ var equal = require('./equal');
10
+ var exponentiate = require('./exponentiate');
11
+ var leftShift = require('./leftShift');
12
+ var lessThan = require('./lessThan');
13
+ var multiply = require('./multiply');
14
+ var remainder = require('./remainder');
15
+ var sameValue = require('./sameValue');
16
+ var sameValueZero = require('./sameValueZero');
17
+ var signedRightShift = require('./signedRightShift');
18
+ var subtract = require('./subtract');
19
+ var toString = require('./toString');
20
+ var unaryMinus = require('./unaryMinus');
21
+ var unsignedRightShift = require('./unsignedRightShift');
22
+
23
+ module.exports = {
24
+ add: add,
25
+ bitwiseAND: bitwiseAND,
26
+ bitwiseNOT: bitwiseNOT,
27
+ bitwiseOR: bitwiseOR,
28
+ bitwiseXOR: bitwiseXOR,
29
+ divide: divide,
30
+ equal: equal,
31
+ exponentiate: exponentiate,
32
+ leftShift: leftShift,
33
+ lessThan: lessThan,
34
+ multiply: multiply,
35
+ remainder: remainder,
36
+ sameValue: sameValue,
37
+ sameValueZero: sameValueZero,
38
+ signedRightShift: signedRightShift,
39
+ subtract: subtract,
40
+ toString: toString,
41
+ unaryMinus: unaryMinus,
42
+ unsignedRightShift: unsignedRightShift
43
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2022/BigInt/leftShift.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-leftShift
6
+
7
+ module.exports = function BigIntLeftShift(x, y) {
8
+ if (typeof x !== 'bigint' || typeof y !== 'bigint') {
9
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
10
+ }
11
+
12
+ // shortcut for the actual spec mechanics
13
+ return x << y;
14
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2022/BigInt/lessThan.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-lessThan
6
+
7
+ module.exports = function BigIntLessThan(x, y) {
8
+ if (typeof x !== 'bigint' || typeof y !== 'bigint') {
9
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
10
+ }
11
+
12
+ // shortcut for the actual spec mechanics
13
+ return x < y;
14
+ };
novas/novacore-zephyr/groq-code-cli/node_modules/es-abstract/2022/BigInt/multiply.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var $TypeError = require('es-errors/type');
4
+
5
+ // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-multiply
6
+
7
+ module.exports = function BigIntMultiply(x, y) {
8
+ if (typeof x !== 'bigint' || typeof y !== 'bigint') {
9
+ throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
10
+ }
11
+
12
+ // shortcut for the actual spec mechanics
13
+ return x * y;
14
+ };