@dereekb/util 13.5.0 → 13.5.1
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/fetch/index.cjs.js +11 -36
- package/fetch/index.esm.js +11 -36
- package/fetch/package.json +2 -2
- package/index.cjs.js +194 -268
- package/index.esm.js +194 -268
- package/package.json +1 -1
- package/test/package.json +2 -2
package/index.esm.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { symmetricDifference } from 'extra-set';
|
|
2
2
|
import { BaseError } from 'make-error';
|
|
3
3
|
|
|
4
|
-
function _array_like_to_array$
|
|
4
|
+
function _array_like_to_array$A(arr, len) {
|
|
5
5
|
if (len == null || len > arr.length) len = arr.length;
|
|
6
6
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7
7
|
return arr2;
|
|
8
8
|
}
|
|
9
|
-
function _array_without_holes$
|
|
10
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
9
|
+
function _array_without_holes$n(arr) {
|
|
10
|
+
if (Array.isArray(arr)) return _array_like_to_array$A(arr);
|
|
11
11
|
}
|
|
12
|
-
function _iterable_to_array$
|
|
12
|
+
function _iterable_to_array$n(iter) {
|
|
13
13
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
14
14
|
}
|
|
15
|
-
function _non_iterable_spread$
|
|
15
|
+
function _non_iterable_spread$n() {
|
|
16
16
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17
17
|
}
|
|
18
|
-
function _to_consumable_array$
|
|
19
|
-
return _array_without_holes$
|
|
18
|
+
function _to_consumable_array$n(arr) {
|
|
19
|
+
return _array_without_holes$n(arr) || _iterable_to_array$n(arr) || _unsupported_iterable_to_array$A(arr) || _non_iterable_spread$n();
|
|
20
20
|
}
|
|
21
21
|
function _type_of$m(obj) {
|
|
22
22
|
"@swc/helpers - typeof";
|
|
23
23
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
24
24
|
}
|
|
25
|
-
function _unsupported_iterable_to_array$
|
|
25
|
+
function _unsupported_iterable_to_array$A(o, minLen) {
|
|
26
26
|
if (!o) return;
|
|
27
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
27
|
+
if (typeof o === "string") return _array_like_to_array$A(o, minLen);
|
|
28
28
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
29
29
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
30
30
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
31
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
31
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$A(o, minLen);
|
|
32
32
|
}
|
|
33
33
|
// MARK: Functions
|
|
34
34
|
/**
|
|
@@ -63,7 +63,7 @@ function _unsupported_iterable_to_array$C(o, minLen) {
|
|
|
63
63
|
values
|
|
64
64
|
];
|
|
65
65
|
} else if (isIterable(values)) {
|
|
66
|
-
iterable = _to_consumable_array$
|
|
66
|
+
iterable = _to_consumable_array$n(values); // copy the array
|
|
67
67
|
} else {
|
|
68
68
|
iterable = [
|
|
69
69
|
values
|
|
@@ -391,30 +391,30 @@ function _unsupported_iterable_to_array$C(o, minLen) {
|
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
|
|
394
|
-
function _array_like_to_array$
|
|
394
|
+
function _array_like_to_array$z(arr, len) {
|
|
395
395
|
if (len == null || len > arr.length) len = arr.length;
|
|
396
396
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
397
397
|
return arr2;
|
|
398
398
|
}
|
|
399
|
-
function _array_without_holes$
|
|
400
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
399
|
+
function _array_without_holes$m(arr) {
|
|
400
|
+
if (Array.isArray(arr)) return _array_like_to_array$z(arr);
|
|
401
401
|
}
|
|
402
|
-
function _iterable_to_array$
|
|
402
|
+
function _iterable_to_array$m(iter) {
|
|
403
403
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
404
404
|
}
|
|
405
|
-
function _non_iterable_spread$
|
|
405
|
+
function _non_iterable_spread$m() {
|
|
406
406
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
407
407
|
}
|
|
408
|
-
function _to_consumable_array$
|
|
409
|
-
return _array_without_holes$
|
|
408
|
+
function _to_consumable_array$m(arr) {
|
|
409
|
+
return _array_without_holes$m(arr) || _iterable_to_array$m(arr) || _unsupported_iterable_to_array$z(arr) || _non_iterable_spread$m();
|
|
410
410
|
}
|
|
411
|
-
function _unsupported_iterable_to_array$
|
|
411
|
+
function _unsupported_iterable_to_array$z(o, minLen) {
|
|
412
412
|
if (!o) return;
|
|
413
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
413
|
+
if (typeof o === "string") return _array_like_to_array$z(o, minLen);
|
|
414
414
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
415
415
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
416
416
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
417
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
417
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$z(o, minLen);
|
|
418
418
|
}
|
|
419
419
|
// MARK: Functions
|
|
420
420
|
/**
|
|
@@ -548,7 +548,7 @@ function _unsupported_iterable_to_array$B(o, minLen) {
|
|
|
548
548
|
* @param input - array to copy, or nullish
|
|
549
549
|
* @returns a new array with the same elements, or an empty array if input is nullish
|
|
550
550
|
*/ function copyArray(input) {
|
|
551
|
-
return input != null ? _to_consumable_array$
|
|
551
|
+
return input != null ? _to_consumable_array$m(input) : [];
|
|
552
552
|
}
|
|
553
553
|
/**
|
|
554
554
|
* Pushes the same element onto the target array a specified number of times.
|
|
@@ -571,7 +571,7 @@ function _unsupported_iterable_to_array$B(o, minLen) {
|
|
|
571
571
|
*/ function mergeArrays(arrays) {
|
|
572
572
|
return mergeArraysIntoArray.apply(void 0, [
|
|
573
573
|
[]
|
|
574
|
-
].concat(_to_consumable_array$
|
|
574
|
+
].concat(_to_consumable_array$m(arrays)));
|
|
575
575
|
}
|
|
576
576
|
/**
|
|
577
577
|
* Merges the input arrays into the target array by pushing each item from each array. Creates an empty array if the target is nullish.
|
|
@@ -657,7 +657,7 @@ function _unsupported_iterable_to_array$B(o, minLen) {
|
|
|
657
657
|
var length = values.length;
|
|
658
658
|
var secondHalfStartIndex = Math.max(keepFromFront, length - (maxToTake - keepFromFront));
|
|
659
659
|
var secondHalfEndIndex = length;
|
|
660
|
-
results = _to_consumable_array$
|
|
660
|
+
results = _to_consumable_array$m(values.slice(0, keepFromFront)).concat(_to_consumable_array$m(values.slice(secondHalfStartIndex, secondHalfEndIndex)));
|
|
661
661
|
}
|
|
662
662
|
return results;
|
|
663
663
|
}
|
|
@@ -783,30 +783,30 @@ function _unsupported_iterable_to_array$B(o, minLen) {
|
|
|
783
783
|
return readKeysSetFunction(readKey)(values);
|
|
784
784
|
}
|
|
785
785
|
|
|
786
|
-
function _array_like_to_array$
|
|
786
|
+
function _array_like_to_array$y(arr, len) {
|
|
787
787
|
if (len == null || len > arr.length) len = arr.length;
|
|
788
788
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
789
789
|
return arr2;
|
|
790
790
|
}
|
|
791
|
-
function _array_without_holes$
|
|
792
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
791
|
+
function _array_without_holes$l(arr) {
|
|
792
|
+
if (Array.isArray(arr)) return _array_like_to_array$y(arr);
|
|
793
793
|
}
|
|
794
|
-
function _iterable_to_array$
|
|
794
|
+
function _iterable_to_array$l(iter) {
|
|
795
795
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
796
796
|
}
|
|
797
|
-
function _non_iterable_spread$
|
|
797
|
+
function _non_iterable_spread$l() {
|
|
798
798
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
799
799
|
}
|
|
800
|
-
function _to_consumable_array$
|
|
801
|
-
return _array_without_holes$
|
|
800
|
+
function _to_consumable_array$l(arr) {
|
|
801
|
+
return _array_without_holes$l(arr) || _iterable_to_array$l(arr) || _unsupported_iterable_to_array$y(arr) || _non_iterable_spread$l();
|
|
802
802
|
}
|
|
803
|
-
function _unsupported_iterable_to_array$
|
|
803
|
+
function _unsupported_iterable_to_array$y(o, minLen) {
|
|
804
804
|
if (!o) return;
|
|
805
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
805
|
+
if (typeof o === "string") return _array_like_to_array$y(o, minLen);
|
|
806
806
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
807
807
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
808
808
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
809
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
809
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$y(o, minLen);
|
|
810
810
|
}
|
|
811
811
|
/**
|
|
812
812
|
* Converts an {@link IterableOrValue} into a Set. Strings are treated as single values rather than character iterables.
|
|
@@ -938,7 +938,7 @@ function _unsupported_iterable_to_array$A(o, minLen) {
|
|
|
938
938
|
* @param b - Second set.
|
|
939
939
|
* @returns An array of values present in only one of the sets.
|
|
940
940
|
*/ function symmetricDifferenceArrayBetweenSets(a, b) {
|
|
941
|
-
return _to_consumable_array$
|
|
941
|
+
return _to_consumable_array$l(symmetricDifference(a, b));
|
|
942
942
|
}
|
|
943
943
|
/**
|
|
944
944
|
* Flattens a two-dimensional array into a Set of unique values.
|
|
@@ -1309,30 +1309,30 @@ function _unsupported_iterable_to_array$A(o, minLen) {
|
|
|
1309
1309
|
return a && b ? a.size === b.size && setContainsAllValues(a, b, true) : a == b;
|
|
1310
1310
|
}
|
|
1311
1311
|
|
|
1312
|
-
function _array_like_to_array$
|
|
1312
|
+
function _array_like_to_array$x(arr, len) {
|
|
1313
1313
|
if (len == null || len > arr.length) len = arr.length;
|
|
1314
1314
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1315
1315
|
return arr2;
|
|
1316
1316
|
}
|
|
1317
|
-
function _array_without_holes$
|
|
1318
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
1317
|
+
function _array_without_holes$k(arr) {
|
|
1318
|
+
if (Array.isArray(arr)) return _array_like_to_array$x(arr);
|
|
1319
1319
|
}
|
|
1320
|
-
function _iterable_to_array$
|
|
1320
|
+
function _iterable_to_array$k(iter) {
|
|
1321
1321
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
1322
1322
|
}
|
|
1323
|
-
function _non_iterable_spread$
|
|
1323
|
+
function _non_iterable_spread$k() {
|
|
1324
1324
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1325
1325
|
}
|
|
1326
|
-
function _to_consumable_array$
|
|
1327
|
-
return _array_without_holes$
|
|
1326
|
+
function _to_consumable_array$k(arr) {
|
|
1327
|
+
return _array_without_holes$k(arr) || _iterable_to_array$k(arr) || _unsupported_iterable_to_array$x(arr) || _non_iterable_spread$k();
|
|
1328
1328
|
}
|
|
1329
|
-
function _unsupported_iterable_to_array$
|
|
1329
|
+
function _unsupported_iterable_to_array$x(o, minLen) {
|
|
1330
1330
|
if (!o) return;
|
|
1331
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
1331
|
+
if (typeof o === "string") return _array_like_to_array$x(o, minLen);
|
|
1332
1332
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1333
1333
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1334
1334
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1335
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
1335
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$x(o, minLen);
|
|
1336
1336
|
}
|
|
1337
1337
|
/**
|
|
1338
1338
|
* Inverts the output of an arbitrary boolean-returning function.
|
|
@@ -1350,7 +1350,7 @@ function _unsupported_iterable_to_array$z(o, minLen) {
|
|
|
1350
1350
|
var _decisionFn;
|
|
1351
1351
|
var result = (_decisionFn = decisionFn).call.apply(_decisionFn, [
|
|
1352
1352
|
undefined
|
|
1353
|
-
].concat(_to_consumable_array$
|
|
1353
|
+
].concat(_to_consumable_array$k(args)));
|
|
1354
1354
|
return !result;
|
|
1355
1355
|
};
|
|
1356
1356
|
} else {
|
|
@@ -1832,30 +1832,30 @@ function chainMapFunction(a, b) {
|
|
|
1832
1832
|
}
|
|
1833
1833
|
}
|
|
1834
1834
|
|
|
1835
|
-
function _array_like_to_array$
|
|
1835
|
+
function _array_like_to_array$w(arr, len) {
|
|
1836
1836
|
if (len == null || len > arr.length) len = arr.length;
|
|
1837
1837
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1838
1838
|
return arr2;
|
|
1839
1839
|
}
|
|
1840
|
-
function _array_without_holes$
|
|
1841
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
1840
|
+
function _array_without_holes$j(arr) {
|
|
1841
|
+
if (Array.isArray(arr)) return _array_like_to_array$w(arr);
|
|
1842
1842
|
}
|
|
1843
|
-
function _iterable_to_array$
|
|
1843
|
+
function _iterable_to_array$j(iter) {
|
|
1844
1844
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
1845
1845
|
}
|
|
1846
|
-
function _non_iterable_spread$
|
|
1846
|
+
function _non_iterable_spread$j() {
|
|
1847
1847
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1848
1848
|
}
|
|
1849
|
-
function _to_consumable_array$
|
|
1850
|
-
return _array_without_holes$
|
|
1849
|
+
function _to_consumable_array$j(arr) {
|
|
1850
|
+
return _array_without_holes$j(arr) || _iterable_to_array$j(arr) || _unsupported_iterable_to_array$w(arr) || _non_iterable_spread$j();
|
|
1851
1851
|
}
|
|
1852
|
-
function _unsupported_iterable_to_array$
|
|
1852
|
+
function _unsupported_iterable_to_array$w(o, minLen) {
|
|
1853
1853
|
if (!o) return;
|
|
1854
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
1854
|
+
if (typeof o === "string") return _array_like_to_array$w(o, minLen);
|
|
1855
1855
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1856
1856
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1857
1857
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1858
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
1858
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$w(o, minLen);
|
|
1859
1859
|
}
|
|
1860
1860
|
/**
|
|
1861
1861
|
* Concatenates multiple arrays and returns only unique values.
|
|
@@ -1866,7 +1866,7 @@ function _unsupported_iterable_to_array$y(o, minLen) {
|
|
|
1866
1866
|
for(var _len = arguments.length, arrays = new Array(_len), _key = 0; _key < _len; _key++){
|
|
1867
1867
|
arrays[_key] = arguments[_key];
|
|
1868
1868
|
}
|
|
1869
|
-
return unique(concatArrays.apply(void 0, _to_consumable_array$
|
|
1869
|
+
return unique(concatArrays.apply(void 0, _to_consumable_array$j(arrays)));
|
|
1870
1870
|
}
|
|
1871
1871
|
/**
|
|
1872
1872
|
* Flattens a 2D array and returns only unique values.
|
|
@@ -1890,7 +1890,7 @@ function _unsupported_iterable_to_array$y(o, minLen) {
|
|
|
1890
1890
|
if (exclude.length) {
|
|
1891
1891
|
removeFromSet(unique, exclude);
|
|
1892
1892
|
}
|
|
1893
|
-
return
|
|
1893
|
+
return Array.from(unique);
|
|
1894
1894
|
}
|
|
1895
1895
|
/**
|
|
1896
1896
|
* Reads and resolves keys from a {@link FilterUniqueFunctionAdditionalKeysInput}, handling both raw key arrays and structured input objects.
|
|
@@ -1912,7 +1912,7 @@ function _unsupported_iterable_to_array$y(o, minLen) {
|
|
|
1912
1912
|
if (input.values) {
|
|
1913
1913
|
addToSet(keys, input.values.map(readKey));
|
|
1914
1914
|
}
|
|
1915
|
-
return
|
|
1915
|
+
return Array.from(keys);
|
|
1916
1916
|
}
|
|
1917
1917
|
/**
|
|
1918
1918
|
* Creates a {@link FilterUniqueFunction} that deduplicates items by their computed key.
|
|
@@ -1993,14 +1993,6 @@ function allowValueOnceFilter(inputReadKey) {
|
|
|
1993
1993
|
return fn;
|
|
1994
1994
|
}
|
|
1995
1995
|
|
|
1996
|
-
function _array_like_to_array$x(arr, len) {
|
|
1997
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
1998
|
-
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1999
|
-
return arr2;
|
|
2000
|
-
}
|
|
2001
|
-
function _array_without_holes$m(arr) {
|
|
2002
|
-
if (Array.isArray(arr)) return _array_like_to_array$x(arr);
|
|
2003
|
-
}
|
|
2004
1996
|
function _class_call_check$b(instance, Constructor) {
|
|
2005
1997
|
if (!(instance instanceof Constructor)) {
|
|
2006
1998
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -2019,27 +2011,10 @@ function _define_property$l(obj, key, value) {
|
|
|
2019
2011
|
}
|
|
2020
2012
|
return obj;
|
|
2021
2013
|
}
|
|
2022
|
-
function _iterable_to_array$m(iter) {
|
|
2023
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
2024
|
-
}
|
|
2025
|
-
function _non_iterable_spread$m() {
|
|
2026
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2027
|
-
}
|
|
2028
|
-
function _to_consumable_array$m(arr) {
|
|
2029
|
-
return _array_without_holes$m(arr) || _iterable_to_array$m(arr) || _unsupported_iterable_to_array$x(arr) || _non_iterable_spread$m();
|
|
2030
|
-
}
|
|
2031
2014
|
function _type_of$k(obj) {
|
|
2032
2015
|
"@swc/helpers - typeof";
|
|
2033
2016
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
2034
2017
|
}
|
|
2035
|
-
function _unsupported_iterable_to_array$x(o, minLen) {
|
|
2036
|
-
if (!o) return;
|
|
2037
|
-
if (typeof o === "string") return _array_like_to_array$x(o, minLen);
|
|
2038
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2039
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2040
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2041
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$x(o, minLen);
|
|
2042
|
-
}
|
|
2043
2018
|
var DEFAULT_UNKNOWN_MODEL_TYPE_STRING = 'unknown';
|
|
2044
2019
|
/**
|
|
2045
2020
|
* Reads the `id` property from a {@link UniqueModel}.
|
|
@@ -2061,7 +2036,7 @@ var DEFAULT_UNKNOWN_MODEL_TYPE_STRING = 'unknown';
|
|
|
2061
2036
|
* // result: ['a', 'b', 'c']
|
|
2062
2037
|
* ```
|
|
2063
2038
|
*/ function uniqueKeys(keys) {
|
|
2064
|
-
return
|
|
2039
|
+
return Array.from(new Set(keys));
|
|
2065
2040
|
}
|
|
2066
2041
|
function uniqueModels(models) {
|
|
2067
2042
|
var readKey = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : readUniqueModelKey;
|
|
@@ -2291,30 +2266,30 @@ function readModelKey(input) {
|
|
|
2291
2266
|
}
|
|
2292
2267
|
;
|
|
2293
2268
|
|
|
2294
|
-
function _array_like_to_array$
|
|
2269
|
+
function _array_like_to_array$v(arr, len) {
|
|
2295
2270
|
if (len == null || len > arr.length) len = arr.length;
|
|
2296
2271
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2297
2272
|
return arr2;
|
|
2298
2273
|
}
|
|
2299
|
-
function _array_without_holes$
|
|
2300
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
2274
|
+
function _array_without_holes$i(arr) {
|
|
2275
|
+
if (Array.isArray(arr)) return _array_like_to_array$v(arr);
|
|
2301
2276
|
}
|
|
2302
|
-
function _iterable_to_array$
|
|
2277
|
+
function _iterable_to_array$i(iter) {
|
|
2303
2278
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
2304
2279
|
}
|
|
2305
|
-
function _non_iterable_spread$
|
|
2280
|
+
function _non_iterable_spread$i() {
|
|
2306
2281
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2307
2282
|
}
|
|
2308
|
-
function _to_consumable_array$
|
|
2309
|
-
return _array_without_holes$
|
|
2283
|
+
function _to_consumable_array$i(arr) {
|
|
2284
|
+
return _array_without_holes$i(arr) || _iterable_to_array$i(arr) || _unsupported_iterable_to_array$v(arr) || _non_iterable_spread$i();
|
|
2310
2285
|
}
|
|
2311
|
-
function _unsupported_iterable_to_array$
|
|
2286
|
+
function _unsupported_iterable_to_array$v(o, minLen) {
|
|
2312
2287
|
if (!o) return;
|
|
2313
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2288
|
+
if (typeof o === "string") return _array_like_to_array$v(o, minLen);
|
|
2314
2289
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2315
2290
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2316
2291
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2317
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2292
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$v(o, minLen);
|
|
2318
2293
|
}
|
|
2319
2294
|
/**
|
|
2320
2295
|
* Wraps a key reading function to ensure that empty string keys are not used in boolean key arrays.
|
|
@@ -2355,7 +2330,7 @@ function _unsupported_iterable_to_array$w(o, minLen) {
|
|
|
2355
2330
|
* @param readKey - Function to extract the key from a value
|
|
2356
2331
|
* @returns A new boolean key array with the value inserted
|
|
2357
2332
|
*/ function insertIntoBooleanKeyArray(array, value, readKey) {
|
|
2358
|
-
return array ? _to_consumable_array$
|
|
2333
|
+
return array ? _to_consumable_array$i(removeModelsWithSameKey(array, value, readBooleanKeySafetyWrap(readKey))).concat([
|
|
2359
2334
|
value
|
|
2360
2335
|
]) : [
|
|
2361
2336
|
value
|
|
@@ -2421,13 +2396,13 @@ function _unsupported_iterable_to_array$w(o, minLen) {
|
|
|
2421
2396
|
return x ? x : undefined;
|
|
2422
2397
|
});
|
|
2423
2398
|
|
|
2424
|
-
function _array_like_to_array$
|
|
2399
|
+
function _array_like_to_array$u(arr, len) {
|
|
2425
2400
|
if (len == null || len > arr.length) len = arr.length;
|
|
2426
2401
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2427
2402
|
return arr2;
|
|
2428
2403
|
}
|
|
2429
|
-
function _array_without_holes$
|
|
2430
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
2404
|
+
function _array_without_holes$h(arr) {
|
|
2405
|
+
if (Array.isArray(arr)) return _array_like_to_array$u(arr);
|
|
2431
2406
|
}
|
|
2432
2407
|
function _class_call_check$a(instance, Constructor) {
|
|
2433
2408
|
if (!(instance instanceof Constructor)) {
|
|
@@ -2460,22 +2435,22 @@ function _define_property$k(obj, key, value) {
|
|
|
2460
2435
|
}
|
|
2461
2436
|
return obj;
|
|
2462
2437
|
}
|
|
2463
|
-
function _iterable_to_array$
|
|
2438
|
+
function _iterable_to_array$h(iter) {
|
|
2464
2439
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
2465
2440
|
}
|
|
2466
|
-
function _non_iterable_spread$
|
|
2441
|
+
function _non_iterable_spread$h() {
|
|
2467
2442
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2468
2443
|
}
|
|
2469
|
-
function _to_consumable_array$
|
|
2470
|
-
return _array_without_holes$
|
|
2444
|
+
function _to_consumable_array$h(arr) {
|
|
2445
|
+
return _array_without_holes$h(arr) || _iterable_to_array$h(arr) || _unsupported_iterable_to_array$u(arr) || _non_iterable_spread$h();
|
|
2471
2446
|
}
|
|
2472
|
-
function _unsupported_iterable_to_array$
|
|
2447
|
+
function _unsupported_iterable_to_array$u(o, minLen) {
|
|
2473
2448
|
if (!o) return;
|
|
2474
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2449
|
+
if (typeof o === "string") return _array_like_to_array$u(o, minLen);
|
|
2475
2450
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2476
2451
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2477
2452
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2478
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2453
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$u(o, minLen);
|
|
2479
2454
|
}
|
|
2480
2455
|
/**
|
|
2481
2456
|
* Set that is implemented internally using a Map, and input values have their keys read.
|
|
@@ -2657,7 +2632,7 @@ function _unsupported_iterable_to_array$v(o, minLen) {
|
|
|
2657
2632
|
* @returns An array of all stored values.
|
|
2658
2633
|
*/ key: "valuesArray",
|
|
2659
2634
|
value: function valuesArray() {
|
|
2660
|
-
return _to_consumable_array$
|
|
2635
|
+
return _to_consumable_array$h(this._map.values());
|
|
2661
2636
|
}
|
|
2662
2637
|
},
|
|
2663
2638
|
{
|
|
@@ -2671,30 +2646,30 @@ function _unsupported_iterable_to_array$v(o, minLen) {
|
|
|
2671
2646
|
}
|
|
2672
2647
|
();
|
|
2673
2648
|
|
|
2674
|
-
function _array_like_to_array$
|
|
2649
|
+
function _array_like_to_array$t(arr, len) {
|
|
2675
2650
|
if (len == null || len > arr.length) len = arr.length;
|
|
2676
2651
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2677
2652
|
return arr2;
|
|
2678
2653
|
}
|
|
2679
|
-
function _array_without_holes$
|
|
2680
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
2654
|
+
function _array_without_holes$g(arr) {
|
|
2655
|
+
if (Array.isArray(arr)) return _array_like_to_array$t(arr);
|
|
2681
2656
|
}
|
|
2682
|
-
function _iterable_to_array$
|
|
2657
|
+
function _iterable_to_array$g(iter) {
|
|
2683
2658
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
2684
2659
|
}
|
|
2685
|
-
function _non_iterable_spread$
|
|
2660
|
+
function _non_iterable_spread$g() {
|
|
2686
2661
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2687
2662
|
}
|
|
2688
|
-
function _to_consumable_array$
|
|
2689
|
-
return _array_without_holes$
|
|
2663
|
+
function _to_consumable_array$g(arr) {
|
|
2664
|
+
return _array_without_holes$g(arr) || _iterable_to_array$g(arr) || _unsupported_iterable_to_array$t(arr) || _non_iterable_spread$g();
|
|
2690
2665
|
}
|
|
2691
|
-
function _unsupported_iterable_to_array$
|
|
2666
|
+
function _unsupported_iterable_to_array$t(o, minLen) {
|
|
2692
2667
|
if (!o) return;
|
|
2693
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2668
|
+
if (typeof o === "string") return _array_like_to_array$t(o, minLen);
|
|
2694
2669
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2695
2670
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2696
2671
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2697
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2672
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$t(o, minLen);
|
|
2698
2673
|
}
|
|
2699
2674
|
var SORT_VALUE_LESS_THAN = -1;
|
|
2700
2675
|
var SORT_VALUE_GREATER_THAN = 1;
|
|
@@ -2750,7 +2725,7 @@ function reverseCompareFn(compareFn) {
|
|
|
2750
2725
|
var doSort = sortWith != null;
|
|
2751
2726
|
var result = values;
|
|
2752
2727
|
if (alwaysReturnCopy || sortOnCopy && doSort) {
|
|
2753
|
-
result = _to_consumable_array$
|
|
2728
|
+
result = _to_consumable_array$g(values);
|
|
2754
2729
|
}
|
|
2755
2730
|
if (doSort) {
|
|
2756
2731
|
result = result.sort(sortWith);
|
|
@@ -2830,7 +2805,7 @@ function reverseCompareFn(compareFn) {
|
|
|
2830
2805
|
};
|
|
2831
2806
|
}
|
|
2832
2807
|
|
|
2833
|
-
function _array_like_to_array$
|
|
2808
|
+
function _array_like_to_array$s(arr, len) {
|
|
2834
2809
|
if (len == null || len > arr.length) len = arr.length;
|
|
2835
2810
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2836
2811
|
return arr2;
|
|
@@ -2838,10 +2813,10 @@ function _array_like_to_array$t(arr, len) {
|
|
|
2838
2813
|
function _array_with_holes$k(arr) {
|
|
2839
2814
|
if (Array.isArray(arr)) return arr;
|
|
2840
2815
|
}
|
|
2841
|
-
function _array_without_holes$
|
|
2842
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
2816
|
+
function _array_without_holes$f(arr) {
|
|
2817
|
+
if (Array.isArray(arr)) return _array_like_to_array$s(arr);
|
|
2843
2818
|
}
|
|
2844
|
-
function _iterable_to_array$
|
|
2819
|
+
function _iterable_to_array$f(iter) {
|
|
2845
2820
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
2846
2821
|
}
|
|
2847
2822
|
function _iterable_to_array_limit$k(arr, i) {
|
|
@@ -2871,22 +2846,22 @@ function _iterable_to_array_limit$k(arr, i) {
|
|
|
2871
2846
|
function _non_iterable_rest$k() {
|
|
2872
2847
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2873
2848
|
}
|
|
2874
|
-
function _non_iterable_spread$
|
|
2849
|
+
function _non_iterable_spread$f() {
|
|
2875
2850
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2876
2851
|
}
|
|
2877
2852
|
function _sliced_to_array$k(arr, i) {
|
|
2878
|
-
return _array_with_holes$k(arr) || _iterable_to_array_limit$k(arr, i) || _unsupported_iterable_to_array$
|
|
2853
|
+
return _array_with_holes$k(arr) || _iterable_to_array_limit$k(arr, i) || _unsupported_iterable_to_array$s(arr, i) || _non_iterable_rest$k();
|
|
2879
2854
|
}
|
|
2880
|
-
function _to_consumable_array$
|
|
2881
|
-
return _array_without_holes$
|
|
2855
|
+
function _to_consumable_array$f(arr) {
|
|
2856
|
+
return _array_without_holes$f(arr) || _iterable_to_array$f(arr) || _unsupported_iterable_to_array$s(arr) || _non_iterable_spread$f();
|
|
2882
2857
|
}
|
|
2883
|
-
function _unsupported_iterable_to_array$
|
|
2858
|
+
function _unsupported_iterable_to_array$s(o, minLen) {
|
|
2884
2859
|
if (!o) return;
|
|
2885
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2860
|
+
if (typeof o === "string") return _array_like_to_array$s(o, minLen);
|
|
2886
2861
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2887
2862
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2888
2863
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2889
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2864
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$s(o, minLen);
|
|
2890
2865
|
}
|
|
2891
2866
|
/**
|
|
2892
2867
|
* Splits the input array into batches of a maximum size. Each batch carries its zero-based index as `.i`.
|
|
@@ -2902,7 +2877,7 @@ function _unsupported_iterable_to_array$t(o, minLen) {
|
|
|
2902
2877
|
* // result[1] => ['c', 'd'], result[1].i => 1
|
|
2903
2878
|
* ```
|
|
2904
2879
|
*/ function batch(input, batchSize) {
|
|
2905
|
-
var array = _to_consumable_array$
|
|
2880
|
+
var array = _to_consumable_array$f(input); // Copy array before splicing it.
|
|
2906
2881
|
var batches = [];
|
|
2907
2882
|
var i = 0;
|
|
2908
2883
|
while(array.length > 0){
|
|
@@ -3005,7 +2980,7 @@ function _unsupported_iterable_to_array$t(o, minLen) {
|
|
|
3005
2980
|
newItems.push(getValue());
|
|
3006
2981
|
}
|
|
3007
2982
|
});
|
|
3008
|
-
return _to_consumable_array$
|
|
2983
|
+
return _to_consumable_array$f(restoredOrder).concat(_to_consumable_array$f(newItems)).filter(function(x) {
|
|
3009
2984
|
return x !== undefined;
|
|
3010
2985
|
}); // Allow null to be passed.
|
|
3011
2986
|
}
|
|
@@ -3023,7 +2998,7 @@ function _unsupported_iterable_to_array$t(o, minLen) {
|
|
|
3023
2998
|
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], _ref = arguments.length > 2 ? arguments[2] : void 0, groupKeyFn = _ref.groupKeyFn, isEqual = _ref.isEqual;
|
|
3024
2999
|
var areDifferent = false;
|
|
3025
3000
|
if (a.length === b.length) {
|
|
3026
|
-
var pairs = pairGroupValues(_to_consumable_array$
|
|
3001
|
+
var pairs = pairGroupValues(_to_consumable_array$f(a).concat(_to_consumable_array$f(b)), groupKeyFn);
|
|
3027
3002
|
if (pairs.unpaired.length > 0) {
|
|
3028
3003
|
// Any unpaired items means there is a difference.
|
|
3029
3004
|
areDifferent = true;
|
|
@@ -3132,7 +3107,7 @@ function makeValuesGroupMap(values, groupKeyFn) {
|
|
|
3132
3107
|
return map;
|
|
3133
3108
|
}
|
|
3134
3109
|
|
|
3135
|
-
function _array_like_to_array$
|
|
3110
|
+
function _array_like_to_array$r(arr, len) {
|
|
3136
3111
|
if (len == null || len > arr.length) len = arr.length;
|
|
3137
3112
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3138
3113
|
return arr2;
|
|
@@ -3140,12 +3115,6 @@ function _array_like_to_array$s(arr, len) {
|
|
|
3140
3115
|
function _array_with_holes$j(arr) {
|
|
3141
3116
|
if (Array.isArray(arr)) return arr;
|
|
3142
3117
|
}
|
|
3143
|
-
function _array_without_holes$h(arr) {
|
|
3144
|
-
if (Array.isArray(arr)) return _array_like_to_array$s(arr);
|
|
3145
|
-
}
|
|
3146
|
-
function _iterable_to_array$h(iter) {
|
|
3147
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
3148
|
-
}
|
|
3149
3118
|
function _iterable_to_array_limit$j(arr, i) {
|
|
3150
3119
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
3151
3120
|
if (_i == null) return;
|
|
@@ -3173,22 +3142,16 @@ function _iterable_to_array_limit$j(arr, i) {
|
|
|
3173
3142
|
function _non_iterable_rest$j() {
|
|
3174
3143
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3175
3144
|
}
|
|
3176
|
-
function _non_iterable_spread$h() {
|
|
3177
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3178
|
-
}
|
|
3179
3145
|
function _sliced_to_array$j(arr, i) {
|
|
3180
|
-
return _array_with_holes$j(arr) || _iterable_to_array_limit$j(arr, i) || _unsupported_iterable_to_array$
|
|
3146
|
+
return _array_with_holes$j(arr) || _iterable_to_array_limit$j(arr, i) || _unsupported_iterable_to_array$r(arr, i) || _non_iterable_rest$j();
|
|
3181
3147
|
}
|
|
3182
|
-
function
|
|
3183
|
-
return _array_without_holes$h(arr) || _iterable_to_array$h(arr) || _unsupported_iterable_to_array$s(arr) || _non_iterable_spread$h();
|
|
3184
|
-
}
|
|
3185
|
-
function _unsupported_iterable_to_array$s(o, minLen) {
|
|
3148
|
+
function _unsupported_iterable_to_array$r(o, minLen) {
|
|
3186
3149
|
if (!o) return;
|
|
3187
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3150
|
+
if (typeof o === "string") return _array_like_to_array$r(o, minLen);
|
|
3188
3151
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3189
3152
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3190
3153
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3191
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3154
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$r(o, minLen);
|
|
3192
3155
|
}
|
|
3193
3156
|
/**
|
|
3194
3157
|
* Combines multiple Maps into a single Map. Later maps override earlier values for the same key.
|
|
@@ -3226,7 +3189,7 @@ function _unsupported_iterable_to_array$s(o, minLen) {
|
|
|
3226
3189
|
* @param map - The map to convert
|
|
3227
3190
|
* @returns An array of [key, value] tuples
|
|
3228
3191
|
*/ function mapToTuples(map) {
|
|
3229
|
-
return
|
|
3192
|
+
return Array.from(map.entries());
|
|
3230
3193
|
}
|
|
3231
3194
|
/**
|
|
3232
3195
|
* Expands a Map with array values into individual key/value tuples.
|
|
@@ -5937,31 +5900,6 @@ function caseInsensitiveString(input) {
|
|
|
5937
5900
|
}
|
|
5938
5901
|
}
|
|
5939
5902
|
|
|
5940
|
-
function _array_like_to_array$r(arr, len) {
|
|
5941
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
5942
|
-
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
5943
|
-
return arr2;
|
|
5944
|
-
}
|
|
5945
|
-
function _array_without_holes$g(arr) {
|
|
5946
|
-
if (Array.isArray(arr)) return _array_like_to_array$r(arr);
|
|
5947
|
-
}
|
|
5948
|
-
function _iterable_to_array$g(iter) {
|
|
5949
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
5950
|
-
}
|
|
5951
|
-
function _non_iterable_spread$g() {
|
|
5952
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5953
|
-
}
|
|
5954
|
-
function _to_consumable_array$g(arr) {
|
|
5955
|
-
return _array_without_holes$g(arr) || _iterable_to_array$g(arr) || _unsupported_iterable_to_array$r(arr) || _non_iterable_spread$g();
|
|
5956
|
-
}
|
|
5957
|
-
function _unsupported_iterable_to_array$r(o, minLen) {
|
|
5958
|
-
if (!o) return;
|
|
5959
|
-
if (typeof o === "string") return _array_like_to_array$r(o, minLen);
|
|
5960
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5961
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
5962
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
5963
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$r(o, minLen);
|
|
5964
|
-
}
|
|
5965
5903
|
/**
|
|
5966
5904
|
* Compares two string arrays and returns whether they contain different values, ignoring case.
|
|
5967
5905
|
*
|
|
@@ -6017,7 +5955,7 @@ function _unsupported_iterable_to_array$r(o, minLen) {
|
|
|
6017
5955
|
* @param values - iterable of strings to deduplicate
|
|
6018
5956
|
* @returns an array of unique lowercase strings
|
|
6019
5957
|
*/ function uniqueCaseInsensitiveStrings(values) {
|
|
6020
|
-
return
|
|
5958
|
+
return Array.from(uniqueCaseInsensitiveStringsSet(values));
|
|
6021
5959
|
}
|
|
6022
5960
|
/**
|
|
6023
5961
|
* Returns a {@link Set} of unique lowercase strings from the input, compared case-insensitively.
|
|
@@ -7914,10 +7852,10 @@ function _array_like_to_array$n(arr, len) {
|
|
|
7914
7852
|
function _array_with_holes$f(arr) {
|
|
7915
7853
|
if (Array.isArray(arr)) return arr;
|
|
7916
7854
|
}
|
|
7917
|
-
function _array_without_holes$
|
|
7855
|
+
function _array_without_holes$e(arr) {
|
|
7918
7856
|
if (Array.isArray(arr)) return _array_like_to_array$n(arr);
|
|
7919
7857
|
}
|
|
7920
|
-
function _iterable_to_array$
|
|
7858
|
+
function _iterable_to_array$e(iter) {
|
|
7921
7859
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
7922
7860
|
}
|
|
7923
7861
|
function _iterable_to_array_limit$f(arr, i) {
|
|
@@ -7947,14 +7885,14 @@ function _iterable_to_array_limit$f(arr, i) {
|
|
|
7947
7885
|
function _non_iterable_rest$f() {
|
|
7948
7886
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7949
7887
|
}
|
|
7950
|
-
function _non_iterable_spread$
|
|
7888
|
+
function _non_iterable_spread$e() {
|
|
7951
7889
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7952
7890
|
}
|
|
7953
7891
|
function _sliced_to_array$f(arr, i) {
|
|
7954
7892
|
return _array_with_holes$f(arr) || _iterable_to_array_limit$f(arr, i) || _unsupported_iterable_to_array$n(arr, i) || _non_iterable_rest$f();
|
|
7955
7893
|
}
|
|
7956
|
-
function _to_consumable_array$
|
|
7957
|
-
return _array_without_holes$
|
|
7894
|
+
function _to_consumable_array$e(arr) {
|
|
7895
|
+
return _array_without_holes$e(arr) || _iterable_to_array$e(arr) || _unsupported_iterable_to_array$n(arr) || _non_iterable_spread$e();
|
|
7958
7896
|
}
|
|
7959
7897
|
function _unsupported_iterable_to_array$n(o, minLen) {
|
|
7960
7898
|
if (!o) return;
|
|
@@ -7980,7 +7918,7 @@ function _unsupported_iterable_to_array$n(o, minLen) {
|
|
|
7980
7918
|
}
|
|
7981
7919
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
7982
7920
|
try {
|
|
7983
|
-
for(var _iterator = _to_consumable_array$
|
|
7921
|
+
for(var _iterator = _to_consumable_array$e(input).entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
7984
7922
|
var _step_value = _sliced_to_array$f(_step.value, 2), i = _step_value[0], char = _step_value[1];
|
|
7985
7923
|
if (char === find) {
|
|
7986
7924
|
if (first === -1) {
|
|
@@ -8113,7 +8051,7 @@ function replaceCharacterAtIndexIf(input, index, replacement, decision) {
|
|
|
8113
8051
|
var record = {};
|
|
8114
8052
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
8115
8053
|
try {
|
|
8116
|
-
for(var _iterator = _to_consumable_array$
|
|
8054
|
+
for(var _iterator = _to_consumable_array$e(chars).entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
8117
8055
|
var _step_value = _sliced_to_array$f(_step.value, 2), i = _step_value[0], char = _step_value[1];
|
|
8118
8056
|
record[char] = i;
|
|
8119
8057
|
}
|
|
@@ -8142,7 +8080,7 @@ function _array_like_to_array$m(arr, len) {
|
|
|
8142
8080
|
function _array_with_holes$e(arr) {
|
|
8143
8081
|
if (Array.isArray(arr)) return arr;
|
|
8144
8082
|
}
|
|
8145
|
-
function _array_without_holes$
|
|
8083
|
+
function _array_without_holes$d(arr) {
|
|
8146
8084
|
if (Array.isArray(arr)) return _array_like_to_array$m(arr);
|
|
8147
8085
|
}
|
|
8148
8086
|
function _instanceof$3(left, right) {
|
|
@@ -8152,7 +8090,7 @@ function _instanceof$3(left, right) {
|
|
|
8152
8090
|
return left instanceof right;
|
|
8153
8091
|
}
|
|
8154
8092
|
}
|
|
8155
|
-
function _iterable_to_array$
|
|
8093
|
+
function _iterable_to_array$d(iter) {
|
|
8156
8094
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
8157
8095
|
}
|
|
8158
8096
|
function _iterable_to_array_limit$e(arr, i) {
|
|
@@ -8182,14 +8120,14 @@ function _iterable_to_array_limit$e(arr, i) {
|
|
|
8182
8120
|
function _non_iterable_rest$e() {
|
|
8183
8121
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8184
8122
|
}
|
|
8185
|
-
function _non_iterable_spread$
|
|
8123
|
+
function _non_iterable_spread$d() {
|
|
8186
8124
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8187
8125
|
}
|
|
8188
8126
|
function _sliced_to_array$e(arr, i) {
|
|
8189
8127
|
return _array_with_holes$e(arr) || _iterable_to_array_limit$e(arr, i) || _unsupported_iterable_to_array$m(arr, i) || _non_iterable_rest$e();
|
|
8190
8128
|
}
|
|
8191
|
-
function _to_consumable_array$
|
|
8192
|
-
return _array_without_holes$
|
|
8129
|
+
function _to_consumable_array$d(arr) {
|
|
8130
|
+
return _array_without_holes$d(arr) || _iterable_to_array$d(arr) || _unsupported_iterable_to_array$m(arr) || _non_iterable_spread$d();
|
|
8193
8131
|
}
|
|
8194
8132
|
function _unsupported_iterable_to_array$m(o, minLen) {
|
|
8195
8133
|
if (!o) return;
|
|
@@ -8314,7 +8252,7 @@ function _unsupported_iterable_to_array$m(o, minLen) {
|
|
|
8314
8252
|
var occurrences = [];
|
|
8315
8253
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
8316
8254
|
try {
|
|
8317
|
-
for(var _iterator = _to_consumable_array$
|
|
8255
|
+
for(var _iterator = _to_consumable_array$d(input).entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
8318
8256
|
var _step_value = _sliced_to_array$e(_step.value, 2), i = _step_value[0], char = _step_value[1];
|
|
8319
8257
|
if (characterSet.has(char)) {
|
|
8320
8258
|
occurrences.push(i);
|
|
@@ -9327,10 +9265,10 @@ function _array_like_to_array$k(arr, len) {
|
|
|
9327
9265
|
function _array_with_holes$c(arr) {
|
|
9328
9266
|
if (Array.isArray(arr)) return arr;
|
|
9329
9267
|
}
|
|
9330
|
-
function _array_without_holes$
|
|
9268
|
+
function _array_without_holes$c(arr) {
|
|
9331
9269
|
if (Array.isArray(arr)) return _array_like_to_array$k(arr);
|
|
9332
9270
|
}
|
|
9333
|
-
function _iterable_to_array$
|
|
9271
|
+
function _iterable_to_array$c(iter) {
|
|
9334
9272
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
9335
9273
|
}
|
|
9336
9274
|
function _iterable_to_array_limit$c(arr, i) {
|
|
@@ -9360,14 +9298,14 @@ function _iterable_to_array_limit$c(arr, i) {
|
|
|
9360
9298
|
function _non_iterable_rest$c() {
|
|
9361
9299
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9362
9300
|
}
|
|
9363
|
-
function _non_iterable_spread$
|
|
9301
|
+
function _non_iterable_spread$c() {
|
|
9364
9302
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9365
9303
|
}
|
|
9366
9304
|
function _sliced_to_array$c(arr, i) {
|
|
9367
9305
|
return _array_with_holes$c(arr) || _iterable_to_array_limit$c(arr, i) || _unsupported_iterable_to_array$k(arr, i) || _non_iterable_rest$c();
|
|
9368
9306
|
}
|
|
9369
|
-
function _to_consumable_array$
|
|
9370
|
-
return _array_without_holes$
|
|
9307
|
+
function _to_consumable_array$c(arr) {
|
|
9308
|
+
return _array_without_holes$c(arr) || _iterable_to_array$c(arr) || _unsupported_iterable_to_array$k(arr) || _non_iterable_spread$c();
|
|
9371
9309
|
}
|
|
9372
9310
|
function _unsupported_iterable_to_array$k(o, minLen) {
|
|
9373
9311
|
if (!o) return;
|
|
@@ -9539,7 +9477,7 @@ function _unsupported_iterable_to_array$k(o, minLen) {
|
|
|
9539
9477
|
var baseWebUrl = removeWebProtocolPrefix(baseWebsiteUrl(basePath)); // remove prefix to prevent issues with slash paths
|
|
9540
9478
|
var webUrl = mergeSlashPaths([
|
|
9541
9479
|
baseWebUrl
|
|
9542
|
-
].concat(_to_consumable_array$
|
|
9480
|
+
].concat(_to_consumable_array$c(asArray(paths))));
|
|
9543
9481
|
return setWebProtocolPrefix(webUrl, protocol);
|
|
9544
9482
|
}
|
|
9545
9483
|
/**
|
|
@@ -9817,17 +9755,17 @@ function _array_like_to_array$j(arr, len) {
|
|
|
9817
9755
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
9818
9756
|
return arr2;
|
|
9819
9757
|
}
|
|
9820
|
-
function _array_without_holes$
|
|
9758
|
+
function _array_without_holes$b(arr) {
|
|
9821
9759
|
if (Array.isArray(arr)) return _array_like_to_array$j(arr);
|
|
9822
9760
|
}
|
|
9823
|
-
function _iterable_to_array$
|
|
9761
|
+
function _iterable_to_array$b(iter) {
|
|
9824
9762
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
9825
9763
|
}
|
|
9826
|
-
function _non_iterable_spread$
|
|
9764
|
+
function _non_iterable_spread$b() {
|
|
9827
9765
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9828
9766
|
}
|
|
9829
|
-
function _to_consumable_array$
|
|
9830
|
-
return _array_without_holes$
|
|
9767
|
+
function _to_consumable_array$b(arr) {
|
|
9768
|
+
return _array_without_holes$b(arr) || _iterable_to_array$b(arr) || _unsupported_iterable_to_array$j(arr) || _non_iterable_spread$b();
|
|
9831
9769
|
}
|
|
9832
9770
|
function _unsupported_iterable_to_array$j(o, minLen) {
|
|
9833
9771
|
if (!o) return;
|
|
@@ -9880,7 +9818,7 @@ function _unsupported_iterable_to_array$j(o, minLen) {
|
|
|
9880
9818
|
return x.email;
|
|
9881
9819
|
});
|
|
9882
9820
|
var emailsWithoutParticipants = excludeValuesFromArray(emails, participantEmails);
|
|
9883
|
-
return _to_consumable_array$
|
|
9821
|
+
return _to_consumable_array$b(participants).concat(_to_consumable_array$b(emailsWithoutParticipants.map(function(email) {
|
|
9884
9822
|
return {
|
|
9885
9823
|
email: email
|
|
9886
9824
|
};
|
|
@@ -10263,17 +10201,17 @@ function _array_like_to_array$i(arr, len) {
|
|
|
10263
10201
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
10264
10202
|
return arr2;
|
|
10265
10203
|
}
|
|
10266
|
-
function _array_without_holes$
|
|
10204
|
+
function _array_without_holes$a(arr) {
|
|
10267
10205
|
if (Array.isArray(arr)) return _array_like_to_array$i(arr);
|
|
10268
10206
|
}
|
|
10269
|
-
function _iterable_to_array$
|
|
10207
|
+
function _iterable_to_array$a(iter) {
|
|
10270
10208
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
10271
10209
|
}
|
|
10272
|
-
function _non_iterable_spread$
|
|
10210
|
+
function _non_iterable_spread$a() {
|
|
10273
10211
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10274
10212
|
}
|
|
10275
|
-
function _to_consumable_array$
|
|
10276
|
-
return _array_without_holes$
|
|
10213
|
+
function _to_consumable_array$a(arr) {
|
|
10214
|
+
return _array_without_holes$a(arr) || _iterable_to_array$a(arr) || _unsupported_iterable_to_array$i(arr) || _non_iterable_spread$a();
|
|
10277
10215
|
}
|
|
10278
10216
|
function _unsupported_iterable_to_array$i(o, minLen) {
|
|
10279
10217
|
if (!o) return;
|
|
@@ -10298,7 +10236,7 @@ function _unsupported_iterable_to_array$i(o, minLen) {
|
|
|
10298
10236
|
args[_key] = arguments[_key];
|
|
10299
10237
|
}
|
|
10300
10238
|
var forwardFn = getter();
|
|
10301
|
-
return forwardFn.apply(void 0, _to_consumable_array$
|
|
10239
|
+
return forwardFn.apply(void 0, _to_consumable_array$a(args));
|
|
10302
10240
|
};
|
|
10303
10241
|
}
|
|
10304
10242
|
/**
|
|
@@ -10326,17 +10264,17 @@ function _array_like_to_array$h(arr, len) {
|
|
|
10326
10264
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
10327
10265
|
return arr2;
|
|
10328
10266
|
}
|
|
10329
|
-
function _array_without_holes$
|
|
10267
|
+
function _array_without_holes$9(arr) {
|
|
10330
10268
|
if (Array.isArray(arr)) return _array_like_to_array$h(arr);
|
|
10331
10269
|
}
|
|
10332
|
-
function _iterable_to_array$
|
|
10270
|
+
function _iterable_to_array$9(iter) {
|
|
10333
10271
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
10334
10272
|
}
|
|
10335
|
-
function _non_iterable_spread$
|
|
10273
|
+
function _non_iterable_spread$9() {
|
|
10336
10274
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10337
10275
|
}
|
|
10338
|
-
function _to_consumable_array$
|
|
10339
|
-
return _array_without_holes$
|
|
10276
|
+
function _to_consumable_array$9(arr) {
|
|
10277
|
+
return _array_without_holes$9(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$h(arr) || _non_iterable_spread$9();
|
|
10340
10278
|
}
|
|
10341
10279
|
function _unsupported_iterable_to_array$h(o, minLen) {
|
|
10342
10280
|
if (!o) return;
|
|
@@ -10354,7 +10292,7 @@ function _unsupported_iterable_to_array$h(o, minLen) {
|
|
|
10354
10292
|
* @param keys - The keys to intersect with the object
|
|
10355
10293
|
* @returns An array of values from the matching keys
|
|
10356
10294
|
*/ function mapKeysIntersectionObjectToArray(object, keys) {
|
|
10357
|
-
var keysToApply = _to_consumable_array$
|
|
10295
|
+
var keysToApply = _to_consumable_array$9(keys);
|
|
10358
10296
|
var applyArray = [];
|
|
10359
10297
|
keysToApply.forEach(function(key) {
|
|
10360
10298
|
var values = object[key];
|
|
@@ -10688,7 +10626,7 @@ function _array_like_to_array$g(arr, len) {
|
|
|
10688
10626
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
10689
10627
|
return arr2;
|
|
10690
10628
|
}
|
|
10691
|
-
function _array_without_holes$
|
|
10629
|
+
function _array_without_holes$8(arr) {
|
|
10692
10630
|
if (Array.isArray(arr)) return _array_like_to_array$g(arr);
|
|
10693
10631
|
}
|
|
10694
10632
|
function asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -10720,14 +10658,14 @@ function _async_to_generator$8(fn) {
|
|
|
10720
10658
|
});
|
|
10721
10659
|
};
|
|
10722
10660
|
}
|
|
10723
|
-
function _iterable_to_array$
|
|
10661
|
+
function _iterable_to_array$8(iter) {
|
|
10724
10662
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
10725
10663
|
}
|
|
10726
|
-
function _non_iterable_spread$
|
|
10664
|
+
function _non_iterable_spread$8() {
|
|
10727
10665
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10728
10666
|
}
|
|
10729
|
-
function _to_consumable_array$
|
|
10730
|
-
return _array_without_holes$
|
|
10667
|
+
function _to_consumable_array$8(arr) {
|
|
10668
|
+
return _array_without_holes$8(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$g(arr) || _non_iterable_spread$8();
|
|
10731
10669
|
}
|
|
10732
10670
|
function _unsupported_iterable_to_array$g(o, minLen) {
|
|
10733
10671
|
if (!o) return;
|
|
@@ -10891,7 +10829,7 @@ function _ts_generator$8(thisArg, body) {
|
|
|
10891
10829
|
case 2:
|
|
10892
10830
|
verifiedIds = _state.sent();
|
|
10893
10831
|
// concat identifiers
|
|
10894
|
-
ids = _to_consumable_array$
|
|
10832
|
+
ids = _to_consumable_array$8(ids).concat(_to_consumable_array$8(verifiedIds));
|
|
10895
10833
|
return [
|
|
10896
10834
|
3,
|
|
10897
10835
|
1
|
|
@@ -10956,10 +10894,10 @@ function _array_like_to_array$f(arr, len) {
|
|
|
10956
10894
|
function _array_with_holes$b(arr) {
|
|
10957
10895
|
if (Array.isArray(arr)) return arr;
|
|
10958
10896
|
}
|
|
10959
|
-
function _array_without_holes$
|
|
10897
|
+
function _array_without_holes$7(arr) {
|
|
10960
10898
|
if (Array.isArray(arr)) return _array_like_to_array$f(arr);
|
|
10961
10899
|
}
|
|
10962
|
-
function _iterable_to_array$
|
|
10900
|
+
function _iterable_to_array$7(iter) {
|
|
10963
10901
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
10964
10902
|
}
|
|
10965
10903
|
function _iterable_to_array_limit$b(arr, i) {
|
|
@@ -10989,14 +10927,14 @@ function _iterable_to_array_limit$b(arr, i) {
|
|
|
10989
10927
|
function _non_iterable_rest$b() {
|
|
10990
10928
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10991
10929
|
}
|
|
10992
|
-
function _non_iterable_spread$
|
|
10930
|
+
function _non_iterable_spread$7() {
|
|
10993
10931
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10994
10932
|
}
|
|
10995
10933
|
function _sliced_to_array$b(arr, i) {
|
|
10996
10934
|
return _array_with_holes$b(arr) || _iterable_to_array_limit$b(arr, i) || _unsupported_iterable_to_array$f(arr, i) || _non_iterable_rest$b();
|
|
10997
10935
|
}
|
|
10998
|
-
function _to_consumable_array$
|
|
10999
|
-
return _array_without_holes$
|
|
10936
|
+
function _to_consumable_array$7(arr) {
|
|
10937
|
+
return _array_without_holes$7(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$f(arr) || _non_iterable_spread$7();
|
|
11000
10938
|
}
|
|
11001
10939
|
function _unsupported_iterable_to_array$f(o, minLen) {
|
|
11002
10940
|
if (!o) return;
|
|
@@ -11108,7 +11046,7 @@ function _unsupported_iterable_to_array$f(o, minLen) {
|
|
|
11108
11046
|
var splitEncodedValues = splitter ? function(encodedValues) {
|
|
11109
11047
|
return encodedValues.split(splitter);
|
|
11110
11048
|
} : function(encodedValues) {
|
|
11111
|
-
return _to_consumable_array$
|
|
11049
|
+
return _to_consumable_array$7(encodedValues);
|
|
11112
11050
|
};
|
|
11113
11051
|
return function(input) {
|
|
11114
11052
|
if (typeof input === 'string') {
|
|
@@ -12022,10 +11960,10 @@ function _array_like_to_array$d(arr, len) {
|
|
|
12022
11960
|
function _array_with_holes$9(arr) {
|
|
12023
11961
|
if (Array.isArray(arr)) return arr;
|
|
12024
11962
|
}
|
|
12025
|
-
function _array_without_holes$
|
|
11963
|
+
function _array_without_holes$6(arr) {
|
|
12026
11964
|
if (Array.isArray(arr)) return _array_like_to_array$d(arr);
|
|
12027
11965
|
}
|
|
12028
|
-
function _iterable_to_array$
|
|
11966
|
+
function _iterable_to_array$6(iter) {
|
|
12029
11967
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
12030
11968
|
}
|
|
12031
11969
|
function _iterable_to_array_limit$9(arr, i) {
|
|
@@ -12055,14 +11993,14 @@ function _iterable_to_array_limit$9(arr, i) {
|
|
|
12055
11993
|
function _non_iterable_rest$9() {
|
|
12056
11994
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12057
11995
|
}
|
|
12058
|
-
function _non_iterable_spread$
|
|
11996
|
+
function _non_iterable_spread$6() {
|
|
12059
11997
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12060
11998
|
}
|
|
12061
11999
|
function _sliced_to_array$9(arr, i) {
|
|
12062
12000
|
return _array_with_holes$9(arr) || _iterable_to_array_limit$9(arr, i) || _unsupported_iterable_to_array$d(arr, i) || _non_iterable_rest$9();
|
|
12063
12001
|
}
|
|
12064
|
-
function _to_consumable_array$
|
|
12065
|
-
return _array_without_holes$
|
|
12002
|
+
function _to_consumable_array$6(arr) {
|
|
12003
|
+
return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$d(arr) || _non_iterable_spread$6();
|
|
12066
12004
|
}
|
|
12067
12005
|
function _type_of$8(obj) {
|
|
12068
12006
|
"@swc/helpers - typeof";
|
|
@@ -12315,10 +12253,10 @@ function _unsupported_iterable_to_array$d(o, minLen) {
|
|
|
12315
12253
|
var lngs = points.map(function(x) {
|
|
12316
12254
|
return x.lng;
|
|
12317
12255
|
});
|
|
12318
|
-
var minLat = (_Math = Math).min.apply(_Math, _to_consumable_array$
|
|
12319
|
-
var maxLat = (_Math1 = Math).max.apply(_Math1, _to_consumable_array$
|
|
12320
|
-
var minLng = (_Math2 = Math).min.apply(_Math2, _to_consumable_array$
|
|
12321
|
-
var maxLng = (_Math3 = Math).max.apply(_Math3, _to_consumable_array$
|
|
12256
|
+
var minLat = (_Math = Math).min.apply(_Math, _to_consumable_array$6(lats));
|
|
12257
|
+
var maxLat = (_Math1 = Math).max.apply(_Math1, _to_consumable_array$6(lats));
|
|
12258
|
+
var minLng = (_Math2 = Math).min.apply(_Math2, _to_consumable_array$6(lngs));
|
|
12259
|
+
var maxLng = (_Math3 = Math).max.apply(_Math3, _to_consumable_array$6(lngs));
|
|
12322
12260
|
bound = {
|
|
12323
12261
|
sw: latLngPoint([
|
|
12324
12262
|
minLat,
|
|
@@ -13760,17 +13698,17 @@ function _array_like_to_array$b(arr, len) {
|
|
|
13760
13698
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
13761
13699
|
return arr2;
|
|
13762
13700
|
}
|
|
13763
|
-
function _array_without_holes$
|
|
13701
|
+
function _array_without_holes$5(arr) {
|
|
13764
13702
|
if (Array.isArray(arr)) return _array_like_to_array$b(arr);
|
|
13765
13703
|
}
|
|
13766
|
-
function _iterable_to_array$
|
|
13704
|
+
function _iterable_to_array$5(iter) {
|
|
13767
13705
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
13768
13706
|
}
|
|
13769
|
-
function _non_iterable_spread$
|
|
13707
|
+
function _non_iterable_spread$5() {
|
|
13770
13708
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13771
13709
|
}
|
|
13772
|
-
function _to_consumable_array$
|
|
13773
|
-
return _array_without_holes$
|
|
13710
|
+
function _to_consumable_array$5(arr) {
|
|
13711
|
+
return _array_without_holes$5(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$b(arr) || _non_iterable_spread$5();
|
|
13774
13712
|
}
|
|
13775
13713
|
function _unsupported_iterable_to_array$b(o, minLen) {
|
|
13776
13714
|
if (!o) return;
|
|
@@ -13791,7 +13729,7 @@ function _unsupported_iterable_to_array$b(o, minLen) {
|
|
|
13791
13729
|
*/ function objectDeltaArrayCompressor(config) {
|
|
13792
13730
|
var _equalityChecker = config.equalityChecker;
|
|
13793
13731
|
var assignKnownValuesToCopy = assignValuesToPOJOFunction({
|
|
13794
|
-
keysFilter: _to_consumable_array$
|
|
13732
|
+
keysFilter: _to_consumable_array$5(_equalityChecker._fields.keys()),
|
|
13795
13733
|
valueFilter: KeyValueTypleValueFilter.NULL
|
|
13796
13734
|
});
|
|
13797
13735
|
function compress(uncompressed) {
|
|
@@ -13828,7 +13766,7 @@ function _unsupported_iterable_to_array$b(o, minLen) {
|
|
|
13828
13766
|
});
|
|
13829
13767
|
return result;
|
|
13830
13768
|
}
|
|
13831
|
-
var allKeys = _to_consumable_array$
|
|
13769
|
+
var allKeys = _to_consumable_array$5(_equalityChecker._fields.keys());
|
|
13832
13770
|
function expand(compressed) {
|
|
13833
13771
|
if (compressed.length === 0) {
|
|
13834
13772
|
return [];
|
|
@@ -14157,17 +14095,17 @@ function _array_like_to_array$a(arr, len) {
|
|
|
14157
14095
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
14158
14096
|
return arr2;
|
|
14159
14097
|
}
|
|
14160
|
-
function _array_without_holes$
|
|
14098
|
+
function _array_without_holes$4(arr) {
|
|
14161
14099
|
if (Array.isArray(arr)) return _array_like_to_array$a(arr);
|
|
14162
14100
|
}
|
|
14163
|
-
function _iterable_to_array$
|
|
14101
|
+
function _iterable_to_array$4(iter) {
|
|
14164
14102
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
14165
14103
|
}
|
|
14166
|
-
function _non_iterable_spread$
|
|
14104
|
+
function _non_iterable_spread$4() {
|
|
14167
14105
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14168
14106
|
}
|
|
14169
|
-
function _to_consumable_array$
|
|
14170
|
-
return _array_without_holes$
|
|
14107
|
+
function _to_consumable_array$4(arr) {
|
|
14108
|
+
return _array_without_holes$4(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$a(arr) || _non_iterable_spread$4();
|
|
14171
14109
|
}
|
|
14172
14110
|
function _unsupported_iterable_to_array$a(o, minLen) {
|
|
14173
14111
|
if (!o) return;
|
|
@@ -14301,9 +14239,9 @@ function _unsupported_iterable_to_array$a(o, minLen) {
|
|
|
14301
14239
|
if (sundayFirst) {
|
|
14302
14240
|
dayOfWeekNames = [
|
|
14303
14241
|
sunday
|
|
14304
|
-
].concat(_to_consumable_array$
|
|
14242
|
+
].concat(_to_consumable_array$4(days));
|
|
14305
14243
|
} else {
|
|
14306
|
-
dayOfWeekNames = _to_consumable_array$
|
|
14244
|
+
dayOfWeekNames = _to_consumable_array$4(days).concat([
|
|
14307
14245
|
sunday
|
|
14308
14246
|
]);
|
|
14309
14247
|
}
|
|
@@ -14922,7 +14860,7 @@ function _array_like_to_array$9(arr, len) {
|
|
|
14922
14860
|
function _array_with_holes$7(arr) {
|
|
14923
14861
|
if (Array.isArray(arr)) return arr;
|
|
14924
14862
|
}
|
|
14925
|
-
function _array_without_holes$
|
|
14863
|
+
function _array_without_holes$3(arr) {
|
|
14926
14864
|
if (Array.isArray(arr)) return _array_like_to_array$9(arr);
|
|
14927
14865
|
}
|
|
14928
14866
|
function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -14967,7 +14905,7 @@ function _define_property$9(obj, key, value) {
|
|
|
14967
14905
|
}
|
|
14968
14906
|
return obj;
|
|
14969
14907
|
}
|
|
14970
|
-
function _iterable_to_array$
|
|
14908
|
+
function _iterable_to_array$3(iter) {
|
|
14971
14909
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
14972
14910
|
}
|
|
14973
14911
|
function _iterable_to_array_limit$7(arr, i) {
|
|
@@ -14997,7 +14935,7 @@ function _iterable_to_array_limit$7(arr, i) {
|
|
|
14997
14935
|
function _non_iterable_rest$7() {
|
|
14998
14936
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14999
14937
|
}
|
|
15000
|
-
function _non_iterable_spread$
|
|
14938
|
+
function _non_iterable_spread$3() {
|
|
15001
14939
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15002
14940
|
}
|
|
15003
14941
|
function _object_spread$5(target) {
|
|
@@ -15037,8 +14975,8 @@ function _object_spread_props$2(target, source) {
|
|
|
15037
14975
|
function _sliced_to_array$7(arr, i) {
|
|
15038
14976
|
return _array_with_holes$7(arr) || _iterable_to_array_limit$7(arr, i) || _unsupported_iterable_to_array$9(arr, i) || _non_iterable_rest$7();
|
|
15039
14977
|
}
|
|
15040
|
-
function _to_consumable_array$
|
|
15041
|
-
return _array_without_holes$
|
|
14978
|
+
function _to_consumable_array$3(arr) {
|
|
14979
|
+
return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$9(arr) || _non_iterable_spread$3();
|
|
15042
14980
|
}
|
|
15043
14981
|
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
15044
14982
|
if (!o) return;
|
|
@@ -15405,7 +15343,7 @@ function _performAsyncTask(_0, _1) {
|
|
|
15405
15343
|
2,
|
|
15406
15344
|
[
|
|
15407
15345
|
value
|
|
15408
|
-
].concat(_to_consumable_array$
|
|
15346
|
+
].concat(_to_consumable_array$3(result))
|
|
15409
15347
|
];
|
|
15410
15348
|
}
|
|
15411
15349
|
retriesRemaining = retriesAllowed - tryNumber;
|
|
@@ -15684,7 +15622,7 @@ function _performAsyncTask(_0, _1) {
|
|
|
15684
15622
|
];
|
|
15685
15623
|
}).reverse(); // reverse to use push/pop
|
|
15686
15624
|
baseI += newTaskEntries.length;
|
|
15687
|
-
incompleteTasks = _to_consumable_array$
|
|
15625
|
+
incompleteTasks = _to_consumable_array$3(newTaskEntries).concat(_to_consumable_array$3(incompleteTasks)); // new tasks go to the front of the stack
|
|
15688
15626
|
}
|
|
15689
15627
|
_state.label = 2;
|
|
15690
15628
|
case 2:
|
|
@@ -16892,9 +16830,6 @@ function _array_like_to_array$7(arr, len) {
|
|
|
16892
16830
|
function _array_with_holes$5(arr) {
|
|
16893
16831
|
if (Array.isArray(arr)) return arr;
|
|
16894
16832
|
}
|
|
16895
|
-
function _array_without_holes$3(arr) {
|
|
16896
|
-
if (Array.isArray(arr)) return _array_like_to_array$7(arr);
|
|
16897
|
-
}
|
|
16898
16833
|
function _instanceof(left, right) {
|
|
16899
16834
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
16900
16835
|
return !!right[Symbol.hasInstance](left);
|
|
@@ -16902,9 +16837,6 @@ function _instanceof(left, right) {
|
|
|
16902
16837
|
return left instanceof right;
|
|
16903
16838
|
}
|
|
16904
16839
|
}
|
|
16905
|
-
function _iterable_to_array$3(iter) {
|
|
16906
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
16907
|
-
}
|
|
16908
16840
|
function _iterable_to_array_limit$5(arr, i) {
|
|
16909
16841
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
16910
16842
|
if (_i == null) return;
|
|
@@ -16932,15 +16864,9 @@ function _iterable_to_array_limit$5(arr, i) {
|
|
|
16932
16864
|
function _non_iterable_rest$5() {
|
|
16933
16865
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16934
16866
|
}
|
|
16935
|
-
function _non_iterable_spread$3() {
|
|
16936
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16937
|
-
}
|
|
16938
16867
|
function _sliced_to_array$5(arr, i) {
|
|
16939
16868
|
return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$7(arr, i) || _non_iterable_rest$5();
|
|
16940
16869
|
}
|
|
16941
|
-
function _to_consumable_array$3(arr) {
|
|
16942
|
-
return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$7(arr) || _non_iterable_spread$3();
|
|
16943
|
-
}
|
|
16944
16870
|
function _type_of$3(obj) {
|
|
16945
16871
|
"@swc/helpers - typeof";
|
|
16946
16872
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
@@ -17025,7 +16951,7 @@ function _compareMaps(a, b, pojoFilter) {
|
|
|
17025
16951
|
if (a.size !== b.size) {
|
|
17026
16952
|
return false;
|
|
17027
16953
|
}
|
|
17028
|
-
var firstInequalityIndex =
|
|
16954
|
+
var firstInequalityIndex = Array.from(a.entries()).findIndex(function(param) {
|
|
17029
16955
|
var _param = _sliced_to_array$5(param, 2), key = _param[0], aValue = _param[1];
|
|
17030
16956
|
var bValue = b.get(key);
|
|
17031
16957
|
return !areEqualPOJOValuesUsingPojoFilter(aValue, bValue, pojoFilter);
|