@bolttech/form-engine 3.1.0-beta.3 → 3.1.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +840 -836
- package/package.json +2 -2
package/index.esm.js
CHANGED
|
@@ -4,6 +4,24 @@ import { createContext, useContext, useRef, useMemo, useState, useEffect, useCal
|
|
|
4
4
|
|
|
5
5
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
6
6
|
|
|
7
|
+
var check = function (it) {
|
|
8
|
+
return it && it.Math === Math && it;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
12
|
+
var global$e =
|
|
13
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
|
14
|
+
check(typeof globalThis == 'object' && globalThis) ||
|
|
15
|
+
check(typeof window == 'object' && window) ||
|
|
16
|
+
// eslint-disable-next-line no-restricted-globals -- safe
|
|
17
|
+
check(typeof self == 'object' && self) ||
|
|
18
|
+
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
19
|
+
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
20
|
+
// eslint-disable-next-line no-new-func -- fallback
|
|
21
|
+
(function () { return this; })() || Function('return this')();
|
|
22
|
+
|
|
23
|
+
var objectGetOwnPropertyDescriptor = {};
|
|
24
|
+
|
|
7
25
|
var fails$h = function (exec) {
|
|
8
26
|
try {
|
|
9
27
|
return !!exec();
|
|
@@ -14,7 +32,15 @@ var fails$h = function (exec) {
|
|
|
14
32
|
|
|
15
33
|
var fails$g = fails$h;
|
|
16
34
|
|
|
17
|
-
|
|
35
|
+
// Detect IE8's incomplete defineProperty implementation
|
|
36
|
+
var descriptors = !fails$g(function () {
|
|
37
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
38
|
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
var fails$f = fails$h;
|
|
42
|
+
|
|
43
|
+
var functionBindNative = !fails$f(function () {
|
|
18
44
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
19
45
|
var test = (function () { /* empty */ }).bind();
|
|
20
46
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -23,13 +49,46 @@ var functionBindNative = !fails$g(function () {
|
|
|
23
49
|
|
|
24
50
|
var NATIVE_BIND$1 = functionBindNative;
|
|
25
51
|
|
|
52
|
+
var call$8 = Function.prototype.call;
|
|
53
|
+
|
|
54
|
+
var functionCall = NATIVE_BIND$1 ? call$8.bind(call$8) : function () {
|
|
55
|
+
return call$8.apply(call$8, arguments);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
var objectPropertyIsEnumerable = {};
|
|
59
|
+
|
|
60
|
+
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
61
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
62
|
+
var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
|
|
63
|
+
|
|
64
|
+
// Nashorn ~ JDK8 bug
|
|
65
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
66
|
+
|
|
67
|
+
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
68
|
+
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
69
|
+
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
70
|
+
var descriptor = getOwnPropertyDescriptor$2(this, V);
|
|
71
|
+
return !!descriptor && descriptor.enumerable;
|
|
72
|
+
} : $propertyIsEnumerable;
|
|
73
|
+
|
|
74
|
+
var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
75
|
+
return {
|
|
76
|
+
enumerable: !(bitmap & 1),
|
|
77
|
+
configurable: !(bitmap & 2),
|
|
78
|
+
writable: !(bitmap & 4),
|
|
79
|
+
value: value
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
var NATIVE_BIND = functionBindNative;
|
|
84
|
+
|
|
26
85
|
var FunctionPrototype$1 = Function.prototype;
|
|
27
|
-
var call$
|
|
28
|
-
var uncurryThisWithBind = NATIVE_BIND
|
|
86
|
+
var call$7 = FunctionPrototype$1.call;
|
|
87
|
+
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$7, call$7);
|
|
29
88
|
|
|
30
|
-
var functionUncurryThis = NATIVE_BIND
|
|
89
|
+
var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
31
90
|
return function () {
|
|
32
|
-
return call$
|
|
91
|
+
return call$7.apply(fn, arguments);
|
|
33
92
|
};
|
|
34
93
|
};
|
|
35
94
|
|
|
@@ -43,14 +102,14 @@ var classofRaw$2 = function (it) {
|
|
|
43
102
|
};
|
|
44
103
|
|
|
45
104
|
var uncurryThis$e = functionUncurryThis;
|
|
46
|
-
var fails$
|
|
105
|
+
var fails$e = fails$h;
|
|
47
106
|
var classof$3 = classofRaw$2;
|
|
48
107
|
|
|
49
108
|
var $Object$4 = Object;
|
|
50
109
|
var split = uncurryThis$e(''.split);
|
|
51
110
|
|
|
52
111
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
53
|
-
var indexedObject = fails$
|
|
112
|
+
var indexedObject = fails$e(function () {
|
|
54
113
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
55
114
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
56
115
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
@@ -83,88 +142,38 @@ var toIndexedObject$5 = function (it) {
|
|
|
83
142
|
return IndexedObject$1(requireObjectCoercible$3(it));
|
|
84
143
|
};
|
|
85
144
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
91
|
-
var global$e =
|
|
92
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
|
93
|
-
check(typeof globalThis == 'object' && globalThis) ||
|
|
94
|
-
check(typeof window == 'object' && window) ||
|
|
95
|
-
// eslint-disable-next-line no-restricted-globals -- safe
|
|
96
|
-
check(typeof self == 'object' && self) ||
|
|
97
|
-
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
98
|
-
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
99
|
-
// eslint-disable-next-line no-new-func -- fallback
|
|
100
|
-
(function () { return this; })() || Function('return this')();
|
|
101
|
-
|
|
102
|
-
var sharedStore = {exports: {}};
|
|
103
|
-
|
|
104
|
-
var global$d = global$e;
|
|
105
|
-
|
|
106
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
107
|
-
var defineProperty$5 = Object.defineProperty;
|
|
145
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
146
|
+
var documentAll = typeof document == 'object' && document.all;
|
|
108
147
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
148
|
+
// `IsCallable` abstract operation
|
|
149
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
|
150
|
+
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
151
|
+
var isCallable$e = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
152
|
+
return typeof argument == 'function' || argument === documentAll;
|
|
153
|
+
} : function (argument) {
|
|
154
|
+
return typeof argument == 'function';
|
|
115
155
|
};
|
|
116
156
|
|
|
117
|
-
var
|
|
118
|
-
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
119
|
-
|
|
120
|
-
var SHARED = '__core-js_shared__';
|
|
121
|
-
var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
122
|
-
|
|
123
|
-
(store$3.versions || (store$3.versions = [])).push({
|
|
124
|
-
version: '3.37.1',
|
|
125
|
-
mode: 'global',
|
|
126
|
-
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
127
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE',
|
|
128
|
-
source: 'https://github.com/zloirock/core-js'
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
var store$2 = sharedStore.exports;
|
|
157
|
+
var isCallable$d = isCallable$e;
|
|
132
158
|
|
|
133
|
-
var
|
|
134
|
-
return
|
|
159
|
+
var isObject$9 = function (it) {
|
|
160
|
+
return typeof it == 'object' ? it !== null : isCallable$d(it);
|
|
135
161
|
};
|
|
136
162
|
|
|
137
|
-
var
|
|
138
|
-
|
|
139
|
-
var $Object$3 = Object;
|
|
163
|
+
var global$d = global$e;
|
|
164
|
+
var isCallable$c = isCallable$e;
|
|
140
165
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
var toObject$4 = function (argument) {
|
|
144
|
-
return $Object$3(requireObjectCoercible$2(argument));
|
|
166
|
+
var aFunction = function (argument) {
|
|
167
|
+
return isCallable$c(argument) ? argument : undefined;
|
|
145
168
|
};
|
|
146
169
|
|
|
147
|
-
var
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
var hasOwnProperty = uncurryThis$d({}.hasOwnProperty);
|
|
151
|
-
|
|
152
|
-
// `HasOwnProperty` abstract operation
|
|
153
|
-
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
154
|
-
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
155
|
-
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
156
|
-
return hasOwnProperty(toObject$3(it), key);
|
|
170
|
+
var getBuiltIn$3 = function (namespace, method) {
|
|
171
|
+
return arguments.length < 2 ? aFunction(global$d[namespace]) : global$d[namespace] && global$d[namespace][method];
|
|
157
172
|
};
|
|
158
173
|
|
|
159
|
-
var uncurryThis$
|
|
160
|
-
|
|
161
|
-
var id = 0;
|
|
162
|
-
var postfix = Math.random();
|
|
163
|
-
var toString$4 = uncurryThis$c(1.0.toString);
|
|
174
|
+
var uncurryThis$d = functionUncurryThis;
|
|
164
175
|
|
|
165
|
-
var
|
|
166
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
|
|
167
|
-
};
|
|
176
|
+
var objectIsPrototypeOf = uncurryThis$d({}.isPrototypeOf);
|
|
168
177
|
|
|
169
178
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
170
179
|
|
|
@@ -198,13 +207,13 @@ var engineV8Version = version;
|
|
|
198
207
|
|
|
199
208
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
200
209
|
var V8_VERSION = engineV8Version;
|
|
201
|
-
var fails$
|
|
210
|
+
var fails$d = fails$h;
|
|
202
211
|
var global$b = global$e;
|
|
203
212
|
|
|
204
213
|
var $String$5 = global$b.String;
|
|
205
214
|
|
|
206
215
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
207
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
216
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$d(function () {
|
|
208
217
|
var symbol = Symbol('symbol detection');
|
|
209
218
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
210
219
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -222,144 +231,25 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
222
231
|
&& !Symbol.sham
|
|
223
232
|
&& typeof Symbol.iterator == 'symbol';
|
|
224
233
|
|
|
225
|
-
var global$a = global$e;
|
|
226
|
-
var shared$3 = shared$4;
|
|
227
|
-
var hasOwn$9 = hasOwnProperty_1;
|
|
228
|
-
var uid$1 = uid$2;
|
|
229
|
-
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
230
|
-
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
231
|
-
|
|
232
|
-
var Symbol$1 = global$a.Symbol;
|
|
233
|
-
var WellKnownSymbolsStore = shared$3('wks');
|
|
234
|
-
var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
235
|
-
|
|
236
|
-
var wellKnownSymbol$a = function (name) {
|
|
237
|
-
if (!hasOwn$9(WellKnownSymbolsStore, name)) {
|
|
238
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)
|
|
239
|
-
? Symbol$1[name]
|
|
240
|
-
: createWellKnownSymbol('Symbol.' + name);
|
|
241
|
-
} return WellKnownSymbolsStore[name];
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
245
|
-
var documentAll = typeof document == 'object' && document.all;
|
|
246
|
-
|
|
247
|
-
// `IsCallable` abstract operation
|
|
248
|
-
// https://tc39.es/ecma262/#sec-iscallable
|
|
249
|
-
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
250
|
-
var isCallable$e = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
251
|
-
return typeof argument == 'function' || argument === documentAll;
|
|
252
|
-
} : function (argument) {
|
|
253
|
-
return typeof argument == 'function';
|
|
254
|
-
};
|
|
255
|
-
|
|
256
|
-
var isCallable$d = isCallable$e;
|
|
257
|
-
|
|
258
|
-
var isObject$9 = function (it) {
|
|
259
|
-
return typeof it == 'object' ? it !== null : isCallable$d(it);
|
|
260
|
-
};
|
|
261
|
-
|
|
262
|
-
var isObject$8 = isObject$9;
|
|
263
|
-
|
|
264
|
-
var $String$4 = String;
|
|
265
|
-
var $TypeError$7 = TypeError;
|
|
266
|
-
|
|
267
|
-
// `Assert: Type(argument) is Object`
|
|
268
|
-
var anObject$6 = function (argument) {
|
|
269
|
-
if (isObject$8(argument)) return argument;
|
|
270
|
-
throw new $TypeError$7($String$4(argument) + ' is not an object');
|
|
271
|
-
};
|
|
272
|
-
|
|
273
|
-
var objectDefineProperties = {};
|
|
274
|
-
|
|
275
|
-
var fails$d = fails$h;
|
|
276
|
-
|
|
277
|
-
// Detect IE8's incomplete defineProperty implementation
|
|
278
|
-
var descriptors = !fails$d(function () {
|
|
279
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
280
|
-
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
281
|
-
});
|
|
282
|
-
|
|
283
|
-
var DESCRIPTORS$9 = descriptors;
|
|
284
|
-
var fails$c = fails$h;
|
|
285
|
-
|
|
286
|
-
// V8 ~ Chrome 36-
|
|
287
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
288
|
-
var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$c(function () {
|
|
289
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
290
|
-
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
291
|
-
value: 42,
|
|
292
|
-
writable: false
|
|
293
|
-
}).prototype !== 42;
|
|
294
|
-
});
|
|
295
|
-
|
|
296
|
-
var objectDefineProperty = {};
|
|
297
|
-
|
|
298
|
-
var global$9 = global$e;
|
|
299
|
-
var isObject$7 = isObject$9;
|
|
300
|
-
|
|
301
|
-
var document$1 = global$9.document;
|
|
302
|
-
// typeof document.createElement is 'object' in old IE
|
|
303
|
-
var EXISTS$1 = isObject$7(document$1) && isObject$7(document$1.createElement);
|
|
304
|
-
|
|
305
|
-
var documentCreateElement$2 = function (it) {
|
|
306
|
-
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
307
|
-
};
|
|
308
|
-
|
|
309
|
-
var DESCRIPTORS$8 = descriptors;
|
|
310
|
-
var fails$b = fails$h;
|
|
311
|
-
var createElement = documentCreateElement$2;
|
|
312
|
-
|
|
313
|
-
// Thanks to IE8 for its funny defineProperty
|
|
314
|
-
var ie8DomDefine = !DESCRIPTORS$8 && !fails$b(function () {
|
|
315
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
316
|
-
return Object.defineProperty(createElement('div'), 'a', {
|
|
317
|
-
get: function () { return 7; }
|
|
318
|
-
}).a !== 7;
|
|
319
|
-
});
|
|
320
|
-
|
|
321
|
-
var NATIVE_BIND = functionBindNative;
|
|
322
|
-
|
|
323
|
-
var call$7 = Function.prototype.call;
|
|
324
|
-
|
|
325
|
-
var functionCall = NATIVE_BIND ? call$7.bind(call$7) : function () {
|
|
326
|
-
return call$7.apply(call$7, arguments);
|
|
327
|
-
};
|
|
328
|
-
|
|
329
|
-
var global$8 = global$e;
|
|
330
|
-
var isCallable$c = isCallable$e;
|
|
331
|
-
|
|
332
|
-
var aFunction = function (argument) {
|
|
333
|
-
return isCallable$c(argument) ? argument : undefined;
|
|
334
|
-
};
|
|
335
|
-
|
|
336
|
-
var getBuiltIn$3 = function (namespace, method) {
|
|
337
|
-
return arguments.length < 2 ? aFunction(global$8[namespace]) : global$8[namespace] && global$8[namespace][method];
|
|
338
|
-
};
|
|
339
|
-
|
|
340
|
-
var uncurryThis$b = functionUncurryThis;
|
|
341
|
-
|
|
342
|
-
var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
|
|
343
|
-
|
|
344
234
|
var getBuiltIn$2 = getBuiltIn$3;
|
|
345
235
|
var isCallable$b = isCallable$e;
|
|
346
236
|
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
347
|
-
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
237
|
+
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
348
238
|
|
|
349
|
-
var $Object$
|
|
239
|
+
var $Object$3 = Object;
|
|
350
240
|
|
|
351
|
-
var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
|
|
241
|
+
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
352
242
|
return typeof it == 'symbol';
|
|
353
243
|
} : function (it) {
|
|
354
244
|
var $Symbol = getBuiltIn$2('Symbol');
|
|
355
|
-
return isCallable$b($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$
|
|
245
|
+
return isCallable$b($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$3(it));
|
|
356
246
|
};
|
|
357
247
|
|
|
358
|
-
var $String$
|
|
248
|
+
var $String$4 = String;
|
|
359
249
|
|
|
360
250
|
var tryToString$2 = function (argument) {
|
|
361
251
|
try {
|
|
362
|
-
return $String$
|
|
252
|
+
return $String$4(argument);
|
|
363
253
|
} catch (error) {
|
|
364
254
|
return 'Object';
|
|
365
255
|
}
|
|
@@ -368,12 +258,12 @@ var tryToString$2 = function (argument) {
|
|
|
368
258
|
var isCallable$a = isCallable$e;
|
|
369
259
|
var tryToString$1 = tryToString$2;
|
|
370
260
|
|
|
371
|
-
var $TypeError$
|
|
261
|
+
var $TypeError$7 = TypeError;
|
|
372
262
|
|
|
373
263
|
// `Assert: IsCallable(argument) is true`
|
|
374
264
|
var aCallable$3 = function (argument) {
|
|
375
265
|
if (isCallable$a(argument)) return argument;
|
|
376
|
-
throw new $TypeError$
|
|
266
|
+
throw new $TypeError$7(tryToString$1(argument) + ' is not a function');
|
|
377
267
|
};
|
|
378
268
|
|
|
379
269
|
var aCallable$2 = aCallable$3;
|
|
@@ -388,41 +278,127 @@ var getMethod$1 = function (V, P) {
|
|
|
388
278
|
|
|
389
279
|
var call$6 = functionCall;
|
|
390
280
|
var isCallable$9 = isCallable$e;
|
|
391
|
-
var isObject$
|
|
281
|
+
var isObject$8 = isObject$9;
|
|
392
282
|
|
|
393
|
-
var $TypeError$
|
|
283
|
+
var $TypeError$6 = TypeError;
|
|
394
284
|
|
|
395
285
|
// `OrdinaryToPrimitive` abstract operation
|
|
396
286
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
397
287
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
398
288
|
var fn, val;
|
|
399
|
-
if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$
|
|
400
|
-
if (isCallable$9(fn = input.valueOf) && !isObject$
|
|
401
|
-
if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$
|
|
402
|
-
throw new $TypeError$
|
|
289
|
+
if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$8(val = call$6(fn, input))) return val;
|
|
290
|
+
if (isCallable$9(fn = input.valueOf) && !isObject$8(val = call$6(fn, input))) return val;
|
|
291
|
+
if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$8(val = call$6(fn, input))) return val;
|
|
292
|
+
throw new $TypeError$6("Can't convert object to primitive value");
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
var sharedStore = {exports: {}};
|
|
296
|
+
|
|
297
|
+
var global$a = global$e;
|
|
298
|
+
|
|
299
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
300
|
+
var defineProperty$5 = Object.defineProperty;
|
|
301
|
+
|
|
302
|
+
var defineGlobalProperty$3 = function (key, value) {
|
|
303
|
+
try {
|
|
304
|
+
defineProperty$5(global$a, key, { value: value, configurable: true, writable: true });
|
|
305
|
+
} catch (error) {
|
|
306
|
+
global$a[key] = value;
|
|
307
|
+
} return value;
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
var globalThis$1 = global$e;
|
|
311
|
+
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
312
|
+
|
|
313
|
+
var SHARED = '__core-js_shared__';
|
|
314
|
+
var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
315
|
+
|
|
316
|
+
(store$3.versions || (store$3.versions = [])).push({
|
|
317
|
+
version: '3.37.1',
|
|
318
|
+
mode: 'global',
|
|
319
|
+
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
320
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE',
|
|
321
|
+
source: 'https://github.com/zloirock/core-js'
|
|
322
|
+
});
|
|
323
|
+
|
|
324
|
+
var store$2 = sharedStore.exports;
|
|
325
|
+
|
|
326
|
+
var shared$4 = function (key, value) {
|
|
327
|
+
return store$2[key] || (store$2[key] = value || {});
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
var requireObjectCoercible$2 = requireObjectCoercible$4;
|
|
331
|
+
|
|
332
|
+
var $Object$2 = Object;
|
|
333
|
+
|
|
334
|
+
// `ToObject` abstract operation
|
|
335
|
+
// https://tc39.es/ecma262/#sec-toobject
|
|
336
|
+
var toObject$4 = function (argument) {
|
|
337
|
+
return $Object$2(requireObjectCoercible$2(argument));
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
var uncurryThis$c = functionUncurryThis;
|
|
341
|
+
var toObject$3 = toObject$4;
|
|
342
|
+
|
|
343
|
+
var hasOwnProperty = uncurryThis$c({}.hasOwnProperty);
|
|
344
|
+
|
|
345
|
+
// `HasOwnProperty` abstract operation
|
|
346
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
347
|
+
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
348
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
349
|
+
return hasOwnProperty(toObject$3(it), key);
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
var uncurryThis$b = functionUncurryThis;
|
|
353
|
+
|
|
354
|
+
var id = 0;
|
|
355
|
+
var postfix = Math.random();
|
|
356
|
+
var toString$4 = uncurryThis$b(1.0.toString);
|
|
357
|
+
|
|
358
|
+
var uid$2 = function (key) {
|
|
359
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
var global$9 = global$e;
|
|
363
|
+
var shared$3 = shared$4;
|
|
364
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
365
|
+
var uid$1 = uid$2;
|
|
366
|
+
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
367
|
+
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
368
|
+
|
|
369
|
+
var Symbol$1 = global$9.Symbol;
|
|
370
|
+
var WellKnownSymbolsStore = shared$3('wks');
|
|
371
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
372
|
+
|
|
373
|
+
var wellKnownSymbol$a = function (name) {
|
|
374
|
+
if (!hasOwn$9(WellKnownSymbolsStore, name)) {
|
|
375
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)
|
|
376
|
+
? Symbol$1[name]
|
|
377
|
+
: createWellKnownSymbol('Symbol.' + name);
|
|
378
|
+
} return WellKnownSymbolsStore[name];
|
|
403
379
|
};
|
|
404
380
|
|
|
405
381
|
var call$5 = functionCall;
|
|
406
|
-
var isObject$
|
|
382
|
+
var isObject$7 = isObject$9;
|
|
407
383
|
var isSymbol$1 = isSymbol$2;
|
|
408
384
|
var getMethod = getMethod$1;
|
|
409
385
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
410
386
|
var wellKnownSymbol$9 = wellKnownSymbol$a;
|
|
411
387
|
|
|
412
|
-
var $TypeError$
|
|
388
|
+
var $TypeError$5 = TypeError;
|
|
413
389
|
var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
|
|
414
390
|
|
|
415
391
|
// `ToPrimitive` abstract operation
|
|
416
392
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
417
393
|
var toPrimitive$1 = function (input, pref) {
|
|
418
|
-
if (!isObject$
|
|
394
|
+
if (!isObject$7(input) || isSymbol$1(input)) return input;
|
|
419
395
|
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
420
396
|
var result;
|
|
421
397
|
if (exoticToPrim) {
|
|
422
398
|
if (pref === undefined) pref = 'default';
|
|
423
399
|
result = call$5(exoticToPrim, input, pref);
|
|
424
|
-
if (!isObject$
|
|
425
|
-
throw new $TypeError$
|
|
400
|
+
if (!isObject$7(result) || isSymbol$1(result)) return result;
|
|
401
|
+
throw new $TypeError$5("Can't convert object to primitive value");
|
|
426
402
|
}
|
|
427
403
|
if (pref === undefined) pref = 'number';
|
|
428
404
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -438,29 +414,101 @@ var toPropertyKey$2 = function (argument) {
|
|
|
438
414
|
return isSymbol(key) ? key : key + '';
|
|
439
415
|
};
|
|
440
416
|
|
|
441
|
-
var
|
|
417
|
+
var global$8 = global$e;
|
|
418
|
+
var isObject$6 = isObject$9;
|
|
419
|
+
|
|
420
|
+
var document$1 = global$8.document;
|
|
421
|
+
// typeof document.createElement is 'object' in old IE
|
|
422
|
+
var EXISTS$1 = isObject$6(document$1) && isObject$6(document$1.createElement);
|
|
423
|
+
|
|
424
|
+
var documentCreateElement$2 = function (it) {
|
|
425
|
+
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
var DESCRIPTORS$9 = descriptors;
|
|
429
|
+
var fails$c = fails$h;
|
|
430
|
+
var createElement = documentCreateElement$2;
|
|
431
|
+
|
|
432
|
+
// Thanks to IE8 for its funny defineProperty
|
|
433
|
+
var ie8DomDefine = !DESCRIPTORS$9 && !fails$c(function () {
|
|
434
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
435
|
+
return Object.defineProperty(createElement('div'), 'a', {
|
|
436
|
+
get: function () { return 7; }
|
|
437
|
+
}).a !== 7;
|
|
438
|
+
});
|
|
439
|
+
|
|
440
|
+
var DESCRIPTORS$8 = descriptors;
|
|
441
|
+
var call$4 = functionCall;
|
|
442
|
+
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
443
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
444
|
+
var toIndexedObject$4 = toIndexedObject$5;
|
|
445
|
+
var toPropertyKey$1 = toPropertyKey$2;
|
|
446
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
442
447
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
448
|
+
|
|
449
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
450
|
+
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
451
|
+
|
|
452
|
+
// `Object.getOwnPropertyDescriptor` method
|
|
453
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
454
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
455
|
+
O = toIndexedObject$4(O);
|
|
456
|
+
P = toPropertyKey$1(P);
|
|
457
|
+
if (IE8_DOM_DEFINE$1) try {
|
|
458
|
+
return $getOwnPropertyDescriptor$1(O, P);
|
|
459
|
+
} catch (error) { /* empty */ }
|
|
460
|
+
if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$4(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
var objectDefineProperty = {};
|
|
464
|
+
|
|
465
|
+
var DESCRIPTORS$7 = descriptors;
|
|
466
|
+
var fails$b = fails$h;
|
|
467
|
+
|
|
468
|
+
// V8 ~ Chrome 36-
|
|
469
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
470
|
+
var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$b(function () {
|
|
471
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
472
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
473
|
+
value: 42,
|
|
474
|
+
writable: false
|
|
475
|
+
}).prototype !== 42;
|
|
476
|
+
});
|
|
477
|
+
|
|
478
|
+
var isObject$5 = isObject$9;
|
|
479
|
+
|
|
480
|
+
var $String$3 = String;
|
|
481
|
+
var $TypeError$4 = TypeError;
|
|
482
|
+
|
|
483
|
+
// `Assert: Type(argument) is Object`
|
|
484
|
+
var anObject$6 = function (argument) {
|
|
485
|
+
if (isObject$5(argument)) return argument;
|
|
486
|
+
throw new $TypeError$4($String$3(argument) + ' is not an object');
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
var DESCRIPTORS$6 = descriptors;
|
|
490
|
+
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
443
491
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
444
492
|
var anObject$5 = anObject$6;
|
|
445
|
-
var toPropertyKey
|
|
493
|
+
var toPropertyKey = toPropertyKey$2;
|
|
446
494
|
|
|
447
495
|
var $TypeError$3 = TypeError;
|
|
448
496
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
449
497
|
var $defineProperty = Object.defineProperty;
|
|
450
498
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
451
|
-
var $getOwnPropertyDescriptor
|
|
499
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
452
500
|
var ENUMERABLE = 'enumerable';
|
|
453
501
|
var CONFIGURABLE$1 = 'configurable';
|
|
454
502
|
var WRITABLE = 'writable';
|
|
455
503
|
|
|
456
504
|
// `Object.defineProperty` method
|
|
457
505
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
458
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
506
|
+
objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
459
507
|
anObject$5(O);
|
|
460
|
-
P = toPropertyKey
|
|
508
|
+
P = toPropertyKey(P);
|
|
461
509
|
anObject$5(Attributes);
|
|
462
510
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
463
|
-
var current = $getOwnPropertyDescriptor
|
|
511
|
+
var current = $getOwnPropertyDescriptor(O, P);
|
|
464
512
|
if (current && current[WRITABLE]) {
|
|
465
513
|
O[P] = Attributes.value;
|
|
466
514
|
Attributes = {
|
|
@@ -472,9 +520,9 @@ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
472
520
|
} return $defineProperty(O, P, Attributes);
|
|
473
521
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
474
522
|
anObject$5(O);
|
|
475
|
-
P = toPropertyKey
|
|
523
|
+
P = toPropertyKey(P);
|
|
476
524
|
anObject$5(Attributes);
|
|
477
|
-
if (IE8_DOM_DEFINE
|
|
525
|
+
if (IE8_DOM_DEFINE) try {
|
|
478
526
|
return $defineProperty(O, P, Attributes);
|
|
479
527
|
} catch (error) { /* empty */ }
|
|
480
528
|
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$3('Accessors not supported');
|
|
@@ -482,313 +530,78 @@ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
482
530
|
return O;
|
|
483
531
|
};
|
|
484
532
|
|
|
485
|
-
var
|
|
486
|
-
var floor$1 = Math.floor;
|
|
487
|
-
|
|
488
|
-
// `Math.trunc` method
|
|
489
|
-
// https://tc39.es/ecma262/#sec-math.trunc
|
|
490
|
-
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
491
|
-
var mathTrunc = Math.trunc || function trunc(x) {
|
|
492
|
-
var n = +x;
|
|
493
|
-
return (n > 0 ? floor$1 : ceil)(n);
|
|
494
|
-
};
|
|
495
|
-
|
|
496
|
-
var trunc = mathTrunc;
|
|
497
|
-
|
|
498
|
-
// `ToIntegerOrInfinity` abstract operation
|
|
499
|
-
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
500
|
-
var toIntegerOrInfinity$2 = function (argument) {
|
|
501
|
-
var number = +argument;
|
|
502
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
503
|
-
return number !== number || number === 0 ? 0 : trunc(number);
|
|
504
|
-
};
|
|
505
|
-
|
|
506
|
-
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
507
|
-
|
|
508
|
-
var max = Math.max;
|
|
509
|
-
var min$2 = Math.min;
|
|
510
|
-
|
|
511
|
-
// Helper for a popular repeating case of the spec:
|
|
512
|
-
// Let integer be ? ToInteger(index).
|
|
513
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
514
|
-
var toAbsoluteIndex$1 = function (index, length) {
|
|
515
|
-
var integer = toIntegerOrInfinity$1(index);
|
|
516
|
-
return integer < 0 ? max(integer + length, 0) : min$2(integer, length);
|
|
517
|
-
};
|
|
518
|
-
|
|
519
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$2;
|
|
520
|
-
|
|
521
|
-
var min$1 = Math.min;
|
|
522
|
-
|
|
523
|
-
// `ToLength` abstract operation
|
|
524
|
-
// https://tc39.es/ecma262/#sec-tolength
|
|
525
|
-
var toLength$2 = function (argument) {
|
|
526
|
-
var len = toIntegerOrInfinity(argument);
|
|
527
|
-
return len > 0 ? min$1(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
528
|
-
};
|
|
529
|
-
|
|
530
|
-
var toLength$1 = toLength$2;
|
|
531
|
-
|
|
532
|
-
// `LengthOfArrayLike` abstract operation
|
|
533
|
-
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
534
|
-
var lengthOfArrayLike$2 = function (obj) {
|
|
535
|
-
return toLength$1(obj.length);
|
|
536
|
-
};
|
|
537
|
-
|
|
538
|
-
var toIndexedObject$4 = toIndexedObject$5;
|
|
539
|
-
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
540
|
-
var lengthOfArrayLike$1 = lengthOfArrayLike$2;
|
|
541
|
-
|
|
542
|
-
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
543
|
-
var createMethod = function (IS_INCLUDES) {
|
|
544
|
-
return function ($this, el, fromIndex) {
|
|
545
|
-
var O = toIndexedObject$4($this);
|
|
546
|
-
var length = lengthOfArrayLike$1(O);
|
|
547
|
-
if (length === 0) return !IS_INCLUDES && -1;
|
|
548
|
-
var index = toAbsoluteIndex(fromIndex, length);
|
|
549
|
-
var value;
|
|
550
|
-
// Array#includes uses SameValueZero equality algorithm
|
|
551
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
552
|
-
if (IS_INCLUDES && el !== el) while (length > index) {
|
|
553
|
-
value = O[index++];
|
|
554
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
555
|
-
if (value !== value) return true;
|
|
556
|
-
// Array#indexOf ignores holes, Array#includes - not
|
|
557
|
-
} else for (;length > index; index++) {
|
|
558
|
-
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
559
|
-
} return !IS_INCLUDES && -1;
|
|
560
|
-
};
|
|
561
|
-
};
|
|
562
|
-
|
|
563
|
-
var arrayIncludes = {
|
|
564
|
-
// `Array.prototype.includes` method
|
|
565
|
-
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
566
|
-
includes: createMethod(true),
|
|
567
|
-
// `Array.prototype.indexOf` method
|
|
568
|
-
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
569
|
-
indexOf: createMethod(false)
|
|
570
|
-
};
|
|
571
|
-
|
|
572
|
-
var hiddenKeys$4 = {};
|
|
573
|
-
|
|
574
|
-
var uncurryThis$a = functionUncurryThis;
|
|
575
|
-
var hasOwn$8 = hasOwnProperty_1;
|
|
576
|
-
var toIndexedObject$3 = toIndexedObject$5;
|
|
577
|
-
var indexOf$1 = arrayIncludes.indexOf;
|
|
578
|
-
var hiddenKeys$3 = hiddenKeys$4;
|
|
579
|
-
|
|
580
|
-
var push$1 = uncurryThis$a([].push);
|
|
581
|
-
|
|
582
|
-
var objectKeysInternal = function (object, names) {
|
|
583
|
-
var O = toIndexedObject$3(object);
|
|
584
|
-
var i = 0;
|
|
585
|
-
var result = [];
|
|
586
|
-
var key;
|
|
587
|
-
for (key in O) !hasOwn$8(hiddenKeys$3, key) && hasOwn$8(O, key) && push$1(result, key);
|
|
588
|
-
// Don't enum bug & hidden keys
|
|
589
|
-
while (names.length > i) if (hasOwn$8(O, key = names[i++])) {
|
|
590
|
-
~indexOf$1(result, key) || push$1(result, key);
|
|
591
|
-
}
|
|
592
|
-
return result;
|
|
593
|
-
};
|
|
594
|
-
|
|
595
|
-
// IE8- don't enum bug keys
|
|
596
|
-
var enumBugKeys$3 = [
|
|
597
|
-
'constructor',
|
|
598
|
-
'hasOwnProperty',
|
|
599
|
-
'isPrototypeOf',
|
|
600
|
-
'propertyIsEnumerable',
|
|
601
|
-
'toLocaleString',
|
|
602
|
-
'toString',
|
|
603
|
-
'valueOf'
|
|
604
|
-
];
|
|
605
|
-
|
|
606
|
-
var internalObjectKeys$1 = objectKeysInternal;
|
|
607
|
-
var enumBugKeys$2 = enumBugKeys$3;
|
|
608
|
-
|
|
609
|
-
// `Object.keys` method
|
|
610
|
-
// https://tc39.es/ecma262/#sec-object.keys
|
|
611
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
|
612
|
-
var objectKeys$2 = Object.keys || function keys(O) {
|
|
613
|
-
return internalObjectKeys$1(O, enumBugKeys$2);
|
|
614
|
-
};
|
|
615
|
-
|
|
616
|
-
var DESCRIPTORS$6 = descriptors;
|
|
617
|
-
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
533
|
+
var DESCRIPTORS$5 = descriptors;
|
|
618
534
|
var definePropertyModule$3 = objectDefineProperty;
|
|
619
|
-
var
|
|
620
|
-
|
|
621
|
-
var
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
627
|
-
anObject$4(O);
|
|
628
|
-
var props = toIndexedObject$2(Properties);
|
|
629
|
-
var keys = objectKeys$1(Properties);
|
|
630
|
-
var length = keys.length;
|
|
631
|
-
var index = 0;
|
|
632
|
-
var key;
|
|
633
|
-
while (length > index) definePropertyModule$3.f(O, key = keys[index++], props[key]);
|
|
634
|
-
return O;
|
|
635
|
-
};
|
|
636
|
-
|
|
637
|
-
var getBuiltIn$1 = getBuiltIn$3;
|
|
638
|
-
|
|
639
|
-
var html$1 = getBuiltIn$1('document', 'documentElement');
|
|
640
|
-
|
|
641
|
-
var shared$2 = shared$4;
|
|
642
|
-
var uid = uid$2;
|
|
643
|
-
|
|
644
|
-
var keys = shared$2('keys');
|
|
645
|
-
|
|
646
|
-
var sharedKey$3 = function (key) {
|
|
647
|
-
return keys[key] || (keys[key] = uid(key));
|
|
648
|
-
};
|
|
649
|
-
|
|
650
|
-
/* global ActiveXObject -- old IE, WSH */
|
|
651
|
-
var anObject$3 = anObject$6;
|
|
652
|
-
var definePropertiesModule = objectDefineProperties;
|
|
653
|
-
var enumBugKeys$1 = enumBugKeys$3;
|
|
654
|
-
var hiddenKeys$2 = hiddenKeys$4;
|
|
655
|
-
var html = html$1;
|
|
656
|
-
var documentCreateElement$1 = documentCreateElement$2;
|
|
657
|
-
var sharedKey$2 = sharedKey$3;
|
|
658
|
-
|
|
659
|
-
var GT = '>';
|
|
660
|
-
var LT = '<';
|
|
661
|
-
var PROTOTYPE = 'prototype';
|
|
662
|
-
var SCRIPT = 'script';
|
|
663
|
-
var IE_PROTO$1 = sharedKey$2('IE_PROTO');
|
|
664
|
-
|
|
665
|
-
var EmptyConstructor = function () { /* empty */ };
|
|
666
|
-
|
|
667
|
-
var scriptTag = function (content) {
|
|
668
|
-
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
669
|
-
};
|
|
670
|
-
|
|
671
|
-
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
672
|
-
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
673
|
-
activeXDocument.write(scriptTag(''));
|
|
674
|
-
activeXDocument.close();
|
|
675
|
-
var temp = activeXDocument.parentWindow.Object;
|
|
676
|
-
activeXDocument = null; // avoid memory leak
|
|
677
|
-
return temp;
|
|
678
|
-
};
|
|
679
|
-
|
|
680
|
-
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
681
|
-
var NullProtoObjectViaIFrame = function () {
|
|
682
|
-
// Thrash, waste and sodomy: IE GC bug
|
|
683
|
-
var iframe = documentCreateElement$1('iframe');
|
|
684
|
-
var JS = 'java' + SCRIPT + ':';
|
|
685
|
-
var iframeDocument;
|
|
686
|
-
iframe.style.display = 'none';
|
|
687
|
-
html.appendChild(iframe);
|
|
688
|
-
// https://github.com/zloirock/core-js/issues/475
|
|
689
|
-
iframe.src = String(JS);
|
|
690
|
-
iframeDocument = iframe.contentWindow.document;
|
|
691
|
-
iframeDocument.open();
|
|
692
|
-
iframeDocument.write(scriptTag('document.F=Object'));
|
|
693
|
-
iframeDocument.close();
|
|
694
|
-
return iframeDocument.F;
|
|
695
|
-
};
|
|
696
|
-
|
|
697
|
-
// Check for document.domain and active x support
|
|
698
|
-
// No need to use active x approach when document.domain is not set
|
|
699
|
-
// see https://github.com/es-shims/es5-shim/issues/150
|
|
700
|
-
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
701
|
-
// avoid IE GC bug
|
|
702
|
-
var activeXDocument;
|
|
703
|
-
var NullProtoObject = function () {
|
|
704
|
-
try {
|
|
705
|
-
activeXDocument = new ActiveXObject('htmlfile');
|
|
706
|
-
} catch (error) { /* ignore */ }
|
|
707
|
-
NullProtoObject = typeof document != 'undefined'
|
|
708
|
-
? document.domain && activeXDocument
|
|
709
|
-
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
710
|
-
: NullProtoObjectViaIFrame()
|
|
711
|
-
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
712
|
-
var length = enumBugKeys$1.length;
|
|
713
|
-
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys$1[length]];
|
|
714
|
-
return NullProtoObject();
|
|
535
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
536
|
+
|
|
537
|
+
var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
|
|
538
|
+
return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
|
|
539
|
+
} : function (object, key, value) {
|
|
540
|
+
object[key] = value;
|
|
541
|
+
return object;
|
|
715
542
|
};
|
|
716
543
|
|
|
717
|
-
|
|
544
|
+
var makeBuiltIn$2 = {exports: {}};
|
|
718
545
|
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
var
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
546
|
+
var DESCRIPTORS$4 = descriptors;
|
|
547
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
548
|
+
|
|
549
|
+
var FunctionPrototype = Function.prototype;
|
|
550
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
551
|
+
var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
|
|
552
|
+
|
|
553
|
+
var EXISTS = hasOwn$7(FunctionPrototype, 'name');
|
|
554
|
+
// additional protection from minified / mangled / dropped function names
|
|
555
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
556
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
557
|
+
|
|
558
|
+
var functionName = {
|
|
559
|
+
EXISTS: EXISTS,
|
|
560
|
+
PROPER: PROPER,
|
|
561
|
+
CONFIGURABLE: CONFIGURABLE
|
|
732
562
|
};
|
|
733
563
|
|
|
734
|
-
var
|
|
735
|
-
var
|
|
736
|
-
var
|
|
564
|
+
var uncurryThis$a = functionUncurryThis;
|
|
565
|
+
var isCallable$8 = isCallable$e;
|
|
566
|
+
var store$1 = sharedStore.exports;
|
|
737
567
|
|
|
738
|
-
var
|
|
739
|
-
var ArrayPrototype = Array.prototype;
|
|
568
|
+
var functionToString = uncurryThis$a(Function.toString);
|
|
740
569
|
|
|
741
|
-
//
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
value: create$2(null)
|
|
747
|
-
});
|
|
570
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
571
|
+
if (!isCallable$8(store$1.inspectSource)) {
|
|
572
|
+
store$1.inspectSource = function (it) {
|
|
573
|
+
return functionToString(it);
|
|
574
|
+
};
|
|
748
575
|
}
|
|
749
576
|
|
|
750
|
-
|
|
751
|
-
var addToUnscopables$1 = function (key) {
|
|
752
|
-
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
753
|
-
};
|
|
754
|
-
|
|
755
|
-
var iterators = {};
|
|
577
|
+
var inspectSource$1 = store$1.inspectSource;
|
|
756
578
|
|
|
757
579
|
var global$7 = global$e;
|
|
758
|
-
var isCallable$
|
|
580
|
+
var isCallable$7 = isCallable$e;
|
|
759
581
|
|
|
760
582
|
var WeakMap$1 = global$7.WeakMap;
|
|
761
583
|
|
|
762
|
-
var weakMapBasicDetection = isCallable$
|
|
584
|
+
var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
763
585
|
|
|
764
|
-
var
|
|
765
|
-
|
|
766
|
-
enumerable: !(bitmap & 1),
|
|
767
|
-
configurable: !(bitmap & 2),
|
|
768
|
-
writable: !(bitmap & 4),
|
|
769
|
-
value: value
|
|
770
|
-
};
|
|
771
|
-
};
|
|
586
|
+
var shared$2 = shared$4;
|
|
587
|
+
var uid = uid$2;
|
|
772
588
|
|
|
773
|
-
var
|
|
774
|
-
var definePropertyModule$2 = objectDefineProperty;
|
|
775
|
-
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
589
|
+
var keys = shared$2('keys');
|
|
776
590
|
|
|
777
|
-
var
|
|
778
|
-
return
|
|
779
|
-
} : function (object, key, value) {
|
|
780
|
-
object[key] = value;
|
|
781
|
-
return object;
|
|
591
|
+
var sharedKey$3 = function (key) {
|
|
592
|
+
return keys[key] || (keys[key] = uid(key));
|
|
782
593
|
};
|
|
783
594
|
|
|
595
|
+
var hiddenKeys$4 = {};
|
|
596
|
+
|
|
784
597
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
785
598
|
var global$6 = global$e;
|
|
786
599
|
var isObject$4 = isObject$9;
|
|
787
600
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
788
|
-
var hasOwn$
|
|
601
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
789
602
|
var shared$1 = sharedStore.exports;
|
|
790
|
-
var sharedKey$
|
|
791
|
-
var hiddenKeys$
|
|
603
|
+
var sharedKey$2 = sharedKey$3;
|
|
604
|
+
var hiddenKeys$3 = hiddenKeys$4;
|
|
792
605
|
|
|
793
606
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
794
607
|
var TypeError$1 = global$6.TypeError;
|
|
@@ -809,38 +622,38 @@ var getterFor = function (TYPE) {
|
|
|
809
622
|
};
|
|
810
623
|
|
|
811
624
|
if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
812
|
-
var store
|
|
625
|
+
var store = shared$1.state || (shared$1.state = new WeakMap());
|
|
813
626
|
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
814
|
-
store
|
|
815
|
-
store
|
|
816
|
-
store
|
|
627
|
+
store.get = store.get;
|
|
628
|
+
store.has = store.has;
|
|
629
|
+
store.set = store.set;
|
|
817
630
|
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
818
631
|
set = function (it, metadata) {
|
|
819
|
-
if (store
|
|
632
|
+
if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
820
633
|
metadata.facade = it;
|
|
821
|
-
store
|
|
634
|
+
store.set(it, metadata);
|
|
822
635
|
return metadata;
|
|
823
636
|
};
|
|
824
637
|
get = function (it) {
|
|
825
|
-
return store
|
|
638
|
+
return store.get(it) || {};
|
|
826
639
|
};
|
|
827
640
|
has = function (it) {
|
|
828
|
-
return store
|
|
641
|
+
return store.has(it);
|
|
829
642
|
};
|
|
830
643
|
} else {
|
|
831
|
-
var STATE = sharedKey$
|
|
832
|
-
hiddenKeys$
|
|
644
|
+
var STATE = sharedKey$2('state');
|
|
645
|
+
hiddenKeys$3[STATE] = true;
|
|
833
646
|
set = function (it, metadata) {
|
|
834
|
-
if (hasOwn$
|
|
647
|
+
if (hasOwn$6(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
835
648
|
metadata.facade = it;
|
|
836
649
|
createNonEnumerableProperty$3(it, STATE, metadata);
|
|
837
650
|
return metadata;
|
|
838
651
|
};
|
|
839
652
|
get = function (it) {
|
|
840
|
-
return hasOwn$
|
|
653
|
+
return hasOwn$6(it, STATE) ? it[STATE] : {};
|
|
841
654
|
};
|
|
842
655
|
has = function (it) {
|
|
843
|
-
return hasOwn$
|
|
656
|
+
return hasOwn$6(it, STATE);
|
|
844
657
|
};
|
|
845
658
|
}
|
|
846
659
|
|
|
@@ -852,87 +665,11 @@ var internalState = {
|
|
|
852
665
|
getterFor: getterFor
|
|
853
666
|
};
|
|
854
667
|
|
|
855
|
-
var objectGetOwnPropertyDescriptor = {};
|
|
856
|
-
|
|
857
|
-
var objectPropertyIsEnumerable = {};
|
|
858
|
-
|
|
859
|
-
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
860
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
861
|
-
var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
|
|
862
|
-
|
|
863
|
-
// Nashorn ~ JDK8 bug
|
|
864
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
865
|
-
|
|
866
|
-
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
867
|
-
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
868
|
-
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
869
|
-
var descriptor = getOwnPropertyDescriptor$2(this, V);
|
|
870
|
-
return !!descriptor && descriptor.enumerable;
|
|
871
|
-
} : $propertyIsEnumerable;
|
|
872
|
-
|
|
873
|
-
var DESCRIPTORS$4 = descriptors;
|
|
874
|
-
var call$4 = functionCall;
|
|
875
|
-
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
876
|
-
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
877
|
-
var toIndexedObject$1 = toIndexedObject$5;
|
|
878
|
-
var toPropertyKey = toPropertyKey$2;
|
|
879
|
-
var hasOwn$6 = hasOwnProperty_1;
|
|
880
|
-
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
881
|
-
|
|
882
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
883
|
-
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
884
|
-
|
|
885
|
-
// `Object.getOwnPropertyDescriptor` method
|
|
886
|
-
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
887
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$4 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
888
|
-
O = toIndexedObject$1(O);
|
|
889
|
-
P = toPropertyKey(P);
|
|
890
|
-
if (IE8_DOM_DEFINE) try {
|
|
891
|
-
return $getOwnPropertyDescriptor(O, P);
|
|
892
|
-
} catch (error) { /* empty */ }
|
|
893
|
-
if (hasOwn$6(O, P)) return createPropertyDescriptor$1(!call$4(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
894
|
-
};
|
|
895
|
-
|
|
896
|
-
var makeBuiltIn$2 = {exports: {}};
|
|
897
|
-
|
|
898
|
-
var DESCRIPTORS$3 = descriptors;
|
|
899
|
-
var hasOwn$5 = hasOwnProperty_1;
|
|
900
|
-
|
|
901
|
-
var FunctionPrototype = Function.prototype;
|
|
902
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
903
|
-
var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
|
|
904
|
-
|
|
905
|
-
var EXISTS = hasOwn$5(FunctionPrototype, 'name');
|
|
906
|
-
// additional protection from minified / mangled / dropped function names
|
|
907
|
-
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
908
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
909
|
-
|
|
910
|
-
var functionName = {
|
|
911
|
-
EXISTS: EXISTS,
|
|
912
|
-
PROPER: PROPER,
|
|
913
|
-
CONFIGURABLE: CONFIGURABLE
|
|
914
|
-
};
|
|
915
|
-
|
|
916
668
|
var uncurryThis$9 = functionUncurryThis;
|
|
917
|
-
var isCallable$7 = isCallable$e;
|
|
918
|
-
var store = sharedStore.exports;
|
|
919
|
-
|
|
920
|
-
var functionToString = uncurryThis$9(Function.toString);
|
|
921
|
-
|
|
922
|
-
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
923
|
-
if (!isCallable$7(store.inspectSource)) {
|
|
924
|
-
store.inspectSource = function (it) {
|
|
925
|
-
return functionToString(it);
|
|
926
|
-
};
|
|
927
|
-
}
|
|
928
|
-
|
|
929
|
-
var inspectSource$1 = store.inspectSource;
|
|
930
|
-
|
|
931
|
-
var uncurryThis$8 = functionUncurryThis;
|
|
932
669
|
var fails$a = fails$h;
|
|
933
670
|
var isCallable$6 = isCallable$e;
|
|
934
|
-
var hasOwn$
|
|
935
|
-
var DESCRIPTORS$
|
|
671
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
672
|
+
var DESCRIPTORS$3 = descriptors;
|
|
936
673
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
937
674
|
var inspectSource = inspectSource$1;
|
|
938
675
|
var InternalStateModule$1 = internalState;
|
|
@@ -941,13 +678,13 @@ var enforceInternalState = InternalStateModule$1.enforce;
|
|
|
941
678
|
var getInternalState$2 = InternalStateModule$1.get;
|
|
942
679
|
var $String$2 = String;
|
|
943
680
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
944
|
-
var defineProperty$
|
|
945
|
-
var stringSlice$2 = uncurryThis$
|
|
946
|
-
var replace$1 = uncurryThis$
|
|
947
|
-
var join = uncurryThis$
|
|
681
|
+
var defineProperty$4 = Object.defineProperty;
|
|
682
|
+
var stringSlice$2 = uncurryThis$9(''.slice);
|
|
683
|
+
var replace$1 = uncurryThis$9(''.replace);
|
|
684
|
+
var join = uncurryThis$9([].join);
|
|
948
685
|
|
|
949
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
950
|
-
return defineProperty$
|
|
686
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$a(function () {
|
|
687
|
+
return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
951
688
|
});
|
|
952
689
|
|
|
953
690
|
var TEMPLATE = String(String).split('String');
|
|
@@ -958,71 +695,190 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
|
958
695
|
}
|
|
959
696
|
if (options && options.getter) name = 'get ' + name;
|
|
960
697
|
if (options && options.setter) name = 'set ' + name;
|
|
961
|
-
if (!hasOwn$
|
|
962
|
-
if (DESCRIPTORS$
|
|
698
|
+
if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
699
|
+
if (DESCRIPTORS$3) defineProperty$4(value, 'name', { value: name, configurable: true });
|
|
963
700
|
else value.name = name;
|
|
964
701
|
}
|
|
965
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
|
966
|
-
defineProperty$
|
|
702
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
|
|
703
|
+
defineProperty$4(value, 'length', { value: options.arity });
|
|
967
704
|
}
|
|
968
705
|
try {
|
|
969
|
-
if (options && hasOwn$
|
|
970
|
-
if (DESCRIPTORS$
|
|
706
|
+
if (options && hasOwn$5(options, 'constructor') && options.constructor) {
|
|
707
|
+
if (DESCRIPTORS$3) defineProperty$4(value, 'prototype', { writable: false });
|
|
971
708
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
972
709
|
} else if (value.prototype) value.prototype = undefined;
|
|
973
710
|
} catch (error) { /* empty */ }
|
|
974
711
|
var state = enforceInternalState(value);
|
|
975
|
-
if (!hasOwn$
|
|
712
|
+
if (!hasOwn$5(state, 'source')) {
|
|
976
713
|
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
977
714
|
} return value;
|
|
978
715
|
};
|
|
979
716
|
|
|
980
|
-
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
981
|
-
// eslint-disable-next-line no-extend-native -- required
|
|
982
|
-
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
983
|
-
return isCallable$6(this) && getInternalState$2(this).source || inspectSource(this);
|
|
984
|
-
}, 'toString');
|
|
717
|
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
718
|
+
// eslint-disable-next-line no-extend-native -- required
|
|
719
|
+
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
720
|
+
return isCallable$6(this) && getInternalState$2(this).source || inspectSource(this);
|
|
721
|
+
}, 'toString');
|
|
722
|
+
|
|
723
|
+
var isCallable$5 = isCallable$e;
|
|
724
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
725
|
+
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
726
|
+
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
727
|
+
|
|
728
|
+
var defineBuiltIn$4 = function (O, key, value, options) {
|
|
729
|
+
if (!options) options = {};
|
|
730
|
+
var simple = options.enumerable;
|
|
731
|
+
var name = options.name !== undefined ? options.name : key;
|
|
732
|
+
if (isCallable$5(value)) makeBuiltIn(value, name, options);
|
|
733
|
+
if (options.global) {
|
|
734
|
+
if (simple) O[key] = value;
|
|
735
|
+
else defineGlobalProperty$1(key, value);
|
|
736
|
+
} else {
|
|
737
|
+
try {
|
|
738
|
+
if (!options.unsafe) delete O[key];
|
|
739
|
+
else if (O[key]) simple = true;
|
|
740
|
+
} catch (error) { /* empty */ }
|
|
741
|
+
if (simple) O[key] = value;
|
|
742
|
+
else definePropertyModule$2.f(O, key, {
|
|
743
|
+
value: value,
|
|
744
|
+
enumerable: false,
|
|
745
|
+
configurable: !options.nonConfigurable,
|
|
746
|
+
writable: !options.nonWritable
|
|
747
|
+
});
|
|
748
|
+
} return O;
|
|
749
|
+
};
|
|
750
|
+
|
|
751
|
+
var objectGetOwnPropertyNames = {};
|
|
752
|
+
|
|
753
|
+
var ceil = Math.ceil;
|
|
754
|
+
var floor$1 = Math.floor;
|
|
755
|
+
|
|
756
|
+
// `Math.trunc` method
|
|
757
|
+
// https://tc39.es/ecma262/#sec-math.trunc
|
|
758
|
+
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
759
|
+
var mathTrunc = Math.trunc || function trunc(x) {
|
|
760
|
+
var n = +x;
|
|
761
|
+
return (n > 0 ? floor$1 : ceil)(n);
|
|
762
|
+
};
|
|
763
|
+
|
|
764
|
+
var trunc = mathTrunc;
|
|
765
|
+
|
|
766
|
+
// `ToIntegerOrInfinity` abstract operation
|
|
767
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
768
|
+
var toIntegerOrInfinity$2 = function (argument) {
|
|
769
|
+
var number = +argument;
|
|
770
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
771
|
+
return number !== number || number === 0 ? 0 : trunc(number);
|
|
772
|
+
};
|
|
773
|
+
|
|
774
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
775
|
+
|
|
776
|
+
var max = Math.max;
|
|
777
|
+
var min$2 = Math.min;
|
|
778
|
+
|
|
779
|
+
// Helper for a popular repeating case of the spec:
|
|
780
|
+
// Let integer be ? ToInteger(index).
|
|
781
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
782
|
+
var toAbsoluteIndex$1 = function (index, length) {
|
|
783
|
+
var integer = toIntegerOrInfinity$1(index);
|
|
784
|
+
return integer < 0 ? max(integer + length, 0) : min$2(integer, length);
|
|
785
|
+
};
|
|
786
|
+
|
|
787
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$2;
|
|
788
|
+
|
|
789
|
+
var min$1 = Math.min;
|
|
790
|
+
|
|
791
|
+
// `ToLength` abstract operation
|
|
792
|
+
// https://tc39.es/ecma262/#sec-tolength
|
|
793
|
+
var toLength$2 = function (argument) {
|
|
794
|
+
var len = toIntegerOrInfinity(argument);
|
|
795
|
+
return len > 0 ? min$1(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
796
|
+
};
|
|
797
|
+
|
|
798
|
+
var toLength$1 = toLength$2;
|
|
799
|
+
|
|
800
|
+
// `LengthOfArrayLike` abstract operation
|
|
801
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
802
|
+
var lengthOfArrayLike$2 = function (obj) {
|
|
803
|
+
return toLength$1(obj.length);
|
|
804
|
+
};
|
|
805
|
+
|
|
806
|
+
var toIndexedObject$3 = toIndexedObject$5;
|
|
807
|
+
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
808
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$2;
|
|
809
|
+
|
|
810
|
+
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
811
|
+
var createMethod = function (IS_INCLUDES) {
|
|
812
|
+
return function ($this, el, fromIndex) {
|
|
813
|
+
var O = toIndexedObject$3($this);
|
|
814
|
+
var length = lengthOfArrayLike$1(O);
|
|
815
|
+
if (length === 0) return !IS_INCLUDES && -1;
|
|
816
|
+
var index = toAbsoluteIndex(fromIndex, length);
|
|
817
|
+
var value;
|
|
818
|
+
// Array#includes uses SameValueZero equality algorithm
|
|
819
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
820
|
+
if (IS_INCLUDES && el !== el) while (length > index) {
|
|
821
|
+
value = O[index++];
|
|
822
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
823
|
+
if (value !== value) return true;
|
|
824
|
+
// Array#indexOf ignores holes, Array#includes - not
|
|
825
|
+
} else for (;length > index; index++) {
|
|
826
|
+
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
827
|
+
} return !IS_INCLUDES && -1;
|
|
828
|
+
};
|
|
829
|
+
};
|
|
830
|
+
|
|
831
|
+
var arrayIncludes = {
|
|
832
|
+
// `Array.prototype.includes` method
|
|
833
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
834
|
+
includes: createMethod(true),
|
|
835
|
+
// `Array.prototype.indexOf` method
|
|
836
|
+
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
837
|
+
indexOf: createMethod(false)
|
|
838
|
+
};
|
|
985
839
|
|
|
986
|
-
var
|
|
987
|
-
var
|
|
988
|
-
var
|
|
989
|
-
var
|
|
840
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
841
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
842
|
+
var toIndexedObject$2 = toIndexedObject$5;
|
|
843
|
+
var indexOf$1 = arrayIncludes.indexOf;
|
|
844
|
+
var hiddenKeys$2 = hiddenKeys$4;
|
|
990
845
|
|
|
991
|
-
var
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
var
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
if (simple) O[key] = value;
|
|
1005
|
-
else definePropertyModule$1.f(O, key, {
|
|
1006
|
-
value: value,
|
|
1007
|
-
enumerable: false,
|
|
1008
|
-
configurable: !options.nonConfigurable,
|
|
1009
|
-
writable: !options.nonWritable
|
|
1010
|
-
});
|
|
1011
|
-
} return O;
|
|
846
|
+
var push$1 = uncurryThis$8([].push);
|
|
847
|
+
|
|
848
|
+
var objectKeysInternal = function (object, names) {
|
|
849
|
+
var O = toIndexedObject$2(object);
|
|
850
|
+
var i = 0;
|
|
851
|
+
var result = [];
|
|
852
|
+
var key;
|
|
853
|
+
for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push$1(result, key);
|
|
854
|
+
// Don't enum bug & hidden keys
|
|
855
|
+
while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
|
|
856
|
+
~indexOf$1(result, key) || push$1(result, key);
|
|
857
|
+
}
|
|
858
|
+
return result;
|
|
1012
859
|
};
|
|
1013
860
|
|
|
1014
|
-
|
|
861
|
+
// IE8- don't enum bug keys
|
|
862
|
+
var enumBugKeys$3 = [
|
|
863
|
+
'constructor',
|
|
864
|
+
'hasOwnProperty',
|
|
865
|
+
'isPrototypeOf',
|
|
866
|
+
'propertyIsEnumerable',
|
|
867
|
+
'toLocaleString',
|
|
868
|
+
'toString',
|
|
869
|
+
'valueOf'
|
|
870
|
+
];
|
|
1015
871
|
|
|
1016
|
-
var internalObjectKeys = objectKeysInternal;
|
|
1017
|
-
var enumBugKeys = enumBugKeys$3;
|
|
872
|
+
var internalObjectKeys$1 = objectKeysInternal;
|
|
873
|
+
var enumBugKeys$2 = enumBugKeys$3;
|
|
1018
874
|
|
|
1019
|
-
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
|
875
|
+
var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
|
|
1020
876
|
|
|
1021
877
|
// `Object.getOwnPropertyNames` method
|
|
1022
878
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
1023
879
|
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
1024
880
|
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
1025
|
-
return internalObjectKeys(O, hiddenKeys);
|
|
881
|
+
return internalObjectKeys$1(O, hiddenKeys$1);
|
|
1026
882
|
};
|
|
1027
883
|
|
|
1028
884
|
var objectGetOwnPropertySymbols = {};
|
|
@@ -1030,17 +886,17 @@ var objectGetOwnPropertySymbols = {};
|
|
|
1030
886
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
1031
887
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
1032
888
|
|
|
1033
|
-
var getBuiltIn = getBuiltIn$3;
|
|
889
|
+
var getBuiltIn$1 = getBuiltIn$3;
|
|
1034
890
|
var uncurryThis$7 = functionUncurryThis;
|
|
1035
891
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
1036
892
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
1037
|
-
var anObject$
|
|
893
|
+
var anObject$4 = anObject$6;
|
|
1038
894
|
|
|
1039
895
|
var concat$1 = uncurryThis$7([].concat);
|
|
1040
896
|
|
|
1041
897
|
// all object keys, includes non-enumerable and symbols
|
|
1042
|
-
var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1043
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
898
|
+
var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
899
|
+
var keys = getOwnPropertyNamesModule.f(anObject$4(it));
|
|
1044
900
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
1045
901
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
1046
902
|
};
|
|
@@ -1048,11 +904,11 @@ var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
|
1048
904
|
var hasOwn$3 = hasOwnProperty_1;
|
|
1049
905
|
var ownKeys = ownKeys$1;
|
|
1050
906
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
1051
|
-
var definePropertyModule = objectDefineProperty;
|
|
907
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
1052
908
|
|
|
1053
909
|
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
1054
910
|
var keys = ownKeys(source);
|
|
1055
|
-
var defineProperty = definePropertyModule.f;
|
|
911
|
+
var defineProperty = definePropertyModule$1.f;
|
|
1056
912
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
1057
913
|
for (var i = 0; i < keys.length; i++) {
|
|
1058
914
|
var key = keys[i];
|
|
@@ -1140,9 +996,220 @@ var _export = function (options, source) {
|
|
|
1140
996
|
}
|
|
1141
997
|
};
|
|
1142
998
|
|
|
1143
|
-
var
|
|
999
|
+
var internalObjectKeys = objectKeysInternal;
|
|
1000
|
+
var enumBugKeys$1 = enumBugKeys$3;
|
|
1001
|
+
|
|
1002
|
+
// `Object.keys` method
|
|
1003
|
+
// https://tc39.es/ecma262/#sec-object.keys
|
|
1004
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
|
1005
|
+
var objectKeys$2 = Object.keys || function keys(O) {
|
|
1006
|
+
return internalObjectKeys(O, enumBugKeys$1);
|
|
1007
|
+
};
|
|
1008
|
+
|
|
1009
|
+
var DESCRIPTORS$2 = descriptors;
|
|
1010
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
1011
|
+
var call$3 = functionCall;
|
|
1012
|
+
var fails$8 = fails$h;
|
|
1013
|
+
var objectKeys$1 = objectKeys$2;
|
|
1014
|
+
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1015
|
+
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1016
|
+
var toObject$2 = toObject$4;
|
|
1017
|
+
var IndexedObject = indexedObject;
|
|
1018
|
+
|
|
1019
|
+
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1020
|
+
var $assign = Object.assign;
|
|
1021
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1022
|
+
var defineProperty$3 = Object.defineProperty;
|
|
1023
|
+
var concat = uncurryThis$6([].concat);
|
|
1024
|
+
|
|
1025
|
+
// `Object.assign` method
|
|
1026
|
+
// https://tc39.es/ecma262/#sec-object.assign
|
|
1027
|
+
var objectAssign = !$assign || fails$8(function () {
|
|
1028
|
+
// should have correct order of operations (Edge bug)
|
|
1029
|
+
if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
|
|
1030
|
+
enumerable: true,
|
|
1031
|
+
get: function () {
|
|
1032
|
+
defineProperty$3(this, 'b', {
|
|
1033
|
+
value: 3,
|
|
1034
|
+
enumerable: false
|
|
1035
|
+
});
|
|
1036
|
+
}
|
|
1037
|
+
}), { b: 2 })).b !== 1) return true;
|
|
1038
|
+
// should work with symbols and should have deterministic property order (V8 bug)
|
|
1039
|
+
var A = {};
|
|
1040
|
+
var B = {};
|
|
1041
|
+
// eslint-disable-next-line es/no-symbol -- safe
|
|
1042
|
+
var symbol = Symbol('assign detection');
|
|
1043
|
+
var alphabet = 'abcdefghijklmnopqrst';
|
|
1044
|
+
A[symbol] = 7;
|
|
1045
|
+
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1046
|
+
return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
|
|
1047
|
+
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1048
|
+
var T = toObject$2(target);
|
|
1049
|
+
var argumentsLength = arguments.length;
|
|
1050
|
+
var index = 1;
|
|
1051
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
1052
|
+
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
1053
|
+
while (argumentsLength > index) {
|
|
1054
|
+
var S = IndexedObject(arguments[index++]);
|
|
1055
|
+
var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
|
|
1056
|
+
var length = keys.length;
|
|
1057
|
+
var j = 0;
|
|
1058
|
+
var key;
|
|
1059
|
+
while (length > j) {
|
|
1060
|
+
key = keys[j++];
|
|
1061
|
+
if (!DESCRIPTORS$2 || call$3(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1062
|
+
}
|
|
1063
|
+
} return T;
|
|
1064
|
+
} : $assign;
|
|
1065
|
+
|
|
1066
|
+
var $$4 = _export;
|
|
1067
|
+
var assign = objectAssign;
|
|
1068
|
+
|
|
1069
|
+
// `Object.assign` method
|
|
1070
|
+
// https://tc39.es/ecma262/#sec-object.assign
|
|
1071
|
+
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1072
|
+
$$4({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1073
|
+
assign: assign
|
|
1074
|
+
});
|
|
1075
|
+
|
|
1076
|
+
var objectDefineProperties = {};
|
|
1077
|
+
|
|
1078
|
+
var DESCRIPTORS$1 = descriptors;
|
|
1079
|
+
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1080
|
+
var definePropertyModule = objectDefineProperty;
|
|
1081
|
+
var anObject$3 = anObject$6;
|
|
1082
|
+
var toIndexedObject$1 = toIndexedObject$5;
|
|
1083
|
+
var objectKeys = objectKeys$2;
|
|
1084
|
+
|
|
1085
|
+
// `Object.defineProperties` method
|
|
1086
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1087
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1088
|
+
objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1089
|
+
anObject$3(O);
|
|
1090
|
+
var props = toIndexedObject$1(Properties);
|
|
1091
|
+
var keys = objectKeys(Properties);
|
|
1092
|
+
var length = keys.length;
|
|
1093
|
+
var index = 0;
|
|
1094
|
+
var key;
|
|
1095
|
+
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
|
1096
|
+
return O;
|
|
1097
|
+
};
|
|
1098
|
+
|
|
1099
|
+
var getBuiltIn = getBuiltIn$3;
|
|
1100
|
+
|
|
1101
|
+
var html$1 = getBuiltIn('document', 'documentElement');
|
|
1102
|
+
|
|
1103
|
+
/* global ActiveXObject -- old IE, WSH */
|
|
1104
|
+
var anObject$2 = anObject$6;
|
|
1105
|
+
var definePropertiesModule = objectDefineProperties;
|
|
1106
|
+
var enumBugKeys = enumBugKeys$3;
|
|
1107
|
+
var hiddenKeys = hiddenKeys$4;
|
|
1108
|
+
var html = html$1;
|
|
1109
|
+
var documentCreateElement$1 = documentCreateElement$2;
|
|
1110
|
+
var sharedKey$1 = sharedKey$3;
|
|
1111
|
+
|
|
1112
|
+
var GT = '>';
|
|
1113
|
+
var LT = '<';
|
|
1114
|
+
var PROTOTYPE = 'prototype';
|
|
1115
|
+
var SCRIPT = 'script';
|
|
1116
|
+
var IE_PROTO$1 = sharedKey$1('IE_PROTO');
|
|
1117
|
+
|
|
1118
|
+
var EmptyConstructor = function () { /* empty */ };
|
|
1119
|
+
|
|
1120
|
+
var scriptTag = function (content) {
|
|
1121
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
1122
|
+
};
|
|
1123
|
+
|
|
1124
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
1125
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
1126
|
+
activeXDocument.write(scriptTag(''));
|
|
1127
|
+
activeXDocument.close();
|
|
1128
|
+
var temp = activeXDocument.parentWindow.Object;
|
|
1129
|
+
activeXDocument = null; // avoid memory leak
|
|
1130
|
+
return temp;
|
|
1131
|
+
};
|
|
1132
|
+
|
|
1133
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
1134
|
+
var NullProtoObjectViaIFrame = function () {
|
|
1135
|
+
// Thrash, waste and sodomy: IE GC bug
|
|
1136
|
+
var iframe = documentCreateElement$1('iframe');
|
|
1137
|
+
var JS = 'java' + SCRIPT + ':';
|
|
1138
|
+
var iframeDocument;
|
|
1139
|
+
iframe.style.display = 'none';
|
|
1140
|
+
html.appendChild(iframe);
|
|
1141
|
+
// https://github.com/zloirock/core-js/issues/475
|
|
1142
|
+
iframe.src = String(JS);
|
|
1143
|
+
iframeDocument = iframe.contentWindow.document;
|
|
1144
|
+
iframeDocument.open();
|
|
1145
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
|
1146
|
+
iframeDocument.close();
|
|
1147
|
+
return iframeDocument.F;
|
|
1148
|
+
};
|
|
1149
|
+
|
|
1150
|
+
// Check for document.domain and active x support
|
|
1151
|
+
// No need to use active x approach when document.domain is not set
|
|
1152
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
|
1153
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
1154
|
+
// avoid IE GC bug
|
|
1155
|
+
var activeXDocument;
|
|
1156
|
+
var NullProtoObject = function () {
|
|
1157
|
+
try {
|
|
1158
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
|
1159
|
+
} catch (error) { /* ignore */ }
|
|
1160
|
+
NullProtoObject = typeof document != 'undefined'
|
|
1161
|
+
? document.domain && activeXDocument
|
|
1162
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
1163
|
+
: NullProtoObjectViaIFrame()
|
|
1164
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
1165
|
+
var length = enumBugKeys.length;
|
|
1166
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
1167
|
+
return NullProtoObject();
|
|
1168
|
+
};
|
|
1169
|
+
|
|
1170
|
+
hiddenKeys[IE_PROTO$1] = true;
|
|
1171
|
+
|
|
1172
|
+
// `Object.create` method
|
|
1173
|
+
// https://tc39.es/ecma262/#sec-object.create
|
|
1174
|
+
// eslint-disable-next-line es/no-object-create -- safe
|
|
1175
|
+
var objectCreate = Object.create || function create(O, Properties) {
|
|
1176
|
+
var result;
|
|
1177
|
+
if (O !== null) {
|
|
1178
|
+
EmptyConstructor[PROTOTYPE] = anObject$2(O);
|
|
1179
|
+
result = new EmptyConstructor();
|
|
1180
|
+
EmptyConstructor[PROTOTYPE] = null;
|
|
1181
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
1182
|
+
result[IE_PROTO$1] = O;
|
|
1183
|
+
} else result = NullProtoObject();
|
|
1184
|
+
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1185
|
+
};
|
|
1186
|
+
|
|
1187
|
+
var wellKnownSymbol$8 = wellKnownSymbol$a;
|
|
1188
|
+
var create$2 = objectCreate;
|
|
1189
|
+
var defineProperty$2 = objectDefineProperty.f;
|
|
1190
|
+
|
|
1191
|
+
var UNSCOPABLES = wellKnownSymbol$8('unscopables');
|
|
1192
|
+
var ArrayPrototype = Array.prototype;
|
|
1193
|
+
|
|
1194
|
+
// Array.prototype[@@unscopables]
|
|
1195
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1196
|
+
if (ArrayPrototype[UNSCOPABLES] === undefined) {
|
|
1197
|
+
defineProperty$2(ArrayPrototype, UNSCOPABLES, {
|
|
1198
|
+
configurable: true,
|
|
1199
|
+
value: create$2(null)
|
|
1200
|
+
});
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
// add a key to Array.prototype[@@unscopables]
|
|
1204
|
+
var addToUnscopables$1 = function (key) {
|
|
1205
|
+
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
1206
|
+
};
|
|
1207
|
+
|
|
1208
|
+
var iterators = {};
|
|
1209
|
+
|
|
1210
|
+
var fails$7 = fails$h;
|
|
1144
1211
|
|
|
1145
|
-
var correctPrototypeGetter = !fails$
|
|
1212
|
+
var correctPrototypeGetter = !fails$7(function () {
|
|
1146
1213
|
function F() { /* empty */ }
|
|
1147
1214
|
F.prototype.constructor = null;
|
|
1148
1215
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
@@ -1151,7 +1218,7 @@ var correctPrototypeGetter = !fails$8(function () {
|
|
|
1151
1218
|
|
|
1152
1219
|
var hasOwn$2 = hasOwnProperty_1;
|
|
1153
1220
|
var isCallable$3 = isCallable$e;
|
|
1154
|
-
var toObject$
|
|
1221
|
+
var toObject$1 = toObject$4;
|
|
1155
1222
|
var sharedKey = sharedKey$3;
|
|
1156
1223
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1157
1224
|
|
|
@@ -1163,7 +1230,7 @@ var ObjectPrototype = $Object$1.prototype;
|
|
|
1163
1230
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1164
1231
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1165
1232
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1166
|
-
var object = toObject$
|
|
1233
|
+
var object = toObject$1(O);
|
|
1167
1234
|
if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
|
|
1168
1235
|
var constructor = object.constructor;
|
|
1169
1236
|
if (isCallable$3(constructor) && object instanceof constructor) {
|
|
@@ -1171,7 +1238,7 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf :
|
|
|
1171
1238
|
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1172
1239
|
};
|
|
1173
1240
|
|
|
1174
|
-
var fails$
|
|
1241
|
+
var fails$6 = fails$h;
|
|
1175
1242
|
var isCallable$2 = isCallable$e;
|
|
1176
1243
|
var isObject$3 = isObject$9;
|
|
1177
1244
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
@@ -1196,7 +1263,7 @@ if ([].keys) {
|
|
|
1196
1263
|
}
|
|
1197
1264
|
}
|
|
1198
1265
|
|
|
1199
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$3(IteratorPrototype$2) || fails$
|
|
1266
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$3(IteratorPrototype$2) || fails$6(function () {
|
|
1200
1267
|
var test = {};
|
|
1201
1268
|
// FF44- legacy iterators case
|
|
1202
1269
|
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
|
@@ -1217,7 +1284,7 @@ var iteratorsCore = {
|
|
|
1217
1284
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1218
1285
|
};
|
|
1219
1286
|
|
|
1220
|
-
var defineProperty$
|
|
1287
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
1221
1288
|
var hasOwn$1 = hasOwnProperty_1;
|
|
1222
1289
|
var wellKnownSymbol$6 = wellKnownSymbol$a;
|
|
1223
1290
|
|
|
@@ -1226,7 +1293,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol$6('toStringTag');
|
|
|
1226
1293
|
var setToStringTag$3 = function (target, TAG, STATIC) {
|
|
1227
1294
|
if (target && !STATIC) target = target.prototype;
|
|
1228
1295
|
if (target && !hasOwn$1(target, TO_STRING_TAG$2)) {
|
|
1229
|
-
defineProperty$
|
|
1296
|
+
defineProperty$1(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
|
|
1230
1297
|
}
|
|
1231
1298
|
};
|
|
1232
1299
|
|
|
@@ -1246,13 +1313,13 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
|
|
|
1246
1313
|
return IteratorConstructor;
|
|
1247
1314
|
};
|
|
1248
1315
|
|
|
1249
|
-
var uncurryThis$
|
|
1316
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
1250
1317
|
var aCallable$1 = aCallable$3;
|
|
1251
1318
|
|
|
1252
1319
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1253
1320
|
try {
|
|
1254
1321
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1255
|
-
return uncurryThis$
|
|
1322
|
+
return uncurryThis$5(aCallable$1(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1256
1323
|
} catch (error) { /* empty */ }
|
|
1257
1324
|
};
|
|
1258
1325
|
|
|
@@ -1301,8 +1368,8 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1301
1368
|
};
|
|
1302
1369
|
}() : undefined);
|
|
1303
1370
|
|
|
1304
|
-
var $$
|
|
1305
|
-
var call$
|
|
1371
|
+
var $$3 = _export;
|
|
1372
|
+
var call$2 = functionCall;
|
|
1306
1373
|
var FunctionName = functionName;
|
|
1307
1374
|
var isCallable$1 = isCallable$e;
|
|
1308
1375
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
@@ -1374,7 +1441,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1374
1441
|
createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
|
|
1375
1442
|
} else {
|
|
1376
1443
|
INCORRECT_VALUES_NAME = true;
|
|
1377
|
-
defaultIterator = function values() { return call$
|
|
1444
|
+
defaultIterator = function values() { return call$2(nativeIterator, this); };
|
|
1378
1445
|
}
|
|
1379
1446
|
}
|
|
1380
1447
|
|
|
@@ -1389,7 +1456,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1389
1456
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1390
1457
|
defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
|
|
1391
1458
|
}
|
|
1392
|
-
} else $$
|
|
1459
|
+
} else $$3({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1393
1460
|
}
|
|
1394
1461
|
|
|
1395
1462
|
// define iterator
|
|
@@ -1411,10 +1478,10 @@ var toIndexedObject = toIndexedObject$5;
|
|
|
1411
1478
|
var addToUnscopables = addToUnscopables$1;
|
|
1412
1479
|
var Iterators = iterators;
|
|
1413
1480
|
var InternalStateModule = internalState;
|
|
1414
|
-
var defineProperty
|
|
1481
|
+
var defineProperty = objectDefineProperty.f;
|
|
1415
1482
|
var defineIterator = iteratorDefine;
|
|
1416
1483
|
var createIterResultObject = createIterResultObject$1;
|
|
1417
|
-
var DESCRIPTORS
|
|
1484
|
+
var DESCRIPTORS = descriptors;
|
|
1418
1485
|
|
|
1419
1486
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1420
1487
|
var setInternalState = InternalStateModule.set;
|
|
@@ -1464,158 +1531,10 @@ addToUnscopables('values');
|
|
|
1464
1531
|
addToUnscopables('entries');
|
|
1465
1532
|
|
|
1466
1533
|
// V8 ~ Chrome 45- bug
|
|
1467
|
-
if (DESCRIPTORS
|
|
1468
|
-
defineProperty
|
|
1534
|
+
if (DESCRIPTORS && values.name !== 'values') try {
|
|
1535
|
+
defineProperty(values, 'name', { value: 'values' });
|
|
1469
1536
|
} catch (error) { /* empty */ }
|
|
1470
1537
|
|
|
1471
|
-
var DESCRIPTORS = descriptors;
|
|
1472
|
-
var uncurryThis$5 = functionUncurryThis;
|
|
1473
|
-
var call$2 = functionCall;
|
|
1474
|
-
var fails$6 = fails$h;
|
|
1475
|
-
var objectKeys = objectKeys$2;
|
|
1476
|
-
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1477
|
-
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1478
|
-
var toObject$1 = toObject$4;
|
|
1479
|
-
var IndexedObject = indexedObject;
|
|
1480
|
-
|
|
1481
|
-
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1482
|
-
var $assign = Object.assign;
|
|
1483
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1484
|
-
var defineProperty = Object.defineProperty;
|
|
1485
|
-
var concat = uncurryThis$5([].concat);
|
|
1486
|
-
|
|
1487
|
-
// `Object.assign` method
|
|
1488
|
-
// https://tc39.es/ecma262/#sec-object.assign
|
|
1489
|
-
var objectAssign = !$assign || fails$6(function () {
|
|
1490
|
-
// should have correct order of operations (Edge bug)
|
|
1491
|
-
if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
|
|
1492
|
-
enumerable: true,
|
|
1493
|
-
get: function () {
|
|
1494
|
-
defineProperty(this, 'b', {
|
|
1495
|
-
value: 3,
|
|
1496
|
-
enumerable: false
|
|
1497
|
-
});
|
|
1498
|
-
}
|
|
1499
|
-
}), { b: 2 })).b !== 1) return true;
|
|
1500
|
-
// should work with symbols and should have deterministic property order (V8 bug)
|
|
1501
|
-
var A = {};
|
|
1502
|
-
var B = {};
|
|
1503
|
-
// eslint-disable-next-line es/no-symbol -- safe
|
|
1504
|
-
var symbol = Symbol('assign detection');
|
|
1505
|
-
var alphabet = 'abcdefghijklmnopqrst';
|
|
1506
|
-
A[symbol] = 7;
|
|
1507
|
-
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1508
|
-
return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
|
|
1509
|
-
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1510
|
-
var T = toObject$1(target);
|
|
1511
|
-
var argumentsLength = arguments.length;
|
|
1512
|
-
var index = 1;
|
|
1513
|
-
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
1514
|
-
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
1515
|
-
while (argumentsLength > index) {
|
|
1516
|
-
var S = IndexedObject(arguments[index++]);
|
|
1517
|
-
var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
|
|
1518
|
-
var length = keys.length;
|
|
1519
|
-
var j = 0;
|
|
1520
|
-
var key;
|
|
1521
|
-
while (length > j) {
|
|
1522
|
-
key = keys[j++];
|
|
1523
|
-
if (!DESCRIPTORS || call$2(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1524
|
-
}
|
|
1525
|
-
} return T;
|
|
1526
|
-
} : $assign;
|
|
1527
|
-
|
|
1528
|
-
var $$3 = _export;
|
|
1529
|
-
var assign = objectAssign;
|
|
1530
|
-
|
|
1531
|
-
// `Object.assign` method
|
|
1532
|
-
// https://tc39.es/ecma262/#sec-object.assign
|
|
1533
|
-
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1534
|
-
$$3({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1535
|
-
assign: assign
|
|
1536
|
-
});
|
|
1537
|
-
|
|
1538
|
-
// iterable DOM collections
|
|
1539
|
-
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
|
1540
|
-
var domIterables = {
|
|
1541
|
-
CSSRuleList: 0,
|
|
1542
|
-
CSSStyleDeclaration: 0,
|
|
1543
|
-
CSSValueList: 0,
|
|
1544
|
-
ClientRectList: 0,
|
|
1545
|
-
DOMRectList: 0,
|
|
1546
|
-
DOMStringList: 0,
|
|
1547
|
-
DOMTokenList: 1,
|
|
1548
|
-
DataTransferItemList: 0,
|
|
1549
|
-
FileList: 0,
|
|
1550
|
-
HTMLAllCollection: 0,
|
|
1551
|
-
HTMLCollection: 0,
|
|
1552
|
-
HTMLFormElement: 0,
|
|
1553
|
-
HTMLSelectElement: 0,
|
|
1554
|
-
MediaList: 0,
|
|
1555
|
-
MimeTypeArray: 0,
|
|
1556
|
-
NamedNodeMap: 0,
|
|
1557
|
-
NodeList: 1,
|
|
1558
|
-
PaintRequestList: 0,
|
|
1559
|
-
Plugin: 0,
|
|
1560
|
-
PluginArray: 0,
|
|
1561
|
-
SVGLengthList: 0,
|
|
1562
|
-
SVGNumberList: 0,
|
|
1563
|
-
SVGPathSegList: 0,
|
|
1564
|
-
SVGPointList: 0,
|
|
1565
|
-
SVGStringList: 0,
|
|
1566
|
-
SVGTransformList: 0,
|
|
1567
|
-
SourceBufferList: 0,
|
|
1568
|
-
StyleSheetList: 0,
|
|
1569
|
-
TextTrackCueList: 0,
|
|
1570
|
-
TextTrackList: 0,
|
|
1571
|
-
TouchList: 0
|
|
1572
|
-
};
|
|
1573
|
-
|
|
1574
|
-
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
|
1575
|
-
var documentCreateElement = documentCreateElement$2;
|
|
1576
|
-
|
|
1577
|
-
var classList = documentCreateElement('span').classList;
|
|
1578
|
-
var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
|
|
1579
|
-
|
|
1580
|
-
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1581
|
-
|
|
1582
|
-
var global$4 = global$e;
|
|
1583
|
-
var DOMIterables = domIterables;
|
|
1584
|
-
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1585
|
-
var ArrayIteratorMethods = es_array_iterator;
|
|
1586
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
|
1587
|
-
var setToStringTag = setToStringTag$3;
|
|
1588
|
-
var wellKnownSymbol$4 = wellKnownSymbol$a;
|
|
1589
|
-
|
|
1590
|
-
var ITERATOR = wellKnownSymbol$4('iterator');
|
|
1591
|
-
var ArrayValues = ArrayIteratorMethods.values;
|
|
1592
|
-
|
|
1593
|
-
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
1594
|
-
if (CollectionPrototype) {
|
|
1595
|
-
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1596
|
-
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
|
|
1597
|
-
createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
|
|
1598
|
-
} catch (error) {
|
|
1599
|
-
CollectionPrototype[ITERATOR] = ArrayValues;
|
|
1600
|
-
}
|
|
1601
|
-
setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
|
|
1602
|
-
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
1603
|
-
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1604
|
-
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
1605
|
-
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
1606
|
-
} catch (error) {
|
|
1607
|
-
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
1608
|
-
}
|
|
1609
|
-
}
|
|
1610
|
-
}
|
|
1611
|
-
};
|
|
1612
|
-
|
|
1613
|
-
for (var COLLECTION_NAME in DOMIterables) {
|
|
1614
|
-
handlePrototype(global$4[COLLECTION_NAME] && global$4[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1615
|
-
}
|
|
1616
|
-
|
|
1617
|
-
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
1618
|
-
|
|
1619
1538
|
var tryToString = tryToString$2;
|
|
1620
1539
|
|
|
1621
1540
|
var $TypeError$1 = TypeError;
|
|
@@ -1624,9 +1543,9 @@ var deletePropertyOrThrow$1 = function (O, P) {
|
|
|
1624
1543
|
if (!delete O[P]) throw new $TypeError$1('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
|
|
1625
1544
|
};
|
|
1626
1545
|
|
|
1627
|
-
var wellKnownSymbol$
|
|
1546
|
+
var wellKnownSymbol$4 = wellKnownSymbol$a;
|
|
1628
1547
|
|
|
1629
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$
|
|
1548
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag');
|
|
1630
1549
|
var test$1 = {};
|
|
1631
1550
|
|
|
1632
1551
|
test$1[TO_STRING_TAG$1] = 'z';
|
|
@@ -1636,9 +1555,9 @@ var toStringTagSupport = String(test$1) === '[object z]';
|
|
|
1636
1555
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1637
1556
|
var isCallable = isCallable$e;
|
|
1638
1557
|
var classofRaw$1 = classofRaw$2;
|
|
1639
|
-
var wellKnownSymbol$
|
|
1558
|
+
var wellKnownSymbol$3 = wellKnownSymbol$a;
|
|
1640
1559
|
|
|
1641
|
-
var TO_STRING_TAG = wellKnownSymbol$
|
|
1560
|
+
var TO_STRING_TAG = wellKnownSymbol$3('toStringTag');
|
|
1642
1561
|
var $Object = Object;
|
|
1643
1562
|
|
|
1644
1563
|
// ES3 wrong here
|
|
@@ -1919,9 +1838,9 @@ var functionUncurryThisClause = function (fn) {
|
|
|
1919
1838
|
|
|
1920
1839
|
var isObject = isObject$9;
|
|
1921
1840
|
var classof = classofRaw$2;
|
|
1922
|
-
var wellKnownSymbol$
|
|
1841
|
+
var wellKnownSymbol$2 = wellKnownSymbol$a;
|
|
1923
1842
|
|
|
1924
|
-
var MATCH$1 = wellKnownSymbol$
|
|
1843
|
+
var MATCH$1 = wellKnownSymbol$2('match');
|
|
1925
1844
|
|
|
1926
1845
|
// `IsRegExp` abstract operation
|
|
1927
1846
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
@@ -1940,9 +1859,9 @@ var notARegexp = function (it) {
|
|
|
1940
1859
|
} return it;
|
|
1941
1860
|
};
|
|
1942
1861
|
|
|
1943
|
-
var wellKnownSymbol = wellKnownSymbol$a;
|
|
1862
|
+
var wellKnownSymbol$1 = wellKnownSymbol$a;
|
|
1944
1863
|
|
|
1945
|
-
var MATCH = wellKnownSymbol('match');
|
|
1864
|
+
var MATCH = wellKnownSymbol$1('match');
|
|
1946
1865
|
|
|
1947
1866
|
var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
1948
1867
|
var regexp = /./;
|
|
@@ -1987,6 +1906,87 @@ $$1({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_RE
|
|
|
1987
1906
|
}
|
|
1988
1907
|
});
|
|
1989
1908
|
|
|
1909
|
+
// iterable DOM collections
|
|
1910
|
+
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
|
1911
|
+
var domIterables = {
|
|
1912
|
+
CSSRuleList: 0,
|
|
1913
|
+
CSSStyleDeclaration: 0,
|
|
1914
|
+
CSSValueList: 0,
|
|
1915
|
+
ClientRectList: 0,
|
|
1916
|
+
DOMRectList: 0,
|
|
1917
|
+
DOMStringList: 0,
|
|
1918
|
+
DOMTokenList: 1,
|
|
1919
|
+
DataTransferItemList: 0,
|
|
1920
|
+
FileList: 0,
|
|
1921
|
+
HTMLAllCollection: 0,
|
|
1922
|
+
HTMLCollection: 0,
|
|
1923
|
+
HTMLFormElement: 0,
|
|
1924
|
+
HTMLSelectElement: 0,
|
|
1925
|
+
MediaList: 0,
|
|
1926
|
+
MimeTypeArray: 0,
|
|
1927
|
+
NamedNodeMap: 0,
|
|
1928
|
+
NodeList: 1,
|
|
1929
|
+
PaintRequestList: 0,
|
|
1930
|
+
Plugin: 0,
|
|
1931
|
+
PluginArray: 0,
|
|
1932
|
+
SVGLengthList: 0,
|
|
1933
|
+
SVGNumberList: 0,
|
|
1934
|
+
SVGPathSegList: 0,
|
|
1935
|
+
SVGPointList: 0,
|
|
1936
|
+
SVGStringList: 0,
|
|
1937
|
+
SVGTransformList: 0,
|
|
1938
|
+
SourceBufferList: 0,
|
|
1939
|
+
StyleSheetList: 0,
|
|
1940
|
+
TextTrackCueList: 0,
|
|
1941
|
+
TextTrackList: 0,
|
|
1942
|
+
TouchList: 0
|
|
1943
|
+
};
|
|
1944
|
+
|
|
1945
|
+
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
|
1946
|
+
var documentCreateElement = documentCreateElement$2;
|
|
1947
|
+
|
|
1948
|
+
var classList = documentCreateElement('span').classList;
|
|
1949
|
+
var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
|
|
1950
|
+
|
|
1951
|
+
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1952
|
+
|
|
1953
|
+
var global$4 = global$e;
|
|
1954
|
+
var DOMIterables = domIterables;
|
|
1955
|
+
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1956
|
+
var ArrayIteratorMethods = es_array_iterator;
|
|
1957
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
|
1958
|
+
var setToStringTag = setToStringTag$3;
|
|
1959
|
+
var wellKnownSymbol = wellKnownSymbol$a;
|
|
1960
|
+
|
|
1961
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
1962
|
+
var ArrayValues = ArrayIteratorMethods.values;
|
|
1963
|
+
|
|
1964
|
+
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
1965
|
+
if (CollectionPrototype) {
|
|
1966
|
+
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1967
|
+
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
|
|
1968
|
+
createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
|
|
1969
|
+
} catch (error) {
|
|
1970
|
+
CollectionPrototype[ITERATOR] = ArrayValues;
|
|
1971
|
+
}
|
|
1972
|
+
setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
|
|
1973
|
+
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
1974
|
+
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1975
|
+
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
1976
|
+
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
1977
|
+
} catch (error) {
|
|
1978
|
+
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
1979
|
+
}
|
|
1980
|
+
}
|
|
1981
|
+
}
|
|
1982
|
+
};
|
|
1983
|
+
|
|
1984
|
+
for (var COLLECTION_NAME in DOMIterables) {
|
|
1985
|
+
handlePrototype(global$4[COLLECTION_NAME] && global$4[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
1989
|
+
|
|
1990
1990
|
const FormGroupContext = /*#__PURE__*/createContext({});
|
|
1991
1991
|
/**
|
|
1992
1992
|
* context interface to be used isolated or with the context provider
|
|
@@ -2524,7 +2524,7 @@ function Form({
|
|
|
2524
2524
|
formGroupInstance
|
|
2525
2525
|
} = useFormGroupContext({});
|
|
2526
2526
|
const schemaIndex = useMemo(() => index || (schema === null || schema === void 0 ? void 0 : schema.index) || 'defaultChange', [index, schema === null || schema === void 0 ? void 0 : schema.index]);
|
|
2527
|
-
const
|
|
2527
|
+
const render = useRef(false);
|
|
2528
2528
|
const formInstance = useRef(new FormCore({
|
|
2529
2529
|
schema: Object.assign(Object.assign({}, schema), {
|
|
2530
2530
|
index: schemaIndex
|
|
@@ -2588,7 +2588,8 @@ function Form({
|
|
|
2588
2588
|
* logic to mount and manage form removal
|
|
2589
2589
|
*/
|
|
2590
2590
|
useEffect(() => {
|
|
2591
|
-
|
|
2591
|
+
if (render.current) return;
|
|
2592
|
+
render.current = true;
|
|
2592
2593
|
let subMounted;
|
|
2593
2594
|
if (onFormMount) {
|
|
2594
2595
|
subMounted = formInstance.current.subscribeOnMount(onFormMount);
|
|
@@ -2599,8 +2600,8 @@ function Form({
|
|
|
2599
2600
|
the management of multiple forms needs to be planned
|
|
2600
2601
|
*/
|
|
2601
2602
|
return () => {
|
|
2602
|
-
|
|
2603
|
-
|
|
2603
|
+
if (render.current) {
|
|
2604
|
+
subMounted === null || subMounted === void 0 ? void 0 : subMounted.unsubscribe();
|
|
2604
2605
|
removeForm({
|
|
2605
2606
|
key: schemaIndex
|
|
2606
2607
|
});
|
|
@@ -2624,7 +2625,7 @@ function Form({
|
|
|
2624
2625
|
onFormMount,
|
|
2625
2626
|
onData,
|
|
2626
2627
|
onValid
|
|
2627
|
-
}, [
|
|
2628
|
+
}, []);
|
|
2628
2629
|
/*
|
|
2629
2630
|
@TODO move this logic inside form-core, add action and method onto form element,
|
|
2630
2631
|
might need a ref of the form to collect all the form parameters when there is a
|
|
@@ -2879,7 +2880,7 @@ $({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
|
2879
2880
|
const AsFormFieldBuilder = props => {
|
|
2880
2881
|
var _a;
|
|
2881
2882
|
const context = useFormGroupContext({});
|
|
2882
|
-
const
|
|
2883
|
+
const render = useRef(false);
|
|
2883
2884
|
const fieldName = props.name;
|
|
2884
2885
|
if (!((_a = context.formGroupInstance) === null || _a === void 0 ? void 0 : _a.forms.has(props.formIndex))) context.addFormWithIndex(props.formIndex);
|
|
2885
2886
|
const formInstance = context.formGroupInstance.forms.get(props.formIndex);
|
|
@@ -2907,11 +2908,14 @@ const AsFormFieldBuilder = props => {
|
|
|
2907
2908
|
* Also has the logic to remove it once this element is removed
|
|
2908
2909
|
*/
|
|
2909
2910
|
useEffect(() => {
|
|
2910
|
-
|
|
2911
|
+
if (render.current) return;
|
|
2912
|
+
render.current = true;
|
|
2911
2913
|
return () => {
|
|
2912
|
-
if (render)
|
|
2913
|
-
|
|
2914
|
-
|
|
2914
|
+
if (render.current) {
|
|
2915
|
+
formInstance === null || formInstance === void 0 ? void 0 : formInstance.removeField({
|
|
2916
|
+
key: fieldName
|
|
2917
|
+
});
|
|
2918
|
+
}
|
|
2915
2919
|
};
|
|
2916
2920
|
}, []);
|
|
2917
2921
|
/**
|