@dereekb/firebase 10.0.13 → 10.0.15
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.js +271 -270
- package/index.esm.js +284 -281
- package/package.json +1 -1
- package/src/lib/common/firestore/collection/collection.query.d.ts +1 -1
- package/src/lib/common/firestore/query/query.d.ts +1 -1
- package/src/lib/common/firestore/snapshot/snapshot.field.d.ts +33 -9
- package/src/lib/common/storage/storage.d.ts +5 -0
- package/src/lib/common/storage/types.d.ts +6 -2
- package/test/CHANGELOG.md +8 -0
- package/test/package.json +1 -1
- package/test/src/lib/common/storage/test.driver.accessor.js +8 -2
- package/test/src/lib/common/storage/test.driver.accessor.js.map +1 -1
package/index.cjs.js
CHANGED
|
@@ -101,10 +101,10 @@ var functionBindNative = !fails$i(function () {
|
|
|
101
101
|
|
|
102
102
|
var NATIVE_BIND$3 = functionBindNative;
|
|
103
103
|
|
|
104
|
-
var call$
|
|
104
|
+
var call$j = Function.prototype.call;
|
|
105
105
|
|
|
106
|
-
var functionCall = NATIVE_BIND$3 ? call$
|
|
107
|
-
return call$
|
|
106
|
+
var functionCall = NATIVE_BIND$3 ? call$j.bind(call$j) : function () {
|
|
107
|
+
return call$j.apply(call$j, arguments);
|
|
108
108
|
};
|
|
109
109
|
|
|
110
110
|
var objectPropertyIsEnumerable = {};
|
|
@@ -135,30 +135,30 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
|
135
135
|
var NATIVE_BIND$2 = functionBindNative;
|
|
136
136
|
|
|
137
137
|
var FunctionPrototype$2 = Function.prototype;
|
|
138
|
-
var call$
|
|
139
|
-
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$
|
|
138
|
+
var call$i = FunctionPrototype$2.call;
|
|
139
|
+
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$i, call$i);
|
|
140
140
|
|
|
141
141
|
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
142
142
|
return function () {
|
|
143
|
-
return call$
|
|
143
|
+
return call$i.apply(fn, arguments);
|
|
144
144
|
};
|
|
145
145
|
};
|
|
146
146
|
|
|
147
|
-
var uncurryThis$
|
|
147
|
+
var uncurryThis$k = functionUncurryThis;
|
|
148
148
|
|
|
149
|
-
var toString$6 = uncurryThis$
|
|
150
|
-
var stringSlice$6 = uncurryThis$
|
|
149
|
+
var toString$6 = uncurryThis$k({}.toString);
|
|
150
|
+
var stringSlice$6 = uncurryThis$k(''.slice);
|
|
151
151
|
|
|
152
152
|
var classofRaw$2 = function (it) {
|
|
153
153
|
return stringSlice$6(toString$6(it), 8, -1);
|
|
154
154
|
};
|
|
155
155
|
|
|
156
|
-
var uncurryThis$
|
|
156
|
+
var uncurryThis$j = functionUncurryThis;
|
|
157
157
|
var fails$h = fails$k;
|
|
158
|
-
var classof$
|
|
158
|
+
var classof$7 = classofRaw$2;
|
|
159
159
|
|
|
160
160
|
var $Object$4 = Object;
|
|
161
|
-
var split = uncurryThis$
|
|
161
|
+
var split = uncurryThis$j(''.split);
|
|
162
162
|
|
|
163
163
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
164
164
|
var indexedObject = fails$h(function () {
|
|
@@ -166,7 +166,7 @@ var indexedObject = fails$h(function () {
|
|
|
166
166
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
167
167
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
168
168
|
}) ? function (it) {
|
|
169
|
-
return classof$
|
|
169
|
+
return classof$7(it) === 'String' ? split(it, '') : $Object$4(it);
|
|
170
170
|
} : $Object$4;
|
|
171
171
|
|
|
172
172
|
// we can't use just `it == null` since of `document.all` special case
|
|
@@ -208,7 +208,7 @@ var isCallable$l = typeof documentAll == 'undefined' && documentAll !== undefine
|
|
|
208
208
|
|
|
209
209
|
var isCallable$k = isCallable$l;
|
|
210
210
|
|
|
211
|
-
var isObject$
|
|
211
|
+
var isObject$a = function (it) {
|
|
212
212
|
return typeof it == 'object' ? it !== null : isCallable$k(it);
|
|
213
213
|
};
|
|
214
214
|
|
|
@@ -223,9 +223,9 @@ var getBuiltIn$7 = function (namespace, method) {
|
|
|
223
223
|
return arguments.length < 2 ? aFunction(global$l[namespace]) : global$l[namespace] && global$l[namespace][method];
|
|
224
224
|
};
|
|
225
225
|
|
|
226
|
-
var uncurryThis$
|
|
226
|
+
var uncurryThis$i = functionUncurryThis;
|
|
227
227
|
|
|
228
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
228
|
+
var objectIsPrototypeOf = uncurryThis$i({}.isPrototypeOf);
|
|
229
229
|
|
|
230
230
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
231
231
|
|
|
@@ -328,9 +328,9 @@ var getMethod$5 = function (V, P) {
|
|
|
328
328
|
return isNullOrUndefined$4(func) ? undefined : aCallable$7(func);
|
|
329
329
|
};
|
|
330
330
|
|
|
331
|
-
var call$
|
|
331
|
+
var call$h = functionCall;
|
|
332
332
|
var isCallable$g = isCallable$l;
|
|
333
|
-
var isObject$
|
|
333
|
+
var isObject$9 = isObject$a;
|
|
334
334
|
|
|
335
335
|
var $TypeError$c = TypeError;
|
|
336
336
|
|
|
@@ -338,9 +338,9 @@ var $TypeError$c = TypeError;
|
|
|
338
338
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
339
339
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
340
340
|
var fn, val;
|
|
341
|
-
if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$
|
|
342
|
-
if (isCallable$g(fn = input.valueOf) && !isObject$
|
|
343
|
-
if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$
|
|
341
|
+
if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$9(val = call$h(fn, input))) return val;
|
|
342
|
+
if (isCallable$g(fn = input.valueOf) && !isObject$9(val = call$h(fn, input))) return val;
|
|
343
|
+
if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$9(val = call$h(fn, input))) return val;
|
|
344
344
|
throw new $TypeError$c("Can't convert object to primitive value");
|
|
345
345
|
};
|
|
346
346
|
|
|
@@ -372,10 +372,10 @@ var store$2 = sharedStore;
|
|
|
372
372
|
(shared$4.exports = function (key, value) {
|
|
373
373
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
374
374
|
})('versions', []).push({
|
|
375
|
-
version: '3.35.
|
|
375
|
+
version: '3.35.1',
|
|
376
376
|
mode: 'global',
|
|
377
|
-
copyright: '© 2014-
|
|
378
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.35.
|
|
377
|
+
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
378
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
|
|
379
379
|
source: 'https://github.com/zloirock/core-js'
|
|
380
380
|
});
|
|
381
381
|
|
|
@@ -389,10 +389,10 @@ var toObject$5 = function (argument) {
|
|
|
389
389
|
return $Object$2(requireObjectCoercible$3(argument));
|
|
390
390
|
};
|
|
391
391
|
|
|
392
|
-
var uncurryThis$
|
|
392
|
+
var uncurryThis$h = functionUncurryThis;
|
|
393
393
|
var toObject$4 = toObject$5;
|
|
394
394
|
|
|
395
|
-
var hasOwnProperty = uncurryThis$
|
|
395
|
+
var hasOwnProperty = uncurryThis$h({}.hasOwnProperty);
|
|
396
396
|
|
|
397
397
|
// `HasOwnProperty` abstract operation
|
|
398
398
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
@@ -401,11 +401,11 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
|
401
401
|
return hasOwnProperty(toObject$4(it), key);
|
|
402
402
|
};
|
|
403
403
|
|
|
404
|
-
var uncurryThis$
|
|
404
|
+
var uncurryThis$g = functionUncurryThis;
|
|
405
405
|
|
|
406
406
|
var id = 0;
|
|
407
407
|
var postfix = Math.random();
|
|
408
|
-
var toString$5 = uncurryThis$
|
|
408
|
+
var toString$5 = uncurryThis$g(1.0.toString);
|
|
409
409
|
|
|
410
410
|
var uid$2 = function (key) {
|
|
411
411
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
|
|
@@ -422,7 +422,7 @@ var Symbol$1 = global$g.Symbol;
|
|
|
422
422
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
423
423
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
424
424
|
|
|
425
|
-
var wellKnownSymbol$
|
|
425
|
+
var wellKnownSymbol$h = function (name) {
|
|
426
426
|
if (!hasOwn$a(WellKnownSymbolsStore, name)) {
|
|
427
427
|
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$a(Symbol$1, name)
|
|
428
428
|
? Symbol$1[name]
|
|
@@ -430,26 +430,26 @@ var wellKnownSymbol$i = function (name) {
|
|
|
430
430
|
} return WellKnownSymbolsStore[name];
|
|
431
431
|
};
|
|
432
432
|
|
|
433
|
-
var call$
|
|
434
|
-
var isObject$
|
|
433
|
+
var call$g = functionCall;
|
|
434
|
+
var isObject$8 = isObject$a;
|
|
435
435
|
var isSymbol$1 = isSymbol$2;
|
|
436
436
|
var getMethod$4 = getMethod$5;
|
|
437
437
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
438
|
-
var wellKnownSymbol$
|
|
438
|
+
var wellKnownSymbol$g = wellKnownSymbol$h;
|
|
439
439
|
|
|
440
440
|
var $TypeError$b = TypeError;
|
|
441
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
|
441
|
+
var TO_PRIMITIVE = wellKnownSymbol$g('toPrimitive');
|
|
442
442
|
|
|
443
443
|
// `ToPrimitive` abstract operation
|
|
444
444
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
445
445
|
var toPrimitive$1 = function (input, pref) {
|
|
446
|
-
if (!isObject$
|
|
446
|
+
if (!isObject$8(input) || isSymbol$1(input)) return input;
|
|
447
447
|
var exoticToPrim = getMethod$4(input, TO_PRIMITIVE);
|
|
448
448
|
var result;
|
|
449
449
|
if (exoticToPrim) {
|
|
450
450
|
if (pref === undefined) pref = 'default';
|
|
451
|
-
result = call$
|
|
452
|
-
if (!isObject$
|
|
451
|
+
result = call$g(exoticToPrim, input, pref);
|
|
452
|
+
if (!isObject$8(result) || isSymbol$1(result)) return result;
|
|
453
453
|
throw new $TypeError$b("Can't convert object to primitive value");
|
|
454
454
|
}
|
|
455
455
|
if (pref === undefined) pref = 'number';
|
|
@@ -467,11 +467,11 @@ var toPropertyKey$2 = function (argument) {
|
|
|
467
467
|
};
|
|
468
468
|
|
|
469
469
|
var global$f = global$m;
|
|
470
|
-
var isObject$
|
|
470
|
+
var isObject$7 = isObject$a;
|
|
471
471
|
|
|
472
472
|
var document$3 = global$f.document;
|
|
473
473
|
// typeof document.createElement is 'object' in old IE
|
|
474
|
-
var EXISTS$1 = isObject$
|
|
474
|
+
var EXISTS$1 = isObject$7(document$3) && isObject$7(document$3.createElement);
|
|
475
475
|
|
|
476
476
|
var documentCreateElement$2 = function (it) {
|
|
477
477
|
return EXISTS$1 ? document$3.createElement(it) : {};
|
|
@@ -490,7 +490,7 @@ var ie8DomDefine = !DESCRIPTORS$b && !fails$f(function () {
|
|
|
490
490
|
});
|
|
491
491
|
|
|
492
492
|
var DESCRIPTORS$a = descriptors;
|
|
493
|
-
var call$
|
|
493
|
+
var call$f = functionCall;
|
|
494
494
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
495
495
|
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
496
496
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
@@ -509,7 +509,7 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$a ? $getOwnPropertyDescriptor$1 :
|
|
|
509
509
|
if (IE8_DOM_DEFINE$1) try {
|
|
510
510
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
511
511
|
} catch (error) { /* empty */ }
|
|
512
|
-
if (hasOwn$9(O, P)) return createPropertyDescriptor$2(!call$
|
|
512
|
+
if (hasOwn$9(O, P)) return createPropertyDescriptor$2(!call$f(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
513
513
|
};
|
|
514
514
|
|
|
515
515
|
var objectDefineProperty = {};
|
|
@@ -527,14 +527,14 @@ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$e(function () {
|
|
|
527
527
|
}).prototype !== 42;
|
|
528
528
|
});
|
|
529
529
|
|
|
530
|
-
var isObject$
|
|
530
|
+
var isObject$6 = isObject$a;
|
|
531
531
|
|
|
532
532
|
var $String$3 = String;
|
|
533
533
|
var $TypeError$a = TypeError;
|
|
534
534
|
|
|
535
535
|
// `Assert: Type(argument) is Object`
|
|
536
536
|
var anObject$f = function (argument) {
|
|
537
|
-
if (isObject$
|
|
537
|
+
if (isObject$6(argument)) return argument;
|
|
538
538
|
throw new $TypeError$a($String$3(argument) + ' is not an object');
|
|
539
539
|
};
|
|
540
540
|
|
|
@@ -613,11 +613,11 @@ var functionName = {
|
|
|
613
613
|
CONFIGURABLE: CONFIGURABLE
|
|
614
614
|
};
|
|
615
615
|
|
|
616
|
-
var uncurryThis$
|
|
616
|
+
var uncurryThis$f = functionUncurryThis;
|
|
617
617
|
var isCallable$f = isCallable$l;
|
|
618
618
|
var store$1 = sharedStore;
|
|
619
619
|
|
|
620
|
-
var functionToString = uncurryThis$
|
|
620
|
+
var functionToString = uncurryThis$f(Function.toString);
|
|
621
621
|
|
|
622
622
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
623
623
|
if (!isCallable$f(store$1.inspectSource)) {
|
|
@@ -648,7 +648,7 @@ var hiddenKeys$4 = {};
|
|
|
648
648
|
|
|
649
649
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
650
650
|
var global$d = global$m;
|
|
651
|
-
var isObject$
|
|
651
|
+
var isObject$5 = isObject$a;
|
|
652
652
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
|
|
653
653
|
var hasOwn$7 = hasOwnProperty_1;
|
|
654
654
|
var shared$1 = sharedStore;
|
|
@@ -667,7 +667,7 @@ var enforce = function (it) {
|
|
|
667
667
|
var getterFor = function (TYPE) {
|
|
668
668
|
return function (it) {
|
|
669
669
|
var state;
|
|
670
|
-
if (!isObject$
|
|
670
|
+
if (!isObject$5(it) || (state = get(it)).type !== TYPE) {
|
|
671
671
|
throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
|
|
672
672
|
} return state;
|
|
673
673
|
};
|
|
@@ -717,7 +717,7 @@ var internalState = {
|
|
|
717
717
|
getterFor: getterFor
|
|
718
718
|
};
|
|
719
719
|
|
|
720
|
-
var uncurryThis$
|
|
720
|
+
var uncurryThis$e = functionUncurryThis;
|
|
721
721
|
var fails$d = fails$k;
|
|
722
722
|
var isCallable$d = isCallable$l;
|
|
723
723
|
var hasOwn$6 = hasOwnProperty_1;
|
|
@@ -731,9 +731,9 @@ var getInternalState$2 = InternalStateModule$2.get;
|
|
|
731
731
|
var $String$2 = String;
|
|
732
732
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
733
733
|
var defineProperty$5 = Object.defineProperty;
|
|
734
|
-
var stringSlice$5 = uncurryThis$
|
|
735
|
-
var replace$2 = uncurryThis$
|
|
736
|
-
var join = uncurryThis$
|
|
734
|
+
var stringSlice$5 = uncurryThis$e(''.slice);
|
|
735
|
+
var replace$2 = uncurryThis$e(''.replace);
|
|
736
|
+
var join = uncurryThis$e([].join);
|
|
737
737
|
|
|
738
738
|
var CONFIGURABLE_LENGTH = DESCRIPTORS$5 && !fails$d(function () {
|
|
739
739
|
return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
@@ -743,7 +743,7 @@ var TEMPLATE = String(String).split('String');
|
|
|
743
743
|
|
|
744
744
|
var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
745
745
|
if (stringSlice$5($String$2(name), 0, 7) === 'Symbol(') {
|
|
746
|
-
name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\)
|
|
746
|
+
name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
747
747
|
}
|
|
748
748
|
if (options && options.getter) name = 'get ' + name;
|
|
749
749
|
if (options && options.setter) name = 'set ' + name;
|
|
@@ -843,7 +843,8 @@ var min$2 = Math.min;
|
|
|
843
843
|
// `ToLength` abstract operation
|
|
844
844
|
// https://tc39.es/ecma262/#sec-tolength
|
|
845
845
|
var toLength$3 = function (argument) {
|
|
846
|
-
|
|
846
|
+
var len = toIntegerOrInfinity$3(argument);
|
|
847
|
+
return len > 0 ? min$2(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
847
848
|
};
|
|
848
849
|
|
|
849
850
|
var toLength$2 = toLength$3;
|
|
@@ -887,13 +888,13 @@ var arrayIncludes = {
|
|
|
887
888
|
indexOf: createMethod$1(false)
|
|
888
889
|
};
|
|
889
890
|
|
|
890
|
-
var uncurryThis$
|
|
891
|
+
var uncurryThis$d = functionUncurryThis;
|
|
891
892
|
var hasOwn$5 = hasOwnProperty_1;
|
|
892
893
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
893
894
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
894
895
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
895
896
|
|
|
896
|
-
var push$2 = uncurryThis$
|
|
897
|
+
var push$2 = uncurryThis$d([].push);
|
|
897
898
|
|
|
898
899
|
var objectKeysInternal = function (object, names) {
|
|
899
900
|
var O = toIndexedObject$2(object);
|
|
@@ -937,12 +938,12 @@ var objectGetOwnPropertySymbols = {};
|
|
|
937
938
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
938
939
|
|
|
939
940
|
var getBuiltIn$5 = getBuiltIn$7;
|
|
940
|
-
var uncurryThis$
|
|
941
|
+
var uncurryThis$c = functionUncurryThis;
|
|
941
942
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
942
943
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
943
944
|
var anObject$d = anObject$f;
|
|
944
945
|
|
|
945
|
-
var concat$2 = uncurryThis$
|
|
946
|
+
var concat$2 = uncurryThis$c([].concat);
|
|
946
947
|
|
|
947
948
|
// all object keys, includes non-enumerable and symbols
|
|
948
949
|
var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
@@ -1024,7 +1025,7 @@ var _export = function (options, source) {
|
|
|
1024
1025
|
} else if (STATIC) {
|
|
1025
1026
|
target = global$c[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1026
1027
|
} else {
|
|
1027
|
-
target =
|
|
1028
|
+
target = global$c[TARGET] && global$c[TARGET].prototype;
|
|
1028
1029
|
}
|
|
1029
1030
|
if (target) for (key in source) {
|
|
1030
1031
|
sourceProperty = source[key];
|
|
@@ -1047,24 +1048,24 @@ var _export = function (options, source) {
|
|
|
1047
1048
|
};
|
|
1048
1049
|
|
|
1049
1050
|
var global$b = global$m;
|
|
1050
|
-
var classof$
|
|
1051
|
+
var classof$6 = classofRaw$2;
|
|
1051
1052
|
|
|
1052
|
-
var engineIsNode = classof$
|
|
1053
|
+
var engineIsNode = classof$6(global$b.process) === 'process';
|
|
1053
1054
|
|
|
1054
|
-
var uncurryThis$
|
|
1055
|
+
var uncurryThis$b = functionUncurryThis;
|
|
1055
1056
|
var aCallable$6 = aCallable$8;
|
|
1056
1057
|
|
|
1057
1058
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1058
1059
|
try {
|
|
1059
1060
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1060
|
-
return uncurryThis$
|
|
1061
|
+
return uncurryThis$b(aCallable$6(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1061
1062
|
} catch (error) { /* empty */ }
|
|
1062
1063
|
};
|
|
1063
1064
|
|
|
1064
|
-
var isObject$
|
|
1065
|
+
var isObject$4 = isObject$a;
|
|
1065
1066
|
|
|
1066
1067
|
var isPossiblePrototype$1 = function (argument) {
|
|
1067
|
-
return isObject$
|
|
1068
|
+
return isObject$4(argument) || argument === null;
|
|
1068
1069
|
};
|
|
1069
1070
|
|
|
1070
1071
|
var isPossiblePrototype = isPossiblePrototype$1;
|
|
@@ -1106,9 +1107,9 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1106
1107
|
|
|
1107
1108
|
var defineProperty$4 = objectDefineProperty.f;
|
|
1108
1109
|
var hasOwn$3 = hasOwnProperty_1;
|
|
1109
|
-
var wellKnownSymbol$
|
|
1110
|
+
var wellKnownSymbol$f = wellKnownSymbol$h;
|
|
1110
1111
|
|
|
1111
|
-
var TO_STRING_TAG$2 = wellKnownSymbol$
|
|
1112
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$f('toStringTag');
|
|
1112
1113
|
|
|
1113
1114
|
var setToStringTag$4 = function (target, TAG, STATIC) {
|
|
1114
1115
|
if (target && !STATIC) target = target.prototype;
|
|
@@ -1128,10 +1129,10 @@ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
|
|
|
1128
1129
|
|
|
1129
1130
|
var getBuiltIn$4 = getBuiltIn$7;
|
|
1130
1131
|
var defineBuiltInAccessor = defineBuiltInAccessor$1;
|
|
1131
|
-
var wellKnownSymbol$
|
|
1132
|
+
var wellKnownSymbol$e = wellKnownSymbol$h;
|
|
1132
1133
|
var DESCRIPTORS$4 = descriptors;
|
|
1133
1134
|
|
|
1134
|
-
var SPECIES$4 = wellKnownSymbol$
|
|
1135
|
+
var SPECIES$4 = wellKnownSymbol$e('species');
|
|
1135
1136
|
|
|
1136
1137
|
var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
1137
1138
|
var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
|
|
@@ -1153,9 +1154,9 @@ var anInstance$1 = function (it, Prototype) {
|
|
|
1153
1154
|
throw new $TypeError$7('Incorrect invocation');
|
|
1154
1155
|
};
|
|
1155
1156
|
|
|
1156
|
-
var wellKnownSymbol$
|
|
1157
|
+
var wellKnownSymbol$d = wellKnownSymbol$h;
|
|
1157
1158
|
|
|
1158
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$
|
|
1159
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$d('toStringTag');
|
|
1159
1160
|
var test$1 = {};
|
|
1160
1161
|
|
|
1161
1162
|
test$1[TO_STRING_TAG$1] = 'z';
|
|
@@ -1165,9 +1166,9 @@ var toStringTagSupport = String(test$1) === '[object z]';
|
|
|
1165
1166
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1166
1167
|
var isCallable$a = isCallable$l;
|
|
1167
1168
|
var classofRaw$1 = classofRaw$2;
|
|
1168
|
-
var wellKnownSymbol$
|
|
1169
|
+
var wellKnownSymbol$c = wellKnownSymbol$h;
|
|
1169
1170
|
|
|
1170
|
-
var TO_STRING_TAG = wellKnownSymbol$
|
|
1171
|
+
var TO_STRING_TAG = wellKnownSymbol$c('toStringTag');
|
|
1171
1172
|
var $Object$1 = Object;
|
|
1172
1173
|
|
|
1173
1174
|
// ES3 wrong here
|
|
@@ -1181,7 +1182,7 @@ var tryGet = function (it, key) {
|
|
|
1181
1182
|
};
|
|
1182
1183
|
|
|
1183
1184
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1184
|
-
var classof$
|
|
1185
|
+
var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
1185
1186
|
var O, tag, result;
|
|
1186
1187
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1187
1188
|
// @@toStringTag case
|
|
@@ -1192,24 +1193,23 @@ var classof$6 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
|
1192
1193
|
: (result = classofRaw$1(O)) === 'Object' && isCallable$a(O.callee) ? 'Arguments' : result;
|
|
1193
1194
|
};
|
|
1194
1195
|
|
|
1195
|
-
var uncurryThis$
|
|
1196
|
+
var uncurryThis$a = functionUncurryThis;
|
|
1196
1197
|
var fails$b = fails$k;
|
|
1197
1198
|
var isCallable$9 = isCallable$l;
|
|
1198
|
-
var classof$
|
|
1199
|
+
var classof$4 = classof$5;
|
|
1199
1200
|
var getBuiltIn$3 = getBuiltIn$7;
|
|
1200
1201
|
var inspectSource$1 = inspectSource$3;
|
|
1201
1202
|
|
|
1202
1203
|
var noop = function () { /* empty */ };
|
|
1203
|
-
var empty = [];
|
|
1204
1204
|
var construct = getBuiltIn$3('Reflect', 'construct');
|
|
1205
1205
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
1206
|
-
var exec$
|
|
1206
|
+
var exec$1 = uncurryThis$a(constructorRegExp.exec);
|
|
1207
1207
|
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
|
|
1208
1208
|
|
|
1209
1209
|
var isConstructorModern = function isConstructor(argument) {
|
|
1210
1210
|
if (!isCallable$9(argument)) return false;
|
|
1211
1211
|
try {
|
|
1212
|
-
construct(noop,
|
|
1212
|
+
construct(noop, [], argument);
|
|
1213
1213
|
return true;
|
|
1214
1214
|
} catch (error) {
|
|
1215
1215
|
return false;
|
|
@@ -1218,7 +1218,7 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
1218
1218
|
|
|
1219
1219
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
1220
1220
|
if (!isCallable$9(argument)) return false;
|
|
1221
|
-
switch (classof$
|
|
1221
|
+
switch (classof$4(argument)) {
|
|
1222
1222
|
case 'AsyncFunction':
|
|
1223
1223
|
case 'GeneratorFunction':
|
|
1224
1224
|
case 'AsyncGeneratorFunction': return false;
|
|
@@ -1227,7 +1227,7 @@ var isConstructorLegacy = function isConstructor(argument) {
|
|
|
1227
1227
|
// we can't check .prototype since constructors produced by .bind haven't it
|
|
1228
1228
|
// `Function#toString` throws on some built-it function in some legacy engines
|
|
1229
1229
|
// (for example, `DOMQuad` and similar in FF41-)
|
|
1230
|
-
return INCORRECT_TO_STRING || !!exec$
|
|
1230
|
+
return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource$1(argument));
|
|
1231
1231
|
} catch (error) {
|
|
1232
1232
|
return true;
|
|
1233
1233
|
}
|
|
@@ -1259,9 +1259,9 @@ var aConstructor$1 = function (argument) {
|
|
|
1259
1259
|
var anObject$b = anObject$f;
|
|
1260
1260
|
var aConstructor = aConstructor$1;
|
|
1261
1261
|
var isNullOrUndefined$3 = isNullOrUndefined$6;
|
|
1262
|
-
var wellKnownSymbol$
|
|
1262
|
+
var wellKnownSymbol$b = wellKnownSymbol$h;
|
|
1263
1263
|
|
|
1264
|
-
var SPECIES$3 = wellKnownSymbol$
|
|
1264
|
+
var SPECIES$3 = wellKnownSymbol$b('species');
|
|
1265
1265
|
|
|
1266
1266
|
// `SpeciesConstructor` abstract operation
|
|
1267
1267
|
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
@@ -1274,29 +1274,29 @@ var speciesConstructor$2 = function (O, defaultConstructor) {
|
|
|
1274
1274
|
var NATIVE_BIND$1 = functionBindNative;
|
|
1275
1275
|
|
|
1276
1276
|
var FunctionPrototype = Function.prototype;
|
|
1277
|
-
var apply$
|
|
1278
|
-
var call$
|
|
1277
|
+
var apply$2 = FunctionPrototype.apply;
|
|
1278
|
+
var call$e = FunctionPrototype.call;
|
|
1279
1279
|
|
|
1280
1280
|
// eslint-disable-next-line es/no-reflect -- safe
|
|
1281
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$
|
|
1282
|
-
return call$
|
|
1281
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$e.bind(apply$2) : function () {
|
|
1282
|
+
return call$e.apply(apply$2, arguments);
|
|
1283
1283
|
});
|
|
1284
1284
|
|
|
1285
1285
|
var classofRaw = classofRaw$2;
|
|
1286
|
-
var uncurryThis$
|
|
1286
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
1287
1287
|
|
|
1288
1288
|
var functionUncurryThisClause = function (fn) {
|
|
1289
1289
|
// Nashorn bug:
|
|
1290
1290
|
// https://github.com/zloirock/core-js/issues/1128
|
|
1291
1291
|
// https://github.com/zloirock/core-js/issues/1130
|
|
1292
|
-
if (classofRaw(fn) === 'Function') return uncurryThis$
|
|
1292
|
+
if (classofRaw(fn) === 'Function') return uncurryThis$9(fn);
|
|
1293
1293
|
};
|
|
1294
1294
|
|
|
1295
|
-
var uncurryThis$
|
|
1295
|
+
var uncurryThis$8 = functionUncurryThisClause;
|
|
1296
1296
|
var aCallable$5 = aCallable$8;
|
|
1297
1297
|
var NATIVE_BIND = functionBindNative;
|
|
1298
1298
|
|
|
1299
|
-
var bind$5 = uncurryThis$
|
|
1299
|
+
var bind$5 = uncurryThis$8(uncurryThis$8.bind);
|
|
1300
1300
|
|
|
1301
1301
|
// optional / simple context binding
|
|
1302
1302
|
var functionBindContext = function (fn, that) {
|
|
@@ -1310,9 +1310,9 @@ var getBuiltIn$2 = getBuiltIn$7;
|
|
|
1310
1310
|
|
|
1311
1311
|
var html$2 = getBuiltIn$2('document', 'documentElement');
|
|
1312
1312
|
|
|
1313
|
-
var uncurryThis$
|
|
1313
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
1314
1314
|
|
|
1315
|
-
var arraySlice$
|
|
1315
|
+
var arraySlice$1 = uncurryThis$7([].slice);
|
|
1316
1316
|
|
|
1317
1317
|
var $TypeError$5 = TypeError;
|
|
1318
1318
|
|
|
@@ -1327,13 +1327,13 @@ var userAgent$2 = engineUserAgent;
|
|
|
1327
1327
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
1328
1328
|
|
|
1329
1329
|
var global$a = global$m;
|
|
1330
|
-
var apply$
|
|
1330
|
+
var apply$1 = functionApply;
|
|
1331
1331
|
var bind$4 = functionBindContext;
|
|
1332
1332
|
var isCallable$8 = isCallable$l;
|
|
1333
1333
|
var hasOwn$2 = hasOwnProperty_1;
|
|
1334
1334
|
var fails$a = fails$k;
|
|
1335
1335
|
var html$1 = html$2;
|
|
1336
|
-
var arraySlice
|
|
1336
|
+
var arraySlice = arraySlice$1;
|
|
1337
1337
|
var createElement = documentCreateElement$2;
|
|
1338
1338
|
var validateArgumentsLength = validateArgumentsLength$1;
|
|
1339
1339
|
var IS_IOS$1 = engineIsIos;
|
|
@@ -1384,9 +1384,9 @@ if (!set || !clear) {
|
|
|
1384
1384
|
set = function setImmediate(handler) {
|
|
1385
1385
|
validateArgumentsLength(arguments.length, 1);
|
|
1386
1386
|
var fn = isCallable$8(handler) ? handler : Function$1(handler);
|
|
1387
|
-
var args = arraySlice
|
|
1387
|
+
var args = arraySlice(arguments, 1);
|
|
1388
1388
|
queue$2[++counter] = function () {
|
|
1389
|
-
apply$
|
|
1389
|
+
apply$1(fn, undefined, args);
|
|
1390
1390
|
};
|
|
1391
1391
|
defer(counter);
|
|
1392
1392
|
return counter;
|
|
@@ -1602,13 +1602,13 @@ var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
|
1602
1602
|
var isCallable$7 = isCallable$l;
|
|
1603
1603
|
var isForced = isForced_1;
|
|
1604
1604
|
var inspectSource = inspectSource$3;
|
|
1605
|
-
var wellKnownSymbol$
|
|
1605
|
+
var wellKnownSymbol$a = wellKnownSymbol$h;
|
|
1606
1606
|
var IS_BROWSER = engineIsBrowser;
|
|
1607
1607
|
var IS_DENO = engineIsDeno;
|
|
1608
1608
|
var V8_VERSION = engineV8Version;
|
|
1609
1609
|
|
|
1610
1610
|
NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
|
|
1611
|
-
var SPECIES$2 = wellKnownSymbol$
|
|
1611
|
+
var SPECIES$2 = wellKnownSymbol$a('species');
|
|
1612
1612
|
var SUBCLASSING = false;
|
|
1613
1613
|
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$7(global$6.PromiseRejectionEvent);
|
|
1614
1614
|
|
|
@@ -1668,14 +1668,14 @@ newPromiseCapability$2.f = function (C) {
|
|
|
1668
1668
|
var $$a = _export;
|
|
1669
1669
|
var IS_NODE = engineIsNode;
|
|
1670
1670
|
var global$5 = global$m;
|
|
1671
|
-
var call$
|
|
1671
|
+
var call$d = functionCall;
|
|
1672
1672
|
var defineBuiltIn$5 = defineBuiltIn$7;
|
|
1673
1673
|
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
1674
1674
|
var setToStringTag$3 = setToStringTag$4;
|
|
1675
1675
|
var setSpecies = setSpecies$1;
|
|
1676
1676
|
var aCallable$3 = aCallable$8;
|
|
1677
1677
|
var isCallable$6 = isCallable$l;
|
|
1678
|
-
var isObject$
|
|
1678
|
+
var isObject$3 = isObject$a;
|
|
1679
1679
|
var anInstance = anInstance$1;
|
|
1680
1680
|
var speciesConstructor$1 = speciesConstructor$2;
|
|
1681
1681
|
var task = task$1.set;
|
|
@@ -1717,7 +1717,7 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
|
1717
1717
|
// helpers
|
|
1718
1718
|
var isThenable = function (it) {
|
|
1719
1719
|
var then;
|
|
1720
|
-
return isObject$
|
|
1720
|
+
return isObject$3(it) && isCallable$6(then = it.then) ? then : false;
|
|
1721
1721
|
};
|
|
1722
1722
|
|
|
1723
1723
|
var callReaction = function (reaction, state) {
|
|
@@ -1746,7 +1746,7 @@ var callReaction = function (reaction, state) {
|
|
|
1746
1746
|
if (result === reaction.promise) {
|
|
1747
1747
|
reject(new TypeError$1('Promise-chain cycle'));
|
|
1748
1748
|
} else if (then = isThenable(result)) {
|
|
1749
|
-
call$
|
|
1749
|
+
call$d(then, result, resolve, reject);
|
|
1750
1750
|
} else resolve(result);
|
|
1751
1751
|
} else reject(value);
|
|
1752
1752
|
} catch (error) {
|
|
@@ -1783,7 +1783,7 @@ var dispatchEvent = function (name, promise, reason) {
|
|
|
1783
1783
|
};
|
|
1784
1784
|
|
|
1785
1785
|
var onUnhandled = function (state) {
|
|
1786
|
-
call$
|
|
1786
|
+
call$d(task, global$5, function () {
|
|
1787
1787
|
var promise = state.facade;
|
|
1788
1788
|
var value = state.value;
|
|
1789
1789
|
var IS_UNHANDLED = isUnhandled(state);
|
|
@@ -1806,7 +1806,7 @@ var isUnhandled = function (state) {
|
|
|
1806
1806
|
};
|
|
1807
1807
|
|
|
1808
1808
|
var onHandleUnhandled = function (state) {
|
|
1809
|
-
call$
|
|
1809
|
+
call$d(task, global$5, function () {
|
|
1810
1810
|
var promise = state.facade;
|
|
1811
1811
|
if (IS_NODE) {
|
|
1812
1812
|
process.emit('rejectionHandled', promise);
|
|
@@ -1840,7 +1840,7 @@ var internalResolve = function (state, value, unwrap) {
|
|
|
1840
1840
|
microtask(function () {
|
|
1841
1841
|
var wrapper = { done: false };
|
|
1842
1842
|
try {
|
|
1843
|
-
call$
|
|
1843
|
+
call$d(then, value,
|
|
1844
1844
|
bind$2(internalResolve, wrapper, state),
|
|
1845
1845
|
bind$2(internalReject, wrapper, state)
|
|
1846
1846
|
);
|
|
@@ -1864,7 +1864,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
1864
1864
|
PromiseConstructor = function Promise(executor) {
|
|
1865
1865
|
anInstance(this, PromisePrototype);
|
|
1866
1866
|
aCallable$3(executor);
|
|
1867
|
-
call$
|
|
1867
|
+
call$d(Internal, this);
|
|
1868
1868
|
var state = getInternalPromiseState(this);
|
|
1869
1869
|
try {
|
|
1870
1870
|
executor(bind$2(internalResolve, state), bind$2(internalReject, state));
|
|
@@ -1927,7 +1927,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
1927
1927
|
defineBuiltIn$5(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
|
|
1928
1928
|
var that = this;
|
|
1929
1929
|
return new PromiseConstructor(function (resolve, reject) {
|
|
1930
|
-
call$
|
|
1930
|
+
call$d(nativeThen, that, resolve, reject);
|
|
1931
1931
|
}).then(onFulfilled, onRejected);
|
|
1932
1932
|
// https://github.com/zloirock/core-js/issues/640
|
|
1933
1933
|
}, { unsafe: true });
|
|
@@ -1954,10 +1954,10 @@ setSpecies(PROMISE);
|
|
|
1954
1954
|
|
|
1955
1955
|
var iterators = {};
|
|
1956
1956
|
|
|
1957
|
-
var wellKnownSymbol$
|
|
1957
|
+
var wellKnownSymbol$9 = wellKnownSymbol$h;
|
|
1958
1958
|
var Iterators$4 = iterators;
|
|
1959
1959
|
|
|
1960
|
-
var ITERATOR$5 = wellKnownSymbol$
|
|
1960
|
+
var ITERATOR$5 = wellKnownSymbol$9('iterator');
|
|
1961
1961
|
var ArrayPrototype$1 = Array.prototype;
|
|
1962
1962
|
|
|
1963
1963
|
// check on default Array iterator
|
|
@@ -1965,21 +1965,21 @@ var isArrayIteratorMethod$1 = function (it) {
|
|
|
1965
1965
|
return it !== undefined && (Iterators$4.Array === it || ArrayPrototype$1[ITERATOR$5] === it);
|
|
1966
1966
|
};
|
|
1967
1967
|
|
|
1968
|
-
var classof$
|
|
1968
|
+
var classof$3 = classof$5;
|
|
1969
1969
|
var getMethod$3 = getMethod$5;
|
|
1970
1970
|
var isNullOrUndefined$2 = isNullOrUndefined$6;
|
|
1971
1971
|
var Iterators$3 = iterators;
|
|
1972
|
-
var wellKnownSymbol$
|
|
1972
|
+
var wellKnownSymbol$8 = wellKnownSymbol$h;
|
|
1973
1973
|
|
|
1974
|
-
var ITERATOR$4 = wellKnownSymbol$
|
|
1974
|
+
var ITERATOR$4 = wellKnownSymbol$8('iterator');
|
|
1975
1975
|
|
|
1976
1976
|
var getIteratorMethod$2 = function (it) {
|
|
1977
1977
|
if (!isNullOrUndefined$2(it)) return getMethod$3(it, ITERATOR$4)
|
|
1978
1978
|
|| getMethod$3(it, '@@iterator')
|
|
1979
|
-
|| Iterators$3[classof$
|
|
1979
|
+
|| Iterators$3[classof$3(it)];
|
|
1980
1980
|
};
|
|
1981
1981
|
|
|
1982
|
-
var call$
|
|
1982
|
+
var call$c = functionCall;
|
|
1983
1983
|
var aCallable$2 = aCallable$8;
|
|
1984
1984
|
var anObject$a = anObject$f;
|
|
1985
1985
|
var tryToString$1 = tryToString$4;
|
|
@@ -1989,11 +1989,11 @@ var $TypeError$3 = TypeError;
|
|
|
1989
1989
|
|
|
1990
1990
|
var getIterator$1 = function (argument, usingIterator) {
|
|
1991
1991
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
1992
|
-
if (aCallable$2(iteratorMethod)) return anObject$a(call$
|
|
1992
|
+
if (aCallable$2(iteratorMethod)) return anObject$a(call$c(iteratorMethod, argument));
|
|
1993
1993
|
throw new $TypeError$3(tryToString$1(argument) + ' is not iterable');
|
|
1994
1994
|
};
|
|
1995
1995
|
|
|
1996
|
-
var call$
|
|
1996
|
+
var call$b = functionCall;
|
|
1997
1997
|
var anObject$9 = anObject$f;
|
|
1998
1998
|
var getMethod$2 = getMethod$5;
|
|
1999
1999
|
|
|
@@ -2006,7 +2006,7 @@ var iteratorClose$1 = function (iterator, kind, value) {
|
|
|
2006
2006
|
if (kind === 'throw') throw value;
|
|
2007
2007
|
return value;
|
|
2008
2008
|
}
|
|
2009
|
-
innerResult = call$
|
|
2009
|
+
innerResult = call$b(innerResult, iterator);
|
|
2010
2010
|
} catch (error) {
|
|
2011
2011
|
innerError = true;
|
|
2012
2012
|
innerResult = error;
|
|
@@ -2018,7 +2018,7 @@ var iteratorClose$1 = function (iterator, kind, value) {
|
|
|
2018
2018
|
};
|
|
2019
2019
|
|
|
2020
2020
|
var bind$1 = functionBindContext;
|
|
2021
|
-
var call$
|
|
2021
|
+
var call$a = functionCall;
|
|
2022
2022
|
var anObject$8 = anObject$f;
|
|
2023
2023
|
var tryToString = tryToString$4;
|
|
2024
2024
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
@@ -2076,7 +2076,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
2076
2076
|
}
|
|
2077
2077
|
|
|
2078
2078
|
next = IS_RECORD ? iterable.next : iterator.next;
|
|
2079
|
-
while (!(step = call$
|
|
2079
|
+
while (!(step = call$a(next, iterator)).done) {
|
|
2080
2080
|
try {
|
|
2081
2081
|
result = callFn(step.value);
|
|
2082
2082
|
} catch (error) {
|
|
@@ -2086,9 +2086,9 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
2086
2086
|
} return new Result(false);
|
|
2087
2087
|
};
|
|
2088
2088
|
|
|
2089
|
-
var wellKnownSymbol$
|
|
2089
|
+
var wellKnownSymbol$7 = wellKnownSymbol$h;
|
|
2090
2090
|
|
|
2091
|
-
var ITERATOR$3 = wellKnownSymbol$
|
|
2091
|
+
var ITERATOR$3 = wellKnownSymbol$7('iterator');
|
|
2092
2092
|
var SAFE_CLOSING = false;
|
|
2093
2093
|
|
|
2094
2094
|
try {
|
|
@@ -2136,7 +2136,7 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
|
|
|
2136
2136
|
});
|
|
2137
2137
|
|
|
2138
2138
|
var $$9 = _export;
|
|
2139
|
-
var call$
|
|
2139
|
+
var call$9 = functionCall;
|
|
2140
2140
|
var aCallable$1 = aCallable$8;
|
|
2141
2141
|
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
2142
2142
|
var perform$1 = perform$3;
|
|
@@ -2160,7 +2160,7 @@ $$9({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2160
2160
|
var index = counter++;
|
|
2161
2161
|
var alreadyCalled = false;
|
|
2162
2162
|
remaining++;
|
|
2163
|
-
call$
|
|
2163
|
+
call$9($promiseResolve, C, promise).then(function (value) {
|
|
2164
2164
|
if (alreadyCalled) return;
|
|
2165
2165
|
alreadyCalled = true;
|
|
2166
2166
|
values[index] = value;
|
|
@@ -2200,7 +2200,7 @@ if (isCallable$5(NativePromiseConstructor)) {
|
|
|
2200
2200
|
}
|
|
2201
2201
|
|
|
2202
2202
|
var $$7 = _export;
|
|
2203
|
-
var call$
|
|
2203
|
+
var call$8 = functionCall;
|
|
2204
2204
|
var aCallable = aCallable$8;
|
|
2205
2205
|
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
2206
2206
|
var perform = perform$3;
|
|
@@ -2217,7 +2217,7 @@ $$7({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2217
2217
|
var result = perform(function () {
|
|
2218
2218
|
var $promiseResolve = aCallable(C.resolve);
|
|
2219
2219
|
iterate(iterable, function (promise) {
|
|
2220
|
-
call$
|
|
2220
|
+
call$8($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
2221
2221
|
});
|
|
2222
2222
|
});
|
|
2223
2223
|
if (result.error) reject(result.value);
|
|
@@ -2241,12 +2241,12 @@ $$6({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
|
2241
2241
|
});
|
|
2242
2242
|
|
|
2243
2243
|
var anObject$7 = anObject$f;
|
|
2244
|
-
var isObject$
|
|
2244
|
+
var isObject$2 = isObject$a;
|
|
2245
2245
|
var newPromiseCapability = newPromiseCapability$2;
|
|
2246
2246
|
|
|
2247
2247
|
var promiseResolve$1 = function (C, x) {
|
|
2248
2248
|
anObject$7(C);
|
|
2249
|
-
if (isObject$
|
|
2249
|
+
if (isObject$2(x) && x.constructor === C) return x;
|
|
2250
2250
|
var promiseCapability = newPromiseCapability.f(C);
|
|
2251
2251
|
var resolve = promiseCapability.resolve;
|
|
2252
2252
|
resolve(x);
|
|
@@ -2326,8 +2326,8 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
2326
2326
|
};
|
|
2327
2327
|
|
|
2328
2328
|
var DESCRIPTORS$2 = descriptors;
|
|
2329
|
-
var uncurryThis$
|
|
2330
|
-
var call$
|
|
2329
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
2330
|
+
var call$7 = functionCall;
|
|
2331
2331
|
var fails$9 = fails$k;
|
|
2332
2332
|
var objectKeys$1 = objectKeys$2;
|
|
2333
2333
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
@@ -2339,7 +2339,7 @@ var IndexedObject = indexedObject;
|
|
|
2339
2339
|
var $assign = Object.assign;
|
|
2340
2340
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
2341
2341
|
var defineProperty$2 = Object.defineProperty;
|
|
2342
|
-
var concat$1 = uncurryThis$
|
|
2342
|
+
var concat$1 = uncurryThis$6([].concat);
|
|
2343
2343
|
|
|
2344
2344
|
// `Object.assign` method
|
|
2345
2345
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
@@ -2377,7 +2377,7 @@ var objectAssign = !$assign || fails$9(function () {
|
|
|
2377
2377
|
var key;
|
|
2378
2378
|
while (length > j) {
|
|
2379
2379
|
key = keys[j++];
|
|
2380
|
-
if (!DESCRIPTORS$2 || call$
|
|
2380
|
+
if (!DESCRIPTORS$2 || call$7(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
2381
2381
|
}
|
|
2382
2382
|
} return T;
|
|
2383
2383
|
} : $assign;
|
|
@@ -3042,12 +3042,12 @@ function dataFromDocumentSnapshots() {
|
|
|
3042
3042
|
return rxjs.map(x => getDataFromDocumentSnapshots(x));
|
|
3043
3043
|
}
|
|
3044
3044
|
|
|
3045
|
-
var classof$
|
|
3045
|
+
var classof$2 = classof$5;
|
|
3046
3046
|
|
|
3047
3047
|
var $String = String;
|
|
3048
3048
|
|
|
3049
3049
|
var toString$4 = function (argument) {
|
|
3050
|
-
if (classof$
|
|
3050
|
+
if (classof$2(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
3051
3051
|
return $String(argument);
|
|
3052
3052
|
};
|
|
3053
3053
|
|
|
@@ -3069,7 +3069,7 @@ var regexpFlags$1 = function () {
|
|
|
3069
3069
|
return result;
|
|
3070
3070
|
};
|
|
3071
3071
|
|
|
3072
|
-
var call$
|
|
3072
|
+
var call$6 = functionCall;
|
|
3073
3073
|
var hasOwn$1 = hasOwnProperty_1;
|
|
3074
3074
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
3075
3075
|
var regExpFlags = regexpFlags$1;
|
|
@@ -3079,7 +3079,7 @@ var RegExpPrototype$2 = RegExp.prototype;
|
|
|
3079
3079
|
var regexpGetFlags = function (R) {
|
|
3080
3080
|
var flags = R.flags;
|
|
3081
3081
|
return flags === undefined && !('flags' in RegExpPrototype$2) && !hasOwn$1(R, 'flags') && isPrototypeOf(RegExpPrototype$2, R)
|
|
3082
|
-
? call$
|
|
3082
|
+
? call$6(regExpFlags, R) : flags;
|
|
3083
3083
|
};
|
|
3084
3084
|
|
|
3085
3085
|
var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
|
|
@@ -3273,11 +3273,11 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
3273
3273
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
3274
3274
|
};
|
|
3275
3275
|
|
|
3276
|
-
var wellKnownSymbol$
|
|
3276
|
+
var wellKnownSymbol$6 = wellKnownSymbol$h;
|
|
3277
3277
|
var create$2 = objectCreate;
|
|
3278
3278
|
var defineProperty$1 = objectDefineProperty.f;
|
|
3279
3279
|
|
|
3280
|
-
var UNSCOPABLES = wellKnownSymbol$
|
|
3280
|
+
var UNSCOPABLES = wellKnownSymbol$6('unscopables');
|
|
3281
3281
|
var ArrayPrototype = Array.prototype;
|
|
3282
3282
|
|
|
3283
3283
|
// Array.prototype[@@unscopables]
|
|
@@ -3327,12 +3327,12 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : f
|
|
|
3327
3327
|
|
|
3328
3328
|
var fails$6 = fails$k;
|
|
3329
3329
|
var isCallable$3 = isCallable$l;
|
|
3330
|
-
var isObject$
|
|
3330
|
+
var isObject$1 = isObject$a;
|
|
3331
3331
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
3332
3332
|
var defineBuiltIn$2 = defineBuiltIn$7;
|
|
3333
|
-
var wellKnownSymbol$
|
|
3333
|
+
var wellKnownSymbol$5 = wellKnownSymbol$h;
|
|
3334
3334
|
|
|
3335
|
-
var ITERATOR$2 = wellKnownSymbol$
|
|
3335
|
+
var ITERATOR$2 = wellKnownSymbol$5('iterator');
|
|
3336
3336
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
3337
3337
|
|
|
3338
3338
|
// `%IteratorPrototype%` object
|
|
@@ -3350,7 +3350,7 @@ if ([].keys) {
|
|
|
3350
3350
|
}
|
|
3351
3351
|
}
|
|
3352
3352
|
|
|
3353
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$
|
|
3353
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$1(IteratorPrototype$2) || fails$6(function () {
|
|
3354
3354
|
var test = {};
|
|
3355
3355
|
// FF44- legacy iterators case
|
|
3356
3356
|
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
|
@@ -3388,7 +3388,7 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
|
|
|
3388
3388
|
};
|
|
3389
3389
|
|
|
3390
3390
|
var $$3 = _export;
|
|
3391
|
-
var call$
|
|
3391
|
+
var call$5 = functionCall;
|
|
3392
3392
|
var FunctionName = functionName;
|
|
3393
3393
|
var isCallable$2 = isCallable$l;
|
|
3394
3394
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
@@ -3397,7 +3397,7 @@ var setPrototypeOf = objectSetPrototypeOf;
|
|
|
3397
3397
|
var setToStringTag$1 = setToStringTag$4;
|
|
3398
3398
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
|
|
3399
3399
|
var defineBuiltIn$1 = defineBuiltIn$7;
|
|
3400
|
-
var wellKnownSymbol$
|
|
3400
|
+
var wellKnownSymbol$4 = wellKnownSymbol$h;
|
|
3401
3401
|
var Iterators$1 = iterators;
|
|
3402
3402
|
var IteratorsCore = iteratorsCore;
|
|
3403
3403
|
|
|
@@ -3405,7 +3405,7 @@ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
|
3405
3405
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
3406
3406
|
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
3407
3407
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
3408
|
-
var ITERATOR$1 = wellKnownSymbol$
|
|
3408
|
+
var ITERATOR$1 = wellKnownSymbol$4('iterator');
|
|
3409
3409
|
var KEYS = 'keys';
|
|
3410
3410
|
var VALUES = 'values';
|
|
3411
3411
|
var ENTRIES = 'entries';
|
|
@@ -3460,7 +3460,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
3460
3460
|
createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
|
|
3461
3461
|
} else {
|
|
3462
3462
|
INCORRECT_VALUES_NAME = true;
|
|
3463
|
-
defaultIterator = function values() { return call$
|
|
3463
|
+
defaultIterator = function values() { return call$5(nativeIterator, this); };
|
|
3464
3464
|
}
|
|
3465
3465
|
}
|
|
3466
3466
|
|
|
@@ -3604,9 +3604,9 @@ var DOMTokenListPrototype = domTokenListPrototype;
|
|
|
3604
3604
|
var ArrayIteratorMethods = es_array_iterator;
|
|
3605
3605
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
|
|
3606
3606
|
var setToStringTag = setToStringTag$4;
|
|
3607
|
-
var wellKnownSymbol$
|
|
3607
|
+
var wellKnownSymbol$3 = wellKnownSymbol$h;
|
|
3608
3608
|
|
|
3609
|
-
var ITERATOR = wellKnownSymbol$
|
|
3609
|
+
var ITERATOR = wellKnownSymbol$3('iterator');
|
|
3610
3610
|
var ArrayValues = ArrayIteratorMethods.values;
|
|
3611
3611
|
|
|
3612
3612
|
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
@@ -3667,9 +3667,10 @@ function firestorePassThroughField() {
|
|
|
3667
3667
|
function optionalFirestoreField(config) {
|
|
3668
3668
|
if (config) {
|
|
3669
3669
|
const {
|
|
3670
|
-
|
|
3671
|
-
defaultReadValue:
|
|
3672
|
-
dontStoreIfValue
|
|
3670
|
+
dontStoreDefaultReadValue,
|
|
3671
|
+
defaultReadValue: inputDefaultReadValue,
|
|
3672
|
+
dontStoreIfValue: inputDontStoreIfValue,
|
|
3673
|
+
dontStoreIf: inputDontStoreIf = inputDontStoreIfValue,
|
|
3673
3674
|
transformData: inputTransformData,
|
|
3674
3675
|
transformFromData,
|
|
3675
3676
|
transformToData
|
|
@@ -3677,17 +3678,54 @@ function optionalFirestoreField(config) {
|
|
|
3677
3678
|
const transformData = inputTransformData !== null && inputTransformData !== void 0 ? inputTransformData : util.passThrough;
|
|
3678
3679
|
const transformFrom = transformFromData !== null && transformFromData !== void 0 ? transformFromData : transformData;
|
|
3679
3680
|
const transformTo = transformToData !== null && transformToData !== void 0 ? transformToData : transformData;
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3681
|
+
let loadDefaultReadValueFn; // set if a default read value is provided
|
|
3682
|
+
// setup fromData
|
|
3683
|
+
let fromData;
|
|
3684
|
+
if (inputDefaultReadValue != null) {
|
|
3685
|
+
if (typeof inputDefaultReadValue === 'function') {
|
|
3686
|
+
loadDefaultReadValueFn = inputDefaultReadValue;
|
|
3687
|
+
} else {
|
|
3688
|
+
loadDefaultReadValueFn = () => inputDefaultReadValue;
|
|
3689
|
+
}
|
|
3690
|
+
fromData = x => transformFrom(x == null ? loadDefaultReadValueFn() : x);
|
|
3691
|
+
} else if (transformFrom !== util.passThrough) {
|
|
3692
|
+
fromData = x => x != null ? transformFrom(x) : x;
|
|
3693
|
+
} else {
|
|
3694
|
+
fromData = util.passThrough;
|
|
3695
|
+
}
|
|
3696
|
+
// setup toData
|
|
3697
|
+
let dontStoreIf;
|
|
3698
|
+
if (inputDontStoreIf != null) {
|
|
3699
|
+
if (typeof inputDontStoreIf === 'function') {
|
|
3700
|
+
dontStoreIf = inputDontStoreIf;
|
|
3701
|
+
} else {
|
|
3702
|
+
dontStoreIf = x => inputDontStoreIf === x;
|
|
3703
|
+
}
|
|
3704
|
+
} else if (dontStoreDefaultReadValue && loadDefaultReadValueFn != null) {
|
|
3705
|
+
dontStoreIf = x => x === loadDefaultReadValueFn();
|
|
3706
|
+
}
|
|
3707
|
+
let toData;
|
|
3708
|
+
if (dontStoreIf != null) {
|
|
3709
|
+
const dontStoreValue = dontStoreIf;
|
|
3710
|
+
toData = x => {
|
|
3684
3711
|
if (x != null) {
|
|
3685
3712
|
const transformedValue = transformTo(x);
|
|
3686
|
-
|
|
3713
|
+
const finalValue = transformedValue != null && !dontStoreValue(transformedValue) ? transformedValue : null;
|
|
3714
|
+
return finalValue;
|
|
3687
3715
|
} else {
|
|
3688
3716
|
return x;
|
|
3689
3717
|
}
|
|
3690
|
-
}
|
|
3718
|
+
};
|
|
3719
|
+
} else {
|
|
3720
|
+
toData = x => {
|
|
3721
|
+
var _a;
|
|
3722
|
+
return x != null ? (_a = transformTo(x)) !== null && _a !== void 0 ? _a : null : x;
|
|
3723
|
+
};
|
|
3724
|
+
}
|
|
3725
|
+
return firestoreField({
|
|
3726
|
+
default: null,
|
|
3727
|
+
fromData,
|
|
3728
|
+
toData
|
|
3691
3729
|
});
|
|
3692
3730
|
} else {
|
|
3693
3731
|
return FIRESTORE_PASSTHROUGH_FIELD;
|
|
@@ -3791,13 +3829,36 @@ function firestoreArray(config) {
|
|
|
3791
3829
|
toData: x => sortFn(x, true)
|
|
3792
3830
|
});
|
|
3793
3831
|
}
|
|
3794
|
-
function optionalFirestoreArray() {
|
|
3795
|
-
|
|
3832
|
+
function optionalFirestoreArray(config) {
|
|
3833
|
+
var _a;
|
|
3834
|
+
const sortFn = util.sortValuesFunctionOrMapIdentityWithSortRef(config);
|
|
3835
|
+
const inputDontStoreIf = config === null || config === void 0 ? void 0 : config.dontStoreIf;
|
|
3836
|
+
const shouldNotStoreIfEmpty = (_a = config === null || config === void 0 ? void 0 : config.dontStoreIfEmpty) !== null && _a !== void 0 ? _a : false;
|
|
3837
|
+
let dontStoreIf;
|
|
3838
|
+
if (inputDontStoreIf != null) {
|
|
3839
|
+
dontStoreIf = shouldNotStoreIfEmpty ? x => x.length === 0 || inputDontStoreIf(x) : inputDontStoreIf;
|
|
3840
|
+
} else {
|
|
3841
|
+
dontStoreIf = shouldNotStoreIfEmpty ? x => {
|
|
3842
|
+
return x.length === 0;
|
|
3843
|
+
} : undefined;
|
|
3844
|
+
}
|
|
3845
|
+
const inputFilterUnique = config === null || config === void 0 ? void 0 : config.filterUnique;
|
|
3846
|
+
const filterUniqueValuesFn = inputFilterUnique != null ? x => {
|
|
3847
|
+
const result = inputFilterUnique(x);
|
|
3848
|
+
return result;
|
|
3849
|
+
} : undefined;
|
|
3850
|
+
const inputTransformData = config === null || config === void 0 ? void 0 : config.transformData;
|
|
3851
|
+
const sortArrayFn = util.isMapIdentityFunction(sortFn) ? undefined : x => sortFn(x, true);
|
|
3852
|
+
const transformData = util.chainMapSameFunctions([filterUniqueValuesFn, inputTransformData, sortArrayFn]);
|
|
3853
|
+
return optionalFirestoreField(Object.assign(Object.assign({}, config), {
|
|
3854
|
+
dontStoreIf,
|
|
3855
|
+
transformData
|
|
3856
|
+
}));
|
|
3796
3857
|
}
|
|
3797
3858
|
function firestoreUniqueArray(config) {
|
|
3798
3859
|
var _a;
|
|
3799
3860
|
const {
|
|
3800
|
-
filterUnique
|
|
3861
|
+
filterUnique
|
|
3801
3862
|
} = config;
|
|
3802
3863
|
const sortFn = util.sortValuesFunctionOrMapIdentityWithSortRef(config);
|
|
3803
3864
|
return firestoreField({
|
|
@@ -5036,8 +5097,8 @@ var regexpUnsupportedNcg = fails$3(function () {
|
|
|
5036
5097
|
|
|
5037
5098
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
5038
5099
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
5039
|
-
var call$
|
|
5040
|
-
var uncurryThis$
|
|
5100
|
+
var call$4 = functionCall;
|
|
5101
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
5041
5102
|
var toString$3 = toString$4;
|
|
5042
5103
|
var regexpFlags = regexpFlags$1;
|
|
5043
5104
|
var stickyHelpers$1 = regexpStickyHelpers;
|
|
@@ -5050,16 +5111,16 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
|
5050
5111
|
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
5051
5112
|
var nativeExec = RegExp.prototype.exec;
|
|
5052
5113
|
var patchedExec = nativeExec;
|
|
5053
|
-
var charAt$3 = uncurryThis$
|
|
5054
|
-
var indexOf = uncurryThis$
|
|
5055
|
-
var replace$1 = uncurryThis$
|
|
5056
|
-
var stringSlice$4 = uncurryThis$
|
|
5114
|
+
var charAt$3 = uncurryThis$5(''.charAt);
|
|
5115
|
+
var indexOf = uncurryThis$5(''.indexOf);
|
|
5116
|
+
var replace$1 = uncurryThis$5(''.replace);
|
|
5117
|
+
var stringSlice$4 = uncurryThis$5(''.slice);
|
|
5057
5118
|
|
|
5058
5119
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
5059
5120
|
var re1 = /a/;
|
|
5060
5121
|
var re2 = /b*/g;
|
|
5061
|
-
call$
|
|
5062
|
-
call$
|
|
5122
|
+
call$4(nativeExec, re1, 'a');
|
|
5123
|
+
call$4(nativeExec, re2, 'a');
|
|
5063
5124
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
5064
5125
|
})();
|
|
5065
5126
|
|
|
@@ -5080,14 +5141,14 @@ if (PATCH) {
|
|
|
5080
5141
|
|
|
5081
5142
|
if (raw) {
|
|
5082
5143
|
raw.lastIndex = re.lastIndex;
|
|
5083
|
-
result = call$
|
|
5144
|
+
result = call$4(patchedExec, raw, str);
|
|
5084
5145
|
re.lastIndex = raw.lastIndex;
|
|
5085
5146
|
return result;
|
|
5086
5147
|
}
|
|
5087
5148
|
|
|
5088
5149
|
var groups = state.groups;
|
|
5089
5150
|
var sticky = UNSUPPORTED_Y$1 && re.sticky;
|
|
5090
|
-
var flags = call$
|
|
5151
|
+
var flags = call$4(regexpFlags, re);
|
|
5091
5152
|
var source = re.source;
|
|
5092
5153
|
var charsAdded = 0;
|
|
5093
5154
|
var strCopy = str;
|
|
@@ -5115,7 +5176,7 @@ if (PATCH) {
|
|
|
5115
5176
|
}
|
|
5116
5177
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
5117
5178
|
|
|
5118
|
-
match = call$
|
|
5179
|
+
match = call$4(nativeExec, sticky ? reCopy : re, strCopy);
|
|
5119
5180
|
|
|
5120
5181
|
if (sticky) {
|
|
5121
5182
|
if (match) {
|
|
@@ -5130,7 +5191,7 @@ if (PATCH) {
|
|
|
5130
5191
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
5131
5192
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
5132
5193
|
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
5133
|
-
call$
|
|
5194
|
+
call$4(nativeReplace, match[0], reCopy, function () {
|
|
5134
5195
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
5135
5196
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
5136
5197
|
}
|
|
@@ -5149,34 +5210,34 @@ if (PATCH) {
|
|
|
5149
5210
|
};
|
|
5150
5211
|
}
|
|
5151
5212
|
|
|
5152
|
-
var regexpExec$
|
|
5213
|
+
var regexpExec$2 = patchedExec;
|
|
5153
5214
|
|
|
5154
5215
|
var $$2 = _export;
|
|
5155
|
-
var exec
|
|
5216
|
+
var exec = regexpExec$2;
|
|
5156
5217
|
|
|
5157
5218
|
// `RegExp.prototype.exec` method
|
|
5158
5219
|
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
5159
|
-
$$2({ target: 'RegExp', proto: true, forced: /./.exec !== exec
|
|
5160
|
-
exec: exec
|
|
5220
|
+
$$2({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
5221
|
+
exec: exec
|
|
5161
5222
|
});
|
|
5162
5223
|
|
|
5163
5224
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
5164
5225
|
|
|
5165
|
-
var
|
|
5226
|
+
var call$3 = functionCall;
|
|
5166
5227
|
var defineBuiltIn = defineBuiltIn$7;
|
|
5167
|
-
var regexpExec$
|
|
5228
|
+
var regexpExec$1 = regexpExec$2;
|
|
5168
5229
|
var fails$2 = fails$k;
|
|
5169
|
-
var wellKnownSymbol$
|
|
5230
|
+
var wellKnownSymbol$2 = wellKnownSymbol$h;
|
|
5170
5231
|
var createNonEnumerableProperty = createNonEnumerableProperty$5;
|
|
5171
5232
|
|
|
5172
|
-
var SPECIES$1 = wellKnownSymbol$
|
|
5233
|
+
var SPECIES$1 = wellKnownSymbol$2('species');
|
|
5173
5234
|
var RegExpPrototype = RegExp.prototype;
|
|
5174
5235
|
|
|
5175
5236
|
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
5176
|
-
var SYMBOL = wellKnownSymbol$
|
|
5237
|
+
var SYMBOL = wellKnownSymbol$2(KEY);
|
|
5177
5238
|
|
|
5178
5239
|
var DELEGATES_TO_SYMBOL = !fails$2(function () {
|
|
5179
|
-
// String methods call symbol-named
|
|
5240
|
+
// String methods call symbol-named RegExp methods
|
|
5180
5241
|
var O = {};
|
|
5181
5242
|
O[SYMBOL] = function () { return 7; };
|
|
5182
5243
|
return ''[KEY](O) !== 7;
|
|
@@ -5214,18 +5275,17 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
5214
5275
|
!DELEGATES_TO_EXEC ||
|
|
5215
5276
|
FORCED
|
|
5216
5277
|
) {
|
|
5217
|
-
var
|
|
5278
|
+
var nativeRegExpMethod = /./[SYMBOL];
|
|
5218
5279
|
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
5219
|
-
var uncurriedNativeMethod = uncurryThis$5(nativeMethod);
|
|
5220
5280
|
var $exec = regexp.exec;
|
|
5221
|
-
if ($exec === regexpExec$
|
|
5281
|
+
if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
|
|
5222
5282
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
5223
5283
|
// The native String method already delegates to @@method (this
|
|
5224
5284
|
// polyfilled function), leasing to infinite recursion.
|
|
5225
5285
|
// We avoid it by directly calling the native @@method method.
|
|
5226
|
-
return { done: true, value:
|
|
5286
|
+
return { done: true, value: call$3(nativeRegExpMethod, regexp, str, arg2) };
|
|
5227
5287
|
}
|
|
5228
|
-
return { done: true, value:
|
|
5288
|
+
return { done: true, value: call$3(nativeMethod, str, regexp, arg2) };
|
|
5229
5289
|
}
|
|
5230
5290
|
return { done: false };
|
|
5231
5291
|
});
|
|
@@ -5237,19 +5297,6 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
5237
5297
|
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
5238
5298
|
};
|
|
5239
5299
|
|
|
5240
|
-
var isObject$1 = isObject$b;
|
|
5241
|
-
var classof$2 = classofRaw$2;
|
|
5242
|
-
var wellKnownSymbol$2 = wellKnownSymbol$i;
|
|
5243
|
-
|
|
5244
|
-
var MATCH = wellKnownSymbol$2('match');
|
|
5245
|
-
|
|
5246
|
-
// `IsRegExp` abstract operation
|
|
5247
|
-
// https://tc39.es/ecma262/#sec-isregexp
|
|
5248
|
-
var isRegexp = function (it) {
|
|
5249
|
-
var isRegExp;
|
|
5250
|
-
return isObject$1(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof$2(it) === 'RegExp');
|
|
5251
|
-
};
|
|
5252
|
-
|
|
5253
5300
|
var uncurryThis$4 = functionUncurryThis;
|
|
5254
5301
|
var toIntegerOrInfinity$2 = toIntegerOrInfinity$5;
|
|
5255
5302
|
var toString$2 = toString$4;
|
|
@@ -5299,7 +5346,7 @@ var call$2 = functionCall;
|
|
|
5299
5346
|
var anObject$2 = anObject$f;
|
|
5300
5347
|
var isCallable$1 = isCallable$l;
|
|
5301
5348
|
var classof$1 = classofRaw$2;
|
|
5302
|
-
var regexpExec
|
|
5349
|
+
var regexpExec = regexpExec$2;
|
|
5303
5350
|
|
|
5304
5351
|
var $TypeError$1 = TypeError;
|
|
5305
5352
|
|
|
@@ -5312,35 +5359,29 @@ var regexpExecAbstract = function (R, S) {
|
|
|
5312
5359
|
if (result !== null) anObject$2(result);
|
|
5313
5360
|
return result;
|
|
5314
5361
|
}
|
|
5315
|
-
if (classof$1(R) === 'RegExp') return call$2(regexpExec
|
|
5362
|
+
if (classof$1(R) === 'RegExp') return call$2(regexpExec, R, S);
|
|
5316
5363
|
throw new $TypeError$1('RegExp#exec called on incompatible receiver');
|
|
5317
5364
|
};
|
|
5318
5365
|
|
|
5319
|
-
var apply$1 = functionApply;
|
|
5320
5366
|
var call$1 = functionCall;
|
|
5321
5367
|
var uncurryThis$3 = functionUncurryThis;
|
|
5322
5368
|
var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
|
|
5323
5369
|
var anObject$1 = anObject$f;
|
|
5324
5370
|
var isNullOrUndefined$1 = isNullOrUndefined$6;
|
|
5325
|
-
var isRegExp = isRegexp;
|
|
5326
5371
|
var requireObjectCoercible$1 = requireObjectCoercible$5;
|
|
5327
5372
|
var speciesConstructor = speciesConstructor$2;
|
|
5328
5373
|
var advanceStringIndex$1 = advanceStringIndex$2;
|
|
5329
5374
|
var toLength$1 = toLength$3;
|
|
5330
5375
|
var toString$1 = toString$4;
|
|
5331
5376
|
var getMethod$1 = getMethod$5;
|
|
5332
|
-
var
|
|
5333
|
-
var callRegExpExec = regexpExecAbstract;
|
|
5334
|
-
var regexpExec = regexpExec$3;
|
|
5377
|
+
var regExpExec$1 = regexpExecAbstract;
|
|
5335
5378
|
var stickyHelpers = regexpStickyHelpers;
|
|
5336
5379
|
var fails$1 = fails$k;
|
|
5337
5380
|
|
|
5338
5381
|
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
|
|
5339
5382
|
var MAX_UINT32 = 0xFFFFFFFF;
|
|
5340
5383
|
var min$1 = Math.min;
|
|
5341
|
-
var $
|
|
5342
|
-
var exec = uncurryThis$3(/./.exec);
|
|
5343
|
-
var push$1 = uncurryThis$3($push);
|
|
5384
|
+
var push$1 = uncurryThis$3([].push);
|
|
5344
5385
|
var stringSlice$2 = uncurryThis$3(''.slice);
|
|
5345
5386
|
|
|
5346
5387
|
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
|
@@ -5354,60 +5395,20 @@ var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$1(function () {
|
|
|
5354
5395
|
return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
|
|
5355
5396
|
});
|
|
5356
5397
|
|
|
5398
|
+
var BUGGY = 'abbc'.split(/(b)*/)[1] === 'c' ||
|
|
5399
|
+
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
5400
|
+
'test'.split(/(?:)/, -1).length !== 4 ||
|
|
5401
|
+
'ab'.split(/(?:ab)*/).length !== 2 ||
|
|
5402
|
+
'.'.split(/(.?)(.?)/).length !== 4 ||
|
|
5403
|
+
// eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
|
|
5404
|
+
'.'.split(/()()/).length > 1 ||
|
|
5405
|
+
''.split(/.?/).length;
|
|
5406
|
+
|
|
5357
5407
|
// @@split logic
|
|
5358
5408
|
fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCallNative) {
|
|
5359
|
-
var internalSplit
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
5363
|
-
'test'.split(/(?:)/, -1).length !== 4 ||
|
|
5364
|
-
'ab'.split(/(?:ab)*/).length !== 2 ||
|
|
5365
|
-
'.'.split(/(.?)(.?)/).length !== 4 ||
|
|
5366
|
-
// eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
|
|
5367
|
-
'.'.split(/()()/).length > 1 ||
|
|
5368
|
-
''.split(/.?/).length
|
|
5369
|
-
) {
|
|
5370
|
-
// based on es5-shim implementation, need to rework it
|
|
5371
|
-
internalSplit = function (separator, limit) {
|
|
5372
|
-
var string = toString$1(requireObjectCoercible$1(this));
|
|
5373
|
-
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
5374
|
-
if (lim === 0) return [];
|
|
5375
|
-
if (separator === undefined) return [string];
|
|
5376
|
-
// If `separator` is not a regex, use native split
|
|
5377
|
-
if (!isRegExp(separator)) {
|
|
5378
|
-
return call$1(nativeSplit, string, separator, lim);
|
|
5379
|
-
}
|
|
5380
|
-
var output = [];
|
|
5381
|
-
var flags = (separator.ignoreCase ? 'i' : '') +
|
|
5382
|
-
(separator.multiline ? 'm' : '') +
|
|
5383
|
-
(separator.unicode ? 'u' : '') +
|
|
5384
|
-
(separator.sticky ? 'y' : '');
|
|
5385
|
-
var lastLastIndex = 0;
|
|
5386
|
-
// Make `global` and avoid `lastIndex` issues by working with a copy
|
|
5387
|
-
var separatorCopy = new RegExp(separator.source, flags + 'g');
|
|
5388
|
-
var match, lastIndex, lastLength;
|
|
5389
|
-
while (match = call$1(regexpExec, separatorCopy, string)) {
|
|
5390
|
-
lastIndex = separatorCopy.lastIndex;
|
|
5391
|
-
if (lastIndex > lastLastIndex) {
|
|
5392
|
-
push$1(output, stringSlice$2(string, lastLastIndex, match.index));
|
|
5393
|
-
if (match.length > 1 && match.index < string.length) apply$1($push, output, arraySlice(match, 1));
|
|
5394
|
-
lastLength = match[0].length;
|
|
5395
|
-
lastLastIndex = lastIndex;
|
|
5396
|
-
if (output.length >= lim) break;
|
|
5397
|
-
}
|
|
5398
|
-
if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
|
|
5399
|
-
}
|
|
5400
|
-
if (lastLastIndex === string.length) {
|
|
5401
|
-
if (lastLength || !exec(separatorCopy, '')) push$1(output, '');
|
|
5402
|
-
} else push$1(output, stringSlice$2(string, lastLastIndex));
|
|
5403
|
-
return output.length > lim ? arraySlice(output, 0, lim) : output;
|
|
5404
|
-
};
|
|
5405
|
-
// Chakra, V8
|
|
5406
|
-
} else if ('0'.split(undefined, 0).length) {
|
|
5407
|
-
internalSplit = function (separator, limit) {
|
|
5408
|
-
return separator === undefined && limit === 0 ? [] : call$1(nativeSplit, this, separator, limit);
|
|
5409
|
-
};
|
|
5410
|
-
} else internalSplit = nativeSplit;
|
|
5409
|
+
var internalSplit = '0'.split(undefined, 0).length ? function (separator, limit) {
|
|
5410
|
+
return separator === undefined && limit === 0 ? [] : call$1(nativeSplit, this, separator, limit);
|
|
5411
|
+
} : nativeSplit;
|
|
5411
5412
|
|
|
5412
5413
|
return [
|
|
5413
5414
|
// `String.prototype.split` method
|
|
@@ -5427,30 +5428,30 @@ fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCall
|
|
|
5427
5428
|
function (string, limit) {
|
|
5428
5429
|
var rx = anObject$1(this);
|
|
5429
5430
|
var S = toString$1(string);
|
|
5430
|
-
var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
|
|
5431
5431
|
|
|
5432
|
-
if (
|
|
5432
|
+
if (!BUGGY) {
|
|
5433
|
+
var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
|
|
5434
|
+
if (res.done) return res.value;
|
|
5435
|
+
}
|
|
5433
5436
|
|
|
5434
5437
|
var C = speciesConstructor(rx, RegExp);
|
|
5435
|
-
|
|
5436
5438
|
var unicodeMatching = rx.unicode;
|
|
5437
5439
|
var flags = (rx.ignoreCase ? 'i' : '') +
|
|
5438
5440
|
(rx.multiline ? 'm' : '') +
|
|
5439
5441
|
(rx.unicode ? 'u' : '') +
|
|
5440
5442
|
(UNSUPPORTED_Y ? 'g' : 'y');
|
|
5441
|
-
|
|
5442
5443
|
// ^(? + rx + ) is needed, in combination with some S slicing, to
|
|
5443
5444
|
// simulate the 'y' flag.
|
|
5444
5445
|
var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
|
|
5445
5446
|
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
5446
5447
|
if (lim === 0) return [];
|
|
5447
|
-
if (S.length === 0) return
|
|
5448
|
+
if (S.length === 0) return regExpExec$1(splitter, S) === null ? [S] : [];
|
|
5448
5449
|
var p = 0;
|
|
5449
5450
|
var q = 0;
|
|
5450
5451
|
var A = [];
|
|
5451
5452
|
while (q < S.length) {
|
|
5452
5453
|
splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
|
|
5453
|
-
var z =
|
|
5454
|
+
var z = regExpExec$1(splitter, UNSUPPORTED_Y ? stringSlice$2(S, q) : S);
|
|
5454
5455
|
var e;
|
|
5455
5456
|
if (
|
|
5456
5457
|
z === null ||
|
|
@@ -5471,7 +5472,7 @@ fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCall
|
|
|
5471
5472
|
return A;
|
|
5472
5473
|
}
|
|
5473
5474
|
];
|
|
5474
|
-
}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
|
|
5475
|
+
}, BUGGY || !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
|
|
5475
5476
|
|
|
5476
5477
|
var uncurryThis$2 = functionUncurryThis;
|
|
5477
5478
|
var toObject$1 = toObject$5;
|
|
@@ -5535,7 +5536,7 @@ var advanceStringIndex = advanceStringIndex$2;
|
|
|
5535
5536
|
var getMethod = getMethod$5;
|
|
5536
5537
|
var getSubstitution = getSubstitution$1;
|
|
5537
5538
|
var regExpExec = regexpExecAbstract;
|
|
5538
|
-
var wellKnownSymbol$1 = wellKnownSymbol$
|
|
5539
|
+
var wellKnownSymbol$1 = wellKnownSymbol$h;
|
|
5539
5540
|
|
|
5540
5541
|
var REPLACE = wellKnownSymbol$1('replace');
|
|
5541
5542
|
var max = Math.max;
|
|
@@ -6323,8 +6324,8 @@ var flattenIntoArray_1 = flattenIntoArray$1;
|
|
|
6323
6324
|
|
|
6324
6325
|
var isArray = isArray$3;
|
|
6325
6326
|
var isConstructor = isConstructor$2;
|
|
6326
|
-
var isObject = isObject$
|
|
6327
|
-
var wellKnownSymbol = wellKnownSymbol$
|
|
6327
|
+
var isObject = isObject$a;
|
|
6328
|
+
var wellKnownSymbol = wellKnownSymbol$h;
|
|
6328
6329
|
|
|
6329
6330
|
var SPECIES = wellKnownSymbol('species');
|
|
6330
6331
|
var $Array = Array;
|