extra-request 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es2015/index.min.mjs +3 -3
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +598 -927
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +599 -928
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +3 -3
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +3 -3
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +606 -935
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +607 -936
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +3 -3
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/browser.js +5 -1
- package/lib/es2015/browser.js.map +1 -1
- package/lib/es2015/index.js +5 -1
- package/lib/es2015/index.js.map +1 -1
- package/lib/es2015/transformers/index.js +5 -1
- package/lib/es2015/transformers/index.js.map +1 -1
- package/lib/es2018/browser.js +5 -1
- package/lib/es2018/browser.js.map +1 -1
- package/lib/es2018/index.js +5 -1
- package/lib/es2018/index.js.map +1 -1
- package/lib/es2018/transformers/index.js +5 -1
- package/lib/es2018/transformers/index.js.map +1 -1
- package/package.json +5 -5
package/dist/es2018/index.umd.js
CHANGED
|
@@ -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$
|
|
9
|
+
var es2018$5 = {};
|
|
10
10
|
|
|
11
11
|
var fetch_browser = {};
|
|
12
12
|
|
|
@@ -51,7 +51,11 @@
|
|
|
51
51
|
(function (exports) {
|
|
52
52
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
53
53
|
if (k2 === undefined) k2 = k;
|
|
54
|
-
Object.
|
|
54
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
55
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
56
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
57
|
+
}
|
|
58
|
+
Object.defineProperty(o, k2, desc);
|
|
55
59
|
}) : (function(o, m, k, k2) {
|
|
56
60
|
if (k2 === undefined) k2 = k;
|
|
57
61
|
o[k2] = m[k];
|
|
@@ -67,227 +71,333 @@
|
|
|
67
71
|
__exportStar(blob_browser, exports);
|
|
68
72
|
__exportStar(eventSource_browser, exports);
|
|
69
73
|
|
|
70
|
-
}(es2018$
|
|
74
|
+
}(es2018$5));
|
|
71
75
|
|
|
72
|
-
var es2018$
|
|
76
|
+
var es2018$4 = {};
|
|
73
77
|
|
|
74
|
-
var array
|
|
78
|
+
var array = {};
|
|
75
79
|
|
|
76
|
-
array
|
|
77
|
-
function isArray
|
|
80
|
+
array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
|
|
81
|
+
function isArray(val) {
|
|
78
82
|
return Array.isArray(val);
|
|
79
83
|
}
|
|
80
|
-
array
|
|
81
|
-
function isntArray
|
|
82
|
-
return !isArray
|
|
84
|
+
array.isArray = isArray;
|
|
85
|
+
function isntArray(val) {
|
|
86
|
+
return !isArray(val);
|
|
83
87
|
}
|
|
84
|
-
array
|
|
85
|
-
function isEmptyArray
|
|
88
|
+
array.isntArray = isntArray;
|
|
89
|
+
function isEmptyArray(val) {
|
|
86
90
|
return val.length === 0;
|
|
87
91
|
}
|
|
88
|
-
array
|
|
89
|
-
function isntEmptyArray
|
|
92
|
+
array.isEmptyArray = isEmptyArray;
|
|
93
|
+
function isntEmptyArray(val) {
|
|
90
94
|
return val.length !== 0;
|
|
91
95
|
}
|
|
92
|
-
array
|
|
96
|
+
array.isntEmptyArray = isntEmptyArray;
|
|
93
97
|
|
|
94
|
-
var asyncIterable
|
|
98
|
+
var asyncIterable = {};
|
|
95
99
|
|
|
96
|
-
var _null
|
|
100
|
+
var _null = {};
|
|
97
101
|
|
|
98
|
-
_null
|
|
99
|
-
function isNull
|
|
102
|
+
_null.isntNull = _null.isNull = void 0;
|
|
103
|
+
function isNull(val) {
|
|
100
104
|
return val === null;
|
|
101
105
|
}
|
|
102
|
-
_null
|
|
103
|
-
function isntNull
|
|
104
|
-
return !isNull
|
|
106
|
+
_null.isNull = isNull;
|
|
107
|
+
function isntNull(val) {
|
|
108
|
+
return !isNull(val);
|
|
105
109
|
}
|
|
106
|
-
_null
|
|
110
|
+
_null.isntNull = isntNull;
|
|
107
111
|
|
|
108
|
-
var _undefined
|
|
112
|
+
var _undefined = {};
|
|
109
113
|
|
|
110
|
-
_undefined
|
|
111
|
-
function isUndefined
|
|
114
|
+
_undefined.isntUndefined = _undefined.isUndefined = void 0;
|
|
115
|
+
function isUndefined(val) {
|
|
112
116
|
return val === undefined;
|
|
113
117
|
}
|
|
114
|
-
_undefined
|
|
115
|
-
function isntUndefined
|
|
116
|
-
return !isUndefined
|
|
118
|
+
_undefined.isUndefined = isUndefined;
|
|
119
|
+
function isntUndefined(val) {
|
|
120
|
+
return !isUndefined(val);
|
|
121
|
+
}
|
|
122
|
+
_undefined.isntUndefined = isntUndefined;
|
|
123
|
+
|
|
124
|
+
var _function = {};
|
|
125
|
+
|
|
126
|
+
_function.isntFunction = _function.isFunction = void 0;
|
|
127
|
+
function isFunction(val) {
|
|
128
|
+
return typeof val === 'function';
|
|
129
|
+
}
|
|
130
|
+
_function.isFunction = isFunction;
|
|
131
|
+
function isntFunction(val) {
|
|
132
|
+
return !isFunction(val);
|
|
117
133
|
}
|
|
118
|
-
|
|
134
|
+
_function.isntFunction = isntFunction;
|
|
119
135
|
|
|
120
|
-
asyncIterable
|
|
121
|
-
const null_1$
|
|
122
|
-
const undefined_1$
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
&&
|
|
136
|
+
asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
|
|
137
|
+
const null_1$2 = _null;
|
|
138
|
+
const undefined_1$1 = _undefined;
|
|
139
|
+
const function_1$2 = _function;
|
|
140
|
+
function isAsyncIterable(val) {
|
|
141
|
+
return (0, null_1$2.isntNull)(val)
|
|
142
|
+
&& (0, undefined_1$1.isntUndefined)(val)
|
|
143
|
+
&& (0, function_1$2.isFunction)(val[Symbol.asyncIterator]);
|
|
127
144
|
}
|
|
128
|
-
asyncIterable
|
|
129
|
-
function isntAsyncIterable
|
|
130
|
-
return !isAsyncIterable
|
|
145
|
+
asyncIterable.isAsyncIterable = isAsyncIterable;
|
|
146
|
+
function isntAsyncIterable(val) {
|
|
147
|
+
return !isAsyncIterable(val);
|
|
131
148
|
}
|
|
132
|
-
asyncIterable
|
|
149
|
+
asyncIterable.isntAsyncIterable = isntAsyncIterable;
|
|
133
150
|
|
|
134
|
-
var bigint
|
|
151
|
+
var bigint = {};
|
|
135
152
|
|
|
136
|
-
bigint
|
|
137
|
-
function isBigInt
|
|
153
|
+
bigint.isntBigInt = bigint.isBigInt = void 0;
|
|
154
|
+
function isBigInt(val) {
|
|
138
155
|
return typeof val === 'bigint';
|
|
139
156
|
}
|
|
140
|
-
bigint
|
|
141
|
-
function isntBigInt
|
|
142
|
-
return !isBigInt
|
|
157
|
+
bigint.isBigInt = isBigInt;
|
|
158
|
+
function isntBigInt(val) {
|
|
159
|
+
return !isBigInt(val);
|
|
143
160
|
}
|
|
144
|
-
bigint
|
|
161
|
+
bigint.isntBigInt = isntBigInt;
|
|
145
162
|
|
|
146
|
-
var boolean
|
|
163
|
+
var boolean = {};
|
|
147
164
|
|
|
148
|
-
boolean
|
|
149
|
-
function isBoolean
|
|
165
|
+
boolean.isntBoolean = boolean.isBoolean = void 0;
|
|
166
|
+
function isBoolean(val) {
|
|
150
167
|
return typeof val === 'boolean';
|
|
151
168
|
}
|
|
152
|
-
boolean
|
|
153
|
-
function isntBoolean
|
|
154
|
-
return !isBoolean
|
|
169
|
+
boolean.isBoolean = isBoolean;
|
|
170
|
+
function isntBoolean(val) {
|
|
171
|
+
return !isBoolean(val);
|
|
155
172
|
}
|
|
156
|
-
boolean
|
|
173
|
+
boolean.isntBoolean = isntBoolean;
|
|
157
174
|
|
|
158
|
-
var char
|
|
175
|
+
var char = {};
|
|
159
176
|
|
|
160
|
-
var string
|
|
177
|
+
var string = {};
|
|
161
178
|
|
|
162
|
-
string
|
|
163
|
-
function isString
|
|
179
|
+
string.isntString = string.isString = void 0;
|
|
180
|
+
function isString(val) {
|
|
164
181
|
return typeof val === 'string';
|
|
165
182
|
}
|
|
166
|
-
string
|
|
167
|
-
function isntString
|
|
168
|
-
return !isString
|
|
183
|
+
string.isString = isString;
|
|
184
|
+
function isntString(val) {
|
|
185
|
+
return !isString(val);
|
|
169
186
|
}
|
|
170
|
-
string
|
|
187
|
+
string.isntString = isntString;
|
|
171
188
|
|
|
172
|
-
char
|
|
173
|
-
const string_1$
|
|
174
|
-
function isChar
|
|
175
|
-
return (0, string_1$
|
|
189
|
+
char.isntChar = char.isChar = void 0;
|
|
190
|
+
const string_1$1 = string;
|
|
191
|
+
function isChar(val) {
|
|
192
|
+
return (0, string_1$1.isString)(val)
|
|
176
193
|
&& val.length === 1;
|
|
177
194
|
}
|
|
178
|
-
char
|
|
179
|
-
function isntChar
|
|
180
|
-
return !isChar
|
|
195
|
+
char.isChar = isChar;
|
|
196
|
+
function isntChar(val) {
|
|
197
|
+
return !isChar(val);
|
|
181
198
|
}
|
|
182
|
-
char
|
|
199
|
+
char.isntChar = isntChar;
|
|
183
200
|
|
|
184
|
-
var date
|
|
201
|
+
var date = {};
|
|
185
202
|
|
|
186
|
-
date
|
|
187
|
-
function isDate
|
|
203
|
+
date.isntDate = date.isDate = void 0;
|
|
204
|
+
function isDate(val) {
|
|
188
205
|
return val instanceof Date;
|
|
189
206
|
}
|
|
190
|
-
date
|
|
191
|
-
function isntDate
|
|
192
|
-
return !isDate
|
|
207
|
+
date.isDate = isDate;
|
|
208
|
+
function isntDate(val) {
|
|
209
|
+
return !isDate(val);
|
|
193
210
|
}
|
|
194
|
-
date
|
|
211
|
+
date.isntDate = isntDate;
|
|
195
212
|
|
|
196
|
-
var _enum
|
|
213
|
+
var _enum = {};
|
|
197
214
|
|
|
198
|
-
_enum
|
|
199
|
-
function inEnum
|
|
215
|
+
_enum.inEnum = void 0;
|
|
216
|
+
function inEnum(val, _enum) {
|
|
200
217
|
return Object.values(_enum).includes(val);
|
|
201
218
|
}
|
|
202
|
-
_enum
|
|
219
|
+
_enum.inEnum = inEnum;
|
|
203
220
|
|
|
204
|
-
var error
|
|
221
|
+
var error = {};
|
|
205
222
|
|
|
206
|
-
error
|
|
207
|
-
function isError
|
|
223
|
+
error.isntError = error.isError = void 0;
|
|
224
|
+
function isError(val) {
|
|
208
225
|
return val instanceof Error;
|
|
209
226
|
}
|
|
210
|
-
error
|
|
211
|
-
function isntError
|
|
212
|
-
return !isError
|
|
227
|
+
error.isError = isError;
|
|
228
|
+
function isntError(val) {
|
|
229
|
+
return !isError(val);
|
|
213
230
|
}
|
|
214
|
-
error
|
|
231
|
+
error.isntError = isntError;
|
|
215
232
|
|
|
216
|
-
var falsy
|
|
233
|
+
var falsy = {};
|
|
217
234
|
|
|
218
|
-
falsy
|
|
219
|
-
function isFalsy
|
|
235
|
+
falsy.isntFalsy = falsy.isFalsy = void 0;
|
|
236
|
+
function isFalsy(val) {
|
|
220
237
|
return !val;
|
|
221
238
|
}
|
|
222
|
-
falsy
|
|
223
|
-
function isntFalsy
|
|
224
|
-
return !isFalsy
|
|
239
|
+
falsy.isFalsy = isFalsy;
|
|
240
|
+
function isntFalsy(val) {
|
|
241
|
+
return !isFalsy(val);
|
|
225
242
|
}
|
|
226
|
-
falsy
|
|
243
|
+
falsy.isntFalsy = isntFalsy;
|
|
227
244
|
|
|
228
|
-
var
|
|
245
|
+
var iterable = {};
|
|
229
246
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
247
|
+
iterable.isntIterable = iterable.isIterable = void 0;
|
|
248
|
+
const null_1$1 = _null;
|
|
249
|
+
const undefined_1 = _undefined;
|
|
250
|
+
const function_1$1 = _function;
|
|
251
|
+
function isIterable(val) {
|
|
252
|
+
return (0, null_1$1.isntNull)(val)
|
|
253
|
+
&& (0, undefined_1.isntUndefined)(val)
|
|
254
|
+
&& (0, function_1$1.isFunction)(val[Symbol.iterator]);
|
|
233
255
|
}
|
|
234
|
-
|
|
235
|
-
function
|
|
236
|
-
return !
|
|
256
|
+
iterable.isIterable = isIterable;
|
|
257
|
+
function isntIterable(val) {
|
|
258
|
+
return !isIterable(val);
|
|
237
259
|
}
|
|
238
|
-
|
|
260
|
+
iterable.isntIterable = isntIterable;
|
|
239
261
|
|
|
240
|
-
var
|
|
262
|
+
var json$1 = {};
|
|
241
263
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
function
|
|
246
|
-
return
|
|
247
|
-
|
|
248
|
-
|
|
264
|
+
var number = {};
|
|
265
|
+
|
|
266
|
+
number.isntNumber = number.isNumber = void 0;
|
|
267
|
+
function isNumber(val) {
|
|
268
|
+
return typeof val === 'number';
|
|
269
|
+
}
|
|
270
|
+
number.isNumber = isNumber;
|
|
271
|
+
function isntNumber(val) {
|
|
272
|
+
return !isNumber(val);
|
|
249
273
|
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
274
|
+
number.isntNumber = isntNumber;
|
|
275
|
+
|
|
276
|
+
var object = {};
|
|
277
|
+
|
|
278
|
+
/** Detect free variable `global` from Node.js. */
|
|
279
|
+
|
|
280
|
+
var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
281
|
+
|
|
282
|
+
var _freeGlobal = freeGlobal$1;
|
|
283
|
+
|
|
284
|
+
var freeGlobal = _freeGlobal;
|
|
285
|
+
|
|
286
|
+
/** Detect free variable `self`. */
|
|
287
|
+
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
288
|
+
|
|
289
|
+
/** Used as a reference to the global object. */
|
|
290
|
+
var root$1 = freeGlobal || freeSelf || Function('return this')();
|
|
291
|
+
|
|
292
|
+
var _root = root$1;
|
|
293
|
+
|
|
294
|
+
var root = _root;
|
|
295
|
+
|
|
296
|
+
/** Built-in value references. */
|
|
297
|
+
var Symbol$3 = root.Symbol;
|
|
298
|
+
|
|
299
|
+
var _Symbol = Symbol$3;
|
|
300
|
+
|
|
301
|
+
var Symbol$2 = _Symbol;
|
|
302
|
+
|
|
303
|
+
/** Used for built-in method references. */
|
|
304
|
+
var objectProto$2 = Object.prototype;
|
|
305
|
+
|
|
306
|
+
/** Used to check objects for own properties. */
|
|
307
|
+
var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Used to resolve the
|
|
311
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
312
|
+
* of values.
|
|
313
|
+
*/
|
|
314
|
+
var nativeObjectToString$1 = objectProto$2.toString;
|
|
315
|
+
|
|
316
|
+
/** Built-in value references. */
|
|
317
|
+
var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : undefined;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
321
|
+
*
|
|
322
|
+
* @private
|
|
323
|
+
* @param {*} value The value to query.
|
|
324
|
+
* @returns {string} Returns the raw `toStringTag`.
|
|
325
|
+
*/
|
|
326
|
+
function getRawTag$1(value) {
|
|
327
|
+
var isOwn = hasOwnProperty$1.call(value, symToStringTag$1),
|
|
328
|
+
tag = value[symToStringTag$1];
|
|
329
|
+
|
|
330
|
+
try {
|
|
331
|
+
value[symToStringTag$1] = undefined;
|
|
332
|
+
var unmasked = true;
|
|
333
|
+
} catch (e) {}
|
|
334
|
+
|
|
335
|
+
var result = nativeObjectToString$1.call(value);
|
|
336
|
+
if (unmasked) {
|
|
337
|
+
if (isOwn) {
|
|
338
|
+
value[symToStringTag$1] = tag;
|
|
339
|
+
} else {
|
|
340
|
+
delete value[symToStringTag$1];
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
return result;
|
|
253
344
|
}
|
|
254
|
-
iterable$1.isntIterable = isntIterable$1;
|
|
255
345
|
|
|
256
|
-
var
|
|
346
|
+
var _getRawTag = getRawTag$1;
|
|
347
|
+
|
|
348
|
+
/** Used for built-in method references. */
|
|
349
|
+
|
|
350
|
+
var objectProto$1 = Object.prototype;
|
|
257
351
|
|
|
258
|
-
|
|
352
|
+
/**
|
|
353
|
+
* Used to resolve the
|
|
354
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
355
|
+
* of values.
|
|
356
|
+
*/
|
|
357
|
+
var nativeObjectToString = objectProto$1.toString;
|
|
259
358
|
|
|
260
359
|
/**
|
|
261
|
-
*
|
|
262
|
-
*
|
|
263
|
-
*
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
360
|
+
* Converts `value` to a string using `Object.prototype.toString`.
|
|
361
|
+
*
|
|
362
|
+
* @private
|
|
363
|
+
* @param {*} value The value to convert.
|
|
364
|
+
* @returns {string} Returns the converted string.
|
|
267
365
|
*/
|
|
366
|
+
function objectToString$1(value) {
|
|
367
|
+
return nativeObjectToString.call(value);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
var _objectToString = objectToString$1;
|
|
371
|
+
|
|
372
|
+
var Symbol$1 = _Symbol,
|
|
373
|
+
getRawTag = _getRawTag,
|
|
374
|
+
objectToString = _objectToString;
|
|
268
375
|
|
|
269
376
|
/** `Object#toString` result references. */
|
|
270
|
-
var
|
|
377
|
+
var nullTag = '[object Null]',
|
|
378
|
+
undefinedTag = '[object Undefined]';
|
|
379
|
+
|
|
380
|
+
/** Built-in value references. */
|
|
381
|
+
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
271
382
|
|
|
272
383
|
/**
|
|
273
|
-
*
|
|
384
|
+
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
274
385
|
*
|
|
275
386
|
* @private
|
|
276
|
-
* @param {*} value The value to
|
|
277
|
-
* @returns {
|
|
387
|
+
* @param {*} value The value to query.
|
|
388
|
+
* @returns {string} Returns the `toStringTag`.
|
|
278
389
|
*/
|
|
279
|
-
function
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
var result = false;
|
|
283
|
-
if (value != null && typeof value.toString != 'function') {
|
|
284
|
-
try {
|
|
285
|
-
result = !!(value + '');
|
|
286
|
-
} catch (e) {}
|
|
390
|
+
function baseGetTag$1(value) {
|
|
391
|
+
if (value == null) {
|
|
392
|
+
return value === undefined ? undefinedTag : nullTag;
|
|
287
393
|
}
|
|
288
|
-
return
|
|
394
|
+
return (symToStringTag && symToStringTag in Object(value))
|
|
395
|
+
? getRawTag(value)
|
|
396
|
+
: objectToString(value);
|
|
289
397
|
}
|
|
290
398
|
|
|
399
|
+
var _baseGetTag = baseGetTag$1;
|
|
400
|
+
|
|
291
401
|
/**
|
|
292
402
|
* Creates a unary function that invokes `func` with its argument transformed.
|
|
293
403
|
*
|
|
@@ -296,34 +406,21 @@
|
|
|
296
406
|
* @param {Function} transform The argument transform.
|
|
297
407
|
* @returns {Function} Returns the new function.
|
|
298
408
|
*/
|
|
299
|
-
|
|
409
|
+
|
|
410
|
+
function overArg$1(func, transform) {
|
|
300
411
|
return function(arg) {
|
|
301
412
|
return func(transform(arg));
|
|
302
413
|
};
|
|
303
414
|
}
|
|
304
415
|
|
|
305
|
-
|
|
306
|
-
var funcProto = Function.prototype,
|
|
307
|
-
objectProto = Object.prototype;
|
|
308
|
-
|
|
309
|
-
/** Used to resolve the decompiled source of functions. */
|
|
310
|
-
var funcToString = funcProto.toString;
|
|
311
|
-
|
|
312
|
-
/** Used to check objects for own properties. */
|
|
313
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
314
|
-
|
|
315
|
-
/** Used to infer the `Object` constructor. */
|
|
316
|
-
var objectCtorString = funcToString.call(Object);
|
|
416
|
+
var _overArg = overArg$1;
|
|
317
417
|
|
|
318
|
-
|
|
319
|
-
* Used to resolve the
|
|
320
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
321
|
-
* of values.
|
|
322
|
-
*/
|
|
323
|
-
var objectToString = objectProto.toString;
|
|
418
|
+
var overArg = _overArg;
|
|
324
419
|
|
|
325
420
|
/** Built-in value references. */
|
|
326
|
-
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
421
|
+
var getPrototype$1 = overArg(Object.getPrototypeOf, Object);
|
|
422
|
+
|
|
423
|
+
var _getPrototype = getPrototype$1;
|
|
327
424
|
|
|
328
425
|
/**
|
|
329
426
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
@@ -349,643 +446,97 @@
|
|
|
349
446
|
* _.isObjectLike(null);
|
|
350
447
|
* // => false
|
|
351
448
|
*/
|
|
352
|
-
function isObjectLike(value) {
|
|
353
|
-
return !!value && typeof value == 'object';
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* Checks if `value` is a plain object, that is, an object created by the
|
|
358
|
-
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
359
|
-
*
|
|
360
|
-
* @static
|
|
361
|
-
* @memberOf _
|
|
362
|
-
* @since 0.8.0
|
|
363
|
-
* @category Lang
|
|
364
|
-
* @param {*} value The value to check.
|
|
365
|
-
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
|
366
|
-
* @example
|
|
367
|
-
*
|
|
368
|
-
* function Foo() {
|
|
369
|
-
* this.a = 1;
|
|
370
|
-
* }
|
|
371
|
-
*
|
|
372
|
-
* _.isPlainObject(new Foo);
|
|
373
|
-
* // => false
|
|
374
|
-
*
|
|
375
|
-
* _.isPlainObject([1, 2, 3]);
|
|
376
|
-
* // => false
|
|
377
|
-
*
|
|
378
|
-
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
|
379
|
-
* // => true
|
|
380
|
-
*
|
|
381
|
-
* _.isPlainObject(Object.create(null));
|
|
382
|
-
* // => true
|
|
383
|
-
*/
|
|
384
|
-
function isPlainObject$1(value) {
|
|
385
|
-
if (!isObjectLike(value) ||
|
|
386
|
-
objectToString.call(value) != objectTag || isHostObject(value)) {
|
|
387
|
-
return false;
|
|
388
|
-
}
|
|
389
|
-
var proto = getPrototype(value);
|
|
390
|
-
if (proto === null) {
|
|
391
|
-
return true;
|
|
392
|
-
}
|
|
393
|
-
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
|
|
394
|
-
return (typeof Ctor == 'function' &&
|
|
395
|
-
Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
var lodash_isplainobject = isPlainObject$1;
|
|
399
449
|
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
};object$1.isntEmptyObject = object$1.isEmptyObject = object$1.isntPlainObject = object$1.isPlainObject = object$1.isntObject = object$1.isObject = void 0;
|
|
403
|
-
const lodash_isplainobject_1 = __importDefault(lodash_isplainobject);
|
|
404
|
-
function isObject$1(val) {
|
|
405
|
-
return val !== null
|
|
406
|
-
&& typeof val === 'object';
|
|
407
|
-
}
|
|
408
|
-
object$1.isObject = isObject$1;
|
|
409
|
-
function isntObject$1(val) {
|
|
410
|
-
return !isObject$1(val);
|
|
411
|
-
}
|
|
412
|
-
object$1.isntObject = isntObject$1;
|
|
413
|
-
function isPlainObject(val) {
|
|
414
|
-
return (0, lodash_isplainobject_1.default)(val);
|
|
415
|
-
}
|
|
416
|
-
object$1.isPlainObject = isPlainObject;
|
|
417
|
-
function isntPlainObject(val) {
|
|
418
|
-
return !isPlainObject(val);
|
|
419
|
-
}
|
|
420
|
-
object$1.isntPlainObject = isntPlainObject;
|
|
421
|
-
function isEmptyObject$1(val) {
|
|
422
|
-
return Object.keys(val).length === 0;
|
|
423
|
-
}
|
|
424
|
-
object$1.isEmptyObject = isEmptyObject$1;
|
|
425
|
-
function isntEmptyObject$1(val) {
|
|
426
|
-
return Object.keys(val).length !== 0;
|
|
450
|
+
function isObjectLike$1(value) {
|
|
451
|
+
return value != null && typeof value == 'object';
|
|
427
452
|
}
|
|
428
|
-
object$1.isntEmptyObject = isntEmptyObject$1;
|
|
429
453
|
|
|
430
|
-
var
|
|
454
|
+
var isObjectLike_1 = isObjectLike$1;
|
|
431
455
|
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
}
|
|
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)
|
|
482
|
-
&& 'result' in val;
|
|
483
|
-
}
|
|
484
|
-
jsonRpc$1.isJsonRpcSuccess = isJsonRpcSuccess$1;
|
|
485
|
-
function isntJsonRpcSuccess$1(val) {
|
|
486
|
-
return !isJsonRpcSuccess$1(val);
|
|
487
|
-
}
|
|
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);
|
|
494
|
-
}
|
|
495
|
-
jsonRpc$1.isJsonRpcError = isJsonRpcError$1;
|
|
496
|
-
function isntJsonRpcError$1(val) {
|
|
497
|
-
return !isJsonRpcError$1(val);
|
|
498
|
-
}
|
|
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));
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
var json$2 = {};
|
|
508
|
-
|
|
509
|
-
json$2.isntJson = json$2.isJson = void 0;
|
|
510
|
-
function isJson$1(val) {
|
|
511
|
-
try {
|
|
512
|
-
JSON.stringify(val);
|
|
513
|
-
return true;
|
|
514
|
-
}
|
|
515
|
-
catch (_a) {
|
|
516
|
-
return false;
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
json$2.isJson = isJson$1;
|
|
520
|
-
function isntJson$1(val) {
|
|
521
|
-
return !isntJson$1();
|
|
522
|
-
}
|
|
523
|
-
json$2.isntJson = isntJson$1;
|
|
524
|
-
|
|
525
|
-
var url$2 = {};
|
|
526
|
-
|
|
527
|
-
url$2.isAbsoluteURL = void 0;
|
|
528
|
-
function isAbsoluteURL$1(str) {
|
|
529
|
-
try {
|
|
530
|
-
new URL(str);
|
|
531
|
-
return true;
|
|
532
|
-
}
|
|
533
|
-
catch (_a) {
|
|
534
|
-
return false;
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
url$2.isAbsoluteURL = isAbsoluteURL$1;
|
|
538
|
-
|
|
539
|
-
(function (exports) {
|
|
540
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
541
|
-
if (k2 === undefined) k2 = k;
|
|
542
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
543
|
-
}) : (function(o, m, k, k2) {
|
|
544
|
-
if (k2 === undefined) k2 = k;
|
|
545
|
-
o[k2] = m[k];
|
|
546
|
-
}));
|
|
547
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
548
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
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));
|
|
570
|
-
|
|
571
|
-
function get(...transformers) {
|
|
572
|
-
return request('GET', ...transformers);
|
|
573
|
-
}
|
|
574
|
-
function head(...transformers) {
|
|
575
|
-
return request('HEAD', ...transformers);
|
|
576
|
-
}
|
|
577
|
-
function post(...transformers) {
|
|
578
|
-
return request('POST', ...transformers);
|
|
579
|
-
}
|
|
580
|
-
function put(...transformers) {
|
|
581
|
-
return request('PUT', ...transformers);
|
|
582
|
-
}
|
|
583
|
-
function patch(...transformers) {
|
|
584
|
-
return request('PATCH', ...transformers);
|
|
585
|
-
}
|
|
586
|
-
function del(...transformers) {
|
|
587
|
-
return request('DELETE', ...transformers);
|
|
588
|
-
}
|
|
589
|
-
function request(method, ...transformers) {
|
|
590
|
-
const options = transformers.reduce((options, trans) => es2018$6.isFunction(trans) ? trans(options) : options, {
|
|
591
|
-
url: new URL('http://localhost'),
|
|
592
|
-
headers: new es2018$7.Headers()
|
|
593
|
-
});
|
|
594
|
-
const headers = new es2018$7.Headers(options.headers);
|
|
595
|
-
return new es2018$7.Request(options.url.href, {
|
|
596
|
-
method,
|
|
597
|
-
headers,
|
|
598
|
-
signal: options.signal,
|
|
599
|
-
body: options.payload,
|
|
600
|
-
keepalive: options.keepalive
|
|
601
|
-
});
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
function url$1(...urls) {
|
|
605
|
-
return (options) => {
|
|
606
|
-
const url = new URL(urls.reduce((acc, cur) => new URL(cur, acc).href));
|
|
607
|
-
return {
|
|
608
|
-
...options,
|
|
609
|
-
url
|
|
610
|
-
};
|
|
611
|
-
};
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
function text(payload) {
|
|
615
|
-
return (options) => {
|
|
616
|
-
const headers = new es2018$7.Headers(options.headers);
|
|
617
|
-
headers.set('Content-Type', 'application/x-www-form-urlencoded');
|
|
618
|
-
return {
|
|
619
|
-
...options,
|
|
620
|
-
headers,
|
|
621
|
-
payload
|
|
622
|
-
};
|
|
623
|
-
};
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
function json$1(payload) {
|
|
627
|
-
return (options) => {
|
|
628
|
-
const headers = new es2018$7.Headers(options.headers);
|
|
629
|
-
headers.set('Content-Type', 'application/json');
|
|
630
|
-
return {
|
|
631
|
-
...options,
|
|
632
|
-
headers,
|
|
633
|
-
payload: JSON.stringify(payload)
|
|
634
|
-
};
|
|
635
|
-
};
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
var papaparse_min = {exports: {}};
|
|
639
|
-
|
|
640
|
-
/* @license
|
|
641
|
-
Papa Parse
|
|
642
|
-
v5.3.1
|
|
643
|
-
https://github.com/mholt/PapaParse
|
|
644
|
-
License: MIT
|
|
645
|
-
*/
|
|
646
|
-
|
|
647
|
-
(function (module, exports) {
|
|
648
|
-
!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});
|
|
649
|
-
}(papaparse_min));
|
|
650
|
-
|
|
651
|
-
var es2018$5 = {};
|
|
652
|
-
|
|
653
|
-
var customError$1 = {};
|
|
654
|
-
|
|
655
|
-
var es2018$4 = {};
|
|
656
|
-
|
|
657
|
-
var middleware = {};
|
|
658
|
-
|
|
659
|
-
var chunkAsync$1 = {};
|
|
660
|
-
|
|
661
|
-
var es2018$3 = {};
|
|
662
|
-
|
|
663
|
-
var go$1 = {};
|
|
664
|
-
|
|
665
|
-
go$1.go = void 0;
|
|
666
|
-
function go(fn) {
|
|
667
|
-
return fn();
|
|
668
|
-
}
|
|
669
|
-
go$1.go = go;
|
|
670
|
-
|
|
671
|
-
(function (exports) {
|
|
672
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
673
|
-
if (k2 === undefined) k2 = k;
|
|
674
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
675
|
-
}) : (function(o, m, k, k2) {
|
|
676
|
-
if (k2 === undefined) k2 = k;
|
|
677
|
-
o[k2] = m[k];
|
|
678
|
-
}));
|
|
679
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
680
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
681
|
-
};__exportStar(go$1, exports);
|
|
682
|
-
|
|
683
|
-
}(es2018$3));
|
|
684
|
-
|
|
685
|
-
var es2018$2 = {};
|
|
686
|
-
|
|
687
|
-
var customError = {};
|
|
688
|
-
|
|
689
|
-
customError.CustomError = void 0;
|
|
690
|
-
class CustomError$1 extends Error {
|
|
691
|
-
get name() {
|
|
692
|
-
return this.constructor.name;
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
customError.CustomError = CustomError$1;
|
|
696
|
-
|
|
697
|
-
var expectedError = {};
|
|
698
|
-
|
|
699
|
-
expectedError.ExpectedError = void 0;
|
|
700
|
-
const custom_error_1$2 = customError;
|
|
701
|
-
class ExpectedError extends custom_error_1$2.CustomError {
|
|
702
|
-
}
|
|
703
|
-
expectedError.ExpectedError = ExpectedError;
|
|
704
|
-
|
|
705
|
-
var assertionError$1 = {};
|
|
706
|
-
|
|
707
|
-
assertionError$1.AssertionError = void 0;
|
|
708
|
-
const custom_error_1$1 = customError;
|
|
709
|
-
class AssertionError$1 extends custom_error_1$1.CustomError {
|
|
710
|
-
}
|
|
711
|
-
assertionError$1.AssertionError = AssertionError$1;
|
|
712
|
-
|
|
713
|
-
var normalize$3 = {};
|
|
714
|
-
|
|
715
|
-
normalize$3.normalize = void 0;
|
|
716
|
-
function normalize$2(err) {
|
|
717
|
-
var _a;
|
|
718
|
-
return {
|
|
719
|
-
name: err.name,
|
|
720
|
-
message: err.message,
|
|
721
|
-
stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
|
|
722
|
-
};
|
|
723
|
-
}
|
|
724
|
-
normalize$3.normalize = normalize$2;
|
|
725
|
-
|
|
726
|
-
var refute$1 = {};
|
|
727
|
-
|
|
728
|
-
refute$1.refute = void 0;
|
|
729
|
-
const expected_error_1 = expectedError;
|
|
730
|
-
function refute(condition, message) {
|
|
731
|
-
if (condition)
|
|
732
|
-
throw new expected_error_1.ExpectedError(message);
|
|
733
|
-
}
|
|
734
|
-
refute$1.refute = refute;
|
|
735
|
-
|
|
736
|
-
var assert$3 = {};
|
|
737
|
-
|
|
738
|
-
assert$3.assert = void 0;
|
|
739
|
-
const assertion_error_1$1 = assertionError$1;
|
|
740
|
-
function assert$2(condition, message) {
|
|
741
|
-
if (!condition)
|
|
742
|
-
throw new assertion_error_1$1.AssertionError(message);
|
|
743
|
-
}
|
|
744
|
-
assert$3.assert = assert$2;
|
|
745
|
-
|
|
746
|
-
(function (exports) {
|
|
747
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
748
|
-
if (k2 === undefined) k2 = k;
|
|
749
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
750
|
-
}) : (function(o, m, k, k2) {
|
|
751
|
-
if (k2 === undefined) k2 = k;
|
|
752
|
-
o[k2] = m[k];
|
|
753
|
-
}));
|
|
754
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
755
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
756
|
-
};__exportStar(customError, exports);
|
|
757
|
-
__exportStar(expectedError, exports);
|
|
758
|
-
__exportStar(assertionError$1, exports);
|
|
759
|
-
__exportStar(normalize$3, exports);
|
|
760
|
-
__exportStar(refute$1, exports);
|
|
761
|
-
__exportStar(assert$3, exports);
|
|
762
|
-
|
|
763
|
-
}(es2018$2));
|
|
764
|
-
|
|
765
|
-
chunkAsync$1.chunkAsync = void 0;
|
|
766
|
-
const go_1$f = es2018$3;
|
|
767
|
-
const errors_1$f = es2018$2;
|
|
768
|
-
function chunkAsync(iterable, size) {
|
|
769
|
-
(0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
770
|
-
(0, errors_1$f.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
771
|
-
return (0, go_1$f.go)(async function* () {
|
|
772
|
-
let buffer = [];
|
|
773
|
-
for await (const element of iterable) {
|
|
774
|
-
buffer.push(element);
|
|
775
|
-
if (buffer.length >= size) {
|
|
776
|
-
yield buffer;
|
|
777
|
-
buffer = [];
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
if (buffer.length)
|
|
781
|
-
yield buffer;
|
|
782
|
-
});
|
|
783
|
-
}
|
|
784
|
-
chunkAsync$1.chunkAsync = chunkAsync;
|
|
785
|
-
|
|
786
|
-
var chunkByAsync$1 = {};
|
|
787
|
-
|
|
788
|
-
var es2018$1 = {};
|
|
789
|
-
|
|
790
|
-
var array = {};
|
|
791
|
-
|
|
792
|
-
array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
|
|
793
|
-
function isArray(val) {
|
|
794
|
-
return Array.isArray(val);
|
|
795
|
-
}
|
|
796
|
-
array.isArray = isArray;
|
|
797
|
-
function isntArray(val) {
|
|
798
|
-
return !isArray(val);
|
|
799
|
-
}
|
|
800
|
-
array.isntArray = isntArray;
|
|
801
|
-
function isEmptyArray(val) {
|
|
802
|
-
return val.length === 0;
|
|
803
|
-
}
|
|
804
|
-
array.isEmptyArray = isEmptyArray;
|
|
805
|
-
function isntEmptyArray(val) {
|
|
806
|
-
return val.length !== 0;
|
|
807
|
-
}
|
|
808
|
-
array.isntEmptyArray = isntEmptyArray;
|
|
809
|
-
|
|
810
|
-
var asyncIterable = {};
|
|
811
|
-
|
|
812
|
-
var _null = {};
|
|
813
|
-
|
|
814
|
-
_null.isntNull = _null.isNull = void 0;
|
|
815
|
-
function isNull(val) {
|
|
816
|
-
return val === null;
|
|
817
|
-
}
|
|
818
|
-
_null.isNull = isNull;
|
|
819
|
-
function isntNull(val) {
|
|
820
|
-
return !isNull(val);
|
|
821
|
-
}
|
|
822
|
-
_null.isntNull = isntNull;
|
|
823
|
-
|
|
824
|
-
var _undefined = {};
|
|
825
|
-
|
|
826
|
-
_undefined.isntUndefined = _undefined.isUndefined = void 0;
|
|
827
|
-
function isUndefined(val) {
|
|
828
|
-
return val === undefined;
|
|
829
|
-
}
|
|
830
|
-
_undefined.isUndefined = isUndefined;
|
|
831
|
-
function isntUndefined(val) {
|
|
832
|
-
return !isUndefined(val);
|
|
833
|
-
}
|
|
834
|
-
_undefined.isntUndefined = isntUndefined;
|
|
835
|
-
|
|
836
|
-
asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
|
|
837
|
-
const null_1$1 = _null;
|
|
838
|
-
const undefined_1$2 = _undefined;
|
|
839
|
-
function isAsyncIterable(val) {
|
|
840
|
-
return (0, null_1$1.isntNull)(val)
|
|
841
|
-
&& (0, undefined_1$2.isntUndefined)(val)
|
|
842
|
-
&& typeof val[Symbol.asyncIterator] === 'function';
|
|
843
|
-
}
|
|
844
|
-
asyncIterable.isAsyncIterable = isAsyncIterable;
|
|
845
|
-
function isntAsyncIterable(val) {
|
|
846
|
-
return !isAsyncIterable(val);
|
|
847
|
-
}
|
|
848
|
-
asyncIterable.isntAsyncIterable = isntAsyncIterable;
|
|
849
|
-
|
|
850
|
-
var bigint = {};
|
|
851
|
-
|
|
852
|
-
bigint.isntBigInt = bigint.isBigInt = void 0;
|
|
853
|
-
function isBigInt(val) {
|
|
854
|
-
return typeof val === 'bigint';
|
|
855
|
-
}
|
|
856
|
-
bigint.isBigInt = isBigInt;
|
|
857
|
-
function isntBigInt(val) {
|
|
858
|
-
return !isBigInt(val);
|
|
859
|
-
}
|
|
860
|
-
bigint.isntBigInt = isntBigInt;
|
|
861
|
-
|
|
862
|
-
var boolean = {};
|
|
863
|
-
|
|
864
|
-
boolean.isntBoolean = boolean.isBoolean = void 0;
|
|
865
|
-
function isBoolean(val) {
|
|
866
|
-
return typeof val === 'boolean';
|
|
867
|
-
}
|
|
868
|
-
boolean.isBoolean = isBoolean;
|
|
869
|
-
function isntBoolean(val) {
|
|
870
|
-
return !isBoolean(val);
|
|
871
|
-
}
|
|
872
|
-
boolean.isntBoolean = isntBoolean;
|
|
873
|
-
|
|
874
|
-
var char = {};
|
|
875
|
-
|
|
876
|
-
var string = {};
|
|
877
|
-
|
|
878
|
-
string.isntString = string.isString = void 0;
|
|
879
|
-
function isString(val) {
|
|
880
|
-
return typeof val === 'string';
|
|
881
|
-
}
|
|
882
|
-
string.isString = isString;
|
|
883
|
-
function isntString(val) {
|
|
884
|
-
return !isString(val);
|
|
885
|
-
}
|
|
886
|
-
string.isntString = isntString;
|
|
887
|
-
|
|
888
|
-
char.isntChar = char.isChar = void 0;
|
|
889
|
-
const string_1$1 = string;
|
|
890
|
-
function isChar(val) {
|
|
891
|
-
return (0, string_1$1.isString)(val)
|
|
892
|
-
&& val.length === 1;
|
|
893
|
-
}
|
|
894
|
-
char.isChar = isChar;
|
|
895
|
-
function isntChar(val) {
|
|
896
|
-
return !isChar(val);
|
|
897
|
-
}
|
|
898
|
-
char.isntChar = isntChar;
|
|
899
|
-
|
|
900
|
-
var date = {};
|
|
901
|
-
|
|
902
|
-
date.isntDate = date.isDate = void 0;
|
|
903
|
-
function isDate(val) {
|
|
904
|
-
return val instanceof Date;
|
|
905
|
-
}
|
|
906
|
-
date.isDate = isDate;
|
|
907
|
-
function isntDate(val) {
|
|
908
|
-
return !isDate(val);
|
|
909
|
-
}
|
|
910
|
-
date.isntDate = isntDate;
|
|
911
|
-
|
|
912
|
-
var _enum = {};
|
|
913
|
-
|
|
914
|
-
_enum.inEnum = void 0;
|
|
915
|
-
function inEnum(val, _enum) {
|
|
916
|
-
return Object.values(_enum).includes(val);
|
|
917
|
-
}
|
|
918
|
-
_enum.inEnum = inEnum;
|
|
919
|
-
|
|
920
|
-
var error = {};
|
|
921
|
-
|
|
922
|
-
error.isntError = error.isError = void 0;
|
|
923
|
-
function isError(val) {
|
|
924
|
-
return val instanceof Error;
|
|
925
|
-
}
|
|
926
|
-
error.isError = isError;
|
|
927
|
-
function isntError(val) {
|
|
928
|
-
return !isError(val);
|
|
929
|
-
}
|
|
930
|
-
error.isntError = isntError;
|
|
456
|
+
var baseGetTag = _baseGetTag,
|
|
457
|
+
getPrototype = _getPrototype,
|
|
458
|
+
isObjectLike = isObjectLike_1;
|
|
931
459
|
|
|
932
|
-
|
|
460
|
+
/** `Object#toString` result references. */
|
|
461
|
+
var objectTag = '[object Object]';
|
|
933
462
|
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
}
|
|
938
|
-
falsy.isFalsy = isFalsy;
|
|
939
|
-
function isntFalsy(val) {
|
|
940
|
-
return !isFalsy(val);
|
|
941
|
-
}
|
|
942
|
-
falsy.isntFalsy = isntFalsy;
|
|
463
|
+
/** Used for built-in method references. */
|
|
464
|
+
var funcProto = Function.prototype,
|
|
465
|
+
objectProto = Object.prototype;
|
|
943
466
|
|
|
944
|
-
|
|
467
|
+
/** Used to resolve the decompiled source of functions. */
|
|
468
|
+
var funcToString = funcProto.toString;
|
|
945
469
|
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
return typeof val === 'function';
|
|
949
|
-
}
|
|
950
|
-
_function.isFunction = isFunction;
|
|
951
|
-
function isntFunction(val) {
|
|
952
|
-
return !isFunction(val);
|
|
953
|
-
}
|
|
954
|
-
_function.isntFunction = isntFunction;
|
|
470
|
+
/** Used to check objects for own properties. */
|
|
471
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
955
472
|
|
|
956
|
-
|
|
473
|
+
/** Used to infer the `Object` constructor. */
|
|
474
|
+
var objectCtorString = funcToString.call(Object);
|
|
957
475
|
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
476
|
+
/**
|
|
477
|
+
* Checks if `value` is a plain object, that is, an object created by the
|
|
478
|
+
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
479
|
+
*
|
|
480
|
+
* @static
|
|
481
|
+
* @memberOf _
|
|
482
|
+
* @since 0.8.0
|
|
483
|
+
* @category Lang
|
|
484
|
+
* @param {*} value The value to check.
|
|
485
|
+
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
|
486
|
+
* @example
|
|
487
|
+
*
|
|
488
|
+
* function Foo() {
|
|
489
|
+
* this.a = 1;
|
|
490
|
+
* }
|
|
491
|
+
*
|
|
492
|
+
* _.isPlainObject(new Foo);
|
|
493
|
+
* // => false
|
|
494
|
+
*
|
|
495
|
+
* _.isPlainObject([1, 2, 3]);
|
|
496
|
+
* // => false
|
|
497
|
+
*
|
|
498
|
+
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
|
499
|
+
* // => true
|
|
500
|
+
*
|
|
501
|
+
* _.isPlainObject(Object.create(null));
|
|
502
|
+
* // => true
|
|
503
|
+
*/
|
|
504
|
+
function isPlainObject$1(value) {
|
|
505
|
+
if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
|
|
506
|
+
return false;
|
|
507
|
+
}
|
|
508
|
+
var proto = getPrototype(value);
|
|
509
|
+
if (proto === null) {
|
|
510
|
+
return true;
|
|
511
|
+
}
|
|
512
|
+
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
|
|
513
|
+
return typeof Ctor == 'function' && Ctor instanceof Ctor &&
|
|
514
|
+
funcToString.call(Ctor) == objectCtorString;
|
|
969
515
|
}
|
|
970
|
-
iterable.isntIterable = isntIterable;
|
|
971
516
|
|
|
972
|
-
var
|
|
973
|
-
|
|
974
|
-
var object = {};
|
|
517
|
+
var isPlainObject_1$1 = isPlainObject$1;
|
|
975
518
|
|
|
976
|
-
|
|
519
|
+
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
520
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
521
|
+
};object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
|
|
522
|
+
const isPlainObject_1 = __importDefault(isPlainObject_1$1);
|
|
977
523
|
function isObject(val) {
|
|
978
|
-
return val !== null
|
|
524
|
+
return val !== null
|
|
525
|
+
&& typeof val === 'object';
|
|
979
526
|
}
|
|
980
527
|
object.isObject = isObject;
|
|
981
528
|
function isntObject(val) {
|
|
982
529
|
return !isObject(val);
|
|
983
530
|
}
|
|
984
531
|
object.isntObject = isntObject;
|
|
985
|
-
function
|
|
986
|
-
return
|
|
532
|
+
function isPlainObject(val) {
|
|
533
|
+
return (0, isPlainObject_1.default)(val);
|
|
534
|
+
}
|
|
535
|
+
object.isPlainObject = isPlainObject;
|
|
536
|
+
function isntPlainObject(val) {
|
|
537
|
+
return !isPlainObject(val);
|
|
987
538
|
}
|
|
988
|
-
object.
|
|
539
|
+
object.isntPlainObject = isntPlainObject;
|
|
989
540
|
function isEmptyObject(val) {
|
|
990
541
|
return Object.keys(val).length === 0;
|
|
991
542
|
}
|
|
@@ -995,87 +546,27 @@
|
|
|
995
546
|
}
|
|
996
547
|
object.isntEmptyObject = isntEmptyObject;
|
|
997
548
|
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
function isNumber(val) {
|
|
1002
|
-
return typeof val === 'number';
|
|
1003
|
-
}
|
|
1004
|
-
number.isNumber = isNumber;
|
|
1005
|
-
function isntNumber(val) {
|
|
1006
|
-
return !isNumber(val);
|
|
1007
|
-
}
|
|
1008
|
-
number.isntNumber = isntNumber;
|
|
1009
|
-
|
|
1010
|
-
jsonRpc.isntJsonRpcError = jsonRpc.isJsonRpcError = jsonRpc.isntJsonRpcSuccess = jsonRpc.isJsonRpcSuccess = jsonRpc.isntJsonRpcRequest = jsonRpc.isJsonRpcRequest = jsonRpc.isntJsonRpcNotification = jsonRpc.isJsonRpcNotification = void 0;
|
|
1011
|
-
const array_1 = array;
|
|
1012
|
-
const object_1 = object;
|
|
549
|
+
json$1.isntJsonable = json$1.isJsonable = json$1.isntJson = json$1.isJson = void 0;
|
|
550
|
+
const null_1 = _null;
|
|
551
|
+
const boolean_1 = boolean;
|
|
1013
552
|
const string_1 = string;
|
|
1014
553
|
const number_1 = number;
|
|
1015
|
-
const
|
|
1016
|
-
|
|
1017
|
-
return (0, string_1.isString)(val) || (0, number_1.isNumber)(val);
|
|
1018
|
-
}
|
|
1019
|
-
function isJsonRpcParams(val) {
|
|
1020
|
-
return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);
|
|
1021
|
-
}
|
|
1022
|
-
function isJsonRpcNotification(val) {
|
|
1023
|
-
return (0, object_1.isRecord)(val)
|
|
1024
|
-
&& (0, string_1.isString)(val.jsonrpc)
|
|
1025
|
-
&& (0, string_1.isString)(val.method)
|
|
1026
|
-
&& (0, undefined_1.isUndefined)(val.id)
|
|
1027
|
-
&& isJsonRpcParams(val.params);
|
|
1028
|
-
}
|
|
1029
|
-
jsonRpc.isJsonRpcNotification = isJsonRpcNotification;
|
|
1030
|
-
function isntJsonRpcNotification(val) {
|
|
1031
|
-
return !isJsonRpcNotification(val);
|
|
1032
|
-
}
|
|
1033
|
-
jsonRpc.isntJsonRpcNotification = isntJsonRpcNotification;
|
|
1034
|
-
function isJsonRpcRequest(val) {
|
|
1035
|
-
return (0, object_1.isRecord)(val)
|
|
1036
|
-
&& (0, string_1.isString)(val.jsonrpc)
|
|
1037
|
-
&& (0, string_1.isString)(val.method)
|
|
1038
|
-
&& isJsonRpcId(val.id)
|
|
1039
|
-
&& isJsonRpcParams(val.params);
|
|
1040
|
-
}
|
|
1041
|
-
jsonRpc.isJsonRpcRequest = isJsonRpcRequest;
|
|
1042
|
-
function isntJsonRpcRequest(val) {
|
|
1043
|
-
return !isJsonRpcRequest(val);
|
|
1044
|
-
}
|
|
1045
|
-
jsonRpc.isntJsonRpcRequest = isntJsonRpcRequest;
|
|
1046
|
-
function isJsonRpcSuccess(val) {
|
|
1047
|
-
return (0, object_1.isRecord)(val)
|
|
1048
|
-
&& (0, string_1.isString)(val.jsonrpc)
|
|
1049
|
-
&& (0, string_1.isString)(val.id)
|
|
1050
|
-
&& (0, undefined_1.isntUndefined)(val.result);
|
|
1051
|
-
}
|
|
1052
|
-
jsonRpc.isJsonRpcSuccess = isJsonRpcSuccess;
|
|
1053
|
-
function isntJsonRpcSuccess(val) {
|
|
1054
|
-
return !isJsonRpcSuccess(val);
|
|
1055
|
-
}
|
|
1056
|
-
jsonRpc.isntJsonRpcSuccess = isntJsonRpcSuccess;
|
|
1057
|
-
function isJsonRpcError(val) {
|
|
1058
|
-
return (0, object_1.isRecord)(val)
|
|
1059
|
-
&& (0, string_1.isString)(val.jsonrpc)
|
|
1060
|
-
&& isJsonRpcId(val.id)
|
|
1061
|
-
&& isJsonRpcErrorObject(val.error);
|
|
1062
|
-
}
|
|
1063
|
-
jsonRpc.isJsonRpcError = isJsonRpcError;
|
|
1064
|
-
function isntJsonRpcError(val) {
|
|
1065
|
-
return !isJsonRpcError(val);
|
|
1066
|
-
}
|
|
1067
|
-
jsonRpc.isntJsonRpcError = isntJsonRpcError;
|
|
1068
|
-
function isJsonRpcErrorObject(val) {
|
|
1069
|
-
return (0, object_1.isRecord)(val)
|
|
1070
|
-
&& (0, number_1.isNumber)(val.code)
|
|
1071
|
-
&& (0, string_1.isString)(val.message)
|
|
1072
|
-
&& ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));
|
|
1073
|
-
}
|
|
1074
|
-
|
|
1075
|
-
var json = {};
|
|
1076
|
-
|
|
1077
|
-
json.isntJson = json.isJson = void 0;
|
|
554
|
+
const array_1 = array;
|
|
555
|
+
const object_1$1 = object;
|
|
1078
556
|
function isJson(val) {
|
|
557
|
+
return (0, null_1.isNull)(val)
|
|
558
|
+
|| (0, boolean_1.isBoolean)(val)
|
|
559
|
+
|| (0, string_1.isString)(val)
|
|
560
|
+
|| (0, number_1.isNumber)(val)
|
|
561
|
+
|| ((0, array_1.isArray)(val) && val.every(isJson))
|
|
562
|
+
|| ((0, object_1$1.isPlainObject)(val) && Object.values(val).every(isJson));
|
|
563
|
+
}
|
|
564
|
+
json$1.isJson = isJson;
|
|
565
|
+
function isntJson(val) {
|
|
566
|
+
return !isJson(val);
|
|
567
|
+
}
|
|
568
|
+
json$1.isntJson = isntJson;
|
|
569
|
+
function isJsonable(val) {
|
|
1079
570
|
try {
|
|
1080
571
|
JSON.stringify(val);
|
|
1081
572
|
return true;
|
|
@@ -1084,15 +575,38 @@
|
|
|
1084
575
|
return false;
|
|
1085
576
|
}
|
|
1086
577
|
}
|
|
1087
|
-
json.
|
|
1088
|
-
function
|
|
1089
|
-
return !
|
|
578
|
+
json$1.isJsonable = isJsonable;
|
|
579
|
+
function isntJsonable(val) {
|
|
580
|
+
return !isntJsonable();
|
|
581
|
+
}
|
|
582
|
+
json$1.isntJsonable = isntJsonable;
|
|
583
|
+
|
|
584
|
+
var promise = {};
|
|
585
|
+
|
|
586
|
+
promise.isPromiseLike = promise.isntPromiseLike = promise.isntPromise = promise.isPromise = void 0;
|
|
587
|
+
const object_1 = object;
|
|
588
|
+
const function_1 = _function;
|
|
589
|
+
function isPromise(val) {
|
|
590
|
+
return val instanceof Promise;
|
|
1090
591
|
}
|
|
1091
|
-
|
|
592
|
+
promise.isPromise = isPromise;
|
|
593
|
+
function isntPromise(val) {
|
|
594
|
+
return !isPromise(val);
|
|
595
|
+
}
|
|
596
|
+
promise.isntPromise = isntPromise;
|
|
597
|
+
function isntPromiseLike(val) {
|
|
598
|
+
return !isPromiseLike(val);
|
|
599
|
+
}
|
|
600
|
+
promise.isntPromiseLike = isntPromiseLike;
|
|
601
|
+
function isPromiseLike(val) {
|
|
602
|
+
return (0, object_1.isObject)(val)
|
|
603
|
+
&& (0, function_1.isFunction)(val.then);
|
|
604
|
+
}
|
|
605
|
+
promise.isPromiseLike = isPromiseLike;
|
|
1092
606
|
|
|
1093
|
-
var url = {};
|
|
607
|
+
var url$1 = {};
|
|
1094
608
|
|
|
1095
|
-
url.isAbsoluteURL = void 0;
|
|
609
|
+
url$1.isAbsoluteURL = void 0;
|
|
1096
610
|
function isAbsoluteURL(str) {
|
|
1097
611
|
try {
|
|
1098
612
|
new URL(str);
|
|
@@ -1102,12 +616,16 @@
|
|
|
1102
616
|
return false;
|
|
1103
617
|
}
|
|
1104
618
|
}
|
|
1105
|
-
url.isAbsoluteURL = isAbsoluteURL;
|
|
619
|
+
url$1.isAbsoluteURL = isAbsoluteURL;
|
|
1106
620
|
|
|
1107
621
|
(function (exports) {
|
|
1108
622
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1109
623
|
if (k2 === undefined) k2 = k;
|
|
1110
|
-
Object.
|
|
624
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
625
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
626
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
627
|
+
}
|
|
628
|
+
Object.defineProperty(o, k2, desc);
|
|
1111
629
|
}) : (function(o, m, k, k2) {
|
|
1112
630
|
if (k2 === undefined) k2 = k;
|
|
1113
631
|
o[k2] = m[k];
|
|
@@ -1125,19 +643,156 @@
|
|
|
1125
643
|
__exportStar(falsy, exports);
|
|
1126
644
|
__exportStar(_function, exports);
|
|
1127
645
|
__exportStar(iterable, exports);
|
|
1128
|
-
__exportStar(
|
|
1129
|
-
__exportStar(json, exports);
|
|
646
|
+
__exportStar(json$1, exports);
|
|
1130
647
|
__exportStar(_null, exports);
|
|
1131
648
|
__exportStar(number, exports);
|
|
1132
649
|
__exportStar(object, exports);
|
|
650
|
+
__exportStar(promise, exports);
|
|
1133
651
|
__exportStar(string, exports);
|
|
1134
652
|
__exportStar(_undefined, exports);
|
|
1135
|
-
__exportStar(url, exports);
|
|
653
|
+
__exportStar(url$1, exports);
|
|
654
|
+
|
|
655
|
+
}(es2018$4));
|
|
656
|
+
|
|
657
|
+
function get(...transformers) {
|
|
658
|
+
return request('GET', ...transformers);
|
|
659
|
+
}
|
|
660
|
+
function head(...transformers) {
|
|
661
|
+
return request('HEAD', ...transformers);
|
|
662
|
+
}
|
|
663
|
+
function post(...transformers) {
|
|
664
|
+
return request('POST', ...transformers);
|
|
665
|
+
}
|
|
666
|
+
function put(...transformers) {
|
|
667
|
+
return request('PUT', ...transformers);
|
|
668
|
+
}
|
|
669
|
+
function patch(...transformers) {
|
|
670
|
+
return request('PATCH', ...transformers);
|
|
671
|
+
}
|
|
672
|
+
function del(...transformers) {
|
|
673
|
+
return request('DELETE', ...transformers);
|
|
674
|
+
}
|
|
675
|
+
function request(method, ...transformers) {
|
|
676
|
+
const options = transformers.reduce((options, trans) => es2018$4.isFunction(trans) ? trans(options) : options, {
|
|
677
|
+
url: new URL('http://localhost'),
|
|
678
|
+
headers: new es2018$5.Headers()
|
|
679
|
+
});
|
|
680
|
+
const headers = new es2018$5.Headers(options.headers);
|
|
681
|
+
return new es2018$5.Request(options.url.href, {
|
|
682
|
+
method,
|
|
683
|
+
headers,
|
|
684
|
+
signal: options.signal,
|
|
685
|
+
body: options.payload,
|
|
686
|
+
keepalive: options.keepalive
|
|
687
|
+
});
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
function url(...urls) {
|
|
691
|
+
return (options) => {
|
|
692
|
+
const url = new URL(urls.reduce((acc, cur) => new URL(cur, acc).href));
|
|
693
|
+
return {
|
|
694
|
+
...options,
|
|
695
|
+
url
|
|
696
|
+
};
|
|
697
|
+
};
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
function text(payload) {
|
|
701
|
+
return (options) => {
|
|
702
|
+
const headers = new es2018$5.Headers(options.headers);
|
|
703
|
+
headers.set('Content-Type', 'application/x-www-form-urlencoded');
|
|
704
|
+
return {
|
|
705
|
+
...options,
|
|
706
|
+
headers,
|
|
707
|
+
payload
|
|
708
|
+
};
|
|
709
|
+
};
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
function json(payload) {
|
|
713
|
+
return (options) => {
|
|
714
|
+
const headers = new es2018$5.Headers(options.headers);
|
|
715
|
+
headers.set('Content-Type', 'application/json');
|
|
716
|
+
return {
|
|
717
|
+
...options,
|
|
718
|
+
headers,
|
|
719
|
+
payload: JSON.stringify(payload)
|
|
720
|
+
};
|
|
721
|
+
};
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
var papaparse_min = {exports: {}};
|
|
725
|
+
|
|
726
|
+
/* @license
|
|
727
|
+
Papa Parse
|
|
728
|
+
v5.3.2
|
|
729
|
+
https://github.com/mholt/PapaParse
|
|
730
|
+
License: MIT
|
|
731
|
+
*/
|
|
732
|
+
|
|
733
|
+
(function (module, exports) {
|
|
734
|
+
!function(e,t){module.exports=t();}(commonjsGlobal,function s(){var f="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==f?f:{};var n=!f.document&&!!f.postMessage,o=n&&/blob:/i.test((f.location||{}).protocol),a={},h=0,b={parse:function(e,t){var i=(t=t||{}).dynamicTyping||!1;M(i)&&(t.dynamicTypingFunction=i,i={});if(t.dynamicTyping=i,t.transform=!!M(t.transform)&&t.transform,t.worker&&b.WORKERS_SUPPORTED){var r=function(){if(!b.WORKERS_SUPPORTED)return !1;var e=(i=f.URL||f.webkitURL||null,r=s.toString(),b.BLOB_URL||(b.BLOB_URL=i.createObjectURL(new Blob(["(",r,")();"],{type:"text/javascript"})))),t=new f.Worker(e);var i,r;return t.onmessage=_,t.id=h++,a[t.id]=t}();return r.userStep=t.step,r.userChunk=t.chunk,r.userComplete=t.complete,r.userError=t.error,t.step=M(t.step),t.chunk=M(t.chunk),t.complete=M(t.complete),t.error=M(t.error),delete t.worker,void r.postMessage({input:e,config:t,workerId:r.id})}var n=null;b.NODE_STREAM_INPUT,"string"==typeof e?n=t.download?new l(t):new p(t):!0===e.readable&&M(e.read)&&M(e.on)?n=new g(t):(f.File&&e instanceof File||e instanceof Object)&&(n=new c(t));return n.stream(e)},unparse:function(e,t){var n=!1,_=!0,m=",",y="\r\n",s='"',a=s+s,i=!1,r=null,o=!1;!function(){if("object"!=typeof t)return;"string"!=typeof t.delimiter||b.BAD_DELIMITERS.filter(function(e){return -1!==t.delimiter.indexOf(e)}).length||(m=t.delimiter);("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes);"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(i=t.skipEmptyLines);"string"==typeof t.newline&&(y=t.newline);"string"==typeof t.quoteChar&&(s=t.quoteChar);"boolean"==typeof t.header&&(_=t.header);if(Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");r=t.columns;}void 0!==t.escapeChar&&(a=t.escapeChar+s);("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(o=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/);}();var h=new RegExp(j(s),"g");"string"==typeof e&&(e=JSON.parse(e));if(Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return u(null,e,i);if("object"==typeof e[0])return u(r||Object.keys(e[0]),e,i)}else if("object"==typeof e)return "string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||r),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),u(e.fields||[],e.data||[],i);throw new Error("Unable to serialize unrecognized input");function u(e,t,i){var r="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var n=Array.isArray(e)&&0<e.length,s=!Array.isArray(t[0]);if(n&&_){for(var a=0;a<e.length;a++)0<a&&(r+=m),r+=v(e[a],a);0<t.length&&(r+=y);}for(var o=0;o<t.length;o++){var h=n?e.length:t[o].length,u=!1,f=n?0===Object.keys(t[o]).length:0===t[o].length;if(i&&!n&&(u="greedy"===i?""===t[o].join("").trim():1===t[o].length&&0===t[o][0].length),"greedy"===i&&n){for(var d=[],l=0;l<h;l++){var c=s?e[l]:l;d.push(t[o][c]);}u=""===d.join("").trim();}if(!u){for(var p=0;p<h;p++){0<p&&!f&&(r+=m);var g=n&&s?e[p]:p;r+=v(t[o][g],p);}o<t.length-1&&(!i||0<h&&!f)&&(r+=y);}}return r}function v(e,t){if(null==e)return "";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var i=!1;o&&"string"==typeof e&&o.test(e)&&(e="'"+e,i=!0);var r=e.toString().replace(h,a);return (i=i||!0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||function(e,t){for(var i=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return !0;return !1}(r,b.BAD_DELIMITERS)||-1<r.indexOf(m)||" "===r.charAt(0)||" "===r.charAt(r.length-1))?s+r+s:r}}};if(b.RECORD_SEP=String.fromCharCode(30),b.UNIT_SEP=String.fromCharCode(31),b.BYTE_ORDER_MARK="\ufeff",b.BAD_DELIMITERS=["\r","\n",'"',b.BYTE_ORDER_MARK],b.WORKERS_SUPPORTED=!n&&!!f.Worker,b.NODE_STREAM_INPUT=1,b.LocalChunkSize=10485760,b.RemoteChunkSize=5242880,b.DefaultDelimiter=",",b.Parser=E,b.ParserHandle=i,b.NetworkStreamer=l,b.FileStreamer=c,b.StringStreamer=p,b.ReadableStreamStreamer=g,f.jQuery){var d=f.jQuery;d.fn.parse=function(o){var i=o.config||{},h=[];return this.each(function(e){if(!("INPUT"===d(this).prop("tagName").toUpperCase()&&"file"===d(this).attr("type").toLowerCase()&&f.FileReader)||!this.files||0===this.files.length)return !0;for(var t=0;t<this.files.length;t++)h.push({file:this.files[t],inputElem:this,instanceConfig:d.extend({},i)});}),e(),this;function e(){if(0!==h.length){var e,t,i,r,n=h[0];if(M(o.before)){var s=o.before(n.file,n.inputElem);if("object"==typeof s){if("abort"===s.action)return e="AbortError",t=n.file,i=n.inputElem,r=s.reason,void(M(o.error)&&o.error({name:e},t,i,r));if("skip"===s.action)return void u();"object"==typeof s.config&&(n.instanceConfig=d.extend(n.instanceConfig,s.config));}else if("skip"===s)return void u()}var a=n.instanceConfig.complete;n.instanceConfig.complete=function(e){M(a)&&a(e,n.file,n.inputElem),u();},b.parse(n.file,n.instanceConfig);}else M(o.complete)&&o.complete();}function u(){h.splice(0,1),e();}};}function u(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=w(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null);this._handle=new i(t),(this._handle.streamer=this)._config=t;}.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&M(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(e);void 0!==i&&(e=i);}this.isFirstChunk=!1,this._halted=!1;var r=this._partialLine+e;this._partialLine="";var n=this._handle.parse(r,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var s=n.meta.cursor;this._finished||(this._partialLine=r.substring(s-this._baseIndex),this._baseIndex=s),n&&n.data&&(this._rowCount+=n.data.length);var a=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(o)f.postMessage({results:n,workerId:b.WORKER_ID,finished:a});else if(M(this._config.chunk)&&!t){if(this._config.chunk(n,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);n=void 0,this._completeResults=void 0;}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(n.data),this._completeResults.errors=this._completeResults.errors.concat(n.errors),this._completeResults.meta=n.meta),this._completed||!a||!M(this._config.complete)||n&&n.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),a||n&&n.meta.paused||this._nextChunk(),n}this._halted=!0;},this._sendError=function(e){M(this._config.error)?this._config.error(e):o&&this._config.error&&f.postMessage({workerId:b.WORKER_ID,error:e,finished:!1});};}function l(e){var r;(e=e||{}).chunkSize||(e.chunkSize=b.RemoteChunkSize),u.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded();}:function(){this._readChunk();},this.stream=function(e){this._input=e,this._nextChunk();},this._readChunk=function(){if(this._finished)this._chunkLoaded();else {if(r=new XMLHttpRequest,this._config.withCredentials&&(r.withCredentials=this._config.withCredentials),n||(r.onload=v(this._chunkLoaded,this),r.onerror=v(this._chunkError,this)),r.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var t in e)r.setRequestHeader(t,e[t]);}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;r.setRequestHeader("Range","bytes="+this._start+"-"+i);}try{r.send(this._config.downloadRequestBody);}catch(e){this._chunkError(e.message);}n&&0===r.status&&this._chunkError();}},this._chunkLoaded=function(){4===r.readyState&&(r.status<200||400<=r.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:r.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");if(null===t)return -1;return parseInt(t.substring(t.lastIndexOf("/")+1))}(r),this.parseChunk(r.responseText)));},this._chunkError=function(e){var t=r.statusText||e;this._sendError(new Error(t));};}function c(e){var r,n;(e=e||{}).chunkSize||(e.chunkSize=b.LocalChunkSize),u.call(this,e);var s="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,s?((r=new FileReader).onload=v(this._chunkLoaded,this),r.onerror=v(this._chunkError,this)):r=new FileReaderSync,this._nextChunk();},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk();},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var t=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,t);}var i=r.readAsText(e,this._config.encoding);s||this._chunkLoaded({target:{result:i}});},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result);},this._chunkError=function(){this._sendError(r.error);};}function p(e){var i;u.call(this,e=e||{}),this.stream=function(e){return i=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,t=this._config.chunkSize;return t?(e=i.substring(0,t),i=i.substring(t)):(e=i,i=""),this._finished=!i,this.parseChunk(e)}};}function g(e){u.call(this,e=e||{});var t=[],i=!0,r=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause();},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume();},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError);},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0);},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0;},this._streamData=v(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()));}catch(e){this._streamError(e);}},this),this._streamError=v(function(e){this._streamCleanUp(),this._sendError(e);},this),this._streamEnd=v(function(){this._streamCleanUp(),r=!0,this._streamData("");},this),this._streamCleanUp=v(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError);},this);}function i(m){var a,o,h,r=Math.pow(2,53),n=-r,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,u=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,t=this,i=0,f=0,d=!1,e=!1,l=[],c={data:[],errors:[],meta:{}};if(M(m.step)){var p=m.step;m.step=function(e){if(c=e,_())g();else {if(g(),0===c.data.length)return;i+=e.data.length,m.preview&&i>m.preview?o.abort():(c.data=c.data[0],p(c,t));}};}function y(e){return "greedy"===m.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function g(){return c&&h&&(k("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+b.DefaultDelimiter+"'"),h=!1),m.skipEmptyLines&&(c.data=c.data.filter(function(e){return !y(e)})),_()&&function(){if(!c)return;function e(e,t){M(m.transformHeader)&&(e=m.transformHeader(e,t)),l.push(e);}if(Array.isArray(c.data[0])){for(var t=0;_()&&t<c.data.length;t++)c.data[t].forEach(e);c.data.splice(0,1);}else c.data.forEach(e);}(),function(){if(!c||!m.header&&!m.dynamicTyping&&!m.transform)return c;function e(e,t){var i,r=m.header?{}:[];for(i=0;i<e.length;i++){var n=i,s=e[i];m.header&&(n=i>=l.length?"__parsed_extra":l[i]),m.transform&&(s=m.transform(s,n)),s=v(n,s),"__parsed_extra"===n?(r[n]=r[n]||[],r[n].push(s)):r[n]=s;}return m.header&&(i>l.length?k("FieldMismatch","TooManyFields","Too many fields: expected "+l.length+" fields but parsed "+i,f+t):i<l.length&&k("FieldMismatch","TooFewFields","Too few fields: expected "+l.length+" fields but parsed "+i,f+t)),r}var t=1;!c.data.length||Array.isArray(c.data[0])?(c.data=c.data.map(e),t=c.data.length):c.data=e(c.data,0);m.header&&c.meta&&(c.meta.fields=l);return f+=t,c}()}function _(){return m.header&&0===l.length}function v(e,t){return i=e,m.dynamicTypingFunction&&void 0===m.dynamicTyping[i]&&(m.dynamicTyping[i]=m.dynamicTypingFunction(i)),!0===(m.dynamicTyping[i]||m.dynamicTyping)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(function(e){if(s.test(e)){var t=parseFloat(e);if(n<t&&t<r)return !0}return !1}(t)?parseFloat(t):u.test(t)?new Date(t):""===t?null:t):t;var i;}function k(e,t,i,r){var n={type:e,code:t,message:i};void 0!==r&&(n.row=r),c.errors.push(n);}this.parse=function(e,t,i){var r=m.quoteChar||'"';if(m.newline||(m.newline=function(e,t){e=e.substring(0,1048576);var i=new RegExp(j(t)+"([^]*?)"+j(t),"gm"),r=(e=e.replace(i,"")).split("\r"),n=e.split("\n"),s=1<n.length&&n[0].length<r[0].length;if(1===r.length||s)return "\n";for(var a=0,o=0;o<r.length;o++)"\n"===r[o][0]&&a++;return a>=r.length/2?"\r\n":"\r"}(e,r)),h=!1,m.delimiter)M(m.delimiter)&&(m.delimiter=m.delimiter(e),c.meta.delimiter=m.delimiter);else {var n=function(e,t,i,r,n){var s,a,o,h;n=n||[",","\t","|",";",b.RECORD_SEP,b.UNIT_SEP];for(var u=0;u<n.length;u++){var f=n[u],d=0,l=0,c=0;o=void 0;for(var p=new E({comments:r,delimiter:f,newline:t,preview:10}).parse(e),g=0;g<p.data.length;g++)if(i&&y(p.data[g]))c++;else {var _=p.data[g].length;l+=_,void 0!==o?0<_&&(d+=Math.abs(_-o),o=_):o=_;}0<p.data.length&&(l/=p.data.length-c),(void 0===a||d<=a)&&(void 0===h||h<l)&&1.99<l&&(a=d,s=f,h=l);}return {successful:!!(m.delimiter=s),bestDelimiter:s}}(e,m.newline,m.skipEmptyLines,m.comments,m.delimitersToGuess);n.successful?m.delimiter=n.bestDelimiter:(h=!0,m.delimiter=b.DefaultDelimiter),c.meta.delimiter=m.delimiter;}var s=w(m);return m.preview&&m.header&&s.preview++,a=e,o=new E(s),c=o.parse(a,t,i),g(),d?{meta:{paused:!0}}:c||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,o.abort(),a=M(m.chunk)?"":a.substring(o.getCharIndex());},this.resume=function(){t.streamer._halted?(d=!1,t.streamer.parseChunk(a,!0)):setTimeout(t.resume,3);},this.aborted=function(){return e},this.abort=function(){e=!0,o.abort(),c.meta.aborted=!0,M(m.complete)&&m.complete(c),a="";};}function j(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function E(e){var S,O=(e=e||{}).delimiter,x=e.newline,I=e.comments,T=e.step,D=e.preview,A=e.fastMode,L=S=void 0===e.quoteChar||null===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(L=e.escapeChar),("string"!=typeof O||-1<b.BAD_DELIMITERS.indexOf(O))&&(O=","),I===O)throw new Error("Comment character same as delimiter");!0===I?I="#":("string"!=typeof I||-1<b.BAD_DELIMITERS.indexOf(I))&&(I=!1),"\n"!==x&&"\r"!==x&&"\r\n"!==x&&(x="\n");var F=0,z=!1;this.parse=function(r,t,i){if("string"!=typeof r)throw new Error("Input must be a string");var n=r.length,e=O.length,s=x.length,a=I.length,o=M(T),h=[],u=[],f=[],d=F=0;if(!r)return C();if(A||!1!==A&&-1===r.indexOf(S)){for(var l=r.split(x),c=0;c<l.length;c++){if(f=l[c],F+=f.length,c!==l.length-1)F+=x.length;else if(i)return C();if(!I||f.substring(0,a)!==I){if(o){if(h=[],k(f.split(O)),R(),z)return C()}else k(f.split(O));if(D&&D<=c)return h=h.slice(0,D),C(!0)}}return C()}for(var p=r.indexOf(O,F),g=r.indexOf(x,F),_=new RegExp(j(L)+j(S),"g"),m=r.indexOf(S,F);;)if(r[F]!==S)if(I&&0===f.length&&r.substring(F,F+a)===I){if(-1===g)return C();F=g+s,g=r.indexOf(x,F),p=r.indexOf(O,F);}else if(-1!==p&&(p<g||-1===g))f.push(r.substring(F,p)),F=p+e,p=r.indexOf(O,F);else {if(-1===g)break;if(f.push(r.substring(F,g)),w(g+s),o&&(R(),z))return C();if(D&&h.length>=D)return C(!0)}else for(m=F,F++;;){if(-1===(m=r.indexOf(S,m+1)))return i||u.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:h.length,index:F}),E();if(m===n-1)return E(r.substring(F,m).replace(_,S));if(S!==L||r[m+1]!==L){if(S===L||0===m||r[m-1]!==L){-1!==p&&p<m+1&&(p=r.indexOf(O,m+1)),-1!==g&&g<m+1&&(g=r.indexOf(x,m+1));var y=b(-1===g?p:Math.min(p,g));if(r.substr(m+1+y,e)===O){f.push(r.substring(F,m).replace(_,S)),r[F=m+1+y+e]!==S&&(m=r.indexOf(S,F)),p=r.indexOf(O,F),g=r.indexOf(x,F);break}var v=b(g);if(r.substring(m+1+v,m+1+v+s)===x){if(f.push(r.substring(F,m).replace(_,S)),w(m+1+v+s),p=r.indexOf(O,F),m=r.indexOf(S,F),o&&(R(),z))return C();if(D&&h.length>=D)return C(!0);break}u.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:h.length,index:F}),m++;}}else m++;}return E();function k(e){h.push(e),d=F;}function b(e){var t=0;if(-1!==e){var i=r.substring(m+1,e);i&&""===i.trim()&&(t=i.length);}return t}function E(e){return i||(void 0===e&&(e=r.substring(F)),f.push(e),F=n,k(f),o&&R()),C()}function w(e){F=e,k(f),f=[],g=r.indexOf(x,F);}function C(e){return {data:h,errors:u,meta:{delimiter:O,linebreak:x,aborted:z,truncated:!!e,cursor:d+(t||0)}}}function R(){T(C()),h=[],u=[];}},this.abort=function(){z=!0;},this.getCharIndex=function(){return F};}function _(e){var t=e.data,i=a[t.workerId],r=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var n={abort:function(){r=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}});},pause:y,resume:y};if(M(i.userStep)){for(var s=0;s<t.results.data.length&&(i.userStep({data:t.results.data[s],errors:t.results.errors,meta:t.results.meta},n),!r);s++);delete t.results;}else M(i.userChunk)&&(i.userChunk(t.results,n,t.file),delete t.results);}t.finished&&!r&&m(t.workerId,t.results);}function m(e,t){var i=a[e];M(i.userComplete)&&i.userComplete(t),i.terminate(),delete a[e];}function y(){throw new Error("Not implemented.")}function w(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var i in e)t[i]=w(e[i]);return t}function v(e,t){return function(){e.apply(t,arguments);}}function M(e){return "function"==typeof e}return o&&(f.onmessage=function(e){var t=e.data;void 0===b.WORKER_ID&&t&&(b.WORKER_ID=t.workerId);if("string"==typeof t.input)f.postMessage({workerId:b.WORKER_ID,results:b.parse(t.input,t.config),finished:!0});else if(f.File&&t.input instanceof File||t.input instanceof Object){var i=b.parse(t.input,t.config);i&&f.postMessage({workerId:b.WORKER_ID,results:i,finished:!0});}}),(l.prototype=Object.create(u.prototype)).constructor=l,(c.prototype=Object.create(u.prototype)).constructor=c,(p.prototype=Object.create(p.prototype)).constructor=p,(g.prototype=Object.create(u.prototype)).constructor=g,b});
|
|
735
|
+
}(papaparse_min));
|
|
736
|
+
|
|
737
|
+
var es2018$3 = {};
|
|
738
|
+
|
|
739
|
+
var customError = {};
|
|
740
|
+
|
|
741
|
+
var es2018$2 = {};
|
|
742
|
+
|
|
743
|
+
var middleware = {};
|
|
744
|
+
|
|
745
|
+
var chunkAsync$1 = {};
|
|
746
|
+
|
|
747
|
+
var es2018$1 = {};
|
|
748
|
+
|
|
749
|
+
var go$1 = {};
|
|
750
|
+
|
|
751
|
+
go$1.go = void 0;
|
|
752
|
+
function go(fn) {
|
|
753
|
+
return fn();
|
|
754
|
+
}
|
|
755
|
+
go$1.go = go;
|
|
756
|
+
|
|
757
|
+
(function (exports) {
|
|
758
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
759
|
+
if (k2 === undefined) k2 = k;
|
|
760
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
761
|
+
}) : (function(o, m, k, k2) {
|
|
762
|
+
if (k2 === undefined) k2 = k;
|
|
763
|
+
o[k2] = m[k];
|
|
764
|
+
}));
|
|
765
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
766
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
767
|
+
};__exportStar(go$1, exports);
|
|
1136
768
|
|
|
1137
769
|
}(es2018$1));
|
|
1138
770
|
|
|
771
|
+
chunkAsync$1.chunkAsync = void 0;
|
|
772
|
+
const go_1$f = es2018$1;
|
|
773
|
+
const errors_1$f = es2018$3;
|
|
774
|
+
function chunkAsync(iterable, size) {
|
|
775
|
+
(0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
776
|
+
(0, errors_1$f.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
777
|
+
return (0, go_1$f.go)(async function* () {
|
|
778
|
+
let buffer = [];
|
|
779
|
+
for await (const element of iterable) {
|
|
780
|
+
buffer.push(element);
|
|
781
|
+
if (buffer.length >= size) {
|
|
782
|
+
yield buffer;
|
|
783
|
+
buffer = [];
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
if (buffer.length)
|
|
787
|
+
yield buffer;
|
|
788
|
+
});
|
|
789
|
+
}
|
|
790
|
+
chunkAsync$1.chunkAsync = chunkAsync;
|
|
791
|
+
|
|
792
|
+
var chunkByAsync$1 = {};
|
|
793
|
+
|
|
1139
794
|
chunkByAsync$1.chunkByAsync = void 0;
|
|
1140
|
-
const types_1$k = es2018$
|
|
795
|
+
const types_1$k = es2018$4;
|
|
1141
796
|
function chunkByAsync(iterable, predicate) {
|
|
1142
797
|
if ((0, types_1$k.isAsyncIterable)(iterable)) {
|
|
1143
798
|
return chunkByAsyncIterable(iterable);
|
|
@@ -1198,8 +853,8 @@
|
|
|
1198
853
|
var chunk$1 = {};
|
|
1199
854
|
|
|
1200
855
|
chunk$1.chunk = void 0;
|
|
1201
|
-
const go_1$e = es2018$
|
|
1202
|
-
const errors_1$e = es2018$
|
|
856
|
+
const go_1$e = es2018$1;
|
|
857
|
+
const errors_1$e = es2018$3;
|
|
1203
858
|
function chunk(iterable, size) {
|
|
1204
859
|
(0, errors_1$e.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
1205
860
|
(0, errors_1$e.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
@@ -1221,8 +876,8 @@
|
|
|
1221
876
|
var concatAsync$1 = {};
|
|
1222
877
|
|
|
1223
878
|
concatAsync$1.concatAsync = void 0;
|
|
1224
|
-
const types_1$j = es2018$
|
|
1225
|
-
const go_1$d = es2018$
|
|
879
|
+
const types_1$j = es2018$4;
|
|
880
|
+
const go_1$d = es2018$1;
|
|
1226
881
|
function concatAsync(iterable, ...otherIterables) {
|
|
1227
882
|
return (0, go_1$d.go)(async function* () {
|
|
1228
883
|
for (const iter of [iterable, ...otherIterables]) {
|
|
@@ -1244,7 +899,7 @@
|
|
|
1244
899
|
var concat$1 = {};
|
|
1245
900
|
|
|
1246
901
|
concat$1.concat = void 0;
|
|
1247
|
-
const go_1$c = es2018$
|
|
902
|
+
const go_1$c = es2018$1;
|
|
1248
903
|
function concat(iterable, ...otherIterables) {
|
|
1249
904
|
return (0, go_1$c.go)(function* () {
|
|
1250
905
|
for (const iter of [iterable, ...otherIterables]) {
|
|
@@ -1273,9 +928,9 @@
|
|
|
1273
928
|
utils.copyIterable = copyIterable;
|
|
1274
929
|
|
|
1275
930
|
dropAsync$1.dropAsync = void 0;
|
|
1276
|
-
const go_1$b = es2018$
|
|
931
|
+
const go_1$b = es2018$1;
|
|
1277
932
|
const utils_1$3 = utils;
|
|
1278
|
-
const errors_1$d = es2018$
|
|
933
|
+
const errors_1$d = es2018$3;
|
|
1279
934
|
function dropAsync(iterable, count) {
|
|
1280
935
|
(0, errors_1$d.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1281
936
|
(0, errors_1$d.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1308,9 +963,9 @@
|
|
|
1308
963
|
var dropRightAsync$1 = {};
|
|
1309
964
|
|
|
1310
965
|
dropRightAsync$1.dropRightAsync = void 0;
|
|
1311
|
-
const go_1$a = es2018$
|
|
966
|
+
const go_1$a = es2018$1;
|
|
1312
967
|
const utils_1$2 = utils;
|
|
1313
|
-
const errors_1$c = es2018$
|
|
968
|
+
const errors_1$c = es2018$3;
|
|
1314
969
|
function dropRightAsync(iterable, count) {
|
|
1315
970
|
(0, errors_1$c.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1316
971
|
(0, errors_1$c.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1336,9 +991,9 @@
|
|
|
1336
991
|
var dropRight$1 = {};
|
|
1337
992
|
|
|
1338
993
|
dropRight$1.dropRight = void 0;
|
|
1339
|
-
const go_1$9 = es2018$
|
|
994
|
+
const go_1$9 = es2018$1;
|
|
1340
995
|
const utils_1$1 = utils;
|
|
1341
|
-
const errors_1$b = es2018$
|
|
996
|
+
const errors_1$b = es2018$3;
|
|
1342
997
|
function dropRight(iterable, count) {
|
|
1343
998
|
(0, errors_1$b.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1344
999
|
(0, errors_1$b.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1354,7 +1009,7 @@
|
|
|
1354
1009
|
var dropUntilAsync$1 = {};
|
|
1355
1010
|
|
|
1356
1011
|
dropUntilAsync$1.dropUntilAsync = void 0;
|
|
1357
|
-
const types_1$i = es2018$
|
|
1012
|
+
const types_1$i = es2018$4;
|
|
1358
1013
|
function dropUntilAsync(iterable, predicate) {
|
|
1359
1014
|
if ((0, types_1$i.isAsyncIterable)(iterable)) {
|
|
1360
1015
|
return dropUntilAsyncIterable(iterable);
|
|
@@ -1436,9 +1091,9 @@
|
|
|
1436
1091
|
var drop$1 = {};
|
|
1437
1092
|
|
|
1438
1093
|
drop$1.drop = void 0;
|
|
1439
|
-
const go_1$8 = es2018$
|
|
1094
|
+
const go_1$8 = es2018$1;
|
|
1440
1095
|
const utils_1 = utils;
|
|
1441
|
-
const errors_1$a = es2018$
|
|
1096
|
+
const errors_1$a = es2018$3;
|
|
1442
1097
|
function drop(iterable, count) {
|
|
1443
1098
|
(0, errors_1$a.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1444
1099
|
(0, errors_1$a.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1471,7 +1126,7 @@
|
|
|
1471
1126
|
var filterAsync$1 = {};
|
|
1472
1127
|
|
|
1473
1128
|
filterAsync$1.filterAsync = void 0;
|
|
1474
|
-
const types_1$h = es2018$
|
|
1129
|
+
const types_1$h = es2018$4;
|
|
1475
1130
|
function filterAsync(iterable, predicate) {
|
|
1476
1131
|
if ((0, types_1$h.isAsyncIterable)(iterable)) {
|
|
1477
1132
|
return filterAsyncIterable(iterable);
|
|
@@ -1518,7 +1173,7 @@
|
|
|
1518
1173
|
var flattenByAsync$1 = {};
|
|
1519
1174
|
|
|
1520
1175
|
flattenByAsync$1.flattenByAsync = void 0;
|
|
1521
|
-
const types_1$g = es2018$
|
|
1176
|
+
const types_1$g = es2018$4;
|
|
1522
1177
|
function flattenByAsync(iterable, predicate) {
|
|
1523
1178
|
if ((0, types_1$g.isAsyncIterable)(iterable)) {
|
|
1524
1179
|
return flattenByAsyncIterable(iterable);
|
|
@@ -1558,7 +1213,7 @@
|
|
|
1558
1213
|
|
|
1559
1214
|
flattenDeepAsync$1.flattenDeepAsync = void 0;
|
|
1560
1215
|
const flatten_by_async_1 = flattenByAsync$1;
|
|
1561
|
-
const errors_1$9 = es2018$
|
|
1216
|
+
const errors_1$9 = es2018$3;
|
|
1562
1217
|
function flattenDeepAsync(iterable, depth = Infinity) {
|
|
1563
1218
|
(0, errors_1$9.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
1564
1219
|
(0, errors_1$9.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
@@ -1576,7 +1231,7 @@
|
|
|
1576
1231
|
var flattenBy$1 = {};
|
|
1577
1232
|
|
|
1578
1233
|
flattenBy$1.flattenBy = void 0;
|
|
1579
|
-
const types_1$f = es2018$
|
|
1234
|
+
const types_1$f = es2018$4;
|
|
1580
1235
|
function flattenBy(iterable, predicate) {
|
|
1581
1236
|
return flatten(iterable, 1);
|
|
1582
1237
|
function* flatten(iterable, level) {
|
|
@@ -1599,7 +1254,7 @@
|
|
|
1599
1254
|
|
|
1600
1255
|
flattenDeep$1.flattenDeep = void 0;
|
|
1601
1256
|
const flatten_by_1 = flattenBy$1;
|
|
1602
|
-
const errors_1$8 = es2018$
|
|
1257
|
+
const errors_1$8 = es2018$3;
|
|
1603
1258
|
function flattenDeep(iterable, depth = Infinity) {
|
|
1604
1259
|
(0, errors_1$8.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
1605
1260
|
(0, errors_1$8.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
@@ -1619,7 +1274,7 @@
|
|
|
1619
1274
|
var mapAsync$1 = {};
|
|
1620
1275
|
|
|
1621
1276
|
mapAsync$1.mapAsync = void 0;
|
|
1622
|
-
const types_1$e = es2018$
|
|
1277
|
+
const types_1$e = es2018$4;
|
|
1623
1278
|
function mapAsync(iterable, fn) {
|
|
1624
1279
|
if ((0, types_1$e.isAsyncIterable)(iterable)) {
|
|
1625
1280
|
return mapAsyncIterable(iterable);
|
|
@@ -1659,8 +1314,8 @@
|
|
|
1659
1314
|
var repeatAsync$1 = {};
|
|
1660
1315
|
|
|
1661
1316
|
repeatAsync$1.repeatAsync = void 0;
|
|
1662
|
-
const go_1$7 = es2018$
|
|
1663
|
-
const errors_1$7 = es2018$
|
|
1317
|
+
const go_1$7 = es2018$1;
|
|
1318
|
+
const errors_1$7 = es2018$3;
|
|
1664
1319
|
function repeatAsync(iterable, times) {
|
|
1665
1320
|
(0, errors_1$7.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
1666
1321
|
(0, errors_1$7.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
@@ -1694,8 +1349,8 @@
|
|
|
1694
1349
|
var repeat$1 = {};
|
|
1695
1350
|
|
|
1696
1351
|
repeat$1.repeat = void 0;
|
|
1697
|
-
const go_1$6 = es2018$
|
|
1698
|
-
const errors_1$6 = es2018$
|
|
1352
|
+
const go_1$6 = es2018$1;
|
|
1353
|
+
const errors_1$6 = es2018$3;
|
|
1699
1354
|
function repeat(iterable, times) {
|
|
1700
1355
|
(0, errors_1$6.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
1701
1356
|
(0, errors_1$6.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
@@ -1729,8 +1384,8 @@
|
|
|
1729
1384
|
var sliceAsync$1 = {};
|
|
1730
1385
|
|
|
1731
1386
|
sliceAsync$1.sliceAsync = void 0;
|
|
1732
|
-
const go_1$5 = es2018$
|
|
1733
|
-
const errors_1$5 = es2018$
|
|
1387
|
+
const go_1$5 = es2018$1;
|
|
1388
|
+
const errors_1$5 = es2018$3;
|
|
1734
1389
|
function sliceAsync(iterable, start, end = Infinity) {
|
|
1735
1390
|
(0, errors_1$5.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
1736
1391
|
(0, errors_1$5.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
@@ -1752,8 +1407,8 @@
|
|
|
1752
1407
|
var slice$1 = {};
|
|
1753
1408
|
|
|
1754
1409
|
slice$1.slice = void 0;
|
|
1755
|
-
const go_1$4 = es2018$
|
|
1756
|
-
const errors_1$4 = es2018$
|
|
1410
|
+
const go_1$4 = es2018$1;
|
|
1411
|
+
const errors_1$4 = es2018$3;
|
|
1757
1412
|
function slice(iterable, start, end = Infinity) {
|
|
1758
1413
|
(0, errors_1$4.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
1759
1414
|
(0, errors_1$4.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
@@ -1793,7 +1448,7 @@
|
|
|
1793
1448
|
var splitByAsync$1 = {};
|
|
1794
1449
|
|
|
1795
1450
|
splitByAsync$1.splitByAsync = void 0;
|
|
1796
|
-
const types_1$d = es2018$
|
|
1451
|
+
const types_1$d = es2018$4;
|
|
1797
1452
|
function splitByAsync(iterable, predicate) {
|
|
1798
1453
|
if ((0, types_1$d.isAsyncIterable)(iterable)) {
|
|
1799
1454
|
return splitByAsyncIterable(iterable);
|
|
@@ -1875,8 +1530,8 @@
|
|
|
1875
1530
|
var takeAsync$1 = {};
|
|
1876
1531
|
|
|
1877
1532
|
takeAsync$1.takeAsync = void 0;
|
|
1878
|
-
const go_1$3 = es2018$
|
|
1879
|
-
const errors_1$3 = es2018$
|
|
1533
|
+
const go_1$3 = es2018$1;
|
|
1534
|
+
const errors_1$3 = es2018$3;
|
|
1880
1535
|
function takeAsync(iterable, count) {
|
|
1881
1536
|
(0, errors_1$3.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1882
1537
|
(0, errors_1$3.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1896,8 +1551,8 @@
|
|
|
1896
1551
|
var takeRightAsync$1 = {};
|
|
1897
1552
|
|
|
1898
1553
|
takeRightAsync$1.takeRightAsync = void 0;
|
|
1899
|
-
const go_1$2 = es2018$
|
|
1900
|
-
const errors_1$2 = es2018$
|
|
1554
|
+
const go_1$2 = es2018$1;
|
|
1555
|
+
const errors_1$2 = es2018$3;
|
|
1901
1556
|
function takeRightAsync(iterable, count) {
|
|
1902
1557
|
(0, errors_1$2.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1903
1558
|
(0, errors_1$2.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1926,8 +1581,8 @@
|
|
|
1926
1581
|
var takeRight$1 = {};
|
|
1927
1582
|
|
|
1928
1583
|
takeRight$1.takeRight = void 0;
|
|
1929
|
-
const go_1$1 = es2018$
|
|
1930
|
-
const errors_1$1 = es2018$
|
|
1584
|
+
const go_1$1 = es2018$1;
|
|
1585
|
+
const errors_1$1 = es2018$3;
|
|
1931
1586
|
function takeRight(iterable, count) {
|
|
1932
1587
|
(0, errors_1$1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1933
1588
|
(0, errors_1$1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1956,7 +1611,7 @@
|
|
|
1956
1611
|
var takeUntilAsync$1 = {};
|
|
1957
1612
|
|
|
1958
1613
|
takeUntilAsync$1.takeUntilAsync = void 0;
|
|
1959
|
-
const types_1$c = es2018$
|
|
1614
|
+
const types_1$c = es2018$4;
|
|
1960
1615
|
function takeUntilAsync(iterable, predicate) {
|
|
1961
1616
|
if ((0, types_1$c.isAsyncIterable)(iterable)) {
|
|
1962
1617
|
return takeUntilAsyncIterable(iterable);
|
|
@@ -2002,8 +1657,8 @@
|
|
|
2002
1657
|
var take$1 = {};
|
|
2003
1658
|
|
|
2004
1659
|
take$1.take = void 0;
|
|
2005
|
-
const go_1 = es2018$
|
|
2006
|
-
const errors_1 = es2018$
|
|
1660
|
+
const go_1 = es2018$1;
|
|
1661
|
+
const errors_1 = es2018$3;
|
|
2007
1662
|
function take(iterable, count) {
|
|
2008
1663
|
(0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
2009
1664
|
(0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -2023,7 +1678,7 @@
|
|
|
2023
1678
|
var tapAsync$1 = {};
|
|
2024
1679
|
|
|
2025
1680
|
tapAsync$1.tapAsync = void 0;
|
|
2026
|
-
const types_1$b = es2018$
|
|
1681
|
+
const types_1$b = es2018$4;
|
|
2027
1682
|
function tapAsync(iterable, fn) {
|
|
2028
1683
|
if ((0, types_1$b.isAsyncIterable)(iterable)) {
|
|
2029
1684
|
return tapAsyncIterable(iterable);
|
|
@@ -2106,7 +1761,7 @@
|
|
|
2106
1761
|
var uniqByAsync$1 = {};
|
|
2107
1762
|
|
|
2108
1763
|
uniqByAsync$1.uniqByAsync = void 0;
|
|
2109
|
-
const types_1$a = es2018$
|
|
1764
|
+
const types_1$a = es2018$4;
|
|
2110
1765
|
function uniqByAsync(iterable, fn) {
|
|
2111
1766
|
if ((0, types_1$a.isAsyncIterable)(iterable)) {
|
|
2112
1767
|
return uniqByAsyncIterable(iterable);
|
|
@@ -2175,7 +1830,7 @@
|
|
|
2175
1830
|
var zipAsync$1 = {};
|
|
2176
1831
|
|
|
2177
1832
|
zipAsync$1.zipAsync = void 0;
|
|
2178
|
-
const types_1$9 = es2018$
|
|
1833
|
+
const types_1$9 = es2018$4;
|
|
2179
1834
|
var Kind;
|
|
2180
1835
|
(function (Kind) {
|
|
2181
1836
|
Kind[Kind["Sync"] = 0] = "Sync";
|
|
@@ -2265,7 +1920,11 @@
|
|
|
2265
1920
|
(function (exports) {
|
|
2266
1921
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2267
1922
|
if (k2 === undefined) k2 = k;
|
|
2268
|
-
Object.
|
|
1923
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
1924
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
1925
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
1926
|
+
}
|
|
1927
|
+
Object.defineProperty(o, k2, desc);
|
|
2269
1928
|
}) : (function(o, m, k, k2) {
|
|
2270
1929
|
if (k2 === undefined) k2 = k;
|
|
2271
1930
|
o[k2] = m[k];
|
|
@@ -2335,7 +1994,7 @@
|
|
|
2335
1994
|
var eachAsync$1 = {};
|
|
2336
1995
|
|
|
2337
1996
|
eachAsync$1.eachAsync = void 0;
|
|
2338
|
-
const types_1$8 = es2018$
|
|
1997
|
+
const types_1$8 = es2018$4;
|
|
2339
1998
|
function eachAsync(iterable, fn) {
|
|
2340
1999
|
if ((0, types_1$8.isAsyncIterable)(iterable)) {
|
|
2341
2000
|
return eachAsyncIterable(iterable);
|
|
@@ -2375,7 +2034,7 @@
|
|
|
2375
2034
|
var everyAsync$1 = {};
|
|
2376
2035
|
|
|
2377
2036
|
everyAsync$1.everyAsync = void 0;
|
|
2378
|
-
const types_1$7 = es2018$
|
|
2037
|
+
const types_1$7 = es2018$4;
|
|
2379
2038
|
function everyAsync(iterable, predicate) {
|
|
2380
2039
|
if ((0, types_1$7.isAsyncIterable)(iterable)) {
|
|
2381
2040
|
return everyAsyncIterable(iterable);
|
|
@@ -2421,7 +2080,7 @@
|
|
|
2421
2080
|
var findAsync$1 = {};
|
|
2422
2081
|
|
|
2423
2082
|
findAsync$1.findAsync = void 0;
|
|
2424
|
-
const types_1$6 = es2018$
|
|
2083
|
+
const types_1$6 = es2018$4;
|
|
2425
2084
|
function findAsync(iterable, predicate) {
|
|
2426
2085
|
if ((0, types_1$6.isAsyncIterable)(iterable)) {
|
|
2427
2086
|
return findAsyncIterable(iterable);
|
|
@@ -2545,7 +2204,7 @@
|
|
|
2545
2204
|
var reduceAsync$1 = {};
|
|
2546
2205
|
|
|
2547
2206
|
reduceAsync$1.reduceAsync = void 0;
|
|
2548
|
-
const types_1$5 = es2018$
|
|
2207
|
+
const types_1$5 = es2018$4;
|
|
2549
2208
|
function reduceAsync(iterable, fn, initialValue) {
|
|
2550
2209
|
if ((0, types_1$5.isUndefined)(initialValue)) {
|
|
2551
2210
|
return reduceAsyncWithoutInitialValue(iterable, fn);
|
|
@@ -2641,7 +2300,7 @@
|
|
|
2641
2300
|
var reduce$1 = {};
|
|
2642
2301
|
|
|
2643
2302
|
reduce$1.reduce = void 0;
|
|
2644
|
-
const types_1$4 = es2018$
|
|
2303
|
+
const types_1$4 = es2018$4;
|
|
2645
2304
|
function reduce(iterable, fn, initialValue) {
|
|
2646
2305
|
if ((0, types_1$4.isUndefined)(initialValue)) {
|
|
2647
2306
|
return reduceWithoutInitialValue(iterable, fn);
|
|
@@ -2688,7 +2347,7 @@
|
|
|
2688
2347
|
var someAsync$1 = {};
|
|
2689
2348
|
|
|
2690
2349
|
someAsync$1.someAsync = void 0;
|
|
2691
|
-
const types_1$3 = es2018$
|
|
2350
|
+
const types_1$3 = es2018$4;
|
|
2692
2351
|
function someAsync(iterable, predicate) {
|
|
2693
2352
|
if ((0, types_1$3.isAsyncIterable)(iterable)) {
|
|
2694
2353
|
return someAsyncIterable(iterable);
|
|
@@ -2826,7 +2485,11 @@
|
|
|
2826
2485
|
(function (exports) {
|
|
2827
2486
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2828
2487
|
if (k2 === undefined) k2 = k;
|
|
2829
|
-
Object.
|
|
2488
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2489
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2490
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
2491
|
+
}
|
|
2492
|
+
Object.defineProperty(o, k2, desc);
|
|
2830
2493
|
}) : (function(o, m, k, k2) {
|
|
2831
2494
|
if (k2 === undefined) k2 = k;
|
|
2832
2495
|
o[k2] = m[k];
|
|
@@ -2862,7 +2525,11 @@
|
|
|
2862
2525
|
(function (exports) {
|
|
2863
2526
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2864
2527
|
if (k2 === undefined) k2 = k;
|
|
2865
|
-
Object.
|
|
2528
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2529
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2530
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
2531
|
+
}
|
|
2532
|
+
Object.defineProperty(o, k2, desc);
|
|
2866
2533
|
}) : (function(o, m, k, k2) {
|
|
2867
2534
|
if (k2 === undefined) k2 = k;
|
|
2868
2535
|
o[k2] = m[k];
|
|
@@ -2872,7 +2539,7 @@
|
|
|
2872
2539
|
};__exportStar(middleware, exports);
|
|
2873
2540
|
__exportStar(output, exports);
|
|
2874
2541
|
|
|
2875
|
-
}(es2018$
|
|
2542
|
+
}(es2018$2));
|
|
2876
2543
|
|
|
2877
2544
|
var getErrorNames$1 = {};
|
|
2878
2545
|
|
|
@@ -2890,7 +2557,7 @@
|
|
|
2890
2557
|
traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = traverseErrorPrototypeChain;
|
|
2891
2558
|
|
|
2892
2559
|
getErrorNames$1.getErrorNames = void 0;
|
|
2893
|
-
const types_1$2 = es2018$
|
|
2560
|
+
const types_1$2 = es2018$4;
|
|
2894
2561
|
const traverse_error_prototype_chain_1 = traverseErrorPrototypeChain$1;
|
|
2895
2562
|
function* getErrorNames(err) {
|
|
2896
2563
|
var _a;
|
|
@@ -2911,7 +2578,7 @@
|
|
|
2911
2578
|
var serializableError = {};
|
|
2912
2579
|
|
|
2913
2580
|
serializableError.isSerializableError = void 0;
|
|
2914
|
-
const types_1$1 = es2018$
|
|
2581
|
+
const types_1$1 = es2018$4;
|
|
2915
2582
|
function isSerializableError(val) {
|
|
2916
2583
|
return (0, types_1$1.isObject)(val)
|
|
2917
2584
|
&& (0, types_1$1.isString)(val.name)
|
|
@@ -2921,10 +2588,10 @@
|
|
|
2921
2588
|
}
|
|
2922
2589
|
serializableError.isSerializableError = isSerializableError;
|
|
2923
2590
|
|
|
2924
|
-
customError
|
|
2925
|
-
const iterable_operator_1$1 = es2018$
|
|
2591
|
+
customError.CustomError = void 0;
|
|
2592
|
+
const iterable_operator_1$1 = es2018$2;
|
|
2926
2593
|
const get_error_names_1$1 = getErrorNames$1;
|
|
2927
|
-
const types_1 = es2018$
|
|
2594
|
+
const types_1 = es2018$4;
|
|
2928
2595
|
const serializable_error_1 = serializableError;
|
|
2929
2596
|
class CustomError extends Error {
|
|
2930
2597
|
get name() {
|
|
@@ -2946,12 +2613,12 @@
|
|
|
2946
2613
|
}
|
|
2947
2614
|
}
|
|
2948
2615
|
}
|
|
2949
|
-
customError
|
|
2616
|
+
customError.CustomError = CustomError;
|
|
2950
2617
|
|
|
2951
2618
|
var assertionError = {};
|
|
2952
2619
|
|
|
2953
2620
|
assertionError.AssertionError = void 0;
|
|
2954
|
-
const custom_error_1 = customError
|
|
2621
|
+
const custom_error_1 = customError;
|
|
2955
2622
|
class AssertionError extends custom_error_1.CustomError {
|
|
2956
2623
|
}
|
|
2957
2624
|
assertionError.AssertionError = AssertionError;
|
|
@@ -2960,7 +2627,7 @@
|
|
|
2960
2627
|
|
|
2961
2628
|
normalize$1.normalize = void 0;
|
|
2962
2629
|
const get_error_names_1 = getErrorNames$1;
|
|
2963
|
-
const iterable_operator_1 = es2018$
|
|
2630
|
+
const iterable_operator_1 = es2018$2;
|
|
2964
2631
|
function normalize(err) {
|
|
2965
2632
|
var _a;
|
|
2966
2633
|
const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
|
|
@@ -3036,14 +2703,18 @@
|
|
|
3036
2703
|
(function (exports) {
|
|
3037
2704
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3038
2705
|
if (k2 === undefined) k2 = k;
|
|
3039
|
-
Object.
|
|
2706
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2707
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2708
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
2709
|
+
}
|
|
2710
|
+
Object.defineProperty(o, k2, desc);
|
|
3040
2711
|
}) : (function(o, m, k, k2) {
|
|
3041
2712
|
if (k2 === undefined) k2 = k;
|
|
3042
2713
|
o[k2] = m[k];
|
|
3043
2714
|
}));
|
|
3044
2715
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
3045
2716
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
3046
|
-
};__exportStar(customError
|
|
2717
|
+
};__exportStar(customError, exports);
|
|
3047
2718
|
__exportStar(assertionError, exports);
|
|
3048
2719
|
__exportStar(serializableError, exports);
|
|
3049
2720
|
__exportStar(normalize$1, exports);
|
|
@@ -3052,12 +2723,12 @@
|
|
|
3052
2723
|
__exportStar(getErrorNames$1, exports);
|
|
3053
2724
|
__exportStar(traverseErrorPrototypeChain$1, exports);
|
|
3054
2725
|
|
|
3055
|
-
}(es2018$
|
|
2726
|
+
}(es2018$3));
|
|
3056
2727
|
|
|
3057
2728
|
function csv(payload) {
|
|
3058
|
-
es2018$
|
|
2729
|
+
es2018$3.assert(payload.length > 0, 'payload must be a non-empty array');
|
|
3059
2730
|
return (options) => {
|
|
3060
|
-
const headers = new es2018$
|
|
2731
|
+
const headers = new es2018$5.Headers(options.headers);
|
|
3061
2732
|
headers.set('Content-Type', 'text/csv');
|
|
3062
2733
|
return {
|
|
3063
2734
|
...options,
|
|
@@ -3082,7 +2753,7 @@
|
|
|
3082
2753
|
|
|
3083
2754
|
function header(name, value) {
|
|
3084
2755
|
return (options) => {
|
|
3085
|
-
const headers = new es2018$
|
|
2756
|
+
const headers = new es2018$5.Headers(options.headers);
|
|
3086
2757
|
headers.set(name, value);
|
|
3087
2758
|
return {
|
|
3088
2759
|
...options,
|
|
@@ -3093,7 +2764,7 @@
|
|
|
3093
2764
|
|
|
3094
2765
|
function appendHeader(name, value) {
|
|
3095
2766
|
return (options) => {
|
|
3096
|
-
const headers = new es2018$
|
|
2767
|
+
const headers = new es2018$5.Headers(options.headers);
|
|
3097
2768
|
headers.append(name, value);
|
|
3098
2769
|
return {
|
|
3099
2770
|
...options,
|
|
@@ -3104,7 +2775,7 @@
|
|
|
3104
2775
|
|
|
3105
2776
|
function headers(headers) {
|
|
3106
2777
|
return (options) => {
|
|
3107
|
-
const newHeaders = new es2018$
|
|
2778
|
+
const newHeaders = new es2018$5.Headers(options.headers);
|
|
3108
2779
|
for (const [name, value] of Object.entries(headers)) {
|
|
3109
2780
|
newHeaders.set(name, value);
|
|
3110
2781
|
}
|
|
@@ -3206,10 +2877,10 @@
|
|
|
3206
2877
|
|
|
3207
2878
|
function formDataField(name, value) {
|
|
3208
2879
|
return (options) => {
|
|
3209
|
-
const formData = options.payload instanceof es2018$
|
|
2880
|
+
const formData = options.payload instanceof es2018$5.FormData
|
|
3210
2881
|
? cloneFormData(options.payload)
|
|
3211
|
-
: new es2018$
|
|
3212
|
-
if (es2018$
|
|
2882
|
+
: new es2018$5.FormData();
|
|
2883
|
+
if (es2018$4.isArray(value)) {
|
|
3213
2884
|
value.forEach(x => formData.append(name, x));
|
|
3214
2885
|
}
|
|
3215
2886
|
else {
|
|
@@ -3222,7 +2893,7 @@
|
|
|
3222
2893
|
};
|
|
3223
2894
|
}
|
|
3224
2895
|
function cloneFormData(formData) {
|
|
3225
|
-
const result = new es2018$
|
|
2896
|
+
const result = new es2018$5.FormData();
|
|
3226
2897
|
for (const [name, value] of formData.entries()) {
|
|
3227
2898
|
result.append(name, value);
|
|
3228
2899
|
}
|
|
@@ -3314,7 +2985,7 @@
|
|
|
3314
2985
|
exports.header = header;
|
|
3315
2986
|
exports.headers = headers;
|
|
3316
2987
|
exports.host = host;
|
|
3317
|
-
exports.json = json
|
|
2988
|
+
exports.json = json;
|
|
3318
2989
|
exports.keepalive = keepalive;
|
|
3319
2990
|
exports.patch = patch;
|
|
3320
2991
|
exports.pathname = pathname;
|
|
@@ -3326,7 +2997,7 @@
|
|
|
3326
2997
|
exports.searchParams = searchParams;
|
|
3327
2998
|
exports.signal = signal;
|
|
3328
2999
|
exports.text = text;
|
|
3329
|
-
exports.url = url
|
|
3000
|
+
exports.url = url;
|
|
3330
3001
|
|
|
3331
3002
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3332
3003
|
|