extra-game-loop 0.1.4 → 0.3.0

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.
@@ -6,7 +6,7 @@
6
6
 
7
7
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
8
8
 
9
- var es2018$f = {};
9
+ var es2018$h = {};
10
10
 
11
11
  var box = {};
12
12
 
@@ -29,227 +29,227 @@
29
29
 
30
30
  var cons = {};
31
31
 
32
- var es2018$e = {};
32
+ var es2018$g = {};
33
33
 
34
- var array$2 = {};
34
+ var array$5 = {};
35
35
 
36
- array$2.isntEmptyArray = array$2.isEmptyArray = array$2.isntArray = array$2.isArray = void 0;
37
- function isArray$5(val) {
36
+ array$5.isntEmptyArray = array$5.isEmptyArray = array$5.isntArray = array$5.isArray = void 0;
37
+ function isArray$7(val) {
38
38
  return Array.isArray(val);
39
39
  }
40
- array$2.isArray = isArray$5;
41
- function isntArray$2(val) {
42
- return !isArray$5(val);
40
+ array$5.isArray = isArray$7;
41
+ function isntArray$4(val) {
42
+ return !isArray$7(val);
43
43
  }
44
- array$2.isntArray = isntArray$2;
45
- function isEmptyArray$2(val) {
44
+ array$5.isntArray = isntArray$4;
45
+ function isEmptyArray$4(val) {
46
46
  return val.length === 0;
47
47
  }
48
- array$2.isEmptyArray = isEmptyArray$2;
49
- function isntEmptyArray$2(val) {
48
+ array$5.isEmptyArray = isEmptyArray$4;
49
+ function isntEmptyArray$4(val) {
50
50
  return val.length !== 0;
51
51
  }
52
- array$2.isntEmptyArray = isntEmptyArray$2;
52
+ array$5.isntEmptyArray = isntEmptyArray$4;
53
53
 
54
- var asyncIterable$2 = {};
54
+ var asyncIterable$4 = {};
55
55
 
56
- var _null$2 = {};
56
+ var _null$4 = {};
57
57
 
58
- _null$2.isntNull = _null$2.isNull = void 0;
59
- function isNull$2(val) {
58
+ _null$4.isntNull = _null$4.isNull = void 0;
59
+ function isNull$4(val) {
60
60
  return val === null;
61
61
  }
62
- _null$2.isNull = isNull$2;
63
- function isntNull$2(val) {
64
- return !isNull$2(val);
62
+ _null$4.isNull = isNull$4;
63
+ function isntNull$4(val) {
64
+ return !isNull$4(val);
65
65
  }
66
- _null$2.isntNull = isntNull$2;
66
+ _null$4.isntNull = isntNull$4;
67
67
 
68
- var _undefined$2 = {};
68
+ var _undefined$4 = {};
69
69
 
70
- _undefined$2.isntUndefined = _undefined$2.isUndefined = void 0;
71
- function isUndefined$2(val) {
70
+ _undefined$4.isntUndefined = _undefined$4.isUndefined = void 0;
71
+ function isUndefined$4(val) {
72
72
  return val === undefined;
73
73
  }
74
- _undefined$2.isUndefined = isUndefined$2;
75
- function isntUndefined$2(val) {
76
- return !isUndefined$2(val);
74
+ _undefined$4.isUndefined = isUndefined$4;
75
+ function isntUndefined$4(val) {
76
+ return !isUndefined$4(val);
77
77
  }
78
- _undefined$2.isntUndefined = isntUndefined$2;
78
+ _undefined$4.isntUndefined = isntUndefined$4;
79
79
 
80
- var _function$2 = {};
80
+ var _function$4 = {};
81
81
 
82
- _function$2.isntFunction = _function$2.isFunction = void 0;
83
- function isFunction$4(val) {
82
+ _function$4.isntFunction = _function$4.isFunction = void 0;
83
+ function isFunction$6(val) {
84
84
  return typeof val === 'function';
85
85
  }
86
- _function$2.isFunction = isFunction$4;
87
- function isntFunction$2(val) {
88
- return !isFunction$4(val);
86
+ _function$4.isFunction = isFunction$6;
87
+ function isntFunction$4(val) {
88
+ return !isFunction$6(val);
89
89
  }
90
- _function$2.isntFunction = isntFunction$2;
90
+ _function$4.isntFunction = isntFunction$4;
91
91
 
92
- asyncIterable$2.isntAsyncIterable = asyncIterable$2.isAsyncIterable = void 0;
93
- const null_1$8 = _null$2;
94
- const undefined_1$5 = _undefined$2;
95
- const function_1$8 = _function$2;
96
- function isAsyncIterable$4(val) {
97
- return (0, null_1$8.isntNull)(val)
98
- && (0, undefined_1$5.isntUndefined)(val)
99
- && (0, function_1$8.isFunction)(val[Symbol.asyncIterator]);
92
+ asyncIterable$4.isntAsyncIterable = asyncIterable$4.isAsyncIterable = void 0;
93
+ const null_1$e = _null$4;
94
+ const undefined_1$9 = _undefined$4;
95
+ const function_1$e = _function$4;
96
+ function isAsyncIterable$6(val) {
97
+ return (0, null_1$e.isntNull)(val)
98
+ && (0, undefined_1$9.isntUndefined)(val)
99
+ && (0, function_1$e.isFunction)(val[Symbol.asyncIterator]);
100
100
  }
101
- asyncIterable$2.isAsyncIterable = isAsyncIterable$4;
102
- function isntAsyncIterable$2(val) {
103
- return !isAsyncIterable$4(val);
101
+ asyncIterable$4.isAsyncIterable = isAsyncIterable$6;
102
+ function isntAsyncIterable$4(val) {
103
+ return !isAsyncIterable$6(val);
104
104
  }
105
- asyncIterable$2.isntAsyncIterable = isntAsyncIterable$2;
105
+ asyncIterable$4.isntAsyncIterable = isntAsyncIterable$4;
106
106
 
107
- var bigint$2 = {};
107
+ var bigint$4 = {};
108
108
 
109
- bigint$2.isntBigInt = bigint$2.isBigInt = void 0;
110
- function isBigInt$2(val) {
109
+ bigint$4.isntBigInt = bigint$4.isBigInt = void 0;
110
+ function isBigInt$4(val) {
111
111
  return typeof val === 'bigint';
112
112
  }
113
- bigint$2.isBigInt = isBigInt$2;
114
- function isntBigInt$2(val) {
115
- return !isBigInt$2(val);
113
+ bigint$4.isBigInt = isBigInt$4;
114
+ function isntBigInt$4(val) {
115
+ return !isBigInt$4(val);
116
116
  }
117
- bigint$2.isntBigInt = isntBigInt$2;
117
+ bigint$4.isntBigInt = isntBigInt$4;
118
118
 
119
- var boolean$2 = {};
119
+ var boolean$4 = {};
120
120
 
121
- boolean$2.isntBoolean = boolean$2.isBoolean = void 0;
122
- function isBoolean$2(val) {
121
+ boolean$4.isntBoolean = boolean$4.isBoolean = void 0;
122
+ function isBoolean$4(val) {
123
123
  return typeof val === 'boolean';
124
124
  }
125
- boolean$2.isBoolean = isBoolean$2;
126
- function isntBoolean$2(val) {
127
- return !isBoolean$2(val);
125
+ boolean$4.isBoolean = isBoolean$4;
126
+ function isntBoolean$4(val) {
127
+ return !isBoolean$4(val);
128
128
  }
129
- boolean$2.isntBoolean = isntBoolean$2;
129
+ boolean$4.isntBoolean = isntBoolean$4;
130
130
 
131
- var char$2 = {};
131
+ var char$4 = {};
132
132
 
133
- var string$2 = {};
133
+ var string$4 = {};
134
134
 
135
- string$2.isntString = string$2.isString = void 0;
136
- function isString$2(val) {
135
+ string$4.isntString = string$4.isString = void 0;
136
+ function isString$4(val) {
137
137
  return typeof val === 'string';
138
138
  }
139
- string$2.isString = isString$2;
140
- function isntString$2(val) {
141
- return !isString$2(val);
139
+ string$4.isString = isString$4;
140
+ function isntString$4(val) {
141
+ return !isString$4(val);
142
142
  }
143
- string$2.isntString = isntString$2;
143
+ string$4.isntString = isntString$4;
144
144
 
145
- char$2.isntChar = char$2.isChar = void 0;
146
- const string_1$5 = string$2;
147
- function isChar$2(val) {
148
- return (0, string_1$5.isString)(val)
145
+ char$4.isntChar = char$4.isChar = void 0;
146
+ const string_1$9 = string$4;
147
+ function isChar$4(val) {
148
+ return (0, string_1$9.isString)(val)
149
149
  && val.length === 1;
150
150
  }
151
- char$2.isChar = isChar$2;
152
- function isntChar$2(val) {
153
- return !isChar$2(val);
151
+ char$4.isChar = isChar$4;
152
+ function isntChar$4(val) {
153
+ return !isChar$4(val);
154
154
  }
155
- char$2.isntChar = isntChar$2;
155
+ char$4.isntChar = isntChar$4;
156
156
 
157
- var date$2 = {};
157
+ var date$4 = {};
158
158
 
159
- date$2.isntDate = date$2.isDate = void 0;
160
- function isDate$3(val) {
159
+ date$4.isntDate = date$4.isDate = void 0;
160
+ function isDate$5(val) {
161
161
  return val instanceof Date;
162
162
  }
163
- date$2.isDate = isDate$3;
164
- function isntDate$2(val) {
165
- return !isDate$3(val);
163
+ date$4.isDate = isDate$5;
164
+ function isntDate$4(val) {
165
+ return !isDate$5(val);
166
166
  }
167
- date$2.isntDate = isntDate$2;
167
+ date$4.isntDate = isntDate$4;
168
168
 
169
- var _enum$2 = {};
169
+ var _enum$4 = {};
170
170
 
171
- _enum$2.inEnum = void 0;
172
- function inEnum$2(val, _enum) {
171
+ _enum$4.inEnum = void 0;
172
+ function inEnum$4(val, _enum) {
173
173
  return Object.values(_enum).includes(val);
174
174
  }
175
- _enum$2.inEnum = inEnum$2;
175
+ _enum$4.inEnum = inEnum$4;
176
176
 
177
- var error$2 = {};
177
+ var error$4 = {};
178
178
 
179
- error$2.isntError = error$2.isError = void 0;
180
- function isError$2(val) {
179
+ error$4.isntError = error$4.isError = void 0;
180
+ function isError$4(val) {
181
181
  return val instanceof Error;
182
182
  }
183
- error$2.isError = isError$2;
184
- function isntError$2(val) {
185
- return !isError$2(val);
183
+ error$4.isError = isError$4;
184
+ function isntError$4(val) {
185
+ return !isError$4(val);
186
186
  }
187
- error$2.isntError = isntError$2;
187
+ error$4.isntError = isntError$4;
188
188
 
189
- var falsy$2 = {};
189
+ var falsy$4 = {};
190
190
 
191
- falsy$2.isntFalsy = falsy$2.isFalsy = void 0;
192
- function isFalsy$2(val) {
191
+ falsy$4.isntFalsy = falsy$4.isFalsy = void 0;
192
+ function isFalsy$4(val) {
193
193
  return !val;
194
194
  }
195
- falsy$2.isFalsy = isFalsy$2;
196
- function isntFalsy$2(val) {
197
- return !isFalsy$2(val);
195
+ falsy$4.isFalsy = isFalsy$4;
196
+ function isntFalsy$4(val) {
197
+ return !isFalsy$4(val);
198
198
  }
199
- falsy$2.isntFalsy = isntFalsy$2;
199
+ falsy$4.isntFalsy = isntFalsy$4;
200
200
 
201
- var iterable$2 = {};
201
+ var iterable$4 = {};
202
202
 
203
- iterable$2.isntIterable = iterable$2.isIterable = void 0;
204
- const null_1$7 = _null$2;
205
- const undefined_1$4 = _undefined$2;
206
- const function_1$7 = _function$2;
207
- function isIterable$4(val) {
208
- return (0, null_1$7.isntNull)(val)
209
- && (0, undefined_1$4.isntUndefined)(val)
210
- && (0, function_1$7.isFunction)(val[Symbol.iterator]);
203
+ iterable$4.isntIterable = iterable$4.isIterable = void 0;
204
+ const null_1$d = _null$4;
205
+ const undefined_1$8 = _undefined$4;
206
+ const function_1$d = _function$4;
207
+ function isIterable$6(val) {
208
+ return (0, null_1$d.isntNull)(val)
209
+ && (0, undefined_1$8.isntUndefined)(val)
210
+ && (0, function_1$d.isFunction)(val[Symbol.iterator]);
211
211
  }
212
- iterable$2.isIterable = isIterable$4;
213
- function isntIterable$2(val) {
214
- return !isIterable$4(val);
212
+ iterable$4.isIterable = isIterable$6;
213
+ function isntIterable$4(val) {
214
+ return !isIterable$6(val);
215
215
  }
216
- iterable$2.isntIterable = isntIterable$2;
216
+ iterable$4.isntIterable = isntIterable$4;
217
217
 
218
- var json$2 = {};
218
+ var json$4 = {};
219
219
 
220
- var number$2 = {};
220
+ var number$4 = {};
221
221
 
222
- number$2.isntNaN = number$2.isNaN = number$2.isNegativeInfinity = number$2.isPositiveInfinity = number$2.isFinite = number$2.isntNumber = number$2.isNumber = void 0;
223
- function isNumber$2(val) {
222
+ number$4.isntNaN = number$4.isNaN = number$4.isNegativeInfinity = number$4.isPositiveInfinity = number$4.isFinite = number$4.isntNumber = number$4.isNumber = void 0;
223
+ function isNumber$4(val) {
224
224
  return typeof val === 'number';
225
225
  }
226
- number$2.isNumber = isNumber$2;
227
- function isntNumber$2(val) {
228
- return !isNumber$2(val);
226
+ number$4.isNumber = isNumber$4;
227
+ function isntNumber$4(val) {
228
+ return !isNumber$4(val);
229
229
  }
230
- number$2.isntNumber = isntNumber$2;
231
- function isFinite$2(val) {
230
+ number$4.isntNumber = isntNumber$4;
231
+ function isFinite$4(val) {
232
232
  return Number.isFinite(val);
233
233
  }
234
- number$2.isFinite = isFinite$2;
235
- function isPositiveInfinity$2(val) {
234
+ number$4.isFinite = isFinite$4;
235
+ function isPositiveInfinity$4(val) {
236
236
  return val === Infinity;
237
237
  }
238
- number$2.isPositiveInfinity = isPositiveInfinity$2;
239
- function isNegativeInfinity$2(val) {
238
+ number$4.isPositiveInfinity = isPositiveInfinity$4;
239
+ function isNegativeInfinity$4(val) {
240
240
  return val === -Infinity;
241
241
  }
242
- number$2.isNegativeInfinity = isNegativeInfinity$2;
243
- function isNaN$3(val) {
242
+ number$4.isNegativeInfinity = isNegativeInfinity$4;
243
+ function isNaN$5(val) {
244
244
  return Number.isNaN(val);
245
245
  }
246
- number$2.isNaN = isNaN$3;
247
- function isntNaN$2(val) {
248
- return !isNaN$3(val);
246
+ number$4.isNaN = isNaN$5;
247
+ function isntNaN$4(val) {
248
+ return !isNaN$5(val);
249
249
  }
250
- number$2.isntNaN = isntNaN$2;
250
+ number$4.isntNaN = isntNaN$4;
251
251
 
252
- var object$2 = {};
252
+ var object$4 = {};
253
253
 
254
254
  /** Detect free variable `global` from Node.js. */
255
255
 
@@ -477,7 +477,7 @@
477
477
  * _.isPlainObject(Object.create(null));
478
478
  * // => true
479
479
  */
480
- function isPlainObject$3(value) {
480
+ function isPlainObject$5(value) {
481
481
  if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
482
482
  return false;
483
483
  }
@@ -490,59 +490,59 @@
490
490
  funcToString.call(Ctor) == objectCtorString;
491
491
  }
492
492
 
493
- var isPlainObject_1$3 = isPlainObject$3;
493
+ var isPlainObject_1$5 = isPlainObject$5;
494
494
 
495
- var __importDefault$2 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
495
+ var __importDefault$4 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
496
496
  return (mod && mod.__esModule) ? mod : { "default": mod };
497
- };object$2.isntEmptyObject = object$2.isEmptyObject = object$2.isntPlainObject = object$2.isPlainObject = object$2.isntObject = object$2.isObject = void 0;
498
- const isPlainObject_1$2 = __importDefault$2(isPlainObject_1$3);
499
- function isObject$2(val) {
497
+ };object$4.isntEmptyObject = object$4.isEmptyObject = object$4.isntPlainObject = object$4.isPlainObject = object$4.isntObject = object$4.isObject = void 0;
498
+ const isPlainObject_1$4 = __importDefault$4(isPlainObject_1$5);
499
+ function isObject$4(val) {
500
500
  return val !== null
501
501
  && typeof val === 'object';
502
502
  }
503
- object$2.isObject = isObject$2;
504
- function isntObject$2(val) {
505
- return !isObject$2(val);
503
+ object$4.isObject = isObject$4;
504
+ function isntObject$4(val) {
505
+ return !isObject$4(val);
506
506
  }
507
- object$2.isntObject = isntObject$2;
508
- function isPlainObject$2(val) {
509
- return (0, isPlainObject_1$2.default)(val);
507
+ object$4.isntObject = isntObject$4;
508
+ function isPlainObject$4(val) {
509
+ return (0, isPlainObject_1$4.default)(val);
510
510
  }
511
- object$2.isPlainObject = isPlainObject$2;
512
- function isntPlainObject$2(val) {
513
- return !isPlainObject$2(val);
511
+ object$4.isPlainObject = isPlainObject$4;
512
+ function isntPlainObject$4(val) {
513
+ return !isPlainObject$4(val);
514
514
  }
515
- object$2.isntPlainObject = isntPlainObject$2;
516
- function isEmptyObject$2(val) {
515
+ object$4.isntPlainObject = isntPlainObject$4;
516
+ function isEmptyObject$4(val) {
517
517
  return Object.keys(val).length === 0;
518
518
  }
519
- object$2.isEmptyObject = isEmptyObject$2;
520
- function isntEmptyObject$2(val) {
519
+ object$4.isEmptyObject = isEmptyObject$4;
520
+ function isntEmptyObject$4(val) {
521
521
  return Object.keys(val).length !== 0;
522
522
  }
523
- object$2.isntEmptyObject = isntEmptyObject$2;
524
-
525
- json$2.isntJsonable = json$2.isJsonable = json$2.isntJson = json$2.isJson = void 0;
526
- const null_1$6 = _null$2;
527
- const boolean_1$2 = boolean$2;
528
- const string_1$4 = string$2;
529
- const number_1$2 = number$2;
530
- const array_1$2 = array$2;
531
- const object_1$5 = object$2;
532
- function isJson$2(val) {
533
- return (0, null_1$6.isNull)(val)
534
- || (0, boolean_1$2.isBoolean)(val)
535
- || (0, string_1$4.isString)(val)
536
- || (0, number_1$2.isNumber)(val)
537
- || ((0, array_1$2.isArray)(val) && val.every(isJson$2))
538
- || ((0, object_1$5.isPlainObject)(val) && Object.values(val).every(isJson$2));
539
- }
540
- json$2.isJson = isJson$2;
541
- function isntJson$2(val) {
542
- return !isJson$2(val);
543
- }
544
- json$2.isntJson = isntJson$2;
545
- function isJsonable$2(val) {
523
+ object$4.isntEmptyObject = isntEmptyObject$4;
524
+
525
+ json$4.isntJsonable = json$4.isJsonable = json$4.isntJson = json$4.isJson = void 0;
526
+ const null_1$c = _null$4;
527
+ const boolean_1$4 = boolean$4;
528
+ const string_1$8 = string$4;
529
+ const number_1$4 = number$4;
530
+ const array_1$4 = array$5;
531
+ const object_1$9 = object$4;
532
+ function isJson$4(val) {
533
+ return (0, null_1$c.isNull)(val)
534
+ || (0, boolean_1$4.isBoolean)(val)
535
+ || (0, string_1$8.isString)(val)
536
+ || (0, number_1$4.isNumber)(val)
537
+ || ((0, array_1$4.isArray)(val) && val.every(isJson$4))
538
+ || ((0, object_1$9.isPlainObject)(val) && Object.values(val).every(isJson$4));
539
+ }
540
+ json$4.isJson = isJson$4;
541
+ function isntJson$4(val) {
542
+ return !isJson$4(val);
543
+ }
544
+ json$4.isntJson = isntJson$4;
545
+ function isJsonable$4(val) {
546
546
  try {
547
547
  JSON.stringify(val);
548
548
  return true;
@@ -551,39 +551,39 @@
551
551
  return false;
552
552
  }
553
553
  }
554
- json$2.isJsonable = isJsonable$2;
555
- function isntJsonable$2(val) {
556
- return !isntJsonable$2();
554
+ json$4.isJsonable = isJsonable$4;
555
+ function isntJsonable$4(val) {
556
+ return !isntJsonable$4();
557
557
  }
558
- json$2.isntJsonable = isntJsonable$2;
558
+ json$4.isntJsonable = isntJsonable$4;
559
559
 
560
- var promise$2 = {};
560
+ var promise$4 = {};
561
561
 
562
- promise$2.isPromiseLike = promise$2.isntPromiseLike = promise$2.isntPromise = promise$2.isPromise = void 0;
563
- const object_1$4 = object$2;
564
- const function_1$6 = _function$2;
565
- function isPromise$4(val) {
562
+ promise$4.isPromiseLike = promise$4.isntPromiseLike = promise$4.isntPromise = promise$4.isPromise = void 0;
563
+ const object_1$8 = object$4;
564
+ const function_1$c = _function$4;
565
+ function isPromise$6(val) {
566
566
  return val instanceof Promise;
567
567
  }
568
- promise$2.isPromise = isPromise$4;
569
- function isntPromise$2(val) {
570
- return !isPromise$4(val);
568
+ promise$4.isPromise = isPromise$6;
569
+ function isntPromise$4(val) {
570
+ return !isPromise$6(val);
571
571
  }
572
- promise$2.isntPromise = isntPromise$2;
573
- function isntPromiseLike$2(val) {
574
- return !isPromiseLike$2(val);
572
+ promise$4.isntPromise = isntPromise$4;
573
+ function isntPromiseLike$4(val) {
574
+ return !isPromiseLike$4(val);
575
575
  }
576
- promise$2.isntPromiseLike = isntPromiseLike$2;
577
- function isPromiseLike$2(val) {
578
- return (0, object_1$4.isObject)(val)
579
- && (0, function_1$6.isFunction)(val.then);
576
+ promise$4.isntPromiseLike = isntPromiseLike$4;
577
+ function isPromiseLike$4(val) {
578
+ return (0, object_1$8.isObject)(val)
579
+ && (0, function_1$c.isFunction)(val.then);
580
580
  }
581
- promise$2.isPromiseLike = isPromiseLike$2;
581
+ promise$4.isPromiseLike = isPromiseLike$4;
582
582
 
583
- var url$2 = {};
583
+ var url$4 = {};
584
584
 
585
- url$2.isAbsoluteURL = void 0;
586
- function isAbsoluteURL$2(str) {
585
+ url$4.isAbsoluteURL = void 0;
586
+ function isAbsoluteURL$4(str) {
587
587
  try {
588
588
  new URL(str);
589
589
  return true;
@@ -592,19 +592,31 @@
592
592
  return false;
593
593
  }
594
594
  }
595
- url$2.isAbsoluteURL = isAbsoluteURL$2;
595
+ url$4.isAbsoluteURL = isAbsoluteURL$4;
596
596
 
597
- var regexp$2 = {};
597
+ var regexp$4 = {};
598
598
 
599
- regexp$2.isntRegExp = regexp$2.isRegExp = void 0;
600
- function isRegExp$2(val) {
599
+ regexp$4.isntRegExp = regexp$4.isRegExp = void 0;
600
+ function isRegExp$4(val) {
601
601
  return val instanceof RegExp;
602
602
  }
603
- regexp$2.isRegExp = isRegExp$2;
604
- function isntRegExp$2(val) {
605
- return !isRegExp$2(val);
603
+ regexp$4.isRegExp = isRegExp$4;
604
+ function isntRegExp$4(val) {
605
+ return !isRegExp$4(val);
606
606
  }
607
- regexp$2.isntRegExp = isntRegExp$2;
607
+ regexp$4.isntRegExp = isntRegExp$4;
608
+
609
+ var symbol$1 = {};
610
+
611
+ symbol$1.isntSymbol = symbol$1.isSymbol = void 0;
612
+ function isSymbol$1(val) {
613
+ return typeof val === 'symbol';
614
+ }
615
+ symbol$1.isSymbol = isSymbol$1;
616
+ function isntSymbol$1(val) {
617
+ return !isSymbol$1(val);
618
+ }
619
+ symbol$1.isntSymbol = isntSymbol$1;
608
620
 
609
621
  (function (exports) {
610
622
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -620,31 +632,32 @@
620
632
  }));
621
633
  var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
622
634
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
623
- };__exportStar(array$2, exports);
624
- __exportStar(asyncIterable$2, exports);
625
- __exportStar(bigint$2, exports);
626
- __exportStar(boolean$2, exports);
627
- __exportStar(char$2, exports);
628
- __exportStar(date$2, exports);
629
- __exportStar(_enum$2, exports);
630
- __exportStar(error$2, exports);
631
- __exportStar(falsy$2, exports);
632
- __exportStar(_function$2, exports);
633
- __exportStar(iterable$2, exports);
634
- __exportStar(json$2, exports);
635
- __exportStar(_null$2, exports);
636
- __exportStar(number$2, exports);
637
- __exportStar(object$2, exports);
638
- __exportStar(promise$2, exports);
639
- __exportStar(string$2, exports);
640
- __exportStar(_undefined$2, exports);
641
- __exportStar(url$2, exports);
642
- __exportStar(regexp$2, exports);
635
+ };__exportStar(array$5, exports);
636
+ __exportStar(asyncIterable$4, exports);
637
+ __exportStar(bigint$4, exports);
638
+ __exportStar(boolean$4, exports);
639
+ __exportStar(char$4, exports);
640
+ __exportStar(date$4, exports);
641
+ __exportStar(_enum$4, exports);
642
+ __exportStar(error$4, exports);
643
+ __exportStar(falsy$4, exports);
644
+ __exportStar(_function$4, exports);
645
+ __exportStar(iterable$4, exports);
646
+ __exportStar(json$4, exports);
647
+ __exportStar(_null$4, exports);
648
+ __exportStar(number$4, exports);
649
+ __exportStar(object$4, exports);
650
+ __exportStar(promise$4, exports);
651
+ __exportStar(string$4, exports);
652
+ __exportStar(_undefined$4, exports);
653
+ __exportStar(url$4, exports);
654
+ __exportStar(regexp$4, exports);
655
+ __exportStar(symbol$1, exports);
643
656
 
644
- } (es2018$e));
657
+ } (es2018$g));
645
658
 
646
659
  cons.convertArrayToCons = cons.convertConsToArray = void 0;
647
- const types_1$X = es2018$e;
660
+ const types_1$X = es2018$g;
648
661
  function convertConsToArray([value, next]) {
649
662
  if ((0, types_1$X.isNull)(next)) {
650
663
  return [value];
@@ -659,6 +672,30 @@
659
672
  }
660
673
  cons.convertArrayToCons = convertArrayToCons;
661
674
 
675
+ var array$4 = {};
676
+
677
+ array$4.truncateArrayRight = array$4.truncateArrayLeft = array$4.sliceArrayRight = array$4.sliceArrayLeft = void 0;
678
+ function sliceArrayLeft(arr, num) {
679
+ return arr.slice(0, num);
680
+ }
681
+ array$4.sliceArrayLeft = sliceArrayLeft;
682
+ function sliceArrayRight(arr, num) {
683
+ const startIndex = arr.length - num;
684
+ return arr.slice(startIndex >= 0 ? startIndex : 0);
685
+ }
686
+ array$4.sliceArrayRight = sliceArrayRight;
687
+ function truncateArrayLeft(arr, num) {
688
+ if (arr.length > num) {
689
+ arr.length = num;
690
+ }
691
+ }
692
+ array$4.truncateArrayLeft = truncateArrayLeft;
693
+ function truncateArrayRight(arr, num) {
694
+ const startIndex = arr.length - num;
695
+ arr.splice(0, startIndex);
696
+ }
697
+ array$4.truncateArrayRight = truncateArrayRight;
698
+
662
699
  var emitter = {};
663
700
 
664
701
  emitter.Emitter = void 0;
@@ -805,17 +842,17 @@
805
842
 
806
843
  var lruMap = {};
807
844
 
808
- var es2018$d = {};
845
+ var es2018$f = {};
809
846
 
810
847
  var customError = {};
811
848
 
812
- var es2018$c = {};
849
+ var es2018$e = {};
813
850
 
814
851
  var middleware$2 = {};
815
852
 
816
853
  var chunkAsync$4 = {};
817
854
 
818
- var es2018$b = {};
855
+ var es2018$d = {};
819
856
 
820
857
  var go$1 = {};
821
858
 
@@ -844,11 +881,11 @@
844
881
 
845
882
  var goMacrotask$1 = {};
846
883
 
847
- var es2018$a = {};
884
+ var es2018$c = {};
848
885
 
849
886
  var exponentialBackoff = {};
850
887
 
851
- var es2018$9 = {};
888
+ var es2018$b = {};
852
889
 
853
890
  var random$1 = {};
854
891
 
@@ -892,10 +929,10 @@
892
929
  __exportStar(randomInt$1, exports);
893
930
  __exportStar(randomIntInclusive$1, exports);
894
931
 
895
- } (es2018$9));
932
+ } (es2018$b));
896
933
 
897
934
  exponentialBackoff.calculateExponentialBackoffTimeout = void 0;
898
- const extra_rand_1 = es2018$9;
935
+ const extra_rand_1 = es2018$b;
899
936
  function calculateExponentialBackoffTimeout({ baseTimeout, retries, maxTimeout = Infinity, factor = 2, jitter = true }) {
900
937
  const timeout = Math.min(factor ** retries * baseTimeout, maxTimeout);
901
938
  if (jitter) {
@@ -1010,10 +1047,10 @@
1010
1047
  __exportStar(setTimeoutLoop$1, exports);
1011
1048
  __exportStar(setDynamicTimeoutLoop$1, exports);
1012
1049
 
1013
- } (es2018$a));
1050
+ } (es2018$c));
1014
1051
 
1015
1052
  goMacrotask$1.goMacrotask = void 0;
1016
- const extra_timers_1$2 = es2018$a;
1053
+ const extra_timers_1$2 = es2018$c;
1017
1054
  function goMacrotask(fn) {
1018
1055
  return new Promise((resolve, reject) => {
1019
1056
  (0, extra_timers_1$2.setImmediate)(async () => {
@@ -1046,7 +1083,7 @@
1046
1083
  __exportStar(goMicrotask$1, exports);
1047
1084
  __exportStar(goMacrotask$1, exports);
1048
1085
 
1049
- } (es2018$b));
1086
+ } (es2018$d));
1050
1087
 
1051
1088
  var hasRequiredChunkAsync;
1052
1089
 
@@ -1054,7 +1091,7 @@
1054
1091
  if (hasRequiredChunkAsync) return chunkAsync$4;
1055
1092
  hasRequiredChunkAsync = 1;
1056
1093
  chunkAsync$4.chunkAsync = void 0;
1057
- const go_1 = es2018$b;
1094
+ const go_1 = es2018$d;
1058
1095
  const errors_1 = requireEs2018();
1059
1096
  function chunkAsync(iterable, size) {
1060
1097
  (0, errors_1.assert)(Number.isInteger(size), 'The parameter size must be an integer');
@@ -1079,9 +1116,382 @@
1079
1116
 
1080
1117
  var chunkByAsync$5 = {};
1081
1118
 
1082
- chunkByAsync$5.chunkByAsync = void 0;
1083
- const types_1$W = es2018$e;
1084
- function chunkByAsync$4(iterable, predicate) {
1119
+ var es2018$a = {};
1120
+
1121
+ var array$3 = {};
1122
+
1123
+ array$3.isntEmptyArray = array$3.isEmptyArray = array$3.isntArray = array$3.isArray = void 0;
1124
+ function isArray$6(val) {
1125
+ return Array.isArray(val);
1126
+ }
1127
+ array$3.isArray = isArray$6;
1128
+ function isntArray$3(val) {
1129
+ return !isArray$6(val);
1130
+ }
1131
+ array$3.isntArray = isntArray$3;
1132
+ function isEmptyArray$3(val) {
1133
+ return val.length === 0;
1134
+ }
1135
+ array$3.isEmptyArray = isEmptyArray$3;
1136
+ function isntEmptyArray$3(val) {
1137
+ return val.length !== 0;
1138
+ }
1139
+ array$3.isntEmptyArray = isntEmptyArray$3;
1140
+
1141
+ var asyncIterable$3 = {};
1142
+
1143
+ var _null$3 = {};
1144
+
1145
+ _null$3.isntNull = _null$3.isNull = void 0;
1146
+ function isNull$3(val) {
1147
+ return val === null;
1148
+ }
1149
+ _null$3.isNull = isNull$3;
1150
+ function isntNull$3(val) {
1151
+ return !isNull$3(val);
1152
+ }
1153
+ _null$3.isntNull = isntNull$3;
1154
+
1155
+ var _undefined$3 = {};
1156
+
1157
+ _undefined$3.isntUndefined = _undefined$3.isUndefined = void 0;
1158
+ function isUndefined$3(val) {
1159
+ return val === undefined;
1160
+ }
1161
+ _undefined$3.isUndefined = isUndefined$3;
1162
+ function isntUndefined$3(val) {
1163
+ return !isUndefined$3(val);
1164
+ }
1165
+ _undefined$3.isntUndefined = isntUndefined$3;
1166
+
1167
+ var _function$3 = {};
1168
+
1169
+ _function$3.isntFunction = _function$3.isFunction = void 0;
1170
+ function isFunction$5(val) {
1171
+ return typeof val === 'function';
1172
+ }
1173
+ _function$3.isFunction = isFunction$5;
1174
+ function isntFunction$3(val) {
1175
+ return !isFunction$5(val);
1176
+ }
1177
+ _function$3.isntFunction = isntFunction$3;
1178
+
1179
+ asyncIterable$3.isntAsyncIterable = asyncIterable$3.isAsyncIterable = void 0;
1180
+ const null_1$b = _null$3;
1181
+ const undefined_1$7 = _undefined$3;
1182
+ const function_1$b = _function$3;
1183
+ function isAsyncIterable$5(val) {
1184
+ return (0, null_1$b.isntNull)(val)
1185
+ && (0, undefined_1$7.isntUndefined)(val)
1186
+ && (0, function_1$b.isFunction)(val[Symbol.asyncIterator]);
1187
+ }
1188
+ asyncIterable$3.isAsyncIterable = isAsyncIterable$5;
1189
+ function isntAsyncIterable$3(val) {
1190
+ return !isAsyncIterable$5(val);
1191
+ }
1192
+ asyncIterable$3.isntAsyncIterable = isntAsyncIterable$3;
1193
+
1194
+ var bigint$3 = {};
1195
+
1196
+ bigint$3.isntBigInt = bigint$3.isBigInt = void 0;
1197
+ function isBigInt$3(val) {
1198
+ return typeof val === 'bigint';
1199
+ }
1200
+ bigint$3.isBigInt = isBigInt$3;
1201
+ function isntBigInt$3(val) {
1202
+ return !isBigInt$3(val);
1203
+ }
1204
+ bigint$3.isntBigInt = isntBigInt$3;
1205
+
1206
+ var boolean$3 = {};
1207
+
1208
+ boolean$3.isntBoolean = boolean$3.isBoolean = void 0;
1209
+ function isBoolean$3(val) {
1210
+ return typeof val === 'boolean';
1211
+ }
1212
+ boolean$3.isBoolean = isBoolean$3;
1213
+ function isntBoolean$3(val) {
1214
+ return !isBoolean$3(val);
1215
+ }
1216
+ boolean$3.isntBoolean = isntBoolean$3;
1217
+
1218
+ var char$3 = {};
1219
+
1220
+ var string$3 = {};
1221
+
1222
+ string$3.isntString = string$3.isString = void 0;
1223
+ function isString$3(val) {
1224
+ return typeof val === 'string';
1225
+ }
1226
+ string$3.isString = isString$3;
1227
+ function isntString$3(val) {
1228
+ return !isString$3(val);
1229
+ }
1230
+ string$3.isntString = isntString$3;
1231
+
1232
+ char$3.isntChar = char$3.isChar = void 0;
1233
+ const string_1$7 = string$3;
1234
+ function isChar$3(val) {
1235
+ return (0, string_1$7.isString)(val)
1236
+ && val.length === 1;
1237
+ }
1238
+ char$3.isChar = isChar$3;
1239
+ function isntChar$3(val) {
1240
+ return !isChar$3(val);
1241
+ }
1242
+ char$3.isntChar = isntChar$3;
1243
+
1244
+ var date$3 = {};
1245
+
1246
+ date$3.isntDate = date$3.isDate = void 0;
1247
+ function isDate$4(val) {
1248
+ return val instanceof Date;
1249
+ }
1250
+ date$3.isDate = isDate$4;
1251
+ function isntDate$3(val) {
1252
+ return !isDate$4(val);
1253
+ }
1254
+ date$3.isntDate = isntDate$3;
1255
+
1256
+ var _enum$3 = {};
1257
+
1258
+ _enum$3.inEnum = void 0;
1259
+ function inEnum$3(val, _enum) {
1260
+ return Object.values(_enum).includes(val);
1261
+ }
1262
+ _enum$3.inEnum = inEnum$3;
1263
+
1264
+ var error$3 = {};
1265
+
1266
+ error$3.isntError = error$3.isError = void 0;
1267
+ function isError$3(val) {
1268
+ return val instanceof Error;
1269
+ }
1270
+ error$3.isError = isError$3;
1271
+ function isntError$3(val) {
1272
+ return !isError$3(val);
1273
+ }
1274
+ error$3.isntError = isntError$3;
1275
+
1276
+ var falsy$3 = {};
1277
+
1278
+ falsy$3.isntFalsy = falsy$3.isFalsy = void 0;
1279
+ function isFalsy$3(val) {
1280
+ return !val;
1281
+ }
1282
+ falsy$3.isFalsy = isFalsy$3;
1283
+ function isntFalsy$3(val) {
1284
+ return !isFalsy$3(val);
1285
+ }
1286
+ falsy$3.isntFalsy = isntFalsy$3;
1287
+
1288
+ var iterable$3 = {};
1289
+
1290
+ iterable$3.isntIterable = iterable$3.isIterable = void 0;
1291
+ const null_1$a = _null$3;
1292
+ const undefined_1$6 = _undefined$3;
1293
+ const function_1$a = _function$3;
1294
+ function isIterable$5(val) {
1295
+ return (0, null_1$a.isntNull)(val)
1296
+ && (0, undefined_1$6.isntUndefined)(val)
1297
+ && (0, function_1$a.isFunction)(val[Symbol.iterator]);
1298
+ }
1299
+ iterable$3.isIterable = isIterable$5;
1300
+ function isntIterable$3(val) {
1301
+ return !isIterable$5(val);
1302
+ }
1303
+ iterable$3.isntIterable = isntIterable$3;
1304
+
1305
+ var json$3 = {};
1306
+
1307
+ var number$3 = {};
1308
+
1309
+ number$3.isntNaN = number$3.isNaN = number$3.isNegativeInfinity = number$3.isPositiveInfinity = number$3.isFinite = number$3.isntNumber = number$3.isNumber = void 0;
1310
+ function isNumber$3(val) {
1311
+ return typeof val === 'number';
1312
+ }
1313
+ number$3.isNumber = isNumber$3;
1314
+ function isntNumber$3(val) {
1315
+ return !isNumber$3(val);
1316
+ }
1317
+ number$3.isntNumber = isntNumber$3;
1318
+ function isFinite$3(val) {
1319
+ return Number.isFinite(val);
1320
+ }
1321
+ number$3.isFinite = isFinite$3;
1322
+ function isPositiveInfinity$3(val) {
1323
+ return val === Infinity;
1324
+ }
1325
+ number$3.isPositiveInfinity = isPositiveInfinity$3;
1326
+ function isNegativeInfinity$3(val) {
1327
+ return val === -Infinity;
1328
+ }
1329
+ number$3.isNegativeInfinity = isNegativeInfinity$3;
1330
+ function isNaN$4(val) {
1331
+ return Number.isNaN(val);
1332
+ }
1333
+ number$3.isNaN = isNaN$4;
1334
+ function isntNaN$3(val) {
1335
+ return !isNaN$4(val);
1336
+ }
1337
+ number$3.isntNaN = isntNaN$3;
1338
+
1339
+ var object$3 = {};
1340
+
1341
+ var __importDefault$3 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
1342
+ return (mod && mod.__esModule) ? mod : { "default": mod };
1343
+ };object$3.isntEmptyObject = object$3.isEmptyObject = object$3.isntPlainObject = object$3.isPlainObject = object$3.isntObject = object$3.isObject = void 0;
1344
+ const isPlainObject_1$3 = __importDefault$3(isPlainObject_1$5);
1345
+ function isObject$3(val) {
1346
+ return val !== null
1347
+ && typeof val === 'object';
1348
+ }
1349
+ object$3.isObject = isObject$3;
1350
+ function isntObject$3(val) {
1351
+ return !isObject$3(val);
1352
+ }
1353
+ object$3.isntObject = isntObject$3;
1354
+ function isPlainObject$3(val) {
1355
+ return (0, isPlainObject_1$3.default)(val);
1356
+ }
1357
+ object$3.isPlainObject = isPlainObject$3;
1358
+ function isntPlainObject$3(val) {
1359
+ return !isPlainObject$3(val);
1360
+ }
1361
+ object$3.isntPlainObject = isntPlainObject$3;
1362
+ function isEmptyObject$3(val) {
1363
+ return Object.keys(val).length === 0;
1364
+ }
1365
+ object$3.isEmptyObject = isEmptyObject$3;
1366
+ function isntEmptyObject$3(val) {
1367
+ return Object.keys(val).length !== 0;
1368
+ }
1369
+ object$3.isntEmptyObject = isntEmptyObject$3;
1370
+
1371
+ json$3.isntJsonable = json$3.isJsonable = json$3.isntJson = json$3.isJson = void 0;
1372
+ const null_1$9 = _null$3;
1373
+ const boolean_1$3 = boolean$3;
1374
+ const string_1$6 = string$3;
1375
+ const number_1$3 = number$3;
1376
+ const array_1$3 = array$3;
1377
+ const object_1$7 = object$3;
1378
+ function isJson$3(val) {
1379
+ return (0, null_1$9.isNull)(val)
1380
+ || (0, boolean_1$3.isBoolean)(val)
1381
+ || (0, string_1$6.isString)(val)
1382
+ || (0, number_1$3.isNumber)(val)
1383
+ || ((0, array_1$3.isArray)(val) && val.every(isJson$3))
1384
+ || ((0, object_1$7.isPlainObject)(val) && Object.values(val).every(isJson$3));
1385
+ }
1386
+ json$3.isJson = isJson$3;
1387
+ function isntJson$3(val) {
1388
+ return !isJson$3(val);
1389
+ }
1390
+ json$3.isntJson = isntJson$3;
1391
+ function isJsonable$3(val) {
1392
+ try {
1393
+ JSON.stringify(val);
1394
+ return true;
1395
+ }
1396
+ catch (_a) {
1397
+ return false;
1398
+ }
1399
+ }
1400
+ json$3.isJsonable = isJsonable$3;
1401
+ function isntJsonable$3(val) {
1402
+ return !isntJsonable$3();
1403
+ }
1404
+ json$3.isntJsonable = isntJsonable$3;
1405
+
1406
+ var promise$3 = {};
1407
+
1408
+ promise$3.isPromiseLike = promise$3.isntPromiseLike = promise$3.isntPromise = promise$3.isPromise = void 0;
1409
+ const object_1$6 = object$3;
1410
+ const function_1$9 = _function$3;
1411
+ function isPromise$5(val) {
1412
+ return val instanceof Promise;
1413
+ }
1414
+ promise$3.isPromise = isPromise$5;
1415
+ function isntPromise$3(val) {
1416
+ return !isPromise$5(val);
1417
+ }
1418
+ promise$3.isntPromise = isntPromise$3;
1419
+ function isntPromiseLike$3(val) {
1420
+ return !isPromiseLike$3(val);
1421
+ }
1422
+ promise$3.isntPromiseLike = isntPromiseLike$3;
1423
+ function isPromiseLike$3(val) {
1424
+ return (0, object_1$6.isObject)(val)
1425
+ && (0, function_1$9.isFunction)(val.then);
1426
+ }
1427
+ promise$3.isPromiseLike = isPromiseLike$3;
1428
+
1429
+ var url$3 = {};
1430
+
1431
+ url$3.isAbsoluteURL = void 0;
1432
+ function isAbsoluteURL$3(str) {
1433
+ try {
1434
+ new URL(str);
1435
+ return true;
1436
+ }
1437
+ catch (_a) {
1438
+ return false;
1439
+ }
1440
+ }
1441
+ url$3.isAbsoluteURL = isAbsoluteURL$3;
1442
+
1443
+ var regexp$3 = {};
1444
+
1445
+ regexp$3.isntRegExp = regexp$3.isRegExp = void 0;
1446
+ function isRegExp$3(val) {
1447
+ return val instanceof RegExp;
1448
+ }
1449
+ regexp$3.isRegExp = isRegExp$3;
1450
+ function isntRegExp$3(val) {
1451
+ return !isRegExp$3(val);
1452
+ }
1453
+ regexp$3.isntRegExp = isntRegExp$3;
1454
+
1455
+ (function (exports) {
1456
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1457
+ if (k2 === undefined) k2 = k;
1458
+ var desc = Object.getOwnPropertyDescriptor(m, k);
1459
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
1460
+ desc = { enumerable: true, get: function() { return m[k]; } };
1461
+ }
1462
+ Object.defineProperty(o, k2, desc);
1463
+ }) : (function(o, m, k, k2) {
1464
+ if (k2 === undefined) k2 = k;
1465
+ o[k2] = m[k];
1466
+ }));
1467
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
1468
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
1469
+ };__exportStar(array$3, exports);
1470
+ __exportStar(asyncIterable$3, exports);
1471
+ __exportStar(bigint$3, exports);
1472
+ __exportStar(boolean$3, exports);
1473
+ __exportStar(char$3, exports);
1474
+ __exportStar(date$3, exports);
1475
+ __exportStar(_enum$3, exports);
1476
+ __exportStar(error$3, exports);
1477
+ __exportStar(falsy$3, exports);
1478
+ __exportStar(_function$3, exports);
1479
+ __exportStar(iterable$3, exports);
1480
+ __exportStar(json$3, exports);
1481
+ __exportStar(_null$3, exports);
1482
+ __exportStar(number$3, exports);
1483
+ __exportStar(object$3, exports);
1484
+ __exportStar(promise$3, exports);
1485
+ __exportStar(string$3, exports);
1486
+ __exportStar(_undefined$3, exports);
1487
+ __exportStar(url$3, exports);
1488
+ __exportStar(regexp$3, exports);
1489
+
1490
+ } (es2018$a));
1491
+
1492
+ chunkByAsync$5.chunkByAsync = void 0;
1493
+ const types_1$W = es2018$a;
1494
+ function chunkByAsync$4(iterable, predicate) {
1085
1495
  if ((0, types_1$W.isAsyncIterable)(iterable)) {
1086
1496
  return chunkByAsyncIterable$2(iterable, predicate);
1087
1497
  }
@@ -1146,7 +1556,7 @@
1146
1556
  if (hasRequiredChunk) return chunk$4;
1147
1557
  hasRequiredChunk = 1;
1148
1558
  chunk$4.chunk = void 0;
1149
- const go_1 = es2018$b;
1559
+ const go_1 = es2018$d;
1150
1560
  const errors_1 = requireEs2018();
1151
1561
  function chunk(iterable, size) {
1152
1562
  (0, errors_1.assert)(Number.isInteger(size), 'The parameter size must be an integer');
@@ -1172,8 +1582,8 @@
1172
1582
  var concatAsync$5 = {};
1173
1583
 
1174
1584
  concatAsync$5.concatAsync = void 0;
1175
- const types_1$V = es2018$e;
1176
- const go_1$x = es2018$b;
1585
+ const types_1$V = es2018$a;
1586
+ const go_1$x = es2018$d;
1177
1587
  function concatAsync$4(iterable, ...otherIterables) {
1178
1588
  return (0, go_1$x.go)(async function* () {
1179
1589
  for (const iter of [iterable, ...otherIterables]) {
@@ -1195,7 +1605,7 @@
1195
1605
  var concat$9 = {};
1196
1606
 
1197
1607
  concat$9.concat = void 0;
1198
- const go_1$w = es2018$b;
1608
+ const go_1$w = es2018$d;
1199
1609
  function concat$8(iterable, ...otherIterables) {
1200
1610
  return (0, go_1$w.go)(function* () {
1201
1611
  for (const iter of [iterable, ...otherIterables]) {
@@ -1229,7 +1639,7 @@
1229
1639
  if (hasRequiredDropAsync) return dropAsync$4;
1230
1640
  hasRequiredDropAsync = 1;
1231
1641
  dropAsync$4.dropAsync = void 0;
1232
- const go_1 = es2018$b;
1642
+ const go_1 = es2018$d;
1233
1643
  const utils_1 = utils$2;
1234
1644
  const errors_1 = requireEs2018();
1235
1645
  function dropAsync(iterable, count) {
@@ -1272,7 +1682,7 @@
1272
1682
  if (hasRequiredDropRightAsync) return dropRightAsync$4;
1273
1683
  hasRequiredDropRightAsync = 1;
1274
1684
  dropRightAsync$4.dropRightAsync = void 0;
1275
- const go_1 = es2018$b;
1685
+ const go_1 = es2018$d;
1276
1686
  const utils_1 = utils$2;
1277
1687
  const errors_1 = requireEs2018();
1278
1688
  function dropRightAsync(iterable, count) {
@@ -1308,7 +1718,7 @@
1308
1718
  if (hasRequiredDropRight) return dropRight$4;
1309
1719
  hasRequiredDropRight = 1;
1310
1720
  dropRight$4.dropRight = void 0;
1311
- const go_1 = es2018$b;
1721
+ const go_1 = es2018$d;
1312
1722
  const utils_1 = utils$2;
1313
1723
  const errors_1 = requireEs2018();
1314
1724
  function dropRight(iterable, count) {
@@ -1329,7 +1739,7 @@
1329
1739
  var dropUntilAsync$5 = {};
1330
1740
 
1331
1741
  dropUntilAsync$5.dropUntilAsync = void 0;
1332
- const types_1$U = es2018$e;
1742
+ const types_1$U = es2018$a;
1333
1743
  function dropUntilAsync$4(iterable, predicate) {
1334
1744
  if ((0, types_1$U.isAsyncIterable)(iterable)) {
1335
1745
  return dropUntilAsyncIterable$2(iterable, predicate);
@@ -1416,7 +1826,7 @@
1416
1826
  if (hasRequiredDrop) return drop$4;
1417
1827
  hasRequiredDrop = 1;
1418
1828
  drop$4.drop = void 0;
1419
- const go_1 = es2018$b;
1829
+ const go_1 = es2018$d;
1420
1830
  const utils_1 = utils$2;
1421
1831
  const errors_1 = requireEs2018();
1422
1832
  function drop(iterable, count) {
@@ -1454,7 +1864,7 @@
1454
1864
  var filterAsync$5 = {};
1455
1865
 
1456
1866
  filterAsync$5.filterAsync = void 0;
1457
- const types_1$T = es2018$e;
1867
+ const types_1$T = es2018$a;
1458
1868
  function filterAsync$4(iterable, predicate) {
1459
1869
  if ((0, types_1$T.isAsyncIterable)(iterable)) {
1460
1870
  return filterAsyncIterable$2(iterable, predicate);
@@ -1501,7 +1911,7 @@
1501
1911
  var flattenByAsync$5 = {};
1502
1912
 
1503
1913
  flattenByAsync$5.flattenByAsync = void 0;
1504
- const types_1$S = es2018$e;
1914
+ const types_1$S = es2018$a;
1505
1915
  function flattenByAsync$4(iterable, predicate) {
1506
1916
  if ((0, types_1$S.isAsyncIterable)(iterable)) {
1507
1917
  return flattenByAsyncIterable$2(iterable, predicate);
@@ -1575,7 +1985,7 @@
1575
1985
  var flattenBy$5 = {};
1576
1986
 
1577
1987
  flattenBy$5.flattenBy = void 0;
1578
- const types_1$R = es2018$e;
1988
+ const types_1$R = es2018$a;
1579
1989
  function flattenBy$4(iterable, predicate) {
1580
1990
  return flatten$9(iterable, predicate, 1);
1581
1991
  }
@@ -1634,7 +2044,7 @@
1634
2044
  var mapAsync$5 = {};
1635
2045
 
1636
2046
  mapAsync$5.mapAsync = void 0;
1637
- const types_1$Q = es2018$e;
2047
+ const types_1$Q = es2018$a;
1638
2048
  function mapAsync$4(iterable, fn) {
1639
2049
  if ((0, types_1$Q.isAsyncIterable)(iterable)) {
1640
2050
  return mapAsyncIterable$2(iterable, fn);
@@ -1679,7 +2089,7 @@
1679
2089
  if (hasRequiredRepeatAsync) return repeatAsync$4;
1680
2090
  hasRequiredRepeatAsync = 1;
1681
2091
  repeatAsync$4.repeatAsync = void 0;
1682
- const go_1 = es2018$b;
2092
+ const go_1 = es2018$d;
1683
2093
  const errors_1 = requireEs2018();
1684
2094
  function repeatAsync(iterable, times) {
1685
2095
  (0, errors_1.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
@@ -1722,7 +2132,7 @@
1722
2132
  if (hasRequiredRepeat) return repeat$6;
1723
2133
  hasRequiredRepeat = 1;
1724
2134
  repeat$6.repeat = void 0;
1725
- const go_1 = es2018$b;
2135
+ const go_1 = es2018$d;
1726
2136
  const errors_1 = requireEs2018();
1727
2137
  function repeat(iterable, times) {
1728
2138
  (0, errors_1.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
@@ -1765,7 +2175,7 @@
1765
2175
  if (hasRequiredSliceAsync) return sliceAsync$4;
1766
2176
  hasRequiredSliceAsync = 1;
1767
2177
  sliceAsync$4.sliceAsync = void 0;
1768
- const go_1 = es2018$b;
2178
+ const go_1 = es2018$d;
1769
2179
  const errors_1 = requireEs2018();
1770
2180
  function sliceAsync(iterable, start, end = Infinity) {
1771
2181
  (0, errors_1.assert)(Number.isInteger(start), 'The parameter start must be an integer');
@@ -1796,7 +2206,7 @@
1796
2206
  if (hasRequiredSlice) return slice$4;
1797
2207
  hasRequiredSlice = 1;
1798
2208
  slice$4.slice = void 0;
1799
- const go_1 = es2018$b;
2209
+ const go_1 = es2018$d;
1800
2210
  const errors_1 = requireEs2018();
1801
2211
  function slice(iterable, start, end = Infinity) {
1802
2212
  (0, errors_1.assert)(Number.isInteger(start), 'The parameter start must be an integer');
@@ -1840,7 +2250,7 @@
1840
2250
  var splitByAsync$5 = {};
1841
2251
 
1842
2252
  splitByAsync$5.splitByAsync = void 0;
1843
- const types_1$P = es2018$e;
2253
+ const types_1$P = es2018$a;
1844
2254
  function splitByAsync$4(iterable, predicate) {
1845
2255
  if ((0, types_1$P.isAsyncIterable)(iterable)) {
1846
2256
  return splitByAsyncIterable$2(iterable, predicate);
@@ -1927,7 +2337,7 @@
1927
2337
  if (hasRequiredTakeAsync) return takeAsync$4;
1928
2338
  hasRequiredTakeAsync = 1;
1929
2339
  takeAsync$4.takeAsync = void 0;
1930
- const go_1 = es2018$b;
2340
+ const go_1 = es2018$d;
1931
2341
  const errors_1 = requireEs2018();
1932
2342
  function takeAsync(iterable, count) {
1933
2343
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
@@ -1956,7 +2366,7 @@
1956
2366
  if (hasRequiredTakeRightAsync) return takeRightAsync$4;
1957
2367
  hasRequiredTakeRightAsync = 1;
1958
2368
  takeRightAsync$4.takeRightAsync = void 0;
1959
- const go_1 = es2018$b;
2369
+ const go_1 = es2018$d;
1960
2370
  const errors_1 = requireEs2018();
1961
2371
  function takeRightAsync(iterable, count) {
1962
2372
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
@@ -1994,7 +2404,7 @@
1994
2404
  if (hasRequiredTakeRight) return takeRight$4;
1995
2405
  hasRequiredTakeRight = 1;
1996
2406
  takeRight$4.takeRight = void 0;
1997
- const go_1 = es2018$b;
2407
+ const go_1 = es2018$d;
1998
2408
  const errors_1 = requireEs2018();
1999
2409
  function takeRight(iterable, count) {
2000
2410
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
@@ -2027,7 +2437,7 @@
2027
2437
  var takeUntilAsync$5 = {};
2028
2438
 
2029
2439
  takeUntilAsync$5.takeUntilAsync = void 0;
2030
- const types_1$O = es2018$e;
2440
+ const types_1$O = es2018$a;
2031
2441
  function takeUntilAsync$4(iterable, predicate) {
2032
2442
  if ((0, types_1$O.isAsyncIterable)(iterable)) {
2033
2443
  return takeUntilAsyncIterable$2(iterable, predicate);
@@ -2078,7 +2488,7 @@
2078
2488
  if (hasRequiredTake) return take$6;
2079
2489
  hasRequiredTake = 1;
2080
2490
  take$6.take = void 0;
2081
- const go_1 = es2018$b;
2491
+ const go_1 = es2018$d;
2082
2492
  const errors_1 = requireEs2018();
2083
2493
  function take(iterable, count) {
2084
2494
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
@@ -2102,7 +2512,7 @@
2102
2512
  var tapAsync$5 = {};
2103
2513
 
2104
2514
  tapAsync$5.tapAsync = void 0;
2105
- const types_1$N = es2018$e;
2515
+ const types_1$N = es2018$a;
2106
2516
  function tapAsync$4(iterable, fn) {
2107
2517
  if ((0, types_1$N.isAsyncIterable)(iterable)) {
2108
2518
  return tapAsyncIterable$2(iterable, fn);
@@ -2185,7 +2595,7 @@
2185
2595
  var uniqByAsync$5 = {};
2186
2596
 
2187
2597
  uniqByAsync$5.uniqByAsync = void 0;
2188
- const types_1$M = es2018$e;
2598
+ const types_1$M = es2018$a;
2189
2599
  function uniqByAsync$4(iterable, fn) {
2190
2600
  if ((0, types_1$M.isAsyncIterable)(iterable)) {
2191
2601
  return uniqByAsyncIterable$2(iterable, fn);
@@ -2254,7 +2664,7 @@
2254
2664
  var zipAsync$5 = {};
2255
2665
 
2256
2666
  zipAsync$5.zipAsync = void 0;
2257
- const types_1$L = es2018$e;
2667
+ const types_1$L = es2018$a;
2258
2668
  var Kind$2;
2259
2669
  (function (Kind) {
2260
2670
  Kind[Kind["Sync"] = 0] = "Sync";
@@ -2425,7 +2835,7 @@
2425
2835
  var eachAsync$5 = {};
2426
2836
 
2427
2837
  eachAsync$5.eachAsync = void 0;
2428
- const types_1$K = es2018$e;
2838
+ const types_1$K = es2018$a;
2429
2839
  function eachAsync$4(iterable, fn) {
2430
2840
  if ((0, types_1$K.isAsyncIterable)(iterable)) {
2431
2841
  return eachAsyncIterable$2(iterable, fn);
@@ -2465,7 +2875,7 @@
2465
2875
  var everyAsync$5 = {};
2466
2876
 
2467
2877
  everyAsync$5.everyAsync = void 0;
2468
- const types_1$J = es2018$e;
2878
+ const types_1$J = es2018$a;
2469
2879
  function everyAsync$4(iterable, predicate) {
2470
2880
  if ((0, types_1$J.isAsyncIterable)(iterable)) {
2471
2881
  return everyAsyncIterable$2(iterable, predicate);
@@ -2511,7 +2921,7 @@
2511
2921
  var findAsync$5 = {};
2512
2922
 
2513
2923
  findAsync$5.findAsync = void 0;
2514
- const types_1$I = es2018$e;
2924
+ const types_1$I = es2018$a;
2515
2925
  function findAsync$4(iterable, predicate) {
2516
2926
  if ((0, types_1$I.isAsyncIterable)(iterable)) {
2517
2927
  return findAsyncIterable$2(iterable, predicate);
@@ -2635,7 +3045,7 @@
2635
3045
  var reduceAsync$5 = {};
2636
3046
 
2637
3047
  reduceAsync$5.reduceAsync = void 0;
2638
- const types_1$H = es2018$e;
3048
+ const types_1$H = es2018$a;
2639
3049
  function reduceAsync$4(iterable, fn, initialValue) {
2640
3050
  if ((0, types_1$H.isUndefined)(initialValue)) {
2641
3051
  return reduceAsyncWithoutInitialValue$2(iterable, fn);
@@ -2731,7 +3141,7 @@
2731
3141
  var reduce$7 = {};
2732
3142
 
2733
3143
  reduce$7.reduce = void 0;
2734
- const types_1$G = es2018$e;
3144
+ const types_1$G = es2018$a;
2735
3145
  function reduce$6(iterable, fn, initialValue) {
2736
3146
  if ((0, types_1$G.isUndefined)(initialValue)) {
2737
3147
  return reduceWithoutInitialValue$2(iterable, fn);
@@ -2778,7 +3188,7 @@
2778
3188
  var someAsync$5 = {};
2779
3189
 
2780
3190
  someAsync$5.someAsync = void 0;
2781
- const types_1$F = es2018$e;
3191
+ const types_1$F = es2018$a;
2782
3192
  function someAsync$4(iterable, predicate) {
2783
3193
  if ((0, types_1$F.isAsyncIterable)(iterable)) {
2784
3194
  return someAsyncIterable$2(iterable, predicate);
@@ -3018,7 +3428,7 @@
3018
3428
  var hasRequiredEs2018$1;
3019
3429
 
3020
3430
  function requireEs2018$1 () {
3021
- if (hasRequiredEs2018$1) return es2018$c;
3431
+ if (hasRequiredEs2018$1) return es2018$e;
3022
3432
  hasRequiredEs2018$1 = 1;
3023
3433
  (function (exports) {
3024
3434
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -3037,8 +3447,8 @@
3037
3447
  };__exportStar(requireMiddleware(), exports);
3038
3448
  __exportStar(output$2, exports);
3039
3449
 
3040
- } (es2018$c));
3041
- return es2018$c;
3450
+ } (es2018$e));
3451
+ return es2018$e;
3042
3452
  }
3043
3453
 
3044
3454
  var getErrorNames$1 = {};
@@ -3057,7 +3467,7 @@
3057
3467
  traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = traverseErrorPrototypeChain;
3058
3468
 
3059
3469
  getErrorNames$1.getErrorNames = void 0;
3060
- const types_1$E = es2018$e;
3470
+ const types_1$E = es2018$a;
3061
3471
  const traverse_error_prototype_chain_1 = traverseErrorPrototypeChain$1;
3062
3472
  function* getErrorNames(err) {
3063
3473
  var _a;
@@ -3078,7 +3488,7 @@
3078
3488
  var serializableError = {};
3079
3489
 
3080
3490
  serializableError.isSerializableError = void 0;
3081
- const types_1$D = es2018$e;
3491
+ const types_1$D = es2018$a;
3082
3492
  function isSerializableError(val) {
3083
3493
  return (0, types_1$D.isObject)(val)
3084
3494
  && (0, types_1$D.isString)(val.name)
@@ -3096,7 +3506,7 @@
3096
3506
  customError.CustomError = void 0;
3097
3507
  const iterable_operator_1 = requireEs2018$1();
3098
3508
  const get_error_names_1 = getErrorNames$1;
3099
- const types_1 = es2018$e;
3509
+ const types_1 = es2018$a;
3100
3510
  const serializable_error_1 = serializableError;
3101
3511
  class CustomError extends Error {
3102
3512
  get name() {
@@ -3122,179 +3532,552 @@
3122
3532
 
3123
3533
  return customError;
3124
3534
  }
3125
-
3126
- var assertionError = {};
3127
-
3128
- var hasRequiredAssertionError;
3129
-
3130
- function requireAssertionError () {
3131
- if (hasRequiredAssertionError) return assertionError;
3132
- hasRequiredAssertionError = 1;
3133
- assertionError.AssertionError = void 0;
3134
- const custom_error_1 = requireCustomError();
3135
- class AssertionError extends custom_error_1.CustomError {
3136
- }
3137
- assertionError.AssertionError = AssertionError;
3138
-
3139
- return assertionError;
3535
+
3536
+ var assertionError = {};
3537
+
3538
+ var hasRequiredAssertionError;
3539
+
3540
+ function requireAssertionError () {
3541
+ if (hasRequiredAssertionError) return assertionError;
3542
+ hasRequiredAssertionError = 1;
3543
+ assertionError.AssertionError = void 0;
3544
+ const custom_error_1 = requireCustomError();
3545
+ class AssertionError extends custom_error_1.CustomError {
3546
+ }
3547
+ assertionError.AssertionError = AssertionError;
3548
+
3549
+ return assertionError;
3550
+ }
3551
+
3552
+ var normalize = {};
3553
+
3554
+ var hasRequiredNormalize;
3555
+
3556
+ function requireNormalize () {
3557
+ if (hasRequiredNormalize) return normalize;
3558
+ hasRequiredNormalize = 1;
3559
+ normalize.normalize = void 0;
3560
+ const get_error_names_1 = getErrorNames$1;
3561
+ const iterable_operator_1 = requireEs2018$1();
3562
+ function normalize$1(err) {
3563
+ var _a;
3564
+ const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
3565
+ return {
3566
+ name,
3567
+ ancestors,
3568
+ message: err.message,
3569
+ stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
3570
+ };
3571
+ }
3572
+ normalize.normalize = normalize$1;
3573
+
3574
+ return normalize;
3575
+ }
3576
+
3577
+ var hydrate$1 = {};
3578
+
3579
+ var es2018$9 = {};
3580
+
3581
+ var pass$3 = {};
3582
+
3583
+ pass$3.pass = void 0;
3584
+ function pass$2() { }
3585
+ pass$3.pass = pass$2;
3586
+
3587
+ (function (exports) {
3588
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3589
+ if (k2 === undefined) k2 = k;
3590
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
3591
+ }) : (function(o, m, k, k2) {
3592
+ if (k2 === undefined) k2 = k;
3593
+ o[k2] = m[k];
3594
+ }));
3595
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3596
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3597
+ };__exportStar(pass$3, exports);
3598
+
3599
+ } (es2018$9));
3600
+
3601
+ hydrate$1.hydrate = void 0;
3602
+ const pass_1 = es2018$9;
3603
+ function hydrate(err) {
3604
+ var _a;
3605
+ const errorNames = [err.name, ...err.ancestors]
3606
+ .slice(0, -1)
3607
+ .reverse();
3608
+ let errorConstructor = Error;
3609
+ for (const name of errorNames) {
3610
+ errorConstructor = createChildErrorConstructor(errorConstructor, name);
3611
+ }
3612
+ const result = new errorConstructor();
3613
+ result.name = err.name;
3614
+ result.message = err.message;
3615
+ result.stack = (_a = err.stack) !== null && _a !== void 0 ? _a : undefined;
3616
+ return result;
3617
+ }
3618
+ hydrate$1.hydrate = hydrate;
3619
+ function createChildErrorConstructor(parentErrorConstructor, name) {
3620
+ const constructor = function () { (0, pass_1.pass)(); };
3621
+ constructor.prototype = Object.create(parentErrorConstructor.prototype);
3622
+ constructor.prototype.constructor = constructor;
3623
+ Object.defineProperty(constructor, 'name', { value: name });
3624
+ return constructor;
3625
+ }
3626
+
3627
+ var assert = {};
3628
+
3629
+ var hasRequiredAssert;
3630
+
3631
+ function requireAssert () {
3632
+ if (hasRequiredAssert) return assert;
3633
+ hasRequiredAssert = 1;
3634
+ assert.assert = void 0;
3635
+ const assertion_error_1 = requireAssertionError();
3636
+ function assert$1(condition, message) {
3637
+ if (!condition)
3638
+ throw new assertion_error_1.AssertionError(message);
3639
+ }
3640
+ assert.assert = assert$1;
3641
+
3642
+ return assert;
3643
+ }
3644
+
3645
+ var hasRequiredEs2018;
3646
+
3647
+ function requireEs2018 () {
3648
+ if (hasRequiredEs2018) return es2018$f;
3649
+ hasRequiredEs2018 = 1;
3650
+ (function (exports) {
3651
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3652
+ if (k2 === undefined) k2 = k;
3653
+ var desc = Object.getOwnPropertyDescriptor(m, k);
3654
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3655
+ desc = { enumerable: true, get: function() { return m[k]; } };
3656
+ }
3657
+ Object.defineProperty(o, k2, desc);
3658
+ }) : (function(o, m, k, k2) {
3659
+ if (k2 === undefined) k2 = k;
3660
+ o[k2] = m[k];
3661
+ }));
3662
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3663
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3664
+ };__exportStar(requireCustomError(), exports);
3665
+ __exportStar(requireAssertionError(), exports);
3666
+ __exportStar(serializableError, exports);
3667
+ __exportStar(requireNormalize(), exports);
3668
+ __exportStar(hydrate$1, exports);
3669
+ __exportStar(requireAssert(), exports);
3670
+ __exportStar(getErrorNames$1, exports);
3671
+ __exportStar(traverseErrorPrototypeChain$1, exports);
3672
+
3673
+ } (es2018$f));
3674
+ return es2018$f;
3675
+ }
3676
+
3677
+ var es2018$8 = {};
3678
+
3679
+ var middleware$1 = {};
3680
+
3681
+ var chunkAsync$3 = {};
3682
+
3683
+ chunkAsync$3.chunkAsync = void 0;
3684
+ const go_1$v = es2018$d;
3685
+ const errors_1$C = requireEs2018();
3686
+ function chunkAsync$2(iterable, size) {
3687
+ (0, errors_1$C.assert)(Number.isInteger(size), 'The parameter size must be an integer');
3688
+ (0, errors_1$C.assert)(size > 0, 'The parameter size must be greater than 0');
3689
+ return (0, go_1$v.go)(async function* () {
3690
+ let buffer = [];
3691
+ for await (const element of iterable) {
3692
+ buffer.push(element);
3693
+ if (buffer.length >= size) {
3694
+ yield buffer;
3695
+ buffer = [];
3696
+ }
3697
+ }
3698
+ if (buffer.length)
3699
+ yield buffer;
3700
+ });
3701
+ }
3702
+ chunkAsync$3.chunkAsync = chunkAsync$2;
3703
+
3704
+ var chunkByAsync$3 = {};
3705
+
3706
+ var es2018$7 = {};
3707
+
3708
+ var array$2 = {};
3709
+
3710
+ array$2.isntEmptyArray = array$2.isEmptyArray = array$2.isntArray = array$2.isArray = void 0;
3711
+ function isArray$5(val) {
3712
+ return Array.isArray(val);
3713
+ }
3714
+ array$2.isArray = isArray$5;
3715
+ function isntArray$2(val) {
3716
+ return !isArray$5(val);
3717
+ }
3718
+ array$2.isntArray = isntArray$2;
3719
+ function isEmptyArray$2(val) {
3720
+ return val.length === 0;
3721
+ }
3722
+ array$2.isEmptyArray = isEmptyArray$2;
3723
+ function isntEmptyArray$2(val) {
3724
+ return val.length !== 0;
3725
+ }
3726
+ array$2.isntEmptyArray = isntEmptyArray$2;
3727
+
3728
+ var asyncIterable$2 = {};
3729
+
3730
+ var _null$2 = {};
3731
+
3732
+ _null$2.isntNull = _null$2.isNull = void 0;
3733
+ function isNull$2(val) {
3734
+ return val === null;
3735
+ }
3736
+ _null$2.isNull = isNull$2;
3737
+ function isntNull$2(val) {
3738
+ return !isNull$2(val);
3739
+ }
3740
+ _null$2.isntNull = isntNull$2;
3741
+
3742
+ var _undefined$2 = {};
3743
+
3744
+ _undefined$2.isntUndefined = _undefined$2.isUndefined = void 0;
3745
+ function isUndefined$2(val) {
3746
+ return val === undefined;
3747
+ }
3748
+ _undefined$2.isUndefined = isUndefined$2;
3749
+ function isntUndefined$2(val) {
3750
+ return !isUndefined$2(val);
3751
+ }
3752
+ _undefined$2.isntUndefined = isntUndefined$2;
3753
+
3754
+ var _function$2 = {};
3755
+
3756
+ _function$2.isntFunction = _function$2.isFunction = void 0;
3757
+ function isFunction$4(val) {
3758
+ return typeof val === 'function';
3759
+ }
3760
+ _function$2.isFunction = isFunction$4;
3761
+ function isntFunction$2(val) {
3762
+ return !isFunction$4(val);
3763
+ }
3764
+ _function$2.isntFunction = isntFunction$2;
3765
+
3766
+ asyncIterable$2.isntAsyncIterable = asyncIterable$2.isAsyncIterable = void 0;
3767
+ const null_1$8 = _null$2;
3768
+ const undefined_1$5 = _undefined$2;
3769
+ const function_1$8 = _function$2;
3770
+ function isAsyncIterable$4(val) {
3771
+ return (0, null_1$8.isntNull)(val)
3772
+ && (0, undefined_1$5.isntUndefined)(val)
3773
+ && (0, function_1$8.isFunction)(val[Symbol.asyncIterator]);
3774
+ }
3775
+ asyncIterable$2.isAsyncIterable = isAsyncIterable$4;
3776
+ function isntAsyncIterable$2(val) {
3777
+ return !isAsyncIterable$4(val);
3778
+ }
3779
+ asyncIterable$2.isntAsyncIterable = isntAsyncIterable$2;
3780
+
3781
+ var bigint$2 = {};
3782
+
3783
+ bigint$2.isntBigInt = bigint$2.isBigInt = void 0;
3784
+ function isBigInt$2(val) {
3785
+ return typeof val === 'bigint';
3786
+ }
3787
+ bigint$2.isBigInt = isBigInt$2;
3788
+ function isntBigInt$2(val) {
3789
+ return !isBigInt$2(val);
3790
+ }
3791
+ bigint$2.isntBigInt = isntBigInt$2;
3792
+
3793
+ var boolean$2 = {};
3794
+
3795
+ boolean$2.isntBoolean = boolean$2.isBoolean = void 0;
3796
+ function isBoolean$2(val) {
3797
+ return typeof val === 'boolean';
3798
+ }
3799
+ boolean$2.isBoolean = isBoolean$2;
3800
+ function isntBoolean$2(val) {
3801
+ return !isBoolean$2(val);
3802
+ }
3803
+ boolean$2.isntBoolean = isntBoolean$2;
3804
+
3805
+ var char$2 = {};
3806
+
3807
+ var string$2 = {};
3808
+
3809
+ string$2.isntString = string$2.isString = void 0;
3810
+ function isString$2(val) {
3811
+ return typeof val === 'string';
3812
+ }
3813
+ string$2.isString = isString$2;
3814
+ function isntString$2(val) {
3815
+ return !isString$2(val);
3816
+ }
3817
+ string$2.isntString = isntString$2;
3818
+
3819
+ char$2.isntChar = char$2.isChar = void 0;
3820
+ const string_1$5 = string$2;
3821
+ function isChar$2(val) {
3822
+ return (0, string_1$5.isString)(val)
3823
+ && val.length === 1;
3824
+ }
3825
+ char$2.isChar = isChar$2;
3826
+ function isntChar$2(val) {
3827
+ return !isChar$2(val);
3828
+ }
3829
+ char$2.isntChar = isntChar$2;
3830
+
3831
+ var date$2 = {};
3832
+
3833
+ date$2.isntDate = date$2.isDate = void 0;
3834
+ function isDate$3(val) {
3835
+ return val instanceof Date;
3836
+ }
3837
+ date$2.isDate = isDate$3;
3838
+ function isntDate$2(val) {
3839
+ return !isDate$3(val);
3840
+ }
3841
+ date$2.isntDate = isntDate$2;
3842
+
3843
+ var _enum$2 = {};
3844
+
3845
+ _enum$2.inEnum = void 0;
3846
+ function inEnum$2(val, _enum) {
3847
+ return Object.values(_enum).includes(val);
3848
+ }
3849
+ _enum$2.inEnum = inEnum$2;
3850
+
3851
+ var error$2 = {};
3852
+
3853
+ error$2.isntError = error$2.isError = void 0;
3854
+ function isError$2(val) {
3855
+ return val instanceof Error;
3856
+ }
3857
+ error$2.isError = isError$2;
3858
+ function isntError$2(val) {
3859
+ return !isError$2(val);
3860
+ }
3861
+ error$2.isntError = isntError$2;
3862
+
3863
+ var falsy$2 = {};
3864
+
3865
+ falsy$2.isntFalsy = falsy$2.isFalsy = void 0;
3866
+ function isFalsy$2(val) {
3867
+ return !val;
3868
+ }
3869
+ falsy$2.isFalsy = isFalsy$2;
3870
+ function isntFalsy$2(val) {
3871
+ return !isFalsy$2(val);
3872
+ }
3873
+ falsy$2.isntFalsy = isntFalsy$2;
3874
+
3875
+ var iterable$2 = {};
3876
+
3877
+ iterable$2.isntIterable = iterable$2.isIterable = void 0;
3878
+ const null_1$7 = _null$2;
3879
+ const undefined_1$4 = _undefined$2;
3880
+ const function_1$7 = _function$2;
3881
+ function isIterable$4(val) {
3882
+ return (0, null_1$7.isntNull)(val)
3883
+ && (0, undefined_1$4.isntUndefined)(val)
3884
+ && (0, function_1$7.isFunction)(val[Symbol.iterator]);
3885
+ }
3886
+ iterable$2.isIterable = isIterable$4;
3887
+ function isntIterable$2(val) {
3888
+ return !isIterable$4(val);
3889
+ }
3890
+ iterable$2.isntIterable = isntIterable$2;
3891
+
3892
+ var json$2 = {};
3893
+
3894
+ var number$2 = {};
3895
+
3896
+ number$2.isntNaN = number$2.isNaN = number$2.isNegativeInfinity = number$2.isPositiveInfinity = number$2.isFinite = number$2.isntNumber = number$2.isNumber = void 0;
3897
+ function isNumber$2(val) {
3898
+ return typeof val === 'number';
3899
+ }
3900
+ number$2.isNumber = isNumber$2;
3901
+ function isntNumber$2(val) {
3902
+ return !isNumber$2(val);
3903
+ }
3904
+ number$2.isntNumber = isntNumber$2;
3905
+ function isFinite$2(val) {
3906
+ return Number.isFinite(val);
3907
+ }
3908
+ number$2.isFinite = isFinite$2;
3909
+ function isPositiveInfinity$2(val) {
3910
+ return val === Infinity;
3911
+ }
3912
+ number$2.isPositiveInfinity = isPositiveInfinity$2;
3913
+ function isNegativeInfinity$2(val) {
3914
+ return val === -Infinity;
3915
+ }
3916
+ number$2.isNegativeInfinity = isNegativeInfinity$2;
3917
+ function isNaN$3(val) {
3918
+ return Number.isNaN(val);
3919
+ }
3920
+ number$2.isNaN = isNaN$3;
3921
+ function isntNaN$2(val) {
3922
+ return !isNaN$3(val);
3923
+ }
3924
+ number$2.isntNaN = isntNaN$2;
3925
+
3926
+ var object$2 = {};
3927
+
3928
+ var __importDefault$2 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
3929
+ return (mod && mod.__esModule) ? mod : { "default": mod };
3930
+ };object$2.isntEmptyObject = object$2.isEmptyObject = object$2.isntPlainObject = object$2.isPlainObject = object$2.isntObject = object$2.isObject = void 0;
3931
+ const isPlainObject_1$2 = __importDefault$2(isPlainObject_1$5);
3932
+ function isObject$2(val) {
3933
+ return val !== null
3934
+ && typeof val === 'object';
3935
+ }
3936
+ object$2.isObject = isObject$2;
3937
+ function isntObject$2(val) {
3938
+ return !isObject$2(val);
3939
+ }
3940
+ object$2.isntObject = isntObject$2;
3941
+ function isPlainObject$2(val) {
3942
+ return (0, isPlainObject_1$2.default)(val);
3943
+ }
3944
+ object$2.isPlainObject = isPlainObject$2;
3945
+ function isntPlainObject$2(val) {
3946
+ return !isPlainObject$2(val);
3947
+ }
3948
+ object$2.isntPlainObject = isntPlainObject$2;
3949
+ function isEmptyObject$2(val) {
3950
+ return Object.keys(val).length === 0;
3951
+ }
3952
+ object$2.isEmptyObject = isEmptyObject$2;
3953
+ function isntEmptyObject$2(val) {
3954
+ return Object.keys(val).length !== 0;
3955
+ }
3956
+ object$2.isntEmptyObject = isntEmptyObject$2;
3957
+
3958
+ json$2.isntJsonable = json$2.isJsonable = json$2.isntJson = json$2.isJson = void 0;
3959
+ const null_1$6 = _null$2;
3960
+ const boolean_1$2 = boolean$2;
3961
+ const string_1$4 = string$2;
3962
+ const number_1$2 = number$2;
3963
+ const array_1$2 = array$2;
3964
+ const object_1$5 = object$2;
3965
+ function isJson$2(val) {
3966
+ return (0, null_1$6.isNull)(val)
3967
+ || (0, boolean_1$2.isBoolean)(val)
3968
+ || (0, string_1$4.isString)(val)
3969
+ || (0, number_1$2.isNumber)(val)
3970
+ || ((0, array_1$2.isArray)(val) && val.every(isJson$2))
3971
+ || ((0, object_1$5.isPlainObject)(val) && Object.values(val).every(isJson$2));
3972
+ }
3973
+ json$2.isJson = isJson$2;
3974
+ function isntJson$2(val) {
3975
+ return !isJson$2(val);
3976
+ }
3977
+ json$2.isntJson = isntJson$2;
3978
+ function isJsonable$2(val) {
3979
+ try {
3980
+ JSON.stringify(val);
3981
+ return true;
3982
+ }
3983
+ catch (_a) {
3984
+ return false;
3985
+ }
3140
3986
  }
3987
+ json$2.isJsonable = isJsonable$2;
3988
+ function isntJsonable$2(val) {
3989
+ return !isntJsonable$2();
3990
+ }
3991
+ json$2.isntJsonable = isntJsonable$2;
3141
3992
 
3142
- var normalize = {};
3143
-
3144
- var hasRequiredNormalize;
3993
+ var promise$2 = {};
3145
3994
 
3146
- function requireNormalize () {
3147
- if (hasRequiredNormalize) return normalize;
3148
- hasRequiredNormalize = 1;
3149
- normalize.normalize = void 0;
3150
- const get_error_names_1 = getErrorNames$1;
3151
- const iterable_operator_1 = requireEs2018$1();
3152
- function normalize$1(err) {
3153
- var _a;
3154
- const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
3155
- return {
3156
- name,
3157
- ancestors,
3158
- message: err.message,
3159
- stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
3160
- };
3161
- }
3162
- normalize.normalize = normalize$1;
3163
-
3164
- return normalize;
3995
+ promise$2.isPromiseLike = promise$2.isntPromiseLike = promise$2.isntPromise = promise$2.isPromise = void 0;
3996
+ const object_1$4 = object$2;
3997
+ const function_1$6 = _function$2;
3998
+ function isPromise$4(val) {
3999
+ return val instanceof Promise;
4000
+ }
4001
+ promise$2.isPromise = isPromise$4;
4002
+ function isntPromise$2(val) {
4003
+ return !isPromise$4(val);
4004
+ }
4005
+ promise$2.isntPromise = isntPromise$2;
4006
+ function isntPromiseLike$2(val) {
4007
+ return !isPromiseLike$2(val);
4008
+ }
4009
+ promise$2.isntPromiseLike = isntPromiseLike$2;
4010
+ function isPromiseLike$2(val) {
4011
+ return (0, object_1$4.isObject)(val)
4012
+ && (0, function_1$6.isFunction)(val.then);
3165
4013
  }
4014
+ promise$2.isPromiseLike = isPromiseLike$2;
3166
4015
 
3167
- var hydrate$1 = {};
4016
+ var url$2 = {};
3168
4017
 
3169
- var es2018$8 = {};
4018
+ url$2.isAbsoluteURL = void 0;
4019
+ function isAbsoluteURL$2(str) {
4020
+ try {
4021
+ new URL(str);
4022
+ return true;
4023
+ }
4024
+ catch (_a) {
4025
+ return false;
4026
+ }
4027
+ }
4028
+ url$2.isAbsoluteURL = isAbsoluteURL$2;
3170
4029
 
3171
- var pass$3 = {};
4030
+ var regexp$2 = {};
3172
4031
 
3173
- pass$3.pass = void 0;
3174
- function pass$2() { }
3175
- pass$3.pass = pass$2;
4032
+ regexp$2.isntRegExp = regexp$2.isRegExp = void 0;
4033
+ function isRegExp$2(val) {
4034
+ return val instanceof RegExp;
4035
+ }
4036
+ regexp$2.isRegExp = isRegExp$2;
4037
+ function isntRegExp$2(val) {
4038
+ return !isRegExp$2(val);
4039
+ }
4040
+ regexp$2.isntRegExp = isntRegExp$2;
3176
4041
 
3177
4042
  (function (exports) {
3178
4043
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3179
4044
  if (k2 === undefined) k2 = k;
3180
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4045
+ var desc = Object.getOwnPropertyDescriptor(m, k);
4046
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
4047
+ desc = { enumerable: true, get: function() { return m[k]; } };
4048
+ }
4049
+ Object.defineProperty(o, k2, desc);
3181
4050
  }) : (function(o, m, k, k2) {
3182
4051
  if (k2 === undefined) k2 = k;
3183
4052
  o[k2] = m[k];
3184
4053
  }));
3185
4054
  var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3186
4055
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3187
- };__exportStar(pass$3, exports);
3188
-
3189
- } (es2018$8));
3190
-
3191
- hydrate$1.hydrate = void 0;
3192
- const pass_1 = es2018$8;
3193
- function hydrate(err) {
3194
- var _a;
3195
- const errorNames = [err.name, ...err.ancestors]
3196
- .slice(0, -1)
3197
- .reverse();
3198
- let errorConstructor = Error;
3199
- for (const name of errorNames) {
3200
- errorConstructor = createChildErrorConstructor(errorConstructor, name);
3201
- }
3202
- const result = new errorConstructor();
3203
- result.name = err.name;
3204
- result.message = err.message;
3205
- result.stack = (_a = err.stack) !== null && _a !== void 0 ? _a : undefined;
3206
- return result;
3207
- }
3208
- hydrate$1.hydrate = hydrate;
3209
- function createChildErrorConstructor(parentErrorConstructor, name) {
3210
- const constructor = function () { (0, pass_1.pass)(); };
3211
- constructor.prototype = Object.create(parentErrorConstructor.prototype);
3212
- constructor.prototype.constructor = constructor;
3213
- Object.defineProperty(constructor, 'name', { value: name });
3214
- return constructor;
3215
- }
3216
-
3217
- var assert = {};
3218
-
3219
- var hasRequiredAssert;
3220
-
3221
- function requireAssert () {
3222
- if (hasRequiredAssert) return assert;
3223
- hasRequiredAssert = 1;
3224
- assert.assert = void 0;
3225
- const assertion_error_1 = requireAssertionError();
3226
- function assert$1(condition, message) {
3227
- if (!condition)
3228
- throw new assertion_error_1.AssertionError(message);
3229
- }
3230
- assert.assert = assert$1;
4056
+ };__exportStar(array$2, exports);
4057
+ __exportStar(asyncIterable$2, exports);
4058
+ __exportStar(bigint$2, exports);
4059
+ __exportStar(boolean$2, exports);
4060
+ __exportStar(char$2, exports);
4061
+ __exportStar(date$2, exports);
4062
+ __exportStar(_enum$2, exports);
4063
+ __exportStar(error$2, exports);
4064
+ __exportStar(falsy$2, exports);
4065
+ __exportStar(_function$2, exports);
4066
+ __exportStar(iterable$2, exports);
4067
+ __exportStar(json$2, exports);
4068
+ __exportStar(_null$2, exports);
4069
+ __exportStar(number$2, exports);
4070
+ __exportStar(object$2, exports);
4071
+ __exportStar(promise$2, exports);
4072
+ __exportStar(string$2, exports);
4073
+ __exportStar(_undefined$2, exports);
4074
+ __exportStar(url$2, exports);
4075
+ __exportStar(regexp$2, exports);
3231
4076
 
3232
- return assert;
3233
- }
3234
-
3235
- var hasRequiredEs2018;
3236
-
3237
- function requireEs2018 () {
3238
- if (hasRequiredEs2018) return es2018$d;
3239
- hasRequiredEs2018 = 1;
3240
- (function (exports) {
3241
- var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3242
- if (k2 === undefined) k2 = k;
3243
- var desc = Object.getOwnPropertyDescriptor(m, k);
3244
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3245
- desc = { enumerable: true, get: function() { return m[k]; } };
3246
- }
3247
- Object.defineProperty(o, k2, desc);
3248
- }) : (function(o, m, k, k2) {
3249
- if (k2 === undefined) k2 = k;
3250
- o[k2] = m[k];
3251
- }));
3252
- var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3253
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3254
- };__exportStar(requireCustomError(), exports);
3255
- __exportStar(requireAssertionError(), exports);
3256
- __exportStar(serializableError, exports);
3257
- __exportStar(requireNormalize(), exports);
3258
- __exportStar(hydrate$1, exports);
3259
- __exportStar(requireAssert(), exports);
3260
- __exportStar(getErrorNames$1, exports);
3261
- __exportStar(traverseErrorPrototypeChain$1, exports);
3262
-
3263
- } (es2018$d));
3264
- return es2018$d;
3265
- }
3266
-
3267
- var es2018$7 = {};
3268
-
3269
- var middleware$1 = {};
3270
-
3271
- var chunkAsync$3 = {};
3272
-
3273
- chunkAsync$3.chunkAsync = void 0;
3274
- const go_1$v = es2018$b;
3275
- const errors_1$C = requireEs2018();
3276
- function chunkAsync$2(iterable, size) {
3277
- (0, errors_1$C.assert)(Number.isInteger(size), 'The parameter size must be an integer');
3278
- (0, errors_1$C.assert)(size > 0, 'The parameter size must be greater than 0');
3279
- return (0, go_1$v.go)(async function* () {
3280
- let buffer = [];
3281
- for await (const element of iterable) {
3282
- buffer.push(element);
3283
- if (buffer.length >= size) {
3284
- yield buffer;
3285
- buffer = [];
3286
- }
3287
- }
3288
- if (buffer.length)
3289
- yield buffer;
3290
- });
3291
- }
3292
- chunkAsync$3.chunkAsync = chunkAsync$2;
3293
-
3294
- var chunkByAsync$3 = {};
4077
+ } (es2018$7));
3295
4078
 
3296
4079
  chunkByAsync$3.chunkByAsync = void 0;
3297
- const types_1$C = es2018$e;
4080
+ const types_1$C = es2018$7;
3298
4081
  function chunkByAsync$2(iterable, predicate) {
3299
4082
  if ((0, types_1$C.isAsyncIterable)(iterable)) {
3300
4083
  return chunkByAsyncIterable$1(iterable, predicate);
@@ -3355,7 +4138,7 @@
3355
4138
  var chunk$3 = {};
3356
4139
 
3357
4140
  chunk$3.chunk = void 0;
3358
- const go_1$u = es2018$b;
4141
+ const go_1$u = es2018$d;
3359
4142
  const errors_1$B = requireEs2018();
3360
4143
  function chunk$2(iterable, size) {
3361
4144
  (0, errors_1$B.assert)(Number.isInteger(size), 'The parameter size must be an integer');
@@ -3378,8 +4161,8 @@
3378
4161
  var concatAsync$3 = {};
3379
4162
 
3380
4163
  concatAsync$3.concatAsync = void 0;
3381
- const types_1$B = es2018$e;
3382
- const go_1$t = es2018$b;
4164
+ const types_1$B = es2018$7;
4165
+ const go_1$t = es2018$d;
3383
4166
  function concatAsync$2(iterable, ...otherIterables) {
3384
4167
  return (0, go_1$t.go)(async function* () {
3385
4168
  for (const iter of [iterable, ...otherIterables]) {
@@ -3401,7 +4184,7 @@
3401
4184
  var concat$7 = {};
3402
4185
 
3403
4186
  concat$7.concat = void 0;
3404
- const go_1$s = es2018$b;
4187
+ const go_1$s = es2018$d;
3405
4188
  function concat$6(iterable, ...otherIterables) {
3406
4189
  return (0, go_1$s.go)(function* () {
3407
4190
  for (const iter of [iterable, ...otherIterables]) {
@@ -3430,7 +4213,7 @@
3430
4213
  utils$1.copyIterable = copyIterable$1;
3431
4214
 
3432
4215
  dropAsync$3.dropAsync = void 0;
3433
- const go_1$r = es2018$b;
4216
+ const go_1$r = es2018$d;
3434
4217
  const utils_1$7 = utils$1;
3435
4218
  const errors_1$A = requireEs2018();
3436
4219
  function dropAsync$2(iterable, count) {
@@ -3465,7 +4248,7 @@
3465
4248
  var dropRightAsync$3 = {};
3466
4249
 
3467
4250
  dropRightAsync$3.dropRightAsync = void 0;
3468
- const go_1$q = es2018$b;
4251
+ const go_1$q = es2018$d;
3469
4252
  const utils_1$6 = utils$1;
3470
4253
  const errors_1$z = requireEs2018();
3471
4254
  function dropRightAsync$2(iterable, count) {
@@ -3493,7 +4276,7 @@
3493
4276
  var dropRight$3 = {};
3494
4277
 
3495
4278
  dropRight$3.dropRight = void 0;
3496
- const go_1$p = es2018$b;
4279
+ const go_1$p = es2018$d;
3497
4280
  const utils_1$5 = utils$1;
3498
4281
  const errors_1$y = requireEs2018();
3499
4282
  function dropRight$2(iterable, count) {
@@ -3511,7 +4294,7 @@
3511
4294
  var dropUntilAsync$3 = {};
3512
4295
 
3513
4296
  dropUntilAsync$3.dropUntilAsync = void 0;
3514
- const types_1$A = es2018$e;
4297
+ const types_1$A = es2018$7;
3515
4298
  function dropUntilAsync$2(iterable, predicate) {
3516
4299
  if ((0, types_1$A.isAsyncIterable)(iterable)) {
3517
4300
  return dropUntilAsyncIterable$1(iterable, predicate);
@@ -3593,7 +4376,7 @@
3593
4376
  var drop$3 = {};
3594
4377
 
3595
4378
  drop$3.drop = void 0;
3596
- const go_1$o = es2018$b;
4379
+ const go_1$o = es2018$d;
3597
4380
  const utils_1$4 = utils$1;
3598
4381
  const errors_1$x = requireEs2018();
3599
4382
  function drop$2(iterable, count) {
@@ -3628,7 +4411,7 @@
3628
4411
  var filterAsync$3 = {};
3629
4412
 
3630
4413
  filterAsync$3.filterAsync = void 0;
3631
- const types_1$z = es2018$e;
4414
+ const types_1$z = es2018$7;
3632
4415
  function filterAsync$2(iterable, predicate) {
3633
4416
  if ((0, types_1$z.isAsyncIterable)(iterable)) {
3634
4417
  return filterAsyncIterable$1(iterable, predicate);
@@ -3675,7 +4458,7 @@
3675
4458
  var flattenByAsync$3 = {};
3676
4459
 
3677
4460
  flattenByAsync$3.flattenByAsync = void 0;
3678
- const types_1$y = es2018$e;
4461
+ const types_1$y = es2018$7;
3679
4462
  function flattenByAsync$2(iterable, predicate) {
3680
4463
  if ((0, types_1$y.isAsyncIterable)(iterable)) {
3681
4464
  return flattenByAsyncIterable$1(iterable, predicate);
@@ -3733,7 +4516,7 @@
3733
4516
  var flattenBy$3 = {};
3734
4517
 
3735
4518
  flattenBy$3.flattenBy = void 0;
3736
- const types_1$x = es2018$e;
4519
+ const types_1$x = es2018$7;
3737
4520
  function flattenBy$2(iterable, predicate) {
3738
4521
  return flatten$6(iterable, predicate, 1);
3739
4522
  }
@@ -3776,7 +4559,7 @@
3776
4559
  var mapAsync$3 = {};
3777
4560
 
3778
4561
  mapAsync$3.mapAsync = void 0;
3779
- const types_1$w = es2018$e;
4562
+ const types_1$w = es2018$7;
3780
4563
  function mapAsync$2(iterable, fn) {
3781
4564
  if ((0, types_1$w.isAsyncIterable)(iterable)) {
3782
4565
  return mapAsyncIterable$1(iterable, fn);
@@ -3816,7 +4599,7 @@
3816
4599
  var repeatAsync$3 = {};
3817
4600
 
3818
4601
  repeatAsync$3.repeatAsync = void 0;
3819
- const go_1$n = es2018$b;
4602
+ const go_1$n = es2018$d;
3820
4603
  const errors_1$u = requireEs2018();
3821
4604
  function repeatAsync$2(iterable, times) {
3822
4605
  (0, errors_1$u.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
@@ -3851,7 +4634,7 @@
3851
4634
  var repeat$5 = {};
3852
4635
 
3853
4636
  repeat$5.repeat = void 0;
3854
- const go_1$m = es2018$b;
4637
+ const go_1$m = es2018$d;
3855
4638
  const errors_1$t = requireEs2018();
3856
4639
  function repeat$4(iterable, times) {
3857
4640
  (0, errors_1$t.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
@@ -3886,7 +4669,7 @@
3886
4669
  var sliceAsync$3 = {};
3887
4670
 
3888
4671
  sliceAsync$3.sliceAsync = void 0;
3889
- const go_1$l = es2018$b;
4672
+ const go_1$l = es2018$d;
3890
4673
  const errors_1$s = requireEs2018();
3891
4674
  function sliceAsync$2(iterable, start, end = Infinity) {
3892
4675
  (0, errors_1$s.assert)(Number.isInteger(start), 'The parameter start must be an integer');
@@ -3909,7 +4692,7 @@
3909
4692
  var slice$3 = {};
3910
4693
 
3911
4694
  slice$3.slice = void 0;
3912
- const go_1$k = es2018$b;
4695
+ const go_1$k = es2018$d;
3913
4696
  const errors_1$r = requireEs2018();
3914
4697
  function slice$2(iterable, start, end = Infinity) {
3915
4698
  (0, errors_1$r.assert)(Number.isInteger(start), 'The parameter start must be an integer');
@@ -3950,7 +4733,7 @@
3950
4733
  var splitByAsync$3 = {};
3951
4734
 
3952
4735
  splitByAsync$3.splitByAsync = void 0;
3953
- const types_1$v = es2018$e;
4736
+ const types_1$v = es2018$7;
3954
4737
  function splitByAsync$2(iterable, predicate) {
3955
4738
  if ((0, types_1$v.isAsyncIterable)(iterable)) {
3956
4739
  return splitByAsyncIterable$1(iterable, predicate);
@@ -4032,7 +4815,7 @@
4032
4815
  var takeAsync$3 = {};
4033
4816
 
4034
4817
  takeAsync$3.takeAsync = void 0;
4035
- const go_1$j = es2018$b;
4818
+ const go_1$j = es2018$d;
4036
4819
  const errors_1$q = requireEs2018();
4037
4820
  function takeAsync$2(iterable, count) {
4038
4821
  (0, errors_1$q.assert)(Number.isInteger(count), 'The parameter count must be an integer');
@@ -4053,7 +4836,7 @@
4053
4836
  var takeRightAsync$3 = {};
4054
4837
 
4055
4838
  takeRightAsync$3.takeRightAsync = void 0;
4056
- const go_1$i = es2018$b;
4839
+ const go_1$i = es2018$d;
4057
4840
  const errors_1$p = requireEs2018();
4058
4841
  function takeRightAsync$2(iterable, count) {
4059
4842
  (0, errors_1$p.assert)(Number.isInteger(count), 'The parameter count must be an integer');
@@ -4083,7 +4866,7 @@
4083
4866
  var takeRight$3 = {};
4084
4867
 
4085
4868
  takeRight$3.takeRight = void 0;
4086
- const go_1$h = es2018$b;
4869
+ const go_1$h = es2018$d;
4087
4870
  const errors_1$o = requireEs2018();
4088
4871
  function takeRight$2(iterable, count) {
4089
4872
  (0, errors_1$o.assert)(Number.isInteger(count), 'The parameter count must be an integer');
@@ -4113,7 +4896,7 @@
4113
4896
  var takeUntilAsync$3 = {};
4114
4897
 
4115
4898
  takeUntilAsync$3.takeUntilAsync = void 0;
4116
- const types_1$u = es2018$e;
4899
+ const types_1$u = es2018$7;
4117
4900
  function takeUntilAsync$2(iterable, predicate) {
4118
4901
  if ((0, types_1$u.isAsyncIterable)(iterable)) {
4119
4902
  return takeUntilAsyncIterable$1(iterable, predicate);
@@ -4159,7 +4942,7 @@
4159
4942
  var take$5 = {};
4160
4943
 
4161
4944
  take$5.take = void 0;
4162
- const go_1$g = es2018$b;
4945
+ const go_1$g = es2018$d;
4163
4946
  const errors_1$n = requireEs2018();
4164
4947
  function take$4(iterable, count) {
4165
4948
  (0, errors_1$n.assert)(Number.isInteger(count), 'The parameter count must be an integer');
@@ -4180,7 +4963,7 @@
4180
4963
  var tapAsync$3 = {};
4181
4964
 
4182
4965
  tapAsync$3.tapAsync = void 0;
4183
- const types_1$t = es2018$e;
4966
+ const types_1$t = es2018$7;
4184
4967
  function tapAsync$2(iterable, fn) {
4185
4968
  if ((0, types_1$t.isAsyncIterable)(iterable)) {
4186
4969
  return tapAsyncIterable$1(iterable, fn);
@@ -4263,7 +5046,7 @@
4263
5046
  var uniqByAsync$3 = {};
4264
5047
 
4265
5048
  uniqByAsync$3.uniqByAsync = void 0;
4266
- const types_1$s = es2018$e;
5049
+ const types_1$s = es2018$7;
4267
5050
  function uniqByAsync$2(iterable, fn) {
4268
5051
  if ((0, types_1$s.isAsyncIterable)(iterable)) {
4269
5052
  return uniqByAsyncIterable$1(iterable, fn);
@@ -4332,7 +5115,7 @@
4332
5115
  var zipAsync$3 = {};
4333
5116
 
4334
5117
  zipAsync$3.zipAsync = void 0;
4335
- const types_1$r = es2018$e;
5118
+ const types_1$r = es2018$7;
4336
5119
  var Kind$1;
4337
5120
  (function (Kind) {
4338
5121
  Kind[Kind["Sync"] = 0] = "Sync";
@@ -4496,7 +5279,7 @@
4496
5279
  var eachAsync$3 = {};
4497
5280
 
4498
5281
  eachAsync$3.eachAsync = void 0;
4499
- const types_1$q = es2018$e;
5282
+ const types_1$q = es2018$7;
4500
5283
  function eachAsync$2(iterable, fn) {
4501
5284
  if ((0, types_1$q.isAsyncIterable)(iterable)) {
4502
5285
  return eachAsyncIterable$1(iterable, fn);
@@ -4536,7 +5319,7 @@
4536
5319
  var everyAsync$3 = {};
4537
5320
 
4538
5321
  everyAsync$3.everyAsync = void 0;
4539
- const types_1$p = es2018$e;
5322
+ const types_1$p = es2018$7;
4540
5323
  function everyAsync$2(iterable, predicate) {
4541
5324
  if ((0, types_1$p.isAsyncIterable)(iterable)) {
4542
5325
  return everyAsyncIterable$1(iterable, predicate);
@@ -4582,7 +5365,7 @@
4582
5365
  var findAsync$3 = {};
4583
5366
 
4584
5367
  findAsync$3.findAsync = void 0;
4585
- const types_1$o = es2018$e;
5368
+ const types_1$o = es2018$7;
4586
5369
  function findAsync$2(iterable, predicate) {
4587
5370
  if ((0, types_1$o.isAsyncIterable)(iterable)) {
4588
5371
  return findAsyncIterable$1(iterable, predicate);
@@ -4706,7 +5489,7 @@
4706
5489
  var reduceAsync$3 = {};
4707
5490
 
4708
5491
  reduceAsync$3.reduceAsync = void 0;
4709
- const types_1$n = es2018$e;
5492
+ const types_1$n = es2018$7;
4710
5493
  function reduceAsync$2(iterable, fn, initialValue) {
4711
5494
  if ((0, types_1$n.isUndefined)(initialValue)) {
4712
5495
  return reduceAsyncWithoutInitialValue$1(iterable, fn);
@@ -4802,7 +5585,7 @@
4802
5585
  var reduce$5 = {};
4803
5586
 
4804
5587
  reduce$5.reduce = void 0;
4805
- const types_1$m = es2018$e;
5588
+ const types_1$m = es2018$7;
4806
5589
  function reduce$4(iterable, fn, initialValue) {
4807
5590
  if ((0, types_1$m.isUndefined)(initialValue)) {
4808
5591
  return reduceWithoutInitialValue$1(iterable, fn);
@@ -4849,7 +5632,7 @@
4849
5632
  var someAsync$3 = {};
4850
5633
 
4851
5634
  someAsync$3.someAsync = void 0;
4852
- const types_1$l = es2018$e;
5635
+ const types_1$l = es2018$7;
4853
5636
  function someAsync$2(iterable, predicate) {
4854
5637
  if ((0, types_1$l.isAsyncIterable)(iterable)) {
4855
5638
  return someAsyncIterable$1(iterable, predicate);
@@ -5103,11 +5886,11 @@
5103
5886
  };__exportStar(middleware$1, exports);
5104
5887
  __exportStar(output$1, exports);
5105
5888
 
5106
- } (es2018$7));
5889
+ } (es2018$8));
5107
5890
 
5108
5891
  lruMap.LRUMap = void 0;
5109
5892
  const errors_1$m = requireEs2018();
5110
- const iterable_operator_1$3 = es2018$7;
5893
+ const iterable_operator_1$3 = es2018$8;
5111
5894
  class LRUMap {
5112
5895
  constructor(limit) {
5113
5896
  this.map = new Map();
@@ -5162,7 +5945,7 @@
5162
5945
  var expirableMap = {};
5163
5946
 
5164
5947
  expirableMap.ExpirableMap = void 0;
5165
- const extra_timers_1$1 = es2018$a;
5948
+ const extra_timers_1$1 = es2018$c;
5166
5949
  class ExpirableMap {
5167
5950
  constructor() {
5168
5951
  this.map = new Map();
@@ -5259,8 +6042,8 @@
5259
6042
 
5260
6043
  tlruMap.TLRUMap = void 0;
5261
6044
  const errors_1$l = requireEs2018();
5262
- const iterable_operator_1$2 = es2018$7;
5263
- const extra_timers_1 = es2018$a;
6045
+ const iterable_operator_1$2 = es2018$8;
6046
+ const extra_timers_1 = es2018$c;
5264
6047
  class TLRUMap {
5265
6048
  constructor(limit) {
5266
6049
  this.map = new Map();
@@ -5382,8 +6165,8 @@
5382
6165
  var trieMap = {};
5383
6166
 
5384
6167
  trieMap.TrieMap = void 0;
5385
- const iterable_operator_1$1 = es2018$7;
5386
- const types_1$k = es2018$e;
6168
+ const iterable_operator_1$1 = es2018$8;
6169
+ const types_1$k = es2018$g;
5387
6170
  class TrieNode {
5388
6171
  constructor(value) {
5389
6172
  this.value = value;
@@ -12916,7 +13699,7 @@
12916
13699
  exports.BadEventError = exports.ObservableFiniteStateMachine = void 0;
12917
13700
  const finite_state_machine_1 = finiteStateMachine;
12918
13701
  const rxjs_1 = cjs;
12919
- const types_1 = es2018$e;
13702
+ const types_1 = es2018$g;
12920
13703
  class ObservableFiniteStateMachine extends finite_state_machine_1.FiniteStateMachine {
12921
13704
  constructor() {
12922
13705
  super(...arguments);
@@ -13225,6 +14008,9 @@
13225
14008
  get [Symbol.toStringTag]() {
13226
14009
  return this.constructor.name;
13227
14010
  }
14011
+ get BYTES_PER_ELEMENT() {
14012
+ return this.typedArrayConstructor.BYTES_PER_ELEMENT;
14013
+ }
13228
14014
  get capacity() {
13229
14015
  return this.array.length;
13230
14016
  }
@@ -13335,7 +14121,7 @@
13335
14121
  var skipList = {};
13336
14122
 
13337
14123
  skipList.SkipList = skipList.SkipListNode = void 0;
13338
- const types_1$j = es2018$e;
14124
+ const types_1$j = es2018$g;
13339
14125
  class SkipListNode {
13340
14126
  constructor(value) {
13341
14127
  this.value = value;
@@ -13489,7 +14275,7 @@
13489
14275
 
13490
14276
  sortedSet.SortedSet = void 0;
13491
14277
  const skip_list_1 = skipList;
13492
- const iterable_operator_1 = es2018$7;
14278
+ const iterable_operator_1 = es2018$8;
13493
14279
  class SortedSet {
13494
14280
  constructor(compare) {
13495
14281
  this.skipList = new skip_list_1.SkipList(compare);
@@ -13517,43 +14303,53 @@
13517
14303
 
13518
14304
  var bitSet = {};
13519
14305
 
14306
+ var trailingZeros$1 = {};
14307
+
14308
+ trailingZeros$1.trailingZeros = void 0;
14309
+ const mod37BitPositions = [
14310
+ 32, 0, 1, 26, 2, 23, 27, 0, 3, 16,
14311
+ 24, 30, 28, 11, 0, 13, 4, 7, 17, 0,
14312
+ 25, 22, 31, 15, 29, 10, 12, 6, 0, 21,
14313
+ 14, 9, 5, 20, 8, 19, 18
14314
+ ];
14315
+ function trailingZeros(value) {
14316
+ return mod37BitPositions[(-value & value) % 37];
14317
+ }
14318
+ trailingZeros$1.trailingZeros = trailingZeros;
14319
+
13520
14320
  bitSet.BitSet = void 0;
13521
14321
  const errors_1$h = requireEs2018();
14322
+ const trailing_zeros_1$1 = trailingZeros$1;
13522
14323
  class BitSet {
13523
14324
  constructor(bitsPerElement = 8) {
13524
14325
  this.bitsPerElement = bitsPerElement;
13525
14326
  this.array = [];
13526
14327
  this.length = 0;
14328
+ this._size = 0;
14329
+ (0, errors_1$h.assert)(Number.isInteger(bitsPerElement), 'The parameter bitsPerElement must be an integer');
14330
+ (0, errors_1$h.assert)(bitsPerElement > 0, 'The parameter bitsPerElement must be greater than 0');
14331
+ (0, errors_1$h.assert)(bitsPerElement <= 31, 'The mask of bitsPerElement must be less than or equal to 31');
13527
14332
  }
13528
14333
  get [Symbol.toStringTag]() {
13529
14334
  return this.constructor.name;
13530
14335
  }
13531
14336
  get size() {
13532
- return this.length;
14337
+ return this._size;
13533
14338
  }
13534
14339
  [Symbol.iterator]() {
13535
14340
  return this.values();
13536
14341
  }
13537
14342
  *values() {
13538
14343
  if (this.length > 0) {
13539
- const maxArrayLength = Math.ceil(this.length / this.bitsPerElement);
13540
- const remainder = this.bitsPerElement
13541
- - (maxArrayLength * this.bitsPerElement - this.length);
13542
- const lastIndex = maxArrayLength - 1;
13543
- for (let index = 0; index < lastIndex; index++) {
13544
- const element = this.array[index];
13545
- for (let bit = 0; bit < this.bitsPerElement; bit++) {
13546
- const mask = this.getMask(bit);
13547
- if ((element & mask) === mask) {
13548
- yield index * this.bitsPerElement + bit;
13549
- }
13550
- }
13551
- }
13552
- const lastElement = this.array[maxArrayLength - 1];
13553
- for (let bit = 0; bit < remainder; bit++) {
13554
- const mask = this.getMask(bit);
13555
- if ((lastElement & mask) === mask) {
13556
- yield lastIndex * this.bitsPerElement + bit;
14344
+ const maxArrayLength = ~~(this.length / this.bitsPerElement) + 1;
14345
+ for (let index = 0; index < maxArrayLength; index++) {
14346
+ let element = this.array[index];
14347
+ let offset = 0;
14348
+ let indexOfBit;
14349
+ while ((indexOfBit = (0, trailing_zeros_1$1.trailingZeros)(element)) !== 32) {
14350
+ yield index * this.bitsPerElement + offset + indexOfBit;
14351
+ offset += indexOfBit + 1;
14352
+ element >>= indexOfBit + 1;
13557
14353
  }
13558
14354
  }
13559
14355
  }
@@ -13583,14 +14379,23 @@
13583
14379
  this.length = value + 1;
13584
14380
  }
13585
14381
  const [index, mask] = this.getPosition(value);
13586
- this.array[index] = ((_a = this.array[index]) !== null && _a !== void 0 ? _a : 0) | mask;
14382
+ const element = (_a = this.array[index]) !== null && _a !== void 0 ? _a : 0;
14383
+ this.array[index] = element | mask;
14384
+ const added = (element & mask) !== mask;
14385
+ if (added) {
14386
+ this._size++;
14387
+ }
13587
14388
  }
13588
14389
  delete(value) {
13589
14390
  var _a;
13590
14391
  const [index, mask] = this.getPosition(value);
13591
14392
  const element = ((_a = this.array[index]) !== null && _a !== void 0 ? _a : 0);
13592
14393
  this.array[index] = element & ~mask;
13593
- return (element & mask) === mask;
14394
+ const deleted = (element & mask) === mask;
14395
+ if (deleted) {
14396
+ this._size--;
14397
+ }
14398
+ return deleted;
13594
14399
  }
13595
14400
  clear() {
13596
14401
  for (let i = this.array.length; i--;) {
@@ -13605,7 +14410,7 @@
13605
14410
  return [index, mask];
13606
14411
  }
13607
14412
  getMask(value) {
13608
- return 2 ** value;
14413
+ return 1 << value;
13609
14414
  }
13610
14415
  }
13611
14416
  bitSet.BitSet = BitSet;
@@ -13614,41 +14419,38 @@
13614
14419
 
13615
14420
  typedBitSet.TypedBitSet = void 0;
13616
14421
  const errors_1$g = requireEs2018();
14422
+ const trailing_zeros_1 = trailingZeros$1;
13617
14423
  class TypedBitSet {
13618
14424
  constructor(array) {
13619
14425
  this.array = array;
13620
- this.bitsPerElement = this.array.internalTypedArray.BYTES_PER_ELEMENT * 8;
13621
14426
  this.length = 0;
14427
+ this._size = 0;
14428
+ const bitsPerElement = array.BYTES_PER_ELEMENT * 8;
14429
+ (0, errors_1$g.assert)(Number.isInteger(bitsPerElement), 'The parameter bitsPerElement must be an integer');
14430
+ (0, errors_1$g.assert)(bitsPerElement > 0, 'The parameter bitsPerElement must be greater than 0');
14431
+ (0, errors_1$g.assert)(bitsPerElement <= 31, 'The mask of bitsPerElement must be less than or equal to 31');
14432
+ this.bitsPerElement = bitsPerElement;
13622
14433
  }
13623
14434
  get [Symbol.toStringTag]() {
13624
14435
  return this.constructor.name;
13625
14436
  }
13626
14437
  get size() {
13627
- return this.length;
14438
+ return this._size;
13628
14439
  }
13629
14440
  [Symbol.iterator]() {
13630
14441
  return this.values();
13631
14442
  }
13632
14443
  *values() {
13633
14444
  if (this.length > 0) {
13634
- const maxArrayLength = Math.ceil(this.length / this.bitsPerElement);
13635
- const remainder = this.bitsPerElement
13636
- - (maxArrayLength * this.bitsPerElement - this.length);
13637
- const lastIndex = maxArrayLength - 1;
13638
- for (let index = 0; index < lastIndex; index++) {
13639
- const element = this.array.internalTypedArray[index];
13640
- for (let bit = 0; bit < this.bitsPerElement; bit++) {
13641
- const mask = this.getMask(bit);
13642
- if ((element & mask) === mask) {
13643
- yield index * this.bitsPerElement + bit;
13644
- }
13645
- }
13646
- }
13647
- const lastElement = this.array.internalTypedArray[maxArrayLength - 1];
13648
- for (let bit = 0; bit < remainder; bit++) {
13649
- const mask = this.getMask(bit);
13650
- if ((lastElement & mask) === mask) {
13651
- yield lastIndex * this.bitsPerElement + bit;
14445
+ const maxArrayLength = ~~(this.length / this.bitsPerElement) + 1;
14446
+ for (let index = 0; index < maxArrayLength; index++) {
14447
+ let element = this.array.internalTypedArray[index];
14448
+ let offset = 0;
14449
+ let indexOfBit;
14450
+ while ((indexOfBit = (0, trailing_zeros_1.trailingZeros)(element)) !== 32) {
14451
+ yield index * this.bitsPerElement + offset + indexOfBit;
14452
+ offset += indexOfBit + 1;
14453
+ element >>= indexOfBit + 1;
13652
14454
  }
13653
14455
  }
13654
14456
  }
@@ -13678,14 +14480,23 @@
13678
14480
  this.length = value + 1;
13679
14481
  }
13680
14482
  const [index, mask] = this.getPosition(value);
13681
- this.array.set(index, ((_a = this.array.get(index)) !== null && _a !== void 0 ? _a : 0) | mask);
14483
+ const element = (_a = this.array.get(index)) !== null && _a !== void 0 ? _a : 0;
14484
+ this.array.set(index, element | mask);
14485
+ const added = (element & mask) !== mask;
14486
+ if (added) {
14487
+ this._size++;
14488
+ }
13682
14489
  }
13683
14490
  delete(value) {
13684
14491
  var _a;
13685
14492
  const [index, mask] = this.getPosition(value);
13686
14493
  const element = ((_a = this.array.get(index)) !== null && _a !== void 0 ? _a : 0);
13687
14494
  this.array.set(index, element & ~mask);
13688
- return (element & mask) === mask;
14495
+ const deleted = (element & mask) === mask;
14496
+ if (deleted) {
14497
+ this._size--;
14498
+ }
14499
+ return deleted;
13689
14500
  }
13690
14501
  clear() {
13691
14502
  for (let i = this.array.length; i--;) {
@@ -13700,7 +14511,7 @@
13700
14511
  return [index, mask];
13701
14512
  }
13702
14513
  getMask(value) {
13703
- return 2 ** value;
14514
+ return 1 << value;
13704
14515
  }
13705
14516
  }
13706
14517
  typedBitSet.TypedBitSet = TypedBitSet;
@@ -13722,6 +14533,7 @@
13722
14533
  };exports.DynamicTypedArray = void 0;
13723
14534
  __exportStar(box, exports);
13724
14535
  __exportStar(cons, exports);
14536
+ __exportStar(array$4, exports);
13725
14537
  __exportStar(emitter, exports);
13726
14538
  __exportStar(hashMap, exports);
13727
14539
  __exportStar(hashSet, exports);
@@ -13742,7 +14554,7 @@
13742
14554
  __exportStar(bitSet, exports);
13743
14555
  __exportStar(typedBitSet, exports);
13744
14556
 
13745
- } (es2018$f));
14557
+ } (es2018$h));
13746
14558
 
13747
14559
  var es2018$6 = {};
13748
14560
 
@@ -13773,7 +14585,7 @@
13773
14585
 
13774
14586
  time$1.time = void 0;
13775
14587
  const high_resolution_timestamp_1$2 = highResolutionTimestamp_browser;
13776
- const types_1$i = es2018$e;
14588
+ const types_1$i = es2018$a;
13777
14589
  function time(message, fn) {
13778
14590
  const startTime = (0, high_resolution_timestamp_1$2.now)();
13779
14591
  const result = fn();
@@ -13993,7 +14805,7 @@
13993
14805
  var chunkAsync$1 = {};
13994
14806
 
13995
14807
  chunkAsync$1.chunkAsync = void 0;
13996
- const go_1$f = es2018$b;
14808
+ const go_1$f = es2018$d;
13997
14809
  const errors_1$f = requireEs2018();
13998
14810
  function chunkAsync(iterable, size) {
13999
14811
  (0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
@@ -14240,7 +15052,7 @@
14240
15052
  var __importDefault$1 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
14241
15053
  return (mod && mod.__esModule) ? mod : { "default": mod };
14242
15054
  };object$1.isntEmptyObject = object$1.isEmptyObject = object$1.isntPlainObject = object$1.isPlainObject = object$1.isntObject = object$1.isObject = void 0;
14243
- const isPlainObject_1$1 = __importDefault$1(isPlainObject_1$3);
15055
+ const isPlainObject_1$1 = __importDefault$1(isPlainObject_1$5);
14244
15056
  function isObject$1(val) {
14245
15057
  return val !== null
14246
15058
  && typeof val === 'object';
@@ -14450,7 +15262,7 @@
14450
15262
  var chunk$1 = {};
14451
15263
 
14452
15264
  chunk$1.chunk = void 0;
14453
- const go_1$e = es2018$b;
15265
+ const go_1$e = es2018$d;
14454
15266
  const errors_1$e = requireEs2018();
14455
15267
  function chunk(iterable, size) {
14456
15268
  (0, errors_1$e.assert)(Number.isInteger(size), 'The parameter size must be an integer');
@@ -14474,7 +15286,7 @@
14474
15286
 
14475
15287
  concatAsync$1.concatAsync = void 0;
14476
15288
  const types_1$g = es2018$1;
14477
- const go_1$d = es2018$b;
15289
+ const go_1$d = es2018$d;
14478
15290
  function concatAsync(iterable, ...otherIterables) {
14479
15291
  return (0, go_1$d.go)(async function* () {
14480
15292
  for (const iter of [iterable, ...otherIterables]) {
@@ -14496,7 +15308,7 @@
14496
15308
  var concat$1 = {};
14497
15309
 
14498
15310
  concat$1.concat = void 0;
14499
- const go_1$c = es2018$b;
15311
+ const go_1$c = es2018$d;
14500
15312
  function concat(iterable, ...otherIterables) {
14501
15313
  return (0, go_1$c.go)(function* () {
14502
15314
  for (const iter of [iterable, ...otherIterables]) {
@@ -14525,7 +15337,7 @@
14525
15337
  utils.copyIterable = copyIterable;
14526
15338
 
14527
15339
  dropAsync$1.dropAsync = void 0;
14528
- const go_1$b = es2018$b;
15340
+ const go_1$b = es2018$d;
14529
15341
  const utils_1$3 = utils;
14530
15342
  const errors_1$d = requireEs2018();
14531
15343
  function dropAsync(iterable, count) {
@@ -14560,7 +15372,7 @@
14560
15372
  var dropRightAsync$1 = {};
14561
15373
 
14562
15374
  dropRightAsync$1.dropRightAsync = void 0;
14563
- const go_1$a = es2018$b;
15375
+ const go_1$a = es2018$d;
14564
15376
  const utils_1$2 = utils;
14565
15377
  const errors_1$c = requireEs2018();
14566
15378
  function dropRightAsync(iterable, count) {
@@ -14588,7 +15400,7 @@
14588
15400
  var dropRight$1 = {};
14589
15401
 
14590
15402
  dropRight$1.dropRight = void 0;
14591
- const go_1$9 = es2018$b;
15403
+ const go_1$9 = es2018$d;
14592
15404
  const utils_1$1 = utils;
14593
15405
  const errors_1$b = requireEs2018();
14594
15406
  function dropRight(iterable, count) {
@@ -14688,7 +15500,7 @@
14688
15500
  var drop$1 = {};
14689
15501
 
14690
15502
  drop$1.drop = void 0;
14691
- const go_1$8 = es2018$b;
15503
+ const go_1$8 = es2018$d;
14692
15504
  const utils_1 = utils;
14693
15505
  const errors_1$a = requireEs2018();
14694
15506
  function drop(iterable, count) {
@@ -14911,7 +15723,7 @@
14911
15723
  var repeatAsync$1 = {};
14912
15724
 
14913
15725
  repeatAsync$1.repeatAsync = void 0;
14914
- const go_1$7 = es2018$b;
15726
+ const go_1$7 = es2018$d;
14915
15727
  const errors_1$7 = requireEs2018();
14916
15728
  function repeatAsync(iterable, times) {
14917
15729
  (0, errors_1$7.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
@@ -14946,7 +15758,7 @@
14946
15758
  var repeat$1 = {};
14947
15759
 
14948
15760
  repeat$1.repeat = void 0;
14949
- const go_1$6 = es2018$b;
15761
+ const go_1$6 = es2018$d;
14950
15762
  const errors_1$6 = requireEs2018();
14951
15763
  function repeat(iterable, times) {
14952
15764
  (0, errors_1$6.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
@@ -14981,7 +15793,7 @@
14981
15793
  var sliceAsync$1 = {};
14982
15794
 
14983
15795
  sliceAsync$1.sliceAsync = void 0;
14984
- const go_1$5 = es2018$b;
15796
+ const go_1$5 = es2018$d;
14985
15797
  const errors_1$5 = requireEs2018();
14986
15798
  function sliceAsync(iterable, start, end = Infinity) {
14987
15799
  (0, errors_1$5.assert)(Number.isInteger(start), 'The parameter start must be an integer');
@@ -15004,7 +15816,7 @@
15004
15816
  var slice$1 = {};
15005
15817
 
15006
15818
  slice$1.slice = void 0;
15007
- const go_1$4 = es2018$b;
15819
+ const go_1$4 = es2018$d;
15008
15820
  const errors_1$4 = requireEs2018();
15009
15821
  function slice(iterable, start, end = Infinity) {
15010
15822
  (0, errors_1$4.assert)(Number.isInteger(start), 'The parameter start must be an integer');
@@ -15127,7 +15939,7 @@
15127
15939
  var takeAsync$1 = {};
15128
15940
 
15129
15941
  takeAsync$1.takeAsync = void 0;
15130
- const go_1$3 = es2018$b;
15942
+ const go_1$3 = es2018$d;
15131
15943
  const errors_1$3 = requireEs2018();
15132
15944
  function takeAsync(iterable, count) {
15133
15945
  (0, errors_1$3.assert)(Number.isInteger(count), 'The parameter count must be an integer');
@@ -15148,7 +15960,7 @@
15148
15960
  var takeRightAsync$1 = {};
15149
15961
 
15150
15962
  takeRightAsync$1.takeRightAsync = void 0;
15151
- const go_1$2 = es2018$b;
15963
+ const go_1$2 = es2018$d;
15152
15964
  const errors_1$2 = requireEs2018();
15153
15965
  function takeRightAsync(iterable, count) {
15154
15966
  (0, errors_1$2.assert)(Number.isInteger(count), 'The parameter count must be an integer');
@@ -15178,7 +15990,7 @@
15178
15990
  var takeRight$1 = {};
15179
15991
 
15180
15992
  takeRight$1.takeRight = void 0;
15181
- const go_1$1 = es2018$b;
15993
+ const go_1$1 = es2018$d;
15182
15994
  const errors_1$1 = requireEs2018();
15183
15995
  function takeRight(iterable, count) {
15184
15996
  (0, errors_1$1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
@@ -15254,7 +16066,7 @@
15254
16066
  var take$1 = {};
15255
16067
 
15256
16068
  take$1.take = void 0;
15257
- const go_1 = es2018$b;
16069
+ const go_1 = es2018$d;
15258
16070
  const errors_1 = requireEs2018();
15259
16071
  function take(iterable, count) {
15260
16072
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
@@ -16425,7 +17237,7 @@
16425
17237
  var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
16426
17238
  return (mod && mod.__esModule) ? mod : { "default": mod };
16427
17239
  };object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
16428
- const isPlainObject_1 = __importDefault(isPlainObject_1$3);
17240
+ const isPlainObject_1 = __importDefault(isPlainObject_1$5);
16429
17241
  function isObject(val) {
16430
17242
  return val !== null
16431
17243
  && typeof val === 'object';
@@ -16591,7 +17403,7 @@
16591
17403
  exports.isntSymbol = exports.isntRegExp = exports.isntUndefined = exports.isntString = exports.isntPromiseLike = exports.isntPromise = exports.isntPlainObject = exports.isntObject = void 0;
16592
17404
  var errors_1 = requireEs2018();
16593
17405
  Object.defineProperty(exports, "assert", { enumerable: true, get: function () { return errors_1.assert; } });
16594
- var go_1 = es2018$b;
17406
+ var go_1 = es2018$d;
16595
17407
  Object.defineProperty(exports, "go", { enumerable: true, get: function () { return go_1.go; } });
16596
17408
  var log_1 = es2018$5;
16597
17409
  Object.defineProperty(exports, "log", { enumerable: true, get: function () { return log_1.log; } });
@@ -16668,7 +17480,7 @@
16668
17480
  };
16669
17481
  class GameLoop {
16670
17482
  constructor(options) {
16671
- this.fsm = new es2018$f.FiniteStateMachine(schema, State.Stopped);
17483
+ this.fsm = new es2018$h.FiniteStateMachine(schema, State.Stopped);
16672
17484
  this.deltaTimeAccumulator = 0;
16673
17485
  this.lastDeltaTime = 0;
16674
17486
  this.loop = () => {
@@ -16685,8 +17497,9 @@
16685
17497
  this.fixedDeltaTime = options.fixedDeltaTime;
16686
17498
  this.maximumDeltaTime = options.maximumDeltaTime;
16687
17499
  es2018$6.assert(this.maximumDeltaTime >= this.fixedDeltaTime, 'maximumDeltaTime must be greater than or equal to fixedDeltaTime');
16688
- this.fixedUpdate = options.fixedUpdate;
16689
17500
  this.update = options.update;
17501
+ this.fixedUpdate = options.fixedUpdate;
17502
+ this.lateUpdate = options.lateUpdate;
16690
17503
  this.render = options.render;
16691
17504
  }
16692
17505
  start() {
@@ -16712,19 +17525,20 @@
16712
17525
  }
16713
17526
  }
16714
17527
  /**
16715
- * nextFrame依序做以下几件事:
16716
- * 1. 响应游戏世界从上一帧更新后到这一帧更新之前发生的物理变化.
17528
+ * nextFrameUpdateFirst依序做以下几件事:
17529
+ * 1. 响应用户输入, 为这一帧的游戏世界做出非物理方面的更新, 例如角色转向, 改变武器瞄准角度等.
17530
+ * 2. 响应游戏世界从上一帧更新后到这一帧更新之前发生的物理变化.
16717
17531
  * 注意, 如果渲染帧率比物理帧率快, 且运行性能良好, 则物理帧不一定会在此帧更新.
16718
- * 2. 响应用户输入, 为这一帧的游戏世界做出非物理方面的更新, 例如角色转向, 改变武器瞄准角度等.
16719
17532
  * 3. 渲染经过更新后的最新状态, 渲染器可以根据alpha参数执行插值渲染.
16720
17533
  */
16721
17534
  nextFrame(deltaTime) {
16722
17535
  this.deltaTimeAccumulator = Math.min(this.deltaTimeAccumulator + deltaTime, this.maximumDeltaTime);
17536
+ this.update(deltaTime);
16723
17537
  while (this.deltaTimeAccumulator >= this.fixedDeltaTime) {
16724
17538
  this.fixedUpdate(this.fixedDeltaTime);
16725
17539
  this.deltaTimeAccumulator -= this.fixedDeltaTime;
16726
17540
  }
16727
- this.update(deltaTime);
17541
+ this.lateUpdate(deltaTime);
16728
17542
  const alpha = this.deltaTimeAccumulator / this.fixedDeltaTime;
16729
17543
  this.render(alpha);
16730
17544
  }