test-filesystem 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/test-fs.js +2191 -106
- package/browser/test-fs.min.js +1 -1
- package/dist/functions/setUp.min.mjs +1 -1
- package/dist/functions/setUp.mjs +1 -1
- package/dist/main.d.ts +11 -0
- package/dist/main.js +142 -12
- package/dist/main.min.js +1 -1
- package/dist/main.min.mjs +1 -1
- package/dist/main.mjs +22 -11
- package/package.json +5 -4
package/browser/test-fs.js
CHANGED
|
@@ -1,6 +1,1883 @@
|
|
|
1
1
|
(function () { function r (e, n, t) { function o (i, f) { if (!n[i]) { if (!e[i]) { var c = typeof require === 'function' && require; if (!f && c) return c(i, !0); if (u) return u(i, !0); var a = new Error("Cannot find module '" + i + "'"); throw a.code = 'MODULE_NOT_FOUND', a } var p = n[i] = { exports: {} }; e[i][0].call(p.exports, function (r) { var n = e[i][1][r]; return o(n || r) }, p, p.exports, r, e, n, t) } return n[i].exports } for (var u = typeof require === 'function' && require, i = 0; i < t.length; i++)o(t[i]); return o } return r })()({
|
|
2
2
|
1: [function (require, module, exports) {
|
|
3
3
|
'use strict'
|
|
4
|
+
var isCallable = require('../internals/is-callable')
|
|
5
|
+
var tryToString = require('../internals/try-to-string')
|
|
6
|
+
|
|
7
|
+
var $TypeError = TypeError
|
|
8
|
+
|
|
9
|
+
// `Assert: IsCallable(argument) is true`
|
|
10
|
+
module.exports = function (argument) {
|
|
11
|
+
if (isCallable(argument)) return argument
|
|
12
|
+
throw new $TypeError(tryToString(argument) + ' is not a function')
|
|
13
|
+
}
|
|
14
|
+
}, { '../internals/is-callable': 46, '../internals/try-to-string': 85 }],
|
|
15
|
+
2: [function (require, module, exports) {
|
|
16
|
+
'use strict'
|
|
17
|
+
var has = require('../internals/weak-map-helpers').has
|
|
18
|
+
|
|
19
|
+
// Perform ? RequireInternalSlot(M, [[WeakMapData]])
|
|
20
|
+
module.exports = function (it) {
|
|
21
|
+
has(it)
|
|
22
|
+
return it
|
|
23
|
+
}
|
|
24
|
+
}, { '../internals/weak-map-helpers': 90 }],
|
|
25
|
+
3: [function (require, module, exports) {
|
|
26
|
+
'use strict'
|
|
27
|
+
var isPrototypeOf = require('../internals/object-is-prototype-of')
|
|
28
|
+
|
|
29
|
+
var $TypeError = TypeError
|
|
30
|
+
|
|
31
|
+
module.exports = function (it, Prototype) {
|
|
32
|
+
if (isPrototypeOf(Prototype, it)) return it
|
|
33
|
+
throw new $TypeError('Incorrect invocation')
|
|
34
|
+
}
|
|
35
|
+
}, { '../internals/object-is-prototype-of': 66 }],
|
|
36
|
+
4: [function (require, module, exports) {
|
|
37
|
+
'use strict'
|
|
38
|
+
var isObject = require('../internals/is-object')
|
|
39
|
+
|
|
40
|
+
var $String = String
|
|
41
|
+
var $TypeError = TypeError
|
|
42
|
+
|
|
43
|
+
// `Assert: Type(argument) is Object`
|
|
44
|
+
module.exports = function (argument) {
|
|
45
|
+
if (isObject(argument)) return argument
|
|
46
|
+
throw new $TypeError($String(argument) + ' is not an object')
|
|
47
|
+
}
|
|
48
|
+
}, { '../internals/is-object': 49 }],
|
|
49
|
+
5: [function (require, module, exports) {
|
|
50
|
+
'use strict'
|
|
51
|
+
var toIndexedObject = require('../internals/to-indexed-object')
|
|
52
|
+
var toAbsoluteIndex = require('../internals/to-absolute-index')
|
|
53
|
+
var lengthOfArrayLike = require('../internals/length-of-array-like')
|
|
54
|
+
|
|
55
|
+
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
56
|
+
var createMethod = function (IS_INCLUDES) {
|
|
57
|
+
return function ($this, el, fromIndex) {
|
|
58
|
+
var O = toIndexedObject($this)
|
|
59
|
+
var length = lengthOfArrayLike(O)
|
|
60
|
+
var index = toAbsoluteIndex(fromIndex, length)
|
|
61
|
+
var value
|
|
62
|
+
// Array#includes uses SameValueZero equality algorithm
|
|
63
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
64
|
+
if (IS_INCLUDES && el !== el) {
|
|
65
|
+
while (length > index) {
|
|
66
|
+
value = O[index++]
|
|
67
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
68
|
+
if (value !== value) return true
|
|
69
|
+
// Array#indexOf ignores holes, Array#includes - not
|
|
70
|
+
}
|
|
71
|
+
} else {
|
|
72
|
+
for (;length > index; index++) {
|
|
73
|
+
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0
|
|
74
|
+
}
|
|
75
|
+
} return !IS_INCLUDES && -1
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
module.exports = {
|
|
80
|
+
// `Array.prototype.includes` method
|
|
81
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
82
|
+
includes: createMethod(true),
|
|
83
|
+
// `Array.prototype.indexOf` method
|
|
84
|
+
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
85
|
+
indexOf: createMethod(false)
|
|
86
|
+
}
|
|
87
|
+
}, { '../internals/length-of-array-like': 56, '../internals/to-absolute-index': 77, '../internals/to-indexed-object': 78 }],
|
|
88
|
+
6: [function (require, module, exports) {
|
|
89
|
+
'use strict'
|
|
90
|
+
var call = require('../internals/function-call')
|
|
91
|
+
var getBuiltIn = require('../internals/get-built-in')
|
|
92
|
+
var getMethod = require('../internals/get-method')
|
|
93
|
+
|
|
94
|
+
module.exports = function (iterator, method, argument, reject) {
|
|
95
|
+
try {
|
|
96
|
+
var returnMethod = getMethod(iterator, 'return')
|
|
97
|
+
if (returnMethod) {
|
|
98
|
+
return getBuiltIn('Promise').resolve(call(returnMethod, iterator)).then(function () {
|
|
99
|
+
method(argument)
|
|
100
|
+
}, function (error) {
|
|
101
|
+
reject(error)
|
|
102
|
+
})
|
|
103
|
+
}
|
|
104
|
+
} catch (error2) {
|
|
105
|
+
return reject(error2)
|
|
106
|
+
} method(argument)
|
|
107
|
+
}
|
|
108
|
+
}, { '../internals/function-call': 28, '../internals/get-built-in': 32, '../internals/get-method': 36 }],
|
|
109
|
+
7: [function (require, module, exports) {
|
|
110
|
+
'use strict'
|
|
111
|
+
// https://github.com/tc39/proposal-iterator-helpers
|
|
112
|
+
// https://github.com/tc39/proposal-array-from-async
|
|
113
|
+
var call = require('../internals/function-call')
|
|
114
|
+
var aCallable = require('../internals/a-callable')
|
|
115
|
+
var anObject = require('../internals/an-object')
|
|
116
|
+
var isObject = require('../internals/is-object')
|
|
117
|
+
var doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer')
|
|
118
|
+
var getBuiltIn = require('../internals/get-built-in')
|
|
119
|
+
var getIteratorDirect = require('../internals/get-iterator-direct')
|
|
120
|
+
var closeAsyncIteration = require('../internals/async-iterator-close')
|
|
121
|
+
|
|
122
|
+
var createMethod = function (TYPE) {
|
|
123
|
+
var IS_TO_ARRAY = TYPE === 0
|
|
124
|
+
var IS_FOR_EACH = TYPE === 1
|
|
125
|
+
var IS_EVERY = TYPE === 2
|
|
126
|
+
var IS_SOME = TYPE === 3
|
|
127
|
+
return function (object, fn, target) {
|
|
128
|
+
anObject(object)
|
|
129
|
+
var MAPPING = fn !== undefined
|
|
130
|
+
if (MAPPING || !IS_TO_ARRAY) aCallable(fn)
|
|
131
|
+
var record = getIteratorDirect(object)
|
|
132
|
+
var Promise = getBuiltIn('Promise')
|
|
133
|
+
var iterator = record.iterator
|
|
134
|
+
var next = record.next
|
|
135
|
+
var counter = 0
|
|
136
|
+
|
|
137
|
+
return new Promise(function (resolve, reject) {
|
|
138
|
+
var ifAbruptCloseAsyncIterator = function (error) {
|
|
139
|
+
closeAsyncIteration(iterator, reject, error, reject)
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
var loop = function () {
|
|
143
|
+
try {
|
|
144
|
+
if (MAPPING) {
|
|
145
|
+
try {
|
|
146
|
+
doesNotExceedSafeInteger(counter)
|
|
147
|
+
} catch (error5) { ifAbruptCloseAsyncIterator(error5) }
|
|
148
|
+
}
|
|
149
|
+
Promise.resolve(anObject(call(next, iterator))).then(function (step) {
|
|
150
|
+
try {
|
|
151
|
+
if (anObject(step).done) {
|
|
152
|
+
if (IS_TO_ARRAY) {
|
|
153
|
+
target.length = counter
|
|
154
|
+
resolve(target)
|
|
155
|
+
} else resolve(IS_SOME ? false : IS_EVERY || undefined)
|
|
156
|
+
} else {
|
|
157
|
+
var value = step.value
|
|
158
|
+
try {
|
|
159
|
+
if (MAPPING) {
|
|
160
|
+
var result = fn(value, counter)
|
|
161
|
+
|
|
162
|
+
var handler = function ($result) {
|
|
163
|
+
if (IS_FOR_EACH) {
|
|
164
|
+
loop()
|
|
165
|
+
} else if (IS_EVERY) {
|
|
166
|
+
$result ? loop() : closeAsyncIteration(iterator, resolve, false, reject)
|
|
167
|
+
} else if (IS_TO_ARRAY) {
|
|
168
|
+
try {
|
|
169
|
+
target[counter++] = $result
|
|
170
|
+
loop()
|
|
171
|
+
} catch (error4) { ifAbruptCloseAsyncIterator(error4) }
|
|
172
|
+
} else {
|
|
173
|
+
$result ? closeAsyncIteration(iterator, resolve, IS_SOME || value, reject) : loop()
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator)
|
|
178
|
+
else handler(result)
|
|
179
|
+
} else {
|
|
180
|
+
target[counter++] = value
|
|
181
|
+
loop()
|
|
182
|
+
}
|
|
183
|
+
} catch (error3) { ifAbruptCloseAsyncIterator(error3) }
|
|
184
|
+
}
|
|
185
|
+
} catch (error2) { reject(error2) }
|
|
186
|
+
}, reject)
|
|
187
|
+
} catch (error) { reject(error) }
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
loop()
|
|
191
|
+
})
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
module.exports = {
|
|
196
|
+
toArray: createMethod(0),
|
|
197
|
+
forEach: createMethod(1),
|
|
198
|
+
every: createMethod(2),
|
|
199
|
+
some: createMethod(3),
|
|
200
|
+
find: createMethod(4)
|
|
201
|
+
}
|
|
202
|
+
}, { '../internals/a-callable': 1, '../internals/an-object': 4, '../internals/async-iterator-close': 6, '../internals/does-not-exceed-safe-integer': 20, '../internals/function-call': 28, '../internals/get-built-in': 32, '../internals/get-iterator-direct': 33, '../internals/is-object': 49 }],
|
|
203
|
+
8: [function (require, module, exports) {
|
|
204
|
+
'use strict'
|
|
205
|
+
var uncurryThis = require('../internals/function-uncurry-this')
|
|
206
|
+
|
|
207
|
+
var toString = uncurryThis({}.toString)
|
|
208
|
+
var stringSlice = uncurryThis(''.slice)
|
|
209
|
+
|
|
210
|
+
module.exports = function (it) {
|
|
211
|
+
return stringSlice(toString(it), 8, -1)
|
|
212
|
+
}
|
|
213
|
+
}, { '../internals/function-uncurry-this': 31 }],
|
|
214
|
+
9: [function (require, module, exports) {
|
|
215
|
+
'use strict'
|
|
216
|
+
var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support')
|
|
217
|
+
var isCallable = require('../internals/is-callable')
|
|
218
|
+
var classofRaw = require('../internals/classof-raw')
|
|
219
|
+
var wellKnownSymbol = require('../internals/well-known-symbol')
|
|
220
|
+
|
|
221
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag')
|
|
222
|
+
var $Object = Object
|
|
223
|
+
|
|
224
|
+
// ES3 wrong here
|
|
225
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments }()) === 'Arguments'
|
|
226
|
+
|
|
227
|
+
// fallback for IE11 Script Access Denied error
|
|
228
|
+
var tryGet = function (it, key) {
|
|
229
|
+
try {
|
|
230
|
+
return it[key]
|
|
231
|
+
} catch (error) { /* empty */ }
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
|
235
|
+
module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
236
|
+
var O, tag, result
|
|
237
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
238
|
+
// @@toStringTag case
|
|
239
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) === 'string' ? tag
|
|
240
|
+
// builtinTag case
|
|
241
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
242
|
+
// ES3 arguments fallback
|
|
243
|
+
: (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result
|
|
244
|
+
}
|
|
245
|
+
}, { '../internals/classof-raw': 8, '../internals/is-callable': 46, '../internals/to-string-tag-support': 84, '../internals/well-known-symbol': 91 }],
|
|
246
|
+
10: [function (require, module, exports) {
|
|
247
|
+
'use strict'
|
|
248
|
+
var hasOwn = require('../internals/has-own-property')
|
|
249
|
+
var ownKeys = require('../internals/own-keys')
|
|
250
|
+
var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor')
|
|
251
|
+
var definePropertyModule = require('../internals/object-define-property')
|
|
252
|
+
|
|
253
|
+
module.exports = function (target, source, exceptions) {
|
|
254
|
+
var keys = ownKeys(source)
|
|
255
|
+
var defineProperty = definePropertyModule.f
|
|
256
|
+
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f
|
|
257
|
+
for (var i = 0; i < keys.length; i++) {
|
|
258
|
+
var key = keys[i]
|
|
259
|
+
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
|
|
260
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key))
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}, { '../internals/has-own-property': 38, '../internals/object-define-property': 61, '../internals/object-get-own-property-descriptor': 62, '../internals/own-keys': 71 }],
|
|
265
|
+
11: [function (require, module, exports) {
|
|
266
|
+
'use strict'
|
|
267
|
+
var fails = require('../internals/fails')
|
|
268
|
+
|
|
269
|
+
module.exports = !fails(function () {
|
|
270
|
+
function F () { /* empty */ }
|
|
271
|
+
F.prototype.constructor = null
|
|
272
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
273
|
+
return Object.getPrototypeOf(new F()) !== F.prototype
|
|
274
|
+
})
|
|
275
|
+
}, { '../internals/fails': 25 }],
|
|
276
|
+
12: [function (require, module, exports) {
|
|
277
|
+
'use strict'
|
|
278
|
+
var DESCRIPTORS = require('../internals/descriptors')
|
|
279
|
+
var definePropertyModule = require('../internals/object-define-property')
|
|
280
|
+
var createPropertyDescriptor = require('../internals/create-property-descriptor')
|
|
281
|
+
|
|
282
|
+
module.exports = DESCRIPTORS ? function (object, key, value) {
|
|
283
|
+
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value))
|
|
284
|
+
} : function (object, key, value) {
|
|
285
|
+
object[key] = value
|
|
286
|
+
return object
|
|
287
|
+
}
|
|
288
|
+
}, { '../internals/create-property-descriptor': 13, '../internals/descriptors': 18, '../internals/object-define-property': 61 }],
|
|
289
|
+
13: [function (require, module, exports) {
|
|
290
|
+
'use strict'
|
|
291
|
+
module.exports = function (bitmap, value) {
|
|
292
|
+
return {
|
|
293
|
+
enumerable: !(bitmap & 1),
|
|
294
|
+
configurable: !(bitmap & 2),
|
|
295
|
+
writable: !(bitmap & 4),
|
|
296
|
+
value: value
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}, {}],
|
|
300
|
+
14: [function (require, module, exports) {
|
|
301
|
+
'use strict'
|
|
302
|
+
var toPropertyKey = require('../internals/to-property-key')
|
|
303
|
+
var definePropertyModule = require('../internals/object-define-property')
|
|
304
|
+
var createPropertyDescriptor = require('../internals/create-property-descriptor')
|
|
305
|
+
|
|
306
|
+
module.exports = function (object, key, value) {
|
|
307
|
+
var propertyKey = toPropertyKey(key)
|
|
308
|
+
if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value))
|
|
309
|
+
else object[propertyKey] = value
|
|
310
|
+
}
|
|
311
|
+
}, { '../internals/create-property-descriptor': 13, '../internals/object-define-property': 61, '../internals/to-property-key': 83 }],
|
|
312
|
+
15: [function (require, module, exports) {
|
|
313
|
+
'use strict'
|
|
314
|
+
var makeBuiltIn = require('../internals/make-built-in')
|
|
315
|
+
var defineProperty = require('../internals/object-define-property')
|
|
316
|
+
|
|
317
|
+
module.exports = function (target, name, descriptor) {
|
|
318
|
+
if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true })
|
|
319
|
+
if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true })
|
|
320
|
+
return defineProperty.f(target, name, descriptor)
|
|
321
|
+
}
|
|
322
|
+
}, { '../internals/make-built-in': 57, '../internals/object-define-property': 61 }],
|
|
323
|
+
16: [function (require, module, exports) {
|
|
324
|
+
'use strict'
|
|
325
|
+
var isCallable = require('../internals/is-callable')
|
|
326
|
+
var definePropertyModule = require('../internals/object-define-property')
|
|
327
|
+
var makeBuiltIn = require('../internals/make-built-in')
|
|
328
|
+
var defineGlobalProperty = require('../internals/define-global-property')
|
|
329
|
+
|
|
330
|
+
module.exports = function (O, key, value, options) {
|
|
331
|
+
if (!options) options = {}
|
|
332
|
+
var simple = options.enumerable
|
|
333
|
+
var name = options.name !== undefined ? options.name : key
|
|
334
|
+
if (isCallable(value)) makeBuiltIn(value, name, options)
|
|
335
|
+
if (options.global) {
|
|
336
|
+
if (simple) O[key] = value
|
|
337
|
+
else defineGlobalProperty(key, value)
|
|
338
|
+
} else {
|
|
339
|
+
try {
|
|
340
|
+
if (!options.unsafe) delete O[key]
|
|
341
|
+
else if (O[key]) simple = true
|
|
342
|
+
} catch (error) { /* empty */ }
|
|
343
|
+
if (simple) O[key] = value
|
|
344
|
+
else {
|
|
345
|
+
definePropertyModule.f(O, key, {
|
|
346
|
+
value: value,
|
|
347
|
+
enumerable: false,
|
|
348
|
+
configurable: !options.nonConfigurable,
|
|
349
|
+
writable: !options.nonWritable
|
|
350
|
+
})
|
|
351
|
+
}
|
|
352
|
+
} return O
|
|
353
|
+
}
|
|
354
|
+
}, { '../internals/define-global-property': 17, '../internals/is-callable': 46, '../internals/make-built-in': 57, '../internals/object-define-property': 61 }],
|
|
355
|
+
17: [function (require, module, exports) {
|
|
356
|
+
'use strict'
|
|
357
|
+
var global = require('../internals/global')
|
|
358
|
+
|
|
359
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
360
|
+
var defineProperty = Object.defineProperty
|
|
361
|
+
|
|
362
|
+
module.exports = function (key, value) {
|
|
363
|
+
try {
|
|
364
|
+
defineProperty(global, key, { value: value, configurable: true, writable: true })
|
|
365
|
+
} catch (error) {
|
|
366
|
+
global[key] = value
|
|
367
|
+
} return value
|
|
368
|
+
}
|
|
369
|
+
}, { '../internals/global': 37 }],
|
|
370
|
+
18: [function (require, module, exports) {
|
|
371
|
+
'use strict'
|
|
372
|
+
var fails = require('../internals/fails')
|
|
373
|
+
|
|
374
|
+
// Detect IE8's incomplete defineProperty implementation
|
|
375
|
+
module.exports = !fails(function () {
|
|
376
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
377
|
+
return Object.defineProperty({}, 1, { get: function () { return 7 } })[1] !== 7
|
|
378
|
+
})
|
|
379
|
+
}, { '../internals/fails': 25 }],
|
|
380
|
+
19: [function (require, module, exports) {
|
|
381
|
+
'use strict'
|
|
382
|
+
var global = require('../internals/global')
|
|
383
|
+
var isObject = require('../internals/is-object')
|
|
384
|
+
|
|
385
|
+
var document = global.document
|
|
386
|
+
// typeof document.createElement is 'object' in old IE
|
|
387
|
+
var EXISTS = isObject(document) && isObject(document.createElement)
|
|
388
|
+
|
|
389
|
+
module.exports = function (it) {
|
|
390
|
+
return EXISTS ? document.createElement(it) : {}
|
|
391
|
+
}
|
|
392
|
+
}, { '../internals/global': 37, '../internals/is-object': 49 }],
|
|
393
|
+
20: [function (require, module, exports) {
|
|
394
|
+
'use strict'
|
|
395
|
+
var $TypeError = TypeError
|
|
396
|
+
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF // 2 ** 53 - 1 == 9007199254740991
|
|
397
|
+
|
|
398
|
+
module.exports = function (it) {
|
|
399
|
+
if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded')
|
|
400
|
+
return it
|
|
401
|
+
}
|
|
402
|
+
}, {}],
|
|
403
|
+
21: [function (require, module, exports) {
|
|
404
|
+
'use strict'
|
|
405
|
+
module.exports = typeof navigator !== 'undefined' && String(navigator.userAgent) || ''
|
|
406
|
+
}, {}],
|
|
407
|
+
22: [function (require, module, exports) {
|
|
408
|
+
'use strict'
|
|
409
|
+
var global = require('../internals/global')
|
|
410
|
+
var userAgent = require('../internals/engine-user-agent')
|
|
411
|
+
|
|
412
|
+
var process = global.process
|
|
413
|
+
var Deno = global.Deno
|
|
414
|
+
var versions = process && process.versions || Deno && Deno.version
|
|
415
|
+
var v8 = versions && versions.v8
|
|
416
|
+
var match, version
|
|
417
|
+
|
|
418
|
+
if (v8) {
|
|
419
|
+
match = v8.split('.')
|
|
420
|
+
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
421
|
+
// but their correct versions are not interesting for us
|
|
422
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1])
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
426
|
+
// so check `userAgent` even if `.v8` exists, but 0
|
|
427
|
+
if (!version && userAgent) {
|
|
428
|
+
match = userAgent.match(/Edge\/(\d+)/)
|
|
429
|
+
if (!match || match[1] >= 74) {
|
|
430
|
+
match = userAgent.match(/Chrome\/(\d+)/)
|
|
431
|
+
if (match) version = +match[1]
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
module.exports = version
|
|
436
|
+
}, { '../internals/engine-user-agent': 21, '../internals/global': 37 }],
|
|
437
|
+
23: [function (require, module, exports) {
|
|
438
|
+
'use strict'
|
|
439
|
+
// IE8- don't enum bug keys
|
|
440
|
+
module.exports = [
|
|
441
|
+
'constructor',
|
|
442
|
+
'hasOwnProperty',
|
|
443
|
+
'isPrototypeOf',
|
|
444
|
+
'propertyIsEnumerable',
|
|
445
|
+
'toLocaleString',
|
|
446
|
+
'toString',
|
|
447
|
+
'valueOf'
|
|
448
|
+
]
|
|
449
|
+
}, {}],
|
|
450
|
+
24: [function (require, module, exports) {
|
|
451
|
+
'use strict'
|
|
452
|
+
var global = require('../internals/global')
|
|
453
|
+
var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f
|
|
454
|
+
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property')
|
|
455
|
+
var defineBuiltIn = require('../internals/define-built-in')
|
|
456
|
+
var defineGlobalProperty = require('../internals/define-global-property')
|
|
457
|
+
var copyConstructorProperties = require('../internals/copy-constructor-properties')
|
|
458
|
+
var isForced = require('../internals/is-forced')
|
|
459
|
+
|
|
460
|
+
/*
|
|
461
|
+
options.target - name of the target object
|
|
462
|
+
options.global - target is the global object
|
|
463
|
+
options.stat - export as static methods of target
|
|
464
|
+
options.proto - export as prototype methods of target
|
|
465
|
+
options.real - real prototype method for the `pure` version
|
|
466
|
+
options.forced - export even if the native feature is available
|
|
467
|
+
options.bind - bind methods to the target, required for the `pure` version
|
|
468
|
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
469
|
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
470
|
+
options.sham - add a flag to not completely full polyfills
|
|
471
|
+
options.enumerable - export as enumerable property
|
|
472
|
+
options.dontCallGetSet - prevent calling a getter on target
|
|
473
|
+
options.name - the .name of the function if it does not match the key
|
|
474
|
+
*/
|
|
475
|
+
module.exports = function (options, source) {
|
|
476
|
+
var TARGET = options.target
|
|
477
|
+
var GLOBAL = options.global
|
|
478
|
+
var STATIC = options.stat
|
|
479
|
+
var FORCED, target, key, targetProperty, sourceProperty, descriptor
|
|
480
|
+
if (GLOBAL) {
|
|
481
|
+
target = global
|
|
482
|
+
} else if (STATIC) {
|
|
483
|
+
target = global[TARGET] || defineGlobalProperty(TARGET, {})
|
|
484
|
+
} else {
|
|
485
|
+
target = (global[TARGET] || {}).prototype
|
|
486
|
+
}
|
|
487
|
+
if (target) {
|
|
488
|
+
for (key in source) {
|
|
489
|
+
sourceProperty = source[key]
|
|
490
|
+
if (options.dontCallGetSet) {
|
|
491
|
+
descriptor = getOwnPropertyDescriptor(target, key)
|
|
492
|
+
targetProperty = descriptor && descriptor.value
|
|
493
|
+
} else targetProperty = target[key]
|
|
494
|
+
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced)
|
|
495
|
+
// contained in target
|
|
496
|
+
if (!FORCED && targetProperty !== undefined) {
|
|
497
|
+
if (typeof sourceProperty === typeof targetProperty) continue
|
|
498
|
+
copyConstructorProperties(sourceProperty, targetProperty)
|
|
499
|
+
}
|
|
500
|
+
// add a flag to not completely full polyfills
|
|
501
|
+
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
502
|
+
createNonEnumerableProperty(sourceProperty, 'sham', true)
|
|
503
|
+
}
|
|
504
|
+
defineBuiltIn(target, key, sourceProperty, options)
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
}, { '../internals/copy-constructor-properties': 10, '../internals/create-non-enumerable-property': 12, '../internals/define-built-in': 16, '../internals/define-global-property': 17, '../internals/global': 37, '../internals/is-forced': 47, '../internals/object-get-own-property-descriptor': 62 }],
|
|
509
|
+
25: [function (require, module, exports) {
|
|
510
|
+
'use strict'
|
|
511
|
+
module.exports = function (exec) {
|
|
512
|
+
try {
|
|
513
|
+
return !!exec()
|
|
514
|
+
} catch (error) {
|
|
515
|
+
return true
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
}, {}],
|
|
519
|
+
26: [function (require, module, exports) {
|
|
520
|
+
'use strict'
|
|
521
|
+
var uncurryThis = require('../internals/function-uncurry-this-clause')
|
|
522
|
+
var aCallable = require('../internals/a-callable')
|
|
523
|
+
var NATIVE_BIND = require('../internals/function-bind-native')
|
|
524
|
+
|
|
525
|
+
var bind = uncurryThis(uncurryThis.bind)
|
|
526
|
+
|
|
527
|
+
// optional / simple context binding
|
|
528
|
+
module.exports = function (fn, that) {
|
|
529
|
+
aCallable(fn)
|
|
530
|
+
return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {
|
|
531
|
+
return fn.apply(that, arguments)
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}, { '../internals/a-callable': 1, '../internals/function-bind-native': 27, '../internals/function-uncurry-this-clause': 30 }],
|
|
535
|
+
27: [function (require, module, exports) {
|
|
536
|
+
'use strict'
|
|
537
|
+
var fails = require('../internals/fails')
|
|
538
|
+
|
|
539
|
+
module.exports = !fails(function () {
|
|
540
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
541
|
+
var test = function () { /* empty */ }.bind()
|
|
542
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
543
|
+
return typeof test !== 'function' || test.hasOwnProperty('prototype')
|
|
544
|
+
})
|
|
545
|
+
}, { '../internals/fails': 25 }],
|
|
546
|
+
28: [function (require, module, exports) {
|
|
547
|
+
'use strict'
|
|
548
|
+
var NATIVE_BIND = require('../internals/function-bind-native')
|
|
549
|
+
|
|
550
|
+
var call = Function.prototype.call
|
|
551
|
+
|
|
552
|
+
module.exports = NATIVE_BIND ? call.bind(call) : function () {
|
|
553
|
+
return call.apply(call, arguments)
|
|
554
|
+
}
|
|
555
|
+
}, { '../internals/function-bind-native': 27 }],
|
|
556
|
+
29: [function (require, module, exports) {
|
|
557
|
+
'use strict'
|
|
558
|
+
var DESCRIPTORS = require('../internals/descriptors')
|
|
559
|
+
var hasOwn = require('../internals/has-own-property')
|
|
560
|
+
|
|
561
|
+
var FunctionPrototype = Function.prototype
|
|
562
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
563
|
+
var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor
|
|
564
|
+
|
|
565
|
+
var EXISTS = hasOwn(FunctionPrototype, 'name')
|
|
566
|
+
// additional protection from minified / mangled / dropped function names
|
|
567
|
+
var PROPER = EXISTS && function something () { /* empty */ }.name === 'something'
|
|
568
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable))
|
|
569
|
+
|
|
570
|
+
module.exports = {
|
|
571
|
+
EXISTS: EXISTS,
|
|
572
|
+
PROPER: PROPER,
|
|
573
|
+
CONFIGURABLE: CONFIGURABLE
|
|
574
|
+
}
|
|
575
|
+
}, { '../internals/descriptors': 18, '../internals/has-own-property': 38 }],
|
|
576
|
+
30: [function (require, module, exports) {
|
|
577
|
+
'use strict'
|
|
578
|
+
var classofRaw = require('../internals/classof-raw')
|
|
579
|
+
var uncurryThis = require('../internals/function-uncurry-this')
|
|
580
|
+
|
|
581
|
+
module.exports = function (fn) {
|
|
582
|
+
// Nashorn bug:
|
|
583
|
+
// https://github.com/zloirock/core-js/issues/1128
|
|
584
|
+
// https://github.com/zloirock/core-js/issues/1130
|
|
585
|
+
if (classofRaw(fn) === 'Function') return uncurryThis(fn)
|
|
586
|
+
}
|
|
587
|
+
}, { '../internals/classof-raw': 8, '../internals/function-uncurry-this': 31 }],
|
|
588
|
+
31: [function (require, module, exports) {
|
|
589
|
+
'use strict'
|
|
590
|
+
var NATIVE_BIND = require('../internals/function-bind-native')
|
|
591
|
+
|
|
592
|
+
var FunctionPrototype = Function.prototype
|
|
593
|
+
var call = FunctionPrototype.call
|
|
594
|
+
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call)
|
|
595
|
+
|
|
596
|
+
module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
597
|
+
return function () {
|
|
598
|
+
return call.apply(fn, arguments)
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
}, { '../internals/function-bind-native': 27 }],
|
|
602
|
+
32: [function (require, module, exports) {
|
|
603
|
+
'use strict'
|
|
604
|
+
var global = require('../internals/global')
|
|
605
|
+
var isCallable = require('../internals/is-callable')
|
|
606
|
+
|
|
607
|
+
var aFunction = function (argument) {
|
|
608
|
+
return isCallable(argument) ? argument : undefined
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
module.exports = function (namespace, method) {
|
|
612
|
+
return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method]
|
|
613
|
+
}
|
|
614
|
+
}, { '../internals/global': 37, '../internals/is-callable': 46 }],
|
|
615
|
+
33: [function (require, module, exports) {
|
|
616
|
+
'use strict'
|
|
617
|
+
// `GetIteratorDirect(obj)` abstract operation
|
|
618
|
+
// https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
|
|
619
|
+
module.exports = function (obj) {
|
|
620
|
+
return {
|
|
621
|
+
iterator: obj,
|
|
622
|
+
next: obj.next,
|
|
623
|
+
done: false
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
}, {}],
|
|
627
|
+
34: [function (require, module, exports) {
|
|
628
|
+
'use strict'
|
|
629
|
+
var classof = require('../internals/classof')
|
|
630
|
+
var getMethod = require('../internals/get-method')
|
|
631
|
+
var isNullOrUndefined = require('../internals/is-null-or-undefined')
|
|
632
|
+
var Iterators = require('../internals/iterators')
|
|
633
|
+
var wellKnownSymbol = require('../internals/well-known-symbol')
|
|
634
|
+
|
|
635
|
+
var ITERATOR = wellKnownSymbol('iterator')
|
|
636
|
+
|
|
637
|
+
module.exports = function (it) {
|
|
638
|
+
if (!isNullOrUndefined(it)) {
|
|
639
|
+
return getMethod(it, ITERATOR) ||
|
|
640
|
+
getMethod(it, '@@iterator') ||
|
|
641
|
+
Iterators[classof(it)]
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}, { '../internals/classof': 9, '../internals/get-method': 36, '../internals/is-null-or-undefined': 48, '../internals/iterators': 55, '../internals/well-known-symbol': 91 }],
|
|
645
|
+
35: [function (require, module, exports) {
|
|
646
|
+
'use strict'
|
|
647
|
+
var call = require('../internals/function-call')
|
|
648
|
+
var aCallable = require('../internals/a-callable')
|
|
649
|
+
var anObject = require('../internals/an-object')
|
|
650
|
+
var tryToString = require('../internals/try-to-string')
|
|
651
|
+
var getIteratorMethod = require('../internals/get-iterator-method')
|
|
652
|
+
|
|
653
|
+
var $TypeError = TypeError
|
|
654
|
+
|
|
655
|
+
module.exports = function (argument, usingIterator) {
|
|
656
|
+
var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator
|
|
657
|
+
if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument))
|
|
658
|
+
throw new $TypeError(tryToString(argument) + ' is not iterable')
|
|
659
|
+
}
|
|
660
|
+
}, { '../internals/a-callable': 1, '../internals/an-object': 4, '../internals/function-call': 28, '../internals/get-iterator-method': 34, '../internals/try-to-string': 85 }],
|
|
661
|
+
36: [function (require, module, exports) {
|
|
662
|
+
'use strict'
|
|
663
|
+
var aCallable = require('../internals/a-callable')
|
|
664
|
+
var isNullOrUndefined = require('../internals/is-null-or-undefined')
|
|
665
|
+
|
|
666
|
+
// `GetMethod` abstract operation
|
|
667
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
|
668
|
+
module.exports = function (V, P) {
|
|
669
|
+
var func = V[P]
|
|
670
|
+
return isNullOrUndefined(func) ? undefined : aCallable(func)
|
|
671
|
+
}
|
|
672
|
+
}, { '../internals/a-callable': 1, '../internals/is-null-or-undefined': 48 }],
|
|
673
|
+
37: [function (require, module, exports) {
|
|
674
|
+
(function (global) {
|
|
675
|
+
(function () {
|
|
676
|
+
'use strict'
|
|
677
|
+
var check = function (it) {
|
|
678
|
+
return it && it.Math === Math && it
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
682
|
+
module.exports =
|
|
683
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
|
684
|
+
check(typeof globalThis === 'object' && globalThis) ||
|
|
685
|
+
check(typeof window === 'object' && window) ||
|
|
686
|
+
// eslint-disable-next-line no-restricted-globals -- safe
|
|
687
|
+
check(typeof self === 'object' && self) ||
|
|
688
|
+
check(typeof global === 'object' && global) ||
|
|
689
|
+
check(typeof this === 'object' && this) ||
|
|
690
|
+
// eslint-disable-next-line no-new-func -- fallback
|
|
691
|
+
(function () { return this })() || Function('return this')()
|
|
692
|
+
}).call(this)
|
|
693
|
+
}).call(this, typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : {})
|
|
694
|
+
}, {}],
|
|
695
|
+
38: [function (require, module, exports) {
|
|
696
|
+
'use strict'
|
|
697
|
+
var uncurryThis = require('../internals/function-uncurry-this')
|
|
698
|
+
var toObject = require('../internals/to-object')
|
|
699
|
+
|
|
700
|
+
var hasOwnProperty = uncurryThis({}.hasOwnProperty)
|
|
701
|
+
|
|
702
|
+
// `HasOwnProperty` abstract operation
|
|
703
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
704
|
+
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
705
|
+
module.exports = Object.hasOwn || function hasOwn (it, key) {
|
|
706
|
+
return hasOwnProperty(toObject(it), key)
|
|
707
|
+
}
|
|
708
|
+
}, { '../internals/function-uncurry-this': 31, '../internals/to-object': 81 }],
|
|
709
|
+
39: [function (require, module, exports) {
|
|
710
|
+
'use strict'
|
|
711
|
+
module.exports = {}
|
|
712
|
+
}, {}],
|
|
713
|
+
40: [function (require, module, exports) {
|
|
714
|
+
'use strict'
|
|
715
|
+
var getBuiltIn = require('../internals/get-built-in')
|
|
716
|
+
|
|
717
|
+
module.exports = getBuiltIn('document', 'documentElement')
|
|
718
|
+
}, { '../internals/get-built-in': 32 }],
|
|
719
|
+
41: [function (require, module, exports) {
|
|
720
|
+
'use strict'
|
|
721
|
+
var DESCRIPTORS = require('../internals/descriptors')
|
|
722
|
+
var fails = require('../internals/fails')
|
|
723
|
+
var createElement = require('../internals/document-create-element')
|
|
724
|
+
|
|
725
|
+
// Thanks to IE8 for its funny defineProperty
|
|
726
|
+
module.exports = !DESCRIPTORS && !fails(function () {
|
|
727
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
728
|
+
return Object.defineProperty(createElement('div'), 'a', {
|
|
729
|
+
get: function () { return 7 }
|
|
730
|
+
}).a !== 7
|
|
731
|
+
})
|
|
732
|
+
}, { '../internals/descriptors': 18, '../internals/document-create-element': 19, '../internals/fails': 25 }],
|
|
733
|
+
42: [function (require, module, exports) {
|
|
734
|
+
'use strict'
|
|
735
|
+
var uncurryThis = require('../internals/function-uncurry-this')
|
|
736
|
+
var fails = require('../internals/fails')
|
|
737
|
+
var classof = require('../internals/classof-raw')
|
|
738
|
+
|
|
739
|
+
var $Object = Object
|
|
740
|
+
var split = uncurryThis(''.split)
|
|
741
|
+
|
|
742
|
+
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
743
|
+
module.exports = fails(function () {
|
|
744
|
+
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
745
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
746
|
+
return !$Object('z').propertyIsEnumerable(0)
|
|
747
|
+
}) ? function (it) {
|
|
748
|
+
return classof(it) === 'String' ? split(it, '') : $Object(it)
|
|
749
|
+
} : $Object
|
|
750
|
+
}, { '../internals/classof-raw': 8, '../internals/fails': 25, '../internals/function-uncurry-this': 31 }],
|
|
751
|
+
43: [function (require, module, exports) {
|
|
752
|
+
'use strict'
|
|
753
|
+
var uncurryThis = require('../internals/function-uncurry-this')
|
|
754
|
+
var isCallable = require('../internals/is-callable')
|
|
755
|
+
var store = require('../internals/shared-store')
|
|
756
|
+
|
|
757
|
+
var functionToString = uncurryThis(Function.toString)
|
|
758
|
+
|
|
759
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
760
|
+
if (!isCallable(store.inspectSource)) {
|
|
761
|
+
store.inspectSource = function (it) {
|
|
762
|
+
return functionToString(it)
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
module.exports = store.inspectSource
|
|
767
|
+
}, { '../internals/function-uncurry-this': 31, '../internals/is-callable': 46, '../internals/shared-store': 74 }],
|
|
768
|
+
44: [function (require, module, exports) {
|
|
769
|
+
'use strict'
|
|
770
|
+
var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection')
|
|
771
|
+
var global = require('../internals/global')
|
|
772
|
+
var isObject = require('../internals/is-object')
|
|
773
|
+
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property')
|
|
774
|
+
var hasOwn = require('../internals/has-own-property')
|
|
775
|
+
var shared = require('../internals/shared-store')
|
|
776
|
+
var sharedKey = require('../internals/shared-key')
|
|
777
|
+
var hiddenKeys = require('../internals/hidden-keys')
|
|
778
|
+
|
|
779
|
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'
|
|
780
|
+
var TypeError = global.TypeError
|
|
781
|
+
var WeakMap = global.WeakMap
|
|
782
|
+
var set, get, has
|
|
783
|
+
|
|
784
|
+
var enforce = function (it) {
|
|
785
|
+
return has(it) ? get(it) : set(it, {})
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
var getterFor = function (TYPE) {
|
|
789
|
+
return function (it) {
|
|
790
|
+
var state
|
|
791
|
+
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
792
|
+
throw new TypeError('Incompatible receiver, ' + TYPE + ' required')
|
|
793
|
+
} return state
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
if (NATIVE_WEAK_MAP || shared.state) {
|
|
798
|
+
var store = shared.state || (shared.state = new WeakMap())
|
|
799
|
+
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
800
|
+
store.get = store.get
|
|
801
|
+
store.has = store.has
|
|
802
|
+
store.set = store.set
|
|
803
|
+
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
804
|
+
set = function (it, metadata) {
|
|
805
|
+
if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED)
|
|
806
|
+
metadata.facade = it
|
|
807
|
+
store.set(it, metadata)
|
|
808
|
+
return metadata
|
|
809
|
+
}
|
|
810
|
+
get = function (it) {
|
|
811
|
+
return store.get(it) || {}
|
|
812
|
+
}
|
|
813
|
+
has = function (it) {
|
|
814
|
+
return store.has(it)
|
|
815
|
+
}
|
|
816
|
+
} else {
|
|
817
|
+
var STATE = sharedKey('state')
|
|
818
|
+
hiddenKeys[STATE] = true
|
|
819
|
+
set = function (it, metadata) {
|
|
820
|
+
if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED)
|
|
821
|
+
metadata.facade = it
|
|
822
|
+
createNonEnumerableProperty(it, STATE, metadata)
|
|
823
|
+
return metadata
|
|
824
|
+
}
|
|
825
|
+
get = function (it) {
|
|
826
|
+
return hasOwn(it, STATE) ? it[STATE] : {}
|
|
827
|
+
}
|
|
828
|
+
has = function (it) {
|
|
829
|
+
return hasOwn(it, STATE)
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
module.exports = {
|
|
834
|
+
set: set,
|
|
835
|
+
get: get,
|
|
836
|
+
has: has,
|
|
837
|
+
enforce: enforce,
|
|
838
|
+
getterFor: getterFor
|
|
839
|
+
}
|
|
840
|
+
}, { '../internals/create-non-enumerable-property': 12, '../internals/global': 37, '../internals/has-own-property': 38, '../internals/hidden-keys': 39, '../internals/is-object': 49, '../internals/shared-key': 73, '../internals/shared-store': 74, '../internals/weak-map-basic-detection': 89 }],
|
|
841
|
+
45: [function (require, module, exports) {
|
|
842
|
+
'use strict'
|
|
843
|
+
var wellKnownSymbol = require('../internals/well-known-symbol')
|
|
844
|
+
var Iterators = require('../internals/iterators')
|
|
845
|
+
|
|
846
|
+
var ITERATOR = wellKnownSymbol('iterator')
|
|
847
|
+
var ArrayPrototype = Array.prototype
|
|
848
|
+
|
|
849
|
+
// check on default Array iterator
|
|
850
|
+
module.exports = function (it) {
|
|
851
|
+
return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it)
|
|
852
|
+
}
|
|
853
|
+
}, { '../internals/iterators': 55, '../internals/well-known-symbol': 91 }],
|
|
854
|
+
46: [function (require, module, exports) {
|
|
855
|
+
'use strict'
|
|
856
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
857
|
+
var documentAll = typeof document === 'object' && document.all
|
|
858
|
+
|
|
859
|
+
// `IsCallable` abstract operation
|
|
860
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
|
861
|
+
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
862
|
+
module.exports = typeof documentAll === 'undefined' && documentAll !== undefined ? function (argument) {
|
|
863
|
+
return typeof argument === 'function' || argument === documentAll
|
|
864
|
+
} : function (argument) {
|
|
865
|
+
return typeof argument === 'function'
|
|
866
|
+
}
|
|
867
|
+
}, {}],
|
|
868
|
+
47: [function (require, module, exports) {
|
|
869
|
+
'use strict'
|
|
870
|
+
var fails = require('../internals/fails')
|
|
871
|
+
var isCallable = require('../internals/is-callable')
|
|
872
|
+
|
|
873
|
+
var replacement = /#|\.prototype\./
|
|
874
|
+
|
|
875
|
+
var isForced = function (feature, detection) {
|
|
876
|
+
var value = data[normalize(feature)]
|
|
877
|
+
return value === POLYFILL ? true
|
|
878
|
+
: value === NATIVE ? false
|
|
879
|
+
: isCallable(detection) ? fails(detection)
|
|
880
|
+
: !!detection
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
var normalize = isForced.normalize = function (string) {
|
|
884
|
+
return String(string).replace(replacement, '.').toLowerCase()
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
var data = isForced.data = {}
|
|
888
|
+
var NATIVE = isForced.NATIVE = 'N'
|
|
889
|
+
var POLYFILL = isForced.POLYFILL = 'P'
|
|
890
|
+
|
|
891
|
+
module.exports = isForced
|
|
892
|
+
}, { '../internals/fails': 25, '../internals/is-callable': 46 }],
|
|
893
|
+
48: [function (require, module, exports) {
|
|
894
|
+
'use strict'
|
|
895
|
+
// we can't use just `it == null` since of `document.all` special case
|
|
896
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
897
|
+
module.exports = function (it) {
|
|
898
|
+
return it === null || it === undefined
|
|
899
|
+
}
|
|
900
|
+
}, {}],
|
|
901
|
+
49: [function (require, module, exports) {
|
|
902
|
+
'use strict'
|
|
903
|
+
var isCallable = require('../internals/is-callable')
|
|
904
|
+
|
|
905
|
+
module.exports = function (it) {
|
|
906
|
+
return typeof it === 'object' ? it !== null : isCallable(it)
|
|
907
|
+
}
|
|
908
|
+
}, { '../internals/is-callable': 46 }],
|
|
909
|
+
50: [function (require, module, exports) {
|
|
910
|
+
'use strict'
|
|
911
|
+
module.exports = false
|
|
912
|
+
}, {}],
|
|
913
|
+
51: [function (require, module, exports) {
|
|
914
|
+
'use strict'
|
|
915
|
+
var getBuiltIn = require('../internals/get-built-in')
|
|
916
|
+
var isCallable = require('../internals/is-callable')
|
|
917
|
+
var isPrototypeOf = require('../internals/object-is-prototype-of')
|
|
918
|
+
var USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid')
|
|
919
|
+
|
|
920
|
+
var $Object = Object
|
|
921
|
+
|
|
922
|
+
module.exports = USE_SYMBOL_AS_UID ? function (it) {
|
|
923
|
+
return typeof it === 'symbol'
|
|
924
|
+
} : function (it) {
|
|
925
|
+
var $Symbol = getBuiltIn('Symbol')
|
|
926
|
+
return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it))
|
|
927
|
+
}
|
|
928
|
+
}, { '../internals/get-built-in': 32, '../internals/is-callable': 46, '../internals/object-is-prototype-of': 66, '../internals/use-symbol-as-uid': 87 }],
|
|
929
|
+
52: [function (require, module, exports) {
|
|
930
|
+
'use strict'
|
|
931
|
+
var bind = require('../internals/function-bind-context')
|
|
932
|
+
var call = require('../internals/function-call')
|
|
933
|
+
var anObject = require('../internals/an-object')
|
|
934
|
+
var tryToString = require('../internals/try-to-string')
|
|
935
|
+
var isArrayIteratorMethod = require('../internals/is-array-iterator-method')
|
|
936
|
+
var lengthOfArrayLike = require('../internals/length-of-array-like')
|
|
937
|
+
var isPrototypeOf = require('../internals/object-is-prototype-of')
|
|
938
|
+
var getIterator = require('../internals/get-iterator')
|
|
939
|
+
var getIteratorMethod = require('../internals/get-iterator-method')
|
|
940
|
+
var iteratorClose = require('../internals/iterator-close')
|
|
941
|
+
|
|
942
|
+
var $TypeError = TypeError
|
|
943
|
+
|
|
944
|
+
var Result = function (stopped, result) {
|
|
945
|
+
this.stopped = stopped
|
|
946
|
+
this.result = result
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
var ResultPrototype = Result.prototype
|
|
950
|
+
|
|
951
|
+
module.exports = function (iterable, unboundFunction, options) {
|
|
952
|
+
var that = options && options.that
|
|
953
|
+
var AS_ENTRIES = !!(options && options.AS_ENTRIES)
|
|
954
|
+
var IS_RECORD = !!(options && options.IS_RECORD)
|
|
955
|
+
var IS_ITERATOR = !!(options && options.IS_ITERATOR)
|
|
956
|
+
var INTERRUPTED = !!(options && options.INTERRUPTED)
|
|
957
|
+
var fn = bind(unboundFunction, that)
|
|
958
|
+
var iterator, iterFn, index, length, result, next, step
|
|
959
|
+
|
|
960
|
+
var stop = function (condition) {
|
|
961
|
+
if (iterator) iteratorClose(iterator, 'normal', condition)
|
|
962
|
+
return new Result(true, condition)
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
var callFn = function (value) {
|
|
966
|
+
if (AS_ENTRIES) {
|
|
967
|
+
anObject(value)
|
|
968
|
+
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1])
|
|
969
|
+
} return INTERRUPTED ? fn(value, stop) : fn(value)
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
if (IS_RECORD) {
|
|
973
|
+
iterator = iterable.iterator
|
|
974
|
+
} else if (IS_ITERATOR) {
|
|
975
|
+
iterator = iterable
|
|
976
|
+
} else {
|
|
977
|
+
iterFn = getIteratorMethod(iterable)
|
|
978
|
+
if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable')
|
|
979
|
+
// optimisation for array iterators
|
|
980
|
+
if (isArrayIteratorMethod(iterFn)) {
|
|
981
|
+
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
982
|
+
result = callFn(iterable[index])
|
|
983
|
+
if (result && isPrototypeOf(ResultPrototype, result)) return result
|
|
984
|
+
} return new Result(false)
|
|
985
|
+
}
|
|
986
|
+
iterator = getIterator(iterable, iterFn)
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
next = IS_RECORD ? iterable.next : iterator.next
|
|
990
|
+
while (!(step = call(next, iterator)).done) {
|
|
991
|
+
try {
|
|
992
|
+
result = callFn(step.value)
|
|
993
|
+
} catch (error) {
|
|
994
|
+
iteratorClose(iterator, 'throw', error)
|
|
995
|
+
}
|
|
996
|
+
if (typeof result === 'object' && result && isPrototypeOf(ResultPrototype, result)) return result
|
|
997
|
+
} return new Result(false)
|
|
998
|
+
}
|
|
999
|
+
}, { '../internals/an-object': 4, '../internals/function-bind-context': 26, '../internals/function-call': 28, '../internals/get-iterator': 35, '../internals/get-iterator-method': 34, '../internals/is-array-iterator-method': 45, '../internals/iterator-close': 53, '../internals/length-of-array-like': 56, '../internals/object-is-prototype-of': 66, '../internals/try-to-string': 85 }],
|
|
1000
|
+
53: [function (require, module, exports) {
|
|
1001
|
+
'use strict'
|
|
1002
|
+
var call = require('../internals/function-call')
|
|
1003
|
+
var anObject = require('../internals/an-object')
|
|
1004
|
+
var getMethod = require('../internals/get-method')
|
|
1005
|
+
|
|
1006
|
+
module.exports = function (iterator, kind, value) {
|
|
1007
|
+
var innerResult, innerError
|
|
1008
|
+
anObject(iterator)
|
|
1009
|
+
try {
|
|
1010
|
+
innerResult = getMethod(iterator, 'return')
|
|
1011
|
+
if (!innerResult) {
|
|
1012
|
+
if (kind === 'throw') throw value
|
|
1013
|
+
return value
|
|
1014
|
+
}
|
|
1015
|
+
innerResult = call(innerResult, iterator)
|
|
1016
|
+
} catch (error) {
|
|
1017
|
+
innerError = true
|
|
1018
|
+
innerResult = error
|
|
1019
|
+
}
|
|
1020
|
+
if (kind === 'throw') throw value
|
|
1021
|
+
if (innerError) throw innerResult
|
|
1022
|
+
anObject(innerResult)
|
|
1023
|
+
return value
|
|
1024
|
+
}
|
|
1025
|
+
}, { '../internals/an-object': 4, '../internals/function-call': 28, '../internals/get-method': 36 }],
|
|
1026
|
+
54: [function (require, module, exports) {
|
|
1027
|
+
'use strict'
|
|
1028
|
+
var fails = require('../internals/fails')
|
|
1029
|
+
var isCallable = require('../internals/is-callable')
|
|
1030
|
+
var isObject = require('../internals/is-object')
|
|
1031
|
+
var create = require('../internals/object-create')
|
|
1032
|
+
var getPrototypeOf = require('../internals/object-get-prototype-of')
|
|
1033
|
+
var defineBuiltIn = require('../internals/define-built-in')
|
|
1034
|
+
var wellKnownSymbol = require('../internals/well-known-symbol')
|
|
1035
|
+
var IS_PURE = require('../internals/is-pure')
|
|
1036
|
+
|
|
1037
|
+
var ITERATOR = wellKnownSymbol('iterator')
|
|
1038
|
+
var BUGGY_SAFARI_ITERATORS = false
|
|
1039
|
+
|
|
1040
|
+
// `%IteratorPrototype%` object
|
|
1041
|
+
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
1042
|
+
var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator
|
|
1043
|
+
|
|
1044
|
+
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
1045
|
+
if ([].keys) {
|
|
1046
|
+
arrayIterator = [].keys()
|
|
1047
|
+
// Safari 8 has buggy iterators w/o `next`
|
|
1048
|
+
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true
|
|
1049
|
+
else {
|
|
1050
|
+
PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator))
|
|
1051
|
+
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {
|
|
1056
|
+
var test = {}
|
|
1057
|
+
// FF44- legacy iterators case
|
|
1058
|
+
return IteratorPrototype[ITERATOR].call(test) !== test
|
|
1059
|
+
})
|
|
1060
|
+
|
|
1061
|
+
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {}
|
|
1062
|
+
else if (IS_PURE) IteratorPrototype = create(IteratorPrototype)
|
|
1063
|
+
|
|
1064
|
+
// `%IteratorPrototype%[@@iterator]()` method
|
|
1065
|
+
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1066
|
+
if (!isCallable(IteratorPrototype[ITERATOR])) {
|
|
1067
|
+
defineBuiltIn(IteratorPrototype, ITERATOR, function () {
|
|
1068
|
+
return this
|
|
1069
|
+
})
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
module.exports = {
|
|
1073
|
+
IteratorPrototype: IteratorPrototype,
|
|
1074
|
+
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
|
|
1075
|
+
}
|
|
1076
|
+
}, { '../internals/define-built-in': 16, '../internals/fails': 25, '../internals/is-callable': 46, '../internals/is-object': 49, '../internals/is-pure': 50, '../internals/object-create': 59, '../internals/object-get-prototype-of': 65, '../internals/well-known-symbol': 91 }],
|
|
1077
|
+
55: [function (require, module, exports) {
|
|
1078
|
+
arguments[4][39][0].apply(exports, arguments)
|
|
1079
|
+
}, { dup: 39 }],
|
|
1080
|
+
56: [function (require, module, exports) {
|
|
1081
|
+
'use strict'
|
|
1082
|
+
var toLength = require('../internals/to-length')
|
|
1083
|
+
|
|
1084
|
+
// `LengthOfArrayLike` abstract operation
|
|
1085
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
1086
|
+
module.exports = function (obj) {
|
|
1087
|
+
return toLength(obj.length)
|
|
1088
|
+
}
|
|
1089
|
+
}, { '../internals/to-length': 80 }],
|
|
1090
|
+
57: [function (require, module, exports) {
|
|
1091
|
+
'use strict'
|
|
1092
|
+
var uncurryThis = require('../internals/function-uncurry-this')
|
|
1093
|
+
var fails = require('../internals/fails')
|
|
1094
|
+
var isCallable = require('../internals/is-callable')
|
|
1095
|
+
var hasOwn = require('../internals/has-own-property')
|
|
1096
|
+
var DESCRIPTORS = require('../internals/descriptors')
|
|
1097
|
+
var CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE
|
|
1098
|
+
var inspectSource = require('../internals/inspect-source')
|
|
1099
|
+
var InternalStateModule = require('../internals/internal-state')
|
|
1100
|
+
|
|
1101
|
+
var enforceInternalState = InternalStateModule.enforce
|
|
1102
|
+
var getInternalState = InternalStateModule.get
|
|
1103
|
+
var $String = String
|
|
1104
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
1105
|
+
var defineProperty = Object.defineProperty
|
|
1106
|
+
var stringSlice = uncurryThis(''.slice)
|
|
1107
|
+
var replace = uncurryThis(''.replace)
|
|
1108
|
+
var join = uncurryThis([].join)
|
|
1109
|
+
|
|
1110
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
|
|
1111
|
+
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8
|
|
1112
|
+
})
|
|
1113
|
+
|
|
1114
|
+
var TEMPLATE = String(String).split('String')
|
|
1115
|
+
|
|
1116
|
+
var makeBuiltIn = module.exports = function (value, name, options) {
|
|
1117
|
+
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
|
1118
|
+
name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']'
|
|
1119
|
+
}
|
|
1120
|
+
if (options && options.getter) name = 'get ' + name
|
|
1121
|
+
if (options && options.setter) name = 'set ' + name
|
|
1122
|
+
if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
1123
|
+
if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true })
|
|
1124
|
+
else value.name = name
|
|
1125
|
+
}
|
|
1126
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
|
|
1127
|
+
defineProperty(value, 'length', { value: options.arity })
|
|
1128
|
+
}
|
|
1129
|
+
try {
|
|
1130
|
+
if (options && hasOwn(options, 'constructor') && options.constructor) {
|
|
1131
|
+
if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false })
|
|
1132
|
+
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
1133
|
+
} else if (value.prototype) value.prototype = undefined
|
|
1134
|
+
} catch (error) { /* empty */ }
|
|
1135
|
+
var state = enforceInternalState(value)
|
|
1136
|
+
if (!hasOwn(state, 'source')) {
|
|
1137
|
+
state.source = join(TEMPLATE, typeof name === 'string' ? name : '')
|
|
1138
|
+
} return value
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
1142
|
+
// eslint-disable-next-line no-extend-native -- required
|
|
1143
|
+
Function.prototype.toString = makeBuiltIn(function toString () {
|
|
1144
|
+
return isCallable(this) && getInternalState(this).source || inspectSource(this)
|
|
1145
|
+
}, 'toString')
|
|
1146
|
+
}, { '../internals/descriptors': 18, '../internals/fails': 25, '../internals/function-name': 29, '../internals/function-uncurry-this': 31, '../internals/has-own-property': 38, '../internals/inspect-source': 43, '../internals/internal-state': 44, '../internals/is-callable': 46 }],
|
|
1147
|
+
58: [function (require, module, exports) {
|
|
1148
|
+
'use strict'
|
|
1149
|
+
var ceil = Math.ceil
|
|
1150
|
+
var floor = Math.floor
|
|
1151
|
+
|
|
1152
|
+
// `Math.trunc` method
|
|
1153
|
+
// https://tc39.es/ecma262/#sec-math.trunc
|
|
1154
|
+
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
1155
|
+
module.exports = Math.trunc || function trunc (x) {
|
|
1156
|
+
var n = +x
|
|
1157
|
+
return (n > 0 ? floor : ceil)(n)
|
|
1158
|
+
}
|
|
1159
|
+
}, {}],
|
|
1160
|
+
59: [function (require, module, exports) {
|
|
1161
|
+
'use strict'
|
|
1162
|
+
/* global ActiveXObject -- old IE, WSH */
|
|
1163
|
+
var anObject = require('../internals/an-object')
|
|
1164
|
+
var definePropertiesModule = require('../internals/object-define-properties')
|
|
1165
|
+
var enumBugKeys = require('../internals/enum-bug-keys')
|
|
1166
|
+
var hiddenKeys = require('../internals/hidden-keys')
|
|
1167
|
+
var html = require('../internals/html')
|
|
1168
|
+
var documentCreateElement = require('../internals/document-create-element')
|
|
1169
|
+
var sharedKey = require('../internals/shared-key')
|
|
1170
|
+
|
|
1171
|
+
var GT = '>'
|
|
1172
|
+
var LT = '<'
|
|
1173
|
+
var PROTOTYPE = 'prototype'
|
|
1174
|
+
var SCRIPT = 'script'
|
|
1175
|
+
var IE_PROTO = sharedKey('IE_PROTO')
|
|
1176
|
+
|
|
1177
|
+
var EmptyConstructor = function () { /* empty */ }
|
|
1178
|
+
|
|
1179
|
+
var scriptTag = function (content) {
|
|
1180
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
1184
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
1185
|
+
activeXDocument.write(scriptTag(''))
|
|
1186
|
+
activeXDocument.close()
|
|
1187
|
+
var temp = activeXDocument.parentWindow.Object
|
|
1188
|
+
activeXDocument = null // avoid memory leak
|
|
1189
|
+
return temp
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
1193
|
+
var NullProtoObjectViaIFrame = function () {
|
|
1194
|
+
// Thrash, waste and sodomy: IE GC bug
|
|
1195
|
+
var iframe = documentCreateElement('iframe')
|
|
1196
|
+
var JS = 'java' + SCRIPT + ':'
|
|
1197
|
+
var iframeDocument
|
|
1198
|
+
iframe.style.display = 'none'
|
|
1199
|
+
html.appendChild(iframe)
|
|
1200
|
+
// https://github.com/zloirock/core-js/issues/475
|
|
1201
|
+
iframe.src = String(JS)
|
|
1202
|
+
iframeDocument = iframe.contentWindow.document
|
|
1203
|
+
iframeDocument.open()
|
|
1204
|
+
iframeDocument.write(scriptTag('document.F=Object'))
|
|
1205
|
+
iframeDocument.close()
|
|
1206
|
+
return iframeDocument.F
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
// Check for document.domain and active x support
|
|
1210
|
+
// No need to use active x approach when document.domain is not set
|
|
1211
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
|
1212
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
1213
|
+
// avoid IE GC bug
|
|
1214
|
+
var activeXDocument
|
|
1215
|
+
var NullProtoObject = function () {
|
|
1216
|
+
try {
|
|
1217
|
+
activeXDocument = new ActiveXObject('htmlfile')
|
|
1218
|
+
} catch (error) { /* ignore */ }
|
|
1219
|
+
NullProtoObject = typeof document !== 'undefined'
|
|
1220
|
+
? document.domain && activeXDocument
|
|
1221
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
1222
|
+
: NullProtoObjectViaIFrame()
|
|
1223
|
+
: NullProtoObjectViaActiveX(activeXDocument) // WSH
|
|
1224
|
+
var length = enumBugKeys.length
|
|
1225
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]]
|
|
1226
|
+
return NullProtoObject()
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
hiddenKeys[IE_PROTO] = true
|
|
1230
|
+
|
|
1231
|
+
// `Object.create` method
|
|
1232
|
+
// https://tc39.es/ecma262/#sec-object.create
|
|
1233
|
+
// eslint-disable-next-line es/no-object-create -- safe
|
|
1234
|
+
module.exports = Object.create || function create (O, Properties) {
|
|
1235
|
+
var result
|
|
1236
|
+
if (O !== null) {
|
|
1237
|
+
EmptyConstructor[PROTOTYPE] = anObject(O)
|
|
1238
|
+
result = new EmptyConstructor()
|
|
1239
|
+
EmptyConstructor[PROTOTYPE] = null
|
|
1240
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
1241
|
+
result[IE_PROTO] = O
|
|
1242
|
+
} else result = NullProtoObject()
|
|
1243
|
+
return Properties === undefined ? result : definePropertiesModule.f(result, Properties)
|
|
1244
|
+
}
|
|
1245
|
+
}, { '../internals/an-object': 4, '../internals/document-create-element': 19, '../internals/enum-bug-keys': 23, '../internals/hidden-keys': 39, '../internals/html': 40, '../internals/object-define-properties': 60, '../internals/shared-key': 73 }],
|
|
1246
|
+
60: [function (require, module, exports) {
|
|
1247
|
+
'use strict'
|
|
1248
|
+
var DESCRIPTORS = require('../internals/descriptors')
|
|
1249
|
+
var V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug')
|
|
1250
|
+
var definePropertyModule = require('../internals/object-define-property')
|
|
1251
|
+
var anObject = require('../internals/an-object')
|
|
1252
|
+
var toIndexedObject = require('../internals/to-indexed-object')
|
|
1253
|
+
var objectKeys = require('../internals/object-keys')
|
|
1254
|
+
|
|
1255
|
+
// `Object.defineProperties` method
|
|
1256
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1257
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1258
|
+
exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties (O, Properties) {
|
|
1259
|
+
anObject(O)
|
|
1260
|
+
var props = toIndexedObject(Properties)
|
|
1261
|
+
var keys = objectKeys(Properties)
|
|
1262
|
+
var length = keys.length
|
|
1263
|
+
var index = 0
|
|
1264
|
+
var key
|
|
1265
|
+
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key])
|
|
1266
|
+
return O
|
|
1267
|
+
}
|
|
1268
|
+
}, { '../internals/an-object': 4, '../internals/descriptors': 18, '../internals/object-define-property': 61, '../internals/object-keys': 68, '../internals/to-indexed-object': 78, '../internals/v8-prototype-define-bug': 88 }],
|
|
1269
|
+
61: [function (require, module, exports) {
|
|
1270
|
+
'use strict'
|
|
1271
|
+
var DESCRIPTORS = require('../internals/descriptors')
|
|
1272
|
+
var IE8_DOM_DEFINE = require('../internals/ie8-dom-define')
|
|
1273
|
+
var V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug')
|
|
1274
|
+
var anObject = require('../internals/an-object')
|
|
1275
|
+
var toPropertyKey = require('../internals/to-property-key')
|
|
1276
|
+
|
|
1277
|
+
var $TypeError = TypeError
|
|
1278
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
1279
|
+
var $defineProperty = Object.defineProperty
|
|
1280
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1281
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor
|
|
1282
|
+
var ENUMERABLE = 'enumerable'
|
|
1283
|
+
var CONFIGURABLE = 'configurable'
|
|
1284
|
+
var WRITABLE = 'writable'
|
|
1285
|
+
|
|
1286
|
+
// `Object.defineProperty` method
|
|
1287
|
+
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
1288
|
+
exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty (O, P, Attributes) {
|
|
1289
|
+
anObject(O)
|
|
1290
|
+
P = toPropertyKey(P)
|
|
1291
|
+
anObject(Attributes)
|
|
1292
|
+
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
1293
|
+
var current = $getOwnPropertyDescriptor(O, P)
|
|
1294
|
+
if (current && current[WRITABLE]) {
|
|
1295
|
+
O[P] = Attributes.value
|
|
1296
|
+
Attributes = {
|
|
1297
|
+
configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
|
|
1298
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
|
1299
|
+
writable: false
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
} return $defineProperty(O, P, Attributes)
|
|
1303
|
+
} : $defineProperty : function defineProperty (O, P, Attributes) {
|
|
1304
|
+
anObject(O)
|
|
1305
|
+
P = toPropertyKey(P)
|
|
1306
|
+
anObject(Attributes)
|
|
1307
|
+
if (IE8_DOM_DEFINE) {
|
|
1308
|
+
try {
|
|
1309
|
+
return $defineProperty(O, P, Attributes)
|
|
1310
|
+
} catch (error) { /* empty */ }
|
|
1311
|
+
}
|
|
1312
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported')
|
|
1313
|
+
if ('value' in Attributes) O[P] = Attributes.value
|
|
1314
|
+
return O
|
|
1315
|
+
}
|
|
1316
|
+
}, { '../internals/an-object': 4, '../internals/descriptors': 18, '../internals/ie8-dom-define': 41, '../internals/to-property-key': 83, '../internals/v8-prototype-define-bug': 88 }],
|
|
1317
|
+
62: [function (require, module, exports) {
|
|
1318
|
+
'use strict'
|
|
1319
|
+
var DESCRIPTORS = require('../internals/descriptors')
|
|
1320
|
+
var call = require('../internals/function-call')
|
|
1321
|
+
var propertyIsEnumerableModule = require('../internals/object-property-is-enumerable')
|
|
1322
|
+
var createPropertyDescriptor = require('../internals/create-property-descriptor')
|
|
1323
|
+
var toIndexedObject = require('../internals/to-indexed-object')
|
|
1324
|
+
var toPropertyKey = require('../internals/to-property-key')
|
|
1325
|
+
var hasOwn = require('../internals/has-own-property')
|
|
1326
|
+
var IE8_DOM_DEFINE = require('../internals/ie8-dom-define')
|
|
1327
|
+
|
|
1328
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1329
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor
|
|
1330
|
+
|
|
1331
|
+
// `Object.getOwnPropertyDescriptor` method
|
|
1332
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
1333
|
+
exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor (O, P) {
|
|
1334
|
+
O = toIndexedObject(O)
|
|
1335
|
+
P = toPropertyKey(P)
|
|
1336
|
+
if (IE8_DOM_DEFINE) {
|
|
1337
|
+
try {
|
|
1338
|
+
return $getOwnPropertyDescriptor(O, P)
|
|
1339
|
+
} catch (error) { /* empty */ }
|
|
1340
|
+
}
|
|
1341
|
+
if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P])
|
|
1342
|
+
}
|
|
1343
|
+
}, { '../internals/create-property-descriptor': 13, '../internals/descriptors': 18, '../internals/function-call': 28, '../internals/has-own-property': 38, '../internals/ie8-dom-define': 41, '../internals/object-property-is-enumerable': 69, '../internals/to-indexed-object': 78, '../internals/to-property-key': 83 }],
|
|
1344
|
+
63: [function (require, module, exports) {
|
|
1345
|
+
'use strict'
|
|
1346
|
+
var internalObjectKeys = require('../internals/object-keys-internal')
|
|
1347
|
+
var enumBugKeys = require('../internals/enum-bug-keys')
|
|
1348
|
+
|
|
1349
|
+
var hiddenKeys = enumBugKeys.concat('length', 'prototype')
|
|
1350
|
+
|
|
1351
|
+
// `Object.getOwnPropertyNames` method
|
|
1352
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
1353
|
+
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
1354
|
+
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames (O) {
|
|
1355
|
+
return internalObjectKeys(O, hiddenKeys)
|
|
1356
|
+
}
|
|
1357
|
+
}, { '../internals/enum-bug-keys': 23, '../internals/object-keys-internal': 67 }],
|
|
1358
|
+
64: [function (require, module, exports) {
|
|
1359
|
+
'use strict'
|
|
1360
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
1361
|
+
exports.f = Object.getOwnPropertySymbols
|
|
1362
|
+
}, {}],
|
|
1363
|
+
65: [function (require, module, exports) {
|
|
1364
|
+
'use strict'
|
|
1365
|
+
var hasOwn = require('../internals/has-own-property')
|
|
1366
|
+
var isCallable = require('../internals/is-callable')
|
|
1367
|
+
var toObject = require('../internals/to-object')
|
|
1368
|
+
var sharedKey = require('../internals/shared-key')
|
|
1369
|
+
var CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter')
|
|
1370
|
+
|
|
1371
|
+
var IE_PROTO = sharedKey('IE_PROTO')
|
|
1372
|
+
var $Object = Object
|
|
1373
|
+
var ObjectPrototype = $Object.prototype
|
|
1374
|
+
|
|
1375
|
+
// `Object.getPrototypeOf` method
|
|
1376
|
+
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1377
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1378
|
+
module.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
|
|
1379
|
+
var object = toObject(O)
|
|
1380
|
+
if (hasOwn(object, IE_PROTO)) return object[IE_PROTO]
|
|
1381
|
+
var constructor = object.constructor
|
|
1382
|
+
if (isCallable(constructor) && object instanceof constructor) {
|
|
1383
|
+
return constructor.prototype
|
|
1384
|
+
} return object instanceof $Object ? ObjectPrototype : null
|
|
1385
|
+
}
|
|
1386
|
+
}, { '../internals/correct-prototype-getter': 11, '../internals/has-own-property': 38, '../internals/is-callable': 46, '../internals/shared-key': 73, '../internals/to-object': 81 }],
|
|
1387
|
+
66: [function (require, module, exports) {
|
|
1388
|
+
'use strict'
|
|
1389
|
+
var uncurryThis = require('../internals/function-uncurry-this')
|
|
1390
|
+
|
|
1391
|
+
module.exports = uncurryThis({}.isPrototypeOf)
|
|
1392
|
+
}, { '../internals/function-uncurry-this': 31 }],
|
|
1393
|
+
67: [function (require, module, exports) {
|
|
1394
|
+
'use strict'
|
|
1395
|
+
var uncurryThis = require('../internals/function-uncurry-this')
|
|
1396
|
+
var hasOwn = require('../internals/has-own-property')
|
|
1397
|
+
var toIndexedObject = require('../internals/to-indexed-object')
|
|
1398
|
+
var indexOf = require('../internals/array-includes').indexOf
|
|
1399
|
+
var hiddenKeys = require('../internals/hidden-keys')
|
|
1400
|
+
|
|
1401
|
+
var push = uncurryThis([].push)
|
|
1402
|
+
|
|
1403
|
+
module.exports = function (object, names) {
|
|
1404
|
+
var O = toIndexedObject(object)
|
|
1405
|
+
var i = 0
|
|
1406
|
+
var result = []
|
|
1407
|
+
var key
|
|
1408
|
+
for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key)
|
|
1409
|
+
// Don't enum bug & hidden keys
|
|
1410
|
+
while (names.length > i) {
|
|
1411
|
+
if (hasOwn(O, key = names[i++])) {
|
|
1412
|
+
~indexOf(result, key) || push(result, key)
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
return result
|
|
1416
|
+
}
|
|
1417
|
+
}, { '../internals/array-includes': 5, '../internals/function-uncurry-this': 31, '../internals/has-own-property': 38, '../internals/hidden-keys': 39, '../internals/to-indexed-object': 78 }],
|
|
1418
|
+
68: [function (require, module, exports) {
|
|
1419
|
+
'use strict'
|
|
1420
|
+
var internalObjectKeys = require('../internals/object-keys-internal')
|
|
1421
|
+
var enumBugKeys = require('../internals/enum-bug-keys')
|
|
1422
|
+
|
|
1423
|
+
// `Object.keys` method
|
|
1424
|
+
// https://tc39.es/ecma262/#sec-object.keys
|
|
1425
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
|
1426
|
+
module.exports = Object.keys || function keys (O) {
|
|
1427
|
+
return internalObjectKeys(O, enumBugKeys)
|
|
1428
|
+
}
|
|
1429
|
+
}, { '../internals/enum-bug-keys': 23, '../internals/object-keys-internal': 67 }],
|
|
1430
|
+
69: [function (require, module, exports) {
|
|
1431
|
+
'use strict'
|
|
1432
|
+
var $propertyIsEnumerable = {}.propertyIsEnumerable
|
|
1433
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1434
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor
|
|
1435
|
+
|
|
1436
|
+
// Nashorn ~ JDK8 bug
|
|
1437
|
+
var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1)
|
|
1438
|
+
|
|
1439
|
+
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
1440
|
+
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
1441
|
+
exports.f = NASHORN_BUG ? function propertyIsEnumerable (V) {
|
|
1442
|
+
var descriptor = getOwnPropertyDescriptor(this, V)
|
|
1443
|
+
return !!descriptor && descriptor.enumerable
|
|
1444
|
+
} : $propertyIsEnumerable
|
|
1445
|
+
}, {}],
|
|
1446
|
+
70: [function (require, module, exports) {
|
|
1447
|
+
'use strict'
|
|
1448
|
+
var call = require('../internals/function-call')
|
|
1449
|
+
var isCallable = require('../internals/is-callable')
|
|
1450
|
+
var isObject = require('../internals/is-object')
|
|
1451
|
+
|
|
1452
|
+
var $TypeError = TypeError
|
|
1453
|
+
|
|
1454
|
+
// `OrdinaryToPrimitive` abstract operation
|
|
1455
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
1456
|
+
module.exports = function (input, pref) {
|
|
1457
|
+
var fn, val
|
|
1458
|
+
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val
|
|
1459
|
+
if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val
|
|
1460
|
+
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val
|
|
1461
|
+
throw new $TypeError("Can't convert object to primitive value")
|
|
1462
|
+
}
|
|
1463
|
+
}, { '../internals/function-call': 28, '../internals/is-callable': 46, '../internals/is-object': 49 }],
|
|
1464
|
+
71: [function (require, module, exports) {
|
|
1465
|
+
'use strict'
|
|
1466
|
+
var getBuiltIn = require('../internals/get-built-in')
|
|
1467
|
+
var uncurryThis = require('../internals/function-uncurry-this')
|
|
1468
|
+
var getOwnPropertyNamesModule = require('../internals/object-get-own-property-names')
|
|
1469
|
+
var getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols')
|
|
1470
|
+
var anObject = require('../internals/an-object')
|
|
1471
|
+
|
|
1472
|
+
var concat = uncurryThis([].concat)
|
|
1473
|
+
|
|
1474
|
+
// all object keys, includes non-enumerable and symbols
|
|
1475
|
+
module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys (it) {
|
|
1476
|
+
var keys = getOwnPropertyNamesModule.f(anObject(it))
|
|
1477
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f
|
|
1478
|
+
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys
|
|
1479
|
+
}
|
|
1480
|
+
}, { '../internals/an-object': 4, '../internals/function-uncurry-this': 31, '../internals/get-built-in': 32, '../internals/object-get-own-property-names': 63, '../internals/object-get-own-property-symbols': 64 }],
|
|
1481
|
+
72: [function (require, module, exports) {
|
|
1482
|
+
'use strict'
|
|
1483
|
+
var isNullOrUndefined = require('../internals/is-null-or-undefined')
|
|
1484
|
+
|
|
1485
|
+
var $TypeError = TypeError
|
|
1486
|
+
|
|
1487
|
+
// `RequireObjectCoercible` abstract operation
|
|
1488
|
+
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
1489
|
+
module.exports = function (it) {
|
|
1490
|
+
if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it)
|
|
1491
|
+
return it
|
|
1492
|
+
}
|
|
1493
|
+
}, { '../internals/is-null-or-undefined': 48 }],
|
|
1494
|
+
73: [function (require, module, exports) {
|
|
1495
|
+
'use strict'
|
|
1496
|
+
var shared = require('../internals/shared')
|
|
1497
|
+
var uid = require('../internals/uid')
|
|
1498
|
+
|
|
1499
|
+
var keys = shared('keys')
|
|
1500
|
+
|
|
1501
|
+
module.exports = function (key) {
|
|
1502
|
+
return keys[key] || (keys[key] = uid(key))
|
|
1503
|
+
}
|
|
1504
|
+
}, { '../internals/shared': 75, '../internals/uid': 86 }],
|
|
1505
|
+
74: [function (require, module, exports) {
|
|
1506
|
+
'use strict'
|
|
1507
|
+
var global = require('../internals/global')
|
|
1508
|
+
var defineGlobalProperty = require('../internals/define-global-property')
|
|
1509
|
+
|
|
1510
|
+
var SHARED = '__core-js_shared__'
|
|
1511
|
+
var store = global[SHARED] || defineGlobalProperty(SHARED, {})
|
|
1512
|
+
|
|
1513
|
+
module.exports = store
|
|
1514
|
+
}, { '../internals/define-global-property': 17, '../internals/global': 37 }],
|
|
1515
|
+
75: [function (require, module, exports) {
|
|
1516
|
+
'use strict'
|
|
1517
|
+
var IS_PURE = require('../internals/is-pure')
|
|
1518
|
+
var store = require('../internals/shared-store');
|
|
1519
|
+
|
|
1520
|
+
(module.exports = function (key, value) {
|
|
1521
|
+
return store[key] || (store[key] = value !== undefined ? value : {})
|
|
1522
|
+
})('versions', []).push({
|
|
1523
|
+
version: '3.35.0',
|
|
1524
|
+
mode: IS_PURE ? 'pure' : 'global',
|
|
1525
|
+
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
1526
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE',
|
|
1527
|
+
source: 'https://github.com/zloirock/core-js'
|
|
1528
|
+
})
|
|
1529
|
+
}, { '../internals/is-pure': 50, '../internals/shared-store': 74 }],
|
|
1530
|
+
76: [function (require, module, exports) {
|
|
1531
|
+
'use strict'
|
|
1532
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
1533
|
+
var V8_VERSION = require('../internals/engine-v8-version')
|
|
1534
|
+
var fails = require('../internals/fails')
|
|
1535
|
+
var global = require('../internals/global')
|
|
1536
|
+
|
|
1537
|
+
var $String = global.String
|
|
1538
|
+
|
|
1539
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
1540
|
+
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
1541
|
+
var symbol = Symbol('symbol detection')
|
|
1542
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
|
1543
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
1544
|
+
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
1545
|
+
// of course, fail.
|
|
1546
|
+
return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
1547
|
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
1548
|
+
!Symbol.sham && V8_VERSION && V8_VERSION < 41
|
|
1549
|
+
})
|
|
1550
|
+
}, { '../internals/engine-v8-version': 22, '../internals/fails': 25, '../internals/global': 37 }],
|
|
1551
|
+
77: [function (require, module, exports) {
|
|
1552
|
+
'use strict'
|
|
1553
|
+
var toIntegerOrInfinity = require('../internals/to-integer-or-infinity')
|
|
1554
|
+
|
|
1555
|
+
var max = Math.max
|
|
1556
|
+
var min = Math.min
|
|
1557
|
+
|
|
1558
|
+
// Helper for a popular repeating case of the spec:
|
|
1559
|
+
// Let integer be ? ToInteger(index).
|
|
1560
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
1561
|
+
module.exports = function (index, length) {
|
|
1562
|
+
var integer = toIntegerOrInfinity(index)
|
|
1563
|
+
return integer < 0 ? max(integer + length, 0) : min(integer, length)
|
|
1564
|
+
}
|
|
1565
|
+
}, { '../internals/to-integer-or-infinity': 79 }],
|
|
1566
|
+
78: [function (require, module, exports) {
|
|
1567
|
+
'use strict'
|
|
1568
|
+
// toObject with fallback for non-array-like ES3 strings
|
|
1569
|
+
var IndexedObject = require('../internals/indexed-object')
|
|
1570
|
+
var requireObjectCoercible = require('../internals/require-object-coercible')
|
|
1571
|
+
|
|
1572
|
+
module.exports = function (it) {
|
|
1573
|
+
return IndexedObject(requireObjectCoercible(it))
|
|
1574
|
+
}
|
|
1575
|
+
}, { '../internals/indexed-object': 42, '../internals/require-object-coercible': 72 }],
|
|
1576
|
+
79: [function (require, module, exports) {
|
|
1577
|
+
'use strict'
|
|
1578
|
+
var trunc = require('../internals/math-trunc')
|
|
1579
|
+
|
|
1580
|
+
// `ToIntegerOrInfinity` abstract operation
|
|
1581
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
1582
|
+
module.exports = function (argument) {
|
|
1583
|
+
var number = +argument
|
|
1584
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
1585
|
+
return number !== number || number === 0 ? 0 : trunc(number)
|
|
1586
|
+
}
|
|
1587
|
+
}, { '../internals/math-trunc': 58 }],
|
|
1588
|
+
80: [function (require, module, exports) {
|
|
1589
|
+
'use strict'
|
|
1590
|
+
var toIntegerOrInfinity = require('../internals/to-integer-or-infinity')
|
|
1591
|
+
|
|
1592
|
+
var min = Math.min
|
|
1593
|
+
|
|
1594
|
+
// `ToLength` abstract operation
|
|
1595
|
+
// https://tc39.es/ecma262/#sec-tolength
|
|
1596
|
+
module.exports = function (argument) {
|
|
1597
|
+
return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0 // 2 ** 53 - 1 == 9007199254740991
|
|
1598
|
+
}
|
|
1599
|
+
}, { '../internals/to-integer-or-infinity': 79 }],
|
|
1600
|
+
81: [function (require, module, exports) {
|
|
1601
|
+
'use strict'
|
|
1602
|
+
var requireObjectCoercible = require('../internals/require-object-coercible')
|
|
1603
|
+
|
|
1604
|
+
var $Object = Object
|
|
1605
|
+
|
|
1606
|
+
// `ToObject` abstract operation
|
|
1607
|
+
// https://tc39.es/ecma262/#sec-toobject
|
|
1608
|
+
module.exports = function (argument) {
|
|
1609
|
+
return $Object(requireObjectCoercible(argument))
|
|
1610
|
+
}
|
|
1611
|
+
}, { '../internals/require-object-coercible': 72 }],
|
|
1612
|
+
82: [function (require, module, exports) {
|
|
1613
|
+
'use strict'
|
|
1614
|
+
var call = require('../internals/function-call')
|
|
1615
|
+
var isObject = require('../internals/is-object')
|
|
1616
|
+
var isSymbol = require('../internals/is-symbol')
|
|
1617
|
+
var getMethod = require('../internals/get-method')
|
|
1618
|
+
var ordinaryToPrimitive = require('../internals/ordinary-to-primitive')
|
|
1619
|
+
var wellKnownSymbol = require('../internals/well-known-symbol')
|
|
1620
|
+
|
|
1621
|
+
var $TypeError = TypeError
|
|
1622
|
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive')
|
|
1623
|
+
|
|
1624
|
+
// `ToPrimitive` abstract operation
|
|
1625
|
+
// https://tc39.es/ecma262/#sec-toprimitive
|
|
1626
|
+
module.exports = function (input, pref) {
|
|
1627
|
+
if (!isObject(input) || isSymbol(input)) return input
|
|
1628
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE)
|
|
1629
|
+
var result
|
|
1630
|
+
if (exoticToPrim) {
|
|
1631
|
+
if (pref === undefined) pref = 'default'
|
|
1632
|
+
result = call(exoticToPrim, input, pref)
|
|
1633
|
+
if (!isObject(result) || isSymbol(result)) return result
|
|
1634
|
+
throw new $TypeError("Can't convert object to primitive value")
|
|
1635
|
+
}
|
|
1636
|
+
if (pref === undefined) pref = 'number'
|
|
1637
|
+
return ordinaryToPrimitive(input, pref)
|
|
1638
|
+
}
|
|
1639
|
+
}, { '../internals/function-call': 28, '../internals/get-method': 36, '../internals/is-object': 49, '../internals/is-symbol': 51, '../internals/ordinary-to-primitive': 70, '../internals/well-known-symbol': 91 }],
|
|
1640
|
+
83: [function (require, module, exports) {
|
|
1641
|
+
'use strict'
|
|
1642
|
+
var toPrimitive = require('../internals/to-primitive')
|
|
1643
|
+
var isSymbol = require('../internals/is-symbol')
|
|
1644
|
+
|
|
1645
|
+
// `ToPropertyKey` abstract operation
|
|
1646
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
|
1647
|
+
module.exports = function (argument) {
|
|
1648
|
+
var key = toPrimitive(argument, 'string')
|
|
1649
|
+
return isSymbol(key) ? key : key + ''
|
|
1650
|
+
}
|
|
1651
|
+
}, { '../internals/is-symbol': 51, '../internals/to-primitive': 82 }],
|
|
1652
|
+
84: [function (require, module, exports) {
|
|
1653
|
+
'use strict'
|
|
1654
|
+
var wellKnownSymbol = require('../internals/well-known-symbol')
|
|
1655
|
+
|
|
1656
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag')
|
|
1657
|
+
var test = {}
|
|
1658
|
+
|
|
1659
|
+
test[TO_STRING_TAG] = 'z'
|
|
1660
|
+
|
|
1661
|
+
module.exports = String(test) === '[object z]'
|
|
1662
|
+
}, { '../internals/well-known-symbol': 91 }],
|
|
1663
|
+
85: [function (require, module, exports) {
|
|
1664
|
+
'use strict'
|
|
1665
|
+
var $String = String
|
|
1666
|
+
|
|
1667
|
+
module.exports = function (argument) {
|
|
1668
|
+
try {
|
|
1669
|
+
return $String(argument)
|
|
1670
|
+
} catch (error) {
|
|
1671
|
+
return 'Object'
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
}, {}],
|
|
1675
|
+
86: [function (require, module, exports) {
|
|
1676
|
+
'use strict'
|
|
1677
|
+
var uncurryThis = require('../internals/function-uncurry-this')
|
|
1678
|
+
|
|
1679
|
+
var id = 0
|
|
1680
|
+
var postfix = Math.random()
|
|
1681
|
+
var toString = uncurryThis(1.0.toString)
|
|
1682
|
+
|
|
1683
|
+
module.exports = function (key) {
|
|
1684
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36)
|
|
1685
|
+
}
|
|
1686
|
+
}, { '../internals/function-uncurry-this': 31 }],
|
|
1687
|
+
87: [function (require, module, exports) {
|
|
1688
|
+
'use strict'
|
|
1689
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
1690
|
+
var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection')
|
|
1691
|
+
|
|
1692
|
+
module.exports = NATIVE_SYMBOL &&
|
|
1693
|
+
!Symbol.sham &&
|
|
1694
|
+
typeof Symbol.iterator === 'symbol'
|
|
1695
|
+
}, { '../internals/symbol-constructor-detection': 76 }],
|
|
1696
|
+
88: [function (require, module, exports) {
|
|
1697
|
+
'use strict'
|
|
1698
|
+
var DESCRIPTORS = require('../internals/descriptors')
|
|
1699
|
+
var fails = require('../internals/fails')
|
|
1700
|
+
|
|
1701
|
+
// V8 ~ Chrome 36-
|
|
1702
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
1703
|
+
module.exports = DESCRIPTORS && fails(function () {
|
|
1704
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1705
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
1706
|
+
value: 42,
|
|
1707
|
+
writable: false
|
|
1708
|
+
}).prototype !== 42
|
|
1709
|
+
})
|
|
1710
|
+
}, { '../internals/descriptors': 18, '../internals/fails': 25 }],
|
|
1711
|
+
89: [function (require, module, exports) {
|
|
1712
|
+
'use strict'
|
|
1713
|
+
var global = require('../internals/global')
|
|
1714
|
+
var isCallable = require('../internals/is-callable')
|
|
1715
|
+
|
|
1716
|
+
var WeakMap = global.WeakMap
|
|
1717
|
+
|
|
1718
|
+
module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap))
|
|
1719
|
+
}, { '../internals/global': 37, '../internals/is-callable': 46 }],
|
|
1720
|
+
90: [function (require, module, exports) {
|
|
1721
|
+
'use strict'
|
|
1722
|
+
var uncurryThis = require('../internals/function-uncurry-this')
|
|
1723
|
+
|
|
1724
|
+
// eslint-disable-next-line es/no-weak-map -- safe
|
|
1725
|
+
var WeakMapPrototype = WeakMap.prototype
|
|
1726
|
+
|
|
1727
|
+
module.exports = {
|
|
1728
|
+
// eslint-disable-next-line es/no-weak-map -- safe
|
|
1729
|
+
WeakMap: WeakMap,
|
|
1730
|
+
set: uncurryThis(WeakMapPrototype.set),
|
|
1731
|
+
get: uncurryThis(WeakMapPrototype.get),
|
|
1732
|
+
has: uncurryThis(WeakMapPrototype.has),
|
|
1733
|
+
remove: uncurryThis(WeakMapPrototype.delete)
|
|
1734
|
+
}
|
|
1735
|
+
}, { '../internals/function-uncurry-this': 31 }],
|
|
1736
|
+
91: [function (require, module, exports) {
|
|
1737
|
+
'use strict'
|
|
1738
|
+
var global = require('../internals/global')
|
|
1739
|
+
var shared = require('../internals/shared')
|
|
1740
|
+
var hasOwn = require('../internals/has-own-property')
|
|
1741
|
+
var uid = require('../internals/uid')
|
|
1742
|
+
var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection')
|
|
1743
|
+
var USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid')
|
|
1744
|
+
|
|
1745
|
+
var Symbol = global.Symbol
|
|
1746
|
+
var WellKnownSymbolsStore = shared('wks')
|
|
1747
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol.for || Symbol : Symbol && Symbol.withoutSetter || uid
|
|
1748
|
+
|
|
1749
|
+
module.exports = function (name) {
|
|
1750
|
+
if (!hasOwn(WellKnownSymbolsStore, name)) {
|
|
1751
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
|
|
1752
|
+
? Symbol[name]
|
|
1753
|
+
: createWellKnownSymbol('Symbol.' + name)
|
|
1754
|
+
} return WellKnownSymbolsStore[name]
|
|
1755
|
+
}
|
|
1756
|
+
}, { '../internals/global': 37, '../internals/has-own-property': 38, '../internals/shared': 75, '../internals/symbol-constructor-detection': 76, '../internals/uid': 86, '../internals/use-symbol-as-uid': 87 }],
|
|
1757
|
+
92: [function (require, module, exports) {
|
|
1758
|
+
'use strict'
|
|
1759
|
+
var $ = require('../internals/export')
|
|
1760
|
+
var $forEach = require('../internals/async-iterator-iteration').forEach
|
|
1761
|
+
|
|
1762
|
+
// `AsyncIterator.prototype.forEach` method
|
|
1763
|
+
// https://github.com/tc39/proposal-async-iterator-helpers
|
|
1764
|
+
$({ target: 'AsyncIterator', proto: true, real: true }, {
|
|
1765
|
+
forEach: function forEach (fn) {
|
|
1766
|
+
return $forEach(this, fn)
|
|
1767
|
+
}
|
|
1768
|
+
})
|
|
1769
|
+
}, { '../internals/async-iterator-iteration': 7, '../internals/export': 24 }],
|
|
1770
|
+
93: [function (require, module, exports) {
|
|
1771
|
+
'use strict'
|
|
1772
|
+
var $ = require('../internals/export')
|
|
1773
|
+
var global = require('../internals/global')
|
|
1774
|
+
var anInstance = require('../internals/an-instance')
|
|
1775
|
+
var anObject = require('../internals/an-object')
|
|
1776
|
+
var isCallable = require('../internals/is-callable')
|
|
1777
|
+
var getPrototypeOf = require('../internals/object-get-prototype-of')
|
|
1778
|
+
var defineBuiltInAccessor = require('../internals/define-built-in-accessor')
|
|
1779
|
+
var createProperty = require('../internals/create-property')
|
|
1780
|
+
var fails = require('../internals/fails')
|
|
1781
|
+
var hasOwn = require('../internals/has-own-property')
|
|
1782
|
+
var wellKnownSymbol = require('../internals/well-known-symbol')
|
|
1783
|
+
var IteratorPrototype = require('../internals/iterators-core').IteratorPrototype
|
|
1784
|
+
var DESCRIPTORS = require('../internals/descriptors')
|
|
1785
|
+
var IS_PURE = require('../internals/is-pure')
|
|
1786
|
+
|
|
1787
|
+
var CONSTRUCTOR = 'constructor'
|
|
1788
|
+
var ITERATOR = 'Iterator'
|
|
1789
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag')
|
|
1790
|
+
|
|
1791
|
+
var $TypeError = TypeError
|
|
1792
|
+
var NativeIterator = global[ITERATOR]
|
|
1793
|
+
|
|
1794
|
+
// FF56- have non-standard global helper `Iterator`
|
|
1795
|
+
var FORCED = IS_PURE ||
|
|
1796
|
+
!isCallable(NativeIterator) ||
|
|
1797
|
+
NativeIterator.prototype !== IteratorPrototype ||
|
|
1798
|
+
// FF44- non-standard `Iterator` passes previous tests
|
|
1799
|
+
!fails(function () { NativeIterator({}) })
|
|
1800
|
+
|
|
1801
|
+
var IteratorConstructor = function Iterator () {
|
|
1802
|
+
anInstance(this, IteratorPrototype)
|
|
1803
|
+
if (getPrototypeOf(this) === IteratorPrototype) throw new $TypeError('Abstract class Iterator not directly constructable')
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
var defineIteratorPrototypeAccessor = function (key, value) {
|
|
1807
|
+
if (DESCRIPTORS) {
|
|
1808
|
+
defineBuiltInAccessor(IteratorPrototype, key, {
|
|
1809
|
+
configurable: true,
|
|
1810
|
+
get: function () {
|
|
1811
|
+
return value
|
|
1812
|
+
},
|
|
1813
|
+
set: function (replacement) {
|
|
1814
|
+
anObject(this)
|
|
1815
|
+
if (this === IteratorPrototype) throw new $TypeError("You can't redefine this property")
|
|
1816
|
+
if (hasOwn(this, key)) this[key] = replacement
|
|
1817
|
+
else createProperty(this, key, replacement)
|
|
1818
|
+
}
|
|
1819
|
+
})
|
|
1820
|
+
} else IteratorPrototype[key] = value
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
if (!hasOwn(IteratorPrototype, TO_STRING_TAG)) defineIteratorPrototypeAccessor(TO_STRING_TAG, ITERATOR)
|
|
1824
|
+
|
|
1825
|
+
if (FORCED || !hasOwn(IteratorPrototype, CONSTRUCTOR) || IteratorPrototype[CONSTRUCTOR] === Object) {
|
|
1826
|
+
defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor)
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
IteratorConstructor.prototype = IteratorPrototype
|
|
1830
|
+
|
|
1831
|
+
// `Iterator` constructor
|
|
1832
|
+
// https://github.com/tc39/proposal-iterator-helpers
|
|
1833
|
+
$({ global: true, constructor: true, forced: FORCED }, {
|
|
1834
|
+
Iterator: IteratorConstructor
|
|
1835
|
+
})
|
|
1836
|
+
}, { '../internals/an-instance': 3, '../internals/an-object': 4, '../internals/create-property': 14, '../internals/define-built-in-accessor': 15, '../internals/descriptors': 18, '../internals/export': 24, '../internals/fails': 25, '../internals/global': 37, '../internals/has-own-property': 38, '../internals/is-callable': 46, '../internals/is-pure': 50, '../internals/iterators-core': 54, '../internals/object-get-prototype-of': 65, '../internals/well-known-symbol': 91 }],
|
|
1837
|
+
94: [function (require, module, exports) {
|
|
1838
|
+
'use strict'
|
|
1839
|
+
var $ = require('../internals/export')
|
|
1840
|
+
var iterate = require('../internals/iterate')
|
|
1841
|
+
var aCallable = require('../internals/a-callable')
|
|
1842
|
+
var anObject = require('../internals/an-object')
|
|
1843
|
+
var getIteratorDirect = require('../internals/get-iterator-direct')
|
|
1844
|
+
|
|
1845
|
+
// `Iterator.prototype.forEach` method
|
|
1846
|
+
// https://github.com/tc39/proposal-iterator-helpers
|
|
1847
|
+
$({ target: 'Iterator', proto: true, real: true }, {
|
|
1848
|
+
forEach: function forEach (fn) {
|
|
1849
|
+
anObject(this)
|
|
1850
|
+
aCallable(fn)
|
|
1851
|
+
var record = getIteratorDirect(this)
|
|
1852
|
+
var counter = 0
|
|
1853
|
+
iterate(record, function (value) {
|
|
1854
|
+
fn(value, counter++)
|
|
1855
|
+
}, { IS_RECORD: true })
|
|
1856
|
+
}
|
|
1857
|
+
})
|
|
1858
|
+
}, { '../internals/a-callable': 1, '../internals/an-object': 4, '../internals/export': 24, '../internals/get-iterator-direct': 33, '../internals/iterate': 52 }],
|
|
1859
|
+
95: [function (require, module, exports) {
|
|
1860
|
+
'use strict'
|
|
1861
|
+
var $ = require('../internals/export')
|
|
1862
|
+
var aWeakMap = require('../internals/a-weak-map')
|
|
1863
|
+
var remove = require('../internals/weak-map-helpers').remove
|
|
1864
|
+
|
|
1865
|
+
// `WeakMap.prototype.deleteAll` method
|
|
1866
|
+
// https://github.com/tc39/proposal-collection-methods
|
|
1867
|
+
$({ target: 'WeakMap', proto: true, real: true, forced: true }, {
|
|
1868
|
+
deleteAll: function deleteAll (/* ...elements */) {
|
|
1869
|
+
var collection = aWeakMap(this)
|
|
1870
|
+
var allDeleted = true
|
|
1871
|
+
var wasDeleted
|
|
1872
|
+
for (var k = 0, len = arguments.length; k < len; k++) {
|
|
1873
|
+
wasDeleted = remove(collection, arguments[k])
|
|
1874
|
+
allDeleted = allDeleted && wasDeleted
|
|
1875
|
+
} return !!allDeleted
|
|
1876
|
+
}
|
|
1877
|
+
})
|
|
1878
|
+
}, { '../internals/a-weak-map': 2, '../internals/export': 24, '../internals/weak-map-helpers': 90 }],
|
|
1879
|
+
96: [function (require, module, exports) {
|
|
1880
|
+
'use strict'
|
|
4
1881
|
|
|
5
1882
|
Object.defineProperty(exports, '__esModule', {
|
|
6
1883
|
value: true
|
|
@@ -55,7 +1932,7 @@
|
|
|
55
1932
|
circularObject.head.children[1].parent = circularObject.head
|
|
56
1933
|
var _default = exports.default = circularObject
|
|
57
1934
|
}, {}],
|
|
58
|
-
|
|
1935
|
+
97: [function (require, module, exports) {
|
|
59
1936
|
'use strict'
|
|
60
1937
|
|
|
61
1938
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -74,7 +1951,7 @@
|
|
|
74
1951
|
exports.countMatches = countMatches
|
|
75
1952
|
var _default = exports.default = countMatches
|
|
76
1953
|
}, {}],
|
|
77
|
-
|
|
1954
|
+
98: [function (require, module, exports) {
|
|
78
1955
|
'use strict'
|
|
79
1956
|
|
|
80
1957
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -100,7 +1977,7 @@
|
|
|
100
1977
|
}
|
|
101
1978
|
var _default = exports.default = deepReferenceObject
|
|
102
1979
|
}, {}],
|
|
103
|
-
|
|
1980
|
+
99: [function (require, module, exports) {
|
|
104
1981
|
'use strict'
|
|
105
1982
|
|
|
106
1983
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -139,7 +2016,7 @@
|
|
|
139
2016
|
}]
|
|
140
2017
|
var _default = exports.default = domItem
|
|
141
2018
|
}, {}],
|
|
142
|
-
|
|
2019
|
+
100: [function (require, module, exports) {
|
|
143
2020
|
'use strict'
|
|
144
2021
|
|
|
145
2022
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -165,7 +2042,7 @@
|
|
|
165
2042
|
}
|
|
166
2043
|
var _default = exports.default = jsonDom
|
|
167
2044
|
}, {}],
|
|
168
|
-
|
|
2045
|
+
101: [function (require, module, exports) {
|
|
169
2046
|
'use strict'
|
|
170
2047
|
|
|
171
2048
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -194,7 +2071,7 @@
|
|
|
194
2071
|
}
|
|
195
2072
|
var _default = exports.default = linkedList
|
|
196
2073
|
}, {}],
|
|
197
|
-
|
|
2074
|
+
102: [function (require, module, exports) {
|
|
198
2075
|
'use strict'
|
|
199
2076
|
|
|
200
2077
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -219,8 +2096,8 @@
|
|
|
219
2096
|
}
|
|
220
2097
|
exports.logObject = logObject
|
|
221
2098
|
var _default = exports.default = logObject
|
|
222
|
-
}, { util:
|
|
223
|
-
|
|
2099
|
+
}, { util: 140 }],
|
|
2100
|
+
103: [function (require, module, exports) {
|
|
224
2101
|
'use strict'
|
|
225
2102
|
|
|
226
2103
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -246,7 +2123,7 @@
|
|
|
246
2123
|
}
|
|
247
2124
|
var _default = exports.default = multiReferenceObject
|
|
248
2125
|
}, {}],
|
|
249
|
-
|
|
2126
|
+
104: [function (require, module, exports) {
|
|
250
2127
|
'use strict'
|
|
251
2128
|
|
|
252
2129
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -280,7 +2157,7 @@
|
|
|
280
2157
|
}
|
|
281
2158
|
var _default = exports.default = nodeTree
|
|
282
2159
|
}, {}],
|
|
283
|
-
|
|
2160
|
+
105: [function (require, module, exports) {
|
|
284
2161
|
'use strict'
|
|
285
2162
|
|
|
286
2163
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -300,8 +2177,8 @@
|
|
|
300
2177
|
}, error => error ? reject(error) : resolve(dirPath))))
|
|
301
2178
|
exports.removeDirectory = removeDirectory
|
|
302
2179
|
var _default = exports.default = removeDirectory
|
|
303
|
-
}, { fs:
|
|
304
|
-
|
|
2180
|
+
}, { fs: 109 }],
|
|
2181
|
+
106: [function (require, module, exports) {
|
|
305
2182
|
'use strict'
|
|
306
2183
|
|
|
307
2184
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -389,26 +2266,156 @@
|
|
|
389
2266
|
setDefaults
|
|
390
2267
|
}
|
|
391
2268
|
var _default = exports.default = setUp
|
|
392
|
-
}, { './removeDirectory':
|
|
393
|
-
|
|
2269
|
+
}, { './removeDirectory': 105, fs: 109 }],
|
|
2270
|
+
107: [function (require, module, exports) {
|
|
394
2271
|
'use strict'
|
|
395
2272
|
|
|
2273
|
+
require('core-js/modules/esnext.weak-map.delete-all.js')
|
|
2274
|
+
require('core-js/modules/esnext.async-iterator.for-each.js')
|
|
2275
|
+
require('core-js/modules/esnext.iterator.constructor.js')
|
|
2276
|
+
require('core-js/modules/esnext.iterator.for-each.js')
|
|
396
2277
|
Object.defineProperty(exports, '__esModule', {
|
|
397
2278
|
value: true
|
|
398
2279
|
})
|
|
2280
|
+
var _exportNames = {
|
|
2281
|
+
testFs: true,
|
|
2282
|
+
testFsBrowser: true
|
|
2283
|
+
}
|
|
399
2284
|
exports.testFsBrowser = exports.testFs = exports.default = void 0
|
|
400
|
-
var _circularObject =
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
2285
|
+
var _circularObject = _interopRequireWildcard(require('./functions/circularObject'))
|
|
2286
|
+
Object.keys(_circularObject).forEach(function (key) {
|
|
2287
|
+
if (key === 'default' || key === '__esModule') return
|
|
2288
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return
|
|
2289
|
+
if (key in exports && exports[key] === _circularObject[key]) return
|
|
2290
|
+
Object.defineProperty(exports, key, {
|
|
2291
|
+
enumerable: true,
|
|
2292
|
+
get: function () {
|
|
2293
|
+
return _circularObject[key]
|
|
2294
|
+
}
|
|
2295
|
+
})
|
|
2296
|
+
})
|
|
2297
|
+
var _countMatches = _interopRequireWildcard(require('./functions/countMatches'))
|
|
2298
|
+
Object.keys(_countMatches).forEach(function (key) {
|
|
2299
|
+
if (key === 'default' || key === '__esModule') return
|
|
2300
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return
|
|
2301
|
+
if (key in exports && exports[key] === _countMatches[key]) return
|
|
2302
|
+
Object.defineProperty(exports, key, {
|
|
2303
|
+
enumerable: true,
|
|
2304
|
+
get: function () {
|
|
2305
|
+
return _countMatches[key]
|
|
2306
|
+
}
|
|
2307
|
+
})
|
|
2308
|
+
})
|
|
2309
|
+
var _deepReferenceObject = _interopRequireWildcard(require('./functions/deepReferenceObject'))
|
|
2310
|
+
Object.keys(_deepReferenceObject).forEach(function (key) {
|
|
2311
|
+
if (key === 'default' || key === '__esModule') return
|
|
2312
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return
|
|
2313
|
+
if (key in exports && exports[key] === _deepReferenceObject[key]) return
|
|
2314
|
+
Object.defineProperty(exports, key, {
|
|
2315
|
+
enumerable: true,
|
|
2316
|
+
get: function () {
|
|
2317
|
+
return _deepReferenceObject[key]
|
|
2318
|
+
}
|
|
2319
|
+
})
|
|
2320
|
+
})
|
|
2321
|
+
var _domItem = _interopRequireWildcard(require('./functions/domItem'))
|
|
2322
|
+
Object.keys(_domItem).forEach(function (key) {
|
|
2323
|
+
if (key === 'default' || key === '__esModule') return
|
|
2324
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return
|
|
2325
|
+
if (key in exports && exports[key] === _domItem[key]) return
|
|
2326
|
+
Object.defineProperty(exports, key, {
|
|
2327
|
+
enumerable: true,
|
|
2328
|
+
get: function () {
|
|
2329
|
+
return _domItem[key]
|
|
2330
|
+
}
|
|
2331
|
+
})
|
|
2332
|
+
})
|
|
2333
|
+
var _jsonDom = _interopRequireWildcard(require('./functions/jsonDom'))
|
|
2334
|
+
Object.keys(_jsonDom).forEach(function (key) {
|
|
2335
|
+
if (key === 'default' || key === '__esModule') return
|
|
2336
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return
|
|
2337
|
+
if (key in exports && exports[key] === _jsonDom[key]) return
|
|
2338
|
+
Object.defineProperty(exports, key, {
|
|
2339
|
+
enumerable: true,
|
|
2340
|
+
get: function () {
|
|
2341
|
+
return _jsonDom[key]
|
|
2342
|
+
}
|
|
2343
|
+
})
|
|
2344
|
+
})
|
|
2345
|
+
var _linkedList = _interopRequireWildcard(require('./functions/linkedList'))
|
|
2346
|
+
Object.keys(_linkedList).forEach(function (key) {
|
|
2347
|
+
if (key === 'default' || key === '__esModule') return
|
|
2348
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return
|
|
2349
|
+
if (key in exports && exports[key] === _linkedList[key]) return
|
|
2350
|
+
Object.defineProperty(exports, key, {
|
|
2351
|
+
enumerable: true,
|
|
2352
|
+
get: function () {
|
|
2353
|
+
return _linkedList[key]
|
|
2354
|
+
}
|
|
2355
|
+
})
|
|
2356
|
+
})
|
|
2357
|
+
var _logObject = _interopRequireWildcard(require('./functions/logObject'))
|
|
2358
|
+
Object.keys(_logObject).forEach(function (key) {
|
|
2359
|
+
if (key === 'default' || key === '__esModule') return
|
|
2360
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return
|
|
2361
|
+
if (key in exports && exports[key] === _logObject[key]) return
|
|
2362
|
+
Object.defineProperty(exports, key, {
|
|
2363
|
+
enumerable: true,
|
|
2364
|
+
get: function () {
|
|
2365
|
+
return _logObject[key]
|
|
2366
|
+
}
|
|
2367
|
+
})
|
|
2368
|
+
})
|
|
2369
|
+
var _multiReferenceObject = _interopRequireWildcard(require('./functions/multiReferenceObject'))
|
|
2370
|
+
Object.keys(_multiReferenceObject).forEach(function (key) {
|
|
2371
|
+
if (key === 'default' || key === '__esModule') return
|
|
2372
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return
|
|
2373
|
+
if (key in exports && exports[key] === _multiReferenceObject[key]) return
|
|
2374
|
+
Object.defineProperty(exports, key, {
|
|
2375
|
+
enumerable: true,
|
|
2376
|
+
get: function () {
|
|
2377
|
+
return _multiReferenceObject[key]
|
|
2378
|
+
}
|
|
2379
|
+
})
|
|
2380
|
+
})
|
|
2381
|
+
var _nodeTree = _interopRequireWildcard(require('./functions/nodeTree'))
|
|
2382
|
+
Object.keys(_nodeTree).forEach(function (key) {
|
|
2383
|
+
if (key === 'default' || key === '__esModule') return
|
|
2384
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return
|
|
2385
|
+
if (key in exports && exports[key] === _nodeTree[key]) return
|
|
2386
|
+
Object.defineProperty(exports, key, {
|
|
2387
|
+
enumerable: true,
|
|
2388
|
+
get: function () {
|
|
2389
|
+
return _nodeTree[key]
|
|
2390
|
+
}
|
|
2391
|
+
})
|
|
2392
|
+
})
|
|
2393
|
+
var _removeDirectory = _interopRequireWildcard(require('./functions/removeDirectory'))
|
|
2394
|
+
Object.keys(_removeDirectory).forEach(function (key) {
|
|
2395
|
+
if (key === 'default' || key === '__esModule') return
|
|
2396
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return
|
|
2397
|
+
if (key in exports && exports[key] === _removeDirectory[key]) return
|
|
2398
|
+
Object.defineProperty(exports, key, {
|
|
2399
|
+
enumerable: true,
|
|
2400
|
+
get: function () {
|
|
2401
|
+
return _removeDirectory[key]
|
|
2402
|
+
}
|
|
2403
|
+
})
|
|
2404
|
+
})
|
|
2405
|
+
var _setUp = _interopRequireWildcard(require('./functions/setUp'))
|
|
2406
|
+
Object.keys(_setUp).forEach(function (key) {
|
|
2407
|
+
if (key === 'default' || key === '__esModule') return
|
|
2408
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return
|
|
2409
|
+
if (key in exports && exports[key] === _setUp[key]) return
|
|
2410
|
+
Object.defineProperty(exports, key, {
|
|
2411
|
+
enumerable: true,
|
|
2412
|
+
get: function () {
|
|
2413
|
+
return _setUp[key]
|
|
2414
|
+
}
|
|
2415
|
+
})
|
|
2416
|
+
})
|
|
2417
|
+
function _getRequireWildcardCache (e) { if (typeof WeakMap !== 'function') return null; var r = new WeakMap(); var t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r })(e) }
|
|
2418
|
+
function _interopRequireWildcard (e, r) { if (!r && e && e.__esModule) return e; if (e === null || typeof e !== 'object' && typeof e !== 'function') return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }; var a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (u !== 'default' && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u] } return n.default = e, t && t.set(e, n), n }
|
|
412
2419
|
/**
|
|
413
2420
|
* An assortment of objects that can be used in tests and some functions to help debug and write tests.
|
|
414
2421
|
* @file
|
|
@@ -449,13 +2456,13 @@
|
|
|
449
2456
|
// @ts-ignore
|
|
450
2457
|
window.testFs = testFsBrowser
|
|
451
2458
|
}
|
|
452
|
-
}, { './functions/circularObject':
|
|
453
|
-
|
|
2459
|
+
}, { './functions/circularObject': 96, './functions/countMatches': 97, './functions/deepReferenceObject': 98, './functions/domItem': 99, './functions/jsonDom': 100, './functions/linkedList': 101, './functions/logObject': 102, './functions/multiReferenceObject': 103, './functions/nodeTree': 104, './functions/removeDirectory': 105, './functions/setUp': 106, 'core-js/modules/esnext.async-iterator.for-each.js': 92, 'core-js/modules/esnext.iterator.constructor.js': 93, 'core-js/modules/esnext.iterator.for-each.js': 94, 'core-js/modules/esnext.weak-map.delete-all.js': 95 }],
|
|
2460
|
+
108: [function (require, module, exports) {
|
|
454
2461
|
(function (global) {
|
|
455
2462
|
(function () {
|
|
456
2463
|
'use strict'
|
|
457
2464
|
|
|
458
|
-
var possibleNames = [
|
|
2465
|
+
var /** @type {ReturnType<import('.')>} */ possibleNames = [
|
|
459
2466
|
'BigInt64Array',
|
|
460
2467
|
'BigUint64Array',
|
|
461
2468
|
'Float32Array',
|
|
@@ -471,10 +2478,12 @@
|
|
|
471
2478
|
|
|
472
2479
|
var g = typeof globalThis === 'undefined' ? global : globalThis
|
|
473
2480
|
|
|
2481
|
+
/** @type {import('.')} */
|
|
474
2482
|
module.exports = function availableTypedArrays () {
|
|
475
|
-
var out = []
|
|
2483
|
+
var /** @type {ReturnType<typeof availableTypedArrays>} */ out = []
|
|
476
2484
|
for (var i = 0; i < possibleNames.length; i++) {
|
|
477
2485
|
if (typeof g[possibleNames[i]] === 'function') {
|
|
2486
|
+
// @ts-expect-error
|
|
478
2487
|
out[out.length] = possibleNames[i]
|
|
479
2488
|
}
|
|
480
2489
|
}
|
|
@@ -483,10 +2492,10 @@
|
|
|
483
2492
|
}).call(this)
|
|
484
2493
|
}).call(this, typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : {})
|
|
485
2494
|
}, {}],
|
|
486
|
-
|
|
2495
|
+
109: [function (require, module, exports) {
|
|
487
2496
|
|
|
488
2497
|
}, {}],
|
|
489
|
-
|
|
2498
|
+
110: [function (require, module, exports) {
|
|
490
2499
|
'use strict'
|
|
491
2500
|
|
|
492
2501
|
var GetIntrinsic = require('get-intrinsic')
|
|
@@ -502,15 +2511,15 @@
|
|
|
502
2511
|
}
|
|
503
2512
|
return intrinsic
|
|
504
2513
|
}
|
|
505
|
-
}, { './':
|
|
506
|
-
|
|
2514
|
+
}, { './': 111, 'get-intrinsic': 123 }],
|
|
2515
|
+
111: [function (require, module, exports) {
|
|
507
2516
|
'use strict'
|
|
508
2517
|
|
|
509
2518
|
var bind = require('function-bind')
|
|
510
2519
|
var GetIntrinsic = require('get-intrinsic')
|
|
511
2520
|
var setFunctionLength = require('set-function-length')
|
|
512
2521
|
|
|
513
|
-
var $TypeError =
|
|
2522
|
+
var $TypeError = require('es-errors/type')
|
|
514
2523
|
var $apply = GetIntrinsic('%Function.prototype.apply%')
|
|
515
2524
|
var $call = GetIntrinsic('%Function.prototype.call%')
|
|
516
2525
|
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply)
|
|
@@ -548,8 +2557,8 @@
|
|
|
548
2557
|
} else {
|
|
549
2558
|
module.exports.apply = applyBind
|
|
550
2559
|
}
|
|
551
|
-
}, { 'function-bind':
|
|
552
|
-
|
|
2560
|
+
}, { 'es-errors/type': 118, 'function-bind': 122, 'get-intrinsic': 123, 'set-function-length': 137 }],
|
|
2561
|
+
112: [function (require, module, exports) {
|
|
553
2562
|
'use strict'
|
|
554
2563
|
|
|
555
2564
|
var hasPropertyDescriptors = require('has-property-descriptors')()
|
|
@@ -566,8 +2575,8 @@
|
|
|
566
2575
|
}
|
|
567
2576
|
}
|
|
568
2577
|
|
|
569
|
-
var $SyntaxError =
|
|
570
|
-
var $TypeError =
|
|
2578
|
+
var $SyntaxError = require('es-errors/syntax')
|
|
2579
|
+
var $TypeError = require('es-errors/type')
|
|
571
2580
|
|
|
572
2581
|
var gopd = require('gopd')
|
|
573
2582
|
|
|
@@ -618,8 +2627,50 @@
|
|
|
618
2627
|
throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.')
|
|
619
2628
|
}
|
|
620
2629
|
}
|
|
621
|
-
}, { 'get-intrinsic':
|
|
622
|
-
|
|
2630
|
+
}, { 'es-errors/syntax': 117, 'es-errors/type': 118, 'get-intrinsic': 123, gopd: 124, 'has-property-descriptors': 125 }],
|
|
2631
|
+
113: [function (require, module, exports) {
|
|
2632
|
+
'use strict'
|
|
2633
|
+
|
|
2634
|
+
/** @type {import('./eval')} */
|
|
2635
|
+
module.exports = EvalError
|
|
2636
|
+
}, {}],
|
|
2637
|
+
114: [function (require, module, exports) {
|
|
2638
|
+
'use strict'
|
|
2639
|
+
|
|
2640
|
+
/** @type {import('.')} */
|
|
2641
|
+
module.exports = Error
|
|
2642
|
+
}, {}],
|
|
2643
|
+
115: [function (require, module, exports) {
|
|
2644
|
+
'use strict'
|
|
2645
|
+
|
|
2646
|
+
/** @type {import('./range')} */
|
|
2647
|
+
module.exports = RangeError
|
|
2648
|
+
}, {}],
|
|
2649
|
+
116: [function (require, module, exports) {
|
|
2650
|
+
'use strict'
|
|
2651
|
+
|
|
2652
|
+
/** @type {import('./ref')} */
|
|
2653
|
+
module.exports = ReferenceError
|
|
2654
|
+
}, {}],
|
|
2655
|
+
117: [function (require, module, exports) {
|
|
2656
|
+
'use strict'
|
|
2657
|
+
|
|
2658
|
+
/** @type {import('./syntax')} */
|
|
2659
|
+
module.exports = SyntaxError
|
|
2660
|
+
}, {}],
|
|
2661
|
+
118: [function (require, module, exports) {
|
|
2662
|
+
'use strict'
|
|
2663
|
+
|
|
2664
|
+
/** @type {import('./type')} */
|
|
2665
|
+
module.exports = TypeError
|
|
2666
|
+
}, {}],
|
|
2667
|
+
119: [function (require, module, exports) {
|
|
2668
|
+
'use strict'
|
|
2669
|
+
|
|
2670
|
+
/** @type {import('./uri')} */
|
|
2671
|
+
module.exports = URIError
|
|
2672
|
+
}, {}],
|
|
2673
|
+
120: [function (require, module, exports) {
|
|
623
2674
|
'use strict'
|
|
624
2675
|
|
|
625
2676
|
var isCallable = require('is-callable')
|
|
@@ -682,8 +2733,8 @@
|
|
|
682
2733
|
}
|
|
683
2734
|
|
|
684
2735
|
module.exports = forEach
|
|
685
|
-
}, { 'is-callable':
|
|
686
|
-
|
|
2736
|
+
}, { 'is-callable': 133 }],
|
|
2737
|
+
121: [function (require, module, exports) {
|
|
687
2738
|
'use strict'
|
|
688
2739
|
|
|
689
2740
|
/* eslint no-invalid-this: 1 */
|
|
@@ -768,21 +2819,27 @@
|
|
|
768
2819
|
return bound
|
|
769
2820
|
}
|
|
770
2821
|
}, {}],
|
|
771
|
-
|
|
2822
|
+
122: [function (require, module, exports) {
|
|
772
2823
|
'use strict'
|
|
773
2824
|
|
|
774
2825
|
var implementation = require('./implementation')
|
|
775
2826
|
|
|
776
2827
|
module.exports = Function.prototype.bind || implementation
|
|
777
|
-
}, { './implementation':
|
|
778
|
-
|
|
2828
|
+
}, { './implementation': 121 }],
|
|
2829
|
+
123: [function (require, module, exports) {
|
|
779
2830
|
'use strict'
|
|
780
2831
|
|
|
781
2832
|
var undefined
|
|
782
2833
|
|
|
783
|
-
var $
|
|
2834
|
+
var $Error = require('es-errors')
|
|
2835
|
+
var $EvalError = require('es-errors/eval')
|
|
2836
|
+
var $RangeError = require('es-errors/range')
|
|
2837
|
+
var $ReferenceError = require('es-errors/ref')
|
|
2838
|
+
var $SyntaxError = require('es-errors/syntax')
|
|
2839
|
+
var $TypeError = require('es-errors/type')
|
|
2840
|
+
var $URIError = require('es-errors/uri')
|
|
2841
|
+
|
|
784
2842
|
var $Function = Function
|
|
785
|
-
var $TypeError = TypeError
|
|
786
2843
|
|
|
787
2844
|
// eslint-disable-next-line consistent-return
|
|
788
2845
|
var getEvalledConstructor = function (expressionSyntax) {
|
|
@@ -834,6 +2891,7 @@
|
|
|
834
2891
|
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array)
|
|
835
2892
|
|
|
836
2893
|
var INTRINSICS = {
|
|
2894
|
+
__proto__: null,
|
|
837
2895
|
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
838
2896
|
'%Array%': Array,
|
|
839
2897
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
@@ -854,9 +2912,9 @@
|
|
|
854
2912
|
'%decodeURIComponent%': decodeURIComponent,
|
|
855
2913
|
'%encodeURI%': encodeURI,
|
|
856
2914
|
'%encodeURIComponent%': encodeURIComponent,
|
|
857
|
-
'%Error%': Error,
|
|
2915
|
+
'%Error%': $Error,
|
|
858
2916
|
'%eval%': eval, // eslint-disable-line no-eval
|
|
859
|
-
'%EvalError%': EvalError,
|
|
2917
|
+
'%EvalError%': $EvalError,
|
|
860
2918
|
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
861
2919
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
862
2920
|
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
@@ -878,8 +2936,8 @@
|
|
|
878
2936
|
'%parseInt%': parseInt,
|
|
879
2937
|
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
880
2938
|
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
881
|
-
'%RangeError%': RangeError,
|
|
882
|
-
'%ReferenceError%': ReferenceError,
|
|
2939
|
+
'%RangeError%': $RangeError,
|
|
2940
|
+
'%ReferenceError%': $ReferenceError,
|
|
883
2941
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
884
2942
|
'%RegExp%': RegExp,
|
|
885
2943
|
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
@@ -896,7 +2954,7 @@
|
|
|
896
2954
|
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
897
2955
|
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
898
2956
|
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
899
|
-
'%URIError%': URIError,
|
|
2957
|
+
'%URIError%': $URIError,
|
|
900
2958
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
901
2959
|
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
902
2960
|
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
@@ -938,6 +2996,7 @@
|
|
|
938
2996
|
}
|
|
939
2997
|
|
|
940
2998
|
var LEGACY_ALIASES = {
|
|
2999
|
+
__proto__: null,
|
|
941
3000
|
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
942
3001
|
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
943
3002
|
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
@@ -1127,8 +3186,8 @@
|
|
|
1127
3186
|
}
|
|
1128
3187
|
return value
|
|
1129
3188
|
}
|
|
1130
|
-
}, { 'function-bind':
|
|
1131
|
-
|
|
3189
|
+
}, { 'es-errors': 114, 'es-errors/eval': 113, 'es-errors/range': 115, 'es-errors/ref': 116, 'es-errors/syntax': 117, 'es-errors/type': 118, 'es-errors/uri': 119, 'function-bind': 122, 'has-proto': 126, 'has-symbols': 127, hasown: 130 }],
|
|
3190
|
+
124: [function (require, module, exports) {
|
|
1132
3191
|
'use strict'
|
|
1133
3192
|
|
|
1134
3193
|
var GetIntrinsic = require('get-intrinsic')
|
|
@@ -1145,8 +3204,8 @@
|
|
|
1145
3204
|
}
|
|
1146
3205
|
|
|
1147
3206
|
module.exports = $gOPD
|
|
1148
|
-
}, { 'get-intrinsic':
|
|
1149
|
-
|
|
3207
|
+
}, { 'get-intrinsic': 123 }],
|
|
3208
|
+
125: [function (require, module, exports) {
|
|
1150
3209
|
'use strict'
|
|
1151
3210
|
|
|
1152
3211
|
var GetIntrinsic = require('get-intrinsic')
|
|
@@ -1180,8 +3239,8 @@
|
|
|
1180
3239
|
}
|
|
1181
3240
|
|
|
1182
3241
|
module.exports = hasPropertyDescriptors
|
|
1183
|
-
}, { 'get-intrinsic':
|
|
1184
|
-
|
|
3242
|
+
}, { 'get-intrinsic': 123 }],
|
|
3243
|
+
126: [function (require, module, exports) {
|
|
1185
3244
|
'use strict'
|
|
1186
3245
|
|
|
1187
3246
|
var test = {
|
|
@@ -1194,7 +3253,7 @@
|
|
|
1194
3253
|
return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object)
|
|
1195
3254
|
}
|
|
1196
3255
|
}, {}],
|
|
1197
|
-
|
|
3256
|
+
127: [function (require, module, exports) {
|
|
1198
3257
|
'use strict'
|
|
1199
3258
|
|
|
1200
3259
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol
|
|
@@ -1208,8 +3267,8 @@
|
|
|
1208
3267
|
|
|
1209
3268
|
return hasSymbolSham()
|
|
1210
3269
|
}
|
|
1211
|
-
}, { './shams':
|
|
1212
|
-
|
|
3270
|
+
}, { './shams': 128 }],
|
|
3271
|
+
128: [function (require, module, exports) {
|
|
1213
3272
|
'use strict'
|
|
1214
3273
|
|
|
1215
3274
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
@@ -1253,16 +3312,17 @@
|
|
|
1253
3312
|
return true
|
|
1254
3313
|
}
|
|
1255
3314
|
}, {}],
|
|
1256
|
-
|
|
3315
|
+
129: [function (require, module, exports) {
|
|
1257
3316
|
'use strict'
|
|
1258
3317
|
|
|
1259
3318
|
var hasSymbols = require('has-symbols/shams')
|
|
1260
3319
|
|
|
3320
|
+
/** @type {import('.')} */
|
|
1261
3321
|
module.exports = function hasToStringTagShams () {
|
|
1262
3322
|
return hasSymbols() && !!Symbol.toStringTag
|
|
1263
3323
|
}
|
|
1264
|
-
}, { 'has-symbols/shams':
|
|
1265
|
-
|
|
3324
|
+
}, { 'has-symbols/shams': 128 }],
|
|
3325
|
+
130: [function (require, module, exports) {
|
|
1266
3326
|
'use strict'
|
|
1267
3327
|
|
|
1268
3328
|
var call = Function.prototype.call
|
|
@@ -1271,8 +3331,8 @@
|
|
|
1271
3331
|
|
|
1272
3332
|
/** @type {(o: {}, p: PropertyKey) => p is keyof o} */
|
|
1273
3333
|
module.exports = bind.call(call, $hasOwn)
|
|
1274
|
-
}, { 'function-bind':
|
|
1275
|
-
|
|
3334
|
+
}, { 'function-bind': 122 }],
|
|
3335
|
+
131: [function (require, module, exports) {
|
|
1276
3336
|
if (typeof Object.create === 'function') {
|
|
1277
3337
|
// implementation from standard node.js 'util' module
|
|
1278
3338
|
module.exports = function inherits (ctor, superCtor) {
|
|
@@ -1301,7 +3361,7 @@
|
|
|
1301
3361
|
}
|
|
1302
3362
|
}
|
|
1303
3363
|
}, {}],
|
|
1304
|
-
|
|
3364
|
+
132: [function (require, module, exports) {
|
|
1305
3365
|
'use strict'
|
|
1306
3366
|
|
|
1307
3367
|
var hasToStringTag = require('has-tostringtag/shams')()
|
|
@@ -1335,8 +3395,8 @@
|
|
|
1335
3395
|
isStandardArguments.isLegacyArguments = isLegacyArguments // for tests
|
|
1336
3396
|
|
|
1337
3397
|
module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments
|
|
1338
|
-
}, { 'call-bind/callBound':
|
|
1339
|
-
|
|
3398
|
+
}, { 'call-bind/callBound': 110, 'has-tostringtag/shams': 129 }],
|
|
3399
|
+
133: [function (require, module, exports) {
|
|
1340
3400
|
'use strict'
|
|
1341
3401
|
|
|
1342
3402
|
var fnToStr = Function.prototype.toString
|
|
@@ -1439,7 +3499,7 @@
|
|
|
1439
3499
|
return tryFunctionObject(value)
|
|
1440
3500
|
}
|
|
1441
3501
|
}, {}],
|
|
1442
|
-
|
|
3502
|
+
134: [function (require, module, exports) {
|
|
1443
3503
|
'use strict'
|
|
1444
3504
|
|
|
1445
3505
|
var toStr = Object.prototype.toString
|
|
@@ -1478,17 +3538,18 @@
|
|
|
1478
3538
|
}
|
|
1479
3539
|
return getProto(fn) === GeneratorFunction
|
|
1480
3540
|
}
|
|
1481
|
-
}, { 'has-tostringtag/shams':
|
|
1482
|
-
|
|
3541
|
+
}, { 'has-tostringtag/shams': 129 }],
|
|
3542
|
+
135: [function (require, module, exports) {
|
|
1483
3543
|
'use strict'
|
|
1484
3544
|
|
|
1485
3545
|
var whichTypedArray = require('which-typed-array')
|
|
1486
3546
|
|
|
3547
|
+
/** @type {import('.')} */
|
|
1487
3548
|
module.exports = function isTypedArray (value) {
|
|
1488
3549
|
return !!whichTypedArray(value)
|
|
1489
3550
|
}
|
|
1490
|
-
}, { 'which-typed-array':
|
|
1491
|
-
|
|
3551
|
+
}, { 'which-typed-array': 141 }],
|
|
3552
|
+
136: [function (require, module, exports) {
|
|
1492
3553
|
// shim for using process in browser
|
|
1493
3554
|
var process = module.exports = {}
|
|
1494
3555
|
|
|
@@ -1669,7 +3730,7 @@
|
|
|
1669
3730
|
}
|
|
1670
3731
|
process.umask = function () { return 0 }
|
|
1671
3732
|
}, {}],
|
|
1672
|
-
|
|
3733
|
+
137: [function (require, module, exports) {
|
|
1673
3734
|
'use strict'
|
|
1674
3735
|
|
|
1675
3736
|
var GetIntrinsic = require('get-intrinsic')
|
|
@@ -1677,9 +3738,12 @@
|
|
|
1677
3738
|
var hasDescriptors = require('has-property-descriptors')()
|
|
1678
3739
|
var gOPD = require('gopd')
|
|
1679
3740
|
|
|
1680
|
-
var $TypeError =
|
|
3741
|
+
var $TypeError = require('es-errors/type')
|
|
1681
3742
|
var $floor = GetIntrinsic('%Math.floor%')
|
|
1682
3743
|
|
|
3744
|
+
/** @typedef {(...args: unknown[]) => unknown} Func */
|
|
3745
|
+
|
|
3746
|
+
/** @type {<T extends Func = Func>(fn: T, length: number, loose?: boolean) => T} */
|
|
1683
3747
|
module.exports = function setFunctionLength (fn, length) {
|
|
1684
3748
|
if (typeof fn !== 'function') {
|
|
1685
3749
|
throw new $TypeError('`fn` is not a function')
|
|
@@ -1704,15 +3768,15 @@
|
|
|
1704
3768
|
|
|
1705
3769
|
if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
|
|
1706
3770
|
if (hasDescriptors) {
|
|
1707
|
-
define(fn, 'length', length, true, true)
|
|
3771
|
+
define(/** @type {Parameters<define>[0]} */ (fn), 'length', length, true, true)
|
|
1708
3772
|
} else {
|
|
1709
|
-
define(fn, 'length', length)
|
|
3773
|
+
define(/** @type {Parameters<define>[0]} */ (fn), 'length', length)
|
|
1710
3774
|
}
|
|
1711
3775
|
}
|
|
1712
3776
|
return fn
|
|
1713
3777
|
}
|
|
1714
|
-
}, { 'define-data-property':
|
|
1715
|
-
|
|
3778
|
+
}, { 'define-data-property': 112, 'es-errors/type': 118, 'get-intrinsic': 123, gopd: 124, 'has-property-descriptors': 125 }],
|
|
3779
|
+
138: [function (require, module, exports) {
|
|
1716
3780
|
module.exports = function isBuffer (arg) {
|
|
1717
3781
|
return arg && typeof arg === 'object' &&
|
|
1718
3782
|
typeof arg.copy === 'function' &&
|
|
@@ -1720,7 +3784,7 @@
|
|
|
1720
3784
|
typeof arg.readUInt8 === 'function'
|
|
1721
3785
|
}
|
|
1722
3786
|
}, {}],
|
|
1723
|
-
|
|
3787
|
+
139: [function (require, module, exports) {
|
|
1724
3788
|
// Currently in sync with Node.js lib/internal/util/types.js
|
|
1725
3789
|
// https://github.com/nodejs/node/commit/112cc7c27551254aa2b17098fb774867f05ed0d9
|
|
1726
3790
|
|
|
@@ -2054,8 +4118,8 @@
|
|
|
2054
4118
|
}
|
|
2055
4119
|
})
|
|
2056
4120
|
})
|
|
2057
|
-
}, { 'is-arguments':
|
|
2058
|
-
|
|
4121
|
+
}, { 'is-arguments': 132, 'is-generator-function': 134, 'is-typed-array': 135, 'which-typed-array': 141 }],
|
|
4122
|
+
140: [function (require, module, exports) {
|
|
2059
4123
|
(function (process) {
|
|
2060
4124
|
(function () {
|
|
2061
4125
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
@@ -2754,8 +4818,8 @@
|
|
|
2754
4818
|
exports.callbackify = callbackify
|
|
2755
4819
|
}).call(this)
|
|
2756
4820
|
}).call(this, require('_process'))
|
|
2757
|
-
}, { './support/isBuffer':
|
|
2758
|
-
|
|
4821
|
+
}, { './support/isBuffer': 138, './support/types': 139, _process: 136, inherits: 131 }],
|
|
4822
|
+
141: [function (require, module, exports) {
|
|
2759
4823
|
(function (global) {
|
|
2760
4824
|
(function () {
|
|
2761
4825
|
'use strict'
|
|
@@ -2775,7 +4839,7 @@
|
|
|
2775
4839
|
var $slice = callBound('String.prototype.slice')
|
|
2776
4840
|
var getPrototypeOf = Object.getPrototypeOf // require('getprototypeof');
|
|
2777
4841
|
|
|
2778
|
-
var $indexOf = callBound('Array.prototype.indexOf', true) || function indexOf (array, value) {
|
|
4842
|
+
var $indexOf = callBound('Array.prototype.indexOf', true) || /** @type {(array: readonly unknown[], value: unknown) => keyof array} */ function indexOf (array, value) {
|
|
2779
4843
|
for (var i = 0; i < array.length; i += 1) {
|
|
2780
4844
|
if (array[i] === value) {
|
|
2781
4845
|
return i
|
|
@@ -2783,17 +4847,24 @@
|
|
|
2783
4847
|
}
|
|
2784
4848
|
return -1
|
|
2785
4849
|
}
|
|
4850
|
+
|
|
4851
|
+
/** @typedef {Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array} TypedArray */
|
|
4852
|
+
/** @typedef {'Int8Array' | 'Uint8Array' | 'Uint8ClampedArray' | 'Int16Array' | 'Uint16Array' | 'Int32Array' | 'Uint32Array' | 'Float32Array' | 'Float64Array' | 'BigInt64Array' | 'BigUint64Array'} TypedArrayName */
|
|
4853
|
+
/** @type {{ [k in `\$${TypedArrayName}`]?: (receiver: TypedArray) => string | typeof Uint8Array.prototype.slice.call | typeof Uint8Array.prototype.set.call } & { __proto__: null }} */
|
|
2786
4854
|
var cache = { __proto__: null }
|
|
2787
4855
|
if (hasToStringTag && gOPD && getPrototypeOf) {
|
|
2788
4856
|
forEach(typedArrays, function (typedArray) {
|
|
2789
4857
|
var arr = new g[typedArray]()
|
|
2790
4858
|
if (Symbol.toStringTag in arr) {
|
|
2791
4859
|
var proto = getPrototypeOf(arr)
|
|
4860
|
+
// @ts-expect-error TS won't narrow inside a closure
|
|
2792
4861
|
var descriptor = gOPD(proto, Symbol.toStringTag)
|
|
2793
4862
|
if (!descriptor) {
|
|
2794
4863
|
var superProto = getPrototypeOf(proto)
|
|
4864
|
+
// @ts-expect-error TS won't narrow inside a closure
|
|
2795
4865
|
descriptor = gOPD(superProto, Symbol.toStringTag)
|
|
2796
4866
|
}
|
|
4867
|
+
// @ts-expect-error TODO: fix
|
|
2797
4868
|
cache['$' + typedArray] = callBind(descriptor.get)
|
|
2798
4869
|
}
|
|
2799
4870
|
})
|
|
@@ -2802,38 +4873,52 @@
|
|
|
2802
4873
|
var arr = new g[typedArray]()
|
|
2803
4874
|
var fn = arr.slice || arr.set
|
|
2804
4875
|
if (fn) {
|
|
4876
|
+
// @ts-expect-error TODO: fix
|
|
2805
4877
|
cache['$' + typedArray] = callBind(fn)
|
|
2806
4878
|
}
|
|
2807
4879
|
})
|
|
2808
4880
|
}
|
|
2809
4881
|
|
|
4882
|
+
/** @type {import('.')} */
|
|
2810
4883
|
var tryTypedArrays = function tryAllTypedArrays (value) {
|
|
2811
|
-
var found = false
|
|
2812
|
-
forEach(
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
4884
|
+
/** @type {ReturnType<tryAllTypedArrays>} */ var found = false
|
|
4885
|
+
forEach(
|
|
4886
|
+
// eslint-disable-next-line no-extra-parens
|
|
4887
|
+
/** @type {Record<`\$${TypedArrayName}`, typeof cache>} */ /** @type {any} */ (cache),
|
|
4888
|
+
/** @type {(getter: typeof cache, name: `\$${TypedArrayName}`) => void} */ function (getter, typedArray) {
|
|
4889
|
+
if (!found) {
|
|
4890
|
+
try {
|
|
4891
|
+
// @ts-expect-error TODO: fix
|
|
4892
|
+
if ('$' + getter(value) === typedArray) {
|
|
4893
|
+
found = $slice(typedArray, 1)
|
|
4894
|
+
}
|
|
4895
|
+
} catch (e) { /**/ }
|
|
4896
|
+
}
|
|
2819
4897
|
}
|
|
2820
|
-
|
|
4898
|
+
)
|
|
2821
4899
|
return found
|
|
2822
4900
|
}
|
|
2823
4901
|
|
|
4902
|
+
/** @type {import('.')} */
|
|
2824
4903
|
var trySlices = function tryAllSlices (value) {
|
|
2825
|
-
var found = false
|
|
2826
|
-
forEach(
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
4904
|
+
/** @type {ReturnType<tryAllSlices>} */ var found = false
|
|
4905
|
+
forEach(
|
|
4906
|
+
// eslint-disable-next-line no-extra-parens
|
|
4907
|
+
/** @type {any} */ (cache),
|
|
4908
|
+
/** @type {(getter: typeof cache, name: `\$${TypedArrayName}`) => void} */ function (getter, name) {
|
|
4909
|
+
if (!found) {
|
|
4910
|
+
try {
|
|
4911
|
+
// @ts-expect-error TODO: fix
|
|
4912
|
+
getter(value)
|
|
4913
|
+
found = $slice(name, 1)
|
|
4914
|
+
} catch (e) { /**/ }
|
|
4915
|
+
}
|
|
2832
4916
|
}
|
|
2833
|
-
|
|
4917
|
+
)
|
|
2834
4918
|
return found
|
|
2835
4919
|
}
|
|
2836
4920
|
|
|
4921
|
+
/** @type {import('.')} */
|
|
2837
4922
|
module.exports = function whichTypedArray (value) {
|
|
2838
4923
|
if (!value || typeof value !== 'object') { return false }
|
|
2839
4924
|
if (!hasToStringTag) {
|
|
@@ -2852,5 +4937,5 @@
|
|
|
2852
4937
|
}
|
|
2853
4938
|
}).call(this)
|
|
2854
4939
|
}).call(this, typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : {})
|
|
2855
|
-
}, { 'available-typed-arrays':
|
|
2856
|
-
}, {}, [
|
|
4940
|
+
}, { 'available-typed-arrays': 108, 'call-bind': 111, 'call-bind/callBound': 110, 'for-each': 120, gopd: 124, 'has-tostringtag/shams': 129 }]
|
|
4941
|
+
}, {}, [107])
|