@blackglory/observe 0.1.4 → 0.1.5
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/dist/es2015/index.min.mjs +1 -1
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +342 -184
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +342 -184
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +1 -1
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +1 -1
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +342 -184
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +342 -184
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +1 -1
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/observe-state-changes.js +4 -2
- package/lib/es2015/observe-state-changes.js.map +1 -1
- package/lib/es2018/observe-state-changes.js +4 -2
- package/lib/es2018/observe-state-changes.js.map +1 -1
- package/package.json +21 -21
- package/CHANGELOG.md +0 -18
package/dist/es2015/index.mjs
CHANGED
|
@@ -96,10 +96,14 @@ function __read(o, n) {
|
|
|
96
96
|
return ar;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
function __spreadArray(to, from) {
|
|
100
|
-
for (var i = 0,
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
function __spreadArray(to, from, pack) {
|
|
100
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
101
|
+
if (ar || !(i in from)) {
|
|
102
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
103
|
+
ar[i] = from[i];
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
103
107
|
}
|
|
104
108
|
|
|
105
109
|
function __await$n(v) {
|
|
@@ -571,16 +575,20 @@ var Observable = (function () {
|
|
|
571
575
|
var _this = this;
|
|
572
576
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
573
577
|
return new promiseCtor(function (resolve, reject) {
|
|
574
|
-
var
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
578
|
+
var subscriber = new SafeSubscriber({
|
|
579
|
+
next: function (value) {
|
|
580
|
+
try {
|
|
581
|
+
next(value);
|
|
582
|
+
}
|
|
583
|
+
catch (err) {
|
|
584
|
+
reject(err);
|
|
585
|
+
subscriber.unsubscribe();
|
|
586
|
+
}
|
|
587
|
+
},
|
|
588
|
+
error: reject,
|
|
589
|
+
complete: resolve,
|
|
590
|
+
});
|
|
591
|
+
_this.subscribe(subscriber);
|
|
584
592
|
});
|
|
585
593
|
};
|
|
586
594
|
Observable.prototype._subscribe = function (subscriber) {
|
|
@@ -1510,9 +1518,9 @@ var __asyncGenerator$m = (commonjsGlobal && commonjsGlobal.__asyncGenerator) ||
|
|
|
1510
1518
|
const go_1$f = es2018$2;
|
|
1511
1519
|
const errors_1$f = es2018$1;
|
|
1512
1520
|
function chunkAsync(iterable, size) {
|
|
1513
|
-
errors_1$f.assert(Number.isInteger(size), 'The parameter size must be an integer');
|
|
1514
|
-
errors_1$f.assert(size > 0, 'The parameter size must be greater than 0');
|
|
1515
|
-
return go_1$f.go(function () {
|
|
1521
|
+
(0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
1522
|
+
(0, errors_1$f.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
1523
|
+
return (0, go_1$f.go)(function () {
|
|
1516
1524
|
return __asyncGenerator$m(this, arguments, function* () {
|
|
1517
1525
|
var e_1, _a;
|
|
1518
1526
|
let buffer = [];
|
|
@@ -1546,7 +1554,7 @@ const async_iterable_operator_base_1$h = asyncIterableOperatorBase;
|
|
|
1546
1554
|
const chunk_async_1$1 = chunkAsync$1;
|
|
1547
1555
|
class ChunkAsyncOperator extends async_iterable_operator_base_1$h.AsyncIterableOperatorBase {
|
|
1548
1556
|
chunkAsync(...args) {
|
|
1549
|
-
return utils_1$19.applyChainingAsync(this.subject, chunk_async_1$1.chunkAsync, args);
|
|
1557
|
+
return (0, utils_1$19.applyChainingAsync)(this.subject, chunk_async_1$1.chunkAsync, args);
|
|
1550
1558
|
}
|
|
1551
1559
|
}
|
|
1552
1560
|
chunkAsync$2.ChunkAsyncOperator = ChunkAsyncOperator;
|
|
@@ -1743,19 +1751,167 @@ var jsonRpc = {};
|
|
|
1743
1751
|
|
|
1744
1752
|
var object = {};
|
|
1745
1753
|
|
|
1746
|
-
|
|
1754
|
+
/**
|
|
1755
|
+
* lodash (Custom Build) <https://lodash.com/>
|
|
1756
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
|
1757
|
+
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
1758
|
+
* Released under MIT license <https://lodash.com/license>
|
|
1759
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
1760
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
1761
|
+
*/
|
|
1762
|
+
|
|
1763
|
+
/** `Object#toString` result references. */
|
|
1764
|
+
var objectTag = '[object Object]';
|
|
1765
|
+
|
|
1766
|
+
/**
|
|
1767
|
+
* Checks if `value` is a host object in IE < 9.
|
|
1768
|
+
*
|
|
1769
|
+
* @private
|
|
1770
|
+
* @param {*} value The value to check.
|
|
1771
|
+
* @returns {boolean} Returns `true` if `value` is a host object, else `false`.
|
|
1772
|
+
*/
|
|
1773
|
+
function isHostObject(value) {
|
|
1774
|
+
// Many host objects are `Object` objects that can coerce to strings
|
|
1775
|
+
// despite having improperly defined `toString` methods.
|
|
1776
|
+
var result = false;
|
|
1777
|
+
if (value != null && typeof value.toString != 'function') {
|
|
1778
|
+
try {
|
|
1779
|
+
result = !!(value + '');
|
|
1780
|
+
} catch (e) {}
|
|
1781
|
+
}
|
|
1782
|
+
return result;
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
/**
|
|
1786
|
+
* Creates a unary function that invokes `func` with its argument transformed.
|
|
1787
|
+
*
|
|
1788
|
+
* @private
|
|
1789
|
+
* @param {Function} func The function to wrap.
|
|
1790
|
+
* @param {Function} transform The argument transform.
|
|
1791
|
+
* @returns {Function} Returns the new function.
|
|
1792
|
+
*/
|
|
1793
|
+
function overArg(func, transform) {
|
|
1794
|
+
return function(arg) {
|
|
1795
|
+
return func(transform(arg));
|
|
1796
|
+
};
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
/** Used for built-in method references. */
|
|
1800
|
+
var funcProto = Function.prototype,
|
|
1801
|
+
objectProto = Object.prototype;
|
|
1802
|
+
|
|
1803
|
+
/** Used to resolve the decompiled source of functions. */
|
|
1804
|
+
var funcToString = funcProto.toString;
|
|
1805
|
+
|
|
1806
|
+
/** Used to check objects for own properties. */
|
|
1807
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
1808
|
+
|
|
1809
|
+
/** Used to infer the `Object` constructor. */
|
|
1810
|
+
var objectCtorString = funcToString.call(Object);
|
|
1811
|
+
|
|
1812
|
+
/**
|
|
1813
|
+
* Used to resolve the
|
|
1814
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
1815
|
+
* of values.
|
|
1816
|
+
*/
|
|
1817
|
+
var objectToString = objectProto.toString;
|
|
1818
|
+
|
|
1819
|
+
/** Built-in value references. */
|
|
1820
|
+
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
1821
|
+
|
|
1822
|
+
/**
|
|
1823
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
1824
|
+
* and has a `typeof` result of "object".
|
|
1825
|
+
*
|
|
1826
|
+
* @static
|
|
1827
|
+
* @memberOf _
|
|
1828
|
+
* @since 4.0.0
|
|
1829
|
+
* @category Lang
|
|
1830
|
+
* @param {*} value The value to check.
|
|
1831
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
1832
|
+
* @example
|
|
1833
|
+
*
|
|
1834
|
+
* _.isObjectLike({});
|
|
1835
|
+
* // => true
|
|
1836
|
+
*
|
|
1837
|
+
* _.isObjectLike([1, 2, 3]);
|
|
1838
|
+
* // => true
|
|
1839
|
+
*
|
|
1840
|
+
* _.isObjectLike(_.noop);
|
|
1841
|
+
* // => false
|
|
1842
|
+
*
|
|
1843
|
+
* _.isObjectLike(null);
|
|
1844
|
+
* // => false
|
|
1845
|
+
*/
|
|
1846
|
+
function isObjectLike(value) {
|
|
1847
|
+
return !!value && typeof value == 'object';
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
/**
|
|
1851
|
+
* Checks if `value` is a plain object, that is, an object created by the
|
|
1852
|
+
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
1853
|
+
*
|
|
1854
|
+
* @static
|
|
1855
|
+
* @memberOf _
|
|
1856
|
+
* @since 0.8.0
|
|
1857
|
+
* @category Lang
|
|
1858
|
+
* @param {*} value The value to check.
|
|
1859
|
+
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
|
1860
|
+
* @example
|
|
1861
|
+
*
|
|
1862
|
+
* function Foo() {
|
|
1863
|
+
* this.a = 1;
|
|
1864
|
+
* }
|
|
1865
|
+
*
|
|
1866
|
+
* _.isPlainObject(new Foo);
|
|
1867
|
+
* // => false
|
|
1868
|
+
*
|
|
1869
|
+
* _.isPlainObject([1, 2, 3]);
|
|
1870
|
+
* // => false
|
|
1871
|
+
*
|
|
1872
|
+
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
|
1873
|
+
* // => true
|
|
1874
|
+
*
|
|
1875
|
+
* _.isPlainObject(Object.create(null));
|
|
1876
|
+
* // => true
|
|
1877
|
+
*/
|
|
1878
|
+
function isPlainObject$1(value) {
|
|
1879
|
+
if (!isObjectLike(value) ||
|
|
1880
|
+
objectToString.call(value) != objectTag || isHostObject(value)) {
|
|
1881
|
+
return false;
|
|
1882
|
+
}
|
|
1883
|
+
var proto = getPrototype(value);
|
|
1884
|
+
if (proto === null) {
|
|
1885
|
+
return true;
|
|
1886
|
+
}
|
|
1887
|
+
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
|
|
1888
|
+
return (typeof Ctor == 'function' &&
|
|
1889
|
+
Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);
|
|
1890
|
+
}
|
|
1891
|
+
|
|
1892
|
+
var lodash_isplainobject = isPlainObject$1;
|
|
1893
|
+
|
|
1894
|
+
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
1895
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
1896
|
+
};object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
|
|
1897
|
+
const lodash_isplainobject_1 = __importDefault(lodash_isplainobject);
|
|
1747
1898
|
function isObject(val) {
|
|
1748
|
-
return val !== null
|
|
1899
|
+
return val !== null
|
|
1900
|
+
&& typeof val === 'object';
|
|
1749
1901
|
}
|
|
1750
1902
|
object.isObject = isObject;
|
|
1751
1903
|
function isntObject(val) {
|
|
1752
1904
|
return !isObject(val);
|
|
1753
1905
|
}
|
|
1754
1906
|
object.isntObject = isntObject;
|
|
1755
|
-
function
|
|
1756
|
-
return
|
|
1907
|
+
function isPlainObject(val) {
|
|
1908
|
+
return (0, lodash_isplainobject_1.default)(val);
|
|
1909
|
+
}
|
|
1910
|
+
object.isPlainObject = isPlainObject;
|
|
1911
|
+
function isntPlainObject(val) {
|
|
1912
|
+
return !isPlainObject(val);
|
|
1757
1913
|
}
|
|
1758
|
-
object.
|
|
1914
|
+
object.isntPlainObject = isntPlainObject;
|
|
1759
1915
|
function isEmptyObject(val) {
|
|
1760
1916
|
return Object.keys(val).length === 0;
|
|
1761
1917
|
}
|
|
@@ -1790,7 +1946,7 @@ function isJsonRpcParams(val) {
|
|
|
1790
1946
|
return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);
|
|
1791
1947
|
}
|
|
1792
1948
|
function isJsonRpcNotification(val) {
|
|
1793
|
-
return (0, object_1.
|
|
1949
|
+
return (0, object_1.isPlainObject)(val)
|
|
1794
1950
|
&& (0, string_1.isString)(val.jsonrpc)
|
|
1795
1951
|
&& (0, string_1.isString)(val.method)
|
|
1796
1952
|
&& (0, undefined_1.isUndefined)(val.id)
|
|
@@ -1802,7 +1958,7 @@ function isntJsonRpcNotification(val) {
|
|
|
1802
1958
|
}
|
|
1803
1959
|
jsonRpc.isntJsonRpcNotification = isntJsonRpcNotification;
|
|
1804
1960
|
function isJsonRpcRequest(val) {
|
|
1805
|
-
return (0, object_1.
|
|
1961
|
+
return (0, object_1.isPlainObject)(val)
|
|
1806
1962
|
&& (0, string_1.isString)(val.jsonrpc)
|
|
1807
1963
|
&& (0, string_1.isString)(val.method)
|
|
1808
1964
|
&& isJsonRpcId(val.id)
|
|
@@ -1814,10 +1970,10 @@ function isntJsonRpcRequest(val) {
|
|
|
1814
1970
|
}
|
|
1815
1971
|
jsonRpc.isntJsonRpcRequest = isntJsonRpcRequest;
|
|
1816
1972
|
function isJsonRpcSuccess(val) {
|
|
1817
|
-
return (0, object_1.
|
|
1973
|
+
return (0, object_1.isPlainObject)(val)
|
|
1818
1974
|
&& (0, string_1.isString)(val.jsonrpc)
|
|
1819
1975
|
&& (0, string_1.isString)(val.id)
|
|
1820
|
-
&&
|
|
1976
|
+
&& 'result' in val;
|
|
1821
1977
|
}
|
|
1822
1978
|
jsonRpc.isJsonRpcSuccess = isJsonRpcSuccess;
|
|
1823
1979
|
function isntJsonRpcSuccess(val) {
|
|
@@ -1825,7 +1981,7 @@ function isntJsonRpcSuccess(val) {
|
|
|
1825
1981
|
}
|
|
1826
1982
|
jsonRpc.isntJsonRpcSuccess = isntJsonRpcSuccess;
|
|
1827
1983
|
function isJsonRpcError(val) {
|
|
1828
|
-
return (0, object_1.
|
|
1984
|
+
return (0, object_1.isPlainObject)(val)
|
|
1829
1985
|
&& (0, string_1.isString)(val.jsonrpc)
|
|
1830
1986
|
&& isJsonRpcId(val.id)
|
|
1831
1987
|
&& isJsonRpcErrorObject(val.error);
|
|
@@ -1836,7 +1992,7 @@ function isntJsonRpcError(val) {
|
|
|
1836
1992
|
}
|
|
1837
1993
|
jsonRpc.isntJsonRpcError = isntJsonRpcError;
|
|
1838
1994
|
function isJsonRpcErrorObject(val) {
|
|
1839
|
-
return (0, object_1.
|
|
1995
|
+
return (0, object_1.isPlainObject)(val)
|
|
1840
1996
|
&& (0, number_1.isNumber)(val.code)
|
|
1841
1997
|
&& (0, string_1.isString)(val.message)
|
|
1842
1998
|
&& ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));
|
|
@@ -1927,7 +2083,7 @@ var __asyncGenerator$l = (commonjsGlobal && commonjsGlobal.__asyncGenerator) ||
|
|
|
1927
2083
|
};chunkByAsync$1.chunkByAsync = void 0;
|
|
1928
2084
|
const types_1$h = es2018;
|
|
1929
2085
|
function chunkByAsync(iterable, predicate) {
|
|
1930
|
-
if (types_1$h.isAsyncIterable(iterable)) {
|
|
2086
|
+
if ((0, types_1$h.isAsyncIterable)(iterable)) {
|
|
1931
2087
|
return chunkByAsyncIterable(iterable);
|
|
1932
2088
|
}
|
|
1933
2089
|
else {
|
|
@@ -1985,7 +2141,7 @@ const chunk_by_async_1$2 = chunkByAsync$1;
|
|
|
1985
2141
|
const subject_1$h = subject;
|
|
1986
2142
|
class ChunkByAsyncOperator extends subject_1$h.Subject {
|
|
1987
2143
|
chunkByAsync(...args) {
|
|
1988
|
-
return utils_1$18.applyChainingAsync(this.subject, chunk_by_async_1$2.chunkByAsync, args);
|
|
2144
|
+
return (0, utils_1$18.applyChainingAsync)(this.subject, chunk_by_async_1$2.chunkByAsync, args);
|
|
1989
2145
|
}
|
|
1990
2146
|
}
|
|
1991
2147
|
chunkByAsync$2.ChunkByAsyncOperator = ChunkByAsyncOperator;
|
|
@@ -2016,11 +2172,11 @@ var __asyncGenerator$k = (commonjsGlobal && commonjsGlobal.__asyncGenerator) ||
|
|
|
2016
2172
|
const types_1$g = es2018;
|
|
2017
2173
|
const go_1$e = es2018$2;
|
|
2018
2174
|
function concatAsync(iterable, ...otherIterables) {
|
|
2019
|
-
return go_1$e.go(function () {
|
|
2175
|
+
return (0, go_1$e.go)(function () {
|
|
2020
2176
|
return __asyncGenerator$k(this, arguments, function* () {
|
|
2021
2177
|
var e_1, _a;
|
|
2022
2178
|
for (const iter of [iterable, ...otherIterables]) {
|
|
2023
|
-
if (types_1$g.isAsyncIterable(iter)) {
|
|
2179
|
+
if ((0, types_1$g.isAsyncIterable)(iter)) {
|
|
2024
2180
|
try {
|
|
2025
2181
|
for (var iter_1 = (e_1 = void 0, __asyncValues$q(iter)), iter_1_1; iter_1_1 = yield __await$k(iter_1.next()), !iter_1_1.done;) {
|
|
2026
2182
|
const element = iter_1_1.value;
|
|
@@ -2052,7 +2208,7 @@ const concat_async_1$2 = concatAsync$1;
|
|
|
2052
2208
|
const subject_1$g = subject;
|
|
2053
2209
|
class ConcatAsyncOperator extends subject_1$g.Subject {
|
|
2054
2210
|
concatAsync(...args) {
|
|
2055
|
-
return utils_1$17.applyChainingAsync(this.subject, concat_async_1$2.concatAsync, args);
|
|
2211
|
+
return (0, utils_1$17.applyChainingAsync)(this.subject, concat_async_1$2.concatAsync, args);
|
|
2056
2212
|
}
|
|
2057
2213
|
}
|
|
2058
2214
|
concatAsync$2.ConcatAsyncOperator = ConcatAsyncOperator;
|
|
@@ -2124,11 +2280,11 @@ const go_1$d = es2018$2;
|
|
|
2124
2280
|
const utils_1$16 = utils;
|
|
2125
2281
|
const errors_1$e = es2018$1;
|
|
2126
2282
|
function dropAsync(iterable, count) {
|
|
2127
|
-
errors_1$e.assert(Number.isInteger(count), 'The parameter count must be an integer');
|
|
2128
|
-
errors_1$e.assert(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
2283
|
+
(0, errors_1$e.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
2284
|
+
(0, errors_1$e.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
2129
2285
|
if (count === 0)
|
|
2130
|
-
return utils_1$16.copyAsyncIterable(iterable);
|
|
2131
|
-
return go_1$d.go(function () {
|
|
2286
|
+
return (0, utils_1$16.copyAsyncIterable)(iterable);
|
|
2287
|
+
return (0, go_1$d.go)(function () {
|
|
2132
2288
|
var _a;
|
|
2133
2289
|
return __asyncGenerator$i(this, arguments, function* () {
|
|
2134
2290
|
const iterator = iterable[Symbol.asyncIterator]();
|
|
@@ -2160,7 +2316,7 @@ const async_iterable_operator_base_1$g = asyncIterableOperatorBase;
|
|
|
2160
2316
|
const drop_async_1$1 = dropAsync$1;
|
|
2161
2317
|
class DropAsyncOperator extends async_iterable_operator_base_1$g.AsyncIterableOperatorBase {
|
|
2162
2318
|
dropAsync(...args) {
|
|
2163
|
-
return utils_1$15.applyChainingAsync(this.subject, drop_async_1$1.dropAsync, args);
|
|
2319
|
+
return (0, utils_1$15.applyChainingAsync)(this.subject, drop_async_1$1.dropAsync, args);
|
|
2164
2320
|
}
|
|
2165
2321
|
}
|
|
2166
2322
|
dropAsync$2.DropAsyncOperator = DropAsyncOperator;
|
|
@@ -2201,11 +2357,11 @@ const go_1$c = es2018$2;
|
|
|
2201
2357
|
const utils_1$14 = utils;
|
|
2202
2358
|
const errors_1$d = es2018$1;
|
|
2203
2359
|
function dropRightAsync(iterable, count) {
|
|
2204
|
-
errors_1$d.assert(Number.isInteger(count), 'The parameter count must be an integer');
|
|
2205
|
-
errors_1$d.assert(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
2360
|
+
(0, errors_1$d.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
2361
|
+
(0, errors_1$d.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
2206
2362
|
if (count === 0)
|
|
2207
|
-
return utils_1$14.copyAsyncIterable(iterable);
|
|
2208
|
-
return go_1$c.go(function () {
|
|
2363
|
+
return (0, utils_1$14.copyAsyncIterable)(iterable);
|
|
2364
|
+
return (0, go_1$c.go)(function () {
|
|
2209
2365
|
return __asyncGenerator$h(this, arguments, function* () {
|
|
2210
2366
|
const arr = yield __await$h(toArrayAsync$3(iterable));
|
|
2211
2367
|
const result = arr.slice(0, -count);
|
|
@@ -2244,7 +2400,7 @@ const async_iterable_operator_base_1$f = asyncIterableOperatorBase;
|
|
|
2244
2400
|
const drop_right_async_1$1 = dropRightAsync$1;
|
|
2245
2401
|
class DropRightAsyncOperator extends async_iterable_operator_base_1$f.AsyncIterableOperatorBase {
|
|
2246
2402
|
dropRightAsync(...args) {
|
|
2247
|
-
return utils_1$13.applyChainingAsync(this.subject, drop_right_async_1$1.dropRightAsync, args);
|
|
2403
|
+
return (0, utils_1$13.applyChainingAsync)(this.subject, drop_right_async_1$1.dropRightAsync, args);
|
|
2248
2404
|
}
|
|
2249
2405
|
}
|
|
2250
2406
|
dropRightAsync$2.DropRightAsyncOperator = DropRightAsyncOperator;
|
|
@@ -2267,7 +2423,7 @@ var __asyncGenerator$g = (commonjsGlobal && commonjsGlobal.__asyncGenerator) ||
|
|
|
2267
2423
|
};dropUntilAsync$1.dropUntilAsync = void 0;
|
|
2268
2424
|
const types_1$f = es2018;
|
|
2269
2425
|
function dropUntilAsync(iterable, predicate) {
|
|
2270
|
-
if (types_1$f.isAsyncIterable(iterable)) {
|
|
2426
|
+
if ((0, types_1$f.isAsyncIterable)(iterable)) {
|
|
2271
2427
|
return dropUntilAsyncIterable(iterable);
|
|
2272
2428
|
}
|
|
2273
2429
|
else {
|
|
@@ -2328,7 +2484,7 @@ const subject_1$f = subject;
|
|
|
2328
2484
|
const drop_until_async_1$2 = dropUntilAsync$1;
|
|
2329
2485
|
class DropUntilAsyncOperator extends subject_1$f.Subject {
|
|
2330
2486
|
dropUntilAsync(...args) {
|
|
2331
|
-
return utils_1$12.applyChainingAsync(this.subject, drop_until_async_1$2.dropUntilAsync, args);
|
|
2487
|
+
return (0, utils_1$12.applyChainingAsync)(this.subject, drop_until_async_1$2.dropUntilAsync, args);
|
|
2332
2488
|
}
|
|
2333
2489
|
}
|
|
2334
2490
|
dropUntilAsync$2.DropUntilAsyncOperator = DropUntilAsyncOperator;
|
|
@@ -2358,7 +2514,7 @@ var __asyncGenerator$f = (commonjsGlobal && commonjsGlobal.__asyncGenerator) ||
|
|
|
2358
2514
|
};filterAsync$1.filterAsync = void 0;
|
|
2359
2515
|
const types_1$e = es2018;
|
|
2360
2516
|
function filterAsync(iterable, predicate) {
|
|
2361
|
-
if (types_1$e.isAsyncIterable(iterable)) {
|
|
2517
|
+
if ((0, types_1$e.isAsyncIterable)(iterable)) {
|
|
2362
2518
|
return filterAsyncIterable(iterable);
|
|
2363
2519
|
}
|
|
2364
2520
|
else {
|
|
@@ -2404,7 +2560,7 @@ const subject_1$e = subject;
|
|
|
2404
2560
|
const filter_async_1$2 = filterAsync$1;
|
|
2405
2561
|
class FilterAsyncOperator extends subject_1$e.Subject {
|
|
2406
2562
|
filterAsync(...args) {
|
|
2407
|
-
return utils_1$11.applyChainingAsync(this.subject, filter_async_1$2.filterAsync, args);
|
|
2563
|
+
return (0, utils_1$11.applyChainingAsync)(this.subject, filter_async_1$2.filterAsync, args);
|
|
2408
2564
|
}
|
|
2409
2565
|
}
|
|
2410
2566
|
filterAsync$2.FilterAsyncOperator = FilterAsyncOperator;
|
|
@@ -2443,7 +2599,7 @@ var __asyncGenerator$e = (commonjsGlobal && commonjsGlobal.__asyncGenerator) ||
|
|
|
2443
2599
|
};flattenByAsync$2.flattenByAsync = void 0;
|
|
2444
2600
|
const types_1$d = es2018;
|
|
2445
2601
|
function flattenByAsync$1(iterable, predicate) {
|
|
2446
|
-
if (types_1$d.isAsyncIterable(iterable)) {
|
|
2602
|
+
if ((0, types_1$d.isAsyncIterable)(iterable)) {
|
|
2447
2603
|
return flattenByAsyncIterable(iterable);
|
|
2448
2604
|
}
|
|
2449
2605
|
else {
|
|
@@ -2491,23 +2647,23 @@ function flattenByAsync$1(iterable, predicate) {
|
|
|
2491
2647
|
}
|
|
2492
2648
|
flattenByAsync$2.flattenByAsync = flattenByAsync$1;
|
|
2493
2649
|
function isFiniteIterable$1(val) {
|
|
2494
|
-
return types_1$d.isIterable(val) && types_1$d.isntChar(val);
|
|
2650
|
+
return (0, types_1$d.isIterable)(val) && (0, types_1$d.isntChar)(val);
|
|
2495
2651
|
}
|
|
2496
2652
|
|
|
2497
2653
|
flattenDeepAsync$2.flattenDeepAsync = void 0;
|
|
2498
2654
|
const flatten_by_async_1$3 = flattenByAsync$2;
|
|
2499
2655
|
const errors_1$c = es2018$1;
|
|
2500
2656
|
function flattenDeepAsync$1(iterable, depth = Infinity) {
|
|
2501
|
-
errors_1$c.assert(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
2502
|
-
errors_1$c.assert(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
2503
|
-
return flatten_by_async_1$3.flattenByAsync(iterable, (_, level) => level <= depth);
|
|
2657
|
+
(0, errors_1$c.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
2658
|
+
(0, errors_1$c.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
2659
|
+
return (0, flatten_by_async_1$3.flattenByAsync)(iterable, (_, level) => level <= depth);
|
|
2504
2660
|
}
|
|
2505
2661
|
flattenDeepAsync$2.flattenDeepAsync = flattenDeepAsync$1;
|
|
2506
2662
|
|
|
2507
2663
|
flattenAsync$1.flattenAsync = void 0;
|
|
2508
2664
|
const flatten_deep_async_1$2 = flattenDeepAsync$2;
|
|
2509
2665
|
function flattenAsync(iterable) {
|
|
2510
|
-
return flatten_deep_async_1$2.flattenDeepAsync(iterable, 1);
|
|
2666
|
+
return (0, flatten_deep_async_1$2.flattenDeepAsync)(iterable, 1);
|
|
2511
2667
|
}
|
|
2512
2668
|
flattenAsync$1.flattenAsync = flattenAsync;
|
|
2513
2669
|
|
|
@@ -2517,7 +2673,7 @@ const async_iterable_operator_base_1$e = asyncIterableOperatorBase;
|
|
|
2517
2673
|
const flatten_async_1$1 = flattenAsync$1;
|
|
2518
2674
|
class FlattenAsyncOperator extends async_iterable_operator_base_1$e.AsyncIterableOperatorBase {
|
|
2519
2675
|
flattenAsync(...args) {
|
|
2520
|
-
return utils_1$10.applyChainingAsync(this.subject, flatten_async_1$1.flattenAsync, args);
|
|
2676
|
+
return (0, utils_1$10.applyChainingAsync)(this.subject, flatten_async_1$1.flattenAsync, args);
|
|
2521
2677
|
}
|
|
2522
2678
|
}
|
|
2523
2679
|
flattenAsync$2.FlattenAsyncOperator = FlattenAsyncOperator;
|
|
@@ -2530,7 +2686,7 @@ const subject_1$d = subject;
|
|
|
2530
2686
|
const flatten_by_async_1$2 = flattenByAsync$2;
|
|
2531
2687
|
class FlattenByAsync extends subject_1$d.Subject {
|
|
2532
2688
|
flattenByAsync(...args) {
|
|
2533
|
-
return utils_1$$.applyChainingAsync(this.subject, flatten_by_async_1$2.flattenByAsync, args);
|
|
2689
|
+
return (0, utils_1$$.applyChainingAsync)(this.subject, flatten_by_async_1$2.flattenByAsync, args);
|
|
2534
2690
|
}
|
|
2535
2691
|
}
|
|
2536
2692
|
flattenByAsync.FlattenByAsync = FlattenByAsync;
|
|
@@ -2543,7 +2699,7 @@ const async_iterable_operator_base_1$d = asyncIterableOperatorBase;
|
|
|
2543
2699
|
const flatten_deep_async_1$1 = flattenDeepAsync$2;
|
|
2544
2700
|
class FlattenDeepAsyncOperator extends async_iterable_operator_base_1$d.AsyncIterableOperatorBase {
|
|
2545
2701
|
flattenDeepAsync(...args) {
|
|
2546
|
-
return utils_1$_.applyChainingAsync(this.subject, flatten_deep_async_1$1.flattenDeepAsync, args);
|
|
2702
|
+
return (0, utils_1$_.applyChainingAsync)(this.subject, flatten_deep_async_1$1.flattenDeepAsync, args);
|
|
2547
2703
|
}
|
|
2548
2704
|
}
|
|
2549
2705
|
flattenDeepAsync.FlattenDeepAsyncOperator = FlattenDeepAsyncOperator;
|
|
@@ -2573,7 +2729,7 @@ var __asyncGenerator$d = (commonjsGlobal && commonjsGlobal.__asyncGenerator) ||
|
|
|
2573
2729
|
};mapAsync$1.mapAsync = void 0;
|
|
2574
2730
|
const types_1$c = es2018;
|
|
2575
2731
|
function mapAsync(iterable, fn) {
|
|
2576
|
-
if (types_1$c.isAsyncIterable(iterable)) {
|
|
2732
|
+
if ((0, types_1$c.isAsyncIterable)(iterable)) {
|
|
2577
2733
|
return mapAsyncIterable(iterable);
|
|
2578
2734
|
}
|
|
2579
2735
|
else {
|
|
@@ -2617,7 +2773,7 @@ const subject_1$c = subject;
|
|
|
2617
2773
|
const map_async_1$2 = mapAsync$1;
|
|
2618
2774
|
class MapAsyncOperator extends subject_1$c.Subject {
|
|
2619
2775
|
mapAsync(...args) {
|
|
2620
|
-
return utils_1$Z.applyChainingAsync(this.subject, map_async_1$2.mapAsync, args);
|
|
2776
|
+
return (0, utils_1$Z.applyChainingAsync)(this.subject, map_async_1$2.mapAsync, args);
|
|
2621
2777
|
}
|
|
2622
2778
|
}
|
|
2623
2779
|
mapAsync$2.MapAsyncOperator = MapAsyncOperator;
|
|
@@ -2653,11 +2809,11 @@ var __asyncGenerator$c = (commonjsGlobal && commonjsGlobal.__asyncGenerator) ||
|
|
|
2653
2809
|
const go_1$b = es2018$2;
|
|
2654
2810
|
const errors_1$b = es2018$1;
|
|
2655
2811
|
function repeatAsync(iterable, times) {
|
|
2656
|
-
errors_1$b.assert(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
2657
|
-
errors_1$b.assert(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
2812
|
+
(0, errors_1$b.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
2813
|
+
(0, errors_1$b.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
2658
2814
|
if (times === Infinity)
|
|
2659
2815
|
warnInfiniteLoop$1();
|
|
2660
|
-
return go_1$b.go(function () {
|
|
2816
|
+
return (0, go_1$b.go)(function () {
|
|
2661
2817
|
return __asyncGenerator$c(this, arguments, function* () {
|
|
2662
2818
|
var e_1, _a;
|
|
2663
2819
|
const cache = [];
|
|
@@ -2701,7 +2857,7 @@ const async_iterable_operator_base_1$c = asyncIterableOperatorBase;
|
|
|
2701
2857
|
const repeat_async_1$1 = repeatAsync$1;
|
|
2702
2858
|
class RepeatAsyncOperator extends async_iterable_operator_base_1$c.AsyncIterableOperatorBase {
|
|
2703
2859
|
repeatAsync(...args) {
|
|
2704
|
-
return utils_1$Y.applyChainingAsync(this.subject, repeat_async_1$1.repeatAsync, args);
|
|
2860
|
+
return (0, utils_1$Y.applyChainingAsync)(this.subject, repeat_async_1$1.repeatAsync, args);
|
|
2705
2861
|
}
|
|
2706
2862
|
}
|
|
2707
2863
|
repeatAsync$2.RepeatAsyncOperator = RepeatAsyncOperator;
|
|
@@ -2732,11 +2888,11 @@ var __asyncGenerator$b = (commonjsGlobal && commonjsGlobal.__asyncGenerator) ||
|
|
|
2732
2888
|
const go_1$a = es2018$2;
|
|
2733
2889
|
const errors_1$a = es2018$1;
|
|
2734
2890
|
function sliceAsync(iterable, start, end = Infinity) {
|
|
2735
|
-
errors_1$a.assert(Number.isInteger(start), 'The parameter start must be an integer');
|
|
2736
|
-
errors_1$a.assert(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
2737
|
-
errors_1$a.assert(Number.isInteger(end), 'The parameter end must be an integer');
|
|
2738
|
-
errors_1$a.assert(end >= start, 'The parameter end must be greater than or equal to start');
|
|
2739
|
-
return go_1$a.go(function () {
|
|
2891
|
+
(0, errors_1$a.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
2892
|
+
(0, errors_1$a.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
2893
|
+
(0, errors_1$a.assert)(Number.isInteger(end), 'The parameter end must be an integer');
|
|
2894
|
+
(0, errors_1$a.assert)(end >= start, 'The parameter end must be greater than or equal to start');
|
|
2895
|
+
return (0, go_1$a.go)(function () {
|
|
2740
2896
|
return __asyncGenerator$b(this, arguments, function* () {
|
|
2741
2897
|
var e_1, _a;
|
|
2742
2898
|
let index = 0;
|
|
@@ -2768,7 +2924,7 @@ const async_iterable_operator_base_1$b = asyncIterableOperatorBase;
|
|
|
2768
2924
|
const slice_async_1$1 = sliceAsync$1;
|
|
2769
2925
|
class SliceAsyncOperator extends async_iterable_operator_base_1$b.AsyncIterableOperatorBase {
|
|
2770
2926
|
sliceAsync(...args) {
|
|
2771
|
-
return utils_1$X.applyChainingAsync(this.subject, slice_async_1$1.sliceAsync, args);
|
|
2927
|
+
return (0, utils_1$X.applyChainingAsync)(this.subject, slice_async_1$1.sliceAsync, args);
|
|
2772
2928
|
}
|
|
2773
2929
|
}
|
|
2774
2930
|
sliceAsync$2.SliceAsyncOperator = SliceAsyncOperator;
|
|
@@ -2830,7 +2986,7 @@ const async_iterable_operator_base_1$a = asyncIterableOperatorBase;
|
|
|
2830
2986
|
const split_async_1$1 = splitAsync$1;
|
|
2831
2987
|
class SplitAsyncOperator extends async_iterable_operator_base_1$a.AsyncIterableOperatorBase {
|
|
2832
2988
|
splitAsync(...args) {
|
|
2833
|
-
return utils_1$W.applyChainingAsync(this.subject, split_async_1$1.splitAsync, args);
|
|
2989
|
+
return (0, utils_1$W.applyChainingAsync)(this.subject, split_async_1$1.splitAsync, args);
|
|
2834
2990
|
}
|
|
2835
2991
|
}
|
|
2836
2992
|
splitAsync$2.SplitAsyncOperator = SplitAsyncOperator;
|
|
@@ -2860,7 +3016,7 @@ var __asyncValues$h = (commonjsGlobal && commonjsGlobal.__asyncValues) || functi
|
|
|
2860
3016
|
};splitByAsync$1.splitByAsync = void 0;
|
|
2861
3017
|
const types_1$b = es2018;
|
|
2862
3018
|
function splitByAsync(iterable, predicate) {
|
|
2863
|
-
if (types_1$b.isAsyncIterable(iterable)) {
|
|
3019
|
+
if ((0, types_1$b.isAsyncIterable)(iterable)) {
|
|
2864
3020
|
return splitByAsyncIterable(iterable);
|
|
2865
3021
|
}
|
|
2866
3022
|
else {
|
|
@@ -2920,7 +3076,7 @@ const subject_1$b = subject;
|
|
|
2920
3076
|
const split_by_async_1$2 = splitByAsync$1;
|
|
2921
3077
|
class SplitByAsyncOperator extends subject_1$b.Subject {
|
|
2922
3078
|
splitByAsync(...args) {
|
|
2923
|
-
return utils_1$V.applyChainingAsync(this.subject, split_by_async_1$2.splitByAsync, args);
|
|
3079
|
+
return (0, utils_1$V.applyChainingAsync)(this.subject, split_by_async_1$2.splitByAsync, args);
|
|
2924
3080
|
}
|
|
2925
3081
|
}
|
|
2926
3082
|
splitByAsync$2.SplitByAsyncOperator = SplitByAsyncOperator;
|
|
@@ -2951,9 +3107,9 @@ var __asyncGenerator$8 = (commonjsGlobal && commonjsGlobal.__asyncGenerator) ||
|
|
|
2951
3107
|
const go_1$9 = es2018$2;
|
|
2952
3108
|
const errors_1$9 = es2018$1;
|
|
2953
3109
|
function takeAsync(iterable, count) {
|
|
2954
|
-
errors_1$9.assert(Number.isInteger(count), 'The parameter count must be an integer');
|
|
2955
|
-
errors_1$9.assert(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
2956
|
-
return go_1$9.go(function () {
|
|
3110
|
+
(0, errors_1$9.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
3111
|
+
(0, errors_1$9.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
3112
|
+
return (0, go_1$9.go)(function () {
|
|
2957
3113
|
return __asyncGenerator$8(this, arguments, function* () {
|
|
2958
3114
|
var e_1, _a;
|
|
2959
3115
|
if (count === 0)
|
|
@@ -2985,7 +3141,7 @@ const async_iterable_operator_base_1$9 = asyncIterableOperatorBase;
|
|
|
2985
3141
|
const take_async_1$1 = takeAsync$1;
|
|
2986
3142
|
class TakeAsyncOperator extends async_iterable_operator_base_1$9.AsyncIterableOperatorBase {
|
|
2987
3143
|
takeAsync(...args) {
|
|
2988
|
-
return utils_1$U.applyChainingAsync(this.subject, take_async_1$1.takeAsync, args);
|
|
3144
|
+
return (0, utils_1$U.applyChainingAsync)(this.subject, take_async_1$1.takeAsync, args);
|
|
2989
3145
|
}
|
|
2990
3146
|
}
|
|
2991
3147
|
takeAsync$2.TakeAsyncOperator = TakeAsyncOperator;
|
|
@@ -3021,9 +3177,9 @@ var __asyncGenerator$7 = (commonjsGlobal && commonjsGlobal.__asyncGenerator) ||
|
|
|
3021
3177
|
const go_1$8 = es2018$2;
|
|
3022
3178
|
const errors_1$8 = es2018$1;
|
|
3023
3179
|
function takeRightAsync(iterable, count) {
|
|
3024
|
-
errors_1$8.assert(Number.isInteger(count), 'The parameter count must be an integer');
|
|
3025
|
-
errors_1$8.assert(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
3026
|
-
return go_1$8.go(function () {
|
|
3180
|
+
(0, errors_1$8.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
3181
|
+
(0, errors_1$8.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
3182
|
+
return (0, go_1$8.go)(function () {
|
|
3027
3183
|
var _a;
|
|
3028
3184
|
return __asyncGenerator$7(this, arguments, function* () {
|
|
3029
3185
|
const iterator = iterable[Symbol.asyncIterator]();
|
|
@@ -3053,7 +3209,7 @@ const async_iterable_operator_base_1$8 = asyncIterableOperatorBase;
|
|
|
3053
3209
|
const take_right_async_1$1 = takeRightAsync$1;
|
|
3054
3210
|
class TakeRightAsyncOperator extends async_iterable_operator_base_1$8.AsyncIterableOperatorBase {
|
|
3055
3211
|
takeRightAsync(...args) {
|
|
3056
|
-
return utils_1$T.applyChainingAsync(this.subject, take_right_async_1$1.takeRightAsync, args);
|
|
3212
|
+
return (0, utils_1$T.applyChainingAsync)(this.subject, take_right_async_1$1.takeRightAsync, args);
|
|
3057
3213
|
}
|
|
3058
3214
|
}
|
|
3059
3215
|
takeRightAsync$2.TakeRightAsyncOperator = TakeRightAsyncOperator;
|
|
@@ -3083,7 +3239,7 @@ var __asyncGenerator$6 = (commonjsGlobal && commonjsGlobal.__asyncGenerator) ||
|
|
|
3083
3239
|
};takeUntilAsync$1.takeUntilAsync = void 0;
|
|
3084
3240
|
const types_1$a = es2018;
|
|
3085
3241
|
function takeUntilAsync(iterable, predicate) {
|
|
3086
|
-
if (types_1$a.isAsyncIterable(iterable)) {
|
|
3242
|
+
if ((0, types_1$a.isAsyncIterable)(iterable)) {
|
|
3087
3243
|
return takeUntilAsyncIterable(iterable);
|
|
3088
3244
|
}
|
|
3089
3245
|
else {
|
|
@@ -3131,7 +3287,7 @@ const subject_1$a = subject;
|
|
|
3131
3287
|
const take_until_async_1$2 = takeUntilAsync$1;
|
|
3132
3288
|
class TakeUntilAsyncOperator extends subject_1$a.Subject {
|
|
3133
3289
|
takeUntilAsync(...args) {
|
|
3134
|
-
return utils_1$S.applyChainingAsync(this.subject, take_until_async_1$2.takeUntilAsync, args);
|
|
3290
|
+
return (0, utils_1$S.applyChainingAsync)(this.subject, take_until_async_1$2.takeUntilAsync, args);
|
|
3135
3291
|
}
|
|
3136
3292
|
}
|
|
3137
3293
|
takeUntilAsync$2.TakeUntilAsyncOperator = TakeUntilAsyncOperator;
|
|
@@ -3161,7 +3317,7 @@ var __asyncValues$d = (commonjsGlobal && commonjsGlobal.__asyncValues) || functi
|
|
|
3161
3317
|
};tapAsync$1.tapAsync = void 0;
|
|
3162
3318
|
const types_1$9 = es2018;
|
|
3163
3319
|
function tapAsync(iterable, fn) {
|
|
3164
|
-
if (types_1$9.isAsyncIterable(iterable)) {
|
|
3320
|
+
if ((0, types_1$9.isAsyncIterable)(iterable)) {
|
|
3165
3321
|
return tapAsyncIterable(iterable);
|
|
3166
3322
|
}
|
|
3167
3323
|
else {
|
|
@@ -3207,7 +3363,7 @@ const subject_1$9 = subject;
|
|
|
3207
3363
|
const tap_async_1$2 = tapAsync$1;
|
|
3208
3364
|
class TapAsyncOperator extends subject_1$9.Subject {
|
|
3209
3365
|
tapAsync(...args) {
|
|
3210
|
-
return utils_1$R.applyChainingAsync(this.subject, tap_async_1$2.tapAsync, args);
|
|
3366
|
+
return (0, utils_1$R.applyChainingAsync)(this.subject, tap_async_1$2.tapAsync, args);
|
|
3211
3367
|
}
|
|
3212
3368
|
}
|
|
3213
3369
|
tapAsync$2.TapAsyncOperator = TapAsyncOperator;
|
|
@@ -3253,7 +3409,7 @@ const subject_1$8 = subject;
|
|
|
3253
3409
|
const transform_async_1$2 = transformAsync$1;
|
|
3254
3410
|
class TransformAsyncOperator extends subject_1$8.Subject {
|
|
3255
3411
|
transformAsync(...args) {
|
|
3256
|
-
return utils_1$Q.applyChainingAsync(this.subject, transform_async_1$2.transformAsync, args);
|
|
3412
|
+
return (0, utils_1$Q.applyChainingAsync)(this.subject, transform_async_1$2.transformAsync, args);
|
|
3257
3413
|
}
|
|
3258
3414
|
}
|
|
3259
3415
|
transformAsync$2.TransformAsyncOperator = TransformAsyncOperator;
|
|
@@ -3311,7 +3467,7 @@ const async_iterable_operator_base_1$7 = asyncIterableOperatorBase;
|
|
|
3311
3467
|
const uniq_async_1$1 = uniqAsync$1;
|
|
3312
3468
|
class UniqAsyncOperator extends async_iterable_operator_base_1$7.AsyncIterableOperatorBase {
|
|
3313
3469
|
uniqAsync(...args) {
|
|
3314
|
-
return utils_1$P.applyChainingAsync(this.subject, uniq_async_1$1.uniqAsync, args);
|
|
3470
|
+
return (0, utils_1$P.applyChainingAsync)(this.subject, uniq_async_1$1.uniqAsync, args);
|
|
3315
3471
|
}
|
|
3316
3472
|
}
|
|
3317
3473
|
uniqAsync$2.UniqAsyncOperator = UniqAsyncOperator;
|
|
@@ -3341,7 +3497,7 @@ var __asyncGenerator$2 = (commonjsGlobal && commonjsGlobal.__asyncGenerator) ||
|
|
|
3341
3497
|
};uniqByAsync$1.uniqByAsync = void 0;
|
|
3342
3498
|
const types_1$8 = es2018;
|
|
3343
3499
|
function uniqByAsync(iterable, fn) {
|
|
3344
|
-
if (types_1$8.isAsyncIterable(iterable)) {
|
|
3500
|
+
if ((0, types_1$8.isAsyncIterable)(iterable)) {
|
|
3345
3501
|
return uniqByAsyncIterable(iterable);
|
|
3346
3502
|
}
|
|
3347
3503
|
else {
|
|
@@ -3395,7 +3551,7 @@ const subject_1$7 = subject;
|
|
|
3395
3551
|
const uniq_by_async_1$2 = uniqByAsync$1;
|
|
3396
3552
|
class UniqByAsyncOperator extends subject_1$7.Subject {
|
|
3397
3553
|
uniqByAsync(...args) {
|
|
3398
|
-
return utils_1$O.applyChainingAsync(this.subject, uniq_by_async_1$2.uniqByAsync, args);
|
|
3554
|
+
return (0, utils_1$O.applyChainingAsync)(this.subject, uniq_by_async_1$2.uniqByAsync, args);
|
|
3399
3555
|
}
|
|
3400
3556
|
}
|
|
3401
3557
|
uniqByAsync$2.UniqByAsyncOperator = UniqByAsyncOperator;
|
|
@@ -3431,7 +3587,7 @@ function zipWithSize$1(...iterables) {
|
|
|
3431
3587
|
return __asyncGenerator$1(this, arguments, function* zipWithSize_1() {
|
|
3432
3588
|
const length = iterables.length;
|
|
3433
3589
|
const iterators = iterables.map(iterable => {
|
|
3434
|
-
if (types_1$7.isAsyncIterable(iterable)) {
|
|
3590
|
+
if ((0, types_1$7.isAsyncIterable)(iterable)) {
|
|
3435
3591
|
return [Kind.Async, iterable[Symbol.asyncIterator]()];
|
|
3436
3592
|
}
|
|
3437
3593
|
else {
|
|
@@ -3480,7 +3636,7 @@ const subject_1$6 = subject;
|
|
|
3480
3636
|
const zip_async_1$2 = zipAsync$1;
|
|
3481
3637
|
class ZipAsyncOperator extends subject_1$6.Subject {
|
|
3482
3638
|
zipAsync(...args) {
|
|
3483
|
-
return utils_1$N.applyChainingAsync(this.subject, zip_async_1$2.zipAsync, args);
|
|
3639
|
+
return (0, utils_1$N.applyChainingAsync)(this.subject, zip_async_1$2.zipAsync, args);
|
|
3484
3640
|
}
|
|
3485
3641
|
}
|
|
3486
3642
|
zipAsync$2.ZipAsyncOperator = ZipAsyncOperator;
|
|
@@ -3501,7 +3657,7 @@ const consume_1$6 = consume$1;
|
|
|
3501
3657
|
const subject_1$5 = subject;
|
|
3502
3658
|
class ConsumeOperator extends subject_1$5.Subject {
|
|
3503
3659
|
consume(...args) {
|
|
3504
|
-
return utils_1$M.applyBinding(this.subject, consume_1$6.consume, args);
|
|
3660
|
+
return (0, utils_1$M.applyBinding)(this.subject, consume_1$6.consume, args);
|
|
3505
3661
|
}
|
|
3506
3662
|
}
|
|
3507
3663
|
consume$2.ConsumeOperator = ConsumeOperator;
|
|
@@ -3528,7 +3684,7 @@ var __asyncValues$9 = (commonjsGlobal && commonjsGlobal.__asyncValues) || functi
|
|
|
3528
3684
|
};eachAsync$1.eachAsync = void 0;
|
|
3529
3685
|
const types_1$6 = es2018;
|
|
3530
3686
|
function eachAsync(iterable, fn) {
|
|
3531
|
-
if (types_1$6.isAsyncIterable(iterable)) {
|
|
3687
|
+
if ((0, types_1$6.isAsyncIterable)(iterable)) {
|
|
3532
3688
|
return eachAsyncIterable(iterable);
|
|
3533
3689
|
}
|
|
3534
3690
|
else {
|
|
@@ -3573,7 +3729,7 @@ const subject_1$4 = subject;
|
|
|
3573
3729
|
const each_async_1$2 = eachAsync$1;
|
|
3574
3730
|
class EachAsyncOperator extends subject_1$4.Subject {
|
|
3575
3731
|
eachAsync(...args) {
|
|
3576
|
-
return utils_1$L.applyBinding(this.subject, each_async_1$2.eachAsync, args);
|
|
3732
|
+
return (0, utils_1$L.applyBinding)(this.subject, each_async_1$2.eachAsync, args);
|
|
3577
3733
|
}
|
|
3578
3734
|
}
|
|
3579
3735
|
eachAsync$2.EachAsyncOperator = EachAsyncOperator;
|
|
@@ -3600,7 +3756,7 @@ var __asyncValues$8 = (commonjsGlobal && commonjsGlobal.__asyncValues) || functi
|
|
|
3600
3756
|
};everyAsync$1.everyAsync = void 0;
|
|
3601
3757
|
const types_1$5 = es2018;
|
|
3602
3758
|
function everyAsync(iterable, predicate) {
|
|
3603
|
-
if (types_1$5.isAsyncIterable(iterable)) {
|
|
3759
|
+
if ((0, types_1$5.isAsyncIterable)(iterable)) {
|
|
3604
3760
|
return everyAsyncIterable(iterable);
|
|
3605
3761
|
}
|
|
3606
3762
|
else {
|
|
@@ -3649,7 +3805,7 @@ const subject_1$3 = subject;
|
|
|
3649
3805
|
const every_async_1$2 = everyAsync$1;
|
|
3650
3806
|
class EveryAsyncOperator extends subject_1$3.Subject {
|
|
3651
3807
|
everyAsync(...args) {
|
|
3652
|
-
return utils_1$K.applyBinding(this.subject, every_async_1$2.everyAsync, args);
|
|
3808
|
+
return (0, utils_1$K.applyBinding)(this.subject, every_async_1$2.everyAsync, args);
|
|
3653
3809
|
}
|
|
3654
3810
|
}
|
|
3655
3811
|
everyAsync$2.EveryAsyncOperator = EveryAsyncOperator;
|
|
@@ -3676,7 +3832,7 @@ var __asyncValues$7 = (commonjsGlobal && commonjsGlobal.__asyncValues) || functi
|
|
|
3676
3832
|
};findAsync$1.findAsync = void 0;
|
|
3677
3833
|
const types_1$4 = es2018;
|
|
3678
3834
|
function findAsync(iterable, predicate) {
|
|
3679
|
-
if (types_1$4.isAsyncIterable(iterable)) {
|
|
3835
|
+
if ((0, types_1$4.isAsyncIterable)(iterable)) {
|
|
3680
3836
|
return findAsyncIterable(iterable);
|
|
3681
3837
|
}
|
|
3682
3838
|
else {
|
|
@@ -3725,7 +3881,7 @@ const subject_1$2 = subject;
|
|
|
3725
3881
|
const find_async_1$2 = findAsync$1;
|
|
3726
3882
|
class FindAsyncOperator extends subject_1$2.Subject {
|
|
3727
3883
|
findAsync(...args) {
|
|
3728
|
-
return utils_1$J.applyBinding(this.subject, find_async_1$2.findAsync, args);
|
|
3884
|
+
return (0, utils_1$J.applyBinding)(this.subject, find_async_1$2.findAsync, args);
|
|
3729
3885
|
}
|
|
3730
3886
|
}
|
|
3731
3887
|
findAsync$2.FindAsyncOperator = FindAsyncOperator;
|
|
@@ -3778,7 +3934,7 @@ const async_iterable_operator_base_1$6 = asyncIterableOperatorBase;
|
|
|
3778
3934
|
const first_async_1$1 = firstAsync$1;
|
|
3779
3935
|
class FirstAsyncOperator extends async_iterable_operator_base_1$6.AsyncIterableOperatorBase {
|
|
3780
3936
|
firstAsync(...args) {
|
|
3781
|
-
return utils_1$I.applyBinding(this.subject, first_async_1$1.firstAsync, args);
|
|
3937
|
+
return (0, utils_1$I.applyBinding)(this.subject, first_async_1$1.firstAsync, args);
|
|
3782
3938
|
}
|
|
3783
3939
|
}
|
|
3784
3940
|
firstAsync$2.FirstAsyncOperator = FirstAsyncOperator;
|
|
@@ -3832,7 +3988,7 @@ const async_iterable_operator_base_1$5 = asyncIterableOperatorBase;
|
|
|
3832
3988
|
const includes_async_1$1 = includesAsync$1;
|
|
3833
3989
|
class IncludesAsyncOperator extends async_iterable_operator_base_1$5.AsyncIterableOperatorBase {
|
|
3834
3990
|
includesAsync(...args) {
|
|
3835
|
-
return utils_1$H.applyBinding(this.subject, includes_async_1$1.includesAsync, args);
|
|
3991
|
+
return (0, utils_1$H.applyBinding)(this.subject, includes_async_1$1.includesAsync, args);
|
|
3836
3992
|
}
|
|
3837
3993
|
}
|
|
3838
3994
|
includesAsync$2.IncludesAsyncOperator = IncludesAsyncOperator;
|
|
@@ -3890,7 +4046,7 @@ const async_iterable_operator_base_1$4 = asyncIterableOperatorBase;
|
|
|
3890
4046
|
const match_async_1$1 = matchAsync$1;
|
|
3891
4047
|
class MatchAsyncOperator extends async_iterable_operator_base_1$4.AsyncIterableOperatorBase {
|
|
3892
4048
|
matchAsync(...args) {
|
|
3893
|
-
return utils_1$G.applyBinding(this.subject, match_async_1$1.matchAsync, args);
|
|
4049
|
+
return (0, utils_1$G.applyBinding)(this.subject, match_async_1$1.matchAsync, args);
|
|
3894
4050
|
}
|
|
3895
4051
|
}
|
|
3896
4052
|
matchAsync$2.MatchAsyncOperator = MatchAsyncOperator;
|
|
@@ -3917,7 +4073,7 @@ var __asyncValues$3 = (commonjsGlobal && commonjsGlobal.__asyncValues) || functi
|
|
|
3917
4073
|
};reduceAsync$1.reduceAsync = void 0;
|
|
3918
4074
|
const types_1$3 = es2018;
|
|
3919
4075
|
function reduceAsync(iterable, fn, initialValue) {
|
|
3920
|
-
if (types_1$3.isUndefined(initialValue)) {
|
|
4076
|
+
if ((0, types_1$3.isUndefined)(initialValue)) {
|
|
3921
4077
|
return reduceAsyncWithoutInitialValue(iterable, fn);
|
|
3922
4078
|
}
|
|
3923
4079
|
else {
|
|
@@ -3926,7 +4082,7 @@ function reduceAsync(iterable, fn, initialValue) {
|
|
|
3926
4082
|
}
|
|
3927
4083
|
reduceAsync$1.reduceAsync = reduceAsync;
|
|
3928
4084
|
function reduceAsyncWithInitialValue(iterable, fn, initialValue) {
|
|
3929
|
-
if (types_1$3.isAsyncIterable(iterable)) {
|
|
4085
|
+
if ((0, types_1$3.isAsyncIterable)(iterable)) {
|
|
3930
4086
|
return reduceAsyncIterable(iterable);
|
|
3931
4087
|
}
|
|
3932
4088
|
else {
|
|
@@ -3964,7 +4120,7 @@ function reduceAsyncWithInitialValue(iterable, fn, initialValue) {
|
|
|
3964
4120
|
}
|
|
3965
4121
|
}
|
|
3966
4122
|
function reduceAsyncWithoutInitialValue(iterable, fn) {
|
|
3967
|
-
if (types_1$3.isAsyncIterable(iterable)) {
|
|
4123
|
+
if ((0, types_1$3.isAsyncIterable)(iterable)) {
|
|
3968
4124
|
return reduceAsyncIterable(iterable);
|
|
3969
4125
|
}
|
|
3970
4126
|
else {
|
|
@@ -4036,7 +4192,7 @@ const subject_1$1 = subject;
|
|
|
4036
4192
|
const reduce_async_1$2 = reduceAsync$1;
|
|
4037
4193
|
class ReduceAsyncOperator extends subject_1$1.Subject {
|
|
4038
4194
|
reduceAsync(...args) {
|
|
4039
|
-
return utils_1$F.applyBinding(this.subject, reduce_async_1$2.reduceAsync, args);
|
|
4195
|
+
return (0, utils_1$F.applyBinding)(this.subject, reduce_async_1$2.reduceAsync, args);
|
|
4040
4196
|
}
|
|
4041
4197
|
}
|
|
4042
4198
|
reduceAsync$2.ReduceAsyncOperator = ReduceAsyncOperator;
|
|
@@ -4063,7 +4219,7 @@ var __asyncValues$2 = (commonjsGlobal && commonjsGlobal.__asyncValues) || functi
|
|
|
4063
4219
|
};someAsync$1.someAsync = void 0;
|
|
4064
4220
|
const types_1$2 = es2018;
|
|
4065
4221
|
function someAsync(iterable, predicate) {
|
|
4066
|
-
if (types_1$2.isAsyncIterable(iterable)) {
|
|
4222
|
+
if ((0, types_1$2.isAsyncIterable)(iterable)) {
|
|
4067
4223
|
return someAsyncIterable(iterable);
|
|
4068
4224
|
}
|
|
4069
4225
|
else {
|
|
@@ -4112,7 +4268,7 @@ const subject_1 = subject;
|
|
|
4112
4268
|
const some_async_1$2 = someAsync$1;
|
|
4113
4269
|
class SomeAsyncOperator extends subject_1.Subject {
|
|
4114
4270
|
someAsync(...args) {
|
|
4115
|
-
return utils_1$E.applyBinding(this.subject, some_async_1$2.someAsync, args);
|
|
4271
|
+
return (0, utils_1$E.applyBinding)(this.subject, some_async_1$2.someAsync, args);
|
|
4116
4272
|
}
|
|
4117
4273
|
}
|
|
4118
4274
|
someAsync$2.SomeAsyncOperator = SomeAsyncOperator;
|
|
@@ -4157,7 +4313,7 @@ const async_iterable_operator_base_1$3 = asyncIterableOperatorBase;
|
|
|
4157
4313
|
const last_async_1$1 = lastAsync$1;
|
|
4158
4314
|
class LastAsyncOperator extends async_iterable_operator_base_1$3.AsyncIterableOperatorBase {
|
|
4159
4315
|
lastAsync(...args) {
|
|
4160
|
-
return utils_1$D.applyBinding(this.subject, last_async_1$1.lastAsync, args);
|
|
4316
|
+
return (0, utils_1$D.applyBinding)(this.subject, last_async_1$1.lastAsync, args);
|
|
4161
4317
|
}
|
|
4162
4318
|
}
|
|
4163
4319
|
lastAsync$2.LastAsyncOperator = LastAsyncOperator;
|
|
@@ -4184,7 +4340,7 @@ var __asyncValues$1 = (commonjsGlobal && commonjsGlobal.__asyncValues) || functi
|
|
|
4184
4340
|
};toArrayAsync$1.toArrayAsync = void 0;
|
|
4185
4341
|
const consume_1$5 = consume$1;
|
|
4186
4342
|
function toArrayAsync(iterable) {
|
|
4187
|
-
return consume_1$5.consume(iterable, (iterable) => { var iterable_1, iterable_1_1; return __awaiter$1(this, void 0, void 0, function* () {
|
|
4343
|
+
return (0, consume_1$5.consume)(iterable, (iterable) => { var iterable_1, iterable_1_1; return __awaiter$1(this, void 0, void 0, function* () {
|
|
4188
4344
|
var e_1, _a;
|
|
4189
4345
|
const result = [];
|
|
4190
4346
|
try {
|
|
@@ -4211,7 +4367,7 @@ const async_iterable_operator_base_1$2 = asyncIterableOperatorBase;
|
|
|
4211
4367
|
const to_array_async_1$1 = toArrayAsync$1;
|
|
4212
4368
|
class ToArrayAsyncOperator extends async_iterable_operator_base_1$2.AsyncIterableOperatorBase {
|
|
4213
4369
|
toArrayAsync(...args) {
|
|
4214
|
-
return utils_1$C.applyBinding(this.subject, to_array_async_1$1.toArrayAsync, args);
|
|
4370
|
+
return (0, utils_1$C.applyBinding)(this.subject, to_array_async_1$1.toArrayAsync, args);
|
|
4215
4371
|
}
|
|
4216
4372
|
}
|
|
4217
4373
|
toArrayAsync$2.ToArrayAsyncOperator = ToArrayAsyncOperator;
|
|
@@ -4238,7 +4394,7 @@ var __asyncValues = (commonjsGlobal && commonjsGlobal.__asyncValues) || function
|
|
|
4238
4394
|
};toSetAsync$1.toSetAsync = void 0;
|
|
4239
4395
|
const consume_1$4 = consume$1;
|
|
4240
4396
|
function toSetAsync(iterable) {
|
|
4241
|
-
return consume_1$4.consume(iterable, (iterable) => { var iterable_1, iterable_1_1; return __awaiter(this, void 0, void 0, function* () {
|
|
4397
|
+
return (0, consume_1$4.consume)(iterable, (iterable) => { var iterable_1, iterable_1_1; return __awaiter(this, void 0, void 0, function* () {
|
|
4242
4398
|
var e_1, _a;
|
|
4243
4399
|
const result = new Set();
|
|
4244
4400
|
try {
|
|
@@ -4265,7 +4421,7 @@ const async_iterable_operator_base_1$1 = asyncIterableOperatorBase;
|
|
|
4265
4421
|
const to_set_async_1$1 = toSetAsync$1;
|
|
4266
4422
|
class ToSetAsyncOperator extends async_iterable_operator_base_1$1.AsyncIterableOperatorBase {
|
|
4267
4423
|
toSetAsync(...args) {
|
|
4268
|
-
return utils_1$B.applyBinding(this.subject, to_set_async_1$1.toSetAsync, args);
|
|
4424
|
+
return (0, utils_1$B.applyBinding)(this.subject, to_set_async_1$1.toSetAsync, args);
|
|
4269
4425
|
}
|
|
4270
4426
|
}
|
|
4271
4427
|
toSetAsync$2.ToSetAsyncOperator = ToSetAsyncOperator;
|
|
@@ -4311,7 +4467,7 @@ const to_set_async_1 = toSetAsync$2;
|
|
|
4311
4467
|
class AsyncIterableOperator extends async_iterable_operator_base_1.AsyncIterableOperatorBase {
|
|
4312
4468
|
}
|
|
4313
4469
|
asyncIterableOperator.AsyncIterableOperator = AsyncIterableOperator;
|
|
4314
|
-
mixin_1$1.mixinDecorators(AsyncIterableOperator, [
|
|
4470
|
+
(0, mixin_1$1.mixinDecorators)(AsyncIterableOperator, [
|
|
4315
4471
|
chunk_async_1.ChunkAsyncOperator,
|
|
4316
4472
|
chunk_by_async_1$1.ChunkByAsyncOperator,
|
|
4317
4473
|
concat_async_1$1.ConcatAsyncOperator,
|
|
@@ -4394,7 +4550,7 @@ const chunk_by_1$1 = chunkBy$1;
|
|
|
4394
4550
|
const iterable_operator_base_1$z = iterableOperatorBase;
|
|
4395
4551
|
class ChunkByOperator extends iterable_operator_base_1$z.IterableOperatorBase {
|
|
4396
4552
|
chunkBy(...args) {
|
|
4397
|
-
return utils_1$A.applyChaining(this.subject, chunk_by_1$1.chunkBy, args);
|
|
4553
|
+
return (0, utils_1$A.applyChaining)(this.subject, chunk_by_1$1.chunkBy, args);
|
|
4398
4554
|
}
|
|
4399
4555
|
}
|
|
4400
4556
|
chunkBy$2.ChunkByOperator = ChunkByOperator;
|
|
@@ -4407,9 +4563,9 @@ chunk$1.chunk = void 0;
|
|
|
4407
4563
|
const go_1$7 = es2018$2;
|
|
4408
4564
|
const errors_1$7 = es2018$1;
|
|
4409
4565
|
function chunk(iterable, size) {
|
|
4410
|
-
errors_1$7.assert(Number.isInteger(size), 'The parameter size must be an integer');
|
|
4411
|
-
errors_1$7.assert(size > 0, 'The parameter size must be greater than 0');
|
|
4412
|
-
return go_1$7.go(function* () {
|
|
4566
|
+
(0, errors_1$7.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
4567
|
+
(0, errors_1$7.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
4568
|
+
return (0, go_1$7.go)(function* () {
|
|
4413
4569
|
let buffer = [];
|
|
4414
4570
|
for (const element of iterable) {
|
|
4415
4571
|
buffer.push(element);
|
|
@@ -4430,7 +4586,7 @@ const chunk_1$1 = chunk$1;
|
|
|
4430
4586
|
const iterable_operator_base_1$y = iterableOperatorBase;
|
|
4431
4587
|
class ChunkOperator extends iterable_operator_base_1$y.IterableOperatorBase {
|
|
4432
4588
|
chunk(...args) {
|
|
4433
|
-
return utils_1$z.applyChaining(this.subject, chunk_1$1.chunk, args);
|
|
4589
|
+
return (0, utils_1$z.applyChaining)(this.subject, chunk_1$1.chunk, args);
|
|
4434
4590
|
}
|
|
4435
4591
|
}
|
|
4436
4592
|
chunk$2.ChunkOperator = ChunkOperator;
|
|
@@ -4442,7 +4598,7 @@ var concat$1 = {};
|
|
|
4442
4598
|
concat$1.concat = void 0;
|
|
4443
4599
|
const go_1$6 = es2018$2;
|
|
4444
4600
|
function concat(iterable, ...otherIterables) {
|
|
4445
|
-
return go_1$6.go(function* () {
|
|
4601
|
+
return (0, go_1$6.go)(function* () {
|
|
4446
4602
|
for (const iter of [iterable, ...otherIterables]) {
|
|
4447
4603
|
yield* iter;
|
|
4448
4604
|
}
|
|
@@ -4456,7 +4612,7 @@ const concat_1$1 = concat$1;
|
|
|
4456
4612
|
const iterable_operator_base_1$x = iterableOperatorBase;
|
|
4457
4613
|
class ConcatOperator extends iterable_operator_base_1$x.IterableOperatorBase {
|
|
4458
4614
|
concat(...args) {
|
|
4459
|
-
return utils_1$y.applyChaining(this.subject, concat_1$1.concat, args);
|
|
4615
|
+
return (0, utils_1$y.applyChaining)(this.subject, concat_1$1.concat, args);
|
|
4460
4616
|
}
|
|
4461
4617
|
}
|
|
4462
4618
|
concat$2.ConcatOperator = ConcatOperator;
|
|
@@ -4470,11 +4626,11 @@ const go_1$5 = es2018$2;
|
|
|
4470
4626
|
const utils_1$x = utils;
|
|
4471
4627
|
const errors_1$6 = es2018$1;
|
|
4472
4628
|
function dropRight(iterable, count) {
|
|
4473
|
-
errors_1$6.assert(Number.isInteger(count), 'The parameter count must be an integer');
|
|
4474
|
-
errors_1$6.assert(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
4629
|
+
(0, errors_1$6.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
4630
|
+
(0, errors_1$6.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
4475
4631
|
if (count === 0)
|
|
4476
|
-
return utils_1$x.copyIterable(iterable);
|
|
4477
|
-
return go_1$5.go(function* () {
|
|
4632
|
+
return (0, utils_1$x.copyIterable)(iterable);
|
|
4633
|
+
return (0, go_1$5.go)(function* () {
|
|
4478
4634
|
const arr = Array.from(iterable);
|
|
4479
4635
|
yield* arr.slice(0, -count);
|
|
4480
4636
|
});
|
|
@@ -4487,7 +4643,7 @@ const drop_right_1$1 = dropRight$1;
|
|
|
4487
4643
|
const iterable_operator_base_1$w = iterableOperatorBase;
|
|
4488
4644
|
class DropRightOperator extends iterable_operator_base_1$w.IterableOperatorBase {
|
|
4489
4645
|
dropRight(...args) {
|
|
4490
|
-
return utils_1$w.applyChaining(this.subject, drop_right_1$1.dropRight, args);
|
|
4646
|
+
return (0, utils_1$w.applyChaining)(this.subject, drop_right_1$1.dropRight, args);
|
|
4491
4647
|
}
|
|
4492
4648
|
}
|
|
4493
4649
|
dropRight$2.DropRightOperator = DropRightOperator;
|
|
@@ -4526,7 +4682,7 @@ const drop_until_1$1 = dropUntil$1;
|
|
|
4526
4682
|
const iterable_operator_base_1$v = iterableOperatorBase;
|
|
4527
4683
|
class DropUntilOperator extends iterable_operator_base_1$v.IterableOperatorBase {
|
|
4528
4684
|
dropUntil(...args) {
|
|
4529
|
-
return utils_1$v.applyChaining(this.subject, drop_until_1$1.dropUntil, args);
|
|
4685
|
+
return (0, utils_1$v.applyChaining)(this.subject, drop_until_1$1.dropUntil, args);
|
|
4530
4686
|
}
|
|
4531
4687
|
}
|
|
4532
4688
|
dropUntil$2.DropUntilOperator = DropUntilOperator;
|
|
@@ -4540,11 +4696,11 @@ const go_1$4 = es2018$2;
|
|
|
4540
4696
|
const utils_1$u = utils;
|
|
4541
4697
|
const errors_1$5 = es2018$1;
|
|
4542
4698
|
function drop(iterable, count) {
|
|
4543
|
-
errors_1$5.assert(Number.isInteger(count), 'The parameter count must be an integer');
|
|
4544
|
-
errors_1$5.assert(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
4699
|
+
(0, errors_1$5.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
4700
|
+
(0, errors_1$5.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
4545
4701
|
if (count === 0)
|
|
4546
|
-
return utils_1$u.copyIterable(iterable);
|
|
4547
|
-
return go_1$4.go(function* () {
|
|
4702
|
+
return (0, utils_1$u.copyIterable)(iterable);
|
|
4703
|
+
return (0, go_1$4.go)(function* () {
|
|
4548
4704
|
var _a;
|
|
4549
4705
|
const iterator = iterable[Symbol.iterator]();
|
|
4550
4706
|
let done;
|
|
@@ -4574,7 +4730,7 @@ const drop_1$1 = drop$1;
|
|
|
4574
4730
|
const iterable_operator_base_1$u = iterableOperatorBase;
|
|
4575
4731
|
class DropOperator extends iterable_operator_base_1$u.IterableOperatorBase {
|
|
4576
4732
|
drop(...args) {
|
|
4577
|
-
return utils_1$t.applyChaining(this.subject, drop_1$1.drop, args);
|
|
4733
|
+
return (0, utils_1$t.applyChaining)(this.subject, drop_1$1.drop, args);
|
|
4578
4734
|
}
|
|
4579
4735
|
}
|
|
4580
4736
|
drop$2.DropOperator = DropOperator;
|
|
@@ -4600,7 +4756,7 @@ const filter_1$1 = filter$1;
|
|
|
4600
4756
|
const iterable_operator_base_1$t = iterableOperatorBase;
|
|
4601
4757
|
class FilterOperator extends iterable_operator_base_1$t.IterableOperatorBase {
|
|
4602
4758
|
filter(...args) {
|
|
4603
|
-
return utils_1$s.applyChaining(this.subject, filter_1$1.filter, args);
|
|
4759
|
+
return (0, utils_1$s.applyChaining)(this.subject, filter_1$1.filter, args);
|
|
4604
4760
|
}
|
|
4605
4761
|
}
|
|
4606
4762
|
filter$2.FilterOperator = FilterOperator;
|
|
@@ -4626,7 +4782,7 @@ function flattenBy(iterable, predicate) {
|
|
|
4626
4782
|
}
|
|
4627
4783
|
flattenBy$1.flattenBy = flattenBy;
|
|
4628
4784
|
function isFiniteIterable(val) {
|
|
4629
|
-
return types_1$1.isIterable(val) && types_1$1.isntChar(val);
|
|
4785
|
+
return (0, types_1$1.isIterable)(val) && (0, types_1$1.isntChar)(val);
|
|
4630
4786
|
}
|
|
4631
4787
|
|
|
4632
4788
|
flattenBy$2.FlattenByOperator = void 0;
|
|
@@ -4635,7 +4791,7 @@ const flatten_by_1$2 = flattenBy$1;
|
|
|
4635
4791
|
const iterable_operator_base_1$s = iterableOperatorBase;
|
|
4636
4792
|
class FlattenByOperator extends iterable_operator_base_1$s.IterableOperatorBase {
|
|
4637
4793
|
flattenBy(...args) {
|
|
4638
|
-
return utils_1$r.applyChaining(this.subject, flatten_by_1$2.flattenBy, args);
|
|
4794
|
+
return (0, utils_1$r.applyChaining)(this.subject, flatten_by_1$2.flattenBy, args);
|
|
4639
4795
|
}
|
|
4640
4796
|
}
|
|
4641
4797
|
flattenBy$2.FlattenByOperator = FlattenByOperator;
|
|
@@ -4648,9 +4804,9 @@ flattenDeep$1.flattenDeep = void 0;
|
|
|
4648
4804
|
const flatten_by_1$1 = flattenBy$1;
|
|
4649
4805
|
const errors_1$4 = es2018$1;
|
|
4650
4806
|
function flattenDeep(iterable, depth = Infinity) {
|
|
4651
|
-
errors_1$4.assert(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
4652
|
-
errors_1$4.assert(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
4653
|
-
return flatten_by_1$1.flattenBy(iterable, (_, level) => level <= depth);
|
|
4807
|
+
(0, errors_1$4.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
4808
|
+
(0, errors_1$4.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
4809
|
+
return (0, flatten_by_1$1.flattenBy)(iterable, (_, level) => level <= depth);
|
|
4654
4810
|
}
|
|
4655
4811
|
flattenDeep$1.flattenDeep = flattenDeep;
|
|
4656
4812
|
|
|
@@ -4660,7 +4816,7 @@ const flatten_deep_1$2 = flattenDeep$1;
|
|
|
4660
4816
|
const iterable_operator_base_1$r = iterableOperatorBase;
|
|
4661
4817
|
class FlattenDeepOperator extends iterable_operator_base_1$r.IterableOperatorBase {
|
|
4662
4818
|
flattenDeep(...args) {
|
|
4663
|
-
return utils_1$q.applyChaining(this.subject, flatten_deep_1$2.flattenDeep, args);
|
|
4819
|
+
return (0, utils_1$q.applyChaining)(this.subject, flatten_deep_1$2.flattenDeep, args);
|
|
4664
4820
|
}
|
|
4665
4821
|
}
|
|
4666
4822
|
flattenDeep$2.FlattenDeepOperator = FlattenDeepOperator;
|
|
@@ -4672,7 +4828,7 @@ var flatten$1 = {};
|
|
|
4672
4828
|
flatten$1.flatten = void 0;
|
|
4673
4829
|
const flatten_deep_1$1 = flattenDeep$1;
|
|
4674
4830
|
function flatten(iterable) {
|
|
4675
|
-
return flatten_deep_1$1.flattenDeep(iterable, 1);
|
|
4831
|
+
return (0, flatten_deep_1$1.flattenDeep)(iterable, 1);
|
|
4676
4832
|
}
|
|
4677
4833
|
flatten$1.flatten = flatten;
|
|
4678
4834
|
|
|
@@ -4682,7 +4838,7 @@ const flatten_1$1 = flatten$1;
|
|
|
4682
4838
|
const iterable_operator_base_1$q = iterableOperatorBase;
|
|
4683
4839
|
class FlattenOperator extends iterable_operator_base_1$q.IterableOperatorBase {
|
|
4684
4840
|
flatten(...args) {
|
|
4685
|
-
return utils_1$p.applyChaining(this.subject, flatten_1$1.flatten, args);
|
|
4841
|
+
return (0, utils_1$p.applyChaining)(this.subject, flatten_1$1.flatten, args);
|
|
4686
4842
|
}
|
|
4687
4843
|
}
|
|
4688
4844
|
flatten$2.FlattenOperator = FlattenOperator;
|
|
@@ -4707,7 +4863,7 @@ const map_1$1 = map$1;
|
|
|
4707
4863
|
const iterable_operator_base_1$p = iterableOperatorBase;
|
|
4708
4864
|
class MapOperator extends iterable_operator_base_1$p.IterableOperatorBase {
|
|
4709
4865
|
map(...args) {
|
|
4710
|
-
return utils_1$o.applyChaining(this.subject, map_1$1.map, args);
|
|
4866
|
+
return (0, utils_1$o.applyChaining)(this.subject, map_1$1.map, args);
|
|
4711
4867
|
}
|
|
4712
4868
|
}
|
|
4713
4869
|
map$2.MapOperator = MapOperator;
|
|
@@ -4720,11 +4876,11 @@ repeat$1.repeat = void 0;
|
|
|
4720
4876
|
const go_1$3 = es2018$2;
|
|
4721
4877
|
const errors_1$3 = es2018$1;
|
|
4722
4878
|
function repeat(iterable, times) {
|
|
4723
|
-
errors_1$3.assert(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
4724
|
-
errors_1$3.assert(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
4879
|
+
(0, errors_1$3.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
4880
|
+
(0, errors_1$3.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
4725
4881
|
if (times === Infinity)
|
|
4726
4882
|
warnInfiniteLoop();
|
|
4727
|
-
return go_1$3.go(function* () {
|
|
4883
|
+
return (0, go_1$3.go)(function* () {
|
|
4728
4884
|
const cache = [];
|
|
4729
4885
|
if (times > 0) {
|
|
4730
4886
|
for (const element of iterable) {
|
|
@@ -4755,7 +4911,7 @@ const repeat_1$1 = repeat$1;
|
|
|
4755
4911
|
const iterable_operator_base_1$o = iterableOperatorBase;
|
|
4756
4912
|
class RepeatOperator extends iterable_operator_base_1$o.IterableOperatorBase {
|
|
4757
4913
|
repeat(...args) {
|
|
4758
|
-
return utils_1$n.applyChaining(this.subject, repeat_1$1.repeat, args);
|
|
4914
|
+
return (0, utils_1$n.applyChaining)(this.subject, repeat_1$1.repeat, args);
|
|
4759
4915
|
}
|
|
4760
4916
|
}
|
|
4761
4917
|
repeat$2.RepeatOperator = RepeatOperator;
|
|
@@ -4768,11 +4924,11 @@ slice$1.slice = void 0;
|
|
|
4768
4924
|
const go_1$2 = es2018$2;
|
|
4769
4925
|
const errors_1$2 = es2018$1;
|
|
4770
4926
|
function slice(iterable, start, end = Infinity) {
|
|
4771
|
-
errors_1$2.assert(Number.isInteger(start), 'The parameter start must be an integer');
|
|
4772
|
-
errors_1$2.assert(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
4773
|
-
errors_1$2.assert(Number.isInteger(end), 'The parameter end must be an integer');
|
|
4774
|
-
errors_1$2.assert(end >= start, 'The parameter end must be greater than or equal to start');
|
|
4775
|
-
return go_1$2.go(function* () {
|
|
4927
|
+
(0, errors_1$2.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
4928
|
+
(0, errors_1$2.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
4929
|
+
(0, errors_1$2.assert)(Number.isInteger(end), 'The parameter end must be an integer');
|
|
4930
|
+
(0, errors_1$2.assert)(end >= start, 'The parameter end must be greater than or equal to start');
|
|
4931
|
+
return (0, go_1$2.go)(function* () {
|
|
4776
4932
|
let index = 0;
|
|
4777
4933
|
for (const element of iterable) {
|
|
4778
4934
|
if (index >= end)
|
|
@@ -4791,7 +4947,7 @@ const slice_1$1 = slice$1;
|
|
|
4791
4947
|
const iterable_operator_base_1$n = iterableOperatorBase;
|
|
4792
4948
|
class SliceOperator extends iterable_operator_base_1$n.IterableOperatorBase {
|
|
4793
4949
|
slice(...args) {
|
|
4794
|
-
return utils_1$m.applyChaining(this.subject, slice_1$1.slice, args);
|
|
4950
|
+
return (0, utils_1$m.applyChaining)(this.subject, slice_1$1.slice, args);
|
|
4795
4951
|
}
|
|
4796
4952
|
}
|
|
4797
4953
|
slice$2.SliceOperator = SliceOperator;
|
|
@@ -4824,7 +4980,7 @@ const split_by_1$1 = splitBy$1;
|
|
|
4824
4980
|
const iterable_operator_base_1$m = iterableOperatorBase;
|
|
4825
4981
|
class SplitByOperator extends iterable_operator_base_1$m.IterableOperatorBase {
|
|
4826
4982
|
splitBy(...args) {
|
|
4827
|
-
return utils_1$l.applyChaining(this.subject, split_by_1$1.splitBy, args);
|
|
4983
|
+
return (0, utils_1$l.applyChaining)(this.subject, split_by_1$1.splitBy, args);
|
|
4828
4984
|
}
|
|
4829
4985
|
}
|
|
4830
4986
|
splitBy$2.SplitByOperator = SplitByOperator;
|
|
@@ -4855,7 +5011,7 @@ const split_1$1 = split$1;
|
|
|
4855
5011
|
const iterable_operator_base_1$l = iterableOperatorBase;
|
|
4856
5012
|
class SplitOperator extends iterable_operator_base_1$l.IterableOperatorBase {
|
|
4857
5013
|
split(...args) {
|
|
4858
|
-
return utils_1$k.applyChaining(this.subject, split_1$1.split, args);
|
|
5014
|
+
return (0, utils_1$k.applyChaining)(this.subject, split_1$1.split, args);
|
|
4859
5015
|
}
|
|
4860
5016
|
}
|
|
4861
5017
|
split$2.SplitOperator = SplitOperator;
|
|
@@ -4868,9 +5024,9 @@ takeRight$1.takeRight = void 0;
|
|
|
4868
5024
|
const go_1$1 = es2018$2;
|
|
4869
5025
|
const errors_1$1 = es2018$1;
|
|
4870
5026
|
function takeRight(iterable, count) {
|
|
4871
|
-
errors_1$1.assert(Number.isInteger(count), 'The parameter count must be an integer');
|
|
4872
|
-
errors_1$1.assert(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
4873
|
-
return go_1$1.go(function* () {
|
|
5027
|
+
(0, errors_1$1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
5028
|
+
(0, errors_1$1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
5029
|
+
return (0, go_1$1.go)(function* () {
|
|
4874
5030
|
var _a;
|
|
4875
5031
|
const iterator = iterable[Symbol.iterator]();
|
|
4876
5032
|
let done;
|
|
@@ -4898,7 +5054,7 @@ const take_right_1$1 = takeRight$1;
|
|
|
4898
5054
|
const iterable_operator_base_1$k = iterableOperatorBase;
|
|
4899
5055
|
class TakeRightOperator extends iterable_operator_base_1$k.IterableOperatorBase {
|
|
4900
5056
|
takeRight(...args) {
|
|
4901
|
-
return utils_1$j.applyChaining(this.subject, take_right_1$1.takeRight, args);
|
|
5057
|
+
return (0, utils_1$j.applyChaining)(this.subject, take_right_1$1.takeRight, args);
|
|
4902
5058
|
}
|
|
4903
5059
|
}
|
|
4904
5060
|
takeRight$2.TakeRightOperator = TakeRightOperator;
|
|
@@ -4925,7 +5081,7 @@ const take_until_1$1 = takeUntil$1;
|
|
|
4925
5081
|
const iterable_operator_base_1$j = iterableOperatorBase;
|
|
4926
5082
|
class TakeUntilOperator extends iterable_operator_base_1$j.IterableOperatorBase {
|
|
4927
5083
|
takeUntil(...args) {
|
|
4928
|
-
return utils_1$i.applyChaining(this.subject, take_until_1$1.takeUntil, args);
|
|
5084
|
+
return (0, utils_1$i.applyChaining)(this.subject, take_until_1$1.takeUntil, args);
|
|
4929
5085
|
}
|
|
4930
5086
|
}
|
|
4931
5087
|
takeUntil$2.TakeUntilOperator = TakeUntilOperator;
|
|
@@ -4938,9 +5094,9 @@ take$1.take = void 0;
|
|
|
4938
5094
|
const go_1 = es2018$2;
|
|
4939
5095
|
const errors_1 = es2018$1;
|
|
4940
5096
|
function take(iterable, count) {
|
|
4941
|
-
errors_1.assert(Number.isInteger(count), 'The parameter count must be an integer');
|
|
4942
|
-
errors_1.assert(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
4943
|
-
return go_1.go(function* () {
|
|
5097
|
+
(0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
5098
|
+
(0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
5099
|
+
return (0, go_1.go)(function* () {
|
|
4944
5100
|
if (count === 0)
|
|
4945
5101
|
return;
|
|
4946
5102
|
for (const element of iterable) {
|
|
@@ -4959,7 +5115,7 @@ const take_1$1 = take$1;
|
|
|
4959
5115
|
const iterable_operator_base_1$i = iterableOperatorBase;
|
|
4960
5116
|
class TakeOperator extends iterable_operator_base_1$i.IterableOperatorBase {
|
|
4961
5117
|
take(...args) {
|
|
4962
|
-
return utils_1$h.applyChaining(this.subject, take_1$1.take, args);
|
|
5118
|
+
return (0, utils_1$h.applyChaining)(this.subject, take_1$1.take, args);
|
|
4963
5119
|
}
|
|
4964
5120
|
}
|
|
4965
5121
|
take$2.TakeOperator = TakeOperator;
|
|
@@ -4985,7 +5141,7 @@ const tap_1$1 = tap$1;
|
|
|
4985
5141
|
const iterable_operator_base_1$h = iterableOperatorBase;
|
|
4986
5142
|
class TapOperator extends iterable_operator_base_1$h.IterableOperatorBase {
|
|
4987
5143
|
tap(...args) {
|
|
4988
|
-
return utils_1$g.applyChaining(this.subject, tap_1$1.tap, args);
|
|
5144
|
+
return (0, utils_1$g.applyChaining)(this.subject, tap_1$1.tap, args);
|
|
4989
5145
|
}
|
|
4990
5146
|
}
|
|
4991
5147
|
tap$2.TapOperator = TapOperator;
|
|
@@ -5021,7 +5177,7 @@ const iterable_operator_base_1$g = iterableOperatorBase;
|
|
|
5021
5177
|
const to_async_iterable_1$1 = toAsyncIterable$1;
|
|
5022
5178
|
class ToAsyncIterableOperator extends iterable_operator_base_1$g.IterableOperatorBase {
|
|
5023
5179
|
toAsyncIterable(...args) {
|
|
5024
|
-
return utils_1$f.applyChainingAsync(this.subject, to_async_iterable_1$1.toAsyncIterable, args);
|
|
5180
|
+
return (0, utils_1$f.applyChainingAsync)(this.subject, to_async_iterable_1$1.toAsyncIterable, args);
|
|
5025
5181
|
}
|
|
5026
5182
|
}
|
|
5027
5183
|
toAsyncIterable$2.ToAsyncIterableOperator = ToAsyncIterableOperator;
|
|
@@ -5042,7 +5198,7 @@ const transform_1$1 = transform$1;
|
|
|
5042
5198
|
const iterable_operator_base_1$f = iterableOperatorBase;
|
|
5043
5199
|
class TransformOperator extends iterable_operator_base_1$f.IterableOperatorBase {
|
|
5044
5200
|
transform(...args) {
|
|
5045
|
-
return utils_1$e.applyChaining(this.subject, transform_1$1.transform, args);
|
|
5201
|
+
return (0, utils_1$e.applyChaining)(this.subject, transform_1$1.transform, args);
|
|
5046
5202
|
}
|
|
5047
5203
|
}
|
|
5048
5204
|
transform$2.TransformOperator = TransformOperator;
|
|
@@ -5072,7 +5228,7 @@ const uniq_by_1$1 = uniqBy$1;
|
|
|
5072
5228
|
const iterable_operator_base_1$e = iterableOperatorBase;
|
|
5073
5229
|
class UniqByOperator extends iterable_operator_base_1$e.IterableOperatorBase {
|
|
5074
5230
|
uniqBy(...args) {
|
|
5075
|
-
return utils_1$d.applyChaining(this.subject, uniq_by_1$1.uniqBy, args);
|
|
5231
|
+
return (0, utils_1$d.applyChaining)(this.subject, uniq_by_1$1.uniqBy, args);
|
|
5076
5232
|
}
|
|
5077
5233
|
}
|
|
5078
5234
|
uniqBy$2.UniqByOperator = UniqByOperator;
|
|
@@ -5099,7 +5255,7 @@ const uniq_1$1 = uniq$1;
|
|
|
5099
5255
|
const iterable_operator_base_1$d = iterableOperatorBase;
|
|
5100
5256
|
class UniqOperator extends iterable_operator_base_1$d.IterableOperatorBase {
|
|
5101
5257
|
uniq(...args) {
|
|
5102
|
-
return utils_1$c.applyChaining(this.subject, uniq_1$1.uniq, args);
|
|
5258
|
+
return (0, utils_1$c.applyChaining)(this.subject, uniq_1$1.uniq, args);
|
|
5103
5259
|
}
|
|
5104
5260
|
}
|
|
5105
5261
|
uniq$2.UniqOperator = UniqOperator;
|
|
@@ -5143,7 +5299,7 @@ const zip_1$1 = zip$1;
|
|
|
5143
5299
|
const iterable_operator_base_1$c = iterableOperatorBase;
|
|
5144
5300
|
class ZipOperator extends iterable_operator_base_1$c.IterableOperatorBase {
|
|
5145
5301
|
zip(...args) {
|
|
5146
|
-
return utils_1$b.applyChaining(this.subject, zip_1$1.zip, args);
|
|
5302
|
+
return (0, utils_1$b.applyChaining)(this.subject, zip_1$1.zip, args);
|
|
5147
5303
|
}
|
|
5148
5304
|
}
|
|
5149
5305
|
zip$2.ZipOperator = ZipOperator;
|
|
@@ -5168,7 +5324,7 @@ const each_1$1 = each$1;
|
|
|
5168
5324
|
const iterable_operator_base_1$b = iterableOperatorBase;
|
|
5169
5325
|
class EachOperator extends iterable_operator_base_1$b.IterableOperatorBase {
|
|
5170
5326
|
each(...args) {
|
|
5171
|
-
return utils_1$a.applyBinding(this.subject, each_1$1.each, args);
|
|
5327
|
+
return (0, utils_1$a.applyBinding)(this.subject, each_1$1.each, args);
|
|
5172
5328
|
}
|
|
5173
5329
|
}
|
|
5174
5330
|
each$2.EachOperator = EachOperator;
|
|
@@ -5195,7 +5351,7 @@ const every_1$1 = every$1;
|
|
|
5195
5351
|
const iterable_operator_base_1$a = iterableOperatorBase;
|
|
5196
5352
|
class EveryOperator extends iterable_operator_base_1$a.IterableOperatorBase {
|
|
5197
5353
|
every(...args) {
|
|
5198
|
-
return utils_1$9.applyBinding(this.subject, every_1$1.every, args);
|
|
5354
|
+
return (0, utils_1$9.applyBinding)(this.subject, every_1$1.every, args);
|
|
5199
5355
|
}
|
|
5200
5356
|
}
|
|
5201
5357
|
every$2.EveryOperator = EveryOperator;
|
|
@@ -5222,7 +5378,7 @@ const find_1$1 = find$1;
|
|
|
5222
5378
|
const iterable_operator_base_1$9 = iterableOperatorBase;
|
|
5223
5379
|
class FindOperator extends iterable_operator_base_1$9.IterableOperatorBase {
|
|
5224
5380
|
find(...args) {
|
|
5225
|
-
return utils_1$8.applyBinding(this.subject, find_1$1.find, args);
|
|
5381
|
+
return (0, utils_1$8.applyBinding)(this.subject, find_1$1.find, args);
|
|
5226
5382
|
}
|
|
5227
5383
|
}
|
|
5228
5384
|
find$2.FindOperator = FindOperator;
|
|
@@ -5246,7 +5402,7 @@ const first_1$1 = first$1;
|
|
|
5246
5402
|
const iterable_operator_base_1$8 = iterableOperatorBase;
|
|
5247
5403
|
class FirstOperator extends iterable_operator_base_1$8.IterableOperatorBase {
|
|
5248
5404
|
first(...args) {
|
|
5249
|
-
return utils_1$7.applyBinding(this.subject, first_1$1.first, args);
|
|
5405
|
+
return (0, utils_1$7.applyBinding)(this.subject, first_1$1.first, args);
|
|
5250
5406
|
}
|
|
5251
5407
|
}
|
|
5252
5408
|
first$2.FirstOperator = FirstOperator;
|
|
@@ -5271,7 +5427,7 @@ const includes_1$1 = includes$1;
|
|
|
5271
5427
|
const iterable_operator_base_1$7 = iterableOperatorBase;
|
|
5272
5428
|
class IncludesOperator extends iterable_operator_base_1$7.IterableOperatorBase {
|
|
5273
5429
|
includes(...args) {
|
|
5274
|
-
return utils_1$6.applyBinding(this.subject, includes_1$1.includes, args);
|
|
5430
|
+
return (0, utils_1$6.applyBinding)(this.subject, includes_1$1.includes, args);
|
|
5275
5431
|
}
|
|
5276
5432
|
}
|
|
5277
5433
|
includes$2.IncludesOperator = IncludesOperator;
|
|
@@ -5300,7 +5456,7 @@ const match_1$1 = match$1;
|
|
|
5300
5456
|
const iterable_operator_base_1$6 = iterableOperatorBase;
|
|
5301
5457
|
class MatchOperator extends iterable_operator_base_1$6.IterableOperatorBase {
|
|
5302
5458
|
match(...args) {
|
|
5303
|
-
return utils_1$5.applyBinding(this.subject, match_1$1.match, args);
|
|
5459
|
+
return (0, utils_1$5.applyBinding)(this.subject, match_1$1.match, args);
|
|
5304
5460
|
}
|
|
5305
5461
|
}
|
|
5306
5462
|
match$2.MatchOperator = MatchOperator;
|
|
@@ -5312,7 +5468,7 @@ var reduce$1 = {};
|
|
|
5312
5468
|
reduce$1.reduce = void 0;
|
|
5313
5469
|
const types_1 = es2018;
|
|
5314
5470
|
function reduce(iterable, fn, initialValue) {
|
|
5315
|
-
if (types_1.isUndefined(initialValue)) {
|
|
5471
|
+
if ((0, types_1.isUndefined)(initialValue)) {
|
|
5316
5472
|
return reduceWithoutInitialValue(iterable, fn);
|
|
5317
5473
|
}
|
|
5318
5474
|
else {
|
|
@@ -5360,7 +5516,7 @@ const reduce_1$1 = reduce$1;
|
|
|
5360
5516
|
const iterable_operator_base_1$5 = iterableOperatorBase;
|
|
5361
5517
|
class ReduceOperator extends iterable_operator_base_1$5.IterableOperatorBase {
|
|
5362
5518
|
reduce(...args) {
|
|
5363
|
-
return utils_1$4.applyBinding(this.subject, reduce_1$1.reduce, args);
|
|
5519
|
+
return (0, utils_1$4.applyBinding)(this.subject, reduce_1$1.reduce, args);
|
|
5364
5520
|
}
|
|
5365
5521
|
}
|
|
5366
5522
|
reduce$2.ReduceOperator = ReduceOperator;
|
|
@@ -5387,7 +5543,7 @@ const some_1$1 = some$1;
|
|
|
5387
5543
|
const iterable_operator_base_1$4 = iterableOperatorBase;
|
|
5388
5544
|
class SomeOperator extends iterable_operator_base_1$4.IterableOperatorBase {
|
|
5389
5545
|
some(...args) {
|
|
5390
|
-
return utils_1$3.applyBinding(this.subject, some_1$1.some, args);
|
|
5546
|
+
return (0, utils_1$3.applyBinding)(this.subject, some_1$1.some, args);
|
|
5391
5547
|
}
|
|
5392
5548
|
}
|
|
5393
5549
|
some$2.SomeOperator = SomeOperator;
|
|
@@ -5422,7 +5578,7 @@ const last_1$1 = last$1;
|
|
|
5422
5578
|
const iterable_operator_base_1$3 = iterableOperatorBase;
|
|
5423
5579
|
class LastOperator extends iterable_operator_base_1$3.IterableOperatorBase {
|
|
5424
5580
|
last(...args) {
|
|
5425
|
-
return utils_1$2.applyBinding(this.subject, last_1$1.last, args);
|
|
5581
|
+
return (0, utils_1$2.applyBinding)(this.subject, last_1$1.last, args);
|
|
5426
5582
|
}
|
|
5427
5583
|
}
|
|
5428
5584
|
last$2.LastOperator = LastOperator;
|
|
@@ -5434,7 +5590,7 @@ var toArray$1 = {};
|
|
|
5434
5590
|
toArray$1.toArray = void 0;
|
|
5435
5591
|
const consume_1$2 = consume$1;
|
|
5436
5592
|
function toArray(iterable) {
|
|
5437
|
-
return consume_1$2.consume(iterable, iterable => Array.from(iterable));
|
|
5593
|
+
return (0, consume_1$2.consume)(iterable, iterable => Array.from(iterable));
|
|
5438
5594
|
}
|
|
5439
5595
|
toArray$1.toArray = toArray;
|
|
5440
5596
|
|
|
@@ -5444,7 +5600,7 @@ const to_array_1$1 = toArray$1;
|
|
|
5444
5600
|
const iterable_operator_base_1$2 = iterableOperatorBase;
|
|
5445
5601
|
class ToArrayOperator extends iterable_operator_base_1$2.IterableOperatorBase {
|
|
5446
5602
|
toArray(...args) {
|
|
5447
|
-
return utils_1$1.applyBinding(this.subject, to_array_1$1.toArray, args);
|
|
5603
|
+
return (0, utils_1$1.applyBinding)(this.subject, to_array_1$1.toArray, args);
|
|
5448
5604
|
}
|
|
5449
5605
|
}
|
|
5450
5606
|
toArray$2.ToArrayOperator = ToArrayOperator;
|
|
@@ -5456,7 +5612,7 @@ var toSet$1 = {};
|
|
|
5456
5612
|
toSet$1.toSet = void 0;
|
|
5457
5613
|
const consume_1$1 = consume$1;
|
|
5458
5614
|
function toSet(iterable) {
|
|
5459
|
-
return consume_1$1.consume(iterable, iterable => new Set(iterable));
|
|
5615
|
+
return (0, consume_1$1.consume)(iterable, iterable => new Set(iterable));
|
|
5460
5616
|
}
|
|
5461
5617
|
toSet$1.toSet = toSet;
|
|
5462
5618
|
|
|
@@ -5466,7 +5622,7 @@ const to_set_1$1 = toSet$1;
|
|
|
5466
5622
|
const iterable_operator_base_1$1 = iterableOperatorBase;
|
|
5467
5623
|
class ToSetOperator extends iterable_operator_base_1$1.IterableOperatorBase {
|
|
5468
5624
|
toSet(...args) {
|
|
5469
|
-
return utils_1.applyBinding(this.subject, to_set_1$1.toSet, args);
|
|
5625
|
+
return (0, utils_1.applyBinding)(this.subject, to_set_1$1.toSet, args);
|
|
5470
5626
|
}
|
|
5471
5627
|
}
|
|
5472
5628
|
toSet$2.ToSetOperator = ToSetOperator;
|
|
@@ -5530,7 +5686,7 @@ const some_async_1 = someAsync$2;
|
|
|
5530
5686
|
class IterableOperator extends iterable_operator_base_1.IterableOperatorBase {
|
|
5531
5687
|
}
|
|
5532
5688
|
iterableOperator.IterableOperator = IterableOperator;
|
|
5533
|
-
mixin_1.mixinDecorators(IterableOperator, [
|
|
5689
|
+
(0, mixin_1.mixinDecorators)(IterableOperator, [
|
|
5534
5690
|
chunk_1.ChunkOperator,
|
|
5535
5691
|
chunk_by_1.ChunkByOperator,
|
|
5536
5692
|
concat_1.ConcatOperator,
|
|
@@ -5624,16 +5780,18 @@ function observeStateChanges() {
|
|
|
5624
5780
|
}
|
|
5625
5781
|
function observePushState() {
|
|
5626
5782
|
return new Observable(observer => {
|
|
5627
|
-
if (!pushStateHookRegistered)
|
|
5783
|
+
if (!pushStateHookRegistered) {
|
|
5628
5784
|
registerPushStateHook();
|
|
5785
|
+
}
|
|
5629
5786
|
pushStateHooks.add(observer);
|
|
5630
5787
|
return () => pushStateHooks.delete(observer);
|
|
5631
5788
|
});
|
|
5632
5789
|
}
|
|
5633
5790
|
function observeReplaceState() {
|
|
5634
5791
|
return new Observable(observer => {
|
|
5635
|
-
if (!replaceStateHookRegistered)
|
|
5792
|
+
if (!replaceStateHookRegistered) {
|
|
5636
5793
|
registerReplaceStateHook();
|
|
5794
|
+
}
|
|
5637
5795
|
replaceStateHooks.add(observer);
|
|
5638
5796
|
return () => replaceStateHooks.delete(observer);
|
|
5639
5797
|
});
|