@blackglory/geyser-js 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es2015/index.min.mjs +3 -3
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +780 -124
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +758 -100
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +4 -4
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +2 -2
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +780 -124
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +758 -100
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +3 -3
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/blacklist-client.js +4 -4
- package/lib/es2015/blacklist-client.js.map +1 -1
- package/lib/es2015/configuration-client.js +7 -7
- package/lib/es2015/configuration-client.js.map +1 -1
- package/lib/es2015/geyser-client.js +3 -3
- package/lib/es2015/geyser-client.js.map +1 -1
- package/lib/es2015/token-client.js +5 -5
- package/lib/es2015/token-client.js.map +1 -1
- package/lib/es2015/token-policy-client.js +5 -5
- package/lib/es2015/token-policy-client.js.map +1 -1
- package/lib/es2015/utils.js +5 -5
- package/lib/es2015/utils.js.map +1 -1
- package/lib/es2015/whitelist-client.js +4 -4
- package/lib/es2015/whitelist-client.js.map +1 -1
- package/lib/es2018/blacklist-client.js +4 -4
- package/lib/es2018/blacklist-client.js.map +1 -1
- package/lib/es2018/configuration-client.js +7 -7
- package/lib/es2018/configuration-client.js.map +1 -1
- package/lib/es2018/geyser-client.js +3 -3
- package/lib/es2018/geyser-client.js.map +1 -1
- package/lib/es2018/token-client.js +5 -5
- package/lib/es2018/token-client.js.map +1 -1
- package/lib/es2018/token-policy-client.js +5 -5
- package/lib/es2018/token-policy-client.js.map +1 -1
- package/lib/es2018/utils.js +5 -5
- package/lib/es2018/utils.js.map +1 -1
- package/lib/es2018/whitelist-client.js +4 -4
- package/lib/es2018/whitelist-client.js.map +1 -1
- package/package.json +7 -9
package/dist/es2015/index.mjs
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { url as url$3, pathname, searchParams, signal as signal$1, keepalive, bearerAuth, json as json$3 } from 'extra-request/lib/es2018/transformers';
|
|
2
|
-
|
|
3
1
|
/*! *****************************************************************************
|
|
4
2
|
Copyright (c) Microsoft Corporation.
|
|
5
3
|
|
|
@@ -390,9 +388,9 @@ function isJsonRpcErrorObject$2(val) {
|
|
|
390
388
|
&& (undefined_1$6.isUndefined(val.data) || object_1$2.isObject(val.data));
|
|
391
389
|
}
|
|
392
390
|
|
|
393
|
-
var json$
|
|
391
|
+
var json$4 = {};
|
|
394
392
|
|
|
395
|
-
json$
|
|
393
|
+
json$4.isntJson = json$4.isJson = void 0;
|
|
396
394
|
function isJson$2(val) {
|
|
397
395
|
try {
|
|
398
396
|
JSON.stringify(val);
|
|
@@ -402,15 +400,15 @@ function isJson$2(val) {
|
|
|
402
400
|
return false;
|
|
403
401
|
}
|
|
404
402
|
}
|
|
405
|
-
json$
|
|
403
|
+
json$4.isJson = isJson$2;
|
|
406
404
|
function isntJson$2(val) {
|
|
407
405
|
return !isntJson$2();
|
|
408
406
|
}
|
|
409
|
-
json$
|
|
407
|
+
json$4.isntJson = isntJson$2;
|
|
410
408
|
|
|
411
|
-
var url$
|
|
409
|
+
var url$4 = {};
|
|
412
410
|
|
|
413
|
-
url$
|
|
411
|
+
url$4.isAbsoluteURL = void 0;
|
|
414
412
|
function isAbsoluteURL$2(str) {
|
|
415
413
|
try {
|
|
416
414
|
new URL(str);
|
|
@@ -420,7 +418,7 @@ function isAbsoluteURL$2(str) {
|
|
|
420
418
|
return false;
|
|
421
419
|
}
|
|
422
420
|
}
|
|
423
|
-
url$
|
|
421
|
+
url$4.isAbsoluteURL = isAbsoluteURL$2;
|
|
424
422
|
|
|
425
423
|
(function (exports) {
|
|
426
424
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -443,18 +441,18 @@ __exportStar(falsy$2, exports);
|
|
|
443
441
|
__exportStar(_function$2, exports);
|
|
444
442
|
__exportStar(iterable$2, exports);
|
|
445
443
|
__exportStar(jsonRpc$2, exports);
|
|
446
|
-
__exportStar(json$
|
|
444
|
+
__exportStar(json$4, exports);
|
|
447
445
|
__exportStar(_null$2, exports);
|
|
448
446
|
__exportStar(number$2, exports);
|
|
449
447
|
__exportStar(object$2, exports);
|
|
450
448
|
__exportStar(string$2, exports);
|
|
451
449
|
__exportStar(_undefined$2, exports);
|
|
452
|
-
__exportStar(url$
|
|
450
|
+
__exportStar(url$4, exports);
|
|
453
451
|
|
|
454
452
|
}(es2018$c));
|
|
455
453
|
|
|
456
454
|
request$1.del = request$1.patch = request$1.put = request$1.post = request$1.head = request$1.get = void 0;
|
|
457
|
-
const extra_fetch_1$
|
|
455
|
+
const extra_fetch_1$9 = es2018$e;
|
|
458
456
|
const types_1$k = es2018$c;
|
|
459
457
|
function get$1(...transformers) {
|
|
460
458
|
return request('GET', ...transformers);
|
|
@@ -483,10 +481,10 @@ request$1.del = del;
|
|
|
483
481
|
function request(method, ...transformers) {
|
|
484
482
|
const options = transformers.reduce((options, trans) => (0, types_1$k.isFunction)(trans) ? trans(options) : options, {
|
|
485
483
|
url: new URL('http://localhost'),
|
|
486
|
-
headers: new extra_fetch_1$
|
|
484
|
+
headers: new extra_fetch_1$9.Headers()
|
|
487
485
|
});
|
|
488
|
-
const headers = new extra_fetch_1$
|
|
489
|
-
return new extra_fetch_1$
|
|
486
|
+
const headers = new extra_fetch_1$9.Headers(options.headers);
|
|
487
|
+
return new extra_fetch_1$9.Request(options.url.href, {
|
|
490
488
|
method,
|
|
491
489
|
headers,
|
|
492
490
|
signal: options.signal,
|
|
@@ -510,21 +508,72 @@ __exportStar(request$1, exports);
|
|
|
510
508
|
|
|
511
509
|
}(es2018$d));
|
|
512
510
|
|
|
513
|
-
var
|
|
511
|
+
var transformers = {};
|
|
514
512
|
|
|
515
|
-
var
|
|
513
|
+
var url$3 = {};
|
|
516
514
|
|
|
517
|
-
|
|
515
|
+
url$3.url = void 0;
|
|
516
|
+
function url$2(...urls) {
|
|
517
|
+
return (options) => {
|
|
518
|
+
const url = new URL(urls.reduce((acc, cur) => new URL(cur, acc).href));
|
|
519
|
+
return {
|
|
520
|
+
...options,
|
|
521
|
+
url
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
url$3.url = url$2;
|
|
518
526
|
|
|
519
|
-
var
|
|
520
|
-
__proto__: null
|
|
521
|
-
});
|
|
527
|
+
var text$1 = {};
|
|
522
528
|
|
|
523
|
-
|
|
529
|
+
text$1.text = void 0;
|
|
530
|
+
const extra_fetch_1$8 = es2018$e;
|
|
531
|
+
function text(payload) {
|
|
532
|
+
return (options) => {
|
|
533
|
+
const headers = new extra_fetch_1$8.Headers(options.headers);
|
|
534
|
+
headers.set('Content-Type', 'application/x-www-form-urlencoded');
|
|
535
|
+
return {
|
|
536
|
+
...options,
|
|
537
|
+
headers,
|
|
538
|
+
payload
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
}
|
|
542
|
+
text$1.text = text;
|
|
524
543
|
|
|
525
|
-
var
|
|
544
|
+
var json$3 = {};
|
|
526
545
|
|
|
527
|
-
|
|
546
|
+
json$3.json = void 0;
|
|
547
|
+
const extra_fetch_1$7 = es2018$e;
|
|
548
|
+
function json$2(payload) {
|
|
549
|
+
return (options) => {
|
|
550
|
+
const headers = new extra_fetch_1$7.Headers(options.headers);
|
|
551
|
+
headers.set('Content-Type', 'application/json');
|
|
552
|
+
return {
|
|
553
|
+
...options,
|
|
554
|
+
headers,
|
|
555
|
+
payload: JSON.stringify(payload)
|
|
556
|
+
};
|
|
557
|
+
};
|
|
558
|
+
}
|
|
559
|
+
json$3.json = json$2;
|
|
560
|
+
|
|
561
|
+
var csv$1 = {};
|
|
562
|
+
|
|
563
|
+
var papaparse_min = {exports: {}};
|
|
564
|
+
|
|
565
|
+
/* @license
|
|
566
|
+
Papa Parse
|
|
567
|
+
v5.3.1
|
|
568
|
+
https://github.com/mholt/PapaParse
|
|
569
|
+
License: MIT
|
|
570
|
+
*/
|
|
571
|
+
|
|
572
|
+
(function (module, exports) {
|
|
573
|
+
!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});
|
|
574
|
+
}(papaparse_min));
|
|
575
|
+
|
|
576
|
+
var es2018$b = {};
|
|
528
577
|
|
|
529
578
|
var customError = {};
|
|
530
579
|
|
|
@@ -602,10 +651,630 @@ __exportStar(normalize$2, exports);
|
|
|
602
651
|
__exportStar(refute$1, exports);
|
|
603
652
|
__exportStar(assert$1, exports);
|
|
604
653
|
|
|
605
|
-
}(es2018$
|
|
654
|
+
}(es2018$b));
|
|
655
|
+
|
|
656
|
+
csv$1.csv = void 0;
|
|
657
|
+
const extra_fetch_1$6 = es2018$e;
|
|
658
|
+
const papaparse_1$1 = papaparse_min.exports;
|
|
659
|
+
const errors_1$p = es2018$b;
|
|
660
|
+
function csv(payload) {
|
|
661
|
+
(0, errors_1$p.assert)(payload.length > 0, 'payload must be a non-empty array');
|
|
662
|
+
return (options) => {
|
|
663
|
+
const headers = new extra_fetch_1$6.Headers(options.headers);
|
|
664
|
+
headers.set('Content-Type', 'text/csv');
|
|
665
|
+
return {
|
|
666
|
+
...options,
|
|
667
|
+
headers,
|
|
668
|
+
payload: stringify(payload)
|
|
669
|
+
};
|
|
670
|
+
};
|
|
671
|
+
}
|
|
672
|
+
csv$1.csv = csv;
|
|
673
|
+
function stringify(data) {
|
|
674
|
+
const fields = Object.keys(data[0]);
|
|
675
|
+
return (0, papaparse_1$1.unparse)({ data, fields });
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
var signal$2 = {};
|
|
679
|
+
|
|
680
|
+
signal$2.signal = void 0;
|
|
681
|
+
function signal$1(signal) {
|
|
682
|
+
return (options) => {
|
|
683
|
+
return {
|
|
684
|
+
...options,
|
|
685
|
+
signal
|
|
686
|
+
};
|
|
687
|
+
};
|
|
688
|
+
}
|
|
689
|
+
signal$2.signal = signal$1;
|
|
690
|
+
|
|
691
|
+
var header$1 = {};
|
|
692
|
+
|
|
693
|
+
header$1.header = void 0;
|
|
694
|
+
const extra_fetch_1$5 = es2018$e;
|
|
695
|
+
function header(name, value) {
|
|
696
|
+
return (options) => {
|
|
697
|
+
const headers = new extra_fetch_1$5.Headers(options.headers);
|
|
698
|
+
headers.set(name, value);
|
|
699
|
+
return {
|
|
700
|
+
...options,
|
|
701
|
+
headers
|
|
702
|
+
};
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
header$1.header = header;
|
|
706
|
+
|
|
707
|
+
var appendHeader$1 = {};
|
|
708
|
+
|
|
709
|
+
appendHeader$1.appendHeader = void 0;
|
|
710
|
+
const extra_fetch_1$4 = es2018$e;
|
|
711
|
+
function appendHeader(name, value) {
|
|
712
|
+
return (options) => {
|
|
713
|
+
const headers = new extra_fetch_1$4.Headers(options.headers);
|
|
714
|
+
headers.append(name, value);
|
|
715
|
+
return {
|
|
716
|
+
...options,
|
|
717
|
+
headers
|
|
718
|
+
};
|
|
719
|
+
};
|
|
720
|
+
}
|
|
721
|
+
appendHeader$1.appendHeader = appendHeader;
|
|
722
|
+
|
|
723
|
+
var headers$1 = {};
|
|
724
|
+
|
|
725
|
+
headers$1.headers = void 0;
|
|
726
|
+
const extra_fetch_1$3 = es2018$e;
|
|
727
|
+
function headers(headers) {
|
|
728
|
+
return (options) => {
|
|
729
|
+
const newHeaders = new extra_fetch_1$3.Headers(options.headers);
|
|
730
|
+
for (const [name, value] of Object.entries(headers)) {
|
|
731
|
+
newHeaders.set(name, value);
|
|
732
|
+
}
|
|
733
|
+
return {
|
|
734
|
+
...options,
|
|
735
|
+
headers: newHeaders
|
|
736
|
+
};
|
|
737
|
+
};
|
|
738
|
+
}
|
|
739
|
+
headers$1.headers = headers;
|
|
740
|
+
|
|
741
|
+
var accept$1 = {};
|
|
742
|
+
|
|
743
|
+
accept$1.accept = void 0;
|
|
744
|
+
const append_header_1 = appendHeader$1;
|
|
745
|
+
function accept(accept) {
|
|
746
|
+
return (0, append_header_1.appendHeader)('Accept', accept);
|
|
747
|
+
}
|
|
748
|
+
accept$1.accept = accept;
|
|
749
|
+
|
|
750
|
+
var host$1 = {};
|
|
751
|
+
|
|
752
|
+
host$1.host = void 0;
|
|
753
|
+
function host(host) {
|
|
754
|
+
return (options) => {
|
|
755
|
+
const url = new URL(options.url.href);
|
|
756
|
+
url.host = host;
|
|
757
|
+
return {
|
|
758
|
+
...options,
|
|
759
|
+
url
|
|
760
|
+
};
|
|
761
|
+
};
|
|
762
|
+
}
|
|
763
|
+
host$1.host = host;
|
|
764
|
+
|
|
765
|
+
var port$1 = {};
|
|
766
|
+
|
|
767
|
+
port$1.port = void 0;
|
|
768
|
+
function port(port) {
|
|
769
|
+
return (options) => {
|
|
770
|
+
const url = new URL(options.url.href);
|
|
771
|
+
url.port = port.toString();
|
|
772
|
+
return {
|
|
773
|
+
...options,
|
|
774
|
+
url
|
|
775
|
+
};
|
|
776
|
+
};
|
|
777
|
+
}
|
|
778
|
+
port$1.port = port;
|
|
779
|
+
|
|
780
|
+
var pathname$1 = {};
|
|
781
|
+
|
|
782
|
+
pathname$1.pathname = void 0;
|
|
783
|
+
function pathname(pathname) {
|
|
784
|
+
return (options) => {
|
|
785
|
+
const url = new URL(options.url.href);
|
|
786
|
+
url.pathname = pathname;
|
|
787
|
+
return {
|
|
788
|
+
...options,
|
|
789
|
+
url
|
|
790
|
+
};
|
|
791
|
+
};
|
|
792
|
+
}
|
|
793
|
+
pathname$1.pathname = pathname;
|
|
794
|
+
|
|
795
|
+
var search$1 = {};
|
|
796
|
+
|
|
797
|
+
search$1.search = void 0;
|
|
798
|
+
function search(search) {
|
|
799
|
+
return (options) => {
|
|
800
|
+
const url = new URL(options.url.href);
|
|
801
|
+
url.search = search;
|
|
802
|
+
return {
|
|
803
|
+
...options,
|
|
804
|
+
url
|
|
805
|
+
};
|
|
806
|
+
};
|
|
807
|
+
}
|
|
808
|
+
search$1.search = search;
|
|
809
|
+
|
|
810
|
+
var searchParam$1 = {};
|
|
811
|
+
|
|
812
|
+
searchParam$1.searchParam = void 0;
|
|
813
|
+
function searchParam(name, value) {
|
|
814
|
+
return (options) => {
|
|
815
|
+
const url = new URL(options.url.href);
|
|
816
|
+
const newSearchParams = new URLSearchParams(url.searchParams);
|
|
817
|
+
newSearchParams.set(name, value.toString());
|
|
818
|
+
url.search = newSearchParams.toString();
|
|
819
|
+
return {
|
|
820
|
+
...options,
|
|
821
|
+
url
|
|
822
|
+
};
|
|
823
|
+
};
|
|
824
|
+
}
|
|
825
|
+
searchParam$1.searchParam = searchParam;
|
|
826
|
+
|
|
827
|
+
var searchParams$1 = {};
|
|
828
|
+
|
|
829
|
+
searchParams$1.searchParams = void 0;
|
|
830
|
+
function searchParams(searchParams) {
|
|
831
|
+
return (options) => {
|
|
832
|
+
const url = new URL(options.url.href);
|
|
833
|
+
const newSearchParams = new URLSearchParams(url.searchParams);
|
|
834
|
+
for (const [name, value] of Object.entries(searchParams)) {
|
|
835
|
+
newSearchParams.set(name, value.toString());
|
|
836
|
+
}
|
|
837
|
+
url.search = newSearchParams.toString();
|
|
838
|
+
return {
|
|
839
|
+
...options,
|
|
840
|
+
url
|
|
841
|
+
};
|
|
842
|
+
};
|
|
843
|
+
}
|
|
844
|
+
searchParams$1.searchParams = searchParams;
|
|
845
|
+
|
|
846
|
+
var appendSearchParam$1 = {};
|
|
847
|
+
|
|
848
|
+
appendSearchParam$1.appendSearchParam = void 0;
|
|
849
|
+
function appendSearchParam(name, value) {
|
|
850
|
+
return (options) => {
|
|
851
|
+
const url = new URL(options.url.href);
|
|
852
|
+
const newSearchParams = new URLSearchParams(url.searchParams);
|
|
853
|
+
newSearchParams.append(name, value.toString());
|
|
854
|
+
url.search = newSearchParams.toString();
|
|
855
|
+
return {
|
|
856
|
+
...options,
|
|
857
|
+
url
|
|
858
|
+
};
|
|
859
|
+
};
|
|
860
|
+
}
|
|
861
|
+
appendSearchParam$1.appendSearchParam = appendSearchParam;
|
|
862
|
+
|
|
863
|
+
var formDataField$1 = {};
|
|
864
|
+
|
|
865
|
+
formDataField$1.formDataField = void 0;
|
|
866
|
+
const extra_fetch_1$2 = es2018$e;
|
|
867
|
+
function formDataField(name, value) {
|
|
868
|
+
return (options) => {
|
|
869
|
+
const formData = options.payload instanceof extra_fetch_1$2.FormData
|
|
870
|
+
? cloneFormData(options.payload)
|
|
871
|
+
: new extra_fetch_1$2.FormData();
|
|
872
|
+
if (Array.isArray(value)) {
|
|
873
|
+
value.forEach(x => formData.append(name, x));
|
|
874
|
+
}
|
|
875
|
+
else {
|
|
876
|
+
formData.append(name, value);
|
|
877
|
+
}
|
|
878
|
+
return {
|
|
879
|
+
...options,
|
|
880
|
+
payload: formData
|
|
881
|
+
};
|
|
882
|
+
};
|
|
883
|
+
}
|
|
884
|
+
formDataField$1.formDataField = formDataField;
|
|
885
|
+
function cloneFormData(formData) {
|
|
886
|
+
const result = new extra_fetch_1$2.FormData();
|
|
887
|
+
for (const [name, value] of formData.entries()) {
|
|
888
|
+
result.append(name, value);
|
|
889
|
+
}
|
|
890
|
+
return result;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
var basicAuth$1 = {};
|
|
894
|
+
|
|
895
|
+
var base64 = {exports: {}};
|
|
896
|
+
|
|
897
|
+
(function (module, exports) {
|
|
898
|
+
(function (global, factory) {
|
|
899
|
+
module.exports = factory()
|
|
900
|
+
;
|
|
901
|
+
}((typeof self !== 'undefined' ? self
|
|
902
|
+
: typeof window !== 'undefined' ? window
|
|
903
|
+
: typeof commonjsGlobal !== 'undefined' ? commonjsGlobal
|
|
904
|
+
: commonjsGlobal), function () {
|
|
905
|
+
/**
|
|
906
|
+
* base64.ts
|
|
907
|
+
*
|
|
908
|
+
* Licensed under the BSD 3-Clause License.
|
|
909
|
+
* http://opensource.org/licenses/BSD-3-Clause
|
|
910
|
+
*
|
|
911
|
+
* References:
|
|
912
|
+
* http://en.wikipedia.org/wiki/Base64
|
|
913
|
+
*
|
|
914
|
+
* @author Dan Kogai (https://github.com/dankogai)
|
|
915
|
+
*/
|
|
916
|
+
var version = '3.7.1';
|
|
917
|
+
/**
|
|
918
|
+
* @deprecated use lowercase `version`.
|
|
919
|
+
*/
|
|
920
|
+
var VERSION = version;
|
|
921
|
+
var _hasatob = typeof atob === 'function';
|
|
922
|
+
var _hasbtoa = typeof btoa === 'function';
|
|
923
|
+
var _hasBuffer = typeof Buffer === 'function';
|
|
924
|
+
var _TD = typeof TextDecoder === 'function' ? new TextDecoder() : undefined;
|
|
925
|
+
var _TE = typeof TextEncoder === 'function' ? new TextEncoder() : undefined;
|
|
926
|
+
var b64ch = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
|
927
|
+
var b64chs = Array.prototype.slice.call(b64ch);
|
|
928
|
+
var b64tab = (function (a) {
|
|
929
|
+
var tab = {};
|
|
930
|
+
a.forEach(function (c, i) { return tab[c] = i; });
|
|
931
|
+
return tab;
|
|
932
|
+
})(b64chs);
|
|
933
|
+
var b64re = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;
|
|
934
|
+
var _fromCC = String.fromCharCode.bind(String);
|
|
935
|
+
var _U8Afrom = typeof Uint8Array.from === 'function'
|
|
936
|
+
? Uint8Array.from.bind(Uint8Array)
|
|
937
|
+
: function (it, fn) {
|
|
938
|
+
if (fn === void 0) { fn = function (x) { return x; }; }
|
|
939
|
+
return new Uint8Array(Array.prototype.slice.call(it, 0).map(fn));
|
|
940
|
+
};
|
|
941
|
+
var _mkUriSafe = function (src) { return src
|
|
942
|
+
.replace(/[+\/]/g, function (m0) { return m0 == '+' ? '-' : '_'; })
|
|
943
|
+
.replace(/=+$/m, ''); };
|
|
944
|
+
var _tidyB64 = function (s) { return s.replace(/[^A-Za-z0-9\+\/]/g, ''); };
|
|
945
|
+
/**
|
|
946
|
+
* polyfill version of `btoa`
|
|
947
|
+
*/
|
|
948
|
+
var btoaPolyfill = function (bin) {
|
|
949
|
+
// console.log('polyfilled');
|
|
950
|
+
var u32, c0, c1, c2, asc = '';
|
|
951
|
+
var pad = bin.length % 3;
|
|
952
|
+
for (var i = 0; i < bin.length;) {
|
|
953
|
+
if ((c0 = bin.charCodeAt(i++)) > 255 ||
|
|
954
|
+
(c1 = bin.charCodeAt(i++)) > 255 ||
|
|
955
|
+
(c2 = bin.charCodeAt(i++)) > 255)
|
|
956
|
+
throw new TypeError('invalid character found');
|
|
957
|
+
u32 = (c0 << 16) | (c1 << 8) | c2;
|
|
958
|
+
asc += b64chs[u32 >> 18 & 63]
|
|
959
|
+
+ b64chs[u32 >> 12 & 63]
|
|
960
|
+
+ b64chs[u32 >> 6 & 63]
|
|
961
|
+
+ b64chs[u32 & 63];
|
|
962
|
+
}
|
|
963
|
+
return pad ? asc.slice(0, pad - 3) + "===".substring(pad) : asc;
|
|
964
|
+
};
|
|
965
|
+
/**
|
|
966
|
+
* does what `window.btoa` of web browsers do.
|
|
967
|
+
* @param {String} bin binary string
|
|
968
|
+
* @returns {string} Base64-encoded string
|
|
969
|
+
*/
|
|
970
|
+
var _btoa = _hasbtoa ? function (bin) { return btoa(bin); }
|
|
971
|
+
: _hasBuffer ? function (bin) { return Buffer.from(bin, 'binary').toString('base64'); }
|
|
972
|
+
: btoaPolyfill;
|
|
973
|
+
var _fromUint8Array = _hasBuffer
|
|
974
|
+
? function (u8a) { return Buffer.from(u8a).toString('base64'); }
|
|
975
|
+
: function (u8a) {
|
|
976
|
+
// cf. https://stackoverflow.com/questions/12710001/how-to-convert-uint8-array-to-base64-encoded-string/12713326#12713326
|
|
977
|
+
var maxargs = 0x1000;
|
|
978
|
+
var strs = [];
|
|
979
|
+
for (var i = 0, l = u8a.length; i < l; i += maxargs) {
|
|
980
|
+
strs.push(_fromCC.apply(null, u8a.subarray(i, i + maxargs)));
|
|
981
|
+
}
|
|
982
|
+
return _btoa(strs.join(''));
|
|
983
|
+
};
|
|
984
|
+
/**
|
|
985
|
+
* converts a Uint8Array to a Base64 string.
|
|
986
|
+
* @param {boolean} [urlsafe] URL-and-filename-safe a la RFC4648 §5
|
|
987
|
+
* @returns {string} Base64 string
|
|
988
|
+
*/
|
|
989
|
+
var fromUint8Array = function (u8a, urlsafe) {
|
|
990
|
+
if (urlsafe === void 0) { urlsafe = false; }
|
|
991
|
+
return urlsafe ? _mkUriSafe(_fromUint8Array(u8a)) : _fromUint8Array(u8a);
|
|
992
|
+
};
|
|
993
|
+
// This trick is found broken https://github.com/dankogai/js-base64/issues/130
|
|
994
|
+
// const utob = (src: string) => unescape(encodeURIComponent(src));
|
|
995
|
+
// reverting good old fationed regexp
|
|
996
|
+
var cb_utob = function (c) {
|
|
997
|
+
if (c.length < 2) {
|
|
998
|
+
var cc = c.charCodeAt(0);
|
|
999
|
+
return cc < 0x80 ? c
|
|
1000
|
+
: cc < 0x800 ? (_fromCC(0xc0 | (cc >>> 6))
|
|
1001
|
+
+ _fromCC(0x80 | (cc & 0x3f)))
|
|
1002
|
+
: (_fromCC(0xe0 | ((cc >>> 12) & 0x0f))
|
|
1003
|
+
+ _fromCC(0x80 | ((cc >>> 6) & 0x3f))
|
|
1004
|
+
+ _fromCC(0x80 | (cc & 0x3f)));
|
|
1005
|
+
}
|
|
1006
|
+
else {
|
|
1007
|
+
var cc = 0x10000
|
|
1008
|
+
+ (c.charCodeAt(0) - 0xD800) * 0x400
|
|
1009
|
+
+ (c.charCodeAt(1) - 0xDC00);
|
|
1010
|
+
return (_fromCC(0xf0 | ((cc >>> 18) & 0x07))
|
|
1011
|
+
+ _fromCC(0x80 | ((cc >>> 12) & 0x3f))
|
|
1012
|
+
+ _fromCC(0x80 | ((cc >>> 6) & 0x3f))
|
|
1013
|
+
+ _fromCC(0x80 | (cc & 0x3f)));
|
|
1014
|
+
}
|
|
1015
|
+
};
|
|
1016
|
+
var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
|
|
1017
|
+
/**
|
|
1018
|
+
* @deprecated should have been internal use only.
|
|
1019
|
+
* @param {string} src UTF-8 string
|
|
1020
|
+
* @returns {string} UTF-16 string
|
|
1021
|
+
*/
|
|
1022
|
+
var utob = function (u) { return u.replace(re_utob, cb_utob); };
|
|
1023
|
+
//
|
|
1024
|
+
var _encode = _hasBuffer
|
|
1025
|
+
? function (s) { return Buffer.from(s, 'utf8').toString('base64'); }
|
|
1026
|
+
: _TE
|
|
1027
|
+
? function (s) { return _fromUint8Array(_TE.encode(s)); }
|
|
1028
|
+
: function (s) { return _btoa(utob(s)); };
|
|
1029
|
+
/**
|
|
1030
|
+
* converts a UTF-8-encoded string to a Base64 string.
|
|
1031
|
+
* @param {boolean} [urlsafe] if `true` make the result URL-safe
|
|
1032
|
+
* @returns {string} Base64 string
|
|
1033
|
+
*/
|
|
1034
|
+
var encode = function (src, urlsafe) {
|
|
1035
|
+
if (urlsafe === void 0) { urlsafe = false; }
|
|
1036
|
+
return urlsafe
|
|
1037
|
+
? _mkUriSafe(_encode(src))
|
|
1038
|
+
: _encode(src);
|
|
1039
|
+
};
|
|
1040
|
+
/**
|
|
1041
|
+
* converts a UTF-8-encoded string to URL-safe Base64 RFC4648 §5.
|
|
1042
|
+
* @returns {string} Base64 string
|
|
1043
|
+
*/
|
|
1044
|
+
var encodeURI = function (src) { return encode(src, true); };
|
|
1045
|
+
// This trick is found broken https://github.com/dankogai/js-base64/issues/130
|
|
1046
|
+
// const btou = (src: string) => decodeURIComponent(escape(src));
|
|
1047
|
+
// reverting good old fationed regexp
|
|
1048
|
+
var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
|
|
1049
|
+
var cb_btou = function (cccc) {
|
|
1050
|
+
switch (cccc.length) {
|
|
1051
|
+
case 4:
|
|
1052
|
+
var cp = ((0x07 & cccc.charCodeAt(0)) << 18)
|
|
1053
|
+
| ((0x3f & cccc.charCodeAt(1)) << 12)
|
|
1054
|
+
| ((0x3f & cccc.charCodeAt(2)) << 6)
|
|
1055
|
+
| (0x3f & cccc.charCodeAt(3)), offset = cp - 0x10000;
|
|
1056
|
+
return (_fromCC((offset >>> 10) + 0xD800)
|
|
1057
|
+
+ _fromCC((offset & 0x3FF) + 0xDC00));
|
|
1058
|
+
case 3:
|
|
1059
|
+
return _fromCC(((0x0f & cccc.charCodeAt(0)) << 12)
|
|
1060
|
+
| ((0x3f & cccc.charCodeAt(1)) << 6)
|
|
1061
|
+
| (0x3f & cccc.charCodeAt(2)));
|
|
1062
|
+
default:
|
|
1063
|
+
return _fromCC(((0x1f & cccc.charCodeAt(0)) << 6)
|
|
1064
|
+
| (0x3f & cccc.charCodeAt(1)));
|
|
1065
|
+
}
|
|
1066
|
+
};
|
|
1067
|
+
/**
|
|
1068
|
+
* @deprecated should have been internal use only.
|
|
1069
|
+
* @param {string} src UTF-16 string
|
|
1070
|
+
* @returns {string} UTF-8 string
|
|
1071
|
+
*/
|
|
1072
|
+
var btou = function (b) { return b.replace(re_btou, cb_btou); };
|
|
1073
|
+
/**
|
|
1074
|
+
* polyfill version of `atob`
|
|
1075
|
+
*/
|
|
1076
|
+
var atobPolyfill = function (asc) {
|
|
1077
|
+
// console.log('polyfilled');
|
|
1078
|
+
asc = asc.replace(/\s+/g, '');
|
|
1079
|
+
if (!b64re.test(asc))
|
|
1080
|
+
throw new TypeError('malformed base64.');
|
|
1081
|
+
asc += '=='.slice(2 - (asc.length & 3));
|
|
1082
|
+
var u24, bin = '', r1, r2;
|
|
1083
|
+
for (var i = 0; i < asc.length;) {
|
|
1084
|
+
u24 = b64tab[asc.charAt(i++)] << 18
|
|
1085
|
+
| b64tab[asc.charAt(i++)] << 12
|
|
1086
|
+
| (r1 = b64tab[asc.charAt(i++)]) << 6
|
|
1087
|
+
| (r2 = b64tab[asc.charAt(i++)]);
|
|
1088
|
+
bin += r1 === 64 ? _fromCC(u24 >> 16 & 255)
|
|
1089
|
+
: r2 === 64 ? _fromCC(u24 >> 16 & 255, u24 >> 8 & 255)
|
|
1090
|
+
: _fromCC(u24 >> 16 & 255, u24 >> 8 & 255, u24 & 255);
|
|
1091
|
+
}
|
|
1092
|
+
return bin;
|
|
1093
|
+
};
|
|
1094
|
+
/**
|
|
1095
|
+
* does what `window.atob` of web browsers do.
|
|
1096
|
+
* @param {String} asc Base64-encoded string
|
|
1097
|
+
* @returns {string} binary string
|
|
1098
|
+
*/
|
|
1099
|
+
var _atob = _hasatob ? function (asc) { return atob(_tidyB64(asc)); }
|
|
1100
|
+
: _hasBuffer ? function (asc) { return Buffer.from(asc, 'base64').toString('binary'); }
|
|
1101
|
+
: atobPolyfill;
|
|
1102
|
+
//
|
|
1103
|
+
var _toUint8Array = _hasBuffer
|
|
1104
|
+
? function (a) { return _U8Afrom(Buffer.from(a, 'base64')); }
|
|
1105
|
+
: function (a) { return _U8Afrom(_atob(a), function (c) { return c.charCodeAt(0); }); };
|
|
1106
|
+
/**
|
|
1107
|
+
* converts a Base64 string to a Uint8Array.
|
|
1108
|
+
*/
|
|
1109
|
+
var toUint8Array = function (a) { return _toUint8Array(_unURI(a)); };
|
|
1110
|
+
//
|
|
1111
|
+
var _decode = _hasBuffer
|
|
1112
|
+
? function (a) { return Buffer.from(a, 'base64').toString('utf8'); }
|
|
1113
|
+
: _TD
|
|
1114
|
+
? function (a) { return _TD.decode(_toUint8Array(a)); }
|
|
1115
|
+
: function (a) { return btou(_atob(a)); };
|
|
1116
|
+
var _unURI = function (a) { return _tidyB64(a.replace(/[-_]/g, function (m0) { return m0 == '-' ? '+' : '/'; })); };
|
|
1117
|
+
/**
|
|
1118
|
+
* converts a Base64 string to a UTF-8 string.
|
|
1119
|
+
* @param {String} src Base64 string. Both normal and URL-safe are supported
|
|
1120
|
+
* @returns {string} UTF-8 string
|
|
1121
|
+
*/
|
|
1122
|
+
var decode = function (src) { return _decode(_unURI(src)); };
|
|
1123
|
+
/**
|
|
1124
|
+
* check if a value is a valid Base64 string
|
|
1125
|
+
* @param {String} src a value to check
|
|
1126
|
+
*/
|
|
1127
|
+
var isValid = function (src) {
|
|
1128
|
+
if (typeof src !== 'string')
|
|
1129
|
+
return false;
|
|
1130
|
+
var s = src.replace(/\s+/g, '').replace(/=+$/, '');
|
|
1131
|
+
return !/[^\s0-9a-zA-Z\+/]/.test(s) || !/[^\s0-9a-zA-Z\-_]/.test(s);
|
|
1132
|
+
};
|
|
1133
|
+
//
|
|
1134
|
+
var _noEnum = function (v) {
|
|
1135
|
+
return {
|
|
1136
|
+
value: v, enumerable: false, writable: true, configurable: true
|
|
1137
|
+
};
|
|
1138
|
+
};
|
|
1139
|
+
/**
|
|
1140
|
+
* extend String.prototype with relevant methods
|
|
1141
|
+
*/
|
|
1142
|
+
var extendString = function () {
|
|
1143
|
+
var _add = function (name, body) { return Object.defineProperty(String.prototype, name, _noEnum(body)); };
|
|
1144
|
+
_add('fromBase64', function () { return decode(this); });
|
|
1145
|
+
_add('toBase64', function (urlsafe) { return encode(this, urlsafe); });
|
|
1146
|
+
_add('toBase64URI', function () { return encode(this, true); });
|
|
1147
|
+
_add('toBase64URL', function () { return encode(this, true); });
|
|
1148
|
+
_add('toUint8Array', function () { return toUint8Array(this); });
|
|
1149
|
+
};
|
|
1150
|
+
/**
|
|
1151
|
+
* extend Uint8Array.prototype with relevant methods
|
|
1152
|
+
*/
|
|
1153
|
+
var extendUint8Array = function () {
|
|
1154
|
+
var _add = function (name, body) { return Object.defineProperty(Uint8Array.prototype, name, _noEnum(body)); };
|
|
1155
|
+
_add('toBase64', function (urlsafe) { return fromUint8Array(this, urlsafe); });
|
|
1156
|
+
_add('toBase64URI', function () { return fromUint8Array(this, true); });
|
|
1157
|
+
_add('toBase64URL', function () { return fromUint8Array(this, true); });
|
|
1158
|
+
};
|
|
1159
|
+
/**
|
|
1160
|
+
* extend Builtin prototypes with relevant methods
|
|
1161
|
+
*/
|
|
1162
|
+
var extendBuiltins = function () {
|
|
1163
|
+
extendString();
|
|
1164
|
+
extendUint8Array();
|
|
1165
|
+
};
|
|
1166
|
+
var gBase64 = {
|
|
1167
|
+
version: version,
|
|
1168
|
+
VERSION: VERSION,
|
|
1169
|
+
atob: _atob,
|
|
1170
|
+
atobPolyfill: atobPolyfill,
|
|
1171
|
+
btoa: _btoa,
|
|
1172
|
+
btoaPolyfill: btoaPolyfill,
|
|
1173
|
+
fromBase64: decode,
|
|
1174
|
+
toBase64: encode,
|
|
1175
|
+
encode: encode,
|
|
1176
|
+
encodeURI: encodeURI,
|
|
1177
|
+
encodeURL: encodeURI,
|
|
1178
|
+
utob: utob,
|
|
1179
|
+
btou: btou,
|
|
1180
|
+
decode: decode,
|
|
1181
|
+
isValid: isValid,
|
|
1182
|
+
fromUint8Array: fromUint8Array,
|
|
1183
|
+
toUint8Array: toUint8Array,
|
|
1184
|
+
extendString: extendString,
|
|
1185
|
+
extendUint8Array: extendUint8Array,
|
|
1186
|
+
extendBuiltins: extendBuiltins
|
|
1187
|
+
};
|
|
1188
|
+
//
|
|
1189
|
+
// export Base64 to the namespace
|
|
1190
|
+
//
|
|
1191
|
+
// ES5 is yet to have Object.assign() that may make transpilers unhappy.
|
|
1192
|
+
// gBase64.Base64 = Object.assign({}, gBase64);
|
|
1193
|
+
gBase64.Base64 = {};
|
|
1194
|
+
Object.keys(gBase64).forEach(function (k) { return gBase64.Base64[k] = gBase64[k]; });
|
|
1195
|
+
return gBase64;
|
|
1196
|
+
}));
|
|
1197
|
+
}(base64));
|
|
1198
|
+
|
|
1199
|
+
basicAuth$1.basicAuth = void 0;
|
|
1200
|
+
const header_1$1 = header$1;
|
|
1201
|
+
const js_base64_1 = base64.exports;
|
|
1202
|
+
function basicAuth(username, password) {
|
|
1203
|
+
return (0, header_1$1.header)('Authorization', 'Basic ' + (0, js_base64_1.btoa)(`${username}:${password}`));
|
|
1204
|
+
}
|
|
1205
|
+
basicAuth$1.basicAuth = basicAuth;
|
|
1206
|
+
|
|
1207
|
+
var bearerAuth$1 = {};
|
|
1208
|
+
|
|
1209
|
+
bearerAuth$1.bearerAuth = void 0;
|
|
1210
|
+
const header_1 = header$1;
|
|
1211
|
+
function bearerAuth(token) {
|
|
1212
|
+
return (0, header_1.header)('Authorization', `Bearer ${token}`);
|
|
1213
|
+
}
|
|
1214
|
+
bearerAuth$1.bearerAuth = bearerAuth;
|
|
1215
|
+
|
|
1216
|
+
var keepalive$1 = {};
|
|
1217
|
+
|
|
1218
|
+
keepalive$1.keepalive = void 0;
|
|
1219
|
+
function keepalive(val = true) {
|
|
1220
|
+
return (options) => {
|
|
1221
|
+
return {
|
|
1222
|
+
...options,
|
|
1223
|
+
keepalive: val
|
|
1224
|
+
};
|
|
1225
|
+
};
|
|
1226
|
+
}
|
|
1227
|
+
keepalive$1.keepalive = keepalive;
|
|
1228
|
+
|
|
1229
|
+
(function (exports) {
|
|
1230
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1231
|
+
if (k2 === undefined) k2 = k;
|
|
1232
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1233
|
+
}) : (function(o, m, k, k2) {
|
|
1234
|
+
if (k2 === undefined) k2 = k;
|
|
1235
|
+
o[k2] = m[k];
|
|
1236
|
+
}));
|
|
1237
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
1238
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
1239
|
+
};__exportStar(url$3, exports);
|
|
1240
|
+
__exportStar(text$1, exports);
|
|
1241
|
+
__exportStar(json$3, exports);
|
|
1242
|
+
__exportStar(csv$1, exports);
|
|
1243
|
+
__exportStar(signal$2, exports);
|
|
1244
|
+
__exportStar(header$1, exports);
|
|
1245
|
+
__exportStar(appendHeader$1, exports);
|
|
1246
|
+
__exportStar(headers$1, exports);
|
|
1247
|
+
__exportStar(accept$1, exports);
|
|
1248
|
+
__exportStar(host$1, exports);
|
|
1249
|
+
__exportStar(port$1, exports);
|
|
1250
|
+
__exportStar(pathname$1, exports);
|
|
1251
|
+
__exportStar(search$1, exports);
|
|
1252
|
+
__exportStar(searchParam$1, exports);
|
|
1253
|
+
__exportStar(searchParams$1, exports);
|
|
1254
|
+
__exportStar(appendSearchParam$1, exports);
|
|
1255
|
+
__exportStar(formDataField$1, exports);
|
|
1256
|
+
__exportStar(basicAuth$1, exports);
|
|
1257
|
+
__exportStar(bearerAuth$1, exports);
|
|
1258
|
+
__exportStar(keepalive$1, exports);
|
|
1259
|
+
|
|
1260
|
+
}(transformers));
|
|
1261
|
+
|
|
1262
|
+
var es2018$a = {};
|
|
1263
|
+
|
|
1264
|
+
var ok = {};
|
|
1265
|
+
|
|
1266
|
+
var es2018$9 = {};
|
|
1267
|
+
|
|
1268
|
+
var httpStatus = /*#__PURE__*/Object.freeze({
|
|
1269
|
+
__proto__: null
|
|
1270
|
+
});
|
|
1271
|
+
|
|
1272
|
+
var require$$0 = /*@__PURE__*/getAugmentedNamespace(httpStatus);
|
|
1273
|
+
|
|
1274
|
+
var httpError = {};
|
|
606
1275
|
|
|
607
1276
|
httpError.HTTPError = void 0;
|
|
608
|
-
const errors_1$o = es2018$
|
|
1277
|
+
const errors_1$o = es2018$b;
|
|
609
1278
|
class HTTPError extends errors_1$o.CustomError {
|
|
610
1279
|
constructor(code, message) {
|
|
611
1280
|
super(message);
|
|
@@ -1190,12 +1859,12 @@ __exportStar(httpClientError, exports);
|
|
|
1190
1859
|
__exportStar(httpServerError, exports);
|
|
1191
1860
|
__exportStar(utils$1, exports);
|
|
1192
1861
|
|
|
1193
|
-
}(es2018$
|
|
1862
|
+
}(es2018$9));
|
|
1194
1863
|
|
|
1195
1864
|
(function (exports) {
|
|
1196
1865
|
exports.ok = exports.HTTPError = void 0;
|
|
1197
|
-
const http_status_1 = es2018$
|
|
1198
|
-
var http_status_2 = es2018$
|
|
1866
|
+
const http_status_1 = es2018$9;
|
|
1867
|
+
var http_status_2 = es2018$9;
|
|
1199
1868
|
Object.defineProperty(exports, "HTTPError", { enumerable: true, get: function () { return http_status_2.HTTPError; } });
|
|
1200
1869
|
/**
|
|
1201
1870
|
* @throws {HTTPError}
|
|
@@ -1292,7 +1961,7 @@ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m
|
|
|
1292
1961
|
|
|
1293
1962
|
chunkAsync$1.chunkAsync = void 0;
|
|
1294
1963
|
const go_1$n = es2018$7;
|
|
1295
|
-
const errors_1$n = es2018$
|
|
1964
|
+
const errors_1$n = es2018$b;
|
|
1296
1965
|
function chunkAsync(iterable, size) {
|
|
1297
1966
|
errors_1$n.assert(Number.isInteger(size), 'The parameter size must be an integer');
|
|
1298
1967
|
errors_1$n.assert(size > 0, 'The parameter size must be greater than 0');
|
|
@@ -1714,7 +2383,7 @@ var chunk$1 = {};
|
|
|
1714
2383
|
|
|
1715
2384
|
chunk$1.chunk = void 0;
|
|
1716
2385
|
const go_1$m = es2018$7;
|
|
1717
|
-
const errors_1$m = es2018$
|
|
2386
|
+
const errors_1$m = es2018$b;
|
|
1718
2387
|
function chunk(iterable, size) {
|
|
1719
2388
|
errors_1$m.assert(Number.isInteger(size), 'The parameter size must be an integer');
|
|
1720
2389
|
errors_1$m.assert(size > 0, 'The parameter size must be greater than 0');
|
|
@@ -1790,7 +2459,7 @@ utils.copyIterable = copyIterable;
|
|
|
1790
2459
|
dropAsync$1.dropAsync = void 0;
|
|
1791
2460
|
const go_1$j = es2018$7;
|
|
1792
2461
|
const utils_1$3 = utils;
|
|
1793
|
-
const errors_1$l = es2018$
|
|
2462
|
+
const errors_1$l = es2018$b;
|
|
1794
2463
|
function dropAsync(iterable, count) {
|
|
1795
2464
|
errors_1$l.assert(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1796
2465
|
errors_1$l.assert(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1825,7 +2494,7 @@ var dropRightAsync$1 = {};
|
|
|
1825
2494
|
dropRightAsync$1.dropRightAsync = void 0;
|
|
1826
2495
|
const go_1$i = es2018$7;
|
|
1827
2496
|
const utils_1$2 = utils;
|
|
1828
|
-
const errors_1$k = es2018$
|
|
2497
|
+
const errors_1$k = es2018$b;
|
|
1829
2498
|
function dropRightAsync(iterable, count) {
|
|
1830
2499
|
errors_1$k.assert(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1831
2500
|
errors_1$k.assert(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1853,7 +2522,7 @@ var dropRight$1 = {};
|
|
|
1853
2522
|
dropRight$1.dropRight = void 0;
|
|
1854
2523
|
const go_1$h = es2018$7;
|
|
1855
2524
|
const utils_1$1 = utils;
|
|
1856
|
-
const errors_1$j = es2018$
|
|
2525
|
+
const errors_1$j = es2018$b;
|
|
1857
2526
|
function dropRight(iterable, count) {
|
|
1858
2527
|
errors_1$j.assert(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1859
2528
|
errors_1$j.assert(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1953,7 +2622,7 @@ var drop$1 = {};
|
|
|
1953
2622
|
drop$1.drop = void 0;
|
|
1954
2623
|
const go_1$g = es2018$7;
|
|
1955
2624
|
const utils_1 = utils;
|
|
1956
|
-
const errors_1$i = es2018$
|
|
2625
|
+
const errors_1$i = es2018$b;
|
|
1957
2626
|
function drop(iterable, count) {
|
|
1958
2627
|
errors_1$i.assert(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1959
2628
|
errors_1$i.assert(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -2073,7 +2742,7 @@ function isFiniteIterable$1(val) {
|
|
|
2073
2742
|
|
|
2074
2743
|
flattenDeepAsync$1.flattenDeepAsync = void 0;
|
|
2075
2744
|
const flatten_by_async_1 = flattenByAsync$1;
|
|
2076
|
-
const errors_1$h = es2018$
|
|
2745
|
+
const errors_1$h = es2018$b;
|
|
2077
2746
|
function flattenDeepAsync(iterable, depth = Infinity) {
|
|
2078
2747
|
errors_1$h.assert(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
2079
2748
|
errors_1$h.assert(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
@@ -2114,7 +2783,7 @@ var flattenDeep$1 = {};
|
|
|
2114
2783
|
|
|
2115
2784
|
flattenDeep$1.flattenDeep = void 0;
|
|
2116
2785
|
const flatten_by_1 = flattenBy$1;
|
|
2117
|
-
const errors_1$g = es2018$
|
|
2786
|
+
const errors_1$g = es2018$b;
|
|
2118
2787
|
function flattenDeep(iterable, depth = Infinity) {
|
|
2119
2788
|
errors_1$g.assert(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
2120
2789
|
errors_1$g.assert(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
@@ -2175,7 +2844,7 @@ var repeatAsync$1 = {};
|
|
|
2175
2844
|
|
|
2176
2845
|
repeatAsync$1.repeatAsync = void 0;
|
|
2177
2846
|
const go_1$f = es2018$7;
|
|
2178
|
-
const errors_1$f = es2018$
|
|
2847
|
+
const errors_1$f = es2018$b;
|
|
2179
2848
|
function repeatAsync(iterable, times) {
|
|
2180
2849
|
errors_1$f.assert(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
2181
2850
|
errors_1$f.assert(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
@@ -2210,7 +2879,7 @@ var repeat$3 = {};
|
|
|
2210
2879
|
|
|
2211
2880
|
repeat$3.repeat = void 0;
|
|
2212
2881
|
const go_1$e = es2018$7;
|
|
2213
|
-
const errors_1$e = es2018$
|
|
2882
|
+
const errors_1$e = es2018$b;
|
|
2214
2883
|
function repeat$2(iterable, times) {
|
|
2215
2884
|
errors_1$e.assert(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
2216
2885
|
errors_1$e.assert(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
@@ -2245,7 +2914,7 @@ var sliceAsync$1 = {};
|
|
|
2245
2914
|
|
|
2246
2915
|
sliceAsync$1.sliceAsync = void 0;
|
|
2247
2916
|
const go_1$d = es2018$7;
|
|
2248
|
-
const errors_1$d = es2018$
|
|
2917
|
+
const errors_1$d = es2018$b;
|
|
2249
2918
|
function sliceAsync(iterable, start, end = Infinity) {
|
|
2250
2919
|
errors_1$d.assert(Number.isInteger(start), 'The parameter start must be an integer');
|
|
2251
2920
|
errors_1$d.assert(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
@@ -2268,7 +2937,7 @@ var slice$1 = {};
|
|
|
2268
2937
|
|
|
2269
2938
|
slice$1.slice = void 0;
|
|
2270
2939
|
const go_1$c = es2018$7;
|
|
2271
|
-
const errors_1$c = es2018$
|
|
2940
|
+
const errors_1$c = es2018$b;
|
|
2272
2941
|
function slice(iterable, start, end = Infinity) {
|
|
2273
2942
|
errors_1$c.assert(Number.isInteger(start), 'The parameter start must be an integer');
|
|
2274
2943
|
errors_1$c.assert(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
@@ -2391,7 +3060,7 @@ var takeAsync$1 = {};
|
|
|
2391
3060
|
|
|
2392
3061
|
takeAsync$1.takeAsync = void 0;
|
|
2393
3062
|
const go_1$b = es2018$7;
|
|
2394
|
-
const errors_1$b = es2018$
|
|
3063
|
+
const errors_1$b = es2018$b;
|
|
2395
3064
|
function takeAsync(iterable, count) {
|
|
2396
3065
|
errors_1$b.assert(Number.isInteger(count), 'The parameter count must be an integer');
|
|
2397
3066
|
errors_1$b.assert(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -2412,7 +3081,7 @@ var takeRightAsync$1 = {};
|
|
|
2412
3081
|
|
|
2413
3082
|
takeRightAsync$1.takeRightAsync = void 0;
|
|
2414
3083
|
const go_1$a = es2018$7;
|
|
2415
|
-
const errors_1$a = es2018$
|
|
3084
|
+
const errors_1$a = es2018$b;
|
|
2416
3085
|
function takeRightAsync(iterable, count) {
|
|
2417
3086
|
errors_1$a.assert(Number.isInteger(count), 'The parameter count must be an integer');
|
|
2418
3087
|
errors_1$a.assert(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -2442,7 +3111,7 @@ var takeRight$1 = {};
|
|
|
2442
3111
|
|
|
2443
3112
|
takeRight$1.takeRight = void 0;
|
|
2444
3113
|
const go_1$9 = es2018$7;
|
|
2445
|
-
const errors_1$9 = es2018$
|
|
3114
|
+
const errors_1$9 = es2018$b;
|
|
2446
3115
|
function takeRight(iterable, count) {
|
|
2447
3116
|
errors_1$9.assert(Number.isInteger(count), 'The parameter count must be an integer');
|
|
2448
3117
|
errors_1$9.assert(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -2518,7 +3187,7 @@ var take$1 = {};
|
|
|
2518
3187
|
|
|
2519
3188
|
take$1.take = void 0;
|
|
2520
3189
|
const go_1$8 = es2018$7;
|
|
2521
|
-
const errors_1$8 = es2018$
|
|
3190
|
+
const errors_1$8 = es2018$b;
|
|
2522
3191
|
function take(iterable, count) {
|
|
2523
3192
|
errors_1$8.assert(Number.isInteger(count), 'The parameter count must be an integer');
|
|
2524
3193
|
errors_1$8.assert(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -3399,19 +4068,6 @@ toNdjson.toNDJSON = toNDJSON;
|
|
|
3399
4068
|
|
|
3400
4069
|
var toCsv = {};
|
|
3401
4070
|
|
|
3402
|
-
var papaparse_min = {exports: {}};
|
|
3403
|
-
|
|
3404
|
-
/* @license
|
|
3405
|
-
Papa Parse
|
|
3406
|
-
v5.3.1
|
|
3407
|
-
https://github.com/mholt/PapaParse
|
|
3408
|
-
License: MIT
|
|
3409
|
-
*/
|
|
3410
|
-
|
|
3411
|
-
(function (module, exports) {
|
|
3412
|
-
!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});
|
|
3413
|
-
}(papaparse_min));
|
|
3414
|
-
|
|
3415
4071
|
toCsv.toCSV = void 0;
|
|
3416
4072
|
const papaparse_1 = papaparse_min.exports;
|
|
3417
4073
|
async function toCSV(res) {
|
|
@@ -3441,7 +4097,7 @@ __exportStar(toLines$1, exports);
|
|
|
3441
4097
|
__exportStar(toNdjson, exports);
|
|
3442
4098
|
__exportStar(toCsv, exports);
|
|
3443
4099
|
|
|
3444
|
-
}(es2018$
|
|
4100
|
+
}(es2018$a));
|
|
3445
4101
|
|
|
3446
4102
|
var es2018$5 = {};
|
|
3447
4103
|
|
|
@@ -3582,7 +4238,7 @@ var __classPrivateFieldGet$f = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
|
3582
4238
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
3583
4239
|
};
|
|
3584
4240
|
var _Signal_deferred;signal.SignalDiscarded = signal.Signal = void 0;
|
|
3585
|
-
const errors_1$7 = es2018$
|
|
4241
|
+
const errors_1$7 = es2018$b;
|
|
3586
4242
|
const deferred_1 = deferred;
|
|
3587
4243
|
class Signal {
|
|
3588
4244
|
constructor() {
|
|
@@ -4975,7 +5631,7 @@ Object.defineProperty(exports, "toOptionalPromisePartial", { enumerable: true, g
|
|
|
4975
5631
|
var errors = {};
|
|
4976
5632
|
|
|
4977
5633
|
errors.ChannelClosedError = void 0;
|
|
4978
|
-
const errors_1$6 = es2018$
|
|
5634
|
+
const errors_1$6 = es2018$b;
|
|
4979
5635
|
class ChannelClosedError extends errors_1$6.CustomError {
|
|
4980
5636
|
}
|
|
4981
5637
|
errors.ChannelClosedError = ChannelClosedError;
|
|
@@ -5257,7 +5913,7 @@ var __classPrivateFieldGet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
|
5257
5913
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5258
5914
|
};
|
|
5259
5915
|
var _LRUMap_limit, _LRUMap_map;lruMap.LRUMap = void 0;
|
|
5260
|
-
const errors_1$5 = es2018$
|
|
5916
|
+
const errors_1$5 = es2018$b;
|
|
5261
5917
|
class LRUMap {
|
|
5262
5918
|
constructor(limit) {
|
|
5263
5919
|
_LRUMap_limit.set(this, void 0);
|
|
@@ -5566,7 +6222,7 @@ var taskRunner = {};
|
|
|
5566
6222
|
var validateConcurrency$1 = {};
|
|
5567
6223
|
|
|
5568
6224
|
validateConcurrency$1.validateConcurrency = void 0;
|
|
5569
|
-
const errors_1$4 = es2018$
|
|
6225
|
+
const errors_1$4 = es2018$b;
|
|
5570
6226
|
function validateConcurrency(name, value) {
|
|
5571
6227
|
(0, errors_1$4.assert)(value === Infinity || Number.isInteger(value), `The parameter ${name} must be an integer`);
|
|
5572
6228
|
(0, errors_1$4.assert)(value >= 1, `The parameter ${name} must be greater than or equal to 1`);
|
|
@@ -9204,7 +9860,7 @@ series$1.series = series;
|
|
|
9204
9860
|
var timeout$1 = {};
|
|
9205
9861
|
|
|
9206
9862
|
timeout$1.TimeoutError = timeout$1.timeout = void 0;
|
|
9207
|
-
const errors_1$3 = es2018$
|
|
9863
|
+
const errors_1$3 = es2018$b;
|
|
9208
9864
|
function timeout(ms) {
|
|
9209
9865
|
return new Promise((_, reject) => {
|
|
9210
9866
|
setTimeout(() => reject(new TimeoutError()), ms);
|
|
@@ -9258,7 +9914,7 @@ pad$1.pad = pad;
|
|
|
9258
9914
|
var withAbortSignal$1 = {};
|
|
9259
9915
|
|
|
9260
9916
|
withAbortSignal$1.AbortError = withAbortSignal$1.withAbortSignal = void 0;
|
|
9261
|
-
const errors_1$2 = es2018$
|
|
9917
|
+
const errors_1$2 = es2018$b;
|
|
9262
9918
|
/**
|
|
9263
9919
|
* @throws {AbortError}
|
|
9264
9920
|
*/
|
|
@@ -9317,7 +9973,7 @@ of$1.of = of;
|
|
|
9317
9973
|
var repeat$1 = {};
|
|
9318
9974
|
|
|
9319
9975
|
repeat$1.repeat = void 0;
|
|
9320
|
-
const errors_1$1 = es2018$
|
|
9976
|
+
const errors_1$1 = es2018$b;
|
|
9321
9977
|
function repeat(val, times = Infinity) {
|
|
9322
9978
|
errors_1$1.assert(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
9323
9979
|
return (function* () {
|
|
@@ -9355,7 +10011,7 @@ countup$1.countup = countup;
|
|
|
9355
10011
|
var range$1 = {};
|
|
9356
10012
|
|
|
9357
10013
|
range$1.range = void 0;
|
|
9358
|
-
const errors_1 = es2018$
|
|
10014
|
+
const errors_1 = es2018$b;
|
|
9359
10015
|
function range(start, end, step = 1) {
|
|
9360
10016
|
errors_1.assert(step > 0, 'step parameter must be greater than 0');
|
|
9361
10017
|
return rangeByUnsignedStep(start, end, step);
|
|
@@ -9674,11 +10330,11 @@ class GeyserClient {
|
|
|
9674
10330
|
var _a, _b, _c;
|
|
9675
10331
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9676
10332
|
const token = (_a = options.token) !== null && _a !== void 0 ? _a : this.options.token;
|
|
9677
|
-
const req = es2018$d.get(url
|
|
10333
|
+
const req = es2018$d.get(transformers.url(this.options.server), transformers.pathname(`geyser/${namespace}`), token && transformers.searchParams({ token }), transformers.signal(es2018$5.raceAbortSignals([
|
|
9678
10334
|
options.signal,
|
|
9679
10335
|
options.timeout !== false && ((_b = (options.timeout && es2018$5.timeoutSignal(options.timeout))) !== null && _b !== void 0 ? _b : (this.options.timeout && es2018$5.timeoutSignal(this.options.timeout)))
|
|
9680
|
-
])), keepalive((_c = options.keepalive) !== null && _c !== void 0 ? _c : this.options.keepalive));
|
|
9681
|
-
yield es2018$e.fetch(req).then(es2018$
|
|
10336
|
+
])), transformers.keepalive((_c = options.keepalive) !== null && _c !== void 0 ? _c : this.options.keepalive));
|
|
10337
|
+
yield es2018$e.fetch(req).then(es2018$a.ok);
|
|
9682
10338
|
});
|
|
9683
10339
|
}
|
|
9684
10340
|
}
|
|
@@ -9690,13 +10346,13 @@ class GeyserManagerBase {
|
|
|
9690
10346
|
getCommonTransformers(options) {
|
|
9691
10347
|
var _a, _b;
|
|
9692
10348
|
return [
|
|
9693
|
-
url
|
|
9694
|
-
bearerAuth(this.options.adminPassword),
|
|
9695
|
-
signal
|
|
10349
|
+
transformers.url(this.options.server),
|
|
10350
|
+
transformers.bearerAuth(this.options.adminPassword),
|
|
10351
|
+
transformers.signal(es2018$5.raceAbortSignals([
|
|
9696
10352
|
options.signal,
|
|
9697
10353
|
options.timeout !== false && ((_a = (options.timeout && es2018$5.timeoutSignal(options.timeout))) !== null && _a !== void 0 ? _a : (this.options.timeout && es2018$5.timeoutSignal(this.options.timeout)))
|
|
9698
10354
|
])),
|
|
9699
|
-
keepalive((_b = options.keepalive) !== null && _b !== void 0 ? _b : this.options.keepalive)
|
|
10355
|
+
transformers.keepalive((_b = options.keepalive) !== null && _b !== void 0 ? _b : this.options.keepalive)
|
|
9700
10356
|
];
|
|
9701
10357
|
}
|
|
9702
10358
|
}
|
|
@@ -9704,42 +10360,42 @@ class GeyserManagerBase {
|
|
|
9704
10360
|
class ConfigurationClient extends GeyserManagerBase {
|
|
9705
10361
|
getNamespaces(options = {}) {
|
|
9706
10362
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9707
|
-
const req = es2018$d.get(...this.getCommonTransformers(options), pathname('/admin/geyser-with-config'));
|
|
10363
|
+
const req = es2018$d.get(...this.getCommonTransformers(options), transformers.pathname('/admin/geyser-with-config'));
|
|
9708
10364
|
return yield es2018$e.fetch(req)
|
|
9709
|
-
.then(es2018$
|
|
9710
|
-
.then(es2018$
|
|
10365
|
+
.then(es2018$a.ok)
|
|
10366
|
+
.then(es2018$a.toJSON);
|
|
9711
10367
|
});
|
|
9712
10368
|
}
|
|
9713
10369
|
get(namespace, options = {}) {
|
|
9714
10370
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9715
|
-
const req = es2018$d.get(...this.getCommonTransformers(options), pathname(`/admin/geyser/${namespace}/config`));
|
|
10371
|
+
const req = es2018$d.get(...this.getCommonTransformers(options), transformers.pathname(`/admin/geyser/${namespace}/config`));
|
|
9716
10372
|
return yield es2018$e.fetch(req)
|
|
9717
|
-
.then(es2018$
|
|
9718
|
-
.then(es2018$
|
|
10373
|
+
.then(es2018$a.ok)
|
|
10374
|
+
.then(es2018$a.toJSON);
|
|
9719
10375
|
});
|
|
9720
10376
|
}
|
|
9721
10377
|
setDuration(namespace, val, options = {}) {
|
|
9722
10378
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9723
|
-
const req = es2018$d.put(...this.getCommonTransformers(options), pathname(`/admin/geyser/${namespace}/config/duration`), json
|
|
9724
|
-
yield es2018$e.fetch(req).then(es2018$
|
|
10379
|
+
const req = es2018$d.put(...this.getCommonTransformers(options), transformers.pathname(`/admin/geyser/${namespace}/config/duration`), transformers.json(val));
|
|
10380
|
+
yield es2018$e.fetch(req).then(es2018$a.ok);
|
|
9725
10381
|
});
|
|
9726
10382
|
}
|
|
9727
10383
|
removeDuration(namespace, options = {}) {
|
|
9728
10384
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9729
|
-
const req = es2018$d.del(...this.getCommonTransformers(options), pathname(`/admin/geyser/${namespace}/config/duration`));
|
|
9730
|
-
yield es2018$e.fetch(req).then(es2018$
|
|
10385
|
+
const req = es2018$d.del(...this.getCommonTransformers(options), transformers.pathname(`/admin/geyser/${namespace}/config/duration`));
|
|
10386
|
+
yield es2018$e.fetch(req).then(es2018$a.ok);
|
|
9731
10387
|
});
|
|
9732
10388
|
}
|
|
9733
10389
|
setLimit(namespace, val, options = {}) {
|
|
9734
10390
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9735
|
-
const req = es2018$d.put(...this.getCommonTransformers(options), pathname(`/admin/geyser/${namespace}/config/limit`), json
|
|
9736
|
-
yield es2018$e.fetch(req).then(es2018$
|
|
10391
|
+
const req = es2018$d.put(...this.getCommonTransformers(options), transformers.pathname(`/admin/geyser/${namespace}/config/limit`), transformers.json(val));
|
|
10392
|
+
yield es2018$e.fetch(req).then(es2018$a.ok);
|
|
9737
10393
|
});
|
|
9738
10394
|
}
|
|
9739
10395
|
removeLimit(namespace, options = {}) {
|
|
9740
10396
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9741
|
-
const req = es2018$d.del(...this.getCommonTransformers(options), pathname(`/admin/geyser/${namespace}/config/limit`));
|
|
9742
|
-
yield es2018$e.fetch(req).then(es2018$
|
|
10397
|
+
const req = es2018$d.del(...this.getCommonTransformers(options), transformers.pathname(`/admin/geyser/${namespace}/config/limit`));
|
|
10398
|
+
yield es2018$e.fetch(req).then(es2018$a.ok);
|
|
9743
10399
|
});
|
|
9744
10400
|
}
|
|
9745
10401
|
}
|
|
@@ -9747,22 +10403,22 @@ class ConfigurationClient extends GeyserManagerBase {
|
|
|
9747
10403
|
class BlacklistClient extends GeyserManagerBase {
|
|
9748
10404
|
getNamespaces(options = {}) {
|
|
9749
10405
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9750
|
-
const req = es2018$d.get(...this.getCommonTransformers(options), pathname('/admin/blacklist'));
|
|
10406
|
+
const req = es2018$d.get(...this.getCommonTransformers(options), transformers.pathname('/admin/blacklist'));
|
|
9751
10407
|
return yield es2018$e.fetch(req)
|
|
9752
|
-
.then(es2018$
|
|
9753
|
-
.then(es2018$
|
|
10408
|
+
.then(es2018$a.ok)
|
|
10409
|
+
.then(es2018$a.toJSON);
|
|
9754
10410
|
});
|
|
9755
10411
|
}
|
|
9756
10412
|
add(namespace, options = {}) {
|
|
9757
10413
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9758
|
-
const req = es2018$d.put(...this.getCommonTransformers(options), pathname(`/admin/blacklist/${namespace}`));
|
|
9759
|
-
yield es2018$e.fetch(req).then(es2018$
|
|
10414
|
+
const req = es2018$d.put(...this.getCommonTransformers(options), transformers.pathname(`/admin/blacklist/${namespace}`));
|
|
10415
|
+
yield es2018$e.fetch(req).then(es2018$a.ok);
|
|
9760
10416
|
});
|
|
9761
10417
|
}
|
|
9762
10418
|
remove(namespace, options = {}) {
|
|
9763
10419
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9764
|
-
const req = es2018$d.del(...this.getCommonTransformers(options), pathname(`/admin/blacklist/${namespace}`));
|
|
9765
|
-
yield es2018$e.fetch(req).then(es2018$
|
|
10420
|
+
const req = es2018$d.del(...this.getCommonTransformers(options), transformers.pathname(`/admin/blacklist/${namespace}`));
|
|
10421
|
+
yield es2018$e.fetch(req).then(es2018$a.ok);
|
|
9766
10422
|
});
|
|
9767
10423
|
}
|
|
9768
10424
|
}
|
|
@@ -9770,22 +10426,22 @@ class BlacklistClient extends GeyserManagerBase {
|
|
|
9770
10426
|
class WhitelistClient extends GeyserManagerBase {
|
|
9771
10427
|
getNamespaces(options = {}) {
|
|
9772
10428
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9773
|
-
const req = es2018$d.get(...this.getCommonTransformers(options), pathname('/admin/whitelist'));
|
|
10429
|
+
const req = es2018$d.get(...this.getCommonTransformers(options), transformers.pathname('/admin/whitelist'));
|
|
9774
10430
|
return yield es2018$e.fetch(req)
|
|
9775
|
-
.then(es2018$
|
|
9776
|
-
.then(es2018$
|
|
10431
|
+
.then(es2018$a.ok)
|
|
10432
|
+
.then(es2018$a.toJSON);
|
|
9777
10433
|
});
|
|
9778
10434
|
}
|
|
9779
10435
|
add(namespace, options = {}) {
|
|
9780
10436
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9781
|
-
const req = es2018$d.put(...this.getCommonTransformers(options), pathname(`/admin/whitelist/${namespace}`));
|
|
9782
|
-
yield es2018$e.fetch(req).then(es2018$
|
|
10437
|
+
const req = es2018$d.put(...this.getCommonTransformers(options), transformers.pathname(`/admin/whitelist/${namespace}`));
|
|
10438
|
+
yield es2018$e.fetch(req).then(es2018$a.ok);
|
|
9783
10439
|
});
|
|
9784
10440
|
}
|
|
9785
10441
|
remove(namespace, options = {}) {
|
|
9786
10442
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9787
|
-
const req = es2018$d.del(...this.getCommonTransformers(options), pathname(`/admin/whitelist/${namespace}`));
|
|
9788
|
-
yield es2018$e.fetch(req).then(es2018$
|
|
10443
|
+
const req = es2018$d.del(...this.getCommonTransformers(options), transformers.pathname(`/admin/whitelist/${namespace}`));
|
|
10444
|
+
yield es2018$e.fetch(req).then(es2018$a.ok);
|
|
9789
10445
|
});
|
|
9790
10446
|
}
|
|
9791
10447
|
}
|
|
@@ -9793,30 +10449,30 @@ class WhitelistClient extends GeyserManagerBase {
|
|
|
9793
10449
|
class TokenPolicyClient extends GeyserManagerBase {
|
|
9794
10450
|
getNamespaces(options = {}) {
|
|
9795
10451
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9796
|
-
const req = es2018$d.get(...this.getCommonTransformers(options), pathname('/admin/geyser-with-token-policies'));
|
|
10452
|
+
const req = es2018$d.get(...this.getCommonTransformers(options), transformers.pathname('/admin/geyser-with-token-policies'));
|
|
9797
10453
|
return yield es2018$e.fetch(req)
|
|
9798
|
-
.then(es2018$
|
|
9799
|
-
.then(es2018$
|
|
10454
|
+
.then(es2018$a.ok)
|
|
10455
|
+
.then(es2018$a.toJSON);
|
|
9800
10456
|
});
|
|
9801
10457
|
}
|
|
9802
10458
|
get(namespace, options = {}) {
|
|
9803
10459
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9804
|
-
const req = es2018$d.get(...this.getCommonTransformers(options), pathname(`/admin/geyser/${namespace}/token-policies`));
|
|
10460
|
+
const req = es2018$d.get(...this.getCommonTransformers(options), transformers.pathname(`/admin/geyser/${namespace}/token-policies`));
|
|
9805
10461
|
return yield es2018$e.fetch(req)
|
|
9806
|
-
.then(es2018$
|
|
9807
|
-
.then(es2018$
|
|
10462
|
+
.then(es2018$a.ok)
|
|
10463
|
+
.then(es2018$a.toJSON);
|
|
9808
10464
|
});
|
|
9809
10465
|
}
|
|
9810
10466
|
setAcquireTokenRequired(namespace, val, options = {}) {
|
|
9811
10467
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9812
|
-
const req = es2018$d.put(...this.getCommonTransformers(options), pathname(`/admin/geyser/${namespace}/token-policies/acquire-token-required`), json
|
|
9813
|
-
yield es2018$e.fetch(req).then(es2018$
|
|
10468
|
+
const req = es2018$d.put(...this.getCommonTransformers(options), transformers.pathname(`/admin/geyser/${namespace}/token-policies/acquire-token-required`), transformers.json(val));
|
|
10469
|
+
yield es2018$e.fetch(req).then(es2018$a.ok);
|
|
9814
10470
|
});
|
|
9815
10471
|
}
|
|
9816
10472
|
removeAcquireTokenRequired(namespace, options = {}) {
|
|
9817
10473
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9818
|
-
const req = es2018$d.del(...this.getCommonTransformers(options), pathname(`/admin/geyser/${namespace}/token-policies/acquire-token-required`));
|
|
9819
|
-
yield es2018$e.fetch(req).then(es2018$
|
|
10474
|
+
const req = es2018$d.del(...this.getCommonTransformers(options), transformers.pathname(`/admin/geyser/${namespace}/token-policies/acquire-token-required`));
|
|
10475
|
+
yield es2018$e.fetch(req).then(es2018$a.ok);
|
|
9820
10476
|
});
|
|
9821
10477
|
}
|
|
9822
10478
|
}
|
|
@@ -9824,30 +10480,30 @@ class TokenPolicyClient extends GeyserManagerBase {
|
|
|
9824
10480
|
class TokenClient extends GeyserManagerBase {
|
|
9825
10481
|
getNamespaces(options = {}) {
|
|
9826
10482
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9827
|
-
const req = es2018$d.get(...this.getCommonTransformers(options), pathname('/admin/geyser-with-tokens'));
|
|
10483
|
+
const req = es2018$d.get(...this.getCommonTransformers(options), transformers.pathname('/admin/geyser-with-tokens'));
|
|
9828
10484
|
return yield es2018$e.fetch(req)
|
|
9829
|
-
.then(es2018$
|
|
9830
|
-
.then(es2018$
|
|
10485
|
+
.then(es2018$a.ok)
|
|
10486
|
+
.then(es2018$a.toJSON);
|
|
9831
10487
|
});
|
|
9832
10488
|
}
|
|
9833
10489
|
getTokens(namespace, options = {}) {
|
|
9834
10490
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9835
|
-
const req = es2018$d.get(...this.getCommonTransformers(options), pathname(`/admin/geyser/${namespace}/tokens`));
|
|
10491
|
+
const req = es2018$d.get(...this.getCommonTransformers(options), transformers.pathname(`/admin/geyser/${namespace}/tokens`));
|
|
9836
10492
|
return yield es2018$e.fetch(req)
|
|
9837
|
-
.then(es2018$
|
|
9838
|
-
.then(es2018$
|
|
10493
|
+
.then(es2018$a.ok)
|
|
10494
|
+
.then(es2018$a.toJSON);
|
|
9839
10495
|
});
|
|
9840
10496
|
}
|
|
9841
10497
|
addAcquireToken(namespace, token, options = {}) {
|
|
9842
10498
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9843
|
-
const req = es2018$d.put(...this.getCommonTransformers(options), pathname(`/admin/geyser/${namespace}/tokens/${token}/acquire`));
|
|
9844
|
-
yield es2018$e.fetch(req).then(es2018$
|
|
10499
|
+
const req = es2018$d.put(...this.getCommonTransformers(options), transformers.pathname(`/admin/geyser/${namespace}/tokens/${token}/acquire`));
|
|
10500
|
+
yield es2018$e.fetch(req).then(es2018$a.ok);
|
|
9845
10501
|
});
|
|
9846
10502
|
}
|
|
9847
10503
|
removeAcquireToken(namespace, token, options = {}) {
|
|
9848
10504
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9849
|
-
const req = es2018$d.del(...this.getCommonTransformers(options), pathname(`/admin/geyser/${namespace}/tokens/${token}/acquire`));
|
|
9850
|
-
yield es2018$e.fetch(req).then(es2018$
|
|
10505
|
+
const req = es2018$d.del(...this.getCommonTransformers(options), transformers.pathname(`/admin/geyser/${namespace}/tokens/${token}/acquire`));
|
|
10506
|
+
yield es2018$e.fetch(req).then(es2018$a.ok);
|
|
9851
10507
|
});
|
|
9852
10508
|
}
|
|
9853
10509
|
}
|
|
@@ -9863,7 +10519,7 @@ class GeyserManager {
|
|
|
9863
10519
|
}
|
|
9864
10520
|
}
|
|
9865
10521
|
|
|
9866
|
-
var HTTPClientError$1 = es2018$
|
|
9867
|
-
var HTTPError$1 = es2018$
|
|
10522
|
+
var HTTPClientError$1 = es2018$9.HTTPClientError;
|
|
10523
|
+
var HTTPError$1 = es2018$a.HTTPError;
|
|
9868
10524
|
export { GeyserClient, GeyserManager, HTTPClientError$1 as HTTPClientError, HTTPError$1 as HTTPError };
|
|
9869
10525
|
//# sourceMappingURL=index.mjs.map
|