extra-request 4.0.2 → 4.1.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.
Files changed (44) hide show
  1. package/README.md +6 -31
  2. package/dist/es2015/index.min.mjs +2 -2
  3. package/dist/es2015/index.min.mjs.map +1 -1
  4. package/dist/es2015/index.mjs +1917 -788
  5. package/dist/es2015/index.mjs.map +1 -1
  6. package/dist/es2015/index.umd.js +1917 -787
  7. package/dist/es2015/index.umd.js.map +1 -1
  8. package/dist/es2015/index.umd.min.js +2 -2
  9. package/dist/es2015/index.umd.min.js.map +1 -1
  10. package/dist/es2018/index.min.mjs +2 -2
  11. package/dist/es2018/index.min.mjs.map +1 -1
  12. package/dist/es2018/index.mjs +1958 -826
  13. package/dist/es2018/index.mjs.map +1 -1
  14. package/dist/es2018/index.umd.js +1958 -825
  15. package/dist/es2018/index.umd.js.map +1 -1
  16. package/dist/es2018/index.umd.min.js +2 -2
  17. package/dist/es2018/index.umd.min.js.map +1 -1
  18. package/lib/es2015/request.d.ts +1 -1
  19. package/lib/es2015/request.js +2 -2
  20. package/lib/es2015/request.js.map +1 -1
  21. package/lib/es2015/transformers/append-pathname.d.ts +2 -0
  22. package/lib/es2015/transformers/append-pathname.js +24 -0
  23. package/lib/es2015/transformers/append-pathname.js.map +1 -0
  24. package/lib/es2015/transformers/csv.js +2 -2
  25. package/lib/es2015/transformers/csv.js.map +1 -1
  26. package/lib/es2015/transformers/form-data-field.js +2 -2
  27. package/lib/es2015/transformers/form-data-field.js.map +1 -1
  28. package/lib/es2015/transformers/index.d.ts +1 -0
  29. package/lib/es2015/transformers/index.js +1 -0
  30. package/lib/es2015/transformers/index.js.map +1 -1
  31. package/lib/es2018/request.d.ts +1 -1
  32. package/lib/es2018/request.js +2 -2
  33. package/lib/es2018/request.js.map +1 -1
  34. package/lib/es2018/transformers/append-pathname.d.ts +2 -0
  35. package/lib/es2018/transformers/append-pathname.js +27 -0
  36. package/lib/es2018/transformers/append-pathname.js.map +1 -0
  37. package/lib/es2018/transformers/csv.js +2 -2
  38. package/lib/es2018/transformers/csv.js.map +1 -1
  39. package/lib/es2018/transformers/form-data-field.js +2 -2
  40. package/lib/es2018/transformers/form-data-field.js.map +1 -1
  41. package/lib/es2018/transformers/index.d.ts +1 -0
  42. package/lib/es2018/transformers/index.js +1 -0
  43. package/lib/es2018/transformers/index.js.map +1 -1
  44. package/package.json +12 -11
@@ -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$5 = {};
9
+ var es2018$d = {};
10
10
 
11
11
  var fetch_browser = {};
12
12
 
@@ -77,209 +77,497 @@
77
77
  __exportStar(blob_browser, exports);
78
78
  __exportStar(eventSource_browser, exports);
79
79
 
80
- }(es2018$5));
80
+ }(es2018$d));
81
81
 
82
- var es2018$4 = {};
82
+ var es2018$c = {};
83
83
 
84
- var array = {};
84
+ var es2018$b = {};
85
85
 
86
- array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
87
- function isArray(val) {
86
+ var customError = {};
87
+
88
+ var es2018$a = {};
89
+
90
+ var middleware = {};
91
+
92
+ var chunkAsync$1 = {};
93
+
94
+ var es2018$9 = {};
95
+
96
+ var go$3 = {};
97
+
98
+ go$3.go = void 0;
99
+ function go$2(fn) {
100
+ return fn();
101
+ }
102
+ go$3.go = go$2;
103
+
104
+ var goMicrotask$3 = {};
105
+
106
+ goMicrotask$3.goMicrotask = void 0;
107
+ function goMicrotask$2(fn) {
108
+ return new Promise((resolve, reject) => {
109
+ queueMicrotask(async () => {
110
+ try {
111
+ resolve(await fn());
112
+ }
113
+ catch (e) {
114
+ reject(e);
115
+ }
116
+ });
117
+ });
118
+ }
119
+ goMicrotask$3.goMicrotask = goMicrotask$2;
120
+
121
+ var goMacrotask$3 = {};
122
+
123
+ var es2018$8 = {};
124
+
125
+ var exponentialBackoff = {};
126
+
127
+ var es2018$7 = {};
128
+
129
+ var random$1 = {};
130
+
131
+ random$1.random = void 0;
132
+ function random(min, max) {
133
+ return Math.random() * (max - min) + min;
134
+ }
135
+ random$1.random = random;
136
+
137
+ var randomInt$1 = {};
138
+
139
+ randomInt$1.randomInt = void 0;
140
+ function randomInt(min, max) {
141
+ min = Math.ceil(min);
142
+ max = Math.floor(max);
143
+ return Math.floor(Math.random() * (max - min)) + min;
144
+ }
145
+ randomInt$1.randomInt = randomInt;
146
+
147
+ var randomIntInclusive$1 = {};
148
+
149
+ randomIntInclusive$1.randomIntInclusive = void 0;
150
+ function randomIntInclusive(min, max) {
151
+ min = Math.ceil(min);
152
+ max = Math.floor(max);
153
+ return Math.floor(Math.random() * (max - min + 1)) + min;
154
+ }
155
+ randomIntInclusive$1.randomIntInclusive = randomIntInclusive;
156
+
157
+ (function (exports) {
158
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
159
+ if (k2 === undefined) k2 = k;
160
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
161
+ }) : (function(o, m, k, k2) {
162
+ if (k2 === undefined) k2 = k;
163
+ o[k2] = m[k];
164
+ }));
165
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
166
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
167
+ };__exportStar(random$1, exports);
168
+ __exportStar(randomInt$1, exports);
169
+ __exportStar(randomIntInclusive$1, exports);
170
+
171
+ }(es2018$7));
172
+
173
+ exponentialBackoff.calculateExponentialBackoffTimeout = void 0;
174
+ const extra_rand_1 = es2018$7;
175
+ function calculateExponentialBackoffTimeout({ baseTimeout, retries, maxTimeout = Infinity, factor = 2, jitter = true }) {
176
+ const timeout = Math.min(factor ** retries * baseTimeout, maxTimeout);
177
+ if (jitter) {
178
+ return (0, extra_rand_1.randomIntInclusive)(0, timeout);
179
+ }
180
+ else {
181
+ return timeout;
182
+ }
183
+ }
184
+ exponentialBackoff.calculateExponentialBackoffTimeout = calculateExponentialBackoffTimeout;
185
+
186
+ var setTimeout$2 = {};
187
+
188
+ setTimeout$2.setTimeout = void 0;
189
+ function setTimeout$1(timeout, cb) {
190
+ const timer = globalThis.setTimeout(cb, timeout);
191
+ return () => clearTimeout(timer);
192
+ }
193
+ setTimeout$2.setTimeout = setTimeout$1;
194
+
195
+ var setSchedule$1 = {};
196
+
197
+ setSchedule$1.setSchedule = void 0;
198
+ const set_timeout_1$3 = setTimeout$2;
199
+ function setSchedule(timestamp, cb) {
200
+ const timeout = timestamp - Date.now();
201
+ return (0, set_timeout_1$3.setTimeout)(timeout, cb);
202
+ }
203
+ setSchedule$1.setSchedule = setSchedule;
204
+
205
+ var setInterval$1 = {};
206
+
207
+ setInterval$1.setInterval = void 0;
208
+ function setInterval(timeout, cb) {
209
+ const timer = globalThis.setInterval(cb, timeout);
210
+ return () => clearInterval(timer);
211
+ }
212
+ setInterval$1.setInterval = setInterval;
213
+
214
+ var setImmediate$1 = {};
215
+
216
+ setImmediate$1.setImmediate = void 0;
217
+ const set_timeout_1$2 = setTimeout$2;
218
+ function setImmediate(cb) {
219
+ if (globalThis.setImmediate) {
220
+ const timer = globalThis.setImmediate(cb);
221
+ return () => clearImmediate(timer);
222
+ }
223
+ else {
224
+ return (0, set_timeout_1$2.setTimeout)(0, cb);
225
+ }
226
+ }
227
+ setImmediate$1.setImmediate = setImmediate;
228
+
229
+ var setTimeoutLoop$1 = {};
230
+
231
+ setTimeoutLoop$1.setTimeoutLoop = void 0;
232
+ const set_timeout_1$1 = setTimeout$2;
233
+ function setTimeoutLoop(timeout, cb) {
234
+ let isCancelled = false;
235
+ let cancel = (0, set_timeout_1$1.setTimeout)(timeout, loop);
236
+ return () => {
237
+ isCancelled = true;
238
+ cancel();
239
+ };
240
+ async function loop() {
241
+ await cb();
242
+ if (!isCancelled) {
243
+ cancel = (0, set_timeout_1$1.setTimeout)(timeout, loop);
244
+ }
245
+ }
246
+ }
247
+ setTimeoutLoop$1.setTimeoutLoop = setTimeoutLoop;
248
+
249
+ var setDynamicTimeoutLoop$1 = {};
250
+
251
+ setDynamicTimeoutLoop$1.setDynamicTimeoutLoop = void 0;
252
+ const set_timeout_1 = setTimeout$2;
253
+ function setDynamicTimeoutLoop(timeout, cb) {
254
+ let isCancelled = false;
255
+ let cancel = (0, set_timeout_1.setTimeout)(timeout, loop);
256
+ return () => {
257
+ isCancelled = true;
258
+ cancel();
259
+ };
260
+ async function loop() {
261
+ const start = Date.now();
262
+ await cb();
263
+ const elapsed = Date.now() - start;
264
+ if (!isCancelled) {
265
+ cancel = (0, set_timeout_1.setTimeout)(Math.max(timeout - elapsed, 0), loop);
266
+ }
267
+ }
268
+ }
269
+ setDynamicTimeoutLoop$1.setDynamicTimeoutLoop = setDynamicTimeoutLoop;
270
+
271
+ (function (exports) {
272
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
273
+ if (k2 === undefined) k2 = k;
274
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
275
+ }) : (function(o, m, k, k2) {
276
+ if (k2 === undefined) k2 = k;
277
+ o[k2] = m[k];
278
+ }));
279
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
280
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
281
+ };__exportStar(exponentialBackoff, exports);
282
+ __exportStar(setTimeout$2, exports);
283
+ __exportStar(setSchedule$1, exports);
284
+ __exportStar(setInterval$1, exports);
285
+ __exportStar(setImmediate$1, exports);
286
+ __exportStar(setTimeoutLoop$1, exports);
287
+ __exportStar(setDynamicTimeoutLoop$1, exports);
288
+
289
+ }(es2018$8));
290
+
291
+ goMacrotask$3.goMacrotask = void 0;
292
+ const extra_timers_1$1 = es2018$8;
293
+ function goMacrotask$2(fn) {
294
+ return new Promise((resolve, reject) => {
295
+ (0, extra_timers_1$1.setImmediate)(async () => {
296
+ try {
297
+ resolve(await fn());
298
+ }
299
+ catch (e) {
300
+ reject(e);
301
+ }
302
+ });
303
+ });
304
+ }
305
+ goMacrotask$3.goMacrotask = goMacrotask$2;
306
+
307
+ (function (exports) {
308
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
309
+ if (k2 === undefined) k2 = k;
310
+ var desc = Object.getOwnPropertyDescriptor(m, k);
311
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
312
+ desc = { enumerable: true, get: function() { return m[k]; } };
313
+ }
314
+ Object.defineProperty(o, k2, desc);
315
+ }) : (function(o, m, k, k2) {
316
+ if (k2 === undefined) k2 = k;
317
+ o[k2] = m[k];
318
+ }));
319
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
320
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
321
+ };__exportStar(go$3, exports);
322
+ __exportStar(goMicrotask$3, exports);
323
+ __exportStar(goMacrotask$3, exports);
324
+
325
+ }(es2018$9));
326
+
327
+ chunkAsync$1.chunkAsync = void 0;
328
+ const go_1$g = es2018$9;
329
+ const errors_1$f = es2018$b;
330
+ function chunkAsync(iterable, size) {
331
+ (0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
332
+ (0, errors_1$f.assert)(size > 0, 'The parameter size must be greater than 0');
333
+ return (0, go_1$g.go)(async function* () {
334
+ let buffer = [];
335
+ for await (const element of iterable) {
336
+ buffer.push(element);
337
+ if (buffer.length >= size) {
338
+ yield buffer;
339
+ buffer = [];
340
+ }
341
+ }
342
+ if (buffer.length)
343
+ yield buffer;
344
+ });
345
+ }
346
+ chunkAsync$1.chunkAsync = chunkAsync;
347
+
348
+ var chunkByAsync$1 = {};
349
+
350
+ var es2018$6 = {};
351
+
352
+ var array$1 = {};
353
+
354
+ array$1.isntEmptyArray = array$1.isEmptyArray = array$1.isntArray = array$1.isArray = void 0;
355
+ function isArray$1(val) {
88
356
  return Array.isArray(val);
89
357
  }
90
- array.isArray = isArray;
91
- function isntArray(val) {
92
- return !isArray(val);
358
+ array$1.isArray = isArray$1;
359
+ function isntArray$1(val) {
360
+ return !isArray$1(val);
93
361
  }
94
- array.isntArray = isntArray;
95
- function isEmptyArray(val) {
362
+ array$1.isntArray = isntArray$1;
363
+ function isEmptyArray$1(val) {
96
364
  return val.length === 0;
97
365
  }
98
- array.isEmptyArray = isEmptyArray;
99
- function isntEmptyArray(val) {
366
+ array$1.isEmptyArray = isEmptyArray$1;
367
+ function isntEmptyArray$1(val) {
100
368
  return val.length !== 0;
101
369
  }
102
- array.isntEmptyArray = isntEmptyArray;
370
+ array$1.isntEmptyArray = isntEmptyArray$1;
103
371
 
104
- var asyncIterable = {};
372
+ var asyncIterable$1 = {};
105
373
 
106
- var _null = {};
374
+ var _null$1 = {};
107
375
 
108
- _null.isntNull = _null.isNull = void 0;
109
- function isNull(val) {
376
+ _null$1.isntNull = _null$1.isNull = void 0;
377
+ function isNull$1(val) {
110
378
  return val === null;
111
379
  }
112
- _null.isNull = isNull;
113
- function isntNull(val) {
114
- return !isNull(val);
380
+ _null$1.isNull = isNull$1;
381
+ function isntNull$1(val) {
382
+ return !isNull$1(val);
115
383
  }
116
- _null.isntNull = isntNull;
384
+ _null$1.isntNull = isntNull$1;
117
385
 
118
- var _undefined = {};
386
+ var _undefined$1 = {};
119
387
 
120
- _undefined.isntUndefined = _undefined.isUndefined = void 0;
121
- function isUndefined(val) {
388
+ _undefined$1.isntUndefined = _undefined$1.isUndefined = void 0;
389
+ function isUndefined$1(val) {
122
390
  return val === undefined;
123
391
  }
124
- _undefined.isUndefined = isUndefined;
125
- function isntUndefined(val) {
126
- return !isUndefined(val);
392
+ _undefined$1.isUndefined = isUndefined$1;
393
+ function isntUndefined$1(val) {
394
+ return !isUndefined$1(val);
127
395
  }
128
- _undefined.isntUndefined = isntUndefined;
396
+ _undefined$1.isntUndefined = isntUndefined$1;
129
397
 
130
- var _function = {};
398
+ var _function$1 = {};
131
399
 
132
- _function.isntFunction = _function.isFunction = void 0;
133
- function isFunction(val) {
400
+ _function$1.isntFunction = _function$1.isFunction = void 0;
401
+ function isFunction$1(val) {
134
402
  return typeof val === 'function';
135
403
  }
136
- _function.isFunction = isFunction;
137
- function isntFunction(val) {
138
- return !isFunction(val);
404
+ _function$1.isFunction = isFunction$1;
405
+ function isntFunction$1(val) {
406
+ return !isFunction$1(val);
139
407
  }
140
- _function.isntFunction = isntFunction;
408
+ _function$1.isntFunction = isntFunction$1;
141
409
 
142
- asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
143
- const null_1$2 = _null;
144
- const undefined_1$1 = _undefined;
145
- const function_1$2 = _function;
146
- function isAsyncIterable(val) {
147
- return (0, null_1$2.isntNull)(val)
148
- && (0, undefined_1$1.isntUndefined)(val)
149
- && (0, function_1$2.isFunction)(val[Symbol.asyncIterator]);
410
+ asyncIterable$1.isntAsyncIterable = asyncIterable$1.isAsyncIterable = void 0;
411
+ const null_1$5 = _null$1;
412
+ const undefined_1$3 = _undefined$1;
413
+ const function_1$5 = _function$1;
414
+ function isAsyncIterable$1(val) {
415
+ return (0, null_1$5.isntNull)(val)
416
+ && (0, undefined_1$3.isntUndefined)(val)
417
+ && (0, function_1$5.isFunction)(val[Symbol.asyncIterator]);
150
418
  }
151
- asyncIterable.isAsyncIterable = isAsyncIterable;
152
- function isntAsyncIterable(val) {
153
- return !isAsyncIterable(val);
419
+ asyncIterable$1.isAsyncIterable = isAsyncIterable$1;
420
+ function isntAsyncIterable$1(val) {
421
+ return !isAsyncIterable$1(val);
154
422
  }
155
- asyncIterable.isntAsyncIterable = isntAsyncIterable;
423
+ asyncIterable$1.isntAsyncIterable = isntAsyncIterable$1;
156
424
 
157
- var bigint = {};
425
+ var bigint$1 = {};
158
426
 
159
- bigint.isntBigInt = bigint.isBigInt = void 0;
160
- function isBigInt(val) {
427
+ bigint$1.isntBigInt = bigint$1.isBigInt = void 0;
428
+ function isBigInt$1(val) {
161
429
  return typeof val === 'bigint';
162
430
  }
163
- bigint.isBigInt = isBigInt;
164
- function isntBigInt(val) {
165
- return !isBigInt(val);
431
+ bigint$1.isBigInt = isBigInt$1;
432
+ function isntBigInt$1(val) {
433
+ return !isBigInt$1(val);
166
434
  }
167
- bigint.isntBigInt = isntBigInt;
435
+ bigint$1.isntBigInt = isntBigInt$1;
168
436
 
169
- var boolean = {};
437
+ var boolean$1 = {};
170
438
 
171
- boolean.isntBoolean = boolean.isBoolean = void 0;
172
- function isBoolean(val) {
439
+ boolean$1.isntBoolean = boolean$1.isBoolean = void 0;
440
+ function isBoolean$1(val) {
173
441
  return typeof val === 'boolean';
174
442
  }
175
- boolean.isBoolean = isBoolean;
176
- function isntBoolean(val) {
177
- return !isBoolean(val);
443
+ boolean$1.isBoolean = isBoolean$1;
444
+ function isntBoolean$1(val) {
445
+ return !isBoolean$1(val);
178
446
  }
179
- boolean.isntBoolean = isntBoolean;
447
+ boolean$1.isntBoolean = isntBoolean$1;
180
448
 
181
- var char = {};
449
+ var char$1 = {};
182
450
 
183
- var string = {};
451
+ var string$1 = {};
184
452
 
185
- string.isntString = string.isString = void 0;
186
- function isString(val) {
453
+ string$1.isntString = string$1.isString = void 0;
454
+ function isString$1(val) {
187
455
  return typeof val === 'string';
188
456
  }
189
- string.isString = isString;
190
- function isntString(val) {
191
- return !isString(val);
457
+ string$1.isString = isString$1;
458
+ function isntString$1(val) {
459
+ return !isString$1(val);
192
460
  }
193
- string.isntString = isntString;
461
+ string$1.isntString = isntString$1;
194
462
 
195
- char.isntChar = char.isChar = void 0;
196
- const string_1$1 = string;
197
- function isChar(val) {
198
- return (0, string_1$1.isString)(val)
463
+ char$1.isntChar = char$1.isChar = void 0;
464
+ const string_1$3 = string$1;
465
+ function isChar$1(val) {
466
+ return (0, string_1$3.isString)(val)
199
467
  && val.length === 1;
200
468
  }
201
- char.isChar = isChar;
202
- function isntChar(val) {
203
- return !isChar(val);
469
+ char$1.isChar = isChar$1;
470
+ function isntChar$1(val) {
471
+ return !isChar$1(val);
204
472
  }
205
- char.isntChar = isntChar;
473
+ char$1.isntChar = isntChar$1;
206
474
 
207
- var date = {};
475
+ var date$1 = {};
208
476
 
209
- date.isntDate = date.isDate = void 0;
210
- function isDate(val) {
477
+ date$1.isntDate = date$1.isDate = void 0;
478
+ function isDate$1(val) {
211
479
  return val instanceof Date;
212
480
  }
213
- date.isDate = isDate;
214
- function isntDate(val) {
215
- return !isDate(val);
481
+ date$1.isDate = isDate$1;
482
+ function isntDate$1(val) {
483
+ return !isDate$1(val);
216
484
  }
217
- date.isntDate = isntDate;
485
+ date$1.isntDate = isntDate$1;
218
486
 
219
- var _enum = {};
487
+ var _enum$1 = {};
220
488
 
221
- _enum.inEnum = void 0;
222
- function inEnum(val, _enum) {
489
+ _enum$1.inEnum = void 0;
490
+ function inEnum$1(val, _enum) {
223
491
  return Object.values(_enum).includes(val);
224
492
  }
225
- _enum.inEnum = inEnum;
493
+ _enum$1.inEnum = inEnum$1;
226
494
 
227
- var error = {};
495
+ var error$1 = {};
228
496
 
229
- error.isntError = error.isError = void 0;
230
- function isError(val) {
497
+ error$1.isntError = error$1.isError = void 0;
498
+ function isError$1(val) {
231
499
  return val instanceof Error;
232
500
  }
233
- error.isError = isError;
234
- function isntError(val) {
235
- return !isError(val);
501
+ error$1.isError = isError$1;
502
+ function isntError$1(val) {
503
+ return !isError$1(val);
236
504
  }
237
- error.isntError = isntError;
505
+ error$1.isntError = isntError$1;
238
506
 
239
- var falsy = {};
507
+ var falsy$1 = {};
240
508
 
241
- falsy.isntFalsy = falsy.isFalsy = void 0;
242
- function isFalsy(val) {
509
+ falsy$1.isntFalsy = falsy$1.isFalsy = void 0;
510
+ function isFalsy$1(val) {
243
511
  return !val;
244
512
  }
245
- falsy.isFalsy = isFalsy;
246
- function isntFalsy(val) {
247
- return !isFalsy(val);
513
+ falsy$1.isFalsy = isFalsy$1;
514
+ function isntFalsy$1(val) {
515
+ return !isFalsy$1(val);
248
516
  }
249
- falsy.isntFalsy = isntFalsy;
517
+ falsy$1.isntFalsy = isntFalsy$1;
250
518
 
251
- var iterable = {};
519
+ var iterable$1 = {};
252
520
 
253
- iterable.isntIterable = iterable.isIterable = void 0;
254
- const null_1$1 = _null;
255
- const undefined_1 = _undefined;
256
- const function_1$1 = _function;
257
- function isIterable(val) {
258
- return (0, null_1$1.isntNull)(val)
259
- && (0, undefined_1.isntUndefined)(val)
260
- && (0, function_1$1.isFunction)(val[Symbol.iterator]);
521
+ iterable$1.isntIterable = iterable$1.isIterable = void 0;
522
+ const null_1$4 = _null$1;
523
+ const undefined_1$2 = _undefined$1;
524
+ const function_1$4 = _function$1;
525
+ function isIterable$1(val) {
526
+ return (0, null_1$4.isntNull)(val)
527
+ && (0, undefined_1$2.isntUndefined)(val)
528
+ && (0, function_1$4.isFunction)(val[Symbol.iterator]);
261
529
  }
262
- iterable.isIterable = isIterable;
263
- function isntIterable(val) {
264
- return !isIterable(val);
530
+ iterable$1.isIterable = isIterable$1;
531
+ function isntIterable$1(val) {
532
+ return !isIterable$1(val);
265
533
  }
266
- iterable.isntIterable = isntIterable;
534
+ iterable$1.isntIterable = isntIterable$1;
267
535
 
268
- var json$1 = {};
536
+ var json$2 = {};
269
537
 
270
- var number = {};
538
+ var number$1 = {};
271
539
 
272
- number.isntNumber = number.isNumber = void 0;
273
- function isNumber(val) {
540
+ number$1.isntNaN = number$1.isNaN = number$1.isNegativeInfinity = number$1.isPositiveInfinity = number$1.isFinite = number$1.isntNumber = number$1.isNumber = void 0;
541
+ function isNumber$1(val) {
274
542
  return typeof val === 'number';
275
543
  }
276
- number.isNumber = isNumber;
277
- function isntNumber(val) {
278
- return !isNumber(val);
544
+ number$1.isNumber = isNumber$1;
545
+ function isntNumber$1(val) {
546
+ return !isNumber$1(val);
279
547
  }
280
- number.isntNumber = isntNumber;
548
+ number$1.isntNumber = isntNumber$1;
549
+ function isFinite$1(val) {
550
+ return Number.isFinite(val);
551
+ }
552
+ number$1.isFinite = isFinite$1;
553
+ function isPositiveInfinity$1(val) {
554
+ return val === Infinity;
555
+ }
556
+ number$1.isPositiveInfinity = isPositiveInfinity$1;
557
+ function isNegativeInfinity$1(val) {
558
+ return val === -Infinity;
559
+ }
560
+ number$1.isNegativeInfinity = isNegativeInfinity$1;
561
+ function isNaN$1(val) {
562
+ return Number.isNaN(val);
563
+ }
564
+ number$1.isNaN = isNaN$1;
565
+ function isntNaN$1(val) {
566
+ return !isNaN$1(val);
567
+ }
568
+ number$1.isntNaN = isntNaN$1;
281
569
 
282
- var object = {};
570
+ var object$1 = {};
283
571
 
284
572
  /** Detect free variable `global` from Node.js. */
285
573
 
@@ -507,7 +795,7 @@
507
795
  * _.isPlainObject(Object.create(null));
508
796
  * // => true
509
797
  */
510
- function isPlainObject$1(value) {
798
+ function isPlainObject$2(value) {
511
799
  if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
512
800
  return false;
513
801
  }
@@ -520,59 +808,59 @@
520
808
  funcToString.call(Ctor) == objectCtorString;
521
809
  }
522
810
 
523
- var isPlainObject_1$1 = isPlainObject$1;
811
+ var isPlainObject_1$2 = isPlainObject$2;
524
812
 
525
- var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
813
+ var __importDefault$1 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
526
814
  return (mod && mod.__esModule) ? mod : { "default": mod };
527
- };object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
528
- const isPlainObject_1 = __importDefault(isPlainObject_1$1);
529
- function isObject(val) {
815
+ };object$1.isntEmptyObject = object$1.isEmptyObject = object$1.isntPlainObject = object$1.isPlainObject = object$1.isntObject = object$1.isObject = void 0;
816
+ const isPlainObject_1$1 = __importDefault$1(isPlainObject_1$2);
817
+ function isObject$1(val) {
530
818
  return val !== null
531
819
  && typeof val === 'object';
532
820
  }
533
- object.isObject = isObject;
534
- function isntObject(val) {
535
- return !isObject(val);
821
+ object$1.isObject = isObject$1;
822
+ function isntObject$1(val) {
823
+ return !isObject$1(val);
536
824
  }
537
- object.isntObject = isntObject;
538
- function isPlainObject(val) {
539
- return (0, isPlainObject_1.default)(val);
825
+ object$1.isntObject = isntObject$1;
826
+ function isPlainObject$1(val) {
827
+ return (0, isPlainObject_1$1.default)(val);
540
828
  }
541
- object.isPlainObject = isPlainObject;
542
- function isntPlainObject(val) {
543
- return !isPlainObject(val);
829
+ object$1.isPlainObject = isPlainObject$1;
830
+ function isntPlainObject$1(val) {
831
+ return !isPlainObject$1(val);
544
832
  }
545
- object.isntPlainObject = isntPlainObject;
546
- function isEmptyObject(val) {
833
+ object$1.isntPlainObject = isntPlainObject$1;
834
+ function isEmptyObject$1(val) {
547
835
  return Object.keys(val).length === 0;
548
836
  }
549
- object.isEmptyObject = isEmptyObject;
550
- function isntEmptyObject(val) {
837
+ object$1.isEmptyObject = isEmptyObject$1;
838
+ function isntEmptyObject$1(val) {
551
839
  return Object.keys(val).length !== 0;
552
840
  }
553
- object.isntEmptyObject = isntEmptyObject;
554
-
555
- json$1.isntJsonable = json$1.isJsonable = json$1.isntJson = json$1.isJson = void 0;
556
- const null_1 = _null;
557
- const boolean_1 = boolean;
558
- const string_1 = string;
559
- const number_1 = number;
560
- const array_1 = array;
561
- const object_1$1 = object;
562
- function isJson(val) {
563
- return (0, null_1.isNull)(val)
564
- || (0, boolean_1.isBoolean)(val)
565
- || (0, string_1.isString)(val)
566
- || (0, number_1.isNumber)(val)
567
- || ((0, array_1.isArray)(val) && val.every(isJson))
568
- || ((0, object_1$1.isPlainObject)(val) && Object.values(val).every(isJson));
569
- }
570
- json$1.isJson = isJson;
571
- function isntJson(val) {
572
- return !isJson(val);
573
- }
574
- json$1.isntJson = isntJson;
575
- function isJsonable(val) {
841
+ object$1.isntEmptyObject = isntEmptyObject$1;
842
+
843
+ json$2.isntJsonable = json$2.isJsonable = json$2.isntJson = json$2.isJson = void 0;
844
+ const null_1$3 = _null$1;
845
+ const boolean_1$1 = boolean$1;
846
+ const string_1$2 = string$1;
847
+ const number_1$1 = number$1;
848
+ const array_1$1 = array$1;
849
+ const object_1$3 = object$1;
850
+ function isJson$1(val) {
851
+ return (0, null_1$3.isNull)(val)
852
+ || (0, boolean_1$1.isBoolean)(val)
853
+ || (0, string_1$2.isString)(val)
854
+ || (0, number_1$1.isNumber)(val)
855
+ || ((0, array_1$1.isArray)(val) && val.every(isJson$1))
856
+ || ((0, object_1$3.isPlainObject)(val) && Object.values(val).every(isJson$1));
857
+ }
858
+ json$2.isJson = isJson$1;
859
+ function isntJson$1(val) {
860
+ return !isJson$1(val);
861
+ }
862
+ json$2.isntJson = isntJson$1;
863
+ function isJsonable$1(val) {
576
864
  try {
577
865
  JSON.stringify(val);
578
866
  return true;
@@ -581,39 +869,39 @@
581
869
  return false;
582
870
  }
583
871
  }
584
- json$1.isJsonable = isJsonable;
585
- function isntJsonable(val) {
586
- return !isntJsonable();
872
+ json$2.isJsonable = isJsonable$1;
873
+ function isntJsonable$1(val) {
874
+ return !isntJsonable$1();
587
875
  }
588
- json$1.isntJsonable = isntJsonable;
876
+ json$2.isntJsonable = isntJsonable$1;
589
877
 
590
- var promise = {};
878
+ var promise$1 = {};
591
879
 
592
- promise.isPromiseLike = promise.isntPromiseLike = promise.isntPromise = promise.isPromise = void 0;
593
- const object_1 = object;
594
- const function_1 = _function;
595
- function isPromise(val) {
880
+ promise$1.isPromiseLike = promise$1.isntPromiseLike = promise$1.isntPromise = promise$1.isPromise = void 0;
881
+ const object_1$2 = object$1;
882
+ const function_1$3 = _function$1;
883
+ function isPromise$1(val) {
596
884
  return val instanceof Promise;
597
885
  }
598
- promise.isPromise = isPromise;
599
- function isntPromise(val) {
600
- return !isPromise(val);
886
+ promise$1.isPromise = isPromise$1;
887
+ function isntPromise$1(val) {
888
+ return !isPromise$1(val);
601
889
  }
602
- promise.isntPromise = isntPromise;
603
- function isntPromiseLike(val) {
604
- return !isPromiseLike(val);
890
+ promise$1.isntPromise = isntPromise$1;
891
+ function isntPromiseLike$1(val) {
892
+ return !isPromiseLike$1(val);
605
893
  }
606
- promise.isntPromiseLike = isntPromiseLike;
607
- function isPromiseLike(val) {
608
- return (0, object_1.isObject)(val)
609
- && (0, function_1.isFunction)(val.then);
894
+ promise$1.isntPromiseLike = isntPromiseLike$1;
895
+ function isPromiseLike$1(val) {
896
+ return (0, object_1$2.isObject)(val)
897
+ && (0, function_1$3.isFunction)(val.then);
610
898
  }
611
- promise.isPromiseLike = isPromiseLike;
899
+ promise$1.isPromiseLike = isPromiseLike$1;
612
900
 
613
- var url$1 = {};
901
+ var url$2 = {};
614
902
 
615
- url$1.isAbsoluteURL = void 0;
616
- function isAbsoluteURL(str) {
903
+ url$2.isAbsoluteURL = void 0;
904
+ function isAbsoluteURL$1(str) {
617
905
  try {
618
906
  new URL(str);
619
907
  return true;
@@ -622,210 +910,109 @@
622
910
  return false;
623
911
  }
624
912
  }
625
- url$1.isAbsoluteURL = isAbsoluteURL;
913
+ url$2.isAbsoluteURL = isAbsoluteURL$1;
626
914
 
627
- (function (exports) {
628
- var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
629
- if (k2 === undefined) k2 = k;
630
- var desc = Object.getOwnPropertyDescriptor(m, k);
631
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
632
- desc = { enumerable: true, get: function() { return m[k]; } };
633
- }
634
- Object.defineProperty(o, k2, desc);
635
- }) : (function(o, m, k, k2) {
636
- if (k2 === undefined) k2 = k;
637
- o[k2] = m[k];
638
- }));
639
- var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
640
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
641
- };__exportStar(array, exports);
642
- __exportStar(asyncIterable, exports);
643
- __exportStar(bigint, exports);
644
- __exportStar(boolean, exports);
645
- __exportStar(char, exports);
646
- __exportStar(date, exports);
647
- __exportStar(_enum, exports);
648
- __exportStar(error, exports);
649
- __exportStar(falsy, exports);
650
- __exportStar(_function, exports);
651
- __exportStar(iterable, exports);
652
- __exportStar(json$1, exports);
653
- __exportStar(_null, exports);
654
- __exportStar(number, exports);
655
- __exportStar(object, exports);
656
- __exportStar(promise, exports);
657
- __exportStar(string, exports);
658
- __exportStar(_undefined, exports);
659
- __exportStar(url$1, exports);
660
-
661
- }(es2018$4));
915
+ var regexp$1 = {};
662
916
 
663
- function get(...transformers) {
664
- return request('GET', ...transformers);
665
- }
666
- function head(...transformers) {
667
- return request('HEAD', ...transformers);
668
- }
669
- function post(...transformers) {
670
- return request('POST', ...transformers);
671
- }
672
- function put(...transformers) {
673
- return request('PUT', ...transformers);
674
- }
675
- function patch(...transformers) {
676
- return request('PATCH', ...transformers);
677
- }
678
- function del(...transformers) {
679
- return request('DELETE', ...transformers);
680
- }
681
- function request(method, ...transformers) {
682
- const options = transformers.reduce((options, trans) => es2018$4.isFunction(trans) ? trans(options) : options, {
683
- url: new URL('http://localhost'),
684
- headers: new es2018$5.Headers()
685
- });
686
- const headers = new es2018$5.Headers(options.headers);
687
- return new es2018$5.Request(options.url.href, {
688
- method,
689
- headers,
690
- signal: options.signal,
691
- body: options.payload,
692
- keepalive: options.keepalive
693
- });
917
+ regexp$1.isntRegExp = regexp$1.isRegExp = void 0;
918
+ function isRegExp$1(val) {
919
+ return val instanceof RegExp;
694
920
  }
695
-
696
- function url(...urls) {
697
- return (options) => {
698
- const url = new URL(urls.reduce((acc, cur) => new URL(cur, acc).href));
699
- return Object.assign(Object.assign({}, options), { url });
700
- };
921
+ regexp$1.isRegExp = isRegExp$1;
922
+ function isntRegExp$1(val) {
923
+ return !isRegExp$1(val);
701
924
  }
925
+ regexp$1.isntRegExp = isntRegExp$1;
702
926
 
703
- function text(payload) {
704
- return (options) => {
705
- const headers = new es2018$5.Headers(options.headers);
706
- headers.set('Content-Type', 'application/x-www-form-urlencoded');
707
- return Object.assign(Object.assign({}, options), { headers,
708
- payload });
709
- };
710
- }
927
+ var symbol$1 = {};
711
928
 
712
- function json(payload) {
713
- return (options) => {
714
- const headers = new es2018$5.Headers(options.headers);
715
- headers.set('Content-Type', 'application/json');
716
- return Object.assign(Object.assign({}, options), { headers, payload: JSON.stringify(payload) });
717
- };
929
+ symbol$1.isntSymbol = symbol$1.isSymbol = void 0;
930
+ function isSymbol$1(val) {
931
+ return typeof val === 'symbol';
718
932
  }
719
-
720
- var papaparse_min = {exports: {}};
721
-
722
- /* @license
723
- Papa Parse
724
- v5.3.2
725
- https://github.com/mholt/PapaParse
726
- License: MIT
727
- */
728
-
729
- (function (module, exports) {
730
- !function(e,t){module.exports=t();}(commonjsGlobal,function s(){var f="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==f?f:{};var n=!f.document&&!!f.postMessage,o=n&&/blob:/i.test((f.location||{}).protocol),a={},h=0,b={parse:function(e,t){var i=(t=t||{}).dynamicTyping||!1;M(i)&&(t.dynamicTypingFunction=i,i={});if(t.dynamicTyping=i,t.transform=!!M(t.transform)&&t.transform,t.worker&&b.WORKERS_SUPPORTED){var r=function(){if(!b.WORKERS_SUPPORTED)return !1;var e=(i=f.URL||f.webkitURL||null,r=s.toString(),b.BLOB_URL||(b.BLOB_URL=i.createObjectURL(new Blob(["(",r,")();"],{type:"text/javascript"})))),t=new f.Worker(e);var i,r;return t.onmessage=_,t.id=h++,a[t.id]=t}();return r.userStep=t.step,r.userChunk=t.chunk,r.userComplete=t.complete,r.userError=t.error,t.step=M(t.step),t.chunk=M(t.chunk),t.complete=M(t.complete),t.error=M(t.error),delete t.worker,void r.postMessage({input:e,config:t,workerId:r.id})}var n=null;b.NODE_STREAM_INPUT,"string"==typeof e?n=t.download?new l(t):new p(t):!0===e.readable&&M(e.read)&&M(e.on)?n=new g(t):(f.File&&e instanceof File||e instanceof Object)&&(n=new c(t));return n.stream(e)},unparse:function(e,t){var n=!1,_=!0,m=",",y="\r\n",s='"',a=s+s,i=!1,r=null,o=!1;!function(){if("object"!=typeof t)return;"string"!=typeof t.delimiter||b.BAD_DELIMITERS.filter(function(e){return -1!==t.delimiter.indexOf(e)}).length||(m=t.delimiter);("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes);"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(i=t.skipEmptyLines);"string"==typeof t.newline&&(y=t.newline);"string"==typeof t.quoteChar&&(s=t.quoteChar);"boolean"==typeof t.header&&(_=t.header);if(Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");r=t.columns;}void 0!==t.escapeChar&&(a=t.escapeChar+s);("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(o=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/);}();var h=new RegExp(j(s),"g");"string"==typeof e&&(e=JSON.parse(e));if(Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return u(null,e,i);if("object"==typeof e[0])return u(r||Object.keys(e[0]),e,i)}else if("object"==typeof e)return "string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||r),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),u(e.fields||[],e.data||[],i);throw new Error("Unable to serialize unrecognized input");function u(e,t,i){var r="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var n=Array.isArray(e)&&0<e.length,s=!Array.isArray(t[0]);if(n&&_){for(var a=0;a<e.length;a++)0<a&&(r+=m),r+=v(e[a],a);0<t.length&&(r+=y);}for(var o=0;o<t.length;o++){var h=n?e.length:t[o].length,u=!1,f=n?0===Object.keys(t[o]).length:0===t[o].length;if(i&&!n&&(u="greedy"===i?""===t[o].join("").trim():1===t[o].length&&0===t[o][0].length),"greedy"===i&&n){for(var d=[],l=0;l<h;l++){var c=s?e[l]:l;d.push(t[o][c]);}u=""===d.join("").trim();}if(!u){for(var p=0;p<h;p++){0<p&&!f&&(r+=m);var g=n&&s?e[p]:p;r+=v(t[o][g],p);}o<t.length-1&&(!i||0<h&&!f)&&(r+=y);}}return r}function v(e,t){if(null==e)return "";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var i=!1;o&&"string"==typeof e&&o.test(e)&&(e="'"+e,i=!0);var r=e.toString().replace(h,a);return (i=i||!0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||function(e,t){for(var i=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return !0;return !1}(r,b.BAD_DELIMITERS)||-1<r.indexOf(m)||" "===r.charAt(0)||" "===r.charAt(r.length-1))?s+r+s:r}}};if(b.RECORD_SEP=String.fromCharCode(30),b.UNIT_SEP=String.fromCharCode(31),b.BYTE_ORDER_MARK="\ufeff",b.BAD_DELIMITERS=["\r","\n",'"',b.BYTE_ORDER_MARK],b.WORKERS_SUPPORTED=!n&&!!f.Worker,b.NODE_STREAM_INPUT=1,b.LocalChunkSize=10485760,b.RemoteChunkSize=5242880,b.DefaultDelimiter=",",b.Parser=E,b.ParserHandle=i,b.NetworkStreamer=l,b.FileStreamer=c,b.StringStreamer=p,b.ReadableStreamStreamer=g,f.jQuery){var d=f.jQuery;d.fn.parse=function(o){var i=o.config||{},h=[];return this.each(function(e){if(!("INPUT"===d(this).prop("tagName").toUpperCase()&&"file"===d(this).attr("type").toLowerCase()&&f.FileReader)||!this.files||0===this.files.length)return !0;for(var t=0;t<this.files.length;t++)h.push({file:this.files[t],inputElem:this,instanceConfig:d.extend({},i)});}),e(),this;function e(){if(0!==h.length){var e,t,i,r,n=h[0];if(M(o.before)){var s=o.before(n.file,n.inputElem);if("object"==typeof s){if("abort"===s.action)return e="AbortError",t=n.file,i=n.inputElem,r=s.reason,void(M(o.error)&&o.error({name:e},t,i,r));if("skip"===s.action)return void u();"object"==typeof s.config&&(n.instanceConfig=d.extend(n.instanceConfig,s.config));}else if("skip"===s)return void u()}var a=n.instanceConfig.complete;n.instanceConfig.complete=function(e){M(a)&&a(e,n.file,n.inputElem),u();},b.parse(n.file,n.instanceConfig);}else M(o.complete)&&o.complete();}function u(){h.splice(0,1),e();}};}function u(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=w(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null);this._handle=new i(t),(this._handle.streamer=this)._config=t;}.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&M(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(e);void 0!==i&&(e=i);}this.isFirstChunk=!1,this._halted=!1;var r=this._partialLine+e;this._partialLine="";var n=this._handle.parse(r,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var s=n.meta.cursor;this._finished||(this._partialLine=r.substring(s-this._baseIndex),this._baseIndex=s),n&&n.data&&(this._rowCount+=n.data.length);var a=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(o)f.postMessage({results:n,workerId:b.WORKER_ID,finished:a});else if(M(this._config.chunk)&&!t){if(this._config.chunk(n,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);n=void 0,this._completeResults=void 0;}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(n.data),this._completeResults.errors=this._completeResults.errors.concat(n.errors),this._completeResults.meta=n.meta),this._completed||!a||!M(this._config.complete)||n&&n.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),a||n&&n.meta.paused||this._nextChunk(),n}this._halted=!0;},this._sendError=function(e){M(this._config.error)?this._config.error(e):o&&this._config.error&&f.postMessage({workerId:b.WORKER_ID,error:e,finished:!1});};}function l(e){var r;(e=e||{}).chunkSize||(e.chunkSize=b.RemoteChunkSize),u.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded();}:function(){this._readChunk();},this.stream=function(e){this._input=e,this._nextChunk();},this._readChunk=function(){if(this._finished)this._chunkLoaded();else {if(r=new XMLHttpRequest,this._config.withCredentials&&(r.withCredentials=this._config.withCredentials),n||(r.onload=v(this._chunkLoaded,this),r.onerror=v(this._chunkError,this)),r.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var t in e)r.setRequestHeader(t,e[t]);}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;r.setRequestHeader("Range","bytes="+this._start+"-"+i);}try{r.send(this._config.downloadRequestBody);}catch(e){this._chunkError(e.message);}n&&0===r.status&&this._chunkError();}},this._chunkLoaded=function(){4===r.readyState&&(r.status<200||400<=r.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:r.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");if(null===t)return -1;return parseInt(t.substring(t.lastIndexOf("/")+1))}(r),this.parseChunk(r.responseText)));},this._chunkError=function(e){var t=r.statusText||e;this._sendError(new Error(t));};}function c(e){var r,n;(e=e||{}).chunkSize||(e.chunkSize=b.LocalChunkSize),u.call(this,e);var s="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,s?((r=new FileReader).onload=v(this._chunkLoaded,this),r.onerror=v(this._chunkError,this)):r=new FileReaderSync,this._nextChunk();},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk();},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var t=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,t);}var i=r.readAsText(e,this._config.encoding);s||this._chunkLoaded({target:{result:i}});},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result);},this._chunkError=function(){this._sendError(r.error);};}function p(e){var i;u.call(this,e=e||{}),this.stream=function(e){return i=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,t=this._config.chunkSize;return t?(e=i.substring(0,t),i=i.substring(t)):(e=i,i=""),this._finished=!i,this.parseChunk(e)}};}function g(e){u.call(this,e=e||{});var t=[],i=!0,r=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause();},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume();},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError);},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0);},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0;},this._streamData=v(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()));}catch(e){this._streamError(e);}},this),this._streamError=v(function(e){this._streamCleanUp(),this._sendError(e);},this),this._streamEnd=v(function(){this._streamCleanUp(),r=!0,this._streamData("");},this),this._streamCleanUp=v(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError);},this);}function i(m){var a,o,h,r=Math.pow(2,53),n=-r,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,u=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,t=this,i=0,f=0,d=!1,e=!1,l=[],c={data:[],errors:[],meta:{}};if(M(m.step)){var p=m.step;m.step=function(e){if(c=e,_())g();else {if(g(),0===c.data.length)return;i+=e.data.length,m.preview&&i>m.preview?o.abort():(c.data=c.data[0],p(c,t));}};}function y(e){return "greedy"===m.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function g(){return c&&h&&(k("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+b.DefaultDelimiter+"'"),h=!1),m.skipEmptyLines&&(c.data=c.data.filter(function(e){return !y(e)})),_()&&function(){if(!c)return;function e(e,t){M(m.transformHeader)&&(e=m.transformHeader(e,t)),l.push(e);}if(Array.isArray(c.data[0])){for(var t=0;_()&&t<c.data.length;t++)c.data[t].forEach(e);c.data.splice(0,1);}else c.data.forEach(e);}(),function(){if(!c||!m.header&&!m.dynamicTyping&&!m.transform)return c;function e(e,t){var i,r=m.header?{}:[];for(i=0;i<e.length;i++){var n=i,s=e[i];m.header&&(n=i>=l.length?"__parsed_extra":l[i]),m.transform&&(s=m.transform(s,n)),s=v(n,s),"__parsed_extra"===n?(r[n]=r[n]||[],r[n].push(s)):r[n]=s;}return m.header&&(i>l.length?k("FieldMismatch","TooManyFields","Too many fields: expected "+l.length+" fields but parsed "+i,f+t):i<l.length&&k("FieldMismatch","TooFewFields","Too few fields: expected "+l.length+" fields but parsed "+i,f+t)),r}var t=1;!c.data.length||Array.isArray(c.data[0])?(c.data=c.data.map(e),t=c.data.length):c.data=e(c.data,0);m.header&&c.meta&&(c.meta.fields=l);return f+=t,c}()}function _(){return m.header&&0===l.length}function v(e,t){return i=e,m.dynamicTypingFunction&&void 0===m.dynamicTyping[i]&&(m.dynamicTyping[i]=m.dynamicTypingFunction(i)),!0===(m.dynamicTyping[i]||m.dynamicTyping)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(function(e){if(s.test(e)){var t=parseFloat(e);if(n<t&&t<r)return !0}return !1}(t)?parseFloat(t):u.test(t)?new Date(t):""===t?null:t):t;var i;}function k(e,t,i,r){var n={type:e,code:t,message:i};void 0!==r&&(n.row=r),c.errors.push(n);}this.parse=function(e,t,i){var r=m.quoteChar||'"';if(m.newline||(m.newline=function(e,t){e=e.substring(0,1048576);var i=new RegExp(j(t)+"([^]*?)"+j(t),"gm"),r=(e=e.replace(i,"")).split("\r"),n=e.split("\n"),s=1<n.length&&n[0].length<r[0].length;if(1===r.length||s)return "\n";for(var a=0,o=0;o<r.length;o++)"\n"===r[o][0]&&a++;return a>=r.length/2?"\r\n":"\r"}(e,r)),h=!1,m.delimiter)M(m.delimiter)&&(m.delimiter=m.delimiter(e),c.meta.delimiter=m.delimiter);else {var n=function(e,t,i,r,n){var s,a,o,h;n=n||[",","\t","|",";",b.RECORD_SEP,b.UNIT_SEP];for(var u=0;u<n.length;u++){var f=n[u],d=0,l=0,c=0;o=void 0;for(var p=new E({comments:r,delimiter:f,newline:t,preview:10}).parse(e),g=0;g<p.data.length;g++)if(i&&y(p.data[g]))c++;else {var _=p.data[g].length;l+=_,void 0!==o?0<_&&(d+=Math.abs(_-o),o=_):o=_;}0<p.data.length&&(l/=p.data.length-c),(void 0===a||d<=a)&&(void 0===h||h<l)&&1.99<l&&(a=d,s=f,h=l);}return {successful:!!(m.delimiter=s),bestDelimiter:s}}(e,m.newline,m.skipEmptyLines,m.comments,m.delimitersToGuess);n.successful?m.delimiter=n.bestDelimiter:(h=!0,m.delimiter=b.DefaultDelimiter),c.meta.delimiter=m.delimiter;}var s=w(m);return m.preview&&m.header&&s.preview++,a=e,o=new E(s),c=o.parse(a,t,i),g(),d?{meta:{paused:!0}}:c||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,o.abort(),a=M(m.chunk)?"":a.substring(o.getCharIndex());},this.resume=function(){t.streamer._halted?(d=!1,t.streamer.parseChunk(a,!0)):setTimeout(t.resume,3);},this.aborted=function(){return e},this.abort=function(){e=!0,o.abort(),c.meta.aborted=!0,M(m.complete)&&m.complete(c),a="";};}function j(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function E(e){var S,O=(e=e||{}).delimiter,x=e.newline,I=e.comments,T=e.step,D=e.preview,A=e.fastMode,L=S=void 0===e.quoteChar||null===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(L=e.escapeChar),("string"!=typeof O||-1<b.BAD_DELIMITERS.indexOf(O))&&(O=","),I===O)throw new Error("Comment character same as delimiter");!0===I?I="#":("string"!=typeof I||-1<b.BAD_DELIMITERS.indexOf(I))&&(I=!1),"\n"!==x&&"\r"!==x&&"\r\n"!==x&&(x="\n");var F=0,z=!1;this.parse=function(r,t,i){if("string"!=typeof r)throw new Error("Input must be a string");var n=r.length,e=O.length,s=x.length,a=I.length,o=M(T),h=[],u=[],f=[],d=F=0;if(!r)return C();if(A||!1!==A&&-1===r.indexOf(S)){for(var l=r.split(x),c=0;c<l.length;c++){if(f=l[c],F+=f.length,c!==l.length-1)F+=x.length;else if(i)return C();if(!I||f.substring(0,a)!==I){if(o){if(h=[],k(f.split(O)),R(),z)return C()}else k(f.split(O));if(D&&D<=c)return h=h.slice(0,D),C(!0)}}return C()}for(var p=r.indexOf(O,F),g=r.indexOf(x,F),_=new RegExp(j(L)+j(S),"g"),m=r.indexOf(S,F);;)if(r[F]!==S)if(I&&0===f.length&&r.substring(F,F+a)===I){if(-1===g)return C();F=g+s,g=r.indexOf(x,F),p=r.indexOf(O,F);}else if(-1!==p&&(p<g||-1===g))f.push(r.substring(F,p)),F=p+e,p=r.indexOf(O,F);else {if(-1===g)break;if(f.push(r.substring(F,g)),w(g+s),o&&(R(),z))return C();if(D&&h.length>=D)return C(!0)}else for(m=F,F++;;){if(-1===(m=r.indexOf(S,m+1)))return i||u.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:h.length,index:F}),E();if(m===n-1)return E(r.substring(F,m).replace(_,S));if(S!==L||r[m+1]!==L){if(S===L||0===m||r[m-1]!==L){-1!==p&&p<m+1&&(p=r.indexOf(O,m+1)),-1!==g&&g<m+1&&(g=r.indexOf(x,m+1));var y=b(-1===g?p:Math.min(p,g));if(r.substr(m+1+y,e)===O){f.push(r.substring(F,m).replace(_,S)),r[F=m+1+y+e]!==S&&(m=r.indexOf(S,F)),p=r.indexOf(O,F),g=r.indexOf(x,F);break}var v=b(g);if(r.substring(m+1+v,m+1+v+s)===x){if(f.push(r.substring(F,m).replace(_,S)),w(m+1+v+s),p=r.indexOf(O,F),m=r.indexOf(S,F),o&&(R(),z))return C();if(D&&h.length>=D)return C(!0);break}u.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:h.length,index:F}),m++;}}else m++;}return E();function k(e){h.push(e),d=F;}function b(e){var t=0;if(-1!==e){var i=r.substring(m+1,e);i&&""===i.trim()&&(t=i.length);}return t}function E(e){return i||(void 0===e&&(e=r.substring(F)),f.push(e),F=n,k(f),o&&R()),C()}function w(e){F=e,k(f),f=[],g=r.indexOf(x,F);}function C(e){return {data:h,errors:u,meta:{delimiter:O,linebreak:x,aborted:z,truncated:!!e,cursor:d+(t||0)}}}function R(){T(C()),h=[],u=[];}},this.abort=function(){z=!0;},this.getCharIndex=function(){return F};}function _(e){var t=e.data,i=a[t.workerId],r=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var n={abort:function(){r=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}});},pause:y,resume:y};if(M(i.userStep)){for(var s=0;s<t.results.data.length&&(i.userStep({data:t.results.data[s],errors:t.results.errors,meta:t.results.meta},n),!r);s++);delete t.results;}else M(i.userChunk)&&(i.userChunk(t.results,n,t.file),delete t.results);}t.finished&&!r&&m(t.workerId,t.results);}function m(e,t){var i=a[e];M(i.userComplete)&&i.userComplete(t),i.terminate(),delete a[e];}function y(){throw new Error("Not implemented.")}function w(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var i in e)t[i]=w(e[i]);return t}function v(e,t){return function(){e.apply(t,arguments);}}function M(e){return "function"==typeof e}return o&&(f.onmessage=function(e){var t=e.data;void 0===b.WORKER_ID&&t&&(b.WORKER_ID=t.workerId);if("string"==typeof t.input)f.postMessage({workerId:b.WORKER_ID,results:b.parse(t.input,t.config),finished:!0});else if(f.File&&t.input instanceof File||t.input instanceof Object){var i=b.parse(t.input,t.config);i&&f.postMessage({workerId:b.WORKER_ID,results:i,finished:!0});}}),(l.prototype=Object.create(u.prototype)).constructor=l,(c.prototype=Object.create(u.prototype)).constructor=c,(p.prototype=Object.create(p.prototype)).constructor=p,(g.prototype=Object.create(u.prototype)).constructor=g,b});
731
- }(papaparse_min));
732
-
733
- var es2018$3 = {};
734
-
735
- var customError = {};
736
-
737
- var es2018$2 = {};
738
-
739
- var middleware = {};
740
-
741
- var chunkAsync$1 = {};
742
-
743
- var es2018$1 = {};
744
-
745
- var go$1 = {};
746
-
747
- go$1.go = void 0;
748
- function go(fn) {
749
- return fn();
933
+ symbol$1.isSymbol = isSymbol$1;
934
+ function isntSymbol$1(val) {
935
+ return !isSymbol$1(val);
750
936
  }
751
- go$1.go = go;
937
+ symbol$1.isntSymbol = isntSymbol$1;
752
938
 
753
939
  (function (exports) {
754
940
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
755
941
  if (k2 === undefined) k2 = k;
756
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
942
+ var desc = Object.getOwnPropertyDescriptor(m, k);
943
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
944
+ desc = { enumerable: true, get: function() { return m[k]; } };
945
+ }
946
+ Object.defineProperty(o, k2, desc);
757
947
  }) : (function(o, m, k, k2) {
758
948
  if (k2 === undefined) k2 = k;
759
949
  o[k2] = m[k];
760
950
  }));
761
951
  var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
762
952
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
763
- };__exportStar(go$1, exports);
764
-
765
- }(es2018$1));
766
-
767
- chunkAsync$1.chunkAsync = void 0;
768
- const go_1$f = es2018$1;
769
- const errors_1$f = es2018$3;
770
- function chunkAsync(iterable, size) {
771
- (0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
772
- (0, errors_1$f.assert)(size > 0, 'The parameter size must be greater than 0');
773
- return (0, go_1$f.go)(async function* () {
774
- let buffer = [];
775
- for await (const element of iterable) {
776
- buffer.push(element);
777
- if (buffer.length >= size) {
778
- yield buffer;
779
- buffer = [];
780
- }
781
- }
782
- if (buffer.length)
783
- yield buffer;
784
- });
785
- }
786
- chunkAsync$1.chunkAsync = chunkAsync;
787
-
788
- var chunkByAsync$1 = {};
953
+ };__exportStar(array$1, exports);
954
+ __exportStar(asyncIterable$1, exports);
955
+ __exportStar(bigint$1, exports);
956
+ __exportStar(boolean$1, exports);
957
+ __exportStar(char$1, exports);
958
+ __exportStar(date$1, exports);
959
+ __exportStar(_enum$1, exports);
960
+ __exportStar(error$1, exports);
961
+ __exportStar(falsy$1, exports);
962
+ __exportStar(_function$1, exports);
963
+ __exportStar(iterable$1, exports);
964
+ __exportStar(json$2, exports);
965
+ __exportStar(_null$1, exports);
966
+ __exportStar(number$1, exports);
967
+ __exportStar(object$1, exports);
968
+ __exportStar(promise$1, exports);
969
+ __exportStar(string$1, exports);
970
+ __exportStar(_undefined$1, exports);
971
+ __exportStar(url$2, exports);
972
+ __exportStar(regexp$1, exports);
973
+ __exportStar(symbol$1, exports);
974
+
975
+ }(es2018$6));
789
976
 
790
977
  chunkByAsync$1.chunkByAsync = void 0;
791
- const types_1$k = es2018$4;
978
+ const types_1$m = es2018$6;
792
979
  function chunkByAsync(iterable, predicate) {
793
- if ((0, types_1$k.isAsyncIterable)(iterable)) {
794
- return chunkByAsyncIterable(iterable);
980
+ if ((0, types_1$m.isAsyncIterable)(iterable)) {
981
+ return chunkByAsyncIterable(iterable, predicate);
795
982
  }
796
983
  else {
797
- return chunkByIterable(iterable);
984
+ return chunkByIterable(iterable, predicate);
798
985
  }
799
- async function* chunkByAsyncIterable(iterable) {
800
- let buffer = [];
801
- let index = 0;
802
- for await (const element of iterable) {
803
- buffer.push(element);
804
- if (await predicate(element, index)) {
805
- yield buffer;
806
- buffer = [];
807
- }
808
- index++;
809
- }
810
- if (buffer.length)
986
+ }
987
+ chunkByAsync$1.chunkByAsync = chunkByAsync;
988
+ async function* chunkByAsyncIterable(iterable, predicate) {
989
+ let buffer = [];
990
+ let index = 0;
991
+ for await (const element of iterable) {
992
+ buffer.push(element);
993
+ if (await predicate(element, index)) {
811
994
  yield buffer;
812
- }
813
- async function* chunkByIterable(iterable) {
814
- let buffer = [];
815
- let index = 0;
816
- for (const element of iterable) {
817
- buffer.push(element);
818
- if (await predicate(element, index)) {
819
- yield buffer;
820
- buffer = [];
821
- }
822
- index++;
995
+ buffer = [];
823
996
  }
824
- if (buffer.length)
997
+ index++;
998
+ }
999
+ if (buffer.length)
1000
+ yield buffer;
1001
+ }
1002
+ async function* chunkByIterable(iterable, predicate) {
1003
+ let buffer = [];
1004
+ let index = 0;
1005
+ for (const element of iterable) {
1006
+ buffer.push(element);
1007
+ if (await predicate(element, index)) {
825
1008
  yield buffer;
1009
+ buffer = [];
1010
+ }
1011
+ index++;
826
1012
  }
1013
+ if (buffer.length)
1014
+ yield buffer;
827
1015
  }
828
- chunkByAsync$1.chunkByAsync = chunkByAsync;
829
1016
 
830
1017
  var chunkBy$1 = {};
831
1018
 
@@ -849,12 +1036,12 @@
849
1036
  var chunk$1 = {};
850
1037
 
851
1038
  chunk$1.chunk = void 0;
852
- const go_1$e = es2018$1;
853
- const errors_1$e = es2018$3;
1039
+ const go_1$f = es2018$9;
1040
+ const errors_1$e = es2018$b;
854
1041
  function chunk(iterable, size) {
855
1042
  (0, errors_1$e.assert)(Number.isInteger(size), 'The parameter size must be an integer');
856
1043
  (0, errors_1$e.assert)(size > 0, 'The parameter size must be greater than 0');
857
- return (0, go_1$e.go)(function* () {
1044
+ return (0, go_1$f.go)(function* () {
858
1045
  let buffer = [];
859
1046
  for (const element of iterable) {
860
1047
  buffer.push(element);
@@ -872,12 +1059,12 @@
872
1059
  var concatAsync$1 = {};
873
1060
 
874
1061
  concatAsync$1.concatAsync = void 0;
875
- const types_1$j = es2018$4;
876
- const go_1$d = es2018$1;
1062
+ const types_1$l = es2018$6;
1063
+ const go_1$e = es2018$9;
877
1064
  function concatAsync(iterable, ...otherIterables) {
878
- return (0, go_1$d.go)(async function* () {
1065
+ return (0, go_1$e.go)(async function* () {
879
1066
  for (const iter of [iterable, ...otherIterables]) {
880
- if ((0, types_1$j.isAsyncIterable)(iter)) {
1067
+ if ((0, types_1$l.isAsyncIterable)(iter)) {
881
1068
  for await (const element of iter) {
882
1069
  yield element;
883
1070
  }
@@ -895,9 +1082,9 @@
895
1082
  var concat$1 = {};
896
1083
 
897
1084
  concat$1.concat = void 0;
898
- const go_1$c = es2018$1;
1085
+ const go_1$d = es2018$9;
899
1086
  function concat(iterable, ...otherIterables) {
900
- return (0, go_1$c.go)(function* () {
1087
+ return (0, go_1$d.go)(function* () {
901
1088
  for (const iter of [iterable, ...otherIterables]) {
902
1089
  yield* iter;
903
1090
  }
@@ -924,15 +1111,15 @@
924
1111
  utils.copyIterable = copyIterable;
925
1112
 
926
1113
  dropAsync$1.dropAsync = void 0;
927
- const go_1$b = es2018$1;
1114
+ const go_1$c = es2018$9;
928
1115
  const utils_1$3 = utils;
929
- const errors_1$d = es2018$3;
1116
+ const errors_1$d = es2018$b;
930
1117
  function dropAsync(iterable, count) {
931
1118
  (0, errors_1$d.assert)(Number.isInteger(count), 'The parameter count must be an integer');
932
1119
  (0, errors_1$d.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
933
1120
  if (count === 0)
934
1121
  return (0, utils_1$3.copyAsyncIterable)(iterable);
935
- return (0, go_1$b.go)(async function* () {
1122
+ return (0, go_1$c.go)(async function* () {
936
1123
  var _a;
937
1124
  const iterator = iterable[Symbol.asyncIterator]();
938
1125
  let done;
@@ -959,15 +1146,15 @@
959
1146
  var dropRightAsync$1 = {};
960
1147
 
961
1148
  dropRightAsync$1.dropRightAsync = void 0;
962
- const go_1$a = es2018$1;
1149
+ const go_1$b = es2018$9;
963
1150
  const utils_1$2 = utils;
964
- const errors_1$c = es2018$3;
1151
+ const errors_1$c = es2018$b;
965
1152
  function dropRightAsync(iterable, count) {
966
1153
  (0, errors_1$c.assert)(Number.isInteger(count), 'The parameter count must be an integer');
967
1154
  (0, errors_1$c.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
968
1155
  if (count === 0)
969
1156
  return (0, utils_1$2.copyAsyncIterable)(iterable);
970
- return (0, go_1$a.go)(async function* () {
1157
+ return (0, go_1$b.go)(async function* () {
971
1158
  const arr = await toArrayAsync$2(iterable);
972
1159
  const result = arr.slice(0, -count);
973
1160
  for (const value of result) {
@@ -987,15 +1174,15 @@
987
1174
  var dropRight$1 = {};
988
1175
 
989
1176
  dropRight$1.dropRight = void 0;
990
- const go_1$9 = es2018$1;
1177
+ const go_1$a = es2018$9;
991
1178
  const utils_1$1 = utils;
992
- const errors_1$b = es2018$3;
1179
+ const errors_1$b = es2018$b;
993
1180
  function dropRight(iterable, count) {
994
1181
  (0, errors_1$b.assert)(Number.isInteger(count), 'The parameter count must be an integer');
995
1182
  (0, errors_1$b.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
996
1183
  if (count === 0)
997
1184
  return (0, utils_1$1.copyIterable)(iterable);
998
- return (0, go_1$9.go)(function* () {
1185
+ return (0, go_1$a.go)(function* () {
999
1186
  const arr = Array.from(iterable);
1000
1187
  yield* arr.slice(0, -count);
1001
1188
  });
@@ -1005,58 +1192,58 @@
1005
1192
  var dropUntilAsync$1 = {};
1006
1193
 
1007
1194
  dropUntilAsync$1.dropUntilAsync = void 0;
1008
- const types_1$i = es2018$4;
1195
+ const types_1$k = es2018$6;
1009
1196
  function dropUntilAsync(iterable, predicate) {
1010
- if ((0, types_1$i.isAsyncIterable)(iterable)) {
1011
- return dropUntilAsyncIterable(iterable);
1197
+ if ((0, types_1$k.isAsyncIterable)(iterable)) {
1198
+ return dropUntilAsyncIterable(iterable, predicate);
1012
1199
  }
1013
1200
  else {
1014
- return dropUntilIterable(iterable);
1201
+ return dropUntilIterable(iterable, predicate);
1015
1202
  }
1016
- async function* dropUntilAsyncIterable(iterable) {
1017
- var _a;
1018
- const iterator = iterable[Symbol.asyncIterator]();
1019
- let done;
1020
- try {
1021
- let index = 0;
1022
- let value;
1023
- while ({ value, done } = await iterator.next(), !done) {
1024
- if (await predicate(value, index++))
1025
- break;
1026
- }
1027
- while (!done) {
1028
- yield value;
1029
- ({ value, done } = await iterator.next());
1030
- }
1203
+ }
1204
+ dropUntilAsync$1.dropUntilAsync = dropUntilAsync;
1205
+ async function* dropUntilAsyncIterable(iterable, predicate) {
1206
+ var _a;
1207
+ const iterator = iterable[Symbol.asyncIterator]();
1208
+ let done;
1209
+ try {
1210
+ let index = 0;
1211
+ let value;
1212
+ while ({ value, done } = await iterator.next(), !done) {
1213
+ if (await predicate(value, index++))
1214
+ break;
1031
1215
  }
1032
- finally {
1033
- if (!done)
1034
- await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
1216
+ while (!done) {
1217
+ yield value;
1218
+ ({ value, done } = await iterator.next());
1035
1219
  }
1036
1220
  }
1037
- async function* dropUntilIterable(iterable) {
1038
- var _a;
1039
- const iterator = iterable[Symbol.iterator]();
1040
- let done;
1041
- try {
1042
- let index = 0;
1043
- let value;
1044
- while ({ value, done } = iterator.next(), !done) {
1045
- if (await predicate(value, index++))
1046
- break;
1047
- }
1048
- while (!done) {
1049
- yield value;
1050
- ({ value, done } = iterator.next());
1051
- }
1221
+ finally {
1222
+ if (!done)
1223
+ await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
1224
+ }
1225
+ }
1226
+ async function* dropUntilIterable(iterable, predicate) {
1227
+ var _a;
1228
+ const iterator = iterable[Symbol.iterator]();
1229
+ let done;
1230
+ try {
1231
+ let index = 0;
1232
+ let value;
1233
+ while ({ value, done } = iterator.next(), !done) {
1234
+ if (await predicate(value, index++))
1235
+ break;
1052
1236
  }
1053
- finally {
1054
- if (!done)
1055
- (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
1237
+ while (!done) {
1238
+ yield value;
1239
+ ({ value, done } = iterator.next());
1056
1240
  }
1057
1241
  }
1242
+ finally {
1243
+ if (!done)
1244
+ (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
1245
+ }
1058
1246
  }
1059
- dropUntilAsync$1.dropUntilAsync = dropUntilAsync;
1060
1247
 
1061
1248
  var dropUntil$1 = {};
1062
1249
 
@@ -1087,15 +1274,15 @@
1087
1274
  var drop$1 = {};
1088
1275
 
1089
1276
  drop$1.drop = void 0;
1090
- const go_1$8 = es2018$1;
1277
+ const go_1$9 = es2018$9;
1091
1278
  const utils_1 = utils;
1092
- const errors_1$a = es2018$3;
1279
+ const errors_1$a = es2018$b;
1093
1280
  function drop(iterable, count) {
1094
1281
  (0, errors_1$a.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1095
1282
  (0, errors_1$a.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1096
1283
  if (count === 0)
1097
1284
  return (0, utils_1.copyIterable)(iterable);
1098
- return (0, go_1$8.go)(function* () {
1285
+ return (0, go_1$9.go)(function* () {
1099
1286
  var _a;
1100
1287
  const iterator = iterable[Symbol.iterator]();
1101
1288
  let done;
@@ -1122,32 +1309,32 @@
1122
1309
  var filterAsync$1 = {};
1123
1310
 
1124
1311
  filterAsync$1.filterAsync = void 0;
1125
- const types_1$h = es2018$4;
1312
+ const types_1$j = es2018$6;
1126
1313
  function filterAsync(iterable, predicate) {
1127
- if ((0, types_1$h.isAsyncIterable)(iterable)) {
1128
- return filterAsyncIterable(iterable);
1314
+ if ((0, types_1$j.isAsyncIterable)(iterable)) {
1315
+ return filterAsyncIterable(iterable, predicate);
1129
1316
  }
1130
1317
  else {
1131
- return filterIterable(iterable);
1318
+ return filterIterable(iterable, predicate);
1132
1319
  }
1133
- async function* filterAsyncIterable(iterable) {
1134
- let index = 0;
1135
- for await (const element of iterable) {
1136
- if (await predicate(element, index))
1137
- yield element;
1138
- index++;
1139
- }
1320
+ }
1321
+ filterAsync$1.filterAsync = filterAsync;
1322
+ async function* filterAsyncIterable(iterable, predicate) {
1323
+ let index = 0;
1324
+ for await (const element of iterable) {
1325
+ if (await predicate(element, index))
1326
+ yield element;
1327
+ index++;
1140
1328
  }
1141
- async function* filterIterable(iterable) {
1142
- let index = 0;
1143
- for (const element of iterable) {
1144
- if (await predicate(element, index))
1145
- yield element;
1146
- index++;
1147
- }
1329
+ }
1330
+ async function* filterIterable(iterable, predicate) {
1331
+ let index = 0;
1332
+ for (const element of iterable) {
1333
+ if (await predicate(element, index))
1334
+ yield element;
1335
+ index++;
1148
1336
  }
1149
1337
  }
1150
- filterAsync$1.filterAsync = filterAsync;
1151
1338
 
1152
1339
  var filter$1 = {};
1153
1340
 
@@ -1169,47 +1356,47 @@
1169
1356
  var flattenByAsync$1 = {};
1170
1357
 
1171
1358
  flattenByAsync$1.flattenByAsync = void 0;
1172
- const types_1$g = es2018$4;
1359
+ const types_1$i = es2018$6;
1173
1360
  function flattenByAsync(iterable, predicate) {
1174
- if ((0, types_1$g.isAsyncIterable)(iterable)) {
1175
- return flattenByAsyncIterable(iterable);
1361
+ if ((0, types_1$i.isAsyncIterable)(iterable)) {
1362
+ return flattenByAsyncIterable(iterable, predicate);
1176
1363
  }
1177
1364
  else {
1178
- return flattenByIterable(iterable);
1365
+ return flattenByIterable(iterable, predicate);
1179
1366
  }
1180
- async function* flattenByAsyncIterable(iterable) {
1181
- const level = 1;
1182
- for await (const element of iterable) {
1183
- if (isFiniteIterable$1(element) && await predicate(element, level)) {
1184
- yield* flatten(element, level + 1);
1185
- }
1186
- else {
1187
- yield element;
1188
- }
1367
+ }
1368
+ flattenByAsync$1.flattenByAsync = flattenByAsync;
1369
+ async function* flattenByAsyncIterable(iterable, predicate) {
1370
+ const level = 1;
1371
+ for await (const element of iterable) {
1372
+ if (isFiniteIterable$1(element) && await predicate(element, level)) {
1373
+ yield* flatten$3(element, predicate, level + 1);
1374
+ }
1375
+ else {
1376
+ yield element;
1189
1377
  }
1190
1378
  }
1191
- function flattenByIterable(iterable) {
1192
- return flatten(iterable, 1);
1193
- }
1194
- async function* flatten(iterable, level) {
1195
- for (const element of iterable) {
1196
- if (isFiniteIterable$1(element) && await predicate(element, level)) {
1197
- yield* flatten(element, level + 1);
1198
- }
1199
- else {
1200
- yield element;
1201
- }
1379
+ }
1380
+ function flattenByIterable(iterable, predicate) {
1381
+ return flatten$3(iterable, predicate, 1);
1382
+ }
1383
+ async function* flatten$3(iterable, predicate, level) {
1384
+ for (const element of iterable) {
1385
+ if (isFiniteIterable$1(element) && await predicate(element, level)) {
1386
+ yield* flatten$3(element, predicate, level + 1);
1387
+ }
1388
+ else {
1389
+ yield element;
1202
1390
  }
1203
1391
  }
1204
1392
  }
1205
- flattenByAsync$1.flattenByAsync = flattenByAsync;
1206
1393
  function isFiniteIterable$1(val) {
1207
- return (0, types_1$g.isIterable)(val) && (0, types_1$g.isntChar)(val);
1394
+ return (0, types_1$i.isIterable)(val) && (0, types_1$i.isntChar)(val);
1208
1395
  }
1209
1396
 
1210
1397
  flattenDeepAsync$1.flattenDeepAsync = void 0;
1211
1398
  const flatten_by_async_1 = flattenByAsync$1;
1212
- const errors_1$9 = es2018$3;
1399
+ const errors_1$9 = es2018$b;
1213
1400
  function flattenDeepAsync(iterable, depth = Infinity) {
1214
1401
  (0, errors_1$9.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
1215
1402
  (0, errors_1$9.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
@@ -1227,30 +1414,30 @@
1227
1414
  var flattenBy$1 = {};
1228
1415
 
1229
1416
  flattenBy$1.flattenBy = void 0;
1230
- const types_1$f = es2018$4;
1417
+ const types_1$h = es2018$6;
1231
1418
  function flattenBy(iterable, predicate) {
1232
- return flatten(iterable, 1);
1233
- function* flatten(iterable, level) {
1234
- for (const element of iterable) {
1235
- if (isFiniteIterable(element) && predicate(element, level)) {
1236
- yield* flatten(element, level + 1);
1237
- }
1238
- else {
1239
- yield element;
1240
- }
1419
+ return flatten$2(iterable, predicate, 1);
1420
+ }
1421
+ flattenBy$1.flattenBy = flattenBy;
1422
+ function* flatten$2(iterable, predicate, level) {
1423
+ for (const element of iterable) {
1424
+ if (isFiniteIterable(element) && predicate(element, level)) {
1425
+ yield* flatten$2(element, predicate, level + 1);
1426
+ }
1427
+ else {
1428
+ yield element;
1241
1429
  }
1242
1430
  }
1243
1431
  }
1244
- flattenBy$1.flattenBy = flattenBy;
1245
1432
  function isFiniteIterable(val) {
1246
- return (0, types_1$f.isIterable)(val) && (0, types_1$f.isntChar)(val);
1433
+ return (0, types_1$h.isIterable)(val) && (0, types_1$h.isntChar)(val);
1247
1434
  }
1248
1435
 
1249
1436
  var flattenDeep$1 = {};
1250
1437
 
1251
1438
  flattenDeep$1.flattenDeep = void 0;
1252
1439
  const flatten_by_1 = flattenBy$1;
1253
- const errors_1$8 = es2018$3;
1440
+ const errors_1$8 = es2018$b;
1254
1441
  function flattenDeep(iterable, depth = Infinity) {
1255
1442
  (0, errors_1$8.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
1256
1443
  (0, errors_1$8.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
@@ -1270,30 +1457,30 @@
1270
1457
  var mapAsync$1 = {};
1271
1458
 
1272
1459
  mapAsync$1.mapAsync = void 0;
1273
- const types_1$e = es2018$4;
1460
+ const types_1$g = es2018$6;
1274
1461
  function mapAsync(iterable, fn) {
1275
- if ((0, types_1$e.isAsyncIterable)(iterable)) {
1276
- return mapAsyncIterable(iterable);
1462
+ if ((0, types_1$g.isAsyncIterable)(iterable)) {
1463
+ return mapAsyncIterable(iterable, fn);
1277
1464
  }
1278
1465
  else {
1279
- return mapIterable(iterable);
1466
+ return mapIterable(iterable, fn);
1280
1467
  }
1281
- async function* mapAsyncIterable(iterable) {
1282
- let index = 0;
1283
- for await (const element of iterable) {
1284
- yield await fn(element, index);
1285
- index++;
1286
- }
1468
+ }
1469
+ mapAsync$1.mapAsync = mapAsync;
1470
+ async function* mapAsyncIterable(iterable, fn) {
1471
+ let index = 0;
1472
+ for await (const element of iterable) {
1473
+ yield await fn(element, index);
1474
+ index++;
1287
1475
  }
1288
- async function* mapIterable(iterable) {
1289
- let index = 0;
1290
- for (const element of iterable) {
1291
- yield await fn(element, index);
1292
- index++;
1293
- }
1476
+ }
1477
+ async function* mapIterable(iterable, fn) {
1478
+ let index = 0;
1479
+ for (const element of iterable) {
1480
+ yield await fn(element, index);
1481
+ index++;
1294
1482
  }
1295
1483
  }
1296
- mapAsync$1.mapAsync = mapAsync;
1297
1484
 
1298
1485
  var map$1 = {};
1299
1486
 
@@ -1310,14 +1497,14 @@
1310
1497
  var repeatAsync$1 = {};
1311
1498
 
1312
1499
  repeatAsync$1.repeatAsync = void 0;
1313
- const go_1$7 = es2018$1;
1314
- const errors_1$7 = es2018$3;
1500
+ const go_1$8 = es2018$9;
1501
+ const errors_1$7 = es2018$b;
1315
1502
  function repeatAsync(iterable, times) {
1316
1503
  (0, errors_1$7.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
1317
1504
  (0, errors_1$7.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
1318
1505
  if (times === Infinity)
1319
1506
  warnInfiniteLoop$1();
1320
- return (0, go_1$7.go)(async function* () {
1507
+ return (0, go_1$8.go)(async function* () {
1321
1508
  const cache = [];
1322
1509
  if (times > 0) {
1323
1510
  for await (const element of iterable) {
@@ -1345,14 +1532,14 @@
1345
1532
  var repeat$1 = {};
1346
1533
 
1347
1534
  repeat$1.repeat = void 0;
1348
- const go_1$6 = es2018$1;
1349
- const errors_1$6 = es2018$3;
1535
+ const go_1$7 = es2018$9;
1536
+ const errors_1$6 = es2018$b;
1350
1537
  function repeat(iterable, times) {
1351
1538
  (0, errors_1$6.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
1352
1539
  (0, errors_1$6.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
1353
1540
  if (times === Infinity)
1354
1541
  warnInfiniteLoop();
1355
- return (0, go_1$6.go)(function* () {
1542
+ return (0, go_1$7.go)(function* () {
1356
1543
  const cache = [];
1357
1544
  if (times > 0) {
1358
1545
  for (const element of iterable) {
@@ -1380,14 +1567,14 @@
1380
1567
  var sliceAsync$1 = {};
1381
1568
 
1382
1569
  sliceAsync$1.sliceAsync = void 0;
1383
- const go_1$5 = es2018$1;
1384
- const errors_1$5 = es2018$3;
1570
+ const go_1$6 = es2018$9;
1571
+ const errors_1$5 = es2018$b;
1385
1572
  function sliceAsync(iterable, start, end = Infinity) {
1386
1573
  (0, errors_1$5.assert)(Number.isInteger(start), 'The parameter start must be an integer');
1387
1574
  (0, errors_1$5.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
1388
1575
  (0, errors_1$5.assert)(Number.isInteger(end), 'The parameter end must be an integer');
1389
1576
  (0, errors_1$5.assert)(end >= start, 'The parameter end must be greater than or equal to start');
1390
- return (0, go_1$5.go)(async function* () {
1577
+ return (0, go_1$6.go)(async function* () {
1391
1578
  let index = 0;
1392
1579
  for await (const element of iterable) {
1393
1580
  if (index >= end)
@@ -1403,14 +1590,14 @@
1403
1590
  var slice$1 = {};
1404
1591
 
1405
1592
  slice$1.slice = void 0;
1406
- const go_1$4 = es2018$1;
1407
- const errors_1$4 = es2018$3;
1593
+ const go_1$5 = es2018$9;
1594
+ const errors_1$4 = es2018$b;
1408
1595
  function slice(iterable, start, end = Infinity) {
1409
1596
  (0, errors_1$4.assert)(Number.isInteger(start), 'The parameter start must be an integer');
1410
1597
  (0, errors_1$4.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
1411
1598
  (0, errors_1$4.assert)(Number.isInteger(end), 'The parameter end must be an integer');
1412
1599
  (0, errors_1$4.assert)(end >= start, 'The parameter end must be greater than or equal to start');
1413
- return (0, go_1$4.go)(function* () {
1600
+ return (0, go_1$5.go)(function* () {
1414
1601
  let index = 0;
1415
1602
  for (const element of iterable) {
1416
1603
  if (index >= end)
@@ -1444,46 +1631,46 @@
1444
1631
  var splitByAsync$1 = {};
1445
1632
 
1446
1633
  splitByAsync$1.splitByAsync = void 0;
1447
- const types_1$d = es2018$4;
1634
+ const types_1$f = es2018$6;
1448
1635
  function splitByAsync(iterable, predicate) {
1449
- if ((0, types_1$d.isAsyncIterable)(iterable)) {
1450
- return splitByAsyncIterable(iterable);
1636
+ if ((0, types_1$f.isAsyncIterable)(iterable)) {
1637
+ return splitByAsyncIterable(iterable, predicate);
1451
1638
  }
1452
1639
  else {
1453
- return splitByIterable(iterable);
1640
+ return splitByIterable(iterable, predicate);
1454
1641
  }
1455
- async function* splitByIterable(iterable) {
1456
- let buffer = [];
1457
- let index = 0;
1458
- for (const element of iterable) {
1459
- if (await predicate(element, index)) {
1460
- yield buffer;
1461
- buffer = [];
1462
- }
1463
- else {
1464
- buffer.push(element);
1465
- }
1466
- index++;
1642
+ }
1643
+ splitByAsync$1.splitByAsync = splitByAsync;
1644
+ async function* splitByIterable(iterable, predicate) {
1645
+ let buffer = [];
1646
+ let index = 0;
1647
+ for (const element of iterable) {
1648
+ if (await predicate(element, index)) {
1649
+ yield buffer;
1650
+ buffer = [];
1467
1651
  }
1468
- yield buffer;
1652
+ else {
1653
+ buffer.push(element);
1654
+ }
1655
+ index++;
1469
1656
  }
1470
- async function* splitByAsyncIterable(iterable) {
1471
- let buffer = [];
1472
- let index = 0;
1473
- for await (const element of iterable) {
1474
- if (await predicate(element, index)) {
1475
- yield buffer;
1476
- buffer = [];
1477
- }
1478
- else {
1479
- buffer.push(element);
1480
- }
1481
- index++;
1657
+ yield buffer;
1658
+ }
1659
+ async function* splitByAsyncIterable(iterable, predicate) {
1660
+ let buffer = [];
1661
+ let index = 0;
1662
+ for await (const element of iterable) {
1663
+ if (await predicate(element, index)) {
1664
+ yield buffer;
1665
+ buffer = [];
1482
1666
  }
1483
- yield buffer;
1667
+ else {
1668
+ buffer.push(element);
1669
+ }
1670
+ index++;
1484
1671
  }
1672
+ yield buffer;
1485
1673
  }
1486
- splitByAsync$1.splitByAsync = splitByAsync;
1487
1674
 
1488
1675
  var splitBy$1 = {};
1489
1676
 
@@ -1526,12 +1713,12 @@
1526
1713
  var takeAsync$1 = {};
1527
1714
 
1528
1715
  takeAsync$1.takeAsync = void 0;
1529
- const go_1$3 = es2018$1;
1530
- const errors_1$3 = es2018$3;
1716
+ const go_1$4 = es2018$9;
1717
+ const errors_1$3 = es2018$b;
1531
1718
  function takeAsync(iterable, count) {
1532
1719
  (0, errors_1$3.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1533
1720
  (0, errors_1$3.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1534
- return (0, go_1$3.go)(async function* () {
1721
+ return (0, go_1$4.go)(async function* () {
1535
1722
  if (count === 0)
1536
1723
  return;
1537
1724
  for await (const element of iterable) {
@@ -1547,12 +1734,12 @@
1547
1734
  var takeRightAsync$1 = {};
1548
1735
 
1549
1736
  takeRightAsync$1.takeRightAsync = void 0;
1550
- const go_1$2 = es2018$1;
1551
- const errors_1$2 = es2018$3;
1737
+ const go_1$3 = es2018$9;
1738
+ const errors_1$2 = es2018$b;
1552
1739
  function takeRightAsync(iterable, count) {
1553
1740
  (0, errors_1$2.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1554
1741
  (0, errors_1$2.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1555
- return (0, go_1$2.go)(async function* () {
1742
+ return (0, go_1$3.go)(async function* () {
1556
1743
  var _a;
1557
1744
  const iterator = iterable[Symbol.asyncIterator]();
1558
1745
  let done;
@@ -1577,12 +1764,12 @@
1577
1764
  var takeRight$1 = {};
1578
1765
 
1579
1766
  takeRight$1.takeRight = void 0;
1580
- const go_1$1 = es2018$1;
1581
- const errors_1$1 = es2018$3;
1767
+ const go_1$2 = es2018$9;
1768
+ const errors_1$1 = es2018$b;
1582
1769
  function takeRight(iterable, count) {
1583
1770
  (0, errors_1$1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1584
1771
  (0, errors_1$1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1585
- return (0, go_1$1.go)(function* () {
1772
+ return (0, go_1$2.go)(function* () {
1586
1773
  var _a;
1587
1774
  const iterator = iterable[Symbol.iterator]();
1588
1775
  let done;
@@ -1607,34 +1794,34 @@
1607
1794
  var takeUntilAsync$1 = {};
1608
1795
 
1609
1796
  takeUntilAsync$1.takeUntilAsync = void 0;
1610
- const types_1$c = es2018$4;
1797
+ const types_1$e = es2018$6;
1611
1798
  function takeUntilAsync(iterable, predicate) {
1612
- if ((0, types_1$c.isAsyncIterable)(iterable)) {
1613
- return takeUntilAsyncIterable(iterable);
1799
+ if ((0, types_1$e.isAsyncIterable)(iterable)) {
1800
+ return takeUntilAsyncIterable(iterable, predicate);
1614
1801
  }
1615
1802
  else {
1616
- return takeUntilIterable(iterable);
1803
+ return takeUntilIterable(iterable, predicate);
1617
1804
  }
1618
- async function* takeUntilAsyncIterable(iterable) {
1619
- let index = 0;
1620
- for await (const element of iterable) {
1621
- if (await predicate(element, index))
1622
- break;
1623
- yield element;
1624
- index++;
1625
- }
1805
+ }
1806
+ takeUntilAsync$1.takeUntilAsync = takeUntilAsync;
1807
+ async function* takeUntilAsyncIterable(iterable, predicate) {
1808
+ let index = 0;
1809
+ for await (const element of iterable) {
1810
+ if (await predicate(element, index))
1811
+ break;
1812
+ yield element;
1813
+ index++;
1626
1814
  }
1627
- async function* takeUntilIterable(iterable) {
1628
- let index = 0;
1629
- for (const element of iterable) {
1630
- if (await predicate(element, index))
1631
- break;
1632
- yield element;
1633
- index++;
1634
- }
1815
+ }
1816
+ async function* takeUntilIterable(iterable, predicate) {
1817
+ let index = 0;
1818
+ for (const element of iterable) {
1819
+ if (await predicate(element, index))
1820
+ break;
1821
+ yield element;
1822
+ index++;
1635
1823
  }
1636
1824
  }
1637
- takeUntilAsync$1.takeUntilAsync = takeUntilAsync;
1638
1825
 
1639
1826
  var takeUntil$1 = {};
1640
1827
 
@@ -1653,12 +1840,12 @@
1653
1840
  var take$1 = {};
1654
1841
 
1655
1842
  take$1.take = void 0;
1656
- const go_1 = es2018$1;
1657
- const errors_1 = es2018$3;
1843
+ const go_1$1 = es2018$9;
1844
+ const errors_1 = es2018$b;
1658
1845
  function take(iterable, count) {
1659
1846
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1660
1847
  (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1661
- return (0, go_1.go)(function* () {
1848
+ return (0, go_1$1.go)(function* () {
1662
1849
  if (count === 0)
1663
1850
  return;
1664
1851
  for (const element of iterable) {
@@ -1674,32 +1861,32 @@
1674
1861
  var tapAsync$1 = {};
1675
1862
 
1676
1863
  tapAsync$1.tapAsync = void 0;
1677
- const types_1$b = es2018$4;
1864
+ const types_1$d = es2018$6;
1678
1865
  function tapAsync(iterable, fn) {
1679
- if ((0, types_1$b.isAsyncIterable)(iterable)) {
1680
- return tapAsyncIterable(iterable);
1866
+ if ((0, types_1$d.isAsyncIterable)(iterable)) {
1867
+ return tapAsyncIterable(iterable, fn);
1681
1868
  }
1682
1869
  else {
1683
- return tapIterable(iterable);
1870
+ return tapIterable(iterable, fn);
1684
1871
  }
1685
- async function* tapIterable(iterable) {
1686
- let index = 0;
1687
- for (const element of iterable) {
1688
- await fn(element, index);
1689
- yield element;
1690
- index++;
1691
- }
1872
+ }
1873
+ tapAsync$1.tapAsync = tapAsync;
1874
+ async function* tapIterable(iterable, fn) {
1875
+ let index = 0;
1876
+ for (const element of iterable) {
1877
+ await fn(element, index);
1878
+ yield element;
1879
+ index++;
1692
1880
  }
1693
- async function* tapAsyncIterable(iterable) {
1694
- let index = 0;
1695
- for await (const element of iterable) {
1696
- await fn(element, index);
1697
- yield element;
1698
- index++;
1699
- }
1881
+ }
1882
+ async function* tapAsyncIterable(iterable, fn) {
1883
+ let index = 0;
1884
+ for await (const element of iterable) {
1885
+ await fn(element, index);
1886
+ yield element;
1887
+ index++;
1700
1888
  }
1701
1889
  }
1702
- tapAsync$1.tapAsync = tapAsync;
1703
1890
 
1704
1891
  var tap$1 = {};
1705
1892
 
@@ -1757,40 +1944,40 @@
1757
1944
  var uniqByAsync$1 = {};
1758
1945
 
1759
1946
  uniqByAsync$1.uniqByAsync = void 0;
1760
- const types_1$a = es2018$4;
1947
+ const types_1$c = es2018$6;
1761
1948
  function uniqByAsync(iterable, fn) {
1762
- if ((0, types_1$a.isAsyncIterable)(iterable)) {
1763
- return uniqByAsyncIterable(iterable);
1949
+ if ((0, types_1$c.isAsyncIterable)(iterable)) {
1950
+ return uniqByAsyncIterable(iterable, fn);
1764
1951
  }
1765
1952
  else {
1766
- return uniqByIterable(iterable);
1953
+ return uniqByIterable(iterable, fn);
1767
1954
  }
1768
- async function* uniqByAsyncIterable(iterable) {
1769
- const bucket = new Set();
1770
- let index = 0;
1771
- for await (const element of iterable) {
1772
- const result = await fn(element, index);
1773
- if (!bucket.has(result)) {
1774
- yield element;
1775
- bucket.add(result);
1776
- }
1777
- index++;
1955
+ }
1956
+ uniqByAsync$1.uniqByAsync = uniqByAsync;
1957
+ async function* uniqByAsyncIterable(iterable, fn) {
1958
+ const bucket = new Set();
1959
+ let index = 0;
1960
+ for await (const element of iterable) {
1961
+ const result = await fn(element, index);
1962
+ if (!bucket.has(result)) {
1963
+ yield element;
1964
+ bucket.add(result);
1778
1965
  }
1966
+ index++;
1779
1967
  }
1780
- async function* uniqByIterable(iterable) {
1781
- const bucket = new Set();
1782
- let index = 0;
1783
- for (const element of iterable) {
1784
- const result = await fn(element, index);
1785
- if (!bucket.has(result)) {
1786
- yield element;
1787
- bucket.add(result);
1788
- }
1789
- index++;
1968
+ }
1969
+ async function* uniqByIterable(iterable, fn) {
1970
+ const bucket = new Set();
1971
+ let index = 0;
1972
+ for (const element of iterable) {
1973
+ const result = await fn(element, index);
1974
+ if (!bucket.has(result)) {
1975
+ yield element;
1976
+ bucket.add(result);
1790
1977
  }
1978
+ index++;
1791
1979
  }
1792
1980
  }
1793
- uniqByAsync$1.uniqByAsync = uniqByAsync;
1794
1981
 
1795
1982
  var uniqBy$1 = {};
1796
1983
 
@@ -1826,7 +2013,7 @@
1826
2013
  var zipAsync$1 = {};
1827
2014
 
1828
2015
  zipAsync$1.zipAsync = void 0;
1829
- const types_1$9 = es2018$4;
2016
+ const types_1$b = es2018$6;
1830
2017
  var Kind;
1831
2018
  (function (Kind) {
1832
2019
  Kind[Kind["Sync"] = 0] = "Sync";
@@ -1840,7 +2027,7 @@
1840
2027
  var _a, _b, _c, _d;
1841
2028
  const length = iterables.length;
1842
2029
  const iterators = iterables.map(iterable => {
1843
- if ((0, types_1$9.isAsyncIterable)(iterable)) {
2030
+ if ((0, types_1$b.isAsyncIterable)(iterable)) {
1844
2031
  return [Kind.Async, iterable[Symbol.asyncIterator]()];
1845
2032
  }
1846
2033
  else {
@@ -1990,30 +2177,30 @@
1990
2177
  var eachAsync$1 = {};
1991
2178
 
1992
2179
  eachAsync$1.eachAsync = void 0;
1993
- const types_1$8 = es2018$4;
2180
+ const types_1$a = es2018$6;
1994
2181
  function eachAsync(iterable, fn) {
1995
- if ((0, types_1$8.isAsyncIterable)(iterable)) {
1996
- return eachAsyncIterable(iterable);
2182
+ if ((0, types_1$a.isAsyncIterable)(iterable)) {
2183
+ return eachAsyncIterable(iterable, fn);
1997
2184
  }
1998
2185
  else {
1999
- return eachIterable(iterable);
2186
+ return eachIterable(iterable, fn);
2000
2187
  }
2001
- async function eachAsyncIterable(iterable) {
2002
- let index = 0;
2003
- for await (const element of iterable) {
2004
- await fn(element, index);
2005
- index++;
2006
- }
2188
+ }
2189
+ eachAsync$1.eachAsync = eachAsync;
2190
+ async function eachAsyncIterable(iterable, fn) {
2191
+ let index = 0;
2192
+ for await (const element of iterable) {
2193
+ await fn(element, index);
2194
+ index++;
2007
2195
  }
2008
- async function eachIterable(iterable) {
2009
- let index = 0;
2010
- for (const element of iterable) {
2011
- await fn(element, index);
2012
- index++;
2013
- }
2196
+ }
2197
+ async function eachIterable(iterable, fn) {
2198
+ let index = 0;
2199
+ for (const element of iterable) {
2200
+ await fn(element, index);
2201
+ index++;
2014
2202
  }
2015
2203
  }
2016
- eachAsync$1.eachAsync = eachAsync;
2017
2204
 
2018
2205
  var each$1 = {};
2019
2206
 
@@ -2030,34 +2217,34 @@
2030
2217
  var everyAsync$1 = {};
2031
2218
 
2032
2219
  everyAsync$1.everyAsync = void 0;
2033
- const types_1$7 = es2018$4;
2220
+ const types_1$9 = es2018$6;
2034
2221
  function everyAsync(iterable, predicate) {
2035
- if ((0, types_1$7.isAsyncIterable)(iterable)) {
2036
- return everyAsyncIterable(iterable);
2222
+ if ((0, types_1$9.isAsyncIterable)(iterable)) {
2223
+ return everyAsyncIterable(iterable, predicate);
2037
2224
  }
2038
2225
  else {
2039
- return everyIterable(iterable);
2226
+ return everyIterable(iterable, predicate);
2040
2227
  }
2041
- async function everyIterable(iterable) {
2042
- let index = 0;
2043
- for (const element of iterable) {
2044
- if (!await predicate(element, index))
2045
- return false;
2046
- index++;
2047
- }
2048
- return true;
2228
+ }
2229
+ everyAsync$1.everyAsync = everyAsync;
2230
+ async function everyIterable(iterable, predicate) {
2231
+ let index = 0;
2232
+ for (const element of iterable) {
2233
+ if (!await predicate(element, index))
2234
+ return false;
2235
+ index++;
2049
2236
  }
2050
- async function everyAsyncIterable(iterable) {
2051
- let index = 0;
2052
- for await (const element of iterable) {
2053
- if (!await predicate(element, index))
2054
- return false;
2055
- index++;
2056
- }
2057
- return true;
2237
+ return true;
2238
+ }
2239
+ async function everyAsyncIterable(iterable, predicate) {
2240
+ let index = 0;
2241
+ for await (const element of iterable) {
2242
+ if (!await predicate(element, index))
2243
+ return false;
2244
+ index++;
2058
2245
  }
2246
+ return true;
2059
2247
  }
2060
- everyAsync$1.everyAsync = everyAsync;
2061
2248
 
2062
2249
  var every$1 = {};
2063
2250
 
@@ -2076,34 +2263,34 @@
2076
2263
  var findAsync$1 = {};
2077
2264
 
2078
2265
  findAsync$1.findAsync = void 0;
2079
- const types_1$6 = es2018$4;
2266
+ const types_1$8 = es2018$6;
2080
2267
  function findAsync(iterable, predicate) {
2081
- if ((0, types_1$6.isAsyncIterable)(iterable)) {
2082
- return findAsyncIterable(iterable);
2268
+ if ((0, types_1$8.isAsyncIterable)(iterable)) {
2269
+ return findAsyncIterable(iterable, predicate);
2083
2270
  }
2084
2271
  else {
2085
- return findIterable(iterable);
2272
+ return findIterable(iterable, predicate);
2086
2273
  }
2087
- async function findIterable(iterable) {
2088
- let index = 0;
2089
- for (const element of iterable) {
2090
- if (await predicate(element, index))
2091
- return element;
2092
- index++;
2093
- }
2094
- return undefined;
2274
+ }
2275
+ findAsync$1.findAsync = findAsync;
2276
+ async function findIterable(iterable, predicate) {
2277
+ let index = 0;
2278
+ for (const element of iterable) {
2279
+ if (await predicate(element, index))
2280
+ return element;
2281
+ index++;
2095
2282
  }
2096
- async function findAsyncIterable(iterable) {
2097
- let index = 0;
2098
- for await (const element of iterable) {
2099
- if (await predicate(element, index))
2100
- return element;
2101
- index++;
2102
- }
2103
- return undefined;
2283
+ return undefined;
2284
+ }
2285
+ async function findAsyncIterable(iterable, predicate) {
2286
+ let index = 0;
2287
+ for await (const element of iterable) {
2288
+ if (await predicate(element, index))
2289
+ return element;
2290
+ index++;
2104
2291
  }
2292
+ return undefined;
2105
2293
  }
2106
- findAsync$1.findAsync = findAsync;
2107
2294
 
2108
2295
  var find$1 = {};
2109
2296
 
@@ -2200,9 +2387,9 @@
2200
2387
  var reduceAsync$1 = {};
2201
2388
 
2202
2389
  reduceAsync$1.reduceAsync = void 0;
2203
- const types_1$5 = es2018$4;
2390
+ const types_1$7 = es2018$6;
2204
2391
  function reduceAsync(iterable, fn, initialValue) {
2205
- if ((0, types_1$5.isUndefined)(initialValue)) {
2392
+ if ((0, types_1$7.isUndefined)(initialValue)) {
2206
2393
  return reduceAsyncWithoutInitialValue(iterable, fn);
2207
2394
  }
2208
2395
  else {
@@ -2211,7 +2398,7 @@
2211
2398
  }
2212
2399
  reduceAsync$1.reduceAsync = reduceAsync;
2213
2400
  function reduceAsyncWithInitialValue(iterable, fn, initialValue) {
2214
- if ((0, types_1$5.isAsyncIterable)(iterable)) {
2401
+ if ((0, types_1$7.isAsyncIterable)(iterable)) {
2215
2402
  return reduceAsyncIterable(iterable);
2216
2403
  }
2217
2404
  else {
@@ -2233,7 +2420,7 @@
2233
2420
  }
2234
2421
  }
2235
2422
  function reduceAsyncWithoutInitialValue(iterable, fn) {
2236
- if ((0, types_1$5.isAsyncIterable)(iterable)) {
2423
+ if ((0, types_1$7.isAsyncIterable)(iterable)) {
2237
2424
  return reduceAsyncIterable(iterable);
2238
2425
  }
2239
2426
  else {
@@ -2296,9 +2483,9 @@
2296
2483
  var reduce$1 = {};
2297
2484
 
2298
2485
  reduce$1.reduce = void 0;
2299
- const types_1$4 = es2018$4;
2486
+ const types_1$6 = es2018$6;
2300
2487
  function reduce(iterable, fn, initialValue) {
2301
- if ((0, types_1$4.isUndefined)(initialValue)) {
2488
+ if ((0, types_1$6.isUndefined)(initialValue)) {
2302
2489
  return reduceWithoutInitialValue(iterable, fn);
2303
2490
  }
2304
2491
  else {
@@ -2343,34 +2530,34 @@
2343
2530
  var someAsync$1 = {};
2344
2531
 
2345
2532
  someAsync$1.someAsync = void 0;
2346
- const types_1$3 = es2018$4;
2533
+ const types_1$5 = es2018$6;
2347
2534
  function someAsync(iterable, predicate) {
2348
- if ((0, types_1$3.isAsyncIterable)(iterable)) {
2349
- return someAsyncIterable(iterable);
2535
+ if ((0, types_1$5.isAsyncIterable)(iterable)) {
2536
+ return someAsyncIterable(iterable, predicate);
2350
2537
  }
2351
2538
  else {
2352
- return someIterable(iterable);
2539
+ return someIterable(iterable, predicate);
2353
2540
  }
2354
- async function someIterable(iterable) {
2355
- let index = 0;
2356
- for (const element of iterable) {
2357
- if (await predicate(element, index))
2358
- return true;
2359
- index++;
2360
- }
2361
- return false;
2541
+ }
2542
+ someAsync$1.someAsync = someAsync;
2543
+ async function someIterable(iterable, predicate) {
2544
+ let index = 0;
2545
+ for (const element of iterable) {
2546
+ if (await predicate(element, index))
2547
+ return true;
2548
+ index++;
2362
2549
  }
2363
- async function someAsyncIterable(iterable) {
2364
- let index = 0;
2365
- for await (const element of iterable) {
2366
- if (await predicate(element, index))
2367
- return true;
2368
- index++;
2369
- }
2370
- return false;
2550
+ return false;
2551
+ }
2552
+ async function someAsyncIterable(iterable, predicate) {
2553
+ let index = 0;
2554
+ for await (const element of iterable) {
2555
+ if (await predicate(element, index))
2556
+ return true;
2557
+ index++;
2371
2558
  }
2559
+ return false;
2372
2560
  }
2373
- someAsync$1.someAsync = someAsync;
2374
2561
 
2375
2562
  var some$1 = {};
2376
2563
 
@@ -2478,6 +2665,64 @@
2478
2665
  }
2479
2666
  toSet$1.toSet = toSet;
2480
2667
 
2668
+ var count$1 = {};
2669
+
2670
+ count$1.count = void 0;
2671
+ function count(iterable) {
2672
+ let count = 0;
2673
+ for (const _ of iterable) {
2674
+ count++;
2675
+ }
2676
+ return count;
2677
+ }
2678
+ count$1.count = count;
2679
+
2680
+ var countAsync$1 = {};
2681
+
2682
+ countAsync$1.countAsync = void 0;
2683
+ async function countAsync(iterable) {
2684
+ let count = 0;
2685
+ for await (const _ of iterable) {
2686
+ count++;
2687
+ }
2688
+ return count;
2689
+ }
2690
+ countAsync$1.countAsync = countAsync;
2691
+
2692
+ var groupBy$1 = {};
2693
+
2694
+ groupBy$1.groupBy = void 0;
2695
+ const each_1 = each$1;
2696
+ function groupBy(iterable, fn) {
2697
+ const map = new Map();
2698
+ (0, each_1.each)(iterable, (element, index) => {
2699
+ const group = fn(element, index);
2700
+ if (!map.has(group)) {
2701
+ map.set(group, []);
2702
+ }
2703
+ map.get(group).push(element);
2704
+ });
2705
+ return map;
2706
+ }
2707
+ groupBy$1.groupBy = groupBy;
2708
+
2709
+ var groupByAsync$1 = {};
2710
+
2711
+ groupByAsync$1.groupByAsync = void 0;
2712
+ const each_async_1 = eachAsync$1;
2713
+ async function groupByAsync(iterable, fn) {
2714
+ const map = new Map();
2715
+ await (0, each_async_1.eachAsync)(iterable, async (element, index) => {
2716
+ const group = await fn(element, index);
2717
+ if (!map.has(group)) {
2718
+ map.set(group, []);
2719
+ }
2720
+ map.get(group).push(element);
2721
+ });
2722
+ return map;
2723
+ }
2724
+ groupByAsync$1.groupByAsync = groupByAsync;
2725
+
2481
2726
  (function (exports) {
2482
2727
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2483
2728
  if (k2 === undefined) k2 = k;
@@ -2515,6 +2760,10 @@
2515
2760
  __exportStar(toArray$1, exports);
2516
2761
  __exportStar(toSetAsync$1, exports);
2517
2762
  __exportStar(toSet$1, exports);
2763
+ __exportStar(count$1, exports);
2764
+ __exportStar(countAsync$1, exports);
2765
+ __exportStar(groupBy$1, exports);
2766
+ __exportStar(groupByAsync$1, exports);
2518
2767
 
2519
2768
  }(output));
2520
2769
 
@@ -2535,7 +2784,7 @@
2535
2784
  };__exportStar(middleware, exports);
2536
2785
  __exportStar(output, exports);
2537
2786
 
2538
- }(es2018$2));
2787
+ }(es2018$a));
2539
2788
 
2540
2789
  var getErrorNames$1 = {};
2541
2790
 
@@ -2553,11 +2802,11 @@
2553
2802
  traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = traverseErrorPrototypeChain;
2554
2803
 
2555
2804
  getErrorNames$1.getErrorNames = void 0;
2556
- const types_1$2 = es2018$4;
2805
+ const types_1$4 = es2018$6;
2557
2806
  const traverse_error_prototype_chain_1 = traverseErrorPrototypeChain$1;
2558
2807
  function* getErrorNames(err) {
2559
2808
  var _a;
2560
- if ((0, types_1$2.isError)(err)) {
2809
+ if ((0, types_1$4.isError)(err)) {
2561
2810
  for (const prototype of (0, traverse_error_prototype_chain_1.traverseErrorPrototypeChain)(err)) {
2562
2811
  if ((_a = prototype.constructor) === null || _a === void 0 ? void 0 : _a.name) {
2563
2812
  yield prototype.constructor.name;
@@ -2574,20 +2823,20 @@
2574
2823
  var serializableError = {};
2575
2824
 
2576
2825
  serializableError.isSerializableError = void 0;
2577
- const types_1$1 = es2018$4;
2826
+ const types_1$3 = es2018$6;
2578
2827
  function isSerializableError(val) {
2579
- return (0, types_1$1.isObject)(val)
2580
- && (0, types_1$1.isString)(val.name)
2581
- && (0, types_1$1.isString)(val.message)
2582
- && ((0, types_1$1.isString)(val.stack) || (0, types_1$1.isNull)(val.stack))
2583
- && ((0, types_1$1.isArray)(val.ancestors) && val.ancestors.every(types_1$1.isString));
2828
+ return (0, types_1$3.isObject)(val)
2829
+ && (0, types_1$3.isString)(val.name)
2830
+ && (0, types_1$3.isString)(val.message)
2831
+ && ((0, types_1$3.isString)(val.stack) || (0, types_1$3.isNull)(val.stack))
2832
+ && ((0, types_1$3.isArray)(val.ancestors) && val.ancestors.every(types_1$3.isString));
2584
2833
  }
2585
2834
  serializableError.isSerializableError = isSerializableError;
2586
2835
 
2587
2836
  customError.CustomError = void 0;
2588
- const iterable_operator_1$1 = es2018$2;
2837
+ const iterable_operator_1$1 = es2018$a;
2589
2838
  const get_error_names_1$1 = getErrorNames$1;
2590
- const types_1 = es2018$4;
2839
+ const types_1$2 = es2018$6;
2591
2840
  const serializable_error_1 = serializableError;
2592
2841
  class CustomError extends Error {
2593
2842
  get name() {
@@ -2596,7 +2845,7 @@
2596
2845
  }
2597
2846
  static [Symbol.hasInstance](instance) {
2598
2847
  var _a;
2599
- if ((0, types_1.isError)(instance) || (0, serializable_error_1.isSerializableError)(instance)) {
2848
+ if ((0, types_1$2.isError)(instance) || (0, serializable_error_1.isSerializableError)(instance)) {
2600
2849
  const reversedClassNames = [
2601
2850
  (_a = this.prototype.constructor.name) !== null && _a !== void 0 ? _a : this.name,
2602
2851
  ...(0, get_error_names_1$1.getErrorNames)(this.prototype)
@@ -2623,7 +2872,7 @@
2623
2872
 
2624
2873
  normalize$1.normalize = void 0;
2625
2874
  const get_error_names_1 = getErrorNames$1;
2626
- const iterable_operator_1 = es2018$2;
2875
+ const iterable_operator_1 = es2018$a;
2627
2876
  function normalize(err) {
2628
2877
  var _a;
2629
2878
  const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
@@ -2638,13 +2887,13 @@
2638
2887
 
2639
2888
  var hydrate$1 = {};
2640
2889
 
2641
- var es2018 = {};
2890
+ var es2018$5 = {};
2642
2891
 
2643
- var pass$1 = {};
2892
+ var pass$3 = {};
2644
2893
 
2645
- pass$1.pass = void 0;
2646
- function pass() { }
2647
- pass$1.pass = pass;
2894
+ pass$3.pass = void 0;
2895
+ function pass$2() { }
2896
+ pass$3.pass = pass$2;
2648
2897
 
2649
2898
  (function (exports) {
2650
2899
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -2656,12 +2905,12 @@
2656
2905
  }));
2657
2906
  var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
2658
2907
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2659
- };__exportStar(pass$1, exports);
2908
+ };__exportStar(pass$3, exports);
2660
2909
 
2661
- }(es2018));
2910
+ }(es2018$5));
2662
2911
 
2663
2912
  hydrate$1.hydrate = void 0;
2664
- const pass_1 = es2018;
2913
+ const pass_1 = es2018$5;
2665
2914
  function hydrate(err) {
2666
2915
  var _a;
2667
2916
  const errorNames = [err.name, ...err.ancestors]
@@ -2719,71 +2968,932 @@
2719
2968
  __exportStar(getErrorNames$1, exports);
2720
2969
  __exportStar(traverseErrorPrototypeChain$1, exports);
2721
2970
 
2722
- }(es2018$3));
2971
+ }(es2018$b));
2723
2972
 
2724
- function csv(payload) {
2725
- es2018$3.assert(payload.length > 0, 'payload must be a non-empty array');
2726
- return (options) => {
2727
- const headers = new es2018$5.Headers(options.headers);
2728
- headers.set('Content-Type', 'text/csv');
2729
- return Object.assign(Object.assign({}, options), { headers, payload: stringify(payload) });
2730
- };
2731
- }
2732
- function stringify(data) {
2733
- const fields = Object.keys(data[0]);
2734
- return papaparse_min.exports.unparse({ data, fields });
2735
- }
2973
+ var es2018$4 = {};
2736
2974
 
2737
- function signal(signal) {
2738
- return (options) => {
2739
- return Object.assign(Object.assign({}, options), { signal });
2740
- };
2975
+ var log$1 = {};
2976
+
2977
+ log$1.log = void 0;
2978
+ function log(...data) {
2979
+ console.log(...data);
2980
+ return data[data.length - 1];
2741
2981
  }
2982
+ log$1.log = log;
2742
2983
 
2743
- function header(name, value) {
2744
- return (options) => {
2745
- const headers = new es2018$5.Headers(options.headers);
2746
- headers.set(name, value);
2747
- return Object.assign(Object.assign({}, options), { headers });
2748
- };
2984
+ var time$1 = {};
2985
+
2986
+ var highResolutionTimestamp_browser = {};
2987
+
2988
+ highResolutionTimestamp_browser.elapsed = highResolutionTimestamp_browser.now = void 0;
2989
+ function now() {
2990
+ return performance.now();
2749
2991
  }
2992
+ highResolutionTimestamp_browser.now = now;
2993
+ function elapsed(startTime, endTime) {
2994
+ return `${endTime - startTime}ms`;
2995
+ }
2996
+ highResolutionTimestamp_browser.elapsed = elapsed;
2750
2997
 
2751
- function appendHeader(name, value) {
2752
- return (options) => {
2753
- const headers = new es2018$5.Headers(options.headers);
2754
- headers.append(name, value);
2755
- return Object.assign(Object.assign({}, options), { headers });
2756
- };
2998
+ var es2018$3 = {};
2999
+
3000
+ var array = {};
3001
+
3002
+ array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
3003
+ function isArray(val) {
3004
+ return Array.isArray(val);
3005
+ }
3006
+ array.isArray = isArray;
3007
+ function isntArray(val) {
3008
+ return !isArray(val);
3009
+ }
3010
+ array.isntArray = isntArray;
3011
+ function isEmptyArray(val) {
3012
+ return val.length === 0;
3013
+ }
3014
+ array.isEmptyArray = isEmptyArray;
3015
+ function isntEmptyArray(val) {
3016
+ return val.length !== 0;
2757
3017
  }
3018
+ array.isntEmptyArray = isntEmptyArray;
2758
3019
 
2759
- function headers(headers) {
2760
- return (options) => {
2761
- const newHeaders = new es2018$5.Headers(options.headers);
2762
- for (const [name, value] of Object.entries(headers)) {
2763
- newHeaders.set(name, value);
2764
- }
2765
- return Object.assign(Object.assign({}, options), { headers: newHeaders });
2766
- };
3020
+ var asyncIterable = {};
3021
+
3022
+ var _null = {};
3023
+
3024
+ _null.isntNull = _null.isNull = void 0;
3025
+ function isNull(val) {
3026
+ return val === null;
3027
+ }
3028
+ _null.isNull = isNull;
3029
+ function isntNull(val) {
3030
+ return !isNull(val);
2767
3031
  }
3032
+ _null.isntNull = isntNull;
2768
3033
 
2769
- function accept(accept) {
2770
- return appendHeader('Accept', accept);
3034
+ var _undefined = {};
3035
+
3036
+ _undefined.isntUndefined = _undefined.isUndefined = void 0;
3037
+ function isUndefined(val) {
3038
+ return val === undefined;
2771
3039
  }
3040
+ _undefined.isUndefined = isUndefined;
3041
+ function isntUndefined(val) {
3042
+ return !isUndefined(val);
3043
+ }
3044
+ _undefined.isntUndefined = isntUndefined;
2772
3045
 
2773
- function host(host) {
2774
- return (options) => {
2775
- const url = new URL(options.url.href);
2776
- url.host = host;
2777
- return Object.assign(Object.assign({}, options), { url });
2778
- };
3046
+ var _function = {};
3047
+
3048
+ _function.isntFunction = _function.isFunction = void 0;
3049
+ function isFunction(val) {
3050
+ return typeof val === 'function';
2779
3051
  }
3052
+ _function.isFunction = isFunction;
3053
+ function isntFunction(val) {
3054
+ return !isFunction(val);
3055
+ }
3056
+ _function.isntFunction = isntFunction;
2780
3057
 
2781
- function port(port) {
2782
- return (options) => {
2783
- const url = new URL(options.url.href);
2784
- url.port = port.toString();
2785
- return Object.assign(Object.assign({}, options), { url });
2786
- };
3058
+ asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
3059
+ const null_1$2 = _null;
3060
+ const undefined_1$1 = _undefined;
3061
+ const function_1$2 = _function;
3062
+ function isAsyncIterable(val) {
3063
+ return (0, null_1$2.isntNull)(val)
3064
+ && (0, undefined_1$1.isntUndefined)(val)
3065
+ && (0, function_1$2.isFunction)(val[Symbol.asyncIterator]);
3066
+ }
3067
+ asyncIterable.isAsyncIterable = isAsyncIterable;
3068
+ function isntAsyncIterable(val) {
3069
+ return !isAsyncIterable(val);
3070
+ }
3071
+ asyncIterable.isntAsyncIterable = isntAsyncIterable;
3072
+
3073
+ var bigint = {};
3074
+
3075
+ bigint.isntBigInt = bigint.isBigInt = void 0;
3076
+ function isBigInt(val) {
3077
+ return typeof val === 'bigint';
3078
+ }
3079
+ bigint.isBigInt = isBigInt;
3080
+ function isntBigInt(val) {
3081
+ return !isBigInt(val);
3082
+ }
3083
+ bigint.isntBigInt = isntBigInt;
3084
+
3085
+ var boolean = {};
3086
+
3087
+ boolean.isntBoolean = boolean.isBoolean = void 0;
3088
+ function isBoolean(val) {
3089
+ return typeof val === 'boolean';
3090
+ }
3091
+ boolean.isBoolean = isBoolean;
3092
+ function isntBoolean(val) {
3093
+ return !isBoolean(val);
3094
+ }
3095
+ boolean.isntBoolean = isntBoolean;
3096
+
3097
+ var char = {};
3098
+
3099
+ var string = {};
3100
+
3101
+ string.isntString = string.isString = void 0;
3102
+ function isString(val) {
3103
+ return typeof val === 'string';
3104
+ }
3105
+ string.isString = isString;
3106
+ function isntString(val) {
3107
+ return !isString(val);
3108
+ }
3109
+ string.isntString = isntString;
3110
+
3111
+ char.isntChar = char.isChar = void 0;
3112
+ const string_1$1 = string;
3113
+ function isChar(val) {
3114
+ return (0, string_1$1.isString)(val)
3115
+ && val.length === 1;
3116
+ }
3117
+ char.isChar = isChar;
3118
+ function isntChar(val) {
3119
+ return !isChar(val);
3120
+ }
3121
+ char.isntChar = isntChar;
3122
+
3123
+ var date = {};
3124
+
3125
+ date.isntDate = date.isDate = void 0;
3126
+ function isDate(val) {
3127
+ return val instanceof Date;
3128
+ }
3129
+ date.isDate = isDate;
3130
+ function isntDate(val) {
3131
+ return !isDate(val);
3132
+ }
3133
+ date.isntDate = isntDate;
3134
+
3135
+ var _enum = {};
3136
+
3137
+ _enum.inEnum = void 0;
3138
+ function inEnum(val, _enum) {
3139
+ return Object.values(_enum).includes(val);
3140
+ }
3141
+ _enum.inEnum = inEnum;
3142
+
3143
+ var error = {};
3144
+
3145
+ error.isntError = error.isError = void 0;
3146
+ function isError(val) {
3147
+ return val instanceof Error;
3148
+ }
3149
+ error.isError = isError;
3150
+ function isntError(val) {
3151
+ return !isError(val);
3152
+ }
3153
+ error.isntError = isntError;
3154
+
3155
+ var falsy = {};
3156
+
3157
+ falsy.isntFalsy = falsy.isFalsy = void 0;
3158
+ function isFalsy(val) {
3159
+ return !val;
3160
+ }
3161
+ falsy.isFalsy = isFalsy;
3162
+ function isntFalsy(val) {
3163
+ return !isFalsy(val);
3164
+ }
3165
+ falsy.isntFalsy = isntFalsy;
3166
+
3167
+ var iterable = {};
3168
+
3169
+ iterable.isntIterable = iterable.isIterable = void 0;
3170
+ const null_1$1 = _null;
3171
+ const undefined_1 = _undefined;
3172
+ const function_1$1 = _function;
3173
+ function isIterable(val) {
3174
+ return (0, null_1$1.isntNull)(val)
3175
+ && (0, undefined_1.isntUndefined)(val)
3176
+ && (0, function_1$1.isFunction)(val[Symbol.iterator]);
3177
+ }
3178
+ iterable.isIterable = isIterable;
3179
+ function isntIterable(val) {
3180
+ return !isIterable(val);
3181
+ }
3182
+ iterable.isntIterable = isntIterable;
3183
+
3184
+ var json$1 = {};
3185
+
3186
+ var number = {};
3187
+
3188
+ number.isntNaN = number.isNaN = number.isNegativeInfinity = number.isPositiveInfinity = number.isFinite = number.isntNumber = number.isNumber = void 0;
3189
+ function isNumber(val) {
3190
+ return typeof val === 'number';
3191
+ }
3192
+ number.isNumber = isNumber;
3193
+ function isntNumber(val) {
3194
+ return !isNumber(val);
3195
+ }
3196
+ number.isntNumber = isntNumber;
3197
+ function isFinite(val) {
3198
+ return Number.isFinite(val);
3199
+ }
3200
+ number.isFinite = isFinite;
3201
+ function isPositiveInfinity(val) {
3202
+ return val === Infinity;
3203
+ }
3204
+ number.isPositiveInfinity = isPositiveInfinity;
3205
+ function isNegativeInfinity(val) {
3206
+ return val === -Infinity;
3207
+ }
3208
+ number.isNegativeInfinity = isNegativeInfinity;
3209
+ function isNaN(val) {
3210
+ return Number.isNaN(val);
3211
+ }
3212
+ number.isNaN = isNaN;
3213
+ function isntNaN(val) {
3214
+ return !isNaN(val);
3215
+ }
3216
+ number.isntNaN = isntNaN;
3217
+
3218
+ var object = {};
3219
+
3220
+ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
3221
+ return (mod && mod.__esModule) ? mod : { "default": mod };
3222
+ };object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
3223
+ const isPlainObject_1 = __importDefault(isPlainObject_1$2);
3224
+ function isObject(val) {
3225
+ return val !== null
3226
+ && typeof val === 'object';
3227
+ }
3228
+ object.isObject = isObject;
3229
+ function isntObject(val) {
3230
+ return !isObject(val);
3231
+ }
3232
+ object.isntObject = isntObject;
3233
+ function isPlainObject(val) {
3234
+ return (0, isPlainObject_1.default)(val);
3235
+ }
3236
+ object.isPlainObject = isPlainObject;
3237
+ function isntPlainObject(val) {
3238
+ return !isPlainObject(val);
3239
+ }
3240
+ object.isntPlainObject = isntPlainObject;
3241
+ function isEmptyObject(val) {
3242
+ return Object.keys(val).length === 0;
3243
+ }
3244
+ object.isEmptyObject = isEmptyObject;
3245
+ function isntEmptyObject(val) {
3246
+ return Object.keys(val).length !== 0;
3247
+ }
3248
+ object.isntEmptyObject = isntEmptyObject;
3249
+
3250
+ json$1.isntJsonable = json$1.isJsonable = json$1.isntJson = json$1.isJson = void 0;
3251
+ const null_1 = _null;
3252
+ const boolean_1 = boolean;
3253
+ const string_1 = string;
3254
+ const number_1 = number;
3255
+ const array_1 = array;
3256
+ const object_1$1 = object;
3257
+ function isJson(val) {
3258
+ return (0, null_1.isNull)(val)
3259
+ || (0, boolean_1.isBoolean)(val)
3260
+ || (0, string_1.isString)(val)
3261
+ || (0, number_1.isNumber)(val)
3262
+ || ((0, array_1.isArray)(val) && val.every(isJson))
3263
+ || ((0, object_1$1.isPlainObject)(val) && Object.values(val).every(isJson));
3264
+ }
3265
+ json$1.isJson = isJson;
3266
+ function isntJson(val) {
3267
+ return !isJson(val);
3268
+ }
3269
+ json$1.isntJson = isntJson;
3270
+ function isJsonable(val) {
3271
+ try {
3272
+ JSON.stringify(val);
3273
+ return true;
3274
+ }
3275
+ catch (_a) {
3276
+ return false;
3277
+ }
3278
+ }
3279
+ json$1.isJsonable = isJsonable;
3280
+ function isntJsonable(val) {
3281
+ return !isntJsonable();
3282
+ }
3283
+ json$1.isntJsonable = isntJsonable;
3284
+
3285
+ var promise = {};
3286
+
3287
+ promise.isPromiseLike = promise.isntPromiseLike = promise.isntPromise = promise.isPromise = void 0;
3288
+ const object_1 = object;
3289
+ const function_1 = _function;
3290
+ function isPromise(val) {
3291
+ return val instanceof Promise;
3292
+ }
3293
+ promise.isPromise = isPromise;
3294
+ function isntPromise(val) {
3295
+ return !isPromise(val);
3296
+ }
3297
+ promise.isntPromise = isntPromise;
3298
+ function isntPromiseLike(val) {
3299
+ return !isPromiseLike(val);
3300
+ }
3301
+ promise.isntPromiseLike = isntPromiseLike;
3302
+ function isPromiseLike(val) {
3303
+ return (0, object_1.isObject)(val)
3304
+ && (0, function_1.isFunction)(val.then);
3305
+ }
3306
+ promise.isPromiseLike = isPromiseLike;
3307
+
3308
+ var url$1 = {};
3309
+
3310
+ url$1.isAbsoluteURL = void 0;
3311
+ function isAbsoluteURL(str) {
3312
+ try {
3313
+ new URL(str);
3314
+ return true;
3315
+ }
3316
+ catch (_a) {
3317
+ return false;
3318
+ }
3319
+ }
3320
+ url$1.isAbsoluteURL = isAbsoluteURL;
3321
+
3322
+ var regexp = {};
3323
+
3324
+ regexp.isntRegExp = regexp.isRegExp = void 0;
3325
+ function isRegExp(val) {
3326
+ return val instanceof RegExp;
3327
+ }
3328
+ regexp.isRegExp = isRegExp;
3329
+ function isntRegExp(val) {
3330
+ return !isRegExp(val);
3331
+ }
3332
+ regexp.isntRegExp = isntRegExp;
3333
+
3334
+ var symbol = {};
3335
+
3336
+ symbol.isntSymbol = symbol.isSymbol = void 0;
3337
+ function isSymbol(val) {
3338
+ return typeof val === 'symbol';
3339
+ }
3340
+ symbol.isSymbol = isSymbol;
3341
+ function isntSymbol(val) {
3342
+ return !isSymbol(val);
3343
+ }
3344
+ symbol.isntSymbol = isntSymbol;
3345
+
3346
+ (function (exports) {
3347
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3348
+ if (k2 === undefined) k2 = k;
3349
+ var desc = Object.getOwnPropertyDescriptor(m, k);
3350
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3351
+ desc = { enumerable: true, get: function() { return m[k]; } };
3352
+ }
3353
+ Object.defineProperty(o, k2, desc);
3354
+ }) : (function(o, m, k, k2) {
3355
+ if (k2 === undefined) k2 = k;
3356
+ o[k2] = m[k];
3357
+ }));
3358
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3359
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3360
+ };__exportStar(array, exports);
3361
+ __exportStar(asyncIterable, exports);
3362
+ __exportStar(bigint, exports);
3363
+ __exportStar(boolean, exports);
3364
+ __exportStar(char, exports);
3365
+ __exportStar(date, exports);
3366
+ __exportStar(_enum, exports);
3367
+ __exportStar(error, exports);
3368
+ __exportStar(falsy, exports);
3369
+ __exportStar(_function, exports);
3370
+ __exportStar(iterable, exports);
3371
+ __exportStar(json$1, exports);
3372
+ __exportStar(_null, exports);
3373
+ __exportStar(number, exports);
3374
+ __exportStar(object, exports);
3375
+ __exportStar(promise, exports);
3376
+ __exportStar(string, exports);
3377
+ __exportStar(_undefined, exports);
3378
+ __exportStar(url$1, exports);
3379
+ __exportStar(regexp, exports);
3380
+ __exportStar(symbol, exports);
3381
+
3382
+ }(es2018$3));
3383
+
3384
+ time$1.time = void 0;
3385
+ const high_resolution_timestamp_1$2 = highResolutionTimestamp_browser;
3386
+ const types_1$1 = es2018$3;
3387
+ function time(message, fn) {
3388
+ const startTime = (0, high_resolution_timestamp_1$2.now)();
3389
+ const result = fn();
3390
+ if ((0, types_1$1.isPromiseLike)(result)) {
3391
+ return result.then(() => {
3392
+ const endTime = (0, high_resolution_timestamp_1$2.now)();
3393
+ console.log(message, (0, high_resolution_timestamp_1$2.elapsed)(startTime, endTime));
3394
+ return result;
3395
+ });
3396
+ }
3397
+ else {
3398
+ const endTime = (0, high_resolution_timestamp_1$2.now)();
3399
+ console.log(message, (0, high_resolution_timestamp_1$2.elapsed)(startTime, endTime));
3400
+ return result;
3401
+ }
3402
+ }
3403
+ time$1.time = time;
3404
+
3405
+ var timeFunction$1 = {};
3406
+
3407
+ timeFunction$1.timeFunction = void 0;
3408
+ const high_resolution_timestamp_1$1 = highResolutionTimestamp_browser;
3409
+ function timeFunction(message, fn) {
3410
+ return function (...args) {
3411
+ const startTime = (0, high_resolution_timestamp_1$1.now)();
3412
+ const result = fn(...args);
3413
+ const endTime = (0, high_resolution_timestamp_1$1.now)();
3414
+ console.log(message, (0, high_resolution_timestamp_1$1.elapsed)(startTime, endTime));
3415
+ return result;
3416
+ };
3417
+ }
3418
+ timeFunction$1.timeFunction = timeFunction;
3419
+
3420
+ var timeAsyncFunction$1 = {};
3421
+
3422
+ timeAsyncFunction$1.timeAsyncFunction = void 0;
3423
+ const high_resolution_timestamp_1 = highResolutionTimestamp_browser;
3424
+ function timeAsyncFunction(message, fn) {
3425
+ return async function (...args) {
3426
+ const startTime = (0, high_resolution_timestamp_1.now)();
3427
+ const result = await fn(...args);
3428
+ const endTime = (0, high_resolution_timestamp_1.now)();
3429
+ console.log(message, (0, high_resolution_timestamp_1.elapsed)(startTime, endTime));
3430
+ return result;
3431
+ };
3432
+ }
3433
+ timeAsyncFunction$1.timeAsyncFunction = timeAsyncFunction;
3434
+
3435
+ var group$1 = {};
3436
+
3437
+ var es2018$2 = {};
3438
+
3439
+ var go$1 = {};
3440
+
3441
+ go$1.go = void 0;
3442
+ function go(fn) {
3443
+ return fn();
3444
+ }
3445
+ go$1.go = go;
3446
+
3447
+ var goMicrotask$1 = {};
3448
+
3449
+ goMicrotask$1.goMicrotask = void 0;
3450
+ function goMicrotask(fn) {
3451
+ return new Promise((resolve, reject) => {
3452
+ queueMicrotask(async () => {
3453
+ try {
3454
+ resolve(await fn());
3455
+ }
3456
+ catch (e) {
3457
+ reject(e);
3458
+ }
3459
+ });
3460
+ });
3461
+ }
3462
+ goMicrotask$1.goMicrotask = goMicrotask;
3463
+
3464
+ var goMacrotask$1 = {};
3465
+
3466
+ goMacrotask$1.goMacrotask = void 0;
3467
+ const extra_timers_1 = es2018$8;
3468
+ function goMacrotask(fn) {
3469
+ return new Promise((resolve, reject) => {
3470
+ (0, extra_timers_1.setImmediate)(async () => {
3471
+ try {
3472
+ resolve(await fn());
3473
+ }
3474
+ catch (e) {
3475
+ reject(e);
3476
+ }
3477
+ });
3478
+ });
3479
+ }
3480
+ goMacrotask$1.goMacrotask = goMacrotask;
3481
+
3482
+ (function (exports) {
3483
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3484
+ if (k2 === undefined) k2 = k;
3485
+ var desc = Object.getOwnPropertyDescriptor(m, k);
3486
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3487
+ desc = { enumerable: true, get: function() { return m[k]; } };
3488
+ }
3489
+ Object.defineProperty(o, k2, desc);
3490
+ }) : (function(o, m, k, k2) {
3491
+ if (k2 === undefined) k2 = k;
3492
+ o[k2] = m[k];
3493
+ }));
3494
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3495
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3496
+ };__exportStar(go$1, exports);
3497
+ __exportStar(goMicrotask$1, exports);
3498
+ __exportStar(goMacrotask$1, exports);
3499
+
3500
+ }(es2018$2));
3501
+
3502
+ group$1.group = void 0;
3503
+ const go_1 = es2018$2;
3504
+ const types_1 = es2018$3;
3505
+ function group(...args) {
3506
+ const [label, fn] = (0, go_1.go)(() => {
3507
+ if (args.length === 1) {
3508
+ const [fn] = args;
3509
+ return [undefined, fn];
3510
+ }
3511
+ else {
3512
+ const [label, fn] = args;
3513
+ return [label, fn];
3514
+ }
3515
+ });
3516
+ if ((0, types_1.isUndefined)(label)) {
3517
+ console.group();
3518
+ }
3519
+ else {
3520
+ console.group(label);
3521
+ }
3522
+ const result = fn();
3523
+ console.groupEnd();
3524
+ return result;
3525
+ }
3526
+ group$1.group = group;
3527
+
3528
+ (function (exports) {
3529
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3530
+ if (k2 === undefined) k2 = k;
3531
+ var desc = Object.getOwnPropertyDescriptor(m, k);
3532
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3533
+ desc = { enumerable: true, get: function() { return m[k]; } };
3534
+ }
3535
+ Object.defineProperty(o, k2, desc);
3536
+ }) : (function(o, m, k, k2) {
3537
+ if (k2 === undefined) k2 = k;
3538
+ o[k2] = m[k];
3539
+ }));
3540
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3541
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3542
+ };__exportStar(log$1, exports);
3543
+ __exportStar(time$1, exports);
3544
+ __exportStar(timeFunction$1, exports);
3545
+ __exportStar(timeAsyncFunction$1, exports);
3546
+ __exportStar(group$1, exports);
3547
+
3548
+ }(es2018$4));
3549
+
3550
+ var es2018$1 = {};
3551
+
3552
+ var lazy$1 = {};
3553
+
3554
+ lazy$1.lazy = void 0;
3555
+ function lazy(getter) {
3556
+ let resultExists = false;
3557
+ let result;
3558
+ return function () {
3559
+ if (!resultExists) {
3560
+ result = getter();
3561
+ resultExists = true;
3562
+ }
3563
+ return result;
3564
+ };
3565
+ }
3566
+ lazy$1.lazy = lazy;
3567
+
3568
+ var lazyFunction$1 = {};
3569
+
3570
+ lazyFunction$1.lazyFunction = void 0;
3571
+ const lazy_1$1 = lazy$1;
3572
+ function lazyFunction(getter) {
3573
+ const getFn = (0, lazy_1$1.lazy)(getter);
3574
+ return (...args) => getFn()(...args);
3575
+ }
3576
+ lazyFunction$1.lazyFunction = lazyFunction;
3577
+
3578
+ var lazyAsyncFunction$1 = {};
3579
+
3580
+ lazyAsyncFunction$1.lazyAsyncFunction = void 0;
3581
+ const lazy_1 = lazy$1;
3582
+ function lazyAsyncFunction(getter) {
3583
+ const getFn = (0, lazy_1.lazy)(getter);
3584
+ return async (...args) => {
3585
+ const fn = await getFn();
3586
+ return fn(...args);
3587
+ };
3588
+ }
3589
+ lazyAsyncFunction$1.lazyAsyncFunction = lazyAsyncFunction;
3590
+
3591
+ var lazyStatic$1 = {};
3592
+
3593
+ lazyStatic$1.lazyStatic = lazyStatic$1.withLazyStatic = void 0;
3594
+ const contexts = [];
3595
+ function withLazyStatic(fn) {
3596
+ const cache = [];
3597
+ return (...args) => {
3598
+ contexts.push({ cache, index: 0 });
3599
+ try {
3600
+ return fn(...args);
3601
+ }
3602
+ finally {
3603
+ contexts.pop();
3604
+ }
3605
+ };
3606
+ }
3607
+ lazyStatic$1.withLazyStatic = withLazyStatic;
3608
+ function lazyStatic(getter, deps = []) {
3609
+ if (contexts.length) {
3610
+ const context = contexts[contexts.length - 1];
3611
+ const index = context.index++;
3612
+ const isFirstRun = index === context.cache.length;
3613
+ if (isFirstRun) {
3614
+ updateCache();
3615
+ }
3616
+ else {
3617
+ const oldDeps = context.cache[index].deps;
3618
+ if (deps.length === oldDeps.length) {
3619
+ if (deps.some((x, i) => x !== oldDeps[i])) {
3620
+ updateCache();
3621
+ }
3622
+ }
3623
+ else {
3624
+ updateCache();
3625
+ }
3626
+ }
3627
+ const result = context.cache[index].value;
3628
+ return result;
3629
+ function updateCache() {
3630
+ context.cache[index] = null;
3631
+ context.cache[index] = {
3632
+ value: getter(),
3633
+ deps: Array.from(deps)
3634
+ };
3635
+ }
3636
+ }
3637
+ else {
3638
+ throw new Error('lazyStatic can only be called in the function wrapped by withlazyStatic.');
3639
+ }
3640
+ }
3641
+ lazyStatic$1.lazyStatic = lazyStatic;
3642
+
3643
+ (function (exports) {
3644
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3645
+ if (k2 === undefined) k2 = k;
3646
+ var desc = Object.getOwnPropertyDescriptor(m, k);
3647
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3648
+ desc = { enumerable: true, get: function() { return m[k]; } };
3649
+ }
3650
+ Object.defineProperty(o, k2, desc);
3651
+ }) : (function(o, m, k, k2) {
3652
+ if (k2 === undefined) k2 = k;
3653
+ o[k2] = m[k];
3654
+ }));
3655
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3656
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3657
+ };__exportStar(lazy$1, exports);
3658
+ __exportStar(lazyFunction$1, exports);
3659
+ __exportStar(lazyAsyncFunction$1, exports);
3660
+ __exportStar(lazyStatic$1, exports);
3661
+
3662
+ }(es2018$1));
3663
+
3664
+ var es2018 = {};
3665
+
3666
+ var pass$1 = {};
3667
+
3668
+ pass$1.pass = void 0;
3669
+ function pass() { }
3670
+ pass$1.pass = pass;
3671
+
3672
+ var passAsync$1 = {};
3673
+
3674
+ passAsync$1.passAsync = void 0;
3675
+ async function passAsync() { }
3676
+ passAsync$1.passAsync = passAsync;
3677
+
3678
+ (function (exports) {
3679
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3680
+ if (k2 === undefined) k2 = k;
3681
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
3682
+ }) : (function(o, m, k, k2) {
3683
+ if (k2 === undefined) k2 = k;
3684
+ o[k2] = m[k];
3685
+ }));
3686
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3687
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3688
+ };__exportStar(pass$1, exports);
3689
+ __exportStar(passAsync$1, exports);
3690
+
3691
+ }(es2018));
3692
+
3693
+ (function (exports) {
3694
+ exports.isntNumber = exports.isntNull = exports.isntJson = exports.isntIterable = exports.isntFunction = exports.isntFalsy = exports.isntError = exports.isntEmptyObject = exports.isntEmptyArray = exports.isntDate = exports.isntChar = exports.isntBoolean = exports.isntBigInt = exports.isntAsyncIterable = exports.isntArray = exports.isSymbol = exports.isRegExp = exports.isUndefined = exports.isString = exports.isPromiseLike = exports.isPromise = exports.isPlainObject = exports.isObject = exports.isntNaN = exports.isNaN = exports.isNegativeInfinity = exports.isPositiveInfinity = exports.isFinite = exports.isNumber = exports.isNull = exports.isJson = exports.isIterable = exports.isFunction = exports.isFalsy = exports.isError = exports.isEmptyObject = exports.isEmptyArray = exports.isDate = exports.isChar = exports.isBoolean = exports.isBigInt = exports.isAsyncIterable = exports.isArray = exports.toArrayAsync = exports.toArray = exports.pass = exports.lazy = exports.log = exports.go = exports.assert = void 0;
3695
+ exports.isntSymbol = exports.isntRegExp = exports.isntUndefined = exports.isntString = exports.isntPromiseLike = exports.isntPromise = exports.isntPlainObject = exports.isntObject = void 0;
3696
+ var errors_1 = es2018$b;
3697
+ Object.defineProperty(exports, "assert", { enumerable: true, get: function () { return errors_1.assert; } });
3698
+ var go_1 = es2018$9;
3699
+ Object.defineProperty(exports, "go", { enumerable: true, get: function () { return go_1.go; } });
3700
+ var log_1 = es2018$4;
3701
+ Object.defineProperty(exports, "log", { enumerable: true, get: function () { return log_1.log; } });
3702
+ var extra_lazy_1 = es2018$1;
3703
+ Object.defineProperty(exports, "lazy", { enumerable: true, get: function () { return extra_lazy_1.lazy; } });
3704
+ var pass_1 = es2018;
3705
+ Object.defineProperty(exports, "pass", { enumerable: true, get: function () { return pass_1.pass; } });
3706
+ var iterable_operator_1 = es2018$a;
3707
+ Object.defineProperty(exports, "toArray", { enumerable: true, get: function () { return iterable_operator_1.toArray; } });
3708
+ Object.defineProperty(exports, "toArrayAsync", { enumerable: true, get: function () { return iterable_operator_1.toArrayAsync; } });
3709
+ var types_1 = es2018$6;
3710
+ Object.defineProperty(exports, "isArray", { enumerable: true, get: function () { return types_1.isArray; } });
3711
+ Object.defineProperty(exports, "isAsyncIterable", { enumerable: true, get: function () { return types_1.isAsyncIterable; } });
3712
+ Object.defineProperty(exports, "isBigInt", { enumerable: true, get: function () { return types_1.isBigInt; } });
3713
+ Object.defineProperty(exports, "isBoolean", { enumerable: true, get: function () { return types_1.isBoolean; } });
3714
+ Object.defineProperty(exports, "isChar", { enumerable: true, get: function () { return types_1.isChar; } });
3715
+ Object.defineProperty(exports, "isDate", { enumerable: true, get: function () { return types_1.isDate; } });
3716
+ Object.defineProperty(exports, "isEmptyArray", { enumerable: true, get: function () { return types_1.isEmptyArray; } });
3717
+ Object.defineProperty(exports, "isEmptyObject", { enumerable: true, get: function () { return types_1.isEmptyObject; } });
3718
+ Object.defineProperty(exports, "isError", { enumerable: true, get: function () { return types_1.isError; } });
3719
+ Object.defineProperty(exports, "isFalsy", { enumerable: true, get: function () { return types_1.isFalsy; } });
3720
+ Object.defineProperty(exports, "isFunction", { enumerable: true, get: function () { return types_1.isFunction; } });
3721
+ Object.defineProperty(exports, "isIterable", { enumerable: true, get: function () { return types_1.isIterable; } });
3722
+ Object.defineProperty(exports, "isJson", { enumerable: true, get: function () { return types_1.isJson; } });
3723
+ Object.defineProperty(exports, "isNull", { enumerable: true, get: function () { return types_1.isNull; } });
3724
+ Object.defineProperty(exports, "isNumber", { enumerable: true, get: function () { return types_1.isNumber; } });
3725
+ Object.defineProperty(exports, "isFinite", { enumerable: true, get: function () { return types_1.isFinite; } });
3726
+ Object.defineProperty(exports, "isPositiveInfinity", { enumerable: true, get: function () { return types_1.isPositiveInfinity; } });
3727
+ Object.defineProperty(exports, "isNegativeInfinity", { enumerable: true, get: function () { return types_1.isNegativeInfinity; } });
3728
+ Object.defineProperty(exports, "isNaN", { enumerable: true, get: function () { return types_1.isNaN; } });
3729
+ Object.defineProperty(exports, "isntNaN", { enumerable: true, get: function () { return types_1.isntNaN; } });
3730
+ Object.defineProperty(exports, "isObject", { enumerable: true, get: function () { return types_1.isObject; } });
3731
+ Object.defineProperty(exports, "isPlainObject", { enumerable: true, get: function () { return types_1.isPlainObject; } });
3732
+ Object.defineProperty(exports, "isPromise", { enumerable: true, get: function () { return types_1.isPromise; } });
3733
+ Object.defineProperty(exports, "isPromiseLike", { enumerable: true, get: function () { return types_1.isPromiseLike; } });
3734
+ Object.defineProperty(exports, "isString", { enumerable: true, get: function () { return types_1.isString; } });
3735
+ Object.defineProperty(exports, "isUndefined", { enumerable: true, get: function () { return types_1.isUndefined; } });
3736
+ Object.defineProperty(exports, "isRegExp", { enumerable: true, get: function () { return types_1.isRegExp; } });
3737
+ Object.defineProperty(exports, "isSymbol", { enumerable: true, get: function () { return types_1.isSymbol; } });
3738
+ Object.defineProperty(exports, "isntArray", { enumerable: true, get: function () { return types_1.isntArray; } });
3739
+ Object.defineProperty(exports, "isntAsyncIterable", { enumerable: true, get: function () { return types_1.isntAsyncIterable; } });
3740
+ Object.defineProperty(exports, "isntBigInt", { enumerable: true, get: function () { return types_1.isntBigInt; } });
3741
+ Object.defineProperty(exports, "isntBoolean", { enumerable: true, get: function () { return types_1.isntBoolean; } });
3742
+ Object.defineProperty(exports, "isntChar", { enumerable: true, get: function () { return types_1.isntChar; } });
3743
+ Object.defineProperty(exports, "isntDate", { enumerable: true, get: function () { return types_1.isntDate; } });
3744
+ Object.defineProperty(exports, "isntEmptyArray", { enumerable: true, get: function () { return types_1.isntEmptyArray; } });
3745
+ Object.defineProperty(exports, "isntEmptyObject", { enumerable: true, get: function () { return types_1.isntEmptyObject; } });
3746
+ Object.defineProperty(exports, "isntError", { enumerable: true, get: function () { return types_1.isntError; } });
3747
+ Object.defineProperty(exports, "isntFalsy", { enumerable: true, get: function () { return types_1.isntFalsy; } });
3748
+ Object.defineProperty(exports, "isntFunction", { enumerable: true, get: function () { return types_1.isntFunction; } });
3749
+ Object.defineProperty(exports, "isntIterable", { enumerable: true, get: function () { return types_1.isntIterable; } });
3750
+ Object.defineProperty(exports, "isntJson", { enumerable: true, get: function () { return types_1.isntJson; } });
3751
+ Object.defineProperty(exports, "isntNull", { enumerable: true, get: function () { return types_1.isntNull; } });
3752
+ Object.defineProperty(exports, "isntNumber", { enumerable: true, get: function () { return types_1.isntNumber; } });
3753
+ Object.defineProperty(exports, "isntObject", { enumerable: true, get: function () { return types_1.isntObject; } });
3754
+ Object.defineProperty(exports, "isntPlainObject", { enumerable: true, get: function () { return types_1.isntPlainObject; } });
3755
+ Object.defineProperty(exports, "isntPromise", { enumerable: true, get: function () { return types_1.isntPromise; } });
3756
+ Object.defineProperty(exports, "isntPromiseLike", { enumerable: true, get: function () { return types_1.isntPromiseLike; } });
3757
+ Object.defineProperty(exports, "isntString", { enumerable: true, get: function () { return types_1.isntString; } });
3758
+ Object.defineProperty(exports, "isntUndefined", { enumerable: true, get: function () { return types_1.isntUndefined; } });
3759
+ Object.defineProperty(exports, "isntRegExp", { enumerable: true, get: function () { return types_1.isntRegExp; } });
3760
+ Object.defineProperty(exports, "isntSymbol", { enumerable: true, get: function () { return types_1.isntSymbol; } });
3761
+
3762
+ }(es2018$c));
3763
+
3764
+ function get(...transformers) {
3765
+ return request('GET', ...transformers);
3766
+ }
3767
+ function head(...transformers) {
3768
+ return request('HEAD', ...transformers);
3769
+ }
3770
+ function post(...transformers) {
3771
+ return request('POST', ...transformers);
3772
+ }
3773
+ function put(...transformers) {
3774
+ return request('PUT', ...transformers);
3775
+ }
3776
+ function patch(...transformers) {
3777
+ return request('PATCH', ...transformers);
3778
+ }
3779
+ function del(...transformers) {
3780
+ return request('DELETE', ...transformers);
3781
+ }
3782
+ function request(method, ...transformers) {
3783
+ const options = transformers.reduce((options, trans) => es2018$c.isFunction(trans) ? trans(options) : options, {
3784
+ url: new URL('http://localhost'),
3785
+ headers: new es2018$d.Headers()
3786
+ });
3787
+ const headers = new es2018$d.Headers(options.headers);
3788
+ return new es2018$d.Request(options.url.href, {
3789
+ method,
3790
+ headers,
3791
+ signal: options.signal,
3792
+ body: options.payload,
3793
+ keepalive: options.keepalive
3794
+ });
3795
+ }
3796
+
3797
+ function url(...urls) {
3798
+ return (options) => {
3799
+ const url = new URL(urls.reduce((acc, cur) => new URL(cur, acc).href));
3800
+ return Object.assign(Object.assign({}, options), { url });
3801
+ };
3802
+ }
3803
+
3804
+ function text(payload) {
3805
+ return (options) => {
3806
+ const headers = new es2018$d.Headers(options.headers);
3807
+ headers.set('Content-Type', 'application/x-www-form-urlencoded');
3808
+ return Object.assign(Object.assign({}, options), { headers,
3809
+ payload });
3810
+ };
3811
+ }
3812
+
3813
+ function json(payload) {
3814
+ return (options) => {
3815
+ const headers = new es2018$d.Headers(options.headers);
3816
+ headers.set('Content-Type', 'application/json');
3817
+ return Object.assign(Object.assign({}, options), { headers, payload: JSON.stringify(payload) });
3818
+ };
3819
+ }
3820
+
3821
+ var papaparse_min = {exports: {}};
3822
+
3823
+ /* @license
3824
+ Papa Parse
3825
+ v5.3.2
3826
+ https://github.com/mholt/PapaParse
3827
+ License: MIT
3828
+ */
3829
+
3830
+ (function (module, exports) {
3831
+ !function(e,t){module.exports=t();}(commonjsGlobal,function s(){var f="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==f?f:{};var n=!f.document&&!!f.postMessage,o=n&&/blob:/i.test((f.location||{}).protocol),a={},h=0,b={parse:function(e,t){var i=(t=t||{}).dynamicTyping||!1;M(i)&&(t.dynamicTypingFunction=i,i={});if(t.dynamicTyping=i,t.transform=!!M(t.transform)&&t.transform,t.worker&&b.WORKERS_SUPPORTED){var r=function(){if(!b.WORKERS_SUPPORTED)return !1;var e=(i=f.URL||f.webkitURL||null,r=s.toString(),b.BLOB_URL||(b.BLOB_URL=i.createObjectURL(new Blob(["(",r,")();"],{type:"text/javascript"})))),t=new f.Worker(e);var i,r;return t.onmessage=_,t.id=h++,a[t.id]=t}();return r.userStep=t.step,r.userChunk=t.chunk,r.userComplete=t.complete,r.userError=t.error,t.step=M(t.step),t.chunk=M(t.chunk),t.complete=M(t.complete),t.error=M(t.error),delete t.worker,void r.postMessage({input:e,config:t,workerId:r.id})}var n=null;b.NODE_STREAM_INPUT,"string"==typeof e?n=t.download?new l(t):new p(t):!0===e.readable&&M(e.read)&&M(e.on)?n=new g(t):(f.File&&e instanceof File||e instanceof Object)&&(n=new c(t));return n.stream(e)},unparse:function(e,t){var n=!1,_=!0,m=",",y="\r\n",s='"',a=s+s,i=!1,r=null,o=!1;!function(){if("object"!=typeof t)return;"string"!=typeof t.delimiter||b.BAD_DELIMITERS.filter(function(e){return -1!==t.delimiter.indexOf(e)}).length||(m=t.delimiter);("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes);"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(i=t.skipEmptyLines);"string"==typeof t.newline&&(y=t.newline);"string"==typeof t.quoteChar&&(s=t.quoteChar);"boolean"==typeof t.header&&(_=t.header);if(Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");r=t.columns;}void 0!==t.escapeChar&&(a=t.escapeChar+s);("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(o=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/);}();var h=new RegExp(j(s),"g");"string"==typeof e&&(e=JSON.parse(e));if(Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return u(null,e,i);if("object"==typeof e[0])return u(r||Object.keys(e[0]),e,i)}else if("object"==typeof e)return "string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||r),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),u(e.fields||[],e.data||[],i);throw new Error("Unable to serialize unrecognized input");function u(e,t,i){var r="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var n=Array.isArray(e)&&0<e.length,s=!Array.isArray(t[0]);if(n&&_){for(var a=0;a<e.length;a++)0<a&&(r+=m),r+=v(e[a],a);0<t.length&&(r+=y);}for(var o=0;o<t.length;o++){var h=n?e.length:t[o].length,u=!1,f=n?0===Object.keys(t[o]).length:0===t[o].length;if(i&&!n&&(u="greedy"===i?""===t[o].join("").trim():1===t[o].length&&0===t[o][0].length),"greedy"===i&&n){for(var d=[],l=0;l<h;l++){var c=s?e[l]:l;d.push(t[o][c]);}u=""===d.join("").trim();}if(!u){for(var p=0;p<h;p++){0<p&&!f&&(r+=m);var g=n&&s?e[p]:p;r+=v(t[o][g],p);}o<t.length-1&&(!i||0<h&&!f)&&(r+=y);}}return r}function v(e,t){if(null==e)return "";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var i=!1;o&&"string"==typeof e&&o.test(e)&&(e="'"+e,i=!0);var r=e.toString().replace(h,a);return (i=i||!0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||function(e,t){for(var i=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return !0;return !1}(r,b.BAD_DELIMITERS)||-1<r.indexOf(m)||" "===r.charAt(0)||" "===r.charAt(r.length-1))?s+r+s:r}}};if(b.RECORD_SEP=String.fromCharCode(30),b.UNIT_SEP=String.fromCharCode(31),b.BYTE_ORDER_MARK="\ufeff",b.BAD_DELIMITERS=["\r","\n",'"',b.BYTE_ORDER_MARK],b.WORKERS_SUPPORTED=!n&&!!f.Worker,b.NODE_STREAM_INPUT=1,b.LocalChunkSize=10485760,b.RemoteChunkSize=5242880,b.DefaultDelimiter=",",b.Parser=E,b.ParserHandle=i,b.NetworkStreamer=l,b.FileStreamer=c,b.StringStreamer=p,b.ReadableStreamStreamer=g,f.jQuery){var d=f.jQuery;d.fn.parse=function(o){var i=o.config||{},h=[];return this.each(function(e){if(!("INPUT"===d(this).prop("tagName").toUpperCase()&&"file"===d(this).attr("type").toLowerCase()&&f.FileReader)||!this.files||0===this.files.length)return !0;for(var t=0;t<this.files.length;t++)h.push({file:this.files[t],inputElem:this,instanceConfig:d.extend({},i)});}),e(),this;function e(){if(0!==h.length){var e,t,i,r,n=h[0];if(M(o.before)){var s=o.before(n.file,n.inputElem);if("object"==typeof s){if("abort"===s.action)return e="AbortError",t=n.file,i=n.inputElem,r=s.reason,void(M(o.error)&&o.error({name:e},t,i,r));if("skip"===s.action)return void u();"object"==typeof s.config&&(n.instanceConfig=d.extend(n.instanceConfig,s.config));}else if("skip"===s)return void u()}var a=n.instanceConfig.complete;n.instanceConfig.complete=function(e){M(a)&&a(e,n.file,n.inputElem),u();},b.parse(n.file,n.instanceConfig);}else M(o.complete)&&o.complete();}function u(){h.splice(0,1),e();}};}function u(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=w(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null);this._handle=new i(t),(this._handle.streamer=this)._config=t;}.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&M(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(e);void 0!==i&&(e=i);}this.isFirstChunk=!1,this._halted=!1;var r=this._partialLine+e;this._partialLine="";var n=this._handle.parse(r,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var s=n.meta.cursor;this._finished||(this._partialLine=r.substring(s-this._baseIndex),this._baseIndex=s),n&&n.data&&(this._rowCount+=n.data.length);var a=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(o)f.postMessage({results:n,workerId:b.WORKER_ID,finished:a});else if(M(this._config.chunk)&&!t){if(this._config.chunk(n,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);n=void 0,this._completeResults=void 0;}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(n.data),this._completeResults.errors=this._completeResults.errors.concat(n.errors),this._completeResults.meta=n.meta),this._completed||!a||!M(this._config.complete)||n&&n.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),a||n&&n.meta.paused||this._nextChunk(),n}this._halted=!0;},this._sendError=function(e){M(this._config.error)?this._config.error(e):o&&this._config.error&&f.postMessage({workerId:b.WORKER_ID,error:e,finished:!1});};}function l(e){var r;(e=e||{}).chunkSize||(e.chunkSize=b.RemoteChunkSize),u.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded();}:function(){this._readChunk();},this.stream=function(e){this._input=e,this._nextChunk();},this._readChunk=function(){if(this._finished)this._chunkLoaded();else {if(r=new XMLHttpRequest,this._config.withCredentials&&(r.withCredentials=this._config.withCredentials),n||(r.onload=v(this._chunkLoaded,this),r.onerror=v(this._chunkError,this)),r.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var t in e)r.setRequestHeader(t,e[t]);}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;r.setRequestHeader("Range","bytes="+this._start+"-"+i);}try{r.send(this._config.downloadRequestBody);}catch(e){this._chunkError(e.message);}n&&0===r.status&&this._chunkError();}},this._chunkLoaded=function(){4===r.readyState&&(r.status<200||400<=r.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:r.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");if(null===t)return -1;return parseInt(t.substring(t.lastIndexOf("/")+1))}(r),this.parseChunk(r.responseText)));},this._chunkError=function(e){var t=r.statusText||e;this._sendError(new Error(t));};}function c(e){var r,n;(e=e||{}).chunkSize||(e.chunkSize=b.LocalChunkSize),u.call(this,e);var s="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,s?((r=new FileReader).onload=v(this._chunkLoaded,this),r.onerror=v(this._chunkError,this)):r=new FileReaderSync,this._nextChunk();},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk();},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var t=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,t);}var i=r.readAsText(e,this._config.encoding);s||this._chunkLoaded({target:{result:i}});},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result);},this._chunkError=function(){this._sendError(r.error);};}function p(e){var i;u.call(this,e=e||{}),this.stream=function(e){return i=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,t=this._config.chunkSize;return t?(e=i.substring(0,t),i=i.substring(t)):(e=i,i=""),this._finished=!i,this.parseChunk(e)}};}function g(e){u.call(this,e=e||{});var t=[],i=!0,r=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause();},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume();},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError);},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0);},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0;},this._streamData=v(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()));}catch(e){this._streamError(e);}},this),this._streamError=v(function(e){this._streamCleanUp(),this._sendError(e);},this),this._streamEnd=v(function(){this._streamCleanUp(),r=!0,this._streamData("");},this),this._streamCleanUp=v(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError);},this);}function i(m){var a,o,h,r=Math.pow(2,53),n=-r,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,u=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,t=this,i=0,f=0,d=!1,e=!1,l=[],c={data:[],errors:[],meta:{}};if(M(m.step)){var p=m.step;m.step=function(e){if(c=e,_())g();else {if(g(),0===c.data.length)return;i+=e.data.length,m.preview&&i>m.preview?o.abort():(c.data=c.data[0],p(c,t));}};}function y(e){return "greedy"===m.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function g(){return c&&h&&(k("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+b.DefaultDelimiter+"'"),h=!1),m.skipEmptyLines&&(c.data=c.data.filter(function(e){return !y(e)})),_()&&function(){if(!c)return;function e(e,t){M(m.transformHeader)&&(e=m.transformHeader(e,t)),l.push(e);}if(Array.isArray(c.data[0])){for(var t=0;_()&&t<c.data.length;t++)c.data[t].forEach(e);c.data.splice(0,1);}else c.data.forEach(e);}(),function(){if(!c||!m.header&&!m.dynamicTyping&&!m.transform)return c;function e(e,t){var i,r=m.header?{}:[];for(i=0;i<e.length;i++){var n=i,s=e[i];m.header&&(n=i>=l.length?"__parsed_extra":l[i]),m.transform&&(s=m.transform(s,n)),s=v(n,s),"__parsed_extra"===n?(r[n]=r[n]||[],r[n].push(s)):r[n]=s;}return m.header&&(i>l.length?k("FieldMismatch","TooManyFields","Too many fields: expected "+l.length+" fields but parsed "+i,f+t):i<l.length&&k("FieldMismatch","TooFewFields","Too few fields: expected "+l.length+" fields but parsed "+i,f+t)),r}var t=1;!c.data.length||Array.isArray(c.data[0])?(c.data=c.data.map(e),t=c.data.length):c.data=e(c.data,0);m.header&&c.meta&&(c.meta.fields=l);return f+=t,c}()}function _(){return m.header&&0===l.length}function v(e,t){return i=e,m.dynamicTypingFunction&&void 0===m.dynamicTyping[i]&&(m.dynamicTyping[i]=m.dynamicTypingFunction(i)),!0===(m.dynamicTyping[i]||m.dynamicTyping)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(function(e){if(s.test(e)){var t=parseFloat(e);if(n<t&&t<r)return !0}return !1}(t)?parseFloat(t):u.test(t)?new Date(t):""===t?null:t):t;var i;}function k(e,t,i,r){var n={type:e,code:t,message:i};void 0!==r&&(n.row=r),c.errors.push(n);}this.parse=function(e,t,i){var r=m.quoteChar||'"';if(m.newline||(m.newline=function(e,t){e=e.substring(0,1048576);var i=new RegExp(j(t)+"([^]*?)"+j(t),"gm"),r=(e=e.replace(i,"")).split("\r"),n=e.split("\n"),s=1<n.length&&n[0].length<r[0].length;if(1===r.length||s)return "\n";for(var a=0,o=0;o<r.length;o++)"\n"===r[o][0]&&a++;return a>=r.length/2?"\r\n":"\r"}(e,r)),h=!1,m.delimiter)M(m.delimiter)&&(m.delimiter=m.delimiter(e),c.meta.delimiter=m.delimiter);else {var n=function(e,t,i,r,n){var s,a,o,h;n=n||[",","\t","|",";",b.RECORD_SEP,b.UNIT_SEP];for(var u=0;u<n.length;u++){var f=n[u],d=0,l=0,c=0;o=void 0;for(var p=new E({comments:r,delimiter:f,newline:t,preview:10}).parse(e),g=0;g<p.data.length;g++)if(i&&y(p.data[g]))c++;else {var _=p.data[g].length;l+=_,void 0!==o?0<_&&(d+=Math.abs(_-o),o=_):o=_;}0<p.data.length&&(l/=p.data.length-c),(void 0===a||d<=a)&&(void 0===h||h<l)&&1.99<l&&(a=d,s=f,h=l);}return {successful:!!(m.delimiter=s),bestDelimiter:s}}(e,m.newline,m.skipEmptyLines,m.comments,m.delimitersToGuess);n.successful?m.delimiter=n.bestDelimiter:(h=!0,m.delimiter=b.DefaultDelimiter),c.meta.delimiter=m.delimiter;}var s=w(m);return m.preview&&m.header&&s.preview++,a=e,o=new E(s),c=o.parse(a,t,i),g(),d?{meta:{paused:!0}}:c||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,o.abort(),a=M(m.chunk)?"":a.substring(o.getCharIndex());},this.resume=function(){t.streamer._halted?(d=!1,t.streamer.parseChunk(a,!0)):setTimeout(t.resume,3);},this.aborted=function(){return e},this.abort=function(){e=!0,o.abort(),c.meta.aborted=!0,M(m.complete)&&m.complete(c),a="";};}function j(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function E(e){var S,O=(e=e||{}).delimiter,x=e.newline,I=e.comments,T=e.step,D=e.preview,A=e.fastMode,L=S=void 0===e.quoteChar||null===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(L=e.escapeChar),("string"!=typeof O||-1<b.BAD_DELIMITERS.indexOf(O))&&(O=","),I===O)throw new Error("Comment character same as delimiter");!0===I?I="#":("string"!=typeof I||-1<b.BAD_DELIMITERS.indexOf(I))&&(I=!1),"\n"!==x&&"\r"!==x&&"\r\n"!==x&&(x="\n");var F=0,z=!1;this.parse=function(r,t,i){if("string"!=typeof r)throw new Error("Input must be a string");var n=r.length,e=O.length,s=x.length,a=I.length,o=M(T),h=[],u=[],f=[],d=F=0;if(!r)return C();if(A||!1!==A&&-1===r.indexOf(S)){for(var l=r.split(x),c=0;c<l.length;c++){if(f=l[c],F+=f.length,c!==l.length-1)F+=x.length;else if(i)return C();if(!I||f.substring(0,a)!==I){if(o){if(h=[],k(f.split(O)),R(),z)return C()}else k(f.split(O));if(D&&D<=c)return h=h.slice(0,D),C(!0)}}return C()}for(var p=r.indexOf(O,F),g=r.indexOf(x,F),_=new RegExp(j(L)+j(S),"g"),m=r.indexOf(S,F);;)if(r[F]!==S)if(I&&0===f.length&&r.substring(F,F+a)===I){if(-1===g)return C();F=g+s,g=r.indexOf(x,F),p=r.indexOf(O,F);}else if(-1!==p&&(p<g||-1===g))f.push(r.substring(F,p)),F=p+e,p=r.indexOf(O,F);else {if(-1===g)break;if(f.push(r.substring(F,g)),w(g+s),o&&(R(),z))return C();if(D&&h.length>=D)return C(!0)}else for(m=F,F++;;){if(-1===(m=r.indexOf(S,m+1)))return i||u.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:h.length,index:F}),E();if(m===n-1)return E(r.substring(F,m).replace(_,S));if(S!==L||r[m+1]!==L){if(S===L||0===m||r[m-1]!==L){-1!==p&&p<m+1&&(p=r.indexOf(O,m+1)),-1!==g&&g<m+1&&(g=r.indexOf(x,m+1));var y=b(-1===g?p:Math.min(p,g));if(r.substr(m+1+y,e)===O){f.push(r.substring(F,m).replace(_,S)),r[F=m+1+y+e]!==S&&(m=r.indexOf(S,F)),p=r.indexOf(O,F),g=r.indexOf(x,F);break}var v=b(g);if(r.substring(m+1+v,m+1+v+s)===x){if(f.push(r.substring(F,m).replace(_,S)),w(m+1+v+s),p=r.indexOf(O,F),m=r.indexOf(S,F),o&&(R(),z))return C();if(D&&h.length>=D)return C(!0);break}u.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:h.length,index:F}),m++;}}else m++;}return E();function k(e){h.push(e),d=F;}function b(e){var t=0;if(-1!==e){var i=r.substring(m+1,e);i&&""===i.trim()&&(t=i.length);}return t}function E(e){return i||(void 0===e&&(e=r.substring(F)),f.push(e),F=n,k(f),o&&R()),C()}function w(e){F=e,k(f),f=[],g=r.indexOf(x,F);}function C(e){return {data:h,errors:u,meta:{delimiter:O,linebreak:x,aborted:z,truncated:!!e,cursor:d+(t||0)}}}function R(){T(C()),h=[],u=[];}},this.abort=function(){z=!0;},this.getCharIndex=function(){return F};}function _(e){var t=e.data,i=a[t.workerId],r=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var n={abort:function(){r=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}});},pause:y,resume:y};if(M(i.userStep)){for(var s=0;s<t.results.data.length&&(i.userStep({data:t.results.data[s],errors:t.results.errors,meta:t.results.meta},n),!r);s++);delete t.results;}else M(i.userChunk)&&(i.userChunk(t.results,n,t.file),delete t.results);}t.finished&&!r&&m(t.workerId,t.results);}function m(e,t){var i=a[e];M(i.userComplete)&&i.userComplete(t),i.terminate(),delete a[e];}function y(){throw new Error("Not implemented.")}function w(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var i in e)t[i]=w(e[i]);return t}function v(e,t){return function(){e.apply(t,arguments);}}function M(e){return "function"==typeof e}return o&&(f.onmessage=function(e){var t=e.data;void 0===b.WORKER_ID&&t&&(b.WORKER_ID=t.workerId);if("string"==typeof t.input)f.postMessage({workerId:b.WORKER_ID,results:b.parse(t.input,t.config),finished:!0});else if(f.File&&t.input instanceof File||t.input instanceof Object){var i=b.parse(t.input,t.config);i&&f.postMessage({workerId:b.WORKER_ID,results:i,finished:!0});}}),(l.prototype=Object.create(u.prototype)).constructor=l,(c.prototype=Object.create(u.prototype)).constructor=c,(p.prototype=Object.create(p.prototype)).constructor=p,(g.prototype=Object.create(u.prototype)).constructor=g,b});
3832
+ }(papaparse_min));
3833
+
3834
+ function csv(payload) {
3835
+ es2018$c.assert(payload.length > 0, 'payload must be a non-empty array');
3836
+ return (options) => {
3837
+ const headers = new es2018$d.Headers(options.headers);
3838
+ headers.set('Content-Type', 'text/csv');
3839
+ return Object.assign(Object.assign({}, options), { headers, payload: stringify(payload) });
3840
+ };
3841
+ }
3842
+ function stringify(data) {
3843
+ const fields = Object.keys(data[0]);
3844
+ return papaparse_min.exports.unparse({ data, fields });
3845
+ }
3846
+
3847
+ function signal(signal) {
3848
+ return (options) => {
3849
+ return Object.assign(Object.assign({}, options), { signal });
3850
+ };
3851
+ }
3852
+
3853
+ function header(name, value) {
3854
+ return (options) => {
3855
+ const headers = new es2018$d.Headers(options.headers);
3856
+ headers.set(name, value);
3857
+ return Object.assign(Object.assign({}, options), { headers });
3858
+ };
3859
+ }
3860
+
3861
+ function appendHeader(name, value) {
3862
+ return (options) => {
3863
+ const headers = new es2018$d.Headers(options.headers);
3864
+ headers.append(name, value);
3865
+ return Object.assign(Object.assign({}, options), { headers });
3866
+ };
3867
+ }
3868
+
3869
+ function headers(headers) {
3870
+ return (options) => {
3871
+ const newHeaders = new es2018$d.Headers(options.headers);
3872
+ for (const [name, value] of Object.entries(headers)) {
3873
+ newHeaders.set(name, value);
3874
+ }
3875
+ return Object.assign(Object.assign({}, options), { headers: newHeaders });
3876
+ };
3877
+ }
3878
+
3879
+ function accept(accept) {
3880
+ return appendHeader('Accept', accept);
3881
+ }
3882
+
3883
+ function host(host) {
3884
+ return (options) => {
3885
+ const url = new URL(options.url.href);
3886
+ url.host = host;
3887
+ return Object.assign(Object.assign({}, options), { url });
3888
+ };
3889
+ }
3890
+
3891
+ function port(port) {
3892
+ return (options) => {
3893
+ const url = new URL(options.url.href);
3894
+ url.port = port.toString();
3895
+ return Object.assign(Object.assign({}, options), { url });
3896
+ };
2787
3897
  }
2788
3898
 
2789
3899
  function pathname(pathname) {
@@ -2794,6 +3904,25 @@
2794
3904
  };
2795
3905
  }
2796
3906
 
3907
+ function appendPathname(pathname) {
3908
+ return (options) => {
3909
+ const base = es2018$c.go(() => {
3910
+ const directoryPathname = es2018$c.go(() => {
3911
+ let pathname = options.url.pathname;
3912
+ if (!options.url.pathname.endsWith('/')) {
3913
+ pathname += '/';
3914
+ }
3915
+ return pathname;
3916
+ });
3917
+ const url = new URL(options.url.href);
3918
+ url.pathname = directoryPathname;
3919
+ return url;
3920
+ });
3921
+ const url = new URL(pathname, base);
3922
+ return Object.assign(Object.assign({}, options), { url });
3923
+ };
3924
+ }
3925
+
2797
3926
  function search(search) {
2798
3927
  return (options) => {
2799
3928
  const url = new URL(options.url.href);
@@ -2836,10 +3965,10 @@
2836
3965
 
2837
3966
  function formDataField(name, value) {
2838
3967
  return (options) => {
2839
- const formData = options.payload instanceof es2018$5.FormData
3968
+ const formData = options.payload instanceof es2018$d.FormData
2840
3969
  ? cloneFormData(options.payload)
2841
- : new es2018$5.FormData();
2842
- if (es2018$4.isArray(value)) {
3970
+ : new es2018$d.FormData();
3971
+ if (es2018$c.isArray(value)) {
2843
3972
  value.forEach(x => formData.append(name, x));
2844
3973
  }
2845
3974
  else {
@@ -2849,7 +3978,7 @@
2849
3978
  };
2850
3979
  }
2851
3980
  function cloneFormData(formData) {
2852
- const result = new es2018$5.FormData();
3981
+ const result = new es2018$d.FormData();
2853
3982
  for (const [name, value] of formData.entries()) {
2854
3983
  result.append(name, value);
2855
3984
  }
@@ -2927,6 +4056,7 @@
2927
4056
 
2928
4057
  exports.accept = accept;
2929
4058
  exports.appendHeader = appendHeader;
4059
+ exports.appendPathname = appendPathname;
2930
4060
  exports.appendSearchParam = appendSearchParam;
2931
4061
  exports.basicAuth = basicAuth;
2932
4062
  exports.bearerAuth = bearerAuth;