@vention/machine-logic-ui-sdk 0.1.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +1316 -2499
- package/package.json +4 -3
- package/src/index.d.ts +3 -3
- package/src/lib/components/virtual-keyboard/keyboard-layouts.d.ts +41 -41
- package/src/lib/components/virtual-keyboard/virtual-keyboard.d.ts +4 -4
- package/src/lib/mqtt-browser/mqtt-client.d.ts +12 -12
- package/src/lib/utils/machine-logic-ui-sdk-utils.d.ts +7 -7
package/index.esm.js
CHANGED
|
@@ -7,21 +7,24 @@ import mqtt from 'mqtt';
|
|
|
7
7
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
8
8
|
|
|
9
9
|
var check = function (it) {
|
|
10
|
-
return it && it.Math
|
|
10
|
+
return it && it.Math === Math && it;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
14
|
-
var
|
|
14
|
+
var globalThis_1 =
|
|
15
15
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
16
16
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
17
17
|
check(typeof window == 'object' && window) ||
|
|
18
18
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
19
19
|
check(typeof self == 'object' && self) ||
|
|
20
20
|
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
21
|
+
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
21
22
|
// eslint-disable-next-line no-new-func -- fallback
|
|
22
23
|
(function () { return this; })() || Function('return this')();
|
|
23
24
|
|
|
24
|
-
var
|
|
25
|
+
var objectGetOwnPropertyDescriptor = {};
|
|
26
|
+
|
|
27
|
+
var fails$g = function (exec) {
|
|
25
28
|
try {
|
|
26
29
|
return !!exec();
|
|
27
30
|
} catch (error) {
|
|
@@ -29,168 +32,164 @@ var fails$i = function (exec) {
|
|
|
29
32
|
}
|
|
30
33
|
};
|
|
31
34
|
|
|
32
|
-
var fails$
|
|
35
|
+
var fails$f = fails$g;
|
|
36
|
+
|
|
37
|
+
// Detect IE8's incomplete defineProperty implementation
|
|
38
|
+
var descriptors = !fails$f(function () {
|
|
39
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
40
|
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
var fails$e = fails$g;
|
|
33
44
|
|
|
34
|
-
var functionBindNative = !fails$
|
|
45
|
+
var functionBindNative = !fails$e(function () {
|
|
46
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
35
47
|
var test = (function () { /* empty */ }).bind();
|
|
36
48
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
37
49
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
38
50
|
});
|
|
39
51
|
|
|
40
|
-
var NATIVE_BIND$
|
|
52
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
53
|
+
|
|
54
|
+
var call$8 = Function.prototype.call;
|
|
55
|
+
|
|
56
|
+
var functionCall = NATIVE_BIND$1 ? call$8.bind(call$8) : function () {
|
|
57
|
+
return call$8.apply(call$8, arguments);
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
var objectPropertyIsEnumerable = {};
|
|
61
|
+
|
|
62
|
+
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
63
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
64
|
+
var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
|
|
65
|
+
|
|
66
|
+
// Nashorn ~ JDK8 bug
|
|
67
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$3 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
68
|
+
|
|
69
|
+
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
70
|
+
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
71
|
+
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
72
|
+
var descriptor = getOwnPropertyDescriptor$3(this, V);
|
|
73
|
+
return !!descriptor && descriptor.enumerable;
|
|
74
|
+
} : $propertyIsEnumerable;
|
|
75
|
+
|
|
76
|
+
var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
77
|
+
return {
|
|
78
|
+
enumerable: !(bitmap & 1),
|
|
79
|
+
configurable: !(bitmap & 2),
|
|
80
|
+
writable: !(bitmap & 4),
|
|
81
|
+
value: value
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
var NATIVE_BIND = functionBindNative;
|
|
41
86
|
|
|
42
|
-
var FunctionPrototype$
|
|
43
|
-
var
|
|
44
|
-
var
|
|
45
|
-
var uncurryThis$m = NATIVE_BIND$3 && bind$5.bind(call$e, call$e);
|
|
87
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
88
|
+
var call$7 = FunctionPrototype$1.call;
|
|
89
|
+
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$7, call$7);
|
|
46
90
|
|
|
47
|
-
var functionUncurryThis = NATIVE_BIND
|
|
48
|
-
return
|
|
49
|
-
|
|
50
|
-
return fn && function () {
|
|
51
|
-
return call$e.apply(fn, arguments);
|
|
91
|
+
var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
92
|
+
return function () {
|
|
93
|
+
return call$7.apply(fn, arguments);
|
|
52
94
|
};
|
|
53
95
|
};
|
|
54
96
|
|
|
55
|
-
var uncurryThis$
|
|
97
|
+
var uncurryThis$d = functionUncurryThis;
|
|
56
98
|
|
|
57
|
-
var toString$
|
|
58
|
-
var stringSlice$
|
|
99
|
+
var toString$6 = uncurryThis$d({}.toString);
|
|
100
|
+
var stringSlice$3 = uncurryThis$d(''.slice);
|
|
59
101
|
|
|
60
|
-
var classofRaw$
|
|
61
|
-
return stringSlice$
|
|
102
|
+
var classofRaw$2 = function (it) {
|
|
103
|
+
return stringSlice$3(toString$6(it), 8, -1);
|
|
62
104
|
};
|
|
63
105
|
|
|
64
|
-
var
|
|
65
|
-
var
|
|
66
|
-
var
|
|
67
|
-
var classof$7 = classofRaw$1;
|
|
106
|
+
var uncurryThis$c = functionUncurryThis;
|
|
107
|
+
var fails$d = fails$g;
|
|
108
|
+
var classof$4 = classofRaw$2;
|
|
68
109
|
|
|
69
|
-
var Object$
|
|
70
|
-
var split = uncurryThis$
|
|
110
|
+
var $Object$4 = Object;
|
|
111
|
+
var split = uncurryThis$c(''.split);
|
|
71
112
|
|
|
72
113
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
73
|
-
var indexedObject = fails$
|
|
114
|
+
var indexedObject = fails$d(function () {
|
|
74
115
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
75
116
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
76
|
-
return
|
|
117
|
+
return !$Object$4('z').propertyIsEnumerable(0);
|
|
77
118
|
}) ? function (it) {
|
|
78
|
-
return classof$
|
|
79
|
-
} : Object$
|
|
119
|
+
return classof$4(it) === 'String' ? split(it, '') : $Object$4(it);
|
|
120
|
+
} : $Object$4;
|
|
121
|
+
|
|
122
|
+
// we can't use just `it == null` since of `document.all` special case
|
|
123
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
124
|
+
var isNullOrUndefined$2 = function (it) {
|
|
125
|
+
return it === null || it === undefined;
|
|
126
|
+
};
|
|
80
127
|
|
|
81
|
-
var
|
|
128
|
+
var isNullOrUndefined$1 = isNullOrUndefined$2;
|
|
82
129
|
|
|
83
|
-
var TypeError$
|
|
130
|
+
var $TypeError$9 = TypeError;
|
|
84
131
|
|
|
85
132
|
// `RequireObjectCoercible` abstract operation
|
|
86
133
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
87
|
-
var requireObjectCoercible$
|
|
88
|
-
if (it
|
|
134
|
+
var requireObjectCoercible$5 = function (it) {
|
|
135
|
+
if (isNullOrUndefined$1(it)) throw new $TypeError$9("Can't call method on " + it);
|
|
89
136
|
return it;
|
|
90
137
|
};
|
|
91
138
|
|
|
92
139
|
// toObject with fallback for non-array-like ES3 strings
|
|
93
|
-
var IndexedObject
|
|
94
|
-
var requireObjectCoercible$
|
|
140
|
+
var IndexedObject = indexedObject;
|
|
141
|
+
var requireObjectCoercible$4 = requireObjectCoercible$5;
|
|
95
142
|
|
|
96
143
|
var toIndexedObject$5 = function (it) {
|
|
97
|
-
return IndexedObject
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
var shared$4 = {exports: {}};
|
|
101
|
-
|
|
102
|
-
var global$D = global$G;
|
|
103
|
-
|
|
104
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
105
|
-
var defineProperty$3 = Object.defineProperty;
|
|
106
|
-
|
|
107
|
-
var setGlobal$3 = function (key, value) {
|
|
108
|
-
try {
|
|
109
|
-
defineProperty$3(global$D, key, { value: value, configurable: true, writable: true });
|
|
110
|
-
} catch (error) {
|
|
111
|
-
global$D[key] = value;
|
|
112
|
-
} return value;
|
|
144
|
+
return IndexedObject(requireObjectCoercible$4(it));
|
|
113
145
|
};
|
|
114
146
|
|
|
115
|
-
|
|
116
|
-
var
|
|
117
|
-
|
|
118
|
-
var SHARED = '__core-js_shared__';
|
|
119
|
-
var store$3 = global$C[SHARED] || setGlobal$2(SHARED, {});
|
|
120
|
-
|
|
121
|
-
var sharedStore = store$3;
|
|
122
|
-
|
|
123
|
-
var store$2 = sharedStore;
|
|
124
|
-
|
|
125
|
-
(shared$4.exports = function (key, value) {
|
|
126
|
-
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
127
|
-
})('versions', []).push({
|
|
128
|
-
version: '3.20.3',
|
|
129
|
-
mode: 'global',
|
|
130
|
-
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
131
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.20.3/LICENSE',
|
|
132
|
-
source: 'https://github.com/zloirock/core-js'
|
|
133
|
-
});
|
|
134
|
-
|
|
135
|
-
var global$B = global$G;
|
|
136
|
-
var requireObjectCoercible$4 = requireObjectCoercible$6;
|
|
137
|
-
|
|
138
|
-
var Object$4 = global$B.Object;
|
|
147
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
148
|
+
var documentAll = typeof document == 'object' && document.all;
|
|
139
149
|
|
|
140
|
-
// `
|
|
141
|
-
// https://tc39.es/ecma262/#sec-
|
|
142
|
-
|
|
143
|
-
|
|
150
|
+
// `IsCallable` abstract operation
|
|
151
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
|
152
|
+
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
153
|
+
var isCallable$f = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
154
|
+
return typeof argument == 'function' || argument === documentAll;
|
|
155
|
+
} : function (argument) {
|
|
156
|
+
return typeof argument == 'function';
|
|
144
157
|
};
|
|
145
158
|
|
|
146
|
-
var
|
|
147
|
-
var toObject$3 = toObject$4;
|
|
148
|
-
|
|
149
|
-
var hasOwnProperty = uncurryThis$j({}.hasOwnProperty);
|
|
159
|
+
var isCallable$e = isCallable$f;
|
|
150
160
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
154
|
-
return hasOwnProperty(toObject$3(it), key);
|
|
161
|
+
var isObject$9 = function (it) {
|
|
162
|
+
return typeof it == 'object' ? it !== null : isCallable$e(it);
|
|
155
163
|
};
|
|
156
164
|
|
|
157
|
-
var
|
|
158
|
-
|
|
159
|
-
var id = 0;
|
|
160
|
-
var postfix = Math.random();
|
|
161
|
-
var toString$6 = uncurryThis$i(1.0.toString);
|
|
165
|
+
var globalThis$f = globalThis_1;
|
|
166
|
+
var isCallable$d = isCallable$f;
|
|
162
167
|
|
|
163
|
-
var
|
|
164
|
-
return
|
|
168
|
+
var aFunction = function (argument) {
|
|
169
|
+
return isCallable$d(argument) ? argument : undefined;
|
|
165
170
|
};
|
|
166
171
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
var isCallable$j = function (argument) {
|
|
170
|
-
return typeof argument == 'function';
|
|
172
|
+
var getBuiltIn$3 = function (namespace, method) {
|
|
173
|
+
return arguments.length < 2 ? aFunction(globalThis$f[namespace]) : globalThis$f[namespace] && globalThis$f[namespace][method];
|
|
171
174
|
};
|
|
172
175
|
|
|
173
|
-
var
|
|
174
|
-
var isCallable$i = isCallable$j;
|
|
176
|
+
var uncurryThis$b = functionUncurryThis;
|
|
175
177
|
|
|
176
|
-
var
|
|
177
|
-
return isCallable$i(argument) ? argument : undefined;
|
|
178
|
-
};
|
|
178
|
+
var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
|
|
179
179
|
|
|
180
|
-
var
|
|
181
|
-
return arguments.length < 2 ? aFunction(global$A[namespace]) : global$A[namespace] && global$A[namespace][method];
|
|
182
|
-
};
|
|
180
|
+
var globalThis$e = globalThis_1;
|
|
183
181
|
|
|
184
|
-
var
|
|
182
|
+
var navigator$1 = globalThis$e.navigator;
|
|
183
|
+
var userAgent$1 = navigator$1 && navigator$1.userAgent;
|
|
185
184
|
|
|
186
|
-
var
|
|
185
|
+
var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
|
|
187
186
|
|
|
188
|
-
var
|
|
189
|
-
var userAgent
|
|
187
|
+
var globalThis$d = globalThis_1;
|
|
188
|
+
var userAgent = environmentUserAgent;
|
|
190
189
|
|
|
191
|
-
var process
|
|
192
|
-
var Deno =
|
|
193
|
-
var versions = process
|
|
190
|
+
var process = globalThis$d.process;
|
|
191
|
+
var Deno = globalThis$d.Deno;
|
|
192
|
+
var versions = process && process.versions || Deno && Deno.version;
|
|
194
193
|
var v8 = versions && versions.v8;
|
|
195
194
|
var match, version;
|
|
196
195
|
|
|
@@ -203,229 +202,212 @@ if (v8) {
|
|
|
203
202
|
|
|
204
203
|
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
205
204
|
// so check `userAgent` even if `.v8` exists, but 0
|
|
206
|
-
if (!version && userAgent
|
|
207
|
-
match = userAgent
|
|
205
|
+
if (!version && userAgent) {
|
|
206
|
+
match = userAgent.match(/Edge\/(\d+)/);
|
|
208
207
|
if (!match || match[1] >= 74) {
|
|
209
|
-
match = userAgent
|
|
208
|
+
match = userAgent.match(/Chrome\/(\d+)/);
|
|
210
209
|
if (match) version = +match[1];
|
|
211
210
|
}
|
|
212
211
|
}
|
|
213
212
|
|
|
214
|
-
var
|
|
213
|
+
var environmentV8Version = version;
|
|
215
214
|
|
|
216
215
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
216
|
+
var V8_VERSION = environmentV8Version;
|
|
217
|
+
var fails$c = fails$g;
|
|
218
|
+
var globalThis$c = globalThis_1;
|
|
217
219
|
|
|
218
|
-
var
|
|
219
|
-
var fails$f = fails$i;
|
|
220
|
+
var $String$5 = globalThis$c.String;
|
|
220
221
|
|
|
221
222
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
222
|
-
var
|
|
223
|
-
var symbol = Symbol();
|
|
223
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$c(function () {
|
|
224
|
+
var symbol = Symbol('symbol detection');
|
|
224
225
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
225
226
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
226
|
-
|
|
227
|
+
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
228
|
+
// of course, fail.
|
|
229
|
+
return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
227
230
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
228
|
-
!Symbol.sham && V8_VERSION
|
|
231
|
+
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
229
232
|
});
|
|
230
233
|
|
|
231
234
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
232
|
-
|
|
233
|
-
var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
235
|
+
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
234
236
|
|
|
235
237
|
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
236
238
|
&& !Symbol.sham
|
|
237
239
|
&& typeof Symbol.iterator == 'symbol';
|
|
238
240
|
|
|
239
|
-
var
|
|
240
|
-
var
|
|
241
|
-
var
|
|
242
|
-
var uid$1 = uid$2;
|
|
243
|
-
var NATIVE_SYMBOL = nativeSymbol;
|
|
241
|
+
var getBuiltIn$2 = getBuiltIn$3;
|
|
242
|
+
var isCallable$c = isCallable$f;
|
|
243
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
244
244
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
245
245
|
|
|
246
|
-
var
|
|
247
|
-
|
|
248
|
-
var
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
var
|
|
252
|
-
|
|
253
|
-
var description = 'Symbol.' + name;
|
|
254
|
-
if (NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)) {
|
|
255
|
-
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
256
|
-
} else if (USE_SYMBOL_AS_UID$1 && symbolFor) {
|
|
257
|
-
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
258
|
-
} else {
|
|
259
|
-
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
|
260
|
-
}
|
|
261
|
-
} return WellKnownSymbolsStore[name];
|
|
246
|
+
var $Object$3 = Object;
|
|
247
|
+
|
|
248
|
+
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
249
|
+
return typeof it == 'symbol';
|
|
250
|
+
} : function (it) {
|
|
251
|
+
var $Symbol = getBuiltIn$2('Symbol');
|
|
252
|
+
return isCallable$c($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$3(it));
|
|
262
253
|
};
|
|
263
254
|
|
|
264
|
-
var
|
|
255
|
+
var $String$4 = String;
|
|
265
256
|
|
|
266
|
-
var
|
|
267
|
-
|
|
257
|
+
var tryToString$1 = function (argument) {
|
|
258
|
+
try {
|
|
259
|
+
return $String$4(argument);
|
|
260
|
+
} catch (error) {
|
|
261
|
+
return 'Object';
|
|
262
|
+
}
|
|
268
263
|
};
|
|
269
264
|
|
|
270
|
-
var
|
|
271
|
-
var
|
|
265
|
+
var isCallable$b = isCallable$f;
|
|
266
|
+
var tryToString = tryToString$1;
|
|
272
267
|
|
|
273
|
-
var
|
|
274
|
-
var TypeError$e = global$x.TypeError;
|
|
268
|
+
var $TypeError$8 = TypeError;
|
|
275
269
|
|
|
276
|
-
// `Assert:
|
|
277
|
-
var
|
|
278
|
-
if (
|
|
279
|
-
throw TypeError$
|
|
270
|
+
// `Assert: IsCallable(argument) is true`
|
|
271
|
+
var aCallable$2 = function (argument) {
|
|
272
|
+
if (isCallable$b(argument)) return argument;
|
|
273
|
+
throw new $TypeError$8(tryToString(argument) + ' is not a function');
|
|
280
274
|
};
|
|
281
275
|
|
|
282
|
-
var
|
|
276
|
+
var aCallable$1 = aCallable$2;
|
|
277
|
+
var isNullOrUndefined = isNullOrUndefined$2;
|
|
283
278
|
|
|
284
|
-
|
|
279
|
+
// `GetMethod` abstract operation
|
|
280
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
|
281
|
+
var getMethod$1 = function (V, P) {
|
|
282
|
+
var func = V[P];
|
|
283
|
+
return isNullOrUndefined(func) ? undefined : aCallable$1(func);
|
|
284
|
+
};
|
|
285
285
|
|
|
286
|
-
|
|
287
|
-
var
|
|
288
|
-
|
|
289
|
-
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
290
|
-
});
|
|
286
|
+
var call$6 = functionCall;
|
|
287
|
+
var isCallable$a = isCallable$f;
|
|
288
|
+
var isObject$8 = isObject$9;
|
|
291
289
|
|
|
292
|
-
var
|
|
293
|
-
var fails$d = fails$i;
|
|
290
|
+
var $TypeError$7 = TypeError;
|
|
294
291
|
|
|
295
|
-
//
|
|
296
|
-
// https://
|
|
297
|
-
var
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}
|
|
292
|
+
// `OrdinaryToPrimitive` abstract operation
|
|
293
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
294
|
+
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
295
|
+
var fn, val;
|
|
296
|
+
if (pref === 'string' && isCallable$a(fn = input.toString) && !isObject$8(val = call$6(fn, input))) return val;
|
|
297
|
+
if (isCallable$a(fn = input.valueOf) && !isObject$8(val = call$6(fn, input))) return val;
|
|
298
|
+
if (pref !== 'string' && isCallable$a(fn = input.toString) && !isObject$8(val = call$6(fn, input))) return val;
|
|
299
|
+
throw new $TypeError$7("Can't convert object to primitive value");
|
|
300
|
+
};
|
|
304
301
|
|
|
305
|
-
var
|
|
302
|
+
var sharedStore = {exports: {}};
|
|
306
303
|
|
|
307
|
-
var
|
|
308
|
-
var isObject$6 = isObject$8;
|
|
304
|
+
var globalThis$b = globalThis_1;
|
|
309
305
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
var EXISTS$1 = isObject$6(document$3) && isObject$6(document$3.createElement);
|
|
306
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
307
|
+
var defineProperty$4 = Object.defineProperty;
|
|
313
308
|
|
|
314
|
-
var
|
|
315
|
-
|
|
309
|
+
var defineGlobalProperty$3 = function (key, value) {
|
|
310
|
+
try {
|
|
311
|
+
defineProperty$4(globalThis$b, key, { value: value, configurable: true, writable: true });
|
|
312
|
+
} catch (error) {
|
|
313
|
+
globalThis$b[key] = value;
|
|
314
|
+
} return value;
|
|
316
315
|
};
|
|
317
316
|
|
|
318
|
-
var
|
|
319
|
-
var
|
|
320
|
-
var createElement$1 = documentCreateElement$2;
|
|
317
|
+
var globalThis$a = globalThis_1;
|
|
318
|
+
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
321
319
|
|
|
322
|
-
|
|
323
|
-
var
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
320
|
+
var SHARED = '__core-js_shared__';
|
|
321
|
+
var store$3 = sharedStore.exports = globalThis$a[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
322
|
+
|
|
323
|
+
(store$3.versions || (store$3.versions = [])).push({
|
|
324
|
+
version: '3.38.1',
|
|
325
|
+
mode: 'global',
|
|
326
|
+
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
327
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
|
|
328
|
+
source: 'https://github.com/zloirock/core-js'
|
|
328
329
|
});
|
|
329
330
|
|
|
330
|
-
var
|
|
331
|
+
var sharedStoreExports = sharedStore.exports;
|
|
331
332
|
|
|
332
|
-
var
|
|
333
|
+
var store$2 = sharedStoreExports;
|
|
333
334
|
|
|
334
|
-
var
|
|
335
|
-
return
|
|
335
|
+
var shared$4 = function (key, value) {
|
|
336
|
+
return store$2[key] || (store$2[key] = value || {});
|
|
336
337
|
};
|
|
337
338
|
|
|
338
|
-
var
|
|
339
|
-
|
|
340
|
-
var objectIsPrototypeOf = uncurryThis$h({}.isPrototypeOf);
|
|
341
|
-
|
|
342
|
-
var global$v = global$G;
|
|
343
|
-
var getBuiltIn$5 = getBuiltIn$7;
|
|
344
|
-
var isCallable$g = isCallable$j;
|
|
345
|
-
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
346
|
-
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
339
|
+
var requireObjectCoercible$3 = requireObjectCoercible$5;
|
|
347
340
|
|
|
348
|
-
var Object$
|
|
341
|
+
var $Object$2 = Object;
|
|
349
342
|
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
return isCallable$g($Symbol) && isPrototypeOf$3($Symbol.prototype, Object$3(it));
|
|
343
|
+
// `ToObject` abstract operation
|
|
344
|
+
// https://tc39.es/ecma262/#sec-toobject
|
|
345
|
+
var toObject$3 = function (argument) {
|
|
346
|
+
return $Object$2(requireObjectCoercible$3(argument));
|
|
355
347
|
};
|
|
356
348
|
|
|
357
|
-
var
|
|
349
|
+
var uncurryThis$a = functionUncurryThis;
|
|
350
|
+
var toObject$2 = toObject$3;
|
|
358
351
|
|
|
359
|
-
var
|
|
352
|
+
var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
|
|
360
353
|
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
}
|
|
354
|
+
// `HasOwnProperty` abstract operation
|
|
355
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
356
|
+
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
357
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
358
|
+
return hasOwnProperty(toObject$2(it), key);
|
|
367
359
|
};
|
|
368
360
|
|
|
369
|
-
var
|
|
370
|
-
var isCallable$f = isCallable$j;
|
|
371
|
-
var tryToString$3 = tryToString$4;
|
|
372
|
-
|
|
373
|
-
var TypeError$d = global$t.TypeError;
|
|
374
|
-
|
|
375
|
-
// `Assert: IsCallable(argument) is true`
|
|
376
|
-
var aCallable$5 = function (argument) {
|
|
377
|
-
if (isCallable$f(argument)) return argument;
|
|
378
|
-
throw TypeError$d(tryToString$3(argument) + ' is not a function');
|
|
379
|
-
};
|
|
361
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
380
362
|
|
|
381
|
-
var
|
|
363
|
+
var id = 0;
|
|
364
|
+
var postfix = Math.random();
|
|
365
|
+
var toString$5 = uncurryThis$9(1.0.toString);
|
|
382
366
|
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
var getMethod$4 = function (V, P) {
|
|
386
|
-
var func = V[P];
|
|
387
|
-
return func == null ? undefined : aCallable$4(func);
|
|
367
|
+
var uid$2 = function (key) {
|
|
368
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
|
|
388
369
|
};
|
|
389
370
|
|
|
390
|
-
var
|
|
391
|
-
var
|
|
392
|
-
var
|
|
393
|
-
var
|
|
371
|
+
var globalThis$9 = globalThis_1;
|
|
372
|
+
var shared$3 = shared$4;
|
|
373
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
374
|
+
var uid$1 = uid$2;
|
|
375
|
+
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
376
|
+
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
394
377
|
|
|
395
|
-
var
|
|
378
|
+
var Symbol$1 = globalThis$9.Symbol;
|
|
379
|
+
var WellKnownSymbolsStore = shared$3('wks');
|
|
380
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
396
381
|
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
if (pref !== 'string' && isCallable$e(fn = input.toString) && !isObject$5(val = call$c(fn, input))) return val;
|
|
404
|
-
throw TypeError$c("Can't convert object to primitive value");
|
|
382
|
+
var wellKnownSymbol$a = function (name) {
|
|
383
|
+
if (!hasOwn$9(WellKnownSymbolsStore, name)) {
|
|
384
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)
|
|
385
|
+
? Symbol$1[name]
|
|
386
|
+
: createWellKnownSymbol('Symbol.' + name);
|
|
387
|
+
} return WellKnownSymbolsStore[name];
|
|
405
388
|
};
|
|
406
389
|
|
|
407
|
-
var
|
|
408
|
-
var
|
|
409
|
-
var isObject$4 = isObject$8;
|
|
390
|
+
var call$5 = functionCall;
|
|
391
|
+
var isObject$7 = isObject$9;
|
|
410
392
|
var isSymbol$1 = isSymbol$2;
|
|
411
|
-
var getMethod
|
|
393
|
+
var getMethod = getMethod$1;
|
|
412
394
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
413
|
-
var wellKnownSymbol$
|
|
395
|
+
var wellKnownSymbol$9 = wellKnownSymbol$a;
|
|
414
396
|
|
|
415
|
-
var TypeError$
|
|
416
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
|
397
|
+
var $TypeError$6 = TypeError;
|
|
398
|
+
var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
|
|
417
399
|
|
|
418
400
|
// `ToPrimitive` abstract operation
|
|
419
401
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
420
402
|
var toPrimitive$1 = function (input, pref) {
|
|
421
|
-
if (!isObject$
|
|
422
|
-
var exoticToPrim = getMethod
|
|
403
|
+
if (!isObject$7(input) || isSymbol$1(input)) return input;
|
|
404
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
423
405
|
var result;
|
|
424
406
|
if (exoticToPrim) {
|
|
425
407
|
if (pref === undefined) pref = 'default';
|
|
426
|
-
result = call$
|
|
427
|
-
if (!isObject$
|
|
428
|
-
throw TypeError$
|
|
408
|
+
result = call$5(exoticToPrim, input, pref);
|
|
409
|
+
if (!isObject$7(result) || isSymbol$1(result)) return result;
|
|
410
|
+
throw new $TypeError$6("Can't convert object to primitive value");
|
|
429
411
|
}
|
|
430
412
|
if (pref === undefined) pref = 'number';
|
|
431
413
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -441,30 +423,101 @@ var toPropertyKey$2 = function (argument) {
|
|
|
441
423
|
return isSymbol(key) ? key : key + '';
|
|
442
424
|
};
|
|
443
425
|
|
|
444
|
-
var
|
|
445
|
-
var
|
|
426
|
+
var globalThis$8 = globalThis_1;
|
|
427
|
+
var isObject$6 = isObject$9;
|
|
428
|
+
|
|
429
|
+
var document$1 = globalThis$8.document;
|
|
430
|
+
// typeof document.createElement is 'object' in old IE
|
|
431
|
+
var EXISTS$1 = isObject$6(document$1) && isObject$6(document$1.createElement);
|
|
432
|
+
|
|
433
|
+
var documentCreateElement$2 = function (it) {
|
|
434
|
+
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
435
|
+
};
|
|
436
|
+
|
|
437
|
+
var DESCRIPTORS$9 = descriptors;
|
|
438
|
+
var fails$b = fails$g;
|
|
439
|
+
var createElement = documentCreateElement$2;
|
|
440
|
+
|
|
441
|
+
// Thanks to IE8 for its funny defineProperty
|
|
442
|
+
var ie8DomDefine = !DESCRIPTORS$9 && !fails$b(function () {
|
|
443
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
444
|
+
return Object.defineProperty(createElement('div'), 'a', {
|
|
445
|
+
get: function () { return 7; }
|
|
446
|
+
}).a !== 7;
|
|
447
|
+
});
|
|
448
|
+
|
|
449
|
+
var DESCRIPTORS$8 = descriptors;
|
|
450
|
+
var call$4 = functionCall;
|
|
451
|
+
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
452
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
453
|
+
var toIndexedObject$4 = toIndexedObject$5;
|
|
454
|
+
var toPropertyKey$1 = toPropertyKey$2;
|
|
455
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
446
456
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
457
|
+
|
|
458
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
459
|
+
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
460
|
+
|
|
461
|
+
// `Object.getOwnPropertyDescriptor` method
|
|
462
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
463
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
464
|
+
O = toIndexedObject$4(O);
|
|
465
|
+
P = toPropertyKey$1(P);
|
|
466
|
+
if (IE8_DOM_DEFINE$1) try {
|
|
467
|
+
return $getOwnPropertyDescriptor$1(O, P);
|
|
468
|
+
} catch (error) { /* empty */ }
|
|
469
|
+
if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$4(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
var objectDefineProperty = {};
|
|
473
|
+
|
|
474
|
+
var DESCRIPTORS$7 = descriptors;
|
|
475
|
+
var fails$a = fails$g;
|
|
476
|
+
|
|
477
|
+
// V8 ~ Chrome 36-
|
|
478
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
479
|
+
var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$a(function () {
|
|
480
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
481
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
482
|
+
value: 42,
|
|
483
|
+
writable: false
|
|
484
|
+
}).prototype !== 42;
|
|
485
|
+
});
|
|
486
|
+
|
|
487
|
+
var isObject$5 = isObject$9;
|
|
488
|
+
|
|
489
|
+
var $String$3 = String;
|
|
490
|
+
var $TypeError$5 = TypeError;
|
|
491
|
+
|
|
492
|
+
// `Assert: Type(argument) is Object`
|
|
493
|
+
var anObject$7 = function (argument) {
|
|
494
|
+
if (isObject$5(argument)) return argument;
|
|
495
|
+
throw new $TypeError$5($String$3(argument) + ' is not an object');
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
var DESCRIPTORS$6 = descriptors;
|
|
499
|
+
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
447
500
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
448
|
-
var anObject$
|
|
449
|
-
var toPropertyKey
|
|
501
|
+
var anObject$6 = anObject$7;
|
|
502
|
+
var toPropertyKey = toPropertyKey$2;
|
|
450
503
|
|
|
451
|
-
var TypeError$
|
|
504
|
+
var $TypeError$4 = TypeError;
|
|
452
505
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
453
506
|
var $defineProperty = Object.defineProperty;
|
|
454
507
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
455
|
-
var $getOwnPropertyDescriptor
|
|
508
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
456
509
|
var ENUMERABLE = 'enumerable';
|
|
457
510
|
var CONFIGURABLE$1 = 'configurable';
|
|
458
511
|
var WRITABLE = 'writable';
|
|
459
512
|
|
|
460
513
|
// `Object.defineProperty` method
|
|
461
514
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
462
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
463
|
-
anObject$
|
|
464
|
-
P = toPropertyKey
|
|
465
|
-
anObject$
|
|
515
|
+
objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
516
|
+
anObject$6(O);
|
|
517
|
+
P = toPropertyKey(P);
|
|
518
|
+
anObject$6(Attributes);
|
|
466
519
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
467
|
-
var current = $getOwnPropertyDescriptor
|
|
520
|
+
var current = $getOwnPropertyDescriptor(O, P);
|
|
468
521
|
if (current && current[WRITABLE]) {
|
|
469
522
|
O[P] = Attributes.value;
|
|
470
523
|
Attributes = {
|
|
@@ -475,76 +528,310 @@ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
475
528
|
}
|
|
476
529
|
} return $defineProperty(O, P, Attributes);
|
|
477
530
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
478
|
-
anObject$
|
|
479
|
-
P = toPropertyKey
|
|
480
|
-
anObject$
|
|
481
|
-
if (IE8_DOM_DEFINE
|
|
531
|
+
anObject$6(O);
|
|
532
|
+
P = toPropertyKey(P);
|
|
533
|
+
anObject$6(Attributes);
|
|
534
|
+
if (IE8_DOM_DEFINE) try {
|
|
482
535
|
return $defineProperty(O, P, Attributes);
|
|
483
536
|
} catch (error) { /* empty */ }
|
|
484
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError$
|
|
537
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$4('Accessors not supported');
|
|
485
538
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
486
539
|
return O;
|
|
487
540
|
};
|
|
488
541
|
|
|
489
|
-
var
|
|
490
|
-
var
|
|
542
|
+
var DESCRIPTORS$5 = descriptors;
|
|
543
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
544
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
491
545
|
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
|
|
546
|
+
var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
|
|
547
|
+
return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
|
|
548
|
+
} : function (object, key, value) {
|
|
549
|
+
object[key] = value;
|
|
550
|
+
return object;
|
|
498
551
|
};
|
|
499
552
|
|
|
500
|
-
var
|
|
553
|
+
var makeBuiltIn$2 = {exports: {}};
|
|
501
554
|
|
|
502
|
-
var
|
|
503
|
-
var
|
|
504
|
-
|
|
505
|
-
// Helper for a popular repeating case of the spec:
|
|
506
|
-
// Let integer be ? ToInteger(index).
|
|
507
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
508
|
-
var toAbsoluteIndex$1 = function (index, length) {
|
|
509
|
-
var integer = toIntegerOrInfinity$3(index);
|
|
510
|
-
return integer < 0 ? max$1(integer + length, 0) : min$3(integer, length);
|
|
511
|
-
};
|
|
555
|
+
var DESCRIPTORS$4 = descriptors;
|
|
556
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
512
557
|
|
|
513
|
-
var
|
|
558
|
+
var FunctionPrototype = Function.prototype;
|
|
559
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
560
|
+
var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
|
|
561
|
+
|
|
562
|
+
var EXISTS = hasOwn$7(FunctionPrototype, 'name');
|
|
563
|
+
// additional protection from minified / mangled / dropped function names
|
|
564
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
565
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
566
|
+
|
|
567
|
+
var functionName = {
|
|
568
|
+
EXISTS: EXISTS,
|
|
569
|
+
PROPER: PROPER,
|
|
570
|
+
CONFIGURABLE: CONFIGURABLE
|
|
571
|
+
};
|
|
572
|
+
|
|
573
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
574
|
+
var isCallable$9 = isCallable$f;
|
|
575
|
+
var store$1 = sharedStoreExports;
|
|
576
|
+
|
|
577
|
+
var functionToString = uncurryThis$8(Function.toString);
|
|
578
|
+
|
|
579
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
580
|
+
if (!isCallable$9(store$1.inspectSource)) {
|
|
581
|
+
store$1.inspectSource = function (it) {
|
|
582
|
+
return functionToString(it);
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
var inspectSource$1 = store$1.inspectSource;
|
|
587
|
+
|
|
588
|
+
var globalThis$7 = globalThis_1;
|
|
589
|
+
var isCallable$8 = isCallable$f;
|
|
590
|
+
|
|
591
|
+
var WeakMap$1 = globalThis$7.WeakMap;
|
|
592
|
+
|
|
593
|
+
var weakMapBasicDetection = isCallable$8(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
594
|
+
|
|
595
|
+
var shared$2 = shared$4;
|
|
596
|
+
var uid = uid$2;
|
|
597
|
+
|
|
598
|
+
var keys = shared$2('keys');
|
|
599
|
+
|
|
600
|
+
var sharedKey$3 = function (key) {
|
|
601
|
+
return keys[key] || (keys[key] = uid(key));
|
|
602
|
+
};
|
|
603
|
+
|
|
604
|
+
var hiddenKeys$4 = {};
|
|
605
|
+
|
|
606
|
+
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
607
|
+
var globalThis$6 = globalThis_1;
|
|
608
|
+
var isObject$4 = isObject$9;
|
|
609
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
610
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
611
|
+
var shared$1 = sharedStoreExports;
|
|
612
|
+
var sharedKey$2 = sharedKey$3;
|
|
613
|
+
var hiddenKeys$3 = hiddenKeys$4;
|
|
614
|
+
|
|
615
|
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
616
|
+
var TypeError$1 = globalThis$6.TypeError;
|
|
617
|
+
var WeakMap = globalThis$6.WeakMap;
|
|
618
|
+
var set, get, has;
|
|
619
|
+
|
|
620
|
+
var enforce = function (it) {
|
|
621
|
+
return has(it) ? get(it) : set(it, {});
|
|
622
|
+
};
|
|
623
|
+
|
|
624
|
+
var getterFor = function (TYPE) {
|
|
625
|
+
return function (it) {
|
|
626
|
+
var state;
|
|
627
|
+
if (!isObject$4(it) || (state = get(it)).type !== TYPE) {
|
|
628
|
+
throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
629
|
+
} return state;
|
|
630
|
+
};
|
|
631
|
+
};
|
|
632
|
+
|
|
633
|
+
if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
634
|
+
var store = shared$1.state || (shared$1.state = new WeakMap());
|
|
635
|
+
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
636
|
+
store.get = store.get;
|
|
637
|
+
store.has = store.has;
|
|
638
|
+
store.set = store.set;
|
|
639
|
+
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
640
|
+
set = function (it, metadata) {
|
|
641
|
+
if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
642
|
+
metadata.facade = it;
|
|
643
|
+
store.set(it, metadata);
|
|
644
|
+
return metadata;
|
|
645
|
+
};
|
|
646
|
+
get = function (it) {
|
|
647
|
+
return store.get(it) || {};
|
|
648
|
+
};
|
|
649
|
+
has = function (it) {
|
|
650
|
+
return store.has(it);
|
|
651
|
+
};
|
|
652
|
+
} else {
|
|
653
|
+
var STATE = sharedKey$2('state');
|
|
654
|
+
hiddenKeys$3[STATE] = true;
|
|
655
|
+
set = function (it, metadata) {
|
|
656
|
+
if (hasOwn$6(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
657
|
+
metadata.facade = it;
|
|
658
|
+
createNonEnumerableProperty$3(it, STATE, metadata);
|
|
659
|
+
return metadata;
|
|
660
|
+
};
|
|
661
|
+
get = function (it) {
|
|
662
|
+
return hasOwn$6(it, STATE) ? it[STATE] : {};
|
|
663
|
+
};
|
|
664
|
+
has = function (it) {
|
|
665
|
+
return hasOwn$6(it, STATE);
|
|
666
|
+
};
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
var internalState = {
|
|
670
|
+
set: set,
|
|
671
|
+
get: get,
|
|
672
|
+
has: has,
|
|
673
|
+
enforce: enforce,
|
|
674
|
+
getterFor: getterFor
|
|
675
|
+
};
|
|
676
|
+
|
|
677
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
678
|
+
var fails$9 = fails$g;
|
|
679
|
+
var isCallable$7 = isCallable$f;
|
|
680
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
681
|
+
var DESCRIPTORS$3 = descriptors;
|
|
682
|
+
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
683
|
+
var inspectSource = inspectSource$1;
|
|
684
|
+
var InternalStateModule$1 = internalState;
|
|
685
|
+
|
|
686
|
+
var enforceInternalState = InternalStateModule$1.enforce;
|
|
687
|
+
var getInternalState$2 = InternalStateModule$1.get;
|
|
688
|
+
var $String$2 = String;
|
|
689
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
690
|
+
var defineProperty$3 = Object.defineProperty;
|
|
691
|
+
var stringSlice$2 = uncurryThis$7(''.slice);
|
|
692
|
+
var replace$1 = uncurryThis$7(''.replace);
|
|
693
|
+
var join = uncurryThis$7([].join);
|
|
694
|
+
|
|
695
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$9(function () {
|
|
696
|
+
return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
697
|
+
});
|
|
698
|
+
|
|
699
|
+
var TEMPLATE = String(String).split('String');
|
|
514
700
|
|
|
701
|
+
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
702
|
+
if (stringSlice$2($String$2(name), 0, 7) === 'Symbol(') {
|
|
703
|
+
name = '[' + replace$1($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
704
|
+
}
|
|
705
|
+
if (options && options.getter) name = 'get ' + name;
|
|
706
|
+
if (options && options.setter) name = 'set ' + name;
|
|
707
|
+
if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
708
|
+
if (DESCRIPTORS$3) defineProperty$3(value, 'name', { value: name, configurable: true });
|
|
709
|
+
else value.name = name;
|
|
710
|
+
}
|
|
711
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
|
|
712
|
+
defineProperty$3(value, 'length', { value: options.arity });
|
|
713
|
+
}
|
|
714
|
+
try {
|
|
715
|
+
if (options && hasOwn$5(options, 'constructor') && options.constructor) {
|
|
716
|
+
if (DESCRIPTORS$3) defineProperty$3(value, 'prototype', { writable: false });
|
|
717
|
+
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
718
|
+
} else if (value.prototype) value.prototype = undefined;
|
|
719
|
+
} catch (error) { /* empty */ }
|
|
720
|
+
var state = enforceInternalState(value);
|
|
721
|
+
if (!hasOwn$5(state, 'source')) {
|
|
722
|
+
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
723
|
+
} return value;
|
|
724
|
+
};
|
|
725
|
+
|
|
726
|
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
727
|
+
// eslint-disable-next-line no-extend-native -- required
|
|
728
|
+
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
729
|
+
return isCallable$7(this) && getInternalState$2(this).source || inspectSource(this);
|
|
730
|
+
}, 'toString');
|
|
731
|
+
|
|
732
|
+
var makeBuiltInExports = makeBuiltIn$2.exports;
|
|
733
|
+
|
|
734
|
+
var isCallable$6 = isCallable$f;
|
|
735
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
736
|
+
var makeBuiltIn = makeBuiltInExports;
|
|
737
|
+
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
738
|
+
|
|
739
|
+
var defineBuiltIn$4 = function (O, key, value, options) {
|
|
740
|
+
if (!options) options = {};
|
|
741
|
+
var simple = options.enumerable;
|
|
742
|
+
var name = options.name !== undefined ? options.name : key;
|
|
743
|
+
if (isCallable$6(value)) makeBuiltIn(value, name, options);
|
|
744
|
+
if (options.global) {
|
|
745
|
+
if (simple) O[key] = value;
|
|
746
|
+
else defineGlobalProperty$1(key, value);
|
|
747
|
+
} else {
|
|
748
|
+
try {
|
|
749
|
+
if (!options.unsafe) delete O[key];
|
|
750
|
+
else if (O[key]) simple = true;
|
|
751
|
+
} catch (error) { /* empty */ }
|
|
752
|
+
if (simple) O[key] = value;
|
|
753
|
+
else definePropertyModule$2.f(O, key, {
|
|
754
|
+
value: value,
|
|
755
|
+
enumerable: false,
|
|
756
|
+
configurable: !options.nonConfigurable,
|
|
757
|
+
writable: !options.nonWritable
|
|
758
|
+
});
|
|
759
|
+
} return O;
|
|
760
|
+
};
|
|
761
|
+
|
|
762
|
+
var objectGetOwnPropertyNames = {};
|
|
763
|
+
|
|
764
|
+
var ceil = Math.ceil;
|
|
765
|
+
var floor = Math.floor;
|
|
766
|
+
|
|
767
|
+
// `Math.trunc` method
|
|
768
|
+
// https://tc39.es/ecma262/#sec-math.trunc
|
|
769
|
+
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
770
|
+
var mathTrunc = Math.trunc || function trunc(x) {
|
|
771
|
+
var n = +x;
|
|
772
|
+
return (n > 0 ? floor : ceil)(n);
|
|
773
|
+
};
|
|
774
|
+
|
|
775
|
+
var trunc = mathTrunc;
|
|
776
|
+
|
|
777
|
+
// `ToIntegerOrInfinity` abstract operation
|
|
778
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
779
|
+
var toIntegerOrInfinity$2 = function (argument) {
|
|
780
|
+
var number = +argument;
|
|
781
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
782
|
+
return number !== number || number === 0 ? 0 : trunc(number);
|
|
783
|
+
};
|
|
784
|
+
|
|
785
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
786
|
+
|
|
787
|
+
var max = Math.max;
|
|
515
788
|
var min$2 = Math.min;
|
|
516
789
|
|
|
790
|
+
// Helper for a popular repeating case of the spec:
|
|
791
|
+
// Let integer be ? ToInteger(index).
|
|
792
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
793
|
+
var toAbsoluteIndex$1 = function (index, length) {
|
|
794
|
+
var integer = toIntegerOrInfinity$1(index);
|
|
795
|
+
return integer < 0 ? max(integer + length, 0) : min$2(integer, length);
|
|
796
|
+
};
|
|
797
|
+
|
|
798
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$2;
|
|
799
|
+
|
|
800
|
+
var min$1 = Math.min;
|
|
801
|
+
|
|
517
802
|
// `ToLength` abstract operation
|
|
518
803
|
// https://tc39.es/ecma262/#sec-tolength
|
|
519
|
-
var toLength$
|
|
520
|
-
|
|
804
|
+
var toLength$2 = function (argument) {
|
|
805
|
+
var len = toIntegerOrInfinity(argument);
|
|
806
|
+
return len > 0 ? min$1(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
521
807
|
};
|
|
522
808
|
|
|
523
|
-
var toLength$
|
|
809
|
+
var toLength$1 = toLength$2;
|
|
524
810
|
|
|
525
811
|
// `LengthOfArrayLike` abstract operation
|
|
526
812
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
527
813
|
var lengthOfArrayLike$2 = function (obj) {
|
|
528
|
-
return toLength$
|
|
814
|
+
return toLength$1(obj.length);
|
|
529
815
|
};
|
|
530
816
|
|
|
531
|
-
var toIndexedObject$
|
|
817
|
+
var toIndexedObject$3 = toIndexedObject$5;
|
|
532
818
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
533
819
|
var lengthOfArrayLike$1 = lengthOfArrayLike$2;
|
|
534
820
|
|
|
535
821
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
536
|
-
var createMethod
|
|
822
|
+
var createMethod = function (IS_INCLUDES) {
|
|
537
823
|
return function ($this, el, fromIndex) {
|
|
538
|
-
var O = toIndexedObject$
|
|
824
|
+
var O = toIndexedObject$3($this);
|
|
539
825
|
var length = lengthOfArrayLike$1(O);
|
|
826
|
+
if (length === 0) return !IS_INCLUDES && -1;
|
|
540
827
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
541
828
|
var value;
|
|
542
829
|
// Array#includes uses SameValueZero equality algorithm
|
|
543
830
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
544
|
-
if (IS_INCLUDES && el
|
|
831
|
+
if (IS_INCLUDES && el !== el) while (length > index) {
|
|
545
832
|
value = O[index++];
|
|
546
833
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
547
|
-
if (value
|
|
834
|
+
if (value !== value) return true;
|
|
548
835
|
// Array#indexOf ignores holes, Array#includes - not
|
|
549
836
|
} else for (;length > index; index++) {
|
|
550
837
|
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
@@ -555,31 +842,29 @@ var createMethod$1 = function (IS_INCLUDES) {
|
|
|
555
842
|
var arrayIncludes = {
|
|
556
843
|
// `Array.prototype.includes` method
|
|
557
844
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
558
|
-
includes: createMethod
|
|
845
|
+
includes: createMethod(true),
|
|
559
846
|
// `Array.prototype.indexOf` method
|
|
560
847
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
561
|
-
indexOf: createMethod
|
|
848
|
+
indexOf: createMethod(false)
|
|
562
849
|
};
|
|
563
850
|
|
|
564
|
-
var
|
|
565
|
-
|
|
566
|
-
var
|
|
567
|
-
var hasOwn$8 = hasOwnProperty_1;
|
|
568
|
-
var toIndexedObject$3 = toIndexedObject$5;
|
|
851
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
852
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
853
|
+
var toIndexedObject$2 = toIndexedObject$5;
|
|
569
854
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
570
|
-
var hiddenKeys$
|
|
855
|
+
var hiddenKeys$2 = hiddenKeys$4;
|
|
571
856
|
|
|
572
|
-
var push
|
|
857
|
+
var push = uncurryThis$6([].push);
|
|
573
858
|
|
|
574
859
|
var objectKeysInternal = function (object, names) {
|
|
575
|
-
var O = toIndexedObject$
|
|
860
|
+
var O = toIndexedObject$2(object);
|
|
576
861
|
var i = 0;
|
|
577
862
|
var result = [];
|
|
578
863
|
var key;
|
|
579
|
-
for (key in O) !hasOwn$
|
|
864
|
+
for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push(result, key);
|
|
580
865
|
// Don't enum bug & hidden keys
|
|
581
|
-
while (names.length > i) if (hasOwn$
|
|
582
|
-
~indexOf$1(result, key) || push
|
|
866
|
+
while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
|
|
867
|
+
~indexOf$1(result, key) || push(result, key);
|
|
583
868
|
}
|
|
584
869
|
return result;
|
|
585
870
|
};
|
|
@@ -598,62 +883,181 @@ var enumBugKeys$3 = [
|
|
|
598
883
|
var internalObjectKeys$1 = objectKeysInternal;
|
|
599
884
|
var enumBugKeys$2 = enumBugKeys$3;
|
|
600
885
|
|
|
886
|
+
var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
|
|
887
|
+
|
|
888
|
+
// `Object.getOwnPropertyNames` method
|
|
889
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
890
|
+
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
891
|
+
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
892
|
+
return internalObjectKeys$1(O, hiddenKeys$1);
|
|
893
|
+
};
|
|
894
|
+
|
|
895
|
+
var objectGetOwnPropertySymbols = {};
|
|
896
|
+
|
|
897
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
898
|
+
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
899
|
+
|
|
900
|
+
var getBuiltIn$1 = getBuiltIn$3;
|
|
901
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
902
|
+
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
903
|
+
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
904
|
+
var anObject$5 = anObject$7;
|
|
905
|
+
|
|
906
|
+
var concat = uncurryThis$5([].concat);
|
|
907
|
+
|
|
908
|
+
// all object keys, includes non-enumerable and symbols
|
|
909
|
+
var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
910
|
+
var keys = getOwnPropertyNamesModule.f(anObject$5(it));
|
|
911
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
912
|
+
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
|
913
|
+
};
|
|
914
|
+
|
|
915
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
916
|
+
var ownKeys = ownKeys$1;
|
|
917
|
+
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
918
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
919
|
+
|
|
920
|
+
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
921
|
+
var keys = ownKeys(source);
|
|
922
|
+
var defineProperty = definePropertyModule$1.f;
|
|
923
|
+
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
924
|
+
for (var i = 0; i < keys.length; i++) {
|
|
925
|
+
var key = keys[i];
|
|
926
|
+
if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
|
|
927
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
};
|
|
931
|
+
|
|
932
|
+
var fails$8 = fails$g;
|
|
933
|
+
var isCallable$5 = isCallable$f;
|
|
934
|
+
|
|
935
|
+
var replacement = /#|\.prototype\./;
|
|
936
|
+
|
|
937
|
+
var isForced$1 = function (feature, detection) {
|
|
938
|
+
var value = data[normalize(feature)];
|
|
939
|
+
return value === POLYFILL ? true
|
|
940
|
+
: value === NATIVE ? false
|
|
941
|
+
: isCallable$5(detection) ? fails$8(detection)
|
|
942
|
+
: !!detection;
|
|
943
|
+
};
|
|
944
|
+
|
|
945
|
+
var normalize = isForced$1.normalize = function (string) {
|
|
946
|
+
return String(string).replace(replacement, '.').toLowerCase();
|
|
947
|
+
};
|
|
948
|
+
|
|
949
|
+
var data = isForced$1.data = {};
|
|
950
|
+
var NATIVE = isForced$1.NATIVE = 'N';
|
|
951
|
+
var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
952
|
+
|
|
953
|
+
var isForced_1 = isForced$1;
|
|
954
|
+
|
|
955
|
+
var globalThis$5 = globalThis_1;
|
|
956
|
+
var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
|
|
957
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
958
|
+
var defineBuiltIn$3 = defineBuiltIn$4;
|
|
959
|
+
var defineGlobalProperty = defineGlobalProperty$3;
|
|
960
|
+
var copyConstructorProperties = copyConstructorProperties$1;
|
|
961
|
+
var isForced = isForced_1;
|
|
962
|
+
|
|
963
|
+
/*
|
|
964
|
+
options.target - name of the target object
|
|
965
|
+
options.global - target is the global object
|
|
966
|
+
options.stat - export as static methods of target
|
|
967
|
+
options.proto - export as prototype methods of target
|
|
968
|
+
options.real - real prototype method for the `pure` version
|
|
969
|
+
options.forced - export even if the native feature is available
|
|
970
|
+
options.bind - bind methods to the target, required for the `pure` version
|
|
971
|
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
972
|
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
973
|
+
options.sham - add a flag to not completely full polyfills
|
|
974
|
+
options.enumerable - export as enumerable property
|
|
975
|
+
options.dontCallGetSet - prevent calling a getter on target
|
|
976
|
+
options.name - the .name of the function if it does not match the key
|
|
977
|
+
*/
|
|
978
|
+
var _export = function (options, source) {
|
|
979
|
+
var TARGET = options.target;
|
|
980
|
+
var GLOBAL = options.global;
|
|
981
|
+
var STATIC = options.stat;
|
|
982
|
+
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
983
|
+
if (GLOBAL) {
|
|
984
|
+
target = globalThis$5;
|
|
985
|
+
} else if (STATIC) {
|
|
986
|
+
target = globalThis$5[TARGET] || defineGlobalProperty(TARGET, {});
|
|
987
|
+
} else {
|
|
988
|
+
target = globalThis$5[TARGET] && globalThis$5[TARGET].prototype;
|
|
989
|
+
}
|
|
990
|
+
if (target) for (key in source) {
|
|
991
|
+
sourceProperty = source[key];
|
|
992
|
+
if (options.dontCallGetSet) {
|
|
993
|
+
descriptor = getOwnPropertyDescriptor$2(target, key);
|
|
994
|
+
targetProperty = descriptor && descriptor.value;
|
|
995
|
+
} else targetProperty = target[key];
|
|
996
|
+
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
997
|
+
// contained in target
|
|
998
|
+
if (!FORCED && targetProperty !== undefined) {
|
|
999
|
+
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
1000
|
+
copyConstructorProperties(sourceProperty, targetProperty);
|
|
1001
|
+
}
|
|
1002
|
+
// add a flag to not completely full polyfills
|
|
1003
|
+
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1004
|
+
createNonEnumerableProperty$2(sourceProperty, 'sham', true);
|
|
1005
|
+
}
|
|
1006
|
+
defineBuiltIn$3(target, key, sourceProperty, options);
|
|
1007
|
+
}
|
|
1008
|
+
};
|
|
1009
|
+
|
|
1010
|
+
var objectDefineProperties = {};
|
|
1011
|
+
|
|
1012
|
+
var internalObjectKeys = objectKeysInternal;
|
|
1013
|
+
var enumBugKeys$1 = enumBugKeys$3;
|
|
1014
|
+
|
|
601
1015
|
// `Object.keys` method
|
|
602
1016
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
603
1017
|
// eslint-disable-next-line es/no-object-keys -- safe
|
|
604
|
-
var objectKeys$
|
|
605
|
-
return internalObjectKeys
|
|
1018
|
+
var objectKeys$1 = Object.keys || function keys(O) {
|
|
1019
|
+
return internalObjectKeys(O, enumBugKeys$1);
|
|
606
1020
|
};
|
|
607
1021
|
|
|
608
|
-
var DESCRIPTORS$
|
|
1022
|
+
var DESCRIPTORS$2 = descriptors;
|
|
609
1023
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
610
|
-
var definePropertyModule
|
|
611
|
-
var anObject$
|
|
612
|
-
var toIndexedObject$
|
|
613
|
-
var objectKeys
|
|
1024
|
+
var definePropertyModule = objectDefineProperty;
|
|
1025
|
+
var anObject$4 = anObject$7;
|
|
1026
|
+
var toIndexedObject$1 = toIndexedObject$5;
|
|
1027
|
+
var objectKeys = objectKeys$1;
|
|
614
1028
|
|
|
615
1029
|
// `Object.defineProperties` method
|
|
616
1030
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
617
1031
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
618
|
-
objectDefineProperties.f = DESCRIPTORS$
|
|
619
|
-
anObject$
|
|
620
|
-
var props = toIndexedObject$
|
|
621
|
-
var keys = objectKeys
|
|
1032
|
+
objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1033
|
+
anObject$4(O);
|
|
1034
|
+
var props = toIndexedObject$1(Properties);
|
|
1035
|
+
var keys = objectKeys(Properties);
|
|
622
1036
|
var length = keys.length;
|
|
623
1037
|
var index = 0;
|
|
624
1038
|
var key;
|
|
625
|
-
while (length > index) definePropertyModule
|
|
1039
|
+
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
|
626
1040
|
return O;
|
|
627
1041
|
};
|
|
628
1042
|
|
|
629
|
-
var getBuiltIn
|
|
630
|
-
|
|
631
|
-
var html$2 = getBuiltIn$4('document', 'documentElement');
|
|
632
|
-
|
|
633
|
-
var shared$2 = shared$4.exports;
|
|
634
|
-
var uid = uid$2;
|
|
635
|
-
|
|
636
|
-
var keys = shared$2('keys');
|
|
1043
|
+
var getBuiltIn = getBuiltIn$3;
|
|
637
1044
|
|
|
638
|
-
var
|
|
639
|
-
return keys[key] || (keys[key] = uid(key));
|
|
640
|
-
};
|
|
1045
|
+
var html$1 = getBuiltIn('document', 'documentElement');
|
|
641
1046
|
|
|
642
1047
|
/* global ActiveXObject -- old IE, WSH */
|
|
643
|
-
|
|
644
|
-
var anObject$b = anObject$e;
|
|
1048
|
+
var anObject$3 = anObject$7;
|
|
645
1049
|
var definePropertiesModule = objectDefineProperties;
|
|
646
|
-
var enumBugKeys
|
|
647
|
-
var hiddenKeys
|
|
648
|
-
var html
|
|
1050
|
+
var enumBugKeys = enumBugKeys$3;
|
|
1051
|
+
var hiddenKeys = hiddenKeys$4;
|
|
1052
|
+
var html = html$1;
|
|
649
1053
|
var documentCreateElement$1 = documentCreateElement$2;
|
|
650
|
-
var sharedKey$
|
|
1054
|
+
var sharedKey$1 = sharedKey$3;
|
|
651
1055
|
|
|
652
1056
|
var GT = '>';
|
|
653
1057
|
var LT = '<';
|
|
654
1058
|
var PROTOTYPE = 'prototype';
|
|
655
1059
|
var SCRIPT = 'script';
|
|
656
|
-
var IE_PROTO$1 = sharedKey$
|
|
1060
|
+
var IE_PROTO$1 = sharedKey$1('IE_PROTO');
|
|
657
1061
|
|
|
658
1062
|
var EmptyConstructor = function () { /* empty */ };
|
|
659
1063
|
|
|
@@ -666,7 +1070,8 @@ var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
|
666
1070
|
activeXDocument.write(scriptTag(''));
|
|
667
1071
|
activeXDocument.close();
|
|
668
1072
|
var temp = activeXDocument.parentWindow.Object;
|
|
669
|
-
|
|
1073
|
+
// eslint-disable-next-line no-useless-assignment -- avoid memory leak
|
|
1074
|
+
activeXDocument = null;
|
|
670
1075
|
return temp;
|
|
671
1076
|
};
|
|
672
1077
|
|
|
@@ -677,7 +1082,7 @@ var NullProtoObjectViaIFrame = function () {
|
|
|
677
1082
|
var JS = 'java' + SCRIPT + ':';
|
|
678
1083
|
var iframeDocument;
|
|
679
1084
|
iframe.style.display = 'none';
|
|
680
|
-
html
|
|
1085
|
+
html.appendChild(iframe);
|
|
681
1086
|
// https://github.com/zloirock/core-js/issues/475
|
|
682
1087
|
iframe.src = String(JS);
|
|
683
1088
|
iframeDocument = iframe.contentWindow.document;
|
|
@@ -702,19 +1107,20 @@ var NullProtoObject = function () {
|
|
|
702
1107
|
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
703
1108
|
: NullProtoObjectViaIFrame()
|
|
704
1109
|
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
705
|
-
var length = enumBugKeys
|
|
706
|
-
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys
|
|
1110
|
+
var length = enumBugKeys.length;
|
|
1111
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
707
1112
|
return NullProtoObject();
|
|
708
1113
|
};
|
|
709
1114
|
|
|
710
|
-
hiddenKeys
|
|
1115
|
+
hiddenKeys[IE_PROTO$1] = true;
|
|
711
1116
|
|
|
712
1117
|
// `Object.create` method
|
|
713
1118
|
// https://tc39.es/ecma262/#sec-object.create
|
|
1119
|
+
// eslint-disable-next-line es/no-object-create -- safe
|
|
714
1120
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
715
1121
|
var result;
|
|
716
1122
|
if (O !== null) {
|
|
717
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
1123
|
+
EmptyConstructor[PROTOTYPE] = anObject$3(O);
|
|
718
1124
|
result = new EmptyConstructor();
|
|
719
1125
|
EmptyConstructor[PROTOTYPE] = null;
|
|
720
1126
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -723,418 +1129,90 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
723
1129
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
724
1130
|
};
|
|
725
1131
|
|
|
726
|
-
var wellKnownSymbol$
|
|
1132
|
+
var wellKnownSymbol$8 = wellKnownSymbol$a;
|
|
727
1133
|
var create$2 = objectCreate;
|
|
728
|
-
var
|
|
1134
|
+
var defineProperty$2 = objectDefineProperty.f;
|
|
729
1135
|
|
|
730
|
-
var UNSCOPABLES = wellKnownSymbol$
|
|
731
|
-
var ArrayPrototype
|
|
1136
|
+
var UNSCOPABLES = wellKnownSymbol$8('unscopables');
|
|
1137
|
+
var ArrayPrototype = Array.prototype;
|
|
732
1138
|
|
|
733
1139
|
// Array.prototype[@@unscopables]
|
|
734
1140
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
735
|
-
if (ArrayPrototype
|
|
736
|
-
|
|
1141
|
+
if (ArrayPrototype[UNSCOPABLES] === undefined) {
|
|
1142
|
+
defineProperty$2(ArrayPrototype, UNSCOPABLES, {
|
|
737
1143
|
configurable: true,
|
|
738
1144
|
value: create$2(null)
|
|
739
1145
|
});
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
// add a key to Array.prototype[@@unscopables]
|
|
743
|
-
var addToUnscopables$2 = function (key) {
|
|
744
|
-
ArrayPrototype
|
|
745
|
-
};
|
|
746
|
-
|
|
747
|
-
var iterators = {};
|
|
748
|
-
|
|
749
|
-
var uncurryThis$f = functionUncurryThis;
|
|
750
|
-
var isCallable$d = isCallable$j;
|
|
751
|
-
var store$1 = sharedStore;
|
|
752
|
-
|
|
753
|
-
var functionToString = uncurryThis$f(Function.toString);
|
|
754
|
-
|
|
755
|
-
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
756
|
-
if (!isCallable$d(store$1.inspectSource)) {
|
|
757
|
-
store$1.inspectSource = function (it) {
|
|
758
|
-
return functionToString(it);
|
|
759
|
-
};
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
var inspectSource$4 = store$1.inspectSource;
|
|
763
|
-
|
|
764
|
-
var global$p = global$G;
|
|
765
|
-
var isCallable$c = isCallable$j;
|
|
766
|
-
var inspectSource$3 = inspectSource$4;
|
|
767
|
-
|
|
768
|
-
var WeakMap$1 = global$p.WeakMap;
|
|
769
|
-
|
|
770
|
-
var nativeWeakMap = isCallable$c(WeakMap$1) && /native code/.test(inspectSource$3(WeakMap$1));
|
|
771
|
-
|
|
772
|
-
var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
773
|
-
return {
|
|
774
|
-
enumerable: !(bitmap & 1),
|
|
775
|
-
configurable: !(bitmap & 2),
|
|
776
|
-
writable: !(bitmap & 4),
|
|
777
|
-
value: value
|
|
778
|
-
};
|
|
779
|
-
};
|
|
780
|
-
|
|
781
|
-
var DESCRIPTORS$5 = descriptors;
|
|
782
|
-
var definePropertyModule$2 = objectDefineProperty;
|
|
783
|
-
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
784
|
-
|
|
785
|
-
var createNonEnumerableProperty$6 = DESCRIPTORS$5 ? function (object, key, value) {
|
|
786
|
-
return definePropertyModule$2.f(object, key, createPropertyDescriptor$2(1, value));
|
|
787
|
-
} : function (object, key, value) {
|
|
788
|
-
object[key] = value;
|
|
789
|
-
return object;
|
|
790
|
-
};
|
|
791
|
-
|
|
792
|
-
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
793
|
-
var global$o = global$G;
|
|
794
|
-
var uncurryThis$e = functionUncurryThis;
|
|
795
|
-
var isObject$3 = isObject$8;
|
|
796
|
-
var createNonEnumerableProperty$5 = createNonEnumerableProperty$6;
|
|
797
|
-
var hasOwn$7 = hasOwnProperty_1;
|
|
798
|
-
var shared$1 = sharedStore;
|
|
799
|
-
var sharedKey$1 = sharedKey$3;
|
|
800
|
-
var hiddenKeys$1 = hiddenKeys$4;
|
|
801
|
-
|
|
802
|
-
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
803
|
-
var TypeError$9 = global$o.TypeError;
|
|
804
|
-
var WeakMap = global$o.WeakMap;
|
|
805
|
-
var set$1, get, has;
|
|
806
|
-
|
|
807
|
-
var enforce = function (it) {
|
|
808
|
-
return has(it) ? get(it) : set$1(it, {});
|
|
809
|
-
};
|
|
810
|
-
|
|
811
|
-
var getterFor = function (TYPE) {
|
|
812
|
-
return function (it) {
|
|
813
|
-
var state;
|
|
814
|
-
if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
|
|
815
|
-
throw TypeError$9('Incompatible receiver, ' + TYPE + ' required');
|
|
816
|
-
} return state;
|
|
817
|
-
};
|
|
818
|
-
};
|
|
819
|
-
|
|
820
|
-
if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
821
|
-
var store = shared$1.state || (shared$1.state = new WeakMap());
|
|
822
|
-
var wmget = uncurryThis$e(store.get);
|
|
823
|
-
var wmhas = uncurryThis$e(store.has);
|
|
824
|
-
var wmset = uncurryThis$e(store.set);
|
|
825
|
-
set$1 = function (it, metadata) {
|
|
826
|
-
if (wmhas(store, it)) throw new TypeError$9(OBJECT_ALREADY_INITIALIZED);
|
|
827
|
-
metadata.facade = it;
|
|
828
|
-
wmset(store, it, metadata);
|
|
829
|
-
return metadata;
|
|
830
|
-
};
|
|
831
|
-
get = function (it) {
|
|
832
|
-
return wmget(store, it) || {};
|
|
833
|
-
};
|
|
834
|
-
has = function (it) {
|
|
835
|
-
return wmhas(store, it);
|
|
836
|
-
};
|
|
837
|
-
} else {
|
|
838
|
-
var STATE = sharedKey$1('state');
|
|
839
|
-
hiddenKeys$1[STATE] = true;
|
|
840
|
-
set$1 = function (it, metadata) {
|
|
841
|
-
if (hasOwn$7(it, STATE)) throw new TypeError$9(OBJECT_ALREADY_INITIALIZED);
|
|
842
|
-
metadata.facade = it;
|
|
843
|
-
createNonEnumerableProperty$5(it, STATE, metadata);
|
|
844
|
-
return metadata;
|
|
845
|
-
};
|
|
846
|
-
get = function (it) {
|
|
847
|
-
return hasOwn$7(it, STATE) ? it[STATE] : {};
|
|
848
|
-
};
|
|
849
|
-
has = function (it) {
|
|
850
|
-
return hasOwn$7(it, STATE);
|
|
851
|
-
};
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
var internalState = {
|
|
855
|
-
set: set$1,
|
|
856
|
-
get: get,
|
|
857
|
-
has: has,
|
|
858
|
-
enforce: enforce,
|
|
859
|
-
getterFor: getterFor
|
|
860
|
-
};
|
|
861
|
-
|
|
862
|
-
var objectGetOwnPropertyDescriptor = {};
|
|
863
|
-
|
|
864
|
-
var objectPropertyIsEnumerable = {};
|
|
865
|
-
|
|
866
|
-
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
867
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
868
|
-
var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
|
|
869
|
-
|
|
870
|
-
// Nashorn ~ JDK8 bug
|
|
871
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$3 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
872
|
-
|
|
873
|
-
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
874
|
-
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
875
|
-
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
876
|
-
var descriptor = getOwnPropertyDescriptor$3(this, V);
|
|
877
|
-
return !!descriptor && descriptor.enumerable;
|
|
878
|
-
} : $propertyIsEnumerable;
|
|
879
|
-
|
|
880
|
-
var DESCRIPTORS$4 = descriptors;
|
|
881
|
-
var call$a = functionCall;
|
|
882
|
-
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
883
|
-
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
884
|
-
var toIndexedObject$1 = toIndexedObject$5;
|
|
885
|
-
var toPropertyKey = toPropertyKey$2;
|
|
886
|
-
var hasOwn$6 = hasOwnProperty_1;
|
|
887
|
-
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
888
|
-
|
|
889
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
890
|
-
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
891
|
-
|
|
892
|
-
// `Object.getOwnPropertyDescriptor` method
|
|
893
|
-
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
894
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$4 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
895
|
-
O = toIndexedObject$1(O);
|
|
896
|
-
P = toPropertyKey(P);
|
|
897
|
-
if (IE8_DOM_DEFINE) try {
|
|
898
|
-
return $getOwnPropertyDescriptor(O, P);
|
|
899
|
-
} catch (error) { /* empty */ }
|
|
900
|
-
if (hasOwn$6(O, P)) return createPropertyDescriptor$1(!call$a(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
901
|
-
};
|
|
902
|
-
|
|
903
|
-
var redefine$7 = {exports: {}};
|
|
904
|
-
|
|
905
|
-
var DESCRIPTORS$3 = descriptors;
|
|
906
|
-
var hasOwn$5 = hasOwnProperty_1;
|
|
907
|
-
|
|
908
|
-
var FunctionPrototype$1 = Function.prototype;
|
|
909
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
910
|
-
var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
|
|
911
|
-
|
|
912
|
-
var EXISTS = hasOwn$5(FunctionPrototype$1, 'name');
|
|
913
|
-
// additional protection from minified / mangled / dropped function names
|
|
914
|
-
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
915
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
916
|
-
|
|
917
|
-
var functionName = {
|
|
918
|
-
EXISTS: EXISTS,
|
|
919
|
-
PROPER: PROPER,
|
|
920
|
-
CONFIGURABLE: CONFIGURABLE
|
|
921
|
-
};
|
|
922
|
-
|
|
923
|
-
var global$n = global$G;
|
|
924
|
-
var isCallable$b = isCallable$j;
|
|
925
|
-
var hasOwn$4 = hasOwnProperty_1;
|
|
926
|
-
var createNonEnumerableProperty$4 = createNonEnumerableProperty$6;
|
|
927
|
-
var setGlobal$1 = setGlobal$3;
|
|
928
|
-
var inspectSource$2 = inspectSource$4;
|
|
929
|
-
var InternalStateModule$2 = internalState;
|
|
930
|
-
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
931
|
-
|
|
932
|
-
var getInternalState$3 = InternalStateModule$2.get;
|
|
933
|
-
var enforceInternalState = InternalStateModule$2.enforce;
|
|
934
|
-
var TEMPLATE = String(String).split('String');
|
|
935
|
-
|
|
936
|
-
(redefine$7.exports = function (O, key, value, options) {
|
|
937
|
-
var unsafe = options ? !!options.unsafe : false;
|
|
938
|
-
var simple = options ? !!options.enumerable : false;
|
|
939
|
-
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
940
|
-
var name = options && options.name !== undefined ? options.name : key;
|
|
941
|
-
var state;
|
|
942
|
-
if (isCallable$b(value)) {
|
|
943
|
-
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
944
|
-
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
945
|
-
}
|
|
946
|
-
if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
947
|
-
createNonEnumerableProperty$4(value, 'name', name);
|
|
948
|
-
}
|
|
949
|
-
state = enforceInternalState(value);
|
|
950
|
-
if (!state.source) {
|
|
951
|
-
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
952
|
-
}
|
|
953
|
-
}
|
|
954
|
-
if (O === global$n) {
|
|
955
|
-
if (simple) O[key] = value;
|
|
956
|
-
else setGlobal$1(key, value);
|
|
957
|
-
return;
|
|
958
|
-
} else if (!unsafe) {
|
|
959
|
-
delete O[key];
|
|
960
|
-
} else if (!noTargetGet && O[key]) {
|
|
961
|
-
simple = true;
|
|
962
|
-
}
|
|
963
|
-
if (simple) O[key] = value;
|
|
964
|
-
else createNonEnumerableProperty$4(O, key, value);
|
|
965
|
-
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
966
|
-
})(Function.prototype, 'toString', function toString() {
|
|
967
|
-
return isCallable$b(this) && getInternalState$3(this).source || inspectSource$2(this);
|
|
968
|
-
});
|
|
969
|
-
|
|
970
|
-
var objectGetOwnPropertyNames = {};
|
|
971
|
-
|
|
972
|
-
var internalObjectKeys = objectKeysInternal;
|
|
973
|
-
var enumBugKeys = enumBugKeys$3;
|
|
974
|
-
|
|
975
|
-
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
|
976
|
-
|
|
977
|
-
// `Object.getOwnPropertyNames` method
|
|
978
|
-
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
979
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
980
|
-
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
981
|
-
return internalObjectKeys(O, hiddenKeys);
|
|
982
|
-
};
|
|
983
|
-
|
|
984
|
-
var objectGetOwnPropertySymbols = {};
|
|
985
|
-
|
|
986
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
987
|
-
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
988
|
-
|
|
989
|
-
var getBuiltIn$3 = getBuiltIn$7;
|
|
990
|
-
var uncurryThis$d = functionUncurryThis;
|
|
991
|
-
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
992
|
-
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
993
|
-
var anObject$a = anObject$e;
|
|
994
|
-
|
|
995
|
-
var concat$2 = uncurryThis$d([].concat);
|
|
996
|
-
|
|
997
|
-
// all object keys, includes non-enumerable and symbols
|
|
998
|
-
var ownKeys$1 = getBuiltIn$3('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
999
|
-
var keys = getOwnPropertyNamesModule.f(anObject$a(it));
|
|
1000
|
-
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
1001
|
-
return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
|
|
1002
|
-
};
|
|
1003
|
-
|
|
1004
|
-
var hasOwn$3 = hasOwnProperty_1;
|
|
1005
|
-
var ownKeys = ownKeys$1;
|
|
1006
|
-
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
1007
|
-
var definePropertyModule$1 = objectDefineProperty;
|
|
1008
|
-
|
|
1009
|
-
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
1010
|
-
var keys = ownKeys(source);
|
|
1011
|
-
var defineProperty = definePropertyModule$1.f;
|
|
1012
|
-
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
1013
|
-
for (var i = 0; i < keys.length; i++) {
|
|
1014
|
-
var key = keys[i];
|
|
1015
|
-
if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
|
|
1016
|
-
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
1019
|
-
};
|
|
1020
|
-
|
|
1021
|
-
var fails$b = fails$i;
|
|
1022
|
-
var isCallable$a = isCallable$j;
|
|
1023
|
-
|
|
1024
|
-
var replacement = /#|\.prototype\./;
|
|
1025
|
-
|
|
1026
|
-
var isForced$2 = function (feature, detection) {
|
|
1027
|
-
var value = data[normalize(feature)];
|
|
1028
|
-
return value == POLYFILL ? true
|
|
1029
|
-
: value == NATIVE ? false
|
|
1030
|
-
: isCallable$a(detection) ? fails$b(detection)
|
|
1031
|
-
: !!detection;
|
|
1032
|
-
};
|
|
1033
|
-
|
|
1034
|
-
var normalize = isForced$2.normalize = function (string) {
|
|
1035
|
-
return String(string).replace(replacement, '.').toLowerCase();
|
|
1036
|
-
};
|
|
1037
|
-
|
|
1038
|
-
var data = isForced$2.data = {};
|
|
1039
|
-
var NATIVE = isForced$2.NATIVE = 'N';
|
|
1040
|
-
var POLYFILL = isForced$2.POLYFILL = 'P';
|
|
1041
|
-
|
|
1042
|
-
var isForced_1 = isForced$2;
|
|
1043
|
-
|
|
1044
|
-
var global$m = global$G;
|
|
1045
|
-
var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
|
|
1046
|
-
var createNonEnumerableProperty$3 = createNonEnumerableProperty$6;
|
|
1047
|
-
var redefine$6 = redefine$7.exports;
|
|
1048
|
-
var setGlobal = setGlobal$3;
|
|
1049
|
-
var copyConstructorProperties = copyConstructorProperties$1;
|
|
1050
|
-
var isForced$1 = isForced_1;
|
|
1051
|
-
|
|
1052
|
-
/*
|
|
1053
|
-
options.target - name of the target object
|
|
1054
|
-
options.global - target is the global object
|
|
1055
|
-
options.stat - export as static methods of target
|
|
1056
|
-
options.proto - export as prototype methods of target
|
|
1057
|
-
options.real - real prototype method for the `pure` version
|
|
1058
|
-
options.forced - export even if the native feature is available
|
|
1059
|
-
options.bind - bind methods to the target, required for the `pure` version
|
|
1060
|
-
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
1061
|
-
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
1062
|
-
options.sham - add a flag to not completely full polyfills
|
|
1063
|
-
options.enumerable - export as enumerable property
|
|
1064
|
-
options.noTargetGet - prevent calling a getter on target
|
|
1065
|
-
options.name - the .name of the function if it does not match the key
|
|
1066
|
-
*/
|
|
1067
|
-
var _export = function (options, source) {
|
|
1068
|
-
var TARGET = options.target;
|
|
1069
|
-
var GLOBAL = options.global;
|
|
1070
|
-
var STATIC = options.stat;
|
|
1071
|
-
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1072
|
-
if (GLOBAL) {
|
|
1073
|
-
target = global$m;
|
|
1074
|
-
} else if (STATIC) {
|
|
1075
|
-
target = global$m[TARGET] || setGlobal(TARGET, {});
|
|
1076
|
-
} else {
|
|
1077
|
-
target = (global$m[TARGET] || {}).prototype;
|
|
1078
|
-
}
|
|
1079
|
-
if (target) for (key in source) {
|
|
1080
|
-
sourceProperty = source[key];
|
|
1081
|
-
if (options.noTargetGet) {
|
|
1082
|
-
descriptor = getOwnPropertyDescriptor$2(target, key);
|
|
1083
|
-
targetProperty = descriptor && descriptor.value;
|
|
1084
|
-
} else targetProperty = target[key];
|
|
1085
|
-
FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
1086
|
-
// contained in target
|
|
1087
|
-
if (!FORCED && targetProperty !== undefined) {
|
|
1088
|
-
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
1089
|
-
copyConstructorProperties(sourceProperty, targetProperty);
|
|
1090
|
-
}
|
|
1091
|
-
// add a flag to not completely full polyfills
|
|
1092
|
-
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1093
|
-
createNonEnumerableProperty$3(sourceProperty, 'sham', true);
|
|
1094
|
-
}
|
|
1095
|
-
// extend global
|
|
1096
|
-
redefine$6(target, key, sourceProperty, options);
|
|
1097
|
-
}
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
// add a key to Array.prototype[@@unscopables]
|
|
1149
|
+
var addToUnscopables$2 = function (key) {
|
|
1150
|
+
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
1098
1151
|
};
|
|
1099
1152
|
|
|
1100
|
-
var
|
|
1153
|
+
var $$6 = _export;
|
|
1154
|
+
var $includes = arrayIncludes.includes;
|
|
1155
|
+
var fails$7 = fails$g;
|
|
1156
|
+
var addToUnscopables$1 = addToUnscopables$2;
|
|
1157
|
+
|
|
1158
|
+
// FF99+ bug
|
|
1159
|
+
var BROKEN_ON_SPARSE = fails$7(function () {
|
|
1160
|
+
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
1161
|
+
return !Array(1).includes();
|
|
1162
|
+
});
|
|
1163
|
+
|
|
1164
|
+
// `Array.prototype.includes` method
|
|
1165
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
1166
|
+
$$6({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
1167
|
+
includes: function includes(el /* , fromIndex = 0 */) {
|
|
1168
|
+
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
1169
|
+
}
|
|
1170
|
+
});
|
|
1171
|
+
|
|
1172
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1173
|
+
addToUnscopables$1('includes');
|
|
1174
|
+
|
|
1175
|
+
var iterators = {};
|
|
1176
|
+
|
|
1177
|
+
var fails$6 = fails$g;
|
|
1101
1178
|
|
|
1102
|
-
var correctPrototypeGetter = !fails$
|
|
1179
|
+
var correctPrototypeGetter = !fails$6(function () {
|
|
1103
1180
|
function F() { /* empty */ }
|
|
1104
1181
|
F.prototype.constructor = null;
|
|
1105
1182
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
1106
1183
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1107
1184
|
});
|
|
1108
1185
|
|
|
1109
|
-
var global$l = global$G;
|
|
1110
1186
|
var hasOwn$2 = hasOwnProperty_1;
|
|
1111
|
-
var isCallable$
|
|
1112
|
-
var toObject$
|
|
1187
|
+
var isCallable$4 = isCallable$f;
|
|
1188
|
+
var toObject$1 = toObject$3;
|
|
1113
1189
|
var sharedKey = sharedKey$3;
|
|
1114
1190
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1115
1191
|
|
|
1116
1192
|
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1117
|
-
var Object$
|
|
1118
|
-
var ObjectPrototype = Object$
|
|
1193
|
+
var $Object$1 = Object;
|
|
1194
|
+
var ObjectPrototype = $Object$1.prototype;
|
|
1119
1195
|
|
|
1120
1196
|
// `Object.getPrototypeOf` method
|
|
1121
1197
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1122
|
-
|
|
1123
|
-
|
|
1198
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1199
|
+
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1200
|
+
var object = toObject$1(O);
|
|
1124
1201
|
if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
|
|
1125
1202
|
var constructor = object.constructor;
|
|
1126
|
-
if (isCallable$
|
|
1203
|
+
if (isCallable$4(constructor) && object instanceof constructor) {
|
|
1127
1204
|
return constructor.prototype;
|
|
1128
|
-
} return object instanceof Object$
|
|
1205
|
+
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1129
1206
|
};
|
|
1130
1207
|
|
|
1131
|
-
var fails$
|
|
1132
|
-
var isCallable$
|
|
1208
|
+
var fails$5 = fails$g;
|
|
1209
|
+
var isCallable$3 = isCallable$f;
|
|
1210
|
+
var isObject$3 = isObject$9;
|
|
1133
1211
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1134
|
-
var
|
|
1135
|
-
var wellKnownSymbol$
|
|
1212
|
+
var defineBuiltIn$2 = defineBuiltIn$4;
|
|
1213
|
+
var wellKnownSymbol$7 = wellKnownSymbol$a;
|
|
1136
1214
|
|
|
1137
|
-
var ITERATOR$
|
|
1215
|
+
var ITERATOR$2 = wellKnownSymbol$7('iterator');
|
|
1138
1216
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1139
1217
|
|
|
1140
1218
|
// `%IteratorPrototype%` object
|
|
@@ -1152,18 +1230,18 @@ if ([].keys) {
|
|
|
1152
1230
|
}
|
|
1153
1231
|
}
|
|
1154
1232
|
|
|
1155
|
-
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2
|
|
1233
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$3(IteratorPrototype$2) || fails$5(function () {
|
|
1156
1234
|
var test = {};
|
|
1157
1235
|
// FF44- legacy iterators case
|
|
1158
|
-
return IteratorPrototype$2[ITERATOR$
|
|
1236
|
+
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
|
1159
1237
|
});
|
|
1160
1238
|
|
|
1161
1239
|
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
1162
1240
|
|
|
1163
1241
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1164
1242
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1165
|
-
if (!isCallable$
|
|
1166
|
-
|
|
1243
|
+
if (!isCallable$3(IteratorPrototype$2[ITERATOR$2])) {
|
|
1244
|
+
defineBuiltIn$2(IteratorPrototype$2, ITERATOR$2, function () {
|
|
1167
1245
|
return this;
|
|
1168
1246
|
});
|
|
1169
1247
|
}
|
|
@@ -1173,16 +1251,16 @@ var iteratorsCore = {
|
|
|
1173
1251
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1174
1252
|
};
|
|
1175
1253
|
|
|
1176
|
-
var defineProperty$
|
|
1254
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
1177
1255
|
var hasOwn$1 = hasOwnProperty_1;
|
|
1178
|
-
var wellKnownSymbol$
|
|
1256
|
+
var wellKnownSymbol$6 = wellKnownSymbol$a;
|
|
1179
1257
|
|
|
1180
|
-
var TO_STRING_TAG$
|
|
1258
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$6('toStringTag');
|
|
1181
1259
|
|
|
1182
1260
|
var setToStringTag$3 = function (target, TAG, STATIC) {
|
|
1183
1261
|
if (target && !STATIC) target = target.prototype;
|
|
1184
|
-
if (target && !hasOwn$1(target, TO_STRING_TAG$
|
|
1185
|
-
defineProperty$
|
|
1262
|
+
if (target && !hasOwn$1(target, TO_STRING_TAG$2)) {
|
|
1263
|
+
defineProperty$1(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
|
|
1186
1264
|
}
|
|
1187
1265
|
};
|
|
1188
1266
|
|
|
@@ -1190,33 +1268,48 @@ var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
|
1190
1268
|
var create$1 = objectCreate;
|
|
1191
1269
|
var createPropertyDescriptor = createPropertyDescriptor$3;
|
|
1192
1270
|
var setToStringTag$2 = setToStringTag$3;
|
|
1193
|
-
var Iterators$
|
|
1271
|
+
var Iterators$2 = iterators;
|
|
1194
1272
|
|
|
1195
1273
|
var returnThis$1 = function () { return this; };
|
|
1196
1274
|
|
|
1197
|
-
var
|
|
1275
|
+
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
1198
1276
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1199
1277
|
IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
1200
1278
|
setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
|
|
1201
|
-
Iterators$
|
|
1279
|
+
Iterators$2[TO_STRING_TAG] = returnThis$1;
|
|
1202
1280
|
return IteratorConstructor;
|
|
1203
1281
|
};
|
|
1204
1282
|
|
|
1205
|
-
var
|
|
1206
|
-
var
|
|
1283
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
1284
|
+
var aCallable = aCallable$2;
|
|
1285
|
+
|
|
1286
|
+
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1287
|
+
try {
|
|
1288
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1289
|
+
return uncurryThis$4(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1290
|
+
} catch (error) { /* empty */ }
|
|
1291
|
+
};
|
|
1292
|
+
|
|
1293
|
+
var isObject$2 = isObject$9;
|
|
1294
|
+
|
|
1295
|
+
var isPossiblePrototype$1 = function (argument) {
|
|
1296
|
+
return isObject$2(argument) || argument === null;
|
|
1297
|
+
};
|
|
1298
|
+
|
|
1299
|
+
var isPossiblePrototype = isPossiblePrototype$1;
|
|
1207
1300
|
|
|
1208
|
-
var String$
|
|
1209
|
-
var TypeError$
|
|
1301
|
+
var $String$1 = String;
|
|
1302
|
+
var $TypeError$3 = TypeError;
|
|
1210
1303
|
|
|
1211
1304
|
var aPossiblePrototype$1 = function (argument) {
|
|
1212
|
-
if (
|
|
1213
|
-
throw TypeError$
|
|
1305
|
+
if (isPossiblePrototype(argument)) return argument;
|
|
1306
|
+
throw new $TypeError$3("Can't set " + $String$1(argument) + ' as a prototype');
|
|
1214
1307
|
};
|
|
1215
1308
|
|
|
1216
1309
|
/* eslint-disable no-proto -- safe */
|
|
1217
|
-
|
|
1218
|
-
var
|
|
1219
|
-
var
|
|
1310
|
+
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
1311
|
+
var isObject$1 = isObject$9;
|
|
1312
|
+
var requireObjectCoercible$2 = requireObjectCoercible$5;
|
|
1220
1313
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1221
1314
|
|
|
1222
1315
|
// `Object.setPrototypeOf` method
|
|
@@ -1228,66 +1321,69 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1228
1321
|
var test = {};
|
|
1229
1322
|
var setter;
|
|
1230
1323
|
try {
|
|
1231
|
-
|
|
1232
|
-
setter = uncurryThis$c(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
1324
|
+
setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
|
|
1233
1325
|
setter(test, []);
|
|
1234
1326
|
CORRECT_SETTER = test instanceof Array;
|
|
1235
1327
|
} catch (error) { /* empty */ }
|
|
1236
1328
|
return function setPrototypeOf(O, proto) {
|
|
1237
|
-
|
|
1329
|
+
requireObjectCoercible$2(O);
|
|
1238
1330
|
aPossiblePrototype(proto);
|
|
1331
|
+
if (!isObject$1(O)) return O;
|
|
1239
1332
|
if (CORRECT_SETTER) setter(O, proto);
|
|
1240
1333
|
else O.__proto__ = proto;
|
|
1241
1334
|
return O;
|
|
1242
1335
|
};
|
|
1243
1336
|
}() : undefined);
|
|
1244
1337
|
|
|
1245
|
-
var $$
|
|
1246
|
-
var call$
|
|
1338
|
+
var $$5 = _export;
|
|
1339
|
+
var call$3 = functionCall;
|
|
1247
1340
|
var FunctionName = functionName;
|
|
1248
|
-
var isCallable$
|
|
1249
|
-
var createIteratorConstructor =
|
|
1341
|
+
var isCallable$2 = isCallable$f;
|
|
1342
|
+
var createIteratorConstructor = iteratorCreateConstructor;
|
|
1250
1343
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
1251
|
-
var setPrototypeOf
|
|
1344
|
+
var setPrototypeOf = objectSetPrototypeOf;
|
|
1252
1345
|
var setToStringTag$1 = setToStringTag$3;
|
|
1253
|
-
var createNonEnumerableProperty$
|
|
1254
|
-
var
|
|
1255
|
-
var wellKnownSymbol$
|
|
1256
|
-
var Iterators$
|
|
1346
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
|
|
1347
|
+
var defineBuiltIn$1 = defineBuiltIn$4;
|
|
1348
|
+
var wellKnownSymbol$5 = wellKnownSymbol$a;
|
|
1349
|
+
var Iterators$1 = iterators;
|
|
1257
1350
|
var IteratorsCore = iteratorsCore;
|
|
1258
1351
|
|
|
1259
1352
|
var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
|
|
1260
1353
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
1261
1354
|
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
1262
1355
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
1263
|
-
var ITERATOR$
|
|
1356
|
+
var ITERATOR$1 = wellKnownSymbol$5('iterator');
|
|
1264
1357
|
var KEYS = 'keys';
|
|
1265
1358
|
var VALUES = 'values';
|
|
1266
1359
|
var ENTRIES = 'entries';
|
|
1267
1360
|
|
|
1268
1361
|
var returnThis = function () { return this; };
|
|
1269
1362
|
|
|
1270
|
-
var
|
|
1363
|
+
var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
|
1271
1364
|
createIteratorConstructor(IteratorConstructor, NAME, next);
|
|
1272
1365
|
|
|
1273
1366
|
var getIterationMethod = function (KIND) {
|
|
1274
1367
|
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
|
1275
|
-
if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
1368
|
+
if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
1369
|
+
|
|
1276
1370
|
switch (KIND) {
|
|
1277
1371
|
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
|
1278
1372
|
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
|
1279
1373
|
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
|
1280
|
-
}
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
return function () { return new IteratorConstructor(this); };
|
|
1281
1377
|
};
|
|
1282
1378
|
|
|
1283
1379
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1284
1380
|
var INCORRECT_VALUES_NAME = false;
|
|
1285
1381
|
var IterablePrototype = Iterable.prototype;
|
|
1286
|
-
var nativeIterator = IterablePrototype[ITERATOR$
|
|
1382
|
+
var nativeIterator = IterablePrototype[ITERATOR$1]
|
|
1287
1383
|
|| IterablePrototype['@@iterator']
|
|
1288
1384
|
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
1289
1385
|
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
1290
|
-
var anyNativeIterator = NAME
|
|
1386
|
+
var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
|
1291
1387
|
var CurrentIteratorPrototype, methods, KEY;
|
|
1292
1388
|
|
|
1293
1389
|
// fix native
|
|
@@ -1295,10 +1391,10 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
1295
1391
|
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
1296
1392
|
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
1297
1393
|
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
1298
|
-
if (setPrototypeOf
|
|
1299
|
-
setPrototypeOf
|
|
1300
|
-
} else if (!isCallable$
|
|
1301
|
-
|
|
1394
|
+
if (setPrototypeOf) {
|
|
1395
|
+
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
1396
|
+
} else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
1397
|
+
defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
|
1302
1398
|
}
|
|
1303
1399
|
}
|
|
1304
1400
|
// Set @@toStringTag to native iterators
|
|
@@ -1307,12 +1403,12 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
1307
1403
|
}
|
|
1308
1404
|
|
|
1309
1405
|
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1310
|
-
if (PROPER_FUNCTION_NAME$1 && DEFAULT
|
|
1406
|
+
if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1311
1407
|
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
1312
|
-
createNonEnumerableProperty$
|
|
1408
|
+
createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
|
|
1313
1409
|
} else {
|
|
1314
1410
|
INCORRECT_VALUES_NAME = true;
|
|
1315
|
-
defaultIterator = function values() { return call$
|
|
1411
|
+
defaultIterator = function values() { return call$3(nativeIterator, this); };
|
|
1316
1412
|
}
|
|
1317
1413
|
}
|
|
1318
1414
|
|
|
@@ -1325,31 +1421,38 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
1325
1421
|
};
|
|
1326
1422
|
if (FORCED) for (KEY in methods) {
|
|
1327
1423
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1328
|
-
|
|
1424
|
+
defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
|
|
1329
1425
|
}
|
|
1330
|
-
} else $$
|
|
1426
|
+
} else $$5({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1331
1427
|
}
|
|
1332
1428
|
|
|
1333
1429
|
// define iterator
|
|
1334
|
-
if (IterablePrototype[ITERATOR$
|
|
1335
|
-
|
|
1430
|
+
if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
|
1431
|
+
defineBuiltIn$1(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
|
|
1336
1432
|
}
|
|
1337
|
-
Iterators$
|
|
1433
|
+
Iterators$1[NAME] = defaultIterator;
|
|
1338
1434
|
|
|
1339
1435
|
return methods;
|
|
1340
1436
|
};
|
|
1341
1437
|
|
|
1438
|
+
// `CreateIterResultObject` abstract operation
|
|
1439
|
+
// https://tc39.es/ecma262/#sec-createiterresultobject
|
|
1440
|
+
var createIterResultObject$1 = function (value, done) {
|
|
1441
|
+
return { value: value, done: done };
|
|
1442
|
+
};
|
|
1443
|
+
|
|
1342
1444
|
var toIndexedObject = toIndexedObject$5;
|
|
1343
|
-
var addToUnscopables
|
|
1344
|
-
var Iterators
|
|
1345
|
-
var InternalStateModule
|
|
1346
|
-
var defineProperty
|
|
1347
|
-
var defineIterator =
|
|
1348
|
-
var
|
|
1445
|
+
var addToUnscopables = addToUnscopables$2;
|
|
1446
|
+
var Iterators = iterators;
|
|
1447
|
+
var InternalStateModule = internalState;
|
|
1448
|
+
var defineProperty = objectDefineProperty.f;
|
|
1449
|
+
var defineIterator = iteratorDefine;
|
|
1450
|
+
var createIterResultObject = createIterResultObject$1;
|
|
1451
|
+
var DESCRIPTORS$1 = descriptors;
|
|
1349
1452
|
|
|
1350
1453
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1351
|
-
var setInternalState
|
|
1352
|
-
var getInternalState$
|
|
1454
|
+
var setInternalState = InternalStateModule.set;
|
|
1455
|
+
var getInternalState$1 = InternalStateModule.getterFor(ARRAY_ITERATOR);
|
|
1353
1456
|
|
|
1354
1457
|
// `Array.prototype.entries` method
|
|
1355
1458
|
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
@@ -1362,7 +1465,7 @@ var getInternalState$2 = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
|
|
|
1362
1465
|
// `CreateArrayIterator` internal method
|
|
1363
1466
|
// https://tc39.es/ecma262/#sec-createarrayiterator
|
|
1364
1467
|
var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
|
|
1365
|
-
setInternalState
|
|
1468
|
+
setInternalState(this, {
|
|
1366
1469
|
type: ARRAY_ITERATOR,
|
|
1367
1470
|
target: toIndexedObject(iterated), // target
|
|
1368
1471
|
index: 0, // next index
|
|
@@ -1371,176 +1474,53 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
|
|
|
1371
1474
|
// `%ArrayIteratorPrototype%.next` method
|
|
1372
1475
|
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
1373
1476
|
}, function () {
|
|
1374
|
-
var state = getInternalState$
|
|
1477
|
+
var state = getInternalState$1(this);
|
|
1375
1478
|
var target = state.target;
|
|
1376
|
-
var kind = state.kind;
|
|
1377
1479
|
var index = state.index++;
|
|
1378
1480
|
if (!target || index >= target.length) {
|
|
1379
|
-
state.target =
|
|
1380
|
-
return
|
|
1481
|
+
state.target = null;
|
|
1482
|
+
return createIterResultObject(undefined, true);
|
|
1381
1483
|
}
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1484
|
+
switch (state.kind) {
|
|
1485
|
+
case 'keys': return createIterResultObject(index, false);
|
|
1486
|
+
case 'values': return createIterResultObject(target[index], false);
|
|
1487
|
+
} return createIterResultObject([index, target[index]], false);
|
|
1385
1488
|
}, 'values');
|
|
1386
1489
|
|
|
1387
1490
|
// argumentsList[@@iterator] is %ArrayProto_values%
|
|
1388
1491
|
// https://tc39.es/ecma262/#sec-createunmappedargumentsobject
|
|
1389
1492
|
// https://tc39.es/ecma262/#sec-createmappedargumentsobject
|
|
1390
|
-
var values = Iterators
|
|
1493
|
+
var values = Iterators.Arguments = Iterators.Array;
|
|
1391
1494
|
|
|
1392
1495
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1393
|
-
addToUnscopables
|
|
1394
|
-
addToUnscopables
|
|
1395
|
-
addToUnscopables
|
|
1496
|
+
addToUnscopables('keys');
|
|
1497
|
+
addToUnscopables('values');
|
|
1498
|
+
addToUnscopables('entries');
|
|
1396
1499
|
|
|
1397
1500
|
// V8 ~ Chrome 45- bug
|
|
1398
|
-
if (DESCRIPTORS$
|
|
1399
|
-
defineProperty
|
|
1501
|
+
if (DESCRIPTORS$1 && values.name !== 'values') try {
|
|
1502
|
+
defineProperty(values, 'name', { value: 'values' });
|
|
1400
1503
|
} catch (error) { /* empty */ }
|
|
1401
1504
|
|
|
1402
|
-
|
|
1403
|
-
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
|
1404
|
-
var domIterables = {
|
|
1405
|
-
CSSRuleList: 0,
|
|
1406
|
-
CSSStyleDeclaration: 0,
|
|
1407
|
-
CSSValueList: 0,
|
|
1408
|
-
ClientRectList: 0,
|
|
1409
|
-
DOMRectList: 0,
|
|
1410
|
-
DOMStringList: 0,
|
|
1411
|
-
DOMTokenList: 1,
|
|
1412
|
-
DataTransferItemList: 0,
|
|
1413
|
-
FileList: 0,
|
|
1414
|
-
HTMLAllCollection: 0,
|
|
1415
|
-
HTMLCollection: 0,
|
|
1416
|
-
HTMLFormElement: 0,
|
|
1417
|
-
HTMLSelectElement: 0,
|
|
1418
|
-
MediaList: 0,
|
|
1419
|
-
MimeTypeArray: 0,
|
|
1420
|
-
NamedNodeMap: 0,
|
|
1421
|
-
NodeList: 1,
|
|
1422
|
-
PaintRequestList: 0,
|
|
1423
|
-
Plugin: 0,
|
|
1424
|
-
PluginArray: 0,
|
|
1425
|
-
SVGLengthList: 0,
|
|
1426
|
-
SVGNumberList: 0,
|
|
1427
|
-
SVGPathSegList: 0,
|
|
1428
|
-
SVGPointList: 0,
|
|
1429
|
-
SVGStringList: 0,
|
|
1430
|
-
SVGTransformList: 0,
|
|
1431
|
-
SourceBufferList: 0,
|
|
1432
|
-
StyleSheetList: 0,
|
|
1433
|
-
TextTrackCueList: 0,
|
|
1434
|
-
TextTrackList: 0,
|
|
1435
|
-
TouchList: 0
|
|
1436
|
-
};
|
|
1437
|
-
|
|
1438
|
-
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
|
1439
|
-
var documentCreateElement = documentCreateElement$2;
|
|
1440
|
-
|
|
1441
|
-
var classList = documentCreateElement('span').classList;
|
|
1442
|
-
var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
|
|
1443
|
-
|
|
1444
|
-
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1445
|
-
|
|
1446
|
-
var global$j = global$G;
|
|
1447
|
-
var DOMIterables = domIterables;
|
|
1448
|
-
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1449
|
-
var ArrayIteratorMethods = es_array_iterator;
|
|
1450
|
-
var createNonEnumerableProperty$1 = createNonEnumerableProperty$6;
|
|
1451
|
-
var wellKnownSymbol$c = wellKnownSymbol$i;
|
|
1452
|
-
|
|
1453
|
-
var ITERATOR$3 = wellKnownSymbol$c('iterator');
|
|
1454
|
-
var TO_STRING_TAG$2 = wellKnownSymbol$c('toStringTag');
|
|
1455
|
-
var ArrayValues = ArrayIteratorMethods.values;
|
|
1456
|
-
|
|
1457
|
-
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
1458
|
-
if (CollectionPrototype) {
|
|
1459
|
-
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1460
|
-
if (CollectionPrototype[ITERATOR$3] !== ArrayValues) try {
|
|
1461
|
-
createNonEnumerableProperty$1(CollectionPrototype, ITERATOR$3, ArrayValues);
|
|
1462
|
-
} catch (error) {
|
|
1463
|
-
CollectionPrototype[ITERATOR$3] = ArrayValues;
|
|
1464
|
-
}
|
|
1465
|
-
if (!CollectionPrototype[TO_STRING_TAG$2]) {
|
|
1466
|
-
createNonEnumerableProperty$1(CollectionPrototype, TO_STRING_TAG$2, COLLECTION_NAME);
|
|
1467
|
-
}
|
|
1468
|
-
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
1469
|
-
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1470
|
-
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
1471
|
-
createNonEnumerableProperty$1(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
1472
|
-
} catch (error) {
|
|
1473
|
-
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
1474
|
-
}
|
|
1475
|
-
}
|
|
1476
|
-
}
|
|
1477
|
-
};
|
|
1478
|
-
|
|
1479
|
-
for (var COLLECTION_NAME in DOMIterables) {
|
|
1480
|
-
handlePrototype(global$j[COLLECTION_NAME] && global$j[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1481
|
-
}
|
|
1482
|
-
|
|
1483
|
-
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
1484
|
-
|
|
1485
|
-
var $$5 = _export;
|
|
1486
|
-
var $includes = arrayIncludes.includes;
|
|
1487
|
-
var addToUnscopables = addToUnscopables$2;
|
|
1488
|
-
|
|
1489
|
-
// `Array.prototype.includes` method
|
|
1490
|
-
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
1491
|
-
$$5({ target: 'Array', proto: true }, {
|
|
1492
|
-
includes: function includes(el /* , fromIndex = 0 */) {
|
|
1493
|
-
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
1494
|
-
}
|
|
1495
|
-
});
|
|
1496
|
-
|
|
1497
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1498
|
-
addToUnscopables('includes');
|
|
1499
|
-
|
|
1500
|
-
var isObject$2 = isObject$8;
|
|
1501
|
-
var classof$6 = classofRaw$1;
|
|
1502
|
-
var wellKnownSymbol$b = wellKnownSymbol$i;
|
|
1503
|
-
|
|
1504
|
-
var MATCH$1 = wellKnownSymbol$b('match');
|
|
1505
|
-
|
|
1506
|
-
// `IsRegExp` abstract operation
|
|
1507
|
-
// https://tc39.es/ecma262/#sec-isregexp
|
|
1508
|
-
var isRegexp = function (it) {
|
|
1509
|
-
var isRegExp;
|
|
1510
|
-
return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$6(it) == 'RegExp');
|
|
1511
|
-
};
|
|
1512
|
-
|
|
1513
|
-
var global$i = global$G;
|
|
1514
|
-
var isRegExp = isRegexp;
|
|
1515
|
-
|
|
1516
|
-
var TypeError$7 = global$i.TypeError;
|
|
1505
|
+
var wellKnownSymbol$4 = wellKnownSymbol$a;
|
|
1517
1506
|
|
|
1518
|
-
var
|
|
1519
|
-
if (isRegExp(it)) {
|
|
1520
|
-
throw TypeError$7("The method doesn't accept regular expressions");
|
|
1521
|
-
} return it;
|
|
1522
|
-
};
|
|
1523
|
-
|
|
1524
|
-
var wellKnownSymbol$a = wellKnownSymbol$i;
|
|
1525
|
-
|
|
1526
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$a('toStringTag');
|
|
1507
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag');
|
|
1527
1508
|
var test = {};
|
|
1528
1509
|
|
|
1529
1510
|
test[TO_STRING_TAG$1] = 'z';
|
|
1530
1511
|
|
|
1531
1512
|
var toStringTagSupport = String(test) === '[object z]';
|
|
1532
1513
|
|
|
1533
|
-
var global$h = global$G;
|
|
1534
1514
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1535
|
-
var isCallable$
|
|
1536
|
-
var classofRaw = classofRaw$
|
|
1537
|
-
var wellKnownSymbol$
|
|
1515
|
+
var isCallable$1 = isCallable$f;
|
|
1516
|
+
var classofRaw$1 = classofRaw$2;
|
|
1517
|
+
var wellKnownSymbol$3 = wellKnownSymbol$a;
|
|
1538
1518
|
|
|
1539
|
-
var TO_STRING_TAG = wellKnownSymbol$
|
|
1540
|
-
var Object
|
|
1519
|
+
var TO_STRING_TAG = wellKnownSymbol$3('toStringTag');
|
|
1520
|
+
var $Object = Object;
|
|
1541
1521
|
|
|
1542
1522
|
// ES3 wrong here
|
|
1543
|
-
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }())
|
|
1523
|
+
var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
|
|
1544
1524
|
|
|
1545
1525
|
// fallback for IE11 Script Access Denied error
|
|
1546
1526
|
var tryGet = function (it, key) {
|
|
@@ -1550,30 +1530,109 @@ var tryGet = function (it, key) {
|
|
|
1550
1530
|
};
|
|
1551
1531
|
|
|
1552
1532
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1553
|
-
var classof$
|
|
1533
|
+
var classof$3 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
1554
1534
|
var O, tag, result;
|
|
1555
1535
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1556
1536
|
// @@toStringTag case
|
|
1557
|
-
: typeof (tag = tryGet(O = Object
|
|
1537
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
1558
1538
|
// builtinTag case
|
|
1559
|
-
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1539
|
+
: CORRECT_ARGUMENTS ? classofRaw$1(O)
|
|
1560
1540
|
// ES3 arguments fallback
|
|
1561
|
-
: (result = classofRaw(O))
|
|
1541
|
+
: (result = classofRaw$1(O)) === 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
|
|
1542
|
+
};
|
|
1543
|
+
|
|
1544
|
+
var classof$2 = classof$3;
|
|
1545
|
+
|
|
1546
|
+
var $String = String;
|
|
1547
|
+
|
|
1548
|
+
var toString$4 = function (argument) {
|
|
1549
|
+
if (classof$2(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
1550
|
+
return $String(argument);
|
|
1551
|
+
};
|
|
1552
|
+
|
|
1553
|
+
var anObject$2 = anObject$7;
|
|
1554
|
+
|
|
1555
|
+
// `RegExp.prototype.flags` getter implementation
|
|
1556
|
+
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
1557
|
+
var regexpFlags$1 = function () {
|
|
1558
|
+
var that = anObject$2(this);
|
|
1559
|
+
var result = '';
|
|
1560
|
+
if (that.hasIndices) result += 'd';
|
|
1561
|
+
if (that.global) result += 'g';
|
|
1562
|
+
if (that.ignoreCase) result += 'i';
|
|
1563
|
+
if (that.multiline) result += 'm';
|
|
1564
|
+
if (that.dotAll) result += 's';
|
|
1565
|
+
if (that.unicode) result += 'u';
|
|
1566
|
+
if (that.unicodeSets) result += 'v';
|
|
1567
|
+
if (that.sticky) result += 'y';
|
|
1568
|
+
return result;
|
|
1569
|
+
};
|
|
1570
|
+
|
|
1571
|
+
var call$2 = functionCall;
|
|
1572
|
+
var hasOwn = hasOwnProperty_1;
|
|
1573
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
1574
|
+
var regExpFlags = regexpFlags$1;
|
|
1575
|
+
|
|
1576
|
+
var RegExpPrototype$1 = RegExp.prototype;
|
|
1577
|
+
|
|
1578
|
+
var regexpGetFlags = function (R) {
|
|
1579
|
+
var flags = R.flags;
|
|
1580
|
+
return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R)
|
|
1581
|
+
? call$2(regExpFlags, R) : flags;
|
|
1582
|
+
};
|
|
1583
|
+
|
|
1584
|
+
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
1585
|
+
var defineBuiltIn = defineBuiltIn$4;
|
|
1586
|
+
var anObject$1 = anObject$7;
|
|
1587
|
+
var $toString = toString$4;
|
|
1588
|
+
var fails$4 = fails$g;
|
|
1589
|
+
var getRegExpFlags = regexpGetFlags;
|
|
1590
|
+
|
|
1591
|
+
var TO_STRING = 'toString';
|
|
1592
|
+
var RegExpPrototype = RegExp.prototype;
|
|
1593
|
+
var nativeToString = RegExpPrototype[TO_STRING];
|
|
1594
|
+
|
|
1595
|
+
var NOT_GENERIC = fails$4(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
|
|
1596
|
+
// FF44- RegExp#toString has a wrong name
|
|
1597
|
+
var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
|
|
1598
|
+
|
|
1599
|
+
// `RegExp.prototype.toString` method
|
|
1600
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
1601
|
+
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
1602
|
+
defineBuiltIn(RegExpPrototype, TO_STRING, function toString() {
|
|
1603
|
+
var R = anObject$1(this);
|
|
1604
|
+
var pattern = $toString(R.source);
|
|
1605
|
+
var flags = $toString(getRegExpFlags(R));
|
|
1606
|
+
return '/' + pattern + '/' + flags;
|
|
1607
|
+
}, { unsafe: true });
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
var isObject = isObject$9;
|
|
1611
|
+
var classof$1 = classofRaw$2;
|
|
1612
|
+
var wellKnownSymbol$2 = wellKnownSymbol$a;
|
|
1613
|
+
|
|
1614
|
+
var MATCH$1 = wellKnownSymbol$2('match');
|
|
1615
|
+
|
|
1616
|
+
// `IsRegExp` abstract operation
|
|
1617
|
+
// https://tc39.es/ecma262/#sec-isregexp
|
|
1618
|
+
var isRegexp = function (it) {
|
|
1619
|
+
var isRegExp;
|
|
1620
|
+
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$1(it) === 'RegExp');
|
|
1562
1621
|
};
|
|
1563
1622
|
|
|
1564
|
-
var
|
|
1565
|
-
var classof$4 = classof$5;
|
|
1623
|
+
var isRegExp = isRegexp;
|
|
1566
1624
|
|
|
1567
|
-
var
|
|
1625
|
+
var $TypeError$2 = TypeError;
|
|
1568
1626
|
|
|
1569
|
-
var
|
|
1570
|
-
if (
|
|
1571
|
-
|
|
1627
|
+
var notARegexp = function (it) {
|
|
1628
|
+
if (isRegExp(it)) {
|
|
1629
|
+
throw new $TypeError$2("The method doesn't accept regular expressions");
|
|
1630
|
+
} return it;
|
|
1572
1631
|
};
|
|
1573
1632
|
|
|
1574
|
-
var wellKnownSymbol$
|
|
1633
|
+
var wellKnownSymbol$1 = wellKnownSymbol$a;
|
|
1575
1634
|
|
|
1576
|
-
var MATCH = wellKnownSymbol$
|
|
1635
|
+
var MATCH = wellKnownSymbol$1('match');
|
|
1577
1636
|
|
|
1578
1637
|
var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
1579
1638
|
var regexp = /./;
|
|
@@ -1588,139 +1647,107 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
|
1588
1647
|
};
|
|
1589
1648
|
|
|
1590
1649
|
var $$4 = _export;
|
|
1591
|
-
var uncurryThis$
|
|
1650
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
1592
1651
|
var notARegExp$1 = notARegexp;
|
|
1593
|
-
var requireObjectCoercible$
|
|
1594
|
-
var toString$
|
|
1652
|
+
var requireObjectCoercible$1 = requireObjectCoercible$5;
|
|
1653
|
+
var toString$3 = toString$4;
|
|
1595
1654
|
var correctIsRegExpLogic$1 = correctIsRegexpLogic;
|
|
1596
1655
|
|
|
1597
|
-
var stringIndexOf
|
|
1656
|
+
var stringIndexOf = uncurryThis$3(''.indexOf);
|
|
1598
1657
|
|
|
1599
1658
|
// `String.prototype.includes` method
|
|
1600
1659
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
1601
1660
|
$$4({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes') }, {
|
|
1602
1661
|
includes: function includes(searchString /* , position = 0 */) {
|
|
1603
|
-
return !!~stringIndexOf
|
|
1604
|
-
toString$
|
|
1605
|
-
toString$
|
|
1662
|
+
return !!~stringIndexOf(
|
|
1663
|
+
toString$3(requireObjectCoercible$1(this)),
|
|
1664
|
+
toString$3(notARegExp$1(searchString)),
|
|
1606
1665
|
arguments.length > 1 ? arguments[1] : undefined
|
|
1607
1666
|
);
|
|
1608
1667
|
}
|
|
1609
1668
|
});
|
|
1610
1669
|
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
var
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
A[symbol] = 7;
|
|
1647
|
-
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1648
|
-
return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
|
|
1649
|
-
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1650
|
-
var T = toObject$1(target);
|
|
1651
|
-
var argumentsLength = arguments.length;
|
|
1652
|
-
var index = 1;
|
|
1653
|
-
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
1654
|
-
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
1655
|
-
while (argumentsLength > index) {
|
|
1656
|
-
var S = IndexedObject(arguments[index++]);
|
|
1657
|
-
var keys = getOwnPropertySymbols ? concat$1(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
|
|
1658
|
-
var length = keys.length;
|
|
1659
|
-
var j = 0;
|
|
1660
|
-
var key;
|
|
1661
|
-
while (length > j) {
|
|
1662
|
-
key = keys[j++];
|
|
1663
|
-
if (!DESCRIPTORS$1 || call$8(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1664
|
-
}
|
|
1665
|
-
} return T;
|
|
1666
|
-
} : $assign;
|
|
1667
|
-
|
|
1668
|
-
var $$3 = _export;
|
|
1669
|
-
var assign = objectAssign;
|
|
1670
|
+
// iterable DOM collections
|
|
1671
|
+
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
|
1672
|
+
var domIterables = {
|
|
1673
|
+
CSSRuleList: 0,
|
|
1674
|
+
CSSStyleDeclaration: 0,
|
|
1675
|
+
CSSValueList: 0,
|
|
1676
|
+
ClientRectList: 0,
|
|
1677
|
+
DOMRectList: 0,
|
|
1678
|
+
DOMStringList: 0,
|
|
1679
|
+
DOMTokenList: 1,
|
|
1680
|
+
DataTransferItemList: 0,
|
|
1681
|
+
FileList: 0,
|
|
1682
|
+
HTMLAllCollection: 0,
|
|
1683
|
+
HTMLCollection: 0,
|
|
1684
|
+
HTMLFormElement: 0,
|
|
1685
|
+
HTMLSelectElement: 0,
|
|
1686
|
+
MediaList: 0,
|
|
1687
|
+
MimeTypeArray: 0,
|
|
1688
|
+
NamedNodeMap: 0,
|
|
1689
|
+
NodeList: 1,
|
|
1690
|
+
PaintRequestList: 0,
|
|
1691
|
+
Plugin: 0,
|
|
1692
|
+
PluginArray: 0,
|
|
1693
|
+
SVGLengthList: 0,
|
|
1694
|
+
SVGNumberList: 0,
|
|
1695
|
+
SVGPathSegList: 0,
|
|
1696
|
+
SVGPointList: 0,
|
|
1697
|
+
SVGStringList: 0,
|
|
1698
|
+
SVGTransformList: 0,
|
|
1699
|
+
SourceBufferList: 0,
|
|
1700
|
+
StyleSheetList: 0,
|
|
1701
|
+
TextTrackCueList: 0,
|
|
1702
|
+
TextTrackList: 0,
|
|
1703
|
+
TouchList: 0
|
|
1704
|
+
};
|
|
1670
1705
|
|
|
1671
|
-
// `
|
|
1672
|
-
|
|
1673
|
-
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1674
|
-
$$3({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
|
|
1675
|
-
assign: assign
|
|
1676
|
-
});
|
|
1706
|
+
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
|
1707
|
+
var documentCreateElement = documentCreateElement$2;
|
|
1677
1708
|
|
|
1678
|
-
var
|
|
1709
|
+
var classList = documentCreateElement('span').classList;
|
|
1710
|
+
var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
|
|
1679
1711
|
|
|
1680
|
-
|
|
1681
|
-
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
1682
|
-
var regexpFlags$1 = function () {
|
|
1683
|
-
var that = anObject$8(this);
|
|
1684
|
-
var result = '';
|
|
1685
|
-
if (that.global) result += 'g';
|
|
1686
|
-
if (that.ignoreCase) result += 'i';
|
|
1687
|
-
if (that.multiline) result += 'm';
|
|
1688
|
-
if (that.dotAll) result += 's';
|
|
1689
|
-
if (that.unicode) result += 'u';
|
|
1690
|
-
if (that.sticky) result += 'y';
|
|
1691
|
-
return result;
|
|
1692
|
-
};
|
|
1712
|
+
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1693
1713
|
|
|
1694
|
-
var
|
|
1695
|
-
var
|
|
1696
|
-
var
|
|
1697
|
-
var
|
|
1698
|
-
var
|
|
1699
|
-
var
|
|
1700
|
-
var
|
|
1701
|
-
var regExpFlags = regexpFlags$1;
|
|
1714
|
+
var globalThis$4 = globalThis_1;
|
|
1715
|
+
var DOMIterables = domIterables;
|
|
1716
|
+
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1717
|
+
var ArrayIteratorMethods = es_array_iterator;
|
|
1718
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
|
1719
|
+
var setToStringTag = setToStringTag$3;
|
|
1720
|
+
var wellKnownSymbol = wellKnownSymbol$a;
|
|
1702
1721
|
|
|
1703
|
-
var
|
|
1704
|
-
var
|
|
1705
|
-
var n$ToString = RegExpPrototype$1[TO_STRING];
|
|
1706
|
-
var getFlags = uncurryThis$9(regExpFlags);
|
|
1722
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
1723
|
+
var ArrayValues = ArrayIteratorMethods.values;
|
|
1707
1724
|
|
|
1708
|
-
var
|
|
1709
|
-
|
|
1710
|
-
|
|
1725
|
+
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
1726
|
+
if (CollectionPrototype) {
|
|
1727
|
+
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1728
|
+
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
|
|
1729
|
+
createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
|
|
1730
|
+
} catch (error) {
|
|
1731
|
+
CollectionPrototype[ITERATOR] = ArrayValues;
|
|
1732
|
+
}
|
|
1733
|
+
setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
|
|
1734
|
+
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
1735
|
+
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1736
|
+
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
1737
|
+
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
1738
|
+
} catch (error) {
|
|
1739
|
+
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
1740
|
+
}
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1743
|
+
};
|
|
1711
1744
|
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
1715
|
-
redefine$3(RegExp.prototype, TO_STRING, function toString() {
|
|
1716
|
-
var R = anObject$7(this);
|
|
1717
|
-
var p = $toString(R.source);
|
|
1718
|
-
var rf = R.flags;
|
|
1719
|
-
var f = $toString(rf === undefined && isPrototypeOf$2(RegExpPrototype$1, R) && !('flags' in RegExpPrototype$1) ? getFlags(R) : rf);
|
|
1720
|
-
return '/' + p + '/' + f;
|
|
1721
|
-
}, { unsafe: true });
|
|
1745
|
+
for (var COLLECTION_NAME in DOMIterables) {
|
|
1746
|
+
handlePrototype(globalThis$4[COLLECTION_NAME] && globalThis$4[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1722
1747
|
}
|
|
1723
1748
|
|
|
1749
|
+
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
1750
|
+
|
|
1724
1751
|
var KeyboardLayoutName;
|
|
1725
1752
|
(function (KeyboardLayoutName) {
|
|
1726
1753
|
KeyboardLayoutName["DEFAULT"] = "default";
|
|
@@ -1763,12 +1790,17 @@ const KeyboardLayoutsByInputType = {
|
|
|
1763
1790
|
// number: KeyboardLayout.NUMERIC,
|
|
1764
1791
|
tel: KeyboardLayout.NUMERIC,
|
|
1765
1792
|
date: KeyboardLayout.NUMERIC,
|
|
1793
|
+
// Never tested, might not work very well
|
|
1766
1794
|
week: KeyboardLayout.NUMERIC,
|
|
1795
|
+
// Never tested, might not work very well
|
|
1767
1796
|
text: KeyboardLayout.TEXT,
|
|
1768
1797
|
password: KeyboardLayout.TEXT,
|
|
1769
1798
|
"datetime-local": KeyboardLayout.TEXT,
|
|
1799
|
+
// Never tested, might not work very well
|
|
1770
1800
|
month: KeyboardLayout.TEXT,
|
|
1801
|
+
// Never tested, might not work very well
|
|
1771
1802
|
time: KeyboardLayout.TEXT,
|
|
1803
|
+
// Never tested, might not work very well
|
|
1772
1804
|
email: KeyboardLayout.TEXT,
|
|
1773
1805
|
search: KeyboardLayout.TEXT,
|
|
1774
1806
|
url: KeyboardLayout.TEXT,
|
|
@@ -1869,7 +1901,7 @@ const VirtualKeyboard = () => {
|
|
|
1869
1901
|
(_a = virtualKeyboardRef.current) === null || _a === void 0 ? void 0 : _a.setInput(focusedTextInput.value);
|
|
1870
1902
|
(_b = virtualKeyboardRef.current) === null || _b === void 0 ? void 0 : _b.setCaretPosition(focusedTextInput.selectionStart, focusedTextInput.selectionEnd);
|
|
1871
1903
|
};
|
|
1872
|
-
/** Without adding a click event listener, moving the caret by tapping somewhere on your input does not work correctly with inputs in a shadow dom.
|
|
1904
|
+
/** Without adding a click event listener, moving the caret by tapping somewhere on your input does not work correctly with inputs in a shadow dom.
|
|
1873
1905
|
* the caret position needs to be explicitly set on click */
|
|
1874
1906
|
focusedTextInput.addEventListener("input", updateKeyboardInput, {
|
|
1875
1907
|
capture: true
|
|
@@ -1897,7 +1929,7 @@ const VirtualKeyboard = () => {
|
|
|
1897
1929
|
return;
|
|
1898
1930
|
}
|
|
1899
1931
|
if (String(focusedTextInput.className).includes("monaco")) {
|
|
1900
|
-
/* skip: MonacoEditor textarea input actions via VirtualKeyboard are
|
|
1932
|
+
/* skip: MonacoEditor textarea input actions via VirtualKeyboard are
|
|
1901
1933
|
* handled below using the monacoEventEmitter + editor.trigger(...) calls. */
|
|
1902
1934
|
return;
|
|
1903
1935
|
}
|
|
@@ -1927,9 +1959,8 @@ const VirtualKeyboard = () => {
|
|
|
1927
1959
|
if (!isKeyboardVisible) {
|
|
1928
1960
|
return null;
|
|
1929
1961
|
}
|
|
1930
|
-
return jsx("div",
|
|
1931
|
-
id: "virtual_keyboard"
|
|
1932
|
-
}, {
|
|
1962
|
+
return jsx("div", {
|
|
1963
|
+
id: "virtual_keyboard",
|
|
1933
1964
|
children: jsx(Keyboard, {
|
|
1934
1965
|
keyboardRef: ref => {
|
|
1935
1966
|
virtualKeyboardRef.current = ref;
|
|
@@ -1962,13 +1993,13 @@ const VirtualKeyboard = () => {
|
|
|
1962
1993
|
display: KeyboardDisplay,
|
|
1963
1994
|
newLineOnEnter: true
|
|
1964
1995
|
})
|
|
1965
|
-
})
|
|
1996
|
+
});
|
|
1966
1997
|
};
|
|
1967
|
-
/**
|
|
1968
|
-
* Sets the input value in a way that can be picked up by React if the element is managed by React.
|
|
1969
|
-
*
|
|
1970
|
-
* I don't understand any of this, but other people do
|
|
1971
|
-
* - https://stackoverflow.com/questions/42550341/react-trigger-onchange-if-input-value-is-changing-by-state/59939017#59939017
|
|
1998
|
+
/**
|
|
1999
|
+
* Sets the input value in a way that can be picked up by React if the element is managed by React.
|
|
2000
|
+
*
|
|
2001
|
+
* I don't understand any of this, but other people do
|
|
2002
|
+
* - https://stackoverflow.com/questions/42550341/react-trigger-onchange-if-input-value-is-changing-by-state/59939017#59939017
|
|
1972
2003
|
*/
|
|
1973
2004
|
function setInputValue(inputElement, inputValue, caretPosition) {
|
|
1974
2005
|
var _a, _b;
|
|
@@ -1983,1094 +2014,207 @@ function setInputValue(inputElement, inputValue, caretPosition) {
|
|
|
1983
2014
|
// Not managed by React, set it the normal way
|
|
1984
2015
|
inputElement.value = inputValue;
|
|
1985
2016
|
}
|
|
1986
|
-
// The input caret position doesn't stay in sync after setting the value programmatically, so we set it
|
|
1987
|
-
inputElement.setSelectionRange(caretPosition, caretPosition);
|
|
1988
|
-
inputElement.dispatchEvent(new Event("input")); // Some jQuery handlers use on("input", handler)
|
|
1989
|
-
inputElement.dispatchEvent(new Event("input", {
|
|
1990
|
-
bubbles: true
|
|
1991
|
-
})); // Used by React onChange handlers
|
|
1992
|
-
}
|
|
1993
|
-
function toggleLayout(keyboardLayoutName) {
|
|
1994
|
-
return keyboardLayoutName === KeyboardLayoutName.DEFAULT ? KeyboardLayoutName.SHIFT : KeyboardLayoutName.DEFAULT;
|
|
1995
|
-
}
|
|
1996
|
-
function isTextSelected(inputElement) {
|
|
1997
|
-
if (typeof inputElement.selectionStart == "number") {
|
|
1998
|
-
return inputElement.selectionStart === 0 && inputElement.selectionEnd === inputElement.value.length;
|
|
1999
|
-
} else if (typeof window.getSelection != "undefined") {
|
|
2000
|
-
const selection = window.getSelection();
|
|
2001
|
-
return (selection === null || selection === void 0 ? void 0 : selection.toString()) === inputElement.value;
|
|
2002
|
-
}
|
|
2003
|
-
}
|
|
2004
|
-
|
|
2005
|
-
var $$2 = _export;
|
|
2006
|
-
var uncurryThis$8 = functionUncurryThis;
|
|
2007
|
-
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
2008
|
-
var toLength$1 = toLength$3;
|
|
2009
|
-
var toString$3 = toString$5;
|
|
2010
|
-
var notARegExp = notARegexp;
|
|
2011
|
-
var requireObjectCoercible$2 = requireObjectCoercible$6;
|
|
2012
|
-
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
2013
|
-
|
|
2014
|
-
// eslint-disable-next-line es/no-string-prototype-startswith -- safe
|
|
2015
|
-
var un$StartsWith = uncurryThis$8(''.startsWith);
|
|
2016
|
-
var stringSlice$4 = uncurryThis$8(''.slice);
|
|
2017
|
-
var min$1 = Math.min;
|
|
2018
|
-
|
|
2019
|
-
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');
|
|
2020
|
-
// https://github.com/zloirock/core-js/pull/702
|
|
2021
|
-
var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function () {
|
|
2022
|
-
var descriptor = getOwnPropertyDescriptor$1(String.prototype, 'startsWith');
|
|
2023
|
-
return descriptor && !descriptor.writable;
|
|
2024
|
-
}();
|
|
2025
|
-
|
|
2026
|
-
// `String.prototype.startsWith` method
|
|
2027
|
-
// https://tc39.es/ecma262/#sec-string.prototype.startswith
|
|
2028
|
-
$$2({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
|
|
2029
|
-
startsWith: function startsWith(searchString /* , position = 0 */) {
|
|
2030
|
-
var that = toString$3(requireObjectCoercible$2(this));
|
|
2031
|
-
notARegExp(searchString);
|
|
2032
|
-
var index = toLength$1(min$1(arguments.length > 1 ? arguments[1] : undefined, that.length));
|
|
2033
|
-
var search = toString$3(searchString);
|
|
2034
|
-
return un$StartsWith
|
|
2035
|
-
? un$StartsWith(that, search, index)
|
|
2036
|
-
: stringSlice$4(that, index, index + search.length) === search;
|
|
2037
|
-
}
|
|
2038
|
-
});
|
|
2039
|
-
|
|
2040
|
-
var global$f = global$G;
|
|
2041
|
-
|
|
2042
|
-
var nativePromiseConstructor = global$f.Promise;
|
|
2043
|
-
|
|
2044
|
-
var redefine$2 = redefine$7.exports;
|
|
2045
|
-
|
|
2046
|
-
var redefineAll$1 = function (target, src, options) {
|
|
2047
|
-
for (var key in src) redefine$2(target, key, src[key], options);
|
|
2048
|
-
return target;
|
|
2049
|
-
};
|
|
2050
|
-
|
|
2051
|
-
var getBuiltIn$2 = getBuiltIn$7;
|
|
2052
|
-
var definePropertyModule = objectDefineProperty;
|
|
2053
|
-
var wellKnownSymbol$7 = wellKnownSymbol$i;
|
|
2054
|
-
var DESCRIPTORS = descriptors;
|
|
2055
|
-
|
|
2056
|
-
var SPECIES$3 = wellKnownSymbol$7('species');
|
|
2057
|
-
|
|
2058
|
-
var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
2059
|
-
var Constructor = getBuiltIn$2(CONSTRUCTOR_NAME);
|
|
2060
|
-
var defineProperty = definePropertyModule.f;
|
|
2061
|
-
|
|
2062
|
-
if (DESCRIPTORS && Constructor && !Constructor[SPECIES$3]) {
|
|
2063
|
-
defineProperty(Constructor, SPECIES$3, {
|
|
2064
|
-
configurable: true,
|
|
2065
|
-
get: function () { return this; }
|
|
2066
|
-
});
|
|
2067
|
-
}
|
|
2068
|
-
};
|
|
2069
|
-
|
|
2070
|
-
var global$e = global$G;
|
|
2071
|
-
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
2072
|
-
|
|
2073
|
-
var TypeError$6 = global$e.TypeError;
|
|
2074
|
-
|
|
2075
|
-
var anInstance$1 = function (it, Prototype) {
|
|
2076
|
-
if (isPrototypeOf$1(Prototype, it)) return it;
|
|
2077
|
-
throw TypeError$6('Incorrect invocation');
|
|
2078
|
-
};
|
|
2079
|
-
|
|
2080
|
-
var uncurryThis$7 = functionUncurryThis;
|
|
2081
|
-
var aCallable$3 = aCallable$5;
|
|
2082
|
-
var NATIVE_BIND$1 = functionBindNative;
|
|
2083
|
-
|
|
2084
|
-
var bind$4 = uncurryThis$7(uncurryThis$7.bind);
|
|
2085
|
-
|
|
2086
|
-
// optional / simple context binding
|
|
2087
|
-
var functionBindContext = function (fn, that) {
|
|
2088
|
-
aCallable$3(fn);
|
|
2089
|
-
return that === undefined ? fn : NATIVE_BIND$1 ? bind$4(fn, that) : function (/* ...args */) {
|
|
2090
|
-
return fn.apply(that, arguments);
|
|
2091
|
-
};
|
|
2092
|
-
};
|
|
2093
|
-
|
|
2094
|
-
var wellKnownSymbol$6 = wellKnownSymbol$i;
|
|
2095
|
-
var Iterators$1 = iterators;
|
|
2096
|
-
|
|
2097
|
-
var ITERATOR$2 = wellKnownSymbol$6('iterator');
|
|
2098
|
-
var ArrayPrototype = Array.prototype;
|
|
2099
|
-
|
|
2100
|
-
// check on default Array iterator
|
|
2101
|
-
var isArrayIteratorMethod$1 = function (it) {
|
|
2102
|
-
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
|
|
2103
|
-
};
|
|
2104
|
-
|
|
2105
|
-
var classof$3 = classof$5;
|
|
2106
|
-
var getMethod$2 = getMethod$4;
|
|
2107
|
-
var Iterators = iterators;
|
|
2108
|
-
var wellKnownSymbol$5 = wellKnownSymbol$i;
|
|
2109
|
-
|
|
2110
|
-
var ITERATOR$1 = wellKnownSymbol$5('iterator');
|
|
2111
|
-
|
|
2112
|
-
var getIteratorMethod$2 = function (it) {
|
|
2113
|
-
if (it != undefined) return getMethod$2(it, ITERATOR$1)
|
|
2114
|
-
|| getMethod$2(it, '@@iterator')
|
|
2115
|
-
|| Iterators[classof$3(it)];
|
|
2116
|
-
};
|
|
2117
|
-
|
|
2118
|
-
var global$d = global$G;
|
|
2119
|
-
var call$7 = functionCall;
|
|
2120
|
-
var aCallable$2 = aCallable$5;
|
|
2121
|
-
var anObject$6 = anObject$e;
|
|
2122
|
-
var tryToString$2 = tryToString$4;
|
|
2123
|
-
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
2124
|
-
|
|
2125
|
-
var TypeError$5 = global$d.TypeError;
|
|
2126
|
-
|
|
2127
|
-
var getIterator$1 = function (argument, usingIterator) {
|
|
2128
|
-
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
2129
|
-
if (aCallable$2(iteratorMethod)) return anObject$6(call$7(iteratorMethod, argument));
|
|
2130
|
-
throw TypeError$5(tryToString$2(argument) + ' is not iterable');
|
|
2131
|
-
};
|
|
2132
|
-
|
|
2133
|
-
var call$6 = functionCall;
|
|
2134
|
-
var anObject$5 = anObject$e;
|
|
2135
|
-
var getMethod$1 = getMethod$4;
|
|
2136
|
-
|
|
2137
|
-
var iteratorClose$1 = function (iterator, kind, value) {
|
|
2138
|
-
var innerResult, innerError;
|
|
2139
|
-
anObject$5(iterator);
|
|
2140
|
-
try {
|
|
2141
|
-
innerResult = getMethod$1(iterator, 'return');
|
|
2142
|
-
if (!innerResult) {
|
|
2143
|
-
if (kind === 'throw') throw value;
|
|
2144
|
-
return value;
|
|
2145
|
-
}
|
|
2146
|
-
innerResult = call$6(innerResult, iterator);
|
|
2147
|
-
} catch (error) {
|
|
2148
|
-
innerError = true;
|
|
2149
|
-
innerResult = error;
|
|
2150
|
-
}
|
|
2151
|
-
if (kind === 'throw') throw value;
|
|
2152
|
-
if (innerError) throw innerResult;
|
|
2153
|
-
anObject$5(innerResult);
|
|
2154
|
-
return value;
|
|
2155
|
-
};
|
|
2156
|
-
|
|
2157
|
-
var global$c = global$G;
|
|
2158
|
-
var bind$3 = functionBindContext;
|
|
2159
|
-
var call$5 = functionCall;
|
|
2160
|
-
var anObject$4 = anObject$e;
|
|
2161
|
-
var tryToString$1 = tryToString$4;
|
|
2162
|
-
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
2163
|
-
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
2164
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
2165
|
-
var getIterator = getIterator$1;
|
|
2166
|
-
var getIteratorMethod = getIteratorMethod$2;
|
|
2167
|
-
var iteratorClose = iteratorClose$1;
|
|
2168
|
-
|
|
2169
|
-
var TypeError$4 = global$c.TypeError;
|
|
2170
|
-
|
|
2171
|
-
var Result = function (stopped, result) {
|
|
2172
|
-
this.stopped = stopped;
|
|
2173
|
-
this.result = result;
|
|
2174
|
-
};
|
|
2175
|
-
|
|
2176
|
-
var ResultPrototype = Result.prototype;
|
|
2177
|
-
|
|
2178
|
-
var iterate$1 = function (iterable, unboundFunction, options) {
|
|
2179
|
-
var that = options && options.that;
|
|
2180
|
-
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
2181
|
-
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
2182
|
-
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
2183
|
-
var fn = bind$3(unboundFunction, that);
|
|
2184
|
-
var iterator, iterFn, index, length, result, next, step;
|
|
2185
|
-
|
|
2186
|
-
var stop = function (condition) {
|
|
2187
|
-
if (iterator) iteratorClose(iterator, 'normal', condition);
|
|
2188
|
-
return new Result(true, condition);
|
|
2189
|
-
};
|
|
2190
|
-
|
|
2191
|
-
var callFn = function (value) {
|
|
2192
|
-
if (AS_ENTRIES) {
|
|
2193
|
-
anObject$4(value);
|
|
2194
|
-
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
2195
|
-
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
2196
|
-
};
|
|
2197
|
-
|
|
2198
|
-
if (IS_ITERATOR) {
|
|
2199
|
-
iterator = iterable;
|
|
2200
|
-
} else {
|
|
2201
|
-
iterFn = getIteratorMethod(iterable);
|
|
2202
|
-
if (!iterFn) throw TypeError$4(tryToString$1(iterable) + ' is not iterable');
|
|
2203
|
-
// optimisation for array iterators
|
|
2204
|
-
if (isArrayIteratorMethod(iterFn)) {
|
|
2205
|
-
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
2206
|
-
result = callFn(iterable[index]);
|
|
2207
|
-
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
2208
|
-
} return new Result(false);
|
|
2209
|
-
}
|
|
2210
|
-
iterator = getIterator(iterable, iterFn);
|
|
2211
|
-
}
|
|
2212
|
-
|
|
2213
|
-
next = iterator.next;
|
|
2214
|
-
while (!(step = call$5(next, iterator)).done) {
|
|
2215
|
-
try {
|
|
2216
|
-
result = callFn(step.value);
|
|
2217
|
-
} catch (error) {
|
|
2218
|
-
iteratorClose(iterator, 'throw', error);
|
|
2219
|
-
}
|
|
2220
|
-
if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
2221
|
-
} return new Result(false);
|
|
2222
|
-
};
|
|
2223
|
-
|
|
2224
|
-
var wellKnownSymbol$4 = wellKnownSymbol$i;
|
|
2225
|
-
|
|
2226
|
-
var ITERATOR = wellKnownSymbol$4('iterator');
|
|
2227
|
-
var SAFE_CLOSING = false;
|
|
2228
|
-
|
|
2229
|
-
try {
|
|
2230
|
-
var called = 0;
|
|
2231
|
-
var iteratorWithReturn = {
|
|
2232
|
-
next: function () {
|
|
2233
|
-
return { done: !!called++ };
|
|
2234
|
-
},
|
|
2235
|
-
'return': function () {
|
|
2236
|
-
SAFE_CLOSING = true;
|
|
2237
|
-
}
|
|
2238
|
-
};
|
|
2239
|
-
iteratorWithReturn[ITERATOR] = function () {
|
|
2240
|
-
return this;
|
|
2241
|
-
};
|
|
2242
|
-
// eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
|
|
2243
|
-
Array.from(iteratorWithReturn, function () { throw 2; });
|
|
2244
|
-
} catch (error) { /* empty */ }
|
|
2245
|
-
|
|
2246
|
-
var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
|
|
2247
|
-
if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
|
|
2248
|
-
var ITERATION_SUPPORT = false;
|
|
2249
|
-
try {
|
|
2250
|
-
var object = {};
|
|
2251
|
-
object[ITERATOR] = function () {
|
|
2252
|
-
return {
|
|
2253
|
-
next: function () {
|
|
2254
|
-
return { done: ITERATION_SUPPORT = true };
|
|
2255
|
-
}
|
|
2256
|
-
};
|
|
2257
|
-
};
|
|
2258
|
-
exec(object);
|
|
2259
|
-
} catch (error) { /* empty */ }
|
|
2260
|
-
return ITERATION_SUPPORT;
|
|
2261
|
-
};
|
|
2262
|
-
|
|
2263
|
-
var uncurryThis$6 = functionUncurryThis;
|
|
2264
|
-
var fails$6 = fails$i;
|
|
2265
|
-
var isCallable$4 = isCallable$j;
|
|
2266
|
-
var classof$2 = classof$5;
|
|
2267
|
-
var getBuiltIn$1 = getBuiltIn$7;
|
|
2268
|
-
var inspectSource$1 = inspectSource$4;
|
|
2269
|
-
|
|
2270
|
-
var noop = function () { /* empty */ };
|
|
2271
|
-
var empty = [];
|
|
2272
|
-
var construct = getBuiltIn$1('Reflect', 'construct');
|
|
2273
|
-
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
2274
|
-
var exec$1 = uncurryThis$6(constructorRegExp.exec);
|
|
2275
|
-
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
2276
|
-
|
|
2277
|
-
var isConstructorModern = function isConstructor(argument) {
|
|
2278
|
-
if (!isCallable$4(argument)) return false;
|
|
2279
|
-
try {
|
|
2280
|
-
construct(noop, empty, argument);
|
|
2281
|
-
return true;
|
|
2282
|
-
} catch (error) {
|
|
2283
|
-
return false;
|
|
2284
|
-
}
|
|
2285
|
-
};
|
|
2286
|
-
|
|
2287
|
-
var isConstructorLegacy = function isConstructor(argument) {
|
|
2288
|
-
if (!isCallable$4(argument)) return false;
|
|
2289
|
-
switch (classof$2(argument)) {
|
|
2290
|
-
case 'AsyncFunction':
|
|
2291
|
-
case 'GeneratorFunction':
|
|
2292
|
-
case 'AsyncGeneratorFunction': return false;
|
|
2293
|
-
}
|
|
2294
|
-
try {
|
|
2295
|
-
// we can't check .prototype since constructors produced by .bind haven't it
|
|
2296
|
-
// `Function#toString` throws on some built-it function in some legacy engines
|
|
2297
|
-
// (for example, `DOMQuad` and similar in FF41-)
|
|
2298
|
-
return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource$1(argument));
|
|
2299
|
-
} catch (error) {
|
|
2300
|
-
return true;
|
|
2301
|
-
}
|
|
2302
|
-
};
|
|
2303
|
-
|
|
2304
|
-
isConstructorLegacy.sham = true;
|
|
2305
|
-
|
|
2306
|
-
// `IsConstructor` abstract operation
|
|
2307
|
-
// https://tc39.es/ecma262/#sec-isconstructor
|
|
2308
|
-
var isConstructor$1 = !construct || fails$6(function () {
|
|
2309
|
-
var called;
|
|
2310
|
-
return isConstructorModern(isConstructorModern.call)
|
|
2311
|
-
|| !isConstructorModern(Object)
|
|
2312
|
-
|| !isConstructorModern(function () { called = true; })
|
|
2313
|
-
|| called;
|
|
2314
|
-
}) ? isConstructorLegacy : isConstructorModern;
|
|
2315
|
-
|
|
2316
|
-
var global$b = global$G;
|
|
2317
|
-
var isConstructor = isConstructor$1;
|
|
2318
|
-
var tryToString = tryToString$4;
|
|
2319
|
-
|
|
2320
|
-
var TypeError$3 = global$b.TypeError;
|
|
2321
|
-
|
|
2322
|
-
// `Assert: IsConstructor(argument) is true`
|
|
2323
|
-
var aConstructor$1 = function (argument) {
|
|
2324
|
-
if (isConstructor(argument)) return argument;
|
|
2325
|
-
throw TypeError$3(tryToString(argument) + ' is not a constructor');
|
|
2326
|
-
};
|
|
2327
|
-
|
|
2328
|
-
var anObject$3 = anObject$e;
|
|
2329
|
-
var aConstructor = aConstructor$1;
|
|
2330
|
-
var wellKnownSymbol$3 = wellKnownSymbol$i;
|
|
2331
|
-
|
|
2332
|
-
var SPECIES$2 = wellKnownSymbol$3('species');
|
|
2333
|
-
|
|
2334
|
-
// `SpeciesConstructor` abstract operation
|
|
2335
|
-
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
2336
|
-
var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
2337
|
-
var C = anObject$3(O).constructor;
|
|
2338
|
-
var S;
|
|
2339
|
-
return C === undefined || (S = anObject$3(C)[SPECIES$2]) == undefined ? defaultConstructor : aConstructor(S);
|
|
2340
|
-
};
|
|
2341
|
-
|
|
2342
|
-
var NATIVE_BIND = functionBindNative;
|
|
2343
|
-
|
|
2344
|
-
var FunctionPrototype = Function.prototype;
|
|
2345
|
-
var apply$2 = FunctionPrototype.apply;
|
|
2346
|
-
var call$4 = FunctionPrototype.call;
|
|
2347
|
-
|
|
2348
|
-
// eslint-disable-next-line es/no-reflect -- safe
|
|
2349
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$4.bind(apply$2) : function () {
|
|
2350
|
-
return call$4.apply(apply$2, arguments);
|
|
2351
|
-
});
|
|
2352
|
-
|
|
2353
|
-
var uncurryThis$5 = functionUncurryThis;
|
|
2354
|
-
|
|
2355
|
-
var arraySlice$1 = uncurryThis$5([].slice);
|
|
2356
|
-
|
|
2357
|
-
var userAgent$2 = engineUserAgent;
|
|
2358
|
-
|
|
2359
|
-
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
2360
|
-
|
|
2361
|
-
var classof$1 = classofRaw$1;
|
|
2362
|
-
var global$a = global$G;
|
|
2363
|
-
|
|
2364
|
-
var engineIsNode = classof$1(global$a.process) == 'process';
|
|
2365
|
-
|
|
2366
|
-
var global$9 = global$G;
|
|
2367
|
-
var apply$1 = functionApply;
|
|
2368
|
-
var bind$2 = functionBindContext;
|
|
2369
|
-
var isCallable$3 = isCallable$j;
|
|
2370
|
-
var hasOwn = hasOwnProperty_1;
|
|
2371
|
-
var fails$5 = fails$i;
|
|
2372
|
-
var html = html$2;
|
|
2373
|
-
var arraySlice = arraySlice$1;
|
|
2374
|
-
var createElement = documentCreateElement$2;
|
|
2375
|
-
var IS_IOS$1 = engineIsIos;
|
|
2376
|
-
var IS_NODE$2 = engineIsNode;
|
|
2377
|
-
|
|
2378
|
-
var set = global$9.setImmediate;
|
|
2379
|
-
var clear = global$9.clearImmediate;
|
|
2380
|
-
var process$2 = global$9.process;
|
|
2381
|
-
var Dispatch = global$9.Dispatch;
|
|
2382
|
-
var Function$1 = global$9.Function;
|
|
2383
|
-
var MessageChannel = global$9.MessageChannel;
|
|
2384
|
-
var String$1 = global$9.String;
|
|
2385
|
-
var counter = 0;
|
|
2386
|
-
var queue$1 = {};
|
|
2387
|
-
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
2388
|
-
var location, defer, channel, port;
|
|
2389
|
-
|
|
2390
|
-
try {
|
|
2391
|
-
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
2392
|
-
location = global$9.location;
|
|
2393
|
-
} catch (error) { /* empty */ }
|
|
2394
|
-
|
|
2395
|
-
var run = function (id) {
|
|
2396
|
-
if (hasOwn(queue$1, id)) {
|
|
2397
|
-
var fn = queue$1[id];
|
|
2398
|
-
delete queue$1[id];
|
|
2399
|
-
fn();
|
|
2400
|
-
}
|
|
2401
|
-
};
|
|
2402
|
-
|
|
2403
|
-
var runner = function (id) {
|
|
2404
|
-
return function () {
|
|
2405
|
-
run(id);
|
|
2406
|
-
};
|
|
2407
|
-
};
|
|
2408
|
-
|
|
2409
|
-
var listener = function (event) {
|
|
2410
|
-
run(event.data);
|
|
2411
|
-
};
|
|
2412
|
-
|
|
2413
|
-
var post = function (id) {
|
|
2414
|
-
// old engines have not location.origin
|
|
2415
|
-
global$9.postMessage(String$1(id), location.protocol + '//' + location.host);
|
|
2416
|
-
};
|
|
2417
|
-
|
|
2418
|
-
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
2419
|
-
if (!set || !clear) {
|
|
2420
|
-
set = function setImmediate(fn) {
|
|
2421
|
-
var args = arraySlice(arguments, 1);
|
|
2422
|
-
queue$1[++counter] = function () {
|
|
2423
|
-
apply$1(isCallable$3(fn) ? fn : Function$1(fn), undefined, args);
|
|
2424
|
-
};
|
|
2425
|
-
defer(counter);
|
|
2426
|
-
return counter;
|
|
2427
|
-
};
|
|
2428
|
-
clear = function clearImmediate(id) {
|
|
2429
|
-
delete queue$1[id];
|
|
2430
|
-
};
|
|
2431
|
-
// Node.js 0.8-
|
|
2432
|
-
if (IS_NODE$2) {
|
|
2433
|
-
defer = function (id) {
|
|
2434
|
-
process$2.nextTick(runner(id));
|
|
2435
|
-
};
|
|
2436
|
-
// Sphere (JS game engine) Dispatch API
|
|
2437
|
-
} else if (Dispatch && Dispatch.now) {
|
|
2438
|
-
defer = function (id) {
|
|
2439
|
-
Dispatch.now(runner(id));
|
|
2440
|
-
};
|
|
2441
|
-
// Browsers with MessageChannel, includes WebWorkers
|
|
2442
|
-
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
2443
|
-
} else if (MessageChannel && !IS_IOS$1) {
|
|
2444
|
-
channel = new MessageChannel();
|
|
2445
|
-
port = channel.port2;
|
|
2446
|
-
channel.port1.onmessage = listener;
|
|
2447
|
-
defer = bind$2(port.postMessage, port);
|
|
2448
|
-
// Browsers with postMessage, skip WebWorkers
|
|
2449
|
-
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
2450
|
-
} else if (
|
|
2451
|
-
global$9.addEventListener &&
|
|
2452
|
-
isCallable$3(global$9.postMessage) &&
|
|
2453
|
-
!global$9.importScripts &&
|
|
2454
|
-
location && location.protocol !== 'file:' &&
|
|
2455
|
-
!fails$5(post)
|
|
2456
|
-
) {
|
|
2457
|
-
defer = post;
|
|
2458
|
-
global$9.addEventListener('message', listener, false);
|
|
2459
|
-
// IE8-
|
|
2460
|
-
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
2461
|
-
defer = function (id) {
|
|
2462
|
-
html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
|
|
2463
|
-
html.removeChild(this);
|
|
2464
|
-
run(id);
|
|
2465
|
-
};
|
|
2466
|
-
};
|
|
2467
|
-
// Rest old browsers
|
|
2468
|
-
} else {
|
|
2469
|
-
defer = function (id) {
|
|
2470
|
-
setTimeout(runner(id), 0);
|
|
2471
|
-
};
|
|
2472
|
-
}
|
|
2473
|
-
}
|
|
2474
|
-
|
|
2475
|
-
var task$1 = {
|
|
2476
|
-
set: set,
|
|
2477
|
-
clear: clear
|
|
2478
|
-
};
|
|
2479
|
-
|
|
2480
|
-
var userAgent$1 = engineUserAgent;
|
|
2481
|
-
var global$8 = global$G;
|
|
2482
|
-
|
|
2483
|
-
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$8.Pebble !== undefined;
|
|
2484
|
-
|
|
2485
|
-
var userAgent = engineUserAgent;
|
|
2486
|
-
|
|
2487
|
-
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
2488
|
-
|
|
2489
|
-
var global$7 = global$G;
|
|
2490
|
-
var bind$1 = functionBindContext;
|
|
2491
|
-
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
2492
|
-
var macrotask = task$1.set;
|
|
2493
|
-
var IS_IOS = engineIsIos;
|
|
2494
|
-
var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
2495
|
-
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
2496
|
-
var IS_NODE$1 = engineIsNode;
|
|
2497
|
-
|
|
2498
|
-
var MutationObserver = global$7.MutationObserver || global$7.WebKitMutationObserver;
|
|
2499
|
-
var document$2 = global$7.document;
|
|
2500
|
-
var process$1 = global$7.process;
|
|
2501
|
-
var Promise$1 = global$7.Promise;
|
|
2502
|
-
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
2503
|
-
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$7, 'queueMicrotask');
|
|
2504
|
-
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
2505
|
-
|
|
2506
|
-
var flush, head, last, notify$1, toggle, node, promise, then;
|
|
2507
|
-
|
|
2508
|
-
// modern engines have queueMicrotask method
|
|
2509
|
-
if (!queueMicrotask) {
|
|
2510
|
-
flush = function () {
|
|
2511
|
-
var parent, fn;
|
|
2512
|
-
if (IS_NODE$1 && (parent = process$1.domain)) parent.exit();
|
|
2513
|
-
while (head) {
|
|
2514
|
-
fn = head.fn;
|
|
2515
|
-
head = head.next;
|
|
2516
|
-
try {
|
|
2517
|
-
fn();
|
|
2518
|
-
} catch (error) {
|
|
2519
|
-
if (head) notify$1();
|
|
2520
|
-
else last = undefined;
|
|
2521
|
-
throw error;
|
|
2522
|
-
}
|
|
2523
|
-
} last = undefined;
|
|
2524
|
-
if (parent) parent.enter();
|
|
2525
|
-
};
|
|
2526
|
-
|
|
2527
|
-
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
2528
|
-
// also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
|
|
2529
|
-
if (!IS_IOS && !IS_NODE$1 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
|
|
2530
|
-
toggle = true;
|
|
2531
|
-
node = document$2.createTextNode('');
|
|
2532
|
-
new MutationObserver(flush).observe(node, { characterData: true });
|
|
2533
|
-
notify$1 = function () {
|
|
2534
|
-
node.data = toggle = !toggle;
|
|
2535
|
-
};
|
|
2536
|
-
// environments with maybe non-completely correct, but existent Promise
|
|
2537
|
-
} else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
|
|
2538
|
-
// Promise.resolve without an argument throws an error in LG WebOS 2
|
|
2539
|
-
promise = Promise$1.resolve(undefined);
|
|
2540
|
-
// workaround of WebKit ~ iOS Safari 10.1 bug
|
|
2541
|
-
promise.constructor = Promise$1;
|
|
2542
|
-
then = bind$1(promise.then, promise);
|
|
2543
|
-
notify$1 = function () {
|
|
2544
|
-
then(flush);
|
|
2545
|
-
};
|
|
2546
|
-
// Node.js without promises
|
|
2547
|
-
} else if (IS_NODE$1) {
|
|
2548
|
-
notify$1 = function () {
|
|
2549
|
-
process$1.nextTick(flush);
|
|
2550
|
-
};
|
|
2551
|
-
// for other environments - macrotask based on:
|
|
2552
|
-
// - setImmediate
|
|
2553
|
-
// - MessageChannel
|
|
2554
|
-
// - window.postMessag
|
|
2555
|
-
// - onreadystatechange
|
|
2556
|
-
// - setTimeout
|
|
2557
|
-
} else {
|
|
2558
|
-
// strange IE + webpack dev server bug - use .bind(global)
|
|
2559
|
-
macrotask = bind$1(macrotask, global$7);
|
|
2560
|
-
notify$1 = function () {
|
|
2561
|
-
macrotask(flush);
|
|
2562
|
-
};
|
|
2017
|
+
// The input caret position doesn't stay in sync after setting the value programmatically, so we set it
|
|
2018
|
+
inputElement.setSelectionRange(caretPosition, caretPosition);
|
|
2019
|
+
inputElement.dispatchEvent(new Event("input")); // Some jQuery handlers use on("input", handler)
|
|
2020
|
+
inputElement.dispatchEvent(new Event("input", {
|
|
2021
|
+
bubbles: true
|
|
2022
|
+
})); // Used by React onChange handlers
|
|
2023
|
+
}
|
|
2024
|
+
function toggleLayout(keyboardLayoutName) {
|
|
2025
|
+
return keyboardLayoutName === KeyboardLayoutName.DEFAULT ? KeyboardLayoutName.SHIFT : KeyboardLayoutName.DEFAULT;
|
|
2026
|
+
}
|
|
2027
|
+
function isTextSelected(inputElement) {
|
|
2028
|
+
if (typeof inputElement.selectionStart == "number") {
|
|
2029
|
+
return inputElement.selectionStart === 0 && inputElement.selectionEnd === inputElement.value.length;
|
|
2030
|
+
} else if (typeof window.getSelection != "undefined") {
|
|
2031
|
+
const selection = window.getSelection();
|
|
2032
|
+
return (selection === null || selection === void 0 ? void 0 : selection.toString()) === inputElement.value;
|
|
2563
2033
|
}
|
|
2564
2034
|
}
|
|
2565
2035
|
|
|
2566
|
-
var
|
|
2567
|
-
|
|
2568
|
-
if (last) last.next = task;
|
|
2569
|
-
if (!head) {
|
|
2570
|
-
head = task;
|
|
2571
|
-
notify$1();
|
|
2572
|
-
} last = task;
|
|
2573
|
-
};
|
|
2574
|
-
|
|
2575
|
-
var newPromiseCapability$2 = {};
|
|
2576
|
-
|
|
2577
|
-
var aCallable$1 = aCallable$5;
|
|
2578
|
-
|
|
2579
|
-
var PromiseCapability = function (C) {
|
|
2580
|
-
var resolve, reject;
|
|
2581
|
-
this.promise = new C(function ($$resolve, $$reject) {
|
|
2582
|
-
if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
|
|
2583
|
-
resolve = $$resolve;
|
|
2584
|
-
reject = $$reject;
|
|
2585
|
-
});
|
|
2586
|
-
this.resolve = aCallable$1(resolve);
|
|
2587
|
-
this.reject = aCallable$1(reject);
|
|
2588
|
-
};
|
|
2036
|
+
var classofRaw = classofRaw$2;
|
|
2037
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
2589
2038
|
|
|
2590
|
-
|
|
2591
|
-
//
|
|
2592
|
-
|
|
2593
|
-
|
|
2039
|
+
var functionUncurryThisClause = function (fn) {
|
|
2040
|
+
// Nashorn bug:
|
|
2041
|
+
// https://github.com/zloirock/core-js/issues/1128
|
|
2042
|
+
// https://github.com/zloirock/core-js/issues/1130
|
|
2043
|
+
if (classofRaw(fn) === 'Function') return uncurryThis$2(fn);
|
|
2594
2044
|
};
|
|
2595
2045
|
|
|
2596
|
-
var
|
|
2597
|
-
var
|
|
2598
|
-
var
|
|
2599
|
-
|
|
2600
|
-
var
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
var resolve = promiseCapability.resolve;
|
|
2605
|
-
resolve(x);
|
|
2606
|
-
return promiseCapability.promise;
|
|
2607
|
-
};
|
|
2046
|
+
var $$3 = _export;
|
|
2047
|
+
var uncurryThis$1 = functionUncurryThisClause;
|
|
2048
|
+
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
2049
|
+
var toLength = toLength$2;
|
|
2050
|
+
var toString$2 = toString$4;
|
|
2051
|
+
var notARegExp = notARegexp;
|
|
2052
|
+
var requireObjectCoercible = requireObjectCoercible$5;
|
|
2053
|
+
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
2608
2054
|
|
|
2609
|
-
var
|
|
2055
|
+
var stringSlice$1 = uncurryThis$1(''.slice);
|
|
2056
|
+
var min = Math.min;
|
|
2610
2057
|
|
|
2611
|
-
var
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
};
|
|
2058
|
+
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');
|
|
2059
|
+
// https://github.com/zloirock/core-js/pull/702
|
|
2060
|
+
var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function () {
|
|
2061
|
+
var descriptor = getOwnPropertyDescriptor$1(String.prototype, 'startsWith');
|
|
2062
|
+
return descriptor && !descriptor.writable;
|
|
2063
|
+
}();
|
|
2617
2064
|
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2065
|
+
// `String.prototype.startsWith` method
|
|
2066
|
+
// https://tc39.es/ecma262/#sec-string.prototype.startswith
|
|
2067
|
+
$$3({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
|
|
2068
|
+
startsWith: function startsWith(searchString /* , position = 0 */) {
|
|
2069
|
+
var that = toString$2(requireObjectCoercible(this));
|
|
2070
|
+
notARegExp(searchString);
|
|
2071
|
+
var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));
|
|
2072
|
+
var search = toString$2(searchString);
|
|
2073
|
+
return stringSlice$1(that, index, index + search.length) === search;
|
|
2623
2074
|
}
|
|
2624
|
-
};
|
|
2075
|
+
});
|
|
2625
2076
|
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
}
|
|
2645
|
-
|
|
2077
|
+
/******************************************************************************
|
|
2078
|
+
Copyright (c) Microsoft Corporation.
|
|
2079
|
+
|
|
2080
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
2081
|
+
purpose with or without fee is hereby granted.
|
|
2082
|
+
|
|
2083
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
2084
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
2085
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
2086
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
2087
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
2088
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
2089
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
2090
|
+
***************************************************************************** */
|
|
2091
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
2092
|
+
|
|
2093
|
+
|
|
2094
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
2095
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
2096
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
2097
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
2098
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
2099
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
2100
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
2101
|
+
});
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2104
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
2105
|
+
var e = new Error(message);
|
|
2106
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
2646
2107
|
};
|
|
2647
2108
|
|
|
2648
|
-
var
|
|
2649
|
-
|
|
2650
|
-
var engineIsBrowser = typeof window == 'object';
|
|
2651
|
-
|
|
2652
|
-
var $$1 = _export;
|
|
2653
|
-
var global$5 = global$G;
|
|
2654
|
-
var getBuiltIn = getBuiltIn$7;
|
|
2655
|
-
var call$3 = functionCall;
|
|
2656
|
-
var NativePromise = nativePromiseConstructor;
|
|
2657
|
-
var redefine$1 = redefine$7.exports;
|
|
2658
|
-
var redefineAll = redefineAll$1;
|
|
2659
|
-
var setPrototypeOf = objectSetPrototypeOf;
|
|
2660
|
-
var setToStringTag = setToStringTag$3;
|
|
2661
|
-
var setSpecies = setSpecies$1;
|
|
2662
|
-
var aCallable = aCallable$5;
|
|
2663
|
-
var isCallable$2 = isCallable$j;
|
|
2664
|
-
var isObject = isObject$8;
|
|
2665
|
-
var anInstance = anInstance$1;
|
|
2666
|
-
var inspectSource = inspectSource$4;
|
|
2667
|
-
var iterate = iterate$1;
|
|
2668
|
-
var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
|
|
2669
|
-
var speciesConstructor = speciesConstructor$1;
|
|
2670
|
-
var task = task$1.set;
|
|
2671
|
-
var microtask = microtask$1;
|
|
2672
|
-
var promiseResolve = promiseResolve$1;
|
|
2673
|
-
var hostReportErrors = hostReportErrors$1;
|
|
2674
|
-
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
2675
|
-
var perform = perform$1;
|
|
2676
|
-
var Queue = queue;
|
|
2677
|
-
var InternalStateModule = internalState;
|
|
2678
|
-
var isForced = isForced_1;
|
|
2679
|
-
var wellKnownSymbol$2 = wellKnownSymbol$i;
|
|
2680
|
-
var IS_BROWSER = engineIsBrowser;
|
|
2681
|
-
var IS_NODE = engineIsNode;
|
|
2682
|
-
var V8_VERSION = engineV8Version;
|
|
2683
|
-
|
|
2684
|
-
var SPECIES$1 = wellKnownSymbol$2('species');
|
|
2685
|
-
var PROMISE = 'Promise';
|
|
2109
|
+
var classof = classofRaw$2;
|
|
2686
2110
|
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
var
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
var TypeError$2 = global$5.TypeError;
|
|
2694
|
-
var document$1 = global$5.document;
|
|
2695
|
-
var process = global$5.process;
|
|
2696
|
-
var newPromiseCapability = newPromiseCapabilityModule.f;
|
|
2697
|
-
var newGenericPromiseCapability = newPromiseCapability;
|
|
2698
|
-
|
|
2699
|
-
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$5.dispatchEvent);
|
|
2700
|
-
var NATIVE_REJECTION_EVENT = isCallable$2(global$5.PromiseRejectionEvent);
|
|
2701
|
-
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
2702
|
-
var REJECTION_HANDLED = 'rejectionhandled';
|
|
2703
|
-
var PENDING = 0;
|
|
2704
|
-
var FULFILLED = 1;
|
|
2705
|
-
var REJECTED = 2;
|
|
2706
|
-
var HANDLED = 1;
|
|
2707
|
-
var UNHANDLED = 2;
|
|
2708
|
-
var SUBCLASSING = false;
|
|
2709
|
-
|
|
2710
|
-
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
2711
|
-
|
|
2712
|
-
var FORCED = isForced(PROMISE, function () {
|
|
2713
|
-
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);
|
|
2714
|
-
var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);
|
|
2715
|
-
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
|
2716
|
-
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
|
|
2717
|
-
// We can't detect it synchronously, so just check versions
|
|
2718
|
-
if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
|
|
2719
|
-
// We can't use @@species feature detection in V8 since it causes
|
|
2720
|
-
// deoptimization and performance degradation
|
|
2721
|
-
// https://github.com/zloirock/core-js/issues/679
|
|
2722
|
-
if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false;
|
|
2723
|
-
// Detect correctness of subclassing with @@species support
|
|
2724
|
-
var promise = new PromiseConstructor(function (resolve) { resolve(1); });
|
|
2725
|
-
var FakePromise = function (exec) {
|
|
2726
|
-
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
2727
|
-
};
|
|
2728
|
-
var constructor = promise.constructor = {};
|
|
2729
|
-
constructor[SPECIES$1] = FakePromise;
|
|
2730
|
-
SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
|
|
2731
|
-
if (!SUBCLASSING) return true;
|
|
2732
|
-
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
2733
|
-
return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT;
|
|
2734
|
-
});
|
|
2111
|
+
// `IsArray` abstract operation
|
|
2112
|
+
// https://tc39.es/ecma262/#sec-isarray
|
|
2113
|
+
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
2114
|
+
var isArray$1 = Array.isArray || function isArray(argument) {
|
|
2115
|
+
return classof(argument) === 'Array';
|
|
2116
|
+
};
|
|
2735
2117
|
|
|
2736
|
-
var
|
|
2737
|
-
|
|
2738
|
-
});
|
|
2118
|
+
var DESCRIPTORS = descriptors;
|
|
2119
|
+
var isArray = isArray$1;
|
|
2739
2120
|
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
return isObject(it) && isCallable$2(then = it.then) ? then : false;
|
|
2744
|
-
};
|
|
2121
|
+
var $TypeError$1 = TypeError;
|
|
2122
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2123
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
2745
2124
|
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
var resolve = reaction.resolve;
|
|
2751
|
-
var reject = reaction.reject;
|
|
2752
|
-
var domain = reaction.domain;
|
|
2753
|
-
var result, then, exited;
|
|
2125
|
+
// Safari < 13 does not throw an error in this case
|
|
2126
|
+
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
|
|
2127
|
+
// makes no sense without proper strict mode support
|
|
2128
|
+
if (this !== undefined) return true;
|
|
2754
2129
|
try {
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
if (state.rejection === UNHANDLED) onHandleUnhandled(state);
|
|
2758
|
-
state.rejection = HANDLED;
|
|
2759
|
-
}
|
|
2760
|
-
if (handler === true) result = value;
|
|
2761
|
-
else {
|
|
2762
|
-
if (domain) domain.enter();
|
|
2763
|
-
result = handler(value); // can throw
|
|
2764
|
-
if (domain) {
|
|
2765
|
-
domain.exit();
|
|
2766
|
-
exited = true;
|
|
2767
|
-
}
|
|
2768
|
-
}
|
|
2769
|
-
if (result === reaction.promise) {
|
|
2770
|
-
reject(TypeError$2('Promise-chain cycle'));
|
|
2771
|
-
} else if (then = isThenable(result)) {
|
|
2772
|
-
call$3(then, result, resolve, reject);
|
|
2773
|
-
} else resolve(result);
|
|
2774
|
-
} else reject(value);
|
|
2130
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2131
|
+
Object.defineProperty([], 'length', { writable: false }).length = 1;
|
|
2775
2132
|
} catch (error) {
|
|
2776
|
-
|
|
2777
|
-
reject(error);
|
|
2133
|
+
return error instanceof TypeError;
|
|
2778
2134
|
}
|
|
2779
|
-
};
|
|
2780
|
-
|
|
2781
|
-
var notify = function (state, isReject) {
|
|
2782
|
-
if (state.notified) return;
|
|
2783
|
-
state.notified = true;
|
|
2784
|
-
microtask(function () {
|
|
2785
|
-
var reactions = state.reactions;
|
|
2786
|
-
var reaction;
|
|
2787
|
-
while (reaction = reactions.get()) {
|
|
2788
|
-
callReaction(reaction, state);
|
|
2789
|
-
}
|
|
2790
|
-
state.notified = false;
|
|
2791
|
-
if (isReject && !state.rejection) onUnhandled(state);
|
|
2792
|
-
});
|
|
2793
|
-
};
|
|
2135
|
+
}();
|
|
2794
2136
|
|
|
2795
|
-
var
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
event.initEvent(name, false, true);
|
|
2802
|
-
global$5.dispatchEvent(event);
|
|
2803
|
-
} else event = { promise: promise, reason: reason };
|
|
2804
|
-
if (!NATIVE_REJECTION_EVENT && (handler = global$5['on' + name])) handler(event);
|
|
2805
|
-
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
2806
|
-
};
|
|
2807
|
-
|
|
2808
|
-
var onUnhandled = function (state) {
|
|
2809
|
-
call$3(task, global$5, function () {
|
|
2810
|
-
var promise = state.facade;
|
|
2811
|
-
var value = state.value;
|
|
2812
|
-
var IS_UNHANDLED = isUnhandled(state);
|
|
2813
|
-
var result;
|
|
2814
|
-
if (IS_UNHANDLED) {
|
|
2815
|
-
result = perform(function () {
|
|
2816
|
-
if (IS_NODE) {
|
|
2817
|
-
process.emit('unhandledRejection', value, promise);
|
|
2818
|
-
} else dispatchEvent(UNHANDLED_REJECTION, promise, value);
|
|
2819
|
-
});
|
|
2820
|
-
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
|
2821
|
-
state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
|
|
2822
|
-
if (result.error) throw result.value;
|
|
2823
|
-
}
|
|
2824
|
-
});
|
|
2137
|
+
var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
|
2138
|
+
if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
|
|
2139
|
+
throw new $TypeError$1('Cannot set read only .length');
|
|
2140
|
+
} return O.length = length;
|
|
2141
|
+
} : function (O, length) {
|
|
2142
|
+
return O.length = length;
|
|
2825
2143
|
};
|
|
2826
2144
|
|
|
2827
|
-
var
|
|
2828
|
-
|
|
2829
|
-
};
|
|
2145
|
+
var $TypeError = TypeError;
|
|
2146
|
+
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
2830
2147
|
|
|
2831
|
-
var
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
if (IS_NODE) {
|
|
2835
|
-
process.emit('rejectionHandled', promise);
|
|
2836
|
-
} else dispatchEvent(REJECTION_HANDLED, promise, state.value);
|
|
2837
|
-
});
|
|
2148
|
+
var doesNotExceedSafeInteger$1 = function (it) {
|
|
2149
|
+
if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
|
|
2150
|
+
return it;
|
|
2838
2151
|
};
|
|
2839
2152
|
|
|
2840
|
-
var
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2153
|
+
var $$2 = _export;
|
|
2154
|
+
var toObject = toObject$3;
|
|
2155
|
+
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
2156
|
+
var setArrayLength = arraySetLength;
|
|
2157
|
+
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
2158
|
+
var fails$3 = fails$g;
|
|
2845
2159
|
|
|
2846
|
-
var
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
if (unwrap) state = unwrap;
|
|
2850
|
-
state.value = value;
|
|
2851
|
-
state.state = REJECTED;
|
|
2852
|
-
notify(state, true);
|
|
2853
|
-
};
|
|
2160
|
+
var INCORRECT_TO_LENGTH = fails$3(function () {
|
|
2161
|
+
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
|
|
2162
|
+
});
|
|
2854
2163
|
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
if (unwrap) state = unwrap;
|
|
2164
|
+
// V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
|
|
2165
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=12681
|
|
2166
|
+
var properErrorOnNonWritableLength = function () {
|
|
2859
2167
|
try {
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
if (then) {
|
|
2863
|
-
microtask(function () {
|
|
2864
|
-
var wrapper = { done: false };
|
|
2865
|
-
try {
|
|
2866
|
-
call$3(then, value,
|
|
2867
|
-
bind(internalResolve, wrapper, state),
|
|
2868
|
-
bind(internalReject, wrapper, state)
|
|
2869
|
-
);
|
|
2870
|
-
} catch (error) {
|
|
2871
|
-
internalReject(wrapper, error, state);
|
|
2872
|
-
}
|
|
2873
|
-
});
|
|
2874
|
-
} else {
|
|
2875
|
-
state.value = value;
|
|
2876
|
-
state.state = FULFILLED;
|
|
2877
|
-
notify(state, false);
|
|
2878
|
-
}
|
|
2168
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2169
|
+
Object.defineProperty([], 'length', { writable: false }).push();
|
|
2879
2170
|
} catch (error) {
|
|
2880
|
-
|
|
2171
|
+
return error instanceof TypeError;
|
|
2881
2172
|
}
|
|
2882
2173
|
};
|
|
2883
2174
|
|
|
2884
|
-
|
|
2885
|
-
if (FORCED) {
|
|
2886
|
-
// 25.4.3.1 Promise(executor)
|
|
2887
|
-
PromiseConstructor = function Promise(executor) {
|
|
2888
|
-
anInstance(this, PromisePrototype);
|
|
2889
|
-
aCallable(executor);
|
|
2890
|
-
call$3(Internal, this);
|
|
2891
|
-
var state = getInternalState$1(this);
|
|
2892
|
-
try {
|
|
2893
|
-
executor(bind(internalResolve, state), bind(internalReject, state));
|
|
2894
|
-
} catch (error) {
|
|
2895
|
-
internalReject(state, error);
|
|
2896
|
-
}
|
|
2897
|
-
};
|
|
2898
|
-
PromisePrototype = PromiseConstructor.prototype;
|
|
2899
|
-
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
2900
|
-
Internal = function Promise(executor) {
|
|
2901
|
-
setInternalState(this, {
|
|
2902
|
-
type: PROMISE,
|
|
2903
|
-
done: false,
|
|
2904
|
-
notified: false,
|
|
2905
|
-
parent: false,
|
|
2906
|
-
reactions: new Queue(),
|
|
2907
|
-
rejection: false,
|
|
2908
|
-
state: PENDING,
|
|
2909
|
-
value: undefined
|
|
2910
|
-
});
|
|
2911
|
-
};
|
|
2912
|
-
Internal.prototype = redefineAll(PromisePrototype, {
|
|
2913
|
-
// `Promise.prototype.then` method
|
|
2914
|
-
// https://tc39.es/ecma262/#sec-promise.prototype.then
|
|
2915
|
-
// eslint-disable-next-line unicorn/no-thenable -- safe
|
|
2916
|
-
then: function then(onFulfilled, onRejected) {
|
|
2917
|
-
var state = getInternalPromiseState(this);
|
|
2918
|
-
var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
|
|
2919
|
-
state.parent = true;
|
|
2920
|
-
reaction.ok = isCallable$2(onFulfilled) ? onFulfilled : true;
|
|
2921
|
-
reaction.fail = isCallable$2(onRejected) && onRejected;
|
|
2922
|
-
reaction.domain = IS_NODE ? process.domain : undefined;
|
|
2923
|
-
if (state.state == PENDING) state.reactions.add(reaction);
|
|
2924
|
-
else microtask(function () {
|
|
2925
|
-
callReaction(reaction, state);
|
|
2926
|
-
});
|
|
2927
|
-
return reaction.promise;
|
|
2928
|
-
},
|
|
2929
|
-
// `Promise.prototype.catch` method
|
|
2930
|
-
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
2931
|
-
'catch': function (onRejected) {
|
|
2932
|
-
return this.then(undefined, onRejected);
|
|
2933
|
-
}
|
|
2934
|
-
});
|
|
2935
|
-
OwnPromiseCapability = function () {
|
|
2936
|
-
var promise = new Internal();
|
|
2937
|
-
var state = getInternalState$1(promise);
|
|
2938
|
-
this.promise = promise;
|
|
2939
|
-
this.resolve = bind(internalResolve, state);
|
|
2940
|
-
this.reject = bind(internalReject, state);
|
|
2941
|
-
};
|
|
2942
|
-
newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
|
|
2943
|
-
return C === PromiseConstructor || C === PromiseWrapper
|
|
2944
|
-
? new OwnPromiseCapability(C)
|
|
2945
|
-
: newGenericPromiseCapability(C);
|
|
2946
|
-
};
|
|
2947
|
-
|
|
2948
|
-
if (isCallable$2(NativePromise) && NativePromisePrototype !== Object.prototype) {
|
|
2949
|
-
nativeThen = NativePromisePrototype.then;
|
|
2950
|
-
|
|
2951
|
-
if (!SUBCLASSING) {
|
|
2952
|
-
// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
|
|
2953
|
-
redefine$1(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
|
|
2954
|
-
var that = this;
|
|
2955
|
-
return new PromiseConstructor(function (resolve, reject) {
|
|
2956
|
-
call$3(nativeThen, that, resolve, reject);
|
|
2957
|
-
}).then(onFulfilled, onRejected);
|
|
2958
|
-
// https://github.com/zloirock/core-js/issues/640
|
|
2959
|
-
}, { unsafe: true });
|
|
2960
|
-
|
|
2961
|
-
// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
|
|
2962
|
-
redefine$1(NativePromisePrototype, 'catch', PromisePrototype['catch'], { unsafe: true });
|
|
2963
|
-
}
|
|
2964
|
-
|
|
2965
|
-
// make `.constructor === Promise` work for native promise-based APIs
|
|
2966
|
-
try {
|
|
2967
|
-
delete NativePromisePrototype.constructor;
|
|
2968
|
-
} catch (error) { /* empty */ }
|
|
2175
|
+
var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
|
|
2969
2176
|
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2177
|
+
// `Array.prototype.push` method
|
|
2178
|
+
// https://tc39.es/ecma262/#sec-array.prototype.push
|
|
2179
|
+
$$2({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
|
2180
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
2181
|
+
push: function push(item) {
|
|
2182
|
+
var O = toObject(this);
|
|
2183
|
+
var len = lengthOfArrayLike(O);
|
|
2184
|
+
var argCount = arguments.length;
|
|
2185
|
+
doesNotExceedSafeInteger(len + argCount);
|
|
2186
|
+
for (var i = 0; i < argCount; i++) {
|
|
2187
|
+
O[len] = arguments[i];
|
|
2188
|
+
len++;
|
|
2973
2189
|
}
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
$$1({ global: true, wrap: true, forced: FORCED }, {
|
|
2978
|
-
Promise: PromiseConstructor
|
|
2979
|
-
});
|
|
2980
|
-
|
|
2981
|
-
setToStringTag(PromiseConstructor, PROMISE, false);
|
|
2982
|
-
setSpecies(PROMISE);
|
|
2983
|
-
|
|
2984
|
-
PromiseWrapper = getBuiltIn(PROMISE);
|
|
2985
|
-
|
|
2986
|
-
// statics
|
|
2987
|
-
$$1({ target: PROMISE, stat: true, forced: FORCED }, {
|
|
2988
|
-
// `Promise.reject` method
|
|
2989
|
-
// https://tc39.es/ecma262/#sec-promise.reject
|
|
2990
|
-
reject: function reject(r) {
|
|
2991
|
-
var capability = newPromiseCapability(this);
|
|
2992
|
-
call$3(capability.reject, undefined, r);
|
|
2993
|
-
return capability.promise;
|
|
2994
|
-
}
|
|
2995
|
-
});
|
|
2996
|
-
|
|
2997
|
-
$$1({ target: PROMISE, stat: true, forced: FORCED }, {
|
|
2998
|
-
// `Promise.resolve` method
|
|
2999
|
-
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
3000
|
-
resolve: function resolve(x) {
|
|
3001
|
-
return promiseResolve(this, x);
|
|
2190
|
+
setArrayLength(O, len);
|
|
2191
|
+
return len;
|
|
3002
2192
|
}
|
|
3003
2193
|
});
|
|
3004
2194
|
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
// https://tc39.es/ecma262/#sec-promise.all
|
|
3008
|
-
all: function all(iterable) {
|
|
3009
|
-
var C = this;
|
|
3010
|
-
var capability = newPromiseCapability(C);
|
|
3011
|
-
var resolve = capability.resolve;
|
|
3012
|
-
var reject = capability.reject;
|
|
3013
|
-
var result = perform(function () {
|
|
3014
|
-
var $promiseResolve = aCallable(C.resolve);
|
|
3015
|
-
var values = [];
|
|
3016
|
-
var counter = 0;
|
|
3017
|
-
var remaining = 1;
|
|
3018
|
-
iterate(iterable, function (promise) {
|
|
3019
|
-
var index = counter++;
|
|
3020
|
-
var alreadyCalled = false;
|
|
3021
|
-
remaining++;
|
|
3022
|
-
call$3($promiseResolve, C, promise).then(function (value) {
|
|
3023
|
-
if (alreadyCalled) return;
|
|
3024
|
-
alreadyCalled = true;
|
|
3025
|
-
values[index] = value;
|
|
3026
|
-
--remaining || resolve(values);
|
|
3027
|
-
}, reject);
|
|
3028
|
-
});
|
|
3029
|
-
--remaining || resolve(values);
|
|
3030
|
-
});
|
|
3031
|
-
if (result.error) reject(result.value);
|
|
3032
|
-
return capability.promise;
|
|
3033
|
-
},
|
|
3034
|
-
// `Promise.race` method
|
|
3035
|
-
// https://tc39.es/ecma262/#sec-promise.race
|
|
3036
|
-
race: function race(iterable) {
|
|
3037
|
-
var C = this;
|
|
3038
|
-
var capability = newPromiseCapability(C);
|
|
3039
|
-
var reject = capability.reject;
|
|
3040
|
-
var result = perform(function () {
|
|
3041
|
-
var $promiseResolve = aCallable(C.resolve);
|
|
3042
|
-
iterate(iterable, function (promise) {
|
|
3043
|
-
call$3($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
3044
|
-
});
|
|
3045
|
-
});
|
|
3046
|
-
if (result.error) reject(result.value);
|
|
3047
|
-
return capability.promise;
|
|
3048
|
-
}
|
|
3049
|
-
});
|
|
3050
|
-
|
|
3051
|
-
var fails$4 = fails$i;
|
|
3052
|
-
var global$4 = global$G;
|
|
2195
|
+
var fails$2 = fails$g;
|
|
2196
|
+
var globalThis$3 = globalThis_1;
|
|
3053
2197
|
|
|
3054
2198
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
3055
|
-
var $RegExp$2 =
|
|
2199
|
+
var $RegExp$2 = globalThis$3.RegExp;
|
|
3056
2200
|
|
|
3057
|
-
var UNSUPPORTED_Y$1 = fails$
|
|
2201
|
+
var UNSUPPORTED_Y$1 = fails$2(function () {
|
|
3058
2202
|
var re = $RegExp$2('a', 'y');
|
|
3059
2203
|
re.lastIndex = 2;
|
|
3060
|
-
return re.exec('abcd')
|
|
2204
|
+
return re.exec('abcd') !== null;
|
|
3061
2205
|
});
|
|
3062
2206
|
|
|
3063
2207
|
// UC Browser bug
|
|
3064
2208
|
// https://github.com/zloirock/core-js/issues/1008
|
|
3065
|
-
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$
|
|
2209
|
+
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$2(function () {
|
|
3066
2210
|
return !$RegExp$2('a', 'y').sticky;
|
|
3067
2211
|
});
|
|
3068
2212
|
|
|
3069
|
-
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$
|
|
2213
|
+
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$2(function () {
|
|
3070
2214
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
3071
2215
|
var re = $RegExp$2('^r', 'gy');
|
|
3072
2216
|
re.lastIndex = 2;
|
|
3073
|
-
return re.exec('str')
|
|
2217
|
+
return re.exec('str') !== null;
|
|
3074
2218
|
});
|
|
3075
2219
|
|
|
3076
2220
|
var regexpStickyHelpers = {
|
|
@@ -3079,24 +2223,24 @@ var regexpStickyHelpers = {
|
|
|
3079
2223
|
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
3080
2224
|
};
|
|
3081
2225
|
|
|
3082
|
-
var fails$
|
|
3083
|
-
var
|
|
2226
|
+
var fails$1 = fails$g;
|
|
2227
|
+
var globalThis$2 = globalThis_1;
|
|
3084
2228
|
|
|
3085
2229
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
3086
|
-
var $RegExp$1 =
|
|
2230
|
+
var $RegExp$1 = globalThis$2.RegExp;
|
|
3087
2231
|
|
|
3088
|
-
var regexpUnsupportedDotAll = fails$
|
|
2232
|
+
var regexpUnsupportedDotAll = fails$1(function () {
|
|
3089
2233
|
var re = $RegExp$1('.', 's');
|
|
3090
|
-
return !(re.dotAll && re.
|
|
2234
|
+
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
3091
2235
|
});
|
|
3092
2236
|
|
|
3093
|
-
var fails
|
|
3094
|
-
var
|
|
2237
|
+
var fails = fails$g;
|
|
2238
|
+
var globalThis$1 = globalThis_1;
|
|
3095
2239
|
|
|
3096
2240
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
3097
|
-
var $RegExp =
|
|
2241
|
+
var $RegExp = globalThis$1.RegExp;
|
|
3098
2242
|
|
|
3099
|
-
var regexpUnsupportedNcg = fails
|
|
2243
|
+
var regexpUnsupportedNcg = fails(function () {
|
|
3100
2244
|
var re = $RegExp('(?<a>b)', 'g');
|
|
3101
2245
|
return re.exec('b').groups.a !== 'b' ||
|
|
3102
2246
|
'b'.replace(re, '$<a>c') !== 'bc';
|
|
@@ -3104,12 +2248,12 @@ var regexpUnsupportedNcg = fails$2(function () {
|
|
|
3104
2248
|
|
|
3105
2249
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
3106
2250
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
3107
|
-
var call$
|
|
3108
|
-
var uncurryThis
|
|
3109
|
-
var toString$
|
|
2251
|
+
var call$1 = functionCall;
|
|
2252
|
+
var uncurryThis = functionUncurryThis;
|
|
2253
|
+
var toString$1 = toString$4;
|
|
3110
2254
|
var regexpFlags = regexpFlags$1;
|
|
3111
2255
|
var stickyHelpers = regexpStickyHelpers;
|
|
3112
|
-
var shared = shared$4
|
|
2256
|
+
var shared = shared$4;
|
|
3113
2257
|
var create = objectCreate;
|
|
3114
2258
|
var getInternalState = internalState.get;
|
|
3115
2259
|
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
@@ -3118,16 +2262,16 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
|
3118
2262
|
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
3119
2263
|
var nativeExec = RegExp.prototype.exec;
|
|
3120
2264
|
var patchedExec = nativeExec;
|
|
3121
|
-
var charAt
|
|
3122
|
-
var indexOf = uncurryThis
|
|
3123
|
-
var replace
|
|
3124
|
-
var stringSlice
|
|
2265
|
+
var charAt = uncurryThis(''.charAt);
|
|
2266
|
+
var indexOf = uncurryThis(''.indexOf);
|
|
2267
|
+
var replace = uncurryThis(''.replace);
|
|
2268
|
+
var stringSlice = uncurryThis(''.slice);
|
|
3125
2269
|
|
|
3126
2270
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
3127
2271
|
var re1 = /a/;
|
|
3128
2272
|
var re2 = /b*/g;
|
|
3129
|
-
call$
|
|
3130
|
-
call$
|
|
2273
|
+
call$1(nativeExec, re1, 'a');
|
|
2274
|
+
call$1(nativeExec, re2, 'a');
|
|
3131
2275
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
3132
2276
|
})();
|
|
3133
2277
|
|
|
@@ -3142,33 +2286,33 @@ if (PATCH) {
|
|
|
3142
2286
|
patchedExec = function exec(string) {
|
|
3143
2287
|
var re = this;
|
|
3144
2288
|
var state = getInternalState(re);
|
|
3145
|
-
var str = toString$
|
|
2289
|
+
var str = toString$1(string);
|
|
3146
2290
|
var raw = state.raw;
|
|
3147
2291
|
var result, reCopy, lastIndex, match, i, object, group;
|
|
3148
2292
|
|
|
3149
2293
|
if (raw) {
|
|
3150
2294
|
raw.lastIndex = re.lastIndex;
|
|
3151
|
-
result = call$
|
|
2295
|
+
result = call$1(patchedExec, raw, str);
|
|
3152
2296
|
re.lastIndex = raw.lastIndex;
|
|
3153
2297
|
return result;
|
|
3154
2298
|
}
|
|
3155
2299
|
|
|
3156
2300
|
var groups = state.groups;
|
|
3157
2301
|
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
3158
|
-
var flags = call$
|
|
2302
|
+
var flags = call$1(regexpFlags, re);
|
|
3159
2303
|
var source = re.source;
|
|
3160
2304
|
var charsAdded = 0;
|
|
3161
2305
|
var strCopy = str;
|
|
3162
2306
|
|
|
3163
2307
|
if (sticky) {
|
|
3164
|
-
flags = replace
|
|
2308
|
+
flags = replace(flags, 'y', '');
|
|
3165
2309
|
if (indexOf(flags, 'g') === -1) {
|
|
3166
2310
|
flags += 'g';
|
|
3167
2311
|
}
|
|
3168
2312
|
|
|
3169
|
-
strCopy = stringSlice
|
|
2313
|
+
strCopy = stringSlice(str, re.lastIndex);
|
|
3170
2314
|
// Support anchored sticky behavior.
|
|
3171
|
-
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt
|
|
2315
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\n')) {
|
|
3172
2316
|
source = '(?: ' + source + ')';
|
|
3173
2317
|
strCopy = ' ' + strCopy;
|
|
3174
2318
|
charsAdded++;
|
|
@@ -3183,12 +2327,12 @@ if (PATCH) {
|
|
|
3183
2327
|
}
|
|
3184
2328
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
3185
2329
|
|
|
3186
|
-
match = call$
|
|
2330
|
+
match = call$1(nativeExec, sticky ? reCopy : re, strCopy);
|
|
3187
2331
|
|
|
3188
2332
|
if (sticky) {
|
|
3189
2333
|
if (match) {
|
|
3190
|
-
match.input = stringSlice
|
|
3191
|
-
match[0] = stringSlice
|
|
2334
|
+
match.input = stringSlice(match.input, charsAdded);
|
|
2335
|
+
match[0] = stringSlice(match[0], charsAdded);
|
|
3192
2336
|
match.index = re.lastIndex;
|
|
3193
2337
|
re.lastIndex += match[0].length;
|
|
3194
2338
|
} else re.lastIndex = 0;
|
|
@@ -3197,8 +2341,8 @@ if (PATCH) {
|
|
|
3197
2341
|
}
|
|
3198
2342
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
3199
2343
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
3200
|
-
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
|
3201
|
-
call$
|
|
2344
|
+
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
2345
|
+
call$1(nativeReplace, match[0], reCopy, function () {
|
|
3202
2346
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
3203
2347
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
3204
2348
|
}
|
|
@@ -3217,363 +2361,51 @@ if (PATCH) {
|
|
|
3217
2361
|
};
|
|
3218
2362
|
}
|
|
3219
2363
|
|
|
3220
|
-
var regexpExec
|
|
2364
|
+
var regexpExec = patchedExec;
|
|
3221
2365
|
|
|
3222
|
-
var
|
|
3223
|
-
var exec = regexpExec
|
|
2366
|
+
var $$1 = _export;
|
|
2367
|
+
var exec = regexpExec;
|
|
3224
2368
|
|
|
3225
2369
|
// `RegExp.prototype.exec` method
|
|
3226
2370
|
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
3227
|
-
|
|
2371
|
+
$$1({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
3228
2372
|
exec: exec
|
|
3229
2373
|
});
|
|
3230
2374
|
|
|
3231
2375
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
3232
2376
|
|
|
3233
|
-
var
|
|
3234
|
-
var redefine = redefine$7.exports;
|
|
3235
|
-
var regexpExec$1 = regexpExec$2;
|
|
3236
|
-
var fails$1 = fails$i;
|
|
3237
|
-
var wellKnownSymbol$1 = wellKnownSymbol$i;
|
|
3238
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$6;
|
|
3239
|
-
|
|
3240
|
-
var SPECIES = wellKnownSymbol$1('species');
|
|
3241
|
-
var RegExpPrototype = RegExp.prototype;
|
|
3242
|
-
|
|
3243
|
-
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
3244
|
-
var SYMBOL = wellKnownSymbol$1(KEY);
|
|
3245
|
-
|
|
3246
|
-
var DELEGATES_TO_SYMBOL = !fails$1(function () {
|
|
3247
|
-
// String methods call symbol-named RegEp methods
|
|
3248
|
-
var O = {};
|
|
3249
|
-
O[SYMBOL] = function () { return 7; };
|
|
3250
|
-
return ''[KEY](O) != 7;
|
|
3251
|
-
});
|
|
3252
|
-
|
|
3253
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
|
|
3254
|
-
// Symbol-named RegExp methods call .exec
|
|
3255
|
-
var execCalled = false;
|
|
3256
|
-
var re = /a/;
|
|
3257
|
-
|
|
3258
|
-
if (KEY === 'split') {
|
|
3259
|
-
// We can't use real regex here since it causes deoptimization
|
|
3260
|
-
// and serious performance degradation in V8
|
|
3261
|
-
// https://github.com/zloirock/core-js/issues/306
|
|
3262
|
-
re = {};
|
|
3263
|
-
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
3264
|
-
// a new one. We need to return the patched regex when creating the new one.
|
|
3265
|
-
re.constructor = {};
|
|
3266
|
-
re.constructor[SPECIES] = function () { return re; };
|
|
3267
|
-
re.flags = '';
|
|
3268
|
-
re[SYMBOL] = /./[SYMBOL];
|
|
3269
|
-
}
|
|
3270
|
-
|
|
3271
|
-
re.exec = function () { execCalled = true; return null; };
|
|
3272
|
-
|
|
3273
|
-
re[SYMBOL]('');
|
|
3274
|
-
return !execCalled;
|
|
3275
|
-
});
|
|
3276
|
-
|
|
3277
|
-
if (
|
|
3278
|
-
!DELEGATES_TO_SYMBOL ||
|
|
3279
|
-
!DELEGATES_TO_EXEC ||
|
|
3280
|
-
FORCED
|
|
3281
|
-
) {
|
|
3282
|
-
var uncurriedNativeRegExpMethod = uncurryThis$3(/./[SYMBOL]);
|
|
3283
|
-
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
3284
|
-
var uncurriedNativeMethod = uncurryThis$3(nativeMethod);
|
|
3285
|
-
var $exec = regexp.exec;
|
|
3286
|
-
if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
|
|
3287
|
-
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
3288
|
-
// The native String method already delegates to @@method (this
|
|
3289
|
-
// polyfilled function), leasing to infinite recursion.
|
|
3290
|
-
// We avoid it by directly calling the native @@method method.
|
|
3291
|
-
return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
|
|
3292
|
-
}
|
|
3293
|
-
return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
|
|
3294
|
-
}
|
|
3295
|
-
return { done: false };
|
|
3296
|
-
});
|
|
3297
|
-
|
|
3298
|
-
redefine(String.prototype, KEY, methods[0]);
|
|
3299
|
-
redefine(RegExpPrototype, SYMBOL, methods[1]);
|
|
3300
|
-
}
|
|
3301
|
-
|
|
3302
|
-
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
3303
|
-
};
|
|
3304
|
-
|
|
3305
|
-
var uncurryThis$2 = functionUncurryThis;
|
|
3306
|
-
var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
|
|
3307
|
-
var toString$1 = toString$5;
|
|
3308
|
-
var requireObjectCoercible$1 = requireObjectCoercible$6;
|
|
3309
|
-
|
|
3310
|
-
var charAt$2 = uncurryThis$2(''.charAt);
|
|
3311
|
-
var charCodeAt = uncurryThis$2(''.charCodeAt);
|
|
3312
|
-
var stringSlice$2 = uncurryThis$2(''.slice);
|
|
3313
|
-
|
|
3314
|
-
var createMethod = function (CONVERT_TO_STRING) {
|
|
3315
|
-
return function ($this, pos) {
|
|
3316
|
-
var S = toString$1(requireObjectCoercible$1($this));
|
|
3317
|
-
var position = toIntegerOrInfinity$1(pos);
|
|
3318
|
-
var size = S.length;
|
|
3319
|
-
var first, second;
|
|
3320
|
-
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
3321
|
-
first = charCodeAt(S, position);
|
|
3322
|
-
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
3323
|
-
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
3324
|
-
? CONVERT_TO_STRING
|
|
3325
|
-
? charAt$2(S, position)
|
|
3326
|
-
: first
|
|
3327
|
-
: CONVERT_TO_STRING
|
|
3328
|
-
? stringSlice$2(S, position, position + 2)
|
|
3329
|
-
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
3330
|
-
};
|
|
3331
|
-
};
|
|
3332
|
-
|
|
3333
|
-
var stringMultibyte = {
|
|
3334
|
-
// `String.prototype.codePointAt` method
|
|
3335
|
-
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
3336
|
-
codeAt: createMethod(false),
|
|
3337
|
-
// `String.prototype.at` method
|
|
3338
|
-
// https://github.com/mathiasbynens/String.prototype.at
|
|
3339
|
-
charAt: createMethod(true)
|
|
3340
|
-
};
|
|
3341
|
-
|
|
3342
|
-
var charAt$1 = stringMultibyte.charAt;
|
|
3343
|
-
|
|
3344
|
-
// `AdvanceStringIndex` abstract operation
|
|
3345
|
-
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
3346
|
-
var advanceStringIndex$1 = function (S, index, unicode) {
|
|
3347
|
-
return index + (unicode ? charAt$1(S, index).length : 1);
|
|
3348
|
-
};
|
|
3349
|
-
|
|
3350
|
-
var uncurryThis$1 = functionUncurryThis;
|
|
3351
|
-
var toObject = toObject$4;
|
|
3352
|
-
|
|
3353
|
-
var floor = Math.floor;
|
|
3354
|
-
var charAt = uncurryThis$1(''.charAt);
|
|
3355
|
-
var replace = uncurryThis$1(''.replace);
|
|
3356
|
-
var stringSlice$1 = uncurryThis$1(''.slice);
|
|
3357
|
-
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
3358
|
-
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
3359
|
-
|
|
3360
|
-
// `GetSubstitution` abstract operation
|
|
3361
|
-
// https://tc39.es/ecma262/#sec-getsubstitution
|
|
3362
|
-
var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
|
|
3363
|
-
var tailPos = position + matched.length;
|
|
3364
|
-
var m = captures.length;
|
|
3365
|
-
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
3366
|
-
if (namedCaptures !== undefined) {
|
|
3367
|
-
namedCaptures = toObject(namedCaptures);
|
|
3368
|
-
symbols = SUBSTITUTION_SYMBOLS;
|
|
3369
|
-
}
|
|
3370
|
-
return replace(replacement, symbols, function (match, ch) {
|
|
3371
|
-
var capture;
|
|
3372
|
-
switch (charAt(ch, 0)) {
|
|
3373
|
-
case '$': return '$';
|
|
3374
|
-
case '&': return matched;
|
|
3375
|
-
case '`': return stringSlice$1(str, 0, position);
|
|
3376
|
-
case "'": return stringSlice$1(str, tailPos);
|
|
3377
|
-
case '<':
|
|
3378
|
-
capture = namedCaptures[stringSlice$1(ch, 1, -1)];
|
|
3379
|
-
break;
|
|
3380
|
-
default: // \d\d?
|
|
3381
|
-
var n = +ch;
|
|
3382
|
-
if (n === 0) return match;
|
|
3383
|
-
if (n > m) {
|
|
3384
|
-
var f = floor(n / 10);
|
|
3385
|
-
if (f === 0) return match;
|
|
3386
|
-
if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
|
|
3387
|
-
return match;
|
|
3388
|
-
}
|
|
3389
|
-
capture = captures[n - 1];
|
|
3390
|
-
}
|
|
3391
|
-
return capture === undefined ? '' : capture;
|
|
3392
|
-
});
|
|
3393
|
-
};
|
|
3394
|
-
|
|
3395
|
-
var global$1 = global$G;
|
|
3396
|
-
var call$1 = functionCall;
|
|
3397
|
-
var anObject$1 = anObject$e;
|
|
3398
|
-
var isCallable$1 = isCallable$j;
|
|
3399
|
-
var classof = classofRaw$1;
|
|
3400
|
-
var regexpExec = regexpExec$2;
|
|
3401
|
-
|
|
3402
|
-
var TypeError$1 = global$1.TypeError;
|
|
3403
|
-
|
|
3404
|
-
// `RegExpExec` abstract operation
|
|
3405
|
-
// https://tc39.es/ecma262/#sec-regexpexec
|
|
3406
|
-
var regexpExecAbstract = function (R, S) {
|
|
3407
|
-
var exec = R.exec;
|
|
3408
|
-
if (isCallable$1(exec)) {
|
|
3409
|
-
var result = call$1(exec, R, S);
|
|
3410
|
-
if (result !== null) anObject$1(result);
|
|
3411
|
-
return result;
|
|
3412
|
-
}
|
|
3413
|
-
if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
|
|
3414
|
-
throw TypeError$1('RegExp#exec called on incompatible receiver');
|
|
3415
|
-
};
|
|
3416
|
-
|
|
3417
|
-
var apply = functionApply;
|
|
2377
|
+
var $ = _export;
|
|
3418
2378
|
var call = functionCall;
|
|
3419
|
-
var
|
|
3420
|
-
var
|
|
3421
|
-
var
|
|
3422
|
-
var anObject = anObject$e;
|
|
3423
|
-
var isCallable = isCallable$j;
|
|
3424
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$4;
|
|
3425
|
-
var toLength = toLength$3;
|
|
3426
|
-
var toString = toString$5;
|
|
3427
|
-
var requireObjectCoercible = requireObjectCoercible$6;
|
|
3428
|
-
var advanceStringIndex = advanceStringIndex$1;
|
|
3429
|
-
var getMethod = getMethod$4;
|
|
3430
|
-
var getSubstitution = getSubstitution$1;
|
|
3431
|
-
var regExpExec = regexpExecAbstract;
|
|
3432
|
-
var wellKnownSymbol = wellKnownSymbol$i;
|
|
3433
|
-
|
|
3434
|
-
var REPLACE = wellKnownSymbol('replace');
|
|
3435
|
-
var max = Math.max;
|
|
3436
|
-
var min = Math.min;
|
|
3437
|
-
var concat = uncurryThis([].concat);
|
|
3438
|
-
var push = uncurryThis([].push);
|
|
3439
|
-
var stringIndexOf = uncurryThis(''.indexOf);
|
|
3440
|
-
var stringSlice = uncurryThis(''.slice);
|
|
3441
|
-
|
|
3442
|
-
var maybeToString = function (it) {
|
|
3443
|
-
return it === undefined ? it : String(it);
|
|
3444
|
-
};
|
|
2379
|
+
var isCallable = isCallable$f;
|
|
2380
|
+
var anObject = anObject$7;
|
|
2381
|
+
var toString = toString$4;
|
|
3445
2382
|
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
var
|
|
3449
|
-
// eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
|
|
3450
|
-
return 'a'.replace(/./, '$0') === '$0';
|
|
3451
|
-
})();
|
|
3452
|
-
|
|
3453
|
-
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
|
3454
|
-
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
3455
|
-
if (/./[REPLACE]) {
|
|
3456
|
-
return /./[REPLACE]('a', '$0') === '';
|
|
3457
|
-
}
|
|
3458
|
-
return false;
|
|
3459
|
-
})();
|
|
3460
|
-
|
|
3461
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
|
3462
|
-
var re = /./;
|
|
2383
|
+
var DELEGATES_TO_EXEC = function () {
|
|
2384
|
+
var execCalled = false;
|
|
2385
|
+
var re = /[ac]/;
|
|
3463
2386
|
re.exec = function () {
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
return result;
|
|
2387
|
+
execCalled = true;
|
|
2388
|
+
return /./.exec.apply(this, arguments);
|
|
3467
2389
|
};
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
});
|
|
3471
|
-
|
|
3472
|
-
// @@replace logic
|
|
3473
|
-
fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
|
|
3474
|
-
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
|
3475
|
-
|
|
3476
|
-
return [
|
|
3477
|
-
// `String.prototype.replace` method
|
|
3478
|
-
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
3479
|
-
function replace(searchValue, replaceValue) {
|
|
3480
|
-
var O = requireObjectCoercible(this);
|
|
3481
|
-
var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
|
|
3482
|
-
return replacer
|
|
3483
|
-
? call(replacer, searchValue, O, replaceValue)
|
|
3484
|
-
: call(nativeReplace, toString(O), searchValue, replaceValue);
|
|
3485
|
-
},
|
|
3486
|
-
// `RegExp.prototype[@@replace]` method
|
|
3487
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
3488
|
-
function (string, replaceValue) {
|
|
3489
|
-
var rx = anObject(this);
|
|
3490
|
-
var S = toString(string);
|
|
3491
|
-
|
|
3492
|
-
if (
|
|
3493
|
-
typeof replaceValue == 'string' &&
|
|
3494
|
-
stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
|
|
3495
|
-
stringIndexOf(replaceValue, '$<') === -1
|
|
3496
|
-
) {
|
|
3497
|
-
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
|
3498
|
-
if (res.done) return res.value;
|
|
3499
|
-
}
|
|
3500
|
-
|
|
3501
|
-
var functionalReplace = isCallable(replaceValue);
|
|
3502
|
-
if (!functionalReplace) replaceValue = toString(replaceValue);
|
|
3503
|
-
|
|
3504
|
-
var global = rx.global;
|
|
3505
|
-
if (global) {
|
|
3506
|
-
var fullUnicode = rx.unicode;
|
|
3507
|
-
rx.lastIndex = 0;
|
|
3508
|
-
}
|
|
3509
|
-
var results = [];
|
|
3510
|
-
while (true) {
|
|
3511
|
-
var result = regExpExec(rx, S);
|
|
3512
|
-
if (result === null) break;
|
|
3513
|
-
|
|
3514
|
-
push(results, result);
|
|
3515
|
-
if (!global) break;
|
|
3516
|
-
|
|
3517
|
-
var matchStr = toString(result[0]);
|
|
3518
|
-
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
3519
|
-
}
|
|
3520
|
-
|
|
3521
|
-
var accumulatedResult = '';
|
|
3522
|
-
var nextSourcePosition = 0;
|
|
3523
|
-
for (var i = 0; i < results.length; i++) {
|
|
3524
|
-
result = results[i];
|
|
3525
|
-
|
|
3526
|
-
var matched = toString(result[0]);
|
|
3527
|
-
var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
|
|
3528
|
-
var captures = [];
|
|
3529
|
-
// NOTE: This is equivalent to
|
|
3530
|
-
// captures = result.slice(1).map(maybeToString)
|
|
3531
|
-
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
3532
|
-
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
|
3533
|
-
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
|
3534
|
-
for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
|
|
3535
|
-
var namedCaptures = result.groups;
|
|
3536
|
-
if (functionalReplace) {
|
|
3537
|
-
var replacerArgs = concat([matched], captures, position, S);
|
|
3538
|
-
if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
|
|
3539
|
-
var replacement = toString(apply(replaceValue, undefined, replacerArgs));
|
|
3540
|
-
} else {
|
|
3541
|
-
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
3542
|
-
}
|
|
3543
|
-
if (position >= nextSourcePosition) {
|
|
3544
|
-
accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
|
|
3545
|
-
nextSourcePosition = position + matched.length;
|
|
3546
|
-
}
|
|
3547
|
-
}
|
|
3548
|
-
return accumulatedResult + stringSlice(S, nextSourcePosition);
|
|
3549
|
-
}
|
|
3550
|
-
];
|
|
3551
|
-
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
|
2390
|
+
return re.test('abc') === true && execCalled;
|
|
2391
|
+
}();
|
|
3552
2392
|
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3570
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
3571
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
3572
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
3573
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
3574
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
3575
|
-
});
|
|
3576
|
-
}
|
|
2393
|
+
var nativeTest = /./.test;
|
|
2394
|
+
|
|
2395
|
+
// `RegExp.prototype.test` method
|
|
2396
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.test
|
|
2397
|
+
$({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
|
|
2398
|
+
test: function (S) {
|
|
2399
|
+
var R = anObject(this);
|
|
2400
|
+
var string = toString(S);
|
|
2401
|
+
var exec = R.exec;
|
|
2402
|
+
if (!isCallable(exec)) return call(nativeTest, R, string);
|
|
2403
|
+
var result = call(exec, R, string);
|
|
2404
|
+
if (result === null) return false;
|
|
2405
|
+
anObject(result);
|
|
2406
|
+
return true;
|
|
2407
|
+
}
|
|
2408
|
+
});
|
|
3577
2409
|
|
|
3578
2410
|
const MQTT_TIMEOUT_SECONDS = 3;
|
|
3579
2411
|
const MQTT_TIMEOUT_MS = MQTT_TIMEOUT_SECONDS * 1000;
|
|
@@ -3653,25 +2485,10 @@ const isOnEdge = () => {
|
|
|
3653
2485
|
return window.location.hostname.startsWith("192.168") || window.location.hostname.startsWith("localhost");
|
|
3654
2486
|
};
|
|
3655
2487
|
const getExecutionEngineHttpUrl = () => {
|
|
3656
|
-
|
|
3657
|
-
const executionEngineUrl = isOnEdge() ? `http://${url}:3100` : `${window.location.origin}/digital-twin/execution-engine`;
|
|
3658
|
-
return executionEngineUrl;
|
|
2488
|
+
return isOnEdge() ? `http://${window.location.hostname}:3100` : `${window.location.origin}/digital-twin/execution-engine`;
|
|
3659
2489
|
};
|
|
3660
2490
|
const getMqttWsUrl = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
3661
|
-
|
|
3662
|
-
return `ws://${window.location.hostname}:9001`;
|
|
3663
|
-
}
|
|
3664
|
-
/**
|
|
3665
|
-
* We are not trying to allocate a new Machine Motion here. By the time a custom UI can be opened in the CAD (assembler),
|
|
3666
|
-
* we would have already been allocated a Virtual Machine Motion, and a repeated request to the
|
|
3667
|
-
* alloc endpoint will just re-return the connection details of the Virtual Machine Motion that
|
|
3668
|
-
* has already been allocated.
|
|
3669
|
-
*/
|
|
3670
|
-
const response = yield fetch(`${window.location.origin}/orchestrator/allocator/vmm_connection_details`);
|
|
3671
|
-
const data = yield response.json();
|
|
3672
|
-
const url = `${data.message.host}/${data.message.token}/mqtt`;
|
|
3673
|
-
const websocketUrl = url.replace("https", "wss");
|
|
3674
|
-
return websocketUrl;
|
|
2491
|
+
return isOnEdge() ? `ws://${window.location.hostname}:9001` : `wss://${window.location.hostname}/digital-twin/mqtt`;
|
|
3675
2492
|
});
|
|
3676
2493
|
const connectToMqttAndGetClient = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
3677
2494
|
const websocketUrl = yield getMqttWsUrl();
|