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/es2015/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,633 +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
|
-
|
|
400
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
401
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
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;
|
|
427
|
-
}
|
|
428
|
-
object$1.isntEmptyObject = isntEmptyObject$1;
|
|
429
|
-
|
|
430
|
-
var number$1 = {};
|
|
431
|
-
|
|
432
|
-
number$1.isntNumber = number$1.isNumber = void 0;
|
|
433
|
-
function isNumber$1(val) {
|
|
434
|
-
return typeof val === 'number';
|
|
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 Object.assign(Object.assign({}, options), { url });
|
|
608
|
-
};
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
function text(payload) {
|
|
612
|
-
return (options) => {
|
|
613
|
-
const headers = new es2018$7.Headers(options.headers);
|
|
614
|
-
headers.set('Content-Type', 'application/x-www-form-urlencoded');
|
|
615
|
-
return Object.assign(Object.assign({}, options), { headers,
|
|
616
|
-
payload });
|
|
617
|
-
};
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
function json$1(payload) {
|
|
621
|
-
return (options) => {
|
|
622
|
-
const headers = new es2018$7.Headers(options.headers);
|
|
623
|
-
headers.set('Content-Type', 'application/json');
|
|
624
|
-
return Object.assign(Object.assign({}, options), { headers, payload: JSON.stringify(payload) });
|
|
625
|
-
};
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
var papaparse_min = {exports: {}};
|
|
629
|
-
|
|
630
|
-
/* @license
|
|
631
|
-
Papa Parse
|
|
632
|
-
v5.3.1
|
|
633
|
-
https://github.com/mholt/PapaParse
|
|
634
|
-
License: MIT
|
|
635
|
-
*/
|
|
636
|
-
|
|
637
|
-
(function (module, exports) {
|
|
638
|
-
!function(e,t){module.exports=t();}(commonjsGlobal,function s(){var f="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==f?f:{};var n=!f.document&&!!f.postMessage,o=n&&/blob:/i.test((f.location||{}).protocol),a={},h=0,b={parse:function(e,t){var i=(t=t||{}).dynamicTyping||!1;M(i)&&(t.dynamicTypingFunction=i,i={});if(t.dynamicTyping=i,t.transform=!!M(t.transform)&&t.transform,t.worker&&b.WORKERS_SUPPORTED){var r=function(){if(!b.WORKERS_SUPPORTED)return !1;var e=(i=f.URL||f.webkitURL||null,r=s.toString(),b.BLOB_URL||(b.BLOB_URL=i.createObjectURL(new Blob(["(",r,")();"],{type:"text/javascript"})))),t=new f.Worker(e);var i,r;return t.onmessage=_,t.id=h++,a[t.id]=t}();return r.userStep=t.step,r.userChunk=t.chunk,r.userComplete=t.complete,r.userError=t.error,t.step=M(t.step),t.chunk=M(t.chunk),t.complete=M(t.complete),t.error=M(t.error),delete t.worker,void r.postMessage({input:e,config:t,workerId:r.id})}var n=null;b.NODE_STREAM_INPUT,"string"==typeof e?n=t.download?new l(t):new p(t):!0===e.readable&&M(e.read)&&M(e.on)?n=new g(t):(f.File&&e instanceof File||e instanceof Object)&&(n=new c(t));return n.stream(e)},unparse:function(e,t){var n=!1,_=!0,m=",",y="\r\n",s='"',a=s+s,i=!1,r=null,o=!1;!function(){if("object"!=typeof t)return;"string"!=typeof t.delimiter||b.BAD_DELIMITERS.filter(function(e){return -1!==t.delimiter.indexOf(e)}).length||(m=t.delimiter);("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes);"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(i=t.skipEmptyLines);"string"==typeof t.newline&&(y=t.newline);"string"==typeof t.quoteChar&&(s=t.quoteChar);"boolean"==typeof t.header&&(_=t.header);if(Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");r=t.columns;}void 0!==t.escapeChar&&(a=t.escapeChar+s);"boolean"==typeof t.escapeFormulae&&(o=t.escapeFormulae);}();var h=new RegExp(j(s),"g");"string"==typeof e&&(e=JSON.parse(e));if(Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return u(null,e,i);if("object"==typeof e[0])return u(r||Object.keys(e[0]),e,i)}else if("object"==typeof e)return "string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),u(e.fields||[],e.data||[],i);throw new Error("Unable to serialize unrecognized input");function u(e,t,i){var r="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var n=Array.isArray(e)&&0<e.length,s=!Array.isArray(t[0]);if(n&&_){for(var a=0;a<e.length;a++)0<a&&(r+=m),r+=v(e[a],a);0<t.length&&(r+=y);}for(var o=0;o<t.length;o++){var h=n?e.length:t[o].length,u=!1,f=n?0===Object.keys(t[o]).length:0===t[o].length;if(i&&!n&&(u="greedy"===i?""===t[o].join("").trim():1===t[o].length&&0===t[o][0].length),"greedy"===i&&n){for(var d=[],l=0;l<h;l++){var c=s?e[l]:l;d.push(t[o][c]);}u=""===d.join("").trim();}if(!u){for(var p=0;p<h;p++){0<p&&!f&&(r+=m);var g=n&&s?e[p]:p;r+=v(t[o][g],p);}o<t.length-1&&(!i||0<h&&!f)&&(r+=y);}}return r}function v(e,t){if(null==e)return "";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);!0===o&&"string"==typeof e&&null!==e.match(/^[=+\-@].*$/)&&(e="'"+e);var i=e.toString().replace(h,a),r="boolean"==typeof n&&n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||function(e,t){for(var i=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return !0;return !1}(i,b.BAD_DELIMITERS)||-1<i.indexOf(m)||" "===i.charAt(0)||" "===i.charAt(i.length-1);return r?s+i+s:i}}};if(b.RECORD_SEP=String.fromCharCode(30),b.UNIT_SEP=String.fromCharCode(31),b.BYTE_ORDER_MARK="\ufeff",b.BAD_DELIMITERS=["\r","\n",'"',b.BYTE_ORDER_MARK],b.WORKERS_SUPPORTED=!n&&!!f.Worker,b.NODE_STREAM_INPUT=1,b.LocalChunkSize=10485760,b.RemoteChunkSize=5242880,b.DefaultDelimiter=",",b.Parser=E,b.ParserHandle=i,b.NetworkStreamer=l,b.FileStreamer=c,b.StringStreamer=p,b.ReadableStreamStreamer=g,f.jQuery){var d=f.jQuery;d.fn.parse=function(o){var i=o.config||{},h=[];return this.each(function(e){if(!("INPUT"===d(this).prop("tagName").toUpperCase()&&"file"===d(this).attr("type").toLowerCase()&&f.FileReader)||!this.files||0===this.files.length)return !0;for(var t=0;t<this.files.length;t++)h.push({file:this.files[t],inputElem:this,instanceConfig:d.extend({},i)});}),e(),this;function e(){if(0!==h.length){var e,t,i,r,n=h[0];if(M(o.before)){var s=o.before(n.file,n.inputElem);if("object"==typeof s){if("abort"===s.action)return e="AbortError",t=n.file,i=n.inputElem,r=s.reason,void(M(o.error)&&o.error({name:e},t,i,r));if("skip"===s.action)return void u();"object"==typeof s.config&&(n.instanceConfig=d.extend(n.instanceConfig,s.config));}else if("skip"===s)return void u()}var a=n.instanceConfig.complete;n.instanceConfig.complete=function(e){M(a)&&a(e,n.file,n.inputElem),u();},b.parse(n.file,n.instanceConfig);}else M(o.complete)&&o.complete();}function u(){h.splice(0,1),e();}};}function u(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=w(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null);this._handle=new i(t),(this._handle.streamer=this)._config=t;}.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&M(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(e);void 0!==i&&(e=i);}this.isFirstChunk=!1,this._halted=!1;var r=this._partialLine+e;this._partialLine="";var n=this._handle.parse(r,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var s=n.meta.cursor;this._finished||(this._partialLine=r.substring(s-this._baseIndex),this._baseIndex=s),n&&n.data&&(this._rowCount+=n.data.length);var a=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(o)f.postMessage({results:n,workerId:b.WORKER_ID,finished:a});else if(M(this._config.chunk)&&!t){if(this._config.chunk(n,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);n=void 0,this._completeResults=void 0;}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(n.data),this._completeResults.errors=this._completeResults.errors.concat(n.errors),this._completeResults.meta=n.meta),this._completed||!a||!M(this._config.complete)||n&&n.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),a||n&&n.meta.paused||this._nextChunk(),n}this._halted=!0;},this._sendError=function(e){M(this._config.error)?this._config.error(e):o&&this._config.error&&f.postMessage({workerId:b.WORKER_ID,error:e,finished:!1});};}function l(e){var r;(e=e||{}).chunkSize||(e.chunkSize=b.RemoteChunkSize),u.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded();}:function(){this._readChunk();},this.stream=function(e){this._input=e,this._nextChunk();},this._readChunk=function(){if(this._finished)this._chunkLoaded();else {if(r=new XMLHttpRequest,this._config.withCredentials&&(r.withCredentials=this._config.withCredentials),n||(r.onload=v(this._chunkLoaded,this),r.onerror=v(this._chunkError,this)),r.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var t in e)r.setRequestHeader(t,e[t]);}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;r.setRequestHeader("Range","bytes="+this._start+"-"+i);}try{r.send(this._config.downloadRequestBody);}catch(e){this._chunkError(e.message);}n&&0===r.status&&this._chunkError();}},this._chunkLoaded=function(){4===r.readyState&&(r.status<200||400<=r.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:r.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");if(null===t)return -1;return parseInt(t.substring(t.lastIndexOf("/")+1))}(r),this.parseChunk(r.responseText)));},this._chunkError=function(e){var t=r.statusText||e;this._sendError(new Error(t));};}function c(e){var r,n;(e=e||{}).chunkSize||(e.chunkSize=b.LocalChunkSize),u.call(this,e);var s="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,s?((r=new FileReader).onload=v(this._chunkLoaded,this),r.onerror=v(this._chunkError,this)):r=new FileReaderSync,this._nextChunk();},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk();},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var t=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,t);}var i=r.readAsText(e,this._config.encoding);s||this._chunkLoaded({target:{result:i}});},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result);},this._chunkError=function(){this._sendError(r.error);};}function p(e){var i;u.call(this,e=e||{}),this.stream=function(e){return i=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,t=this._config.chunkSize;return t?(e=i.substring(0,t),i=i.substring(t)):(e=i,i=""),this._finished=!i,this.parseChunk(e)}};}function g(e){u.call(this,e=e||{});var t=[],i=!0,r=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause();},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume();},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError);},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0);},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0;},this._streamData=v(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()));}catch(e){this._streamError(e);}},this),this._streamError=v(function(e){this._streamCleanUp(),this._sendError(e);},this),this._streamEnd=v(function(){this._streamCleanUp(),r=!0,this._streamData("");},this),this._streamCleanUp=v(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError);},this);}function i(m){var a,o,h,r=Math.pow(2,53),n=-r,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,u=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,t=this,i=0,f=0,d=!1,e=!1,l=[],c={data:[],errors:[],meta:{}};if(M(m.step)){var p=m.step;m.step=function(e){if(c=e,_())g();else {if(g(),0===c.data.length)return;i+=e.data.length,m.preview&&i>m.preview?o.abort():(c.data=c.data[0],p(c,t));}};}function y(e){return "greedy"===m.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function g(){if(c&&h&&(k("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+b.DefaultDelimiter+"'"),h=!1),m.skipEmptyLines)for(var e=0;e<c.data.length;e++)y(c.data[e])&&c.data.splice(e--,1);return _()&&function(){if(!c)return;function e(e,t){M(m.transformHeader)&&(e=m.transformHeader(e,t)),l.push(e);}if(Array.isArray(c.data[0])){for(var t=0;_()&&t<c.data.length;t++)c.data[t].forEach(e);c.data.splice(0,1);}else c.data.forEach(e);}(),function(){if(!c||!m.header&&!m.dynamicTyping&&!m.transform)return c;function e(e,t){var i,r=m.header?{}:[];for(i=0;i<e.length;i++){var n=i,s=e[i];m.header&&(n=i>=l.length?"__parsed_extra":l[i]),m.transform&&(s=m.transform(s,n)),s=v(n,s),"__parsed_extra"===n?(r[n]=r[n]||[],r[n].push(s)):r[n]=s;}return m.header&&(i>l.length?k("FieldMismatch","TooManyFields","Too many fields: expected "+l.length+" fields but parsed "+i,f+t):i<l.length&&k("FieldMismatch","TooFewFields","Too few fields: expected "+l.length+" fields but parsed "+i,f+t)),r}var t=1;!c.data.length||Array.isArray(c.data[0])?(c.data=c.data.map(e),t=c.data.length):c.data=e(c.data,0);m.header&&c.meta&&(c.meta.fields=l);return f+=t,c}()}function _(){return m.header&&0===l.length}function v(e,t){return i=e,m.dynamicTypingFunction&&void 0===m.dynamicTyping[i]&&(m.dynamicTyping[i]=m.dynamicTypingFunction(i)),!0===(m.dynamicTyping[i]||m.dynamicTyping)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(function(e){if(s.test(e)){var t=parseFloat(e);if(n<t&&t<r)return !0}return !1}(t)?parseFloat(t):u.test(t)?new Date(t):""===t?null:t):t;var i;}function k(e,t,i,r){var n={type:e,code:t,message:i};void 0!==r&&(n.row=r),c.errors.push(n);}this.parse=function(e,t,i){var r=m.quoteChar||'"';if(m.newline||(m.newline=function(e,t){e=e.substring(0,1048576);var i=new RegExp(j(t)+"([^]*?)"+j(t),"gm"),r=(e=e.replace(i,"")).split("\r"),n=e.split("\n"),s=1<n.length&&n[0].length<r[0].length;if(1===r.length||s)return "\n";for(var a=0,o=0;o<r.length;o++)"\n"===r[o][0]&&a++;return a>=r.length/2?"\r\n":"\r"}(e,r)),h=!1,m.delimiter)M(m.delimiter)&&(m.delimiter=m.delimiter(e),c.meta.delimiter=m.delimiter);else {var n=function(e,t,i,r,n){var s,a,o,h;n=n||[",","\t","|",";",b.RECORD_SEP,b.UNIT_SEP];for(var u=0;u<n.length;u++){var f=n[u],d=0,l=0,c=0;o=void 0;for(var p=new E({comments:r,delimiter:f,newline:t,preview:10}).parse(e),g=0;g<p.data.length;g++)if(i&&y(p.data[g]))c++;else {var _=p.data[g].length;l+=_,void 0!==o?0<_&&(d+=Math.abs(_-o),o=_):o=_;}0<p.data.length&&(l/=p.data.length-c),(void 0===a||d<=a)&&(void 0===h||h<l)&&1.99<l&&(a=d,s=f,h=l);}return {successful:!!(m.delimiter=s),bestDelimiter:s}}(e,m.newline,m.skipEmptyLines,m.comments,m.delimitersToGuess);n.successful?m.delimiter=n.bestDelimiter:(h=!0,m.delimiter=b.DefaultDelimiter),c.meta.delimiter=m.delimiter;}var s=w(m);return m.preview&&m.header&&s.preview++,a=e,o=new E(s),c=o.parse(a,t,i),g(),d?{meta:{paused:!0}}:c||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,o.abort(),a=M(m.chunk)?"":a.substring(o.getCharIndex());},this.resume=function(){t.streamer._halted?(d=!1,t.streamer.parseChunk(a,!0)):setTimeout(t.resume,3);},this.aborted=function(){return e},this.abort=function(){e=!0,o.abort(),c.meta.aborted=!0,M(m.complete)&&m.complete(c),a="";};}function j(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function E(e){var S,O=(e=e||{}).delimiter,x=e.newline,I=e.comments,T=e.step,D=e.preview,A=e.fastMode,L=S=void 0===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(L=e.escapeChar),("string"!=typeof O||-1<b.BAD_DELIMITERS.indexOf(O))&&(O=","),I===O)throw new Error("Comment character same as delimiter");!0===I?I="#":("string"!=typeof I||-1<b.BAD_DELIMITERS.indexOf(I))&&(I=!1),"\n"!==x&&"\r"!==x&&"\r\n"!==x&&(x="\n");var F=0,z=!1;this.parse=function(r,t,i){if("string"!=typeof r)throw new Error("Input must be a string");var n=r.length,e=O.length,s=x.length,a=I.length,o=M(T),h=[],u=[],f=[],d=F=0;if(!r)return C();if(A||!1!==A&&-1===r.indexOf(S)){for(var l=r.split(x),c=0;c<l.length;c++){if(f=l[c],F+=f.length,c!==l.length-1)F+=x.length;else if(i)return C();if(!I||f.substring(0,a)!==I){if(o){if(h=[],k(f.split(O)),R(),z)return C()}else k(f.split(O));if(D&&D<=c)return h=h.slice(0,D),C(!0)}}return C()}for(var p=r.indexOf(O,F),g=r.indexOf(x,F),_=new RegExp(j(L)+j(S),"g"),m=r.indexOf(S,F);;)if(r[F]!==S)if(I&&0===f.length&&r.substring(F,F+a)===I){if(-1===g)return C();F=g+s,g=r.indexOf(x,F),p=r.indexOf(O,F);}else if(-1!==p&&(p<g||-1===g))f.push(r.substring(F,p)),F=p+e,p=r.indexOf(O,F);else {if(-1===g)break;if(f.push(r.substring(F,g)),w(g+s),o&&(R(),z))return C();if(D&&h.length>=D)return C(!0)}else for(m=F,F++;;){if(-1===(m=r.indexOf(S,m+1)))return i||u.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:h.length,index:F}),E();if(m===n-1)return E(r.substring(F,m).replace(_,S));if(S!==L||r[m+1]!==L){if(S===L||0===m||r[m-1]!==L){-1!==p&&p<m+1&&(p=r.indexOf(O,m+1)),-1!==g&&g<m+1&&(g=r.indexOf(x,m+1));var y=b(-1===g?p:Math.min(p,g));if(r[m+1+y]===O){f.push(r.substring(F,m).replace(_,S)),r[F=m+1+y+e]!==S&&(m=r.indexOf(S,F)),p=r.indexOf(O,F),g=r.indexOf(x,F);break}var v=b(g);if(r.substring(m+1+v,m+1+v+s)===x){if(f.push(r.substring(F,m).replace(_,S)),w(m+1+v+s),p=r.indexOf(O,F),m=r.indexOf(S,F),o&&(R(),z))return C();if(D&&h.length>=D)return C(!0);break}u.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:h.length,index:F}),m++;}}else m++;}return E();function k(e){h.push(e),d=F;}function b(e){var t=0;if(-1!==e){var i=r.substring(m+1,e);i&&""===i.trim()&&(t=i.length);}return t}function E(e){return i||(void 0===e&&(e=r.substring(F)),f.push(e),F=n,k(f),o&&R()),C()}function w(e){F=e,k(f),f=[],g=r.indexOf(x,F);}function C(e){return {data:h,errors:u,meta:{delimiter:O,linebreak:x,aborted:z,truncated:!!e,cursor:d+(t||0)}}}function R(){T(C()),h=[],u=[];}},this.abort=function(){z=!0;},this.getCharIndex=function(){return F};}function _(e){var t=e.data,i=a[t.workerId],r=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var n={abort:function(){r=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}});},pause:y,resume:y};if(M(i.userStep)){for(var s=0;s<t.results.data.length&&(i.userStep({data:t.results.data[s],errors:t.results.errors,meta:t.results.meta},n),!r);s++);delete t.results;}else M(i.userChunk)&&(i.userChunk(t.results,n,t.file),delete t.results);}t.finished&&!r&&m(t.workerId,t.results);}function m(e,t){var i=a[e];M(i.userComplete)&&i.userComplete(t),i.terminate(),delete a[e];}function y(){throw new Error("Not implemented.")}function w(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var i in e)t[i]=w(e[i]);return t}function v(e,t){return function(){e.apply(t,arguments);}}function M(e){return "function"==typeof e}return o&&(f.onmessage=function(e){var t=e.data;void 0===b.WORKER_ID&&t&&(b.WORKER_ID=t.workerId);if("string"==typeof t.input)f.postMessage({workerId:b.WORKER_ID,results:b.parse(t.input,t.config),finished:!0});else if(f.File&&t.input instanceof File||t.input instanceof Object){var i=b.parse(t.input,t.config);i&&f.postMessage({workerId:b.WORKER_ID,results:i,finished:!0});}}),(l.prototype=Object.create(u.prototype)).constructor=l,(c.prototype=Object.create(u.prototype)).constructor=c,(p.prototype=Object.create(p.prototype)).constructor=p,(g.prototype=Object.create(u.prototype)).constructor=g,b});
|
|
639
|
-
}(papaparse_min));
|
|
640
|
-
|
|
641
|
-
var es2018$5 = {};
|
|
642
|
-
|
|
643
|
-
var customError$1 = {};
|
|
644
|
-
|
|
645
|
-
var es2018$4 = {};
|
|
646
|
-
|
|
647
|
-
var middleware = {};
|
|
648
|
-
|
|
649
|
-
var chunkAsync$1 = {};
|
|
650
|
-
|
|
651
|
-
var es2018$3 = {};
|
|
652
|
-
|
|
653
|
-
var go$1 = {};
|
|
654
|
-
|
|
655
|
-
go$1.go = void 0;
|
|
656
|
-
function go(fn) {
|
|
657
|
-
return fn();
|
|
658
|
-
}
|
|
659
|
-
go$1.go = go;
|
|
660
|
-
|
|
661
|
-
(function (exports) {
|
|
662
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
663
|
-
if (k2 === undefined) k2 = k;
|
|
664
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
665
|
-
}) : (function(o, m, k, k2) {
|
|
666
|
-
if (k2 === undefined) k2 = k;
|
|
667
|
-
o[k2] = m[k];
|
|
668
|
-
}));
|
|
669
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
670
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
671
|
-
};__exportStar(go$1, exports);
|
|
672
|
-
|
|
673
|
-
}(es2018$3));
|
|
674
|
-
|
|
675
|
-
var es2018$2 = {};
|
|
676
|
-
|
|
677
|
-
var customError = {};
|
|
678
|
-
|
|
679
|
-
customError.CustomError = void 0;
|
|
680
|
-
class CustomError$1 extends Error {
|
|
681
|
-
get name() {
|
|
682
|
-
return this.constructor.name;
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
customError.CustomError = CustomError$1;
|
|
686
|
-
|
|
687
|
-
var expectedError = {};
|
|
688
|
-
|
|
689
|
-
expectedError.ExpectedError = void 0;
|
|
690
|
-
const custom_error_1$2 = customError;
|
|
691
|
-
class ExpectedError extends custom_error_1$2.CustomError {
|
|
692
|
-
}
|
|
693
|
-
expectedError.ExpectedError = ExpectedError;
|
|
694
|
-
|
|
695
|
-
var assertionError$1 = {};
|
|
696
|
-
|
|
697
|
-
assertionError$1.AssertionError = void 0;
|
|
698
|
-
const custom_error_1$1 = customError;
|
|
699
|
-
class AssertionError$1 extends custom_error_1$1.CustomError {
|
|
700
|
-
}
|
|
701
|
-
assertionError$1.AssertionError = AssertionError$1;
|
|
702
|
-
|
|
703
|
-
var normalize$3 = {};
|
|
704
|
-
|
|
705
|
-
normalize$3.normalize = void 0;
|
|
706
|
-
function normalize$2(err) {
|
|
707
|
-
var _a;
|
|
708
|
-
return {
|
|
709
|
-
name: err.name,
|
|
710
|
-
message: err.message,
|
|
711
|
-
stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
|
|
712
|
-
};
|
|
713
|
-
}
|
|
714
|
-
normalize$3.normalize = normalize$2;
|
|
715
|
-
|
|
716
|
-
var refute$1 = {};
|
|
717
|
-
|
|
718
|
-
refute$1.refute = void 0;
|
|
719
|
-
const expected_error_1 = expectedError;
|
|
720
|
-
function refute(condition, message) {
|
|
721
|
-
if (condition)
|
|
722
|
-
throw new expected_error_1.ExpectedError(message);
|
|
723
|
-
}
|
|
724
|
-
refute$1.refute = refute;
|
|
725
|
-
|
|
726
|
-
var assert$3 = {};
|
|
727
|
-
|
|
728
|
-
assert$3.assert = void 0;
|
|
729
|
-
const assertion_error_1$1 = assertionError$1;
|
|
730
|
-
function assert$2(condition, message) {
|
|
731
|
-
if (!condition)
|
|
732
|
-
throw new assertion_error_1$1.AssertionError(message);
|
|
733
|
-
}
|
|
734
|
-
assert$3.assert = assert$2;
|
|
735
|
-
|
|
736
|
-
(function (exports) {
|
|
737
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
738
|
-
if (k2 === undefined) k2 = k;
|
|
739
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
740
|
-
}) : (function(o, m, k, k2) {
|
|
741
|
-
if (k2 === undefined) k2 = k;
|
|
742
|
-
o[k2] = m[k];
|
|
743
|
-
}));
|
|
744
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
745
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
746
|
-
};__exportStar(customError, exports);
|
|
747
|
-
__exportStar(expectedError, exports);
|
|
748
|
-
__exportStar(assertionError$1, exports);
|
|
749
|
-
__exportStar(normalize$3, exports);
|
|
750
|
-
__exportStar(refute$1, exports);
|
|
751
|
-
__exportStar(assert$3, exports);
|
|
752
|
-
|
|
753
|
-
}(es2018$2));
|
|
754
|
-
|
|
755
|
-
chunkAsync$1.chunkAsync = void 0;
|
|
756
|
-
const go_1$f = es2018$3;
|
|
757
|
-
const errors_1$f = es2018$2;
|
|
758
|
-
function chunkAsync(iterable, size) {
|
|
759
|
-
(0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
760
|
-
(0, errors_1$f.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
761
|
-
return (0, go_1$f.go)(async function* () {
|
|
762
|
-
let buffer = [];
|
|
763
|
-
for await (const element of iterable) {
|
|
764
|
-
buffer.push(element);
|
|
765
|
-
if (buffer.length >= size) {
|
|
766
|
-
yield buffer;
|
|
767
|
-
buffer = [];
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
if (buffer.length)
|
|
771
|
-
yield buffer;
|
|
772
|
-
});
|
|
773
|
-
}
|
|
774
|
-
chunkAsync$1.chunkAsync = chunkAsync;
|
|
775
|
-
|
|
776
|
-
var chunkByAsync$1 = {};
|
|
777
|
-
|
|
778
|
-
var es2018$1 = {};
|
|
779
|
-
|
|
780
|
-
var array = {};
|
|
781
|
-
|
|
782
|
-
array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
|
|
783
|
-
function isArray(val) {
|
|
784
|
-
return Array.isArray(val);
|
|
785
|
-
}
|
|
786
|
-
array.isArray = isArray;
|
|
787
|
-
function isntArray(val) {
|
|
788
|
-
return !isArray(val);
|
|
789
|
-
}
|
|
790
|
-
array.isntArray = isntArray;
|
|
791
|
-
function isEmptyArray(val) {
|
|
792
|
-
return val.length === 0;
|
|
793
|
-
}
|
|
794
|
-
array.isEmptyArray = isEmptyArray;
|
|
795
|
-
function isntEmptyArray(val) {
|
|
796
|
-
return val.length !== 0;
|
|
797
|
-
}
|
|
798
|
-
array.isntEmptyArray = isntEmptyArray;
|
|
799
|
-
|
|
800
|
-
var asyncIterable = {};
|
|
801
|
-
|
|
802
|
-
var _null = {};
|
|
803
|
-
|
|
804
|
-
_null.isntNull = _null.isNull = void 0;
|
|
805
|
-
function isNull(val) {
|
|
806
|
-
return val === null;
|
|
807
|
-
}
|
|
808
|
-
_null.isNull = isNull;
|
|
809
|
-
function isntNull(val) {
|
|
810
|
-
return !isNull(val);
|
|
811
|
-
}
|
|
812
|
-
_null.isntNull = isntNull;
|
|
813
|
-
|
|
814
|
-
var _undefined = {};
|
|
815
|
-
|
|
816
|
-
_undefined.isntUndefined = _undefined.isUndefined = void 0;
|
|
817
|
-
function isUndefined(val) {
|
|
818
|
-
return val === undefined;
|
|
819
|
-
}
|
|
820
|
-
_undefined.isUndefined = isUndefined;
|
|
821
|
-
function isntUndefined(val) {
|
|
822
|
-
return !isUndefined(val);
|
|
823
|
-
}
|
|
824
|
-
_undefined.isntUndefined = isntUndefined;
|
|
825
|
-
|
|
826
|
-
asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
|
|
827
|
-
const null_1$1 = _null;
|
|
828
|
-
const undefined_1$2 = _undefined;
|
|
829
|
-
function isAsyncIterable(val) {
|
|
830
|
-
return (0, null_1$1.isntNull)(val)
|
|
831
|
-
&& (0, undefined_1$2.isntUndefined)(val)
|
|
832
|
-
&& typeof val[Symbol.asyncIterator] === 'function';
|
|
833
|
-
}
|
|
834
|
-
asyncIterable.isAsyncIterable = isAsyncIterable;
|
|
835
|
-
function isntAsyncIterable(val) {
|
|
836
|
-
return !isAsyncIterable(val);
|
|
837
|
-
}
|
|
838
|
-
asyncIterable.isntAsyncIterable = isntAsyncIterable;
|
|
839
|
-
|
|
840
|
-
var bigint = {};
|
|
841
|
-
|
|
842
|
-
bigint.isntBigInt = bigint.isBigInt = void 0;
|
|
843
|
-
function isBigInt(val) {
|
|
844
|
-
return typeof val === 'bigint';
|
|
845
|
-
}
|
|
846
|
-
bigint.isBigInt = isBigInt;
|
|
847
|
-
function isntBigInt(val) {
|
|
848
|
-
return !isBigInt(val);
|
|
849
|
-
}
|
|
850
|
-
bigint.isntBigInt = isntBigInt;
|
|
851
|
-
|
|
852
|
-
var boolean = {};
|
|
853
|
-
|
|
854
|
-
boolean.isntBoolean = boolean.isBoolean = void 0;
|
|
855
|
-
function isBoolean(val) {
|
|
856
|
-
return typeof val === 'boolean';
|
|
857
|
-
}
|
|
858
|
-
boolean.isBoolean = isBoolean;
|
|
859
|
-
function isntBoolean(val) {
|
|
860
|
-
return !isBoolean(val);
|
|
861
|
-
}
|
|
862
|
-
boolean.isntBoolean = isntBoolean;
|
|
863
|
-
|
|
864
|
-
var char = {};
|
|
865
|
-
|
|
866
|
-
var string = {};
|
|
867
|
-
|
|
868
|
-
string.isntString = string.isString = void 0;
|
|
869
|
-
function isString(val) {
|
|
870
|
-
return typeof val === 'string';
|
|
871
|
-
}
|
|
872
|
-
string.isString = isString;
|
|
873
|
-
function isntString(val) {
|
|
874
|
-
return !isString(val);
|
|
875
|
-
}
|
|
876
|
-
string.isntString = isntString;
|
|
877
|
-
|
|
878
|
-
char.isntChar = char.isChar = void 0;
|
|
879
|
-
const string_1$1 = string;
|
|
880
|
-
function isChar(val) {
|
|
881
|
-
return (0, string_1$1.isString)(val)
|
|
882
|
-
&& val.length === 1;
|
|
883
|
-
}
|
|
884
|
-
char.isChar = isChar;
|
|
885
|
-
function isntChar(val) {
|
|
886
|
-
return !isChar(val);
|
|
887
|
-
}
|
|
888
|
-
char.isntChar = isntChar;
|
|
889
|
-
|
|
890
|
-
var date = {};
|
|
891
|
-
|
|
892
|
-
date.isntDate = date.isDate = void 0;
|
|
893
|
-
function isDate(val) {
|
|
894
|
-
return val instanceof Date;
|
|
895
|
-
}
|
|
896
|
-
date.isDate = isDate;
|
|
897
|
-
function isntDate(val) {
|
|
898
|
-
return !isDate(val);
|
|
899
|
-
}
|
|
900
|
-
date.isntDate = isntDate;
|
|
901
|
-
|
|
902
|
-
var _enum = {};
|
|
903
|
-
|
|
904
|
-
_enum.inEnum = void 0;
|
|
905
|
-
function inEnum(val, _enum) {
|
|
906
|
-
return Object.values(_enum).includes(val);
|
|
907
|
-
}
|
|
908
|
-
_enum.inEnum = inEnum;
|
|
909
|
-
|
|
910
|
-
var error = {};
|
|
911
449
|
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
return val instanceof Error;
|
|
915
|
-
}
|
|
916
|
-
error.isError = isError;
|
|
917
|
-
function isntError(val) {
|
|
918
|
-
return !isError(val);
|
|
450
|
+
function isObjectLike$1(value) {
|
|
451
|
+
return value != null && typeof value == 'object';
|
|
919
452
|
}
|
|
920
|
-
error.isntError = isntError;
|
|
921
453
|
|
|
922
|
-
var
|
|
454
|
+
var isObjectLike_1 = isObjectLike$1;
|
|
923
455
|
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
}
|
|
928
|
-
falsy.isFalsy = isFalsy;
|
|
929
|
-
function isntFalsy(val) {
|
|
930
|
-
return !isFalsy(val);
|
|
931
|
-
}
|
|
932
|
-
falsy.isntFalsy = isntFalsy;
|
|
456
|
+
var baseGetTag = _baseGetTag,
|
|
457
|
+
getPrototype = _getPrototype,
|
|
458
|
+
isObjectLike = isObjectLike_1;
|
|
933
459
|
|
|
934
|
-
|
|
460
|
+
/** `Object#toString` result references. */
|
|
461
|
+
var objectTag = '[object Object]';
|
|
935
462
|
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
}
|
|
940
|
-
_function.isFunction = isFunction;
|
|
941
|
-
function isntFunction(val) {
|
|
942
|
-
return !isFunction(val);
|
|
943
|
-
}
|
|
944
|
-
_function.isntFunction = isntFunction;
|
|
463
|
+
/** Used for built-in method references. */
|
|
464
|
+
var funcProto = Function.prototype,
|
|
465
|
+
objectProto = Object.prototype;
|
|
945
466
|
|
|
946
|
-
|
|
467
|
+
/** Used to resolve the decompiled source of functions. */
|
|
468
|
+
var funcToString = funcProto.toString;
|
|
947
469
|
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
const undefined_1$1 = _undefined;
|
|
951
|
-
function isIterable(val) {
|
|
952
|
-
return (0, null_1.isntNull)(val)
|
|
953
|
-
&& (0, undefined_1$1.isntUndefined)(val)
|
|
954
|
-
&& typeof val[Symbol.iterator] === 'function';
|
|
955
|
-
}
|
|
956
|
-
iterable.isIterable = isIterable;
|
|
957
|
-
function isntIterable(val) {
|
|
958
|
-
return !isIterable(val);
|
|
959
|
-
}
|
|
960
|
-
iterable.isntIterable = isntIterable;
|
|
470
|
+
/** Used to check objects for own properties. */
|
|
471
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
961
472
|
|
|
962
|
-
|
|
473
|
+
/** Used to infer the `Object` constructor. */
|
|
474
|
+
var objectCtorString = funcToString.call(Object);
|
|
963
475
|
|
|
964
|
-
|
|
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;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
var isPlainObject_1$1 = isPlainObject$1;
|
|
965
518
|
|
|
966
|
-
|
|
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);
|
|
967
523
|
function isObject(val) {
|
|
968
|
-
return val !== null
|
|
524
|
+
return val !== null
|
|
525
|
+
&& typeof val === 'object';
|
|
969
526
|
}
|
|
970
527
|
object.isObject = isObject;
|
|
971
528
|
function isntObject(val) {
|
|
972
529
|
return !isObject(val);
|
|
973
530
|
}
|
|
974
531
|
object.isntObject = isntObject;
|
|
975
|
-
function
|
|
976
|
-
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);
|
|
977
538
|
}
|
|
978
|
-
object.
|
|
539
|
+
object.isntPlainObject = isntPlainObject;
|
|
979
540
|
function isEmptyObject(val) {
|
|
980
541
|
return Object.keys(val).length === 0;
|
|
981
542
|
}
|
|
@@ -985,87 +546,27 @@
|
|
|
985
546
|
}
|
|
986
547
|
object.isntEmptyObject = isntEmptyObject;
|
|
987
548
|
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
function isNumber(val) {
|
|
992
|
-
return typeof val === 'number';
|
|
993
|
-
}
|
|
994
|
-
number.isNumber = isNumber;
|
|
995
|
-
function isntNumber(val) {
|
|
996
|
-
return !isNumber(val);
|
|
997
|
-
}
|
|
998
|
-
number.isntNumber = isntNumber;
|
|
999
|
-
|
|
1000
|
-
jsonRpc.isntJsonRpcError = jsonRpc.isJsonRpcError = jsonRpc.isntJsonRpcSuccess = jsonRpc.isJsonRpcSuccess = jsonRpc.isntJsonRpcRequest = jsonRpc.isJsonRpcRequest = jsonRpc.isntJsonRpcNotification = jsonRpc.isJsonRpcNotification = void 0;
|
|
1001
|
-
const array_1 = array;
|
|
1002
|
-
const object_1 = object;
|
|
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;
|
|
1003
552
|
const string_1 = string;
|
|
1004
553
|
const number_1 = number;
|
|
1005
|
-
const
|
|
1006
|
-
|
|
1007
|
-
return (0, string_1.isString)(val) || (0, number_1.isNumber)(val);
|
|
1008
|
-
}
|
|
1009
|
-
function isJsonRpcParams(val) {
|
|
1010
|
-
return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);
|
|
1011
|
-
}
|
|
1012
|
-
function isJsonRpcNotification(val) {
|
|
1013
|
-
return (0, object_1.isRecord)(val)
|
|
1014
|
-
&& (0, string_1.isString)(val.jsonrpc)
|
|
1015
|
-
&& (0, string_1.isString)(val.method)
|
|
1016
|
-
&& (0, undefined_1.isUndefined)(val.id)
|
|
1017
|
-
&& isJsonRpcParams(val.params);
|
|
1018
|
-
}
|
|
1019
|
-
jsonRpc.isJsonRpcNotification = isJsonRpcNotification;
|
|
1020
|
-
function isntJsonRpcNotification(val) {
|
|
1021
|
-
return !isJsonRpcNotification(val);
|
|
1022
|
-
}
|
|
1023
|
-
jsonRpc.isntJsonRpcNotification = isntJsonRpcNotification;
|
|
1024
|
-
function isJsonRpcRequest(val) {
|
|
1025
|
-
return (0, object_1.isRecord)(val)
|
|
1026
|
-
&& (0, string_1.isString)(val.jsonrpc)
|
|
1027
|
-
&& (0, string_1.isString)(val.method)
|
|
1028
|
-
&& isJsonRpcId(val.id)
|
|
1029
|
-
&& isJsonRpcParams(val.params);
|
|
1030
|
-
}
|
|
1031
|
-
jsonRpc.isJsonRpcRequest = isJsonRpcRequest;
|
|
1032
|
-
function isntJsonRpcRequest(val) {
|
|
1033
|
-
return !isJsonRpcRequest(val);
|
|
1034
|
-
}
|
|
1035
|
-
jsonRpc.isntJsonRpcRequest = isntJsonRpcRequest;
|
|
1036
|
-
function isJsonRpcSuccess(val) {
|
|
1037
|
-
return (0, object_1.isRecord)(val)
|
|
1038
|
-
&& (0, string_1.isString)(val.jsonrpc)
|
|
1039
|
-
&& (0, string_1.isString)(val.id)
|
|
1040
|
-
&& (0, undefined_1.isntUndefined)(val.result);
|
|
1041
|
-
}
|
|
1042
|
-
jsonRpc.isJsonRpcSuccess = isJsonRpcSuccess;
|
|
1043
|
-
function isntJsonRpcSuccess(val) {
|
|
1044
|
-
return !isJsonRpcSuccess(val);
|
|
1045
|
-
}
|
|
1046
|
-
jsonRpc.isntJsonRpcSuccess = isntJsonRpcSuccess;
|
|
1047
|
-
function isJsonRpcError(val) {
|
|
1048
|
-
return (0, object_1.isRecord)(val)
|
|
1049
|
-
&& (0, string_1.isString)(val.jsonrpc)
|
|
1050
|
-
&& isJsonRpcId(val.id)
|
|
1051
|
-
&& isJsonRpcErrorObject(val.error);
|
|
1052
|
-
}
|
|
1053
|
-
jsonRpc.isJsonRpcError = isJsonRpcError;
|
|
1054
|
-
function isntJsonRpcError(val) {
|
|
1055
|
-
return !isJsonRpcError(val);
|
|
1056
|
-
}
|
|
1057
|
-
jsonRpc.isntJsonRpcError = isntJsonRpcError;
|
|
1058
|
-
function isJsonRpcErrorObject(val) {
|
|
1059
|
-
return (0, object_1.isRecord)(val)
|
|
1060
|
-
&& (0, number_1.isNumber)(val.code)
|
|
1061
|
-
&& (0, string_1.isString)(val.message)
|
|
1062
|
-
&& ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
var json = {};
|
|
1066
|
-
|
|
1067
|
-
json.isntJson = json.isJson = void 0;
|
|
554
|
+
const array_1 = array;
|
|
555
|
+
const object_1$1 = object;
|
|
1068
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) {
|
|
1069
570
|
try {
|
|
1070
571
|
JSON.stringify(val);
|
|
1071
572
|
return true;
|
|
@@ -1074,15 +575,38 @@
|
|
|
1074
575
|
return false;
|
|
1075
576
|
}
|
|
1076
577
|
}
|
|
1077
|
-
json.
|
|
1078
|
-
function
|
|
1079
|
-
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;
|
|
591
|
+
}
|
|
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);
|
|
1080
599
|
}
|
|
1081
|
-
|
|
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;
|
|
1082
606
|
|
|
1083
|
-
var url = {};
|
|
607
|
+
var url$1 = {};
|
|
1084
608
|
|
|
1085
|
-
url.isAbsoluteURL = void 0;
|
|
609
|
+
url$1.isAbsoluteURL = void 0;
|
|
1086
610
|
function isAbsoluteURL(str) {
|
|
1087
611
|
try {
|
|
1088
612
|
new URL(str);
|
|
@@ -1092,12 +616,16 @@
|
|
|
1092
616
|
return false;
|
|
1093
617
|
}
|
|
1094
618
|
}
|
|
1095
|
-
url.isAbsoluteURL = isAbsoluteURL;
|
|
619
|
+
url$1.isAbsoluteURL = isAbsoluteURL;
|
|
1096
620
|
|
|
1097
621
|
(function (exports) {
|
|
1098
622
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1099
623
|
if (k2 === undefined) k2 = k;
|
|
1100
|
-
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);
|
|
1101
629
|
}) : (function(o, m, k, k2) {
|
|
1102
630
|
if (k2 === undefined) k2 = k;
|
|
1103
631
|
o[k2] = m[k];
|
|
@@ -1115,19 +643,146 @@
|
|
|
1115
643
|
__exportStar(falsy, exports);
|
|
1116
644
|
__exportStar(_function, exports);
|
|
1117
645
|
__exportStar(iterable, exports);
|
|
1118
|
-
__exportStar(
|
|
1119
|
-
__exportStar(json, exports);
|
|
646
|
+
__exportStar(json$1, exports);
|
|
1120
647
|
__exportStar(_null, exports);
|
|
1121
648
|
__exportStar(number, exports);
|
|
1122
649
|
__exportStar(object, exports);
|
|
650
|
+
__exportStar(promise, exports);
|
|
1123
651
|
__exportStar(string, exports);
|
|
1124
652
|
__exportStar(_undefined, exports);
|
|
1125
|
-
__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 Object.assign(Object.assign({}, options), { url });
|
|
694
|
+
};
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
function text(payload) {
|
|
698
|
+
return (options) => {
|
|
699
|
+
const headers = new es2018$5.Headers(options.headers);
|
|
700
|
+
headers.set('Content-Type', 'application/x-www-form-urlencoded');
|
|
701
|
+
return Object.assign(Object.assign({}, options), { headers,
|
|
702
|
+
payload });
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
function json(payload) {
|
|
707
|
+
return (options) => {
|
|
708
|
+
const headers = new es2018$5.Headers(options.headers);
|
|
709
|
+
headers.set('Content-Type', 'application/json');
|
|
710
|
+
return Object.assign(Object.assign({}, options), { headers, payload: JSON.stringify(payload) });
|
|
711
|
+
};
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
var papaparse_min = {exports: {}};
|
|
715
|
+
|
|
716
|
+
/* @license
|
|
717
|
+
Papa Parse
|
|
718
|
+
v5.3.2
|
|
719
|
+
https://github.com/mholt/PapaParse
|
|
720
|
+
License: MIT
|
|
721
|
+
*/
|
|
722
|
+
|
|
723
|
+
(function (module, exports) {
|
|
724
|
+
!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});
|
|
725
|
+
}(papaparse_min));
|
|
726
|
+
|
|
727
|
+
var es2018$3 = {};
|
|
728
|
+
|
|
729
|
+
var customError = {};
|
|
730
|
+
|
|
731
|
+
var es2018$2 = {};
|
|
732
|
+
|
|
733
|
+
var middleware = {};
|
|
734
|
+
|
|
735
|
+
var chunkAsync$1 = {};
|
|
736
|
+
|
|
737
|
+
var es2018$1 = {};
|
|
738
|
+
|
|
739
|
+
var go$1 = {};
|
|
740
|
+
|
|
741
|
+
go$1.go = void 0;
|
|
742
|
+
function go(fn) {
|
|
743
|
+
return fn();
|
|
744
|
+
}
|
|
745
|
+
go$1.go = go;
|
|
746
|
+
|
|
747
|
+
(function (exports) {
|
|
748
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
749
|
+
if (k2 === undefined) k2 = k;
|
|
750
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
751
|
+
}) : (function(o, m, k, k2) {
|
|
752
|
+
if (k2 === undefined) k2 = k;
|
|
753
|
+
o[k2] = m[k];
|
|
754
|
+
}));
|
|
755
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
756
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
757
|
+
};__exportStar(go$1, exports);
|
|
1126
758
|
|
|
1127
759
|
}(es2018$1));
|
|
1128
760
|
|
|
761
|
+
chunkAsync$1.chunkAsync = void 0;
|
|
762
|
+
const go_1$f = es2018$1;
|
|
763
|
+
const errors_1$f = es2018$3;
|
|
764
|
+
function chunkAsync(iterable, size) {
|
|
765
|
+
(0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
766
|
+
(0, errors_1$f.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
767
|
+
return (0, go_1$f.go)(async function* () {
|
|
768
|
+
let buffer = [];
|
|
769
|
+
for await (const element of iterable) {
|
|
770
|
+
buffer.push(element);
|
|
771
|
+
if (buffer.length >= size) {
|
|
772
|
+
yield buffer;
|
|
773
|
+
buffer = [];
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
if (buffer.length)
|
|
777
|
+
yield buffer;
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
chunkAsync$1.chunkAsync = chunkAsync;
|
|
781
|
+
|
|
782
|
+
var chunkByAsync$1 = {};
|
|
783
|
+
|
|
1129
784
|
chunkByAsync$1.chunkByAsync = void 0;
|
|
1130
|
-
const types_1$k = es2018$
|
|
785
|
+
const types_1$k = es2018$4;
|
|
1131
786
|
function chunkByAsync(iterable, predicate) {
|
|
1132
787
|
if ((0, types_1$k.isAsyncIterable)(iterable)) {
|
|
1133
788
|
return chunkByAsyncIterable(iterable);
|
|
@@ -1188,8 +843,8 @@
|
|
|
1188
843
|
var chunk$1 = {};
|
|
1189
844
|
|
|
1190
845
|
chunk$1.chunk = void 0;
|
|
1191
|
-
const go_1$e = es2018$
|
|
1192
|
-
const errors_1$e = es2018$
|
|
846
|
+
const go_1$e = es2018$1;
|
|
847
|
+
const errors_1$e = es2018$3;
|
|
1193
848
|
function chunk(iterable, size) {
|
|
1194
849
|
(0, errors_1$e.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
1195
850
|
(0, errors_1$e.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
@@ -1211,8 +866,8 @@
|
|
|
1211
866
|
var concatAsync$1 = {};
|
|
1212
867
|
|
|
1213
868
|
concatAsync$1.concatAsync = void 0;
|
|
1214
|
-
const types_1$j = es2018$
|
|
1215
|
-
const go_1$d = es2018$
|
|
869
|
+
const types_1$j = es2018$4;
|
|
870
|
+
const go_1$d = es2018$1;
|
|
1216
871
|
function concatAsync(iterable, ...otherIterables) {
|
|
1217
872
|
return (0, go_1$d.go)(async function* () {
|
|
1218
873
|
for (const iter of [iterable, ...otherIterables]) {
|
|
@@ -1234,7 +889,7 @@
|
|
|
1234
889
|
var concat$1 = {};
|
|
1235
890
|
|
|
1236
891
|
concat$1.concat = void 0;
|
|
1237
|
-
const go_1$c = es2018$
|
|
892
|
+
const go_1$c = es2018$1;
|
|
1238
893
|
function concat(iterable, ...otherIterables) {
|
|
1239
894
|
return (0, go_1$c.go)(function* () {
|
|
1240
895
|
for (const iter of [iterable, ...otherIterables]) {
|
|
@@ -1263,9 +918,9 @@
|
|
|
1263
918
|
utils.copyIterable = copyIterable;
|
|
1264
919
|
|
|
1265
920
|
dropAsync$1.dropAsync = void 0;
|
|
1266
|
-
const go_1$b = es2018$
|
|
921
|
+
const go_1$b = es2018$1;
|
|
1267
922
|
const utils_1$3 = utils;
|
|
1268
|
-
const errors_1$d = es2018$
|
|
923
|
+
const errors_1$d = es2018$3;
|
|
1269
924
|
function dropAsync(iterable, count) {
|
|
1270
925
|
(0, errors_1$d.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1271
926
|
(0, errors_1$d.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1298,9 +953,9 @@
|
|
|
1298
953
|
var dropRightAsync$1 = {};
|
|
1299
954
|
|
|
1300
955
|
dropRightAsync$1.dropRightAsync = void 0;
|
|
1301
|
-
const go_1$a = es2018$
|
|
956
|
+
const go_1$a = es2018$1;
|
|
1302
957
|
const utils_1$2 = utils;
|
|
1303
|
-
const errors_1$c = es2018$
|
|
958
|
+
const errors_1$c = es2018$3;
|
|
1304
959
|
function dropRightAsync(iterable, count) {
|
|
1305
960
|
(0, errors_1$c.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1306
961
|
(0, errors_1$c.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1326,9 +981,9 @@
|
|
|
1326
981
|
var dropRight$1 = {};
|
|
1327
982
|
|
|
1328
983
|
dropRight$1.dropRight = void 0;
|
|
1329
|
-
const go_1$9 = es2018$
|
|
984
|
+
const go_1$9 = es2018$1;
|
|
1330
985
|
const utils_1$1 = utils;
|
|
1331
|
-
const errors_1$b = es2018$
|
|
986
|
+
const errors_1$b = es2018$3;
|
|
1332
987
|
function dropRight(iterable, count) {
|
|
1333
988
|
(0, errors_1$b.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1334
989
|
(0, errors_1$b.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1344,7 +999,7 @@
|
|
|
1344
999
|
var dropUntilAsync$1 = {};
|
|
1345
1000
|
|
|
1346
1001
|
dropUntilAsync$1.dropUntilAsync = void 0;
|
|
1347
|
-
const types_1$i = es2018$
|
|
1002
|
+
const types_1$i = es2018$4;
|
|
1348
1003
|
function dropUntilAsync(iterable, predicate) {
|
|
1349
1004
|
if ((0, types_1$i.isAsyncIterable)(iterable)) {
|
|
1350
1005
|
return dropUntilAsyncIterable(iterable);
|
|
@@ -1426,9 +1081,9 @@
|
|
|
1426
1081
|
var drop$1 = {};
|
|
1427
1082
|
|
|
1428
1083
|
drop$1.drop = void 0;
|
|
1429
|
-
const go_1$8 = es2018$
|
|
1084
|
+
const go_1$8 = es2018$1;
|
|
1430
1085
|
const utils_1 = utils;
|
|
1431
|
-
const errors_1$a = es2018$
|
|
1086
|
+
const errors_1$a = es2018$3;
|
|
1432
1087
|
function drop(iterable, count) {
|
|
1433
1088
|
(0, errors_1$a.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1434
1089
|
(0, errors_1$a.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1461,7 +1116,7 @@
|
|
|
1461
1116
|
var filterAsync$1 = {};
|
|
1462
1117
|
|
|
1463
1118
|
filterAsync$1.filterAsync = void 0;
|
|
1464
|
-
const types_1$h = es2018$
|
|
1119
|
+
const types_1$h = es2018$4;
|
|
1465
1120
|
function filterAsync(iterable, predicate) {
|
|
1466
1121
|
if ((0, types_1$h.isAsyncIterable)(iterable)) {
|
|
1467
1122
|
return filterAsyncIterable(iterable);
|
|
@@ -1508,7 +1163,7 @@
|
|
|
1508
1163
|
var flattenByAsync$1 = {};
|
|
1509
1164
|
|
|
1510
1165
|
flattenByAsync$1.flattenByAsync = void 0;
|
|
1511
|
-
const types_1$g = es2018$
|
|
1166
|
+
const types_1$g = es2018$4;
|
|
1512
1167
|
function flattenByAsync(iterable, predicate) {
|
|
1513
1168
|
if ((0, types_1$g.isAsyncIterable)(iterable)) {
|
|
1514
1169
|
return flattenByAsyncIterable(iterable);
|
|
@@ -1548,7 +1203,7 @@
|
|
|
1548
1203
|
|
|
1549
1204
|
flattenDeepAsync$1.flattenDeepAsync = void 0;
|
|
1550
1205
|
const flatten_by_async_1 = flattenByAsync$1;
|
|
1551
|
-
const errors_1$9 = es2018$
|
|
1206
|
+
const errors_1$9 = es2018$3;
|
|
1552
1207
|
function flattenDeepAsync(iterable, depth = Infinity) {
|
|
1553
1208
|
(0, errors_1$9.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
1554
1209
|
(0, errors_1$9.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
@@ -1566,7 +1221,7 @@
|
|
|
1566
1221
|
var flattenBy$1 = {};
|
|
1567
1222
|
|
|
1568
1223
|
flattenBy$1.flattenBy = void 0;
|
|
1569
|
-
const types_1$f = es2018$
|
|
1224
|
+
const types_1$f = es2018$4;
|
|
1570
1225
|
function flattenBy(iterable, predicate) {
|
|
1571
1226
|
return flatten(iterable, 1);
|
|
1572
1227
|
function* flatten(iterable, level) {
|
|
@@ -1589,7 +1244,7 @@
|
|
|
1589
1244
|
|
|
1590
1245
|
flattenDeep$1.flattenDeep = void 0;
|
|
1591
1246
|
const flatten_by_1 = flattenBy$1;
|
|
1592
|
-
const errors_1$8 = es2018$
|
|
1247
|
+
const errors_1$8 = es2018$3;
|
|
1593
1248
|
function flattenDeep(iterable, depth = Infinity) {
|
|
1594
1249
|
(0, errors_1$8.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
1595
1250
|
(0, errors_1$8.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
@@ -1609,7 +1264,7 @@
|
|
|
1609
1264
|
var mapAsync$1 = {};
|
|
1610
1265
|
|
|
1611
1266
|
mapAsync$1.mapAsync = void 0;
|
|
1612
|
-
const types_1$e = es2018$
|
|
1267
|
+
const types_1$e = es2018$4;
|
|
1613
1268
|
function mapAsync(iterable, fn) {
|
|
1614
1269
|
if ((0, types_1$e.isAsyncIterable)(iterable)) {
|
|
1615
1270
|
return mapAsyncIterable(iterable);
|
|
@@ -1649,8 +1304,8 @@
|
|
|
1649
1304
|
var repeatAsync$1 = {};
|
|
1650
1305
|
|
|
1651
1306
|
repeatAsync$1.repeatAsync = void 0;
|
|
1652
|
-
const go_1$7 = es2018$
|
|
1653
|
-
const errors_1$7 = es2018$
|
|
1307
|
+
const go_1$7 = es2018$1;
|
|
1308
|
+
const errors_1$7 = es2018$3;
|
|
1654
1309
|
function repeatAsync(iterable, times) {
|
|
1655
1310
|
(0, errors_1$7.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
1656
1311
|
(0, errors_1$7.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
@@ -1684,8 +1339,8 @@
|
|
|
1684
1339
|
var repeat$1 = {};
|
|
1685
1340
|
|
|
1686
1341
|
repeat$1.repeat = void 0;
|
|
1687
|
-
const go_1$6 = es2018$
|
|
1688
|
-
const errors_1$6 = es2018$
|
|
1342
|
+
const go_1$6 = es2018$1;
|
|
1343
|
+
const errors_1$6 = es2018$3;
|
|
1689
1344
|
function repeat(iterable, times) {
|
|
1690
1345
|
(0, errors_1$6.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
1691
1346
|
(0, errors_1$6.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
@@ -1719,8 +1374,8 @@
|
|
|
1719
1374
|
var sliceAsync$1 = {};
|
|
1720
1375
|
|
|
1721
1376
|
sliceAsync$1.sliceAsync = void 0;
|
|
1722
|
-
const go_1$5 = es2018$
|
|
1723
|
-
const errors_1$5 = es2018$
|
|
1377
|
+
const go_1$5 = es2018$1;
|
|
1378
|
+
const errors_1$5 = es2018$3;
|
|
1724
1379
|
function sliceAsync(iterable, start, end = Infinity) {
|
|
1725
1380
|
(0, errors_1$5.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
1726
1381
|
(0, errors_1$5.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
@@ -1742,8 +1397,8 @@
|
|
|
1742
1397
|
var slice$1 = {};
|
|
1743
1398
|
|
|
1744
1399
|
slice$1.slice = void 0;
|
|
1745
|
-
const go_1$4 = es2018$
|
|
1746
|
-
const errors_1$4 = es2018$
|
|
1400
|
+
const go_1$4 = es2018$1;
|
|
1401
|
+
const errors_1$4 = es2018$3;
|
|
1747
1402
|
function slice(iterable, start, end = Infinity) {
|
|
1748
1403
|
(0, errors_1$4.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
1749
1404
|
(0, errors_1$4.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
@@ -1783,7 +1438,7 @@
|
|
|
1783
1438
|
var splitByAsync$1 = {};
|
|
1784
1439
|
|
|
1785
1440
|
splitByAsync$1.splitByAsync = void 0;
|
|
1786
|
-
const types_1$d = es2018$
|
|
1441
|
+
const types_1$d = es2018$4;
|
|
1787
1442
|
function splitByAsync(iterable, predicate) {
|
|
1788
1443
|
if ((0, types_1$d.isAsyncIterable)(iterable)) {
|
|
1789
1444
|
return splitByAsyncIterable(iterable);
|
|
@@ -1865,8 +1520,8 @@
|
|
|
1865
1520
|
var takeAsync$1 = {};
|
|
1866
1521
|
|
|
1867
1522
|
takeAsync$1.takeAsync = void 0;
|
|
1868
|
-
const go_1$3 = es2018$
|
|
1869
|
-
const errors_1$3 = es2018$
|
|
1523
|
+
const go_1$3 = es2018$1;
|
|
1524
|
+
const errors_1$3 = es2018$3;
|
|
1870
1525
|
function takeAsync(iterable, count) {
|
|
1871
1526
|
(0, errors_1$3.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1872
1527
|
(0, errors_1$3.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1886,8 +1541,8 @@
|
|
|
1886
1541
|
var takeRightAsync$1 = {};
|
|
1887
1542
|
|
|
1888
1543
|
takeRightAsync$1.takeRightAsync = void 0;
|
|
1889
|
-
const go_1$2 = es2018$
|
|
1890
|
-
const errors_1$2 = es2018$
|
|
1544
|
+
const go_1$2 = es2018$1;
|
|
1545
|
+
const errors_1$2 = es2018$3;
|
|
1891
1546
|
function takeRightAsync(iterable, count) {
|
|
1892
1547
|
(0, errors_1$2.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1893
1548
|
(0, errors_1$2.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1916,8 +1571,8 @@
|
|
|
1916
1571
|
var takeRight$1 = {};
|
|
1917
1572
|
|
|
1918
1573
|
takeRight$1.takeRight = void 0;
|
|
1919
|
-
const go_1$1 = es2018$
|
|
1920
|
-
const errors_1$1 = es2018$
|
|
1574
|
+
const go_1$1 = es2018$1;
|
|
1575
|
+
const errors_1$1 = es2018$3;
|
|
1921
1576
|
function takeRight(iterable, count) {
|
|
1922
1577
|
(0, errors_1$1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1923
1578
|
(0, errors_1$1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1946,7 +1601,7 @@
|
|
|
1946
1601
|
var takeUntilAsync$1 = {};
|
|
1947
1602
|
|
|
1948
1603
|
takeUntilAsync$1.takeUntilAsync = void 0;
|
|
1949
|
-
const types_1$c = es2018$
|
|
1604
|
+
const types_1$c = es2018$4;
|
|
1950
1605
|
function takeUntilAsync(iterable, predicate) {
|
|
1951
1606
|
if ((0, types_1$c.isAsyncIterable)(iterable)) {
|
|
1952
1607
|
return takeUntilAsyncIterable(iterable);
|
|
@@ -1992,8 +1647,8 @@
|
|
|
1992
1647
|
var take$1 = {};
|
|
1993
1648
|
|
|
1994
1649
|
take$1.take = void 0;
|
|
1995
|
-
const go_1 = es2018$
|
|
1996
|
-
const errors_1 = es2018$
|
|
1650
|
+
const go_1 = es2018$1;
|
|
1651
|
+
const errors_1 = es2018$3;
|
|
1997
1652
|
function take(iterable, count) {
|
|
1998
1653
|
(0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1999
1654
|
(0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -2013,7 +1668,7 @@
|
|
|
2013
1668
|
var tapAsync$1 = {};
|
|
2014
1669
|
|
|
2015
1670
|
tapAsync$1.tapAsync = void 0;
|
|
2016
|
-
const types_1$b = es2018$
|
|
1671
|
+
const types_1$b = es2018$4;
|
|
2017
1672
|
function tapAsync(iterable, fn) {
|
|
2018
1673
|
if ((0, types_1$b.isAsyncIterable)(iterable)) {
|
|
2019
1674
|
return tapAsyncIterable(iterable);
|
|
@@ -2096,7 +1751,7 @@
|
|
|
2096
1751
|
var uniqByAsync$1 = {};
|
|
2097
1752
|
|
|
2098
1753
|
uniqByAsync$1.uniqByAsync = void 0;
|
|
2099
|
-
const types_1$a = es2018$
|
|
1754
|
+
const types_1$a = es2018$4;
|
|
2100
1755
|
function uniqByAsync(iterable, fn) {
|
|
2101
1756
|
if ((0, types_1$a.isAsyncIterable)(iterable)) {
|
|
2102
1757
|
return uniqByAsyncIterable(iterable);
|
|
@@ -2165,7 +1820,7 @@
|
|
|
2165
1820
|
var zipAsync$1 = {};
|
|
2166
1821
|
|
|
2167
1822
|
zipAsync$1.zipAsync = void 0;
|
|
2168
|
-
const types_1$9 = es2018$
|
|
1823
|
+
const types_1$9 = es2018$4;
|
|
2169
1824
|
var Kind;
|
|
2170
1825
|
(function (Kind) {
|
|
2171
1826
|
Kind[Kind["Sync"] = 0] = "Sync";
|
|
@@ -2255,7 +1910,11 @@
|
|
|
2255
1910
|
(function (exports) {
|
|
2256
1911
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2257
1912
|
if (k2 === undefined) k2 = k;
|
|
2258
|
-
Object.
|
|
1913
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
1914
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
1915
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
1916
|
+
}
|
|
1917
|
+
Object.defineProperty(o, k2, desc);
|
|
2259
1918
|
}) : (function(o, m, k, k2) {
|
|
2260
1919
|
if (k2 === undefined) k2 = k;
|
|
2261
1920
|
o[k2] = m[k];
|
|
@@ -2325,7 +1984,7 @@
|
|
|
2325
1984
|
var eachAsync$1 = {};
|
|
2326
1985
|
|
|
2327
1986
|
eachAsync$1.eachAsync = void 0;
|
|
2328
|
-
const types_1$8 = es2018$
|
|
1987
|
+
const types_1$8 = es2018$4;
|
|
2329
1988
|
function eachAsync(iterable, fn) {
|
|
2330
1989
|
if ((0, types_1$8.isAsyncIterable)(iterable)) {
|
|
2331
1990
|
return eachAsyncIterable(iterable);
|
|
@@ -2365,7 +2024,7 @@
|
|
|
2365
2024
|
var everyAsync$1 = {};
|
|
2366
2025
|
|
|
2367
2026
|
everyAsync$1.everyAsync = void 0;
|
|
2368
|
-
const types_1$7 = es2018$
|
|
2027
|
+
const types_1$7 = es2018$4;
|
|
2369
2028
|
function everyAsync(iterable, predicate) {
|
|
2370
2029
|
if ((0, types_1$7.isAsyncIterable)(iterable)) {
|
|
2371
2030
|
return everyAsyncIterable(iterable);
|
|
@@ -2411,7 +2070,7 @@
|
|
|
2411
2070
|
var findAsync$1 = {};
|
|
2412
2071
|
|
|
2413
2072
|
findAsync$1.findAsync = void 0;
|
|
2414
|
-
const types_1$6 = es2018$
|
|
2073
|
+
const types_1$6 = es2018$4;
|
|
2415
2074
|
function findAsync(iterable, predicate) {
|
|
2416
2075
|
if ((0, types_1$6.isAsyncIterable)(iterable)) {
|
|
2417
2076
|
return findAsyncIterable(iterable);
|
|
@@ -2535,7 +2194,7 @@
|
|
|
2535
2194
|
var reduceAsync$1 = {};
|
|
2536
2195
|
|
|
2537
2196
|
reduceAsync$1.reduceAsync = void 0;
|
|
2538
|
-
const types_1$5 = es2018$
|
|
2197
|
+
const types_1$5 = es2018$4;
|
|
2539
2198
|
function reduceAsync(iterable, fn, initialValue) {
|
|
2540
2199
|
if ((0, types_1$5.isUndefined)(initialValue)) {
|
|
2541
2200
|
return reduceAsyncWithoutInitialValue(iterable, fn);
|
|
@@ -2631,7 +2290,7 @@
|
|
|
2631
2290
|
var reduce$1 = {};
|
|
2632
2291
|
|
|
2633
2292
|
reduce$1.reduce = void 0;
|
|
2634
|
-
const types_1$4 = es2018$
|
|
2293
|
+
const types_1$4 = es2018$4;
|
|
2635
2294
|
function reduce(iterable, fn, initialValue) {
|
|
2636
2295
|
if ((0, types_1$4.isUndefined)(initialValue)) {
|
|
2637
2296
|
return reduceWithoutInitialValue(iterable, fn);
|
|
@@ -2678,7 +2337,7 @@
|
|
|
2678
2337
|
var someAsync$1 = {};
|
|
2679
2338
|
|
|
2680
2339
|
someAsync$1.someAsync = void 0;
|
|
2681
|
-
const types_1$3 = es2018$
|
|
2340
|
+
const types_1$3 = es2018$4;
|
|
2682
2341
|
function someAsync(iterable, predicate) {
|
|
2683
2342
|
if ((0, types_1$3.isAsyncIterable)(iterable)) {
|
|
2684
2343
|
return someAsyncIterable(iterable);
|
|
@@ -2816,7 +2475,11 @@
|
|
|
2816
2475
|
(function (exports) {
|
|
2817
2476
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2818
2477
|
if (k2 === undefined) k2 = k;
|
|
2819
|
-
Object.
|
|
2478
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2479
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2480
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
2481
|
+
}
|
|
2482
|
+
Object.defineProperty(o, k2, desc);
|
|
2820
2483
|
}) : (function(o, m, k, k2) {
|
|
2821
2484
|
if (k2 === undefined) k2 = k;
|
|
2822
2485
|
o[k2] = m[k];
|
|
@@ -2852,7 +2515,11 @@
|
|
|
2852
2515
|
(function (exports) {
|
|
2853
2516
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2854
2517
|
if (k2 === undefined) k2 = k;
|
|
2855
|
-
Object.
|
|
2518
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2519
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2520
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
2521
|
+
}
|
|
2522
|
+
Object.defineProperty(o, k2, desc);
|
|
2856
2523
|
}) : (function(o, m, k, k2) {
|
|
2857
2524
|
if (k2 === undefined) k2 = k;
|
|
2858
2525
|
o[k2] = m[k];
|
|
@@ -2862,7 +2529,7 @@
|
|
|
2862
2529
|
};__exportStar(middleware, exports);
|
|
2863
2530
|
__exportStar(output, exports);
|
|
2864
2531
|
|
|
2865
|
-
}(es2018$
|
|
2532
|
+
}(es2018$2));
|
|
2866
2533
|
|
|
2867
2534
|
var getErrorNames$1 = {};
|
|
2868
2535
|
|
|
@@ -2880,7 +2547,7 @@
|
|
|
2880
2547
|
traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = traverseErrorPrototypeChain;
|
|
2881
2548
|
|
|
2882
2549
|
getErrorNames$1.getErrorNames = void 0;
|
|
2883
|
-
const types_1$2 = es2018$
|
|
2550
|
+
const types_1$2 = es2018$4;
|
|
2884
2551
|
const traverse_error_prototype_chain_1 = traverseErrorPrototypeChain$1;
|
|
2885
2552
|
function* getErrorNames(err) {
|
|
2886
2553
|
var _a;
|
|
@@ -2901,7 +2568,7 @@
|
|
|
2901
2568
|
var serializableError = {};
|
|
2902
2569
|
|
|
2903
2570
|
serializableError.isSerializableError = void 0;
|
|
2904
|
-
const types_1$1 = es2018$
|
|
2571
|
+
const types_1$1 = es2018$4;
|
|
2905
2572
|
function isSerializableError(val) {
|
|
2906
2573
|
return (0, types_1$1.isObject)(val)
|
|
2907
2574
|
&& (0, types_1$1.isString)(val.name)
|
|
@@ -2911,10 +2578,10 @@
|
|
|
2911
2578
|
}
|
|
2912
2579
|
serializableError.isSerializableError = isSerializableError;
|
|
2913
2580
|
|
|
2914
|
-
customError
|
|
2915
|
-
const iterable_operator_1$1 = es2018$
|
|
2581
|
+
customError.CustomError = void 0;
|
|
2582
|
+
const iterable_operator_1$1 = es2018$2;
|
|
2916
2583
|
const get_error_names_1$1 = getErrorNames$1;
|
|
2917
|
-
const types_1 = es2018$
|
|
2584
|
+
const types_1 = es2018$4;
|
|
2918
2585
|
const serializable_error_1 = serializableError;
|
|
2919
2586
|
class CustomError extends Error {
|
|
2920
2587
|
get name() {
|
|
@@ -2936,12 +2603,12 @@
|
|
|
2936
2603
|
}
|
|
2937
2604
|
}
|
|
2938
2605
|
}
|
|
2939
|
-
customError
|
|
2606
|
+
customError.CustomError = CustomError;
|
|
2940
2607
|
|
|
2941
2608
|
var assertionError = {};
|
|
2942
2609
|
|
|
2943
2610
|
assertionError.AssertionError = void 0;
|
|
2944
|
-
const custom_error_1 = customError
|
|
2611
|
+
const custom_error_1 = customError;
|
|
2945
2612
|
class AssertionError extends custom_error_1.CustomError {
|
|
2946
2613
|
}
|
|
2947
2614
|
assertionError.AssertionError = AssertionError;
|
|
@@ -2950,7 +2617,7 @@
|
|
|
2950
2617
|
|
|
2951
2618
|
normalize$1.normalize = void 0;
|
|
2952
2619
|
const get_error_names_1 = getErrorNames$1;
|
|
2953
|
-
const iterable_operator_1 = es2018$
|
|
2620
|
+
const iterable_operator_1 = es2018$2;
|
|
2954
2621
|
function normalize(err) {
|
|
2955
2622
|
var _a;
|
|
2956
2623
|
const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
|
|
@@ -3026,14 +2693,18 @@
|
|
|
3026
2693
|
(function (exports) {
|
|
3027
2694
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3028
2695
|
if (k2 === undefined) k2 = k;
|
|
3029
|
-
Object.
|
|
2696
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2697
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2698
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
2699
|
+
}
|
|
2700
|
+
Object.defineProperty(o, k2, desc);
|
|
3030
2701
|
}) : (function(o, m, k, k2) {
|
|
3031
2702
|
if (k2 === undefined) k2 = k;
|
|
3032
2703
|
o[k2] = m[k];
|
|
3033
2704
|
}));
|
|
3034
2705
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
3035
2706
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
3036
|
-
};__exportStar(customError
|
|
2707
|
+
};__exportStar(customError, exports);
|
|
3037
2708
|
__exportStar(assertionError, exports);
|
|
3038
2709
|
__exportStar(serializableError, exports);
|
|
3039
2710
|
__exportStar(normalize$1, exports);
|
|
@@ -3042,12 +2713,12 @@
|
|
|
3042
2713
|
__exportStar(getErrorNames$1, exports);
|
|
3043
2714
|
__exportStar(traverseErrorPrototypeChain$1, exports);
|
|
3044
2715
|
|
|
3045
|
-
}(es2018$
|
|
2716
|
+
}(es2018$3));
|
|
3046
2717
|
|
|
3047
2718
|
function csv(payload) {
|
|
3048
|
-
es2018$
|
|
2719
|
+
es2018$3.assert(payload.length > 0, 'payload must be a non-empty array');
|
|
3049
2720
|
return (options) => {
|
|
3050
|
-
const headers = new es2018$
|
|
2721
|
+
const headers = new es2018$5.Headers(options.headers);
|
|
3051
2722
|
headers.set('Content-Type', 'text/csv');
|
|
3052
2723
|
return Object.assign(Object.assign({}, options), { headers, payload: stringify(payload) });
|
|
3053
2724
|
};
|
|
@@ -3065,7 +2736,7 @@
|
|
|
3065
2736
|
|
|
3066
2737
|
function header(name, value) {
|
|
3067
2738
|
return (options) => {
|
|
3068
|
-
const headers = new es2018$
|
|
2739
|
+
const headers = new es2018$5.Headers(options.headers);
|
|
3069
2740
|
headers.set(name, value);
|
|
3070
2741
|
return Object.assign(Object.assign({}, options), { headers });
|
|
3071
2742
|
};
|
|
@@ -3073,7 +2744,7 @@
|
|
|
3073
2744
|
|
|
3074
2745
|
function appendHeader(name, value) {
|
|
3075
2746
|
return (options) => {
|
|
3076
|
-
const headers = new es2018$
|
|
2747
|
+
const headers = new es2018$5.Headers(options.headers);
|
|
3077
2748
|
headers.append(name, value);
|
|
3078
2749
|
return Object.assign(Object.assign({}, options), { headers });
|
|
3079
2750
|
};
|
|
@@ -3081,7 +2752,7 @@
|
|
|
3081
2752
|
|
|
3082
2753
|
function headers(headers) {
|
|
3083
2754
|
return (options) => {
|
|
3084
|
-
const newHeaders = new es2018$
|
|
2755
|
+
const newHeaders = new es2018$5.Headers(options.headers);
|
|
3085
2756
|
for (const [name, value] of Object.entries(headers)) {
|
|
3086
2757
|
newHeaders.set(name, value);
|
|
3087
2758
|
}
|
|
@@ -3159,10 +2830,10 @@
|
|
|
3159
2830
|
|
|
3160
2831
|
function formDataField(name, value) {
|
|
3161
2832
|
return (options) => {
|
|
3162
|
-
const formData = options.payload instanceof es2018$
|
|
2833
|
+
const formData = options.payload instanceof es2018$5.FormData
|
|
3163
2834
|
? cloneFormData(options.payload)
|
|
3164
|
-
: new es2018$
|
|
3165
|
-
if (es2018$
|
|
2835
|
+
: new es2018$5.FormData();
|
|
2836
|
+
if (es2018$4.isArray(value)) {
|
|
3166
2837
|
value.forEach(x => formData.append(name, x));
|
|
3167
2838
|
}
|
|
3168
2839
|
else {
|
|
@@ -3172,7 +2843,7 @@
|
|
|
3172
2843
|
};
|
|
3173
2844
|
}
|
|
3174
2845
|
function cloneFormData(formData) {
|
|
3175
|
-
const result = new es2018$
|
|
2846
|
+
const result = new es2018$5.FormData();
|
|
3176
2847
|
for (const [name, value] of formData.entries()) {
|
|
3177
2848
|
result.append(name, value);
|
|
3178
2849
|
}
|
|
@@ -3261,7 +2932,7 @@
|
|
|
3261
2932
|
exports.header = header;
|
|
3262
2933
|
exports.headers = headers;
|
|
3263
2934
|
exports.host = host;
|
|
3264
|
-
exports.json = json
|
|
2935
|
+
exports.json = json;
|
|
3265
2936
|
exports.keepalive = keepalive;
|
|
3266
2937
|
exports.patch = patch;
|
|
3267
2938
|
exports.pathname = pathname;
|
|
@@ -3273,7 +2944,7 @@
|
|
|
3273
2944
|
exports.searchParams = searchParams;
|
|
3274
2945
|
exports.signal = signal;
|
|
3275
2946
|
exports.text = text;
|
|
3276
|
-
exports.url = url
|
|
2947
|
+
exports.url = url;
|
|
3277
2948
|
|
|
3278
2949
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3279
2950
|
|