@sebgroup/green-react 1.0.0-beta.5 → 1.0.0-beta.6
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 +1629 -411
- package/index.umd.js +1569 -303
- package/lib/form/group/group.d.ts +9 -0
- package/lib/form/index.d.ts +2 -0
- package/lib/form/input/input.d.ts +2 -1
- package/lib/form/radioButton/radioGroup.d.ts +9 -0
- package/lib/form/types.d.ts +17 -0
- package/lib/layout/index.d.ts +0 -1
- package/package.json +4 -8
- package/lib/layout/group/group.d.ts +0 -6
package/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import React, { useState, useEffect, useMemo, useRef } from 'react';
|
|
3
|
-
import { randomId } from '@sebgroup/extract';
|
|
3
|
+
import { randomId, validateClassName } from '@sebgroup/extract';
|
|
4
4
|
|
|
5
5
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@ var check = function (it) {
|
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
12
|
-
var global$
|
|
12
|
+
var global$E =
|
|
13
13
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
14
14
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
15
15
|
check(typeof window == 'object' && window) ||
|
|
@@ -21,7 +21,7 @@ var global$r =
|
|
|
21
21
|
|
|
22
22
|
var objectGetOwnPropertyDescriptor = {};
|
|
23
23
|
|
|
24
|
-
var fails$
|
|
24
|
+
var fails$d = function (exec) {
|
|
25
25
|
try {
|
|
26
26
|
return !!exec();
|
|
27
27
|
} catch (error) {
|
|
@@ -29,33 +29,43 @@ var fails$9 = function (exec) {
|
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
var fails$
|
|
32
|
+
var fails$c = fails$d;
|
|
33
33
|
|
|
34
34
|
// Detect IE8's incomplete defineProperty implementation
|
|
35
|
-
var descriptors = !fails$
|
|
35
|
+
var descriptors = !fails$c(function () {
|
|
36
36
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
37
37
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var fails$b = fails$d;
|
|
41
41
|
|
|
42
|
-
var
|
|
43
|
-
|
|
42
|
+
var functionBindNative = !fails$b(function () {
|
|
43
|
+
var test = (function () { /* empty */ }).bind();
|
|
44
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
45
|
+
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
var NATIVE_BIND$3 = functionBindNative;
|
|
49
|
+
|
|
50
|
+
var call$b = Function.prototype.call;
|
|
51
|
+
|
|
52
|
+
var functionCall = NATIVE_BIND$3 ? call$b.bind(call$b) : function () {
|
|
53
|
+
return call$b.apply(call$b, arguments);
|
|
44
54
|
};
|
|
45
55
|
|
|
46
56
|
var objectPropertyIsEnumerable = {};
|
|
47
57
|
|
|
48
58
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
49
59
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
50
|
-
var getOwnPropertyDescriptor$
|
|
60
|
+
var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
|
|
51
61
|
|
|
52
62
|
// Nashorn ~ JDK8 bug
|
|
53
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$
|
|
63
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
54
64
|
|
|
55
65
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
56
66
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
57
67
|
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
58
|
-
var descriptor = getOwnPropertyDescriptor$
|
|
68
|
+
var descriptor = getOwnPropertyDescriptor$2(this, V);
|
|
59
69
|
return !!descriptor && descriptor.enumerable;
|
|
60
70
|
} : $propertyIsEnumerable;
|
|
61
71
|
|
|
@@ -68,53 +78,55 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
|
68
78
|
};
|
|
69
79
|
};
|
|
70
80
|
|
|
71
|
-
var
|
|
72
|
-
var bind = FunctionPrototype$1.bind;
|
|
73
|
-
var call$5 = FunctionPrototype$1.call;
|
|
74
|
-
var callBind = bind && bind.bind(call$5);
|
|
81
|
+
var NATIVE_BIND$2 = functionBindNative;
|
|
75
82
|
|
|
76
|
-
var
|
|
77
|
-
|
|
83
|
+
var FunctionPrototype$2 = Function.prototype;
|
|
84
|
+
var bind$5 = FunctionPrototype$2.bind;
|
|
85
|
+
var call$a = FunctionPrototype$2.call;
|
|
86
|
+
var uncurryThis$h = NATIVE_BIND$2 && bind$5.bind(call$a, call$a);
|
|
87
|
+
|
|
88
|
+
var functionUncurryThis = NATIVE_BIND$2 ? function (fn) {
|
|
89
|
+
return fn && uncurryThis$h(fn);
|
|
78
90
|
} : function (fn) {
|
|
79
91
|
return fn && function () {
|
|
80
|
-
return call$
|
|
92
|
+
return call$a.apply(fn, arguments);
|
|
81
93
|
};
|
|
82
94
|
};
|
|
83
95
|
|
|
84
|
-
var uncurryThis$
|
|
96
|
+
var uncurryThis$g = functionUncurryThis;
|
|
85
97
|
|
|
86
|
-
var toString$
|
|
87
|
-
var stringSlice = uncurryThis$
|
|
98
|
+
var toString$5 = uncurryThis$g({}.toString);
|
|
99
|
+
var stringSlice$1 = uncurryThis$g(''.slice);
|
|
88
100
|
|
|
89
101
|
var classofRaw$1 = function (it) {
|
|
90
|
-
return stringSlice(toString$
|
|
102
|
+
return stringSlice$1(toString$5(it), 8, -1);
|
|
91
103
|
};
|
|
92
104
|
|
|
93
|
-
var global$
|
|
94
|
-
var uncurryThis$
|
|
95
|
-
var fails$
|
|
96
|
-
var classof$
|
|
105
|
+
var global$D = global$E;
|
|
106
|
+
var uncurryThis$f = functionUncurryThis;
|
|
107
|
+
var fails$a = fails$d;
|
|
108
|
+
var classof$5 = classofRaw$1;
|
|
97
109
|
|
|
98
|
-
var Object$5 = global$
|
|
99
|
-
var split = uncurryThis$
|
|
110
|
+
var Object$5 = global$D.Object;
|
|
111
|
+
var split = uncurryThis$f(''.split);
|
|
100
112
|
|
|
101
113
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
102
|
-
var indexedObject = fails$
|
|
114
|
+
var indexedObject = fails$a(function () {
|
|
103
115
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
104
116
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
105
117
|
return !Object$5('z').propertyIsEnumerable(0);
|
|
106
118
|
}) ? function (it) {
|
|
107
|
-
return classof$
|
|
119
|
+
return classof$5(it) == 'String' ? split(it, '') : Object$5(it);
|
|
108
120
|
} : Object$5;
|
|
109
121
|
|
|
110
|
-
var global$
|
|
122
|
+
var global$C = global$E;
|
|
111
123
|
|
|
112
|
-
var TypeError$
|
|
124
|
+
var TypeError$e = global$C.TypeError;
|
|
113
125
|
|
|
114
126
|
// `RequireObjectCoercible` abstract operation
|
|
115
127
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
116
128
|
var requireObjectCoercible$3 = function (it) {
|
|
117
|
-
if (it == undefined) throw TypeError$
|
|
129
|
+
if (it == undefined) throw TypeError$e("Can't call method on " + it);
|
|
118
130
|
return it;
|
|
119
131
|
};
|
|
120
132
|
|
|
@@ -128,41 +140,41 @@ var toIndexedObject$5 = function (it) {
|
|
|
128
140
|
|
|
129
141
|
// `IsCallable` abstract operation
|
|
130
142
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
131
|
-
var isCallable$
|
|
143
|
+
var isCallable$i = function (argument) {
|
|
132
144
|
return typeof argument == 'function';
|
|
133
145
|
};
|
|
134
146
|
|
|
135
|
-
var isCallable$
|
|
147
|
+
var isCallable$h = isCallable$i;
|
|
136
148
|
|
|
137
|
-
var isObject$
|
|
138
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
149
|
+
var isObject$7 = function (it) {
|
|
150
|
+
return typeof it == 'object' ? it !== null : isCallable$h(it);
|
|
139
151
|
};
|
|
140
152
|
|
|
141
|
-
var global$
|
|
142
|
-
var isCallable$
|
|
153
|
+
var global$B = global$E;
|
|
154
|
+
var isCallable$g = isCallable$i;
|
|
143
155
|
|
|
144
156
|
var aFunction = function (argument) {
|
|
145
|
-
return isCallable$
|
|
157
|
+
return isCallable$g(argument) ? argument : undefined;
|
|
146
158
|
};
|
|
147
159
|
|
|
148
|
-
var getBuiltIn$
|
|
149
|
-
return arguments.length < 2 ? aFunction(global$
|
|
160
|
+
var getBuiltIn$7 = function (namespace, method) {
|
|
161
|
+
return arguments.length < 2 ? aFunction(global$B[namespace]) : global$B[namespace] && global$B[namespace][method];
|
|
150
162
|
};
|
|
151
163
|
|
|
152
|
-
var uncurryThis$
|
|
164
|
+
var uncurryThis$e = functionUncurryThis;
|
|
153
165
|
|
|
154
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
166
|
+
var objectIsPrototypeOf = uncurryThis$e({}.isPrototypeOf);
|
|
155
167
|
|
|
156
|
-
var getBuiltIn$
|
|
168
|
+
var getBuiltIn$6 = getBuiltIn$7;
|
|
157
169
|
|
|
158
|
-
var engineUserAgent = getBuiltIn$
|
|
170
|
+
var engineUserAgent = getBuiltIn$6('navigator', 'userAgent') || '';
|
|
159
171
|
|
|
160
|
-
var global$
|
|
161
|
-
var userAgent = engineUserAgent;
|
|
172
|
+
var global$A = global$E;
|
|
173
|
+
var userAgent$3 = engineUserAgent;
|
|
162
174
|
|
|
163
|
-
var process = global$
|
|
164
|
-
var Deno = global$
|
|
165
|
-
var versions = process && process.versions || Deno && Deno.version;
|
|
175
|
+
var process$3 = global$A.process;
|
|
176
|
+
var Deno = global$A.Deno;
|
|
177
|
+
var versions = process$3 && process$3.versions || Deno && Deno.version;
|
|
166
178
|
var v8 = versions && versions.v8;
|
|
167
179
|
var match, version;
|
|
168
180
|
|
|
@@ -175,10 +187,10 @@ if (v8) {
|
|
|
175
187
|
|
|
176
188
|
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
177
189
|
// so check `userAgent` even if `.v8` exists, but 0
|
|
178
|
-
if (!version && userAgent) {
|
|
179
|
-
match = userAgent.match(/Edge\/(\d+)/);
|
|
190
|
+
if (!version && userAgent$3) {
|
|
191
|
+
match = userAgent$3.match(/Edge\/(\d+)/);
|
|
180
192
|
if (!match || match[1] >= 74) {
|
|
181
|
-
match = userAgent.match(/Chrome\/(\d+)/);
|
|
193
|
+
match = userAgent$3.match(/Chrome\/(\d+)/);
|
|
182
194
|
if (match) version = +match[1];
|
|
183
195
|
}
|
|
184
196
|
}
|
|
@@ -187,112 +199,112 @@ var engineV8Version = version;
|
|
|
187
199
|
|
|
188
200
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
189
201
|
|
|
190
|
-
var V8_VERSION = engineV8Version;
|
|
191
|
-
var fails$
|
|
202
|
+
var V8_VERSION$1 = engineV8Version;
|
|
203
|
+
var fails$9 = fails$d;
|
|
192
204
|
|
|
193
205
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
194
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$
|
|
206
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$9(function () {
|
|
195
207
|
var symbol = Symbol();
|
|
196
208
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
197
209
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
198
210
|
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
199
211
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
200
|
-
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
212
|
+
!Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
|
|
201
213
|
});
|
|
202
214
|
|
|
203
215
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
204
216
|
|
|
205
|
-
var NATIVE_SYMBOL$
|
|
217
|
+
var NATIVE_SYMBOL$2 = nativeSymbol;
|
|
206
218
|
|
|
207
|
-
var useSymbolAsUid = NATIVE_SYMBOL$
|
|
219
|
+
var useSymbolAsUid = NATIVE_SYMBOL$2
|
|
208
220
|
&& !Symbol.sham
|
|
209
221
|
&& typeof Symbol.iterator == 'symbol';
|
|
210
222
|
|
|
211
|
-
var global$
|
|
212
|
-
var getBuiltIn$
|
|
213
|
-
var isCallable$
|
|
214
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
223
|
+
var global$z = global$E;
|
|
224
|
+
var getBuiltIn$5 = getBuiltIn$7;
|
|
225
|
+
var isCallable$f = isCallable$i;
|
|
226
|
+
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
215
227
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
216
228
|
|
|
217
|
-
var Object$4 = global$
|
|
229
|
+
var Object$4 = global$z.Object;
|
|
218
230
|
|
|
219
231
|
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
220
232
|
return typeof it == 'symbol';
|
|
221
233
|
} : function (it) {
|
|
222
|
-
var $Symbol = getBuiltIn$
|
|
223
|
-
return isCallable$
|
|
234
|
+
var $Symbol = getBuiltIn$5('Symbol');
|
|
235
|
+
return isCallable$f($Symbol) && isPrototypeOf$3($Symbol.prototype, Object$4(it));
|
|
224
236
|
};
|
|
225
237
|
|
|
226
|
-
var global$
|
|
238
|
+
var global$y = global$E;
|
|
227
239
|
|
|
228
|
-
var String$
|
|
240
|
+
var String$5 = global$y.String;
|
|
229
241
|
|
|
230
|
-
var tryToString$
|
|
242
|
+
var tryToString$4 = function (argument) {
|
|
231
243
|
try {
|
|
232
|
-
return String$
|
|
244
|
+
return String$5(argument);
|
|
233
245
|
} catch (error) {
|
|
234
246
|
return 'Object';
|
|
235
247
|
}
|
|
236
248
|
};
|
|
237
249
|
|
|
238
|
-
var global$
|
|
239
|
-
var isCallable$
|
|
240
|
-
var tryToString = tryToString$
|
|
250
|
+
var global$x = global$E;
|
|
251
|
+
var isCallable$e = isCallable$i;
|
|
252
|
+
var tryToString$3 = tryToString$4;
|
|
241
253
|
|
|
242
|
-
var TypeError$
|
|
254
|
+
var TypeError$d = global$x.TypeError;
|
|
243
255
|
|
|
244
256
|
// `Assert: IsCallable(argument) is true`
|
|
245
|
-
var aCallable$
|
|
246
|
-
if (isCallable$
|
|
247
|
-
throw TypeError$
|
|
257
|
+
var aCallable$5 = function (argument) {
|
|
258
|
+
if (isCallable$e(argument)) return argument;
|
|
259
|
+
throw TypeError$d(tryToString$3(argument) + ' is not a function');
|
|
248
260
|
};
|
|
249
261
|
|
|
250
|
-
var aCallable = aCallable$
|
|
262
|
+
var aCallable$4 = aCallable$5;
|
|
251
263
|
|
|
252
264
|
// `GetMethod` abstract operation
|
|
253
265
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
254
|
-
var getMethod$
|
|
266
|
+
var getMethod$3 = function (V, P) {
|
|
255
267
|
var func = V[P];
|
|
256
|
-
return func == null ? undefined : aCallable(func);
|
|
268
|
+
return func == null ? undefined : aCallable$4(func);
|
|
257
269
|
};
|
|
258
270
|
|
|
259
|
-
var global$
|
|
260
|
-
var call$
|
|
261
|
-
var isCallable$
|
|
262
|
-
var isObject$
|
|
271
|
+
var global$w = global$E;
|
|
272
|
+
var call$9 = functionCall;
|
|
273
|
+
var isCallable$d = isCallable$i;
|
|
274
|
+
var isObject$6 = isObject$7;
|
|
263
275
|
|
|
264
|
-
var TypeError$
|
|
276
|
+
var TypeError$c = global$w.TypeError;
|
|
265
277
|
|
|
266
278
|
// `OrdinaryToPrimitive` abstract operation
|
|
267
279
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
268
280
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
269
281
|
var fn, val;
|
|
270
|
-
if (pref === 'string' && isCallable$
|
|
271
|
-
if (isCallable$
|
|
272
|
-
if (pref !== 'string' && isCallable$
|
|
273
|
-
throw TypeError$
|
|
282
|
+
if (pref === 'string' && isCallable$d(fn = input.toString) && !isObject$6(val = call$9(fn, input))) return val;
|
|
283
|
+
if (isCallable$d(fn = input.valueOf) && !isObject$6(val = call$9(fn, input))) return val;
|
|
284
|
+
if (pref !== 'string' && isCallable$d(fn = input.toString) && !isObject$6(val = call$9(fn, input))) return val;
|
|
285
|
+
throw TypeError$c("Can't convert object to primitive value");
|
|
274
286
|
};
|
|
275
287
|
|
|
276
288
|
var shared$3 = {exports: {}};
|
|
277
289
|
|
|
278
|
-
var global$
|
|
290
|
+
var global$v = global$E;
|
|
279
291
|
|
|
280
292
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
281
|
-
var defineProperty$
|
|
293
|
+
var defineProperty$4 = Object.defineProperty;
|
|
282
294
|
|
|
283
295
|
var setGlobal$3 = function (key, value) {
|
|
284
296
|
try {
|
|
285
|
-
defineProperty$
|
|
297
|
+
defineProperty$4(global$v, key, { value: value, configurable: true, writable: true });
|
|
286
298
|
} catch (error) {
|
|
287
|
-
global$
|
|
299
|
+
global$v[key] = value;
|
|
288
300
|
} return value;
|
|
289
301
|
};
|
|
290
302
|
|
|
291
|
-
var global$
|
|
303
|
+
var global$u = global$E;
|
|
292
304
|
var setGlobal$2 = setGlobal$3;
|
|
293
305
|
|
|
294
306
|
var SHARED = '__core-js_shared__';
|
|
295
|
-
var store$3 = global$
|
|
307
|
+
var store$3 = global$u[SHARED] || setGlobal$2(SHARED, {});
|
|
296
308
|
|
|
297
309
|
var sharedStore = store$3;
|
|
298
310
|
|
|
@@ -301,15 +313,17 @@ var store$2 = sharedStore;
|
|
|
301
313
|
(shared$3.exports = function (key, value) {
|
|
302
314
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
303
315
|
})('versions', []).push({
|
|
304
|
-
version: '3.
|
|
316
|
+
version: '3.21.1',
|
|
305
317
|
mode: 'global',
|
|
306
|
-
copyright: '©
|
|
318
|
+
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
319
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
|
|
320
|
+
source: 'https://github.com/zloirock/core-js'
|
|
307
321
|
});
|
|
308
322
|
|
|
309
|
-
var global$
|
|
323
|
+
var global$t = global$E;
|
|
310
324
|
var requireObjectCoercible$1 = requireObjectCoercible$3;
|
|
311
325
|
|
|
312
|
-
var Object$3 = global$
|
|
326
|
+
var Object$3 = global$t.Object;
|
|
313
327
|
|
|
314
328
|
// `ToObject` abstract operation
|
|
315
329
|
// https://tc39.es/ecma262/#sec-toobject
|
|
@@ -317,10 +331,10 @@ var toObject$3 = function (argument) {
|
|
|
317
331
|
return Object$3(requireObjectCoercible$1(argument));
|
|
318
332
|
};
|
|
319
333
|
|
|
320
|
-
var uncurryThis$
|
|
334
|
+
var uncurryThis$d = functionUncurryThis;
|
|
321
335
|
var toObject$2 = toObject$3;
|
|
322
336
|
|
|
323
|
-
var hasOwnProperty = uncurryThis$
|
|
337
|
+
var hasOwnProperty = uncurryThis$d({}.hasOwnProperty);
|
|
324
338
|
|
|
325
339
|
// `HasOwnProperty` abstract operation
|
|
326
340
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
@@ -328,32 +342,32 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
|
328
342
|
return hasOwnProperty(toObject$2(it), key);
|
|
329
343
|
};
|
|
330
344
|
|
|
331
|
-
var uncurryThis$
|
|
345
|
+
var uncurryThis$c = functionUncurryThis;
|
|
332
346
|
|
|
333
347
|
var id = 0;
|
|
334
348
|
var postfix = Math.random();
|
|
335
|
-
var toString$
|
|
349
|
+
var toString$4 = uncurryThis$c(1.0.toString);
|
|
336
350
|
|
|
337
351
|
var uid$2 = function (key) {
|
|
338
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$
|
|
352
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
|
|
339
353
|
};
|
|
340
354
|
|
|
341
|
-
var global$
|
|
355
|
+
var global$s = global$E;
|
|
342
356
|
var shared$2 = shared$3.exports;
|
|
343
|
-
var hasOwn$
|
|
357
|
+
var hasOwn$a = hasOwnProperty_1;
|
|
344
358
|
var uid$1 = uid$2;
|
|
345
|
-
var NATIVE_SYMBOL = nativeSymbol;
|
|
359
|
+
var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
346
360
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
347
361
|
|
|
348
362
|
var WellKnownSymbolsStore = shared$2('wks');
|
|
349
|
-
var Symbol$2 = global$
|
|
363
|
+
var Symbol$2 = global$s.Symbol;
|
|
350
364
|
var symbolFor = Symbol$2 && Symbol$2['for'];
|
|
351
365
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
|
|
352
366
|
|
|
353
|
-
var wellKnownSymbol$
|
|
354
|
-
if (!hasOwn$
|
|
367
|
+
var wellKnownSymbol$e = function (name) {
|
|
368
|
+
if (!hasOwn$a(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL$1 || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
355
369
|
var description = 'Symbol.' + name;
|
|
356
|
-
if (NATIVE_SYMBOL && hasOwn$
|
|
370
|
+
if (NATIVE_SYMBOL$1 && hasOwn$a(Symbol$2, name)) {
|
|
357
371
|
WellKnownSymbolsStore[name] = Symbol$2[name];
|
|
358
372
|
} else if (USE_SYMBOL_AS_UID && symbolFor) {
|
|
359
373
|
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
@@ -363,28 +377,28 @@ var wellKnownSymbol$8 = function (name) {
|
|
|
363
377
|
} return WellKnownSymbolsStore[name];
|
|
364
378
|
};
|
|
365
379
|
|
|
366
|
-
var global$
|
|
367
|
-
var call$
|
|
368
|
-
var isObject$
|
|
380
|
+
var global$r = global$E;
|
|
381
|
+
var call$8 = functionCall;
|
|
382
|
+
var isObject$5 = isObject$7;
|
|
369
383
|
var isSymbol$1 = isSymbol$2;
|
|
370
|
-
var getMethod = getMethod$
|
|
384
|
+
var getMethod$2 = getMethod$3;
|
|
371
385
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
372
|
-
var wellKnownSymbol$
|
|
386
|
+
var wellKnownSymbol$d = wellKnownSymbol$e;
|
|
373
387
|
|
|
374
|
-
var TypeError$
|
|
375
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
|
388
|
+
var TypeError$b = global$r.TypeError;
|
|
389
|
+
var TO_PRIMITIVE = wellKnownSymbol$d('toPrimitive');
|
|
376
390
|
|
|
377
391
|
// `ToPrimitive` abstract operation
|
|
378
392
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
379
393
|
var toPrimitive$1 = function (input, pref) {
|
|
380
|
-
if (!isObject$
|
|
381
|
-
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
394
|
+
if (!isObject$5(input) || isSymbol$1(input)) return input;
|
|
395
|
+
var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
|
|
382
396
|
var result;
|
|
383
397
|
if (exoticToPrim) {
|
|
384
398
|
if (pref === undefined) pref = 'default';
|
|
385
|
-
result = call$
|
|
386
|
-
if (!isObject$
|
|
387
|
-
throw TypeError$
|
|
399
|
+
result = call$8(exoticToPrim, input, pref);
|
|
400
|
+
if (!isObject$5(result) || isSymbol$1(result)) return result;
|
|
401
|
+
throw TypeError$b("Can't convert object to primitive value");
|
|
388
402
|
}
|
|
389
403
|
if (pref === undefined) pref = 'number';
|
|
390
404
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -400,125 +414,159 @@ var toPropertyKey$2 = function (argument) {
|
|
|
400
414
|
return isSymbol(key) ? key : key + '';
|
|
401
415
|
};
|
|
402
416
|
|
|
403
|
-
var global$
|
|
404
|
-
var isObject$
|
|
417
|
+
var global$q = global$E;
|
|
418
|
+
var isObject$4 = isObject$7;
|
|
405
419
|
|
|
406
|
-
var document$
|
|
420
|
+
var document$3 = global$q.document;
|
|
407
421
|
// typeof document.createElement is 'object' in old IE
|
|
408
|
-
var EXISTS$1 = isObject$
|
|
422
|
+
var EXISTS$1 = isObject$4(document$3) && isObject$4(document$3.createElement);
|
|
409
423
|
|
|
410
424
|
var documentCreateElement$2 = function (it) {
|
|
411
|
-
return EXISTS$1 ? document$
|
|
425
|
+
return EXISTS$1 ? document$3.createElement(it) : {};
|
|
412
426
|
};
|
|
413
427
|
|
|
414
|
-
var DESCRIPTORS$
|
|
415
|
-
var fails$
|
|
416
|
-
var createElement = documentCreateElement$2;
|
|
428
|
+
var DESCRIPTORS$a = descriptors;
|
|
429
|
+
var fails$8 = fails$d;
|
|
430
|
+
var createElement$1 = documentCreateElement$2;
|
|
417
431
|
|
|
418
|
-
//
|
|
419
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
420
|
-
// eslint-disable-next-line es/no-object-defineproperty --
|
|
421
|
-
return Object.defineProperty(createElement('div'), 'a', {
|
|
432
|
+
// Thanks to IE8 for its funny defineProperty
|
|
433
|
+
var ie8DomDefine = !DESCRIPTORS$a && !fails$8(function () {
|
|
434
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
435
|
+
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
422
436
|
get: function () { return 7; }
|
|
423
437
|
}).a != 7;
|
|
424
438
|
});
|
|
425
439
|
|
|
426
|
-
var DESCRIPTORS$
|
|
427
|
-
var call$
|
|
440
|
+
var DESCRIPTORS$9 = descriptors;
|
|
441
|
+
var call$7 = functionCall;
|
|
428
442
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
429
443
|
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
430
444
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
431
445
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
432
|
-
var hasOwn$
|
|
446
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
433
447
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
434
448
|
|
|
435
449
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
436
|
-
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
450
|
+
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
437
451
|
|
|
438
452
|
// `Object.getOwnPropertyDescriptor` method
|
|
439
453
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
440
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
454
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
441
455
|
O = toIndexedObject$4(O);
|
|
442
456
|
P = toPropertyKey$1(P);
|
|
443
457
|
if (IE8_DOM_DEFINE$1) try {
|
|
444
|
-
return $getOwnPropertyDescriptor(O, P);
|
|
458
|
+
return $getOwnPropertyDescriptor$1(O, P);
|
|
445
459
|
} catch (error) { /* empty */ }
|
|
446
|
-
if (hasOwn$
|
|
460
|
+
if (hasOwn$9(O, P)) return createPropertyDescriptor$2(!call$7(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
447
461
|
};
|
|
448
462
|
|
|
449
463
|
var objectDefineProperty = {};
|
|
450
464
|
|
|
451
|
-
var
|
|
452
|
-
var
|
|
465
|
+
var DESCRIPTORS$8 = descriptors;
|
|
466
|
+
var fails$7 = fails$d;
|
|
453
467
|
|
|
454
|
-
|
|
455
|
-
|
|
468
|
+
// V8 ~ Chrome 36-
|
|
469
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
470
|
+
var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$7(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 global$p = global$E;
|
|
479
|
+
var isObject$3 = isObject$7;
|
|
480
|
+
|
|
481
|
+
var String$4 = global$p.String;
|
|
482
|
+
var TypeError$a = global$p.TypeError;
|
|
456
483
|
|
|
457
484
|
// `Assert: Type(argument) is Object`
|
|
458
|
-
var anObject$
|
|
459
|
-
if (isObject$
|
|
460
|
-
throw TypeError$
|
|
485
|
+
var anObject$a = function (argument) {
|
|
486
|
+
if (isObject$3(argument)) return argument;
|
|
487
|
+
throw TypeError$a(String$4(argument) + ' is not an object');
|
|
461
488
|
};
|
|
462
489
|
|
|
463
|
-
var global$
|
|
464
|
-
var DESCRIPTORS$
|
|
490
|
+
var global$o = global$E;
|
|
491
|
+
var DESCRIPTORS$7 = descriptors;
|
|
465
492
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
466
|
-
var
|
|
493
|
+
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
494
|
+
var anObject$9 = anObject$a;
|
|
467
495
|
var toPropertyKey = toPropertyKey$2;
|
|
468
496
|
|
|
469
|
-
var TypeError$
|
|
497
|
+
var TypeError$9 = global$o.TypeError;
|
|
470
498
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
471
499
|
var $defineProperty = Object.defineProperty;
|
|
500
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
501
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
502
|
+
var ENUMERABLE = 'enumerable';
|
|
503
|
+
var CONFIGURABLE$1 = 'configurable';
|
|
504
|
+
var WRITABLE = 'writable';
|
|
472
505
|
|
|
473
506
|
// `Object.defineProperty` method
|
|
474
507
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
475
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
476
|
-
anObject$
|
|
508
|
+
objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
509
|
+
anObject$9(O);
|
|
510
|
+
P = toPropertyKey(P);
|
|
511
|
+
anObject$9(Attributes);
|
|
512
|
+
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
513
|
+
var current = $getOwnPropertyDescriptor(O, P);
|
|
514
|
+
if (current && current[WRITABLE]) {
|
|
515
|
+
O[P] = Attributes.value;
|
|
516
|
+
Attributes = {
|
|
517
|
+
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
|
518
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
|
519
|
+
writable: false
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
} return $defineProperty(O, P, Attributes);
|
|
523
|
+
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
524
|
+
anObject$9(O);
|
|
477
525
|
P = toPropertyKey(P);
|
|
478
|
-
anObject$
|
|
526
|
+
anObject$9(Attributes);
|
|
479
527
|
if (IE8_DOM_DEFINE) try {
|
|
480
528
|
return $defineProperty(O, P, Attributes);
|
|
481
529
|
} catch (error) { /* empty */ }
|
|
482
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError$
|
|
530
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError$9('Accessors not supported');
|
|
483
531
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
484
532
|
return O;
|
|
485
533
|
};
|
|
486
534
|
|
|
487
|
-
var DESCRIPTORS$
|
|
488
|
-
var definePropertyModule$
|
|
535
|
+
var DESCRIPTORS$6 = descriptors;
|
|
536
|
+
var definePropertyModule$4 = objectDefineProperty;
|
|
489
537
|
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
490
538
|
|
|
491
|
-
var createNonEnumerableProperty$5 = DESCRIPTORS$
|
|
492
|
-
return definePropertyModule$
|
|
539
|
+
var createNonEnumerableProperty$5 = DESCRIPTORS$6 ? function (object, key, value) {
|
|
540
|
+
return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
|
|
493
541
|
} : function (object, key, value) {
|
|
494
542
|
object[key] = value;
|
|
495
543
|
return object;
|
|
496
544
|
};
|
|
497
545
|
|
|
498
|
-
var redefine$
|
|
546
|
+
var redefine$5 = {exports: {}};
|
|
499
547
|
|
|
500
|
-
var uncurryThis$
|
|
501
|
-
var isCallable$
|
|
548
|
+
var uncurryThis$b = functionUncurryThis;
|
|
549
|
+
var isCallable$c = isCallable$i;
|
|
502
550
|
var store$1 = sharedStore;
|
|
503
551
|
|
|
504
|
-
var functionToString = uncurryThis$
|
|
552
|
+
var functionToString = uncurryThis$b(Function.toString);
|
|
505
553
|
|
|
506
554
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
507
|
-
if (!isCallable$
|
|
555
|
+
if (!isCallable$c(store$1.inspectSource)) {
|
|
508
556
|
store$1.inspectSource = function (it) {
|
|
509
557
|
return functionToString(it);
|
|
510
558
|
};
|
|
511
559
|
}
|
|
512
560
|
|
|
513
|
-
var inspectSource$
|
|
561
|
+
var inspectSource$4 = store$1.inspectSource;
|
|
514
562
|
|
|
515
|
-
var global$
|
|
516
|
-
var isCallable$
|
|
517
|
-
var inspectSource$
|
|
563
|
+
var global$n = global$E;
|
|
564
|
+
var isCallable$b = isCallable$i;
|
|
565
|
+
var inspectSource$3 = inspectSource$4;
|
|
518
566
|
|
|
519
|
-
var WeakMap$1 = global$
|
|
567
|
+
var WeakMap$1 = global$n.WeakMap;
|
|
520
568
|
|
|
521
|
-
var nativeWeakMap = isCallable$
|
|
569
|
+
var nativeWeakMap = isCallable$b(WeakMap$1) && /native code/.test(inspectSource$3(WeakMap$1));
|
|
522
570
|
|
|
523
571
|
var shared$1 = shared$3.exports;
|
|
524
572
|
var uid = uid$2;
|
|
@@ -532,40 +580,40 @@ var sharedKey$3 = function (key) {
|
|
|
532
580
|
var hiddenKeys$4 = {};
|
|
533
581
|
|
|
534
582
|
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
535
|
-
var global$
|
|
536
|
-
var uncurryThis$
|
|
537
|
-
var isObject = isObject$
|
|
583
|
+
var global$m = global$E;
|
|
584
|
+
var uncurryThis$a = functionUncurryThis;
|
|
585
|
+
var isObject$2 = isObject$7;
|
|
538
586
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
|
|
539
|
-
var hasOwn$
|
|
587
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
540
588
|
var shared = sharedStore;
|
|
541
589
|
var sharedKey$2 = sharedKey$3;
|
|
542
590
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
543
591
|
|
|
544
592
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
545
|
-
var TypeError$
|
|
546
|
-
var WeakMap = global$
|
|
547
|
-
var set, get, has;
|
|
593
|
+
var TypeError$8 = global$m.TypeError;
|
|
594
|
+
var WeakMap = global$m.WeakMap;
|
|
595
|
+
var set$1, get, has;
|
|
548
596
|
|
|
549
597
|
var enforce = function (it) {
|
|
550
|
-
return has(it) ? get(it) : set(it, {});
|
|
598
|
+
return has(it) ? get(it) : set$1(it, {});
|
|
551
599
|
};
|
|
552
600
|
|
|
553
601
|
var getterFor = function (TYPE) {
|
|
554
602
|
return function (it) {
|
|
555
603
|
var state;
|
|
556
|
-
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
557
|
-
throw TypeError$
|
|
604
|
+
if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
|
|
605
|
+
throw TypeError$8('Incompatible receiver, ' + TYPE + ' required');
|
|
558
606
|
} return state;
|
|
559
607
|
};
|
|
560
608
|
};
|
|
561
609
|
|
|
562
610
|
if (NATIVE_WEAK_MAP || shared.state) {
|
|
563
611
|
var store = shared.state || (shared.state = new WeakMap());
|
|
564
|
-
var wmget = uncurryThis$
|
|
565
|
-
var wmhas = uncurryThis$
|
|
566
|
-
var wmset = uncurryThis$
|
|
567
|
-
set = function (it, metadata) {
|
|
568
|
-
if (wmhas(store, it)) throw new TypeError$
|
|
612
|
+
var wmget = uncurryThis$a(store.get);
|
|
613
|
+
var wmhas = uncurryThis$a(store.has);
|
|
614
|
+
var wmset = uncurryThis$a(store.set);
|
|
615
|
+
set$1 = function (it, metadata) {
|
|
616
|
+
if (wmhas(store, it)) throw new TypeError$8(OBJECT_ALREADY_INITIALIZED);
|
|
569
617
|
metadata.facade = it;
|
|
570
618
|
wmset(store, it, metadata);
|
|
571
619
|
return metadata;
|
|
@@ -579,39 +627,39 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
579
627
|
} else {
|
|
580
628
|
var STATE = sharedKey$2('state');
|
|
581
629
|
hiddenKeys$3[STATE] = true;
|
|
582
|
-
set = function (it, metadata) {
|
|
583
|
-
if (hasOwn$
|
|
630
|
+
set$1 = function (it, metadata) {
|
|
631
|
+
if (hasOwn$8(it, STATE)) throw new TypeError$8(OBJECT_ALREADY_INITIALIZED);
|
|
584
632
|
metadata.facade = it;
|
|
585
633
|
createNonEnumerableProperty$4(it, STATE, metadata);
|
|
586
634
|
return metadata;
|
|
587
635
|
};
|
|
588
636
|
get = function (it) {
|
|
589
|
-
return hasOwn$
|
|
637
|
+
return hasOwn$8(it, STATE) ? it[STATE] : {};
|
|
590
638
|
};
|
|
591
639
|
has = function (it) {
|
|
592
|
-
return hasOwn$
|
|
640
|
+
return hasOwn$8(it, STATE);
|
|
593
641
|
};
|
|
594
642
|
}
|
|
595
643
|
|
|
596
644
|
var internalState = {
|
|
597
|
-
set: set,
|
|
645
|
+
set: set$1,
|
|
598
646
|
get: get,
|
|
599
647
|
has: has,
|
|
600
648
|
enforce: enforce,
|
|
601
649
|
getterFor: getterFor
|
|
602
650
|
};
|
|
603
651
|
|
|
604
|
-
var DESCRIPTORS$
|
|
605
|
-
var hasOwn$
|
|
652
|
+
var DESCRIPTORS$5 = descriptors;
|
|
653
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
606
654
|
|
|
607
|
-
var FunctionPrototype = Function.prototype;
|
|
655
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
608
656
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
609
|
-
var getDescriptor = DESCRIPTORS$
|
|
657
|
+
var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
|
|
610
658
|
|
|
611
|
-
var EXISTS = hasOwn$
|
|
659
|
+
var EXISTS = hasOwn$7(FunctionPrototype$1, 'name');
|
|
612
660
|
// additional protection from minified / mangled / dropped function names
|
|
613
661
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
614
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
662
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
615
663
|
|
|
616
664
|
var functionName = {
|
|
617
665
|
EXISTS: EXISTS,
|
|
@@ -619,30 +667,30 @@ var functionName = {
|
|
|
619
667
|
CONFIGURABLE: CONFIGURABLE
|
|
620
668
|
};
|
|
621
669
|
|
|
622
|
-
var global$
|
|
623
|
-
var isCallable$
|
|
624
|
-
var hasOwn$
|
|
670
|
+
var global$l = global$E;
|
|
671
|
+
var isCallable$a = isCallable$i;
|
|
672
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
625
673
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
|
|
626
674
|
var setGlobal$1 = setGlobal$3;
|
|
627
|
-
var inspectSource = inspectSource$
|
|
628
|
-
var InternalStateModule$
|
|
675
|
+
var inspectSource$2 = inspectSource$4;
|
|
676
|
+
var InternalStateModule$2 = internalState;
|
|
629
677
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
630
678
|
|
|
631
|
-
var getInternalState$
|
|
632
|
-
var enforceInternalState = InternalStateModule$
|
|
679
|
+
var getInternalState$2 = InternalStateModule$2.get;
|
|
680
|
+
var enforceInternalState = InternalStateModule$2.enforce;
|
|
633
681
|
var TEMPLATE = String(String).split('String');
|
|
634
682
|
|
|
635
|
-
(redefine$
|
|
683
|
+
(redefine$5.exports = function (O, key, value, options) {
|
|
636
684
|
var unsafe = options ? !!options.unsafe : false;
|
|
637
685
|
var simple = options ? !!options.enumerable : false;
|
|
638
686
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
639
687
|
var name = options && options.name !== undefined ? options.name : key;
|
|
640
688
|
var state;
|
|
641
|
-
if (isCallable$
|
|
689
|
+
if (isCallable$a(value)) {
|
|
642
690
|
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
643
691
|
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
644
692
|
}
|
|
645
|
-
if (!hasOwn$
|
|
693
|
+
if (!hasOwn$6(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
646
694
|
createNonEnumerableProperty$3(value, 'name', name);
|
|
647
695
|
}
|
|
648
696
|
state = enforceInternalState(value);
|
|
@@ -650,7 +698,7 @@ var TEMPLATE = String(String).split('String');
|
|
|
650
698
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
651
699
|
}
|
|
652
700
|
}
|
|
653
|
-
if (O === global$
|
|
701
|
+
if (O === global$l) {
|
|
654
702
|
if (simple) O[key] = value;
|
|
655
703
|
else setGlobal$1(key, value);
|
|
656
704
|
return;
|
|
@@ -663,7 +711,7 @@ var TEMPLATE = String(String).split('String');
|
|
|
663
711
|
else createNonEnumerableProperty$3(O, key, value);
|
|
664
712
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
665
713
|
})(Function.prototype, 'toString', function toString() {
|
|
666
|
-
return isCallable$
|
|
714
|
+
return isCallable$a(this) && getInternalState$2(this).source || inspectSource$2(this);
|
|
667
715
|
});
|
|
668
716
|
|
|
669
717
|
var objectGetOwnPropertyNames = {};
|
|
@@ -706,19 +754,19 @@ var toLength = toLength$1;
|
|
|
706
754
|
|
|
707
755
|
// `LengthOfArrayLike` abstract operation
|
|
708
756
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
709
|
-
var lengthOfArrayLike$
|
|
757
|
+
var lengthOfArrayLike$2 = function (obj) {
|
|
710
758
|
return toLength(obj.length);
|
|
711
759
|
};
|
|
712
760
|
|
|
713
761
|
var toIndexedObject$3 = toIndexedObject$5;
|
|
714
762
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
715
|
-
var lengthOfArrayLike = lengthOfArrayLike$
|
|
763
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$2;
|
|
716
764
|
|
|
717
765
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
718
766
|
var createMethod$1 = function (IS_INCLUDES) {
|
|
719
767
|
return function ($this, el, fromIndex) {
|
|
720
768
|
var O = toIndexedObject$3($this);
|
|
721
|
-
var length = lengthOfArrayLike(O);
|
|
769
|
+
var length = lengthOfArrayLike$1(O);
|
|
722
770
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
723
771
|
var value;
|
|
724
772
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -743,22 +791,22 @@ var arrayIncludes = {
|
|
|
743
791
|
indexOf: createMethod$1(false)
|
|
744
792
|
};
|
|
745
793
|
|
|
746
|
-
var uncurryThis$
|
|
747
|
-
var hasOwn$
|
|
794
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
795
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
748
796
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
749
797
|
var indexOf = arrayIncludes.indexOf;
|
|
750
798
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
751
799
|
|
|
752
|
-
var push = uncurryThis$
|
|
800
|
+
var push = uncurryThis$9([].push);
|
|
753
801
|
|
|
754
802
|
var objectKeysInternal = function (object, names) {
|
|
755
803
|
var O = toIndexedObject$2(object);
|
|
756
804
|
var i = 0;
|
|
757
805
|
var result = [];
|
|
758
806
|
var key;
|
|
759
|
-
for (key in O) !hasOwn$
|
|
807
|
+
for (key in O) !hasOwn$5(hiddenKeys$2, key) && hasOwn$5(O, key) && push(result, key);
|
|
760
808
|
// Don't enum bug & hidden keys
|
|
761
|
-
while (names.length > i) if (hasOwn$
|
|
809
|
+
while (names.length > i) if (hasOwn$5(O, key = names[i++])) {
|
|
762
810
|
~indexOf(result, key) || push(result, key);
|
|
763
811
|
}
|
|
764
812
|
return result;
|
|
@@ -792,66 +840,68 @@ var objectGetOwnPropertySymbols = {};
|
|
|
792
840
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
793
841
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
794
842
|
|
|
795
|
-
var getBuiltIn$
|
|
796
|
-
var uncurryThis$
|
|
843
|
+
var getBuiltIn$4 = getBuiltIn$7;
|
|
844
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
797
845
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
798
846
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
799
|
-
var anObject$
|
|
847
|
+
var anObject$8 = anObject$a;
|
|
800
848
|
|
|
801
|
-
var concat$1 = uncurryThis$
|
|
849
|
+
var concat$1 = uncurryThis$8([].concat);
|
|
802
850
|
|
|
803
851
|
// all object keys, includes non-enumerable and symbols
|
|
804
|
-
var ownKeys$1 = getBuiltIn$
|
|
805
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
852
|
+
var ownKeys$1 = getBuiltIn$4('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
853
|
+
var keys = getOwnPropertyNamesModule.f(anObject$8(it));
|
|
806
854
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
807
855
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
808
856
|
};
|
|
809
857
|
|
|
810
|
-
var hasOwn$
|
|
858
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
811
859
|
var ownKeys = ownKeys$1;
|
|
812
860
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
813
|
-
var definePropertyModule$
|
|
861
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
814
862
|
|
|
815
|
-
var copyConstructorProperties$
|
|
863
|
+
var copyConstructorProperties$2 = function (target, source, exceptions) {
|
|
816
864
|
var keys = ownKeys(source);
|
|
817
|
-
var defineProperty = definePropertyModule$
|
|
865
|
+
var defineProperty = definePropertyModule$3.f;
|
|
818
866
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
819
867
|
for (var i = 0; i < keys.length; i++) {
|
|
820
868
|
var key = keys[i];
|
|
821
|
-
if (!hasOwn$
|
|
869
|
+
if (!hasOwn$4(target, key) && !(exceptions && hasOwn$4(exceptions, key))) {
|
|
870
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
871
|
+
}
|
|
822
872
|
}
|
|
823
873
|
};
|
|
824
874
|
|
|
825
|
-
var fails$
|
|
826
|
-
var isCallable$
|
|
875
|
+
var fails$6 = fails$d;
|
|
876
|
+
var isCallable$9 = isCallable$i;
|
|
827
877
|
|
|
828
878
|
var replacement = /#|\.prototype\./;
|
|
829
879
|
|
|
830
|
-
var isForced$
|
|
880
|
+
var isForced$2 = function (feature, detection) {
|
|
831
881
|
var value = data[normalize(feature)];
|
|
832
882
|
return value == POLYFILL ? true
|
|
833
883
|
: value == NATIVE ? false
|
|
834
|
-
: isCallable$
|
|
884
|
+
: isCallable$9(detection) ? fails$6(detection)
|
|
835
885
|
: !!detection;
|
|
836
886
|
};
|
|
837
887
|
|
|
838
|
-
var normalize = isForced$
|
|
888
|
+
var normalize = isForced$2.normalize = function (string) {
|
|
839
889
|
return String(string).replace(replacement, '.').toLowerCase();
|
|
840
890
|
};
|
|
841
891
|
|
|
842
|
-
var data = isForced$
|
|
843
|
-
var NATIVE = isForced$
|
|
844
|
-
var POLYFILL = isForced$
|
|
892
|
+
var data = isForced$2.data = {};
|
|
893
|
+
var NATIVE = isForced$2.NATIVE = 'N';
|
|
894
|
+
var POLYFILL = isForced$2.POLYFILL = 'P';
|
|
845
895
|
|
|
846
|
-
var isForced_1 = isForced$
|
|
896
|
+
var isForced_1 = isForced$2;
|
|
847
897
|
|
|
848
|
-
var global$
|
|
849
|
-
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
898
|
+
var global$k = global$E;
|
|
899
|
+
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
850
900
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
|
|
851
|
-
var redefine$
|
|
901
|
+
var redefine$4 = redefine$5.exports;
|
|
852
902
|
var setGlobal = setGlobal$3;
|
|
853
|
-
var copyConstructorProperties = copyConstructorProperties$
|
|
854
|
-
var isForced = isForced_1;
|
|
903
|
+
var copyConstructorProperties$1 = copyConstructorProperties$2;
|
|
904
|
+
var isForced$1 = isForced_1;
|
|
855
905
|
|
|
856
906
|
/*
|
|
857
907
|
options.target - name of the target object
|
|
@@ -874,30 +924,30 @@ var _export = function (options, source) {
|
|
|
874
924
|
var STATIC = options.stat;
|
|
875
925
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
876
926
|
if (GLOBAL) {
|
|
877
|
-
target = global$
|
|
927
|
+
target = global$k;
|
|
878
928
|
} else if (STATIC) {
|
|
879
|
-
target = global$
|
|
929
|
+
target = global$k[TARGET] || setGlobal(TARGET, {});
|
|
880
930
|
} else {
|
|
881
|
-
target = (global$
|
|
931
|
+
target = (global$k[TARGET] || {}).prototype;
|
|
882
932
|
}
|
|
883
933
|
if (target) for (key in source) {
|
|
884
934
|
sourceProperty = source[key];
|
|
885
935
|
if (options.noTargetGet) {
|
|
886
|
-
descriptor = getOwnPropertyDescriptor(target, key);
|
|
936
|
+
descriptor = getOwnPropertyDescriptor$1(target, key);
|
|
887
937
|
targetProperty = descriptor && descriptor.value;
|
|
888
938
|
} else targetProperty = target[key];
|
|
889
|
-
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
939
|
+
FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
890
940
|
// contained in target
|
|
891
941
|
if (!FORCED && targetProperty !== undefined) {
|
|
892
942
|
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
893
|
-
copyConstructorProperties(sourceProperty, targetProperty);
|
|
943
|
+
copyConstructorProperties$1(sourceProperty, targetProperty);
|
|
894
944
|
}
|
|
895
945
|
// add a flag to not completely full polyfills
|
|
896
946
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
897
947
|
createNonEnumerableProperty$2(sourceProperty, 'sham', true);
|
|
898
948
|
}
|
|
899
949
|
// extend global
|
|
900
|
-
redefine$
|
|
950
|
+
redefine$4(target, key, sourceProperty, options);
|
|
901
951
|
}
|
|
902
952
|
};
|
|
903
953
|
|
|
@@ -911,10 +961,10 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
911
961
|
return internalObjectKeys(O, enumBugKeys$1);
|
|
912
962
|
};
|
|
913
963
|
|
|
914
|
-
var DESCRIPTORS$
|
|
915
|
-
var uncurryThis$
|
|
916
|
-
var call$
|
|
917
|
-
var fails$
|
|
964
|
+
var DESCRIPTORS$4 = descriptors;
|
|
965
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
966
|
+
var call$6 = functionCall;
|
|
967
|
+
var fails$5 = fails$d;
|
|
918
968
|
var objectKeys$1 = objectKeys$2;
|
|
919
969
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
920
970
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
@@ -924,17 +974,17 @@ var IndexedObject = indexedObject;
|
|
|
924
974
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
925
975
|
var $assign = Object.assign;
|
|
926
976
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
927
|
-
var defineProperty$
|
|
928
|
-
var concat = uncurryThis$
|
|
977
|
+
var defineProperty$3 = Object.defineProperty;
|
|
978
|
+
var concat = uncurryThis$7([].concat);
|
|
929
979
|
|
|
930
980
|
// `Object.assign` method
|
|
931
981
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
932
|
-
var objectAssign = !$assign || fails$
|
|
982
|
+
var objectAssign = !$assign || fails$5(function () {
|
|
933
983
|
// should have correct order of operations (Edge bug)
|
|
934
|
-
if (DESCRIPTORS$
|
|
984
|
+
if (DESCRIPTORS$4 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
|
|
935
985
|
enumerable: true,
|
|
936
986
|
get: function () {
|
|
937
|
-
defineProperty$
|
|
987
|
+
defineProperty$3(this, 'b', {
|
|
938
988
|
value: 3,
|
|
939
989
|
enumerable: false
|
|
940
990
|
});
|
|
@@ -963,18 +1013,18 @@ var objectAssign = !$assign || fails$3(function () {
|
|
|
963
1013
|
var key;
|
|
964
1014
|
while (length > j) {
|
|
965
1015
|
key = keys[j++];
|
|
966
|
-
if (!DESCRIPTORS$
|
|
1016
|
+
if (!DESCRIPTORS$4 || call$6(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
967
1017
|
}
|
|
968
1018
|
} return T;
|
|
969
1019
|
} : $assign;
|
|
970
1020
|
|
|
971
|
-
var $$
|
|
1021
|
+
var $$4 = _export;
|
|
972
1022
|
var assign = objectAssign;
|
|
973
1023
|
|
|
974
1024
|
// `Object.assign` method
|
|
975
1025
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
976
1026
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
977
|
-
$$
|
|
1027
|
+
$$4({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
|
|
978
1028
|
assign: assign
|
|
979
1029
|
});
|
|
980
1030
|
|
|
@@ -1136,37 +1186,40 @@ const Modal = _a => {
|
|
|
1136
1186
|
return isOpen ? modalContent() : null;
|
|
1137
1187
|
};
|
|
1138
1188
|
|
|
1139
|
-
var
|
|
1140
|
-
|
|
1141
|
-
var
|
|
1189
|
+
var objectDefineProperties = {};
|
|
1190
|
+
|
|
1191
|
+
var DESCRIPTORS$3 = descriptors;
|
|
1192
|
+
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1193
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
1194
|
+
var anObject$7 = anObject$a;
|
|
1142
1195
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
1143
1196
|
var objectKeys = objectKeys$2;
|
|
1144
1197
|
|
|
1145
1198
|
// `Object.defineProperties` method
|
|
1146
1199
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1147
1200
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1148
|
-
|
|
1149
|
-
anObject$
|
|
1201
|
+
objectDefineProperties.f = DESCRIPTORS$3 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1202
|
+
anObject$7(O);
|
|
1150
1203
|
var props = toIndexedObject$1(Properties);
|
|
1151
1204
|
var keys = objectKeys(Properties);
|
|
1152
1205
|
var length = keys.length;
|
|
1153
1206
|
var index = 0;
|
|
1154
1207
|
var key;
|
|
1155
|
-
while (length > index) definePropertyModule$
|
|
1208
|
+
while (length > index) definePropertyModule$2.f(O, key = keys[index++], props[key]);
|
|
1156
1209
|
return O;
|
|
1157
1210
|
};
|
|
1158
1211
|
|
|
1159
|
-
var getBuiltIn = getBuiltIn$
|
|
1212
|
+
var getBuiltIn$3 = getBuiltIn$7;
|
|
1160
1213
|
|
|
1161
|
-
var html$
|
|
1214
|
+
var html$2 = getBuiltIn$3('document', 'documentElement');
|
|
1162
1215
|
|
|
1163
1216
|
/* global ActiveXObject -- old IE, WSH */
|
|
1164
1217
|
|
|
1165
|
-
var anObject$
|
|
1166
|
-
var
|
|
1218
|
+
var anObject$6 = anObject$a;
|
|
1219
|
+
var definePropertiesModule = objectDefineProperties;
|
|
1167
1220
|
var enumBugKeys = enumBugKeys$3;
|
|
1168
1221
|
var hiddenKeys = hiddenKeys$4;
|
|
1169
|
-
var html = html$
|
|
1222
|
+
var html$1 = html$2;
|
|
1170
1223
|
var documentCreateElement$1 = documentCreateElement$2;
|
|
1171
1224
|
var sharedKey$1 = sharedKey$3;
|
|
1172
1225
|
|
|
@@ -1198,7 +1251,7 @@ var NullProtoObjectViaIFrame = function () {
|
|
|
1198
1251
|
var JS = 'java' + SCRIPT + ':';
|
|
1199
1252
|
var iframeDocument;
|
|
1200
1253
|
iframe.style.display = 'none';
|
|
1201
|
-
html.appendChild(iframe);
|
|
1254
|
+
html$1.appendChild(iframe);
|
|
1202
1255
|
// https://github.com/zloirock/core-js/issues/475
|
|
1203
1256
|
iframe.src = String(JS);
|
|
1204
1257
|
iframeDocument = iframe.contentWindow.document;
|
|
@@ -1235,26 +1288,26 @@ hiddenKeys[IE_PROTO$1] = true;
|
|
|
1235
1288
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
1236
1289
|
var result;
|
|
1237
1290
|
if (O !== null) {
|
|
1238
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
1291
|
+
EmptyConstructor[PROTOTYPE] = anObject$6(O);
|
|
1239
1292
|
result = new EmptyConstructor();
|
|
1240
1293
|
EmptyConstructor[PROTOTYPE] = null;
|
|
1241
1294
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
1242
1295
|
result[IE_PROTO$1] = O;
|
|
1243
1296
|
} else result = NullProtoObject();
|
|
1244
|
-
return Properties === undefined ? result :
|
|
1297
|
+
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1245
1298
|
};
|
|
1246
1299
|
|
|
1247
|
-
var wellKnownSymbol$
|
|
1300
|
+
var wellKnownSymbol$c = wellKnownSymbol$e;
|
|
1248
1301
|
var create$1 = objectCreate;
|
|
1249
|
-
var definePropertyModule = objectDefineProperty;
|
|
1302
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
1250
1303
|
|
|
1251
|
-
var UNSCOPABLES = wellKnownSymbol$
|
|
1252
|
-
var ArrayPrototype = Array.prototype;
|
|
1304
|
+
var UNSCOPABLES = wellKnownSymbol$c('unscopables');
|
|
1305
|
+
var ArrayPrototype$1 = Array.prototype;
|
|
1253
1306
|
|
|
1254
1307
|
// Array.prototype[@@unscopables]
|
|
1255
1308
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1256
|
-
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
1257
|
-
definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
|
|
1309
|
+
if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
|
|
1310
|
+
definePropertyModule$1.f(ArrayPrototype$1, UNSCOPABLES, {
|
|
1258
1311
|
configurable: true,
|
|
1259
1312
|
value: create$1(null)
|
|
1260
1313
|
});
|
|
@@ -1262,49 +1315,49 @@ if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
|
1262
1315
|
|
|
1263
1316
|
// add a key to Array.prototype[@@unscopables]
|
|
1264
1317
|
var addToUnscopables$1 = function (key) {
|
|
1265
|
-
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
1318
|
+
ArrayPrototype$1[UNSCOPABLES][key] = true;
|
|
1266
1319
|
};
|
|
1267
1320
|
|
|
1268
1321
|
var iterators = {};
|
|
1269
1322
|
|
|
1270
|
-
var fails$
|
|
1323
|
+
var fails$4 = fails$d;
|
|
1271
1324
|
|
|
1272
|
-
var correctPrototypeGetter = !fails$
|
|
1325
|
+
var correctPrototypeGetter = !fails$4(function () {
|
|
1273
1326
|
function F() { /* empty */ }
|
|
1274
1327
|
F.prototype.constructor = null;
|
|
1275
1328
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
1276
1329
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1277
1330
|
});
|
|
1278
1331
|
|
|
1279
|
-
var global$
|
|
1280
|
-
var hasOwn$
|
|
1281
|
-
var isCallable$
|
|
1332
|
+
var global$j = global$E;
|
|
1333
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
1334
|
+
var isCallable$8 = isCallable$i;
|
|
1282
1335
|
var toObject = toObject$3;
|
|
1283
1336
|
var sharedKey = sharedKey$3;
|
|
1284
1337
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1285
1338
|
|
|
1286
1339
|
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1287
|
-
var Object$2 = global$
|
|
1340
|
+
var Object$2 = global$j.Object;
|
|
1288
1341
|
var ObjectPrototype = Object$2.prototype;
|
|
1289
1342
|
|
|
1290
1343
|
// `Object.getPrototypeOf` method
|
|
1291
1344
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1292
1345
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object$2.getPrototypeOf : function (O) {
|
|
1293
1346
|
var object = toObject(O);
|
|
1294
|
-
if (hasOwn$
|
|
1347
|
+
if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
|
|
1295
1348
|
var constructor = object.constructor;
|
|
1296
|
-
if (isCallable$
|
|
1349
|
+
if (isCallable$8(constructor) && object instanceof constructor) {
|
|
1297
1350
|
return constructor.prototype;
|
|
1298
1351
|
} return object instanceof Object$2 ? ObjectPrototype : null;
|
|
1299
1352
|
};
|
|
1300
1353
|
|
|
1301
|
-
var fails$
|
|
1302
|
-
var isCallable$
|
|
1354
|
+
var fails$3 = fails$d;
|
|
1355
|
+
var isCallable$7 = isCallable$i;
|
|
1303
1356
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1304
|
-
var redefine$
|
|
1305
|
-
var wellKnownSymbol$
|
|
1357
|
+
var redefine$3 = redefine$5.exports;
|
|
1358
|
+
var wellKnownSymbol$b = wellKnownSymbol$e;
|
|
1306
1359
|
|
|
1307
|
-
var ITERATOR$
|
|
1360
|
+
var ITERATOR$6 = wellKnownSymbol$b('iterator');
|
|
1308
1361
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1309
1362
|
|
|
1310
1363
|
// `%IteratorPrototype%` object
|
|
@@ -1322,18 +1375,18 @@ if ([].keys) {
|
|
|
1322
1375
|
}
|
|
1323
1376
|
}
|
|
1324
1377
|
|
|
1325
|
-
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$
|
|
1378
|
+
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$3(function () {
|
|
1326
1379
|
var test = {};
|
|
1327
1380
|
// FF44- legacy iterators case
|
|
1328
|
-
return IteratorPrototype$2[ITERATOR$
|
|
1381
|
+
return IteratorPrototype$2[ITERATOR$6].call(test) !== test;
|
|
1329
1382
|
});
|
|
1330
1383
|
|
|
1331
1384
|
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
1332
1385
|
|
|
1333
1386
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1334
1387
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1335
|
-
if (!isCallable$
|
|
1336
|
-
redefine$
|
|
1388
|
+
if (!isCallable$7(IteratorPrototype$2[ITERATOR$6])) {
|
|
1389
|
+
redefine$3(IteratorPrototype$2, ITERATOR$6, function () {
|
|
1337
1390
|
return this;
|
|
1338
1391
|
});
|
|
1339
1392
|
}
|
|
@@ -1343,49 +1396,50 @@ var iteratorsCore = {
|
|
|
1343
1396
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1344
1397
|
};
|
|
1345
1398
|
|
|
1346
|
-
var defineProperty = objectDefineProperty.f;
|
|
1347
|
-
var hasOwn = hasOwnProperty_1;
|
|
1348
|
-
var wellKnownSymbol$
|
|
1399
|
+
var defineProperty$2 = objectDefineProperty.f;
|
|
1400
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
1401
|
+
var wellKnownSymbol$a = wellKnownSymbol$e;
|
|
1349
1402
|
|
|
1350
|
-
var TO_STRING_TAG$3 = wellKnownSymbol$
|
|
1403
|
+
var TO_STRING_TAG$3 = wellKnownSymbol$a('toStringTag');
|
|
1351
1404
|
|
|
1352
|
-
var setToStringTag$
|
|
1353
|
-
if (
|
|
1354
|
-
|
|
1405
|
+
var setToStringTag$3 = function (target, TAG, STATIC) {
|
|
1406
|
+
if (target && !STATIC) target = target.prototype;
|
|
1407
|
+
if (target && !hasOwn$2(target, TO_STRING_TAG$3)) {
|
|
1408
|
+
defineProperty$2(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
|
|
1355
1409
|
}
|
|
1356
1410
|
};
|
|
1357
1411
|
|
|
1358
1412
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
1359
1413
|
var create = objectCreate;
|
|
1360
1414
|
var createPropertyDescriptor = createPropertyDescriptor$3;
|
|
1361
|
-
var setToStringTag$
|
|
1362
|
-
var Iterators$
|
|
1415
|
+
var setToStringTag$2 = setToStringTag$3;
|
|
1416
|
+
var Iterators$4 = iterators;
|
|
1363
1417
|
|
|
1364
1418
|
var returnThis$1 = function () { return this; };
|
|
1365
1419
|
|
|
1366
1420
|
var createIteratorConstructor$1 = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
1367
1421
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1368
1422
|
IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
1369
|
-
setToStringTag$
|
|
1370
|
-
Iterators$
|
|
1423
|
+
setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
|
|
1424
|
+
Iterators$4[TO_STRING_TAG] = returnThis$1;
|
|
1371
1425
|
return IteratorConstructor;
|
|
1372
1426
|
};
|
|
1373
1427
|
|
|
1374
|
-
var global$
|
|
1375
|
-
var isCallable$
|
|
1428
|
+
var global$i = global$E;
|
|
1429
|
+
var isCallable$6 = isCallable$i;
|
|
1376
1430
|
|
|
1377
|
-
var String$
|
|
1378
|
-
var TypeError$
|
|
1431
|
+
var String$3 = global$i.String;
|
|
1432
|
+
var TypeError$7 = global$i.TypeError;
|
|
1379
1433
|
|
|
1380
1434
|
var aPossiblePrototype$1 = function (argument) {
|
|
1381
|
-
if (typeof argument == 'object' || isCallable$
|
|
1382
|
-
throw TypeError$
|
|
1435
|
+
if (typeof argument == 'object' || isCallable$6(argument)) return argument;
|
|
1436
|
+
throw TypeError$7("Can't set " + String$3(argument) + ' as a prototype');
|
|
1383
1437
|
};
|
|
1384
1438
|
|
|
1385
1439
|
/* eslint-disable no-proto -- safe */
|
|
1386
1440
|
|
|
1387
|
-
var uncurryThis$
|
|
1388
|
-
var anObject = anObject$
|
|
1441
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
1442
|
+
var anObject$5 = anObject$a;
|
|
1389
1443
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1390
1444
|
|
|
1391
1445
|
// `Object.setPrototypeOf` method
|
|
@@ -1398,12 +1452,12 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1398
1452
|
var setter;
|
|
1399
1453
|
try {
|
|
1400
1454
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1401
|
-
setter = uncurryThis$
|
|
1455
|
+
setter = uncurryThis$6(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
1402
1456
|
setter(test, []);
|
|
1403
1457
|
CORRECT_SETTER = test instanceof Array;
|
|
1404
1458
|
} catch (error) { /* empty */ }
|
|
1405
1459
|
return function setPrototypeOf(O, proto) {
|
|
1406
|
-
anObject(O);
|
|
1460
|
+
anObject$5(O);
|
|
1407
1461
|
aPossiblePrototype(proto);
|
|
1408
1462
|
if (CORRECT_SETTER) setter(O, proto);
|
|
1409
1463
|
else O.__proto__ = proto;
|
|
@@ -1411,25 +1465,25 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1411
1465
|
};
|
|
1412
1466
|
}() : undefined);
|
|
1413
1467
|
|
|
1414
|
-
var $$
|
|
1415
|
-
var call = functionCall;
|
|
1468
|
+
var $$3 = _export;
|
|
1469
|
+
var call$5 = functionCall;
|
|
1416
1470
|
var FunctionName = functionName;
|
|
1417
|
-
var isCallable$
|
|
1471
|
+
var isCallable$5 = isCallable$i;
|
|
1418
1472
|
var createIteratorConstructor = createIteratorConstructor$1;
|
|
1419
1473
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
1420
|
-
var setPrototypeOf = objectSetPrototypeOf;
|
|
1421
|
-
var setToStringTag = setToStringTag$
|
|
1474
|
+
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
1475
|
+
var setToStringTag$1 = setToStringTag$3;
|
|
1422
1476
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
|
|
1423
|
-
var redefine = redefine$
|
|
1424
|
-
var wellKnownSymbol$
|
|
1425
|
-
var Iterators$
|
|
1477
|
+
var redefine$2 = redefine$5.exports;
|
|
1478
|
+
var wellKnownSymbol$9 = wellKnownSymbol$e;
|
|
1479
|
+
var Iterators$3 = iterators;
|
|
1426
1480
|
var IteratorsCore = iteratorsCore;
|
|
1427
1481
|
|
|
1428
1482
|
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
1429
1483
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
1430
1484
|
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
1431
1485
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
1432
|
-
var ITERATOR$
|
|
1486
|
+
var ITERATOR$5 = wellKnownSymbol$9('iterator');
|
|
1433
1487
|
var KEYS = 'keys';
|
|
1434
1488
|
var VALUES = 'values';
|
|
1435
1489
|
var ENTRIES = 'entries';
|
|
@@ -1452,7 +1506,7 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
1452
1506
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1453
1507
|
var INCORRECT_VALUES_NAME = false;
|
|
1454
1508
|
var IterablePrototype = Iterable.prototype;
|
|
1455
|
-
var nativeIterator = IterablePrototype[ITERATOR$
|
|
1509
|
+
var nativeIterator = IterablePrototype[ITERATOR$5]
|
|
1456
1510
|
|| IterablePrototype['@@iterator']
|
|
1457
1511
|
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
1458
1512
|
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
@@ -1464,14 +1518,14 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
1464
1518
|
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
1465
1519
|
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
1466
1520
|
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
1467
|
-
if (setPrototypeOf) {
|
|
1468
|
-
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
1469
|
-
} else if (!isCallable$
|
|
1470
|
-
redefine(CurrentIteratorPrototype, ITERATOR$
|
|
1521
|
+
if (setPrototypeOf$1) {
|
|
1522
|
+
setPrototypeOf$1(CurrentIteratorPrototype, IteratorPrototype);
|
|
1523
|
+
} else if (!isCallable$5(CurrentIteratorPrototype[ITERATOR$5])) {
|
|
1524
|
+
redefine$2(CurrentIteratorPrototype, ITERATOR$5, returnThis);
|
|
1471
1525
|
}
|
|
1472
1526
|
}
|
|
1473
1527
|
// Set @@toStringTag to native iterators
|
|
1474
|
-
setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
|
|
1528
|
+
setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true);
|
|
1475
1529
|
}
|
|
1476
1530
|
}
|
|
1477
1531
|
|
|
@@ -1481,7 +1535,7 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
1481
1535
|
createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
|
|
1482
1536
|
} else {
|
|
1483
1537
|
INCORRECT_VALUES_NAME = true;
|
|
1484
|
-
defaultIterator = function values() { return call(nativeIterator, this); };
|
|
1538
|
+
defaultIterator = function values() { return call$5(nativeIterator, this); };
|
|
1485
1539
|
}
|
|
1486
1540
|
}
|
|
1487
1541
|
|
|
@@ -1494,29 +1548,31 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
1494
1548
|
};
|
|
1495
1549
|
if (FORCED) for (KEY in methods) {
|
|
1496
1550
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1497
|
-
redefine(IterablePrototype, KEY, methods[KEY]);
|
|
1551
|
+
redefine$2(IterablePrototype, KEY, methods[KEY]);
|
|
1498
1552
|
}
|
|
1499
|
-
} else $$
|
|
1553
|
+
} else $$3({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1500
1554
|
}
|
|
1501
1555
|
|
|
1502
1556
|
// define iterator
|
|
1503
|
-
if (IterablePrototype[ITERATOR$
|
|
1504
|
-
redefine(IterablePrototype, ITERATOR$
|
|
1557
|
+
if (IterablePrototype[ITERATOR$5] !== defaultIterator) {
|
|
1558
|
+
redefine$2(IterablePrototype, ITERATOR$5, defaultIterator, { name: DEFAULT });
|
|
1505
1559
|
}
|
|
1506
|
-
Iterators$
|
|
1560
|
+
Iterators$3[NAME] = defaultIterator;
|
|
1507
1561
|
|
|
1508
1562
|
return methods;
|
|
1509
1563
|
};
|
|
1510
1564
|
|
|
1511
1565
|
var toIndexedObject = toIndexedObject$5;
|
|
1512
1566
|
var addToUnscopables = addToUnscopables$1;
|
|
1513
|
-
var Iterators = iterators;
|
|
1514
|
-
var InternalStateModule = internalState;
|
|
1567
|
+
var Iterators$2 = iterators;
|
|
1568
|
+
var InternalStateModule$1 = internalState;
|
|
1569
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
1515
1570
|
var defineIterator = defineIterator$1;
|
|
1571
|
+
var DESCRIPTORS$2 = descriptors;
|
|
1516
1572
|
|
|
1517
1573
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1518
|
-
var setInternalState = InternalStateModule.set;
|
|
1519
|
-
var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
|
|
1574
|
+
var setInternalState$1 = InternalStateModule$1.set;
|
|
1575
|
+
var getInternalState$1 = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
|
|
1520
1576
|
|
|
1521
1577
|
// `Array.prototype.entries` method
|
|
1522
1578
|
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
@@ -1529,7 +1585,7 @@ var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
|
|
|
1529
1585
|
// `CreateArrayIterator` internal method
|
|
1530
1586
|
// https://tc39.es/ecma262/#sec-createarrayiterator
|
|
1531
1587
|
var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
|
|
1532
|
-
setInternalState(this, {
|
|
1588
|
+
setInternalState$1(this, {
|
|
1533
1589
|
type: ARRAY_ITERATOR,
|
|
1534
1590
|
target: toIndexedObject(iterated), // target
|
|
1535
1591
|
index: 0, // next index
|
|
@@ -1538,7 +1594,7 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
|
|
|
1538
1594
|
// `%ArrayIteratorPrototype%.next` method
|
|
1539
1595
|
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
1540
1596
|
}, function () {
|
|
1541
|
-
var state = getInternalState(this);
|
|
1597
|
+
var state = getInternalState$1(this);
|
|
1542
1598
|
var target = state.target;
|
|
1543
1599
|
var kind = state.kind;
|
|
1544
1600
|
var index = state.index++;
|
|
@@ -1554,13 +1610,18 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
|
|
|
1554
1610
|
// argumentsList[@@iterator] is %ArrayProto_values%
|
|
1555
1611
|
// https://tc39.es/ecma262/#sec-createunmappedargumentsobject
|
|
1556
1612
|
// https://tc39.es/ecma262/#sec-createmappedargumentsobject
|
|
1557
|
-
Iterators.Arguments = Iterators.Array;
|
|
1613
|
+
var values = Iterators$2.Arguments = Iterators$2.Array;
|
|
1558
1614
|
|
|
1559
1615
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1560
1616
|
addToUnscopables('keys');
|
|
1561
1617
|
addToUnscopables('values');
|
|
1562
1618
|
addToUnscopables('entries');
|
|
1563
1619
|
|
|
1620
|
+
// V8 ~ Chrome 45- bug
|
|
1621
|
+
if (DESCRIPTORS$2 && values.name !== 'values') try {
|
|
1622
|
+
defineProperty$1(values, 'name', { value: 'values' });
|
|
1623
|
+
} catch (error) { /* empty */ }
|
|
1624
|
+
|
|
1564
1625
|
// iterable DOM collections
|
|
1565
1626
|
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
|
1566
1627
|
var domIterables = {
|
|
@@ -1605,24 +1666,24 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1605
1666
|
|
|
1606
1667
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1607
1668
|
|
|
1608
|
-
var global$
|
|
1669
|
+
var global$h = global$E;
|
|
1609
1670
|
var DOMIterables = domIterables;
|
|
1610
1671
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1611
1672
|
var ArrayIteratorMethods = es_array_iterator;
|
|
1612
1673
|
var createNonEnumerableProperty = createNonEnumerableProperty$5;
|
|
1613
|
-
var wellKnownSymbol$
|
|
1674
|
+
var wellKnownSymbol$8 = wellKnownSymbol$e;
|
|
1614
1675
|
|
|
1615
|
-
var ITERATOR$
|
|
1616
|
-
var TO_STRING_TAG$2 = wellKnownSymbol$
|
|
1676
|
+
var ITERATOR$4 = wellKnownSymbol$8('iterator');
|
|
1677
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$8('toStringTag');
|
|
1617
1678
|
var ArrayValues = ArrayIteratorMethods.values;
|
|
1618
1679
|
|
|
1619
1680
|
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
1620
1681
|
if (CollectionPrototype) {
|
|
1621
1682
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1622
|
-
if (CollectionPrototype[ITERATOR$
|
|
1623
|
-
createNonEnumerableProperty(CollectionPrototype, ITERATOR$
|
|
1683
|
+
if (CollectionPrototype[ITERATOR$4] !== ArrayValues) try {
|
|
1684
|
+
createNonEnumerableProperty(CollectionPrototype, ITERATOR$4, ArrayValues);
|
|
1624
1685
|
} catch (error) {
|
|
1625
|
-
CollectionPrototype[ITERATOR$
|
|
1686
|
+
CollectionPrototype[ITERATOR$4] = ArrayValues;
|
|
1626
1687
|
}
|
|
1627
1688
|
if (!CollectionPrototype[TO_STRING_TAG$2]) {
|
|
1628
1689
|
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$2, COLLECTION_NAME);
|
|
@@ -1639,7 +1700,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1639
1700
|
};
|
|
1640
1701
|
|
|
1641
1702
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1642
|
-
handlePrototype(global$
|
|
1703
|
+
handlePrototype(global$h[COLLECTION_NAME] && global$h[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1643
1704
|
}
|
|
1644
1705
|
|
|
1645
1706
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
@@ -1674,16 +1735,6 @@ const Flexbox = ({
|
|
|
1674
1735
|
}), void 0);
|
|
1675
1736
|
};
|
|
1676
1737
|
|
|
1677
|
-
function Group({
|
|
1678
|
-
children
|
|
1679
|
-
}) {
|
|
1680
|
-
return jsx("div", Object.assign({
|
|
1681
|
-
className: "group"
|
|
1682
|
-
}, {
|
|
1683
|
-
children: children
|
|
1684
|
-
}), void 0);
|
|
1685
|
-
}
|
|
1686
|
-
|
|
1687
1738
|
function Card({
|
|
1688
1739
|
children,
|
|
1689
1740
|
header,
|
|
@@ -1784,23 +1835,45 @@ function Form({
|
|
|
1784
1835
|
}), void 0);
|
|
1785
1836
|
}
|
|
1786
1837
|
|
|
1787
|
-
|
|
1838
|
+
function Group({
|
|
1839
|
+
children,
|
|
1840
|
+
error,
|
|
1841
|
+
groupBorder = false
|
|
1842
|
+
}) {
|
|
1843
|
+
const groupClassName = `group ${groupBorder ? 'group-border' : ''} ${error ? 'is-invalid' : ''}`;
|
|
1844
|
+
const errorMessage = error ? error.message || error : '';
|
|
1845
|
+
return jsxs("div", Object.assign({
|
|
1846
|
+
className: "form-group"
|
|
1847
|
+
}, {
|
|
1848
|
+
children: [jsx("div", Object.assign({
|
|
1849
|
+
className: groupClassName
|
|
1850
|
+
}, {
|
|
1851
|
+
children: children
|
|
1852
|
+
}), void 0), error && jsx("span", Object.assign({
|
|
1853
|
+
className: "form-info"
|
|
1854
|
+
}, {
|
|
1855
|
+
children: errorMessage
|
|
1856
|
+
}), void 0)]
|
|
1857
|
+
}), void 0);
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
var wellKnownSymbol$7 = wellKnownSymbol$e;
|
|
1788
1861
|
|
|
1789
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$
|
|
1862
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$7('toStringTag');
|
|
1790
1863
|
var test = {};
|
|
1791
1864
|
|
|
1792
1865
|
test[TO_STRING_TAG$1] = 'z';
|
|
1793
1866
|
|
|
1794
1867
|
var toStringTagSupport = String(test) === '[object z]';
|
|
1795
1868
|
|
|
1796
|
-
var global$
|
|
1869
|
+
var global$g = global$E;
|
|
1797
1870
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1798
|
-
var isCallable = isCallable$
|
|
1871
|
+
var isCallable$4 = isCallable$i;
|
|
1799
1872
|
var classofRaw = classofRaw$1;
|
|
1800
|
-
var wellKnownSymbol = wellKnownSymbol$
|
|
1873
|
+
var wellKnownSymbol$6 = wellKnownSymbol$e;
|
|
1801
1874
|
|
|
1802
|
-
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
1803
|
-
var Object$1 = global$
|
|
1875
|
+
var TO_STRING_TAG = wellKnownSymbol$6('toStringTag');
|
|
1876
|
+
var Object$1 = global$g.Object;
|
|
1804
1877
|
|
|
1805
1878
|
// ES3 wrong here
|
|
1806
1879
|
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
@@ -1813,7 +1886,7 @@ var tryGet = function (it, key) {
|
|
|
1813
1886
|
};
|
|
1814
1887
|
|
|
1815
1888
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1816
|
-
var classof$
|
|
1889
|
+
var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
1817
1890
|
var O, tag, result;
|
|
1818
1891
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1819
1892
|
// @@toStringTag case
|
|
@@ -1821,29 +1894,29 @@ var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
|
1821
1894
|
// builtinTag case
|
|
1822
1895
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1823
1896
|
// ES3 arguments fallback
|
|
1824
|
-
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
1897
|
+
: (result = classofRaw(O)) == 'Object' && isCallable$4(O.callee) ? 'Arguments' : result;
|
|
1825
1898
|
};
|
|
1826
1899
|
|
|
1827
|
-
var global$
|
|
1828
|
-
var classof = classof$
|
|
1900
|
+
var global$f = global$E;
|
|
1901
|
+
var classof$3 = classof$4;
|
|
1829
1902
|
|
|
1830
|
-
var String$
|
|
1903
|
+
var String$2 = global$f.String;
|
|
1831
1904
|
|
|
1832
|
-
var toString$
|
|
1833
|
-
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
1834
|
-
return String$
|
|
1905
|
+
var toString$3 = function (argument) {
|
|
1906
|
+
if (classof$3(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
1907
|
+
return String$2(argument);
|
|
1835
1908
|
};
|
|
1836
1909
|
|
|
1837
1910
|
// a string of all valid unicode whitespaces
|
|
1838
1911
|
var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
1839
1912
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
1840
1913
|
|
|
1841
|
-
var uncurryThis$
|
|
1914
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
1842
1915
|
var requireObjectCoercible = requireObjectCoercible$3;
|
|
1843
|
-
var toString$
|
|
1916
|
+
var toString$2 = toString$3;
|
|
1844
1917
|
var whitespaces$1 = whitespaces$2;
|
|
1845
1918
|
|
|
1846
|
-
var replace = uncurryThis$
|
|
1919
|
+
var replace$1 = uncurryThis$5(''.replace);
|
|
1847
1920
|
var whitespace = '[' + whitespaces$1 + ']';
|
|
1848
1921
|
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
|
1849
1922
|
var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
@@ -1851,9 +1924,9 @@ var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
|
1851
1924
|
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
1852
1925
|
var createMethod = function (TYPE) {
|
|
1853
1926
|
return function ($this) {
|
|
1854
|
-
var string = toString$
|
|
1855
|
-
if (TYPE & 1) string = replace(string, ltrim, '');
|
|
1856
|
-
if (TYPE & 2) string = replace(string, rtrim, '');
|
|
1927
|
+
var string = toString$2(requireObjectCoercible($this));
|
|
1928
|
+
if (TYPE & 1) string = replace$1(string, ltrim, '');
|
|
1929
|
+
if (TYPE & 2) string = replace$1(string, rtrim, '');
|
|
1857
1930
|
return string;
|
|
1858
1931
|
};
|
|
1859
1932
|
};
|
|
@@ -1870,35 +1943,35 @@ var stringTrim = {
|
|
|
1870
1943
|
trim: createMethod(3)
|
|
1871
1944
|
};
|
|
1872
1945
|
|
|
1873
|
-
var global$
|
|
1874
|
-
var fails = fails$
|
|
1875
|
-
var uncurryThis = functionUncurryThis;
|
|
1876
|
-
var toString = toString$
|
|
1946
|
+
var global$e = global$E;
|
|
1947
|
+
var fails$2 = fails$d;
|
|
1948
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
1949
|
+
var toString$1 = toString$3;
|
|
1877
1950
|
var trim = stringTrim.trim;
|
|
1878
1951
|
var whitespaces = whitespaces$2;
|
|
1879
1952
|
|
|
1880
|
-
var $parseInt$1 = global$
|
|
1881
|
-
var Symbol$1 = global$
|
|
1882
|
-
var ITERATOR = Symbol$1 && Symbol$1.iterator;
|
|
1953
|
+
var $parseInt$1 = global$e.parseInt;
|
|
1954
|
+
var Symbol$1 = global$e.Symbol;
|
|
1955
|
+
var ITERATOR$3 = Symbol$1 && Symbol$1.iterator;
|
|
1883
1956
|
var hex = /^[+-]?0x/i;
|
|
1884
|
-
var exec = uncurryThis(hex.exec);
|
|
1885
|
-
var FORCED = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
|
|
1957
|
+
var exec$1 = uncurryThis$4(hex.exec);
|
|
1958
|
+
var FORCED$1 = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
|
|
1886
1959
|
// MS Edge 18- broken with boxed symbols
|
|
1887
|
-
|| (ITERATOR && !fails(function () { $parseInt$1(Object(ITERATOR)); }));
|
|
1960
|
+
|| (ITERATOR$3 && !fails$2(function () { $parseInt$1(Object(ITERATOR$3)); }));
|
|
1888
1961
|
|
|
1889
1962
|
// `parseInt` method
|
|
1890
1963
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
1891
|
-
var numberParseInt = FORCED ? function parseInt(string, radix) {
|
|
1892
|
-
var S = trim(toString(string));
|
|
1893
|
-
return $parseInt$1(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
|
|
1964
|
+
var numberParseInt = FORCED$1 ? function parseInt(string, radix) {
|
|
1965
|
+
var S = trim(toString$1(string));
|
|
1966
|
+
return $parseInt$1(S, (radix >>> 0) || (exec$1(hex, S) ? 16 : 10));
|
|
1894
1967
|
} : $parseInt$1;
|
|
1895
1968
|
|
|
1896
|
-
var
|
|
1969
|
+
var $$2 = _export;
|
|
1897
1970
|
var $parseInt = numberParseInt;
|
|
1898
1971
|
|
|
1899
1972
|
// `parseInt` method
|
|
1900
1973
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
1901
|
-
|
|
1974
|
+
$$2({ global: true, forced: parseInt != $parseInt }, {
|
|
1902
1975
|
parseInt: $parseInt
|
|
1903
1976
|
});
|
|
1904
1977
|
|
|
@@ -1910,8 +1983,8 @@ const useInput = (props, evaluator, notify) => {
|
|
|
1910
1983
|
useEffect(() => {
|
|
1911
1984
|
if (ref.current && ref.current.form) {
|
|
1912
1985
|
const resetListener = () => {
|
|
1913
|
-
setValue(props.value);
|
|
1914
|
-
setChecked(props.checked);
|
|
1986
|
+
props.value && setValue(props.value);
|
|
1987
|
+
props.checked && setChecked(props.checked);
|
|
1915
1988
|
};
|
|
1916
1989
|
|
|
1917
1990
|
const form = ref.current.form;
|
|
@@ -1924,8 +1997,8 @@ const useInput = (props, evaluator, notify) => {
|
|
|
1924
1997
|
}, [props]);
|
|
1925
1998
|
|
|
1926
1999
|
const onChange = event => {
|
|
1927
|
-
setValue(event.target.value);
|
|
1928
|
-
setChecked(event.target.checked);
|
|
2000
|
+
props.value && setValue(event.target.value);
|
|
2001
|
+
props.checked && setChecked(event.target.checked);
|
|
1929
2002
|
if (notify) notify(evaluator(event.target));
|
|
1930
2003
|
};
|
|
1931
2004
|
|
|
@@ -1947,7 +2020,12 @@ const RenderInput = (type, props, evaluator, label, info, listener) => {
|
|
|
1947
2020
|
|
|
1948
2021
|
const propsWithDescription = info ? Object.assign(Object.assign({}, inputProps), {
|
|
1949
2022
|
'aria-describedby': `${inputProps.id}_info`
|
|
1950
|
-
}) : inputProps;
|
|
2023
|
+
}) : inputProps; // Render naked
|
|
2024
|
+
|
|
2025
|
+
if (!label && !info) return jsx("input", Object.assign({
|
|
2026
|
+
type: type,
|
|
2027
|
+
value: value
|
|
2028
|
+
}, propsWithDescription), void 0);
|
|
1951
2029
|
return jsxs("div", Object.assign({
|
|
1952
2030
|
className: "form-field"
|
|
1953
2031
|
}, {
|
|
@@ -2011,7 +2089,35 @@ const Checkbox = _a => {
|
|
|
2011
2089
|
}, {
|
|
2012
2090
|
children: [label, jsx("input", Object.assign({
|
|
2013
2091
|
type: "checkbox"
|
|
2014
|
-
}, inputProps), void 0), jsx("span", {}, void 0)]
|
|
2092
|
+
}, inputProps), void 0), jsx("span", {}, void 0), jsx("i", {}, void 0)]
|
|
2093
|
+
}), void 0);
|
|
2094
|
+
};
|
|
2095
|
+
const RadioButton = _a => {
|
|
2096
|
+
var {
|
|
2097
|
+
label,
|
|
2098
|
+
onChangeRadioBtn,
|
|
2099
|
+
validator
|
|
2100
|
+
} = _a,
|
|
2101
|
+
props = __rest(_a, ["label", "onChangeRadioBtn", "validator"]);
|
|
2102
|
+
|
|
2103
|
+
const inputProps = useInput(props, e => {
|
|
2104
|
+
return {
|
|
2105
|
+
value: e.value,
|
|
2106
|
+
checked: e.checked
|
|
2107
|
+
};
|
|
2108
|
+
}, onChangeRadioBtn);
|
|
2109
|
+
return jsxs("label", Object.assign({
|
|
2110
|
+
htmlFor: inputProps.id,
|
|
2111
|
+
className: "form-control"
|
|
2112
|
+
}, {
|
|
2113
|
+
children: [jsx("input", Object.assign({
|
|
2114
|
+
type: "radio",
|
|
2115
|
+
name: "default"
|
|
2116
|
+
}, inputProps, {
|
|
2117
|
+
className: validator
|
|
2118
|
+
}), void 0), jsx("span", {
|
|
2119
|
+
children: label
|
|
2120
|
+
}, void 0), jsx("i", {}, void 0)]
|
|
2015
2121
|
}), void 0);
|
|
2016
2122
|
};
|
|
2017
2123
|
|
|
@@ -2023,6 +2129,1118 @@ const Text = ({
|
|
|
2023
2129
|
children: children
|
|
2024
2130
|
}), void 0);
|
|
2025
2131
|
|
|
2132
|
+
var $$1 = _export;
|
|
2133
|
+
var DESCRIPTORS$1 = descriptors;
|
|
2134
|
+
var global$d = global$E;
|
|
2135
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
2136
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
2137
|
+
var isCallable$3 = isCallable$i;
|
|
2138
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
2139
|
+
var toString = toString$3;
|
|
2140
|
+
var defineProperty = objectDefineProperty.f;
|
|
2141
|
+
var copyConstructorProperties = copyConstructorProperties$2;
|
|
2142
|
+
|
|
2143
|
+
var NativeSymbol = global$d.Symbol;
|
|
2144
|
+
var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
|
|
2145
|
+
|
|
2146
|
+
if (DESCRIPTORS$1 && isCallable$3(NativeSymbol) && (!('description' in SymbolPrototype) ||
|
|
2147
|
+
// Safari 12 bug
|
|
2148
|
+
NativeSymbol().description !== undefined
|
|
2149
|
+
)) {
|
|
2150
|
+
var EmptyStringDescriptionStore = {};
|
|
2151
|
+
// wrap Symbol constructor for correct work with undefined description
|
|
2152
|
+
var SymbolWrapper = function Symbol() {
|
|
2153
|
+
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString(arguments[0]);
|
|
2154
|
+
var result = isPrototypeOf$2(SymbolPrototype, this)
|
|
2155
|
+
? new NativeSymbol(description)
|
|
2156
|
+
// in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
|
|
2157
|
+
: description === undefined ? NativeSymbol() : NativeSymbol(description);
|
|
2158
|
+
if (description === '') EmptyStringDescriptionStore[result] = true;
|
|
2159
|
+
return result;
|
|
2160
|
+
};
|
|
2161
|
+
|
|
2162
|
+
copyConstructorProperties(SymbolWrapper, NativeSymbol);
|
|
2163
|
+
SymbolWrapper.prototype = SymbolPrototype;
|
|
2164
|
+
SymbolPrototype.constructor = SymbolWrapper;
|
|
2165
|
+
|
|
2166
|
+
var NATIVE_SYMBOL = String(NativeSymbol('test')) == 'Symbol(test)';
|
|
2167
|
+
var symbolToString = uncurryThis$3(SymbolPrototype.toString);
|
|
2168
|
+
var symbolValueOf = uncurryThis$3(SymbolPrototype.valueOf);
|
|
2169
|
+
var regexp = /^Symbol\((.*)\)[^)]+$/;
|
|
2170
|
+
var replace = uncurryThis$3(''.replace);
|
|
2171
|
+
var stringSlice = uncurryThis$3(''.slice);
|
|
2172
|
+
|
|
2173
|
+
defineProperty(SymbolPrototype, 'description', {
|
|
2174
|
+
configurable: true,
|
|
2175
|
+
get: function description() {
|
|
2176
|
+
var symbol = symbolValueOf(this);
|
|
2177
|
+
var string = symbolToString(symbol);
|
|
2178
|
+
if (hasOwn$1(EmptyStringDescriptionStore, symbol)) return '';
|
|
2179
|
+
var desc = NATIVE_SYMBOL ? stringSlice(string, 7, -1) : replace(string, regexp, '$1');
|
|
2180
|
+
return desc === '' ? undefined : desc;
|
|
2181
|
+
}
|
|
2182
|
+
});
|
|
2183
|
+
|
|
2184
|
+
$$1({ global: true, forced: true }, {
|
|
2185
|
+
Symbol: SymbolWrapper
|
|
2186
|
+
});
|
|
2187
|
+
}
|
|
2188
|
+
|
|
2189
|
+
var global$c = global$E;
|
|
2190
|
+
|
|
2191
|
+
var nativePromiseConstructor = global$c.Promise;
|
|
2192
|
+
|
|
2193
|
+
var redefine$1 = redefine$5.exports;
|
|
2194
|
+
|
|
2195
|
+
var redefineAll$1 = function (target, src, options) {
|
|
2196
|
+
for (var key in src) redefine$1(target, key, src[key], options);
|
|
2197
|
+
return target;
|
|
2198
|
+
};
|
|
2199
|
+
|
|
2200
|
+
var getBuiltIn$2 = getBuiltIn$7;
|
|
2201
|
+
var definePropertyModule = objectDefineProperty;
|
|
2202
|
+
var wellKnownSymbol$5 = wellKnownSymbol$e;
|
|
2203
|
+
var DESCRIPTORS = descriptors;
|
|
2204
|
+
|
|
2205
|
+
var SPECIES$2 = wellKnownSymbol$5('species');
|
|
2206
|
+
|
|
2207
|
+
var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
2208
|
+
var Constructor = getBuiltIn$2(CONSTRUCTOR_NAME);
|
|
2209
|
+
var defineProperty = definePropertyModule.f;
|
|
2210
|
+
|
|
2211
|
+
if (DESCRIPTORS && Constructor && !Constructor[SPECIES$2]) {
|
|
2212
|
+
defineProperty(Constructor, SPECIES$2, {
|
|
2213
|
+
configurable: true,
|
|
2214
|
+
get: function () { return this; }
|
|
2215
|
+
});
|
|
2216
|
+
}
|
|
2217
|
+
};
|
|
2218
|
+
|
|
2219
|
+
var global$b = global$E;
|
|
2220
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
2221
|
+
|
|
2222
|
+
var TypeError$6 = global$b.TypeError;
|
|
2223
|
+
|
|
2224
|
+
var anInstance$1 = function (it, Prototype) {
|
|
2225
|
+
if (isPrototypeOf$1(Prototype, it)) return it;
|
|
2226
|
+
throw TypeError$6('Incorrect invocation');
|
|
2227
|
+
};
|
|
2228
|
+
|
|
2229
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
2230
|
+
var aCallable$3 = aCallable$5;
|
|
2231
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
2232
|
+
|
|
2233
|
+
var bind$4 = uncurryThis$2(uncurryThis$2.bind);
|
|
2234
|
+
|
|
2235
|
+
// optional / simple context binding
|
|
2236
|
+
var functionBindContext = function (fn, that) {
|
|
2237
|
+
aCallable$3(fn);
|
|
2238
|
+
return that === undefined ? fn : NATIVE_BIND$1 ? bind$4(fn, that) : function (/* ...args */) {
|
|
2239
|
+
return fn.apply(that, arguments);
|
|
2240
|
+
};
|
|
2241
|
+
};
|
|
2242
|
+
|
|
2243
|
+
var wellKnownSymbol$4 = wellKnownSymbol$e;
|
|
2244
|
+
var Iterators$1 = iterators;
|
|
2245
|
+
|
|
2246
|
+
var ITERATOR$2 = wellKnownSymbol$4('iterator');
|
|
2247
|
+
var ArrayPrototype = Array.prototype;
|
|
2248
|
+
|
|
2249
|
+
// check on default Array iterator
|
|
2250
|
+
var isArrayIteratorMethod$1 = function (it) {
|
|
2251
|
+
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
|
|
2252
|
+
};
|
|
2253
|
+
|
|
2254
|
+
var classof$2 = classof$4;
|
|
2255
|
+
var getMethod$1 = getMethod$3;
|
|
2256
|
+
var Iterators = iterators;
|
|
2257
|
+
var wellKnownSymbol$3 = wellKnownSymbol$e;
|
|
2258
|
+
|
|
2259
|
+
var ITERATOR$1 = wellKnownSymbol$3('iterator');
|
|
2260
|
+
|
|
2261
|
+
var getIteratorMethod$2 = function (it) {
|
|
2262
|
+
if (it != undefined) return getMethod$1(it, ITERATOR$1)
|
|
2263
|
+
|| getMethod$1(it, '@@iterator')
|
|
2264
|
+
|| Iterators[classof$2(it)];
|
|
2265
|
+
};
|
|
2266
|
+
|
|
2267
|
+
var global$a = global$E;
|
|
2268
|
+
var call$4 = functionCall;
|
|
2269
|
+
var aCallable$2 = aCallable$5;
|
|
2270
|
+
var anObject$4 = anObject$a;
|
|
2271
|
+
var tryToString$2 = tryToString$4;
|
|
2272
|
+
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
2273
|
+
|
|
2274
|
+
var TypeError$5 = global$a.TypeError;
|
|
2275
|
+
|
|
2276
|
+
var getIterator$1 = function (argument, usingIterator) {
|
|
2277
|
+
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
2278
|
+
if (aCallable$2(iteratorMethod)) return anObject$4(call$4(iteratorMethod, argument));
|
|
2279
|
+
throw TypeError$5(tryToString$2(argument) + ' is not iterable');
|
|
2280
|
+
};
|
|
2281
|
+
|
|
2282
|
+
var call$3 = functionCall;
|
|
2283
|
+
var anObject$3 = anObject$a;
|
|
2284
|
+
var getMethod = getMethod$3;
|
|
2285
|
+
|
|
2286
|
+
var iteratorClose$1 = function (iterator, kind, value) {
|
|
2287
|
+
var innerResult, innerError;
|
|
2288
|
+
anObject$3(iterator);
|
|
2289
|
+
try {
|
|
2290
|
+
innerResult = getMethod(iterator, 'return');
|
|
2291
|
+
if (!innerResult) {
|
|
2292
|
+
if (kind === 'throw') throw value;
|
|
2293
|
+
return value;
|
|
2294
|
+
}
|
|
2295
|
+
innerResult = call$3(innerResult, iterator);
|
|
2296
|
+
} catch (error) {
|
|
2297
|
+
innerError = true;
|
|
2298
|
+
innerResult = error;
|
|
2299
|
+
}
|
|
2300
|
+
if (kind === 'throw') throw value;
|
|
2301
|
+
if (innerError) throw innerResult;
|
|
2302
|
+
anObject$3(innerResult);
|
|
2303
|
+
return value;
|
|
2304
|
+
};
|
|
2305
|
+
|
|
2306
|
+
var global$9 = global$E;
|
|
2307
|
+
var bind$3 = functionBindContext;
|
|
2308
|
+
var call$2 = functionCall;
|
|
2309
|
+
var anObject$2 = anObject$a;
|
|
2310
|
+
var tryToString$1 = tryToString$4;
|
|
2311
|
+
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
2312
|
+
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
2313
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
2314
|
+
var getIterator = getIterator$1;
|
|
2315
|
+
var getIteratorMethod = getIteratorMethod$2;
|
|
2316
|
+
var iteratorClose = iteratorClose$1;
|
|
2317
|
+
|
|
2318
|
+
var TypeError$4 = global$9.TypeError;
|
|
2319
|
+
|
|
2320
|
+
var Result = function (stopped, result) {
|
|
2321
|
+
this.stopped = stopped;
|
|
2322
|
+
this.result = result;
|
|
2323
|
+
};
|
|
2324
|
+
|
|
2325
|
+
var ResultPrototype = Result.prototype;
|
|
2326
|
+
|
|
2327
|
+
var iterate$1 = function (iterable, unboundFunction, options) {
|
|
2328
|
+
var that = options && options.that;
|
|
2329
|
+
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
2330
|
+
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
2331
|
+
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
2332
|
+
var fn = bind$3(unboundFunction, that);
|
|
2333
|
+
var iterator, iterFn, index, length, result, next, step;
|
|
2334
|
+
|
|
2335
|
+
var stop = function (condition) {
|
|
2336
|
+
if (iterator) iteratorClose(iterator, 'normal', condition);
|
|
2337
|
+
return new Result(true, condition);
|
|
2338
|
+
};
|
|
2339
|
+
|
|
2340
|
+
var callFn = function (value) {
|
|
2341
|
+
if (AS_ENTRIES) {
|
|
2342
|
+
anObject$2(value);
|
|
2343
|
+
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
2344
|
+
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
2345
|
+
};
|
|
2346
|
+
|
|
2347
|
+
if (IS_ITERATOR) {
|
|
2348
|
+
iterator = iterable;
|
|
2349
|
+
} else {
|
|
2350
|
+
iterFn = getIteratorMethod(iterable);
|
|
2351
|
+
if (!iterFn) throw TypeError$4(tryToString$1(iterable) + ' is not iterable');
|
|
2352
|
+
// optimisation for array iterators
|
|
2353
|
+
if (isArrayIteratorMethod(iterFn)) {
|
|
2354
|
+
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
2355
|
+
result = callFn(iterable[index]);
|
|
2356
|
+
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
2357
|
+
} return new Result(false);
|
|
2358
|
+
}
|
|
2359
|
+
iterator = getIterator(iterable, iterFn);
|
|
2360
|
+
}
|
|
2361
|
+
|
|
2362
|
+
next = iterator.next;
|
|
2363
|
+
while (!(step = call$2(next, iterator)).done) {
|
|
2364
|
+
try {
|
|
2365
|
+
result = callFn(step.value);
|
|
2366
|
+
} catch (error) {
|
|
2367
|
+
iteratorClose(iterator, 'throw', error);
|
|
2368
|
+
}
|
|
2369
|
+
if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
2370
|
+
} return new Result(false);
|
|
2371
|
+
};
|
|
2372
|
+
|
|
2373
|
+
var wellKnownSymbol$2 = wellKnownSymbol$e;
|
|
2374
|
+
|
|
2375
|
+
var ITERATOR = wellKnownSymbol$2('iterator');
|
|
2376
|
+
var SAFE_CLOSING = false;
|
|
2377
|
+
|
|
2378
|
+
try {
|
|
2379
|
+
var called = 0;
|
|
2380
|
+
var iteratorWithReturn = {
|
|
2381
|
+
next: function () {
|
|
2382
|
+
return { done: !!called++ };
|
|
2383
|
+
},
|
|
2384
|
+
'return': function () {
|
|
2385
|
+
SAFE_CLOSING = true;
|
|
2386
|
+
}
|
|
2387
|
+
};
|
|
2388
|
+
iteratorWithReturn[ITERATOR] = function () {
|
|
2389
|
+
return this;
|
|
2390
|
+
};
|
|
2391
|
+
// eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
|
|
2392
|
+
Array.from(iteratorWithReturn, function () { throw 2; });
|
|
2393
|
+
} catch (error) { /* empty */ }
|
|
2394
|
+
|
|
2395
|
+
var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
|
|
2396
|
+
if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
|
|
2397
|
+
var ITERATION_SUPPORT = false;
|
|
2398
|
+
try {
|
|
2399
|
+
var object = {};
|
|
2400
|
+
object[ITERATOR] = function () {
|
|
2401
|
+
return {
|
|
2402
|
+
next: function () {
|
|
2403
|
+
return { done: ITERATION_SUPPORT = true };
|
|
2404
|
+
}
|
|
2405
|
+
};
|
|
2406
|
+
};
|
|
2407
|
+
exec(object);
|
|
2408
|
+
} catch (error) { /* empty */ }
|
|
2409
|
+
return ITERATION_SUPPORT;
|
|
2410
|
+
};
|
|
2411
|
+
|
|
2412
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
2413
|
+
var fails$1 = fails$d;
|
|
2414
|
+
var isCallable$2 = isCallable$i;
|
|
2415
|
+
var classof$1 = classof$4;
|
|
2416
|
+
var getBuiltIn$1 = getBuiltIn$7;
|
|
2417
|
+
var inspectSource$1 = inspectSource$4;
|
|
2418
|
+
|
|
2419
|
+
var noop = function () { /* empty */ };
|
|
2420
|
+
var empty = [];
|
|
2421
|
+
var construct = getBuiltIn$1('Reflect', 'construct');
|
|
2422
|
+
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
2423
|
+
var exec = uncurryThis$1(constructorRegExp.exec);
|
|
2424
|
+
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
2425
|
+
|
|
2426
|
+
var isConstructorModern = function isConstructor(argument) {
|
|
2427
|
+
if (!isCallable$2(argument)) return false;
|
|
2428
|
+
try {
|
|
2429
|
+
construct(noop, empty, argument);
|
|
2430
|
+
return true;
|
|
2431
|
+
} catch (error) {
|
|
2432
|
+
return false;
|
|
2433
|
+
}
|
|
2434
|
+
};
|
|
2435
|
+
|
|
2436
|
+
var isConstructorLegacy = function isConstructor(argument) {
|
|
2437
|
+
if (!isCallable$2(argument)) return false;
|
|
2438
|
+
switch (classof$1(argument)) {
|
|
2439
|
+
case 'AsyncFunction':
|
|
2440
|
+
case 'GeneratorFunction':
|
|
2441
|
+
case 'AsyncGeneratorFunction': return false;
|
|
2442
|
+
}
|
|
2443
|
+
try {
|
|
2444
|
+
// we can't check .prototype since constructors produced by .bind haven't it
|
|
2445
|
+
// `Function#toString` throws on some built-it function in some legacy engines
|
|
2446
|
+
// (for example, `DOMQuad` and similar in FF41-)
|
|
2447
|
+
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
|
|
2448
|
+
} catch (error) {
|
|
2449
|
+
return true;
|
|
2450
|
+
}
|
|
2451
|
+
};
|
|
2452
|
+
|
|
2453
|
+
isConstructorLegacy.sham = true;
|
|
2454
|
+
|
|
2455
|
+
// `IsConstructor` abstract operation
|
|
2456
|
+
// https://tc39.es/ecma262/#sec-isconstructor
|
|
2457
|
+
var isConstructor$1 = !construct || fails$1(function () {
|
|
2458
|
+
var called;
|
|
2459
|
+
return isConstructorModern(isConstructorModern.call)
|
|
2460
|
+
|| !isConstructorModern(Object)
|
|
2461
|
+
|| !isConstructorModern(function () { called = true; })
|
|
2462
|
+
|| called;
|
|
2463
|
+
}) ? isConstructorLegacy : isConstructorModern;
|
|
2464
|
+
|
|
2465
|
+
var global$8 = global$E;
|
|
2466
|
+
var isConstructor = isConstructor$1;
|
|
2467
|
+
var tryToString = tryToString$4;
|
|
2468
|
+
|
|
2469
|
+
var TypeError$3 = global$8.TypeError;
|
|
2470
|
+
|
|
2471
|
+
// `Assert: IsConstructor(argument) is true`
|
|
2472
|
+
var aConstructor$1 = function (argument) {
|
|
2473
|
+
if (isConstructor(argument)) return argument;
|
|
2474
|
+
throw TypeError$3(tryToString(argument) + ' is not a constructor');
|
|
2475
|
+
};
|
|
2476
|
+
|
|
2477
|
+
var anObject$1 = anObject$a;
|
|
2478
|
+
var aConstructor = aConstructor$1;
|
|
2479
|
+
var wellKnownSymbol$1 = wellKnownSymbol$e;
|
|
2480
|
+
|
|
2481
|
+
var SPECIES$1 = wellKnownSymbol$1('species');
|
|
2482
|
+
|
|
2483
|
+
// `SpeciesConstructor` abstract operation
|
|
2484
|
+
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
2485
|
+
var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
2486
|
+
var C = anObject$1(O).constructor;
|
|
2487
|
+
var S;
|
|
2488
|
+
return C === undefined || (S = anObject$1(C)[SPECIES$1]) == undefined ? defaultConstructor : aConstructor(S);
|
|
2489
|
+
};
|
|
2490
|
+
|
|
2491
|
+
var NATIVE_BIND = functionBindNative;
|
|
2492
|
+
|
|
2493
|
+
var FunctionPrototype = Function.prototype;
|
|
2494
|
+
var apply$1 = FunctionPrototype.apply;
|
|
2495
|
+
var call$1 = FunctionPrototype.call;
|
|
2496
|
+
|
|
2497
|
+
// eslint-disable-next-line es/no-reflect -- safe
|
|
2498
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$1.bind(apply$1) : function () {
|
|
2499
|
+
return call$1.apply(apply$1, arguments);
|
|
2500
|
+
});
|
|
2501
|
+
|
|
2502
|
+
var uncurryThis = functionUncurryThis;
|
|
2503
|
+
|
|
2504
|
+
var arraySlice$1 = uncurryThis([].slice);
|
|
2505
|
+
|
|
2506
|
+
var global$7 = global$E;
|
|
2507
|
+
|
|
2508
|
+
var TypeError$2 = global$7.TypeError;
|
|
2509
|
+
|
|
2510
|
+
var validateArgumentsLength$1 = function (passed, required) {
|
|
2511
|
+
if (passed < required) throw TypeError$2('Not enough arguments');
|
|
2512
|
+
return passed;
|
|
2513
|
+
};
|
|
2514
|
+
|
|
2515
|
+
var userAgent$2 = engineUserAgent;
|
|
2516
|
+
|
|
2517
|
+
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
2518
|
+
|
|
2519
|
+
var classof = classofRaw$1;
|
|
2520
|
+
var global$6 = global$E;
|
|
2521
|
+
|
|
2522
|
+
var engineIsNode = classof(global$6.process) == 'process';
|
|
2523
|
+
|
|
2524
|
+
var global$5 = global$E;
|
|
2525
|
+
var apply = functionApply;
|
|
2526
|
+
var bind$2 = functionBindContext;
|
|
2527
|
+
var isCallable$1 = isCallable$i;
|
|
2528
|
+
var hasOwn = hasOwnProperty_1;
|
|
2529
|
+
var fails = fails$d;
|
|
2530
|
+
var html = html$2;
|
|
2531
|
+
var arraySlice = arraySlice$1;
|
|
2532
|
+
var createElement = documentCreateElement$2;
|
|
2533
|
+
var validateArgumentsLength = validateArgumentsLength$1;
|
|
2534
|
+
var IS_IOS$1 = engineIsIos;
|
|
2535
|
+
var IS_NODE$2 = engineIsNode;
|
|
2536
|
+
|
|
2537
|
+
var set = global$5.setImmediate;
|
|
2538
|
+
var clear = global$5.clearImmediate;
|
|
2539
|
+
var process$2 = global$5.process;
|
|
2540
|
+
var Dispatch = global$5.Dispatch;
|
|
2541
|
+
var Function$1 = global$5.Function;
|
|
2542
|
+
var MessageChannel = global$5.MessageChannel;
|
|
2543
|
+
var String$1 = global$5.String;
|
|
2544
|
+
var counter = 0;
|
|
2545
|
+
var queue$1 = {};
|
|
2546
|
+
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
2547
|
+
var location, defer, channel, port;
|
|
2548
|
+
|
|
2549
|
+
try {
|
|
2550
|
+
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
2551
|
+
location = global$5.location;
|
|
2552
|
+
} catch (error) { /* empty */ }
|
|
2553
|
+
|
|
2554
|
+
var run = function (id) {
|
|
2555
|
+
if (hasOwn(queue$1, id)) {
|
|
2556
|
+
var fn = queue$1[id];
|
|
2557
|
+
delete queue$1[id];
|
|
2558
|
+
fn();
|
|
2559
|
+
}
|
|
2560
|
+
};
|
|
2561
|
+
|
|
2562
|
+
var runner = function (id) {
|
|
2563
|
+
return function () {
|
|
2564
|
+
run(id);
|
|
2565
|
+
};
|
|
2566
|
+
};
|
|
2567
|
+
|
|
2568
|
+
var listener = function (event) {
|
|
2569
|
+
run(event.data);
|
|
2570
|
+
};
|
|
2571
|
+
|
|
2572
|
+
var post = function (id) {
|
|
2573
|
+
// old engines have not location.origin
|
|
2574
|
+
global$5.postMessage(String$1(id), location.protocol + '//' + location.host);
|
|
2575
|
+
};
|
|
2576
|
+
|
|
2577
|
+
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
2578
|
+
if (!set || !clear) {
|
|
2579
|
+
set = function setImmediate(handler) {
|
|
2580
|
+
validateArgumentsLength(arguments.length, 1);
|
|
2581
|
+
var fn = isCallable$1(handler) ? handler : Function$1(handler);
|
|
2582
|
+
var args = arraySlice(arguments, 1);
|
|
2583
|
+
queue$1[++counter] = function () {
|
|
2584
|
+
apply(fn, undefined, args);
|
|
2585
|
+
};
|
|
2586
|
+
defer(counter);
|
|
2587
|
+
return counter;
|
|
2588
|
+
};
|
|
2589
|
+
clear = function clearImmediate(id) {
|
|
2590
|
+
delete queue$1[id];
|
|
2591
|
+
};
|
|
2592
|
+
// Node.js 0.8-
|
|
2593
|
+
if (IS_NODE$2) {
|
|
2594
|
+
defer = function (id) {
|
|
2595
|
+
process$2.nextTick(runner(id));
|
|
2596
|
+
};
|
|
2597
|
+
// Sphere (JS game engine) Dispatch API
|
|
2598
|
+
} else if (Dispatch && Dispatch.now) {
|
|
2599
|
+
defer = function (id) {
|
|
2600
|
+
Dispatch.now(runner(id));
|
|
2601
|
+
};
|
|
2602
|
+
// Browsers with MessageChannel, includes WebWorkers
|
|
2603
|
+
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
2604
|
+
} else if (MessageChannel && !IS_IOS$1) {
|
|
2605
|
+
channel = new MessageChannel();
|
|
2606
|
+
port = channel.port2;
|
|
2607
|
+
channel.port1.onmessage = listener;
|
|
2608
|
+
defer = bind$2(port.postMessage, port);
|
|
2609
|
+
// Browsers with postMessage, skip WebWorkers
|
|
2610
|
+
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
2611
|
+
} else if (
|
|
2612
|
+
global$5.addEventListener &&
|
|
2613
|
+
isCallable$1(global$5.postMessage) &&
|
|
2614
|
+
!global$5.importScripts &&
|
|
2615
|
+
location && location.protocol !== 'file:' &&
|
|
2616
|
+
!fails(post)
|
|
2617
|
+
) {
|
|
2618
|
+
defer = post;
|
|
2619
|
+
global$5.addEventListener('message', listener, false);
|
|
2620
|
+
// IE8-
|
|
2621
|
+
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
2622
|
+
defer = function (id) {
|
|
2623
|
+
html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
|
|
2624
|
+
html.removeChild(this);
|
|
2625
|
+
run(id);
|
|
2626
|
+
};
|
|
2627
|
+
};
|
|
2628
|
+
// Rest old browsers
|
|
2629
|
+
} else {
|
|
2630
|
+
defer = function (id) {
|
|
2631
|
+
setTimeout(runner(id), 0);
|
|
2632
|
+
};
|
|
2633
|
+
}
|
|
2634
|
+
}
|
|
2635
|
+
|
|
2636
|
+
var task$1 = {
|
|
2637
|
+
set: set,
|
|
2638
|
+
clear: clear
|
|
2639
|
+
};
|
|
2640
|
+
|
|
2641
|
+
var userAgent$1 = engineUserAgent;
|
|
2642
|
+
var global$4 = global$E;
|
|
2643
|
+
|
|
2644
|
+
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$4.Pebble !== undefined;
|
|
2645
|
+
|
|
2646
|
+
var userAgent = engineUserAgent;
|
|
2647
|
+
|
|
2648
|
+
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
2649
|
+
|
|
2650
|
+
var global$3 = global$E;
|
|
2651
|
+
var bind$1 = functionBindContext;
|
|
2652
|
+
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
2653
|
+
var macrotask = task$1.set;
|
|
2654
|
+
var IS_IOS = engineIsIos;
|
|
2655
|
+
var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
2656
|
+
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
2657
|
+
var IS_NODE$1 = engineIsNode;
|
|
2658
|
+
|
|
2659
|
+
var MutationObserver = global$3.MutationObserver || global$3.WebKitMutationObserver;
|
|
2660
|
+
var document$2 = global$3.document;
|
|
2661
|
+
var process$1 = global$3.process;
|
|
2662
|
+
var Promise$1 = global$3.Promise;
|
|
2663
|
+
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
2664
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$3, 'queueMicrotask');
|
|
2665
|
+
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
2666
|
+
|
|
2667
|
+
var flush, head, last, notify$1, toggle, node, promise, then;
|
|
2668
|
+
|
|
2669
|
+
// modern engines have queueMicrotask method
|
|
2670
|
+
if (!queueMicrotask) {
|
|
2671
|
+
flush = function () {
|
|
2672
|
+
var parent, fn;
|
|
2673
|
+
if (IS_NODE$1 && (parent = process$1.domain)) parent.exit();
|
|
2674
|
+
while (head) {
|
|
2675
|
+
fn = head.fn;
|
|
2676
|
+
head = head.next;
|
|
2677
|
+
try {
|
|
2678
|
+
fn();
|
|
2679
|
+
} catch (error) {
|
|
2680
|
+
if (head) notify$1();
|
|
2681
|
+
else last = undefined;
|
|
2682
|
+
throw error;
|
|
2683
|
+
}
|
|
2684
|
+
} last = undefined;
|
|
2685
|
+
if (parent) parent.enter();
|
|
2686
|
+
};
|
|
2687
|
+
|
|
2688
|
+
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
2689
|
+
// also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
|
|
2690
|
+
if (!IS_IOS && !IS_NODE$1 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
|
|
2691
|
+
toggle = true;
|
|
2692
|
+
node = document$2.createTextNode('');
|
|
2693
|
+
new MutationObserver(flush).observe(node, { characterData: true });
|
|
2694
|
+
notify$1 = function () {
|
|
2695
|
+
node.data = toggle = !toggle;
|
|
2696
|
+
};
|
|
2697
|
+
// environments with maybe non-completely correct, but existent Promise
|
|
2698
|
+
} else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
|
|
2699
|
+
// Promise.resolve without an argument throws an error in LG WebOS 2
|
|
2700
|
+
promise = Promise$1.resolve(undefined);
|
|
2701
|
+
// workaround of WebKit ~ iOS Safari 10.1 bug
|
|
2702
|
+
promise.constructor = Promise$1;
|
|
2703
|
+
then = bind$1(promise.then, promise);
|
|
2704
|
+
notify$1 = function () {
|
|
2705
|
+
then(flush);
|
|
2706
|
+
};
|
|
2707
|
+
// Node.js without promises
|
|
2708
|
+
} else if (IS_NODE$1) {
|
|
2709
|
+
notify$1 = function () {
|
|
2710
|
+
process$1.nextTick(flush);
|
|
2711
|
+
};
|
|
2712
|
+
// for other environments - macrotask based on:
|
|
2713
|
+
// - setImmediate
|
|
2714
|
+
// - MessageChannel
|
|
2715
|
+
// - window.postMessag
|
|
2716
|
+
// - onreadystatechange
|
|
2717
|
+
// - setTimeout
|
|
2718
|
+
} else {
|
|
2719
|
+
// strange IE + webpack dev server bug - use .bind(global)
|
|
2720
|
+
macrotask = bind$1(macrotask, global$3);
|
|
2721
|
+
notify$1 = function () {
|
|
2722
|
+
macrotask(flush);
|
|
2723
|
+
};
|
|
2724
|
+
}
|
|
2725
|
+
}
|
|
2726
|
+
|
|
2727
|
+
var microtask$1 = queueMicrotask || function (fn) {
|
|
2728
|
+
var task = { fn: fn, next: undefined };
|
|
2729
|
+
if (last) last.next = task;
|
|
2730
|
+
if (!head) {
|
|
2731
|
+
head = task;
|
|
2732
|
+
notify$1();
|
|
2733
|
+
} last = task;
|
|
2734
|
+
};
|
|
2735
|
+
|
|
2736
|
+
var newPromiseCapability$2 = {};
|
|
2737
|
+
|
|
2738
|
+
var aCallable$1 = aCallable$5;
|
|
2739
|
+
|
|
2740
|
+
var PromiseCapability = function (C) {
|
|
2741
|
+
var resolve, reject;
|
|
2742
|
+
this.promise = new C(function ($$resolve, $$reject) {
|
|
2743
|
+
if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
|
|
2744
|
+
resolve = $$resolve;
|
|
2745
|
+
reject = $$reject;
|
|
2746
|
+
});
|
|
2747
|
+
this.resolve = aCallable$1(resolve);
|
|
2748
|
+
this.reject = aCallable$1(reject);
|
|
2749
|
+
};
|
|
2750
|
+
|
|
2751
|
+
// `NewPromiseCapability` abstract operation
|
|
2752
|
+
// https://tc39.es/ecma262/#sec-newpromisecapability
|
|
2753
|
+
newPromiseCapability$2.f = function (C) {
|
|
2754
|
+
return new PromiseCapability(C);
|
|
2755
|
+
};
|
|
2756
|
+
|
|
2757
|
+
var anObject = anObject$a;
|
|
2758
|
+
var isObject$1 = isObject$7;
|
|
2759
|
+
var newPromiseCapability$1 = newPromiseCapability$2;
|
|
2760
|
+
|
|
2761
|
+
var promiseResolve$1 = function (C, x) {
|
|
2762
|
+
anObject(C);
|
|
2763
|
+
if (isObject$1(x) && x.constructor === C) return x;
|
|
2764
|
+
var promiseCapability = newPromiseCapability$1.f(C);
|
|
2765
|
+
var resolve = promiseCapability.resolve;
|
|
2766
|
+
resolve(x);
|
|
2767
|
+
return promiseCapability.promise;
|
|
2768
|
+
};
|
|
2769
|
+
|
|
2770
|
+
var global$2 = global$E;
|
|
2771
|
+
|
|
2772
|
+
var hostReportErrors$1 = function (a, b) {
|
|
2773
|
+
var console = global$2.console;
|
|
2774
|
+
if (console && console.error) {
|
|
2775
|
+
arguments.length == 1 ? console.error(a) : console.error(a, b);
|
|
2776
|
+
}
|
|
2777
|
+
};
|
|
2778
|
+
|
|
2779
|
+
var perform$1 = function (exec) {
|
|
2780
|
+
try {
|
|
2781
|
+
return { error: false, value: exec() };
|
|
2782
|
+
} catch (error) {
|
|
2783
|
+
return { error: true, value: error };
|
|
2784
|
+
}
|
|
2785
|
+
};
|
|
2786
|
+
|
|
2787
|
+
var Queue$1 = function () {
|
|
2788
|
+
this.head = null;
|
|
2789
|
+
this.tail = null;
|
|
2790
|
+
};
|
|
2791
|
+
|
|
2792
|
+
Queue$1.prototype = {
|
|
2793
|
+
add: function (item) {
|
|
2794
|
+
var entry = { item: item, next: null };
|
|
2795
|
+
if (this.head) this.tail.next = entry;
|
|
2796
|
+
else this.head = entry;
|
|
2797
|
+
this.tail = entry;
|
|
2798
|
+
},
|
|
2799
|
+
get: function () {
|
|
2800
|
+
var entry = this.head;
|
|
2801
|
+
if (entry) {
|
|
2802
|
+
this.head = entry.next;
|
|
2803
|
+
if (this.tail === entry) this.tail = null;
|
|
2804
|
+
return entry.item;
|
|
2805
|
+
}
|
|
2806
|
+
}
|
|
2807
|
+
};
|
|
2808
|
+
|
|
2809
|
+
var queue = Queue$1;
|
|
2810
|
+
|
|
2811
|
+
var engineIsBrowser = typeof window == 'object';
|
|
2812
|
+
|
|
2813
|
+
var $ = _export;
|
|
2814
|
+
var global$1 = global$E;
|
|
2815
|
+
var getBuiltIn = getBuiltIn$7;
|
|
2816
|
+
var call = functionCall;
|
|
2817
|
+
var NativePromise = nativePromiseConstructor;
|
|
2818
|
+
var redefine = redefine$5.exports;
|
|
2819
|
+
var redefineAll = redefineAll$1;
|
|
2820
|
+
var setPrototypeOf = objectSetPrototypeOf;
|
|
2821
|
+
var setToStringTag = setToStringTag$3;
|
|
2822
|
+
var setSpecies = setSpecies$1;
|
|
2823
|
+
var aCallable = aCallable$5;
|
|
2824
|
+
var isCallable = isCallable$i;
|
|
2825
|
+
var isObject = isObject$7;
|
|
2826
|
+
var anInstance = anInstance$1;
|
|
2827
|
+
var inspectSource = inspectSource$4;
|
|
2828
|
+
var iterate = iterate$1;
|
|
2829
|
+
var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
|
|
2830
|
+
var speciesConstructor = speciesConstructor$1;
|
|
2831
|
+
var task = task$1.set;
|
|
2832
|
+
var microtask = microtask$1;
|
|
2833
|
+
var promiseResolve = promiseResolve$1;
|
|
2834
|
+
var hostReportErrors = hostReportErrors$1;
|
|
2835
|
+
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
2836
|
+
var perform = perform$1;
|
|
2837
|
+
var Queue = queue;
|
|
2838
|
+
var InternalStateModule = internalState;
|
|
2839
|
+
var isForced = isForced_1;
|
|
2840
|
+
var wellKnownSymbol = wellKnownSymbol$e;
|
|
2841
|
+
var IS_BROWSER = engineIsBrowser;
|
|
2842
|
+
var IS_NODE = engineIsNode;
|
|
2843
|
+
var V8_VERSION = engineV8Version;
|
|
2844
|
+
|
|
2845
|
+
var SPECIES = wellKnownSymbol('species');
|
|
2846
|
+
var PROMISE = 'Promise';
|
|
2847
|
+
|
|
2848
|
+
var getInternalState = InternalStateModule.getterFor(PROMISE);
|
|
2849
|
+
var setInternalState = InternalStateModule.set;
|
|
2850
|
+
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
|
|
2851
|
+
var NativePromisePrototype = NativePromise && NativePromise.prototype;
|
|
2852
|
+
var PromiseConstructor = NativePromise;
|
|
2853
|
+
var PromisePrototype = NativePromisePrototype;
|
|
2854
|
+
var TypeError$1 = global$1.TypeError;
|
|
2855
|
+
var document$1 = global$1.document;
|
|
2856
|
+
var process = global$1.process;
|
|
2857
|
+
var newPromiseCapability = newPromiseCapabilityModule.f;
|
|
2858
|
+
var newGenericPromiseCapability = newPromiseCapability;
|
|
2859
|
+
|
|
2860
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$1.dispatchEvent);
|
|
2861
|
+
var NATIVE_REJECTION_EVENT = isCallable(global$1.PromiseRejectionEvent);
|
|
2862
|
+
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
2863
|
+
var REJECTION_HANDLED = 'rejectionhandled';
|
|
2864
|
+
var PENDING = 0;
|
|
2865
|
+
var FULFILLED = 1;
|
|
2866
|
+
var REJECTED = 2;
|
|
2867
|
+
var HANDLED = 1;
|
|
2868
|
+
var UNHANDLED = 2;
|
|
2869
|
+
var SUBCLASSING = false;
|
|
2870
|
+
|
|
2871
|
+
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
2872
|
+
|
|
2873
|
+
var FORCED = isForced(PROMISE, function () {
|
|
2874
|
+
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);
|
|
2875
|
+
var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);
|
|
2876
|
+
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
|
2877
|
+
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
|
|
2878
|
+
// We can't detect it synchronously, so just check versions
|
|
2879
|
+
if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
|
|
2880
|
+
// We can't use @@species feature detection in V8 since it causes
|
|
2881
|
+
// deoptimization and performance degradation
|
|
2882
|
+
// https://github.com/zloirock/core-js/issues/679
|
|
2883
|
+
if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false;
|
|
2884
|
+
// Detect correctness of subclassing with @@species support
|
|
2885
|
+
var promise = new PromiseConstructor(function (resolve) { resolve(1); });
|
|
2886
|
+
var FakePromise = function (exec) {
|
|
2887
|
+
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
2888
|
+
};
|
|
2889
|
+
var constructor = promise.constructor = {};
|
|
2890
|
+
constructor[SPECIES] = FakePromise;
|
|
2891
|
+
SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
|
|
2892
|
+
if (!SUBCLASSING) return true;
|
|
2893
|
+
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
2894
|
+
return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT;
|
|
2895
|
+
});
|
|
2896
|
+
|
|
2897
|
+
var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
|
|
2898
|
+
PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
|
|
2899
|
+
});
|
|
2900
|
+
|
|
2901
|
+
// helpers
|
|
2902
|
+
var isThenable = function (it) {
|
|
2903
|
+
var then;
|
|
2904
|
+
return isObject(it) && isCallable(then = it.then) ? then : false;
|
|
2905
|
+
};
|
|
2906
|
+
|
|
2907
|
+
var callReaction = function (reaction, state) {
|
|
2908
|
+
var value = state.value;
|
|
2909
|
+
var ok = state.state == FULFILLED;
|
|
2910
|
+
var handler = ok ? reaction.ok : reaction.fail;
|
|
2911
|
+
var resolve = reaction.resolve;
|
|
2912
|
+
var reject = reaction.reject;
|
|
2913
|
+
var domain = reaction.domain;
|
|
2914
|
+
var result, then, exited;
|
|
2915
|
+
try {
|
|
2916
|
+
if (handler) {
|
|
2917
|
+
if (!ok) {
|
|
2918
|
+
if (state.rejection === UNHANDLED) onHandleUnhandled(state);
|
|
2919
|
+
state.rejection = HANDLED;
|
|
2920
|
+
}
|
|
2921
|
+
if (handler === true) result = value;
|
|
2922
|
+
else {
|
|
2923
|
+
if (domain) domain.enter();
|
|
2924
|
+
result = handler(value); // can throw
|
|
2925
|
+
if (domain) {
|
|
2926
|
+
domain.exit();
|
|
2927
|
+
exited = true;
|
|
2928
|
+
}
|
|
2929
|
+
}
|
|
2930
|
+
if (result === reaction.promise) {
|
|
2931
|
+
reject(TypeError$1('Promise-chain cycle'));
|
|
2932
|
+
} else if (then = isThenable(result)) {
|
|
2933
|
+
call(then, result, resolve, reject);
|
|
2934
|
+
} else resolve(result);
|
|
2935
|
+
} else reject(value);
|
|
2936
|
+
} catch (error) {
|
|
2937
|
+
if (domain && !exited) domain.exit();
|
|
2938
|
+
reject(error);
|
|
2939
|
+
}
|
|
2940
|
+
};
|
|
2941
|
+
|
|
2942
|
+
var notify = function (state, isReject) {
|
|
2943
|
+
if (state.notified) return;
|
|
2944
|
+
state.notified = true;
|
|
2945
|
+
microtask(function () {
|
|
2946
|
+
var reactions = state.reactions;
|
|
2947
|
+
var reaction;
|
|
2948
|
+
while (reaction = reactions.get()) {
|
|
2949
|
+
callReaction(reaction, state);
|
|
2950
|
+
}
|
|
2951
|
+
state.notified = false;
|
|
2952
|
+
if (isReject && !state.rejection) onUnhandled(state);
|
|
2953
|
+
});
|
|
2954
|
+
};
|
|
2955
|
+
|
|
2956
|
+
var dispatchEvent = function (name, promise, reason) {
|
|
2957
|
+
var event, handler;
|
|
2958
|
+
if (DISPATCH_EVENT) {
|
|
2959
|
+
event = document$1.createEvent('Event');
|
|
2960
|
+
event.promise = promise;
|
|
2961
|
+
event.reason = reason;
|
|
2962
|
+
event.initEvent(name, false, true);
|
|
2963
|
+
global$1.dispatchEvent(event);
|
|
2964
|
+
} else event = { promise: promise, reason: reason };
|
|
2965
|
+
if (!NATIVE_REJECTION_EVENT && (handler = global$1['on' + name])) handler(event);
|
|
2966
|
+
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
2967
|
+
};
|
|
2968
|
+
|
|
2969
|
+
var onUnhandled = function (state) {
|
|
2970
|
+
call(task, global$1, function () {
|
|
2971
|
+
var promise = state.facade;
|
|
2972
|
+
var value = state.value;
|
|
2973
|
+
var IS_UNHANDLED = isUnhandled(state);
|
|
2974
|
+
var result;
|
|
2975
|
+
if (IS_UNHANDLED) {
|
|
2976
|
+
result = perform(function () {
|
|
2977
|
+
if (IS_NODE) {
|
|
2978
|
+
process.emit('unhandledRejection', value, promise);
|
|
2979
|
+
} else dispatchEvent(UNHANDLED_REJECTION, promise, value);
|
|
2980
|
+
});
|
|
2981
|
+
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
|
2982
|
+
state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
|
|
2983
|
+
if (result.error) throw result.value;
|
|
2984
|
+
}
|
|
2985
|
+
});
|
|
2986
|
+
};
|
|
2987
|
+
|
|
2988
|
+
var isUnhandled = function (state) {
|
|
2989
|
+
return state.rejection !== HANDLED && !state.parent;
|
|
2990
|
+
};
|
|
2991
|
+
|
|
2992
|
+
var onHandleUnhandled = function (state) {
|
|
2993
|
+
call(task, global$1, function () {
|
|
2994
|
+
var promise = state.facade;
|
|
2995
|
+
if (IS_NODE) {
|
|
2996
|
+
process.emit('rejectionHandled', promise);
|
|
2997
|
+
} else dispatchEvent(REJECTION_HANDLED, promise, state.value);
|
|
2998
|
+
});
|
|
2999
|
+
};
|
|
3000
|
+
|
|
3001
|
+
var bind = function (fn, state, unwrap) {
|
|
3002
|
+
return function (value) {
|
|
3003
|
+
fn(state, value, unwrap);
|
|
3004
|
+
};
|
|
3005
|
+
};
|
|
3006
|
+
|
|
3007
|
+
var internalReject = function (state, value, unwrap) {
|
|
3008
|
+
if (state.done) return;
|
|
3009
|
+
state.done = true;
|
|
3010
|
+
if (unwrap) state = unwrap;
|
|
3011
|
+
state.value = value;
|
|
3012
|
+
state.state = REJECTED;
|
|
3013
|
+
notify(state, true);
|
|
3014
|
+
};
|
|
3015
|
+
|
|
3016
|
+
var internalResolve = function (state, value, unwrap) {
|
|
3017
|
+
if (state.done) return;
|
|
3018
|
+
state.done = true;
|
|
3019
|
+
if (unwrap) state = unwrap;
|
|
3020
|
+
try {
|
|
3021
|
+
if (state.facade === value) throw TypeError$1("Promise can't be resolved itself");
|
|
3022
|
+
var then = isThenable(value);
|
|
3023
|
+
if (then) {
|
|
3024
|
+
microtask(function () {
|
|
3025
|
+
var wrapper = { done: false };
|
|
3026
|
+
try {
|
|
3027
|
+
call(then, value,
|
|
3028
|
+
bind(internalResolve, wrapper, state),
|
|
3029
|
+
bind(internalReject, wrapper, state)
|
|
3030
|
+
);
|
|
3031
|
+
} catch (error) {
|
|
3032
|
+
internalReject(wrapper, error, state);
|
|
3033
|
+
}
|
|
3034
|
+
});
|
|
3035
|
+
} else {
|
|
3036
|
+
state.value = value;
|
|
3037
|
+
state.state = FULFILLED;
|
|
3038
|
+
notify(state, false);
|
|
3039
|
+
}
|
|
3040
|
+
} catch (error) {
|
|
3041
|
+
internalReject({ done: false }, error, state);
|
|
3042
|
+
}
|
|
3043
|
+
};
|
|
3044
|
+
|
|
3045
|
+
// constructor polyfill
|
|
3046
|
+
if (FORCED) {
|
|
3047
|
+
// 25.4.3.1 Promise(executor)
|
|
3048
|
+
PromiseConstructor = function Promise(executor) {
|
|
3049
|
+
anInstance(this, PromisePrototype);
|
|
3050
|
+
aCallable(executor);
|
|
3051
|
+
call(Internal, this);
|
|
3052
|
+
var state = getInternalState(this);
|
|
3053
|
+
try {
|
|
3054
|
+
executor(bind(internalResolve, state), bind(internalReject, state));
|
|
3055
|
+
} catch (error) {
|
|
3056
|
+
internalReject(state, error);
|
|
3057
|
+
}
|
|
3058
|
+
};
|
|
3059
|
+
PromisePrototype = PromiseConstructor.prototype;
|
|
3060
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
3061
|
+
Internal = function Promise(executor) {
|
|
3062
|
+
setInternalState(this, {
|
|
3063
|
+
type: PROMISE,
|
|
3064
|
+
done: false,
|
|
3065
|
+
notified: false,
|
|
3066
|
+
parent: false,
|
|
3067
|
+
reactions: new Queue(),
|
|
3068
|
+
rejection: false,
|
|
3069
|
+
state: PENDING,
|
|
3070
|
+
value: undefined
|
|
3071
|
+
});
|
|
3072
|
+
};
|
|
3073
|
+
Internal.prototype = redefineAll(PromisePrototype, {
|
|
3074
|
+
// `Promise.prototype.then` method
|
|
3075
|
+
// https://tc39.es/ecma262/#sec-promise.prototype.then
|
|
3076
|
+
// eslint-disable-next-line unicorn/no-thenable -- safe
|
|
3077
|
+
then: function then(onFulfilled, onRejected) {
|
|
3078
|
+
var state = getInternalPromiseState(this);
|
|
3079
|
+
var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
|
|
3080
|
+
state.parent = true;
|
|
3081
|
+
reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;
|
|
3082
|
+
reaction.fail = isCallable(onRejected) && onRejected;
|
|
3083
|
+
reaction.domain = IS_NODE ? process.domain : undefined;
|
|
3084
|
+
if (state.state == PENDING) state.reactions.add(reaction);
|
|
3085
|
+
else microtask(function () {
|
|
3086
|
+
callReaction(reaction, state);
|
|
3087
|
+
});
|
|
3088
|
+
return reaction.promise;
|
|
3089
|
+
},
|
|
3090
|
+
// `Promise.prototype.catch` method
|
|
3091
|
+
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
3092
|
+
'catch': function (onRejected) {
|
|
3093
|
+
return this.then(undefined, onRejected);
|
|
3094
|
+
}
|
|
3095
|
+
});
|
|
3096
|
+
OwnPromiseCapability = function () {
|
|
3097
|
+
var promise = new Internal();
|
|
3098
|
+
var state = getInternalState(promise);
|
|
3099
|
+
this.promise = promise;
|
|
3100
|
+
this.resolve = bind(internalResolve, state);
|
|
3101
|
+
this.reject = bind(internalReject, state);
|
|
3102
|
+
};
|
|
3103
|
+
newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
|
|
3104
|
+
return C === PromiseConstructor || C === PromiseWrapper
|
|
3105
|
+
? new OwnPromiseCapability(C)
|
|
3106
|
+
: newGenericPromiseCapability(C);
|
|
3107
|
+
};
|
|
3108
|
+
|
|
3109
|
+
if (isCallable(NativePromise) && NativePromisePrototype !== Object.prototype) {
|
|
3110
|
+
nativeThen = NativePromisePrototype.then;
|
|
3111
|
+
|
|
3112
|
+
if (!SUBCLASSING) {
|
|
3113
|
+
// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
|
|
3114
|
+
redefine(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
|
|
3115
|
+
var that = this;
|
|
3116
|
+
return new PromiseConstructor(function (resolve, reject) {
|
|
3117
|
+
call(nativeThen, that, resolve, reject);
|
|
3118
|
+
}).then(onFulfilled, onRejected);
|
|
3119
|
+
// https://github.com/zloirock/core-js/issues/640
|
|
3120
|
+
}, { unsafe: true });
|
|
3121
|
+
|
|
3122
|
+
// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
|
|
3123
|
+
redefine(NativePromisePrototype, 'catch', PromisePrototype['catch'], { unsafe: true });
|
|
3124
|
+
}
|
|
3125
|
+
|
|
3126
|
+
// make `.constructor === Promise` work for native promise-based APIs
|
|
3127
|
+
try {
|
|
3128
|
+
delete NativePromisePrototype.constructor;
|
|
3129
|
+
} catch (error) { /* empty */ }
|
|
3130
|
+
|
|
3131
|
+
// make `instanceof Promise` work for native promise-based APIs
|
|
3132
|
+
if (setPrototypeOf) {
|
|
3133
|
+
setPrototypeOf(NativePromisePrototype, PromisePrototype);
|
|
3134
|
+
}
|
|
3135
|
+
}
|
|
3136
|
+
}
|
|
3137
|
+
|
|
3138
|
+
$({ global: true, wrap: true, forced: FORCED }, {
|
|
3139
|
+
Promise: PromiseConstructor
|
|
3140
|
+
});
|
|
3141
|
+
|
|
3142
|
+
setToStringTag(PromiseConstructor, PROMISE, false);
|
|
3143
|
+
setSpecies(PROMISE);
|
|
3144
|
+
|
|
3145
|
+
PromiseWrapper = getBuiltIn(PROMISE);
|
|
3146
|
+
|
|
3147
|
+
// statics
|
|
3148
|
+
$({ target: PROMISE, stat: true, forced: FORCED }, {
|
|
3149
|
+
// `Promise.reject` method
|
|
3150
|
+
// https://tc39.es/ecma262/#sec-promise.reject
|
|
3151
|
+
reject: function reject(r) {
|
|
3152
|
+
var capability = newPromiseCapability(this);
|
|
3153
|
+
call(capability.reject, undefined, r);
|
|
3154
|
+
return capability.promise;
|
|
3155
|
+
}
|
|
3156
|
+
});
|
|
3157
|
+
|
|
3158
|
+
$({ target: PROMISE, stat: true, forced: FORCED }, {
|
|
3159
|
+
// `Promise.resolve` method
|
|
3160
|
+
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
3161
|
+
resolve: function resolve(x) {
|
|
3162
|
+
return promiseResolve(this, x);
|
|
3163
|
+
}
|
|
3164
|
+
});
|
|
3165
|
+
|
|
3166
|
+
$({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
|
|
3167
|
+
// `Promise.all` method
|
|
3168
|
+
// https://tc39.es/ecma262/#sec-promise.all
|
|
3169
|
+
all: function all(iterable) {
|
|
3170
|
+
var C = this;
|
|
3171
|
+
var capability = newPromiseCapability(C);
|
|
3172
|
+
var resolve = capability.resolve;
|
|
3173
|
+
var reject = capability.reject;
|
|
3174
|
+
var result = perform(function () {
|
|
3175
|
+
var $promiseResolve = aCallable(C.resolve);
|
|
3176
|
+
var values = [];
|
|
3177
|
+
var counter = 0;
|
|
3178
|
+
var remaining = 1;
|
|
3179
|
+
iterate(iterable, function (promise) {
|
|
3180
|
+
var index = counter++;
|
|
3181
|
+
var alreadyCalled = false;
|
|
3182
|
+
remaining++;
|
|
3183
|
+
call($promiseResolve, C, promise).then(function (value) {
|
|
3184
|
+
if (alreadyCalled) return;
|
|
3185
|
+
alreadyCalled = true;
|
|
3186
|
+
values[index] = value;
|
|
3187
|
+
--remaining || resolve(values);
|
|
3188
|
+
}, reject);
|
|
3189
|
+
});
|
|
3190
|
+
--remaining || resolve(values);
|
|
3191
|
+
});
|
|
3192
|
+
if (result.error) reject(result.value);
|
|
3193
|
+
return capability.promise;
|
|
3194
|
+
},
|
|
3195
|
+
// `Promise.race` method
|
|
3196
|
+
// https://tc39.es/ecma262/#sec-promise.race
|
|
3197
|
+
race: function race(iterable) {
|
|
3198
|
+
var C = this;
|
|
3199
|
+
var capability = newPromiseCapability(C);
|
|
3200
|
+
var reject = capability.reject;
|
|
3201
|
+
var result = perform(function () {
|
|
3202
|
+
var $promiseResolve = aCallable(C.resolve);
|
|
3203
|
+
iterate(iterable, function (promise) {
|
|
3204
|
+
call($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
3205
|
+
});
|
|
3206
|
+
});
|
|
3207
|
+
if (result.error) reject(result.value);
|
|
3208
|
+
return capability.promise;
|
|
3209
|
+
}
|
|
3210
|
+
});
|
|
3211
|
+
|
|
3212
|
+
const RadioGroup = ({
|
|
3213
|
+
description,
|
|
3214
|
+
title,
|
|
3215
|
+
validator,
|
|
3216
|
+
children
|
|
3217
|
+
}) => {
|
|
3218
|
+
const validatorClassName = validateClassName(validator === null || validator === void 0 ? void 0 : validator.indicator);
|
|
3219
|
+
return jsxs("div", Object.assign({
|
|
3220
|
+
className: "form-group"
|
|
3221
|
+
}, {
|
|
3222
|
+
children: [jsxs("fieldset", Object.assign({
|
|
3223
|
+
className: validatorClassName
|
|
3224
|
+
}, {
|
|
3225
|
+
children: [jsx("legend", {
|
|
3226
|
+
children: title
|
|
3227
|
+
}, void 0), jsx("span", Object.assign({
|
|
3228
|
+
className: "form-info"
|
|
3229
|
+
}, {
|
|
3230
|
+
children: description
|
|
3231
|
+
}), void 0), React.Children.toArray(children).map(child => {
|
|
3232
|
+
return /*#__PURE__*/React.isValidElement(child) ? /*#__PURE__*/React.cloneElement(child, {
|
|
3233
|
+
validator: validatorClassName
|
|
3234
|
+
}) : child;
|
|
3235
|
+
})]
|
|
3236
|
+
}), void 0), (validator === null || validator === void 0 ? void 0 : validator.message) && jsx("span", Object.assign({
|
|
3237
|
+
className: "form-info"
|
|
3238
|
+
}, {
|
|
3239
|
+
children: validator === null || validator === void 0 ? void 0 : validator.message
|
|
3240
|
+
}), void 0)]
|
|
3241
|
+
}), void 0);
|
|
3242
|
+
};
|
|
3243
|
+
|
|
2026
3244
|
const ListItem = _a => {
|
|
2027
3245
|
var {
|
|
2028
3246
|
listType,
|
|
@@ -2165,4 +3383,4 @@ const Navbar = ({
|
|
|
2165
3383
|
}), void 0);
|
|
2166
3384
|
};
|
|
2167
3385
|
|
|
2168
|
-
export { Alert, Button, ButtonGroup, Card, Checkbox, EmailInput, Flexbox, Form, Group, Link, List, Modal, Navbar, NumberInput, Text, TextInput };
|
|
3386
|
+
export { Alert, Button, ButtonGroup, Card, Checkbox, EmailInput, Flexbox, Form, Group, Link, List, Modal, Navbar, NumberInput, RadioButton, RadioGroup, Text, TextInput };
|