@blackglory/estore-js 0.1.0 → 0.1.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 +1 -1
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +867 -1224
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +867 -1224
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +2 -2
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +1 -1
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +867 -1224
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +867 -1224
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +2 -2
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/estore-client.js +3 -1
- package/lib/es2015/estore-client.js.map +1 -1
- package/lib/es2015/utils.d.ts +1 -0
- package/lib/es2015/utils.js +3 -2
- package/lib/es2015/utils.js.map +1 -1
- package/lib/es2018/estore-client.js +3 -1
- package/lib/es2018/estore-client.js.map +1 -1
- package/lib/es2018/utils.d.ts +1 -0
- package/lib/es2018/utils.js +3 -2
- package/lib/es2018/utils.js.map +1 -1
- package/package.json +1 -1
package/dist/es2015/index.mjs
CHANGED
|
@@ -40,7 +40,7 @@ function getAugmentedNamespace(n) {
|
|
|
40
40
|
return a;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
var es2018$
|
|
43
|
+
var es2018$c = {};
|
|
44
44
|
|
|
45
45
|
var fetch_browser = {};
|
|
46
46
|
|
|
@@ -107,9 +107,9 @@ __exportStar(abortError_browser, exports);
|
|
|
107
107
|
__exportStar(blob_browser, exports);
|
|
108
108
|
__exportStar(eventSource_browser, exports);
|
|
109
109
|
|
|
110
|
-
}(es2018$
|
|
110
|
+
}(es2018$c));
|
|
111
111
|
|
|
112
|
-
var es2018$
|
|
112
|
+
var es2018$b = {};
|
|
113
113
|
|
|
114
114
|
var types = /*#__PURE__*/Object.freeze({
|
|
115
115
|
__proto__: null
|
|
@@ -119,193 +119,193 @@ var require$$0$1 = /*@__PURE__*/getAugmentedNamespace(types);
|
|
|
119
119
|
|
|
120
120
|
var request$1 = {};
|
|
121
121
|
|
|
122
|
-
var es2018$
|
|
122
|
+
var es2018$a = {};
|
|
123
123
|
|
|
124
|
-
var array$
|
|
124
|
+
var array$1 = {};
|
|
125
125
|
|
|
126
|
-
array$
|
|
127
|
-
function isArray$
|
|
126
|
+
array$1.isntEmptyArray = array$1.isEmptyArray = array$1.isntArray = array$1.isArray = void 0;
|
|
127
|
+
function isArray$1(val) {
|
|
128
128
|
return Array.isArray(val);
|
|
129
129
|
}
|
|
130
|
-
array$
|
|
131
|
-
function isntArray$
|
|
132
|
-
return !isArray$
|
|
130
|
+
array$1.isArray = isArray$1;
|
|
131
|
+
function isntArray$1(val) {
|
|
132
|
+
return !isArray$1(val);
|
|
133
133
|
}
|
|
134
|
-
array$
|
|
135
|
-
function isEmptyArray$
|
|
134
|
+
array$1.isntArray = isntArray$1;
|
|
135
|
+
function isEmptyArray$1(val) {
|
|
136
136
|
return val.length === 0;
|
|
137
137
|
}
|
|
138
|
-
array$
|
|
139
|
-
function isntEmptyArray$
|
|
138
|
+
array$1.isEmptyArray = isEmptyArray$1;
|
|
139
|
+
function isntEmptyArray$1(val) {
|
|
140
140
|
return val.length !== 0;
|
|
141
141
|
}
|
|
142
|
-
array$
|
|
142
|
+
array$1.isntEmptyArray = isntEmptyArray$1;
|
|
143
143
|
|
|
144
|
-
var asyncIterable$
|
|
144
|
+
var asyncIterable$1 = {};
|
|
145
145
|
|
|
146
|
-
var _null$
|
|
146
|
+
var _null$1 = {};
|
|
147
147
|
|
|
148
|
-
_null$
|
|
149
|
-
function isNull$
|
|
148
|
+
_null$1.isntNull = _null$1.isNull = void 0;
|
|
149
|
+
function isNull$1(val) {
|
|
150
150
|
return val === null;
|
|
151
151
|
}
|
|
152
|
-
_null$
|
|
153
|
-
function isntNull$
|
|
154
|
-
return !isNull$
|
|
152
|
+
_null$1.isNull = isNull$1;
|
|
153
|
+
function isntNull$1(val) {
|
|
154
|
+
return !isNull$1(val);
|
|
155
155
|
}
|
|
156
|
-
_null$
|
|
156
|
+
_null$1.isntNull = isntNull$1;
|
|
157
157
|
|
|
158
|
-
var _undefined$
|
|
158
|
+
var _undefined$1 = {};
|
|
159
159
|
|
|
160
|
-
_undefined$
|
|
161
|
-
function isUndefined$
|
|
160
|
+
_undefined$1.isntUndefined = _undefined$1.isUndefined = void 0;
|
|
161
|
+
function isUndefined$1(val) {
|
|
162
162
|
return val === undefined;
|
|
163
163
|
}
|
|
164
|
-
_undefined$
|
|
165
|
-
function isntUndefined$
|
|
166
|
-
return !isUndefined$
|
|
164
|
+
_undefined$1.isUndefined = isUndefined$1;
|
|
165
|
+
function isntUndefined$1(val) {
|
|
166
|
+
return !isUndefined$1(val);
|
|
167
167
|
}
|
|
168
|
-
_undefined$
|
|
168
|
+
_undefined$1.isntUndefined = isntUndefined$1;
|
|
169
169
|
|
|
170
|
-
asyncIterable$
|
|
171
|
-
const null_1$
|
|
172
|
-
const undefined_1$
|
|
173
|
-
function isAsyncIterable$
|
|
174
|
-
return (0, null_1$
|
|
175
|
-
&& (0, undefined_1$
|
|
170
|
+
asyncIterable$1.isntAsyncIterable = asyncIterable$1.isAsyncIterable = void 0;
|
|
171
|
+
const null_1$3 = _null$1;
|
|
172
|
+
const undefined_1$5 = _undefined$1;
|
|
173
|
+
function isAsyncIterable$1(val) {
|
|
174
|
+
return (0, null_1$3.isntNull)(val)
|
|
175
|
+
&& (0, undefined_1$5.isntUndefined)(val)
|
|
176
176
|
&& typeof val[Symbol.asyncIterator] === 'function';
|
|
177
177
|
}
|
|
178
|
-
asyncIterable$
|
|
179
|
-
function isntAsyncIterable$
|
|
180
|
-
return !isAsyncIterable$
|
|
178
|
+
asyncIterable$1.isAsyncIterable = isAsyncIterable$1;
|
|
179
|
+
function isntAsyncIterable$1(val) {
|
|
180
|
+
return !isAsyncIterable$1(val);
|
|
181
181
|
}
|
|
182
|
-
asyncIterable$
|
|
182
|
+
asyncIterable$1.isntAsyncIterable = isntAsyncIterable$1;
|
|
183
183
|
|
|
184
|
-
var bigint$
|
|
184
|
+
var bigint$1 = {};
|
|
185
185
|
|
|
186
|
-
bigint$
|
|
187
|
-
function isBigInt$
|
|
186
|
+
bigint$1.isntBigInt = bigint$1.isBigInt = void 0;
|
|
187
|
+
function isBigInt$1(val) {
|
|
188
188
|
return typeof val === 'bigint';
|
|
189
189
|
}
|
|
190
|
-
bigint$
|
|
191
|
-
function isntBigInt$
|
|
192
|
-
return !isBigInt$
|
|
190
|
+
bigint$1.isBigInt = isBigInt$1;
|
|
191
|
+
function isntBigInt$1(val) {
|
|
192
|
+
return !isBigInt$1(val);
|
|
193
193
|
}
|
|
194
|
-
bigint$
|
|
194
|
+
bigint$1.isntBigInt = isntBigInt$1;
|
|
195
195
|
|
|
196
|
-
var boolean$
|
|
196
|
+
var boolean$1 = {};
|
|
197
197
|
|
|
198
|
-
boolean$
|
|
199
|
-
function isBoolean$
|
|
198
|
+
boolean$1.isntBoolean = boolean$1.isBoolean = void 0;
|
|
199
|
+
function isBoolean$1(val) {
|
|
200
200
|
return typeof val === 'boolean';
|
|
201
201
|
}
|
|
202
|
-
boolean$
|
|
203
|
-
function isntBoolean$
|
|
204
|
-
return !isBoolean$
|
|
202
|
+
boolean$1.isBoolean = isBoolean$1;
|
|
203
|
+
function isntBoolean$1(val) {
|
|
204
|
+
return !isBoolean$1(val);
|
|
205
205
|
}
|
|
206
|
-
boolean$
|
|
206
|
+
boolean$1.isntBoolean = isntBoolean$1;
|
|
207
207
|
|
|
208
|
-
var char$
|
|
208
|
+
var char$1 = {};
|
|
209
209
|
|
|
210
|
-
var string$
|
|
210
|
+
var string$1 = {};
|
|
211
211
|
|
|
212
|
-
string$
|
|
213
|
-
function isString$
|
|
212
|
+
string$1.isntString = string$1.isString = void 0;
|
|
213
|
+
function isString$1(val) {
|
|
214
214
|
return typeof val === 'string';
|
|
215
215
|
}
|
|
216
|
-
string$
|
|
217
|
-
function isntString$
|
|
218
|
-
return !isString$
|
|
216
|
+
string$1.isString = isString$1;
|
|
217
|
+
function isntString$1(val) {
|
|
218
|
+
return !isString$1(val);
|
|
219
219
|
}
|
|
220
|
-
string$
|
|
220
|
+
string$1.isntString = isntString$1;
|
|
221
221
|
|
|
222
|
-
char$
|
|
223
|
-
const string_1$
|
|
224
|
-
function isChar$
|
|
225
|
-
return (0, string_1$
|
|
222
|
+
char$1.isntChar = char$1.isChar = void 0;
|
|
223
|
+
const string_1$3 = string$1;
|
|
224
|
+
function isChar$1(val) {
|
|
225
|
+
return (0, string_1$3.isString)(val)
|
|
226
226
|
&& val.length === 1;
|
|
227
227
|
}
|
|
228
|
-
char$
|
|
229
|
-
function isntChar$
|
|
230
|
-
return !isChar$
|
|
228
|
+
char$1.isChar = isChar$1;
|
|
229
|
+
function isntChar$1(val) {
|
|
230
|
+
return !isChar$1(val);
|
|
231
231
|
}
|
|
232
|
-
char$
|
|
232
|
+
char$1.isntChar = isntChar$1;
|
|
233
233
|
|
|
234
|
-
var date$
|
|
234
|
+
var date$1 = {};
|
|
235
235
|
|
|
236
|
-
date$
|
|
237
|
-
function isDate$
|
|
236
|
+
date$1.isntDate = date$1.isDate = void 0;
|
|
237
|
+
function isDate$1(val) {
|
|
238
238
|
return val instanceof Date;
|
|
239
239
|
}
|
|
240
|
-
date$
|
|
241
|
-
function isntDate$
|
|
242
|
-
return !isDate$
|
|
240
|
+
date$1.isDate = isDate$1;
|
|
241
|
+
function isntDate$1(val) {
|
|
242
|
+
return !isDate$1(val);
|
|
243
243
|
}
|
|
244
|
-
date$
|
|
244
|
+
date$1.isntDate = isntDate$1;
|
|
245
245
|
|
|
246
|
-
var _enum$
|
|
246
|
+
var _enum$2 = {};
|
|
247
247
|
|
|
248
|
-
_enum$
|
|
249
|
-
function inEnum$
|
|
248
|
+
_enum$2.inEnum = void 0;
|
|
249
|
+
function inEnum$1(val, _enum) {
|
|
250
250
|
return Object.values(_enum).includes(val);
|
|
251
251
|
}
|
|
252
|
-
_enum$
|
|
252
|
+
_enum$2.inEnum = inEnum$1;
|
|
253
253
|
|
|
254
|
-
var error$
|
|
254
|
+
var error$1 = {};
|
|
255
255
|
|
|
256
|
-
error$
|
|
257
|
-
function isError$
|
|
256
|
+
error$1.isntError = error$1.isError = void 0;
|
|
257
|
+
function isError$1(val) {
|
|
258
258
|
return val instanceof Error;
|
|
259
259
|
}
|
|
260
|
-
error$
|
|
261
|
-
function isntError$
|
|
262
|
-
return !isError$
|
|
260
|
+
error$1.isError = isError$1;
|
|
261
|
+
function isntError$1(val) {
|
|
262
|
+
return !isError$1(val);
|
|
263
263
|
}
|
|
264
|
-
error$
|
|
264
|
+
error$1.isntError = isntError$1;
|
|
265
265
|
|
|
266
|
-
var falsy$
|
|
266
|
+
var falsy$1 = {};
|
|
267
267
|
|
|
268
|
-
falsy$
|
|
269
|
-
function isFalsy$
|
|
268
|
+
falsy$1.isntFalsy = falsy$1.isFalsy = void 0;
|
|
269
|
+
function isFalsy$1(val) {
|
|
270
270
|
return !val;
|
|
271
271
|
}
|
|
272
|
-
falsy$
|
|
273
|
-
function isntFalsy$
|
|
274
|
-
return !isFalsy$
|
|
272
|
+
falsy$1.isFalsy = isFalsy$1;
|
|
273
|
+
function isntFalsy$1(val) {
|
|
274
|
+
return !isFalsy$1(val);
|
|
275
275
|
}
|
|
276
|
-
falsy$
|
|
276
|
+
falsy$1.isntFalsy = isntFalsy$1;
|
|
277
277
|
|
|
278
|
-
var _function$
|
|
278
|
+
var _function$1 = {};
|
|
279
279
|
|
|
280
|
-
_function$
|
|
281
|
-
function isFunction$
|
|
280
|
+
_function$1.isntFunction = _function$1.isFunction = void 0;
|
|
281
|
+
function isFunction$1(val) {
|
|
282
282
|
return typeof val === 'function';
|
|
283
283
|
}
|
|
284
|
-
_function$
|
|
285
|
-
function isntFunction$
|
|
286
|
-
return !isFunction$
|
|
284
|
+
_function$1.isFunction = isFunction$1;
|
|
285
|
+
function isntFunction$1(val) {
|
|
286
|
+
return !isFunction$1(val);
|
|
287
287
|
}
|
|
288
|
-
_function$
|
|
288
|
+
_function$1.isntFunction = isntFunction$1;
|
|
289
289
|
|
|
290
|
-
var iterable$
|
|
290
|
+
var iterable$1 = {};
|
|
291
291
|
|
|
292
|
-
iterable$
|
|
293
|
-
const null_1$
|
|
294
|
-
const undefined_1$
|
|
295
|
-
function isIterable$
|
|
296
|
-
return (0, null_1$
|
|
297
|
-
&& (0, undefined_1$
|
|
292
|
+
iterable$1.isntIterable = iterable$1.isIterable = void 0;
|
|
293
|
+
const null_1$2 = _null$1;
|
|
294
|
+
const undefined_1$4 = _undefined$1;
|
|
295
|
+
function isIterable$1(val) {
|
|
296
|
+
return (0, null_1$2.isntNull)(val)
|
|
297
|
+
&& (0, undefined_1$4.isntUndefined)(val)
|
|
298
298
|
&& typeof val[Symbol.iterator] === 'function';
|
|
299
299
|
}
|
|
300
|
-
iterable$
|
|
301
|
-
function isntIterable$
|
|
302
|
-
return !isIterable$
|
|
300
|
+
iterable$1.isIterable = isIterable$1;
|
|
301
|
+
function isntIterable$1(val) {
|
|
302
|
+
return !isIterable$1(val);
|
|
303
303
|
}
|
|
304
|
-
iterable$
|
|
304
|
+
iterable$1.isntIterable = isntIterable$1;
|
|
305
305
|
|
|
306
|
-
var jsonRpc$
|
|
306
|
+
var jsonRpc$1 = {};
|
|
307
307
|
|
|
308
|
-
var object$
|
|
308
|
+
var object$1 = {};
|
|
309
309
|
|
|
310
310
|
/**
|
|
311
311
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -431,7 +431,7 @@ function isObjectLike(value) {
|
|
|
431
431
|
* _.isPlainObject(Object.create(null));
|
|
432
432
|
* // => true
|
|
433
433
|
*/
|
|
434
|
-
function isPlainObject$
|
|
434
|
+
function isPlainObject$2(value) {
|
|
435
435
|
if (!isObjectLike(value) ||
|
|
436
436
|
objectToString.call(value) != objectTag || isHostObject(value)) {
|
|
437
437
|
return false;
|
|
@@ -445,119 +445,119 @@ function isPlainObject$3(value) {
|
|
|
445
445
|
Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);
|
|
446
446
|
}
|
|
447
447
|
|
|
448
|
-
var lodash_isplainobject = isPlainObject$
|
|
448
|
+
var lodash_isplainobject = isPlainObject$2;
|
|
449
449
|
|
|
450
|
-
var __importDefault$
|
|
450
|
+
var __importDefault$2 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
451
451
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
452
|
-
};object$
|
|
453
|
-
const lodash_isplainobject_1$
|
|
454
|
-
function isObject$
|
|
452
|
+
};object$1.isntEmptyObject = object$1.isEmptyObject = object$1.isntPlainObject = object$1.isPlainObject = object$1.isntObject = object$1.isObject = void 0;
|
|
453
|
+
const lodash_isplainobject_1$1 = __importDefault$2(lodash_isplainobject);
|
|
454
|
+
function isObject$1(val) {
|
|
455
455
|
return val !== null
|
|
456
456
|
&& typeof val === 'object';
|
|
457
457
|
}
|
|
458
|
-
object$
|
|
459
|
-
function isntObject$
|
|
460
|
-
return !isObject$
|
|
458
|
+
object$1.isObject = isObject$1;
|
|
459
|
+
function isntObject$1(val) {
|
|
460
|
+
return !isObject$1(val);
|
|
461
461
|
}
|
|
462
|
-
object$
|
|
463
|
-
function isPlainObject$
|
|
464
|
-
return (0, lodash_isplainobject_1$
|
|
462
|
+
object$1.isntObject = isntObject$1;
|
|
463
|
+
function isPlainObject$1(val) {
|
|
464
|
+
return (0, lodash_isplainobject_1$1.default)(val);
|
|
465
465
|
}
|
|
466
|
-
object$
|
|
467
|
-
function isntPlainObject$
|
|
468
|
-
return !isPlainObject$
|
|
466
|
+
object$1.isPlainObject = isPlainObject$1;
|
|
467
|
+
function isntPlainObject$1(val) {
|
|
468
|
+
return !isPlainObject$1(val);
|
|
469
469
|
}
|
|
470
|
-
object$
|
|
471
|
-
function isEmptyObject$
|
|
470
|
+
object$1.isntPlainObject = isntPlainObject$1;
|
|
471
|
+
function isEmptyObject$1(val) {
|
|
472
472
|
return Object.keys(val).length === 0;
|
|
473
473
|
}
|
|
474
|
-
object$
|
|
475
|
-
function isntEmptyObject$
|
|
474
|
+
object$1.isEmptyObject = isEmptyObject$1;
|
|
475
|
+
function isntEmptyObject$1(val) {
|
|
476
476
|
return Object.keys(val).length !== 0;
|
|
477
477
|
}
|
|
478
|
-
object$
|
|
478
|
+
object$1.isntEmptyObject = isntEmptyObject$1;
|
|
479
479
|
|
|
480
|
-
var number$
|
|
480
|
+
var number$1 = {};
|
|
481
481
|
|
|
482
|
-
number$
|
|
483
|
-
function isNumber$
|
|
482
|
+
number$1.isntNumber = number$1.isNumber = void 0;
|
|
483
|
+
function isNumber$1(val) {
|
|
484
484
|
return typeof val === 'number';
|
|
485
485
|
}
|
|
486
|
-
number$
|
|
487
|
-
function isntNumber$
|
|
488
|
-
return !isNumber$
|
|
489
|
-
}
|
|
490
|
-
number$
|
|
491
|
-
|
|
492
|
-
jsonRpc$
|
|
493
|
-
const array_1$
|
|
494
|
-
const object_1$
|
|
495
|
-
const string_1$
|
|
496
|
-
const number_1$
|
|
497
|
-
const undefined_1$
|
|
498
|
-
function isJsonRpcId$
|
|
499
|
-
return (0, string_1$
|
|
500
|
-
}
|
|
501
|
-
function isJsonRpcParams$
|
|
502
|
-
return (0, array_1$
|
|
503
|
-
}
|
|
504
|
-
function isJsonRpcNotification$
|
|
505
|
-
return (0, object_1$
|
|
506
|
-
&& (0, string_1$
|
|
507
|
-
&& (0, string_1$
|
|
508
|
-
&& (0, undefined_1$
|
|
509
|
-
&& isJsonRpcParams$
|
|
510
|
-
}
|
|
511
|
-
jsonRpc$
|
|
512
|
-
function isntJsonRpcNotification$
|
|
513
|
-
return !isJsonRpcNotification$
|
|
514
|
-
}
|
|
515
|
-
jsonRpc$
|
|
516
|
-
function isJsonRpcRequest$
|
|
517
|
-
return (0, object_1$
|
|
518
|
-
&& (0, string_1$
|
|
519
|
-
&& (0, string_1$
|
|
520
|
-
&& isJsonRpcId$
|
|
521
|
-
&& isJsonRpcParams$
|
|
522
|
-
}
|
|
523
|
-
jsonRpc$
|
|
524
|
-
function isntJsonRpcRequest$
|
|
525
|
-
return !isJsonRpcRequest$
|
|
526
|
-
}
|
|
527
|
-
jsonRpc$
|
|
528
|
-
function isJsonRpcSuccess$
|
|
529
|
-
return (0, object_1$
|
|
530
|
-
&& (0, string_1$
|
|
531
|
-
&& (0, string_1$
|
|
486
|
+
number$1.isNumber = isNumber$1;
|
|
487
|
+
function isntNumber$1(val) {
|
|
488
|
+
return !isNumber$1(val);
|
|
489
|
+
}
|
|
490
|
+
number$1.isntNumber = isntNumber$1;
|
|
491
|
+
|
|
492
|
+
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;
|
|
493
|
+
const array_1$1 = array$1;
|
|
494
|
+
const object_1$1 = object$1;
|
|
495
|
+
const string_1$2 = string$1;
|
|
496
|
+
const number_1$1 = number$1;
|
|
497
|
+
const undefined_1$3 = _undefined$1;
|
|
498
|
+
function isJsonRpcId$1(val) {
|
|
499
|
+
return (0, string_1$2.isString)(val) || (0, number_1$1.isNumber)(val);
|
|
500
|
+
}
|
|
501
|
+
function isJsonRpcParams$1(val) {
|
|
502
|
+
return (0, array_1$1.isArray)(val) || (0, object_1$1.isObject)(val);
|
|
503
|
+
}
|
|
504
|
+
function isJsonRpcNotification$1(val) {
|
|
505
|
+
return (0, object_1$1.isPlainObject)(val)
|
|
506
|
+
&& (0, string_1$2.isString)(val.jsonrpc)
|
|
507
|
+
&& (0, string_1$2.isString)(val.method)
|
|
508
|
+
&& (0, undefined_1$3.isUndefined)(val.id)
|
|
509
|
+
&& isJsonRpcParams$1(val.params);
|
|
510
|
+
}
|
|
511
|
+
jsonRpc$1.isJsonRpcNotification = isJsonRpcNotification$1;
|
|
512
|
+
function isntJsonRpcNotification$1(val) {
|
|
513
|
+
return !isJsonRpcNotification$1(val);
|
|
514
|
+
}
|
|
515
|
+
jsonRpc$1.isntJsonRpcNotification = isntJsonRpcNotification$1;
|
|
516
|
+
function isJsonRpcRequest$1(val) {
|
|
517
|
+
return (0, object_1$1.isPlainObject)(val)
|
|
518
|
+
&& (0, string_1$2.isString)(val.jsonrpc)
|
|
519
|
+
&& (0, string_1$2.isString)(val.method)
|
|
520
|
+
&& isJsonRpcId$1(val.id)
|
|
521
|
+
&& isJsonRpcParams$1(val.params);
|
|
522
|
+
}
|
|
523
|
+
jsonRpc$1.isJsonRpcRequest = isJsonRpcRequest$1;
|
|
524
|
+
function isntJsonRpcRequest$1(val) {
|
|
525
|
+
return !isJsonRpcRequest$1(val);
|
|
526
|
+
}
|
|
527
|
+
jsonRpc$1.isntJsonRpcRequest = isntJsonRpcRequest$1;
|
|
528
|
+
function isJsonRpcSuccess$1(val) {
|
|
529
|
+
return (0, object_1$1.isPlainObject)(val)
|
|
530
|
+
&& (0, string_1$2.isString)(val.jsonrpc)
|
|
531
|
+
&& (0, string_1$2.isString)(val.id)
|
|
532
532
|
&& 'result' in val;
|
|
533
533
|
}
|
|
534
|
-
jsonRpc$
|
|
535
|
-
function isntJsonRpcSuccess$
|
|
536
|
-
return !isJsonRpcSuccess$
|
|
534
|
+
jsonRpc$1.isJsonRpcSuccess = isJsonRpcSuccess$1;
|
|
535
|
+
function isntJsonRpcSuccess$1(val) {
|
|
536
|
+
return !isJsonRpcSuccess$1(val);
|
|
537
537
|
}
|
|
538
|
-
jsonRpc$
|
|
539
|
-
function isJsonRpcError$
|
|
540
|
-
return (0, object_1$
|
|
541
|
-
&& (0, string_1$
|
|
542
|
-
&& isJsonRpcId$
|
|
543
|
-
&& isJsonRpcErrorObject$
|
|
538
|
+
jsonRpc$1.isntJsonRpcSuccess = isntJsonRpcSuccess$1;
|
|
539
|
+
function isJsonRpcError$1(val) {
|
|
540
|
+
return (0, object_1$1.isPlainObject)(val)
|
|
541
|
+
&& (0, string_1$2.isString)(val.jsonrpc)
|
|
542
|
+
&& isJsonRpcId$1(val.id)
|
|
543
|
+
&& isJsonRpcErrorObject$1(val.error);
|
|
544
544
|
}
|
|
545
|
-
jsonRpc$
|
|
546
|
-
function isntJsonRpcError$
|
|
547
|
-
return !isJsonRpcError$
|
|
545
|
+
jsonRpc$1.isJsonRpcError = isJsonRpcError$1;
|
|
546
|
+
function isntJsonRpcError$1(val) {
|
|
547
|
+
return !isJsonRpcError$1(val);
|
|
548
548
|
}
|
|
549
|
-
jsonRpc$
|
|
550
|
-
function isJsonRpcErrorObject$
|
|
551
|
-
return (0, object_1$
|
|
552
|
-
&& (0, number_1$
|
|
553
|
-
&& (0, string_1$
|
|
554
|
-
&& ((0, undefined_1$
|
|
549
|
+
jsonRpc$1.isntJsonRpcError = isntJsonRpcError$1;
|
|
550
|
+
function isJsonRpcErrorObject$1(val) {
|
|
551
|
+
return (0, object_1$1.isPlainObject)(val)
|
|
552
|
+
&& (0, number_1$1.isNumber)(val.code)
|
|
553
|
+
&& (0, string_1$2.isString)(val.message)
|
|
554
|
+
&& ((0, undefined_1$3.isUndefined)(val.data) || (0, object_1$1.isObject)(val.data));
|
|
555
555
|
}
|
|
556
556
|
|
|
557
|
-
var json$
|
|
557
|
+
var json$3 = {};
|
|
558
558
|
|
|
559
|
-
json$
|
|
560
|
-
function isJson$
|
|
559
|
+
json$3.isntJson = json$3.isJson = void 0;
|
|
560
|
+
function isJson$1(val) {
|
|
561
561
|
try {
|
|
562
562
|
JSON.stringify(val);
|
|
563
563
|
return true;
|
|
@@ -566,16 +566,16 @@ function isJson$2(val) {
|
|
|
566
566
|
return false;
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
json$
|
|
570
|
-
function isntJson$
|
|
571
|
-
return !isntJson$
|
|
569
|
+
json$3.isJson = isJson$1;
|
|
570
|
+
function isntJson$1(val) {
|
|
571
|
+
return !isntJson$1();
|
|
572
572
|
}
|
|
573
|
-
json$
|
|
573
|
+
json$3.isntJson = isntJson$1;
|
|
574
574
|
|
|
575
|
-
var url$
|
|
575
|
+
var url$3 = {};
|
|
576
576
|
|
|
577
|
-
url$
|
|
578
|
-
function isAbsoluteURL$
|
|
577
|
+
url$3.isAbsoluteURL = void 0;
|
|
578
|
+
function isAbsoluteURL$1(str) {
|
|
579
579
|
try {
|
|
580
580
|
new URL(str);
|
|
581
581
|
return true;
|
|
@@ -584,7 +584,7 @@ function isAbsoluteURL$2(str) {
|
|
|
584
584
|
return false;
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
url$
|
|
587
|
+
url$3.isAbsoluteURL = isAbsoluteURL$1;
|
|
588
588
|
|
|
589
589
|
(function (exports) {
|
|
590
590
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -596,31 +596,31 @@ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Obj
|
|
|
596
596
|
}));
|
|
597
597
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
598
598
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
599
|
-
};__exportStar(array$
|
|
600
|
-
__exportStar(asyncIterable$
|
|
601
|
-
__exportStar(bigint$
|
|
602
|
-
__exportStar(boolean$
|
|
603
|
-
__exportStar(char$
|
|
604
|
-
__exportStar(date$
|
|
605
|
-
__exportStar(_enum$
|
|
606
|
-
__exportStar(error$
|
|
607
|
-
__exportStar(falsy$
|
|
608
|
-
__exportStar(_function$
|
|
609
|
-
__exportStar(iterable$
|
|
610
|
-
__exportStar(jsonRpc$
|
|
611
|
-
__exportStar(json$
|
|
612
|
-
__exportStar(_null$
|
|
613
|
-
__exportStar(number$
|
|
614
|
-
__exportStar(object$
|
|
615
|
-
__exportStar(string$
|
|
616
|
-
__exportStar(_undefined$
|
|
617
|
-
__exportStar(url$
|
|
599
|
+
};__exportStar(array$1, exports);
|
|
600
|
+
__exportStar(asyncIterable$1, exports);
|
|
601
|
+
__exportStar(bigint$1, exports);
|
|
602
|
+
__exportStar(boolean$1, exports);
|
|
603
|
+
__exportStar(char$1, exports);
|
|
604
|
+
__exportStar(date$1, exports);
|
|
605
|
+
__exportStar(_enum$2, exports);
|
|
606
|
+
__exportStar(error$1, exports);
|
|
607
|
+
__exportStar(falsy$1, exports);
|
|
608
|
+
__exportStar(_function$1, exports);
|
|
609
|
+
__exportStar(iterable$1, exports);
|
|
610
|
+
__exportStar(jsonRpc$1, exports);
|
|
611
|
+
__exportStar(json$3, exports);
|
|
612
|
+
__exportStar(_null$1, exports);
|
|
613
|
+
__exportStar(number$1, exports);
|
|
614
|
+
__exportStar(object$1, exports);
|
|
615
|
+
__exportStar(string$1, exports);
|
|
616
|
+
__exportStar(_undefined$1, exports);
|
|
617
|
+
__exportStar(url$3, exports);
|
|
618
618
|
|
|
619
|
-
}(es2018$
|
|
619
|
+
}(es2018$a));
|
|
620
620
|
|
|
621
621
|
request$1.del = request$1.patch = request$1.put = request$1.post = request$1.head = request$1.get = void 0;
|
|
622
|
-
const extra_fetch_1$7 = es2018$
|
|
623
|
-
const types_1$n = es2018$
|
|
622
|
+
const extra_fetch_1$7 = es2018$c;
|
|
623
|
+
const types_1$n = es2018$a;
|
|
624
624
|
function get(...transformers) {
|
|
625
625
|
return request('GET', ...transformers);
|
|
626
626
|
}
|
|
@@ -673,14 +673,14 @@ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m
|
|
|
673
673
|
};__exportStar(require$$0$1, exports);
|
|
674
674
|
__exportStar(request$1, exports);
|
|
675
675
|
|
|
676
|
-
}(es2018$
|
|
676
|
+
}(es2018$b));
|
|
677
677
|
|
|
678
678
|
var transformers = {};
|
|
679
679
|
|
|
680
|
-
var url$
|
|
680
|
+
var url$2 = {};
|
|
681
681
|
|
|
682
|
-
url$
|
|
683
|
-
function url$
|
|
682
|
+
url$2.url = void 0;
|
|
683
|
+
function url$1(...urls) {
|
|
684
684
|
return (options) => {
|
|
685
685
|
const url = new URL(urls.reduce((acc, cur) => new URL(cur, acc).href));
|
|
686
686
|
return {
|
|
@@ -689,12 +689,12 @@ function url$2(...urls) {
|
|
|
689
689
|
};
|
|
690
690
|
};
|
|
691
691
|
}
|
|
692
|
-
url$
|
|
692
|
+
url$2.url = url$1;
|
|
693
693
|
|
|
694
694
|
var text$1 = {};
|
|
695
695
|
|
|
696
696
|
text$1.text = void 0;
|
|
697
|
-
const extra_fetch_1$6 = es2018$
|
|
697
|
+
const extra_fetch_1$6 = es2018$c;
|
|
698
698
|
function text(payload) {
|
|
699
699
|
return (options) => {
|
|
700
700
|
const headers = new extra_fetch_1$6.Headers(options.headers);
|
|
@@ -708,11 +708,11 @@ function text(payload) {
|
|
|
708
708
|
}
|
|
709
709
|
text$1.text = text;
|
|
710
710
|
|
|
711
|
-
var json$
|
|
711
|
+
var json$2 = {};
|
|
712
712
|
|
|
713
|
-
json$
|
|
714
|
-
const extra_fetch_1$5 = es2018$
|
|
715
|
-
function json$
|
|
713
|
+
json$2.json = void 0;
|
|
714
|
+
const extra_fetch_1$5 = es2018$c;
|
|
715
|
+
function json$1(payload) {
|
|
716
716
|
return (options) => {
|
|
717
717
|
const headers = new extra_fetch_1$5.Headers(options.headers);
|
|
718
718
|
headers.set('Content-Type', 'application/json');
|
|
@@ -723,7 +723,7 @@ function json$2(payload) {
|
|
|
723
723
|
};
|
|
724
724
|
};
|
|
725
725
|
}
|
|
726
|
-
json$
|
|
726
|
+
json$2.json = json$1;
|
|
727
727
|
|
|
728
728
|
var csv$1 = {};
|
|
729
729
|
|
|
@@ -740,7 +740,7 @@ License: MIT
|
|
|
740
740
|
!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});
|
|
741
741
|
}(papaparse_min));
|
|
742
742
|
|
|
743
|
-
var es2018$
|
|
743
|
+
var es2018$9 = {};
|
|
744
744
|
|
|
745
745
|
var customError$3 = {};
|
|
746
746
|
|
|
@@ -818,12 +818,12 @@ __exportStar(normalize$7, exports);
|
|
|
818
818
|
__exportStar(refute$5, exports);
|
|
819
819
|
__exportStar(assert$7, exports);
|
|
820
820
|
|
|
821
|
-
}(es2018$
|
|
821
|
+
}(es2018$9));
|
|
822
822
|
|
|
823
823
|
csv$1.csv = void 0;
|
|
824
|
-
const extra_fetch_1$4 = es2018$
|
|
824
|
+
const extra_fetch_1$4 = es2018$c;
|
|
825
825
|
const papaparse_1$1 = papaparse_min.exports;
|
|
826
|
-
const errors_1$i = es2018$
|
|
826
|
+
const errors_1$i = es2018$9;
|
|
827
827
|
function csv(payload) {
|
|
828
828
|
(0, errors_1$i.assert)(payload.length > 0, 'payload must be a non-empty array');
|
|
829
829
|
return (options) => {
|
|
@@ -858,7 +858,7 @@ signal$1.signal = signal;
|
|
|
858
858
|
var header$1 = {};
|
|
859
859
|
|
|
860
860
|
header$1.header = void 0;
|
|
861
|
-
const extra_fetch_1$3 = es2018$
|
|
861
|
+
const extra_fetch_1$3 = es2018$c;
|
|
862
862
|
function header(name, value) {
|
|
863
863
|
return (options) => {
|
|
864
864
|
const headers = new extra_fetch_1$3.Headers(options.headers);
|
|
@@ -874,7 +874,7 @@ header$1.header = header;
|
|
|
874
874
|
var appendHeader$1 = {};
|
|
875
875
|
|
|
876
876
|
appendHeader$1.appendHeader = void 0;
|
|
877
|
-
const extra_fetch_1$2 = es2018$
|
|
877
|
+
const extra_fetch_1$2 = es2018$c;
|
|
878
878
|
function appendHeader(name, value) {
|
|
879
879
|
return (options) => {
|
|
880
880
|
const headers = new extra_fetch_1$2.Headers(options.headers);
|
|
@@ -890,7 +890,7 @@ appendHeader$1.appendHeader = appendHeader;
|
|
|
890
890
|
var headers$1 = {};
|
|
891
891
|
|
|
892
892
|
headers$1.headers = void 0;
|
|
893
|
-
const extra_fetch_1$1 = es2018$
|
|
893
|
+
const extra_fetch_1$1 = es2018$c;
|
|
894
894
|
function headers(headers) {
|
|
895
895
|
return (options) => {
|
|
896
896
|
const newHeaders = new extra_fetch_1$1.Headers(options.headers);
|
|
@@ -1030,8 +1030,8 @@ appendSearchParam$1.appendSearchParam = appendSearchParam;
|
|
|
1030
1030
|
var formDataField$1 = {};
|
|
1031
1031
|
|
|
1032
1032
|
formDataField$1.formDataField = void 0;
|
|
1033
|
-
const extra_fetch_1 = es2018$
|
|
1034
|
-
const types_1$m = es2018$
|
|
1033
|
+
const extra_fetch_1 = es2018$c;
|
|
1034
|
+
const types_1$m = es2018$a;
|
|
1035
1035
|
function formDataField(name, value) {
|
|
1036
1036
|
return (options) => {
|
|
1037
1037
|
const formData = options.payload instanceof extra_fetch_1.FormData
|
|
@@ -1403,9 +1403,9 @@ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Obj
|
|
|
1403
1403
|
}));
|
|
1404
1404
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
1405
1405
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
1406
|
-
};__exportStar(url$
|
|
1406
|
+
};__exportStar(url$2, exports);
|
|
1407
1407
|
__exportStar(text$1, exports);
|
|
1408
|
-
__exportStar(json$
|
|
1408
|
+
__exportStar(json$2, exports);
|
|
1409
1409
|
__exportStar(csv$1, exports);
|
|
1410
1410
|
__exportStar(signal$1, exports);
|
|
1411
1411
|
__exportStar(header$1, exports);
|
|
@@ -1426,7 +1426,7 @@ __exportStar(keepalive$1, exports);
|
|
|
1426
1426
|
|
|
1427
1427
|
}(transformers));
|
|
1428
1428
|
|
|
1429
|
-
var es2018$
|
|
1429
|
+
var es2018$8 = {};
|
|
1430
1430
|
|
|
1431
1431
|
var httpStatus = /*#__PURE__*/Object.freeze({
|
|
1432
1432
|
__proto__: null
|
|
@@ -1436,7 +1436,7 @@ var require$$0 = /*@__PURE__*/getAugmentedNamespace(httpStatus);
|
|
|
1436
1436
|
|
|
1437
1437
|
var httpError = {};
|
|
1438
1438
|
|
|
1439
|
-
var es2018$
|
|
1439
|
+
var es2018$7 = {};
|
|
1440
1440
|
|
|
1441
1441
|
var customError$2 = {};
|
|
1442
1442
|
|
|
@@ -1514,10 +1514,10 @@ __exportStar(normalize$5, exports);
|
|
|
1514
1514
|
__exportStar(refute$3, exports);
|
|
1515
1515
|
__exportStar(assert$5, exports);
|
|
1516
1516
|
|
|
1517
|
-
}(es2018$
|
|
1517
|
+
}(es2018$7));
|
|
1518
1518
|
|
|
1519
1519
|
httpError.HTTPError = void 0;
|
|
1520
|
-
const errors_1$h = es2018$
|
|
1520
|
+
const errors_1$h = es2018$7;
|
|
1521
1521
|
class HTTPError extends errors_1$h.CustomError {
|
|
1522
1522
|
constructor(code, message) {
|
|
1523
1523
|
super(message);
|
|
@@ -1528,7 +1528,7 @@ httpError.HTTPError = HTTPError;
|
|
|
1528
1528
|
|
|
1529
1529
|
var httpInformational = {};
|
|
1530
1530
|
|
|
1531
|
-
var _enum$
|
|
1531
|
+
var _enum$1 = {};
|
|
1532
1532
|
|
|
1533
1533
|
(function (exports) {
|
|
1534
1534
|
exports.ServerError = exports.ClientError = exports.Redirection = exports.Successful = exports.Informational = void 0;
|
|
@@ -1601,10 +1601,10 @@ exports.ServerError = exports.ClientError = exports.Redirection = exports.Succes
|
|
|
1601
1601
|
ServerError[ServerError["NetworkAuthenticationRequired"] = 511] = "NetworkAuthenticationRequired";
|
|
1602
1602
|
})(exports.ServerError || (exports.ServerError = {}));
|
|
1603
1603
|
|
|
1604
|
-
}(_enum$
|
|
1604
|
+
}(_enum$1));
|
|
1605
1605
|
|
|
1606
1606
|
httpInformational.EarlyHints = httpInformational.Processing = httpInformational.SwitchingProtocol = httpInformational.Continue = httpInformational.HTTPInformational = void 0;
|
|
1607
|
-
const enum_1$4 = _enum$
|
|
1607
|
+
const enum_1$4 = _enum$1;
|
|
1608
1608
|
class HTTPInformational {
|
|
1609
1609
|
constructor(code, message) {
|
|
1610
1610
|
this.code = code;
|
|
@@ -1640,7 +1640,7 @@ httpInformational.EarlyHints = EarlyHints;
|
|
|
1640
1640
|
var httpSuccessful = {};
|
|
1641
1641
|
|
|
1642
1642
|
httpSuccessful.IMUsed = httpSuccessful.AlreadyReported = httpSuccessful.MultiStatus = httpSuccessful.PartialContent = httpSuccessful.ResetContent = httpSuccessful.NoContent = httpSuccessful.NonAuthoritativeInformation = httpSuccessful.Accepted = httpSuccessful.Created = httpSuccessful.OK = httpSuccessful.HTTPSuccessful = void 0;
|
|
1643
|
-
const enum_1$3 = _enum$
|
|
1643
|
+
const enum_1$3 = _enum$1;
|
|
1644
1644
|
class HTTPSuccessful {
|
|
1645
1645
|
constructor(code, message) {
|
|
1646
1646
|
this.code = code;
|
|
@@ -1712,7 +1712,7 @@ httpSuccessful.IMUsed = IMUsed;
|
|
|
1712
1712
|
var httpRedirection = {};
|
|
1713
1713
|
|
|
1714
1714
|
httpRedirection.PermanentRedirect = httpRedirection.TemporaryRedirect = httpRedirection.NotModified = httpRedirection.SeeOther = httpRedirection.Found = httpRedirection.MovedPermanently = httpRedirection.MultipleChoice = httpRedirection.HTTPRedirection = void 0;
|
|
1715
|
-
const enum_1$2 = _enum$
|
|
1715
|
+
const enum_1$2 = _enum$1;
|
|
1716
1716
|
class HTTPRedirection {
|
|
1717
1717
|
constructor(code, message) {
|
|
1718
1718
|
this.code = code;
|
|
@@ -1767,7 +1767,7 @@ var httpClientError = {};
|
|
|
1767
1767
|
|
|
1768
1768
|
httpClientError.UnavailableForLegalReasons = httpClientError.RequestHeaderFieldsTooLarge = httpClientError.TooManyRequests = httpClientError.PreconditionRequired = httpClientError.UpgradeRequired = httpClientError.FailedDependency = httpClientError.Locked = httpClientError.UnprocessableEntity = httpClientError.MisdirectedRequest = httpClientError.ExpectationFailed = httpClientError.RangeNotSatisfiable = httpClientError.UnsupportedMediaType = httpClientError.URITooLong = httpClientError.PayloadTooLarge = httpClientError.PreconditionFailed = httpClientError.LengthRequired = httpClientError.Gone = httpClientError.Conflict = httpClientError.RequestTimeout = httpClientError.ProxyAuthenticationRequired = httpClientError.NotAcceptable = httpClientError.MethodNotAllowed = httpClientError.NotFound = httpClientError.Forbidden = httpClientError.Unauthorized = httpClientError.BadRequest = httpClientError.HTTPClientError = void 0;
|
|
1769
1769
|
const http_error_1$1 = httpError;
|
|
1770
|
-
const enum_1$1 = _enum$
|
|
1770
|
+
const enum_1$1 = _enum$1;
|
|
1771
1771
|
class HTTPClientError extends http_error_1$1.HTTPError {
|
|
1772
1772
|
}
|
|
1773
1773
|
httpClientError.HTTPClientError = HTTPClientError;
|
|
@@ -1932,7 +1932,7 @@ var httpServerError = {};
|
|
|
1932
1932
|
|
|
1933
1933
|
httpServerError.NetworkAuthenticationRequired = httpServerError.NotExtended = httpServerError.LoopDetected = httpServerError.InsufficientStorage = httpServerError.VariantAlsoNegotiates = httpServerError.HTTPVersionNotSupported = httpServerError.GatewayTimeout = httpServerError.ServiceUnavailable = httpServerError.BadGateway = httpServerError.NotImplemented = httpServerError.InternalServerError = httpServerError.HTTPServerError = void 0;
|
|
1934
1934
|
const http_error_1 = httpError;
|
|
1935
|
-
const enum_1 = _enum$
|
|
1935
|
+
const enum_1 = _enum$1;
|
|
1936
1936
|
class HTTPServerError extends http_error_1.HTTPError {
|
|
1937
1937
|
}
|
|
1938
1938
|
httpServerError.HTTPServerError = HTTPServerError;
|
|
@@ -2102,16 +2102,16 @@ __exportStar(httpClientError, exports);
|
|
|
2102
2102
|
__exportStar(httpServerError, exports);
|
|
2103
2103
|
__exportStar(utils$1, exports);
|
|
2104
2104
|
|
|
2105
|
-
}(es2018$
|
|
2105
|
+
}(es2018$8));
|
|
2106
2106
|
|
|
2107
|
-
var es2018$
|
|
2107
|
+
var es2018$6 = {};
|
|
2108
2108
|
|
|
2109
2109
|
var ok = {};
|
|
2110
2110
|
|
|
2111
2111
|
(function (exports) {
|
|
2112
2112
|
exports.ok = exports.HTTPError = void 0;
|
|
2113
|
-
const http_status_1 = es2018$
|
|
2114
|
-
var http_status_2 = es2018$
|
|
2113
|
+
const http_status_1 = es2018$8;
|
|
2114
|
+
var http_status_2 = es2018$8;
|
|
2115
2115
|
Object.defineProperty(exports, "HTTPError", { enumerable: true, get: function () { return http_status_2.HTTPError; } });
|
|
2116
2116
|
/**
|
|
2117
2117
|
* @throws {HTTPError}
|
|
@@ -2176,13 +2176,13 @@ toLines$1.toLines = toLines;
|
|
|
2176
2176
|
|
|
2177
2177
|
var toNdjson = {};
|
|
2178
2178
|
|
|
2179
|
-
var es2018$
|
|
2179
|
+
var es2018$5 = {};
|
|
2180
2180
|
|
|
2181
2181
|
var middleware = {};
|
|
2182
2182
|
|
|
2183
2183
|
var chunkAsync$1 = {};
|
|
2184
2184
|
|
|
2185
|
-
var es2018$
|
|
2185
|
+
var es2018$4 = {};
|
|
2186
2186
|
|
|
2187
2187
|
var go$1 = {};
|
|
2188
2188
|
|
|
@@ -2204,9 +2204,9 @@ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m
|
|
|
2204
2204
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2205
2205
|
};__exportStar(go$1, exports);
|
|
2206
2206
|
|
|
2207
|
-
}(es2018$
|
|
2207
|
+
}(es2018$4));
|
|
2208
2208
|
|
|
2209
|
-
var es2018$
|
|
2209
|
+
var es2018$3 = {};
|
|
2210
2210
|
|
|
2211
2211
|
var customError$1 = {};
|
|
2212
2212
|
|
|
@@ -2284,11 +2284,11 @@ __exportStar(normalize$3, exports);
|
|
|
2284
2284
|
__exportStar(refute$1, exports);
|
|
2285
2285
|
__exportStar(assert$3, exports);
|
|
2286
2286
|
|
|
2287
|
-
}(es2018$
|
|
2287
|
+
}(es2018$3));
|
|
2288
2288
|
|
|
2289
2289
|
chunkAsync$1.chunkAsync = void 0;
|
|
2290
|
-
const go_1$f = es2018$
|
|
2291
|
-
const errors_1$g = es2018$
|
|
2290
|
+
const go_1$f = es2018$4;
|
|
2291
|
+
const errors_1$g = es2018$3;
|
|
2292
2292
|
function chunkAsync(iterable, size) {
|
|
2293
2293
|
(0, errors_1$g.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
2294
2294
|
(0, errors_1$g.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
@@ -2309,305 +2309,305 @@ chunkAsync$1.chunkAsync = chunkAsync;
|
|
|
2309
2309
|
|
|
2310
2310
|
var chunkByAsync$1 = {};
|
|
2311
2311
|
|
|
2312
|
-
var es2018$
|
|
2312
|
+
var es2018$2 = {};
|
|
2313
2313
|
|
|
2314
|
-
var array
|
|
2314
|
+
var array = {};
|
|
2315
2315
|
|
|
2316
|
-
array
|
|
2317
|
-
function isArray
|
|
2316
|
+
array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
|
|
2317
|
+
function isArray(val) {
|
|
2318
2318
|
return Array.isArray(val);
|
|
2319
2319
|
}
|
|
2320
|
-
array
|
|
2321
|
-
function isntArray
|
|
2322
|
-
return !isArray
|
|
2320
|
+
array.isArray = isArray;
|
|
2321
|
+
function isntArray(val) {
|
|
2322
|
+
return !isArray(val);
|
|
2323
2323
|
}
|
|
2324
|
-
array
|
|
2325
|
-
function isEmptyArray
|
|
2324
|
+
array.isntArray = isntArray;
|
|
2325
|
+
function isEmptyArray(val) {
|
|
2326
2326
|
return val.length === 0;
|
|
2327
2327
|
}
|
|
2328
|
-
array
|
|
2329
|
-
function isntEmptyArray
|
|
2328
|
+
array.isEmptyArray = isEmptyArray;
|
|
2329
|
+
function isntEmptyArray(val) {
|
|
2330
2330
|
return val.length !== 0;
|
|
2331
2331
|
}
|
|
2332
|
-
array
|
|
2332
|
+
array.isntEmptyArray = isntEmptyArray;
|
|
2333
2333
|
|
|
2334
|
-
var asyncIterable
|
|
2334
|
+
var asyncIterable = {};
|
|
2335
2335
|
|
|
2336
|
-
var _null
|
|
2336
|
+
var _null = {};
|
|
2337
2337
|
|
|
2338
|
-
_null
|
|
2339
|
-
function isNull
|
|
2338
|
+
_null.isntNull = _null.isNull = void 0;
|
|
2339
|
+
function isNull(val) {
|
|
2340
2340
|
return val === null;
|
|
2341
2341
|
}
|
|
2342
|
-
_null
|
|
2343
|
-
function isntNull
|
|
2344
|
-
return !isNull
|
|
2342
|
+
_null.isNull = isNull;
|
|
2343
|
+
function isntNull(val) {
|
|
2344
|
+
return !isNull(val);
|
|
2345
2345
|
}
|
|
2346
|
-
_null
|
|
2346
|
+
_null.isntNull = isntNull;
|
|
2347
2347
|
|
|
2348
|
-
var _undefined
|
|
2348
|
+
var _undefined = {};
|
|
2349
2349
|
|
|
2350
|
-
_undefined
|
|
2351
|
-
function isUndefined
|
|
2350
|
+
_undefined.isntUndefined = _undefined.isUndefined = void 0;
|
|
2351
|
+
function isUndefined(val) {
|
|
2352
2352
|
return val === undefined;
|
|
2353
2353
|
}
|
|
2354
|
-
_undefined
|
|
2355
|
-
function isntUndefined
|
|
2356
|
-
return !isUndefined
|
|
2354
|
+
_undefined.isUndefined = isUndefined;
|
|
2355
|
+
function isntUndefined(val) {
|
|
2356
|
+
return !isUndefined(val);
|
|
2357
2357
|
}
|
|
2358
|
-
_undefined
|
|
2358
|
+
_undefined.isntUndefined = isntUndefined;
|
|
2359
2359
|
|
|
2360
|
-
asyncIterable
|
|
2361
|
-
const null_1$
|
|
2362
|
-
const undefined_1$
|
|
2363
|
-
function isAsyncIterable
|
|
2364
|
-
return (0, null_1$
|
|
2365
|
-
&& (0, undefined_1$
|
|
2360
|
+
asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
|
|
2361
|
+
const null_1$1 = _null;
|
|
2362
|
+
const undefined_1$2 = _undefined;
|
|
2363
|
+
function isAsyncIterable(val) {
|
|
2364
|
+
return (0, null_1$1.isntNull)(val)
|
|
2365
|
+
&& (0, undefined_1$2.isntUndefined)(val)
|
|
2366
2366
|
&& typeof val[Symbol.asyncIterator] === 'function';
|
|
2367
2367
|
}
|
|
2368
|
-
asyncIterable
|
|
2369
|
-
function isntAsyncIterable
|
|
2370
|
-
return !isAsyncIterable
|
|
2368
|
+
asyncIterable.isAsyncIterable = isAsyncIterable;
|
|
2369
|
+
function isntAsyncIterable(val) {
|
|
2370
|
+
return !isAsyncIterable(val);
|
|
2371
2371
|
}
|
|
2372
|
-
asyncIterable
|
|
2372
|
+
asyncIterable.isntAsyncIterable = isntAsyncIterable;
|
|
2373
2373
|
|
|
2374
|
-
var bigint
|
|
2374
|
+
var bigint = {};
|
|
2375
2375
|
|
|
2376
|
-
bigint
|
|
2377
|
-
function isBigInt
|
|
2376
|
+
bigint.isntBigInt = bigint.isBigInt = void 0;
|
|
2377
|
+
function isBigInt(val) {
|
|
2378
2378
|
return typeof val === 'bigint';
|
|
2379
2379
|
}
|
|
2380
|
-
bigint
|
|
2381
|
-
function isntBigInt
|
|
2382
|
-
return !isBigInt
|
|
2380
|
+
bigint.isBigInt = isBigInt;
|
|
2381
|
+
function isntBigInt(val) {
|
|
2382
|
+
return !isBigInt(val);
|
|
2383
2383
|
}
|
|
2384
|
-
bigint
|
|
2384
|
+
bigint.isntBigInt = isntBigInt;
|
|
2385
2385
|
|
|
2386
|
-
var boolean
|
|
2386
|
+
var boolean = {};
|
|
2387
2387
|
|
|
2388
|
-
boolean
|
|
2389
|
-
function isBoolean
|
|
2388
|
+
boolean.isntBoolean = boolean.isBoolean = void 0;
|
|
2389
|
+
function isBoolean(val) {
|
|
2390
2390
|
return typeof val === 'boolean';
|
|
2391
2391
|
}
|
|
2392
|
-
boolean
|
|
2393
|
-
function isntBoolean
|
|
2394
|
-
return !isBoolean
|
|
2392
|
+
boolean.isBoolean = isBoolean;
|
|
2393
|
+
function isntBoolean(val) {
|
|
2394
|
+
return !isBoolean(val);
|
|
2395
2395
|
}
|
|
2396
|
-
boolean
|
|
2396
|
+
boolean.isntBoolean = isntBoolean;
|
|
2397
2397
|
|
|
2398
|
-
var char
|
|
2398
|
+
var char = {};
|
|
2399
2399
|
|
|
2400
|
-
var string
|
|
2400
|
+
var string = {};
|
|
2401
2401
|
|
|
2402
|
-
string
|
|
2403
|
-
function isString
|
|
2402
|
+
string.isntString = string.isString = void 0;
|
|
2403
|
+
function isString(val) {
|
|
2404
2404
|
return typeof val === 'string';
|
|
2405
2405
|
}
|
|
2406
|
-
string
|
|
2407
|
-
function isntString
|
|
2408
|
-
return !isString
|
|
2406
|
+
string.isString = isString;
|
|
2407
|
+
function isntString(val) {
|
|
2408
|
+
return !isString(val);
|
|
2409
2409
|
}
|
|
2410
|
-
string
|
|
2410
|
+
string.isntString = isntString;
|
|
2411
2411
|
|
|
2412
|
-
char
|
|
2413
|
-
const string_1$
|
|
2414
|
-
function isChar
|
|
2415
|
-
return (0, string_1$
|
|
2412
|
+
char.isntChar = char.isChar = void 0;
|
|
2413
|
+
const string_1$1 = string;
|
|
2414
|
+
function isChar(val) {
|
|
2415
|
+
return (0, string_1$1.isString)(val)
|
|
2416
2416
|
&& val.length === 1;
|
|
2417
2417
|
}
|
|
2418
|
-
char
|
|
2419
|
-
function isntChar
|
|
2420
|
-
return !isChar
|
|
2418
|
+
char.isChar = isChar;
|
|
2419
|
+
function isntChar(val) {
|
|
2420
|
+
return !isChar(val);
|
|
2421
2421
|
}
|
|
2422
|
-
char
|
|
2422
|
+
char.isntChar = isntChar;
|
|
2423
2423
|
|
|
2424
|
-
var date
|
|
2424
|
+
var date = {};
|
|
2425
2425
|
|
|
2426
|
-
date
|
|
2427
|
-
function isDate
|
|
2426
|
+
date.isntDate = date.isDate = void 0;
|
|
2427
|
+
function isDate(val) {
|
|
2428
2428
|
return val instanceof Date;
|
|
2429
2429
|
}
|
|
2430
|
-
date
|
|
2431
|
-
function isntDate
|
|
2432
|
-
return !isDate
|
|
2430
|
+
date.isDate = isDate;
|
|
2431
|
+
function isntDate(val) {
|
|
2432
|
+
return !isDate(val);
|
|
2433
2433
|
}
|
|
2434
|
-
date
|
|
2434
|
+
date.isntDate = isntDate;
|
|
2435
2435
|
|
|
2436
|
-
var _enum
|
|
2436
|
+
var _enum = {};
|
|
2437
2437
|
|
|
2438
|
-
_enum
|
|
2439
|
-
function inEnum
|
|
2438
|
+
_enum.inEnum = void 0;
|
|
2439
|
+
function inEnum(val, _enum) {
|
|
2440
2440
|
return Object.values(_enum).includes(val);
|
|
2441
2441
|
}
|
|
2442
|
-
_enum
|
|
2442
|
+
_enum.inEnum = inEnum;
|
|
2443
2443
|
|
|
2444
|
-
var error
|
|
2444
|
+
var error = {};
|
|
2445
2445
|
|
|
2446
|
-
error
|
|
2447
|
-
function isError
|
|
2446
|
+
error.isntError = error.isError = void 0;
|
|
2447
|
+
function isError(val) {
|
|
2448
2448
|
return val instanceof Error;
|
|
2449
2449
|
}
|
|
2450
|
-
error
|
|
2451
|
-
function isntError
|
|
2452
|
-
return !isError
|
|
2450
|
+
error.isError = isError;
|
|
2451
|
+
function isntError(val) {
|
|
2452
|
+
return !isError(val);
|
|
2453
2453
|
}
|
|
2454
|
-
error
|
|
2454
|
+
error.isntError = isntError;
|
|
2455
2455
|
|
|
2456
|
-
var falsy
|
|
2456
|
+
var falsy = {};
|
|
2457
2457
|
|
|
2458
|
-
falsy
|
|
2459
|
-
function isFalsy
|
|
2458
|
+
falsy.isntFalsy = falsy.isFalsy = void 0;
|
|
2459
|
+
function isFalsy(val) {
|
|
2460
2460
|
return !val;
|
|
2461
2461
|
}
|
|
2462
|
-
falsy
|
|
2463
|
-
function isntFalsy
|
|
2464
|
-
return !isFalsy
|
|
2462
|
+
falsy.isFalsy = isFalsy;
|
|
2463
|
+
function isntFalsy(val) {
|
|
2464
|
+
return !isFalsy(val);
|
|
2465
2465
|
}
|
|
2466
|
-
falsy
|
|
2466
|
+
falsy.isntFalsy = isntFalsy;
|
|
2467
2467
|
|
|
2468
|
-
var _function
|
|
2468
|
+
var _function = {};
|
|
2469
2469
|
|
|
2470
|
-
_function
|
|
2471
|
-
function isFunction
|
|
2470
|
+
_function.isntFunction = _function.isFunction = void 0;
|
|
2471
|
+
function isFunction(val) {
|
|
2472
2472
|
return typeof val === 'function';
|
|
2473
2473
|
}
|
|
2474
|
-
_function
|
|
2475
|
-
function isntFunction
|
|
2476
|
-
return !isFunction
|
|
2474
|
+
_function.isFunction = isFunction;
|
|
2475
|
+
function isntFunction(val) {
|
|
2476
|
+
return !isFunction(val);
|
|
2477
2477
|
}
|
|
2478
|
-
_function
|
|
2478
|
+
_function.isntFunction = isntFunction;
|
|
2479
2479
|
|
|
2480
|
-
var iterable
|
|
2480
|
+
var iterable = {};
|
|
2481
2481
|
|
|
2482
|
-
iterable
|
|
2483
|
-
const null_1
|
|
2484
|
-
const undefined_1$
|
|
2485
|
-
function isIterable
|
|
2486
|
-
return (0, null_1
|
|
2487
|
-
&& (0, undefined_1$
|
|
2482
|
+
iterable.isntIterable = iterable.isIterable = void 0;
|
|
2483
|
+
const null_1 = _null;
|
|
2484
|
+
const undefined_1$1 = _undefined;
|
|
2485
|
+
function isIterable(val) {
|
|
2486
|
+
return (0, null_1.isntNull)(val)
|
|
2487
|
+
&& (0, undefined_1$1.isntUndefined)(val)
|
|
2488
2488
|
&& typeof val[Symbol.iterator] === 'function';
|
|
2489
2489
|
}
|
|
2490
|
-
iterable
|
|
2491
|
-
function isntIterable
|
|
2492
|
-
return !isIterable
|
|
2490
|
+
iterable.isIterable = isIterable;
|
|
2491
|
+
function isntIterable(val) {
|
|
2492
|
+
return !isIterable(val);
|
|
2493
2493
|
}
|
|
2494
|
-
iterable
|
|
2494
|
+
iterable.isntIterable = isntIterable;
|
|
2495
2495
|
|
|
2496
|
-
var jsonRpc
|
|
2496
|
+
var jsonRpc = {};
|
|
2497
2497
|
|
|
2498
|
-
var object
|
|
2498
|
+
var object = {};
|
|
2499
2499
|
|
|
2500
|
-
var __importDefault$
|
|
2500
|
+
var __importDefault$1 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
2501
2501
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
2502
|
-
};object
|
|
2503
|
-
const lodash_isplainobject_1
|
|
2504
|
-
function isObject
|
|
2502
|
+
};object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
|
|
2503
|
+
const lodash_isplainobject_1 = __importDefault$1(lodash_isplainobject);
|
|
2504
|
+
function isObject(val) {
|
|
2505
2505
|
return val !== null
|
|
2506
2506
|
&& typeof val === 'object';
|
|
2507
2507
|
}
|
|
2508
|
-
object
|
|
2509
|
-
function isntObject
|
|
2510
|
-
return !isObject
|
|
2508
|
+
object.isObject = isObject;
|
|
2509
|
+
function isntObject(val) {
|
|
2510
|
+
return !isObject(val);
|
|
2511
2511
|
}
|
|
2512
|
-
object
|
|
2513
|
-
function isPlainObject
|
|
2514
|
-
return (0, lodash_isplainobject_1
|
|
2512
|
+
object.isntObject = isntObject;
|
|
2513
|
+
function isPlainObject(val) {
|
|
2514
|
+
return (0, lodash_isplainobject_1.default)(val);
|
|
2515
2515
|
}
|
|
2516
|
-
object
|
|
2517
|
-
function isntPlainObject
|
|
2518
|
-
return !isPlainObject
|
|
2516
|
+
object.isPlainObject = isPlainObject;
|
|
2517
|
+
function isntPlainObject(val) {
|
|
2518
|
+
return !isPlainObject(val);
|
|
2519
2519
|
}
|
|
2520
|
-
object
|
|
2521
|
-
function isEmptyObject
|
|
2520
|
+
object.isntPlainObject = isntPlainObject;
|
|
2521
|
+
function isEmptyObject(val) {
|
|
2522
2522
|
return Object.keys(val).length === 0;
|
|
2523
2523
|
}
|
|
2524
|
-
object
|
|
2525
|
-
function isntEmptyObject
|
|
2524
|
+
object.isEmptyObject = isEmptyObject;
|
|
2525
|
+
function isntEmptyObject(val) {
|
|
2526
2526
|
return Object.keys(val).length !== 0;
|
|
2527
2527
|
}
|
|
2528
|
-
object
|
|
2528
|
+
object.isntEmptyObject = isntEmptyObject;
|
|
2529
2529
|
|
|
2530
|
-
var number
|
|
2530
|
+
var number = {};
|
|
2531
2531
|
|
|
2532
|
-
number
|
|
2533
|
-
function isNumber
|
|
2532
|
+
number.isntNumber = number.isNumber = void 0;
|
|
2533
|
+
function isNumber(val) {
|
|
2534
2534
|
return typeof val === 'number';
|
|
2535
2535
|
}
|
|
2536
|
-
number
|
|
2537
|
-
function isntNumber
|
|
2538
|
-
return !isNumber
|
|
2536
|
+
number.isNumber = isNumber;
|
|
2537
|
+
function isntNumber(val) {
|
|
2538
|
+
return !isNumber(val);
|
|
2539
2539
|
}
|
|
2540
|
-
number
|
|
2540
|
+
number.isntNumber = isntNumber;
|
|
2541
2541
|
|
|
2542
|
-
jsonRpc
|
|
2543
|
-
const array_1
|
|
2544
|
-
const object_1
|
|
2545
|
-
const string_1
|
|
2546
|
-
const number_1
|
|
2547
|
-
const undefined_1
|
|
2548
|
-
function isJsonRpcId
|
|
2549
|
-
return (0, string_1
|
|
2542
|
+
jsonRpc.isntJsonRpcError = jsonRpc.isJsonRpcError = jsonRpc.isntJsonRpcSuccess = jsonRpc.isJsonRpcSuccess = jsonRpc.isntJsonRpcRequest = jsonRpc.isJsonRpcRequest = jsonRpc.isntJsonRpcNotification = jsonRpc.isJsonRpcNotification = void 0;
|
|
2543
|
+
const array_1 = array;
|
|
2544
|
+
const object_1 = object;
|
|
2545
|
+
const string_1 = string;
|
|
2546
|
+
const number_1 = number;
|
|
2547
|
+
const undefined_1 = _undefined;
|
|
2548
|
+
function isJsonRpcId(val) {
|
|
2549
|
+
return (0, string_1.isString)(val) || (0, number_1.isNumber)(val);
|
|
2550
2550
|
}
|
|
2551
|
-
function isJsonRpcParams
|
|
2552
|
-
return (0, array_1
|
|
2551
|
+
function isJsonRpcParams(val) {
|
|
2552
|
+
return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);
|
|
2553
2553
|
}
|
|
2554
|
-
function isJsonRpcNotification
|
|
2555
|
-
return (0, object_1
|
|
2556
|
-
&& (0, string_1
|
|
2557
|
-
&& (0, string_1
|
|
2558
|
-
&& (0, undefined_1
|
|
2559
|
-
&& isJsonRpcParams
|
|
2554
|
+
function isJsonRpcNotification(val) {
|
|
2555
|
+
return (0, object_1.isPlainObject)(val)
|
|
2556
|
+
&& (0, string_1.isString)(val.jsonrpc)
|
|
2557
|
+
&& (0, string_1.isString)(val.method)
|
|
2558
|
+
&& (0, undefined_1.isUndefined)(val.id)
|
|
2559
|
+
&& isJsonRpcParams(val.params);
|
|
2560
2560
|
}
|
|
2561
|
-
jsonRpc
|
|
2562
|
-
function isntJsonRpcNotification
|
|
2563
|
-
return !isJsonRpcNotification
|
|
2561
|
+
jsonRpc.isJsonRpcNotification = isJsonRpcNotification;
|
|
2562
|
+
function isntJsonRpcNotification(val) {
|
|
2563
|
+
return !isJsonRpcNotification(val);
|
|
2564
2564
|
}
|
|
2565
|
-
jsonRpc
|
|
2566
|
-
function isJsonRpcRequest
|
|
2567
|
-
return (0, object_1
|
|
2568
|
-
&& (0, string_1
|
|
2569
|
-
&& (0, string_1
|
|
2570
|
-
&& isJsonRpcId
|
|
2571
|
-
&& isJsonRpcParams
|
|
2565
|
+
jsonRpc.isntJsonRpcNotification = isntJsonRpcNotification;
|
|
2566
|
+
function isJsonRpcRequest(val) {
|
|
2567
|
+
return (0, object_1.isPlainObject)(val)
|
|
2568
|
+
&& (0, string_1.isString)(val.jsonrpc)
|
|
2569
|
+
&& (0, string_1.isString)(val.method)
|
|
2570
|
+
&& isJsonRpcId(val.id)
|
|
2571
|
+
&& isJsonRpcParams(val.params);
|
|
2572
2572
|
}
|
|
2573
|
-
jsonRpc
|
|
2574
|
-
function isntJsonRpcRequest
|
|
2575
|
-
return !isJsonRpcRequest
|
|
2573
|
+
jsonRpc.isJsonRpcRequest = isJsonRpcRequest;
|
|
2574
|
+
function isntJsonRpcRequest(val) {
|
|
2575
|
+
return !isJsonRpcRequest(val);
|
|
2576
2576
|
}
|
|
2577
|
-
jsonRpc
|
|
2578
|
-
function isJsonRpcSuccess
|
|
2579
|
-
return (0, object_1
|
|
2580
|
-
&& (0, string_1
|
|
2581
|
-
&& (0, string_1
|
|
2577
|
+
jsonRpc.isntJsonRpcRequest = isntJsonRpcRequest;
|
|
2578
|
+
function isJsonRpcSuccess(val) {
|
|
2579
|
+
return (0, object_1.isPlainObject)(val)
|
|
2580
|
+
&& (0, string_1.isString)(val.jsonrpc)
|
|
2581
|
+
&& (0, string_1.isString)(val.id)
|
|
2582
2582
|
&& 'result' in val;
|
|
2583
2583
|
}
|
|
2584
|
-
jsonRpc
|
|
2585
|
-
function isntJsonRpcSuccess
|
|
2586
|
-
return !isJsonRpcSuccess
|
|
2584
|
+
jsonRpc.isJsonRpcSuccess = isJsonRpcSuccess;
|
|
2585
|
+
function isntJsonRpcSuccess(val) {
|
|
2586
|
+
return !isJsonRpcSuccess(val);
|
|
2587
2587
|
}
|
|
2588
|
-
jsonRpc
|
|
2589
|
-
function isJsonRpcError
|
|
2590
|
-
return (0, object_1
|
|
2591
|
-
&& (0, string_1
|
|
2592
|
-
&& isJsonRpcId
|
|
2593
|
-
&& isJsonRpcErrorObject
|
|
2588
|
+
jsonRpc.isntJsonRpcSuccess = isntJsonRpcSuccess;
|
|
2589
|
+
function isJsonRpcError(val) {
|
|
2590
|
+
return (0, object_1.isPlainObject)(val)
|
|
2591
|
+
&& (0, string_1.isString)(val.jsonrpc)
|
|
2592
|
+
&& isJsonRpcId(val.id)
|
|
2593
|
+
&& isJsonRpcErrorObject(val.error);
|
|
2594
2594
|
}
|
|
2595
|
-
jsonRpc
|
|
2596
|
-
function isntJsonRpcError
|
|
2597
|
-
return !isJsonRpcError
|
|
2595
|
+
jsonRpc.isJsonRpcError = isJsonRpcError;
|
|
2596
|
+
function isntJsonRpcError(val) {
|
|
2597
|
+
return !isJsonRpcError(val);
|
|
2598
2598
|
}
|
|
2599
|
-
jsonRpc
|
|
2600
|
-
function isJsonRpcErrorObject
|
|
2601
|
-
return (0, object_1
|
|
2602
|
-
&& (0, number_1
|
|
2603
|
-
&& (0, string_1
|
|
2604
|
-
&& ((0, undefined_1
|
|
2599
|
+
jsonRpc.isntJsonRpcError = isntJsonRpcError;
|
|
2600
|
+
function isJsonRpcErrorObject(val) {
|
|
2601
|
+
return (0, object_1.isPlainObject)(val)
|
|
2602
|
+
&& (0, number_1.isNumber)(val.code)
|
|
2603
|
+
&& (0, string_1.isString)(val.message)
|
|
2604
|
+
&& ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));
|
|
2605
2605
|
}
|
|
2606
2606
|
|
|
2607
|
-
var json
|
|
2607
|
+
var json = {};
|
|
2608
2608
|
|
|
2609
|
-
json
|
|
2610
|
-
function isJson
|
|
2609
|
+
json.isntJson = json.isJson = void 0;
|
|
2610
|
+
function isJson(val) {
|
|
2611
2611
|
try {
|
|
2612
2612
|
JSON.stringify(val);
|
|
2613
2613
|
return true;
|
|
@@ -2616,16 +2616,16 @@ function isJson$1(val) {
|
|
|
2616
2616
|
return false;
|
|
2617
2617
|
}
|
|
2618
2618
|
}
|
|
2619
|
-
json
|
|
2620
|
-
function isntJson
|
|
2621
|
-
return !isntJson
|
|
2619
|
+
json.isJson = isJson;
|
|
2620
|
+
function isntJson(val) {
|
|
2621
|
+
return !isntJson();
|
|
2622
2622
|
}
|
|
2623
|
-
json
|
|
2623
|
+
json.isntJson = isntJson;
|
|
2624
2624
|
|
|
2625
|
-
var url
|
|
2625
|
+
var url = {};
|
|
2626
2626
|
|
|
2627
|
-
url
|
|
2628
|
-
function isAbsoluteURL
|
|
2627
|
+
url.isAbsoluteURL = void 0;
|
|
2628
|
+
function isAbsoluteURL(str) {
|
|
2629
2629
|
try {
|
|
2630
2630
|
new URL(str);
|
|
2631
2631
|
return true;
|
|
@@ -2634,7 +2634,7 @@ function isAbsoluteURL$1(str) {
|
|
|
2634
2634
|
return false;
|
|
2635
2635
|
}
|
|
2636
2636
|
}
|
|
2637
|
-
url
|
|
2637
|
+
url.isAbsoluteURL = isAbsoluteURL;
|
|
2638
2638
|
|
|
2639
2639
|
(function (exports) {
|
|
2640
2640
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -2646,30 +2646,30 @@ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Obj
|
|
|
2646
2646
|
}));
|
|
2647
2647
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
2648
2648
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2649
|
-
};__exportStar(array
|
|
2650
|
-
__exportStar(asyncIterable
|
|
2651
|
-
__exportStar(bigint
|
|
2652
|
-
__exportStar(boolean
|
|
2653
|
-
__exportStar(char
|
|
2654
|
-
__exportStar(date
|
|
2655
|
-
__exportStar(_enum
|
|
2656
|
-
__exportStar(error
|
|
2657
|
-
__exportStar(falsy
|
|
2658
|
-
__exportStar(_function
|
|
2659
|
-
__exportStar(iterable
|
|
2660
|
-
__exportStar(jsonRpc
|
|
2661
|
-
__exportStar(json
|
|
2662
|
-
__exportStar(_null
|
|
2663
|
-
__exportStar(number
|
|
2664
|
-
__exportStar(object
|
|
2665
|
-
__exportStar(string
|
|
2666
|
-
__exportStar(_undefined
|
|
2667
|
-
__exportStar(url
|
|
2649
|
+
};__exportStar(array, exports);
|
|
2650
|
+
__exportStar(asyncIterable, exports);
|
|
2651
|
+
__exportStar(bigint, exports);
|
|
2652
|
+
__exportStar(boolean, exports);
|
|
2653
|
+
__exportStar(char, exports);
|
|
2654
|
+
__exportStar(date, exports);
|
|
2655
|
+
__exportStar(_enum, exports);
|
|
2656
|
+
__exportStar(error, exports);
|
|
2657
|
+
__exportStar(falsy, exports);
|
|
2658
|
+
__exportStar(_function, exports);
|
|
2659
|
+
__exportStar(iterable, exports);
|
|
2660
|
+
__exportStar(jsonRpc, exports);
|
|
2661
|
+
__exportStar(json, exports);
|
|
2662
|
+
__exportStar(_null, exports);
|
|
2663
|
+
__exportStar(number, exports);
|
|
2664
|
+
__exportStar(object, exports);
|
|
2665
|
+
__exportStar(string, exports);
|
|
2666
|
+
__exportStar(_undefined, exports);
|
|
2667
|
+
__exportStar(url, exports);
|
|
2668
2668
|
|
|
2669
|
-
}(es2018$
|
|
2669
|
+
}(es2018$2));
|
|
2670
2670
|
|
|
2671
2671
|
chunkByAsync$1.chunkByAsync = void 0;
|
|
2672
|
-
const types_1$l = es2018$
|
|
2672
|
+
const types_1$l = es2018$2;
|
|
2673
2673
|
function chunkByAsync(iterable, predicate) {
|
|
2674
2674
|
if ((0, types_1$l.isAsyncIterable)(iterable)) {
|
|
2675
2675
|
return chunkByAsyncIterable(iterable);
|
|
@@ -2730,8 +2730,8 @@ chunkBy$1.chunkBy = chunkBy;
|
|
|
2730
2730
|
var chunk$1 = {};
|
|
2731
2731
|
|
|
2732
2732
|
chunk$1.chunk = void 0;
|
|
2733
|
-
const go_1$e = es2018$
|
|
2734
|
-
const errors_1$f = es2018$
|
|
2733
|
+
const go_1$e = es2018$4;
|
|
2734
|
+
const errors_1$f = es2018$3;
|
|
2735
2735
|
function chunk(iterable, size) {
|
|
2736
2736
|
(0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
2737
2737
|
(0, errors_1$f.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
@@ -2753,8 +2753,8 @@ chunk$1.chunk = chunk;
|
|
|
2753
2753
|
var concatAsync$1 = {};
|
|
2754
2754
|
|
|
2755
2755
|
concatAsync$1.concatAsync = void 0;
|
|
2756
|
-
const types_1$k = es2018$
|
|
2757
|
-
const go_1$d = es2018$
|
|
2756
|
+
const types_1$k = es2018$2;
|
|
2757
|
+
const go_1$d = es2018$4;
|
|
2758
2758
|
function concatAsync(iterable, ...otherIterables) {
|
|
2759
2759
|
return (0, go_1$d.go)(async function* () {
|
|
2760
2760
|
for (const iter of [iterable, ...otherIterables]) {
|
|
@@ -2776,7 +2776,7 @@ concatAsync$1.concatAsync = concatAsync;
|
|
|
2776
2776
|
var concat$1 = {};
|
|
2777
2777
|
|
|
2778
2778
|
concat$1.concat = void 0;
|
|
2779
|
-
const go_1$c = es2018$
|
|
2779
|
+
const go_1$c = es2018$4;
|
|
2780
2780
|
function concat(iterable, ...otherIterables) {
|
|
2781
2781
|
return (0, go_1$c.go)(function* () {
|
|
2782
2782
|
for (const iter of [iterable, ...otherIterables]) {
|
|
@@ -2805,9 +2805,9 @@ function* copyIterable(iterable) {
|
|
|
2805
2805
|
utils.copyIterable = copyIterable;
|
|
2806
2806
|
|
|
2807
2807
|
dropAsync$1.dropAsync = void 0;
|
|
2808
|
-
const go_1$b = es2018$
|
|
2808
|
+
const go_1$b = es2018$4;
|
|
2809
2809
|
const utils_1$3 = utils;
|
|
2810
|
-
const errors_1$e = es2018$
|
|
2810
|
+
const errors_1$e = es2018$3;
|
|
2811
2811
|
function dropAsync(iterable, count) {
|
|
2812
2812
|
(0, errors_1$e.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
2813
2813
|
(0, errors_1$e.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -2840,9 +2840,9 @@ dropAsync$1.dropAsync = dropAsync;
|
|
|
2840
2840
|
var dropRightAsync$1 = {};
|
|
2841
2841
|
|
|
2842
2842
|
dropRightAsync$1.dropRightAsync = void 0;
|
|
2843
|
-
const go_1$a = es2018$
|
|
2843
|
+
const go_1$a = es2018$4;
|
|
2844
2844
|
const utils_1$2 = utils;
|
|
2845
|
-
const errors_1$d = es2018$
|
|
2845
|
+
const errors_1$d = es2018$3;
|
|
2846
2846
|
function dropRightAsync(iterable, count) {
|
|
2847
2847
|
(0, errors_1$d.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
2848
2848
|
(0, errors_1$d.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -2868,9 +2868,9 @@ async function toArrayAsync$2(iterable) {
|
|
|
2868
2868
|
var dropRight$1 = {};
|
|
2869
2869
|
|
|
2870
2870
|
dropRight$1.dropRight = void 0;
|
|
2871
|
-
const go_1$9 = es2018$
|
|
2871
|
+
const go_1$9 = es2018$4;
|
|
2872
2872
|
const utils_1$1 = utils;
|
|
2873
|
-
const errors_1$c = es2018$
|
|
2873
|
+
const errors_1$c = es2018$3;
|
|
2874
2874
|
function dropRight(iterable, count) {
|
|
2875
2875
|
(0, errors_1$c.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
2876
2876
|
(0, errors_1$c.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -2886,7 +2886,7 @@ dropRight$1.dropRight = dropRight;
|
|
|
2886
2886
|
var dropUntilAsync$1 = {};
|
|
2887
2887
|
|
|
2888
2888
|
dropUntilAsync$1.dropUntilAsync = void 0;
|
|
2889
|
-
const types_1$j = es2018$
|
|
2889
|
+
const types_1$j = es2018$2;
|
|
2890
2890
|
function dropUntilAsync(iterable, predicate) {
|
|
2891
2891
|
if ((0, types_1$j.isAsyncIterable)(iterable)) {
|
|
2892
2892
|
return dropUntilAsyncIterable(iterable);
|
|
@@ -2968,9 +2968,9 @@ dropUntil$1.dropUntil = dropUntil;
|
|
|
2968
2968
|
var drop$1 = {};
|
|
2969
2969
|
|
|
2970
2970
|
drop$1.drop = void 0;
|
|
2971
|
-
const go_1$8 = es2018$
|
|
2971
|
+
const go_1$8 = es2018$4;
|
|
2972
2972
|
const utils_1 = utils;
|
|
2973
|
-
const errors_1$b = es2018$
|
|
2973
|
+
const errors_1$b = es2018$3;
|
|
2974
2974
|
function drop(iterable, count) {
|
|
2975
2975
|
(0, errors_1$b.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
2976
2976
|
(0, errors_1$b.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -3003,7 +3003,7 @@ drop$1.drop = drop;
|
|
|
3003
3003
|
var filterAsync$1 = {};
|
|
3004
3004
|
|
|
3005
3005
|
filterAsync$1.filterAsync = void 0;
|
|
3006
|
-
const types_1$i = es2018$
|
|
3006
|
+
const types_1$i = es2018$2;
|
|
3007
3007
|
function filterAsync(iterable, predicate) {
|
|
3008
3008
|
if ((0, types_1$i.isAsyncIterable)(iterable)) {
|
|
3009
3009
|
return filterAsyncIterable(iterable);
|
|
@@ -3050,7 +3050,7 @@ var flattenDeepAsync$1 = {};
|
|
|
3050
3050
|
var flattenByAsync$1 = {};
|
|
3051
3051
|
|
|
3052
3052
|
flattenByAsync$1.flattenByAsync = void 0;
|
|
3053
|
-
const types_1$h = es2018$
|
|
3053
|
+
const types_1$h = es2018$2;
|
|
3054
3054
|
function flattenByAsync(iterable, predicate) {
|
|
3055
3055
|
if ((0, types_1$h.isAsyncIterable)(iterable)) {
|
|
3056
3056
|
return flattenByAsyncIterable(iterable);
|
|
@@ -3090,7 +3090,7 @@ function isFiniteIterable$1(val) {
|
|
|
3090
3090
|
|
|
3091
3091
|
flattenDeepAsync$1.flattenDeepAsync = void 0;
|
|
3092
3092
|
const flatten_by_async_1 = flattenByAsync$1;
|
|
3093
|
-
const errors_1$a = es2018$
|
|
3093
|
+
const errors_1$a = es2018$3;
|
|
3094
3094
|
function flattenDeepAsync(iterable, depth = Infinity) {
|
|
3095
3095
|
(0, errors_1$a.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
3096
3096
|
(0, errors_1$a.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
@@ -3108,7 +3108,7 @@ flattenAsync$1.flattenAsync = flattenAsync;
|
|
|
3108
3108
|
var flattenBy$1 = {};
|
|
3109
3109
|
|
|
3110
3110
|
flattenBy$1.flattenBy = void 0;
|
|
3111
|
-
const types_1$g = es2018$
|
|
3111
|
+
const types_1$g = es2018$2;
|
|
3112
3112
|
function flattenBy(iterable, predicate) {
|
|
3113
3113
|
return flatten(iterable, 1);
|
|
3114
3114
|
function* flatten(iterable, level) {
|
|
@@ -3131,7 +3131,7 @@ var flattenDeep$1 = {};
|
|
|
3131
3131
|
|
|
3132
3132
|
flattenDeep$1.flattenDeep = void 0;
|
|
3133
3133
|
const flatten_by_1 = flattenBy$1;
|
|
3134
|
-
const errors_1$9 = es2018$
|
|
3134
|
+
const errors_1$9 = es2018$3;
|
|
3135
3135
|
function flattenDeep(iterable, depth = Infinity) {
|
|
3136
3136
|
(0, errors_1$9.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
3137
3137
|
(0, errors_1$9.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
@@ -3151,7 +3151,7 @@ flatten$1.flatten = flatten;
|
|
|
3151
3151
|
var mapAsync$1 = {};
|
|
3152
3152
|
|
|
3153
3153
|
mapAsync$1.mapAsync = void 0;
|
|
3154
|
-
const types_1$f = es2018$
|
|
3154
|
+
const types_1$f = es2018$2;
|
|
3155
3155
|
function mapAsync(iterable, fn) {
|
|
3156
3156
|
if ((0, types_1$f.isAsyncIterable)(iterable)) {
|
|
3157
3157
|
return mapAsyncIterable(iterable);
|
|
@@ -3191,8 +3191,8 @@ map$1.map = map;
|
|
|
3191
3191
|
var repeatAsync$1 = {};
|
|
3192
3192
|
|
|
3193
3193
|
repeatAsync$1.repeatAsync = void 0;
|
|
3194
|
-
const go_1$7 = es2018$
|
|
3195
|
-
const errors_1$8 = es2018$
|
|
3194
|
+
const go_1$7 = es2018$4;
|
|
3195
|
+
const errors_1$8 = es2018$3;
|
|
3196
3196
|
function repeatAsync(iterable, times) {
|
|
3197
3197
|
(0, errors_1$8.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
3198
3198
|
(0, errors_1$8.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
@@ -3226,8 +3226,8 @@ function isProduction$1() {
|
|
|
3226
3226
|
var repeat$1 = {};
|
|
3227
3227
|
|
|
3228
3228
|
repeat$1.repeat = void 0;
|
|
3229
|
-
const go_1$6 = es2018$
|
|
3230
|
-
const errors_1$7 = es2018$
|
|
3229
|
+
const go_1$6 = es2018$4;
|
|
3230
|
+
const errors_1$7 = es2018$3;
|
|
3231
3231
|
function repeat(iterable, times) {
|
|
3232
3232
|
(0, errors_1$7.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
3233
3233
|
(0, errors_1$7.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
@@ -3261,8 +3261,8 @@ function isProduction() {
|
|
|
3261
3261
|
var sliceAsync$1 = {};
|
|
3262
3262
|
|
|
3263
3263
|
sliceAsync$1.sliceAsync = void 0;
|
|
3264
|
-
const go_1$5 = es2018$
|
|
3265
|
-
const errors_1$6 = es2018$
|
|
3264
|
+
const go_1$5 = es2018$4;
|
|
3265
|
+
const errors_1$6 = es2018$3;
|
|
3266
3266
|
function sliceAsync(iterable, start, end = Infinity) {
|
|
3267
3267
|
(0, errors_1$6.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
3268
3268
|
(0, errors_1$6.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
@@ -3284,8 +3284,8 @@ sliceAsync$1.sliceAsync = sliceAsync;
|
|
|
3284
3284
|
var slice$1 = {};
|
|
3285
3285
|
|
|
3286
3286
|
slice$1.slice = void 0;
|
|
3287
|
-
const go_1$4 = es2018$
|
|
3288
|
-
const errors_1$5 = es2018$
|
|
3287
|
+
const go_1$4 = es2018$4;
|
|
3288
|
+
const errors_1$5 = es2018$3;
|
|
3289
3289
|
function slice(iterable, start, end = Infinity) {
|
|
3290
3290
|
(0, errors_1$5.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
3291
3291
|
(0, errors_1$5.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
@@ -3325,7 +3325,7 @@ splitAsync$1.splitAsync = splitAsync;
|
|
|
3325
3325
|
var splitByAsync$1 = {};
|
|
3326
3326
|
|
|
3327
3327
|
splitByAsync$1.splitByAsync = void 0;
|
|
3328
|
-
const types_1$e = es2018$
|
|
3328
|
+
const types_1$e = es2018$2;
|
|
3329
3329
|
function splitByAsync(iterable, predicate) {
|
|
3330
3330
|
if ((0, types_1$e.isAsyncIterable)(iterable)) {
|
|
3331
3331
|
return splitByAsyncIterable(iterable);
|
|
@@ -3407,8 +3407,8 @@ split$1.split = split;
|
|
|
3407
3407
|
var takeAsync$1 = {};
|
|
3408
3408
|
|
|
3409
3409
|
takeAsync$1.takeAsync = void 0;
|
|
3410
|
-
const go_1$3 = es2018$
|
|
3411
|
-
const errors_1$4 = es2018$
|
|
3410
|
+
const go_1$3 = es2018$4;
|
|
3411
|
+
const errors_1$4 = es2018$3;
|
|
3412
3412
|
function takeAsync(iterable, count) {
|
|
3413
3413
|
(0, errors_1$4.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
3414
3414
|
(0, errors_1$4.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -3428,8 +3428,8 @@ takeAsync$1.takeAsync = takeAsync;
|
|
|
3428
3428
|
var takeRightAsync$1 = {};
|
|
3429
3429
|
|
|
3430
3430
|
takeRightAsync$1.takeRightAsync = void 0;
|
|
3431
|
-
const go_1$2 = es2018$
|
|
3432
|
-
const errors_1$3 = es2018$
|
|
3431
|
+
const go_1$2 = es2018$4;
|
|
3432
|
+
const errors_1$3 = es2018$3;
|
|
3433
3433
|
function takeRightAsync(iterable, count) {
|
|
3434
3434
|
(0, errors_1$3.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
3435
3435
|
(0, errors_1$3.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -3458,8 +3458,8 @@ takeRightAsync$1.takeRightAsync = takeRightAsync;
|
|
|
3458
3458
|
var takeRight$1 = {};
|
|
3459
3459
|
|
|
3460
3460
|
takeRight$1.takeRight = void 0;
|
|
3461
|
-
const go_1$1 = es2018$
|
|
3462
|
-
const errors_1$2 = es2018$
|
|
3461
|
+
const go_1$1 = es2018$4;
|
|
3462
|
+
const errors_1$2 = es2018$3;
|
|
3463
3463
|
function takeRight(iterable, count) {
|
|
3464
3464
|
(0, errors_1$2.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
3465
3465
|
(0, errors_1$2.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -3488,7 +3488,7 @@ takeRight$1.takeRight = takeRight;
|
|
|
3488
3488
|
var takeUntilAsync$1 = {};
|
|
3489
3489
|
|
|
3490
3490
|
takeUntilAsync$1.takeUntilAsync = void 0;
|
|
3491
|
-
const types_1$d = es2018$
|
|
3491
|
+
const types_1$d = es2018$2;
|
|
3492
3492
|
function takeUntilAsync(iterable, predicate) {
|
|
3493
3493
|
if ((0, types_1$d.isAsyncIterable)(iterable)) {
|
|
3494
3494
|
return takeUntilAsyncIterable(iterable);
|
|
@@ -3534,8 +3534,8 @@ takeUntil$1.takeUntil = takeUntil;
|
|
|
3534
3534
|
var take$1 = {};
|
|
3535
3535
|
|
|
3536
3536
|
take$1.take = void 0;
|
|
3537
|
-
const go_1 = es2018$
|
|
3538
|
-
const errors_1$1 = es2018$
|
|
3537
|
+
const go_1 = es2018$4;
|
|
3538
|
+
const errors_1$1 = es2018$3;
|
|
3539
3539
|
function take(iterable, count) {
|
|
3540
3540
|
(0, errors_1$1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
3541
3541
|
(0, errors_1$1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -3555,7 +3555,7 @@ take$1.take = take;
|
|
|
3555
3555
|
var tapAsync$1 = {};
|
|
3556
3556
|
|
|
3557
3557
|
tapAsync$1.tapAsync = void 0;
|
|
3558
|
-
const types_1$c = es2018$
|
|
3558
|
+
const types_1$c = es2018$2;
|
|
3559
3559
|
function tapAsync(iterable, fn) {
|
|
3560
3560
|
if ((0, types_1$c.isAsyncIterable)(iterable)) {
|
|
3561
3561
|
return tapAsyncIterable(iterable);
|
|
@@ -3638,7 +3638,7 @@ uniqAsync$1.uniqAsync = uniqAsync;
|
|
|
3638
3638
|
var uniqByAsync$1 = {};
|
|
3639
3639
|
|
|
3640
3640
|
uniqByAsync$1.uniqByAsync = void 0;
|
|
3641
|
-
const types_1$b = es2018$
|
|
3641
|
+
const types_1$b = es2018$2;
|
|
3642
3642
|
function uniqByAsync(iterable, fn) {
|
|
3643
3643
|
if ((0, types_1$b.isAsyncIterable)(iterable)) {
|
|
3644
3644
|
return uniqByAsyncIterable(iterable);
|
|
@@ -3707,7 +3707,7 @@ uniq$1.uniq = uniq;
|
|
|
3707
3707
|
var zipAsync$1 = {};
|
|
3708
3708
|
|
|
3709
3709
|
zipAsync$1.zipAsync = void 0;
|
|
3710
|
-
const types_1$a = es2018$
|
|
3710
|
+
const types_1$a = es2018$2;
|
|
3711
3711
|
var Kind;
|
|
3712
3712
|
(function (Kind) {
|
|
3713
3713
|
Kind[Kind["Sync"] = 0] = "Sync";
|
|
@@ -3867,7 +3867,7 @@ consume$1.consume = consume;
|
|
|
3867
3867
|
var eachAsync$1 = {};
|
|
3868
3868
|
|
|
3869
3869
|
eachAsync$1.eachAsync = void 0;
|
|
3870
|
-
const types_1$9 = es2018$
|
|
3870
|
+
const types_1$9 = es2018$2;
|
|
3871
3871
|
function eachAsync(iterable, fn) {
|
|
3872
3872
|
if ((0, types_1$9.isAsyncIterable)(iterable)) {
|
|
3873
3873
|
return eachAsyncIterable(iterable);
|
|
@@ -3907,7 +3907,7 @@ each$1.each = each;
|
|
|
3907
3907
|
var everyAsync$1 = {};
|
|
3908
3908
|
|
|
3909
3909
|
everyAsync$1.everyAsync = void 0;
|
|
3910
|
-
const types_1$8 = es2018$
|
|
3910
|
+
const types_1$8 = es2018$2;
|
|
3911
3911
|
function everyAsync(iterable, predicate) {
|
|
3912
3912
|
if ((0, types_1$8.isAsyncIterable)(iterable)) {
|
|
3913
3913
|
return everyAsyncIterable(iterable);
|
|
@@ -3953,7 +3953,7 @@ every$1.every = every;
|
|
|
3953
3953
|
var findAsync$1 = {};
|
|
3954
3954
|
|
|
3955
3955
|
findAsync$1.findAsync = void 0;
|
|
3956
|
-
const types_1$7 = es2018$
|
|
3956
|
+
const types_1$7 = es2018$2;
|
|
3957
3957
|
function findAsync(iterable, predicate) {
|
|
3958
3958
|
if ((0, types_1$7.isAsyncIterable)(iterable)) {
|
|
3959
3959
|
return findAsyncIterable(iterable);
|
|
@@ -4077,7 +4077,7 @@ match$1.match = match;
|
|
|
4077
4077
|
var reduceAsync$1 = {};
|
|
4078
4078
|
|
|
4079
4079
|
reduceAsync$1.reduceAsync = void 0;
|
|
4080
|
-
const types_1$6 = es2018$
|
|
4080
|
+
const types_1$6 = es2018$2;
|
|
4081
4081
|
function reduceAsync(iterable, fn, initialValue) {
|
|
4082
4082
|
if ((0, types_1$6.isUndefined)(initialValue)) {
|
|
4083
4083
|
return reduceAsyncWithoutInitialValue(iterable, fn);
|
|
@@ -4173,7 +4173,7 @@ function reduceAsyncWithoutInitialValue(iterable, fn) {
|
|
|
4173
4173
|
var reduce$1 = {};
|
|
4174
4174
|
|
|
4175
4175
|
reduce$1.reduce = void 0;
|
|
4176
|
-
const types_1$5 = es2018$
|
|
4176
|
+
const types_1$5 = es2018$2;
|
|
4177
4177
|
function reduce(iterable, fn, initialValue) {
|
|
4178
4178
|
if ((0, types_1$5.isUndefined)(initialValue)) {
|
|
4179
4179
|
return reduceWithoutInitialValue(iterable, fn);
|
|
@@ -4220,7 +4220,7 @@ function reduceWithoutInitialValue(iterable, fn) {
|
|
|
4220
4220
|
var someAsync$1 = {};
|
|
4221
4221
|
|
|
4222
4222
|
someAsync$1.someAsync = void 0;
|
|
4223
|
-
const types_1$4 = es2018$
|
|
4223
|
+
const types_1$4 = es2018$2;
|
|
4224
4224
|
function someAsync(iterable, predicate) {
|
|
4225
4225
|
if ((0, types_1$4.isAsyncIterable)(iterable)) {
|
|
4226
4226
|
return someAsyncIterable(iterable);
|
|
@@ -4277,536 +4277,83 @@ async function lastAsync(iterable) {
|
|
|
4277
4277
|
result = value;
|
|
4278
4278
|
}
|
|
4279
4279
|
return result;
|
|
4280
|
-
}
|
|
4281
|
-
finally {
|
|
4282
|
-
if (!done)
|
|
4283
|
-
await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
|
|
4284
|
-
}
|
|
4285
|
-
}
|
|
4286
|
-
lastAsync$1.lastAsync = lastAsync;
|
|
4287
|
-
|
|
4288
|
-
var last$1 = {};
|
|
4289
|
-
|
|
4290
|
-
last$1.last = void 0;
|
|
4291
|
-
function last(iterable) {
|
|
4292
|
-
var _a;
|
|
4293
|
-
const iterator = iterable[Symbol.iterator]();
|
|
4294
|
-
let done;
|
|
4295
|
-
try {
|
|
4296
|
-
let value;
|
|
4297
|
-
let result;
|
|
4298
|
-
while ({ value, done } = iterator.next(), !done) {
|
|
4299
|
-
result = value;
|
|
4300
|
-
}
|
|
4301
|
-
return result;
|
|
4302
|
-
}
|
|
4303
|
-
finally {
|
|
4304
|
-
if (!done)
|
|
4305
|
-
(_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
|
|
4306
|
-
}
|
|
4307
|
-
}
|
|
4308
|
-
last$1.last = last;
|
|
4309
|
-
|
|
4310
|
-
var toArrayAsync$1 = {};
|
|
4311
|
-
|
|
4312
|
-
toArrayAsync$1.toArrayAsync = void 0;
|
|
4313
|
-
const consume_1$3 = consume$1;
|
|
4314
|
-
function toArrayAsync(iterable) {
|
|
4315
|
-
return (0, consume_1$3.consume)(iterable, async (iterable) => {
|
|
4316
|
-
const result = [];
|
|
4317
|
-
for await (const element of iterable) {
|
|
4318
|
-
result.push(element);
|
|
4319
|
-
}
|
|
4320
|
-
return result;
|
|
4321
|
-
});
|
|
4322
|
-
}
|
|
4323
|
-
toArrayAsync$1.toArrayAsync = toArrayAsync;
|
|
4324
|
-
|
|
4325
|
-
var toArray$1 = {};
|
|
4326
|
-
|
|
4327
|
-
toArray$1.toArray = void 0;
|
|
4328
|
-
const consume_1$2 = consume$1;
|
|
4329
|
-
function toArray(iterable) {
|
|
4330
|
-
return (0, consume_1$2.consume)(iterable, iterable => Array.from(iterable));
|
|
4331
|
-
}
|
|
4332
|
-
toArray$1.toArray = toArray;
|
|
4333
|
-
|
|
4334
|
-
var toSetAsync$1 = {};
|
|
4335
|
-
|
|
4336
|
-
toSetAsync$1.toSetAsync = void 0;
|
|
4337
|
-
const consume_1$1 = consume$1;
|
|
4338
|
-
function toSetAsync(iterable) {
|
|
4339
|
-
return (0, consume_1$1.consume)(iterable, async (iterable) => {
|
|
4340
|
-
const result = new Set();
|
|
4341
|
-
for await (const element of iterable) {
|
|
4342
|
-
result.add(element);
|
|
4343
|
-
}
|
|
4344
|
-
return result;
|
|
4345
|
-
});
|
|
4346
|
-
}
|
|
4347
|
-
toSetAsync$1.toSetAsync = toSetAsync;
|
|
4348
|
-
|
|
4349
|
-
var toSet$1 = {};
|
|
4350
|
-
|
|
4351
|
-
toSet$1.toSet = void 0;
|
|
4352
|
-
const consume_1 = consume$1;
|
|
4353
|
-
function toSet(iterable) {
|
|
4354
|
-
return (0, consume_1.consume)(iterable, iterable => new Set(iterable));
|
|
4355
|
-
}
|
|
4356
|
-
toSet$1.toSet = toSet;
|
|
4357
|
-
|
|
4358
|
-
(function (exports) {
|
|
4359
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4360
|
-
if (k2 === undefined) k2 = k;
|
|
4361
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
4362
|
-
}) : (function(o, m, k, k2) {
|
|
4363
|
-
if (k2 === undefined) k2 = k;
|
|
4364
|
-
o[k2] = m[k];
|
|
4365
|
-
}));
|
|
4366
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
4367
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
4368
|
-
};__exportStar(consume$1, exports);
|
|
4369
|
-
__exportStar(eachAsync$1, exports);
|
|
4370
|
-
__exportStar(each$1, exports);
|
|
4371
|
-
__exportStar(everyAsync$1, exports);
|
|
4372
|
-
__exportStar(every$1, exports);
|
|
4373
|
-
__exportStar(findAsync$1, exports);
|
|
4374
|
-
__exportStar(find$1, exports);
|
|
4375
|
-
__exportStar(firstAsync$1, exports);
|
|
4376
|
-
__exportStar(first$1, exports);
|
|
4377
|
-
__exportStar(includesAsync$1, exports);
|
|
4378
|
-
__exportStar(includes$1, exports);
|
|
4379
|
-
__exportStar(matchAsync$1, exports);
|
|
4380
|
-
__exportStar(match$1, exports);
|
|
4381
|
-
__exportStar(reduceAsync$1, exports);
|
|
4382
|
-
__exportStar(reduce$1, exports);
|
|
4383
|
-
__exportStar(someAsync$1, exports);
|
|
4384
|
-
__exportStar(some$1, exports);
|
|
4385
|
-
__exportStar(lastAsync$1, exports);
|
|
4386
|
-
__exportStar(last$1, exports);
|
|
4387
|
-
__exportStar(toArrayAsync$1, exports);
|
|
4388
|
-
__exportStar(toArray$1, exports);
|
|
4389
|
-
__exportStar(toSetAsync$1, exports);
|
|
4390
|
-
__exportStar(toSet$1, exports);
|
|
4391
|
-
|
|
4392
|
-
}(output));
|
|
4393
|
-
|
|
4394
|
-
(function (exports) {
|
|
4395
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4396
|
-
if (k2 === undefined) k2 = k;
|
|
4397
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
4398
|
-
}) : (function(o, m, k, k2) {
|
|
4399
|
-
if (k2 === undefined) k2 = k;
|
|
4400
|
-
o[k2] = m[k];
|
|
4401
|
-
}));
|
|
4402
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
4403
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
4404
|
-
};__exportStar(middleware, exports);
|
|
4405
|
-
__exportStar(output, exports);
|
|
4406
|
-
|
|
4407
|
-
}(es2018$6));
|
|
4408
|
-
|
|
4409
|
-
toNdjson.toNDJSON = void 0;
|
|
4410
|
-
const iterable_operator_1$3 = es2018$6;
|
|
4411
|
-
const to_lines_1 = toLines$1;
|
|
4412
|
-
function toNDJSON(res) {
|
|
4413
|
-
return (0, iterable_operator_1$3.mapAsync)((0, to_lines_1.toLines)(res), text => JSON.parse(text));
|
|
4414
|
-
}
|
|
4415
|
-
toNdjson.toNDJSON = toNDJSON;
|
|
4416
|
-
|
|
4417
|
-
var toCsv = {};
|
|
4418
|
-
|
|
4419
|
-
toCsv.toCSV = void 0;
|
|
4420
|
-
const papaparse_1 = papaparse_min.exports;
|
|
4421
|
-
async function toCSV(res) {
|
|
4422
|
-
const text = await res.text();
|
|
4423
|
-
const result = (0, papaparse_1.parse)(text, {
|
|
4424
|
-
header: true,
|
|
4425
|
-
skipEmptyLines: 'greedy'
|
|
4426
|
-
});
|
|
4427
|
-
return result.data;
|
|
4428
|
-
}
|
|
4429
|
-
toCsv.toCSV = toCSV;
|
|
4430
|
-
|
|
4431
|
-
(function (exports) {
|
|
4432
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4433
|
-
if (k2 === undefined) k2 = k;
|
|
4434
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
4435
|
-
}) : (function(o, m, k, k2) {
|
|
4436
|
-
if (k2 === undefined) k2 = k;
|
|
4437
|
-
o[k2] = m[k];
|
|
4438
|
-
}));
|
|
4439
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
4440
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
4441
|
-
};__exportStar(ok, exports);
|
|
4442
|
-
__exportStar(toJson, exports);
|
|
4443
|
-
__exportStar(toText$1, exports);
|
|
4444
|
-
__exportStar(toLines$1, exports);
|
|
4445
|
-
__exportStar(toNdjson, exports);
|
|
4446
|
-
__exportStar(toCsv, exports);
|
|
4447
|
-
|
|
4448
|
-
}(es2018$7));
|
|
4449
|
-
|
|
4450
|
-
var es2018$2 = {};
|
|
4451
|
-
|
|
4452
|
-
var abortController = {};
|
|
4453
|
-
|
|
4454
|
-
var browser = {exports: {}};
|
|
4455
|
-
|
|
4456
|
-
/*globals self, window */
|
|
4457
|
-
|
|
4458
|
-
/*eslint-disable @mysticatea/prettier */
|
|
4459
|
-
const { AbortController, AbortSignal } =
|
|
4460
|
-
typeof self !== "undefined" ? self :
|
|
4461
|
-
typeof window !== "undefined" ? window :
|
|
4462
|
-
/* otherwise */ undefined;
|
|
4463
|
-
/*eslint-enable @mysticatea/prettier */
|
|
4464
|
-
|
|
4465
|
-
browser.exports = AbortController;
|
|
4466
|
-
browser.exports.AbortSignal = AbortSignal;
|
|
4467
|
-
browser.exports.default = AbortController;
|
|
4468
|
-
|
|
4469
|
-
var __importDefault$1 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
4470
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4471
|
-
};
|
|
4472
|
-
var _a$1;abortController.AbortController = void 0;
|
|
4473
|
-
const abort_controller_1$3 = __importDefault$1(browser.exports);
|
|
4474
|
-
abortController.AbortController = (_a$1 = globalThis.AbortController) !== null && _a$1 !== void 0 ? _a$1 : abort_controller_1$3.default;
|
|
4475
|
-
|
|
4476
|
-
var abortError = {};
|
|
4477
|
-
|
|
4478
|
-
var es2018$1 = {};
|
|
4479
|
-
|
|
4480
|
-
var customError = {};
|
|
4481
|
-
|
|
4482
|
-
var getErrorNames$1 = {};
|
|
4483
|
-
|
|
4484
|
-
var es2018 = {};
|
|
4485
|
-
|
|
4486
|
-
var array = {};
|
|
4487
|
-
|
|
4488
|
-
array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
|
|
4489
|
-
function isArray(val) {
|
|
4490
|
-
return Array.isArray(val);
|
|
4491
|
-
}
|
|
4492
|
-
array.isArray = isArray;
|
|
4493
|
-
function isntArray(val) {
|
|
4494
|
-
return !isArray(val);
|
|
4495
|
-
}
|
|
4496
|
-
array.isntArray = isntArray;
|
|
4497
|
-
function isEmptyArray(val) {
|
|
4498
|
-
return val.length === 0;
|
|
4499
|
-
}
|
|
4500
|
-
array.isEmptyArray = isEmptyArray;
|
|
4501
|
-
function isntEmptyArray(val) {
|
|
4502
|
-
return val.length !== 0;
|
|
4503
|
-
}
|
|
4504
|
-
array.isntEmptyArray = isntEmptyArray;
|
|
4505
|
-
|
|
4506
|
-
var asyncIterable = {};
|
|
4507
|
-
|
|
4508
|
-
var _null = {};
|
|
4509
|
-
|
|
4510
|
-
_null.isntNull = _null.isNull = void 0;
|
|
4511
|
-
function isNull(val) {
|
|
4512
|
-
return val === null;
|
|
4513
|
-
}
|
|
4514
|
-
_null.isNull = isNull;
|
|
4515
|
-
function isntNull(val) {
|
|
4516
|
-
return !isNull(val);
|
|
4517
|
-
}
|
|
4518
|
-
_null.isntNull = isntNull;
|
|
4519
|
-
|
|
4520
|
-
var _undefined = {};
|
|
4521
|
-
|
|
4522
|
-
_undefined.isntUndefined = _undefined.isUndefined = void 0;
|
|
4523
|
-
function isUndefined(val) {
|
|
4524
|
-
return val === undefined;
|
|
4525
|
-
}
|
|
4526
|
-
_undefined.isUndefined = isUndefined;
|
|
4527
|
-
function isntUndefined(val) {
|
|
4528
|
-
return !isUndefined(val);
|
|
4529
|
-
}
|
|
4530
|
-
_undefined.isntUndefined = isntUndefined;
|
|
4531
|
-
|
|
4532
|
-
asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
|
|
4533
|
-
const null_1$1 = _null;
|
|
4534
|
-
const undefined_1$2 = _undefined;
|
|
4535
|
-
function isAsyncIterable(val) {
|
|
4536
|
-
return (0, null_1$1.isntNull)(val)
|
|
4537
|
-
&& (0, undefined_1$2.isntUndefined)(val)
|
|
4538
|
-
&& typeof val[Symbol.asyncIterator] === 'function';
|
|
4539
|
-
}
|
|
4540
|
-
asyncIterable.isAsyncIterable = isAsyncIterable;
|
|
4541
|
-
function isntAsyncIterable(val) {
|
|
4542
|
-
return !isAsyncIterable(val);
|
|
4543
|
-
}
|
|
4544
|
-
asyncIterable.isntAsyncIterable = isntAsyncIterable;
|
|
4545
|
-
|
|
4546
|
-
var bigint = {};
|
|
4547
|
-
|
|
4548
|
-
bigint.isntBigInt = bigint.isBigInt = void 0;
|
|
4549
|
-
function isBigInt(val) {
|
|
4550
|
-
return typeof val === 'bigint';
|
|
4551
|
-
}
|
|
4552
|
-
bigint.isBigInt = isBigInt;
|
|
4553
|
-
function isntBigInt(val) {
|
|
4554
|
-
return !isBigInt(val);
|
|
4555
|
-
}
|
|
4556
|
-
bigint.isntBigInt = isntBigInt;
|
|
4557
|
-
|
|
4558
|
-
var boolean = {};
|
|
4559
|
-
|
|
4560
|
-
boolean.isntBoolean = boolean.isBoolean = void 0;
|
|
4561
|
-
function isBoolean(val) {
|
|
4562
|
-
return typeof val === 'boolean';
|
|
4563
|
-
}
|
|
4564
|
-
boolean.isBoolean = isBoolean;
|
|
4565
|
-
function isntBoolean(val) {
|
|
4566
|
-
return !isBoolean(val);
|
|
4567
|
-
}
|
|
4568
|
-
boolean.isntBoolean = isntBoolean;
|
|
4569
|
-
|
|
4570
|
-
var char = {};
|
|
4571
|
-
|
|
4572
|
-
var string = {};
|
|
4573
|
-
|
|
4574
|
-
string.isntString = string.isString = void 0;
|
|
4575
|
-
function isString(val) {
|
|
4576
|
-
return typeof val === 'string';
|
|
4577
|
-
}
|
|
4578
|
-
string.isString = isString;
|
|
4579
|
-
function isntString(val) {
|
|
4580
|
-
return !isString(val);
|
|
4581
|
-
}
|
|
4582
|
-
string.isntString = isntString;
|
|
4583
|
-
|
|
4584
|
-
char.isntChar = char.isChar = void 0;
|
|
4585
|
-
const string_1$1 = string;
|
|
4586
|
-
function isChar(val) {
|
|
4587
|
-
return (0, string_1$1.isString)(val)
|
|
4588
|
-
&& val.length === 1;
|
|
4589
|
-
}
|
|
4590
|
-
char.isChar = isChar;
|
|
4591
|
-
function isntChar(val) {
|
|
4592
|
-
return !isChar(val);
|
|
4593
|
-
}
|
|
4594
|
-
char.isntChar = isntChar;
|
|
4595
|
-
|
|
4596
|
-
var date = {};
|
|
4597
|
-
|
|
4598
|
-
date.isntDate = date.isDate = void 0;
|
|
4599
|
-
function isDate(val) {
|
|
4600
|
-
return val instanceof Date;
|
|
4601
|
-
}
|
|
4602
|
-
date.isDate = isDate;
|
|
4603
|
-
function isntDate(val) {
|
|
4604
|
-
return !isDate(val);
|
|
4605
|
-
}
|
|
4606
|
-
date.isntDate = isntDate;
|
|
4607
|
-
|
|
4608
|
-
var _enum = {};
|
|
4609
|
-
|
|
4610
|
-
_enum.inEnum = void 0;
|
|
4611
|
-
function inEnum(val, _enum) {
|
|
4612
|
-
return Object.values(_enum).includes(val);
|
|
4613
|
-
}
|
|
4614
|
-
_enum.inEnum = inEnum;
|
|
4615
|
-
|
|
4616
|
-
var error = {};
|
|
4617
|
-
|
|
4618
|
-
error.isntError = error.isError = void 0;
|
|
4619
|
-
function isError(val) {
|
|
4620
|
-
return val instanceof Error;
|
|
4621
|
-
}
|
|
4622
|
-
error.isError = isError;
|
|
4623
|
-
function isntError(val) {
|
|
4624
|
-
return !isError(val);
|
|
4625
|
-
}
|
|
4626
|
-
error.isntError = isntError;
|
|
4627
|
-
|
|
4628
|
-
var falsy = {};
|
|
4629
|
-
|
|
4630
|
-
falsy.isntFalsy = falsy.isFalsy = void 0;
|
|
4631
|
-
function isFalsy(val) {
|
|
4632
|
-
return !val;
|
|
4633
|
-
}
|
|
4634
|
-
falsy.isFalsy = isFalsy;
|
|
4635
|
-
function isntFalsy(val) {
|
|
4636
|
-
return !isFalsy(val);
|
|
4637
|
-
}
|
|
4638
|
-
falsy.isntFalsy = isntFalsy;
|
|
4639
|
-
|
|
4640
|
-
var _function = {};
|
|
4641
|
-
|
|
4642
|
-
_function.isntFunction = _function.isFunction = void 0;
|
|
4643
|
-
function isFunction(val) {
|
|
4644
|
-
return typeof val === 'function';
|
|
4645
|
-
}
|
|
4646
|
-
_function.isFunction = isFunction;
|
|
4647
|
-
function isntFunction(val) {
|
|
4648
|
-
return !isFunction(val);
|
|
4649
|
-
}
|
|
4650
|
-
_function.isntFunction = isntFunction;
|
|
4651
|
-
|
|
4652
|
-
var iterable = {};
|
|
4653
|
-
|
|
4654
|
-
iterable.isntIterable = iterable.isIterable = void 0;
|
|
4655
|
-
const null_1 = _null;
|
|
4656
|
-
const undefined_1$1 = _undefined;
|
|
4657
|
-
function isIterable(val) {
|
|
4658
|
-
return (0, null_1.isntNull)(val)
|
|
4659
|
-
&& (0, undefined_1$1.isntUndefined)(val)
|
|
4660
|
-
&& typeof val[Symbol.iterator] === 'function';
|
|
4661
|
-
}
|
|
4662
|
-
iterable.isIterable = isIterable;
|
|
4663
|
-
function isntIterable(val) {
|
|
4664
|
-
return !isIterable(val);
|
|
4665
|
-
}
|
|
4666
|
-
iterable.isntIterable = isntIterable;
|
|
4667
|
-
|
|
4668
|
-
var jsonRpc = {};
|
|
4669
|
-
|
|
4670
|
-
var object = {};
|
|
4671
|
-
|
|
4672
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
4673
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4674
|
-
};object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
|
|
4675
|
-
const lodash_isplainobject_1 = __importDefault(lodash_isplainobject);
|
|
4676
|
-
function isObject(val) {
|
|
4677
|
-
return val !== null
|
|
4678
|
-
&& typeof val === 'object';
|
|
4679
|
-
}
|
|
4680
|
-
object.isObject = isObject;
|
|
4681
|
-
function isntObject(val) {
|
|
4682
|
-
return !isObject(val);
|
|
4683
|
-
}
|
|
4684
|
-
object.isntObject = isntObject;
|
|
4685
|
-
function isPlainObject(val) {
|
|
4686
|
-
return (0, lodash_isplainobject_1.default)(val);
|
|
4687
|
-
}
|
|
4688
|
-
object.isPlainObject = isPlainObject;
|
|
4689
|
-
function isntPlainObject(val) {
|
|
4690
|
-
return !isPlainObject(val);
|
|
4691
|
-
}
|
|
4692
|
-
object.isntPlainObject = isntPlainObject;
|
|
4693
|
-
function isEmptyObject(val) {
|
|
4694
|
-
return Object.keys(val).length === 0;
|
|
4695
|
-
}
|
|
4696
|
-
object.isEmptyObject = isEmptyObject;
|
|
4697
|
-
function isntEmptyObject(val) {
|
|
4698
|
-
return Object.keys(val).length !== 0;
|
|
4699
|
-
}
|
|
4700
|
-
object.isntEmptyObject = isntEmptyObject;
|
|
4701
|
-
|
|
4702
|
-
var number = {};
|
|
4703
|
-
|
|
4704
|
-
number.isntNumber = number.isNumber = void 0;
|
|
4705
|
-
function isNumber(val) {
|
|
4706
|
-
return typeof val === 'number';
|
|
4707
|
-
}
|
|
4708
|
-
number.isNumber = isNumber;
|
|
4709
|
-
function isntNumber(val) {
|
|
4710
|
-
return !isNumber(val);
|
|
4711
|
-
}
|
|
4712
|
-
number.isntNumber = isntNumber;
|
|
4713
|
-
|
|
4714
|
-
jsonRpc.isntJsonRpcError = jsonRpc.isJsonRpcError = jsonRpc.isntJsonRpcSuccess = jsonRpc.isJsonRpcSuccess = jsonRpc.isntJsonRpcRequest = jsonRpc.isJsonRpcRequest = jsonRpc.isntJsonRpcNotification = jsonRpc.isJsonRpcNotification = void 0;
|
|
4715
|
-
const array_1 = array;
|
|
4716
|
-
const object_1 = object;
|
|
4717
|
-
const string_1 = string;
|
|
4718
|
-
const number_1 = number;
|
|
4719
|
-
const undefined_1 = _undefined;
|
|
4720
|
-
function isJsonRpcId(val) {
|
|
4721
|
-
return (0, string_1.isString)(val) || (0, number_1.isNumber)(val);
|
|
4722
|
-
}
|
|
4723
|
-
function isJsonRpcParams(val) {
|
|
4724
|
-
return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);
|
|
4725
|
-
}
|
|
4726
|
-
function isJsonRpcNotification(val) {
|
|
4727
|
-
return (0, object_1.isPlainObject)(val)
|
|
4728
|
-
&& (0, string_1.isString)(val.jsonrpc)
|
|
4729
|
-
&& (0, string_1.isString)(val.method)
|
|
4730
|
-
&& (0, undefined_1.isUndefined)(val.id)
|
|
4731
|
-
&& isJsonRpcParams(val.params);
|
|
4732
|
-
}
|
|
4733
|
-
jsonRpc.isJsonRpcNotification = isJsonRpcNotification;
|
|
4734
|
-
function isntJsonRpcNotification(val) {
|
|
4735
|
-
return !isJsonRpcNotification(val);
|
|
4736
|
-
}
|
|
4737
|
-
jsonRpc.isntJsonRpcNotification = isntJsonRpcNotification;
|
|
4738
|
-
function isJsonRpcRequest(val) {
|
|
4739
|
-
return (0, object_1.isPlainObject)(val)
|
|
4740
|
-
&& (0, string_1.isString)(val.jsonrpc)
|
|
4741
|
-
&& (0, string_1.isString)(val.method)
|
|
4742
|
-
&& isJsonRpcId(val.id)
|
|
4743
|
-
&& isJsonRpcParams(val.params);
|
|
4744
|
-
}
|
|
4745
|
-
jsonRpc.isJsonRpcRequest = isJsonRpcRequest;
|
|
4746
|
-
function isntJsonRpcRequest(val) {
|
|
4747
|
-
return !isJsonRpcRequest(val);
|
|
4748
|
-
}
|
|
4749
|
-
jsonRpc.isntJsonRpcRequest = isntJsonRpcRequest;
|
|
4750
|
-
function isJsonRpcSuccess(val) {
|
|
4751
|
-
return (0, object_1.isPlainObject)(val)
|
|
4752
|
-
&& (0, string_1.isString)(val.jsonrpc)
|
|
4753
|
-
&& (0, string_1.isString)(val.id)
|
|
4754
|
-
&& 'result' in val;
|
|
4755
|
-
}
|
|
4756
|
-
jsonRpc.isJsonRpcSuccess = isJsonRpcSuccess;
|
|
4757
|
-
function isntJsonRpcSuccess(val) {
|
|
4758
|
-
return !isJsonRpcSuccess(val);
|
|
4759
|
-
}
|
|
4760
|
-
jsonRpc.isntJsonRpcSuccess = isntJsonRpcSuccess;
|
|
4761
|
-
function isJsonRpcError(val) {
|
|
4762
|
-
return (0, object_1.isPlainObject)(val)
|
|
4763
|
-
&& (0, string_1.isString)(val.jsonrpc)
|
|
4764
|
-
&& isJsonRpcId(val.id)
|
|
4765
|
-
&& isJsonRpcErrorObject(val.error);
|
|
4766
|
-
}
|
|
4767
|
-
jsonRpc.isJsonRpcError = isJsonRpcError;
|
|
4768
|
-
function isntJsonRpcError(val) {
|
|
4769
|
-
return !isJsonRpcError(val);
|
|
4770
|
-
}
|
|
4771
|
-
jsonRpc.isntJsonRpcError = isntJsonRpcError;
|
|
4772
|
-
function isJsonRpcErrorObject(val) {
|
|
4773
|
-
return (0, object_1.isPlainObject)(val)
|
|
4774
|
-
&& (0, number_1.isNumber)(val.code)
|
|
4775
|
-
&& (0, string_1.isString)(val.message)
|
|
4776
|
-
&& ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));
|
|
4280
|
+
}
|
|
4281
|
+
finally {
|
|
4282
|
+
if (!done)
|
|
4283
|
+
await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
|
|
4284
|
+
}
|
|
4777
4285
|
}
|
|
4286
|
+
lastAsync$1.lastAsync = lastAsync;
|
|
4778
4287
|
|
|
4779
|
-
var
|
|
4288
|
+
var last$1 = {};
|
|
4780
4289
|
|
|
4781
|
-
|
|
4782
|
-
function
|
|
4290
|
+
last$1.last = void 0;
|
|
4291
|
+
function last(iterable) {
|
|
4292
|
+
var _a;
|
|
4293
|
+
const iterator = iterable[Symbol.iterator]();
|
|
4294
|
+
let done;
|
|
4783
4295
|
try {
|
|
4784
|
-
|
|
4785
|
-
|
|
4296
|
+
let value;
|
|
4297
|
+
let result;
|
|
4298
|
+
while ({ value, done } = iterator.next(), !done) {
|
|
4299
|
+
result = value;
|
|
4300
|
+
}
|
|
4301
|
+
return result;
|
|
4786
4302
|
}
|
|
4787
|
-
|
|
4788
|
-
|
|
4303
|
+
finally {
|
|
4304
|
+
if (!done)
|
|
4305
|
+
(_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
|
|
4789
4306
|
}
|
|
4790
4307
|
}
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4308
|
+
last$1.last = last;
|
|
4309
|
+
|
|
4310
|
+
var toArrayAsync$1 = {};
|
|
4311
|
+
|
|
4312
|
+
toArrayAsync$1.toArrayAsync = void 0;
|
|
4313
|
+
const consume_1$3 = consume$1;
|
|
4314
|
+
function toArrayAsync(iterable) {
|
|
4315
|
+
return (0, consume_1$3.consume)(iterable, async (iterable) => {
|
|
4316
|
+
const result = [];
|
|
4317
|
+
for await (const element of iterable) {
|
|
4318
|
+
result.push(element);
|
|
4319
|
+
}
|
|
4320
|
+
return result;
|
|
4321
|
+
});
|
|
4794
4322
|
}
|
|
4795
|
-
|
|
4323
|
+
toArrayAsync$1.toArrayAsync = toArrayAsync;
|
|
4796
4324
|
|
|
4797
|
-
var
|
|
4325
|
+
var toArray$1 = {};
|
|
4798
4326
|
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
return true;
|
|
4804
|
-
}
|
|
4805
|
-
catch (_a) {
|
|
4806
|
-
return false;
|
|
4807
|
-
}
|
|
4327
|
+
toArray$1.toArray = void 0;
|
|
4328
|
+
const consume_1$2 = consume$1;
|
|
4329
|
+
function toArray(iterable) {
|
|
4330
|
+
return (0, consume_1$2.consume)(iterable, iterable => Array.from(iterable));
|
|
4808
4331
|
}
|
|
4809
|
-
|
|
4332
|
+
toArray$1.toArray = toArray;
|
|
4333
|
+
|
|
4334
|
+
var toSetAsync$1 = {};
|
|
4335
|
+
|
|
4336
|
+
toSetAsync$1.toSetAsync = void 0;
|
|
4337
|
+
const consume_1$1 = consume$1;
|
|
4338
|
+
function toSetAsync(iterable) {
|
|
4339
|
+
return (0, consume_1$1.consume)(iterable, async (iterable) => {
|
|
4340
|
+
const result = new Set();
|
|
4341
|
+
for await (const element of iterable) {
|
|
4342
|
+
result.add(element);
|
|
4343
|
+
}
|
|
4344
|
+
return result;
|
|
4345
|
+
});
|
|
4346
|
+
}
|
|
4347
|
+
toSetAsync$1.toSetAsync = toSetAsync;
|
|
4348
|
+
|
|
4349
|
+
var toSet$1 = {};
|
|
4350
|
+
|
|
4351
|
+
toSet$1.toSet = void 0;
|
|
4352
|
+
const consume_1 = consume$1;
|
|
4353
|
+
function toSet(iterable) {
|
|
4354
|
+
return (0, consume_1.consume)(iterable, iterable => new Set(iterable));
|
|
4355
|
+
}
|
|
4356
|
+
toSet$1.toSet = toSet;
|
|
4810
4357
|
|
|
4811
4358
|
(function (exports) {
|
|
4812
4359
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -4818,27 +4365,121 @@ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Obj
|
|
|
4818
4365
|
}));
|
|
4819
4366
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
4820
4367
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
4821
|
-
};__exportStar(
|
|
4822
|
-
__exportStar(
|
|
4823
|
-
__exportStar(
|
|
4824
|
-
__exportStar(
|
|
4825
|
-
__exportStar(
|
|
4826
|
-
__exportStar(
|
|
4827
|
-
__exportStar(
|
|
4828
|
-
__exportStar(
|
|
4829
|
-
__exportStar(
|
|
4830
|
-
__exportStar(
|
|
4831
|
-
__exportStar(
|
|
4832
|
-
__exportStar(
|
|
4833
|
-
__exportStar(
|
|
4834
|
-
__exportStar(
|
|
4835
|
-
__exportStar(
|
|
4836
|
-
__exportStar(
|
|
4837
|
-
__exportStar(
|
|
4838
|
-
__exportStar(
|
|
4839
|
-
__exportStar(
|
|
4368
|
+
};__exportStar(consume$1, exports);
|
|
4369
|
+
__exportStar(eachAsync$1, exports);
|
|
4370
|
+
__exportStar(each$1, exports);
|
|
4371
|
+
__exportStar(everyAsync$1, exports);
|
|
4372
|
+
__exportStar(every$1, exports);
|
|
4373
|
+
__exportStar(findAsync$1, exports);
|
|
4374
|
+
__exportStar(find$1, exports);
|
|
4375
|
+
__exportStar(firstAsync$1, exports);
|
|
4376
|
+
__exportStar(first$1, exports);
|
|
4377
|
+
__exportStar(includesAsync$1, exports);
|
|
4378
|
+
__exportStar(includes$1, exports);
|
|
4379
|
+
__exportStar(matchAsync$1, exports);
|
|
4380
|
+
__exportStar(match$1, exports);
|
|
4381
|
+
__exportStar(reduceAsync$1, exports);
|
|
4382
|
+
__exportStar(reduce$1, exports);
|
|
4383
|
+
__exportStar(someAsync$1, exports);
|
|
4384
|
+
__exportStar(some$1, exports);
|
|
4385
|
+
__exportStar(lastAsync$1, exports);
|
|
4386
|
+
__exportStar(last$1, exports);
|
|
4387
|
+
__exportStar(toArrayAsync$1, exports);
|
|
4388
|
+
__exportStar(toArray$1, exports);
|
|
4389
|
+
__exportStar(toSetAsync$1, exports);
|
|
4390
|
+
__exportStar(toSet$1, exports);
|
|
4840
4391
|
|
|
4841
|
-
}(
|
|
4392
|
+
}(output));
|
|
4393
|
+
|
|
4394
|
+
(function (exports) {
|
|
4395
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4396
|
+
if (k2 === undefined) k2 = k;
|
|
4397
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
4398
|
+
}) : (function(o, m, k, k2) {
|
|
4399
|
+
if (k2 === undefined) k2 = k;
|
|
4400
|
+
o[k2] = m[k];
|
|
4401
|
+
}));
|
|
4402
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
4403
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
4404
|
+
};__exportStar(middleware, exports);
|
|
4405
|
+
__exportStar(output, exports);
|
|
4406
|
+
|
|
4407
|
+
}(es2018$5));
|
|
4408
|
+
|
|
4409
|
+
toNdjson.toNDJSON = void 0;
|
|
4410
|
+
const iterable_operator_1$3 = es2018$5;
|
|
4411
|
+
const to_lines_1 = toLines$1;
|
|
4412
|
+
function toNDJSON(res) {
|
|
4413
|
+
return (0, iterable_operator_1$3.mapAsync)((0, to_lines_1.toLines)(res), text => JSON.parse(text));
|
|
4414
|
+
}
|
|
4415
|
+
toNdjson.toNDJSON = toNDJSON;
|
|
4416
|
+
|
|
4417
|
+
var toCsv = {};
|
|
4418
|
+
|
|
4419
|
+
toCsv.toCSV = void 0;
|
|
4420
|
+
const papaparse_1 = papaparse_min.exports;
|
|
4421
|
+
async function toCSV(res) {
|
|
4422
|
+
const text = await res.text();
|
|
4423
|
+
const result = (0, papaparse_1.parse)(text, {
|
|
4424
|
+
header: true,
|
|
4425
|
+
skipEmptyLines: 'greedy'
|
|
4426
|
+
});
|
|
4427
|
+
return result.data;
|
|
4428
|
+
}
|
|
4429
|
+
toCsv.toCSV = toCSV;
|
|
4430
|
+
|
|
4431
|
+
(function (exports) {
|
|
4432
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4433
|
+
if (k2 === undefined) k2 = k;
|
|
4434
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
4435
|
+
}) : (function(o, m, k, k2) {
|
|
4436
|
+
if (k2 === undefined) k2 = k;
|
|
4437
|
+
o[k2] = m[k];
|
|
4438
|
+
}));
|
|
4439
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
4440
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
4441
|
+
};__exportStar(ok, exports);
|
|
4442
|
+
__exportStar(toJson, exports);
|
|
4443
|
+
__exportStar(toText$1, exports);
|
|
4444
|
+
__exportStar(toLines$1, exports);
|
|
4445
|
+
__exportStar(toNdjson, exports);
|
|
4446
|
+
__exportStar(toCsv, exports);
|
|
4447
|
+
|
|
4448
|
+
}(es2018$6));
|
|
4449
|
+
|
|
4450
|
+
var es2018$1 = {};
|
|
4451
|
+
|
|
4452
|
+
var abortController = {};
|
|
4453
|
+
|
|
4454
|
+
var browser = {exports: {}};
|
|
4455
|
+
|
|
4456
|
+
/*globals self, window */
|
|
4457
|
+
|
|
4458
|
+
/*eslint-disable @mysticatea/prettier */
|
|
4459
|
+
const { AbortController, AbortSignal } =
|
|
4460
|
+
typeof self !== "undefined" ? self :
|
|
4461
|
+
typeof window !== "undefined" ? window :
|
|
4462
|
+
/* otherwise */ undefined;
|
|
4463
|
+
/*eslint-enable @mysticatea/prettier */
|
|
4464
|
+
|
|
4465
|
+
browser.exports = AbortController;
|
|
4466
|
+
browser.exports.AbortSignal = AbortSignal;
|
|
4467
|
+
browser.exports.default = AbortController;
|
|
4468
|
+
|
|
4469
|
+
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
4470
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4471
|
+
};
|
|
4472
|
+
var _a$1;abortController.AbortController = void 0;
|
|
4473
|
+
const abort_controller_1$3 = __importDefault(browser.exports);
|
|
4474
|
+
abortController.AbortController = (_a$1 = globalThis.AbortController) !== null && _a$1 !== void 0 ? _a$1 : abort_controller_1$3.default;
|
|
4475
|
+
|
|
4476
|
+
var abortError = {};
|
|
4477
|
+
|
|
4478
|
+
var es2018 = {};
|
|
4479
|
+
|
|
4480
|
+
var customError = {};
|
|
4481
|
+
|
|
4482
|
+
var getErrorNames$1 = {};
|
|
4842
4483
|
|
|
4843
4484
|
var traverseErrorPrototypeChain$1 = {};
|
|
4844
4485
|
|
|
@@ -4854,7 +4495,7 @@ function* traverseErrorPrototypeChain(err) {
|
|
|
4854
4495
|
traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = traverseErrorPrototypeChain;
|
|
4855
4496
|
|
|
4856
4497
|
getErrorNames$1.getErrorNames = void 0;
|
|
4857
|
-
const types_1$3 = es2018;
|
|
4498
|
+
const types_1$3 = es2018$2;
|
|
4858
4499
|
const traverse_error_prototype_chain_1 = traverseErrorPrototypeChain$1;
|
|
4859
4500
|
function* getErrorNames(err) {
|
|
4860
4501
|
var _a;
|
|
@@ -4875,7 +4516,7 @@ getErrorNames$1.getErrorNames = getErrorNames;
|
|
|
4875
4516
|
var serializableError = {};
|
|
4876
4517
|
|
|
4877
4518
|
serializableError.isSerializableError = void 0;
|
|
4878
|
-
const types_1$2 = es2018;
|
|
4519
|
+
const types_1$2 = es2018$2;
|
|
4879
4520
|
function isSerializableError(val) {
|
|
4880
4521
|
return (0, types_1$2.isObject)(val)
|
|
4881
4522
|
&& (0, types_1$2.isString)(val.name)
|
|
@@ -4886,9 +4527,9 @@ function isSerializableError(val) {
|
|
|
4886
4527
|
serializableError.isSerializableError = isSerializableError;
|
|
4887
4528
|
|
|
4888
4529
|
customError.CustomError = void 0;
|
|
4889
|
-
const iterable_operator_1$2 = es2018$
|
|
4530
|
+
const iterable_operator_1$2 = es2018$5;
|
|
4890
4531
|
const get_error_names_1$1 = getErrorNames$1;
|
|
4891
|
-
const types_1$1 = es2018;
|
|
4532
|
+
const types_1$1 = es2018$2;
|
|
4892
4533
|
const serializable_error_1 = serializableError;
|
|
4893
4534
|
class CustomError extends Error {
|
|
4894
4535
|
get name() {
|
|
@@ -4924,7 +4565,7 @@ var normalize$1 = {};
|
|
|
4924
4565
|
|
|
4925
4566
|
normalize$1.normalize = void 0;
|
|
4926
4567
|
const get_error_names_1 = getErrorNames$1;
|
|
4927
|
-
const iterable_operator_1$1 = es2018$
|
|
4568
|
+
const iterable_operator_1$1 = es2018$5;
|
|
4928
4569
|
function normalize(err) {
|
|
4929
4570
|
var _a;
|
|
4930
4571
|
const [name, ...ancestors] = (0, iterable_operator_1$1.toArray)((0, get_error_names_1.getErrorNames)(err));
|
|
@@ -4965,12 +4606,12 @@ __exportStar(assert$1, exports);
|
|
|
4965
4606
|
__exportStar(getErrorNames$1, exports);
|
|
4966
4607
|
__exportStar(traverseErrorPrototypeChain$1, exports);
|
|
4967
4608
|
|
|
4968
|
-
}(es2018
|
|
4609
|
+
}(es2018));
|
|
4969
4610
|
|
|
4970
4611
|
abortError.AbortError = void 0;
|
|
4971
|
-
const errors_1 = es2018
|
|
4972
|
-
const types_1 = es2018;
|
|
4973
|
-
const iterable_operator_1 = es2018$
|
|
4612
|
+
const errors_1 = es2018;
|
|
4613
|
+
const types_1 = es2018$2;
|
|
4614
|
+
const iterable_operator_1 = es2018$5;
|
|
4974
4615
|
class AbortError extends errors_1.CustomError {
|
|
4975
4616
|
static [Symbol.hasInstance](instance) {
|
|
4976
4617
|
if ((0, types_1.isError)(instance)) {
|
|
@@ -5070,7 +4711,27 @@ __exportStar(raceAbortSignals$1, exports);
|
|
|
5070
4711
|
__exportStar(timeoutSignal$1, exports);
|
|
5071
4712
|
__exportStar(withAbortSignal$1, exports);
|
|
5072
4713
|
|
|
5073
|
-
}(es2018$
|
|
4714
|
+
}(es2018$1));
|
|
4715
|
+
|
|
4716
|
+
const expectedVersion = '0.1.0';
|
|
4717
|
+
class EStoreManagerBase {
|
|
4718
|
+
constructor(options) {
|
|
4719
|
+
this.options = options;
|
|
4720
|
+
}
|
|
4721
|
+
getCommonTransformers(options) {
|
|
4722
|
+
var _a, _b;
|
|
4723
|
+
return [
|
|
4724
|
+
transformers.url(this.options.server),
|
|
4725
|
+
transformers.bearerAuth(this.options.adminPassword),
|
|
4726
|
+
transformers.signal(es2018$1.raceAbortSignals([
|
|
4727
|
+
options.signal,
|
|
4728
|
+
options.timeout !== false && ((_a = (options.timeout && es2018$1.timeoutSignal(options.timeout))) !== null && _a !== void 0 ? _a : (this.options.timeout && es2018$1.timeoutSignal(this.options.timeout)))
|
|
4729
|
+
])),
|
|
4730
|
+
transformers.keepalive((_b = options.keepalive) !== null && _b !== void 0 ? _b : this.options.keepalive),
|
|
4731
|
+
transformers.header('Accept-Version', expectedVersion)
|
|
4732
|
+
];
|
|
4733
|
+
}
|
|
4734
|
+
}
|
|
5074
4735
|
|
|
5075
4736
|
class EStoreClient {
|
|
5076
4737
|
constructor(options) {
|
|
@@ -5086,11 +4747,12 @@ class EStoreClient {
|
|
|
5086
4747
|
transformers.url(this.options.server),
|
|
5087
4748
|
auth && transformers.basicAuth(auth.username, auth.password),
|
|
5088
4749
|
token && transformers.searchParams({ token }),
|
|
5089
|
-
transformers.signal(es2018$
|
|
4750
|
+
transformers.signal(es2018$1.raceAbortSignals([
|
|
5090
4751
|
options.signal,
|
|
5091
|
-
options.timeout !== false && ((_b = (options.timeout && es2018$
|
|
4752
|
+
options.timeout !== false && ((_b = (options.timeout && es2018$1.timeoutSignal(options.timeout))) !== null && _b !== void 0 ? _b : (this.options.timeout && es2018$1.timeoutSignal(this.options.timeout)))
|
|
5092
4753
|
])),
|
|
5093
|
-
transformers.keepalive((_c = options.keepalive) !== null && _c !== void 0 ? _c : this.options.keepalive)
|
|
4754
|
+
transformers.keepalive((_c = options.keepalive) !== null && _c !== void 0 ? _c : this.options.keepalive),
|
|
4755
|
+
transformers.header('Accept-Version', expectedVersion)
|
|
5094
4756
|
];
|
|
5095
4757
|
}
|
|
5096
4758
|
/**
|
|
@@ -5098,8 +4760,8 @@ class EStoreClient {
|
|
|
5098
4760
|
*/
|
|
5099
4761
|
append(namespace, itemId, payload, index, options = {}) {
|
|
5100
4762
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5101
|
-
const req = es2018$
|
|
5102
|
-
yield es2018$
|
|
4763
|
+
const req = es2018$b.post(...this.getCommonTransformers(options), transformers.pathname(`/estore/${namespace}/items/${itemId}/events`), es2018$2.isntUndefined(index) && transformers.header('If-Match', `${index}`), transformers.json(payload));
|
|
4764
|
+
yield es2018$c.fetch(req).then(es2018$6.ok);
|
|
5103
4765
|
});
|
|
5104
4766
|
}
|
|
5105
4767
|
/**
|
|
@@ -5107,14 +4769,14 @@ class EStoreClient {
|
|
|
5107
4769
|
*/
|
|
5108
4770
|
getEvent(namespace, itemId, index, options = {}) {
|
|
5109
4771
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5110
|
-
const req = es2018$
|
|
4772
|
+
const req = es2018$b.get(...this.getCommonTransformers(options), transformers.pathname(`/estore/${namespace}/items/${itemId}/events/${index}`));
|
|
5111
4773
|
try {
|
|
5112
|
-
return yield es2018$
|
|
5113
|
-
.then(es2018$
|
|
5114
|
-
.then(es2018$
|
|
4774
|
+
return yield es2018$c.fetch(req)
|
|
4775
|
+
.then(es2018$6.ok)
|
|
4776
|
+
.then(es2018$6.toJSON);
|
|
5115
4777
|
}
|
|
5116
4778
|
catch (e) {
|
|
5117
|
-
if (e instanceof es2018$
|
|
4779
|
+
if (e instanceof es2018$8.NotFound)
|
|
5118
4780
|
return undefined;
|
|
5119
4781
|
throw e;
|
|
5120
4782
|
}
|
|
@@ -5125,14 +4787,14 @@ class EStoreClient {
|
|
|
5125
4787
|
*/
|
|
5126
4788
|
getEvents(namespace, itemId, options = {}) {
|
|
5127
4789
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5128
|
-
const req = es2018$
|
|
4790
|
+
const req = es2018$b.get(...this.getCommonTransformers(options), transformers.pathname(`/estore/${namespace}/items/${itemId}/events`));
|
|
5129
4791
|
try {
|
|
5130
|
-
return yield es2018$
|
|
5131
|
-
.then(es2018$
|
|
5132
|
-
.then(es2018$
|
|
4792
|
+
return yield es2018$c.fetch(req)
|
|
4793
|
+
.then(es2018$6.ok)
|
|
4794
|
+
.then(es2018$6.toJSON);
|
|
5133
4795
|
}
|
|
5134
4796
|
catch (e) {
|
|
5135
|
-
if (e instanceof es2018$
|
|
4797
|
+
if (e instanceof es2018$8.NotFound)
|
|
5136
4798
|
return undefined;
|
|
5137
4799
|
throw e;
|
|
5138
4800
|
}
|
|
@@ -5143,10 +4805,10 @@ class EStoreClient {
|
|
|
5143
4805
|
*/
|
|
5144
4806
|
getSize(namespace, itemId, options = {}) {
|
|
5145
4807
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5146
|
-
const req = es2018$
|
|
5147
|
-
return yield es2018$
|
|
5148
|
-
.then(es2018$
|
|
5149
|
-
.then(es2018$
|
|
4808
|
+
const req = es2018$b.get(...this.getCommonTransformers(options), transformers.pathname(`/estore/${namespace}/items/${itemId}/size`));
|
|
4809
|
+
return yield es2018$c.fetch(req)
|
|
4810
|
+
.then(es2018$6.ok)
|
|
4811
|
+
.then(es2018$6.toJSON);
|
|
5150
4812
|
});
|
|
5151
4813
|
}
|
|
5152
4814
|
/**
|
|
@@ -5154,13 +4816,13 @@ class EStoreClient {
|
|
|
5154
4816
|
*/
|
|
5155
4817
|
has(namespace, itemId, options = {}) {
|
|
5156
4818
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5157
|
-
const req = es2018$
|
|
4819
|
+
const req = es2018$b.head(...this.getCommonTransformers(options), transformers.pathname(`/estore/${namespace}/items/${itemId}`));
|
|
5158
4820
|
try {
|
|
5159
|
-
yield es2018$
|
|
4821
|
+
yield es2018$c.fetch(req).then(es2018$6.ok);
|
|
5160
4822
|
return true;
|
|
5161
4823
|
}
|
|
5162
4824
|
catch (e) {
|
|
5163
|
-
if (e instanceof es2018$
|
|
4825
|
+
if (e instanceof es2018$8.NotFound)
|
|
5164
4826
|
return false;
|
|
5165
4827
|
throw e;
|
|
5166
4828
|
}
|
|
@@ -5171,8 +4833,8 @@ class EStoreClient {
|
|
|
5171
4833
|
*/
|
|
5172
4834
|
del(namespace, itemId, options = {}) {
|
|
5173
4835
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5174
|
-
const req = es2018$
|
|
5175
|
-
yield es2018$
|
|
4836
|
+
const req = es2018$b.del(...this.getCommonTransformers(options), transformers.pathname(`/estore/${namespace}/items/${itemId}`));
|
|
4837
|
+
yield es2018$c.fetch(req).then(es2018$6.ok);
|
|
5176
4838
|
});
|
|
5177
4839
|
}
|
|
5178
4840
|
/**
|
|
@@ -5180,8 +4842,8 @@ class EStoreClient {
|
|
|
5180
4842
|
*/
|
|
5181
4843
|
clear(namespace, options = {}) {
|
|
5182
4844
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5183
|
-
const req = es2018$
|
|
5184
|
-
yield es2018$
|
|
4845
|
+
const req = es2018$b.del(...this.getCommonTransformers(options), transformers.pathname(`/estore/${namespace}`));
|
|
4846
|
+
yield es2018$c.fetch(req).then(es2018$6.ok);
|
|
5185
4847
|
});
|
|
5186
4848
|
}
|
|
5187
4849
|
/**
|
|
@@ -5189,10 +4851,10 @@ class EStoreClient {
|
|
|
5189
4851
|
*/
|
|
5190
4852
|
getAllItemIds(namespace, options = {}) {
|
|
5191
4853
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5192
|
-
const req = es2018$
|
|
5193
|
-
return yield es2018$
|
|
5194
|
-
.then(es2018$
|
|
5195
|
-
.then(es2018$
|
|
4854
|
+
const req = es2018$b.get(...this.getCommonTransformers(options), transformers.pathname(`/estore/${namespace}/items`));
|
|
4855
|
+
return yield es2018$c.fetch(req)
|
|
4856
|
+
.then(es2018$6.ok)
|
|
4857
|
+
.then(es2018$6.toJSON);
|
|
5196
4858
|
});
|
|
5197
4859
|
}
|
|
5198
4860
|
/**
|
|
@@ -5200,10 +4862,10 @@ class EStoreClient {
|
|
|
5200
4862
|
*/
|
|
5201
4863
|
getAllNamespaces(options = {}) {
|
|
5202
4864
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5203
|
-
const req = es2018$
|
|
5204
|
-
return yield es2018$
|
|
5205
|
-
.then(es2018$
|
|
5206
|
-
.then(es2018$
|
|
4865
|
+
const req = es2018$b.get(...this.getCommonTransformers(options), transformers.pathname('/estore'));
|
|
4866
|
+
return yield es2018$c.fetch(req)
|
|
4867
|
+
.then(es2018$6.ok)
|
|
4868
|
+
.then(es2018$6.toJSON);
|
|
5207
4869
|
});
|
|
5208
4870
|
}
|
|
5209
4871
|
/**
|
|
@@ -5211,43 +4873,24 @@ class EStoreClient {
|
|
|
5211
4873
|
*/
|
|
5212
4874
|
stats(namespace, options = {}) {
|
|
5213
4875
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5214
|
-
const req = es2018$
|
|
5215
|
-
return yield es2018$
|
|
5216
|
-
.then(es2018$
|
|
5217
|
-
.then(es2018$
|
|
4876
|
+
const req = es2018$b.get(...this.getCommonTransformers(options), transformers.pathname(`/estore/${namespace}/stats`));
|
|
4877
|
+
return yield es2018$c.fetch(req)
|
|
4878
|
+
.then(es2018$6.ok)
|
|
4879
|
+
.then(es2018$6.toJSON);
|
|
5218
4880
|
});
|
|
5219
4881
|
}
|
|
5220
4882
|
}
|
|
5221
4883
|
|
|
5222
|
-
class EStoreManagerBase {
|
|
5223
|
-
constructor(options) {
|
|
5224
|
-
this.options = options;
|
|
5225
|
-
}
|
|
5226
|
-
getCommonTransformers(options) {
|
|
5227
|
-
var _a, _b;
|
|
5228
|
-
return [
|
|
5229
|
-
transformers.url(this.options.server),
|
|
5230
|
-
transformers.bearerAuth(this.options.adminPassword),
|
|
5231
|
-
transformers.signal(es2018$2.raceAbortSignals([
|
|
5232
|
-
options.signal,
|
|
5233
|
-
options.timeout !== false && ((_a = (options.timeout && es2018$2.timeoutSignal(options.timeout))) !== null && _a !== void 0 ? _a : (this.options.timeout && es2018$2.timeoutSignal(this.options.timeout)))
|
|
5234
|
-
])),
|
|
5235
|
-
transformers.keepalive((_b = options.keepalive) !== null && _b !== void 0 ? _b : this.options.keepalive),
|
|
5236
|
-
transformers.header('Accept-Version', '0.1.0')
|
|
5237
|
-
];
|
|
5238
|
-
}
|
|
5239
|
-
}
|
|
5240
|
-
|
|
5241
4884
|
class JsonSchemaClient extends EStoreManagerBase {
|
|
5242
4885
|
/**
|
|
5243
4886
|
* @throws {AbortError}
|
|
5244
4887
|
*/
|
|
5245
4888
|
getNamespaces(options = {}) {
|
|
5246
4889
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5247
|
-
const req = es2018$
|
|
5248
|
-
return yield es2018$
|
|
5249
|
-
.then(es2018$
|
|
5250
|
-
.then(es2018$
|
|
4890
|
+
const req = es2018$b.get(...this.getCommonTransformers(options), transformers.pathname('/admin/estore-with-json-schema'));
|
|
4891
|
+
return yield es2018$c.fetch(req)
|
|
4892
|
+
.then(es2018$6.ok)
|
|
4893
|
+
.then(es2018$6.toJSON);
|
|
5251
4894
|
});
|
|
5252
4895
|
}
|
|
5253
4896
|
/**
|
|
@@ -5255,10 +4898,10 @@ class JsonSchemaClient extends EStoreManagerBase {
|
|
|
5255
4898
|
*/
|
|
5256
4899
|
get(namespace, options = {}) {
|
|
5257
4900
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5258
|
-
const req = es2018$
|
|
5259
|
-
return yield es2018$
|
|
5260
|
-
.then(es2018$
|
|
5261
|
-
.then(es2018$
|
|
4901
|
+
const req = es2018$b.get(...this.getCommonTransformers(options), transformers.pathname(`/admin/estore/${namespace}/json-schema`));
|
|
4902
|
+
return yield es2018$c.fetch(req)
|
|
4903
|
+
.then(es2018$6.ok)
|
|
4904
|
+
.then(es2018$6.toJSON);
|
|
5262
4905
|
});
|
|
5263
4906
|
}
|
|
5264
4907
|
/**
|
|
@@ -5266,8 +4909,8 @@ class JsonSchemaClient extends EStoreManagerBase {
|
|
|
5266
4909
|
*/
|
|
5267
4910
|
set(namespace, schema, options = {}) {
|
|
5268
4911
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5269
|
-
const req = es2018$
|
|
5270
|
-
yield es2018$
|
|
4912
|
+
const req = es2018$b.put(...this.getCommonTransformers(options), transformers.pathname(`/admin/estore/${namespace}/json-schema`), transformers.json(schema));
|
|
4913
|
+
yield es2018$c.fetch(req).then(es2018$6.ok);
|
|
5271
4914
|
});
|
|
5272
4915
|
}
|
|
5273
4916
|
/**
|
|
@@ -5275,8 +4918,8 @@ class JsonSchemaClient extends EStoreManagerBase {
|
|
|
5275
4918
|
*/
|
|
5276
4919
|
remove(namespace, options = {}) {
|
|
5277
4920
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5278
|
-
const req = es2018$
|
|
5279
|
-
yield es2018$
|
|
4921
|
+
const req = es2018$b.del(...this.getCommonTransformers(options), transformers.pathname(`/admin/estore/${namespace}/json-schema`));
|
|
4922
|
+
yield es2018$c.fetch(req).then(es2018$6.ok);
|
|
5280
4923
|
});
|
|
5281
4924
|
}
|
|
5282
4925
|
}
|
|
@@ -5287,10 +4930,10 @@ class BlacklistClient extends EStoreManagerBase {
|
|
|
5287
4930
|
*/
|
|
5288
4931
|
getNamespaces(options = {}) {
|
|
5289
4932
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5290
|
-
const req = es2018$
|
|
5291
|
-
return yield es2018$
|
|
5292
|
-
.then(es2018$
|
|
5293
|
-
.then(es2018$
|
|
4933
|
+
const req = es2018$b.get(...this.getCommonTransformers(options), transformers.pathname('/admin/blacklist'));
|
|
4934
|
+
return yield es2018$c.fetch(req)
|
|
4935
|
+
.then(es2018$6.ok)
|
|
4936
|
+
.then(es2018$6.toJSON);
|
|
5294
4937
|
});
|
|
5295
4938
|
}
|
|
5296
4939
|
/**
|
|
@@ -5298,8 +4941,8 @@ class BlacklistClient extends EStoreManagerBase {
|
|
|
5298
4941
|
*/
|
|
5299
4942
|
add(namespace, options = {}) {
|
|
5300
4943
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5301
|
-
const req = es2018$
|
|
5302
|
-
yield es2018$
|
|
4944
|
+
const req = es2018$b.put(...this.getCommonTransformers(options), transformers.pathname(`/admin/blacklist/${namespace}`));
|
|
4945
|
+
yield es2018$c.fetch(req).then(es2018$6.ok);
|
|
5303
4946
|
});
|
|
5304
4947
|
}
|
|
5305
4948
|
/**
|
|
@@ -5307,8 +4950,8 @@ class BlacklistClient extends EStoreManagerBase {
|
|
|
5307
4950
|
*/
|
|
5308
4951
|
remove(namespace, options = {}) {
|
|
5309
4952
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5310
|
-
const req = es2018$
|
|
5311
|
-
yield es2018$
|
|
4953
|
+
const req = es2018$b.del(...this.getCommonTransformers(options), transformers.pathname(`/admin/blacklist/${namespace}`));
|
|
4954
|
+
yield es2018$c.fetch(req).then(es2018$6.ok);
|
|
5312
4955
|
});
|
|
5313
4956
|
}
|
|
5314
4957
|
}
|
|
@@ -5319,10 +4962,10 @@ class WhitelistClient extends EStoreManagerBase {
|
|
|
5319
4962
|
*/
|
|
5320
4963
|
getNamespaces(options = {}) {
|
|
5321
4964
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5322
|
-
const req = es2018$
|
|
5323
|
-
return yield es2018$
|
|
5324
|
-
.then(es2018$
|
|
5325
|
-
.then(es2018$
|
|
4965
|
+
const req = es2018$b.get(...this.getCommonTransformers(options), transformers.pathname('/admin/whitelist'));
|
|
4966
|
+
return yield es2018$c.fetch(req)
|
|
4967
|
+
.then(es2018$6.ok)
|
|
4968
|
+
.then(es2018$6.toJSON);
|
|
5326
4969
|
});
|
|
5327
4970
|
}
|
|
5328
4971
|
/**
|
|
@@ -5330,8 +4973,8 @@ class WhitelistClient extends EStoreManagerBase {
|
|
|
5330
4973
|
*/
|
|
5331
4974
|
add(namespace, options = {}) {
|
|
5332
4975
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5333
|
-
const req = es2018$
|
|
5334
|
-
yield es2018$
|
|
4976
|
+
const req = es2018$b.put(...this.getCommonTransformers(options), transformers.pathname(`/admin/whitelist/${namespace}`));
|
|
4977
|
+
yield es2018$c.fetch(req).then(es2018$6.ok);
|
|
5335
4978
|
});
|
|
5336
4979
|
}
|
|
5337
4980
|
/**
|
|
@@ -5339,8 +4982,8 @@ class WhitelistClient extends EStoreManagerBase {
|
|
|
5339
4982
|
*/
|
|
5340
4983
|
remove(namespace, options = {}) {
|
|
5341
4984
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5342
|
-
const req = es2018$
|
|
5343
|
-
yield es2018$
|
|
4985
|
+
const req = es2018$b.del(...this.getCommonTransformers(options), transformers.pathname(`/admin/whitelist/${namespace}`));
|
|
4986
|
+
yield es2018$c.fetch(req).then(es2018$6.ok);
|
|
5344
4987
|
});
|
|
5345
4988
|
}
|
|
5346
4989
|
}
|
|
@@ -5351,10 +4994,10 @@ class TokenPolicyClient extends EStoreManagerBase {
|
|
|
5351
4994
|
*/
|
|
5352
4995
|
getNamespaces(options = {}) {
|
|
5353
4996
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5354
|
-
const req = es2018$
|
|
5355
|
-
return yield es2018$
|
|
5356
|
-
.then(es2018$
|
|
5357
|
-
.then(es2018$
|
|
4997
|
+
const req = es2018$b.get(...this.getCommonTransformers(options), transformers.pathname('/admin/estore-with-token-policies'));
|
|
4998
|
+
return yield es2018$c.fetch(req)
|
|
4999
|
+
.then(es2018$6.ok)
|
|
5000
|
+
.then(es2018$6.toJSON);
|
|
5358
5001
|
});
|
|
5359
5002
|
}
|
|
5360
5003
|
/**
|
|
@@ -5362,10 +5005,10 @@ class TokenPolicyClient extends EStoreManagerBase {
|
|
|
5362
5005
|
*/
|
|
5363
5006
|
get(namespace, options = {}) {
|
|
5364
5007
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5365
|
-
const req = es2018$
|
|
5366
|
-
return yield es2018$
|
|
5367
|
-
.then(es2018$
|
|
5368
|
-
.then(es2018$
|
|
5008
|
+
const req = es2018$b.get(...this.getCommonTransformers(options), transformers.pathname(`/admin/estore/${namespace}/token-policies`));
|
|
5009
|
+
return yield es2018$c.fetch(req)
|
|
5010
|
+
.then(es2018$6.ok)
|
|
5011
|
+
.then(es2018$6.toJSON);
|
|
5369
5012
|
});
|
|
5370
5013
|
}
|
|
5371
5014
|
/**
|
|
@@ -5373,8 +5016,8 @@ class TokenPolicyClient extends EStoreManagerBase {
|
|
|
5373
5016
|
*/
|
|
5374
5017
|
setWriteTokenRequired(namespace, val, options = {}) {
|
|
5375
5018
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5376
|
-
const req = es2018$
|
|
5377
|
-
yield es2018$
|
|
5019
|
+
const req = es2018$b.put(...this.getCommonTransformers(options), transformers.pathname(`/admin/estore/${namespace}/token-policies/write-token-required`), transformers.json(val));
|
|
5020
|
+
yield es2018$c.fetch(req).then(es2018$6.ok);
|
|
5378
5021
|
});
|
|
5379
5022
|
}
|
|
5380
5023
|
/**
|
|
@@ -5382,8 +5025,8 @@ class TokenPolicyClient extends EStoreManagerBase {
|
|
|
5382
5025
|
*/
|
|
5383
5026
|
removeWriteTokenRequired(namespace, options = {}) {
|
|
5384
5027
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5385
|
-
const req = es2018$
|
|
5386
|
-
yield es2018$
|
|
5028
|
+
const req = es2018$b.del(...this.getCommonTransformers(options), transformers.pathname(`/admin/estore/${namespace}/token-policies/write-token-required`));
|
|
5029
|
+
yield es2018$c.fetch(req).then(es2018$6.ok);
|
|
5387
5030
|
});
|
|
5388
5031
|
}
|
|
5389
5032
|
/**
|
|
@@ -5391,8 +5034,8 @@ class TokenPolicyClient extends EStoreManagerBase {
|
|
|
5391
5034
|
*/
|
|
5392
5035
|
setReadTokenRequired(namespace, val, options = {}) {
|
|
5393
5036
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5394
|
-
const req = es2018$
|
|
5395
|
-
yield es2018$
|
|
5037
|
+
const req = es2018$b.put(...this.getCommonTransformers(options), transformers.pathname(`/admin/estore/${namespace}/token-policies/read-token-required`), transformers.json(val));
|
|
5038
|
+
yield es2018$c.fetch(req).then(es2018$6.ok);
|
|
5396
5039
|
});
|
|
5397
5040
|
}
|
|
5398
5041
|
/**
|
|
@@ -5400,8 +5043,8 @@ class TokenPolicyClient extends EStoreManagerBase {
|
|
|
5400
5043
|
*/
|
|
5401
5044
|
removeReadTokenRequired(namespace, options = {}) {
|
|
5402
5045
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5403
|
-
const req = es2018$
|
|
5404
|
-
yield es2018$
|
|
5046
|
+
const req = es2018$b.del(...this.getCommonTransformers(options), transformers.pathname(`/admin/estore/${namespace}/token-policies/read-token-required`));
|
|
5047
|
+
yield es2018$c.fetch(req).then(es2018$6.ok);
|
|
5405
5048
|
});
|
|
5406
5049
|
}
|
|
5407
5050
|
/**
|
|
@@ -5409,8 +5052,8 @@ class TokenPolicyClient extends EStoreManagerBase {
|
|
|
5409
5052
|
*/
|
|
5410
5053
|
setDeleteTokenRequired(namespace, val, options = {}) {
|
|
5411
5054
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5412
|
-
const req = es2018$
|
|
5413
|
-
yield es2018$
|
|
5055
|
+
const req = es2018$b.put(...this.getCommonTransformers(options), transformers.pathname(`/admin/estore/${namespace}/token-policies/delete-token-required`), transformers.json(val));
|
|
5056
|
+
yield es2018$c.fetch(req).then(es2018$6.ok);
|
|
5414
5057
|
});
|
|
5415
5058
|
}
|
|
5416
5059
|
/**
|
|
@@ -5418,8 +5061,8 @@ class TokenPolicyClient extends EStoreManagerBase {
|
|
|
5418
5061
|
*/
|
|
5419
5062
|
removeDeleteTokenRequired(namespace, options = {}) {
|
|
5420
5063
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5421
|
-
const req = es2018$
|
|
5422
|
-
yield es2018$
|
|
5064
|
+
const req = es2018$b.del(...this.getCommonTransformers(options), transformers.pathname(`/admin/estore/${namespace}/token-policies/delete-token-required`));
|
|
5065
|
+
yield es2018$c.fetch(req).then(es2018$6.ok);
|
|
5423
5066
|
});
|
|
5424
5067
|
}
|
|
5425
5068
|
}
|
|
@@ -5430,10 +5073,10 @@ class TokenClient extends EStoreManagerBase {
|
|
|
5430
5073
|
*/
|
|
5431
5074
|
getNamespaces(options = {}) {
|
|
5432
5075
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5433
|
-
const req = es2018$
|
|
5434
|
-
return yield es2018$
|
|
5435
|
-
.then(es2018$
|
|
5436
|
-
.then(es2018$
|
|
5076
|
+
const req = es2018$b.get(...this.getCommonTransformers(options), transformers.pathname('/admin/estore-with-tokens'));
|
|
5077
|
+
return yield es2018$c.fetch(req)
|
|
5078
|
+
.then(es2018$6.ok)
|
|
5079
|
+
.then(es2018$6.toJSON);
|
|
5437
5080
|
});
|
|
5438
5081
|
}
|
|
5439
5082
|
/**
|
|
@@ -5441,10 +5084,10 @@ class TokenClient extends EStoreManagerBase {
|
|
|
5441
5084
|
*/
|
|
5442
5085
|
getTokens(namespace, options = {}) {
|
|
5443
5086
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5444
|
-
const req = es2018$
|
|
5445
|
-
return yield es2018$
|
|
5446
|
-
.then(es2018$
|
|
5447
|
-
.then(es2018$
|
|
5087
|
+
const req = es2018$b.get(...this.getCommonTransformers(options), transformers.pathname(`/admin/estore/${namespace}/tokens`));
|
|
5088
|
+
return yield es2018$c.fetch(req)
|
|
5089
|
+
.then(es2018$6.ok)
|
|
5090
|
+
.then(es2018$6.toJSON);
|
|
5448
5091
|
});
|
|
5449
5092
|
}
|
|
5450
5093
|
/**
|
|
@@ -5452,8 +5095,8 @@ class TokenClient extends EStoreManagerBase {
|
|
|
5452
5095
|
*/
|
|
5453
5096
|
addWriteToken(namespace, token, options = {}) {
|
|
5454
5097
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5455
|
-
const req = es2018$
|
|
5456
|
-
yield es2018$
|
|
5098
|
+
const req = es2018$b.put(...this.getCommonTransformers(options), transformers.pathname(`/admin/estore/${namespace}/tokens/${token}/write`));
|
|
5099
|
+
yield es2018$c.fetch(req).then(es2018$6.ok);
|
|
5457
5100
|
});
|
|
5458
5101
|
}
|
|
5459
5102
|
/**
|
|
@@ -5461,8 +5104,8 @@ class TokenClient extends EStoreManagerBase {
|
|
|
5461
5104
|
*/
|
|
5462
5105
|
removeWriteToken(namespace, token, options = {}) {
|
|
5463
5106
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5464
|
-
const req = es2018$
|
|
5465
|
-
yield es2018$
|
|
5107
|
+
const req = es2018$b.del(...this.getCommonTransformers(options), transformers.pathname(`/admin/estore/${namespace}/tokens/${token}/write`));
|
|
5108
|
+
yield es2018$c.fetch(req).then(es2018$6.ok);
|
|
5466
5109
|
});
|
|
5467
5110
|
}
|
|
5468
5111
|
/**
|
|
@@ -5470,8 +5113,8 @@ class TokenClient extends EStoreManagerBase {
|
|
|
5470
5113
|
*/
|
|
5471
5114
|
addReadToken(namespace, token, options = {}) {
|
|
5472
5115
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5473
|
-
const req = es2018$
|
|
5474
|
-
yield es2018$
|
|
5116
|
+
const req = es2018$b.put(...this.getCommonTransformers(options), transformers.pathname(`/admin/estore/${namespace}/tokens/${token}/read`));
|
|
5117
|
+
yield es2018$c.fetch(req).then(es2018$6.ok);
|
|
5475
5118
|
});
|
|
5476
5119
|
}
|
|
5477
5120
|
/**
|
|
@@ -5479,8 +5122,8 @@ class TokenClient extends EStoreManagerBase {
|
|
|
5479
5122
|
*/
|
|
5480
5123
|
removeReadToken(namespace, token, options = {}) {
|
|
5481
5124
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5482
|
-
const req = es2018$
|
|
5483
|
-
yield es2018$
|
|
5125
|
+
const req = es2018$b.del(...this.getCommonTransformers(options), transformers.pathname(`/admin/estore/${namespace}/tokens/${token}/read`));
|
|
5126
|
+
yield es2018$c.fetch(req).then(es2018$6.ok);
|
|
5484
5127
|
});
|
|
5485
5128
|
}
|
|
5486
5129
|
/**
|
|
@@ -5488,8 +5131,8 @@ class TokenClient extends EStoreManagerBase {
|
|
|
5488
5131
|
*/
|
|
5489
5132
|
addDeleteToken(namespace, token, options = {}) {
|
|
5490
5133
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5491
|
-
const req = es2018$
|
|
5492
|
-
yield es2018$
|
|
5134
|
+
const req = es2018$b.put(...this.getCommonTransformers(options), transformers.pathname(`/admin/estore/${namespace}/tokens/${token}/delete`));
|
|
5135
|
+
yield es2018$c.fetch(req).then(es2018$6.ok);
|
|
5493
5136
|
});
|
|
5494
5137
|
}
|
|
5495
5138
|
/**
|
|
@@ -5497,8 +5140,8 @@ class TokenClient extends EStoreManagerBase {
|
|
|
5497
5140
|
*/
|
|
5498
5141
|
removeDeleteToken(namespace, token, options = {}) {
|
|
5499
5142
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5500
|
-
const req = es2018$
|
|
5501
|
-
yield es2018$
|
|
5143
|
+
const req = es2018$b.del(...this.getCommonTransformers(options), transformers.pathname(`/admin/estore/${namespace}/tokens/${token}/delete`));
|
|
5144
|
+
yield es2018$c.fetch(req).then(es2018$6.ok);
|
|
5502
5145
|
});
|
|
5503
5146
|
}
|
|
5504
5147
|
}
|
|
@@ -5514,8 +5157,8 @@ class EStoreManager {
|
|
|
5514
5157
|
}
|
|
5515
5158
|
}
|
|
5516
5159
|
|
|
5517
|
-
var AbortError$1 = es2018$
|
|
5518
|
-
var HTTPClientError$1 = es2018$
|
|
5519
|
-
var HTTPError$1 = es2018$
|
|
5160
|
+
var AbortError$1 = es2018$c.AbortError;
|
|
5161
|
+
var HTTPClientError$1 = es2018$8.HTTPClientError;
|
|
5162
|
+
var HTTPError$1 = es2018$6.HTTPError;
|
|
5520
5163
|
export { AbortError$1 as AbortError, EStoreClient, EStoreManager, HTTPClientError$1 as HTTPClientError, HTTPError$1 as HTTPError };
|
|
5521
5164
|
//# sourceMappingURL=index.mjs.map
|