@ninetailed/experience.js-react 3.1.1 → 3.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.cjs +293 -867
- package/index.js +293 -867
- package/lib/MergeTag.d.ts +3 -0
- package/package.json +3 -3
package/index.cjs
CHANGED
|
@@ -29,7 +29,7 @@ var check = function (it) {
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
32
|
-
var global$
|
|
32
|
+
var global$c =
|
|
33
33
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
34
34
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
35
35
|
check(typeof window == 'object' && window) ||
|
|
@@ -41,7 +41,7 @@ var global$f =
|
|
|
41
41
|
|
|
42
42
|
var objectGetOwnPropertyDescriptor = {};
|
|
43
43
|
|
|
44
|
-
var fails$
|
|
44
|
+
var fails$c = function (exec) {
|
|
45
45
|
try {
|
|
46
46
|
return !!exec();
|
|
47
47
|
} catch (error) {
|
|
@@ -49,29 +49,29 @@ var fails$h = function (exec) {
|
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
var fails$
|
|
52
|
+
var fails$b = fails$c;
|
|
53
53
|
|
|
54
54
|
// Detect IE8's incomplete defineProperty implementation
|
|
55
|
-
var descriptors = !fails$
|
|
55
|
+
var descriptors = !fails$b(function () {
|
|
56
56
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
57
57
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
var fails$
|
|
60
|
+
var fails$a = fails$c;
|
|
61
61
|
|
|
62
|
-
var functionBindNative = !fails$
|
|
62
|
+
var functionBindNative = !fails$a(function () {
|
|
63
63
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
64
64
|
var test = (function () { /* empty */ }).bind();
|
|
65
65
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
66
66
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
67
67
|
});
|
|
68
68
|
|
|
69
|
-
var NATIVE_BIND$
|
|
69
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
70
70
|
|
|
71
|
-
var call$
|
|
71
|
+
var call$6 = Function.prototype.call;
|
|
72
72
|
|
|
73
|
-
var functionCall = NATIVE_BIND$
|
|
74
|
-
return call$
|
|
73
|
+
var functionCall = NATIVE_BIND$1 ? call$6.bind(call$6) : function () {
|
|
74
|
+
return call$6.apply(call$6, arguments);
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
var objectPropertyIsEnumerable = {};
|
|
@@ -99,66 +99,66 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
101
|
|
|
102
|
-
var NATIVE_BIND
|
|
102
|
+
var NATIVE_BIND = functionBindNative;
|
|
103
103
|
|
|
104
|
-
var FunctionPrototype$
|
|
105
|
-
var call$
|
|
106
|
-
var uncurryThisWithBind = NATIVE_BIND
|
|
104
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
105
|
+
var call$5 = FunctionPrototype$1.call;
|
|
106
|
+
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$5, call$5);
|
|
107
107
|
|
|
108
|
-
var functionUncurryThis = NATIVE_BIND
|
|
108
|
+
var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
109
109
|
return function () {
|
|
110
|
-
return call$
|
|
110
|
+
return call$5.apply(fn, arguments);
|
|
111
111
|
};
|
|
112
112
|
};
|
|
113
113
|
|
|
114
|
-
var uncurryThis$
|
|
114
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
115
115
|
|
|
116
|
-
var toString$
|
|
117
|
-
var stringSlice
|
|
116
|
+
var toString$1 = uncurryThis$9({}.toString);
|
|
117
|
+
var stringSlice = uncurryThis$9(''.slice);
|
|
118
118
|
|
|
119
|
-
var classofRaw
|
|
120
|
-
return stringSlice
|
|
119
|
+
var classofRaw = function (it) {
|
|
120
|
+
return stringSlice(toString$1(it), 8, -1);
|
|
121
121
|
};
|
|
122
122
|
|
|
123
|
-
var uncurryThis$
|
|
124
|
-
var fails$
|
|
125
|
-
var classof$
|
|
123
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
124
|
+
var fails$9 = fails$c;
|
|
125
|
+
var classof$1 = classofRaw;
|
|
126
126
|
|
|
127
|
-
var $Object$
|
|
128
|
-
var split = uncurryThis$
|
|
127
|
+
var $Object$3 = Object;
|
|
128
|
+
var split = uncurryThis$8(''.split);
|
|
129
129
|
|
|
130
130
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
131
|
-
var indexedObject = fails$
|
|
131
|
+
var indexedObject = fails$9(function () {
|
|
132
132
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
133
133
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
134
|
-
return !$Object$
|
|
134
|
+
return !$Object$3('z').propertyIsEnumerable(0);
|
|
135
135
|
}) ? function (it) {
|
|
136
|
-
return classof$
|
|
137
|
-
} : $Object$
|
|
136
|
+
return classof$1(it) == 'String' ? split(it, '') : $Object$3(it);
|
|
137
|
+
} : $Object$3;
|
|
138
138
|
|
|
139
139
|
// we can't use just `it == null` since of `document.all` special case
|
|
140
140
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
141
|
-
var isNullOrUndefined$
|
|
141
|
+
var isNullOrUndefined$2 = function (it) {
|
|
142
142
|
return it === null || it === undefined;
|
|
143
143
|
};
|
|
144
144
|
|
|
145
|
-
var isNullOrUndefined$
|
|
145
|
+
var isNullOrUndefined$1 = isNullOrUndefined$2;
|
|
146
146
|
|
|
147
|
-
var $TypeError$
|
|
147
|
+
var $TypeError$7 = TypeError;
|
|
148
148
|
|
|
149
149
|
// `RequireObjectCoercible` abstract operation
|
|
150
150
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
151
|
-
var requireObjectCoercible$
|
|
152
|
-
if (isNullOrUndefined$
|
|
151
|
+
var requireObjectCoercible$2 = function (it) {
|
|
152
|
+
if (isNullOrUndefined$1(it)) throw $TypeError$7("Can't call method on " + it);
|
|
153
153
|
return it;
|
|
154
154
|
};
|
|
155
155
|
|
|
156
156
|
// toObject with fallback for non-array-like ES3 strings
|
|
157
157
|
var IndexedObject$2 = indexedObject;
|
|
158
|
-
var requireObjectCoercible$
|
|
158
|
+
var requireObjectCoercible$1 = requireObjectCoercible$2;
|
|
159
159
|
|
|
160
160
|
var toIndexedObject$5 = function (it) {
|
|
161
|
-
return IndexedObject$2(requireObjectCoercible$
|
|
161
|
+
return IndexedObject$2(requireObjectCoercible$1(it));
|
|
162
162
|
};
|
|
163
163
|
|
|
164
164
|
var documentAll$2 = typeof document == 'object' && document.all;
|
|
@@ -177,47 +177,47 @@ var documentAll$1 = $documentAll$1.all;
|
|
|
177
177
|
|
|
178
178
|
// `IsCallable` abstract operation
|
|
179
179
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
180
|
-
var isCallable$
|
|
180
|
+
var isCallable$e = $documentAll$1.IS_HTMLDDA ? function (argument) {
|
|
181
181
|
return typeof argument == 'function' || argument === documentAll$1;
|
|
182
182
|
} : function (argument) {
|
|
183
183
|
return typeof argument == 'function';
|
|
184
184
|
};
|
|
185
185
|
|
|
186
|
-
var isCallable$
|
|
186
|
+
var isCallable$d = isCallable$e;
|
|
187
187
|
var $documentAll = documentAll_1;
|
|
188
188
|
|
|
189
189
|
var documentAll = $documentAll.all;
|
|
190
190
|
|
|
191
191
|
var isObject$6 = $documentAll.IS_HTMLDDA ? function (it) {
|
|
192
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
192
|
+
return typeof it == 'object' ? it !== null : isCallable$d(it) || it === documentAll;
|
|
193
193
|
} : function (it) {
|
|
194
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
194
|
+
return typeof it == 'object' ? it !== null : isCallable$d(it);
|
|
195
195
|
};
|
|
196
196
|
|
|
197
|
-
var global$
|
|
198
|
-
var isCallable$
|
|
197
|
+
var global$b = global$c;
|
|
198
|
+
var isCallable$c = isCallable$e;
|
|
199
199
|
|
|
200
200
|
var aFunction = function (argument) {
|
|
201
|
-
return isCallable$
|
|
201
|
+
return isCallable$c(argument) ? argument : undefined;
|
|
202
202
|
};
|
|
203
203
|
|
|
204
204
|
var getBuiltIn$4 = function (namespace, method) {
|
|
205
|
-
return arguments.length < 2 ? aFunction(global$
|
|
205
|
+
return arguments.length < 2 ? aFunction(global$b[namespace]) : global$b[namespace] && global$b[namespace][method];
|
|
206
206
|
};
|
|
207
207
|
|
|
208
|
-
var uncurryThis$
|
|
208
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
209
209
|
|
|
210
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
210
|
+
var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf);
|
|
211
211
|
|
|
212
212
|
var getBuiltIn$3 = getBuiltIn$4;
|
|
213
213
|
|
|
214
214
|
var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
|
|
215
215
|
|
|
216
|
-
var global$
|
|
216
|
+
var global$a = global$c;
|
|
217
217
|
var userAgent = engineUserAgent;
|
|
218
218
|
|
|
219
|
-
var process = global$
|
|
220
|
-
var Deno = global$
|
|
219
|
+
var process = global$a.process;
|
|
220
|
+
var Deno = global$a.Deno;
|
|
221
221
|
var versions = process && process.versions || Deno && Deno.version;
|
|
222
222
|
var v8 = versions && versions.v8;
|
|
223
223
|
var match, version;
|
|
@@ -244,10 +244,10 @@ var engineV8Version = version;
|
|
|
244
244
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
245
245
|
|
|
246
246
|
var V8_VERSION = engineV8Version;
|
|
247
|
-
var fails$
|
|
247
|
+
var fails$8 = fails$c;
|
|
248
248
|
|
|
249
249
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
250
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
250
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$8(function () {
|
|
251
251
|
var symbol = Symbol();
|
|
252
252
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
253
253
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -265,92 +265,92 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
265
265
|
&& typeof Symbol.iterator == 'symbol';
|
|
266
266
|
|
|
267
267
|
var getBuiltIn$2 = getBuiltIn$4;
|
|
268
|
-
var isCallable$
|
|
268
|
+
var isCallable$b = isCallable$e;
|
|
269
269
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
270
270
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
271
271
|
|
|
272
|
-
var $Object$
|
|
272
|
+
var $Object$2 = Object;
|
|
273
273
|
|
|
274
274
|
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
275
275
|
return typeof it == 'symbol';
|
|
276
276
|
} : function (it) {
|
|
277
277
|
var $Symbol = getBuiltIn$2('Symbol');
|
|
278
|
-
return isCallable$
|
|
278
|
+
return isCallable$b($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
|
|
279
279
|
};
|
|
280
280
|
|
|
281
|
-
var $String$
|
|
281
|
+
var $String$2 = String;
|
|
282
282
|
|
|
283
283
|
var tryToString$1 = function (argument) {
|
|
284
284
|
try {
|
|
285
|
-
return $String$
|
|
285
|
+
return $String$2(argument);
|
|
286
286
|
} catch (error) {
|
|
287
287
|
return 'Object';
|
|
288
288
|
}
|
|
289
289
|
};
|
|
290
290
|
|
|
291
|
-
var isCallable$
|
|
291
|
+
var isCallable$a = isCallable$e;
|
|
292
292
|
var tryToString = tryToString$1;
|
|
293
293
|
|
|
294
|
-
var $TypeError$
|
|
294
|
+
var $TypeError$6 = TypeError;
|
|
295
295
|
|
|
296
296
|
// `Assert: IsCallable(argument) is true`
|
|
297
297
|
var aCallable$2 = function (argument) {
|
|
298
|
-
if (isCallable$
|
|
299
|
-
throw $TypeError$
|
|
298
|
+
if (isCallable$a(argument)) return argument;
|
|
299
|
+
throw $TypeError$6(tryToString(argument) + ' is not a function');
|
|
300
300
|
};
|
|
301
301
|
|
|
302
302
|
var aCallable$1 = aCallable$2;
|
|
303
|
-
var isNullOrUndefined
|
|
303
|
+
var isNullOrUndefined = isNullOrUndefined$2;
|
|
304
304
|
|
|
305
305
|
// `GetMethod` abstract operation
|
|
306
306
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
307
|
-
var getMethod$
|
|
307
|
+
var getMethod$1 = function (V, P) {
|
|
308
308
|
var func = V[P];
|
|
309
|
-
return isNullOrUndefined
|
|
309
|
+
return isNullOrUndefined(func) ? undefined : aCallable$1(func);
|
|
310
310
|
};
|
|
311
311
|
|
|
312
|
-
var call$
|
|
313
|
-
var isCallable$
|
|
312
|
+
var call$4 = functionCall;
|
|
313
|
+
var isCallable$9 = isCallable$e;
|
|
314
314
|
var isObject$5 = isObject$6;
|
|
315
315
|
|
|
316
|
-
var $TypeError$
|
|
316
|
+
var $TypeError$5 = TypeError;
|
|
317
317
|
|
|
318
318
|
// `OrdinaryToPrimitive` abstract operation
|
|
319
319
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
320
320
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
321
321
|
var fn, val;
|
|
322
|
-
if (pref === 'string' && isCallable$
|
|
323
|
-
if (isCallable$
|
|
324
|
-
if (pref !== 'string' && isCallable$
|
|
325
|
-
throw $TypeError$
|
|
322
|
+
if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
|
|
323
|
+
if (isCallable$9(fn = input.valueOf) && !isObject$5(val = call$4(fn, input))) return val;
|
|
324
|
+
if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
|
|
325
|
+
throw $TypeError$5("Can't convert object to primitive value");
|
|
326
326
|
};
|
|
327
327
|
|
|
328
|
-
var shared$
|
|
328
|
+
var shared$3 = {exports: {}};
|
|
329
329
|
|
|
330
|
-
var global$
|
|
330
|
+
var global$9 = global$c;
|
|
331
331
|
|
|
332
332
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
333
333
|
var defineProperty$5 = Object.defineProperty;
|
|
334
334
|
|
|
335
335
|
var defineGlobalProperty$3 = function (key, value) {
|
|
336
336
|
try {
|
|
337
|
-
defineProperty$5(global$
|
|
337
|
+
defineProperty$5(global$9, key, { value: value, configurable: true, writable: true });
|
|
338
338
|
} catch (error) {
|
|
339
|
-
global$
|
|
339
|
+
global$9[key] = value;
|
|
340
340
|
} return value;
|
|
341
341
|
};
|
|
342
342
|
|
|
343
|
-
var global$
|
|
343
|
+
var global$8 = global$c;
|
|
344
344
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
345
345
|
|
|
346
346
|
var SHARED = '__core-js_shared__';
|
|
347
|
-
var store$3 = global$
|
|
347
|
+
var store$3 = global$8[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
348
348
|
|
|
349
349
|
var sharedStore = store$3;
|
|
350
350
|
|
|
351
351
|
var store$2 = sharedStore;
|
|
352
352
|
|
|
353
|
-
(shared$
|
|
353
|
+
(shared$3.exports = function (key, value) {
|
|
354
354
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
355
355
|
})('versions', []).push({
|
|
356
356
|
version: '3.26.1',
|
|
@@ -360,51 +360,51 @@ var store$2 = sharedStore;
|
|
|
360
360
|
source: 'https://github.com/zloirock/core-js'
|
|
361
361
|
});
|
|
362
362
|
|
|
363
|
-
var requireObjectCoercible
|
|
363
|
+
var requireObjectCoercible = requireObjectCoercible$2;
|
|
364
364
|
|
|
365
|
-
var $Object$
|
|
365
|
+
var $Object$1 = Object;
|
|
366
366
|
|
|
367
367
|
// `ToObject` abstract operation
|
|
368
368
|
// https://tc39.es/ecma262/#sec-toobject
|
|
369
|
-
var toObject$
|
|
370
|
-
return $Object$
|
|
369
|
+
var toObject$4 = function (argument) {
|
|
370
|
+
return $Object$1(requireObjectCoercible(argument));
|
|
371
371
|
};
|
|
372
372
|
|
|
373
|
-
var uncurryThis$
|
|
374
|
-
var toObject$
|
|
373
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
374
|
+
var toObject$3 = toObject$4;
|
|
375
375
|
|
|
376
|
-
var hasOwnProperty = uncurryThis$
|
|
376
|
+
var hasOwnProperty = uncurryThis$6({}.hasOwnProperty);
|
|
377
377
|
|
|
378
378
|
// `HasOwnProperty` abstract operation
|
|
379
379
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
380
380
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
381
381
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
382
|
-
return hasOwnProperty(toObject$
|
|
382
|
+
return hasOwnProperty(toObject$3(it), key);
|
|
383
383
|
};
|
|
384
384
|
|
|
385
|
-
var uncurryThis$
|
|
385
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
386
386
|
|
|
387
387
|
var id = 0;
|
|
388
388
|
var postfix = Math.random();
|
|
389
|
-
var toString
|
|
389
|
+
var toString = uncurryThis$5(1.0.toString);
|
|
390
390
|
|
|
391
391
|
var uid$2 = function (key) {
|
|
392
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString
|
|
392
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
393
393
|
};
|
|
394
394
|
|
|
395
|
-
var global$
|
|
396
|
-
var shared$
|
|
395
|
+
var global$7 = global$c;
|
|
396
|
+
var shared$2 = shared$3.exports;
|
|
397
397
|
var hasOwn$8 = hasOwnProperty_1;
|
|
398
398
|
var uid$1 = uid$2;
|
|
399
399
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
400
400
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
401
401
|
|
|
402
|
-
var WellKnownSymbolsStore = shared$
|
|
403
|
-
var Symbol$1 = global$
|
|
402
|
+
var WellKnownSymbolsStore = shared$2('wks');
|
|
403
|
+
var Symbol$1 = global$7.Symbol;
|
|
404
404
|
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
405
405
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
406
406
|
|
|
407
|
-
var wellKnownSymbol$
|
|
407
|
+
var wellKnownSymbol$6 = function (name) {
|
|
408
408
|
if (!hasOwn$8(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
409
409
|
var description = 'Symbol.' + name;
|
|
410
410
|
if (NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)) {
|
|
@@ -417,27 +417,27 @@ var wellKnownSymbol$a = function (name) {
|
|
|
417
417
|
} return WellKnownSymbolsStore[name];
|
|
418
418
|
};
|
|
419
419
|
|
|
420
|
-
var call$
|
|
420
|
+
var call$3 = functionCall;
|
|
421
421
|
var isObject$4 = isObject$6;
|
|
422
422
|
var isSymbol$1 = isSymbol$2;
|
|
423
|
-
var getMethod
|
|
423
|
+
var getMethod = getMethod$1;
|
|
424
424
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
425
|
-
var wellKnownSymbol$
|
|
425
|
+
var wellKnownSymbol$5 = wellKnownSymbol$6;
|
|
426
426
|
|
|
427
|
-
var $TypeError$
|
|
428
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
|
427
|
+
var $TypeError$4 = TypeError;
|
|
428
|
+
var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
|
|
429
429
|
|
|
430
430
|
// `ToPrimitive` abstract operation
|
|
431
431
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
432
432
|
var toPrimitive$1 = function (input, pref) {
|
|
433
433
|
if (!isObject$4(input) || isSymbol$1(input)) return input;
|
|
434
|
-
var exoticToPrim = getMethod
|
|
434
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
435
435
|
var result;
|
|
436
436
|
if (exoticToPrim) {
|
|
437
437
|
if (pref === undefined) pref = 'default';
|
|
438
|
-
result = call$
|
|
438
|
+
result = call$3(exoticToPrim, input, pref);
|
|
439
439
|
if (!isObject$4(result) || isSymbol$1(result)) return result;
|
|
440
|
-
throw $TypeError$
|
|
440
|
+
throw $TypeError$4("Can't convert object to primitive value");
|
|
441
441
|
}
|
|
442
442
|
if (pref === undefined) pref = 'number';
|
|
443
443
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -453,10 +453,10 @@ var toPropertyKey$2 = function (argument) {
|
|
|
453
453
|
return isSymbol(key) ? key : key + '';
|
|
454
454
|
};
|
|
455
455
|
|
|
456
|
-
var global$
|
|
456
|
+
var global$6 = global$c;
|
|
457
457
|
var isObject$3 = isObject$6;
|
|
458
458
|
|
|
459
|
-
var document$1 = global$
|
|
459
|
+
var document$1 = global$6.document;
|
|
460
460
|
// typeof document.createElement is 'object' in old IE
|
|
461
461
|
var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
|
|
462
462
|
|
|
@@ -465,11 +465,11 @@ var documentCreateElement$2 = function (it) {
|
|
|
465
465
|
};
|
|
466
466
|
|
|
467
467
|
var DESCRIPTORS$9 = descriptors;
|
|
468
|
-
var fails$
|
|
468
|
+
var fails$7 = fails$c;
|
|
469
469
|
var createElement = documentCreateElement$2;
|
|
470
470
|
|
|
471
471
|
// Thanks to IE8 for its funny defineProperty
|
|
472
|
-
var ie8DomDefine = !DESCRIPTORS$9 && !fails$
|
|
472
|
+
var ie8DomDefine = !DESCRIPTORS$9 && !fails$7(function () {
|
|
473
473
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
474
474
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
475
475
|
get: function () { return 7; }
|
|
@@ -477,7 +477,7 @@ var ie8DomDefine = !DESCRIPTORS$9 && !fails$c(function () {
|
|
|
477
477
|
});
|
|
478
478
|
|
|
479
479
|
var DESCRIPTORS$8 = descriptors;
|
|
480
|
-
var call$
|
|
480
|
+
var call$2 = functionCall;
|
|
481
481
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
482
482
|
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
483
483
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
@@ -496,17 +496,17 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 :
|
|
|
496
496
|
if (IE8_DOM_DEFINE$1) try {
|
|
497
497
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
498
498
|
} catch (error) { /* empty */ }
|
|
499
|
-
if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$
|
|
499
|
+
if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$2(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
500
500
|
};
|
|
501
501
|
|
|
502
502
|
var objectDefineProperty = {};
|
|
503
503
|
|
|
504
504
|
var DESCRIPTORS$7 = descriptors;
|
|
505
|
-
var fails$
|
|
505
|
+
var fails$6 = fails$c;
|
|
506
506
|
|
|
507
507
|
// V8 ~ Chrome 36-
|
|
508
508
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
509
|
-
var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$
|
|
509
|
+
var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$6(function () {
|
|
510
510
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
511
511
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
512
512
|
value: 42,
|
|
@@ -516,22 +516,22 @@ var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$b(function () {
|
|
|
516
516
|
|
|
517
517
|
var isObject$2 = isObject$6;
|
|
518
518
|
|
|
519
|
-
var $String$
|
|
520
|
-
var $TypeError$
|
|
519
|
+
var $String$1 = String;
|
|
520
|
+
var $TypeError$3 = TypeError;
|
|
521
521
|
|
|
522
522
|
// `Assert: Type(argument) is Object`
|
|
523
|
-
var anObject$
|
|
523
|
+
var anObject$5 = function (argument) {
|
|
524
524
|
if (isObject$2(argument)) return argument;
|
|
525
|
-
throw $TypeError$
|
|
525
|
+
throw $TypeError$3($String$1(argument) + ' is not an object');
|
|
526
526
|
};
|
|
527
527
|
|
|
528
528
|
var DESCRIPTORS$6 = descriptors;
|
|
529
529
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
530
530
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
531
|
-
var anObject$
|
|
531
|
+
var anObject$4 = anObject$5;
|
|
532
532
|
var toPropertyKey = toPropertyKey$2;
|
|
533
533
|
|
|
534
|
-
var $TypeError$
|
|
534
|
+
var $TypeError$2 = TypeError;
|
|
535
535
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
536
536
|
var $defineProperty = Object.defineProperty;
|
|
537
537
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -543,9 +543,9 @@ var WRITABLE = 'writable';
|
|
|
543
543
|
// `Object.defineProperty` method
|
|
544
544
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
545
545
|
objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
546
|
-
anObject$
|
|
546
|
+
anObject$4(O);
|
|
547
547
|
P = toPropertyKey(P);
|
|
548
|
-
anObject$
|
|
548
|
+
anObject$4(Attributes);
|
|
549
549
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
550
550
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
551
551
|
if (current && current[WRITABLE]) {
|
|
@@ -558,13 +558,13 @@ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
558
558
|
}
|
|
559
559
|
} return $defineProperty(O, P, Attributes);
|
|
560
560
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
561
|
-
anObject$
|
|
561
|
+
anObject$4(O);
|
|
562
562
|
P = toPropertyKey(P);
|
|
563
|
-
anObject$
|
|
563
|
+
anObject$4(Attributes);
|
|
564
564
|
if (IE8_DOM_DEFINE) try {
|
|
565
565
|
return $defineProperty(O, P, Attributes);
|
|
566
566
|
} catch (error) { /* empty */ }
|
|
567
|
-
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$
|
|
567
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$2('Accessors not supported');
|
|
568
568
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
569
569
|
return O;
|
|
570
570
|
};
|
|
@@ -573,7 +573,7 @@ var DESCRIPTORS$5 = descriptors;
|
|
|
573
573
|
var definePropertyModule$3 = objectDefineProperty;
|
|
574
574
|
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
575
575
|
|
|
576
|
-
var createNonEnumerableProperty$
|
|
576
|
+
var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
|
|
577
577
|
return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
|
|
578
578
|
} : function (object, key, value) {
|
|
579
579
|
object[key] = value;
|
|
@@ -585,14 +585,14 @@ var makeBuiltIn$2 = {exports: {}};
|
|
|
585
585
|
var DESCRIPTORS$4 = descriptors;
|
|
586
586
|
var hasOwn$6 = hasOwnProperty_1;
|
|
587
587
|
|
|
588
|
-
var FunctionPrototype
|
|
588
|
+
var FunctionPrototype = Function.prototype;
|
|
589
589
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
590
590
|
var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
|
|
591
591
|
|
|
592
|
-
var EXISTS = hasOwn$6(FunctionPrototype
|
|
592
|
+
var EXISTS = hasOwn$6(FunctionPrototype, 'name');
|
|
593
593
|
// additional protection from minified / mangled / dropped function names
|
|
594
594
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
595
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype
|
|
595
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
596
596
|
|
|
597
597
|
var functionName = {
|
|
598
598
|
EXISTS: EXISTS,
|
|
@@ -600,14 +600,14 @@ var functionName = {
|
|
|
600
600
|
CONFIGURABLE: CONFIGURABLE
|
|
601
601
|
};
|
|
602
602
|
|
|
603
|
-
var uncurryThis$
|
|
604
|
-
var isCallable$
|
|
603
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
604
|
+
var isCallable$8 = isCallable$e;
|
|
605
605
|
var store$1 = sharedStore;
|
|
606
606
|
|
|
607
|
-
var functionToString = uncurryThis$
|
|
607
|
+
var functionToString = uncurryThis$4(Function.toString);
|
|
608
608
|
|
|
609
609
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
610
|
-
if (!isCallable$
|
|
610
|
+
if (!isCallable$8(store$1.inspectSource)) {
|
|
611
611
|
store$1.inspectSource = function (it) {
|
|
612
612
|
return functionToString(it);
|
|
613
613
|
};
|
|
@@ -615,17 +615,17 @@ if (!isCallable$b(store$1.inspectSource)) {
|
|
|
615
615
|
|
|
616
616
|
var inspectSource$1 = store$1.inspectSource;
|
|
617
617
|
|
|
618
|
-
var global$
|
|
619
|
-
var isCallable$
|
|
618
|
+
var global$5 = global$c;
|
|
619
|
+
var isCallable$7 = isCallable$e;
|
|
620
620
|
|
|
621
|
-
var WeakMap$1 = global$
|
|
621
|
+
var WeakMap$1 = global$5.WeakMap;
|
|
622
622
|
|
|
623
|
-
var weakMapBasicDetection = isCallable$
|
|
623
|
+
var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
624
624
|
|
|
625
|
-
var shared$
|
|
625
|
+
var shared$1 = shared$3.exports;
|
|
626
626
|
var uid = uid$2;
|
|
627
627
|
|
|
628
|
-
var keys = shared$
|
|
628
|
+
var keys = shared$1('keys');
|
|
629
629
|
|
|
630
630
|
var sharedKey$3 = function (key) {
|
|
631
631
|
return keys[key] || (keys[key] = uid(key));
|
|
@@ -634,17 +634,17 @@ var sharedKey$3 = function (key) {
|
|
|
634
634
|
var hiddenKeys$4 = {};
|
|
635
635
|
|
|
636
636
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
637
|
-
var global$
|
|
637
|
+
var global$4 = global$c;
|
|
638
638
|
var isObject$1 = isObject$6;
|
|
639
|
-
var createNonEnumerableProperty$
|
|
639
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
640
640
|
var hasOwn$5 = hasOwnProperty_1;
|
|
641
|
-
var shared
|
|
641
|
+
var shared = sharedStore;
|
|
642
642
|
var sharedKey$2 = sharedKey$3;
|
|
643
643
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
644
644
|
|
|
645
645
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
646
|
-
var TypeError$1 = global$
|
|
647
|
-
var WeakMap = global$
|
|
646
|
+
var TypeError$1 = global$4.TypeError;
|
|
647
|
+
var WeakMap = global$4.WeakMap;
|
|
648
648
|
var set, get, has;
|
|
649
649
|
|
|
650
650
|
var enforce = function (it) {
|
|
@@ -660,8 +660,8 @@ var getterFor = function (TYPE) {
|
|
|
660
660
|
};
|
|
661
661
|
};
|
|
662
662
|
|
|
663
|
-
if (NATIVE_WEAK_MAP || shared
|
|
664
|
-
var store = shared
|
|
663
|
+
if (NATIVE_WEAK_MAP || shared.state) {
|
|
664
|
+
var store = shared.state || (shared.state = new WeakMap());
|
|
665
665
|
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
666
666
|
store.get = store.get;
|
|
667
667
|
store.has = store.has;
|
|
@@ -685,7 +685,7 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
685
685
|
set = function (it, metadata) {
|
|
686
686
|
if (hasOwn$5(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
687
687
|
metadata.facade = it;
|
|
688
|
-
createNonEnumerableProperty$
|
|
688
|
+
createNonEnumerableProperty$3(it, STATE, metadata);
|
|
689
689
|
return metadata;
|
|
690
690
|
};
|
|
691
691
|
get = function (it) {
|
|
@@ -704,8 +704,8 @@ var internalState = {
|
|
|
704
704
|
getterFor: getterFor
|
|
705
705
|
};
|
|
706
706
|
|
|
707
|
-
var fails$
|
|
708
|
-
var isCallable$
|
|
707
|
+
var fails$5 = fails$c;
|
|
708
|
+
var isCallable$6 = isCallable$e;
|
|
709
709
|
var hasOwn$4 = hasOwnProperty_1;
|
|
710
710
|
var DESCRIPTORS$3 = descriptors;
|
|
711
711
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
@@ -713,11 +713,11 @@ var inspectSource = inspectSource$1;
|
|
|
713
713
|
var InternalStateModule$1 = internalState;
|
|
714
714
|
|
|
715
715
|
var enforceInternalState = InternalStateModule$1.enforce;
|
|
716
|
-
var getInternalState$
|
|
716
|
+
var getInternalState$1 = InternalStateModule$1.get;
|
|
717
717
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
718
718
|
var defineProperty$4 = Object.defineProperty;
|
|
719
719
|
|
|
720
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$
|
|
720
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$5(function () {
|
|
721
721
|
return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
722
722
|
});
|
|
723
723
|
|
|
@@ -751,19 +751,19 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
|
751
751
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
752
752
|
// eslint-disable-next-line no-extend-native -- required
|
|
753
753
|
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
754
|
-
return isCallable$
|
|
754
|
+
return isCallable$6(this) && getInternalState$1(this).source || inspectSource(this);
|
|
755
755
|
}, 'toString');
|
|
756
756
|
|
|
757
|
-
var isCallable$
|
|
757
|
+
var isCallable$5 = isCallable$e;
|
|
758
758
|
var definePropertyModule$2 = objectDefineProperty;
|
|
759
759
|
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
760
760
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
761
761
|
|
|
762
|
-
var defineBuiltIn$
|
|
762
|
+
var defineBuiltIn$3 = function (O, key, value, options) {
|
|
763
763
|
if (!options) options = {};
|
|
764
764
|
var simple = options.enumerable;
|
|
765
765
|
var name = options.name !== undefined ? options.name : key;
|
|
766
|
-
if (isCallable$
|
|
766
|
+
if (isCallable$5(value)) makeBuiltIn(value, name, options);
|
|
767
767
|
if (options.global) {
|
|
768
768
|
if (simple) O[key] = value;
|
|
769
769
|
else defineGlobalProperty$1(key, value);
|
|
@@ -785,55 +785,55 @@ var defineBuiltIn$4 = function (O, key, value, options) {
|
|
|
785
785
|
var objectGetOwnPropertyNames = {};
|
|
786
786
|
|
|
787
787
|
var ceil = Math.ceil;
|
|
788
|
-
var floor
|
|
788
|
+
var floor = Math.floor;
|
|
789
789
|
|
|
790
790
|
// `Math.trunc` method
|
|
791
791
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
792
792
|
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
793
793
|
var mathTrunc = Math.trunc || function trunc(x) {
|
|
794
794
|
var n = +x;
|
|
795
|
-
return (n > 0 ? floor
|
|
795
|
+
return (n > 0 ? floor : ceil)(n);
|
|
796
796
|
};
|
|
797
797
|
|
|
798
798
|
var trunc = mathTrunc;
|
|
799
799
|
|
|
800
800
|
// `ToIntegerOrInfinity` abstract operation
|
|
801
801
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
802
|
-
var toIntegerOrInfinity$
|
|
802
|
+
var toIntegerOrInfinity$2 = function (argument) {
|
|
803
803
|
var number = +argument;
|
|
804
804
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
805
805
|
return number !== number || number === 0 ? 0 : trunc(number);
|
|
806
806
|
};
|
|
807
807
|
|
|
808
|
-
var toIntegerOrInfinity$
|
|
808
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
809
809
|
|
|
810
|
-
var max
|
|
811
|
-
var min$
|
|
810
|
+
var max = Math.max;
|
|
811
|
+
var min$1 = Math.min;
|
|
812
812
|
|
|
813
813
|
// Helper for a popular repeating case of the spec:
|
|
814
814
|
// Let integer be ? ToInteger(index).
|
|
815
815
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
816
816
|
var toAbsoluteIndex$1 = function (index, length) {
|
|
817
|
-
var integer = toIntegerOrInfinity$
|
|
818
|
-
return integer < 0 ? max
|
|
817
|
+
var integer = toIntegerOrInfinity$1(index);
|
|
818
|
+
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
|
819
819
|
};
|
|
820
820
|
|
|
821
|
-
var toIntegerOrInfinity
|
|
821
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$2;
|
|
822
822
|
|
|
823
|
-
var min
|
|
823
|
+
var min = Math.min;
|
|
824
824
|
|
|
825
825
|
// `ToLength` abstract operation
|
|
826
826
|
// https://tc39.es/ecma262/#sec-tolength
|
|
827
|
-
var toLength$
|
|
828
|
-
return argument > 0 ? min
|
|
827
|
+
var toLength$1 = function (argument) {
|
|
828
|
+
return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
829
829
|
};
|
|
830
830
|
|
|
831
|
-
var toLength
|
|
831
|
+
var toLength = toLength$1;
|
|
832
832
|
|
|
833
833
|
// `LengthOfArrayLike` abstract operation
|
|
834
834
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
835
835
|
var lengthOfArrayLike$2 = function (obj) {
|
|
836
|
-
return toLength
|
|
836
|
+
return toLength(obj.length);
|
|
837
837
|
};
|
|
838
838
|
|
|
839
839
|
var toIndexedObject$3 = toIndexedObject$5;
|
|
@@ -841,7 +841,7 @@ var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
|
841
841
|
var lengthOfArrayLike$1 = lengthOfArrayLike$2;
|
|
842
842
|
|
|
843
843
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
844
|
-
var createMethod$
|
|
844
|
+
var createMethod$1 = function (IS_INCLUDES) {
|
|
845
845
|
return function ($this, el, fromIndex) {
|
|
846
846
|
var O = toIndexedObject$3($this);
|
|
847
847
|
var length = lengthOfArrayLike$1(O);
|
|
@@ -863,29 +863,29 @@ var createMethod$2 = function (IS_INCLUDES) {
|
|
|
863
863
|
var arrayIncludes = {
|
|
864
864
|
// `Array.prototype.includes` method
|
|
865
865
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
866
|
-
includes: createMethod$
|
|
866
|
+
includes: createMethod$1(true),
|
|
867
867
|
// `Array.prototype.indexOf` method
|
|
868
868
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
869
|
-
indexOf: createMethod$
|
|
869
|
+
indexOf: createMethod$1(false)
|
|
870
870
|
};
|
|
871
871
|
|
|
872
|
-
var uncurryThis$
|
|
872
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
873
873
|
var hasOwn$3 = hasOwnProperty_1;
|
|
874
874
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
875
|
-
var indexOf
|
|
875
|
+
var indexOf = arrayIncludes.indexOf;
|
|
876
876
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
877
877
|
|
|
878
|
-
var push
|
|
878
|
+
var push = uncurryThis$3([].push);
|
|
879
879
|
|
|
880
880
|
var objectKeysInternal = function (object, names) {
|
|
881
881
|
var O = toIndexedObject$2(object);
|
|
882
882
|
var i = 0;
|
|
883
883
|
var result = [];
|
|
884
884
|
var key;
|
|
885
|
-
for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push
|
|
885
|
+
for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push(result, key);
|
|
886
886
|
// Don't enum bug & hidden keys
|
|
887
887
|
while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
|
|
888
|
-
~indexOf
|
|
888
|
+
~indexOf(result, key) || push(result, key);
|
|
889
889
|
}
|
|
890
890
|
return result;
|
|
891
891
|
};
|
|
@@ -919,18 +919,18 @@ var objectGetOwnPropertySymbols = {};
|
|
|
919
919
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
920
920
|
|
|
921
921
|
var getBuiltIn$1 = getBuiltIn$4;
|
|
922
|
-
var uncurryThis$
|
|
922
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
923
923
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
924
924
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
925
|
-
var anObject$
|
|
925
|
+
var anObject$3 = anObject$5;
|
|
926
926
|
|
|
927
|
-
var concat$
|
|
927
|
+
var concat$1 = uncurryThis$2([].concat);
|
|
928
928
|
|
|
929
929
|
// all object keys, includes non-enumerable and symbols
|
|
930
930
|
var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
931
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
931
|
+
var keys = getOwnPropertyNamesModule.f(anObject$3(it));
|
|
932
932
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
933
|
-
return getOwnPropertySymbols ? concat$
|
|
933
|
+
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
934
934
|
};
|
|
935
935
|
|
|
936
936
|
var hasOwn$2 = hasOwnProperty_1;
|
|
@@ -950,8 +950,8 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
950
950
|
}
|
|
951
951
|
};
|
|
952
952
|
|
|
953
|
-
var fails$
|
|
954
|
-
var isCallable$
|
|
953
|
+
var fails$4 = fails$c;
|
|
954
|
+
var isCallable$4 = isCallable$e;
|
|
955
955
|
|
|
956
956
|
var replacement = /#|\.prototype\./;
|
|
957
957
|
|
|
@@ -959,7 +959,7 @@ var isForced$1 = function (feature, detection) {
|
|
|
959
959
|
var value = data[normalize(feature)];
|
|
960
960
|
return value == POLYFILL ? true
|
|
961
961
|
: value == NATIVE ? false
|
|
962
|
-
: isCallable$
|
|
962
|
+
: isCallable$4(detection) ? fails$4(detection)
|
|
963
963
|
: !!detection;
|
|
964
964
|
};
|
|
965
965
|
|
|
@@ -973,10 +973,10 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
973
973
|
|
|
974
974
|
var isForced_1 = isForced$1;
|
|
975
975
|
|
|
976
|
-
var global$
|
|
976
|
+
var global$3 = global$c;
|
|
977
977
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
978
|
-
var createNonEnumerableProperty$
|
|
979
|
-
var defineBuiltIn$
|
|
978
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
979
|
+
var defineBuiltIn$2 = defineBuiltIn$3;
|
|
980
980
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
981
981
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
982
982
|
var isForced = isForced_1;
|
|
@@ -1002,11 +1002,11 @@ var _export = function (options, source) {
|
|
|
1002
1002
|
var STATIC = options.stat;
|
|
1003
1003
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1004
1004
|
if (GLOBAL) {
|
|
1005
|
-
target = global$
|
|
1005
|
+
target = global$3;
|
|
1006
1006
|
} else if (STATIC) {
|
|
1007
|
-
target = global$
|
|
1007
|
+
target = global$3[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1008
1008
|
} else {
|
|
1009
|
-
target = (global$
|
|
1009
|
+
target = (global$3[TARGET] || {}).prototype;
|
|
1010
1010
|
}
|
|
1011
1011
|
if (target) for (key in source) {
|
|
1012
1012
|
sourceProperty = source[key];
|
|
@@ -1022,9 +1022,9 @@ var _export = function (options, source) {
|
|
|
1022
1022
|
}
|
|
1023
1023
|
// add a flag to not completely full polyfills
|
|
1024
1024
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1025
|
-
createNonEnumerableProperty$
|
|
1025
|
+
createNonEnumerableProperty$2(sourceProperty, 'sham', true);
|
|
1026
1026
|
}
|
|
1027
|
-
defineBuiltIn$
|
|
1027
|
+
defineBuiltIn$2(target, key, sourceProperty, options);
|
|
1028
1028
|
}
|
|
1029
1029
|
};
|
|
1030
1030
|
|
|
@@ -1039,24 +1039,24 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
1039
1039
|
};
|
|
1040
1040
|
|
|
1041
1041
|
var DESCRIPTORS$2 = descriptors;
|
|
1042
|
-
var uncurryThis$
|
|
1043
|
-
var call$
|
|
1044
|
-
var fails$
|
|
1042
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
1043
|
+
var call$1 = functionCall;
|
|
1044
|
+
var fails$3 = fails$c;
|
|
1045
1045
|
var objectKeys$1 = objectKeys$2;
|
|
1046
1046
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1047
1047
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1048
|
-
var toObject$
|
|
1048
|
+
var toObject$2 = toObject$4;
|
|
1049
1049
|
var IndexedObject$1 = indexedObject;
|
|
1050
1050
|
|
|
1051
1051
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1052
1052
|
var $assign = Object.assign;
|
|
1053
1053
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1054
1054
|
var defineProperty$3 = Object.defineProperty;
|
|
1055
|
-
var concat
|
|
1055
|
+
var concat = uncurryThis$1([].concat);
|
|
1056
1056
|
|
|
1057
1057
|
// `Object.assign` method
|
|
1058
1058
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1059
|
-
var objectAssign = !$assign || fails$
|
|
1059
|
+
var objectAssign = !$assign || fails$3(function () {
|
|
1060
1060
|
// should have correct order of operations (Edge bug)
|
|
1061
1061
|
if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
|
|
1062
1062
|
enumerable: true,
|
|
@@ -1077,31 +1077,31 @@ var objectAssign = !$assign || fails$8(function () {
|
|
|
1077
1077
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1078
1078
|
return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
|
|
1079
1079
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1080
|
-
var T = toObject$
|
|
1080
|
+
var T = toObject$2(target);
|
|
1081
1081
|
var argumentsLength = arguments.length;
|
|
1082
1082
|
var index = 1;
|
|
1083
1083
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
1084
1084
|
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
1085
1085
|
while (argumentsLength > index) {
|
|
1086
1086
|
var S = IndexedObject$1(arguments[index++]);
|
|
1087
|
-
var keys = getOwnPropertySymbols ? concat
|
|
1087
|
+
var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
|
|
1088
1088
|
var length = keys.length;
|
|
1089
1089
|
var j = 0;
|
|
1090
1090
|
var key;
|
|
1091
1091
|
while (length > j) {
|
|
1092
1092
|
key = keys[j++];
|
|
1093
|
-
if (!DESCRIPTORS$2 || call$
|
|
1093
|
+
if (!DESCRIPTORS$2 || call$1(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1094
1094
|
}
|
|
1095
1095
|
} return T;
|
|
1096
1096
|
} : $assign;
|
|
1097
1097
|
|
|
1098
|
-
var $$
|
|
1098
|
+
var $$2 = _export;
|
|
1099
1099
|
var assign = objectAssign;
|
|
1100
1100
|
|
|
1101
1101
|
// `Object.assign` method
|
|
1102
1102
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1103
1103
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1104
|
-
$$
|
|
1104
|
+
$$2({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1105
1105
|
assign: assign
|
|
1106
1106
|
});
|
|
1107
1107
|
|
|
@@ -1110,17 +1110,17 @@ const NinetailedContext = /*#__PURE__*/React.createContext(undefined);
|
|
|
1110
1110
|
const ExperimentsContext = /*#__PURE__*/React.createContext(undefined);
|
|
1111
1111
|
|
|
1112
1112
|
var aCallable = aCallable$2;
|
|
1113
|
-
var toObject$
|
|
1113
|
+
var toObject$1 = toObject$4;
|
|
1114
1114
|
var IndexedObject = indexedObject;
|
|
1115
1115
|
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
1116
1116
|
|
|
1117
|
-
var $TypeError$
|
|
1117
|
+
var $TypeError$1 = TypeError;
|
|
1118
1118
|
|
|
1119
1119
|
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
1120
|
-
var createMethod
|
|
1120
|
+
var createMethod = function (IS_RIGHT) {
|
|
1121
1121
|
return function (that, callbackfn, argumentsLength, memo) {
|
|
1122
1122
|
aCallable(callbackfn);
|
|
1123
|
-
var O = toObject$
|
|
1123
|
+
var O = toObject$1(that);
|
|
1124
1124
|
var self = IndexedObject(O);
|
|
1125
1125
|
var length = lengthOfArrayLike(O);
|
|
1126
1126
|
var index = IS_RIGHT ? length - 1 : 0;
|
|
@@ -1133,7 +1133,7 @@ var createMethod$1 = function (IS_RIGHT) {
|
|
|
1133
1133
|
}
|
|
1134
1134
|
index += i;
|
|
1135
1135
|
if (IS_RIGHT ? index < 0 : length <= index) {
|
|
1136
|
-
throw $TypeError$
|
|
1136
|
+
throw $TypeError$1('Reduce of empty array with no initial value');
|
|
1137
1137
|
}
|
|
1138
1138
|
}
|
|
1139
1139
|
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
|
|
@@ -1146,28 +1146,28 @@ var createMethod$1 = function (IS_RIGHT) {
|
|
|
1146
1146
|
var arrayReduce = {
|
|
1147
1147
|
// `Array.prototype.reduce` method
|
|
1148
1148
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
1149
|
-
left: createMethod
|
|
1149
|
+
left: createMethod(false),
|
|
1150
1150
|
// `Array.prototype.reduceRight` method
|
|
1151
1151
|
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
|
1152
|
-
right: createMethod
|
|
1152
|
+
right: createMethod(true)
|
|
1153
1153
|
};
|
|
1154
1154
|
|
|
1155
|
-
var fails$
|
|
1155
|
+
var fails$2 = fails$c;
|
|
1156
1156
|
|
|
1157
1157
|
var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
|
|
1158
1158
|
var method = [][METHOD_NAME];
|
|
1159
|
-
return !!method && fails$
|
|
1159
|
+
return !!method && fails$2(function () {
|
|
1160
1160
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
1161
1161
|
method.call(null, argument || function () { return 1; }, 1);
|
|
1162
1162
|
});
|
|
1163
1163
|
};
|
|
1164
1164
|
|
|
1165
|
-
var classof
|
|
1166
|
-
var global$
|
|
1165
|
+
var classof = classofRaw;
|
|
1166
|
+
var global$2 = global$c;
|
|
1167
1167
|
|
|
1168
|
-
var engineIsNode = classof
|
|
1168
|
+
var engineIsNode = classof(global$2.process) == 'process';
|
|
1169
1169
|
|
|
1170
|
-
var $$
|
|
1170
|
+
var $$1 = _export;
|
|
1171
1171
|
var $reduce = arrayReduce.left;
|
|
1172
1172
|
var arrayMethodIsStrict = arrayMethodIsStrict$1;
|
|
1173
1173
|
var CHROME_VERSION = engineV8Version;
|
|
@@ -1180,7 +1180,7 @@ var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
|
|
|
1180
1180
|
|
|
1181
1181
|
// `Array.prototype.reduce` method
|
|
1182
1182
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
1183
|
-
$$
|
|
1183
|
+
$$1({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
|
|
1184
1184
|
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
1185
1185
|
var length = arguments.length;
|
|
1186
1186
|
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
@@ -1192,7 +1192,7 @@ var objectDefineProperties = {};
|
|
|
1192
1192
|
var DESCRIPTORS$1 = descriptors;
|
|
1193
1193
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1194
1194
|
var definePropertyModule = objectDefineProperty;
|
|
1195
|
-
var anObject$
|
|
1195
|
+
var anObject$2 = anObject$5;
|
|
1196
1196
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
1197
1197
|
var objectKeys = objectKeys$2;
|
|
1198
1198
|
|
|
@@ -1200,7 +1200,7 @@ var objectKeys = objectKeys$2;
|
|
|
1200
1200
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1201
1201
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1202
1202
|
objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1203
|
-
anObject$
|
|
1203
|
+
anObject$2(O);
|
|
1204
1204
|
var props = toIndexedObject$1(Properties);
|
|
1205
1205
|
var keys = objectKeys(Properties);
|
|
1206
1206
|
var length = keys.length;
|
|
@@ -1216,7 +1216,7 @@ var html$1 = getBuiltIn('document', 'documentElement');
|
|
|
1216
1216
|
|
|
1217
1217
|
/* global ActiveXObject -- old IE, WSH */
|
|
1218
1218
|
|
|
1219
|
-
var anObject$
|
|
1219
|
+
var anObject$1 = anObject$5;
|
|
1220
1220
|
var definePropertiesModule = objectDefineProperties;
|
|
1221
1221
|
var enumBugKeys = enumBugKeys$3;
|
|
1222
1222
|
var hiddenKeys = hiddenKeys$4;
|
|
@@ -1290,7 +1290,7 @@ hiddenKeys[IE_PROTO$1] = true;
|
|
|
1290
1290
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
1291
1291
|
var result;
|
|
1292
1292
|
if (O !== null) {
|
|
1293
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
1293
|
+
EmptyConstructor[PROTOTYPE] = anObject$1(O);
|
|
1294
1294
|
result = new EmptyConstructor();
|
|
1295
1295
|
EmptyConstructor[PROTOTYPE] = null;
|
|
1296
1296
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -1299,11 +1299,11 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1299
1299
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1300
1300
|
};
|
|
1301
1301
|
|
|
1302
|
-
var wellKnownSymbol$
|
|
1303
|
-
var create$
|
|
1302
|
+
var wellKnownSymbol$4 = wellKnownSymbol$6;
|
|
1303
|
+
var create$1 = objectCreate;
|
|
1304
1304
|
var defineProperty$2 = objectDefineProperty.f;
|
|
1305
1305
|
|
|
1306
|
-
var UNSCOPABLES = wellKnownSymbol$
|
|
1306
|
+
var UNSCOPABLES = wellKnownSymbol$4('unscopables');
|
|
1307
1307
|
var ArrayPrototype = Array.prototype;
|
|
1308
1308
|
|
|
1309
1309
|
// Array.prototype[@@unscopables]
|
|
@@ -1311,7 +1311,7 @@ var ArrayPrototype = Array.prototype;
|
|
|
1311
1311
|
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
1312
1312
|
defineProperty$2(ArrayPrototype, UNSCOPABLES, {
|
|
1313
1313
|
configurable: true,
|
|
1314
|
-
value: create$
|
|
1314
|
+
value: create$1(null)
|
|
1315
1315
|
});
|
|
1316
1316
|
}
|
|
1317
1317
|
|
|
@@ -1322,9 +1322,9 @@ var addToUnscopables$1 = function (key) {
|
|
|
1322
1322
|
|
|
1323
1323
|
var iterators = {};
|
|
1324
1324
|
|
|
1325
|
-
var fails$
|
|
1325
|
+
var fails$1 = fails$c;
|
|
1326
1326
|
|
|
1327
|
-
var correctPrototypeGetter = !fails$
|
|
1327
|
+
var correctPrototypeGetter = !fails$1(function () {
|
|
1328
1328
|
function F() { /* empty */ }
|
|
1329
1329
|
F.prototype.constructor = null;
|
|
1330
1330
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
@@ -1332,35 +1332,35 @@ var correctPrototypeGetter = !fails$6(function () {
|
|
|
1332
1332
|
});
|
|
1333
1333
|
|
|
1334
1334
|
var hasOwn$1 = hasOwnProperty_1;
|
|
1335
|
-
var isCallable$
|
|
1336
|
-
var toObject
|
|
1335
|
+
var isCallable$3 = isCallable$e;
|
|
1336
|
+
var toObject = toObject$4;
|
|
1337
1337
|
var sharedKey = sharedKey$3;
|
|
1338
1338
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1339
1339
|
|
|
1340
1340
|
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1341
|
-
var $Object
|
|
1342
|
-
var ObjectPrototype = $Object
|
|
1341
|
+
var $Object = Object;
|
|
1342
|
+
var ObjectPrototype = $Object.prototype;
|
|
1343
1343
|
|
|
1344
1344
|
// `Object.getPrototypeOf` method
|
|
1345
1345
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1346
1346
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1347
|
-
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object
|
|
1348
|
-
var object = toObject
|
|
1347
|
+
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
|
|
1348
|
+
var object = toObject(O);
|
|
1349
1349
|
if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
|
|
1350
1350
|
var constructor = object.constructor;
|
|
1351
|
-
if (isCallable$
|
|
1351
|
+
if (isCallable$3(constructor) && object instanceof constructor) {
|
|
1352
1352
|
return constructor.prototype;
|
|
1353
|
-
} return object instanceof $Object
|
|
1353
|
+
} return object instanceof $Object ? ObjectPrototype : null;
|
|
1354
1354
|
};
|
|
1355
1355
|
|
|
1356
|
-
var fails
|
|
1357
|
-
var isCallable$
|
|
1356
|
+
var fails = fails$c;
|
|
1357
|
+
var isCallable$2 = isCallable$e;
|
|
1358
1358
|
var isObject = isObject$6;
|
|
1359
1359
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1360
|
-
var defineBuiltIn$
|
|
1361
|
-
var wellKnownSymbol$
|
|
1360
|
+
var defineBuiltIn$1 = defineBuiltIn$3;
|
|
1361
|
+
var wellKnownSymbol$3 = wellKnownSymbol$6;
|
|
1362
1362
|
|
|
1363
|
-
var ITERATOR$2 = wellKnownSymbol$
|
|
1363
|
+
var ITERATOR$2 = wellKnownSymbol$3('iterator');
|
|
1364
1364
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1365
1365
|
|
|
1366
1366
|
// `%IteratorPrototype%` object
|
|
@@ -1378,7 +1378,7 @@ if ([].keys) {
|
|
|
1378
1378
|
}
|
|
1379
1379
|
}
|
|
1380
1380
|
|
|
1381
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails
|
|
1381
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails(function () {
|
|
1382
1382
|
var test = {};
|
|
1383
1383
|
// FF44- legacy iterators case
|
|
1384
1384
|
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
|
@@ -1388,8 +1388,8 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
1388
1388
|
|
|
1389
1389
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1390
1390
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1391
|
-
if (!isCallable$
|
|
1392
|
-
defineBuiltIn$
|
|
1391
|
+
if (!isCallable$2(IteratorPrototype$2[ITERATOR$2])) {
|
|
1392
|
+
defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
|
|
1393
1393
|
return this;
|
|
1394
1394
|
});
|
|
1395
1395
|
}
|
|
@@ -1401,19 +1401,19 @@ var iteratorsCore = {
|
|
|
1401
1401
|
|
|
1402
1402
|
var defineProperty$1 = objectDefineProperty.f;
|
|
1403
1403
|
var hasOwn = hasOwnProperty_1;
|
|
1404
|
-
var wellKnownSymbol$
|
|
1404
|
+
var wellKnownSymbol$2 = wellKnownSymbol$6;
|
|
1405
1405
|
|
|
1406
|
-
var TO_STRING_TAG$
|
|
1406
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
|
|
1407
1407
|
|
|
1408
1408
|
var setToStringTag$2 = function (target, TAG, STATIC) {
|
|
1409
1409
|
if (target && !STATIC) target = target.prototype;
|
|
1410
|
-
if (target && !hasOwn(target, TO_STRING_TAG$
|
|
1411
|
-
defineProperty$1(target, TO_STRING_TAG$
|
|
1410
|
+
if (target && !hasOwn(target, TO_STRING_TAG$1)) {
|
|
1411
|
+
defineProperty$1(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
|
|
1412
1412
|
}
|
|
1413
1413
|
};
|
|
1414
1414
|
|
|
1415
1415
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
1416
|
-
var create
|
|
1416
|
+
var create = objectCreate;
|
|
1417
1417
|
var createPropertyDescriptor = createPropertyDescriptor$3;
|
|
1418
1418
|
var setToStringTag$1 = setToStringTag$2;
|
|
1419
1419
|
var Iterators$2 = iterators;
|
|
@@ -1422,26 +1422,26 @@ var returnThis$1 = function () { return this; };
|
|
|
1422
1422
|
|
|
1423
1423
|
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
1424
1424
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1425
|
-
IteratorConstructor.prototype = create
|
|
1425
|
+
IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
1426
1426
|
setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
|
|
1427
1427
|
Iterators$2[TO_STRING_TAG] = returnThis$1;
|
|
1428
1428
|
return IteratorConstructor;
|
|
1429
1429
|
};
|
|
1430
1430
|
|
|
1431
|
-
var isCallable$
|
|
1431
|
+
var isCallable$1 = isCallable$e;
|
|
1432
1432
|
|
|
1433
|
-
var $String
|
|
1434
|
-
var $TypeError
|
|
1433
|
+
var $String = String;
|
|
1434
|
+
var $TypeError = TypeError;
|
|
1435
1435
|
|
|
1436
1436
|
var aPossiblePrototype$1 = function (argument) {
|
|
1437
|
-
if (typeof argument == 'object' || isCallable$
|
|
1438
|
-
throw $TypeError
|
|
1437
|
+
if (typeof argument == 'object' || isCallable$1(argument)) return argument;
|
|
1438
|
+
throw $TypeError("Can't set " + $String(argument) + ' as a prototype');
|
|
1439
1439
|
};
|
|
1440
1440
|
|
|
1441
1441
|
/* eslint-disable no-proto -- safe */
|
|
1442
1442
|
|
|
1443
|
-
var uncurryThis
|
|
1444
|
-
var anObject
|
|
1443
|
+
var uncurryThis = functionUncurryThis;
|
|
1444
|
+
var anObject = anObject$5;
|
|
1445
1445
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1446
1446
|
|
|
1447
1447
|
// `Object.setPrototypeOf` method
|
|
@@ -1454,12 +1454,12 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1454
1454
|
var setter;
|
|
1455
1455
|
try {
|
|
1456
1456
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1457
|
-
setter = uncurryThis
|
|
1457
|
+
setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
1458
1458
|
setter(test, []);
|
|
1459
1459
|
CORRECT_SETTER = test instanceof Array;
|
|
1460
1460
|
} catch (error) { /* empty */ }
|
|
1461
1461
|
return function setPrototypeOf(O, proto) {
|
|
1462
|
-
anObject
|
|
1462
|
+
anObject(O);
|
|
1463
1463
|
aPossiblePrototype(proto);
|
|
1464
1464
|
if (CORRECT_SETTER) setter(O, proto);
|
|
1465
1465
|
else O.__proto__ = proto;
|
|
@@ -1467,17 +1467,17 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1467
1467
|
};
|
|
1468
1468
|
}() : undefined);
|
|
1469
1469
|
|
|
1470
|
-
var
|
|
1471
|
-
var call
|
|
1470
|
+
var $ = _export;
|
|
1471
|
+
var call = functionCall;
|
|
1472
1472
|
var FunctionName = functionName;
|
|
1473
|
-
var isCallable
|
|
1473
|
+
var isCallable = isCallable$e;
|
|
1474
1474
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
1475
1475
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
1476
1476
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
1477
1477
|
var setToStringTag = setToStringTag$2;
|
|
1478
|
-
var createNonEnumerableProperty$
|
|
1479
|
-
var defineBuiltIn
|
|
1480
|
-
var wellKnownSymbol$
|
|
1478
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
|
|
1479
|
+
var defineBuiltIn = defineBuiltIn$3;
|
|
1480
|
+
var wellKnownSymbol$1 = wellKnownSymbol$6;
|
|
1481
1481
|
var Iterators$1 = iterators;
|
|
1482
1482
|
var IteratorsCore = iteratorsCore;
|
|
1483
1483
|
|
|
@@ -1485,7 +1485,7 @@ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
|
1485
1485
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
1486
1486
|
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
1487
1487
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
1488
|
-
var ITERATOR$1 = wellKnownSymbol$
|
|
1488
|
+
var ITERATOR$1 = wellKnownSymbol$1('iterator');
|
|
1489
1489
|
var KEYS = 'keys';
|
|
1490
1490
|
var VALUES = 'values';
|
|
1491
1491
|
var ENTRIES = 'entries';
|
|
@@ -1522,8 +1522,8 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1522
1522
|
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
1523
1523
|
if (setPrototypeOf) {
|
|
1524
1524
|
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
1525
|
-
} else if (!isCallable
|
|
1526
|
-
defineBuiltIn
|
|
1525
|
+
} else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
1526
|
+
defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
|
1527
1527
|
}
|
|
1528
1528
|
}
|
|
1529
1529
|
// Set @@toStringTag to native iterators
|
|
@@ -1534,10 +1534,10 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1534
1534
|
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1535
1535
|
if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1536
1536
|
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
1537
|
-
createNonEnumerableProperty$
|
|
1537
|
+
createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
|
|
1538
1538
|
} else {
|
|
1539
1539
|
INCORRECT_VALUES_NAME = true;
|
|
1540
|
-
defaultIterator = function values() { return call
|
|
1540
|
+
defaultIterator = function values() { return call(nativeIterator, this); };
|
|
1541
1541
|
}
|
|
1542
1542
|
}
|
|
1543
1543
|
|
|
@@ -1550,14 +1550,14 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1550
1550
|
};
|
|
1551
1551
|
if (FORCED) for (KEY in methods) {
|
|
1552
1552
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1553
|
-
defineBuiltIn
|
|
1553
|
+
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
|
|
1554
1554
|
}
|
|
1555
|
-
} else
|
|
1555
|
+
} else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1556
1556
|
}
|
|
1557
1557
|
|
|
1558
1558
|
// define iterator
|
|
1559
1559
|
if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
|
1560
|
-
defineBuiltIn
|
|
1560
|
+
defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
|
|
1561
1561
|
}
|
|
1562
1562
|
Iterators$1[NAME] = defaultIterator;
|
|
1563
1563
|
|
|
@@ -1581,7 +1581,7 @@ var DESCRIPTORS = descriptors;
|
|
|
1581
1581
|
|
|
1582
1582
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1583
1583
|
var setInternalState = InternalStateModule.set;
|
|
1584
|
-
var getInternalState
|
|
1584
|
+
var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
|
|
1585
1585
|
|
|
1586
1586
|
// `Array.prototype.entries` method
|
|
1587
1587
|
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
@@ -1603,7 +1603,7 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
|
|
|
1603
1603
|
// `%ArrayIteratorPrototype%.next` method
|
|
1604
1604
|
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
1605
1605
|
}, function () {
|
|
1606
|
-
var state = getInternalState
|
|
1606
|
+
var state = getInternalState(this);
|
|
1607
1607
|
var target = state.target;
|
|
1608
1608
|
var kind = state.kind;
|
|
1609
1609
|
var index = state.index++;
|
|
@@ -1675,32 +1675,32 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1675
1675
|
|
|
1676
1676
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1677
1677
|
|
|
1678
|
-
var global$
|
|
1678
|
+
var global$1 = global$c;
|
|
1679
1679
|
var DOMIterables = domIterables;
|
|
1680
1680
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1681
1681
|
var ArrayIteratorMethods = es_array_iterator;
|
|
1682
|
-
var createNonEnumerableProperty
|
|
1683
|
-
var wellKnownSymbol
|
|
1682
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
|
1683
|
+
var wellKnownSymbol = wellKnownSymbol$6;
|
|
1684
1684
|
|
|
1685
|
-
var ITERATOR = wellKnownSymbol
|
|
1686
|
-
var TO_STRING_TAG
|
|
1685
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
1686
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
1687
1687
|
var ArrayValues = ArrayIteratorMethods.values;
|
|
1688
1688
|
|
|
1689
1689
|
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
1690
1690
|
if (CollectionPrototype) {
|
|
1691
1691
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1692
1692
|
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
|
|
1693
|
-
createNonEnumerableProperty
|
|
1693
|
+
createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
|
|
1694
1694
|
} catch (error) {
|
|
1695
1695
|
CollectionPrototype[ITERATOR] = ArrayValues;
|
|
1696
1696
|
}
|
|
1697
|
-
if (!CollectionPrototype[TO_STRING_TAG
|
|
1698
|
-
createNonEnumerableProperty
|
|
1697
|
+
if (!CollectionPrototype[TO_STRING_TAG]) {
|
|
1698
|
+
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
|
|
1699
1699
|
}
|
|
1700
1700
|
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
1701
1701
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1702
1702
|
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
1703
|
-
createNonEnumerableProperty
|
|
1703
|
+
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
1704
1704
|
} catch (error) {
|
|
1705
1705
|
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
1706
1706
|
}
|
|
@@ -1709,7 +1709,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1709
1709
|
};
|
|
1710
1710
|
|
|
1711
1711
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1712
|
-
handlePrototype(global$
|
|
1712
|
+
handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1713
1713
|
}
|
|
1714
1714
|
|
|
1715
1715
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
@@ -1999,595 +1999,21 @@ const Personalize = _a => {
|
|
|
1999
1999
|
}));
|
|
2000
2000
|
};
|
|
2001
2001
|
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
test[TO_STRING_TAG$1] = 'z';
|
|
2008
|
-
|
|
2009
|
-
var toStringTagSupport = String(test) === '[object z]';
|
|
2010
|
-
|
|
2011
|
-
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
2012
|
-
var isCallable$2 = isCallable$h;
|
|
2013
|
-
var classofRaw$1 = classofRaw$2;
|
|
2014
|
-
var wellKnownSymbol$2 = wellKnownSymbol$a;
|
|
2015
|
-
|
|
2016
|
-
var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
|
|
2017
|
-
var $Object = Object;
|
|
2018
|
-
|
|
2019
|
-
// ES3 wrong here
|
|
2020
|
-
var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) == 'Arguments';
|
|
2021
|
-
|
|
2022
|
-
// fallback for IE11 Script Access Denied error
|
|
2023
|
-
var tryGet = function (it, key) {
|
|
2024
|
-
try {
|
|
2025
|
-
return it[key];
|
|
2026
|
-
} catch (error) { /* empty */ }
|
|
2027
|
-
};
|
|
2028
|
-
|
|
2029
|
-
// getting tag from ES6+ `Object.prototype.toString`
|
|
2030
|
-
var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
2031
|
-
var O, tag, result;
|
|
2032
|
-
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
2033
|
-
// @@toStringTag case
|
|
2034
|
-
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
2035
|
-
// builtinTag case
|
|
2036
|
-
: CORRECT_ARGUMENTS ? classofRaw$1(O)
|
|
2037
|
-
// ES3 arguments fallback
|
|
2038
|
-
: (result = classofRaw$1(O)) == 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
|
|
2039
|
-
};
|
|
2040
|
-
|
|
2041
|
-
var classof$1 = classof$2;
|
|
2042
|
-
|
|
2043
|
-
var $String = String;
|
|
2044
|
-
|
|
2045
|
-
var toString$3 = function (argument) {
|
|
2046
|
-
if (classof$1(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
2047
|
-
return $String(argument);
|
|
2048
|
-
};
|
|
2049
|
-
|
|
2050
|
-
var anObject$2 = anObject$8;
|
|
2051
|
-
|
|
2052
|
-
// `RegExp.prototype.flags` getter implementation
|
|
2053
|
-
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
2054
|
-
var regexpFlags$1 = function () {
|
|
2055
|
-
var that = anObject$2(this);
|
|
2056
|
-
var result = '';
|
|
2057
|
-
if (that.hasIndices) result += 'd';
|
|
2058
|
-
if (that.global) result += 'g';
|
|
2059
|
-
if (that.ignoreCase) result += 'i';
|
|
2060
|
-
if (that.multiline) result += 'm';
|
|
2061
|
-
if (that.dotAll) result += 's';
|
|
2062
|
-
if (that.unicode) result += 'u';
|
|
2063
|
-
if (that.unicodeSets) result += 'v';
|
|
2064
|
-
if (that.sticky) result += 'y';
|
|
2065
|
-
return result;
|
|
2066
|
-
};
|
|
2067
|
-
|
|
2068
|
-
var fails$4 = fails$h;
|
|
2069
|
-
var global$3 = global$f;
|
|
2070
|
-
|
|
2071
|
-
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
2072
|
-
var $RegExp$2 = global$3.RegExp;
|
|
2073
|
-
|
|
2074
|
-
var UNSUPPORTED_Y$1 = fails$4(function () {
|
|
2075
|
-
var re = $RegExp$2('a', 'y');
|
|
2076
|
-
re.lastIndex = 2;
|
|
2077
|
-
return re.exec('abcd') != null;
|
|
2078
|
-
});
|
|
2079
|
-
|
|
2080
|
-
// UC Browser bug
|
|
2081
|
-
// https://github.com/zloirock/core-js/issues/1008
|
|
2082
|
-
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$4(function () {
|
|
2083
|
-
return !$RegExp$2('a', 'y').sticky;
|
|
2084
|
-
});
|
|
2085
|
-
|
|
2086
|
-
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$4(function () {
|
|
2087
|
-
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
2088
|
-
var re = $RegExp$2('^r', 'gy');
|
|
2089
|
-
re.lastIndex = 2;
|
|
2090
|
-
return re.exec('str') != null;
|
|
2091
|
-
});
|
|
2092
|
-
|
|
2093
|
-
var regexpStickyHelpers = {
|
|
2094
|
-
BROKEN_CARET: BROKEN_CARET,
|
|
2095
|
-
MISSED_STICKY: MISSED_STICKY,
|
|
2096
|
-
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
2097
|
-
};
|
|
2098
|
-
|
|
2099
|
-
var fails$3 = fails$h;
|
|
2100
|
-
var global$2 = global$f;
|
|
2101
|
-
|
|
2102
|
-
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
2103
|
-
var $RegExp$1 = global$2.RegExp;
|
|
2104
|
-
|
|
2105
|
-
var regexpUnsupportedDotAll = fails$3(function () {
|
|
2106
|
-
var re = $RegExp$1('.', 's');
|
|
2107
|
-
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
2108
|
-
});
|
|
2109
|
-
|
|
2110
|
-
var fails$2 = fails$h;
|
|
2111
|
-
var global$1 = global$f;
|
|
2112
|
-
|
|
2113
|
-
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
2114
|
-
var $RegExp = global$1.RegExp;
|
|
2115
|
-
|
|
2116
|
-
var regexpUnsupportedNcg = fails$2(function () {
|
|
2117
|
-
var re = $RegExp('(?<a>b)', 'g');
|
|
2118
|
-
return re.exec('b').groups.a !== 'b' ||
|
|
2119
|
-
'b'.replace(re, '$<a>c') !== 'bc';
|
|
2120
|
-
});
|
|
2121
|
-
|
|
2122
|
-
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
2123
|
-
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
2124
|
-
var call$3 = functionCall;
|
|
2125
|
-
var uncurryThis$5 = functionUncurryThis;
|
|
2126
|
-
var toString$2 = toString$3;
|
|
2127
|
-
var regexpFlags = regexpFlags$1;
|
|
2128
|
-
var stickyHelpers = regexpStickyHelpers;
|
|
2129
|
-
var shared = shared$4.exports;
|
|
2130
|
-
var create = objectCreate;
|
|
2131
|
-
var getInternalState = internalState.get;
|
|
2132
|
-
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
2133
|
-
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
2134
|
-
|
|
2135
|
-
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
2136
|
-
var nativeExec = RegExp.prototype.exec;
|
|
2137
|
-
var patchedExec = nativeExec;
|
|
2138
|
-
var charAt$3 = uncurryThis$5(''.charAt);
|
|
2139
|
-
var indexOf = uncurryThis$5(''.indexOf);
|
|
2140
|
-
var replace$1 = uncurryThis$5(''.replace);
|
|
2141
|
-
var stringSlice$3 = uncurryThis$5(''.slice);
|
|
2142
|
-
|
|
2143
|
-
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
2144
|
-
var re1 = /a/;
|
|
2145
|
-
var re2 = /b*/g;
|
|
2146
|
-
call$3(nativeExec, re1, 'a');
|
|
2147
|
-
call$3(nativeExec, re2, 'a');
|
|
2148
|
-
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
2149
|
-
})();
|
|
2150
|
-
|
|
2151
|
-
var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
|
|
2152
|
-
|
|
2153
|
-
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
2154
|
-
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
2155
|
-
|
|
2156
|
-
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
2157
|
-
|
|
2158
|
-
if (PATCH) {
|
|
2159
|
-
patchedExec = function exec(string) {
|
|
2160
|
-
var re = this;
|
|
2161
|
-
var state = getInternalState(re);
|
|
2162
|
-
var str = toString$2(string);
|
|
2163
|
-
var raw = state.raw;
|
|
2164
|
-
var result, reCopy, lastIndex, match, i, object, group;
|
|
2165
|
-
|
|
2166
|
-
if (raw) {
|
|
2167
|
-
raw.lastIndex = re.lastIndex;
|
|
2168
|
-
result = call$3(patchedExec, raw, str);
|
|
2169
|
-
re.lastIndex = raw.lastIndex;
|
|
2170
|
-
return result;
|
|
2171
|
-
}
|
|
2172
|
-
|
|
2173
|
-
var groups = state.groups;
|
|
2174
|
-
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
2175
|
-
var flags = call$3(regexpFlags, re);
|
|
2176
|
-
var source = re.source;
|
|
2177
|
-
var charsAdded = 0;
|
|
2178
|
-
var strCopy = str;
|
|
2179
|
-
|
|
2180
|
-
if (sticky) {
|
|
2181
|
-
flags = replace$1(flags, 'y', '');
|
|
2182
|
-
if (indexOf(flags, 'g') === -1) {
|
|
2183
|
-
flags += 'g';
|
|
2184
|
-
}
|
|
2185
|
-
|
|
2186
|
-
strCopy = stringSlice$3(str, re.lastIndex);
|
|
2187
|
-
// Support anchored sticky behavior.
|
|
2188
|
-
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
|
|
2189
|
-
source = '(?: ' + source + ')';
|
|
2190
|
-
strCopy = ' ' + strCopy;
|
|
2191
|
-
charsAdded++;
|
|
2192
|
-
}
|
|
2193
|
-
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
|
2194
|
-
// simulate the 'y' flag.
|
|
2195
|
-
reCopy = new RegExp('^(?:' + source + ')', flags);
|
|
2196
|
-
}
|
|
2197
|
-
|
|
2198
|
-
if (NPCG_INCLUDED) {
|
|
2199
|
-
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
|
2200
|
-
}
|
|
2201
|
-
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
2202
|
-
|
|
2203
|
-
match = call$3(nativeExec, sticky ? reCopy : re, strCopy);
|
|
2204
|
-
|
|
2205
|
-
if (sticky) {
|
|
2206
|
-
if (match) {
|
|
2207
|
-
match.input = stringSlice$3(match.input, charsAdded);
|
|
2208
|
-
match[0] = stringSlice$3(match[0], charsAdded);
|
|
2209
|
-
match.index = re.lastIndex;
|
|
2210
|
-
re.lastIndex += match[0].length;
|
|
2211
|
-
} else re.lastIndex = 0;
|
|
2212
|
-
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
2213
|
-
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
|
2214
|
-
}
|
|
2215
|
-
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
2216
|
-
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
2217
|
-
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
2218
|
-
call$3(nativeReplace, match[0], reCopy, function () {
|
|
2219
|
-
for (i = 1; i < arguments.length - 2; i++) {
|
|
2220
|
-
if (arguments[i] === undefined) match[i] = undefined;
|
|
2221
|
-
}
|
|
2222
|
-
});
|
|
2223
|
-
}
|
|
2224
|
-
|
|
2225
|
-
if (match && groups) {
|
|
2226
|
-
match.groups = object = create(null);
|
|
2227
|
-
for (i = 0; i < groups.length; i++) {
|
|
2228
|
-
group = groups[i];
|
|
2229
|
-
object[group[0]] = match[group[1]];
|
|
2230
|
-
}
|
|
2231
|
-
}
|
|
2232
|
-
|
|
2233
|
-
return match;
|
|
2234
|
-
};
|
|
2235
|
-
}
|
|
2236
|
-
|
|
2237
|
-
var regexpExec$2 = patchedExec;
|
|
2238
|
-
|
|
2239
|
-
var $ = _export;
|
|
2240
|
-
var exec = regexpExec$2;
|
|
2241
|
-
|
|
2242
|
-
// `RegExp.prototype.exec` method
|
|
2243
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
2244
|
-
$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
2245
|
-
exec: exec
|
|
2246
|
-
});
|
|
2247
|
-
|
|
2248
|
-
var NATIVE_BIND = functionBindNative;
|
|
2249
|
-
|
|
2250
|
-
var FunctionPrototype = Function.prototype;
|
|
2251
|
-
var apply$1 = FunctionPrototype.apply;
|
|
2252
|
-
var call$2 = FunctionPrototype.call;
|
|
2253
|
-
|
|
2254
|
-
// eslint-disable-next-line es/no-reflect -- safe
|
|
2255
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$2.bind(apply$1) : function () {
|
|
2256
|
-
return call$2.apply(apply$1, arguments);
|
|
2257
|
-
});
|
|
2258
|
-
|
|
2259
|
-
var classofRaw = classofRaw$2;
|
|
2260
|
-
var uncurryThis$4 = functionUncurryThis;
|
|
2261
|
-
|
|
2262
|
-
var functionUncurryThisClause = function (fn) {
|
|
2263
|
-
// Nashorn bug:
|
|
2264
|
-
// https://github.com/zloirock/core-js/issues/1128
|
|
2265
|
-
// https://github.com/zloirock/core-js/issues/1130
|
|
2266
|
-
if (classofRaw(fn) === 'Function') return uncurryThis$4(fn);
|
|
2267
|
-
};
|
|
2268
|
-
|
|
2269
|
-
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
2270
|
-
|
|
2271
|
-
var uncurryThis$3 = functionUncurryThisClause;
|
|
2272
|
-
var defineBuiltIn = defineBuiltIn$4;
|
|
2273
|
-
var regexpExec$1 = regexpExec$2;
|
|
2274
|
-
var fails$1 = fails$h;
|
|
2275
|
-
var wellKnownSymbol$1 = wellKnownSymbol$a;
|
|
2276
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$5;
|
|
2277
|
-
|
|
2278
|
-
var SPECIES = wellKnownSymbol$1('species');
|
|
2279
|
-
var RegExpPrototype = RegExp.prototype;
|
|
2280
|
-
|
|
2281
|
-
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
2282
|
-
var SYMBOL = wellKnownSymbol$1(KEY);
|
|
2283
|
-
|
|
2284
|
-
var DELEGATES_TO_SYMBOL = !fails$1(function () {
|
|
2285
|
-
// String methods call symbol-named RegEp methods
|
|
2286
|
-
var O = {};
|
|
2287
|
-
O[SYMBOL] = function () { return 7; };
|
|
2288
|
-
return ''[KEY](O) != 7;
|
|
2289
|
-
});
|
|
2290
|
-
|
|
2291
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
|
|
2292
|
-
// Symbol-named RegExp methods call .exec
|
|
2293
|
-
var execCalled = false;
|
|
2294
|
-
var re = /a/;
|
|
2295
|
-
|
|
2296
|
-
if (KEY === 'split') {
|
|
2297
|
-
// We can't use real regex here since it causes deoptimization
|
|
2298
|
-
// and serious performance degradation in V8
|
|
2299
|
-
// https://github.com/zloirock/core-js/issues/306
|
|
2300
|
-
re = {};
|
|
2301
|
-
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
2302
|
-
// a new one. We need to return the patched regex when creating the new one.
|
|
2303
|
-
re.constructor = {};
|
|
2304
|
-
re.constructor[SPECIES] = function () { return re; };
|
|
2305
|
-
re.flags = '';
|
|
2306
|
-
re[SYMBOL] = /./[SYMBOL];
|
|
2307
|
-
}
|
|
2308
|
-
|
|
2309
|
-
re.exec = function () { execCalled = true; return null; };
|
|
2310
|
-
|
|
2311
|
-
re[SYMBOL]('');
|
|
2312
|
-
return !execCalled;
|
|
2002
|
+
const generateSelectors = id => {
|
|
2003
|
+
return id.split('_').map((path, index, paths) => {
|
|
2004
|
+
const dotPath = paths.slice(0, index).join('.');
|
|
2005
|
+
const underScorePath = paths.slice(index).join('_');
|
|
2006
|
+
return [dotPath, underScorePath].filter(path => path !== '').join('.');
|
|
2313
2007
|
});
|
|
2314
|
-
|
|
2315
|
-
if (
|
|
2316
|
-
!DELEGATES_TO_SYMBOL ||
|
|
2317
|
-
!DELEGATES_TO_EXEC ||
|
|
2318
|
-
FORCED
|
|
2319
|
-
) {
|
|
2320
|
-
var uncurriedNativeRegExpMethod = uncurryThis$3(/./[SYMBOL]);
|
|
2321
|
-
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
2322
|
-
var uncurriedNativeMethod = uncurryThis$3(nativeMethod);
|
|
2323
|
-
var $exec = regexp.exec;
|
|
2324
|
-
if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
|
|
2325
|
-
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
2326
|
-
// The native String method already delegates to @@method (this
|
|
2327
|
-
// polyfilled function), leasing to infinite recursion.
|
|
2328
|
-
// We avoid it by directly calling the native @@method method.
|
|
2329
|
-
return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
|
|
2330
|
-
}
|
|
2331
|
-
return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
|
|
2332
|
-
}
|
|
2333
|
-
return { done: false };
|
|
2334
|
-
});
|
|
2335
|
-
|
|
2336
|
-
defineBuiltIn(String.prototype, KEY, methods[0]);
|
|
2337
|
-
defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
|
|
2338
|
-
}
|
|
2339
|
-
|
|
2340
|
-
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
2341
|
-
};
|
|
2342
|
-
|
|
2343
|
-
var uncurryThis$2 = functionUncurryThis;
|
|
2344
|
-
var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
|
|
2345
|
-
var toString$1 = toString$3;
|
|
2346
|
-
var requireObjectCoercible$1 = requireObjectCoercible$4;
|
|
2347
|
-
|
|
2348
|
-
var charAt$2 = uncurryThis$2(''.charAt);
|
|
2349
|
-
var charCodeAt = uncurryThis$2(''.charCodeAt);
|
|
2350
|
-
var stringSlice$2 = uncurryThis$2(''.slice);
|
|
2351
|
-
|
|
2352
|
-
var createMethod = function (CONVERT_TO_STRING) {
|
|
2353
|
-
return function ($this, pos) {
|
|
2354
|
-
var S = toString$1(requireObjectCoercible$1($this));
|
|
2355
|
-
var position = toIntegerOrInfinity$1(pos);
|
|
2356
|
-
var size = S.length;
|
|
2357
|
-
var first, second;
|
|
2358
|
-
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
2359
|
-
first = charCodeAt(S, position);
|
|
2360
|
-
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
2361
|
-
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
2362
|
-
? CONVERT_TO_STRING
|
|
2363
|
-
? charAt$2(S, position)
|
|
2364
|
-
: first
|
|
2365
|
-
: CONVERT_TO_STRING
|
|
2366
|
-
? stringSlice$2(S, position, position + 2)
|
|
2367
|
-
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
2368
|
-
};
|
|
2369
2008
|
};
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
// `String.prototype.at` method
|
|
2376
|
-
// https://github.com/mathiasbynens/String.prototype.at
|
|
2377
|
-
charAt: createMethod(true)
|
|
2378
|
-
};
|
|
2379
|
-
|
|
2380
|
-
var charAt$1 = stringMultibyte.charAt;
|
|
2381
|
-
|
|
2382
|
-
// `AdvanceStringIndex` abstract operation
|
|
2383
|
-
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
2384
|
-
var advanceStringIndex$1 = function (S, index, unicode) {
|
|
2385
|
-
return index + (unicode ? charAt$1(S, index).length : 1);
|
|
2386
|
-
};
|
|
2387
|
-
|
|
2388
|
-
var uncurryThis$1 = functionUncurryThis;
|
|
2389
|
-
var toObject = toObject$5;
|
|
2390
|
-
|
|
2391
|
-
var floor = Math.floor;
|
|
2392
|
-
var charAt = uncurryThis$1(''.charAt);
|
|
2393
|
-
var replace = uncurryThis$1(''.replace);
|
|
2394
|
-
var stringSlice$1 = uncurryThis$1(''.slice);
|
|
2395
|
-
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
2396
|
-
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
2397
|
-
|
|
2398
|
-
// `GetSubstitution` abstract operation
|
|
2399
|
-
// https://tc39.es/ecma262/#sec-getsubstitution
|
|
2400
|
-
var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
|
|
2401
|
-
var tailPos = position + matched.length;
|
|
2402
|
-
var m = captures.length;
|
|
2403
|
-
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
2404
|
-
if (namedCaptures !== undefined) {
|
|
2405
|
-
namedCaptures = toObject(namedCaptures);
|
|
2406
|
-
symbols = SUBSTITUTION_SYMBOLS;
|
|
2407
|
-
}
|
|
2408
|
-
return replace(replacement, symbols, function (match, ch) {
|
|
2409
|
-
var capture;
|
|
2410
|
-
switch (charAt(ch, 0)) {
|
|
2411
|
-
case '$': return '$';
|
|
2412
|
-
case '&': return matched;
|
|
2413
|
-
case '`': return stringSlice$1(str, 0, position);
|
|
2414
|
-
case "'": return stringSlice$1(str, tailPos);
|
|
2415
|
-
case '<':
|
|
2416
|
-
capture = namedCaptures[stringSlice$1(ch, 1, -1)];
|
|
2417
|
-
break;
|
|
2418
|
-
default: // \d\d?
|
|
2419
|
-
var n = +ch;
|
|
2420
|
-
if (n === 0) return match;
|
|
2421
|
-
if (n > m) {
|
|
2422
|
-
var f = floor(n / 10);
|
|
2423
|
-
if (f === 0) return match;
|
|
2424
|
-
if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
|
|
2425
|
-
return match;
|
|
2426
|
-
}
|
|
2427
|
-
capture = captures[n - 1];
|
|
2428
|
-
}
|
|
2429
|
-
return capture === undefined ? '' : capture;
|
|
2430
|
-
});
|
|
2431
|
-
};
|
|
2432
|
-
|
|
2433
|
-
var call$1 = functionCall;
|
|
2434
|
-
var anObject$1 = anObject$8;
|
|
2435
|
-
var isCallable$1 = isCallable$h;
|
|
2436
|
-
var classof = classofRaw$2;
|
|
2437
|
-
var regexpExec = regexpExec$2;
|
|
2438
|
-
|
|
2439
|
-
var $TypeError = TypeError;
|
|
2440
|
-
|
|
2441
|
-
// `RegExpExec` abstract operation
|
|
2442
|
-
// https://tc39.es/ecma262/#sec-regexpexec
|
|
2443
|
-
var regexpExecAbstract = function (R, S) {
|
|
2444
|
-
var exec = R.exec;
|
|
2445
|
-
if (isCallable$1(exec)) {
|
|
2446
|
-
var result = call$1(exec, R, S);
|
|
2447
|
-
if (result !== null) anObject$1(result);
|
|
2448
|
-
return result;
|
|
2009
|
+
const selectValueFromProfile = (profile, id) => {
|
|
2010
|
+
const selectors = generateSelectors(id);
|
|
2011
|
+
const matchingSelector = selectors.find(selector => get__default["default"](profile, selector));
|
|
2012
|
+
if (!matchingSelector) {
|
|
2013
|
+
return null;
|
|
2449
2014
|
}
|
|
2450
|
-
|
|
2451
|
-
throw $TypeError('RegExp#exec called on incompatible receiver');
|
|
2015
|
+
return get__default["default"](profile, matchingSelector);
|
|
2452
2016
|
};
|
|
2453
|
-
|
|
2454
|
-
var apply = functionApply;
|
|
2455
|
-
var call = functionCall;
|
|
2456
|
-
var uncurryThis = functionUncurryThis;
|
|
2457
|
-
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
2458
|
-
var fails = fails$h;
|
|
2459
|
-
var anObject = anObject$8;
|
|
2460
|
-
var isCallable = isCallable$h;
|
|
2461
|
-
var isNullOrUndefined = isNullOrUndefined$3;
|
|
2462
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$4;
|
|
2463
|
-
var toLength = toLength$2;
|
|
2464
|
-
var toString = toString$3;
|
|
2465
|
-
var requireObjectCoercible = requireObjectCoercible$4;
|
|
2466
|
-
var advanceStringIndex = advanceStringIndex$1;
|
|
2467
|
-
var getMethod = getMethod$2;
|
|
2468
|
-
var getSubstitution = getSubstitution$1;
|
|
2469
|
-
var regExpExec = regexpExecAbstract;
|
|
2470
|
-
var wellKnownSymbol = wellKnownSymbol$a;
|
|
2471
|
-
|
|
2472
|
-
var REPLACE = wellKnownSymbol('replace');
|
|
2473
|
-
var max = Math.max;
|
|
2474
|
-
var min = Math.min;
|
|
2475
|
-
var concat = uncurryThis([].concat);
|
|
2476
|
-
var push = uncurryThis([].push);
|
|
2477
|
-
var stringIndexOf = uncurryThis(''.indexOf);
|
|
2478
|
-
var stringSlice = uncurryThis(''.slice);
|
|
2479
|
-
|
|
2480
|
-
var maybeToString = function (it) {
|
|
2481
|
-
return it === undefined ? it : String(it);
|
|
2482
|
-
};
|
|
2483
|
-
|
|
2484
|
-
// IE <= 11 replaces $0 with the whole match, as if it was $&
|
|
2485
|
-
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
|
|
2486
|
-
var REPLACE_KEEPS_$0 = (function () {
|
|
2487
|
-
// eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
|
|
2488
|
-
return 'a'.replace(/./, '$0') === '$0';
|
|
2489
|
-
})();
|
|
2490
|
-
|
|
2491
|
-
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
|
2492
|
-
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
2493
|
-
if (/./[REPLACE]) {
|
|
2494
|
-
return /./[REPLACE]('a', '$0') === '';
|
|
2495
|
-
}
|
|
2496
|
-
return false;
|
|
2497
|
-
})();
|
|
2498
|
-
|
|
2499
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
|
2500
|
-
var re = /./;
|
|
2501
|
-
re.exec = function () {
|
|
2502
|
-
var result = [];
|
|
2503
|
-
result.groups = { a: '7' };
|
|
2504
|
-
return result;
|
|
2505
|
-
};
|
|
2506
|
-
// eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
|
|
2507
|
-
return ''.replace(re, '$<a>') !== '7';
|
|
2508
|
-
});
|
|
2509
|
-
|
|
2510
|
-
// @@replace logic
|
|
2511
|
-
fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
|
|
2512
|
-
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
|
2513
|
-
|
|
2514
|
-
return [
|
|
2515
|
-
// `String.prototype.replace` method
|
|
2516
|
-
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
2517
|
-
function replace(searchValue, replaceValue) {
|
|
2518
|
-
var O = requireObjectCoercible(this);
|
|
2519
|
-
var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
|
|
2520
|
-
return replacer
|
|
2521
|
-
? call(replacer, searchValue, O, replaceValue)
|
|
2522
|
-
: call(nativeReplace, toString(O), searchValue, replaceValue);
|
|
2523
|
-
},
|
|
2524
|
-
// `RegExp.prototype[@@replace]` method
|
|
2525
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
2526
|
-
function (string, replaceValue) {
|
|
2527
|
-
var rx = anObject(this);
|
|
2528
|
-
var S = toString(string);
|
|
2529
|
-
|
|
2530
|
-
if (
|
|
2531
|
-
typeof replaceValue == 'string' &&
|
|
2532
|
-
stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
|
|
2533
|
-
stringIndexOf(replaceValue, '$<') === -1
|
|
2534
|
-
) {
|
|
2535
|
-
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
|
2536
|
-
if (res.done) return res.value;
|
|
2537
|
-
}
|
|
2538
|
-
|
|
2539
|
-
var functionalReplace = isCallable(replaceValue);
|
|
2540
|
-
if (!functionalReplace) replaceValue = toString(replaceValue);
|
|
2541
|
-
|
|
2542
|
-
var global = rx.global;
|
|
2543
|
-
if (global) {
|
|
2544
|
-
var fullUnicode = rx.unicode;
|
|
2545
|
-
rx.lastIndex = 0;
|
|
2546
|
-
}
|
|
2547
|
-
var results = [];
|
|
2548
|
-
while (true) {
|
|
2549
|
-
var result = regExpExec(rx, S);
|
|
2550
|
-
if (result === null) break;
|
|
2551
|
-
|
|
2552
|
-
push(results, result);
|
|
2553
|
-
if (!global) break;
|
|
2554
|
-
|
|
2555
|
-
var matchStr = toString(result[0]);
|
|
2556
|
-
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
2557
|
-
}
|
|
2558
|
-
|
|
2559
|
-
var accumulatedResult = '';
|
|
2560
|
-
var nextSourcePosition = 0;
|
|
2561
|
-
for (var i = 0; i < results.length; i++) {
|
|
2562
|
-
result = results[i];
|
|
2563
|
-
|
|
2564
|
-
var matched = toString(result[0]);
|
|
2565
|
-
var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
|
|
2566
|
-
var captures = [];
|
|
2567
|
-
// NOTE: This is equivalent to
|
|
2568
|
-
// captures = result.slice(1).map(maybeToString)
|
|
2569
|
-
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
2570
|
-
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
|
2571
|
-
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
|
2572
|
-
for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
|
|
2573
|
-
var namedCaptures = result.groups;
|
|
2574
|
-
if (functionalReplace) {
|
|
2575
|
-
var replacerArgs = concat([matched], captures, position, S);
|
|
2576
|
-
if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
|
|
2577
|
-
var replacement = toString(apply(replaceValue, undefined, replacerArgs));
|
|
2578
|
-
} else {
|
|
2579
|
-
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
2580
|
-
}
|
|
2581
|
-
if (position >= nextSourcePosition) {
|
|
2582
|
-
accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
|
|
2583
|
-
nextSourcePosition = position + matched.length;
|
|
2584
|
-
}
|
|
2585
|
-
}
|
|
2586
|
-
return accumulatedResult + stringSlice(S, nextSourcePosition);
|
|
2587
|
-
}
|
|
2588
|
-
];
|
|
2589
|
-
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
|
2590
|
-
|
|
2591
2017
|
const MergeTag = ({
|
|
2592
2018
|
id
|
|
2593
2019
|
}) => {
|
|
@@ -2598,7 +2024,7 @@ const MergeTag = ({
|
|
|
2598
2024
|
if (loading || !profile) {
|
|
2599
2025
|
return null;
|
|
2600
2026
|
}
|
|
2601
|
-
const value =
|
|
2027
|
+
const value = selectValueFromProfile(profile, id);
|
|
2602
2028
|
// DON'T CHANGE
|
|
2603
2029
|
return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
2604
2030
|
children: value
|