extra-request 4.0.1 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@
6
6
 
7
7
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
8
8
 
9
- var es2018$2 = {};
9
+ var es2018$7 = {};
10
10
 
11
11
  var fetch_browser = {};
12
12
 
@@ -38,11 +38,6 @@
38
38
  abortController_browser.AbortController = void 0;
39
39
  abortController_browser.AbortController = globalThis.AbortController;
40
40
 
41
- var abortError_browser = {};
42
-
43
- abortError_browser.AbortError = void 0;
44
- abortError_browser.AbortError = globalThis.DOMException;
45
-
46
41
  var blob_browser = {};
47
42
 
48
43
  blob_browser.Blob = void 0;
@@ -69,199 +64,198 @@
69
64
  __exportStar(response_browser, exports);
70
65
  __exportStar(formData_browser, exports);
71
66
  __exportStar(abortController_browser, exports);
72
- __exportStar(abortError_browser, exports);
73
67
  __exportStar(blob_browser, exports);
74
68
  __exportStar(eventSource_browser, exports);
75
69
 
76
- }(es2018$2));
70
+ }(es2018$7));
77
71
 
78
- var es2018$1 = {};
72
+ var es2018$6 = {};
79
73
 
80
- var array = {};
74
+ var array$1 = {};
81
75
 
82
- array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
83
- function isArray(val) {
76
+ array$1.isntEmptyArray = array$1.isEmptyArray = array$1.isntArray = array$1.isArray = void 0;
77
+ function isArray$1(val) {
84
78
  return Array.isArray(val);
85
79
  }
86
- array.isArray = isArray;
87
- function isntArray(val) {
88
- return !isArray(val);
80
+ array$1.isArray = isArray$1;
81
+ function isntArray$1(val) {
82
+ return !isArray$1(val);
89
83
  }
90
- array.isntArray = isntArray;
91
- function isEmptyArray(val) {
84
+ array$1.isntArray = isntArray$1;
85
+ function isEmptyArray$1(val) {
92
86
  return val.length === 0;
93
87
  }
94
- array.isEmptyArray = isEmptyArray;
95
- function isntEmptyArray(val) {
88
+ array$1.isEmptyArray = isEmptyArray$1;
89
+ function isntEmptyArray$1(val) {
96
90
  return val.length !== 0;
97
91
  }
98
- array.isntEmptyArray = isntEmptyArray;
92
+ array$1.isntEmptyArray = isntEmptyArray$1;
99
93
 
100
- var asyncIterable = {};
94
+ var asyncIterable$1 = {};
101
95
 
102
- var _null = {};
96
+ var _null$1 = {};
103
97
 
104
- _null.isntNull = _null.isNull = void 0;
105
- function isNull(val) {
98
+ _null$1.isntNull = _null$1.isNull = void 0;
99
+ function isNull$1(val) {
106
100
  return val === null;
107
101
  }
108
- _null.isNull = isNull;
109
- function isntNull(val) {
110
- return !isNull(val);
102
+ _null$1.isNull = isNull$1;
103
+ function isntNull$1(val) {
104
+ return !isNull$1(val);
111
105
  }
112
- _null.isntNull = isntNull;
106
+ _null$1.isntNull = isntNull$1;
113
107
 
114
- var _undefined = {};
108
+ var _undefined$1 = {};
115
109
 
116
- _undefined.isntUndefined = _undefined.isUndefined = void 0;
117
- function isUndefined(val) {
110
+ _undefined$1.isntUndefined = _undefined$1.isUndefined = void 0;
111
+ function isUndefined$1(val) {
118
112
  return val === undefined;
119
113
  }
120
- _undefined.isUndefined = isUndefined;
121
- function isntUndefined(val) {
122
- return !isUndefined(val);
114
+ _undefined$1.isUndefined = isUndefined$1;
115
+ function isntUndefined$1(val) {
116
+ return !isUndefined$1(val);
123
117
  }
124
- _undefined.isntUndefined = isntUndefined;
118
+ _undefined$1.isntUndefined = isntUndefined$1;
125
119
 
126
- asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
127
- const null_1$1 = _null;
128
- const undefined_1$2 = _undefined;
129
- function isAsyncIterable(val) {
130
- return (0, null_1$1.isntNull)(val)
131
- && (0, undefined_1$2.isntUndefined)(val)
120
+ asyncIterable$1.isntAsyncIterable = asyncIterable$1.isAsyncIterable = void 0;
121
+ const null_1$3 = _null$1;
122
+ const undefined_1$5 = _undefined$1;
123
+ function isAsyncIterable$1(val) {
124
+ return (0, null_1$3.isntNull)(val)
125
+ && (0, undefined_1$5.isntUndefined)(val)
132
126
  && typeof val[Symbol.asyncIterator] === 'function';
133
127
  }
134
- asyncIterable.isAsyncIterable = isAsyncIterable;
135
- function isntAsyncIterable(val) {
136
- return !isAsyncIterable(val);
128
+ asyncIterable$1.isAsyncIterable = isAsyncIterable$1;
129
+ function isntAsyncIterable$1(val) {
130
+ return !isAsyncIterable$1(val);
137
131
  }
138
- asyncIterable.isntAsyncIterable = isntAsyncIterable;
132
+ asyncIterable$1.isntAsyncIterable = isntAsyncIterable$1;
139
133
 
140
- var bigint = {};
134
+ var bigint$1 = {};
141
135
 
142
- bigint.isntBigInt = bigint.isBigInt = void 0;
143
- function isBigInt(val) {
136
+ bigint$1.isntBigInt = bigint$1.isBigInt = void 0;
137
+ function isBigInt$1(val) {
144
138
  return typeof val === 'bigint';
145
139
  }
146
- bigint.isBigInt = isBigInt;
147
- function isntBigInt(val) {
148
- return !isBigInt(val);
140
+ bigint$1.isBigInt = isBigInt$1;
141
+ function isntBigInt$1(val) {
142
+ return !isBigInt$1(val);
149
143
  }
150
- bigint.isntBigInt = isntBigInt;
144
+ bigint$1.isntBigInt = isntBigInt$1;
151
145
 
152
- var boolean = {};
146
+ var boolean$1 = {};
153
147
 
154
- boolean.isntBoolean = boolean.isBoolean = void 0;
155
- function isBoolean(val) {
148
+ boolean$1.isntBoolean = boolean$1.isBoolean = void 0;
149
+ function isBoolean$1(val) {
156
150
  return typeof val === 'boolean';
157
151
  }
158
- boolean.isBoolean = isBoolean;
159
- function isntBoolean(val) {
160
- return !isBoolean(val);
152
+ boolean$1.isBoolean = isBoolean$1;
153
+ function isntBoolean$1(val) {
154
+ return !isBoolean$1(val);
161
155
  }
162
- boolean.isntBoolean = isntBoolean;
156
+ boolean$1.isntBoolean = isntBoolean$1;
163
157
 
164
- var char = {};
158
+ var char$1 = {};
165
159
 
166
- var string = {};
160
+ var string$1 = {};
167
161
 
168
- string.isntString = string.isString = void 0;
169
- function isString(val) {
162
+ string$1.isntString = string$1.isString = void 0;
163
+ function isString$1(val) {
170
164
  return typeof val === 'string';
171
165
  }
172
- string.isString = isString;
173
- function isntString(val) {
174
- return !isString(val);
166
+ string$1.isString = isString$1;
167
+ function isntString$1(val) {
168
+ return !isString$1(val);
175
169
  }
176
- string.isntString = isntString;
170
+ string$1.isntString = isntString$1;
177
171
 
178
- char.isntChar = char.isChar = void 0;
179
- const string_1$1 = string;
180
- function isChar(val) {
181
- return (0, string_1$1.isString)(val)
172
+ char$1.isntChar = char$1.isChar = void 0;
173
+ const string_1$3 = string$1;
174
+ function isChar$1(val) {
175
+ return (0, string_1$3.isString)(val)
182
176
  && val.length === 1;
183
177
  }
184
- char.isChar = isChar;
185
- function isntChar(val) {
186
- return !isChar(val);
178
+ char$1.isChar = isChar$1;
179
+ function isntChar$1(val) {
180
+ return !isChar$1(val);
187
181
  }
188
- char.isntChar = isntChar;
182
+ char$1.isntChar = isntChar$1;
189
183
 
190
- var date = {};
184
+ var date$1 = {};
191
185
 
192
- date.isntDate = date.isDate = void 0;
193
- function isDate(val) {
186
+ date$1.isntDate = date$1.isDate = void 0;
187
+ function isDate$1(val) {
194
188
  return val instanceof Date;
195
189
  }
196
- date.isDate = isDate;
197
- function isntDate(val) {
198
- return !isDate(val);
190
+ date$1.isDate = isDate$1;
191
+ function isntDate$1(val) {
192
+ return !isDate$1(val);
199
193
  }
200
- date.isntDate = isntDate;
194
+ date$1.isntDate = isntDate$1;
201
195
 
202
- var _enum = {};
196
+ var _enum$1 = {};
203
197
 
204
- _enum.inEnum = void 0;
205
- function inEnum(val, _enum) {
198
+ _enum$1.inEnum = void 0;
199
+ function inEnum$1(val, _enum) {
206
200
  return Object.values(_enum).includes(val);
207
201
  }
208
- _enum.inEnum = inEnum;
202
+ _enum$1.inEnum = inEnum$1;
209
203
 
210
- var error = {};
204
+ var error$1 = {};
211
205
 
212
- error.isntError = error.isError = void 0;
213
- function isError(val) {
206
+ error$1.isntError = error$1.isError = void 0;
207
+ function isError$1(val) {
214
208
  return val instanceof Error;
215
209
  }
216
- error.isError = isError;
217
- function isntError(val) {
218
- return !isError(val);
210
+ error$1.isError = isError$1;
211
+ function isntError$1(val) {
212
+ return !isError$1(val);
219
213
  }
220
- error.isntError = isntError;
214
+ error$1.isntError = isntError$1;
221
215
 
222
- var falsy = {};
216
+ var falsy$1 = {};
223
217
 
224
- falsy.isntFalsy = falsy.isFalsy = void 0;
225
- function isFalsy(val) {
218
+ falsy$1.isntFalsy = falsy$1.isFalsy = void 0;
219
+ function isFalsy$1(val) {
226
220
  return !val;
227
221
  }
228
- falsy.isFalsy = isFalsy;
229
- function isntFalsy(val) {
230
- return !isFalsy(val);
222
+ falsy$1.isFalsy = isFalsy$1;
223
+ function isntFalsy$1(val) {
224
+ return !isFalsy$1(val);
231
225
  }
232
- falsy.isntFalsy = isntFalsy;
226
+ falsy$1.isntFalsy = isntFalsy$1;
233
227
 
234
- var _function = {};
228
+ var _function$1 = {};
235
229
 
236
- _function.isntFunction = _function.isFunction = void 0;
237
- function isFunction(val) {
230
+ _function$1.isntFunction = _function$1.isFunction = void 0;
231
+ function isFunction$1(val) {
238
232
  return typeof val === 'function';
239
233
  }
240
- _function.isFunction = isFunction;
241
- function isntFunction(val) {
242
- return !isFunction(val);
234
+ _function$1.isFunction = isFunction$1;
235
+ function isntFunction$1(val) {
236
+ return !isFunction$1(val);
243
237
  }
244
- _function.isntFunction = isntFunction;
238
+ _function$1.isntFunction = isntFunction$1;
245
239
 
246
- var iterable = {};
240
+ var iterable$1 = {};
247
241
 
248
- iterable.isntIterable = iterable.isIterable = void 0;
249
- const null_1 = _null;
250
- const undefined_1$1 = _undefined;
251
- function isIterable(val) {
252
- return (0, null_1.isntNull)(val)
253
- && (0, undefined_1$1.isntUndefined)(val)
242
+ iterable$1.isntIterable = iterable$1.isIterable = void 0;
243
+ const null_1$2 = _null$1;
244
+ const undefined_1$4 = _undefined$1;
245
+ function isIterable$1(val) {
246
+ return (0, null_1$2.isntNull)(val)
247
+ && (0, undefined_1$4.isntUndefined)(val)
254
248
  && typeof val[Symbol.iterator] === 'function';
255
249
  }
256
- iterable.isIterable = isIterable;
257
- function isntIterable(val) {
258
- return !isIterable(val);
250
+ iterable$1.isIterable = isIterable$1;
251
+ function isntIterable$1(val) {
252
+ return !isIterable$1(val);
259
253
  }
260
- iterable.isntIterable = isntIterable;
254
+ iterable$1.isntIterable = isntIterable$1;
261
255
 
262
- var jsonRpc = {};
256
+ var jsonRpc$1 = {};
263
257
 
264
- var object = {};
258
+ var object$1 = {};
265
259
 
266
260
  /**
267
261
  * lodash (Custom Build) <https://lodash.com/>
@@ -405,115 +399,115 @@
405
399
 
406
400
  var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
407
401
  return (mod && mod.__esModule) ? mod : { "default": mod };
408
- };object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
402
+ };object$1.isntEmptyObject = object$1.isEmptyObject = object$1.isntPlainObject = object$1.isPlainObject = object$1.isntObject = object$1.isObject = void 0;
409
403
  const lodash_isplainobject_1 = __importDefault(lodash_isplainobject);
410
- function isObject(val) {
404
+ function isObject$1(val) {
411
405
  return val !== null
412
406
  && typeof val === 'object';
413
407
  }
414
- object.isObject = isObject;
415
- function isntObject(val) {
416
- return !isObject(val);
408
+ object$1.isObject = isObject$1;
409
+ function isntObject$1(val) {
410
+ return !isObject$1(val);
417
411
  }
418
- object.isntObject = isntObject;
412
+ object$1.isntObject = isntObject$1;
419
413
  function isPlainObject(val) {
420
414
  return (0, lodash_isplainobject_1.default)(val);
421
415
  }
422
- object.isPlainObject = isPlainObject;
416
+ object$1.isPlainObject = isPlainObject;
423
417
  function isntPlainObject(val) {
424
418
  return !isPlainObject(val);
425
419
  }
426
- object.isntPlainObject = isntPlainObject;
427
- function isEmptyObject(val) {
420
+ object$1.isntPlainObject = isntPlainObject;
421
+ function isEmptyObject$1(val) {
428
422
  return Object.keys(val).length === 0;
429
423
  }
430
- object.isEmptyObject = isEmptyObject;
431
- function isntEmptyObject(val) {
424
+ object$1.isEmptyObject = isEmptyObject$1;
425
+ function isntEmptyObject$1(val) {
432
426
  return Object.keys(val).length !== 0;
433
427
  }
434
- object.isntEmptyObject = isntEmptyObject;
428
+ object$1.isntEmptyObject = isntEmptyObject$1;
435
429
 
436
- var number = {};
430
+ var number$1 = {};
437
431
 
438
- number.isntNumber = number.isNumber = void 0;
439
- function isNumber(val) {
432
+ number$1.isntNumber = number$1.isNumber = void 0;
433
+ function isNumber$1(val) {
440
434
  return typeof val === 'number';
441
435
  }
442
- number.isNumber = isNumber;
443
- function isntNumber(val) {
444
- return !isNumber(val);
445
- }
446
- number.isntNumber = isntNumber;
447
-
448
- jsonRpc.isntJsonRpcError = jsonRpc.isJsonRpcError = jsonRpc.isntJsonRpcSuccess = jsonRpc.isJsonRpcSuccess = jsonRpc.isntJsonRpcRequest = jsonRpc.isJsonRpcRequest = jsonRpc.isntJsonRpcNotification = jsonRpc.isJsonRpcNotification = void 0;
449
- const array_1 = array;
450
- const object_1 = object;
451
- const string_1 = string;
452
- const number_1 = number;
453
- const undefined_1 = _undefined;
454
- function isJsonRpcId(val) {
455
- return (0, string_1.isString)(val) || (0, number_1.isNumber)(val);
456
- }
457
- function isJsonRpcParams(val) {
458
- return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);
459
- }
460
- function isJsonRpcNotification(val) {
461
- return (0, object_1.isPlainObject)(val)
462
- && (0, string_1.isString)(val.jsonrpc)
463
- && (0, string_1.isString)(val.method)
464
- && (0, undefined_1.isUndefined)(val.id)
465
- && isJsonRpcParams(val.params);
466
- }
467
- jsonRpc.isJsonRpcNotification = isJsonRpcNotification;
468
- function isntJsonRpcNotification(val) {
469
- return !isJsonRpcNotification(val);
470
- }
471
- jsonRpc.isntJsonRpcNotification = isntJsonRpcNotification;
472
- function isJsonRpcRequest(val) {
473
- return (0, object_1.isPlainObject)(val)
474
- && (0, string_1.isString)(val.jsonrpc)
475
- && (0, string_1.isString)(val.method)
476
- && isJsonRpcId(val.id)
477
- && isJsonRpcParams(val.params);
478
- }
479
- jsonRpc.isJsonRpcRequest = isJsonRpcRequest;
480
- function isntJsonRpcRequest(val) {
481
- return !isJsonRpcRequest(val);
482
- }
483
- jsonRpc.isntJsonRpcRequest = isntJsonRpcRequest;
484
- function isJsonRpcSuccess(val) {
485
- return (0, object_1.isPlainObject)(val)
486
- && (0, string_1.isString)(val.jsonrpc)
487
- && (0, string_1.isString)(val.id)
436
+ number$1.isNumber = isNumber$1;
437
+ function isntNumber$1(val) {
438
+ return !isNumber$1(val);
439
+ }
440
+ number$1.isntNumber = isntNumber$1;
441
+
442
+ jsonRpc$1.isntJsonRpcError = jsonRpc$1.isJsonRpcError = jsonRpc$1.isntJsonRpcSuccess = jsonRpc$1.isJsonRpcSuccess = jsonRpc$1.isntJsonRpcRequest = jsonRpc$1.isJsonRpcRequest = jsonRpc$1.isntJsonRpcNotification = jsonRpc$1.isJsonRpcNotification = void 0;
443
+ const array_1$1 = array$1;
444
+ const object_1$1 = object$1;
445
+ const string_1$2 = string$1;
446
+ const number_1$1 = number$1;
447
+ const undefined_1$3 = _undefined$1;
448
+ function isJsonRpcId$1(val) {
449
+ return (0, string_1$2.isString)(val) || (0, number_1$1.isNumber)(val);
450
+ }
451
+ function isJsonRpcParams$1(val) {
452
+ return (0, array_1$1.isArray)(val) || (0, object_1$1.isObject)(val);
453
+ }
454
+ function isJsonRpcNotification$1(val) {
455
+ return (0, object_1$1.isPlainObject)(val)
456
+ && (0, string_1$2.isString)(val.jsonrpc)
457
+ && (0, string_1$2.isString)(val.method)
458
+ && (0, undefined_1$3.isUndefined)(val.id)
459
+ && isJsonRpcParams$1(val.params);
460
+ }
461
+ jsonRpc$1.isJsonRpcNotification = isJsonRpcNotification$1;
462
+ function isntJsonRpcNotification$1(val) {
463
+ return !isJsonRpcNotification$1(val);
464
+ }
465
+ jsonRpc$1.isntJsonRpcNotification = isntJsonRpcNotification$1;
466
+ function isJsonRpcRequest$1(val) {
467
+ return (0, object_1$1.isPlainObject)(val)
468
+ && (0, string_1$2.isString)(val.jsonrpc)
469
+ && (0, string_1$2.isString)(val.method)
470
+ && isJsonRpcId$1(val.id)
471
+ && isJsonRpcParams$1(val.params);
472
+ }
473
+ jsonRpc$1.isJsonRpcRequest = isJsonRpcRequest$1;
474
+ function isntJsonRpcRequest$1(val) {
475
+ return !isJsonRpcRequest$1(val);
476
+ }
477
+ jsonRpc$1.isntJsonRpcRequest = isntJsonRpcRequest$1;
478
+ function isJsonRpcSuccess$1(val) {
479
+ return (0, object_1$1.isPlainObject)(val)
480
+ && (0, string_1$2.isString)(val.jsonrpc)
481
+ && (0, string_1$2.isString)(val.id)
488
482
  && 'result' in val;
489
483
  }
490
- jsonRpc.isJsonRpcSuccess = isJsonRpcSuccess;
491
- function isntJsonRpcSuccess(val) {
492
- return !isJsonRpcSuccess(val);
484
+ jsonRpc$1.isJsonRpcSuccess = isJsonRpcSuccess$1;
485
+ function isntJsonRpcSuccess$1(val) {
486
+ return !isJsonRpcSuccess$1(val);
493
487
  }
494
- jsonRpc.isntJsonRpcSuccess = isntJsonRpcSuccess;
495
- function isJsonRpcError(val) {
496
- return (0, object_1.isPlainObject)(val)
497
- && (0, string_1.isString)(val.jsonrpc)
498
- && isJsonRpcId(val.id)
499
- && isJsonRpcErrorObject(val.error);
488
+ jsonRpc$1.isntJsonRpcSuccess = isntJsonRpcSuccess$1;
489
+ function isJsonRpcError$1(val) {
490
+ return (0, object_1$1.isPlainObject)(val)
491
+ && (0, string_1$2.isString)(val.jsonrpc)
492
+ && isJsonRpcId$1(val.id)
493
+ && isJsonRpcErrorObject$1(val.error);
500
494
  }
501
- jsonRpc.isJsonRpcError = isJsonRpcError;
502
- function isntJsonRpcError(val) {
503
- return !isJsonRpcError(val);
495
+ jsonRpc$1.isJsonRpcError = isJsonRpcError$1;
496
+ function isntJsonRpcError$1(val) {
497
+ return !isJsonRpcError$1(val);
504
498
  }
505
- jsonRpc.isntJsonRpcError = isntJsonRpcError;
506
- function isJsonRpcErrorObject(val) {
507
- return (0, object_1.isPlainObject)(val)
508
- && (0, number_1.isNumber)(val.code)
509
- && (0, string_1.isString)(val.message)
510
- && ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));
499
+ jsonRpc$1.isntJsonRpcError = isntJsonRpcError$1;
500
+ function isJsonRpcErrorObject$1(val) {
501
+ return (0, object_1$1.isPlainObject)(val)
502
+ && (0, number_1$1.isNumber)(val.code)
503
+ && (0, string_1$2.isString)(val.message)
504
+ && ((0, undefined_1$3.isUndefined)(val.data) || (0, object_1$1.isObject)(val.data));
511
505
  }
512
506
 
513
- var json$1 = {};
507
+ var json$2 = {};
514
508
 
515
- json$1.isntJson = json$1.isJson = void 0;
516
- function isJson(val) {
509
+ json$2.isntJson = json$2.isJson = void 0;
510
+ function isJson$1(val) {
517
511
  try {
518
512
  JSON.stringify(val);
519
513
  return true;
@@ -522,16 +516,16 @@
522
516
  return false;
523
517
  }
524
518
  }
525
- json$1.isJson = isJson;
526
- function isntJson(val) {
527
- return !isntJson();
519
+ json$2.isJson = isJson$1;
520
+ function isntJson$1(val) {
521
+ return !isntJson$1();
528
522
  }
529
- json$1.isntJson = isntJson;
523
+ json$2.isntJson = isntJson$1;
530
524
 
531
- var url$1 = {};
525
+ var url$2 = {};
532
526
 
533
- url$1.isAbsoluteURL = void 0;
534
- function isAbsoluteURL(str) {
527
+ url$2.isAbsoluteURL = void 0;
528
+ function isAbsoluteURL$1(str) {
535
529
  try {
536
530
  new URL(str);
537
531
  return true;
@@ -540,7 +534,7 @@
540
534
  return false;
541
535
  }
542
536
  }
543
- url$1.isAbsoluteURL = isAbsoluteURL;
537
+ url$2.isAbsoluteURL = isAbsoluteURL$1;
544
538
 
545
539
  (function (exports) {
546
540
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -552,27 +546,27 @@
552
546
  }));
553
547
  var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
554
548
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
555
- };__exportStar(array, exports);
556
- __exportStar(asyncIterable, exports);
557
- __exportStar(bigint, exports);
558
- __exportStar(boolean, exports);
559
- __exportStar(char, exports);
560
- __exportStar(date, exports);
561
- __exportStar(_enum, exports);
562
- __exportStar(error, exports);
563
- __exportStar(falsy, exports);
564
- __exportStar(_function, exports);
565
- __exportStar(iterable, exports);
566
- __exportStar(jsonRpc, exports);
567
- __exportStar(json$1, exports);
568
- __exportStar(_null, exports);
569
- __exportStar(number, exports);
570
- __exportStar(object, exports);
571
- __exportStar(string, exports);
572
- __exportStar(_undefined, exports);
573
- __exportStar(url$1, exports);
574
-
575
- }(es2018$1));
549
+ };__exportStar(array$1, exports);
550
+ __exportStar(asyncIterable$1, exports);
551
+ __exportStar(bigint$1, exports);
552
+ __exportStar(boolean$1, exports);
553
+ __exportStar(char$1, exports);
554
+ __exportStar(date$1, exports);
555
+ __exportStar(_enum$1, exports);
556
+ __exportStar(error$1, exports);
557
+ __exportStar(falsy$1, exports);
558
+ __exportStar(_function$1, exports);
559
+ __exportStar(iterable$1, exports);
560
+ __exportStar(jsonRpc$1, exports);
561
+ __exportStar(json$2, exports);
562
+ __exportStar(_null$1, exports);
563
+ __exportStar(number$1, exports);
564
+ __exportStar(object$1, exports);
565
+ __exportStar(string$1, exports);
566
+ __exportStar(_undefined$1, exports);
567
+ __exportStar(url$2, exports);
568
+
569
+ }(es2018$6));
576
570
 
577
571
  function get(...transformers) {
578
572
  return request('GET', ...transformers);
@@ -593,12 +587,12 @@
593
587
  return request('DELETE', ...transformers);
594
588
  }
595
589
  function request(method, ...transformers) {
596
- const options = transformers.reduce((options, trans) => es2018$1.isFunction(trans) ? trans(options) : options, {
590
+ const options = transformers.reduce((options, trans) => es2018$6.isFunction(trans) ? trans(options) : options, {
597
591
  url: new URL('http://localhost'),
598
- headers: new es2018$2.Headers()
592
+ headers: new es2018$7.Headers()
599
593
  });
600
- const headers = new es2018$2.Headers(options.headers);
601
- return new es2018$2.Request(options.url.href, {
594
+ const headers = new es2018$7.Headers(options.headers);
595
+ return new es2018$7.Request(options.url.href, {
602
596
  method,
603
597
  headers,
604
598
  signal: options.signal,
@@ -607,7 +601,7 @@
607
601
  });
608
602
  }
609
603
 
610
- function url(...urls) {
604
+ function url$1(...urls) {
611
605
  return (options) => {
612
606
  const url = new URL(urls.reduce((acc, cur) => new URL(cur, acc).href));
613
607
  return Object.assign(Object.assign({}, options), { url });
@@ -616,16 +610,16 @@
616
610
 
617
611
  function text(payload) {
618
612
  return (options) => {
619
- const headers = new es2018$2.Headers(options.headers);
613
+ const headers = new es2018$7.Headers(options.headers);
620
614
  headers.set('Content-Type', 'application/x-www-form-urlencoded');
621
615
  return Object.assign(Object.assign({}, options), { headers,
622
616
  payload });
623
617
  };
624
618
  }
625
619
 
626
- function json(payload) {
620
+ function json$1(payload) {
627
621
  return (options) => {
628
- const headers = new es2018$2.Headers(options.headers);
622
+ const headers = new es2018$7.Headers(options.headers);
629
623
  headers.set('Content-Type', 'application/json');
630
624
  return Object.assign(Object.assign({}, options), { headers, payload: JSON.stringify(payload) });
631
625
  };
@@ -644,38 +638,72 @@
644
638
  !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&&(o=t.escapeFormulae);}();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),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);!0===o&&"string"==typeof e&&null!==e.match(/^[=+\-@].*$/)&&(e="'"+e);var i=e.toString().replace(h,a),r="boolean"==typeof n&&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}(i,b.BAD_DELIMITERS)||-1<i.indexOf(m)||" "===i.charAt(0)||" "===i.charAt(i.length-1);return r?s+i+s:i}}};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(){if(c&&h&&(k("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+b.DefaultDelimiter+"'"),h=!1),m.skipEmptyLines)for(var e=0;e<c.data.length;e++)y(c.data[e])&&c.data.splice(e--,1);return _()&&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?'"':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[m+1+y]===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});
645
639
  }(papaparse_min));
646
640
 
647
- var es2018 = {};
641
+ var es2018$5 = {};
642
+
643
+ var customError$1 = {};
644
+
645
+ var es2018$4 = {};
646
+
647
+ var middleware = {};
648
+
649
+ var chunkAsync$1 = {};
650
+
651
+ var es2018$3 = {};
652
+
653
+ var go$1 = {};
654
+
655
+ go$1.go = void 0;
656
+ function go(fn) {
657
+ return fn();
658
+ }
659
+ go$1.go = go;
660
+
661
+ (function (exports) {
662
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
663
+ if (k2 === undefined) k2 = k;
664
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
665
+ }) : (function(o, m, k, k2) {
666
+ if (k2 === undefined) k2 = k;
667
+ o[k2] = m[k];
668
+ }));
669
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
670
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
671
+ };__exportStar(go$1, exports);
672
+
673
+ }(es2018$3));
674
+
675
+ var es2018$2 = {};
648
676
 
649
677
  var customError = {};
650
678
 
651
679
  customError.CustomError = void 0;
652
- class CustomError extends Error {
680
+ class CustomError$1 extends Error {
653
681
  get name() {
654
682
  return this.constructor.name;
655
683
  }
656
684
  }
657
- customError.CustomError = CustomError;
685
+ customError.CustomError = CustomError$1;
658
686
 
659
687
  var expectedError = {};
660
688
 
661
689
  expectedError.ExpectedError = void 0;
662
- const custom_error_1$1 = customError;
663
- class ExpectedError extends custom_error_1$1.CustomError {
690
+ const custom_error_1$2 = customError;
691
+ class ExpectedError extends custom_error_1$2.CustomError {
664
692
  }
665
693
  expectedError.ExpectedError = ExpectedError;
666
694
 
667
- var assertionError = {};
695
+ var assertionError$1 = {};
668
696
 
669
- assertionError.AssertionError = void 0;
670
- const custom_error_1 = customError;
671
- class AssertionError extends custom_error_1.CustomError {
697
+ assertionError$1.AssertionError = void 0;
698
+ const custom_error_1$1 = customError;
699
+ class AssertionError$1 extends custom_error_1$1.CustomError {
672
700
  }
673
- assertionError.AssertionError = AssertionError;
701
+ assertionError$1.AssertionError = AssertionError$1;
674
702
 
675
- var normalize$1 = {};
703
+ var normalize$3 = {};
676
704
 
677
- normalize$1.normalize = void 0;
678
- function normalize(err) {
705
+ normalize$3.normalize = void 0;
706
+ function normalize$2(err) {
679
707
  var _a;
680
708
  return {
681
709
  name: err.name,
@@ -683,7 +711,7 @@
683
711
  stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
684
712
  };
685
713
  }
686
- normalize$1.normalize = normalize;
714
+ normalize$3.normalize = normalize$2;
687
715
 
688
716
  var refute$1 = {};
689
717
 
@@ -695,15 +723,15 @@
695
723
  }
696
724
  refute$1.refute = refute;
697
725
 
698
- var assert$1 = {};
726
+ var assert$3 = {};
699
727
 
700
- assert$1.assert = void 0;
701
- const assertion_error_1 = assertionError;
702
- function assert(condition, message) {
728
+ assert$3.assert = void 0;
729
+ const assertion_error_1$1 = assertionError$1;
730
+ function assert$2(condition, message) {
703
731
  if (!condition)
704
- throw new assertion_error_1.AssertionError(message);
732
+ throw new assertion_error_1$1.AssertionError(message);
705
733
  }
706
- assert$1.assert = assert;
734
+ assert$3.assert = assert$2;
707
735
 
708
736
  (function (exports) {
709
737
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -717,17 +745,2309 @@
717
745
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
718
746
  };__exportStar(customError, exports);
719
747
  __exportStar(expectedError, exports);
720
- __exportStar(assertionError, exports);
721
- __exportStar(normalize$1, exports);
748
+ __exportStar(assertionError$1, exports);
749
+ __exportStar(normalize$3, exports);
722
750
  __exportStar(refute$1, exports);
723
- __exportStar(assert$1, exports);
751
+ __exportStar(assert$3, exports);
724
752
 
725
- }(es2018));
753
+ }(es2018$2));
754
+
755
+ chunkAsync$1.chunkAsync = void 0;
756
+ const go_1$f = es2018$3;
757
+ const errors_1$f = es2018$2;
758
+ function chunkAsync(iterable, size) {
759
+ (0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
760
+ (0, errors_1$f.assert)(size > 0, 'The parameter size must be greater than 0');
761
+ return (0, go_1$f.go)(async function* () {
762
+ let buffer = [];
763
+ for await (const element of iterable) {
764
+ buffer.push(element);
765
+ if (buffer.length >= size) {
766
+ yield buffer;
767
+ buffer = [];
768
+ }
769
+ }
770
+ if (buffer.length)
771
+ yield buffer;
772
+ });
773
+ }
774
+ chunkAsync$1.chunkAsync = chunkAsync;
775
+
776
+ var chunkByAsync$1 = {};
777
+
778
+ var es2018$1 = {};
779
+
780
+ var array = {};
781
+
782
+ array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
783
+ function isArray(val) {
784
+ return Array.isArray(val);
785
+ }
786
+ array.isArray = isArray;
787
+ function isntArray(val) {
788
+ return !isArray(val);
789
+ }
790
+ array.isntArray = isntArray;
791
+ function isEmptyArray(val) {
792
+ return val.length === 0;
793
+ }
794
+ array.isEmptyArray = isEmptyArray;
795
+ function isntEmptyArray(val) {
796
+ return val.length !== 0;
797
+ }
798
+ array.isntEmptyArray = isntEmptyArray;
799
+
800
+ var asyncIterable = {};
801
+
802
+ var _null = {};
803
+
804
+ _null.isntNull = _null.isNull = void 0;
805
+ function isNull(val) {
806
+ return val === null;
807
+ }
808
+ _null.isNull = isNull;
809
+ function isntNull(val) {
810
+ return !isNull(val);
811
+ }
812
+ _null.isntNull = isntNull;
813
+
814
+ var _undefined = {};
815
+
816
+ _undefined.isntUndefined = _undefined.isUndefined = void 0;
817
+ function isUndefined(val) {
818
+ return val === undefined;
819
+ }
820
+ _undefined.isUndefined = isUndefined;
821
+ function isntUndefined(val) {
822
+ return !isUndefined(val);
823
+ }
824
+ _undefined.isntUndefined = isntUndefined;
825
+
826
+ asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
827
+ const null_1$1 = _null;
828
+ const undefined_1$2 = _undefined;
829
+ function isAsyncIterable(val) {
830
+ return (0, null_1$1.isntNull)(val)
831
+ && (0, undefined_1$2.isntUndefined)(val)
832
+ && typeof val[Symbol.asyncIterator] === 'function';
833
+ }
834
+ asyncIterable.isAsyncIterable = isAsyncIterable;
835
+ function isntAsyncIterable(val) {
836
+ return !isAsyncIterable(val);
837
+ }
838
+ asyncIterable.isntAsyncIterable = isntAsyncIterable;
839
+
840
+ var bigint = {};
841
+
842
+ bigint.isntBigInt = bigint.isBigInt = void 0;
843
+ function isBigInt(val) {
844
+ return typeof val === 'bigint';
845
+ }
846
+ bigint.isBigInt = isBigInt;
847
+ function isntBigInt(val) {
848
+ return !isBigInt(val);
849
+ }
850
+ bigint.isntBigInt = isntBigInt;
851
+
852
+ var boolean = {};
853
+
854
+ boolean.isntBoolean = boolean.isBoolean = void 0;
855
+ function isBoolean(val) {
856
+ return typeof val === 'boolean';
857
+ }
858
+ boolean.isBoolean = isBoolean;
859
+ function isntBoolean(val) {
860
+ return !isBoolean(val);
861
+ }
862
+ boolean.isntBoolean = isntBoolean;
863
+
864
+ var char = {};
865
+
866
+ var string = {};
867
+
868
+ string.isntString = string.isString = void 0;
869
+ function isString(val) {
870
+ return typeof val === 'string';
871
+ }
872
+ string.isString = isString;
873
+ function isntString(val) {
874
+ return !isString(val);
875
+ }
876
+ string.isntString = isntString;
877
+
878
+ char.isntChar = char.isChar = void 0;
879
+ const string_1$1 = string;
880
+ function isChar(val) {
881
+ return (0, string_1$1.isString)(val)
882
+ && val.length === 1;
883
+ }
884
+ char.isChar = isChar;
885
+ function isntChar(val) {
886
+ return !isChar(val);
887
+ }
888
+ char.isntChar = isntChar;
889
+
890
+ var date = {};
891
+
892
+ date.isntDate = date.isDate = void 0;
893
+ function isDate(val) {
894
+ return val instanceof Date;
895
+ }
896
+ date.isDate = isDate;
897
+ function isntDate(val) {
898
+ return !isDate(val);
899
+ }
900
+ date.isntDate = isntDate;
901
+
902
+ var _enum = {};
903
+
904
+ _enum.inEnum = void 0;
905
+ function inEnum(val, _enum) {
906
+ return Object.values(_enum).includes(val);
907
+ }
908
+ _enum.inEnum = inEnum;
909
+
910
+ var error = {};
911
+
912
+ error.isntError = error.isError = void 0;
913
+ function isError(val) {
914
+ return val instanceof Error;
915
+ }
916
+ error.isError = isError;
917
+ function isntError(val) {
918
+ return !isError(val);
919
+ }
920
+ error.isntError = isntError;
921
+
922
+ var falsy = {};
923
+
924
+ falsy.isntFalsy = falsy.isFalsy = void 0;
925
+ function isFalsy(val) {
926
+ return !val;
927
+ }
928
+ falsy.isFalsy = isFalsy;
929
+ function isntFalsy(val) {
930
+ return !isFalsy(val);
931
+ }
932
+ falsy.isntFalsy = isntFalsy;
933
+
934
+ var _function = {};
935
+
936
+ _function.isntFunction = _function.isFunction = void 0;
937
+ function isFunction(val) {
938
+ return typeof val === 'function';
939
+ }
940
+ _function.isFunction = isFunction;
941
+ function isntFunction(val) {
942
+ return !isFunction(val);
943
+ }
944
+ _function.isntFunction = isntFunction;
945
+
946
+ var iterable = {};
947
+
948
+ iterable.isntIterable = iterable.isIterable = void 0;
949
+ const null_1 = _null;
950
+ const undefined_1$1 = _undefined;
951
+ function isIterable(val) {
952
+ return (0, null_1.isntNull)(val)
953
+ && (0, undefined_1$1.isntUndefined)(val)
954
+ && typeof val[Symbol.iterator] === 'function';
955
+ }
956
+ iterable.isIterable = isIterable;
957
+ function isntIterable(val) {
958
+ return !isIterable(val);
959
+ }
960
+ iterable.isntIterable = isntIterable;
961
+
962
+ var jsonRpc = {};
963
+
964
+ var object = {};
965
+
966
+ object.isntEmptyObject = object.isEmptyObject = object.isRecord = object.isntObject = object.isObject = void 0;
967
+ function isObject(val) {
968
+ return val !== null && typeof val === 'object';
969
+ }
970
+ object.isObject = isObject;
971
+ function isntObject(val) {
972
+ return !isObject(val);
973
+ }
974
+ object.isntObject = isntObject;
975
+ function isRecord(val) {
976
+ return isObject(val);
977
+ }
978
+ object.isRecord = isRecord;
979
+ function isEmptyObject(val) {
980
+ return Object.keys(val).length === 0;
981
+ }
982
+ object.isEmptyObject = isEmptyObject;
983
+ function isntEmptyObject(val) {
984
+ return Object.keys(val).length !== 0;
985
+ }
986
+ object.isntEmptyObject = isntEmptyObject;
987
+
988
+ var number = {};
989
+
990
+ number.isntNumber = number.isNumber = void 0;
991
+ function isNumber(val) {
992
+ return typeof val === 'number';
993
+ }
994
+ number.isNumber = isNumber;
995
+ function isntNumber(val) {
996
+ return !isNumber(val);
997
+ }
998
+ number.isntNumber = isntNumber;
999
+
1000
+ jsonRpc.isntJsonRpcError = jsonRpc.isJsonRpcError = jsonRpc.isntJsonRpcSuccess = jsonRpc.isJsonRpcSuccess = jsonRpc.isntJsonRpcRequest = jsonRpc.isJsonRpcRequest = jsonRpc.isntJsonRpcNotification = jsonRpc.isJsonRpcNotification = void 0;
1001
+ const array_1 = array;
1002
+ const object_1 = object;
1003
+ const string_1 = string;
1004
+ const number_1 = number;
1005
+ const undefined_1 = _undefined;
1006
+ function isJsonRpcId(val) {
1007
+ return (0, string_1.isString)(val) || (0, number_1.isNumber)(val);
1008
+ }
1009
+ function isJsonRpcParams(val) {
1010
+ return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);
1011
+ }
1012
+ function isJsonRpcNotification(val) {
1013
+ return (0, object_1.isRecord)(val)
1014
+ && (0, string_1.isString)(val.jsonrpc)
1015
+ && (0, string_1.isString)(val.method)
1016
+ && (0, undefined_1.isUndefined)(val.id)
1017
+ && isJsonRpcParams(val.params);
1018
+ }
1019
+ jsonRpc.isJsonRpcNotification = isJsonRpcNotification;
1020
+ function isntJsonRpcNotification(val) {
1021
+ return !isJsonRpcNotification(val);
1022
+ }
1023
+ jsonRpc.isntJsonRpcNotification = isntJsonRpcNotification;
1024
+ function isJsonRpcRequest(val) {
1025
+ return (0, object_1.isRecord)(val)
1026
+ && (0, string_1.isString)(val.jsonrpc)
1027
+ && (0, string_1.isString)(val.method)
1028
+ && isJsonRpcId(val.id)
1029
+ && isJsonRpcParams(val.params);
1030
+ }
1031
+ jsonRpc.isJsonRpcRequest = isJsonRpcRequest;
1032
+ function isntJsonRpcRequest(val) {
1033
+ return !isJsonRpcRequest(val);
1034
+ }
1035
+ jsonRpc.isntJsonRpcRequest = isntJsonRpcRequest;
1036
+ function isJsonRpcSuccess(val) {
1037
+ return (0, object_1.isRecord)(val)
1038
+ && (0, string_1.isString)(val.jsonrpc)
1039
+ && (0, string_1.isString)(val.id)
1040
+ && (0, undefined_1.isntUndefined)(val.result);
1041
+ }
1042
+ jsonRpc.isJsonRpcSuccess = isJsonRpcSuccess;
1043
+ function isntJsonRpcSuccess(val) {
1044
+ return !isJsonRpcSuccess(val);
1045
+ }
1046
+ jsonRpc.isntJsonRpcSuccess = isntJsonRpcSuccess;
1047
+ function isJsonRpcError(val) {
1048
+ return (0, object_1.isRecord)(val)
1049
+ && (0, string_1.isString)(val.jsonrpc)
1050
+ && isJsonRpcId(val.id)
1051
+ && isJsonRpcErrorObject(val.error);
1052
+ }
1053
+ jsonRpc.isJsonRpcError = isJsonRpcError;
1054
+ function isntJsonRpcError(val) {
1055
+ return !isJsonRpcError(val);
1056
+ }
1057
+ jsonRpc.isntJsonRpcError = isntJsonRpcError;
1058
+ function isJsonRpcErrorObject(val) {
1059
+ return (0, object_1.isRecord)(val)
1060
+ && (0, number_1.isNumber)(val.code)
1061
+ && (0, string_1.isString)(val.message)
1062
+ && ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));
1063
+ }
1064
+
1065
+ var json = {};
1066
+
1067
+ json.isntJson = json.isJson = void 0;
1068
+ function isJson(val) {
1069
+ try {
1070
+ JSON.stringify(val);
1071
+ return true;
1072
+ }
1073
+ catch (_a) {
1074
+ return false;
1075
+ }
1076
+ }
1077
+ json.isJson = isJson;
1078
+ function isntJson(val) {
1079
+ return !isntJson();
1080
+ }
1081
+ json.isntJson = isntJson;
1082
+
1083
+ var url = {};
1084
+
1085
+ url.isAbsoluteURL = void 0;
1086
+ function isAbsoluteURL(str) {
1087
+ try {
1088
+ new URL(str);
1089
+ return true;
1090
+ }
1091
+ catch (_a) {
1092
+ return false;
1093
+ }
1094
+ }
1095
+ url.isAbsoluteURL = isAbsoluteURL;
1096
+
1097
+ (function (exports) {
1098
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1099
+ if (k2 === undefined) k2 = k;
1100
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
1101
+ }) : (function(o, m, k, k2) {
1102
+ if (k2 === undefined) k2 = k;
1103
+ o[k2] = m[k];
1104
+ }));
1105
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
1106
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
1107
+ };__exportStar(array, exports);
1108
+ __exportStar(asyncIterable, exports);
1109
+ __exportStar(bigint, exports);
1110
+ __exportStar(boolean, exports);
1111
+ __exportStar(char, exports);
1112
+ __exportStar(date, exports);
1113
+ __exportStar(_enum, exports);
1114
+ __exportStar(error, exports);
1115
+ __exportStar(falsy, exports);
1116
+ __exportStar(_function, exports);
1117
+ __exportStar(iterable, exports);
1118
+ __exportStar(jsonRpc, exports);
1119
+ __exportStar(json, exports);
1120
+ __exportStar(_null, exports);
1121
+ __exportStar(number, exports);
1122
+ __exportStar(object, exports);
1123
+ __exportStar(string, exports);
1124
+ __exportStar(_undefined, exports);
1125
+ __exportStar(url, exports);
1126
+
1127
+ }(es2018$1));
1128
+
1129
+ chunkByAsync$1.chunkByAsync = void 0;
1130
+ const types_1$k = es2018$1;
1131
+ function chunkByAsync(iterable, predicate) {
1132
+ if ((0, types_1$k.isAsyncIterable)(iterable)) {
1133
+ return chunkByAsyncIterable(iterable);
1134
+ }
1135
+ else {
1136
+ return chunkByIterable(iterable);
1137
+ }
1138
+ async function* chunkByAsyncIterable(iterable) {
1139
+ let buffer = [];
1140
+ let index = 0;
1141
+ for await (const element of iterable) {
1142
+ buffer.push(element);
1143
+ if (await predicate(element, index)) {
1144
+ yield buffer;
1145
+ buffer = [];
1146
+ }
1147
+ index++;
1148
+ }
1149
+ if (buffer.length)
1150
+ yield buffer;
1151
+ }
1152
+ async function* chunkByIterable(iterable) {
1153
+ let buffer = [];
1154
+ let index = 0;
1155
+ for (const element of iterable) {
1156
+ buffer.push(element);
1157
+ if (await predicate(element, index)) {
1158
+ yield buffer;
1159
+ buffer = [];
1160
+ }
1161
+ index++;
1162
+ }
1163
+ if (buffer.length)
1164
+ yield buffer;
1165
+ }
1166
+ }
1167
+ chunkByAsync$1.chunkByAsync = chunkByAsync;
1168
+
1169
+ var chunkBy$1 = {};
1170
+
1171
+ chunkBy$1.chunkBy = void 0;
1172
+ function* chunkBy(iterable, predicate) {
1173
+ let buffer = [];
1174
+ let index = 0;
1175
+ for (const element of iterable) {
1176
+ buffer.push(element);
1177
+ if (predicate(element, index)) {
1178
+ yield buffer;
1179
+ buffer = [];
1180
+ }
1181
+ index++;
1182
+ }
1183
+ if (buffer.length)
1184
+ yield buffer;
1185
+ }
1186
+ chunkBy$1.chunkBy = chunkBy;
1187
+
1188
+ var chunk$1 = {};
1189
+
1190
+ chunk$1.chunk = void 0;
1191
+ const go_1$e = es2018$3;
1192
+ const errors_1$e = es2018$2;
1193
+ function chunk(iterable, size) {
1194
+ (0, errors_1$e.assert)(Number.isInteger(size), 'The parameter size must be an integer');
1195
+ (0, errors_1$e.assert)(size > 0, 'The parameter size must be greater than 0');
1196
+ return (0, go_1$e.go)(function* () {
1197
+ let buffer = [];
1198
+ for (const element of iterable) {
1199
+ buffer.push(element);
1200
+ if (buffer.length >= size) {
1201
+ yield buffer;
1202
+ buffer = [];
1203
+ }
1204
+ }
1205
+ if (buffer.length)
1206
+ yield buffer;
1207
+ });
1208
+ }
1209
+ chunk$1.chunk = chunk;
1210
+
1211
+ var concatAsync$1 = {};
1212
+
1213
+ concatAsync$1.concatAsync = void 0;
1214
+ const types_1$j = es2018$1;
1215
+ const go_1$d = es2018$3;
1216
+ function concatAsync(iterable, ...otherIterables) {
1217
+ return (0, go_1$d.go)(async function* () {
1218
+ for (const iter of [iterable, ...otherIterables]) {
1219
+ if ((0, types_1$j.isAsyncIterable)(iter)) {
1220
+ for await (const element of iter) {
1221
+ yield element;
1222
+ }
1223
+ }
1224
+ else {
1225
+ for (const element of iter) {
1226
+ yield element;
1227
+ }
1228
+ }
1229
+ }
1230
+ });
1231
+ }
1232
+ concatAsync$1.concatAsync = concatAsync;
1233
+
1234
+ var concat$1 = {};
1235
+
1236
+ concat$1.concat = void 0;
1237
+ const go_1$c = es2018$3;
1238
+ function concat(iterable, ...otherIterables) {
1239
+ return (0, go_1$c.go)(function* () {
1240
+ for (const iter of [iterable, ...otherIterables]) {
1241
+ yield* iter;
1242
+ }
1243
+ });
1244
+ }
1245
+ concat$1.concat = concat;
1246
+
1247
+ var dropAsync$1 = {};
1248
+
1249
+ var utils = {};
1250
+
1251
+ utils.copyIterable = utils.copyAsyncIterable = void 0;
1252
+ async function* copyAsyncIterable(iterable) {
1253
+ for await (const element of iterable) {
1254
+ yield element;
1255
+ }
1256
+ }
1257
+ utils.copyAsyncIterable = copyAsyncIterable;
1258
+ function* copyIterable(iterable) {
1259
+ for (const element of iterable) {
1260
+ yield element;
1261
+ }
1262
+ }
1263
+ utils.copyIterable = copyIterable;
1264
+
1265
+ dropAsync$1.dropAsync = void 0;
1266
+ const go_1$b = es2018$3;
1267
+ const utils_1$3 = utils;
1268
+ const errors_1$d = es2018$2;
1269
+ function dropAsync(iterable, count) {
1270
+ (0, errors_1$d.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1271
+ (0, errors_1$d.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1272
+ if (count === 0)
1273
+ return (0, utils_1$3.copyAsyncIterable)(iterable);
1274
+ return (0, go_1$b.go)(async function* () {
1275
+ var _a;
1276
+ const iterator = iterable[Symbol.asyncIterator]();
1277
+ let done;
1278
+ try {
1279
+ let value;
1280
+ while ({ value, done } = await iterator.next(), !done) {
1281
+ if (count <= 0)
1282
+ break;
1283
+ count--;
1284
+ }
1285
+ while (!done) {
1286
+ yield value;
1287
+ ({ value, done } = await iterator.next());
1288
+ }
1289
+ }
1290
+ finally {
1291
+ if (!done)
1292
+ await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
1293
+ }
1294
+ });
1295
+ }
1296
+ dropAsync$1.dropAsync = dropAsync;
1297
+
1298
+ var dropRightAsync$1 = {};
1299
+
1300
+ dropRightAsync$1.dropRightAsync = void 0;
1301
+ const go_1$a = es2018$3;
1302
+ const utils_1$2 = utils;
1303
+ const errors_1$c = es2018$2;
1304
+ function dropRightAsync(iterable, count) {
1305
+ (0, errors_1$c.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1306
+ (0, errors_1$c.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1307
+ if (count === 0)
1308
+ return (0, utils_1$2.copyAsyncIterable)(iterable);
1309
+ return (0, go_1$a.go)(async function* () {
1310
+ const arr = await toArrayAsync$2(iterable);
1311
+ const result = arr.slice(0, -count);
1312
+ for (const value of result) {
1313
+ yield value;
1314
+ }
1315
+ });
1316
+ }
1317
+ dropRightAsync$1.dropRightAsync = dropRightAsync;
1318
+ async function toArrayAsync$2(iterable) {
1319
+ const result = [];
1320
+ for await (const element of iterable) {
1321
+ result.push(element);
1322
+ }
1323
+ return result;
1324
+ }
1325
+
1326
+ var dropRight$1 = {};
1327
+
1328
+ dropRight$1.dropRight = void 0;
1329
+ const go_1$9 = es2018$3;
1330
+ const utils_1$1 = utils;
1331
+ const errors_1$b = es2018$2;
1332
+ function dropRight(iterable, count) {
1333
+ (0, errors_1$b.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1334
+ (0, errors_1$b.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1335
+ if (count === 0)
1336
+ return (0, utils_1$1.copyIterable)(iterable);
1337
+ return (0, go_1$9.go)(function* () {
1338
+ const arr = Array.from(iterable);
1339
+ yield* arr.slice(0, -count);
1340
+ });
1341
+ }
1342
+ dropRight$1.dropRight = dropRight;
1343
+
1344
+ var dropUntilAsync$1 = {};
1345
+
1346
+ dropUntilAsync$1.dropUntilAsync = void 0;
1347
+ const types_1$i = es2018$1;
1348
+ function dropUntilAsync(iterable, predicate) {
1349
+ if ((0, types_1$i.isAsyncIterable)(iterable)) {
1350
+ return dropUntilAsyncIterable(iterable);
1351
+ }
1352
+ else {
1353
+ return dropUntilIterable(iterable);
1354
+ }
1355
+ async function* dropUntilAsyncIterable(iterable) {
1356
+ var _a;
1357
+ const iterator = iterable[Symbol.asyncIterator]();
1358
+ let done;
1359
+ try {
1360
+ let index = 0;
1361
+ let value;
1362
+ while ({ value, done } = await iterator.next(), !done) {
1363
+ if (await predicate(value, index++))
1364
+ break;
1365
+ }
1366
+ while (!done) {
1367
+ yield value;
1368
+ ({ value, done } = await iterator.next());
1369
+ }
1370
+ }
1371
+ finally {
1372
+ if (!done)
1373
+ await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
1374
+ }
1375
+ }
1376
+ async function* dropUntilIterable(iterable) {
1377
+ var _a;
1378
+ const iterator = iterable[Symbol.iterator]();
1379
+ let done;
1380
+ try {
1381
+ let index = 0;
1382
+ let value;
1383
+ while ({ value, done } = iterator.next(), !done) {
1384
+ if (await predicate(value, index++))
1385
+ break;
1386
+ }
1387
+ while (!done) {
1388
+ yield value;
1389
+ ({ value, done } = iterator.next());
1390
+ }
1391
+ }
1392
+ finally {
1393
+ if (!done)
1394
+ (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
1395
+ }
1396
+ }
1397
+ }
1398
+ dropUntilAsync$1.dropUntilAsync = dropUntilAsync;
1399
+
1400
+ var dropUntil$1 = {};
1401
+
1402
+ dropUntil$1.dropUntil = void 0;
1403
+ function* dropUntil(iterable, predicate) {
1404
+ var _a;
1405
+ const iterator = iterable[Symbol.iterator]();
1406
+ let done;
1407
+ try {
1408
+ let index = 0;
1409
+ let value;
1410
+ while ({ value, done } = iterator.next(), !done) {
1411
+ if (predicate(value, index++))
1412
+ break;
1413
+ }
1414
+ while (!done) {
1415
+ yield value;
1416
+ ({ value, done } = iterator.next());
1417
+ }
1418
+ }
1419
+ finally {
1420
+ if (!done)
1421
+ (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
1422
+ }
1423
+ }
1424
+ dropUntil$1.dropUntil = dropUntil;
1425
+
1426
+ var drop$1 = {};
1427
+
1428
+ drop$1.drop = void 0;
1429
+ const go_1$8 = es2018$3;
1430
+ const utils_1 = utils;
1431
+ const errors_1$a = es2018$2;
1432
+ function drop(iterable, count) {
1433
+ (0, errors_1$a.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1434
+ (0, errors_1$a.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1435
+ if (count === 0)
1436
+ return (0, utils_1.copyIterable)(iterable);
1437
+ return (0, go_1$8.go)(function* () {
1438
+ var _a;
1439
+ const iterator = iterable[Symbol.iterator]();
1440
+ let done;
1441
+ try {
1442
+ let value;
1443
+ while ({ value, done } = iterator.next(), !done) {
1444
+ if (count <= 0)
1445
+ break;
1446
+ count--;
1447
+ }
1448
+ while (!done) {
1449
+ yield value;
1450
+ ({ value, done } = iterator.next());
1451
+ }
1452
+ }
1453
+ finally {
1454
+ if (!done)
1455
+ (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
1456
+ }
1457
+ });
1458
+ }
1459
+ drop$1.drop = drop;
1460
+
1461
+ var filterAsync$1 = {};
1462
+
1463
+ filterAsync$1.filterAsync = void 0;
1464
+ const types_1$h = es2018$1;
1465
+ function filterAsync(iterable, predicate) {
1466
+ if ((0, types_1$h.isAsyncIterable)(iterable)) {
1467
+ return filterAsyncIterable(iterable);
1468
+ }
1469
+ else {
1470
+ return filterIterable(iterable);
1471
+ }
1472
+ async function* filterAsyncIterable(iterable) {
1473
+ let index = 0;
1474
+ for await (const element of iterable) {
1475
+ if (await predicate(element, index))
1476
+ yield element;
1477
+ index++;
1478
+ }
1479
+ }
1480
+ async function* filterIterable(iterable) {
1481
+ let index = 0;
1482
+ for (const element of iterable) {
1483
+ if (await predicate(element, index))
1484
+ yield element;
1485
+ index++;
1486
+ }
1487
+ }
1488
+ }
1489
+ filterAsync$1.filterAsync = filterAsync;
1490
+
1491
+ var filter$1 = {};
1492
+
1493
+ filter$1.filter = void 0;
1494
+ function* filter(iterable, predicate) {
1495
+ let index = 0;
1496
+ for (const element of iterable) {
1497
+ if (predicate(element, index))
1498
+ yield element;
1499
+ index++;
1500
+ }
1501
+ }
1502
+ filter$1.filter = filter;
1503
+
1504
+ var flattenAsync$1 = {};
1505
+
1506
+ var flattenDeepAsync$1 = {};
1507
+
1508
+ var flattenByAsync$1 = {};
1509
+
1510
+ flattenByAsync$1.flattenByAsync = void 0;
1511
+ const types_1$g = es2018$1;
1512
+ function flattenByAsync(iterable, predicate) {
1513
+ if ((0, types_1$g.isAsyncIterable)(iterable)) {
1514
+ return flattenByAsyncIterable(iterable);
1515
+ }
1516
+ else {
1517
+ return flattenByIterable(iterable);
1518
+ }
1519
+ async function* flattenByAsyncIterable(iterable) {
1520
+ const level = 1;
1521
+ for await (const element of iterable) {
1522
+ if (isFiniteIterable$1(element) && await predicate(element, level)) {
1523
+ yield* flatten(element, level + 1);
1524
+ }
1525
+ else {
1526
+ yield element;
1527
+ }
1528
+ }
1529
+ }
1530
+ function flattenByIterable(iterable) {
1531
+ return flatten(iterable, 1);
1532
+ }
1533
+ async function* flatten(iterable, level) {
1534
+ for (const element of iterable) {
1535
+ if (isFiniteIterable$1(element) && await predicate(element, level)) {
1536
+ yield* flatten(element, level + 1);
1537
+ }
1538
+ else {
1539
+ yield element;
1540
+ }
1541
+ }
1542
+ }
1543
+ }
1544
+ flattenByAsync$1.flattenByAsync = flattenByAsync;
1545
+ function isFiniteIterable$1(val) {
1546
+ return (0, types_1$g.isIterable)(val) && (0, types_1$g.isntChar)(val);
1547
+ }
1548
+
1549
+ flattenDeepAsync$1.flattenDeepAsync = void 0;
1550
+ const flatten_by_async_1 = flattenByAsync$1;
1551
+ const errors_1$9 = es2018$2;
1552
+ function flattenDeepAsync(iterable, depth = Infinity) {
1553
+ (0, errors_1$9.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
1554
+ (0, errors_1$9.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
1555
+ return (0, flatten_by_async_1.flattenByAsync)(iterable, (_, level) => level <= depth);
1556
+ }
1557
+ flattenDeepAsync$1.flattenDeepAsync = flattenDeepAsync;
1558
+
1559
+ flattenAsync$1.flattenAsync = void 0;
1560
+ const flatten_deep_async_1 = flattenDeepAsync$1;
1561
+ function flattenAsync(iterable) {
1562
+ return (0, flatten_deep_async_1.flattenDeepAsync)(iterable, 1);
1563
+ }
1564
+ flattenAsync$1.flattenAsync = flattenAsync;
1565
+
1566
+ var flattenBy$1 = {};
1567
+
1568
+ flattenBy$1.flattenBy = void 0;
1569
+ const types_1$f = es2018$1;
1570
+ function flattenBy(iterable, predicate) {
1571
+ return flatten(iterable, 1);
1572
+ function* flatten(iterable, level) {
1573
+ for (const element of iterable) {
1574
+ if (isFiniteIterable(element) && predicate(element, level)) {
1575
+ yield* flatten(element, level + 1);
1576
+ }
1577
+ else {
1578
+ yield element;
1579
+ }
1580
+ }
1581
+ }
1582
+ }
1583
+ flattenBy$1.flattenBy = flattenBy;
1584
+ function isFiniteIterable(val) {
1585
+ return (0, types_1$f.isIterable)(val) && (0, types_1$f.isntChar)(val);
1586
+ }
1587
+
1588
+ var flattenDeep$1 = {};
1589
+
1590
+ flattenDeep$1.flattenDeep = void 0;
1591
+ const flatten_by_1 = flattenBy$1;
1592
+ const errors_1$8 = es2018$2;
1593
+ function flattenDeep(iterable, depth = Infinity) {
1594
+ (0, errors_1$8.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
1595
+ (0, errors_1$8.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
1596
+ return (0, flatten_by_1.flattenBy)(iterable, (_, level) => level <= depth);
1597
+ }
1598
+ flattenDeep$1.flattenDeep = flattenDeep;
1599
+
1600
+ var flatten$1 = {};
1601
+
1602
+ flatten$1.flatten = void 0;
1603
+ const flatten_deep_1 = flattenDeep$1;
1604
+ function flatten(iterable) {
1605
+ return (0, flatten_deep_1.flattenDeep)(iterable, 1);
1606
+ }
1607
+ flatten$1.flatten = flatten;
1608
+
1609
+ var mapAsync$1 = {};
1610
+
1611
+ mapAsync$1.mapAsync = void 0;
1612
+ const types_1$e = es2018$1;
1613
+ function mapAsync(iterable, fn) {
1614
+ if ((0, types_1$e.isAsyncIterable)(iterable)) {
1615
+ return mapAsyncIterable(iterable);
1616
+ }
1617
+ else {
1618
+ return mapIterable(iterable);
1619
+ }
1620
+ async function* mapAsyncIterable(iterable) {
1621
+ let index = 0;
1622
+ for await (const element of iterable) {
1623
+ yield await fn(element, index);
1624
+ index++;
1625
+ }
1626
+ }
1627
+ async function* mapIterable(iterable) {
1628
+ let index = 0;
1629
+ for (const element of iterable) {
1630
+ yield await fn(element, index);
1631
+ index++;
1632
+ }
1633
+ }
1634
+ }
1635
+ mapAsync$1.mapAsync = mapAsync;
1636
+
1637
+ var map$1 = {};
1638
+
1639
+ map$1.map = void 0;
1640
+ function* map(iterable, fn) {
1641
+ let index = 0;
1642
+ for (const element of iterable) {
1643
+ yield fn(element, index);
1644
+ index++;
1645
+ }
1646
+ }
1647
+ map$1.map = map;
1648
+
1649
+ var repeatAsync$1 = {};
1650
+
1651
+ repeatAsync$1.repeatAsync = void 0;
1652
+ const go_1$7 = es2018$3;
1653
+ const errors_1$7 = es2018$2;
1654
+ function repeatAsync(iterable, times) {
1655
+ (0, errors_1$7.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
1656
+ (0, errors_1$7.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
1657
+ if (times === Infinity)
1658
+ warnInfiniteLoop$1();
1659
+ return (0, go_1$7.go)(async function* () {
1660
+ const cache = [];
1661
+ if (times > 0) {
1662
+ for await (const element of iterable) {
1663
+ yield element;
1664
+ cache.push(element);
1665
+ }
1666
+ times--;
1667
+ }
1668
+ while (times > 0) {
1669
+ yield* cache;
1670
+ times--;
1671
+ }
1672
+ });
1673
+ }
1674
+ repeatAsync$1.repeatAsync = repeatAsync;
1675
+ function warnInfiniteLoop$1() {
1676
+ if (isProduction$1())
1677
+ return;
1678
+ console.warn('When iterable has no elements and times is Infinity, repeat() will be in dead loop');
1679
+ }
1680
+ function isProduction$1() {
1681
+ return process.env.NODE_ENV === 'production';
1682
+ }
1683
+
1684
+ var repeat$1 = {};
1685
+
1686
+ repeat$1.repeat = void 0;
1687
+ const go_1$6 = es2018$3;
1688
+ const errors_1$6 = es2018$2;
1689
+ function repeat(iterable, times) {
1690
+ (0, errors_1$6.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
1691
+ (0, errors_1$6.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
1692
+ if (times === Infinity)
1693
+ warnInfiniteLoop();
1694
+ return (0, go_1$6.go)(function* () {
1695
+ const cache = [];
1696
+ if (times > 0) {
1697
+ for (const element of iterable) {
1698
+ yield element;
1699
+ cache.push(element);
1700
+ }
1701
+ times--;
1702
+ }
1703
+ while (times > 0) {
1704
+ yield* cache;
1705
+ times--;
1706
+ }
1707
+ });
1708
+ }
1709
+ repeat$1.repeat = repeat;
1710
+ function warnInfiniteLoop() {
1711
+ if (isProduction())
1712
+ return;
1713
+ console.warn('When iterable has no elements and times is Infinity, repeat() will be in dead loop');
1714
+ }
1715
+ function isProduction() {
1716
+ return process.env.NODE_ENV === 'production';
1717
+ }
1718
+
1719
+ var sliceAsync$1 = {};
1720
+
1721
+ sliceAsync$1.sliceAsync = void 0;
1722
+ const go_1$5 = es2018$3;
1723
+ const errors_1$5 = es2018$2;
1724
+ function sliceAsync(iterable, start, end = Infinity) {
1725
+ (0, errors_1$5.assert)(Number.isInteger(start), 'The parameter start must be an integer');
1726
+ (0, errors_1$5.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
1727
+ (0, errors_1$5.assert)(Number.isInteger(end), 'The parameter end must be an integer');
1728
+ (0, errors_1$5.assert)(end >= start, 'The parameter end must be greater than or equal to start');
1729
+ return (0, go_1$5.go)(async function* () {
1730
+ let index = 0;
1731
+ for await (const element of iterable) {
1732
+ if (index >= end)
1733
+ break;
1734
+ if (index >= start)
1735
+ yield element;
1736
+ index++;
1737
+ }
1738
+ });
1739
+ }
1740
+ sliceAsync$1.sliceAsync = sliceAsync;
1741
+
1742
+ var slice$1 = {};
1743
+
1744
+ slice$1.slice = void 0;
1745
+ const go_1$4 = es2018$3;
1746
+ const errors_1$4 = es2018$2;
1747
+ function slice(iterable, start, end = Infinity) {
1748
+ (0, errors_1$4.assert)(Number.isInteger(start), 'The parameter start must be an integer');
1749
+ (0, errors_1$4.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
1750
+ (0, errors_1$4.assert)(Number.isInteger(end), 'The parameter end must be an integer');
1751
+ (0, errors_1$4.assert)(end >= start, 'The parameter end must be greater than or equal to start');
1752
+ return (0, go_1$4.go)(function* () {
1753
+ let index = 0;
1754
+ for (const element of iterable) {
1755
+ if (index >= end)
1756
+ break;
1757
+ if (index >= start)
1758
+ yield element;
1759
+ index++;
1760
+ }
1761
+ });
1762
+ }
1763
+ slice$1.slice = slice;
1764
+
1765
+ var splitAsync$1 = {};
1766
+
1767
+ splitAsync$1.splitAsync = void 0;
1768
+ async function* splitAsync(iterable, separator) {
1769
+ let buffer = [];
1770
+ for await (const element of iterable) {
1771
+ if (element === separator) {
1772
+ yield buffer;
1773
+ buffer = [];
1774
+ }
1775
+ else {
1776
+ buffer.push(element);
1777
+ }
1778
+ }
1779
+ yield buffer;
1780
+ }
1781
+ splitAsync$1.splitAsync = splitAsync;
1782
+
1783
+ var splitByAsync$1 = {};
1784
+
1785
+ splitByAsync$1.splitByAsync = void 0;
1786
+ const types_1$d = es2018$1;
1787
+ function splitByAsync(iterable, predicate) {
1788
+ if ((0, types_1$d.isAsyncIterable)(iterable)) {
1789
+ return splitByAsyncIterable(iterable);
1790
+ }
1791
+ else {
1792
+ return splitByIterable(iterable);
1793
+ }
1794
+ async function* splitByIterable(iterable) {
1795
+ let buffer = [];
1796
+ let index = 0;
1797
+ for (const element of iterable) {
1798
+ if (await predicate(element, index)) {
1799
+ yield buffer;
1800
+ buffer = [];
1801
+ }
1802
+ else {
1803
+ buffer.push(element);
1804
+ }
1805
+ index++;
1806
+ }
1807
+ yield buffer;
1808
+ }
1809
+ async function* splitByAsyncIterable(iterable) {
1810
+ let buffer = [];
1811
+ let index = 0;
1812
+ for await (const element of iterable) {
1813
+ if (await predicate(element, index)) {
1814
+ yield buffer;
1815
+ buffer = [];
1816
+ }
1817
+ else {
1818
+ buffer.push(element);
1819
+ }
1820
+ index++;
1821
+ }
1822
+ yield buffer;
1823
+ }
1824
+ }
1825
+ splitByAsync$1.splitByAsync = splitByAsync;
1826
+
1827
+ var splitBy$1 = {};
1828
+
1829
+ splitBy$1.splitBy = void 0;
1830
+ function* splitBy(iterable, predicate) {
1831
+ let buffer = [];
1832
+ let index = 0;
1833
+ for (const element of iterable) {
1834
+ if (predicate(element, index)) {
1835
+ yield buffer;
1836
+ buffer = [];
1837
+ }
1838
+ else {
1839
+ buffer.push(element);
1840
+ }
1841
+ index++;
1842
+ }
1843
+ yield buffer;
1844
+ }
1845
+ splitBy$1.splitBy = splitBy;
1846
+
1847
+ var split$1 = {};
1848
+
1849
+ split$1.split = void 0;
1850
+ function* split(iterable, separator) {
1851
+ let buffer = [];
1852
+ for (const element of iterable) {
1853
+ if (element === separator) {
1854
+ yield buffer;
1855
+ buffer = [];
1856
+ }
1857
+ else {
1858
+ buffer.push(element);
1859
+ }
1860
+ }
1861
+ yield buffer;
1862
+ }
1863
+ split$1.split = split;
1864
+
1865
+ var takeAsync$1 = {};
1866
+
1867
+ takeAsync$1.takeAsync = void 0;
1868
+ const go_1$3 = es2018$3;
1869
+ const errors_1$3 = es2018$2;
1870
+ function takeAsync(iterable, count) {
1871
+ (0, errors_1$3.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1872
+ (0, errors_1$3.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1873
+ return (0, go_1$3.go)(async function* () {
1874
+ if (count === 0)
1875
+ return;
1876
+ for await (const element of iterable) {
1877
+ yield element;
1878
+ count--;
1879
+ if (count === 0)
1880
+ break;
1881
+ }
1882
+ });
1883
+ }
1884
+ takeAsync$1.takeAsync = takeAsync;
1885
+
1886
+ var takeRightAsync$1 = {};
1887
+
1888
+ takeRightAsync$1.takeRightAsync = void 0;
1889
+ const go_1$2 = es2018$3;
1890
+ const errors_1$2 = es2018$2;
1891
+ function takeRightAsync(iterable, count) {
1892
+ (0, errors_1$2.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1893
+ (0, errors_1$2.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1894
+ return (0, go_1$2.go)(async function* () {
1895
+ var _a;
1896
+ const iterator = iterable[Symbol.asyncIterator]();
1897
+ let done;
1898
+ try {
1899
+ const buffer = [];
1900
+ let value;
1901
+ while ({ value, done } = await iterator.next(), !done) {
1902
+ buffer.push(value);
1903
+ if (buffer.length > count)
1904
+ buffer.shift();
1905
+ }
1906
+ yield* buffer;
1907
+ }
1908
+ finally {
1909
+ if (!done)
1910
+ await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
1911
+ }
1912
+ });
1913
+ }
1914
+ takeRightAsync$1.takeRightAsync = takeRightAsync;
1915
+
1916
+ var takeRight$1 = {};
1917
+
1918
+ takeRight$1.takeRight = void 0;
1919
+ const go_1$1 = es2018$3;
1920
+ const errors_1$1 = es2018$2;
1921
+ function takeRight(iterable, count) {
1922
+ (0, errors_1$1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1923
+ (0, errors_1$1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1924
+ return (0, go_1$1.go)(function* () {
1925
+ var _a;
1926
+ const iterator = iterable[Symbol.iterator]();
1927
+ let done;
1928
+ try {
1929
+ const buffer = [];
1930
+ let value;
1931
+ while ({ value, done } = iterator.next(), !done) {
1932
+ buffer.push(value);
1933
+ if (buffer.length > count)
1934
+ buffer.shift();
1935
+ }
1936
+ yield* buffer;
1937
+ }
1938
+ finally {
1939
+ if (!done)
1940
+ (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
1941
+ }
1942
+ });
1943
+ }
1944
+ takeRight$1.takeRight = takeRight;
1945
+
1946
+ var takeUntilAsync$1 = {};
1947
+
1948
+ takeUntilAsync$1.takeUntilAsync = void 0;
1949
+ const types_1$c = es2018$1;
1950
+ function takeUntilAsync(iterable, predicate) {
1951
+ if ((0, types_1$c.isAsyncIterable)(iterable)) {
1952
+ return takeUntilAsyncIterable(iterable);
1953
+ }
1954
+ else {
1955
+ return takeUntilIterable(iterable);
1956
+ }
1957
+ async function* takeUntilAsyncIterable(iterable) {
1958
+ let index = 0;
1959
+ for await (const element of iterable) {
1960
+ if (await predicate(element, index))
1961
+ break;
1962
+ yield element;
1963
+ index++;
1964
+ }
1965
+ }
1966
+ async function* takeUntilIterable(iterable) {
1967
+ let index = 0;
1968
+ for (const element of iterable) {
1969
+ if (await predicate(element, index))
1970
+ break;
1971
+ yield element;
1972
+ index++;
1973
+ }
1974
+ }
1975
+ }
1976
+ takeUntilAsync$1.takeUntilAsync = takeUntilAsync;
1977
+
1978
+ var takeUntil$1 = {};
1979
+
1980
+ takeUntil$1.takeUntil = void 0;
1981
+ function* takeUntil(iterable, predicate) {
1982
+ let index = 0;
1983
+ for (const element of iterable) {
1984
+ if (predicate(element, index))
1985
+ break;
1986
+ yield element;
1987
+ index++;
1988
+ }
1989
+ }
1990
+ takeUntil$1.takeUntil = takeUntil;
1991
+
1992
+ var take$1 = {};
1993
+
1994
+ take$1.take = void 0;
1995
+ const go_1 = es2018$3;
1996
+ const errors_1 = es2018$2;
1997
+ function take(iterable, count) {
1998
+ (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1999
+ (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
2000
+ return (0, go_1.go)(function* () {
2001
+ if (count === 0)
2002
+ return;
2003
+ for (const element of iterable) {
2004
+ yield element;
2005
+ count--;
2006
+ if (count === 0)
2007
+ break;
2008
+ }
2009
+ });
2010
+ }
2011
+ take$1.take = take;
2012
+
2013
+ var tapAsync$1 = {};
2014
+
2015
+ tapAsync$1.tapAsync = void 0;
2016
+ const types_1$b = es2018$1;
2017
+ function tapAsync(iterable, fn) {
2018
+ if ((0, types_1$b.isAsyncIterable)(iterable)) {
2019
+ return tapAsyncIterable(iterable);
2020
+ }
2021
+ else {
2022
+ return tapIterable(iterable);
2023
+ }
2024
+ async function* tapIterable(iterable) {
2025
+ let index = 0;
2026
+ for (const element of iterable) {
2027
+ await fn(element, index);
2028
+ yield element;
2029
+ index++;
2030
+ }
2031
+ }
2032
+ async function* tapAsyncIterable(iterable) {
2033
+ let index = 0;
2034
+ for await (const element of iterable) {
2035
+ await fn(element, index);
2036
+ yield element;
2037
+ index++;
2038
+ }
2039
+ }
2040
+ }
2041
+ tapAsync$1.tapAsync = tapAsync;
2042
+
2043
+ var tap$1 = {};
2044
+
2045
+ tap$1.tap = void 0;
2046
+ function* tap(iterable, fn) {
2047
+ let index = 0;
2048
+ for (const element of iterable) {
2049
+ fn(element, index);
2050
+ yield element;
2051
+ index++;
2052
+ }
2053
+ }
2054
+ tap$1.tap = tap;
2055
+
2056
+ var toAsyncIterable$1 = {};
2057
+
2058
+ toAsyncIterable$1.toAsyncIterable = void 0;
2059
+ async function* toAsyncIterable(iterable) {
2060
+ for (const value of iterable) {
2061
+ yield value;
2062
+ }
2063
+ }
2064
+ toAsyncIterable$1.toAsyncIterable = toAsyncIterable;
2065
+
2066
+ var transformAsync$1 = {};
2067
+
2068
+ transformAsync$1.transformAsync = void 0;
2069
+ async function* transformAsync(iterable, transformer) {
2070
+ yield* transformer(iterable);
2071
+ }
2072
+ transformAsync$1.transformAsync = transformAsync;
2073
+
2074
+ var transform$1 = {};
2075
+
2076
+ transform$1.transform = void 0;
2077
+ function* transform(iterable, transformer) {
2078
+ yield* transformer(iterable);
2079
+ }
2080
+ transform$1.transform = transform;
2081
+
2082
+ var uniqAsync$1 = {};
2083
+
2084
+ uniqAsync$1.uniqAsync = void 0;
2085
+ async function* uniqAsync(iterable) {
2086
+ const bucket = new Set();
2087
+ for await (const element of iterable) {
2088
+ if (!bucket.has(element)) {
2089
+ yield element;
2090
+ bucket.add(element);
2091
+ }
2092
+ }
2093
+ }
2094
+ uniqAsync$1.uniqAsync = uniqAsync;
2095
+
2096
+ var uniqByAsync$1 = {};
2097
+
2098
+ uniqByAsync$1.uniqByAsync = void 0;
2099
+ const types_1$a = es2018$1;
2100
+ function uniqByAsync(iterable, fn) {
2101
+ if ((0, types_1$a.isAsyncIterable)(iterable)) {
2102
+ return uniqByAsyncIterable(iterable);
2103
+ }
2104
+ else {
2105
+ return uniqByIterable(iterable);
2106
+ }
2107
+ async function* uniqByAsyncIterable(iterable) {
2108
+ const bucket = new Set();
2109
+ let index = 0;
2110
+ for await (const element of iterable) {
2111
+ const result = await fn(element, index);
2112
+ if (!bucket.has(result)) {
2113
+ yield element;
2114
+ bucket.add(result);
2115
+ }
2116
+ index++;
2117
+ }
2118
+ }
2119
+ async function* uniqByIterable(iterable) {
2120
+ const bucket = new Set();
2121
+ let index = 0;
2122
+ for (const element of iterable) {
2123
+ const result = await fn(element, index);
2124
+ if (!bucket.has(result)) {
2125
+ yield element;
2126
+ bucket.add(result);
2127
+ }
2128
+ index++;
2129
+ }
2130
+ }
2131
+ }
2132
+ uniqByAsync$1.uniqByAsync = uniqByAsync;
2133
+
2134
+ var uniqBy$1 = {};
2135
+
2136
+ uniqBy$1.uniqBy = void 0;
2137
+ function* uniqBy(iterable, fn) {
2138
+ const bucket = new Set();
2139
+ let index = 0;
2140
+ for (const element of iterable) {
2141
+ const result = fn(element, index);
2142
+ if (!bucket.has(result)) {
2143
+ yield element;
2144
+ bucket.add(result);
2145
+ }
2146
+ index++;
2147
+ }
2148
+ }
2149
+ uniqBy$1.uniqBy = uniqBy;
2150
+
2151
+ var uniq$1 = {};
2152
+
2153
+ uniq$1.uniq = void 0;
2154
+ function* uniq(iterable) {
2155
+ const bucket = new Set();
2156
+ for (const element of iterable) {
2157
+ if (!bucket.has(element)) {
2158
+ yield element;
2159
+ bucket.add(element);
2160
+ }
2161
+ }
2162
+ }
2163
+ uniq$1.uniq = uniq;
2164
+
2165
+ var zipAsync$1 = {};
2166
+
2167
+ zipAsync$1.zipAsync = void 0;
2168
+ const types_1$9 = es2018$1;
2169
+ var Kind;
2170
+ (function (Kind) {
2171
+ Kind[Kind["Sync"] = 0] = "Sync";
2172
+ Kind[Kind["Async"] = 1] = "Async";
2173
+ })(Kind || (Kind = {}));
2174
+ function zipAsync(iterable, ...otherIterables) {
2175
+ return zipWithSize$1(iterable, ...otherIterables);
2176
+ }
2177
+ zipAsync$1.zipAsync = zipAsync;
2178
+ async function* zipWithSize$1(...iterables) {
2179
+ var _a, _b, _c, _d;
2180
+ const length = iterables.length;
2181
+ const iterators = iterables.map(iterable => {
2182
+ if ((0, types_1$9.isAsyncIterable)(iterable)) {
2183
+ return [Kind.Async, iterable[Symbol.asyncIterator]()];
2184
+ }
2185
+ else {
2186
+ return [Kind.Sync, iterable[Symbol.iterator]()];
2187
+ }
2188
+ });
2189
+ const dones = iterators.map(() => false);
2190
+ try {
2191
+ while (true) {
2192
+ const result = new Array(length);
2193
+ for (let i = 0; i < length; i++) {
2194
+ const [kind, iterator] = iterators[i];
2195
+ let temp;
2196
+ if (kind === Kind.Async) {
2197
+ temp = await iterator.next();
2198
+ }
2199
+ else {
2200
+ temp = iterator.next();
2201
+ }
2202
+ if (temp.done) {
2203
+ dones[i] = true;
2204
+ return;
2205
+ }
2206
+ result[i] = temp.value;
2207
+ }
2208
+ yield result;
2209
+ }
2210
+ }
2211
+ finally {
2212
+ const undoneIterators = iterators.filter((_, i) => !dones[i]);
2213
+ for (const [kind, iterator] of undoneIterators) {
2214
+ if (kind === Kind.Async) {
2215
+ await ((_b = (_a = iterator).return) === null || _b === void 0 ? void 0 : _b.call(_a));
2216
+ }
2217
+ else {
2218
+ (_d = (_c = iterator).return) === null || _d === void 0 ? void 0 : _d.call(_c);
2219
+ }
2220
+ }
2221
+ }
2222
+ }
2223
+
2224
+ var zip$1 = {};
2225
+
2226
+ zip$1.zip = void 0;
2227
+ function zip(iterable, ...otherIterables) {
2228
+ return zipWithSize(iterable, ...otherIterables);
2229
+ }
2230
+ zip$1.zip = zip;
2231
+ function* zipWithSize(...iterables) {
2232
+ const length = iterables.length;
2233
+ const iterators = iterables.map(iterable => iterable[Symbol.iterator]());
2234
+ const dones = iterators.map(() => false);
2235
+ try {
2236
+ while (true) {
2237
+ const result = new Array(length);
2238
+ for (let i = 0; i < length; i++) {
2239
+ const { value, done } = iterators[i].next();
2240
+ if (done) {
2241
+ dones[i] = true;
2242
+ return;
2243
+ }
2244
+ result[i] = value;
2245
+ }
2246
+ yield result;
2247
+ }
2248
+ }
2249
+ finally {
2250
+ const undoneIterators = iterators.filter((_, i) => !dones[i]);
2251
+ undoneIterators.forEach(x => { var _a; return (_a = x.return) === null || _a === void 0 ? void 0 : _a.call(x); });
2252
+ }
2253
+ }
2254
+
2255
+ (function (exports) {
2256
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2257
+ if (k2 === undefined) k2 = k;
2258
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
2259
+ }) : (function(o, m, k, k2) {
2260
+ if (k2 === undefined) k2 = k;
2261
+ o[k2] = m[k];
2262
+ }));
2263
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
2264
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2265
+ };__exportStar(chunkAsync$1, exports);
2266
+ __exportStar(chunkByAsync$1, exports);
2267
+ __exportStar(chunkBy$1, exports);
2268
+ __exportStar(chunk$1, exports);
2269
+ __exportStar(concatAsync$1, exports);
2270
+ __exportStar(concat$1, exports);
2271
+ __exportStar(dropAsync$1, exports);
2272
+ __exportStar(dropRightAsync$1, exports);
2273
+ __exportStar(dropRight$1, exports);
2274
+ __exportStar(dropUntilAsync$1, exports);
2275
+ __exportStar(dropUntil$1, exports);
2276
+ __exportStar(drop$1, exports);
2277
+ __exportStar(filterAsync$1, exports);
2278
+ __exportStar(filter$1, exports);
2279
+ __exportStar(flattenAsync$1, exports);
2280
+ __exportStar(flattenByAsync$1, exports);
2281
+ __exportStar(flattenBy$1, exports);
2282
+ __exportStar(flattenDeepAsync$1, exports);
2283
+ __exportStar(flattenDeep$1, exports);
2284
+ __exportStar(flatten$1, exports);
2285
+ __exportStar(mapAsync$1, exports);
2286
+ __exportStar(map$1, exports);
2287
+ __exportStar(repeatAsync$1, exports);
2288
+ __exportStar(repeat$1, exports);
2289
+ __exportStar(sliceAsync$1, exports);
2290
+ __exportStar(slice$1, exports);
2291
+ __exportStar(splitAsync$1, exports);
2292
+ __exportStar(splitByAsync$1, exports);
2293
+ __exportStar(splitBy$1, exports);
2294
+ __exportStar(split$1, exports);
2295
+ __exportStar(takeAsync$1, exports);
2296
+ __exportStar(takeRightAsync$1, exports);
2297
+ __exportStar(takeRight$1, exports);
2298
+ __exportStar(takeUntilAsync$1, exports);
2299
+ __exportStar(takeUntil$1, exports);
2300
+ __exportStar(take$1, exports);
2301
+ __exportStar(tapAsync$1, exports);
2302
+ __exportStar(tap$1, exports);
2303
+ __exportStar(toAsyncIterable$1, exports);
2304
+ __exportStar(transformAsync$1, exports);
2305
+ __exportStar(transform$1, exports);
2306
+ __exportStar(uniqAsync$1, exports);
2307
+ __exportStar(uniqByAsync$1, exports);
2308
+ __exportStar(uniqBy$1, exports);
2309
+ __exportStar(uniq$1, exports);
2310
+ __exportStar(zipAsync$1, exports);
2311
+ __exportStar(zip$1, exports);
2312
+
2313
+ }(middleware));
2314
+
2315
+ var output = {};
2316
+
2317
+ var consume$1 = {};
2318
+
2319
+ consume$1.consume = void 0;
2320
+ function consume(iterable, consumer) {
2321
+ return consumer(iterable);
2322
+ }
2323
+ consume$1.consume = consume;
2324
+
2325
+ var eachAsync$1 = {};
2326
+
2327
+ eachAsync$1.eachAsync = void 0;
2328
+ const types_1$8 = es2018$1;
2329
+ function eachAsync(iterable, fn) {
2330
+ if ((0, types_1$8.isAsyncIterable)(iterable)) {
2331
+ return eachAsyncIterable(iterable);
2332
+ }
2333
+ else {
2334
+ return eachIterable(iterable);
2335
+ }
2336
+ async function eachAsyncIterable(iterable) {
2337
+ let index = 0;
2338
+ for await (const element of iterable) {
2339
+ await fn(element, index);
2340
+ index++;
2341
+ }
2342
+ }
2343
+ async function eachIterable(iterable) {
2344
+ let index = 0;
2345
+ for (const element of iterable) {
2346
+ await fn(element, index);
2347
+ index++;
2348
+ }
2349
+ }
2350
+ }
2351
+ eachAsync$1.eachAsync = eachAsync;
2352
+
2353
+ var each$1 = {};
2354
+
2355
+ each$1.each = void 0;
2356
+ function each(iterable, fn) {
2357
+ let index = 0;
2358
+ for (const element of iterable) {
2359
+ fn(element, index);
2360
+ index++;
2361
+ }
2362
+ }
2363
+ each$1.each = each;
2364
+
2365
+ var everyAsync$1 = {};
2366
+
2367
+ everyAsync$1.everyAsync = void 0;
2368
+ const types_1$7 = es2018$1;
2369
+ function everyAsync(iterable, predicate) {
2370
+ if ((0, types_1$7.isAsyncIterable)(iterable)) {
2371
+ return everyAsyncIterable(iterable);
2372
+ }
2373
+ else {
2374
+ return everyIterable(iterable);
2375
+ }
2376
+ async function everyIterable(iterable) {
2377
+ let index = 0;
2378
+ for (const element of iterable) {
2379
+ if (!await predicate(element, index))
2380
+ return false;
2381
+ index++;
2382
+ }
2383
+ return true;
2384
+ }
2385
+ async function everyAsyncIterable(iterable) {
2386
+ let index = 0;
2387
+ for await (const element of iterable) {
2388
+ if (!await predicate(element, index))
2389
+ return false;
2390
+ index++;
2391
+ }
2392
+ return true;
2393
+ }
2394
+ }
2395
+ everyAsync$1.everyAsync = everyAsync;
2396
+
2397
+ var every$1 = {};
2398
+
2399
+ every$1.every = void 0;
2400
+ function every(iterable, predicate) {
2401
+ let index = 0;
2402
+ for (const element of iterable) {
2403
+ if (!predicate(element, index))
2404
+ return false;
2405
+ index++;
2406
+ }
2407
+ return true;
2408
+ }
2409
+ every$1.every = every;
2410
+
2411
+ var findAsync$1 = {};
2412
+
2413
+ findAsync$1.findAsync = void 0;
2414
+ const types_1$6 = es2018$1;
2415
+ function findAsync(iterable, predicate) {
2416
+ if ((0, types_1$6.isAsyncIterable)(iterable)) {
2417
+ return findAsyncIterable(iterable);
2418
+ }
2419
+ else {
2420
+ return findIterable(iterable);
2421
+ }
2422
+ async function findIterable(iterable) {
2423
+ let index = 0;
2424
+ for (const element of iterable) {
2425
+ if (await predicate(element, index))
2426
+ return element;
2427
+ index++;
2428
+ }
2429
+ return undefined;
2430
+ }
2431
+ async function findAsyncIterable(iterable) {
2432
+ let index = 0;
2433
+ for await (const element of iterable) {
2434
+ if (await predicate(element, index))
2435
+ return element;
2436
+ index++;
2437
+ }
2438
+ return undefined;
2439
+ }
2440
+ }
2441
+ findAsync$1.findAsync = findAsync;
2442
+
2443
+ var find$1 = {};
2444
+
2445
+ find$1.find = void 0;
2446
+ function find(iterable, predicate) {
2447
+ let index = 0;
2448
+ for (const element of iterable) {
2449
+ if (predicate(element, index))
2450
+ return element;
2451
+ index++;
2452
+ }
2453
+ return undefined;
2454
+ }
2455
+ find$1.find = find;
2456
+
2457
+ var firstAsync$1 = {};
2458
+
2459
+ firstAsync$1.firstAsync = void 0;
2460
+ async function firstAsync(iterable) {
2461
+ for await (const element of iterable) {
2462
+ return element;
2463
+ }
2464
+ return undefined;
2465
+ }
2466
+ firstAsync$1.firstAsync = firstAsync;
2467
+
2468
+ var first$1 = {};
2469
+
2470
+ first$1.first = void 0;
2471
+ function first(iterable) {
2472
+ for (const element of iterable) {
2473
+ return element;
2474
+ }
2475
+ return undefined;
2476
+ }
2477
+ first$1.first = first;
2478
+
2479
+ var includesAsync$1 = {};
2480
+
2481
+ includesAsync$1.includesAsync = void 0;
2482
+ async function includesAsync(iterable, value) {
2483
+ for await (const element of iterable) {
2484
+ if (element === value)
2485
+ return true;
2486
+ }
2487
+ return false;
2488
+ }
2489
+ includesAsync$1.includesAsync = includesAsync;
2490
+
2491
+ var includes$1 = {};
2492
+
2493
+ includes$1.includes = void 0;
2494
+ function includes(iterable, value) {
2495
+ for (const element of iterable) {
2496
+ if (element === value)
2497
+ return true;
2498
+ }
2499
+ return false;
2500
+ }
2501
+ includes$1.includes = includes;
2502
+
2503
+ var matchAsync$1 = {};
2504
+
2505
+ matchAsync$1.matchAsync = void 0;
2506
+ async function matchAsync(iterable, sequence) {
2507
+ const sequenceLength = sequence.length;
2508
+ let matchCount = 0;
2509
+ for await (const element of iterable) {
2510
+ if (element === sequence[matchCount])
2511
+ matchCount++;
2512
+ if (matchCount === sequenceLength)
2513
+ return true;
2514
+ }
2515
+ return false;
2516
+ }
2517
+ matchAsync$1.matchAsync = matchAsync;
2518
+
2519
+ var match$1 = {};
2520
+
2521
+ match$1.match = void 0;
2522
+ function match(iterable, sequence) {
2523
+ const sequenceLength = sequence.length;
2524
+ let matchCount = 0;
2525
+ for (const element of iterable) {
2526
+ if (element === sequence[matchCount])
2527
+ matchCount++;
2528
+ if (matchCount === sequenceLength)
2529
+ return true;
2530
+ }
2531
+ return false;
2532
+ }
2533
+ match$1.match = match;
2534
+
2535
+ var reduceAsync$1 = {};
2536
+
2537
+ reduceAsync$1.reduceAsync = void 0;
2538
+ const types_1$5 = es2018$1;
2539
+ function reduceAsync(iterable, fn, initialValue) {
2540
+ if ((0, types_1$5.isUndefined)(initialValue)) {
2541
+ return reduceAsyncWithoutInitialValue(iterable, fn);
2542
+ }
2543
+ else {
2544
+ return reduceAsyncWithInitialValue(iterable, fn, initialValue);
2545
+ }
2546
+ }
2547
+ reduceAsync$1.reduceAsync = reduceAsync;
2548
+ function reduceAsyncWithInitialValue(iterable, fn, initialValue) {
2549
+ if ((0, types_1$5.isAsyncIterable)(iterable)) {
2550
+ return reduceAsyncIterable(iterable);
2551
+ }
2552
+ else {
2553
+ return reduceIterable(iterable);
2554
+ }
2555
+ async function reduceIterable(iterable) {
2556
+ let result = initialValue, index = 0;
2557
+ for (const currentValue of iterable) {
2558
+ result = await fn(result, currentValue, index++);
2559
+ }
2560
+ return result;
2561
+ }
2562
+ async function reduceAsyncIterable(iterable) {
2563
+ let result = initialValue, index = 0;
2564
+ for await (const currentValue of iterable) {
2565
+ result = await fn(result, currentValue, index++);
2566
+ }
2567
+ return result;
2568
+ }
2569
+ }
2570
+ function reduceAsyncWithoutInitialValue(iterable, fn) {
2571
+ if ((0, types_1$5.isAsyncIterable)(iterable)) {
2572
+ return reduceAsyncIterable(iterable);
2573
+ }
2574
+ else {
2575
+ return reduceIterable(iterable);
2576
+ }
2577
+ async function reduceAsyncIterable(iterable) {
2578
+ var _a;
2579
+ const iterator = iterable[Symbol.asyncIterator]();
2580
+ let done;
2581
+ try {
2582
+ let result = await readInitialValue(iterator);
2583
+ let index = 1;
2584
+ let value;
2585
+ while ({ value, done } = await iterator.next(), !done) {
2586
+ result = await fn(result, value, index++);
2587
+ }
2588
+ return result;
2589
+ }
2590
+ finally {
2591
+ if (!done)
2592
+ await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
2593
+ }
2594
+ async function readInitialValue(iterator) {
2595
+ const result = await iterator.next();
2596
+ if (result.done) {
2597
+ done = true;
2598
+ throw new Error('Reduce of empty iterable with no initial value');
2599
+ }
2600
+ return result.value;
2601
+ }
2602
+ }
2603
+ async function reduceIterable(iterable) {
2604
+ var _a;
2605
+ const iterator = iterable[Symbol.iterator]();
2606
+ let done;
2607
+ try {
2608
+ let result = readInitialValue(iterator);
2609
+ let index = 1;
2610
+ let value;
2611
+ while ({ value, done } = iterator.next(), !done) {
2612
+ result = await fn(result, value, index++);
2613
+ }
2614
+ return result;
2615
+ }
2616
+ finally {
2617
+ if (!done)
2618
+ (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
2619
+ }
2620
+ function readInitialValue(iterator) {
2621
+ const result = iterator.next();
2622
+ if (result.done) {
2623
+ done = true;
2624
+ throw new Error('Reduce of empty iterable with no initial value');
2625
+ }
2626
+ return result.value;
2627
+ }
2628
+ }
2629
+ }
2630
+
2631
+ var reduce$1 = {};
2632
+
2633
+ reduce$1.reduce = void 0;
2634
+ const types_1$4 = es2018$1;
2635
+ function reduce(iterable, fn, initialValue) {
2636
+ if ((0, types_1$4.isUndefined)(initialValue)) {
2637
+ return reduceWithoutInitialValue(iterable, fn);
2638
+ }
2639
+ else {
2640
+ return reduceWithInitialValue(iterable, fn, initialValue);
2641
+ }
2642
+ }
2643
+ reduce$1.reduce = reduce;
2644
+ function reduceWithInitialValue(iterable, fn, initialValue) {
2645
+ let result = initialValue, index = 0;
2646
+ for (const currentValue of iterable) {
2647
+ result = fn(result, currentValue, index++);
2648
+ }
2649
+ return result;
2650
+ }
2651
+ function reduceWithoutInitialValue(iterable, fn) {
2652
+ var _a;
2653
+ const iterator = iterable[Symbol.iterator]();
2654
+ let done;
2655
+ try {
2656
+ let result = readInitialValue(iterator);
2657
+ let index = 1;
2658
+ let value;
2659
+ while ({ value, done } = iterator.next(), !done) {
2660
+ result = fn(result, value, index++);
2661
+ }
2662
+ return result;
2663
+ }
2664
+ finally {
2665
+ if (!done)
2666
+ (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
2667
+ }
2668
+ function readInitialValue(iterator) {
2669
+ const result = iterator.next();
2670
+ if (result.done) {
2671
+ done = true;
2672
+ throw new Error('Reduce of empty iterable with no initial value');
2673
+ }
2674
+ return result.value;
2675
+ }
2676
+ }
2677
+
2678
+ var someAsync$1 = {};
2679
+
2680
+ someAsync$1.someAsync = void 0;
2681
+ const types_1$3 = es2018$1;
2682
+ function someAsync(iterable, predicate) {
2683
+ if ((0, types_1$3.isAsyncIterable)(iterable)) {
2684
+ return someAsyncIterable(iterable);
2685
+ }
2686
+ else {
2687
+ return someIterable(iterable);
2688
+ }
2689
+ async function someIterable(iterable) {
2690
+ let index = 0;
2691
+ for (const element of iterable) {
2692
+ if (await predicate(element, index))
2693
+ return true;
2694
+ index++;
2695
+ }
2696
+ return false;
2697
+ }
2698
+ async function someAsyncIterable(iterable) {
2699
+ let index = 0;
2700
+ for await (const element of iterable) {
2701
+ if (await predicate(element, index))
2702
+ return true;
2703
+ index++;
2704
+ }
2705
+ return false;
2706
+ }
2707
+ }
2708
+ someAsync$1.someAsync = someAsync;
2709
+
2710
+ var some$1 = {};
2711
+
2712
+ some$1.some = void 0;
2713
+ function some(iterable, predicate) {
2714
+ let index = 0;
2715
+ for (const element of iterable) {
2716
+ if (predicate(element, index))
2717
+ return true;
2718
+ index++;
2719
+ }
2720
+ return false;
2721
+ }
2722
+ some$1.some = some;
2723
+
2724
+ var lastAsync$1 = {};
2725
+
2726
+ lastAsync$1.lastAsync = void 0;
2727
+ async function lastAsync(iterable) {
2728
+ var _a;
2729
+ const iterator = iterable[Symbol.asyncIterator]();
2730
+ let done;
2731
+ try {
2732
+ let value;
2733
+ let result;
2734
+ while ({ value, done } = await iterator.next(), !done) {
2735
+ result = value;
2736
+ }
2737
+ return result;
2738
+ }
2739
+ finally {
2740
+ if (!done)
2741
+ await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
2742
+ }
2743
+ }
2744
+ lastAsync$1.lastAsync = lastAsync;
2745
+
2746
+ var last$1 = {};
2747
+
2748
+ last$1.last = void 0;
2749
+ function last(iterable) {
2750
+ var _a;
2751
+ const iterator = iterable[Symbol.iterator]();
2752
+ let done;
2753
+ try {
2754
+ let value;
2755
+ let result;
2756
+ while ({ value, done } = iterator.next(), !done) {
2757
+ result = value;
2758
+ }
2759
+ return result;
2760
+ }
2761
+ finally {
2762
+ if (!done)
2763
+ (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
2764
+ }
2765
+ }
2766
+ last$1.last = last;
2767
+
2768
+ var toArrayAsync$1 = {};
2769
+
2770
+ toArrayAsync$1.toArrayAsync = void 0;
2771
+ const consume_1$3 = consume$1;
2772
+ function toArrayAsync(iterable) {
2773
+ return (0, consume_1$3.consume)(iterable, async (iterable) => {
2774
+ const result = [];
2775
+ for await (const element of iterable) {
2776
+ result.push(element);
2777
+ }
2778
+ return result;
2779
+ });
2780
+ }
2781
+ toArrayAsync$1.toArrayAsync = toArrayAsync;
2782
+
2783
+ var toArray$1 = {};
2784
+
2785
+ toArray$1.toArray = void 0;
2786
+ const consume_1$2 = consume$1;
2787
+ function toArray(iterable) {
2788
+ return (0, consume_1$2.consume)(iterable, iterable => Array.from(iterable));
2789
+ }
2790
+ toArray$1.toArray = toArray;
2791
+
2792
+ var toSetAsync$1 = {};
2793
+
2794
+ toSetAsync$1.toSetAsync = void 0;
2795
+ const consume_1$1 = consume$1;
2796
+ function toSetAsync(iterable) {
2797
+ return (0, consume_1$1.consume)(iterable, async (iterable) => {
2798
+ const result = new Set();
2799
+ for await (const element of iterable) {
2800
+ result.add(element);
2801
+ }
2802
+ return result;
2803
+ });
2804
+ }
2805
+ toSetAsync$1.toSetAsync = toSetAsync;
2806
+
2807
+ var toSet$1 = {};
2808
+
2809
+ toSet$1.toSet = void 0;
2810
+ const consume_1 = consume$1;
2811
+ function toSet(iterable) {
2812
+ return (0, consume_1.consume)(iterable, iterable => new Set(iterable));
2813
+ }
2814
+ toSet$1.toSet = toSet;
2815
+
2816
+ (function (exports) {
2817
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2818
+ if (k2 === undefined) k2 = k;
2819
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
2820
+ }) : (function(o, m, k, k2) {
2821
+ if (k2 === undefined) k2 = k;
2822
+ o[k2] = m[k];
2823
+ }));
2824
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
2825
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2826
+ };__exportStar(consume$1, exports);
2827
+ __exportStar(eachAsync$1, exports);
2828
+ __exportStar(each$1, exports);
2829
+ __exportStar(everyAsync$1, exports);
2830
+ __exportStar(every$1, exports);
2831
+ __exportStar(findAsync$1, exports);
2832
+ __exportStar(find$1, exports);
2833
+ __exportStar(firstAsync$1, exports);
2834
+ __exportStar(first$1, exports);
2835
+ __exportStar(includesAsync$1, exports);
2836
+ __exportStar(includes$1, exports);
2837
+ __exportStar(matchAsync$1, exports);
2838
+ __exportStar(match$1, exports);
2839
+ __exportStar(reduceAsync$1, exports);
2840
+ __exportStar(reduce$1, exports);
2841
+ __exportStar(someAsync$1, exports);
2842
+ __exportStar(some$1, exports);
2843
+ __exportStar(lastAsync$1, exports);
2844
+ __exportStar(last$1, exports);
2845
+ __exportStar(toArrayAsync$1, exports);
2846
+ __exportStar(toArray$1, exports);
2847
+ __exportStar(toSetAsync$1, exports);
2848
+ __exportStar(toSet$1, exports);
2849
+
2850
+ }(output));
2851
+
2852
+ (function (exports) {
2853
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2854
+ if (k2 === undefined) k2 = k;
2855
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
2856
+ }) : (function(o, m, k, k2) {
2857
+ if (k2 === undefined) k2 = k;
2858
+ o[k2] = m[k];
2859
+ }));
2860
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
2861
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2862
+ };__exportStar(middleware, exports);
2863
+ __exportStar(output, exports);
2864
+
2865
+ }(es2018$4));
2866
+
2867
+ var getErrorNames$1 = {};
2868
+
2869
+ var traverseErrorPrototypeChain$1 = {};
2870
+
2871
+ traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = void 0;
2872
+ function* traverseErrorPrototypeChain(err) {
2873
+ let current = err;
2874
+ while ((current = Object.getPrototypeOf(current))) {
2875
+ yield current;
2876
+ if (current === Error.prototype)
2877
+ break;
2878
+ }
2879
+ }
2880
+ traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = traverseErrorPrototypeChain;
2881
+
2882
+ getErrorNames$1.getErrorNames = void 0;
2883
+ const types_1$2 = es2018$6;
2884
+ const traverse_error_prototype_chain_1 = traverseErrorPrototypeChain$1;
2885
+ function* getErrorNames(err) {
2886
+ var _a;
2887
+ if ((0, types_1$2.isError)(err)) {
2888
+ for (const prototype of (0, traverse_error_prototype_chain_1.traverseErrorPrototypeChain)(err)) {
2889
+ if ((_a = prototype.constructor) === null || _a === void 0 ? void 0 : _a.name) {
2890
+ yield prototype.constructor.name;
2891
+ }
2892
+ }
2893
+ }
2894
+ else {
2895
+ yield err.name;
2896
+ yield* err.ancestors;
2897
+ }
2898
+ }
2899
+ getErrorNames$1.getErrorNames = getErrorNames;
2900
+
2901
+ var serializableError = {};
2902
+
2903
+ serializableError.isSerializableError = void 0;
2904
+ const types_1$1 = es2018$6;
2905
+ function isSerializableError(val) {
2906
+ return (0, types_1$1.isObject)(val)
2907
+ && (0, types_1$1.isString)(val.name)
2908
+ && (0, types_1$1.isString)(val.message)
2909
+ && ((0, types_1$1.isString)(val.stack) || (0, types_1$1.isNull)(val.stack))
2910
+ && ((0, types_1$1.isArray)(val.ancestors) && val.ancestors.every(types_1$1.isString));
2911
+ }
2912
+ serializableError.isSerializableError = isSerializableError;
2913
+
2914
+ customError$1.CustomError = void 0;
2915
+ const iterable_operator_1$1 = es2018$4;
2916
+ const get_error_names_1$1 = getErrorNames$1;
2917
+ const types_1 = es2018$6;
2918
+ const serializable_error_1 = serializableError;
2919
+ class CustomError extends Error {
2920
+ get name() {
2921
+ var _a, _b;
2922
+ return (_b = (_a = (0, iterable_operator_1$1.first)((0, get_error_names_1$1.getErrorNames)(this))) !== null && _a !== void 0 ? _a : CustomError.name) !== null && _b !== void 0 ? _b : 'CustomError';
2923
+ }
2924
+ static [Symbol.hasInstance](instance) {
2925
+ var _a;
2926
+ if ((0, types_1.isError)(instance) || (0, serializable_error_1.isSerializableError)(instance)) {
2927
+ const reversedClassNames = [
2928
+ (_a = this.prototype.constructor.name) !== null && _a !== void 0 ? _a : this.name,
2929
+ ...(0, get_error_names_1$1.getErrorNames)(this.prototype)
2930
+ ].reverse();
2931
+ const reversedInstanceNames = (0, iterable_operator_1$1.toArray)((0, get_error_names_1$1.getErrorNames)(instance)).reverse();
2932
+ return reversedClassNames.every((x, i) => x === reversedInstanceNames[i]);
2933
+ }
2934
+ else {
2935
+ return false;
2936
+ }
2937
+ }
2938
+ }
2939
+ customError$1.CustomError = CustomError;
2940
+
2941
+ var assertionError = {};
2942
+
2943
+ assertionError.AssertionError = void 0;
2944
+ const custom_error_1 = customError$1;
2945
+ class AssertionError extends custom_error_1.CustomError {
2946
+ }
2947
+ assertionError.AssertionError = AssertionError;
2948
+
2949
+ var normalize$1 = {};
2950
+
2951
+ normalize$1.normalize = void 0;
2952
+ const get_error_names_1 = getErrorNames$1;
2953
+ const iterable_operator_1 = es2018$4;
2954
+ function normalize(err) {
2955
+ var _a;
2956
+ const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
2957
+ return {
2958
+ name,
2959
+ ancestors,
2960
+ message: err.message,
2961
+ stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
2962
+ };
2963
+ }
2964
+ normalize$1.normalize = normalize;
2965
+
2966
+ var hydrate$1 = {};
2967
+
2968
+ var es2018 = {};
2969
+
2970
+ var pass$1 = {};
2971
+
2972
+ pass$1.pass = void 0;
2973
+ function pass() { }
2974
+ pass$1.pass = pass;
2975
+
2976
+ (function (exports) {
2977
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2978
+ if (k2 === undefined) k2 = k;
2979
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
2980
+ }) : (function(o, m, k, k2) {
2981
+ if (k2 === undefined) k2 = k;
2982
+ o[k2] = m[k];
2983
+ }));
2984
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
2985
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2986
+ };__exportStar(pass$1, exports);
2987
+
2988
+ }(es2018));
2989
+
2990
+ hydrate$1.hydrate = void 0;
2991
+ const pass_1 = es2018;
2992
+ function hydrate(err) {
2993
+ var _a;
2994
+ const errorNames = [err.name, ...err.ancestors]
2995
+ .slice(0, -1)
2996
+ .reverse();
2997
+ let errorConstructor = Error;
2998
+ for (const name of errorNames) {
2999
+ errorConstructor = createChildErrorConstructor(errorConstructor, name);
3000
+ }
3001
+ const result = new errorConstructor();
3002
+ result.name = err.name;
3003
+ result.message = err.message;
3004
+ result.stack = (_a = err.stack) !== null && _a !== void 0 ? _a : undefined;
3005
+ return result;
3006
+ }
3007
+ hydrate$1.hydrate = hydrate;
3008
+ function createChildErrorConstructor(parentErrorConstructor, name) {
3009
+ const constructor = function () { (0, pass_1.pass)(); };
3010
+ constructor.prototype = Object.create(parentErrorConstructor.prototype);
3011
+ constructor.prototype.constructor = constructor;
3012
+ Object.defineProperty(constructor, 'name', { value: name });
3013
+ return constructor;
3014
+ }
3015
+
3016
+ var assert$1 = {};
3017
+
3018
+ assert$1.assert = void 0;
3019
+ const assertion_error_1 = assertionError;
3020
+ function assert(condition, message) {
3021
+ if (!condition)
3022
+ throw new assertion_error_1.AssertionError(message);
3023
+ }
3024
+ assert$1.assert = assert;
3025
+
3026
+ (function (exports) {
3027
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3028
+ if (k2 === undefined) k2 = k;
3029
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
3030
+ }) : (function(o, m, k, k2) {
3031
+ if (k2 === undefined) k2 = k;
3032
+ o[k2] = m[k];
3033
+ }));
3034
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3035
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3036
+ };__exportStar(customError$1, exports);
3037
+ __exportStar(assertionError, exports);
3038
+ __exportStar(serializableError, exports);
3039
+ __exportStar(normalize$1, exports);
3040
+ __exportStar(hydrate$1, exports);
3041
+ __exportStar(assert$1, exports);
3042
+ __exportStar(getErrorNames$1, exports);
3043
+ __exportStar(traverseErrorPrototypeChain$1, exports);
3044
+
3045
+ }(es2018$5));
726
3046
 
727
3047
  function csv(payload) {
728
- es2018.assert(payload.length > 0, 'payload must be a non-empty array');
3048
+ es2018$5.assert(payload.length > 0, 'payload must be a non-empty array');
729
3049
  return (options) => {
730
- const headers = new es2018$2.Headers(options.headers);
3050
+ const headers = new es2018$7.Headers(options.headers);
731
3051
  headers.set('Content-Type', 'text/csv');
732
3052
  return Object.assign(Object.assign({}, options), { headers, payload: stringify(payload) });
733
3053
  };
@@ -745,7 +3065,7 @@
745
3065
 
746
3066
  function header(name, value) {
747
3067
  return (options) => {
748
- const headers = new es2018$2.Headers(options.headers);
3068
+ const headers = new es2018$7.Headers(options.headers);
749
3069
  headers.set(name, value);
750
3070
  return Object.assign(Object.assign({}, options), { headers });
751
3071
  };
@@ -753,7 +3073,7 @@
753
3073
 
754
3074
  function appendHeader(name, value) {
755
3075
  return (options) => {
756
- const headers = new es2018$2.Headers(options.headers);
3076
+ const headers = new es2018$7.Headers(options.headers);
757
3077
  headers.append(name, value);
758
3078
  return Object.assign(Object.assign({}, options), { headers });
759
3079
  };
@@ -761,7 +3081,7 @@
761
3081
 
762
3082
  function headers(headers) {
763
3083
  return (options) => {
764
- const newHeaders = new es2018$2.Headers(options.headers);
3084
+ const newHeaders = new es2018$7.Headers(options.headers);
765
3085
  for (const [name, value] of Object.entries(headers)) {
766
3086
  newHeaders.set(name, value);
767
3087
  }
@@ -839,10 +3159,10 @@
839
3159
 
840
3160
  function formDataField(name, value) {
841
3161
  return (options) => {
842
- const formData = options.payload instanceof es2018$2.FormData
3162
+ const formData = options.payload instanceof es2018$7.FormData
843
3163
  ? cloneFormData(options.payload)
844
- : new es2018$2.FormData();
845
- if (es2018$1.isArray(value)) {
3164
+ : new es2018$7.FormData();
3165
+ if (es2018$6.isArray(value)) {
846
3166
  value.forEach(x => formData.append(name, x));
847
3167
  }
848
3168
  else {
@@ -852,7 +3172,7 @@
852
3172
  };
853
3173
  }
854
3174
  function cloneFormData(formData) {
855
- const result = new es2018$2.FormData();
3175
+ const result = new es2018$7.FormData();
856
3176
  for (const [name, value] of formData.entries()) {
857
3177
  result.append(name, value);
858
3178
  }
@@ -941,7 +3261,7 @@
941
3261
  exports.header = header;
942
3262
  exports.headers = headers;
943
3263
  exports.host = host;
944
- exports.json = json;
3264
+ exports.json = json$1;
945
3265
  exports.keepalive = keepalive;
946
3266
  exports.patch = patch;
947
3267
  exports.pathname = pathname;
@@ -953,7 +3273,7 @@
953
3273
  exports.searchParams = searchParams;
954
3274
  exports.signal = signal;
955
3275
  exports.text = text;
956
- exports.url = url;
3276
+ exports.url = url$1;
957
3277
 
958
3278
  Object.defineProperty(exports, '__esModule', { value: true });
959
3279