@kitware/vtk.js 25.13.3 → 25.13.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.
Files changed (117) hide show
  1. package/Interaction/Widgets/OrientationMarkerWidget.js +3 -1
  2. package/Rendering/Core/RenderWindowInteractor.d.ts +2 -1
  3. package/Rendering/Core/RenderWindowInteractor.js +1 -1
  4. package/Rendering/OpenGL/ImageMapper.js +4 -8
  5. package/Rendering/OpenGL/PolyDataMapper.js +4 -8
  6. package/macros.js +2 -2
  7. package/package.json +2 -1
  8. package/_vendor/available-typed-arrays/index.js_commonjs-proxy.js +0 -1
  9. package/_vendor/call-bind/callBound.js_commonjs-proxy.js +0 -1
  10. package/_vendor/call-bind/index.js_commonjs-module.js +0 -3
  11. package/_vendor/call-bind/index.js_commonjs-proxy.js +0 -1
  12. package/_vendor/deep-equal/node_modules/isarray/index.js_commonjs-proxy.js +0 -1
  13. package/_vendor/define-properties/index.js_commonjs-proxy.js +0 -1
  14. package/_vendor/es-abstract/helpers/getOwnPropertyDescriptor.js_commonjs-proxy.js +0 -1
  15. package/_vendor/es-get-iterator/index.js_commonjs-module.js +0 -3
  16. package/_vendor/es-get-iterator/index.js_commonjs-proxy.js +0 -1
  17. package/_vendor/es-get-iterator/node_modules/isarray/index.js_commonjs-proxy.js +0 -1
  18. package/_vendor/foreach/index.js_commonjs-proxy.js +0 -1
  19. package/_vendor/function-bind/implementation.js_commonjs-proxy.js +0 -1
  20. package/_vendor/function-bind/index.js_commonjs-proxy.js +0 -1
  21. package/_vendor/get-intrinsic/index.js_commonjs-proxy.js +0 -1
  22. package/_vendor/has/src/index.js_commonjs-proxy.js +0 -1
  23. package/_vendor/has-bigints/index.js_commonjs-proxy.js +0 -1
  24. package/_vendor/has-symbols/index.js_commonjs-proxy.js +0 -1
  25. package/_vendor/has-symbols/shams.js_commonjs-proxy.js +0 -1
  26. package/_vendor/has-tostringtag/shams.js_commonjs-proxy.js +0 -1
  27. package/_vendor/is-arguments/index.js_commonjs-proxy.js +0 -1
  28. package/_vendor/is-bigint/index.js_commonjs-module.js +0 -3
  29. package/_vendor/is-bigint/index.js_commonjs-proxy.js +0 -1
  30. package/_vendor/is-boolean-object/index.js_commonjs-proxy.js +0 -1
  31. package/_vendor/is-date-object/index.js_commonjs-proxy.js +0 -1
  32. package/_vendor/is-map/index.js_commonjs-proxy.js +0 -1
  33. package/_vendor/is-number-object/index.js_commonjs-proxy.js +0 -1
  34. package/_vendor/is-regex/index.js_commonjs-proxy.js +0 -1
  35. package/_vendor/is-set/index.js_commonjs-proxy.js +0 -1
  36. package/_vendor/is-string/index.js_commonjs-proxy.js +0 -1
  37. package/_vendor/is-symbol/index.js_commonjs-module.js +0 -3
  38. package/_vendor/is-symbol/index.js_commonjs-proxy.js +0 -1
  39. package/_vendor/is-typed-array/index.js_commonjs-proxy.js +0 -1
  40. package/_vendor/is-weakmap/index.js_commonjs-proxy.js +0 -1
  41. package/_vendor/is-weakset/index.js_commonjs-proxy.js +0 -1
  42. package/_vendor/object-inspect/index.js_commonjs-proxy.js +0 -1
  43. package/_vendor/object-is/implementation.js_commonjs-proxy.js +0 -1
  44. package/_vendor/object-is/index.js_commonjs-proxy.js +0 -1
  45. package/_vendor/object-is/polyfill.js_commonjs-proxy.js +0 -1
  46. package/_vendor/object-is/shim.js_commonjs-proxy.js +0 -1
  47. package/_vendor/object-keys/implementation.js_commonjs-proxy.js +0 -1
  48. package/_vendor/object-keys/index.js_commonjs-proxy.js +0 -1
  49. package/_vendor/object-keys/isArguments.js_commonjs-proxy.js +0 -1
  50. package/_vendor/object.assign/implementation.js_commonjs-proxy.js +0 -1
  51. package/_vendor/object.assign/index.js_commonjs-proxy.js +0 -1
  52. package/_vendor/object.assign/polyfill.js_commonjs-proxy.js +0 -1
  53. package/_vendor/object.assign/shim.js_commonjs-proxy.js +0 -2
  54. package/_vendor/regexp.prototype.flags/implementation.js_commonjs-proxy.js +0 -1
  55. package/_vendor/regexp.prototype.flags/index.js_commonjs-proxy.js +0 -1
  56. package/_vendor/regexp.prototype.flags/polyfill.js_commonjs-proxy.js +0 -1
  57. package/_vendor/regexp.prototype.flags/shim.js_commonjs-proxy.js +0 -1
  58. package/_vendor/side-channel/index.js_commonjs-proxy.js +0 -1
  59. package/_vendor/which-boxed-primitive/index.js_commonjs-proxy.js +0 -5
  60. package/_vendor/which-collection/index.js_commonjs-proxy.js +0 -4
  61. package/_vendor/which-typed-array/index.js_commonjs-proxy.js +0 -1
  62. package/_virtual/_node-resolve_empty.js_commonjs-proxy.js +0 -6
  63. package/_virtual/commonjsHelpers.js +0 -18
  64. package/_virtual/node-resolve_empty.js +0 -8
  65. package/_virtual/polyfill-node.global.js +0 -5
  66. package/_virtual/polyfill-node.process.js +0 -225
  67. package/vendor/available-typed-arrays/index.js +0 -29
  68. package/vendor/call-bind/callBound.js +0 -19
  69. package/vendor/call-bind/index.js +0 -52
  70. package/vendor/deep-equal/index.js +0 -379
  71. package/vendor/deep-equal/node_modules/isarray/index.js +0 -7
  72. package/vendor/define-properties/index.js +0 -60
  73. package/vendor/es-abstract/helpers/getOwnPropertyDescriptor.js +0 -17
  74. package/vendor/es-get-iterator/index.js +0 -217
  75. package/vendor/es-get-iterator/node_modules/isarray/index.js +0 -7
  76. package/vendor/foreach/index.js +0 -22
  77. package/vendor/function-bind/implementation.js +0 -52
  78. package/vendor/function-bind/index.js +0 -7
  79. package/vendor/get-intrinsic/index.js +0 -334
  80. package/vendor/has/src/index.js +0 -7
  81. package/vendor/has-bigints/index.js +0 -12
  82. package/vendor/has-symbols/index.js +0 -15
  83. package/vendor/has-symbols/shams.js +0 -42
  84. package/vendor/has-tostringtag/shams.js +0 -9
  85. package/vendor/is-arguments/index.js +0 -36
  86. package/vendor/is-bigint/index.js +0 -39
  87. package/vendor/is-boolean-object/index.js +0 -29
  88. package/vendor/is-date-object/index.js +0 -22
  89. package/vendor/is-map/index.js +0 -42
  90. package/vendor/is-number-object/index.js +0 -26
  91. package/vendor/is-regex/index.js +0 -61
  92. package/vendor/is-set/index.js +0 -42
  93. package/vendor/is-string/index.js +0 -26
  94. package/vendor/is-symbol/index.js +0 -36
  95. package/vendor/is-typed-array/index.js +0 -67
  96. package/vendor/is-weakmap/index.js +0 -42
  97. package/vendor/is-weakset/index.js +0 -42
  98. package/vendor/object-inspect/index.js +0 -515
  99. package/vendor/object-is/implementation.js +0 -18
  100. package/vendor/object-is/index.js +0 -25
  101. package/vendor/object-is/polyfill.js +0 -9
  102. package/vendor/object-is/shim.js +0 -17
  103. package/vendor/object-keys/implementation.js +0 -124
  104. package/vendor/object-keys/index.js +0 -35
  105. package/vendor/object-keys/isArguments.js +0 -17
  106. package/vendor/object.assign/implementation.js +0 -46
  107. package/vendor/object.assign/index.js +0 -29
  108. package/vendor/object.assign/polyfill.js +0 -57
  109. package/vendor/object.assign/shim.js +0 -17
  110. package/vendor/regexp.prototype.flags/implementation.js +0 -30
  111. package/vendor/regexp.prototype.flags/index.js +0 -25
  112. package/vendor/regexp.prototype.flags/polyfill.js +0 -23
  113. package/vendor/regexp.prototype.flags/shim.js +0 -29
  114. package/vendor/side-channel/index.js +0 -128
  115. package/vendor/which-boxed-primitive/index.js +0 -38
  116. package/vendor/which-collection/index.js +0 -29
  117. package/vendor/which-typed-array/index.js +0 -63
@@ -1,515 +0,0 @@
1
- import { r as require$$0 } from '../../_virtual/_node-resolve_empty.js_commonjs-proxy.js';
2
-
3
- var hasMap = typeof Map === 'function' && Map.prototype;
4
- var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
5
- var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
6
- var mapForEach = hasMap && Map.prototype.forEach;
7
- var hasSet = typeof Set === 'function' && Set.prototype;
8
- var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
9
- var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
10
- var setForEach = hasSet && Set.prototype.forEach;
11
- var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
12
- var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
13
- var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
14
- var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
15
- var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
16
- var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
17
- var booleanValueOf = Boolean.prototype.valueOf;
18
- var objectToString = Object.prototype.toString;
19
- var functionToString = Function.prototype.toString;
20
- var $match = String.prototype.match;
21
- var $slice = String.prototype.slice;
22
- var $replace = String.prototype.replace;
23
- var $toUpperCase = String.prototype.toUpperCase;
24
- var $toLowerCase = String.prototype.toLowerCase;
25
- var $test = RegExp.prototype.test;
26
- var $concat = Array.prototype.concat;
27
- var $join = Array.prototype.join;
28
- var $arrSlice = Array.prototype.slice;
29
- var $floor = Math.floor;
30
- var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
31
- var gOPS = Object.getOwnPropertySymbols;
32
- var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
33
- var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
34
- // ie, `has-tostringtag/shams
35
- var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
36
- ? Symbol.toStringTag
37
- : null;
38
- var isEnumerable = Object.prototype.propertyIsEnumerable;
39
-
40
- var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
41
- [].__proto__ === Array.prototype // eslint-disable-line no-proto
42
- ? function (O) {
43
- return O.__proto__; // eslint-disable-line no-proto
44
- }
45
- : null
46
- );
47
-
48
- function addNumericSeparator(num, str) {
49
- if (
50
- num === Infinity
51
- || num === -Infinity
52
- || num !== num
53
- || (num && num > -1000 && num < 1000)
54
- || $test.call(/e/, str)
55
- ) {
56
- return str;
57
- }
58
- var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
59
- if (typeof num === 'number') {
60
- var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
61
- if (int !== num) {
62
- var intStr = String(int);
63
- var dec = $slice.call(str, intStr.length + 1);
64
- return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
65
- }
66
- }
67
- return $replace.call(str, sepRegex, '$&_');
68
- }
69
-
70
- var inspectCustom = require$$0.custom;
71
- var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
72
-
73
- var objectInspect = function inspect_(obj, options, depth, seen) {
74
- var opts = options || {};
75
-
76
- if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
77
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
78
- }
79
- if (
80
- has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
81
- ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
82
- : opts.maxStringLength !== null
83
- )
84
- ) {
85
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
86
- }
87
- var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
88
- if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
89
- throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
90
- }
91
-
92
- if (
93
- has(opts, 'indent')
94
- && opts.indent !== null
95
- && opts.indent !== '\t'
96
- && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
97
- ) {
98
- throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
99
- }
100
- if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
101
- throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
102
- }
103
- var numericSeparator = opts.numericSeparator;
104
-
105
- if (typeof obj === 'undefined') {
106
- return 'undefined';
107
- }
108
- if (obj === null) {
109
- return 'null';
110
- }
111
- if (typeof obj === 'boolean') {
112
- return obj ? 'true' : 'false';
113
- }
114
-
115
- if (typeof obj === 'string') {
116
- return inspectString(obj, opts);
117
- }
118
- if (typeof obj === 'number') {
119
- if (obj === 0) {
120
- return Infinity / obj > 0 ? '0' : '-0';
121
- }
122
- var str = String(obj);
123
- return numericSeparator ? addNumericSeparator(obj, str) : str;
124
- }
125
- if (typeof obj === 'bigint') {
126
- var bigIntStr = String(obj) + 'n';
127
- return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
128
- }
129
-
130
- var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
131
- if (typeof depth === 'undefined') { depth = 0; }
132
- if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
133
- return isArray(obj) ? '[Array]' : '[Object]';
134
- }
135
-
136
- var indent = getIndent(opts, depth);
137
-
138
- if (typeof seen === 'undefined') {
139
- seen = [];
140
- } else if (indexOf(seen, obj) >= 0) {
141
- return '[Circular]';
142
- }
143
-
144
- function inspect(value, from, noIndent) {
145
- if (from) {
146
- seen = $arrSlice.call(seen);
147
- seen.push(from);
148
- }
149
- if (noIndent) {
150
- var newOpts = {
151
- depth: opts.depth
152
- };
153
- if (has(opts, 'quoteStyle')) {
154
- newOpts.quoteStyle = opts.quoteStyle;
155
- }
156
- return inspect_(value, newOpts, depth + 1, seen);
157
- }
158
- return inspect_(value, opts, depth + 1, seen);
159
- }
160
-
161
- if (typeof obj === 'function') {
162
- var name = nameOf(obj);
163
- var keys = arrObjKeys(obj, inspect);
164
- return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
165
- }
166
- if (isSymbol(obj)) {
167
- var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
168
- return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
169
- }
170
- if (isElement(obj)) {
171
- var s = '<' + $toLowerCase.call(String(obj.nodeName));
172
- var attrs = obj.attributes || [];
173
- for (var i = 0; i < attrs.length; i++) {
174
- s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
175
- }
176
- s += '>';
177
- if (obj.childNodes && obj.childNodes.length) { s += '...'; }
178
- s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
179
- return s;
180
- }
181
- if (isArray(obj)) {
182
- if (obj.length === 0) { return '[]'; }
183
- var xs = arrObjKeys(obj, inspect);
184
- if (indent && !singleLineValues(xs)) {
185
- return '[' + indentedJoin(xs, indent) + ']';
186
- }
187
- return '[ ' + $join.call(xs, ', ') + ' ]';
188
- }
189
- if (isError(obj)) {
190
- var parts = arrObjKeys(obj, inspect);
191
- if ('cause' in obj && !isEnumerable.call(obj, 'cause')) {
192
- return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
193
- }
194
- if (parts.length === 0) { return '[' + String(obj) + ']'; }
195
- return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
196
- }
197
- if (typeof obj === 'object' && customInspect) {
198
- if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
199
- return obj[inspectSymbol]();
200
- } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
201
- return obj.inspect();
202
- }
203
- }
204
- if (isMap(obj)) {
205
- var mapParts = [];
206
- mapForEach.call(obj, function (value, key) {
207
- mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
208
- });
209
- return collectionOf('Map', mapSize.call(obj), mapParts, indent);
210
- }
211
- if (isSet(obj)) {
212
- var setParts = [];
213
- setForEach.call(obj, function (value) {
214
- setParts.push(inspect(value, obj));
215
- });
216
- return collectionOf('Set', setSize.call(obj), setParts, indent);
217
- }
218
- if (isWeakMap(obj)) {
219
- return weakCollectionOf('WeakMap');
220
- }
221
- if (isWeakSet(obj)) {
222
- return weakCollectionOf('WeakSet');
223
- }
224
- if (isWeakRef(obj)) {
225
- return weakCollectionOf('WeakRef');
226
- }
227
- if (isNumber(obj)) {
228
- return markBoxed(inspect(Number(obj)));
229
- }
230
- if (isBigInt(obj)) {
231
- return markBoxed(inspect(bigIntValueOf.call(obj)));
232
- }
233
- if (isBoolean(obj)) {
234
- return markBoxed(booleanValueOf.call(obj));
235
- }
236
- if (isString(obj)) {
237
- return markBoxed(inspect(String(obj)));
238
- }
239
- if (!isDate(obj) && !isRegExp(obj)) {
240
- var ys = arrObjKeys(obj, inspect);
241
- var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
242
- var protoTag = obj instanceof Object ? '' : 'null prototype';
243
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
244
- var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
245
- var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
246
- if (ys.length === 0) { return tag + '{}'; }
247
- if (indent) {
248
- return tag + '{' + indentedJoin(ys, indent) + '}';
249
- }
250
- return tag + '{ ' + $join.call(ys, ', ') + ' }';
251
- }
252
- return String(obj);
253
- };
254
-
255
- function wrapQuotes(s, defaultStyle, opts) {
256
- var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
257
- return quoteChar + s + quoteChar;
258
- }
259
-
260
- function quote(s) {
261
- return $replace.call(String(s), /"/g, '&quot;');
262
- }
263
-
264
- function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
265
- function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
266
- function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
267
- function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
268
- function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
269
- function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
270
- function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
271
-
272
- // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
273
- function isSymbol(obj) {
274
- if (hasShammedSymbols) {
275
- return obj && typeof obj === 'object' && obj instanceof Symbol;
276
- }
277
- if (typeof obj === 'symbol') {
278
- return true;
279
- }
280
- if (!obj || typeof obj !== 'object' || !symToString) {
281
- return false;
282
- }
283
- try {
284
- symToString.call(obj);
285
- return true;
286
- } catch (e) {}
287
- return false;
288
- }
289
-
290
- function isBigInt(obj) {
291
- if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
292
- return false;
293
- }
294
- try {
295
- bigIntValueOf.call(obj);
296
- return true;
297
- } catch (e) {}
298
- return false;
299
- }
300
-
301
- var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
302
- function has(obj, key) {
303
- return hasOwn.call(obj, key);
304
- }
305
-
306
- function toStr(obj) {
307
- return objectToString.call(obj);
308
- }
309
-
310
- function nameOf(f) {
311
- if (f.name) { return f.name; }
312
- var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
313
- if (m) { return m[1]; }
314
- return null;
315
- }
316
-
317
- function indexOf(xs, x) {
318
- if (xs.indexOf) { return xs.indexOf(x); }
319
- for (var i = 0, l = xs.length; i < l; i++) {
320
- if (xs[i] === x) { return i; }
321
- }
322
- return -1;
323
- }
324
-
325
- function isMap(x) {
326
- if (!mapSize || !x || typeof x !== 'object') {
327
- return false;
328
- }
329
- try {
330
- mapSize.call(x);
331
- try {
332
- setSize.call(x);
333
- } catch (s) {
334
- return true;
335
- }
336
- return x instanceof Map; // core-js workaround, pre-v2.5.0
337
- } catch (e) {}
338
- return false;
339
- }
340
-
341
- function isWeakMap(x) {
342
- if (!weakMapHas || !x || typeof x !== 'object') {
343
- return false;
344
- }
345
- try {
346
- weakMapHas.call(x, weakMapHas);
347
- try {
348
- weakSetHas.call(x, weakSetHas);
349
- } catch (s) {
350
- return true;
351
- }
352
- return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
353
- } catch (e) {}
354
- return false;
355
- }
356
-
357
- function isWeakRef(x) {
358
- if (!weakRefDeref || !x || typeof x !== 'object') {
359
- return false;
360
- }
361
- try {
362
- weakRefDeref.call(x);
363
- return true;
364
- } catch (e) {}
365
- return false;
366
- }
367
-
368
- function isSet(x) {
369
- if (!setSize || !x || typeof x !== 'object') {
370
- return false;
371
- }
372
- try {
373
- setSize.call(x);
374
- try {
375
- mapSize.call(x);
376
- } catch (m) {
377
- return true;
378
- }
379
- return x instanceof Set; // core-js workaround, pre-v2.5.0
380
- } catch (e) {}
381
- return false;
382
- }
383
-
384
- function isWeakSet(x) {
385
- if (!weakSetHas || !x || typeof x !== 'object') {
386
- return false;
387
- }
388
- try {
389
- weakSetHas.call(x, weakSetHas);
390
- try {
391
- weakMapHas.call(x, weakMapHas);
392
- } catch (s) {
393
- return true;
394
- }
395
- return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
396
- } catch (e) {}
397
- return false;
398
- }
399
-
400
- function isElement(x) {
401
- if (!x || typeof x !== 'object') { return false; }
402
- if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
403
- return true;
404
- }
405
- return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
406
- }
407
-
408
- function inspectString(str, opts) {
409
- if (str.length > opts.maxStringLength) {
410
- var remaining = str.length - opts.maxStringLength;
411
- var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
412
- return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
413
- }
414
- // eslint-disable-next-line no-control-regex
415
- var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
416
- return wrapQuotes(s, 'single', opts);
417
- }
418
-
419
- function lowbyte(c) {
420
- var n = c.charCodeAt(0);
421
- var x = {
422
- 8: 'b',
423
- 9: 't',
424
- 10: 'n',
425
- 12: 'f',
426
- 13: 'r'
427
- }[n];
428
- if (x) { return '\\' + x; }
429
- return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
430
- }
431
-
432
- function markBoxed(str) {
433
- return 'Object(' + str + ')';
434
- }
435
-
436
- function weakCollectionOf(type) {
437
- return type + ' { ? }';
438
- }
439
-
440
- function collectionOf(type, size, entries, indent) {
441
- var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
442
- return type + ' (' + size + ') {' + joinedEntries + '}';
443
- }
444
-
445
- function singleLineValues(xs) {
446
- for (var i = 0; i < xs.length; i++) {
447
- if (indexOf(xs[i], '\n') >= 0) {
448
- return false;
449
- }
450
- }
451
- return true;
452
- }
453
-
454
- function getIndent(opts, depth) {
455
- var baseIndent;
456
- if (opts.indent === '\t') {
457
- baseIndent = '\t';
458
- } else if (typeof opts.indent === 'number' && opts.indent > 0) {
459
- baseIndent = $join.call(Array(opts.indent + 1), ' ');
460
- } else {
461
- return null;
462
- }
463
- return {
464
- base: baseIndent,
465
- prev: $join.call(Array(depth + 1), baseIndent)
466
- };
467
- }
468
-
469
- function indentedJoin(xs, indent) {
470
- if (xs.length === 0) { return ''; }
471
- var lineJoiner = '\n' + indent.prev + indent.base;
472
- return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
473
- }
474
-
475
- function arrObjKeys(obj, inspect) {
476
- var isArr = isArray(obj);
477
- var xs = [];
478
- if (isArr) {
479
- xs.length = obj.length;
480
- for (var i = 0; i < obj.length; i++) {
481
- xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
482
- }
483
- }
484
- var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
485
- var symMap;
486
- if (hasShammedSymbols) {
487
- symMap = {};
488
- for (var k = 0; k < syms.length; k++) {
489
- symMap['$' + syms[k]] = syms[k];
490
- }
491
- }
492
-
493
- for (var key in obj) { // eslint-disable-line no-restricted-syntax
494
- if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
495
- if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
496
- if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
497
- // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
498
- continue; // eslint-disable-line no-restricted-syntax, no-continue
499
- } else if ($test.call(/[^\w$]/, key)) {
500
- xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
501
- } else {
502
- xs.push(key + ': ' + inspect(obj[key], obj));
503
- }
504
- }
505
- if (typeof gOPS === 'function') {
506
- for (var j = 0; j < syms.length; j++) {
507
- if (isEnumerable.call(obj, syms[j])) {
508
- xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
509
- }
510
- }
511
- }
512
- return xs;
513
- }
514
-
515
- export { objectInspect as o };
@@ -1,18 +0,0 @@
1
- var numberIsNaN = function (value) {
2
- return value !== value;
3
- };
4
-
5
- var implementation = function is(a, b) {
6
- if (a === 0 && b === 0) {
7
- return 1 / a === 1 / b;
8
- }
9
- if (a === b) {
10
- return true;
11
- }
12
- if (numberIsNaN(a) && numberIsNaN(b)) {
13
- return true;
14
- }
15
- return false;
16
- };
17
-
18
- export { implementation as i };
@@ -1,25 +0,0 @@
1
- import { d as defineProperties_1 } from '../define-properties/index.js';
2
- import '../call-bind/index.js';
3
- import { i as implementation$1 } from './implementation.js';
4
- import { p as polyfill$1 } from './polyfill.js';
5
- import { s as shim$1 } from './shim.js';
6
- import { c as callBind$1 } from '../../_vendor/call-bind/index.js_commonjs-module.js';
7
-
8
- var define = defineProperties_1;
9
- var callBind = callBind$1.exports;
10
-
11
- var implementation = implementation$1;
12
- var getPolyfill = polyfill$1;
13
- var shim = shim$1;
14
-
15
- var polyfill = callBind(getPolyfill(), Object);
16
-
17
- define(polyfill, {
18
- getPolyfill: getPolyfill,
19
- implementation: implementation,
20
- shim: shim
21
- });
22
-
23
- var objectIs = polyfill;
24
-
25
- export { objectIs as o };
@@ -1,9 +0,0 @@
1
- import { i as implementation$1 } from './implementation.js';
2
-
3
- var implementation = implementation$1;
4
-
5
- var polyfill = function getPolyfill() {
6
- return typeof Object.is === 'function' ? Object.is : implementation;
7
- };
8
-
9
- export { polyfill as p };
@@ -1,17 +0,0 @@
1
- import { p as polyfill } from './polyfill.js';
2
- import { d as defineProperties_1 } from '../define-properties/index.js';
3
-
4
- var getPolyfill = polyfill;
5
- var define = defineProperties_1;
6
-
7
- var shim = function shimObjectIs() {
8
- var polyfill = getPolyfill();
9
- define(Object, { is: polyfill }, {
10
- is: function testObjectIs() {
11
- return Object.is !== polyfill;
12
- }
13
- });
14
- return polyfill;
15
- };
16
-
17
- export { shim as s };