@kitware/vtk.js 25.13.3 → 25.13.4

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.
Files changed (114) hide show
  1. package/Rendering/OpenGL/ImageMapper.js +4 -8
  2. package/Rendering/OpenGL/PolyDataMapper.js +4 -8
  3. package/macros.js +2 -2
  4. package/package.json +2 -1
  5. package/_vendor/available-typed-arrays/index.js_commonjs-proxy.js +0 -1
  6. package/_vendor/call-bind/callBound.js_commonjs-proxy.js +0 -1
  7. package/_vendor/call-bind/index.js_commonjs-module.js +0 -3
  8. package/_vendor/call-bind/index.js_commonjs-proxy.js +0 -1
  9. package/_vendor/deep-equal/node_modules/isarray/index.js_commonjs-proxy.js +0 -1
  10. package/_vendor/define-properties/index.js_commonjs-proxy.js +0 -1
  11. package/_vendor/es-abstract/helpers/getOwnPropertyDescriptor.js_commonjs-proxy.js +0 -1
  12. package/_vendor/es-get-iterator/index.js_commonjs-module.js +0 -3
  13. package/_vendor/es-get-iterator/index.js_commonjs-proxy.js +0 -1
  14. package/_vendor/es-get-iterator/node_modules/isarray/index.js_commonjs-proxy.js +0 -1
  15. package/_vendor/foreach/index.js_commonjs-proxy.js +0 -1
  16. package/_vendor/function-bind/implementation.js_commonjs-proxy.js +0 -1
  17. package/_vendor/function-bind/index.js_commonjs-proxy.js +0 -1
  18. package/_vendor/get-intrinsic/index.js_commonjs-proxy.js +0 -1
  19. package/_vendor/has/src/index.js_commonjs-proxy.js +0 -1
  20. package/_vendor/has-bigints/index.js_commonjs-proxy.js +0 -1
  21. package/_vendor/has-symbols/index.js_commonjs-proxy.js +0 -1
  22. package/_vendor/has-symbols/shams.js_commonjs-proxy.js +0 -1
  23. package/_vendor/has-tostringtag/shams.js_commonjs-proxy.js +0 -1
  24. package/_vendor/is-arguments/index.js_commonjs-proxy.js +0 -1
  25. package/_vendor/is-bigint/index.js_commonjs-module.js +0 -3
  26. package/_vendor/is-bigint/index.js_commonjs-proxy.js +0 -1
  27. package/_vendor/is-boolean-object/index.js_commonjs-proxy.js +0 -1
  28. package/_vendor/is-date-object/index.js_commonjs-proxy.js +0 -1
  29. package/_vendor/is-map/index.js_commonjs-proxy.js +0 -1
  30. package/_vendor/is-number-object/index.js_commonjs-proxy.js +0 -1
  31. package/_vendor/is-regex/index.js_commonjs-proxy.js +0 -1
  32. package/_vendor/is-set/index.js_commonjs-proxy.js +0 -1
  33. package/_vendor/is-string/index.js_commonjs-proxy.js +0 -1
  34. package/_vendor/is-symbol/index.js_commonjs-module.js +0 -3
  35. package/_vendor/is-symbol/index.js_commonjs-proxy.js +0 -1
  36. package/_vendor/is-typed-array/index.js_commonjs-proxy.js +0 -1
  37. package/_vendor/is-weakmap/index.js_commonjs-proxy.js +0 -1
  38. package/_vendor/is-weakset/index.js_commonjs-proxy.js +0 -1
  39. package/_vendor/object-inspect/index.js_commonjs-proxy.js +0 -1
  40. package/_vendor/object-is/implementation.js_commonjs-proxy.js +0 -1
  41. package/_vendor/object-is/index.js_commonjs-proxy.js +0 -1
  42. package/_vendor/object-is/polyfill.js_commonjs-proxy.js +0 -1
  43. package/_vendor/object-is/shim.js_commonjs-proxy.js +0 -1
  44. package/_vendor/object-keys/implementation.js_commonjs-proxy.js +0 -1
  45. package/_vendor/object-keys/index.js_commonjs-proxy.js +0 -1
  46. package/_vendor/object-keys/isArguments.js_commonjs-proxy.js +0 -1
  47. package/_vendor/object.assign/implementation.js_commonjs-proxy.js +0 -1
  48. package/_vendor/object.assign/index.js_commonjs-proxy.js +0 -1
  49. package/_vendor/object.assign/polyfill.js_commonjs-proxy.js +0 -1
  50. package/_vendor/object.assign/shim.js_commonjs-proxy.js +0 -2
  51. package/_vendor/regexp.prototype.flags/implementation.js_commonjs-proxy.js +0 -1
  52. package/_vendor/regexp.prototype.flags/index.js_commonjs-proxy.js +0 -1
  53. package/_vendor/regexp.prototype.flags/polyfill.js_commonjs-proxy.js +0 -1
  54. package/_vendor/regexp.prototype.flags/shim.js_commonjs-proxy.js +0 -1
  55. package/_vendor/side-channel/index.js_commonjs-proxy.js +0 -1
  56. package/_vendor/which-boxed-primitive/index.js_commonjs-proxy.js +0 -5
  57. package/_vendor/which-collection/index.js_commonjs-proxy.js +0 -4
  58. package/_vendor/which-typed-array/index.js_commonjs-proxy.js +0 -1
  59. package/_virtual/_node-resolve_empty.js_commonjs-proxy.js +0 -6
  60. package/_virtual/commonjsHelpers.js +0 -18
  61. package/_virtual/node-resolve_empty.js +0 -8
  62. package/_virtual/polyfill-node.global.js +0 -5
  63. package/_virtual/polyfill-node.process.js +0 -225
  64. package/vendor/available-typed-arrays/index.js +0 -29
  65. package/vendor/call-bind/callBound.js +0 -19
  66. package/vendor/call-bind/index.js +0 -52
  67. package/vendor/deep-equal/index.js +0 -379
  68. package/vendor/deep-equal/node_modules/isarray/index.js +0 -7
  69. package/vendor/define-properties/index.js +0 -60
  70. package/vendor/es-abstract/helpers/getOwnPropertyDescriptor.js +0 -17
  71. package/vendor/es-get-iterator/index.js +0 -217
  72. package/vendor/es-get-iterator/node_modules/isarray/index.js +0 -7
  73. package/vendor/foreach/index.js +0 -22
  74. package/vendor/function-bind/implementation.js +0 -52
  75. package/vendor/function-bind/index.js +0 -7
  76. package/vendor/get-intrinsic/index.js +0 -334
  77. package/vendor/has/src/index.js +0 -7
  78. package/vendor/has-bigints/index.js +0 -12
  79. package/vendor/has-symbols/index.js +0 -15
  80. package/vendor/has-symbols/shams.js +0 -42
  81. package/vendor/has-tostringtag/shams.js +0 -9
  82. package/vendor/is-arguments/index.js +0 -36
  83. package/vendor/is-bigint/index.js +0 -39
  84. package/vendor/is-boolean-object/index.js +0 -29
  85. package/vendor/is-date-object/index.js +0 -22
  86. package/vendor/is-map/index.js +0 -42
  87. package/vendor/is-number-object/index.js +0 -26
  88. package/vendor/is-regex/index.js +0 -61
  89. package/vendor/is-set/index.js +0 -42
  90. package/vendor/is-string/index.js +0 -26
  91. package/vendor/is-symbol/index.js +0 -36
  92. package/vendor/is-typed-array/index.js +0 -67
  93. package/vendor/is-weakmap/index.js +0 -42
  94. package/vendor/is-weakset/index.js +0 -42
  95. package/vendor/object-inspect/index.js +0 -515
  96. package/vendor/object-is/implementation.js +0 -18
  97. package/vendor/object-is/index.js +0 -25
  98. package/vendor/object-is/polyfill.js +0 -9
  99. package/vendor/object-is/shim.js +0 -17
  100. package/vendor/object-keys/implementation.js +0 -124
  101. package/vendor/object-keys/index.js +0 -35
  102. package/vendor/object-keys/isArguments.js +0 -17
  103. package/vendor/object.assign/implementation.js +0 -46
  104. package/vendor/object.assign/index.js +0 -29
  105. package/vendor/object.assign/polyfill.js +0 -57
  106. package/vendor/object.assign/shim.js +0 -17
  107. package/vendor/regexp.prototype.flags/implementation.js +0 -30
  108. package/vendor/regexp.prototype.flags/index.js +0 -25
  109. package/vendor/regexp.prototype.flags/polyfill.js +0 -23
  110. package/vendor/regexp.prototype.flags/shim.js +0 -29
  111. package/vendor/side-channel/index.js +0 -128
  112. package/vendor/which-boxed-primitive/index.js +0 -38
  113. package/vendor/which-collection/index.js +0 -29
  114. package/vendor/which-typed-array/index.js +0 -63
@@ -1,217 +0,0 @@
1
- import { b as browser$1 } from '../../_virtual/polyfill-node.process.js';
2
- import { e as esGetIterator } from '../../_vendor/es-get-iterator/index.js_commonjs-module.js';
3
- import { i as isArguments$1 } from '../is-arguments/index.js';
4
- import { h as hasSymbols } from '../has-symbols/index.js';
5
- import { s as shams } from '../has-symbols/shams.js';
6
- import { i as isarray } from './node_modules/isarray/index.js';
7
- import { i as isString$1 } from '../is-string/index.js';
8
- import { g as getIntrinsic } from '../get-intrinsic/index.js';
9
- import { c as callBound$1 } from '../call-bind/callBound.js';
10
- import { i as isMap$1 } from '../is-map/index.js';
11
- import { i as isSet$1 } from '../is-set/index.js';
12
-
13
- /* eslint global-require: 0 */
14
- // the code is structured this way so that bundlers can
15
- // alias out `has-symbols` to `() => true` or `() => false` if your target
16
- // environments' Symbol capabilities are known, and then use
17
- // dead code elimination on the rest of this module.
18
- //
19
- // Similarly, `isarray` can be aliased to `Array.isArray` if
20
- // available in all target environments.
21
-
22
- var isArguments = isArguments$1;
23
-
24
- if (hasSymbols() || shams()) {
25
- var $iterator = Symbol.iterator;
26
- // Symbol is available natively or shammed
27
- // natively:
28
- // - Chrome >= 38
29
- // - Edge 12-14?, Edge >= 15 for sure
30
- // - FF >= 36
31
- // - Safari >= 9
32
- // - node >= 0.12
33
- esGetIterator.exports = function getIterator(iterable) {
34
- // alternatively, `iterable[$iterator]?.()`
35
- if (iterable != null && typeof iterable[$iterator] !== 'undefined') {
36
- return iterable[$iterator]();
37
- }
38
- if (isArguments(iterable)) {
39
- // arguments objects lack Symbol.iterator
40
- // - node 0.12
41
- return Array.prototype[$iterator].call(iterable);
42
- }
43
- };
44
- } else {
45
- // Symbol is not available, native or shammed
46
- var isArray = isarray;
47
- var isString = isString$1;
48
- var GetIntrinsic = getIntrinsic;
49
- var $Map = GetIntrinsic('%Map%', true);
50
- var $Set = GetIntrinsic('%Set%', true);
51
- var callBound = callBound$1;
52
- var $arrayPush = callBound('Array.prototype.push');
53
- var $charCodeAt = callBound('String.prototype.charCodeAt');
54
- var $stringSlice = callBound('String.prototype.slice');
55
-
56
- var advanceStringIndex = function advanceStringIndex(S, index) {
57
- var length = S.length;
58
- if ((index + 1) >= length) {
59
- return index + 1;
60
- }
61
-
62
- var first = $charCodeAt(S, index);
63
- if (first < 0xD800 || first > 0xDBFF) {
64
- return index + 1;
65
- }
66
-
67
- var second = $charCodeAt(S, index + 1);
68
- if (second < 0xDC00 || second > 0xDFFF) {
69
- return index + 1;
70
- }
71
-
72
- return index + 2;
73
- };
74
-
75
- var getArrayIterator = function getArrayIterator(arraylike) {
76
- var i = 0;
77
- return {
78
- next: function next() {
79
- var done = i >= arraylike.length;
80
- var value;
81
- if (!done) {
82
- value = arraylike[i];
83
- i += 1;
84
- }
85
- return {
86
- done: done,
87
- value: value
88
- };
89
- }
90
- };
91
- };
92
-
93
- var getNonCollectionIterator = function getNonCollectionIterator(iterable, noPrimordialCollections) {
94
- if (isArray(iterable) || isArguments(iterable)) {
95
- return getArrayIterator(iterable);
96
- }
97
- if (isString(iterable)) {
98
- var i = 0;
99
- return {
100
- next: function next() {
101
- var nextIndex = advanceStringIndex(iterable, i);
102
- var value = $stringSlice(iterable, i, nextIndex);
103
- i = nextIndex;
104
- return {
105
- done: nextIndex > iterable.length,
106
- value: value
107
- };
108
- }
109
- };
110
- }
111
-
112
- // es6-shim and es-shims' es-map use a string "_es6-shim iterator_" property on different iterables, such as MapIterator.
113
- if (noPrimordialCollections && typeof iterable['_es6-shim iterator_'] !== 'undefined') {
114
- return iterable['_es6-shim iterator_']();
115
- }
116
- };
117
-
118
- if (!$Map && !$Set) {
119
- // the only language iterables are Array, String, arguments
120
- // - Safari <= 6.0
121
- // - Chrome < 38
122
- // - node < 0.12
123
- // - FF < 13
124
- // - IE < 11
125
- // - Edge < 11
126
-
127
- esGetIterator.exports = function getIterator(iterable) {
128
- if (iterable != null) {
129
- return getNonCollectionIterator(iterable, true);
130
- }
131
- };
132
- } else {
133
- // either Map or Set are available, but Symbol is not
134
- // - es6-shim on an ES5 browser
135
- // - Safari 6.2 (maybe 6.1?)
136
- // - FF v[13, 36)
137
- // - IE 11
138
- // - Edge 11
139
- // - Safari v[6, 9)
140
-
141
- var isMap = isMap$1;
142
- var isSet = isSet$1;
143
-
144
- // Firefox >= 27, IE 11, Safari 6.2 - 9, Edge 11, es6-shim in older envs, all have forEach
145
- var $mapForEach = callBound('Map.prototype.forEach', true);
146
- var $setForEach = callBound('Set.prototype.forEach', true);
147
- if (typeof browser$1 === 'undefined' || !browser$1.versions || !browser$1.versions.node) { // "if is not node"
148
-
149
- // Firefox 17 - 26 has `.iterator()`, whose iterator `.next()` either
150
- // returns a value, or throws a StopIteration object. These browsers
151
- // do not have any other mechanism for iteration.
152
- var $mapIterator = callBound('Map.prototype.iterator', true);
153
- var $setIterator = callBound('Set.prototype.iterator', true);
154
- var getStopIterationIterator = function (iterator) {
155
- var done = false;
156
- return {
157
- next: function next() {
158
- try {
159
- return {
160
- done: done,
161
- value: done ? undefined : iterator.next()
162
- };
163
- } catch (e) {
164
- done = true;
165
- return {
166
- done: true,
167
- value: undefined
168
- };
169
- }
170
- }
171
- };
172
- };
173
- }
174
- // Firefox 27-35, and some older es6-shim versions, use a string "@@iterator" property
175
- // this returns a proper iterator object, so we should use it instead of forEach.
176
- // newer es6-shim versions use a string "_es6-shim iterator_" property.
177
- var $mapAtAtIterator = callBound('Map.prototype.@@iterator', true) || callBound('Map.prototype._es6-shim iterator_', true);
178
- var $setAtAtIterator = callBound('Set.prototype.@@iterator', true) || callBound('Set.prototype._es6-shim iterator_', true);
179
-
180
- var getCollectionIterator = function getCollectionIterator(iterable) {
181
- if (isMap(iterable)) {
182
- if ($mapIterator) {
183
- return getStopIterationIterator($mapIterator(iterable));
184
- }
185
- if ($mapAtAtIterator) {
186
- return $mapAtAtIterator(iterable);
187
- }
188
- if ($mapForEach) {
189
- var entries = [];
190
- $mapForEach(iterable, function (v, k) {
191
- $arrayPush(entries, [k, v]);
192
- });
193
- return getArrayIterator(entries);
194
- }
195
- }
196
- if (isSet(iterable)) {
197
- if ($setIterator) {
198
- return getStopIterationIterator($setIterator(iterable));
199
- }
200
- if ($setAtAtIterator) {
201
- return $setAtAtIterator(iterable);
202
- }
203
- if ($setForEach) {
204
- var values = [];
205
- $setForEach(iterable, function (v) {
206
- $arrayPush(values, v);
207
- });
208
- return getArrayIterator(values);
209
- }
210
- }
211
- };
212
-
213
- esGetIterator.exports = function getIterator(iterable) {
214
- return getCollectionIterator(iterable) || getNonCollectionIterator(iterable);
215
- };
216
- }
217
- }
@@ -1,7 +0,0 @@
1
- var toString = {}.toString;
2
-
3
- var isarray = Array.isArray || function (arr) {
4
- return toString.call(arr) == '[object Array]';
5
- };
6
-
7
- export { isarray as i };
@@ -1,22 +0,0 @@
1
- var hasOwn = Object.prototype.hasOwnProperty;
2
- var toString = Object.prototype.toString;
3
-
4
- var foreach = function forEach (obj, fn, ctx) {
5
- if (toString.call(fn) !== '[object Function]') {
6
- throw new TypeError('iterator must be a function');
7
- }
8
- var l = obj.length;
9
- if (l === +l) {
10
- for (var i = 0; i < l; i++) {
11
- fn.call(ctx, obj[i], i, obj);
12
- }
13
- } else {
14
- for (var k in obj) {
15
- if (hasOwn.call(obj, k)) {
16
- fn.call(ctx, obj[k], k, obj);
17
- }
18
- }
19
- }
20
- };
21
-
22
- export { foreach as f };
@@ -1,52 +0,0 @@
1
- /* eslint no-invalid-this: 1 */
2
-
3
- var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
4
- var slice = Array.prototype.slice;
5
- var toStr = Object.prototype.toString;
6
- var funcType = '[object Function]';
7
-
8
- var implementation = function bind(that) {
9
- var target = this;
10
- if (typeof target !== 'function' || toStr.call(target) !== funcType) {
11
- throw new TypeError(ERROR_MESSAGE + target);
12
- }
13
- var args = slice.call(arguments, 1);
14
-
15
- var bound;
16
- var binder = function () {
17
- if (this instanceof bound) {
18
- var result = target.apply(
19
- this,
20
- args.concat(slice.call(arguments))
21
- );
22
- if (Object(result) === result) {
23
- return result;
24
- }
25
- return this;
26
- } else {
27
- return target.apply(
28
- that,
29
- args.concat(slice.call(arguments))
30
- );
31
- }
32
- };
33
-
34
- var boundLength = Math.max(0, target.length - args.length);
35
- var boundArgs = [];
36
- for (var i = 0; i < boundLength; i++) {
37
- boundArgs.push('$' + i);
38
- }
39
-
40
- bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
41
-
42
- if (target.prototype) {
43
- var Empty = function Empty() {};
44
- Empty.prototype = target.prototype;
45
- bound.prototype = new Empty();
46
- Empty.prototype = null;
47
- }
48
-
49
- return bound;
50
- };
51
-
52
- export { implementation as i };
@@ -1,7 +0,0 @@
1
- import { i as implementation$1 } from './implementation.js';
2
-
3
- var implementation = implementation$1;
4
-
5
- var functionBind = Function.prototype.bind || implementation;
6
-
7
- export { functionBind as f };
@@ -1,334 +0,0 @@
1
- import { h as hasSymbols$1 } from '../has-symbols/index.js';
2
- import { f as functionBind } from '../function-bind/index.js';
3
- import { s as src } from '../has/src/index.js';
4
-
5
- var undefined$1;
6
-
7
- var $SyntaxError = SyntaxError;
8
- var $Function = Function;
9
- var $TypeError = TypeError;
10
-
11
- // eslint-disable-next-line consistent-return
12
- var getEvalledConstructor = function (expressionSyntax) {
13
- try {
14
- return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
15
- } catch (e) {}
16
- };
17
-
18
- var $gOPD = Object.getOwnPropertyDescriptor;
19
- if ($gOPD) {
20
- try {
21
- $gOPD({}, '');
22
- } catch (e) {
23
- $gOPD = null; // this is IE 8, which has a broken gOPD
24
- }
25
- }
26
-
27
- var throwTypeError = function () {
28
- throw new $TypeError();
29
- };
30
- var ThrowTypeError = $gOPD
31
- ? (function () {
32
- try {
33
- // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
34
- arguments.callee; // IE 8 does not throw here
35
- return throwTypeError;
36
- } catch (calleeThrows) {
37
- try {
38
- // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
39
- return $gOPD(arguments, 'callee').get;
40
- } catch (gOPDthrows) {
41
- return throwTypeError;
42
- }
43
- }
44
- }())
45
- : throwTypeError;
46
-
47
- var hasSymbols = hasSymbols$1();
48
-
49
- var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
50
-
51
- var needsEval = {};
52
-
53
- var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
54
-
55
- var INTRINSICS = {
56
- '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
57
- '%Array%': Array,
58
- '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
59
- '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined$1,
60
- '%AsyncFromSyncIteratorPrototype%': undefined$1,
61
- '%AsyncFunction%': needsEval,
62
- '%AsyncGenerator%': needsEval,
63
- '%AsyncGeneratorFunction%': needsEval,
64
- '%AsyncIteratorPrototype%': needsEval,
65
- '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
66
- '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
67
- '%Boolean%': Boolean,
68
- '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
69
- '%Date%': Date,
70
- '%decodeURI%': decodeURI,
71
- '%decodeURIComponent%': decodeURIComponent,
72
- '%encodeURI%': encodeURI,
73
- '%encodeURIComponent%': encodeURIComponent,
74
- '%Error%': Error,
75
- '%eval%': eval, // eslint-disable-line no-eval
76
- '%EvalError%': EvalError,
77
- '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
78
- '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
79
- '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
80
- '%Function%': $Function,
81
- '%GeneratorFunction%': needsEval,
82
- '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
83
- '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
84
- '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
85
- '%isFinite%': isFinite,
86
- '%isNaN%': isNaN,
87
- '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
88
- '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
89
- '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
90
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
91
- '%Math%': Math,
92
- '%Number%': Number,
93
- '%Object%': Object,
94
- '%parseFloat%': parseFloat,
95
- '%parseInt%': parseInt,
96
- '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
97
- '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
98
- '%RangeError%': RangeError,
99
- '%ReferenceError%': ReferenceError,
100
- '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
101
- '%RegExp%': RegExp,
102
- '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
103
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
104
- '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
105
- '%String%': String,
106
- '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined$1,
107
- '%Symbol%': hasSymbols ? Symbol : undefined$1,
108
- '%SyntaxError%': $SyntaxError,
109
- '%ThrowTypeError%': ThrowTypeError,
110
- '%TypedArray%': TypedArray,
111
- '%TypeError%': $TypeError,
112
- '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
113
- '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
114
- '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
115
- '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
116
- '%URIError%': URIError,
117
- '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
118
- '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
119
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
120
- };
121
-
122
- var doEval = function doEval(name) {
123
- var value;
124
- if (name === '%AsyncFunction%') {
125
- value = getEvalledConstructor('async function () {}');
126
- } else if (name === '%GeneratorFunction%') {
127
- value = getEvalledConstructor('function* () {}');
128
- } else if (name === '%AsyncGeneratorFunction%') {
129
- value = getEvalledConstructor('async function* () {}');
130
- } else if (name === '%AsyncGenerator%') {
131
- var fn = doEval('%AsyncGeneratorFunction%');
132
- if (fn) {
133
- value = fn.prototype;
134
- }
135
- } else if (name === '%AsyncIteratorPrototype%') {
136
- var gen = doEval('%AsyncGenerator%');
137
- if (gen) {
138
- value = getProto(gen.prototype);
139
- }
140
- }
141
-
142
- INTRINSICS[name] = value;
143
-
144
- return value;
145
- };
146
-
147
- var LEGACY_ALIASES = {
148
- '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
149
- '%ArrayPrototype%': ['Array', 'prototype'],
150
- '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
151
- '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
152
- '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
153
- '%ArrayProto_values%': ['Array', 'prototype', 'values'],
154
- '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
155
- '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
156
- '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
157
- '%BooleanPrototype%': ['Boolean', 'prototype'],
158
- '%DataViewPrototype%': ['DataView', 'prototype'],
159
- '%DatePrototype%': ['Date', 'prototype'],
160
- '%ErrorPrototype%': ['Error', 'prototype'],
161
- '%EvalErrorPrototype%': ['EvalError', 'prototype'],
162
- '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
163
- '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
164
- '%FunctionPrototype%': ['Function', 'prototype'],
165
- '%Generator%': ['GeneratorFunction', 'prototype'],
166
- '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
167
- '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
168
- '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
169
- '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
170
- '%JSONParse%': ['JSON', 'parse'],
171
- '%JSONStringify%': ['JSON', 'stringify'],
172
- '%MapPrototype%': ['Map', 'prototype'],
173
- '%NumberPrototype%': ['Number', 'prototype'],
174
- '%ObjectPrototype%': ['Object', 'prototype'],
175
- '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
176
- '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
177
- '%PromisePrototype%': ['Promise', 'prototype'],
178
- '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
179
- '%Promise_all%': ['Promise', 'all'],
180
- '%Promise_reject%': ['Promise', 'reject'],
181
- '%Promise_resolve%': ['Promise', 'resolve'],
182
- '%RangeErrorPrototype%': ['RangeError', 'prototype'],
183
- '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
184
- '%RegExpPrototype%': ['RegExp', 'prototype'],
185
- '%SetPrototype%': ['Set', 'prototype'],
186
- '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
187
- '%StringPrototype%': ['String', 'prototype'],
188
- '%SymbolPrototype%': ['Symbol', 'prototype'],
189
- '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
190
- '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
191
- '%TypeErrorPrototype%': ['TypeError', 'prototype'],
192
- '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
193
- '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
194
- '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
195
- '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
196
- '%URIErrorPrototype%': ['URIError', 'prototype'],
197
- '%WeakMapPrototype%': ['WeakMap', 'prototype'],
198
- '%WeakSetPrototype%': ['WeakSet', 'prototype']
199
- };
200
-
201
- var bind = functionBind;
202
- var hasOwn = src;
203
- var $concat = bind.call(Function.call, Array.prototype.concat);
204
- var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
205
- var $replace = bind.call(Function.call, String.prototype.replace);
206
- var $strSlice = bind.call(Function.call, String.prototype.slice);
207
-
208
- /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
209
- var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
210
- var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
211
- var stringToPath = function stringToPath(string) {
212
- var first = $strSlice(string, 0, 1);
213
- var last = $strSlice(string, -1);
214
- if (first === '%' && last !== '%') {
215
- throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
216
- } else if (last === '%' && first !== '%') {
217
- throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
218
- }
219
- var result = [];
220
- $replace(string, rePropName, function (match, number, quote, subString) {
221
- result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
222
- });
223
- return result;
224
- };
225
- /* end adaptation */
226
-
227
- var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
228
- var intrinsicName = name;
229
- var alias;
230
- if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
231
- alias = LEGACY_ALIASES[intrinsicName];
232
- intrinsicName = '%' + alias[0] + '%';
233
- }
234
-
235
- if (hasOwn(INTRINSICS, intrinsicName)) {
236
- var value = INTRINSICS[intrinsicName];
237
- if (value === needsEval) {
238
- value = doEval(intrinsicName);
239
- }
240
- if (typeof value === 'undefined' && !allowMissing) {
241
- throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
242
- }
243
-
244
- return {
245
- alias: alias,
246
- name: intrinsicName,
247
- value: value
248
- };
249
- }
250
-
251
- throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
252
- };
253
-
254
- var getIntrinsic = function GetIntrinsic(name, allowMissing) {
255
- if (typeof name !== 'string' || name.length === 0) {
256
- throw new $TypeError('intrinsic name must be a non-empty string');
257
- }
258
- if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
259
- throw new $TypeError('"allowMissing" argument must be a boolean');
260
- }
261
-
262
- var parts = stringToPath(name);
263
- var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
264
-
265
- var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
266
- var intrinsicRealName = intrinsic.name;
267
- var value = intrinsic.value;
268
- var skipFurtherCaching = false;
269
-
270
- var alias = intrinsic.alias;
271
- if (alias) {
272
- intrinsicBaseName = alias[0];
273
- $spliceApply(parts, $concat([0, 1], alias));
274
- }
275
-
276
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
277
- var part = parts[i];
278
- var first = $strSlice(part, 0, 1);
279
- var last = $strSlice(part, -1);
280
- if (
281
- (
282
- (first === '"' || first === "'" || first === '`')
283
- || (last === '"' || last === "'" || last === '`')
284
- )
285
- && first !== last
286
- ) {
287
- throw new $SyntaxError('property names with quotes must have matching quotes');
288
- }
289
- if (part === 'constructor' || !isOwn) {
290
- skipFurtherCaching = true;
291
- }
292
-
293
- intrinsicBaseName += '.' + part;
294
- intrinsicRealName = '%' + intrinsicBaseName + '%';
295
-
296
- if (hasOwn(INTRINSICS, intrinsicRealName)) {
297
- value = INTRINSICS[intrinsicRealName];
298
- } else if (value != null) {
299
- if (!(part in value)) {
300
- if (!allowMissing) {
301
- throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
302
- }
303
- return void undefined$1;
304
- }
305
- if ($gOPD && (i + 1) >= parts.length) {
306
- var desc = $gOPD(value, part);
307
- isOwn = !!desc;
308
-
309
- // By convention, when a data property is converted to an accessor
310
- // property to emulate a data property that does not suffer from
311
- // the override mistake, that accessor's getter is marked with
312
- // an `originalValue` property. Here, when we detect this, we
313
- // uphold the illusion by pretending to see that original data
314
- // property, i.e., returning the value rather than the getter
315
- // itself.
316
- if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
317
- value = desc.get;
318
- } else {
319
- value = value[part];
320
- }
321
- } else {
322
- isOwn = hasOwn(value, part);
323
- value = value[part];
324
- }
325
-
326
- if (isOwn && !skipFurtherCaching) {
327
- INTRINSICS[intrinsicRealName] = value;
328
- }
329
- }
330
- }
331
- return value;
332
- };
333
-
334
- export { getIntrinsic as g };
@@ -1,7 +0,0 @@
1
- import { f as functionBind } from '../../function-bind/index.js';
2
-
3
- var bind = functionBind;
4
-
5
- var src = bind.call(Function.call, Object.prototype.hasOwnProperty);
6
-
7
- export { src as s };
@@ -1,12 +0,0 @@
1
- import { c as commonjsGlobal } from '../../_virtual/commonjsHelpers.js';
2
-
3
- var $BigInt = commonjsGlobal.BigInt;
4
-
5
- var hasBigints = function hasNativeBigInts() {
6
- return typeof $BigInt === 'function'
7
- && typeof BigInt === 'function'
8
- && typeof $BigInt(42) === 'bigint' // eslint-disable-line no-magic-numbers
9
- && typeof BigInt(42) === 'bigint'; // eslint-disable-line no-magic-numbers
10
- };
11
-
12
- export { hasBigints as h };
@@ -1,15 +0,0 @@
1
- import { s as shams } from './shams.js';
2
-
3
- var origSymbol = typeof Symbol !== 'undefined' && Symbol;
4
- var hasSymbolSham = shams;
5
-
6
- var hasSymbols = function hasNativeSymbols() {
7
- if (typeof origSymbol !== 'function') { return false; }
8
- if (typeof Symbol !== 'function') { return false; }
9
- if (typeof origSymbol('foo') !== 'symbol') { return false; }
10
- if (typeof Symbol('bar') !== 'symbol') { return false; }
11
-
12
- return hasSymbolSham();
13
- };
14
-
15
- export { hasSymbols as h };