@ninetailed/experience.js-plugin-preview 3.0.0-beta.23 → 3.0.0-beta.25
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.cjs +2510 -0
- package/index.js +1470 -252
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -7,7 +7,7 @@ var check = function (it) {
|
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
10
|
-
var global$
|
|
10
|
+
var global$i =
|
|
11
11
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
12
12
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
13
13
|
check(typeof window == 'object' && window) ||
|
|
@@ -19,7 +19,7 @@ var global$a =
|
|
|
19
19
|
|
|
20
20
|
var objectGetOwnPropertyDescriptor = {};
|
|
21
21
|
|
|
22
|
-
var fails$
|
|
22
|
+
var fails$b = function (exec) {
|
|
23
23
|
try {
|
|
24
24
|
return !!exec();
|
|
25
25
|
} catch (error) {
|
|
@@ -27,44 +27,44 @@ var fails$9 = function (exec) {
|
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
var fails$
|
|
30
|
+
var fails$a = fails$b;
|
|
31
31
|
|
|
32
32
|
// Detect IE8's incomplete defineProperty implementation
|
|
33
|
-
var descriptors = !fails$
|
|
33
|
+
var descriptors = !fails$a(function () {
|
|
34
34
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
35
35
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
var fails$
|
|
38
|
+
var fails$9 = fails$b;
|
|
39
39
|
|
|
40
|
-
var functionBindNative = !fails$
|
|
40
|
+
var functionBindNative = !fails$9(function () {
|
|
41
41
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
42
42
|
var test = (function () { /* empty */ }).bind();
|
|
43
43
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
44
44
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
var NATIVE_BIND$
|
|
47
|
+
var NATIVE_BIND$3 = functionBindNative;
|
|
48
48
|
|
|
49
|
-
var call$
|
|
49
|
+
var call$d = Function.prototype.call;
|
|
50
50
|
|
|
51
|
-
var functionCall = NATIVE_BIND$
|
|
52
|
-
return call$
|
|
51
|
+
var functionCall = NATIVE_BIND$3 ? call$d.bind(call$d) : function () {
|
|
52
|
+
return call$d.apply(call$d, arguments);
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
var objectPropertyIsEnumerable = {};
|
|
56
56
|
|
|
57
57
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
58
58
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
59
|
-
var getOwnPropertyDescriptor$
|
|
59
|
+
var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
|
|
60
60
|
|
|
61
61
|
// Nashorn ~ JDK8 bug
|
|
62
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$
|
|
62
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
63
63
|
|
|
64
64
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
65
65
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
66
66
|
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
67
|
-
var descriptor = getOwnPropertyDescriptor$
|
|
67
|
+
var descriptor = getOwnPropertyDescriptor$2(this, V);
|
|
68
68
|
return !!descriptor && descriptor.enumerable;
|
|
69
69
|
} : $propertyIsEnumerable;
|
|
70
70
|
|
|
@@ -77,57 +77,57 @@ var createPropertyDescriptor$2 = function (bitmap, value) {
|
|
|
77
77
|
};
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
-
var NATIVE_BIND = functionBindNative;
|
|
80
|
+
var NATIVE_BIND$2 = functionBindNative;
|
|
81
81
|
|
|
82
|
-
var FunctionPrototype$
|
|
83
|
-
var call$
|
|
84
|
-
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$
|
|
82
|
+
var FunctionPrototype$2 = Function.prototype;
|
|
83
|
+
var call$c = FunctionPrototype$2.call;
|
|
84
|
+
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$c, call$c);
|
|
85
85
|
|
|
86
|
-
var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
86
|
+
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
87
87
|
return function () {
|
|
88
|
-
return call$
|
|
88
|
+
return call$c.apply(fn, arguments);
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
91
|
|
|
92
|
-
var uncurryThis$
|
|
92
|
+
var uncurryThis$d = functionUncurryThis;
|
|
93
93
|
|
|
94
|
-
var toString$1 = uncurryThis$
|
|
95
|
-
var stringSlice = uncurryThis$
|
|
94
|
+
var toString$1 = uncurryThis$d({}.toString);
|
|
95
|
+
var stringSlice = uncurryThis$d(''.slice);
|
|
96
96
|
|
|
97
|
-
var classofRaw = function (it) {
|
|
97
|
+
var classofRaw$2 = function (it) {
|
|
98
98
|
return stringSlice(toString$1(it), 8, -1);
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
var uncurryThis$
|
|
102
|
-
var fails$
|
|
103
|
-
var classof = classofRaw;
|
|
101
|
+
var uncurryThis$c = functionUncurryThis;
|
|
102
|
+
var fails$8 = fails$b;
|
|
103
|
+
var classof$4 = classofRaw$2;
|
|
104
104
|
|
|
105
|
-
var $Object$
|
|
106
|
-
var split = uncurryThis$
|
|
105
|
+
var $Object$3 = Object;
|
|
106
|
+
var split = uncurryThis$c(''.split);
|
|
107
107
|
|
|
108
108
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
109
|
-
var indexedObject = fails$
|
|
109
|
+
var indexedObject = fails$8(function () {
|
|
110
110
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
111
111
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
112
|
-
return !$Object$
|
|
112
|
+
return !$Object$3('z').propertyIsEnumerable(0);
|
|
113
113
|
}) ? function (it) {
|
|
114
|
-
return classof(it) == 'String' ? split(it, '') : $Object$
|
|
115
|
-
} : $Object$
|
|
114
|
+
return classof$4(it) == 'String' ? split(it, '') : $Object$3(it);
|
|
115
|
+
} : $Object$3;
|
|
116
116
|
|
|
117
117
|
// we can't use just `it == null` since of `document.all` special case
|
|
118
118
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
119
|
-
var isNullOrUndefined$
|
|
119
|
+
var isNullOrUndefined$4 = function (it) {
|
|
120
120
|
return it === null || it === undefined;
|
|
121
121
|
};
|
|
122
122
|
|
|
123
|
-
var isNullOrUndefined$
|
|
123
|
+
var isNullOrUndefined$3 = isNullOrUndefined$4;
|
|
124
124
|
|
|
125
|
-
var $TypeError$
|
|
125
|
+
var $TypeError$c = TypeError;
|
|
126
126
|
|
|
127
127
|
// `RequireObjectCoercible` abstract operation
|
|
128
128
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
129
129
|
var requireObjectCoercible$2 = function (it) {
|
|
130
|
-
if (isNullOrUndefined$
|
|
130
|
+
if (isNullOrUndefined$3(it)) throw $TypeError$c("Can't call method on " + it);
|
|
131
131
|
return it;
|
|
132
132
|
};
|
|
133
133
|
|
|
@@ -155,48 +155,48 @@ var documentAll$1 = $documentAll$1.all;
|
|
|
155
155
|
|
|
156
156
|
// `IsCallable` abstract operation
|
|
157
157
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
158
|
-
var isCallable$
|
|
158
|
+
var isCallable$h = $documentAll$1.IS_HTMLDDA ? function (argument) {
|
|
159
159
|
return typeof argument == 'function' || argument === documentAll$1;
|
|
160
160
|
} : function (argument) {
|
|
161
161
|
return typeof argument == 'function';
|
|
162
162
|
};
|
|
163
163
|
|
|
164
|
-
var isCallable$
|
|
164
|
+
var isCallable$g = isCallable$h;
|
|
165
165
|
var $documentAll = documentAll_1;
|
|
166
166
|
|
|
167
167
|
var documentAll = $documentAll.all;
|
|
168
168
|
|
|
169
|
-
var isObject$
|
|
170
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
169
|
+
var isObject$7 = $documentAll.IS_HTMLDDA ? function (it) {
|
|
170
|
+
return typeof it == 'object' ? it !== null : isCallable$g(it) || it === documentAll;
|
|
171
171
|
} : function (it) {
|
|
172
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
172
|
+
return typeof it == 'object' ? it !== null : isCallable$g(it);
|
|
173
173
|
};
|
|
174
174
|
|
|
175
|
-
var global$
|
|
176
|
-
var isCallable$
|
|
175
|
+
var global$h = global$i;
|
|
176
|
+
var isCallable$f = isCallable$h;
|
|
177
177
|
|
|
178
178
|
var aFunction = function (argument) {
|
|
179
|
-
return isCallable$
|
|
179
|
+
return isCallable$f(argument) ? argument : undefined;
|
|
180
180
|
};
|
|
181
181
|
|
|
182
|
-
var getBuiltIn$
|
|
183
|
-
return arguments.length < 2 ? aFunction(global$
|
|
182
|
+
var getBuiltIn$8 = function (namespace, method) {
|
|
183
|
+
return arguments.length < 2 ? aFunction(global$h[namespace]) : global$h[namespace] && global$h[namespace][method];
|
|
184
184
|
};
|
|
185
185
|
|
|
186
|
-
var uncurryThis$
|
|
186
|
+
var uncurryThis$b = functionUncurryThis;
|
|
187
187
|
|
|
188
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
188
|
+
var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
|
|
189
189
|
|
|
190
|
-
var getBuiltIn$
|
|
190
|
+
var getBuiltIn$7 = getBuiltIn$8;
|
|
191
191
|
|
|
192
|
-
var engineUserAgent = getBuiltIn$
|
|
192
|
+
var engineUserAgent = getBuiltIn$7('navigator', 'userAgent') || '';
|
|
193
193
|
|
|
194
|
-
var global$
|
|
195
|
-
var userAgent = engineUserAgent;
|
|
194
|
+
var global$g = global$i;
|
|
195
|
+
var userAgent$3 = engineUserAgent;
|
|
196
196
|
|
|
197
|
-
var process = global$
|
|
198
|
-
var Deno = global$
|
|
199
|
-
var versions = process && process.versions || Deno && Deno.version;
|
|
197
|
+
var process$3 = global$g.process;
|
|
198
|
+
var Deno$1 = global$g.Deno;
|
|
199
|
+
var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
|
|
200
200
|
var v8 = versions && versions.v8;
|
|
201
201
|
var match, version;
|
|
202
202
|
|
|
@@ -209,10 +209,10 @@ if (v8) {
|
|
|
209
209
|
|
|
210
210
|
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
211
211
|
// so check `userAgent` even if `.v8` exists, but 0
|
|
212
|
-
if (!version && userAgent) {
|
|
213
|
-
match = userAgent.match(/Edge\/(\d+)/);
|
|
212
|
+
if (!version && userAgent$3) {
|
|
213
|
+
match = userAgent$3.match(/Edge\/(\d+)/);
|
|
214
214
|
if (!match || match[1] >= 74) {
|
|
215
|
-
match = userAgent.match(/Chrome\/(\d+)/);
|
|
215
|
+
match = userAgent$3.match(/Chrome\/(\d+)/);
|
|
216
216
|
if (match) version = +match[1];
|
|
217
217
|
}
|
|
218
218
|
}
|
|
@@ -221,17 +221,17 @@ var engineV8Version = version;
|
|
|
221
221
|
|
|
222
222
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
223
223
|
|
|
224
|
-
var V8_VERSION = engineV8Version;
|
|
225
|
-
var fails$
|
|
224
|
+
var V8_VERSION$1 = engineV8Version;
|
|
225
|
+
var fails$7 = fails$b;
|
|
226
226
|
|
|
227
227
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
228
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
228
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () {
|
|
229
229
|
var symbol = Symbol();
|
|
230
230
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
231
231
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
232
232
|
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
233
233
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
234
|
-
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
234
|
+
!Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
|
|
235
235
|
});
|
|
236
236
|
|
|
237
237
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
@@ -242,87 +242,87 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
242
242
|
&& !Symbol.sham
|
|
243
243
|
&& typeof Symbol.iterator == 'symbol';
|
|
244
244
|
|
|
245
|
-
var getBuiltIn$
|
|
246
|
-
var isCallable$
|
|
247
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
245
|
+
var getBuiltIn$6 = getBuiltIn$8;
|
|
246
|
+
var isCallable$e = isCallable$h;
|
|
247
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
248
248
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
249
249
|
|
|
250
|
-
var $Object$
|
|
250
|
+
var $Object$2 = Object;
|
|
251
251
|
|
|
252
252
|
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
253
253
|
return typeof it == 'symbol';
|
|
254
254
|
} : function (it) {
|
|
255
|
-
var $Symbol = getBuiltIn$
|
|
256
|
-
return isCallable$
|
|
255
|
+
var $Symbol = getBuiltIn$6('Symbol');
|
|
256
|
+
return isCallable$e($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$2(it));
|
|
257
257
|
};
|
|
258
258
|
|
|
259
|
-
var $String$
|
|
259
|
+
var $String$2 = String;
|
|
260
260
|
|
|
261
|
-
var tryToString$
|
|
261
|
+
var tryToString$4 = function (argument) {
|
|
262
262
|
try {
|
|
263
|
-
return $String$
|
|
263
|
+
return $String$2(argument);
|
|
264
264
|
} catch (error) {
|
|
265
265
|
return 'Object';
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
268
|
|
|
269
|
-
var isCallable$
|
|
270
|
-
var tryToString = tryToString$
|
|
269
|
+
var isCallable$d = isCallable$h;
|
|
270
|
+
var tryToString$3 = tryToString$4;
|
|
271
271
|
|
|
272
|
-
var $TypeError$
|
|
272
|
+
var $TypeError$b = TypeError;
|
|
273
273
|
|
|
274
274
|
// `Assert: IsCallable(argument) is true`
|
|
275
|
-
var aCallable$
|
|
276
|
-
if (isCallable$
|
|
277
|
-
throw $TypeError$
|
|
275
|
+
var aCallable$7 = function (argument) {
|
|
276
|
+
if (isCallable$d(argument)) return argument;
|
|
277
|
+
throw $TypeError$b(tryToString$3(argument) + ' is not a function');
|
|
278
278
|
};
|
|
279
279
|
|
|
280
|
-
var aCallable = aCallable$
|
|
281
|
-
var isNullOrUndefined = isNullOrUndefined$
|
|
280
|
+
var aCallable$6 = aCallable$7;
|
|
281
|
+
var isNullOrUndefined$2 = isNullOrUndefined$4;
|
|
282
282
|
|
|
283
283
|
// `GetMethod` abstract operation
|
|
284
284
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
285
|
-
var getMethod$
|
|
285
|
+
var getMethod$3 = function (V, P) {
|
|
286
286
|
var func = V[P];
|
|
287
|
-
return isNullOrUndefined(func) ? undefined : aCallable(func);
|
|
287
|
+
return isNullOrUndefined$2(func) ? undefined : aCallable$6(func);
|
|
288
288
|
};
|
|
289
289
|
|
|
290
|
-
var call$
|
|
291
|
-
var isCallable$
|
|
292
|
-
var isObject$
|
|
290
|
+
var call$b = functionCall;
|
|
291
|
+
var isCallable$c = isCallable$h;
|
|
292
|
+
var isObject$6 = isObject$7;
|
|
293
293
|
|
|
294
|
-
var $TypeError$
|
|
294
|
+
var $TypeError$a = TypeError;
|
|
295
295
|
|
|
296
296
|
// `OrdinaryToPrimitive` abstract operation
|
|
297
297
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
298
298
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
299
299
|
var fn, val;
|
|
300
|
-
if (pref === 'string' && isCallable$
|
|
301
|
-
if (isCallable$
|
|
302
|
-
if (pref !== 'string' && isCallable$
|
|
303
|
-
throw $TypeError$
|
|
300
|
+
if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$6(val = call$b(fn, input))) return val;
|
|
301
|
+
if (isCallable$c(fn = input.valueOf) && !isObject$6(val = call$b(fn, input))) return val;
|
|
302
|
+
if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$6(val = call$b(fn, input))) return val;
|
|
303
|
+
throw $TypeError$a("Can't convert object to primitive value");
|
|
304
304
|
};
|
|
305
305
|
|
|
306
306
|
var shared$3 = {exports: {}};
|
|
307
307
|
|
|
308
|
-
var global$
|
|
308
|
+
var global$f = global$i;
|
|
309
309
|
|
|
310
310
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
311
|
-
var defineProperty$
|
|
311
|
+
var defineProperty$3 = Object.defineProperty;
|
|
312
312
|
|
|
313
313
|
var defineGlobalProperty$3 = function (key, value) {
|
|
314
314
|
try {
|
|
315
|
-
defineProperty$
|
|
315
|
+
defineProperty$3(global$f, key, { value: value, configurable: true, writable: true });
|
|
316
316
|
} catch (error) {
|
|
317
|
-
global$
|
|
317
|
+
global$f[key] = value;
|
|
318
318
|
} return value;
|
|
319
319
|
};
|
|
320
320
|
|
|
321
|
-
var global$
|
|
321
|
+
var global$e = global$i;
|
|
322
322
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
323
323
|
|
|
324
324
|
var SHARED = '__core-js_shared__';
|
|
325
|
-
var store$3 = global$
|
|
325
|
+
var store$3 = global$e[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
326
326
|
|
|
327
327
|
var sharedStore = store$3;
|
|
328
328
|
|
|
@@ -340,18 +340,18 @@ var store$2 = sharedStore;
|
|
|
340
340
|
|
|
341
341
|
var requireObjectCoercible = requireObjectCoercible$2;
|
|
342
342
|
|
|
343
|
-
var $Object = Object;
|
|
343
|
+
var $Object$1 = Object;
|
|
344
344
|
|
|
345
345
|
// `ToObject` abstract operation
|
|
346
346
|
// https://tc39.es/ecma262/#sec-toobject
|
|
347
347
|
var toObject$2 = function (argument) {
|
|
348
|
-
return $Object(requireObjectCoercible(argument));
|
|
348
|
+
return $Object$1(requireObjectCoercible(argument));
|
|
349
349
|
};
|
|
350
350
|
|
|
351
|
-
var uncurryThis$
|
|
351
|
+
var uncurryThis$a = functionUncurryThis;
|
|
352
352
|
var toObject$1 = toObject$2;
|
|
353
353
|
|
|
354
|
-
var hasOwnProperty = uncurryThis$
|
|
354
|
+
var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
|
|
355
355
|
|
|
356
356
|
// `HasOwnProperty` abstract operation
|
|
357
357
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
@@ -360,32 +360,32 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
|
360
360
|
return hasOwnProperty(toObject$1(it), key);
|
|
361
361
|
};
|
|
362
362
|
|
|
363
|
-
var uncurryThis$
|
|
363
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
364
364
|
|
|
365
365
|
var id = 0;
|
|
366
366
|
var postfix = Math.random();
|
|
367
|
-
var toString = uncurryThis$
|
|
367
|
+
var toString = uncurryThis$9(1.0.toString);
|
|
368
368
|
|
|
369
369
|
var uid$2 = function (key) {
|
|
370
370
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
371
371
|
};
|
|
372
372
|
|
|
373
|
-
var global$
|
|
373
|
+
var global$d = global$i;
|
|
374
374
|
var shared$2 = shared$3.exports;
|
|
375
|
-
var hasOwn$
|
|
375
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
376
376
|
var uid$1 = uid$2;
|
|
377
377
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
378
378
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
379
379
|
|
|
380
380
|
var WellKnownSymbolsStore = shared$2('wks');
|
|
381
|
-
var Symbol$1 = global$
|
|
381
|
+
var Symbol$1 = global$d.Symbol;
|
|
382
382
|
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
383
383
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
384
384
|
|
|
385
|
-
var wellKnownSymbol$
|
|
386
|
-
if (!hasOwn$
|
|
385
|
+
var wellKnownSymbol$a = function (name) {
|
|
386
|
+
if (!hasOwn$8(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
387
387
|
var description = 'Symbol.' + name;
|
|
388
|
-
if (NATIVE_SYMBOL && hasOwn$
|
|
388
|
+
if (NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)) {
|
|
389
389
|
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
390
390
|
} else if (USE_SYMBOL_AS_UID && symbolFor) {
|
|
391
391
|
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
@@ -395,27 +395,27 @@ var wellKnownSymbol$1 = function (name) {
|
|
|
395
395
|
} return WellKnownSymbolsStore[name];
|
|
396
396
|
};
|
|
397
397
|
|
|
398
|
-
var call$
|
|
399
|
-
var isObject$
|
|
398
|
+
var call$a = functionCall;
|
|
399
|
+
var isObject$5 = isObject$7;
|
|
400
400
|
var isSymbol$1 = isSymbol$2;
|
|
401
|
-
var getMethod = getMethod$
|
|
401
|
+
var getMethod$2 = getMethod$3;
|
|
402
402
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
403
|
-
var wellKnownSymbol = wellKnownSymbol$
|
|
403
|
+
var wellKnownSymbol$9 = wellKnownSymbol$a;
|
|
404
404
|
|
|
405
|
-
var $TypeError$
|
|
406
|
-
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
|
405
|
+
var $TypeError$9 = TypeError;
|
|
406
|
+
var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
|
|
407
407
|
|
|
408
408
|
// `ToPrimitive` abstract operation
|
|
409
409
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
410
410
|
var toPrimitive$1 = function (input, pref) {
|
|
411
|
-
if (!isObject$
|
|
412
|
-
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
411
|
+
if (!isObject$5(input) || isSymbol$1(input)) return input;
|
|
412
|
+
var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
|
|
413
413
|
var result;
|
|
414
414
|
if (exoticToPrim) {
|
|
415
415
|
if (pref === undefined) pref = 'default';
|
|
416
|
-
result = call$
|
|
417
|
-
if (!isObject$
|
|
418
|
-
throw $TypeError$
|
|
416
|
+
result = call$a(exoticToPrim, input, pref);
|
|
417
|
+
if (!isObject$5(result) || isSymbol$1(result)) return result;
|
|
418
|
+
throw $TypeError$9("Can't convert object to primitive value");
|
|
419
419
|
}
|
|
420
420
|
if (pref === undefined) pref = 'number';
|
|
421
421
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -431,36 +431,36 @@ var toPropertyKey$2 = function (argument) {
|
|
|
431
431
|
return isSymbol(key) ? key : key + '';
|
|
432
432
|
};
|
|
433
433
|
|
|
434
|
-
var global$
|
|
435
|
-
var isObject$
|
|
434
|
+
var global$c = global$i;
|
|
435
|
+
var isObject$4 = isObject$7;
|
|
436
436
|
|
|
437
|
-
var document$
|
|
437
|
+
var document$3 = global$c.document;
|
|
438
438
|
// typeof document.createElement is 'object' in old IE
|
|
439
|
-
var EXISTS$1 = isObject$
|
|
439
|
+
var EXISTS$1 = isObject$4(document$3) && isObject$4(document$3.createElement);
|
|
440
440
|
|
|
441
441
|
var documentCreateElement = function (it) {
|
|
442
|
-
return EXISTS$1 ? document$
|
|
442
|
+
return EXISTS$1 ? document$3.createElement(it) : {};
|
|
443
443
|
};
|
|
444
444
|
|
|
445
|
-
var DESCRIPTORS$
|
|
446
|
-
var fails$
|
|
447
|
-
var createElement = documentCreateElement;
|
|
445
|
+
var DESCRIPTORS$8 = descriptors;
|
|
446
|
+
var fails$6 = fails$b;
|
|
447
|
+
var createElement$1 = documentCreateElement;
|
|
448
448
|
|
|
449
449
|
// Thanks to IE8 for its funny defineProperty
|
|
450
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
450
|
+
var ie8DomDefine = !DESCRIPTORS$8 && !fails$6(function () {
|
|
451
451
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
452
|
-
return Object.defineProperty(createElement('div'), 'a', {
|
|
452
|
+
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
453
453
|
get: function () { return 7; }
|
|
454
454
|
}).a != 7;
|
|
455
455
|
});
|
|
456
456
|
|
|
457
|
-
var DESCRIPTORS$
|
|
458
|
-
var call$
|
|
457
|
+
var DESCRIPTORS$7 = descriptors;
|
|
458
|
+
var call$9 = functionCall;
|
|
459
459
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
460
460
|
var createPropertyDescriptor$1 = createPropertyDescriptor$2;
|
|
461
461
|
var toIndexedObject$2 = toIndexedObject$3;
|
|
462
462
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
463
|
-
var hasOwn$
|
|
463
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
464
464
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
465
465
|
|
|
466
466
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -468,23 +468,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
|
468
468
|
|
|
469
469
|
// `Object.getOwnPropertyDescriptor` method
|
|
470
470
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
471
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
471
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
472
472
|
O = toIndexedObject$2(O);
|
|
473
473
|
P = toPropertyKey$1(P);
|
|
474
474
|
if (IE8_DOM_DEFINE$1) try {
|
|
475
475
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
476
476
|
} catch (error) { /* empty */ }
|
|
477
|
-
if (hasOwn$
|
|
477
|
+
if (hasOwn$7(O, P)) return createPropertyDescriptor$1(!call$9(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
478
478
|
};
|
|
479
479
|
|
|
480
480
|
var objectDefineProperty = {};
|
|
481
481
|
|
|
482
|
-
var DESCRIPTORS$
|
|
483
|
-
var fails$
|
|
482
|
+
var DESCRIPTORS$6 = descriptors;
|
|
483
|
+
var fails$5 = fails$b;
|
|
484
484
|
|
|
485
485
|
// V8 ~ Chrome 36-
|
|
486
486
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
487
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
487
|
+
var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$5(function () {
|
|
488
488
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
489
489
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
490
490
|
value: 42,
|
|
@@ -492,24 +492,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$3(function () {
|
|
|
492
492
|
}).prototype != 42;
|
|
493
493
|
});
|
|
494
494
|
|
|
495
|
-
var isObject$
|
|
495
|
+
var isObject$3 = isObject$7;
|
|
496
496
|
|
|
497
|
-
var $String = String;
|
|
498
|
-
var $TypeError$
|
|
497
|
+
var $String$1 = String;
|
|
498
|
+
var $TypeError$8 = TypeError;
|
|
499
499
|
|
|
500
500
|
// `Assert: Type(argument) is Object`
|
|
501
|
-
var anObject$
|
|
502
|
-
if (isObject$
|
|
503
|
-
throw $TypeError$
|
|
501
|
+
var anObject$8 = function (argument) {
|
|
502
|
+
if (isObject$3(argument)) return argument;
|
|
503
|
+
throw $TypeError$8($String$1(argument) + ' is not an object');
|
|
504
504
|
};
|
|
505
505
|
|
|
506
|
-
var DESCRIPTORS$
|
|
506
|
+
var DESCRIPTORS$5 = descriptors;
|
|
507
507
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
508
508
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
509
|
-
var anObject$
|
|
509
|
+
var anObject$7 = anObject$8;
|
|
510
510
|
var toPropertyKey = toPropertyKey$2;
|
|
511
511
|
|
|
512
|
-
var $TypeError = TypeError;
|
|
512
|
+
var $TypeError$7 = TypeError;
|
|
513
513
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
514
514
|
var $defineProperty = Object.defineProperty;
|
|
515
515
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -520,10 +520,10 @@ var WRITABLE = 'writable';
|
|
|
520
520
|
|
|
521
521
|
// `Object.defineProperty` method
|
|
522
522
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
523
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
524
|
-
anObject$
|
|
523
|
+
objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
|
|
524
|
+
anObject$7(O);
|
|
525
525
|
P = toPropertyKey(P);
|
|
526
|
-
anObject$
|
|
526
|
+
anObject$7(Attributes);
|
|
527
527
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
528
528
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
529
529
|
if (current && current[WRITABLE]) {
|
|
@@ -536,23 +536,23 @@ objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG ? function defi
|
|
|
536
536
|
}
|
|
537
537
|
} return $defineProperty(O, P, Attributes);
|
|
538
538
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
539
|
-
anObject$
|
|
539
|
+
anObject$7(O);
|
|
540
540
|
P = toPropertyKey(P);
|
|
541
|
-
anObject$
|
|
541
|
+
anObject$7(Attributes);
|
|
542
542
|
if (IE8_DOM_DEFINE) try {
|
|
543
543
|
return $defineProperty(O, P, Attributes);
|
|
544
544
|
} catch (error) { /* empty */ }
|
|
545
|
-
if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');
|
|
545
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$7('Accessors not supported');
|
|
546
546
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
547
547
|
return O;
|
|
548
548
|
};
|
|
549
549
|
|
|
550
|
-
var DESCRIPTORS$
|
|
551
|
-
var definePropertyModule$
|
|
550
|
+
var DESCRIPTORS$4 = descriptors;
|
|
551
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
552
552
|
var createPropertyDescriptor = createPropertyDescriptor$2;
|
|
553
553
|
|
|
554
|
-
var createNonEnumerableProperty$2 = DESCRIPTORS$
|
|
555
|
-
return definePropertyModule$
|
|
554
|
+
var createNonEnumerableProperty$2 = DESCRIPTORS$4 ? function (object, key, value) {
|
|
555
|
+
return definePropertyModule$3.f(object, key, createPropertyDescriptor(1, value));
|
|
556
556
|
} : function (object, key, value) {
|
|
557
557
|
object[key] = value;
|
|
558
558
|
return object;
|
|
@@ -560,17 +560,17 @@ var createNonEnumerableProperty$2 = DESCRIPTORS$3 ? function (object, key, value
|
|
|
560
560
|
|
|
561
561
|
var makeBuiltIn$2 = {exports: {}};
|
|
562
562
|
|
|
563
|
-
var DESCRIPTORS$
|
|
564
|
-
var hasOwn$
|
|
563
|
+
var DESCRIPTORS$3 = descriptors;
|
|
564
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
565
565
|
|
|
566
|
-
var FunctionPrototype = Function.prototype;
|
|
566
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
567
567
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
568
|
-
var getDescriptor = DESCRIPTORS$
|
|
568
|
+
var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
|
|
569
569
|
|
|
570
|
-
var EXISTS = hasOwn$
|
|
570
|
+
var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
|
|
571
571
|
// additional protection from minified / mangled / dropped function names
|
|
572
572
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
573
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
573
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
574
574
|
|
|
575
575
|
var functionName = {
|
|
576
576
|
EXISTS: EXISTS,
|
|
@@ -578,27 +578,27 @@ var functionName = {
|
|
|
578
578
|
CONFIGURABLE: CONFIGURABLE
|
|
579
579
|
};
|
|
580
580
|
|
|
581
|
-
var uncurryThis$
|
|
582
|
-
var isCallable$
|
|
581
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
582
|
+
var isCallable$b = isCallable$h;
|
|
583
583
|
var store$1 = sharedStore;
|
|
584
584
|
|
|
585
|
-
var functionToString = uncurryThis$
|
|
585
|
+
var functionToString = uncurryThis$8(Function.toString);
|
|
586
586
|
|
|
587
587
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
588
|
-
if (!isCallable$
|
|
588
|
+
if (!isCallable$b(store$1.inspectSource)) {
|
|
589
589
|
store$1.inspectSource = function (it) {
|
|
590
590
|
return functionToString(it);
|
|
591
591
|
};
|
|
592
592
|
}
|
|
593
593
|
|
|
594
|
-
var inspectSource$
|
|
594
|
+
var inspectSource$3 = store$1.inspectSource;
|
|
595
595
|
|
|
596
|
-
var global$
|
|
597
|
-
var isCallable$
|
|
596
|
+
var global$b = global$i;
|
|
597
|
+
var isCallable$a = isCallable$h;
|
|
598
598
|
|
|
599
|
-
var WeakMap$1 = global$
|
|
599
|
+
var WeakMap$1 = global$b.WeakMap;
|
|
600
600
|
|
|
601
|
-
var weakMapBasicDetection = isCallable$
|
|
601
|
+
var weakMapBasicDetection = isCallable$a(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
602
602
|
|
|
603
603
|
var shared$1 = shared$3.exports;
|
|
604
604
|
var uid = uid$2;
|
|
@@ -612,28 +612,28 @@ var sharedKey$1 = function (key) {
|
|
|
612
612
|
var hiddenKeys$3 = {};
|
|
613
613
|
|
|
614
614
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
615
|
-
var global$
|
|
616
|
-
var isObject = isObject$
|
|
615
|
+
var global$a = global$i;
|
|
616
|
+
var isObject$2 = isObject$7;
|
|
617
617
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
|
|
618
|
-
var hasOwn$
|
|
618
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
619
619
|
var shared = sharedStore;
|
|
620
620
|
var sharedKey = sharedKey$1;
|
|
621
621
|
var hiddenKeys$2 = hiddenKeys$3;
|
|
622
622
|
|
|
623
623
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
624
|
-
var TypeError$
|
|
625
|
-
var WeakMap = global$
|
|
626
|
-
var set, get, has;
|
|
624
|
+
var TypeError$2 = global$a.TypeError;
|
|
625
|
+
var WeakMap = global$a.WeakMap;
|
|
626
|
+
var set$1, get, has;
|
|
627
627
|
|
|
628
628
|
var enforce = function (it) {
|
|
629
|
-
return has(it) ? get(it) : set(it, {});
|
|
629
|
+
return has(it) ? get(it) : set$1(it, {});
|
|
630
630
|
};
|
|
631
631
|
|
|
632
632
|
var getterFor = function (TYPE) {
|
|
633
633
|
return function (it) {
|
|
634
634
|
var state;
|
|
635
|
-
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
636
|
-
throw TypeError$
|
|
635
|
+
if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
|
|
636
|
+
throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
|
|
637
637
|
} return state;
|
|
638
638
|
};
|
|
639
639
|
};
|
|
@@ -645,8 +645,8 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
645
645
|
store.has = store.has;
|
|
646
646
|
store.set = store.set;
|
|
647
647
|
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
648
|
-
set = function (it, metadata) {
|
|
649
|
-
if (store.has(it)) throw TypeError$
|
|
648
|
+
set$1 = function (it, metadata) {
|
|
649
|
+
if (store.has(it)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
650
650
|
metadata.facade = it;
|
|
651
651
|
store.set(it, metadata);
|
|
652
652
|
return metadata;
|
|
@@ -660,43 +660,43 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
660
660
|
} else {
|
|
661
661
|
var STATE = sharedKey('state');
|
|
662
662
|
hiddenKeys$2[STATE] = true;
|
|
663
|
-
set = function (it, metadata) {
|
|
664
|
-
if (hasOwn$
|
|
663
|
+
set$1 = function (it, metadata) {
|
|
664
|
+
if (hasOwn$5(it, STATE)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
665
665
|
metadata.facade = it;
|
|
666
666
|
createNonEnumerableProperty$1(it, STATE, metadata);
|
|
667
667
|
return metadata;
|
|
668
668
|
};
|
|
669
669
|
get = function (it) {
|
|
670
|
-
return hasOwn$
|
|
670
|
+
return hasOwn$5(it, STATE) ? it[STATE] : {};
|
|
671
671
|
};
|
|
672
672
|
has = function (it) {
|
|
673
|
-
return hasOwn$
|
|
673
|
+
return hasOwn$5(it, STATE);
|
|
674
674
|
};
|
|
675
675
|
}
|
|
676
676
|
|
|
677
677
|
var internalState = {
|
|
678
|
-
set: set,
|
|
678
|
+
set: set$1,
|
|
679
679
|
get: get,
|
|
680
680
|
has: has,
|
|
681
681
|
enforce: enforce,
|
|
682
682
|
getterFor: getterFor
|
|
683
683
|
};
|
|
684
684
|
|
|
685
|
-
var fails$
|
|
686
|
-
var isCallable$
|
|
687
|
-
var hasOwn$
|
|
688
|
-
var DESCRIPTORS$
|
|
685
|
+
var fails$4 = fails$b;
|
|
686
|
+
var isCallable$9 = isCallable$h;
|
|
687
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
688
|
+
var DESCRIPTORS$2 = descriptors;
|
|
689
689
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
690
|
-
var inspectSource = inspectSource$
|
|
691
|
-
var InternalStateModule = internalState;
|
|
690
|
+
var inspectSource$2 = inspectSource$3;
|
|
691
|
+
var InternalStateModule$1 = internalState;
|
|
692
692
|
|
|
693
|
-
var enforceInternalState = InternalStateModule.enforce;
|
|
694
|
-
var getInternalState = InternalStateModule.get;
|
|
693
|
+
var enforceInternalState = InternalStateModule$1.enforce;
|
|
694
|
+
var getInternalState = InternalStateModule$1.get;
|
|
695
695
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
696
|
-
var defineProperty$
|
|
696
|
+
var defineProperty$2 = Object.defineProperty;
|
|
697
697
|
|
|
698
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
699
|
-
return defineProperty$
|
|
698
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$4(function () {
|
|
699
|
+
return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
700
700
|
});
|
|
701
701
|
|
|
702
702
|
var TEMPLATE = String(String).split('String');
|
|
@@ -707,21 +707,21 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
|
707
707
|
}
|
|
708
708
|
if (options && options.getter) name = 'get ' + name;
|
|
709
709
|
if (options && options.setter) name = 'set ' + name;
|
|
710
|
-
if (!hasOwn$
|
|
711
|
-
if (DESCRIPTORS$
|
|
710
|
+
if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
711
|
+
if (DESCRIPTORS$2) defineProperty$2(value, 'name', { value: name, configurable: true });
|
|
712
712
|
else value.name = name;
|
|
713
713
|
}
|
|
714
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
|
715
|
-
defineProperty$
|
|
714
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
|
|
715
|
+
defineProperty$2(value, 'length', { value: options.arity });
|
|
716
716
|
}
|
|
717
717
|
try {
|
|
718
|
-
if (options && hasOwn$
|
|
719
|
-
if (DESCRIPTORS$
|
|
718
|
+
if (options && hasOwn$4(options, 'constructor') && options.constructor) {
|
|
719
|
+
if (DESCRIPTORS$2) defineProperty$2(value, 'prototype', { writable: false });
|
|
720
720
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
721
721
|
} else if (value.prototype) value.prototype = undefined;
|
|
722
722
|
} catch (error) { /* empty */ }
|
|
723
723
|
var state = enforceInternalState(value);
|
|
724
|
-
if (!hasOwn$
|
|
724
|
+
if (!hasOwn$4(state, 'source')) {
|
|
725
725
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
726
726
|
} return value;
|
|
727
727
|
};
|
|
@@ -729,19 +729,19 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
|
729
729
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
730
730
|
// eslint-disable-next-line no-extend-native -- required
|
|
731
731
|
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
732
|
-
return isCallable$
|
|
732
|
+
return isCallable$9(this) && getInternalState(this).source || inspectSource$2(this);
|
|
733
733
|
}, 'toString');
|
|
734
734
|
|
|
735
|
-
var isCallable$
|
|
736
|
-
var definePropertyModule$
|
|
735
|
+
var isCallable$8 = isCallable$h;
|
|
736
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
737
737
|
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
738
738
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
739
739
|
|
|
740
|
-
var defineBuiltIn$
|
|
740
|
+
var defineBuiltIn$3 = function (O, key, value, options) {
|
|
741
741
|
if (!options) options = {};
|
|
742
742
|
var simple = options.enumerable;
|
|
743
743
|
var name = options.name !== undefined ? options.name : key;
|
|
744
|
-
if (isCallable$
|
|
744
|
+
if (isCallable$8(value)) makeBuiltIn(value, name, options);
|
|
745
745
|
if (options.global) {
|
|
746
746
|
if (simple) O[key] = value;
|
|
747
747
|
else defineGlobalProperty$1(key, value);
|
|
@@ -751,7 +751,7 @@ var defineBuiltIn$1 = function (O, key, value, options) {
|
|
|
751
751
|
else if (O[key]) simple = true;
|
|
752
752
|
} catch (error) { /* empty */ }
|
|
753
753
|
if (simple) O[key] = value;
|
|
754
|
-
else definePropertyModule$
|
|
754
|
+
else definePropertyModule$2.f(O, key, {
|
|
755
755
|
value: value,
|
|
756
756
|
enumerable: false,
|
|
757
757
|
configurable: !options.nonConfigurable,
|
|
@@ -810,19 +810,19 @@ var toLength = toLength$1;
|
|
|
810
810
|
|
|
811
811
|
// `LengthOfArrayLike` abstract operation
|
|
812
812
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
813
|
-
var lengthOfArrayLike$
|
|
813
|
+
var lengthOfArrayLike$2 = function (obj) {
|
|
814
814
|
return toLength(obj.length);
|
|
815
815
|
};
|
|
816
816
|
|
|
817
817
|
var toIndexedObject$1 = toIndexedObject$3;
|
|
818
818
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
819
|
-
var lengthOfArrayLike = lengthOfArrayLike$
|
|
819
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$2;
|
|
820
820
|
|
|
821
821
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
822
822
|
var createMethod = function (IS_INCLUDES) {
|
|
823
823
|
return function ($this, el, fromIndex) {
|
|
824
824
|
var O = toIndexedObject$1($this);
|
|
825
|
-
var length = lengthOfArrayLike(O);
|
|
825
|
+
var length = lengthOfArrayLike$1(O);
|
|
826
826
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
827
827
|
var value;
|
|
828
828
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -847,22 +847,22 @@ var arrayIncludes = {
|
|
|
847
847
|
indexOf: createMethod(false)
|
|
848
848
|
};
|
|
849
849
|
|
|
850
|
-
var uncurryThis$
|
|
851
|
-
var hasOwn$
|
|
850
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
851
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
852
852
|
var toIndexedObject = toIndexedObject$3;
|
|
853
853
|
var indexOf = arrayIncludes.indexOf;
|
|
854
854
|
var hiddenKeys$1 = hiddenKeys$3;
|
|
855
855
|
|
|
856
|
-
var push = uncurryThis$
|
|
856
|
+
var push = uncurryThis$7([].push);
|
|
857
857
|
|
|
858
858
|
var objectKeysInternal = function (object, names) {
|
|
859
859
|
var O = toIndexedObject(object);
|
|
860
860
|
var i = 0;
|
|
861
861
|
var result = [];
|
|
862
862
|
var key;
|
|
863
|
-
for (key in O) !hasOwn$
|
|
863
|
+
for (key in O) !hasOwn$3(hiddenKeys$1, key) && hasOwn$3(O, key) && push(result, key);
|
|
864
864
|
// Don't enum bug & hidden keys
|
|
865
|
-
while (names.length > i) if (hasOwn$
|
|
865
|
+
while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
|
|
866
866
|
~indexOf(result, key) || push(result, key);
|
|
867
867
|
}
|
|
868
868
|
return result;
|
|
@@ -896,68 +896,68 @@ var objectGetOwnPropertySymbols = {};
|
|
|
896
896
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
897
897
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
898
898
|
|
|
899
|
-
var getBuiltIn = getBuiltIn$
|
|
900
|
-
var uncurryThis$
|
|
899
|
+
var getBuiltIn$5 = getBuiltIn$8;
|
|
900
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
901
901
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
902
902
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
903
|
-
var anObject = anObject$
|
|
903
|
+
var anObject$6 = anObject$8;
|
|
904
904
|
|
|
905
|
-
var concat$1 = uncurryThis$
|
|
905
|
+
var concat$1 = uncurryThis$6([].concat);
|
|
906
906
|
|
|
907
907
|
// all object keys, includes non-enumerable and symbols
|
|
908
|
-
var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
909
|
-
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
|
908
|
+
var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
909
|
+
var keys = getOwnPropertyNamesModule.f(anObject$6(it));
|
|
910
910
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
911
911
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
912
912
|
};
|
|
913
913
|
|
|
914
|
-
var hasOwn = hasOwnProperty_1;
|
|
914
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
915
915
|
var ownKeys = ownKeys$1;
|
|
916
916
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
917
|
-
var definePropertyModule = objectDefineProperty;
|
|
917
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
918
918
|
|
|
919
919
|
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
920
920
|
var keys = ownKeys(source);
|
|
921
|
-
var defineProperty = definePropertyModule.f;
|
|
921
|
+
var defineProperty = definePropertyModule$1.f;
|
|
922
922
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
923
923
|
for (var i = 0; i < keys.length; i++) {
|
|
924
924
|
var key = keys[i];
|
|
925
|
-
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
|
|
925
|
+
if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
|
|
926
926
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
927
927
|
}
|
|
928
928
|
}
|
|
929
929
|
};
|
|
930
930
|
|
|
931
|
-
var fails$
|
|
932
|
-
var isCallable = isCallable$
|
|
931
|
+
var fails$3 = fails$b;
|
|
932
|
+
var isCallable$7 = isCallable$h;
|
|
933
933
|
|
|
934
934
|
var replacement = /#|\.prototype\./;
|
|
935
935
|
|
|
936
|
-
var isForced$
|
|
936
|
+
var isForced$2 = function (feature, detection) {
|
|
937
937
|
var value = data[normalize(feature)];
|
|
938
938
|
return value == POLYFILL ? true
|
|
939
939
|
: value == NATIVE ? false
|
|
940
|
-
: isCallable(detection) ? fails$
|
|
940
|
+
: isCallable$7(detection) ? fails$3(detection)
|
|
941
941
|
: !!detection;
|
|
942
942
|
};
|
|
943
943
|
|
|
944
|
-
var normalize = isForced$
|
|
944
|
+
var normalize = isForced$2.normalize = function (string) {
|
|
945
945
|
return String(string).replace(replacement, '.').toLowerCase();
|
|
946
946
|
};
|
|
947
947
|
|
|
948
|
-
var data = isForced$
|
|
949
|
-
var NATIVE = isForced$
|
|
950
|
-
var POLYFILL = isForced$
|
|
948
|
+
var data = isForced$2.data = {};
|
|
949
|
+
var NATIVE = isForced$2.NATIVE = 'N';
|
|
950
|
+
var POLYFILL = isForced$2.POLYFILL = 'P';
|
|
951
951
|
|
|
952
|
-
var isForced_1 = isForced$
|
|
952
|
+
var isForced_1 = isForced$2;
|
|
953
953
|
|
|
954
|
-
var global$
|
|
955
|
-
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
954
|
+
var global$9 = global$i;
|
|
955
|
+
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
956
956
|
var createNonEnumerableProperty = createNonEnumerableProperty$2;
|
|
957
|
-
var defineBuiltIn = defineBuiltIn$
|
|
957
|
+
var defineBuiltIn$2 = defineBuiltIn$3;
|
|
958
958
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
959
959
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
960
|
-
var isForced = isForced_1;
|
|
960
|
+
var isForced$1 = isForced_1;
|
|
961
961
|
|
|
962
962
|
/*
|
|
963
963
|
options.target - name of the target object
|
|
@@ -980,19 +980,19 @@ var _export = function (options, source) {
|
|
|
980
980
|
var STATIC = options.stat;
|
|
981
981
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
982
982
|
if (GLOBAL) {
|
|
983
|
-
target = global$
|
|
983
|
+
target = global$9;
|
|
984
984
|
} else if (STATIC) {
|
|
985
|
-
target = global$
|
|
985
|
+
target = global$9[TARGET] || defineGlobalProperty(TARGET, {});
|
|
986
986
|
} else {
|
|
987
|
-
target = (global$
|
|
987
|
+
target = (global$9[TARGET] || {}).prototype;
|
|
988
988
|
}
|
|
989
989
|
if (target) for (key in source) {
|
|
990
990
|
sourceProperty = source[key];
|
|
991
991
|
if (options.dontCallGetSet) {
|
|
992
|
-
descriptor = getOwnPropertyDescriptor(target, key);
|
|
992
|
+
descriptor = getOwnPropertyDescriptor$1(target, key);
|
|
993
993
|
targetProperty = descriptor && descriptor.value;
|
|
994
994
|
} else targetProperty = target[key];
|
|
995
|
-
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
995
|
+
FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
996
996
|
// contained in target
|
|
997
997
|
if (!FORCED && targetProperty !== undefined) {
|
|
998
998
|
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
@@ -1002,10 +1002,1204 @@ var _export = function (options, source) {
|
|
|
1002
1002
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1003
1003
|
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
|
1004
1004
|
}
|
|
1005
|
-
defineBuiltIn(target, key, sourceProperty, options);
|
|
1005
|
+
defineBuiltIn$2(target, key, sourceProperty, options);
|
|
1006
|
+
}
|
|
1007
|
+
};
|
|
1008
|
+
|
|
1009
|
+
var classof$3 = classofRaw$2;
|
|
1010
|
+
var global$8 = global$i;
|
|
1011
|
+
|
|
1012
|
+
var engineIsNode = classof$3(global$8.process) == 'process';
|
|
1013
|
+
|
|
1014
|
+
var isCallable$6 = isCallable$h;
|
|
1015
|
+
|
|
1016
|
+
var $String = String;
|
|
1017
|
+
var $TypeError$6 = TypeError;
|
|
1018
|
+
|
|
1019
|
+
var aPossiblePrototype$1 = function (argument) {
|
|
1020
|
+
if (typeof argument == 'object' || isCallable$6(argument)) return argument;
|
|
1021
|
+
throw $TypeError$6("Can't set " + $String(argument) + ' as a prototype');
|
|
1022
|
+
};
|
|
1023
|
+
|
|
1024
|
+
/* eslint-disable no-proto -- safe */
|
|
1025
|
+
|
|
1026
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
1027
|
+
var anObject$5 = anObject$8;
|
|
1028
|
+
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1029
|
+
|
|
1030
|
+
// `Object.setPrototypeOf` method
|
|
1031
|
+
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
1032
|
+
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
1033
|
+
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
1034
|
+
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
1035
|
+
var CORRECT_SETTER = false;
|
|
1036
|
+
var test = {};
|
|
1037
|
+
var setter;
|
|
1038
|
+
try {
|
|
1039
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1040
|
+
setter = uncurryThis$5(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
1041
|
+
setter(test, []);
|
|
1042
|
+
CORRECT_SETTER = test instanceof Array;
|
|
1043
|
+
} catch (error) { /* empty */ }
|
|
1044
|
+
return function setPrototypeOf(O, proto) {
|
|
1045
|
+
anObject$5(O);
|
|
1046
|
+
aPossiblePrototype(proto);
|
|
1047
|
+
if (CORRECT_SETTER) setter(O, proto);
|
|
1048
|
+
else O.__proto__ = proto;
|
|
1049
|
+
return O;
|
|
1050
|
+
};
|
|
1051
|
+
}() : undefined);
|
|
1052
|
+
|
|
1053
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
1054
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
1055
|
+
var wellKnownSymbol$8 = wellKnownSymbol$a;
|
|
1056
|
+
|
|
1057
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$8('toStringTag');
|
|
1058
|
+
|
|
1059
|
+
var setToStringTag$1 = function (target, TAG, STATIC) {
|
|
1060
|
+
if (target && !STATIC) target = target.prototype;
|
|
1061
|
+
if (target && !hasOwn$1(target, TO_STRING_TAG$2)) {
|
|
1062
|
+
defineProperty$1(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
|
|
1063
|
+
}
|
|
1064
|
+
};
|
|
1065
|
+
|
|
1066
|
+
var getBuiltIn$4 = getBuiltIn$8;
|
|
1067
|
+
var definePropertyModule = objectDefineProperty;
|
|
1068
|
+
var wellKnownSymbol$7 = wellKnownSymbol$a;
|
|
1069
|
+
var DESCRIPTORS$1 = descriptors;
|
|
1070
|
+
|
|
1071
|
+
var SPECIES$2 = wellKnownSymbol$7('species');
|
|
1072
|
+
|
|
1073
|
+
var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
1074
|
+
var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
|
|
1075
|
+
var defineProperty = definePropertyModule.f;
|
|
1076
|
+
|
|
1077
|
+
if (DESCRIPTORS$1 && Constructor && !Constructor[SPECIES$2]) {
|
|
1078
|
+
defineProperty(Constructor, SPECIES$2, {
|
|
1079
|
+
configurable: true,
|
|
1080
|
+
get: function () { return this; }
|
|
1081
|
+
});
|
|
1082
|
+
}
|
|
1083
|
+
};
|
|
1084
|
+
|
|
1085
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
1086
|
+
|
|
1087
|
+
var $TypeError$5 = TypeError;
|
|
1088
|
+
|
|
1089
|
+
var anInstance$1 = function (it, Prototype) {
|
|
1090
|
+
if (isPrototypeOf$1(Prototype, it)) return it;
|
|
1091
|
+
throw $TypeError$5('Incorrect invocation');
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1094
|
+
var wellKnownSymbol$6 = wellKnownSymbol$a;
|
|
1095
|
+
|
|
1096
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$6('toStringTag');
|
|
1097
|
+
var test = {};
|
|
1098
|
+
|
|
1099
|
+
test[TO_STRING_TAG$1] = 'z';
|
|
1100
|
+
|
|
1101
|
+
var toStringTagSupport = String(test) === '[object z]';
|
|
1102
|
+
|
|
1103
|
+
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1104
|
+
var isCallable$5 = isCallable$h;
|
|
1105
|
+
var classofRaw$1 = classofRaw$2;
|
|
1106
|
+
var wellKnownSymbol$5 = wellKnownSymbol$a;
|
|
1107
|
+
|
|
1108
|
+
var TO_STRING_TAG = wellKnownSymbol$5('toStringTag');
|
|
1109
|
+
var $Object = Object;
|
|
1110
|
+
|
|
1111
|
+
// ES3 wrong here
|
|
1112
|
+
var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) == 'Arguments';
|
|
1113
|
+
|
|
1114
|
+
// fallback for IE11 Script Access Denied error
|
|
1115
|
+
var tryGet = function (it, key) {
|
|
1116
|
+
try {
|
|
1117
|
+
return it[key];
|
|
1118
|
+
} catch (error) { /* empty */ }
|
|
1119
|
+
};
|
|
1120
|
+
|
|
1121
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
|
1122
|
+
var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
1123
|
+
var O, tag, result;
|
|
1124
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1125
|
+
// @@toStringTag case
|
|
1126
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
1127
|
+
// builtinTag case
|
|
1128
|
+
: CORRECT_ARGUMENTS ? classofRaw$1(O)
|
|
1129
|
+
// ES3 arguments fallback
|
|
1130
|
+
: (result = classofRaw$1(O)) == 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
|
|
1131
|
+
};
|
|
1132
|
+
|
|
1133
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
1134
|
+
var fails$2 = fails$b;
|
|
1135
|
+
var isCallable$4 = isCallable$h;
|
|
1136
|
+
var classof$1 = classof$2;
|
|
1137
|
+
var getBuiltIn$3 = getBuiltIn$8;
|
|
1138
|
+
var inspectSource$1 = inspectSource$3;
|
|
1139
|
+
|
|
1140
|
+
var noop = function () { /* empty */ };
|
|
1141
|
+
var empty = [];
|
|
1142
|
+
var construct = getBuiltIn$3('Reflect', 'construct');
|
|
1143
|
+
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
1144
|
+
var exec = uncurryThis$4(constructorRegExp.exec);
|
|
1145
|
+
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
1146
|
+
|
|
1147
|
+
var isConstructorModern = function isConstructor(argument) {
|
|
1148
|
+
if (!isCallable$4(argument)) return false;
|
|
1149
|
+
try {
|
|
1150
|
+
construct(noop, empty, argument);
|
|
1151
|
+
return true;
|
|
1152
|
+
} catch (error) {
|
|
1153
|
+
return false;
|
|
1154
|
+
}
|
|
1155
|
+
};
|
|
1156
|
+
|
|
1157
|
+
var isConstructorLegacy = function isConstructor(argument) {
|
|
1158
|
+
if (!isCallable$4(argument)) return false;
|
|
1159
|
+
switch (classof$1(argument)) {
|
|
1160
|
+
case 'AsyncFunction':
|
|
1161
|
+
case 'GeneratorFunction':
|
|
1162
|
+
case 'AsyncGeneratorFunction': return false;
|
|
1163
|
+
}
|
|
1164
|
+
try {
|
|
1165
|
+
// we can't check .prototype since constructors produced by .bind haven't it
|
|
1166
|
+
// `Function#toString` throws on some built-it function in some legacy engines
|
|
1167
|
+
// (for example, `DOMQuad` and similar in FF41-)
|
|
1168
|
+
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
|
|
1169
|
+
} catch (error) {
|
|
1170
|
+
return true;
|
|
1171
|
+
}
|
|
1172
|
+
};
|
|
1173
|
+
|
|
1174
|
+
isConstructorLegacy.sham = true;
|
|
1175
|
+
|
|
1176
|
+
// `IsConstructor` abstract operation
|
|
1177
|
+
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1178
|
+
var isConstructor$1 = !construct || fails$2(function () {
|
|
1179
|
+
var called;
|
|
1180
|
+
return isConstructorModern(isConstructorModern.call)
|
|
1181
|
+
|| !isConstructorModern(Object)
|
|
1182
|
+
|| !isConstructorModern(function () { called = true; })
|
|
1183
|
+
|| called;
|
|
1184
|
+
}) ? isConstructorLegacy : isConstructorModern;
|
|
1185
|
+
|
|
1186
|
+
var isConstructor = isConstructor$1;
|
|
1187
|
+
var tryToString$2 = tryToString$4;
|
|
1188
|
+
|
|
1189
|
+
var $TypeError$4 = TypeError;
|
|
1190
|
+
|
|
1191
|
+
// `Assert: IsConstructor(argument) is true`
|
|
1192
|
+
var aConstructor$1 = function (argument) {
|
|
1193
|
+
if (isConstructor(argument)) return argument;
|
|
1194
|
+
throw $TypeError$4(tryToString$2(argument) + ' is not a constructor');
|
|
1195
|
+
};
|
|
1196
|
+
|
|
1197
|
+
var anObject$4 = anObject$8;
|
|
1198
|
+
var aConstructor = aConstructor$1;
|
|
1199
|
+
var isNullOrUndefined$1 = isNullOrUndefined$4;
|
|
1200
|
+
var wellKnownSymbol$4 = wellKnownSymbol$a;
|
|
1201
|
+
|
|
1202
|
+
var SPECIES$1 = wellKnownSymbol$4('species');
|
|
1203
|
+
|
|
1204
|
+
// `SpeciesConstructor` abstract operation
|
|
1205
|
+
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
1206
|
+
var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
1207
|
+
var C = anObject$4(O).constructor;
|
|
1208
|
+
var S;
|
|
1209
|
+
return C === undefined || isNullOrUndefined$1(S = anObject$4(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
|
|
1210
|
+
};
|
|
1211
|
+
|
|
1212
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
1213
|
+
|
|
1214
|
+
var FunctionPrototype = Function.prototype;
|
|
1215
|
+
var apply$1 = FunctionPrototype.apply;
|
|
1216
|
+
var call$8 = FunctionPrototype.call;
|
|
1217
|
+
|
|
1218
|
+
// eslint-disable-next-line es/no-reflect -- safe
|
|
1219
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$8.bind(apply$1) : function () {
|
|
1220
|
+
return call$8.apply(apply$1, arguments);
|
|
1221
|
+
});
|
|
1222
|
+
|
|
1223
|
+
var classofRaw = classofRaw$2;
|
|
1224
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
1225
|
+
|
|
1226
|
+
var functionUncurryThisClause = function (fn) {
|
|
1227
|
+
// Nashorn bug:
|
|
1228
|
+
// https://github.com/zloirock/core-js/issues/1128
|
|
1229
|
+
// https://github.com/zloirock/core-js/issues/1130
|
|
1230
|
+
if (classofRaw(fn) === 'Function') return uncurryThis$3(fn);
|
|
1231
|
+
};
|
|
1232
|
+
|
|
1233
|
+
var uncurryThis$2 = functionUncurryThisClause;
|
|
1234
|
+
var aCallable$5 = aCallable$7;
|
|
1235
|
+
var NATIVE_BIND = functionBindNative;
|
|
1236
|
+
|
|
1237
|
+
var bind$4 = uncurryThis$2(uncurryThis$2.bind);
|
|
1238
|
+
|
|
1239
|
+
// optional / simple context binding
|
|
1240
|
+
var functionBindContext = function (fn, that) {
|
|
1241
|
+
aCallable$5(fn);
|
|
1242
|
+
return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
|
|
1243
|
+
return fn.apply(that, arguments);
|
|
1244
|
+
};
|
|
1245
|
+
};
|
|
1246
|
+
|
|
1247
|
+
var getBuiltIn$2 = getBuiltIn$8;
|
|
1248
|
+
|
|
1249
|
+
var html$1 = getBuiltIn$2('document', 'documentElement');
|
|
1250
|
+
|
|
1251
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
1252
|
+
|
|
1253
|
+
var arraySlice$1 = uncurryThis$1([].slice);
|
|
1254
|
+
|
|
1255
|
+
var $TypeError$3 = TypeError;
|
|
1256
|
+
|
|
1257
|
+
var validateArgumentsLength$1 = function (passed, required) {
|
|
1258
|
+
if (passed < required) throw $TypeError$3('Not enough arguments');
|
|
1259
|
+
return passed;
|
|
1260
|
+
};
|
|
1261
|
+
|
|
1262
|
+
var userAgent$2 = engineUserAgent;
|
|
1263
|
+
|
|
1264
|
+
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
1265
|
+
|
|
1266
|
+
var global$7 = global$i;
|
|
1267
|
+
var apply = functionApply;
|
|
1268
|
+
var bind$3 = functionBindContext;
|
|
1269
|
+
var isCallable$3 = isCallable$h;
|
|
1270
|
+
var hasOwn = hasOwnProperty_1;
|
|
1271
|
+
var fails$1 = fails$b;
|
|
1272
|
+
var html = html$1;
|
|
1273
|
+
var arraySlice = arraySlice$1;
|
|
1274
|
+
var createElement = documentCreateElement;
|
|
1275
|
+
var validateArgumentsLength = validateArgumentsLength$1;
|
|
1276
|
+
var IS_IOS$1 = engineIsIos;
|
|
1277
|
+
var IS_NODE$3 = engineIsNode;
|
|
1278
|
+
|
|
1279
|
+
var set = global$7.setImmediate;
|
|
1280
|
+
var clear = global$7.clearImmediate;
|
|
1281
|
+
var process$2 = global$7.process;
|
|
1282
|
+
var Dispatch = global$7.Dispatch;
|
|
1283
|
+
var Function$1 = global$7.Function;
|
|
1284
|
+
var MessageChannel = global$7.MessageChannel;
|
|
1285
|
+
var String$1 = global$7.String;
|
|
1286
|
+
var counter = 0;
|
|
1287
|
+
var queue$1 = {};
|
|
1288
|
+
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
1289
|
+
var $location, defer, channel, port;
|
|
1290
|
+
|
|
1291
|
+
try {
|
|
1292
|
+
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
1293
|
+
$location = global$7.location;
|
|
1294
|
+
} catch (error) { /* empty */ }
|
|
1295
|
+
|
|
1296
|
+
var run = function (id) {
|
|
1297
|
+
if (hasOwn(queue$1, id)) {
|
|
1298
|
+
var fn = queue$1[id];
|
|
1299
|
+
delete queue$1[id];
|
|
1300
|
+
fn();
|
|
1006
1301
|
}
|
|
1007
1302
|
};
|
|
1008
1303
|
|
|
1304
|
+
var runner = function (id) {
|
|
1305
|
+
return function () {
|
|
1306
|
+
run(id);
|
|
1307
|
+
};
|
|
1308
|
+
};
|
|
1309
|
+
|
|
1310
|
+
var listener = function (event) {
|
|
1311
|
+
run(event.data);
|
|
1312
|
+
};
|
|
1313
|
+
|
|
1314
|
+
var post = function (id) {
|
|
1315
|
+
// old engines have not location.origin
|
|
1316
|
+
global$7.postMessage(String$1(id), $location.protocol + '//' + $location.host);
|
|
1317
|
+
};
|
|
1318
|
+
|
|
1319
|
+
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
1320
|
+
if (!set || !clear) {
|
|
1321
|
+
set = function setImmediate(handler) {
|
|
1322
|
+
validateArgumentsLength(arguments.length, 1);
|
|
1323
|
+
var fn = isCallable$3(handler) ? handler : Function$1(handler);
|
|
1324
|
+
var args = arraySlice(arguments, 1);
|
|
1325
|
+
queue$1[++counter] = function () {
|
|
1326
|
+
apply(fn, undefined, args);
|
|
1327
|
+
};
|
|
1328
|
+
defer(counter);
|
|
1329
|
+
return counter;
|
|
1330
|
+
};
|
|
1331
|
+
clear = function clearImmediate(id) {
|
|
1332
|
+
delete queue$1[id];
|
|
1333
|
+
};
|
|
1334
|
+
// Node.js 0.8-
|
|
1335
|
+
if (IS_NODE$3) {
|
|
1336
|
+
defer = function (id) {
|
|
1337
|
+
process$2.nextTick(runner(id));
|
|
1338
|
+
};
|
|
1339
|
+
// Sphere (JS game engine) Dispatch API
|
|
1340
|
+
} else if (Dispatch && Dispatch.now) {
|
|
1341
|
+
defer = function (id) {
|
|
1342
|
+
Dispatch.now(runner(id));
|
|
1343
|
+
};
|
|
1344
|
+
// Browsers with MessageChannel, includes WebWorkers
|
|
1345
|
+
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
1346
|
+
} else if (MessageChannel && !IS_IOS$1) {
|
|
1347
|
+
channel = new MessageChannel();
|
|
1348
|
+
port = channel.port2;
|
|
1349
|
+
channel.port1.onmessage = listener;
|
|
1350
|
+
defer = bind$3(port.postMessage, port);
|
|
1351
|
+
// Browsers with postMessage, skip WebWorkers
|
|
1352
|
+
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
1353
|
+
} else if (
|
|
1354
|
+
global$7.addEventListener &&
|
|
1355
|
+
isCallable$3(global$7.postMessage) &&
|
|
1356
|
+
!global$7.importScripts &&
|
|
1357
|
+
$location && $location.protocol !== 'file:' &&
|
|
1358
|
+
!fails$1(post)
|
|
1359
|
+
) {
|
|
1360
|
+
defer = post;
|
|
1361
|
+
global$7.addEventListener('message', listener, false);
|
|
1362
|
+
// IE8-
|
|
1363
|
+
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
1364
|
+
defer = function (id) {
|
|
1365
|
+
html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
|
|
1366
|
+
html.removeChild(this);
|
|
1367
|
+
run(id);
|
|
1368
|
+
};
|
|
1369
|
+
};
|
|
1370
|
+
// Rest old browsers
|
|
1371
|
+
} else {
|
|
1372
|
+
defer = function (id) {
|
|
1373
|
+
setTimeout(runner(id), 0);
|
|
1374
|
+
};
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
var task$1 = {
|
|
1379
|
+
set: set,
|
|
1380
|
+
clear: clear
|
|
1381
|
+
};
|
|
1382
|
+
|
|
1383
|
+
var userAgent$1 = engineUserAgent;
|
|
1384
|
+
var global$6 = global$i;
|
|
1385
|
+
|
|
1386
|
+
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$6.Pebble !== undefined;
|
|
1387
|
+
|
|
1388
|
+
var userAgent = engineUserAgent;
|
|
1389
|
+
|
|
1390
|
+
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
1391
|
+
|
|
1392
|
+
var global$5 = global$i;
|
|
1393
|
+
var bind$2 = functionBindContext;
|
|
1394
|
+
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
1395
|
+
var macrotask = task$1.set;
|
|
1396
|
+
var IS_IOS = engineIsIos;
|
|
1397
|
+
var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
1398
|
+
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
1399
|
+
var IS_NODE$2 = engineIsNode;
|
|
1400
|
+
|
|
1401
|
+
var MutationObserver = global$5.MutationObserver || global$5.WebKitMutationObserver;
|
|
1402
|
+
var document$2 = global$5.document;
|
|
1403
|
+
var process$1 = global$5.process;
|
|
1404
|
+
var Promise$1 = global$5.Promise;
|
|
1405
|
+
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
1406
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$5, 'queueMicrotask');
|
|
1407
|
+
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
1408
|
+
|
|
1409
|
+
var flush, head, last, notify$1, toggle, node, promise, then;
|
|
1410
|
+
|
|
1411
|
+
// modern engines have queueMicrotask method
|
|
1412
|
+
if (!queueMicrotask) {
|
|
1413
|
+
flush = function () {
|
|
1414
|
+
var parent, fn;
|
|
1415
|
+
if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
|
|
1416
|
+
while (head) {
|
|
1417
|
+
fn = head.fn;
|
|
1418
|
+
head = head.next;
|
|
1419
|
+
try {
|
|
1420
|
+
fn();
|
|
1421
|
+
} catch (error) {
|
|
1422
|
+
if (head) notify$1();
|
|
1423
|
+
else last = undefined;
|
|
1424
|
+
throw error;
|
|
1425
|
+
}
|
|
1426
|
+
} last = undefined;
|
|
1427
|
+
if (parent) parent.enter();
|
|
1428
|
+
};
|
|
1429
|
+
|
|
1430
|
+
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
1431
|
+
// also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
|
|
1432
|
+
if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
|
|
1433
|
+
toggle = true;
|
|
1434
|
+
node = document$2.createTextNode('');
|
|
1435
|
+
new MutationObserver(flush).observe(node, { characterData: true });
|
|
1436
|
+
notify$1 = function () {
|
|
1437
|
+
node.data = toggle = !toggle;
|
|
1438
|
+
};
|
|
1439
|
+
// environments with maybe non-completely correct, but existent Promise
|
|
1440
|
+
} else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
|
|
1441
|
+
// Promise.resolve without an argument throws an error in LG WebOS 2
|
|
1442
|
+
promise = Promise$1.resolve(undefined);
|
|
1443
|
+
// workaround of WebKit ~ iOS Safari 10.1 bug
|
|
1444
|
+
promise.constructor = Promise$1;
|
|
1445
|
+
then = bind$2(promise.then, promise);
|
|
1446
|
+
notify$1 = function () {
|
|
1447
|
+
then(flush);
|
|
1448
|
+
};
|
|
1449
|
+
// Node.js without promises
|
|
1450
|
+
} else if (IS_NODE$2) {
|
|
1451
|
+
notify$1 = function () {
|
|
1452
|
+
process$1.nextTick(flush);
|
|
1453
|
+
};
|
|
1454
|
+
// for other environments - macrotask based on:
|
|
1455
|
+
// - setImmediate
|
|
1456
|
+
// - MessageChannel
|
|
1457
|
+
// - window.postMessage
|
|
1458
|
+
// - onreadystatechange
|
|
1459
|
+
// - setTimeout
|
|
1460
|
+
} else {
|
|
1461
|
+
// strange IE + webpack dev server bug - use .bind(global)
|
|
1462
|
+
macrotask = bind$2(macrotask, global$5);
|
|
1463
|
+
notify$1 = function () {
|
|
1464
|
+
macrotask(flush);
|
|
1465
|
+
};
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
var microtask$1 = queueMicrotask || function (fn) {
|
|
1470
|
+
var task = { fn: fn, next: undefined };
|
|
1471
|
+
if (last) last.next = task;
|
|
1472
|
+
if (!head) {
|
|
1473
|
+
head = task;
|
|
1474
|
+
notify$1();
|
|
1475
|
+
} last = task;
|
|
1476
|
+
};
|
|
1477
|
+
|
|
1478
|
+
var global$4 = global$i;
|
|
1479
|
+
|
|
1480
|
+
var hostReportErrors$1 = function (a, b) {
|
|
1481
|
+
var console = global$4.console;
|
|
1482
|
+
if (console && console.error) {
|
|
1483
|
+
arguments.length == 1 ? console.error(a) : console.error(a, b);
|
|
1484
|
+
}
|
|
1485
|
+
};
|
|
1486
|
+
|
|
1487
|
+
var perform$3 = function (exec) {
|
|
1488
|
+
try {
|
|
1489
|
+
return { error: false, value: exec() };
|
|
1490
|
+
} catch (error) {
|
|
1491
|
+
return { error: true, value: error };
|
|
1492
|
+
}
|
|
1493
|
+
};
|
|
1494
|
+
|
|
1495
|
+
var Queue$1 = function () {
|
|
1496
|
+
this.head = null;
|
|
1497
|
+
this.tail = null;
|
|
1498
|
+
};
|
|
1499
|
+
|
|
1500
|
+
Queue$1.prototype = {
|
|
1501
|
+
add: function (item) {
|
|
1502
|
+
var entry = { item: item, next: null };
|
|
1503
|
+
if (this.head) this.tail.next = entry;
|
|
1504
|
+
else this.head = entry;
|
|
1505
|
+
this.tail = entry;
|
|
1506
|
+
},
|
|
1507
|
+
get: function () {
|
|
1508
|
+
var entry = this.head;
|
|
1509
|
+
if (entry) {
|
|
1510
|
+
this.head = entry.next;
|
|
1511
|
+
if (this.tail === entry) this.tail = null;
|
|
1512
|
+
return entry.item;
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
};
|
|
1516
|
+
|
|
1517
|
+
var queue = Queue$1;
|
|
1518
|
+
|
|
1519
|
+
var global$3 = global$i;
|
|
1520
|
+
|
|
1521
|
+
var promiseNativeConstructor = global$3.Promise;
|
|
1522
|
+
|
|
1523
|
+
/* global Deno -- Deno case */
|
|
1524
|
+
|
|
1525
|
+
var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
|
|
1526
|
+
|
|
1527
|
+
var IS_DENO$1 = engineIsDeno;
|
|
1528
|
+
var IS_NODE$1 = engineIsNode;
|
|
1529
|
+
|
|
1530
|
+
var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
|
|
1531
|
+
&& typeof window == 'object'
|
|
1532
|
+
&& typeof document == 'object';
|
|
1533
|
+
|
|
1534
|
+
var global$2 = global$i;
|
|
1535
|
+
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
1536
|
+
var isCallable$2 = isCallable$h;
|
|
1537
|
+
var isForced = isForced_1;
|
|
1538
|
+
var inspectSource = inspectSource$3;
|
|
1539
|
+
var wellKnownSymbol$3 = wellKnownSymbol$a;
|
|
1540
|
+
var IS_BROWSER = engineIsBrowser;
|
|
1541
|
+
var IS_DENO = engineIsDeno;
|
|
1542
|
+
var V8_VERSION = engineV8Version;
|
|
1543
|
+
|
|
1544
|
+
NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
|
|
1545
|
+
var SPECIES = wellKnownSymbol$3('species');
|
|
1546
|
+
var SUBCLASSING = false;
|
|
1547
|
+
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$2.PromiseRejectionEvent);
|
|
1548
|
+
|
|
1549
|
+
var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
1550
|
+
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
|
|
1551
|
+
var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
|
|
1552
|
+
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
|
1553
|
+
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
|
|
1554
|
+
// We can't detect it synchronously, so just check versions
|
|
1555
|
+
if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
|
|
1556
|
+
// We can't use @@species feature detection in V8 since it causes
|
|
1557
|
+
// deoptimization and performance degradation
|
|
1558
|
+
// https://github.com/zloirock/core-js/issues/679
|
|
1559
|
+
if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
|
|
1560
|
+
// Detect correctness of subclassing with @@species support
|
|
1561
|
+
var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
|
|
1562
|
+
var FakePromise = function (exec) {
|
|
1563
|
+
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
1564
|
+
};
|
|
1565
|
+
var constructor = promise.constructor = {};
|
|
1566
|
+
constructor[SPECIES] = FakePromise;
|
|
1567
|
+
SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
|
|
1568
|
+
if (!SUBCLASSING) return true;
|
|
1569
|
+
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
1570
|
+
} return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
|
|
1571
|
+
});
|
|
1572
|
+
|
|
1573
|
+
var promiseConstructorDetection = {
|
|
1574
|
+
CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
|
|
1575
|
+
REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
|
|
1576
|
+
SUBCLASSING: SUBCLASSING
|
|
1577
|
+
};
|
|
1578
|
+
|
|
1579
|
+
var newPromiseCapability$2 = {};
|
|
1580
|
+
|
|
1581
|
+
var aCallable$4 = aCallable$7;
|
|
1582
|
+
|
|
1583
|
+
var $TypeError$2 = TypeError;
|
|
1584
|
+
|
|
1585
|
+
var PromiseCapability = function (C) {
|
|
1586
|
+
var resolve, reject;
|
|
1587
|
+
this.promise = new C(function ($$resolve, $$reject) {
|
|
1588
|
+
if (resolve !== undefined || reject !== undefined) throw $TypeError$2('Bad Promise constructor');
|
|
1589
|
+
resolve = $$resolve;
|
|
1590
|
+
reject = $$reject;
|
|
1591
|
+
});
|
|
1592
|
+
this.resolve = aCallable$4(resolve);
|
|
1593
|
+
this.reject = aCallable$4(reject);
|
|
1594
|
+
};
|
|
1595
|
+
|
|
1596
|
+
// `NewPromiseCapability` abstract operation
|
|
1597
|
+
// https://tc39.es/ecma262/#sec-newpromisecapability
|
|
1598
|
+
newPromiseCapability$2.f = function (C) {
|
|
1599
|
+
return new PromiseCapability(C);
|
|
1600
|
+
};
|
|
1601
|
+
|
|
1602
|
+
var $$6 = _export;
|
|
1603
|
+
var IS_NODE = engineIsNode;
|
|
1604
|
+
var global$1 = global$i;
|
|
1605
|
+
var call$7 = functionCall;
|
|
1606
|
+
var defineBuiltIn$1 = defineBuiltIn$3;
|
|
1607
|
+
var setPrototypeOf = objectSetPrototypeOf;
|
|
1608
|
+
var setToStringTag = setToStringTag$1;
|
|
1609
|
+
var setSpecies = setSpecies$1;
|
|
1610
|
+
var aCallable$3 = aCallable$7;
|
|
1611
|
+
var isCallable$1 = isCallable$h;
|
|
1612
|
+
var isObject$1 = isObject$7;
|
|
1613
|
+
var anInstance = anInstance$1;
|
|
1614
|
+
var speciesConstructor = speciesConstructor$1;
|
|
1615
|
+
var task = task$1.set;
|
|
1616
|
+
var microtask = microtask$1;
|
|
1617
|
+
var hostReportErrors = hostReportErrors$1;
|
|
1618
|
+
var perform$2 = perform$3;
|
|
1619
|
+
var Queue = queue;
|
|
1620
|
+
var InternalStateModule = internalState;
|
|
1621
|
+
var NativePromiseConstructor$2 = promiseNativeConstructor;
|
|
1622
|
+
var PromiseConstructorDetection = promiseConstructorDetection;
|
|
1623
|
+
var newPromiseCapabilityModule$3 = newPromiseCapability$2;
|
|
1624
|
+
|
|
1625
|
+
var PROMISE = 'Promise';
|
|
1626
|
+
var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
|
|
1627
|
+
var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
|
|
1628
|
+
var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
|
|
1629
|
+
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
|
|
1630
|
+
var setInternalState = InternalStateModule.set;
|
|
1631
|
+
var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
|
|
1632
|
+
var PromiseConstructor = NativePromiseConstructor$2;
|
|
1633
|
+
var PromisePrototype = NativePromisePrototype$1;
|
|
1634
|
+
var TypeError$1 = global$1.TypeError;
|
|
1635
|
+
var document$1 = global$1.document;
|
|
1636
|
+
var process = global$1.process;
|
|
1637
|
+
var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
|
|
1638
|
+
var newGenericPromiseCapability = newPromiseCapability$1;
|
|
1639
|
+
|
|
1640
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$1.dispatchEvent);
|
|
1641
|
+
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
1642
|
+
var REJECTION_HANDLED = 'rejectionhandled';
|
|
1643
|
+
var PENDING = 0;
|
|
1644
|
+
var FULFILLED = 1;
|
|
1645
|
+
var REJECTED = 2;
|
|
1646
|
+
var HANDLED = 1;
|
|
1647
|
+
var UNHANDLED = 2;
|
|
1648
|
+
|
|
1649
|
+
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
1650
|
+
|
|
1651
|
+
// helpers
|
|
1652
|
+
var isThenable = function (it) {
|
|
1653
|
+
var then;
|
|
1654
|
+
return isObject$1(it) && isCallable$1(then = it.then) ? then : false;
|
|
1655
|
+
};
|
|
1656
|
+
|
|
1657
|
+
var callReaction = function (reaction, state) {
|
|
1658
|
+
var value = state.value;
|
|
1659
|
+
var ok = state.state == FULFILLED;
|
|
1660
|
+
var handler = ok ? reaction.ok : reaction.fail;
|
|
1661
|
+
var resolve = reaction.resolve;
|
|
1662
|
+
var reject = reaction.reject;
|
|
1663
|
+
var domain = reaction.domain;
|
|
1664
|
+
var result, then, exited;
|
|
1665
|
+
try {
|
|
1666
|
+
if (handler) {
|
|
1667
|
+
if (!ok) {
|
|
1668
|
+
if (state.rejection === UNHANDLED) onHandleUnhandled(state);
|
|
1669
|
+
state.rejection = HANDLED;
|
|
1670
|
+
}
|
|
1671
|
+
if (handler === true) result = value;
|
|
1672
|
+
else {
|
|
1673
|
+
if (domain) domain.enter();
|
|
1674
|
+
result = handler(value); // can throw
|
|
1675
|
+
if (domain) {
|
|
1676
|
+
domain.exit();
|
|
1677
|
+
exited = true;
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
if (result === reaction.promise) {
|
|
1681
|
+
reject(TypeError$1('Promise-chain cycle'));
|
|
1682
|
+
} else if (then = isThenable(result)) {
|
|
1683
|
+
call$7(then, result, resolve, reject);
|
|
1684
|
+
} else resolve(result);
|
|
1685
|
+
} else reject(value);
|
|
1686
|
+
} catch (error) {
|
|
1687
|
+
if (domain && !exited) domain.exit();
|
|
1688
|
+
reject(error);
|
|
1689
|
+
}
|
|
1690
|
+
};
|
|
1691
|
+
|
|
1692
|
+
var notify = function (state, isReject) {
|
|
1693
|
+
if (state.notified) return;
|
|
1694
|
+
state.notified = true;
|
|
1695
|
+
microtask(function () {
|
|
1696
|
+
var reactions = state.reactions;
|
|
1697
|
+
var reaction;
|
|
1698
|
+
while (reaction = reactions.get()) {
|
|
1699
|
+
callReaction(reaction, state);
|
|
1700
|
+
}
|
|
1701
|
+
state.notified = false;
|
|
1702
|
+
if (isReject && !state.rejection) onUnhandled(state);
|
|
1703
|
+
});
|
|
1704
|
+
};
|
|
1705
|
+
|
|
1706
|
+
var dispatchEvent = function (name, promise, reason) {
|
|
1707
|
+
var event, handler;
|
|
1708
|
+
if (DISPATCH_EVENT) {
|
|
1709
|
+
event = document$1.createEvent('Event');
|
|
1710
|
+
event.promise = promise;
|
|
1711
|
+
event.reason = reason;
|
|
1712
|
+
event.initEvent(name, false, true);
|
|
1713
|
+
global$1.dispatchEvent(event);
|
|
1714
|
+
} else event = { promise: promise, reason: reason };
|
|
1715
|
+
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$1['on' + name])) handler(event);
|
|
1716
|
+
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
1717
|
+
};
|
|
1718
|
+
|
|
1719
|
+
var onUnhandled = function (state) {
|
|
1720
|
+
call$7(task, global$1, function () {
|
|
1721
|
+
var promise = state.facade;
|
|
1722
|
+
var value = state.value;
|
|
1723
|
+
var IS_UNHANDLED = isUnhandled(state);
|
|
1724
|
+
var result;
|
|
1725
|
+
if (IS_UNHANDLED) {
|
|
1726
|
+
result = perform$2(function () {
|
|
1727
|
+
if (IS_NODE) {
|
|
1728
|
+
process.emit('unhandledRejection', value, promise);
|
|
1729
|
+
} else dispatchEvent(UNHANDLED_REJECTION, promise, value);
|
|
1730
|
+
});
|
|
1731
|
+
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
|
1732
|
+
state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
|
|
1733
|
+
if (result.error) throw result.value;
|
|
1734
|
+
}
|
|
1735
|
+
});
|
|
1736
|
+
};
|
|
1737
|
+
|
|
1738
|
+
var isUnhandled = function (state) {
|
|
1739
|
+
return state.rejection !== HANDLED && !state.parent;
|
|
1740
|
+
};
|
|
1741
|
+
|
|
1742
|
+
var onHandleUnhandled = function (state) {
|
|
1743
|
+
call$7(task, global$1, function () {
|
|
1744
|
+
var promise = state.facade;
|
|
1745
|
+
if (IS_NODE) {
|
|
1746
|
+
process.emit('rejectionHandled', promise);
|
|
1747
|
+
} else dispatchEvent(REJECTION_HANDLED, promise, state.value);
|
|
1748
|
+
});
|
|
1749
|
+
};
|
|
1750
|
+
|
|
1751
|
+
var bind$1 = function (fn, state, unwrap) {
|
|
1752
|
+
return function (value) {
|
|
1753
|
+
fn(state, value, unwrap);
|
|
1754
|
+
};
|
|
1755
|
+
};
|
|
1756
|
+
|
|
1757
|
+
var internalReject = function (state, value, unwrap) {
|
|
1758
|
+
if (state.done) return;
|
|
1759
|
+
state.done = true;
|
|
1760
|
+
if (unwrap) state = unwrap;
|
|
1761
|
+
state.value = value;
|
|
1762
|
+
state.state = REJECTED;
|
|
1763
|
+
notify(state, true);
|
|
1764
|
+
};
|
|
1765
|
+
|
|
1766
|
+
var internalResolve = function (state, value, unwrap) {
|
|
1767
|
+
if (state.done) return;
|
|
1768
|
+
state.done = true;
|
|
1769
|
+
if (unwrap) state = unwrap;
|
|
1770
|
+
try {
|
|
1771
|
+
if (state.facade === value) throw TypeError$1("Promise can't be resolved itself");
|
|
1772
|
+
var then = isThenable(value);
|
|
1773
|
+
if (then) {
|
|
1774
|
+
microtask(function () {
|
|
1775
|
+
var wrapper = { done: false };
|
|
1776
|
+
try {
|
|
1777
|
+
call$7(then, value,
|
|
1778
|
+
bind$1(internalResolve, wrapper, state),
|
|
1779
|
+
bind$1(internalReject, wrapper, state)
|
|
1780
|
+
);
|
|
1781
|
+
} catch (error) {
|
|
1782
|
+
internalReject(wrapper, error, state);
|
|
1783
|
+
}
|
|
1784
|
+
});
|
|
1785
|
+
} else {
|
|
1786
|
+
state.value = value;
|
|
1787
|
+
state.state = FULFILLED;
|
|
1788
|
+
notify(state, false);
|
|
1789
|
+
}
|
|
1790
|
+
} catch (error) {
|
|
1791
|
+
internalReject({ done: false }, error, state);
|
|
1792
|
+
}
|
|
1793
|
+
};
|
|
1794
|
+
|
|
1795
|
+
// constructor polyfill
|
|
1796
|
+
if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
1797
|
+
// 25.4.3.1 Promise(executor)
|
|
1798
|
+
PromiseConstructor = function Promise(executor) {
|
|
1799
|
+
anInstance(this, PromisePrototype);
|
|
1800
|
+
aCallable$3(executor);
|
|
1801
|
+
call$7(Internal, this);
|
|
1802
|
+
var state = getInternalPromiseState(this);
|
|
1803
|
+
try {
|
|
1804
|
+
executor(bind$1(internalResolve, state), bind$1(internalReject, state));
|
|
1805
|
+
} catch (error) {
|
|
1806
|
+
internalReject(state, error);
|
|
1807
|
+
}
|
|
1808
|
+
};
|
|
1809
|
+
|
|
1810
|
+
PromisePrototype = PromiseConstructor.prototype;
|
|
1811
|
+
|
|
1812
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
1813
|
+
Internal = function Promise(executor) {
|
|
1814
|
+
setInternalState(this, {
|
|
1815
|
+
type: PROMISE,
|
|
1816
|
+
done: false,
|
|
1817
|
+
notified: false,
|
|
1818
|
+
parent: false,
|
|
1819
|
+
reactions: new Queue(),
|
|
1820
|
+
rejection: false,
|
|
1821
|
+
state: PENDING,
|
|
1822
|
+
value: undefined
|
|
1823
|
+
});
|
|
1824
|
+
};
|
|
1825
|
+
|
|
1826
|
+
// `Promise.prototype.then` method
|
|
1827
|
+
// https://tc39.es/ecma262/#sec-promise.prototype.then
|
|
1828
|
+
Internal.prototype = defineBuiltIn$1(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
|
|
1829
|
+
var state = getInternalPromiseState(this);
|
|
1830
|
+
var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
|
|
1831
|
+
state.parent = true;
|
|
1832
|
+
reaction.ok = isCallable$1(onFulfilled) ? onFulfilled : true;
|
|
1833
|
+
reaction.fail = isCallable$1(onRejected) && onRejected;
|
|
1834
|
+
reaction.domain = IS_NODE ? process.domain : undefined;
|
|
1835
|
+
if (state.state == PENDING) state.reactions.add(reaction);
|
|
1836
|
+
else microtask(function () {
|
|
1837
|
+
callReaction(reaction, state);
|
|
1838
|
+
});
|
|
1839
|
+
return reaction.promise;
|
|
1840
|
+
});
|
|
1841
|
+
|
|
1842
|
+
OwnPromiseCapability = function () {
|
|
1843
|
+
var promise = new Internal();
|
|
1844
|
+
var state = getInternalPromiseState(promise);
|
|
1845
|
+
this.promise = promise;
|
|
1846
|
+
this.resolve = bind$1(internalResolve, state);
|
|
1847
|
+
this.reject = bind$1(internalReject, state);
|
|
1848
|
+
};
|
|
1849
|
+
|
|
1850
|
+
newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
|
|
1851
|
+
return C === PromiseConstructor || C === PromiseWrapper
|
|
1852
|
+
? new OwnPromiseCapability(C)
|
|
1853
|
+
: newGenericPromiseCapability(C);
|
|
1854
|
+
};
|
|
1855
|
+
|
|
1856
|
+
if (isCallable$1(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
|
|
1857
|
+
nativeThen = NativePromisePrototype$1.then;
|
|
1858
|
+
|
|
1859
|
+
if (!NATIVE_PROMISE_SUBCLASSING) {
|
|
1860
|
+
// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
|
|
1861
|
+
defineBuiltIn$1(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
|
|
1862
|
+
var that = this;
|
|
1863
|
+
return new PromiseConstructor(function (resolve, reject) {
|
|
1864
|
+
call$7(nativeThen, that, resolve, reject);
|
|
1865
|
+
}).then(onFulfilled, onRejected);
|
|
1866
|
+
// https://github.com/zloirock/core-js/issues/640
|
|
1867
|
+
}, { unsafe: true });
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
// make `.constructor === Promise` work for native promise-based APIs
|
|
1871
|
+
try {
|
|
1872
|
+
delete NativePromisePrototype$1.constructor;
|
|
1873
|
+
} catch (error) { /* empty */ }
|
|
1874
|
+
|
|
1875
|
+
// make `instanceof Promise` work for native promise-based APIs
|
|
1876
|
+
if (setPrototypeOf) {
|
|
1877
|
+
setPrototypeOf(NativePromisePrototype$1, PromisePrototype);
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1882
|
+
$$6({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
|
|
1883
|
+
Promise: PromiseConstructor
|
|
1884
|
+
});
|
|
1885
|
+
|
|
1886
|
+
setToStringTag(PromiseConstructor, PROMISE, false);
|
|
1887
|
+
setSpecies(PROMISE);
|
|
1888
|
+
|
|
1889
|
+
var iterators = {};
|
|
1890
|
+
|
|
1891
|
+
var wellKnownSymbol$2 = wellKnownSymbol$a;
|
|
1892
|
+
var Iterators$1 = iterators;
|
|
1893
|
+
|
|
1894
|
+
var ITERATOR$2 = wellKnownSymbol$2('iterator');
|
|
1895
|
+
var ArrayPrototype = Array.prototype;
|
|
1896
|
+
|
|
1897
|
+
// check on default Array iterator
|
|
1898
|
+
var isArrayIteratorMethod$1 = function (it) {
|
|
1899
|
+
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
|
|
1900
|
+
};
|
|
1901
|
+
|
|
1902
|
+
var classof = classof$2;
|
|
1903
|
+
var getMethod$1 = getMethod$3;
|
|
1904
|
+
var isNullOrUndefined = isNullOrUndefined$4;
|
|
1905
|
+
var Iterators = iterators;
|
|
1906
|
+
var wellKnownSymbol$1 = wellKnownSymbol$a;
|
|
1907
|
+
|
|
1908
|
+
var ITERATOR$1 = wellKnownSymbol$1('iterator');
|
|
1909
|
+
|
|
1910
|
+
var getIteratorMethod$2 = function (it) {
|
|
1911
|
+
if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$1)
|
|
1912
|
+
|| getMethod$1(it, '@@iterator')
|
|
1913
|
+
|| Iterators[classof(it)];
|
|
1914
|
+
};
|
|
1915
|
+
|
|
1916
|
+
var call$6 = functionCall;
|
|
1917
|
+
var aCallable$2 = aCallable$7;
|
|
1918
|
+
var anObject$3 = anObject$8;
|
|
1919
|
+
var tryToString$1 = tryToString$4;
|
|
1920
|
+
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
1921
|
+
|
|
1922
|
+
var $TypeError$1 = TypeError;
|
|
1923
|
+
|
|
1924
|
+
var getIterator$1 = function (argument, usingIterator) {
|
|
1925
|
+
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
1926
|
+
if (aCallable$2(iteratorMethod)) return anObject$3(call$6(iteratorMethod, argument));
|
|
1927
|
+
throw $TypeError$1(tryToString$1(argument) + ' is not iterable');
|
|
1928
|
+
};
|
|
1929
|
+
|
|
1930
|
+
var call$5 = functionCall;
|
|
1931
|
+
var anObject$2 = anObject$8;
|
|
1932
|
+
var getMethod = getMethod$3;
|
|
1933
|
+
|
|
1934
|
+
var iteratorClose$1 = function (iterator, kind, value) {
|
|
1935
|
+
var innerResult, innerError;
|
|
1936
|
+
anObject$2(iterator);
|
|
1937
|
+
try {
|
|
1938
|
+
innerResult = getMethod(iterator, 'return');
|
|
1939
|
+
if (!innerResult) {
|
|
1940
|
+
if (kind === 'throw') throw value;
|
|
1941
|
+
return value;
|
|
1942
|
+
}
|
|
1943
|
+
innerResult = call$5(innerResult, iterator);
|
|
1944
|
+
} catch (error) {
|
|
1945
|
+
innerError = true;
|
|
1946
|
+
innerResult = error;
|
|
1947
|
+
}
|
|
1948
|
+
if (kind === 'throw') throw value;
|
|
1949
|
+
if (innerError) throw innerResult;
|
|
1950
|
+
anObject$2(innerResult);
|
|
1951
|
+
return value;
|
|
1952
|
+
};
|
|
1953
|
+
|
|
1954
|
+
var bind = functionBindContext;
|
|
1955
|
+
var call$4 = functionCall;
|
|
1956
|
+
var anObject$1 = anObject$8;
|
|
1957
|
+
var tryToString = tryToString$4;
|
|
1958
|
+
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
1959
|
+
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
1960
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
1961
|
+
var getIterator = getIterator$1;
|
|
1962
|
+
var getIteratorMethod = getIteratorMethod$2;
|
|
1963
|
+
var iteratorClose = iteratorClose$1;
|
|
1964
|
+
|
|
1965
|
+
var $TypeError = TypeError;
|
|
1966
|
+
|
|
1967
|
+
var Result = function (stopped, result) {
|
|
1968
|
+
this.stopped = stopped;
|
|
1969
|
+
this.result = result;
|
|
1970
|
+
};
|
|
1971
|
+
|
|
1972
|
+
var ResultPrototype = Result.prototype;
|
|
1973
|
+
|
|
1974
|
+
var iterate$2 = function (iterable, unboundFunction, options) {
|
|
1975
|
+
var that = options && options.that;
|
|
1976
|
+
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
1977
|
+
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
1978
|
+
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
1979
|
+
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
1980
|
+
var fn = bind(unboundFunction, that);
|
|
1981
|
+
var iterator, iterFn, index, length, result, next, step;
|
|
1982
|
+
|
|
1983
|
+
var stop = function (condition) {
|
|
1984
|
+
if (iterator) iteratorClose(iterator, 'normal', condition);
|
|
1985
|
+
return new Result(true, condition);
|
|
1986
|
+
};
|
|
1987
|
+
|
|
1988
|
+
var callFn = function (value) {
|
|
1989
|
+
if (AS_ENTRIES) {
|
|
1990
|
+
anObject$1(value);
|
|
1991
|
+
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
1992
|
+
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
1993
|
+
};
|
|
1994
|
+
|
|
1995
|
+
if (IS_RECORD) {
|
|
1996
|
+
iterator = iterable.iterator;
|
|
1997
|
+
} else if (IS_ITERATOR) {
|
|
1998
|
+
iterator = iterable;
|
|
1999
|
+
} else {
|
|
2000
|
+
iterFn = getIteratorMethod(iterable);
|
|
2001
|
+
if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
|
|
2002
|
+
// optimisation for array iterators
|
|
2003
|
+
if (isArrayIteratorMethod(iterFn)) {
|
|
2004
|
+
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
2005
|
+
result = callFn(iterable[index]);
|
|
2006
|
+
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
2007
|
+
} return new Result(false);
|
|
2008
|
+
}
|
|
2009
|
+
iterator = getIterator(iterable, iterFn);
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
next = IS_RECORD ? iterable.next : iterator.next;
|
|
2013
|
+
while (!(step = call$4(next, iterator)).done) {
|
|
2014
|
+
try {
|
|
2015
|
+
result = callFn(step.value);
|
|
2016
|
+
} catch (error) {
|
|
2017
|
+
iteratorClose(iterator, 'throw', error);
|
|
2018
|
+
}
|
|
2019
|
+
if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
2020
|
+
} return new Result(false);
|
|
2021
|
+
};
|
|
2022
|
+
|
|
2023
|
+
var wellKnownSymbol = wellKnownSymbol$a;
|
|
2024
|
+
|
|
2025
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
2026
|
+
var SAFE_CLOSING = false;
|
|
2027
|
+
|
|
2028
|
+
try {
|
|
2029
|
+
var called = 0;
|
|
2030
|
+
var iteratorWithReturn = {
|
|
2031
|
+
next: function () {
|
|
2032
|
+
return { done: !!called++ };
|
|
2033
|
+
},
|
|
2034
|
+
'return': function () {
|
|
2035
|
+
SAFE_CLOSING = true;
|
|
2036
|
+
}
|
|
2037
|
+
};
|
|
2038
|
+
iteratorWithReturn[ITERATOR] = function () {
|
|
2039
|
+
return this;
|
|
2040
|
+
};
|
|
2041
|
+
// eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
|
|
2042
|
+
Array.from(iteratorWithReturn, function () { throw 2; });
|
|
2043
|
+
} catch (error) { /* empty */ }
|
|
2044
|
+
|
|
2045
|
+
var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
|
|
2046
|
+
if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
|
|
2047
|
+
var ITERATION_SUPPORT = false;
|
|
2048
|
+
try {
|
|
2049
|
+
var object = {};
|
|
2050
|
+
object[ITERATOR] = function () {
|
|
2051
|
+
return {
|
|
2052
|
+
next: function () {
|
|
2053
|
+
return { done: ITERATION_SUPPORT = true };
|
|
2054
|
+
}
|
|
2055
|
+
};
|
|
2056
|
+
};
|
|
2057
|
+
exec(object);
|
|
2058
|
+
} catch (error) { /* empty */ }
|
|
2059
|
+
return ITERATION_SUPPORT;
|
|
2060
|
+
};
|
|
2061
|
+
|
|
2062
|
+
var NativePromiseConstructor$1 = promiseNativeConstructor;
|
|
2063
|
+
var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
|
|
2064
|
+
var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2065
|
+
|
|
2066
|
+
var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
|
|
2067
|
+
NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
|
|
2068
|
+
});
|
|
2069
|
+
|
|
2070
|
+
var $$5 = _export;
|
|
2071
|
+
var call$3 = functionCall;
|
|
2072
|
+
var aCallable$1 = aCallable$7;
|
|
2073
|
+
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
2074
|
+
var perform$1 = perform$3;
|
|
2075
|
+
var iterate$1 = iterate$2;
|
|
2076
|
+
var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
|
|
2077
|
+
|
|
2078
|
+
// `Promise.all` method
|
|
2079
|
+
// https://tc39.es/ecma262/#sec-promise.all
|
|
2080
|
+
$$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
|
|
2081
|
+
all: function all(iterable) {
|
|
2082
|
+
var C = this;
|
|
2083
|
+
var capability = newPromiseCapabilityModule$2.f(C);
|
|
2084
|
+
var resolve = capability.resolve;
|
|
2085
|
+
var reject = capability.reject;
|
|
2086
|
+
var result = perform$1(function () {
|
|
2087
|
+
var $promiseResolve = aCallable$1(C.resolve);
|
|
2088
|
+
var values = [];
|
|
2089
|
+
var counter = 0;
|
|
2090
|
+
var remaining = 1;
|
|
2091
|
+
iterate$1(iterable, function (promise) {
|
|
2092
|
+
var index = counter++;
|
|
2093
|
+
var alreadyCalled = false;
|
|
2094
|
+
remaining++;
|
|
2095
|
+
call$3($promiseResolve, C, promise).then(function (value) {
|
|
2096
|
+
if (alreadyCalled) return;
|
|
2097
|
+
alreadyCalled = true;
|
|
2098
|
+
values[index] = value;
|
|
2099
|
+
--remaining || resolve(values);
|
|
2100
|
+
}, reject);
|
|
2101
|
+
});
|
|
2102
|
+
--remaining || resolve(values);
|
|
2103
|
+
});
|
|
2104
|
+
if (result.error) reject(result.value);
|
|
2105
|
+
return capability.promise;
|
|
2106
|
+
}
|
|
2107
|
+
});
|
|
2108
|
+
|
|
2109
|
+
var $$4 = _export;
|
|
2110
|
+
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2111
|
+
var NativePromiseConstructor = promiseNativeConstructor;
|
|
2112
|
+
var getBuiltIn$1 = getBuiltIn$8;
|
|
2113
|
+
var isCallable = isCallable$h;
|
|
2114
|
+
var defineBuiltIn = defineBuiltIn$3;
|
|
2115
|
+
|
|
2116
|
+
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
|
|
2117
|
+
|
|
2118
|
+
// `Promise.prototype.catch` method
|
|
2119
|
+
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
2120
|
+
$$4({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
|
|
2121
|
+
'catch': function (onRejected) {
|
|
2122
|
+
return this.then(undefined, onRejected);
|
|
2123
|
+
}
|
|
2124
|
+
});
|
|
2125
|
+
|
|
2126
|
+
// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
|
|
2127
|
+
if (isCallable(NativePromiseConstructor)) {
|
|
2128
|
+
var method = getBuiltIn$1('Promise').prototype['catch'];
|
|
2129
|
+
if (NativePromisePrototype['catch'] !== method) {
|
|
2130
|
+
defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
|
|
2131
|
+
}
|
|
2132
|
+
}
|
|
2133
|
+
|
|
2134
|
+
var $$3 = _export;
|
|
2135
|
+
var call$2 = functionCall;
|
|
2136
|
+
var aCallable = aCallable$7;
|
|
2137
|
+
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
2138
|
+
var perform = perform$3;
|
|
2139
|
+
var iterate = iterate$2;
|
|
2140
|
+
var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
|
|
2141
|
+
|
|
2142
|
+
// `Promise.race` method
|
|
2143
|
+
// https://tc39.es/ecma262/#sec-promise.race
|
|
2144
|
+
$$3({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
|
|
2145
|
+
race: function race(iterable) {
|
|
2146
|
+
var C = this;
|
|
2147
|
+
var capability = newPromiseCapabilityModule$1.f(C);
|
|
2148
|
+
var reject = capability.reject;
|
|
2149
|
+
var result = perform(function () {
|
|
2150
|
+
var $promiseResolve = aCallable(C.resolve);
|
|
2151
|
+
iterate(iterable, function (promise) {
|
|
2152
|
+
call$2($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
2153
|
+
});
|
|
2154
|
+
});
|
|
2155
|
+
if (result.error) reject(result.value);
|
|
2156
|
+
return capability.promise;
|
|
2157
|
+
}
|
|
2158
|
+
});
|
|
2159
|
+
|
|
2160
|
+
var $$2 = _export;
|
|
2161
|
+
var call$1 = functionCall;
|
|
2162
|
+
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
2163
|
+
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2164
|
+
|
|
2165
|
+
// `Promise.reject` method
|
|
2166
|
+
// https://tc39.es/ecma262/#sec-promise.reject
|
|
2167
|
+
$$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
2168
|
+
reject: function reject(r) {
|
|
2169
|
+
var capability = newPromiseCapabilityModule.f(this);
|
|
2170
|
+
call$1(capability.reject, undefined, r);
|
|
2171
|
+
return capability.promise;
|
|
2172
|
+
}
|
|
2173
|
+
});
|
|
2174
|
+
|
|
2175
|
+
var anObject = anObject$8;
|
|
2176
|
+
var isObject = isObject$7;
|
|
2177
|
+
var newPromiseCapability = newPromiseCapability$2;
|
|
2178
|
+
|
|
2179
|
+
var promiseResolve$1 = function (C, x) {
|
|
2180
|
+
anObject(C);
|
|
2181
|
+
if (isObject(x) && x.constructor === C) return x;
|
|
2182
|
+
var promiseCapability = newPromiseCapability.f(C);
|
|
2183
|
+
var resolve = promiseCapability.resolve;
|
|
2184
|
+
resolve(x);
|
|
2185
|
+
return promiseCapability.promise;
|
|
2186
|
+
};
|
|
2187
|
+
|
|
2188
|
+
var $$1 = _export;
|
|
2189
|
+
var getBuiltIn = getBuiltIn$8;
|
|
2190
|
+
var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
|
|
2191
|
+
var promiseResolve = promiseResolve$1;
|
|
2192
|
+
|
|
2193
|
+
getBuiltIn('Promise');
|
|
2194
|
+
|
|
2195
|
+
// `Promise.resolve` method
|
|
2196
|
+
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
2197
|
+
$$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
2198
|
+
resolve: function resolve(x) {
|
|
2199
|
+
return promiseResolve(this, x);
|
|
2200
|
+
}
|
|
2201
|
+
});
|
|
2202
|
+
|
|
1009
2203
|
var internalObjectKeys = objectKeysInternal;
|
|
1010
2204
|
var enumBugKeys = enumBugKeys$2;
|
|
1011
2205
|
|
|
@@ -1019,7 +2213,7 @@ var objectKeys$1 = Object.keys || function keys(O) {
|
|
|
1019
2213
|
var DESCRIPTORS = descriptors;
|
|
1020
2214
|
var uncurryThis = functionUncurryThis;
|
|
1021
2215
|
var call = functionCall;
|
|
1022
|
-
var fails = fails$
|
|
2216
|
+
var fails = fails$b;
|
|
1023
2217
|
var objectKeys = objectKeys$1;
|
|
1024
2218
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1025
2219
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
@@ -1083,6 +2277,31 @@ $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign },
|
|
|
1083
2277
|
assign: assign
|
|
1084
2278
|
});
|
|
1085
2279
|
|
|
2280
|
+
/******************************************************************************
|
|
2281
|
+
Copyright (c) Microsoft Corporation.
|
|
2282
|
+
|
|
2283
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
2284
|
+
purpose with or without fee is hereby granted.
|
|
2285
|
+
|
|
2286
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
2287
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
2288
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
2289
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
2290
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
2291
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
2292
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
2293
|
+
***************************************************************************** */
|
|
2294
|
+
|
|
2295
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
2296
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
2297
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
2298
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
2299
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
2300
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
2301
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
2302
|
+
});
|
|
2303
|
+
}
|
|
2304
|
+
|
|
1086
2305
|
const CONTAINER_WIDTH = 432;
|
|
1087
2306
|
const BUTTON_WIDTH = 48;
|
|
1088
2307
|
const BUTTON_HEIGHT = 192;
|
|
@@ -1149,13 +2368,12 @@ const NinetailedPreviewPlugin = ({
|
|
|
1149
2368
|
config: {},
|
|
1150
2369
|
initialize: ({
|
|
1151
2370
|
instance
|
|
1152
|
-
}) => {
|
|
2371
|
+
}) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1153
2372
|
var _a;
|
|
1154
2373
|
if (typeof window !== 'undefined') {
|
|
1155
2374
|
const {
|
|
1156
2375
|
PreviewBridge
|
|
1157
|
-
|
|
1158
|
-
} = require('@ninetailed/experience.js-preview-bridge');
|
|
2376
|
+
} = yield import('@ninetailed/experience.js-preview-bridge');
|
|
1159
2377
|
const container = new WidgetContainer({
|
|
1160
2378
|
ui
|
|
1161
2379
|
});
|
|
@@ -1240,7 +2458,7 @@ const NinetailedPreviewPlugin = ({
|
|
|
1240
2458
|
});
|
|
1241
2459
|
});
|
|
1242
2460
|
}
|
|
1243
|
-
},
|
|
2461
|
+
}),
|
|
1244
2462
|
profile: ({
|
|
1245
2463
|
payload
|
|
1246
2464
|
}) => {
|