@ninetailed/experience.js 3.0.0-beta.26 → 3.0.0-beta.31
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 +229 -166
- package/index.js +230 -167
- package/lib/Ninetailed.d.ts +8 -8
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import unionBy from 'lodash/unionBy';
|
|
2
|
-
import { NinetailedApiClient, logger, ConsoleLogSink, buildPageEvent, buildTrackEvent, buildIdentifyEvent, OnLogLogSink, OnErrorLogSink } from '@ninetailed/experience.js-shared';
|
|
2
|
+
import { NinetailedApiClient, logger, ConsoleLogSink, buildPageEvent, buildTrackEvent, buildIdentifyEvent, OnLogLogSink, OnErrorLogSink, PageviewProperties, Properties, Traits } from '@ninetailed/experience.js-shared';
|
|
3
3
|
import Analytics from 'analytics';
|
|
4
4
|
import flatten from 'lodash/flatten';
|
|
5
5
|
import find from 'lodash/find';
|
|
@@ -26,7 +26,7 @@ var global$n =
|
|
|
26
26
|
|
|
27
27
|
var objectGetOwnPropertyDescriptor = {};
|
|
28
28
|
|
|
29
|
-
var fails$
|
|
29
|
+
var fails$m = function (exec) {
|
|
30
30
|
try {
|
|
31
31
|
return !!exec();
|
|
32
32
|
} catch (error) {
|
|
@@ -34,17 +34,17 @@ var fails$l = function (exec) {
|
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
var fails$
|
|
37
|
+
var fails$l = fails$m;
|
|
38
38
|
|
|
39
39
|
// Detect IE8's incomplete defineProperty implementation
|
|
40
|
-
var descriptors = !fails$
|
|
40
|
+
var descriptors = !fails$l(function () {
|
|
41
41
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
42
42
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
43
43
|
});
|
|
44
44
|
|
|
45
|
-
var fails$
|
|
45
|
+
var fails$k = fails$m;
|
|
46
46
|
|
|
47
|
-
var functionBindNative = !fails$
|
|
47
|
+
var functionBindNative = !fails$k(function () {
|
|
48
48
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
49
49
|
var test = (function () { /* empty */ }).bind();
|
|
50
50
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -53,10 +53,10 @@ var functionBindNative = !fails$j(function () {
|
|
|
53
53
|
|
|
54
54
|
var NATIVE_BIND$3 = functionBindNative;
|
|
55
55
|
|
|
56
|
-
var call$
|
|
56
|
+
var call$i = Function.prototype.call;
|
|
57
57
|
|
|
58
|
-
var functionCall = NATIVE_BIND$3 ? call$
|
|
59
|
-
return call$
|
|
58
|
+
var functionCall = NATIVE_BIND$3 ? call$i.bind(call$i) : function () {
|
|
59
|
+
return call$i.apply(call$i, arguments);
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
var objectPropertyIsEnumerable = {};
|
|
@@ -87,12 +87,12 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
|
87
87
|
var NATIVE_BIND$2 = functionBindNative;
|
|
88
88
|
|
|
89
89
|
var FunctionPrototype$2 = Function.prototype;
|
|
90
|
-
var call$
|
|
91
|
-
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$
|
|
90
|
+
var call$h = FunctionPrototype$2.call;
|
|
91
|
+
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$h, call$h);
|
|
92
92
|
|
|
93
93
|
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
94
94
|
return function () {
|
|
95
|
-
return call$
|
|
95
|
+
return call$h.apply(fn, arguments);
|
|
96
96
|
};
|
|
97
97
|
};
|
|
98
98
|
|
|
@@ -106,14 +106,14 @@ var classofRaw$2 = function (it) {
|
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
var uncurryThis$l = functionUncurryThis;
|
|
109
|
-
var fails$
|
|
109
|
+
var fails$j = fails$m;
|
|
110
110
|
var classof$7 = classofRaw$2;
|
|
111
111
|
|
|
112
112
|
var $Object$4 = Object;
|
|
113
113
|
var split = uncurryThis$l(''.split);
|
|
114
114
|
|
|
115
115
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
116
|
-
var indexedObject = fails$
|
|
116
|
+
var indexedObject = fails$j(function () {
|
|
117
117
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
118
118
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
119
119
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
@@ -229,10 +229,10 @@ var engineV8Version = version;
|
|
|
229
229
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
230
230
|
|
|
231
231
|
var V8_VERSION$1 = engineV8Version;
|
|
232
|
-
var fails$
|
|
232
|
+
var fails$i = fails$m;
|
|
233
233
|
|
|
234
234
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
235
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
235
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$i(function () {
|
|
236
236
|
var symbol = Symbol();
|
|
237
237
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
238
238
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -251,7 +251,7 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
251
251
|
|
|
252
252
|
var getBuiltIn$6 = getBuiltIn$8;
|
|
253
253
|
var isCallable$j = isCallable$m;
|
|
254
|
-
var isPrototypeOf$
|
|
254
|
+
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
255
255
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
256
256
|
|
|
257
257
|
var $Object$3 = Object;
|
|
@@ -260,7 +260,7 @@ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
|
260
260
|
return typeof it == 'symbol';
|
|
261
261
|
} : function (it) {
|
|
262
262
|
var $Symbol = getBuiltIn$6('Symbol');
|
|
263
|
-
return isCallable$j($Symbol) && isPrototypeOf$
|
|
263
|
+
return isCallable$j($Symbol) && isPrototypeOf$3($Symbol.prototype, $Object$3(it));
|
|
264
264
|
};
|
|
265
265
|
|
|
266
266
|
var $String$3 = String;
|
|
@@ -294,7 +294,7 @@ var getMethod$4 = function (V, P) {
|
|
|
294
294
|
return isNullOrUndefined$3(func) ? undefined : aCallable$7(func);
|
|
295
295
|
};
|
|
296
296
|
|
|
297
|
-
var call$
|
|
297
|
+
var call$g = functionCall;
|
|
298
298
|
var isCallable$h = isCallable$m;
|
|
299
299
|
var isObject$8 = isObject$9;
|
|
300
300
|
|
|
@@ -304,9 +304,9 @@ var $TypeError$d = TypeError;
|
|
|
304
304
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
305
305
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
306
306
|
var fn, val;
|
|
307
|
-
if (pref === 'string' && isCallable$h(fn = input.toString) && !isObject$8(val = call$
|
|
308
|
-
if (isCallable$h(fn = input.valueOf) && !isObject$8(val = call$
|
|
309
|
-
if (pref !== 'string' && isCallable$h(fn = input.toString) && !isObject$8(val = call$
|
|
307
|
+
if (pref === 'string' && isCallable$h(fn = input.toString) && !isObject$8(val = call$g(fn, input))) return val;
|
|
308
|
+
if (isCallable$h(fn = input.valueOf) && !isObject$8(val = call$g(fn, input))) return val;
|
|
309
|
+
if (pref !== 'string' && isCallable$h(fn = input.toString) && !isObject$8(val = call$g(fn, input))) return val;
|
|
310
310
|
throw $TypeError$d("Can't convert object to primitive value");
|
|
311
311
|
};
|
|
312
312
|
|
|
@@ -379,7 +379,7 @@ var uid$2 = function (key) {
|
|
|
379
379
|
|
|
380
380
|
var global$i = global$n;
|
|
381
381
|
var shared$3 = shared$4.exports;
|
|
382
|
-
var hasOwn$
|
|
382
|
+
var hasOwn$a = hasOwnProperty_1;
|
|
383
383
|
var uid$1 = uid$2;
|
|
384
384
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
385
385
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
@@ -390,9 +390,9 @@ var symbolFor = Symbol$2 && Symbol$2['for'];
|
|
|
390
390
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
|
|
391
391
|
|
|
392
392
|
var wellKnownSymbol$i = function (name) {
|
|
393
|
-
if (!hasOwn$
|
|
393
|
+
if (!hasOwn$a(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
394
394
|
var description = 'Symbol.' + name;
|
|
395
|
-
if (NATIVE_SYMBOL && hasOwn$
|
|
395
|
+
if (NATIVE_SYMBOL && hasOwn$a(Symbol$2, name)) {
|
|
396
396
|
WellKnownSymbolsStore[name] = Symbol$2[name];
|
|
397
397
|
} else if (USE_SYMBOL_AS_UID && symbolFor) {
|
|
398
398
|
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
@@ -402,7 +402,7 @@ var wellKnownSymbol$i = function (name) {
|
|
|
402
402
|
} return WellKnownSymbolsStore[name];
|
|
403
403
|
};
|
|
404
404
|
|
|
405
|
-
var call$
|
|
405
|
+
var call$f = functionCall;
|
|
406
406
|
var isObject$7 = isObject$9;
|
|
407
407
|
var isSymbol$1 = isSymbol$2;
|
|
408
408
|
var getMethod$3 = getMethod$4;
|
|
@@ -420,7 +420,7 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
420
420
|
var result;
|
|
421
421
|
if (exoticToPrim) {
|
|
422
422
|
if (pref === undefined) pref = 'default';
|
|
423
|
-
result = call$
|
|
423
|
+
result = call$f(exoticToPrim, input, pref);
|
|
424
424
|
if (!isObject$7(result) || isSymbol$1(result)) return result;
|
|
425
425
|
throw $TypeError$c("Can't convert object to primitive value");
|
|
426
426
|
}
|
|
@@ -450,11 +450,11 @@ var documentCreateElement$2 = function (it) {
|
|
|
450
450
|
};
|
|
451
451
|
|
|
452
452
|
var DESCRIPTORS$a = descriptors;
|
|
453
|
-
var fails$
|
|
453
|
+
var fails$h = fails$m;
|
|
454
454
|
var createElement$1 = documentCreateElement$2;
|
|
455
455
|
|
|
456
456
|
// Thanks to IE8 for its funny defineProperty
|
|
457
|
-
var ie8DomDefine = !DESCRIPTORS$a && !fails$
|
|
457
|
+
var ie8DomDefine = !DESCRIPTORS$a && !fails$h(function () {
|
|
458
458
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
459
459
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
460
460
|
get: function () { return 7; }
|
|
@@ -462,12 +462,12 @@ var ie8DomDefine = !DESCRIPTORS$a && !fails$g(function () {
|
|
|
462
462
|
});
|
|
463
463
|
|
|
464
464
|
var DESCRIPTORS$9 = descriptors;
|
|
465
|
-
var call$
|
|
465
|
+
var call$e = functionCall;
|
|
466
466
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
467
467
|
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
468
468
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
469
469
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
470
|
-
var hasOwn$
|
|
470
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
471
471
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
472
472
|
|
|
473
473
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -481,17 +481,17 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 :
|
|
|
481
481
|
if (IE8_DOM_DEFINE$1) try {
|
|
482
482
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
483
483
|
} catch (error) { /* empty */ }
|
|
484
|
-
if (hasOwn$
|
|
484
|
+
if (hasOwn$9(O, P)) return createPropertyDescriptor$2(!call$e(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
485
485
|
};
|
|
486
486
|
|
|
487
487
|
var objectDefineProperty = {};
|
|
488
488
|
|
|
489
489
|
var DESCRIPTORS$8 = descriptors;
|
|
490
|
-
var fails$
|
|
490
|
+
var fails$g = fails$m;
|
|
491
491
|
|
|
492
492
|
// V8 ~ Chrome 36-
|
|
493
493
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
494
|
-
var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$
|
|
494
|
+
var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$g(function () {
|
|
495
495
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
496
496
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
497
497
|
value: 42,
|
|
@@ -505,7 +505,7 @@ var $String$2 = String;
|
|
|
505
505
|
var $TypeError$b = TypeError;
|
|
506
506
|
|
|
507
507
|
// `Assert: Type(argument) is Object`
|
|
508
|
-
var anObject$
|
|
508
|
+
var anObject$e = function (argument) {
|
|
509
509
|
if (isObject$5(argument)) return argument;
|
|
510
510
|
throw $TypeError$b($String$2(argument) + ' is not an object');
|
|
511
511
|
};
|
|
@@ -513,7 +513,7 @@ var anObject$d = function (argument) {
|
|
|
513
513
|
var DESCRIPTORS$7 = descriptors;
|
|
514
514
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
515
515
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
516
|
-
var anObject$
|
|
516
|
+
var anObject$d = anObject$e;
|
|
517
517
|
var toPropertyKey = toPropertyKey$2;
|
|
518
518
|
|
|
519
519
|
var $TypeError$a = TypeError;
|
|
@@ -528,9 +528,9 @@ var WRITABLE = 'writable';
|
|
|
528
528
|
// `Object.defineProperty` method
|
|
529
529
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
530
530
|
objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
531
|
-
anObject$
|
|
531
|
+
anObject$d(O);
|
|
532
532
|
P = toPropertyKey(P);
|
|
533
|
-
anObject$
|
|
533
|
+
anObject$d(Attributes);
|
|
534
534
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
535
535
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
536
536
|
if (current && current[WRITABLE]) {
|
|
@@ -543,9 +543,9 @@ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
543
543
|
}
|
|
544
544
|
} return $defineProperty(O, P, Attributes);
|
|
545
545
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
546
|
-
anObject$
|
|
546
|
+
anObject$d(O);
|
|
547
547
|
P = toPropertyKey(P);
|
|
548
|
-
anObject$
|
|
548
|
+
anObject$d(Attributes);
|
|
549
549
|
if (IE8_DOM_DEFINE) try {
|
|
550
550
|
return $defineProperty(O, P, Attributes);
|
|
551
551
|
} catch (error) { /* empty */ }
|
|
@@ -568,13 +568,13 @@ var createNonEnumerableProperty$5 = DESCRIPTORS$6 ? function (object, key, value
|
|
|
568
568
|
var makeBuiltIn$2 = {exports: {}};
|
|
569
569
|
|
|
570
570
|
var DESCRIPTORS$5 = descriptors;
|
|
571
|
-
var hasOwn$
|
|
571
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
572
572
|
|
|
573
573
|
var FunctionPrototype$1 = Function.prototype;
|
|
574
574
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
575
575
|
var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
|
|
576
576
|
|
|
577
|
-
var EXISTS = hasOwn$
|
|
577
|
+
var EXISTS = hasOwn$8(FunctionPrototype$1, 'name');
|
|
578
578
|
// additional protection from minified / mangled / dropped function names
|
|
579
579
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
580
580
|
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
@@ -622,7 +622,7 @@ var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
|
622
622
|
var global$f = global$n;
|
|
623
623
|
var isObject$4 = isObject$9;
|
|
624
624
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
|
|
625
|
-
var hasOwn$
|
|
625
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
626
626
|
var shared$1 = sharedStore;
|
|
627
627
|
var sharedKey$2 = sharedKey$3;
|
|
628
628
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
@@ -668,16 +668,16 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
668
668
|
var STATE = sharedKey$2('state');
|
|
669
669
|
hiddenKeys$3[STATE] = true;
|
|
670
670
|
set$1 = function (it, metadata) {
|
|
671
|
-
if (hasOwn$
|
|
671
|
+
if (hasOwn$7(it, STATE)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
672
672
|
metadata.facade = it;
|
|
673
673
|
createNonEnumerableProperty$4(it, STATE, metadata);
|
|
674
674
|
return metadata;
|
|
675
675
|
};
|
|
676
676
|
get = function (it) {
|
|
677
|
-
return hasOwn$
|
|
677
|
+
return hasOwn$7(it, STATE) ? it[STATE] : {};
|
|
678
678
|
};
|
|
679
679
|
has = function (it) {
|
|
680
|
-
return hasOwn$
|
|
680
|
+
return hasOwn$7(it, STATE);
|
|
681
681
|
};
|
|
682
682
|
}
|
|
683
683
|
|
|
@@ -689,9 +689,9 @@ var internalState = {
|
|
|
689
689
|
getterFor: getterFor
|
|
690
690
|
};
|
|
691
691
|
|
|
692
|
-
var fails$
|
|
692
|
+
var fails$f = fails$m;
|
|
693
693
|
var isCallable$e = isCallable$m;
|
|
694
|
-
var hasOwn$
|
|
694
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
695
695
|
var DESCRIPTORS$4 = descriptors;
|
|
696
696
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
697
697
|
var inspectSource$2 = inspectSource$3;
|
|
@@ -702,7 +702,7 @@ var getInternalState$2 = InternalStateModule$2.get;
|
|
|
702
702
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
703
703
|
var defineProperty$4 = Object.defineProperty;
|
|
704
704
|
|
|
705
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$
|
|
705
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$f(function () {
|
|
706
706
|
return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
707
707
|
});
|
|
708
708
|
|
|
@@ -714,21 +714,21 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
|
714
714
|
}
|
|
715
715
|
if (options && options.getter) name = 'get ' + name;
|
|
716
716
|
if (options && options.setter) name = 'set ' + name;
|
|
717
|
-
if (!hasOwn$
|
|
717
|
+
if (!hasOwn$6(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
718
718
|
if (DESCRIPTORS$4) defineProperty$4(value, 'name', { value: name, configurable: true });
|
|
719
719
|
else value.name = name;
|
|
720
720
|
}
|
|
721
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
|
721
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$6(options, 'arity') && value.length !== options.arity) {
|
|
722
722
|
defineProperty$4(value, 'length', { value: options.arity });
|
|
723
723
|
}
|
|
724
724
|
try {
|
|
725
|
-
if (options && hasOwn$
|
|
725
|
+
if (options && hasOwn$6(options, 'constructor') && options.constructor) {
|
|
726
726
|
if (DESCRIPTORS$4) defineProperty$4(value, 'prototype', { writable: false });
|
|
727
727
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
728
728
|
} else if (value.prototype) value.prototype = undefined;
|
|
729
729
|
} catch (error) { /* empty */ }
|
|
730
730
|
var state = enforceInternalState(value);
|
|
731
|
-
if (!hasOwn$
|
|
731
|
+
if (!hasOwn$6(state, 'source')) {
|
|
732
732
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
733
733
|
} return value;
|
|
734
734
|
};
|
|
@@ -744,7 +744,7 @@ var definePropertyModule$3 = objectDefineProperty;
|
|
|
744
744
|
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
745
745
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
746
746
|
|
|
747
|
-
var defineBuiltIn$
|
|
747
|
+
var defineBuiltIn$7 = function (O, key, value, options) {
|
|
748
748
|
if (!options) options = {};
|
|
749
749
|
var simple = options.enumerable;
|
|
750
750
|
var name = options.name !== undefined ? options.name : key;
|
|
@@ -855,7 +855,7 @@ var arrayIncludes = {
|
|
|
855
855
|
};
|
|
856
856
|
|
|
857
857
|
var uncurryThis$g = functionUncurryThis;
|
|
858
|
-
var hasOwn$
|
|
858
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
859
859
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
860
860
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
861
861
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
@@ -867,9 +867,9 @@ var objectKeysInternal = function (object, names) {
|
|
|
867
867
|
var i = 0;
|
|
868
868
|
var result = [];
|
|
869
869
|
var key;
|
|
870
|
-
for (key in O) !hasOwn$
|
|
870
|
+
for (key in O) !hasOwn$5(hiddenKeys$2, key) && hasOwn$5(O, key) && push$1(result, key);
|
|
871
871
|
// Don't enum bug & hidden keys
|
|
872
|
-
while (names.length > i) if (hasOwn$
|
|
872
|
+
while (names.length > i) if (hasOwn$5(O, key = names[i++])) {
|
|
873
873
|
~indexOf$1(result, key) || push$1(result, key);
|
|
874
874
|
}
|
|
875
875
|
return result;
|
|
@@ -907,18 +907,18 @@ var getBuiltIn$5 = getBuiltIn$8;
|
|
|
907
907
|
var uncurryThis$f = functionUncurryThis;
|
|
908
908
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
909
909
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
910
|
-
var anObject$
|
|
910
|
+
var anObject$c = anObject$e;
|
|
911
911
|
|
|
912
912
|
var concat$2 = uncurryThis$f([].concat);
|
|
913
913
|
|
|
914
914
|
// all object keys, includes non-enumerable and symbols
|
|
915
915
|
var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
916
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
916
|
+
var keys = getOwnPropertyNamesModule.f(anObject$c(it));
|
|
917
917
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
918
918
|
return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
|
|
919
919
|
};
|
|
920
920
|
|
|
921
|
-
var hasOwn$
|
|
921
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
922
922
|
var ownKeys = ownKeys$1;
|
|
923
923
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
924
924
|
var definePropertyModule$2 = objectDefineProperty;
|
|
@@ -929,13 +929,13 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
929
929
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
930
930
|
for (var i = 0; i < keys.length; i++) {
|
|
931
931
|
var key = keys[i];
|
|
932
|
-
if (!hasOwn$
|
|
932
|
+
if (!hasOwn$4(target, key) && !(exceptions && hasOwn$4(exceptions, key))) {
|
|
933
933
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
936
|
};
|
|
937
937
|
|
|
938
|
-
var fails$
|
|
938
|
+
var fails$e = fails$m;
|
|
939
939
|
var isCallable$c = isCallable$m;
|
|
940
940
|
|
|
941
941
|
var replacement = /#|\.prototype\./;
|
|
@@ -944,7 +944,7 @@ var isForced$2 = function (feature, detection) {
|
|
|
944
944
|
var value = data[normalize$1(feature)];
|
|
945
945
|
return value == POLYFILL ? true
|
|
946
946
|
: value == NATIVE ? false
|
|
947
|
-
: isCallable$c(detection) ? fails$
|
|
947
|
+
: isCallable$c(detection) ? fails$e(detection)
|
|
948
948
|
: !!detection;
|
|
949
949
|
};
|
|
950
950
|
|
|
@@ -961,7 +961,7 @@ var isForced_1 = isForced$2;
|
|
|
961
961
|
var global$e = global$n;
|
|
962
962
|
var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
|
|
963
963
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
|
|
964
|
-
var defineBuiltIn$
|
|
964
|
+
var defineBuiltIn$6 = defineBuiltIn$7;
|
|
965
965
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
966
966
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
967
967
|
var isForced$1 = isForced_1;
|
|
@@ -1009,7 +1009,7 @@ var _export = function (options, source) {
|
|
|
1009
1009
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1010
1010
|
createNonEnumerableProperty$3(sourceProperty, 'sham', true);
|
|
1011
1011
|
}
|
|
1012
|
-
defineBuiltIn$
|
|
1012
|
+
defineBuiltIn$6(target, key, sourceProperty, options);
|
|
1013
1013
|
}
|
|
1014
1014
|
};
|
|
1015
1015
|
|
|
@@ -1031,7 +1031,7 @@ var aPossiblePrototype$1 = function (argument) {
|
|
|
1031
1031
|
/* eslint-disable no-proto -- safe */
|
|
1032
1032
|
|
|
1033
1033
|
var uncurryThis$e = functionUncurryThis;
|
|
1034
|
-
var anObject$
|
|
1034
|
+
var anObject$b = anObject$e;
|
|
1035
1035
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1036
1036
|
|
|
1037
1037
|
// `Object.setPrototypeOf` method
|
|
@@ -1049,7 +1049,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1049
1049
|
CORRECT_SETTER = test instanceof Array;
|
|
1050
1050
|
} catch (error) { /* empty */ }
|
|
1051
1051
|
return function setPrototypeOf(O, proto) {
|
|
1052
|
-
anObject$
|
|
1052
|
+
anObject$b(O);
|
|
1053
1053
|
aPossiblePrototype(proto);
|
|
1054
1054
|
if (CORRECT_SETTER) setter(O, proto);
|
|
1055
1055
|
else O.__proto__ = proto;
|
|
@@ -1058,14 +1058,14 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1058
1058
|
}() : undefined);
|
|
1059
1059
|
|
|
1060
1060
|
var defineProperty$3 = objectDefineProperty.f;
|
|
1061
|
-
var hasOwn$
|
|
1061
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
1062
1062
|
var wellKnownSymbol$g = wellKnownSymbol$i;
|
|
1063
1063
|
|
|
1064
1064
|
var TO_STRING_TAG$3 = wellKnownSymbol$g('toStringTag');
|
|
1065
1065
|
|
|
1066
1066
|
var setToStringTag$3 = function (target, TAG, STATIC) {
|
|
1067
1067
|
if (target && !STATIC) target = target.prototype;
|
|
1068
|
-
if (target && !hasOwn$
|
|
1068
|
+
if (target && !hasOwn$3(target, TO_STRING_TAG$3)) {
|
|
1069
1069
|
defineProperty$3(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
|
|
1070
1070
|
}
|
|
1071
1071
|
};
|
|
@@ -1089,12 +1089,12 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
};
|
|
1091
1091
|
|
|
1092
|
-
var isPrototypeOf$
|
|
1092
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
1093
1093
|
|
|
1094
1094
|
var $TypeError$8 = TypeError;
|
|
1095
1095
|
|
|
1096
1096
|
var anInstance$1 = function (it, Prototype) {
|
|
1097
|
-
if (isPrototypeOf$
|
|
1097
|
+
if (isPrototypeOf$2(Prototype, it)) return it;
|
|
1098
1098
|
throw $TypeError$8('Incorrect invocation');
|
|
1099
1099
|
};
|
|
1100
1100
|
|
|
@@ -1138,7 +1138,7 @@ var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
|
1138
1138
|
};
|
|
1139
1139
|
|
|
1140
1140
|
var uncurryThis$d = functionUncurryThis;
|
|
1141
|
-
var fails$
|
|
1141
|
+
var fails$d = fails$m;
|
|
1142
1142
|
var isCallable$9 = isCallable$m;
|
|
1143
1143
|
var classof$4 = classof$5;
|
|
1144
1144
|
var getBuiltIn$3 = getBuiltIn$8;
|
|
@@ -1182,7 +1182,7 @@ isConstructorLegacy.sham = true;
|
|
|
1182
1182
|
|
|
1183
1183
|
// `IsConstructor` abstract operation
|
|
1184
1184
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1185
|
-
var isConstructor$1 = !construct || fails$
|
|
1185
|
+
var isConstructor$1 = !construct || fails$d(function () {
|
|
1186
1186
|
var called;
|
|
1187
1187
|
return isConstructorModern(isConstructorModern.call)
|
|
1188
1188
|
|| !isConstructorModern(Object)
|
|
@@ -1201,7 +1201,7 @@ var aConstructor$1 = function (argument) {
|
|
|
1201
1201
|
throw $TypeError$7(tryToString$2(argument) + ' is not a constructor');
|
|
1202
1202
|
};
|
|
1203
1203
|
|
|
1204
|
-
var anObject$
|
|
1204
|
+
var anObject$a = anObject$e;
|
|
1205
1205
|
var aConstructor = aConstructor$1;
|
|
1206
1206
|
var isNullOrUndefined$2 = isNullOrUndefined$5;
|
|
1207
1207
|
var wellKnownSymbol$c = wellKnownSymbol$i;
|
|
@@ -1211,20 +1211,20 @@ var SPECIES$2 = wellKnownSymbol$c('species');
|
|
|
1211
1211
|
// `SpeciesConstructor` abstract operation
|
|
1212
1212
|
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
1213
1213
|
var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
1214
|
-
var C = anObject$
|
|
1214
|
+
var C = anObject$a(O).constructor;
|
|
1215
1215
|
var S;
|
|
1216
|
-
return C === undefined || isNullOrUndefined$2(S = anObject$
|
|
1216
|
+
return C === undefined || isNullOrUndefined$2(S = anObject$a(C)[SPECIES$2]) ? defaultConstructor : aConstructor(S);
|
|
1217
1217
|
};
|
|
1218
1218
|
|
|
1219
1219
|
var NATIVE_BIND$1 = functionBindNative;
|
|
1220
1220
|
|
|
1221
1221
|
var FunctionPrototype = Function.prototype;
|
|
1222
1222
|
var apply$2 = FunctionPrototype.apply;
|
|
1223
|
-
var call$
|
|
1223
|
+
var call$d = FunctionPrototype.call;
|
|
1224
1224
|
|
|
1225
1225
|
// eslint-disable-next-line es/no-reflect -- safe
|
|
1226
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$
|
|
1227
|
-
return call$
|
|
1226
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$d.bind(apply$2) : function () {
|
|
1227
|
+
return call$d.apply(apply$2, arguments);
|
|
1228
1228
|
});
|
|
1229
1229
|
|
|
1230
1230
|
var classofRaw = classofRaw$2;
|
|
@@ -1274,8 +1274,8 @@ var global$c = global$n;
|
|
|
1274
1274
|
var apply$1 = functionApply;
|
|
1275
1275
|
var bind$3 = functionBindContext;
|
|
1276
1276
|
var isCallable$8 = isCallable$m;
|
|
1277
|
-
var hasOwn$
|
|
1278
|
-
var fails$
|
|
1277
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
1278
|
+
var fails$c = fails$m;
|
|
1279
1279
|
var html$1 = html$2;
|
|
1280
1280
|
var arraySlice = arraySlice$1;
|
|
1281
1281
|
var createElement = documentCreateElement$2;
|
|
@@ -1301,7 +1301,7 @@ try {
|
|
|
1301
1301
|
} catch (error) { /* empty */ }
|
|
1302
1302
|
|
|
1303
1303
|
var run = function (id) {
|
|
1304
|
-
if (hasOwn$
|
|
1304
|
+
if (hasOwn$2(queue$1, id)) {
|
|
1305
1305
|
var fn = queue$1[id];
|
|
1306
1306
|
delete queue$1[id];
|
|
1307
1307
|
fn();
|
|
@@ -1362,7 +1362,7 @@ if (!set || !clear) {
|
|
|
1362
1362
|
isCallable$8(global$c.postMessage) &&
|
|
1363
1363
|
!global$c.importScripts &&
|
|
1364
1364
|
$location && $location.protocol !== 'file:' &&
|
|
1365
|
-
!fails$
|
|
1365
|
+
!fails$c(post)
|
|
1366
1366
|
) {
|
|
1367
1367
|
defer = post;
|
|
1368
1368
|
global$c.addEventListener('message', listener, false);
|
|
@@ -1609,8 +1609,8 @@ newPromiseCapability$2.f = function (C) {
|
|
|
1609
1609
|
var $$d = _export;
|
|
1610
1610
|
var IS_NODE$1 = engineIsNode;
|
|
1611
1611
|
var global$6 = global$n;
|
|
1612
|
-
var call$
|
|
1613
|
-
var defineBuiltIn$
|
|
1612
|
+
var call$c = functionCall;
|
|
1613
|
+
var defineBuiltIn$5 = defineBuiltIn$7;
|
|
1614
1614
|
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
1615
1615
|
var setToStringTag$2 = setToStringTag$3;
|
|
1616
1616
|
var setSpecies = setSpecies$1;
|
|
@@ -1687,7 +1687,7 @@ var callReaction = function (reaction, state) {
|
|
|
1687
1687
|
if (result === reaction.promise) {
|
|
1688
1688
|
reject(TypeError$1('Promise-chain cycle'));
|
|
1689
1689
|
} else if (then = isThenable(result)) {
|
|
1690
|
-
call$
|
|
1690
|
+
call$c(then, result, resolve, reject);
|
|
1691
1691
|
} else resolve(result);
|
|
1692
1692
|
} else reject(value);
|
|
1693
1693
|
} catch (error) {
|
|
@@ -1724,7 +1724,7 @@ var dispatchEvent = function (name, promise, reason) {
|
|
|
1724
1724
|
};
|
|
1725
1725
|
|
|
1726
1726
|
var onUnhandled = function (state) {
|
|
1727
|
-
call$
|
|
1727
|
+
call$c(task, global$6, function () {
|
|
1728
1728
|
var promise = state.facade;
|
|
1729
1729
|
var value = state.value;
|
|
1730
1730
|
var IS_UNHANDLED = isUnhandled(state);
|
|
@@ -1747,7 +1747,7 @@ var isUnhandled = function (state) {
|
|
|
1747
1747
|
};
|
|
1748
1748
|
|
|
1749
1749
|
var onHandleUnhandled = function (state) {
|
|
1750
|
-
call$
|
|
1750
|
+
call$c(task, global$6, function () {
|
|
1751
1751
|
var promise = state.facade;
|
|
1752
1752
|
if (IS_NODE$1) {
|
|
1753
1753
|
process.emit('rejectionHandled', promise);
|
|
@@ -1781,7 +1781,7 @@ var internalResolve = function (state, value, unwrap) {
|
|
|
1781
1781
|
microtask(function () {
|
|
1782
1782
|
var wrapper = { done: false };
|
|
1783
1783
|
try {
|
|
1784
|
-
call$
|
|
1784
|
+
call$c(then, value,
|
|
1785
1785
|
bind$1(internalResolve, wrapper, state),
|
|
1786
1786
|
bind$1(internalReject, wrapper, state)
|
|
1787
1787
|
);
|
|
@@ -1805,7 +1805,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
1805
1805
|
PromiseConstructor = function Promise(executor) {
|
|
1806
1806
|
anInstance(this, PromisePrototype);
|
|
1807
1807
|
aCallable$4(executor);
|
|
1808
|
-
call$
|
|
1808
|
+
call$c(Internal, this);
|
|
1809
1809
|
var state = getInternalPromiseState(this);
|
|
1810
1810
|
try {
|
|
1811
1811
|
executor(bind$1(internalResolve, state), bind$1(internalReject, state));
|
|
@@ -1832,7 +1832,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
1832
1832
|
|
|
1833
1833
|
// `Promise.prototype.then` method
|
|
1834
1834
|
// https://tc39.es/ecma262/#sec-promise.prototype.then
|
|
1835
|
-
Internal.prototype = defineBuiltIn$
|
|
1835
|
+
Internal.prototype = defineBuiltIn$5(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
|
|
1836
1836
|
var state = getInternalPromiseState(this);
|
|
1837
1837
|
var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
|
|
1838
1838
|
state.parent = true;
|
|
@@ -1865,10 +1865,10 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
1865
1865
|
|
|
1866
1866
|
if (!NATIVE_PROMISE_SUBCLASSING) {
|
|
1867
1867
|
// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
|
|
1868
|
-
defineBuiltIn$
|
|
1868
|
+
defineBuiltIn$5(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
|
|
1869
1869
|
var that = this;
|
|
1870
1870
|
return new PromiseConstructor(function (resolve, reject) {
|
|
1871
|
-
call$
|
|
1871
|
+
call$c(nativeThen, that, resolve, reject);
|
|
1872
1872
|
}).then(onFulfilled, onRejected);
|
|
1873
1873
|
// https://github.com/zloirock/core-js/issues/640
|
|
1874
1874
|
}, { unsafe: true });
|
|
@@ -1920,9 +1920,9 @@ var getIteratorMethod$2 = function (it) {
|
|
|
1920
1920
|
|| Iterators$3[classof$3(it)];
|
|
1921
1921
|
};
|
|
1922
1922
|
|
|
1923
|
-
var call$
|
|
1923
|
+
var call$b = functionCall;
|
|
1924
1924
|
var aCallable$3 = aCallable$8;
|
|
1925
|
-
var anObject$
|
|
1925
|
+
var anObject$9 = anObject$e;
|
|
1926
1926
|
var tryToString$1 = tryToString$4;
|
|
1927
1927
|
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
1928
1928
|
|
|
@@ -1930,41 +1930,41 @@ var $TypeError$4 = TypeError;
|
|
|
1930
1930
|
|
|
1931
1931
|
var getIterator$1 = function (argument, usingIterator) {
|
|
1932
1932
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
1933
|
-
if (aCallable$3(iteratorMethod)) return anObject$
|
|
1933
|
+
if (aCallable$3(iteratorMethod)) return anObject$9(call$b(iteratorMethod, argument));
|
|
1934
1934
|
throw $TypeError$4(tryToString$1(argument) + ' is not iterable');
|
|
1935
1935
|
};
|
|
1936
1936
|
|
|
1937
|
-
var call$
|
|
1938
|
-
var anObject$
|
|
1937
|
+
var call$a = functionCall;
|
|
1938
|
+
var anObject$8 = anObject$e;
|
|
1939
1939
|
var getMethod$1 = getMethod$4;
|
|
1940
1940
|
|
|
1941
1941
|
var iteratorClose$1 = function (iterator, kind, value) {
|
|
1942
1942
|
var innerResult, innerError;
|
|
1943
|
-
anObject$
|
|
1943
|
+
anObject$8(iterator);
|
|
1944
1944
|
try {
|
|
1945
1945
|
innerResult = getMethod$1(iterator, 'return');
|
|
1946
1946
|
if (!innerResult) {
|
|
1947
1947
|
if (kind === 'throw') throw value;
|
|
1948
1948
|
return value;
|
|
1949
1949
|
}
|
|
1950
|
-
innerResult = call$
|
|
1950
|
+
innerResult = call$a(innerResult, iterator);
|
|
1951
1951
|
} catch (error) {
|
|
1952
1952
|
innerError = true;
|
|
1953
1953
|
innerResult = error;
|
|
1954
1954
|
}
|
|
1955
1955
|
if (kind === 'throw') throw value;
|
|
1956
1956
|
if (innerError) throw innerResult;
|
|
1957
|
-
anObject$
|
|
1957
|
+
anObject$8(innerResult);
|
|
1958
1958
|
return value;
|
|
1959
1959
|
};
|
|
1960
1960
|
|
|
1961
1961
|
var bind = functionBindContext;
|
|
1962
|
-
var call$
|
|
1963
|
-
var anObject$
|
|
1962
|
+
var call$9 = functionCall;
|
|
1963
|
+
var anObject$7 = anObject$e;
|
|
1964
1964
|
var tryToString = tryToString$4;
|
|
1965
1965
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
1966
1966
|
var lengthOfArrayLike$1 = lengthOfArrayLike$3;
|
|
1967
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
1967
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
1968
1968
|
var getIterator = getIterator$1;
|
|
1969
1969
|
var getIteratorMethod = getIteratorMethod$2;
|
|
1970
1970
|
var iteratorClose = iteratorClose$1;
|
|
@@ -1994,7 +1994,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
1994
1994
|
|
|
1995
1995
|
var callFn = function (value) {
|
|
1996
1996
|
if (AS_ENTRIES) {
|
|
1997
|
-
anObject$
|
|
1997
|
+
anObject$7(value);
|
|
1998
1998
|
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
1999
1999
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
2000
2000
|
};
|
|
@@ -2010,20 +2010,20 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
2010
2010
|
if (isArrayIteratorMethod(iterFn)) {
|
|
2011
2011
|
for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) {
|
|
2012
2012
|
result = callFn(iterable[index]);
|
|
2013
|
-
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
2013
|
+
if (result && isPrototypeOf$1(ResultPrototype, result)) return result;
|
|
2014
2014
|
} return new Result(false);
|
|
2015
2015
|
}
|
|
2016
2016
|
iterator = getIterator(iterable, iterFn);
|
|
2017
2017
|
}
|
|
2018
2018
|
|
|
2019
2019
|
next = IS_RECORD ? iterable.next : iterator.next;
|
|
2020
|
-
while (!(step = call$
|
|
2020
|
+
while (!(step = call$9(next, iterator)).done) {
|
|
2021
2021
|
try {
|
|
2022
2022
|
result = callFn(step.value);
|
|
2023
2023
|
} catch (error) {
|
|
2024
2024
|
iteratorClose(iterator, 'throw', error);
|
|
2025
2025
|
}
|
|
2026
|
-
if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
2026
|
+
if (typeof result == 'object' && result && isPrototypeOf$1(ResultPrototype, result)) return result;
|
|
2027
2027
|
} return new Result(false);
|
|
2028
2028
|
};
|
|
2029
2029
|
|
|
@@ -2075,7 +2075,7 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
|
|
|
2075
2075
|
});
|
|
2076
2076
|
|
|
2077
2077
|
var $$c = _export;
|
|
2078
|
-
var call$
|
|
2078
|
+
var call$8 = functionCall;
|
|
2079
2079
|
var aCallable$2 = aCallable$8;
|
|
2080
2080
|
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
2081
2081
|
var perform$1 = perform$3;
|
|
@@ -2099,7 +2099,7 @@ $$c({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2099
2099
|
var index = counter++;
|
|
2100
2100
|
var alreadyCalled = false;
|
|
2101
2101
|
remaining++;
|
|
2102
|
-
call$
|
|
2102
|
+
call$8($promiseResolve, C, promise).then(function (value) {
|
|
2103
2103
|
if (alreadyCalled) return;
|
|
2104
2104
|
alreadyCalled = true;
|
|
2105
2105
|
values[index] = value;
|
|
@@ -2118,7 +2118,7 @@ var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
|
2118
2118
|
var NativePromiseConstructor = promiseNativeConstructor;
|
|
2119
2119
|
var getBuiltIn$1 = getBuiltIn$8;
|
|
2120
2120
|
var isCallable$5 = isCallable$m;
|
|
2121
|
-
var defineBuiltIn$
|
|
2121
|
+
var defineBuiltIn$4 = defineBuiltIn$7;
|
|
2122
2122
|
|
|
2123
2123
|
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
|
|
2124
2124
|
|
|
@@ -2134,12 +2134,12 @@ $$b({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real
|
|
|
2134
2134
|
if (isCallable$5(NativePromiseConstructor)) {
|
|
2135
2135
|
var method = getBuiltIn$1('Promise').prototype['catch'];
|
|
2136
2136
|
if (NativePromisePrototype['catch'] !== method) {
|
|
2137
|
-
defineBuiltIn$
|
|
2137
|
+
defineBuiltIn$4(NativePromisePrototype, 'catch', method, { unsafe: true });
|
|
2138
2138
|
}
|
|
2139
2139
|
}
|
|
2140
2140
|
|
|
2141
2141
|
var $$a = _export;
|
|
2142
|
-
var call$
|
|
2142
|
+
var call$7 = functionCall;
|
|
2143
2143
|
var aCallable$1 = aCallable$8;
|
|
2144
2144
|
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
2145
2145
|
var perform = perform$3;
|
|
@@ -2156,7 +2156,7 @@ $$a({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2156
2156
|
var result = perform(function () {
|
|
2157
2157
|
var $promiseResolve = aCallable$1(C.resolve);
|
|
2158
2158
|
iterate(iterable, function (promise) {
|
|
2159
|
-
call$
|
|
2159
|
+
call$7($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
2160
2160
|
});
|
|
2161
2161
|
});
|
|
2162
2162
|
if (result.error) reject(result.value);
|
|
@@ -2165,7 +2165,7 @@ $$a({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2165
2165
|
});
|
|
2166
2166
|
|
|
2167
2167
|
var $$9 = _export;
|
|
2168
|
-
var call$
|
|
2168
|
+
var call$6 = functionCall;
|
|
2169
2169
|
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
2170
2170
|
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2171
2171
|
|
|
@@ -2174,17 +2174,17 @@ var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
|
2174
2174
|
$$9({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
2175
2175
|
reject: function reject(r) {
|
|
2176
2176
|
var capability = newPromiseCapabilityModule.f(this);
|
|
2177
|
-
call$
|
|
2177
|
+
call$6(capability.reject, undefined, r);
|
|
2178
2178
|
return capability.promise;
|
|
2179
2179
|
}
|
|
2180
2180
|
});
|
|
2181
2181
|
|
|
2182
|
-
var anObject$
|
|
2182
|
+
var anObject$6 = anObject$e;
|
|
2183
2183
|
var isObject$2 = isObject$9;
|
|
2184
2184
|
var newPromiseCapability = newPromiseCapability$2;
|
|
2185
2185
|
|
|
2186
2186
|
var promiseResolve$1 = function (C, x) {
|
|
2187
|
-
anObject$
|
|
2187
|
+
anObject$6(C);
|
|
2188
2188
|
if (isObject$2(x) && x.constructor === C) return x;
|
|
2189
2189
|
var promiseCapability = newPromiseCapability.f(C);
|
|
2190
2190
|
var resolve = promiseCapability.resolve;
|
|
@@ -2219,8 +2219,8 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
2219
2219
|
|
|
2220
2220
|
var DESCRIPTORS$2 = descriptors;
|
|
2221
2221
|
var uncurryThis$9 = functionUncurryThis;
|
|
2222
|
-
var call$
|
|
2223
|
-
var fails$
|
|
2222
|
+
var call$5 = functionCall;
|
|
2223
|
+
var fails$b = fails$m;
|
|
2224
2224
|
var objectKeys$1 = objectKeys$2;
|
|
2225
2225
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
2226
2226
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
@@ -2235,7 +2235,7 @@ var concat$1 = uncurryThis$9([].concat);
|
|
|
2235
2235
|
|
|
2236
2236
|
// `Object.assign` method
|
|
2237
2237
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
2238
|
-
var objectAssign = !$assign || fails$
|
|
2238
|
+
var objectAssign = !$assign || fails$b(function () {
|
|
2239
2239
|
// should have correct order of operations (Edge bug)
|
|
2240
2240
|
if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
|
|
2241
2241
|
enumerable: true,
|
|
@@ -2269,7 +2269,7 @@ var objectAssign = !$assign || fails$a(function () {
|
|
|
2269
2269
|
var key;
|
|
2270
2270
|
while (length > j) {
|
|
2271
2271
|
key = keys[j++];
|
|
2272
|
-
if (!DESCRIPTORS$2 || call$
|
|
2272
|
+
if (!DESCRIPTORS$2 || call$5(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
2273
2273
|
}
|
|
2274
2274
|
} return T;
|
|
2275
2275
|
} : $assign;
|
|
@@ -2289,7 +2289,7 @@ var objectDefineProperties = {};
|
|
|
2289
2289
|
var DESCRIPTORS$1 = descriptors;
|
|
2290
2290
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
2291
2291
|
var definePropertyModule = objectDefineProperty;
|
|
2292
|
-
var anObject$
|
|
2292
|
+
var anObject$5 = anObject$e;
|
|
2293
2293
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
2294
2294
|
var objectKeys = objectKeys$2;
|
|
2295
2295
|
|
|
@@ -2297,7 +2297,7 @@ var objectKeys = objectKeys$2;
|
|
|
2297
2297
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
2298
2298
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
2299
2299
|
objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
2300
|
-
anObject$
|
|
2300
|
+
anObject$5(O);
|
|
2301
2301
|
var props = toIndexedObject$1(Properties);
|
|
2302
2302
|
var keys = objectKeys(Properties);
|
|
2303
2303
|
var length = keys.length;
|
|
@@ -2309,7 +2309,7 @@ objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
|
|
|
2309
2309
|
|
|
2310
2310
|
/* global ActiveXObject -- old IE, WSH */
|
|
2311
2311
|
|
|
2312
|
-
var anObject$
|
|
2312
|
+
var anObject$4 = anObject$e;
|
|
2313
2313
|
var definePropertiesModule = objectDefineProperties;
|
|
2314
2314
|
var enumBugKeys = enumBugKeys$3;
|
|
2315
2315
|
var hiddenKeys = hiddenKeys$4;
|
|
@@ -2383,7 +2383,7 @@ hiddenKeys[IE_PROTO$1] = true;
|
|
|
2383
2383
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
2384
2384
|
var result;
|
|
2385
2385
|
if (O !== null) {
|
|
2386
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
2386
|
+
EmptyConstructor[PROTOTYPE] = anObject$4(O);
|
|
2387
2387
|
result = new EmptyConstructor();
|
|
2388
2388
|
EmptyConstructor[PROTOTYPE] = null;
|
|
2389
2389
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -2415,11 +2415,11 @@ var addToUnscopables$2 = function (key) {
|
|
|
2415
2415
|
|
|
2416
2416
|
var $$6 = _export;
|
|
2417
2417
|
var $includes = arrayIncludes.includes;
|
|
2418
|
-
var fails$
|
|
2418
|
+
var fails$a = fails$m;
|
|
2419
2419
|
var addToUnscopables$1 = addToUnscopables$2;
|
|
2420
2420
|
|
|
2421
2421
|
// FF99+ bug
|
|
2422
|
-
var BROKEN_ON_SPARSE = fails$
|
|
2422
|
+
var BROKEN_ON_SPARSE = fails$a(function () {
|
|
2423
2423
|
return !Array(1).includes();
|
|
2424
2424
|
});
|
|
2425
2425
|
|
|
@@ -2721,6 +2721,10 @@ const ninetailedPlugin = ({
|
|
|
2721
2721
|
}) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2722
2722
|
logger.info('Sending Identify event.');
|
|
2723
2723
|
const ctx = buildClientNinetailedRequestContext();
|
|
2724
|
+
if (payload.userId === '' && (!payload.traits || typeof payload.traits === 'object' && Object.keys(payload.traits).length === 0)) {
|
|
2725
|
+
logger.info('Skipping Identify event as no userId and no traits are set.');
|
|
2726
|
+
return;
|
|
2727
|
+
}
|
|
2724
2728
|
yield enqueueEvent(buildIdentifyEvent({
|
|
2725
2729
|
// doing this here as the anonymous id is set to late from init
|
|
2726
2730
|
messageId: payload.meta.rid,
|
|
@@ -2773,7 +2777,64 @@ const ninetailedPlugin = ({
|
|
|
2773
2777
|
};
|
|
2774
2778
|
};
|
|
2775
2779
|
|
|
2776
|
-
var
|
|
2780
|
+
var anObject$3 = anObject$e;
|
|
2781
|
+
|
|
2782
|
+
// `RegExp.prototype.flags` getter implementation
|
|
2783
|
+
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
2784
|
+
var regexpFlags$1 = function () {
|
|
2785
|
+
var that = anObject$3(this);
|
|
2786
|
+
var result = '';
|
|
2787
|
+
if (that.hasIndices) result += 'd';
|
|
2788
|
+
if (that.global) result += 'g';
|
|
2789
|
+
if (that.ignoreCase) result += 'i';
|
|
2790
|
+
if (that.multiline) result += 'm';
|
|
2791
|
+
if (that.dotAll) result += 's';
|
|
2792
|
+
if (that.unicode) result += 'u';
|
|
2793
|
+
if (that.unicodeSets) result += 'v';
|
|
2794
|
+
if (that.sticky) result += 'y';
|
|
2795
|
+
return result;
|
|
2796
|
+
};
|
|
2797
|
+
|
|
2798
|
+
var call$4 = functionCall;
|
|
2799
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
2800
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
2801
|
+
var regExpFlags = regexpFlags$1;
|
|
2802
|
+
|
|
2803
|
+
var RegExpPrototype$2 = RegExp.prototype;
|
|
2804
|
+
|
|
2805
|
+
var regexpGetFlags = function (R) {
|
|
2806
|
+
var flags = R.flags;
|
|
2807
|
+
return flags === undefined && !('flags' in RegExpPrototype$2) && !hasOwn$1(R, 'flags') && isPrototypeOf(RegExpPrototype$2, R)
|
|
2808
|
+
? call$4(regExpFlags, R) : flags;
|
|
2809
|
+
};
|
|
2810
|
+
|
|
2811
|
+
var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
|
|
2812
|
+
var defineBuiltIn$3 = defineBuiltIn$7;
|
|
2813
|
+
var anObject$2 = anObject$e;
|
|
2814
|
+
var $toString = toString$7;
|
|
2815
|
+
var fails$9 = fails$m;
|
|
2816
|
+
var getRegExpFlags = regexpGetFlags;
|
|
2817
|
+
|
|
2818
|
+
var TO_STRING = 'toString';
|
|
2819
|
+
var RegExpPrototype$1 = RegExp.prototype;
|
|
2820
|
+
var nativeToString = RegExpPrototype$1[TO_STRING];
|
|
2821
|
+
|
|
2822
|
+
var NOT_GENERIC = fails$9(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
2823
|
+
// FF44- RegExp#toString has a wrong name
|
|
2824
|
+
var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 && nativeToString.name != TO_STRING;
|
|
2825
|
+
|
|
2826
|
+
// `RegExp.prototype.toString` method
|
|
2827
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
2828
|
+
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
2829
|
+
defineBuiltIn$3(RegExp.prototype, TO_STRING, function toString() {
|
|
2830
|
+
var R = anObject$2(this);
|
|
2831
|
+
var pattern = $toString(R.source);
|
|
2832
|
+
var flags = $toString(getRegExpFlags(R));
|
|
2833
|
+
return '/' + pattern + '/' + flags;
|
|
2834
|
+
}, { unsafe: true });
|
|
2835
|
+
}
|
|
2836
|
+
|
|
2837
|
+
var fails$8 = fails$m;
|
|
2777
2838
|
|
|
2778
2839
|
var correctPrototypeGetter = !fails$8(function () {
|
|
2779
2840
|
function F() { /* empty */ }
|
|
@@ -2804,11 +2865,11 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : f
|
|
|
2804
2865
|
} return object instanceof $Object ? ObjectPrototype : null;
|
|
2805
2866
|
};
|
|
2806
2867
|
|
|
2807
|
-
var fails$7 = fails$
|
|
2868
|
+
var fails$7 = fails$m;
|
|
2808
2869
|
var isCallable$3 = isCallable$m;
|
|
2809
2870
|
var isObject = isObject$9;
|
|
2810
2871
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
2811
|
-
var defineBuiltIn$2 = defineBuiltIn$
|
|
2872
|
+
var defineBuiltIn$2 = defineBuiltIn$7;
|
|
2812
2873
|
var wellKnownSymbol$4 = wellKnownSymbol$i;
|
|
2813
2874
|
|
|
2814
2875
|
var ITERATOR$3 = wellKnownSymbol$4('iterator');
|
|
@@ -2875,7 +2936,7 @@ var getPrototypeOf = objectGetPrototypeOf;
|
|
|
2875
2936
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
2876
2937
|
var setToStringTag = setToStringTag$3;
|
|
2877
2938
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
|
|
2878
|
-
var defineBuiltIn$1 = defineBuiltIn$
|
|
2939
|
+
var defineBuiltIn$1 = defineBuiltIn$7;
|
|
2879
2940
|
var wellKnownSymbol$3 = wellKnownSymbol$i;
|
|
2880
2941
|
var Iterators$1 = iterators;
|
|
2881
2942
|
var IteratorsCore = iteratorsCore;
|
|
@@ -3129,12 +3190,20 @@ class Ninetailed {
|
|
|
3129
3190
|
} = {}) {
|
|
3130
3191
|
this.isInitialized = false;
|
|
3131
3192
|
this.page = (data, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3193
|
+
const result = PageviewProperties.partial().default({}).safeParse(data);
|
|
3194
|
+
if (!result.success) {
|
|
3195
|
+
throw new Error(`[Validation Error] "page" was called with invalid params. Page data is not valid: ${result.error.format()}`);
|
|
3196
|
+
}
|
|
3132
3197
|
yield this.waitUntilInitialized();
|
|
3133
3198
|
return this.instance.page(data, this.buildOptions(options));
|
|
3134
3199
|
});
|
|
3135
|
-
this.track = (event,
|
|
3200
|
+
this.track = (event, properties, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3201
|
+
const result = Properties.default({}).safeParse(properties);
|
|
3202
|
+
if (!result.success) {
|
|
3203
|
+
throw new Error(`[Validation Error] "track" was called with invalid params. Properties are no valid json object: ${result.error.format()}`);
|
|
3204
|
+
}
|
|
3136
3205
|
yield this.waitUntilInitialized();
|
|
3137
|
-
return this.instance.track(event,
|
|
3206
|
+
return this.instance.track(event.toString(), properties, this.buildOptions(options));
|
|
3138
3207
|
});
|
|
3139
3208
|
this.trackHasSeenComponent = payload => __awaiter(this, void 0, void 0, function* () {
|
|
3140
3209
|
return this.track('hasSeenComponent', payload, {
|
|
@@ -3144,8 +3213,11 @@ class Ninetailed {
|
|
|
3144
3213
|
}
|
|
3145
3214
|
});
|
|
3146
3215
|
});
|
|
3147
|
-
this.trackExperience =
|
|
3148
|
-
|
|
3216
|
+
this.trackExperience = properties => {
|
|
3217
|
+
// we stringify and parse the properties to remove non serializable values
|
|
3218
|
+
const stringifiedProperties = JSON.stringify(properties);
|
|
3219
|
+
const sanitizedProperties = JSON.parse(stringifiedProperties);
|
|
3220
|
+
return this.track('nt_experience', sanitizedProperties, {
|
|
3149
3221
|
plugins: {
|
|
3150
3222
|
all: true,
|
|
3151
3223
|
ninetailed: false
|
|
@@ -3153,9 +3225,12 @@ class Ninetailed {
|
|
|
3153
3225
|
});
|
|
3154
3226
|
};
|
|
3155
3227
|
this.identify = (uid, traits, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3228
|
+
const result = Traits.default({}).safeParse(traits);
|
|
3229
|
+
if (!result.success) {
|
|
3230
|
+
throw new Error(`[Validation Error] "identify" was called with invalid params. Traits are no valid json: ${result.error.format()}`);
|
|
3231
|
+
}
|
|
3156
3232
|
yield this.waitUntilInitialized();
|
|
3157
|
-
|
|
3158
|
-
return this.instance.identify(uid, traits, this.buildOptions(options));
|
|
3233
|
+
return this.instance.identify(uid.toString(), result.data, this.buildOptions(options));
|
|
3159
3234
|
});
|
|
3160
3235
|
this.reset = () => {
|
|
3161
3236
|
this.onIsInitialized(() => {
|
|
@@ -3251,6 +3326,11 @@ class Ninetailed {
|
|
|
3251
3326
|
// put in private method
|
|
3252
3327
|
this.onProfileChange(profileState => {
|
|
3253
3328
|
this._profileState = profileState;
|
|
3329
|
+
if (typeof window !== 'undefined') {
|
|
3330
|
+
window.ninetailed = Object.assign({}, window.ninetailed, {
|
|
3331
|
+
profile: this.profileState.profile
|
|
3332
|
+
});
|
|
3333
|
+
}
|
|
3254
3334
|
});
|
|
3255
3335
|
this.registerWindowHandlers();
|
|
3256
3336
|
}
|
|
@@ -3268,7 +3348,8 @@ class Ninetailed {
|
|
|
3268
3348
|
trackHasSeenComponent: this.trackHasSeenComponent.bind(this),
|
|
3269
3349
|
identify: this.identify.bind(this),
|
|
3270
3350
|
reset: this.reset.bind(this),
|
|
3271
|
-
debug: this.debug.bind(this)
|
|
3351
|
+
debug: this.debug.bind(this),
|
|
3352
|
+
profile: this.profileState.profile
|
|
3272
3353
|
});
|
|
3273
3354
|
}
|
|
3274
3355
|
}
|
|
@@ -3419,25 +3500,7 @@ $$3({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_RE
|
|
|
3419
3500
|
}
|
|
3420
3501
|
});
|
|
3421
3502
|
|
|
3422
|
-
var
|
|
3423
|
-
|
|
3424
|
-
// `RegExp.prototype.flags` getter implementation
|
|
3425
|
-
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
3426
|
-
var regexpFlags$1 = function () {
|
|
3427
|
-
var that = anObject$2(this);
|
|
3428
|
-
var result = '';
|
|
3429
|
-
if (that.hasIndices) result += 'd';
|
|
3430
|
-
if (that.global) result += 'g';
|
|
3431
|
-
if (that.ignoreCase) result += 'i';
|
|
3432
|
-
if (that.multiline) result += 'm';
|
|
3433
|
-
if (that.dotAll) result += 's';
|
|
3434
|
-
if (that.unicode) result += 'u';
|
|
3435
|
-
if (that.unicodeSets) result += 'v';
|
|
3436
|
-
if (that.sticky) result += 'y';
|
|
3437
|
-
return result;
|
|
3438
|
-
};
|
|
3439
|
-
|
|
3440
|
-
var fails$6 = fails$l;
|
|
3503
|
+
var fails$6 = fails$m;
|
|
3441
3504
|
var global$4 = global$n;
|
|
3442
3505
|
|
|
3443
3506
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
@@ -3468,7 +3531,7 @@ var regexpStickyHelpers = {
|
|
|
3468
3531
|
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
3469
3532
|
};
|
|
3470
3533
|
|
|
3471
|
-
var fails$5 = fails$
|
|
3534
|
+
var fails$5 = fails$m;
|
|
3472
3535
|
var global$3 = global$n;
|
|
3473
3536
|
|
|
3474
3537
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
@@ -3479,7 +3542,7 @@ var regexpUnsupportedDotAll = fails$5(function () {
|
|
|
3479
3542
|
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
3480
3543
|
});
|
|
3481
3544
|
|
|
3482
|
-
var fails$4 = fails$
|
|
3545
|
+
var fails$4 = fails$m;
|
|
3483
3546
|
var global$2 = global$n;
|
|
3484
3547
|
|
|
3485
3548
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
@@ -3620,9 +3683,9 @@ $$2({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
|
|
|
3620
3683
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
3621
3684
|
|
|
3622
3685
|
var uncurryThis$5 = functionUncurryThisClause;
|
|
3623
|
-
var defineBuiltIn = defineBuiltIn$
|
|
3686
|
+
var defineBuiltIn = defineBuiltIn$7;
|
|
3624
3687
|
var regexpExec$1 = regexpExec$2;
|
|
3625
|
-
var fails$3 = fails$
|
|
3688
|
+
var fails$3 = fails$m;
|
|
3626
3689
|
var wellKnownSymbol$1 = wellKnownSymbol$i;
|
|
3627
3690
|
var createNonEnumerableProperty = createNonEnumerableProperty$5;
|
|
3628
3691
|
|
|
@@ -3782,7 +3845,7 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
|
|
|
3782
3845
|
};
|
|
3783
3846
|
|
|
3784
3847
|
var call$1 = functionCall;
|
|
3785
|
-
var anObject$1 = anObject$
|
|
3848
|
+
var anObject$1 = anObject$e;
|
|
3786
3849
|
var isCallable$1 = isCallable$m;
|
|
3787
3850
|
var classof = classofRaw$2;
|
|
3788
3851
|
var regexpExec = regexpExec$2;
|
|
@@ -3806,8 +3869,8 @@ var apply = functionApply;
|
|
|
3806
3869
|
var call = functionCall;
|
|
3807
3870
|
var uncurryThis$2 = functionUncurryThis;
|
|
3808
3871
|
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
3809
|
-
var fails$2 = fails$
|
|
3810
|
-
var anObject = anObject$
|
|
3872
|
+
var fails$2 = fails$m;
|
|
3873
|
+
var anObject = anObject$e;
|
|
3811
3874
|
var isCallable = isCallable$m;
|
|
3812
3875
|
var isNullOrUndefined = isNullOrUndefined$5;
|
|
3813
3876
|
var toIntegerOrInfinity = toIntegerOrInfinity$4;
|
|
@@ -4109,7 +4172,7 @@ var arrayReduce = {
|
|
|
4109
4172
|
right: createMethod$1(true)
|
|
4110
4173
|
};
|
|
4111
4174
|
|
|
4112
|
-
var fails$1 = fails$
|
|
4175
|
+
var fails$1 = fails$m;
|
|
4113
4176
|
|
|
4114
4177
|
var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
|
|
4115
4178
|
var method = [][METHOD_NAME];
|
|
@@ -4176,7 +4239,7 @@ var stringTrim = {
|
|
|
4176
4239
|
};
|
|
4177
4240
|
|
|
4178
4241
|
var global$1 = global$n;
|
|
4179
|
-
var fails = fails$
|
|
4242
|
+
var fails = fails$m;
|
|
4180
4243
|
var uncurryThis = functionUncurryThis;
|
|
4181
4244
|
var toString = toString$7;
|
|
4182
4245
|
var trim = stringTrim.trim;
|